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