@gravitee/graphene-core 3.28.0-fix-json-schema-form-array-ux.250f003 → 3.28.0-fix-json-schema-form-array-ux.d988077
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/SchemaField.d.ts +2 -2
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/ArrayField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/HeadersArrayField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/itemCount.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/fields/array/itemCount.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/itemTitle.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/fields/array/itemTitle.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts +2 -2
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts +2 -2
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts +2 -2
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts +2 -2
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts.map +1 -1
- package/dist/index.js +444 -417
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -29325,31 +29325,44 @@ function LJ(e) {
|
|
|
29325
29325
|
}
|
|
29326
29326
|
}
|
|
29327
29327
|
//#endregion
|
|
29328
|
+
//#region src/composed/JsonSchemaForm/fields/array/itemCount.ts
|
|
29329
|
+
function RJ(e, t) {
|
|
29330
|
+
return Number.isFinite(t) ? `${e} / ${t}` : String(e);
|
|
29331
|
+
}
|
|
29332
|
+
function zJ(e, t) {
|
|
29333
|
+
return Number.isFinite(t) ? `${e} of ${t} ${BJ(t)}` : `${e} ${BJ(e)}`;
|
|
29334
|
+
}
|
|
29335
|
+
function BJ(e) {
|
|
29336
|
+
return e === 1 ? "item" : "items";
|
|
29337
|
+
}
|
|
29338
|
+
//#endregion
|
|
29328
29339
|
//#region src/composed/JsonSchemaForm/fields/array/itemTitle.ts
|
|
29329
|
-
function
|
|
29340
|
+
function VJ(e) {
|
|
29330
29341
|
return (typeof e?.title == "string" ? e.title.trim() : "") || "Item";
|
|
29331
29342
|
}
|
|
29332
|
-
function
|
|
29333
|
-
|
|
29334
|
-
|
|
29343
|
+
function HJ(e) {
|
|
29344
|
+
return e.split(" ").map((e) => /^[A-Z0-9]{2,}s?$/.test(e) ? e : e.toLowerCase()).join(" ");
|
|
29345
|
+
}
|
|
29346
|
+
function UJ(e) {
|
|
29347
|
+
return HJ(VJ(e));
|
|
29335
29348
|
}
|
|
29336
29349
|
//#endregion
|
|
29337
29350
|
//#region src/composed/JsonSchemaForm/fields/array/summarizeItem.ts
|
|
29338
|
-
function
|
|
29351
|
+
function WJ(e, t) {
|
|
29339
29352
|
let n = t?.properties;
|
|
29340
29353
|
if (!n || typeof e != "object" || !e) return;
|
|
29341
29354
|
let r = e, i = [];
|
|
29342
29355
|
for (let [e, t] of Object.entries(n)) {
|
|
29343
29356
|
let n = r[e];
|
|
29344
29357
|
if (!Array.isArray(n) || n.length === 0) continue;
|
|
29345
|
-
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ?
|
|
29358
|
+
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ? UJ(a) : HJ(M(t, e));
|
|
29346
29359
|
i.push(`${n.length} ${o}`);
|
|
29347
29360
|
}
|
|
29348
29361
|
return i.length > 0 ? i.join(" · ") : void 0;
|
|
29349
29362
|
}
|
|
29350
29363
|
//#endregion
|
|
29351
29364
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
29352
|
-
function
|
|
29365
|
+
function GJ(e, t) {
|
|
29353
29366
|
let n = N(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = F({
|
|
29354
29367
|
control: n.control,
|
|
29355
29368
|
name: r
|
|
@@ -29369,20 +29382,20 @@ function VJ(e, t) {
|
|
|
29369
29382
|
maxItems: u,
|
|
29370
29383
|
atMin: d,
|
|
29371
29384
|
atMax: f,
|
|
29372
|
-
addReason: f ? `Maximum ${u} ${
|
|
29373
|
-
removeReason: d && l > 0 ? `Minimum ${l} ${
|
|
29385
|
+
addReason: f ? `Maximum ${u} ${KJ(u)}` : void 0,
|
|
29386
|
+
removeReason: d && l > 0 ? `Minimum ${l} ${KJ(l)}` : void 0
|
|
29374
29387
|
};
|
|
29375
29388
|
}
|
|
29376
|
-
function
|
|
29389
|
+
function KJ(e) {
|
|
29377
29390
|
return e === 1 ? "item" : "items";
|
|
29378
29391
|
}
|
|
29379
29392
|
//#endregion
|
|
29380
29393
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
29381
|
-
function
|
|
29382
|
-
let { schema: i } = e, { ctx: a, path: o, fields: s, append: c, remove: l, fieldState: u, isDisabled: d, maxItems: f, addReason: p, removeReason: m } =
|
|
29394
|
+
function qJ({ node: e, name: n, depth: r }) {
|
|
29395
|
+
let { schema: i } = e, { ctx: a, path: o, fields: s, append: c, remove: l, fieldState: u, isDisabled: d, maxItems: f, addReason: p, removeReason: m } = GJ(i, n), h = i.items, g = e.items, v = VJ(h), y = XJ(h), b = M(i, n), x = i.gioConfig?.uiBorder === "full", w = FJ(r), T = qe(null), E = r <= 1, [D, O] = Je();
|
|
29383
29396
|
function k() {
|
|
29384
|
-
c(
|
|
29385
|
-
T.current?.lastElementChild?.querySelector("input, select, textarea, [role=combobox]")?.focus();
|
|
29397
|
+
c(ZJ(h), { shouldFocus: !1 }), O(s.length), requestAnimationFrame(() => {
|
|
29398
|
+
T.current?.lastElementChild?.querySelector("input, select, textarea, [role=combobox], [role=switch], [role=checkbox]")?.focus(), O(void 0);
|
|
29386
29399
|
});
|
|
29387
29400
|
}
|
|
29388
29401
|
return /* @__PURE__ */ G(ee, {
|
|
@@ -29397,29 +29410,33 @@ function UJ({ node: e, name: n, depth: r }) {
|
|
|
29397
29410
|
variant: "outline",
|
|
29398
29411
|
"aria-hidden": "true",
|
|
29399
29412
|
className: "order-last ml-1.5 align-middle",
|
|
29400
|
-
children:
|
|
29413
|
+
children: RJ(s.length, f)
|
|
29401
29414
|
})]
|
|
29402
29415
|
}),
|
|
29416
|
+
/* @__PURE__ */ W("p", {
|
|
29417
|
+
className: "sr-only",
|
|
29418
|
+
children: zJ(s.length, f)
|
|
29419
|
+
}),
|
|
29403
29420
|
i.description && /* @__PURE__ */ W(C, { children: i.description }),
|
|
29404
29421
|
i.gioConfig?.banner && /* @__PURE__ */ W(P, { banner: i.gioConfig.banner }),
|
|
29405
29422
|
s.length === 0 ? /* @__PURE__ */ G("p", {
|
|
29406
29423
|
className: "text-sm text-muted-foreground",
|
|
29407
29424
|
children: [
|
|
29408
29425
|
"No ",
|
|
29409
|
-
|
|
29426
|
+
UJ(h),
|
|
29410
29427
|
" yet."
|
|
29411
29428
|
]
|
|
29412
29429
|
}) : /* @__PURE__ */ W("div", {
|
|
29413
29430
|
ref: T,
|
|
29414
29431
|
className: t("flex flex-col", y && "gap-2"),
|
|
29415
|
-
children: s.map((e, t) => /* @__PURE__ */ W(
|
|
29432
|
+
children: s.map((e, t) => /* @__PURE__ */ W(JJ, {
|
|
29416
29433
|
index: t,
|
|
29417
29434
|
path: o,
|
|
29418
29435
|
itemsNode: g,
|
|
29419
29436
|
itemTitle: v,
|
|
29420
29437
|
depth: r,
|
|
29421
29438
|
inline: y,
|
|
29422
|
-
defaultOpen:
|
|
29439
|
+
defaultOpen: E || t === D,
|
|
29423
29440
|
disabled: d,
|
|
29424
29441
|
removeReason: m,
|
|
29425
29442
|
onRemove: () => l(t),
|
|
@@ -29437,7 +29454,7 @@ function UJ({ node: e, name: n, depth: r }) {
|
|
|
29437
29454
|
children: [
|
|
29438
29455
|
/* @__PURE__ */ W(Ee, { "aria-hidden": "true" }),
|
|
29439
29456
|
"Add ",
|
|
29440
|
-
|
|
29457
|
+
UJ(h)
|
|
29441
29458
|
]
|
|
29442
29459
|
})
|
|
29443
29460
|
}),
|
|
@@ -29445,11 +29462,11 @@ function UJ({ node: e, name: n, depth: r }) {
|
|
|
29445
29462
|
]
|
|
29446
29463
|
});
|
|
29447
29464
|
}
|
|
29448
|
-
function
|
|
29465
|
+
function JJ({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o, defaultOpen: s, disabled: c, removeReason: l, onRemove: u, ctx: d }) {
|
|
29449
29466
|
let f = `${n}.${e}`, p = `${i} ${e + 1}`, m = x({
|
|
29450
29467
|
control: d.control,
|
|
29451
29468
|
name: f
|
|
29452
|
-
}), h = o ? void 0 :
|
|
29469
|
+
}), h = o ? void 0 : WJ(m, r?.schema), { errors: g, submitCount: _ } = b({
|
|
29453
29470
|
control: d.control,
|
|
29454
29471
|
name: f
|
|
29455
29472
|
}), v = w(y(g, f)), [S, C] = Je(s || _ > 0 && v > 0), [T, E] = Je(_);
|
|
@@ -29460,25 +29477,23 @@ function WJ({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29460
29477
|
basePath: f,
|
|
29461
29478
|
disabled: c
|
|
29462
29479
|
},
|
|
29463
|
-
children: /* @__PURE__ */ W(
|
|
29480
|
+
children: /* @__PURE__ */ W(jY, {
|
|
29464
29481
|
node: r,
|
|
29465
29482
|
name: "",
|
|
29466
29483
|
depth: a + 1,
|
|
29467
|
-
|
|
29484
|
+
hiddenTitle: p
|
|
29468
29485
|
})
|
|
29469
29486
|
}), k = !c && /* @__PURE__ */ W(IJ, {
|
|
29470
29487
|
reason: l,
|
|
29471
29488
|
type: "button",
|
|
29472
29489
|
variant: "ghost",
|
|
29473
29490
|
size: "icon-xs",
|
|
29474
|
-
className: t("text-muted-foreground hover:text-destructive", o && "mt-1"),
|
|
29491
|
+
className: t("text-muted-foreground", !l && "hover:text-destructive", o && "mt-1"),
|
|
29475
29492
|
"aria-label": `Remove ${p}`,
|
|
29476
29493
|
onClick: u,
|
|
29477
29494
|
children: /* @__PURE__ */ W(Se, { "aria-hidden": "true" })
|
|
29478
29495
|
});
|
|
29479
29496
|
return o ? /* @__PURE__ */ G("div", {
|
|
29480
|
-
role: "group",
|
|
29481
|
-
"aria-label": p,
|
|
29482
29497
|
className: "flex items-start gap-1",
|
|
29483
29498
|
children: [/* @__PURE__ */ W("div", {
|
|
29484
29499
|
className: "min-w-0 flex-1",
|
|
@@ -29495,7 +29510,7 @@ function WJ({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29495
29510
|
children: /* @__PURE__ */ G("button", {
|
|
29496
29511
|
type: "button",
|
|
29497
29512
|
className: "group/array-item-trigger flex flex-1 items-center gap-2 rounded-lg px-1 py-2 text-left text-sm font-medium outline-none focus-visible:ring-3 focus-visible:ring-ring/50",
|
|
29498
|
-
"aria-label": D > 0 ? `Toggle ${p}, ${
|
|
29513
|
+
"aria-label": D > 0 ? `Toggle ${p}, ${YJ(D)}` : `Toggle ${p}`,
|
|
29499
29514
|
children: [
|
|
29500
29515
|
/* @__PURE__ */ W(ce, {
|
|
29501
29516
|
"aria-hidden": "true",
|
|
@@ -29516,7 +29531,7 @@ function WJ({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29516
29531
|
"aria-hidden": "true",
|
|
29517
29532
|
"data-icon": "inline-start",
|
|
29518
29533
|
className: "overflow-visible"
|
|
29519
|
-
}),
|
|
29534
|
+
}), YJ(D)]
|
|
29520
29535
|
})
|
|
29521
29536
|
]
|
|
29522
29537
|
})
|
|
@@ -29527,94 +29542,105 @@ function WJ({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29527
29542
|
}) })]
|
|
29528
29543
|
});
|
|
29529
29544
|
}
|
|
29530
|
-
function
|
|
29545
|
+
function YJ(e) {
|
|
29531
29546
|
return `${e} ${e === 1 ? "error" : "errors"}`;
|
|
29532
29547
|
}
|
|
29533
|
-
function
|
|
29548
|
+
function XJ(e) {
|
|
29534
29549
|
if (Array.isArray(e.enum)) return !0;
|
|
29535
29550
|
let t = Array.isArray(e.type) ? e.type.find((e) => e !== "null") : e.type;
|
|
29536
29551
|
return t === "string" || t === "number" || t === "integer" || t === "boolean";
|
|
29537
29552
|
}
|
|
29538
|
-
function
|
|
29553
|
+
function ZJ(e) {
|
|
29539
29554
|
let t = NJ(e);
|
|
29540
29555
|
return t === void 0 ? LJ(e) : t;
|
|
29541
29556
|
}
|
|
29542
29557
|
//#endregion
|
|
29543
29558
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
29544
|
-
function
|
|
29545
|
-
let { schema: r } = e, { path: i, fields: a, append: o, remove: s, fieldState: c, isDisabled: l,
|
|
29546
|
-
function
|
|
29559
|
+
function QJ({ node: e, name: t, depth: n }) {
|
|
29560
|
+
let { schema: r } = e, { path: i, fields: a, append: o, remove: s, fieldState: c, isDisabled: l, maxItems: u, addReason: d, removeReason: f } = GJ(r, t), p = r.items, m = p && !Array.isArray(p) ? p.properties ?? {} : {}, h = Object.keys(m), g = M(r, t), v = VJ(p);
|
|
29561
|
+
function y() {
|
|
29547
29562
|
let e = {};
|
|
29548
|
-
for (let t of
|
|
29563
|
+
for (let t of h) e[t] = LJ(m[t]);
|
|
29549
29564
|
o(e, { shouldFocus: !1 });
|
|
29550
29565
|
}
|
|
29551
|
-
let
|
|
29566
|
+
let b = FJ(n);
|
|
29552
29567
|
return /* @__PURE__ */ G(ee, {
|
|
29553
29568
|
"aria-required": r.isRequired || void 0,
|
|
29554
29569
|
children: [
|
|
29555
|
-
/* @__PURE__ */
|
|
29556
|
-
variant:
|
|
29557
|
-
className:
|
|
29570
|
+
/* @__PURE__ */ G(R, {
|
|
29571
|
+
variant: b.variant,
|
|
29572
|
+
className: b.className,
|
|
29558
29573
|
required: r.isRequired,
|
|
29559
|
-
children:
|
|
29574
|
+
children: [g, /* @__PURE__ */ W(Jv, {
|
|
29575
|
+
variant: "outline",
|
|
29576
|
+
"aria-hidden": "true",
|
|
29577
|
+
className: "order-last ml-1.5 align-middle",
|
|
29578
|
+
children: RJ(a.length, u)
|
|
29579
|
+
})]
|
|
29580
|
+
}),
|
|
29581
|
+
/* @__PURE__ */ W("p", {
|
|
29582
|
+
className: "sr-only",
|
|
29583
|
+
children: zJ(a.length, u)
|
|
29560
29584
|
}),
|
|
29561
29585
|
r.description && /* @__PURE__ */ W(C, { children: r.description }),
|
|
29562
29586
|
r.gioConfig?.banner && /* @__PURE__ */ W(P, { banner: r.gioConfig.banner }),
|
|
29563
29587
|
/* @__PURE__ */ W("div", {
|
|
29564
29588
|
className: "overflow-hidden rounded-lg border",
|
|
29565
|
-
children: /* @__PURE__ */ G(ZU, { children: [/* @__PURE__ */ W(QU, { children: /* @__PURE__ */ G(tW, { children: [
|
|
29589
|
+
children: /* @__PURE__ */ G(ZU, { children: [/* @__PURE__ */ W(QU, { children: /* @__PURE__ */ G(tW, { children: [h.map((e) => /* @__PURE__ */ W(nW, {
|
|
29566
29590
|
scope: "col",
|
|
29567
|
-
children:
|
|
29591
|
+
children: tY(m[e], e)
|
|
29568
29592
|
}, e)), /* @__PURE__ */ W(nW, {
|
|
29569
29593
|
"aria-hidden": "true",
|
|
29570
29594
|
className: "w-px"
|
|
29571
|
-
})] }) }), /* @__PURE__ */ W($U, { children: a.map((e, t) => /* @__PURE__ */ W(
|
|
29595
|
+
})] }) }), /* @__PURE__ */ W($U, { children: a.map((e, t) => /* @__PURE__ */ W($J, {
|
|
29572
29596
|
rowIndex: t,
|
|
29597
|
+
itemTitle: v,
|
|
29573
29598
|
rowPath: `${i}.${t}`,
|
|
29574
|
-
columnKeys:
|
|
29575
|
-
itemProperties:
|
|
29599
|
+
columnKeys: h,
|
|
29600
|
+
itemProperties: m,
|
|
29576
29601
|
disabled: l,
|
|
29577
|
-
removeReason:
|
|
29602
|
+
removeReason: f,
|
|
29578
29603
|
onRemove: () => s(t)
|
|
29579
29604
|
}, e.id)) })] })
|
|
29580
29605
|
}),
|
|
29581
29606
|
!l && /* @__PURE__ */ W("div", { children: /* @__PURE__ */ G(IJ, {
|
|
29582
|
-
reason:
|
|
29607
|
+
reason: d,
|
|
29583
29608
|
type: "button",
|
|
29584
29609
|
variant: "outline",
|
|
29585
29610
|
size: "sm",
|
|
29586
|
-
onClick:
|
|
29611
|
+
onClick: y,
|
|
29587
29612
|
children: [
|
|
29588
29613
|
/* @__PURE__ */ W(Ee, { "aria-hidden": "true" }),
|
|
29589
29614
|
"Add ",
|
|
29590
|
-
|
|
29615
|
+
UJ(p)
|
|
29591
29616
|
]
|
|
29592
29617
|
}) }),
|
|
29593
29618
|
/* @__PURE__ */ W(S, { errors: _(c.error) })
|
|
29594
29619
|
]
|
|
29595
29620
|
});
|
|
29596
29621
|
}
|
|
29597
|
-
function
|
|
29598
|
-
return /* @__PURE__ */ G(tW, { children: [
|
|
29599
|
-
columnKey:
|
|
29600
|
-
cellPath: `${
|
|
29601
|
-
propSchema:
|
|
29622
|
+
function $J({ rowIndex: e, itemTitle: n, rowPath: r, columnKeys: i, itemProperties: a, disabled: o, removeReason: s, onRemove: c }) {
|
|
29623
|
+
return /* @__PURE__ */ G(tW, { children: [i.map((t) => /* @__PURE__ */ W(eY, {
|
|
29624
|
+
columnKey: t,
|
|
29625
|
+
cellPath: `${r}.${t}`,
|
|
29626
|
+
propSchema: a[t],
|
|
29602
29627
|
rowIndex: e,
|
|
29603
|
-
disabled:
|
|
29604
|
-
},
|
|
29628
|
+
disabled: o
|
|
29629
|
+
}, t)), /* @__PURE__ */ W(rW, {
|
|
29605
29630
|
className: "w-px",
|
|
29606
|
-
children: !
|
|
29607
|
-
reason:
|
|
29631
|
+
children: !o && /* @__PURE__ */ W(IJ, {
|
|
29632
|
+
reason: s,
|
|
29608
29633
|
type: "button",
|
|
29609
29634
|
variant: "ghost",
|
|
29610
29635
|
size: "icon-xs",
|
|
29611
|
-
"
|
|
29612
|
-
|
|
29613
|
-
|
|
29636
|
+
className: t("text-muted-foreground", !s && "hover:text-destructive"),
|
|
29637
|
+
"aria-label": `Remove ${n} ${e + 1}`,
|
|
29638
|
+
onClick: c,
|
|
29639
|
+
children: /* @__PURE__ */ W(Se, { "aria-hidden": "true" })
|
|
29614
29640
|
})
|
|
29615
29641
|
})] });
|
|
29616
29642
|
}
|
|
29617
|
-
function
|
|
29643
|
+
function eY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
29618
29644
|
let { control: a } = N(), { field: o, fieldState: s } = D({
|
|
29619
29645
|
control: a,
|
|
29620
29646
|
name: t
|
|
@@ -29627,16 +29653,16 @@ function XJ({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
29627
29653
|
onBlur: l,
|
|
29628
29654
|
disabled: i,
|
|
29629
29655
|
"aria-invalid": s.invalid,
|
|
29630
|
-
"aria-label": `${
|
|
29656
|
+
"aria-label": `${tY(n, e)} for row ${r + 1}`,
|
|
29631
29657
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
29632
29658
|
}) });
|
|
29633
29659
|
}
|
|
29634
|
-
function
|
|
29660
|
+
function tY(e, t) {
|
|
29635
29661
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
29636
29662
|
}
|
|
29637
29663
|
//#endregion
|
|
29638
29664
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
29639
|
-
function
|
|
29665
|
+
function nY({ node: e, name: t }) {
|
|
29640
29666
|
let { control: n, basePath: r, disabled: i } = N(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = D({
|
|
29641
29667
|
control: n,
|
|
29642
29668
|
name: o,
|
|
@@ -29665,18 +29691,18 @@ function QJ({ node: e, name: t }) {
|
|
|
29665
29691
|
}
|
|
29666
29692
|
//#endregion
|
|
29667
29693
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
29668
|
-
function
|
|
29694
|
+
function rY(e, t) {
|
|
29669
29695
|
let n = t?.[String(e)];
|
|
29670
29696
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
29671
29697
|
}
|
|
29672
|
-
function
|
|
29698
|
+
function iY(e, t) {
|
|
29673
29699
|
return e.map((e, n) => ({
|
|
29674
29700
|
raw: e,
|
|
29675
29701
|
key: String(n),
|
|
29676
|
-
label:
|
|
29702
|
+
label: rY(e, t)
|
|
29677
29703
|
}));
|
|
29678
29704
|
}
|
|
29679
|
-
function
|
|
29705
|
+
function aY(e) {
|
|
29680
29706
|
return e.map((e, t) => ({
|
|
29681
29707
|
raw: e.const,
|
|
29682
29708
|
key: String(t),
|
|
@@ -29685,19 +29711,19 @@ function tY(e) {
|
|
|
29685
29711
|
}
|
|
29686
29712
|
//#endregion
|
|
29687
29713
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
29688
|
-
function
|
|
29714
|
+
function oY({ node: e, name: t, hiddenTitle: n }) {
|
|
29689
29715
|
let { control: r, basePath: i, disabled: a } = N(), { schema: o } = e, s = t ? i ? `${i}.${t}` : t : i, { field: c, fieldState: l } = D({
|
|
29690
29716
|
control: r,
|
|
29691
29717
|
name: s,
|
|
29692
29718
|
defaultValue: o.default
|
|
29693
|
-
}), { ref: u, onBlur: d } = c, f = M(o, t), p = a || o.readOnly === !0, m =
|
|
29719
|
+
}), { ref: u, onBlur: d } = c, f = n ?? M(o, t), p = a || o.readOnly === !0, m = sY(o), h = m.find((e) => Object.is(e.raw, c.value))?.key ?? "", g = (e) => m.find((t) => t.key === e)?.raw;
|
|
29694
29720
|
return /* @__PURE__ */ G(j, {
|
|
29695
29721
|
"data-invalid": l.invalid,
|
|
29696
29722
|
children: [
|
|
29697
29723
|
/* @__PURE__ */ W(I, {
|
|
29698
29724
|
htmlFor: s,
|
|
29699
29725
|
required: o.isRequired,
|
|
29700
|
-
className: n ? "sr-only"
|
|
29726
|
+
className: n === void 0 ? void 0 : "sr-only",
|
|
29701
29727
|
children: f
|
|
29702
29728
|
}),
|
|
29703
29729
|
o.gioConfig?.banner && /* @__PURE__ */ W(P, { banner: o.gioConfig.banner }),
|
|
@@ -29722,18 +29748,18 @@ function nY({ node: e, name: t, hideTitle: n }) {
|
|
|
29722
29748
|
]
|
|
29723
29749
|
});
|
|
29724
29750
|
}
|
|
29725
|
-
function
|
|
29726
|
-
return TJ(e) ?
|
|
29751
|
+
function sY(e) {
|
|
29752
|
+
return TJ(e) ? aY(e.oneOf ?? []) : iY(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
29727
29753
|
}
|
|
29728
29754
|
//#endregion
|
|
29729
29755
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
29730
|
-
function
|
|
29756
|
+
function cY({ node: e, name: t }) {
|
|
29731
29757
|
let { control: n, basePath: r, disabled: i } = N(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = D({
|
|
29732
29758
|
control: n,
|
|
29733
29759
|
name: o,
|
|
29734
29760
|
defaultValue: Array.isArray(a.default) ? a.default : []
|
|
29735
|
-
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = fj(), m = M(a, t), h = i || a.readOnly === !0, g = a.items, v =
|
|
29736
|
-
return
|
|
29761
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = fj(), m = M(a, t), h = i || a.readOnly === !0, g = a.items, v = iY(g.enum ?? [], g.gioConfig?.enumLabelMap), y = v.map((e) => e.label), b = (e) => v.find((t) => t.label === e)?.raw, x = (e) => v.find((t) => Object.is(t.raw, e))?.label, w = (Array.isArray(s.value) ? s.value : []).map((e) => x(e)).filter((e) => e !== void 0);
|
|
29762
|
+
return lY({
|
|
29737
29763
|
schema: a,
|
|
29738
29764
|
options: v,
|
|
29739
29765
|
value: f,
|
|
@@ -29783,23 +29809,23 @@ function iY({ node: e, name: t }) {
|
|
|
29783
29809
|
]
|
|
29784
29810
|
});
|
|
29785
29811
|
}
|
|
29786
|
-
function
|
|
29812
|
+
function lY({ schema: e, options: t, value: n, onReset: r }) {
|
|
29787
29813
|
Ve(() => {
|
|
29788
29814
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
29789
29815
|
}, [e]);
|
|
29790
29816
|
}
|
|
29791
29817
|
//#endregion
|
|
29792
29818
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
29793
|
-
function
|
|
29819
|
+
function uY() {
|
|
29794
29820
|
return null;
|
|
29795
29821
|
}
|
|
29796
29822
|
//#endregion
|
|
29797
29823
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
29798
|
-
function
|
|
29824
|
+
function dY({ node: e, name: t, hiddenTitle: n }) {
|
|
29799
29825
|
let { control: r, basePath: i, disabled: a } = N(), { schema: o } = e, s = t ? i ? `${i}.${t}` : t : i, { field: c, fieldState: l } = D({
|
|
29800
29826
|
control: r,
|
|
29801
29827
|
name: s
|
|
29802
|
-
}), u = M(o, t), d = a || o.readOnly === !0, f = (e) => {
|
|
29828
|
+
}), u = n ?? M(o, t), d = a || o.readOnly === !0, f = (e) => {
|
|
29803
29829
|
let t = e.target.value;
|
|
29804
29830
|
if (t === "") {
|
|
29805
29831
|
c.onChange(null);
|
|
@@ -29814,7 +29840,7 @@ function sY({ node: e, name: t, hideTitle: n }) {
|
|
|
29814
29840
|
/* @__PURE__ */ W(I, {
|
|
29815
29841
|
htmlFor: s,
|
|
29816
29842
|
required: o.isRequired,
|
|
29817
|
-
className: n ? "sr-only"
|
|
29843
|
+
className: n === void 0 ? void 0 : "sr-only",
|
|
29818
29844
|
children: u
|
|
29819
29845
|
}),
|
|
29820
29846
|
o.gioConfig?.banner && /* @__PURE__ */ W(P, { banner: o.gioConfig.banner }),
|
|
@@ -29839,7 +29865,7 @@ function sY({ node: e, name: t, hideTitle: n }) {
|
|
|
29839
29865
|
}
|
|
29840
29866
|
//#endregion
|
|
29841
29867
|
//#region src/composed/JsonSchemaForm/conditional/useDependencyBranchSync.ts
|
|
29842
|
-
function
|
|
29868
|
+
function fY(e, t, n, r) {
|
|
29843
29869
|
let i = Ge(() => t.map((e) => pJ(e.showIf, n)), [t, n]), a = Ge(() => t.map((e) => Array.from(e.properties.keys()).map((e) => n ? `${n}.${e}` : e)), [t, n]), o = Ge(() => {
|
|
29844
29870
|
let e = /* @__PURE__ */ new Set();
|
|
29845
29871
|
for (let t of i) for (let n of t.$eq.keys()) e.add(n);
|
|
@@ -29872,21 +29898,21 @@ function cY(e, t, n, r) {
|
|
|
29872
29898
|
r
|
|
29873
29899
|
]);
|
|
29874
29900
|
}
|
|
29875
|
-
function
|
|
29901
|
+
function pY({ branches: e, basePath: t }) {
|
|
29876
29902
|
let { control: n, externalContext: r } = N();
|
|
29877
|
-
return
|
|
29903
|
+
return fY(n, e, t, r), null;
|
|
29878
29904
|
}
|
|
29879
29905
|
//#endregion
|
|
29880
29906
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
29881
|
-
function
|
|
29907
|
+
function mY(e, t, n, r) {
|
|
29882
29908
|
if (e.length === 0) return -1;
|
|
29883
29909
|
let i = n?.get(t);
|
|
29884
|
-
return
|
|
29910
|
+
return hY(i, e) && gY(e[i], r) ? i : _Y(e, r);
|
|
29885
29911
|
}
|
|
29886
|
-
function
|
|
29912
|
+
function hY(e, t) {
|
|
29887
29913
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
29888
29914
|
}
|
|
29889
|
-
function
|
|
29915
|
+
function gY(e, t) {
|
|
29890
29916
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
29891
29917
|
if (n.const !== void 0) return t(e) === n.const;
|
|
29892
29918
|
if (typeof n.pattern == "string") {
|
|
@@ -29896,18 +29922,18 @@ function fY(e, t) {
|
|
|
29896
29922
|
return !0;
|
|
29897
29923
|
});
|
|
29898
29924
|
}
|
|
29899
|
-
function
|
|
29925
|
+
function _Y(e, t) {
|
|
29900
29926
|
let n = 0, r = {
|
|
29901
29927
|
viable: !1,
|
|
29902
29928
|
matches: -1
|
|
29903
29929
|
};
|
|
29904
29930
|
return e.forEach((e, i) => {
|
|
29905
|
-
let a =
|
|
29906
|
-
|
|
29931
|
+
let a = vY(e, t);
|
|
29932
|
+
yY(a, r) > 0 && (n = i, r = a);
|
|
29907
29933
|
}), n;
|
|
29908
29934
|
}
|
|
29909
|
-
function
|
|
29910
|
-
return
|
|
29935
|
+
function vY(e, t) {
|
|
29936
|
+
return gY(e, t) ? {
|
|
29911
29937
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
29912
29938
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
29913
29939
|
} : {
|
|
@@ -29915,13 +29941,13 @@ function mY(e, t) {
|
|
|
29915
29941
|
matches: -1
|
|
29916
29942
|
};
|
|
29917
29943
|
}
|
|
29918
|
-
function
|
|
29944
|
+
function yY(e, t) {
|
|
29919
29945
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
29920
29946
|
}
|
|
29921
29947
|
//#endregion
|
|
29922
29948
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
29923
|
-
function
|
|
29924
|
-
let n = N(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = Ge(() => e.variants ?? [], [e.variants]), [l, u] = Je(() =>
|
|
29949
|
+
function bY({ node: e, depth: t }) {
|
|
29950
|
+
let n = N(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = Ge(() => e.variants ?? [], [e.variants]), [l, u] = Je(() => mY(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = Ge(() => c[l]?.dependencyBranches ?? [], [c, l]);
|
|
29925
29951
|
if (c.length === 0) return null;
|
|
29926
29952
|
let f = c[l] ?? c[0], p = n.disabled || o.readOnly === !0, m = `${a || "root"}-variant`, h = (e) => {
|
|
29927
29953
|
if (e === l) return;
|
|
@@ -29956,22 +29982,22 @@ function gY({ node: e, depth: t }) {
|
|
|
29956
29982
|
f.raw.description && /* @__PURE__ */ W(C, { children: f.raw.description }),
|
|
29957
29983
|
f.raw.gioConfig?.banner && /* @__PURE__ */ W(P, { banner: f.raw.gioConfig.banner })
|
|
29958
29984
|
] }),
|
|
29959
|
-
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(
|
|
29985
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(xY, {
|
|
29960
29986
|
path: a ? `${a}.${e}` : e,
|
|
29961
29987
|
value: t
|
|
29962
29988
|
}, e)),
|
|
29963
|
-
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(
|
|
29989
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(jY, {
|
|
29964
29990
|
node: n,
|
|
29965
29991
|
name: e,
|
|
29966
29992
|
depth: t + 1
|
|
29967
29993
|
}, `${l}-${e}`)),
|
|
29968
|
-
d.length > 0 && /* @__PURE__ */ W(
|
|
29994
|
+
d.length > 0 && /* @__PURE__ */ W(pY, {
|
|
29969
29995
|
branches: d,
|
|
29970
29996
|
basePath: a
|
|
29971
29997
|
}),
|
|
29972
29998
|
d.map((e, n) => /* @__PURE__ */ W(uJ, {
|
|
29973
29999
|
condition: pJ(e.showIf, a),
|
|
29974
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(
|
|
30000
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(jY, {
|
|
29975
30001
|
node: n,
|
|
29976
30002
|
name: e,
|
|
29977
30003
|
depth: t + 1
|
|
@@ -29979,7 +30005,7 @@ function gY({ node: e, depth: t }) {
|
|
|
29979
30005
|
}, `${l}-var-dep-${n}`))
|
|
29980
30006
|
] });
|
|
29981
30007
|
}
|
|
29982
|
-
function
|
|
30008
|
+
function xY({ path: e, value: t }) {
|
|
29983
30009
|
let { control: n } = N(), { field: r } = D({
|
|
29984
30010
|
control: n,
|
|
29985
30011
|
name: e
|
|
@@ -29990,40 +30016,41 @@ function _Y({ path: e, value: t }) {
|
|
|
29990
30016
|
}
|
|
29991
30017
|
//#endregion
|
|
29992
30018
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
29993
|
-
function
|
|
30019
|
+
function SY({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
29994
30020
|
let a = N(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c = jJ(o) || MJ(o), l = Ge(() => e.dependencyBranches ?? [], [e.dependencyBranches]), u = l.length > 0, d = (e.properties || c || u) && /* @__PURE__ */ W(A.Provider, {
|
|
29995
30021
|
value: {
|
|
29996
30022
|
...a,
|
|
29997
30023
|
basePath: s
|
|
29998
30024
|
},
|
|
29999
30025
|
children: /* @__PURE__ */ G(g, { children: [
|
|
30000
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
30026
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(jY, {
|
|
30001
30027
|
node: t,
|
|
30002
30028
|
name: e,
|
|
30003
30029
|
depth: r + 1
|
|
30004
30030
|
}, e)),
|
|
30005
|
-
u && /* @__PURE__ */ W(
|
|
30031
|
+
u && /* @__PURE__ */ W(pY, {
|
|
30006
30032
|
branches: l,
|
|
30007
30033
|
basePath: s
|
|
30008
30034
|
}),
|
|
30009
30035
|
l.map((e, t) => /* @__PURE__ */ W(uJ, {
|
|
30010
30036
|
condition: pJ(e.showIf, s),
|
|
30011
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
30037
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(jY, {
|
|
30012
30038
|
node: t,
|
|
30013
30039
|
name: e,
|
|
30014
30040
|
depth: r + 1
|
|
30015
30041
|
}, e))
|
|
30016
30042
|
}, `dep-${t}`)),
|
|
30017
|
-
c && /* @__PURE__ */ W(
|
|
30043
|
+
c && /* @__PURE__ */ W(bY, {
|
|
30018
30044
|
node: e,
|
|
30019
30045
|
depth: r
|
|
30020
30046
|
})
|
|
30021
30047
|
] })
|
|
30022
30048
|
}), f = typeof o.title == "string" && o.title.length > 0 || n !== void 0 && n.length > 0, p = o.gioConfig?.uiBorder === "full", m = FJ(r);
|
|
30023
30049
|
return r === 0 || !f ? /* @__PURE__ */ W(Ze, { children: d }) : /* @__PURE__ */ G(ee, {
|
|
30024
|
-
|
|
30050
|
+
"aria-label": i,
|
|
30051
|
+
className: p ? t("rounded-lg border border-border px-5 pb-5", i === void 0 ? "pt-2" : "pt-5") : void 0,
|
|
30025
30052
|
children: [
|
|
30026
|
-
|
|
30053
|
+
i === void 0 && /* @__PURE__ */ W(R, {
|
|
30027
30054
|
variant: m.variant,
|
|
30028
30055
|
className: t(m.className, p && "px-2"),
|
|
30029
30056
|
required: o.isRequired,
|
|
@@ -30037,7 +30064,7 @@ function vY({ node: e, name: n, depth: r, hideTitle: i }) {
|
|
|
30037
30064
|
}
|
|
30038
30065
|
//#endregion
|
|
30039
30066
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
30040
|
-
function
|
|
30067
|
+
function CY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
30041
30068
|
let [s, c] = Je(!1);
|
|
30042
30069
|
return /* @__PURE__ */ G(HA, {
|
|
30043
30070
|
className: e,
|
|
@@ -30063,15 +30090,15 @@ function yY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
30063
30090
|
})]
|
|
30064
30091
|
});
|
|
30065
30092
|
}
|
|
30066
|
-
|
|
30093
|
+
CY.displayName = "PasswordInput";
|
|
30067
30094
|
//#endregion
|
|
30068
30095
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
30069
|
-
var
|
|
30070
|
-
function
|
|
30096
|
+
var wY = "{#request.headers['x-custom'] == 'value'}";
|
|
30097
|
+
function TY({ node: n, name: r, hiddenTitle: i }) {
|
|
30071
30098
|
let { control: a, basePath: o, disabled: s } = N(), { schema: c } = n, l = r ? o ? `${o}.${r}` : r : o, { field: u, fieldState: d } = D({
|
|
30072
30099
|
control: a,
|
|
30073
30100
|
name: l
|
|
30074
|
-
}), f = M(c, r), p = s || c.readOnly === !0, m = d.invalid, h = typeof u.value == "string" ? u.value : "", g = c.gioConfig?.el === !0, v = (Array.isArray(c.examples) && c.examples[0] !== void 0 && c.examples[0] !== null ? String(c.examples[0]) : void 0) ?? (c.default !== void 0 && c.default !== null ? String(c.default) : void 0) ?? (g ?
|
|
30101
|
+
}), f = i ?? M(c, r), p = s || c.readOnly === !0, m = d.invalid, h = typeof u.value == "string" ? u.value : "", g = c.gioConfig?.el === !0, v = (Array.isArray(c.examples) && c.examples[0] !== void 0 && c.examples[0] !== null ? String(c.examples[0]) : void 0) ?? (c.default !== void 0 && c.default !== null ? String(c.default) : void 0) ?? (g ? wY : void 0), y = g ? "font-mono text-xs" : void 0, b = {
|
|
30075
30102
|
id: l,
|
|
30076
30103
|
value: h,
|
|
30077
30104
|
onChange: u.onChange,
|
|
@@ -30087,11 +30114,11 @@ function xY({ node: n, name: r, hideTitle: i }) {
|
|
|
30087
30114
|
"data-invalid": m,
|
|
30088
30115
|
children: [
|
|
30089
30116
|
/* @__PURE__ */ G("div", {
|
|
30090
|
-
className: t("flex items-center gap-1", i && !g && "sr-only"),
|
|
30117
|
+
className: t("flex items-center gap-1", i !== void 0 && !g && "sr-only"),
|
|
30091
30118
|
children: [/* @__PURE__ */ W(I, {
|
|
30092
30119
|
htmlFor: l,
|
|
30093
30120
|
required: c.isRequired,
|
|
30094
|
-
className: i ? "sr-only"
|
|
30121
|
+
className: i === void 0 ? void 0 : "sr-only",
|
|
30095
30122
|
children: f
|
|
30096
30123
|
}), g && /* @__PURE__ */ W(eJ, {})]
|
|
30097
30124
|
}),
|
|
@@ -30099,7 +30126,7 @@ function xY({ node: n, name: r, hideTitle: i }) {
|
|
|
30099
30126
|
c.format === "text" ? /* @__PURE__ */ W(e, {
|
|
30100
30127
|
...b,
|
|
30101
30128
|
className: y
|
|
30102
|
-
}) : c.format === "password" ? /* @__PURE__ */ W(
|
|
30129
|
+
}) : c.format === "password" ? /* @__PURE__ */ W(CY, {
|
|
30103
30130
|
...b,
|
|
30104
30131
|
pattern: c.pattern
|
|
30105
30132
|
}) : /* @__PURE__ */ W(VA, {
|
|
@@ -30115,23 +30142,23 @@ function xY({ node: n, name: r, hideTitle: i }) {
|
|
|
30115
30142
|
}
|
|
30116
30143
|
//#endregion
|
|
30117
30144
|
//#region src/composed/JsonSchemaForm/fields/resource/ResourceTypeField.tsx
|
|
30118
|
-
function
|
|
30119
|
-
let { externalContext: n } = N(), r =
|
|
30120
|
-
return r === null ? /* @__PURE__ */ W(
|
|
30145
|
+
function EY({ node: e, name: t }) {
|
|
30146
|
+
let { externalContext: n } = N(), r = kY(n);
|
|
30147
|
+
return r === null ? /* @__PURE__ */ W(TY, {
|
|
30121
30148
|
node: e,
|
|
30122
30149
|
name: t
|
|
30123
|
-
}) : /* @__PURE__ */ W(
|
|
30150
|
+
}) : /* @__PURE__ */ W(DY, {
|
|
30124
30151
|
node: e,
|
|
30125
30152
|
name: t,
|
|
30126
30153
|
injected: r
|
|
30127
30154
|
});
|
|
30128
30155
|
}
|
|
30129
|
-
function
|
|
30156
|
+
function DY({ node: e, name: t, injected: n }) {
|
|
30130
30157
|
let { control: r, basePath: i, disabled: a } = N(), { schema: o } = e, s = t ? i ? `${i}.${t}` : t : i, { field: c, fieldState: l } = D({
|
|
30131
30158
|
control: r,
|
|
30132
30159
|
name: s,
|
|
30133
30160
|
defaultValue: o.default
|
|
30134
|
-
}), { ref: u, onBlur: d } = c, f =
|
|
30161
|
+
}), { ref: u, onBlur: d } = c, f = OY(o.gioConfig?.uiTypeProps?.resourceType), p = (e) => f.length === 0 || f.some((t) => e.startsWith(t)), m = n.filter((e) => p(e.type)).map((e) => e.name), h = typeof c.value == "string" ? c.value : "";
|
|
30135
30162
|
h !== "" && !m.includes(h) && m.unshift(h);
|
|
30136
30163
|
let g = M(o, t), v = a || o.readOnly === !0, y = m.length === 0 ? "No matching resources on this API" : "Select a resource…";
|
|
30137
30164
|
return /* @__PURE__ */ G(j, {
|
|
@@ -30164,20 +30191,20 @@ function CY({ node: e, name: t, injected: n }) {
|
|
|
30164
30191
|
]
|
|
30165
30192
|
});
|
|
30166
30193
|
}
|
|
30167
|
-
function
|
|
30194
|
+
function OY(e) {
|
|
30168
30195
|
return typeof e == "string" ? [e] : Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
30169
30196
|
}
|
|
30170
|
-
function
|
|
30197
|
+
function kY(e) {
|
|
30171
30198
|
let t = e?.resources;
|
|
30172
30199
|
return Array.isArray(t) ? t.filter((e) => typeof e == "object" && !!e && typeof e.name == "string" && typeof e.type == "string") : null;
|
|
30173
30200
|
}
|
|
30174
30201
|
//#endregion
|
|
30175
30202
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
30176
|
-
var
|
|
30177
|
-
function
|
|
30203
|
+
var AY = Le(() => import("./CodeEditorField-Cp5OWo1-.js").then((e) => ({ default: e.CodeEditorField })));
|
|
30204
|
+
function jY({ node: e, name: t, depth: n = 0, hiddenTitle: r }) {
|
|
30178
30205
|
let { basePath: i } = N(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = Ge(() => [s], [s]), l = Ge(() => e.displayIf ? pJ(e.displayIf, i) : void 0, [e.displayIf, i]), u = Ge(() => e.disableIf ? pJ(e.disableIf, i) : void 0, [e.disableIf, i]);
|
|
30179
30206
|
if (a.deprecated === !0) return null;
|
|
30180
|
-
let d =
|
|
30207
|
+
let d = MY(e, o, t, n, r);
|
|
30181
30208
|
return d === null ? null : (u && (d = /* @__PURE__ */ W(dJ, {
|
|
30182
30209
|
condition: u,
|
|
30183
30210
|
children: d
|
|
@@ -30187,139 +30214,139 @@ function DY({ node: e, name: t, depth: n = 0, hideTitle: r }) {
|
|
|
30187
30214
|
children: d
|
|
30188
30215
|
}) : d);
|
|
30189
30216
|
}
|
|
30190
|
-
function
|
|
30191
|
-
let { schema: a } = e, o =
|
|
30192
|
-
return Array.isArray(a.enum) && a.enum.length > 0 || TJ(a) ? /* @__PURE__ */ W(
|
|
30217
|
+
function MY(e, t, n, r, i) {
|
|
30218
|
+
let { schema: a } = e, o = NY(a.type);
|
|
30219
|
+
return Array.isArray(a.enum) && a.enum.length > 0 || TJ(a) ? /* @__PURE__ */ W(oY, {
|
|
30193
30220
|
node: e,
|
|
30194
30221
|
name: t,
|
|
30195
|
-
|
|
30196
|
-
}) : EJ(a) ? /* @__PURE__ */ W(
|
|
30222
|
+
hiddenTitle: i
|
|
30223
|
+
}) : EJ(a) ? /* @__PURE__ */ W(cY, {
|
|
30197
30224
|
node: e,
|
|
30198
30225
|
name: t
|
|
30199
|
-
}) : DJ(a) ? /* @__PURE__ */ W(
|
|
30226
|
+
}) : DJ(a) ? /* @__PURE__ */ W(QJ, {
|
|
30200
30227
|
node: e,
|
|
30201
30228
|
name: t,
|
|
30202
30229
|
depth: r
|
|
30203
30230
|
}) : AJ(a) ? /* @__PURE__ */ W(Ne, {
|
|
30204
30231
|
fallback: null,
|
|
30205
|
-
children: /* @__PURE__ */ W(
|
|
30232
|
+
children: /* @__PURE__ */ W(AY, {
|
|
30206
30233
|
node: e,
|
|
30207
30234
|
name: t
|
|
30208
30235
|
})
|
|
30209
|
-
}) : o === "null" ? /* @__PURE__ */ W(
|
|
30236
|
+
}) : o === "null" ? /* @__PURE__ */ W(uY, {}) : o === "boolean" ? /* @__PURE__ */ W(nY, {
|
|
30210
30237
|
node: e,
|
|
30211
30238
|
name: t
|
|
30212
|
-
}) : o === "integer" || o === "number" ? /* @__PURE__ */ W(
|
|
30239
|
+
}) : o === "integer" || o === "number" ? /* @__PURE__ */ W(dY, {
|
|
30213
30240
|
node: e,
|
|
30214
30241
|
name: t,
|
|
30215
|
-
|
|
30216
|
-
}) : OJ(a) ? /* @__PURE__ */ W(
|
|
30242
|
+
hiddenTitle: i
|
|
30243
|
+
}) : OJ(a) ? /* @__PURE__ */ W(EY, {
|
|
30217
30244
|
node: e,
|
|
30218
30245
|
name: t
|
|
30219
|
-
}) : o === "string" ? /* @__PURE__ */ W(
|
|
30246
|
+
}) : o === "string" ? /* @__PURE__ */ W(TY, {
|
|
30220
30247
|
node: e,
|
|
30221
30248
|
name: t,
|
|
30222
|
-
|
|
30223
|
-
}) : a.properties || o === "object" || jJ(a) || MJ(a) ? /* @__PURE__ */ W(
|
|
30249
|
+
hiddenTitle: i
|
|
30250
|
+
}) : a.properties || o === "object" || jJ(a) || MJ(a) ? /* @__PURE__ */ W(SY, {
|
|
30224
30251
|
node: e,
|
|
30225
30252
|
name: n,
|
|
30226
30253
|
depth: r,
|
|
30227
|
-
|
|
30228
|
-
}) : o === "array" && a.items && !Array.isArray(a.items) ? /* @__PURE__ */ W(
|
|
30254
|
+
hiddenTitle: i
|
|
30255
|
+
}) : o === "array" && a.items && !Array.isArray(a.items) ? /* @__PURE__ */ W(qJ, {
|
|
30229
30256
|
node: e,
|
|
30230
30257
|
name: n,
|
|
30231
30258
|
depth: r
|
|
30232
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
30259
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${PY(a)}). Field is omitted.`), null);
|
|
30233
30260
|
}
|
|
30234
|
-
function
|
|
30261
|
+
function NY(e) {
|
|
30235
30262
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
30236
30263
|
}
|
|
30237
|
-
function
|
|
30264
|
+
function PY(e) {
|
|
30238
30265
|
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" : e.const === void 0 ? "unknown" : "const";
|
|
30239
30266
|
}
|
|
30240
30267
|
//#endregion
|
|
30241
30268
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
30242
|
-
function
|
|
30243
|
-
return
|
|
30269
|
+
function FY(e) {
|
|
30270
|
+
return IY(e);
|
|
30244
30271
|
}
|
|
30245
|
-
function
|
|
30272
|
+
function IY(e) {
|
|
30246
30273
|
let t = { ...e };
|
|
30247
30274
|
if (t.properties) {
|
|
30248
30275
|
let e = new Set(t.required ?? []), n = {};
|
|
30249
30276
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
30250
|
-
let t =
|
|
30277
|
+
let t = IY(i);
|
|
30251
30278
|
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;
|
|
30252
30279
|
}
|
|
30253
30280
|
t.properties = n;
|
|
30254
30281
|
}
|
|
30255
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
30282
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(IY) : IY(t.items), t.oneOf &&= t.oneOf.map(IY), t.anyOf &&= t.anyOf.map(IY), t.allOf &&= t.allOf.map(IY), t.dependencies &&= mJ(t.dependencies, IY), t;
|
|
30256
30283
|
}
|
|
30257
30284
|
//#endregion
|
|
30258
30285
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
30259
|
-
function
|
|
30286
|
+
function LY(e) {
|
|
30260
30287
|
if (kJ(e)) return { deprecated: !0 };
|
|
30261
30288
|
let t = { ...e };
|
|
30262
30289
|
if (e.properties) {
|
|
30263
30290
|
let n = [];
|
|
30264
30291
|
t.properties = {};
|
|
30265
|
-
for (let [r, i] of Object.entries(e.properties)) kJ(i) && n.push(r), t.properties[r] =
|
|
30292
|
+
for (let [r, i] of Object.entries(e.properties)) kJ(i) && n.push(r), t.properties[r] = LY(i);
|
|
30266
30293
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
30267
30294
|
}
|
|
30268
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
30295
|
+
return e.items && !Array.isArray(e.items) && (t.items = LY(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => !kJ(e)).map(LY)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => !kJ(e)).map(LY)), e.dependencies && (t.dependencies = mJ(e.dependencies, LY)), t;
|
|
30269
30296
|
}
|
|
30270
30297
|
//#endregion
|
|
30271
30298
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
30272
|
-
function
|
|
30273
|
-
let n =
|
|
30299
|
+
function RY(e, t = "") {
|
|
30300
|
+
let n = FY(LY(hJ(SJ(e)))), r = /* @__PURE__ */ new Map();
|
|
30274
30301
|
return {
|
|
30275
|
-
root:
|
|
30302
|
+
root: zY(n, "", !1, r, "", t),
|
|
30276
30303
|
nodeByPath: r,
|
|
30277
30304
|
variantIndices: /* @__PURE__ */ new Map()
|
|
30278
30305
|
};
|
|
30279
30306
|
}
|
|
30280
|
-
function
|
|
30307
|
+
function zY(e, t, n, r, i = "", a = "") {
|
|
30281
30308
|
let o = {
|
|
30282
30309
|
rhfPath: t,
|
|
30283
30310
|
schema: e,
|
|
30284
30311
|
isRequired: n
|
|
30285
30312
|
};
|
|
30286
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
30313
|
+
if (e.gioConfig?.displayIf && (o.displayIf = WY(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = WY(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
30287
30314
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
30288
30315
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
30289
30316
|
let e = t ? `${t}.${o}` : o;
|
|
30290
|
-
i.set(o,
|
|
30317
|
+
i.set(o, zY(s, e, n.has(o), r, t, a));
|
|
30291
30318
|
}
|
|
30292
30319
|
o.properties = i;
|
|
30293
30320
|
}
|
|
30294
30321
|
if (e.items && !Array.isArray(e.items)) {
|
|
30295
30322
|
let n = t ? `${t}.*` : "*";
|
|
30296
|
-
o.items =
|
|
30323
|
+
o.items = zY(e.items, n, !1, r, t, a);
|
|
30297
30324
|
}
|
|
30298
30325
|
let s = e.oneOf ?? e.anyOf;
|
|
30299
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
30300
|
-
let n =
|
|
30326
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = BY(s).map((e) => VY(e, t, a))), e.dependencies) {
|
|
30327
|
+
let n = KY(e.dependencies, t, a);
|
|
30301
30328
|
n.length > 0 && (o.dependencyBranches = n);
|
|
30302
30329
|
}
|
|
30303
30330
|
return r.set(t, o), o;
|
|
30304
30331
|
}
|
|
30305
|
-
function
|
|
30332
|
+
function BY(e) {
|
|
30306
30333
|
let t = /* @__PURE__ */ new Set();
|
|
30307
30334
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
30308
30335
|
}
|
|
30309
|
-
function
|
|
30336
|
+
function VY(e, t, n) {
|
|
30310
30337
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
30311
30338
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
30312
|
-
let e =
|
|
30339
|
+
let e = HY(s);
|
|
30313
30340
|
e && a.push({
|
|
30314
30341
|
key: o,
|
|
30315
30342
|
value: e.value
|
|
30316
30343
|
});
|
|
30317
30344
|
let c = t ? `${t}.${o}` : o;
|
|
30318
|
-
i.set(o,
|
|
30345
|
+
i.set(o, UY(s, c, r.has(o), t, n));
|
|
30319
30346
|
}
|
|
30320
30347
|
let o;
|
|
30321
30348
|
if (e.dependencies) {
|
|
30322
|
-
let r =
|
|
30349
|
+
let r = KY(e.dependencies, t, n);
|
|
30323
30350
|
r.length > 0 && (o = r);
|
|
30324
30351
|
}
|
|
30325
30352
|
return {
|
|
@@ -30329,21 +30356,21 @@ function LY(e, t, n) {
|
|
|
30329
30356
|
raw: e
|
|
30330
30357
|
};
|
|
30331
30358
|
}
|
|
30332
|
-
function
|
|
30359
|
+
function HY(e) {
|
|
30333
30360
|
if (e.const !== void 0) return { value: e.const };
|
|
30334
30361
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
30335
30362
|
}
|
|
30336
|
-
function
|
|
30337
|
-
return
|
|
30363
|
+
function UY(e, t, n, r, i) {
|
|
30364
|
+
return zY(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
30338
30365
|
}
|
|
30339
|
-
function
|
|
30366
|
+
function WY(e, t, n) {
|
|
30340
30367
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
30341
30368
|
for (let [a, o] of Object.entries(e.$eq)) {
|
|
30342
30369
|
if (a.startsWith("context.")) {
|
|
30343
30370
|
i.set(a.slice(8), o);
|
|
30344
30371
|
continue;
|
|
30345
30372
|
}
|
|
30346
|
-
let e =
|
|
30373
|
+
let e = GY(a, t, n);
|
|
30347
30374
|
if (e === null) {
|
|
30348
30375
|
console.warn(`[JsonSchemaForm] gioConfig path "${a}" is unsupported (expected value.X / ./X / ../X / context.X).`);
|
|
30349
30376
|
continue;
|
|
@@ -30355,7 +30382,7 @@ function BY(e, t, n) {
|
|
|
30355
30382
|
$eqContext: i
|
|
30356
30383
|
} : { $eq: r };
|
|
30357
30384
|
}
|
|
30358
|
-
function
|
|
30385
|
+
function GY(e, t, n) {
|
|
30359
30386
|
let r = null;
|
|
30360
30387
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
30361
30388
|
else if (e.startsWith("./")) {
|
|
@@ -30369,24 +30396,24 @@ function VY(e, t, n) {
|
|
|
30369
30396
|
}
|
|
30370
30397
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
30371
30398
|
}
|
|
30372
|
-
function
|
|
30399
|
+
function KY(e, t, n) {
|
|
30373
30400
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
30374
|
-
let i =
|
|
30401
|
+
let i = qY(e, r);
|
|
30375
30402
|
if (!i) return [];
|
|
30376
30403
|
let a = t ? `${t}.${e}` : e;
|
|
30377
|
-
return i.map((r) =>
|
|
30404
|
+
return i.map((r) => JY(r, e, a, t, n));
|
|
30378
30405
|
});
|
|
30379
30406
|
}
|
|
30380
|
-
function
|
|
30407
|
+
function qY(e, t) {
|
|
30381
30408
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
30382
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
30409
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && HY(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);
|
|
30383
30410
|
}
|
|
30384
|
-
function
|
|
30385
|
-
let a =
|
|
30411
|
+
function JY(e, t, n, r, i) {
|
|
30412
|
+
let a = HY(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
30386
30413
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
30387
30414
|
if (n === t) continue;
|
|
30388
30415
|
let e = r ? `${r}.${n}` : n;
|
|
30389
|
-
s.set(n,
|
|
30416
|
+
s.set(n, UY(a, e, o.has(n), r, i));
|
|
30390
30417
|
}
|
|
30391
30418
|
let c = i ? `${i}.${n}` : n;
|
|
30392
30419
|
return {
|
|
@@ -30397,12 +30424,12 @@ function WY(e, t, n, r, i) {
|
|
|
30397
30424
|
}
|
|
30398
30425
|
//#endregion
|
|
30399
30426
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
30400
|
-
function
|
|
30427
|
+
function YY({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
30401
30428
|
let a = Ge(() => {
|
|
30402
30429
|
try {
|
|
30403
30430
|
return {
|
|
30404
30431
|
ok: !0,
|
|
30405
|
-
value:
|
|
30432
|
+
value: RY(e, n)
|
|
30406
30433
|
};
|
|
30407
30434
|
} catch (e) {
|
|
30408
30435
|
return {
|
|
@@ -30431,7 +30458,7 @@ function GY({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
30431
30458
|
]);
|
|
30432
30459
|
return o.ok ? /* @__PURE__ */ W(A.Provider, {
|
|
30433
30460
|
value: o.contextValue,
|
|
30434
|
-
children: /* @__PURE__ */ W(
|
|
30461
|
+
children: /* @__PURE__ */ W(jY, { node: o.contextValue.index.root })
|
|
30435
30462
|
}) : /* @__PURE__ */ G("p", {
|
|
30436
30463
|
role: "alert",
|
|
30437
30464
|
className: "text-sm text-destructive",
|
|
@@ -30440,7 +30467,7 @@ function GY({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
30440
30467
|
}
|
|
30441
30468
|
//#endregion
|
|
30442
30469
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
30443
|
-
function
|
|
30470
|
+
function XY(...e) {
|
|
30444
30471
|
return async (t, n, r) => {
|
|
30445
30472
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
30446
30473
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -30455,7 +30482,7 @@ function KY(...e) {
|
|
|
30455
30482
|
}
|
|
30456
30483
|
//#endregion
|
|
30457
30484
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
30458
|
-
var
|
|
30485
|
+
var ZY = /* @__PURE__ */ K(((e) => {
|
|
30459
30486
|
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;
|
|
30460
30487
|
var t = class {};
|
|
30461
30488
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -30560,9 +30587,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
30560
30587
|
return new r(e.toString());
|
|
30561
30588
|
}
|
|
30562
30589
|
e.regexpCode = g;
|
|
30563
|
-
})),
|
|
30590
|
+
})), QY = /* @__PURE__ */ K(((e) => {
|
|
30564
30591
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
30565
|
-
var t =
|
|
30592
|
+
var t = ZY(), n = class extends Error {
|
|
30566
30593
|
constructor(e) {
|
|
30567
30594
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
30568
30595
|
}
|
|
@@ -30671,9 +30698,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
30671
30698
|
return c;
|
|
30672
30699
|
}
|
|
30673
30700
|
};
|
|
30674
|
-
})),
|
|
30701
|
+
})), $Y = /* @__PURE__ */ K(((e) => {
|
|
30675
30702
|
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;
|
|
30676
|
-
var t =
|
|
30703
|
+
var t = ZY(), n = QY(), r = ZY();
|
|
30677
30704
|
Object.defineProperty(e, "_", {
|
|
30678
30705
|
enumerable: !0,
|
|
30679
30706
|
get: function() {
|
|
@@ -30715,7 +30742,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
30715
30742
|
return r.Name;
|
|
30716
30743
|
}
|
|
30717
30744
|
});
|
|
30718
|
-
var i =
|
|
30745
|
+
var i = QY();
|
|
30719
30746
|
Object.defineProperty(e, "Scope", {
|
|
30720
30747
|
enumerable: !0,
|
|
30721
30748
|
get: function() {
|
|
@@ -31186,9 +31213,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31186
31213
|
function L(e) {
|
|
31187
31214
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
31188
31215
|
}
|
|
31189
|
-
})),
|
|
31216
|
+
})), eX = /* @__PURE__ */ K(((e) => {
|
|
31190
31217
|
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;
|
|
31191
|
-
var t =
|
|
31218
|
+
var t = $Y(), n = ZY();
|
|
31192
31219
|
function r(e) {
|
|
31193
31220
|
let t = {};
|
|
31194
31221
|
for (let n of e) t[n] = !0;
|
|
@@ -31311,9 +31338,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31311
31338
|
}
|
|
31312
31339
|
}
|
|
31313
31340
|
e.checkStrictMode = x;
|
|
31314
|
-
})),
|
|
31341
|
+
})), tX = /* @__PURE__ */ K(((e) => {
|
|
31315
31342
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
31316
|
-
var t =
|
|
31343
|
+
var t = $Y();
|
|
31317
31344
|
e.default = {
|
|
31318
31345
|
data: new t.Name("data"),
|
|
31319
31346
|
valCxt: new t.Name("valCxt"),
|
|
@@ -31332,9 +31359,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31332
31359
|
jsonLen: new t.Name("jsonLen"),
|
|
31333
31360
|
jsonPart: new t.Name("jsonPart")
|
|
31334
31361
|
};
|
|
31335
|
-
})),
|
|
31362
|
+
})), nX = /* @__PURE__ */ K(((e) => {
|
|
31336
31363
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
31337
|
-
var t =
|
|
31364
|
+
var t = $Y(), n = eX(), r = tX();
|
|
31338
31365
|
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)` };
|
|
31339
31366
|
function i(n, r = e.keywordError, i, a) {
|
|
31340
31367
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -31396,9 +31423,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31396
31423
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
31397
31424
|
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]);
|
|
31398
31425
|
}
|
|
31399
|
-
})),
|
|
31426
|
+
})), rX = /* @__PURE__ */ K(((e) => {
|
|
31400
31427
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
31401
|
-
var t =
|
|
31428
|
+
var t = nX(), n = $Y(), r = tX(), i = { message: "boolean schema is false" };
|
|
31402
31429
|
function a(e) {
|
|
31403
31430
|
let { gen: t, schema: i, validateName: a } = e;
|
|
31404
31431
|
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));
|
|
@@ -31422,7 +31449,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31422
31449
|
};
|
|
31423
31450
|
(0, t.reportError)(o, i, void 0, n);
|
|
31424
31451
|
}
|
|
31425
|
-
})),
|
|
31452
|
+
})), iX = /* @__PURE__ */ K(((e) => {
|
|
31426
31453
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
31427
31454
|
var t = new Set([
|
|
31428
31455
|
"string",
|
|
@@ -31476,7 +31503,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31476
31503
|
};
|
|
31477
31504
|
}
|
|
31478
31505
|
e.getRules = r;
|
|
31479
|
-
})),
|
|
31506
|
+
})), aX = /* @__PURE__ */ K(((e) => {
|
|
31480
31507
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
31481
31508
|
function t({ schema: e, self: t }, r) {
|
|
31482
31509
|
let i = t.RULES.types[r];
|
|
@@ -31491,9 +31518,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31491
31518
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
31492
31519
|
}
|
|
31493
31520
|
e.shouldUseRule = r;
|
|
31494
|
-
})),
|
|
31521
|
+
})), oX = /* @__PURE__ */ K(((e) => {
|
|
31495
31522
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
31496
|
-
var t =
|
|
31523
|
+
var t = iX(), n = aX(), r = nX(), i = $Y(), a = eX(), o;
|
|
31497
31524
|
(function(e) {
|
|
31498
31525
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
31499
31526
|
})(o || (e.DataType = o = {}));
|
|
@@ -31628,9 +31655,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31628
31655
|
it: e
|
|
31629
31656
|
};
|
|
31630
31657
|
}
|
|
31631
|
-
})),
|
|
31658
|
+
})), sX = /* @__PURE__ */ K(((e) => {
|
|
31632
31659
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
31633
|
-
var t =
|
|
31660
|
+
var t = $Y(), n = eX();
|
|
31634
31661
|
function r(e, t) {
|
|
31635
31662
|
let { properties: n, items: r } = e.schema;
|
|
31636
31663
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -31648,9 +31675,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31648
31675
|
let u = (0, t._)`${l} === undefined`;
|
|
31649
31676
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
31650
31677
|
}
|
|
31651
|
-
})),
|
|
31678
|
+
})), cX = /* @__PURE__ */ K(((e) => {
|
|
31652
31679
|
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;
|
|
31653
|
-
var t =
|
|
31680
|
+
var t = $Y(), n = eX(), r = tX(), i = eX();
|
|
31654
31681
|
function a(e, n) {
|
|
31655
31682
|
let { gen: r, data: i, it: a } = e;
|
|
31656
31683
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -31752,9 +31779,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31752
31779
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
31753
31780
|
}
|
|
31754
31781
|
e.validateUnion = v;
|
|
31755
|
-
})),
|
|
31782
|
+
})), lX = /* @__PURE__ */ K(((e) => {
|
|
31756
31783
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
31757
|
-
var t =
|
|
31784
|
+
var t = $Y(), n = tX(), r = cX(), i = nX();
|
|
31758
31785
|
function a(e, n) {
|
|
31759
31786
|
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);
|
|
31760
31787
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -31833,9 +31860,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31833
31860
|
}
|
|
31834
31861
|
}
|
|
31835
31862
|
e.validateKeywordUsage = f;
|
|
31836
|
-
})),
|
|
31863
|
+
})), uX = /* @__PURE__ */ K(((e) => {
|
|
31837
31864
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
31838
|
-
var t =
|
|
31865
|
+
var t = $Y(), n = eX();
|
|
31839
31866
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
31840
31867
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
31841
31868
|
if (r !== void 0) {
|
|
@@ -31879,7 +31906,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31879
31906
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
31880
31907
|
}
|
|
31881
31908
|
e.extendSubschemaMode = a;
|
|
31882
|
-
})),
|
|
31909
|
+
})), dX = /* @__PURE__ */ K(((e, t) => {
|
|
31883
31910
|
t.exports = function e(t, n) {
|
|
31884
31911
|
if (t === n) return !0;
|
|
31885
31912
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -31903,7 +31930,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31903
31930
|
}
|
|
31904
31931
|
return t !== t && n !== n;
|
|
31905
31932
|
};
|
|
31906
|
-
})),
|
|
31933
|
+
})), fX = /* @__PURE__ */ K(((e, t) => {
|
|
31907
31934
|
var n = t.exports = function(e, t, n) {
|
|
31908
31935
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
31909
31936
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -31966,9 +31993,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
31966
31993
|
function i(e) {
|
|
31967
31994
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
31968
31995
|
}
|
|
31969
|
-
})),
|
|
31996
|
+
})), pX = /* @__PURE__ */ K(((e) => {
|
|
31970
31997
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
31971
|
-
var t =
|
|
31998
|
+
var t = eX(), n = dX(), r = fX(), i = new Set([
|
|
31972
31999
|
"type",
|
|
31973
32000
|
"format",
|
|
31974
32001
|
"pattern",
|
|
@@ -32057,9 +32084,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
32057
32084
|
}
|
|
32058
32085
|
}
|
|
32059
32086
|
e.getSchemaRefs = h;
|
|
32060
|
-
})),
|
|
32087
|
+
})), mX = /* @__PURE__ */ K(((e) => {
|
|
32061
32088
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
32062
|
-
var t =
|
|
32089
|
+
var t = rX(), n = oX(), r = aX(), i = oX(), a = sX(), o = lX(), s = uX(), c = $Y(), l = tX(), u = pX(), d = eX(), f = nX();
|
|
32063
32090
|
function p(e) {
|
|
32064
32091
|
if (S(e) && (w(e), x(e))) {
|
|
32065
32092
|
_(e);
|
|
@@ -32349,23 +32376,23 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
32349
32376
|
}
|
|
32350
32377
|
}
|
|
32351
32378
|
e.getData = oe;
|
|
32352
|
-
})),
|
|
32379
|
+
})), hX = /* @__PURE__ */ K(((e) => {
|
|
32353
32380
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
32354
32381
|
constructor(e) {
|
|
32355
32382
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
32356
32383
|
}
|
|
32357
32384
|
};
|
|
32358
|
-
})),
|
|
32385
|
+
})), gX = /* @__PURE__ */ K(((e) => {
|
|
32359
32386
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32360
|
-
var t =
|
|
32387
|
+
var t = pX();
|
|
32361
32388
|
e.default = class extends Error {
|
|
32362
32389
|
constructor(e, n, r, i) {
|
|
32363
32390
|
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));
|
|
32364
32391
|
}
|
|
32365
32392
|
};
|
|
32366
|
-
})),
|
|
32393
|
+
})), _X = /* @__PURE__ */ K(((e) => {
|
|
32367
32394
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
32368
|
-
var t =
|
|
32395
|
+
var t = $Y(), n = hX(), r = tX(), i = pX(), a = eX(), o = mX(), s = class {
|
|
32369
32396
|
constructor(e) {
|
|
32370
32397
|
this.refs = {}, this.dynamicAnchors = {};
|
|
32371
32398
|
let t;
|
|
@@ -32524,27 +32551,27 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
32524
32551
|
baseId: t
|
|
32525
32552
|
}), o.schema !== o.root.schema) return o;
|
|
32526
32553
|
}
|
|
32527
|
-
})),
|
|
32528
|
-
$id: () =>
|
|
32554
|
+
})), vX = /* @__PURE__ */ ft({
|
|
32555
|
+
$id: () => yX,
|
|
32529
32556
|
additionalProperties: () => !1,
|
|
32530
|
-
default: () =>
|
|
32531
|
-
description: () =>
|
|
32532
|
-
properties: () =>
|
|
32533
|
-
required: () =>
|
|
32534
|
-
type: () =>
|
|
32535
|
-
}),
|
|
32536
|
-
|
|
32557
|
+
default: () => wX,
|
|
32558
|
+
description: () => bX,
|
|
32559
|
+
properties: () => CX,
|
|
32560
|
+
required: () => SX,
|
|
32561
|
+
type: () => xX
|
|
32562
|
+
}), yX, bX, xX, SX, CX, wX, TX = dt((() => {
|
|
32563
|
+
yX = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", bX = "Meta-schema for $data reference (JSON AnySchema extension proposal)", xX = "object", SX = ["$data"], CX = { $data: {
|
|
32537
32564
|
type: "string",
|
|
32538
32565
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
32539
|
-
} },
|
|
32540
|
-
$id:
|
|
32541
|
-
description:
|
|
32542
|
-
type:
|
|
32543
|
-
required:
|
|
32544
|
-
properties:
|
|
32566
|
+
} }, wX = {
|
|
32567
|
+
$id: yX,
|
|
32568
|
+
description: bX,
|
|
32569
|
+
type: xX,
|
|
32570
|
+
required: SX,
|
|
32571
|
+
properties: CX,
|
|
32545
32572
|
additionalProperties: !1
|
|
32546
32573
|
};
|
|
32547
|
-
})),
|
|
32574
|
+
})), EX = /* @__PURE__ */ K(((e, t) => {
|
|
32548
32575
|
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);
|
|
32549
32576
|
{
|
|
32550
32577
|
let e = "0123456789ABCDEF";
|
|
@@ -32893,8 +32920,8 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
32893
32920
|
normalizeIPv6: b,
|
|
32894
32921
|
stringArrayToHexStripped: f
|
|
32895
32922
|
};
|
|
32896
|
-
})),
|
|
32897
|
-
var { isUUID: n } =
|
|
32923
|
+
})), DX = /* @__PURE__ */ K(((e, t) => {
|
|
32924
|
+
var { isUUID: n } = EX(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
32898
32925
|
"http",
|
|
32899
32926
|
"https",
|
|
32900
32927
|
"ws",
|
|
@@ -32999,8 +33026,8 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
32999
33026
|
isValidSchemeName: a,
|
|
33000
33027
|
getSchemeHandler: y
|
|
33001
33028
|
};
|
|
33002
|
-
})),
|
|
33003
|
-
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 } =
|
|
33029
|
+
})), OX = /* @__PURE__ */ K(((e, t) => {
|
|
33030
|
+
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 } = EX(), { SCHEMES: m, getSchemeHandler: h } = DX(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
33004
33031
|
function v(e) {
|
|
33005
33032
|
let t = unescape(String(e));
|
|
33006
33033
|
if (!g.test(t)) throw TypeError(_);
|
|
@@ -33169,20 +33196,20 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33169
33196
|
parse: N
|
|
33170
33197
|
};
|
|
33171
33198
|
t.exports = L, t.exports.default = L, t.exports.fastUri = L;
|
|
33172
|
-
})),
|
|
33199
|
+
})), kX = /* @__PURE__ */ K(((e) => {
|
|
33173
33200
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33174
|
-
var t =
|
|
33201
|
+
var t = OX();
|
|
33175
33202
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
33176
|
-
})),
|
|
33203
|
+
})), AX = /* @__PURE__ */ K(((e) => {
|
|
33177
33204
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
33178
|
-
var t =
|
|
33205
|
+
var t = mX();
|
|
33179
33206
|
Object.defineProperty(e, "KeywordCxt", {
|
|
33180
33207
|
enumerable: !0,
|
|
33181
33208
|
get: function() {
|
|
33182
33209
|
return t.KeywordCxt;
|
|
33183
33210
|
}
|
|
33184
33211
|
});
|
|
33185
|
-
var n =
|
|
33212
|
+
var n = $Y();
|
|
33186
33213
|
Object.defineProperty(e, "_", {
|
|
33187
33214
|
enumerable: !0,
|
|
33188
33215
|
get: function() {
|
|
@@ -33214,7 +33241,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33214
33241
|
return n.CodeGen;
|
|
33215
33242
|
}
|
|
33216
33243
|
});
|
|
33217
|
-
var r =
|
|
33244
|
+
var r = hX(), i = gX(), a = iX(), o = _X(), s = $Y(), c = pX(), l = oX(), u = eX(), d = (TX(), ht(vX).default), f = kX(), p = (e, t) => new RegExp(e, t);
|
|
33218
33245
|
p.code = "new RegExp";
|
|
33219
33246
|
var m = [
|
|
33220
33247
|
"removeAdditional",
|
|
@@ -33600,16 +33627,16 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33600
33627
|
function F(e) {
|
|
33601
33628
|
return { anyOf: [e, P] };
|
|
33602
33629
|
}
|
|
33603
|
-
})),
|
|
33630
|
+
})), jX = /* @__PURE__ */ K(((e) => {
|
|
33604
33631
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
33605
33632
|
keyword: "id",
|
|
33606
33633
|
code() {
|
|
33607
33634
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
33608
33635
|
}
|
|
33609
33636
|
};
|
|
33610
|
-
})),
|
|
33637
|
+
})), MX = /* @__PURE__ */ K(((e) => {
|
|
33611
33638
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
33612
|
-
var t =
|
|
33639
|
+
var t = gX(), n = cX(), r = $Y(), i = tX(), a = _X(), o = eX(), s = {
|
|
33613
33640
|
keyword: "$ref",
|
|
33614
33641
|
schemaType: "string",
|
|
33615
33642
|
code(e) {
|
|
@@ -33682,9 +33709,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33682
33709
|
}
|
|
33683
33710
|
}
|
|
33684
33711
|
e.callRef = l, e.default = s;
|
|
33685
|
-
})),
|
|
33712
|
+
})), NX = /* @__PURE__ */ K(((e) => {
|
|
33686
33713
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33687
|
-
var t =
|
|
33714
|
+
var t = jX(), n = MX();
|
|
33688
33715
|
e.default = [
|
|
33689
33716
|
"$schema",
|
|
33690
33717
|
"$id",
|
|
@@ -33695,9 +33722,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33695
33722
|
t.default,
|
|
33696
33723
|
n.default
|
|
33697
33724
|
];
|
|
33698
|
-
})),
|
|
33725
|
+
})), PX = /* @__PURE__ */ K(((e) => {
|
|
33699
33726
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33700
|
-
var t =
|
|
33727
|
+
var t = $Y(), n = t.operators, r = {
|
|
33701
33728
|
maximum: {
|
|
33702
33729
|
okStr: "<=",
|
|
33703
33730
|
ok: n.LTE,
|
|
@@ -33733,9 +33760,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33733
33760
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
33734
33761
|
}
|
|
33735
33762
|
};
|
|
33736
|
-
})),
|
|
33763
|
+
})), FX = /* @__PURE__ */ K(((e) => {
|
|
33737
33764
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33738
|
-
var t =
|
|
33765
|
+
var t = $Y();
|
|
33739
33766
|
e.default = {
|
|
33740
33767
|
keyword: "multipleOf",
|
|
33741
33768
|
type: "number",
|
|
@@ -33750,7 +33777,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33750
33777
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
33751
33778
|
}
|
|
33752
33779
|
};
|
|
33753
|
-
})),
|
|
33780
|
+
})), IX = /* @__PURE__ */ K(((e) => {
|
|
33754
33781
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33755
33782
|
function t(e) {
|
|
33756
33783
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -33758,9 +33785,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33758
33785
|
return n;
|
|
33759
33786
|
}
|
|
33760
33787
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
33761
|
-
})),
|
|
33788
|
+
})), LX = /* @__PURE__ */ K(((e) => {
|
|
33762
33789
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33763
|
-
var t =
|
|
33790
|
+
var t = $Y(), n = eX(), r = IX();
|
|
33764
33791
|
e.default = {
|
|
33765
33792
|
keyword: ["maxLength", "minLength"],
|
|
33766
33793
|
type: "string",
|
|
@@ -33778,9 +33805,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33778
33805
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
33779
33806
|
}
|
|
33780
33807
|
};
|
|
33781
|
-
})),
|
|
33808
|
+
})), RX = /* @__PURE__ */ K(((e) => {
|
|
33782
33809
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33783
|
-
var t =
|
|
33810
|
+
var t = cX(), n = eX(), r = $Y();
|
|
33784
33811
|
e.default = {
|
|
33785
33812
|
keyword: "pattern",
|
|
33786
33813
|
type: "string",
|
|
@@ -33801,9 +33828,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33801
33828
|
}
|
|
33802
33829
|
}
|
|
33803
33830
|
};
|
|
33804
|
-
})),
|
|
33831
|
+
})), zX = /* @__PURE__ */ K(((e) => {
|
|
33805
33832
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33806
|
-
var t =
|
|
33833
|
+
var t = $Y();
|
|
33807
33834
|
e.default = {
|
|
33808
33835
|
keyword: ["maxProperties", "minProperties"],
|
|
33809
33836
|
type: "object",
|
|
@@ -33821,9 +33848,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33821
33848
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
33822
33849
|
}
|
|
33823
33850
|
};
|
|
33824
|
-
})),
|
|
33851
|
+
})), BX = /* @__PURE__ */ K(((e) => {
|
|
33825
33852
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33826
|
-
var t =
|
|
33853
|
+
var t = cX(), n = $Y(), r = eX();
|
|
33827
33854
|
e.default = {
|
|
33828
33855
|
keyword: "required",
|
|
33829
33856
|
type: "object",
|
|
@@ -33869,9 +33896,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33869
33896
|
}
|
|
33870
33897
|
}
|
|
33871
33898
|
};
|
|
33872
|
-
})),
|
|
33899
|
+
})), VX = /* @__PURE__ */ K(((e) => {
|
|
33873
33900
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33874
|
-
var t =
|
|
33901
|
+
var t = $Y();
|
|
33875
33902
|
e.default = {
|
|
33876
33903
|
keyword: ["maxItems", "minItems"],
|
|
33877
33904
|
type: "array",
|
|
@@ -33889,13 +33916,13 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33889
33916
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
33890
33917
|
}
|
|
33891
33918
|
};
|
|
33892
|
-
})),
|
|
33919
|
+
})), HX = /* @__PURE__ */ K(((e) => {
|
|
33893
33920
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33894
|
-
var t =
|
|
33921
|
+
var t = dX();
|
|
33895
33922
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
33896
|
-
})),
|
|
33923
|
+
})), UX = /* @__PURE__ */ K(((e) => {
|
|
33897
33924
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33898
|
-
var t =
|
|
33925
|
+
var t = oX(), n = $Y(), r = eX(), i = HX();
|
|
33899
33926
|
e.default = {
|
|
33900
33927
|
keyword: "uniqueItems",
|
|
33901
33928
|
type: "array",
|
|
@@ -33936,9 +33963,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33936
33963
|
}
|
|
33937
33964
|
}
|
|
33938
33965
|
};
|
|
33939
|
-
})),
|
|
33966
|
+
})), WX = /* @__PURE__ */ K(((e) => {
|
|
33940
33967
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33941
|
-
var t =
|
|
33968
|
+
var t = $Y(), n = eX(), r = HX();
|
|
33942
33969
|
e.default = {
|
|
33943
33970
|
keyword: "const",
|
|
33944
33971
|
$data: !0,
|
|
@@ -33951,9 +33978,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33951
33978
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
33952
33979
|
}
|
|
33953
33980
|
};
|
|
33954
|
-
})),
|
|
33981
|
+
})), GX = /* @__PURE__ */ K(((e) => {
|
|
33955
33982
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33956
|
-
var t =
|
|
33983
|
+
var t = $Y(), n = eX(), r = HX();
|
|
33957
33984
|
e.default = {
|
|
33958
33985
|
keyword: "enum",
|
|
33959
33986
|
schemaType: "array",
|
|
@@ -33983,9 +34010,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
33983
34010
|
}
|
|
33984
34011
|
}
|
|
33985
34012
|
};
|
|
33986
|
-
})),
|
|
34013
|
+
})), KX = /* @__PURE__ */ K(((e) => {
|
|
33987
34014
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33988
|
-
var t =
|
|
34015
|
+
var t = PX(), n = FX(), r = LX(), i = RX(), a = zX(), o = BX(), s = VX(), c = UX(), l = WX(), u = GX();
|
|
33989
34016
|
e.default = [
|
|
33990
34017
|
t.default,
|
|
33991
34018
|
n.default,
|
|
@@ -34006,9 +34033,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34006
34033
|
l.default,
|
|
34007
34034
|
u.default
|
|
34008
34035
|
];
|
|
34009
|
-
})),
|
|
34036
|
+
})), qX = /* @__PURE__ */ K(((e) => {
|
|
34010
34037
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
34011
|
-
var t =
|
|
34038
|
+
var t = $Y(), n = eX(), r = {
|
|
34012
34039
|
keyword: "additionalItems",
|
|
34013
34040
|
type: "array",
|
|
34014
34041
|
schemaType: ["boolean", "object"],
|
|
@@ -34046,9 +34073,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34046
34073
|
}
|
|
34047
34074
|
}
|
|
34048
34075
|
e.validateAdditionalItems = i, e.default = r;
|
|
34049
|
-
})),
|
|
34076
|
+
})), JX = /* @__PURE__ */ K(((e) => {
|
|
34050
34077
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
34051
|
-
var t =
|
|
34078
|
+
var t = $Y(), n = eX(), r = cX(), i = {
|
|
34052
34079
|
keyword: "items",
|
|
34053
34080
|
type: "array",
|
|
34054
34081
|
schemaType: [
|
|
@@ -34083,9 +34110,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34083
34110
|
}
|
|
34084
34111
|
}
|
|
34085
34112
|
e.validateTuple = a, e.default = i;
|
|
34086
|
-
})),
|
|
34113
|
+
})), YX = /* @__PURE__ */ K(((e) => {
|
|
34087
34114
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34088
|
-
var t =
|
|
34115
|
+
var t = JX();
|
|
34089
34116
|
e.default = {
|
|
34090
34117
|
keyword: "prefixItems",
|
|
34091
34118
|
type: "array",
|
|
@@ -34093,9 +34120,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34093
34120
|
before: "uniqueItems",
|
|
34094
34121
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
34095
34122
|
};
|
|
34096
|
-
})),
|
|
34123
|
+
})), XX = /* @__PURE__ */ K(((e) => {
|
|
34097
34124
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34098
|
-
var t =
|
|
34125
|
+
var t = $Y(), n = eX(), r = cX(), i = qX();
|
|
34099
34126
|
e.default = {
|
|
34100
34127
|
keyword: "items",
|
|
34101
34128
|
type: "array",
|
|
@@ -34110,9 +34137,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34110
34137
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
34111
34138
|
}
|
|
34112
34139
|
};
|
|
34113
|
-
})),
|
|
34140
|
+
})), ZX = /* @__PURE__ */ K(((e) => {
|
|
34114
34141
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34115
|
-
var t =
|
|
34142
|
+
var t = $Y(), n = eX();
|
|
34116
34143
|
e.default = {
|
|
34117
34144
|
keyword: "contains",
|
|
34118
34145
|
type: "array",
|
|
@@ -34165,9 +34192,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34165
34192
|
}
|
|
34166
34193
|
}
|
|
34167
34194
|
};
|
|
34168
|
-
})),
|
|
34195
|
+
})), QX = /* @__PURE__ */ K(((e) => {
|
|
34169
34196
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
34170
|
-
var t =
|
|
34197
|
+
var t = $Y(), n = eX(), r = cX();
|
|
34171
34198
|
e.error = {
|
|
34172
34199
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
34173
34200
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -34226,9 +34253,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34226
34253
|
}, () => i.var(c, !0)), e.ok(c));
|
|
34227
34254
|
}
|
|
34228
34255
|
e.validateSchemaDeps = s, e.default = i;
|
|
34229
|
-
})),
|
|
34256
|
+
})), $X = /* @__PURE__ */ K(((e) => {
|
|
34230
34257
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34231
|
-
var t =
|
|
34258
|
+
var t = $Y(), n = eX();
|
|
34232
34259
|
e.default = {
|
|
34233
34260
|
keyword: "propertyNames",
|
|
34234
34261
|
type: "object",
|
|
@@ -34254,9 +34281,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34254
34281
|
}), e.ok(s);
|
|
34255
34282
|
}
|
|
34256
34283
|
};
|
|
34257
|
-
})),
|
|
34284
|
+
})), eZ = /* @__PURE__ */ K(((e) => {
|
|
34258
34285
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34259
|
-
var t =
|
|
34286
|
+
var t = cX(), n = $Y(), r = tX(), i = eX();
|
|
34260
34287
|
e.default = {
|
|
34261
34288
|
keyword: "additionalProperties",
|
|
34262
34289
|
type: ["object"],
|
|
@@ -34321,9 +34348,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34321
34348
|
}
|
|
34322
34349
|
}
|
|
34323
34350
|
};
|
|
34324
|
-
})),
|
|
34351
|
+
})), tZ = /* @__PURE__ */ K(((e) => {
|
|
34325
34352
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34326
|
-
var t =
|
|
34353
|
+
var t = mX(), n = cX(), r = eX(), i = eZ();
|
|
34327
34354
|
e.default = {
|
|
34328
34355
|
keyword: "properties",
|
|
34329
34356
|
type: "object",
|
|
@@ -34350,9 +34377,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34350
34377
|
}
|
|
34351
34378
|
}
|
|
34352
34379
|
};
|
|
34353
|
-
})),
|
|
34380
|
+
})), nZ = /* @__PURE__ */ K(((e) => {
|
|
34354
34381
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34355
|
-
var t =
|
|
34382
|
+
var t = cX(), n = $Y(), r = eX(), i = eX();
|
|
34356
34383
|
e.default = {
|
|
34357
34384
|
keyword: "patternProperties",
|
|
34358
34385
|
type: "object",
|
|
@@ -34385,9 +34412,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34385
34412
|
}
|
|
34386
34413
|
}
|
|
34387
34414
|
};
|
|
34388
|
-
})),
|
|
34415
|
+
})), rZ = /* @__PURE__ */ K(((e) => {
|
|
34389
34416
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34390
|
-
var t =
|
|
34417
|
+
var t = eX();
|
|
34391
34418
|
e.default = {
|
|
34392
34419
|
keyword: "not",
|
|
34393
34420
|
schemaType: ["object", "boolean"],
|
|
@@ -34408,17 +34435,17 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34408
34435
|
},
|
|
34409
34436
|
error: { message: "must NOT be valid" }
|
|
34410
34437
|
};
|
|
34411
|
-
})),
|
|
34438
|
+
})), iZ = /* @__PURE__ */ K(((e) => {
|
|
34412
34439
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34413
34440
|
keyword: "anyOf",
|
|
34414
34441
|
schemaType: "array",
|
|
34415
34442
|
trackErrors: !0,
|
|
34416
|
-
code:
|
|
34443
|
+
code: cX().validateUnion,
|
|
34417
34444
|
error: { message: "must match a schema in anyOf" }
|
|
34418
34445
|
};
|
|
34419
|
-
})),
|
|
34446
|
+
})), aZ = /* @__PURE__ */ K(((e) => {
|
|
34420
34447
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34421
|
-
var t =
|
|
34448
|
+
var t = $Y(), n = eX();
|
|
34422
34449
|
e.default = {
|
|
34423
34450
|
keyword: "oneOf",
|
|
34424
34451
|
schemaType: "array",
|
|
@@ -34448,9 +34475,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34448
34475
|
}
|
|
34449
34476
|
}
|
|
34450
34477
|
};
|
|
34451
|
-
})),
|
|
34478
|
+
})), oZ = /* @__PURE__ */ K(((e) => {
|
|
34452
34479
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34453
|
-
var t =
|
|
34480
|
+
var t = eX();
|
|
34454
34481
|
e.default = {
|
|
34455
34482
|
keyword: "allOf",
|
|
34456
34483
|
schemaType: "array",
|
|
@@ -34469,9 +34496,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34469
34496
|
});
|
|
34470
34497
|
}
|
|
34471
34498
|
};
|
|
34472
|
-
})),
|
|
34499
|
+
})), sZ = /* @__PURE__ */ K(((e) => {
|
|
34473
34500
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34474
|
-
var t =
|
|
34501
|
+
var t = $Y(), n = eX(), r = {
|
|
34475
34502
|
keyword: "if",
|
|
34476
34503
|
schemaType: ["object", "boolean"],
|
|
34477
34504
|
trackErrors: !0,
|
|
@@ -34512,9 +34539,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34512
34539
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
34513
34540
|
}
|
|
34514
34541
|
e.default = r;
|
|
34515
|
-
})),
|
|
34542
|
+
})), cZ = /* @__PURE__ */ K(((e) => {
|
|
34516
34543
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34517
|
-
var t =
|
|
34544
|
+
var t = eX();
|
|
34518
34545
|
e.default = {
|
|
34519
34546
|
keyword: ["then", "else"],
|
|
34520
34547
|
schemaType: ["object", "boolean"],
|
|
@@ -34522,9 +34549,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34522
34549
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
34523
34550
|
}
|
|
34524
34551
|
};
|
|
34525
|
-
})),
|
|
34552
|
+
})), lZ = /* @__PURE__ */ K(((e) => {
|
|
34526
34553
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34527
|
-
var t =
|
|
34554
|
+
var t = qX(), n = YX(), r = JX(), i = XX(), a = ZX(), o = QX(), s = $X(), c = eZ(), l = tZ(), u = nZ(), d = rZ(), f = iZ(), p = aZ(), m = oZ(), h = sZ(), g = cZ();
|
|
34528
34555
|
function _(e = !1) {
|
|
34529
34556
|
let _ = [
|
|
34530
34557
|
d.default,
|
|
@@ -34542,9 +34569,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34542
34569
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
34543
34570
|
}
|
|
34544
34571
|
e.default = _;
|
|
34545
|
-
})),
|
|
34572
|
+
})), uZ = /* @__PURE__ */ K(((e) => {
|
|
34546
34573
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34547
|
-
var t =
|
|
34574
|
+
var t = $Y();
|
|
34548
34575
|
e.default = {
|
|
34549
34576
|
keyword: "format",
|
|
34550
34577
|
type: ["number", "string"],
|
|
@@ -34617,9 +34644,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34617
34644
|
}
|
|
34618
34645
|
}
|
|
34619
34646
|
};
|
|
34620
|
-
})),
|
|
34621
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
34622
|
-
})),
|
|
34647
|
+
})), dZ = /* @__PURE__ */ K(((e) => {
|
|
34648
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [uZ().default];
|
|
34649
|
+
})), fZ = /* @__PURE__ */ K(((e) => {
|
|
34623
34650
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
34624
34651
|
"title",
|
|
34625
34652
|
"description",
|
|
@@ -34633,9 +34660,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34633
34660
|
"contentEncoding",
|
|
34634
34661
|
"contentSchema"
|
|
34635
34662
|
];
|
|
34636
|
-
})),
|
|
34663
|
+
})), pZ = /* @__PURE__ */ K(((e) => {
|
|
34637
34664
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34638
|
-
var t =
|
|
34665
|
+
var t = NX(), n = KX(), r = lZ(), i = dZ(), a = fZ();
|
|
34639
34666
|
e.default = [
|
|
34640
34667
|
t.default,
|
|
34641
34668
|
n.default,
|
|
@@ -34644,15 +34671,15 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34644
34671
|
a.metadataVocabulary,
|
|
34645
34672
|
a.contentVocabulary
|
|
34646
34673
|
];
|
|
34647
|
-
})),
|
|
34674
|
+
})), mZ = /* @__PURE__ */ K(((e) => {
|
|
34648
34675
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
34649
34676
|
var t;
|
|
34650
34677
|
(function(e) {
|
|
34651
34678
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
34652
34679
|
})(t || (e.DiscrError = t = {}));
|
|
34653
|
-
})),
|
|
34680
|
+
})), hZ = /* @__PURE__ */ K(((e) => {
|
|
34654
34681
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34655
|
-
var t =
|
|
34682
|
+
var t = $Y(), n = mZ(), r = _X(), i = gX(), a = eX();
|
|
34656
34683
|
e.default = {
|
|
34657
34684
|
keyword: "discriminator",
|
|
34658
34685
|
type: "object",
|
|
@@ -34720,16 +34747,16 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34720
34747
|
}
|
|
34721
34748
|
}
|
|
34722
34749
|
};
|
|
34723
|
-
})),
|
|
34724
|
-
$id: () =>
|
|
34725
|
-
$schema: () =>
|
|
34726
|
-
default: () =>
|
|
34727
|
-
definitions: () =>
|
|
34728
|
-
properties: () =>
|
|
34729
|
-
title: () =>
|
|
34730
|
-
type: () =>
|
|
34731
|
-
}),
|
|
34732
|
-
|
|
34750
|
+
})), gZ = /* @__PURE__ */ ft({
|
|
34751
|
+
$id: () => vZ,
|
|
34752
|
+
$schema: () => _Z,
|
|
34753
|
+
default: () => CZ,
|
|
34754
|
+
definitions: () => bZ,
|
|
34755
|
+
properties: () => SZ,
|
|
34756
|
+
title: () => yZ,
|
|
34757
|
+
type: () => xZ
|
|
34758
|
+
}), _Z, vZ, yZ, bZ, xZ, SZ, CZ, wZ = dt((() => {
|
|
34759
|
+
_Z = "http://json-schema.org/draft-07/schema#", vZ = "http://json-schema.org/draft-07/schema#", yZ = "Core schema meta-schema", bZ = {
|
|
34733
34760
|
schemaArray: {
|
|
34734
34761
|
type: "array",
|
|
34735
34762
|
minItems: 1,
|
|
@@ -34755,7 +34782,7 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34755
34782
|
uniqueItems: !0,
|
|
34756
34783
|
default: []
|
|
34757
34784
|
}
|
|
34758
|
-
},
|
|
34785
|
+
}, xZ = ["object", "boolean"], SZ = {
|
|
34759
34786
|
$id: {
|
|
34760
34787
|
type: "string",
|
|
34761
34788
|
format: "uri-reference"
|
|
@@ -34854,18 +34881,18 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34854
34881
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
34855
34882
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
34856
34883
|
not: { $ref: "#" }
|
|
34857
|
-
},
|
|
34858
|
-
$schema:
|
|
34859
|
-
$id:
|
|
34860
|
-
title:
|
|
34861
|
-
definitions:
|
|
34862
|
-
type:
|
|
34863
|
-
properties:
|
|
34884
|
+
}, CZ = {
|
|
34885
|
+
$schema: _Z,
|
|
34886
|
+
$id: vZ,
|
|
34887
|
+
title: yZ,
|
|
34888
|
+
definitions: bZ,
|
|
34889
|
+
type: xZ,
|
|
34890
|
+
properties: SZ,
|
|
34864
34891
|
default: !0
|
|
34865
34892
|
};
|
|
34866
|
-
})),
|
|
34893
|
+
})), TZ = /* @__PURE__ */ K(((e, t) => {
|
|
34867
34894
|
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;
|
|
34868
|
-
var n =
|
|
34895
|
+
var n = AX(), r = pZ(), i = hZ(), a = (wZ(), ht(gZ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
34869
34896
|
_addVocabularies() {
|
|
34870
34897
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
34871
34898
|
}
|
|
@@ -34879,14 +34906,14 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34879
34906
|
}
|
|
34880
34907
|
};
|
|
34881
34908
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
34882
|
-
var l =
|
|
34909
|
+
var l = mX();
|
|
34883
34910
|
Object.defineProperty(e, "KeywordCxt", {
|
|
34884
34911
|
enumerable: !0,
|
|
34885
34912
|
get: function() {
|
|
34886
34913
|
return l.KeywordCxt;
|
|
34887
34914
|
}
|
|
34888
34915
|
});
|
|
34889
|
-
var u =
|
|
34916
|
+
var u = $Y();
|
|
34890
34917
|
Object.defineProperty(e, "_", {
|
|
34891
34918
|
enumerable: !0,
|
|
34892
34919
|
get: function() {
|
|
@@ -34918,21 +34945,21 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
34918
34945
|
return u.CodeGen;
|
|
34919
34946
|
}
|
|
34920
34947
|
});
|
|
34921
|
-
var d =
|
|
34948
|
+
var d = hX();
|
|
34922
34949
|
Object.defineProperty(e, "ValidationError", {
|
|
34923
34950
|
enumerable: !0,
|
|
34924
34951
|
get: function() {
|
|
34925
34952
|
return d.default;
|
|
34926
34953
|
}
|
|
34927
34954
|
});
|
|
34928
|
-
var f =
|
|
34955
|
+
var f = gX();
|
|
34929
34956
|
Object.defineProperty(e, "MissingRefError", {
|
|
34930
34957
|
enumerable: !0,
|
|
34931
34958
|
get: function() {
|
|
34932
34959
|
return f.default;
|
|
34933
34960
|
}
|
|
34934
34961
|
});
|
|
34935
|
-
})),
|
|
34962
|
+
})), EZ = /* @__PURE__ */ K(((e) => {
|
|
34936
34963
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
34937
34964
|
function t(e, t) {
|
|
34938
34965
|
return {
|
|
@@ -35084,9 +35111,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
35084
35111
|
return !1;
|
|
35085
35112
|
}
|
|
35086
35113
|
}
|
|
35087
|
-
})),
|
|
35114
|
+
})), DZ = /* @__PURE__ */ K(((e) => {
|
|
35088
35115
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
35089
|
-
var t =
|
|
35116
|
+
var t = TZ(), n = $Y(), r = n.operators, i = {
|
|
35090
35117
|
formatMaximum: {
|
|
35091
35118
|
okStr: "<=",
|
|
35092
35119
|
ok: r.LTE,
|
|
@@ -35146,9 +35173,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
35146
35173
|
},
|
|
35147
35174
|
dependencies: ["format"]
|
|
35148
35175
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
35149
|
-
})),
|
|
35176
|
+
})), OZ = /* @__PURE__ */ K(((e, t) => {
|
|
35150
35177
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35151
|
-
var n =
|
|
35178
|
+
var n = EZ(), r = DZ(), i = $Y(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
35152
35179
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
35153
35180
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
35154
35181
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -35164,9 +35191,9 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
35164
35191
|
for (let r of t) e.addFormat(r, n[r]);
|
|
35165
35192
|
}
|
|
35166
35193
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
35167
|
-
})),
|
|
35194
|
+
})), kZ = /* @__PURE__ */ mt(TZ(), 1), AZ = /* @__PURE__ */ mt(OZ(), 1), jZ = {
|
|
35168
35195
|
required: () => "This field is required",
|
|
35169
|
-
type: (e) => `Should be "${
|
|
35196
|
+
type: (e) => `Should be "${NZ(e)}".`,
|
|
35170
35197
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
35171
35198
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
35172
35199
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -35182,79 +35209,79 @@ var qY = /* @__PURE__ */ K(((e) => {
|
|
|
35182
35209
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
35183
35210
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
35184
35211
|
};
|
|
35185
|
-
function
|
|
35186
|
-
let n =
|
|
35212
|
+
function MZ(e, t) {
|
|
35213
|
+
let n = jZ[e.keyword];
|
|
35187
35214
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
35188
35215
|
}
|
|
35189
|
-
function
|
|
35216
|
+
function NZ(e) {
|
|
35190
35217
|
let t = e.params.type;
|
|
35191
35218
|
return String(Array.isArray(t) ? t[0] : t);
|
|
35192
35219
|
}
|
|
35193
35220
|
//#endregion
|
|
35194
35221
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
35195
|
-
function
|
|
35222
|
+
function PZ(e, t, n) {
|
|
35196
35223
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
35197
35224
|
for (let e of r) {
|
|
35198
35225
|
if (!i) return {
|
|
35199
35226
|
node: void 0,
|
|
35200
35227
|
value: void 0
|
|
35201
35228
|
};
|
|
35202
|
-
i =
|
|
35229
|
+
i = FZ(i, a, n, o), /^\d+$/.test(e) ? (i = i.items, a = Array.isArray(a) ? a[Number(e)] : void 0) : (i = i.properties?.get(e), a = a && typeof a == "object" ? a[e] : void 0), o.push(e);
|
|
35203
35230
|
}
|
|
35204
35231
|
return i ? {
|
|
35205
|
-
node:
|
|
35232
|
+
node: IZ(FZ(i, a, n, r), r),
|
|
35206
35233
|
value: a
|
|
35207
35234
|
} : {
|
|
35208
35235
|
node: void 0,
|
|
35209
35236
|
value: a
|
|
35210
35237
|
};
|
|
35211
35238
|
}
|
|
35212
|
-
function
|
|
35213
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
35239
|
+
function FZ(e, t, n, r) {
|
|
35240
|
+
let i = new Map(e.properties), a = e.variants ? RZ(e.variants, t) : void 0;
|
|
35214
35241
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
35215
35242
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
35216
35243
|
if (o.length > 0) {
|
|
35217
|
-
for (let e of o) if (
|
|
35244
|
+
for (let e of o) if (LZ(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
35218
35245
|
}
|
|
35219
35246
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
35220
35247
|
...e,
|
|
35221
35248
|
properties: i
|
|
35222
35249
|
} : e;
|
|
35223
35250
|
}
|
|
35224
|
-
function
|
|
35251
|
+
function IZ(e, t) {
|
|
35225
35252
|
return e.displayIf ? {
|
|
35226
35253
|
...e,
|
|
35227
35254
|
displayIf: pJ(e.displayIf, t.join("."))
|
|
35228
35255
|
} : e;
|
|
35229
35256
|
}
|
|
35230
|
-
function
|
|
35257
|
+
function LZ(e, t, n) {
|
|
35231
35258
|
for (let [r, i] of e) {
|
|
35232
35259
|
let e = sJ(t, fJ(r, n));
|
|
35233
35260
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
35234
35261
|
}
|
|
35235
35262
|
return !0;
|
|
35236
35263
|
}
|
|
35237
|
-
function
|
|
35264
|
+
function RZ(e, t) {
|
|
35238
35265
|
if (typeof t != "object" || !t) return;
|
|
35239
35266
|
let n = t;
|
|
35240
35267
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
35241
35268
|
}
|
|
35242
35269
|
//#endregion
|
|
35243
35270
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
35244
|
-
var
|
|
35271
|
+
var zZ = new kZ.default({
|
|
35245
35272
|
strict: !1,
|
|
35246
35273
|
allErrors: !0
|
|
35247
35274
|
});
|
|
35248
|
-
(0,
|
|
35249
|
-
for (let e of ["text", "gio-code-editor"])
|
|
35250
|
-
|
|
35275
|
+
(0, AZ.default)(zZ);
|
|
35276
|
+
for (let e of ["text", "gio-code-editor"]) zZ.addFormat(e, !0);
|
|
35277
|
+
zZ.removeKeyword("id"), zZ.addKeyword({
|
|
35251
35278
|
keyword: "id",
|
|
35252
35279
|
validate: () => !0
|
|
35253
35280
|
});
|
|
35254
|
-
function
|
|
35281
|
+
function BZ(e, t = {}) {
|
|
35255
35282
|
let n;
|
|
35256
35283
|
try {
|
|
35257
|
-
n =
|
|
35284
|
+
n = RY(e);
|
|
35258
35285
|
} catch (e) {
|
|
35259
35286
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35260
35287
|
return () => ({
|
|
@@ -35267,7 +35294,7 @@ function IZ(e, t = {}) {
|
|
|
35267
35294
|
}
|
|
35268
35295
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
35269
35296
|
try {
|
|
35270
|
-
a =
|
|
35297
|
+
a = zZ.compile(r);
|
|
35271
35298
|
} catch (e) {
|
|
35272
35299
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35273
35300
|
return () => ({
|
|
@@ -35278,15 +35305,15 @@ function IZ(e, t = {}) {
|
|
|
35278
35305
|
} }
|
|
35279
35306
|
});
|
|
35280
35307
|
}
|
|
35281
|
-
|
|
35308
|
+
zZ.removeSchema(r);
|
|
35282
35309
|
let o = async (e, t, r) => {
|
|
35283
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
35310
|
+
let o = a(e) ? [] : a.errors ?? [], s = qZ(n.root, e, "", i), c = [...o, ...s];
|
|
35284
35311
|
return c.length === 0 ? {
|
|
35285
35312
|
values: e,
|
|
35286
35313
|
errors: {}
|
|
35287
35314
|
} : {
|
|
35288
35315
|
values: {},
|
|
35289
|
-
errors:
|
|
35316
|
+
errors: WZ(UZ(c.filter((t) => !VZ(t, n, e))), r.criteriaMode ?? "firstError")
|
|
35290
35317
|
};
|
|
35291
35318
|
};
|
|
35292
35319
|
if (!t.basePath) return o;
|
|
@@ -35302,12 +35329,12 @@ function IZ(e, t = {}) {
|
|
|
35302
35329
|
};
|
|
35303
35330
|
};
|
|
35304
35331
|
}
|
|
35305
|
-
function
|
|
35306
|
-
let { node: r, value: i } =
|
|
35332
|
+
function VZ(e, t, n) {
|
|
35333
|
+
let { node: r, value: i } = PZ(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(xJ) : []).join("."), n);
|
|
35307
35334
|
if (!r) return !1;
|
|
35308
35335
|
switch (e.keyword) {
|
|
35309
35336
|
case "const":
|
|
35310
|
-
case "enum": return
|
|
35337
|
+
case "enum": return HZ(r.schema, i);
|
|
35311
35338
|
case "required": {
|
|
35312
35339
|
let t = e.params.missingProperty;
|
|
35313
35340
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -35315,46 +35342,46 @@ function LZ(e, t, n) {
|
|
|
35315
35342
|
default: return !1;
|
|
35316
35343
|
}
|
|
35317
35344
|
}
|
|
35318
|
-
function
|
|
35345
|
+
function HZ(e, t) {
|
|
35319
35346
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
35320
35347
|
}
|
|
35321
|
-
function
|
|
35348
|
+
function UZ(e) {
|
|
35322
35349
|
return e.filter((t) => {
|
|
35323
35350
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
35324
|
-
let n =
|
|
35351
|
+
let n = GZ(t), r = n === "" ? "" : `${n}.`;
|
|
35325
35352
|
return !e.some((e) => {
|
|
35326
35353
|
if (e === t) return !1;
|
|
35327
|
-
let i =
|
|
35354
|
+
let i = GZ(e);
|
|
35328
35355
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
35329
35356
|
});
|
|
35330
35357
|
});
|
|
35331
35358
|
}
|
|
35332
|
-
function
|
|
35359
|
+
function WZ(e, t) {
|
|
35333
35360
|
let n = /* @__PURE__ */ new Map();
|
|
35334
35361
|
for (let t of e) {
|
|
35335
|
-
let e =
|
|
35362
|
+
let e = GZ(t), r = n.get(e) ?? [];
|
|
35336
35363
|
r.push(t), n.set(e, r);
|
|
35337
35364
|
}
|
|
35338
35365
|
let r = {};
|
|
35339
35366
|
for (let [e, i] of n) {
|
|
35340
35367
|
let n = {
|
|
35341
35368
|
type: i[0].keyword,
|
|
35342
|
-
message:
|
|
35369
|
+
message: MZ(i[0], e)
|
|
35343
35370
|
};
|
|
35344
35371
|
if (t === "all" && i.length > 0) {
|
|
35345
35372
|
let t = {};
|
|
35346
|
-
for (let n of i) t[n.keyword] =
|
|
35373
|
+
for (let n of i) t[n.keyword] = MZ(n, e);
|
|
35347
35374
|
n.types = t;
|
|
35348
35375
|
}
|
|
35349
|
-
|
|
35376
|
+
KZ(r, e === "" ? "root" : e, n);
|
|
35350
35377
|
}
|
|
35351
35378
|
return r;
|
|
35352
35379
|
}
|
|
35353
|
-
function
|
|
35380
|
+
function GZ(e) {
|
|
35354
35381
|
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(xJ) : [];
|
|
35355
35382
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
35356
35383
|
}
|
|
35357
|
-
function
|
|
35384
|
+
function KZ(e, t, n) {
|
|
35358
35385
|
let r = t.split("."), i = e;
|
|
35359
35386
|
for (let e = 0; e < r.length - 1; e++) {
|
|
35360
35387
|
let t = r[e];
|
|
@@ -35362,7 +35389,7 @@ function HZ(e, t, n) {
|
|
|
35362
35389
|
}
|
|
35363
35390
|
i[r[r.length - 1]] = n;
|
|
35364
35391
|
}
|
|
35365
|
-
function
|
|
35392
|
+
function qZ(e, t, n, r) {
|
|
35366
35393
|
if (!e) return [];
|
|
35367
35394
|
let i = [];
|
|
35368
35395
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -35379,18 +35406,18 @@ function UZ(e, t, n, r) {
|
|
|
35379
35406
|
}
|
|
35380
35407
|
}
|
|
35381
35408
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
35382
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
35409
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...qZ(o, t[a], `${n}/${bJ(a)}`, r));
|
|
35383
35410
|
if (e.variants && e.variants.length > 0 && a) {
|
|
35384
|
-
let a = t, o =
|
|
35385
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
35411
|
+
let a = t, o = mY(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
35412
|
+
if (s) for (let [e, t] of s.properties) i.push(...qZ(t, a[e], `${n}/${bJ(e)}`, r));
|
|
35386
35413
|
}
|
|
35387
35414
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
35388
|
-
i.push(...
|
|
35415
|
+
i.push(...qZ(e.items, t, `${n}/${a}`, r));
|
|
35389
35416
|
}), i;
|
|
35390
35417
|
}
|
|
35391
35418
|
//#endregion
|
|
35392
35419
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
35393
|
-
var
|
|
35420
|
+
var JZ = {
|
|
35394
35421
|
navigation: null,
|
|
35395
35422
|
contextSidebar: null,
|
|
35396
35423
|
breadcrumbs: [],
|
|
@@ -35401,9 +35428,9 @@ var WZ = {
|
|
|
35401
35428
|
banner: null,
|
|
35402
35429
|
bannerSticky: !1,
|
|
35403
35430
|
footer: null
|
|
35404
|
-
},
|
|
35405
|
-
function
|
|
35406
|
-
let [t, n] = Je(
|
|
35431
|
+
}, YZ = Pe(null);
|
|
35432
|
+
function XZ({ children: e }) {
|
|
35433
|
+
let [t, n] = Je(JZ), r = Re((e, t) => {
|
|
35407
35434
|
n((n) => ({
|
|
35408
35435
|
...n,
|
|
35409
35436
|
[e]: t
|
|
@@ -35415,7 +35442,7 @@ function KZ({ children: e }) {
|
|
|
35415
35442
|
}));
|
|
35416
35443
|
}, []), a = Re((e) => {
|
|
35417
35444
|
n((t) => {
|
|
35418
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
35445
|
+
let n = Object.fromEntries(e.map((e) => [e, JZ[e]]));
|
|
35419
35446
|
return {
|
|
35420
35447
|
...t,
|
|
35421
35448
|
...n
|
|
@@ -35432,20 +35459,20 @@ function KZ({ children: e }) {
|
|
|
35432
35459
|
i,
|
|
35433
35460
|
a
|
|
35434
35461
|
]);
|
|
35435
|
-
return /* @__PURE__ */ W(
|
|
35462
|
+
return /* @__PURE__ */ W(YZ.Provider, {
|
|
35436
35463
|
value: o,
|
|
35437
35464
|
children: e
|
|
35438
35465
|
});
|
|
35439
35466
|
}
|
|
35440
|
-
function
|
|
35441
|
-
let e = ze(
|
|
35467
|
+
function ZZ() {
|
|
35468
|
+
let e = ze(YZ);
|
|
35442
35469
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
35443
35470
|
return e;
|
|
35444
35471
|
}
|
|
35445
35472
|
//#endregion
|
|
35446
35473
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
35447
|
-
function
|
|
35448
|
-
let { setSlots: n, resetSlots: r } =
|
|
35474
|
+
function QZ(e, t = []) {
|
|
35475
|
+
let { setSlots: n, resetSlots: r } = ZZ();
|
|
35449
35476
|
We(() => {
|
|
35450
35477
|
n(e);
|
|
35451
35478
|
let t = Object.keys(e);
|
|
@@ -35460,16 +35487,16 @@ function JZ(e, t = []) {
|
|
|
35460
35487
|
}
|
|
35461
35488
|
//#endregion
|
|
35462
35489
|
//#region src/composed/PageFocused/PageFocused.tsx
|
|
35463
|
-
function
|
|
35490
|
+
function $Z({ children: e, className: n }) {
|
|
35464
35491
|
return /* @__PURE__ */ W("div", {
|
|
35465
35492
|
className: t("mx-auto w-full max-w-focused", n),
|
|
35466
35493
|
children: e
|
|
35467
35494
|
});
|
|
35468
35495
|
}
|
|
35469
|
-
|
|
35496
|
+
$Z.displayName = "PageFocused";
|
|
35470
35497
|
//#endregion
|
|
35471
35498
|
//#region src/composed/PageHeader/PageHeader.tsx
|
|
35472
|
-
function
|
|
35499
|
+
function eQ({ title: e, description: n, actions: r, children: i, className: a }) {
|
|
35473
35500
|
return /* @__PURE__ */ G("header", {
|
|
35474
35501
|
"data-slot": "page-header",
|
|
35475
35502
|
className: t("flex flex-col gap-3", a),
|
|
@@ -35498,10 +35525,10 @@ function XZ({ title: e, description: n, actions: r, children: i, className: a })
|
|
|
35498
35525
|
}) : null]
|
|
35499
35526
|
});
|
|
35500
35527
|
}
|
|
35501
|
-
|
|
35528
|
+
eQ.displayName = "PageHeader";
|
|
35502
35529
|
//#endregion
|
|
35503
35530
|
//#region src/composed/SearchField/SearchField.tsx
|
|
35504
|
-
function
|
|
35531
|
+
function tQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, className: i, disabled: a, onKeyDown: o, ...s }) {
|
|
35505
35532
|
let [c, l] = Je(t), u = qe(null), d = qe(t), f = qe(void 0), p = qe(n);
|
|
35506
35533
|
Ue(e, () => u.current, []), Ve(() => {
|
|
35507
35534
|
p.current = n;
|
|
@@ -35559,10 +35586,10 @@ function ZZ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, clas
|
|
|
35559
35586
|
]
|
|
35560
35587
|
});
|
|
35561
35588
|
}
|
|
35562
|
-
|
|
35589
|
+
tQ.displayName = "SearchField";
|
|
35563
35590
|
//#endregion
|
|
35564
35591
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
35565
|
-
var
|
|
35592
|
+
var nQ = [
|
|
35566
35593
|
{
|
|
35567
35594
|
value: "light",
|
|
35568
35595
|
label: "Light"
|
|
@@ -35576,7 +35603,7 @@ var QZ = [
|
|
|
35576
35603
|
label: "System"
|
|
35577
35604
|
}
|
|
35578
35605
|
];
|
|
35579
|
-
function
|
|
35606
|
+
function rQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o }) {
|
|
35580
35607
|
let s = i ?? e.slice(0, 2).toUpperCase(), { mode: c, setMode: l } = Ae();
|
|
35581
35608
|
return /* @__PURE__ */ G(lL, { children: [/* @__PURE__ */ W(dL, {
|
|
35582
35609
|
asChild: !0,
|
|
@@ -35605,7 +35632,7 @@ function $Z({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
35605
35632
|
/* @__PURE__ */ W(gL, {
|
|
35606
35633
|
value: c,
|
|
35607
35634
|
onValueChange: (e) => l(e),
|
|
35608
|
-
children:
|
|
35635
|
+
children: nQ.map((e) => /* @__PURE__ */ W(_L, {
|
|
35609
35636
|
value: e.value,
|
|
35610
35637
|
children: e.label
|
|
35611
35638
|
}, e.value))
|
|
@@ -35618,6 +35645,6 @@ function $Z({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
35618
35645
|
]
|
|
35619
35646
|
})] });
|
|
35620
35647
|
}
|
|
35621
|
-
|
|
35648
|
+
rQ.displayName = "TopNavUser";
|
|
35622
35649
|
//#endregion
|
|
35623
|
-
export { Lv as Accordion, Bv as AccordionContent, Rv as AccordionItem, zv as AccordionTrigger, h as Alert, o as AlertAction, a as AlertDescription, f as AlertTitle, xW as AppContextBar, jW as AppLayout, PW as AppSidebar, vW as AppSwitcher, Vv as Avatar, Wv as AvatarBadge, Uv as AvatarFallback, Gv as AvatarGroup, Kv as AvatarGroupCount, Hv as AvatarImage, Jv as Badge, MK as BadgeCell, Yv as Breadcrumb, ty as BreadcrumbEllipsis, Zv as BreadcrumbItem, Qv as BreadcrumbLink, Xv as BreadcrumbList, $v as BreadcrumbPage, ey as BreadcrumbSeparator, ry as Button, ay as ButtonGroup, sy as ButtonGroupSeparator, oy as ButtonGroupText, bC as Calendar, xC as CalendarDayButton, SC as Card, EC as CardAction, DC as CardContent, TC as CardDescription, OC as CardFooter, CC as CardHeader, wC as CardTitle, kC as Checkbox, AC as Collapsible, MC as CollapsibleContent, jC as CollapsibleTrigger, XA as Combobox, uj as ComboboxChip, lj as ComboboxChips, dj as ComboboxChipsInput, oj as ComboboxCollection, tj as ComboboxContent, sj as ComboboxEmpty, ij as ComboboxGroup, ej as ComboboxInput, rj as ComboboxItem, aj as ComboboxLabel, nj as ComboboxList, cj as ComboboxSeparator, QA as ComboboxTrigger, ZA as ComboboxValue, wF as Command, TF as CommandDialog, OF as CommandEmpty, kF as CommandGroup, EF as CommandInput, jF as CommandItem, DF as CommandList, AF as CommandSeparator, MF as CommandShortcut, HW as ContentHeader, NF as ContextMenu, UF as ContextMenuCheckboxItem, zF as ContextMenuContent, FF as ContextMenuGroup, BF as ContextMenuItem, GF as ContextMenuLabel, IF as ContextMenuPortal, RF as ContextMenuRadioGroup, WF as ContextMenuRadioItem, KF as ContextMenuSeparator, qF as ContextMenuShortcut, LF as ContextMenuSub, HF as ContextMenuSubContent, VF as ContextMenuSubTrigger, PF as ContextMenuTrigger, IW as ContextSidebar, LW as ContextToggleButton, PK as CopyableCell, UW as CopyableText,
|
|
35650
|
+
export { Lv as Accordion, Bv as AccordionContent, Rv as AccordionItem, zv as AccordionTrigger, h as Alert, o as AlertAction, a as AlertDescription, f as AlertTitle, xW as AppContextBar, jW as AppLayout, PW as AppSidebar, vW as AppSwitcher, Vv as Avatar, Wv as AvatarBadge, Uv as AvatarFallback, Gv as AvatarGroup, Kv as AvatarGroupCount, Hv as AvatarImage, Jv as Badge, MK as BadgeCell, Yv as Breadcrumb, ty as BreadcrumbEllipsis, Zv as BreadcrumbItem, Qv as BreadcrumbLink, Xv as BreadcrumbList, $v as BreadcrumbPage, ey as BreadcrumbSeparator, ry as Button, ay as ButtonGroup, sy as ButtonGroupSeparator, oy as ButtonGroupText, bC as Calendar, xC as CalendarDayButton, SC as Card, EC as CardAction, DC as CardContent, TC as CardDescription, OC as CardFooter, CC as CardHeader, wC as CardTitle, kC as Checkbox, AC as Collapsible, MC as CollapsibleContent, jC as CollapsibleTrigger, XA as Combobox, uj as ComboboxChip, lj as ComboboxChips, dj as ComboboxChipsInput, oj as ComboboxCollection, tj as ComboboxContent, sj as ComboboxEmpty, ij as ComboboxGroup, ej as ComboboxInput, rj as ComboboxItem, aj as ComboboxLabel, nj as ComboboxList, cj as ComboboxSeparator, QA as ComboboxTrigger, ZA as ComboboxValue, wF as Command, TF as CommandDialog, OF as CommandEmpty, kF as CommandGroup, EF as CommandInput, jF as CommandItem, DF as CommandList, AF as CommandSeparator, MF as CommandShortcut, HW as ContentHeader, NF as ContextMenu, UF as ContextMenuCheckboxItem, zF as ContextMenuContent, FF as ContextMenuGroup, BF as ContextMenuItem, GF as ContextMenuLabel, IF as ContextMenuPortal, RF as ContextMenuRadioGroup, WF as ContextMenuRadioItem, KF as ContextMenuSeparator, qF as ContextMenuShortcut, LF as ContextMenuSub, HF as ContextMenuSubContent, VF as ContextMenuSubTrigger, PF as ContextMenuTrigger, IW as ContextSidebar, LW as ContextToggleButton, PK as CopyableCell, UW as CopyableText, JZ as DEFAULT_SLOTS, CK as DataTable, wK as DataTableColumnHeader, IK as DataTableEmptyState, gK as DataTablePagination, _K as DataTableViewOptions, jK as DateCell, Gq as DatePicker, Kq as DateRangePicker, Yq as DateTimePicker, Qq as DateTimeRangePicker, mF as Dialog, _F as DialogClose, yF as DialogContent, CF as DialogDescription, xF as DialogFooter, bF as DialogHeader, vF as DialogOverlay, gF as DialogPortal, SF as DialogTitle, hF as DialogTrigger, $I as Drawer, nL as DrawerClose, iL as DrawerContent, cL as DrawerDescription, oL as DrawerFooter, aL as DrawerHeader, rL as DrawerOverlay, tL as DrawerPortal, sL as DrawerTitle, eL as DrawerTrigger, lL as DropdownMenu, hL as DropdownMenuCheckboxItem, fL as DropdownMenuContent, pL as DropdownMenuGroup, mL as DropdownMenuItem, vL as DropdownMenuLabel, uL as DropdownMenuPortal, gL as DropdownMenuRadioGroup, _L as DropdownMenuRadioItem, yL as DropdownMenuSeparator, bL as DropdownMenuShortcut, xL as DropdownMenuSub, CL as DropdownMenuSubContent, SL as DropdownMenuSubTrigger, dL as DropdownMenuTrigger, eJ as ElCheatSheetTrigger, wL as Empty, AL as EmptyContent, kL as EmptyDescription, TL as EmptyHeader, DL as EmptyMedia, OL as EmptyTitle, tJ as FacetedFilter, j as Field, O as FieldContent, C as FieldDescription, S as FieldError, g as FieldGroup, I as FieldLabel, R as FieldLegend, v as FieldSeparator, ee as FieldSet, m as FieldTitle, oJ as FileUpload, wz as FileUploadInput, aJ as FileUploadItem, Tz as HoverCard, Dz as HoverCardContent, Az as HoverCardDescription, Oz as HoverCardHeader, kz as HoverCardTitle, Ez as HoverCardTrigger, VA as Input, HA as InputGroup, WA as InputGroupAddon, KA as InputGroupButton, JA as InputGroupInput, qA as InputGroupText, YA as InputGroupTextarea, Pz as Item, Bz as ItemActions, Lz as ItemContent, zz as ItemDescription, Hz as ItemFooter, jz as ItemGroup, Vz as ItemHeader, Iz as ItemMedia, Mz as ItemSeparator, Rz as ItemTitle, YY as JsonSchemaForm, Uz as Kbd, Wz as KbdGroup, i as Label, XZ as LayoutSlotsProvider, qz as Logo, NK as MonoCell, $Z as PageFocused, eQ as PageHeader, Jz as Pagination, Yz as PaginationContent, eB as PaginationEllipsis, Xz as PaginationItem, Zz as PaginationLink, $z as PaginationNext, Qz as PaginationPrevious, CY as PasswordInput, tB as Popover, iB as PopoverAnchor, rB as PopoverContent, sB as PopoverDescription, aB as PopoverHeader, oB as PopoverTitle, nB as PopoverTrigger, _t as PortalContainerProvider, cB as Progress, uB as Prose, dB as RadioGroup, fB as RadioGroupItem, cH as ResizableHandle, sH as ResizablePanel, oH as ResizablePanelGroup, lH as ScrollArea, uH as ScrollBar, tQ as SearchField, dH as Select, hH as SelectContent, fH as SelectGroup, _H as SelectItem, gH as SelectLabel, bH as SelectScrollDownButton, yH as SelectScrollUpButton, vH as SelectSeparator, mH as SelectTrigger, pH as SelectValue, yW as SelectorDropdown, bW as SelectorTriggerButton, L as Separator, xH as Sheet, CH as SheetClose, EH as SheetContent, AH as SheetDescription, OH as SheetFooter, DH as SheetHeader, kH as SheetTitle, SH as SheetTrigger, YH as Sidebar, rU as SidebarContent, tU as SidebarFooter, iU as SidebarGroup, oU as SidebarGroupAction, sU as SidebarGroupContent, aU as SidebarGroupLabel, eU as SidebarHeader, $H as SidebarInput, QH as SidebarInset, cU as SidebarMenu, fU as SidebarMenuAction, pU as SidebarMenuBadge, dU as SidebarMenuButton, lU as SidebarMenuItem, mU as SidebarMenuSkeleton, hU as SidebarMenuSub, _U as SidebarMenuSubButton, gU as SidebarMenuSubItem, kW as SidebarModeControl, DW as SidebarModeProvider, FW as SidebarNavigation, JH as SidebarProvider, ZH as SidebarRail, nU as SidebarSeparator, XH as SidebarTrigger, zW as SidebarUpgradeFooter, n as Skeleton, YU as Spinner, XU as Switch, ZU as Table, $U as TableBody, iW as TableCaption, rW as TableCell, eW as TableFooter, nW as TableHead, QU as TableHeader, tW as TableRow, aW as Tabs, lW as TabsContent, sW as TabsList, cW as TabsTrigger, e as Textarea, je as ThemeProvider, JU as Toaster, dW as Toggle, pW as ToggleGroup, mW as ToggleGroupItem, MH as Tooltip, PH as TooltipContent, jH as TooltipProvider, NH as TooltipTrigger, rQ as TopNavUser, FK as TruncatedCell, E as alertVariants, qv as badgeVariants, WW as buildLinearBreadcrumbs, iy as buttonGroupVariants, ny as buttonVariants, t as cn, XY as composeResolvers, NJ as extractDefaults, BZ as jsonSchemaResolver, Kz as logoVariants, oW as tabsListVariants, MU as toast, uW as toggleVariants, fj as useComboboxAnchor, yt as useDebouncedValue, QZ as useLayoutConfig, ZZ as useLayoutSlots, vt as usePortalContainer, qH as useSidebar, wW as useSidebarMode, Ae as useTheme };
|