@gravitee/graphene-core 2.39.2 → 2.40.0
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/__stories__/fixtures/index.d.ts +1 -1
- package/dist/__stories__/fixtures/index.d.ts.map +1 -1
- package/dist/__stories__/fixtures/json-schema-form/dependencies.fixture.d.ts +3 -0
- package/dist/__stories__/fixtures/json-schema-form/dependencies.fixture.d.ts.map +1 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts +1 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
- package/dist/__stories__/helpers/storybook-components.d.ts +3 -3
- package/dist/__stories__/helpers/storybook-components.d.ts.map +1 -1
- package/dist/base/Accordion/Accordion.d.ts +4 -4
- package/dist/base/Accordion/Accordion.d.ts.map +1 -1
- package/dist/base/Alert/Alert.d.ts +4 -4
- package/dist/base/Alert/Alert.d.ts.map +1 -1
- package/dist/base/Avatar/Avatar.d.ts +6 -6
- package/dist/base/Avatar/Avatar.d.ts.map +1 -1
- package/dist/base/Badge/Badge.d.ts +1 -1
- package/dist/base/Badge/Badge.d.ts.map +1 -1
- package/dist/base/Breadcrumb/Breadcrumb.d.ts +7 -7
- package/dist/base/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/base/Button/Button.d.ts +1 -1
- package/dist/base/Button/Button.d.ts.map +1 -1
- package/dist/base/ButtonGroup/ButtonGroup.d.ts +3 -3
- package/dist/base/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/dist/base/Calendar/Calendar.d.ts +2 -2
- package/dist/base/Calendar/Calendar.d.ts.map +1 -1
- package/dist/base/Card/Card.d.ts +7 -7
- package/dist/base/Card/Card.d.ts.map +1 -1
- package/dist/base/Checkbox/Checkbox.d.ts +1 -1
- package/dist/base/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/base/Collapsible/Collapsible.d.ts +3 -3
- package/dist/base/Collapsible/Collapsible.d.ts.map +1 -1
- package/dist/base/Combobox/Combobox.d.ts +14 -14
- package/dist/base/Combobox/Combobox.d.ts.map +1 -1
- package/dist/base/Command/Command.d.ts +9 -9
- package/dist/base/Command/Command.d.ts.map +1 -1
- package/dist/base/ContextMenu/ContextMenu.d.ts +15 -15
- package/dist/base/ContextMenu/ContextMenu.d.ts.map +1 -1
- package/dist/base/Dialog/Dialog.d.ts +10 -10
- package/dist/base/Dialog/Dialog.d.ts.map +1 -1
- package/dist/base/Drawer/Drawer.d.ts +10 -10
- package/dist/base/Drawer/Drawer.d.ts.map +1 -1
- package/dist/base/DropdownMenu/DropdownMenu.d.ts +15 -15
- package/dist/base/DropdownMenu/DropdownMenu.d.ts.map +1 -1
- package/dist/base/Empty/Empty.d.ts +6 -6
- package/dist/base/Empty/Empty.d.ts.map +1 -1
- package/dist/base/Field/Field.d.ts +10 -10
- package/dist/base/Field/Field.d.ts.map +1 -1
- package/dist/base/FileUploadInput/FileUploadInput.d.ts +1 -1
- package/dist/base/FileUploadInput/FileUploadInput.d.ts.map +1 -1
- package/dist/base/HoverCard/HoverCard.d.ts +6 -6
- package/dist/base/HoverCard/HoverCard.d.ts.map +1 -1
- package/dist/base/Input/Input.d.ts +1 -1
- package/dist/base/Input/Input.d.ts.map +1 -1
- package/dist/base/InputGroup/InputGroup.d.ts +6 -6
- package/dist/base/InputGroup/InputGroup.d.ts.map +1 -1
- package/dist/base/Item/Item.d.ts +10 -10
- package/dist/base/Item/Item.d.ts.map +1 -1
- package/dist/base/Kbd/Kbd.d.ts +2 -2
- package/dist/base/Kbd/Kbd.d.ts.map +1 -1
- package/dist/base/Label/Label.d.ts +1 -1
- package/dist/base/Label/Label.d.ts.map +1 -1
- package/dist/base/Pagination/Pagination.d.ts +7 -7
- package/dist/base/Pagination/Pagination.d.ts.map +1 -1
- package/dist/base/Popover/Popover.d.ts +7 -7
- package/dist/base/Popover/Popover.d.ts.map +1 -1
- package/dist/base/Progress/Progress.d.ts +1 -1
- package/dist/base/Progress/Progress.d.ts.map +1 -1
- package/dist/base/Prose/Prose.d.ts +1 -1
- package/dist/base/Prose/Prose.d.ts.map +1 -1
- package/dist/base/RadioGroup/RadioGroup.d.ts +2 -2
- package/dist/base/RadioGroup/RadioGroup.d.ts.map +1 -1
- package/dist/base/Resizable/Resizable.d.ts +3 -3
- package/dist/base/Resizable/Resizable.d.ts.map +1 -1
- package/dist/base/ScrollArea/ScrollArea.d.ts +2 -2
- package/dist/base/ScrollArea/ScrollArea.d.ts.map +1 -1
- package/dist/base/Select/Select.d.ts +10 -10
- package/dist/base/Select/Select.d.ts.map +1 -1
- package/dist/base/Separator/Separator.d.ts +1 -1
- package/dist/base/Separator/Separator.d.ts.map +1 -1
- package/dist/base/Sheet/Sheet.d.ts +8 -8
- package/dist/base/Sheet/Sheet.d.ts.map +1 -1
- package/dist/base/Sidebar/Sidebar.d.ts +23 -23
- package/dist/base/Sidebar/Sidebar.d.ts.map +1 -1
- package/dist/base/Skeleton/Skeleton.d.ts +1 -1
- package/dist/base/Skeleton/Skeleton.d.ts.map +1 -1
- package/dist/base/Sonner/Sonner.d.ts +1 -1
- package/dist/base/Sonner/Sonner.d.ts.map +1 -1
- package/dist/base/Spinner/Spinner.d.ts +1 -1
- package/dist/base/Spinner/Spinner.d.ts.map +1 -1
- package/dist/base/Switch/Switch.d.ts +1 -1
- package/dist/base/Switch/Switch.d.ts.map +1 -1
- package/dist/base/Table/Table.d.ts +8 -8
- package/dist/base/Table/Table.d.ts.map +1 -1
- package/dist/base/Tabs/Tabs.d.ts +4 -4
- package/dist/base/Tabs/Tabs.d.ts.map +1 -1
- package/dist/base/Textarea/Textarea.d.ts +1 -1
- package/dist/base/Textarea/Textarea.d.ts.map +1 -1
- package/dist/base/Toggle/Toggle.d.ts +1 -1
- package/dist/base/Toggle/Toggle.d.ts.map +1 -1
- package/dist/base/ToggleGroup/ToggleGroup.d.ts +2 -2
- package/dist/base/ToggleGroup/ToggleGroup.d.ts.map +1 -1
- package/dist/base/Tooltip/Tooltip.d.ts +4 -4
- package/dist/base/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/composed/AppContextBar/AppContextBar.d.ts +1 -1
- package/dist/composed/AppContextBar/AppContextBar.d.ts.map +1 -1
- package/dist/composed/AppLayout/AppLayout.d.ts +1 -1
- package/dist/composed/AppLayout/AppLayout.d.ts.map +1 -1
- package/dist/composed/AppSidebar/AppSidebar.d.ts +1 -1
- package/dist/composed/AppSidebar/AppSidebar.d.ts.map +1 -1
- package/dist/composed/AppSidebar/ContextSidebar.d.ts +1 -1
- package/dist/composed/AppSidebar/ContextSidebar.d.ts.map +1 -1
- package/dist/composed/AppSidebar/ContextToggleButton.d.ts +1 -1
- package/dist/composed/AppSidebar/ContextToggleButton.d.ts.map +1 -1
- package/dist/composed/AppSidebar/SidebarNavigation.d.ts +1 -1
- package/dist/composed/AppSidebar/SidebarNavigation.d.ts.map +1 -1
- package/dist/composed/AppSwitcher/AppSwitcher.d.ts +1 -1
- package/dist/composed/AppSwitcher/AppSwitcher.d.ts.map +1 -1
- package/dist/composed/ContentHeader/ContentHeader.d.ts +1 -1
- package/dist/composed/ContentHeader/ContentHeader.d.ts.map +1 -1
- package/dist/composed/CopyableText/CopyableText.d.ts +1 -1
- package/dist/composed/CopyableText/CopyableText.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTable.d.ts +1 -1
- package/dist/composed/DataTable/DataTable.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableColumnHeader.d.ts +1 -1
- package/dist/composed/DataTable/DataTableColumnHeader.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableViewOptions.d.ts +1 -1
- package/dist/composed/DataTable/DataTableViewOptions.d.ts.map +1 -1
- package/dist/composed/DataTablePagination/DataTablePagination.d.ts +1 -1
- package/dist/composed/DataTablePagination/DataTablePagination.d.ts.map +1 -1
- package/dist/composed/DatePicker/DatePicker.d.ts +1 -1
- package/dist/composed/DatePicker/DatePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateRangePicker.d.ts +1 -1
- package/dist/composed/DatePicker/DateRangePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateTimePicker.d.ts +1 -1
- package/dist/composed/DatePicker/DateTimePicker.d.ts.map +1 -1
- package/dist/composed/DatePicker/DateTimeRangePicker.d.ts +1 -1
- package/dist/composed/DatePicker/DateTimeRangePicker.d.ts.map +1 -1
- package/dist/composed/FacetedFilter/FacetedFilter.d.ts +1 -1
- package/dist/composed/FacetedFilter/FacetedFilter.d.ts.map +1 -1
- package/dist/composed/FileUpload/FileUpload.d.ts +1 -1
- package/dist/composed/FileUpload/FileUpload.d.ts.map +1 -1
- package/dist/composed/FileUpload/FileUploadItem.d.ts +1 -1
- package/dist/composed/FileUpload/FileUploadItem.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/JsonSchemaForm.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/ConditionalGate.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/conditional/ConditionalGate.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/concretizeCondition.d.ts +11 -0
- package/dist/composed/JsonSchemaForm/conditional/concretizeCondition.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/conditional/concretizePath.d.ts +11 -0
- package/dist/composed/JsonSchemaForm/conditional/concretizePath.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/fields/array/ArrayField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/ArrayField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/HeadersArrayField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/array/HeadersArrayField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/boolean/BooleanField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/enum/EnumField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/enum/MultiSelectField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/enum/MultiSelectField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/number/NumberField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/object/ObjectField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/oneOf/OneOfField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts +1 -1
- package/dist/composed/JsonSchemaForm/fields/string/StringField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts +7 -10
- package/dist/composed/JsonSchemaForm/form-bindings/resolveAt.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/liftRequired.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/resolveRefs.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/preprocess/walkDependencies.d.ts +11 -0
- package/dist/composed/JsonSchemaForm/schema/preprocess/walkDependencies.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/schema/types.d.ts +28 -4
- package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
- package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts +1 -1
- package/dist/composed/LayoutSlots/LayoutSlotsContext.d.ts.map +1 -1
- package/dist/composed/PasswordInput/PasswordInput.d.ts +1 -1
- package/dist/composed/PasswordInput/PasswordInput.d.ts.map +1 -1
- package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts +1 -1
- package/dist/composed/SelectorDropdown/SelectorDropdown.d.ts.map +1 -1
- package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts +1 -1
- package/dist/composed/SelectorDropdown/SelectorTriggerButton.d.ts.map +1 -1
- package/dist/composed/SidebarMode/SidebarModeContext.d.ts +1 -1
- package/dist/composed/SidebarMode/SidebarModeContext.d.ts.map +1 -1
- package/dist/composed/SidebarMode/SidebarModeControl.d.ts +1 -1
- package/dist/composed/SidebarMode/SidebarModeControl.d.ts.map +1 -1
- package/dist/composed/ThemeProvider/ThemeProvider.d.ts +1 -1
- package/dist/composed/ThemeProvider/ThemeProvider.d.ts.map +1 -1
- package/dist/composed/TopNavUser/TopNavUser.d.ts +1 -1
- package/dist/composed/TopNavUser/TopNavUser.d.ts.map +1 -1
- package/dist/index.js +519 -429
- package/dist/lib/PortalContainerContext.d.ts +1 -1
- package/dist/lib/PortalContainerContext.d.ts.map +1 -1
- package/dist/overview/ThemeShowcase.d.ts +1 -1
- package/dist/overview/ThemeShowcase.d.ts.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -30264,53 +30264,75 @@ function Iq({ condition: e, unregisterOnHide: t, children: n }) {
|
|
|
30264
30264
|
]), o ? /* @__PURE__ */ H(oe, { children: n }) : null;
|
|
30265
30265
|
}
|
|
30266
30266
|
//#endregion
|
|
30267
|
+
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
30268
|
+
function Lq(e, t) {
|
|
30269
|
+
return e.split(".").map((e, n) => {
|
|
30270
|
+
let r = t[n];
|
|
30271
|
+
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
30272
|
+
}).join(".");
|
|
30273
|
+
}
|
|
30274
|
+
//#endregion
|
|
30275
|
+
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
30276
|
+
function Rq(e, t) {
|
|
30277
|
+
let n = t === "" ? [] : t.split(".");
|
|
30278
|
+
return { $eq: new Map([...e.$eq].map(([e, t]) => [Lq(e, n), t])) };
|
|
30279
|
+
}
|
|
30280
|
+
//#endregion
|
|
30281
|
+
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
30282
|
+
function zq(e, t) {
|
|
30283
|
+
if (!e) return e;
|
|
30284
|
+
let n = {};
|
|
30285
|
+
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
30286
|
+
return n;
|
|
30287
|
+
}
|
|
30288
|
+
//#endregion
|
|
30267
30289
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
30268
|
-
function
|
|
30269
|
-
return
|
|
30290
|
+
function Bq(e) {
|
|
30291
|
+
return Vq(e);
|
|
30270
30292
|
}
|
|
30271
|
-
function
|
|
30272
|
-
return
|
|
30293
|
+
function Vq(e) {
|
|
30294
|
+
return Uq(Hq({ ...e }));
|
|
30273
30295
|
}
|
|
30274
|
-
function
|
|
30296
|
+
function Hq(e) {
|
|
30275
30297
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
30276
|
-
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0;
|
|
30277
|
-
for (let
|
|
30278
|
-
let e =
|
|
30298
|
+
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
30299
|
+
for (let a of e.allOf) {
|
|
30300
|
+
let e = Vq(a);
|
|
30279
30301
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
30280
30302
|
...r,
|
|
30281
30303
|
...e.gioConfig
|
|
30282
|
-
});
|
|
30304
|
+
}), Object.assign(i, e.dependencies ?? {});
|
|
30283
30305
|
}
|
|
30284
|
-
let
|
|
30285
|
-
return Object.keys(t).length > 0 && (
|
|
30306
|
+
let a = { ...e };
|
|
30307
|
+
return Object.keys(t).length > 0 && (a.properties = t), n.size > 0 && (a.required = Array.from(n)), r !== void 0 && (a.gioConfig = r), Object.keys(i).length > 0 && (a.dependencies = i), delete a.allOf, a;
|
|
30286
30308
|
}
|
|
30287
|
-
function
|
|
30288
|
-
return e.properties &&=
|
|
30309
|
+
function Uq(e) {
|
|
30310
|
+
return e.properties &&= Wq(e.properties, Vq), e.items &&= Array.isArray(e.items) ? e.items.map(Vq) : Vq(e.items), e.oneOf &&= e.oneOf.map(Vq), e.anyOf &&= e.anyOf.map(Vq), e.dependencies &&= zq(e.dependencies, Vq), e;
|
|
30289
30311
|
}
|
|
30290
|
-
function
|
|
30312
|
+
function Wq(e, t) {
|
|
30291
30313
|
let n = {};
|
|
30292
30314
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
30293
30315
|
return n;
|
|
30294
30316
|
}
|
|
30295
30317
|
//#endregion
|
|
30296
30318
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
30297
|
-
function
|
|
30319
|
+
function Gq(e) {
|
|
30298
30320
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
30299
30321
|
}
|
|
30300
|
-
function
|
|
30322
|
+
function Kq(e) {
|
|
30301
30323
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
30302
30324
|
}
|
|
30303
30325
|
//#endregion
|
|
30304
30326
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
30305
|
-
function
|
|
30306
|
-
return
|
|
30327
|
+
function qq(e) {
|
|
30328
|
+
return Jq(e, e, []);
|
|
30307
30329
|
}
|
|
30308
|
-
function
|
|
30330
|
+
function Jq(e, t, n) {
|
|
30309
30331
|
if (typeof e.$ref == "string") {
|
|
30310
30332
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
30311
|
-
let r =
|
|
30333
|
+
let r = Yq(t, e.$ref);
|
|
30312
30334
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
30313
|
-
let i =
|
|
30335
|
+
let i = Jq(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
30314
30336
|
...i,
|
|
30315
30337
|
...s
|
|
30316
30338
|
};
|
|
@@ -30322,25 +30344,25 @@ function Gq(e, t, n) {
|
|
|
30322
30344
|
let r = { ...e };
|
|
30323
30345
|
if (r.properties) {
|
|
30324
30346
|
let e = {};
|
|
30325
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
30347
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = Jq(a, t, n);
|
|
30326
30348
|
r.properties = e;
|
|
30327
30349
|
}
|
|
30328
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
30350
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => Jq(e, t, n)) : Jq(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => Jq(e, t, n)), r.anyOf &&= r.anyOf.map((e) => Jq(e, t, n)), r.allOf &&= r.allOf.map((e) => Jq(e, t, n)), r.dependencies &&= zq(r.dependencies, (e) => Jq(e, t, n)), r.definitions) {
|
|
30329
30351
|
let e = {};
|
|
30330
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
30352
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = Jq(a, t, n);
|
|
30331
30353
|
r.definitions = e;
|
|
30332
30354
|
}
|
|
30333
30355
|
if (r.$defs) {
|
|
30334
30356
|
let e = {};
|
|
30335
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
30357
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = Jq(a, t, n);
|
|
30336
30358
|
r.$defs = e;
|
|
30337
30359
|
}
|
|
30338
30360
|
return r;
|
|
30339
30361
|
}
|
|
30340
|
-
function
|
|
30362
|
+
function Yq(e, t) {
|
|
30341
30363
|
if (t === "#") return e;
|
|
30342
30364
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
30343
|
-
let n = t.slice(2).split("/").map(
|
|
30365
|
+
let n = t.slice(2).split("/").map(Kq), r = e;
|
|
30344
30366
|
for (let e of n) {
|
|
30345
30367
|
if (typeof r != "object" || !r) return;
|
|
30346
30368
|
r = r[e];
|
|
@@ -30349,28 +30371,28 @@ function Kq(e, t) {
|
|
|
30349
30371
|
}
|
|
30350
30372
|
//#endregion
|
|
30351
30373
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
30352
|
-
function
|
|
30374
|
+
function Xq(e) {
|
|
30353
30375
|
let t;
|
|
30354
30376
|
try {
|
|
30355
|
-
t =
|
|
30377
|
+
t = Bq(qq(e));
|
|
30356
30378
|
} catch {
|
|
30357
30379
|
return;
|
|
30358
30380
|
}
|
|
30359
|
-
return
|
|
30381
|
+
return Zq(t);
|
|
30360
30382
|
}
|
|
30361
|
-
function
|
|
30383
|
+
function Zq(e) {
|
|
30362
30384
|
if (e.deprecated === !0) return;
|
|
30363
30385
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
30364
30386
|
let t = {};
|
|
30365
30387
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
30366
|
-
let e =
|
|
30388
|
+
let e = Zq(r);
|
|
30367
30389
|
e !== void 0 && (t[n] = e);
|
|
30368
30390
|
}
|
|
30369
30391
|
let n = (e.oneOf ?? e.anyOf)?.find((e) => e.deprecated !== !0);
|
|
30370
30392
|
if (n?.properties) {
|
|
30371
30393
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
30372
30394
|
else if (!(e in t)) {
|
|
30373
|
-
let n =
|
|
30395
|
+
let n = Zq(r);
|
|
30374
30396
|
n !== void 0 && (t[e] = n);
|
|
30375
30397
|
}
|
|
30376
30398
|
}
|
|
@@ -30378,23 +30400,23 @@ function Jq(e) {
|
|
|
30378
30400
|
}
|
|
30379
30401
|
//#endregion
|
|
30380
30402
|
//#region src/composed/JsonSchemaForm/utils/fieldErrors.ts
|
|
30381
|
-
function
|
|
30403
|
+
function Qq(e) {
|
|
30382
30404
|
return e ? e.types ? Object.values(e.types).flat().filter((e) => typeof e == "string").map((e) => ({ message: e })) : [{ message: e.message }] : [];
|
|
30383
30405
|
}
|
|
30384
30406
|
//#endregion
|
|
30385
30407
|
//#region src/composed/JsonSchemaForm/utils/labelOf.ts
|
|
30386
|
-
function
|
|
30408
|
+
function $q(e) {
|
|
30387
30409
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Field";
|
|
30388
30410
|
}
|
|
30389
|
-
function
|
|
30390
|
-
return
|
|
30411
|
+
function eJ(e) {
|
|
30412
|
+
return $q(e.split(".").pop());
|
|
30391
30413
|
}
|
|
30392
|
-
function
|
|
30393
|
-
return typeof e.title == "string" && e.title.length > 0 ? e.title :
|
|
30414
|
+
function tJ(e, t) {
|
|
30415
|
+
return typeof e.title == "string" && e.title.length > 0 ? e.title : $q(t);
|
|
30394
30416
|
}
|
|
30395
30417
|
//#endregion
|
|
30396
30418
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
30397
|
-
function
|
|
30419
|
+
function nJ(e) {
|
|
30398
30420
|
if (e.default !== void 0) return e.default;
|
|
30399
30421
|
switch (e.type) {
|
|
30400
30422
|
case "string": return "";
|
|
@@ -30409,7 +30431,7 @@ function $q(e) {
|
|
|
30409
30431
|
}
|
|
30410
30432
|
//#endregion
|
|
30411
30433
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
30412
|
-
function
|
|
30434
|
+
function rJ(e, t) {
|
|
30413
30435
|
let n = Pq(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = Mq({
|
|
30414
30436
|
control: n.control,
|
|
30415
30437
|
name: r
|
|
@@ -30431,10 +30453,10 @@ function eJ(e, t) {
|
|
|
30431
30453
|
}
|
|
30432
30454
|
//#endregion
|
|
30433
30455
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
30434
|
-
function
|
|
30435
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } =
|
|
30456
|
+
function iJ({ node: e, name: t, depth: n }) {
|
|
30457
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = rJ(r, t), p = r.items, m = e.items, h = tJ(r, t), g = r.gioConfig?.uiBorder === "full";
|
|
30436
30458
|
function _() {
|
|
30437
|
-
s(
|
|
30459
|
+
s(oJ(p), { shouldFocus: !1 });
|
|
30438
30460
|
}
|
|
30439
30461
|
return /* @__PURE__ */ U(ZF, {
|
|
30440
30462
|
"aria-required": r.isRequired || void 0,
|
|
@@ -30448,7 +30470,7 @@ function tJ({ node: e, name: t, depth: n }) {
|
|
|
30448
30470
|
r.description && /* @__PURE__ */ H(aI, { children: r.description }),
|
|
30449
30471
|
/* @__PURE__ */ H("div", {
|
|
30450
30472
|
className: "flex flex-col",
|
|
30451
|
-
children: o.map((e, t) => /* @__PURE__ */ H(
|
|
30473
|
+
children: o.map((e, t) => /* @__PURE__ */ H(aJ, {
|
|
30452
30474
|
index: t,
|
|
30453
30475
|
path: a,
|
|
30454
30476
|
itemsNode: m,
|
|
@@ -30470,11 +30492,11 @@ function tJ({ node: e, name: t, depth: n }) {
|
|
|
30470
30492
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
30471
30493
|
})
|
|
30472
30494
|
}),
|
|
30473
|
-
/* @__PURE__ */ H(sI, { errors:
|
|
30495
|
+
/* @__PURE__ */ H(sI, { errors: Qq(l.error) })
|
|
30474
30496
|
]
|
|
30475
30497
|
});
|
|
30476
30498
|
}
|
|
30477
|
-
function
|
|
30499
|
+
function aJ({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: c }) {
|
|
30478
30500
|
let l = `${t}.${e}`;
|
|
30479
30501
|
return /* @__PURE__ */ U(Uw, {
|
|
30480
30502
|
defaultOpen: !0,
|
|
@@ -30509,7 +30531,7 @@ function nJ({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
30509
30531
|
basePath: l,
|
|
30510
30532
|
disabled: i
|
|
30511
30533
|
},
|
|
30512
|
-
children: /* @__PURE__ */ H(
|
|
30534
|
+
children: /* @__PURE__ */ H(LJ, {
|
|
30513
30535
|
node: n,
|
|
30514
30536
|
name: "",
|
|
30515
30537
|
depth: r + 1
|
|
@@ -30518,17 +30540,17 @@ function nJ({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
30518
30540
|
}) })]
|
|
30519
30541
|
});
|
|
30520
30542
|
}
|
|
30521
|
-
function
|
|
30522
|
-
let t =
|
|
30523
|
-
return t === void 0 ?
|
|
30543
|
+
function oJ(e) {
|
|
30544
|
+
let t = Xq(e);
|
|
30545
|
+
return t === void 0 ? nJ(e) : t;
|
|
30524
30546
|
}
|
|
30525
30547
|
//#endregion
|
|
30526
30548
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
30527
|
-
function
|
|
30528
|
-
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } =
|
|
30549
|
+
function sJ({ node: e, name: t }) {
|
|
30550
|
+
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = rJ(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = tJ(n, t);
|
|
30529
30551
|
function h() {
|
|
30530
30552
|
let e = {};
|
|
30531
|
-
for (let t of p) e[t] =
|
|
30553
|
+
for (let t of p) e[t] = nJ(f[t]);
|
|
30532
30554
|
a(e, { shouldFocus: !1 });
|
|
30533
30555
|
}
|
|
30534
30556
|
return /* @__PURE__ */ U(ZF, {
|
|
@@ -30544,11 +30566,11 @@ function iJ({ node: e, name: t }) {
|
|
|
30544
30566
|
className: "overflow-hidden rounded-lg border",
|
|
30545
30567
|
children: /* @__PURE__ */ U(EH, { children: [/* @__PURE__ */ H(DH, { children: /* @__PURE__ */ U(AH, { children: [p.map((e) => /* @__PURE__ */ H(jH, {
|
|
30546
30568
|
scope: "col",
|
|
30547
|
-
children:
|
|
30569
|
+
children: uJ(f[e], e)
|
|
30548
30570
|
}, e)), /* @__PURE__ */ H(jH, {
|
|
30549
30571
|
"aria-hidden": "true",
|
|
30550
30572
|
className: "w-px"
|
|
30551
|
-
})] }) }), /* @__PURE__ */ H(OH, { children: i.map((e, t) => /* @__PURE__ */ H(
|
|
30573
|
+
})] }) }), /* @__PURE__ */ H(OH, { children: i.map((e, t) => /* @__PURE__ */ H(cJ, {
|
|
30552
30574
|
rowIndex: t,
|
|
30553
30575
|
rowPath: `${r}.${t}`,
|
|
30554
30576
|
columnKeys: p,
|
|
@@ -30566,12 +30588,12 @@ function iJ({ node: e, name: t }) {
|
|
|
30566
30588
|
onClick: h,
|
|
30567
30589
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
30568
30590
|
}) }),
|
|
30569
|
-
/* @__PURE__ */ H(sI, { errors:
|
|
30591
|
+
/* @__PURE__ */ H(sI, { errors: Qq(s.error) })
|
|
30570
30592
|
]
|
|
30571
30593
|
});
|
|
30572
30594
|
}
|
|
30573
|
-
function
|
|
30574
|
-
return /* @__PURE__ */ U(AH, { children: [n.map((n) => /* @__PURE__ */ H(
|
|
30595
|
+
function cJ({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
|
|
30596
|
+
return /* @__PURE__ */ U(AH, { children: [n.map((n) => /* @__PURE__ */ H(lJ, {
|
|
30575
30597
|
columnKey: n,
|
|
30576
30598
|
cellPath: `${t}.${n}`,
|
|
30577
30599
|
propSchema: r[n],
|
|
@@ -30590,7 +30612,7 @@ function aJ({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
30590
30612
|
})
|
|
30591
30613
|
})] });
|
|
30592
30614
|
}
|
|
30593
|
-
function
|
|
30615
|
+
function lJ({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
30594
30616
|
let { control: a } = Pq(), { field: o, fieldState: s } = ZK({
|
|
30595
30617
|
control: a,
|
|
30596
30618
|
name: t
|
|
@@ -30603,21 +30625,21 @@ function oJ({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
30603
30625
|
onBlur: l,
|
|
30604
30626
|
disabled: i,
|
|
30605
30627
|
"aria-invalid": s.invalid,
|
|
30606
|
-
"aria-label": `${
|
|
30628
|
+
"aria-label": `${uJ(n, e)} for row ${r + 1}`,
|
|
30607
30629
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
30608
30630
|
}) });
|
|
30609
30631
|
}
|
|
30610
|
-
function
|
|
30632
|
+
function uJ(e, t) {
|
|
30611
30633
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
30612
30634
|
}
|
|
30613
30635
|
//#endregion
|
|
30614
30636
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
30615
|
-
function
|
|
30637
|
+
function dJ({ node: e, name: t }) {
|
|
30616
30638
|
let { control: n, basePath: r, disabled: i } = Pq(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = ZK({
|
|
30617
30639
|
control: n,
|
|
30618
30640
|
name: o,
|
|
30619
30641
|
defaultValue: typeof a.default == "boolean" ? a.default : !1
|
|
30620
|
-
}), l =
|
|
30642
|
+
}), l = tJ(a, t), u = i || a.readOnly === !0;
|
|
30621
30643
|
return /* @__PURE__ */ U(tI, {
|
|
30622
30644
|
orientation: "horizontal",
|
|
30623
30645
|
"data-invalid": c.invalid,
|
|
@@ -30634,41 +30656,41 @@ function cJ({ node: e, name: t }) {
|
|
|
30634
30656
|
children: l
|
|
30635
30657
|
}),
|
|
30636
30658
|
a.description && /* @__PURE__ */ H(aI, { children: a.description }),
|
|
30637
|
-
/* @__PURE__ */ H(sI, { errors:
|
|
30659
|
+
/* @__PURE__ */ H(sI, { errors: Qq(c.error) })
|
|
30638
30660
|
] })]
|
|
30639
30661
|
});
|
|
30640
30662
|
}
|
|
30641
30663
|
//#endregion
|
|
30642
30664
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
30643
|
-
function
|
|
30665
|
+
function fJ(e) {
|
|
30644
30666
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
30645
30667
|
}
|
|
30646
|
-
function
|
|
30668
|
+
function pJ(e) {
|
|
30647
30669
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
30648
30670
|
}
|
|
30649
|
-
function
|
|
30671
|
+
function mJ(e) {
|
|
30650
30672
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
30651
30673
|
}
|
|
30652
|
-
function
|
|
30653
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !
|
|
30674
|
+
function hJ(e) {
|
|
30675
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !fJ(e);
|
|
30654
30676
|
}
|
|
30655
|
-
function
|
|
30677
|
+
function gJ(e) {
|
|
30656
30678
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
30657
30679
|
}
|
|
30658
30680
|
//#endregion
|
|
30659
30681
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
30660
|
-
function
|
|
30682
|
+
function _J(e, t) {
|
|
30661
30683
|
let n = t?.[String(e)];
|
|
30662
30684
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
30663
30685
|
}
|
|
30664
|
-
function
|
|
30686
|
+
function vJ(e, t) {
|
|
30665
30687
|
return e.map((e, n) => ({
|
|
30666
30688
|
raw: e,
|
|
30667
30689
|
key: String(n),
|
|
30668
|
-
label:
|
|
30690
|
+
label: _J(e, t)
|
|
30669
30691
|
}));
|
|
30670
30692
|
}
|
|
30671
|
-
function
|
|
30693
|
+
function yJ(e) {
|
|
30672
30694
|
return e.map((e, t) => ({
|
|
30673
30695
|
raw: e.const,
|
|
30674
30696
|
key: String(t),
|
|
@@ -30677,12 +30699,12 @@ function gJ(e) {
|
|
|
30677
30699
|
}
|
|
30678
30700
|
//#endregion
|
|
30679
30701
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
30680
|
-
function
|
|
30702
|
+
function bJ({ node: e, name: t }) {
|
|
30681
30703
|
let { control: n, basePath: r, disabled: i } = Pq(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = ZK({
|
|
30682
30704
|
control: n,
|
|
30683
30705
|
name: o,
|
|
30684
30706
|
defaultValue: a.default
|
|
30685
|
-
}), { ref: l, onBlur: u } = s, d =
|
|
30707
|
+
}), { ref: l, onBlur: u } = s, d = tJ(a, t), f = i || a.readOnly === !0, p = xJ(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
|
|
30686
30708
|
return /* @__PURE__ */ U(tI, {
|
|
30687
30709
|
"data-invalid": c.invalid,
|
|
30688
30710
|
children: [
|
|
@@ -30708,22 +30730,22 @@ function _J({ node: e, name: t }) {
|
|
|
30708
30730
|
}, e.key)) })]
|
|
30709
30731
|
}),
|
|
30710
30732
|
a.description && /* @__PURE__ */ H(aI, { children: a.description }),
|
|
30711
|
-
/* @__PURE__ */ H(sI, { errors:
|
|
30733
|
+
/* @__PURE__ */ H(sI, { errors: Qq(c.error) })
|
|
30712
30734
|
]
|
|
30713
30735
|
});
|
|
30714
30736
|
}
|
|
30715
|
-
function
|
|
30716
|
-
return
|
|
30737
|
+
function xJ(e) {
|
|
30738
|
+
return fJ(e) ? yJ(e.oneOf ?? []) : vJ(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
30717
30739
|
}
|
|
30718
30740
|
//#endregion
|
|
30719
30741
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
30720
|
-
function
|
|
30742
|
+
function SJ({ node: e, name: t }) {
|
|
30721
30743
|
let { control: n, basePath: r, disabled: i } = Pq(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = ZK({
|
|
30722
30744
|
control: n,
|
|
30723
30745
|
name: o,
|
|
30724
30746
|
defaultValue: Array.isArray(a.default) ? a.default : []
|
|
30725
|
-
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m =
|
|
30726
|
-
return
|
|
30747
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m = tJ(a, t), h = i || a.readOnly === !0, g = a.items, _ = vJ(g.enum ?? [], g.gioConfig?.enumLabelMap), v = _.map((e) => e.label), y = (e) => _.find((t) => t.label === e)?.raw, b = (e) => _.find((t) => Object.is(t.raw, e))?.label, x = (Array.isArray(s.value) ? s.value : []).map((e) => b(e)).filter((e) => e !== void 0);
|
|
30748
|
+
return CJ({
|
|
30727
30749
|
schema: a,
|
|
30728
30750
|
options: _,
|
|
30729
30751
|
value: f,
|
|
@@ -30768,27 +30790,27 @@ function yJ({ node: e, name: t }) {
|
|
|
30768
30790
|
})]
|
|
30769
30791
|
}),
|
|
30770
30792
|
a.description && /* @__PURE__ */ H(aI, { children: a.description }),
|
|
30771
|
-
/* @__PURE__ */ H(sI, { errors:
|
|
30793
|
+
/* @__PURE__ */ H(sI, { errors: Qq(c.error) })
|
|
30772
30794
|
]
|
|
30773
30795
|
});
|
|
30774
30796
|
}
|
|
30775
|
-
function
|
|
30797
|
+
function CJ({ schema: e, options: t, value: n, onReset: r }) {
|
|
30776
30798
|
R(() => {
|
|
30777
30799
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
30778
30800
|
}, [e]);
|
|
30779
30801
|
}
|
|
30780
30802
|
//#endregion
|
|
30781
30803
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
30782
|
-
function
|
|
30804
|
+
function wJ() {
|
|
30783
30805
|
return null;
|
|
30784
30806
|
}
|
|
30785
30807
|
//#endregion
|
|
30786
30808
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
30787
|
-
function
|
|
30809
|
+
function TJ({ node: e, name: t }) {
|
|
30788
30810
|
let { control: n, basePath: r, disabled: i } = Pq(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = ZK({
|
|
30789
30811
|
control: n,
|
|
30790
30812
|
name: o
|
|
30791
|
-
}), l =
|
|
30813
|
+
}), l = tJ(a, t), u = i || a.readOnly === !0, d = (e) => {
|
|
30792
30814
|
let t = e.target.value;
|
|
30793
30815
|
if (t === "") {
|
|
30794
30816
|
s.onChange(null);
|
|
@@ -30819,21 +30841,21 @@ function SJ({ node: e, name: t }) {
|
|
|
30819
30841
|
step: f
|
|
30820
30842
|
}),
|
|
30821
30843
|
a.description && /* @__PURE__ */ H(aI, { children: a.description }),
|
|
30822
|
-
/* @__PURE__ */ H(sI, { errors:
|
|
30844
|
+
/* @__PURE__ */ H(sI, { errors: Qq(c.error) })
|
|
30823
30845
|
]
|
|
30824
30846
|
});
|
|
30825
30847
|
}
|
|
30826
30848
|
//#endregion
|
|
30827
30849
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
30828
|
-
function
|
|
30850
|
+
function EJ(e, t, n, r) {
|
|
30829
30851
|
if (e.length === 0) return -1;
|
|
30830
30852
|
let i = n?.get(t);
|
|
30831
|
-
return
|
|
30853
|
+
return DJ(i, e) && OJ(e[i], r) ? i : kJ(e, r);
|
|
30832
30854
|
}
|
|
30833
|
-
function
|
|
30855
|
+
function DJ(e, t) {
|
|
30834
30856
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
30835
30857
|
}
|
|
30836
|
-
function
|
|
30858
|
+
function OJ(e, t) {
|
|
30837
30859
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
30838
30860
|
if (n.const !== void 0) return t(e) === n.const;
|
|
30839
30861
|
if (typeof n.pattern == "string") {
|
|
@@ -30843,18 +30865,18 @@ function TJ(e, t) {
|
|
|
30843
30865
|
return !0;
|
|
30844
30866
|
});
|
|
30845
30867
|
}
|
|
30846
|
-
function
|
|
30868
|
+
function kJ(e, t) {
|
|
30847
30869
|
let n = 0, r = {
|
|
30848
30870
|
viable: !1,
|
|
30849
30871
|
matches: -1
|
|
30850
30872
|
};
|
|
30851
30873
|
return e.forEach((e, i) => {
|
|
30852
|
-
let a =
|
|
30853
|
-
|
|
30874
|
+
let a = AJ(e, t);
|
|
30875
|
+
jJ(a, r) > 0 && (n = i, r = a);
|
|
30854
30876
|
}), n;
|
|
30855
30877
|
}
|
|
30856
|
-
function
|
|
30857
|
-
return
|
|
30878
|
+
function AJ(e, t) {
|
|
30879
|
+
return OJ(e, t) ? {
|
|
30858
30880
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
30859
30881
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
30860
30882
|
} : {
|
|
@@ -30862,33 +30884,36 @@ function DJ(e, t) {
|
|
|
30862
30884
|
matches: -1
|
|
30863
30885
|
};
|
|
30864
30886
|
}
|
|
30865
|
-
function
|
|
30887
|
+
function jJ(e, t) {
|
|
30866
30888
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
30867
30889
|
}
|
|
30868
30890
|
//#endregion
|
|
30869
30891
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
30870
|
-
function
|
|
30871
|
-
let n = Pq(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = e.variants ?? [], [l, u] = V(() =>
|
|
30892
|
+
function MJ({ node: e, depth: t }) {
|
|
30893
|
+
let n = Pq(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = V(() => EJ(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = B(() => c.map((e) => (e.dependencyBranches ?? []).map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e))), [c, a]);
|
|
30872
30894
|
if (c.length === 0) return null;
|
|
30873
|
-
let
|
|
30895
|
+
let f = c[l] ?? c[0], p = f.dependencyBranches ?? [], m = n.disabled || o.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
|
|
30874
30896
|
if (e === l) return;
|
|
30875
30897
|
let t = c[l];
|
|
30876
|
-
if (t)
|
|
30898
|
+
if (t) {
|
|
30899
|
+
for (let e of t.properties.keys()) r.unregister(a ? `${a}.${e}` : e);
|
|
30900
|
+
for (let e of t.dependencyBranches ?? []) for (let t of e.properties.keys()) r.unregister(a ? `${a}.${t}` : t);
|
|
30901
|
+
}
|
|
30877
30902
|
s.set(a, e), u(e);
|
|
30878
|
-
},
|
|
30903
|
+
}, _ = t === 0 ? o.title || "Variant" : null;
|
|
30879
30904
|
return /* @__PURE__ */ U(oe, { children: [
|
|
30880
30905
|
/* @__PURE__ */ U(tI, { children: [
|
|
30881
|
-
|
|
30882
|
-
htmlFor:
|
|
30883
|
-
children:
|
|
30906
|
+
_ !== null && /* @__PURE__ */ H(rI, {
|
|
30907
|
+
htmlFor: h,
|
|
30908
|
+
children: _
|
|
30884
30909
|
}),
|
|
30885
30910
|
/* @__PURE__ */ U(zB, {
|
|
30886
30911
|
value: String(l),
|
|
30887
|
-
onValueChange: (e) =>
|
|
30888
|
-
disabled:
|
|
30912
|
+
onValueChange: (e) => g(Number(e)),
|
|
30913
|
+
disabled: m,
|
|
30889
30914
|
children: [/* @__PURE__ */ H(HB, {
|
|
30890
|
-
id:
|
|
30891
|
-
"aria-label":
|
|
30915
|
+
id: h,
|
|
30916
|
+
"aria-label": _ === null ? "Variant" : void 0,
|
|
30892
30917
|
children: /* @__PURE__ */ H(VB, { placeholder: "Select a variant…" })
|
|
30893
30918
|
}), /* @__PURE__ */ H(UB, { children: c.map((e, t) => /* @__PURE__ */ H(GB, {
|
|
30894
30919
|
value: String(t),
|
|
@@ -30897,18 +30922,27 @@ function kJ({ node: e, depth: t }) {
|
|
|
30897
30922
|
}),
|
|
30898
30923
|
t === 0 && o.description && /* @__PURE__ */ H(aI, { children: o.description })
|
|
30899
30924
|
] }),
|
|
30900
|
-
|
|
30925
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(NJ, {
|
|
30901
30926
|
path: a ? `${a}.${e}` : e,
|
|
30902
30927
|
value: t
|
|
30903
30928
|
}, e)),
|
|
30904
|
-
Array.from(
|
|
30929
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(LJ, {
|
|
30905
30930
|
node: n,
|
|
30906
30931
|
name: e,
|
|
30907
30932
|
depth: t + 1
|
|
30908
|
-
}, `${l}-${e}`))
|
|
30933
|
+
}, `${l}-${e}`)),
|
|
30934
|
+
p.map((e, n) => /* @__PURE__ */ H(Iq, {
|
|
30935
|
+
condition: Rq(e.showIf, a),
|
|
30936
|
+
unregisterOnHide: d[l]?.[n],
|
|
30937
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(LJ, {
|
|
30938
|
+
node: n,
|
|
30939
|
+
name: e,
|
|
30940
|
+
depth: t + 1
|
|
30941
|
+
}, e))
|
|
30942
|
+
}, `${l}-var-dep-${n}`))
|
|
30909
30943
|
] });
|
|
30910
30944
|
}
|
|
30911
|
-
function
|
|
30945
|
+
function NJ({ path: e, value: t }) {
|
|
30912
30946
|
let { control: n } = Pq(), { field: r } = ZK({
|
|
30913
30947
|
control: n,
|
|
30914
30948
|
name: e
|
|
@@ -30919,37 +30953,49 @@ function AJ({ path: e, value: t }) {
|
|
|
30919
30953
|
}
|
|
30920
30954
|
//#endregion
|
|
30921
30955
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
30922
|
-
function
|
|
30923
|
-
let r = Pq(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o =
|
|
30956
|
+
function PJ({ node: e, name: t, depth: n }) {
|
|
30957
|
+
let r = Pq(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = hJ(i) || gJ(i), s = B(() => e.dependencyBranches ?? [], [e.dependencyBranches]), c = s.length > 0, l = B(() => s.map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e)), [s, a]), u = (e.properties || o || c) && /* @__PURE__ */ H(Nq.Provider, {
|
|
30924
30958
|
value: {
|
|
30925
30959
|
...r,
|
|
30926
30960
|
basePath: a
|
|
30927
30961
|
},
|
|
30928
|
-
children: /* @__PURE__ */ U($F, { children: [
|
|
30929
|
-
|
|
30930
|
-
|
|
30931
|
-
|
|
30932
|
-
|
|
30933
|
-
|
|
30934
|
-
|
|
30935
|
-
|
|
30936
|
-
|
|
30937
|
-
|
|
30938
|
-
|
|
30962
|
+
children: /* @__PURE__ */ U($F, { children: [
|
|
30963
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(LJ, {
|
|
30964
|
+
node: t,
|
|
30965
|
+
name: e,
|
|
30966
|
+
depth: n + 1
|
|
30967
|
+
}, e)),
|
|
30968
|
+
s.map((e, t) => /* @__PURE__ */ H(Iq, {
|
|
30969
|
+
condition: Rq(e.showIf, a),
|
|
30970
|
+
unregisterOnHide: l[t],
|
|
30971
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(LJ, {
|
|
30972
|
+
node: t,
|
|
30973
|
+
name: e,
|
|
30974
|
+
depth: n + 1
|
|
30975
|
+
}, e))
|
|
30976
|
+
}, `dep-${t}`)),
|
|
30977
|
+
o && /* @__PURE__ */ H(MJ, {
|
|
30978
|
+
node: e,
|
|
30979
|
+
depth: n
|
|
30980
|
+
})
|
|
30981
|
+
] })
|
|
30982
|
+
}), d = typeof i.title == "string" && i.title.length > 0 || t !== void 0 && t.length > 0, f = i.gioConfig?.uiBorder === "full";
|
|
30983
|
+
return n === 0 || !d ? /* @__PURE__ */ H(oe, { children: u }) : /* @__PURE__ */ U(ZF, {
|
|
30984
|
+
className: f ? "rounded-lg border border-border px-5 pt-2 pb-5" : void 0,
|
|
30939
30985
|
children: [
|
|
30940
30986
|
/* @__PURE__ */ H(QF, {
|
|
30941
|
-
className:
|
|
30987
|
+
className: f ? "px-2 text-base font-semibold" : "text-base font-semibold",
|
|
30942
30988
|
required: i.isRequired,
|
|
30943
|
-
children:
|
|
30989
|
+
children: tJ(i, t)
|
|
30944
30990
|
}),
|
|
30945
30991
|
i.description && /* @__PURE__ */ H(aI, { children: i.description }),
|
|
30946
|
-
|
|
30992
|
+
u
|
|
30947
30993
|
]
|
|
30948
30994
|
});
|
|
30949
30995
|
}
|
|
30950
30996
|
//#endregion
|
|
30951
30997
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
30952
|
-
function
|
|
30998
|
+
function FJ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
30953
30999
|
let [s, c] = V(!1);
|
|
30954
31000
|
return /* @__PURE__ */ U(nM, {
|
|
30955
31001
|
className: e,
|
|
@@ -30975,14 +31021,14 @@ function MJ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
30975
31021
|
})]
|
|
30976
31022
|
});
|
|
30977
31023
|
}
|
|
30978
|
-
|
|
31024
|
+
FJ.displayName = "PasswordInput";
|
|
30979
31025
|
//#endregion
|
|
30980
31026
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
30981
|
-
function
|
|
31027
|
+
function IJ({ node: e, name: t }) {
|
|
30982
31028
|
let { control: n, basePath: r, disabled: i } = Pq(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = ZK({
|
|
30983
31029
|
control: n,
|
|
30984
31030
|
name: o
|
|
30985
|
-
}), l =
|
|
31031
|
+
}), l = tJ(a, t), u = i || a.readOnly === !0, d = c.invalid, f = {
|
|
30986
31032
|
id: o,
|
|
30987
31033
|
value: typeof s.value == "string" ? s.value : "",
|
|
30988
31034
|
onChange: s.onChange,
|
|
@@ -31001,7 +31047,7 @@ function NJ({ node: e, name: t }) {
|
|
|
31001
31047
|
required: a.isRequired,
|
|
31002
31048
|
children: l
|
|
31003
31049
|
}),
|
|
31004
|
-
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(
|
|
31050
|
+
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(FJ, {
|
|
31005
31051
|
...f,
|
|
31006
31052
|
pattern: a.pattern
|
|
31007
31053
|
}) : /* @__PURE__ */ H(eM, {
|
|
@@ -31010,155 +31056,162 @@ function NJ({ node: e, name: t }) {
|
|
|
31010
31056
|
pattern: a.pattern
|
|
31011
31057
|
}),
|
|
31012
31058
|
a.description && /* @__PURE__ */ H(aI, { children: a.description }),
|
|
31013
|
-
/* @__PURE__ */ H(sI, { errors:
|
|
31059
|
+
/* @__PURE__ */ H(sI, { errors: Qq(c.error) })
|
|
31014
31060
|
]
|
|
31015
31061
|
});
|
|
31016
31062
|
}
|
|
31017
31063
|
//#endregion
|
|
31018
31064
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
31019
|
-
function
|
|
31020
|
-
let { basePath: r } = Pq(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ?
|
|
31065
|
+
function LJ({ node: e, name: t, depth: n = 0 }) {
|
|
31066
|
+
let { basePath: r } = Pq(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ? Rq(e.displayIf, r) : void 0, [e.displayIf, r]);
|
|
31021
31067
|
if (i.deprecated === !0) return null;
|
|
31022
|
-
let l =
|
|
31068
|
+
let l = RJ(e, a, t, n);
|
|
31023
31069
|
return l === null ? null : c ? /* @__PURE__ */ H(Iq, {
|
|
31024
31070
|
condition: c,
|
|
31025
31071
|
unregisterOnHide: s,
|
|
31026
31072
|
children: l
|
|
31027
31073
|
}) : l;
|
|
31028
31074
|
}
|
|
31029
|
-
function
|
|
31030
|
-
let
|
|
31031
|
-
|
|
31032
|
-
let e = t.split(".").map((e, t) => e === "*" && n[t] !== void 0 && /^\d+$/.test(n[t]) ? n[t] : e).join(".");
|
|
31033
|
-
r.set(e, i);
|
|
31034
|
-
}
|
|
31035
|
-
return { $eq: r };
|
|
31036
|
-
}
|
|
31037
|
-
function IJ(e, t, n, r) {
|
|
31038
|
-
let { schema: i } = e, a = LJ(i.type);
|
|
31039
|
-
return Array.isArray(i.enum) && i.enum.length > 0 || lJ(i) ? /* @__PURE__ */ H(_J, {
|
|
31075
|
+
function RJ(e, t, n, r) {
|
|
31076
|
+
let { schema: i } = e, a = zJ(i.type);
|
|
31077
|
+
return Array.isArray(i.enum) && i.enum.length > 0 || fJ(i) ? /* @__PURE__ */ H(bJ, {
|
|
31040
31078
|
node: e,
|
|
31041
31079
|
name: t
|
|
31042
|
-
}) :
|
|
31080
|
+
}) : pJ(i) ? /* @__PURE__ */ H(SJ, {
|
|
31043
31081
|
node: e,
|
|
31044
31082
|
name: t
|
|
31045
|
-
}) :
|
|
31083
|
+
}) : mJ(i) ? /* @__PURE__ */ H(sJ, {
|
|
31046
31084
|
node: e,
|
|
31047
31085
|
name: t
|
|
31048
|
-
}) : a === "null" ? /* @__PURE__ */ H(
|
|
31086
|
+
}) : a === "null" ? /* @__PURE__ */ H(wJ, {}) : a === "boolean" ? /* @__PURE__ */ H(dJ, {
|
|
31049
31087
|
node: e,
|
|
31050
31088
|
name: t
|
|
31051
|
-
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(
|
|
31089
|
+
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(TJ, {
|
|
31052
31090
|
node: e,
|
|
31053
31091
|
name: t
|
|
31054
|
-
}) : a === "string" ? /* @__PURE__ */ H(
|
|
31092
|
+
}) : a === "string" ? /* @__PURE__ */ H(IJ, {
|
|
31055
31093
|
node: e,
|
|
31056
31094
|
name: t
|
|
31057
|
-
}) : i.properties || a === "object" ||
|
|
31095
|
+
}) : i.properties || a === "object" || hJ(i) || gJ(i) ? /* @__PURE__ */ H(PJ, {
|
|
31058
31096
|
node: e,
|
|
31059
31097
|
name: n,
|
|
31060
31098
|
depth: r
|
|
31061
|
-
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(
|
|
31099
|
+
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(iJ, {
|
|
31062
31100
|
node: e,
|
|
31063
31101
|
name: n,
|
|
31064
31102
|
depth: r
|
|
31065
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
31103
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${BJ(i)}). Field is omitted.`), null);
|
|
31066
31104
|
}
|
|
31067
|
-
function
|
|
31105
|
+
function zJ(e) {
|
|
31068
31106
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
31069
31107
|
}
|
|
31070
|
-
function
|
|
31108
|
+
function BJ(e) {
|
|
31071
31109
|
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";
|
|
31072
31110
|
}
|
|
31073
31111
|
//#endregion
|
|
31074
31112
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
31075
|
-
function
|
|
31076
|
-
return
|
|
31113
|
+
function VJ(e) {
|
|
31114
|
+
return HJ(e);
|
|
31077
31115
|
}
|
|
31078
|
-
function
|
|
31116
|
+
function HJ(e) {
|
|
31079
31117
|
let t = { ...e };
|
|
31080
31118
|
if (t.properties) {
|
|
31081
31119
|
let e = new Set(t.required ?? []), n = {};
|
|
31082
31120
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
31083
|
-
let t =
|
|
31121
|
+
let t = HJ(i);
|
|
31084
31122
|
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;
|
|
31085
31123
|
}
|
|
31086
31124
|
t.properties = n;
|
|
31087
31125
|
}
|
|
31088
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
31126
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(HJ) : HJ(t.items), t.oneOf &&= t.oneOf.map(HJ), t.anyOf &&= t.anyOf.map(HJ), t.allOf &&= t.allOf.map(HJ), t.dependencies &&= zq(t.dependencies, HJ), t;
|
|
31089
31127
|
}
|
|
31090
31128
|
//#endregion
|
|
31091
31129
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
31092
|
-
function
|
|
31130
|
+
function UJ(e) {
|
|
31093
31131
|
if (e.deprecated === !0) return { deprecated: !0 };
|
|
31094
31132
|
let t = { ...e };
|
|
31095
31133
|
if (e.properties) {
|
|
31096
31134
|
let n = [];
|
|
31097
31135
|
t.properties = {};
|
|
31098
|
-
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] =
|
|
31136
|
+
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] = UJ(i);
|
|
31099
31137
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
31100
31138
|
}
|
|
31101
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
31139
|
+
return e.items && !Array.isArray(e.items) && (t.items = UJ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => e.deprecated !== !0).map(UJ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => e.deprecated !== !0).map(UJ)), e.dependencies && (t.dependencies = zq(e.dependencies, UJ)), t;
|
|
31102
31140
|
}
|
|
31103
31141
|
//#endregion
|
|
31104
31142
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
31105
|
-
function
|
|
31106
|
-
let n =
|
|
31143
|
+
function WJ(e, t = "") {
|
|
31144
|
+
let n = VJ(UJ(Bq(qq(e)))), r = /* @__PURE__ */ new Map();
|
|
31107
31145
|
return {
|
|
31108
|
-
root:
|
|
31146
|
+
root: GJ(n, "", !1, r, "", t),
|
|
31109
31147
|
nodeByPath: r,
|
|
31110
31148
|
variantIndices: /* @__PURE__ */ new Map()
|
|
31111
31149
|
};
|
|
31112
31150
|
}
|
|
31113
|
-
function
|
|
31151
|
+
function GJ(e, t, n, r, i = "", a = "") {
|
|
31114
31152
|
let o = {
|
|
31115
31153
|
rhfPath: t,
|
|
31116
31154
|
schema: e,
|
|
31117
31155
|
isRequired: n
|
|
31118
31156
|
};
|
|
31119
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
31157
|
+
if (e.gioConfig?.displayIf && (o.displayIf = XJ(e.gioConfig.displayIf, i, a)), e.properties) {
|
|
31120
31158
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
31121
31159
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
31122
31160
|
let e = t ? `${t}.${o}` : o;
|
|
31123
|
-
i.set(o,
|
|
31161
|
+
i.set(o, GJ(s, e, n.has(o), r, t, a));
|
|
31124
31162
|
}
|
|
31125
31163
|
o.properties = i;
|
|
31126
31164
|
}
|
|
31127
31165
|
if (e.items && !Array.isArray(e.items)) {
|
|
31128
31166
|
let n = t ? `${t}.*` : "*";
|
|
31129
|
-
o.items =
|
|
31167
|
+
o.items = GJ(e.items, n, !1, r, t, a);
|
|
31130
31168
|
}
|
|
31131
31169
|
let s = e.oneOf ?? e.anyOf;
|
|
31132
|
-
|
|
31170
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = KJ(s).map((e) => qJ(e, t, a))), e.dependencies) {
|
|
31171
|
+
let n = QJ(e.dependencies, t, a);
|
|
31172
|
+
n.length > 0 && (o.dependencyBranches = n);
|
|
31173
|
+
}
|
|
31174
|
+
return r.set(t, o), o;
|
|
31133
31175
|
}
|
|
31134
|
-
function
|
|
31176
|
+
function KJ(e) {
|
|
31135
31177
|
let t = /* @__PURE__ */ new Set();
|
|
31136
31178
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
31137
31179
|
}
|
|
31138
|
-
function
|
|
31180
|
+
function qJ(e, t, n) {
|
|
31139
31181
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
31140
31182
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
31141
|
-
|
|
31183
|
+
let e = JJ(s);
|
|
31184
|
+
e && a.push({
|
|
31142
31185
|
key: o,
|
|
31143
|
-
value:
|
|
31186
|
+
value: e.value
|
|
31144
31187
|
});
|
|
31145
|
-
let
|
|
31146
|
-
i.set(o,
|
|
31188
|
+
let c = t ? `${t}.${o}` : o;
|
|
31189
|
+
i.set(o, YJ(s, c, r.has(o), t, n));
|
|
31190
|
+
}
|
|
31191
|
+
let o;
|
|
31192
|
+
if (e.dependencies) {
|
|
31193
|
+
let r = QJ(e.dependencies, t, n);
|
|
31194
|
+
r.length > 0 && (o = r);
|
|
31147
31195
|
}
|
|
31148
31196
|
return {
|
|
31149
31197
|
title: typeof e.title == "string" ? e.title : void 0,
|
|
31150
31198
|
consts: a,
|
|
31151
31199
|
properties: i,
|
|
31200
|
+
dependencyBranches: o,
|
|
31152
31201
|
raw: e
|
|
31153
31202
|
};
|
|
31154
31203
|
}
|
|
31155
|
-
function
|
|
31156
|
-
|
|
31204
|
+
function JJ(e) {
|
|
31205
|
+
if (e.const !== void 0) return { value: e.const };
|
|
31206
|
+
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
31157
31207
|
}
|
|
31158
|
-
function
|
|
31208
|
+
function YJ(e, t, n, r, i) {
|
|
31209
|
+
return GJ(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
31210
|
+
}
|
|
31211
|
+
function XJ(e, t, n) {
|
|
31159
31212
|
let r = /* @__PURE__ */ new Map();
|
|
31160
31213
|
for (let [i, a] of Object.entries(e.$eq)) {
|
|
31161
|
-
let e =
|
|
31214
|
+
let e = ZJ(i, t, n);
|
|
31162
31215
|
if (e === null) {
|
|
31163
31216
|
console.warn(`[JsonSchemaForm] gioConfig path "${i}" is unsupported (expected value.X / ./X / ../X).`);
|
|
31164
31217
|
continue;
|
|
@@ -31167,7 +31220,7 @@ function qJ(e, t, n) {
|
|
|
31167
31220
|
}
|
|
31168
31221
|
return { $eq: r };
|
|
31169
31222
|
}
|
|
31170
|
-
function
|
|
31223
|
+
function ZJ(e, t, n) {
|
|
31171
31224
|
let r = null;
|
|
31172
31225
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
31173
31226
|
else if (e.startsWith("./")) {
|
|
@@ -31181,12 +31234,38 @@ function JJ(e, t, n) {
|
|
|
31181
31234
|
}
|
|
31182
31235
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
31183
31236
|
}
|
|
31237
|
+
function QJ(e, t, n) {
|
|
31238
|
+
return Object.entries(e).flatMap(([e, r]) => {
|
|
31239
|
+
let i = $J(e, r);
|
|
31240
|
+
if (!i) return [];
|
|
31241
|
+
let a = t ? `${t}.${e}` : e;
|
|
31242
|
+
return i.map((r) => eY(r, e, a, t, n));
|
|
31243
|
+
});
|
|
31244
|
+
}
|
|
31245
|
+
function $J(e, t) {
|
|
31246
|
+
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
31247
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && JJ(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);
|
|
31248
|
+
}
|
|
31249
|
+
function eY(e, t, n, r, i) {
|
|
31250
|
+
let a = JJ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
31251
|
+
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
31252
|
+
if (n === t) continue;
|
|
31253
|
+
let e = r ? `${r}.${n}` : n;
|
|
31254
|
+
s.set(n, YJ(a, e, o.has(n), r, i));
|
|
31255
|
+
}
|
|
31256
|
+
let c = i ? `${i}.${n}` : n;
|
|
31257
|
+
return {
|
|
31258
|
+
showIf: { $eq: new Map([[c, a]]) },
|
|
31259
|
+
required: Array.from(o),
|
|
31260
|
+
properties: s
|
|
31261
|
+
};
|
|
31262
|
+
}
|
|
31184
31263
|
//#endregion
|
|
31185
31264
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
31186
|
-
function
|
|
31265
|
+
function tY({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
31187
31266
|
let a = B(() => {
|
|
31188
31267
|
try {
|
|
31189
|
-
let a =
|
|
31268
|
+
let a = WJ(e, n);
|
|
31190
31269
|
return {
|
|
31191
31270
|
ok: !0,
|
|
31192
31271
|
contextValue: {
|
|
@@ -31213,7 +31292,7 @@ function YJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
31213
31292
|
]);
|
|
31214
31293
|
return a.ok ? /* @__PURE__ */ H(Nq.Provider, {
|
|
31215
31294
|
value: a.contextValue,
|
|
31216
|
-
children: /* @__PURE__ */ H(
|
|
31295
|
+
children: /* @__PURE__ */ H(LJ, { node: a.root })
|
|
31217
31296
|
}) : /* @__PURE__ */ U("p", {
|
|
31218
31297
|
role: "alert",
|
|
31219
31298
|
className: "text-sm text-destructive",
|
|
@@ -31222,7 +31301,7 @@ function YJ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
31222
31301
|
}
|
|
31223
31302
|
//#endregion
|
|
31224
31303
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
31225
|
-
function
|
|
31304
|
+
function nY(...e) {
|
|
31226
31305
|
return async (t, n, r) => {
|
|
31227
31306
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
31228
31307
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -31237,7 +31316,7 @@ function XJ(...e) {
|
|
|
31237
31316
|
}
|
|
31238
31317
|
//#endregion
|
|
31239
31318
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
31240
|
-
var
|
|
31319
|
+
var rY = /* @__PURE__ */ W(((e) => {
|
|
31241
31320
|
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;
|
|
31242
31321
|
var t = class {};
|
|
31243
31322
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -31342,9 +31421,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
31342
31421
|
return new r(e.toString());
|
|
31343
31422
|
}
|
|
31344
31423
|
e.regexpCode = g;
|
|
31345
|
-
})),
|
|
31424
|
+
})), iY = /* @__PURE__ */ W(((e) => {
|
|
31346
31425
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
31347
|
-
var t =
|
|
31426
|
+
var t = rY(), n = class extends Error {
|
|
31348
31427
|
constructor(e) {
|
|
31349
31428
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
31350
31429
|
}
|
|
@@ -31453,9 +31532,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
31453
31532
|
return c;
|
|
31454
31533
|
}
|
|
31455
31534
|
};
|
|
31456
|
-
})),
|
|
31535
|
+
})), aY = /* @__PURE__ */ W(((e) => {
|
|
31457
31536
|
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;
|
|
31458
|
-
var t =
|
|
31537
|
+
var t = rY(), n = iY(), r = rY();
|
|
31459
31538
|
Object.defineProperty(e, "_", {
|
|
31460
31539
|
enumerable: !0,
|
|
31461
31540
|
get: function() {
|
|
@@ -31497,7 +31576,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
31497
31576
|
return r.Name;
|
|
31498
31577
|
}
|
|
31499
31578
|
});
|
|
31500
|
-
var i =
|
|
31579
|
+
var i = iY();
|
|
31501
31580
|
Object.defineProperty(e, "Scope", {
|
|
31502
31581
|
enumerable: !0,
|
|
31503
31582
|
get: function() {
|
|
@@ -31968,9 +32047,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
31968
32047
|
function L(e) {
|
|
31969
32048
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
31970
32049
|
}
|
|
31971
|
-
})),
|
|
32050
|
+
})), oY = /* @__PURE__ */ W(((e) => {
|
|
31972
32051
|
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;
|
|
31973
|
-
var t =
|
|
32052
|
+
var t = aY(), n = rY();
|
|
31974
32053
|
function r(e) {
|
|
31975
32054
|
let t = {};
|
|
31976
32055
|
for (let n of e) t[n] = !0;
|
|
@@ -32093,9 +32172,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32093
32172
|
}
|
|
32094
32173
|
}
|
|
32095
32174
|
e.checkStrictMode = x;
|
|
32096
|
-
})),
|
|
32175
|
+
})), sY = /* @__PURE__ */ W(((e) => {
|
|
32097
32176
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32098
|
-
var t =
|
|
32177
|
+
var t = aY();
|
|
32099
32178
|
e.default = {
|
|
32100
32179
|
data: new t.Name("data"),
|
|
32101
32180
|
valCxt: new t.Name("valCxt"),
|
|
@@ -32114,9 +32193,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32114
32193
|
jsonLen: new t.Name("jsonLen"),
|
|
32115
32194
|
jsonPart: new t.Name("jsonPart")
|
|
32116
32195
|
};
|
|
32117
|
-
})),
|
|
32196
|
+
})), cY = /* @__PURE__ */ W(((e) => {
|
|
32118
32197
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
32119
|
-
var t =
|
|
32198
|
+
var t = aY(), n = oY(), r = sY();
|
|
32120
32199
|
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)` };
|
|
32121
32200
|
function i(n, r = e.keywordError, i, a) {
|
|
32122
32201
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -32178,9 +32257,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32178
32257
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
32179
32258
|
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]);
|
|
32180
32259
|
}
|
|
32181
|
-
})),
|
|
32260
|
+
})), lY = /* @__PURE__ */ W(((e) => {
|
|
32182
32261
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
32183
|
-
var t =
|
|
32262
|
+
var t = cY(), n = aY(), r = sY(), i = { message: "boolean schema is false" };
|
|
32184
32263
|
function a(e) {
|
|
32185
32264
|
let { gen: t, schema: i, validateName: a } = e;
|
|
32186
32265
|
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));
|
|
@@ -32204,7 +32283,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32204
32283
|
};
|
|
32205
32284
|
(0, t.reportError)(o, i, void 0, n);
|
|
32206
32285
|
}
|
|
32207
|
-
})),
|
|
32286
|
+
})), uY = /* @__PURE__ */ W(((e) => {
|
|
32208
32287
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
32209
32288
|
var t = new Set([
|
|
32210
32289
|
"string",
|
|
@@ -32258,7 +32337,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32258
32337
|
};
|
|
32259
32338
|
}
|
|
32260
32339
|
e.getRules = r;
|
|
32261
|
-
})),
|
|
32340
|
+
})), dY = /* @__PURE__ */ W(((e) => {
|
|
32262
32341
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
32263
32342
|
function t({ schema: e, self: t }, r) {
|
|
32264
32343
|
let i = t.RULES.types[r];
|
|
@@ -32273,9 +32352,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32273
32352
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
32274
32353
|
}
|
|
32275
32354
|
e.shouldUseRule = r;
|
|
32276
|
-
})),
|
|
32355
|
+
})), fY = /* @__PURE__ */ W(((e) => {
|
|
32277
32356
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
32278
|
-
var t =
|
|
32357
|
+
var t = uY(), n = dY(), r = cY(), i = aY(), a = oY(), o;
|
|
32279
32358
|
(function(e) {
|
|
32280
32359
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
32281
32360
|
})(o || (e.DataType = o = {}));
|
|
@@ -32410,9 +32489,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32410
32489
|
it: e
|
|
32411
32490
|
};
|
|
32412
32491
|
}
|
|
32413
|
-
})),
|
|
32492
|
+
})), pY = /* @__PURE__ */ W(((e) => {
|
|
32414
32493
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
32415
|
-
var t =
|
|
32494
|
+
var t = aY(), n = oY();
|
|
32416
32495
|
function r(e, t) {
|
|
32417
32496
|
let { properties: n, items: r } = e.schema;
|
|
32418
32497
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -32430,9 +32509,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32430
32509
|
let u = (0, t._)`${l} === undefined`;
|
|
32431
32510
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
32432
32511
|
}
|
|
32433
|
-
})),
|
|
32512
|
+
})), mY = /* @__PURE__ */ W(((e) => {
|
|
32434
32513
|
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;
|
|
32435
|
-
var t =
|
|
32514
|
+
var t = aY(), n = oY(), r = sY(), i = oY();
|
|
32436
32515
|
function a(e, n) {
|
|
32437
32516
|
let { gen: r, data: i, it: a } = e;
|
|
32438
32517
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -32534,9 +32613,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32534
32613
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
32535
32614
|
}
|
|
32536
32615
|
e.validateUnion = v;
|
|
32537
|
-
})),
|
|
32616
|
+
})), hY = /* @__PURE__ */ W(((e) => {
|
|
32538
32617
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
32539
|
-
var t =
|
|
32618
|
+
var t = aY(), n = sY(), r = mY(), i = cY();
|
|
32540
32619
|
function a(e, n) {
|
|
32541
32620
|
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);
|
|
32542
32621
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -32615,9 +32694,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32615
32694
|
}
|
|
32616
32695
|
}
|
|
32617
32696
|
e.validateKeywordUsage = f;
|
|
32618
|
-
})),
|
|
32697
|
+
})), gY = /* @__PURE__ */ W(((e) => {
|
|
32619
32698
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
32620
|
-
var t =
|
|
32699
|
+
var t = aY(), n = oY();
|
|
32621
32700
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
32622
32701
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
32623
32702
|
if (r !== void 0) {
|
|
@@ -32661,7 +32740,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32661
32740
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
32662
32741
|
}
|
|
32663
32742
|
e.extendSubschemaMode = a;
|
|
32664
|
-
})),
|
|
32743
|
+
})), _Y = /* @__PURE__ */ W(((e, t) => {
|
|
32665
32744
|
t.exports = function e(t, n) {
|
|
32666
32745
|
if (t === n) return !0;
|
|
32667
32746
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -32685,7 +32764,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32685
32764
|
}
|
|
32686
32765
|
return t !== t && n !== n;
|
|
32687
32766
|
};
|
|
32688
|
-
})),
|
|
32767
|
+
})), vY = /* @__PURE__ */ W(((e, t) => {
|
|
32689
32768
|
var n = t.exports = function(e, t, n) {
|
|
32690
32769
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
32691
32770
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -32748,9 +32827,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32748
32827
|
function i(e) {
|
|
32749
32828
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
32750
32829
|
}
|
|
32751
|
-
})),
|
|
32830
|
+
})), yY = /* @__PURE__ */ W(((e) => {
|
|
32752
32831
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
32753
|
-
var t =
|
|
32832
|
+
var t = oY(), n = _Y(), r = vY(), i = new Set([
|
|
32754
32833
|
"type",
|
|
32755
32834
|
"format",
|
|
32756
32835
|
"pattern",
|
|
@@ -32839,9 +32918,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
32839
32918
|
}
|
|
32840
32919
|
}
|
|
32841
32920
|
e.getSchemaRefs = h;
|
|
32842
|
-
})),
|
|
32921
|
+
})), bY = /* @__PURE__ */ W(((e) => {
|
|
32843
32922
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
32844
|
-
var t =
|
|
32923
|
+
var t = lY(), n = fY(), r = dY(), i = fY(), a = pY(), o = hY(), s = gY(), c = aY(), l = sY(), u = yY(), d = oY(), f = cY();
|
|
32845
32924
|
function p(e) {
|
|
32846
32925
|
if (S(e) && (w(e), x(e))) {
|
|
32847
32926
|
_(e);
|
|
@@ -33131,23 +33210,23 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
33131
33210
|
}
|
|
33132
33211
|
}
|
|
33133
33212
|
e.getData = ae;
|
|
33134
|
-
})),
|
|
33213
|
+
})), xY = /* @__PURE__ */ W(((e) => {
|
|
33135
33214
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
33136
33215
|
constructor(e) {
|
|
33137
33216
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
33138
33217
|
}
|
|
33139
33218
|
};
|
|
33140
|
-
})),
|
|
33219
|
+
})), SY = /* @__PURE__ */ W(((e) => {
|
|
33141
33220
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33142
|
-
var t =
|
|
33221
|
+
var t = yY();
|
|
33143
33222
|
e.default = class extends Error {
|
|
33144
33223
|
constructor(e, n, r, i) {
|
|
33145
33224
|
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));
|
|
33146
33225
|
}
|
|
33147
33226
|
};
|
|
33148
|
-
})),
|
|
33227
|
+
})), CY = /* @__PURE__ */ W(((e) => {
|
|
33149
33228
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
33150
|
-
var t =
|
|
33229
|
+
var t = aY(), n = xY(), r = sY(), i = yY(), a = oY(), o = bY(), s = class {
|
|
33151
33230
|
constructor(e) {
|
|
33152
33231
|
this.refs = {}, this.dynamicAnchors = {};
|
|
33153
33232
|
let t;
|
|
@@ -33306,27 +33385,27 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
33306
33385
|
baseId: t
|
|
33307
33386
|
}), o.schema !== o.root.schema) return o;
|
|
33308
33387
|
}
|
|
33309
|
-
})),
|
|
33310
|
-
$id: () =>
|
|
33388
|
+
})), wY = /* @__PURE__ */ xe({
|
|
33389
|
+
$id: () => TY,
|
|
33311
33390
|
additionalProperties: () => !1,
|
|
33312
|
-
default: () =>
|
|
33313
|
-
description: () =>
|
|
33314
|
-
properties: () =>
|
|
33315
|
-
required: () =>
|
|
33316
|
-
type: () =>
|
|
33317
|
-
}),
|
|
33318
|
-
|
|
33391
|
+
default: () => AY,
|
|
33392
|
+
description: () => EY,
|
|
33393
|
+
properties: () => kY,
|
|
33394
|
+
required: () => OY,
|
|
33395
|
+
type: () => DY
|
|
33396
|
+
}), TY, EY, DY, OY, kY, AY, jY = be((() => {
|
|
33397
|
+
TY = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", EY = "Meta-schema for $data reference (JSON AnySchema extension proposal)", DY = "object", OY = ["$data"], kY = { $data: {
|
|
33319
33398
|
type: "string",
|
|
33320
33399
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
33321
|
-
} },
|
|
33322
|
-
$id:
|
|
33323
|
-
description:
|
|
33324
|
-
type:
|
|
33325
|
-
required:
|
|
33326
|
-
properties:
|
|
33400
|
+
} }, AY = {
|
|
33401
|
+
$id: TY,
|
|
33402
|
+
description: EY,
|
|
33403
|
+
type: DY,
|
|
33404
|
+
required: OY,
|
|
33405
|
+
properties: kY,
|
|
33327
33406
|
additionalProperties: !1
|
|
33328
33407
|
};
|
|
33329
|
-
})),
|
|
33408
|
+
})), MY = /* @__PURE__ */ W(((e, t) => {
|
|
33330
33409
|
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);
|
|
33331
33410
|
function s(e) {
|
|
33332
33411
|
let t = "", n = 0, r = 0;
|
|
@@ -33538,8 +33617,8 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
33538
33617
|
normalizeIPv6: f,
|
|
33539
33618
|
stringArrayToHexStripped: s
|
|
33540
33619
|
};
|
|
33541
|
-
})),
|
|
33542
|
-
var { isUUID: n } =
|
|
33620
|
+
})), NY = /* @__PURE__ */ W(((e, t) => {
|
|
33621
|
+
var { isUUID: n } = MY(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
33543
33622
|
"http",
|
|
33544
33623
|
"https",
|
|
33545
33624
|
"ws",
|
|
@@ -33644,8 +33723,8 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
33644
33723
|
isValidSchemeName: a,
|
|
33645
33724
|
getSchemeHandler: y
|
|
33646
33725
|
};
|
|
33647
|
-
})),
|
|
33648
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
33726
|
+
})), PY = /* @__PURE__ */ W(((e, t) => {
|
|
33727
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = MY(), { SCHEMES: d, getSchemeHandler: f } = NY();
|
|
33649
33728
|
function p(e, t) {
|
|
33650
33729
|
return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
|
|
33651
33730
|
}
|
|
@@ -33759,20 +33838,20 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
33759
33838
|
parse: x
|
|
33760
33839
|
};
|
|
33761
33840
|
t.exports = T, t.exports.default = T, t.exports.fastUri = T;
|
|
33762
|
-
})),
|
|
33841
|
+
})), FY = /* @__PURE__ */ W(((e) => {
|
|
33763
33842
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33764
|
-
var t =
|
|
33843
|
+
var t = PY();
|
|
33765
33844
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
33766
|
-
})),
|
|
33845
|
+
})), IY = /* @__PURE__ */ W(((e) => {
|
|
33767
33846
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
33768
|
-
var t =
|
|
33847
|
+
var t = bY();
|
|
33769
33848
|
Object.defineProperty(e, "KeywordCxt", {
|
|
33770
33849
|
enumerable: !0,
|
|
33771
33850
|
get: function() {
|
|
33772
33851
|
return t.KeywordCxt;
|
|
33773
33852
|
}
|
|
33774
33853
|
});
|
|
33775
|
-
var n =
|
|
33854
|
+
var n = aY();
|
|
33776
33855
|
Object.defineProperty(e, "_", {
|
|
33777
33856
|
enumerable: !0,
|
|
33778
33857
|
get: function() {
|
|
@@ -33804,7 +33883,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
33804
33883
|
return n.CodeGen;
|
|
33805
33884
|
}
|
|
33806
33885
|
});
|
|
33807
|
-
var r =
|
|
33886
|
+
var r = xY(), i = SY(), a = uY(), o = CY(), s = aY(), c = yY(), l = fY(), u = oY(), d = (jY(), we(wY).default), f = FY(), p = (e, t) => new RegExp(e, t);
|
|
33808
33887
|
p.code = "new RegExp";
|
|
33809
33888
|
var m = [
|
|
33810
33889
|
"removeAdditional",
|
|
@@ -34190,16 +34269,16 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34190
34269
|
function F(e) {
|
|
34191
34270
|
return { anyOf: [e, P] };
|
|
34192
34271
|
}
|
|
34193
|
-
})),
|
|
34272
|
+
})), LY = /* @__PURE__ */ W(((e) => {
|
|
34194
34273
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34195
34274
|
keyword: "id",
|
|
34196
34275
|
code() {
|
|
34197
34276
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
34198
34277
|
}
|
|
34199
34278
|
};
|
|
34200
|
-
})),
|
|
34279
|
+
})), RY = /* @__PURE__ */ W(((e) => {
|
|
34201
34280
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
34202
|
-
var t =
|
|
34281
|
+
var t = SY(), n = mY(), r = aY(), i = sY(), a = CY(), o = oY(), s = {
|
|
34203
34282
|
keyword: "$ref",
|
|
34204
34283
|
schemaType: "string",
|
|
34205
34284
|
code(e) {
|
|
@@ -34272,9 +34351,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34272
34351
|
}
|
|
34273
34352
|
}
|
|
34274
34353
|
e.callRef = l, e.default = s;
|
|
34275
|
-
})),
|
|
34354
|
+
})), zY = /* @__PURE__ */ W(((e) => {
|
|
34276
34355
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34277
|
-
var t =
|
|
34356
|
+
var t = LY(), n = RY();
|
|
34278
34357
|
e.default = [
|
|
34279
34358
|
"$schema",
|
|
34280
34359
|
"$id",
|
|
@@ -34285,9 +34364,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34285
34364
|
t.default,
|
|
34286
34365
|
n.default
|
|
34287
34366
|
];
|
|
34288
|
-
})),
|
|
34367
|
+
})), BY = /* @__PURE__ */ W(((e) => {
|
|
34289
34368
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34290
|
-
var t =
|
|
34369
|
+
var t = aY(), n = t.operators, r = {
|
|
34291
34370
|
maximum: {
|
|
34292
34371
|
okStr: "<=",
|
|
34293
34372
|
ok: n.LTE,
|
|
@@ -34323,9 +34402,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34323
34402
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
34324
34403
|
}
|
|
34325
34404
|
};
|
|
34326
|
-
})),
|
|
34405
|
+
})), VY = /* @__PURE__ */ W(((e) => {
|
|
34327
34406
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34328
|
-
var t =
|
|
34407
|
+
var t = aY();
|
|
34329
34408
|
e.default = {
|
|
34330
34409
|
keyword: "multipleOf",
|
|
34331
34410
|
type: "number",
|
|
@@ -34340,7 +34419,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34340
34419
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
34341
34420
|
}
|
|
34342
34421
|
};
|
|
34343
|
-
})),
|
|
34422
|
+
})), HY = /* @__PURE__ */ W(((e) => {
|
|
34344
34423
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34345
34424
|
function t(e) {
|
|
34346
34425
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -34348,9 +34427,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34348
34427
|
return n;
|
|
34349
34428
|
}
|
|
34350
34429
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
34351
|
-
})),
|
|
34430
|
+
})), UY = /* @__PURE__ */ W(((e) => {
|
|
34352
34431
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34353
|
-
var t =
|
|
34432
|
+
var t = aY(), n = oY(), r = HY();
|
|
34354
34433
|
e.default = {
|
|
34355
34434
|
keyword: ["maxLength", "minLength"],
|
|
34356
34435
|
type: "string",
|
|
@@ -34368,9 +34447,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34368
34447
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
34369
34448
|
}
|
|
34370
34449
|
};
|
|
34371
|
-
})),
|
|
34450
|
+
})), WY = /* @__PURE__ */ W(((e) => {
|
|
34372
34451
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34373
|
-
var t =
|
|
34452
|
+
var t = mY(), n = oY(), r = aY();
|
|
34374
34453
|
e.default = {
|
|
34375
34454
|
keyword: "pattern",
|
|
34376
34455
|
type: "string",
|
|
@@ -34391,9 +34470,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34391
34470
|
}
|
|
34392
34471
|
}
|
|
34393
34472
|
};
|
|
34394
|
-
})),
|
|
34473
|
+
})), GY = /* @__PURE__ */ W(((e) => {
|
|
34395
34474
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34396
|
-
var t =
|
|
34475
|
+
var t = aY();
|
|
34397
34476
|
e.default = {
|
|
34398
34477
|
keyword: ["maxProperties", "minProperties"],
|
|
34399
34478
|
type: "object",
|
|
@@ -34411,9 +34490,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34411
34490
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
34412
34491
|
}
|
|
34413
34492
|
};
|
|
34414
|
-
})),
|
|
34493
|
+
})), KY = /* @__PURE__ */ W(((e) => {
|
|
34415
34494
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34416
|
-
var t =
|
|
34495
|
+
var t = mY(), n = aY(), r = oY();
|
|
34417
34496
|
e.default = {
|
|
34418
34497
|
keyword: "required",
|
|
34419
34498
|
type: "object",
|
|
@@ -34459,9 +34538,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34459
34538
|
}
|
|
34460
34539
|
}
|
|
34461
34540
|
};
|
|
34462
|
-
})),
|
|
34541
|
+
})), qY = /* @__PURE__ */ W(((e) => {
|
|
34463
34542
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34464
|
-
var t =
|
|
34543
|
+
var t = aY();
|
|
34465
34544
|
e.default = {
|
|
34466
34545
|
keyword: ["maxItems", "minItems"],
|
|
34467
34546
|
type: "array",
|
|
@@ -34479,13 +34558,13 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34479
34558
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
34480
34559
|
}
|
|
34481
34560
|
};
|
|
34482
|
-
})),
|
|
34561
|
+
})), JY = /* @__PURE__ */ W(((e) => {
|
|
34483
34562
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34484
|
-
var t =
|
|
34563
|
+
var t = _Y();
|
|
34485
34564
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
34486
|
-
})),
|
|
34565
|
+
})), YY = /* @__PURE__ */ W(((e) => {
|
|
34487
34566
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34488
|
-
var t =
|
|
34567
|
+
var t = fY(), n = aY(), r = oY(), i = JY();
|
|
34489
34568
|
e.default = {
|
|
34490
34569
|
keyword: "uniqueItems",
|
|
34491
34570
|
type: "array",
|
|
@@ -34526,9 +34605,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34526
34605
|
}
|
|
34527
34606
|
}
|
|
34528
34607
|
};
|
|
34529
|
-
})),
|
|
34608
|
+
})), XY = /* @__PURE__ */ W(((e) => {
|
|
34530
34609
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34531
|
-
var t =
|
|
34610
|
+
var t = aY(), n = oY(), r = JY();
|
|
34532
34611
|
e.default = {
|
|
34533
34612
|
keyword: "const",
|
|
34534
34613
|
$data: !0,
|
|
@@ -34541,9 +34620,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34541
34620
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
34542
34621
|
}
|
|
34543
34622
|
};
|
|
34544
|
-
})),
|
|
34623
|
+
})), ZY = /* @__PURE__ */ W(((e) => {
|
|
34545
34624
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34546
|
-
var t =
|
|
34625
|
+
var t = aY(), n = oY(), r = JY();
|
|
34547
34626
|
e.default = {
|
|
34548
34627
|
keyword: "enum",
|
|
34549
34628
|
schemaType: "array",
|
|
@@ -34573,9 +34652,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34573
34652
|
}
|
|
34574
34653
|
}
|
|
34575
34654
|
};
|
|
34576
|
-
})),
|
|
34655
|
+
})), QY = /* @__PURE__ */ W(((e) => {
|
|
34577
34656
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34578
|
-
var t =
|
|
34657
|
+
var t = BY(), n = VY(), r = UY(), i = WY(), a = GY(), o = KY(), s = qY(), c = YY(), l = XY(), u = ZY();
|
|
34579
34658
|
e.default = [
|
|
34580
34659
|
t.default,
|
|
34581
34660
|
n.default,
|
|
@@ -34596,9 +34675,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34596
34675
|
l.default,
|
|
34597
34676
|
u.default
|
|
34598
34677
|
];
|
|
34599
|
-
})),
|
|
34678
|
+
})), $Y = /* @__PURE__ */ W(((e) => {
|
|
34600
34679
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
34601
|
-
var t =
|
|
34680
|
+
var t = aY(), n = oY(), r = {
|
|
34602
34681
|
keyword: "additionalItems",
|
|
34603
34682
|
type: "array",
|
|
34604
34683
|
schemaType: ["boolean", "object"],
|
|
@@ -34636,9 +34715,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34636
34715
|
}
|
|
34637
34716
|
}
|
|
34638
34717
|
e.validateAdditionalItems = i, e.default = r;
|
|
34639
|
-
})),
|
|
34718
|
+
})), eX = /* @__PURE__ */ W(((e) => {
|
|
34640
34719
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
34641
|
-
var t =
|
|
34720
|
+
var t = aY(), n = oY(), r = mY(), i = {
|
|
34642
34721
|
keyword: "items",
|
|
34643
34722
|
type: "array",
|
|
34644
34723
|
schemaType: [
|
|
@@ -34673,9 +34752,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34673
34752
|
}
|
|
34674
34753
|
}
|
|
34675
34754
|
e.validateTuple = a, e.default = i;
|
|
34676
|
-
})),
|
|
34755
|
+
})), tX = /* @__PURE__ */ W(((e) => {
|
|
34677
34756
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34678
|
-
var t =
|
|
34757
|
+
var t = eX();
|
|
34679
34758
|
e.default = {
|
|
34680
34759
|
keyword: "prefixItems",
|
|
34681
34760
|
type: "array",
|
|
@@ -34683,9 +34762,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34683
34762
|
before: "uniqueItems",
|
|
34684
34763
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
34685
34764
|
};
|
|
34686
|
-
})),
|
|
34765
|
+
})), nX = /* @__PURE__ */ W(((e) => {
|
|
34687
34766
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34688
|
-
var t =
|
|
34767
|
+
var t = aY(), n = oY(), r = mY(), i = $Y();
|
|
34689
34768
|
e.default = {
|
|
34690
34769
|
keyword: "items",
|
|
34691
34770
|
type: "array",
|
|
@@ -34700,9 +34779,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34700
34779
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
34701
34780
|
}
|
|
34702
34781
|
};
|
|
34703
|
-
})),
|
|
34782
|
+
})), rX = /* @__PURE__ */ W(((e) => {
|
|
34704
34783
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34705
|
-
var t =
|
|
34784
|
+
var t = aY(), n = oY();
|
|
34706
34785
|
e.default = {
|
|
34707
34786
|
keyword: "contains",
|
|
34708
34787
|
type: "array",
|
|
@@ -34755,9 +34834,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34755
34834
|
}
|
|
34756
34835
|
}
|
|
34757
34836
|
};
|
|
34758
|
-
})),
|
|
34837
|
+
})), iX = /* @__PURE__ */ W(((e) => {
|
|
34759
34838
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
34760
|
-
var t =
|
|
34839
|
+
var t = aY(), n = oY(), r = mY();
|
|
34761
34840
|
e.error = {
|
|
34762
34841
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
34763
34842
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -34816,9 +34895,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34816
34895
|
}, () => i.var(c, !0)), e.ok(c));
|
|
34817
34896
|
}
|
|
34818
34897
|
e.validateSchemaDeps = s, e.default = i;
|
|
34819
|
-
})),
|
|
34898
|
+
})), aX = /* @__PURE__ */ W(((e) => {
|
|
34820
34899
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34821
|
-
var t =
|
|
34900
|
+
var t = aY(), n = oY();
|
|
34822
34901
|
e.default = {
|
|
34823
34902
|
keyword: "propertyNames",
|
|
34824
34903
|
type: "object",
|
|
@@ -34844,9 +34923,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34844
34923
|
}), e.ok(s);
|
|
34845
34924
|
}
|
|
34846
34925
|
};
|
|
34847
|
-
})),
|
|
34926
|
+
})), oX = /* @__PURE__ */ W(((e) => {
|
|
34848
34927
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34849
|
-
var t =
|
|
34928
|
+
var t = mY(), n = aY(), r = sY(), i = oY();
|
|
34850
34929
|
e.default = {
|
|
34851
34930
|
keyword: "additionalProperties",
|
|
34852
34931
|
type: ["object"],
|
|
@@ -34911,9 +34990,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34911
34990
|
}
|
|
34912
34991
|
}
|
|
34913
34992
|
};
|
|
34914
|
-
})),
|
|
34993
|
+
})), sX = /* @__PURE__ */ W(((e) => {
|
|
34915
34994
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34916
|
-
var t =
|
|
34995
|
+
var t = bY(), n = mY(), r = oY(), i = oX();
|
|
34917
34996
|
e.default = {
|
|
34918
34997
|
keyword: "properties",
|
|
34919
34998
|
type: "object",
|
|
@@ -34940,9 +35019,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34940
35019
|
}
|
|
34941
35020
|
}
|
|
34942
35021
|
};
|
|
34943
|
-
})),
|
|
35022
|
+
})), cX = /* @__PURE__ */ W(((e) => {
|
|
34944
35023
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34945
|
-
var t =
|
|
35024
|
+
var t = mY(), n = aY(), r = oY(), i = oY();
|
|
34946
35025
|
e.default = {
|
|
34947
35026
|
keyword: "patternProperties",
|
|
34948
35027
|
type: "object",
|
|
@@ -34975,9 +35054,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34975
35054
|
}
|
|
34976
35055
|
}
|
|
34977
35056
|
};
|
|
34978
|
-
})),
|
|
35057
|
+
})), lX = /* @__PURE__ */ W(((e) => {
|
|
34979
35058
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34980
|
-
var t =
|
|
35059
|
+
var t = oY();
|
|
34981
35060
|
e.default = {
|
|
34982
35061
|
keyword: "not",
|
|
34983
35062
|
schemaType: ["object", "boolean"],
|
|
@@ -34998,17 +35077,17 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
34998
35077
|
},
|
|
34999
35078
|
error: { message: "must NOT be valid" }
|
|
35000
35079
|
};
|
|
35001
|
-
})),
|
|
35080
|
+
})), uX = /* @__PURE__ */ W(((e) => {
|
|
35002
35081
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35003
35082
|
keyword: "anyOf",
|
|
35004
35083
|
schemaType: "array",
|
|
35005
35084
|
trackErrors: !0,
|
|
35006
|
-
code:
|
|
35085
|
+
code: mY().validateUnion,
|
|
35007
35086
|
error: { message: "must match a schema in anyOf" }
|
|
35008
35087
|
};
|
|
35009
|
-
})),
|
|
35088
|
+
})), dX = /* @__PURE__ */ W(((e) => {
|
|
35010
35089
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35011
|
-
var t =
|
|
35090
|
+
var t = aY(), n = oY();
|
|
35012
35091
|
e.default = {
|
|
35013
35092
|
keyword: "oneOf",
|
|
35014
35093
|
schemaType: "array",
|
|
@@ -35038,9 +35117,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35038
35117
|
}
|
|
35039
35118
|
}
|
|
35040
35119
|
};
|
|
35041
|
-
})),
|
|
35120
|
+
})), fX = /* @__PURE__ */ W(((e) => {
|
|
35042
35121
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35043
|
-
var t =
|
|
35122
|
+
var t = oY();
|
|
35044
35123
|
e.default = {
|
|
35045
35124
|
keyword: "allOf",
|
|
35046
35125
|
schemaType: "array",
|
|
@@ -35059,9 +35138,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35059
35138
|
});
|
|
35060
35139
|
}
|
|
35061
35140
|
};
|
|
35062
|
-
})),
|
|
35141
|
+
})), pX = /* @__PURE__ */ W(((e) => {
|
|
35063
35142
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35064
|
-
var t =
|
|
35143
|
+
var t = aY(), n = oY(), r = {
|
|
35065
35144
|
keyword: "if",
|
|
35066
35145
|
schemaType: ["object", "boolean"],
|
|
35067
35146
|
trackErrors: !0,
|
|
@@ -35102,9 +35181,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35102
35181
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
35103
35182
|
}
|
|
35104
35183
|
e.default = r;
|
|
35105
|
-
})),
|
|
35184
|
+
})), mX = /* @__PURE__ */ W(((e) => {
|
|
35106
35185
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35107
|
-
var t =
|
|
35186
|
+
var t = oY();
|
|
35108
35187
|
e.default = {
|
|
35109
35188
|
keyword: ["then", "else"],
|
|
35110
35189
|
schemaType: ["object", "boolean"],
|
|
@@ -35112,9 +35191,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35112
35191
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
35113
35192
|
}
|
|
35114
35193
|
};
|
|
35115
|
-
})),
|
|
35194
|
+
})), hX = /* @__PURE__ */ W(((e) => {
|
|
35116
35195
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35117
|
-
var t =
|
|
35196
|
+
var t = $Y(), n = tX(), r = eX(), i = nX(), a = rX(), o = iX(), s = aX(), c = oX(), l = sX(), u = cX(), d = lX(), f = uX(), p = dX(), m = fX(), h = pX(), g = mX();
|
|
35118
35197
|
function _(e = !1) {
|
|
35119
35198
|
let _ = [
|
|
35120
35199
|
d.default,
|
|
@@ -35132,9 +35211,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35132
35211
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
35133
35212
|
}
|
|
35134
35213
|
e.default = _;
|
|
35135
|
-
})),
|
|
35214
|
+
})), gX = /* @__PURE__ */ W(((e) => {
|
|
35136
35215
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35137
|
-
var t =
|
|
35216
|
+
var t = aY();
|
|
35138
35217
|
e.default = {
|
|
35139
35218
|
keyword: "format",
|
|
35140
35219
|
type: ["number", "string"],
|
|
@@ -35207,9 +35286,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35207
35286
|
}
|
|
35208
35287
|
}
|
|
35209
35288
|
};
|
|
35210
|
-
})),
|
|
35211
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
35212
|
-
})),
|
|
35289
|
+
})), _X = /* @__PURE__ */ W(((e) => {
|
|
35290
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [gX().default];
|
|
35291
|
+
})), vX = /* @__PURE__ */ W(((e) => {
|
|
35213
35292
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
35214
35293
|
"title",
|
|
35215
35294
|
"description",
|
|
@@ -35223,9 +35302,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35223
35302
|
"contentEncoding",
|
|
35224
35303
|
"contentSchema"
|
|
35225
35304
|
];
|
|
35226
|
-
})),
|
|
35305
|
+
})), yX = /* @__PURE__ */ W(((e) => {
|
|
35227
35306
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35228
|
-
var t =
|
|
35307
|
+
var t = zY(), n = QY(), r = hX(), i = _X(), a = vX();
|
|
35229
35308
|
e.default = [
|
|
35230
35309
|
t.default,
|
|
35231
35310
|
n.default,
|
|
@@ -35234,15 +35313,15 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35234
35313
|
a.metadataVocabulary,
|
|
35235
35314
|
a.contentVocabulary
|
|
35236
35315
|
];
|
|
35237
|
-
})),
|
|
35316
|
+
})), bX = /* @__PURE__ */ W(((e) => {
|
|
35238
35317
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
35239
35318
|
var t;
|
|
35240
35319
|
(function(e) {
|
|
35241
35320
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
35242
35321
|
})(t || (e.DiscrError = t = {}));
|
|
35243
|
-
})),
|
|
35322
|
+
})), xX = /* @__PURE__ */ W(((e) => {
|
|
35244
35323
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35245
|
-
var t =
|
|
35324
|
+
var t = aY(), n = bX(), r = CY(), i = SY(), a = oY();
|
|
35246
35325
|
e.default = {
|
|
35247
35326
|
keyword: "discriminator",
|
|
35248
35327
|
type: "object",
|
|
@@ -35310,16 +35389,16 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35310
35389
|
}
|
|
35311
35390
|
}
|
|
35312
35391
|
};
|
|
35313
|
-
})),
|
|
35314
|
-
$id: () =>
|
|
35315
|
-
$schema: () =>
|
|
35316
|
-
default: () =>
|
|
35317
|
-
definitions: () =>
|
|
35318
|
-
properties: () =>
|
|
35319
|
-
title: () =>
|
|
35320
|
-
type: () =>
|
|
35321
|
-
}),
|
|
35322
|
-
|
|
35392
|
+
})), SX = /* @__PURE__ */ xe({
|
|
35393
|
+
$id: () => wX,
|
|
35394
|
+
$schema: () => CX,
|
|
35395
|
+
default: () => kX,
|
|
35396
|
+
definitions: () => EX,
|
|
35397
|
+
properties: () => OX,
|
|
35398
|
+
title: () => TX,
|
|
35399
|
+
type: () => DX
|
|
35400
|
+
}), CX, wX, TX, EX, DX, OX, kX, AX = be((() => {
|
|
35401
|
+
CX = "http://json-schema.org/draft-07/schema#", wX = "http://json-schema.org/draft-07/schema#", TX = "Core schema meta-schema", EX = {
|
|
35323
35402
|
schemaArray: {
|
|
35324
35403
|
type: "array",
|
|
35325
35404
|
minItems: 1,
|
|
@@ -35345,7 +35424,7 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35345
35424
|
uniqueItems: !0,
|
|
35346
35425
|
default: []
|
|
35347
35426
|
}
|
|
35348
|
-
},
|
|
35427
|
+
}, DX = ["object", "boolean"], OX = {
|
|
35349
35428
|
$id: {
|
|
35350
35429
|
type: "string",
|
|
35351
35430
|
format: "uri-reference"
|
|
@@ -35444,18 +35523,18 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35444
35523
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
35445
35524
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
35446
35525
|
not: { $ref: "#" }
|
|
35447
|
-
},
|
|
35448
|
-
$schema:
|
|
35449
|
-
$id:
|
|
35450
|
-
title:
|
|
35451
|
-
definitions:
|
|
35452
|
-
type:
|
|
35453
|
-
properties:
|
|
35526
|
+
}, kX = {
|
|
35527
|
+
$schema: CX,
|
|
35528
|
+
$id: wX,
|
|
35529
|
+
title: TX,
|
|
35530
|
+
definitions: EX,
|
|
35531
|
+
type: DX,
|
|
35532
|
+
properties: OX,
|
|
35454
35533
|
default: !0
|
|
35455
35534
|
};
|
|
35456
|
-
})),
|
|
35535
|
+
})), jX = /* @__PURE__ */ W(((e, t) => {
|
|
35457
35536
|
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;
|
|
35458
|
-
var n =
|
|
35537
|
+
var n = IY(), r = yX(), i = xX(), a = (AX(), we(SX).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
35459
35538
|
_addVocabularies() {
|
|
35460
35539
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
35461
35540
|
}
|
|
@@ -35469,14 +35548,14 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35469
35548
|
}
|
|
35470
35549
|
};
|
|
35471
35550
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
35472
|
-
var l =
|
|
35551
|
+
var l = bY();
|
|
35473
35552
|
Object.defineProperty(e, "KeywordCxt", {
|
|
35474
35553
|
enumerable: !0,
|
|
35475
35554
|
get: function() {
|
|
35476
35555
|
return l.KeywordCxt;
|
|
35477
35556
|
}
|
|
35478
35557
|
});
|
|
35479
|
-
var u =
|
|
35558
|
+
var u = aY();
|
|
35480
35559
|
Object.defineProperty(e, "_", {
|
|
35481
35560
|
enumerable: !0,
|
|
35482
35561
|
get: function() {
|
|
@@ -35508,21 +35587,21 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35508
35587
|
return u.CodeGen;
|
|
35509
35588
|
}
|
|
35510
35589
|
});
|
|
35511
|
-
var d =
|
|
35590
|
+
var d = xY();
|
|
35512
35591
|
Object.defineProperty(e, "ValidationError", {
|
|
35513
35592
|
enumerable: !0,
|
|
35514
35593
|
get: function() {
|
|
35515
35594
|
return d.default;
|
|
35516
35595
|
}
|
|
35517
35596
|
});
|
|
35518
|
-
var f =
|
|
35597
|
+
var f = SY();
|
|
35519
35598
|
Object.defineProperty(e, "MissingRefError", {
|
|
35520
35599
|
enumerable: !0,
|
|
35521
35600
|
get: function() {
|
|
35522
35601
|
return f.default;
|
|
35523
35602
|
}
|
|
35524
35603
|
});
|
|
35525
|
-
})),
|
|
35604
|
+
})), MX = /* @__PURE__ */ W(((e) => {
|
|
35526
35605
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
35527
35606
|
function t(e, t) {
|
|
35528
35607
|
return {
|
|
@@ -35674,9 +35753,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35674
35753
|
return !1;
|
|
35675
35754
|
}
|
|
35676
35755
|
}
|
|
35677
|
-
})),
|
|
35756
|
+
})), NX = /* @__PURE__ */ W(((e) => {
|
|
35678
35757
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
35679
|
-
var t =
|
|
35758
|
+
var t = jX(), n = aY(), r = n.operators, i = {
|
|
35680
35759
|
formatMaximum: {
|
|
35681
35760
|
okStr: "<=",
|
|
35682
35761
|
ok: r.LTE,
|
|
@@ -35736,9 +35815,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35736
35815
|
},
|
|
35737
35816
|
dependencies: ["format"]
|
|
35738
35817
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
35739
|
-
})),
|
|
35818
|
+
})), PX = /* @__PURE__ */ W(((e, t) => {
|
|
35740
35819
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35741
|
-
var n =
|
|
35820
|
+
var n = MX(), r = NX(), i = aY(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
35742
35821
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
35743
35822
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
35744
35823
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -35754,9 +35833,9 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35754
35833
|
for (let r of t) e.addFormat(r, n[r]);
|
|
35755
35834
|
}
|
|
35756
35835
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
35757
|
-
})),
|
|
35836
|
+
})), FX = /* @__PURE__ */ Ce(jX(), 1), IX = /* @__PURE__ */ Ce(PX(), 1), LX = {
|
|
35758
35837
|
required: () => "This field is required",
|
|
35759
|
-
type: (e) => `Should be "${
|
|
35838
|
+
type: (e) => `Should be "${zX(e)}".`,
|
|
35760
35839
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
35761
35840
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
35762
35841
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -35768,78 +35847,89 @@ var ZJ = /* @__PURE__ */ W(((e) => {
|
|
|
35768
35847
|
maxItems: (e) => `Should NOT have more than ${e.params.limit} items`,
|
|
35769
35848
|
uniqueItems: () => "Should NOT have duplicate items",
|
|
35770
35849
|
const: (e) => `Should be equal to constant "${e.params.allowedValue}"`,
|
|
35771
|
-
pattern: (e, t) => `${
|
|
35850
|
+
pattern: (e, t) => `${eJ(t)} value does not respect the pattern: ${e.params.pattern}`,
|
|
35772
35851
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
35773
35852
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
35774
35853
|
};
|
|
35775
|
-
function
|
|
35776
|
-
let n =
|
|
35854
|
+
function RX(e, t) {
|
|
35855
|
+
let n = LX[e.keyword];
|
|
35777
35856
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
35778
35857
|
}
|
|
35779
|
-
function
|
|
35858
|
+
function zX(e) {
|
|
35780
35859
|
let t = e.params.type;
|
|
35781
35860
|
return String(Array.isArray(t) ? t[0] : t);
|
|
35782
35861
|
}
|
|
35783
35862
|
//#endregion
|
|
35784
35863
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
35785
|
-
function
|
|
35786
|
-
let r = t === "" ? [] : t.split("."), i = e.root, a = n;
|
|
35864
|
+
function BX(e, t, n) {
|
|
35865
|
+
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
35787
35866
|
for (let e of r) {
|
|
35788
35867
|
if (!i) return {
|
|
35789
35868
|
node: void 0,
|
|
35790
35869
|
value: void 0
|
|
35791
35870
|
};
|
|
35792
|
-
i =
|
|
35871
|
+
i = VX(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);
|
|
35793
35872
|
}
|
|
35794
35873
|
return i ? {
|
|
35795
|
-
node:
|
|
35874
|
+
node: HX(VX(i, a, n, r), r),
|
|
35796
35875
|
value: a
|
|
35797
35876
|
} : {
|
|
35798
35877
|
node: void 0,
|
|
35799
35878
|
value: a
|
|
35800
35879
|
};
|
|
35801
35880
|
}
|
|
35802
|
-
function
|
|
35803
|
-
|
|
35804
|
-
let
|
|
35805
|
-
|
|
35806
|
-
|
|
35807
|
-
|
|
35808
|
-
|
|
35881
|
+
function VX(e, t, n, r) {
|
|
35882
|
+
let i = new Map(e.properties), a = e.variants ? GX(e.variants, t) : void 0;
|
|
35883
|
+
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
35884
|
+
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
35885
|
+
if (o.length > 0) {
|
|
35886
|
+
for (let e of o) if (UX(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
35887
|
+
}
|
|
35888
|
+
return i.size > (e.properties?.size ?? 0) ? {
|
|
35809
35889
|
...e,
|
|
35810
|
-
properties:
|
|
35811
|
-
};
|
|
35890
|
+
properties: i
|
|
35891
|
+
} : e;
|
|
35812
35892
|
}
|
|
35813
|
-
function
|
|
35814
|
-
|
|
35815
|
-
let n = t === "" ? [] : t.split("."), r = { $eq: new Map([...e.displayIf.$eq].map(([e, t]) => [LX(e, n), t])) };
|
|
35816
|
-
return {
|
|
35893
|
+
function HX(e, t) {
|
|
35894
|
+
return e.displayIf ? {
|
|
35817
35895
|
...e,
|
|
35818
|
-
displayIf:
|
|
35819
|
-
};
|
|
35896
|
+
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [Lq(e, t), n])) }
|
|
35897
|
+
} : e;
|
|
35820
35898
|
}
|
|
35821
|
-
function
|
|
35822
|
-
|
|
35899
|
+
function UX(e, t, n) {
|
|
35900
|
+
for (let [r, i] of e) {
|
|
35901
|
+
let e = WX(t, Lq(r, n).split("."));
|
|
35902
|
+
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
35903
|
+
}
|
|
35904
|
+
return !0;
|
|
35823
35905
|
}
|
|
35824
|
-
function
|
|
35906
|
+
function WX(e, t) {
|
|
35907
|
+
let n = e;
|
|
35908
|
+
for (let e of t) {
|
|
35909
|
+
if (typeof n != "object" || !n) return;
|
|
35910
|
+
n = n[e];
|
|
35911
|
+
}
|
|
35912
|
+
return n;
|
|
35913
|
+
}
|
|
35914
|
+
function GX(e, t) {
|
|
35825
35915
|
if (typeof t != "object" || !t) return;
|
|
35826
35916
|
let n = t;
|
|
35827
35917
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
35828
35918
|
}
|
|
35829
35919
|
//#endregion
|
|
35830
35920
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
35831
|
-
var
|
|
35921
|
+
var KX = new FX.default({
|
|
35832
35922
|
strict: !1,
|
|
35833
35923
|
allErrors: !0
|
|
35834
35924
|
});
|
|
35835
|
-
(0,
|
|
35925
|
+
(0, IX.default)(KX), KX.removeKeyword("id"), KX.addKeyword({
|
|
35836
35926
|
keyword: "id",
|
|
35837
35927
|
validate: () => !0
|
|
35838
35928
|
});
|
|
35839
|
-
function
|
|
35929
|
+
function qX(e, t = {}) {
|
|
35840
35930
|
let n;
|
|
35841
35931
|
try {
|
|
35842
|
-
n =
|
|
35932
|
+
n = WJ(e);
|
|
35843
35933
|
} catch (e) {
|
|
35844
35934
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35845
35935
|
return () => ({
|
|
@@ -35852,7 +35942,7 @@ function BX(e, t = {}) {
|
|
|
35852
35942
|
}
|
|
35853
35943
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
35854
35944
|
try {
|
|
35855
|
-
a =
|
|
35945
|
+
a = KX.compile(r);
|
|
35856
35946
|
} catch (e) {
|
|
35857
35947
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35858
35948
|
return () => ({
|
|
@@ -35863,15 +35953,15 @@ function BX(e, t = {}) {
|
|
|
35863
35953
|
} }
|
|
35864
35954
|
});
|
|
35865
35955
|
}
|
|
35866
|
-
|
|
35956
|
+
KX.removeSchema(r);
|
|
35867
35957
|
let o = async (e, t, r) => {
|
|
35868
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
35958
|
+
let o = a(e) ? [] : a.errors ?? [], s = eZ(n.root, e, "", i), c = [...o, ...s];
|
|
35869
35959
|
return c.length === 0 ? {
|
|
35870
35960
|
values: e,
|
|
35871
35961
|
errors: {}
|
|
35872
35962
|
} : {
|
|
35873
35963
|
values: {},
|
|
35874
|
-
errors:
|
|
35964
|
+
errors: ZX(XX(c.filter((t) => !JX(t, n, e))), r.criteriaMode ?? "firstError")
|
|
35875
35965
|
};
|
|
35876
35966
|
};
|
|
35877
35967
|
if (!t.basePath) return o;
|
|
@@ -35887,12 +35977,12 @@ function BX(e, t = {}) {
|
|
|
35887
35977
|
};
|
|
35888
35978
|
};
|
|
35889
35979
|
}
|
|
35890
|
-
function
|
|
35891
|
-
let { node: r, value: i } =
|
|
35980
|
+
function JX(e, t, n) {
|
|
35981
|
+
let { node: r, value: i } = BX(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(Kq) : []).join("."), n);
|
|
35892
35982
|
if (!r) return !1;
|
|
35893
35983
|
switch (e.keyword) {
|
|
35894
35984
|
case "const":
|
|
35895
|
-
case "enum": return
|
|
35985
|
+
case "enum": return YX(r.schema, i);
|
|
35896
35986
|
case "required": {
|
|
35897
35987
|
let t = e.params.missingProperty;
|
|
35898
35988
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -35900,46 +35990,46 @@ function VX(e, t, n) {
|
|
|
35900
35990
|
default: return !1;
|
|
35901
35991
|
}
|
|
35902
35992
|
}
|
|
35903
|
-
function
|
|
35993
|
+
function YX(e, t) {
|
|
35904
35994
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
35905
35995
|
}
|
|
35906
|
-
function
|
|
35996
|
+
function XX(e) {
|
|
35907
35997
|
return e.filter((t) => {
|
|
35908
35998
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
35909
|
-
let n =
|
|
35999
|
+
let n = QX(t), r = n === "" ? "" : `${n}.`;
|
|
35910
36000
|
return !e.some((e) => {
|
|
35911
36001
|
if (e === t) return !1;
|
|
35912
|
-
let i =
|
|
36002
|
+
let i = QX(e);
|
|
35913
36003
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
35914
36004
|
});
|
|
35915
36005
|
});
|
|
35916
36006
|
}
|
|
35917
|
-
function
|
|
36007
|
+
function ZX(e, t) {
|
|
35918
36008
|
let n = /* @__PURE__ */ new Map();
|
|
35919
36009
|
for (let t of e) {
|
|
35920
|
-
let e =
|
|
36010
|
+
let e = QX(t), r = n.get(e) ?? [];
|
|
35921
36011
|
r.push(t), n.set(e, r);
|
|
35922
36012
|
}
|
|
35923
36013
|
let r = {};
|
|
35924
36014
|
for (let [e, i] of n) {
|
|
35925
36015
|
let n = {
|
|
35926
36016
|
type: i[0].keyword,
|
|
35927
|
-
message:
|
|
36017
|
+
message: RX(i[0], e)
|
|
35928
36018
|
};
|
|
35929
36019
|
if (t === "all" && i.length > 0) {
|
|
35930
36020
|
let t = {};
|
|
35931
|
-
for (let n of i) t[n.keyword] =
|
|
36021
|
+
for (let n of i) t[n.keyword] = RX(n, e);
|
|
35932
36022
|
n.types = t;
|
|
35933
36023
|
}
|
|
35934
|
-
|
|
36024
|
+
$X(r, e === "" ? "root" : e, n);
|
|
35935
36025
|
}
|
|
35936
36026
|
return r;
|
|
35937
36027
|
}
|
|
35938
|
-
function
|
|
35939
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
36028
|
+
function QX(e) {
|
|
36029
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(Kq) : [];
|
|
35940
36030
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
35941
36031
|
}
|
|
35942
|
-
function
|
|
36032
|
+
function $X(e, t, n) {
|
|
35943
36033
|
let r = t.split("."), i = e;
|
|
35944
36034
|
for (let e = 0; e < r.length - 1; e++) {
|
|
35945
36035
|
let t = r[e];
|
|
@@ -35947,7 +36037,7 @@ function KX(e, t, n) {
|
|
|
35947
36037
|
}
|
|
35948
36038
|
i[r[r.length - 1]] = n;
|
|
35949
36039
|
}
|
|
35950
|
-
function
|
|
36040
|
+
function eZ(e, t, n, r) {
|
|
35951
36041
|
if (!e) return [];
|
|
35952
36042
|
let i = [];
|
|
35953
36043
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -35964,18 +36054,18 @@ function qX(e, t, n, r) {
|
|
|
35964
36054
|
}
|
|
35965
36055
|
}
|
|
35966
36056
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
35967
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
36057
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...eZ(o, t[a], `${n}/${Gq(a)}`, r));
|
|
35968
36058
|
if (e.variants && e.variants.length > 0 && a) {
|
|
35969
|
-
let a = t, o =
|
|
35970
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
36059
|
+
let a = t, o = EJ(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
36060
|
+
if (s) for (let [e, t] of s.properties) i.push(...eZ(t, a[e], `${n}/${Gq(e)}`, r));
|
|
35971
36061
|
}
|
|
35972
36062
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
35973
|
-
i.push(...
|
|
36063
|
+
i.push(...eZ(e.items, t, `${n}/${a}`, r));
|
|
35974
36064
|
}), i;
|
|
35975
36065
|
}
|
|
35976
36066
|
//#endregion
|
|
35977
36067
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
35978
|
-
var
|
|
36068
|
+
var tZ = {
|
|
35979
36069
|
navigation: null,
|
|
35980
36070
|
contextSidebar: null,
|
|
35981
36071
|
breadcrumbs: [],
|
|
@@ -35983,9 +36073,9 @@ var JX = {
|
|
|
35983
36073
|
viewMode: "global",
|
|
35984
36074
|
contextExpanded: !0,
|
|
35985
36075
|
contentVariant: "default"
|
|
35986
|
-
},
|
|
35987
|
-
function
|
|
35988
|
-
let [t, n] = V(
|
|
36076
|
+
}, nZ = M(null);
|
|
36077
|
+
function rZ({ children: e }) {
|
|
36078
|
+
let [t, n] = V(tZ), r = F((e, t) => {
|
|
35989
36079
|
n((n) => ({
|
|
35990
36080
|
...n,
|
|
35991
36081
|
[e]: t
|
|
@@ -35997,7 +36087,7 @@ function XX({ children: e }) {
|
|
|
35997
36087
|
}));
|
|
35998
36088
|
}, []), a = F((e) => {
|
|
35999
36089
|
n((t) => {
|
|
36000
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
36090
|
+
let n = Object.fromEntries(e.map((e) => [e, tZ[e]]));
|
|
36001
36091
|
return {
|
|
36002
36092
|
...t,
|
|
36003
36093
|
...n
|
|
@@ -36014,20 +36104,20 @@ function XX({ children: e }) {
|
|
|
36014
36104
|
i,
|
|
36015
36105
|
a
|
|
36016
36106
|
]);
|
|
36017
|
-
return /* @__PURE__ */ H(
|
|
36107
|
+
return /* @__PURE__ */ H(nZ.Provider, {
|
|
36018
36108
|
value: o,
|
|
36019
36109
|
children: e
|
|
36020
36110
|
});
|
|
36021
36111
|
}
|
|
36022
|
-
function
|
|
36023
|
-
let e = I(
|
|
36112
|
+
function iZ() {
|
|
36113
|
+
let e = I(nZ);
|
|
36024
36114
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
36025
36115
|
return e;
|
|
36026
36116
|
}
|
|
36027
36117
|
//#endregion
|
|
36028
36118
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
36029
|
-
function
|
|
36030
|
-
let { setSlots: n, resetSlots: r } =
|
|
36119
|
+
function aZ(e, t = []) {
|
|
36120
|
+
let { setSlots: n, resetSlots: r } = iZ();
|
|
36031
36121
|
R(() => {
|
|
36032
36122
|
n(e);
|
|
36033
36123
|
let t = Object.keys(e);
|
|
@@ -36042,7 +36132,7 @@ function QX(e, t = []) {
|
|
|
36042
36132
|
}
|
|
36043
36133
|
//#endregion
|
|
36044
36134
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
36045
|
-
var
|
|
36135
|
+
var oZ = [
|
|
36046
36136
|
{
|
|
36047
36137
|
value: "light",
|
|
36048
36138
|
label: "Light"
|
|
@@ -36056,7 +36146,7 @@ var $X = [
|
|
|
36056
36146
|
label: "System"
|
|
36057
36147
|
}
|
|
36058
36148
|
];
|
|
36059
|
-
function
|
|
36149
|
+
function sZ({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSignOut: a }) {
|
|
36060
36150
|
let o = r ?? e.slice(0, 2).toUpperCase(), { mode: s, setMode: c } = D();
|
|
36061
36151
|
return /* @__PURE__ */ U(OF, { children: [/* @__PURE__ */ H(AF, {
|
|
36062
36152
|
asChild: !0,
|
|
@@ -36085,7 +36175,7 @@ function eZ({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
36085
36175
|
/* @__PURE__ */ H(FF, {
|
|
36086
36176
|
value: s,
|
|
36087
36177
|
onValueChange: (e) => c(e),
|
|
36088
|
-
children:
|
|
36178
|
+
children: oZ.map((e) => /* @__PURE__ */ H(IF, {
|
|
36089
36179
|
value: e.value,
|
|
36090
36180
|
children: e.label
|
|
36091
36181
|
}, e.value))
|
|
@@ -36098,6 +36188,6 @@ function eZ({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
36098
36188
|
]
|
|
36099
36189
|
})] });
|
|
36100
36190
|
}
|
|
36101
|
-
|
|
36191
|
+
sZ.displayName = "TopNavUser";
|
|
36102
36192
|
//#endregion
|
|
36103
|
-
export { Vy as Accordion, Wy as AccordionContent, Hy as AccordionItem, Uy as AccordionTrigger, Yy as Alert, Qy as AlertAction, Zy as AlertDescription, Xy as AlertTitle, qH as AppContextBar, rU as AppLayout, sU as AppSidebar, WH as AppSwitcher, $y as Avatar, nb as AvatarBadge, tb as AvatarFallback, rb as AvatarGroup, ib as AvatarGroupCount, eb as AvatarImage, ob as Badge, sb as Breadcrumb, pb as BreadcrumbEllipsis, lb as BreadcrumbItem, ub as BreadcrumbLink, cb as BreadcrumbList, db as BreadcrumbPage, fb as BreadcrumbSeparator, hb as Button, vb as ButtonGroup, bb as ButtonGroupSeparator, yb as ButtonGroupText, Nw as Calendar, Pw as CalendarDayButton, Fw as Card, zw as CardAction, Bw as CardContent, Rw as CardDescription, Vw as CardFooter, Iw as CardHeader, Lw as CardTitle, Hw as Checkbox, Uw as Collapsible, Gw as CollapsibleContent, Ww as CollapsibleTrigger, uM as Combobox, wM as ComboboxChip, CM as ComboboxChips, TM as ComboboxChipsInput, bM as ComboboxCollection, hM as ComboboxContent, xM as ComboboxEmpty, vM as ComboboxGroup, mM as ComboboxInput, _M as ComboboxItem, yM as ComboboxLabel, gM as ComboboxList, SM as ComboboxSeparator, fM as ComboboxTrigger, dM as ComboboxValue, UN as Command, WN as CommandDialog, qN as CommandEmpty, JN as CommandGroup, GN as CommandInput, XN as CommandItem, KN as CommandList, YN as CommandSeparator, ZN as CommandShortcut, fU as ContentHeader, QN as ContextMenu, cP as ContextMenuCheckboxItem, iP as ContextMenuContent, eP as ContextMenuGroup, aP as ContextMenuItem, uP as ContextMenuLabel, tP as ContextMenuPortal, rP as ContextMenuRadioGroup, lP as ContextMenuRadioItem, dP as ContextMenuSeparator, fP as ContextMenuShortcut, nP as ContextMenuSub, sP as ContextMenuSubContent, oP as ContextMenuSubTrigger, $N as ContextMenuTrigger, lU as ContextSidebar, uU as ContextToggleButton, pU as CopyableText,
|
|
36193
|
+
export { Vy as Accordion, Wy as AccordionContent, Hy as AccordionItem, Uy as AccordionTrigger, Yy as Alert, Qy as AlertAction, Zy as AlertDescription, Xy as AlertTitle, qH as AppContextBar, rU as AppLayout, sU as AppSidebar, WH as AppSwitcher, $y as Avatar, nb as AvatarBadge, tb as AvatarFallback, rb as AvatarGroup, ib as AvatarGroupCount, eb as AvatarImage, ob as Badge, sb as Breadcrumb, pb as BreadcrumbEllipsis, lb as BreadcrumbItem, ub as BreadcrumbLink, cb as BreadcrumbList, db as BreadcrumbPage, fb as BreadcrumbSeparator, hb as Button, vb as ButtonGroup, bb as ButtonGroupSeparator, yb as ButtonGroupText, Nw as Calendar, Pw as CalendarDayButton, Fw as Card, zw as CardAction, Bw as CardContent, Rw as CardDescription, Vw as CardFooter, Iw as CardHeader, Lw as CardTitle, Hw as Checkbox, Uw as Collapsible, Gw as CollapsibleContent, Ww as CollapsibleTrigger, uM as Combobox, wM as ComboboxChip, CM as ComboboxChips, TM as ComboboxChipsInput, bM as ComboboxCollection, hM as ComboboxContent, xM as ComboboxEmpty, vM as ComboboxGroup, mM as ComboboxInput, _M as ComboboxItem, yM as ComboboxLabel, gM as ComboboxList, SM as ComboboxSeparator, fM as ComboboxTrigger, dM as ComboboxValue, UN as Command, WN as CommandDialog, qN as CommandEmpty, JN as CommandGroup, GN as CommandInput, XN as CommandItem, KN as CommandList, YN as CommandSeparator, ZN as CommandShortcut, fU as ContentHeader, QN as ContextMenu, cP as ContextMenuCheckboxItem, iP as ContextMenuContent, eP as ContextMenuGroup, aP as ContextMenuItem, uP as ContextMenuLabel, tP as ContextMenuPortal, rP as ContextMenuRadioGroup, lP as ContextMenuRadioItem, dP as ContextMenuSeparator, fP as ContextMenuShortcut, nP as ContextMenuSub, sP as ContextMenuSubContent, oP as ContextMenuSubTrigger, $N as ContextMenuTrigger, lU as ContextSidebar, uU as ContextToggleButton, pU as CopyableText, tZ as DEFAULT_SLOTS, JW as DataTable, YW as DataTableColumnHeader, XW as DataTablePagination, HW as DataTableViewOptions, aK as DatePicker, oK as DateRangePicker, lK as DateTimePicker, fK as DateTimeRangePicker, NN as Dialog, IN as DialogClose, RN as DialogContent, HN as DialogDescription, BN as DialogFooter, zN as DialogHeader, LN as DialogOverlay, FN as DialogPortal, VN as DialogTitle, PN as DialogTrigger, vF as Drawer, xF as DrawerClose, CF as DrawerContent, DF as DrawerDescription, TF as DrawerFooter, wF as DrawerHeader, SF as DrawerOverlay, bF as DrawerPortal, EF as DrawerTitle, yF as DrawerTrigger, OF as DropdownMenu, PF as DropdownMenuCheckboxItem, jF as DropdownMenuContent, MF as DropdownMenuGroup, NF as DropdownMenuItem, LF as DropdownMenuLabel, kF as DropdownMenuPortal, FF as DropdownMenuRadioGroup, IF as DropdownMenuRadioItem, RF as DropdownMenuSeparator, zF as DropdownMenuShortcut, BF as DropdownMenuSub, HF as DropdownMenuSubContent, VF as DropdownMenuSubTrigger, AF as DropdownMenuTrigger, UF as Empty, YF as EmptyContent, JF as EmptyDescription, WF as EmptyHeader, KF as EmptyMedia, qF as EmptyTitle, pK as FacetedFilter, tI as Field, nI as FieldContent, aI as FieldDescription, sI as FieldError, $F as FieldGroup, rI as FieldLabel, QF as FieldLegend, oI as FieldSeparator, ZF as FieldSet, iI as FieldTitle, vK as FileUpload, tR as FileUploadInput, _K as FileUploadItem, nR as HoverCard, iR as HoverCardContent, sR as HoverCardDescription, aR as HoverCardHeader, oR as HoverCardTitle, rR as HoverCardTrigger, eM as Input, nM as InputGroup, iM as InputGroupAddon, oM as InputGroupButton, cM as InputGroupInput, sM as InputGroupText, lM as InputGroupTextarea, dR as Item, _R as ItemActions, mR as ItemContent, gR as ItemDescription, yR as ItemFooter, cR as ItemGroup, vR as ItemHeader, pR as ItemMedia, lR as ItemSeparator, hR as ItemTitle, tY as JsonSchemaForm, bR as Kbd, xR as KbdGroup, XF as Label, rZ as LayoutSlotsProvider, SR as Pagination, CR as PaginationContent, OR as PaginationEllipsis, wR as PaginationItem, TR as PaginationLink, DR as PaginationNext, ER as PaginationPrevious, FJ as PasswordInput, kR as Popover, MR as PopoverAnchor, jR as PopoverContent, FR as PopoverDescription, NR as PopoverHeader, PR as PopoverTitle, AR as PopoverTrigger, en as PortalContainerProvider, IR as Progress, RR as Prose, zR as RadioGroup, BR as RadioGroupItem, IB as ResizableHandle, FB as ResizablePanel, PB as ResizablePanelGroup, LB as ScrollArea, RB as ScrollBar, zB as Select, UB as SelectContent, BB as SelectGroup, GB as SelectItem, WB as SelectLabel, JB as SelectScrollDownButton, qB as SelectScrollUpButton, KB as SelectSeparator, HB as SelectTrigger, VB as SelectValue, GH as SelectorDropdown, KH as SelectorTriggerButton, gb as Separator, YB as Sheet, ZB as SheetClose, eV as SheetContent, iV as SheetDescription, nV as SheetFooter, tV as SheetHeader, rV as SheetTitle, XB as SheetTrigger, wV as Sidebar, MV as SidebarContent, AV as SidebarFooter, NV as SidebarGroup, FV as SidebarGroupAction, IV as SidebarGroupContent, PV as SidebarGroupLabel, kV as SidebarHeader, OV as SidebarInput, DV as SidebarInset, LV as SidebarMenu, VV as SidebarMenuAction, HV as SidebarMenuBadge, BV as SidebarMenuButton, RV as SidebarMenuItem, UV as SidebarMenuSkeleton, WV as SidebarMenuSub, KV as SidebarMenuSubButton, GV as SidebarMenuSubItem, tU as SidebarModeControl, $H as SidebarModeProvider, cU as SidebarNavigation, CV as SidebarProvider, EV as SidebarRail, jV as SidebarSeparator, TV as SidebarTrigger, aV as Skeleton, wH as Spinner, TH as Switch, EH as Table, OH as TableBody, NH as TableCaption, MH as TableCell, kH as TableFooter, jH as TableHead, DH as TableHeader, AH as TableRow, PH as Tabs, RH as TabsContent, IH as TabsList, LH as TabsTrigger, tM as Textarea, O as ThemeProvider, CH as Toaster, BH as Toggle, HH as ToggleGroup, UH as ToggleGroupItem, sV as Tooltip, lV as TooltipContent, oV as TooltipProvider, cV as TooltipTrigger, sZ as TopNavUser, Jy as alertVariants, ab as badgeVariants, mU as buildLinearBreadcrumbs, _b as buttonGroupVariants, mb as buttonVariants, q as cn, nY as composeResolvers, Xq as extractDefaults, qX as jsonSchemaResolver, FH as tabsListVariants, sH as toast, zH as toggleVariants, EM as useComboboxAnchor, aZ as useLayoutConfig, iZ as useLayoutSlots, tn as usePortalContainer, SV as useSidebar, XH as useSidebarMode, D as useTheme };
|