@gravitee/graphene-core 3.0.0 → 3.1.0-renovate-react.89c3b50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/resource/ResourceTypeField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/resource/ResourceTypeField.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts +2 -1
- package/dist/composed/JsonSchemaForm/utils/schemaShape.d.ts.map +1 -1
- package/dist/index.js +423 -359
- package/dist/styles/globals.css +1 -1
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -28826,6 +28826,9 @@ function gq(e) {
|
|
|
28826
28826
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
28827
28827
|
}
|
|
28828
28828
|
function _q(e) {
|
|
28829
|
+
return e.gioConfig?.uiType === "resource-type";
|
|
28830
|
+
}
|
|
28831
|
+
function vq(e) {
|
|
28829
28832
|
let t = e.deprecated;
|
|
28830
28833
|
if (t === !0) return !0;
|
|
28831
28834
|
if (typeof t == "string") {
|
|
@@ -28834,39 +28837,39 @@ function _q(e) {
|
|
|
28834
28837
|
}
|
|
28835
28838
|
return !1;
|
|
28836
28839
|
}
|
|
28837
|
-
function
|
|
28840
|
+
function yq(e) {
|
|
28838
28841
|
return e.format === "gio-code-editor" ? e.type === "string" || Array.isArray(e.type) && e.type.includes("string") : !1;
|
|
28839
28842
|
}
|
|
28840
|
-
function
|
|
28843
|
+
function bq(e) {
|
|
28841
28844
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !mq(e);
|
|
28842
28845
|
}
|
|
28843
|
-
function
|
|
28846
|
+
function xq(e) {
|
|
28844
28847
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
28845
28848
|
}
|
|
28846
28849
|
//#endregion
|
|
28847
28850
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
28848
|
-
function
|
|
28851
|
+
function Sq(e) {
|
|
28849
28852
|
let t;
|
|
28850
28853
|
try {
|
|
28851
28854
|
t = iq(dq(e));
|
|
28852
28855
|
} catch {
|
|
28853
28856
|
return;
|
|
28854
28857
|
}
|
|
28855
|
-
return
|
|
28858
|
+
return Cq(t);
|
|
28856
28859
|
}
|
|
28857
|
-
function
|
|
28858
|
-
if (
|
|
28860
|
+
function Cq(e) {
|
|
28861
|
+
if (vq(e)) return;
|
|
28859
28862
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
28860
28863
|
let t = {};
|
|
28861
28864
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
28862
|
-
let e =
|
|
28865
|
+
let e = Cq(r);
|
|
28863
28866
|
e !== void 0 && (t[n] = e);
|
|
28864
28867
|
}
|
|
28865
|
-
let n = (e.oneOf ?? e.anyOf)?.find((e) => !
|
|
28868
|
+
let n = (e.oneOf ?? e.anyOf)?.find((e) => !vq(e));
|
|
28866
28869
|
if (n?.properties) {
|
|
28867
28870
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
28868
28871
|
else if (!(e in t)) {
|
|
28869
|
-
let n =
|
|
28872
|
+
let n = Cq(r);
|
|
28870
28873
|
n !== void 0 && (t[e] = n);
|
|
28871
28874
|
}
|
|
28872
28875
|
}
|
|
@@ -28874,7 +28877,7 @@ function Sq(e) {
|
|
|
28874
28877
|
}
|
|
28875
28878
|
//#endregion
|
|
28876
28879
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
28877
|
-
function
|
|
28880
|
+
function wq(e) {
|
|
28878
28881
|
if (e.default !== void 0) return e.default;
|
|
28879
28882
|
switch (e.type) {
|
|
28880
28883
|
case "string": return "";
|
|
@@ -28889,7 +28892,7 @@ function Cq(e) {
|
|
|
28889
28892
|
}
|
|
28890
28893
|
//#endregion
|
|
28891
28894
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
28892
|
-
function
|
|
28895
|
+
function Tq(e, t) {
|
|
28893
28896
|
let n = D(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = g({
|
|
28894
28897
|
control: n.control,
|
|
28895
28898
|
name: r
|
|
@@ -28911,10 +28914,10 @@ function wq(e, t) {
|
|
|
28911
28914
|
}
|
|
28912
28915
|
//#endregion
|
|
28913
28916
|
//#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 } =
|
|
28917
|
+
function Eq({ node: e, name: t, depth: n }) {
|
|
28918
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = Tq(r, t), p = r.items, m = e.items, h = k(r, t), g = r.gioConfig?.uiBorder === "full";
|
|
28916
28919
|
function _() {
|
|
28917
|
-
s(
|
|
28920
|
+
s(Oq(p), { shouldFocus: !1 });
|
|
28918
28921
|
}
|
|
28919
28922
|
return /* @__PURE__ */ G(N, {
|
|
28920
28923
|
"aria-required": r.isRequired || void 0,
|
|
@@ -28929,7 +28932,7 @@ function Tq({ node: e, name: t, depth: n }) {
|
|
|
28929
28932
|
r.gioConfig?.banner && /* @__PURE__ */ W(j, { banner: r.gioConfig.banner }),
|
|
28930
28933
|
/* @__PURE__ */ W("div", {
|
|
28931
28934
|
className: "flex flex-col",
|
|
28932
|
-
children: o.map((e, t) => /* @__PURE__ */ W(
|
|
28935
|
+
children: o.map((e, t) => /* @__PURE__ */ W(Dq, {
|
|
28933
28936
|
index: t,
|
|
28934
28937
|
path: a,
|
|
28935
28938
|
itemsNode: m,
|
|
@@ -28955,7 +28958,7 @@ function Tq({ node: e, name: t, depth: n }) {
|
|
|
28955
28958
|
]
|
|
28956
28959
|
});
|
|
28957
28960
|
}
|
|
28958
|
-
function
|
|
28961
|
+
function Dq({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: s }) {
|
|
28959
28962
|
let c = `${t}.${e}`;
|
|
28960
28963
|
return /* @__PURE__ */ G(SC, {
|
|
28961
28964
|
defaultOpen: !0,
|
|
@@ -28990,7 +28993,7 @@ function Eq({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
28990
28993
|
basePath: c,
|
|
28991
28994
|
disabled: i
|
|
28992
28995
|
},
|
|
28993
|
-
children: /* @__PURE__ */ W(
|
|
28996
|
+
children: /* @__PURE__ */ W(sJ, {
|
|
28994
28997
|
node: n,
|
|
28995
28998
|
name: "",
|
|
28996
28999
|
depth: r + 1
|
|
@@ -28999,17 +29002,17 @@ function Eq({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
28999
29002
|
}) })]
|
|
29000
29003
|
});
|
|
29001
29004
|
}
|
|
29002
|
-
function
|
|
29003
|
-
let t =
|
|
29004
|
-
return t === void 0 ?
|
|
29005
|
+
function Oq(e) {
|
|
29006
|
+
let t = Sq(e);
|
|
29007
|
+
return t === void 0 ? wq(e) : t;
|
|
29005
29008
|
}
|
|
29006
29009
|
//#endregion
|
|
29007
29010
|
//#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 } =
|
|
29011
|
+
function kq({ node: e, name: t }) {
|
|
29012
|
+
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = Tq(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = k(n, t);
|
|
29010
29013
|
function h() {
|
|
29011
29014
|
let e = {};
|
|
29012
|
-
for (let t of p) e[t] =
|
|
29015
|
+
for (let t of p) e[t] = wq(f[t]);
|
|
29013
29016
|
a(e, { shouldFocus: !1 });
|
|
29014
29017
|
}
|
|
29015
29018
|
return /* @__PURE__ */ G(N, {
|
|
@@ -29026,11 +29029,11 @@ function Oq({ node: e, name: t }) {
|
|
|
29026
29029
|
className: "overflow-hidden rounded-lg border",
|
|
29027
29030
|
children: /* @__PURE__ */ G(qH, { children: [/* @__PURE__ */ W(JH, { children: /* @__PURE__ */ G(ZH, { children: [p.map((e) => /* @__PURE__ */ W(QH, {
|
|
29028
29031
|
scope: "col",
|
|
29029
|
-
children:
|
|
29032
|
+
children: Mq(f[e], e)
|
|
29030
29033
|
}, e)), /* @__PURE__ */ W(QH, {
|
|
29031
29034
|
"aria-hidden": "true",
|
|
29032
29035
|
className: "w-px"
|
|
29033
|
-
})] }) }), /* @__PURE__ */ W(YH, { children: i.map((e, t) => /* @__PURE__ */ W(
|
|
29036
|
+
})] }) }), /* @__PURE__ */ W(YH, { children: i.map((e, t) => /* @__PURE__ */ W(Aq, {
|
|
29034
29037
|
rowIndex: t,
|
|
29035
29038
|
rowPath: `${r}.${t}`,
|
|
29036
29039
|
columnKeys: p,
|
|
@@ -29052,8 +29055,8 @@ function Oq({ node: e, name: t }) {
|
|
|
29052
29055
|
]
|
|
29053
29056
|
});
|
|
29054
29057
|
}
|
|
29055
|
-
function
|
|
29056
|
-
return /* @__PURE__ */ G(ZH, { children: [n.map((n) => /* @__PURE__ */ W(
|
|
29058
|
+
function Aq({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
|
|
29059
|
+
return /* @__PURE__ */ G(ZH, { children: [n.map((n) => /* @__PURE__ */ W(jq, {
|
|
29057
29060
|
columnKey: n,
|
|
29058
29061
|
cellPath: `${t}.${n}`,
|
|
29059
29062
|
propSchema: r[n],
|
|
@@ -29072,7 +29075,7 @@ function kq({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
29072
29075
|
})
|
|
29073
29076
|
})] });
|
|
29074
29077
|
}
|
|
29075
|
-
function
|
|
29078
|
+
function jq({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
29076
29079
|
let { control: a } = D(), { field: o, fieldState: s } = A({
|
|
29077
29080
|
control: a,
|
|
29078
29081
|
name: t
|
|
@@ -29085,16 +29088,16 @@ function Aq({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
29085
29088
|
onBlur: l,
|
|
29086
29089
|
disabled: i,
|
|
29087
29090
|
"aria-invalid": s.invalid,
|
|
29088
|
-
"aria-label": `${
|
|
29091
|
+
"aria-label": `${Mq(n, e)} for row ${r + 1}`,
|
|
29089
29092
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
29090
29093
|
}) });
|
|
29091
29094
|
}
|
|
29092
|
-
function
|
|
29095
|
+
function Mq(e, t) {
|
|
29093
29096
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
29094
29097
|
}
|
|
29095
29098
|
//#endregion
|
|
29096
29099
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
29097
|
-
function
|
|
29100
|
+
function Nq({ node: e, name: t }) {
|
|
29098
29101
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29099
29102
|
control: n,
|
|
29100
29103
|
name: o,
|
|
@@ -29123,18 +29126,18 @@ function Mq({ node: e, name: t }) {
|
|
|
29123
29126
|
}
|
|
29124
29127
|
//#endregion
|
|
29125
29128
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
29126
|
-
function
|
|
29129
|
+
function Pq(e, t) {
|
|
29127
29130
|
let n = t?.[String(e)];
|
|
29128
29131
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
29129
29132
|
}
|
|
29130
|
-
function
|
|
29133
|
+
function Fq(e, t) {
|
|
29131
29134
|
return e.map((e, n) => ({
|
|
29132
29135
|
raw: e,
|
|
29133
29136
|
key: String(n),
|
|
29134
|
-
label:
|
|
29137
|
+
label: Pq(e, t)
|
|
29135
29138
|
}));
|
|
29136
29139
|
}
|
|
29137
|
-
function
|
|
29140
|
+
function Iq(e) {
|
|
29138
29141
|
return e.map((e, t) => ({
|
|
29139
29142
|
raw: e.const,
|
|
29140
29143
|
key: String(t),
|
|
@@ -29143,12 +29146,12 @@ function Fq(e) {
|
|
|
29143
29146
|
}
|
|
29144
29147
|
//#endregion
|
|
29145
29148
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
29146
|
-
function
|
|
29149
|
+
function Lq({ node: e, name: t }) {
|
|
29147
29150
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29148
29151
|
control: n,
|
|
29149
29152
|
name: o,
|
|
29150
29153
|
defaultValue: a.default
|
|
29151
|
-
}), { ref: l, onBlur: u } = s, d = k(a, t), f = i || a.readOnly === !0, p =
|
|
29154
|
+
}), { ref: l, onBlur: u } = s, d = k(a, t), f = i || a.readOnly === !0, p = Rq(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
|
|
29152
29155
|
return /* @__PURE__ */ G(M, {
|
|
29153
29156
|
"data-invalid": c.invalid,
|
|
29154
29157
|
children: [
|
|
@@ -29179,18 +29182,18 @@ function Iq({ node: e, name: t }) {
|
|
|
29179
29182
|
]
|
|
29180
29183
|
});
|
|
29181
29184
|
}
|
|
29182
|
-
function
|
|
29183
|
-
return mq(e) ?
|
|
29185
|
+
function Rq(e) {
|
|
29186
|
+
return mq(e) ? Iq(e.oneOf ?? []) : Fq(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
29184
29187
|
}
|
|
29185
29188
|
//#endregion
|
|
29186
29189
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
29187
|
-
function
|
|
29190
|
+
function zq({ node: e, name: t }) {
|
|
29188
29191
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29189
29192
|
control: n,
|
|
29190
29193
|
name: o,
|
|
29191
29194
|
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
|
|
29195
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = ij(), m = k(a, t), h = i || a.readOnly === !0, g = a.items, _ = Fq(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);
|
|
29196
|
+
return Bq({
|
|
29194
29197
|
schema: a,
|
|
29195
29198
|
options: _,
|
|
29196
29199
|
value: f,
|
|
@@ -29240,19 +29243,19 @@ function Rq({ node: e, name: t }) {
|
|
|
29240
29243
|
]
|
|
29241
29244
|
});
|
|
29242
29245
|
}
|
|
29243
|
-
function
|
|
29246
|
+
function Bq({ schema: e, options: t, value: n, onReset: r }) {
|
|
29244
29247
|
Pe(() => {
|
|
29245
29248
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
29246
29249
|
}, [e]);
|
|
29247
29250
|
}
|
|
29248
29251
|
//#endregion
|
|
29249
29252
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
29250
|
-
function
|
|
29253
|
+
function Vq() {
|
|
29251
29254
|
return null;
|
|
29252
29255
|
}
|
|
29253
29256
|
//#endregion
|
|
29254
29257
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
29255
|
-
function
|
|
29258
|
+
function Hq({ node: e, name: t }) {
|
|
29256
29259
|
let { control: n, basePath: r, disabled: i } = D(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = A({
|
|
29257
29260
|
control: n,
|
|
29258
29261
|
name: o
|
|
@@ -29295,7 +29298,7 @@ function Vq({ node: e, name: t }) {
|
|
|
29295
29298
|
}
|
|
29296
29299
|
//#endregion
|
|
29297
29300
|
//#region src/composed/JsonSchemaForm/conditional/useDependencyBranchSync.ts
|
|
29298
|
-
function
|
|
29301
|
+
function Uq(e, t, n, r) {
|
|
29299
29302
|
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
29303
|
let e = /* @__PURE__ */ new Set();
|
|
29301
29304
|
for (let t of i) for (let n of t.$eq.keys()) e.add(n);
|
|
@@ -29328,21 +29331,21 @@ function Hq(e, t, n, r) {
|
|
|
29328
29331
|
r
|
|
29329
29332
|
]);
|
|
29330
29333
|
}
|
|
29331
|
-
function
|
|
29334
|
+
function Wq({ branches: e, basePath: t }) {
|
|
29332
29335
|
let { control: n, externalContext: r } = D();
|
|
29333
|
-
return
|
|
29336
|
+
return Uq(n, e, t, r), null;
|
|
29334
29337
|
}
|
|
29335
29338
|
//#endregion
|
|
29336
29339
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
29337
|
-
function
|
|
29340
|
+
function Gq(e, t, n, r) {
|
|
29338
29341
|
if (e.length === 0) return -1;
|
|
29339
29342
|
let i = n?.get(t);
|
|
29340
|
-
return
|
|
29343
|
+
return Kq(i, e) && qq(e[i], r) ? i : Jq(e, r);
|
|
29341
29344
|
}
|
|
29342
|
-
function
|
|
29345
|
+
function Kq(e, t) {
|
|
29343
29346
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
29344
29347
|
}
|
|
29345
|
-
function
|
|
29348
|
+
function qq(e, t) {
|
|
29346
29349
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
29347
29350
|
if (n.const !== void 0) return t(e) === n.const;
|
|
29348
29351
|
if (typeof n.pattern == "string") {
|
|
@@ -29352,18 +29355,18 @@ function Kq(e, t) {
|
|
|
29352
29355
|
return !0;
|
|
29353
29356
|
});
|
|
29354
29357
|
}
|
|
29355
|
-
function
|
|
29358
|
+
function Jq(e, t) {
|
|
29356
29359
|
let n = 0, r = {
|
|
29357
29360
|
viable: !1,
|
|
29358
29361
|
matches: -1
|
|
29359
29362
|
};
|
|
29360
29363
|
return e.forEach((e, i) => {
|
|
29361
|
-
let a =
|
|
29362
|
-
|
|
29364
|
+
let a = Yq(e, t);
|
|
29365
|
+
Xq(a, r) > 0 && (n = i, r = a);
|
|
29363
29366
|
}), n;
|
|
29364
29367
|
}
|
|
29365
|
-
function
|
|
29366
|
-
return
|
|
29368
|
+
function Yq(e, t) {
|
|
29369
|
+
return qq(e, t) ? {
|
|
29367
29370
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
29368
29371
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
29369
29372
|
} : {
|
|
@@ -29371,13 +29374,13 @@ function Jq(e, t) {
|
|
|
29371
29374
|
matches: -1
|
|
29372
29375
|
};
|
|
29373
29376
|
}
|
|
29374
|
-
function
|
|
29377
|
+
function Xq(e, t) {
|
|
29375
29378
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
29376
29379
|
}
|
|
29377
29380
|
//#endregion
|
|
29378
29381
|
//#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(() =>
|
|
29382
|
+
function Zq({ node: e, depth: t }) {
|
|
29383
|
+
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(() => Gq(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = U(() => c[l]?.dependencyBranches ?? [], [c, l]);
|
|
29381
29384
|
if (c.length === 0) return null;
|
|
29382
29385
|
let f = c[l] ?? c[0], p = n.disabled || o.readOnly === !0, m = `${a || "root"}-variant`, h = (e) => {
|
|
29383
29386
|
if (e === l) return;
|
|
@@ -29410,22 +29413,22 @@ function Xq({ node: e, depth: t }) {
|
|
|
29410
29413
|
t === 0 && o.description && /* @__PURE__ */ W(v, { children: o.description }),
|
|
29411
29414
|
o.gioConfig?.banner && /* @__PURE__ */ W(j, { banner: o.gioConfig.banner })
|
|
29412
29415
|
] }),
|
|
29413
|
-
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(
|
|
29416
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(Qq, {
|
|
29414
29417
|
path: a ? `${a}.${e}` : e,
|
|
29415
29418
|
value: t
|
|
29416
29419
|
}, e)),
|
|
29417
|
-
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(
|
|
29420
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(sJ, {
|
|
29418
29421
|
node: n,
|
|
29419
29422
|
name: e,
|
|
29420
29423
|
depth: t + 1
|
|
29421
29424
|
}, `${l}-${e}`)),
|
|
29422
|
-
d.length > 0 && /* @__PURE__ */ W(
|
|
29425
|
+
d.length > 0 && /* @__PURE__ */ W(Wq, {
|
|
29423
29426
|
branches: d,
|
|
29424
29427
|
basePath: a
|
|
29425
29428
|
}),
|
|
29426
29429
|
d.map((e, n) => /* @__PURE__ */ W($K, {
|
|
29427
29430
|
condition: nq(e.showIf, a),
|
|
29428
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(
|
|
29431
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(sJ, {
|
|
29429
29432
|
node: n,
|
|
29430
29433
|
name: e,
|
|
29431
29434
|
depth: t + 1
|
|
@@ -29433,7 +29436,7 @@ function Xq({ node: e, depth: t }) {
|
|
|
29433
29436
|
}, `${l}-var-dep-${n}`))
|
|
29434
29437
|
] });
|
|
29435
29438
|
}
|
|
29436
|
-
function
|
|
29439
|
+
function Qq({ path: e, value: t }) {
|
|
29437
29440
|
let { control: n } = D(), { field: r } = A({
|
|
29438
29441
|
control: n,
|
|
29439
29442
|
name: e
|
|
@@ -29444,31 +29447,31 @@ function Zq({ path: e, value: t }) {
|
|
|
29444
29447
|
}
|
|
29445
29448
|
//#endregion
|
|
29446
29449
|
//#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 =
|
|
29450
|
+
function $q({ node: e, name: t, depth: n }) {
|
|
29451
|
+
let r = D(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = bq(i) || xq(i), s = U(() => e.dependencyBranches ?? [], [e.dependencyBranches]), c = s.length > 0, l = (e.properties || o || c) && /* @__PURE__ */ W(m.Provider, {
|
|
29449
29452
|
value: {
|
|
29450
29453
|
...r,
|
|
29451
29454
|
basePath: a
|
|
29452
29455
|
},
|
|
29453
29456
|
children: /* @__PURE__ */ G(T, { children: [
|
|
29454
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
29457
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(sJ, {
|
|
29455
29458
|
node: t,
|
|
29456
29459
|
name: e,
|
|
29457
29460
|
depth: n + 1
|
|
29458
29461
|
}, e)),
|
|
29459
|
-
c && /* @__PURE__ */ W(
|
|
29462
|
+
c && /* @__PURE__ */ W(Wq, {
|
|
29460
29463
|
branches: s,
|
|
29461
29464
|
basePath: a
|
|
29462
29465
|
}),
|
|
29463
29466
|
s.map((e, t) => /* @__PURE__ */ W($K, {
|
|
29464
29467
|
condition: nq(e.showIf, a),
|
|
29465
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
29468
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(sJ, {
|
|
29466
29469
|
node: t,
|
|
29467
29470
|
name: e,
|
|
29468
29471
|
depth: n + 1
|
|
29469
29472
|
}, e))
|
|
29470
29473
|
}, `dep-${t}`)),
|
|
29471
|
-
o && /* @__PURE__ */ W(
|
|
29474
|
+
o && /* @__PURE__ */ W(Zq, {
|
|
29472
29475
|
node: e,
|
|
29473
29476
|
depth: n
|
|
29474
29477
|
})
|
|
@@ -29490,7 +29493,7 @@ function Qq({ node: e, name: t, depth: n }) {
|
|
|
29490
29493
|
}
|
|
29491
29494
|
//#endregion
|
|
29492
29495
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
29493
|
-
function
|
|
29496
|
+
function eJ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
29494
29497
|
let [s, c] = Be(!1);
|
|
29495
29498
|
return /* @__PURE__ */ G(PA, {
|
|
29496
29499
|
className: e,
|
|
@@ -29516,10 +29519,10 @@ function $q({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
29516
29519
|
})]
|
|
29517
29520
|
});
|
|
29518
29521
|
}
|
|
29519
|
-
|
|
29522
|
+
eJ.displayName = "PasswordInput";
|
|
29520
29523
|
//#endregion
|
|
29521
29524
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
29522
|
-
function
|
|
29525
|
+
function tJ({ node: t, name: n }) {
|
|
29523
29526
|
let { control: r, basePath: i, disabled: a } = D(), { schema: o } = t, s = n ? i ? `${i}.${n}` : n : i, { field: c, fieldState: l } = A({
|
|
29524
29527
|
control: r,
|
|
29525
29528
|
name: s
|
|
@@ -29544,7 +29547,7 @@ function eJ({ node: t, name: n }) {
|
|
|
29544
29547
|
children: u
|
|
29545
29548
|
}),
|
|
29546
29549
|
o.gioConfig?.banner && /* @__PURE__ */ W(j, { banner: o.gioConfig.banner }),
|
|
29547
|
-
o.format === "text" ? /* @__PURE__ */ W(e, { ...h }) : o.format === "password" ? /* @__PURE__ */ W(
|
|
29550
|
+
o.format === "text" ? /* @__PURE__ */ W(e, { ...h }) : o.format === "password" ? /* @__PURE__ */ W(eJ, {
|
|
29548
29551
|
...h,
|
|
29549
29552
|
pattern: o.pattern
|
|
29550
29553
|
}) : /* @__PURE__ */ W(NA, {
|
|
@@ -29558,12 +29561,70 @@ function eJ({ node: t, name: n }) {
|
|
|
29558
29561
|
});
|
|
29559
29562
|
}
|
|
29560
29563
|
//#endregion
|
|
29564
|
+
//#region src/composed/JsonSchemaForm/fields/resource/ResourceTypeField.tsx
|
|
29565
|
+
function nJ({ node: e, name: t }) {
|
|
29566
|
+
let { externalContext: n } = D(), r = aJ(n);
|
|
29567
|
+
return r === null ? /* @__PURE__ */ W(tJ, {
|
|
29568
|
+
node: e,
|
|
29569
|
+
name: t
|
|
29570
|
+
}) : /* @__PURE__ */ W(rJ, {
|
|
29571
|
+
node: e,
|
|
29572
|
+
name: t,
|
|
29573
|
+
injected: r
|
|
29574
|
+
});
|
|
29575
|
+
}
|
|
29576
|
+
function rJ({ node: e, name: t, injected: n }) {
|
|
29577
|
+
let { control: r, basePath: i, disabled: a } = D(), { schema: o } = e, s = t ? i ? `${i}.${t}` : t : i, { field: c, fieldState: l } = A({
|
|
29578
|
+
control: r,
|
|
29579
|
+
name: s,
|
|
29580
|
+
defaultValue: o.default
|
|
29581
|
+
}), { ref: u, onBlur: d } = c, f = iJ(o.gioConfig?.uiTypeProps?.resourceType), p = (e) => f.length === 0 || f.some((t) => e.startsWith(t)), m = n.filter((e) => p(e.type)).map((e) => e.name), h = typeof c.value == "string" ? c.value : "";
|
|
29582
|
+
h !== "" && !m.includes(h) && m.unshift(h);
|
|
29583
|
+
let g = k(o, t), _ = a || o.readOnly === !0, y = m.length === 0 ? "No matching resources on this API" : "Select a resource…";
|
|
29584
|
+
return /* @__PURE__ */ G(M, {
|
|
29585
|
+
"data-invalid": l.invalid,
|
|
29586
|
+
children: [
|
|
29587
|
+
/* @__PURE__ */ W(b, {
|
|
29588
|
+
htmlFor: s,
|
|
29589
|
+
required: o.isRequired,
|
|
29590
|
+
children: g
|
|
29591
|
+
}),
|
|
29592
|
+
o.gioConfig?.banner && /* @__PURE__ */ W(j, { banner: o.gioConfig.banner }),
|
|
29593
|
+
/* @__PURE__ */ G(sV, {
|
|
29594
|
+
value: h,
|
|
29595
|
+
onValueChange: (e) => c.onChange(e),
|
|
29596
|
+
disabled: _ || m.length === 0,
|
|
29597
|
+
required: o.isRequired,
|
|
29598
|
+
children: [/* @__PURE__ */ W(uV, {
|
|
29599
|
+
ref: u,
|
|
29600
|
+
id: s,
|
|
29601
|
+
"aria-invalid": l.invalid,
|
|
29602
|
+
onBlur: d,
|
|
29603
|
+
children: /* @__PURE__ */ W(lV, { placeholder: y })
|
|
29604
|
+
}), /* @__PURE__ */ W(dV, { children: m.map((e) => /* @__PURE__ */ W(pV, {
|
|
29605
|
+
value: e,
|
|
29606
|
+
children: e
|
|
29607
|
+
}, e)) })]
|
|
29608
|
+
}),
|
|
29609
|
+
o.description && /* @__PURE__ */ W(v, { children: o.description }),
|
|
29610
|
+
/* @__PURE__ */ W(O, { errors: x(l.error) })
|
|
29611
|
+
]
|
|
29612
|
+
});
|
|
29613
|
+
}
|
|
29614
|
+
function iJ(e) {
|
|
29615
|
+
return typeof e == "string" ? [e] : Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
29616
|
+
}
|
|
29617
|
+
function aJ(e) {
|
|
29618
|
+
let t = e?.resources;
|
|
29619
|
+
return Array.isArray(t) ? t.filter((e) => typeof e == "object" && !!e && typeof e.name == "string" && typeof e.type == "string") : null;
|
|
29620
|
+
}
|
|
29621
|
+
//#endregion
|
|
29561
29622
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
29562
|
-
var
|
|
29563
|
-
function
|
|
29623
|
+
var oJ = Ae(() => import("./CodeEditorField-cwZAv7Ib.js").then((e) => ({ default: e.CodeEditorField })));
|
|
29624
|
+
function sJ({ node: e, name: t, depth: n = 0 }) {
|
|
29564
29625
|
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
29626
|
if (i.deprecated === !0) return null;
|
|
29566
|
-
let u =
|
|
29627
|
+
let u = cJ(e, a, t, n);
|
|
29567
29628
|
return u === null ? null : (l && (u = /* @__PURE__ */ W(eq, {
|
|
29568
29629
|
condition: l,
|
|
29569
29630
|
children: u
|
|
@@ -29573,131 +29634,134 @@ function nJ({ node: e, name: t, depth: n = 0 }) {
|
|
|
29573
29634
|
children: u
|
|
29574
29635
|
}) : u);
|
|
29575
29636
|
}
|
|
29576
|
-
function
|
|
29577
|
-
let { schema: i } = e, a =
|
|
29578
|
-
return Array.isArray(i.enum) && i.enum.length > 0 || mq(i) ? /* @__PURE__ */ W(
|
|
29637
|
+
function cJ(e, t, n, r) {
|
|
29638
|
+
let { schema: i } = e, a = lJ(i.type);
|
|
29639
|
+
return Array.isArray(i.enum) && i.enum.length > 0 || mq(i) ? /* @__PURE__ */ W(Lq, {
|
|
29579
29640
|
node: e,
|
|
29580
29641
|
name: t
|
|
29581
|
-
}) : hq(i) ? /* @__PURE__ */ W(
|
|
29642
|
+
}) : hq(i) ? /* @__PURE__ */ W(zq, {
|
|
29582
29643
|
node: e,
|
|
29583
29644
|
name: t
|
|
29584
|
-
}) : gq(i) ? /* @__PURE__ */ W(
|
|
29645
|
+
}) : gq(i) ? /* @__PURE__ */ W(kq, {
|
|
29585
29646
|
node: e,
|
|
29586
29647
|
name: t
|
|
29587
|
-
}) :
|
|
29648
|
+
}) : yq(i) ? /* @__PURE__ */ W(Ee, {
|
|
29588
29649
|
fallback: null,
|
|
29589
|
-
children: /* @__PURE__ */ W(
|
|
29650
|
+
children: /* @__PURE__ */ W(oJ, {
|
|
29590
29651
|
node: e,
|
|
29591
29652
|
name: t
|
|
29592
29653
|
})
|
|
29593
|
-
}) : a === "null" ? /* @__PURE__ */ W(
|
|
29654
|
+
}) : a === "null" ? /* @__PURE__ */ W(Vq, {}) : a === "boolean" ? /* @__PURE__ */ W(Nq, {
|
|
29594
29655
|
node: e,
|
|
29595
29656
|
name: t
|
|
29596
|
-
}) : a === "integer" || a === "number" ? /* @__PURE__ */ W(
|
|
29657
|
+
}) : a === "integer" || a === "number" ? /* @__PURE__ */ W(Hq, {
|
|
29597
29658
|
node: e,
|
|
29598
29659
|
name: t
|
|
29599
|
-
}) :
|
|
29660
|
+
}) : _q(i) ? /* @__PURE__ */ W(nJ, {
|
|
29600
29661
|
node: e,
|
|
29601
29662
|
name: t
|
|
29602
|
-
}) :
|
|
29663
|
+
}) : a === "string" ? /* @__PURE__ */ W(tJ, {
|
|
29664
|
+
node: e,
|
|
29665
|
+
name: t
|
|
29666
|
+
}) : i.properties || a === "object" || bq(i) || xq(i) ? /* @__PURE__ */ W($q, {
|
|
29603
29667
|
node: e,
|
|
29604
29668
|
name: n,
|
|
29605
29669
|
depth: r
|
|
29606
|
-
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ W(
|
|
29670
|
+
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ W(Eq, {
|
|
29607
29671
|
node: e,
|
|
29608
29672
|
name: n,
|
|
29609
29673
|
depth: r
|
|
29610
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
29674
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${uJ(i)}). Field is omitted.`), null);
|
|
29611
29675
|
}
|
|
29612
|
-
function
|
|
29676
|
+
function lJ(e) {
|
|
29613
29677
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
29614
29678
|
}
|
|
29615
|
-
function
|
|
29679
|
+
function uJ(e) {
|
|
29616
29680
|
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
29681
|
}
|
|
29618
29682
|
//#endregion
|
|
29619
29683
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
29620
|
-
function
|
|
29621
|
-
return
|
|
29684
|
+
function dJ(e) {
|
|
29685
|
+
return fJ(e);
|
|
29622
29686
|
}
|
|
29623
|
-
function
|
|
29687
|
+
function fJ(e) {
|
|
29624
29688
|
let t = { ...e };
|
|
29625
29689
|
if (t.properties) {
|
|
29626
29690
|
let e = new Set(t.required ?? []), n = {};
|
|
29627
29691
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
29628
|
-
let t =
|
|
29692
|
+
let t = fJ(i);
|
|
29629
29693
|
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
29694
|
}
|
|
29631
29695
|
t.properties = n;
|
|
29632
29696
|
}
|
|
29633
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
29697
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(fJ) : fJ(t.items), t.oneOf &&= t.oneOf.map(fJ), t.anyOf &&= t.anyOf.map(fJ), t.allOf &&= t.allOf.map(fJ), t.dependencies &&= rq(t.dependencies, fJ), t;
|
|
29634
29698
|
}
|
|
29635
29699
|
//#endregion
|
|
29636
29700
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
29637
|
-
function
|
|
29638
|
-
if (
|
|
29701
|
+
function pJ(e) {
|
|
29702
|
+
if (vq(e)) return { deprecated: !0 };
|
|
29639
29703
|
let t = { ...e };
|
|
29640
29704
|
if (e.properties) {
|
|
29641
29705
|
let n = [];
|
|
29642
29706
|
t.properties = {};
|
|
29643
|
-
for (let [r, i] of Object.entries(e.properties))
|
|
29707
|
+
for (let [r, i] of Object.entries(e.properties)) vq(i) && n.push(r), t.properties[r] = pJ(i);
|
|
29644
29708
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
29645
29709
|
}
|
|
29646
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
29710
|
+
return e.items && !Array.isArray(e.items) && (t.items = pJ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => !vq(e)).map(pJ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => !vq(e)).map(pJ)), e.dependencies && (t.dependencies = rq(e.dependencies, pJ)), t;
|
|
29647
29711
|
}
|
|
29648
29712
|
//#endregion
|
|
29649
29713
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
29650
|
-
function
|
|
29651
|
-
let n =
|
|
29714
|
+
function mJ(e, t = "") {
|
|
29715
|
+
let n = dJ(pJ(iq(dq(e)))), r = /* @__PURE__ */ new Map();
|
|
29652
29716
|
return {
|
|
29653
|
-
root:
|
|
29717
|
+
root: hJ(n, "", !1, r, "", t),
|
|
29654
29718
|
nodeByPath: r,
|
|
29655
29719
|
variantIndices: /* @__PURE__ */ new Map()
|
|
29656
29720
|
};
|
|
29657
29721
|
}
|
|
29658
|
-
function
|
|
29722
|
+
function hJ(e, t, n, r, i = "", a = "") {
|
|
29659
29723
|
let o = {
|
|
29660
29724
|
rhfPath: t,
|
|
29661
29725
|
schema: e,
|
|
29662
29726
|
isRequired: n
|
|
29663
29727
|
};
|
|
29664
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
29728
|
+
if (e.gioConfig?.displayIf && (o.displayIf = bJ(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = bJ(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
29665
29729
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
29666
29730
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
29667
29731
|
let e = t ? `${t}.${o}` : o;
|
|
29668
|
-
i.set(o,
|
|
29732
|
+
i.set(o, hJ(s, e, n.has(o), r, t, a));
|
|
29669
29733
|
}
|
|
29670
29734
|
o.properties = i;
|
|
29671
29735
|
}
|
|
29672
29736
|
if (e.items && !Array.isArray(e.items)) {
|
|
29673
29737
|
let n = t ? `${t}.*` : "*";
|
|
29674
|
-
o.items =
|
|
29738
|
+
o.items = hJ(e.items, n, !1, r, t, a);
|
|
29675
29739
|
}
|
|
29676
29740
|
let s = e.oneOf ?? e.anyOf;
|
|
29677
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
29678
|
-
let n =
|
|
29741
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = gJ(s).map((e) => _J(e, t, a))), e.dependencies) {
|
|
29742
|
+
let n = SJ(e.dependencies, t, a);
|
|
29679
29743
|
n.length > 0 && (o.dependencyBranches = n);
|
|
29680
29744
|
}
|
|
29681
29745
|
return r.set(t, o), o;
|
|
29682
29746
|
}
|
|
29683
|
-
function
|
|
29747
|
+
function gJ(e) {
|
|
29684
29748
|
let t = /* @__PURE__ */ new Set();
|
|
29685
29749
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
29686
29750
|
}
|
|
29687
|
-
function
|
|
29751
|
+
function _J(e, t, n) {
|
|
29688
29752
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
29689
29753
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
29690
|
-
let e =
|
|
29754
|
+
let e = vJ(s);
|
|
29691
29755
|
e && a.push({
|
|
29692
29756
|
key: o,
|
|
29693
29757
|
value: e.value
|
|
29694
29758
|
});
|
|
29695
29759
|
let c = t ? `${t}.${o}` : o;
|
|
29696
|
-
i.set(o,
|
|
29760
|
+
i.set(o, yJ(s, c, r.has(o), t, n));
|
|
29697
29761
|
}
|
|
29698
29762
|
let o;
|
|
29699
29763
|
if (e.dependencies) {
|
|
29700
|
-
let r =
|
|
29764
|
+
let r = SJ(e.dependencies, t, n);
|
|
29701
29765
|
r.length > 0 && (o = r);
|
|
29702
29766
|
}
|
|
29703
29767
|
return {
|
|
@@ -29708,21 +29772,21 @@ function fJ(e, t, n) {
|
|
|
29708
29772
|
raw: e
|
|
29709
29773
|
};
|
|
29710
29774
|
}
|
|
29711
|
-
function
|
|
29775
|
+
function vJ(e) {
|
|
29712
29776
|
if (e.const !== void 0) return { value: e.const };
|
|
29713
29777
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
29714
29778
|
}
|
|
29715
|
-
function
|
|
29716
|
-
return
|
|
29779
|
+
function yJ(e, t, n, r, i) {
|
|
29780
|
+
return hJ(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
29717
29781
|
}
|
|
29718
|
-
function
|
|
29782
|
+
function bJ(e, t, n) {
|
|
29719
29783
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
29720
29784
|
for (let [a, o] of Object.entries(e.$eq)) {
|
|
29721
29785
|
if (a.startsWith("context.")) {
|
|
29722
29786
|
i.set(a.slice(8), o);
|
|
29723
29787
|
continue;
|
|
29724
29788
|
}
|
|
29725
|
-
let e =
|
|
29789
|
+
let e = xJ(a, t, n);
|
|
29726
29790
|
if (e === null) {
|
|
29727
29791
|
console.warn(`[JsonSchemaForm] gioConfig path "${a}" is unsupported (expected value.X / ./X / ../X / context.X).`);
|
|
29728
29792
|
continue;
|
|
@@ -29734,7 +29798,7 @@ function hJ(e, t, n) {
|
|
|
29734
29798
|
$eqContext: i
|
|
29735
29799
|
} : { $eq: r };
|
|
29736
29800
|
}
|
|
29737
|
-
function
|
|
29801
|
+
function xJ(e, t, n) {
|
|
29738
29802
|
let r = null;
|
|
29739
29803
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
29740
29804
|
else if (e.startsWith("./")) {
|
|
@@ -29748,24 +29812,24 @@ function gJ(e, t, n) {
|
|
|
29748
29812
|
}
|
|
29749
29813
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
29750
29814
|
}
|
|
29751
|
-
function
|
|
29815
|
+
function SJ(e, t, n) {
|
|
29752
29816
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
29753
|
-
let i =
|
|
29817
|
+
let i = CJ(e, r);
|
|
29754
29818
|
if (!i) return [];
|
|
29755
29819
|
let a = t ? `${t}.${e}` : e;
|
|
29756
|
-
return i.map((r) =>
|
|
29820
|
+
return i.map((r) => wJ(r, e, a, t, n));
|
|
29757
29821
|
});
|
|
29758
29822
|
}
|
|
29759
|
-
function
|
|
29823
|
+
function CJ(e, t) {
|
|
29760
29824
|
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 &&
|
|
29825
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && vJ(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
29826
|
}
|
|
29763
|
-
function
|
|
29764
|
-
let a =
|
|
29827
|
+
function wJ(e, t, n, r, i) {
|
|
29828
|
+
let a = vJ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
29765
29829
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
29766
29830
|
if (n === t) continue;
|
|
29767
29831
|
let e = r ? `${r}.${n}` : n;
|
|
29768
|
-
s.set(n,
|
|
29832
|
+
s.set(n, yJ(a, e, o.has(n), r, i));
|
|
29769
29833
|
}
|
|
29770
29834
|
let c = i ? `${i}.${n}` : n;
|
|
29771
29835
|
return {
|
|
@@ -29776,12 +29840,12 @@ function yJ(e, t, n, r, i) {
|
|
|
29776
29840
|
}
|
|
29777
29841
|
//#endregion
|
|
29778
29842
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
29779
|
-
function
|
|
29843
|
+
function TJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
29780
29844
|
let a = U(() => {
|
|
29781
29845
|
try {
|
|
29782
29846
|
return {
|
|
29783
29847
|
ok: !0,
|
|
29784
|
-
value:
|
|
29848
|
+
value: mJ(e, n)
|
|
29785
29849
|
};
|
|
29786
29850
|
} catch (e) {
|
|
29787
29851
|
return {
|
|
@@ -29810,7 +29874,7 @@ function bJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
29810
29874
|
]);
|
|
29811
29875
|
return o.ok ? /* @__PURE__ */ W(m.Provider, {
|
|
29812
29876
|
value: o.contextValue,
|
|
29813
|
-
children: /* @__PURE__ */ W(
|
|
29877
|
+
children: /* @__PURE__ */ W(sJ, { node: o.contextValue.index.root })
|
|
29814
29878
|
}) : /* @__PURE__ */ G("p", {
|
|
29815
29879
|
role: "alert",
|
|
29816
29880
|
className: "text-sm text-destructive",
|
|
@@ -29819,7 +29883,7 @@ function bJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
29819
29883
|
}
|
|
29820
29884
|
//#endregion
|
|
29821
29885
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
29822
|
-
function
|
|
29886
|
+
function EJ(...e) {
|
|
29823
29887
|
return async (t, n, r) => {
|
|
29824
29888
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
29825
29889
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -29834,7 +29898,7 @@ function xJ(...e) {
|
|
|
29834
29898
|
}
|
|
29835
29899
|
//#endregion
|
|
29836
29900
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
29837
|
-
var
|
|
29901
|
+
var DJ = /* @__PURE__ */ K(((e) => {
|
|
29838
29902
|
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
29903
|
var t = class {};
|
|
29840
29904
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -29939,9 +30003,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
29939
30003
|
return new r(e.toString());
|
|
29940
30004
|
}
|
|
29941
30005
|
e.regexpCode = g;
|
|
29942
|
-
})),
|
|
30006
|
+
})), OJ = /* @__PURE__ */ K(((e) => {
|
|
29943
30007
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
29944
|
-
var t =
|
|
30008
|
+
var t = DJ(), n = class extends Error {
|
|
29945
30009
|
constructor(e) {
|
|
29946
30010
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
29947
30011
|
}
|
|
@@ -30050,9 +30114,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30050
30114
|
return c;
|
|
30051
30115
|
}
|
|
30052
30116
|
};
|
|
30053
|
-
})),
|
|
30117
|
+
})), kJ = /* @__PURE__ */ K(((e) => {
|
|
30054
30118
|
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 =
|
|
30119
|
+
var t = DJ(), n = OJ(), r = DJ();
|
|
30056
30120
|
Object.defineProperty(e, "_", {
|
|
30057
30121
|
enumerable: !0,
|
|
30058
30122
|
get: function() {
|
|
@@ -30094,7 +30158,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30094
30158
|
return r.Name;
|
|
30095
30159
|
}
|
|
30096
30160
|
});
|
|
30097
|
-
var i =
|
|
30161
|
+
var i = OJ();
|
|
30098
30162
|
Object.defineProperty(e, "Scope", {
|
|
30099
30163
|
enumerable: !0,
|
|
30100
30164
|
get: function() {
|
|
@@ -30565,9 +30629,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30565
30629
|
function L(e) {
|
|
30566
30630
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
30567
30631
|
}
|
|
30568
|
-
})),
|
|
30632
|
+
})), AJ = /* @__PURE__ */ K(((e) => {
|
|
30569
30633
|
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 =
|
|
30634
|
+
var t = kJ(), n = DJ();
|
|
30571
30635
|
function r(e) {
|
|
30572
30636
|
let t = {};
|
|
30573
30637
|
for (let n of e) t[n] = !0;
|
|
@@ -30690,9 +30754,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30690
30754
|
}
|
|
30691
30755
|
}
|
|
30692
30756
|
e.checkStrictMode = x;
|
|
30693
|
-
})),
|
|
30757
|
+
})), jJ = /* @__PURE__ */ K(((e) => {
|
|
30694
30758
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
30695
|
-
var t =
|
|
30759
|
+
var t = kJ();
|
|
30696
30760
|
e.default = {
|
|
30697
30761
|
data: new t.Name("data"),
|
|
30698
30762
|
valCxt: new t.Name("valCxt"),
|
|
@@ -30711,9 +30775,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30711
30775
|
jsonLen: new t.Name("jsonLen"),
|
|
30712
30776
|
jsonPart: new t.Name("jsonPart")
|
|
30713
30777
|
};
|
|
30714
|
-
})),
|
|
30778
|
+
})), MJ = /* @__PURE__ */ K(((e) => {
|
|
30715
30779
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
30716
|
-
var t =
|
|
30780
|
+
var t = kJ(), n = AJ(), r = jJ();
|
|
30717
30781
|
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
30782
|
function i(n, r = e.keywordError, i, a) {
|
|
30719
30783
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -30775,9 +30839,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30775
30839
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
30776
30840
|
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
30841
|
}
|
|
30778
|
-
})),
|
|
30842
|
+
})), NJ = /* @__PURE__ */ K(((e) => {
|
|
30779
30843
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
30780
|
-
var t =
|
|
30844
|
+
var t = MJ(), n = kJ(), r = jJ(), i = { message: "boolean schema is false" };
|
|
30781
30845
|
function a(e) {
|
|
30782
30846
|
let { gen: t, schema: i, validateName: a } = e;
|
|
30783
30847
|
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 +30865,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30801
30865
|
};
|
|
30802
30866
|
(0, t.reportError)(o, i, void 0, n);
|
|
30803
30867
|
}
|
|
30804
|
-
})),
|
|
30868
|
+
})), PJ = /* @__PURE__ */ K(((e) => {
|
|
30805
30869
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
30806
30870
|
var t = new Set([
|
|
30807
30871
|
"string",
|
|
@@ -30855,7 +30919,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30855
30919
|
};
|
|
30856
30920
|
}
|
|
30857
30921
|
e.getRules = r;
|
|
30858
|
-
})),
|
|
30922
|
+
})), FJ = /* @__PURE__ */ K(((e) => {
|
|
30859
30923
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
30860
30924
|
function t({ schema: e, self: t }, r) {
|
|
30861
30925
|
let i = t.RULES.types[r];
|
|
@@ -30870,9 +30934,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
30870
30934
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
30871
30935
|
}
|
|
30872
30936
|
e.shouldUseRule = r;
|
|
30873
|
-
})),
|
|
30937
|
+
})), IJ = /* @__PURE__ */ K(((e) => {
|
|
30874
30938
|
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 =
|
|
30939
|
+
var t = PJ(), n = FJ(), r = MJ(), i = kJ(), a = AJ(), o;
|
|
30876
30940
|
(function(e) {
|
|
30877
30941
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
30878
30942
|
})(o || (e.DataType = o = {}));
|
|
@@ -31007,9 +31071,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31007
31071
|
it: e
|
|
31008
31072
|
};
|
|
31009
31073
|
}
|
|
31010
|
-
})),
|
|
31074
|
+
})), LJ = /* @__PURE__ */ K(((e) => {
|
|
31011
31075
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
31012
|
-
var t =
|
|
31076
|
+
var t = kJ(), n = AJ();
|
|
31013
31077
|
function r(e, t) {
|
|
31014
31078
|
let { properties: n, items: r } = e.schema;
|
|
31015
31079
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -31027,9 +31091,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31027
31091
|
let u = (0, t._)`${l} === undefined`;
|
|
31028
31092
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
31029
31093
|
}
|
|
31030
|
-
})),
|
|
31094
|
+
})), RJ = /* @__PURE__ */ K(((e) => {
|
|
31031
31095
|
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 =
|
|
31096
|
+
var t = kJ(), n = AJ(), r = jJ(), i = AJ();
|
|
31033
31097
|
function a(e, n) {
|
|
31034
31098
|
let { gen: r, data: i, it: a } = e;
|
|
31035
31099
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -31131,9 +31195,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31131
31195
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
31132
31196
|
}
|
|
31133
31197
|
e.validateUnion = v;
|
|
31134
|
-
})),
|
|
31198
|
+
})), zJ = /* @__PURE__ */ K(((e) => {
|
|
31135
31199
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
31136
|
-
var t =
|
|
31200
|
+
var t = kJ(), n = jJ(), r = RJ(), i = MJ();
|
|
31137
31201
|
function a(e, n) {
|
|
31138
31202
|
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
31203
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -31212,9 +31276,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31212
31276
|
}
|
|
31213
31277
|
}
|
|
31214
31278
|
e.validateKeywordUsage = f;
|
|
31215
|
-
})),
|
|
31279
|
+
})), BJ = /* @__PURE__ */ K(((e) => {
|
|
31216
31280
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
31217
|
-
var t =
|
|
31281
|
+
var t = kJ(), n = AJ();
|
|
31218
31282
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
31219
31283
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
31220
31284
|
if (r !== void 0) {
|
|
@@ -31258,7 +31322,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31258
31322
|
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
31323
|
}
|
|
31260
31324
|
e.extendSubschemaMode = a;
|
|
31261
|
-
})),
|
|
31325
|
+
})), VJ = /* @__PURE__ */ K(((e, t) => {
|
|
31262
31326
|
t.exports = function e(t, n) {
|
|
31263
31327
|
if (t === n) return !0;
|
|
31264
31328
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -31282,7 +31346,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31282
31346
|
}
|
|
31283
31347
|
return t !== t && n !== n;
|
|
31284
31348
|
};
|
|
31285
|
-
})),
|
|
31349
|
+
})), HJ = /* @__PURE__ */ K(((e, t) => {
|
|
31286
31350
|
var n = t.exports = function(e, t, n) {
|
|
31287
31351
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
31288
31352
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -31345,9 +31409,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31345
31409
|
function i(e) {
|
|
31346
31410
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
31347
31411
|
}
|
|
31348
|
-
})),
|
|
31412
|
+
})), UJ = /* @__PURE__ */ K(((e) => {
|
|
31349
31413
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
31350
|
-
var t =
|
|
31414
|
+
var t = AJ(), n = VJ(), r = HJ(), i = new Set([
|
|
31351
31415
|
"type",
|
|
31352
31416
|
"format",
|
|
31353
31417
|
"pattern",
|
|
@@ -31436,9 +31500,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31436
31500
|
}
|
|
31437
31501
|
}
|
|
31438
31502
|
e.getSchemaRefs = h;
|
|
31439
|
-
})),
|
|
31503
|
+
})), WJ = /* @__PURE__ */ K(((e) => {
|
|
31440
31504
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
31441
|
-
var t =
|
|
31505
|
+
var t = NJ(), n = IJ(), r = FJ(), i = IJ(), a = LJ(), o = zJ(), s = BJ(), c = kJ(), l = jJ(), u = UJ(), d = AJ(), f = MJ();
|
|
31442
31506
|
function p(e) {
|
|
31443
31507
|
if (S(e) && (w(e), x(e))) {
|
|
31444
31508
|
_(e);
|
|
@@ -31728,23 +31792,23 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31728
31792
|
}
|
|
31729
31793
|
}
|
|
31730
31794
|
e.getData = se;
|
|
31731
|
-
})),
|
|
31795
|
+
})), GJ = /* @__PURE__ */ K(((e) => {
|
|
31732
31796
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
31733
31797
|
constructor(e) {
|
|
31734
31798
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
31735
31799
|
}
|
|
31736
31800
|
};
|
|
31737
|
-
})),
|
|
31801
|
+
})), KJ = /* @__PURE__ */ K(((e) => {
|
|
31738
31802
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
31739
|
-
var t =
|
|
31803
|
+
var t = UJ();
|
|
31740
31804
|
e.default = class extends Error {
|
|
31741
31805
|
constructor(e, n, r, i) {
|
|
31742
31806
|
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
31807
|
}
|
|
31744
31808
|
};
|
|
31745
|
-
})),
|
|
31809
|
+
})), qJ = /* @__PURE__ */ K(((e) => {
|
|
31746
31810
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
31747
|
-
var t =
|
|
31811
|
+
var t = kJ(), n = GJ(), r = jJ(), i = UJ(), a = AJ(), o = WJ(), s = class {
|
|
31748
31812
|
constructor(e) {
|
|
31749
31813
|
this.refs = {}, this.dynamicAnchors = {};
|
|
31750
31814
|
let t;
|
|
@@ -31903,27 +31967,27 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
31903
31967
|
baseId: t
|
|
31904
31968
|
}), o.schema !== o.root.schema) return o;
|
|
31905
31969
|
}
|
|
31906
|
-
})),
|
|
31907
|
-
$id: () =>
|
|
31970
|
+
})), JJ = /* @__PURE__ */ it({
|
|
31971
|
+
$id: () => YJ,
|
|
31908
31972
|
additionalProperties: () => !1,
|
|
31909
|
-
default: () =>
|
|
31910
|
-
description: () =>
|
|
31911
|
-
properties: () =>
|
|
31912
|
-
required: () =>
|
|
31913
|
-
type: () =>
|
|
31914
|
-
}),
|
|
31915
|
-
|
|
31973
|
+
default: () => eY,
|
|
31974
|
+
description: () => XJ,
|
|
31975
|
+
properties: () => $J,
|
|
31976
|
+
required: () => QJ,
|
|
31977
|
+
type: () => ZJ
|
|
31978
|
+
}), YJ, XJ, ZJ, QJ, $J, eY, tY = rt((() => {
|
|
31979
|
+
YJ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", XJ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", ZJ = "object", QJ = ["$data"], $J = { $data: {
|
|
31916
31980
|
type: "string",
|
|
31917
31981
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
31918
|
-
} },
|
|
31919
|
-
$id:
|
|
31920
|
-
description:
|
|
31921
|
-
type:
|
|
31922
|
-
required:
|
|
31923
|
-
properties:
|
|
31982
|
+
} }, eY = {
|
|
31983
|
+
$id: YJ,
|
|
31984
|
+
description: XJ,
|
|
31985
|
+
type: ZJ,
|
|
31986
|
+
required: QJ,
|
|
31987
|
+
properties: $J,
|
|
31924
31988
|
additionalProperties: !1
|
|
31925
31989
|
};
|
|
31926
|
-
})),
|
|
31990
|
+
})), nY = /* @__PURE__ */ K(((e, t) => {
|
|
31927
31991
|
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
31992
|
function s(e) {
|
|
31929
31993
|
let t = "", n = 0, r = 0;
|
|
@@ -32135,8 +32199,8 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32135
32199
|
normalizeIPv6: f,
|
|
32136
32200
|
stringArrayToHexStripped: s
|
|
32137
32201
|
};
|
|
32138
|
-
})),
|
|
32139
|
-
var { isUUID: n } =
|
|
32202
|
+
})), rY = /* @__PURE__ */ K(((e, t) => {
|
|
32203
|
+
var { isUUID: n } = nY(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
32140
32204
|
"http",
|
|
32141
32205
|
"https",
|
|
32142
32206
|
"ws",
|
|
@@ -32241,8 +32305,8 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32241
32305
|
isValidSchemeName: a,
|
|
32242
32306
|
getSchemeHandler: y
|
|
32243
32307
|
};
|
|
32244
|
-
})),
|
|
32245
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
32308
|
+
})), iY = /* @__PURE__ */ K(((e, t) => {
|
|
32309
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = nY(), { SCHEMES: d, getSchemeHandler: f } = rY();
|
|
32246
32310
|
function p(e, t) {
|
|
32247
32311
|
return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
|
|
32248
32312
|
}
|
|
@@ -32356,20 +32420,20 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32356
32420
|
parse: x
|
|
32357
32421
|
};
|
|
32358
32422
|
t.exports = T, t.exports.default = T, t.exports.fastUri = T;
|
|
32359
|
-
})),
|
|
32423
|
+
})), aY = /* @__PURE__ */ K(((e) => {
|
|
32360
32424
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32361
|
-
var t =
|
|
32425
|
+
var t = iY();
|
|
32362
32426
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
32363
|
-
})),
|
|
32427
|
+
})), oY = /* @__PURE__ */ K(((e) => {
|
|
32364
32428
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
32365
|
-
var t =
|
|
32429
|
+
var t = WJ();
|
|
32366
32430
|
Object.defineProperty(e, "KeywordCxt", {
|
|
32367
32431
|
enumerable: !0,
|
|
32368
32432
|
get: function() {
|
|
32369
32433
|
return t.KeywordCxt;
|
|
32370
32434
|
}
|
|
32371
32435
|
});
|
|
32372
|
-
var n =
|
|
32436
|
+
var n = kJ();
|
|
32373
32437
|
Object.defineProperty(e, "_", {
|
|
32374
32438
|
enumerable: !0,
|
|
32375
32439
|
get: function() {
|
|
@@ -32401,7 +32465,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32401
32465
|
return n.CodeGen;
|
|
32402
32466
|
}
|
|
32403
32467
|
});
|
|
32404
|
-
var r =
|
|
32468
|
+
var r = GJ(), i = KJ(), a = PJ(), o = qJ(), s = kJ(), c = UJ(), l = IJ(), u = AJ(), d = (tY(), st(JJ).default), f = aY(), p = (e, t) => new RegExp(e, t);
|
|
32405
32469
|
p.code = "new RegExp";
|
|
32406
32470
|
var m = [
|
|
32407
32471
|
"removeAdditional",
|
|
@@ -32787,16 +32851,16 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32787
32851
|
function F(e) {
|
|
32788
32852
|
return { anyOf: [e, P] };
|
|
32789
32853
|
}
|
|
32790
|
-
})),
|
|
32854
|
+
})), sY = /* @__PURE__ */ K(((e) => {
|
|
32791
32855
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
32792
32856
|
keyword: "id",
|
|
32793
32857
|
code() {
|
|
32794
32858
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
32795
32859
|
}
|
|
32796
32860
|
};
|
|
32797
|
-
})),
|
|
32861
|
+
})), cY = /* @__PURE__ */ K(((e) => {
|
|
32798
32862
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
32799
|
-
var t =
|
|
32863
|
+
var t = KJ(), n = RJ(), r = kJ(), i = jJ(), a = qJ(), o = AJ(), s = {
|
|
32800
32864
|
keyword: "$ref",
|
|
32801
32865
|
schemaType: "string",
|
|
32802
32866
|
code(e) {
|
|
@@ -32869,9 +32933,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32869
32933
|
}
|
|
32870
32934
|
}
|
|
32871
32935
|
e.callRef = l, e.default = s;
|
|
32872
|
-
})),
|
|
32936
|
+
})), lY = /* @__PURE__ */ K(((e) => {
|
|
32873
32937
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32874
|
-
var t =
|
|
32938
|
+
var t = sY(), n = cY();
|
|
32875
32939
|
e.default = [
|
|
32876
32940
|
"$schema",
|
|
32877
32941
|
"$id",
|
|
@@ -32882,9 +32946,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32882
32946
|
t.default,
|
|
32883
32947
|
n.default
|
|
32884
32948
|
];
|
|
32885
|
-
})),
|
|
32949
|
+
})), uY = /* @__PURE__ */ K(((e) => {
|
|
32886
32950
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32887
|
-
var t =
|
|
32951
|
+
var t = kJ(), n = t.operators, r = {
|
|
32888
32952
|
maximum: {
|
|
32889
32953
|
okStr: "<=",
|
|
32890
32954
|
ok: n.LTE,
|
|
@@ -32920,9 +32984,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32920
32984
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
32921
32985
|
}
|
|
32922
32986
|
};
|
|
32923
|
-
})),
|
|
32987
|
+
})), dY = /* @__PURE__ */ K(((e) => {
|
|
32924
32988
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32925
|
-
var t =
|
|
32989
|
+
var t = kJ();
|
|
32926
32990
|
e.default = {
|
|
32927
32991
|
keyword: "multipleOf",
|
|
32928
32992
|
type: "number",
|
|
@@ -32937,7 +33001,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32937
33001
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
32938
33002
|
}
|
|
32939
33003
|
};
|
|
32940
|
-
})),
|
|
33004
|
+
})), fY = /* @__PURE__ */ K(((e) => {
|
|
32941
33005
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32942
33006
|
function t(e) {
|
|
32943
33007
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -32945,9 +33009,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32945
33009
|
return n;
|
|
32946
33010
|
}
|
|
32947
33011
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
32948
|
-
})),
|
|
33012
|
+
})), pY = /* @__PURE__ */ K(((e) => {
|
|
32949
33013
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32950
|
-
var t =
|
|
33014
|
+
var t = kJ(), n = AJ(), r = fY();
|
|
32951
33015
|
e.default = {
|
|
32952
33016
|
keyword: ["maxLength", "minLength"],
|
|
32953
33017
|
type: "string",
|
|
@@ -32965,9 +33029,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32965
33029
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
32966
33030
|
}
|
|
32967
33031
|
};
|
|
32968
|
-
})),
|
|
33032
|
+
})), mY = /* @__PURE__ */ K(((e) => {
|
|
32969
33033
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32970
|
-
var t =
|
|
33034
|
+
var t = RJ(), n = AJ(), r = kJ();
|
|
32971
33035
|
e.default = {
|
|
32972
33036
|
keyword: "pattern",
|
|
32973
33037
|
type: "string",
|
|
@@ -32988,9 +33052,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
32988
33052
|
}
|
|
32989
33053
|
}
|
|
32990
33054
|
};
|
|
32991
|
-
})),
|
|
33055
|
+
})), hY = /* @__PURE__ */ K(((e) => {
|
|
32992
33056
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32993
|
-
var t =
|
|
33057
|
+
var t = kJ();
|
|
32994
33058
|
e.default = {
|
|
32995
33059
|
keyword: ["maxProperties", "minProperties"],
|
|
32996
33060
|
type: "object",
|
|
@@ -33008,9 +33072,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33008
33072
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
33009
33073
|
}
|
|
33010
33074
|
};
|
|
33011
|
-
})),
|
|
33075
|
+
})), gY = /* @__PURE__ */ K(((e) => {
|
|
33012
33076
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33013
|
-
var t =
|
|
33077
|
+
var t = RJ(), n = kJ(), r = AJ();
|
|
33014
33078
|
e.default = {
|
|
33015
33079
|
keyword: "required",
|
|
33016
33080
|
type: "object",
|
|
@@ -33056,9 +33120,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33056
33120
|
}
|
|
33057
33121
|
}
|
|
33058
33122
|
};
|
|
33059
|
-
})),
|
|
33123
|
+
})), _Y = /* @__PURE__ */ K(((e) => {
|
|
33060
33124
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33061
|
-
var t =
|
|
33125
|
+
var t = kJ();
|
|
33062
33126
|
e.default = {
|
|
33063
33127
|
keyword: ["maxItems", "minItems"],
|
|
33064
33128
|
type: "array",
|
|
@@ -33076,13 +33140,13 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33076
33140
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
33077
33141
|
}
|
|
33078
33142
|
};
|
|
33079
|
-
})),
|
|
33143
|
+
})), vY = /* @__PURE__ */ K(((e) => {
|
|
33080
33144
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33081
|
-
var t =
|
|
33145
|
+
var t = VJ();
|
|
33082
33146
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
33083
|
-
})),
|
|
33147
|
+
})), yY = /* @__PURE__ */ K(((e) => {
|
|
33084
33148
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33085
|
-
var t =
|
|
33149
|
+
var t = IJ(), n = kJ(), r = AJ(), i = vY();
|
|
33086
33150
|
e.default = {
|
|
33087
33151
|
keyword: "uniqueItems",
|
|
33088
33152
|
type: "array",
|
|
@@ -33123,9 +33187,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33123
33187
|
}
|
|
33124
33188
|
}
|
|
33125
33189
|
};
|
|
33126
|
-
})),
|
|
33190
|
+
})), bY = /* @__PURE__ */ K(((e) => {
|
|
33127
33191
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33128
|
-
var t =
|
|
33192
|
+
var t = kJ(), n = AJ(), r = vY();
|
|
33129
33193
|
e.default = {
|
|
33130
33194
|
keyword: "const",
|
|
33131
33195
|
$data: !0,
|
|
@@ -33138,9 +33202,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33138
33202
|
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
33203
|
}
|
|
33140
33204
|
};
|
|
33141
|
-
})),
|
|
33205
|
+
})), xY = /* @__PURE__ */ K(((e) => {
|
|
33142
33206
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33143
|
-
var t =
|
|
33207
|
+
var t = kJ(), n = AJ(), r = vY();
|
|
33144
33208
|
e.default = {
|
|
33145
33209
|
keyword: "enum",
|
|
33146
33210
|
schemaType: "array",
|
|
@@ -33170,9 +33234,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33170
33234
|
}
|
|
33171
33235
|
}
|
|
33172
33236
|
};
|
|
33173
|
-
})),
|
|
33237
|
+
})), SY = /* @__PURE__ */ K(((e) => {
|
|
33174
33238
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33175
|
-
var t =
|
|
33239
|
+
var t = uY(), n = dY(), r = pY(), i = mY(), a = hY(), o = gY(), s = _Y(), c = yY(), l = bY(), u = xY();
|
|
33176
33240
|
e.default = [
|
|
33177
33241
|
t.default,
|
|
33178
33242
|
n.default,
|
|
@@ -33193,9 +33257,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33193
33257
|
l.default,
|
|
33194
33258
|
u.default
|
|
33195
33259
|
];
|
|
33196
|
-
})),
|
|
33260
|
+
})), CY = /* @__PURE__ */ K(((e) => {
|
|
33197
33261
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
33198
|
-
var t =
|
|
33262
|
+
var t = kJ(), n = AJ(), r = {
|
|
33199
33263
|
keyword: "additionalItems",
|
|
33200
33264
|
type: "array",
|
|
33201
33265
|
schemaType: ["boolean", "object"],
|
|
@@ -33233,9 +33297,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33233
33297
|
}
|
|
33234
33298
|
}
|
|
33235
33299
|
e.validateAdditionalItems = i, e.default = r;
|
|
33236
|
-
})),
|
|
33300
|
+
})), wY = /* @__PURE__ */ K(((e) => {
|
|
33237
33301
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
33238
|
-
var t =
|
|
33302
|
+
var t = kJ(), n = AJ(), r = RJ(), i = {
|
|
33239
33303
|
keyword: "items",
|
|
33240
33304
|
type: "array",
|
|
33241
33305
|
schemaType: [
|
|
@@ -33270,9 +33334,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33270
33334
|
}
|
|
33271
33335
|
}
|
|
33272
33336
|
e.validateTuple = a, e.default = i;
|
|
33273
|
-
})),
|
|
33337
|
+
})), TY = /* @__PURE__ */ K(((e) => {
|
|
33274
33338
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33275
|
-
var t =
|
|
33339
|
+
var t = wY();
|
|
33276
33340
|
e.default = {
|
|
33277
33341
|
keyword: "prefixItems",
|
|
33278
33342
|
type: "array",
|
|
@@ -33280,9 +33344,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33280
33344
|
before: "uniqueItems",
|
|
33281
33345
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
33282
33346
|
};
|
|
33283
|
-
})),
|
|
33347
|
+
})), EY = /* @__PURE__ */ K(((e) => {
|
|
33284
33348
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33285
|
-
var t =
|
|
33349
|
+
var t = kJ(), n = AJ(), r = RJ(), i = CY();
|
|
33286
33350
|
e.default = {
|
|
33287
33351
|
keyword: "items",
|
|
33288
33352
|
type: "array",
|
|
@@ -33297,9 +33361,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33297
33361
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
33298
33362
|
}
|
|
33299
33363
|
};
|
|
33300
|
-
})),
|
|
33364
|
+
})), DY = /* @__PURE__ */ K(((e) => {
|
|
33301
33365
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33302
|
-
var t =
|
|
33366
|
+
var t = kJ(), n = AJ();
|
|
33303
33367
|
e.default = {
|
|
33304
33368
|
keyword: "contains",
|
|
33305
33369
|
type: "array",
|
|
@@ -33352,9 +33416,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33352
33416
|
}
|
|
33353
33417
|
}
|
|
33354
33418
|
};
|
|
33355
|
-
})),
|
|
33419
|
+
})), OY = /* @__PURE__ */ K(((e) => {
|
|
33356
33420
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
33357
|
-
var t =
|
|
33421
|
+
var t = kJ(), n = AJ(), r = RJ();
|
|
33358
33422
|
e.error = {
|
|
33359
33423
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
33360
33424
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -33413,9 +33477,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33413
33477
|
}, () => i.var(c, !0)), e.ok(c));
|
|
33414
33478
|
}
|
|
33415
33479
|
e.validateSchemaDeps = s, e.default = i;
|
|
33416
|
-
})),
|
|
33480
|
+
})), kY = /* @__PURE__ */ K(((e) => {
|
|
33417
33481
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33418
|
-
var t =
|
|
33482
|
+
var t = kJ(), n = AJ();
|
|
33419
33483
|
e.default = {
|
|
33420
33484
|
keyword: "propertyNames",
|
|
33421
33485
|
type: "object",
|
|
@@ -33441,9 +33505,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33441
33505
|
}), e.ok(s);
|
|
33442
33506
|
}
|
|
33443
33507
|
};
|
|
33444
|
-
})),
|
|
33508
|
+
})), AY = /* @__PURE__ */ K(((e) => {
|
|
33445
33509
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33446
|
-
var t =
|
|
33510
|
+
var t = RJ(), n = kJ(), r = jJ(), i = AJ();
|
|
33447
33511
|
e.default = {
|
|
33448
33512
|
keyword: "additionalProperties",
|
|
33449
33513
|
type: ["object"],
|
|
@@ -33508,9 +33572,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33508
33572
|
}
|
|
33509
33573
|
}
|
|
33510
33574
|
};
|
|
33511
|
-
})),
|
|
33575
|
+
})), jY = /* @__PURE__ */ K(((e) => {
|
|
33512
33576
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33513
|
-
var t =
|
|
33577
|
+
var t = WJ(), n = RJ(), r = AJ(), i = AY();
|
|
33514
33578
|
e.default = {
|
|
33515
33579
|
keyword: "properties",
|
|
33516
33580
|
type: "object",
|
|
@@ -33537,9 +33601,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33537
33601
|
}
|
|
33538
33602
|
}
|
|
33539
33603
|
};
|
|
33540
|
-
})),
|
|
33604
|
+
})), MY = /* @__PURE__ */ K(((e) => {
|
|
33541
33605
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33542
|
-
var t =
|
|
33606
|
+
var t = RJ(), n = kJ(), r = AJ(), i = AJ();
|
|
33543
33607
|
e.default = {
|
|
33544
33608
|
keyword: "patternProperties",
|
|
33545
33609
|
type: "object",
|
|
@@ -33572,9 +33636,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33572
33636
|
}
|
|
33573
33637
|
}
|
|
33574
33638
|
};
|
|
33575
|
-
})),
|
|
33639
|
+
})), NY = /* @__PURE__ */ K(((e) => {
|
|
33576
33640
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33577
|
-
var t =
|
|
33641
|
+
var t = AJ();
|
|
33578
33642
|
e.default = {
|
|
33579
33643
|
keyword: "not",
|
|
33580
33644
|
schemaType: ["object", "boolean"],
|
|
@@ -33595,17 +33659,17 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33595
33659
|
},
|
|
33596
33660
|
error: { message: "must NOT be valid" }
|
|
33597
33661
|
};
|
|
33598
|
-
})),
|
|
33662
|
+
})), PY = /* @__PURE__ */ K(((e) => {
|
|
33599
33663
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
33600
33664
|
keyword: "anyOf",
|
|
33601
33665
|
schemaType: "array",
|
|
33602
33666
|
trackErrors: !0,
|
|
33603
|
-
code:
|
|
33667
|
+
code: RJ().validateUnion,
|
|
33604
33668
|
error: { message: "must match a schema in anyOf" }
|
|
33605
33669
|
};
|
|
33606
|
-
})),
|
|
33670
|
+
})), FY = /* @__PURE__ */ K(((e) => {
|
|
33607
33671
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33608
|
-
var t =
|
|
33672
|
+
var t = kJ(), n = AJ();
|
|
33609
33673
|
e.default = {
|
|
33610
33674
|
keyword: "oneOf",
|
|
33611
33675
|
schemaType: "array",
|
|
@@ -33635,9 +33699,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33635
33699
|
}
|
|
33636
33700
|
}
|
|
33637
33701
|
};
|
|
33638
|
-
})),
|
|
33702
|
+
})), IY = /* @__PURE__ */ K(((e) => {
|
|
33639
33703
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33640
|
-
var t =
|
|
33704
|
+
var t = AJ();
|
|
33641
33705
|
e.default = {
|
|
33642
33706
|
keyword: "allOf",
|
|
33643
33707
|
schemaType: "array",
|
|
@@ -33656,9 +33720,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33656
33720
|
});
|
|
33657
33721
|
}
|
|
33658
33722
|
};
|
|
33659
|
-
})),
|
|
33723
|
+
})), LY = /* @__PURE__ */ K(((e) => {
|
|
33660
33724
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33661
|
-
var t =
|
|
33725
|
+
var t = kJ(), n = AJ(), r = {
|
|
33662
33726
|
keyword: "if",
|
|
33663
33727
|
schemaType: ["object", "boolean"],
|
|
33664
33728
|
trackErrors: !0,
|
|
@@ -33699,9 +33763,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33699
33763
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
33700
33764
|
}
|
|
33701
33765
|
e.default = r;
|
|
33702
|
-
})),
|
|
33766
|
+
})), RY = /* @__PURE__ */ K(((e) => {
|
|
33703
33767
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33704
|
-
var t =
|
|
33768
|
+
var t = AJ();
|
|
33705
33769
|
e.default = {
|
|
33706
33770
|
keyword: ["then", "else"],
|
|
33707
33771
|
schemaType: ["object", "boolean"],
|
|
@@ -33709,9 +33773,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33709
33773
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
33710
33774
|
}
|
|
33711
33775
|
};
|
|
33712
|
-
})),
|
|
33776
|
+
})), zY = /* @__PURE__ */ K(((e) => {
|
|
33713
33777
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33714
|
-
var t =
|
|
33778
|
+
var t = CY(), n = TY(), r = wY(), i = EY(), a = DY(), o = OY(), s = kY(), c = AY(), l = jY(), u = MY(), d = NY(), f = PY(), p = FY(), m = IY(), h = LY(), g = RY();
|
|
33715
33779
|
function _(e = !1) {
|
|
33716
33780
|
let _ = [
|
|
33717
33781
|
d.default,
|
|
@@ -33729,9 +33793,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33729
33793
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
33730
33794
|
}
|
|
33731
33795
|
e.default = _;
|
|
33732
|
-
})),
|
|
33796
|
+
})), BY = /* @__PURE__ */ K(((e) => {
|
|
33733
33797
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33734
|
-
var t =
|
|
33798
|
+
var t = kJ();
|
|
33735
33799
|
e.default = {
|
|
33736
33800
|
keyword: "format",
|
|
33737
33801
|
type: ["number", "string"],
|
|
@@ -33804,9 +33868,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33804
33868
|
}
|
|
33805
33869
|
}
|
|
33806
33870
|
};
|
|
33807
|
-
})),
|
|
33808
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
33809
|
-
})),
|
|
33871
|
+
})), VY = /* @__PURE__ */ K(((e) => {
|
|
33872
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [BY().default];
|
|
33873
|
+
})), HY = /* @__PURE__ */ K(((e) => {
|
|
33810
33874
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
33811
33875
|
"title",
|
|
33812
33876
|
"description",
|
|
@@ -33820,9 +33884,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33820
33884
|
"contentEncoding",
|
|
33821
33885
|
"contentSchema"
|
|
33822
33886
|
];
|
|
33823
|
-
})),
|
|
33887
|
+
})), UY = /* @__PURE__ */ K(((e) => {
|
|
33824
33888
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33825
|
-
var t =
|
|
33889
|
+
var t = lY(), n = SY(), r = zY(), i = VY(), a = HY();
|
|
33826
33890
|
e.default = [
|
|
33827
33891
|
t.default,
|
|
33828
33892
|
n.default,
|
|
@@ -33831,15 +33895,15 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33831
33895
|
a.metadataVocabulary,
|
|
33832
33896
|
a.contentVocabulary
|
|
33833
33897
|
];
|
|
33834
|
-
})),
|
|
33898
|
+
})), WY = /* @__PURE__ */ K(((e) => {
|
|
33835
33899
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
33836
33900
|
var t;
|
|
33837
33901
|
(function(e) {
|
|
33838
33902
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
33839
33903
|
})(t || (e.DiscrError = t = {}));
|
|
33840
|
-
})),
|
|
33904
|
+
})), GY = /* @__PURE__ */ K(((e) => {
|
|
33841
33905
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33842
|
-
var t =
|
|
33906
|
+
var t = kJ(), n = WY(), r = qJ(), i = KJ(), a = AJ();
|
|
33843
33907
|
e.default = {
|
|
33844
33908
|
keyword: "discriminator",
|
|
33845
33909
|
type: "object",
|
|
@@ -33907,16 +33971,16 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33907
33971
|
}
|
|
33908
33972
|
}
|
|
33909
33973
|
};
|
|
33910
|
-
})),
|
|
33911
|
-
$id: () =>
|
|
33912
|
-
$schema: () =>
|
|
33913
|
-
default: () =>
|
|
33914
|
-
definitions: () =>
|
|
33915
|
-
properties: () =>
|
|
33916
|
-
title: () =>
|
|
33917
|
-
type: () =>
|
|
33918
|
-
}),
|
|
33919
|
-
|
|
33974
|
+
})), KY = /* @__PURE__ */ it({
|
|
33975
|
+
$id: () => JY,
|
|
33976
|
+
$schema: () => qY,
|
|
33977
|
+
default: () => $Y,
|
|
33978
|
+
definitions: () => XY,
|
|
33979
|
+
properties: () => QY,
|
|
33980
|
+
title: () => YY,
|
|
33981
|
+
type: () => ZY
|
|
33982
|
+
}), qY, JY, YY, XY, ZY, QY, $Y, eX = rt((() => {
|
|
33983
|
+
qY = "http://json-schema.org/draft-07/schema#", JY = "http://json-schema.org/draft-07/schema#", YY = "Core schema meta-schema", XY = {
|
|
33920
33984
|
schemaArray: {
|
|
33921
33985
|
type: "array",
|
|
33922
33986
|
minItems: 1,
|
|
@@ -33942,7 +34006,7 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
33942
34006
|
uniqueItems: !0,
|
|
33943
34007
|
default: []
|
|
33944
34008
|
}
|
|
33945
|
-
},
|
|
34009
|
+
}, ZY = ["object", "boolean"], QY = {
|
|
33946
34010
|
$id: {
|
|
33947
34011
|
type: "string",
|
|
33948
34012
|
format: "uri-reference"
|
|
@@ -34041,18 +34105,18 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
34041
34105
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
34042
34106
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
34043
34107
|
not: { $ref: "#" }
|
|
34044
|
-
},
|
|
34045
|
-
$schema:
|
|
34046
|
-
$id:
|
|
34047
|
-
title:
|
|
34048
|
-
definitions:
|
|
34049
|
-
type:
|
|
34050
|
-
properties:
|
|
34108
|
+
}, $Y = {
|
|
34109
|
+
$schema: qY,
|
|
34110
|
+
$id: JY,
|
|
34111
|
+
title: YY,
|
|
34112
|
+
definitions: XY,
|
|
34113
|
+
type: ZY,
|
|
34114
|
+
properties: QY,
|
|
34051
34115
|
default: !0
|
|
34052
34116
|
};
|
|
34053
|
-
})),
|
|
34117
|
+
})), tX = /* @__PURE__ */ K(((e, t) => {
|
|
34054
34118
|
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 =
|
|
34119
|
+
var n = oY(), r = UY(), i = GY(), a = (eX(), st(KY).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
34056
34120
|
_addVocabularies() {
|
|
34057
34121
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
34058
34122
|
}
|
|
@@ -34066,14 +34130,14 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
34066
34130
|
}
|
|
34067
34131
|
};
|
|
34068
34132
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
34069
|
-
var l =
|
|
34133
|
+
var l = WJ();
|
|
34070
34134
|
Object.defineProperty(e, "KeywordCxt", {
|
|
34071
34135
|
enumerable: !0,
|
|
34072
34136
|
get: function() {
|
|
34073
34137
|
return l.KeywordCxt;
|
|
34074
34138
|
}
|
|
34075
34139
|
});
|
|
34076
|
-
var u =
|
|
34140
|
+
var u = kJ();
|
|
34077
34141
|
Object.defineProperty(e, "_", {
|
|
34078
34142
|
enumerable: !0,
|
|
34079
34143
|
get: function() {
|
|
@@ -34105,21 +34169,21 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
34105
34169
|
return u.CodeGen;
|
|
34106
34170
|
}
|
|
34107
34171
|
});
|
|
34108
|
-
var d =
|
|
34172
|
+
var d = GJ();
|
|
34109
34173
|
Object.defineProperty(e, "ValidationError", {
|
|
34110
34174
|
enumerable: !0,
|
|
34111
34175
|
get: function() {
|
|
34112
34176
|
return d.default;
|
|
34113
34177
|
}
|
|
34114
34178
|
});
|
|
34115
|
-
var f =
|
|
34179
|
+
var f = KJ();
|
|
34116
34180
|
Object.defineProperty(e, "MissingRefError", {
|
|
34117
34181
|
enumerable: !0,
|
|
34118
34182
|
get: function() {
|
|
34119
34183
|
return f.default;
|
|
34120
34184
|
}
|
|
34121
34185
|
});
|
|
34122
|
-
})),
|
|
34186
|
+
})), nX = /* @__PURE__ */ K(((e) => {
|
|
34123
34187
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
34124
34188
|
function t(e, t) {
|
|
34125
34189
|
return {
|
|
@@ -34271,9 +34335,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
34271
34335
|
return !1;
|
|
34272
34336
|
}
|
|
34273
34337
|
}
|
|
34274
|
-
})),
|
|
34338
|
+
})), rX = /* @__PURE__ */ K(((e) => {
|
|
34275
34339
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
34276
|
-
var t =
|
|
34340
|
+
var t = tX(), n = kJ(), r = n.operators, i = {
|
|
34277
34341
|
formatMaximum: {
|
|
34278
34342
|
okStr: "<=",
|
|
34279
34343
|
ok: r.LTE,
|
|
@@ -34333,9 +34397,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
34333
34397
|
},
|
|
34334
34398
|
dependencies: ["format"]
|
|
34335
34399
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
34336
|
-
})),
|
|
34400
|
+
})), iX = /* @__PURE__ */ K(((e, t) => {
|
|
34337
34401
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34338
|
-
var n =
|
|
34402
|
+
var n = nX(), r = rX(), i = kJ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
34339
34403
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
34340
34404
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
34341
34405
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -34351,9 +34415,9 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
34351
34415
|
for (let r of t) e.addFormat(r, n[r]);
|
|
34352
34416
|
}
|
|
34353
34417
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
34354
|
-
})),
|
|
34418
|
+
})), aX = /* @__PURE__ */ ot(tX(), 1), oX = /* @__PURE__ */ ot(iX(), 1), sX = {
|
|
34355
34419
|
required: () => "This field is required",
|
|
34356
|
-
type: (e) => `Should be "${
|
|
34420
|
+
type: (e) => `Should be "${lX(e)}".`,
|
|
34357
34421
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
34358
34422
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
34359
34423
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -34369,77 +34433,77 @@ var SJ = /* @__PURE__ */ K(((e) => {
|
|
|
34369
34433
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
34370
34434
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
34371
34435
|
};
|
|
34372
|
-
function
|
|
34373
|
-
let n =
|
|
34436
|
+
function cX(e, t) {
|
|
34437
|
+
let n = sX[e.keyword];
|
|
34374
34438
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
34375
34439
|
}
|
|
34376
|
-
function
|
|
34440
|
+
function lX(e) {
|
|
34377
34441
|
let t = e.params.type;
|
|
34378
34442
|
return String(Array.isArray(t) ? t[0] : t);
|
|
34379
34443
|
}
|
|
34380
34444
|
//#endregion
|
|
34381
34445
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
34382
|
-
function
|
|
34446
|
+
function uX(e, t, n) {
|
|
34383
34447
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
34384
34448
|
for (let e of r) {
|
|
34385
34449
|
if (!i) return {
|
|
34386
34450
|
node: void 0,
|
|
34387
34451
|
value: void 0
|
|
34388
34452
|
};
|
|
34389
|
-
i =
|
|
34453
|
+
i = dX(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
34454
|
}
|
|
34391
34455
|
return i ? {
|
|
34392
|
-
node:
|
|
34456
|
+
node: fX(dX(i, a, n, r), r),
|
|
34393
34457
|
value: a
|
|
34394
34458
|
} : {
|
|
34395
34459
|
node: void 0,
|
|
34396
34460
|
value: a
|
|
34397
34461
|
};
|
|
34398
34462
|
}
|
|
34399
|
-
function
|
|
34400
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
34463
|
+
function dX(e, t, n, r) {
|
|
34464
|
+
let i = new Map(e.properties), a = e.variants ? mX(e.variants, t) : void 0;
|
|
34401
34465
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
34402
34466
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
34403
34467
|
if (o.length > 0) {
|
|
34404
|
-
for (let e of o) if (
|
|
34468
|
+
for (let e of o) if (pX(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
34405
34469
|
}
|
|
34406
34470
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
34407
34471
|
...e,
|
|
34408
34472
|
properties: i
|
|
34409
34473
|
} : e;
|
|
34410
34474
|
}
|
|
34411
|
-
function
|
|
34475
|
+
function fX(e, t) {
|
|
34412
34476
|
return e.displayIf ? {
|
|
34413
34477
|
...e,
|
|
34414
34478
|
displayIf: nq(e.displayIf, t.join("."))
|
|
34415
34479
|
} : e;
|
|
34416
34480
|
}
|
|
34417
|
-
function
|
|
34481
|
+
function pX(e, t, n) {
|
|
34418
34482
|
for (let [r, i] of e) {
|
|
34419
34483
|
let e = XK(t, tq(r, n));
|
|
34420
34484
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
34421
34485
|
}
|
|
34422
34486
|
return !0;
|
|
34423
34487
|
}
|
|
34424
|
-
function
|
|
34488
|
+
function mX(e, t) {
|
|
34425
34489
|
if (typeof t != "object" || !t) return;
|
|
34426
34490
|
let n = t;
|
|
34427
34491
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
34428
34492
|
}
|
|
34429
34493
|
//#endregion
|
|
34430
34494
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
34431
|
-
var
|
|
34495
|
+
var hX = new aX.default({
|
|
34432
34496
|
strict: !1,
|
|
34433
34497
|
allErrors: !0
|
|
34434
34498
|
});
|
|
34435
|
-
(0,
|
|
34499
|
+
(0, oX.default)(hX), hX.removeKeyword("id"), hX.addKeyword({
|
|
34436
34500
|
keyword: "id",
|
|
34437
34501
|
validate: () => !0
|
|
34438
34502
|
});
|
|
34439
|
-
function
|
|
34503
|
+
function gX(e, t = {}) {
|
|
34440
34504
|
let n;
|
|
34441
34505
|
try {
|
|
34442
|
-
n =
|
|
34506
|
+
n = mJ(e);
|
|
34443
34507
|
} catch (e) {
|
|
34444
34508
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
34445
34509
|
return () => ({
|
|
@@ -34452,7 +34516,7 @@ function dX(e, t = {}) {
|
|
|
34452
34516
|
}
|
|
34453
34517
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
34454
34518
|
try {
|
|
34455
|
-
a =
|
|
34519
|
+
a = hX.compile(r);
|
|
34456
34520
|
} catch (e) {
|
|
34457
34521
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
34458
34522
|
return () => ({
|
|
@@ -34463,15 +34527,15 @@ function dX(e, t = {}) {
|
|
|
34463
34527
|
} }
|
|
34464
34528
|
});
|
|
34465
34529
|
}
|
|
34466
|
-
|
|
34530
|
+
hX.removeSchema(r);
|
|
34467
34531
|
let o = async (e, t, r) => {
|
|
34468
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
34532
|
+
let o = a(e) ? [] : a.errors ?? [], s = CX(n.root, e, "", i), c = [...o, ...s];
|
|
34469
34533
|
return c.length === 0 ? {
|
|
34470
34534
|
values: e,
|
|
34471
34535
|
errors: {}
|
|
34472
34536
|
} : {
|
|
34473
34537
|
values: {},
|
|
34474
|
-
errors:
|
|
34538
|
+
errors: bX(yX(c.filter((t) => !_X(t, n, e))), r.criteriaMode ?? "firstError")
|
|
34475
34539
|
};
|
|
34476
34540
|
};
|
|
34477
34541
|
if (!t.basePath) return o;
|
|
@@ -34487,12 +34551,12 @@ function dX(e, t = {}) {
|
|
|
34487
34551
|
};
|
|
34488
34552
|
};
|
|
34489
34553
|
}
|
|
34490
|
-
function
|
|
34491
|
-
let { node: r, value: i } =
|
|
34554
|
+
function _X(e, t, n) {
|
|
34555
|
+
let { node: r, value: i } = uX(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(uq) : []).join("."), n);
|
|
34492
34556
|
if (!r) return !1;
|
|
34493
34557
|
switch (e.keyword) {
|
|
34494
34558
|
case "const":
|
|
34495
|
-
case "enum": return
|
|
34559
|
+
case "enum": return vX(r.schema, i);
|
|
34496
34560
|
case "required": {
|
|
34497
34561
|
let t = e.params.missingProperty;
|
|
34498
34562
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -34500,46 +34564,46 @@ function fX(e, t, n) {
|
|
|
34500
34564
|
default: return !1;
|
|
34501
34565
|
}
|
|
34502
34566
|
}
|
|
34503
|
-
function
|
|
34567
|
+
function vX(e, t) {
|
|
34504
34568
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
34505
34569
|
}
|
|
34506
|
-
function
|
|
34570
|
+
function yX(e) {
|
|
34507
34571
|
return e.filter((t) => {
|
|
34508
34572
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
34509
|
-
let n =
|
|
34573
|
+
let n = xX(t), r = n === "" ? "" : `${n}.`;
|
|
34510
34574
|
return !e.some((e) => {
|
|
34511
34575
|
if (e === t) return !1;
|
|
34512
|
-
let i =
|
|
34576
|
+
let i = xX(e);
|
|
34513
34577
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
34514
34578
|
});
|
|
34515
34579
|
});
|
|
34516
34580
|
}
|
|
34517
|
-
function
|
|
34581
|
+
function bX(e, t) {
|
|
34518
34582
|
let n = /* @__PURE__ */ new Map();
|
|
34519
34583
|
for (let t of e) {
|
|
34520
|
-
let e =
|
|
34584
|
+
let e = xX(t), r = n.get(e) ?? [];
|
|
34521
34585
|
r.push(t), n.set(e, r);
|
|
34522
34586
|
}
|
|
34523
34587
|
let r = {};
|
|
34524
34588
|
for (let [e, i] of n) {
|
|
34525
34589
|
let n = {
|
|
34526
34590
|
type: i[0].keyword,
|
|
34527
|
-
message:
|
|
34591
|
+
message: cX(i[0], e)
|
|
34528
34592
|
};
|
|
34529
34593
|
if (t === "all" && i.length > 0) {
|
|
34530
34594
|
let t = {};
|
|
34531
|
-
for (let n of i) t[n.keyword] =
|
|
34595
|
+
for (let n of i) t[n.keyword] = cX(n, e);
|
|
34532
34596
|
n.types = t;
|
|
34533
34597
|
}
|
|
34534
|
-
|
|
34598
|
+
SX(r, e === "" ? "root" : e, n);
|
|
34535
34599
|
}
|
|
34536
34600
|
return r;
|
|
34537
34601
|
}
|
|
34538
|
-
function
|
|
34602
|
+
function xX(e) {
|
|
34539
34603
|
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(uq) : [];
|
|
34540
34604
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
34541
34605
|
}
|
|
34542
|
-
function
|
|
34606
|
+
function SX(e, t, n) {
|
|
34543
34607
|
let r = t.split("."), i = e;
|
|
34544
34608
|
for (let e = 0; e < r.length - 1; e++) {
|
|
34545
34609
|
let t = r[e];
|
|
@@ -34547,7 +34611,7 @@ function _X(e, t, n) {
|
|
|
34547
34611
|
}
|
|
34548
34612
|
i[r[r.length - 1]] = n;
|
|
34549
34613
|
}
|
|
34550
|
-
function
|
|
34614
|
+
function CX(e, t, n, r) {
|
|
34551
34615
|
if (!e) return [];
|
|
34552
34616
|
let i = [];
|
|
34553
34617
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -34564,18 +34628,18 @@ function vX(e, t, n, r) {
|
|
|
34564
34628
|
}
|
|
34565
34629
|
}
|
|
34566
34630
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
34567
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
34631
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...CX(o, t[a], `${n}/${lq(a)}`, r));
|
|
34568
34632
|
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(...
|
|
34633
|
+
let a = t, o = Gq(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
34634
|
+
if (s) for (let [e, t] of s.properties) i.push(...CX(t, a[e], `${n}/${lq(e)}`, r));
|
|
34571
34635
|
}
|
|
34572
34636
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
34573
|
-
i.push(...
|
|
34637
|
+
i.push(...CX(e.items, t, `${n}/${a}`, r));
|
|
34574
34638
|
}), i;
|
|
34575
34639
|
}
|
|
34576
34640
|
//#endregion
|
|
34577
34641
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
34578
|
-
var
|
|
34642
|
+
var wX = {
|
|
34579
34643
|
navigation: null,
|
|
34580
34644
|
contextSidebar: null,
|
|
34581
34645
|
breadcrumbs: [],
|
|
@@ -34585,9 +34649,9 @@ var yX = {
|
|
|
34585
34649
|
contentVariant: "default",
|
|
34586
34650
|
banner: null,
|
|
34587
34651
|
bannerSticky: !1
|
|
34588
|
-
},
|
|
34589
|
-
function
|
|
34590
|
-
let [t, n] = Be(
|
|
34652
|
+
}, TX = De(null);
|
|
34653
|
+
function EX({ children: e }) {
|
|
34654
|
+
let [t, n] = Be(wX), r = je((e, t) => {
|
|
34591
34655
|
n((n) => ({
|
|
34592
34656
|
...n,
|
|
34593
34657
|
[e]: t
|
|
@@ -34599,7 +34663,7 @@ function xX({ children: e }) {
|
|
|
34599
34663
|
}));
|
|
34600
34664
|
}, []), a = je((e) => {
|
|
34601
34665
|
n((t) => {
|
|
34602
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
34666
|
+
let n = Object.fromEntries(e.map((e) => [e, wX[e]]));
|
|
34603
34667
|
return {
|
|
34604
34668
|
...t,
|
|
34605
34669
|
...n
|
|
@@ -34616,20 +34680,20 @@ function xX({ children: e }) {
|
|
|
34616
34680
|
i,
|
|
34617
34681
|
a
|
|
34618
34682
|
]);
|
|
34619
|
-
return /* @__PURE__ */ W(
|
|
34683
|
+
return /* @__PURE__ */ W(TX.Provider, {
|
|
34620
34684
|
value: o,
|
|
34621
34685
|
children: e
|
|
34622
34686
|
});
|
|
34623
34687
|
}
|
|
34624
|
-
function
|
|
34625
|
-
let e = Me(
|
|
34688
|
+
function DX() {
|
|
34689
|
+
let e = Me(TX);
|
|
34626
34690
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
34627
34691
|
return e;
|
|
34628
34692
|
}
|
|
34629
34693
|
//#endregion
|
|
34630
34694
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
34631
|
-
function
|
|
34632
|
-
let { setSlots: n, resetSlots: r } =
|
|
34695
|
+
function OX(e, t = []) {
|
|
34696
|
+
let { setSlots: n, resetSlots: r } = DX();
|
|
34633
34697
|
Le(() => {
|
|
34634
34698
|
n(e);
|
|
34635
34699
|
let t = Object.keys(e);
|
|
@@ -34644,16 +34708,16 @@ function CX(e, t = []) {
|
|
|
34644
34708
|
}
|
|
34645
34709
|
//#endregion
|
|
34646
34710
|
//#region src/composed/PageFocused/PageFocused.tsx
|
|
34647
|
-
function
|
|
34711
|
+
function kX({ children: e, className: n }) {
|
|
34648
34712
|
return /* @__PURE__ */ W("div", {
|
|
34649
34713
|
className: t("mx-auto w-full max-w-focused", n),
|
|
34650
34714
|
children: e
|
|
34651
34715
|
});
|
|
34652
34716
|
}
|
|
34653
|
-
|
|
34717
|
+
kX.displayName = "PageFocused";
|
|
34654
34718
|
//#endregion
|
|
34655
34719
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
34656
|
-
var
|
|
34720
|
+
var AX = [
|
|
34657
34721
|
{
|
|
34658
34722
|
value: "light",
|
|
34659
34723
|
label: "Light"
|
|
@@ -34667,7 +34731,7 @@ var TX = [
|
|
|
34667
34731
|
label: "System"
|
|
34668
34732
|
}
|
|
34669
34733
|
];
|
|
34670
|
-
function
|
|
34734
|
+
function jX({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o }) {
|
|
34671
34735
|
let s = i ?? e.slice(0, 2).toUpperCase(), { mode: c, setMode: l } = Ce();
|
|
34672
34736
|
return /* @__PURE__ */ G(cI, { children: [/* @__PURE__ */ W(uI, {
|
|
34673
34737
|
asChild: !0,
|
|
@@ -34696,7 +34760,7 @@ function EX({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
34696
34760
|
/* @__PURE__ */ W(hI, {
|
|
34697
34761
|
value: c,
|
|
34698
34762
|
onValueChange: (e) => l(e),
|
|
34699
|
-
children:
|
|
34763
|
+
children: AX.map((e) => /* @__PURE__ */ W(gI, {
|
|
34700
34764
|
value: e.value,
|
|
34701
34765
|
children: e.label
|
|
34702
34766
|
}, e.value))
|
|
@@ -34709,6 +34773,6 @@ function EX({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
34709
34773
|
]
|
|
34710
34774
|
})] });
|
|
34711
34775
|
}
|
|
34712
|
-
|
|
34776
|
+
jX.displayName = "TopNavUser";
|
|
34713
34777
|
//#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,
|
|
34778
|
+
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, wX 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, TJ as JsonSchemaForm, HR as Kbd, UR as KbdGroup, h as Label, EX as LayoutSlotsProvider, wG as MonoCell, kX as PageFocused, WR as Pagination, GR as PaginationContent, XR as PaginationEllipsis, KR as PaginationItem, qR as PaginationLink, YR as PaginationNext, JR as PaginationPrevious, eJ 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, jX as TopNavUser, EG as TruncatedCell, o as alertVariants, zv as badgeVariants, FU as buildLinearBreadcrumbs, Xv as buttonGroupVariants, Jv as buttonVariants, t as cn, EJ as composeResolvers, Sq as extractDefaults, gX as jsonSchemaResolver, nU as tabsListVariants, OH as toast, oU as toggleVariants, ij as useComboboxAnchor, OX as useLayoutConfig, DX as useLayoutSlots, ut as usePortalContainer, UV as useSidebar, _U as useSidebarMode, Ce as useTheme };
|