@gravitee/graphene-core 3.52.0 → 3.53.0-fix-found-460-validation-scope.93c7f36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts +21 -1
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/ConditionalGate.d.ts +11 -1
- package/dist/composed/JsonSchemaForm/conditional/ConditionalGate.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/concretizePath.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/errorVisibility.d.ts +39 -0
- package/dist/composed/JsonSchemaForm/fields/__test-utils__/errorVisibility.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/applyVisibleDefaults.d.ts +50 -0
- package/dist/composed/JsonSchemaForm/form-bindings/applyVisibleDefaults.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/extractDefaults.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.d.ts +38 -0
- package/dist/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/indexSchemaRoot.d.ts +6 -0
- package/dist/composed/JsonSchemaForm/form-bindings/indexSchemaRoot.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.d.ts +5 -3
- package/dist/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts +11 -5
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/index.d.ts +3 -0
- package/dist/composed/JsonSchemaForm/index.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts +7 -3
- package/dist/composed/JsonSchemaForm/models/JsonSchemaFormContext.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts +2 -0
- package/dist/composed/JsonSchemaForm/models/jsonSchemaResolver.types.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/displayedErrorPaths.d.ts +21 -0
- package/dist/composed/JsonSchemaForm/schema/displayedErrorPaths.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/schema/types.d.ts +6 -5
- package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/visibleFields.d.ts +73 -0
- package/dist/composed/JsonSchemaForm/schema/visibleFields.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/fieldKind.d.ts +18 -0
- package/dist/composed/JsonSchemaForm/utils/fieldKind.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/pickActiveVariant.d.ts +3 -3
- package/dist/composed/JsonSchemaForm/utils/pickActiveVariant.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/utils/readPath.d.ts +1 -2
- package/dist/composed/JsonSchemaForm/utils/readPath.d.ts.map +1 -1
- package/dist/index.js +1734 -648
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -29436,25 +29436,41 @@ function FJ(e, t) {
|
|
|
29436
29436
|
}
|
|
29437
29437
|
//#endregion
|
|
29438
29438
|
//#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
|
|
29439
|
-
function IJ({ condition: e, unregisterOnHide: t,
|
|
29440
|
-
let { control:
|
|
29441
|
-
control:
|
|
29442
|
-
name:
|
|
29443
|
-
}),
|
|
29444
|
-
let e = /* @__PURE__ */ new Map(), t = Array.isArray(
|
|
29445
|
-
return
|
|
29446
|
-
}, [
|
|
29447
|
-
return Ue(() => {
|
|
29448
|
-
if (!
|
|
29439
|
+
function IJ({ condition: e, unregisterOnHide: t, defaultOnReveal: n, children: r }) {
|
|
29440
|
+
let { control: i, externalContext: a } = b(), o = qe(() => Array.from(e.$eq.keys()), [e]), s = M({
|
|
29441
|
+
control: i,
|
|
29442
|
+
name: o
|
|
29443
|
+
}), c = PJ(e, qe(() => {
|
|
29444
|
+
let e = /* @__PURE__ */ new Map(), t = Array.isArray(s) ? s : [s];
|
|
29445
|
+
return o.forEach((n, r) => e.set(n, t[r])), e;
|
|
29446
|
+
}, [o, s]), a), [l, u] = Xe(!c);
|
|
29447
|
+
return !c && !l && u(!0), Ue(() => {
|
|
29448
|
+
if (!c && !(!t || t.length === 0)) for (let e of t) i.unregister(e);
|
|
29449
29449
|
}, [
|
|
29450
|
-
|
|
29450
|
+
c,
|
|
29451
29451
|
t,
|
|
29452
|
-
|
|
29453
|
-
]),
|
|
29452
|
+
i
|
|
29453
|
+
]), c ? /* @__PURE__ */ W($e, { children: [r, l && n && /* @__PURE__ */ U(LJ, {
|
|
29454
|
+
path: n.path,
|
|
29455
|
+
value: n.value
|
|
29456
|
+
})] }) : null;
|
|
29457
|
+
}
|
|
29458
|
+
function LJ({ path: e, value: t }) {
|
|
29459
|
+
let { control: n } = b(), { field: r } = I({
|
|
29460
|
+
control: n,
|
|
29461
|
+
name: e
|
|
29462
|
+
}), { onChange: i, value: a } = r;
|
|
29463
|
+
return Ue(() => {
|
|
29464
|
+
a === void 0 && i(structuredClone(t));
|
|
29465
|
+
}, [
|
|
29466
|
+
a,
|
|
29467
|
+
i,
|
|
29468
|
+
t
|
|
29469
|
+
]), null;
|
|
29454
29470
|
}
|
|
29455
29471
|
//#endregion
|
|
29456
29472
|
//#region src/composed/JsonSchemaForm/conditional/DisabledGate.tsx
|
|
29457
|
-
function
|
|
29473
|
+
function RJ({ condition: e, children: t }) {
|
|
29458
29474
|
let n = b(), r = qe(() => Array.from(e.$eq.keys()), [e]), i = M({
|
|
29459
29475
|
control: n.control,
|
|
29460
29476
|
name: r
|
|
@@ -29472,7 +29488,7 @@ function LJ({ condition: e, children: t }) {
|
|
|
29472
29488
|
}
|
|
29473
29489
|
//#endregion
|
|
29474
29490
|
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
29475
|
-
function
|
|
29491
|
+
function zJ(e, t) {
|
|
29476
29492
|
return e.split(".").map((e, n) => {
|
|
29477
29493
|
let r = t[n];
|
|
29478
29494
|
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
@@ -29480,8 +29496,8 @@ function RJ(e, t) {
|
|
|
29480
29496
|
}
|
|
29481
29497
|
//#endregion
|
|
29482
29498
|
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
29483
|
-
function
|
|
29484
|
-
let n = t === "" ? [] : t.split("."), r = new Map([...e.$eq].map(([e, t]) => [
|
|
29499
|
+
function BJ(e, t) {
|
|
29500
|
+
let n = t === "" ? [] : t.split("."), r = new Map([...e.$eq].map(([e, t]) => [zJ(e, n), t]));
|
|
29485
29501
|
return e.$eqContext ? {
|
|
29486
29502
|
$eq: r,
|
|
29487
29503
|
$eqContext: e.$eqContext
|
|
@@ -29489,7 +29505,7 @@ function zJ(e, t) {
|
|
|
29489
29505
|
}
|
|
29490
29506
|
//#endregion
|
|
29491
29507
|
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
29492
|
-
function
|
|
29508
|
+
function VJ(e, t) {
|
|
29493
29509
|
if (!e) return e;
|
|
29494
29510
|
let n = {};
|
|
29495
29511
|
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
@@ -29497,34 +29513,34 @@ function BJ(e, t) {
|
|
|
29497
29513
|
}
|
|
29498
29514
|
//#endregion
|
|
29499
29515
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
29500
|
-
function VJ(e) {
|
|
29501
|
-
return HJ(e);
|
|
29502
|
-
}
|
|
29503
29516
|
function HJ(e) {
|
|
29517
|
+
return UJ(e);
|
|
29518
|
+
}
|
|
29519
|
+
function UJ(e) {
|
|
29504
29520
|
let t = { ...e };
|
|
29505
29521
|
if (t.properties) {
|
|
29506
29522
|
let e = new Set(t.required ?? []), n = {};
|
|
29507
29523
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
29508
|
-
let t =
|
|
29524
|
+
let t = UJ(i);
|
|
29509
29525
|
e.has(r) && (t.isRequired = !0, t.type === "string" && t.minLength === void 0 && t.const === void 0 && !Array.isArray(t.enum) && !Array.isArray(t.oneOf) && !Array.isArray(t.anyOf) && (t.minLength = 1), t.type === "array" && t.minItems === void 0 && t.const === void 0 && !Array.isArray(t.enum) && (t.minItems = 1)), n[r] = t;
|
|
29510
29526
|
}
|
|
29511
29527
|
t.properties = n;
|
|
29512
29528
|
}
|
|
29513
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
29529
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(UJ) : UJ(t.items), t.oneOf &&= t.oneOf.map(UJ), t.anyOf &&= t.anyOf.map(UJ), t.allOf &&= t.allOf.map(UJ), t.dependencies &&= VJ(t.dependencies, UJ), t;
|
|
29514
29530
|
}
|
|
29515
29531
|
//#endregion
|
|
29516
29532
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
29517
|
-
function UJ(e) {
|
|
29518
|
-
return WJ(e);
|
|
29519
|
-
}
|
|
29520
29533
|
function WJ(e) {
|
|
29521
|
-
return
|
|
29534
|
+
return GJ(e);
|
|
29522
29535
|
}
|
|
29523
29536
|
function GJ(e) {
|
|
29537
|
+
return qJ(KJ({ ...e }));
|
|
29538
|
+
}
|
|
29539
|
+
function KJ(e) {
|
|
29524
29540
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
29525
29541
|
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
29526
29542
|
for (let a of e.allOf) {
|
|
29527
|
-
let e =
|
|
29543
|
+
let e = GJ(a);
|
|
29528
29544
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
29529
29545
|
...r,
|
|
29530
29546
|
...e.gioConfig
|
|
@@ -29533,29 +29549,29 @@ function GJ(e) {
|
|
|
29533
29549
|
let a = { ...e };
|
|
29534
29550
|
return Object.keys(t).length > 0 && (a.properties = t), n.size > 0 && (a.required = Array.from(n)), r !== void 0 && (a.gioConfig = r), Object.keys(i).length > 0 && (a.dependencies = i), delete a.allOf, a;
|
|
29535
29551
|
}
|
|
29536
|
-
function
|
|
29537
|
-
return e.properties &&=
|
|
29552
|
+
function qJ(e) {
|
|
29553
|
+
return e.properties &&= JJ(e.properties, GJ), e.items &&= Array.isArray(e.items) ? e.items.map(GJ) : GJ(e.items), e.oneOf &&= e.oneOf.map(GJ), e.anyOf &&= e.anyOf.map(GJ), e.dependencies &&= VJ(e.dependencies, GJ), e;
|
|
29538
29554
|
}
|
|
29539
|
-
function
|
|
29555
|
+
function JJ(e, t) {
|
|
29540
29556
|
let n = {};
|
|
29541
29557
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
29542
29558
|
return n;
|
|
29543
29559
|
}
|
|
29544
29560
|
//#endregion
|
|
29545
29561
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
29546
|
-
function
|
|
29562
|
+
function YJ(e) {
|
|
29547
29563
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
29548
29564
|
}
|
|
29549
|
-
function
|
|
29565
|
+
function XJ(e) {
|
|
29550
29566
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
29551
29567
|
}
|
|
29552
|
-
function
|
|
29568
|
+
function ZJ(e) {
|
|
29553
29569
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
29554
29570
|
}
|
|
29555
|
-
function
|
|
29571
|
+
function QJ(e) {
|
|
29556
29572
|
return e.gioConfig?.uiType === "resource-type";
|
|
29557
29573
|
}
|
|
29558
|
-
function
|
|
29574
|
+
function $J(e) {
|
|
29559
29575
|
let t = e.deprecated;
|
|
29560
29576
|
if (t === !0) return !0;
|
|
29561
29577
|
if (typeof t == "string") {
|
|
@@ -29564,47 +29580,47 @@ function QJ(e) {
|
|
|
29564
29580
|
}
|
|
29565
29581
|
return !1;
|
|
29566
29582
|
}
|
|
29567
|
-
function $J(e) {
|
|
29568
|
-
return e.format === "gio-code-editor" ? e.type === "string" || Array.isArray(e.type) && e.type.includes("string") : !1;
|
|
29569
|
-
}
|
|
29570
29583
|
function eY(e) {
|
|
29571
|
-
return
|
|
29584
|
+
return e.format === "gio-code-editor" ? e.type === "string" || Array.isArray(e.type) && e.type.includes("string") : !1;
|
|
29572
29585
|
}
|
|
29573
29586
|
function tY(e) {
|
|
29587
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !YJ(e);
|
|
29588
|
+
}
|
|
29589
|
+
function nY(e) {
|
|
29574
29590
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
29575
29591
|
}
|
|
29576
29592
|
//#endregion
|
|
29577
29593
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
29578
|
-
function
|
|
29579
|
-
if (
|
|
29594
|
+
function rY(e) {
|
|
29595
|
+
if ($J(e)) return { deprecated: !0 };
|
|
29580
29596
|
let t = { ...e };
|
|
29581
29597
|
if (e.properties) {
|
|
29582
29598
|
let n = [];
|
|
29583
29599
|
t.properties = {};
|
|
29584
|
-
for (let [r, i] of Object.entries(e.properties))
|
|
29600
|
+
for (let [r, i] of Object.entries(e.properties)) $J(i) && n.push(r), t.properties[r] = rY(i);
|
|
29585
29601
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
29586
29602
|
}
|
|
29587
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
29603
|
+
return e.items && !Array.isArray(e.items) && (t.items = rY(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => !$J(e)).map(rY)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => !$J(e)).map(rY)), e.dependencies && (t.dependencies = VJ(e.dependencies, rY)), t;
|
|
29588
29604
|
}
|
|
29589
29605
|
//#endregion
|
|
29590
29606
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
29591
|
-
function
|
|
29607
|
+
function iY(e) {
|
|
29592
29608
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
29593
29609
|
}
|
|
29594
|
-
function
|
|
29610
|
+
function aY(e) {
|
|
29595
29611
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
29596
29612
|
}
|
|
29597
29613
|
//#endregion
|
|
29598
29614
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
29599
|
-
function
|
|
29600
|
-
return
|
|
29615
|
+
function oY(e) {
|
|
29616
|
+
return sY(e, e, []);
|
|
29601
29617
|
}
|
|
29602
|
-
function
|
|
29618
|
+
function sY(e, t, n) {
|
|
29603
29619
|
if (typeof e.$ref == "string") {
|
|
29604
29620
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
29605
|
-
let r =
|
|
29621
|
+
let r = cY(t, e.$ref);
|
|
29606
29622
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
29607
|
-
let i =
|
|
29623
|
+
let i = sY(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
29608
29624
|
...i,
|
|
29609
29625
|
...s
|
|
29610
29626
|
};
|
|
@@ -29616,25 +29632,25 @@ function oY(e, t, n) {
|
|
|
29616
29632
|
let r = { ...e };
|
|
29617
29633
|
if (r.properties) {
|
|
29618
29634
|
let e = {};
|
|
29619
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
29635
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = sY(a, t, n);
|
|
29620
29636
|
r.properties = e;
|
|
29621
29637
|
}
|
|
29622
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
29638
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => sY(e, t, n)) : sY(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => sY(e, t, n)), r.anyOf &&= r.anyOf.map((e) => sY(e, t, n)), r.allOf &&= r.allOf.map((e) => sY(e, t, n)), r.dependencies &&= VJ(r.dependencies, (e) => sY(e, t, n)), r.definitions) {
|
|
29623
29639
|
let e = {};
|
|
29624
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
29640
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = sY(a, t, n);
|
|
29625
29641
|
r.definitions = e;
|
|
29626
29642
|
}
|
|
29627
29643
|
if (r.$defs) {
|
|
29628
29644
|
let e = {};
|
|
29629
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
29645
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = sY(a, t, n);
|
|
29630
29646
|
r.$defs = e;
|
|
29631
29647
|
}
|
|
29632
29648
|
return r;
|
|
29633
29649
|
}
|
|
29634
|
-
function
|
|
29650
|
+
function cY(e, t) {
|
|
29635
29651
|
if (t === "#") return e;
|
|
29636
29652
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
29637
|
-
let n = t.slice(2).split("/").map(
|
|
29653
|
+
let n = t.slice(2).split("/").map(aY), r = e;
|
|
29638
29654
|
for (let e of n) {
|
|
29639
29655
|
if (typeof r != "object" || !r) return;
|
|
29640
29656
|
r = r[e];
|
|
@@ -29643,57 +29659,57 @@ function sY(e, t) {
|
|
|
29643
29659
|
}
|
|
29644
29660
|
//#endregion
|
|
29645
29661
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
29646
|
-
function
|
|
29647
|
-
let n =
|
|
29662
|
+
function lY(e, t = "") {
|
|
29663
|
+
let n = HJ(rY(WJ(oY(e)))), r = /* @__PURE__ */ new Map();
|
|
29648
29664
|
return {
|
|
29649
|
-
root:
|
|
29665
|
+
root: uY(n, "", !1, r, "", t),
|
|
29650
29666
|
nodeByPath: r,
|
|
29651
29667
|
variantIndices: /* @__PURE__ */ new Map()
|
|
29652
29668
|
};
|
|
29653
29669
|
}
|
|
29654
|
-
function
|
|
29670
|
+
function uY(e, t, n, r, i = "", a = "") {
|
|
29655
29671
|
let o = {
|
|
29656
29672
|
rhfPath: t,
|
|
29657
29673
|
schema: e,
|
|
29658
29674
|
isRequired: n
|
|
29659
29675
|
};
|
|
29660
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
29676
|
+
if (e.gioConfig?.displayIf && (o.displayIf = hY(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = hY(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
29661
29677
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
29662
29678
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
29663
29679
|
let e = t ? `${t}.${o}` : o;
|
|
29664
|
-
i.set(o,
|
|
29680
|
+
i.set(o, uY(s, e, n.has(o), r, t, a));
|
|
29665
29681
|
}
|
|
29666
29682
|
o.properties = i;
|
|
29667
29683
|
}
|
|
29668
29684
|
if (e.items && !Array.isArray(e.items)) {
|
|
29669
29685
|
let n = t ? `${t}.*` : "*";
|
|
29670
|
-
o.items =
|
|
29686
|
+
o.items = uY(e.items, n, !1, r, t, a);
|
|
29671
29687
|
}
|
|
29672
29688
|
let s = e.oneOf ?? e.anyOf;
|
|
29673
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
29674
|
-
let n =
|
|
29689
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = dY(s).map((e) => fY(e, t, a))), e.dependencies) {
|
|
29690
|
+
let n = _Y(e.dependencies, t, a);
|
|
29675
29691
|
n.length > 0 && (o.dependencyBranches = n);
|
|
29676
29692
|
}
|
|
29677
29693
|
return r.set(t, o), o;
|
|
29678
29694
|
}
|
|
29679
|
-
function
|
|
29695
|
+
function dY(e) {
|
|
29680
29696
|
let t = /* @__PURE__ */ new Set();
|
|
29681
29697
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
29682
29698
|
}
|
|
29683
|
-
function
|
|
29699
|
+
function fY(e, t, n) {
|
|
29684
29700
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
29685
29701
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
29686
|
-
let e =
|
|
29702
|
+
let e = pY(s);
|
|
29687
29703
|
e && a.push({
|
|
29688
29704
|
key: o,
|
|
29689
29705
|
value: e.value
|
|
29690
29706
|
});
|
|
29691
29707
|
let c = t ? `${t}.${o}` : o;
|
|
29692
|
-
i.set(o,
|
|
29708
|
+
i.set(o, mY(s, c, r.has(o), t, n));
|
|
29693
29709
|
}
|
|
29694
29710
|
let o;
|
|
29695
29711
|
if (e.dependencies) {
|
|
29696
|
-
let r =
|
|
29712
|
+
let r = _Y(e.dependencies, t, n);
|
|
29697
29713
|
r.length > 0 && (o = r);
|
|
29698
29714
|
}
|
|
29699
29715
|
return {
|
|
@@ -29703,21 +29719,21 @@ function dY(e, t, n) {
|
|
|
29703
29719
|
raw: e
|
|
29704
29720
|
};
|
|
29705
29721
|
}
|
|
29706
|
-
function
|
|
29722
|
+
function pY(e) {
|
|
29707
29723
|
if (e.const !== void 0) return { value: e.const };
|
|
29708
29724
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
29709
29725
|
}
|
|
29710
|
-
function
|
|
29711
|
-
return
|
|
29726
|
+
function mY(e, t, n, r, i) {
|
|
29727
|
+
return uY(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
29712
29728
|
}
|
|
29713
|
-
function
|
|
29729
|
+
function hY(e, t, n) {
|
|
29714
29730
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
29715
29731
|
for (let [a, o] of Object.entries(e.$eq)) {
|
|
29716
29732
|
if (a.startsWith("context.")) {
|
|
29717
29733
|
i.set(a.slice(8), o);
|
|
29718
29734
|
continue;
|
|
29719
29735
|
}
|
|
29720
|
-
let e =
|
|
29736
|
+
let e = gY(a, t, n);
|
|
29721
29737
|
if (e === null) {
|
|
29722
29738
|
console.warn(`[JsonSchemaForm] gioConfig path "${a}" is unsupported (expected value.X / ./X / ../X / context.X).`);
|
|
29723
29739
|
continue;
|
|
@@ -29729,7 +29745,7 @@ function mY(e, t, n) {
|
|
|
29729
29745
|
$eqContext: i
|
|
29730
29746
|
} : { $eq: r };
|
|
29731
29747
|
}
|
|
29732
|
-
function
|
|
29748
|
+
function gY(e, t, n) {
|
|
29733
29749
|
let r = null;
|
|
29734
29750
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
29735
29751
|
else if (e.startsWith("./")) {
|
|
@@ -29743,24 +29759,24 @@ function hY(e, t, n) {
|
|
|
29743
29759
|
}
|
|
29744
29760
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
29745
29761
|
}
|
|
29746
|
-
function
|
|
29762
|
+
function _Y(e, t, n) {
|
|
29747
29763
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
29748
|
-
let i =
|
|
29764
|
+
let i = vY(e, r);
|
|
29749
29765
|
if (!i) return [];
|
|
29750
29766
|
let a = t ? `${t}.${e}` : e;
|
|
29751
|
-
return i.map((r) =>
|
|
29767
|
+
return i.map((r) => yY(r, e, a, t, n));
|
|
29752
29768
|
});
|
|
29753
29769
|
}
|
|
29754
|
-
function
|
|
29770
|
+
function vY(e, t) {
|
|
29755
29771
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
29756
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
29772
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && pY(t.properties[e]) !== void 0) ? n.oneOf : (console.warn(`[JsonSchemaForm] dependencies."${e}".oneOf has at least one variant missing a \`const\` (or single-value \`enum\`) discriminator on "${e}". Skipping the whole dependency (no partial unfold).`), null) : (console.warn(`[JsonSchemaForm] dependencies."${e}" is not a discriminator-oneOf shape (only \`{ oneOf: [...] }\` with const discriminators is supported). Skipping.`), null);
|
|
29757
29773
|
}
|
|
29758
|
-
function
|
|
29759
|
-
let a =
|
|
29774
|
+
function yY(e, t, n, r, i) {
|
|
29775
|
+
let a = pY(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
29760
29776
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
29761
29777
|
if (n === t) continue;
|
|
29762
29778
|
let e = r ? `${r}.${n}` : n;
|
|
29763
|
-
s.set(n,
|
|
29779
|
+
s.set(n, mY(a, e, o.has(n), r, i));
|
|
29764
29780
|
}
|
|
29765
29781
|
let c = i ? `${i}.${n}` : n;
|
|
29766
29782
|
return {
|
|
@@ -29771,46 +29787,47 @@ function vY(e, t, n, r, i) {
|
|
|
29771
29787
|
}
|
|
29772
29788
|
//#endregion
|
|
29773
29789
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
29774
|
-
function
|
|
29790
|
+
function bY(e) {
|
|
29775
29791
|
let t;
|
|
29776
29792
|
try {
|
|
29777
|
-
t =
|
|
29793
|
+
t = WJ(oY(e));
|
|
29778
29794
|
} catch {
|
|
29779
29795
|
return;
|
|
29780
29796
|
}
|
|
29781
|
-
return
|
|
29797
|
+
return xY(t);
|
|
29782
29798
|
}
|
|
29783
|
-
function
|
|
29784
|
-
if (
|
|
29799
|
+
function xY(e) {
|
|
29800
|
+
if ($J(e)) return;
|
|
29785
29801
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
29786
29802
|
let t = {};
|
|
29787
29803
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
29788
|
-
let e =
|
|
29804
|
+
let e = xY(r);
|
|
29789
29805
|
e !== void 0 && (t[n] = e);
|
|
29790
29806
|
}
|
|
29791
|
-
let n = (e.oneOf ?? e.anyOf)?.find((e) =>
|
|
29792
|
-
if (n?.properties) {
|
|
29793
|
-
|
|
29807
|
+
let n = (e.oneOf ?? e.anyOf)?.find((e) => !$J(e));
|
|
29808
|
+
if (n?.properties) for (let [e, r] of Object.entries(n.properties)) {
|
|
29809
|
+
let n = pY(r);
|
|
29810
|
+
if (n) t[e] = structuredClone(n.value);
|
|
29794
29811
|
else if (!(e in t)) {
|
|
29795
|
-
let n =
|
|
29812
|
+
let n = xY(r);
|
|
29796
29813
|
n !== void 0 && (t[e] = n);
|
|
29797
29814
|
}
|
|
29798
29815
|
}
|
|
29799
29816
|
let r;
|
|
29800
29817
|
do
|
|
29801
|
-
r = Object.keys(t).length,
|
|
29818
|
+
r = Object.keys(t).length, SY(e.dependencies, t), SY(n?.dependencies, t);
|
|
29802
29819
|
while (Object.keys(t).length > r);
|
|
29803
29820
|
return Object.keys(t).length > 0 ? t : void 0;
|
|
29804
29821
|
}
|
|
29805
|
-
function
|
|
29822
|
+
function SY(e, t) {
|
|
29806
29823
|
for (let [n, r] of Object.entries(e ?? {})) {
|
|
29807
29824
|
if (t[n] === void 0 || typeof r != "object" || Array.isArray(r)) continue;
|
|
29808
|
-
let e = r.oneOf ?? [], i = e.map((e) =>
|
|
29825
|
+
let e = r.oneOf ?? [], i = e.map((e) => pY(e.properties?.[n] ?? {}));
|
|
29809
29826
|
i.some((e) => e === void 0) || e.forEach((e, r) => {
|
|
29810
29827
|
let a = i[r].value;
|
|
29811
29828
|
if (Array.isArray(a) ? a.includes(t[n]) : a === t[n]) for (let [n, r] of Object.entries(e.properties ?? {})) {
|
|
29812
29829
|
if (n in t) continue;
|
|
29813
|
-
let e =
|
|
29830
|
+
let e = xY(r);
|
|
29814
29831
|
e !== void 0 && (t[n] = e);
|
|
29815
29832
|
}
|
|
29816
29833
|
});
|
|
@@ -29818,7 +29835,7 @@ function xY(e, t) {
|
|
|
29818
29835
|
}
|
|
29819
29836
|
//#endregion
|
|
29820
29837
|
//#region src/composed/JsonSchemaForm/utils/legendVariant.ts
|
|
29821
|
-
function
|
|
29838
|
+
function CY(e) {
|
|
29822
29839
|
return e > 1 ? { variant: "overline" } : {
|
|
29823
29840
|
variant: "label",
|
|
29824
29841
|
className: "font-semibold"
|
|
@@ -29826,7 +29843,7 @@ function SY(e) {
|
|
|
29826
29843
|
}
|
|
29827
29844
|
//#endregion
|
|
29828
29845
|
//#region src/composed/JsonSchemaForm/fields/array/BlockableButton.tsx
|
|
29829
|
-
function
|
|
29846
|
+
function wY({ reason: e, onClick: n, className: r, ...i }) {
|
|
29830
29847
|
let a = We();
|
|
29831
29848
|
return e ? /* @__PURE__ */ U(WH, {
|
|
29832
29849
|
delayDuration: 300,
|
|
@@ -29854,7 +29871,7 @@ function CY({ reason: e, onClick: n, className: r, ...i }) {
|
|
|
29854
29871
|
}
|
|
29855
29872
|
//#endregion
|
|
29856
29873
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
29857
|
-
function
|
|
29874
|
+
function TY(e) {
|
|
29858
29875
|
if (e.default !== void 0) return e.default;
|
|
29859
29876
|
switch (e.type) {
|
|
29860
29877
|
case "string": return "";
|
|
@@ -29869,43 +29886,43 @@ function wY(e) {
|
|
|
29869
29886
|
}
|
|
29870
29887
|
//#endregion
|
|
29871
29888
|
//#region src/composed/JsonSchemaForm/fields/array/itemCount.ts
|
|
29872
|
-
function
|
|
29889
|
+
function EY(e, t) {
|
|
29873
29890
|
return Number.isFinite(t) ? `${e} / ${t}` : String(e);
|
|
29874
29891
|
}
|
|
29875
|
-
function
|
|
29876
|
-
return Number.isFinite(t) ? `${e} of ${t} ${
|
|
29892
|
+
function DY(e, t) {
|
|
29893
|
+
return Number.isFinite(t) ? `${e} of ${t} ${OY(t)}` : `${e} ${OY(e)}`;
|
|
29877
29894
|
}
|
|
29878
|
-
function
|
|
29895
|
+
function OY(e) {
|
|
29879
29896
|
return e === 1 ? "item" : "items";
|
|
29880
29897
|
}
|
|
29881
29898
|
//#endregion
|
|
29882
29899
|
//#region src/composed/JsonSchemaForm/fields/array/itemTitle.ts
|
|
29883
|
-
function
|
|
29900
|
+
function kY(e) {
|
|
29884
29901
|
return (typeof e?.title == "string" ? e.title.trim() : "") || "Item";
|
|
29885
29902
|
}
|
|
29886
|
-
function
|
|
29903
|
+
function AY(e) {
|
|
29887
29904
|
return e.split(" ").map((e) => /^[A-Z0-9]{2,}s?$/.test(e) ? e : e.toLowerCase()).join(" ");
|
|
29888
29905
|
}
|
|
29889
|
-
function
|
|
29890
|
-
return kY(
|
|
29906
|
+
function jY(e) {
|
|
29907
|
+
return AY(kY(e));
|
|
29891
29908
|
}
|
|
29892
29909
|
//#endregion
|
|
29893
29910
|
//#region src/composed/JsonSchemaForm/fields/array/summarizeItem.ts
|
|
29894
|
-
function
|
|
29911
|
+
function MY(e, t) {
|
|
29895
29912
|
let n = t?.properties;
|
|
29896
29913
|
if (!n || typeof e != "object" || !e) return;
|
|
29897
29914
|
let r = e, i = [];
|
|
29898
29915
|
for (let [e, t] of Object.entries(n)) {
|
|
29899
29916
|
let n = r[e];
|
|
29900
29917
|
if (!Array.isArray(n) || n.length === 0) continue;
|
|
29901
|
-
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ?
|
|
29918
|
+
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ? jY(a) : AY(T(t, e));
|
|
29902
29919
|
i.push(`${n.length} ${o}`);
|
|
29903
29920
|
}
|
|
29904
29921
|
return i.length > 0 ? i.join(" · ") : void 0;
|
|
29905
29922
|
}
|
|
29906
29923
|
//#endregion
|
|
29907
29924
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
29908
|
-
function
|
|
29925
|
+
function NY(e, t) {
|
|
29909
29926
|
let n = b(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = x({
|
|
29910
29927
|
control: n.control,
|
|
29911
29928
|
name: r
|
|
@@ -29925,16 +29942,16 @@ function MY(e, t) {
|
|
|
29925
29942
|
maxItems: u,
|
|
29926
29943
|
atMin: d,
|
|
29927
29944
|
atMax: f,
|
|
29928
|
-
addReason: !c && f ? `Maximum ${u} ${
|
|
29929
|
-
removeReason: !c && d && l > 0 ? `Minimum ${l} ${
|
|
29945
|
+
addReason: !c && f ? `Maximum ${u} ${OY(u)}` : void 0,
|
|
29946
|
+
removeReason: !c && d && l > 0 ? `Minimum ${l} ${OY(l)}` : void 0
|
|
29930
29947
|
};
|
|
29931
29948
|
}
|
|
29932
29949
|
//#endregion
|
|
29933
29950
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
29934
|
-
function
|
|
29935
|
-
let { schema: i } = e, { ctx: a, path: o, fields: s, append: c, remove: l, fieldState: u, isDisabled: d, maxItems: f, addReason: p, removeReason: m } =
|
|
29951
|
+
function PY({ node: e, name: n, depth: r }) {
|
|
29952
|
+
let { schema: i } = e, { ctx: a, path: o, fields: s, append: c, remove: l, fieldState: u, isDisabled: d, maxItems: f, addReason: p, removeReason: m } = NY(i, n), g = i.items, v = e.items, b = kY(g), x = LY(g), S = T(i, n), w = i.gioConfig?.uiBorder === "full", E = CY(r), D = Ye(null), O = !e.rhfPath.split(".").includes("*"), [k, M] = Xe();
|
|
29936
29953
|
function N() {
|
|
29937
|
-
c(
|
|
29954
|
+
c(RY(g), { shouldFocus: !1 }), M(s.length), requestAnimationFrame(() => {
|
|
29938
29955
|
D.current?.lastElementChild?.querySelector("input, select, textarea, [role=combobox], [role=switch], [role=checkbox]")?.focus(), M(void 0);
|
|
29939
29956
|
});
|
|
29940
29957
|
}
|
|
@@ -29950,12 +29967,12 @@ function NY({ node: e, name: n, depth: r }) {
|
|
|
29950
29967
|
variant: "outline",
|
|
29951
29968
|
"aria-hidden": "true",
|
|
29952
29969
|
className: "order-last ml-1.5 align-middle",
|
|
29953
|
-
children:
|
|
29970
|
+
children: EY(s.length, f)
|
|
29954
29971
|
})]
|
|
29955
29972
|
}),
|
|
29956
29973
|
/* @__PURE__ */ U("p", {
|
|
29957
29974
|
className: "sr-only",
|
|
29958
|
-
children:
|
|
29975
|
+
children: DY(s.length, f)
|
|
29959
29976
|
}),
|
|
29960
29977
|
i.description && /* @__PURE__ */ U(C, { children: i.description }),
|
|
29961
29978
|
i.gioConfig?.banner && /* @__PURE__ */ U(F, { banner: i.gioConfig.banner }),
|
|
@@ -29963,13 +29980,13 @@ function NY({ node: e, name: n, depth: r }) {
|
|
|
29963
29980
|
className: "text-sm text-muted-foreground",
|
|
29964
29981
|
children: [
|
|
29965
29982
|
"No ",
|
|
29966
|
-
|
|
29983
|
+
jY(g),
|
|
29967
29984
|
" yet."
|
|
29968
29985
|
]
|
|
29969
29986
|
}) : /* @__PURE__ */ U("div", {
|
|
29970
29987
|
ref: D,
|
|
29971
29988
|
className: t("flex flex-col", x && "gap-2"),
|
|
29972
|
-
children: s.map((e, t) => /* @__PURE__ */ U(
|
|
29989
|
+
children: s.map((e, t) => /* @__PURE__ */ U(FY, {
|
|
29973
29990
|
index: t,
|
|
29974
29991
|
path: o,
|
|
29975
29992
|
itemsNode: v,
|
|
@@ -29985,7 +30002,7 @@ function NY({ node: e, name: n, depth: r }) {
|
|
|
29985
30002
|
}),
|
|
29986
30003
|
/* @__PURE__ */ U("div", {
|
|
29987
30004
|
className: "pt-2",
|
|
29988
|
-
children: /* @__PURE__ */ W(
|
|
30005
|
+
children: /* @__PURE__ */ W(wY, {
|
|
29989
30006
|
reason: p,
|
|
29990
30007
|
disabled: d,
|
|
29991
30008
|
type: "button",
|
|
@@ -29996,7 +30013,7 @@ function NY({ node: e, name: n, depth: r }) {
|
|
|
29996
30013
|
children: [
|
|
29997
30014
|
/* @__PURE__ */ U(se, { "aria-hidden": "true" }),
|
|
29998
30015
|
"Add ",
|
|
29999
|
-
|
|
30016
|
+
jY(g)
|
|
30000
30017
|
]
|
|
30001
30018
|
})
|
|
30002
30019
|
}),
|
|
@@ -30007,11 +30024,11 @@ function NY({ node: e, name: n, depth: r }) {
|
|
|
30007
30024
|
]
|
|
30008
30025
|
});
|
|
30009
30026
|
}
|
|
30010
|
-
function
|
|
30027
|
+
function FY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o, defaultOpen: s, disabled: c, removeReason: l, onRemove: u, ctx: d }) {
|
|
30011
30028
|
let f = `${n}.${e}`, p = `${i} ${e + 1}`, m = M({
|
|
30012
30029
|
control: d.control,
|
|
30013
30030
|
name: f
|
|
30014
|
-
}), h = o ? void 0 :
|
|
30031
|
+
}), h = o ? void 0 : MY(m, r?.schema), { errors: g, submitCount: _ } = S({
|
|
30015
30032
|
control: d.control,
|
|
30016
30033
|
name: f
|
|
30017
30034
|
}), y = v(O(g, f)), [b, x] = Xe(s || _ > 0 && y > 0), [C, w] = Xe(_);
|
|
@@ -30022,13 +30039,13 @@ function PY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
30022
30039
|
basePath: f,
|
|
30023
30040
|
disabled: c
|
|
30024
30041
|
},
|
|
30025
|
-
children: /* @__PURE__ */ U(
|
|
30042
|
+
children: /* @__PURE__ */ U(TX, {
|
|
30026
30043
|
node: r,
|
|
30027
30044
|
name: "",
|
|
30028
30045
|
depth: a + 1,
|
|
30029
30046
|
hiddenTitle: p
|
|
30030
30047
|
})
|
|
30031
|
-
}), D = /* @__PURE__ */ U(
|
|
30048
|
+
}), D = /* @__PURE__ */ U(wY, {
|
|
30032
30049
|
reason: l,
|
|
30033
30050
|
disabled: c,
|
|
30034
30051
|
type: "button",
|
|
@@ -30061,7 +30078,7 @@ function PY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
30061
30078
|
"aria-label": [
|
|
30062
30079
|
`Toggle ${p}`,
|
|
30063
30080
|
h,
|
|
30064
|
-
T > 0 ?
|
|
30081
|
+
T > 0 ? IY(T) : void 0
|
|
30065
30082
|
].filter(Boolean).join(", "),
|
|
30066
30083
|
children: [
|
|
30067
30084
|
/* @__PURE__ */ U(fe, {
|
|
@@ -30090,7 +30107,7 @@ function PY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
30090
30107
|
"aria-hidden": "true",
|
|
30091
30108
|
"data-icon": "inline-start",
|
|
30092
30109
|
className: "overflow-visible"
|
|
30093
|
-
}),
|
|
30110
|
+
}), IY(T)]
|
|
30094
30111
|
})
|
|
30095
30112
|
]
|
|
30096
30113
|
})
|
|
@@ -30105,28 +30122,28 @@ function PY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
30105
30122
|
})]
|
|
30106
30123
|
});
|
|
30107
30124
|
}
|
|
30108
|
-
function
|
|
30125
|
+
function IY(e) {
|
|
30109
30126
|
return `${e} ${e === 1 ? "error" : "errors"}`;
|
|
30110
30127
|
}
|
|
30111
|
-
function
|
|
30128
|
+
function LY(e) {
|
|
30112
30129
|
if (Array.isArray(e.enum)) return !0;
|
|
30113
30130
|
let t = Array.isArray(e.type) ? e.type.find((e) => e !== "null") : e.type;
|
|
30114
30131
|
return t === "string" || t === "number" || t === "integer" || t === "boolean";
|
|
30115
30132
|
}
|
|
30116
|
-
function
|
|
30117
|
-
let t =
|
|
30118
|
-
return t === void 0 ?
|
|
30133
|
+
function RY(e) {
|
|
30134
|
+
let t = bY(e);
|
|
30135
|
+
return t === void 0 ? TY(e) : t;
|
|
30119
30136
|
}
|
|
30120
30137
|
//#endregion
|
|
30121
30138
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
30122
|
-
function
|
|
30123
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, maxItems: d, addReason: f, removeReason: p } =
|
|
30139
|
+
function zY({ node: e, name: t, depth: n }) {
|
|
30140
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, maxItems: d, addReason: f, removeReason: p } = NY(r, t), { testIdPrefix: m } = i, g = r.items, v = g && !Array.isArray(g) ? g.properties ?? {} : {}, b = Object.keys(v), x = T(r, t), S = kY(g);
|
|
30124
30141
|
function w() {
|
|
30125
30142
|
let e = {};
|
|
30126
|
-
for (let t of b) e[t] =
|
|
30143
|
+
for (let t of b) e[t] = TY(v[t]);
|
|
30127
30144
|
s(e, { shouldFocus: !1 });
|
|
30128
30145
|
}
|
|
30129
|
-
let E =
|
|
30146
|
+
let E = CY(n);
|
|
30130
30147
|
return /* @__PURE__ */ W(h, {
|
|
30131
30148
|
"aria-required": r.isRequired || void 0,
|
|
30132
30149
|
children: [
|
|
@@ -30138,12 +30155,12 @@ function RY({ node: e, name: t, depth: n }) {
|
|
|
30138
30155
|
variant: "outline",
|
|
30139
30156
|
"aria-hidden": "true",
|
|
30140
30157
|
className: "order-last ml-1.5 align-middle",
|
|
30141
|
-
children:
|
|
30158
|
+
children: EY(o.length, d)
|
|
30142
30159
|
})]
|
|
30143
30160
|
}),
|
|
30144
30161
|
/* @__PURE__ */ U("p", {
|
|
30145
30162
|
className: "sr-only",
|
|
30146
|
-
children:
|
|
30163
|
+
children: DY(o.length, d)
|
|
30147
30164
|
}),
|
|
30148
30165
|
r.description && /* @__PURE__ */ U(C, { children: r.description }),
|
|
30149
30166
|
r.gioConfig?.banner && /* @__PURE__ */ U(F, { banner: r.gioConfig.banner }),
|
|
@@ -30151,11 +30168,11 @@ function RY({ node: e, name: t, depth: n }) {
|
|
|
30151
30168
|
className: "overflow-hidden rounded-lg border",
|
|
30152
30169
|
children: /* @__PURE__ */ W(fW, { children: [/* @__PURE__ */ U(pW, { children: /* @__PURE__ */ W(gW, { children: [b.map((e) => /* @__PURE__ */ U(_W, {
|
|
30153
30170
|
scope: "col",
|
|
30154
|
-
children:
|
|
30171
|
+
children: HY(v[e], e)
|
|
30155
30172
|
}, e)), /* @__PURE__ */ U(_W, {
|
|
30156
30173
|
"aria-hidden": "true",
|
|
30157
30174
|
className: "w-px"
|
|
30158
|
-
})] }) }), /* @__PURE__ */ U(mW, { children: o.map((e, t) => /* @__PURE__ */ U(
|
|
30175
|
+
})] }) }), /* @__PURE__ */ U(mW, { children: o.map((e, t) => /* @__PURE__ */ U(BY, {
|
|
30159
30176
|
rowIndex: t,
|
|
30160
30177
|
itemTitle: S,
|
|
30161
30178
|
rowPath: `${a}.${t}`,
|
|
@@ -30166,7 +30183,7 @@ function RY({ node: e, name: t, depth: n }) {
|
|
|
30166
30183
|
onRemove: () => c(t)
|
|
30167
30184
|
}, e.id)) })] })
|
|
30168
30185
|
}),
|
|
30169
|
-
/* @__PURE__ */ U("div", { children: /* @__PURE__ */ W(
|
|
30186
|
+
/* @__PURE__ */ U("div", { children: /* @__PURE__ */ W(wY, {
|
|
30170
30187
|
reason: f,
|
|
30171
30188
|
disabled: u,
|
|
30172
30189
|
type: "button",
|
|
@@ -30177,7 +30194,7 @@ function RY({ node: e, name: t, depth: n }) {
|
|
|
30177
30194
|
children: [
|
|
30178
30195
|
/* @__PURE__ */ U(se, { "aria-hidden": "true" }),
|
|
30179
30196
|
"Add ",
|
|
30180
|
-
|
|
30197
|
+
jY(g)
|
|
30181
30198
|
]
|
|
30182
30199
|
}) }),
|
|
30183
30200
|
/* @__PURE__ */ U(_, {
|
|
@@ -30187,9 +30204,9 @@ function RY({ node: e, name: t, depth: n }) {
|
|
|
30187
30204
|
]
|
|
30188
30205
|
});
|
|
30189
30206
|
}
|
|
30190
|
-
function
|
|
30207
|
+
function BY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperties: i, disabled: a, removeReason: o, onRemove: s }) {
|
|
30191
30208
|
let { testIdPrefix: c } = b();
|
|
30192
|
-
return /* @__PURE__ */ W(gW, { children: [r.map((t) => /* @__PURE__ */ U(
|
|
30209
|
+
return /* @__PURE__ */ W(gW, { children: [r.map((t) => /* @__PURE__ */ U(VY, {
|
|
30193
30210
|
columnKey: t,
|
|
30194
30211
|
cellPath: `${n}.${t}`,
|
|
30195
30212
|
propSchema: i[t],
|
|
@@ -30197,7 +30214,7 @@ function zY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperti
|
|
|
30197
30214
|
disabled: a
|
|
30198
30215
|
}, t)), /* @__PURE__ */ U(vW, {
|
|
30199
30216
|
className: "w-px",
|
|
30200
|
-
children: /* @__PURE__ */ U(
|
|
30217
|
+
children: /* @__PURE__ */ U(wY, {
|
|
30201
30218
|
reason: o,
|
|
30202
30219
|
disabled: a,
|
|
30203
30220
|
type: "button",
|
|
@@ -30211,7 +30228,7 @@ function zY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperti
|
|
|
30211
30228
|
})
|
|
30212
30229
|
})] });
|
|
30213
30230
|
}
|
|
30214
|
-
function
|
|
30231
|
+
function VY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
30215
30232
|
let { control: a, testIdPrefix: o } = b(), { field: s, fieldState: c } = I({
|
|
30216
30233
|
control: a,
|
|
30217
30234
|
name: t
|
|
@@ -30224,17 +30241,17 @@ function BY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
30224
30241
|
onBlur: u,
|
|
30225
30242
|
disabled: i,
|
|
30226
30243
|
"aria-invalid": c.invalid,
|
|
30227
|
-
"aria-label": `${
|
|
30244
|
+
"aria-label": `${HY(n, e)} for row ${r + 1}`,
|
|
30228
30245
|
"data-testid": A(o, t),
|
|
30229
30246
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
30230
30247
|
}) });
|
|
30231
30248
|
}
|
|
30232
|
-
function
|
|
30249
|
+
function HY(e, t) {
|
|
30233
30250
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
30234
30251
|
}
|
|
30235
30252
|
//#endregion
|
|
30236
30253
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
30237
|
-
function
|
|
30254
|
+
function UY({ node: e, name: t, hiddenTitle: n }) {
|
|
30238
30255
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30239
30256
|
control: r,
|
|
30240
30257
|
name: c,
|
|
@@ -30268,7 +30285,7 @@ function HY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30268
30285
|
}
|
|
30269
30286
|
//#endregion
|
|
30270
30287
|
//#region src/composed/JsonSchemaForm/fields/const/ConstField.tsx
|
|
30271
|
-
function
|
|
30288
|
+
function WY({ node: e, name: t }) {
|
|
30272
30289
|
let { control: n, basePath: r, testIdPrefix: a } = b(), { schema: o } = e, s = t ? r ? `${r}.${t}` : t : r, { field: c, fieldState: l } = I({
|
|
30273
30290
|
control: n,
|
|
30274
30291
|
name: s
|
|
@@ -30289,18 +30306,18 @@ function UY({ node: e, name: t }) {
|
|
|
30289
30306
|
}
|
|
30290
30307
|
//#endregion
|
|
30291
30308
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
30292
|
-
function
|
|
30309
|
+
function GY(e, t) {
|
|
30293
30310
|
let n = t?.[String(e)];
|
|
30294
30311
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
30295
30312
|
}
|
|
30296
|
-
function
|
|
30313
|
+
function KY(e, t) {
|
|
30297
30314
|
return e.map((e, n) => ({
|
|
30298
30315
|
raw: e,
|
|
30299
30316
|
key: String(n),
|
|
30300
|
-
label:
|
|
30317
|
+
label: GY(e, t)
|
|
30301
30318
|
}));
|
|
30302
30319
|
}
|
|
30303
|
-
function
|
|
30320
|
+
function qY(e) {
|
|
30304
30321
|
return e.map((e, t) => ({
|
|
30305
30322
|
raw: e.const,
|
|
30306
30323
|
key: String(t),
|
|
@@ -30309,12 +30326,12 @@ function KY(e) {
|
|
|
30309
30326
|
}
|
|
30310
30327
|
//#endregion
|
|
30311
30328
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
30312
|
-
function
|
|
30329
|
+
function JY({ node: e, name: t, hiddenTitle: n }) {
|
|
30313
30330
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30314
30331
|
control: r,
|
|
30315
30332
|
name: c,
|
|
30316
30333
|
defaultValue: s.default
|
|
30317
|
-
}), { ref: d, onBlur: f } = l, p = n ?? T(s, t), m = a || s.readOnly === !0, h =
|
|
30334
|
+
}), { ref: d, onBlur: f } = l, p = n ?? T(s, t), m = a || s.readOnly === !0, h = YY(s), g = h.find((e) => Object.is(e.raw, l.value))?.key ?? "", v = (e) => h.find((t) => t.key === e)?.raw;
|
|
30318
30335
|
return /* @__PURE__ */ W(k, {
|
|
30319
30336
|
"data-invalid": u.invalid,
|
|
30320
30337
|
children: [
|
|
@@ -30351,18 +30368,18 @@ function qY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30351
30368
|
]
|
|
30352
30369
|
});
|
|
30353
30370
|
}
|
|
30354
|
-
function
|
|
30355
|
-
return
|
|
30371
|
+
function YY(e) {
|
|
30372
|
+
return YJ(e) ? qY(e.oneOf ?? []) : KY(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
30356
30373
|
}
|
|
30357
30374
|
//#endregion
|
|
30358
30375
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
30359
|
-
function
|
|
30376
|
+
function XY({ node: e, name: t }) {
|
|
30360
30377
|
let { control: n, basePath: r, disabled: i, testIdPrefix: a } = b(), { schema: o } = e, s = t ? r ? `${r}.${t}` : t : r, { field: c, fieldState: l } = I({
|
|
30361
30378
|
control: n,
|
|
30362
30379
|
name: s,
|
|
30363
30380
|
defaultValue: Array.isArray(o.default) ? o.default : []
|
|
30364
|
-
}), { ref: u, onBlur: d, onChange: f, value: p } = c, m = Cj(), h = T(o, t), g = i || o.readOnly === !0, v = o.items, y =
|
|
30365
|
-
return
|
|
30381
|
+
}), { ref: u, onBlur: d, onChange: f, value: p } = c, m = Cj(), h = T(o, t), g = i || o.readOnly === !0, v = o.items, y = KY(v.enum ?? [], v.gioConfig?.enumLabelMap), x = y.map((e) => e.label), S = (e) => y.find((t) => t.label === e)?.raw, w = (e) => String(S(e)), E = (e) => y.find((t) => Object.is(t.raw, e))?.label, D = (Array.isArray(c.value) ? c.value : []).map((e) => E(e)).filter((e) => e !== void 0);
|
|
30382
|
+
return ZY({
|
|
30366
30383
|
schema: o,
|
|
30367
30384
|
options: y,
|
|
30368
30385
|
value: p,
|
|
@@ -30418,19 +30435,19 @@ function YY({ node: e, name: t }) {
|
|
|
30418
30435
|
]
|
|
30419
30436
|
});
|
|
30420
30437
|
}
|
|
30421
|
-
function
|
|
30438
|
+
function ZY({ schema: e, options: t, value: n, onReset: r }) {
|
|
30422
30439
|
Ue(() => {
|
|
30423
30440
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
30424
30441
|
}, [e]);
|
|
30425
30442
|
}
|
|
30426
30443
|
//#endregion
|
|
30427
30444
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
30428
|
-
function
|
|
30445
|
+
function QY() {
|
|
30429
30446
|
return null;
|
|
30430
30447
|
}
|
|
30431
30448
|
//#endregion
|
|
30432
30449
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
30433
|
-
function
|
|
30450
|
+
function $Y({ node: e, name: t, hiddenTitle: n }) {
|
|
30434
30451
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30435
30452
|
control: r,
|
|
30436
30453
|
name: c
|
|
@@ -30478,8 +30495,8 @@ function QY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30478
30495
|
}
|
|
30479
30496
|
//#endregion
|
|
30480
30497
|
//#region src/composed/JsonSchemaForm/conditional/useDependencyBranchSync.ts
|
|
30481
|
-
function
|
|
30482
|
-
let i = qe(() => t.map((e) =>
|
|
30498
|
+
function eX(e, t, n, r) {
|
|
30499
|
+
let i = qe(() => t.map((e) => BJ(e.showIf, n)), [t, n]), a = qe(() => t.map((e) => Array.from(e.properties.keys()).map((e) => n ? `${n}.${e}` : e)), [t, n]), o = qe(() => {
|
|
30483
30500
|
let e = /* @__PURE__ */ new Set();
|
|
30484
30501
|
for (let t of i) for (let n of t.$eq.keys()) e.add(n);
|
|
30485
30502
|
return Array.from(e);
|
|
@@ -30511,23 +30528,24 @@ function $Y(e, t, n, r) {
|
|
|
30511
30528
|
r
|
|
30512
30529
|
]);
|
|
30513
30530
|
}
|
|
30514
|
-
function
|
|
30531
|
+
function tX({ branches: e, basePath: t }) {
|
|
30515
30532
|
let { control: n, externalContext: r } = b();
|
|
30516
|
-
return
|
|
30533
|
+
return eX(n, e, t, r), null;
|
|
30517
30534
|
}
|
|
30518
30535
|
//#endregion
|
|
30519
30536
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
30520
|
-
function
|
|
30537
|
+
function nX(e, t, n, r) {
|
|
30521
30538
|
if (e.length === 0) return -1;
|
|
30522
30539
|
let i = n?.get(t);
|
|
30523
|
-
return
|
|
30540
|
+
return rX(i, e) && iX(e[i], r) ? i : oX(e, r);
|
|
30524
30541
|
}
|
|
30525
|
-
function
|
|
30542
|
+
function rX(e, t) {
|
|
30526
30543
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
30527
30544
|
}
|
|
30528
|
-
function
|
|
30545
|
+
function iX(e, t) {
|
|
30529
30546
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
30530
30547
|
if (n.const !== void 0) return t(e) === n.const;
|
|
30548
|
+
if (Array.isArray(n.enum) && n.enum.length === 1) return t(e) === n.enum[0];
|
|
30531
30549
|
if (typeof n.pattern == "string") {
|
|
30532
30550
|
let r = t(e);
|
|
30533
30551
|
return typeof r == "string" && new RegExp(n.pattern).test(r);
|
|
@@ -30535,132 +30553,164 @@ function rX(e, t) {
|
|
|
30535
30553
|
return !0;
|
|
30536
30554
|
});
|
|
30537
30555
|
}
|
|
30538
|
-
function
|
|
30556
|
+
function aX(e, t) {
|
|
30557
|
+
return Object.keys(e.properties ?? {}).every((n) => t(n) === void 0 || iX({ properties: { [n]: e.properties[n] } }, t));
|
|
30558
|
+
}
|
|
30559
|
+
function oX(e, t) {
|
|
30539
30560
|
let n = 0, r = {
|
|
30540
30561
|
viable: !1,
|
|
30541
30562
|
matches: -1
|
|
30542
30563
|
};
|
|
30543
30564
|
return e.forEach((e, i) => {
|
|
30544
|
-
let a =
|
|
30545
|
-
|
|
30565
|
+
let a = sX(e, t);
|
|
30566
|
+
cX(a, r) > 0 && (n = i, r = a);
|
|
30546
30567
|
}), n;
|
|
30547
30568
|
}
|
|
30548
|
-
function
|
|
30549
|
-
|
|
30550
|
-
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
30551
|
-
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
30552
|
-
} : {
|
|
30569
|
+
function sX(e, t) {
|
|
30570
|
+
if (!aX(e, t)) return {
|
|
30553
30571
|
viable: !1,
|
|
30554
30572
|
matches: -1
|
|
30555
30573
|
};
|
|
30574
|
+
let n = e.required ?? [], r = Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length;
|
|
30575
|
+
return {
|
|
30576
|
+
viable: r > 0 && n.every((e) => t(e) !== void 0),
|
|
30577
|
+
matches: r
|
|
30578
|
+
};
|
|
30556
30579
|
}
|
|
30557
|
-
function
|
|
30580
|
+
function cX(e, t) {
|
|
30558
30581
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
30559
30582
|
}
|
|
30560
30583
|
//#endregion
|
|
30561
30584
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
30562
|
-
function
|
|
30563
|
-
let n = b(), { control: r, index: i, basePath: a, testIdPrefix: o } = n, { schema:
|
|
30564
|
-
|
|
30565
|
-
|
|
30566
|
-
|
|
30567
|
-
|
|
30585
|
+
function lX({ node: e, depth: t }) {
|
|
30586
|
+
let n = b(), { control: r, index: i, basePath: a, testIdPrefix: o, onVariantChange: s } = n, { schema: c } = e, l = i.variantIndices, u = qe(() => e.variants ?? [], [e.variants]), d = dX(a, n.name), [f, p] = Xe(() => nX(u.map((e) => e.raw), d, l, (e) => r._getWatch(a ? `${a}.${e}` : e))), [m, h] = Xe(!1), g = pX(a ? O(r._defaultValues, a) : r._defaultValues), _ = (u[f] ?? u[0])?.consts ?? [], v = _.map(({ key: e }) => a ? `${a}.${e}` : e), y = M({
|
|
30587
|
+
control: r,
|
|
30588
|
+
name: v.length > 0 ? v : [uX]
|
|
30589
|
+
}), x = _.every(({ value: e }, t) => JSON.stringify(y[t]) === JSON.stringify(e)), S = qe(() => u[f]?.dependencyBranches ?? [], [u, f]), w = Ye(!1);
|
|
30590
|
+
if (Ue(() => {
|
|
30591
|
+
w.current && (w.current = !1, s?.(d, f));
|
|
30592
|
+
}, [
|
|
30593
|
+
s,
|
|
30594
|
+
d,
|
|
30595
|
+
f
|
|
30596
|
+
]), u.length === 0) return null;
|
|
30597
|
+
let T = u[f] ?? u[0], E = n.disabled || c.readOnly === !0, D = `${a || "root"}-variant`, j = (e) => {
|
|
30598
|
+
if (e === f) {
|
|
30599
|
+
l.set(d, e), h(!0);
|
|
30600
|
+
return;
|
|
30601
|
+
}
|
|
30602
|
+
let t = u[f];
|
|
30568
30603
|
if (t) {
|
|
30569
30604
|
for (let e of t.properties.keys()) r.unregister(a ? `${a}.${e}` : e);
|
|
30570
30605
|
for (let e of t.dependencyBranches ?? []) for (let t of e.properties.keys()) r.unregister(a ? `${a}.${t}` : t);
|
|
30571
30606
|
}
|
|
30572
|
-
|
|
30573
|
-
},
|
|
30607
|
+
l.set(d, e), w.current = !0, h(!0), p(e);
|
|
30608
|
+
}, N = t === 0 ? c.title || "Variant" : null;
|
|
30574
30609
|
return /* @__PURE__ */ W($e, { children: [
|
|
30575
30610
|
/* @__PURE__ */ W(k, { children: [
|
|
30576
|
-
|
|
30577
|
-
htmlFor:
|
|
30578
|
-
children:
|
|
30611
|
+
N !== null && /* @__PURE__ */ U(R, {
|
|
30612
|
+
htmlFor: D,
|
|
30613
|
+
children: N
|
|
30579
30614
|
}),
|
|
30580
30615
|
/* @__PURE__ */ W(wH, {
|
|
30581
|
-
value: String(
|
|
30582
|
-
onValueChange: (e) =>
|
|
30583
|
-
disabled:
|
|
30616
|
+
value: x ? String(f) : "",
|
|
30617
|
+
onValueChange: (e) => j(Number(e)),
|
|
30618
|
+
disabled: E,
|
|
30584
30619
|
children: [/* @__PURE__ */ U(DH, {
|
|
30585
|
-
id:
|
|
30586
|
-
"aria-label":
|
|
30620
|
+
id: D,
|
|
30621
|
+
"aria-label": N === null ? "Variant" : void 0,
|
|
30587
30622
|
"data-testid": A(o, a, "variant"),
|
|
30588
30623
|
children: /* @__PURE__ */ U(EH, { placeholder: "Select a variant…" })
|
|
30589
|
-
}), /* @__PURE__ */ U(OH, { children:
|
|
30624
|
+
}), /* @__PURE__ */ U(OH, { children: u.map((e, t) => /* @__PURE__ */ U(AH, {
|
|
30590
30625
|
value: String(t),
|
|
30591
30626
|
"data-testid": A(o, a, `variant-option-${t}`),
|
|
30592
30627
|
children: e.raw.title ?? `Variant ${t + 1}`
|
|
30593
30628
|
}, t)) })]
|
|
30594
30629
|
}),
|
|
30595
|
-
t === 0 &&
|
|
30596
|
-
|
|
30597
|
-
|
|
30598
|
-
|
|
30630
|
+
t === 0 && c.description && /* @__PURE__ */ U(C, { children: c.description }),
|
|
30631
|
+
c.gioConfig?.banner && /* @__PURE__ */ U(F, { banner: c.gioConfig.banner }),
|
|
30632
|
+
T.raw.description && /* @__PURE__ */ U(C, { children: T.raw.description }),
|
|
30633
|
+
T.raw.gioConfig?.banner && /* @__PURE__ */ U(F, { banner: T.raw.gioConfig.banner })
|
|
30599
30634
|
] }),
|
|
30600
|
-
|
|
30635
|
+
T.consts.map(({ key: e, value: t }) => /* @__PURE__ */ U(fX, {
|
|
30601
30636
|
path: a ? `${a}.${e}` : e,
|
|
30602
|
-
value: t
|
|
30637
|
+
value: t,
|
|
30638
|
+
fill: g,
|
|
30639
|
+
picked: m
|
|
30603
30640
|
}, e)),
|
|
30604
|
-
Array.from(
|
|
30641
|
+
Array.from(T.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ U(TX, {
|
|
30605
30642
|
node: n,
|
|
30606
30643
|
name: e,
|
|
30607
30644
|
depth: t + 1
|
|
30608
|
-
}, `${
|
|
30609
|
-
|
|
30610
|
-
branches:
|
|
30645
|
+
}, `${f}-${e}`)),
|
|
30646
|
+
S.length > 0 && /* @__PURE__ */ U(tX, {
|
|
30647
|
+
branches: S,
|
|
30611
30648
|
basePath: a
|
|
30612
30649
|
}),
|
|
30613
|
-
|
|
30614
|
-
condition:
|
|
30615
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ U(
|
|
30650
|
+
S.map((e, n) => /* @__PURE__ */ U(IJ, {
|
|
30651
|
+
condition: BJ(e.showIf, a),
|
|
30652
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ U(TX, {
|
|
30616
30653
|
node: n,
|
|
30617
30654
|
name: e,
|
|
30618
30655
|
depth: t + 1
|
|
30619
30656
|
}, e))
|
|
30620
|
-
}, `${
|
|
30657
|
+
}, `${f}-var-dep-${n}`))
|
|
30621
30658
|
] });
|
|
30622
30659
|
}
|
|
30623
|
-
|
|
30624
|
-
|
|
30625
|
-
|
|
30660
|
+
var uX = "__no-discriminator__";
|
|
30661
|
+
function dX(e, t) {
|
|
30662
|
+
return t ? e === t ? "" : e.startsWith(`${t}.`) ? e.slice(t.length + 1) : e : e;
|
|
30663
|
+
}
|
|
30664
|
+
function fX({ path: e, value: t, fill: n, picked: r }) {
|
|
30665
|
+
let { control: i } = b(), { field: a } = I({
|
|
30666
|
+
control: i,
|
|
30626
30667
|
name: e
|
|
30627
|
-
}), { onChange:
|
|
30668
|
+
}), { onChange: o, value: s } = a;
|
|
30628
30669
|
return Ue(() => {
|
|
30629
|
-
|
|
30630
|
-
}, [
|
|
30670
|
+
(r ? JSON.stringify(s) !== JSON.stringify(t) : n && s === void 0) && o(structuredClone(t));
|
|
30671
|
+
}, [
|
|
30672
|
+
n,
|
|
30673
|
+
r,
|
|
30674
|
+
s,
|
|
30675
|
+
o,
|
|
30676
|
+
t
|
|
30677
|
+
]), null;
|
|
30678
|
+
}
|
|
30679
|
+
function pX(e) {
|
|
30680
|
+
return e == null ? !0 : typeof e != "object" || Array.isArray(e) ? !1 : Object.values(e).every((e) => e === void 0);
|
|
30631
30681
|
}
|
|
30632
30682
|
//#endregion
|
|
30633
30683
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
30634
|
-
function
|
|
30635
|
-
let a = b(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c =
|
|
30684
|
+
function mX({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
30685
|
+
let a = b(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c = tY(o) || nY(o), l = qe(() => e.dependencyBranches ?? [], [e.dependencyBranches]), u = l.length > 0, d = (e.properties || c || u) && /* @__PURE__ */ U(P.Provider, {
|
|
30636
30686
|
value: {
|
|
30637
30687
|
...a,
|
|
30638
30688
|
basePath: s
|
|
30639
30689
|
},
|
|
30640
30690
|
children: /* @__PURE__ */ W(L, { children: [
|
|
30641
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(
|
|
30691
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(TX, {
|
|
30642
30692
|
node: t,
|
|
30643
30693
|
name: e,
|
|
30644
30694
|
depth: r + 1
|
|
30645
30695
|
}, e)),
|
|
30646
|
-
u && /* @__PURE__ */ U(
|
|
30696
|
+
u && /* @__PURE__ */ U(tX, {
|
|
30647
30697
|
branches: l,
|
|
30648
30698
|
basePath: s
|
|
30649
30699
|
}),
|
|
30650
30700
|
l.map((e, t) => /* @__PURE__ */ U(IJ, {
|
|
30651
|
-
condition:
|
|
30652
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(
|
|
30701
|
+
condition: BJ(e.showIf, s),
|
|
30702
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ U(TX, {
|
|
30653
30703
|
node: t,
|
|
30654
30704
|
name: e,
|
|
30655
30705
|
depth: r + 1
|
|
30656
30706
|
}, e))
|
|
30657
30707
|
}, `dep-${t}`)),
|
|
30658
|
-
c && /* @__PURE__ */ U(
|
|
30708
|
+
c && /* @__PURE__ */ U(lX, {
|
|
30659
30709
|
node: e,
|
|
30660
30710
|
depth: r
|
|
30661
30711
|
})
|
|
30662
30712
|
] })
|
|
30663
|
-
}), f = typeof o.title == "string" && o.title.length > 0 || n !== void 0 && n.length > 0, p = o.gioConfig?.uiBorder === "full", m =
|
|
30713
|
+
}), f = typeof o.title == "string" && o.title.length > 0 || n !== void 0 && n.length > 0, p = o.gioConfig?.uiBorder === "full", m = CY(r);
|
|
30664
30714
|
return r === 0 || !f ? /* @__PURE__ */ U($e, { children: d }) : /* @__PURE__ */ W(h, {
|
|
30665
30715
|
"aria-label": i,
|
|
30666
30716
|
className: t("min-w-0", p ? t("rounded-lg border border-border px-5 pb-5", i === void 0 ? "pt-2" : "pt-5") : void 0),
|
|
@@ -30679,7 +30729,7 @@ function lX({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
|
30679
30729
|
}
|
|
30680
30730
|
//#endregion
|
|
30681
30731
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
30682
|
-
function
|
|
30732
|
+
function hX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, "data-testid": o, ...s }) {
|
|
30683
30733
|
let [c, l] = Xe(!1);
|
|
30684
30734
|
return /* @__PURE__ */ W($A, {
|
|
30685
30735
|
className: e,
|
|
@@ -30707,15 +30757,15 @@ function uX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
30707
30757
|
})]
|
|
30708
30758
|
});
|
|
30709
30759
|
}
|
|
30710
|
-
|
|
30760
|
+
hX.displayName = "PasswordInput";
|
|
30711
30761
|
//#endregion
|
|
30712
30762
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
30713
|
-
var
|
|
30714
|
-
function
|
|
30763
|
+
var gX = "{#request.headers['x-custom'] == 'value'}";
|
|
30764
|
+
function _X({ node: n, name: r, hiddenTitle: i }) {
|
|
30715
30765
|
let { control: a, basePath: o, disabled: s, testIdPrefix: c } = b(), { schema: l } = n, u = r ? o ? `${o}.${r}` : r : o, { field: d, fieldState: f } = I({
|
|
30716
30766
|
control: a,
|
|
30717
30767
|
name: u
|
|
30718
|
-
}), p = i ?? T(l, r), m = s || l.readOnly === !0, h = f.invalid, g = typeof d.value == "string" ? d.value : "", v = l.gioConfig?.el === !0, y = (Array.isArray(l.examples) && l.examples[0] !== void 0 && l.examples[0] !== null ? String(l.examples[0]) : void 0) ?? (l.default !== void 0 && l.default !== null ? String(l.default) : void 0) ?? (v ?
|
|
30768
|
+
}), p = i ?? T(l, r), m = s || l.readOnly === !0, h = f.invalid, g = typeof d.value == "string" ? d.value : "", v = l.gioConfig?.el === !0, y = (Array.isArray(l.examples) && l.examples[0] !== void 0 && l.examples[0] !== null ? String(l.examples[0]) : void 0) ?? (l.default !== void 0 && l.default !== null ? String(l.default) : void 0) ?? (v ? gX : void 0), x = v ? "font-mono text-xs" : void 0, S = {
|
|
30719
30769
|
id: u,
|
|
30720
30770
|
value: g,
|
|
30721
30771
|
onChange: d.onChange,
|
|
@@ -30744,7 +30794,7 @@ function fX({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30744
30794
|
l.format === "text" ? /* @__PURE__ */ U(e, {
|
|
30745
30795
|
...S,
|
|
30746
30796
|
className: x
|
|
30747
|
-
}) : l.format === "password" ? /* @__PURE__ */ U(
|
|
30797
|
+
}) : l.format === "password" ? /* @__PURE__ */ U(hX, {
|
|
30748
30798
|
...S,
|
|
30749
30799
|
pattern: l.pattern
|
|
30750
30800
|
}) : /* @__PURE__ */ U(QA, {
|
|
@@ -30763,23 +30813,23 @@ function fX({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30763
30813
|
}
|
|
30764
30814
|
//#endregion
|
|
30765
30815
|
//#region src/composed/JsonSchemaForm/fields/resource/ResourceTypeField.tsx
|
|
30766
|
-
function
|
|
30767
|
-
let { externalContext: n } = b(), r =
|
|
30768
|
-
return r === null ? /* @__PURE__ */ U(
|
|
30816
|
+
function vX({ node: e, name: t }) {
|
|
30817
|
+
let { externalContext: n } = b(), r = xX(n);
|
|
30818
|
+
return r === null ? /* @__PURE__ */ U(_X, {
|
|
30769
30819
|
node: e,
|
|
30770
30820
|
name: t
|
|
30771
|
-
}) : /* @__PURE__ */ U(
|
|
30821
|
+
}) : /* @__PURE__ */ U(yX, {
|
|
30772
30822
|
node: e,
|
|
30773
30823
|
name: t,
|
|
30774
30824
|
injected: r
|
|
30775
30825
|
});
|
|
30776
30826
|
}
|
|
30777
|
-
function
|
|
30827
|
+
function yX({ node: e, name: t, injected: n }) {
|
|
30778
30828
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30779
30829
|
control: r,
|
|
30780
30830
|
name: c,
|
|
30781
30831
|
defaultValue: s.default
|
|
30782
|
-
}), { ref: d, onBlur: f } = l, p =
|
|
30832
|
+
}), { ref: d, onBlur: f } = l, p = bX(s.gioConfig?.uiTypeProps?.resourceType), m = (e) => p.length === 0 || p.some((t) => e.startsWith(t)), h = n.filter((e) => m(e.type)).map((e) => e.name), g = typeof l.value == "string" ? l.value : "";
|
|
30783
30833
|
g !== "" && !h.includes(g) && h.unshift(g);
|
|
30784
30834
|
let v = T(s, t), y = a || s.readOnly === !0, x = h.length === 0 ? "No matching resources on this API" : "Select a resource…";
|
|
30785
30835
|
return /* @__PURE__ */ W(k, {
|
|
@@ -30817,91 +30867,131 @@ function mX({ node: e, name: t, injected: n }) {
|
|
|
30817
30867
|
]
|
|
30818
30868
|
});
|
|
30819
30869
|
}
|
|
30820
|
-
function
|
|
30870
|
+
function bX(e) {
|
|
30821
30871
|
return typeof e == "string" ? [e] : Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
30822
30872
|
}
|
|
30823
|
-
function
|
|
30873
|
+
function xX(e) {
|
|
30824
30874
|
let t = e?.resources;
|
|
30825
30875
|
return Array.isArray(t) ? t.filter((e) => typeof e == "object" && !!e && typeof e.name == "string" && typeof e.type == "string") : null;
|
|
30826
30876
|
}
|
|
30827
30877
|
//#endregion
|
|
30878
|
+
//#region src/composed/JsonSchemaForm/utils/fieldKind.ts
|
|
30879
|
+
function SX(e) {
|
|
30880
|
+
let t = CX(e.type);
|
|
30881
|
+
if (e.const !== void 0 && e.type === void 0 && e.enum === void 0) return "const";
|
|
30882
|
+
if (Array.isArray(e.enum) && e.enum.length > 0 || YJ(e)) return "enum";
|
|
30883
|
+
if (XJ(e)) return "multiSelect";
|
|
30884
|
+
if (ZJ(e)) return "headersArray";
|
|
30885
|
+
if (eY(e)) return "codeEditor";
|
|
30886
|
+
if (t === "null") return "null";
|
|
30887
|
+
if (t === "boolean") return "boolean";
|
|
30888
|
+
if (t === "integer" || t === "number") return "number";
|
|
30889
|
+
if (QJ(e)) return "resourceType";
|
|
30890
|
+
if (t === "string") return "string";
|
|
30891
|
+
if (e.properties || t === "object" || tY(e) || nY(e)) return "object";
|
|
30892
|
+
if (t === "array" && e.items && !Array.isArray(e.items)) return "array";
|
|
30893
|
+
}
|
|
30894
|
+
function CX(e) {
|
|
30895
|
+
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
30896
|
+
}
|
|
30897
|
+
//#endregion
|
|
30828
30898
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
30829
|
-
var
|
|
30830
|
-
function
|
|
30831
|
-
let { basePath: i } = b(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = qe(() => [s], [s]), l = qe(() =>
|
|
30899
|
+
var wX = ze(() => import("./CodeEditorField-DJcqc1vU.js").then((e) => ({ default: e.CodeEditorField })));
|
|
30900
|
+
function TX({ node: e, name: t, depth: n = 0, hiddenTitle: r }) {
|
|
30901
|
+
let { basePath: i } = b(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = qe(() => [s], [s]), l = qe(() => Object.prototype.hasOwnProperty.call(a, "default") ? {
|
|
30902
|
+
path: s,
|
|
30903
|
+
value: a.default
|
|
30904
|
+
} : void 0, [a, s]), u = qe(() => e.displayIf ? BJ(e.displayIf, i) : void 0, [e.displayIf, i]), d = qe(() => e.disableIf ? BJ(e.disableIf, i) : void 0, [e.disableIf, i]);
|
|
30832
30905
|
if (a.deprecated === !0) return null;
|
|
30833
|
-
let
|
|
30834
|
-
return
|
|
30906
|
+
let f = EX(e, o, t, n, r);
|
|
30907
|
+
return f === null ? null : (d && (f = /* @__PURE__ */ U(RJ, {
|
|
30908
|
+
condition: d,
|
|
30909
|
+
children: f
|
|
30910
|
+
})), u ? /* @__PURE__ */ U(IJ, {
|
|
30835
30911
|
condition: u,
|
|
30836
|
-
children: d
|
|
30837
|
-
})), l ? /* @__PURE__ */ U(IJ, {
|
|
30838
|
-
condition: l,
|
|
30839
30912
|
unregisterOnHide: c,
|
|
30840
|
-
|
|
30841
|
-
|
|
30842
|
-
}
|
|
30843
|
-
|
|
30844
|
-
|
|
30845
|
-
|
|
30846
|
-
|
|
30847
|
-
|
|
30848
|
-
}) : Array.isArray(a.enum) && a.enum.length > 0 || JJ(a) ? /* @__PURE__ */ U(qY, {
|
|
30849
|
-
node: e,
|
|
30850
|
-
name: t,
|
|
30851
|
-
hiddenTitle: i
|
|
30852
|
-
}) : YJ(a) ? /* @__PURE__ */ U(YY, {
|
|
30853
|
-
node: e,
|
|
30854
|
-
name: t
|
|
30855
|
-
}) : XJ(a) ? /* @__PURE__ */ U(RY, {
|
|
30856
|
-
node: e,
|
|
30857
|
-
name: t,
|
|
30858
|
-
depth: r
|
|
30859
|
-
}) : $J(a) ? /* @__PURE__ */ U(Fe, {
|
|
30860
|
-
fallback: null,
|
|
30861
|
-
children: /* @__PURE__ */ U(_X, {
|
|
30913
|
+
defaultOnReveal: l,
|
|
30914
|
+
children: f
|
|
30915
|
+
}) : f);
|
|
30916
|
+
}
|
|
30917
|
+
function EX(e, t, n, r, i) {
|
|
30918
|
+
let { schema: a } = e, o = SX(a);
|
|
30919
|
+
switch (o) {
|
|
30920
|
+
case "const": return /* @__PURE__ */ U(WY, {
|
|
30862
30921
|
node: e,
|
|
30863
30922
|
name: t
|
|
30864
|
-
})
|
|
30865
|
-
|
|
30866
|
-
|
|
30867
|
-
|
|
30868
|
-
|
|
30869
|
-
|
|
30870
|
-
|
|
30871
|
-
|
|
30872
|
-
|
|
30873
|
-
|
|
30874
|
-
|
|
30875
|
-
|
|
30876
|
-
|
|
30877
|
-
|
|
30878
|
-
|
|
30879
|
-
|
|
30880
|
-
|
|
30881
|
-
|
|
30882
|
-
|
|
30883
|
-
|
|
30884
|
-
|
|
30885
|
-
|
|
30886
|
-
|
|
30887
|
-
|
|
30888
|
-
|
|
30889
|
-
|
|
30890
|
-
|
|
30891
|
-
|
|
30892
|
-
|
|
30923
|
+
});
|
|
30924
|
+
case "enum": return /* @__PURE__ */ U(JY, {
|
|
30925
|
+
node: e,
|
|
30926
|
+
name: t,
|
|
30927
|
+
hiddenTitle: i
|
|
30928
|
+
});
|
|
30929
|
+
case "multiSelect": return /* @__PURE__ */ U(XY, {
|
|
30930
|
+
node: e,
|
|
30931
|
+
name: t
|
|
30932
|
+
});
|
|
30933
|
+
case "headersArray": return /* @__PURE__ */ U(zY, {
|
|
30934
|
+
node: e,
|
|
30935
|
+
name: t,
|
|
30936
|
+
depth: r
|
|
30937
|
+
});
|
|
30938
|
+
case "codeEditor": return /* @__PURE__ */ U(Fe, {
|
|
30939
|
+
fallback: null,
|
|
30940
|
+
children: /* @__PURE__ */ U(wX, {
|
|
30941
|
+
node: e,
|
|
30942
|
+
name: t
|
|
30943
|
+
})
|
|
30944
|
+
});
|
|
30945
|
+
case "null": return /* @__PURE__ */ U(QY, {});
|
|
30946
|
+
case "boolean": return /* @__PURE__ */ U(UY, {
|
|
30947
|
+
node: e,
|
|
30948
|
+
name: t,
|
|
30949
|
+
hiddenTitle: i
|
|
30950
|
+
});
|
|
30951
|
+
case "number": return /* @__PURE__ */ U($Y, {
|
|
30952
|
+
node: e,
|
|
30953
|
+
name: t,
|
|
30954
|
+
hiddenTitle: i
|
|
30955
|
+
});
|
|
30956
|
+
case "resourceType": return /* @__PURE__ */ U(vX, {
|
|
30957
|
+
node: e,
|
|
30958
|
+
name: t
|
|
30959
|
+
});
|
|
30960
|
+
case "string": return /* @__PURE__ */ U(_X, {
|
|
30961
|
+
node: e,
|
|
30962
|
+
name: t,
|
|
30963
|
+
hiddenTitle: i
|
|
30964
|
+
});
|
|
30965
|
+
case "object": return /* @__PURE__ */ U(mX, {
|
|
30966
|
+
node: e,
|
|
30967
|
+
name: n,
|
|
30968
|
+
depth: r,
|
|
30969
|
+
hiddenTitle: i
|
|
30970
|
+
});
|
|
30971
|
+
case "array": return /* @__PURE__ */ U(PY, {
|
|
30972
|
+
node: e,
|
|
30973
|
+
name: n,
|
|
30974
|
+
depth: r
|
|
30975
|
+
});
|
|
30976
|
+
case void 0: return console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${DX(a)}). Field is omitted.`), null;
|
|
30977
|
+
default: return o;
|
|
30978
|
+
}
|
|
30893
30979
|
}
|
|
30894
|
-
function
|
|
30980
|
+
function DX(e) {
|
|
30895
30981
|
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" : "unknown";
|
|
30896
30982
|
}
|
|
30897
30983
|
//#endregion
|
|
30898
30984
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
30899
|
-
function
|
|
30900
|
-
let
|
|
30985
|
+
function OX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i, "data-testid": a, variantPicks: o, onVariantChange: s }) {
|
|
30986
|
+
let c = qe(() => {
|
|
30901
30987
|
try {
|
|
30988
|
+
let t = lY(e, n);
|
|
30902
30989
|
return {
|
|
30903
30990
|
ok: !0,
|
|
30904
|
-
value:
|
|
30991
|
+
value: o ? {
|
|
30992
|
+
...t,
|
|
30993
|
+
variantIndices: o
|
|
30994
|
+
} : t
|
|
30905
30995
|
};
|
|
30906
30996
|
} catch (e) {
|
|
30907
30997
|
return {
|
|
@@ -30909,40 +30999,252 @@ function SX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i,
|
|
|
30909
30999
|
error: e instanceof Error ? e.message : "Unknown schema error"
|
|
30910
31000
|
};
|
|
30911
31001
|
}
|
|
30912
|
-
}, [
|
|
31002
|
+
}, [
|
|
31003
|
+
e,
|
|
31004
|
+
n,
|
|
31005
|
+
o
|
|
31006
|
+
]), l = qe(() => c.ok ? {
|
|
30913
31007
|
ok: !0,
|
|
30914
31008
|
contextValue: {
|
|
30915
31009
|
control: t,
|
|
30916
31010
|
basePath: n,
|
|
30917
31011
|
disabled: r,
|
|
30918
31012
|
externalContext: i,
|
|
30919
|
-
|
|
31013
|
+
name: n,
|
|
31014
|
+
onVariantChange: s,
|
|
31015
|
+
index: c.value,
|
|
30920
31016
|
testIdPrefix: a
|
|
30921
31017
|
}
|
|
30922
31018
|
} : {
|
|
30923
31019
|
ok: !1,
|
|
30924
|
-
error:
|
|
31020
|
+
error: c.error
|
|
30925
31021
|
}, [
|
|
30926
|
-
|
|
31022
|
+
c,
|
|
30927
31023
|
t,
|
|
30928
31024
|
n,
|
|
30929
31025
|
r,
|
|
30930
31026
|
i,
|
|
30931
|
-
a
|
|
31027
|
+
a,
|
|
31028
|
+
s
|
|
30932
31029
|
]);
|
|
30933
|
-
return
|
|
30934
|
-
value:
|
|
30935
|
-
children: /* @__PURE__ */ U(
|
|
31030
|
+
return l.ok ? /* @__PURE__ */ U(P.Provider, {
|
|
31031
|
+
value: l.contextValue,
|
|
31032
|
+
children: /* @__PURE__ */ U(TX, { node: l.contextValue.index.root })
|
|
30936
31033
|
}) : /* @__PURE__ */ W("p", {
|
|
30937
31034
|
role: "alert",
|
|
30938
31035
|
className: "text-sm text-destructive",
|
|
30939
31036
|
"data-testid": A(a, "schema-error"),
|
|
30940
|
-
children: ["Schema error: ",
|
|
31037
|
+
children: ["Schema error: ", l.error]
|
|
31038
|
+
});
|
|
31039
|
+
}
|
|
31040
|
+
//#endregion
|
|
31041
|
+
//#region src/composed/JsonSchemaForm/schema/visibleFields.ts
|
|
31042
|
+
var kX = [];
|
|
31043
|
+
function AX(e, t, n, r) {
|
|
31044
|
+
let i = [...e.properties ?? []], a = [...e.dependencyBranches ?? []], o = jX(e, t, n, r), s = o === void 0 ? void 0 : e.variants?.[o];
|
|
31045
|
+
s && (i.push(...s.properties), a.push(...s.dependencyBranches ?? []));
|
|
31046
|
+
let c = [];
|
|
31047
|
+
for (let e of a) NX(e.showIf, n, r) ? i.push(...e.properties) : c.push(...e.properties.keys());
|
|
31048
|
+
let l = new Set(i.map(([e]) => e)), u = new Set(c.filter((e) => !l.has(e))), d = i.map(([e, t]) => ({
|
|
31049
|
+
key: e,
|
|
31050
|
+
node: t,
|
|
31051
|
+
path: FX(n, e)
|
|
31052
|
+
})), f = /* @__PURE__ */ new Set();
|
|
31053
|
+
for (let e of d) e.node.displayIf && !NX(e.node.displayIf, e.path, r) && (u.add(e.key), f.add(e.key));
|
|
31054
|
+
return {
|
|
31055
|
+
visible: d.filter((e) => !u.has(e.key)),
|
|
31056
|
+
hiddenKeys: [...u],
|
|
31057
|
+
hiddenByDisplayIf: [...f],
|
|
31058
|
+
inactiveVariantKeys: MX(e, o, new Set([...l, ...c])),
|
|
31059
|
+
consts: s?.consts ?? [],
|
|
31060
|
+
activeVariantIndex: s ? o : void 0
|
|
31061
|
+
};
|
|
31062
|
+
}
|
|
31063
|
+
function jX(e, t, n, r) {
|
|
31064
|
+
if (!(!e.variants || e.variants.length === 0)) return nX(e.variants.map((e) => e.raw), n, r.variantPicks, (e) => t[e]);
|
|
31065
|
+
}
|
|
31066
|
+
function MX(e, t, n) {
|
|
31067
|
+
if (!e.variants || e.variants.length < 2) return kX;
|
|
31068
|
+
let r = /* @__PURE__ */ new Set();
|
|
31069
|
+
return e.variants.forEach((e, i) => {
|
|
31070
|
+
if (i === t) return;
|
|
31071
|
+
let a = [...e.properties.keys(), ...(e.dependencyBranches ?? []).flatMap((e) => [...e.properties.keys()])];
|
|
31072
|
+
for (let e of a) n.has(e) || r.add(e);
|
|
31073
|
+
}), [...r];
|
|
31074
|
+
}
|
|
31075
|
+
function NX(e, t, n) {
|
|
31076
|
+
let r = BJ(e, t);
|
|
31077
|
+
return PJ(r, new Map([...r.$eq.keys()].map((e) => [e, NJ(n.root, e)])), n.context);
|
|
31078
|
+
}
|
|
31079
|
+
function PX(e, t) {
|
|
31080
|
+
let n = e.variants ?? [], r = [...e.dependencyBranches ?? [], ...n.flatMap((e) => e.dependencyBranches ?? [])];
|
|
31081
|
+
return [
|
|
31082
|
+
e.properties?.get(t),
|
|
31083
|
+
...n.map((e) => e.properties.get(t)),
|
|
31084
|
+
...r.map((e) => e.properties.get(t))
|
|
31085
|
+
].some((e) => e?.schema.deprecated === !0);
|
|
31086
|
+
}
|
|
31087
|
+
function FX(e, t) {
|
|
31088
|
+
return e ? `${e}.${t}` : t;
|
|
31089
|
+
}
|
|
31090
|
+
//#endregion
|
|
31091
|
+
//#region src/composed/JsonSchemaForm/form-bindings/indexSchemaRoot.ts
|
|
31092
|
+
var IX = /* @__PURE__ */ new WeakMap();
|
|
31093
|
+
function LX(e) {
|
|
31094
|
+
let t = IX.get(e);
|
|
31095
|
+
if (t === void 0) {
|
|
31096
|
+
try {
|
|
31097
|
+
t = lY(e).root;
|
|
31098
|
+
} catch {
|
|
31099
|
+
t = null;
|
|
31100
|
+
}
|
|
31101
|
+
IX.set(e, t);
|
|
31102
|
+
}
|
|
31103
|
+
return t;
|
|
31104
|
+
}
|
|
31105
|
+
//#endregion
|
|
31106
|
+
//#region src/composed/JsonSchemaForm/form-bindings/applyVisibleDefaults.ts
|
|
31107
|
+
var RX = 20, zX = /* @__PURE__ */ new WeakMap(), BX = /* @__PURE__ */ new WeakSet();
|
|
31108
|
+
function VX(e, t, n) {
|
|
31109
|
+
let r = LX(e);
|
|
31110
|
+
if (!r) return t ?? {};
|
|
31111
|
+
let i = structuredClone(t ?? {}), a = t ?? {}, o = {
|
|
31112
|
+
root: i,
|
|
31113
|
+
context: n
|
|
31114
|
+
};
|
|
31115
|
+
for (let e = 0; e < RX; e++) if (!UX(r, i, "", o, "fill", a) && !UX(r, i, "", {
|
|
31116
|
+
root: structuredClone(i),
|
|
31117
|
+
context: n
|
|
31118
|
+
}, "remove", a)) return i;
|
|
31119
|
+
return BX.has(e) || (BX.add(e), console.warn(`[JsonSchemaForm] applyVisibleDefaults did not settle after ${RX} passes: conditions of this schema feed each other in a loop. Returning the last result.`)), i;
|
|
31120
|
+
}
|
|
31121
|
+
function HX(e, t, n, r, i, a) {
|
|
31122
|
+
if (Array.isArray(t)) {
|
|
31123
|
+
let { items: o } = e;
|
|
31124
|
+
if (!o) return !1;
|
|
31125
|
+
let s = !1;
|
|
31126
|
+
return t.forEach((e, c) => {
|
|
31127
|
+
let l = iZ(n, String(c));
|
|
31128
|
+
if (i === "fill" && e === null && SX(o.schema) === "object") {
|
|
31129
|
+
KX(o, l, r, null, (e) => {
|
|
31130
|
+
t[c] = e;
|
|
31131
|
+
}) && (s = !0);
|
|
31132
|
+
return;
|
|
31133
|
+
}
|
|
31134
|
+
HX(o, e, l, r, i, $X(a, c)) && (s = !0);
|
|
31135
|
+
}), s;
|
|
31136
|
+
}
|
|
31137
|
+
return typeof t != "object" || !t ? !1 : UX(e, t, n, r, i, a);
|
|
31138
|
+
}
|
|
31139
|
+
function UX(e, t, n, r, i, a) {
|
|
31140
|
+
let o = AX(e, t, n, r), s = i === "remove", c = !1;
|
|
31141
|
+
for (let n of s ? o.hiddenKeys : []) !(n in t) || PX(e, n) || (delete t[n], c = !0);
|
|
31142
|
+
let l = XX(e, o.activeVariantIndex), u = l?.raw.required ?? [], d = l !== void 0 && eZ(e, l, a), f = l !== void 0 && !d ? QX(e) : ZX;
|
|
31143
|
+
for (let n of s && d ? o.inactiveVariantKeys : []) !(n in t) || u.includes(n) || PX(e, n) || (delete t[n], c = !0);
|
|
31144
|
+
let p = tZ(e, d ? o.activeVariantIndex : void 0), m = s && p ? nZ(e) : null;
|
|
31145
|
+
for (let e of m ? Object.keys(t) : []) m?.keys.has(e) || m?.patterns.some((t) => t.test(e)) || (delete t[e], c = !0);
|
|
31146
|
+
for (let { key: e, value: n } of s || !d ? [] : o.consts) t[e] === void 0 && (t[e] = n, c = !0);
|
|
31147
|
+
let h = /* @__PURE__ */ new Set();
|
|
31148
|
+
for (let e of o.visible) {
|
|
31149
|
+
if (h.has(e.key) || (h.add(e.key), e.node.schema.deprecated === !0)) continue;
|
|
31150
|
+
if (!s && t[e.key] === void 0 && !f.has(e.key)) {
|
|
31151
|
+
let n = SX(e.node.schema), i = YX(e.node.schema), a = i === void 0 ? WX(n, e.node.schema) : i;
|
|
31152
|
+
if (a !== void 0) t[e.key] = a, c = !0;
|
|
31153
|
+
else if (n === "object") {
|
|
31154
|
+
KX(e.node, e.path, r, void 0, qX(t, e.key)) && (c = !0);
|
|
31155
|
+
continue;
|
|
31156
|
+
}
|
|
31157
|
+
} else if (!s && t[e.key] === null && SX(e.node.schema) === "object") {
|
|
31158
|
+
KX(e.node, e.path, r, null, qX(t, e.key)) && (c = !0);
|
|
31159
|
+
continue;
|
|
31160
|
+
} else !s && t[e.key] === null && GX(SX(e.node.schema)) && (t[e.key] = [], c = !0);
|
|
31161
|
+
let n = $X(a, e.key);
|
|
31162
|
+
HX(e.node, t[e.key], e.path, r, i, n) && (c = !0);
|
|
31163
|
+
}
|
|
31164
|
+
return c;
|
|
31165
|
+
}
|
|
31166
|
+
function WX(e, t) {
|
|
31167
|
+
switch (e) {
|
|
31168
|
+
case "const": return structuredClone(t.const);
|
|
31169
|
+
case "boolean": return !1;
|
|
31170
|
+
case "multiSelect":
|
|
31171
|
+
case "array":
|
|
31172
|
+
case "headersArray": return [];
|
|
31173
|
+
default: return;
|
|
31174
|
+
}
|
|
31175
|
+
}
|
|
31176
|
+
function GX(e) {
|
|
31177
|
+
return e === "array" || e === "headersArray";
|
|
31178
|
+
}
|
|
31179
|
+
function KX(e, t, n, r, i) {
|
|
31180
|
+
let a = {};
|
|
31181
|
+
return i(a), UX(e, a, t, n, "fill", void 0), Object.keys(a).length > 0 || JX(e, a, t, n) ? !0 : (i(r), !1);
|
|
31182
|
+
}
|
|
31183
|
+
function qX(e, t) {
|
|
31184
|
+
return (n) => {
|
|
31185
|
+
n === void 0 ? delete e[t] : e[t] = n;
|
|
31186
|
+
};
|
|
31187
|
+
}
|
|
31188
|
+
function JX(e, t, n, r) {
|
|
31189
|
+
return AX(e, t, n, r).visible.some((e) => {
|
|
31190
|
+
if (e.node.schema.deprecated === !0) return !1;
|
|
31191
|
+
let t = SX(e.node.schema);
|
|
31192
|
+
return t !== void 0 && t !== "null" && t !== "object";
|
|
30941
31193
|
});
|
|
30942
31194
|
}
|
|
31195
|
+
function YX(e) {
|
|
31196
|
+
if (Object.prototype.hasOwnProperty.call(e, "default")) return structuredClone(e.default);
|
|
31197
|
+
}
|
|
31198
|
+
function XX(e, t) {
|
|
31199
|
+
return t === void 0 ? void 0 : e.variants?.[t];
|
|
31200
|
+
}
|
|
31201
|
+
var ZX = /* @__PURE__ */ new Set();
|
|
31202
|
+
function QX(e) {
|
|
31203
|
+
return new Set((e.variants ?? []).flatMap((e) => e.consts.map(({ key: e }) => e)));
|
|
31204
|
+
}
|
|
31205
|
+
function $X(e, t) {
|
|
31206
|
+
if (!(typeof e != "object" || !e)) return Object.prototype.hasOwnProperty.call(e, t) ? e[t] : void 0;
|
|
31207
|
+
}
|
|
31208
|
+
function eZ(e, t, n) {
|
|
31209
|
+
if (typeof n != "object" || !n || Object.keys(n).length === 0) return !0;
|
|
31210
|
+
let r = n, i = (e) => {
|
|
31211
|
+
let t = e.consts.filter(({ key: e }) => r[e] !== void 0);
|
|
31212
|
+
return t.length > 0 && t.every(({ key: e, value: t }) => r[e] === t);
|
|
31213
|
+
};
|
|
31214
|
+
return i(t) && (e.variants ?? []).every((e) => e === t || !i(e));
|
|
31215
|
+
}
|
|
31216
|
+
function tZ(e, t) {
|
|
31217
|
+
return e.schema.additionalProperties === !1 ? !0 : (t === void 0 ? void 0 : e.variants?.[t])?.raw.additionalProperties === !1;
|
|
31218
|
+
}
|
|
31219
|
+
function nZ(e) {
|
|
31220
|
+
let t = zX.get(e);
|
|
31221
|
+
if (t === void 0) {
|
|
31222
|
+
let n = /* @__PURE__ */ new Set(), r = [];
|
|
31223
|
+
t = rZ(e.schema, n, r) ? {
|
|
31224
|
+
keys: n,
|
|
31225
|
+
patterns: r
|
|
31226
|
+
} : null, zX.set(e, t);
|
|
31227
|
+
}
|
|
31228
|
+
return t;
|
|
31229
|
+
}
|
|
31230
|
+
function rZ(e, t, n) {
|
|
31231
|
+
if (e.$ref !== void 0 || e.allOf || e.if !== void 0 || e.then !== void 0 || e.else !== void 0) return !1;
|
|
31232
|
+
for (let n of Object.keys(e.properties ?? {})) t.add(n);
|
|
31233
|
+
for (let t of Object.keys(e.patternProperties ?? {})) try {
|
|
31234
|
+
n.push(new RegExp(t));
|
|
31235
|
+
} catch {
|
|
31236
|
+
return !1;
|
|
31237
|
+
}
|
|
31238
|
+
let r = [...e.oneOf ?? [], ...e.anyOf ?? []];
|
|
31239
|
+
for (let [n, i] of Object.entries(e.dependencies ?? {})) t.add(n), Array.isArray(i) ? i.forEach((e) => t.add(e)) : typeof i == "object" && r.push(i);
|
|
31240
|
+
return r.every((e) => rZ(e, t, n));
|
|
31241
|
+
}
|
|
31242
|
+
function iZ(e, t) {
|
|
31243
|
+
return e ? `${e}.${t}` : t;
|
|
31244
|
+
}
|
|
30943
31245
|
//#endregion
|
|
30944
31246
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
30945
|
-
function
|
|
31247
|
+
function aZ(...e) {
|
|
30946
31248
|
return async (t, n, r) => {
|
|
30947
31249
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
30948
31250
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -30957,7 +31259,7 @@ function CX(...e) {
|
|
|
30957
31259
|
}
|
|
30958
31260
|
//#endregion
|
|
30959
31261
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
30960
|
-
var
|
|
31262
|
+
var oZ = /* @__PURE__ */ G(((e) => {
|
|
30961
31263
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.regexpCode = e.getEsmExportName = e.getProperty = e.safeStringify = e.stringify = e.strConcat = e.addCodeArg = e.str = e._ = e.nil = e._Code = e.Name = e.IDENTIFIER = e._CodeOrName = void 0;
|
|
30962
31264
|
var t = class {};
|
|
30963
31265
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -31062,9 +31364,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31062
31364
|
return new r(e.toString());
|
|
31063
31365
|
}
|
|
31064
31366
|
e.regexpCode = g;
|
|
31065
|
-
})),
|
|
31367
|
+
})), sZ = /* @__PURE__ */ G(((e) => {
|
|
31066
31368
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
31067
|
-
var t =
|
|
31369
|
+
var t = oZ(), n = class extends Error {
|
|
31068
31370
|
constructor(e) {
|
|
31069
31371
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
31070
31372
|
}
|
|
@@ -31173,9 +31475,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31173
31475
|
return c;
|
|
31174
31476
|
}
|
|
31175
31477
|
};
|
|
31176
|
-
})),
|
|
31478
|
+
})), cZ = /* @__PURE__ */ G(((e) => {
|
|
31177
31479
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.or = e.and = e.not = e.CodeGen = e.operators = e.varKinds = e.ValueScopeName = e.ValueScope = e.Scope = e.Name = e.regexpCode = e.stringify = e.getProperty = e.nil = e.strConcat = e.str = e._ = void 0;
|
|
31178
|
-
var t =
|
|
31480
|
+
var t = oZ(), n = sZ(), r = oZ();
|
|
31179
31481
|
Object.defineProperty(e, "_", {
|
|
31180
31482
|
enumerable: !0,
|
|
31181
31483
|
get: function() {
|
|
@@ -31217,7 +31519,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31217
31519
|
return r.Name;
|
|
31218
31520
|
}
|
|
31219
31521
|
});
|
|
31220
|
-
var i =
|
|
31522
|
+
var i = sZ();
|
|
31221
31523
|
Object.defineProperty(e, "Scope", {
|
|
31222
31524
|
enumerable: !0,
|
|
31223
31525
|
get: function() {
|
|
@@ -31688,9 +31990,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31688
31990
|
function L(e) {
|
|
31689
31991
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
31690
31992
|
}
|
|
31691
|
-
})),
|
|
31993
|
+
})), lZ = /* @__PURE__ */ G(((e) => {
|
|
31692
31994
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.checkStrictMode = e.getErrorPath = e.Type = e.useFunc = e.setEvaluated = e.evaluatedPropsToName = e.mergeEvaluated = e.eachItem = e.unescapeJsonPointer = e.escapeJsonPointer = e.escapeFragment = e.unescapeFragment = e.schemaRefOrVal = e.schemaHasRulesButRef = e.schemaHasRules = e.checkUnknownRules = e.alwaysValidSchema = e.toHash = void 0;
|
|
31693
|
-
var t =
|
|
31995
|
+
var t = cZ(), n = oZ();
|
|
31694
31996
|
function r(e) {
|
|
31695
31997
|
let t = {};
|
|
31696
31998
|
for (let n of e) t[n] = !0;
|
|
@@ -31813,9 +32115,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31813
32115
|
}
|
|
31814
32116
|
}
|
|
31815
32117
|
e.checkStrictMode = x;
|
|
31816
|
-
})),
|
|
32118
|
+
})), uZ = /* @__PURE__ */ G(((e) => {
|
|
31817
32119
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
31818
|
-
var t =
|
|
32120
|
+
var t = cZ();
|
|
31819
32121
|
e.default = {
|
|
31820
32122
|
data: new t.Name("data"),
|
|
31821
32123
|
valCxt: new t.Name("valCxt"),
|
|
@@ -31834,9 +32136,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31834
32136
|
jsonLen: new t.Name("jsonLen"),
|
|
31835
32137
|
jsonPart: new t.Name("jsonPart")
|
|
31836
32138
|
};
|
|
31837
|
-
})),
|
|
32139
|
+
})), dZ = /* @__PURE__ */ G(((e) => {
|
|
31838
32140
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
31839
|
-
var t =
|
|
32141
|
+
var t = cZ(), n = lZ(), r = uZ();
|
|
31840
32142
|
e.keywordError = { message: ({ keyword: e }) => (0, t.str)`must pass "${e}" keyword validation` }, e.keyword$DataError = { message: ({ keyword: e, schemaType: n }) => n ? (0, t.str)`"${e}" keyword must be ${n} ($data)` : (0, t.str)`"${e}" keyword is invalid ($data)` };
|
|
31841
32143
|
function i(n, r = e.keywordError, i, a) {
|
|
31842
32144
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -31898,9 +32200,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31898
32200
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
31899
32201
|
a.push([u.keyword, o], [u.params, typeof n == "function" ? n(e) : n || (0, t._)`{}`]), d.messages && a.push([u.message, typeof i == "function" ? i(e) : i]), d.verbose && a.push([u.schema, c], [u.parentSchema, (0, t._)`${p}${m}`], [r.default.data, s]), f && a.push([u.propertyName, f]);
|
|
31900
32202
|
}
|
|
31901
|
-
})),
|
|
32203
|
+
})), fZ = /* @__PURE__ */ G(((e) => {
|
|
31902
32204
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
31903
|
-
var t =
|
|
32205
|
+
var t = dZ(), n = cZ(), r = uZ(), i = { message: "boolean schema is false" };
|
|
31904
32206
|
function a(e) {
|
|
31905
32207
|
let { gen: t, schema: i, validateName: a } = e;
|
|
31906
32208
|
i === !1 ? s(e, !1) : typeof i == "object" && i.$async === !0 ? t.return(r.default.data) : (t.assign((0, n._)`${a}.errors`, null), t.return(!0));
|
|
@@ -31924,7 +32226,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31924
32226
|
};
|
|
31925
32227
|
(0, t.reportError)(o, i, void 0, n);
|
|
31926
32228
|
}
|
|
31927
|
-
})),
|
|
32229
|
+
})), pZ = /* @__PURE__ */ G(((e) => {
|
|
31928
32230
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
31929
32231
|
var t = new Set([
|
|
31930
32232
|
"string",
|
|
@@ -31978,7 +32280,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31978
32280
|
};
|
|
31979
32281
|
}
|
|
31980
32282
|
e.getRules = r;
|
|
31981
|
-
})),
|
|
32283
|
+
})), mZ = /* @__PURE__ */ G(((e) => {
|
|
31982
32284
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
31983
32285
|
function t({ schema: e, self: t }, r) {
|
|
31984
32286
|
let i = t.RULES.types[r];
|
|
@@ -31993,9 +32295,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
31993
32295
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
31994
32296
|
}
|
|
31995
32297
|
e.shouldUseRule = r;
|
|
31996
|
-
})),
|
|
32298
|
+
})), hZ = /* @__PURE__ */ G(((e) => {
|
|
31997
32299
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
31998
|
-
var t =
|
|
32300
|
+
var t = pZ(), n = mZ(), r = dZ(), i = cZ(), a = lZ(), o;
|
|
31999
32301
|
(function(e) {
|
|
32000
32302
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
32001
32303
|
})(o || (e.DataType = o = {}));
|
|
@@ -32130,9 +32432,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32130
32432
|
it: e
|
|
32131
32433
|
};
|
|
32132
32434
|
}
|
|
32133
|
-
})),
|
|
32435
|
+
})), gZ = /* @__PURE__ */ G(((e) => {
|
|
32134
32436
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
32135
|
-
var t =
|
|
32437
|
+
var t = cZ(), n = lZ();
|
|
32136
32438
|
function r(e, t) {
|
|
32137
32439
|
let { properties: n, items: r } = e.schema;
|
|
32138
32440
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -32150,9 +32452,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32150
32452
|
let u = (0, t._)`${l} === undefined`;
|
|
32151
32453
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
32152
32454
|
}
|
|
32153
|
-
})),
|
|
32455
|
+
})), _Z = /* @__PURE__ */ G(((e) => {
|
|
32154
32456
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateUnion = e.validateArray = e.usePattern = e.callValidateCode = e.schemaProperties = e.allSchemaProperties = e.noPropertyInData = e.propertyInData = e.isOwnProperty = e.hasPropFunc = e.reportMissingProp = e.checkMissingProp = e.checkReportMissingProp = void 0;
|
|
32155
|
-
var t =
|
|
32457
|
+
var t = cZ(), n = lZ(), r = uZ(), i = lZ();
|
|
32156
32458
|
function a(e, n) {
|
|
32157
32459
|
let { gen: r, data: i, it: a } = e;
|
|
32158
32460
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -32254,9 +32556,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32254
32556
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
32255
32557
|
}
|
|
32256
32558
|
e.validateUnion = v;
|
|
32257
|
-
})),
|
|
32559
|
+
})), vZ = /* @__PURE__ */ G(((e) => {
|
|
32258
32560
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
32259
|
-
var t =
|
|
32561
|
+
var t = cZ(), n = uZ(), r = _Z(), i = dZ();
|
|
32260
32562
|
function a(e, n) {
|
|
32261
32563
|
let { gen: r, keyword: i, schema: a, parentSchema: o, it: s } = e, c = n.macro.call(s.self, a, o, s), l = u(r, i, c);
|
|
32262
32564
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -32335,9 +32637,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32335
32637
|
}
|
|
32336
32638
|
}
|
|
32337
32639
|
e.validateKeywordUsage = f;
|
|
32338
|
-
})),
|
|
32640
|
+
})), yZ = /* @__PURE__ */ G(((e) => {
|
|
32339
32641
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
32340
|
-
var t =
|
|
32642
|
+
var t = cZ(), n = lZ();
|
|
32341
32643
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
32342
32644
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
32343
32645
|
if (r !== void 0) {
|
|
@@ -32381,7 +32683,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32381
32683
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
32382
32684
|
}
|
|
32383
32685
|
e.extendSubschemaMode = a;
|
|
32384
|
-
})),
|
|
32686
|
+
})), bZ = /* @__PURE__ */ G(((e, t) => {
|
|
32385
32687
|
t.exports = function e(t, n) {
|
|
32386
32688
|
if (t === n) return !0;
|
|
32387
32689
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -32405,7 +32707,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32405
32707
|
}
|
|
32406
32708
|
return t !== t && n !== n;
|
|
32407
32709
|
};
|
|
32408
|
-
})),
|
|
32710
|
+
})), xZ = /* @__PURE__ */ G(((e, t) => {
|
|
32409
32711
|
var n = t.exports = function(e, t, n) {
|
|
32410
32712
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
32411
32713
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -32468,9 +32770,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32468
32770
|
function i(e) {
|
|
32469
32771
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
32470
32772
|
}
|
|
32471
|
-
})),
|
|
32773
|
+
})), SZ = /* @__PURE__ */ G(((e) => {
|
|
32472
32774
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
32473
|
-
var t =
|
|
32775
|
+
var t = lZ(), n = bZ(), r = xZ(), i = new Set([
|
|
32474
32776
|
"type",
|
|
32475
32777
|
"format",
|
|
32476
32778
|
"pattern",
|
|
@@ -32559,9 +32861,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32559
32861
|
}
|
|
32560
32862
|
}
|
|
32561
32863
|
e.getSchemaRefs = h;
|
|
32562
|
-
})),
|
|
32864
|
+
})), CZ = /* @__PURE__ */ G(((e) => {
|
|
32563
32865
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
32564
|
-
var t =
|
|
32866
|
+
var t = fZ(), n = hZ(), r = mZ(), i = hZ(), a = gZ(), o = vZ(), s = yZ(), c = cZ(), l = uZ(), u = SZ(), d = lZ(), f = dZ();
|
|
32565
32867
|
function p(e) {
|
|
32566
32868
|
if (S(e) && (w(e), x(e))) {
|
|
32567
32869
|
_(e);
|
|
@@ -32851,23 +33153,23 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
32851
33153
|
}
|
|
32852
33154
|
}
|
|
32853
33155
|
e.getData = se;
|
|
32854
|
-
})),
|
|
33156
|
+
})), wZ = /* @__PURE__ */ G(((e) => {
|
|
32855
33157
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
32856
33158
|
constructor(e) {
|
|
32857
33159
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
32858
33160
|
}
|
|
32859
33161
|
};
|
|
32860
|
-
})),
|
|
33162
|
+
})), TZ = /* @__PURE__ */ G(((e) => {
|
|
32861
33163
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32862
|
-
var t =
|
|
33164
|
+
var t = SZ();
|
|
32863
33165
|
e.default = class extends Error {
|
|
32864
33166
|
constructor(e, n, r, i) {
|
|
32865
33167
|
super(i || `can't resolve reference ${r} from id ${n}`), this.missingRef = (0, t.resolveUrl)(e, n, r), this.missingSchema = (0, t.normalizeId)((0, t.getFullPath)(e, this.missingRef));
|
|
32866
33168
|
}
|
|
32867
33169
|
};
|
|
32868
|
-
})),
|
|
33170
|
+
})), EZ = /* @__PURE__ */ G(((e) => {
|
|
32869
33171
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
32870
|
-
var t =
|
|
33172
|
+
var t = cZ(), n = wZ(), r = uZ(), i = SZ(), a = lZ(), o = CZ(), s = class {
|
|
32871
33173
|
constructor(e) {
|
|
32872
33174
|
this.refs = {}, this.dynamicAnchors = {};
|
|
32873
33175
|
let t;
|
|
@@ -33026,27 +33328,27 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
33026
33328
|
baseId: t
|
|
33027
33329
|
}), o.schema !== o.root.schema) return o;
|
|
33028
33330
|
}
|
|
33029
|
-
})),
|
|
33030
|
-
$id: () =>
|
|
33331
|
+
})), DZ = /* @__PURE__ */ mt({
|
|
33332
|
+
$id: () => OZ,
|
|
33031
33333
|
additionalProperties: () => !1,
|
|
33032
|
-
default: () =>
|
|
33033
|
-
description: () =>
|
|
33034
|
-
properties: () =>
|
|
33035
|
-
required: () =>
|
|
33036
|
-
type: () =>
|
|
33037
|
-
}),
|
|
33038
|
-
|
|
33334
|
+
default: () => NZ,
|
|
33335
|
+
description: () => kZ,
|
|
33336
|
+
properties: () => MZ,
|
|
33337
|
+
required: () => jZ,
|
|
33338
|
+
type: () => AZ
|
|
33339
|
+
}), OZ, kZ, AZ, jZ, MZ, NZ, PZ = pt((() => {
|
|
33340
|
+
OZ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", kZ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", AZ = "object", jZ = ["$data"], MZ = { $data: {
|
|
33039
33341
|
type: "string",
|
|
33040
33342
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
33041
|
-
} },
|
|
33042
|
-
$id:
|
|
33043
|
-
description:
|
|
33044
|
-
type:
|
|
33045
|
-
required:
|
|
33046
|
-
properties:
|
|
33343
|
+
} }, NZ = {
|
|
33344
|
+
$id: OZ,
|
|
33345
|
+
description: kZ,
|
|
33346
|
+
type: AZ,
|
|
33347
|
+
required: jZ,
|
|
33348
|
+
properties: MZ,
|
|
33047
33349
|
additionalProperties: !1
|
|
33048
33350
|
};
|
|
33049
|
-
})),
|
|
33351
|
+
})), FZ = /* @__PURE__ */ G(((e, t) => {
|
|
33050
33352
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^\d*$/u), a = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), l = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), u = Array(256);
|
|
33051
33353
|
{
|
|
33052
33354
|
let e = "0123456789ABCDEF";
|
|
@@ -33395,8 +33697,8 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
33395
33697
|
normalizeIPv6: b,
|
|
33396
33698
|
stringArrayToHexStripped: f
|
|
33397
33699
|
};
|
|
33398
|
-
})),
|
|
33399
|
-
var { isUUID: n } =
|
|
33700
|
+
})), IZ = /* @__PURE__ */ G(((e, t) => {
|
|
33701
|
+
var { isUUID: n } = FZ(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
33400
33702
|
"http",
|
|
33401
33703
|
"https",
|
|
33402
33704
|
"ws",
|
|
@@ -33501,8 +33803,8 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
33501
33803
|
isValidSchemeName: a,
|
|
33502
33804
|
getSchemeHandler: y
|
|
33503
33805
|
};
|
|
33504
|
-
})),
|
|
33505
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } =
|
|
33806
|
+
})), LZ = /* @__PURE__ */ G(((e, t) => {
|
|
33807
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = FZ(), { SCHEMES: m, getSchemeHandler: h } = IZ(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
33506
33808
|
function v(e) {
|
|
33507
33809
|
let t = unescape(String(e));
|
|
33508
33810
|
if (!g.test(t)) throw TypeError(_);
|
|
@@ -33671,20 +33973,20 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
33671
33973
|
parse: N
|
|
33672
33974
|
};
|
|
33673
33975
|
t.exports = L, t.exports.default = L, t.exports.fastUri = L;
|
|
33674
|
-
})),
|
|
33976
|
+
})), RZ = /* @__PURE__ */ G(((e) => {
|
|
33675
33977
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33676
|
-
var t =
|
|
33978
|
+
var t = LZ();
|
|
33677
33979
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
33678
|
-
})),
|
|
33980
|
+
})), zZ = /* @__PURE__ */ G(((e) => {
|
|
33679
33981
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
33680
|
-
var t =
|
|
33982
|
+
var t = CZ();
|
|
33681
33983
|
Object.defineProperty(e, "KeywordCxt", {
|
|
33682
33984
|
enumerable: !0,
|
|
33683
33985
|
get: function() {
|
|
33684
33986
|
return t.KeywordCxt;
|
|
33685
33987
|
}
|
|
33686
33988
|
});
|
|
33687
|
-
var n =
|
|
33989
|
+
var n = cZ();
|
|
33688
33990
|
Object.defineProperty(e, "_", {
|
|
33689
33991
|
enumerable: !0,
|
|
33690
33992
|
get: function() {
|
|
@@ -33716,7 +34018,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
33716
34018
|
return n.CodeGen;
|
|
33717
34019
|
}
|
|
33718
34020
|
});
|
|
33719
|
-
var r =
|
|
34021
|
+
var r = wZ(), i = TZ(), a = pZ(), o = EZ(), s = cZ(), c = SZ(), l = hZ(), u = lZ(), d = (PZ(), _t(DZ).default), f = RZ(), p = (e, t) => new RegExp(e, t);
|
|
33720
34022
|
p.code = "new RegExp";
|
|
33721
34023
|
var m = [
|
|
33722
34024
|
"removeAdditional",
|
|
@@ -34102,16 +34404,16 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34102
34404
|
function F(e) {
|
|
34103
34405
|
return { anyOf: [e, P] };
|
|
34104
34406
|
}
|
|
34105
|
-
})),
|
|
34407
|
+
})), BZ = /* @__PURE__ */ G(((e) => {
|
|
34106
34408
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34107
34409
|
keyword: "id",
|
|
34108
34410
|
code() {
|
|
34109
34411
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
34110
34412
|
}
|
|
34111
34413
|
};
|
|
34112
|
-
})),
|
|
34414
|
+
})), VZ = /* @__PURE__ */ G(((e) => {
|
|
34113
34415
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
34114
|
-
var t =
|
|
34416
|
+
var t = TZ(), n = _Z(), r = cZ(), i = uZ(), a = EZ(), o = lZ(), s = {
|
|
34115
34417
|
keyword: "$ref",
|
|
34116
34418
|
schemaType: "string",
|
|
34117
34419
|
code(e) {
|
|
@@ -34184,9 +34486,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34184
34486
|
}
|
|
34185
34487
|
}
|
|
34186
34488
|
e.callRef = l, e.default = s;
|
|
34187
|
-
})),
|
|
34489
|
+
})), HZ = /* @__PURE__ */ G(((e) => {
|
|
34188
34490
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34189
|
-
var t =
|
|
34491
|
+
var t = BZ(), n = VZ();
|
|
34190
34492
|
e.default = [
|
|
34191
34493
|
"$schema",
|
|
34192
34494
|
"$id",
|
|
@@ -34197,9 +34499,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34197
34499
|
t.default,
|
|
34198
34500
|
n.default
|
|
34199
34501
|
];
|
|
34200
|
-
})),
|
|
34502
|
+
})), UZ = /* @__PURE__ */ G(((e) => {
|
|
34201
34503
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34202
|
-
var t =
|
|
34504
|
+
var t = cZ(), n = t.operators, r = {
|
|
34203
34505
|
maximum: {
|
|
34204
34506
|
okStr: "<=",
|
|
34205
34507
|
ok: n.LTE,
|
|
@@ -34235,9 +34537,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34235
34537
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
34236
34538
|
}
|
|
34237
34539
|
};
|
|
34238
|
-
})),
|
|
34540
|
+
})), WZ = /* @__PURE__ */ G(((e) => {
|
|
34239
34541
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34240
|
-
var t =
|
|
34542
|
+
var t = cZ();
|
|
34241
34543
|
e.default = {
|
|
34242
34544
|
keyword: "multipleOf",
|
|
34243
34545
|
type: "number",
|
|
@@ -34252,7 +34554,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34252
34554
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
34253
34555
|
}
|
|
34254
34556
|
};
|
|
34255
|
-
})),
|
|
34557
|
+
})), GZ = /* @__PURE__ */ G(((e) => {
|
|
34256
34558
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34257
34559
|
function t(e) {
|
|
34258
34560
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -34260,9 +34562,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34260
34562
|
return n;
|
|
34261
34563
|
}
|
|
34262
34564
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
34263
|
-
})),
|
|
34565
|
+
})), KZ = /* @__PURE__ */ G(((e) => {
|
|
34264
34566
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34265
|
-
var t =
|
|
34567
|
+
var t = cZ(), n = lZ(), r = GZ();
|
|
34266
34568
|
e.default = {
|
|
34267
34569
|
keyword: ["maxLength", "minLength"],
|
|
34268
34570
|
type: "string",
|
|
@@ -34280,9 +34582,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34280
34582
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
34281
34583
|
}
|
|
34282
34584
|
};
|
|
34283
|
-
})),
|
|
34585
|
+
})), qZ = /* @__PURE__ */ G(((e) => {
|
|
34284
34586
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34285
|
-
var t =
|
|
34587
|
+
var t = _Z(), n = lZ(), r = cZ();
|
|
34286
34588
|
e.default = {
|
|
34287
34589
|
keyword: "pattern",
|
|
34288
34590
|
type: "string",
|
|
@@ -34303,9 +34605,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34303
34605
|
}
|
|
34304
34606
|
}
|
|
34305
34607
|
};
|
|
34306
|
-
})),
|
|
34608
|
+
})), JZ = /* @__PURE__ */ G(((e) => {
|
|
34307
34609
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34308
|
-
var t =
|
|
34610
|
+
var t = cZ();
|
|
34309
34611
|
e.default = {
|
|
34310
34612
|
keyword: ["maxProperties", "minProperties"],
|
|
34311
34613
|
type: "object",
|
|
@@ -34323,9 +34625,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34323
34625
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
34324
34626
|
}
|
|
34325
34627
|
};
|
|
34326
|
-
})),
|
|
34628
|
+
})), YZ = /* @__PURE__ */ G(((e) => {
|
|
34327
34629
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34328
|
-
var t =
|
|
34630
|
+
var t = _Z(), n = cZ(), r = lZ();
|
|
34329
34631
|
e.default = {
|
|
34330
34632
|
keyword: "required",
|
|
34331
34633
|
type: "object",
|
|
@@ -34371,9 +34673,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34371
34673
|
}
|
|
34372
34674
|
}
|
|
34373
34675
|
};
|
|
34374
|
-
})),
|
|
34676
|
+
})), XZ = /* @__PURE__ */ G(((e) => {
|
|
34375
34677
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34376
|
-
var t =
|
|
34678
|
+
var t = cZ();
|
|
34377
34679
|
e.default = {
|
|
34378
34680
|
keyword: ["maxItems", "minItems"],
|
|
34379
34681
|
type: "array",
|
|
@@ -34391,13 +34693,13 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34391
34693
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
34392
34694
|
}
|
|
34393
34695
|
};
|
|
34394
|
-
})),
|
|
34696
|
+
})), ZZ = /* @__PURE__ */ G(((e) => {
|
|
34395
34697
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34396
|
-
var t =
|
|
34698
|
+
var t = bZ();
|
|
34397
34699
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
34398
|
-
})),
|
|
34700
|
+
})), QZ = /* @__PURE__ */ G(((e) => {
|
|
34399
34701
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34400
|
-
var t =
|
|
34702
|
+
var t = hZ(), n = cZ(), r = lZ(), i = ZZ();
|
|
34401
34703
|
e.default = {
|
|
34402
34704
|
keyword: "uniqueItems",
|
|
34403
34705
|
type: "array",
|
|
@@ -34438,9 +34740,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34438
34740
|
}
|
|
34439
34741
|
}
|
|
34440
34742
|
};
|
|
34441
|
-
})),
|
|
34743
|
+
})), $Z = /* @__PURE__ */ G(((e) => {
|
|
34442
34744
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34443
|
-
var t =
|
|
34745
|
+
var t = cZ(), n = lZ(), r = ZZ();
|
|
34444
34746
|
e.default = {
|
|
34445
34747
|
keyword: "const",
|
|
34446
34748
|
$data: !0,
|
|
@@ -34453,9 +34755,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34453
34755
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
34454
34756
|
}
|
|
34455
34757
|
};
|
|
34456
|
-
})),
|
|
34758
|
+
})), eQ = /* @__PURE__ */ G(((e) => {
|
|
34457
34759
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34458
|
-
var t =
|
|
34760
|
+
var t = cZ(), n = lZ(), r = ZZ();
|
|
34459
34761
|
e.default = {
|
|
34460
34762
|
keyword: "enum",
|
|
34461
34763
|
schemaType: "array",
|
|
@@ -34485,9 +34787,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34485
34787
|
}
|
|
34486
34788
|
}
|
|
34487
34789
|
};
|
|
34488
|
-
})),
|
|
34790
|
+
})), tQ = /* @__PURE__ */ G(((e) => {
|
|
34489
34791
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34490
|
-
var t =
|
|
34792
|
+
var t = UZ(), n = WZ(), r = KZ(), i = qZ(), a = JZ(), o = YZ(), s = XZ(), c = QZ(), l = $Z(), u = eQ();
|
|
34491
34793
|
e.default = [
|
|
34492
34794
|
t.default,
|
|
34493
34795
|
n.default,
|
|
@@ -34508,9 +34810,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34508
34810
|
l.default,
|
|
34509
34811
|
u.default
|
|
34510
34812
|
];
|
|
34511
|
-
})),
|
|
34813
|
+
})), nQ = /* @__PURE__ */ G(((e) => {
|
|
34512
34814
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
34513
|
-
var t =
|
|
34815
|
+
var t = cZ(), n = lZ(), r = {
|
|
34514
34816
|
keyword: "additionalItems",
|
|
34515
34817
|
type: "array",
|
|
34516
34818
|
schemaType: ["boolean", "object"],
|
|
@@ -34548,9 +34850,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34548
34850
|
}
|
|
34549
34851
|
}
|
|
34550
34852
|
e.validateAdditionalItems = i, e.default = r;
|
|
34551
|
-
})),
|
|
34853
|
+
})), rQ = /* @__PURE__ */ G(((e) => {
|
|
34552
34854
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
34553
|
-
var t =
|
|
34855
|
+
var t = cZ(), n = lZ(), r = _Z(), i = {
|
|
34554
34856
|
keyword: "items",
|
|
34555
34857
|
type: "array",
|
|
34556
34858
|
schemaType: [
|
|
@@ -34585,9 +34887,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34585
34887
|
}
|
|
34586
34888
|
}
|
|
34587
34889
|
e.validateTuple = a, e.default = i;
|
|
34588
|
-
})),
|
|
34890
|
+
})), iQ = /* @__PURE__ */ G(((e) => {
|
|
34589
34891
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34590
|
-
var t =
|
|
34892
|
+
var t = rQ();
|
|
34591
34893
|
e.default = {
|
|
34592
34894
|
keyword: "prefixItems",
|
|
34593
34895
|
type: "array",
|
|
@@ -34595,9 +34897,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34595
34897
|
before: "uniqueItems",
|
|
34596
34898
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
34597
34899
|
};
|
|
34598
|
-
})),
|
|
34900
|
+
})), aQ = /* @__PURE__ */ G(((e) => {
|
|
34599
34901
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34600
|
-
var t =
|
|
34902
|
+
var t = cZ(), n = lZ(), r = _Z(), i = nQ();
|
|
34601
34903
|
e.default = {
|
|
34602
34904
|
keyword: "items",
|
|
34603
34905
|
type: "array",
|
|
@@ -34612,9 +34914,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34612
34914
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
34613
34915
|
}
|
|
34614
34916
|
};
|
|
34615
|
-
})),
|
|
34917
|
+
})), oQ = /* @__PURE__ */ G(((e) => {
|
|
34616
34918
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34617
|
-
var t =
|
|
34919
|
+
var t = cZ(), n = lZ();
|
|
34618
34920
|
e.default = {
|
|
34619
34921
|
keyword: "contains",
|
|
34620
34922
|
type: "array",
|
|
@@ -34667,9 +34969,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34667
34969
|
}
|
|
34668
34970
|
}
|
|
34669
34971
|
};
|
|
34670
|
-
})),
|
|
34972
|
+
})), sQ = /* @__PURE__ */ G(((e) => {
|
|
34671
34973
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
34672
|
-
var t =
|
|
34974
|
+
var t = cZ(), n = lZ(), r = _Z();
|
|
34673
34975
|
e.error = {
|
|
34674
34976
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
34675
34977
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -34728,9 +35030,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34728
35030
|
}, () => i.var(c, !0)), e.ok(c));
|
|
34729
35031
|
}
|
|
34730
35032
|
e.validateSchemaDeps = s, e.default = i;
|
|
34731
|
-
})),
|
|
35033
|
+
})), cQ = /* @__PURE__ */ G(((e) => {
|
|
34732
35034
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34733
|
-
var t =
|
|
35035
|
+
var t = cZ(), n = lZ();
|
|
34734
35036
|
e.default = {
|
|
34735
35037
|
keyword: "propertyNames",
|
|
34736
35038
|
type: "object",
|
|
@@ -34756,9 +35058,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34756
35058
|
}), e.ok(s);
|
|
34757
35059
|
}
|
|
34758
35060
|
};
|
|
34759
|
-
})),
|
|
35061
|
+
})), lQ = /* @__PURE__ */ G(((e) => {
|
|
34760
35062
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34761
|
-
var t =
|
|
35063
|
+
var t = _Z(), n = cZ(), r = uZ(), i = lZ();
|
|
34762
35064
|
e.default = {
|
|
34763
35065
|
keyword: "additionalProperties",
|
|
34764
35066
|
type: ["object"],
|
|
@@ -34823,9 +35125,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34823
35125
|
}
|
|
34824
35126
|
}
|
|
34825
35127
|
};
|
|
34826
|
-
})),
|
|
35128
|
+
})), uQ = /* @__PURE__ */ G(((e) => {
|
|
34827
35129
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34828
|
-
var t =
|
|
35130
|
+
var t = CZ(), n = _Z(), r = lZ(), i = lQ();
|
|
34829
35131
|
e.default = {
|
|
34830
35132
|
keyword: "properties",
|
|
34831
35133
|
type: "object",
|
|
@@ -34852,9 +35154,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34852
35154
|
}
|
|
34853
35155
|
}
|
|
34854
35156
|
};
|
|
34855
|
-
})),
|
|
35157
|
+
})), dQ = /* @__PURE__ */ G(((e) => {
|
|
34856
35158
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34857
|
-
var t =
|
|
35159
|
+
var t = _Z(), n = cZ(), r = lZ(), i = lZ();
|
|
34858
35160
|
e.default = {
|
|
34859
35161
|
keyword: "patternProperties",
|
|
34860
35162
|
type: "object",
|
|
@@ -34887,9 +35189,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34887
35189
|
}
|
|
34888
35190
|
}
|
|
34889
35191
|
};
|
|
34890
|
-
})),
|
|
35192
|
+
})), fQ = /* @__PURE__ */ G(((e) => {
|
|
34891
35193
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34892
|
-
var t =
|
|
35194
|
+
var t = lZ();
|
|
34893
35195
|
e.default = {
|
|
34894
35196
|
keyword: "not",
|
|
34895
35197
|
schemaType: ["object", "boolean"],
|
|
@@ -34910,17 +35212,17 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34910
35212
|
},
|
|
34911
35213
|
error: { message: "must NOT be valid" }
|
|
34912
35214
|
};
|
|
34913
|
-
})),
|
|
35215
|
+
})), pQ = /* @__PURE__ */ G(((e) => {
|
|
34914
35216
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34915
35217
|
keyword: "anyOf",
|
|
34916
35218
|
schemaType: "array",
|
|
34917
35219
|
trackErrors: !0,
|
|
34918
|
-
code:
|
|
35220
|
+
code: _Z().validateUnion,
|
|
34919
35221
|
error: { message: "must match a schema in anyOf" }
|
|
34920
35222
|
};
|
|
34921
|
-
})),
|
|
35223
|
+
})), mQ = /* @__PURE__ */ G(((e) => {
|
|
34922
35224
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34923
|
-
var t =
|
|
35225
|
+
var t = cZ(), n = lZ();
|
|
34924
35226
|
e.default = {
|
|
34925
35227
|
keyword: "oneOf",
|
|
34926
35228
|
schemaType: "array",
|
|
@@ -34950,9 +35252,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34950
35252
|
}
|
|
34951
35253
|
}
|
|
34952
35254
|
};
|
|
34953
|
-
})),
|
|
35255
|
+
})), hQ = /* @__PURE__ */ G(((e) => {
|
|
34954
35256
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34955
|
-
var t =
|
|
35257
|
+
var t = lZ();
|
|
34956
35258
|
e.default = {
|
|
34957
35259
|
keyword: "allOf",
|
|
34958
35260
|
schemaType: "array",
|
|
@@ -34971,9 +35273,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
34971
35273
|
});
|
|
34972
35274
|
}
|
|
34973
35275
|
};
|
|
34974
|
-
})),
|
|
35276
|
+
})), gQ = /* @__PURE__ */ G(((e) => {
|
|
34975
35277
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34976
|
-
var t =
|
|
35278
|
+
var t = cZ(), n = lZ(), r = {
|
|
34977
35279
|
keyword: "if",
|
|
34978
35280
|
schemaType: ["object", "boolean"],
|
|
34979
35281
|
trackErrors: !0,
|
|
@@ -35014,9 +35316,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35014
35316
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
35015
35317
|
}
|
|
35016
35318
|
e.default = r;
|
|
35017
|
-
})),
|
|
35319
|
+
})), _Q = /* @__PURE__ */ G(((e) => {
|
|
35018
35320
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35019
|
-
var t =
|
|
35321
|
+
var t = lZ();
|
|
35020
35322
|
e.default = {
|
|
35021
35323
|
keyword: ["then", "else"],
|
|
35022
35324
|
schemaType: ["object", "boolean"],
|
|
@@ -35024,9 +35326,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35024
35326
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
35025
35327
|
}
|
|
35026
35328
|
};
|
|
35027
|
-
})),
|
|
35329
|
+
})), vQ = /* @__PURE__ */ G(((e) => {
|
|
35028
35330
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35029
|
-
var t =
|
|
35331
|
+
var t = nQ(), n = iQ(), r = rQ(), i = aQ(), a = oQ(), o = sQ(), s = cQ(), c = lQ(), l = uQ(), u = dQ(), d = fQ(), f = pQ(), p = mQ(), m = hQ(), h = gQ(), g = _Q();
|
|
35030
35332
|
function _(e = !1) {
|
|
35031
35333
|
let _ = [
|
|
35032
35334
|
d.default,
|
|
@@ -35044,9 +35346,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35044
35346
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
35045
35347
|
}
|
|
35046
35348
|
e.default = _;
|
|
35047
|
-
})),
|
|
35349
|
+
})), yQ = /* @__PURE__ */ G(((e) => {
|
|
35048
35350
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35049
|
-
var t =
|
|
35351
|
+
var t = cZ();
|
|
35050
35352
|
e.default = {
|
|
35051
35353
|
keyword: "format",
|
|
35052
35354
|
type: ["number", "string"],
|
|
@@ -35119,9 +35421,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35119
35421
|
}
|
|
35120
35422
|
}
|
|
35121
35423
|
};
|
|
35122
|
-
})),
|
|
35123
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
35124
|
-
})),
|
|
35424
|
+
})), bQ = /* @__PURE__ */ G(((e) => {
|
|
35425
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [yQ().default];
|
|
35426
|
+
})), xQ = /* @__PURE__ */ G(((e) => {
|
|
35125
35427
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
35126
35428
|
"title",
|
|
35127
35429
|
"description",
|
|
@@ -35135,9 +35437,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35135
35437
|
"contentEncoding",
|
|
35136
35438
|
"contentSchema"
|
|
35137
35439
|
];
|
|
35138
|
-
})),
|
|
35440
|
+
})), SQ = /* @__PURE__ */ G(((e) => {
|
|
35139
35441
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35140
|
-
var t =
|
|
35442
|
+
var t = HZ(), n = tQ(), r = vQ(), i = bQ(), a = xQ();
|
|
35141
35443
|
e.default = [
|
|
35142
35444
|
t.default,
|
|
35143
35445
|
n.default,
|
|
@@ -35146,15 +35448,15 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35146
35448
|
a.metadataVocabulary,
|
|
35147
35449
|
a.contentVocabulary
|
|
35148
35450
|
];
|
|
35149
|
-
})),
|
|
35451
|
+
})), CQ = /* @__PURE__ */ G(((e) => {
|
|
35150
35452
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
35151
35453
|
var t;
|
|
35152
35454
|
(function(e) {
|
|
35153
35455
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
35154
35456
|
})(t || (e.DiscrError = t = {}));
|
|
35155
|
-
})),
|
|
35457
|
+
})), wQ = /* @__PURE__ */ G(((e) => {
|
|
35156
35458
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35157
|
-
var t =
|
|
35459
|
+
var t = cZ(), n = CQ(), r = EZ(), i = TZ(), a = lZ();
|
|
35158
35460
|
e.default = {
|
|
35159
35461
|
keyword: "discriminator",
|
|
35160
35462
|
type: "object",
|
|
@@ -35222,16 +35524,16 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35222
35524
|
}
|
|
35223
35525
|
}
|
|
35224
35526
|
};
|
|
35225
|
-
})),
|
|
35226
|
-
$id: () =>
|
|
35227
|
-
$schema: () =>
|
|
35228
|
-
default: () =>
|
|
35229
|
-
definitions: () =>
|
|
35230
|
-
properties: () =>
|
|
35231
|
-
title: () =>
|
|
35232
|
-
type: () =>
|
|
35233
|
-
}),
|
|
35234
|
-
|
|
35527
|
+
})), TQ = /* @__PURE__ */ mt({
|
|
35528
|
+
$id: () => DQ,
|
|
35529
|
+
$schema: () => EQ,
|
|
35530
|
+
default: () => MQ,
|
|
35531
|
+
definitions: () => kQ,
|
|
35532
|
+
properties: () => jQ,
|
|
35533
|
+
title: () => OQ,
|
|
35534
|
+
type: () => AQ
|
|
35535
|
+
}), EQ, DQ, OQ, kQ, AQ, jQ, MQ, NQ = pt((() => {
|
|
35536
|
+
EQ = "http://json-schema.org/draft-07/schema#", DQ = "http://json-schema.org/draft-07/schema#", OQ = "Core schema meta-schema", kQ = {
|
|
35235
35537
|
schemaArray: {
|
|
35236
35538
|
type: "array",
|
|
35237
35539
|
minItems: 1,
|
|
@@ -35257,7 +35559,7 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35257
35559
|
uniqueItems: !0,
|
|
35258
35560
|
default: []
|
|
35259
35561
|
}
|
|
35260
|
-
},
|
|
35562
|
+
}, AQ = ["object", "boolean"], jQ = {
|
|
35261
35563
|
$id: {
|
|
35262
35564
|
type: "string",
|
|
35263
35565
|
format: "uri-reference"
|
|
@@ -35356,18 +35658,18 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35356
35658
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
35357
35659
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
35358
35660
|
not: { $ref: "#" }
|
|
35359
|
-
},
|
|
35360
|
-
$schema:
|
|
35361
|
-
$id:
|
|
35362
|
-
title:
|
|
35363
|
-
definitions:
|
|
35364
|
-
type:
|
|
35365
|
-
properties:
|
|
35661
|
+
}, MQ = {
|
|
35662
|
+
$schema: EQ,
|
|
35663
|
+
$id: DQ,
|
|
35664
|
+
title: OQ,
|
|
35665
|
+
definitions: kQ,
|
|
35666
|
+
type: AQ,
|
|
35667
|
+
properties: jQ,
|
|
35366
35668
|
default: !0
|
|
35367
35669
|
};
|
|
35368
|
-
})),
|
|
35670
|
+
})), PQ = /* @__PURE__ */ G(((e, t) => {
|
|
35369
35671
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv = void 0;
|
|
35370
|
-
var n =
|
|
35672
|
+
var n = zZ(), r = SQ(), i = wQ(), a = (NQ(), _t(TQ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
35371
35673
|
_addVocabularies() {
|
|
35372
35674
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
35373
35675
|
}
|
|
@@ -35381,14 +35683,14 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35381
35683
|
}
|
|
35382
35684
|
};
|
|
35383
35685
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
35384
|
-
var l =
|
|
35686
|
+
var l = CZ();
|
|
35385
35687
|
Object.defineProperty(e, "KeywordCxt", {
|
|
35386
35688
|
enumerable: !0,
|
|
35387
35689
|
get: function() {
|
|
35388
35690
|
return l.KeywordCxt;
|
|
35389
35691
|
}
|
|
35390
35692
|
});
|
|
35391
|
-
var u =
|
|
35693
|
+
var u = cZ();
|
|
35392
35694
|
Object.defineProperty(e, "_", {
|
|
35393
35695
|
enumerable: !0,
|
|
35394
35696
|
get: function() {
|
|
@@ -35420,21 +35722,646 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35420
35722
|
return u.CodeGen;
|
|
35421
35723
|
}
|
|
35422
35724
|
});
|
|
35423
|
-
var d =
|
|
35725
|
+
var d = wZ();
|
|
35424
35726
|
Object.defineProperty(e, "ValidationError", {
|
|
35425
35727
|
enumerable: !0,
|
|
35426
35728
|
get: function() {
|
|
35427
35729
|
return d.default;
|
|
35428
35730
|
}
|
|
35429
35731
|
});
|
|
35430
|
-
var f =
|
|
35732
|
+
var f = TZ();
|
|
35431
35733
|
Object.defineProperty(e, "MissingRefError", {
|
|
35432
35734
|
enumerable: !0,
|
|
35433
35735
|
get: function() {
|
|
35434
35736
|
return f.default;
|
|
35435
35737
|
}
|
|
35436
35738
|
});
|
|
35437
|
-
})),
|
|
35739
|
+
})), FQ = /* @__PURE__ */ G(((e) => {
|
|
35740
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicAnchor = void 0;
|
|
35741
|
+
var t = cZ(), n = uZ(), r = EZ(), i = VZ(), a = {
|
|
35742
|
+
keyword: "$dynamicAnchor",
|
|
35743
|
+
schemaType: "string",
|
|
35744
|
+
code: (e) => o(e, e.schema)
|
|
35745
|
+
};
|
|
35746
|
+
function o(e, r) {
|
|
35747
|
+
let { gen: i, it: a } = e;
|
|
35748
|
+
a.schemaEnv.root.dynamicAnchors[r] = !0;
|
|
35749
|
+
let o = (0, t._)`${n.default.dynamicAnchors}${(0, t.getProperty)(r)}`, c = a.errSchemaPath === "#" ? a.validateName : s(e);
|
|
35750
|
+
i.if((0, t._)`!${o}`, () => i.assign(o, c));
|
|
35751
|
+
}
|
|
35752
|
+
e.dynamicAnchor = o;
|
|
35753
|
+
function s(e) {
|
|
35754
|
+
let { schemaEnv: t, schema: n, self: a } = e.it, { root: o, baseId: s, localRefs: c, meta: l } = t.root, { schemaId: u } = a.opts, d = new r.SchemaEnv({
|
|
35755
|
+
schema: n,
|
|
35756
|
+
schemaId: u,
|
|
35757
|
+
root: o,
|
|
35758
|
+
baseId: s,
|
|
35759
|
+
localRefs: c,
|
|
35760
|
+
meta: l
|
|
35761
|
+
});
|
|
35762
|
+
return r.compileSchema.call(a, d), (0, i.getValidate)(e, d);
|
|
35763
|
+
}
|
|
35764
|
+
e.default = a;
|
|
35765
|
+
})), IQ = /* @__PURE__ */ G(((e) => {
|
|
35766
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.dynamicRef = void 0;
|
|
35767
|
+
var t = cZ(), n = uZ(), r = VZ(), i = {
|
|
35768
|
+
keyword: "$dynamicRef",
|
|
35769
|
+
schemaType: "string",
|
|
35770
|
+
code: (e) => a(e, e.schema)
|
|
35771
|
+
};
|
|
35772
|
+
function a(e, i) {
|
|
35773
|
+
let { gen: a, keyword: o, it: s } = e;
|
|
35774
|
+
if (i[0] !== "#") throw Error(`"${o}" only supports hash fragment reference`);
|
|
35775
|
+
let c = i.slice(1);
|
|
35776
|
+
if (s.allErrors) l();
|
|
35777
|
+
else {
|
|
35778
|
+
let t = a.let("valid", !1);
|
|
35779
|
+
l(t), e.ok(t);
|
|
35780
|
+
}
|
|
35781
|
+
function l(e) {
|
|
35782
|
+
if (s.schemaEnv.root.dynamicAnchors[c]) {
|
|
35783
|
+
let r = a.let("_v", (0, t._)`${n.default.dynamicAnchors}${(0, t.getProperty)(c)}`);
|
|
35784
|
+
a.if(r, u(r, e), u(s.validateName, e));
|
|
35785
|
+
} else u(s.validateName, e)();
|
|
35786
|
+
}
|
|
35787
|
+
function u(t, n) {
|
|
35788
|
+
return n ? () => a.block(() => {
|
|
35789
|
+
(0, r.callRef)(e, t), a.let(n, !0);
|
|
35790
|
+
}) : () => (0, r.callRef)(e, t);
|
|
35791
|
+
}
|
|
35792
|
+
}
|
|
35793
|
+
e.dynamicRef = a, e.default = i;
|
|
35794
|
+
})), LQ = /* @__PURE__ */ G(((e) => {
|
|
35795
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35796
|
+
var t = FQ(), n = lZ();
|
|
35797
|
+
e.default = {
|
|
35798
|
+
keyword: "$recursiveAnchor",
|
|
35799
|
+
schemaType: "boolean",
|
|
35800
|
+
code(e) {
|
|
35801
|
+
e.schema ? (0, t.dynamicAnchor)(e, "") : (0, n.checkStrictMode)(e.it, "$recursiveAnchor: false is ignored");
|
|
35802
|
+
}
|
|
35803
|
+
};
|
|
35804
|
+
})), RQ = /* @__PURE__ */ G(((e) => {
|
|
35805
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35806
|
+
var t = IQ();
|
|
35807
|
+
e.default = {
|
|
35808
|
+
keyword: "$recursiveRef",
|
|
35809
|
+
schemaType: "string",
|
|
35810
|
+
code: (e) => (0, t.dynamicRef)(e, e.schema)
|
|
35811
|
+
};
|
|
35812
|
+
})), zQ = /* @__PURE__ */ G(((e) => {
|
|
35813
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35814
|
+
var t = FQ(), n = IQ(), r = LQ(), i = RQ();
|
|
35815
|
+
e.default = [
|
|
35816
|
+
t.default,
|
|
35817
|
+
n.default,
|
|
35818
|
+
r.default,
|
|
35819
|
+
i.default
|
|
35820
|
+
];
|
|
35821
|
+
})), BQ = /* @__PURE__ */ G(((e) => {
|
|
35822
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35823
|
+
var t = sQ();
|
|
35824
|
+
e.default = {
|
|
35825
|
+
keyword: "dependentRequired",
|
|
35826
|
+
type: "object",
|
|
35827
|
+
schemaType: "object",
|
|
35828
|
+
error: t.error,
|
|
35829
|
+
code: (e) => (0, t.validatePropertyDeps)(e)
|
|
35830
|
+
};
|
|
35831
|
+
})), VQ = /* @__PURE__ */ G(((e) => {
|
|
35832
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35833
|
+
var t = sQ();
|
|
35834
|
+
e.default = {
|
|
35835
|
+
keyword: "dependentSchemas",
|
|
35836
|
+
type: "object",
|
|
35837
|
+
schemaType: "object",
|
|
35838
|
+
code: (e) => (0, t.validateSchemaDeps)(e)
|
|
35839
|
+
};
|
|
35840
|
+
})), HQ = /* @__PURE__ */ G(((e) => {
|
|
35841
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35842
|
+
var t = lZ();
|
|
35843
|
+
e.default = {
|
|
35844
|
+
keyword: ["maxContains", "minContains"],
|
|
35845
|
+
type: "array",
|
|
35846
|
+
schemaType: "number",
|
|
35847
|
+
code({ keyword: e, parentSchema: n, it: r }) {
|
|
35848
|
+
n.contains === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "contains" is ignored`);
|
|
35849
|
+
}
|
|
35850
|
+
};
|
|
35851
|
+
})), UQ = /* @__PURE__ */ G(((e) => {
|
|
35852
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35853
|
+
var t = BQ(), n = VQ(), r = HQ();
|
|
35854
|
+
e.default = [
|
|
35855
|
+
t.default,
|
|
35856
|
+
n.default,
|
|
35857
|
+
r.default
|
|
35858
|
+
];
|
|
35859
|
+
})), WQ = /* @__PURE__ */ G(((e) => {
|
|
35860
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35861
|
+
var t = cZ(), n = lZ(), r = uZ();
|
|
35862
|
+
e.default = {
|
|
35863
|
+
keyword: "unevaluatedProperties",
|
|
35864
|
+
type: "object",
|
|
35865
|
+
schemaType: ["boolean", "object"],
|
|
35866
|
+
trackErrors: !0,
|
|
35867
|
+
error: {
|
|
35868
|
+
message: "must NOT have unevaluated properties",
|
|
35869
|
+
params: ({ params: e }) => (0, t._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`
|
|
35870
|
+
},
|
|
35871
|
+
code(e) {
|
|
35872
|
+
let { gen: i, schema: a, data: o, errsCount: s, it: c } = e;
|
|
35873
|
+
/* istanbul ignore if */
|
|
35874
|
+
if (!s) throw Error("ajv implementation error");
|
|
35875
|
+
let { allErrors: l, props: u } = c;
|
|
35876
|
+
u instanceof t.Name ? i.if((0, t._)`${u} !== true`, () => i.forIn("key", o, (e) => i.if(f(u, e), () => d(e)))) : u !== !0 && i.forIn("key", o, (e) => u === void 0 ? d(e) : i.if(p(u, e), () => d(e))), c.props = !0, e.ok((0, t._)`${s} === ${r.default.errors}`);
|
|
35877
|
+
function d(r) {
|
|
35878
|
+
if (a === !1) {
|
|
35879
|
+
e.setParams({ unevaluatedProperty: r }), e.error(), l || i.break();
|
|
35880
|
+
return;
|
|
35881
|
+
}
|
|
35882
|
+
if (!(0, n.alwaysValidSchema)(c, a)) {
|
|
35883
|
+
let a = i.name("valid");
|
|
35884
|
+
e.subschema({
|
|
35885
|
+
keyword: "unevaluatedProperties",
|
|
35886
|
+
dataProp: r,
|
|
35887
|
+
dataPropType: n.Type.Str
|
|
35888
|
+
}, a), l || i.if((0, t.not)(a), () => i.break());
|
|
35889
|
+
}
|
|
35890
|
+
}
|
|
35891
|
+
function f(e, n) {
|
|
35892
|
+
return (0, t._)`!${e} || !${e}[${n}]`;
|
|
35893
|
+
}
|
|
35894
|
+
function p(e, n) {
|
|
35895
|
+
let r = [];
|
|
35896
|
+
for (let i in e) e[i] === !0 && r.push((0, t._)`${n} !== ${i}`);
|
|
35897
|
+
return (0, t.and)(...r);
|
|
35898
|
+
}
|
|
35899
|
+
}
|
|
35900
|
+
};
|
|
35901
|
+
})), GQ = /* @__PURE__ */ G(((e) => {
|
|
35902
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35903
|
+
var t = cZ(), n = lZ();
|
|
35904
|
+
e.default = {
|
|
35905
|
+
keyword: "unevaluatedItems",
|
|
35906
|
+
type: "array",
|
|
35907
|
+
schemaType: ["boolean", "object"],
|
|
35908
|
+
error: {
|
|
35909
|
+
message: ({ params: { len: e } }) => (0, t.str)`must NOT have more than ${e} items`,
|
|
35910
|
+
params: ({ params: { len: e } }) => (0, t._)`{limit: ${e}}`
|
|
35911
|
+
},
|
|
35912
|
+
code(e) {
|
|
35913
|
+
let { gen: r, schema: i, data: a, it: o } = e, s = o.items || 0;
|
|
35914
|
+
if (s === !0) return;
|
|
35915
|
+
let c = r.const("len", (0, t._)`${a}.length`);
|
|
35916
|
+
if (i === !1) e.setParams({ len: s }), e.fail((0, t._)`${c} > ${s}`);
|
|
35917
|
+
else if (typeof i == "object" && !(0, n.alwaysValidSchema)(o, i)) {
|
|
35918
|
+
let n = r.var("valid", (0, t._)`${c} <= ${s}`);
|
|
35919
|
+
r.if((0, t.not)(n), () => l(n, s)), e.ok(n);
|
|
35920
|
+
}
|
|
35921
|
+
o.items = !0;
|
|
35922
|
+
function l(i, a) {
|
|
35923
|
+
r.forRange("i", a, c, (a) => {
|
|
35924
|
+
e.subschema({
|
|
35925
|
+
keyword: "unevaluatedItems",
|
|
35926
|
+
dataProp: a,
|
|
35927
|
+
dataPropType: n.Type.Num
|
|
35928
|
+
}, i), o.allErrors || r.if((0, t.not)(i), () => r.break());
|
|
35929
|
+
});
|
|
35930
|
+
}
|
|
35931
|
+
}
|
|
35932
|
+
};
|
|
35933
|
+
})), KQ = /* @__PURE__ */ G(((e) => {
|
|
35934
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35935
|
+
var t = WQ(), n = GQ();
|
|
35936
|
+
e.default = [t.default, n.default];
|
|
35937
|
+
})), qQ = /* @__PURE__ */ mt({
|
|
35938
|
+
$id: () => YQ,
|
|
35939
|
+
$recursiveAnchor: () => !0,
|
|
35940
|
+
$schema: () => JQ,
|
|
35941
|
+
$vocabulary: () => XQ,
|
|
35942
|
+
allOf: () => QQ,
|
|
35943
|
+
default: () => t$,
|
|
35944
|
+
properties: () => e$,
|
|
35945
|
+
title: () => ZQ,
|
|
35946
|
+
type: () => $Q
|
|
35947
|
+
}), JQ, YQ, XQ, ZQ, QQ, $Q, e$, t$, n$ = pt((() => {
|
|
35948
|
+
JQ = "https://json-schema.org/draft/2019-09/schema", YQ = "https://json-schema.org/draft/2019-09/schema", XQ = {
|
|
35949
|
+
"https://json-schema.org/draft/2019-09/vocab/core": !0,
|
|
35950
|
+
"https://json-schema.org/draft/2019-09/vocab/applicator": !0,
|
|
35951
|
+
"https://json-schema.org/draft/2019-09/vocab/validation": !0,
|
|
35952
|
+
"https://json-schema.org/draft/2019-09/vocab/meta-data": !0,
|
|
35953
|
+
"https://json-schema.org/draft/2019-09/vocab/format": !1,
|
|
35954
|
+
"https://json-schema.org/draft/2019-09/vocab/content": !0
|
|
35955
|
+
}, ZQ = "Core and Validation specifications meta-schema", QQ = [
|
|
35956
|
+
{ $ref: "meta/core" },
|
|
35957
|
+
{ $ref: "meta/applicator" },
|
|
35958
|
+
{ $ref: "meta/validation" },
|
|
35959
|
+
{ $ref: "meta/meta-data" },
|
|
35960
|
+
{ $ref: "meta/format" },
|
|
35961
|
+
{ $ref: "meta/content" }
|
|
35962
|
+
], $Q = ["object", "boolean"], e$ = {
|
|
35963
|
+
definitions: {
|
|
35964
|
+
$comment: "While no longer an official keyword as it is replaced by $defs, this keyword is retained in the meta-schema to prevent incompatible extensions as it remains in common use.",
|
|
35965
|
+
type: "object",
|
|
35966
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
35967
|
+
default: {}
|
|
35968
|
+
},
|
|
35969
|
+
dependencies: {
|
|
35970
|
+
$comment: "\"dependencies\" is no longer a keyword, but schema authors should avoid redefining it to facilitate a smooth transition to \"dependentSchemas\" and \"dependentRequired\"",
|
|
35971
|
+
type: "object",
|
|
35972
|
+
additionalProperties: { anyOf: [{ $recursiveRef: "#" }, { $ref: "meta/validation#/$defs/stringArray" }] }
|
|
35973
|
+
}
|
|
35974
|
+
}, t$ = {
|
|
35975
|
+
$schema: JQ,
|
|
35976
|
+
$id: YQ,
|
|
35977
|
+
$vocabulary: XQ,
|
|
35978
|
+
$recursiveAnchor: !0,
|
|
35979
|
+
title: ZQ,
|
|
35980
|
+
allOf: QQ,
|
|
35981
|
+
type: $Q,
|
|
35982
|
+
properties: e$
|
|
35983
|
+
};
|
|
35984
|
+
})), r$ = /* @__PURE__ */ mt({
|
|
35985
|
+
$defs: () => u$,
|
|
35986
|
+
$id: () => a$,
|
|
35987
|
+
$recursiveAnchor: () => !0,
|
|
35988
|
+
$schema: () => i$,
|
|
35989
|
+
$vocabulary: () => o$,
|
|
35990
|
+
default: () => d$,
|
|
35991
|
+
properties: () => l$,
|
|
35992
|
+
title: () => s$,
|
|
35993
|
+
type: () => c$
|
|
35994
|
+
}), i$, a$, o$, s$, c$, l$, u$, d$, f$ = pt((() => {
|
|
35995
|
+
i$ = "https://json-schema.org/draft/2019-09/schema", a$ = "https://json-schema.org/draft/2019-09/meta/applicator", o$ = { "https://json-schema.org/draft/2019-09/vocab/applicator": !0 }, s$ = "Applicator vocabulary meta-schema", c$ = ["object", "boolean"], l$ = {
|
|
35996
|
+
additionalItems: { $recursiveRef: "#" },
|
|
35997
|
+
unevaluatedItems: { $recursiveRef: "#" },
|
|
35998
|
+
items: { anyOf: [{ $recursiveRef: "#" }, { $ref: "#/$defs/schemaArray" }] },
|
|
35999
|
+
contains: { $recursiveRef: "#" },
|
|
36000
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36001
|
+
unevaluatedProperties: { $recursiveRef: "#" },
|
|
36002
|
+
properties: {
|
|
36003
|
+
type: "object",
|
|
36004
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36005
|
+
default: {}
|
|
36006
|
+
},
|
|
36007
|
+
patternProperties: {
|
|
36008
|
+
type: "object",
|
|
36009
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36010
|
+
propertyNames: { format: "regex" },
|
|
36011
|
+
default: {}
|
|
36012
|
+
},
|
|
36013
|
+
dependentSchemas: {
|
|
36014
|
+
type: "object",
|
|
36015
|
+
additionalProperties: { $recursiveRef: "#" }
|
|
36016
|
+
},
|
|
36017
|
+
propertyNames: { $recursiveRef: "#" },
|
|
36018
|
+
if: { $recursiveRef: "#" },
|
|
36019
|
+
then: { $recursiveRef: "#" },
|
|
36020
|
+
else: { $recursiveRef: "#" },
|
|
36021
|
+
allOf: { $ref: "#/$defs/schemaArray" },
|
|
36022
|
+
anyOf: { $ref: "#/$defs/schemaArray" },
|
|
36023
|
+
oneOf: { $ref: "#/$defs/schemaArray" },
|
|
36024
|
+
not: { $recursiveRef: "#" }
|
|
36025
|
+
}, u$ = { schemaArray: {
|
|
36026
|
+
type: "array",
|
|
36027
|
+
minItems: 1,
|
|
36028
|
+
items: { $recursiveRef: "#" }
|
|
36029
|
+
} }, d$ = {
|
|
36030
|
+
$schema: i$,
|
|
36031
|
+
$id: a$,
|
|
36032
|
+
$vocabulary: o$,
|
|
36033
|
+
$recursiveAnchor: !0,
|
|
36034
|
+
title: s$,
|
|
36035
|
+
type: c$,
|
|
36036
|
+
properties: l$,
|
|
36037
|
+
$defs: u$
|
|
36038
|
+
};
|
|
36039
|
+
})), p$ = /* @__PURE__ */ mt({
|
|
36040
|
+
$id: () => h$,
|
|
36041
|
+
$recursiveAnchor: () => !0,
|
|
36042
|
+
$schema: () => m$,
|
|
36043
|
+
$vocabulary: () => g$,
|
|
36044
|
+
default: () => b$,
|
|
36045
|
+
properties: () => y$,
|
|
36046
|
+
title: () => _$,
|
|
36047
|
+
type: () => v$
|
|
36048
|
+
}), m$, h$, g$, _$, v$, y$, b$, x$ = pt((() => {
|
|
36049
|
+
m$ = "https://json-schema.org/draft/2019-09/schema", h$ = "https://json-schema.org/draft/2019-09/meta/content", g$ = { "https://json-schema.org/draft/2019-09/vocab/content": !0 }, _$ = "Content vocabulary meta-schema", v$ = ["object", "boolean"], y$ = {
|
|
36050
|
+
contentMediaType: { type: "string" },
|
|
36051
|
+
contentEncoding: { type: "string" },
|
|
36052
|
+
contentSchema: { $recursiveRef: "#" }
|
|
36053
|
+
}, b$ = {
|
|
36054
|
+
$schema: m$,
|
|
36055
|
+
$id: h$,
|
|
36056
|
+
$vocabulary: g$,
|
|
36057
|
+
$recursiveAnchor: !0,
|
|
36058
|
+
title: _$,
|
|
36059
|
+
type: v$,
|
|
36060
|
+
properties: y$
|
|
36061
|
+
};
|
|
36062
|
+
})), S$ = /* @__PURE__ */ mt({
|
|
36063
|
+
$id: () => w$,
|
|
36064
|
+
$recursiveAnchor: () => !0,
|
|
36065
|
+
$schema: () => C$,
|
|
36066
|
+
$vocabulary: () => T$,
|
|
36067
|
+
default: () => k$,
|
|
36068
|
+
properties: () => O$,
|
|
36069
|
+
title: () => E$,
|
|
36070
|
+
type: () => D$
|
|
36071
|
+
}), C$, w$, T$, E$, D$, O$, k$, A$ = pt((() => {
|
|
36072
|
+
C$ = "https://json-schema.org/draft/2019-09/schema", w$ = "https://json-schema.org/draft/2019-09/meta/core", T$ = { "https://json-schema.org/draft/2019-09/vocab/core": !0 }, E$ = "Core vocabulary meta-schema", D$ = ["object", "boolean"], O$ = {
|
|
36073
|
+
$id: {
|
|
36074
|
+
type: "string",
|
|
36075
|
+
format: "uri-reference",
|
|
36076
|
+
$comment: "Non-empty fragments not allowed.",
|
|
36077
|
+
pattern: "^[^#]*#?$"
|
|
36078
|
+
},
|
|
36079
|
+
$schema: {
|
|
36080
|
+
type: "string",
|
|
36081
|
+
format: "uri"
|
|
36082
|
+
},
|
|
36083
|
+
$anchor: {
|
|
36084
|
+
type: "string",
|
|
36085
|
+
pattern: "^[A-Za-z][-A-Za-z0-9.:_]*$"
|
|
36086
|
+
},
|
|
36087
|
+
$ref: {
|
|
36088
|
+
type: "string",
|
|
36089
|
+
format: "uri-reference"
|
|
36090
|
+
},
|
|
36091
|
+
$recursiveRef: {
|
|
36092
|
+
type: "string",
|
|
36093
|
+
format: "uri-reference"
|
|
36094
|
+
},
|
|
36095
|
+
$recursiveAnchor: {
|
|
36096
|
+
type: "boolean",
|
|
36097
|
+
default: !1
|
|
36098
|
+
},
|
|
36099
|
+
$vocabulary: {
|
|
36100
|
+
type: "object",
|
|
36101
|
+
propertyNames: {
|
|
36102
|
+
type: "string",
|
|
36103
|
+
format: "uri"
|
|
36104
|
+
},
|
|
36105
|
+
additionalProperties: { type: "boolean" }
|
|
36106
|
+
},
|
|
36107
|
+
$comment: { type: "string" },
|
|
36108
|
+
$defs: {
|
|
36109
|
+
type: "object",
|
|
36110
|
+
additionalProperties: { $recursiveRef: "#" },
|
|
36111
|
+
default: {}
|
|
36112
|
+
}
|
|
36113
|
+
}, k$ = {
|
|
36114
|
+
$schema: C$,
|
|
36115
|
+
$id: w$,
|
|
36116
|
+
$vocabulary: T$,
|
|
36117
|
+
$recursiveAnchor: !0,
|
|
36118
|
+
title: E$,
|
|
36119
|
+
type: D$,
|
|
36120
|
+
properties: O$
|
|
36121
|
+
};
|
|
36122
|
+
})), j$ = /* @__PURE__ */ mt({
|
|
36123
|
+
$id: () => N$,
|
|
36124
|
+
$recursiveAnchor: () => !0,
|
|
36125
|
+
$schema: () => M$,
|
|
36126
|
+
$vocabulary: () => P$,
|
|
36127
|
+
default: () => R$,
|
|
36128
|
+
properties: () => L$,
|
|
36129
|
+
title: () => F$,
|
|
36130
|
+
type: () => I$
|
|
36131
|
+
}), M$, N$, P$, F$, I$, L$, R$, z$ = pt((() => {
|
|
36132
|
+
M$ = "https://json-schema.org/draft/2019-09/schema", N$ = "https://json-schema.org/draft/2019-09/meta/format", P$ = { "https://json-schema.org/draft/2019-09/vocab/format": !0 }, F$ = "Format vocabulary meta-schema", I$ = ["object", "boolean"], L$ = { format: { type: "string" } }, R$ = {
|
|
36133
|
+
$schema: M$,
|
|
36134
|
+
$id: N$,
|
|
36135
|
+
$vocabulary: P$,
|
|
36136
|
+
$recursiveAnchor: !0,
|
|
36137
|
+
title: F$,
|
|
36138
|
+
type: I$,
|
|
36139
|
+
properties: L$
|
|
36140
|
+
};
|
|
36141
|
+
})), B$ = /* @__PURE__ */ mt({
|
|
36142
|
+
$id: () => H$,
|
|
36143
|
+
$recursiveAnchor: () => !0,
|
|
36144
|
+
$schema: () => V$,
|
|
36145
|
+
$vocabulary: () => U$,
|
|
36146
|
+
default: () => q$,
|
|
36147
|
+
properties: () => K$,
|
|
36148
|
+
title: () => W$,
|
|
36149
|
+
type: () => G$
|
|
36150
|
+
}), V$, H$, U$, W$, G$, K$, q$, J$ = pt((() => {
|
|
36151
|
+
V$ = "https://json-schema.org/draft/2019-09/schema", H$ = "https://json-schema.org/draft/2019-09/meta/meta-data", U$ = { "https://json-schema.org/draft/2019-09/vocab/meta-data": !0 }, W$ = "Meta-data vocabulary meta-schema", G$ = ["object", "boolean"], K$ = {
|
|
36152
|
+
title: { type: "string" },
|
|
36153
|
+
description: { type: "string" },
|
|
36154
|
+
default: !0,
|
|
36155
|
+
deprecated: {
|
|
36156
|
+
type: "boolean",
|
|
36157
|
+
default: !1
|
|
36158
|
+
},
|
|
36159
|
+
readOnly: {
|
|
36160
|
+
type: "boolean",
|
|
36161
|
+
default: !1
|
|
36162
|
+
},
|
|
36163
|
+
writeOnly: {
|
|
36164
|
+
type: "boolean",
|
|
36165
|
+
default: !1
|
|
36166
|
+
},
|
|
36167
|
+
examples: {
|
|
36168
|
+
type: "array",
|
|
36169
|
+
items: !0
|
|
36170
|
+
}
|
|
36171
|
+
}, q$ = {
|
|
36172
|
+
$schema: V$,
|
|
36173
|
+
$id: H$,
|
|
36174
|
+
$vocabulary: U$,
|
|
36175
|
+
$recursiveAnchor: !0,
|
|
36176
|
+
title: W$,
|
|
36177
|
+
type: G$,
|
|
36178
|
+
properties: K$
|
|
36179
|
+
};
|
|
36180
|
+
})), Y$ = /* @__PURE__ */ mt({
|
|
36181
|
+
$defs: () => n1,
|
|
36182
|
+
$id: () => Z$,
|
|
36183
|
+
$recursiveAnchor: () => !0,
|
|
36184
|
+
$schema: () => X$,
|
|
36185
|
+
$vocabulary: () => Q$,
|
|
36186
|
+
default: () => r1,
|
|
36187
|
+
properties: () => t1,
|
|
36188
|
+
title: () => $$,
|
|
36189
|
+
type: () => e1
|
|
36190
|
+
}), X$, Z$, Q$, $$, e1, t1, n1, r1, i1 = pt((() => {
|
|
36191
|
+
X$ = "https://json-schema.org/draft/2019-09/schema", Z$ = "https://json-schema.org/draft/2019-09/meta/validation", Q$ = { "https://json-schema.org/draft/2019-09/vocab/validation": !0 }, $$ = "Validation vocabulary meta-schema", e1 = ["object", "boolean"], t1 = {
|
|
36192
|
+
multipleOf: {
|
|
36193
|
+
type: "number",
|
|
36194
|
+
exclusiveMinimum: 0
|
|
36195
|
+
},
|
|
36196
|
+
maximum: { type: "number" },
|
|
36197
|
+
exclusiveMaximum: { type: "number" },
|
|
36198
|
+
minimum: { type: "number" },
|
|
36199
|
+
exclusiveMinimum: { type: "number" },
|
|
36200
|
+
maxLength: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36201
|
+
minLength: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
36202
|
+
pattern: {
|
|
36203
|
+
type: "string",
|
|
36204
|
+
format: "regex"
|
|
36205
|
+
},
|
|
36206
|
+
maxItems: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36207
|
+
minItems: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
36208
|
+
uniqueItems: {
|
|
36209
|
+
type: "boolean",
|
|
36210
|
+
default: !1
|
|
36211
|
+
},
|
|
36212
|
+
maxContains: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36213
|
+
minContains: {
|
|
36214
|
+
$ref: "#/$defs/nonNegativeInteger",
|
|
36215
|
+
default: 1
|
|
36216
|
+
},
|
|
36217
|
+
maxProperties: { $ref: "#/$defs/nonNegativeInteger" },
|
|
36218
|
+
minProperties: { $ref: "#/$defs/nonNegativeIntegerDefault0" },
|
|
36219
|
+
required: { $ref: "#/$defs/stringArray" },
|
|
36220
|
+
dependentRequired: {
|
|
36221
|
+
type: "object",
|
|
36222
|
+
additionalProperties: { $ref: "#/$defs/stringArray" }
|
|
36223
|
+
},
|
|
36224
|
+
const: !0,
|
|
36225
|
+
enum: {
|
|
36226
|
+
type: "array",
|
|
36227
|
+
items: !0
|
|
36228
|
+
},
|
|
36229
|
+
type: { anyOf: [{ $ref: "#/$defs/simpleTypes" }, {
|
|
36230
|
+
type: "array",
|
|
36231
|
+
items: { $ref: "#/$defs/simpleTypes" },
|
|
36232
|
+
minItems: 1,
|
|
36233
|
+
uniqueItems: !0
|
|
36234
|
+
}] }
|
|
36235
|
+
}, n1 = {
|
|
36236
|
+
nonNegativeInteger: {
|
|
36237
|
+
type: "integer",
|
|
36238
|
+
minimum: 0
|
|
36239
|
+
},
|
|
36240
|
+
nonNegativeIntegerDefault0: {
|
|
36241
|
+
$ref: "#/$defs/nonNegativeInteger",
|
|
36242
|
+
default: 0
|
|
36243
|
+
},
|
|
36244
|
+
simpleTypes: { enum: [
|
|
36245
|
+
"array",
|
|
36246
|
+
"boolean",
|
|
36247
|
+
"integer",
|
|
36248
|
+
"null",
|
|
36249
|
+
"number",
|
|
36250
|
+
"object",
|
|
36251
|
+
"string"
|
|
36252
|
+
] },
|
|
36253
|
+
stringArray: {
|
|
36254
|
+
type: "array",
|
|
36255
|
+
items: { type: "string" },
|
|
36256
|
+
uniqueItems: !0,
|
|
36257
|
+
default: []
|
|
36258
|
+
}
|
|
36259
|
+
}, r1 = {
|
|
36260
|
+
$schema: X$,
|
|
36261
|
+
$id: Z$,
|
|
36262
|
+
$vocabulary: Q$,
|
|
36263
|
+
$recursiveAnchor: !0,
|
|
36264
|
+
title: $$,
|
|
36265
|
+
type: e1,
|
|
36266
|
+
properties: t1,
|
|
36267
|
+
$defs: n1
|
|
36268
|
+
};
|
|
36269
|
+
})), a1 = /* @__PURE__ */ G(((e) => {
|
|
36270
|
+
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36271
|
+
var t = (n$(), _t(qQ).default), n = (f$(), _t(r$).default), r = (x$(), _t(p$).default), i = (A$(), _t(S$).default), a = (z$(), _t(j$).default), o = (J$(), _t(B$).default), s = (i1(), _t(Y$).default), c = ["/properties"];
|
|
36272
|
+
function l(e) {
|
|
36273
|
+
return [
|
|
36274
|
+
t,
|
|
36275
|
+
n,
|
|
36276
|
+
r,
|
|
36277
|
+
i,
|
|
36278
|
+
l(this, a),
|
|
36279
|
+
o,
|
|
36280
|
+
l(this, s)
|
|
36281
|
+
].forEach((e) => this.addMetaSchema(e, void 0, !1)), this;
|
|
36282
|
+
function l(t, n) {
|
|
36283
|
+
return e ? t.$dataMetaSchema(n, c) : n;
|
|
36284
|
+
}
|
|
36285
|
+
}
|
|
36286
|
+
e.default = l;
|
|
36287
|
+
})), o1 = /* @__PURE__ */ G(((e, t) => {
|
|
36288
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.MissingRefError = e.ValidationError = e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = e.Ajv2019 = void 0;
|
|
36289
|
+
var n = zZ(), r = SQ(), i = zQ(), a = UQ(), o = KQ(), s = wQ(), c = a1(), l = "https://json-schema.org/draft/2019-09/schema", u = class extends n.default {
|
|
36290
|
+
constructor(e = {}) {
|
|
36291
|
+
super({
|
|
36292
|
+
...e,
|
|
36293
|
+
dynamicRef: !0,
|
|
36294
|
+
next: !0,
|
|
36295
|
+
unevaluated: !0
|
|
36296
|
+
});
|
|
36297
|
+
}
|
|
36298
|
+
_addVocabularies() {
|
|
36299
|
+
super._addVocabularies(), this.addVocabulary(i.default), r.default.forEach((e) => this.addVocabulary(e)), this.addVocabulary(a.default), this.addVocabulary(o.default), this.opts.discriminator && this.addKeyword(s.default);
|
|
36300
|
+
}
|
|
36301
|
+
_addDefaultMetaSchema() {
|
|
36302
|
+
super._addDefaultMetaSchema();
|
|
36303
|
+
let { $data: e, meta: t } = this.opts;
|
|
36304
|
+
t && (c.default.call(this, e), this.refs["http://json-schema.org/schema"] = l);
|
|
36305
|
+
}
|
|
36306
|
+
defaultMeta() {
|
|
36307
|
+
return this.opts.defaultMeta = super.defaultMeta() || (this.getSchema(l) ? l : void 0);
|
|
36308
|
+
}
|
|
36309
|
+
};
|
|
36310
|
+
e.Ajv2019 = u, t.exports = e = u, t.exports.Ajv2019 = u, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = u;
|
|
36311
|
+
var d = CZ();
|
|
36312
|
+
Object.defineProperty(e, "KeywordCxt", {
|
|
36313
|
+
enumerable: !0,
|
|
36314
|
+
get: function() {
|
|
36315
|
+
return d.KeywordCxt;
|
|
36316
|
+
}
|
|
36317
|
+
});
|
|
36318
|
+
var f = cZ();
|
|
36319
|
+
Object.defineProperty(e, "_", {
|
|
36320
|
+
enumerable: !0,
|
|
36321
|
+
get: function() {
|
|
36322
|
+
return f._;
|
|
36323
|
+
}
|
|
36324
|
+
}), Object.defineProperty(e, "str", {
|
|
36325
|
+
enumerable: !0,
|
|
36326
|
+
get: function() {
|
|
36327
|
+
return f.str;
|
|
36328
|
+
}
|
|
36329
|
+
}), Object.defineProperty(e, "stringify", {
|
|
36330
|
+
enumerable: !0,
|
|
36331
|
+
get: function() {
|
|
36332
|
+
return f.stringify;
|
|
36333
|
+
}
|
|
36334
|
+
}), Object.defineProperty(e, "nil", {
|
|
36335
|
+
enumerable: !0,
|
|
36336
|
+
get: function() {
|
|
36337
|
+
return f.nil;
|
|
36338
|
+
}
|
|
36339
|
+
}), Object.defineProperty(e, "Name", {
|
|
36340
|
+
enumerable: !0,
|
|
36341
|
+
get: function() {
|
|
36342
|
+
return f.Name;
|
|
36343
|
+
}
|
|
36344
|
+
}), Object.defineProperty(e, "CodeGen", {
|
|
36345
|
+
enumerable: !0,
|
|
36346
|
+
get: function() {
|
|
36347
|
+
return f.CodeGen;
|
|
36348
|
+
}
|
|
36349
|
+
});
|
|
36350
|
+
var p = wZ();
|
|
36351
|
+
Object.defineProperty(e, "ValidationError", {
|
|
36352
|
+
enumerable: !0,
|
|
36353
|
+
get: function() {
|
|
36354
|
+
return p.default;
|
|
36355
|
+
}
|
|
36356
|
+
});
|
|
36357
|
+
var m = TZ();
|
|
36358
|
+
Object.defineProperty(e, "MissingRefError", {
|
|
36359
|
+
enumerable: !0,
|
|
36360
|
+
get: function() {
|
|
36361
|
+
return m.default;
|
|
36362
|
+
}
|
|
36363
|
+
});
|
|
36364
|
+
})), s1 = /* @__PURE__ */ G(((e) => {
|
|
35438
36365
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
35439
36366
|
function t(e, t) {
|
|
35440
36367
|
return {
|
|
@@ -35586,9 +36513,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35586
36513
|
return !1;
|
|
35587
36514
|
}
|
|
35588
36515
|
}
|
|
35589
|
-
})),
|
|
36516
|
+
})), c1 = /* @__PURE__ */ G(((e) => {
|
|
35590
36517
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
35591
|
-
var t =
|
|
36518
|
+
var t = PQ(), n = cZ(), r = n.operators, i = {
|
|
35592
36519
|
formatMaximum: {
|
|
35593
36520
|
okStr: "<=",
|
|
35594
36521
|
ok: r.LTE,
|
|
@@ -35648,9 +36575,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35648
36575
|
},
|
|
35649
36576
|
dependencies: ["format"]
|
|
35650
36577
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
35651
|
-
})),
|
|
36578
|
+
})), l1 = /* @__PURE__ */ G(((e, t) => {
|
|
35652
36579
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35653
|
-
var n =
|
|
36580
|
+
var n = s1(), r = c1(), i = cZ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
35654
36581
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
35655
36582
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
35656
36583
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -35666,9 +36593,9 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35666
36593
|
for (let r of t) e.addFormat(r, n[r]);
|
|
35667
36594
|
}
|
|
35668
36595
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
35669
|
-
})),
|
|
36596
|
+
})), u1 = /* @__PURE__ */ gt(PQ(), 1), d1 = /* @__PURE__ */ gt(o1(), 1), f1 = /* @__PURE__ */ gt(l1(), 1), p1 = {
|
|
35670
36597
|
required: () => "This field is required",
|
|
35671
|
-
type: (e) => `Should be "${
|
|
36598
|
+
type: (e) => `Should be "${h1(e)}".`,
|
|
35672
36599
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
35673
36600
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
35674
36601
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -35684,79 +36611,86 @@ var wX = /* @__PURE__ */ G(((e) => {
|
|
|
35684
36611
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
35685
36612
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
35686
36613
|
};
|
|
35687
|
-
function
|
|
35688
|
-
let n =
|
|
36614
|
+
function m1(e, t) {
|
|
36615
|
+
let n = p1[e.keyword];
|
|
35689
36616
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
35690
36617
|
}
|
|
35691
|
-
function
|
|
36618
|
+
function h1(e) {
|
|
35692
36619
|
let t = e.params.type;
|
|
35693
36620
|
return String(Array.isArray(t) ? t[0] : t);
|
|
35694
36621
|
}
|
|
35695
36622
|
//#endregion
|
|
35696
36623
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
35697
|
-
|
|
35698
|
-
|
|
35699
|
-
|
|
35700
|
-
|
|
36624
|
+
var g1 = /* @__PURE__ */ new Set();
|
|
36625
|
+
function _1(e, t, n, r = {}) {
|
|
36626
|
+
let i = t === "" ? [] : t.split("."), a = {
|
|
36627
|
+
...r,
|
|
36628
|
+
root: n
|
|
36629
|
+
}, o = e.root, s = n, c = [];
|
|
36630
|
+
for (let e of i) {
|
|
36631
|
+
if (!o) return {
|
|
35701
36632
|
node: void 0,
|
|
35702
36633
|
value: void 0
|
|
35703
36634
|
};
|
|
35704
|
-
|
|
36635
|
+
let t = o, { node: n } = v1(t, s, c, a);
|
|
36636
|
+
/^\d+$/.test(e) ? (o = n.items, s = Array.isArray(s) ? s[Number(e)] : void 0) : (o = n.properties?.get(e) ?? t.properties?.get(e), s = s && typeof s == "object" ? s[e] : void 0), c.push(e);
|
|
35705
36637
|
}
|
|
35706
|
-
|
|
35707
|
-
node: lQ(cQ(i, a, n, r), r),
|
|
35708
|
-
value: a
|
|
35709
|
-
} : {
|
|
36638
|
+
if (!o) return {
|
|
35710
36639
|
node: void 0,
|
|
35711
|
-
value:
|
|
36640
|
+
value: s
|
|
36641
|
+
};
|
|
36642
|
+
let { node: l, hiddenByDisplayIf: u } = v1(o, s, i, a);
|
|
36643
|
+
return {
|
|
36644
|
+
node: y1(l, i),
|
|
36645
|
+
value: s,
|
|
36646
|
+
hiddenByDisplayIf: u
|
|
35712
36647
|
};
|
|
35713
36648
|
}
|
|
35714
|
-
function
|
|
35715
|
-
|
|
35716
|
-
|
|
35717
|
-
|
|
35718
|
-
|
|
35719
|
-
|
|
35720
|
-
|
|
35721
|
-
|
|
35722
|
-
|
|
35723
|
-
|
|
35724
|
-
|
|
36649
|
+
function v1(e, t, n, r) {
|
|
36650
|
+
if (!e.properties && !e.variants?.length && !e.dependencyBranches?.length) return {
|
|
36651
|
+
node: e,
|
|
36652
|
+
hiddenByDisplayIf: g1
|
|
36653
|
+
};
|
|
36654
|
+
let i = AX(e, typeof t == "object" && t && !Array.isArray(t) ? t : {}, n.join("."), r);
|
|
36655
|
+
return {
|
|
36656
|
+
node: {
|
|
36657
|
+
...e,
|
|
36658
|
+
properties: new Map(i.visible.map((e) => [e.key, e.node]))
|
|
36659
|
+
},
|
|
36660
|
+
hiddenByDisplayIf: new Set(i.hiddenByDisplayIf)
|
|
36661
|
+
};
|
|
35725
36662
|
}
|
|
35726
|
-
function
|
|
36663
|
+
function y1(e, t) {
|
|
35727
36664
|
return e.displayIf ? {
|
|
35728
36665
|
...e,
|
|
35729
|
-
displayIf:
|
|
36666
|
+
displayIf: BJ(e.displayIf, t.join("."))
|
|
35730
36667
|
} : e;
|
|
35731
36668
|
}
|
|
35732
|
-
function uQ(e, t, n) {
|
|
35733
|
-
for (let [r, i] of e) {
|
|
35734
|
-
let e = NJ(t, RJ(r, n));
|
|
35735
|
-
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
35736
|
-
}
|
|
35737
|
-
return !0;
|
|
35738
|
-
}
|
|
35739
|
-
function dQ(e, t) {
|
|
35740
|
-
if (typeof t != "object" || !t) return;
|
|
35741
|
-
let n = t;
|
|
35742
|
-
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
35743
|
-
}
|
|
35744
36669
|
//#endregion
|
|
35745
36670
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
35746
|
-
var
|
|
36671
|
+
var b1 = w1(new u1.default({
|
|
35747
36672
|
strict: !1,
|
|
35748
36673
|
allErrors: !0
|
|
35749
|
-
})
|
|
35750
|
-
|
|
35751
|
-
|
|
35752
|
-
|
|
35753
|
-
|
|
35754
|
-
|
|
35755
|
-
|
|
35756
|
-
|
|
36674
|
+
})), x1 = w1(new d1.default({
|
|
36675
|
+
strict: !1,
|
|
36676
|
+
allErrors: !0
|
|
36677
|
+
})), S1 = /^https?:\/\/json-schema\.org\/draft\/2019-09\/schema#?$/;
|
|
36678
|
+
function C1(e) {
|
|
36679
|
+
let t = e.$schema;
|
|
36680
|
+
return typeof t == "string" && S1.test(t) ? x1 : b1;
|
|
36681
|
+
}
|
|
36682
|
+
function w1(e) {
|
|
36683
|
+
(0, f1.default)(e);
|
|
36684
|
+
for (let t of ["text", "gio-code-editor"]) e.addFormat(t, !0);
|
|
36685
|
+
return e.removeKeyword("id"), e.addKeyword({
|
|
36686
|
+
keyword: "id",
|
|
36687
|
+
validate: () => !0
|
|
36688
|
+
}), e;
|
|
36689
|
+
}
|
|
36690
|
+
function T1(e, t = {}) {
|
|
35757
36691
|
let n;
|
|
35758
36692
|
try {
|
|
35759
|
-
n =
|
|
36693
|
+
n = lY(e);
|
|
35760
36694
|
} catch (e) {
|
|
35761
36695
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35762
36696
|
return () => ({
|
|
@@ -35767,9 +36701,9 @@ function pQ(e, t = {}) {
|
|
|
35767
36701
|
} }
|
|
35768
36702
|
});
|
|
35769
36703
|
}
|
|
35770
|
-
let r = n.root.schema, i =
|
|
36704
|
+
let r = n.root.schema, { variantPicks: i } = t, a = C1(r), o;
|
|
35771
36705
|
try {
|
|
35772
|
-
|
|
36706
|
+
o = a.compile(r);
|
|
35773
36707
|
} catch (e) {
|
|
35774
36708
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35775
36709
|
return () => ({
|
|
@@ -35780,83 +36714,171 @@ function pQ(e, t = {}) {
|
|
|
35780
36714
|
} }
|
|
35781
36715
|
});
|
|
35782
36716
|
}
|
|
35783
|
-
|
|
35784
|
-
let
|
|
35785
|
-
let
|
|
35786
|
-
|
|
36717
|
+
a.removeSchema(r);
|
|
36718
|
+
let s = async (e, r, a) => {
|
|
36719
|
+
let s = o(e) ? [] : o.errors ?? [], c = B1(n.root, e, "", "", {
|
|
36720
|
+
root: e,
|
|
36721
|
+
context: t.context,
|
|
36722
|
+
variantPicks: i
|
|
36723
|
+
}), l = [...s, ...c];
|
|
36724
|
+
if (l.length === 0) return {
|
|
35787
36725
|
values: e,
|
|
35788
36726
|
errors: {}
|
|
35789
|
-
}
|
|
36727
|
+
};
|
|
36728
|
+
let u = {
|
|
36729
|
+
context: t.context,
|
|
36730
|
+
variantPicks: i
|
|
36731
|
+
};
|
|
36732
|
+
return {
|
|
35790
36733
|
values: {},
|
|
35791
|
-
errors:
|
|
36734
|
+
errors: L1(I1(l.filter((t) => !E1(t, n, e, u))), a.criteriaMode ?? "firstError")
|
|
35792
36735
|
};
|
|
35793
36736
|
};
|
|
35794
|
-
if (!t.basePath) return
|
|
35795
|
-
let { basePath:
|
|
36737
|
+
if (!t.basePath) return s;
|
|
36738
|
+
let { basePath: c } = t;
|
|
35796
36739
|
return async (e, t, n) => {
|
|
35797
|
-
let r = await
|
|
36740
|
+
let r = await s(e[c] ?? {}, t, n);
|
|
35798
36741
|
return Object.keys(r.errors).length === 0 ? {
|
|
35799
36742
|
values: e,
|
|
35800
36743
|
errors: {}
|
|
35801
36744
|
} : {
|
|
35802
36745
|
values: {},
|
|
35803
|
-
errors: { [
|
|
36746
|
+
errors: { [c]: r.errors }
|
|
35804
36747
|
};
|
|
35805
36748
|
};
|
|
35806
36749
|
}
|
|
35807
|
-
function
|
|
35808
|
-
let { node:
|
|
35809
|
-
if (!
|
|
36750
|
+
function E1(e, t, n, r) {
|
|
36751
|
+
let { node: i, value: a, hiddenByDisplayIf: o } = _1(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(aY) : []).join("."), n, r);
|
|
36752
|
+
if (!i) return !1;
|
|
35810
36753
|
switch (e.keyword) {
|
|
35811
36754
|
case "const":
|
|
35812
|
-
case "enum": return
|
|
36755
|
+
case "enum": return F1(i.schema, a);
|
|
35813
36756
|
case "required": {
|
|
35814
|
-
|
|
35815
|
-
|
|
36757
|
+
if (D1(e, t, n, r.variantPicks)) return !0;
|
|
36758
|
+
let a = e.params.missingProperty;
|
|
36759
|
+
return typeof a != "string" || !i.properties || i.properties.has(a) ? !1 : O1(i.schema, a) ? o?.has(a) === !0 || P1(e.schemaPath) : !0;
|
|
35816
36760
|
}
|
|
35817
36761
|
default: return !1;
|
|
35818
36762
|
}
|
|
35819
36763
|
}
|
|
35820
|
-
function
|
|
36764
|
+
function D1(e, t, n, r) {
|
|
36765
|
+
let i = e.schemaPath.replace(/^#\/?/, "").split("/").map(aY);
|
|
36766
|
+
i.pop();
|
|
36767
|
+
let a = e.instancePath ? e.instancePath.slice(1).split("/").map(aY) : [], o = t.root, s, c = n, l = 0;
|
|
36768
|
+
for (let e = 0; e < i.length && o; e++) {
|
|
36769
|
+
let t = i[e];
|
|
36770
|
+
if (t === "properties") {
|
|
36771
|
+
let t = i[++e];
|
|
36772
|
+
if (a[l] !== t) return !1;
|
|
36773
|
+
o = s ? s.properties.get(t) : o.properties?.get(t), s = void 0, c = k1(c) ? c[t] : void 0, l++;
|
|
36774
|
+
} else if (t === "items" && !s && !/^\d+$/.test(i[e + 1] ?? "")) {
|
|
36775
|
+
let e = a[l];
|
|
36776
|
+
if (e === void 0 || !/^\d+$/.test(e)) return !1;
|
|
36777
|
+
o = o.items, c = Array.isArray(c) ? c[Number(e)] : void 0, l++;
|
|
36778
|
+
} else if ((t === "oneOf" || t === "anyOf") && !s) {
|
|
36779
|
+
let n = o.schema[t]?.[Number(i[++e])], u = o.variants ?? [], d = u.findIndex((e) => e.raw === n);
|
|
36780
|
+
if (d < 0) return !1;
|
|
36781
|
+
let f = k1(c) ? c : {}, p = a.slice(0, l).join(".");
|
|
36782
|
+
if (nX(u.map((e) => e.raw), p, r, (e) => f[e]) !== d) return !0;
|
|
36783
|
+
s = u[d];
|
|
36784
|
+
} else return !1;
|
|
36785
|
+
}
|
|
36786
|
+
return !1;
|
|
36787
|
+
}
|
|
36788
|
+
function O1(e, t) {
|
|
36789
|
+
if (e.$ref !== void 0 || e.properties && Object.prototype.hasOwnProperty.call(e.properties, t)) return !0;
|
|
36790
|
+
for (let n of Object.keys(e.patternProperties ?? {})) try {
|
|
36791
|
+
if (new RegExp(n).test(t)) return !0;
|
|
36792
|
+
} catch {
|
|
36793
|
+
return !0;
|
|
36794
|
+
}
|
|
36795
|
+
let n = [
|
|
36796
|
+
...e.oneOf ?? [],
|
|
36797
|
+
...e.anyOf ?? [],
|
|
36798
|
+
...e.allOf ?? [],
|
|
36799
|
+
...[
|
|
36800
|
+
e.if,
|
|
36801
|
+
e.then,
|
|
36802
|
+
e.else
|
|
36803
|
+
].filter((e) => typeof e == "object" && !!e)
|
|
36804
|
+
];
|
|
36805
|
+
for (let t of Object.values(e.dependencies ?? {})) !Array.isArray(t) && typeof t == "object" && n.push(t);
|
|
36806
|
+
return n.some((e) => O1(e, t));
|
|
36807
|
+
}
|
|
36808
|
+
function k1(e) {
|
|
36809
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
36810
|
+
}
|
|
36811
|
+
var A1 = new Set([
|
|
36812
|
+
"properties",
|
|
36813
|
+
"patternProperties",
|
|
36814
|
+
"dependencies",
|
|
36815
|
+
"definitions",
|
|
36816
|
+
"$defs"
|
|
36817
|
+
]), j1 = new Set([
|
|
36818
|
+
"oneOf",
|
|
36819
|
+
"anyOf",
|
|
36820
|
+
"allOf"
|
|
36821
|
+
]), M1 = new Set([
|
|
36822
|
+
"properties",
|
|
36823
|
+
"patternProperties",
|
|
36824
|
+
"additionalProperties",
|
|
36825
|
+
"items",
|
|
36826
|
+
"additionalItems"
|
|
36827
|
+
]), N1 = new Set([
|
|
36828
|
+
"oneOf",
|
|
36829
|
+
"anyOf",
|
|
36830
|
+
"dependencies"
|
|
36831
|
+
]);
|
|
36832
|
+
function P1(e) {
|
|
36833
|
+
let t = e.replace(/^#\/?/, "").split("/").map(aY);
|
|
36834
|
+
t.pop();
|
|
36835
|
+
let n = [];
|
|
36836
|
+
for (let e = 0; e < t.length; e++) {
|
|
36837
|
+
let r = t[e];
|
|
36838
|
+
M1.has(r) ? n = [] : n.push(r), (A1.has(r) || j1.has(r) || r === "items" && /^\d+$/.test(t[e + 1] ?? "")) && e++;
|
|
36839
|
+
}
|
|
36840
|
+
return n.some((e) => N1.has(e));
|
|
36841
|
+
}
|
|
36842
|
+
function F1(e, t) {
|
|
35821
36843
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
35822
36844
|
}
|
|
35823
|
-
function
|
|
36845
|
+
function I1(e) {
|
|
35824
36846
|
return e.filter((t) => {
|
|
35825
36847
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
35826
|
-
let n =
|
|
36848
|
+
let n = R1(t), r = n === "" ? "" : `${n}.`;
|
|
35827
36849
|
return !e.some((e) => {
|
|
35828
36850
|
if (e === t) return !1;
|
|
35829
|
-
let i =
|
|
36851
|
+
let i = R1(e);
|
|
35830
36852
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
35831
36853
|
});
|
|
35832
36854
|
});
|
|
35833
36855
|
}
|
|
35834
|
-
function
|
|
36856
|
+
function L1(e, t) {
|
|
35835
36857
|
let n = /* @__PURE__ */ new Map();
|
|
35836
36858
|
for (let t of e) {
|
|
35837
|
-
let e =
|
|
36859
|
+
let e = R1(t), r = n.get(e) ?? [];
|
|
35838
36860
|
r.push(t), n.set(e, r);
|
|
35839
36861
|
}
|
|
35840
36862
|
let r = {};
|
|
35841
36863
|
for (let [e, i] of n) {
|
|
35842
36864
|
let n = {
|
|
35843
36865
|
type: i[0].keyword,
|
|
35844
|
-
message:
|
|
36866
|
+
message: m1(i[0], e)
|
|
35845
36867
|
};
|
|
35846
36868
|
if (t === "all" && i.length > 0) {
|
|
35847
36869
|
let t = {};
|
|
35848
|
-
for (let n of i) t[n.keyword] =
|
|
36870
|
+
for (let n of i) t[n.keyword] = m1(n, e);
|
|
35849
36871
|
n.types = t;
|
|
35850
36872
|
}
|
|
35851
|
-
|
|
36873
|
+
z1(r, e === "" ? "root" : e, n);
|
|
35852
36874
|
}
|
|
35853
36875
|
return r;
|
|
35854
36876
|
}
|
|
35855
|
-
function
|
|
35856
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
36877
|
+
function R1(e) {
|
|
36878
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(aY) : [];
|
|
35857
36879
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
35858
36880
|
}
|
|
35859
|
-
function
|
|
36881
|
+
function z1(e, t, n) {
|
|
35860
36882
|
let r = t.split("."), i = e;
|
|
35861
36883
|
for (let e = 0; e < r.length - 1; e++) {
|
|
35862
36884
|
let t = r[e];
|
|
@@ -35864,97 +36886,161 @@ function yQ(e, t, n) {
|
|
|
35864
36886
|
}
|
|
35865
36887
|
i[r[r.length - 1]] = n;
|
|
35866
36888
|
}
|
|
35867
|
-
function
|
|
36889
|
+
function B1(e, t, n, r, i) {
|
|
35868
36890
|
if (!e) return [];
|
|
35869
|
-
let
|
|
35870
|
-
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let
|
|
35871
|
-
let e = t.map((e) => typeof e == "object" && e ? e[
|
|
36891
|
+
let a = [];
|
|
36892
|
+
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let n of e.schema.gioConfig.uniqueItemProperties) {
|
|
36893
|
+
let e = t.map((e) => typeof e == "object" && e ? e[n] : void 0).filter((e) => e != null);
|
|
35872
36894
|
if (new Set(e).size !== e.length) {
|
|
35873
|
-
|
|
36895
|
+
a.push({
|
|
35874
36896
|
keyword: "uniqueItemProperties",
|
|
35875
|
-
instancePath:
|
|
36897
|
+
instancePath: r,
|
|
35876
36898
|
schemaPath: "",
|
|
35877
|
-
params: { propertyName:
|
|
36899
|
+
params: { propertyName: n },
|
|
35878
36900
|
message: "must be unique"
|
|
35879
36901
|
});
|
|
35880
36902
|
break;
|
|
35881
36903
|
}
|
|
35882
36904
|
}
|
|
35883
|
-
|
|
35884
|
-
|
|
35885
|
-
|
|
35886
|
-
let a = t, o = tX(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
35887
|
-
if (s) for (let [e, t] of s.properties) i.push(...bQ(t, a[e], `${n}/${rY(e)}`, r));
|
|
36905
|
+
if (typeof t == "object" && t && !Array.isArray(t)) {
|
|
36906
|
+
let o = t;
|
|
36907
|
+
for (let t of AX(e, o, n, i).visible) a.push(...B1(t.node, o[t.key], t.path, `${r}/${iY(t.key)}`, i));
|
|
35888
36908
|
}
|
|
35889
|
-
return e.items && Array.isArray(t) && t.forEach((t,
|
|
35890
|
-
|
|
35891
|
-
|
|
36909
|
+
return e.items && Array.isArray(t) && t.forEach((t, o) => {
|
|
36910
|
+
let s = n ? `${n}.${o}` : String(o);
|
|
36911
|
+
a.push(...B1(e.items, t, s, `${r}/${o}`, i));
|
|
36912
|
+
}), a;
|
|
35892
36913
|
}
|
|
35893
36914
|
//#endregion
|
|
35894
|
-
//#region src/composed/JsonSchemaForm/
|
|
35895
|
-
|
|
35896
|
-
|
|
35897
|
-
|
|
35898
|
-
|
|
35899
|
-
|
|
35900
|
-
|
|
35901
|
-
|
|
35902
|
-
|
|
36915
|
+
//#region src/composed/JsonSchemaForm/schema/displayedErrorPaths.ts
|
|
36916
|
+
function V1(e, t, n, r) {
|
|
36917
|
+
let i = /* @__PURE__ */ new Set(), a = LX(e);
|
|
36918
|
+
return a && H1(a, t, "", {
|
|
36919
|
+
root: t,
|
|
36920
|
+
context: n,
|
|
36921
|
+
variantPicks: r
|
|
36922
|
+
}, i), i;
|
|
36923
|
+
}
|
|
36924
|
+
function H1(e, t, n, r, i) {
|
|
36925
|
+
if (e.schema.deprecated !== !0) switch (SX(e.schema)) {
|
|
36926
|
+
case "object": {
|
|
36927
|
+
let a = U1(t) ? t : {}, o = AX(e, a, n, r), s = o.activeVariantIndex === void 0 ? void 0 : e.variants?.[o.activeVariantIndex];
|
|
36928
|
+
for (let e of o.visible) e.node.schema.const !== void 0 && s?.properties.get(e.key) === e.node || H1(e.node, a[e.key], e.path, r, i);
|
|
36929
|
+
return;
|
|
35903
36930
|
}
|
|
35904
|
-
|
|
36931
|
+
case "array":
|
|
36932
|
+
if (n && i.add(n), e.items && Array.isArray(t)) {
|
|
36933
|
+
let { items: a } = e;
|
|
36934
|
+
t.forEach((e, t) => H1(a, e, n ? `${n}.${t}` : String(t), r, i));
|
|
36935
|
+
}
|
|
36936
|
+
return;
|
|
36937
|
+
case "null":
|
|
36938
|
+
case void 0: return;
|
|
36939
|
+
default: n && i.add(n);
|
|
35905
36940
|
}
|
|
35906
|
-
return t;
|
|
35907
36941
|
}
|
|
35908
|
-
function
|
|
35909
|
-
|
|
35910
|
-
if (!r) return t;
|
|
35911
|
-
let i = structuredClone(t);
|
|
35912
|
-
for (; wQ(r, i, "", i, n););
|
|
35913
|
-
return i;
|
|
36942
|
+
function U1(e) {
|
|
36943
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
35914
36944
|
}
|
|
35915
|
-
|
|
35916
|
-
|
|
35917
|
-
|
|
35918
|
-
|
|
35919
|
-
|
|
35920
|
-
|
|
35921
|
-
|
|
35922
|
-
|
|
36945
|
+
//#endregion
|
|
36946
|
+
//#region src/composed/JsonSchemaForm/form-bindings/hiddenFormErrors.ts
|
|
36947
|
+
var W1 = new Set([
|
|
36948
|
+
"type",
|
|
36949
|
+
"message",
|
|
36950
|
+
"types",
|
|
36951
|
+
"ref"
|
|
36952
|
+
]);
|
|
36953
|
+
function G1(e, t, n, r, i) {
|
|
36954
|
+
let a = LX(e), o = {
|
|
36955
|
+
root: t,
|
|
36956
|
+
context: r,
|
|
36957
|
+
variantPicks: i
|
|
36958
|
+
}, s = K1(n, (e) => !!a && Y1(a, t, e ? `${e}.root` : "root", o) !== void 0);
|
|
36959
|
+
if (s.length === 0) return [];
|
|
36960
|
+
let c = V1(e, t, r, i);
|
|
36961
|
+
return s.filter((e) => !c.has(e.path)).map((e) => ({
|
|
36962
|
+
...e,
|
|
36963
|
+
labels: a ? J1(a, t, e.path, o) : Q1(e.path)
|
|
36964
|
+
}));
|
|
36965
|
+
}
|
|
36966
|
+
function K1(e, t = () => !1, n = "") {
|
|
36967
|
+
if (typeof e != "object" || !e) return [];
|
|
36968
|
+
let r = e, i = [], a = typeof r.type == "string";
|
|
36969
|
+
a && i.push({
|
|
36970
|
+
path: n,
|
|
36971
|
+
messages: q1(r)
|
|
36972
|
+
});
|
|
36973
|
+
for (let [e, o] of Object.entries(r)) {
|
|
36974
|
+
if (a && W1.has(e)) continue;
|
|
36975
|
+
let r = e === "root" && !t(n) ? n : n ? `${n}.${e}` : e;
|
|
36976
|
+
i.push(...K1(o, t, r));
|
|
35923
36977
|
}
|
|
35924
|
-
|
|
35925
|
-
|
|
35926
|
-
|
|
35927
|
-
|
|
35928
|
-
|
|
35929
|
-
let
|
|
35930
|
-
|
|
36978
|
+
return i;
|
|
36979
|
+
}
|
|
36980
|
+
function q1(e) {
|
|
36981
|
+
let t = e.types;
|
|
36982
|
+
if (typeof t == "object" && t) {
|
|
36983
|
+
let e = Object.values(t).flat().filter((e) => typeof e == "string");
|
|
36984
|
+
if (e.length > 0) return [...new Set(e)];
|
|
35931
36985
|
}
|
|
35932
|
-
return
|
|
36986
|
+
return [typeof e.message == "string" && e.message ? e.message : "Invalid value"];
|
|
35933
36987
|
}
|
|
35934
|
-
function
|
|
35935
|
-
|
|
35936
|
-
|
|
35937
|
-
|
|
35938
|
-
|
|
36988
|
+
function J1(e, t, n, r) {
|
|
36989
|
+
return X1(e, t, n, r).map(({ segment: e, parent: t, node: n }) => t?.items && n === t.items ? `${kY(n.schema)} ${Number(e) + 1}` : n ? T(n.schema, e) : e);
|
|
36990
|
+
}
|
|
36991
|
+
function Y1(e, t, n, r) {
|
|
36992
|
+
return X1(e, t, n, r).at(-1)?.node;
|
|
36993
|
+
}
|
|
36994
|
+
function X1(e, t, n, r) {
|
|
36995
|
+
let i = [], a = e, o = t, s = "";
|
|
36996
|
+
for (let e of Q1(n)) {
|
|
36997
|
+
let t = a;
|
|
36998
|
+
a = t?.items && /^\d+$/.test(e) ? t.items : t ? Z1(t, o, s, e, r) : void 0, i.push({
|
|
36999
|
+
segment: e,
|
|
37000
|
+
parent: t,
|
|
37001
|
+
node: a
|
|
37002
|
+
}), o = typeof o == "object" && o ? o[e] : void 0, s = s ? `${s}.${e}` : e;
|
|
35939
37003
|
}
|
|
35940
|
-
|
|
35941
|
-
for (let e of o) EQ(e.showIf, n, r, i) ? a.push(...e.properties) : s.push(...e.properties.keys());
|
|
35942
|
-
let c = new Set(a.map(([e]) => e));
|
|
35943
|
-
return {
|
|
35944
|
-
rendered: a,
|
|
35945
|
-
unregistered: s.filter((e) => !c.has(e))
|
|
35946
|
-
};
|
|
37004
|
+
return i;
|
|
35947
37005
|
}
|
|
35948
|
-
function
|
|
35949
|
-
let
|
|
35950
|
-
return
|
|
37006
|
+
function Z1(e, t, n, r, i) {
|
|
37007
|
+
let a = AX(e, typeof t == "object" && t && !Array.isArray(t) ? t : {}, n, i).visible.find((e) => e.key === r);
|
|
37008
|
+
return a ? a.node : e.properties?.get(r) ?? e.variants?.map((e) => e.properties.get(r)).find((e) => e !== void 0) ?? e.dependencyBranches?.map((e) => e.properties.get(r)).find((e) => e !== void 0);
|
|
35951
37009
|
}
|
|
35952
|
-
function
|
|
35953
|
-
return e ?
|
|
37010
|
+
function Q1(e) {
|
|
37011
|
+
return e ? e.split(".") : [];
|
|
37012
|
+
}
|
|
37013
|
+
//#endregion
|
|
37014
|
+
//#region src/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.ts
|
|
37015
|
+
function $1(e, t, n, r) {
|
|
37016
|
+
let i = LX(e);
|
|
37017
|
+
if (!i) return t;
|
|
37018
|
+
let a = structuredClone(t), o = {
|
|
37019
|
+
root: a,
|
|
37020
|
+
context: n,
|
|
37021
|
+
variantPicks: r
|
|
37022
|
+
};
|
|
37023
|
+
for (; e0(i, a, "", o););
|
|
37024
|
+
return a;
|
|
37025
|
+
}
|
|
37026
|
+
function e0(e, t, n, r) {
|
|
37027
|
+
if (Array.isArray(t)) {
|
|
37028
|
+
let { items: i } = e;
|
|
37029
|
+
if (!i) return !1;
|
|
37030
|
+
let a = !1;
|
|
37031
|
+
return t.forEach((e, t) => {
|
|
37032
|
+
e0(i, e, n ? `${n}.${t}` : String(t), r) && (a = !0);
|
|
37033
|
+
}), a;
|
|
37034
|
+
}
|
|
37035
|
+
if (typeof t != "object" || !t) return !1;
|
|
37036
|
+
let i = t, { visible: a, hiddenKeys: o } = AX(e, i, n, r), s = !1;
|
|
37037
|
+
for (let t of o) !(t in i) || PX(e, t) || (delete i[t], s = !0);
|
|
37038
|
+
for (let e of a) e.key in i && e0(e.node, i[e.key], e.path, r) && (s = !0);
|
|
37039
|
+
return s;
|
|
35954
37040
|
}
|
|
35955
37041
|
//#endregion
|
|
35956
37042
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
35957
|
-
var
|
|
37043
|
+
var t0 = {
|
|
35958
37044
|
navigation: null,
|
|
35959
37045
|
contextSidebar: null,
|
|
35960
37046
|
breadcrumbs: [],
|
|
@@ -35965,9 +37051,9 @@ var OQ = {
|
|
|
35965
37051
|
banner: null,
|
|
35966
37052
|
bannerSticky: !1,
|
|
35967
37053
|
footer: null
|
|
35968
|
-
},
|
|
35969
|
-
function
|
|
35970
|
-
let [t, n] = Xe(
|
|
37054
|
+
}, n0 = Ie(null);
|
|
37055
|
+
function r0({ children: e }) {
|
|
37056
|
+
let [t, n] = Xe(t0), r = Be((e, t) => {
|
|
35971
37057
|
n((n) => ({
|
|
35972
37058
|
...n,
|
|
35973
37059
|
[e]: t
|
|
@@ -35979,7 +37065,7 @@ function AQ({ children: e }) {
|
|
|
35979
37065
|
}));
|
|
35980
37066
|
}, []), a = Be((e) => {
|
|
35981
37067
|
n((t) => {
|
|
35982
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
37068
|
+
let n = Object.fromEntries(e.map((e) => [e, t0[e]]));
|
|
35983
37069
|
return {
|
|
35984
37070
|
...t,
|
|
35985
37071
|
...n
|
|
@@ -35996,20 +37082,20 @@ function AQ({ children: e }) {
|
|
|
35996
37082
|
i,
|
|
35997
37083
|
a
|
|
35998
37084
|
]);
|
|
35999
|
-
return /* @__PURE__ */ U(
|
|
37085
|
+
return /* @__PURE__ */ U(n0.Provider, {
|
|
36000
37086
|
value: o,
|
|
36001
37087
|
children: e
|
|
36002
37088
|
});
|
|
36003
37089
|
}
|
|
36004
|
-
function
|
|
36005
|
-
let e = Ve(
|
|
37090
|
+
function i0() {
|
|
37091
|
+
let e = Ve(n0);
|
|
36006
37092
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
36007
37093
|
return e;
|
|
36008
37094
|
}
|
|
36009
37095
|
//#endregion
|
|
36010
37096
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
36011
|
-
function
|
|
36012
|
-
let { setSlots: n, resetSlots: r } =
|
|
37097
|
+
function a0(e, t = []) {
|
|
37098
|
+
let { setSlots: n, resetSlots: r } = i0();
|
|
36013
37099
|
Ke(() => {
|
|
36014
37100
|
n(e);
|
|
36015
37101
|
let t = Object.keys(e);
|
|
@@ -36024,7 +37110,7 @@ function MQ(e, t = []) {
|
|
|
36024
37110
|
}
|
|
36025
37111
|
//#endregion
|
|
36026
37112
|
//#region src/composed/PageFocused/PageFocused.tsx
|
|
36027
|
-
function
|
|
37113
|
+
function o0({ children: e, className: n, "data-testid": r }) {
|
|
36028
37114
|
return /* @__PURE__ */ U("div", {
|
|
36029
37115
|
"data-slot": "page-focused",
|
|
36030
37116
|
"data-testid": r,
|
|
@@ -36032,10 +37118,10 @@ function NQ({ children: e, className: n, "data-testid": r }) {
|
|
|
36032
37118
|
children: e
|
|
36033
37119
|
});
|
|
36034
37120
|
}
|
|
36035
|
-
|
|
37121
|
+
o0.displayName = "PageFocused";
|
|
36036
37122
|
//#endregion
|
|
36037
37123
|
//#region src/composed/PageHeader/PageHeader.tsx
|
|
36038
|
-
function
|
|
37124
|
+
function s0({ title: e, description: n, actions: r, children: i, className: a, "data-testid": o }) {
|
|
36039
37125
|
return /* @__PURE__ */ W("header", {
|
|
36040
37126
|
"data-slot": "page-header",
|
|
36041
37127
|
"data-testid": o,
|
|
@@ -36067,10 +37153,10 @@ function PQ({ title: e, description: n, actions: r, children: i, className: a, "
|
|
|
36067
37153
|
}) : null]
|
|
36068
37154
|
});
|
|
36069
37155
|
}
|
|
36070
|
-
|
|
37156
|
+
s0.displayName = "PageHeader";
|
|
36071
37157
|
//#endregion
|
|
36072
37158
|
//#region src/composed/SearchField/SearchField.tsx
|
|
36073
|
-
function
|
|
37159
|
+
function c0({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, className: i, disabled: a, onKeyDown: o, "data-testid": s, ...c }) {
|
|
36074
37160
|
let [l, u] = Xe(t), d = Ye(null), f = Ye(t), p = Ye(void 0), m = Ye(n);
|
|
36075
37161
|
Ge(e, () => d.current, []), Ue(() => {
|
|
36076
37162
|
m.current = n;
|
|
@@ -36130,10 +37216,10 @@ function FQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, clas
|
|
|
36130
37216
|
]
|
|
36131
37217
|
});
|
|
36132
37218
|
}
|
|
36133
|
-
|
|
37219
|
+
c0.displayName = "SearchField";
|
|
36134
37220
|
//#endregion
|
|
36135
37221
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
36136
|
-
var
|
|
37222
|
+
var l0 = [
|
|
36137
37223
|
{
|
|
36138
37224
|
value: "light",
|
|
36139
37225
|
label: "Light"
|
|
@@ -36147,7 +37233,7 @@ var IQ = [
|
|
|
36147
37233
|
label: "System"
|
|
36148
37234
|
}
|
|
36149
37235
|
];
|
|
36150
|
-
function
|
|
37236
|
+
function u0({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o }) {
|
|
36151
37237
|
let s = i ?? e.slice(0, 2).toUpperCase(), { mode: c, setMode: l } = Me();
|
|
36152
37238
|
return /* @__PURE__ */ W(bL, { children: [/* @__PURE__ */ U(SL, {
|
|
36153
37239
|
asChild: !0,
|
|
@@ -36176,7 +37262,7 @@ function LQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
36176
37262
|
/* @__PURE__ */ U(DL, {
|
|
36177
37263
|
value: c,
|
|
36178
37264
|
onValueChange: (e) => l(e),
|
|
36179
|
-
children:
|
|
37265
|
+
children: l0.map((e) => /* @__PURE__ */ U(OL, {
|
|
36180
37266
|
value: e.value,
|
|
36181
37267
|
children: e.label
|
|
36182
37268
|
}, e.value))
|
|
@@ -36189,6 +37275,6 @@ function LQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
36189
37275
|
]
|
|
36190
37276
|
})] });
|
|
36191
37277
|
}
|
|
36192
|
-
|
|
37278
|
+
u0.displayName = "TopNavUser";
|
|
36193
37279
|
//#endregion
|
|
36194
|
-
export { zv as Accordion, Hv as AccordionContent, Bv as AccordionItem, Vv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Uv as Avatar, Kv as AvatarBadge, Gv as AvatarFallback, qv as AvatarGroup, Jv as AvatarGroupCount, Wv as AvatarImage, Xv as Badge, iq as BadgeCell, Zv as Breadcrumb, ry as BreadcrumbEllipsis, $v as BreadcrumbItem, ey as BreadcrumbLink, Qv as BreadcrumbList, ty as BreadcrumbPage, ny as BreadcrumbSeparator, ay as Button, sy as ButtonGroup, ly as ButtonGroupSeparator, cy as ButtonGroupText, TC as Calendar, MC as CalendarDayButton, NC as Card, LC as CardAction, RC as CardContent, IC as CardDescription, zC as CardFooter, PC as CardHeader, FC as CardTitle, BC as Checkbox, VC as Collapsible, UC as CollapsibleContent, HC as CollapsibleTrigger, sj as Combobox, xj as ComboboxChip, bj as ComboboxChips, Sj as ComboboxChipsInput, _j as ComboboxCollection, fj as ComboboxContent, vj as ComboboxEmpty, hj as ComboboxGroup, dj as ComboboxInput, mj as ComboboxItem, gj as ComboboxLabel, pj as ComboboxList, yj as ComboboxSeparator, lj as ComboboxTrigger, cj as ComboboxValue, FF as Command, IF as CommandDialog, zF as CommandEmpty, BF as CommandGroup, LF as CommandInput, HF as CommandItem, RF as CommandList, VF as CommandSeparator, UF as CommandShortcut, rG as ContentHeader, WF as ContextMenu, eI as ContextMenuCheckboxItem, XF as ContextMenuContent, KF as ContextMenuGroup, ZF as ContextMenuItem, nI as ContextMenuLabel, qF as ContextMenuPortal, YF as ContextMenuRadioGroup, tI as ContextMenuRadioItem, rI as ContextMenuSeparator, iI as ContextMenuShortcut, JF as ContextMenuSub, $F as ContextMenuSubContent, QF as ContextMenuSubTrigger, GF as ContextMenuTrigger, ZW as ContextSidebar, QW as ContextToggleButton, oq as CopyableCell, iG as CopyableText,
|
|
37280
|
+
export { zv as Accordion, Hv as AccordionContent, Bv as AccordionItem, Vv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Uv as Avatar, Kv as AvatarBadge, Gv as AvatarFallback, qv as AvatarGroup, Jv as AvatarGroupCount, Wv as AvatarImage, Xv as Badge, iq as BadgeCell, Zv as Breadcrumb, ry as BreadcrumbEllipsis, $v as BreadcrumbItem, ey as BreadcrumbLink, Qv as BreadcrumbList, ty as BreadcrumbPage, ny as BreadcrumbSeparator, ay as Button, sy as ButtonGroup, ly as ButtonGroupSeparator, cy as ButtonGroupText, TC as Calendar, MC as CalendarDayButton, NC as Card, LC as CardAction, RC as CardContent, IC as CardDescription, zC as CardFooter, PC as CardHeader, FC as CardTitle, BC as Checkbox, VC as Collapsible, UC as CollapsibleContent, HC as CollapsibleTrigger, sj as Combobox, xj as ComboboxChip, bj as ComboboxChips, Sj as ComboboxChipsInput, _j as ComboboxCollection, fj as ComboboxContent, vj as ComboboxEmpty, hj as ComboboxGroup, dj as ComboboxInput, mj as ComboboxItem, gj as ComboboxLabel, pj as ComboboxList, yj as ComboboxSeparator, lj as ComboboxTrigger, cj as ComboboxValue, FF as Command, IF as CommandDialog, zF as CommandEmpty, BF as CommandGroup, LF as CommandInput, HF as CommandItem, RF as CommandList, VF as CommandSeparator, UF as CommandShortcut, rG as ContentHeader, WF as ContextMenu, eI as ContextMenuCheckboxItem, XF as ContextMenuContent, KF as ContextMenuGroup, ZF as ContextMenuItem, nI as ContextMenuLabel, qF as ContextMenuPortal, YF as ContextMenuRadioGroup, tI as ContextMenuRadioItem, rI as ContextMenuSeparator, iI as ContextMenuShortcut, JF as ContextMenuSub, $F as ContextMenuSubContent, QF as ContextMenuSubTrigger, GF as ContextMenuTrigger, ZW as ContextSidebar, QW as ContextToggleButton, oq as CopyableCell, iG as CopyableText, t0 as DEFAULT_SLOTS, JK as DataTable, YK as DataTableColumnHeader, cq as DataTableEmptyState, jK as DataTablePagination, HK as DataTableViewOptions, rq as DateCell, _J as DatePicker, vJ as DateRangePicker, xJ as DateTimePicker, wJ as DateTimeRangePicker, TF as Dialog, OF as DialogClose, AF as DialogContent, PF as DialogDescription, MF as DialogFooter, jF as DialogHeader, kF as DialogOverlay, DF as DialogPortal, NF as DialogTitle, EF as DialogTrigger, uL as Drawer, pL as DrawerClose, hL as DrawerContent, yL as DrawerDescription, _L as DrawerFooter, gL as DrawerHeader, mL as DrawerOverlay, fL as DrawerPortal, vL as DrawerTitle, dL as DrawerTrigger, bL as DropdownMenu, EL as DropdownMenuCheckboxItem, CL as DropdownMenuContent, wL as DropdownMenuGroup, TL as DropdownMenuItem, kL as DropdownMenuLabel, xL as DropdownMenuPortal, DL as DropdownMenuRadioGroup, OL as DropdownMenuRadioItem, AL as DropdownMenuSeparator, jL as DropdownMenuShortcut, ML as DropdownMenuSub, PL as DropdownMenuSubContent, NL as DropdownMenuSubTrigger, SL as DropdownMenuTrigger, EJ as ElCheatSheetTrigger, FL as Empty, VL as EmptyContent, BL as EmptyDescription, IL as EmptyHeader, RL as EmptyMedia, zL as EmptyTitle, DJ as FacetedFilter, k as Field, w as FieldContent, C as FieldDescription, _ as FieldError, L as FieldGroup, R as FieldLabel, y as FieldLegend, te as FieldSeparator, h as FieldSet, i as FieldTitle, MJ as FileUpload, Fz as FileUploadInput, jJ as FileUploadItem, Iz as HoverCard, Rz as HoverCardContent, Vz as HoverCardDescription, zz as HoverCardHeader, Bz as HoverCardTitle, Lz as HoverCardTrigger, QA as Input, $A as InputGroup, tj as InputGroupAddon, rj as InputGroupButton, aj as InputGroupInput, ij as InputGroupText, oj as InputGroupTextarea, Gz as Item, Zz as ItemActions, Jz as ItemContent, Xz as ItemDescription, $z as ItemFooter, Hz as ItemGroup, Qz as ItemHeader, qz as ItemMedia, Uz as ItemSeparator, Yz as ItemTitle, OX as JsonSchemaForm, eB as Kbd, tB as KbdGroup, ee as Label, r0 as LayoutSlotsProvider, iB as Logo, aq as MonoCell, o0 as PageFocused, s0 as PageHeader, aB as Pagination, oB as PaginationContent, dB as PaginationEllipsis, sB as PaginationItem, cB as PaginationLink, uB as PaginationNext, lB as PaginationPrevious, hX as PasswordInput, fB as Popover, hB as PopoverAnchor, mB as PopoverContent, vB as PopoverDescription, gB as PopoverHeader, _B as PopoverTitle, pB as PopoverTrigger, yt as PortalContainerProvider, yB as Progress, xB as Prose, SB as RadioGroup, CB as RadioGroupItem, xH as ResizableHandle, bH as ResizablePanel, yH as ResizablePanelGroup, SH as ScrollArea, CH as ScrollBar, c0 as SearchField, wH as Select, OH as SelectContent, TH as SelectGroup, AH as SelectItem, kH as SelectLabel, NH as SelectScrollDownButton, MH as SelectScrollUpButton, jH as SelectSeparator, DH as SelectTrigger, EH as SelectValue, PW as SelectorDropdown, FW as SelectorTriggerButton, g as Separator, PH as Sheet, IH as SheetClose, zH as SheetContent, UH as SheetDescription, VH as SheetFooter, BH as SheetHeader, HH as SheetTitle, FH as SheetTrigger, cU as Sidebar, gU as SidebarContent, mU as SidebarFooter, _U as SidebarGroup, yU as SidebarGroupAction, bU as SidebarGroupContent, vU as SidebarGroupLabel, pU as SidebarHeader, fU as SidebarInput, dU as SidebarInset, xU as SidebarMenu, TU as SidebarMenuAction, EU as SidebarMenuBadge, wU as SidebarMenuButton, SU as SidebarMenuItem, DU as SidebarMenuSkeleton, OU as SidebarMenuSub, AU as SidebarMenuSubButton, kU as SidebarMenuSubItem, WW as SidebarModeControl, HW as SidebarModeProvider, XW as SidebarNavigation, sU as SidebarProvider, uU as SidebarRail, hU as SidebarSeparator, lU as SidebarTrigger, eG as SidebarUpgradeFooter, n as Skeleton, uW as Spinner, dW as Switch, fW as Table, mW as TableBody, yW as TableCaption, vW as TableCell, hW as TableFooter, _W as TableHead, pW as TableHeader, gW as TableRow, bW as Tabs, wW as TabsContent, SW as TabsList, CW as TabsTrigger, e as Textarea, Ne as ThemeProvider, lW as Toaster, EW as Toggle, OW as ToggleGroup, kW as ToggleGroupItem, GH as Tooltip, qH as TooltipContent, WH as TooltipProvider, KH as TooltipTrigger, u0 as TopNavUser, sq as TruncatedCell, r as alertVariants, VX as applyVisibleDefaults, Yv as badgeVariants, aG as buildLinearBreadcrumbs, oy as buttonGroupVariants, iy as buttonVariants, t as cn, aZ as composeResolvers, bY as extractDefaults, G1 as hiddenFormErrors, T1 as jsonSchemaResolver, rB as logoVariants, $1 as pruneHiddenValues, xW as tabsListVariants, qU as toast, TW as toggleVariants, Cj as useComboboxAnchor, xt as useDebouncedValue, a0 as useLayoutConfig, i0 as useLayoutSlots, bt as usePortalContainer, oU as useSidebar, zW as useSidebarMode, Me as useTheme };
|