@gravitee/graphene-core 3.44.0 → 3.44.1-feat-found-397-data-table-test-ids.6a3fe53
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/USAGE_GUIDE.md +30 -5
- package/dist/base/Table/Table.harness.d.ts +14 -3
- package/dist/base/Table/Table.harness.d.ts.map +1 -1
- package/dist/composed/DataTable/ColumnOption.d.ts +2 -1
- package/dist/composed/DataTable/ColumnOption.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTable.d.ts +9 -1
- package/dist/composed/DataTable/DataTable.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTable.harness.d.ts +5 -3
- package/dist/composed/DataTable/DataTable.harness.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableColumnHeader.d.ts +7 -1
- package/dist/composed/DataTable/DataTableColumnHeader.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableTestIdContext.d.ts +7 -0
- package/dist/composed/DataTable/DataTableTestIdContext.d.ts.map +1 -0
- package/dist/composed/DataTable/DataTableViewOptions.d.ts +6 -1
- package/dist/composed/DataTable/DataTableViewOptions.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableViewOptionsSearch.d.ts +3 -1
- package/dist/composed/DataTable/DataTableViewOptionsSearch.d.ts.map +1 -1
- package/dist/composed/DataTable/cells.d.ts +15 -9
- package/dist/composed/DataTable/cells.d.ts.map +1 -1
- package/dist/composed/DataTablePagination/DataTablePagination.d.ts +6 -1
- package/dist/composed/DataTablePagination/DataTablePagination.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/fields/const/ConstField.d.ts +8 -0
- package/dist/composed/JsonSchemaForm/fields/const/ConstField.d.ts.map +1 -0
- package/dist/index.js +932 -869
- package/dist/testing/index.js +29 -24
- package/package.json +2 -1
package/dist/index.js
CHANGED
|
@@ -27048,10 +27048,11 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27048
27048
|
25,
|
|
27049
27049
|
50,
|
|
27050
27050
|
100
|
|
27051
|
-
], onPageChange: i, onPageSizeChange: a, children: o }) {
|
|
27052
|
-
let
|
|
27051
|
+
], onPageChange: i, onPageSizeChange: a, children: o, "data-testid": s }) {
|
|
27052
|
+
let c = Math.ceil(n / t) || 0, l = n > 0 ? (e - 1) * t + 1 : 0, u = Math.min(e * t, n);
|
|
27053
27053
|
return /* @__PURE__ */ G("div", {
|
|
27054
27054
|
className: "flex items-center gap-4 p-2",
|
|
27055
|
+
"data-testid": s,
|
|
27055
27056
|
children: [o && /* @__PURE__ */ W("div", {
|
|
27056
27057
|
className: "flex-1",
|
|
27057
27058
|
children: o
|
|
@@ -27069,17 +27070,23 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27069
27070
|
children: [/* @__PURE__ */ W(DH, {
|
|
27070
27071
|
className: "h-7 w-16",
|
|
27071
27072
|
"aria-label": "Items per page",
|
|
27073
|
+
"data-testid": xC(s, "page-size"),
|
|
27072
27074
|
children: /* @__PURE__ */ W(EH, {})
|
|
27073
|
-
}), /* @__PURE__ */ W(OH, {
|
|
27074
|
-
|
|
27075
|
-
children: e
|
|
27076
|
-
|
|
27075
|
+
}), /* @__PURE__ */ W(OH, {
|
|
27076
|
+
"data-testid": xC(s, "page-size-content"),
|
|
27077
|
+
children: r.map((e) => /* @__PURE__ */ W(AH, {
|
|
27078
|
+
value: String(e),
|
|
27079
|
+
"data-testid": xC(s, `page-size-option-${e}`),
|
|
27080
|
+
children: e
|
|
27081
|
+
}, e))
|
|
27082
|
+
})]
|
|
27077
27083
|
})]
|
|
27078
27084
|
}),
|
|
27079
27085
|
/* @__PURE__ */ G("span", {
|
|
27080
27086
|
className: "text-xs text-muted-foreground tabular-nums",
|
|
27087
|
+
"data-testid": xC(s, "range"),
|
|
27081
27088
|
children: [
|
|
27082
|
-
n > 0 ? `${
|
|
27089
|
+
n > 0 ? `${l}-${u}` : "0",
|
|
27083
27090
|
" of ",
|
|
27084
27091
|
n
|
|
27085
27092
|
]
|
|
@@ -27092,13 +27099,15 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27092
27099
|
disabled: e <= 1,
|
|
27093
27100
|
onClick: () => i(e - 1),
|
|
27094
27101
|
"aria-label": "Previous page",
|
|
27102
|
+
"data-testid": xC(s, "previous"),
|
|
27095
27103
|
children: /* @__PURE__ */ W(we, { className: "size-4" })
|
|
27096
27104
|
}), /* @__PURE__ */ W(iy, {
|
|
27097
27105
|
variant: "ghost",
|
|
27098
27106
|
size: "icon-xs",
|
|
27099
|
-
disabled: e >=
|
|
27107
|
+
disabled: e >= c,
|
|
27100
27108
|
onClick: () => i(e + 1),
|
|
27101
27109
|
"aria-label": "Next page",
|
|
27110
|
+
"data-testid": xC(s, "next"),
|
|
27102
27111
|
children: /* @__PURE__ */ W(re, { className: "size-4" })
|
|
27103
27112
|
})]
|
|
27104
27113
|
})
|
|
@@ -27107,8 +27116,11 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27107
27116
|
});
|
|
27108
27117
|
}
|
|
27109
27118
|
//#endregion
|
|
27119
|
+
//#region src/composed/DataTable/DataTableTestIdContext.ts
|
|
27120
|
+
var MK = Fe(void 0);
|
|
27121
|
+
//#endregion
|
|
27110
27122
|
//#region src/composed/DataTable/ColumnName.tsx
|
|
27111
|
-
function
|
|
27123
|
+
function NK({ label: e, description: t, labelId: n, descriptionId: r }) {
|
|
27112
27124
|
return t === void 0 && n === void 0 ? e : /* @__PURE__ */ G("span", {
|
|
27113
27125
|
className: "flex min-w-0 flex-col",
|
|
27114
27126
|
children: [/* @__PURE__ */ W("span", {
|
|
@@ -27123,14 +27135,14 @@ function MK({ label: e, description: t, labelId: n, descriptionId: r }) {
|
|
|
27123
27135
|
}
|
|
27124
27136
|
//#endregion
|
|
27125
27137
|
//#region src/composed/DataTable/columnVisibility.ts
|
|
27126
|
-
function
|
|
27138
|
+
function PK(e) {
|
|
27127
27139
|
return e.getAllColumns().filter((e) => e.getCanHide());
|
|
27128
27140
|
}
|
|
27129
|
-
function
|
|
27141
|
+
function FK(e) {
|
|
27130
27142
|
let { meta: t, header: n } = e.columnDef;
|
|
27131
27143
|
return t?.label ?? (typeof n == "string" ? n : e.id);
|
|
27132
27144
|
}
|
|
27133
|
-
function
|
|
27145
|
+
function IK(e) {
|
|
27134
27146
|
let t = new Map([[void 0, []]]);
|
|
27135
27147
|
for (let n of e) {
|
|
27136
27148
|
let e = n.columnDef.meta?.section || void 0, r = t.get(e);
|
|
@@ -27141,32 +27153,33 @@ function FK(e) {
|
|
|
27141
27153
|
columns: t
|
|
27142
27154
|
})).filter((e) => e.columns.length > 0);
|
|
27143
27155
|
}
|
|
27144
|
-
function
|
|
27156
|
+
function LK(e) {
|
|
27145
27157
|
return e === void 0 ? "unsectioned" : `section:${e}`;
|
|
27146
27158
|
}
|
|
27147
27159
|
//#endregion
|
|
27148
27160
|
//#region src/composed/DataTable/ColumnOption.tsx
|
|
27149
|
-
function
|
|
27150
|
-
let
|
|
27161
|
+
function RK({ column: e, onToggle: t, "data-testid": n }) {
|
|
27162
|
+
let r = Ue(), i = FK(e), a = e.columnDef.meta?.description, o = `${r}-label`, s = a === void 0 ? void 0 : `${r}-description`, c = e.getIsVisible();
|
|
27151
27163
|
return /* @__PURE__ */ W(HF, {
|
|
27152
27164
|
value: e.id,
|
|
27153
|
-
keywords:
|
|
27154
|
-
"data-checked":
|
|
27155
|
-
"aria-checked":
|
|
27156
|
-
"aria-labelledby":
|
|
27157
|
-
"aria-describedby":
|
|
27165
|
+
keywords: a === void 0 ? [i] : [i, a],
|
|
27166
|
+
"data-checked": c,
|
|
27167
|
+
"aria-checked": c,
|
|
27168
|
+
"aria-labelledby": o,
|
|
27169
|
+
"aria-describedby": s,
|
|
27158
27170
|
onSelect: () => t(e),
|
|
27159
|
-
|
|
27160
|
-
|
|
27161
|
-
|
|
27162
|
-
|
|
27163
|
-
|
|
27171
|
+
"data-testid": n,
|
|
27172
|
+
children: /* @__PURE__ */ W(NK, {
|
|
27173
|
+
label: i,
|
|
27174
|
+
description: a,
|
|
27175
|
+
labelId: o,
|
|
27176
|
+
descriptionId: s
|
|
27164
27177
|
})
|
|
27165
27178
|
});
|
|
27166
27179
|
}
|
|
27167
27180
|
//#endregion
|
|
27168
27181
|
//#region src/composed/DataTable/ViewOptionsTrigger.tsx
|
|
27169
|
-
function
|
|
27182
|
+
function zK(e) {
|
|
27170
27183
|
return /* @__PURE__ */ G(iy, {
|
|
27171
27184
|
variant: "outline",
|
|
27172
27185
|
size: "sm",
|
|
@@ -27176,46 +27189,49 @@ function RK(e) {
|
|
|
27176
27189
|
}
|
|
27177
27190
|
//#endregion
|
|
27178
27191
|
//#region src/composed/DataTable/DataTableViewOptionsSearch.tsx
|
|
27179
|
-
function
|
|
27192
|
+
function BK(e, t, n = []) {
|
|
27180
27193
|
let r = t.trim().toLowerCase();
|
|
27181
27194
|
return +!!n.some((e) => e.toLowerCase().includes(r));
|
|
27182
27195
|
}
|
|
27183
|
-
function
|
|
27184
|
-
let [
|
|
27185
|
-
|
|
27186
|
-
},
|
|
27187
|
-
e.toggleVisibility(!e.getIsVisible()),
|
|
27196
|
+
function VK({ columns: e, placeholder: t, "data-testid": n }) {
|
|
27197
|
+
let [r, i] = Ye(""), a = Je(null), o = () => {
|
|
27198
|
+
i(""), a.current?.focus();
|
|
27199
|
+
}, s = (e) => {
|
|
27200
|
+
e.toggleVisibility(!e.getIsVisible()), a.current?.focus();
|
|
27188
27201
|
};
|
|
27189
27202
|
return /* @__PURE__ */ G(fB, {
|
|
27190
27203
|
onOpenChange: (e) => {
|
|
27191
|
-
e ||
|
|
27204
|
+
e || i("");
|
|
27192
27205
|
},
|
|
27193
27206
|
children: [/* @__PURE__ */ W(pB, {
|
|
27194
27207
|
asChild: !0,
|
|
27195
|
-
children: /* @__PURE__ */ W(
|
|
27208
|
+
children: /* @__PURE__ */ W(zK, { "data-testid": n })
|
|
27196
27209
|
}), /* @__PURE__ */ W(mB, {
|
|
27197
27210
|
align: "end",
|
|
27198
27211
|
"aria-label": "Toggle columns",
|
|
27199
27212
|
className: "w-72 p-0",
|
|
27213
|
+
"data-testid": xC(n, "content"),
|
|
27200
27214
|
children: /* @__PURE__ */ G(FF, {
|
|
27201
27215
|
label: "Search columns",
|
|
27202
|
-
filter:
|
|
27216
|
+
filter: BK,
|
|
27203
27217
|
className: "bg-transparent p-0",
|
|
27204
27218
|
children: [/* @__PURE__ */ G("div", {
|
|
27205
27219
|
className: "relative",
|
|
27206
27220
|
children: [/* @__PURE__ */ W(LF, {
|
|
27207
|
-
ref:
|
|
27221
|
+
ref: a,
|
|
27208
27222
|
placeholder: t,
|
|
27209
|
-
value:
|
|
27210
|
-
onValueChange:
|
|
27211
|
-
className: "pr-8"
|
|
27212
|
-
|
|
27223
|
+
value: r,
|
|
27224
|
+
onValueChange: i,
|
|
27225
|
+
className: "pr-8",
|
|
27226
|
+
"data-testid": xC(n, "search")
|
|
27227
|
+
}), r !== "" && /* @__PURE__ */ W(iy, {
|
|
27213
27228
|
type: "button",
|
|
27214
27229
|
variant: "ghost",
|
|
27215
27230
|
size: "icon-xs",
|
|
27216
27231
|
"aria-label": "Clear search",
|
|
27217
27232
|
className: "absolute top-2 right-2",
|
|
27218
|
-
|
|
27233
|
+
"data-testid": xC(n, "clear"),
|
|
27234
|
+
onClick: o,
|
|
27219
27235
|
onKeyDown: (e) => {
|
|
27220
27236
|
e.key === "Enter" && e.stopPropagation();
|
|
27221
27237
|
},
|
|
@@ -27223,13 +27239,14 @@ function BK({ columns: e, placeholder: t }) {
|
|
|
27223
27239
|
})]
|
|
27224
27240
|
}), /* @__PURE__ */ G(RF, {
|
|
27225
27241
|
label: "Columns",
|
|
27226
|
-
children: [/* @__PURE__ */ W(zF, { children: "No columns match." }),
|
|
27242
|
+
children: [/* @__PURE__ */ W(zF, { children: "No columns match." }), IK(e).map(({ heading: e, columns: t }) => /* @__PURE__ */ W(BF, {
|
|
27227
27243
|
heading: e,
|
|
27228
|
-
children: t.map((e) => /* @__PURE__ */ W(
|
|
27244
|
+
children: t.map((e) => /* @__PURE__ */ W(RK, {
|
|
27229
27245
|
column: e,
|
|
27230
|
-
onToggle:
|
|
27246
|
+
onToggle: s,
|
|
27247
|
+
"data-testid": xC(n, `column-${e.id}`)
|
|
27231
27248
|
}, e.id))
|
|
27232
|
-
},
|
|
27249
|
+
}, LK(e)))]
|
|
27233
27250
|
})]
|
|
27234
27251
|
})
|
|
27235
27252
|
})]
|
|
@@ -27237,46 +27254,49 @@ function BK({ columns: e, placeholder: t }) {
|
|
|
27237
27254
|
}
|
|
27238
27255
|
//#endregion
|
|
27239
27256
|
//#region src/composed/DataTable/DataTableViewOptions.tsx
|
|
27240
|
-
function
|
|
27241
|
-
let
|
|
27242
|
-
return t ? /* @__PURE__ */ W(
|
|
27243
|
-
columns:
|
|
27244
|
-
placeholder: n
|
|
27257
|
+
function HK({ table: e, searchable: t = !1, searchPlaceholder: n = "Search columns...", "data-testid": r }) {
|
|
27258
|
+
let i = PK(e), a = Ue();
|
|
27259
|
+
return t ? /* @__PURE__ */ W(VK, {
|
|
27260
|
+
columns: i,
|
|
27261
|
+
placeholder: n,
|
|
27262
|
+
"data-testid": r
|
|
27245
27263
|
}) : /* @__PURE__ */ G(bL, { children: [/* @__PURE__ */ W(SL, {
|
|
27246
27264
|
asChild: !0,
|
|
27247
|
-
children: /* @__PURE__ */ W(
|
|
27265
|
+
children: /* @__PURE__ */ W(zK, { "data-testid": r })
|
|
27248
27266
|
}), /* @__PURE__ */ G(CL, {
|
|
27249
27267
|
align: "end",
|
|
27250
27268
|
className: "w-48",
|
|
27269
|
+
"data-testid": xC(r, "content"),
|
|
27251
27270
|
children: [
|
|
27252
27271
|
/* @__PURE__ */ W(kL, { children: "Toggle columns" }),
|
|
27253
27272
|
/* @__PURE__ */ W(AL, {}),
|
|
27254
|
-
|
|
27255
|
-
let
|
|
27273
|
+
IK(i).map(({ heading: e, columns: t }, n) => {
|
|
27274
|
+
let i = t.map((e) => /* @__PURE__ */ W(EL, {
|
|
27256
27275
|
checked: e.getIsVisible(),
|
|
27257
27276
|
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
27258
27277
|
className: "text-sm",
|
|
27259
|
-
|
|
27260
|
-
|
|
27278
|
+
"data-testid": xC(r, `column-${e.id}`),
|
|
27279
|
+
children: /* @__PURE__ */ W(NK, {
|
|
27280
|
+
label: FK(e),
|
|
27261
27281
|
description: e.columnDef.meta?.description
|
|
27262
27282
|
})
|
|
27263
27283
|
}, e.id));
|
|
27264
|
-
if (e === void 0) return /* @__PURE__ */ W(Ne, { children:
|
|
27265
|
-
let
|
|
27284
|
+
if (e === void 0) return /* @__PURE__ */ W(Ne, { children: i }, LK(e));
|
|
27285
|
+
let o = `${a}-section-${n}`;
|
|
27266
27286
|
return /* @__PURE__ */ G(Ne, { children: [n > 0 && /* @__PURE__ */ W(AL, {}), /* @__PURE__ */ G(wL, {
|
|
27267
|
-
"aria-labelledby":
|
|
27287
|
+
"aria-labelledby": o,
|
|
27268
27288
|
children: [/* @__PURE__ */ W(kL, {
|
|
27269
|
-
id:
|
|
27289
|
+
id: o,
|
|
27270
27290
|
children: e
|
|
27271
|
-
}),
|
|
27272
|
-
})] },
|
|
27291
|
+
}), i]
|
|
27292
|
+
})] }, LK(e));
|
|
27273
27293
|
})
|
|
27274
27294
|
]
|
|
27275
27295
|
})] });
|
|
27276
27296
|
}
|
|
27277
27297
|
//#endregion
|
|
27278
27298
|
//#region src/composed/DataTable/DataTable.tsx
|
|
27279
|
-
function
|
|
27299
|
+
function UK(e, t) {
|
|
27280
27300
|
let [n, r] = Ye(!1);
|
|
27281
27301
|
return He(() => {
|
|
27282
27302
|
if (!e) return;
|
|
@@ -27286,10 +27306,11 @@ function HK(e, t) {
|
|
|
27286
27306
|
};
|
|
27287
27307
|
}, [e, t]), e && n;
|
|
27288
27308
|
}
|
|
27289
|
-
var
|
|
27290
|
-
function
|
|
27291
|
-
let
|
|
27309
|
+
var WK = bK(), GK = TK(), KK = wK();
|
|
27310
|
+
function qK({ header: e, table: n, "data-testid": r }) {
|
|
27311
|
+
let i = e.getResizeHandler();
|
|
27292
27312
|
return /* @__PURE__ */ W("div", {
|
|
27313
|
+
"data-testid": r,
|
|
27293
27314
|
role: "slider",
|
|
27294
27315
|
"aria-label": `Resize ${e.column.id} column`,
|
|
27295
27316
|
"aria-orientation": "horizontal",
|
|
@@ -27297,8 +27318,8 @@ function KK({ header: e, table: n }) {
|
|
|
27297
27318
|
"aria-valuemin": 10,
|
|
27298
27319
|
"aria-valuemax": 1e3,
|
|
27299
27320
|
tabIndex: 0,
|
|
27300
|
-
onMouseDown:
|
|
27301
|
-
onTouchStart:
|
|
27321
|
+
onMouseDown: i,
|
|
27322
|
+
onTouchStart: i,
|
|
27302
27323
|
onKeyDown: (t) => {
|
|
27303
27324
|
let r = t.key === "ArrowRight" ? 10 : t.key === "ArrowLeft" ? -10 : 0;
|
|
27304
27325
|
r && (t.preventDefault(), n.setColumnSizing((t) => ({
|
|
@@ -27309,61 +27330,67 @@ function KK({ header: e, table: n }) {
|
|
|
27309
27330
|
className: t("absolute top-0 right-0 h-full w-1 cursor-col-resize touch-none select-none", e.column.getIsResizing() ? "bg-primary" : "bg-border/40 hover:bg-border")
|
|
27310
27331
|
});
|
|
27311
27332
|
}
|
|
27312
|
-
function
|
|
27313
|
-
let [
|
|
27314
|
-
|
|
27315
|
-
let
|
|
27333
|
+
function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange: i, bulkActions: a, sorting: o, onSortingChange: s, emptyMessage: c = "No results.", enableColumnVisibility: l, columnVisibilityOptions: u, enableColumnResizing: d, stickyHeader: f, loading: p, loadingDelay: m = 200, skeletonCount: h = 5, className: g, "aria-label": _, toolbar: v, pagination: y, footer: b, serverSide: x, tableOptions: S, "data-testid": C }) {
|
|
27334
|
+
let [w, T] = Ye({}), [E, D] = Ye({}), [O, k] = Ye([]), A = UK(!!p, m), j = m > 0 ? A : !!p, M = o !== void 0, N = M ? o : O, P = M ? s : k, F = Je(i);
|
|
27335
|
+
F.current = i;
|
|
27336
|
+
let I = Je(n);
|
|
27316
27337
|
He(() => {
|
|
27317
|
-
|
|
27338
|
+
I.current !== n && (I.current = n, D({}), F.current?.([]));
|
|
27318
27339
|
}, [n]);
|
|
27319
|
-
let
|
|
27340
|
+
let L = Ke(() => r === "multi" ? [{
|
|
27320
27341
|
id: "_select",
|
|
27321
27342
|
header: ({ table: e }) => /* @__PURE__ */ W(BC, {
|
|
27322
27343
|
checked: e.getIsAllPageRowsSelected() || e.getIsSomePageRowsSelected() && "indeterminate",
|
|
27323
27344
|
onCheckedChange: (t) => e.toggleAllPageRowsSelected(!!t),
|
|
27324
|
-
"aria-label": "Select all"
|
|
27345
|
+
"aria-label": "Select all",
|
|
27346
|
+
"data-testid": xC(C, "select-all")
|
|
27325
27347
|
}),
|
|
27326
27348
|
cell: ({ row: e }) => /* @__PURE__ */ W(BC, {
|
|
27327
27349
|
checked: e.getIsSelected(),
|
|
27328
27350
|
onCheckedChange: (t) => e.toggleSelected(!!t),
|
|
27329
|
-
"aria-label": "Select row"
|
|
27351
|
+
"aria-label": "Select row",
|
|
27352
|
+
"data-testid": xC(C, `row-${e.id}-select`)
|
|
27330
27353
|
}),
|
|
27331
27354
|
enableSorting: !1,
|
|
27332
27355
|
enableHiding: !1
|
|
27333
|
-
}, ...e] : e, [
|
|
27334
|
-
|
|
27335
|
-
|
|
27336
|
-
|
|
27337
|
-
|
|
27338
|
-
queueMicrotask(() => i(e));
|
|
27339
|
-
}
|
|
27340
|
-
return r;
|
|
27341
|
-
});
|
|
27342
|
-
}, [n, i]), ee = AK({
|
|
27356
|
+
}, ...e] : e, [
|
|
27357
|
+
e,
|
|
27358
|
+
r,
|
|
27359
|
+
C
|
|
27360
|
+
]), ee = AK({
|
|
27343
27361
|
data: n,
|
|
27344
|
-
columns:
|
|
27362
|
+
columns: L,
|
|
27345
27363
|
state: {
|
|
27346
|
-
sorting:
|
|
27347
|
-
columnVisibility:
|
|
27348
|
-
rowSelection:
|
|
27364
|
+
sorting: N,
|
|
27365
|
+
columnVisibility: w,
|
|
27366
|
+
rowSelection: E
|
|
27367
|
+
},
|
|
27368
|
+
onSortingChange: P,
|
|
27369
|
+
onColumnVisibilityChange: T,
|
|
27370
|
+
onRowSelectionChange: (e) => {
|
|
27371
|
+
D((t) => {
|
|
27372
|
+
let n = typeof e == "function" ? e(t) : e;
|
|
27373
|
+
if (i) {
|
|
27374
|
+
let e = ee.getCoreRowModel().flatRows.filter((e) => n[e.id]).map((e) => e.original);
|
|
27375
|
+
queueMicrotask(() => i(e));
|
|
27376
|
+
}
|
|
27377
|
+
return n;
|
|
27378
|
+
});
|
|
27349
27379
|
},
|
|
27350
|
-
onSortingChange: N,
|
|
27351
|
-
onColumnVisibilityChange: w,
|
|
27352
|
-
onRowSelectionChange: L,
|
|
27353
27380
|
enableColumnResizing: d,
|
|
27354
27381
|
columnResizeMode: d ? "onChange" : void 0,
|
|
27355
|
-
getCoreRowModel:
|
|
27356
|
-
getSortedRowModel: x ? void 0 :
|
|
27357
|
-
getFilteredRowModel: x ? void 0 :
|
|
27382
|
+
getCoreRowModel: WK,
|
|
27383
|
+
getSortedRowModel: x ? void 0 : GK,
|
|
27384
|
+
getFilteredRowModel: x ? void 0 : KK,
|
|
27358
27385
|
manualSorting: x,
|
|
27359
27386
|
manualPagination: x,
|
|
27360
27387
|
manualFiltering: x,
|
|
27361
27388
|
...S
|
|
27362
|
-
}), te = a ? ee.getFilteredSelectedRowModel().rows.length : 0, R = v || a || l, ne = ee.getRowModel().rows, re =
|
|
27389
|
+
}), te = a ? ee.getFilteredSelectedRowModel().rows.length : 0, R = v || a || l, ne = ee.getRowModel().rows, re = L.length || 1;
|
|
27363
27390
|
function ie() {
|
|
27364
|
-
return
|
|
27391
|
+
return j && !ne.length ? Array.from({ length: h }).map((e, t) => /* @__PURE__ */ W(gW, {
|
|
27365
27392
|
className: "border-transparent",
|
|
27366
|
-
children:
|
|
27393
|
+
children: L.map((e, n) => /* @__PURE__ */ G(vW, {
|
|
27367
27394
|
className: "relative",
|
|
27368
27395
|
children: [/* @__PURE__ */ W("div", {
|
|
27369
27396
|
className: "invisible",
|
|
@@ -27371,17 +27398,19 @@ function qK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27371
27398
|
}), /* @__PURE__ */ W("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
|
|
27372
27399
|
}, `skeleton-${t}-${n}`))
|
|
27373
27400
|
}, `skeleton-${t}`)) : !ne.length && p ? null : ne.length ? ne.map((e) => /* @__PURE__ */ W(gW, {
|
|
27401
|
+
"data-testid": xC(C, `row-${e.id}`),
|
|
27374
27402
|
"data-state": e.getIsSelected() ? "selected" : void 0,
|
|
27375
|
-
className:
|
|
27403
|
+
className: j ? "pointer-events-none border-transparent hover:bg-transparent" : void 0,
|
|
27376
27404
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ G(vW, {
|
|
27377
|
-
className: t("min-w-0",
|
|
27405
|
+
className: t("min-w-0", j && "relative", d && "overflow-hidden"),
|
|
27378
27406
|
children: [/* @__PURE__ */ W("div", {
|
|
27379
|
-
className: t("min-w-0",
|
|
27407
|
+
className: t("min-w-0", j && "invisible h-full"),
|
|
27380
27408
|
children: EK(e.column.columnDef.cell, e.getContext())
|
|
27381
|
-
}),
|
|
27409
|
+
}), j && /* @__PURE__ */ W("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
|
|
27382
27410
|
}, e.id))
|
|
27383
27411
|
}, e.id)) : /* @__PURE__ */ W(gW, {
|
|
27384
27412
|
className: "hover:bg-transparent",
|
|
27413
|
+
"data-testid": xC(C, "empty"),
|
|
27385
27414
|
children: /* @__PURE__ */ W(vW, {
|
|
27386
27415
|
colSpan: re,
|
|
27387
27416
|
className: t("h-24 text-center", typeof c == "string" && "text-muted-foreground"),
|
|
@@ -27389,19 +27418,21 @@ function qK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27389
27418
|
})
|
|
27390
27419
|
});
|
|
27391
27420
|
}
|
|
27392
|
-
let z =
|
|
27393
|
-
|
|
27394
|
-
|
|
27395
|
-
|
|
27396
|
-
|
|
27397
|
-
|
|
27421
|
+
let z = d ? {
|
|
27422
|
+
width: ee.getTotalSize(),
|
|
27423
|
+
minWidth: "100%",
|
|
27424
|
+
tableLayout: "fixed"
|
|
27425
|
+
} : void 0, ae = (e) => e.isPlaceholder ? void 0 : xC(C, `header-${e.column.id}`), oe = /* @__PURE__ */ G(fW, {
|
|
27426
|
+
style: z,
|
|
27398
27427
|
children: [/* @__PURE__ */ W(pW, { children: ee.getHeaderGroups().map((e) => /* @__PURE__ */ W(gW, { children: e.headers.map((e) => /* @__PURE__ */ G(_W, {
|
|
27428
|
+
"data-testid": ae(e),
|
|
27399
27429
|
style: d ? { width: e.getSize() } : void 0,
|
|
27400
27430
|
"aria-sort": e.column.getIsSorted() === "asc" ? "ascending" : e.column.getIsSorted() === "desc" ? "descending" : e.column.getCanSort() ? "none" : void 0,
|
|
27401
27431
|
className: t(d && "relative overflow-hidden", f && "sticky top-0 z-10 bg-background"),
|
|
27402
|
-
children: [e.isPlaceholder ? null : EK(e.column.columnDef.header, e.getContext()), d && e.column.getCanResize() && /* @__PURE__ */ W(
|
|
27432
|
+
children: [e.isPlaceholder ? null : EK(e.column.columnDef.header, e.getContext()), d && !e.isPlaceholder && e.column.getCanResize() && /* @__PURE__ */ W(qK, {
|
|
27403
27433
|
header: e,
|
|
27404
|
-
table: ee
|
|
27434
|
+
table: ee,
|
|
27435
|
+
"data-testid": xC(ae(e), "resize")
|
|
27405
27436
|
})]
|
|
27406
27437
|
}, e.id)) }, e.id)) }), /* @__PURE__ */ W(mW, { children: ie() })]
|
|
27407
27438
|
});
|
|
@@ -27409,6 +27440,7 @@ function qK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27409
27440
|
className: t("space-y-2", g),
|
|
27410
27441
|
"aria-label": _,
|
|
27411
27442
|
role: _ ? "region" : void 0,
|
|
27443
|
+
"data-testid": C,
|
|
27412
27444
|
children: [
|
|
27413
27445
|
R && /* @__PURE__ */ G("div", {
|
|
27414
27446
|
className: "flex items-center justify-between gap-2 py-2",
|
|
@@ -27417,12 +27449,14 @@ function qK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27417
27449
|
children: v
|
|
27418
27450
|
}), /* @__PURE__ */ G("div", {
|
|
27419
27451
|
className: "flex items-center gap-2",
|
|
27420
|
-
children: [l && /* @__PURE__ */ W(
|
|
27452
|
+
children: [l && /* @__PURE__ */ W(HK, {
|
|
27421
27453
|
table: ee,
|
|
27422
|
-
...u
|
|
27454
|
+
...u,
|
|
27455
|
+
"data-testid": xC(C, "view")
|
|
27423
27456
|
}), a && /* @__PURE__ */ W("div", {
|
|
27424
27457
|
className: t("flex items-center gap-2", te === 0 && "opacity-50"),
|
|
27425
27458
|
"aria-disabled": te === 0,
|
|
27459
|
+
"data-testid": xC(C, "bulk-actions"),
|
|
27426
27460
|
...te === 0 ? { inert: !0 } : {},
|
|
27427
27461
|
children: a
|
|
27428
27462
|
})]
|
|
@@ -27430,12 +27464,16 @@ function qK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27430
27464
|
}),
|
|
27431
27465
|
/* @__PURE__ */ W("div", {
|
|
27432
27466
|
className: t("overflow-hidden rounded-lg border", !f && "**:data-[slot=table-container]:overflow-x-auto", f && "**:data-[slot=table-container]:!overflow-visible"),
|
|
27433
|
-
"aria-busy":
|
|
27434
|
-
"aria-live":
|
|
27435
|
-
|
|
27436
|
-
|
|
27437
|
-
|
|
27438
|
-
|
|
27467
|
+
"aria-busy": j,
|
|
27468
|
+
"aria-live": j ? "polite" : void 0,
|
|
27469
|
+
"data-testid": xC(C, "table"),
|
|
27470
|
+
children: /* @__PURE__ */ W(MK, {
|
|
27471
|
+
value: C,
|
|
27472
|
+
children: f ? /* @__PURE__ */ G(SH, {
|
|
27473
|
+
"data-slot": "table-scroll",
|
|
27474
|
+
children: [oe, /* @__PURE__ */ W(CH, { orientation: "horizontal" })]
|
|
27475
|
+
}) : oe
|
|
27476
|
+
})
|
|
27439
27477
|
}),
|
|
27440
27478
|
b,
|
|
27441
27479
|
y && /* @__PURE__ */ W(jK, {
|
|
@@ -27444,47 +27482,59 @@ function qK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27444
27482
|
totalCount: y.totalCount,
|
|
27445
27483
|
onPageChange: y.onPageChange,
|
|
27446
27484
|
onPageSizeChange: y.onPageSizeChange,
|
|
27447
|
-
pageSizeOptions: y.pageSizeOptions
|
|
27485
|
+
pageSizeOptions: y.pageSizeOptions,
|
|
27486
|
+
"data-testid": xC(C, "pagination")
|
|
27448
27487
|
})
|
|
27449
27488
|
]
|
|
27450
27489
|
});
|
|
27451
27490
|
}
|
|
27452
27491
|
//#endregion
|
|
27453
27492
|
//#region src/composed/DataTable/DataTableColumnHeader.tsx
|
|
27454
|
-
function
|
|
27493
|
+
function YK({ column: e, title: n, className: r, "data-testid": i, ...a }) {
|
|
27494
|
+
let o = Be(MK), s = i ?? xC(o, `header-${e.id}`);
|
|
27455
27495
|
if (!e.getCanSort()) return /* @__PURE__ */ W("div", {
|
|
27456
27496
|
className: r,
|
|
27457
|
-
|
|
27497
|
+
"data-testid": i,
|
|
27498
|
+
...a,
|
|
27458
27499
|
children: n
|
|
27459
27500
|
});
|
|
27460
|
-
let
|
|
27501
|
+
let c = e.getIsSorted();
|
|
27461
27502
|
return /* @__PURE__ */ W("div", {
|
|
27462
27503
|
className: t("flex items-center gap-1", r),
|
|
27463
|
-
|
|
27504
|
+
"data-testid": i,
|
|
27505
|
+
...a,
|
|
27464
27506
|
children: /* @__PURE__ */ G(iy, {
|
|
27465
27507
|
variant: "ghost",
|
|
27466
27508
|
size: "xs",
|
|
27467
27509
|
className: "-ml-2 text-sm",
|
|
27468
|
-
onClick: () => e.toggleSorting(
|
|
27469
|
-
|
|
27510
|
+
onClick: () => e.toggleSorting(c === "asc"),
|
|
27511
|
+
"data-testid": xC(s, "sort"),
|
|
27512
|
+
children: [n, W(c === "asc" ? De : c === "desc" ? he : ye, { className: "size-3.5" })]
|
|
27470
27513
|
})
|
|
27471
27514
|
});
|
|
27472
27515
|
}
|
|
27473
27516
|
//#endregion
|
|
27474
27517
|
//#region src/composed/DataTable/cells.tsx
|
|
27475
|
-
|
|
27518
|
+
function XK(e) {
|
|
27519
|
+
return /* @__PURE__ */ W("span", {
|
|
27520
|
+
className: "text-muted-foreground",
|
|
27521
|
+
"data-testid": e,
|
|
27522
|
+
children: "—"
|
|
27523
|
+
});
|
|
27524
|
+
}
|
|
27525
|
+
var ZK = 6e4, QK = 36e5, $K = 864e5, eq = new Intl.RelativeTimeFormat(void 0, {
|
|
27476
27526
|
numeric: "auto",
|
|
27477
27527
|
style: "narrow"
|
|
27478
27528
|
});
|
|
27479
|
-
function
|
|
27529
|
+
function tq(e) {
|
|
27480
27530
|
let t = Date.now() - e.getTime();
|
|
27481
|
-
return t <
|
|
27531
|
+
return t < ZK ? eq.format(0, "second") : t < QK ? eq.format(-Math.floor(t / ZK), "minute") : t < $K ? eq.format(-Math.floor(t / QK), "hour") : t < $K * 30 ? eq.format(-Math.floor(t / $K), "day") : e.toLocaleDateString(void 0, {
|
|
27482
27532
|
month: "short",
|
|
27483
27533
|
day: "numeric",
|
|
27484
27534
|
year: "numeric"
|
|
27485
27535
|
});
|
|
27486
27536
|
}
|
|
27487
|
-
function
|
|
27537
|
+
function nq(e) {
|
|
27488
27538
|
return e.toLocaleString(void 0, {
|
|
27489
27539
|
month: "short",
|
|
27490
27540
|
day: "numeric",
|
|
@@ -27493,49 +27543,42 @@ function eq(e) {
|
|
|
27493
27543
|
minute: "2-digit"
|
|
27494
27544
|
});
|
|
27495
27545
|
}
|
|
27496
|
-
function
|
|
27497
|
-
if (!e) return
|
|
27498
|
-
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
let n = e instanceof Date ? e : new Date(e);
|
|
27502
|
-
if (Number.isNaN(n.getTime())) return /* @__PURE__ */ W("span", {
|
|
27503
|
-
className: "text-muted-foreground",
|
|
27504
|
-
children: "—"
|
|
27505
|
-
});
|
|
27506
|
-
let r = t === "relative" ? $K(n) : eq(n), i = eq(n);
|
|
27546
|
+
function rq({ value: e, format: t = "relative", "data-testid": n }) {
|
|
27547
|
+
if (!e) return XK(n);
|
|
27548
|
+
let r = e instanceof Date ? e : new Date(e);
|
|
27549
|
+
if (Number.isNaN(r.getTime())) return XK(n);
|
|
27550
|
+
let i = t === "relative" ? tq(r) : nq(r), a = nq(r);
|
|
27507
27551
|
return /* @__PURE__ */ W(WH, {
|
|
27508
27552
|
delayDuration: 300,
|
|
27509
27553
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27510
27554
|
asChild: !0,
|
|
27511
27555
|
children: /* @__PURE__ */ W("span", {
|
|
27512
27556
|
className: "text-muted-foreground tabular-nums",
|
|
27513
|
-
|
|
27557
|
+
"data-testid": n,
|
|
27558
|
+
children: i
|
|
27514
27559
|
})
|
|
27515
27560
|
}), /* @__PURE__ */ W(qH, {
|
|
27516
27561
|
side: "top",
|
|
27517
27562
|
children: /* @__PURE__ */ W("span", {
|
|
27518
27563
|
className: "text-xs",
|
|
27519
|
-
children:
|
|
27564
|
+
children: a
|
|
27520
27565
|
})
|
|
27521
27566
|
})] })
|
|
27522
27567
|
});
|
|
27523
27568
|
}
|
|
27524
|
-
function
|
|
27525
|
-
if (!e) return
|
|
27526
|
-
|
|
27527
|
-
children: "—"
|
|
27528
|
-
});
|
|
27529
|
-
let r = /* @__PURE__ */ G(Yv, {
|
|
27569
|
+
function iq({ value: e, variant: t = "default", icon: n, "data-testid": r }) {
|
|
27570
|
+
if (!e) return XK(r);
|
|
27571
|
+
let i = /* @__PURE__ */ G(Yv, {
|
|
27530
27572
|
variant: t,
|
|
27531
27573
|
className: "max-w-[180px] truncate",
|
|
27574
|
+
"data-testid": r,
|
|
27532
27575
|
children: [n, e]
|
|
27533
27576
|
});
|
|
27534
27577
|
return e.length > 20 ? /* @__PURE__ */ W(WH, {
|
|
27535
27578
|
delayDuration: 300,
|
|
27536
27579
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27537
27580
|
asChild: !0,
|
|
27538
|
-
children:
|
|
27581
|
+
children: i
|
|
27539
27582
|
}), /* @__PURE__ */ W(qH, {
|
|
27540
27583
|
side: "top",
|
|
27541
27584
|
className: "max-w-sm",
|
|
@@ -27544,21 +27587,19 @@ function nq({ value: e, variant: t = "default", icon: n }) {
|
|
|
27544
27587
|
children: e
|
|
27545
27588
|
})
|
|
27546
27589
|
})] })
|
|
27547
|
-
}) :
|
|
27590
|
+
}) : i;
|
|
27548
27591
|
}
|
|
27549
|
-
function
|
|
27550
|
-
if (!e) return
|
|
27551
|
-
|
|
27552
|
-
|
|
27553
|
-
});
|
|
27554
|
-
let n = e.length > t, r = n ? `${e.slice(0, t)}…` : e;
|
|
27555
|
-
return n ? /* @__PURE__ */ W(WH, {
|
|
27592
|
+
function aq({ value: e, maxLength: t = 32, "data-testid": n }) {
|
|
27593
|
+
if (!e) return XK(n);
|
|
27594
|
+
let r = e.length > t, i = r ? `${e.slice(0, t)}…` : e;
|
|
27595
|
+
return r ? /* @__PURE__ */ W(WH, {
|
|
27556
27596
|
delayDuration: 300,
|
|
27557
27597
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27558
27598
|
asChild: !0,
|
|
27559
27599
|
children: /* @__PURE__ */ W("code", {
|
|
27560
27600
|
className: "text-xs text-muted-foreground",
|
|
27561
|
-
|
|
27601
|
+
"data-testid": n,
|
|
27602
|
+
children: i
|
|
27562
27603
|
})
|
|
27563
27604
|
}), /* @__PURE__ */ W(qH, {
|
|
27564
27605
|
side: "top",
|
|
@@ -27570,29 +27611,28 @@ function rq({ value: e, maxLength: t = 32 }) {
|
|
|
27570
27611
|
})] })
|
|
27571
27612
|
}) : /* @__PURE__ */ W("code", {
|
|
27572
27613
|
className: "text-xs text-muted-foreground",
|
|
27573
|
-
|
|
27614
|
+
"data-testid": n,
|
|
27615
|
+
children: i
|
|
27574
27616
|
});
|
|
27575
27617
|
}
|
|
27576
|
-
function
|
|
27577
|
-
let [
|
|
27578
|
-
e && (navigator.clipboard.writeText(e),
|
|
27618
|
+
function oq({ value: e, maxLength: n = 24, "data-testid": r }) {
|
|
27619
|
+
let [i, a] = Ye(!1), o = Je(void 0), s = ze(() => {
|
|
27620
|
+
e && (navigator.clipboard.writeText(e), a(!0), clearTimeout(o.current), o.current = setTimeout(() => a(!1), 2e3));
|
|
27579
27621
|
}, [e]);
|
|
27580
|
-
if (!e) return
|
|
27581
|
-
|
|
27582
|
-
children: "—"
|
|
27583
|
-
});
|
|
27584
|
-
let s = e.length > n;
|
|
27622
|
+
if (!e) return XK(r);
|
|
27623
|
+
let c = e.length > n;
|
|
27585
27624
|
return /* @__PURE__ */ G("span", {
|
|
27586
27625
|
className: "group/copy inline-flex items-center gap-1",
|
|
27626
|
+
"data-testid": r,
|
|
27587
27627
|
children: [/* @__PURE__ */ W(WH, {
|
|
27588
27628
|
delayDuration: 300,
|
|
27589
27629
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27590
27630
|
asChild: !0,
|
|
27591
27631
|
children: /* @__PURE__ */ W("code", {
|
|
27592
27632
|
className: "text-xs text-muted-foreground",
|
|
27593
|
-
children:
|
|
27633
|
+
children: c ? `${e.slice(0, n)}…` : e
|
|
27594
27634
|
})
|
|
27595
|
-
}),
|
|
27635
|
+
}), c && /* @__PURE__ */ W(qH, {
|
|
27596
27636
|
side: "top",
|
|
27597
27637
|
className: "max-w-sm",
|
|
27598
27638
|
children: /* @__PURE__ */ W("code", {
|
|
@@ -27603,20 +27643,22 @@ function iq({ value: e, maxLength: n = 24 }) {
|
|
|
27603
27643
|
}), /* @__PURE__ */ W(iy, {
|
|
27604
27644
|
variant: "ghost",
|
|
27605
27645
|
size: "icon-xs",
|
|
27606
|
-
className: t("size-5 opacity-0 transition-opacity group-hover/copy:opacity-100",
|
|
27607
|
-
onClick:
|
|
27608
|
-
"aria-label":
|
|
27609
|
-
|
|
27646
|
+
className: t("size-5 opacity-0 transition-opacity group-hover/copy:opacity-100", i && "opacity-100"),
|
|
27647
|
+
onClick: s,
|
|
27648
|
+
"aria-label": i ? "Copied" : "Copy to clipboard",
|
|
27649
|
+
"data-testid": xC(r, "copy"),
|
|
27650
|
+
children: W(i ? z : B, { className: "size-3" })
|
|
27610
27651
|
})]
|
|
27611
27652
|
});
|
|
27612
27653
|
}
|
|
27613
|
-
function
|
|
27654
|
+
function sq({ value: e, className: n, "data-testid": r }) {
|
|
27614
27655
|
return e ? /* @__PURE__ */ W(WH, {
|
|
27615
27656
|
delayDuration: 500,
|
|
27616
27657
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27617
27658
|
asChild: !0,
|
|
27618
27659
|
children: /* @__PURE__ */ W("span", {
|
|
27619
27660
|
className: t("block max-w-[200px] truncate", n),
|
|
27661
|
+
"data-testid": r,
|
|
27620
27662
|
children: e
|
|
27621
27663
|
})
|
|
27622
27664
|
}), e.length > 30 && /* @__PURE__ */ W(qH, {
|
|
@@ -27627,14 +27669,11 @@ function aq({ value: e, className: n }) {
|
|
|
27627
27669
|
children: e
|
|
27628
27670
|
})
|
|
27629
27671
|
})] })
|
|
27630
|
-
}) :
|
|
27631
|
-
className: "text-muted-foreground",
|
|
27632
|
-
children: "—"
|
|
27633
|
-
});
|
|
27672
|
+
}) : XK(r);
|
|
27634
27673
|
}
|
|
27635
27674
|
//#endregion
|
|
27636
27675
|
//#region src/composed/DataTableEmptyState/DataTableEmptyState.tsx
|
|
27637
|
-
function
|
|
27676
|
+
function cq(e) {
|
|
27638
27677
|
let { variant: n, icon: r, title: i, description: a, className: o, "data-testid": s } = e, c = s ? `${s}-title` : void 0, l = s ? `${s}-description` : void 0, u = i.trim().length > 0, d = a.trim().length > 0;
|
|
27639
27678
|
return n === "no-results" ? /* @__PURE__ */ G(FL, {
|
|
27640
27679
|
className: t("py-12 text-foreground", o),
|
|
@@ -27696,98 +27735,98 @@ function oq(e) {
|
|
|
27696
27735
|
}
|
|
27697
27736
|
//#endregion
|
|
27698
27737
|
//#region ../../node_modules/date-fns/constants.js
|
|
27699
|
-
var
|
|
27700
|
-
|
|
27701
|
-
var
|
|
27738
|
+
var lq = 365.2425, uq = 6048e5, dq = 864e5, fq = 3600 * 24;
|
|
27739
|
+
fq * 7, fq * lq / 12 * 3;
|
|
27740
|
+
var pq = Symbol.for("constructDateFrom");
|
|
27702
27741
|
//#endregion
|
|
27703
27742
|
//#region ../../node_modules/date-fns/constructFrom.js
|
|
27704
|
-
function
|
|
27705
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
27743
|
+
function mq(e, t) {
|
|
27744
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && pq in e ? e[pq](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
27706
27745
|
}
|
|
27707
27746
|
//#endregion
|
|
27708
27747
|
//#region ../../node_modules/date-fns/toDate.js
|
|
27709
|
-
function
|
|
27710
|
-
return
|
|
27748
|
+
function hq(e, t) {
|
|
27749
|
+
return mq(t || e, e);
|
|
27711
27750
|
}
|
|
27712
27751
|
//#endregion
|
|
27713
27752
|
//#region ../../node_modules/date-fns/_lib/defaultOptions.js
|
|
27714
|
-
var
|
|
27715
|
-
function
|
|
27716
|
-
return
|
|
27753
|
+
var gq = {};
|
|
27754
|
+
function _q() {
|
|
27755
|
+
return gq;
|
|
27717
27756
|
}
|
|
27718
27757
|
//#endregion
|
|
27719
27758
|
//#region ../../node_modules/date-fns/startOfWeek.js
|
|
27720
|
-
function
|
|
27721
|
-
let n =
|
|
27759
|
+
function vq(e, t) {
|
|
27760
|
+
let n = _q(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = hq(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
27722
27761
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
27723
27762
|
}
|
|
27724
27763
|
//#endregion
|
|
27725
27764
|
//#region ../../node_modules/date-fns/startOfISOWeek.js
|
|
27726
|
-
function
|
|
27727
|
-
return
|
|
27765
|
+
function yq(e, t) {
|
|
27766
|
+
return vq(e, {
|
|
27728
27767
|
...t,
|
|
27729
27768
|
weekStartsOn: 1
|
|
27730
27769
|
});
|
|
27731
27770
|
}
|
|
27732
27771
|
//#endregion
|
|
27733
27772
|
//#region ../../node_modules/date-fns/getISOWeekYear.js
|
|
27734
|
-
function
|
|
27735
|
-
let n =
|
|
27773
|
+
function bq(e, t) {
|
|
27774
|
+
let n = hq(e, t?.in), r = n.getFullYear(), i = mq(n, 0);
|
|
27736
27775
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
27737
|
-
let a =
|
|
27776
|
+
let a = yq(i), o = mq(n, 0);
|
|
27738
27777
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
27739
|
-
let s =
|
|
27778
|
+
let s = yq(o);
|
|
27740
27779
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
27741
27780
|
}
|
|
27742
27781
|
//#endregion
|
|
27743
27782
|
//#region ../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
27744
|
-
function
|
|
27745
|
-
let t =
|
|
27783
|
+
function xq(e) {
|
|
27784
|
+
let t = hq(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
27746
27785
|
return n.setUTCFullYear(t.getFullYear()), e - +n;
|
|
27747
27786
|
}
|
|
27748
27787
|
//#endregion
|
|
27749
27788
|
//#region ../../node_modules/date-fns/_lib/normalizeDates.js
|
|
27750
|
-
function
|
|
27751
|
-
let n =
|
|
27789
|
+
function Sq(e, ...t) {
|
|
27790
|
+
let n = mq.bind(null, e || t.find((e) => typeof e == "object"));
|
|
27752
27791
|
return t.map(n);
|
|
27753
27792
|
}
|
|
27754
27793
|
//#endregion
|
|
27755
27794
|
//#region ../../node_modules/date-fns/startOfDay.js
|
|
27756
|
-
function
|
|
27757
|
-
let n =
|
|
27795
|
+
function Cq(e, t) {
|
|
27796
|
+
let n = hq(e, t?.in);
|
|
27758
27797
|
return n.setHours(0, 0, 0, 0), n;
|
|
27759
27798
|
}
|
|
27760
27799
|
//#endregion
|
|
27761
27800
|
//#region ../../node_modules/date-fns/differenceInCalendarDays.js
|
|
27762
|
-
function
|
|
27763
|
-
let [r, i] =
|
|
27764
|
-
return Math.round((s - c) /
|
|
27801
|
+
function wq(e, t, n) {
|
|
27802
|
+
let [r, i] = Sq(n?.in, e, t), a = Cq(r), o = Cq(i), s = +a - xq(a), c = +o - xq(o);
|
|
27803
|
+
return Math.round((s - c) / dq);
|
|
27765
27804
|
}
|
|
27766
27805
|
//#endregion
|
|
27767
27806
|
//#region ../../node_modules/date-fns/startOfISOWeekYear.js
|
|
27768
|
-
function
|
|
27769
|
-
let n =
|
|
27770
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
27807
|
+
function Tq(e, t) {
|
|
27808
|
+
let n = bq(e, t), r = mq(t?.in || e, 0);
|
|
27809
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), yq(r);
|
|
27771
27810
|
}
|
|
27772
27811
|
//#endregion
|
|
27773
27812
|
//#region ../../node_modules/date-fns/isDate.js
|
|
27774
|
-
function
|
|
27813
|
+
function Eq(e) {
|
|
27775
27814
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
27776
27815
|
}
|
|
27777
27816
|
//#endregion
|
|
27778
27817
|
//#region ../../node_modules/date-fns/isValid.js
|
|
27779
|
-
function
|
|
27780
|
-
return !(!
|
|
27818
|
+
function Dq(e) {
|
|
27819
|
+
return !(!Eq(e) && typeof e != "number" || isNaN(+hq(e)));
|
|
27781
27820
|
}
|
|
27782
27821
|
//#endregion
|
|
27783
27822
|
//#region ../../node_modules/date-fns/startOfYear.js
|
|
27784
|
-
function
|
|
27785
|
-
let n =
|
|
27823
|
+
function Oq(e, t) {
|
|
27824
|
+
let n = hq(e, t?.in);
|
|
27786
27825
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
27787
27826
|
}
|
|
27788
27827
|
//#endregion
|
|
27789
27828
|
//#region ../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
27790
|
-
var
|
|
27829
|
+
var kq = {
|
|
27791
27830
|
lessThanXSeconds: {
|
|
27792
27831
|
one: "less than a second",
|
|
27793
27832
|
other: "less than {{count}} seconds"
|
|
@@ -27849,20 +27888,20 @@ var Dq = {
|
|
|
27849
27888
|
one: "almost 1 year",
|
|
27850
27889
|
other: "almost {{count}} years"
|
|
27851
27890
|
}
|
|
27852
|
-
},
|
|
27853
|
-
let r, i =
|
|
27891
|
+
}, Aq = (e, t, n) => {
|
|
27892
|
+
let r, i = kq[e];
|
|
27854
27893
|
return r = typeof i == "string" ? i : t === 1 ? i.one : i.other.replace("{{count}}", t.toString()), n?.addSuffix ? n.comparison && n.comparison > 0 ? "in " + r : r + " ago" : r;
|
|
27855
27894
|
};
|
|
27856
27895
|
//#endregion
|
|
27857
27896
|
//#region ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
27858
|
-
function
|
|
27897
|
+
function jq(e) {
|
|
27859
27898
|
return (t = {}) => {
|
|
27860
27899
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
27861
27900
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
27862
27901
|
};
|
|
27863
27902
|
}
|
|
27864
|
-
var
|
|
27865
|
-
date:
|
|
27903
|
+
var Mq = {
|
|
27904
|
+
date: jq({
|
|
27866
27905
|
formats: {
|
|
27867
27906
|
full: "EEEE, MMMM do, y",
|
|
27868
27907
|
long: "MMMM do, y",
|
|
@@ -27871,7 +27910,7 @@ var Aq = {
|
|
|
27871
27910
|
},
|
|
27872
27911
|
defaultWidth: "full"
|
|
27873
27912
|
}),
|
|
27874
|
-
time:
|
|
27913
|
+
time: jq({
|
|
27875
27914
|
formats: {
|
|
27876
27915
|
full: "h:mm:ss a zzzz",
|
|
27877
27916
|
long: "h:mm:ss a z",
|
|
@@ -27880,7 +27919,7 @@ var Aq = {
|
|
|
27880
27919
|
},
|
|
27881
27920
|
defaultWidth: "full"
|
|
27882
27921
|
}),
|
|
27883
|
-
dateTime:
|
|
27922
|
+
dateTime: jq({
|
|
27884
27923
|
formats: {
|
|
27885
27924
|
full: "{{date}} 'at' {{time}}",
|
|
27886
27925
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -27889,17 +27928,17 @@ var Aq = {
|
|
|
27889
27928
|
},
|
|
27890
27929
|
defaultWidth: "full"
|
|
27891
27930
|
})
|
|
27892
|
-
},
|
|
27931
|
+
}, Nq = {
|
|
27893
27932
|
lastWeek: "'last' eeee 'at' p",
|
|
27894
27933
|
yesterday: "'yesterday at' p",
|
|
27895
27934
|
today: "'today at' p",
|
|
27896
27935
|
tomorrow: "'tomorrow at' p",
|
|
27897
27936
|
nextWeek: "eeee 'at' p",
|
|
27898
27937
|
other: "P"
|
|
27899
|
-
},
|
|
27938
|
+
}, Pq = (e, t, n, r) => Nq[e];
|
|
27900
27939
|
//#endregion
|
|
27901
27940
|
//#region ../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
27902
|
-
function
|
|
27941
|
+
function Fq(e) {
|
|
27903
27942
|
return (t, n) => {
|
|
27904
27943
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
27905
27944
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -27913,7 +27952,7 @@ function Nq(e) {
|
|
|
27913
27952
|
return i[a];
|
|
27914
27953
|
};
|
|
27915
27954
|
}
|
|
27916
|
-
var
|
|
27955
|
+
var Iq = {
|
|
27917
27956
|
ordinalNumber: (e, t) => {
|
|
27918
27957
|
let n = Number(e), r = n % 100;
|
|
27919
27958
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -27923,7 +27962,7 @@ var Pq = {
|
|
|
27923
27962
|
}
|
|
27924
27963
|
return n + "th";
|
|
27925
27964
|
},
|
|
27926
|
-
era:
|
|
27965
|
+
era: Fq({
|
|
27927
27966
|
values: {
|
|
27928
27967
|
narrow: ["B", "A"],
|
|
27929
27968
|
abbreviated: ["BC", "AD"],
|
|
@@ -27931,7 +27970,7 @@ var Pq = {
|
|
|
27931
27970
|
},
|
|
27932
27971
|
defaultWidth: "wide"
|
|
27933
27972
|
}),
|
|
27934
|
-
quarter:
|
|
27973
|
+
quarter: Fq({
|
|
27935
27974
|
values: {
|
|
27936
27975
|
narrow: [
|
|
27937
27976
|
"1",
|
|
@@ -27955,7 +27994,7 @@ var Pq = {
|
|
|
27955
27994
|
defaultWidth: "wide",
|
|
27956
27995
|
argumentCallback: (e) => e - 1
|
|
27957
27996
|
}),
|
|
27958
|
-
month:
|
|
27997
|
+
month: Fq({
|
|
27959
27998
|
values: {
|
|
27960
27999
|
narrow: [
|
|
27961
28000
|
"J",
|
|
@@ -28002,7 +28041,7 @@ var Pq = {
|
|
|
28002
28041
|
},
|
|
28003
28042
|
defaultWidth: "wide"
|
|
28004
28043
|
}),
|
|
28005
|
-
day:
|
|
28044
|
+
day: Fq({
|
|
28006
28045
|
values: {
|
|
28007
28046
|
narrow: [
|
|
28008
28047
|
"S",
|
|
@@ -28043,7 +28082,7 @@ var Pq = {
|
|
|
28043
28082
|
},
|
|
28044
28083
|
defaultWidth: "wide"
|
|
28045
28084
|
}),
|
|
28046
|
-
dayPeriod:
|
|
28085
|
+
dayPeriod: Fq({
|
|
28047
28086
|
values: {
|
|
28048
28087
|
narrow: {
|
|
28049
28088
|
am: "a",
|
|
@@ -28114,11 +28153,11 @@ var Pq = {
|
|
|
28114
28153
|
};
|
|
28115
28154
|
//#endregion
|
|
28116
28155
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
28117
|
-
function
|
|
28156
|
+
function Lq(e) {
|
|
28118
28157
|
return (t, n = {}) => {
|
|
28119
28158
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
28120
28159
|
if (!a) return null;
|
|
28121
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
28160
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? zq(s, (e) => e.test(o)) : Rq(s, (e) => e.test(o)), l;
|
|
28122
28161
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
28123
28162
|
let u = t.slice(o.length);
|
|
28124
28163
|
return {
|
|
@@ -28127,15 +28166,15 @@ function Fq(e) {
|
|
|
28127
28166
|
};
|
|
28128
28167
|
};
|
|
28129
28168
|
}
|
|
28130
|
-
function
|
|
28169
|
+
function Rq(e, t) {
|
|
28131
28170
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
28132
28171
|
}
|
|
28133
|
-
function
|
|
28172
|
+
function zq(e, t) {
|
|
28134
28173
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
28135
28174
|
}
|
|
28136
28175
|
//#endregion
|
|
28137
28176
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
28138
|
-
function
|
|
28177
|
+
function Bq(e) {
|
|
28139
28178
|
return (t, n = {}) => {
|
|
28140
28179
|
let r = t.match(e.matchPattern);
|
|
28141
28180
|
if (!r) return null;
|
|
@@ -28152,19 +28191,19 @@ function Rq(e) {
|
|
|
28152
28191
|
}
|
|
28153
28192
|
//#endregion
|
|
28154
28193
|
//#region ../../node_modules/date-fns/locale/en-US.js
|
|
28155
|
-
var
|
|
28194
|
+
var Vq = {
|
|
28156
28195
|
code: "en-US",
|
|
28157
|
-
formatDistance:
|
|
28158
|
-
formatLong:
|
|
28159
|
-
formatRelative:
|
|
28160
|
-
localize:
|
|
28196
|
+
formatDistance: Aq,
|
|
28197
|
+
formatLong: Mq,
|
|
28198
|
+
formatRelative: Pq,
|
|
28199
|
+
localize: Iq,
|
|
28161
28200
|
match: {
|
|
28162
|
-
ordinalNumber:
|
|
28201
|
+
ordinalNumber: Bq({
|
|
28163
28202
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
28164
28203
|
parsePattern: /\d+/i,
|
|
28165
28204
|
valueCallback: (e) => parseInt(e, 10)
|
|
28166
28205
|
}),
|
|
28167
|
-
era:
|
|
28206
|
+
era: Lq({
|
|
28168
28207
|
matchPatterns: {
|
|
28169
28208
|
narrow: /^(b|a)/i,
|
|
28170
28209
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
@@ -28174,7 +28213,7 @@ var zq = {
|
|
|
28174
28213
|
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
28175
28214
|
defaultParseWidth: "any"
|
|
28176
28215
|
}),
|
|
28177
|
-
quarter:
|
|
28216
|
+
quarter: Lq({
|
|
28178
28217
|
matchPatterns: {
|
|
28179
28218
|
narrow: /^[1234]/i,
|
|
28180
28219
|
abbreviated: /^q[1234]/i,
|
|
@@ -28190,7 +28229,7 @@ var zq = {
|
|
|
28190
28229
|
defaultParseWidth: "any",
|
|
28191
28230
|
valueCallback: (e) => e + 1
|
|
28192
28231
|
}),
|
|
28193
|
-
month:
|
|
28232
|
+
month: Lq({
|
|
28194
28233
|
matchPatterns: {
|
|
28195
28234
|
narrow: /^[jfmasond]/i,
|
|
28196
28235
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
@@ -28229,7 +28268,7 @@ var zq = {
|
|
|
28229
28268
|
},
|
|
28230
28269
|
defaultParseWidth: "any"
|
|
28231
28270
|
}),
|
|
28232
|
-
day:
|
|
28271
|
+
day: Lq({
|
|
28233
28272
|
matchPatterns: {
|
|
28234
28273
|
narrow: /^[smtwf]/i,
|
|
28235
28274
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
@@ -28259,7 +28298,7 @@ var zq = {
|
|
|
28259
28298
|
},
|
|
28260
28299
|
defaultParseWidth: "any"
|
|
28261
28300
|
}),
|
|
28262
|
-
dayPeriod:
|
|
28301
|
+
dayPeriod: Lq({
|
|
28263
28302
|
matchPatterns: {
|
|
28264
28303
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
28265
28304
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -28285,56 +28324,56 @@ var zq = {
|
|
|
28285
28324
|
};
|
|
28286
28325
|
//#endregion
|
|
28287
28326
|
//#region ../../node_modules/date-fns/getDayOfYear.js
|
|
28288
|
-
function
|
|
28289
|
-
let n =
|
|
28290
|
-
return
|
|
28327
|
+
function Hq(e, t) {
|
|
28328
|
+
let n = hq(e, t?.in);
|
|
28329
|
+
return wq(n, Oq(n)) + 1;
|
|
28291
28330
|
}
|
|
28292
28331
|
//#endregion
|
|
28293
28332
|
//#region ../../node_modules/date-fns/getISOWeek.js
|
|
28294
|
-
function
|
|
28295
|
-
let n =
|
|
28296
|
-
return Math.round(r /
|
|
28333
|
+
function Uq(e, t) {
|
|
28334
|
+
let n = hq(e, t?.in), r = yq(n) - +Tq(n);
|
|
28335
|
+
return Math.round(r / uq) + 1;
|
|
28297
28336
|
}
|
|
28298
28337
|
//#endregion
|
|
28299
28338
|
//#region ../../node_modules/date-fns/getWeekYear.js
|
|
28300
|
-
function
|
|
28301
|
-
let n =
|
|
28339
|
+
function Wq(e, t) {
|
|
28340
|
+
let n = hq(e, t?.in), r = n.getFullYear(), i = _q(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = mq(t?.in || e, 0);
|
|
28302
28341
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
28303
|
-
let s =
|
|
28342
|
+
let s = vq(o, t), c = mq(t?.in || e, 0);
|
|
28304
28343
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
28305
|
-
let l =
|
|
28344
|
+
let l = vq(c, t);
|
|
28306
28345
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
28307
28346
|
}
|
|
28308
28347
|
//#endregion
|
|
28309
28348
|
//#region ../../node_modules/date-fns/startOfWeekYear.js
|
|
28310
|
-
function
|
|
28311
|
-
let n =
|
|
28312
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
28349
|
+
function Gq(e, t) {
|
|
28350
|
+
let n = _q(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Wq(e, t), a = mq(t?.in || e, 0);
|
|
28351
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), vq(a, t);
|
|
28313
28352
|
}
|
|
28314
28353
|
//#endregion
|
|
28315
28354
|
//#region ../../node_modules/date-fns/getWeek.js
|
|
28316
|
-
function
|
|
28317
|
-
let n =
|
|
28318
|
-
return Math.round(r /
|
|
28355
|
+
function Kq(e, t) {
|
|
28356
|
+
let n = hq(e, t?.in), r = vq(n, t) - +Gq(n, t);
|
|
28357
|
+
return Math.round(r / uq) + 1;
|
|
28319
28358
|
}
|
|
28320
28359
|
//#endregion
|
|
28321
28360
|
//#region ../../node_modules/date-fns/_lib/addLeadingZeros.js
|
|
28322
|
-
function
|
|
28361
|
+
function qq(e, t) {
|
|
28323
28362
|
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
28324
28363
|
}
|
|
28325
28364
|
//#endregion
|
|
28326
28365
|
//#region ../../node_modules/date-fns/_lib/format/lightFormatters.js
|
|
28327
|
-
var
|
|
28366
|
+
var Jq = {
|
|
28328
28367
|
y(e, t) {
|
|
28329
28368
|
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
28330
|
-
return
|
|
28369
|
+
return qq(t === "yy" ? r % 100 : r, t.length);
|
|
28331
28370
|
},
|
|
28332
28371
|
M(e, t) {
|
|
28333
28372
|
let n = e.getMonth();
|
|
28334
|
-
return t === "M" ? String(n + 1) :
|
|
28373
|
+
return t === "M" ? String(n + 1) : qq(n + 1, 2);
|
|
28335
28374
|
},
|
|
28336
28375
|
d(e, t) {
|
|
28337
|
-
return
|
|
28376
|
+
return qq(e.getDate(), t.length);
|
|
28338
28377
|
},
|
|
28339
28378
|
a(e, t) {
|
|
28340
28379
|
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
@@ -28347,22 +28386,22 @@ var Kq = {
|
|
|
28347
28386
|
}
|
|
28348
28387
|
},
|
|
28349
28388
|
h(e, t) {
|
|
28350
|
-
return
|
|
28389
|
+
return qq(e.getHours() % 12 || 12, t.length);
|
|
28351
28390
|
},
|
|
28352
28391
|
H(e, t) {
|
|
28353
|
-
return
|
|
28392
|
+
return qq(e.getHours(), t.length);
|
|
28354
28393
|
},
|
|
28355
28394
|
m(e, t) {
|
|
28356
|
-
return
|
|
28395
|
+
return qq(e.getMinutes(), t.length);
|
|
28357
28396
|
},
|
|
28358
28397
|
s(e, t) {
|
|
28359
|
-
return
|
|
28398
|
+
return qq(e.getSeconds(), t.length);
|
|
28360
28399
|
},
|
|
28361
28400
|
S(e, t) {
|
|
28362
28401
|
let n = t.length, r = e.getMilliseconds();
|
|
28363
|
-
return
|
|
28402
|
+
return qq(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
28364
28403
|
}
|
|
28365
|
-
},
|
|
28404
|
+
}, Yq = {
|
|
28366
28405
|
am: "am",
|
|
28367
28406
|
pm: "pm",
|
|
28368
28407
|
midnight: "midnight",
|
|
@@ -28371,7 +28410,7 @@ var Kq = {
|
|
|
28371
28410
|
afternoon: "afternoon",
|
|
28372
28411
|
evening: "evening",
|
|
28373
28412
|
night: "night"
|
|
28374
|
-
},
|
|
28413
|
+
}, Xq = {
|
|
28375
28414
|
G: function(e, t, n) {
|
|
28376
28415
|
let r = +(e.getFullYear() > 0);
|
|
28377
28416
|
switch (t) {
|
|
@@ -28387,23 +28426,23 @@ var Kq = {
|
|
|
28387
28426
|
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
28388
28427
|
return n.ordinalNumber(r, { unit: "year" });
|
|
28389
28428
|
}
|
|
28390
|
-
return
|
|
28429
|
+
return Jq.y(e, t);
|
|
28391
28430
|
},
|
|
28392
28431
|
Y: function(e, t, n, r) {
|
|
28393
|
-
let i =
|
|
28394
|
-
return t === "YY" ?
|
|
28432
|
+
let i = Wq(e, r), a = i > 0 ? i : 1 - i;
|
|
28433
|
+
return t === "YY" ? qq(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : qq(a, t.length);
|
|
28395
28434
|
},
|
|
28396
28435
|
R: function(e, t) {
|
|
28397
|
-
return
|
|
28436
|
+
return qq(bq(e), t.length);
|
|
28398
28437
|
},
|
|
28399
28438
|
u: function(e, t) {
|
|
28400
|
-
return
|
|
28439
|
+
return qq(e.getFullYear(), t.length);
|
|
28401
28440
|
},
|
|
28402
28441
|
Q: function(e, t, n) {
|
|
28403
28442
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
28404
28443
|
switch (t) {
|
|
28405
28444
|
case "Q": return String(r);
|
|
28406
|
-
case "QQ": return
|
|
28445
|
+
case "QQ": return qq(r, 2);
|
|
28407
28446
|
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
28408
28447
|
case "QQQ": return n.quarter(r, {
|
|
28409
28448
|
width: "abbreviated",
|
|
@@ -28423,7 +28462,7 @@ var Kq = {
|
|
|
28423
28462
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
28424
28463
|
switch (t) {
|
|
28425
28464
|
case "q": return String(r);
|
|
28426
|
-
case "qq": return
|
|
28465
|
+
case "qq": return qq(r, 2);
|
|
28427
28466
|
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
28428
28467
|
case "qqq": return n.quarter(r, {
|
|
28429
28468
|
width: "abbreviated",
|
|
@@ -28443,7 +28482,7 @@ var Kq = {
|
|
|
28443
28482
|
let r = e.getMonth();
|
|
28444
28483
|
switch (t) {
|
|
28445
28484
|
case "M":
|
|
28446
|
-
case "MM": return
|
|
28485
|
+
case "MM": return Jq.M(e, t);
|
|
28447
28486
|
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
28448
28487
|
case "MMM": return n.month(r, {
|
|
28449
28488
|
width: "abbreviated",
|
|
@@ -28463,7 +28502,7 @@ var Kq = {
|
|
|
28463
28502
|
let r = e.getMonth();
|
|
28464
28503
|
switch (t) {
|
|
28465
28504
|
case "L": return String(r + 1);
|
|
28466
|
-
case "LL": return
|
|
28505
|
+
case "LL": return qq(r + 1, 2);
|
|
28467
28506
|
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
28468
28507
|
case "LLL": return n.month(r, {
|
|
28469
28508
|
width: "abbreviated",
|
|
@@ -28480,19 +28519,19 @@ var Kq = {
|
|
|
28480
28519
|
}
|
|
28481
28520
|
},
|
|
28482
28521
|
w: function(e, t, n, r) {
|
|
28483
|
-
let i =
|
|
28484
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
28522
|
+
let i = Kq(e, r);
|
|
28523
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : qq(i, t.length);
|
|
28485
28524
|
},
|
|
28486
28525
|
I: function(e, t, n) {
|
|
28487
|
-
let r =
|
|
28488
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
28526
|
+
let r = Uq(e);
|
|
28527
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : qq(r, t.length);
|
|
28489
28528
|
},
|
|
28490
28529
|
d: function(e, t, n) {
|
|
28491
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
28530
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Jq.d(e, t);
|
|
28492
28531
|
},
|
|
28493
28532
|
D: function(e, t, n) {
|
|
28494
|
-
let r =
|
|
28495
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
28533
|
+
let r = Hq(e);
|
|
28534
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : qq(r, t.length);
|
|
28496
28535
|
},
|
|
28497
28536
|
E: function(e, t, n) {
|
|
28498
28537
|
let r = e.getDay();
|
|
@@ -28521,7 +28560,7 @@ var Kq = {
|
|
|
28521
28560
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
28522
28561
|
switch (t) {
|
|
28523
28562
|
case "e": return String(a);
|
|
28524
|
-
case "ee": return
|
|
28563
|
+
case "ee": return qq(a, 2);
|
|
28525
28564
|
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
28526
28565
|
case "eee": return n.day(i, {
|
|
28527
28566
|
width: "abbreviated",
|
|
@@ -28545,7 +28584,7 @@ var Kq = {
|
|
|
28545
28584
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
28546
28585
|
switch (t) {
|
|
28547
28586
|
case "c": return String(a);
|
|
28548
|
-
case "cc": return
|
|
28587
|
+
case "cc": return qq(a, t.length);
|
|
28549
28588
|
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
28550
28589
|
case "ccc": return n.day(i, {
|
|
28551
28590
|
width: "abbreviated",
|
|
@@ -28569,7 +28608,7 @@ var Kq = {
|
|
|
28569
28608
|
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
28570
28609
|
switch (t) {
|
|
28571
28610
|
case "i": return String(i);
|
|
28572
|
-
case "ii": return
|
|
28611
|
+
case "ii": return qq(i, t.length);
|
|
28573
28612
|
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
28574
28613
|
case "iii": return n.day(r, {
|
|
28575
28614
|
width: "abbreviated",
|
|
@@ -28613,7 +28652,7 @@ var Kq = {
|
|
|
28613
28652
|
},
|
|
28614
28653
|
b: function(e, t, n) {
|
|
28615
28654
|
let r = e.getHours(), i;
|
|
28616
|
-
switch (i = r === 12 ?
|
|
28655
|
+
switch (i = r === 12 ? Yq.noon : r === 0 ? Yq.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
28617
28656
|
case "b":
|
|
28618
28657
|
case "bb": return n.dayPeriod(i, {
|
|
28619
28658
|
width: "abbreviated",
|
|
@@ -28635,7 +28674,7 @@ var Kq = {
|
|
|
28635
28674
|
},
|
|
28636
28675
|
B: function(e, t, n) {
|
|
28637
28676
|
let r = e.getHours(), i;
|
|
28638
|
-
switch (i = r >= 17 ?
|
|
28677
|
+
switch (i = r >= 17 ? Yq.evening : r >= 12 ? Yq.afternoon : r >= 4 ? Yq.morning : Yq.night, t) {
|
|
28639
28678
|
case "B":
|
|
28640
28679
|
case "BB":
|
|
28641
28680
|
case "BBB": return n.dayPeriod(i, {
|
|
@@ -28657,45 +28696,45 @@ var Kq = {
|
|
|
28657
28696
|
let t = e.getHours() % 12;
|
|
28658
28697
|
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
28659
28698
|
}
|
|
28660
|
-
return
|
|
28699
|
+
return Jq.h(e, t);
|
|
28661
28700
|
},
|
|
28662
28701
|
H: function(e, t, n) {
|
|
28663
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
28702
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Jq.H(e, t);
|
|
28664
28703
|
},
|
|
28665
28704
|
K: function(e, t, n) {
|
|
28666
28705
|
let r = e.getHours() % 12;
|
|
28667
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
28706
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : qq(r, t.length);
|
|
28668
28707
|
},
|
|
28669
28708
|
k: function(e, t, n) {
|
|
28670
28709
|
let r = e.getHours();
|
|
28671
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
28710
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : qq(r, t.length);
|
|
28672
28711
|
},
|
|
28673
28712
|
m: function(e, t, n) {
|
|
28674
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
28713
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Jq.m(e, t);
|
|
28675
28714
|
},
|
|
28676
28715
|
s: function(e, t, n) {
|
|
28677
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
28716
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Jq.s(e, t);
|
|
28678
28717
|
},
|
|
28679
28718
|
S: function(e, t) {
|
|
28680
|
-
return
|
|
28719
|
+
return Jq.S(e, t);
|
|
28681
28720
|
},
|
|
28682
28721
|
X: function(e, t, n) {
|
|
28683
28722
|
let r = e.getTimezoneOffset();
|
|
28684
28723
|
if (r === 0) return "Z";
|
|
28685
28724
|
switch (t) {
|
|
28686
|
-
case "X": return
|
|
28725
|
+
case "X": return Qq(r);
|
|
28687
28726
|
case "XXXX":
|
|
28688
|
-
case "XX": return
|
|
28689
|
-
default: return
|
|
28727
|
+
case "XX": return $q(r);
|
|
28728
|
+
default: return $q(r, ":");
|
|
28690
28729
|
}
|
|
28691
28730
|
},
|
|
28692
28731
|
x: function(e, t, n) {
|
|
28693
28732
|
let r = e.getTimezoneOffset();
|
|
28694
28733
|
switch (t) {
|
|
28695
|
-
case "x": return
|
|
28734
|
+
case "x": return Qq(r);
|
|
28696
28735
|
case "xxxx":
|
|
28697
|
-
case "xx": return
|
|
28698
|
-
default: return
|
|
28736
|
+
case "xx": return $q(r);
|
|
28737
|
+
default: return $q(r, ":");
|
|
28699
28738
|
}
|
|
28700
28739
|
},
|
|
28701
28740
|
O: function(e, t, n) {
|
|
@@ -28703,8 +28742,8 @@ var Kq = {
|
|
|
28703
28742
|
switch (t) {
|
|
28704
28743
|
case "O":
|
|
28705
28744
|
case "OO":
|
|
28706
|
-
case "OOO": return "GMT" +
|
|
28707
|
-
default: return "GMT" +
|
|
28745
|
+
case "OOO": return "GMT" + Zq(r, ":");
|
|
28746
|
+
default: return "GMT" + $q(r, ":");
|
|
28708
28747
|
}
|
|
28709
28748
|
},
|
|
28710
28749
|
z: function(e, t, n) {
|
|
@@ -28712,49 +28751,49 @@ var Kq = {
|
|
|
28712
28751
|
switch (t) {
|
|
28713
28752
|
case "z":
|
|
28714
28753
|
case "zz":
|
|
28715
|
-
case "zzz": return "GMT" +
|
|
28716
|
-
default: return "GMT" +
|
|
28754
|
+
case "zzz": return "GMT" + Zq(r, ":");
|
|
28755
|
+
default: return "GMT" + $q(r, ":");
|
|
28717
28756
|
}
|
|
28718
28757
|
},
|
|
28719
28758
|
t: function(e, t, n) {
|
|
28720
|
-
return
|
|
28759
|
+
return qq(Math.trunc(e / 1e3), t.length);
|
|
28721
28760
|
},
|
|
28722
28761
|
T: function(e, t, n) {
|
|
28723
|
-
return
|
|
28762
|
+
return qq(+e, t.length);
|
|
28724
28763
|
}
|
|
28725
28764
|
};
|
|
28726
|
-
function
|
|
28765
|
+
function Zq(e, t = "") {
|
|
28727
28766
|
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
28728
|
-
return a === 0 ? n + String(i) : n + String(i) + t +
|
|
28767
|
+
return a === 0 ? n + String(i) : n + String(i) + t + qq(a, 2);
|
|
28729
28768
|
}
|
|
28730
|
-
function
|
|
28731
|
-
return e % 60 == 0 ? (e > 0 ? "-" : "+") +
|
|
28769
|
+
function Qq(e, t) {
|
|
28770
|
+
return e % 60 == 0 ? (e > 0 ? "-" : "+") + qq(Math.abs(e) / 60, 2) : $q(e, t);
|
|
28732
28771
|
}
|
|
28733
|
-
function
|
|
28734
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
28772
|
+
function $q(e, t = "") {
|
|
28773
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = qq(Math.trunc(r / 60), 2), a = qq(r % 60, 2);
|
|
28735
28774
|
return n + i + t + a;
|
|
28736
28775
|
}
|
|
28737
28776
|
//#endregion
|
|
28738
28777
|
//#region ../../node_modules/date-fns/_lib/format/longFormatters.js
|
|
28739
|
-
var
|
|
28778
|
+
var eJ = (e, t) => {
|
|
28740
28779
|
switch (e) {
|
|
28741
28780
|
case "P": return t.date({ width: "short" });
|
|
28742
28781
|
case "PP": return t.date({ width: "medium" });
|
|
28743
28782
|
case "PPP": return t.date({ width: "long" });
|
|
28744
28783
|
default: return t.date({ width: "full" });
|
|
28745
28784
|
}
|
|
28746
|
-
},
|
|
28785
|
+
}, tJ = (e, t) => {
|
|
28747
28786
|
switch (e) {
|
|
28748
28787
|
case "p": return t.time({ width: "short" });
|
|
28749
28788
|
case "pp": return t.time({ width: "medium" });
|
|
28750
28789
|
case "ppp": return t.time({ width: "long" });
|
|
28751
28790
|
default: return t.time({ width: "full" });
|
|
28752
28791
|
}
|
|
28753
|
-
},
|
|
28754
|
-
p:
|
|
28792
|
+
}, nJ = {
|
|
28793
|
+
p: tJ,
|
|
28755
28794
|
P: (e, t) => {
|
|
28756
28795
|
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
28757
|
-
if (!i) return
|
|
28796
|
+
if (!i) return eJ(e, t);
|
|
28758
28797
|
let a;
|
|
28759
28798
|
switch (r) {
|
|
28760
28799
|
case "P":
|
|
@@ -28770,42 +28809,42 @@ var Qq = (e, t) => {
|
|
|
28770
28809
|
a = t.dateTime({ width: "full" });
|
|
28771
28810
|
break;
|
|
28772
28811
|
}
|
|
28773
|
-
return a.replace("{{date}}",
|
|
28812
|
+
return a.replace("{{date}}", eJ(r, t)).replace("{{time}}", tJ(i, t));
|
|
28774
28813
|
}
|
|
28775
|
-
},
|
|
28814
|
+
}, rJ = /^D+$/, iJ = /^Y+$/, aJ = [
|
|
28776
28815
|
"D",
|
|
28777
28816
|
"DD",
|
|
28778
28817
|
"YY",
|
|
28779
28818
|
"YYYY"
|
|
28780
28819
|
];
|
|
28781
|
-
function
|
|
28782
|
-
return
|
|
28820
|
+
function oJ(e) {
|
|
28821
|
+
return rJ.test(e);
|
|
28783
28822
|
}
|
|
28784
|
-
function
|
|
28785
|
-
return
|
|
28823
|
+
function sJ(e) {
|
|
28824
|
+
return iJ.test(e);
|
|
28786
28825
|
}
|
|
28787
|
-
function
|
|
28788
|
-
let r =
|
|
28789
|
-
if (console.warn(r),
|
|
28826
|
+
function cJ(e, t, n) {
|
|
28827
|
+
let r = lJ(e, t, n);
|
|
28828
|
+
if (console.warn(r), aJ.includes(e)) throw RangeError(r);
|
|
28790
28829
|
}
|
|
28791
|
-
function
|
|
28830
|
+
function lJ(e, t, n) {
|
|
28792
28831
|
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
28793
28832
|
return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${r} to the input \`${n}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
|
|
28794
28833
|
}
|
|
28795
28834
|
//#endregion
|
|
28796
28835
|
//#region ../../node_modules/date-fns/format.js
|
|
28797
|
-
var
|
|
28798
|
-
function
|
|
28799
|
-
let r =
|
|
28800
|
-
if (!
|
|
28801
|
-
let c = t.match(
|
|
28836
|
+
var uJ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, dJ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, fJ = /^'([^]*?)'?$/, pJ = /''/g, mJ = /[a-zA-Z]/;
|
|
28837
|
+
function hJ(e, t, n) {
|
|
28838
|
+
let r = _q(), i = n?.locale ?? r.locale ?? Vq, a = n?.firstWeekContainsDate ?? n?.locale?.options?.firstWeekContainsDate ?? r.firstWeekContainsDate ?? r.locale?.options?.firstWeekContainsDate ?? 1, o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? r.weekStartsOn ?? r.locale?.options?.weekStartsOn ?? 0, s = hq(e, n?.in);
|
|
28839
|
+
if (!Dq(s)) throw RangeError("Invalid time value");
|
|
28840
|
+
let c = t.match(dJ).map((e) => {
|
|
28802
28841
|
let t = e[0];
|
|
28803
28842
|
if (t === "p" || t === "P") {
|
|
28804
|
-
let n =
|
|
28843
|
+
let n = nJ[t];
|
|
28805
28844
|
return n(e, i.formatLong);
|
|
28806
28845
|
}
|
|
28807
28846
|
return e;
|
|
28808
|
-
}).join("").match(
|
|
28847
|
+
}).join("").match(uJ).map((e) => {
|
|
28809
28848
|
if (e === "''") return {
|
|
28810
28849
|
isToken: !1,
|
|
28811
28850
|
value: "'"
|
|
@@ -28813,13 +28852,13 @@ function pJ(e, t, n) {
|
|
|
28813
28852
|
let t = e[0];
|
|
28814
28853
|
if (t === "'") return {
|
|
28815
28854
|
isToken: !1,
|
|
28816
|
-
value:
|
|
28855
|
+
value: gJ(e)
|
|
28817
28856
|
};
|
|
28818
|
-
if (
|
|
28857
|
+
if (Xq[t]) return {
|
|
28819
28858
|
isToken: !0,
|
|
28820
28859
|
value: e
|
|
28821
28860
|
};
|
|
28822
|
-
if (t.match(
|
|
28861
|
+
if (t.match(mJ)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
28823
28862
|
return {
|
|
28824
28863
|
isToken: !1,
|
|
28825
28864
|
value: e
|
|
@@ -28834,18 +28873,18 @@ function pJ(e, t, n) {
|
|
|
28834
28873
|
return c.map((r) => {
|
|
28835
28874
|
if (!r.isToken) return r.value;
|
|
28836
28875
|
let a = r.value;
|
|
28837
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
28838
|
-
let o =
|
|
28876
|
+
(!n?.useAdditionalWeekYearTokens && sJ(a) || !n?.useAdditionalDayOfYearTokens && oJ(a)) && cJ(a, t, String(e));
|
|
28877
|
+
let o = Xq[a[0]];
|
|
28839
28878
|
return o(s, a, i.localize, l);
|
|
28840
28879
|
}).join("");
|
|
28841
28880
|
}
|
|
28842
|
-
function
|
|
28843
|
-
let t = e.match(
|
|
28844
|
-
return t ? t[1].replace(
|
|
28881
|
+
function gJ(e) {
|
|
28882
|
+
let t = e.match(fJ);
|
|
28883
|
+
return t ? t[1].replace(pJ, "'") : e;
|
|
28845
28884
|
}
|
|
28846
28885
|
//#endregion
|
|
28847
28886
|
//#region src/composed/DatePicker/DatePicker.tsx
|
|
28848
|
-
function
|
|
28887
|
+
function _J({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disabled: a = !1, dateFormat: o = "PPP", locale: s, className: c, "aria-label": l }) {
|
|
28849
28888
|
let [u, d] = Ye(!1);
|
|
28850
28889
|
return /* @__PURE__ */ G(fB, {
|
|
28851
28890
|
open: u,
|
|
@@ -28861,7 +28900,7 @@ function hJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28861
28900
|
"aria-expanded": u,
|
|
28862
28901
|
"aria-label": l,
|
|
28863
28902
|
className: t("w-full min-w-[9rem] justify-between font-normal", !n && "text-muted-foreground", c),
|
|
28864
|
-
children: [n ?
|
|
28903
|
+
children: [n ? hJ(n, o) : /* @__PURE__ */ W("span", { children: i }), /* @__PURE__ */ W(fe, { "aria-hidden": "true" })]
|
|
28865
28904
|
})
|
|
28866
28905
|
}), /* @__PURE__ */ W(mB, {
|
|
28867
28906
|
className: "w-auto p-0",
|
|
@@ -28878,7 +28917,7 @@ function hJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28878
28917
|
}
|
|
28879
28918
|
//#endregion
|
|
28880
28919
|
//#region src/composed/DatePicker/DateRangePicker.tsx
|
|
28881
|
-
function
|
|
28920
|
+
function vJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disabled: a = !1, dateFormat: o = "LLL dd, y", locale: s, numberOfMonths: c = 2, className: l, "aria-label": u }) {
|
|
28882
28921
|
let [d, f] = Ye(!1);
|
|
28883
28922
|
return /* @__PURE__ */ G(fB, {
|
|
28884
28923
|
open: d,
|
|
@@ -28895,10 +28934,10 @@ function gJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28895
28934
|
"aria-label": u,
|
|
28896
28935
|
className: t("w-full min-w-[15rem] justify-between font-normal", !(n?.from || n?.to) && "text-muted-foreground", l),
|
|
28897
28936
|
children: [n?.from || n?.to ? n.from ? n.to ? /* @__PURE__ */ G(Qe, { children: [
|
|
28898
|
-
|
|
28937
|
+
hJ(n.from, o),
|
|
28899
28938
|
" → ",
|
|
28900
|
-
|
|
28901
|
-
] }) : /* @__PURE__ */ G(Qe, { children: [
|
|
28939
|
+
hJ(n.to, o)
|
|
28940
|
+
] }) : /* @__PURE__ */ G(Qe, { children: [hJ(n.from, o), " → …"] }) : /* @__PURE__ */ G(Qe, { children: ["… → ", hJ(n.to, o)] }) : /* @__PURE__ */ W("span", { children: i }), /* @__PURE__ */ W(fe, { "aria-hidden": "true" })]
|
|
28902
28941
|
})
|
|
28903
28942
|
}), /* @__PURE__ */ W(mB, {
|
|
28904
28943
|
className: "w-auto p-0",
|
|
@@ -28916,10 +28955,10 @@ function gJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28916
28955
|
}
|
|
28917
28956
|
//#endregion
|
|
28918
28957
|
//#region src/composed/DatePicker/date-time.ts
|
|
28919
|
-
function
|
|
28920
|
-
return e ?
|
|
28958
|
+
function yJ(e, t = "00:00:00") {
|
|
28959
|
+
return e ? hJ(e, "HH:mm:ss") : t;
|
|
28921
28960
|
}
|
|
28922
|
-
function
|
|
28961
|
+
function bJ(e, t) {
|
|
28923
28962
|
let [n = "0", r = "0", i = "0"] = t.split(":"), a = Number(n), o = Number(r), s = Number(i);
|
|
28924
28963
|
if (Number.isNaN(a) || Number.isNaN(o) || Number.isNaN(s)) return e;
|
|
28925
28964
|
let c = new Date(e);
|
|
@@ -28927,17 +28966,17 @@ function vJ(e, t) {
|
|
|
28927
28966
|
}
|
|
28928
28967
|
//#endregion
|
|
28929
28968
|
//#region src/composed/DatePicker/DateTimePicker.tsx
|
|
28930
|
-
function
|
|
28969
|
+
function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and time", disabled: a = !1, dateTimeFormat: o = "PP '@' HH:mm:ss", locale: s, className: c, side: l = "bottom", align: u = "start", "aria-label": d }) {
|
|
28931
28970
|
let f = (/* @__PURE__ */ new Date()).getFullYear(), p = new Date(f - 10, 0), m = new Date(f + 10, 11), h = Ue(), _ = e ?? h, [v, y] = Ye(!1);
|
|
28932
28971
|
function b(e) {
|
|
28933
28972
|
if (!e) {
|
|
28934
28973
|
r?.(void 0);
|
|
28935
28974
|
return;
|
|
28936
28975
|
}
|
|
28937
|
-
r?.(
|
|
28976
|
+
r?.(bJ(e, n ? yJ(n) : "00:00:00"));
|
|
28938
28977
|
}
|
|
28939
28978
|
function x(e) {
|
|
28940
|
-
r?.(
|
|
28979
|
+
r?.(bJ(n ?? /* @__PURE__ */ new Date(), e));
|
|
28941
28980
|
}
|
|
28942
28981
|
return /* @__PURE__ */ G(fB, {
|
|
28943
28982
|
open: v,
|
|
@@ -28953,7 +28992,7 @@ function yJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
28953
28992
|
"aria-expanded": v,
|
|
28954
28993
|
"aria-label": d,
|
|
28955
28994
|
className: t("w-full min-w-[13rem] justify-between font-normal", !n && "text-muted-foreground", c),
|
|
28956
|
-
children: [n ?
|
|
28995
|
+
children: [n ? hJ(n, o) : i, /* @__PURE__ */ W(fe, { "aria-hidden": "true" })]
|
|
28957
28996
|
})
|
|
28958
28997
|
}), /* @__PURE__ */ G(mB, {
|
|
28959
28998
|
className: "w-auto overflow-hidden p-0",
|
|
@@ -28980,7 +29019,7 @@ function yJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
28980
29019
|
id: `${_}-time`,
|
|
28981
29020
|
type: "time",
|
|
28982
29021
|
step: "1",
|
|
28983
|
-
value:
|
|
29022
|
+
value: yJ(n),
|
|
28984
29023
|
disabled: a,
|
|
28985
29024
|
onChange: (e) => x(e.target.value),
|
|
28986
29025
|
className: "ml-auto w-32 appearance-none bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
@@ -28992,15 +29031,15 @@ function yJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
28992
29031
|
}
|
|
28993
29032
|
//#endregion
|
|
28994
29033
|
//#region src/composed/DatePicker/DateTimeRangePicker.tsx
|
|
28995
|
-
var
|
|
28996
|
-
function
|
|
28997
|
-
let h = (/* @__PURE__ */ new Date()).getFullYear(), _ = new Date(h - 10, 0), v = new Date(h + 10, 11), y = Ue(), b = e ?? y, [x, S] = Ye(!1), C =
|
|
29034
|
+
var SJ = "00:00:00", CJ = "23:59:59";
|
|
29035
|
+
function wJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and time range", disabled: a = !1, fromLabel: o = "From", toLabel: s = "To", dateTimeFormat: c = "PP '@' HH:mm", locale: l, className: u, side: d = "bottom", align: f = "start", numberOfMonths: p = 2, "aria-label": m }) {
|
|
29036
|
+
let h = (/* @__PURE__ */ new Date()).getFullYear(), _ = new Date(h - 10, 0), v = new Date(h + 10, 11), y = Ue(), b = e ?? y, [x, S] = Ye(!1), C = yJ(n?.from, SJ), w = yJ(n?.to, CJ);
|
|
28998
29037
|
function T(e) {
|
|
28999
29038
|
if (!e) {
|
|
29000
29039
|
r?.(void 0);
|
|
29001
29040
|
return;
|
|
29002
29041
|
}
|
|
29003
|
-
let t = e.from ?
|
|
29042
|
+
let t = e.from ? bJ(e.from, C) : void 0, n = e.to ? bJ(e.to, w) : void 0;
|
|
29004
29043
|
r?.({
|
|
29005
29044
|
from: t,
|
|
29006
29045
|
to: n
|
|
@@ -29009,7 +29048,7 @@ function SJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29009
29048
|
function E(e) {
|
|
29010
29049
|
let t = n?.from ?? /* @__PURE__ */ new Date();
|
|
29011
29050
|
r?.({
|
|
29012
|
-
from:
|
|
29051
|
+
from: bJ(t, e),
|
|
29013
29052
|
to: n?.to
|
|
29014
29053
|
});
|
|
29015
29054
|
}
|
|
@@ -29017,11 +29056,11 @@ function SJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29017
29056
|
let t = n?.to ?? n?.from ?? /* @__PURE__ */ new Date();
|
|
29018
29057
|
r?.({
|
|
29019
29058
|
from: n?.from,
|
|
29020
|
-
to:
|
|
29059
|
+
to: bJ(t, e)
|
|
29021
29060
|
});
|
|
29022
29061
|
}
|
|
29023
29062
|
function O() {
|
|
29024
|
-
return !n?.from && !n?.to ? i : n?.from && n?.to ? `${
|
|
29063
|
+
return !n?.from && !n?.to ? i : n?.from && n?.to ? `${hJ(n.from, c)} → ${hJ(n.to, c)}` : n?.from ? `${hJ(n.from, c)} → …` : n?.to ? `… → ${hJ(n.to, c)}` : i;
|
|
29025
29064
|
}
|
|
29026
29065
|
return /* @__PURE__ */ G(fB, {
|
|
29027
29066
|
open: x,
|
|
@@ -29094,7 +29133,7 @@ function SJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29094
29133
|
}
|
|
29095
29134
|
//#endregion
|
|
29096
29135
|
//#region src/composed/ElCheatSheetTrigger/ElCheatSheetTrigger.tsx
|
|
29097
|
-
var
|
|
29136
|
+
var TJ = [
|
|
29098
29137
|
{
|
|
29099
29138
|
key: "plan-level",
|
|
29100
29139
|
label: "Check Plan Level",
|
|
@@ -29111,7 +29150,7 @@ var CJ = [
|
|
|
29111
29150
|
expression: "{#context.attributes['user-role'] == 'owner'}"
|
|
29112
29151
|
}
|
|
29113
29152
|
];
|
|
29114
|
-
function
|
|
29153
|
+
function EJ({ "data-testid": e } = {}) {
|
|
29115
29154
|
let [t, n] = Ye(null), r = Je(void 0), i = ze((e, t) => {
|
|
29116
29155
|
navigator.clipboard && navigator.clipboard.writeText(t).then(() => {
|
|
29117
29156
|
clearTimeout(r.current), n(e), r.current = setTimeout(() => n(null), 1500);
|
|
@@ -29132,7 +29171,7 @@ function wJ({ "data-testid": e } = {}) {
|
|
|
29132
29171
|
"data-testid": e ? `${e}-content` : void 0,
|
|
29133
29172
|
children: [/* @__PURE__ */ W(gB, { children: /* @__PURE__ */ W(_B, { children: "Expression Language Quick Reference" }) }), /* @__PURE__ */ W("div", {
|
|
29134
29173
|
className: "space-y-2",
|
|
29135
|
-
children:
|
|
29174
|
+
children: TJ.map((n) => /* @__PURE__ */ G("div", {
|
|
29136
29175
|
className: "flex items-start gap-2 rounded-md bg-muted/60 p-2",
|
|
29137
29176
|
children: [/* @__PURE__ */ G("div", {
|
|
29138
29177
|
className: "min-w-0 flex-1",
|
|
@@ -29158,7 +29197,7 @@ function wJ({ "data-testid": e } = {}) {
|
|
|
29158
29197
|
}
|
|
29159
29198
|
//#endregion
|
|
29160
29199
|
//#region src/composed/FacetedFilter/FacetedFilter.tsx
|
|
29161
|
-
function
|
|
29200
|
+
function DJ({ title: e, options: t, selected: n, onChange: r }) {
|
|
29162
29201
|
let i = Ke(() => new Set(n), [n]);
|
|
29163
29202
|
return /* @__PURE__ */ G(fB, { children: [/* @__PURE__ */ W(pB, {
|
|
29164
29203
|
asChild: !0,
|
|
@@ -29200,13 +29239,13 @@ function TJ({ title: e, options: t, selected: n, onChange: r }) {
|
|
|
29200
29239
|
}
|
|
29201
29240
|
//#endregion
|
|
29202
29241
|
//#region src/composed/FileUpload/FileUploadItem.tsx
|
|
29203
|
-
var
|
|
29204
|
-
function
|
|
29242
|
+
var OJ = /\.(json|ya?ml|js|jsx|ts|tsx|html?|css|py|rb|go|rs|sh)$/i;
|
|
29243
|
+
function kJ(e) {
|
|
29205
29244
|
let t = e.type;
|
|
29206
|
-
return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" :
|
|
29245
|
+
return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" : OJ.test(e.name) ? "code" : t === "application/pdf" || t.includes("document") || t.startsWith("text/") ? "document" : "other";
|
|
29207
29246
|
}
|
|
29208
|
-
function
|
|
29209
|
-
switch (
|
|
29247
|
+
function AJ({ className: e, file: t }) {
|
|
29248
|
+
switch (kJ(t)) {
|
|
29210
29249
|
case "audio": return /* @__PURE__ */ W(nt, { className: e });
|
|
29211
29250
|
case "code": return /* @__PURE__ */ W(rt, { className: e });
|
|
29212
29251
|
case "document": return /* @__PURE__ */ W(Ee, { className: e });
|
|
@@ -29215,7 +29254,7 @@ function OJ({ className: e, file: t }) {
|
|
|
29215
29254
|
case "other": return /* @__PURE__ */ W(tt, { className: e });
|
|
29216
29255
|
}
|
|
29217
29256
|
}
|
|
29218
|
-
function
|
|
29257
|
+
function jJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
29219
29258
|
let a = Ue(), o = n.status ?? "idle", s = n.progress !== void 0 && o !== "error";
|
|
29220
29259
|
return /* @__PURE__ */ G(Gz, {
|
|
29221
29260
|
variant: "outline",
|
|
@@ -29228,7 +29267,7 @@ function kJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
|
29228
29267
|
/* @__PURE__ */ W(qz, {
|
|
29229
29268
|
"aria-hidden": "true",
|
|
29230
29269
|
className: "text-muted-foreground",
|
|
29231
|
-
children: /* @__PURE__ */ W(
|
|
29270
|
+
children: /* @__PURE__ */ W(AJ, {
|
|
29232
29271
|
file: n.file,
|
|
29233
29272
|
className: "size-5"
|
|
29234
29273
|
})
|
|
@@ -29279,7 +29318,7 @@ function kJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
|
29279
29318
|
}
|
|
29280
29319
|
//#endregion
|
|
29281
29320
|
//#region src/composed/FileUpload/FileUpload.tsx
|
|
29282
|
-
function
|
|
29321
|
+
function MJ({ className: e, errors: n, invalid: r, items: i, onFileRemove: a, onFilesAdd: o, onFilesReject: s, ...c }) {
|
|
29283
29322
|
let l = H.useRef(null), u = H.useId(), [d, f] = H.useState(""), p = n !== void 0 && n.length > 0, m = (e) => {
|
|
29284
29323
|
e.length === 1 ? f(`Added ${e[0].name}`) : e.length > 1 && f(`Added ${e.length} files`), o?.(e);
|
|
29285
29324
|
}, h = (e) => {
|
|
@@ -29310,7 +29349,7 @@ function AJ({ className: e, errors: n, invalid: r, items: i, onFileRemove: a, on
|
|
|
29310
29349
|
}) : null,
|
|
29311
29350
|
i.length > 0 ? /* @__PURE__ */ W("ul", {
|
|
29312
29351
|
className: "flex flex-col gap-2",
|
|
29313
|
-
children: i.map((e) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(
|
|
29352
|
+
children: i.map((e) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(jJ, {
|
|
29314
29353
|
item: e,
|
|
29315
29354
|
onRemove: g,
|
|
29316
29355
|
"data-file-upload-item-id": e.id
|
|
@@ -29327,7 +29366,7 @@ function AJ({ className: e, errors: n, invalid: r, items: i, onFileRemove: a, on
|
|
|
29327
29366
|
}
|
|
29328
29367
|
//#endregion
|
|
29329
29368
|
//#region src/composed/JsonSchemaForm/utils/readPath.ts
|
|
29330
|
-
function
|
|
29369
|
+
function NJ(e, t) {
|
|
29331
29370
|
if (t === "") return e;
|
|
29332
29371
|
let n = e;
|
|
29333
29372
|
for (let e of t.split(".")) {
|
|
@@ -29338,23 +29377,23 @@ function jJ(e, t) {
|
|
|
29338
29377
|
}
|
|
29339
29378
|
//#endregion
|
|
29340
29379
|
//#region src/composed/JsonSchemaForm/conditional/evalCondition.ts
|
|
29341
|
-
function
|
|
29342
|
-
for (let [n, r] of e.$eq) if (!
|
|
29380
|
+
function PJ(e, t, n) {
|
|
29381
|
+
for (let [n, r] of e.$eq) if (!FJ(t.get(n), r)) return !1;
|
|
29343
29382
|
if (e.$eqContext) {
|
|
29344
|
-
for (let [t, r] of e.$eqContext) if (!NJ(
|
|
29383
|
+
for (let [t, r] of e.$eqContext) if (!FJ(NJ(n, t), r)) return !1;
|
|
29345
29384
|
}
|
|
29346
29385
|
return !0;
|
|
29347
29386
|
}
|
|
29348
|
-
function
|
|
29387
|
+
function FJ(e, t) {
|
|
29349
29388
|
return (Array.isArray(t) ? t : [t]).includes(e);
|
|
29350
29389
|
}
|
|
29351
29390
|
//#endregion
|
|
29352
29391
|
//#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
|
|
29353
|
-
function
|
|
29392
|
+
function IJ({ condition: e, unregisterOnHide: t, children: n }) {
|
|
29354
29393
|
let { control: r, externalContext: i } = b(), a = Ke(() => Array.from(e.$eq.keys()), [e]), o = M({
|
|
29355
29394
|
control: r,
|
|
29356
29395
|
name: a
|
|
29357
|
-
}), s =
|
|
29396
|
+
}), s = PJ(e, Ke(() => {
|
|
29358
29397
|
let e = /* @__PURE__ */ new Map(), t = Array.isArray(o) ? o : [o];
|
|
29359
29398
|
return a.forEach((n, r) => e.set(n, t[r])), e;
|
|
29360
29399
|
}, [a, o]), i);
|
|
@@ -29368,12 +29407,12 @@ function PJ({ condition: e, unregisterOnHide: t, children: n }) {
|
|
|
29368
29407
|
}
|
|
29369
29408
|
//#endregion
|
|
29370
29409
|
//#region src/composed/JsonSchemaForm/conditional/DisabledGate.tsx
|
|
29371
|
-
function
|
|
29410
|
+
function LJ({ condition: e, children: t }) {
|
|
29372
29411
|
let n = b(), r = Ke(() => Array.from(e.$eq.keys()), [e]), i = M({
|
|
29373
29412
|
control: n.control,
|
|
29374
29413
|
name: r
|
|
29375
29414
|
});
|
|
29376
|
-
return
|
|
29415
|
+
return PJ(e, Ke(() => {
|
|
29377
29416
|
let e = /* @__PURE__ */ new Map(), t = Array.isArray(i) ? i : [i];
|
|
29378
29417
|
return r.forEach((n, r) => e.set(n, t[r])), e;
|
|
29379
29418
|
}, [r, i]), n.externalContext) ? /* @__PURE__ */ W(P.Provider, {
|
|
@@ -29386,7 +29425,7 @@ function FJ({ condition: e, children: t }) {
|
|
|
29386
29425
|
}
|
|
29387
29426
|
//#endregion
|
|
29388
29427
|
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
29389
|
-
function
|
|
29428
|
+
function RJ(e, t) {
|
|
29390
29429
|
return e.split(".").map((e, n) => {
|
|
29391
29430
|
let r = t[n];
|
|
29392
29431
|
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
@@ -29394,8 +29433,8 @@ function IJ(e, t) {
|
|
|
29394
29433
|
}
|
|
29395
29434
|
//#endregion
|
|
29396
29435
|
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
29397
|
-
function
|
|
29398
|
-
let n = t === "" ? [] : t.split("."), r = new Map([...e.$eq].map(([e, t]) => [
|
|
29436
|
+
function zJ(e, t) {
|
|
29437
|
+
let n = t === "" ? [] : t.split("."), r = new Map([...e.$eq].map(([e, t]) => [RJ(e, n), t]));
|
|
29399
29438
|
return e.$eqContext ? {
|
|
29400
29439
|
$eq: r,
|
|
29401
29440
|
$eqContext: e.$eqContext
|
|
@@ -29403,7 +29442,7 @@ function LJ(e, t) {
|
|
|
29403
29442
|
}
|
|
29404
29443
|
//#endregion
|
|
29405
29444
|
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
29406
|
-
function
|
|
29445
|
+
function BJ(e, t) {
|
|
29407
29446
|
if (!e) return e;
|
|
29408
29447
|
let n = {};
|
|
29409
29448
|
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
@@ -29411,17 +29450,17 @@ function RJ(e, t) {
|
|
|
29411
29450
|
}
|
|
29412
29451
|
//#endregion
|
|
29413
29452
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
29414
|
-
function
|
|
29415
|
-
return
|
|
29453
|
+
function VJ(e) {
|
|
29454
|
+
return HJ(e);
|
|
29416
29455
|
}
|
|
29417
|
-
function
|
|
29418
|
-
return
|
|
29456
|
+
function HJ(e) {
|
|
29457
|
+
return WJ(UJ({ ...e }));
|
|
29419
29458
|
}
|
|
29420
|
-
function
|
|
29459
|
+
function UJ(e) {
|
|
29421
29460
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
29422
29461
|
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
29423
29462
|
for (let a of e.allOf) {
|
|
29424
|
-
let e =
|
|
29463
|
+
let e = HJ(a);
|
|
29425
29464
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
29426
29465
|
...r,
|
|
29427
29466
|
...e.gioConfig
|
|
@@ -29430,33 +29469,33 @@ function VJ(e) {
|
|
|
29430
29469
|
let a = { ...e };
|
|
29431
29470
|
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;
|
|
29432
29471
|
}
|
|
29433
|
-
function
|
|
29434
|
-
return e.properties &&=
|
|
29472
|
+
function WJ(e) {
|
|
29473
|
+
return e.properties &&= GJ(e.properties, HJ), e.items &&= Array.isArray(e.items) ? e.items.map(HJ) : HJ(e.items), e.oneOf &&= e.oneOf.map(HJ), e.anyOf &&= e.anyOf.map(HJ), e.dependencies &&= BJ(e.dependencies, HJ), e;
|
|
29435
29474
|
}
|
|
29436
|
-
function
|
|
29475
|
+
function GJ(e, t) {
|
|
29437
29476
|
let n = {};
|
|
29438
29477
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
29439
29478
|
return n;
|
|
29440
29479
|
}
|
|
29441
29480
|
//#endregion
|
|
29442
29481
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
29443
|
-
function
|
|
29482
|
+
function KJ(e) {
|
|
29444
29483
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
29445
29484
|
}
|
|
29446
|
-
function
|
|
29485
|
+
function qJ(e) {
|
|
29447
29486
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
29448
29487
|
}
|
|
29449
29488
|
//#endregion
|
|
29450
29489
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
29451
|
-
function
|
|
29452
|
-
return
|
|
29490
|
+
function JJ(e) {
|
|
29491
|
+
return YJ(e, e, []);
|
|
29453
29492
|
}
|
|
29454
|
-
function
|
|
29493
|
+
function YJ(e, t, n) {
|
|
29455
29494
|
if (typeof e.$ref == "string") {
|
|
29456
29495
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
29457
|
-
let r =
|
|
29496
|
+
let r = XJ(t, e.$ref);
|
|
29458
29497
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
29459
|
-
let i =
|
|
29498
|
+
let i = YJ(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
29460
29499
|
...i,
|
|
29461
29500
|
...s
|
|
29462
29501
|
};
|
|
@@ -29468,25 +29507,25 @@ function qJ(e, t, n) {
|
|
|
29468
29507
|
let r = { ...e };
|
|
29469
29508
|
if (r.properties) {
|
|
29470
29509
|
let e = {};
|
|
29471
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
29510
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = YJ(a, t, n);
|
|
29472
29511
|
r.properties = e;
|
|
29473
29512
|
}
|
|
29474
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
29513
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => YJ(e, t, n)) : YJ(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => YJ(e, t, n)), r.anyOf &&= r.anyOf.map((e) => YJ(e, t, n)), r.allOf &&= r.allOf.map((e) => YJ(e, t, n)), r.dependencies &&= BJ(r.dependencies, (e) => YJ(e, t, n)), r.definitions) {
|
|
29475
29514
|
let e = {};
|
|
29476
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
29515
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = YJ(a, t, n);
|
|
29477
29516
|
r.definitions = e;
|
|
29478
29517
|
}
|
|
29479
29518
|
if (r.$defs) {
|
|
29480
29519
|
let e = {};
|
|
29481
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
29520
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = YJ(a, t, n);
|
|
29482
29521
|
r.$defs = e;
|
|
29483
29522
|
}
|
|
29484
29523
|
return r;
|
|
29485
29524
|
}
|
|
29486
|
-
function
|
|
29525
|
+
function XJ(e, t) {
|
|
29487
29526
|
if (t === "#") return e;
|
|
29488
29527
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
29489
|
-
let n = t.slice(2).split("/").map(
|
|
29528
|
+
let n = t.slice(2).split("/").map(qJ), r = e;
|
|
29490
29529
|
for (let e of n) {
|
|
29491
29530
|
if (typeof r != "object" || !r) return;
|
|
29492
29531
|
r = r[e];
|
|
@@ -29495,19 +29534,19 @@ function JJ(e, t) {
|
|
|
29495
29534
|
}
|
|
29496
29535
|
//#endregion
|
|
29497
29536
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
29498
|
-
function
|
|
29537
|
+
function ZJ(e) {
|
|
29499
29538
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
29500
29539
|
}
|
|
29501
|
-
function
|
|
29540
|
+
function QJ(e) {
|
|
29502
29541
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
29503
29542
|
}
|
|
29504
|
-
function
|
|
29543
|
+
function $J(e) {
|
|
29505
29544
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
29506
29545
|
}
|
|
29507
|
-
function
|
|
29546
|
+
function eY(e) {
|
|
29508
29547
|
return e.gioConfig?.uiType === "resource-type";
|
|
29509
29548
|
}
|
|
29510
|
-
function
|
|
29549
|
+
function tY(e) {
|
|
29511
29550
|
let t = e.deprecated;
|
|
29512
29551
|
if (t === !0) return !0;
|
|
29513
29552
|
if (typeof t == "string") {
|
|
@@ -29516,39 +29555,39 @@ function $J(e) {
|
|
|
29516
29555
|
}
|
|
29517
29556
|
return !1;
|
|
29518
29557
|
}
|
|
29519
|
-
function
|
|
29558
|
+
function nY(e) {
|
|
29520
29559
|
return e.format === "gio-code-editor" ? e.type === "string" || Array.isArray(e.type) && e.type.includes("string") : !1;
|
|
29521
29560
|
}
|
|
29522
|
-
function
|
|
29523
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !
|
|
29561
|
+
function rY(e) {
|
|
29562
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !ZJ(e);
|
|
29524
29563
|
}
|
|
29525
|
-
function
|
|
29564
|
+
function iY(e) {
|
|
29526
29565
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
29527
29566
|
}
|
|
29528
29567
|
//#endregion
|
|
29529
29568
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
29530
|
-
function
|
|
29569
|
+
function aY(e) {
|
|
29531
29570
|
let t;
|
|
29532
29571
|
try {
|
|
29533
|
-
t =
|
|
29572
|
+
t = VJ(JJ(e));
|
|
29534
29573
|
} catch {
|
|
29535
29574
|
return;
|
|
29536
29575
|
}
|
|
29537
|
-
return
|
|
29576
|
+
return oY(t);
|
|
29538
29577
|
}
|
|
29539
|
-
function
|
|
29540
|
-
if (
|
|
29578
|
+
function oY(e) {
|
|
29579
|
+
if (tY(e)) return;
|
|
29541
29580
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
29542
29581
|
let t = {};
|
|
29543
29582
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
29544
|
-
let e =
|
|
29583
|
+
let e = oY(r);
|
|
29545
29584
|
e !== void 0 && (t[n] = e);
|
|
29546
29585
|
}
|
|
29547
|
-
let n = (e.oneOf ?? e.anyOf)?.find((e) =>
|
|
29586
|
+
let n = (e.oneOf ?? e.anyOf)?.find((e) => !tY(e));
|
|
29548
29587
|
if (n?.properties) {
|
|
29549
29588
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
29550
29589
|
else if (!(e in t)) {
|
|
29551
|
-
let n =
|
|
29590
|
+
let n = oY(r);
|
|
29552
29591
|
n !== void 0 && (t[e] = n);
|
|
29553
29592
|
}
|
|
29554
29593
|
}
|
|
@@ -29556,7 +29595,7 @@ function iY(e) {
|
|
|
29556
29595
|
}
|
|
29557
29596
|
//#endregion
|
|
29558
29597
|
//#region src/composed/JsonSchemaForm/utils/legendVariant.ts
|
|
29559
|
-
function
|
|
29598
|
+
function sY(e) {
|
|
29560
29599
|
return e > 1 ? { variant: "overline" } : {
|
|
29561
29600
|
variant: "label",
|
|
29562
29601
|
className: "font-semibold"
|
|
@@ -29564,7 +29603,7 @@ function aY(e) {
|
|
|
29564
29603
|
}
|
|
29565
29604
|
//#endregion
|
|
29566
29605
|
//#region src/composed/JsonSchemaForm/fields/array/BlockableButton.tsx
|
|
29567
|
-
function
|
|
29606
|
+
function cY({ reason: e, onClick: n, className: r, ...i }) {
|
|
29568
29607
|
let a = Ue();
|
|
29569
29608
|
return e ? /* @__PURE__ */ W(WH, {
|
|
29570
29609
|
delayDuration: 300,
|
|
@@ -29592,7 +29631,7 @@ function oY({ reason: e, onClick: n, className: r, ...i }) {
|
|
|
29592
29631
|
}
|
|
29593
29632
|
//#endregion
|
|
29594
29633
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
29595
|
-
function
|
|
29634
|
+
function lY(e) {
|
|
29596
29635
|
if (e.default !== void 0) return e.default;
|
|
29597
29636
|
switch (e.type) {
|
|
29598
29637
|
case "string": return "";
|
|
@@ -29607,43 +29646,43 @@ function sY(e) {
|
|
|
29607
29646
|
}
|
|
29608
29647
|
//#endregion
|
|
29609
29648
|
//#region src/composed/JsonSchemaForm/fields/array/itemCount.ts
|
|
29610
|
-
function
|
|
29649
|
+
function uY(e, t) {
|
|
29611
29650
|
return Number.isFinite(t) ? `${e} / ${t}` : String(e);
|
|
29612
29651
|
}
|
|
29613
|
-
function
|
|
29614
|
-
return Number.isFinite(t) ? `${e} of ${t} ${
|
|
29652
|
+
function dY(e, t) {
|
|
29653
|
+
return Number.isFinite(t) ? `${e} of ${t} ${fY(t)}` : `${e} ${fY(e)}`;
|
|
29615
29654
|
}
|
|
29616
|
-
function
|
|
29655
|
+
function fY(e) {
|
|
29617
29656
|
return e === 1 ? "item" : "items";
|
|
29618
29657
|
}
|
|
29619
29658
|
//#endregion
|
|
29620
29659
|
//#region src/composed/JsonSchemaForm/fields/array/itemTitle.ts
|
|
29621
|
-
function
|
|
29660
|
+
function pY(e) {
|
|
29622
29661
|
return (typeof e?.title == "string" ? e.title.trim() : "") || "Item";
|
|
29623
29662
|
}
|
|
29624
|
-
function
|
|
29663
|
+
function mY(e) {
|
|
29625
29664
|
return e.split(" ").map((e) => /^[A-Z0-9]{2,}s?$/.test(e) ? e : e.toLowerCase()).join(" ");
|
|
29626
29665
|
}
|
|
29627
|
-
function
|
|
29628
|
-
return
|
|
29666
|
+
function hY(e) {
|
|
29667
|
+
return mY(pY(e));
|
|
29629
29668
|
}
|
|
29630
29669
|
//#endregion
|
|
29631
29670
|
//#region src/composed/JsonSchemaForm/fields/array/summarizeItem.ts
|
|
29632
|
-
function
|
|
29671
|
+
function gY(e, t) {
|
|
29633
29672
|
let n = t?.properties;
|
|
29634
29673
|
if (!n || typeof e != "object" || !e) return;
|
|
29635
29674
|
let r = e, i = [];
|
|
29636
29675
|
for (let [e, t] of Object.entries(n)) {
|
|
29637
29676
|
let n = r[e];
|
|
29638
29677
|
if (!Array.isArray(n) || n.length === 0) continue;
|
|
29639
|
-
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ?
|
|
29678
|
+
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ? hY(a) : mY(T(t, e));
|
|
29640
29679
|
i.push(`${n.length} ${o}`);
|
|
29641
29680
|
}
|
|
29642
29681
|
return i.length > 0 ? i.join(" · ") : void 0;
|
|
29643
29682
|
}
|
|
29644
29683
|
//#endregion
|
|
29645
29684
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
29646
|
-
function
|
|
29685
|
+
function _Y(e, t) {
|
|
29647
29686
|
let n = b(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = x({
|
|
29648
29687
|
control: n.control,
|
|
29649
29688
|
name: r
|
|
@@ -29663,16 +29702,16 @@ function hY(e, t) {
|
|
|
29663
29702
|
maxItems: u,
|
|
29664
29703
|
atMin: d,
|
|
29665
29704
|
atMax: f,
|
|
29666
|
-
addReason: !c && f ? `Maximum ${u} ${
|
|
29667
|
-
removeReason: !c && d && l > 0 ? `Minimum ${l} ${
|
|
29705
|
+
addReason: !c && f ? `Maximum ${u} ${fY(u)}` : void 0,
|
|
29706
|
+
removeReason: !c && d && l > 0 ? `Minimum ${l} ${fY(l)}` : void 0
|
|
29668
29707
|
};
|
|
29669
29708
|
}
|
|
29670
29709
|
//#endregion
|
|
29671
29710
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
29672
|
-
function
|
|
29673
|
-
let { schema: i } = e, { ctx: a, path: o, fields: s, append: c, remove: l, fieldState: u, isDisabled: d, maxItems: f, addReason: p, removeReason: m } =
|
|
29711
|
+
function vY({ node: e, name: n, depth: r }) {
|
|
29712
|
+
let { schema: i } = e, { ctx: a, path: o, fields: s, append: c, remove: l, fieldState: u, isDisabled: d, maxItems: f, addReason: p, removeReason: m } = _Y(i, n), g = i.items, v = e.items, b = pY(g), x = xY(g), S = T(i, n), w = i.gioConfig?.uiBorder === "full", E = sY(r), D = Je(null), O = !e.rhfPath.split(".").includes("*"), [k, M] = Ye();
|
|
29674
29713
|
function N() {
|
|
29675
|
-
c(
|
|
29714
|
+
c(SY(g), { shouldFocus: !1 }), M(s.length), requestAnimationFrame(() => {
|
|
29676
29715
|
D.current?.lastElementChild?.querySelector("input, select, textarea, [role=combobox], [role=switch], [role=checkbox]")?.focus(), M(void 0);
|
|
29677
29716
|
});
|
|
29678
29717
|
}
|
|
@@ -29688,12 +29727,12 @@ function gY({ node: e, name: n, depth: r }) {
|
|
|
29688
29727
|
variant: "outline",
|
|
29689
29728
|
"aria-hidden": "true",
|
|
29690
29729
|
className: "order-last ml-1.5 align-middle",
|
|
29691
|
-
children:
|
|
29730
|
+
children: uY(s.length, f)
|
|
29692
29731
|
})]
|
|
29693
29732
|
}),
|
|
29694
29733
|
/* @__PURE__ */ W("p", {
|
|
29695
29734
|
className: "sr-only",
|
|
29696
|
-
children:
|
|
29735
|
+
children: dY(s.length, f)
|
|
29697
29736
|
}),
|
|
29698
29737
|
i.description && /* @__PURE__ */ W(C, { children: i.description }),
|
|
29699
29738
|
i.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: i.gioConfig.banner }),
|
|
@@ -29701,13 +29740,13 @@ function gY({ node: e, name: n, depth: r }) {
|
|
|
29701
29740
|
className: "text-sm text-muted-foreground",
|
|
29702
29741
|
children: [
|
|
29703
29742
|
"No ",
|
|
29704
|
-
|
|
29743
|
+
hY(g),
|
|
29705
29744
|
" yet."
|
|
29706
29745
|
]
|
|
29707
29746
|
}) : /* @__PURE__ */ W("div", {
|
|
29708
29747
|
ref: D,
|
|
29709
29748
|
className: t("flex flex-col", x && "gap-2"),
|
|
29710
|
-
children: s.map((e, t) => /* @__PURE__ */ W(
|
|
29749
|
+
children: s.map((e, t) => /* @__PURE__ */ W(yY, {
|
|
29711
29750
|
index: t,
|
|
29712
29751
|
path: o,
|
|
29713
29752
|
itemsNode: v,
|
|
@@ -29723,7 +29762,7 @@ function gY({ node: e, name: n, depth: r }) {
|
|
|
29723
29762
|
}),
|
|
29724
29763
|
/* @__PURE__ */ W("div", {
|
|
29725
29764
|
className: "pt-2",
|
|
29726
|
-
children: /* @__PURE__ */ G(
|
|
29765
|
+
children: /* @__PURE__ */ G(cY, {
|
|
29727
29766
|
reason: p,
|
|
29728
29767
|
disabled: d,
|
|
29729
29768
|
type: "button",
|
|
@@ -29734,7 +29773,7 @@ function gY({ node: e, name: n, depth: r }) {
|
|
|
29734
29773
|
children: [
|
|
29735
29774
|
/* @__PURE__ */ W(Oe, { "aria-hidden": "true" }),
|
|
29736
29775
|
"Add ",
|
|
29737
|
-
|
|
29776
|
+
hY(g)
|
|
29738
29777
|
]
|
|
29739
29778
|
})
|
|
29740
29779
|
}),
|
|
@@ -29745,11 +29784,11 @@ function gY({ node: e, name: n, depth: r }) {
|
|
|
29745
29784
|
]
|
|
29746
29785
|
});
|
|
29747
29786
|
}
|
|
29748
|
-
function
|
|
29787
|
+
function yY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o, defaultOpen: s, disabled: c, removeReason: l, onRemove: u, ctx: d }) {
|
|
29749
29788
|
let f = `${n}.${e}`, p = `${i} ${e + 1}`, m = M({
|
|
29750
29789
|
control: d.control,
|
|
29751
29790
|
name: f
|
|
29752
|
-
}), h = o ? void 0 :
|
|
29791
|
+
}), h = o ? void 0 : gY(m, r?.schema), { errors: g, submitCount: _ } = S({
|
|
29753
29792
|
control: d.control,
|
|
29754
29793
|
name: f
|
|
29755
29794
|
}), y = v(O(g, f)), [b, x] = Ye(s || _ > 0 && y > 0), [C, w] = Ye(_);
|
|
@@ -29760,13 +29799,13 @@ function _Y({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29760
29799
|
basePath: f,
|
|
29761
29800
|
disabled: c
|
|
29762
29801
|
},
|
|
29763
|
-
children: /* @__PURE__ */ W(
|
|
29802
|
+
children: /* @__PURE__ */ W(rX, {
|
|
29764
29803
|
node: r,
|
|
29765
29804
|
name: "",
|
|
29766
29805
|
depth: a + 1,
|
|
29767
29806
|
hiddenTitle: p
|
|
29768
29807
|
})
|
|
29769
|
-
}), D = /* @__PURE__ */ W(
|
|
29808
|
+
}), D = /* @__PURE__ */ W(cY, {
|
|
29770
29809
|
reason: l,
|
|
29771
29810
|
disabled: c,
|
|
29772
29811
|
type: "button",
|
|
@@ -29799,7 +29838,7 @@ function _Y({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29799
29838
|
"aria-label": [
|
|
29800
29839
|
`Toggle ${p}`,
|
|
29801
29840
|
h,
|
|
29802
|
-
T > 0 ?
|
|
29841
|
+
T > 0 ? bY(T) : void 0
|
|
29803
29842
|
].filter(Boolean).join(", "),
|
|
29804
29843
|
children: [
|
|
29805
29844
|
/* @__PURE__ */ W(le, {
|
|
@@ -29828,7 +29867,7 @@ function _Y({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29828
29867
|
"aria-hidden": "true",
|
|
29829
29868
|
"data-icon": "inline-start",
|
|
29830
29869
|
className: "overflow-visible"
|
|
29831
|
-
}),
|
|
29870
|
+
}), bY(T)]
|
|
29832
29871
|
})
|
|
29833
29872
|
]
|
|
29834
29873
|
})
|
|
@@ -29843,28 +29882,28 @@ function _Y({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29843
29882
|
})]
|
|
29844
29883
|
});
|
|
29845
29884
|
}
|
|
29846
|
-
function
|
|
29885
|
+
function bY(e) {
|
|
29847
29886
|
return `${e} ${e === 1 ? "error" : "errors"}`;
|
|
29848
29887
|
}
|
|
29849
|
-
function
|
|
29888
|
+
function xY(e) {
|
|
29850
29889
|
if (Array.isArray(e.enum)) return !0;
|
|
29851
29890
|
let t = Array.isArray(e.type) ? e.type.find((e) => e !== "null") : e.type;
|
|
29852
29891
|
return t === "string" || t === "number" || t === "integer" || t === "boolean";
|
|
29853
29892
|
}
|
|
29854
|
-
function
|
|
29855
|
-
let t =
|
|
29856
|
-
return t === void 0 ?
|
|
29893
|
+
function SY(e) {
|
|
29894
|
+
let t = aY(e);
|
|
29895
|
+
return t === void 0 ? lY(e) : t;
|
|
29857
29896
|
}
|
|
29858
29897
|
//#endregion
|
|
29859
29898
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
29860
|
-
function
|
|
29861
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, maxItems: d, addReason: f, removeReason: p } =
|
|
29899
|
+
function CY({ node: e, name: t, depth: n }) {
|
|
29900
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, maxItems: d, addReason: f, removeReason: p } = _Y(r, t), { testIdPrefix: m } = i, g = r.items, v = g && !Array.isArray(g) ? g.properties ?? {} : {}, b = Object.keys(v), x = T(r, t), S = pY(g);
|
|
29862
29901
|
function w() {
|
|
29863
29902
|
let e = {};
|
|
29864
|
-
for (let t of b) e[t] =
|
|
29903
|
+
for (let t of b) e[t] = lY(v[t]);
|
|
29865
29904
|
s(e, { shouldFocus: !1 });
|
|
29866
29905
|
}
|
|
29867
|
-
let E =
|
|
29906
|
+
let E = sY(n);
|
|
29868
29907
|
return /* @__PURE__ */ G(h, {
|
|
29869
29908
|
"aria-required": r.isRequired || void 0,
|
|
29870
29909
|
children: [
|
|
@@ -29876,12 +29915,12 @@ function xY({ node: e, name: t, depth: n }) {
|
|
|
29876
29915
|
variant: "outline",
|
|
29877
29916
|
"aria-hidden": "true",
|
|
29878
29917
|
className: "order-last ml-1.5 align-middle",
|
|
29879
|
-
children:
|
|
29918
|
+
children: uY(o.length, d)
|
|
29880
29919
|
})]
|
|
29881
29920
|
}),
|
|
29882
29921
|
/* @__PURE__ */ W("p", {
|
|
29883
29922
|
className: "sr-only",
|
|
29884
|
-
children:
|
|
29923
|
+
children: dY(o.length, d)
|
|
29885
29924
|
}),
|
|
29886
29925
|
r.description && /* @__PURE__ */ W(C, { children: r.description }),
|
|
29887
29926
|
r.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: r.gioConfig.banner }),
|
|
@@ -29889,11 +29928,11 @@ function xY({ node: e, name: t, depth: n }) {
|
|
|
29889
29928
|
className: "overflow-hidden rounded-lg border",
|
|
29890
29929
|
children: /* @__PURE__ */ G(fW, { children: [/* @__PURE__ */ W(pW, { children: /* @__PURE__ */ G(gW, { children: [b.map((e) => /* @__PURE__ */ W(_W, {
|
|
29891
29930
|
scope: "col",
|
|
29892
|
-
children:
|
|
29931
|
+
children: EY(v[e], e)
|
|
29893
29932
|
}, e)), /* @__PURE__ */ W(_W, {
|
|
29894
29933
|
"aria-hidden": "true",
|
|
29895
29934
|
className: "w-px"
|
|
29896
|
-
})] }) }), /* @__PURE__ */ W(mW, { children: o.map((e, t) => /* @__PURE__ */ W(
|
|
29935
|
+
})] }) }), /* @__PURE__ */ W(mW, { children: o.map((e, t) => /* @__PURE__ */ W(wY, {
|
|
29897
29936
|
rowIndex: t,
|
|
29898
29937
|
itemTitle: S,
|
|
29899
29938
|
rowPath: `${a}.${t}`,
|
|
@@ -29904,7 +29943,7 @@ function xY({ node: e, name: t, depth: n }) {
|
|
|
29904
29943
|
onRemove: () => c(t)
|
|
29905
29944
|
}, e.id)) })] })
|
|
29906
29945
|
}),
|
|
29907
|
-
/* @__PURE__ */ W("div", { children: /* @__PURE__ */ G(
|
|
29946
|
+
/* @__PURE__ */ W("div", { children: /* @__PURE__ */ G(cY, {
|
|
29908
29947
|
reason: f,
|
|
29909
29948
|
disabled: u,
|
|
29910
29949
|
type: "button",
|
|
@@ -29915,7 +29954,7 @@ function xY({ node: e, name: t, depth: n }) {
|
|
|
29915
29954
|
children: [
|
|
29916
29955
|
/* @__PURE__ */ W(Oe, { "aria-hidden": "true" }),
|
|
29917
29956
|
"Add ",
|
|
29918
|
-
|
|
29957
|
+
hY(g)
|
|
29919
29958
|
]
|
|
29920
29959
|
}) }),
|
|
29921
29960
|
/* @__PURE__ */ W(_, {
|
|
@@ -29925,9 +29964,9 @@ function xY({ node: e, name: t, depth: n }) {
|
|
|
29925
29964
|
]
|
|
29926
29965
|
});
|
|
29927
29966
|
}
|
|
29928
|
-
function
|
|
29967
|
+
function wY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperties: i, disabled: a, removeReason: o, onRemove: s }) {
|
|
29929
29968
|
let { testIdPrefix: c } = b();
|
|
29930
|
-
return /* @__PURE__ */ G(gW, { children: [r.map((t) => /* @__PURE__ */ W(
|
|
29969
|
+
return /* @__PURE__ */ G(gW, { children: [r.map((t) => /* @__PURE__ */ W(TY, {
|
|
29931
29970
|
columnKey: t,
|
|
29932
29971
|
cellPath: `${n}.${t}`,
|
|
29933
29972
|
propSchema: i[t],
|
|
@@ -29935,7 +29974,7 @@ function SY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperti
|
|
|
29935
29974
|
disabled: a
|
|
29936
29975
|
}, t)), /* @__PURE__ */ W(vW, {
|
|
29937
29976
|
className: "w-px",
|
|
29938
|
-
children: /* @__PURE__ */ W(
|
|
29977
|
+
children: /* @__PURE__ */ W(cY, {
|
|
29939
29978
|
reason: o,
|
|
29940
29979
|
disabled: a,
|
|
29941
29980
|
type: "button",
|
|
@@ -29949,7 +29988,7 @@ function SY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperti
|
|
|
29949
29988
|
})
|
|
29950
29989
|
})] });
|
|
29951
29990
|
}
|
|
29952
|
-
function
|
|
29991
|
+
function TY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
29953
29992
|
let { control: a, testIdPrefix: o } = b(), { field: s, fieldState: c } = I({
|
|
29954
29993
|
control: a,
|
|
29955
29994
|
name: t
|
|
@@ -29962,17 +30001,17 @@ function CY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
29962
30001
|
onBlur: u,
|
|
29963
30002
|
disabled: i,
|
|
29964
30003
|
"aria-invalid": c.invalid,
|
|
29965
|
-
"aria-label": `${
|
|
30004
|
+
"aria-label": `${EY(n, e)} for row ${r + 1}`,
|
|
29966
30005
|
"data-testid": A(o, t),
|
|
29967
30006
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
29968
30007
|
}) });
|
|
29969
30008
|
}
|
|
29970
|
-
function
|
|
30009
|
+
function EY(e, t) {
|
|
29971
30010
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
29972
30011
|
}
|
|
29973
30012
|
//#endregion
|
|
29974
30013
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
29975
|
-
function
|
|
30014
|
+
function DY({ node: e, name: t, hiddenTitle: n }) {
|
|
29976
30015
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
29977
30016
|
control: r,
|
|
29978
30017
|
name: c,
|
|
@@ -30005,19 +30044,40 @@ function TY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30005
30044
|
});
|
|
30006
30045
|
}
|
|
30007
30046
|
//#endregion
|
|
30047
|
+
//#region src/composed/JsonSchemaForm/fields/const/ConstField.tsx
|
|
30048
|
+
function OY({ node: e, name: t }) {
|
|
30049
|
+
let { control: n, basePath: r, testIdPrefix: a } = b(), { schema: o } = e, s = t ? r ? `${r}.${t}` : t : r, { field: c, fieldState: l } = I({
|
|
30050
|
+
control: n,
|
|
30051
|
+
name: s
|
|
30052
|
+
}), { value: u, onChange: d } = c, f = o.const;
|
|
30053
|
+
return He(() => {
|
|
30054
|
+
u === void 0 && d(structuredClone(f));
|
|
30055
|
+
}, [
|
|
30056
|
+
u,
|
|
30057
|
+
d,
|
|
30058
|
+
f
|
|
30059
|
+
]), l.error ? /* @__PURE__ */ G(k, {
|
|
30060
|
+
"data-invalid": !0,
|
|
30061
|
+
children: [/* @__PURE__ */ W(i, { children: T(o, t) }), /* @__PURE__ */ W(_, {
|
|
30062
|
+
errors: j(l.error),
|
|
30063
|
+
"data-testid": A(a, s, "error")
|
|
30064
|
+
})]
|
|
30065
|
+
}) : null;
|
|
30066
|
+
}
|
|
30067
|
+
//#endregion
|
|
30008
30068
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
30009
|
-
function
|
|
30069
|
+
function kY(e, t) {
|
|
30010
30070
|
let n = t?.[String(e)];
|
|
30011
30071
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
30012
30072
|
}
|
|
30013
|
-
function
|
|
30073
|
+
function AY(e, t) {
|
|
30014
30074
|
return e.map((e, n) => ({
|
|
30015
30075
|
raw: e,
|
|
30016
30076
|
key: String(n),
|
|
30017
|
-
label:
|
|
30077
|
+
label: kY(e, t)
|
|
30018
30078
|
}));
|
|
30019
30079
|
}
|
|
30020
|
-
function
|
|
30080
|
+
function jY(e) {
|
|
30021
30081
|
return e.map((e, t) => ({
|
|
30022
30082
|
raw: e.const,
|
|
30023
30083
|
key: String(t),
|
|
@@ -30026,12 +30086,12 @@ function OY(e) {
|
|
|
30026
30086
|
}
|
|
30027
30087
|
//#endregion
|
|
30028
30088
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
30029
|
-
function
|
|
30089
|
+
function MY({ node: e, name: t, hiddenTitle: n }) {
|
|
30030
30090
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30031
30091
|
control: r,
|
|
30032
30092
|
name: c,
|
|
30033
30093
|
defaultValue: s.default
|
|
30034
|
-
}), { ref: d, onBlur: f } = l, p = n ?? T(s, t), m = a || s.readOnly === !0, h =
|
|
30094
|
+
}), { ref: d, onBlur: f } = l, p = n ?? T(s, t), m = a || s.readOnly === !0, h = NY(s), g = h.find((e) => Object.is(e.raw, l.value))?.key ?? "", v = (e) => h.find((t) => t.key === e)?.raw;
|
|
30035
30095
|
return /* @__PURE__ */ G(k, {
|
|
30036
30096
|
"data-invalid": u.invalid,
|
|
30037
30097
|
children: [
|
|
@@ -30068,18 +30128,18 @@ function kY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30068
30128
|
]
|
|
30069
30129
|
});
|
|
30070
30130
|
}
|
|
30071
|
-
function
|
|
30072
|
-
return
|
|
30131
|
+
function NY(e) {
|
|
30132
|
+
return ZJ(e) ? jY(e.oneOf ?? []) : AY(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
30073
30133
|
}
|
|
30074
30134
|
//#endregion
|
|
30075
30135
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
30076
|
-
function
|
|
30136
|
+
function PY({ node: e, name: t }) {
|
|
30077
30137
|
let { control: n, basePath: r, disabled: i, testIdPrefix: a } = b(), { schema: o } = e, s = t ? r ? `${r}.${t}` : t : r, { field: c, fieldState: l } = I({
|
|
30078
30138
|
control: n,
|
|
30079
30139
|
name: s,
|
|
30080
30140
|
defaultValue: Array.isArray(o.default) ? o.default : []
|
|
30081
|
-
}), { ref: u, onBlur: d, onChange: f, value: p } = c, m = Cj(), h = T(o, t), g = i || o.readOnly === !0, v = o.items, y =
|
|
30082
|
-
return
|
|
30141
|
+
}), { ref: u, onBlur: d, onChange: f, value: p } = c, m = Cj(), h = T(o, t), g = i || o.readOnly === !0, v = o.items, y = AY(v.enum ?? [], v.gioConfig?.enumLabelMap), x = y.map((e) => e.label), S = (e) => y.find((t) => t.label === e)?.raw, w = (e) => String(S(e)), E = (e) => y.find((t) => Object.is(t.raw, e))?.label, D = (Array.isArray(c.value) ? c.value : []).map((e) => E(e)).filter((e) => e !== void 0);
|
|
30142
|
+
return FY({
|
|
30083
30143
|
schema: o,
|
|
30084
30144
|
options: y,
|
|
30085
30145
|
value: p,
|
|
@@ -30135,19 +30195,19 @@ function jY({ node: e, name: t }) {
|
|
|
30135
30195
|
]
|
|
30136
30196
|
});
|
|
30137
30197
|
}
|
|
30138
|
-
function
|
|
30198
|
+
function FY({ schema: e, options: t, value: n, onReset: r }) {
|
|
30139
30199
|
He(() => {
|
|
30140
30200
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
30141
30201
|
}, [e]);
|
|
30142
30202
|
}
|
|
30143
30203
|
//#endregion
|
|
30144
30204
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
30145
|
-
function
|
|
30205
|
+
function IY() {
|
|
30146
30206
|
return null;
|
|
30147
30207
|
}
|
|
30148
30208
|
//#endregion
|
|
30149
30209
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
30150
|
-
function
|
|
30210
|
+
function LY({ node: e, name: t, hiddenTitle: n }) {
|
|
30151
30211
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30152
30212
|
control: r,
|
|
30153
30213
|
name: c
|
|
@@ -30195,8 +30255,8 @@ function PY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30195
30255
|
}
|
|
30196
30256
|
//#endregion
|
|
30197
30257
|
//#region src/composed/JsonSchemaForm/conditional/useDependencyBranchSync.ts
|
|
30198
|
-
function
|
|
30199
|
-
let i = Ke(() => t.map((e) =>
|
|
30258
|
+
function RY(e, t, n, r) {
|
|
30259
|
+
let i = Ke(() => t.map((e) => zJ(e.showIf, n)), [t, n]), a = Ke(() => t.map((e) => Array.from(e.properties.keys()).map((e) => n ? `${n}.${e}` : e)), [t, n]), o = Ke(() => {
|
|
30200
30260
|
let e = /* @__PURE__ */ new Set();
|
|
30201
30261
|
for (let t of i) for (let n of t.$eq.keys()) e.add(n);
|
|
30202
30262
|
return Array.from(e);
|
|
@@ -30211,7 +30271,7 @@ function FY(e, t, n, r) {
|
|
|
30211
30271
|
o.forEach((e, r) => t.set(e, n[r]));
|
|
30212
30272
|
let l = /* @__PURE__ */ new Set();
|
|
30213
30273
|
i.forEach((e, n) => {
|
|
30214
|
-
if (
|
|
30274
|
+
if (PJ(e, t, r)) for (let e of a[n]) l.add(e);
|
|
30215
30275
|
});
|
|
30216
30276
|
let u = Array.from(l).sort().join("|");
|
|
30217
30277
|
if (u === c.current) return;
|
|
@@ -30228,21 +30288,21 @@ function FY(e, t, n, r) {
|
|
|
30228
30288
|
r
|
|
30229
30289
|
]);
|
|
30230
30290
|
}
|
|
30231
|
-
function
|
|
30291
|
+
function zY({ branches: e, basePath: t }) {
|
|
30232
30292
|
let { control: n, externalContext: r } = b();
|
|
30233
|
-
return
|
|
30293
|
+
return RY(n, e, t, r), null;
|
|
30234
30294
|
}
|
|
30235
30295
|
//#endregion
|
|
30236
30296
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
30237
|
-
function
|
|
30297
|
+
function BY(e, t, n, r) {
|
|
30238
30298
|
if (e.length === 0) return -1;
|
|
30239
30299
|
let i = n?.get(t);
|
|
30240
|
-
return
|
|
30300
|
+
return VY(i, e) && HY(e[i], r) ? i : UY(e, r);
|
|
30241
30301
|
}
|
|
30242
|
-
function
|
|
30302
|
+
function VY(e, t) {
|
|
30243
30303
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
30244
30304
|
}
|
|
30245
|
-
function
|
|
30305
|
+
function HY(e, t) {
|
|
30246
30306
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
30247
30307
|
if (n.const !== void 0) return t(e) === n.const;
|
|
30248
30308
|
if (typeof n.pattern == "string") {
|
|
@@ -30252,18 +30312,18 @@ function zY(e, t) {
|
|
|
30252
30312
|
return !0;
|
|
30253
30313
|
});
|
|
30254
30314
|
}
|
|
30255
|
-
function
|
|
30315
|
+
function UY(e, t) {
|
|
30256
30316
|
let n = 0, r = {
|
|
30257
30317
|
viable: !1,
|
|
30258
30318
|
matches: -1
|
|
30259
30319
|
};
|
|
30260
30320
|
return e.forEach((e, i) => {
|
|
30261
|
-
let a =
|
|
30262
|
-
|
|
30321
|
+
let a = WY(e, t);
|
|
30322
|
+
GY(a, r) > 0 && (n = i, r = a);
|
|
30263
30323
|
}), n;
|
|
30264
30324
|
}
|
|
30265
|
-
function
|
|
30266
|
-
return
|
|
30325
|
+
function WY(e, t) {
|
|
30326
|
+
return HY(e, t) ? {
|
|
30267
30327
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
30268
30328
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
30269
30329
|
} : {
|
|
@@ -30271,13 +30331,13 @@ function VY(e, t) {
|
|
|
30271
30331
|
matches: -1
|
|
30272
30332
|
};
|
|
30273
30333
|
}
|
|
30274
|
-
function
|
|
30334
|
+
function GY(e, t) {
|
|
30275
30335
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
30276
30336
|
}
|
|
30277
30337
|
//#endregion
|
|
30278
30338
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
30279
|
-
function
|
|
30280
|
-
let n = b(), { control: r, index: i, basePath: a, testIdPrefix: o } = n, { schema: s } = e, c = i.variantIndices, l = Ke(() => e.variants ?? [], [e.variants]), [u, d] = Ye(() =>
|
|
30339
|
+
function KY({ node: e, depth: t }) {
|
|
30340
|
+
let n = b(), { control: r, index: i, basePath: a, testIdPrefix: o } = n, { schema: s } = e, c = i.variantIndices, l = Ke(() => e.variants ?? [], [e.variants]), [u, d] = Ye(() => BY(l.map((e) => e.raw), a, c, (e) => r._getWatch(a ? `${a}.${e}` : e))), f = Ke(() => l[u]?.dependencyBranches ?? [], [l, u]);
|
|
30281
30341
|
if (l.length === 0) return null;
|
|
30282
30342
|
let p = l[u] ?? l[0], m = n.disabled || s.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
|
|
30283
30343
|
if (e === u) return;
|
|
@@ -30314,22 +30374,22 @@ function UY({ node: e, depth: t }) {
|
|
|
30314
30374
|
p.raw.description && /* @__PURE__ */ W(C, { children: p.raw.description }),
|
|
30315
30375
|
p.raw.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: p.raw.gioConfig.banner })
|
|
30316
30376
|
] }),
|
|
30317
|
-
p.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(
|
|
30377
|
+
p.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(qY, {
|
|
30318
30378
|
path: a ? `${a}.${e}` : e,
|
|
30319
30379
|
value: t
|
|
30320
30380
|
}, e)),
|
|
30321
|
-
Array.from(p.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(
|
|
30381
|
+
Array.from(p.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(rX, {
|
|
30322
30382
|
node: n,
|
|
30323
30383
|
name: e,
|
|
30324
30384
|
depth: t + 1
|
|
30325
30385
|
}, `${u}-${e}`)),
|
|
30326
|
-
f.length > 0 && /* @__PURE__ */ W(
|
|
30386
|
+
f.length > 0 && /* @__PURE__ */ W(zY, {
|
|
30327
30387
|
branches: f,
|
|
30328
30388
|
basePath: a
|
|
30329
30389
|
}),
|
|
30330
|
-
f.map((e, n) => /* @__PURE__ */ W(
|
|
30331
|
-
condition:
|
|
30332
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(
|
|
30390
|
+
f.map((e, n) => /* @__PURE__ */ W(IJ, {
|
|
30391
|
+
condition: zJ(e.showIf, a),
|
|
30392
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(rX, {
|
|
30333
30393
|
node: n,
|
|
30334
30394
|
name: e,
|
|
30335
30395
|
depth: t + 1
|
|
@@ -30337,7 +30397,7 @@ function UY({ node: e, depth: t }) {
|
|
|
30337
30397
|
}, `${u}-var-dep-${n}`))
|
|
30338
30398
|
] });
|
|
30339
30399
|
}
|
|
30340
|
-
function
|
|
30400
|
+
function qY({ path: e, value: t }) {
|
|
30341
30401
|
let { control: n } = b(), { field: r } = I({
|
|
30342
30402
|
control: n,
|
|
30343
30403
|
name: e
|
|
@@ -30348,36 +30408,36 @@ function WY({ path: e, value: t }) {
|
|
|
30348
30408
|
}
|
|
30349
30409
|
//#endregion
|
|
30350
30410
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
30351
|
-
function
|
|
30352
|
-
let a = b(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c =
|
|
30411
|
+
function JY({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
30412
|
+
let a = b(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c = rY(o) || iY(o), l = Ke(() => e.dependencyBranches ?? [], [e.dependencyBranches]), u = l.length > 0, d = (e.properties || c || u) && /* @__PURE__ */ W(P.Provider, {
|
|
30353
30413
|
value: {
|
|
30354
30414
|
...a,
|
|
30355
30415
|
basePath: s
|
|
30356
30416
|
},
|
|
30357
30417
|
children: /* @__PURE__ */ G(L, { children: [
|
|
30358
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
30418
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(rX, {
|
|
30359
30419
|
node: t,
|
|
30360
30420
|
name: e,
|
|
30361
30421
|
depth: r + 1
|
|
30362
30422
|
}, e)),
|
|
30363
|
-
u && /* @__PURE__ */ W(
|
|
30423
|
+
u && /* @__PURE__ */ W(zY, {
|
|
30364
30424
|
branches: l,
|
|
30365
30425
|
basePath: s
|
|
30366
30426
|
}),
|
|
30367
|
-
l.map((e, t) => /* @__PURE__ */ W(
|
|
30368
|
-
condition:
|
|
30369
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
30427
|
+
l.map((e, t) => /* @__PURE__ */ W(IJ, {
|
|
30428
|
+
condition: zJ(e.showIf, s),
|
|
30429
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(rX, {
|
|
30370
30430
|
node: t,
|
|
30371
30431
|
name: e,
|
|
30372
30432
|
depth: r + 1
|
|
30373
30433
|
}, e))
|
|
30374
30434
|
}, `dep-${t}`)),
|
|
30375
|
-
c && /* @__PURE__ */ W(
|
|
30435
|
+
c && /* @__PURE__ */ W(KY, {
|
|
30376
30436
|
node: e,
|
|
30377
30437
|
depth: r
|
|
30378
30438
|
})
|
|
30379
30439
|
] })
|
|
30380
|
-
}), f = typeof o.title == "string" && o.title.length > 0 || n !== void 0 && n.length > 0, p = o.gioConfig?.uiBorder === "full", m =
|
|
30440
|
+
}), f = typeof o.title == "string" && o.title.length > 0 || n !== void 0 && n.length > 0, p = o.gioConfig?.uiBorder === "full", m = sY(r);
|
|
30381
30441
|
return r === 0 || !f ? /* @__PURE__ */ W(Qe, { children: d }) : /* @__PURE__ */ G(h, {
|
|
30382
30442
|
"aria-label": i,
|
|
30383
30443
|
className: t("min-w-0", p ? t("rounded-lg border border-border px-5 pb-5", i === void 0 ? "pt-2" : "pt-5") : void 0),
|
|
@@ -30396,7 +30456,7 @@ function GY({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
|
30396
30456
|
}
|
|
30397
30457
|
//#endregion
|
|
30398
30458
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
30399
|
-
function
|
|
30459
|
+
function YY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, "data-testid": o, ...s }) {
|
|
30400
30460
|
let [c, l] = Ye(!1);
|
|
30401
30461
|
return /* @__PURE__ */ G($A, {
|
|
30402
30462
|
className: e,
|
|
@@ -30424,15 +30484,15 @@ function KY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
30424
30484
|
})]
|
|
30425
30485
|
});
|
|
30426
30486
|
}
|
|
30427
|
-
|
|
30487
|
+
YY.displayName = "PasswordInput";
|
|
30428
30488
|
//#endregion
|
|
30429
30489
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
30430
|
-
var
|
|
30431
|
-
function
|
|
30490
|
+
var XY = "{#request.headers['x-custom'] == 'value'}";
|
|
30491
|
+
function ZY({ node: n, name: r, hiddenTitle: i }) {
|
|
30432
30492
|
let { control: a, basePath: o, disabled: s, testIdPrefix: c } = b(), { schema: l } = n, u = r ? o ? `${o}.${r}` : r : o, { field: d, fieldState: f } = I({
|
|
30433
30493
|
control: a,
|
|
30434
30494
|
name: u
|
|
30435
|
-
}), p = i ?? T(l, r), m = s || l.readOnly === !0, h = f.invalid, g = typeof d.value == "string" ? d.value : "", v = l.gioConfig?.el === !0, y = (Array.isArray(l.examples) && l.examples[0] !== void 0 && l.examples[0] !== null ? String(l.examples[0]) : void 0) ?? (l.default !== void 0 && l.default !== null ? String(l.default) : void 0) ?? (v ?
|
|
30495
|
+
}), p = i ?? T(l, r), m = s || l.readOnly === !0, h = f.invalid, g = typeof d.value == "string" ? d.value : "", v = l.gioConfig?.el === !0, y = (Array.isArray(l.examples) && l.examples[0] !== void 0 && l.examples[0] !== null ? String(l.examples[0]) : void 0) ?? (l.default !== void 0 && l.default !== null ? String(l.default) : void 0) ?? (v ? XY : void 0), x = v ? "font-mono text-xs" : void 0, S = {
|
|
30436
30496
|
id: u,
|
|
30437
30497
|
value: g,
|
|
30438
30498
|
onChange: d.onChange,
|
|
@@ -30455,13 +30515,13 @@ function JY({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30455
30515
|
required: l.isRequired,
|
|
30456
30516
|
className: i === void 0 ? void 0 : "sr-only",
|
|
30457
30517
|
children: p
|
|
30458
|
-
}), v && /* @__PURE__ */ W(
|
|
30518
|
+
}), v && /* @__PURE__ */ W(EJ, { "data-testid": A(c, u, "el") })]
|
|
30459
30519
|
}),
|
|
30460
30520
|
l.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: l.gioConfig.banner }),
|
|
30461
30521
|
l.format === "text" ? /* @__PURE__ */ W(e, {
|
|
30462
30522
|
...S,
|
|
30463
30523
|
className: x
|
|
30464
|
-
}) : l.format === "password" ? /* @__PURE__ */ W(
|
|
30524
|
+
}) : l.format === "password" ? /* @__PURE__ */ W(YY, {
|
|
30465
30525
|
...S,
|
|
30466
30526
|
pattern: l.pattern
|
|
30467
30527
|
}) : /* @__PURE__ */ W(QA, {
|
|
@@ -30480,23 +30540,23 @@ function JY({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30480
30540
|
}
|
|
30481
30541
|
//#endregion
|
|
30482
30542
|
//#region src/composed/JsonSchemaForm/fields/resource/ResourceTypeField.tsx
|
|
30483
|
-
function
|
|
30484
|
-
let { externalContext: n } = b(), r =
|
|
30485
|
-
return r === null ? /* @__PURE__ */ W(
|
|
30543
|
+
function QY({ node: e, name: t }) {
|
|
30544
|
+
let { externalContext: n } = b(), r = tX(n);
|
|
30545
|
+
return r === null ? /* @__PURE__ */ W(ZY, {
|
|
30486
30546
|
node: e,
|
|
30487
30547
|
name: t
|
|
30488
|
-
}) : /* @__PURE__ */ W(
|
|
30548
|
+
}) : /* @__PURE__ */ W($Y, {
|
|
30489
30549
|
node: e,
|
|
30490
30550
|
name: t,
|
|
30491
30551
|
injected: r
|
|
30492
30552
|
});
|
|
30493
30553
|
}
|
|
30494
|
-
function
|
|
30554
|
+
function $Y({ node: e, name: t, injected: n }) {
|
|
30495
30555
|
let { control: r, basePath: i, disabled: a, testIdPrefix: o } = b(), { schema: s } = e, c = t ? i ? `${i}.${t}` : t : i, { field: l, fieldState: u } = I({
|
|
30496
30556
|
control: r,
|
|
30497
30557
|
name: c,
|
|
30498
30558
|
defaultValue: s.default
|
|
30499
|
-
}), { ref: d, onBlur: f } = l, p =
|
|
30559
|
+
}), { ref: d, onBlur: f } = l, p = eX(s.gioConfig?.uiTypeProps?.resourceType), m = (e) => p.length === 0 || p.some((t) => e.startsWith(t)), h = n.filter((e) => m(e.type)).map((e) => e.name), g = typeof l.value == "string" ? l.value : "";
|
|
30500
30560
|
g !== "" && !h.includes(g) && h.unshift(g);
|
|
30501
30561
|
let v = T(s, t), y = a || s.readOnly === !0, x = h.length === 0 ? "No matching resources on this API" : "Select a resource…";
|
|
30502
30562
|
return /* @__PURE__ */ G(k, {
|
|
@@ -30534,163 +30594,166 @@ function XY({ node: e, name: t, injected: n }) {
|
|
|
30534
30594
|
]
|
|
30535
30595
|
});
|
|
30536
30596
|
}
|
|
30537
|
-
function
|
|
30597
|
+
function eX(e) {
|
|
30538
30598
|
return typeof e == "string" ? [e] : Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
30539
30599
|
}
|
|
30540
|
-
function
|
|
30600
|
+
function tX(e) {
|
|
30541
30601
|
let t = e?.resources;
|
|
30542
30602
|
return Array.isArray(t) ? t.filter((e) => typeof e == "object" && !!e && typeof e.name == "string" && typeof e.type == "string") : null;
|
|
30543
30603
|
}
|
|
30544
30604
|
//#endregion
|
|
30545
30605
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
30546
|
-
var
|
|
30547
|
-
function
|
|
30548
|
-
let { basePath: i } = b(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = Ke(() => [s], [s]), l = Ke(() => e.displayIf ?
|
|
30606
|
+
var nX = Re(() => import("./CodeEditorField-DiY1yxIw.js").then((e) => ({ default: e.CodeEditorField })));
|
|
30607
|
+
function rX({ node: e, name: t, depth: n = 0, hiddenTitle: r }) {
|
|
30608
|
+
let { basePath: i } = b(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = Ke(() => [s], [s]), l = Ke(() => e.displayIf ? zJ(e.displayIf, i) : void 0, [e.displayIf, i]), u = Ke(() => e.disableIf ? zJ(e.disableIf, i) : void 0, [e.disableIf, i]);
|
|
30549
30609
|
if (a.deprecated === !0) return null;
|
|
30550
|
-
let d =
|
|
30551
|
-
return d === null ? null : (u && (d = /* @__PURE__ */ W(
|
|
30610
|
+
let d = iX(e, o, t, n, r);
|
|
30611
|
+
return d === null ? null : (u && (d = /* @__PURE__ */ W(LJ, {
|
|
30552
30612
|
condition: u,
|
|
30553
30613
|
children: d
|
|
30554
|
-
})), l ? /* @__PURE__ */ W(
|
|
30614
|
+
})), l ? /* @__PURE__ */ W(IJ, {
|
|
30555
30615
|
condition: l,
|
|
30556
30616
|
unregisterOnHide: c,
|
|
30557
30617
|
children: d
|
|
30558
30618
|
}) : d);
|
|
30559
30619
|
}
|
|
30560
|
-
function
|
|
30561
|
-
let { schema: a } = e, o =
|
|
30562
|
-
return
|
|
30620
|
+
function iX(e, t, n, r, i) {
|
|
30621
|
+
let { schema: a } = e, o = aX(a.type);
|
|
30622
|
+
return a.const !== void 0 && a.type === void 0 && a.enum === void 0 ? /* @__PURE__ */ W(OY, {
|
|
30623
|
+
node: e,
|
|
30624
|
+
name: t
|
|
30625
|
+
}) : Array.isArray(a.enum) && a.enum.length > 0 || ZJ(a) ? /* @__PURE__ */ W(MY, {
|
|
30563
30626
|
node: e,
|
|
30564
30627
|
name: t,
|
|
30565
30628
|
hiddenTitle: i
|
|
30566
|
-
}) :
|
|
30629
|
+
}) : QJ(a) ? /* @__PURE__ */ W(PY, {
|
|
30567
30630
|
node: e,
|
|
30568
30631
|
name: t
|
|
30569
|
-
}) :
|
|
30632
|
+
}) : $J(a) ? /* @__PURE__ */ W(CY, {
|
|
30570
30633
|
node: e,
|
|
30571
30634
|
name: t,
|
|
30572
30635
|
depth: r
|
|
30573
|
-
}) :
|
|
30636
|
+
}) : nY(a) ? /* @__PURE__ */ W(Pe, {
|
|
30574
30637
|
fallback: null,
|
|
30575
|
-
children: /* @__PURE__ */ W(
|
|
30638
|
+
children: /* @__PURE__ */ W(nX, {
|
|
30576
30639
|
node: e,
|
|
30577
30640
|
name: t
|
|
30578
30641
|
})
|
|
30579
|
-
}) : o === "null" ? /* @__PURE__ */ W(
|
|
30642
|
+
}) : o === "null" ? /* @__PURE__ */ W(IY, {}) : o === "boolean" ? /* @__PURE__ */ W(DY, {
|
|
30580
30643
|
node: e,
|
|
30581
30644
|
name: t,
|
|
30582
30645
|
hiddenTitle: i
|
|
30583
|
-
}) : o === "integer" || o === "number" ? /* @__PURE__ */ W(
|
|
30646
|
+
}) : o === "integer" || o === "number" ? /* @__PURE__ */ W(LY, {
|
|
30584
30647
|
node: e,
|
|
30585
30648
|
name: t,
|
|
30586
30649
|
hiddenTitle: i
|
|
30587
|
-
}) :
|
|
30650
|
+
}) : eY(a) ? /* @__PURE__ */ W(QY, {
|
|
30588
30651
|
node: e,
|
|
30589
30652
|
name: t
|
|
30590
|
-
}) : o === "string" ? /* @__PURE__ */ W(
|
|
30653
|
+
}) : o === "string" ? /* @__PURE__ */ W(ZY, {
|
|
30591
30654
|
node: e,
|
|
30592
30655
|
name: t,
|
|
30593
30656
|
hiddenTitle: i
|
|
30594
|
-
}) : a.properties || o === "object" ||
|
|
30657
|
+
}) : a.properties || o === "object" || rY(a) || iY(a) ? /* @__PURE__ */ W(JY, {
|
|
30595
30658
|
node: e,
|
|
30596
30659
|
name: n,
|
|
30597
30660
|
depth: r,
|
|
30598
30661
|
hiddenTitle: i
|
|
30599
|
-
}) : o === "array" && a.items && !Array.isArray(a.items) ? /* @__PURE__ */ W(
|
|
30662
|
+
}) : o === "array" && a.items && !Array.isArray(a.items) ? /* @__PURE__ */ W(vY, {
|
|
30600
30663
|
node: e,
|
|
30601
30664
|
name: n,
|
|
30602
30665
|
depth: r
|
|
30603
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
30666
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${oX(a)}). Field is omitted.`), null);
|
|
30604
30667
|
}
|
|
30605
|
-
function
|
|
30668
|
+
function aX(e) {
|
|
30606
30669
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
30607
30670
|
}
|
|
30608
|
-
function
|
|
30609
|
-
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" :
|
|
30671
|
+
function oX(e) {
|
|
30672
|
+
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" : "unknown";
|
|
30610
30673
|
}
|
|
30611
30674
|
//#endregion
|
|
30612
30675
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
30613
|
-
function
|
|
30614
|
-
return
|
|
30676
|
+
function sX(e) {
|
|
30677
|
+
return cX(e);
|
|
30615
30678
|
}
|
|
30616
|
-
function
|
|
30679
|
+
function cX(e) {
|
|
30617
30680
|
let t = { ...e };
|
|
30618
30681
|
if (t.properties) {
|
|
30619
30682
|
let e = new Set(t.required ?? []), n = {};
|
|
30620
30683
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
30621
|
-
let t =
|
|
30684
|
+
let t = cX(i);
|
|
30622
30685
|
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;
|
|
30623
30686
|
}
|
|
30624
30687
|
t.properties = n;
|
|
30625
30688
|
}
|
|
30626
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
30689
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(cX) : cX(t.items), t.oneOf &&= t.oneOf.map(cX), t.anyOf &&= t.anyOf.map(cX), t.allOf &&= t.allOf.map(cX), t.dependencies &&= BJ(t.dependencies, cX), t;
|
|
30627
30690
|
}
|
|
30628
30691
|
//#endregion
|
|
30629
30692
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
30630
|
-
function
|
|
30631
|
-
if (
|
|
30693
|
+
function lX(e) {
|
|
30694
|
+
if (tY(e)) return { deprecated: !0 };
|
|
30632
30695
|
let t = { ...e };
|
|
30633
30696
|
if (e.properties) {
|
|
30634
30697
|
let n = [];
|
|
30635
30698
|
t.properties = {};
|
|
30636
|
-
for (let [r, i] of Object.entries(e.properties))
|
|
30699
|
+
for (let [r, i] of Object.entries(e.properties)) tY(i) && n.push(r), t.properties[r] = lX(i);
|
|
30637
30700
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
30638
30701
|
}
|
|
30639
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
30702
|
+
return e.items && !Array.isArray(e.items) && (t.items = lX(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => !tY(e)).map(lX)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => !tY(e)).map(lX)), e.dependencies && (t.dependencies = BJ(e.dependencies, lX)), t;
|
|
30640
30703
|
}
|
|
30641
30704
|
//#endregion
|
|
30642
30705
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
30643
|
-
function
|
|
30644
|
-
let n =
|
|
30706
|
+
function uX(e, t = "") {
|
|
30707
|
+
let n = sX(lX(VJ(JJ(e)))), r = /* @__PURE__ */ new Map();
|
|
30645
30708
|
return {
|
|
30646
|
-
root:
|
|
30709
|
+
root: dX(n, "", !1, r, "", t),
|
|
30647
30710
|
nodeByPath: r,
|
|
30648
30711
|
variantIndices: /* @__PURE__ */ new Map()
|
|
30649
30712
|
};
|
|
30650
30713
|
}
|
|
30651
|
-
function
|
|
30714
|
+
function dX(e, t, n, r, i = "", a = "") {
|
|
30652
30715
|
let o = {
|
|
30653
30716
|
rhfPath: t,
|
|
30654
30717
|
schema: e,
|
|
30655
30718
|
isRequired: n
|
|
30656
30719
|
};
|
|
30657
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
30720
|
+
if (e.gioConfig?.displayIf && (o.displayIf = gX(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = gX(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
30658
30721
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
30659
30722
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
30660
30723
|
let e = t ? `${t}.${o}` : o;
|
|
30661
|
-
i.set(o,
|
|
30724
|
+
i.set(o, dX(s, e, n.has(o), r, t, a));
|
|
30662
30725
|
}
|
|
30663
30726
|
o.properties = i;
|
|
30664
30727
|
}
|
|
30665
30728
|
if (e.items && !Array.isArray(e.items)) {
|
|
30666
30729
|
let n = t ? `${t}.*` : "*";
|
|
30667
|
-
o.items =
|
|
30730
|
+
o.items = dX(e.items, n, !1, r, t, a);
|
|
30668
30731
|
}
|
|
30669
30732
|
let s = e.oneOf ?? e.anyOf;
|
|
30670
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
30671
|
-
let n =
|
|
30733
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = fX(s).map((e) => pX(e, t, a))), e.dependencies) {
|
|
30734
|
+
let n = vX(e.dependencies, t, a);
|
|
30672
30735
|
n.length > 0 && (o.dependencyBranches = n);
|
|
30673
30736
|
}
|
|
30674
30737
|
return r.set(t, o), o;
|
|
30675
30738
|
}
|
|
30676
|
-
function
|
|
30739
|
+
function fX(e) {
|
|
30677
30740
|
let t = /* @__PURE__ */ new Set();
|
|
30678
30741
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
30679
30742
|
}
|
|
30680
|
-
function
|
|
30743
|
+
function pX(e, t, n) {
|
|
30681
30744
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
30682
30745
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
30683
|
-
let e =
|
|
30746
|
+
let e = mX(s);
|
|
30684
30747
|
e && a.push({
|
|
30685
30748
|
key: o,
|
|
30686
30749
|
value: e.value
|
|
30687
30750
|
});
|
|
30688
30751
|
let c = t ? `${t}.${o}` : o;
|
|
30689
|
-
i.set(o,
|
|
30752
|
+
i.set(o, hX(s, c, r.has(o), t, n));
|
|
30690
30753
|
}
|
|
30691
30754
|
let o;
|
|
30692
30755
|
if (e.dependencies) {
|
|
30693
|
-
let r =
|
|
30756
|
+
let r = vX(e.dependencies, t, n);
|
|
30694
30757
|
r.length > 0 && (o = r);
|
|
30695
30758
|
}
|
|
30696
30759
|
return {
|
|
@@ -30700,21 +30763,21 @@ function uX(e, t, n) {
|
|
|
30700
30763
|
raw: e
|
|
30701
30764
|
};
|
|
30702
30765
|
}
|
|
30703
|
-
function
|
|
30766
|
+
function mX(e) {
|
|
30704
30767
|
if (e.const !== void 0) return { value: e.const };
|
|
30705
30768
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
30706
30769
|
}
|
|
30707
|
-
function
|
|
30708
|
-
return
|
|
30770
|
+
function hX(e, t, n, r, i) {
|
|
30771
|
+
return dX(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
30709
30772
|
}
|
|
30710
|
-
function
|
|
30773
|
+
function gX(e, t, n) {
|
|
30711
30774
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
30712
30775
|
for (let [a, o] of Object.entries(e.$eq)) {
|
|
30713
30776
|
if (a.startsWith("context.")) {
|
|
30714
30777
|
i.set(a.slice(8), o);
|
|
30715
30778
|
continue;
|
|
30716
30779
|
}
|
|
30717
|
-
let e =
|
|
30780
|
+
let e = _X(a, t, n);
|
|
30718
30781
|
if (e === null) {
|
|
30719
30782
|
console.warn(`[JsonSchemaForm] gioConfig path "${a}" is unsupported (expected value.X / ./X / ../X / context.X).`);
|
|
30720
30783
|
continue;
|
|
@@ -30726,7 +30789,7 @@ function pX(e, t, n) {
|
|
|
30726
30789
|
$eqContext: i
|
|
30727
30790
|
} : { $eq: r };
|
|
30728
30791
|
}
|
|
30729
|
-
function
|
|
30792
|
+
function _X(e, t, n) {
|
|
30730
30793
|
let r = null;
|
|
30731
30794
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
30732
30795
|
else if (e.startsWith("./")) {
|
|
@@ -30740,24 +30803,24 @@ function mX(e, t, n) {
|
|
|
30740
30803
|
}
|
|
30741
30804
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
30742
30805
|
}
|
|
30743
|
-
function
|
|
30806
|
+
function vX(e, t, n) {
|
|
30744
30807
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
30745
|
-
let i =
|
|
30808
|
+
let i = yX(e, r);
|
|
30746
30809
|
if (!i) return [];
|
|
30747
30810
|
let a = t ? `${t}.${e}` : e;
|
|
30748
|
-
return i.map((r) =>
|
|
30811
|
+
return i.map((r) => bX(r, e, a, t, n));
|
|
30749
30812
|
});
|
|
30750
30813
|
}
|
|
30751
|
-
function
|
|
30814
|
+
function yX(e, t) {
|
|
30752
30815
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
30753
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
30816
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && mX(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);
|
|
30754
30817
|
}
|
|
30755
|
-
function
|
|
30756
|
-
let a =
|
|
30818
|
+
function bX(e, t, n, r, i) {
|
|
30819
|
+
let a = mX(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
30757
30820
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
30758
30821
|
if (n === t) continue;
|
|
30759
30822
|
let e = r ? `${r}.${n}` : n;
|
|
30760
|
-
s.set(n,
|
|
30823
|
+
s.set(n, hX(a, e, o.has(n), r, i));
|
|
30761
30824
|
}
|
|
30762
30825
|
let c = i ? `${i}.${n}` : n;
|
|
30763
30826
|
return {
|
|
@@ -30768,12 +30831,12 @@ function _X(e, t, n, r, i) {
|
|
|
30768
30831
|
}
|
|
30769
30832
|
//#endregion
|
|
30770
30833
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
30771
|
-
function
|
|
30834
|
+
function xX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i, "data-testid": a }) {
|
|
30772
30835
|
let o = Ke(() => {
|
|
30773
30836
|
try {
|
|
30774
30837
|
return {
|
|
30775
30838
|
ok: !0,
|
|
30776
|
-
value:
|
|
30839
|
+
value: uX(e, n)
|
|
30777
30840
|
};
|
|
30778
30841
|
} catch (e) {
|
|
30779
30842
|
return {
|
|
@@ -30804,7 +30867,7 @@ function vX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i,
|
|
|
30804
30867
|
]);
|
|
30805
30868
|
return s.ok ? /* @__PURE__ */ W(P.Provider, {
|
|
30806
30869
|
value: s.contextValue,
|
|
30807
|
-
children: /* @__PURE__ */ W(
|
|
30870
|
+
children: /* @__PURE__ */ W(rX, { node: s.contextValue.index.root })
|
|
30808
30871
|
}) : /* @__PURE__ */ G("p", {
|
|
30809
30872
|
role: "alert",
|
|
30810
30873
|
className: "text-sm text-destructive",
|
|
@@ -30814,7 +30877,7 @@ function vX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i,
|
|
|
30814
30877
|
}
|
|
30815
30878
|
//#endregion
|
|
30816
30879
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
30817
|
-
function
|
|
30880
|
+
function SX(...e) {
|
|
30818
30881
|
return async (t, n, r) => {
|
|
30819
30882
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
30820
30883
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -30829,7 +30892,7 @@ function yX(...e) {
|
|
|
30829
30892
|
}
|
|
30830
30893
|
//#endregion
|
|
30831
30894
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
30832
|
-
var
|
|
30895
|
+
var CX = /* @__PURE__ */ K(((e) => {
|
|
30833
30896
|
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;
|
|
30834
30897
|
var t = class {};
|
|
30835
30898
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -30934,9 +30997,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
30934
30997
|
return new r(e.toString());
|
|
30935
30998
|
}
|
|
30936
30999
|
e.regexpCode = g;
|
|
30937
|
-
})),
|
|
31000
|
+
})), wX = /* @__PURE__ */ K(((e) => {
|
|
30938
31001
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
30939
|
-
var t =
|
|
31002
|
+
var t = CX(), n = class extends Error {
|
|
30940
31003
|
constructor(e) {
|
|
30941
31004
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
30942
31005
|
}
|
|
@@ -31045,9 +31108,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31045
31108
|
return c;
|
|
31046
31109
|
}
|
|
31047
31110
|
};
|
|
31048
|
-
})),
|
|
31111
|
+
})), TX = /* @__PURE__ */ K(((e) => {
|
|
31049
31112
|
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;
|
|
31050
|
-
var t =
|
|
31113
|
+
var t = CX(), n = wX(), r = CX();
|
|
31051
31114
|
Object.defineProperty(e, "_", {
|
|
31052
31115
|
enumerable: !0,
|
|
31053
31116
|
get: function() {
|
|
@@ -31089,7 +31152,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31089
31152
|
return r.Name;
|
|
31090
31153
|
}
|
|
31091
31154
|
});
|
|
31092
|
-
var i =
|
|
31155
|
+
var i = wX();
|
|
31093
31156
|
Object.defineProperty(e, "Scope", {
|
|
31094
31157
|
enumerable: !0,
|
|
31095
31158
|
get: function() {
|
|
@@ -31560,9 +31623,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31560
31623
|
function L(e) {
|
|
31561
31624
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
31562
31625
|
}
|
|
31563
|
-
})),
|
|
31626
|
+
})), EX = /* @__PURE__ */ K(((e) => {
|
|
31564
31627
|
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;
|
|
31565
|
-
var t =
|
|
31628
|
+
var t = TX(), n = CX();
|
|
31566
31629
|
function r(e) {
|
|
31567
31630
|
let t = {};
|
|
31568
31631
|
for (let n of e) t[n] = !0;
|
|
@@ -31685,9 +31748,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31685
31748
|
}
|
|
31686
31749
|
}
|
|
31687
31750
|
e.checkStrictMode = x;
|
|
31688
|
-
})),
|
|
31751
|
+
})), DX = /* @__PURE__ */ K(((e) => {
|
|
31689
31752
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
31690
|
-
var t =
|
|
31753
|
+
var t = TX();
|
|
31691
31754
|
e.default = {
|
|
31692
31755
|
data: new t.Name("data"),
|
|
31693
31756
|
valCxt: new t.Name("valCxt"),
|
|
@@ -31706,9 +31769,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31706
31769
|
jsonLen: new t.Name("jsonLen"),
|
|
31707
31770
|
jsonPart: new t.Name("jsonPart")
|
|
31708
31771
|
};
|
|
31709
|
-
})),
|
|
31772
|
+
})), OX = /* @__PURE__ */ K(((e) => {
|
|
31710
31773
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
31711
|
-
var t =
|
|
31774
|
+
var t = TX(), n = EX(), r = DX();
|
|
31712
31775
|
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)` };
|
|
31713
31776
|
function i(n, r = e.keywordError, i, a) {
|
|
31714
31777
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -31770,9 +31833,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31770
31833
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
31771
31834
|
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]);
|
|
31772
31835
|
}
|
|
31773
|
-
})),
|
|
31836
|
+
})), kX = /* @__PURE__ */ K(((e) => {
|
|
31774
31837
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
31775
|
-
var t =
|
|
31838
|
+
var t = OX(), n = TX(), r = DX(), i = { message: "boolean schema is false" };
|
|
31776
31839
|
function a(e) {
|
|
31777
31840
|
let { gen: t, schema: i, validateName: a } = e;
|
|
31778
31841
|
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));
|
|
@@ -31796,7 +31859,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31796
31859
|
};
|
|
31797
31860
|
(0, t.reportError)(o, i, void 0, n);
|
|
31798
31861
|
}
|
|
31799
|
-
})),
|
|
31862
|
+
})), AX = /* @__PURE__ */ K(((e) => {
|
|
31800
31863
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
31801
31864
|
var t = new Set([
|
|
31802
31865
|
"string",
|
|
@@ -31850,7 +31913,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31850
31913
|
};
|
|
31851
31914
|
}
|
|
31852
31915
|
e.getRules = r;
|
|
31853
|
-
})),
|
|
31916
|
+
})), jX = /* @__PURE__ */ K(((e) => {
|
|
31854
31917
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
31855
31918
|
function t({ schema: e, self: t }, r) {
|
|
31856
31919
|
let i = t.RULES.types[r];
|
|
@@ -31865,9 +31928,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
31865
31928
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
31866
31929
|
}
|
|
31867
31930
|
e.shouldUseRule = r;
|
|
31868
|
-
})),
|
|
31931
|
+
})), MX = /* @__PURE__ */ K(((e) => {
|
|
31869
31932
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
31870
|
-
var t =
|
|
31933
|
+
var t = AX(), n = jX(), r = OX(), i = TX(), a = EX(), o;
|
|
31871
31934
|
(function(e) {
|
|
31872
31935
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
31873
31936
|
})(o || (e.DataType = o = {}));
|
|
@@ -32002,9 +32065,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32002
32065
|
it: e
|
|
32003
32066
|
};
|
|
32004
32067
|
}
|
|
32005
|
-
})),
|
|
32068
|
+
})), NX = /* @__PURE__ */ K(((e) => {
|
|
32006
32069
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
32007
|
-
var t =
|
|
32070
|
+
var t = TX(), n = EX();
|
|
32008
32071
|
function r(e, t) {
|
|
32009
32072
|
let { properties: n, items: r } = e.schema;
|
|
32010
32073
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -32022,9 +32085,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32022
32085
|
let u = (0, t._)`${l} === undefined`;
|
|
32023
32086
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
32024
32087
|
}
|
|
32025
|
-
})),
|
|
32088
|
+
})), PX = /* @__PURE__ */ K(((e) => {
|
|
32026
32089
|
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;
|
|
32027
|
-
var t =
|
|
32090
|
+
var t = TX(), n = EX(), r = DX(), i = EX();
|
|
32028
32091
|
function a(e, n) {
|
|
32029
32092
|
let { gen: r, data: i, it: a } = e;
|
|
32030
32093
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -32126,9 +32189,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32126
32189
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
32127
32190
|
}
|
|
32128
32191
|
e.validateUnion = v;
|
|
32129
|
-
})),
|
|
32192
|
+
})), FX = /* @__PURE__ */ K(((e) => {
|
|
32130
32193
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
32131
|
-
var t =
|
|
32194
|
+
var t = TX(), n = DX(), r = PX(), i = OX();
|
|
32132
32195
|
function a(e, n) {
|
|
32133
32196
|
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);
|
|
32134
32197
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -32207,9 +32270,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32207
32270
|
}
|
|
32208
32271
|
}
|
|
32209
32272
|
e.validateKeywordUsage = f;
|
|
32210
|
-
})),
|
|
32273
|
+
})), IX = /* @__PURE__ */ K(((e) => {
|
|
32211
32274
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
32212
|
-
var t =
|
|
32275
|
+
var t = TX(), n = EX();
|
|
32213
32276
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
32214
32277
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
32215
32278
|
if (r !== void 0) {
|
|
@@ -32253,7 +32316,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32253
32316
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
32254
32317
|
}
|
|
32255
32318
|
e.extendSubschemaMode = a;
|
|
32256
|
-
})),
|
|
32319
|
+
})), LX = /* @__PURE__ */ K(((e, t) => {
|
|
32257
32320
|
t.exports = function e(t, n) {
|
|
32258
32321
|
if (t === n) return !0;
|
|
32259
32322
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -32277,7 +32340,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32277
32340
|
}
|
|
32278
32341
|
return t !== t && n !== n;
|
|
32279
32342
|
};
|
|
32280
|
-
})),
|
|
32343
|
+
})), RX = /* @__PURE__ */ K(((e, t) => {
|
|
32281
32344
|
var n = t.exports = function(e, t, n) {
|
|
32282
32345
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
32283
32346
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -32340,9 +32403,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32340
32403
|
function i(e) {
|
|
32341
32404
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
32342
32405
|
}
|
|
32343
|
-
})),
|
|
32406
|
+
})), zX = /* @__PURE__ */ K(((e) => {
|
|
32344
32407
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
32345
|
-
var t =
|
|
32408
|
+
var t = EX(), n = LX(), r = RX(), i = new Set([
|
|
32346
32409
|
"type",
|
|
32347
32410
|
"format",
|
|
32348
32411
|
"pattern",
|
|
@@ -32431,9 +32494,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32431
32494
|
}
|
|
32432
32495
|
}
|
|
32433
32496
|
e.getSchemaRefs = h;
|
|
32434
|
-
})),
|
|
32497
|
+
})), BX = /* @__PURE__ */ K(((e) => {
|
|
32435
32498
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
32436
|
-
var t =
|
|
32499
|
+
var t = kX(), n = MX(), r = jX(), i = MX(), a = NX(), o = FX(), s = IX(), c = TX(), l = DX(), u = zX(), d = EX(), f = OX();
|
|
32437
32500
|
function p(e) {
|
|
32438
32501
|
if (S(e) && (w(e), x(e))) {
|
|
32439
32502
|
_(e);
|
|
@@ -32723,23 +32786,23 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32723
32786
|
}
|
|
32724
32787
|
}
|
|
32725
32788
|
e.getData = se;
|
|
32726
|
-
})),
|
|
32789
|
+
})), VX = /* @__PURE__ */ K(((e) => {
|
|
32727
32790
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
32728
32791
|
constructor(e) {
|
|
32729
32792
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
32730
32793
|
}
|
|
32731
32794
|
};
|
|
32732
|
-
})),
|
|
32795
|
+
})), HX = /* @__PURE__ */ K(((e) => {
|
|
32733
32796
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32734
|
-
var t =
|
|
32797
|
+
var t = zX();
|
|
32735
32798
|
e.default = class extends Error {
|
|
32736
32799
|
constructor(e, n, r, i) {
|
|
32737
32800
|
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));
|
|
32738
32801
|
}
|
|
32739
32802
|
};
|
|
32740
|
-
})),
|
|
32803
|
+
})), UX = /* @__PURE__ */ K(((e) => {
|
|
32741
32804
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
32742
|
-
var t =
|
|
32805
|
+
var t = TX(), n = VX(), r = DX(), i = zX(), a = EX(), o = BX(), s = class {
|
|
32743
32806
|
constructor(e) {
|
|
32744
32807
|
this.refs = {}, this.dynamicAnchors = {};
|
|
32745
32808
|
let t;
|
|
@@ -32898,27 +32961,27 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
32898
32961
|
baseId: t
|
|
32899
32962
|
}), o.schema !== o.root.schema) return o;
|
|
32900
32963
|
}
|
|
32901
|
-
})),
|
|
32902
|
-
$id: () =>
|
|
32964
|
+
})), WX = /* @__PURE__ */ pt({
|
|
32965
|
+
$id: () => GX,
|
|
32903
32966
|
additionalProperties: () => !1,
|
|
32904
|
-
default: () =>
|
|
32905
|
-
description: () =>
|
|
32906
|
-
properties: () =>
|
|
32907
|
-
required: () =>
|
|
32908
|
-
type: () =>
|
|
32909
|
-
}),
|
|
32910
|
-
|
|
32967
|
+
default: () => XX,
|
|
32968
|
+
description: () => KX,
|
|
32969
|
+
properties: () => YX,
|
|
32970
|
+
required: () => JX,
|
|
32971
|
+
type: () => qX
|
|
32972
|
+
}), GX, KX, qX, JX, YX, XX, ZX = ft((() => {
|
|
32973
|
+
GX = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", KX = "Meta-schema for $data reference (JSON AnySchema extension proposal)", qX = "object", JX = ["$data"], YX = { $data: {
|
|
32911
32974
|
type: "string",
|
|
32912
32975
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
32913
|
-
} },
|
|
32914
|
-
$id:
|
|
32915
|
-
description:
|
|
32916
|
-
type:
|
|
32917
|
-
required:
|
|
32918
|
-
properties:
|
|
32976
|
+
} }, XX = {
|
|
32977
|
+
$id: GX,
|
|
32978
|
+
description: KX,
|
|
32979
|
+
type: qX,
|
|
32980
|
+
required: JX,
|
|
32981
|
+
properties: YX,
|
|
32919
32982
|
additionalProperties: !1
|
|
32920
32983
|
};
|
|
32921
|
-
})),
|
|
32984
|
+
})), QX = /* @__PURE__ */ K(((e, t) => {
|
|
32922
32985
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^\d*$/u), a = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), s = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/]$/u), c = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:@/?]$/u), l = RegExp.prototype.test.bind(/^[A-Za-z0-9\-._~!$&'()*+,;=:]$/u), u = Array(256);
|
|
32923
32986
|
{
|
|
32924
32987
|
let e = "0123456789ABCDEF";
|
|
@@ -33267,8 +33330,8 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
33267
33330
|
normalizeIPv6: b,
|
|
33268
33331
|
stringArrayToHexStripped: f
|
|
33269
33332
|
};
|
|
33270
|
-
})),
|
|
33271
|
-
var { isUUID: n } =
|
|
33333
|
+
})), $X = /* @__PURE__ */ K(((e, t) => {
|
|
33334
|
+
var { isUUID: n } = QX(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
33272
33335
|
"http",
|
|
33273
33336
|
"https",
|
|
33274
33337
|
"ws",
|
|
@@ -33373,8 +33436,8 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
33373
33436
|
isValidSchemeName: a,
|
|
33374
33437
|
getSchemeHandler: y
|
|
33375
33438
|
};
|
|
33376
|
-
})),
|
|
33377
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } =
|
|
33439
|
+
})), eZ = /* @__PURE__ */ K(((e, t) => {
|
|
33440
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, serializePathEncoding: s, normalizeQueryFragmentEncoding: c, encodeQuery: l, encodeFragment: u, reescapeHostDelimiters: d, isIPv4: f, nonSimpleDomain: p } = QX(), { SCHEMES: m, getSchemeHandler: h } = $X(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
33378
33441
|
function v(e) {
|
|
33379
33442
|
let t = unescape(String(e));
|
|
33380
33443
|
if (!g.test(t)) throw TypeError(_);
|
|
@@ -33543,20 +33606,20 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
33543
33606
|
parse: N
|
|
33544
33607
|
};
|
|
33545
33608
|
t.exports = L, t.exports.default = L, t.exports.fastUri = L;
|
|
33546
|
-
})),
|
|
33609
|
+
})), tZ = /* @__PURE__ */ K(((e) => {
|
|
33547
33610
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33548
|
-
var t =
|
|
33611
|
+
var t = eZ();
|
|
33549
33612
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
33550
|
-
})),
|
|
33613
|
+
})), nZ = /* @__PURE__ */ K(((e) => {
|
|
33551
33614
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
33552
|
-
var t =
|
|
33615
|
+
var t = BX();
|
|
33553
33616
|
Object.defineProperty(e, "KeywordCxt", {
|
|
33554
33617
|
enumerable: !0,
|
|
33555
33618
|
get: function() {
|
|
33556
33619
|
return t.KeywordCxt;
|
|
33557
33620
|
}
|
|
33558
33621
|
});
|
|
33559
|
-
var n =
|
|
33622
|
+
var n = TX();
|
|
33560
33623
|
Object.defineProperty(e, "_", {
|
|
33561
33624
|
enumerable: !0,
|
|
33562
33625
|
get: function() {
|
|
@@ -33588,7 +33651,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
33588
33651
|
return n.CodeGen;
|
|
33589
33652
|
}
|
|
33590
33653
|
});
|
|
33591
|
-
var r =
|
|
33654
|
+
var r = VX(), i = HX(), a = AX(), o = UX(), s = TX(), c = zX(), l = MX(), u = EX(), d = (ZX(), gt(WX).default), f = tZ(), p = (e, t) => new RegExp(e, t);
|
|
33592
33655
|
p.code = "new RegExp";
|
|
33593
33656
|
var m = [
|
|
33594
33657
|
"removeAdditional",
|
|
@@ -33974,16 +34037,16 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
33974
34037
|
function F(e) {
|
|
33975
34038
|
return { anyOf: [e, P] };
|
|
33976
34039
|
}
|
|
33977
|
-
})),
|
|
34040
|
+
})), rZ = /* @__PURE__ */ K(((e) => {
|
|
33978
34041
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
33979
34042
|
keyword: "id",
|
|
33980
34043
|
code() {
|
|
33981
34044
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
33982
34045
|
}
|
|
33983
34046
|
};
|
|
33984
|
-
})),
|
|
34047
|
+
})), iZ = /* @__PURE__ */ K(((e) => {
|
|
33985
34048
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
33986
|
-
var t =
|
|
34049
|
+
var t = HX(), n = PX(), r = TX(), i = DX(), a = UX(), o = EX(), s = {
|
|
33987
34050
|
keyword: "$ref",
|
|
33988
34051
|
schemaType: "string",
|
|
33989
34052
|
code(e) {
|
|
@@ -34056,9 +34119,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34056
34119
|
}
|
|
34057
34120
|
}
|
|
34058
34121
|
e.callRef = l, e.default = s;
|
|
34059
|
-
})),
|
|
34122
|
+
})), aZ = /* @__PURE__ */ K(((e) => {
|
|
34060
34123
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34061
|
-
var t =
|
|
34124
|
+
var t = rZ(), n = iZ();
|
|
34062
34125
|
e.default = [
|
|
34063
34126
|
"$schema",
|
|
34064
34127
|
"$id",
|
|
@@ -34069,9 +34132,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34069
34132
|
t.default,
|
|
34070
34133
|
n.default
|
|
34071
34134
|
];
|
|
34072
|
-
})),
|
|
34135
|
+
})), oZ = /* @__PURE__ */ K(((e) => {
|
|
34073
34136
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34074
|
-
var t =
|
|
34137
|
+
var t = TX(), n = t.operators, r = {
|
|
34075
34138
|
maximum: {
|
|
34076
34139
|
okStr: "<=",
|
|
34077
34140
|
ok: n.LTE,
|
|
@@ -34107,9 +34170,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34107
34170
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
34108
34171
|
}
|
|
34109
34172
|
};
|
|
34110
|
-
})),
|
|
34173
|
+
})), sZ = /* @__PURE__ */ K(((e) => {
|
|
34111
34174
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34112
|
-
var t =
|
|
34175
|
+
var t = TX();
|
|
34113
34176
|
e.default = {
|
|
34114
34177
|
keyword: "multipleOf",
|
|
34115
34178
|
type: "number",
|
|
@@ -34124,7 +34187,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34124
34187
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
34125
34188
|
}
|
|
34126
34189
|
};
|
|
34127
|
-
})),
|
|
34190
|
+
})), cZ = /* @__PURE__ */ K(((e) => {
|
|
34128
34191
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34129
34192
|
function t(e) {
|
|
34130
34193
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -34132,9 +34195,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34132
34195
|
return n;
|
|
34133
34196
|
}
|
|
34134
34197
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
34135
|
-
})),
|
|
34198
|
+
})), lZ = /* @__PURE__ */ K(((e) => {
|
|
34136
34199
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34137
|
-
var t =
|
|
34200
|
+
var t = TX(), n = EX(), r = cZ();
|
|
34138
34201
|
e.default = {
|
|
34139
34202
|
keyword: ["maxLength", "minLength"],
|
|
34140
34203
|
type: "string",
|
|
@@ -34152,9 +34215,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34152
34215
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
34153
34216
|
}
|
|
34154
34217
|
};
|
|
34155
|
-
})),
|
|
34218
|
+
})), uZ = /* @__PURE__ */ K(((e) => {
|
|
34156
34219
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34157
|
-
var t =
|
|
34220
|
+
var t = PX(), n = EX(), r = TX();
|
|
34158
34221
|
e.default = {
|
|
34159
34222
|
keyword: "pattern",
|
|
34160
34223
|
type: "string",
|
|
@@ -34175,9 +34238,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34175
34238
|
}
|
|
34176
34239
|
}
|
|
34177
34240
|
};
|
|
34178
|
-
})),
|
|
34241
|
+
})), dZ = /* @__PURE__ */ K(((e) => {
|
|
34179
34242
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34180
|
-
var t =
|
|
34243
|
+
var t = TX();
|
|
34181
34244
|
e.default = {
|
|
34182
34245
|
keyword: ["maxProperties", "minProperties"],
|
|
34183
34246
|
type: "object",
|
|
@@ -34195,9 +34258,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34195
34258
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
34196
34259
|
}
|
|
34197
34260
|
};
|
|
34198
|
-
})),
|
|
34261
|
+
})), fZ = /* @__PURE__ */ K(((e) => {
|
|
34199
34262
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34200
|
-
var t =
|
|
34263
|
+
var t = PX(), n = TX(), r = EX();
|
|
34201
34264
|
e.default = {
|
|
34202
34265
|
keyword: "required",
|
|
34203
34266
|
type: "object",
|
|
@@ -34243,9 +34306,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34243
34306
|
}
|
|
34244
34307
|
}
|
|
34245
34308
|
};
|
|
34246
|
-
})),
|
|
34309
|
+
})), pZ = /* @__PURE__ */ K(((e) => {
|
|
34247
34310
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34248
|
-
var t =
|
|
34311
|
+
var t = TX();
|
|
34249
34312
|
e.default = {
|
|
34250
34313
|
keyword: ["maxItems", "minItems"],
|
|
34251
34314
|
type: "array",
|
|
@@ -34263,13 +34326,13 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34263
34326
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
34264
34327
|
}
|
|
34265
34328
|
};
|
|
34266
|
-
})),
|
|
34329
|
+
})), mZ = /* @__PURE__ */ K(((e) => {
|
|
34267
34330
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34268
|
-
var t =
|
|
34331
|
+
var t = LX();
|
|
34269
34332
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
34270
|
-
})),
|
|
34333
|
+
})), hZ = /* @__PURE__ */ K(((e) => {
|
|
34271
34334
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34272
|
-
var t =
|
|
34335
|
+
var t = MX(), n = TX(), r = EX(), i = mZ();
|
|
34273
34336
|
e.default = {
|
|
34274
34337
|
keyword: "uniqueItems",
|
|
34275
34338
|
type: "array",
|
|
@@ -34310,9 +34373,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34310
34373
|
}
|
|
34311
34374
|
}
|
|
34312
34375
|
};
|
|
34313
|
-
})),
|
|
34376
|
+
})), gZ = /* @__PURE__ */ K(((e) => {
|
|
34314
34377
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34315
|
-
var t =
|
|
34378
|
+
var t = TX(), n = EX(), r = mZ();
|
|
34316
34379
|
e.default = {
|
|
34317
34380
|
keyword: "const",
|
|
34318
34381
|
$data: !0,
|
|
@@ -34325,9 +34388,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34325
34388
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
34326
34389
|
}
|
|
34327
34390
|
};
|
|
34328
|
-
})),
|
|
34391
|
+
})), _Z = /* @__PURE__ */ K(((e) => {
|
|
34329
34392
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34330
|
-
var t =
|
|
34393
|
+
var t = TX(), n = EX(), r = mZ();
|
|
34331
34394
|
e.default = {
|
|
34332
34395
|
keyword: "enum",
|
|
34333
34396
|
schemaType: "array",
|
|
@@ -34357,9 +34420,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34357
34420
|
}
|
|
34358
34421
|
}
|
|
34359
34422
|
};
|
|
34360
|
-
})),
|
|
34423
|
+
})), vZ = /* @__PURE__ */ K(((e) => {
|
|
34361
34424
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34362
|
-
var t =
|
|
34425
|
+
var t = oZ(), n = sZ(), r = lZ(), i = uZ(), a = dZ(), o = fZ(), s = pZ(), c = hZ(), l = gZ(), u = _Z();
|
|
34363
34426
|
e.default = [
|
|
34364
34427
|
t.default,
|
|
34365
34428
|
n.default,
|
|
@@ -34380,9 +34443,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34380
34443
|
l.default,
|
|
34381
34444
|
u.default
|
|
34382
34445
|
];
|
|
34383
|
-
})),
|
|
34446
|
+
})), yZ = /* @__PURE__ */ K(((e) => {
|
|
34384
34447
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
34385
|
-
var t =
|
|
34448
|
+
var t = TX(), n = EX(), r = {
|
|
34386
34449
|
keyword: "additionalItems",
|
|
34387
34450
|
type: "array",
|
|
34388
34451
|
schemaType: ["boolean", "object"],
|
|
@@ -34420,9 +34483,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34420
34483
|
}
|
|
34421
34484
|
}
|
|
34422
34485
|
e.validateAdditionalItems = i, e.default = r;
|
|
34423
|
-
})),
|
|
34486
|
+
})), bZ = /* @__PURE__ */ K(((e) => {
|
|
34424
34487
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
34425
|
-
var t =
|
|
34488
|
+
var t = TX(), n = EX(), r = PX(), i = {
|
|
34426
34489
|
keyword: "items",
|
|
34427
34490
|
type: "array",
|
|
34428
34491
|
schemaType: [
|
|
@@ -34457,9 +34520,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34457
34520
|
}
|
|
34458
34521
|
}
|
|
34459
34522
|
e.validateTuple = a, e.default = i;
|
|
34460
|
-
})),
|
|
34523
|
+
})), xZ = /* @__PURE__ */ K(((e) => {
|
|
34461
34524
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34462
|
-
var t =
|
|
34525
|
+
var t = bZ();
|
|
34463
34526
|
e.default = {
|
|
34464
34527
|
keyword: "prefixItems",
|
|
34465
34528
|
type: "array",
|
|
@@ -34467,9 +34530,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34467
34530
|
before: "uniqueItems",
|
|
34468
34531
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
34469
34532
|
};
|
|
34470
|
-
})),
|
|
34533
|
+
})), SZ = /* @__PURE__ */ K(((e) => {
|
|
34471
34534
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34472
|
-
var t =
|
|
34535
|
+
var t = TX(), n = EX(), r = PX(), i = yZ();
|
|
34473
34536
|
e.default = {
|
|
34474
34537
|
keyword: "items",
|
|
34475
34538
|
type: "array",
|
|
@@ -34484,9 +34547,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34484
34547
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
34485
34548
|
}
|
|
34486
34549
|
};
|
|
34487
|
-
})),
|
|
34550
|
+
})), CZ = /* @__PURE__ */ K(((e) => {
|
|
34488
34551
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34489
|
-
var t =
|
|
34552
|
+
var t = TX(), n = EX();
|
|
34490
34553
|
e.default = {
|
|
34491
34554
|
keyword: "contains",
|
|
34492
34555
|
type: "array",
|
|
@@ -34539,9 +34602,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34539
34602
|
}
|
|
34540
34603
|
}
|
|
34541
34604
|
};
|
|
34542
|
-
})),
|
|
34605
|
+
})), wZ = /* @__PURE__ */ K(((e) => {
|
|
34543
34606
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
34544
|
-
var t =
|
|
34607
|
+
var t = TX(), n = EX(), r = PX();
|
|
34545
34608
|
e.error = {
|
|
34546
34609
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
34547
34610
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -34600,9 +34663,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34600
34663
|
}, () => i.var(c, !0)), e.ok(c));
|
|
34601
34664
|
}
|
|
34602
34665
|
e.validateSchemaDeps = s, e.default = i;
|
|
34603
|
-
})),
|
|
34666
|
+
})), TZ = /* @__PURE__ */ K(((e) => {
|
|
34604
34667
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34605
|
-
var t =
|
|
34668
|
+
var t = TX(), n = EX();
|
|
34606
34669
|
e.default = {
|
|
34607
34670
|
keyword: "propertyNames",
|
|
34608
34671
|
type: "object",
|
|
@@ -34628,9 +34691,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34628
34691
|
}), e.ok(s);
|
|
34629
34692
|
}
|
|
34630
34693
|
};
|
|
34631
|
-
})),
|
|
34694
|
+
})), EZ = /* @__PURE__ */ K(((e) => {
|
|
34632
34695
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34633
|
-
var t =
|
|
34696
|
+
var t = PX(), n = TX(), r = DX(), i = EX();
|
|
34634
34697
|
e.default = {
|
|
34635
34698
|
keyword: "additionalProperties",
|
|
34636
34699
|
type: ["object"],
|
|
@@ -34695,9 +34758,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34695
34758
|
}
|
|
34696
34759
|
}
|
|
34697
34760
|
};
|
|
34698
|
-
})),
|
|
34761
|
+
})), DZ = /* @__PURE__ */ K(((e) => {
|
|
34699
34762
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34700
|
-
var t =
|
|
34763
|
+
var t = BX(), n = PX(), r = EX(), i = EZ();
|
|
34701
34764
|
e.default = {
|
|
34702
34765
|
keyword: "properties",
|
|
34703
34766
|
type: "object",
|
|
@@ -34724,9 +34787,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34724
34787
|
}
|
|
34725
34788
|
}
|
|
34726
34789
|
};
|
|
34727
|
-
})),
|
|
34790
|
+
})), OZ = /* @__PURE__ */ K(((e) => {
|
|
34728
34791
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34729
|
-
var t =
|
|
34792
|
+
var t = PX(), n = TX(), r = EX(), i = EX();
|
|
34730
34793
|
e.default = {
|
|
34731
34794
|
keyword: "patternProperties",
|
|
34732
34795
|
type: "object",
|
|
@@ -34759,9 +34822,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34759
34822
|
}
|
|
34760
34823
|
}
|
|
34761
34824
|
};
|
|
34762
|
-
})),
|
|
34825
|
+
})), kZ = /* @__PURE__ */ K(((e) => {
|
|
34763
34826
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34764
|
-
var t =
|
|
34827
|
+
var t = EX();
|
|
34765
34828
|
e.default = {
|
|
34766
34829
|
keyword: "not",
|
|
34767
34830
|
schemaType: ["object", "boolean"],
|
|
@@ -34782,17 +34845,17 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34782
34845
|
},
|
|
34783
34846
|
error: { message: "must NOT be valid" }
|
|
34784
34847
|
};
|
|
34785
|
-
})),
|
|
34848
|
+
})), AZ = /* @__PURE__ */ K(((e) => {
|
|
34786
34849
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34787
34850
|
keyword: "anyOf",
|
|
34788
34851
|
schemaType: "array",
|
|
34789
34852
|
trackErrors: !0,
|
|
34790
|
-
code:
|
|
34853
|
+
code: PX().validateUnion,
|
|
34791
34854
|
error: { message: "must match a schema in anyOf" }
|
|
34792
34855
|
};
|
|
34793
|
-
})),
|
|
34856
|
+
})), jZ = /* @__PURE__ */ K(((e) => {
|
|
34794
34857
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34795
|
-
var t =
|
|
34858
|
+
var t = TX(), n = EX();
|
|
34796
34859
|
e.default = {
|
|
34797
34860
|
keyword: "oneOf",
|
|
34798
34861
|
schemaType: "array",
|
|
@@ -34822,9 +34885,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34822
34885
|
}
|
|
34823
34886
|
}
|
|
34824
34887
|
};
|
|
34825
|
-
})),
|
|
34888
|
+
})), MZ = /* @__PURE__ */ K(((e) => {
|
|
34826
34889
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34827
|
-
var t =
|
|
34890
|
+
var t = EX();
|
|
34828
34891
|
e.default = {
|
|
34829
34892
|
keyword: "allOf",
|
|
34830
34893
|
schemaType: "array",
|
|
@@ -34843,9 +34906,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34843
34906
|
});
|
|
34844
34907
|
}
|
|
34845
34908
|
};
|
|
34846
|
-
})),
|
|
34909
|
+
})), NZ = /* @__PURE__ */ K(((e) => {
|
|
34847
34910
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34848
|
-
var t =
|
|
34911
|
+
var t = TX(), n = EX(), r = {
|
|
34849
34912
|
keyword: "if",
|
|
34850
34913
|
schemaType: ["object", "boolean"],
|
|
34851
34914
|
trackErrors: !0,
|
|
@@ -34886,9 +34949,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34886
34949
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
34887
34950
|
}
|
|
34888
34951
|
e.default = r;
|
|
34889
|
-
})),
|
|
34952
|
+
})), PZ = /* @__PURE__ */ K(((e) => {
|
|
34890
34953
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34891
|
-
var t =
|
|
34954
|
+
var t = EX();
|
|
34892
34955
|
e.default = {
|
|
34893
34956
|
keyword: ["then", "else"],
|
|
34894
34957
|
schemaType: ["object", "boolean"],
|
|
@@ -34896,9 +34959,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34896
34959
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
34897
34960
|
}
|
|
34898
34961
|
};
|
|
34899
|
-
})),
|
|
34962
|
+
})), FZ = /* @__PURE__ */ K(((e) => {
|
|
34900
34963
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34901
|
-
var t =
|
|
34964
|
+
var t = yZ(), n = xZ(), r = bZ(), i = SZ(), a = CZ(), o = wZ(), s = TZ(), c = EZ(), l = DZ(), u = OZ(), d = kZ(), f = AZ(), p = jZ(), m = MZ(), h = NZ(), g = PZ();
|
|
34902
34965
|
function _(e = !1) {
|
|
34903
34966
|
let _ = [
|
|
34904
34967
|
d.default,
|
|
@@ -34916,9 +34979,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34916
34979
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
34917
34980
|
}
|
|
34918
34981
|
e.default = _;
|
|
34919
|
-
})),
|
|
34982
|
+
})), IZ = /* @__PURE__ */ K(((e) => {
|
|
34920
34983
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34921
|
-
var t =
|
|
34984
|
+
var t = TX();
|
|
34922
34985
|
e.default = {
|
|
34923
34986
|
keyword: "format",
|
|
34924
34987
|
type: ["number", "string"],
|
|
@@ -34991,9 +35054,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
34991
35054
|
}
|
|
34992
35055
|
}
|
|
34993
35056
|
};
|
|
34994
|
-
})),
|
|
34995
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
34996
|
-
})),
|
|
35057
|
+
})), LZ = /* @__PURE__ */ K(((e) => {
|
|
35058
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [IZ().default];
|
|
35059
|
+
})), RZ = /* @__PURE__ */ K(((e) => {
|
|
34997
35060
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
34998
35061
|
"title",
|
|
34999
35062
|
"description",
|
|
@@ -35007,9 +35070,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35007
35070
|
"contentEncoding",
|
|
35008
35071
|
"contentSchema"
|
|
35009
35072
|
];
|
|
35010
|
-
})),
|
|
35073
|
+
})), zZ = /* @__PURE__ */ K(((e) => {
|
|
35011
35074
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35012
|
-
var t =
|
|
35075
|
+
var t = aZ(), n = vZ(), r = FZ(), i = LZ(), a = RZ();
|
|
35013
35076
|
e.default = [
|
|
35014
35077
|
t.default,
|
|
35015
35078
|
n.default,
|
|
@@ -35018,15 +35081,15 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35018
35081
|
a.metadataVocabulary,
|
|
35019
35082
|
a.contentVocabulary
|
|
35020
35083
|
];
|
|
35021
|
-
})),
|
|
35084
|
+
})), BZ = /* @__PURE__ */ K(((e) => {
|
|
35022
35085
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
35023
35086
|
var t;
|
|
35024
35087
|
(function(e) {
|
|
35025
35088
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
35026
35089
|
})(t || (e.DiscrError = t = {}));
|
|
35027
|
-
})),
|
|
35090
|
+
})), VZ = /* @__PURE__ */ K(((e) => {
|
|
35028
35091
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35029
|
-
var t =
|
|
35092
|
+
var t = TX(), n = BZ(), r = UX(), i = HX(), a = EX();
|
|
35030
35093
|
e.default = {
|
|
35031
35094
|
keyword: "discriminator",
|
|
35032
35095
|
type: "object",
|
|
@@ -35094,16 +35157,16 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35094
35157
|
}
|
|
35095
35158
|
}
|
|
35096
35159
|
};
|
|
35097
|
-
})),
|
|
35098
|
-
$id: () =>
|
|
35099
|
-
$schema: () =>
|
|
35100
|
-
default: () =>
|
|
35101
|
-
definitions: () =>
|
|
35102
|
-
properties: () =>
|
|
35103
|
-
title: () =>
|
|
35104
|
-
type: () =>
|
|
35105
|
-
}),
|
|
35106
|
-
|
|
35160
|
+
})), HZ = /* @__PURE__ */ pt({
|
|
35161
|
+
$id: () => WZ,
|
|
35162
|
+
$schema: () => UZ,
|
|
35163
|
+
default: () => YZ,
|
|
35164
|
+
definitions: () => KZ,
|
|
35165
|
+
properties: () => JZ,
|
|
35166
|
+
title: () => GZ,
|
|
35167
|
+
type: () => qZ
|
|
35168
|
+
}), UZ, WZ, GZ, KZ, qZ, JZ, YZ, XZ = ft((() => {
|
|
35169
|
+
UZ = "http://json-schema.org/draft-07/schema#", WZ = "http://json-schema.org/draft-07/schema#", GZ = "Core schema meta-schema", KZ = {
|
|
35107
35170
|
schemaArray: {
|
|
35108
35171
|
type: "array",
|
|
35109
35172
|
minItems: 1,
|
|
@@ -35129,7 +35192,7 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35129
35192
|
uniqueItems: !0,
|
|
35130
35193
|
default: []
|
|
35131
35194
|
}
|
|
35132
|
-
},
|
|
35195
|
+
}, qZ = ["object", "boolean"], JZ = {
|
|
35133
35196
|
$id: {
|
|
35134
35197
|
type: "string",
|
|
35135
35198
|
format: "uri-reference"
|
|
@@ -35228,18 +35291,18 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35228
35291
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
35229
35292
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
35230
35293
|
not: { $ref: "#" }
|
|
35231
|
-
},
|
|
35232
|
-
$schema:
|
|
35233
|
-
$id:
|
|
35234
|
-
title:
|
|
35235
|
-
definitions:
|
|
35236
|
-
type:
|
|
35237
|
-
properties:
|
|
35294
|
+
}, YZ = {
|
|
35295
|
+
$schema: UZ,
|
|
35296
|
+
$id: WZ,
|
|
35297
|
+
title: GZ,
|
|
35298
|
+
definitions: KZ,
|
|
35299
|
+
type: qZ,
|
|
35300
|
+
properties: JZ,
|
|
35238
35301
|
default: !0
|
|
35239
35302
|
};
|
|
35240
|
-
})),
|
|
35303
|
+
})), ZZ = /* @__PURE__ */ K(((e, t) => {
|
|
35241
35304
|
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;
|
|
35242
|
-
var n =
|
|
35305
|
+
var n = nZ(), r = zZ(), i = VZ(), a = (XZ(), gt(HZ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
35243
35306
|
_addVocabularies() {
|
|
35244
35307
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
35245
35308
|
}
|
|
@@ -35253,14 +35316,14 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35253
35316
|
}
|
|
35254
35317
|
};
|
|
35255
35318
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
35256
|
-
var l =
|
|
35319
|
+
var l = BX();
|
|
35257
35320
|
Object.defineProperty(e, "KeywordCxt", {
|
|
35258
35321
|
enumerable: !0,
|
|
35259
35322
|
get: function() {
|
|
35260
35323
|
return l.KeywordCxt;
|
|
35261
35324
|
}
|
|
35262
35325
|
});
|
|
35263
|
-
var u =
|
|
35326
|
+
var u = TX();
|
|
35264
35327
|
Object.defineProperty(e, "_", {
|
|
35265
35328
|
enumerable: !0,
|
|
35266
35329
|
get: function() {
|
|
@@ -35292,21 +35355,21 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35292
35355
|
return u.CodeGen;
|
|
35293
35356
|
}
|
|
35294
35357
|
});
|
|
35295
|
-
var d =
|
|
35358
|
+
var d = VX();
|
|
35296
35359
|
Object.defineProperty(e, "ValidationError", {
|
|
35297
35360
|
enumerable: !0,
|
|
35298
35361
|
get: function() {
|
|
35299
35362
|
return d.default;
|
|
35300
35363
|
}
|
|
35301
35364
|
});
|
|
35302
|
-
var f =
|
|
35365
|
+
var f = HX();
|
|
35303
35366
|
Object.defineProperty(e, "MissingRefError", {
|
|
35304
35367
|
enumerable: !0,
|
|
35305
35368
|
get: function() {
|
|
35306
35369
|
return f.default;
|
|
35307
35370
|
}
|
|
35308
35371
|
});
|
|
35309
|
-
})),
|
|
35372
|
+
})), QZ = /* @__PURE__ */ K(((e) => {
|
|
35310
35373
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
35311
35374
|
function t(e, t) {
|
|
35312
35375
|
return {
|
|
@@ -35458,9 +35521,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35458
35521
|
return !1;
|
|
35459
35522
|
}
|
|
35460
35523
|
}
|
|
35461
|
-
})),
|
|
35524
|
+
})), $Z = /* @__PURE__ */ K(((e) => {
|
|
35462
35525
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
35463
|
-
var t =
|
|
35526
|
+
var t = ZZ(), n = TX(), r = n.operators, i = {
|
|
35464
35527
|
formatMaximum: {
|
|
35465
35528
|
okStr: "<=",
|
|
35466
35529
|
ok: r.LTE,
|
|
@@ -35520,9 +35583,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35520
35583
|
},
|
|
35521
35584
|
dependencies: ["format"]
|
|
35522
35585
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
35523
|
-
})),
|
|
35586
|
+
})), eQ = /* @__PURE__ */ K(((e, t) => {
|
|
35524
35587
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35525
|
-
var n =
|
|
35588
|
+
var n = QZ(), r = $Z(), i = TX(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
35526
35589
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
35527
35590
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
35528
35591
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -35538,9 +35601,9 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35538
35601
|
for (let r of t) e.addFormat(r, n[r]);
|
|
35539
35602
|
}
|
|
35540
35603
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
35541
|
-
})),
|
|
35604
|
+
})), tQ = /* @__PURE__ */ ht(ZZ(), 1), nQ = /* @__PURE__ */ ht(eQ(), 1), rQ = {
|
|
35542
35605
|
required: () => "This field is required",
|
|
35543
|
-
type: (e) => `Should be "${
|
|
35606
|
+
type: (e) => `Should be "${aQ(e)}".`,
|
|
35544
35607
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
35545
35608
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
35546
35609
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -35556,79 +35619,79 @@ var bX = /* @__PURE__ */ K(((e) => {
|
|
|
35556
35619
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
35557
35620
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
35558
35621
|
};
|
|
35559
|
-
function
|
|
35560
|
-
let n =
|
|
35622
|
+
function iQ(e, t) {
|
|
35623
|
+
let n = rQ[e.keyword];
|
|
35561
35624
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
35562
35625
|
}
|
|
35563
|
-
function
|
|
35626
|
+
function aQ(e) {
|
|
35564
35627
|
let t = e.params.type;
|
|
35565
35628
|
return String(Array.isArray(t) ? t[0] : t);
|
|
35566
35629
|
}
|
|
35567
35630
|
//#endregion
|
|
35568
35631
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
35569
|
-
function
|
|
35632
|
+
function oQ(e, t, n) {
|
|
35570
35633
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
35571
35634
|
for (let e of r) {
|
|
35572
35635
|
if (!i) return {
|
|
35573
35636
|
node: void 0,
|
|
35574
35637
|
value: void 0
|
|
35575
35638
|
};
|
|
35576
|
-
i =
|
|
35639
|
+
i = sQ(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);
|
|
35577
35640
|
}
|
|
35578
35641
|
return i ? {
|
|
35579
|
-
node:
|
|
35642
|
+
node: cQ(sQ(i, a, n, r), r),
|
|
35580
35643
|
value: a
|
|
35581
35644
|
} : {
|
|
35582
35645
|
node: void 0,
|
|
35583
35646
|
value: a
|
|
35584
35647
|
};
|
|
35585
35648
|
}
|
|
35586
|
-
function
|
|
35587
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
35649
|
+
function sQ(e, t, n, r) {
|
|
35650
|
+
let i = new Map(e.properties), a = e.variants ? uQ(e.variants, t) : void 0;
|
|
35588
35651
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
35589
35652
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
35590
35653
|
if (o.length > 0) {
|
|
35591
|
-
for (let e of o) if (
|
|
35654
|
+
for (let e of o) if (lQ(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
35592
35655
|
}
|
|
35593
35656
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
35594
35657
|
...e,
|
|
35595
35658
|
properties: i
|
|
35596
35659
|
} : e;
|
|
35597
35660
|
}
|
|
35598
|
-
function
|
|
35661
|
+
function cQ(e, t) {
|
|
35599
35662
|
return e.displayIf ? {
|
|
35600
35663
|
...e,
|
|
35601
|
-
displayIf:
|
|
35664
|
+
displayIf: zJ(e.displayIf, t.join("."))
|
|
35602
35665
|
} : e;
|
|
35603
35666
|
}
|
|
35604
|
-
function
|
|
35667
|
+
function lQ(e, t, n) {
|
|
35605
35668
|
for (let [r, i] of e) {
|
|
35606
|
-
let e =
|
|
35669
|
+
let e = NJ(t, RJ(r, n));
|
|
35607
35670
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
35608
35671
|
}
|
|
35609
35672
|
return !0;
|
|
35610
35673
|
}
|
|
35611
|
-
function
|
|
35674
|
+
function uQ(e, t) {
|
|
35612
35675
|
if (typeof t != "object" || !t) return;
|
|
35613
35676
|
let n = t;
|
|
35614
35677
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
35615
35678
|
}
|
|
35616
35679
|
//#endregion
|
|
35617
35680
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
35618
|
-
var
|
|
35681
|
+
var dQ = new tQ.default({
|
|
35619
35682
|
strict: !1,
|
|
35620
35683
|
allErrors: !0
|
|
35621
35684
|
});
|
|
35622
|
-
(0,
|
|
35623
|
-
for (let e of ["text", "gio-code-editor"])
|
|
35624
|
-
|
|
35685
|
+
(0, nQ.default)(dQ);
|
|
35686
|
+
for (let e of ["text", "gio-code-editor"]) dQ.addFormat(e, !0);
|
|
35687
|
+
dQ.removeKeyword("id"), dQ.addKeyword({
|
|
35625
35688
|
keyword: "id",
|
|
35626
35689
|
validate: () => !0
|
|
35627
35690
|
});
|
|
35628
|
-
function
|
|
35691
|
+
function fQ(e, t = {}) {
|
|
35629
35692
|
let n;
|
|
35630
35693
|
try {
|
|
35631
|
-
n =
|
|
35694
|
+
n = uX(e);
|
|
35632
35695
|
} catch (e) {
|
|
35633
35696
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35634
35697
|
return () => ({
|
|
@@ -35641,7 +35704,7 @@ function lQ(e, t = {}) {
|
|
|
35641
35704
|
}
|
|
35642
35705
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
35643
35706
|
try {
|
|
35644
|
-
a =
|
|
35707
|
+
a = dQ.compile(r);
|
|
35645
35708
|
} catch (e) {
|
|
35646
35709
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35647
35710
|
return () => ({
|
|
@@ -35652,15 +35715,15 @@ function lQ(e, t = {}) {
|
|
|
35652
35715
|
} }
|
|
35653
35716
|
});
|
|
35654
35717
|
}
|
|
35655
|
-
|
|
35718
|
+
dQ.removeSchema(r);
|
|
35656
35719
|
let o = async (e, t, r) => {
|
|
35657
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
35720
|
+
let o = a(e) ? [] : a.errors ?? [], s = yQ(n.root, e, "", i), c = [...o, ...s];
|
|
35658
35721
|
return c.length === 0 ? {
|
|
35659
35722
|
values: e,
|
|
35660
35723
|
errors: {}
|
|
35661
35724
|
} : {
|
|
35662
35725
|
values: {},
|
|
35663
|
-
errors:
|
|
35726
|
+
errors: gQ(hQ(c.filter((t) => !pQ(t, n, e))), r.criteriaMode ?? "firstError")
|
|
35664
35727
|
};
|
|
35665
35728
|
};
|
|
35666
35729
|
if (!t.basePath) return o;
|
|
@@ -35676,12 +35739,12 @@ function lQ(e, t = {}) {
|
|
|
35676
35739
|
};
|
|
35677
35740
|
};
|
|
35678
35741
|
}
|
|
35679
|
-
function
|
|
35680
|
-
let { node: r, value: i } =
|
|
35742
|
+
function pQ(e, t, n) {
|
|
35743
|
+
let { node: r, value: i } = oQ(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(qJ) : []).join("."), n);
|
|
35681
35744
|
if (!r) return !1;
|
|
35682
35745
|
switch (e.keyword) {
|
|
35683
35746
|
case "const":
|
|
35684
|
-
case "enum": return
|
|
35747
|
+
case "enum": return mQ(r.schema, i);
|
|
35685
35748
|
case "required": {
|
|
35686
35749
|
let t = e.params.missingProperty;
|
|
35687
35750
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -35689,46 +35752,46 @@ function uQ(e, t, n) {
|
|
|
35689
35752
|
default: return !1;
|
|
35690
35753
|
}
|
|
35691
35754
|
}
|
|
35692
|
-
function
|
|
35755
|
+
function mQ(e, t) {
|
|
35693
35756
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
35694
35757
|
}
|
|
35695
|
-
function
|
|
35758
|
+
function hQ(e) {
|
|
35696
35759
|
return e.filter((t) => {
|
|
35697
35760
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
35698
|
-
let n =
|
|
35761
|
+
let n = _Q(t), r = n === "" ? "" : `${n}.`;
|
|
35699
35762
|
return !e.some((e) => {
|
|
35700
35763
|
if (e === t) return !1;
|
|
35701
|
-
let i =
|
|
35764
|
+
let i = _Q(e);
|
|
35702
35765
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
35703
35766
|
});
|
|
35704
35767
|
});
|
|
35705
35768
|
}
|
|
35706
|
-
function
|
|
35769
|
+
function gQ(e, t) {
|
|
35707
35770
|
let n = /* @__PURE__ */ new Map();
|
|
35708
35771
|
for (let t of e) {
|
|
35709
|
-
let e =
|
|
35772
|
+
let e = _Q(t), r = n.get(e) ?? [];
|
|
35710
35773
|
r.push(t), n.set(e, r);
|
|
35711
35774
|
}
|
|
35712
35775
|
let r = {};
|
|
35713
35776
|
for (let [e, i] of n) {
|
|
35714
35777
|
let n = {
|
|
35715
35778
|
type: i[0].keyword,
|
|
35716
|
-
message:
|
|
35779
|
+
message: iQ(i[0], e)
|
|
35717
35780
|
};
|
|
35718
35781
|
if (t === "all" && i.length > 0) {
|
|
35719
35782
|
let t = {};
|
|
35720
|
-
for (let n of i) t[n.keyword] =
|
|
35783
|
+
for (let n of i) t[n.keyword] = iQ(n, e);
|
|
35721
35784
|
n.types = t;
|
|
35722
35785
|
}
|
|
35723
|
-
|
|
35786
|
+
vQ(r, e === "" ? "root" : e, n);
|
|
35724
35787
|
}
|
|
35725
35788
|
return r;
|
|
35726
35789
|
}
|
|
35727
|
-
function
|
|
35728
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
35790
|
+
function _Q(e) {
|
|
35791
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(qJ) : [];
|
|
35729
35792
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
35730
35793
|
}
|
|
35731
|
-
function
|
|
35794
|
+
function vQ(e, t, n) {
|
|
35732
35795
|
let r = t.split("."), i = e;
|
|
35733
35796
|
for (let e = 0; e < r.length - 1; e++) {
|
|
35734
35797
|
let t = r[e];
|
|
@@ -35736,7 +35799,7 @@ function hQ(e, t, n) {
|
|
|
35736
35799
|
}
|
|
35737
35800
|
i[r[r.length - 1]] = n;
|
|
35738
35801
|
}
|
|
35739
|
-
function
|
|
35802
|
+
function yQ(e, t, n, r) {
|
|
35740
35803
|
if (!e) return [];
|
|
35741
35804
|
let i = [];
|
|
35742
35805
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -35753,80 +35816,80 @@ function gQ(e, t, n, r) {
|
|
|
35753
35816
|
}
|
|
35754
35817
|
}
|
|
35755
35818
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
35756
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
35819
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...yQ(o, t[a], `${n}/${KJ(a)}`, r));
|
|
35757
35820
|
if (e.variants && e.variants.length > 0 && a) {
|
|
35758
|
-
let a = t, o =
|
|
35759
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
35821
|
+
let a = t, o = BY(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
35822
|
+
if (s) for (let [e, t] of s.properties) i.push(...yQ(t, a[e], `${n}/${KJ(e)}`, r));
|
|
35760
35823
|
}
|
|
35761
35824
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
35762
|
-
i.push(...
|
|
35825
|
+
i.push(...yQ(e.items, t, `${n}/${a}`, r));
|
|
35763
35826
|
}), i;
|
|
35764
35827
|
}
|
|
35765
35828
|
//#endregion
|
|
35766
35829
|
//#region src/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.ts
|
|
35767
|
-
var
|
|
35768
|
-
function
|
|
35769
|
-
let t =
|
|
35830
|
+
var bQ = /* @__PURE__ */ new WeakMap();
|
|
35831
|
+
function xQ(e) {
|
|
35832
|
+
let t = bQ.get(e);
|
|
35770
35833
|
if (t === void 0) {
|
|
35771
35834
|
try {
|
|
35772
|
-
t =
|
|
35835
|
+
t = uX(e).root;
|
|
35773
35836
|
} catch {
|
|
35774
35837
|
t = null;
|
|
35775
35838
|
}
|
|
35776
|
-
|
|
35839
|
+
bQ.set(e, t);
|
|
35777
35840
|
}
|
|
35778
35841
|
return t;
|
|
35779
35842
|
}
|
|
35780
|
-
function
|
|
35781
|
-
let r =
|
|
35843
|
+
function SQ(e, t, n) {
|
|
35844
|
+
let r = xQ(e);
|
|
35782
35845
|
if (!r) return t;
|
|
35783
35846
|
let i = structuredClone(t);
|
|
35784
|
-
for (;
|
|
35847
|
+
for (; CQ(r, i, "", i, n););
|
|
35785
35848
|
return i;
|
|
35786
35849
|
}
|
|
35787
|
-
function
|
|
35850
|
+
function CQ(e, t, n, r, i) {
|
|
35788
35851
|
if (Array.isArray(t)) {
|
|
35789
35852
|
let { items: a } = e;
|
|
35790
35853
|
if (!a) return !1;
|
|
35791
35854
|
let o = !1;
|
|
35792
35855
|
return t.forEach((e, t) => {
|
|
35793
|
-
|
|
35856
|
+
CQ(a, e, EQ(n, String(t)), r, i) && (o = !0);
|
|
35794
35857
|
}), o;
|
|
35795
35858
|
}
|
|
35796
35859
|
if (typeof t != "object" || !t) return !1;
|
|
35797
|
-
let a = t, { rendered: o, unregistered: s } =
|
|
35860
|
+
let a = t, { rendered: o, unregistered: s } = wQ(e, a, n, r, i), c = !1;
|
|
35798
35861
|
for (let e of s) e in a && (delete a[e], c = !0);
|
|
35799
35862
|
for (let [e, t] of o) {
|
|
35800
35863
|
if (!(e in a)) continue;
|
|
35801
|
-
let o =
|
|
35802
|
-
t.displayIf && !
|
|
35864
|
+
let o = EQ(n, e);
|
|
35865
|
+
t.displayIf && !TQ(t.displayIf, o, r, i) ? (delete a[e], c = !0) : CQ(t, a[e], o, r, i) && (c = !0);
|
|
35803
35866
|
}
|
|
35804
35867
|
return c;
|
|
35805
35868
|
}
|
|
35806
|
-
function
|
|
35869
|
+
function wQ(e, t, n, r, i) {
|
|
35807
35870
|
let a = [...e.properties ?? []], o = [...e.dependencyBranches ?? []];
|
|
35808
35871
|
if (e.variants && e.variants.length > 0) {
|
|
35809
|
-
let n =
|
|
35872
|
+
let n = BY(e.variants.map((e) => e.raw), e.rhfPath, void 0, (e) => t[e]), r = e.variants[n];
|
|
35810
35873
|
r && (a.push(...r.properties), o.push(...r.dependencyBranches ?? []));
|
|
35811
35874
|
}
|
|
35812
35875
|
let s = [];
|
|
35813
|
-
for (let e of o)
|
|
35876
|
+
for (let e of o) TQ(e.showIf, n, r, i) ? a.push(...e.properties) : s.push(...e.properties.keys());
|
|
35814
35877
|
let c = new Set(a.map(([e]) => e));
|
|
35815
35878
|
return {
|
|
35816
35879
|
rendered: a,
|
|
35817
35880
|
unregistered: s.filter((e) => !c.has(e))
|
|
35818
35881
|
};
|
|
35819
35882
|
}
|
|
35820
|
-
function
|
|
35821
|
-
let i =
|
|
35822
|
-
return
|
|
35883
|
+
function TQ(e, t, n, r) {
|
|
35884
|
+
let i = zJ(e, t);
|
|
35885
|
+
return PJ(i, new Map([...i.$eq.keys()].map((e) => [e, NJ(n, e)])), r);
|
|
35823
35886
|
}
|
|
35824
|
-
function
|
|
35887
|
+
function EQ(e, t) {
|
|
35825
35888
|
return e ? `${e}.${t}` : t;
|
|
35826
35889
|
}
|
|
35827
35890
|
//#endregion
|
|
35828
35891
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
35829
|
-
var
|
|
35892
|
+
var DQ = {
|
|
35830
35893
|
navigation: null,
|
|
35831
35894
|
contextSidebar: null,
|
|
35832
35895
|
breadcrumbs: [],
|
|
@@ -35837,9 +35900,9 @@ var wQ = {
|
|
|
35837
35900
|
banner: null,
|
|
35838
35901
|
bannerSticky: !1,
|
|
35839
35902
|
footer: null
|
|
35840
|
-
},
|
|
35841
|
-
function
|
|
35842
|
-
let [t, n] = Ye(
|
|
35903
|
+
}, OQ = Fe(null);
|
|
35904
|
+
function kQ({ children: e }) {
|
|
35905
|
+
let [t, n] = Ye(DQ), r = ze((e, t) => {
|
|
35843
35906
|
n((n) => ({
|
|
35844
35907
|
...n,
|
|
35845
35908
|
[e]: t
|
|
@@ -35851,7 +35914,7 @@ function EQ({ children: e }) {
|
|
|
35851
35914
|
}));
|
|
35852
35915
|
}, []), a = ze((e) => {
|
|
35853
35916
|
n((t) => {
|
|
35854
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
35917
|
+
let n = Object.fromEntries(e.map((e) => [e, DQ[e]]));
|
|
35855
35918
|
return {
|
|
35856
35919
|
...t,
|
|
35857
35920
|
...n
|
|
@@ -35868,20 +35931,20 @@ function EQ({ children: e }) {
|
|
|
35868
35931
|
i,
|
|
35869
35932
|
a
|
|
35870
35933
|
]);
|
|
35871
|
-
return /* @__PURE__ */ W(
|
|
35934
|
+
return /* @__PURE__ */ W(OQ.Provider, {
|
|
35872
35935
|
value: o,
|
|
35873
35936
|
children: e
|
|
35874
35937
|
});
|
|
35875
35938
|
}
|
|
35876
|
-
function
|
|
35877
|
-
let e = Be(
|
|
35939
|
+
function AQ() {
|
|
35940
|
+
let e = Be(OQ);
|
|
35878
35941
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
35879
35942
|
return e;
|
|
35880
35943
|
}
|
|
35881
35944
|
//#endregion
|
|
35882
35945
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
35883
|
-
function
|
|
35884
|
-
let { setSlots: n, resetSlots: r } =
|
|
35946
|
+
function jQ(e, t = []) {
|
|
35947
|
+
let { setSlots: n, resetSlots: r } = AQ();
|
|
35885
35948
|
Ge(() => {
|
|
35886
35949
|
n(e);
|
|
35887
35950
|
let t = Object.keys(e);
|
|
@@ -35896,7 +35959,7 @@ function OQ(e, t = []) {
|
|
|
35896
35959
|
}
|
|
35897
35960
|
//#endregion
|
|
35898
35961
|
//#region src/composed/PageFocused/PageFocused.tsx
|
|
35899
|
-
function
|
|
35962
|
+
function MQ({ children: e, className: n, "data-testid": r }) {
|
|
35900
35963
|
return /* @__PURE__ */ W("div", {
|
|
35901
35964
|
"data-slot": "page-focused",
|
|
35902
35965
|
"data-testid": r,
|
|
@@ -35904,10 +35967,10 @@ function kQ({ children: e, className: n, "data-testid": r }) {
|
|
|
35904
35967
|
children: e
|
|
35905
35968
|
});
|
|
35906
35969
|
}
|
|
35907
|
-
|
|
35970
|
+
MQ.displayName = "PageFocused";
|
|
35908
35971
|
//#endregion
|
|
35909
35972
|
//#region src/composed/PageHeader/PageHeader.tsx
|
|
35910
|
-
function
|
|
35973
|
+
function NQ({ title: e, description: n, actions: r, children: i, className: a, "data-testid": o }) {
|
|
35911
35974
|
return /* @__PURE__ */ G("header", {
|
|
35912
35975
|
"data-slot": "page-header",
|
|
35913
35976
|
"data-testid": o,
|
|
@@ -35939,10 +36002,10 @@ function AQ({ title: e, description: n, actions: r, children: i, className: a, "
|
|
|
35939
36002
|
}) : null]
|
|
35940
36003
|
});
|
|
35941
36004
|
}
|
|
35942
|
-
|
|
36005
|
+
NQ.displayName = "PageHeader";
|
|
35943
36006
|
//#endregion
|
|
35944
36007
|
//#region src/composed/SearchField/SearchField.tsx
|
|
35945
|
-
function
|
|
36008
|
+
function PQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, className: i, disabled: a, onKeyDown: o, "data-testid": s, ...c }) {
|
|
35946
36009
|
let [l, u] = Ye(t), d = Je(null), f = Je(t), p = Je(void 0), m = Je(n);
|
|
35947
36010
|
We(e, () => d.current, []), He(() => {
|
|
35948
36011
|
m.current = n;
|
|
@@ -36002,10 +36065,10 @@ function jQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, clas
|
|
|
36002
36065
|
]
|
|
36003
36066
|
});
|
|
36004
36067
|
}
|
|
36005
|
-
|
|
36068
|
+
PQ.displayName = "SearchField";
|
|
36006
36069
|
//#endregion
|
|
36007
36070
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
36008
|
-
var
|
|
36071
|
+
var FQ = [
|
|
36009
36072
|
{
|
|
36010
36073
|
value: "light",
|
|
36011
36074
|
label: "Light"
|
|
@@ -36019,7 +36082,7 @@ var MQ = [
|
|
|
36019
36082
|
label: "System"
|
|
36020
36083
|
}
|
|
36021
36084
|
];
|
|
36022
|
-
function
|
|
36085
|
+
function IQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o }) {
|
|
36023
36086
|
let s = i ?? e.slice(0, 2).toUpperCase(), { mode: c, setMode: l } = je();
|
|
36024
36087
|
return /* @__PURE__ */ G(bL, { children: [/* @__PURE__ */ W(SL, {
|
|
36025
36088
|
asChild: !0,
|
|
@@ -36048,7 +36111,7 @@ function NQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
36048
36111
|
/* @__PURE__ */ W(DL, {
|
|
36049
36112
|
value: c,
|
|
36050
36113
|
onValueChange: (e) => l(e),
|
|
36051
|
-
children:
|
|
36114
|
+
children: FQ.map((e) => /* @__PURE__ */ W(OL, {
|
|
36052
36115
|
value: e.value,
|
|
36053
36116
|
children: e.label
|
|
36054
36117
|
}, e.value))
|
|
@@ -36061,6 +36124,6 @@ function NQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
36061
36124
|
]
|
|
36062
36125
|
})] });
|
|
36063
36126
|
}
|
|
36064
|
-
|
|
36127
|
+
IQ.displayName = "TopNavUser";
|
|
36065
36128
|
//#endregion
|
|
36066
|
-
export { Rv as Accordion, Vv as AccordionContent, zv as AccordionItem, Bv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Hv as Avatar, Gv as AvatarBadge, Wv as AvatarFallback, Kv as AvatarGroup, qv as AvatarGroupCount, Uv as AvatarImage, Yv as Badge,
|
|
36129
|
+
export { Rv as Accordion, Vv as AccordionContent, zv as AccordionItem, Bv as AccordionTrigger, o as Alert, a as AlertAction, f as AlertDescription, D as AlertTitle, IW as AppContextBar, KW as AppLayout, YW as AppSidebar, NW as AppSwitcher, Hv as Avatar, Gv as AvatarBadge, Wv as AvatarFallback, Kv as AvatarGroup, qv as AvatarGroupCount, Uv as AvatarImage, Yv as Badge, iq as BadgeCell, Xv as Breadcrumb, ny as BreadcrumbEllipsis, Qv as BreadcrumbItem, $v as BreadcrumbLink, Zv as BreadcrumbList, ey as BreadcrumbPage, ty as BreadcrumbSeparator, iy as Button, oy as ButtonGroup, cy as ButtonGroupSeparator, sy as ButtonGroupText, TC as Calendar, MC as CalendarDayButton, NC as Card, LC as CardAction, RC as CardContent, IC as CardDescription, zC as CardFooter, PC as CardHeader, FC as CardTitle, BC as Checkbox, VC as Collapsible, UC as CollapsibleContent, HC as CollapsibleTrigger, sj as Combobox, xj as ComboboxChip, bj as ComboboxChips, Sj as ComboboxChipsInput, _j as ComboboxCollection, fj as ComboboxContent, vj as ComboboxEmpty, hj as ComboboxGroup, dj as ComboboxInput, mj as ComboboxItem, gj as ComboboxLabel, pj as ComboboxList, yj as ComboboxSeparator, lj as ComboboxTrigger, cj as ComboboxValue, FF as Command, IF as CommandDialog, zF as CommandEmpty, BF as CommandGroup, LF as CommandInput, HF as CommandItem, RF as CommandList, VF as CommandSeparator, UF as CommandShortcut, rG as ContentHeader, WF as ContextMenu, eI as ContextMenuCheckboxItem, XF as ContextMenuContent, KF as ContextMenuGroup, ZF as ContextMenuItem, nI as ContextMenuLabel, qF as ContextMenuPortal, YF as ContextMenuRadioGroup, tI as ContextMenuRadioItem, rI as ContextMenuSeparator, iI as ContextMenuShortcut, JF as ContextMenuSub, $F as ContextMenuSubContent, QF as ContextMenuSubTrigger, GF as ContextMenuTrigger, ZW as ContextSidebar, QW as ContextToggleButton, oq as CopyableCell, iG as CopyableText, DQ as DEFAULT_SLOTS, JK as DataTable, YK as DataTableColumnHeader, cq as DataTableEmptyState, jK as DataTablePagination, HK as DataTableViewOptions, rq as DateCell, _J as DatePicker, vJ as DateRangePicker, xJ as DateTimePicker, wJ as DateTimeRangePicker, TF as Dialog, OF as DialogClose, AF as DialogContent, PF as DialogDescription, MF as DialogFooter, jF as DialogHeader, kF as DialogOverlay, DF as DialogPortal, NF as DialogTitle, EF as DialogTrigger, uL as Drawer, pL as DrawerClose, hL as DrawerContent, yL as DrawerDescription, _L as DrawerFooter, gL as DrawerHeader, mL as DrawerOverlay, fL as DrawerPortal, vL as DrawerTitle, dL as DrawerTrigger, bL as DropdownMenu, EL as DropdownMenuCheckboxItem, CL as DropdownMenuContent, wL as DropdownMenuGroup, TL as DropdownMenuItem, kL as DropdownMenuLabel, xL as DropdownMenuPortal, DL as DropdownMenuRadioGroup, OL as DropdownMenuRadioItem, AL as DropdownMenuSeparator, jL as DropdownMenuShortcut, ML as DropdownMenuSub, PL as DropdownMenuSubContent, NL as DropdownMenuSubTrigger, SL as DropdownMenuTrigger, EJ as ElCheatSheetTrigger, FL as Empty, VL as EmptyContent, BL as EmptyDescription, IL as EmptyHeader, RL as EmptyMedia, zL as EmptyTitle, DJ as FacetedFilter, k as Field, w as FieldContent, C as FieldDescription, _ as FieldError, L as FieldGroup, R as FieldLabel, y as FieldLegend, te as FieldSeparator, h as FieldSet, i as FieldTitle, MJ as FileUpload, Fz as FileUploadInput, jJ as FileUploadItem, Iz as HoverCard, Rz as HoverCardContent, Vz as HoverCardDescription, zz as HoverCardHeader, Bz as HoverCardTitle, Lz as HoverCardTrigger, QA as Input, $A as InputGroup, tj as InputGroupAddon, rj as InputGroupButton, aj as InputGroupInput, ij as InputGroupText, oj as InputGroupTextarea, Gz as Item, Zz as ItemActions, Jz as ItemContent, Xz as ItemDescription, $z as ItemFooter, Hz as ItemGroup, Qz as ItemHeader, qz as ItemMedia, Uz as ItemSeparator, Yz as ItemTitle, xX as JsonSchemaForm, eB as Kbd, tB as KbdGroup, ee as Label, kQ as LayoutSlotsProvider, iB as Logo, aq as MonoCell, MQ as PageFocused, NQ as PageHeader, aB as Pagination, oB as PaginationContent, dB as PaginationEllipsis, sB as PaginationItem, cB as PaginationLink, uB as PaginationNext, lB as PaginationPrevious, YY as PasswordInput, fB as Popover, hB as PopoverAnchor, mB as PopoverContent, vB as PopoverDescription, gB as PopoverHeader, _B as PopoverTitle, pB as PopoverTrigger, vt as PortalContainerProvider, yB as Progress, xB as Prose, SB as RadioGroup, CB as RadioGroupItem, xH as ResizableHandle, bH as ResizablePanel, yH as ResizablePanelGroup, SH as ScrollArea, CH as ScrollBar, PQ as SearchField, wH as Select, OH as SelectContent, TH as SelectGroup, AH as SelectItem, kH as SelectLabel, NH as SelectScrollDownButton, MH as SelectScrollUpButton, jH as SelectSeparator, DH as SelectTrigger, EH as SelectValue, PW as SelectorDropdown, FW as SelectorTriggerButton, g as Separator, PH as Sheet, IH as SheetClose, zH as SheetContent, UH as SheetDescription, VH as SheetFooter, BH as SheetHeader, HH as SheetTitle, FH as SheetTrigger, cU as Sidebar, gU as SidebarContent, mU as SidebarFooter, _U as SidebarGroup, yU as SidebarGroupAction, bU as SidebarGroupContent, vU as SidebarGroupLabel, pU as SidebarHeader, fU as SidebarInput, dU as SidebarInset, xU as SidebarMenu, TU as SidebarMenuAction, EU as SidebarMenuBadge, wU as SidebarMenuButton, SU as SidebarMenuItem, DU as SidebarMenuSkeleton, OU as SidebarMenuSub, AU as SidebarMenuSubButton, kU as SidebarMenuSubItem, WW as SidebarModeControl, HW as SidebarModeProvider, XW as SidebarNavigation, sU as SidebarProvider, uU as SidebarRail, hU as SidebarSeparator, lU as SidebarTrigger, eG as SidebarUpgradeFooter, n as Skeleton, uW as Spinner, dW as Switch, fW as Table, mW as TableBody, yW as TableCaption, vW as TableCell, hW as TableFooter, _W as TableHead, pW as TableHeader, gW as TableRow, bW as Tabs, wW as TabsContent, SW as TabsList, CW as TabsTrigger, e as Textarea, Me as ThemeProvider, lW as Toaster, EW as Toggle, OW as ToggleGroup, kW as ToggleGroupItem, GH as Tooltip, qH as TooltipContent, WH as TooltipProvider, KH as TooltipTrigger, IQ as TopNavUser, sq as TruncatedCell, r as alertVariants, Jv as badgeVariants, aG as buildLinearBreadcrumbs, ay as buttonGroupVariants, ry as buttonVariants, t as cn, SX as composeResolvers, aY as extractDefaults, fQ as jsonSchemaResolver, rB as logoVariants, SQ as pruneHiddenValues, xW as tabsListVariants, qU as toast, TW as toggleVariants, Cj as useComboboxAnchor, bt as useDebouncedValue, jQ as useLayoutConfig, AQ as useLayoutSlots, yt as usePortalContainer, oU as useSidebar, zW as useSidebarMode, je as useTheme };
|