@gravitee/graphene-core 2.59.0 → 2.59.1-renovate-react.6834238
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/form-bindings/extractDefaults.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.d.ts +7 -5
- package/dist/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts.map +1 -1
- package/dist/index.js +384 -375
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -28815,29 +28815,58 @@ function pq(e, t) {
|
|
|
28815
28815
|
return r;
|
|
28816
28816
|
}
|
|
28817
28817
|
//#endregion
|
|
28818
|
-
//#region src/composed/JsonSchemaForm/
|
|
28818
|
+
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
28819
28819
|
function mq(e) {
|
|
28820
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
28821
|
+
}
|
|
28822
|
+
function hq(e) {
|
|
28823
|
+
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
28824
|
+
}
|
|
28825
|
+
function gq(e) {
|
|
28826
|
+
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
28827
|
+
}
|
|
28828
|
+
function _q(e) {
|
|
28829
|
+
let t = e.deprecated;
|
|
28830
|
+
if (t === !0) return !0;
|
|
28831
|
+
if (typeof t == "string") {
|
|
28832
|
+
let e = t.trim().toLowerCase();
|
|
28833
|
+
return e !== "" && e !== "false";
|
|
28834
|
+
}
|
|
28835
|
+
return !1;
|
|
28836
|
+
}
|
|
28837
|
+
function vq(e) {
|
|
28838
|
+
return e.format === "gio-code-editor" ? e.type === "string" || Array.isArray(e.type) && e.type.includes("string") : !1;
|
|
28839
|
+
}
|
|
28840
|
+
function yq(e) {
|
|
28841
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !mq(e);
|
|
28842
|
+
}
|
|
28843
|
+
function bq(e) {
|
|
28844
|
+
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
28845
|
+
}
|
|
28846
|
+
//#endregion
|
|
28847
|
+
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
28848
|
+
function xq(e) {
|
|
28820
28849
|
let t;
|
|
28821
28850
|
try {
|
|
28822
28851
|
t = iq(dq(e));
|
|
28823
28852
|
} catch {
|
|
28824
28853
|
return;
|
|
28825
28854
|
}
|
|
28826
|
-
return
|
|
28855
|
+
return Sq(t);
|
|
28827
28856
|
}
|
|
28828
|
-
function
|
|
28829
|
-
if (e
|
|
28857
|
+
function Sq(e) {
|
|
28858
|
+
if (_q(e)) return;
|
|
28830
28859
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
28831
28860
|
let t = {};
|
|
28832
28861
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
28833
|
-
let e =
|
|
28862
|
+
let e = Sq(r);
|
|
28834
28863
|
e !== void 0 && (t[n] = e);
|
|
28835
28864
|
}
|
|
28836
|
-
let n = (e.oneOf ?? e.anyOf)?.find((e) => e
|
|
28865
|
+
let n = (e.oneOf ?? e.anyOf)?.find((e) => !_q(e));
|
|
28837
28866
|
if (n?.properties) {
|
|
28838
28867
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
28839
28868
|
else if (!(e in t)) {
|
|
28840
|
-
let n =
|
|
28869
|
+
let n = Sq(r);
|
|
28841
28870
|
n !== void 0 && (t[e] = n);
|
|
28842
28871
|
}
|
|
28843
28872
|
}
|
|
@@ -28845,7 +28874,7 @@ function hq(e) {
|
|
|
28845
28874
|
}
|
|
28846
28875
|
//#endregion
|
|
28847
28876
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
28848
|
-
function
|
|
28877
|
+
function Cq(e) {
|
|
28849
28878
|
if (e.default !== void 0) return e.default;
|
|
28850
28879
|
switch (e.type) {
|
|
28851
28880
|
case "string": return "";
|
|
@@ -28860,7 +28889,7 @@ function gq(e) {
|
|
|
28860
28889
|
}
|
|
28861
28890
|
//#endregion
|
|
28862
28891
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
28863
|
-
function
|
|
28892
|
+
function wq(e, t) {
|
|
28864
28893
|
let n = D(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = g({
|
|
28865
28894
|
control: n.control,
|
|
28866
28895
|
name: r
|
|
@@ -28882,10 +28911,10 @@ function _q(e, t) {
|
|
|
28882
28911
|
}
|
|
28883
28912
|
//#endregion
|
|
28884
28913
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
28885
|
-
function
|
|
28886
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } =
|
|
28914
|
+
function Tq({ node: e, name: t, depth: n }) {
|
|
28915
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = wq(r, t), p = r.items, m = e.items, h = k(r, t), g = r.gioConfig?.uiBorder === "full";
|
|
28887
28916
|
function _() {
|
|
28888
|
-
s(
|
|
28917
|
+
s(Dq(p), { shouldFocus: !1 });
|
|
28889
28918
|
}
|
|
28890
28919
|
return /* @__PURE__ */ G(N, {
|
|
28891
28920
|
"aria-required": r.isRequired || void 0,
|
|
@@ -28900,7 +28929,7 @@ function vq({ node: e, name: t, depth: n }) {
|
|
|
28900
28929
|
r.gioConfig?.banner && /* @__PURE__ */ W(j, { banner: r.gioConfig.banner }),
|
|
28901
28930
|
/* @__PURE__ */ W("div", {
|
|
28902
28931
|
className: "flex flex-col",
|
|
28903
|
-
children: o.map((e, t) => /* @__PURE__ */ W(
|
|
28932
|
+
children: o.map((e, t) => /* @__PURE__ */ W(Eq, {
|
|
28904
28933
|
index: t,
|
|
28905
28934
|
path: a,
|
|
28906
28935
|
itemsNode: m,
|
|
@@ -28926,7 +28955,7 @@ function vq({ node: e, name: t, depth: n }) {
|
|
|
28926
28955
|
]
|
|
28927
28956
|
});
|
|
28928
28957
|
}
|
|
28929
|
-
function
|
|
28958
|
+
function Eq({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: s }) {
|
|
28930
28959
|
let c = `${t}.${e}`;
|
|
28931
28960
|
return /* @__PURE__ */ G(SC, {
|
|
28932
28961
|
defaultOpen: !0,
|
|
@@ -28961,7 +28990,7 @@ function yq({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
28961
28990
|
basePath: c,
|
|
28962
28991
|
disabled: i
|
|
28963
28992
|
},
|
|
28964
|
-
children: /* @__PURE__ */ W(
|
|
28993
|
+
children: /* @__PURE__ */ W(nJ, {
|
|
28965
28994
|
node: n,
|
|
28966
28995
|
name: "",
|
|
28967
28996
|
depth: r + 1
|
|
@@ -28970,17 +28999,17 @@ function yq({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
28970
28999
|
}) })]
|
|
28971
29000
|
});
|
|
28972
29001
|
}
|
|
28973
|
-
function
|
|
28974
|
-
let t =
|
|
28975
|
-
return t === void 0 ?
|
|
29002
|
+
function Dq(e) {
|
|
29003
|
+
let t = xq(e);
|
|
29004
|
+
return t === void 0 ? Cq(e) : t;
|
|
28976
29005
|
}
|
|
28977
29006
|
//#endregion
|
|
28978
29007
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
28979
|
-
function
|
|
28980
|
-
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } =
|
|
29008
|
+
function Oq({ node: e, name: t }) {
|
|
29009
|
+
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = wq(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = k(n, t);
|
|
28981
29010
|
function h() {
|
|
28982
29011
|
let e = {};
|
|
28983
|
-
for (let t of p) e[t] =
|
|
29012
|
+
for (let t of p) e[t] = Cq(f[t]);
|
|
28984
29013
|
a(e, { shouldFocus: !1 });
|
|
28985
29014
|
}
|
|
28986
29015
|
return /* @__PURE__ */ G(N, {
|
|
@@ -28997,11 +29026,11 @@ function xq({ node: e, name: t }) {
|
|
|
28997
29026
|
className: "overflow-hidden rounded-lg border",
|
|
28998
29027
|
children: /* @__PURE__ */ G(qH, { children: [/* @__PURE__ */ W(JH, { children: /* @__PURE__ */ G(ZH, { children: [p.map((e) => /* @__PURE__ */ W(QH, {
|
|
28999
29028
|
scope: "col",
|
|
29000
|
-
children:
|
|
29029
|
+
children: jq(f[e], e)
|
|
29001
29030
|
}, e)), /* @__PURE__ */ W(QH, {
|
|
29002
29031
|
"aria-hidden": "true",
|
|
29003
29032
|
className: "w-px"
|
|
29004
|
-
})] }) }), /* @__PURE__ */ W(YH, { children: i.map((e, t) => /* @__PURE__ */ W(
|
|
29033
|
+
})] }) }), /* @__PURE__ */ W(YH, { children: i.map((e, t) => /* @__PURE__ */ W(kq, {
|
|
29005
29034
|
rowIndex: t,
|
|
29006
29035
|
rowPath: `${r}.${t}`,
|
|
29007
29036
|
columnKeys: p,
|
|
@@ -29023,8 +29052,8 @@ function xq({ node: e, name: t }) {
|
|
|
29023
29052
|
]
|
|
29024
29053
|
});
|
|
29025
29054
|
}
|
|
29026
|
-
function
|
|
29027
|
-
return /* @__PURE__ */ G(ZH, { children: [n.map((n) => /* @__PURE__ */ W(
|
|
29055
|
+
function kq({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
|
|
29056
|
+
return /* @__PURE__ */ G(ZH, { children: [n.map((n) => /* @__PURE__ */ W(Aq, {
|
|
29028
29057
|
columnKey: n,
|
|
29029
29058
|
cellPath: `${t}.${n}`,
|
|
29030
29059
|
propSchema: r[n],
|
|
@@ -29043,7 +29072,7 @@ function Sq({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
29043
29072
|
})
|
|
29044
29073
|
})] });
|
|
29045
29074
|
}
|
|
29046
|
-
function
|
|
29075
|
+
function Aq({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
29047
29076
|
let { control: a } = D(), { field: o, fieldState: s } = A({
|
|
29048
29077
|
control: a,
|
|
29049
29078
|
name: t
|
|
@@ -29056,16 +29085,16 @@ function Cq({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
29056
29085
|
onBlur: l,
|
|
29057
29086
|
disabled: i,
|
|
29058
29087
|
"aria-invalid": s.invalid,
|
|
29059
|
-
"aria-label": `${
|
|
29088
|
+
"aria-label": `${jq(n, e)} for row ${r + 1}`,
|
|
29060
29089
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
29061
29090
|
}) });
|
|
29062
29091
|
}
|
|
29063
|
-
function
|
|
29092
|
+
function jq(e, t) {
|
|
29064
29093
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
29065
29094
|
}
|
|
29066
29095
|
//#endregion
|
|
29067
29096
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
29068
|
-
function
|
|
29097
|
+
function Mq({ node: e, name: t }) {
|
|
29069
29098
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29070
29099
|
control: n,
|
|
29071
29100
|
name: o,
|
|
@@ -29093,39 +29122,19 @@ function Tq({ node: e, name: t }) {
|
|
|
29093
29122
|
});
|
|
29094
29123
|
}
|
|
29095
29124
|
//#endregion
|
|
29096
|
-
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
29097
|
-
function Eq(e) {
|
|
29098
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
29099
|
-
}
|
|
29100
|
-
function Dq(e) {
|
|
29101
|
-
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
29102
|
-
}
|
|
29103
|
-
function Oq(e) {
|
|
29104
|
-
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
29105
|
-
}
|
|
29106
|
-
function kq(e) {
|
|
29107
|
-
return e.format === "gio-code-editor" ? e.type === "string" || Array.isArray(e.type) && e.type.includes("string") : !1;
|
|
29108
|
-
}
|
|
29109
|
-
function Aq(e) {
|
|
29110
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !Eq(e);
|
|
29111
|
-
}
|
|
29112
|
-
function jq(e) {
|
|
29113
|
-
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
29114
|
-
}
|
|
29115
|
-
//#endregion
|
|
29116
29125
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
29117
|
-
function
|
|
29126
|
+
function Nq(e, t) {
|
|
29118
29127
|
let n = t?.[String(e)];
|
|
29119
29128
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
29120
29129
|
}
|
|
29121
|
-
function
|
|
29130
|
+
function Pq(e, t) {
|
|
29122
29131
|
return e.map((e, n) => ({
|
|
29123
29132
|
raw: e,
|
|
29124
29133
|
key: String(n),
|
|
29125
|
-
label:
|
|
29134
|
+
label: Nq(e, t)
|
|
29126
29135
|
}));
|
|
29127
29136
|
}
|
|
29128
|
-
function
|
|
29137
|
+
function Fq(e) {
|
|
29129
29138
|
return e.map((e, t) => ({
|
|
29130
29139
|
raw: e.const,
|
|
29131
29140
|
key: String(t),
|
|
@@ -29134,12 +29143,12 @@ function Pq(e) {
|
|
|
29134
29143
|
}
|
|
29135
29144
|
//#endregion
|
|
29136
29145
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
29137
|
-
function
|
|
29146
|
+
function Iq({ node: e, name: t }) {
|
|
29138
29147
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29139
29148
|
control: n,
|
|
29140
29149
|
name: o,
|
|
29141
29150
|
defaultValue: a.default
|
|
29142
|
-
}), { ref: l, onBlur: u } = s, d = k(a, t), f = i || a.readOnly === !0, p =
|
|
29151
|
+
}), { ref: l, onBlur: u } = s, d = k(a, t), f = i || a.readOnly === !0, p = Lq(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
|
|
29143
29152
|
return /* @__PURE__ */ G(M, {
|
|
29144
29153
|
"data-invalid": c.invalid,
|
|
29145
29154
|
children: [
|
|
@@ -29170,18 +29179,18 @@ function Fq({ node: e, name: t }) {
|
|
|
29170
29179
|
]
|
|
29171
29180
|
});
|
|
29172
29181
|
}
|
|
29173
|
-
function
|
|
29174
|
-
return
|
|
29182
|
+
function Lq(e) {
|
|
29183
|
+
return mq(e) ? Fq(e.oneOf ?? []) : Pq(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
29175
29184
|
}
|
|
29176
29185
|
//#endregion
|
|
29177
29186
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
29178
|
-
function
|
|
29187
|
+
function Rq({ node: e, name: t }) {
|
|
29179
29188
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29180
29189
|
control: n,
|
|
29181
29190
|
name: o,
|
|
29182
29191
|
defaultValue: Array.isArray(a.default) ? a.default : []
|
|
29183
|
-
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = ij(), m = k(a, t), h = i || a.readOnly === !0, g = a.items, _ =
|
|
29184
|
-
return
|
|
29192
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = ij(), m = k(a, t), h = i || a.readOnly === !0, g = a.items, _ = Pq(g.enum ?? [], g.gioConfig?.enumLabelMap), y = _.map((e) => e.label), S = (e) => _.find((t) => t.label === e)?.raw, C = (e) => _.find((t) => Object.is(t.raw, e))?.label, w = (Array.isArray(s.value) ? s.value : []).map((e) => C(e)).filter((e) => e !== void 0);
|
|
29193
|
+
return zq({
|
|
29185
29194
|
schema: a,
|
|
29186
29195
|
options: _,
|
|
29187
29196
|
value: f,
|
|
@@ -29231,19 +29240,19 @@ function Lq({ node: e, name: t }) {
|
|
|
29231
29240
|
]
|
|
29232
29241
|
});
|
|
29233
29242
|
}
|
|
29234
|
-
function
|
|
29243
|
+
function zq({ schema: e, options: t, value: n, onReset: r }) {
|
|
29235
29244
|
Pe(() => {
|
|
29236
29245
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
29237
29246
|
}, [e]);
|
|
29238
29247
|
}
|
|
29239
29248
|
//#endregion
|
|
29240
29249
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
29241
|
-
function
|
|
29250
|
+
function Bq() {
|
|
29242
29251
|
return null;
|
|
29243
29252
|
}
|
|
29244
29253
|
//#endregion
|
|
29245
29254
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
29246
|
-
function
|
|
29255
|
+
function Vq({ node: e, name: t }) {
|
|
29247
29256
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29248
29257
|
control: n,
|
|
29249
29258
|
name: o
|
|
@@ -29286,7 +29295,7 @@ function Bq({ node: e, name: t }) {
|
|
|
29286
29295
|
}
|
|
29287
29296
|
//#endregion
|
|
29288
29297
|
//#region src/composed/JsonSchemaForm/conditional/useDependencyBranchSync.ts
|
|
29289
|
-
function
|
|
29298
|
+
function Hq(e, t, n, r) {
|
|
29290
29299
|
let i = U(() => t.map((e) => nq(e.showIf, n)), [t, n]), a = U(() => t.map((e) => Array.from(e.properties.keys()).map((e) => n ? `${n}.${e}` : e)), [t, n]), o = U(() => {
|
|
29291
29300
|
let e = /* @__PURE__ */ new Set();
|
|
29292
29301
|
for (let t of i) for (let n of t.$eq.keys()) e.add(n);
|
|
@@ -29319,21 +29328,21 @@ function Vq(e, t, n, r) {
|
|
|
29319
29328
|
r
|
|
29320
29329
|
]);
|
|
29321
29330
|
}
|
|
29322
|
-
function
|
|
29331
|
+
function Uq({ branches: e, basePath: t }) {
|
|
29323
29332
|
let { control: n, externalContext: r } = D();
|
|
29324
|
-
return
|
|
29333
|
+
return Hq(n, e, t, r), null;
|
|
29325
29334
|
}
|
|
29326
29335
|
//#endregion
|
|
29327
29336
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
29328
|
-
function
|
|
29337
|
+
function Wq(e, t, n, r) {
|
|
29329
29338
|
if (e.length === 0) return -1;
|
|
29330
29339
|
let i = n?.get(t);
|
|
29331
|
-
return
|
|
29340
|
+
return Gq(i, e) && Kq(e[i], r) ? i : qq(e, r);
|
|
29332
29341
|
}
|
|
29333
|
-
function
|
|
29342
|
+
function Gq(e, t) {
|
|
29334
29343
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
29335
29344
|
}
|
|
29336
|
-
function
|
|
29345
|
+
function Kq(e, t) {
|
|
29337
29346
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
29338
29347
|
if (n.const !== void 0) return t(e) === n.const;
|
|
29339
29348
|
if (typeof n.pattern == "string") {
|
|
@@ -29343,18 +29352,18 @@ function Gq(e, t) {
|
|
|
29343
29352
|
return !0;
|
|
29344
29353
|
});
|
|
29345
29354
|
}
|
|
29346
|
-
function
|
|
29355
|
+
function qq(e, t) {
|
|
29347
29356
|
let n = 0, r = {
|
|
29348
29357
|
viable: !1,
|
|
29349
29358
|
matches: -1
|
|
29350
29359
|
};
|
|
29351
29360
|
return e.forEach((e, i) => {
|
|
29352
|
-
let a =
|
|
29353
|
-
|
|
29361
|
+
let a = Jq(e, t);
|
|
29362
|
+
Yq(a, r) > 0 && (n = i, r = a);
|
|
29354
29363
|
}), n;
|
|
29355
29364
|
}
|
|
29356
|
-
function
|
|
29357
|
-
return
|
|
29365
|
+
function Jq(e, t) {
|
|
29366
|
+
return Kq(e, t) ? {
|
|
29358
29367
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
29359
29368
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
29360
29369
|
} : {
|
|
@@ -29362,13 +29371,13 @@ function qq(e, t) {
|
|
|
29362
29371
|
matches: -1
|
|
29363
29372
|
};
|
|
29364
29373
|
}
|
|
29365
|
-
function
|
|
29374
|
+
function Yq(e, t) {
|
|
29366
29375
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
29367
29376
|
}
|
|
29368
29377
|
//#endregion
|
|
29369
29378
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
29370
|
-
function
|
|
29371
|
-
let n = D(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = U(() => e.variants ?? [], [e.variants]), [l, u] = Be(() =>
|
|
29379
|
+
function Xq({ node: e, depth: t }) {
|
|
29380
|
+
let n = D(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = U(() => e.variants ?? [], [e.variants]), [l, u] = Be(() => Wq(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = U(() => c[l]?.dependencyBranches ?? [], [c, l]);
|
|
29372
29381
|
if (c.length === 0) return null;
|
|
29373
29382
|
let f = c[l] ?? c[0], p = n.disabled || o.readOnly === !0, m = `${a || "root"}-variant`, h = (e) => {
|
|
29374
29383
|
if (e === l) return;
|
|
@@ -29401,22 +29410,22 @@ function Yq({ node: e, depth: t }) {
|
|
|
29401
29410
|
t === 0 && o.description && /* @__PURE__ */ W(v, { children: o.description }),
|
|
29402
29411
|
o.gioConfig?.banner && /* @__PURE__ */ W(j, { banner: o.gioConfig.banner })
|
|
29403
29412
|
] }),
|
|
29404
|
-
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(
|
|
29413
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(Zq, {
|
|
29405
29414
|
path: a ? `${a}.${e}` : e,
|
|
29406
29415
|
value: t
|
|
29407
29416
|
}, e)),
|
|
29408
|
-
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(
|
|
29417
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(nJ, {
|
|
29409
29418
|
node: n,
|
|
29410
29419
|
name: e,
|
|
29411
29420
|
depth: t + 1
|
|
29412
29421
|
}, `${l}-${e}`)),
|
|
29413
|
-
d.length > 0 && /* @__PURE__ */ W(
|
|
29422
|
+
d.length > 0 && /* @__PURE__ */ W(Uq, {
|
|
29414
29423
|
branches: d,
|
|
29415
29424
|
basePath: a
|
|
29416
29425
|
}),
|
|
29417
29426
|
d.map((e, n) => /* @__PURE__ */ W($K, {
|
|
29418
29427
|
condition: nq(e.showIf, a),
|
|
29419
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(
|
|
29428
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(nJ, {
|
|
29420
29429
|
node: n,
|
|
29421
29430
|
name: e,
|
|
29422
29431
|
depth: t + 1
|
|
@@ -29424,7 +29433,7 @@ function Yq({ node: e, depth: t }) {
|
|
|
29424
29433
|
}, `${l}-var-dep-${n}`))
|
|
29425
29434
|
] });
|
|
29426
29435
|
}
|
|
29427
|
-
function
|
|
29436
|
+
function Zq({ path: e, value: t }) {
|
|
29428
29437
|
let { control: n } = D(), { field: r } = A({
|
|
29429
29438
|
control: n,
|
|
29430
29439
|
name: e
|
|
@@ -29435,31 +29444,31 @@ function Xq({ path: e, value: t }) {
|
|
|
29435
29444
|
}
|
|
29436
29445
|
//#endregion
|
|
29437
29446
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
29438
|
-
function
|
|
29439
|
-
let r = D(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o =
|
|
29447
|
+
function Qq({ node: e, name: t, depth: n }) {
|
|
29448
|
+
let r = D(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = yq(i) || bq(i), s = U(() => e.dependencyBranches ?? [], [e.dependencyBranches]), c = s.length > 0, l = (e.properties || o || c) && /* @__PURE__ */ W(m.Provider, {
|
|
29440
29449
|
value: {
|
|
29441
29450
|
...r,
|
|
29442
29451
|
basePath: a
|
|
29443
29452
|
},
|
|
29444
29453
|
children: /* @__PURE__ */ G(T, { children: [
|
|
29445
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
29454
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(nJ, {
|
|
29446
29455
|
node: t,
|
|
29447
29456
|
name: e,
|
|
29448
29457
|
depth: n + 1
|
|
29449
29458
|
}, e)),
|
|
29450
|
-
c && /* @__PURE__ */ W(
|
|
29459
|
+
c && /* @__PURE__ */ W(Uq, {
|
|
29451
29460
|
branches: s,
|
|
29452
29461
|
basePath: a
|
|
29453
29462
|
}),
|
|
29454
29463
|
s.map((e, t) => /* @__PURE__ */ W($K, {
|
|
29455
29464
|
condition: nq(e.showIf, a),
|
|
29456
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
29465
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(nJ, {
|
|
29457
29466
|
node: t,
|
|
29458
29467
|
name: e,
|
|
29459
29468
|
depth: n + 1
|
|
29460
29469
|
}, e))
|
|
29461
29470
|
}, `dep-${t}`)),
|
|
29462
|
-
o && /* @__PURE__ */ W(
|
|
29471
|
+
o && /* @__PURE__ */ W(Xq, {
|
|
29463
29472
|
node: e,
|
|
29464
29473
|
depth: n
|
|
29465
29474
|
})
|
|
@@ -29481,7 +29490,7 @@ function Zq({ node: e, name: t, depth: n }) {
|
|
|
29481
29490
|
}
|
|
29482
29491
|
//#endregion
|
|
29483
29492
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
29484
|
-
function
|
|
29493
|
+
function $q({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
29485
29494
|
let [s, c] = Be(!1);
|
|
29486
29495
|
return /* @__PURE__ */ G(PA, {
|
|
29487
29496
|
className: e,
|
|
@@ -29507,10 +29516,10 @@ function Qq({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
29507
29516
|
})]
|
|
29508
29517
|
});
|
|
29509
29518
|
}
|
|
29510
|
-
|
|
29519
|
+
$q.displayName = "PasswordInput";
|
|
29511
29520
|
//#endregion
|
|
29512
29521
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
29513
|
-
function
|
|
29522
|
+
function eJ({ node: t, name: n }) {
|
|
29514
29523
|
let { control: r, basePath: i, disabled: a } = D(), { schema: o } = t, s = n ? i ? `${i}.${n}` : n : i, { field: c, fieldState: l } = A({
|
|
29515
29524
|
control: r,
|
|
29516
29525
|
name: s
|
|
@@ -29535,7 +29544,7 @@ function $q({ node: t, name: n }) {
|
|
|
29535
29544
|
children: u
|
|
29536
29545
|
}),
|
|
29537
29546
|
o.gioConfig?.banner && /* @__PURE__ */ W(j, { banner: o.gioConfig.banner }),
|
|
29538
|
-
o.format === "text" ? /* @__PURE__ */ W(e, { ...h }) : o.format === "password" ? /* @__PURE__ */ W(
|
|
29547
|
+
o.format === "text" ? /* @__PURE__ */ W(e, { ...h }) : o.format === "password" ? /* @__PURE__ */ W($q, {
|
|
29539
29548
|
...h,
|
|
29540
29549
|
pattern: o.pattern
|
|
29541
29550
|
}) : /* @__PURE__ */ W(NA, {
|
|
@@ -29550,11 +29559,11 @@ function $q({ node: t, name: n }) {
|
|
|
29550
29559
|
}
|
|
29551
29560
|
//#endregion
|
|
29552
29561
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
29553
|
-
var
|
|
29554
|
-
function
|
|
29562
|
+
var tJ = Ae(() => import("./CodeEditorField-cwZAv7Ib.js").then((e) => ({ default: e.CodeEditorField })));
|
|
29563
|
+
function nJ({ node: e, name: t, depth: n = 0 }) {
|
|
29555
29564
|
let { basePath: r } = D(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = U(() => [o], [o]), c = U(() => e.displayIf ? nq(e.displayIf, r) : void 0, [e.displayIf, r]), l = U(() => e.disableIf ? nq(e.disableIf, r) : void 0, [e.disableIf, r]);
|
|
29556
29565
|
if (i.deprecated === !0) return null;
|
|
29557
|
-
let u =
|
|
29566
|
+
let u = rJ(e, a, t, n);
|
|
29558
29567
|
return u === null ? null : (l && (u = /* @__PURE__ */ W(eq, {
|
|
29559
29568
|
condition: l,
|
|
29560
29569
|
children: u
|
|
@@ -29564,131 +29573,131 @@ function tJ({ node: e, name: t, depth: n = 0 }) {
|
|
|
29564
29573
|
children: u
|
|
29565
29574
|
}) : u);
|
|
29566
29575
|
}
|
|
29567
|
-
function
|
|
29568
|
-
let { schema: i } = e, a =
|
|
29569
|
-
return Array.isArray(i.enum) && i.enum.length > 0 ||
|
|
29576
|
+
function rJ(e, t, n, r) {
|
|
29577
|
+
let { schema: i } = e, a = iJ(i.type);
|
|
29578
|
+
return Array.isArray(i.enum) && i.enum.length > 0 || mq(i) ? /* @__PURE__ */ W(Iq, {
|
|
29570
29579
|
node: e,
|
|
29571
29580
|
name: t
|
|
29572
|
-
}) :
|
|
29581
|
+
}) : hq(i) ? /* @__PURE__ */ W(Rq, {
|
|
29573
29582
|
node: e,
|
|
29574
29583
|
name: t
|
|
29575
|
-
}) :
|
|
29584
|
+
}) : gq(i) ? /* @__PURE__ */ W(Oq, {
|
|
29576
29585
|
node: e,
|
|
29577
29586
|
name: t
|
|
29578
|
-
}) :
|
|
29587
|
+
}) : vq(i) ? /* @__PURE__ */ W(Ee, {
|
|
29579
29588
|
fallback: null,
|
|
29580
|
-
children: /* @__PURE__ */ W(
|
|
29589
|
+
children: /* @__PURE__ */ W(tJ, {
|
|
29581
29590
|
node: e,
|
|
29582
29591
|
name: t
|
|
29583
29592
|
})
|
|
29584
|
-
}) : a === "null" ? /* @__PURE__ */ W(
|
|
29593
|
+
}) : a === "null" ? /* @__PURE__ */ W(Bq, {}) : a === "boolean" ? /* @__PURE__ */ W(Mq, {
|
|
29585
29594
|
node: e,
|
|
29586
29595
|
name: t
|
|
29587
|
-
}) : a === "integer" || a === "number" ? /* @__PURE__ */ W(
|
|
29596
|
+
}) : a === "integer" || a === "number" ? /* @__PURE__ */ W(Vq, {
|
|
29588
29597
|
node: e,
|
|
29589
29598
|
name: t
|
|
29590
|
-
}) : a === "string" ? /* @__PURE__ */ W(
|
|
29599
|
+
}) : a === "string" ? /* @__PURE__ */ W(eJ, {
|
|
29591
29600
|
node: e,
|
|
29592
29601
|
name: t
|
|
29593
|
-
}) : i.properties || a === "object" ||
|
|
29602
|
+
}) : i.properties || a === "object" || yq(i) || bq(i) ? /* @__PURE__ */ W(Qq, {
|
|
29594
29603
|
node: e,
|
|
29595
29604
|
name: n,
|
|
29596
29605
|
depth: r
|
|
29597
|
-
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ W(
|
|
29606
|
+
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ W(Tq, {
|
|
29598
29607
|
node: e,
|
|
29599
29608
|
name: n,
|
|
29600
29609
|
depth: r
|
|
29601
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
29610
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${aJ(i)}). Field is omitted.`), null);
|
|
29602
29611
|
}
|
|
29603
|
-
function
|
|
29612
|
+
function iJ(e) {
|
|
29604
29613
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
29605
29614
|
}
|
|
29606
|
-
function
|
|
29615
|
+
function aJ(e) {
|
|
29607
29616
|
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";
|
|
29608
29617
|
}
|
|
29609
29618
|
//#endregion
|
|
29610
29619
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
29611
|
-
function aJ(e) {
|
|
29612
|
-
return oJ(e);
|
|
29613
|
-
}
|
|
29614
29620
|
function oJ(e) {
|
|
29621
|
+
return sJ(e);
|
|
29622
|
+
}
|
|
29623
|
+
function sJ(e) {
|
|
29615
29624
|
let t = { ...e };
|
|
29616
29625
|
if (t.properties) {
|
|
29617
29626
|
let e = new Set(t.required ?? []), n = {};
|
|
29618
29627
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
29619
|
-
let t =
|
|
29628
|
+
let t = sJ(i);
|
|
29620
29629
|
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;
|
|
29621
29630
|
}
|
|
29622
29631
|
t.properties = n;
|
|
29623
29632
|
}
|
|
29624
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
29633
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(sJ) : sJ(t.items), t.oneOf &&= t.oneOf.map(sJ), t.anyOf &&= t.anyOf.map(sJ), t.allOf &&= t.allOf.map(sJ), t.dependencies &&= rq(t.dependencies, sJ), t;
|
|
29625
29634
|
}
|
|
29626
29635
|
//#endregion
|
|
29627
29636
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
29628
|
-
function
|
|
29629
|
-
if (e
|
|
29637
|
+
function cJ(e) {
|
|
29638
|
+
if (_q(e)) return { deprecated: !0 };
|
|
29630
29639
|
let t = { ...e };
|
|
29631
29640
|
if (e.properties) {
|
|
29632
29641
|
let n = [];
|
|
29633
29642
|
t.properties = {};
|
|
29634
|
-
for (let [r, i] of Object.entries(e.properties)) i
|
|
29643
|
+
for (let [r, i] of Object.entries(e.properties)) _q(i) && n.push(r), t.properties[r] = cJ(i);
|
|
29635
29644
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
29636
29645
|
}
|
|
29637
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
29646
|
+
return e.items && !Array.isArray(e.items) && (t.items = cJ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => !_q(e)).map(cJ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => !_q(e)).map(cJ)), e.dependencies && (t.dependencies = rq(e.dependencies, cJ)), t;
|
|
29638
29647
|
}
|
|
29639
29648
|
//#endregion
|
|
29640
29649
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
29641
|
-
function
|
|
29642
|
-
let n =
|
|
29650
|
+
function lJ(e, t = "") {
|
|
29651
|
+
let n = oJ(cJ(iq(dq(e)))), r = /* @__PURE__ */ new Map();
|
|
29643
29652
|
return {
|
|
29644
|
-
root:
|
|
29653
|
+
root: uJ(n, "", !1, r, "", t),
|
|
29645
29654
|
nodeByPath: r,
|
|
29646
29655
|
variantIndices: /* @__PURE__ */ new Map()
|
|
29647
29656
|
};
|
|
29648
29657
|
}
|
|
29649
|
-
function
|
|
29658
|
+
function uJ(e, t, n, r, i = "", a = "") {
|
|
29650
29659
|
let o = {
|
|
29651
29660
|
rhfPath: t,
|
|
29652
29661
|
schema: e,
|
|
29653
29662
|
isRequired: n
|
|
29654
29663
|
};
|
|
29655
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
29664
|
+
if (e.gioConfig?.displayIf && (o.displayIf = hJ(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = hJ(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
29656
29665
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
29657
29666
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
29658
29667
|
let e = t ? `${t}.${o}` : o;
|
|
29659
|
-
i.set(o,
|
|
29668
|
+
i.set(o, uJ(s, e, n.has(o), r, t, a));
|
|
29660
29669
|
}
|
|
29661
29670
|
o.properties = i;
|
|
29662
29671
|
}
|
|
29663
29672
|
if (e.items && !Array.isArray(e.items)) {
|
|
29664
29673
|
let n = t ? `${t}.*` : "*";
|
|
29665
|
-
o.items =
|
|
29674
|
+
o.items = uJ(e.items, n, !1, r, t, a);
|
|
29666
29675
|
}
|
|
29667
29676
|
let s = e.oneOf ?? e.anyOf;
|
|
29668
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
29669
|
-
let n =
|
|
29677
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = dJ(s).map((e) => fJ(e, t, a))), e.dependencies) {
|
|
29678
|
+
let n = _J(e.dependencies, t, a);
|
|
29670
29679
|
n.length > 0 && (o.dependencyBranches = n);
|
|
29671
29680
|
}
|
|
29672
29681
|
return r.set(t, o), o;
|
|
29673
29682
|
}
|
|
29674
|
-
function
|
|
29683
|
+
function dJ(e) {
|
|
29675
29684
|
let t = /* @__PURE__ */ new Set();
|
|
29676
29685
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
29677
29686
|
}
|
|
29678
|
-
function
|
|
29687
|
+
function fJ(e, t, n) {
|
|
29679
29688
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
29680
29689
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
29681
|
-
let e =
|
|
29690
|
+
let e = pJ(s);
|
|
29682
29691
|
e && a.push({
|
|
29683
29692
|
key: o,
|
|
29684
29693
|
value: e.value
|
|
29685
29694
|
});
|
|
29686
29695
|
let c = t ? `${t}.${o}` : o;
|
|
29687
|
-
i.set(o,
|
|
29696
|
+
i.set(o, mJ(s, c, r.has(o), t, n));
|
|
29688
29697
|
}
|
|
29689
29698
|
let o;
|
|
29690
29699
|
if (e.dependencies) {
|
|
29691
|
-
let r =
|
|
29700
|
+
let r = _J(e.dependencies, t, n);
|
|
29692
29701
|
r.length > 0 && (o = r);
|
|
29693
29702
|
}
|
|
29694
29703
|
return {
|
|
@@ -29699,21 +29708,21 @@ function dJ(e, t, n) {
|
|
|
29699
29708
|
raw: e
|
|
29700
29709
|
};
|
|
29701
29710
|
}
|
|
29702
|
-
function
|
|
29711
|
+
function pJ(e) {
|
|
29703
29712
|
if (e.const !== void 0) return { value: e.const };
|
|
29704
29713
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
29705
29714
|
}
|
|
29706
|
-
function
|
|
29707
|
-
return
|
|
29715
|
+
function mJ(e, t, n, r, i) {
|
|
29716
|
+
return uJ(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
29708
29717
|
}
|
|
29709
|
-
function
|
|
29718
|
+
function hJ(e, t, n) {
|
|
29710
29719
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
29711
29720
|
for (let [a, o] of Object.entries(e.$eq)) {
|
|
29712
29721
|
if (a.startsWith("context.")) {
|
|
29713
29722
|
i.set(a.slice(8), o);
|
|
29714
29723
|
continue;
|
|
29715
29724
|
}
|
|
29716
|
-
let e =
|
|
29725
|
+
let e = gJ(a, t, n);
|
|
29717
29726
|
if (e === null) {
|
|
29718
29727
|
console.warn(`[JsonSchemaForm] gioConfig path "${a}" is unsupported (expected value.X / ./X / ../X / context.X).`);
|
|
29719
29728
|
continue;
|
|
@@ -29725,7 +29734,7 @@ function mJ(e, t, n) {
|
|
|
29725
29734
|
$eqContext: i
|
|
29726
29735
|
} : { $eq: r };
|
|
29727
29736
|
}
|
|
29728
|
-
function
|
|
29737
|
+
function gJ(e, t, n) {
|
|
29729
29738
|
let r = null;
|
|
29730
29739
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
29731
29740
|
else if (e.startsWith("./")) {
|
|
@@ -29739,24 +29748,24 @@ function hJ(e, t, n) {
|
|
|
29739
29748
|
}
|
|
29740
29749
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
29741
29750
|
}
|
|
29742
|
-
function
|
|
29751
|
+
function _J(e, t, n) {
|
|
29743
29752
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
29744
|
-
let i =
|
|
29753
|
+
let i = vJ(e, r);
|
|
29745
29754
|
if (!i) return [];
|
|
29746
29755
|
let a = t ? `${t}.${e}` : e;
|
|
29747
|
-
return i.map((r) =>
|
|
29756
|
+
return i.map((r) => yJ(r, e, a, t, n));
|
|
29748
29757
|
});
|
|
29749
29758
|
}
|
|
29750
|
-
function
|
|
29759
|
+
function vJ(e, t) {
|
|
29751
29760
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
29752
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
29761
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && pJ(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);
|
|
29753
29762
|
}
|
|
29754
|
-
function
|
|
29755
|
-
let a =
|
|
29763
|
+
function yJ(e, t, n, r, i) {
|
|
29764
|
+
let a = pJ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
29756
29765
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
29757
29766
|
if (n === t) continue;
|
|
29758
29767
|
let e = r ? `${r}.${n}` : n;
|
|
29759
|
-
s.set(n,
|
|
29768
|
+
s.set(n, mJ(a, e, o.has(n), r, i));
|
|
29760
29769
|
}
|
|
29761
29770
|
let c = i ? `${i}.${n}` : n;
|
|
29762
29771
|
return {
|
|
@@ -29767,12 +29776,12 @@ function vJ(e, t, n, r, i) {
|
|
|
29767
29776
|
}
|
|
29768
29777
|
//#endregion
|
|
29769
29778
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
29770
|
-
function
|
|
29779
|
+
function bJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
29771
29780
|
let a = U(() => {
|
|
29772
29781
|
try {
|
|
29773
29782
|
return {
|
|
29774
29783
|
ok: !0,
|
|
29775
|
-
value:
|
|
29784
|
+
value: lJ(e, n)
|
|
29776
29785
|
};
|
|
29777
29786
|
} catch (e) {
|
|
29778
29787
|
return {
|
|
@@ -29801,7 +29810,7 @@ function yJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
29801
29810
|
]);
|
|
29802
29811
|
return o.ok ? /* @__PURE__ */ W(m.Provider, {
|
|
29803
29812
|
value: o.contextValue,
|
|
29804
|
-
children: /* @__PURE__ */ W(
|
|
29813
|
+
children: /* @__PURE__ */ W(nJ, { node: o.contextValue.index.root })
|
|
29805
29814
|
}) : /* @__PURE__ */ G("p", {
|
|
29806
29815
|
role: "alert",
|
|
29807
29816
|
className: "text-sm text-destructive",
|
|
@@ -29810,7 +29819,7 @@ function yJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
29810
29819
|
}
|
|
29811
29820
|
//#endregion
|
|
29812
29821
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
29813
|
-
function
|
|
29822
|
+
function xJ(...e) {
|
|
29814
29823
|
return async (t, n, r) => {
|
|
29815
29824
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
29816
29825
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -29825,7 +29834,7 @@ function bJ(...e) {
|
|
|
29825
29834
|
}
|
|
29826
29835
|
//#endregion
|
|
29827
29836
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
29828
|
-
var
|
|
29837
|
+
var SJ = /* @__PURE__ */ K(((e) => {
|
|
29829
29838
|
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;
|
|
29830
29839
|
var t = class {};
|
|
29831
29840
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -29930,9 +29939,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
29930
29939
|
return new r(e.toString());
|
|
29931
29940
|
}
|
|
29932
29941
|
e.regexpCode = g;
|
|
29933
|
-
})),
|
|
29942
|
+
})), CJ = /* @__PURE__ */ K(((e) => {
|
|
29934
29943
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
29935
|
-
var t =
|
|
29944
|
+
var t = SJ(), n = class extends Error {
|
|
29936
29945
|
constructor(e) {
|
|
29937
29946
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
29938
29947
|
}
|
|
@@ -30041,9 +30050,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30041
30050
|
return c;
|
|
30042
30051
|
}
|
|
30043
30052
|
};
|
|
30044
|
-
})),
|
|
30053
|
+
})), wJ = /* @__PURE__ */ K(((e) => {
|
|
30045
30054
|
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;
|
|
30046
|
-
var t =
|
|
30055
|
+
var t = SJ(), n = CJ(), r = SJ();
|
|
30047
30056
|
Object.defineProperty(e, "_", {
|
|
30048
30057
|
enumerable: !0,
|
|
30049
30058
|
get: function() {
|
|
@@ -30085,7 +30094,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30085
30094
|
return r.Name;
|
|
30086
30095
|
}
|
|
30087
30096
|
});
|
|
30088
|
-
var i =
|
|
30097
|
+
var i = CJ();
|
|
30089
30098
|
Object.defineProperty(e, "Scope", {
|
|
30090
30099
|
enumerable: !0,
|
|
30091
30100
|
get: function() {
|
|
@@ -30556,9 +30565,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30556
30565
|
function L(e) {
|
|
30557
30566
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
30558
30567
|
}
|
|
30559
|
-
})),
|
|
30568
|
+
})), TJ = /* @__PURE__ */ K(((e) => {
|
|
30560
30569
|
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;
|
|
30561
|
-
var t =
|
|
30570
|
+
var t = wJ(), n = SJ();
|
|
30562
30571
|
function r(e) {
|
|
30563
30572
|
let t = {};
|
|
30564
30573
|
for (let n of e) t[n] = !0;
|
|
@@ -30681,9 +30690,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30681
30690
|
}
|
|
30682
30691
|
}
|
|
30683
30692
|
e.checkStrictMode = x;
|
|
30684
|
-
})),
|
|
30693
|
+
})), EJ = /* @__PURE__ */ K(((e) => {
|
|
30685
30694
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
30686
|
-
var t =
|
|
30695
|
+
var t = wJ();
|
|
30687
30696
|
e.default = {
|
|
30688
30697
|
data: new t.Name("data"),
|
|
30689
30698
|
valCxt: new t.Name("valCxt"),
|
|
@@ -30702,9 +30711,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30702
30711
|
jsonLen: new t.Name("jsonLen"),
|
|
30703
30712
|
jsonPart: new t.Name("jsonPart")
|
|
30704
30713
|
};
|
|
30705
|
-
})),
|
|
30714
|
+
})), DJ = /* @__PURE__ */ K(((e) => {
|
|
30706
30715
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
30707
|
-
var t =
|
|
30716
|
+
var t = wJ(), n = TJ(), r = EJ();
|
|
30708
30717
|
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)` };
|
|
30709
30718
|
function i(n, r = e.keywordError, i, a) {
|
|
30710
30719
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -30766,9 +30775,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30766
30775
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
30767
30776
|
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]);
|
|
30768
30777
|
}
|
|
30769
|
-
})),
|
|
30778
|
+
})), OJ = /* @__PURE__ */ K(((e) => {
|
|
30770
30779
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
30771
|
-
var t =
|
|
30780
|
+
var t = DJ(), n = wJ(), r = EJ(), i = { message: "boolean schema is false" };
|
|
30772
30781
|
function a(e) {
|
|
30773
30782
|
let { gen: t, schema: i, validateName: a } = e;
|
|
30774
30783
|
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));
|
|
@@ -30792,7 +30801,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30792
30801
|
};
|
|
30793
30802
|
(0, t.reportError)(o, i, void 0, n);
|
|
30794
30803
|
}
|
|
30795
|
-
})),
|
|
30804
|
+
})), kJ = /* @__PURE__ */ K(((e) => {
|
|
30796
30805
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
30797
30806
|
var t = new Set([
|
|
30798
30807
|
"string",
|
|
@@ -30846,7 +30855,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30846
30855
|
};
|
|
30847
30856
|
}
|
|
30848
30857
|
e.getRules = r;
|
|
30849
|
-
})),
|
|
30858
|
+
})), AJ = /* @__PURE__ */ K(((e) => {
|
|
30850
30859
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
30851
30860
|
function t({ schema: e, self: t }, r) {
|
|
30852
30861
|
let i = t.RULES.types[r];
|
|
@@ -30861,9 +30870,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30861
30870
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
30862
30871
|
}
|
|
30863
30872
|
e.shouldUseRule = r;
|
|
30864
|
-
})),
|
|
30873
|
+
})), jJ = /* @__PURE__ */ K(((e) => {
|
|
30865
30874
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
30866
|
-
var t =
|
|
30875
|
+
var t = kJ(), n = AJ(), r = DJ(), i = wJ(), a = TJ(), o;
|
|
30867
30876
|
(function(e) {
|
|
30868
30877
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
30869
30878
|
})(o || (e.DataType = o = {}));
|
|
@@ -30998,9 +31007,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
30998
31007
|
it: e
|
|
30999
31008
|
};
|
|
31000
31009
|
}
|
|
31001
|
-
})),
|
|
31010
|
+
})), MJ = /* @__PURE__ */ K(((e) => {
|
|
31002
31011
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
31003
|
-
var t =
|
|
31012
|
+
var t = wJ(), n = TJ();
|
|
31004
31013
|
function r(e, t) {
|
|
31005
31014
|
let { properties: n, items: r } = e.schema;
|
|
31006
31015
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -31018,9 +31027,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31018
31027
|
let u = (0, t._)`${l} === undefined`;
|
|
31019
31028
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
31020
31029
|
}
|
|
31021
|
-
})),
|
|
31030
|
+
})), NJ = /* @__PURE__ */ K(((e) => {
|
|
31022
31031
|
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;
|
|
31023
|
-
var t =
|
|
31032
|
+
var t = wJ(), n = TJ(), r = EJ(), i = TJ();
|
|
31024
31033
|
function a(e, n) {
|
|
31025
31034
|
let { gen: r, data: i, it: a } = e;
|
|
31026
31035
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -31122,9 +31131,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31122
31131
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
31123
31132
|
}
|
|
31124
31133
|
e.validateUnion = v;
|
|
31125
|
-
})),
|
|
31134
|
+
})), PJ = /* @__PURE__ */ K(((e) => {
|
|
31126
31135
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
31127
|
-
var t =
|
|
31136
|
+
var t = wJ(), n = EJ(), r = NJ(), i = DJ();
|
|
31128
31137
|
function a(e, n) {
|
|
31129
31138
|
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);
|
|
31130
31139
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -31203,9 +31212,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31203
31212
|
}
|
|
31204
31213
|
}
|
|
31205
31214
|
e.validateKeywordUsage = f;
|
|
31206
|
-
})),
|
|
31215
|
+
})), FJ = /* @__PURE__ */ K(((e) => {
|
|
31207
31216
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
31208
|
-
var t =
|
|
31217
|
+
var t = wJ(), n = TJ();
|
|
31209
31218
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
31210
31219
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
31211
31220
|
if (r !== void 0) {
|
|
@@ -31249,7 +31258,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31249
31258
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
31250
31259
|
}
|
|
31251
31260
|
e.extendSubschemaMode = a;
|
|
31252
|
-
})),
|
|
31261
|
+
})), IJ = /* @__PURE__ */ K(((e, t) => {
|
|
31253
31262
|
t.exports = function e(t, n) {
|
|
31254
31263
|
if (t === n) return !0;
|
|
31255
31264
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -31273,7 +31282,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31273
31282
|
}
|
|
31274
31283
|
return t !== t && n !== n;
|
|
31275
31284
|
};
|
|
31276
|
-
})),
|
|
31285
|
+
})), LJ = /* @__PURE__ */ K(((e, t) => {
|
|
31277
31286
|
var n = t.exports = function(e, t, n) {
|
|
31278
31287
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
31279
31288
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -31336,9 +31345,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31336
31345
|
function i(e) {
|
|
31337
31346
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
31338
31347
|
}
|
|
31339
|
-
})),
|
|
31348
|
+
})), RJ = /* @__PURE__ */ K(((e) => {
|
|
31340
31349
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
31341
|
-
var t =
|
|
31350
|
+
var t = TJ(), n = IJ(), r = LJ(), i = new Set([
|
|
31342
31351
|
"type",
|
|
31343
31352
|
"format",
|
|
31344
31353
|
"pattern",
|
|
@@ -31427,9 +31436,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31427
31436
|
}
|
|
31428
31437
|
}
|
|
31429
31438
|
e.getSchemaRefs = h;
|
|
31430
|
-
})),
|
|
31439
|
+
})), zJ = /* @__PURE__ */ K(((e) => {
|
|
31431
31440
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
31432
|
-
var t =
|
|
31441
|
+
var t = OJ(), n = jJ(), r = AJ(), i = jJ(), a = MJ(), o = PJ(), s = FJ(), c = wJ(), l = EJ(), u = RJ(), d = TJ(), f = DJ();
|
|
31433
31442
|
function p(e) {
|
|
31434
31443
|
if (S(e) && (w(e), x(e))) {
|
|
31435
31444
|
_(e);
|
|
@@ -31719,23 +31728,23 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31719
31728
|
}
|
|
31720
31729
|
}
|
|
31721
31730
|
e.getData = se;
|
|
31722
|
-
})),
|
|
31731
|
+
})), BJ = /* @__PURE__ */ K(((e) => {
|
|
31723
31732
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
31724
31733
|
constructor(e) {
|
|
31725
31734
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
31726
31735
|
}
|
|
31727
31736
|
};
|
|
31728
|
-
})),
|
|
31737
|
+
})), VJ = /* @__PURE__ */ K(((e) => {
|
|
31729
31738
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
31730
|
-
var t =
|
|
31739
|
+
var t = RJ();
|
|
31731
31740
|
e.default = class extends Error {
|
|
31732
31741
|
constructor(e, n, r, i) {
|
|
31733
31742
|
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));
|
|
31734
31743
|
}
|
|
31735
31744
|
};
|
|
31736
|
-
})),
|
|
31745
|
+
})), HJ = /* @__PURE__ */ K(((e) => {
|
|
31737
31746
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
31738
|
-
var t =
|
|
31747
|
+
var t = wJ(), n = BJ(), r = EJ(), i = RJ(), a = TJ(), o = zJ(), s = class {
|
|
31739
31748
|
constructor(e) {
|
|
31740
31749
|
this.refs = {}, this.dynamicAnchors = {};
|
|
31741
31750
|
let t;
|
|
@@ -31894,27 +31903,27 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
31894
31903
|
baseId: t
|
|
31895
31904
|
}), o.schema !== o.root.schema) return o;
|
|
31896
31905
|
}
|
|
31897
|
-
})),
|
|
31898
|
-
$id: () =>
|
|
31906
|
+
})), UJ = /* @__PURE__ */ it({
|
|
31907
|
+
$id: () => WJ,
|
|
31899
31908
|
additionalProperties: () => !1,
|
|
31900
|
-
default: () =>
|
|
31901
|
-
description: () =>
|
|
31902
|
-
properties: () =>
|
|
31903
|
-
required: () =>
|
|
31904
|
-
type: () =>
|
|
31905
|
-
}),
|
|
31906
|
-
|
|
31909
|
+
default: () => YJ,
|
|
31910
|
+
description: () => GJ,
|
|
31911
|
+
properties: () => JJ,
|
|
31912
|
+
required: () => qJ,
|
|
31913
|
+
type: () => KJ
|
|
31914
|
+
}), WJ, GJ, KJ, qJ, JJ, YJ, XJ = rt((() => {
|
|
31915
|
+
WJ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", GJ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", KJ = "object", qJ = ["$data"], JJ = { $data: {
|
|
31907
31916
|
type: "string",
|
|
31908
31917
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
31909
|
-
} },
|
|
31910
|
-
$id:
|
|
31911
|
-
description:
|
|
31912
|
-
type:
|
|
31913
|
-
required:
|
|
31914
|
-
properties:
|
|
31918
|
+
} }, YJ = {
|
|
31919
|
+
$id: WJ,
|
|
31920
|
+
description: GJ,
|
|
31921
|
+
type: KJ,
|
|
31922
|
+
required: qJ,
|
|
31923
|
+
properties: JJ,
|
|
31915
31924
|
additionalProperties: !1
|
|
31916
31925
|
};
|
|
31917
|
-
})),
|
|
31926
|
+
})), ZJ = /* @__PURE__ */ K(((e, t) => {
|
|
31918
31927
|
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(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
31919
31928
|
function s(e) {
|
|
31920
31929
|
let t = "", n = 0, r = 0;
|
|
@@ -32126,8 +32135,8 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32126
32135
|
normalizeIPv6: f,
|
|
32127
32136
|
stringArrayToHexStripped: s
|
|
32128
32137
|
};
|
|
32129
|
-
})),
|
|
32130
|
-
var { isUUID: n } =
|
|
32138
|
+
})), QJ = /* @__PURE__ */ K(((e, t) => {
|
|
32139
|
+
var { isUUID: n } = ZJ(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
32131
32140
|
"http",
|
|
32132
32141
|
"https",
|
|
32133
32142
|
"ws",
|
|
@@ -32232,8 +32241,8 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32232
32241
|
isValidSchemeName: a,
|
|
32233
32242
|
getSchemeHandler: y
|
|
32234
32243
|
};
|
|
32235
|
-
})),
|
|
32236
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
32244
|
+
})), $J = /* @__PURE__ */ K(((e, t) => {
|
|
32245
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = ZJ(), { SCHEMES: d, getSchemeHandler: f } = QJ();
|
|
32237
32246
|
function p(e, t) {
|
|
32238
32247
|
return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
|
|
32239
32248
|
}
|
|
@@ -32347,20 +32356,20 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32347
32356
|
parse: x
|
|
32348
32357
|
};
|
|
32349
32358
|
t.exports = T, t.exports.default = T, t.exports.fastUri = T;
|
|
32350
|
-
})),
|
|
32359
|
+
})), eY = /* @__PURE__ */ K(((e) => {
|
|
32351
32360
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32352
|
-
var t =
|
|
32361
|
+
var t = $J();
|
|
32353
32362
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
32354
|
-
})),
|
|
32363
|
+
})), tY = /* @__PURE__ */ K(((e) => {
|
|
32355
32364
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
32356
|
-
var t =
|
|
32365
|
+
var t = zJ();
|
|
32357
32366
|
Object.defineProperty(e, "KeywordCxt", {
|
|
32358
32367
|
enumerable: !0,
|
|
32359
32368
|
get: function() {
|
|
32360
32369
|
return t.KeywordCxt;
|
|
32361
32370
|
}
|
|
32362
32371
|
});
|
|
32363
|
-
var n =
|
|
32372
|
+
var n = wJ();
|
|
32364
32373
|
Object.defineProperty(e, "_", {
|
|
32365
32374
|
enumerable: !0,
|
|
32366
32375
|
get: function() {
|
|
@@ -32392,7 +32401,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32392
32401
|
return n.CodeGen;
|
|
32393
32402
|
}
|
|
32394
32403
|
});
|
|
32395
|
-
var r =
|
|
32404
|
+
var r = BJ(), i = VJ(), a = kJ(), o = HJ(), s = wJ(), c = RJ(), l = jJ(), u = TJ(), d = (XJ(), st(UJ).default), f = eY(), p = (e, t) => new RegExp(e, t);
|
|
32396
32405
|
p.code = "new RegExp";
|
|
32397
32406
|
var m = [
|
|
32398
32407
|
"removeAdditional",
|
|
@@ -32778,16 +32787,16 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32778
32787
|
function F(e) {
|
|
32779
32788
|
return { anyOf: [e, P] };
|
|
32780
32789
|
}
|
|
32781
|
-
})),
|
|
32790
|
+
})), nY = /* @__PURE__ */ K(((e) => {
|
|
32782
32791
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
32783
32792
|
keyword: "id",
|
|
32784
32793
|
code() {
|
|
32785
32794
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
32786
32795
|
}
|
|
32787
32796
|
};
|
|
32788
|
-
})),
|
|
32797
|
+
})), rY = /* @__PURE__ */ K(((e) => {
|
|
32789
32798
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
32790
|
-
var t =
|
|
32799
|
+
var t = VJ(), n = NJ(), r = wJ(), i = EJ(), a = HJ(), o = TJ(), s = {
|
|
32791
32800
|
keyword: "$ref",
|
|
32792
32801
|
schemaType: "string",
|
|
32793
32802
|
code(e) {
|
|
@@ -32860,9 +32869,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32860
32869
|
}
|
|
32861
32870
|
}
|
|
32862
32871
|
e.callRef = l, e.default = s;
|
|
32863
|
-
})),
|
|
32872
|
+
})), iY = /* @__PURE__ */ K(((e) => {
|
|
32864
32873
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32865
|
-
var t =
|
|
32874
|
+
var t = nY(), n = rY();
|
|
32866
32875
|
e.default = [
|
|
32867
32876
|
"$schema",
|
|
32868
32877
|
"$id",
|
|
@@ -32873,9 +32882,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32873
32882
|
t.default,
|
|
32874
32883
|
n.default
|
|
32875
32884
|
];
|
|
32876
|
-
})),
|
|
32885
|
+
})), aY = /* @__PURE__ */ K(((e) => {
|
|
32877
32886
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32878
|
-
var t =
|
|
32887
|
+
var t = wJ(), n = t.operators, r = {
|
|
32879
32888
|
maximum: {
|
|
32880
32889
|
okStr: "<=",
|
|
32881
32890
|
ok: n.LTE,
|
|
@@ -32911,9 +32920,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32911
32920
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
32912
32921
|
}
|
|
32913
32922
|
};
|
|
32914
|
-
})),
|
|
32923
|
+
})), oY = /* @__PURE__ */ K(((e) => {
|
|
32915
32924
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32916
|
-
var t =
|
|
32925
|
+
var t = wJ();
|
|
32917
32926
|
e.default = {
|
|
32918
32927
|
keyword: "multipleOf",
|
|
32919
32928
|
type: "number",
|
|
@@ -32928,7 +32937,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32928
32937
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
32929
32938
|
}
|
|
32930
32939
|
};
|
|
32931
|
-
})),
|
|
32940
|
+
})), sY = /* @__PURE__ */ K(((e) => {
|
|
32932
32941
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32933
32942
|
function t(e) {
|
|
32934
32943
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -32936,9 +32945,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32936
32945
|
return n;
|
|
32937
32946
|
}
|
|
32938
32947
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
32939
|
-
})),
|
|
32948
|
+
})), cY = /* @__PURE__ */ K(((e) => {
|
|
32940
32949
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32941
|
-
var t =
|
|
32950
|
+
var t = wJ(), n = TJ(), r = sY();
|
|
32942
32951
|
e.default = {
|
|
32943
32952
|
keyword: ["maxLength", "minLength"],
|
|
32944
32953
|
type: "string",
|
|
@@ -32956,9 +32965,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32956
32965
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
32957
32966
|
}
|
|
32958
32967
|
};
|
|
32959
|
-
})),
|
|
32968
|
+
})), lY = /* @__PURE__ */ K(((e) => {
|
|
32960
32969
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32961
|
-
var t =
|
|
32970
|
+
var t = NJ(), n = TJ(), r = wJ();
|
|
32962
32971
|
e.default = {
|
|
32963
32972
|
keyword: "pattern",
|
|
32964
32973
|
type: "string",
|
|
@@ -32979,9 +32988,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32979
32988
|
}
|
|
32980
32989
|
}
|
|
32981
32990
|
};
|
|
32982
|
-
})),
|
|
32991
|
+
})), uY = /* @__PURE__ */ K(((e) => {
|
|
32983
32992
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32984
|
-
var t =
|
|
32993
|
+
var t = wJ();
|
|
32985
32994
|
e.default = {
|
|
32986
32995
|
keyword: ["maxProperties", "minProperties"],
|
|
32987
32996
|
type: "object",
|
|
@@ -32999,9 +33008,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
32999
33008
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
33000
33009
|
}
|
|
33001
33010
|
};
|
|
33002
|
-
})),
|
|
33011
|
+
})), dY = /* @__PURE__ */ K(((e) => {
|
|
33003
33012
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33004
|
-
var t =
|
|
33013
|
+
var t = NJ(), n = wJ(), r = TJ();
|
|
33005
33014
|
e.default = {
|
|
33006
33015
|
keyword: "required",
|
|
33007
33016
|
type: "object",
|
|
@@ -33047,9 +33056,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33047
33056
|
}
|
|
33048
33057
|
}
|
|
33049
33058
|
};
|
|
33050
|
-
})),
|
|
33059
|
+
})), fY = /* @__PURE__ */ K(((e) => {
|
|
33051
33060
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33052
|
-
var t =
|
|
33061
|
+
var t = wJ();
|
|
33053
33062
|
e.default = {
|
|
33054
33063
|
keyword: ["maxItems", "minItems"],
|
|
33055
33064
|
type: "array",
|
|
@@ -33067,13 +33076,13 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33067
33076
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
33068
33077
|
}
|
|
33069
33078
|
};
|
|
33070
|
-
})),
|
|
33079
|
+
})), pY = /* @__PURE__ */ K(((e) => {
|
|
33071
33080
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33072
|
-
var t =
|
|
33081
|
+
var t = IJ();
|
|
33073
33082
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
33074
|
-
})),
|
|
33083
|
+
})), mY = /* @__PURE__ */ K(((e) => {
|
|
33075
33084
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33076
|
-
var t =
|
|
33085
|
+
var t = jJ(), n = wJ(), r = TJ(), i = pY();
|
|
33077
33086
|
e.default = {
|
|
33078
33087
|
keyword: "uniqueItems",
|
|
33079
33088
|
type: "array",
|
|
@@ -33114,9 +33123,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33114
33123
|
}
|
|
33115
33124
|
}
|
|
33116
33125
|
};
|
|
33117
|
-
})),
|
|
33126
|
+
})), hY = /* @__PURE__ */ K(((e) => {
|
|
33118
33127
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33119
|
-
var t =
|
|
33128
|
+
var t = wJ(), n = TJ(), r = pY();
|
|
33120
33129
|
e.default = {
|
|
33121
33130
|
keyword: "const",
|
|
33122
33131
|
$data: !0,
|
|
@@ -33129,9 +33138,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33129
33138
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
33130
33139
|
}
|
|
33131
33140
|
};
|
|
33132
|
-
})),
|
|
33141
|
+
})), gY = /* @__PURE__ */ K(((e) => {
|
|
33133
33142
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33134
|
-
var t =
|
|
33143
|
+
var t = wJ(), n = TJ(), r = pY();
|
|
33135
33144
|
e.default = {
|
|
33136
33145
|
keyword: "enum",
|
|
33137
33146
|
schemaType: "array",
|
|
@@ -33161,9 +33170,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33161
33170
|
}
|
|
33162
33171
|
}
|
|
33163
33172
|
};
|
|
33164
|
-
})),
|
|
33173
|
+
})), _Y = /* @__PURE__ */ K(((e) => {
|
|
33165
33174
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33166
|
-
var t =
|
|
33175
|
+
var t = aY(), n = oY(), r = cY(), i = lY(), a = uY(), o = dY(), s = fY(), c = mY(), l = hY(), u = gY();
|
|
33167
33176
|
e.default = [
|
|
33168
33177
|
t.default,
|
|
33169
33178
|
n.default,
|
|
@@ -33184,9 +33193,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33184
33193
|
l.default,
|
|
33185
33194
|
u.default
|
|
33186
33195
|
];
|
|
33187
|
-
})),
|
|
33196
|
+
})), vY = /* @__PURE__ */ K(((e) => {
|
|
33188
33197
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
33189
|
-
var t =
|
|
33198
|
+
var t = wJ(), n = TJ(), r = {
|
|
33190
33199
|
keyword: "additionalItems",
|
|
33191
33200
|
type: "array",
|
|
33192
33201
|
schemaType: ["boolean", "object"],
|
|
@@ -33224,9 +33233,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33224
33233
|
}
|
|
33225
33234
|
}
|
|
33226
33235
|
e.validateAdditionalItems = i, e.default = r;
|
|
33227
|
-
})),
|
|
33236
|
+
})), yY = /* @__PURE__ */ K(((e) => {
|
|
33228
33237
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
33229
|
-
var t =
|
|
33238
|
+
var t = wJ(), n = TJ(), r = NJ(), i = {
|
|
33230
33239
|
keyword: "items",
|
|
33231
33240
|
type: "array",
|
|
33232
33241
|
schemaType: [
|
|
@@ -33261,9 +33270,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33261
33270
|
}
|
|
33262
33271
|
}
|
|
33263
33272
|
e.validateTuple = a, e.default = i;
|
|
33264
|
-
})),
|
|
33273
|
+
})), bY = /* @__PURE__ */ K(((e) => {
|
|
33265
33274
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33266
|
-
var t =
|
|
33275
|
+
var t = yY();
|
|
33267
33276
|
e.default = {
|
|
33268
33277
|
keyword: "prefixItems",
|
|
33269
33278
|
type: "array",
|
|
@@ -33271,9 +33280,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33271
33280
|
before: "uniqueItems",
|
|
33272
33281
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
33273
33282
|
};
|
|
33274
|
-
})),
|
|
33283
|
+
})), xY = /* @__PURE__ */ K(((e) => {
|
|
33275
33284
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33276
|
-
var t =
|
|
33285
|
+
var t = wJ(), n = TJ(), r = NJ(), i = vY();
|
|
33277
33286
|
e.default = {
|
|
33278
33287
|
keyword: "items",
|
|
33279
33288
|
type: "array",
|
|
@@ -33288,9 +33297,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33288
33297
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
33289
33298
|
}
|
|
33290
33299
|
};
|
|
33291
|
-
})),
|
|
33300
|
+
})), SY = /* @__PURE__ */ K(((e) => {
|
|
33292
33301
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33293
|
-
var t =
|
|
33302
|
+
var t = wJ(), n = TJ();
|
|
33294
33303
|
e.default = {
|
|
33295
33304
|
keyword: "contains",
|
|
33296
33305
|
type: "array",
|
|
@@ -33343,9 +33352,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33343
33352
|
}
|
|
33344
33353
|
}
|
|
33345
33354
|
};
|
|
33346
|
-
})),
|
|
33355
|
+
})), CY = /* @__PURE__ */ K(((e) => {
|
|
33347
33356
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
33348
|
-
var t =
|
|
33357
|
+
var t = wJ(), n = TJ(), r = NJ();
|
|
33349
33358
|
e.error = {
|
|
33350
33359
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
33351
33360
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -33404,9 +33413,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33404
33413
|
}, () => i.var(c, !0)), e.ok(c));
|
|
33405
33414
|
}
|
|
33406
33415
|
e.validateSchemaDeps = s, e.default = i;
|
|
33407
|
-
})),
|
|
33416
|
+
})), wY = /* @__PURE__ */ K(((e) => {
|
|
33408
33417
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33409
|
-
var t =
|
|
33418
|
+
var t = wJ(), n = TJ();
|
|
33410
33419
|
e.default = {
|
|
33411
33420
|
keyword: "propertyNames",
|
|
33412
33421
|
type: "object",
|
|
@@ -33432,9 +33441,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33432
33441
|
}), e.ok(s);
|
|
33433
33442
|
}
|
|
33434
33443
|
};
|
|
33435
|
-
})),
|
|
33444
|
+
})), TY = /* @__PURE__ */ K(((e) => {
|
|
33436
33445
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33437
|
-
var t =
|
|
33446
|
+
var t = NJ(), n = wJ(), r = EJ(), i = TJ();
|
|
33438
33447
|
e.default = {
|
|
33439
33448
|
keyword: "additionalProperties",
|
|
33440
33449
|
type: ["object"],
|
|
@@ -33499,9 +33508,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33499
33508
|
}
|
|
33500
33509
|
}
|
|
33501
33510
|
};
|
|
33502
|
-
})),
|
|
33511
|
+
})), EY = /* @__PURE__ */ K(((e) => {
|
|
33503
33512
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33504
|
-
var t =
|
|
33513
|
+
var t = zJ(), n = NJ(), r = TJ(), i = TY();
|
|
33505
33514
|
e.default = {
|
|
33506
33515
|
keyword: "properties",
|
|
33507
33516
|
type: "object",
|
|
@@ -33528,9 +33537,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33528
33537
|
}
|
|
33529
33538
|
}
|
|
33530
33539
|
};
|
|
33531
|
-
})),
|
|
33540
|
+
})), DY = /* @__PURE__ */ K(((e) => {
|
|
33532
33541
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33533
|
-
var t =
|
|
33542
|
+
var t = NJ(), n = wJ(), r = TJ(), i = TJ();
|
|
33534
33543
|
e.default = {
|
|
33535
33544
|
keyword: "patternProperties",
|
|
33536
33545
|
type: "object",
|
|
@@ -33563,9 +33572,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33563
33572
|
}
|
|
33564
33573
|
}
|
|
33565
33574
|
};
|
|
33566
|
-
})),
|
|
33575
|
+
})), OY = /* @__PURE__ */ K(((e) => {
|
|
33567
33576
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33568
|
-
var t =
|
|
33577
|
+
var t = TJ();
|
|
33569
33578
|
e.default = {
|
|
33570
33579
|
keyword: "not",
|
|
33571
33580
|
schemaType: ["object", "boolean"],
|
|
@@ -33586,17 +33595,17 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33586
33595
|
},
|
|
33587
33596
|
error: { message: "must NOT be valid" }
|
|
33588
33597
|
};
|
|
33589
|
-
})),
|
|
33598
|
+
})), kY = /* @__PURE__ */ K(((e) => {
|
|
33590
33599
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
33591
33600
|
keyword: "anyOf",
|
|
33592
33601
|
schemaType: "array",
|
|
33593
33602
|
trackErrors: !0,
|
|
33594
|
-
code:
|
|
33603
|
+
code: NJ().validateUnion,
|
|
33595
33604
|
error: { message: "must match a schema in anyOf" }
|
|
33596
33605
|
};
|
|
33597
|
-
})),
|
|
33606
|
+
})), AY = /* @__PURE__ */ K(((e) => {
|
|
33598
33607
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33599
|
-
var t =
|
|
33608
|
+
var t = wJ(), n = TJ();
|
|
33600
33609
|
e.default = {
|
|
33601
33610
|
keyword: "oneOf",
|
|
33602
33611
|
schemaType: "array",
|
|
@@ -33626,9 +33635,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33626
33635
|
}
|
|
33627
33636
|
}
|
|
33628
33637
|
};
|
|
33629
|
-
})),
|
|
33638
|
+
})), jY = /* @__PURE__ */ K(((e) => {
|
|
33630
33639
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33631
|
-
var t =
|
|
33640
|
+
var t = TJ();
|
|
33632
33641
|
e.default = {
|
|
33633
33642
|
keyword: "allOf",
|
|
33634
33643
|
schemaType: "array",
|
|
@@ -33647,9 +33656,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33647
33656
|
});
|
|
33648
33657
|
}
|
|
33649
33658
|
};
|
|
33650
|
-
})),
|
|
33659
|
+
})), MY = /* @__PURE__ */ K(((e) => {
|
|
33651
33660
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33652
|
-
var t =
|
|
33661
|
+
var t = wJ(), n = TJ(), r = {
|
|
33653
33662
|
keyword: "if",
|
|
33654
33663
|
schemaType: ["object", "boolean"],
|
|
33655
33664
|
trackErrors: !0,
|
|
@@ -33690,9 +33699,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33690
33699
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
33691
33700
|
}
|
|
33692
33701
|
e.default = r;
|
|
33693
|
-
})),
|
|
33702
|
+
})), NY = /* @__PURE__ */ K(((e) => {
|
|
33694
33703
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33695
|
-
var t =
|
|
33704
|
+
var t = TJ();
|
|
33696
33705
|
e.default = {
|
|
33697
33706
|
keyword: ["then", "else"],
|
|
33698
33707
|
schemaType: ["object", "boolean"],
|
|
@@ -33700,9 +33709,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33700
33709
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
33701
33710
|
}
|
|
33702
33711
|
};
|
|
33703
|
-
})),
|
|
33712
|
+
})), PY = /* @__PURE__ */ K(((e) => {
|
|
33704
33713
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33705
|
-
var t =
|
|
33714
|
+
var t = vY(), n = bY(), r = yY(), i = xY(), a = SY(), o = CY(), s = wY(), c = TY(), l = EY(), u = DY(), d = OY(), f = kY(), p = AY(), m = jY(), h = MY(), g = NY();
|
|
33706
33715
|
function _(e = !1) {
|
|
33707
33716
|
let _ = [
|
|
33708
33717
|
d.default,
|
|
@@ -33720,9 +33729,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33720
33729
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
33721
33730
|
}
|
|
33722
33731
|
e.default = _;
|
|
33723
|
-
})),
|
|
33732
|
+
})), FY = /* @__PURE__ */ K(((e) => {
|
|
33724
33733
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33725
|
-
var t =
|
|
33734
|
+
var t = wJ();
|
|
33726
33735
|
e.default = {
|
|
33727
33736
|
keyword: "format",
|
|
33728
33737
|
type: ["number", "string"],
|
|
@@ -33795,9 +33804,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33795
33804
|
}
|
|
33796
33805
|
}
|
|
33797
33806
|
};
|
|
33798
|
-
})), FY = /* @__PURE__ */ K(((e) => {
|
|
33799
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [PY().default];
|
|
33800
33807
|
})), IY = /* @__PURE__ */ K(((e) => {
|
|
33808
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [FY().default];
|
|
33809
|
+
})), LY = /* @__PURE__ */ K(((e) => {
|
|
33801
33810
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
33802
33811
|
"title",
|
|
33803
33812
|
"description",
|
|
@@ -33811,9 +33820,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33811
33820
|
"contentEncoding",
|
|
33812
33821
|
"contentSchema"
|
|
33813
33822
|
];
|
|
33814
|
-
})),
|
|
33823
|
+
})), RY = /* @__PURE__ */ K(((e) => {
|
|
33815
33824
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33816
|
-
var t =
|
|
33825
|
+
var t = iY(), n = _Y(), r = PY(), i = IY(), a = LY();
|
|
33817
33826
|
e.default = [
|
|
33818
33827
|
t.default,
|
|
33819
33828
|
n.default,
|
|
@@ -33822,15 +33831,15 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33822
33831
|
a.metadataVocabulary,
|
|
33823
33832
|
a.contentVocabulary
|
|
33824
33833
|
];
|
|
33825
|
-
})),
|
|
33834
|
+
})), zY = /* @__PURE__ */ K(((e) => {
|
|
33826
33835
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
33827
33836
|
var t;
|
|
33828
33837
|
(function(e) {
|
|
33829
33838
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
33830
33839
|
})(t || (e.DiscrError = t = {}));
|
|
33831
|
-
})),
|
|
33840
|
+
})), BY = /* @__PURE__ */ K(((e) => {
|
|
33832
33841
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33833
|
-
var t =
|
|
33842
|
+
var t = wJ(), n = zY(), r = HJ(), i = VJ(), a = TJ();
|
|
33834
33843
|
e.default = {
|
|
33835
33844
|
keyword: "discriminator",
|
|
33836
33845
|
type: "object",
|
|
@@ -33898,16 +33907,16 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33898
33907
|
}
|
|
33899
33908
|
}
|
|
33900
33909
|
};
|
|
33901
|
-
})),
|
|
33902
|
-
$id: () =>
|
|
33903
|
-
$schema: () =>
|
|
33904
|
-
default: () =>
|
|
33905
|
-
definitions: () =>
|
|
33906
|
-
properties: () =>
|
|
33907
|
-
title: () =>
|
|
33908
|
-
type: () =>
|
|
33909
|
-
}),
|
|
33910
|
-
|
|
33910
|
+
})), VY = /* @__PURE__ */ it({
|
|
33911
|
+
$id: () => UY,
|
|
33912
|
+
$schema: () => HY,
|
|
33913
|
+
default: () => JY,
|
|
33914
|
+
definitions: () => GY,
|
|
33915
|
+
properties: () => qY,
|
|
33916
|
+
title: () => WY,
|
|
33917
|
+
type: () => KY
|
|
33918
|
+
}), HY, UY, WY, GY, KY, qY, JY, YY = rt((() => {
|
|
33919
|
+
HY = "http://json-schema.org/draft-07/schema#", UY = "http://json-schema.org/draft-07/schema#", WY = "Core schema meta-schema", GY = {
|
|
33911
33920
|
schemaArray: {
|
|
33912
33921
|
type: "array",
|
|
33913
33922
|
minItems: 1,
|
|
@@ -33933,7 +33942,7 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
33933
33942
|
uniqueItems: !0,
|
|
33934
33943
|
default: []
|
|
33935
33944
|
}
|
|
33936
|
-
},
|
|
33945
|
+
}, KY = ["object", "boolean"], qY = {
|
|
33937
33946
|
$id: {
|
|
33938
33947
|
type: "string",
|
|
33939
33948
|
format: "uri-reference"
|
|
@@ -34032,18 +34041,18 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
34032
34041
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
34033
34042
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
34034
34043
|
not: { $ref: "#" }
|
|
34035
|
-
},
|
|
34036
|
-
$schema:
|
|
34037
|
-
$id:
|
|
34038
|
-
title:
|
|
34039
|
-
definitions:
|
|
34040
|
-
type:
|
|
34041
|
-
properties:
|
|
34044
|
+
}, JY = {
|
|
34045
|
+
$schema: HY,
|
|
34046
|
+
$id: UY,
|
|
34047
|
+
title: WY,
|
|
34048
|
+
definitions: GY,
|
|
34049
|
+
type: KY,
|
|
34050
|
+
properties: qY,
|
|
34042
34051
|
default: !0
|
|
34043
34052
|
};
|
|
34044
|
-
})),
|
|
34053
|
+
})), XY = /* @__PURE__ */ K(((e, t) => {
|
|
34045
34054
|
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;
|
|
34046
|
-
var n =
|
|
34055
|
+
var n = tY(), r = RY(), i = BY(), a = (YY(), st(VY).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
34047
34056
|
_addVocabularies() {
|
|
34048
34057
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
34049
34058
|
}
|
|
@@ -34057,14 +34066,14 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
34057
34066
|
}
|
|
34058
34067
|
};
|
|
34059
34068
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
34060
|
-
var l =
|
|
34069
|
+
var l = zJ();
|
|
34061
34070
|
Object.defineProperty(e, "KeywordCxt", {
|
|
34062
34071
|
enumerable: !0,
|
|
34063
34072
|
get: function() {
|
|
34064
34073
|
return l.KeywordCxt;
|
|
34065
34074
|
}
|
|
34066
34075
|
});
|
|
34067
|
-
var u =
|
|
34076
|
+
var u = wJ();
|
|
34068
34077
|
Object.defineProperty(e, "_", {
|
|
34069
34078
|
enumerable: !0,
|
|
34070
34079
|
get: function() {
|
|
@@ -34096,21 +34105,21 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
34096
34105
|
return u.CodeGen;
|
|
34097
34106
|
}
|
|
34098
34107
|
});
|
|
34099
|
-
var d =
|
|
34108
|
+
var d = BJ();
|
|
34100
34109
|
Object.defineProperty(e, "ValidationError", {
|
|
34101
34110
|
enumerable: !0,
|
|
34102
34111
|
get: function() {
|
|
34103
34112
|
return d.default;
|
|
34104
34113
|
}
|
|
34105
34114
|
});
|
|
34106
|
-
var f =
|
|
34115
|
+
var f = VJ();
|
|
34107
34116
|
Object.defineProperty(e, "MissingRefError", {
|
|
34108
34117
|
enumerable: !0,
|
|
34109
34118
|
get: function() {
|
|
34110
34119
|
return f.default;
|
|
34111
34120
|
}
|
|
34112
34121
|
});
|
|
34113
|
-
})),
|
|
34122
|
+
})), ZY = /* @__PURE__ */ K(((e) => {
|
|
34114
34123
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
34115
34124
|
function t(e, t) {
|
|
34116
34125
|
return {
|
|
@@ -34262,9 +34271,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
34262
34271
|
return !1;
|
|
34263
34272
|
}
|
|
34264
34273
|
}
|
|
34265
|
-
})),
|
|
34274
|
+
})), QY = /* @__PURE__ */ K(((e) => {
|
|
34266
34275
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
34267
|
-
var t =
|
|
34276
|
+
var t = XY(), n = wJ(), r = n.operators, i = {
|
|
34268
34277
|
formatMaximum: {
|
|
34269
34278
|
okStr: "<=",
|
|
34270
34279
|
ok: r.LTE,
|
|
@@ -34324,9 +34333,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
34324
34333
|
},
|
|
34325
34334
|
dependencies: ["format"]
|
|
34326
34335
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
34327
|
-
})),
|
|
34336
|
+
})), $Y = /* @__PURE__ */ K(((e, t) => {
|
|
34328
34337
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34329
|
-
var n =
|
|
34338
|
+
var n = ZY(), r = QY(), i = wJ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
34330
34339
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
34331
34340
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
34332
34341
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -34342,9 +34351,9 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
34342
34351
|
for (let r of t) e.addFormat(r, n[r]);
|
|
34343
34352
|
}
|
|
34344
34353
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
34345
|
-
})),
|
|
34354
|
+
})), eX = /* @__PURE__ */ ot(XY(), 1), tX = /* @__PURE__ */ ot($Y(), 1), nX = {
|
|
34346
34355
|
required: () => "This field is required",
|
|
34347
|
-
type: (e) => `Should be "${
|
|
34356
|
+
type: (e) => `Should be "${iX(e)}".`,
|
|
34348
34357
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
34349
34358
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
34350
34359
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -34360,77 +34369,77 @@ var xJ = /* @__PURE__ */ K(((e) => {
|
|
|
34360
34369
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
34361
34370
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
34362
34371
|
};
|
|
34363
|
-
function
|
|
34364
|
-
let n =
|
|
34372
|
+
function rX(e, t) {
|
|
34373
|
+
let n = nX[e.keyword];
|
|
34365
34374
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
34366
34375
|
}
|
|
34367
|
-
function
|
|
34376
|
+
function iX(e) {
|
|
34368
34377
|
let t = e.params.type;
|
|
34369
34378
|
return String(Array.isArray(t) ? t[0] : t);
|
|
34370
34379
|
}
|
|
34371
34380
|
//#endregion
|
|
34372
34381
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
34373
|
-
function
|
|
34382
|
+
function aX(e, t, n) {
|
|
34374
34383
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
34375
34384
|
for (let e of r) {
|
|
34376
34385
|
if (!i) return {
|
|
34377
34386
|
node: void 0,
|
|
34378
34387
|
value: void 0
|
|
34379
34388
|
};
|
|
34380
|
-
i =
|
|
34389
|
+
i = oX(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);
|
|
34381
34390
|
}
|
|
34382
34391
|
return i ? {
|
|
34383
|
-
node: oX(
|
|
34392
|
+
node: sX(oX(i, a, n, r), r),
|
|
34384
34393
|
value: a
|
|
34385
34394
|
} : {
|
|
34386
34395
|
node: void 0,
|
|
34387
34396
|
value: a
|
|
34388
34397
|
};
|
|
34389
34398
|
}
|
|
34390
|
-
function
|
|
34391
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
34399
|
+
function oX(e, t, n, r) {
|
|
34400
|
+
let i = new Map(e.properties), a = e.variants ? lX(e.variants, t) : void 0;
|
|
34392
34401
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
34393
34402
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
34394
34403
|
if (o.length > 0) {
|
|
34395
|
-
for (let e of o) if (
|
|
34404
|
+
for (let e of o) if (cX(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
34396
34405
|
}
|
|
34397
34406
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
34398
34407
|
...e,
|
|
34399
34408
|
properties: i
|
|
34400
34409
|
} : e;
|
|
34401
34410
|
}
|
|
34402
|
-
function
|
|
34411
|
+
function sX(e, t) {
|
|
34403
34412
|
return e.displayIf ? {
|
|
34404
34413
|
...e,
|
|
34405
34414
|
displayIf: nq(e.displayIf, t.join("."))
|
|
34406
34415
|
} : e;
|
|
34407
34416
|
}
|
|
34408
|
-
function
|
|
34417
|
+
function cX(e, t, n) {
|
|
34409
34418
|
for (let [r, i] of e) {
|
|
34410
34419
|
let e = XK(t, tq(r, n));
|
|
34411
34420
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
34412
34421
|
}
|
|
34413
34422
|
return !0;
|
|
34414
34423
|
}
|
|
34415
|
-
function
|
|
34424
|
+
function lX(e, t) {
|
|
34416
34425
|
if (typeof t != "object" || !t) return;
|
|
34417
34426
|
let n = t;
|
|
34418
34427
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
34419
34428
|
}
|
|
34420
34429
|
//#endregion
|
|
34421
34430
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
34422
|
-
var
|
|
34431
|
+
var uX = new eX.default({
|
|
34423
34432
|
strict: !1,
|
|
34424
34433
|
allErrors: !0
|
|
34425
34434
|
});
|
|
34426
|
-
(0,
|
|
34435
|
+
(0, tX.default)(uX), uX.removeKeyword("id"), uX.addKeyword({
|
|
34427
34436
|
keyword: "id",
|
|
34428
34437
|
validate: () => !0
|
|
34429
34438
|
});
|
|
34430
|
-
function
|
|
34439
|
+
function dX(e, t = {}) {
|
|
34431
34440
|
let n;
|
|
34432
34441
|
try {
|
|
34433
|
-
n =
|
|
34442
|
+
n = lJ(e);
|
|
34434
34443
|
} catch (e) {
|
|
34435
34444
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
34436
34445
|
return () => ({
|
|
@@ -34443,7 +34452,7 @@ function uX(e, t = {}) {
|
|
|
34443
34452
|
}
|
|
34444
34453
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
34445
34454
|
try {
|
|
34446
|
-
a =
|
|
34455
|
+
a = uX.compile(r);
|
|
34447
34456
|
} catch (e) {
|
|
34448
34457
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
34449
34458
|
return () => ({
|
|
@@ -34454,15 +34463,15 @@ function uX(e, t = {}) {
|
|
|
34454
34463
|
} }
|
|
34455
34464
|
});
|
|
34456
34465
|
}
|
|
34457
|
-
|
|
34466
|
+
uX.removeSchema(r);
|
|
34458
34467
|
let o = async (e, t, r) => {
|
|
34459
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
34468
|
+
let o = a(e) ? [] : a.errors ?? [], s = vX(n.root, e, "", i), c = [...o, ...s];
|
|
34460
34469
|
return c.length === 0 ? {
|
|
34461
34470
|
values: e,
|
|
34462
34471
|
errors: {}
|
|
34463
34472
|
} : {
|
|
34464
34473
|
values: {},
|
|
34465
|
-
errors: mX(
|
|
34474
|
+
errors: hX(mX(c.filter((t) => !fX(t, n, e))), r.criteriaMode ?? "firstError")
|
|
34466
34475
|
};
|
|
34467
34476
|
};
|
|
34468
34477
|
if (!t.basePath) return o;
|
|
@@ -34478,12 +34487,12 @@ function uX(e, t = {}) {
|
|
|
34478
34487
|
};
|
|
34479
34488
|
};
|
|
34480
34489
|
}
|
|
34481
|
-
function
|
|
34482
|
-
let { node: r, value: i } =
|
|
34490
|
+
function fX(e, t, n) {
|
|
34491
|
+
let { node: r, value: i } = aX(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(uq) : []).join("."), n);
|
|
34483
34492
|
if (!r) return !1;
|
|
34484
34493
|
switch (e.keyword) {
|
|
34485
34494
|
case "const":
|
|
34486
|
-
case "enum": return
|
|
34495
|
+
case "enum": return pX(r.schema, i);
|
|
34487
34496
|
case "required": {
|
|
34488
34497
|
let t = e.params.missingProperty;
|
|
34489
34498
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -34491,46 +34500,46 @@ function dX(e, t, n) {
|
|
|
34491
34500
|
default: return !1;
|
|
34492
34501
|
}
|
|
34493
34502
|
}
|
|
34494
|
-
function
|
|
34503
|
+
function pX(e, t) {
|
|
34495
34504
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
34496
34505
|
}
|
|
34497
|
-
function
|
|
34506
|
+
function mX(e) {
|
|
34498
34507
|
return e.filter((t) => {
|
|
34499
34508
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
34500
|
-
let n =
|
|
34509
|
+
let n = gX(t), r = n === "" ? "" : `${n}.`;
|
|
34501
34510
|
return !e.some((e) => {
|
|
34502
34511
|
if (e === t) return !1;
|
|
34503
|
-
let i =
|
|
34512
|
+
let i = gX(e);
|
|
34504
34513
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
34505
34514
|
});
|
|
34506
34515
|
});
|
|
34507
34516
|
}
|
|
34508
|
-
function
|
|
34517
|
+
function hX(e, t) {
|
|
34509
34518
|
let n = /* @__PURE__ */ new Map();
|
|
34510
34519
|
for (let t of e) {
|
|
34511
|
-
let e =
|
|
34520
|
+
let e = gX(t), r = n.get(e) ?? [];
|
|
34512
34521
|
r.push(t), n.set(e, r);
|
|
34513
34522
|
}
|
|
34514
34523
|
let r = {};
|
|
34515
34524
|
for (let [e, i] of n) {
|
|
34516
34525
|
let n = {
|
|
34517
34526
|
type: i[0].keyword,
|
|
34518
|
-
message:
|
|
34527
|
+
message: rX(i[0], e)
|
|
34519
34528
|
};
|
|
34520
34529
|
if (t === "all" && i.length > 0) {
|
|
34521
34530
|
let t = {};
|
|
34522
|
-
for (let n of i) t[n.keyword] =
|
|
34531
|
+
for (let n of i) t[n.keyword] = rX(n, e);
|
|
34523
34532
|
n.types = t;
|
|
34524
34533
|
}
|
|
34525
|
-
|
|
34534
|
+
_X(r, e === "" ? "root" : e, n);
|
|
34526
34535
|
}
|
|
34527
34536
|
return r;
|
|
34528
34537
|
}
|
|
34529
|
-
function
|
|
34538
|
+
function gX(e) {
|
|
34530
34539
|
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(uq) : [];
|
|
34531
34540
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
34532
34541
|
}
|
|
34533
|
-
function
|
|
34542
|
+
function _X(e, t, n) {
|
|
34534
34543
|
let r = t.split("."), i = e;
|
|
34535
34544
|
for (let e = 0; e < r.length - 1; e++) {
|
|
34536
34545
|
let t = r[e];
|
|
@@ -34538,7 +34547,7 @@ function gX(e, t, n) {
|
|
|
34538
34547
|
}
|
|
34539
34548
|
i[r[r.length - 1]] = n;
|
|
34540
34549
|
}
|
|
34541
|
-
function
|
|
34550
|
+
function vX(e, t, n, r) {
|
|
34542
34551
|
if (!e) return [];
|
|
34543
34552
|
let i = [];
|
|
34544
34553
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -34555,18 +34564,18 @@ function _X(e, t, n, r) {
|
|
|
34555
34564
|
}
|
|
34556
34565
|
}
|
|
34557
34566
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
34558
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
34567
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...vX(o, t[a], `${n}/${lq(a)}`, r));
|
|
34559
34568
|
if (e.variants && e.variants.length > 0 && a) {
|
|
34560
|
-
let a = t, o =
|
|
34561
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
34569
|
+
let a = t, o = Wq(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
34570
|
+
if (s) for (let [e, t] of s.properties) i.push(...vX(t, a[e], `${n}/${lq(e)}`, r));
|
|
34562
34571
|
}
|
|
34563
34572
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
34564
|
-
i.push(...
|
|
34573
|
+
i.push(...vX(e.items, t, `${n}/${a}`, r));
|
|
34565
34574
|
}), i;
|
|
34566
34575
|
}
|
|
34567
34576
|
//#endregion
|
|
34568
34577
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
34569
|
-
var
|
|
34578
|
+
var yX = {
|
|
34570
34579
|
navigation: null,
|
|
34571
34580
|
contextSidebar: null,
|
|
34572
34581
|
breadcrumbs: [],
|
|
@@ -34576,9 +34585,9 @@ var vX = {
|
|
|
34576
34585
|
contentVariant: "default",
|
|
34577
34586
|
banner: null,
|
|
34578
34587
|
bannerSticky: !1
|
|
34579
|
-
},
|
|
34580
|
-
function
|
|
34581
|
-
let [t, n] = Be(
|
|
34588
|
+
}, bX = De(null);
|
|
34589
|
+
function xX({ children: e }) {
|
|
34590
|
+
let [t, n] = Be(yX), r = je((e, t) => {
|
|
34582
34591
|
n((n) => ({
|
|
34583
34592
|
...n,
|
|
34584
34593
|
[e]: t
|
|
@@ -34590,7 +34599,7 @@ function bX({ children: e }) {
|
|
|
34590
34599
|
}));
|
|
34591
34600
|
}, []), a = je((e) => {
|
|
34592
34601
|
n((t) => {
|
|
34593
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
34602
|
+
let n = Object.fromEntries(e.map((e) => [e, yX[e]]));
|
|
34594
34603
|
return {
|
|
34595
34604
|
...t,
|
|
34596
34605
|
...n
|
|
@@ -34607,20 +34616,20 @@ function bX({ children: e }) {
|
|
|
34607
34616
|
i,
|
|
34608
34617
|
a
|
|
34609
34618
|
]);
|
|
34610
|
-
return /* @__PURE__ */ W(
|
|
34619
|
+
return /* @__PURE__ */ W(bX.Provider, {
|
|
34611
34620
|
value: o,
|
|
34612
34621
|
children: e
|
|
34613
34622
|
});
|
|
34614
34623
|
}
|
|
34615
|
-
function
|
|
34616
|
-
let e = Me(
|
|
34624
|
+
function SX() {
|
|
34625
|
+
let e = Me(bX);
|
|
34617
34626
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
34618
34627
|
return e;
|
|
34619
34628
|
}
|
|
34620
34629
|
//#endregion
|
|
34621
34630
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
34622
|
-
function
|
|
34623
|
-
let { setSlots: n, resetSlots: r } =
|
|
34631
|
+
function CX(e, t = []) {
|
|
34632
|
+
let { setSlots: n, resetSlots: r } = SX();
|
|
34624
34633
|
Le(() => {
|
|
34625
34634
|
n(e);
|
|
34626
34635
|
let t = Object.keys(e);
|
|
@@ -34635,16 +34644,16 @@ function SX(e, t = []) {
|
|
|
34635
34644
|
}
|
|
34636
34645
|
//#endregion
|
|
34637
34646
|
//#region src/composed/PageFocused/PageFocused.tsx
|
|
34638
|
-
function
|
|
34647
|
+
function wX({ children: e, className: n }) {
|
|
34639
34648
|
return /* @__PURE__ */ W("div", {
|
|
34640
34649
|
className: t("mx-auto w-full max-w-focused", n),
|
|
34641
34650
|
children: e
|
|
34642
34651
|
});
|
|
34643
34652
|
}
|
|
34644
|
-
|
|
34653
|
+
wX.displayName = "PageFocused";
|
|
34645
34654
|
//#endregion
|
|
34646
34655
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
34647
|
-
var
|
|
34656
|
+
var TX = [
|
|
34648
34657
|
{
|
|
34649
34658
|
value: "light",
|
|
34650
34659
|
label: "Light"
|
|
@@ -34658,7 +34667,7 @@ var wX = [
|
|
|
34658
34667
|
label: "System"
|
|
34659
34668
|
}
|
|
34660
34669
|
];
|
|
34661
|
-
function
|
|
34670
|
+
function EX({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o }) {
|
|
34662
34671
|
let s = i ?? e.slice(0, 2).toUpperCase(), { mode: c, setMode: l } = Ce();
|
|
34663
34672
|
return /* @__PURE__ */ G(cI, { children: [/* @__PURE__ */ W(uI, {
|
|
34664
34673
|
asChild: !0,
|
|
@@ -34687,7 +34696,7 @@ function TX({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
34687
34696
|
/* @__PURE__ */ W(hI, {
|
|
34688
34697
|
value: c,
|
|
34689
34698
|
onValueChange: (e) => l(e),
|
|
34690
|
-
children:
|
|
34699
|
+
children: TX.map((e) => /* @__PURE__ */ W(gI, {
|
|
34691
34700
|
value: e.value,
|
|
34692
34701
|
children: e.label
|
|
34693
34702
|
}, e.value))
|
|
@@ -34700,6 +34709,6 @@ function TX({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
34700
34709
|
]
|
|
34701
34710
|
})] });
|
|
34702
34711
|
}
|
|
34703
|
-
|
|
34712
|
+
EX.displayName = "TopNavUser";
|
|
34704
34713
|
//#endregion
|
|
34705
|
-
export { kv as Accordion, Mv as AccordionContent, Av as AccordionItem, jv as AccordionTrigger, d as Alert, i as AlertAction, P as AlertDescription, f as AlertTitle, mU as AppContextBar, wU as AppLayout, OU as AppSidebar, dU as AppSwitcher, Nv as Avatar, Iv as AvatarBadge, Fv as AvatarFallback, Lv as AvatarGroup, Rv as AvatarGroupCount, Pv as AvatarImage, Bv as Badge, CG as BadgeCell, Vv as Breadcrumb, qv as BreadcrumbEllipsis, Uv as BreadcrumbItem, Wv as BreadcrumbLink, Hv as BreadcrumbList, Gv as BreadcrumbPage, Kv as BreadcrumbSeparator, Yv as Button, Zv as ButtonGroup, $v as ButtonGroupSeparator, Qv as ButtonGroupText, fC as Calendar, pC as CalendarDayButton, mC as Card, vC as CardAction, yC as CardContent, _C as CardDescription, bC as CardFooter, hC as CardHeader, gC as CardTitle, xC as Checkbox, SC as Collapsible, wC as CollapsibleContent, CC as CollapsibleTrigger, HA as Combobox, nj as ComboboxChip, tj as ComboboxChips, rj as ComboboxChipsInput, QA as ComboboxCollection, qA as ComboboxContent, $A as ComboboxEmpty, XA as ComboboxGroup, KA as ComboboxInput, YA as ComboboxItem, ZA as ComboboxLabel, JA as ComboboxList, ej as ComboboxSeparator, WA as ComboboxTrigger, UA as ComboboxValue, CP as Command, wP as CommandDialog, DP as CommandEmpty, OP as CommandGroup, TP as CommandInput, AP as CommandItem, EP as CommandList, kP as CommandSeparator, jP as CommandShortcut, NU as ContentHeader, MP as ContextMenu, HP as ContextMenuCheckboxItem, RP as ContextMenuContent, PP as ContextMenuGroup, zP as ContextMenuItem, WP as ContextMenuLabel, FP as ContextMenuPortal, LP as ContextMenuRadioGroup, UP as ContextMenuRadioItem, GP as ContextMenuSeparator, KP as ContextMenuShortcut, IP as ContextMenuSub, VP as ContextMenuSubContent, BP as ContextMenuSubTrigger, NP as ContextMenuTrigger, AU as ContextSidebar, jU as ContextToggleButton, TG as CopyableCell, PU as CopyableText,
|
|
34714
|
+
export { kv as Accordion, Mv as AccordionContent, Av as AccordionItem, jv as AccordionTrigger, d as Alert, i as AlertAction, P as AlertDescription, f as AlertTitle, mU as AppContextBar, wU as AppLayout, OU as AppSidebar, dU as AppSwitcher, Nv as Avatar, Iv as AvatarBadge, Fv as AvatarFallback, Lv as AvatarGroup, Rv as AvatarGroupCount, Pv as AvatarImage, Bv as Badge, CG as BadgeCell, Vv as Breadcrumb, qv as BreadcrumbEllipsis, Uv as BreadcrumbItem, Wv as BreadcrumbLink, Hv as BreadcrumbList, Gv as BreadcrumbPage, Kv as BreadcrumbSeparator, Yv as Button, Zv as ButtonGroup, $v as ButtonGroupSeparator, Qv as ButtonGroupText, fC as Calendar, pC as CalendarDayButton, mC as Card, vC as CardAction, yC as CardContent, _C as CardDescription, bC as CardFooter, hC as CardHeader, gC as CardTitle, xC as Checkbox, SC as Collapsible, wC as CollapsibleContent, CC as CollapsibleTrigger, HA as Combobox, nj as ComboboxChip, tj as ComboboxChips, rj as ComboboxChipsInput, QA as ComboboxCollection, qA as ComboboxContent, $A as ComboboxEmpty, XA as ComboboxGroup, KA as ComboboxInput, YA as ComboboxItem, ZA as ComboboxLabel, JA as ComboboxList, ej as ComboboxSeparator, WA as ComboboxTrigger, UA as ComboboxValue, CP as Command, wP as CommandDialog, DP as CommandEmpty, OP as CommandGroup, TP as CommandInput, AP as CommandItem, EP as CommandList, kP as CommandSeparator, jP as CommandShortcut, NU as ContentHeader, MP as ContextMenu, HP as ContextMenuCheckboxItem, RP as ContextMenuContent, PP as ContextMenuGroup, zP as ContextMenuItem, WP as ContextMenuLabel, FP as ContextMenuPortal, LP as ContextMenuRadioGroup, UP as ContextMenuRadioItem, GP as ContextMenuSeparator, KP as ContextMenuShortcut, IP as ContextMenuSub, VP as ContextMenuSubContent, BP as ContextMenuSubTrigger, NP as ContextMenuTrigger, AU as ContextSidebar, jU as ContextToggleButton, TG as CopyableCell, PU as CopyableText, yX as DEFAULT_SLOTS, mG as DataTable, hG as DataTableColumnHeader, DG as DataTableEmptyState, sG as DataTablePagination, cG as DataTableViewOptions, SG as DateCell, IK as DatePicker, LK as DateRangePicker, BK as DateTimePicker, UK as DateTimeRangePicker, pP as Dialog, gP as DialogClose, vP as DialogContent, SP as DialogDescription, bP as DialogFooter, yP as DialogHeader, _P as DialogOverlay, hP as DialogPortal, xP as DialogTitle, mP as DialogTrigger, QF as Drawer, tI as DrawerClose, rI as DrawerContent, sI as DrawerDescription, aI as DrawerFooter, iI as DrawerHeader, nI as DrawerOverlay, eI as DrawerPortal, oI as DrawerTitle, $F as DrawerTrigger, cI as DropdownMenu, mI as DropdownMenuCheckboxItem, dI as DropdownMenuContent, fI as DropdownMenuGroup, pI as DropdownMenuItem, _I as DropdownMenuLabel, lI as DropdownMenuPortal, hI as DropdownMenuRadioGroup, gI as DropdownMenuRadioItem, vI as DropdownMenuSeparator, yI as DropdownMenuShortcut, bI as DropdownMenuSub, SI as DropdownMenuSubContent, xI as DropdownMenuSubTrigger, uI as DropdownMenuTrigger, CI as Empty, kI as EmptyContent, OI as EmptyDescription, wI as EmptyHeader, EI as EmptyMedia, DI as EmptyTitle, WK as FacetedFilter, M as Field, _ as FieldContent, v as FieldDescription, O as FieldError, T as FieldGroup, b as FieldLabel, y as FieldLegend, p as FieldSeparator, N as FieldSet, I as FieldTitle, YK as FileUpload, CR as FileUploadInput, JK as FileUploadItem, wR as HoverCard, ER as HoverCardContent, kR as HoverCardDescription, DR as HoverCardHeader, OR as HoverCardTitle, TR as HoverCardTrigger, NA as Input, PA as InputGroup, IA as InputGroupAddon, RA as InputGroupButton, BA as InputGroupInput, zA as InputGroupText, VA as InputGroupTextarea, NR as Item, zR as ItemActions, IR as ItemContent, RR as ItemDescription, VR as ItemFooter, AR as ItemGroup, BR as ItemHeader, FR as ItemMedia, jR as ItemSeparator, LR as ItemTitle, bJ as JsonSchemaForm, HR as Kbd, UR as KbdGroup, h as Label, xX as LayoutSlotsProvider, wG as MonoCell, wX as PageFocused, WR as Pagination, GR as PaginationContent, XR as PaginationEllipsis, KR as PaginationItem, qR as PaginationLink, YR as PaginationNext, JR as PaginationPrevious, $q as PasswordInput, ZR as Popover, ez as PopoverAnchor, $R as PopoverContent, rz as PopoverDescription, tz as PopoverHeader, nz as PopoverTitle, QR as PopoverTrigger, lt as PortalContainerProvider, iz as Progress, oz as Prose, sz as RadioGroup, cz as RadioGroupItem, iV as ResizableHandle, rV as ResizablePanel, nV as ResizablePanelGroup, aV as ScrollArea, oV as ScrollBar, sV as Select, dV as SelectContent, cV as SelectGroup, pV as SelectItem, fV as SelectLabel, gV as SelectScrollDownButton, hV as SelectScrollUpButton, mV as SelectSeparator, uV as SelectTrigger, lV as SelectValue, fU as SelectorDropdown, pU as SelectorTriggerButton, F as Separator, _V as Sheet, yV as SheetClose, SV as SheetContent, EV as SheetDescription, wV as SheetFooter, CV as SheetHeader, TV as SheetTitle, vV as SheetTrigger, GV as Sidebar, $V as SidebarContent, ZV as SidebarFooter, eH as SidebarGroup, nH as SidebarGroupAction, rH as SidebarGroupContent, tH as SidebarGroupLabel, XV as SidebarHeader, YV as SidebarInput, JV as SidebarInset, iH as SidebarMenu, cH as SidebarMenuAction, lH as SidebarMenuBadge, sH as SidebarMenuButton, aH as SidebarMenuItem, uH as SidebarMenuSkeleton, dH as SidebarMenuSub, pH as SidebarMenuSubButton, fH as SidebarMenuSubItem, SU as SidebarModeControl, bU as SidebarModeProvider, kU as SidebarNavigation, WV as SidebarProvider, qV as SidebarRail, QV as SidebarSeparator, KV as SidebarTrigger, n as Skeleton, GH as Spinner, KH as Switch, qH as Table, YH as TableBody, eU as TableCaption, $H as TableCell, XH as TableFooter, QH as TableHead, JH as TableHeader, ZH as TableRow, tU as Tabs, aU as TabsContent, rU as TabsList, iU as TabsTrigger, e as Textarea, we as ThemeProvider, WH as Toaster, sU as Toggle, lU as ToggleGroup, uU as ToggleGroupItem, OV as Tooltip, AV as TooltipContent, DV as TooltipProvider, kV as TooltipTrigger, EX as TopNavUser, EG as TruncatedCell, o as alertVariants, zv as badgeVariants, FU as buildLinearBreadcrumbs, Xv as buttonGroupVariants, Jv as buttonVariants, t as cn, xJ as composeResolvers, xq as extractDefaults, dX as jsonSchemaResolver, nU as tabsListVariants, OH as toast, oU as toggleVariants, ij as useComboboxAnchor, CX as useLayoutConfig, SX as useLayoutSlots, ut as usePortalContainer, UV as useSidebar, _U as useSidebarMode, Ce as useTheme };
|