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