@gravitee/graphene-core 3.44.1-feat-found-397-data-table-test-ids.a98a6f0 → 3.44.1
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 +3 -28
- package/dist/base/Table/Table.harness.d.ts +3 -14
- package/dist/base/Table/Table.harness.d.ts.map +1 -1
- package/dist/composed/DataTable/ColumnOption.d.ts +1 -2
- package/dist/composed/DataTable/ColumnOption.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTable.d.ts +1 -9
- package/dist/composed/DataTable/DataTable.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTable.harness.d.ts +3 -5
- package/dist/composed/DataTable/DataTable.harness.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableColumnHeader.d.ts +1 -7
- package/dist/composed/DataTable/DataTableColumnHeader.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableViewOptions.d.ts +1 -6
- package/dist/composed/DataTable/DataTableViewOptions.d.ts.map +1 -1
- package/dist/composed/DataTable/DataTableViewOptionsSearch.d.ts +1 -3
- package/dist/composed/DataTable/DataTableViewOptionsSearch.d.ts.map +1 -1
- package/dist/composed/DataTable/cells.d.ts +9 -15
- package/dist/composed/DataTable/cells.d.ts.map +1 -1
- package/dist/composed/DataTablePagination/DataTablePagination.d.ts +1 -6
- 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 +892 -907
- package/dist/testing/index.js +24 -29
- package/package.json +1 -2
- package/dist/composed/DataTable/DataTableTestIdContext.d.ts +0 -7
- package/dist/composed/DataTable/DataTableTestIdContext.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -27048,11 +27048,10 @@ 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 }) {
|
|
27052
|
+
let s = Math.ceil(n / t) || 0, c = n > 0 ? (e - 1) * t + 1 : 0, l = 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,
|
|
27056
27055
|
children: [o && /* @__PURE__ */ W("div", {
|
|
27057
27056
|
className: "flex-1",
|
|
27058
27057
|
children: o
|
|
@@ -27070,23 +27069,17 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27070
27069
|
children: [/* @__PURE__ */ W(DH, {
|
|
27071
27070
|
className: "h-7 w-16",
|
|
27072
27071
|
"aria-label": "Items per page",
|
|
27073
|
-
"data-testid": xC(s, "page-size"),
|
|
27074
27072
|
children: /* @__PURE__ */ W(EH, {})
|
|
27075
|
-
}), /* @__PURE__ */ W(OH, {
|
|
27076
|
-
|
|
27077
|
-
children:
|
|
27078
|
-
|
|
27079
|
-
"data-testid": xC(s, `page-size-option-${e}`),
|
|
27080
|
-
children: e
|
|
27081
|
-
}, e))
|
|
27082
|
-
})]
|
|
27073
|
+
}), /* @__PURE__ */ W(OH, { children: r.map((e) => /* @__PURE__ */ W(AH, {
|
|
27074
|
+
value: String(e),
|
|
27075
|
+
children: e
|
|
27076
|
+
}, e)) })]
|
|
27083
27077
|
})]
|
|
27084
27078
|
}),
|
|
27085
27079
|
/* @__PURE__ */ G("span", {
|
|
27086
27080
|
className: "text-xs text-muted-foreground tabular-nums",
|
|
27087
|
-
"data-testid": xC(s, "range"),
|
|
27088
27081
|
children: [
|
|
27089
|
-
n > 0 ? `${
|
|
27082
|
+
n > 0 ? `${c}-${l}` : "0",
|
|
27090
27083
|
" of ",
|
|
27091
27084
|
n
|
|
27092
27085
|
]
|
|
@@ -27099,15 +27092,13 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27099
27092
|
disabled: e <= 1,
|
|
27100
27093
|
onClick: () => i(e - 1),
|
|
27101
27094
|
"aria-label": "Previous page",
|
|
27102
|
-
"data-testid": xC(s, "previous"),
|
|
27103
27095
|
children: /* @__PURE__ */ W(we, { className: "size-4" })
|
|
27104
27096
|
}), /* @__PURE__ */ W(iy, {
|
|
27105
27097
|
variant: "ghost",
|
|
27106
27098
|
size: "icon-xs",
|
|
27107
|
-
disabled: e >=
|
|
27099
|
+
disabled: e >= s,
|
|
27108
27100
|
onClick: () => i(e + 1),
|
|
27109
27101
|
"aria-label": "Next page",
|
|
27110
|
-
"data-testid": xC(s, "next"),
|
|
27111
27102
|
children: /* @__PURE__ */ W(re, { className: "size-4" })
|
|
27112
27103
|
})]
|
|
27113
27104
|
})
|
|
@@ -27116,11 +27107,8 @@ function jK({ page: e, pageSize: t, totalCount: n, pageSizeOptions: r = [
|
|
|
27116
27107
|
});
|
|
27117
27108
|
}
|
|
27118
27109
|
//#endregion
|
|
27119
|
-
//#region src/composed/DataTable/DataTableTestIdContext.ts
|
|
27120
|
-
var MK = Fe(void 0);
|
|
27121
|
-
//#endregion
|
|
27122
27110
|
//#region src/composed/DataTable/ColumnName.tsx
|
|
27123
|
-
function
|
|
27111
|
+
function MK({ label: e, description: t, labelId: n, descriptionId: r }) {
|
|
27124
27112
|
return t === void 0 && n === void 0 ? e : /* @__PURE__ */ G("span", {
|
|
27125
27113
|
className: "flex min-w-0 flex-col",
|
|
27126
27114
|
children: [/* @__PURE__ */ W("span", {
|
|
@@ -27135,14 +27123,14 @@ function NK({ label: e, description: t, labelId: n, descriptionId: r }) {
|
|
|
27135
27123
|
}
|
|
27136
27124
|
//#endregion
|
|
27137
27125
|
//#region src/composed/DataTable/columnVisibility.ts
|
|
27138
|
-
function
|
|
27126
|
+
function NK(e) {
|
|
27139
27127
|
return e.getAllColumns().filter((e) => e.getCanHide());
|
|
27140
27128
|
}
|
|
27141
|
-
function
|
|
27129
|
+
function PK(e) {
|
|
27142
27130
|
let { meta: t, header: n } = e.columnDef;
|
|
27143
27131
|
return t?.label ?? (typeof n == "string" ? n : e.id);
|
|
27144
27132
|
}
|
|
27145
|
-
function
|
|
27133
|
+
function FK(e) {
|
|
27146
27134
|
let t = new Map([[void 0, []]]);
|
|
27147
27135
|
for (let n of e) {
|
|
27148
27136
|
let e = n.columnDef.meta?.section || void 0, r = t.get(e);
|
|
@@ -27153,33 +27141,32 @@ function IK(e) {
|
|
|
27153
27141
|
columns: t
|
|
27154
27142
|
})).filter((e) => e.columns.length > 0);
|
|
27155
27143
|
}
|
|
27156
|
-
function
|
|
27144
|
+
function IK(e) {
|
|
27157
27145
|
return e === void 0 ? "unsectioned" : `section:${e}`;
|
|
27158
27146
|
}
|
|
27159
27147
|
//#endregion
|
|
27160
27148
|
//#region src/composed/DataTable/ColumnOption.tsx
|
|
27161
|
-
function
|
|
27162
|
-
let
|
|
27149
|
+
function LK({ column: e, onToggle: t }) {
|
|
27150
|
+
let n = Ue(), r = PK(e), i = e.columnDef.meta?.description, a = `${n}-label`, o = i === void 0 ? void 0 : `${n}-description`, s = e.getIsVisible();
|
|
27163
27151
|
return /* @__PURE__ */ W(HF, {
|
|
27164
27152
|
value: e.id,
|
|
27165
|
-
keywords:
|
|
27166
|
-
"data-checked":
|
|
27167
|
-
"aria-checked":
|
|
27168
|
-
"aria-labelledby":
|
|
27169
|
-
"aria-describedby":
|
|
27153
|
+
keywords: i === void 0 ? [r] : [r, i],
|
|
27154
|
+
"data-checked": s,
|
|
27155
|
+
"aria-checked": s,
|
|
27156
|
+
"aria-labelledby": a,
|
|
27157
|
+
"aria-describedby": o,
|
|
27170
27158
|
onSelect: () => t(e),
|
|
27171
|
-
|
|
27172
|
-
|
|
27173
|
-
|
|
27174
|
-
|
|
27175
|
-
|
|
27176
|
-
descriptionId: s
|
|
27159
|
+
children: /* @__PURE__ */ W(MK, {
|
|
27160
|
+
label: r,
|
|
27161
|
+
description: i,
|
|
27162
|
+
labelId: a,
|
|
27163
|
+
descriptionId: o
|
|
27177
27164
|
})
|
|
27178
27165
|
});
|
|
27179
27166
|
}
|
|
27180
27167
|
//#endregion
|
|
27181
27168
|
//#region src/composed/DataTable/ViewOptionsTrigger.tsx
|
|
27182
|
-
function
|
|
27169
|
+
function RK(e) {
|
|
27183
27170
|
return /* @__PURE__ */ G(iy, {
|
|
27184
27171
|
variant: "outline",
|
|
27185
27172
|
size: "sm",
|
|
@@ -27189,49 +27176,46 @@ function zK(e) {
|
|
|
27189
27176
|
}
|
|
27190
27177
|
//#endregion
|
|
27191
27178
|
//#region src/composed/DataTable/DataTableViewOptionsSearch.tsx
|
|
27192
|
-
function
|
|
27179
|
+
function zK(e, t, n = []) {
|
|
27193
27180
|
let r = t.trim().toLowerCase();
|
|
27194
27181
|
return +!!n.some((e) => e.toLowerCase().includes(r));
|
|
27195
27182
|
}
|
|
27196
|
-
function
|
|
27197
|
-
let [
|
|
27198
|
-
|
|
27199
|
-
},
|
|
27200
|
-
e.toggleVisibility(!e.getIsVisible()),
|
|
27183
|
+
function BK({ columns: e, placeholder: t }) {
|
|
27184
|
+
let [n, r] = Ye(""), i = Je(null), a = () => {
|
|
27185
|
+
r(""), i.current?.focus();
|
|
27186
|
+
}, o = (e) => {
|
|
27187
|
+
e.toggleVisibility(!e.getIsVisible()), i.current?.focus();
|
|
27201
27188
|
};
|
|
27202
27189
|
return /* @__PURE__ */ G(fB, {
|
|
27203
27190
|
onOpenChange: (e) => {
|
|
27204
|
-
e ||
|
|
27191
|
+
e || r("");
|
|
27205
27192
|
},
|
|
27206
27193
|
children: [/* @__PURE__ */ W(pB, {
|
|
27207
27194
|
asChild: !0,
|
|
27208
|
-
children: /* @__PURE__ */ W(
|
|
27195
|
+
children: /* @__PURE__ */ W(RK, {})
|
|
27209
27196
|
}), /* @__PURE__ */ W(mB, {
|
|
27210
27197
|
align: "end",
|
|
27211
27198
|
"aria-label": "Toggle columns",
|
|
27212
27199
|
className: "w-72 p-0",
|
|
27213
|
-
"data-testid": xC(n, "content"),
|
|
27214
27200
|
children: /* @__PURE__ */ G(FF, {
|
|
27215
27201
|
label: "Search columns",
|
|
27216
|
-
filter:
|
|
27202
|
+
filter: zK,
|
|
27217
27203
|
className: "bg-transparent p-0",
|
|
27218
27204
|
children: [/* @__PURE__ */ G("div", {
|
|
27219
27205
|
className: "relative",
|
|
27220
27206
|
children: [/* @__PURE__ */ W(LF, {
|
|
27221
|
-
ref:
|
|
27207
|
+
ref: i,
|
|
27222
27208
|
placeholder: t,
|
|
27223
|
-
value:
|
|
27224
|
-
onValueChange:
|
|
27225
|
-
className: "pr-8"
|
|
27226
|
-
|
|
27227
|
-
}), r !== "" && /* @__PURE__ */ W(iy, {
|
|
27209
|
+
value: n,
|
|
27210
|
+
onValueChange: r,
|
|
27211
|
+
className: "pr-8"
|
|
27212
|
+
}), n !== "" && /* @__PURE__ */ W(iy, {
|
|
27228
27213
|
type: "button",
|
|
27229
27214
|
variant: "ghost",
|
|
27230
27215
|
size: "icon-xs",
|
|
27231
27216
|
"aria-label": "Clear search",
|
|
27232
27217
|
className: "absolute top-2 right-2",
|
|
27233
|
-
|
|
27234
|
-
onClick: o,
|
|
27218
|
+
onClick: a,
|
|
27235
27219
|
onKeyDown: (e) => {
|
|
27236
27220
|
e.key === "Enter" && e.stopPropagation();
|
|
27237
27221
|
},
|
|
@@ -27239,14 +27223,13 @@ function VK({ columns: e, placeholder: t, "data-testid": n }) {
|
|
|
27239
27223
|
})]
|
|
27240
27224
|
}), /* @__PURE__ */ G(RF, {
|
|
27241
27225
|
label: "Columns",
|
|
27242
|
-
children: [/* @__PURE__ */ W(zF, { children: "No columns match." }),
|
|
27226
|
+
children: [/* @__PURE__ */ W(zF, { children: "No columns match." }), FK(e).map(({ heading: e, columns: t }) => /* @__PURE__ */ W(BF, {
|
|
27243
27227
|
heading: e,
|
|
27244
|
-
children: t.map((e) => /* @__PURE__ */ W(
|
|
27228
|
+
children: t.map((e) => /* @__PURE__ */ W(LK, {
|
|
27245
27229
|
column: e,
|
|
27246
|
-
onToggle:
|
|
27247
|
-
"data-testid": xC(n, `column-${e.id}`)
|
|
27230
|
+
onToggle: o
|
|
27248
27231
|
}, e.id))
|
|
27249
|
-
},
|
|
27232
|
+
}, IK(e)))]
|
|
27250
27233
|
})]
|
|
27251
27234
|
})
|
|
27252
27235
|
})]
|
|
@@ -27254,49 +27237,46 @@ function VK({ columns: e, placeholder: t, "data-testid": n }) {
|
|
|
27254
27237
|
}
|
|
27255
27238
|
//#endregion
|
|
27256
27239
|
//#region src/composed/DataTable/DataTableViewOptions.tsx
|
|
27257
|
-
function
|
|
27258
|
-
let
|
|
27259
|
-
return t ? /* @__PURE__ */ W(
|
|
27260
|
-
columns:
|
|
27261
|
-
placeholder: n
|
|
27262
|
-
"data-testid": r
|
|
27240
|
+
function VK({ table: e, searchable: t = !1, searchPlaceholder: n = "Search columns..." }) {
|
|
27241
|
+
let r = NK(e), i = Ue();
|
|
27242
|
+
return t ? /* @__PURE__ */ W(BK, {
|
|
27243
|
+
columns: r,
|
|
27244
|
+
placeholder: n
|
|
27263
27245
|
}) : /* @__PURE__ */ G(bL, { children: [/* @__PURE__ */ W(SL, {
|
|
27264
27246
|
asChild: !0,
|
|
27265
|
-
children: /* @__PURE__ */ W(
|
|
27247
|
+
children: /* @__PURE__ */ W(RK, {})
|
|
27266
27248
|
}), /* @__PURE__ */ G(CL, {
|
|
27267
27249
|
align: "end",
|
|
27268
27250
|
className: "w-48",
|
|
27269
|
-
"data-testid": xC(r, "content"),
|
|
27270
27251
|
children: [
|
|
27271
27252
|
/* @__PURE__ */ W(kL, { children: "Toggle columns" }),
|
|
27272
27253
|
/* @__PURE__ */ W(AL, {}),
|
|
27273
|
-
|
|
27274
|
-
let
|
|
27254
|
+
FK(r).map(({ heading: e, columns: t }, n) => {
|
|
27255
|
+
let r = t.map((e) => /* @__PURE__ */ W(EL, {
|
|
27275
27256
|
checked: e.getIsVisible(),
|
|
27276
27257
|
onCheckedChange: (t) => e.toggleVisibility(!!t),
|
|
27277
27258
|
className: "text-sm",
|
|
27278
|
-
|
|
27279
|
-
|
|
27280
|
-
label: FK(e),
|
|
27259
|
+
children: /* @__PURE__ */ W(MK, {
|
|
27260
|
+
label: PK(e),
|
|
27281
27261
|
description: e.columnDef.meta?.description
|
|
27282
27262
|
})
|
|
27283
27263
|
}, e.id));
|
|
27284
|
-
if (e === void 0) return /* @__PURE__ */ W(Ne, { children:
|
|
27285
|
-
let
|
|
27264
|
+
if (e === void 0) return /* @__PURE__ */ W(Ne, { children: r }, IK(e));
|
|
27265
|
+
let a = `${i}-section-${n}`;
|
|
27286
27266
|
return /* @__PURE__ */ G(Ne, { children: [n > 0 && /* @__PURE__ */ W(AL, {}), /* @__PURE__ */ G(wL, {
|
|
27287
|
-
"aria-labelledby":
|
|
27267
|
+
"aria-labelledby": a,
|
|
27288
27268
|
children: [/* @__PURE__ */ W(kL, {
|
|
27289
|
-
id:
|
|
27269
|
+
id: a,
|
|
27290
27270
|
children: e
|
|
27291
|
-
}),
|
|
27292
|
-
})] },
|
|
27271
|
+
}), r]
|
|
27272
|
+
})] }, IK(e));
|
|
27293
27273
|
})
|
|
27294
27274
|
]
|
|
27295
27275
|
})] });
|
|
27296
27276
|
}
|
|
27297
27277
|
//#endregion
|
|
27298
27278
|
//#region src/composed/DataTable/DataTable.tsx
|
|
27299
|
-
function
|
|
27279
|
+
function HK(e, t) {
|
|
27300
27280
|
let [n, r] = Ye(!1);
|
|
27301
27281
|
return He(() => {
|
|
27302
27282
|
if (!e) return;
|
|
@@ -27306,11 +27286,10 @@ function UK(e, t) {
|
|
|
27306
27286
|
};
|
|
27307
27287
|
}, [e, t]), e && n;
|
|
27308
27288
|
}
|
|
27309
|
-
var
|
|
27310
|
-
function
|
|
27311
|
-
let
|
|
27289
|
+
var UK = bK(), WK = TK(), GK = wK();
|
|
27290
|
+
function KK({ header: e, table: n }) {
|
|
27291
|
+
let r = e.getResizeHandler();
|
|
27312
27292
|
return /* @__PURE__ */ W("div", {
|
|
27313
|
-
"data-testid": r,
|
|
27314
27293
|
role: "slider",
|
|
27315
27294
|
"aria-label": `Resize ${e.column.id} column`,
|
|
27316
27295
|
"aria-orientation": "horizontal",
|
|
@@ -27318,8 +27297,8 @@ function qK({ header: e, table: n, "data-testid": r }) {
|
|
|
27318
27297
|
"aria-valuemin": 10,
|
|
27319
27298
|
"aria-valuemax": 1e3,
|
|
27320
27299
|
tabIndex: 0,
|
|
27321
|
-
onMouseDown:
|
|
27322
|
-
onTouchStart:
|
|
27300
|
+
onMouseDown: r,
|
|
27301
|
+
onTouchStart: r,
|
|
27323
27302
|
onKeyDown: (t) => {
|
|
27324
27303
|
let r = t.key === "ArrowRight" ? 10 : t.key === "ArrowLeft" ? -10 : 0;
|
|
27325
27304
|
r && (t.preventDefault(), n.setColumnSizing((t) => ({
|
|
@@ -27330,67 +27309,61 @@ function qK({ header: e, table: n, "data-testid": r }) {
|
|
|
27330
27309
|
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")
|
|
27331
27310
|
});
|
|
27332
27311
|
}
|
|
27333
|
-
function
|
|
27334
|
-
let [
|
|
27335
|
-
|
|
27336
|
-
let
|
|
27312
|
+
function qK({ 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 }) {
|
|
27313
|
+
let [C, w] = Ye({}), [T, E] = Ye({}), [D, O] = Ye([]), k = HK(!!p, m), A = m > 0 ? k : !!p, j = o !== void 0, M = j ? o : D, N = j ? s : O, P = Je(i);
|
|
27314
|
+
P.current = i;
|
|
27315
|
+
let F = Je(n);
|
|
27337
27316
|
He(() => {
|
|
27338
|
-
|
|
27317
|
+
F.current !== n && (F.current = n, E({}), P.current?.([]));
|
|
27339
27318
|
}, [n]);
|
|
27340
|
-
let
|
|
27319
|
+
let I = Ke(() => r === "multi" ? [{
|
|
27341
27320
|
id: "_select",
|
|
27342
27321
|
header: ({ table: e }) => /* @__PURE__ */ W(BC, {
|
|
27343
27322
|
checked: e.getIsAllPageRowsSelected() || e.getIsSomePageRowsSelected() && "indeterminate",
|
|
27344
27323
|
onCheckedChange: (t) => e.toggleAllPageRowsSelected(!!t),
|
|
27345
|
-
"aria-label": "Select all"
|
|
27346
|
-
"data-testid": xC(C, "select-all")
|
|
27324
|
+
"aria-label": "Select all"
|
|
27347
27325
|
}),
|
|
27348
27326
|
cell: ({ row: e }) => /* @__PURE__ */ W(BC, {
|
|
27349
27327
|
checked: e.getIsSelected(),
|
|
27350
27328
|
onCheckedChange: (t) => e.toggleSelected(!!t),
|
|
27351
|
-
"aria-label": "Select row"
|
|
27352
|
-
"data-testid": xC(C, `row-${e.id}-select`)
|
|
27329
|
+
"aria-label": "Select row"
|
|
27353
27330
|
}),
|
|
27354
27331
|
enableSorting: !1,
|
|
27355
27332
|
enableHiding: !1
|
|
27356
|
-
}, ...e] : e, [
|
|
27357
|
-
|
|
27358
|
-
|
|
27359
|
-
|
|
27360
|
-
|
|
27333
|
+
}, ...e] : e, [e, r]), L = ze((e) => {
|
|
27334
|
+
E((t) => {
|
|
27335
|
+
let r = typeof e == "function" ? e(t) : e;
|
|
27336
|
+
if (i) {
|
|
27337
|
+
let e = Object.keys(r).filter((e) => r[e]).map((e) => n[Number(e)]).filter((e) => e !== void 0);
|
|
27338
|
+
queueMicrotask(() => i(e));
|
|
27339
|
+
}
|
|
27340
|
+
return r;
|
|
27341
|
+
});
|
|
27342
|
+
}, [n, i]), ee = AK({
|
|
27361
27343
|
data: n,
|
|
27362
|
-
columns:
|
|
27344
|
+
columns: I,
|
|
27363
27345
|
state: {
|
|
27364
|
-
sorting:
|
|
27365
|
-
columnVisibility:
|
|
27366
|
-
rowSelection:
|
|
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
|
-
});
|
|
27346
|
+
sorting: M,
|
|
27347
|
+
columnVisibility: C,
|
|
27348
|
+
rowSelection: T
|
|
27379
27349
|
},
|
|
27350
|
+
onSortingChange: N,
|
|
27351
|
+
onColumnVisibilityChange: w,
|
|
27352
|
+
onRowSelectionChange: L,
|
|
27380
27353
|
enableColumnResizing: d,
|
|
27381
27354
|
columnResizeMode: d ? "onChange" : void 0,
|
|
27382
|
-
getCoreRowModel:
|
|
27383
|
-
getSortedRowModel: x ? void 0 :
|
|
27384
|
-
getFilteredRowModel: x ? void 0 :
|
|
27355
|
+
getCoreRowModel: UK,
|
|
27356
|
+
getSortedRowModel: x ? void 0 : WK,
|
|
27357
|
+
getFilteredRowModel: x ? void 0 : GK,
|
|
27385
27358
|
manualSorting: x,
|
|
27386
27359
|
manualPagination: x,
|
|
27387
27360
|
manualFiltering: x,
|
|
27388
27361
|
...S
|
|
27389
|
-
}), te = a ? ee.getFilteredSelectedRowModel().rows.length : 0, R = v || a || l, ne = ee.getRowModel().rows, re =
|
|
27362
|
+
}), te = a ? ee.getFilteredSelectedRowModel().rows.length : 0, R = v || a || l, ne = ee.getRowModel().rows, re = I.length || 1;
|
|
27390
27363
|
function ie() {
|
|
27391
|
-
return
|
|
27364
|
+
return A && !ne.length ? Array.from({ length: h }).map((e, t) => /* @__PURE__ */ W(gW, {
|
|
27392
27365
|
className: "border-transparent",
|
|
27393
|
-
children:
|
|
27366
|
+
children: I.map((e, n) => /* @__PURE__ */ G(vW, {
|
|
27394
27367
|
className: "relative",
|
|
27395
27368
|
children: [/* @__PURE__ */ W("div", {
|
|
27396
27369
|
className: "invisible",
|
|
@@ -27398,19 +27371,17 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27398
27371
|
}), /* @__PURE__ */ W("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
|
|
27399
27372
|
}, `skeleton-${t}-${n}`))
|
|
27400
27373
|
}, `skeleton-${t}`)) : !ne.length && p ? null : ne.length ? ne.map((e) => /* @__PURE__ */ W(gW, {
|
|
27401
|
-
"data-testid": xC(C, `row-${e.id}`),
|
|
27402
27374
|
"data-state": e.getIsSelected() ? "selected" : void 0,
|
|
27403
|
-
className:
|
|
27375
|
+
className: A ? "pointer-events-none border-transparent hover:bg-transparent" : void 0,
|
|
27404
27376
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ G(vW, {
|
|
27405
|
-
className: t("min-w-0",
|
|
27377
|
+
className: t("min-w-0", A && "relative", d && "overflow-hidden"),
|
|
27406
27378
|
children: [/* @__PURE__ */ W("div", {
|
|
27407
|
-
className: t("min-w-0",
|
|
27379
|
+
className: t("min-w-0", A && "invisible h-full"),
|
|
27408
27380
|
children: EK(e.column.columnDef.cell, e.getContext())
|
|
27409
|
-
}),
|
|
27381
|
+
}), A && /* @__PURE__ */ W("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
|
|
27410
27382
|
}, e.id))
|
|
27411
27383
|
}, e.id)) : /* @__PURE__ */ W(gW, {
|
|
27412
27384
|
className: "hover:bg-transparent",
|
|
27413
|
-
"data-testid": xC(C, "empty"),
|
|
27414
27385
|
children: /* @__PURE__ */ W(vW, {
|
|
27415
27386
|
colSpan: re,
|
|
27416
27387
|
className: t("h-24 text-center", typeof c == "string" && "text-muted-foreground"),
|
|
@@ -27418,21 +27389,19 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27418
27389
|
})
|
|
27419
27390
|
});
|
|
27420
27391
|
}
|
|
27421
|
-
let z =
|
|
27422
|
-
|
|
27423
|
-
|
|
27424
|
-
|
|
27425
|
-
|
|
27426
|
-
|
|
27392
|
+
let z = /* @__PURE__ */ G(fW, {
|
|
27393
|
+
style: d ? {
|
|
27394
|
+
width: ee.getTotalSize(),
|
|
27395
|
+
minWidth: "100%",
|
|
27396
|
+
tableLayout: "fixed"
|
|
27397
|
+
} : void 0,
|
|
27427
27398
|
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),
|
|
27429
27399
|
style: d ? { width: e.getSize() } : void 0,
|
|
27430
27400
|
"aria-sort": e.column.getIsSorted() === "asc" ? "ascending" : e.column.getIsSorted() === "desc" ? "descending" : e.column.getCanSort() ? "none" : void 0,
|
|
27431
27401
|
className: t(d && "relative overflow-hidden", f && "sticky top-0 z-10 bg-background"),
|
|
27432
|
-
children: [e.isPlaceholder ? null : EK(e.column.columnDef.header, e.getContext()), d &&
|
|
27402
|
+
children: [e.isPlaceholder ? null : EK(e.column.columnDef.header, e.getContext()), d && e.column.getCanResize() && /* @__PURE__ */ W(KK, {
|
|
27433
27403
|
header: e,
|
|
27434
|
-
table: ee
|
|
27435
|
-
"data-testid": xC(ae(e), "resize")
|
|
27404
|
+
table: ee
|
|
27436
27405
|
})]
|
|
27437
27406
|
}, e.id)) }, e.id)) }), /* @__PURE__ */ W(mW, { children: ie() })]
|
|
27438
27407
|
});
|
|
@@ -27440,7 +27409,6 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27440
27409
|
className: t("space-y-2", g),
|
|
27441
27410
|
"aria-label": _,
|
|
27442
27411
|
role: _ ? "region" : void 0,
|
|
27443
|
-
"data-testid": C,
|
|
27444
27412
|
children: [
|
|
27445
27413
|
R && /* @__PURE__ */ G("div", {
|
|
27446
27414
|
className: "flex items-center justify-between gap-2 py-2",
|
|
@@ -27449,14 +27417,12 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27449
27417
|
children: v
|
|
27450
27418
|
}), /* @__PURE__ */ G("div", {
|
|
27451
27419
|
className: "flex items-center gap-2",
|
|
27452
|
-
children: [l && /* @__PURE__ */ W(
|
|
27420
|
+
children: [l && /* @__PURE__ */ W(VK, {
|
|
27453
27421
|
table: ee,
|
|
27454
|
-
...u
|
|
27455
|
-
"data-testid": xC(C, "view")
|
|
27422
|
+
...u
|
|
27456
27423
|
}), a && /* @__PURE__ */ W("div", {
|
|
27457
27424
|
className: t("flex items-center gap-2", te === 0 && "opacity-50"),
|
|
27458
27425
|
"aria-disabled": te === 0,
|
|
27459
|
-
"data-testid": xC(C, "bulk-actions"),
|
|
27460
27426
|
...te === 0 ? { inert: !0 } : {},
|
|
27461
27427
|
children: a
|
|
27462
27428
|
})]
|
|
@@ -27464,16 +27430,12 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27464
27430
|
}),
|
|
27465
27431
|
/* @__PURE__ */ W("div", {
|
|
27466
27432
|
className: t("overflow-hidden rounded-lg border", !f && "**:data-[slot=table-container]:overflow-x-auto", f && "**:data-[slot=table-container]:!overflow-visible"),
|
|
27467
|
-
"aria-busy":
|
|
27468
|
-
"aria-live":
|
|
27469
|
-
|
|
27470
|
-
|
|
27471
|
-
|
|
27472
|
-
|
|
27473
|
-
"data-slot": "table-scroll",
|
|
27474
|
-
children: [oe, /* @__PURE__ */ W(CH, { orientation: "horizontal" })]
|
|
27475
|
-
}) : oe
|
|
27476
|
-
})
|
|
27433
|
+
"aria-busy": A,
|
|
27434
|
+
"aria-live": A ? "polite" : void 0,
|
|
27435
|
+
children: f ? /* @__PURE__ */ G(SH, {
|
|
27436
|
+
"data-slot": "table-scroll",
|
|
27437
|
+
children: [z, /* @__PURE__ */ W(CH, { orientation: "horizontal" })]
|
|
27438
|
+
}) : z
|
|
27477
27439
|
}),
|
|
27478
27440
|
b,
|
|
27479
27441
|
y && /* @__PURE__ */ W(jK, {
|
|
@@ -27482,59 +27444,47 @@ function JK({ columns: e, data: n, selectionMode: r = "none", onSelectionChange:
|
|
|
27482
27444
|
totalCount: y.totalCount,
|
|
27483
27445
|
onPageChange: y.onPageChange,
|
|
27484
27446
|
onPageSizeChange: y.onPageSizeChange,
|
|
27485
|
-
pageSizeOptions: y.pageSizeOptions
|
|
27486
|
-
"data-testid": xC(C, "pagination")
|
|
27447
|
+
pageSizeOptions: y.pageSizeOptions
|
|
27487
27448
|
})
|
|
27488
27449
|
]
|
|
27489
27450
|
});
|
|
27490
27451
|
}
|
|
27491
27452
|
//#endregion
|
|
27492
27453
|
//#region src/composed/DataTable/DataTableColumnHeader.tsx
|
|
27493
|
-
function
|
|
27494
|
-
let o = Be(MK), s = i ?? xC(o, `header-${e.id}`);
|
|
27454
|
+
function JK({ column: e, title: n, className: r, ...i }) {
|
|
27495
27455
|
if (!e.getCanSort()) return /* @__PURE__ */ W("div", {
|
|
27496
27456
|
className: r,
|
|
27497
|
-
|
|
27498
|
-
...a,
|
|
27457
|
+
...i,
|
|
27499
27458
|
children: n
|
|
27500
27459
|
});
|
|
27501
|
-
let
|
|
27460
|
+
let a = e.getIsSorted();
|
|
27502
27461
|
return /* @__PURE__ */ W("div", {
|
|
27503
27462
|
className: t("flex items-center gap-1", r),
|
|
27504
|
-
|
|
27505
|
-
...a,
|
|
27463
|
+
...i,
|
|
27506
27464
|
children: /* @__PURE__ */ G(iy, {
|
|
27507
27465
|
variant: "ghost",
|
|
27508
27466
|
size: "xs",
|
|
27509
27467
|
className: "-ml-2 text-sm",
|
|
27510
|
-
onClick: () => e.toggleSorting(
|
|
27511
|
-
"
|
|
27512
|
-
children: [n, W(c === "asc" ? De : c === "desc" ? he : ye, { className: "size-3.5" })]
|
|
27468
|
+
onClick: () => e.toggleSorting(a === "asc"),
|
|
27469
|
+
children: [n, W(a === "asc" ? De : a === "desc" ? he : ye, { className: "size-3.5" })]
|
|
27513
27470
|
})
|
|
27514
27471
|
});
|
|
27515
27472
|
}
|
|
27516
27473
|
//#endregion
|
|
27517
27474
|
//#region src/composed/DataTable/cells.tsx
|
|
27518
|
-
|
|
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, {
|
|
27475
|
+
var YK = 6e4, XK = 36e5, ZK = 864e5, QK = new Intl.RelativeTimeFormat(void 0, {
|
|
27526
27476
|
numeric: "auto",
|
|
27527
27477
|
style: "narrow"
|
|
27528
27478
|
});
|
|
27529
|
-
function
|
|
27479
|
+
function $K(e) {
|
|
27530
27480
|
let t = Date.now() - e.getTime();
|
|
27531
|
-
return t <
|
|
27481
|
+
return t < YK ? QK.format(0, "second") : t < XK ? QK.format(-Math.floor(t / YK), "minute") : t < ZK ? QK.format(-Math.floor(t / XK), "hour") : t < ZK * 30 ? QK.format(-Math.floor(t / ZK), "day") : e.toLocaleDateString(void 0, {
|
|
27532
27482
|
month: "short",
|
|
27533
27483
|
day: "numeric",
|
|
27534
27484
|
year: "numeric"
|
|
27535
27485
|
});
|
|
27536
27486
|
}
|
|
27537
|
-
function
|
|
27487
|
+
function eq(e) {
|
|
27538
27488
|
return e.toLocaleString(void 0, {
|
|
27539
27489
|
month: "short",
|
|
27540
27490
|
day: "numeric",
|
|
@@ -27543,42 +27493,49 @@ function nq(e) {
|
|
|
27543
27493
|
minute: "2-digit"
|
|
27544
27494
|
});
|
|
27545
27495
|
}
|
|
27546
|
-
function
|
|
27547
|
-
if (!e) return
|
|
27548
|
-
|
|
27549
|
-
|
|
27550
|
-
|
|
27496
|
+
function tq({ value: e, format: t = "relative" }) {
|
|
27497
|
+
if (!e) return /* @__PURE__ */ W("span", {
|
|
27498
|
+
className: "text-muted-foreground",
|
|
27499
|
+
children: "—"
|
|
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);
|
|
27551
27507
|
return /* @__PURE__ */ W(WH, {
|
|
27552
27508
|
delayDuration: 300,
|
|
27553
27509
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27554
27510
|
asChild: !0,
|
|
27555
27511
|
children: /* @__PURE__ */ W("span", {
|
|
27556
27512
|
className: "text-muted-foreground tabular-nums",
|
|
27557
|
-
|
|
27558
|
-
children: i
|
|
27513
|
+
children: r
|
|
27559
27514
|
})
|
|
27560
27515
|
}), /* @__PURE__ */ W(qH, {
|
|
27561
27516
|
side: "top",
|
|
27562
27517
|
children: /* @__PURE__ */ W("span", {
|
|
27563
27518
|
className: "text-xs",
|
|
27564
|
-
children:
|
|
27519
|
+
children: i
|
|
27565
27520
|
})
|
|
27566
27521
|
})] })
|
|
27567
27522
|
});
|
|
27568
27523
|
}
|
|
27569
|
-
function
|
|
27570
|
-
if (!e) return
|
|
27571
|
-
|
|
27524
|
+
function nq({ value: e, variant: t = "default", icon: n }) {
|
|
27525
|
+
if (!e) return /* @__PURE__ */ W("span", {
|
|
27526
|
+
className: "text-muted-foreground",
|
|
27527
|
+
children: "—"
|
|
27528
|
+
});
|
|
27529
|
+
let r = /* @__PURE__ */ G(Yv, {
|
|
27572
27530
|
variant: t,
|
|
27573
27531
|
className: "max-w-[180px] truncate",
|
|
27574
|
-
"data-testid": r,
|
|
27575
27532
|
children: [n, e]
|
|
27576
27533
|
});
|
|
27577
27534
|
return e.length > 20 ? /* @__PURE__ */ W(WH, {
|
|
27578
27535
|
delayDuration: 300,
|
|
27579
27536
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27580
27537
|
asChild: !0,
|
|
27581
|
-
children:
|
|
27538
|
+
children: r
|
|
27582
27539
|
}), /* @__PURE__ */ W(qH, {
|
|
27583
27540
|
side: "top",
|
|
27584
27541
|
className: "max-w-sm",
|
|
@@ -27587,19 +27544,21 @@ function iq({ value: e, variant: t = "default", icon: n, "data-testid": r }) {
|
|
|
27587
27544
|
children: e
|
|
27588
27545
|
})
|
|
27589
27546
|
})] })
|
|
27590
|
-
}) :
|
|
27547
|
+
}) : r;
|
|
27591
27548
|
}
|
|
27592
|
-
function
|
|
27593
|
-
if (!e) return
|
|
27594
|
-
|
|
27595
|
-
|
|
27549
|
+
function rq({ value: e, maxLength: t = 32 }) {
|
|
27550
|
+
if (!e) return /* @__PURE__ */ W("span", {
|
|
27551
|
+
className: "text-muted-foreground",
|
|
27552
|
+
children: "—"
|
|
27553
|
+
});
|
|
27554
|
+
let n = e.length > t, r = n ? `${e.slice(0, t)}…` : e;
|
|
27555
|
+
return n ? /* @__PURE__ */ W(WH, {
|
|
27596
27556
|
delayDuration: 300,
|
|
27597
27557
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27598
27558
|
asChild: !0,
|
|
27599
27559
|
children: /* @__PURE__ */ W("code", {
|
|
27600
27560
|
className: "text-xs text-muted-foreground",
|
|
27601
|
-
|
|
27602
|
-
children: i
|
|
27561
|
+
children: r
|
|
27603
27562
|
})
|
|
27604
27563
|
}), /* @__PURE__ */ W(qH, {
|
|
27605
27564
|
side: "top",
|
|
@@ -27611,28 +27570,29 @@ function aq({ value: e, maxLength: t = 32, "data-testid": n }) {
|
|
|
27611
27570
|
})] })
|
|
27612
27571
|
}) : /* @__PURE__ */ W("code", {
|
|
27613
27572
|
className: "text-xs text-muted-foreground",
|
|
27614
|
-
|
|
27615
|
-
children: i
|
|
27573
|
+
children: r
|
|
27616
27574
|
});
|
|
27617
27575
|
}
|
|
27618
|
-
function
|
|
27619
|
-
let [
|
|
27620
|
-
e && (navigator.clipboard.writeText(e),
|
|
27576
|
+
function iq({ value: e, maxLength: n = 24 }) {
|
|
27577
|
+
let [r, i] = Ye(!1), a = Je(void 0), o = ze(() => {
|
|
27578
|
+
e && (navigator.clipboard.writeText(e), i(!0), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
|
|
27621
27579
|
}, [e]);
|
|
27622
|
-
if (!e) return
|
|
27623
|
-
|
|
27580
|
+
if (!e) return /* @__PURE__ */ W("span", {
|
|
27581
|
+
className: "text-muted-foreground",
|
|
27582
|
+
children: "—"
|
|
27583
|
+
});
|
|
27584
|
+
let s = e.length > n;
|
|
27624
27585
|
return /* @__PURE__ */ G("span", {
|
|
27625
27586
|
className: "group/copy inline-flex items-center gap-1",
|
|
27626
|
-
"data-testid": r,
|
|
27627
27587
|
children: [/* @__PURE__ */ W(WH, {
|
|
27628
27588
|
delayDuration: 300,
|
|
27629
27589
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27630
27590
|
asChild: !0,
|
|
27631
27591
|
children: /* @__PURE__ */ W("code", {
|
|
27632
27592
|
className: "text-xs text-muted-foreground",
|
|
27633
|
-
children:
|
|
27593
|
+
children: s ? `${e.slice(0, n)}…` : e
|
|
27634
27594
|
})
|
|
27635
|
-
}),
|
|
27595
|
+
}), s && /* @__PURE__ */ W(qH, {
|
|
27636
27596
|
side: "top",
|
|
27637
27597
|
className: "max-w-sm",
|
|
27638
27598
|
children: /* @__PURE__ */ W("code", {
|
|
@@ -27643,22 +27603,20 @@ function oq({ value: e, maxLength: n = 24, "data-testid": r }) {
|
|
|
27643
27603
|
}), /* @__PURE__ */ W(iy, {
|
|
27644
27604
|
variant: "ghost",
|
|
27645
27605
|
size: "icon-xs",
|
|
27646
|
-
className: t("size-5 opacity-0 transition-opacity group-hover/copy:opacity-100",
|
|
27647
|
-
onClick:
|
|
27648
|
-
"aria-label":
|
|
27649
|
-
|
|
27650
|
-
children: W(i ? z : B, { className: "size-3" })
|
|
27606
|
+
className: t("size-5 opacity-0 transition-opacity group-hover/copy:opacity-100", r && "opacity-100"),
|
|
27607
|
+
onClick: o,
|
|
27608
|
+
"aria-label": r ? "Copied" : "Copy to clipboard",
|
|
27609
|
+
children: W(r ? z : B, { className: "size-3" })
|
|
27651
27610
|
})]
|
|
27652
27611
|
});
|
|
27653
27612
|
}
|
|
27654
|
-
function
|
|
27613
|
+
function aq({ value: e, className: n }) {
|
|
27655
27614
|
return e ? /* @__PURE__ */ W(WH, {
|
|
27656
27615
|
delayDuration: 500,
|
|
27657
27616
|
children: /* @__PURE__ */ G(GH, { children: [/* @__PURE__ */ W(KH, {
|
|
27658
27617
|
asChild: !0,
|
|
27659
27618
|
children: /* @__PURE__ */ W("span", {
|
|
27660
27619
|
className: t("block max-w-[200px] truncate", n),
|
|
27661
|
-
"data-testid": r,
|
|
27662
27620
|
children: e
|
|
27663
27621
|
})
|
|
27664
27622
|
}), e.length > 30 && /* @__PURE__ */ W(qH, {
|
|
@@ -27669,11 +27627,14 @@ function sq({ value: e, className: n, "data-testid": r }) {
|
|
|
27669
27627
|
children: e
|
|
27670
27628
|
})
|
|
27671
27629
|
})] })
|
|
27672
|
-
}) :
|
|
27630
|
+
}) : /* @__PURE__ */ W("span", {
|
|
27631
|
+
className: "text-muted-foreground",
|
|
27632
|
+
children: "—"
|
|
27633
|
+
});
|
|
27673
27634
|
}
|
|
27674
27635
|
//#endregion
|
|
27675
27636
|
//#region src/composed/DataTableEmptyState/DataTableEmptyState.tsx
|
|
27676
|
-
function
|
|
27637
|
+
function oq(e) {
|
|
27677
27638
|
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;
|
|
27678
27639
|
return n === "no-results" ? /* @__PURE__ */ G(FL, {
|
|
27679
27640
|
className: t("py-12 text-foreground", o),
|
|
@@ -27735,98 +27696,98 @@ function cq(e) {
|
|
|
27735
27696
|
}
|
|
27736
27697
|
//#endregion
|
|
27737
27698
|
//#region ../../node_modules/date-fns/constants.js
|
|
27738
|
-
var
|
|
27739
|
-
|
|
27740
|
-
var
|
|
27699
|
+
var sq = 365.2425, cq = 6048e5, lq = 864e5, uq = 3600 * 24;
|
|
27700
|
+
uq * 7, uq * sq / 12 * 3;
|
|
27701
|
+
var dq = Symbol.for("constructDateFrom");
|
|
27741
27702
|
//#endregion
|
|
27742
27703
|
//#region ../../node_modules/date-fns/constructFrom.js
|
|
27743
|
-
function
|
|
27744
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
27704
|
+
function fq(e, t) {
|
|
27705
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && dq in e ? e[dq](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
27745
27706
|
}
|
|
27746
27707
|
//#endregion
|
|
27747
27708
|
//#region ../../node_modules/date-fns/toDate.js
|
|
27748
|
-
function
|
|
27749
|
-
return
|
|
27709
|
+
function pq(e, t) {
|
|
27710
|
+
return fq(t || e, e);
|
|
27750
27711
|
}
|
|
27751
27712
|
//#endregion
|
|
27752
27713
|
//#region ../../node_modules/date-fns/_lib/defaultOptions.js
|
|
27753
|
-
var
|
|
27754
|
-
function
|
|
27755
|
-
return
|
|
27714
|
+
var mq = {};
|
|
27715
|
+
function hq() {
|
|
27716
|
+
return mq;
|
|
27756
27717
|
}
|
|
27757
27718
|
//#endregion
|
|
27758
27719
|
//#region ../../node_modules/date-fns/startOfWeek.js
|
|
27759
|
-
function
|
|
27760
|
-
let n =
|
|
27720
|
+
function gq(e, t) {
|
|
27721
|
+
let n = hq(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = pq(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
27761
27722
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
27762
27723
|
}
|
|
27763
27724
|
//#endregion
|
|
27764
27725
|
//#region ../../node_modules/date-fns/startOfISOWeek.js
|
|
27765
|
-
function
|
|
27766
|
-
return
|
|
27726
|
+
function _q(e, t) {
|
|
27727
|
+
return gq(e, {
|
|
27767
27728
|
...t,
|
|
27768
27729
|
weekStartsOn: 1
|
|
27769
27730
|
});
|
|
27770
27731
|
}
|
|
27771
27732
|
//#endregion
|
|
27772
27733
|
//#region ../../node_modules/date-fns/getISOWeekYear.js
|
|
27773
|
-
function
|
|
27774
|
-
let n =
|
|
27734
|
+
function vq(e, t) {
|
|
27735
|
+
let n = pq(e, t?.in), r = n.getFullYear(), i = fq(n, 0);
|
|
27775
27736
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
27776
|
-
let a =
|
|
27737
|
+
let a = _q(i), o = fq(n, 0);
|
|
27777
27738
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
27778
|
-
let s =
|
|
27739
|
+
let s = _q(o);
|
|
27779
27740
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
27780
27741
|
}
|
|
27781
27742
|
//#endregion
|
|
27782
27743
|
//#region ../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
27783
|
-
function
|
|
27784
|
-
let t =
|
|
27744
|
+
function yq(e) {
|
|
27745
|
+
let t = pq(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
27785
27746
|
return n.setUTCFullYear(t.getFullYear()), e - +n;
|
|
27786
27747
|
}
|
|
27787
27748
|
//#endregion
|
|
27788
27749
|
//#region ../../node_modules/date-fns/_lib/normalizeDates.js
|
|
27789
|
-
function
|
|
27790
|
-
let n =
|
|
27750
|
+
function bq(e, ...t) {
|
|
27751
|
+
let n = fq.bind(null, e || t.find((e) => typeof e == "object"));
|
|
27791
27752
|
return t.map(n);
|
|
27792
27753
|
}
|
|
27793
27754
|
//#endregion
|
|
27794
27755
|
//#region ../../node_modules/date-fns/startOfDay.js
|
|
27795
|
-
function
|
|
27796
|
-
let n =
|
|
27756
|
+
function xq(e, t) {
|
|
27757
|
+
let n = pq(e, t?.in);
|
|
27797
27758
|
return n.setHours(0, 0, 0, 0), n;
|
|
27798
27759
|
}
|
|
27799
27760
|
//#endregion
|
|
27800
27761
|
//#region ../../node_modules/date-fns/differenceInCalendarDays.js
|
|
27801
|
-
function
|
|
27802
|
-
let [r, i] =
|
|
27803
|
-
return Math.round((s - c) /
|
|
27762
|
+
function Sq(e, t, n) {
|
|
27763
|
+
let [r, i] = bq(n?.in, e, t), a = xq(r), o = xq(i), s = +a - yq(a), c = +o - yq(o);
|
|
27764
|
+
return Math.round((s - c) / lq);
|
|
27804
27765
|
}
|
|
27805
27766
|
//#endregion
|
|
27806
27767
|
//#region ../../node_modules/date-fns/startOfISOWeekYear.js
|
|
27807
|
-
function
|
|
27808
|
-
let n =
|
|
27809
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
27768
|
+
function Cq(e, t) {
|
|
27769
|
+
let n = vq(e, t), r = fq(t?.in || e, 0);
|
|
27770
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), _q(r);
|
|
27810
27771
|
}
|
|
27811
27772
|
//#endregion
|
|
27812
27773
|
//#region ../../node_modules/date-fns/isDate.js
|
|
27813
|
-
function
|
|
27774
|
+
function wq(e) {
|
|
27814
27775
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
27815
27776
|
}
|
|
27816
27777
|
//#endregion
|
|
27817
27778
|
//#region ../../node_modules/date-fns/isValid.js
|
|
27818
|
-
function
|
|
27819
|
-
return !(!
|
|
27779
|
+
function Tq(e) {
|
|
27780
|
+
return !(!wq(e) && typeof e != "number" || isNaN(+pq(e)));
|
|
27820
27781
|
}
|
|
27821
27782
|
//#endregion
|
|
27822
27783
|
//#region ../../node_modules/date-fns/startOfYear.js
|
|
27823
|
-
function
|
|
27824
|
-
let n =
|
|
27784
|
+
function Eq(e, t) {
|
|
27785
|
+
let n = pq(e, t?.in);
|
|
27825
27786
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
27826
27787
|
}
|
|
27827
27788
|
//#endregion
|
|
27828
27789
|
//#region ../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
27829
|
-
var
|
|
27790
|
+
var Dq = {
|
|
27830
27791
|
lessThanXSeconds: {
|
|
27831
27792
|
one: "less than a second",
|
|
27832
27793
|
other: "less than {{count}} seconds"
|
|
@@ -27888,20 +27849,20 @@ var kq = {
|
|
|
27888
27849
|
one: "almost 1 year",
|
|
27889
27850
|
other: "almost {{count}} years"
|
|
27890
27851
|
}
|
|
27891
|
-
},
|
|
27892
|
-
let r, i =
|
|
27852
|
+
}, Oq = (e, t, n) => {
|
|
27853
|
+
let r, i = Dq[e];
|
|
27893
27854
|
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;
|
|
27894
27855
|
};
|
|
27895
27856
|
//#endregion
|
|
27896
27857
|
//#region ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
27897
|
-
function
|
|
27858
|
+
function kq(e) {
|
|
27898
27859
|
return (t = {}) => {
|
|
27899
27860
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
27900
27861
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
27901
27862
|
};
|
|
27902
27863
|
}
|
|
27903
|
-
var
|
|
27904
|
-
date:
|
|
27864
|
+
var Aq = {
|
|
27865
|
+
date: kq({
|
|
27905
27866
|
formats: {
|
|
27906
27867
|
full: "EEEE, MMMM do, y",
|
|
27907
27868
|
long: "MMMM do, y",
|
|
@@ -27910,7 +27871,7 @@ var Mq = {
|
|
|
27910
27871
|
},
|
|
27911
27872
|
defaultWidth: "full"
|
|
27912
27873
|
}),
|
|
27913
|
-
time:
|
|
27874
|
+
time: kq({
|
|
27914
27875
|
formats: {
|
|
27915
27876
|
full: "h:mm:ss a zzzz",
|
|
27916
27877
|
long: "h:mm:ss a z",
|
|
@@ -27919,7 +27880,7 @@ var Mq = {
|
|
|
27919
27880
|
},
|
|
27920
27881
|
defaultWidth: "full"
|
|
27921
27882
|
}),
|
|
27922
|
-
dateTime:
|
|
27883
|
+
dateTime: kq({
|
|
27923
27884
|
formats: {
|
|
27924
27885
|
full: "{{date}} 'at' {{time}}",
|
|
27925
27886
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -27928,17 +27889,17 @@ var Mq = {
|
|
|
27928
27889
|
},
|
|
27929
27890
|
defaultWidth: "full"
|
|
27930
27891
|
})
|
|
27931
|
-
},
|
|
27892
|
+
}, jq = {
|
|
27932
27893
|
lastWeek: "'last' eeee 'at' p",
|
|
27933
27894
|
yesterday: "'yesterday at' p",
|
|
27934
27895
|
today: "'today at' p",
|
|
27935
27896
|
tomorrow: "'tomorrow at' p",
|
|
27936
27897
|
nextWeek: "eeee 'at' p",
|
|
27937
27898
|
other: "P"
|
|
27938
|
-
},
|
|
27899
|
+
}, Mq = (e, t, n, r) => jq[e];
|
|
27939
27900
|
//#endregion
|
|
27940
27901
|
//#region ../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
27941
|
-
function
|
|
27902
|
+
function Nq(e) {
|
|
27942
27903
|
return (t, n) => {
|
|
27943
27904
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
27944
27905
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -27952,7 +27913,7 @@ function Fq(e) {
|
|
|
27952
27913
|
return i[a];
|
|
27953
27914
|
};
|
|
27954
27915
|
}
|
|
27955
|
-
var
|
|
27916
|
+
var Pq = {
|
|
27956
27917
|
ordinalNumber: (e, t) => {
|
|
27957
27918
|
let n = Number(e), r = n % 100;
|
|
27958
27919
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -27962,7 +27923,7 @@ var Iq = {
|
|
|
27962
27923
|
}
|
|
27963
27924
|
return n + "th";
|
|
27964
27925
|
},
|
|
27965
|
-
era:
|
|
27926
|
+
era: Nq({
|
|
27966
27927
|
values: {
|
|
27967
27928
|
narrow: ["B", "A"],
|
|
27968
27929
|
abbreviated: ["BC", "AD"],
|
|
@@ -27970,7 +27931,7 @@ var Iq = {
|
|
|
27970
27931
|
},
|
|
27971
27932
|
defaultWidth: "wide"
|
|
27972
27933
|
}),
|
|
27973
|
-
quarter:
|
|
27934
|
+
quarter: Nq({
|
|
27974
27935
|
values: {
|
|
27975
27936
|
narrow: [
|
|
27976
27937
|
"1",
|
|
@@ -27994,7 +27955,7 @@ var Iq = {
|
|
|
27994
27955
|
defaultWidth: "wide",
|
|
27995
27956
|
argumentCallback: (e) => e - 1
|
|
27996
27957
|
}),
|
|
27997
|
-
month:
|
|
27958
|
+
month: Nq({
|
|
27998
27959
|
values: {
|
|
27999
27960
|
narrow: [
|
|
28000
27961
|
"J",
|
|
@@ -28041,7 +28002,7 @@ var Iq = {
|
|
|
28041
28002
|
},
|
|
28042
28003
|
defaultWidth: "wide"
|
|
28043
28004
|
}),
|
|
28044
|
-
day:
|
|
28005
|
+
day: Nq({
|
|
28045
28006
|
values: {
|
|
28046
28007
|
narrow: [
|
|
28047
28008
|
"S",
|
|
@@ -28082,7 +28043,7 @@ var Iq = {
|
|
|
28082
28043
|
},
|
|
28083
28044
|
defaultWidth: "wide"
|
|
28084
28045
|
}),
|
|
28085
|
-
dayPeriod:
|
|
28046
|
+
dayPeriod: Nq({
|
|
28086
28047
|
values: {
|
|
28087
28048
|
narrow: {
|
|
28088
28049
|
am: "a",
|
|
@@ -28153,11 +28114,11 @@ var Iq = {
|
|
|
28153
28114
|
};
|
|
28154
28115
|
//#endregion
|
|
28155
28116
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
28156
|
-
function
|
|
28117
|
+
function Fq(e) {
|
|
28157
28118
|
return (t, n = {}) => {
|
|
28158
28119
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
28159
28120
|
if (!a) return null;
|
|
28160
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
28121
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? Lq(s, (e) => e.test(o)) : Iq(s, (e) => e.test(o)), l;
|
|
28161
28122
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
28162
28123
|
let u = t.slice(o.length);
|
|
28163
28124
|
return {
|
|
@@ -28166,15 +28127,15 @@ function Lq(e) {
|
|
|
28166
28127
|
};
|
|
28167
28128
|
};
|
|
28168
28129
|
}
|
|
28169
|
-
function
|
|
28130
|
+
function Iq(e, t) {
|
|
28170
28131
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
28171
28132
|
}
|
|
28172
|
-
function
|
|
28133
|
+
function Lq(e, t) {
|
|
28173
28134
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
28174
28135
|
}
|
|
28175
28136
|
//#endregion
|
|
28176
28137
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
28177
|
-
function
|
|
28138
|
+
function Rq(e) {
|
|
28178
28139
|
return (t, n = {}) => {
|
|
28179
28140
|
let r = t.match(e.matchPattern);
|
|
28180
28141
|
if (!r) return null;
|
|
@@ -28191,19 +28152,19 @@ function Bq(e) {
|
|
|
28191
28152
|
}
|
|
28192
28153
|
//#endregion
|
|
28193
28154
|
//#region ../../node_modules/date-fns/locale/en-US.js
|
|
28194
|
-
var
|
|
28155
|
+
var zq = {
|
|
28195
28156
|
code: "en-US",
|
|
28196
|
-
formatDistance:
|
|
28197
|
-
formatLong:
|
|
28198
|
-
formatRelative:
|
|
28199
|
-
localize:
|
|
28157
|
+
formatDistance: Oq,
|
|
28158
|
+
formatLong: Aq,
|
|
28159
|
+
formatRelative: Mq,
|
|
28160
|
+
localize: Pq,
|
|
28200
28161
|
match: {
|
|
28201
|
-
ordinalNumber:
|
|
28162
|
+
ordinalNumber: Rq({
|
|
28202
28163
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
28203
28164
|
parsePattern: /\d+/i,
|
|
28204
28165
|
valueCallback: (e) => parseInt(e, 10)
|
|
28205
28166
|
}),
|
|
28206
|
-
era:
|
|
28167
|
+
era: Fq({
|
|
28207
28168
|
matchPatterns: {
|
|
28208
28169
|
narrow: /^(b|a)/i,
|
|
28209
28170
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
@@ -28213,7 +28174,7 @@ var Vq = {
|
|
|
28213
28174
|
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
28214
28175
|
defaultParseWidth: "any"
|
|
28215
28176
|
}),
|
|
28216
|
-
quarter:
|
|
28177
|
+
quarter: Fq({
|
|
28217
28178
|
matchPatterns: {
|
|
28218
28179
|
narrow: /^[1234]/i,
|
|
28219
28180
|
abbreviated: /^q[1234]/i,
|
|
@@ -28229,7 +28190,7 @@ var Vq = {
|
|
|
28229
28190
|
defaultParseWidth: "any",
|
|
28230
28191
|
valueCallback: (e) => e + 1
|
|
28231
28192
|
}),
|
|
28232
|
-
month:
|
|
28193
|
+
month: Fq({
|
|
28233
28194
|
matchPatterns: {
|
|
28234
28195
|
narrow: /^[jfmasond]/i,
|
|
28235
28196
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
@@ -28268,7 +28229,7 @@ var Vq = {
|
|
|
28268
28229
|
},
|
|
28269
28230
|
defaultParseWidth: "any"
|
|
28270
28231
|
}),
|
|
28271
|
-
day:
|
|
28232
|
+
day: Fq({
|
|
28272
28233
|
matchPatterns: {
|
|
28273
28234
|
narrow: /^[smtwf]/i,
|
|
28274
28235
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
@@ -28298,7 +28259,7 @@ var Vq = {
|
|
|
28298
28259
|
},
|
|
28299
28260
|
defaultParseWidth: "any"
|
|
28300
28261
|
}),
|
|
28301
|
-
dayPeriod:
|
|
28262
|
+
dayPeriod: Fq({
|
|
28302
28263
|
matchPatterns: {
|
|
28303
28264
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
28304
28265
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -28324,56 +28285,56 @@ var Vq = {
|
|
|
28324
28285
|
};
|
|
28325
28286
|
//#endregion
|
|
28326
28287
|
//#region ../../node_modules/date-fns/getDayOfYear.js
|
|
28327
|
-
function
|
|
28328
|
-
let n =
|
|
28329
|
-
return
|
|
28288
|
+
function Bq(e, t) {
|
|
28289
|
+
let n = pq(e, t?.in);
|
|
28290
|
+
return Sq(n, Eq(n)) + 1;
|
|
28330
28291
|
}
|
|
28331
28292
|
//#endregion
|
|
28332
28293
|
//#region ../../node_modules/date-fns/getISOWeek.js
|
|
28333
|
-
function
|
|
28334
|
-
let n =
|
|
28335
|
-
return Math.round(r /
|
|
28294
|
+
function Vq(e, t) {
|
|
28295
|
+
let n = pq(e, t?.in), r = _q(n) - +Cq(n);
|
|
28296
|
+
return Math.round(r / cq) + 1;
|
|
28336
28297
|
}
|
|
28337
28298
|
//#endregion
|
|
28338
28299
|
//#region ../../node_modules/date-fns/getWeekYear.js
|
|
28339
|
-
function
|
|
28340
|
-
let n =
|
|
28300
|
+
function Hq(e, t) {
|
|
28301
|
+
let n = pq(e, t?.in), r = n.getFullYear(), i = hq(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = fq(t?.in || e, 0);
|
|
28341
28302
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
28342
|
-
let s =
|
|
28303
|
+
let s = gq(o, t), c = fq(t?.in || e, 0);
|
|
28343
28304
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
28344
|
-
let l =
|
|
28305
|
+
let l = gq(c, t);
|
|
28345
28306
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
28346
28307
|
}
|
|
28347
28308
|
//#endregion
|
|
28348
28309
|
//#region ../../node_modules/date-fns/startOfWeekYear.js
|
|
28349
|
-
function
|
|
28350
|
-
let n =
|
|
28351
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
28310
|
+
function Uq(e, t) {
|
|
28311
|
+
let n = hq(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = Hq(e, t), a = fq(t?.in || e, 0);
|
|
28312
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), gq(a, t);
|
|
28352
28313
|
}
|
|
28353
28314
|
//#endregion
|
|
28354
28315
|
//#region ../../node_modules/date-fns/getWeek.js
|
|
28355
|
-
function
|
|
28356
|
-
let n =
|
|
28357
|
-
return Math.round(r /
|
|
28316
|
+
function Wq(e, t) {
|
|
28317
|
+
let n = pq(e, t?.in), r = gq(n, t) - +Uq(n, t);
|
|
28318
|
+
return Math.round(r / cq) + 1;
|
|
28358
28319
|
}
|
|
28359
28320
|
//#endregion
|
|
28360
28321
|
//#region ../../node_modules/date-fns/_lib/addLeadingZeros.js
|
|
28361
|
-
function
|
|
28322
|
+
function Gq(e, t) {
|
|
28362
28323
|
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
28363
28324
|
}
|
|
28364
28325
|
//#endregion
|
|
28365
28326
|
//#region ../../node_modules/date-fns/_lib/format/lightFormatters.js
|
|
28366
|
-
var
|
|
28327
|
+
var Kq = {
|
|
28367
28328
|
y(e, t) {
|
|
28368
28329
|
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
28369
|
-
return
|
|
28330
|
+
return Gq(t === "yy" ? r % 100 : r, t.length);
|
|
28370
28331
|
},
|
|
28371
28332
|
M(e, t) {
|
|
28372
28333
|
let n = e.getMonth();
|
|
28373
|
-
return t === "M" ? String(n + 1) :
|
|
28334
|
+
return t === "M" ? String(n + 1) : Gq(n + 1, 2);
|
|
28374
28335
|
},
|
|
28375
28336
|
d(e, t) {
|
|
28376
|
-
return
|
|
28337
|
+
return Gq(e.getDate(), t.length);
|
|
28377
28338
|
},
|
|
28378
28339
|
a(e, t) {
|
|
28379
28340
|
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
@@ -28386,22 +28347,22 @@ var Jq = {
|
|
|
28386
28347
|
}
|
|
28387
28348
|
},
|
|
28388
28349
|
h(e, t) {
|
|
28389
|
-
return
|
|
28350
|
+
return Gq(e.getHours() % 12 || 12, t.length);
|
|
28390
28351
|
},
|
|
28391
28352
|
H(e, t) {
|
|
28392
|
-
return
|
|
28353
|
+
return Gq(e.getHours(), t.length);
|
|
28393
28354
|
},
|
|
28394
28355
|
m(e, t) {
|
|
28395
|
-
return
|
|
28356
|
+
return Gq(e.getMinutes(), t.length);
|
|
28396
28357
|
},
|
|
28397
28358
|
s(e, t) {
|
|
28398
|
-
return
|
|
28359
|
+
return Gq(e.getSeconds(), t.length);
|
|
28399
28360
|
},
|
|
28400
28361
|
S(e, t) {
|
|
28401
28362
|
let n = t.length, r = e.getMilliseconds();
|
|
28402
|
-
return
|
|
28363
|
+
return Gq(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
28403
28364
|
}
|
|
28404
|
-
},
|
|
28365
|
+
}, qq = {
|
|
28405
28366
|
am: "am",
|
|
28406
28367
|
pm: "pm",
|
|
28407
28368
|
midnight: "midnight",
|
|
@@ -28410,7 +28371,7 @@ var Jq = {
|
|
|
28410
28371
|
afternoon: "afternoon",
|
|
28411
28372
|
evening: "evening",
|
|
28412
28373
|
night: "night"
|
|
28413
|
-
},
|
|
28374
|
+
}, Jq = {
|
|
28414
28375
|
G: function(e, t, n) {
|
|
28415
28376
|
let r = +(e.getFullYear() > 0);
|
|
28416
28377
|
switch (t) {
|
|
@@ -28426,23 +28387,23 @@ var Jq = {
|
|
|
28426
28387
|
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
28427
28388
|
return n.ordinalNumber(r, { unit: "year" });
|
|
28428
28389
|
}
|
|
28429
|
-
return
|
|
28390
|
+
return Kq.y(e, t);
|
|
28430
28391
|
},
|
|
28431
28392
|
Y: function(e, t, n, r) {
|
|
28432
|
-
let i =
|
|
28433
|
-
return t === "YY" ?
|
|
28393
|
+
let i = Hq(e, r), a = i > 0 ? i : 1 - i;
|
|
28394
|
+
return t === "YY" ? Gq(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : Gq(a, t.length);
|
|
28434
28395
|
},
|
|
28435
28396
|
R: function(e, t) {
|
|
28436
|
-
return
|
|
28397
|
+
return Gq(vq(e), t.length);
|
|
28437
28398
|
},
|
|
28438
28399
|
u: function(e, t) {
|
|
28439
|
-
return
|
|
28400
|
+
return Gq(e.getFullYear(), t.length);
|
|
28440
28401
|
},
|
|
28441
28402
|
Q: function(e, t, n) {
|
|
28442
28403
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
28443
28404
|
switch (t) {
|
|
28444
28405
|
case "Q": return String(r);
|
|
28445
|
-
case "QQ": return
|
|
28406
|
+
case "QQ": return Gq(r, 2);
|
|
28446
28407
|
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
28447
28408
|
case "QQQ": return n.quarter(r, {
|
|
28448
28409
|
width: "abbreviated",
|
|
@@ -28462,7 +28423,7 @@ var Jq = {
|
|
|
28462
28423
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
28463
28424
|
switch (t) {
|
|
28464
28425
|
case "q": return String(r);
|
|
28465
|
-
case "qq": return
|
|
28426
|
+
case "qq": return Gq(r, 2);
|
|
28466
28427
|
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
28467
28428
|
case "qqq": return n.quarter(r, {
|
|
28468
28429
|
width: "abbreviated",
|
|
@@ -28482,7 +28443,7 @@ var Jq = {
|
|
|
28482
28443
|
let r = e.getMonth();
|
|
28483
28444
|
switch (t) {
|
|
28484
28445
|
case "M":
|
|
28485
|
-
case "MM": return
|
|
28446
|
+
case "MM": return Kq.M(e, t);
|
|
28486
28447
|
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
28487
28448
|
case "MMM": return n.month(r, {
|
|
28488
28449
|
width: "abbreviated",
|
|
@@ -28502,7 +28463,7 @@ var Jq = {
|
|
|
28502
28463
|
let r = e.getMonth();
|
|
28503
28464
|
switch (t) {
|
|
28504
28465
|
case "L": return String(r + 1);
|
|
28505
|
-
case "LL": return
|
|
28466
|
+
case "LL": return Gq(r + 1, 2);
|
|
28506
28467
|
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
28507
28468
|
case "LLL": return n.month(r, {
|
|
28508
28469
|
width: "abbreviated",
|
|
@@ -28519,19 +28480,19 @@ var Jq = {
|
|
|
28519
28480
|
}
|
|
28520
28481
|
},
|
|
28521
28482
|
w: function(e, t, n, r) {
|
|
28522
|
-
let i =
|
|
28523
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
28483
|
+
let i = Wq(e, r);
|
|
28484
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : Gq(i, t.length);
|
|
28524
28485
|
},
|
|
28525
28486
|
I: function(e, t, n) {
|
|
28526
|
-
let r =
|
|
28527
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
28487
|
+
let r = Vq(e);
|
|
28488
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : Gq(r, t.length);
|
|
28528
28489
|
},
|
|
28529
28490
|
d: function(e, t, n) {
|
|
28530
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
28491
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : Kq.d(e, t);
|
|
28531
28492
|
},
|
|
28532
28493
|
D: function(e, t, n) {
|
|
28533
|
-
let r =
|
|
28534
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
28494
|
+
let r = Bq(e);
|
|
28495
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : Gq(r, t.length);
|
|
28535
28496
|
},
|
|
28536
28497
|
E: function(e, t, n) {
|
|
28537
28498
|
let r = e.getDay();
|
|
@@ -28560,7 +28521,7 @@ var Jq = {
|
|
|
28560
28521
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
28561
28522
|
switch (t) {
|
|
28562
28523
|
case "e": return String(a);
|
|
28563
|
-
case "ee": return
|
|
28524
|
+
case "ee": return Gq(a, 2);
|
|
28564
28525
|
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
28565
28526
|
case "eee": return n.day(i, {
|
|
28566
28527
|
width: "abbreviated",
|
|
@@ -28584,7 +28545,7 @@ var Jq = {
|
|
|
28584
28545
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
28585
28546
|
switch (t) {
|
|
28586
28547
|
case "c": return String(a);
|
|
28587
|
-
case "cc": return
|
|
28548
|
+
case "cc": return Gq(a, t.length);
|
|
28588
28549
|
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
28589
28550
|
case "ccc": return n.day(i, {
|
|
28590
28551
|
width: "abbreviated",
|
|
@@ -28608,7 +28569,7 @@ var Jq = {
|
|
|
28608
28569
|
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
28609
28570
|
switch (t) {
|
|
28610
28571
|
case "i": return String(i);
|
|
28611
|
-
case "ii": return
|
|
28572
|
+
case "ii": return Gq(i, t.length);
|
|
28612
28573
|
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
28613
28574
|
case "iii": return n.day(r, {
|
|
28614
28575
|
width: "abbreviated",
|
|
@@ -28652,7 +28613,7 @@ var Jq = {
|
|
|
28652
28613
|
},
|
|
28653
28614
|
b: function(e, t, n) {
|
|
28654
28615
|
let r = e.getHours(), i;
|
|
28655
|
-
switch (i = r === 12 ?
|
|
28616
|
+
switch (i = r === 12 ? qq.noon : r === 0 ? qq.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
28656
28617
|
case "b":
|
|
28657
28618
|
case "bb": return n.dayPeriod(i, {
|
|
28658
28619
|
width: "abbreviated",
|
|
@@ -28674,7 +28635,7 @@ var Jq = {
|
|
|
28674
28635
|
},
|
|
28675
28636
|
B: function(e, t, n) {
|
|
28676
28637
|
let r = e.getHours(), i;
|
|
28677
|
-
switch (i = r >= 17 ?
|
|
28638
|
+
switch (i = r >= 17 ? qq.evening : r >= 12 ? qq.afternoon : r >= 4 ? qq.morning : qq.night, t) {
|
|
28678
28639
|
case "B":
|
|
28679
28640
|
case "BB":
|
|
28680
28641
|
case "BBB": return n.dayPeriod(i, {
|
|
@@ -28696,45 +28657,45 @@ var Jq = {
|
|
|
28696
28657
|
let t = e.getHours() % 12;
|
|
28697
28658
|
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
28698
28659
|
}
|
|
28699
|
-
return
|
|
28660
|
+
return Kq.h(e, t);
|
|
28700
28661
|
},
|
|
28701
28662
|
H: function(e, t, n) {
|
|
28702
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
28663
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : Kq.H(e, t);
|
|
28703
28664
|
},
|
|
28704
28665
|
K: function(e, t, n) {
|
|
28705
28666
|
let r = e.getHours() % 12;
|
|
28706
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
28667
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : Gq(r, t.length);
|
|
28707
28668
|
},
|
|
28708
28669
|
k: function(e, t, n) {
|
|
28709
28670
|
let r = e.getHours();
|
|
28710
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
28671
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : Gq(r, t.length);
|
|
28711
28672
|
},
|
|
28712
28673
|
m: function(e, t, n) {
|
|
28713
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
28674
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : Kq.m(e, t);
|
|
28714
28675
|
},
|
|
28715
28676
|
s: function(e, t, n) {
|
|
28716
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
28677
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : Kq.s(e, t);
|
|
28717
28678
|
},
|
|
28718
28679
|
S: function(e, t) {
|
|
28719
|
-
return
|
|
28680
|
+
return Kq.S(e, t);
|
|
28720
28681
|
},
|
|
28721
28682
|
X: function(e, t, n) {
|
|
28722
28683
|
let r = e.getTimezoneOffset();
|
|
28723
28684
|
if (r === 0) return "Z";
|
|
28724
28685
|
switch (t) {
|
|
28725
|
-
case "X": return
|
|
28686
|
+
case "X": return Xq(r);
|
|
28726
28687
|
case "XXXX":
|
|
28727
|
-
case "XX": return
|
|
28728
|
-
default: return
|
|
28688
|
+
case "XX": return Zq(r);
|
|
28689
|
+
default: return Zq(r, ":");
|
|
28729
28690
|
}
|
|
28730
28691
|
},
|
|
28731
28692
|
x: function(e, t, n) {
|
|
28732
28693
|
let r = e.getTimezoneOffset();
|
|
28733
28694
|
switch (t) {
|
|
28734
|
-
case "x": return
|
|
28695
|
+
case "x": return Xq(r);
|
|
28735
28696
|
case "xxxx":
|
|
28736
|
-
case "xx": return
|
|
28737
|
-
default: return
|
|
28697
|
+
case "xx": return Zq(r);
|
|
28698
|
+
default: return Zq(r, ":");
|
|
28738
28699
|
}
|
|
28739
28700
|
},
|
|
28740
28701
|
O: function(e, t, n) {
|
|
@@ -28742,8 +28703,8 @@ var Jq = {
|
|
|
28742
28703
|
switch (t) {
|
|
28743
28704
|
case "O":
|
|
28744
28705
|
case "OO":
|
|
28745
|
-
case "OOO": return "GMT" +
|
|
28746
|
-
default: return "GMT" +
|
|
28706
|
+
case "OOO": return "GMT" + Yq(r, ":");
|
|
28707
|
+
default: return "GMT" + Zq(r, ":");
|
|
28747
28708
|
}
|
|
28748
28709
|
},
|
|
28749
28710
|
z: function(e, t, n) {
|
|
@@ -28751,49 +28712,49 @@ var Jq = {
|
|
|
28751
28712
|
switch (t) {
|
|
28752
28713
|
case "z":
|
|
28753
28714
|
case "zz":
|
|
28754
|
-
case "zzz": return "GMT" +
|
|
28755
|
-
default: return "GMT" +
|
|
28715
|
+
case "zzz": return "GMT" + Yq(r, ":");
|
|
28716
|
+
default: return "GMT" + Zq(r, ":");
|
|
28756
28717
|
}
|
|
28757
28718
|
},
|
|
28758
28719
|
t: function(e, t, n) {
|
|
28759
|
-
return
|
|
28720
|
+
return Gq(Math.trunc(e / 1e3), t.length);
|
|
28760
28721
|
},
|
|
28761
28722
|
T: function(e, t, n) {
|
|
28762
|
-
return
|
|
28723
|
+
return Gq(+e, t.length);
|
|
28763
28724
|
}
|
|
28764
28725
|
};
|
|
28765
|
-
function
|
|
28726
|
+
function Yq(e, t = "") {
|
|
28766
28727
|
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
28767
|
-
return a === 0 ? n + String(i) : n + String(i) + t +
|
|
28728
|
+
return a === 0 ? n + String(i) : n + String(i) + t + Gq(a, 2);
|
|
28768
28729
|
}
|
|
28769
|
-
function
|
|
28770
|
-
return e % 60 == 0 ? (e > 0 ? "-" : "+") +
|
|
28730
|
+
function Xq(e, t) {
|
|
28731
|
+
return e % 60 == 0 ? (e > 0 ? "-" : "+") + Gq(Math.abs(e) / 60, 2) : Zq(e, t);
|
|
28771
28732
|
}
|
|
28772
|
-
function
|
|
28773
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
28733
|
+
function Zq(e, t = "") {
|
|
28734
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Gq(Math.trunc(r / 60), 2), a = Gq(r % 60, 2);
|
|
28774
28735
|
return n + i + t + a;
|
|
28775
28736
|
}
|
|
28776
28737
|
//#endregion
|
|
28777
28738
|
//#region ../../node_modules/date-fns/_lib/format/longFormatters.js
|
|
28778
|
-
var
|
|
28739
|
+
var Qq = (e, t) => {
|
|
28779
28740
|
switch (e) {
|
|
28780
28741
|
case "P": return t.date({ width: "short" });
|
|
28781
28742
|
case "PP": return t.date({ width: "medium" });
|
|
28782
28743
|
case "PPP": return t.date({ width: "long" });
|
|
28783
28744
|
default: return t.date({ width: "full" });
|
|
28784
28745
|
}
|
|
28785
|
-
},
|
|
28746
|
+
}, $q = (e, t) => {
|
|
28786
28747
|
switch (e) {
|
|
28787
28748
|
case "p": return t.time({ width: "short" });
|
|
28788
28749
|
case "pp": return t.time({ width: "medium" });
|
|
28789
28750
|
case "ppp": return t.time({ width: "long" });
|
|
28790
28751
|
default: return t.time({ width: "full" });
|
|
28791
28752
|
}
|
|
28792
|
-
},
|
|
28793
|
-
p:
|
|
28753
|
+
}, eJ = {
|
|
28754
|
+
p: $q,
|
|
28794
28755
|
P: (e, t) => {
|
|
28795
28756
|
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
28796
|
-
if (!i) return
|
|
28757
|
+
if (!i) return Qq(e, t);
|
|
28797
28758
|
let a;
|
|
28798
28759
|
switch (r) {
|
|
28799
28760
|
case "P":
|
|
@@ -28809,42 +28770,42 @@ var eJ = (e, t) => {
|
|
|
28809
28770
|
a = t.dateTime({ width: "full" });
|
|
28810
28771
|
break;
|
|
28811
28772
|
}
|
|
28812
|
-
return a.replace("{{date}}",
|
|
28773
|
+
return a.replace("{{date}}", Qq(r, t)).replace("{{time}}", $q(i, t));
|
|
28813
28774
|
}
|
|
28814
|
-
},
|
|
28775
|
+
}, tJ = /^D+$/, nJ = /^Y+$/, rJ = [
|
|
28815
28776
|
"D",
|
|
28816
28777
|
"DD",
|
|
28817
28778
|
"YY",
|
|
28818
28779
|
"YYYY"
|
|
28819
28780
|
];
|
|
28820
|
-
function
|
|
28821
|
-
return
|
|
28781
|
+
function iJ(e) {
|
|
28782
|
+
return tJ.test(e);
|
|
28822
28783
|
}
|
|
28823
|
-
function
|
|
28824
|
-
return
|
|
28784
|
+
function aJ(e) {
|
|
28785
|
+
return nJ.test(e);
|
|
28825
28786
|
}
|
|
28826
|
-
function
|
|
28827
|
-
let r =
|
|
28828
|
-
if (console.warn(r),
|
|
28787
|
+
function oJ(e, t, n) {
|
|
28788
|
+
let r = sJ(e, t, n);
|
|
28789
|
+
if (console.warn(r), rJ.includes(e)) throw RangeError(r);
|
|
28829
28790
|
}
|
|
28830
|
-
function
|
|
28791
|
+
function sJ(e, t, n) {
|
|
28831
28792
|
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
28832
28793
|
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`;
|
|
28833
28794
|
}
|
|
28834
28795
|
//#endregion
|
|
28835
28796
|
//#region ../../node_modules/date-fns/format.js
|
|
28836
|
-
var
|
|
28837
|
-
function
|
|
28838
|
-
let r =
|
|
28839
|
-
if (!
|
|
28840
|
-
let c = t.match(
|
|
28797
|
+
var cJ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, lJ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, uJ = /^'([^]*?)'?$/, dJ = /''/g, fJ = /[a-zA-Z]/;
|
|
28798
|
+
function pJ(e, t, n) {
|
|
28799
|
+
let r = hq(), i = n?.locale ?? r.locale ?? zq, 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 = pq(e, n?.in);
|
|
28800
|
+
if (!Tq(s)) throw RangeError("Invalid time value");
|
|
28801
|
+
let c = t.match(lJ).map((e) => {
|
|
28841
28802
|
let t = e[0];
|
|
28842
28803
|
if (t === "p" || t === "P") {
|
|
28843
|
-
let n =
|
|
28804
|
+
let n = eJ[t];
|
|
28844
28805
|
return n(e, i.formatLong);
|
|
28845
28806
|
}
|
|
28846
28807
|
return e;
|
|
28847
|
-
}).join("").match(
|
|
28808
|
+
}).join("").match(cJ).map((e) => {
|
|
28848
28809
|
if (e === "''") return {
|
|
28849
28810
|
isToken: !1,
|
|
28850
28811
|
value: "'"
|
|
@@ -28852,13 +28813,13 @@ function hJ(e, t, n) {
|
|
|
28852
28813
|
let t = e[0];
|
|
28853
28814
|
if (t === "'") return {
|
|
28854
28815
|
isToken: !1,
|
|
28855
|
-
value:
|
|
28816
|
+
value: mJ(e)
|
|
28856
28817
|
};
|
|
28857
|
-
if (
|
|
28818
|
+
if (Jq[t]) return {
|
|
28858
28819
|
isToken: !0,
|
|
28859
28820
|
value: e
|
|
28860
28821
|
};
|
|
28861
|
-
if (t.match(
|
|
28822
|
+
if (t.match(fJ)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
28862
28823
|
return {
|
|
28863
28824
|
isToken: !1,
|
|
28864
28825
|
value: e
|
|
@@ -28873,18 +28834,18 @@ function hJ(e, t, n) {
|
|
|
28873
28834
|
return c.map((r) => {
|
|
28874
28835
|
if (!r.isToken) return r.value;
|
|
28875
28836
|
let a = r.value;
|
|
28876
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
28877
|
-
let o =
|
|
28837
|
+
(!n?.useAdditionalWeekYearTokens && aJ(a) || !n?.useAdditionalDayOfYearTokens && iJ(a)) && oJ(a, t, String(e));
|
|
28838
|
+
let o = Jq[a[0]];
|
|
28878
28839
|
return o(s, a, i.localize, l);
|
|
28879
28840
|
}).join("");
|
|
28880
28841
|
}
|
|
28881
|
-
function
|
|
28882
|
-
let t = e.match(
|
|
28883
|
-
return t ? t[1].replace(
|
|
28842
|
+
function mJ(e) {
|
|
28843
|
+
let t = e.match(uJ);
|
|
28844
|
+
return t ? t[1].replace(dJ, "'") : e;
|
|
28884
28845
|
}
|
|
28885
28846
|
//#endregion
|
|
28886
28847
|
//#region src/composed/DatePicker/DatePicker.tsx
|
|
28887
|
-
function
|
|
28848
|
+
function hJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disabled: a = !1, dateFormat: o = "PPP", locale: s, className: c, "aria-label": l }) {
|
|
28888
28849
|
let [u, d] = Ye(!1);
|
|
28889
28850
|
return /* @__PURE__ */ G(fB, {
|
|
28890
28851
|
open: u,
|
|
@@ -28900,7 +28861,7 @@ function _J({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28900
28861
|
"aria-expanded": u,
|
|
28901
28862
|
"aria-label": l,
|
|
28902
28863
|
className: t("w-full min-w-[9rem] justify-between font-normal", !n && "text-muted-foreground", c),
|
|
28903
|
-
children: [n ?
|
|
28864
|
+
children: [n ? pJ(n, o) : /* @__PURE__ */ W("span", { children: i }), /* @__PURE__ */ W(fe, { "aria-hidden": "true" })]
|
|
28904
28865
|
})
|
|
28905
28866
|
}), /* @__PURE__ */ W(mB, {
|
|
28906
28867
|
className: "w-auto p-0",
|
|
@@ -28917,7 +28878,7 @@ function _J({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28917
28878
|
}
|
|
28918
28879
|
//#endregion
|
|
28919
28880
|
//#region src/composed/DatePicker/DateRangePicker.tsx
|
|
28920
|
-
function
|
|
28881
|
+
function gJ({ 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 }) {
|
|
28921
28882
|
let [d, f] = Ye(!1);
|
|
28922
28883
|
return /* @__PURE__ */ G(fB, {
|
|
28923
28884
|
open: d,
|
|
@@ -28934,10 +28895,10 @@ function vJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28934
28895
|
"aria-label": u,
|
|
28935
28896
|
className: t("w-full min-w-[15rem] justify-between font-normal", !(n?.from || n?.to) && "text-muted-foreground", l),
|
|
28936
28897
|
children: [n?.from || n?.to ? n.from ? n.to ? /* @__PURE__ */ G(Qe, { children: [
|
|
28937
|
-
|
|
28898
|
+
pJ(n.from, o),
|
|
28938
28899
|
" → ",
|
|
28939
|
-
|
|
28940
|
-
] }) : /* @__PURE__ */ G(Qe, { children: [
|
|
28900
|
+
pJ(n.to, o)
|
|
28901
|
+
] }) : /* @__PURE__ */ G(Qe, { children: [pJ(n.from, o), " → …"] }) : /* @__PURE__ */ G(Qe, { children: ["… → ", pJ(n.to, o)] }) : /* @__PURE__ */ W("span", { children: i }), /* @__PURE__ */ W(fe, { "aria-hidden": "true" })]
|
|
28941
28902
|
})
|
|
28942
28903
|
}), /* @__PURE__ */ W(mB, {
|
|
28943
28904
|
className: "w-auto p-0",
|
|
@@ -28955,10 +28916,10 @@ function vJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date", disa
|
|
|
28955
28916
|
}
|
|
28956
28917
|
//#endregion
|
|
28957
28918
|
//#region src/composed/DatePicker/date-time.ts
|
|
28958
|
-
function
|
|
28959
|
-
return e ?
|
|
28919
|
+
function _J(e, t = "00:00:00") {
|
|
28920
|
+
return e ? pJ(e, "HH:mm:ss") : t;
|
|
28960
28921
|
}
|
|
28961
|
-
function
|
|
28922
|
+
function vJ(e, t) {
|
|
28962
28923
|
let [n = "0", r = "0", i = "0"] = t.split(":"), a = Number(n), o = Number(r), s = Number(i);
|
|
28963
28924
|
if (Number.isNaN(a) || Number.isNaN(o) || Number.isNaN(s)) return e;
|
|
28964
28925
|
let c = new Date(e);
|
|
@@ -28966,17 +28927,17 @@ function bJ(e, t) {
|
|
|
28966
28927
|
}
|
|
28967
28928
|
//#endregion
|
|
28968
28929
|
//#region src/composed/DatePicker/DateTimePicker.tsx
|
|
28969
|
-
function
|
|
28930
|
+
function yJ({ 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 }) {
|
|
28970
28931
|
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);
|
|
28971
28932
|
function b(e) {
|
|
28972
28933
|
if (!e) {
|
|
28973
28934
|
r?.(void 0);
|
|
28974
28935
|
return;
|
|
28975
28936
|
}
|
|
28976
|
-
r?.(
|
|
28937
|
+
r?.(vJ(e, n ? _J(n) : "00:00:00"));
|
|
28977
28938
|
}
|
|
28978
28939
|
function x(e) {
|
|
28979
|
-
r?.(
|
|
28940
|
+
r?.(vJ(n ?? /* @__PURE__ */ new Date(), e));
|
|
28980
28941
|
}
|
|
28981
28942
|
return /* @__PURE__ */ G(fB, {
|
|
28982
28943
|
open: v,
|
|
@@ -28992,7 +28953,7 @@ function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
28992
28953
|
"aria-expanded": v,
|
|
28993
28954
|
"aria-label": d,
|
|
28994
28955
|
className: t("w-full min-w-[13rem] justify-between font-normal", !n && "text-muted-foreground", c),
|
|
28995
|
-
children: [n ?
|
|
28956
|
+
children: [n ? pJ(n, o) : i, /* @__PURE__ */ W(fe, { "aria-hidden": "true" })]
|
|
28996
28957
|
})
|
|
28997
28958
|
}), /* @__PURE__ */ G(mB, {
|
|
28998
28959
|
className: "w-auto overflow-hidden p-0",
|
|
@@ -29019,7 +28980,7 @@ function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29019
28980
|
id: `${_}-time`,
|
|
29020
28981
|
type: "time",
|
|
29021
28982
|
step: "1",
|
|
29022
|
-
value:
|
|
28983
|
+
value: _J(n),
|
|
29023
28984
|
disabled: a,
|
|
29024
28985
|
onChange: (e) => x(e.target.value),
|
|
29025
28986
|
className: "ml-auto w-32 appearance-none bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
@@ -29031,15 +28992,15 @@ function xJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29031
28992
|
}
|
|
29032
28993
|
//#endregion
|
|
29033
28994
|
//#region src/composed/DatePicker/DateTimeRangePicker.tsx
|
|
29034
|
-
var
|
|
29035
|
-
function
|
|
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 =
|
|
28995
|
+
var bJ = "00:00:00", xJ = "23:59:59";
|
|
28996
|
+
function SJ({ 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 }) {
|
|
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 = _J(n?.from, bJ), w = _J(n?.to, xJ);
|
|
29037
28998
|
function T(e) {
|
|
29038
28999
|
if (!e) {
|
|
29039
29000
|
r?.(void 0);
|
|
29040
29001
|
return;
|
|
29041
29002
|
}
|
|
29042
|
-
let t = e.from ?
|
|
29003
|
+
let t = e.from ? vJ(e.from, C) : void 0, n = e.to ? vJ(e.to, w) : void 0;
|
|
29043
29004
|
r?.({
|
|
29044
29005
|
from: t,
|
|
29045
29006
|
to: n
|
|
@@ -29048,7 +29009,7 @@ function wJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29048
29009
|
function E(e) {
|
|
29049
29010
|
let t = n?.from ?? /* @__PURE__ */ new Date();
|
|
29050
29011
|
r?.({
|
|
29051
|
-
from:
|
|
29012
|
+
from: vJ(t, e),
|
|
29052
29013
|
to: n?.to
|
|
29053
29014
|
});
|
|
29054
29015
|
}
|
|
@@ -29056,11 +29017,11 @@ function wJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29056
29017
|
let t = n?.to ?? n?.from ?? /* @__PURE__ */ new Date();
|
|
29057
29018
|
r?.({
|
|
29058
29019
|
from: n?.from,
|
|
29059
|
-
to:
|
|
29020
|
+
to: vJ(t, e)
|
|
29060
29021
|
});
|
|
29061
29022
|
}
|
|
29062
29023
|
function O() {
|
|
29063
|
-
return !n?.from && !n?.to ? i : n?.from && n?.to ? `${
|
|
29024
|
+
return !n?.from && !n?.to ? i : n?.from && n?.to ? `${pJ(n.from, c)} → ${pJ(n.to, c)}` : n?.from ? `${pJ(n.from, c)} → …` : n?.to ? `… → ${pJ(n.to, c)}` : i;
|
|
29064
29025
|
}
|
|
29065
29026
|
return /* @__PURE__ */ G(fB, {
|
|
29066
29027
|
open: x,
|
|
@@ -29133,7 +29094,7 @@ function wJ({ id: e, value: n, onChange: r, placeholder: i = "Pick a date and ti
|
|
|
29133
29094
|
}
|
|
29134
29095
|
//#endregion
|
|
29135
29096
|
//#region src/composed/ElCheatSheetTrigger/ElCheatSheetTrigger.tsx
|
|
29136
|
-
var
|
|
29097
|
+
var CJ = [
|
|
29137
29098
|
{
|
|
29138
29099
|
key: "plan-level",
|
|
29139
29100
|
label: "Check Plan Level",
|
|
@@ -29150,7 +29111,7 @@ var TJ = [
|
|
|
29150
29111
|
expression: "{#context.attributes['user-role'] == 'owner'}"
|
|
29151
29112
|
}
|
|
29152
29113
|
];
|
|
29153
|
-
function
|
|
29114
|
+
function wJ({ "data-testid": e } = {}) {
|
|
29154
29115
|
let [t, n] = Ye(null), r = Je(void 0), i = ze((e, t) => {
|
|
29155
29116
|
navigator.clipboard && navigator.clipboard.writeText(t).then(() => {
|
|
29156
29117
|
clearTimeout(r.current), n(e), r.current = setTimeout(() => n(null), 1500);
|
|
@@ -29171,7 +29132,7 @@ function EJ({ "data-testid": e } = {}) {
|
|
|
29171
29132
|
"data-testid": e ? `${e}-content` : void 0,
|
|
29172
29133
|
children: [/* @__PURE__ */ W(gB, { children: /* @__PURE__ */ W(_B, { children: "Expression Language Quick Reference" }) }), /* @__PURE__ */ W("div", {
|
|
29173
29134
|
className: "space-y-2",
|
|
29174
|
-
children:
|
|
29135
|
+
children: CJ.map((n) => /* @__PURE__ */ G("div", {
|
|
29175
29136
|
className: "flex items-start gap-2 rounded-md bg-muted/60 p-2",
|
|
29176
29137
|
children: [/* @__PURE__ */ G("div", {
|
|
29177
29138
|
className: "min-w-0 flex-1",
|
|
@@ -29197,7 +29158,7 @@ function EJ({ "data-testid": e } = {}) {
|
|
|
29197
29158
|
}
|
|
29198
29159
|
//#endregion
|
|
29199
29160
|
//#region src/composed/FacetedFilter/FacetedFilter.tsx
|
|
29200
|
-
function
|
|
29161
|
+
function TJ({ title: e, options: t, selected: n, onChange: r }) {
|
|
29201
29162
|
let i = Ke(() => new Set(n), [n]);
|
|
29202
29163
|
return /* @__PURE__ */ G(fB, { children: [/* @__PURE__ */ W(pB, {
|
|
29203
29164
|
asChild: !0,
|
|
@@ -29239,13 +29200,13 @@ function DJ({ title: e, options: t, selected: n, onChange: r }) {
|
|
|
29239
29200
|
}
|
|
29240
29201
|
//#endregion
|
|
29241
29202
|
//#region src/composed/FileUpload/FileUploadItem.tsx
|
|
29242
|
-
var
|
|
29243
|
-
function
|
|
29203
|
+
var EJ = /\.(json|ya?ml|js|jsx|ts|tsx|html?|css|py|rb|go|rs|sh)$/i;
|
|
29204
|
+
function DJ(e) {
|
|
29244
29205
|
let t = e.type;
|
|
29245
|
-
return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" :
|
|
29206
|
+
return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" : EJ.test(e.name) ? "code" : t === "application/pdf" || t.includes("document") || t.startsWith("text/") ? "document" : "other";
|
|
29246
29207
|
}
|
|
29247
|
-
function
|
|
29248
|
-
switch (
|
|
29208
|
+
function OJ({ className: e, file: t }) {
|
|
29209
|
+
switch (DJ(t)) {
|
|
29249
29210
|
case "audio": return /* @__PURE__ */ W(nt, { className: e });
|
|
29250
29211
|
case "code": return /* @__PURE__ */ W(rt, { className: e });
|
|
29251
29212
|
case "document": return /* @__PURE__ */ W(Ee, { className: e });
|
|
@@ -29254,7 +29215,7 @@ function AJ({ className: e, file: t }) {
|
|
|
29254
29215
|
case "other": return /* @__PURE__ */ W(tt, { className: e });
|
|
29255
29216
|
}
|
|
29256
29217
|
}
|
|
29257
|
-
function
|
|
29218
|
+
function kJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
29258
29219
|
let a = Ue(), o = n.status ?? "idle", s = n.progress !== void 0 && o !== "error";
|
|
29259
29220
|
return /* @__PURE__ */ G(Gz, {
|
|
29260
29221
|
variant: "outline",
|
|
@@ -29267,7 +29228,7 @@ function jJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
|
29267
29228
|
/* @__PURE__ */ W(qz, {
|
|
29268
29229
|
"aria-hidden": "true",
|
|
29269
29230
|
className: "text-muted-foreground",
|
|
29270
|
-
children: /* @__PURE__ */ W(
|
|
29231
|
+
children: /* @__PURE__ */ W(OJ, {
|
|
29271
29232
|
file: n.file,
|
|
29272
29233
|
className: "size-5"
|
|
29273
29234
|
})
|
|
@@ -29318,7 +29279,7 @@ function jJ({ className: e, item: n, onRemove: r, ...i }) {
|
|
|
29318
29279
|
}
|
|
29319
29280
|
//#endregion
|
|
29320
29281
|
//#region src/composed/FileUpload/FileUpload.tsx
|
|
29321
|
-
function
|
|
29282
|
+
function AJ({ className: e, errors: n, invalid: r, items: i, onFileRemove: a, onFilesAdd: o, onFilesReject: s, ...c }) {
|
|
29322
29283
|
let l = H.useRef(null), u = H.useId(), [d, f] = H.useState(""), p = n !== void 0 && n.length > 0, m = (e) => {
|
|
29323
29284
|
e.length === 1 ? f(`Added ${e[0].name}`) : e.length > 1 && f(`Added ${e.length} files`), o?.(e);
|
|
29324
29285
|
}, h = (e) => {
|
|
@@ -29349,7 +29310,7 @@ function MJ({ className: e, errors: n, invalid: r, items: i, onFileRemove: a, on
|
|
|
29349
29310
|
}) : null,
|
|
29350
29311
|
i.length > 0 ? /* @__PURE__ */ W("ul", {
|
|
29351
29312
|
className: "flex flex-col gap-2",
|
|
29352
|
-
children: i.map((e) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(
|
|
29313
|
+
children: i.map((e) => /* @__PURE__ */ W("li", { children: /* @__PURE__ */ W(kJ, {
|
|
29353
29314
|
item: e,
|
|
29354
29315
|
onRemove: g,
|
|
29355
29316
|
"data-file-upload-item-id": e.id
|
|
@@ -29366,7 +29327,7 @@ function MJ({ className: e, errors: n, invalid: r, items: i, onFileRemove: a, on
|
|
|
29366
29327
|
}
|
|
29367
29328
|
//#endregion
|
|
29368
29329
|
//#region src/composed/JsonSchemaForm/utils/readPath.ts
|
|
29369
|
-
function
|
|
29330
|
+
function jJ(e, t) {
|
|
29370
29331
|
if (t === "") return e;
|
|
29371
29332
|
let n = e;
|
|
29372
29333
|
for (let e of t.split(".")) {
|
|
@@ -29377,23 +29338,23 @@ function NJ(e, t) {
|
|
|
29377
29338
|
}
|
|
29378
29339
|
//#endregion
|
|
29379
29340
|
//#region src/composed/JsonSchemaForm/conditional/evalCondition.ts
|
|
29380
|
-
function
|
|
29381
|
-
for (let [n, r] of e.$eq) if (!
|
|
29341
|
+
function MJ(e, t, n) {
|
|
29342
|
+
for (let [n, r] of e.$eq) if (!NJ(t.get(n), r)) return !1;
|
|
29382
29343
|
if (e.$eqContext) {
|
|
29383
|
-
for (let [t, r] of e.$eqContext) if (!
|
|
29344
|
+
for (let [t, r] of e.$eqContext) if (!NJ(jJ(n, t), r)) return !1;
|
|
29384
29345
|
}
|
|
29385
29346
|
return !0;
|
|
29386
29347
|
}
|
|
29387
|
-
function
|
|
29348
|
+
function NJ(e, t) {
|
|
29388
29349
|
return (Array.isArray(t) ? t : [t]).includes(e);
|
|
29389
29350
|
}
|
|
29390
29351
|
//#endregion
|
|
29391
29352
|
//#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
|
|
29392
|
-
function
|
|
29353
|
+
function PJ({ condition: e, unregisterOnHide: t, children: n }) {
|
|
29393
29354
|
let { control: r, externalContext: i } = b(), a = Ke(() => Array.from(e.$eq.keys()), [e]), o = M({
|
|
29394
29355
|
control: r,
|
|
29395
29356
|
name: a
|
|
29396
|
-
}), s =
|
|
29357
|
+
}), s = MJ(e, Ke(() => {
|
|
29397
29358
|
let e = /* @__PURE__ */ new Map(), t = Array.isArray(o) ? o : [o];
|
|
29398
29359
|
return a.forEach((n, r) => e.set(n, t[r])), e;
|
|
29399
29360
|
}, [a, o]), i);
|
|
@@ -29407,12 +29368,12 @@ function IJ({ condition: e, unregisterOnHide: t, children: n }) {
|
|
|
29407
29368
|
}
|
|
29408
29369
|
//#endregion
|
|
29409
29370
|
//#region src/composed/JsonSchemaForm/conditional/DisabledGate.tsx
|
|
29410
|
-
function
|
|
29371
|
+
function FJ({ condition: e, children: t }) {
|
|
29411
29372
|
let n = b(), r = Ke(() => Array.from(e.$eq.keys()), [e]), i = M({
|
|
29412
29373
|
control: n.control,
|
|
29413
29374
|
name: r
|
|
29414
29375
|
});
|
|
29415
|
-
return
|
|
29376
|
+
return MJ(e, Ke(() => {
|
|
29416
29377
|
let e = /* @__PURE__ */ new Map(), t = Array.isArray(i) ? i : [i];
|
|
29417
29378
|
return r.forEach((n, r) => e.set(n, t[r])), e;
|
|
29418
29379
|
}, [r, i]), n.externalContext) ? /* @__PURE__ */ W(P.Provider, {
|
|
@@ -29425,7 +29386,7 @@ function LJ({ condition: e, children: t }) {
|
|
|
29425
29386
|
}
|
|
29426
29387
|
//#endregion
|
|
29427
29388
|
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
29428
|
-
function
|
|
29389
|
+
function IJ(e, t) {
|
|
29429
29390
|
return e.split(".").map((e, n) => {
|
|
29430
29391
|
let r = t[n];
|
|
29431
29392
|
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
@@ -29433,8 +29394,8 @@ function RJ(e, t) {
|
|
|
29433
29394
|
}
|
|
29434
29395
|
//#endregion
|
|
29435
29396
|
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
29436
|
-
function
|
|
29437
|
-
let n = t === "" ? [] : t.split("."), r = new Map([...e.$eq].map(([e, t]) => [
|
|
29397
|
+
function LJ(e, t) {
|
|
29398
|
+
let n = t === "" ? [] : t.split("."), r = new Map([...e.$eq].map(([e, t]) => [IJ(e, n), t]));
|
|
29438
29399
|
return e.$eqContext ? {
|
|
29439
29400
|
$eq: r,
|
|
29440
29401
|
$eqContext: e.$eqContext
|
|
@@ -29442,7 +29403,7 @@ function zJ(e, t) {
|
|
|
29442
29403
|
}
|
|
29443
29404
|
//#endregion
|
|
29444
29405
|
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
29445
|
-
function
|
|
29406
|
+
function RJ(e, t) {
|
|
29446
29407
|
if (!e) return e;
|
|
29447
29408
|
let n = {};
|
|
29448
29409
|
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
@@ -29450,17 +29411,17 @@ function BJ(e, t) {
|
|
|
29450
29411
|
}
|
|
29451
29412
|
//#endregion
|
|
29452
29413
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
29453
|
-
function
|
|
29454
|
-
return
|
|
29414
|
+
function zJ(e) {
|
|
29415
|
+
return BJ(e);
|
|
29455
29416
|
}
|
|
29456
|
-
function
|
|
29457
|
-
return
|
|
29417
|
+
function BJ(e) {
|
|
29418
|
+
return HJ(VJ({ ...e }));
|
|
29458
29419
|
}
|
|
29459
|
-
function
|
|
29420
|
+
function VJ(e) {
|
|
29460
29421
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
29461
29422
|
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
29462
29423
|
for (let a of e.allOf) {
|
|
29463
|
-
let e =
|
|
29424
|
+
let e = BJ(a);
|
|
29464
29425
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
29465
29426
|
...r,
|
|
29466
29427
|
...e.gioConfig
|
|
@@ -29469,33 +29430,33 @@ function UJ(e) {
|
|
|
29469
29430
|
let a = { ...e };
|
|
29470
29431
|
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;
|
|
29471
29432
|
}
|
|
29472
|
-
function
|
|
29473
|
-
return e.properties &&=
|
|
29433
|
+
function HJ(e) {
|
|
29434
|
+
return e.properties &&= UJ(e.properties, BJ), e.items &&= Array.isArray(e.items) ? e.items.map(BJ) : BJ(e.items), e.oneOf &&= e.oneOf.map(BJ), e.anyOf &&= e.anyOf.map(BJ), e.dependencies &&= RJ(e.dependencies, BJ), e;
|
|
29474
29435
|
}
|
|
29475
|
-
function
|
|
29436
|
+
function UJ(e, t) {
|
|
29476
29437
|
let n = {};
|
|
29477
29438
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
29478
29439
|
return n;
|
|
29479
29440
|
}
|
|
29480
29441
|
//#endregion
|
|
29481
29442
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
29482
|
-
function
|
|
29443
|
+
function WJ(e) {
|
|
29483
29444
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
29484
29445
|
}
|
|
29485
|
-
function
|
|
29446
|
+
function GJ(e) {
|
|
29486
29447
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
29487
29448
|
}
|
|
29488
29449
|
//#endregion
|
|
29489
29450
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
29490
|
-
function
|
|
29491
|
-
return
|
|
29451
|
+
function KJ(e) {
|
|
29452
|
+
return qJ(e, e, []);
|
|
29492
29453
|
}
|
|
29493
|
-
function
|
|
29454
|
+
function qJ(e, t, n) {
|
|
29494
29455
|
if (typeof e.$ref == "string") {
|
|
29495
29456
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
29496
|
-
let r =
|
|
29457
|
+
let r = JJ(t, e.$ref);
|
|
29497
29458
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
29498
|
-
let i =
|
|
29459
|
+
let i = qJ(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
29499
29460
|
...i,
|
|
29500
29461
|
...s
|
|
29501
29462
|
};
|
|
@@ -29507,25 +29468,25 @@ function YJ(e, t, n) {
|
|
|
29507
29468
|
let r = { ...e };
|
|
29508
29469
|
if (r.properties) {
|
|
29509
29470
|
let e = {};
|
|
29510
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
29471
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = qJ(a, t, n);
|
|
29511
29472
|
r.properties = e;
|
|
29512
29473
|
}
|
|
29513
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
29474
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => qJ(e, t, n)) : qJ(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => qJ(e, t, n)), r.anyOf &&= r.anyOf.map((e) => qJ(e, t, n)), r.allOf &&= r.allOf.map((e) => qJ(e, t, n)), r.dependencies &&= RJ(r.dependencies, (e) => qJ(e, t, n)), r.definitions) {
|
|
29514
29475
|
let e = {};
|
|
29515
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
29476
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = qJ(a, t, n);
|
|
29516
29477
|
r.definitions = e;
|
|
29517
29478
|
}
|
|
29518
29479
|
if (r.$defs) {
|
|
29519
29480
|
let e = {};
|
|
29520
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
29481
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = qJ(a, t, n);
|
|
29521
29482
|
r.$defs = e;
|
|
29522
29483
|
}
|
|
29523
29484
|
return r;
|
|
29524
29485
|
}
|
|
29525
|
-
function
|
|
29486
|
+
function JJ(e, t) {
|
|
29526
29487
|
if (t === "#") return e;
|
|
29527
29488
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
29528
|
-
let n = t.slice(2).split("/").map(
|
|
29489
|
+
let n = t.slice(2).split("/").map(GJ), r = e;
|
|
29529
29490
|
for (let e of n) {
|
|
29530
29491
|
if (typeof r != "object" || !r) return;
|
|
29531
29492
|
r = r[e];
|
|
@@ -29534,19 +29495,19 @@ function XJ(e, t) {
|
|
|
29534
29495
|
}
|
|
29535
29496
|
//#endregion
|
|
29536
29497
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
29537
|
-
function
|
|
29498
|
+
function YJ(e) {
|
|
29538
29499
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
29539
29500
|
}
|
|
29540
|
-
function
|
|
29501
|
+
function XJ(e) {
|
|
29541
29502
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
29542
29503
|
}
|
|
29543
|
-
function
|
|
29504
|
+
function ZJ(e) {
|
|
29544
29505
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
29545
29506
|
}
|
|
29546
|
-
function
|
|
29507
|
+
function QJ(e) {
|
|
29547
29508
|
return e.gioConfig?.uiType === "resource-type";
|
|
29548
29509
|
}
|
|
29549
|
-
function
|
|
29510
|
+
function $J(e) {
|
|
29550
29511
|
let t = e.deprecated;
|
|
29551
29512
|
if (t === !0) return !0;
|
|
29552
29513
|
if (typeof t == "string") {
|
|
@@ -29555,39 +29516,39 @@ function tY(e) {
|
|
|
29555
29516
|
}
|
|
29556
29517
|
return !1;
|
|
29557
29518
|
}
|
|
29558
|
-
function
|
|
29519
|
+
function eY(e) {
|
|
29559
29520
|
return e.format === "gio-code-editor" ? e.type === "string" || Array.isArray(e.type) && e.type.includes("string") : !1;
|
|
29560
29521
|
}
|
|
29561
|
-
function
|
|
29562
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !
|
|
29522
|
+
function tY(e) {
|
|
29523
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !YJ(e);
|
|
29563
29524
|
}
|
|
29564
|
-
function
|
|
29525
|
+
function nY(e) {
|
|
29565
29526
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
29566
29527
|
}
|
|
29567
29528
|
//#endregion
|
|
29568
29529
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
29569
|
-
function
|
|
29530
|
+
function rY(e) {
|
|
29570
29531
|
let t;
|
|
29571
29532
|
try {
|
|
29572
|
-
t =
|
|
29533
|
+
t = zJ(KJ(e));
|
|
29573
29534
|
} catch {
|
|
29574
29535
|
return;
|
|
29575
29536
|
}
|
|
29576
|
-
return
|
|
29537
|
+
return iY(t);
|
|
29577
29538
|
}
|
|
29578
|
-
function
|
|
29579
|
-
if (
|
|
29539
|
+
function iY(e) {
|
|
29540
|
+
if ($J(e)) return;
|
|
29580
29541
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
29581
29542
|
let t = {};
|
|
29582
29543
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
29583
|
-
let e =
|
|
29544
|
+
let e = iY(r);
|
|
29584
29545
|
e !== void 0 && (t[n] = e);
|
|
29585
29546
|
}
|
|
29586
|
-
let n = (e.oneOf ?? e.anyOf)?.find((e) =>
|
|
29547
|
+
let n = (e.oneOf ?? e.anyOf)?.find((e) => !$J(e));
|
|
29587
29548
|
if (n?.properties) {
|
|
29588
29549
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
29589
29550
|
else if (!(e in t)) {
|
|
29590
|
-
let n =
|
|
29551
|
+
let n = iY(r);
|
|
29591
29552
|
n !== void 0 && (t[e] = n);
|
|
29592
29553
|
}
|
|
29593
29554
|
}
|
|
@@ -29595,7 +29556,7 @@ function oY(e) {
|
|
|
29595
29556
|
}
|
|
29596
29557
|
//#endregion
|
|
29597
29558
|
//#region src/composed/JsonSchemaForm/utils/legendVariant.ts
|
|
29598
|
-
function
|
|
29559
|
+
function aY(e) {
|
|
29599
29560
|
return e > 1 ? { variant: "overline" } : {
|
|
29600
29561
|
variant: "label",
|
|
29601
29562
|
className: "font-semibold"
|
|
@@ -29603,7 +29564,7 @@ function sY(e) {
|
|
|
29603
29564
|
}
|
|
29604
29565
|
//#endregion
|
|
29605
29566
|
//#region src/composed/JsonSchemaForm/fields/array/BlockableButton.tsx
|
|
29606
|
-
function
|
|
29567
|
+
function oY({ reason: e, onClick: n, className: r, ...i }) {
|
|
29607
29568
|
let a = Ue();
|
|
29608
29569
|
return e ? /* @__PURE__ */ W(WH, {
|
|
29609
29570
|
delayDuration: 300,
|
|
@@ -29631,7 +29592,7 @@ function cY({ reason: e, onClick: n, className: r, ...i }) {
|
|
|
29631
29592
|
}
|
|
29632
29593
|
//#endregion
|
|
29633
29594
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
29634
|
-
function
|
|
29595
|
+
function sY(e) {
|
|
29635
29596
|
if (e.default !== void 0) return e.default;
|
|
29636
29597
|
switch (e.type) {
|
|
29637
29598
|
case "string": return "";
|
|
@@ -29646,43 +29607,43 @@ function lY(e) {
|
|
|
29646
29607
|
}
|
|
29647
29608
|
//#endregion
|
|
29648
29609
|
//#region src/composed/JsonSchemaForm/fields/array/itemCount.ts
|
|
29649
|
-
function
|
|
29610
|
+
function cY(e, t) {
|
|
29650
29611
|
return Number.isFinite(t) ? `${e} / ${t}` : String(e);
|
|
29651
29612
|
}
|
|
29652
|
-
function
|
|
29653
|
-
return Number.isFinite(t) ? `${e} of ${t} ${
|
|
29613
|
+
function lY(e, t) {
|
|
29614
|
+
return Number.isFinite(t) ? `${e} of ${t} ${uY(t)}` : `${e} ${uY(e)}`;
|
|
29654
29615
|
}
|
|
29655
|
-
function
|
|
29616
|
+
function uY(e) {
|
|
29656
29617
|
return e === 1 ? "item" : "items";
|
|
29657
29618
|
}
|
|
29658
29619
|
//#endregion
|
|
29659
29620
|
//#region src/composed/JsonSchemaForm/fields/array/itemTitle.ts
|
|
29660
|
-
function
|
|
29621
|
+
function dY(e) {
|
|
29661
29622
|
return (typeof e?.title == "string" ? e.title.trim() : "") || "Item";
|
|
29662
29623
|
}
|
|
29663
|
-
function
|
|
29624
|
+
function fY(e) {
|
|
29664
29625
|
return e.split(" ").map((e) => /^[A-Z0-9]{2,}s?$/.test(e) ? e : e.toLowerCase()).join(" ");
|
|
29665
29626
|
}
|
|
29666
|
-
function
|
|
29667
|
-
return
|
|
29627
|
+
function pY(e) {
|
|
29628
|
+
return fY(dY(e));
|
|
29668
29629
|
}
|
|
29669
29630
|
//#endregion
|
|
29670
29631
|
//#region src/composed/JsonSchemaForm/fields/array/summarizeItem.ts
|
|
29671
|
-
function
|
|
29632
|
+
function mY(e, t) {
|
|
29672
29633
|
let n = t?.properties;
|
|
29673
29634
|
if (!n || typeof e != "object" || !e) return;
|
|
29674
29635
|
let r = e, i = [];
|
|
29675
29636
|
for (let [e, t] of Object.entries(n)) {
|
|
29676
29637
|
let n = r[e];
|
|
29677
29638
|
if (!Array.isArray(n) || n.length === 0) continue;
|
|
29678
|
-
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ?
|
|
29639
|
+
let a = Array.isArray(t.items) ? void 0 : t.items, o = n.length === 1 ? pY(a) : fY(T(t, e));
|
|
29679
29640
|
i.push(`${n.length} ${o}`);
|
|
29680
29641
|
}
|
|
29681
29642
|
return i.length > 0 ? i.join(" · ") : void 0;
|
|
29682
29643
|
}
|
|
29683
29644
|
//#endregion
|
|
29684
29645
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
29685
|
-
function
|
|
29646
|
+
function hY(e, t) {
|
|
29686
29647
|
let n = b(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = x({
|
|
29687
29648
|
control: n.control,
|
|
29688
29649
|
name: r
|
|
@@ -29702,16 +29663,16 @@ function _Y(e, t) {
|
|
|
29702
29663
|
maxItems: u,
|
|
29703
29664
|
atMin: d,
|
|
29704
29665
|
atMax: f,
|
|
29705
|
-
addReason: !c && f ? `Maximum ${u} ${
|
|
29706
|
-
removeReason: !c && d && l > 0 ? `Minimum ${l} ${
|
|
29666
|
+
addReason: !c && f ? `Maximum ${u} ${uY(u)}` : void 0,
|
|
29667
|
+
removeReason: !c && d && l > 0 ? `Minimum ${l} ${uY(l)}` : void 0
|
|
29707
29668
|
};
|
|
29708
29669
|
}
|
|
29709
29670
|
//#endregion
|
|
29710
29671
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
29711
|
-
function
|
|
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 } =
|
|
29672
|
+
function gY({ node: e, name: n, depth: r }) {
|
|
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 } = hY(i, n), g = i.items, v = e.items, b = dY(g), x = yY(g), S = T(i, n), w = i.gioConfig?.uiBorder === "full", E = aY(r), D = Je(null), O = !e.rhfPath.split(".").includes("*"), [k, M] = Ye();
|
|
29713
29674
|
function N() {
|
|
29714
|
-
c(
|
|
29675
|
+
c(bY(g), { shouldFocus: !1 }), M(s.length), requestAnimationFrame(() => {
|
|
29715
29676
|
D.current?.lastElementChild?.querySelector("input, select, textarea, [role=combobox], [role=switch], [role=checkbox]")?.focus(), M(void 0);
|
|
29716
29677
|
});
|
|
29717
29678
|
}
|
|
@@ -29727,12 +29688,12 @@ function vY({ node: e, name: n, depth: r }) {
|
|
|
29727
29688
|
variant: "outline",
|
|
29728
29689
|
"aria-hidden": "true",
|
|
29729
29690
|
className: "order-last ml-1.5 align-middle",
|
|
29730
|
-
children:
|
|
29691
|
+
children: cY(s.length, f)
|
|
29731
29692
|
})]
|
|
29732
29693
|
}),
|
|
29733
29694
|
/* @__PURE__ */ W("p", {
|
|
29734
29695
|
className: "sr-only",
|
|
29735
|
-
children:
|
|
29696
|
+
children: lY(s.length, f)
|
|
29736
29697
|
}),
|
|
29737
29698
|
i.description && /* @__PURE__ */ W(C, { children: i.description }),
|
|
29738
29699
|
i.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: i.gioConfig.banner }),
|
|
@@ -29740,13 +29701,13 @@ function vY({ node: e, name: n, depth: r }) {
|
|
|
29740
29701
|
className: "text-sm text-muted-foreground",
|
|
29741
29702
|
children: [
|
|
29742
29703
|
"No ",
|
|
29743
|
-
|
|
29704
|
+
pY(g),
|
|
29744
29705
|
" yet."
|
|
29745
29706
|
]
|
|
29746
29707
|
}) : /* @__PURE__ */ W("div", {
|
|
29747
29708
|
ref: D,
|
|
29748
29709
|
className: t("flex flex-col", x && "gap-2"),
|
|
29749
|
-
children: s.map((e, t) => /* @__PURE__ */ W(
|
|
29710
|
+
children: s.map((e, t) => /* @__PURE__ */ W(_Y, {
|
|
29750
29711
|
index: t,
|
|
29751
29712
|
path: o,
|
|
29752
29713
|
itemsNode: v,
|
|
@@ -29762,7 +29723,7 @@ function vY({ node: e, name: n, depth: r }) {
|
|
|
29762
29723
|
}),
|
|
29763
29724
|
/* @__PURE__ */ W("div", {
|
|
29764
29725
|
className: "pt-2",
|
|
29765
|
-
children: /* @__PURE__ */ G(
|
|
29726
|
+
children: /* @__PURE__ */ G(oY, {
|
|
29766
29727
|
reason: p,
|
|
29767
29728
|
disabled: d,
|
|
29768
29729
|
type: "button",
|
|
@@ -29773,7 +29734,7 @@ function vY({ node: e, name: n, depth: r }) {
|
|
|
29773
29734
|
children: [
|
|
29774
29735
|
/* @__PURE__ */ W(Oe, { "aria-hidden": "true" }),
|
|
29775
29736
|
"Add ",
|
|
29776
|
-
|
|
29737
|
+
pY(g)
|
|
29777
29738
|
]
|
|
29778
29739
|
})
|
|
29779
29740
|
}),
|
|
@@ -29784,11 +29745,11 @@ function vY({ node: e, name: n, depth: r }) {
|
|
|
29784
29745
|
]
|
|
29785
29746
|
});
|
|
29786
29747
|
}
|
|
29787
|
-
function
|
|
29748
|
+
function _Y({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o, defaultOpen: s, disabled: c, removeReason: l, onRemove: u, ctx: d }) {
|
|
29788
29749
|
let f = `${n}.${e}`, p = `${i} ${e + 1}`, m = M({
|
|
29789
29750
|
control: d.control,
|
|
29790
29751
|
name: f
|
|
29791
|
-
}), h = o ? void 0 :
|
|
29752
|
+
}), h = o ? void 0 : mY(m, r?.schema), { errors: g, submitCount: _ } = S({
|
|
29792
29753
|
control: d.control,
|
|
29793
29754
|
name: f
|
|
29794
29755
|
}), y = v(O(g, f)), [b, x] = Ye(s || _ > 0 && y > 0), [C, w] = Ye(_);
|
|
@@ -29799,13 +29760,13 @@ function yY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29799
29760
|
basePath: f,
|
|
29800
29761
|
disabled: c
|
|
29801
29762
|
},
|
|
29802
|
-
children: /* @__PURE__ */ W(
|
|
29763
|
+
children: /* @__PURE__ */ W(tX, {
|
|
29803
29764
|
node: r,
|
|
29804
29765
|
name: "",
|
|
29805
29766
|
depth: a + 1,
|
|
29806
29767
|
hiddenTitle: p
|
|
29807
29768
|
})
|
|
29808
|
-
}), D = /* @__PURE__ */ W(
|
|
29769
|
+
}), D = /* @__PURE__ */ W(oY, {
|
|
29809
29770
|
reason: l,
|
|
29810
29771
|
disabled: c,
|
|
29811
29772
|
type: "button",
|
|
@@ -29838,7 +29799,7 @@ function yY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29838
29799
|
"aria-label": [
|
|
29839
29800
|
`Toggle ${p}`,
|
|
29840
29801
|
h,
|
|
29841
|
-
T > 0 ?
|
|
29802
|
+
T > 0 ? vY(T) : void 0
|
|
29842
29803
|
].filter(Boolean).join(", "),
|
|
29843
29804
|
children: [
|
|
29844
29805
|
/* @__PURE__ */ W(le, {
|
|
@@ -29867,7 +29828,7 @@ function yY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29867
29828
|
"aria-hidden": "true",
|
|
29868
29829
|
"data-icon": "inline-start",
|
|
29869
29830
|
className: "overflow-visible"
|
|
29870
|
-
}),
|
|
29831
|
+
}), vY(T)]
|
|
29871
29832
|
})
|
|
29872
29833
|
]
|
|
29873
29834
|
})
|
|
@@ -29882,28 +29843,28 @@ function yY({ index: e, path: n, itemsNode: r, itemTitle: i, depth: a, inline: o
|
|
|
29882
29843
|
})]
|
|
29883
29844
|
});
|
|
29884
29845
|
}
|
|
29885
|
-
function
|
|
29846
|
+
function vY(e) {
|
|
29886
29847
|
return `${e} ${e === 1 ? "error" : "errors"}`;
|
|
29887
29848
|
}
|
|
29888
|
-
function
|
|
29849
|
+
function yY(e) {
|
|
29889
29850
|
if (Array.isArray(e.enum)) return !0;
|
|
29890
29851
|
let t = Array.isArray(e.type) ? e.type.find((e) => e !== "null") : e.type;
|
|
29891
29852
|
return t === "string" || t === "number" || t === "integer" || t === "boolean";
|
|
29892
29853
|
}
|
|
29893
|
-
function
|
|
29894
|
-
let t =
|
|
29895
|
-
return t === void 0 ?
|
|
29854
|
+
function bY(e) {
|
|
29855
|
+
let t = rY(e);
|
|
29856
|
+
return t === void 0 ? sY(e) : t;
|
|
29896
29857
|
}
|
|
29897
29858
|
//#endregion
|
|
29898
29859
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
29899
|
-
function
|
|
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 } =
|
|
29860
|
+
function xY({ node: e, name: t, depth: n }) {
|
|
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 } = hY(r, t), { testIdPrefix: m } = i, g = r.items, v = g && !Array.isArray(g) ? g.properties ?? {} : {}, b = Object.keys(v), x = T(r, t), S = dY(g);
|
|
29901
29862
|
function w() {
|
|
29902
29863
|
let e = {};
|
|
29903
|
-
for (let t of b) e[t] =
|
|
29864
|
+
for (let t of b) e[t] = sY(v[t]);
|
|
29904
29865
|
s(e, { shouldFocus: !1 });
|
|
29905
29866
|
}
|
|
29906
|
-
let E =
|
|
29867
|
+
let E = aY(n);
|
|
29907
29868
|
return /* @__PURE__ */ G(h, {
|
|
29908
29869
|
"aria-required": r.isRequired || void 0,
|
|
29909
29870
|
children: [
|
|
@@ -29915,12 +29876,12 @@ function CY({ node: e, name: t, depth: n }) {
|
|
|
29915
29876
|
variant: "outline",
|
|
29916
29877
|
"aria-hidden": "true",
|
|
29917
29878
|
className: "order-last ml-1.5 align-middle",
|
|
29918
|
-
children:
|
|
29879
|
+
children: cY(o.length, d)
|
|
29919
29880
|
})]
|
|
29920
29881
|
}),
|
|
29921
29882
|
/* @__PURE__ */ W("p", {
|
|
29922
29883
|
className: "sr-only",
|
|
29923
|
-
children:
|
|
29884
|
+
children: lY(o.length, d)
|
|
29924
29885
|
}),
|
|
29925
29886
|
r.description && /* @__PURE__ */ W(C, { children: r.description }),
|
|
29926
29887
|
r.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: r.gioConfig.banner }),
|
|
@@ -29928,11 +29889,11 @@ function CY({ node: e, name: t, depth: n }) {
|
|
|
29928
29889
|
className: "overflow-hidden rounded-lg border",
|
|
29929
29890
|
children: /* @__PURE__ */ G(fW, { children: [/* @__PURE__ */ W(pW, { children: /* @__PURE__ */ G(gW, { children: [b.map((e) => /* @__PURE__ */ W(_W, {
|
|
29930
29891
|
scope: "col",
|
|
29931
|
-
children:
|
|
29892
|
+
children: wY(v[e], e)
|
|
29932
29893
|
}, e)), /* @__PURE__ */ W(_W, {
|
|
29933
29894
|
"aria-hidden": "true",
|
|
29934
29895
|
className: "w-px"
|
|
29935
|
-
})] }) }), /* @__PURE__ */ W(mW, { children: o.map((e, t) => /* @__PURE__ */ W(
|
|
29896
|
+
})] }) }), /* @__PURE__ */ W(mW, { children: o.map((e, t) => /* @__PURE__ */ W(SY, {
|
|
29936
29897
|
rowIndex: t,
|
|
29937
29898
|
itemTitle: S,
|
|
29938
29899
|
rowPath: `${a}.${t}`,
|
|
@@ -29943,7 +29904,7 @@ function CY({ node: e, name: t, depth: n }) {
|
|
|
29943
29904
|
onRemove: () => c(t)
|
|
29944
29905
|
}, e.id)) })] })
|
|
29945
29906
|
}),
|
|
29946
|
-
/* @__PURE__ */ W("div", { children: /* @__PURE__ */ G(
|
|
29907
|
+
/* @__PURE__ */ W("div", { children: /* @__PURE__ */ G(oY, {
|
|
29947
29908
|
reason: f,
|
|
29948
29909
|
disabled: u,
|
|
29949
29910
|
type: "button",
|
|
@@ -29954,7 +29915,7 @@ function CY({ node: e, name: t, depth: n }) {
|
|
|
29954
29915
|
children: [
|
|
29955
29916
|
/* @__PURE__ */ W(Oe, { "aria-hidden": "true" }),
|
|
29956
29917
|
"Add ",
|
|
29957
|
-
|
|
29918
|
+
pY(g)
|
|
29958
29919
|
]
|
|
29959
29920
|
}) }),
|
|
29960
29921
|
/* @__PURE__ */ W(_, {
|
|
@@ -29964,9 +29925,9 @@ function CY({ node: e, name: t, depth: n }) {
|
|
|
29964
29925
|
]
|
|
29965
29926
|
});
|
|
29966
29927
|
}
|
|
29967
|
-
function
|
|
29928
|
+
function SY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperties: i, disabled: a, removeReason: o, onRemove: s }) {
|
|
29968
29929
|
let { testIdPrefix: c } = b();
|
|
29969
|
-
return /* @__PURE__ */ G(gW, { children: [r.map((t) => /* @__PURE__ */ W(
|
|
29930
|
+
return /* @__PURE__ */ G(gW, { children: [r.map((t) => /* @__PURE__ */ W(CY, {
|
|
29970
29931
|
columnKey: t,
|
|
29971
29932
|
cellPath: `${n}.${t}`,
|
|
29972
29933
|
propSchema: i[t],
|
|
@@ -29974,7 +29935,7 @@ function wY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperti
|
|
|
29974
29935
|
disabled: a
|
|
29975
29936
|
}, t)), /* @__PURE__ */ W(vW, {
|
|
29976
29937
|
className: "w-px",
|
|
29977
|
-
children: /* @__PURE__ */ W(
|
|
29938
|
+
children: /* @__PURE__ */ W(oY, {
|
|
29978
29939
|
reason: o,
|
|
29979
29940
|
disabled: a,
|
|
29980
29941
|
type: "button",
|
|
@@ -29988,7 +29949,7 @@ function wY({ rowIndex: e, itemTitle: t, rowPath: n, columnKeys: r, itemProperti
|
|
|
29988
29949
|
})
|
|
29989
29950
|
})] });
|
|
29990
29951
|
}
|
|
29991
|
-
function
|
|
29952
|
+
function CY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
29992
29953
|
let { control: a, testIdPrefix: o } = b(), { field: s, fieldState: c } = I({
|
|
29993
29954
|
control: a,
|
|
29994
29955
|
name: t
|
|
@@ -30001,17 +29962,17 @@ function TY({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
30001
29962
|
onBlur: u,
|
|
30002
29963
|
disabled: i,
|
|
30003
29964
|
"aria-invalid": c.invalid,
|
|
30004
|
-
"aria-label": `${
|
|
29965
|
+
"aria-label": `${wY(n, e)} for row ${r + 1}`,
|
|
30005
29966
|
"data-testid": A(o, t),
|
|
30006
29967
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
30007
29968
|
}) });
|
|
30008
29969
|
}
|
|
30009
|
-
function
|
|
29970
|
+
function wY(e, t) {
|
|
30010
29971
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
30011
29972
|
}
|
|
30012
29973
|
//#endregion
|
|
30013
29974
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
30014
|
-
function
|
|
29975
|
+
function TY({ node: e, name: t, hiddenTitle: n }) {
|
|
30015
29976
|
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({
|
|
30016
29977
|
control: r,
|
|
30017
29978
|
name: c,
|
|
@@ -30044,19 +30005,40 @@ function DY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30044
30005
|
});
|
|
30045
30006
|
}
|
|
30046
30007
|
//#endregion
|
|
30008
|
+
//#region src/composed/JsonSchemaForm/fields/const/ConstField.tsx
|
|
30009
|
+
function EY({ node: e, name: t }) {
|
|
30010
|
+
let { control: n, basePath: r, testIdPrefix: a } = b(), { schema: o } = e, s = t ? r ? `${r}.${t}` : t : r, { field: c, fieldState: l } = I({
|
|
30011
|
+
control: n,
|
|
30012
|
+
name: s
|
|
30013
|
+
}), { value: u, onChange: d } = c, f = o.const;
|
|
30014
|
+
return He(() => {
|
|
30015
|
+
u === void 0 && d(structuredClone(f));
|
|
30016
|
+
}, [
|
|
30017
|
+
u,
|
|
30018
|
+
d,
|
|
30019
|
+
f
|
|
30020
|
+
]), l.error ? /* @__PURE__ */ G(k, {
|
|
30021
|
+
"data-invalid": !0,
|
|
30022
|
+
children: [/* @__PURE__ */ W(i, { children: T(o, t) }), /* @__PURE__ */ W(_, {
|
|
30023
|
+
errors: j(l.error),
|
|
30024
|
+
"data-testid": A(a, s, "error")
|
|
30025
|
+
})]
|
|
30026
|
+
}) : null;
|
|
30027
|
+
}
|
|
30028
|
+
//#endregion
|
|
30047
30029
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
30048
|
-
function
|
|
30030
|
+
function DY(e, t) {
|
|
30049
30031
|
let n = t?.[String(e)];
|
|
30050
30032
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
30051
30033
|
}
|
|
30052
|
-
function
|
|
30034
|
+
function OY(e, t) {
|
|
30053
30035
|
return e.map((e, n) => ({
|
|
30054
30036
|
raw: e,
|
|
30055
30037
|
key: String(n),
|
|
30056
|
-
label:
|
|
30038
|
+
label: DY(e, t)
|
|
30057
30039
|
}));
|
|
30058
30040
|
}
|
|
30059
|
-
function
|
|
30041
|
+
function kY(e) {
|
|
30060
30042
|
return e.map((e, t) => ({
|
|
30061
30043
|
raw: e.const,
|
|
30062
30044
|
key: String(t),
|
|
@@ -30065,12 +30047,12 @@ function AY(e) {
|
|
|
30065
30047
|
}
|
|
30066
30048
|
//#endregion
|
|
30067
30049
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
30068
|
-
function
|
|
30050
|
+
function AY({ node: e, name: t, hiddenTitle: n }) {
|
|
30069
30051
|
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({
|
|
30070
30052
|
control: r,
|
|
30071
30053
|
name: c,
|
|
30072
30054
|
defaultValue: s.default
|
|
30073
|
-
}), { ref: d, onBlur: f } = l, p = n ?? T(s, t), m = a || s.readOnly === !0, h =
|
|
30055
|
+
}), { ref: d, onBlur: f } = l, p = n ?? T(s, t), m = a || s.readOnly === !0, h = jY(s), g = h.find((e) => Object.is(e.raw, l.value))?.key ?? "", v = (e) => h.find((t) => t.key === e)?.raw;
|
|
30074
30056
|
return /* @__PURE__ */ G(k, {
|
|
30075
30057
|
"data-invalid": u.invalid,
|
|
30076
30058
|
children: [
|
|
@@ -30107,18 +30089,18 @@ function jY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30107
30089
|
]
|
|
30108
30090
|
});
|
|
30109
30091
|
}
|
|
30110
|
-
function
|
|
30111
|
-
return
|
|
30092
|
+
function jY(e) {
|
|
30093
|
+
return YJ(e) ? kY(e.oneOf ?? []) : OY(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
30112
30094
|
}
|
|
30113
30095
|
//#endregion
|
|
30114
30096
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
30115
|
-
function
|
|
30097
|
+
function MY({ node: e, name: t }) {
|
|
30116
30098
|
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({
|
|
30117
30099
|
control: n,
|
|
30118
30100
|
name: s,
|
|
30119
30101
|
defaultValue: Array.isArray(o.default) ? o.default : []
|
|
30120
|
-
}), { ref: u, onBlur: d, onChange: f, value: p } = c, m = Cj(), h = T(o, t), g = i || o.readOnly === !0, v = o.items, y =
|
|
30121
|
-
return
|
|
30102
|
+
}), { ref: u, onBlur: d, onChange: f, value: p } = c, m = Cj(), h = T(o, t), g = i || o.readOnly === !0, v = o.items, y = OY(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);
|
|
30103
|
+
return NY({
|
|
30122
30104
|
schema: o,
|
|
30123
30105
|
options: y,
|
|
30124
30106
|
value: p,
|
|
@@ -30174,19 +30156,19 @@ function NY({ node: e, name: t }) {
|
|
|
30174
30156
|
]
|
|
30175
30157
|
});
|
|
30176
30158
|
}
|
|
30177
|
-
function
|
|
30159
|
+
function NY({ schema: e, options: t, value: n, onReset: r }) {
|
|
30178
30160
|
He(() => {
|
|
30179
30161
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
30180
30162
|
}, [e]);
|
|
30181
30163
|
}
|
|
30182
30164
|
//#endregion
|
|
30183
30165
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
30184
|
-
function
|
|
30166
|
+
function PY() {
|
|
30185
30167
|
return null;
|
|
30186
30168
|
}
|
|
30187
30169
|
//#endregion
|
|
30188
30170
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
30189
|
-
function
|
|
30171
|
+
function FY({ node: e, name: t, hiddenTitle: n }) {
|
|
30190
30172
|
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({
|
|
30191
30173
|
control: r,
|
|
30192
30174
|
name: c
|
|
@@ -30234,8 +30216,8 @@ function IY({ node: e, name: t, hiddenTitle: n }) {
|
|
|
30234
30216
|
}
|
|
30235
30217
|
//#endregion
|
|
30236
30218
|
//#region src/composed/JsonSchemaForm/conditional/useDependencyBranchSync.ts
|
|
30237
|
-
function
|
|
30238
|
-
let i = Ke(() => t.map((e) =>
|
|
30219
|
+
function IY(e, t, n, r) {
|
|
30220
|
+
let i = Ke(() => t.map((e) => LJ(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(() => {
|
|
30239
30221
|
let e = /* @__PURE__ */ new Set();
|
|
30240
30222
|
for (let t of i) for (let n of t.$eq.keys()) e.add(n);
|
|
30241
30223
|
return Array.from(e);
|
|
@@ -30250,7 +30232,7 @@ function LY(e, t, n, r) {
|
|
|
30250
30232
|
o.forEach((e, r) => t.set(e, n[r]));
|
|
30251
30233
|
let l = /* @__PURE__ */ new Set();
|
|
30252
30234
|
i.forEach((e, n) => {
|
|
30253
|
-
if (
|
|
30235
|
+
if (MJ(e, t, r)) for (let e of a[n]) l.add(e);
|
|
30254
30236
|
});
|
|
30255
30237
|
let u = Array.from(l).sort().join("|");
|
|
30256
30238
|
if (u === c.current) return;
|
|
@@ -30267,21 +30249,21 @@ function LY(e, t, n, r) {
|
|
|
30267
30249
|
r
|
|
30268
30250
|
]);
|
|
30269
30251
|
}
|
|
30270
|
-
function
|
|
30252
|
+
function LY({ branches: e, basePath: t }) {
|
|
30271
30253
|
let { control: n, externalContext: r } = b();
|
|
30272
|
-
return
|
|
30254
|
+
return IY(n, e, t, r), null;
|
|
30273
30255
|
}
|
|
30274
30256
|
//#endregion
|
|
30275
30257
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
30276
|
-
function
|
|
30258
|
+
function RY(e, t, n, r) {
|
|
30277
30259
|
if (e.length === 0) return -1;
|
|
30278
30260
|
let i = n?.get(t);
|
|
30279
|
-
return
|
|
30261
|
+
return zY(i, e) && BY(e[i], r) ? i : VY(e, r);
|
|
30280
30262
|
}
|
|
30281
|
-
function
|
|
30263
|
+
function zY(e, t) {
|
|
30282
30264
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
30283
30265
|
}
|
|
30284
|
-
function
|
|
30266
|
+
function BY(e, t) {
|
|
30285
30267
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
30286
30268
|
if (n.const !== void 0) return t(e) === n.const;
|
|
30287
30269
|
if (typeof n.pattern == "string") {
|
|
@@ -30291,18 +30273,18 @@ function VY(e, t) {
|
|
|
30291
30273
|
return !0;
|
|
30292
30274
|
});
|
|
30293
30275
|
}
|
|
30294
|
-
function
|
|
30276
|
+
function VY(e, t) {
|
|
30295
30277
|
let n = 0, r = {
|
|
30296
30278
|
viable: !1,
|
|
30297
30279
|
matches: -1
|
|
30298
30280
|
};
|
|
30299
30281
|
return e.forEach((e, i) => {
|
|
30300
|
-
let a =
|
|
30301
|
-
|
|
30282
|
+
let a = HY(e, t);
|
|
30283
|
+
UY(a, r) > 0 && (n = i, r = a);
|
|
30302
30284
|
}), n;
|
|
30303
30285
|
}
|
|
30304
|
-
function
|
|
30305
|
-
return
|
|
30286
|
+
function HY(e, t) {
|
|
30287
|
+
return BY(e, t) ? {
|
|
30306
30288
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
30307
30289
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
30308
30290
|
} : {
|
|
@@ -30310,13 +30292,13 @@ function UY(e, t) {
|
|
|
30310
30292
|
matches: -1
|
|
30311
30293
|
};
|
|
30312
30294
|
}
|
|
30313
|
-
function
|
|
30295
|
+
function UY(e, t) {
|
|
30314
30296
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
30315
30297
|
}
|
|
30316
30298
|
//#endregion
|
|
30317
30299
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
30318
|
-
function
|
|
30319
|
-
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(() =>
|
|
30300
|
+
function WY({ node: e, depth: t }) {
|
|
30301
|
+
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(() => RY(l.map((e) => e.raw), a, c, (e) => r._getWatch(a ? `${a}.${e}` : e))), f = Ke(() => l[u]?.dependencyBranches ?? [], [l, u]);
|
|
30320
30302
|
if (l.length === 0) return null;
|
|
30321
30303
|
let p = l[u] ?? l[0], m = n.disabled || s.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
|
|
30322
30304
|
if (e === u) return;
|
|
@@ -30353,22 +30335,22 @@ function GY({ node: e, depth: t }) {
|
|
|
30353
30335
|
p.raw.description && /* @__PURE__ */ W(C, { children: p.raw.description }),
|
|
30354
30336
|
p.raw.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: p.raw.gioConfig.banner })
|
|
30355
30337
|
] }),
|
|
30356
|
-
p.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(
|
|
30338
|
+
p.consts.map(({ key: e, value: t }) => /* @__PURE__ */ W(GY, {
|
|
30357
30339
|
path: a ? `${a}.${e}` : e,
|
|
30358
30340
|
value: t
|
|
30359
30341
|
}, e)),
|
|
30360
|
-
Array.from(p.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(
|
|
30342
|
+
Array.from(p.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ W(tX, {
|
|
30361
30343
|
node: n,
|
|
30362
30344
|
name: e,
|
|
30363
30345
|
depth: t + 1
|
|
30364
30346
|
}, `${u}-${e}`)),
|
|
30365
|
-
f.length > 0 && /* @__PURE__ */ W(
|
|
30347
|
+
f.length > 0 && /* @__PURE__ */ W(LY, {
|
|
30366
30348
|
branches: f,
|
|
30367
30349
|
basePath: a
|
|
30368
30350
|
}),
|
|
30369
|
-
f.map((e, n) => /* @__PURE__ */ W(
|
|
30370
|
-
condition:
|
|
30371
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(
|
|
30351
|
+
f.map((e, n) => /* @__PURE__ */ W(PJ, {
|
|
30352
|
+
condition: LJ(e.showIf, a),
|
|
30353
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ W(tX, {
|
|
30372
30354
|
node: n,
|
|
30373
30355
|
name: e,
|
|
30374
30356
|
depth: t + 1
|
|
@@ -30376,7 +30358,7 @@ function GY({ node: e, depth: t }) {
|
|
|
30376
30358
|
}, `${u}-var-dep-${n}`))
|
|
30377
30359
|
] });
|
|
30378
30360
|
}
|
|
30379
|
-
function
|
|
30361
|
+
function GY({ path: e, value: t }) {
|
|
30380
30362
|
let { control: n } = b(), { field: r } = I({
|
|
30381
30363
|
control: n,
|
|
30382
30364
|
name: e
|
|
@@ -30387,36 +30369,36 @@ function KY({ path: e, value: t }) {
|
|
|
30387
30369
|
}
|
|
30388
30370
|
//#endregion
|
|
30389
30371
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
30390
|
-
function
|
|
30391
|
-
let a = b(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c =
|
|
30372
|
+
function KY({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
30373
|
+
let a = b(), { schema: o } = e, s = n ? a.basePath ? `${a.basePath}.${n}` : n : a.basePath, c = tY(o) || nY(o), l = Ke(() => e.dependencyBranches ?? [], [e.dependencyBranches]), u = l.length > 0, d = (e.properties || c || u) && /* @__PURE__ */ W(P.Provider, {
|
|
30392
30374
|
value: {
|
|
30393
30375
|
...a,
|
|
30394
30376
|
basePath: s
|
|
30395
30377
|
},
|
|
30396
30378
|
children: /* @__PURE__ */ G(L, { children: [
|
|
30397
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
30379
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(tX, {
|
|
30398
30380
|
node: t,
|
|
30399
30381
|
name: e,
|
|
30400
30382
|
depth: r + 1
|
|
30401
30383
|
}, e)),
|
|
30402
|
-
u && /* @__PURE__ */ W(
|
|
30384
|
+
u && /* @__PURE__ */ W(LY, {
|
|
30403
30385
|
branches: l,
|
|
30404
30386
|
basePath: s
|
|
30405
30387
|
}),
|
|
30406
|
-
l.map((e, t) => /* @__PURE__ */ W(
|
|
30407
|
-
condition:
|
|
30408
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(
|
|
30388
|
+
l.map((e, t) => /* @__PURE__ */ W(PJ, {
|
|
30389
|
+
condition: LJ(e.showIf, s),
|
|
30390
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ W(tX, {
|
|
30409
30391
|
node: t,
|
|
30410
30392
|
name: e,
|
|
30411
30393
|
depth: r + 1
|
|
30412
30394
|
}, e))
|
|
30413
30395
|
}, `dep-${t}`)),
|
|
30414
|
-
c && /* @__PURE__ */ W(
|
|
30396
|
+
c && /* @__PURE__ */ W(WY, {
|
|
30415
30397
|
node: e,
|
|
30416
30398
|
depth: r
|
|
30417
30399
|
})
|
|
30418
30400
|
] })
|
|
30419
|
-
}), f = typeof o.title == "string" && o.title.length > 0 || n !== void 0 && n.length > 0, p = o.gioConfig?.uiBorder === "full", m =
|
|
30401
|
+
}), f = typeof o.title == "string" && o.title.length > 0 || n !== void 0 && n.length > 0, p = o.gioConfig?.uiBorder === "full", m = aY(r);
|
|
30420
30402
|
return r === 0 || !f ? /* @__PURE__ */ W(Qe, { children: d }) : /* @__PURE__ */ G(h, {
|
|
30421
30403
|
"aria-label": i,
|
|
30422
30404
|
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),
|
|
@@ -30435,7 +30417,7 @@ function qY({ node: e, name: n, depth: r, hiddenTitle: i }) {
|
|
|
30435
30417
|
}
|
|
30436
30418
|
//#endregion
|
|
30437
30419
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
30438
|
-
function
|
|
30420
|
+
function qY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, "data-testid": o, ...s }) {
|
|
30439
30421
|
let [c, l] = Ye(!1);
|
|
30440
30422
|
return /* @__PURE__ */ G($A, {
|
|
30441
30423
|
className: e,
|
|
@@ -30463,15 +30445,15 @@ function JY({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
30463
30445
|
})]
|
|
30464
30446
|
});
|
|
30465
30447
|
}
|
|
30466
|
-
|
|
30448
|
+
qY.displayName = "PasswordInput";
|
|
30467
30449
|
//#endregion
|
|
30468
30450
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
30469
|
-
var
|
|
30470
|
-
function
|
|
30451
|
+
var JY = "{#request.headers['x-custom'] == 'value'}";
|
|
30452
|
+
function YY({ node: n, name: r, hiddenTitle: i }) {
|
|
30471
30453
|
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({
|
|
30472
30454
|
control: a,
|
|
30473
30455
|
name: u
|
|
30474
|
-
}), 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 ?
|
|
30456
|
+
}), 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 ? JY : void 0), x = v ? "font-mono text-xs" : void 0, S = {
|
|
30475
30457
|
id: u,
|
|
30476
30458
|
value: g,
|
|
30477
30459
|
onChange: d.onChange,
|
|
@@ -30494,13 +30476,13 @@ function XY({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30494
30476
|
required: l.isRequired,
|
|
30495
30477
|
className: i === void 0 ? void 0 : "sr-only",
|
|
30496
30478
|
children: p
|
|
30497
|
-
}), v && /* @__PURE__ */ W(
|
|
30479
|
+
}), v && /* @__PURE__ */ W(wJ, { "data-testid": A(c, u, "el") })]
|
|
30498
30480
|
}),
|
|
30499
30481
|
l.gioConfig?.banner && /* @__PURE__ */ W(F, { banner: l.gioConfig.banner }),
|
|
30500
30482
|
l.format === "text" ? /* @__PURE__ */ W(e, {
|
|
30501
30483
|
...S,
|
|
30502
30484
|
className: x
|
|
30503
|
-
}) : l.format === "password" ? /* @__PURE__ */ W(
|
|
30485
|
+
}) : l.format === "password" ? /* @__PURE__ */ W(qY, {
|
|
30504
30486
|
...S,
|
|
30505
30487
|
pattern: l.pattern
|
|
30506
30488
|
}) : /* @__PURE__ */ W(QA, {
|
|
@@ -30519,23 +30501,23 @@ function XY({ node: n, name: r, hiddenTitle: i }) {
|
|
|
30519
30501
|
}
|
|
30520
30502
|
//#endregion
|
|
30521
30503
|
//#region src/composed/JsonSchemaForm/fields/resource/ResourceTypeField.tsx
|
|
30522
|
-
function
|
|
30523
|
-
let { externalContext: n } = b(), r =
|
|
30524
|
-
return r === null ? /* @__PURE__ */ W(
|
|
30504
|
+
function XY({ node: e, name: t }) {
|
|
30505
|
+
let { externalContext: n } = b(), r = $Y(n);
|
|
30506
|
+
return r === null ? /* @__PURE__ */ W(YY, {
|
|
30525
30507
|
node: e,
|
|
30526
30508
|
name: t
|
|
30527
|
-
}) : /* @__PURE__ */ W(
|
|
30509
|
+
}) : /* @__PURE__ */ W(ZY, {
|
|
30528
30510
|
node: e,
|
|
30529
30511
|
name: t,
|
|
30530
30512
|
injected: r
|
|
30531
30513
|
});
|
|
30532
30514
|
}
|
|
30533
|
-
function
|
|
30515
|
+
function ZY({ node: e, name: t, injected: n }) {
|
|
30534
30516
|
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({
|
|
30535
30517
|
control: r,
|
|
30536
30518
|
name: c,
|
|
30537
30519
|
defaultValue: s.default
|
|
30538
|
-
}), { ref: d, onBlur: f } = l, p =
|
|
30520
|
+
}), { ref: d, onBlur: f } = l, p = QY(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 : "";
|
|
30539
30521
|
g !== "" && !h.includes(g) && h.unshift(g);
|
|
30540
30522
|
let v = T(s, t), y = a || s.readOnly === !0, x = h.length === 0 ? "No matching resources on this API" : "Select a resource…";
|
|
30541
30523
|
return /* @__PURE__ */ G(k, {
|
|
@@ -30573,163 +30555,166 @@ function QY({ node: e, name: t, injected: n }) {
|
|
|
30573
30555
|
]
|
|
30574
30556
|
});
|
|
30575
30557
|
}
|
|
30576
|
-
function
|
|
30558
|
+
function QY(e) {
|
|
30577
30559
|
return typeof e == "string" ? [e] : Array.isArray(e) ? e.filter((e) => typeof e == "string") : [];
|
|
30578
30560
|
}
|
|
30579
|
-
function
|
|
30561
|
+
function $Y(e) {
|
|
30580
30562
|
let t = e?.resources;
|
|
30581
30563
|
return Array.isArray(t) ? t.filter((e) => typeof e == "object" && !!e && typeof e.name == "string" && typeof e.type == "string") : null;
|
|
30582
30564
|
}
|
|
30583
30565
|
//#endregion
|
|
30584
30566
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
30585
|
-
var
|
|
30586
|
-
function
|
|
30587
|
-
let { basePath: i } = b(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = Ke(() => [s], [s]), l = Ke(() => e.displayIf ?
|
|
30567
|
+
var eX = Re(() => import("./CodeEditorField-DiY1yxIw.js").then((e) => ({ default: e.CodeEditorField })));
|
|
30568
|
+
function tX({ node: e, name: t, depth: n = 0, hiddenTitle: r }) {
|
|
30569
|
+
let { basePath: i } = b(), { schema: a } = e, o = t ?? "", s = t ? i ? `${i}.${t}` : t : i, c = Ke(() => [s], [s]), l = Ke(() => e.displayIf ? LJ(e.displayIf, i) : void 0, [e.displayIf, i]), u = Ke(() => e.disableIf ? LJ(e.disableIf, i) : void 0, [e.disableIf, i]);
|
|
30588
30570
|
if (a.deprecated === !0) return null;
|
|
30589
|
-
let d =
|
|
30590
|
-
return d === null ? null : (u && (d = /* @__PURE__ */ W(
|
|
30571
|
+
let d = nX(e, o, t, n, r);
|
|
30572
|
+
return d === null ? null : (u && (d = /* @__PURE__ */ W(FJ, {
|
|
30591
30573
|
condition: u,
|
|
30592
30574
|
children: d
|
|
30593
|
-
})), l ? /* @__PURE__ */ W(
|
|
30575
|
+
})), l ? /* @__PURE__ */ W(PJ, {
|
|
30594
30576
|
condition: l,
|
|
30595
30577
|
unregisterOnHide: c,
|
|
30596
30578
|
children: d
|
|
30597
30579
|
}) : d);
|
|
30598
30580
|
}
|
|
30599
|
-
function
|
|
30600
|
-
let { schema: a } = e, o =
|
|
30601
|
-
return
|
|
30581
|
+
function nX(e, t, n, r, i) {
|
|
30582
|
+
let { schema: a } = e, o = rX(a.type);
|
|
30583
|
+
return a.const !== void 0 && a.type === void 0 && a.enum === void 0 ? /* @__PURE__ */ W(EY, {
|
|
30584
|
+
node: e,
|
|
30585
|
+
name: t
|
|
30586
|
+
}) : Array.isArray(a.enum) && a.enum.length > 0 || YJ(a) ? /* @__PURE__ */ W(AY, {
|
|
30602
30587
|
node: e,
|
|
30603
30588
|
name: t,
|
|
30604
30589
|
hiddenTitle: i
|
|
30605
|
-
}) :
|
|
30590
|
+
}) : XJ(a) ? /* @__PURE__ */ W(MY, {
|
|
30606
30591
|
node: e,
|
|
30607
30592
|
name: t
|
|
30608
|
-
}) :
|
|
30593
|
+
}) : ZJ(a) ? /* @__PURE__ */ W(xY, {
|
|
30609
30594
|
node: e,
|
|
30610
30595
|
name: t,
|
|
30611
30596
|
depth: r
|
|
30612
|
-
}) :
|
|
30597
|
+
}) : eY(a) ? /* @__PURE__ */ W(Pe, {
|
|
30613
30598
|
fallback: null,
|
|
30614
|
-
children: /* @__PURE__ */ W(
|
|
30599
|
+
children: /* @__PURE__ */ W(eX, {
|
|
30615
30600
|
node: e,
|
|
30616
30601
|
name: t
|
|
30617
30602
|
})
|
|
30618
|
-
}) : o === "null" ? /* @__PURE__ */ W(
|
|
30603
|
+
}) : o === "null" ? /* @__PURE__ */ W(PY, {}) : o === "boolean" ? /* @__PURE__ */ W(TY, {
|
|
30619
30604
|
node: e,
|
|
30620
30605
|
name: t,
|
|
30621
30606
|
hiddenTitle: i
|
|
30622
|
-
}) : o === "integer" || o === "number" ? /* @__PURE__ */ W(
|
|
30607
|
+
}) : o === "integer" || o === "number" ? /* @__PURE__ */ W(FY, {
|
|
30623
30608
|
node: e,
|
|
30624
30609
|
name: t,
|
|
30625
30610
|
hiddenTitle: i
|
|
30626
|
-
}) :
|
|
30611
|
+
}) : QJ(a) ? /* @__PURE__ */ W(XY, {
|
|
30627
30612
|
node: e,
|
|
30628
30613
|
name: t
|
|
30629
|
-
}) : o === "string" ? /* @__PURE__ */ W(
|
|
30614
|
+
}) : o === "string" ? /* @__PURE__ */ W(YY, {
|
|
30630
30615
|
node: e,
|
|
30631
30616
|
name: t,
|
|
30632
30617
|
hiddenTitle: i
|
|
30633
|
-
}) : a.properties || o === "object" ||
|
|
30618
|
+
}) : a.properties || o === "object" || tY(a) || nY(a) ? /* @__PURE__ */ W(KY, {
|
|
30634
30619
|
node: e,
|
|
30635
30620
|
name: n,
|
|
30636
30621
|
depth: r,
|
|
30637
30622
|
hiddenTitle: i
|
|
30638
|
-
}) : o === "array" && a.items && !Array.isArray(a.items) ? /* @__PURE__ */ W(
|
|
30623
|
+
}) : o === "array" && a.items && !Array.isArray(a.items) ? /* @__PURE__ */ W(gY, {
|
|
30639
30624
|
node: e,
|
|
30640
30625
|
name: n,
|
|
30641
30626
|
depth: r
|
|
30642
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
30627
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${iX(a)}). Field is omitted.`), null);
|
|
30643
30628
|
}
|
|
30644
|
-
function
|
|
30629
|
+
function rX(e) {
|
|
30645
30630
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
30646
30631
|
}
|
|
30647
|
-
function
|
|
30648
|
-
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" :
|
|
30632
|
+
function iX(e) {
|
|
30633
|
+
return e.type ? Array.isArray(e.type) ? e.type.join("|") : e.type : e.oneOf ? "oneOf" : e.anyOf ? "anyOf" : e.allOf ? "allOf" : "unknown";
|
|
30649
30634
|
}
|
|
30650
30635
|
//#endregion
|
|
30651
30636
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
30652
|
-
function
|
|
30653
|
-
return
|
|
30637
|
+
function aX(e) {
|
|
30638
|
+
return oX(e);
|
|
30654
30639
|
}
|
|
30655
|
-
function
|
|
30640
|
+
function oX(e) {
|
|
30656
30641
|
let t = { ...e };
|
|
30657
30642
|
if (t.properties) {
|
|
30658
30643
|
let e = new Set(t.required ?? []), n = {};
|
|
30659
30644
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
30660
|
-
let t =
|
|
30645
|
+
let t = oX(i);
|
|
30661
30646
|
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;
|
|
30662
30647
|
}
|
|
30663
30648
|
t.properties = n;
|
|
30664
30649
|
}
|
|
30665
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
30650
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(oX) : oX(t.items), t.oneOf &&= t.oneOf.map(oX), t.anyOf &&= t.anyOf.map(oX), t.allOf &&= t.allOf.map(oX), t.dependencies &&= RJ(t.dependencies, oX), t;
|
|
30666
30651
|
}
|
|
30667
30652
|
//#endregion
|
|
30668
30653
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
30669
|
-
function
|
|
30670
|
-
if (
|
|
30654
|
+
function sX(e) {
|
|
30655
|
+
if ($J(e)) return { deprecated: !0 };
|
|
30671
30656
|
let t = { ...e };
|
|
30672
30657
|
if (e.properties) {
|
|
30673
30658
|
let n = [];
|
|
30674
30659
|
t.properties = {};
|
|
30675
|
-
for (let [r, i] of Object.entries(e.properties))
|
|
30660
|
+
for (let [r, i] of Object.entries(e.properties)) $J(i) && n.push(r), t.properties[r] = sX(i);
|
|
30676
30661
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
30677
30662
|
}
|
|
30678
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
30663
|
+
return e.items && !Array.isArray(e.items) && (t.items = sX(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => !$J(e)).map(sX)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => !$J(e)).map(sX)), e.dependencies && (t.dependencies = RJ(e.dependencies, sX)), t;
|
|
30679
30664
|
}
|
|
30680
30665
|
//#endregion
|
|
30681
30666
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
30682
|
-
function
|
|
30683
|
-
let n =
|
|
30667
|
+
function cX(e, t = "") {
|
|
30668
|
+
let n = aX(sX(zJ(KJ(e)))), r = /* @__PURE__ */ new Map();
|
|
30684
30669
|
return {
|
|
30685
|
-
root:
|
|
30670
|
+
root: lX(n, "", !1, r, "", t),
|
|
30686
30671
|
nodeByPath: r,
|
|
30687
30672
|
variantIndices: /* @__PURE__ */ new Map()
|
|
30688
30673
|
};
|
|
30689
30674
|
}
|
|
30690
|
-
function
|
|
30675
|
+
function lX(e, t, n, r, i = "", a = "") {
|
|
30691
30676
|
let o = {
|
|
30692
30677
|
rhfPath: t,
|
|
30693
30678
|
schema: e,
|
|
30694
30679
|
isRequired: n
|
|
30695
30680
|
};
|
|
30696
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
30681
|
+
if (e.gioConfig?.displayIf && (o.displayIf = mX(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = mX(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
30697
30682
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
30698
30683
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
30699
30684
|
let e = t ? `${t}.${o}` : o;
|
|
30700
|
-
i.set(o,
|
|
30685
|
+
i.set(o, lX(s, e, n.has(o), r, t, a));
|
|
30701
30686
|
}
|
|
30702
30687
|
o.properties = i;
|
|
30703
30688
|
}
|
|
30704
30689
|
if (e.items && !Array.isArray(e.items)) {
|
|
30705
30690
|
let n = t ? `${t}.*` : "*";
|
|
30706
|
-
o.items =
|
|
30691
|
+
o.items = lX(e.items, n, !1, r, t, a);
|
|
30707
30692
|
}
|
|
30708
30693
|
let s = e.oneOf ?? e.anyOf;
|
|
30709
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
30710
|
-
let n =
|
|
30694
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = uX(s).map((e) => dX(e, t, a))), e.dependencies) {
|
|
30695
|
+
let n = gX(e.dependencies, t, a);
|
|
30711
30696
|
n.length > 0 && (o.dependencyBranches = n);
|
|
30712
30697
|
}
|
|
30713
30698
|
return r.set(t, o), o;
|
|
30714
30699
|
}
|
|
30715
|
-
function
|
|
30700
|
+
function uX(e) {
|
|
30716
30701
|
let t = /* @__PURE__ */ new Set();
|
|
30717
30702
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
30718
30703
|
}
|
|
30719
|
-
function
|
|
30704
|
+
function dX(e, t, n) {
|
|
30720
30705
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
30721
30706
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
30722
|
-
let e =
|
|
30707
|
+
let e = fX(s);
|
|
30723
30708
|
e && a.push({
|
|
30724
30709
|
key: o,
|
|
30725
30710
|
value: e.value
|
|
30726
30711
|
});
|
|
30727
30712
|
let c = t ? `${t}.${o}` : o;
|
|
30728
|
-
i.set(o,
|
|
30713
|
+
i.set(o, pX(s, c, r.has(o), t, n));
|
|
30729
30714
|
}
|
|
30730
30715
|
let o;
|
|
30731
30716
|
if (e.dependencies) {
|
|
30732
|
-
let r =
|
|
30717
|
+
let r = gX(e.dependencies, t, n);
|
|
30733
30718
|
r.length > 0 && (o = r);
|
|
30734
30719
|
}
|
|
30735
30720
|
return {
|
|
@@ -30739,21 +30724,21 @@ function fX(e, t, n) {
|
|
|
30739
30724
|
raw: e
|
|
30740
30725
|
};
|
|
30741
30726
|
}
|
|
30742
|
-
function
|
|
30727
|
+
function fX(e) {
|
|
30743
30728
|
if (e.const !== void 0) return { value: e.const };
|
|
30744
30729
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
30745
30730
|
}
|
|
30746
|
-
function
|
|
30747
|
-
return
|
|
30731
|
+
function pX(e, t, n, r, i) {
|
|
30732
|
+
return lX(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
30748
30733
|
}
|
|
30749
|
-
function
|
|
30734
|
+
function mX(e, t, n) {
|
|
30750
30735
|
let r = /* @__PURE__ */ new Map(), i = /* @__PURE__ */ new Map();
|
|
30751
30736
|
for (let [a, o] of Object.entries(e.$eq)) {
|
|
30752
30737
|
if (a.startsWith("context.")) {
|
|
30753
30738
|
i.set(a.slice(8), o);
|
|
30754
30739
|
continue;
|
|
30755
30740
|
}
|
|
30756
|
-
let e =
|
|
30741
|
+
let e = hX(a, t, n);
|
|
30757
30742
|
if (e === null) {
|
|
30758
30743
|
console.warn(`[JsonSchemaForm] gioConfig path "${a}" is unsupported (expected value.X / ./X / ../X / context.X).`);
|
|
30759
30744
|
continue;
|
|
@@ -30765,7 +30750,7 @@ function hX(e, t, n) {
|
|
|
30765
30750
|
$eqContext: i
|
|
30766
30751
|
} : { $eq: r };
|
|
30767
30752
|
}
|
|
30768
|
-
function
|
|
30753
|
+
function hX(e, t, n) {
|
|
30769
30754
|
let r = null;
|
|
30770
30755
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
30771
30756
|
else if (e.startsWith("./")) {
|
|
@@ -30779,24 +30764,24 @@ function gX(e, t, n) {
|
|
|
30779
30764
|
}
|
|
30780
30765
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
30781
30766
|
}
|
|
30782
|
-
function
|
|
30767
|
+
function gX(e, t, n) {
|
|
30783
30768
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
30784
|
-
let i =
|
|
30769
|
+
let i = _X(e, r);
|
|
30785
30770
|
if (!i) return [];
|
|
30786
30771
|
let a = t ? `${t}.${e}` : e;
|
|
30787
|
-
return i.map((r) =>
|
|
30772
|
+
return i.map((r) => vX(r, e, a, t, n));
|
|
30788
30773
|
});
|
|
30789
30774
|
}
|
|
30790
|
-
function
|
|
30775
|
+
function _X(e, t) {
|
|
30791
30776
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
30792
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
30777
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && fX(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);
|
|
30793
30778
|
}
|
|
30794
|
-
function
|
|
30795
|
-
let a =
|
|
30779
|
+
function vX(e, t, n, r, i) {
|
|
30780
|
+
let a = fX(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
30796
30781
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
30797
30782
|
if (n === t) continue;
|
|
30798
30783
|
let e = r ? `${r}.${n}` : n;
|
|
30799
|
-
s.set(n,
|
|
30784
|
+
s.set(n, pX(a, e, o.has(n), r, i));
|
|
30800
30785
|
}
|
|
30801
30786
|
let c = i ? `${i}.${n}` : n;
|
|
30802
30787
|
return {
|
|
@@ -30807,12 +30792,12 @@ function yX(e, t, n, r, i) {
|
|
|
30807
30792
|
}
|
|
30808
30793
|
//#endregion
|
|
30809
30794
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
30810
|
-
function
|
|
30795
|
+
function yX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i, "data-testid": a }) {
|
|
30811
30796
|
let o = Ke(() => {
|
|
30812
30797
|
try {
|
|
30813
30798
|
return {
|
|
30814
30799
|
ok: !0,
|
|
30815
|
-
value:
|
|
30800
|
+
value: cX(e, n)
|
|
30816
30801
|
};
|
|
30817
30802
|
} catch (e) {
|
|
30818
30803
|
return {
|
|
@@ -30843,7 +30828,7 @@ function bX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i,
|
|
|
30843
30828
|
]);
|
|
30844
30829
|
return s.ok ? /* @__PURE__ */ W(P.Provider, {
|
|
30845
30830
|
value: s.contextValue,
|
|
30846
|
-
children: /* @__PURE__ */ W(
|
|
30831
|
+
children: /* @__PURE__ */ W(tX, { node: s.contextValue.index.root })
|
|
30847
30832
|
}) : /* @__PURE__ */ G("p", {
|
|
30848
30833
|
role: "alert",
|
|
30849
30834
|
className: "text-sm text-destructive",
|
|
@@ -30853,7 +30838,7 @@ function bX({ schema: e, control: t, name: n = "", disabled: r = !1, context: i,
|
|
|
30853
30838
|
}
|
|
30854
30839
|
//#endregion
|
|
30855
30840
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
30856
|
-
function
|
|
30841
|
+
function bX(...e) {
|
|
30857
30842
|
return async (t, n, r) => {
|
|
30858
30843
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
30859
30844
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -30868,7 +30853,7 @@ function xX(...e) {
|
|
|
30868
30853
|
}
|
|
30869
30854
|
//#endregion
|
|
30870
30855
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
30871
|
-
var
|
|
30856
|
+
var xX = /* @__PURE__ */ K(((e) => {
|
|
30872
30857
|
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;
|
|
30873
30858
|
var t = class {};
|
|
30874
30859
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -30973,9 +30958,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
30973
30958
|
return new r(e.toString());
|
|
30974
30959
|
}
|
|
30975
30960
|
e.regexpCode = g;
|
|
30976
|
-
})),
|
|
30961
|
+
})), SX = /* @__PURE__ */ K(((e) => {
|
|
30977
30962
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
30978
|
-
var t =
|
|
30963
|
+
var t = xX(), n = class extends Error {
|
|
30979
30964
|
constructor(e) {
|
|
30980
30965
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
30981
30966
|
}
|
|
@@ -31084,9 +31069,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31084
31069
|
return c;
|
|
31085
31070
|
}
|
|
31086
31071
|
};
|
|
31087
|
-
})),
|
|
31072
|
+
})), CX = /* @__PURE__ */ K(((e) => {
|
|
31088
31073
|
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;
|
|
31089
|
-
var t =
|
|
31074
|
+
var t = xX(), n = SX(), r = xX();
|
|
31090
31075
|
Object.defineProperty(e, "_", {
|
|
31091
31076
|
enumerable: !0,
|
|
31092
31077
|
get: function() {
|
|
@@ -31128,7 +31113,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31128
31113
|
return r.Name;
|
|
31129
31114
|
}
|
|
31130
31115
|
});
|
|
31131
|
-
var i =
|
|
31116
|
+
var i = SX();
|
|
31132
31117
|
Object.defineProperty(e, "Scope", {
|
|
31133
31118
|
enumerable: !0,
|
|
31134
31119
|
get: function() {
|
|
@@ -31599,9 +31584,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31599
31584
|
function L(e) {
|
|
31600
31585
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
31601
31586
|
}
|
|
31602
|
-
})),
|
|
31587
|
+
})), wX = /* @__PURE__ */ K(((e) => {
|
|
31603
31588
|
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;
|
|
31604
|
-
var t =
|
|
31589
|
+
var t = CX(), n = xX();
|
|
31605
31590
|
function r(e) {
|
|
31606
31591
|
let t = {};
|
|
31607
31592
|
for (let n of e) t[n] = !0;
|
|
@@ -31724,9 +31709,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31724
31709
|
}
|
|
31725
31710
|
}
|
|
31726
31711
|
e.checkStrictMode = x;
|
|
31727
|
-
})),
|
|
31712
|
+
})), TX = /* @__PURE__ */ K(((e) => {
|
|
31728
31713
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
31729
|
-
var t =
|
|
31714
|
+
var t = CX();
|
|
31730
31715
|
e.default = {
|
|
31731
31716
|
data: new t.Name("data"),
|
|
31732
31717
|
valCxt: new t.Name("valCxt"),
|
|
@@ -31745,9 +31730,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31745
31730
|
jsonLen: new t.Name("jsonLen"),
|
|
31746
31731
|
jsonPart: new t.Name("jsonPart")
|
|
31747
31732
|
};
|
|
31748
|
-
})),
|
|
31733
|
+
})), EX = /* @__PURE__ */ K(((e) => {
|
|
31749
31734
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
31750
|
-
var t =
|
|
31735
|
+
var t = CX(), n = wX(), r = TX();
|
|
31751
31736
|
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)` };
|
|
31752
31737
|
function i(n, r = e.keywordError, i, a) {
|
|
31753
31738
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -31809,9 +31794,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31809
31794
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
31810
31795
|
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]);
|
|
31811
31796
|
}
|
|
31812
|
-
})),
|
|
31797
|
+
})), DX = /* @__PURE__ */ K(((e) => {
|
|
31813
31798
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
31814
|
-
var t =
|
|
31799
|
+
var t = EX(), n = CX(), r = TX(), i = { message: "boolean schema is false" };
|
|
31815
31800
|
function a(e) {
|
|
31816
31801
|
let { gen: t, schema: i, validateName: a } = e;
|
|
31817
31802
|
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));
|
|
@@ -31835,7 +31820,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31835
31820
|
};
|
|
31836
31821
|
(0, t.reportError)(o, i, void 0, n);
|
|
31837
31822
|
}
|
|
31838
|
-
})),
|
|
31823
|
+
})), OX = /* @__PURE__ */ K(((e) => {
|
|
31839
31824
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
31840
31825
|
var t = new Set([
|
|
31841
31826
|
"string",
|
|
@@ -31889,7 +31874,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31889
31874
|
};
|
|
31890
31875
|
}
|
|
31891
31876
|
e.getRules = r;
|
|
31892
|
-
})),
|
|
31877
|
+
})), kX = /* @__PURE__ */ K(((e) => {
|
|
31893
31878
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
31894
31879
|
function t({ schema: e, self: t }, r) {
|
|
31895
31880
|
let i = t.RULES.types[r];
|
|
@@ -31904,9 +31889,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
31904
31889
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
31905
31890
|
}
|
|
31906
31891
|
e.shouldUseRule = r;
|
|
31907
|
-
})),
|
|
31892
|
+
})), AX = /* @__PURE__ */ K(((e) => {
|
|
31908
31893
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
31909
|
-
var t =
|
|
31894
|
+
var t = OX(), n = kX(), r = EX(), i = CX(), a = wX(), o;
|
|
31910
31895
|
(function(e) {
|
|
31911
31896
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
31912
31897
|
})(o || (e.DataType = o = {}));
|
|
@@ -32041,9 +32026,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32041
32026
|
it: e
|
|
32042
32027
|
};
|
|
32043
32028
|
}
|
|
32044
|
-
})),
|
|
32029
|
+
})), jX = /* @__PURE__ */ K(((e) => {
|
|
32045
32030
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
32046
|
-
var t =
|
|
32031
|
+
var t = CX(), n = wX();
|
|
32047
32032
|
function r(e, t) {
|
|
32048
32033
|
let { properties: n, items: r } = e.schema;
|
|
32049
32034
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -32061,9 +32046,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32061
32046
|
let u = (0, t._)`${l} === undefined`;
|
|
32062
32047
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
32063
32048
|
}
|
|
32064
|
-
})),
|
|
32049
|
+
})), MX = /* @__PURE__ */ K(((e) => {
|
|
32065
32050
|
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;
|
|
32066
|
-
var t =
|
|
32051
|
+
var t = CX(), n = wX(), r = TX(), i = wX();
|
|
32067
32052
|
function a(e, n) {
|
|
32068
32053
|
let { gen: r, data: i, it: a } = e;
|
|
32069
32054
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -32165,9 +32150,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32165
32150
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
32166
32151
|
}
|
|
32167
32152
|
e.validateUnion = v;
|
|
32168
|
-
})),
|
|
32153
|
+
})), NX = /* @__PURE__ */ K(((e) => {
|
|
32169
32154
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
32170
|
-
var t =
|
|
32155
|
+
var t = CX(), n = TX(), r = MX(), i = EX();
|
|
32171
32156
|
function a(e, n) {
|
|
32172
32157
|
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);
|
|
32173
32158
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -32246,9 +32231,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32246
32231
|
}
|
|
32247
32232
|
}
|
|
32248
32233
|
e.validateKeywordUsage = f;
|
|
32249
|
-
})),
|
|
32234
|
+
})), PX = /* @__PURE__ */ K(((e) => {
|
|
32250
32235
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
32251
|
-
var t =
|
|
32236
|
+
var t = CX(), n = wX();
|
|
32252
32237
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
32253
32238
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
32254
32239
|
if (r !== void 0) {
|
|
@@ -32292,7 +32277,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32292
32277
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
32293
32278
|
}
|
|
32294
32279
|
e.extendSubschemaMode = a;
|
|
32295
|
-
})),
|
|
32280
|
+
})), FX = /* @__PURE__ */ K(((e, t) => {
|
|
32296
32281
|
t.exports = function e(t, n) {
|
|
32297
32282
|
if (t === n) return !0;
|
|
32298
32283
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -32316,7 +32301,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32316
32301
|
}
|
|
32317
32302
|
return t !== t && n !== n;
|
|
32318
32303
|
};
|
|
32319
|
-
})),
|
|
32304
|
+
})), IX = /* @__PURE__ */ K(((e, t) => {
|
|
32320
32305
|
var n = t.exports = function(e, t, n) {
|
|
32321
32306
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
32322
32307
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -32379,9 +32364,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32379
32364
|
function i(e) {
|
|
32380
32365
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
32381
32366
|
}
|
|
32382
|
-
})),
|
|
32367
|
+
})), LX = /* @__PURE__ */ K(((e) => {
|
|
32383
32368
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
32384
|
-
var t =
|
|
32369
|
+
var t = wX(), n = FX(), r = IX(), i = new Set([
|
|
32385
32370
|
"type",
|
|
32386
32371
|
"format",
|
|
32387
32372
|
"pattern",
|
|
@@ -32470,9 +32455,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32470
32455
|
}
|
|
32471
32456
|
}
|
|
32472
32457
|
e.getSchemaRefs = h;
|
|
32473
|
-
})),
|
|
32458
|
+
})), RX = /* @__PURE__ */ K(((e) => {
|
|
32474
32459
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
32475
|
-
var t =
|
|
32460
|
+
var t = DX(), n = AX(), r = kX(), i = AX(), a = jX(), o = NX(), s = PX(), c = CX(), l = TX(), u = LX(), d = wX(), f = EX();
|
|
32476
32461
|
function p(e) {
|
|
32477
32462
|
if (S(e) && (w(e), x(e))) {
|
|
32478
32463
|
_(e);
|
|
@@ -32762,23 +32747,23 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32762
32747
|
}
|
|
32763
32748
|
}
|
|
32764
32749
|
e.getData = se;
|
|
32765
|
-
})),
|
|
32750
|
+
})), zX = /* @__PURE__ */ K(((e) => {
|
|
32766
32751
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
32767
32752
|
constructor(e) {
|
|
32768
32753
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
32769
32754
|
}
|
|
32770
32755
|
};
|
|
32771
|
-
})),
|
|
32756
|
+
})), BX = /* @__PURE__ */ K(((e) => {
|
|
32772
32757
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
32773
|
-
var t =
|
|
32758
|
+
var t = LX();
|
|
32774
32759
|
e.default = class extends Error {
|
|
32775
32760
|
constructor(e, n, r, i) {
|
|
32776
32761
|
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));
|
|
32777
32762
|
}
|
|
32778
32763
|
};
|
|
32779
|
-
})),
|
|
32764
|
+
})), VX = /* @__PURE__ */ K(((e) => {
|
|
32780
32765
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
32781
|
-
var t =
|
|
32766
|
+
var t = CX(), n = zX(), r = TX(), i = LX(), a = wX(), o = RX(), s = class {
|
|
32782
32767
|
constructor(e) {
|
|
32783
32768
|
this.refs = {}, this.dynamicAnchors = {};
|
|
32784
32769
|
let t;
|
|
@@ -32937,27 +32922,27 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
32937
32922
|
baseId: t
|
|
32938
32923
|
}), o.schema !== o.root.schema) return o;
|
|
32939
32924
|
}
|
|
32940
|
-
})),
|
|
32941
|
-
$id: () =>
|
|
32925
|
+
})), HX = /* @__PURE__ */ pt({
|
|
32926
|
+
$id: () => UX,
|
|
32942
32927
|
additionalProperties: () => !1,
|
|
32943
|
-
default: () =>
|
|
32944
|
-
description: () =>
|
|
32945
|
-
properties: () =>
|
|
32946
|
-
required: () =>
|
|
32947
|
-
type: () =>
|
|
32948
|
-
}), WX, GX, KX, qX, JX, YX
|
|
32949
|
-
|
|
32928
|
+
default: () => JX,
|
|
32929
|
+
description: () => WX,
|
|
32930
|
+
properties: () => qX,
|
|
32931
|
+
required: () => KX,
|
|
32932
|
+
type: () => GX
|
|
32933
|
+
}), UX, WX, GX, KX, qX, JX, YX = ft((() => {
|
|
32934
|
+
UX = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", WX = "Meta-schema for $data reference (JSON AnySchema extension proposal)", GX = "object", KX = ["$data"], qX = { $data: {
|
|
32950
32935
|
type: "string",
|
|
32951
32936
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
32952
|
-
} },
|
|
32953
|
-
$id:
|
|
32954
|
-
description:
|
|
32955
|
-
type:
|
|
32956
|
-
required:
|
|
32957
|
-
properties:
|
|
32937
|
+
} }, JX = {
|
|
32938
|
+
$id: UX,
|
|
32939
|
+
description: WX,
|
|
32940
|
+
type: GX,
|
|
32941
|
+
required: KX,
|
|
32942
|
+
properties: qX,
|
|
32958
32943
|
additionalProperties: !1
|
|
32959
32944
|
};
|
|
32960
|
-
})),
|
|
32945
|
+
})), XX = /* @__PURE__ */ K(((e, t) => {
|
|
32961
32946
|
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);
|
|
32962
32947
|
{
|
|
32963
32948
|
let e = "0123456789ABCDEF";
|
|
@@ -33306,8 +33291,8 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
33306
33291
|
normalizeIPv6: b,
|
|
33307
33292
|
stringArrayToHexStripped: f
|
|
33308
33293
|
};
|
|
33309
|
-
})),
|
|
33310
|
-
var { isUUID: n } =
|
|
33294
|
+
})), ZX = /* @__PURE__ */ K(((e, t) => {
|
|
33295
|
+
var { isUUID: n } = XX(), r = /^([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-./:;=@]|%[\da-f]{2})+)$/iu, i = [
|
|
33311
33296
|
"http",
|
|
33312
33297
|
"https",
|
|
33313
33298
|
"ws",
|
|
@@ -33412,8 +33397,8 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
33412
33397
|
isValidSchemeName: a,
|
|
33413
33398
|
getSchemeHandler: y
|
|
33414
33399
|
};
|
|
33415
|
-
})),
|
|
33416
|
-
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 } =
|
|
33400
|
+
})), QX = /* @__PURE__ */ K(((e, t) => {
|
|
33401
|
+
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 } = XX(), { SCHEMES: m, getSchemeHandler: h } = ZX(), g = /^[A-Za-z][A-Za-z0-9+.-]*$/u, _ = "URI scheme is malformed.";
|
|
33417
33402
|
function v(e) {
|
|
33418
33403
|
let t = unescape(String(e));
|
|
33419
33404
|
if (!g.test(t)) throw TypeError(_);
|
|
@@ -33582,20 +33567,20 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
33582
33567
|
parse: N
|
|
33583
33568
|
};
|
|
33584
33569
|
t.exports = L, t.exports.default = L, t.exports.fastUri = L;
|
|
33585
|
-
})),
|
|
33570
|
+
})), $X = /* @__PURE__ */ K(((e) => {
|
|
33586
33571
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33587
|
-
var t =
|
|
33572
|
+
var t = QX();
|
|
33588
33573
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
33589
|
-
})),
|
|
33574
|
+
})), eZ = /* @__PURE__ */ K(((e) => {
|
|
33590
33575
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
33591
|
-
var t =
|
|
33576
|
+
var t = RX();
|
|
33592
33577
|
Object.defineProperty(e, "KeywordCxt", {
|
|
33593
33578
|
enumerable: !0,
|
|
33594
33579
|
get: function() {
|
|
33595
33580
|
return t.KeywordCxt;
|
|
33596
33581
|
}
|
|
33597
33582
|
});
|
|
33598
|
-
var n =
|
|
33583
|
+
var n = CX();
|
|
33599
33584
|
Object.defineProperty(e, "_", {
|
|
33600
33585
|
enumerable: !0,
|
|
33601
33586
|
get: function() {
|
|
@@ -33627,7 +33612,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
33627
33612
|
return n.CodeGen;
|
|
33628
33613
|
}
|
|
33629
33614
|
});
|
|
33630
|
-
var r =
|
|
33615
|
+
var r = zX(), i = BX(), a = OX(), o = VX(), s = CX(), c = LX(), l = AX(), u = wX(), d = (YX(), gt(HX).default), f = $X(), p = (e, t) => new RegExp(e, t);
|
|
33631
33616
|
p.code = "new RegExp";
|
|
33632
33617
|
var m = [
|
|
33633
33618
|
"removeAdditional",
|
|
@@ -34013,16 +33998,16 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34013
33998
|
function F(e) {
|
|
34014
33999
|
return { anyOf: [e, P] };
|
|
34015
34000
|
}
|
|
34016
|
-
})),
|
|
34001
|
+
})), tZ = /* @__PURE__ */ K(((e) => {
|
|
34017
34002
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34018
34003
|
keyword: "id",
|
|
34019
34004
|
code() {
|
|
34020
34005
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
34021
34006
|
}
|
|
34022
34007
|
};
|
|
34023
|
-
})),
|
|
34008
|
+
})), nZ = /* @__PURE__ */ K(((e) => {
|
|
34024
34009
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
34025
|
-
var t =
|
|
34010
|
+
var t = BX(), n = MX(), r = CX(), i = TX(), a = VX(), o = wX(), s = {
|
|
34026
34011
|
keyword: "$ref",
|
|
34027
34012
|
schemaType: "string",
|
|
34028
34013
|
code(e) {
|
|
@@ -34095,9 +34080,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34095
34080
|
}
|
|
34096
34081
|
}
|
|
34097
34082
|
e.callRef = l, e.default = s;
|
|
34098
|
-
})),
|
|
34083
|
+
})), rZ = /* @__PURE__ */ K(((e) => {
|
|
34099
34084
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34100
|
-
var t =
|
|
34085
|
+
var t = tZ(), n = nZ();
|
|
34101
34086
|
e.default = [
|
|
34102
34087
|
"$schema",
|
|
34103
34088
|
"$id",
|
|
@@ -34108,9 +34093,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34108
34093
|
t.default,
|
|
34109
34094
|
n.default
|
|
34110
34095
|
];
|
|
34111
|
-
})),
|
|
34096
|
+
})), iZ = /* @__PURE__ */ K(((e) => {
|
|
34112
34097
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34113
|
-
var t =
|
|
34098
|
+
var t = CX(), n = t.operators, r = {
|
|
34114
34099
|
maximum: {
|
|
34115
34100
|
okStr: "<=",
|
|
34116
34101
|
ok: n.LTE,
|
|
@@ -34146,9 +34131,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34146
34131
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
34147
34132
|
}
|
|
34148
34133
|
};
|
|
34149
|
-
})),
|
|
34134
|
+
})), aZ = /* @__PURE__ */ K(((e) => {
|
|
34150
34135
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34151
|
-
var t =
|
|
34136
|
+
var t = CX();
|
|
34152
34137
|
e.default = {
|
|
34153
34138
|
keyword: "multipleOf",
|
|
34154
34139
|
type: "number",
|
|
@@ -34163,7 +34148,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34163
34148
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
34164
34149
|
}
|
|
34165
34150
|
};
|
|
34166
|
-
})),
|
|
34151
|
+
})), oZ = /* @__PURE__ */ K(((e) => {
|
|
34167
34152
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34168
34153
|
function t(e) {
|
|
34169
34154
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -34171,9 +34156,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34171
34156
|
return n;
|
|
34172
34157
|
}
|
|
34173
34158
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
34174
|
-
})),
|
|
34159
|
+
})), sZ = /* @__PURE__ */ K(((e) => {
|
|
34175
34160
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34176
|
-
var t =
|
|
34161
|
+
var t = CX(), n = wX(), r = oZ();
|
|
34177
34162
|
e.default = {
|
|
34178
34163
|
keyword: ["maxLength", "minLength"],
|
|
34179
34164
|
type: "string",
|
|
@@ -34191,9 +34176,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34191
34176
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
34192
34177
|
}
|
|
34193
34178
|
};
|
|
34194
|
-
})),
|
|
34179
|
+
})), cZ = /* @__PURE__ */ K(((e) => {
|
|
34195
34180
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34196
|
-
var t =
|
|
34181
|
+
var t = MX(), n = wX(), r = CX();
|
|
34197
34182
|
e.default = {
|
|
34198
34183
|
keyword: "pattern",
|
|
34199
34184
|
type: "string",
|
|
@@ -34214,9 +34199,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34214
34199
|
}
|
|
34215
34200
|
}
|
|
34216
34201
|
};
|
|
34217
|
-
})),
|
|
34202
|
+
})), lZ = /* @__PURE__ */ K(((e) => {
|
|
34218
34203
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34219
|
-
var t =
|
|
34204
|
+
var t = CX();
|
|
34220
34205
|
e.default = {
|
|
34221
34206
|
keyword: ["maxProperties", "minProperties"],
|
|
34222
34207
|
type: "object",
|
|
@@ -34234,9 +34219,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34234
34219
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
34235
34220
|
}
|
|
34236
34221
|
};
|
|
34237
|
-
})),
|
|
34222
|
+
})), uZ = /* @__PURE__ */ K(((e) => {
|
|
34238
34223
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34239
|
-
var t =
|
|
34224
|
+
var t = MX(), n = CX(), r = wX();
|
|
34240
34225
|
e.default = {
|
|
34241
34226
|
keyword: "required",
|
|
34242
34227
|
type: "object",
|
|
@@ -34282,9 +34267,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34282
34267
|
}
|
|
34283
34268
|
}
|
|
34284
34269
|
};
|
|
34285
|
-
})),
|
|
34270
|
+
})), dZ = /* @__PURE__ */ K(((e) => {
|
|
34286
34271
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34287
|
-
var t =
|
|
34272
|
+
var t = CX();
|
|
34288
34273
|
e.default = {
|
|
34289
34274
|
keyword: ["maxItems", "minItems"],
|
|
34290
34275
|
type: "array",
|
|
@@ -34302,13 +34287,13 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34302
34287
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
34303
34288
|
}
|
|
34304
34289
|
};
|
|
34305
|
-
})),
|
|
34290
|
+
})), fZ = /* @__PURE__ */ K(((e) => {
|
|
34306
34291
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34307
|
-
var t =
|
|
34292
|
+
var t = FX();
|
|
34308
34293
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
34309
|
-
})),
|
|
34294
|
+
})), pZ = /* @__PURE__ */ K(((e) => {
|
|
34310
34295
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34311
|
-
var t =
|
|
34296
|
+
var t = AX(), n = CX(), r = wX(), i = fZ();
|
|
34312
34297
|
e.default = {
|
|
34313
34298
|
keyword: "uniqueItems",
|
|
34314
34299
|
type: "array",
|
|
@@ -34349,9 +34334,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34349
34334
|
}
|
|
34350
34335
|
}
|
|
34351
34336
|
};
|
|
34352
|
-
})),
|
|
34337
|
+
})), mZ = /* @__PURE__ */ K(((e) => {
|
|
34353
34338
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34354
|
-
var t =
|
|
34339
|
+
var t = CX(), n = wX(), r = fZ();
|
|
34355
34340
|
e.default = {
|
|
34356
34341
|
keyword: "const",
|
|
34357
34342
|
$data: !0,
|
|
@@ -34364,9 +34349,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34364
34349
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
34365
34350
|
}
|
|
34366
34351
|
};
|
|
34367
|
-
})),
|
|
34352
|
+
})), hZ = /* @__PURE__ */ K(((e) => {
|
|
34368
34353
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34369
|
-
var t =
|
|
34354
|
+
var t = CX(), n = wX(), r = fZ();
|
|
34370
34355
|
e.default = {
|
|
34371
34356
|
keyword: "enum",
|
|
34372
34357
|
schemaType: "array",
|
|
@@ -34396,9 +34381,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34396
34381
|
}
|
|
34397
34382
|
}
|
|
34398
34383
|
};
|
|
34399
|
-
})),
|
|
34384
|
+
})), gZ = /* @__PURE__ */ K(((e) => {
|
|
34400
34385
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34401
|
-
var t =
|
|
34386
|
+
var t = iZ(), n = aZ(), r = sZ(), i = cZ(), a = lZ(), o = uZ(), s = dZ(), c = pZ(), l = mZ(), u = hZ();
|
|
34402
34387
|
e.default = [
|
|
34403
34388
|
t.default,
|
|
34404
34389
|
n.default,
|
|
@@ -34419,9 +34404,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34419
34404
|
l.default,
|
|
34420
34405
|
u.default
|
|
34421
34406
|
];
|
|
34422
|
-
})),
|
|
34407
|
+
})), _Z = /* @__PURE__ */ K(((e) => {
|
|
34423
34408
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
34424
|
-
var t =
|
|
34409
|
+
var t = CX(), n = wX(), r = {
|
|
34425
34410
|
keyword: "additionalItems",
|
|
34426
34411
|
type: "array",
|
|
34427
34412
|
schemaType: ["boolean", "object"],
|
|
@@ -34459,9 +34444,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34459
34444
|
}
|
|
34460
34445
|
}
|
|
34461
34446
|
e.validateAdditionalItems = i, e.default = r;
|
|
34462
|
-
})),
|
|
34447
|
+
})), vZ = /* @__PURE__ */ K(((e) => {
|
|
34463
34448
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
34464
|
-
var t =
|
|
34449
|
+
var t = CX(), n = wX(), r = MX(), i = {
|
|
34465
34450
|
keyword: "items",
|
|
34466
34451
|
type: "array",
|
|
34467
34452
|
schemaType: [
|
|
@@ -34496,9 +34481,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34496
34481
|
}
|
|
34497
34482
|
}
|
|
34498
34483
|
e.validateTuple = a, e.default = i;
|
|
34499
|
-
})),
|
|
34484
|
+
})), yZ = /* @__PURE__ */ K(((e) => {
|
|
34500
34485
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34501
|
-
var t =
|
|
34486
|
+
var t = vZ();
|
|
34502
34487
|
e.default = {
|
|
34503
34488
|
keyword: "prefixItems",
|
|
34504
34489
|
type: "array",
|
|
@@ -34506,9 +34491,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34506
34491
|
before: "uniqueItems",
|
|
34507
34492
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
34508
34493
|
};
|
|
34509
|
-
})),
|
|
34494
|
+
})), bZ = /* @__PURE__ */ K(((e) => {
|
|
34510
34495
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34511
|
-
var t =
|
|
34496
|
+
var t = CX(), n = wX(), r = MX(), i = _Z();
|
|
34512
34497
|
e.default = {
|
|
34513
34498
|
keyword: "items",
|
|
34514
34499
|
type: "array",
|
|
@@ -34523,9 +34508,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34523
34508
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
34524
34509
|
}
|
|
34525
34510
|
};
|
|
34526
|
-
})),
|
|
34511
|
+
})), xZ = /* @__PURE__ */ K(((e) => {
|
|
34527
34512
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34528
|
-
var t =
|
|
34513
|
+
var t = CX(), n = wX();
|
|
34529
34514
|
e.default = {
|
|
34530
34515
|
keyword: "contains",
|
|
34531
34516
|
type: "array",
|
|
@@ -34578,9 +34563,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34578
34563
|
}
|
|
34579
34564
|
}
|
|
34580
34565
|
};
|
|
34581
|
-
})),
|
|
34566
|
+
})), SZ = /* @__PURE__ */ K(((e) => {
|
|
34582
34567
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
34583
|
-
var t =
|
|
34568
|
+
var t = CX(), n = wX(), r = MX();
|
|
34584
34569
|
e.error = {
|
|
34585
34570
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
34586
34571
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -34639,9 +34624,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34639
34624
|
}, () => i.var(c, !0)), e.ok(c));
|
|
34640
34625
|
}
|
|
34641
34626
|
e.validateSchemaDeps = s, e.default = i;
|
|
34642
|
-
})),
|
|
34627
|
+
})), CZ = /* @__PURE__ */ K(((e) => {
|
|
34643
34628
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34644
|
-
var t =
|
|
34629
|
+
var t = CX(), n = wX();
|
|
34645
34630
|
e.default = {
|
|
34646
34631
|
keyword: "propertyNames",
|
|
34647
34632
|
type: "object",
|
|
@@ -34667,9 +34652,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34667
34652
|
}), e.ok(s);
|
|
34668
34653
|
}
|
|
34669
34654
|
};
|
|
34670
|
-
})),
|
|
34655
|
+
})), wZ = /* @__PURE__ */ K(((e) => {
|
|
34671
34656
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34672
|
-
var t =
|
|
34657
|
+
var t = MX(), n = CX(), r = TX(), i = wX();
|
|
34673
34658
|
e.default = {
|
|
34674
34659
|
keyword: "additionalProperties",
|
|
34675
34660
|
type: ["object"],
|
|
@@ -34734,9 +34719,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34734
34719
|
}
|
|
34735
34720
|
}
|
|
34736
34721
|
};
|
|
34737
|
-
})),
|
|
34722
|
+
})), TZ = /* @__PURE__ */ K(((e) => {
|
|
34738
34723
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34739
|
-
var t =
|
|
34724
|
+
var t = RX(), n = MX(), r = wX(), i = wZ();
|
|
34740
34725
|
e.default = {
|
|
34741
34726
|
keyword: "properties",
|
|
34742
34727
|
type: "object",
|
|
@@ -34763,9 +34748,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34763
34748
|
}
|
|
34764
34749
|
}
|
|
34765
34750
|
};
|
|
34766
|
-
})),
|
|
34751
|
+
})), EZ = /* @__PURE__ */ K(((e) => {
|
|
34767
34752
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34768
|
-
var t =
|
|
34753
|
+
var t = MX(), n = CX(), r = wX(), i = wX();
|
|
34769
34754
|
e.default = {
|
|
34770
34755
|
keyword: "patternProperties",
|
|
34771
34756
|
type: "object",
|
|
@@ -34798,9 +34783,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34798
34783
|
}
|
|
34799
34784
|
}
|
|
34800
34785
|
};
|
|
34801
|
-
})),
|
|
34786
|
+
})), DZ = /* @__PURE__ */ K(((e) => {
|
|
34802
34787
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34803
|
-
var t =
|
|
34788
|
+
var t = wX();
|
|
34804
34789
|
e.default = {
|
|
34805
34790
|
keyword: "not",
|
|
34806
34791
|
schemaType: ["object", "boolean"],
|
|
@@ -34821,17 +34806,17 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34821
34806
|
},
|
|
34822
34807
|
error: { message: "must NOT be valid" }
|
|
34823
34808
|
};
|
|
34824
|
-
})),
|
|
34809
|
+
})), OZ = /* @__PURE__ */ K(((e) => {
|
|
34825
34810
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
34826
34811
|
keyword: "anyOf",
|
|
34827
34812
|
schemaType: "array",
|
|
34828
34813
|
trackErrors: !0,
|
|
34829
|
-
code:
|
|
34814
|
+
code: MX().validateUnion,
|
|
34830
34815
|
error: { message: "must match a schema in anyOf" }
|
|
34831
34816
|
};
|
|
34832
|
-
})),
|
|
34817
|
+
})), kZ = /* @__PURE__ */ K(((e) => {
|
|
34833
34818
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34834
|
-
var t =
|
|
34819
|
+
var t = CX(), n = wX();
|
|
34835
34820
|
e.default = {
|
|
34836
34821
|
keyword: "oneOf",
|
|
34837
34822
|
schemaType: "array",
|
|
@@ -34861,9 +34846,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34861
34846
|
}
|
|
34862
34847
|
}
|
|
34863
34848
|
};
|
|
34864
|
-
})),
|
|
34849
|
+
})), AZ = /* @__PURE__ */ K(((e) => {
|
|
34865
34850
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34866
|
-
var t =
|
|
34851
|
+
var t = wX();
|
|
34867
34852
|
e.default = {
|
|
34868
34853
|
keyword: "allOf",
|
|
34869
34854
|
schemaType: "array",
|
|
@@ -34882,9 +34867,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34882
34867
|
});
|
|
34883
34868
|
}
|
|
34884
34869
|
};
|
|
34885
|
-
})),
|
|
34870
|
+
})), jZ = /* @__PURE__ */ K(((e) => {
|
|
34886
34871
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34887
|
-
var t =
|
|
34872
|
+
var t = CX(), n = wX(), r = {
|
|
34888
34873
|
keyword: "if",
|
|
34889
34874
|
schemaType: ["object", "boolean"],
|
|
34890
34875
|
trackErrors: !0,
|
|
@@ -34925,9 +34910,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34925
34910
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
34926
34911
|
}
|
|
34927
34912
|
e.default = r;
|
|
34928
|
-
})),
|
|
34913
|
+
})), MZ = /* @__PURE__ */ K(((e) => {
|
|
34929
34914
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34930
|
-
var t =
|
|
34915
|
+
var t = wX();
|
|
34931
34916
|
e.default = {
|
|
34932
34917
|
keyword: ["then", "else"],
|
|
34933
34918
|
schemaType: ["object", "boolean"],
|
|
@@ -34935,9 +34920,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34935
34920
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
34936
34921
|
}
|
|
34937
34922
|
};
|
|
34938
|
-
})),
|
|
34923
|
+
})), NZ = /* @__PURE__ */ K(((e) => {
|
|
34939
34924
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34940
|
-
var t =
|
|
34925
|
+
var t = _Z(), n = yZ(), r = vZ(), i = bZ(), a = xZ(), o = SZ(), s = CZ(), c = wZ(), l = TZ(), u = EZ(), d = DZ(), f = OZ(), p = kZ(), m = AZ(), h = jZ(), g = MZ();
|
|
34941
34926
|
function _(e = !1) {
|
|
34942
34927
|
let _ = [
|
|
34943
34928
|
d.default,
|
|
@@ -34955,9 +34940,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
34955
34940
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
34956
34941
|
}
|
|
34957
34942
|
e.default = _;
|
|
34958
|
-
})),
|
|
34943
|
+
})), PZ = /* @__PURE__ */ K(((e) => {
|
|
34959
34944
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34960
|
-
var t =
|
|
34945
|
+
var t = CX();
|
|
34961
34946
|
e.default = {
|
|
34962
34947
|
keyword: "format",
|
|
34963
34948
|
type: ["number", "string"],
|
|
@@ -35030,9 +35015,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35030
35015
|
}
|
|
35031
35016
|
}
|
|
35032
35017
|
};
|
|
35018
|
+
})), FZ = /* @__PURE__ */ K(((e) => {
|
|
35019
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [PZ().default];
|
|
35033
35020
|
})), IZ = /* @__PURE__ */ K(((e) => {
|
|
35034
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [FZ().default];
|
|
35035
|
-
})), LZ = /* @__PURE__ */ K(((e) => {
|
|
35036
35021
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
35037
35022
|
"title",
|
|
35038
35023
|
"description",
|
|
@@ -35046,9 +35031,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35046
35031
|
"contentEncoding",
|
|
35047
35032
|
"contentSchema"
|
|
35048
35033
|
];
|
|
35049
|
-
})),
|
|
35034
|
+
})), LZ = /* @__PURE__ */ K(((e) => {
|
|
35050
35035
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35051
|
-
var t =
|
|
35036
|
+
var t = rZ(), n = gZ(), r = NZ(), i = FZ(), a = IZ();
|
|
35052
35037
|
e.default = [
|
|
35053
35038
|
t.default,
|
|
35054
35039
|
n.default,
|
|
@@ -35057,15 +35042,15 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35057
35042
|
a.metadataVocabulary,
|
|
35058
35043
|
a.contentVocabulary
|
|
35059
35044
|
];
|
|
35060
|
-
})),
|
|
35045
|
+
})), RZ = /* @__PURE__ */ K(((e) => {
|
|
35061
35046
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
35062
35047
|
var t;
|
|
35063
35048
|
(function(e) {
|
|
35064
35049
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
35065
35050
|
})(t || (e.DiscrError = t = {}));
|
|
35066
|
-
})),
|
|
35051
|
+
})), zZ = /* @__PURE__ */ K(((e) => {
|
|
35067
35052
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35068
|
-
var t =
|
|
35053
|
+
var t = CX(), n = RZ(), r = VX(), i = BX(), a = wX();
|
|
35069
35054
|
e.default = {
|
|
35070
35055
|
keyword: "discriminator",
|
|
35071
35056
|
type: "object",
|
|
@@ -35133,16 +35118,16 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35133
35118
|
}
|
|
35134
35119
|
}
|
|
35135
35120
|
};
|
|
35136
|
-
})),
|
|
35137
|
-
$id: () =>
|
|
35138
|
-
$schema: () =>
|
|
35139
|
-
default: () =>
|
|
35140
|
-
definitions: () =>
|
|
35141
|
-
properties: () =>
|
|
35142
|
-
title: () =>
|
|
35143
|
-
type: () =>
|
|
35144
|
-
}), HZ, UZ, WZ, GZ, KZ, qZ, JZ
|
|
35145
|
-
|
|
35121
|
+
})), BZ = /* @__PURE__ */ pt({
|
|
35122
|
+
$id: () => HZ,
|
|
35123
|
+
$schema: () => VZ,
|
|
35124
|
+
default: () => qZ,
|
|
35125
|
+
definitions: () => WZ,
|
|
35126
|
+
properties: () => KZ,
|
|
35127
|
+
title: () => UZ,
|
|
35128
|
+
type: () => GZ
|
|
35129
|
+
}), VZ, HZ, UZ, WZ, GZ, KZ, qZ, JZ = ft((() => {
|
|
35130
|
+
VZ = "http://json-schema.org/draft-07/schema#", HZ = "http://json-schema.org/draft-07/schema#", UZ = "Core schema meta-schema", WZ = {
|
|
35146
35131
|
schemaArray: {
|
|
35147
35132
|
type: "array",
|
|
35148
35133
|
minItems: 1,
|
|
@@ -35168,7 +35153,7 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35168
35153
|
uniqueItems: !0,
|
|
35169
35154
|
default: []
|
|
35170
35155
|
}
|
|
35171
|
-
},
|
|
35156
|
+
}, GZ = ["object", "boolean"], KZ = {
|
|
35172
35157
|
$id: {
|
|
35173
35158
|
type: "string",
|
|
35174
35159
|
format: "uri-reference"
|
|
@@ -35267,18 +35252,18 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35267
35252
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
35268
35253
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
35269
35254
|
not: { $ref: "#" }
|
|
35270
|
-
},
|
|
35271
|
-
$schema:
|
|
35272
|
-
$id:
|
|
35273
|
-
title:
|
|
35274
|
-
definitions:
|
|
35275
|
-
type:
|
|
35276
|
-
properties:
|
|
35255
|
+
}, qZ = {
|
|
35256
|
+
$schema: VZ,
|
|
35257
|
+
$id: HZ,
|
|
35258
|
+
title: UZ,
|
|
35259
|
+
definitions: WZ,
|
|
35260
|
+
type: GZ,
|
|
35261
|
+
properties: KZ,
|
|
35277
35262
|
default: !0
|
|
35278
35263
|
};
|
|
35279
|
-
})),
|
|
35264
|
+
})), YZ = /* @__PURE__ */ K(((e, t) => {
|
|
35280
35265
|
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;
|
|
35281
|
-
var n =
|
|
35266
|
+
var n = eZ(), r = LZ(), i = zZ(), a = (JZ(), gt(BZ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
35282
35267
|
_addVocabularies() {
|
|
35283
35268
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
35284
35269
|
}
|
|
@@ -35292,14 +35277,14 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35292
35277
|
}
|
|
35293
35278
|
};
|
|
35294
35279
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
35295
|
-
var l =
|
|
35280
|
+
var l = RX();
|
|
35296
35281
|
Object.defineProperty(e, "KeywordCxt", {
|
|
35297
35282
|
enumerable: !0,
|
|
35298
35283
|
get: function() {
|
|
35299
35284
|
return l.KeywordCxt;
|
|
35300
35285
|
}
|
|
35301
35286
|
});
|
|
35302
|
-
var u =
|
|
35287
|
+
var u = CX();
|
|
35303
35288
|
Object.defineProperty(e, "_", {
|
|
35304
35289
|
enumerable: !0,
|
|
35305
35290
|
get: function() {
|
|
@@ -35331,21 +35316,21 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35331
35316
|
return u.CodeGen;
|
|
35332
35317
|
}
|
|
35333
35318
|
});
|
|
35334
|
-
var d =
|
|
35319
|
+
var d = zX();
|
|
35335
35320
|
Object.defineProperty(e, "ValidationError", {
|
|
35336
35321
|
enumerable: !0,
|
|
35337
35322
|
get: function() {
|
|
35338
35323
|
return d.default;
|
|
35339
35324
|
}
|
|
35340
35325
|
});
|
|
35341
|
-
var f =
|
|
35326
|
+
var f = BX();
|
|
35342
35327
|
Object.defineProperty(e, "MissingRefError", {
|
|
35343
35328
|
enumerable: !0,
|
|
35344
35329
|
get: function() {
|
|
35345
35330
|
return f.default;
|
|
35346
35331
|
}
|
|
35347
35332
|
});
|
|
35348
|
-
})),
|
|
35333
|
+
})), XZ = /* @__PURE__ */ K(((e) => {
|
|
35349
35334
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
35350
35335
|
function t(e, t) {
|
|
35351
35336
|
return {
|
|
@@ -35497,9 +35482,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35497
35482
|
return !1;
|
|
35498
35483
|
}
|
|
35499
35484
|
}
|
|
35500
|
-
})),
|
|
35485
|
+
})), ZZ = /* @__PURE__ */ K(((e) => {
|
|
35501
35486
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
35502
|
-
var t =
|
|
35487
|
+
var t = YZ(), n = CX(), r = n.operators, i = {
|
|
35503
35488
|
formatMaximum: {
|
|
35504
35489
|
okStr: "<=",
|
|
35505
35490
|
ok: r.LTE,
|
|
@@ -35559,9 +35544,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35559
35544
|
},
|
|
35560
35545
|
dependencies: ["format"]
|
|
35561
35546
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
35562
|
-
})),
|
|
35547
|
+
})), QZ = /* @__PURE__ */ K(((e, t) => {
|
|
35563
35548
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35564
|
-
var n =
|
|
35549
|
+
var n = XZ(), r = ZZ(), i = CX(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
35565
35550
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
35566
35551
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
35567
35552
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -35577,9 +35562,9 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35577
35562
|
for (let r of t) e.addFormat(r, n[r]);
|
|
35578
35563
|
}
|
|
35579
35564
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
35580
|
-
})),
|
|
35565
|
+
})), $Z = /* @__PURE__ */ ht(YZ(), 1), eQ = /* @__PURE__ */ ht(QZ(), 1), tQ = {
|
|
35581
35566
|
required: () => "This field is required",
|
|
35582
|
-
type: (e) => `Should be "${
|
|
35567
|
+
type: (e) => `Should be "${rQ(e)}".`,
|
|
35583
35568
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
35584
35569
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
35585
35570
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -35595,79 +35580,79 @@ var SX = /* @__PURE__ */ K(((e) => {
|
|
|
35595
35580
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
35596
35581
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
35597
35582
|
};
|
|
35598
|
-
function
|
|
35599
|
-
let n =
|
|
35583
|
+
function nQ(e, t) {
|
|
35584
|
+
let n = tQ[e.keyword];
|
|
35600
35585
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
35601
35586
|
}
|
|
35602
|
-
function
|
|
35587
|
+
function rQ(e) {
|
|
35603
35588
|
let t = e.params.type;
|
|
35604
35589
|
return String(Array.isArray(t) ? t[0] : t);
|
|
35605
35590
|
}
|
|
35606
35591
|
//#endregion
|
|
35607
35592
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
35608
|
-
function
|
|
35593
|
+
function iQ(e, t, n) {
|
|
35609
35594
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
35610
35595
|
for (let e of r) {
|
|
35611
35596
|
if (!i) return {
|
|
35612
35597
|
node: void 0,
|
|
35613
35598
|
value: void 0
|
|
35614
35599
|
};
|
|
35615
|
-
i =
|
|
35600
|
+
i = aQ(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);
|
|
35616
35601
|
}
|
|
35617
35602
|
return i ? {
|
|
35618
|
-
node:
|
|
35603
|
+
node: oQ(aQ(i, a, n, r), r),
|
|
35619
35604
|
value: a
|
|
35620
35605
|
} : {
|
|
35621
35606
|
node: void 0,
|
|
35622
35607
|
value: a
|
|
35623
35608
|
};
|
|
35624
35609
|
}
|
|
35625
|
-
function
|
|
35626
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
35610
|
+
function aQ(e, t, n, r) {
|
|
35611
|
+
let i = new Map(e.properties), a = e.variants ? cQ(e.variants, t) : void 0;
|
|
35627
35612
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
35628
35613
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
35629
35614
|
if (o.length > 0) {
|
|
35630
|
-
for (let e of o) if (
|
|
35615
|
+
for (let e of o) if (sQ(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
35631
35616
|
}
|
|
35632
35617
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
35633
35618
|
...e,
|
|
35634
35619
|
properties: i
|
|
35635
35620
|
} : e;
|
|
35636
35621
|
}
|
|
35637
|
-
function
|
|
35622
|
+
function oQ(e, t) {
|
|
35638
35623
|
return e.displayIf ? {
|
|
35639
35624
|
...e,
|
|
35640
|
-
displayIf:
|
|
35625
|
+
displayIf: LJ(e.displayIf, t.join("."))
|
|
35641
35626
|
} : e;
|
|
35642
35627
|
}
|
|
35643
|
-
function
|
|
35628
|
+
function sQ(e, t, n) {
|
|
35644
35629
|
for (let [r, i] of e) {
|
|
35645
|
-
let e =
|
|
35630
|
+
let e = jJ(t, IJ(r, n));
|
|
35646
35631
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
35647
35632
|
}
|
|
35648
35633
|
return !0;
|
|
35649
35634
|
}
|
|
35650
|
-
function
|
|
35635
|
+
function cQ(e, t) {
|
|
35651
35636
|
if (typeof t != "object" || !t) return;
|
|
35652
35637
|
let n = t;
|
|
35653
35638
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
35654
35639
|
}
|
|
35655
35640
|
//#endregion
|
|
35656
35641
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
35657
|
-
var
|
|
35642
|
+
var lQ = new $Z.default({
|
|
35658
35643
|
strict: !1,
|
|
35659
35644
|
allErrors: !0
|
|
35660
35645
|
});
|
|
35661
|
-
(0,
|
|
35662
|
-
for (let e of ["text", "gio-code-editor"])
|
|
35663
|
-
|
|
35646
|
+
(0, eQ.default)(lQ);
|
|
35647
|
+
for (let e of ["text", "gio-code-editor"]) lQ.addFormat(e, !0);
|
|
35648
|
+
lQ.removeKeyword("id"), lQ.addKeyword({
|
|
35664
35649
|
keyword: "id",
|
|
35665
35650
|
validate: () => !0
|
|
35666
35651
|
});
|
|
35667
|
-
function
|
|
35652
|
+
function uQ(e, t = {}) {
|
|
35668
35653
|
let n;
|
|
35669
35654
|
try {
|
|
35670
|
-
n =
|
|
35655
|
+
n = cX(e);
|
|
35671
35656
|
} catch (e) {
|
|
35672
35657
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35673
35658
|
return () => ({
|
|
@@ -35680,7 +35665,7 @@ function dQ(e, t = {}) {
|
|
|
35680
35665
|
}
|
|
35681
35666
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
35682
35667
|
try {
|
|
35683
|
-
a =
|
|
35668
|
+
a = lQ.compile(r);
|
|
35684
35669
|
} catch (e) {
|
|
35685
35670
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
35686
35671
|
return () => ({
|
|
@@ -35691,15 +35676,15 @@ function dQ(e, t = {}) {
|
|
|
35691
35676
|
} }
|
|
35692
35677
|
});
|
|
35693
35678
|
}
|
|
35694
|
-
|
|
35679
|
+
lQ.removeSchema(r);
|
|
35695
35680
|
let o = async (e, t, r) => {
|
|
35696
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
35681
|
+
let o = a(e) ? [] : a.errors ?? [], s = _Q(n.root, e, "", i), c = [...o, ...s];
|
|
35697
35682
|
return c.length === 0 ? {
|
|
35698
35683
|
values: e,
|
|
35699
35684
|
errors: {}
|
|
35700
35685
|
} : {
|
|
35701
35686
|
values: {},
|
|
35702
|
-
errors:
|
|
35687
|
+
errors: mQ(pQ(c.filter((t) => !dQ(t, n, e))), r.criteriaMode ?? "firstError")
|
|
35703
35688
|
};
|
|
35704
35689
|
};
|
|
35705
35690
|
if (!t.basePath) return o;
|
|
@@ -35715,12 +35700,12 @@ function dQ(e, t = {}) {
|
|
|
35715
35700
|
};
|
|
35716
35701
|
};
|
|
35717
35702
|
}
|
|
35718
|
-
function
|
|
35719
|
-
let { node: r, value: i } =
|
|
35703
|
+
function dQ(e, t, n) {
|
|
35704
|
+
let { node: r, value: i } = iQ(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(GJ) : []).join("."), n);
|
|
35720
35705
|
if (!r) return !1;
|
|
35721
35706
|
switch (e.keyword) {
|
|
35722
35707
|
case "const":
|
|
35723
|
-
case "enum": return
|
|
35708
|
+
case "enum": return fQ(r.schema, i);
|
|
35724
35709
|
case "required": {
|
|
35725
35710
|
let t = e.params.missingProperty;
|
|
35726
35711
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -35728,46 +35713,46 @@ function fQ(e, t, n) {
|
|
|
35728
35713
|
default: return !1;
|
|
35729
35714
|
}
|
|
35730
35715
|
}
|
|
35731
|
-
function
|
|
35716
|
+
function fQ(e, t) {
|
|
35732
35717
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
35733
35718
|
}
|
|
35734
|
-
function
|
|
35719
|
+
function pQ(e) {
|
|
35735
35720
|
return e.filter((t) => {
|
|
35736
35721
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
35737
|
-
let n =
|
|
35722
|
+
let n = hQ(t), r = n === "" ? "" : `${n}.`;
|
|
35738
35723
|
return !e.some((e) => {
|
|
35739
35724
|
if (e === t) return !1;
|
|
35740
|
-
let i =
|
|
35725
|
+
let i = hQ(e);
|
|
35741
35726
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
35742
35727
|
});
|
|
35743
35728
|
});
|
|
35744
35729
|
}
|
|
35745
|
-
function
|
|
35730
|
+
function mQ(e, t) {
|
|
35746
35731
|
let n = /* @__PURE__ */ new Map();
|
|
35747
35732
|
for (let t of e) {
|
|
35748
|
-
let e =
|
|
35733
|
+
let e = hQ(t), r = n.get(e) ?? [];
|
|
35749
35734
|
r.push(t), n.set(e, r);
|
|
35750
35735
|
}
|
|
35751
35736
|
let r = {};
|
|
35752
35737
|
for (let [e, i] of n) {
|
|
35753
35738
|
let n = {
|
|
35754
35739
|
type: i[0].keyword,
|
|
35755
|
-
message:
|
|
35740
|
+
message: nQ(i[0], e)
|
|
35756
35741
|
};
|
|
35757
35742
|
if (t === "all" && i.length > 0) {
|
|
35758
35743
|
let t = {};
|
|
35759
|
-
for (let n of i) t[n.keyword] =
|
|
35744
|
+
for (let n of i) t[n.keyword] = nQ(n, e);
|
|
35760
35745
|
n.types = t;
|
|
35761
35746
|
}
|
|
35762
|
-
|
|
35747
|
+
gQ(r, e === "" ? "root" : e, n);
|
|
35763
35748
|
}
|
|
35764
35749
|
return r;
|
|
35765
35750
|
}
|
|
35766
|
-
function
|
|
35767
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
35751
|
+
function hQ(e) {
|
|
35752
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(GJ) : [];
|
|
35768
35753
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
35769
35754
|
}
|
|
35770
|
-
function
|
|
35755
|
+
function gQ(e, t, n) {
|
|
35771
35756
|
let r = t.split("."), i = e;
|
|
35772
35757
|
for (let e = 0; e < r.length - 1; e++) {
|
|
35773
35758
|
let t = r[e];
|
|
@@ -35775,7 +35760,7 @@ function _Q(e, t, n) {
|
|
|
35775
35760
|
}
|
|
35776
35761
|
i[r[r.length - 1]] = n;
|
|
35777
35762
|
}
|
|
35778
|
-
function
|
|
35763
|
+
function _Q(e, t, n, r) {
|
|
35779
35764
|
if (!e) return [];
|
|
35780
35765
|
let i = [];
|
|
35781
35766
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -35792,80 +35777,80 @@ function vQ(e, t, n, r) {
|
|
|
35792
35777
|
}
|
|
35793
35778
|
}
|
|
35794
35779
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
35795
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
35780
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(..._Q(o, t[a], `${n}/${WJ(a)}`, r));
|
|
35796
35781
|
if (e.variants && e.variants.length > 0 && a) {
|
|
35797
|
-
let a = t, o =
|
|
35798
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
35782
|
+
let a = t, o = RY(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
35783
|
+
if (s) for (let [e, t] of s.properties) i.push(..._Q(t, a[e], `${n}/${WJ(e)}`, r));
|
|
35799
35784
|
}
|
|
35800
35785
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
35801
|
-
i.push(...
|
|
35786
|
+
i.push(..._Q(e.items, t, `${n}/${a}`, r));
|
|
35802
35787
|
}), i;
|
|
35803
35788
|
}
|
|
35804
35789
|
//#endregion
|
|
35805
35790
|
//#region src/composed/JsonSchemaForm/form-bindings/pruneHiddenValues.ts
|
|
35806
|
-
var
|
|
35807
|
-
function
|
|
35808
|
-
let t =
|
|
35791
|
+
var vQ = /* @__PURE__ */ new WeakMap();
|
|
35792
|
+
function yQ(e) {
|
|
35793
|
+
let t = vQ.get(e);
|
|
35809
35794
|
if (t === void 0) {
|
|
35810
35795
|
try {
|
|
35811
|
-
t =
|
|
35796
|
+
t = cX(e).root;
|
|
35812
35797
|
} catch {
|
|
35813
35798
|
t = null;
|
|
35814
35799
|
}
|
|
35815
|
-
|
|
35800
|
+
vQ.set(e, t);
|
|
35816
35801
|
}
|
|
35817
35802
|
return t;
|
|
35818
35803
|
}
|
|
35819
|
-
function
|
|
35820
|
-
let r =
|
|
35804
|
+
function bQ(e, t, n) {
|
|
35805
|
+
let r = yQ(e);
|
|
35821
35806
|
if (!r) return t;
|
|
35822
35807
|
let i = structuredClone(t);
|
|
35823
|
-
for (;
|
|
35808
|
+
for (; xQ(r, i, "", i, n););
|
|
35824
35809
|
return i;
|
|
35825
35810
|
}
|
|
35826
|
-
function
|
|
35811
|
+
function xQ(e, t, n, r, i) {
|
|
35827
35812
|
if (Array.isArray(t)) {
|
|
35828
35813
|
let { items: a } = e;
|
|
35829
35814
|
if (!a) return !1;
|
|
35830
35815
|
let o = !1;
|
|
35831
35816
|
return t.forEach((e, t) => {
|
|
35832
|
-
|
|
35817
|
+
xQ(a, e, wQ(n, String(t)), r, i) && (o = !0);
|
|
35833
35818
|
}), o;
|
|
35834
35819
|
}
|
|
35835
35820
|
if (typeof t != "object" || !t) return !1;
|
|
35836
|
-
let a = t, { rendered: o, unregistered: s } =
|
|
35821
|
+
let a = t, { rendered: o, unregistered: s } = SQ(e, a, n, r, i), c = !1;
|
|
35837
35822
|
for (let e of s) e in a && (delete a[e], c = !0);
|
|
35838
35823
|
for (let [e, t] of o) {
|
|
35839
35824
|
if (!(e in a)) continue;
|
|
35840
|
-
let o =
|
|
35841
|
-
t.displayIf && !
|
|
35825
|
+
let o = wQ(n, e);
|
|
35826
|
+
t.displayIf && !CQ(t.displayIf, o, r, i) ? (delete a[e], c = !0) : xQ(t, a[e], o, r, i) && (c = !0);
|
|
35842
35827
|
}
|
|
35843
35828
|
return c;
|
|
35844
35829
|
}
|
|
35845
|
-
function
|
|
35830
|
+
function SQ(e, t, n, r, i) {
|
|
35846
35831
|
let a = [...e.properties ?? []], o = [...e.dependencyBranches ?? []];
|
|
35847
35832
|
if (e.variants && e.variants.length > 0) {
|
|
35848
|
-
let n =
|
|
35833
|
+
let n = RY(e.variants.map((e) => e.raw), e.rhfPath, void 0, (e) => t[e]), r = e.variants[n];
|
|
35849
35834
|
r && (a.push(...r.properties), o.push(...r.dependencyBranches ?? []));
|
|
35850
35835
|
}
|
|
35851
35836
|
let s = [];
|
|
35852
|
-
for (let e of o)
|
|
35837
|
+
for (let e of o) CQ(e.showIf, n, r, i) ? a.push(...e.properties) : s.push(...e.properties.keys());
|
|
35853
35838
|
let c = new Set(a.map(([e]) => e));
|
|
35854
35839
|
return {
|
|
35855
35840
|
rendered: a,
|
|
35856
35841
|
unregistered: s.filter((e) => !c.has(e))
|
|
35857
35842
|
};
|
|
35858
35843
|
}
|
|
35859
|
-
function
|
|
35860
|
-
let i =
|
|
35861
|
-
return
|
|
35844
|
+
function CQ(e, t, n, r) {
|
|
35845
|
+
let i = LJ(e, t);
|
|
35846
|
+
return MJ(i, new Map([...i.$eq.keys()].map((e) => [e, jJ(n, e)])), r);
|
|
35862
35847
|
}
|
|
35863
|
-
function
|
|
35848
|
+
function wQ(e, t) {
|
|
35864
35849
|
return e ? `${e}.${t}` : t;
|
|
35865
35850
|
}
|
|
35866
35851
|
//#endregion
|
|
35867
35852
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
35868
|
-
var
|
|
35853
|
+
var TQ = {
|
|
35869
35854
|
navigation: null,
|
|
35870
35855
|
contextSidebar: null,
|
|
35871
35856
|
breadcrumbs: [],
|
|
@@ -35876,9 +35861,9 @@ var EQ = {
|
|
|
35876
35861
|
banner: null,
|
|
35877
35862
|
bannerSticky: !1,
|
|
35878
35863
|
footer: null
|
|
35879
|
-
},
|
|
35880
|
-
function
|
|
35881
|
-
let [t, n] = Ye(
|
|
35864
|
+
}, EQ = Fe(null);
|
|
35865
|
+
function DQ({ children: e }) {
|
|
35866
|
+
let [t, n] = Ye(TQ), r = ze((e, t) => {
|
|
35882
35867
|
n((n) => ({
|
|
35883
35868
|
...n,
|
|
35884
35869
|
[e]: t
|
|
@@ -35890,7 +35875,7 @@ function OQ({ children: e }) {
|
|
|
35890
35875
|
}));
|
|
35891
35876
|
}, []), a = ze((e) => {
|
|
35892
35877
|
n((t) => {
|
|
35893
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
35878
|
+
let n = Object.fromEntries(e.map((e) => [e, TQ[e]]));
|
|
35894
35879
|
return {
|
|
35895
35880
|
...t,
|
|
35896
35881
|
...n
|
|
@@ -35907,20 +35892,20 @@ function OQ({ children: e }) {
|
|
|
35907
35892
|
i,
|
|
35908
35893
|
a
|
|
35909
35894
|
]);
|
|
35910
|
-
return /* @__PURE__ */ W(
|
|
35895
|
+
return /* @__PURE__ */ W(EQ.Provider, {
|
|
35911
35896
|
value: o,
|
|
35912
35897
|
children: e
|
|
35913
35898
|
});
|
|
35914
35899
|
}
|
|
35915
|
-
function
|
|
35916
|
-
let e = Be(
|
|
35900
|
+
function OQ() {
|
|
35901
|
+
let e = Be(EQ);
|
|
35917
35902
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
35918
35903
|
return e;
|
|
35919
35904
|
}
|
|
35920
35905
|
//#endregion
|
|
35921
35906
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
35922
|
-
function
|
|
35923
|
-
let { setSlots: n, resetSlots: r } =
|
|
35907
|
+
function kQ(e, t = []) {
|
|
35908
|
+
let { setSlots: n, resetSlots: r } = OQ();
|
|
35924
35909
|
Ge(() => {
|
|
35925
35910
|
n(e);
|
|
35926
35911
|
let t = Object.keys(e);
|
|
@@ -35935,7 +35920,7 @@ function AQ(e, t = []) {
|
|
|
35935
35920
|
}
|
|
35936
35921
|
//#endregion
|
|
35937
35922
|
//#region src/composed/PageFocused/PageFocused.tsx
|
|
35938
|
-
function
|
|
35923
|
+
function AQ({ children: e, className: n, "data-testid": r }) {
|
|
35939
35924
|
return /* @__PURE__ */ W("div", {
|
|
35940
35925
|
"data-slot": "page-focused",
|
|
35941
35926
|
"data-testid": r,
|
|
@@ -35943,10 +35928,10 @@ function jQ({ children: e, className: n, "data-testid": r }) {
|
|
|
35943
35928
|
children: e
|
|
35944
35929
|
});
|
|
35945
35930
|
}
|
|
35946
|
-
|
|
35931
|
+
AQ.displayName = "PageFocused";
|
|
35947
35932
|
//#endregion
|
|
35948
35933
|
//#region src/composed/PageHeader/PageHeader.tsx
|
|
35949
|
-
function
|
|
35934
|
+
function jQ({ title: e, description: n, actions: r, children: i, className: a, "data-testid": o }) {
|
|
35950
35935
|
return /* @__PURE__ */ G("header", {
|
|
35951
35936
|
"data-slot": "page-header",
|
|
35952
35937
|
"data-testid": o,
|
|
@@ -35978,10 +35963,10 @@ function MQ({ title: e, description: n, actions: r, children: i, className: a, "
|
|
|
35978
35963
|
}) : null]
|
|
35979
35964
|
});
|
|
35980
35965
|
}
|
|
35981
|
-
|
|
35966
|
+
jQ.displayName = "PageHeader";
|
|
35982
35967
|
//#endregion
|
|
35983
35968
|
//#region src/composed/SearchField/SearchField.tsx
|
|
35984
|
-
function
|
|
35969
|
+
function MQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, className: i, disabled: a, onKeyDown: o, "data-testid": s, ...c }) {
|
|
35985
35970
|
let [l, u] = Ye(t), d = Je(null), f = Je(t), p = Je(void 0), m = Je(n);
|
|
35986
35971
|
We(e, () => d.current, []), He(() => {
|
|
35987
35972
|
m.current = n;
|
|
@@ -36041,10 +36026,10 @@ function NQ({ ref: e, value: t = "", onValueChange: n, debounceMs: r = 300, clas
|
|
|
36041
36026
|
]
|
|
36042
36027
|
});
|
|
36043
36028
|
}
|
|
36044
|
-
|
|
36029
|
+
MQ.displayName = "SearchField";
|
|
36045
36030
|
//#endregion
|
|
36046
36031
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
36047
|
-
var
|
|
36032
|
+
var NQ = [
|
|
36048
36033
|
{
|
|
36049
36034
|
value: "light",
|
|
36050
36035
|
label: "Light"
|
|
@@ -36058,7 +36043,7 @@ var PQ = [
|
|
|
36058
36043
|
label: "System"
|
|
36059
36044
|
}
|
|
36060
36045
|
];
|
|
36061
|
-
function
|
|
36046
|
+
function PQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSignOut: o }) {
|
|
36062
36047
|
let s = i ?? e.slice(0, 2).toUpperCase(), { mode: c, setMode: l } = je();
|
|
36063
36048
|
return /* @__PURE__ */ G(bL, { children: [/* @__PURE__ */ W(SL, {
|
|
36064
36049
|
asChild: !0,
|
|
@@ -36087,7 +36072,7 @@ function FQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
36087
36072
|
/* @__PURE__ */ W(DL, {
|
|
36088
36073
|
value: c,
|
|
36089
36074
|
onValueChange: (e) => l(e),
|
|
36090
|
-
children:
|
|
36075
|
+
children: NQ.map((e) => /* @__PURE__ */ W(OL, {
|
|
36091
36076
|
value: e.value,
|
|
36092
36077
|
children: e.label
|
|
36093
36078
|
}, e.value))
|
|
@@ -36100,6 +36085,6 @@ function FQ({ name: e, email: n, avatarUrl: r, initials: i, className: a, onSign
|
|
|
36100
36085
|
]
|
|
36101
36086
|
})] });
|
|
36102
36087
|
}
|
|
36103
|
-
|
|
36088
|
+
PQ.displayName = "TopNavUser";
|
|
36104
36089
|
//#endregion
|
|
36105
|
-
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,
|
|
36090
|
+
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, nq 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, iq as CopyableCell, iG as CopyableText, TQ as DEFAULT_SLOTS, qK as DataTable, JK as DataTableColumnHeader, oq as DataTableEmptyState, jK as DataTablePagination, VK as DataTableViewOptions, tq as DateCell, hJ as DatePicker, gJ as DateRangePicker, yJ as DateTimePicker, SJ 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, wJ as ElCheatSheetTrigger, FL as Empty, VL as EmptyContent, BL as EmptyDescription, IL as EmptyHeader, RL as EmptyMedia, zL as EmptyTitle, TJ 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, AJ as FileUpload, Fz as FileUploadInput, kJ 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, yX as JsonSchemaForm, eB as Kbd, tB as KbdGroup, ee as Label, DQ as LayoutSlotsProvider, iB as Logo, rq as MonoCell, AQ as PageFocused, jQ as PageHeader, aB as Pagination, oB as PaginationContent, dB as PaginationEllipsis, sB as PaginationItem, cB as PaginationLink, uB as PaginationNext, lB as PaginationPrevious, qY 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, MQ 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, PQ as TopNavUser, aq as TruncatedCell, r as alertVariants, Jv as badgeVariants, aG as buildLinearBreadcrumbs, ay as buttonGroupVariants, ry as buttonVariants, t as cn, bX as composeResolvers, rY as extractDefaults, uQ as jsonSchemaResolver, rB as logoVariants, bQ as pruneHiddenValues, xW as tabsListVariants, qU as toast, TW as toggleVariants, Cj as useComboboxAnchor, bt as useDebouncedValue, kQ as useLayoutConfig, OQ as useLayoutSlots, yt as usePortalContainer, oU as useSidebar, zW as useSidebarMode, je as useTheme };
|