@gravitee/graphene-core 2.42.1 → 2.43.0-fix-improve-data-table.f0d5d2e
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 +166 -0
- package/dist/composed/DataTable/DataTable.d.ts +33 -4
- package/dist/composed/DataTable/DataTable.d.ts.map +1 -1
- package/dist/composed/DataTable/cells.d.ts +38 -0
- package/dist/composed/DataTable/cells.d.ts.map +1 -0
- package/dist/composed/DataTable/index.d.ts +3 -1
- package/dist/composed/DataTable/index.d.ts.map +1 -1
- package/dist/composed/DataTableEmptyState/DataTableEmptyState.d.ts +33 -0
- package/dist/composed/DataTableEmptyState/DataTableEmptyState.d.ts.map +1 -0
- package/dist/composed/DataTableEmptyState/index.d.ts +3 -0
- package/dist/composed/DataTableEmptyState/index.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1173 -938
- package/dist/styles/globals.css +1 -1
- package/package.json +2 -1
- package/snippets/data-table-list-page.tsx +321 -0
package/dist/index.js
CHANGED
|
@@ -28654,8 +28654,74 @@ function rq(e) {
|
|
|
28654
28654
|
})), n.current;
|
|
28655
28655
|
}
|
|
28656
28656
|
//#endregion
|
|
28657
|
+
//#region src/composed/DataTablePagination/DataTablePagination.tsx
|
|
28658
|
+
function iq({ page: e, pageSize: n, totalCount: r, pageSizeOptions: i = [
|
|
28659
|
+
5,
|
|
28660
|
+
10,
|
|
28661
|
+
25,
|
|
28662
|
+
50,
|
|
28663
|
+
100
|
|
28664
|
+
], onPageChange: a, onPageSizeChange: o, children: s }) {
|
|
28665
|
+
let c = Math.ceil(r / n) || 0, l = r > 0 ? (e - 1) * n + 1 : 0, u = Math.min(e * n, r);
|
|
28666
|
+
return /* @__PURE__ */ U("div", {
|
|
28667
|
+
className: "flex items-center gap-4 p-2",
|
|
28668
|
+
children: [s && /* @__PURE__ */ H("div", {
|
|
28669
|
+
className: "flex-1",
|
|
28670
|
+
children: s
|
|
28671
|
+
}), /* @__PURE__ */ U("div", {
|
|
28672
|
+
className: "ml-auto flex items-center gap-4",
|
|
28673
|
+
children: [
|
|
28674
|
+
o && /* @__PURE__ */ U("div", {
|
|
28675
|
+
className: "flex items-center gap-2",
|
|
28676
|
+
children: [/* @__PURE__ */ H("span", {
|
|
28677
|
+
className: "text-xs text-muted-foreground",
|
|
28678
|
+
children: "Items per page"
|
|
28679
|
+
}), /* @__PURE__ */ U(tU, {
|
|
28680
|
+
value: String(n),
|
|
28681
|
+
onValueChange: (e) => o(Number(e)),
|
|
28682
|
+
children: [/* @__PURE__ */ H(iU, {
|
|
28683
|
+
className: "h-7 w-16",
|
|
28684
|
+
"aria-label": "Items per page",
|
|
28685
|
+
children: /* @__PURE__ */ H(rU, {})
|
|
28686
|
+
}), /* @__PURE__ */ H(aU, { children: i.map((e) => /* @__PURE__ */ H(sU, {
|
|
28687
|
+
value: String(e),
|
|
28688
|
+
children: e
|
|
28689
|
+
}, e)) })]
|
|
28690
|
+
})]
|
|
28691
|
+
}),
|
|
28692
|
+
/* @__PURE__ */ U("span", {
|
|
28693
|
+
className: "text-xs text-muted-foreground tabular-nums",
|
|
28694
|
+
children: [
|
|
28695
|
+
r > 0 ? `${l}-${u}` : "0",
|
|
28696
|
+
" of ",
|
|
28697
|
+
r
|
|
28698
|
+
]
|
|
28699
|
+
}),
|
|
28700
|
+
/* @__PURE__ */ U("div", {
|
|
28701
|
+
className: "flex items-center gap-1",
|
|
28702
|
+
children: [/* @__PURE__ */ H(hb, {
|
|
28703
|
+
variant: "ghost",
|
|
28704
|
+
size: "icon-xs",
|
|
28705
|
+
disabled: e <= 1,
|
|
28706
|
+
onClick: () => a(e - 1),
|
|
28707
|
+
"aria-label": "Previous page",
|
|
28708
|
+
children: /* @__PURE__ */ H(y, { className: "size-4" })
|
|
28709
|
+
}), /* @__PURE__ */ H(hb, {
|
|
28710
|
+
variant: "ghost",
|
|
28711
|
+
size: "icon-xs",
|
|
28712
|
+
disabled: e >= c,
|
|
28713
|
+
onClick: () => a(e + 1),
|
|
28714
|
+
"aria-label": "Next page",
|
|
28715
|
+
children: /* @__PURE__ */ H(t, { className: "size-4" })
|
|
28716
|
+
})]
|
|
28717
|
+
})
|
|
28718
|
+
]
|
|
28719
|
+
})]
|
|
28720
|
+
});
|
|
28721
|
+
}
|
|
28722
|
+
//#endregion
|
|
28657
28723
|
//#region src/composed/DataTable/DataTableViewOptions.tsx
|
|
28658
|
-
function
|
|
28724
|
+
function aq({ table: e }) {
|
|
28659
28725
|
return /* @__PURE__ */ U(WL, { children: [/* @__PURE__ */ H(KL, {
|
|
28660
28726
|
asChild: !0,
|
|
28661
28727
|
children: /* @__PURE__ */ U(hb, {
|
|
@@ -28680,7 +28746,7 @@ function iq({ table: e }) {
|
|
|
28680
28746
|
}
|
|
28681
28747
|
//#endregion
|
|
28682
28748
|
//#region src/composed/DataTable/DataTable.tsx
|
|
28683
|
-
function
|
|
28749
|
+
function oq(e, t) {
|
|
28684
28750
|
let [n, r] = V(!1);
|
|
28685
28751
|
return R(() => {
|
|
28686
28752
|
if (!e) return;
|
|
@@ -28690,8 +28756,8 @@ function aq(e, t) {
|
|
|
28690
28756
|
};
|
|
28691
28757
|
}, [e, t]), e && n;
|
|
28692
28758
|
}
|
|
28693
|
-
var
|
|
28694
|
-
function
|
|
28759
|
+
var sq = qK(), cq = QK(), lq = ZK();
|
|
28760
|
+
function uq({ header: e, table: t }) {
|
|
28695
28761
|
let n = e.getResizeHandler();
|
|
28696
28762
|
return /* @__PURE__ */ H("div", {
|
|
28697
28763
|
role: "slider",
|
|
@@ -28713,14 +28779,14 @@ function lq({ header: e, table: t }) {
|
|
|
28713
28779
|
className: q("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")
|
|
28714
28780
|
});
|
|
28715
28781
|
}
|
|
28716
|
-
function
|
|
28717
|
-
let [
|
|
28718
|
-
|
|
28719
|
-
let
|
|
28782
|
+
function dq({ columns: e, data: t, selectionMode: n = "none", onSelectionChange: r, bulkActions: i, sorting: a, onSortingChange: o, emptyMessage: s = "No results.", enableColumnVisibility: c, enableColumnResizing: l, stickyHeader: u, loading: d, loadingDelay: f = 200, skeletonCount: p = 5, className: m, "aria-label": h, toolbar: g, pagination: _, footer: v, serverSide: y, tableOptions: b }) {
|
|
28783
|
+
let [x, S] = V({}), [C, w] = V({}), [T, E] = V([]), D = oq(!!d, f), O = f > 0 ? D : !!d, k = a !== void 0, A = k ? a : T, j = k ? o : E, M = re(r);
|
|
28784
|
+
M.current = r;
|
|
28785
|
+
let N = re(t);
|
|
28720
28786
|
R(() => {
|
|
28721
|
-
|
|
28787
|
+
N.current !== t && (N.current = t, w({}), M.current?.([]));
|
|
28722
28788
|
}, [t]);
|
|
28723
|
-
let
|
|
28789
|
+
let P = B(() => n === "multi" ? [{
|
|
28724
28790
|
id: "_select",
|
|
28725
28791
|
header: ({ table: e }) => /* @__PURE__ */ H(Hw, {
|
|
28726
28792
|
checked: e.getIsAllPageRowsSelected() || e.getIsSomePageRowsSelected() && "indeterminate",
|
|
@@ -28734,105 +28800,125 @@ function uq({ columns: e, data: t, selectionMode: n = "none", onSelectionChange:
|
|
|
28734
28800
|
}),
|
|
28735
28801
|
enableSorting: !1,
|
|
28736
28802
|
enableHiding: !1
|
|
28737
|
-
}, ...e] : e, [e, n]),
|
|
28738
|
-
|
|
28803
|
+
}, ...e] : e, [e, n]), I = F((e) => {
|
|
28804
|
+
w((n) => {
|
|
28739
28805
|
let i = typeof e == "function" ? e(n) : e;
|
|
28740
28806
|
if (r) {
|
|
28741
|
-
let e = Object.keys(i).filter((e) => i[e]).map((e) => t[Number(e)]);
|
|
28807
|
+
let e = Object.keys(i).filter((e) => i[e]).map((e) => t[Number(e)]).filter((e) => e !== void 0);
|
|
28742
28808
|
queueMicrotask(() => r(e));
|
|
28743
28809
|
}
|
|
28744
28810
|
return i;
|
|
28745
28811
|
});
|
|
28746
|
-
}, [t, r]),
|
|
28812
|
+
}, [t, r]), L = rq({
|
|
28747
28813
|
data: t,
|
|
28748
|
-
columns:
|
|
28814
|
+
columns: P,
|
|
28749
28815
|
state: {
|
|
28750
|
-
sorting:
|
|
28751
|
-
columnVisibility:
|
|
28752
|
-
rowSelection:
|
|
28816
|
+
sorting: A,
|
|
28817
|
+
columnVisibility: x,
|
|
28818
|
+
rowSelection: C
|
|
28753
28819
|
},
|
|
28754
|
-
onSortingChange:
|
|
28755
|
-
onColumnVisibilityChange:
|
|
28756
|
-
onRowSelectionChange:
|
|
28820
|
+
onSortingChange: j,
|
|
28821
|
+
onColumnVisibilityChange: S,
|
|
28822
|
+
onRowSelectionChange: I,
|
|
28757
28823
|
enableColumnResizing: l,
|
|
28758
28824
|
columnResizeMode: l ? "onChange" : void 0,
|
|
28759
|
-
getCoreRowModel:
|
|
28760
|
-
getSortedRowModel:
|
|
28761
|
-
getFilteredRowModel:
|
|
28762
|
-
manualSorting:
|
|
28763
|
-
manualPagination:
|
|
28764
|
-
manualFiltering:
|
|
28765
|
-
...
|
|
28766
|
-
}),
|
|
28767
|
-
function
|
|
28768
|
-
return
|
|
28825
|
+
getCoreRowModel: sq,
|
|
28826
|
+
getSortedRowModel: y ? void 0 : cq,
|
|
28827
|
+
getFilteredRowModel: y ? void 0 : lq,
|
|
28828
|
+
manualSorting: y,
|
|
28829
|
+
manualPagination: y,
|
|
28830
|
+
manualFiltering: y,
|
|
28831
|
+
...b
|
|
28832
|
+
}), ee = i ? L.getFilteredSelectedRowModel().rows.length : 0, te = g || i || c, z = L.getRowModel().rows, ne = P.length || 1;
|
|
28833
|
+
function ie() {
|
|
28834
|
+
return O && !z.length ? Array.from({ length: p }).map((e, t) => /* @__PURE__ */ H(KW, {
|
|
28769
28835
|
className: "border-transparent",
|
|
28770
|
-
children:
|
|
28836
|
+
children: P.map((e, n) => /* @__PURE__ */ U(JW, {
|
|
28771
28837
|
className: "relative",
|
|
28772
28838
|
children: [/* @__PURE__ */ H("div", {
|
|
28773
28839
|
className: "invisible",
|
|
28774
28840
|
children: "\xA0"
|
|
28775
28841
|
}), /* @__PURE__ */ H("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
|
|
28776
28842
|
}, `skeleton-${t}-${n}`))
|
|
28777
|
-
}, `skeleton-${t}`)) :
|
|
28843
|
+
}, `skeleton-${t}`)) : z.length ? z.map((e) => /* @__PURE__ */ H(KW, {
|
|
28778
28844
|
"data-state": e.getIsSelected() ? "selected" : void 0,
|
|
28779
|
-
className:
|
|
28845
|
+
className: O ? "pointer-events-none border-transparent hover:bg-transparent" : void 0,
|
|
28780
28846
|
children: e.getVisibleCells().map((e) => /* @__PURE__ */ U(JW, {
|
|
28781
|
-
className:
|
|
28847
|
+
className: q("min-w-0", O && "relative", l && "overflow-hidden"),
|
|
28782
28848
|
children: [/* @__PURE__ */ H("div", {
|
|
28783
|
-
className:
|
|
28849
|
+
className: q("min-w-0", O && "invisible h-full"),
|
|
28784
28850
|
children: $K(e.column.columnDef.cell, e.getContext())
|
|
28785
|
-
}),
|
|
28851
|
+
}), O && /* @__PURE__ */ H("div", { className: "absolute inset-1 animate-pulse rounded-md bg-muted" })]
|
|
28786
28852
|
}, e.id))
|
|
28787
28853
|
}, e.id)) : /* @__PURE__ */ H(KW, {
|
|
28788
28854
|
className: "hover:bg-transparent",
|
|
28789
28855
|
children: /* @__PURE__ */ H(JW, {
|
|
28790
|
-
colSpan:
|
|
28791
|
-
className: "h-24 text-center text-muted-foreground",
|
|
28856
|
+
colSpan: ne,
|
|
28857
|
+
className: q("h-24 text-center", typeof s == "string" && "text-muted-foreground"),
|
|
28792
28858
|
children: s
|
|
28793
28859
|
})
|
|
28794
28860
|
});
|
|
28795
28861
|
}
|
|
28862
|
+
let ae = /* @__PURE__ */ U(HW, {
|
|
28863
|
+
style: l ? {
|
|
28864
|
+
width: L.getTotalSize(),
|
|
28865
|
+
minWidth: "100%",
|
|
28866
|
+
tableLayout: "fixed"
|
|
28867
|
+
} : void 0,
|
|
28868
|
+
children: [/* @__PURE__ */ H(UW, { children: L.getHeaderGroups().map((e) => /* @__PURE__ */ H(KW, { children: e.headers.map((e) => /* @__PURE__ */ U(qW, {
|
|
28869
|
+
style: l ? { width: e.getSize() } : void 0,
|
|
28870
|
+
"aria-sort": e.column.getIsSorted() === "asc" ? "ascending" : e.column.getIsSorted() === "desc" ? "descending" : e.column.getCanSort() ? "none" : void 0,
|
|
28871
|
+
className: q(l && "relative overflow-hidden", u && "sticky top-0 z-10 bg-background"),
|
|
28872
|
+
children: [e.isPlaceholder ? null : $K(e.column.columnDef.header, e.getContext()), l && e.column.getCanResize() && /* @__PURE__ */ H(uq, {
|
|
28873
|
+
header: e,
|
|
28874
|
+
table: L
|
|
28875
|
+
})]
|
|
28876
|
+
}, e.id)) }, e.id)) }), /* @__PURE__ */ H(WW, { children: ie() })]
|
|
28877
|
+
});
|
|
28796
28878
|
return /* @__PURE__ */ U("div", {
|
|
28797
28879
|
className: q("space-y-2", m),
|
|
28880
|
+
"aria-label": h,
|
|
28881
|
+
role: h ? "region" : void 0,
|
|
28798
28882
|
children: [
|
|
28799
|
-
|
|
28883
|
+
te && /* @__PURE__ */ U("div", {
|
|
28800
28884
|
className: "flex items-center justify-between gap-2 py-2",
|
|
28801
28885
|
children: [/* @__PURE__ */ H("div", {
|
|
28802
28886
|
className: "flex flex-1 items-center gap-2",
|
|
28803
|
-
children:
|
|
28887
|
+
children: g
|
|
28804
28888
|
}), /* @__PURE__ */ U("div", {
|
|
28805
28889
|
className: "flex items-center gap-2",
|
|
28806
|
-
children: [c && /* @__PURE__ */ H(
|
|
28807
|
-
className: q("flex items-center gap-2",
|
|
28808
|
-
|
|
28890
|
+
children: [c && /* @__PURE__ */ H(aq, { table: L }), i && /* @__PURE__ */ H("div", {
|
|
28891
|
+
className: q("flex items-center gap-2", ee === 0 && "opacity-50"),
|
|
28892
|
+
"aria-disabled": ee === 0,
|
|
28893
|
+
...ee === 0 ? { inert: !0 } : {},
|
|
28809
28894
|
children: i
|
|
28810
28895
|
})]
|
|
28811
28896
|
})]
|
|
28812
28897
|
}),
|
|
28813
28898
|
/* @__PURE__ */ H("div", {
|
|
28814
|
-
className: q("overflow-hidden rounded-lg border", u && "**:data-[slot=table-container]:overflow-auto"),
|
|
28815
|
-
"aria-busy":
|
|
28816
|
-
|
|
28817
|
-
|
|
28818
|
-
|
|
28819
|
-
|
|
28820
|
-
|
|
28821
|
-
className: q(l && "relative", u && "sticky top-0 z-10 bg-background"),
|
|
28822
|
-
children: [e.isPlaceholder ? null : $K(e.column.columnDef.header, e.getContext()), l && e.column.getCanResize() && /* @__PURE__ */ H(lq, {
|
|
28823
|
-
header: e,
|
|
28824
|
-
table: P
|
|
28825
|
-
})]
|
|
28826
|
-
}, e.id)) }, e.id)) }), /* @__PURE__ */ H(WW, { children: te() })]
|
|
28827
|
-
})
|
|
28899
|
+
className: q("overflow-hidden rounded-lg border", !u && "**:data-[slot=table-container]:overflow-x-auto", u && "**:data-[slot=table-container]:!overflow-visible"),
|
|
28900
|
+
"aria-busy": O,
|
|
28901
|
+
"aria-live": O ? "polite" : void 0,
|
|
28902
|
+
children: u ? /* @__PURE__ */ U($H, {
|
|
28903
|
+
"data-slot": "table-scroll",
|
|
28904
|
+
children: [ae, /* @__PURE__ */ H(eU, { orientation: "horizontal" })]
|
|
28905
|
+
}) : ae
|
|
28828
28906
|
}),
|
|
28829
|
-
|
|
28907
|
+
v,
|
|
28908
|
+
_ && /* @__PURE__ */ H(iq, {
|
|
28909
|
+
page: _.page,
|
|
28910
|
+
pageSize: _.pageSize,
|
|
28911
|
+
totalCount: _.totalCount,
|
|
28912
|
+
onPageChange: _.onPageChange,
|
|
28913
|
+
onPageSizeChange: _.onPageSizeChange,
|
|
28914
|
+
pageSizeOptions: _.pageSizeOptions
|
|
28915
|
+
})
|
|
28830
28916
|
]
|
|
28831
28917
|
});
|
|
28832
28918
|
}
|
|
28833
28919
|
//#endregion
|
|
28834
28920
|
//#region src/composed/DataTable/DataTableColumnHeader.tsx
|
|
28835
|
-
function
|
|
28921
|
+
function fq({ column: e, title: t, className: n, ...r }) {
|
|
28836
28922
|
if (!e.getCanSort()) return /* @__PURE__ */ H("div", {
|
|
28837
28923
|
className: n,
|
|
28838
28924
|
...r,
|
|
@@ -28852,165 +28938,314 @@ function dq({ column: e, title: t, className: n, ...r }) {
|
|
|
28852
28938
|
});
|
|
28853
28939
|
}
|
|
28854
28940
|
//#endregion
|
|
28855
|
-
//#region src/composed/
|
|
28856
|
-
|
|
28857
|
-
|
|
28858
|
-
|
|
28859
|
-
|
|
28860
|
-
|
|
28861
|
-
|
|
28862
|
-
|
|
28863
|
-
|
|
28864
|
-
|
|
28865
|
-
|
|
28866
|
-
|
|
28867
|
-
|
|
28868
|
-
|
|
28869
|
-
|
|
28870
|
-
|
|
28941
|
+
//#region src/composed/DataTable/cells.tsx
|
|
28942
|
+
var pq = 6e4, mq = 36e5, hq = 864e5;
|
|
28943
|
+
function gq(e) {
|
|
28944
|
+
let t = Date.now() - e.getTime();
|
|
28945
|
+
return t < pq ? "just now" : t < mq ? `${Math.floor(t / pq)}m ago` : t < hq ? `${Math.floor(t / mq)}h ago` : t < hq * 30 ? `${Math.floor(t / hq)}d ago` : e.toLocaleDateString(void 0, {
|
|
28946
|
+
month: "short",
|
|
28947
|
+
day: "numeric",
|
|
28948
|
+
year: "numeric"
|
|
28949
|
+
});
|
|
28950
|
+
}
|
|
28951
|
+
function _q(e) {
|
|
28952
|
+
return e.toLocaleString(void 0, {
|
|
28953
|
+
month: "short",
|
|
28954
|
+
day: "numeric",
|
|
28955
|
+
year: "numeric",
|
|
28956
|
+
hour: "2-digit",
|
|
28957
|
+
minute: "2-digit"
|
|
28958
|
+
});
|
|
28959
|
+
}
|
|
28960
|
+
function vq({ value: e, format: t = "relative" }) {
|
|
28961
|
+
if (!e) return /* @__PURE__ */ H("span", {
|
|
28962
|
+
className: "text-muted-foreground",
|
|
28963
|
+
children: "—"
|
|
28964
|
+
});
|
|
28965
|
+
let n = e instanceof Date ? e : new Date(e);
|
|
28966
|
+
if (Number.isNaN(n.getTime())) return /* @__PURE__ */ H("span", {
|
|
28967
|
+
className: "text-muted-foreground",
|
|
28968
|
+
children: "—"
|
|
28969
|
+
});
|
|
28970
|
+
let r = t === "relative" ? gq(n) : _q(n), i = _q(n);
|
|
28971
|
+
return /* @__PURE__ */ H(SU, {
|
|
28972
|
+
delayDuration: 300,
|
|
28973
|
+
children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
|
|
28974
|
+
asChild: !0,
|
|
28975
|
+
children: /* @__PURE__ */ H("span", {
|
|
28976
|
+
className: "text-muted-foreground tabular-nums",
|
|
28977
|
+
children: r
|
|
28978
|
+
})
|
|
28979
|
+
}), /* @__PURE__ */ H(TU, {
|
|
28980
|
+
side: "top",
|
|
28981
|
+
children: /* @__PURE__ */ H("span", {
|
|
28982
|
+
className: "text-xs",
|
|
28983
|
+
children: i
|
|
28984
|
+
})
|
|
28985
|
+
})] })
|
|
28986
|
+
});
|
|
28987
|
+
}
|
|
28988
|
+
function yq({ value: e, variant: t = "default", icon: n }) {
|
|
28989
|
+
if (!e) return /* @__PURE__ */ H("span", {
|
|
28990
|
+
className: "text-muted-foreground",
|
|
28991
|
+
children: "—"
|
|
28992
|
+
});
|
|
28993
|
+
let r = /* @__PURE__ */ U(ob, {
|
|
28994
|
+
variant: t,
|
|
28995
|
+
className: "max-w-[180px] truncate",
|
|
28996
|
+
children: [n, e]
|
|
28997
|
+
});
|
|
28998
|
+
return e.length > 20 ? /* @__PURE__ */ H(SU, {
|
|
28999
|
+
delayDuration: 300,
|
|
29000
|
+
children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
|
|
29001
|
+
asChild: !0,
|
|
29002
|
+
children: r
|
|
29003
|
+
}), /* @__PURE__ */ H(TU, {
|
|
29004
|
+
side: "top",
|
|
29005
|
+
className: "max-w-sm",
|
|
29006
|
+
children: /* @__PURE__ */ H("span", {
|
|
29007
|
+
className: "text-xs",
|
|
29008
|
+
children: e
|
|
29009
|
+
})
|
|
29010
|
+
})] })
|
|
29011
|
+
}) : r;
|
|
29012
|
+
}
|
|
29013
|
+
function bq({ value: e, maxLength: t = 32 }) {
|
|
29014
|
+
if (!e) return /* @__PURE__ */ H("span", {
|
|
29015
|
+
className: "text-muted-foreground",
|
|
29016
|
+
children: "—"
|
|
29017
|
+
});
|
|
29018
|
+
let n = e.length > t, r = n ? `${e.slice(0, t)}…` : e;
|
|
29019
|
+
return n ? /* @__PURE__ */ H(SU, {
|
|
29020
|
+
delayDuration: 300,
|
|
29021
|
+
children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
|
|
29022
|
+
asChild: !0,
|
|
29023
|
+
children: /* @__PURE__ */ H("code", {
|
|
29024
|
+
className: "text-xs text-muted-foreground",
|
|
29025
|
+
children: r
|
|
29026
|
+
})
|
|
29027
|
+
}), /* @__PURE__ */ H(TU, {
|
|
29028
|
+
side: "top",
|
|
29029
|
+
className: "max-w-sm",
|
|
29030
|
+
children: /* @__PURE__ */ H("code", {
|
|
29031
|
+
className: "min-w-0 text-xs [overflow-wrap:anywhere]",
|
|
29032
|
+
children: e
|
|
29033
|
+
})
|
|
29034
|
+
})] })
|
|
29035
|
+
}) : /* @__PURE__ */ H("code", {
|
|
29036
|
+
className: "text-xs text-muted-foreground",
|
|
29037
|
+
children: r
|
|
29038
|
+
});
|
|
29039
|
+
}
|
|
29040
|
+
function xq({ value: e, maxLength: t = 24 }) {
|
|
29041
|
+
let [n, i] = V(!1), a = re(void 0), o = F(() => {
|
|
29042
|
+
e && (navigator.clipboard.writeText(e), i(!0), clearTimeout(a.current), a.current = setTimeout(() => i(!1), 2e3));
|
|
29043
|
+
}, [e]);
|
|
29044
|
+
if (!e) return /* @__PURE__ */ H("span", {
|
|
29045
|
+
className: "text-muted-foreground",
|
|
29046
|
+
children: "—"
|
|
29047
|
+
});
|
|
29048
|
+
let s = e.length > t;
|
|
29049
|
+
return /* @__PURE__ */ U("span", {
|
|
29050
|
+
className: "group/copy inline-flex items-center gap-1",
|
|
29051
|
+
children: [/* @__PURE__ */ H(SU, {
|
|
29052
|
+
delayDuration: 300,
|
|
29053
|
+
children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
|
|
29054
|
+
asChild: !0,
|
|
29055
|
+
children: /* @__PURE__ */ H("code", {
|
|
29056
|
+
className: "text-xs text-muted-foreground",
|
|
29057
|
+
children: s ? `${e.slice(0, t)}…` : e
|
|
29058
|
+
})
|
|
29059
|
+
}), s && /* @__PURE__ */ H(TU, {
|
|
29060
|
+
side: "top",
|
|
29061
|
+
className: "max-w-sm",
|
|
29062
|
+
children: /* @__PURE__ */ H("code", {
|
|
29063
|
+
className: "min-w-0 text-xs [overflow-wrap:anywhere]",
|
|
29064
|
+
children: e
|
|
29065
|
+
})
|
|
29066
|
+
})] })
|
|
29067
|
+
}), /* @__PURE__ */ H(hb, {
|
|
29068
|
+
variant: "ghost",
|
|
29069
|
+
size: "icon-xs",
|
|
29070
|
+
className: q("size-5 opacity-0 transition-opacity group-hover/copy:opacity-100", n && "opacity-100"),
|
|
29071
|
+
onClick: o,
|
|
29072
|
+
"aria-label": n ? "Copied" : "Copy to clipboard",
|
|
29073
|
+
children: H(n ? r : p, { className: "size-3" })
|
|
29074
|
+
})]
|
|
29075
|
+
});
|
|
29076
|
+
}
|
|
29077
|
+
function Sq({ value: e, className: t }) {
|
|
29078
|
+
return e ? /* @__PURE__ */ H(SU, {
|
|
29079
|
+
delayDuration: 500,
|
|
29080
|
+
children: /* @__PURE__ */ U(CU, { children: [/* @__PURE__ */ H(wU, {
|
|
29081
|
+
asChild: !0,
|
|
29082
|
+
children: /* @__PURE__ */ H("span", {
|
|
29083
|
+
className: q("block max-w-[200px] truncate", t),
|
|
29084
|
+
children: e
|
|
29085
|
+
})
|
|
29086
|
+
}), e.length > 30 && /* @__PURE__ */ H(TU, {
|
|
29087
|
+
side: "top",
|
|
29088
|
+
className: "max-w-md",
|
|
29089
|
+
children: /* @__PURE__ */ H("span", {
|
|
29090
|
+
className: "min-w-0 text-xs [overflow-wrap:anywhere]",
|
|
29091
|
+
children: e
|
|
29092
|
+
})
|
|
29093
|
+
})] })
|
|
29094
|
+
}) : /* @__PURE__ */ H("span", {
|
|
29095
|
+
className: "text-muted-foreground",
|
|
29096
|
+
children: "—"
|
|
29097
|
+
});
|
|
29098
|
+
}
|
|
29099
|
+
//#endregion
|
|
29100
|
+
//#region src/composed/DataTableEmptyState/DataTableEmptyState.tsx
|
|
29101
|
+
function Cq(e) {
|
|
29102
|
+
let { variant: t, icon: n, title: r, description: i, className: a } = e, o = r.trim().length > 0, s = i.trim().length > 0;
|
|
29103
|
+
return t === "no-results" ? /* @__PURE__ */ U(aR, {
|
|
29104
|
+
className: q("py-12 text-foreground", a),
|
|
29105
|
+
role: "status",
|
|
29106
|
+
children: [/* @__PURE__ */ U(oR, {
|
|
29107
|
+
className: "max-w-md",
|
|
28871
29108
|
children: [
|
|
28872
|
-
|
|
28873
|
-
|
|
28874
|
-
children:
|
|
28875
|
-
className: "text-xs text-muted-foreground",
|
|
28876
|
-
children: "Items per page"
|
|
28877
|
-
}), /* @__PURE__ */ U(tU, {
|
|
28878
|
-
value: String(n),
|
|
28879
|
-
onValueChange: (e) => o(Number(e)),
|
|
28880
|
-
children: [/* @__PURE__ */ H(iU, {
|
|
28881
|
-
className: "h-7 w-16",
|
|
28882
|
-
"aria-label": "Items per page",
|
|
28883
|
-
children: /* @__PURE__ */ H(rU, {})
|
|
28884
|
-
}), /* @__PURE__ */ H(aU, { children: i.map((e) => /* @__PURE__ */ H(sU, {
|
|
28885
|
-
value: String(e),
|
|
28886
|
-
children: e
|
|
28887
|
-
}, e)) })]
|
|
28888
|
-
})]
|
|
29109
|
+
n && /* @__PURE__ */ H(cR, {
|
|
29110
|
+
variant: "icon",
|
|
29111
|
+
children: n
|
|
28889
29112
|
}),
|
|
28890
|
-
/* @__PURE__ */
|
|
28891
|
-
className: "
|
|
28892
|
-
children:
|
|
28893
|
-
r > 0 ? `${l}-${u}` : "0",
|
|
28894
|
-
" of ",
|
|
28895
|
-
r
|
|
28896
|
-
]
|
|
29113
|
+
o && /* @__PURE__ */ H(lR, {
|
|
29114
|
+
className: "[overflow-wrap:anywhere] text-foreground",
|
|
29115
|
+
children: r
|
|
28897
29116
|
}),
|
|
28898
|
-
/* @__PURE__ */
|
|
28899
|
-
className: "
|
|
28900
|
-
children:
|
|
28901
|
-
variant: "ghost",
|
|
28902
|
-
size: "icon-xs",
|
|
28903
|
-
disabled: e <= 1,
|
|
28904
|
-
onClick: () => a(e - 1),
|
|
28905
|
-
"aria-label": "Previous page",
|
|
28906
|
-
children: /* @__PURE__ */ H(y, { className: "size-4" })
|
|
28907
|
-
}), /* @__PURE__ */ H(hb, {
|
|
28908
|
-
variant: "ghost",
|
|
28909
|
-
size: "icon-xs",
|
|
28910
|
-
disabled: e >= c,
|
|
28911
|
-
onClick: () => a(e + 1),
|
|
28912
|
-
"aria-label": "Next page",
|
|
28913
|
-
children: /* @__PURE__ */ H(t, { className: "size-4" })
|
|
28914
|
-
})]
|
|
29117
|
+
s && /* @__PURE__ */ H(uR, {
|
|
29118
|
+
className: "[overflow-wrap:anywhere]",
|
|
29119
|
+
children: i
|
|
28915
29120
|
})
|
|
28916
29121
|
]
|
|
28917
|
-
})]
|
|
29122
|
+
}), e.action && /* @__PURE__ */ H(dR, { children: e.action })]
|
|
29123
|
+
}) : /* @__PURE__ */ U(aR, {
|
|
29124
|
+
className: q("py-16 text-foreground", a),
|
|
29125
|
+
role: "status",
|
|
29126
|
+
children: [
|
|
29127
|
+
/* @__PURE__ */ U(oR, {
|
|
29128
|
+
className: "max-w-md",
|
|
29129
|
+
children: [
|
|
29130
|
+
n && /* @__PURE__ */ H(cR, {
|
|
29131
|
+
variant: "icon",
|
|
29132
|
+
children: n
|
|
29133
|
+
}),
|
|
29134
|
+
o && /* @__PURE__ */ H(lR, {
|
|
29135
|
+
className: "text-base font-semibold [overflow-wrap:anywhere] text-foreground",
|
|
29136
|
+
children: r
|
|
29137
|
+
}),
|
|
29138
|
+
s && /* @__PURE__ */ H(uR, {
|
|
29139
|
+
className: "[overflow-wrap:anywhere]",
|
|
29140
|
+
children: i
|
|
29141
|
+
})
|
|
29142
|
+
]
|
|
29143
|
+
}),
|
|
29144
|
+
e.children && /* @__PURE__ */ H("div", {
|
|
29145
|
+
className: "w-full max-w-2xl px-6 pt-2",
|
|
29146
|
+
children: e.children
|
|
29147
|
+
}),
|
|
29148
|
+
(e.primaryAction || e.secondaryAction) && /* @__PURE__ */ H(dR, { children: /* @__PURE__ */ U("div", {
|
|
29149
|
+
className: "flex flex-wrap items-center gap-2",
|
|
29150
|
+
children: [e.secondaryAction, e.primaryAction]
|
|
29151
|
+
}) })
|
|
29152
|
+
]
|
|
28918
29153
|
});
|
|
28919
29154
|
}
|
|
28920
29155
|
//#endregion
|
|
28921
29156
|
//#region ../../node_modules/date-fns/constants.js
|
|
28922
|
-
var
|
|
28923
|
-
|
|
28924
|
-
var
|
|
29157
|
+
var wq = 365.2425, Tq = 6048e5, Eq = 864e5, Dq = 3600 * 24;
|
|
29158
|
+
Dq * 7, Dq * wq / 12 * 3;
|
|
29159
|
+
var Oq = Symbol.for("constructDateFrom");
|
|
28925
29160
|
//#endregion
|
|
28926
29161
|
//#region ../../node_modules/date-fns/constructFrom.js
|
|
28927
|
-
function
|
|
28928
|
-
return typeof e == "function" ? e(t) : e && typeof e == "object" &&
|
|
29162
|
+
function kq(e, t) {
|
|
29163
|
+
return typeof e == "function" ? e(t) : e && typeof e == "object" && Oq in e ? e[Oq](t) : e instanceof Date ? new e.constructor(t) : new Date(t);
|
|
28929
29164
|
}
|
|
28930
29165
|
//#endregion
|
|
28931
29166
|
//#region ../../node_modules/date-fns/toDate.js
|
|
28932
|
-
function
|
|
28933
|
-
return
|
|
29167
|
+
function Aq(e, t) {
|
|
29168
|
+
return kq(t || e, e);
|
|
28934
29169
|
}
|
|
28935
29170
|
//#endregion
|
|
28936
29171
|
//#region ../../node_modules/date-fns/_lib/defaultOptions.js
|
|
28937
|
-
var
|
|
28938
|
-
function
|
|
28939
|
-
return
|
|
29172
|
+
var jq = {};
|
|
29173
|
+
function Mq() {
|
|
29174
|
+
return jq;
|
|
28940
29175
|
}
|
|
28941
29176
|
//#endregion
|
|
28942
29177
|
//#region ../../node_modules/date-fns/startOfWeek.js
|
|
28943
|
-
function
|
|
28944
|
-
let n =
|
|
29178
|
+
function Nq(e, t) {
|
|
29179
|
+
let n = Mq(), r = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, i = Aq(e, t?.in), a = i.getDay(), o = (a < r ? 7 : 0) + a - r;
|
|
28945
29180
|
return i.setDate(i.getDate() - o), i.setHours(0, 0, 0, 0), i;
|
|
28946
29181
|
}
|
|
28947
29182
|
//#endregion
|
|
28948
29183
|
//#region ../../node_modules/date-fns/startOfISOWeek.js
|
|
28949
|
-
function
|
|
28950
|
-
return
|
|
29184
|
+
function Pq(e, t) {
|
|
29185
|
+
return Nq(e, {
|
|
28951
29186
|
...t,
|
|
28952
29187
|
weekStartsOn: 1
|
|
28953
29188
|
});
|
|
28954
29189
|
}
|
|
28955
29190
|
//#endregion
|
|
28956
29191
|
//#region ../../node_modules/date-fns/getISOWeekYear.js
|
|
28957
|
-
function
|
|
28958
|
-
let n =
|
|
29192
|
+
function Fq(e, t) {
|
|
29193
|
+
let n = Aq(e, t?.in), r = n.getFullYear(), i = kq(n, 0);
|
|
28959
29194
|
i.setFullYear(r + 1, 0, 4), i.setHours(0, 0, 0, 0);
|
|
28960
|
-
let a =
|
|
29195
|
+
let a = Pq(i), o = kq(n, 0);
|
|
28961
29196
|
o.setFullYear(r, 0, 4), o.setHours(0, 0, 0, 0);
|
|
28962
|
-
let s =
|
|
29197
|
+
let s = Pq(o);
|
|
28963
29198
|
return n.getTime() >= a.getTime() ? r + 1 : n.getTime() >= s.getTime() ? r : r - 1;
|
|
28964
29199
|
}
|
|
28965
29200
|
//#endregion
|
|
28966
29201
|
//#region ../../node_modules/date-fns/_lib/getTimezoneOffsetInMilliseconds.js
|
|
28967
|
-
function
|
|
28968
|
-
let t =
|
|
29202
|
+
function Iq(e) {
|
|
29203
|
+
let t = Aq(e), n = new Date(Date.UTC(t.getFullYear(), t.getMonth(), t.getDate(), t.getHours(), t.getMinutes(), t.getSeconds(), t.getMilliseconds()));
|
|
28969
29204
|
return n.setUTCFullYear(t.getFullYear()), e - +n;
|
|
28970
29205
|
}
|
|
28971
29206
|
//#endregion
|
|
28972
29207
|
//#region ../../node_modules/date-fns/_lib/normalizeDates.js
|
|
28973
|
-
function
|
|
28974
|
-
let n =
|
|
29208
|
+
function Lq(e, ...t) {
|
|
29209
|
+
let n = kq.bind(null, e || t.find((e) => typeof e == "object"));
|
|
28975
29210
|
return t.map(n);
|
|
28976
29211
|
}
|
|
28977
29212
|
//#endregion
|
|
28978
29213
|
//#region ../../node_modules/date-fns/startOfDay.js
|
|
28979
|
-
function
|
|
28980
|
-
let n =
|
|
29214
|
+
function Rq(e, t) {
|
|
29215
|
+
let n = Aq(e, t?.in);
|
|
28981
29216
|
return n.setHours(0, 0, 0, 0), n;
|
|
28982
29217
|
}
|
|
28983
29218
|
//#endregion
|
|
28984
29219
|
//#region ../../node_modules/date-fns/differenceInCalendarDays.js
|
|
28985
|
-
function
|
|
28986
|
-
let [r, i] =
|
|
28987
|
-
return Math.round((s - c) /
|
|
29220
|
+
function zq(e, t, n) {
|
|
29221
|
+
let [r, i] = Lq(n?.in, e, t), a = Rq(r), o = Rq(i), s = +a - Iq(a), c = +o - Iq(o);
|
|
29222
|
+
return Math.round((s - c) / Eq);
|
|
28988
29223
|
}
|
|
28989
29224
|
//#endregion
|
|
28990
29225
|
//#region ../../node_modules/date-fns/startOfISOWeekYear.js
|
|
28991
|
-
function
|
|
28992
|
-
let n =
|
|
28993
|
-
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0),
|
|
29226
|
+
function Bq(e, t) {
|
|
29227
|
+
let n = Fq(e, t), r = kq(t?.in || e, 0);
|
|
29228
|
+
return r.setFullYear(n, 0, 4), r.setHours(0, 0, 0, 0), Pq(r);
|
|
28994
29229
|
}
|
|
28995
29230
|
//#endregion
|
|
28996
29231
|
//#region ../../node_modules/date-fns/isDate.js
|
|
28997
|
-
function
|
|
29232
|
+
function Vq(e) {
|
|
28998
29233
|
return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
|
|
28999
29234
|
}
|
|
29000
29235
|
//#endregion
|
|
29001
29236
|
//#region ../../node_modules/date-fns/isValid.js
|
|
29002
|
-
function
|
|
29003
|
-
return !(!
|
|
29237
|
+
function Hq(e) {
|
|
29238
|
+
return !(!Vq(e) && typeof e != "number" || isNaN(+Aq(e)));
|
|
29004
29239
|
}
|
|
29005
29240
|
//#endregion
|
|
29006
29241
|
//#region ../../node_modules/date-fns/startOfYear.js
|
|
29007
|
-
function
|
|
29008
|
-
let n =
|
|
29242
|
+
function Uq(e, t) {
|
|
29243
|
+
let n = Aq(e, t?.in);
|
|
29009
29244
|
return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
|
|
29010
29245
|
}
|
|
29011
29246
|
//#endregion
|
|
29012
29247
|
//#region ../../node_modules/date-fns/locale/en-US/_lib/formatDistance.js
|
|
29013
|
-
var
|
|
29248
|
+
var Wq = {
|
|
29014
29249
|
lessThanXSeconds: {
|
|
29015
29250
|
one: "less than a second",
|
|
29016
29251
|
other: "less than {{count}} seconds"
|
|
@@ -29072,20 +29307,20 @@ var Nq = {
|
|
|
29072
29307
|
one: "almost 1 year",
|
|
29073
29308
|
other: "almost {{count}} years"
|
|
29074
29309
|
}
|
|
29075
|
-
},
|
|
29076
|
-
let r, i =
|
|
29310
|
+
}, Gq = (e, t, n) => {
|
|
29311
|
+
let r, i = Wq[e];
|
|
29077
29312
|
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;
|
|
29078
29313
|
};
|
|
29079
29314
|
//#endregion
|
|
29080
29315
|
//#region ../../node_modules/date-fns/locale/_lib/buildFormatLongFn.js
|
|
29081
|
-
function
|
|
29316
|
+
function Kq(e) {
|
|
29082
29317
|
return (t = {}) => {
|
|
29083
29318
|
let n = t.width ? String(t.width) : e.defaultWidth;
|
|
29084
29319
|
return e.formats[n] || e.formats[e.defaultWidth];
|
|
29085
29320
|
};
|
|
29086
29321
|
}
|
|
29087
|
-
var
|
|
29088
|
-
date:
|
|
29322
|
+
var qq = {
|
|
29323
|
+
date: Kq({
|
|
29089
29324
|
formats: {
|
|
29090
29325
|
full: "EEEE, MMMM do, y",
|
|
29091
29326
|
long: "MMMM do, y",
|
|
@@ -29094,7 +29329,7 @@ var Iq = {
|
|
|
29094
29329
|
},
|
|
29095
29330
|
defaultWidth: "full"
|
|
29096
29331
|
}),
|
|
29097
|
-
time:
|
|
29332
|
+
time: Kq({
|
|
29098
29333
|
formats: {
|
|
29099
29334
|
full: "h:mm:ss a zzzz",
|
|
29100
29335
|
long: "h:mm:ss a z",
|
|
@@ -29103,7 +29338,7 @@ var Iq = {
|
|
|
29103
29338
|
},
|
|
29104
29339
|
defaultWidth: "full"
|
|
29105
29340
|
}),
|
|
29106
|
-
dateTime:
|
|
29341
|
+
dateTime: Kq({
|
|
29107
29342
|
formats: {
|
|
29108
29343
|
full: "{{date}} 'at' {{time}}",
|
|
29109
29344
|
long: "{{date}} 'at' {{time}}",
|
|
@@ -29112,17 +29347,17 @@ var Iq = {
|
|
|
29112
29347
|
},
|
|
29113
29348
|
defaultWidth: "full"
|
|
29114
29349
|
})
|
|
29115
|
-
},
|
|
29350
|
+
}, Jq = {
|
|
29116
29351
|
lastWeek: "'last' eeee 'at' p",
|
|
29117
29352
|
yesterday: "'yesterday at' p",
|
|
29118
29353
|
today: "'today at' p",
|
|
29119
29354
|
tomorrow: "'tomorrow at' p",
|
|
29120
29355
|
nextWeek: "eeee 'at' p",
|
|
29121
29356
|
other: "P"
|
|
29122
|
-
},
|
|
29357
|
+
}, Yq = (e, t, n, r) => Jq[e];
|
|
29123
29358
|
//#endregion
|
|
29124
29359
|
//#region ../../node_modules/date-fns/locale/_lib/buildLocalizeFn.js
|
|
29125
|
-
function
|
|
29360
|
+
function Xq(e) {
|
|
29126
29361
|
return (t, n) => {
|
|
29127
29362
|
let r = n?.context ? String(n.context) : "standalone", i;
|
|
29128
29363
|
if (r === "formatting" && e.formattingValues) {
|
|
@@ -29136,7 +29371,7 @@ function zq(e) {
|
|
|
29136
29371
|
return i[a];
|
|
29137
29372
|
};
|
|
29138
29373
|
}
|
|
29139
|
-
var
|
|
29374
|
+
var Zq = {
|
|
29140
29375
|
ordinalNumber: (e, t) => {
|
|
29141
29376
|
let n = Number(e), r = n % 100;
|
|
29142
29377
|
if (r > 20 || r < 10) switch (r % 10) {
|
|
@@ -29146,7 +29381,7 @@ var Bq = {
|
|
|
29146
29381
|
}
|
|
29147
29382
|
return n + "th";
|
|
29148
29383
|
},
|
|
29149
|
-
era:
|
|
29384
|
+
era: Xq({
|
|
29150
29385
|
values: {
|
|
29151
29386
|
narrow: ["B", "A"],
|
|
29152
29387
|
abbreviated: ["BC", "AD"],
|
|
@@ -29154,7 +29389,7 @@ var Bq = {
|
|
|
29154
29389
|
},
|
|
29155
29390
|
defaultWidth: "wide"
|
|
29156
29391
|
}),
|
|
29157
|
-
quarter:
|
|
29392
|
+
quarter: Xq({
|
|
29158
29393
|
values: {
|
|
29159
29394
|
narrow: [
|
|
29160
29395
|
"1",
|
|
@@ -29178,7 +29413,7 @@ var Bq = {
|
|
|
29178
29413
|
defaultWidth: "wide",
|
|
29179
29414
|
argumentCallback: (e) => e - 1
|
|
29180
29415
|
}),
|
|
29181
|
-
month:
|
|
29416
|
+
month: Xq({
|
|
29182
29417
|
values: {
|
|
29183
29418
|
narrow: [
|
|
29184
29419
|
"J",
|
|
@@ -29225,7 +29460,7 @@ var Bq = {
|
|
|
29225
29460
|
},
|
|
29226
29461
|
defaultWidth: "wide"
|
|
29227
29462
|
}),
|
|
29228
|
-
day:
|
|
29463
|
+
day: Xq({
|
|
29229
29464
|
values: {
|
|
29230
29465
|
narrow: [
|
|
29231
29466
|
"S",
|
|
@@ -29266,7 +29501,7 @@ var Bq = {
|
|
|
29266
29501
|
},
|
|
29267
29502
|
defaultWidth: "wide"
|
|
29268
29503
|
}),
|
|
29269
|
-
dayPeriod:
|
|
29504
|
+
dayPeriod: Xq({
|
|
29270
29505
|
values: {
|
|
29271
29506
|
narrow: {
|
|
29272
29507
|
am: "a",
|
|
@@ -29337,11 +29572,11 @@ var Bq = {
|
|
|
29337
29572
|
};
|
|
29338
29573
|
//#endregion
|
|
29339
29574
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchFn.js
|
|
29340
|
-
function
|
|
29575
|
+
function Qq(e) {
|
|
29341
29576
|
return (t, n = {}) => {
|
|
29342
29577
|
let r = n.width, i = r && e.matchPatterns[r] || e.matchPatterns[e.defaultMatchWidth], a = t.match(i);
|
|
29343
29578
|
if (!a) return null;
|
|
29344
|
-
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ?
|
|
29579
|
+
let o = a[0], s = r && e.parsePatterns[r] || e.parsePatterns[e.defaultParseWidth], c = Array.isArray(s) ? eJ(s, (e) => e.test(o)) : $q(s, (e) => e.test(o)), l;
|
|
29345
29580
|
l = e.valueCallback ? e.valueCallback(c) : c, l = n.valueCallback ? n.valueCallback(l) : l;
|
|
29346
29581
|
let u = t.slice(o.length);
|
|
29347
29582
|
return {
|
|
@@ -29350,15 +29585,15 @@ function Vq(e) {
|
|
|
29350
29585
|
};
|
|
29351
29586
|
};
|
|
29352
29587
|
}
|
|
29353
|
-
function
|
|
29588
|
+
function $q(e, t) {
|
|
29354
29589
|
for (let n in e) if (Object.prototype.hasOwnProperty.call(e, n) && t(e[n])) return n;
|
|
29355
29590
|
}
|
|
29356
|
-
function
|
|
29591
|
+
function eJ(e, t) {
|
|
29357
29592
|
for (let n = 0; n < e.length; n++) if (t(e[n])) return n;
|
|
29358
29593
|
}
|
|
29359
29594
|
//#endregion
|
|
29360
29595
|
//#region ../../node_modules/date-fns/locale/_lib/buildMatchPatternFn.js
|
|
29361
|
-
function
|
|
29596
|
+
function tJ(e) {
|
|
29362
29597
|
return (t, n = {}) => {
|
|
29363
29598
|
let r = t.match(e.matchPattern);
|
|
29364
29599
|
if (!r) return null;
|
|
@@ -29375,19 +29610,19 @@ function Wq(e) {
|
|
|
29375
29610
|
}
|
|
29376
29611
|
//#endregion
|
|
29377
29612
|
//#region ../../node_modules/date-fns/locale/en-US.js
|
|
29378
|
-
var
|
|
29613
|
+
var nJ = {
|
|
29379
29614
|
code: "en-US",
|
|
29380
|
-
formatDistance:
|
|
29381
|
-
formatLong:
|
|
29382
|
-
formatRelative:
|
|
29383
|
-
localize:
|
|
29615
|
+
formatDistance: Gq,
|
|
29616
|
+
formatLong: qq,
|
|
29617
|
+
formatRelative: Yq,
|
|
29618
|
+
localize: Zq,
|
|
29384
29619
|
match: {
|
|
29385
|
-
ordinalNumber:
|
|
29620
|
+
ordinalNumber: tJ({
|
|
29386
29621
|
matchPattern: /^(\d+)(th|st|nd|rd)?/i,
|
|
29387
29622
|
parsePattern: /\d+/i,
|
|
29388
29623
|
valueCallback: (e) => parseInt(e, 10)
|
|
29389
29624
|
}),
|
|
29390
|
-
era:
|
|
29625
|
+
era: Qq({
|
|
29391
29626
|
matchPatterns: {
|
|
29392
29627
|
narrow: /^(b|a)/i,
|
|
29393
29628
|
abbreviated: /^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,
|
|
@@ -29397,7 +29632,7 @@ var Gq = {
|
|
|
29397
29632
|
parsePatterns: { any: [/^b/i, /^(a|c)/i] },
|
|
29398
29633
|
defaultParseWidth: "any"
|
|
29399
29634
|
}),
|
|
29400
|
-
quarter:
|
|
29635
|
+
quarter: Qq({
|
|
29401
29636
|
matchPatterns: {
|
|
29402
29637
|
narrow: /^[1234]/i,
|
|
29403
29638
|
abbreviated: /^q[1234]/i,
|
|
@@ -29413,7 +29648,7 @@ var Gq = {
|
|
|
29413
29648
|
defaultParseWidth: "any",
|
|
29414
29649
|
valueCallback: (e) => e + 1
|
|
29415
29650
|
}),
|
|
29416
|
-
month:
|
|
29651
|
+
month: Qq({
|
|
29417
29652
|
matchPatterns: {
|
|
29418
29653
|
narrow: /^[jfmasond]/i,
|
|
29419
29654
|
abbreviated: /^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,
|
|
@@ -29452,7 +29687,7 @@ var Gq = {
|
|
|
29452
29687
|
},
|
|
29453
29688
|
defaultParseWidth: "any"
|
|
29454
29689
|
}),
|
|
29455
|
-
day:
|
|
29690
|
+
day: Qq({
|
|
29456
29691
|
matchPatterns: {
|
|
29457
29692
|
narrow: /^[smtwf]/i,
|
|
29458
29693
|
short: /^(su|mo|tu|we|th|fr|sa)/i,
|
|
@@ -29482,7 +29717,7 @@ var Gq = {
|
|
|
29482
29717
|
},
|
|
29483
29718
|
defaultParseWidth: "any"
|
|
29484
29719
|
}),
|
|
29485
|
-
dayPeriod:
|
|
29720
|
+
dayPeriod: Qq({
|
|
29486
29721
|
matchPatterns: {
|
|
29487
29722
|
narrow: /^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,
|
|
29488
29723
|
any: /^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i
|
|
@@ -29508,56 +29743,56 @@ var Gq = {
|
|
|
29508
29743
|
};
|
|
29509
29744
|
//#endregion
|
|
29510
29745
|
//#region ../../node_modules/date-fns/getDayOfYear.js
|
|
29511
|
-
function
|
|
29512
|
-
let n =
|
|
29513
|
-
return
|
|
29746
|
+
function rJ(e, t) {
|
|
29747
|
+
let n = Aq(e, t?.in);
|
|
29748
|
+
return zq(n, Uq(n)) + 1;
|
|
29514
29749
|
}
|
|
29515
29750
|
//#endregion
|
|
29516
29751
|
//#region ../../node_modules/date-fns/getISOWeek.js
|
|
29517
|
-
function
|
|
29518
|
-
let n =
|
|
29519
|
-
return Math.round(r /
|
|
29752
|
+
function iJ(e, t) {
|
|
29753
|
+
let n = Aq(e, t?.in), r = Pq(n) - +Bq(n);
|
|
29754
|
+
return Math.round(r / Tq) + 1;
|
|
29520
29755
|
}
|
|
29521
29756
|
//#endregion
|
|
29522
29757
|
//#region ../../node_modules/date-fns/getWeekYear.js
|
|
29523
|
-
function
|
|
29524
|
-
let n =
|
|
29758
|
+
function aJ(e, t) {
|
|
29759
|
+
let n = Aq(e, t?.in), r = n.getFullYear(), i = Mq(), a = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? i.firstWeekContainsDate ?? i.locale?.options?.firstWeekContainsDate ?? 1, o = kq(t?.in || e, 0);
|
|
29525
29760
|
o.setFullYear(r + 1, 0, a), o.setHours(0, 0, 0, 0);
|
|
29526
|
-
let s =
|
|
29761
|
+
let s = Nq(o, t), c = kq(t?.in || e, 0);
|
|
29527
29762
|
c.setFullYear(r, 0, a), c.setHours(0, 0, 0, 0);
|
|
29528
|
-
let l =
|
|
29763
|
+
let l = Nq(c, t);
|
|
29529
29764
|
return +n >= +s ? r + 1 : +n >= +l ? r : r - 1;
|
|
29530
29765
|
}
|
|
29531
29766
|
//#endregion
|
|
29532
29767
|
//#region ../../node_modules/date-fns/startOfWeekYear.js
|
|
29533
|
-
function
|
|
29534
|
-
let n =
|
|
29535
|
-
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0),
|
|
29768
|
+
function oJ(e, t) {
|
|
29769
|
+
let n = Mq(), r = t?.firstWeekContainsDate ?? t?.locale?.options?.firstWeekContainsDate ?? n.firstWeekContainsDate ?? n.locale?.options?.firstWeekContainsDate ?? 1, i = aJ(e, t), a = kq(t?.in || e, 0);
|
|
29770
|
+
return a.setFullYear(i, 0, r), a.setHours(0, 0, 0, 0), Nq(a, t);
|
|
29536
29771
|
}
|
|
29537
29772
|
//#endregion
|
|
29538
29773
|
//#region ../../node_modules/date-fns/getWeek.js
|
|
29539
|
-
function
|
|
29540
|
-
let n =
|
|
29541
|
-
return Math.round(r /
|
|
29774
|
+
function sJ(e, t) {
|
|
29775
|
+
let n = Aq(e, t?.in), r = Nq(n, t) - +oJ(n, t);
|
|
29776
|
+
return Math.round(r / Tq) + 1;
|
|
29542
29777
|
}
|
|
29543
29778
|
//#endregion
|
|
29544
29779
|
//#region ../../node_modules/date-fns/_lib/addLeadingZeros.js
|
|
29545
|
-
function
|
|
29780
|
+
function cJ(e, t) {
|
|
29546
29781
|
return (e < 0 ? "-" : "") + Math.abs(e).toString().padStart(t, "0");
|
|
29547
29782
|
}
|
|
29548
29783
|
//#endregion
|
|
29549
29784
|
//#region ../../node_modules/date-fns/_lib/format/lightFormatters.js
|
|
29550
|
-
var
|
|
29785
|
+
var lJ = {
|
|
29551
29786
|
y(e, t) {
|
|
29552
29787
|
let n = e.getFullYear(), r = n > 0 ? n : 1 - n;
|
|
29553
|
-
return
|
|
29788
|
+
return cJ(t === "yy" ? r % 100 : r, t.length);
|
|
29554
29789
|
},
|
|
29555
29790
|
M(e, t) {
|
|
29556
29791
|
let n = e.getMonth();
|
|
29557
|
-
return t === "M" ? String(n + 1) :
|
|
29792
|
+
return t === "M" ? String(n + 1) : cJ(n + 1, 2);
|
|
29558
29793
|
},
|
|
29559
29794
|
d(e, t) {
|
|
29560
|
-
return
|
|
29795
|
+
return cJ(e.getDate(), t.length);
|
|
29561
29796
|
},
|
|
29562
29797
|
a(e, t) {
|
|
29563
29798
|
let n = e.getHours() / 12 >= 1 ? "pm" : "am";
|
|
@@ -29570,22 +29805,22 @@ var Qq = {
|
|
|
29570
29805
|
}
|
|
29571
29806
|
},
|
|
29572
29807
|
h(e, t) {
|
|
29573
|
-
return
|
|
29808
|
+
return cJ(e.getHours() % 12 || 12, t.length);
|
|
29574
29809
|
},
|
|
29575
29810
|
H(e, t) {
|
|
29576
|
-
return
|
|
29811
|
+
return cJ(e.getHours(), t.length);
|
|
29577
29812
|
},
|
|
29578
29813
|
m(e, t) {
|
|
29579
|
-
return
|
|
29814
|
+
return cJ(e.getMinutes(), t.length);
|
|
29580
29815
|
},
|
|
29581
29816
|
s(e, t) {
|
|
29582
|
-
return
|
|
29817
|
+
return cJ(e.getSeconds(), t.length);
|
|
29583
29818
|
},
|
|
29584
29819
|
S(e, t) {
|
|
29585
29820
|
let n = t.length, r = e.getMilliseconds();
|
|
29586
|
-
return
|
|
29821
|
+
return cJ(Math.trunc(r * 10 ** (n - 3)), t.length);
|
|
29587
29822
|
}
|
|
29588
|
-
},
|
|
29823
|
+
}, uJ = {
|
|
29589
29824
|
am: "am",
|
|
29590
29825
|
pm: "pm",
|
|
29591
29826
|
midnight: "midnight",
|
|
@@ -29594,7 +29829,7 @@ var Qq = {
|
|
|
29594
29829
|
afternoon: "afternoon",
|
|
29595
29830
|
evening: "evening",
|
|
29596
29831
|
night: "night"
|
|
29597
|
-
},
|
|
29832
|
+
}, dJ = {
|
|
29598
29833
|
G: function(e, t, n) {
|
|
29599
29834
|
let r = +(e.getFullYear() > 0);
|
|
29600
29835
|
switch (t) {
|
|
@@ -29610,23 +29845,23 @@ var Qq = {
|
|
|
29610
29845
|
let t = e.getFullYear(), r = t > 0 ? t : 1 - t;
|
|
29611
29846
|
return n.ordinalNumber(r, { unit: "year" });
|
|
29612
29847
|
}
|
|
29613
|
-
return
|
|
29848
|
+
return lJ.y(e, t);
|
|
29614
29849
|
},
|
|
29615
29850
|
Y: function(e, t, n, r) {
|
|
29616
|
-
let i =
|
|
29617
|
-
return t === "YY" ?
|
|
29851
|
+
let i = aJ(e, r), a = i > 0 ? i : 1 - i;
|
|
29852
|
+
return t === "YY" ? cJ(a % 100, 2) : t === "Yo" ? n.ordinalNumber(a, { unit: "year" }) : cJ(a, t.length);
|
|
29618
29853
|
},
|
|
29619
29854
|
R: function(e, t) {
|
|
29620
|
-
return
|
|
29855
|
+
return cJ(Fq(e), t.length);
|
|
29621
29856
|
},
|
|
29622
29857
|
u: function(e, t) {
|
|
29623
|
-
return
|
|
29858
|
+
return cJ(e.getFullYear(), t.length);
|
|
29624
29859
|
},
|
|
29625
29860
|
Q: function(e, t, n) {
|
|
29626
29861
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
29627
29862
|
switch (t) {
|
|
29628
29863
|
case "Q": return String(r);
|
|
29629
|
-
case "QQ": return
|
|
29864
|
+
case "QQ": return cJ(r, 2);
|
|
29630
29865
|
case "Qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
29631
29866
|
case "QQQ": return n.quarter(r, {
|
|
29632
29867
|
width: "abbreviated",
|
|
@@ -29646,7 +29881,7 @@ var Qq = {
|
|
|
29646
29881
|
let r = Math.ceil((e.getMonth() + 1) / 3);
|
|
29647
29882
|
switch (t) {
|
|
29648
29883
|
case "q": return String(r);
|
|
29649
|
-
case "qq": return
|
|
29884
|
+
case "qq": return cJ(r, 2);
|
|
29650
29885
|
case "qo": return n.ordinalNumber(r, { unit: "quarter" });
|
|
29651
29886
|
case "qqq": return n.quarter(r, {
|
|
29652
29887
|
width: "abbreviated",
|
|
@@ -29666,7 +29901,7 @@ var Qq = {
|
|
|
29666
29901
|
let r = e.getMonth();
|
|
29667
29902
|
switch (t) {
|
|
29668
29903
|
case "M":
|
|
29669
|
-
case "MM": return
|
|
29904
|
+
case "MM": return lJ.M(e, t);
|
|
29670
29905
|
case "Mo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
29671
29906
|
case "MMM": return n.month(r, {
|
|
29672
29907
|
width: "abbreviated",
|
|
@@ -29686,7 +29921,7 @@ var Qq = {
|
|
|
29686
29921
|
let r = e.getMonth();
|
|
29687
29922
|
switch (t) {
|
|
29688
29923
|
case "L": return String(r + 1);
|
|
29689
|
-
case "LL": return
|
|
29924
|
+
case "LL": return cJ(r + 1, 2);
|
|
29690
29925
|
case "Lo": return n.ordinalNumber(r + 1, { unit: "month" });
|
|
29691
29926
|
case "LLL": return n.month(r, {
|
|
29692
29927
|
width: "abbreviated",
|
|
@@ -29703,19 +29938,19 @@ var Qq = {
|
|
|
29703
29938
|
}
|
|
29704
29939
|
},
|
|
29705
29940
|
w: function(e, t, n, r) {
|
|
29706
|
-
let i =
|
|
29707
|
-
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) :
|
|
29941
|
+
let i = sJ(e, r);
|
|
29942
|
+
return t === "wo" ? n.ordinalNumber(i, { unit: "week" }) : cJ(i, t.length);
|
|
29708
29943
|
},
|
|
29709
29944
|
I: function(e, t, n) {
|
|
29710
|
-
let r =
|
|
29711
|
-
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) :
|
|
29945
|
+
let r = iJ(e);
|
|
29946
|
+
return t === "Io" ? n.ordinalNumber(r, { unit: "week" }) : cJ(r, t.length);
|
|
29712
29947
|
},
|
|
29713
29948
|
d: function(e, t, n) {
|
|
29714
|
-
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) :
|
|
29949
|
+
return t === "do" ? n.ordinalNumber(e.getDate(), { unit: "date" }) : lJ.d(e, t);
|
|
29715
29950
|
},
|
|
29716
29951
|
D: function(e, t, n) {
|
|
29717
|
-
let r =
|
|
29718
|
-
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) :
|
|
29952
|
+
let r = rJ(e);
|
|
29953
|
+
return t === "Do" ? n.ordinalNumber(r, { unit: "dayOfYear" }) : cJ(r, t.length);
|
|
29719
29954
|
},
|
|
29720
29955
|
E: function(e, t, n) {
|
|
29721
29956
|
let r = e.getDay();
|
|
@@ -29744,7 +29979,7 @@ var Qq = {
|
|
|
29744
29979
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
29745
29980
|
switch (t) {
|
|
29746
29981
|
case "e": return String(a);
|
|
29747
|
-
case "ee": return
|
|
29982
|
+
case "ee": return cJ(a, 2);
|
|
29748
29983
|
case "eo": return n.ordinalNumber(a, { unit: "day" });
|
|
29749
29984
|
case "eee": return n.day(i, {
|
|
29750
29985
|
width: "abbreviated",
|
|
@@ -29768,7 +30003,7 @@ var Qq = {
|
|
|
29768
30003
|
let i = e.getDay(), a = (i - r.weekStartsOn + 8) % 7 || 7;
|
|
29769
30004
|
switch (t) {
|
|
29770
30005
|
case "c": return String(a);
|
|
29771
|
-
case "cc": return
|
|
30006
|
+
case "cc": return cJ(a, t.length);
|
|
29772
30007
|
case "co": return n.ordinalNumber(a, { unit: "day" });
|
|
29773
30008
|
case "ccc": return n.day(i, {
|
|
29774
30009
|
width: "abbreviated",
|
|
@@ -29792,7 +30027,7 @@ var Qq = {
|
|
|
29792
30027
|
let r = e.getDay(), i = r === 0 ? 7 : r;
|
|
29793
30028
|
switch (t) {
|
|
29794
30029
|
case "i": return String(i);
|
|
29795
|
-
case "ii": return
|
|
30030
|
+
case "ii": return cJ(i, t.length);
|
|
29796
30031
|
case "io": return n.ordinalNumber(i, { unit: "day" });
|
|
29797
30032
|
case "iii": return n.day(r, {
|
|
29798
30033
|
width: "abbreviated",
|
|
@@ -29836,7 +30071,7 @@ var Qq = {
|
|
|
29836
30071
|
},
|
|
29837
30072
|
b: function(e, t, n) {
|
|
29838
30073
|
let r = e.getHours(), i;
|
|
29839
|
-
switch (i = r === 12 ?
|
|
30074
|
+
switch (i = r === 12 ? uJ.noon : r === 0 ? uJ.midnight : r / 12 >= 1 ? "pm" : "am", t) {
|
|
29840
30075
|
case "b":
|
|
29841
30076
|
case "bb": return n.dayPeriod(i, {
|
|
29842
30077
|
width: "abbreviated",
|
|
@@ -29858,7 +30093,7 @@ var Qq = {
|
|
|
29858
30093
|
},
|
|
29859
30094
|
B: function(e, t, n) {
|
|
29860
30095
|
let r = e.getHours(), i;
|
|
29861
|
-
switch (i = r >= 17 ?
|
|
30096
|
+
switch (i = r >= 17 ? uJ.evening : r >= 12 ? uJ.afternoon : r >= 4 ? uJ.morning : uJ.night, t) {
|
|
29862
30097
|
case "B":
|
|
29863
30098
|
case "BB":
|
|
29864
30099
|
case "BBB": return n.dayPeriod(i, {
|
|
@@ -29880,45 +30115,45 @@ var Qq = {
|
|
|
29880
30115
|
let t = e.getHours() % 12;
|
|
29881
30116
|
return t === 0 && (t = 12), n.ordinalNumber(t, { unit: "hour" });
|
|
29882
30117
|
}
|
|
29883
|
-
return
|
|
30118
|
+
return lJ.h(e, t);
|
|
29884
30119
|
},
|
|
29885
30120
|
H: function(e, t, n) {
|
|
29886
|
-
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) :
|
|
30121
|
+
return t === "Ho" ? n.ordinalNumber(e.getHours(), { unit: "hour" }) : lJ.H(e, t);
|
|
29887
30122
|
},
|
|
29888
30123
|
K: function(e, t, n) {
|
|
29889
30124
|
let r = e.getHours() % 12;
|
|
29890
|
-
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
30125
|
+
return t === "Ko" ? n.ordinalNumber(r, { unit: "hour" }) : cJ(r, t.length);
|
|
29891
30126
|
},
|
|
29892
30127
|
k: function(e, t, n) {
|
|
29893
30128
|
let r = e.getHours();
|
|
29894
|
-
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) :
|
|
30129
|
+
return r === 0 && (r = 24), t === "ko" ? n.ordinalNumber(r, { unit: "hour" }) : cJ(r, t.length);
|
|
29895
30130
|
},
|
|
29896
30131
|
m: function(e, t, n) {
|
|
29897
|
-
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) :
|
|
30132
|
+
return t === "mo" ? n.ordinalNumber(e.getMinutes(), { unit: "minute" }) : lJ.m(e, t);
|
|
29898
30133
|
},
|
|
29899
30134
|
s: function(e, t, n) {
|
|
29900
|
-
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) :
|
|
30135
|
+
return t === "so" ? n.ordinalNumber(e.getSeconds(), { unit: "second" }) : lJ.s(e, t);
|
|
29901
30136
|
},
|
|
29902
30137
|
S: function(e, t) {
|
|
29903
|
-
return
|
|
30138
|
+
return lJ.S(e, t);
|
|
29904
30139
|
},
|
|
29905
30140
|
X: function(e, t, n) {
|
|
29906
30141
|
let r = e.getTimezoneOffset();
|
|
29907
30142
|
if (r === 0) return "Z";
|
|
29908
30143
|
switch (t) {
|
|
29909
|
-
case "X": return
|
|
30144
|
+
case "X": return pJ(r);
|
|
29910
30145
|
case "XXXX":
|
|
29911
|
-
case "XX": return
|
|
29912
|
-
default: return
|
|
30146
|
+
case "XX": return mJ(r);
|
|
30147
|
+
default: return mJ(r, ":");
|
|
29913
30148
|
}
|
|
29914
30149
|
},
|
|
29915
30150
|
x: function(e, t, n) {
|
|
29916
30151
|
let r = e.getTimezoneOffset();
|
|
29917
30152
|
switch (t) {
|
|
29918
|
-
case "x": return
|
|
30153
|
+
case "x": return pJ(r);
|
|
29919
30154
|
case "xxxx":
|
|
29920
|
-
case "xx": return
|
|
29921
|
-
default: return
|
|
30155
|
+
case "xx": return mJ(r);
|
|
30156
|
+
default: return mJ(r, ":");
|
|
29922
30157
|
}
|
|
29923
30158
|
},
|
|
29924
30159
|
O: function(e, t, n) {
|
|
@@ -29926,8 +30161,8 @@ var Qq = {
|
|
|
29926
30161
|
switch (t) {
|
|
29927
30162
|
case "O":
|
|
29928
30163
|
case "OO":
|
|
29929
|
-
case "OOO": return "GMT" +
|
|
29930
|
-
default: return "GMT" +
|
|
30164
|
+
case "OOO": return "GMT" + fJ(r, ":");
|
|
30165
|
+
default: return "GMT" + mJ(r, ":");
|
|
29931
30166
|
}
|
|
29932
30167
|
},
|
|
29933
30168
|
z: function(e, t, n) {
|
|
@@ -29935,49 +30170,49 @@ var Qq = {
|
|
|
29935
30170
|
switch (t) {
|
|
29936
30171
|
case "z":
|
|
29937
30172
|
case "zz":
|
|
29938
|
-
case "zzz": return "GMT" +
|
|
29939
|
-
default: return "GMT" +
|
|
30173
|
+
case "zzz": return "GMT" + fJ(r, ":");
|
|
30174
|
+
default: return "GMT" + mJ(r, ":");
|
|
29940
30175
|
}
|
|
29941
30176
|
},
|
|
29942
30177
|
t: function(e, t, n) {
|
|
29943
|
-
return
|
|
30178
|
+
return cJ(Math.trunc(e / 1e3), t.length);
|
|
29944
30179
|
},
|
|
29945
30180
|
T: function(e, t, n) {
|
|
29946
|
-
return
|
|
30181
|
+
return cJ(+e, t.length);
|
|
29947
30182
|
}
|
|
29948
30183
|
};
|
|
29949
|
-
function
|
|
30184
|
+
function fJ(e, t = "") {
|
|
29950
30185
|
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = Math.trunc(r / 60), a = r % 60;
|
|
29951
|
-
return a === 0 ? n + String(i) : n + String(i) + t +
|
|
30186
|
+
return a === 0 ? n + String(i) : n + String(i) + t + cJ(a, 2);
|
|
29952
30187
|
}
|
|
29953
|
-
function
|
|
29954
|
-
return e % 60 == 0 ? (e > 0 ? "-" : "+") +
|
|
30188
|
+
function pJ(e, t) {
|
|
30189
|
+
return e % 60 == 0 ? (e > 0 ? "-" : "+") + cJ(Math.abs(e) / 60, 2) : mJ(e, t);
|
|
29955
30190
|
}
|
|
29956
|
-
function
|
|
29957
|
-
let n = e > 0 ? "-" : "+", r = Math.abs(e), i =
|
|
30191
|
+
function mJ(e, t = "") {
|
|
30192
|
+
let n = e > 0 ? "-" : "+", r = Math.abs(e), i = cJ(Math.trunc(r / 60), 2), a = cJ(r % 60, 2);
|
|
29958
30193
|
return n + i + t + a;
|
|
29959
30194
|
}
|
|
29960
30195
|
//#endregion
|
|
29961
30196
|
//#region ../../node_modules/date-fns/_lib/format/longFormatters.js
|
|
29962
|
-
var
|
|
30197
|
+
var hJ = (e, t) => {
|
|
29963
30198
|
switch (e) {
|
|
29964
30199
|
case "P": return t.date({ width: "short" });
|
|
29965
30200
|
case "PP": return t.date({ width: "medium" });
|
|
29966
30201
|
case "PPP": return t.date({ width: "long" });
|
|
29967
30202
|
default: return t.date({ width: "full" });
|
|
29968
30203
|
}
|
|
29969
|
-
},
|
|
30204
|
+
}, gJ = (e, t) => {
|
|
29970
30205
|
switch (e) {
|
|
29971
30206
|
case "p": return t.time({ width: "short" });
|
|
29972
30207
|
case "pp": return t.time({ width: "medium" });
|
|
29973
30208
|
case "ppp": return t.time({ width: "long" });
|
|
29974
30209
|
default: return t.time({ width: "full" });
|
|
29975
30210
|
}
|
|
29976
|
-
},
|
|
29977
|
-
p:
|
|
30211
|
+
}, _J = {
|
|
30212
|
+
p: gJ,
|
|
29978
30213
|
P: (e, t) => {
|
|
29979
30214
|
let n = e.match(/(P+)(p+)?/) || [], r = n[1], i = n[2];
|
|
29980
|
-
if (!i) return
|
|
30215
|
+
if (!i) return hJ(e, t);
|
|
29981
30216
|
let a;
|
|
29982
30217
|
switch (r) {
|
|
29983
30218
|
case "P":
|
|
@@ -29993,42 +30228,42 @@ var iJ = (e, t) => {
|
|
|
29993
30228
|
a = t.dateTime({ width: "full" });
|
|
29994
30229
|
break;
|
|
29995
30230
|
}
|
|
29996
|
-
return a.replace("{{date}}",
|
|
30231
|
+
return a.replace("{{date}}", hJ(r, t)).replace("{{time}}", gJ(i, t));
|
|
29997
30232
|
}
|
|
29998
|
-
},
|
|
30233
|
+
}, vJ = /^D+$/, yJ = /^Y+$/, bJ = [
|
|
29999
30234
|
"D",
|
|
30000
30235
|
"DD",
|
|
30001
30236
|
"YY",
|
|
30002
30237
|
"YYYY"
|
|
30003
30238
|
];
|
|
30004
|
-
function
|
|
30005
|
-
return
|
|
30239
|
+
function xJ(e) {
|
|
30240
|
+
return vJ.test(e);
|
|
30006
30241
|
}
|
|
30007
|
-
function
|
|
30008
|
-
return
|
|
30242
|
+
function SJ(e) {
|
|
30243
|
+
return yJ.test(e);
|
|
30009
30244
|
}
|
|
30010
|
-
function
|
|
30011
|
-
let r =
|
|
30012
|
-
if (console.warn(r),
|
|
30245
|
+
function CJ(e, t, n) {
|
|
30246
|
+
let r = wJ(e, t, n);
|
|
30247
|
+
if (console.warn(r), bJ.includes(e)) throw RangeError(r);
|
|
30013
30248
|
}
|
|
30014
|
-
function
|
|
30249
|
+
function wJ(e, t, n) {
|
|
30015
30250
|
let r = e[0] === "Y" ? "years" : "days of the month";
|
|
30016
30251
|
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`;
|
|
30017
30252
|
}
|
|
30018
30253
|
//#endregion
|
|
30019
30254
|
//#region ../../node_modules/date-fns/format.js
|
|
30020
|
-
var
|
|
30021
|
-
function
|
|
30022
|
-
let r =
|
|
30023
|
-
if (!
|
|
30024
|
-
let c = t.match(
|
|
30255
|
+
var TJ = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, EJ = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, DJ = /^'([^]*?)'?$/, OJ = /''/g, kJ = /[a-zA-Z]/;
|
|
30256
|
+
function AJ(e, t, n) {
|
|
30257
|
+
let r = Mq(), i = n?.locale ?? r.locale ?? nJ, 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 = Aq(e, n?.in);
|
|
30258
|
+
if (!Hq(s)) throw RangeError("Invalid time value");
|
|
30259
|
+
let c = t.match(EJ).map((e) => {
|
|
30025
30260
|
let t = e[0];
|
|
30026
30261
|
if (t === "p" || t === "P") {
|
|
30027
|
-
let n =
|
|
30262
|
+
let n = _J[t];
|
|
30028
30263
|
return n(e, i.formatLong);
|
|
30029
30264
|
}
|
|
30030
30265
|
return e;
|
|
30031
|
-
}).join("").match(
|
|
30266
|
+
}).join("").match(TJ).map((e) => {
|
|
30032
30267
|
if (e === "''") return {
|
|
30033
30268
|
isToken: !1,
|
|
30034
30269
|
value: "'"
|
|
@@ -30036,13 +30271,13 @@ function yJ(e, t, n) {
|
|
|
30036
30271
|
let t = e[0];
|
|
30037
30272
|
if (t === "'") return {
|
|
30038
30273
|
isToken: !1,
|
|
30039
|
-
value:
|
|
30274
|
+
value: jJ(e)
|
|
30040
30275
|
};
|
|
30041
|
-
if (
|
|
30276
|
+
if (dJ[t]) return {
|
|
30042
30277
|
isToken: !0,
|
|
30043
30278
|
value: e
|
|
30044
30279
|
};
|
|
30045
|
-
if (t.match(
|
|
30280
|
+
if (t.match(kJ)) throw RangeError("Format string contains an unescaped latin alphabet character `" + t + "`");
|
|
30046
30281
|
return {
|
|
30047
30282
|
isToken: !1,
|
|
30048
30283
|
value: e
|
|
@@ -30057,18 +30292,18 @@ function yJ(e, t, n) {
|
|
|
30057
30292
|
return c.map((r) => {
|
|
30058
30293
|
if (!r.isToken) return r.value;
|
|
30059
30294
|
let a = r.value;
|
|
30060
|
-
(!n?.useAdditionalWeekYearTokens &&
|
|
30061
|
-
let o =
|
|
30295
|
+
(!n?.useAdditionalWeekYearTokens && SJ(a) || !n?.useAdditionalDayOfYearTokens && xJ(a)) && CJ(a, t, String(e));
|
|
30296
|
+
let o = dJ[a[0]];
|
|
30062
30297
|
return o(s, a, i.localize, l);
|
|
30063
30298
|
}).join("");
|
|
30064
30299
|
}
|
|
30065
|
-
function
|
|
30066
|
-
let t = e.match(
|
|
30067
|
-
return t ? t[1].replace(
|
|
30300
|
+
function jJ(e) {
|
|
30301
|
+
let t = e.match(DJ);
|
|
30302
|
+
return t ? t[1].replace(OJ, "'") : e;
|
|
30068
30303
|
}
|
|
30069
30304
|
//#endregion
|
|
30070
30305
|
//#region src/composed/DatePicker/DatePicker.tsx
|
|
30071
|
-
function
|
|
30306
|
+
function MJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disabled: i = !1, dateFormat: a = "PPP", locale: o, className: s, "aria-label": c }) {
|
|
30072
30307
|
let [l, u] = V(!1);
|
|
30073
30308
|
return /* @__PURE__ */ U(GB, {
|
|
30074
30309
|
open: l,
|
|
@@ -30084,7 +30319,7 @@ function xJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
|
|
|
30084
30319
|
"aria-expanded": l,
|
|
30085
30320
|
"aria-label": c,
|
|
30086
30321
|
className: q("w-full min-w-[9rem] justify-between font-normal", !t && "text-muted-foreground", s),
|
|
30087
|
-
children: [t ?
|
|
30322
|
+
children: [t ? AJ(t, a) : /* @__PURE__ */ H("span", { children: r }), /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
|
|
30088
30323
|
})
|
|
30089
30324
|
}), /* @__PURE__ */ H(qB, {
|
|
30090
30325
|
className: "w-auto p-0",
|
|
@@ -30101,7 +30336,7 @@ function xJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
|
|
|
30101
30336
|
}
|
|
30102
30337
|
//#endregion
|
|
30103
30338
|
//#region src/composed/DatePicker/DateRangePicker.tsx
|
|
30104
|
-
function
|
|
30339
|
+
function NJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disabled: i = !1, dateFormat: a = "LLL dd, y", locale: o, numberOfMonths: s = 2, className: c, "aria-label": l }) {
|
|
30105
30340
|
let [u, d] = V(!1);
|
|
30106
30341
|
return /* @__PURE__ */ U(GB, {
|
|
30107
30342
|
open: u,
|
|
@@ -30118,10 +30353,10 @@ function SJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
|
|
|
30118
30353
|
"aria-label": l,
|
|
30119
30354
|
className: q("w-full min-w-[15rem] justify-between font-normal", !(t?.from || t?.to) && "text-muted-foreground", c),
|
|
30120
30355
|
children: [t?.from || t?.to ? t.from ? t.to ? /* @__PURE__ */ U(oe, { children: [
|
|
30121
|
-
|
|
30356
|
+
AJ(t.from, a),
|
|
30122
30357
|
" → ",
|
|
30123
|
-
|
|
30124
|
-
] }) : /* @__PURE__ */ U(oe, { children: [
|
|
30358
|
+
AJ(t.to, a)
|
|
30359
|
+
] }) : /* @__PURE__ */ U(oe, { children: [AJ(t.from, a), " → …"] }) : /* @__PURE__ */ U(oe, { children: ["… → ", AJ(t.to, a)] }) : /* @__PURE__ */ H("span", { children: r }), /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
|
|
30125
30360
|
})
|
|
30126
30361
|
}), /* @__PURE__ */ H(qB, {
|
|
30127
30362
|
className: "w-auto p-0",
|
|
@@ -30139,10 +30374,10 @@ function SJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date", disa
|
|
|
30139
30374
|
}
|
|
30140
30375
|
//#endregion
|
|
30141
30376
|
//#region src/composed/DatePicker/date-time.ts
|
|
30142
|
-
function
|
|
30143
|
-
return e ?
|
|
30377
|
+
function PJ(e, t = "00:00:00") {
|
|
30378
|
+
return e ? AJ(e, "HH:mm:ss") : t;
|
|
30144
30379
|
}
|
|
30145
|
-
function
|
|
30380
|
+
function FJ(e, t) {
|
|
30146
30381
|
let [n = "0", r = "0", i = "0"] = t.split(":"), a = Number(n), o = Number(r), s = Number(i);
|
|
30147
30382
|
if (Number.isNaN(a) || Number.isNaN(o) || Number.isNaN(s)) return e;
|
|
30148
30383
|
let c = new Date(e);
|
|
@@ -30150,17 +30385,17 @@ function wJ(e, t) {
|
|
|
30150
30385
|
}
|
|
30151
30386
|
//#endregion
|
|
30152
30387
|
//#region src/composed/DatePicker/DateTimePicker.tsx
|
|
30153
|
-
function
|
|
30388
|
+
function IJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time", disabled: i = !1, dateTimeFormat: a = "PP '@' HH:mm:ss", locale: o, className: s, side: c = "bottom", align: l = "start", "aria-label": u }) {
|
|
30154
30389
|
let d = (/* @__PURE__ */ new Date()).getFullYear(), p = new Date(d - 10, 0), m = new Date(d + 10, 11), h = ee(), g = e ?? h, [_, v] = V(!1);
|
|
30155
30390
|
function y(e) {
|
|
30156
30391
|
if (!e) {
|
|
30157
30392
|
n?.(void 0);
|
|
30158
30393
|
return;
|
|
30159
30394
|
}
|
|
30160
|
-
n?.(
|
|
30395
|
+
n?.(FJ(e, t ? PJ(t) : "00:00:00"));
|
|
30161
30396
|
}
|
|
30162
30397
|
function b(e) {
|
|
30163
|
-
n?.(
|
|
30398
|
+
n?.(FJ(t ?? /* @__PURE__ */ new Date(), e));
|
|
30164
30399
|
}
|
|
30165
30400
|
return /* @__PURE__ */ U(GB, {
|
|
30166
30401
|
open: _,
|
|
@@ -30176,7 +30411,7 @@ function TJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
30176
30411
|
"aria-expanded": _,
|
|
30177
30412
|
"aria-label": u,
|
|
30178
30413
|
className: q("w-full min-w-[13rem] justify-between font-normal", !t && "text-muted-foreground", s),
|
|
30179
|
-
children: [t ?
|
|
30414
|
+
children: [t ? AJ(t, a) : r, /* @__PURE__ */ H(f, { "aria-hidden": "true" })]
|
|
30180
30415
|
})
|
|
30181
30416
|
}), /* @__PURE__ */ U(qB, {
|
|
30182
30417
|
className: "w-auto overflow-hidden p-0",
|
|
@@ -30203,7 +30438,7 @@ function TJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
30203
30438
|
id: `${g}-time`,
|
|
30204
30439
|
type: "time",
|
|
30205
30440
|
step: "1",
|
|
30206
|
-
value:
|
|
30441
|
+
value: PJ(t),
|
|
30207
30442
|
disabled: i,
|
|
30208
30443
|
onChange: (e) => b(e.target.value),
|
|
30209
30444
|
className: "ml-auto w-32 appearance-none bg-background [&::-webkit-calendar-picker-indicator]:hidden [&::-webkit-calendar-picker-indicator]:appearance-none"
|
|
@@ -30215,15 +30450,15 @@ function TJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
30215
30450
|
}
|
|
30216
30451
|
//#endregion
|
|
30217
30452
|
//#region src/composed/DatePicker/DateTimeRangePicker.tsx
|
|
30218
|
-
var
|
|
30219
|
-
function
|
|
30220
|
-
let h = (/* @__PURE__ */ new Date()).getFullYear(), g = new Date(h - 10, 0), _ = new Date(h + 10, 11), v = ee(), y = e ?? v, [b, x] = V(!1), S =
|
|
30453
|
+
var LJ = "00:00:00", RJ = "23:59:59";
|
|
30454
|
+
function zJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and time range", disabled: i = !1, fromLabel: a = "From", toLabel: o = "To", dateTimeFormat: s = "PP '@' HH:mm", locale: c, className: l, side: u = "bottom", align: d = "start", numberOfMonths: p = 2, "aria-label": m }) {
|
|
30455
|
+
let h = (/* @__PURE__ */ new Date()).getFullYear(), g = new Date(h - 10, 0), _ = new Date(h + 10, 11), v = ee(), y = e ?? v, [b, x] = V(!1), S = PJ(t?.from, LJ), C = PJ(t?.to, RJ);
|
|
30221
30456
|
function w(e) {
|
|
30222
30457
|
if (!e) {
|
|
30223
30458
|
n?.(void 0);
|
|
30224
30459
|
return;
|
|
30225
30460
|
}
|
|
30226
|
-
let t = e.from ?
|
|
30461
|
+
let t = e.from ? FJ(e.from, S) : void 0, r = e.to ? FJ(e.to, C) : void 0;
|
|
30227
30462
|
n?.({
|
|
30228
30463
|
from: t,
|
|
30229
30464
|
to: r
|
|
@@ -30232,7 +30467,7 @@ function OJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
30232
30467
|
function T(e) {
|
|
30233
30468
|
let r = t?.from ?? /* @__PURE__ */ new Date();
|
|
30234
30469
|
n?.({
|
|
30235
|
-
from:
|
|
30470
|
+
from: FJ(r, e),
|
|
30236
30471
|
to: t?.to
|
|
30237
30472
|
});
|
|
30238
30473
|
}
|
|
@@ -30240,11 +30475,11 @@ function OJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
30240
30475
|
let r = t?.to ?? t?.from ?? /* @__PURE__ */ new Date();
|
|
30241
30476
|
n?.({
|
|
30242
30477
|
from: t?.from,
|
|
30243
|
-
to:
|
|
30478
|
+
to: FJ(r, e)
|
|
30244
30479
|
});
|
|
30245
30480
|
}
|
|
30246
30481
|
function D() {
|
|
30247
|
-
return !t?.from && !t?.to ? r : t?.from && t?.to ? `${
|
|
30482
|
+
return !t?.from && !t?.to ? r : t?.from && t?.to ? `${AJ(t.from, s)} → ${AJ(t.to, s)}` : t?.from ? `${AJ(t.from, s)} → …` : t?.to ? `… → ${AJ(t.to, s)}` : r;
|
|
30248
30483
|
}
|
|
30249
30484
|
return /* @__PURE__ */ U(GB, {
|
|
30250
30485
|
open: b,
|
|
@@ -30317,7 +30552,7 @@ function OJ({ id: e, value: t, onChange: n, placeholder: r = "Pick a date and ti
|
|
|
30317
30552
|
}
|
|
30318
30553
|
//#endregion
|
|
30319
30554
|
//#region src/composed/FacetedFilter/FacetedFilter.tsx
|
|
30320
|
-
function
|
|
30555
|
+
function BJ({ title: e, options: t, selected: n, onChange: r }) {
|
|
30321
30556
|
let i = B(() => new Set(n), [n]);
|
|
30322
30557
|
return /* @__PURE__ */ U(GB, { children: [/* @__PURE__ */ H(KB, {
|
|
30323
30558
|
asChild: !0,
|
|
@@ -30359,13 +30594,13 @@ function kJ({ title: e, options: t, selected: n, onChange: r }) {
|
|
|
30359
30594
|
}
|
|
30360
30595
|
//#endregion
|
|
30361
30596
|
//#region src/composed/FileUpload/FileUploadItem.tsx
|
|
30362
|
-
var
|
|
30363
|
-
function
|
|
30597
|
+
var VJ = /\.(json|ya?ml|js|jsx|ts|tsx|html?|css|py|rb|go|rs|sh)$/i;
|
|
30598
|
+
function HJ(e) {
|
|
30364
30599
|
let t = e.type;
|
|
30365
|
-
return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" :
|
|
30600
|
+
return t.startsWith("image/") ? "image" : t.startsWith("video/") ? "video" : t.startsWith("audio/") ? "audio" : VJ.test(e.name) ? "code" : t === "application/pdf" || t.includes("document") || t.startsWith("text/") ? "document" : "other";
|
|
30366
30601
|
}
|
|
30367
|
-
function
|
|
30368
|
-
switch (
|
|
30602
|
+
function UJ({ className: t, file: n }) {
|
|
30603
|
+
switch (HJ(n)) {
|
|
30369
30604
|
case "audio": return /* @__PURE__ */ H(ue, { className: t });
|
|
30370
30605
|
case "code": return /* @__PURE__ */ H(de, { className: t });
|
|
30371
30606
|
case "document": return /* @__PURE__ */ H(e, { className: t });
|
|
@@ -30374,7 +30609,7 @@ function MJ({ className: t, file: n }) {
|
|
|
30374
30609
|
case "other": return /* @__PURE__ */ H(le, { className: t });
|
|
30375
30610
|
}
|
|
30376
30611
|
}
|
|
30377
|
-
function
|
|
30612
|
+
function WJ({ className: e, item: t, onRemove: n, ...r }) {
|
|
30378
30613
|
let i = ee(), a = t.status ?? "idle", o = t.progress !== void 0 && a !== "error";
|
|
30379
30614
|
return /* @__PURE__ */ U(DB, {
|
|
30380
30615
|
variant: "outline",
|
|
@@ -30387,7 +30622,7 @@ function NJ({ className: e, item: t, onRemove: n, ...r }) {
|
|
|
30387
30622
|
/* @__PURE__ */ H(kB, {
|
|
30388
30623
|
"aria-hidden": "true",
|
|
30389
30624
|
className: "text-muted-foreground",
|
|
30390
|
-
children: /* @__PURE__ */ H(
|
|
30625
|
+
children: /* @__PURE__ */ H(UJ, {
|
|
30391
30626
|
file: t.file,
|
|
30392
30627
|
className: "size-5"
|
|
30393
30628
|
})
|
|
@@ -30438,7 +30673,7 @@ function NJ({ className: e, item: t, onRemove: n, ...r }) {
|
|
|
30438
30673
|
}
|
|
30439
30674
|
//#endregion
|
|
30440
30675
|
//#region src/composed/FileUpload/FileUpload.tsx
|
|
30441
|
-
function
|
|
30676
|
+
function GJ({ className: e, errors: t, invalid: n, items: r, onFileRemove: i, onFilesAdd: a, onFilesReject: o, ...s }) {
|
|
30442
30677
|
let c = t !== void 0 && t.length > 0;
|
|
30443
30678
|
return /* @__PURE__ */ U("div", {
|
|
30444
30679
|
"data-slot": "file-upload",
|
|
@@ -30457,7 +30692,7 @@ function PJ({ className: e, errors: t, invalid: n, items: r, onFileRemove: i, on
|
|
|
30457
30692
|
}) : null,
|
|
30458
30693
|
r.length > 0 ? /* @__PURE__ */ H("ul", {
|
|
30459
30694
|
className: "flex flex-col gap-2",
|
|
30460
|
-
children: r.map((e) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(
|
|
30695
|
+
children: r.map((e) => /* @__PURE__ */ H("li", { children: /* @__PURE__ */ H(WJ, {
|
|
30461
30696
|
item: e,
|
|
30462
30697
|
onRemove: i
|
|
30463
30698
|
}) }, e.id))
|
|
@@ -30467,34 +30702,34 @@ function PJ({ className: e, errors: t, invalid: n, items: r, onFileRemove: i, on
|
|
|
30467
30702
|
}
|
|
30468
30703
|
//#endregion
|
|
30469
30704
|
//#region ../../node_modules/react-hook-form/dist/index.esm.mjs
|
|
30470
|
-
var
|
|
30705
|
+
var KJ = (e) => e.type === "checkbox", qJ = (e) => e instanceof Date, JJ = (e) => e == null, YJ = (e) => typeof e == "object", XJ = (e) => !JJ(e) && !Array.isArray(e) && YJ(e) && !qJ(e), ZJ = (e) => XJ(e) && e.target ? KJ(e.target) ? e.target.checked : e.target.value : e, QJ = (e, t) => t.split(".").some((t, n, r) => !isNaN(Number(t)) && e.has(r.slice(0, n).join("."))), $J = (e) => {
|
|
30471
30706
|
let t = e.constructor && e.constructor.prototype;
|
|
30472
|
-
return
|
|
30473
|
-
},
|
|
30474
|
-
function
|
|
30707
|
+
return XJ(t) && t.hasOwnProperty("isPrototypeOf");
|
|
30708
|
+
}, eY = typeof window < "u" && window.HTMLElement !== void 0 && typeof document < "u";
|
|
30709
|
+
function tY(e) {
|
|
30475
30710
|
if (e instanceof Date) return new Date(e);
|
|
30476
30711
|
let t = typeof FileList < "u" && e instanceof FileList;
|
|
30477
|
-
if (
|
|
30712
|
+
if (eY && (e instanceof Blob || t)) return e;
|
|
30478
30713
|
let n = Array.isArray(e);
|
|
30479
|
-
if (!n && !(
|
|
30714
|
+
if (!n && !(XJ(e) && $J(e))) return e;
|
|
30480
30715
|
let r = n ? [] : Object.create(Object.getPrototypeOf(e));
|
|
30481
|
-
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] =
|
|
30716
|
+
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = tY(e[t]));
|
|
30482
30717
|
return r;
|
|
30483
30718
|
}
|
|
30484
|
-
var
|
|
30719
|
+
var nY = {
|
|
30485
30720
|
BLUR: "blur",
|
|
30486
30721
|
FOCUS_OUT: "focusout",
|
|
30487
30722
|
CHANGE: "change",
|
|
30488
30723
|
SUBMIT: "submit",
|
|
30489
30724
|
TRIGGER: "trigger",
|
|
30490
30725
|
VALID: "valid"
|
|
30491
|
-
},
|
|
30726
|
+
}, rY = {
|
|
30492
30727
|
onBlur: "onBlur",
|
|
30493
30728
|
onChange: "onChange",
|
|
30494
30729
|
onSubmit: "onSubmit",
|
|
30495
30730
|
onTouched: "onTouched",
|
|
30496
30731
|
all: "all"
|
|
30497
|
-
},
|
|
30732
|
+
}, iY = {
|
|
30498
30733
|
max: "max",
|
|
30499
30734
|
min: "min",
|
|
30500
30735
|
maxLength: "maxLength",
|
|
@@ -30502,39 +30737,39 @@ var GJ = {
|
|
|
30502
30737
|
pattern: "pattern",
|
|
30503
30738
|
required: "required",
|
|
30504
30739
|
validate: "validate"
|
|
30505
|
-
},
|
|
30740
|
+
}, aY = "root", oY = [
|
|
30506
30741
|
"__proto__",
|
|
30507
30742
|
"constructor",
|
|
30508
30743
|
"prototype"
|
|
30509
|
-
],
|
|
30510
|
-
if (!t || !
|
|
30511
|
-
let r =
|
|
30512
|
-
if (r.some((e) =>
|
|
30513
|
-
let i = r.reduce((e, t) =>
|
|
30514
|
-
return
|
|
30515
|
-
},
|
|
30516
|
-
let r = -1, i =
|
|
30744
|
+
], sY = (e) => /^\w*$/.test(e), cY = (e) => e === void 0, lY = (e) => e.split(/[.[\]'"]/g).filter(Boolean), uY = (e, t, n) => {
|
|
30745
|
+
if (!t || !XJ(e)) return n;
|
|
30746
|
+
let r = sY(t) ? [t] : lY(t);
|
|
30747
|
+
if (r.some((e) => oY.includes(e))) return n;
|
|
30748
|
+
let i = r.reduce((e, t) => JJ(e) ? void 0 : e[t], e);
|
|
30749
|
+
return cY(i) || i === e ? cY(e[t]) ? n : e[t] : i;
|
|
30750
|
+
}, dY = (e) => typeof e == "boolean", fY = (e) => typeof e == "function", pY = (e, t, n) => {
|
|
30751
|
+
let r = -1, i = sY(t) ? [t] : lY(t), a = i.length, o = a - 1;
|
|
30517
30752
|
for (; ++r < a;) {
|
|
30518
30753
|
let t = i[r], a = n;
|
|
30519
30754
|
if (r !== o) {
|
|
30520
30755
|
let n = e[t];
|
|
30521
|
-
a =
|
|
30756
|
+
a = XJ(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
|
|
30522
30757
|
}
|
|
30523
|
-
if (
|
|
30758
|
+
if (oY.includes(t)) return;
|
|
30524
30759
|
e[t] = a, e = e[t];
|
|
30525
30760
|
}
|
|
30526
|
-
},
|
|
30527
|
-
|
|
30528
|
-
var
|
|
30761
|
+
}, mY = A.createContext(null);
|
|
30762
|
+
mY.displayName = "HookFormControlContext";
|
|
30763
|
+
var hY = () => A.useContext(mY), gY = (e, t, n, r = !0) => {
|
|
30529
30764
|
let i = {};
|
|
30530
30765
|
for (let a in e) Object.defineProperty(i, a, { get: () => {
|
|
30531
30766
|
let i = a;
|
|
30532
|
-
return t._proxyFormState[i] !==
|
|
30767
|
+
return t._proxyFormState[i] !== rY.all && (t._proxyFormState[i] = !r || rY.all), n && (n[i] = !0), e[i];
|
|
30533
30768
|
} });
|
|
30534
30769
|
return i;
|
|
30535
|
-
},
|
|
30536
|
-
function
|
|
30537
|
-
let t =
|
|
30770
|
+
}, _Y = eY ? A.useLayoutEffect : A.useEffect;
|
|
30771
|
+
function vY(e) {
|
|
30772
|
+
let t = hY(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = A.useState(() => ({
|
|
30538
30773
|
...n._formState,
|
|
30539
30774
|
defaultValues: n._defaultValues
|
|
30540
30775
|
})), c = A.useRef({
|
|
@@ -30547,7 +30782,7 @@ function sY(e) {
|
|
|
30547
30782
|
isValid: !1,
|
|
30548
30783
|
errors: !1
|
|
30549
30784
|
});
|
|
30550
|
-
return
|
|
30785
|
+
return _Y(() => n._subscribe({
|
|
30551
30786
|
name: i,
|
|
30552
30787
|
formState: c.current,
|
|
30553
30788
|
exact: a,
|
|
@@ -30564,16 +30799,16 @@ function sY(e) {
|
|
|
30564
30799
|
a
|
|
30565
30800
|
]), A.useEffect(() => {
|
|
30566
30801
|
c.current.isValid && n._setValid(!0);
|
|
30567
|
-
}, [n]), A.useMemo(() =>
|
|
30802
|
+
}, [n]), A.useMemo(() => gY(o, n, c.current, !1), [o, n]);
|
|
30568
30803
|
}
|
|
30569
|
-
var
|
|
30570
|
-
function
|
|
30804
|
+
var yY = (e) => typeof e == "string", bY = (e, t, n, r, i) => yY(e) ? (r && t.watch.add(e), uY(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), uY(n, e))) : (r && (t.watchAll = !0), n), xY = (e) => JJ(e) || !YJ(e), SY = (e, t) => t.length === 0 && !Array.isArray(e) && !$J(e);
|
|
30805
|
+
function CY(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
30571
30806
|
if (e === t) return !0;
|
|
30572
|
-
if (
|
|
30573
|
-
if (
|
|
30807
|
+
if (xY(e) || xY(t)) return Object.is(e, t);
|
|
30808
|
+
if (qJ(e) && qJ(t)) return Object.is(e.getTime(), t.getTime());
|
|
30574
30809
|
let r = Object.keys(e), i = Object.keys(t);
|
|
30575
30810
|
if (r.length !== i.length) return !1;
|
|
30576
|
-
if (
|
|
30811
|
+
if (SY(e, r) || SY(t, i)) return Object.is(e, t);
|
|
30577
30812
|
if (n.has(e) || n.has(t)) return !0;
|
|
30578
30813
|
n.add(e), n.add(t);
|
|
30579
30814
|
for (let i of r) {
|
|
@@ -30581,19 +30816,19 @@ function fY(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
30581
30816
|
if (!(i in t)) return !1;
|
|
30582
30817
|
if (i !== "ref") {
|
|
30583
30818
|
let e = t[i];
|
|
30584
|
-
if (
|
|
30819
|
+
if (qJ(r) && qJ(e) || (XJ(r) || Array.isArray(r)) && (XJ(e) || Array.isArray(e)) ? !CY(r, e, n) : !Object.is(r, e)) return !1;
|
|
30585
30820
|
}
|
|
30586
30821
|
}
|
|
30587
30822
|
return !0;
|
|
30588
30823
|
}
|
|
30589
|
-
function
|
|
30590
|
-
let t =
|
|
30824
|
+
function wY(e) {
|
|
30825
|
+
let t = hY(), { control: n = t, name: r, defaultValue: i, disabled: a, exact: o, compute: s } = e || {}, c = A.useRef(i), l = A.useRef(s), u = A.useRef(void 0), d = A.useRef(n), f = A.useRef(r);
|
|
30591
30826
|
l.current = s;
|
|
30592
30827
|
let [p, m] = A.useState(() => {
|
|
30593
30828
|
let e = n._getWatch(r, c.current);
|
|
30594
30829
|
return l.current ? l.current(e) : e;
|
|
30595
30830
|
}), h = A.useCallback((e) => {
|
|
30596
|
-
let t =
|
|
30831
|
+
let t = bY(r, n._names, e || n._formValues, !1, c.current);
|
|
30597
30832
|
return l.current ? l.current(t) : t;
|
|
30598
30833
|
}, [
|
|
30599
30834
|
n._formValues,
|
|
@@ -30601,10 +30836,10 @@ function pY(e) {
|
|
|
30601
30836
|
r
|
|
30602
30837
|
]), g = A.useCallback((e) => {
|
|
30603
30838
|
if (!a) {
|
|
30604
|
-
let t =
|
|
30839
|
+
let t = bY(r, n._names, e || n._formValues, !1, c.current);
|
|
30605
30840
|
if (l.current) {
|
|
30606
30841
|
let e = l.current(t);
|
|
30607
|
-
|
|
30842
|
+
CY(e, u.current) || (m(e), u.current = e);
|
|
30608
30843
|
} else m(t);
|
|
30609
30844
|
}
|
|
30610
30845
|
}, [
|
|
@@ -30613,7 +30848,7 @@ function pY(e) {
|
|
|
30613
30848
|
a,
|
|
30614
30849
|
r
|
|
30615
30850
|
]);
|
|
30616
|
-
|
|
30851
|
+
_Y(() => ((d.current !== n || !CY(f.current, r)) && (d.current = n, f.current = r, g()), n._subscribe({
|
|
30617
30852
|
name: r,
|
|
30618
30853
|
formState: { values: !0 },
|
|
30619
30854
|
exact: o,
|
|
@@ -30628,7 +30863,7 @@ function pY(e) {
|
|
|
30628
30863
|
]), A.useEffect(() => n._removeUnmounted());
|
|
30629
30864
|
let _ = d.current !== n, v = f.current, y = A.useMemo(() => {
|
|
30630
30865
|
if (a) return null;
|
|
30631
|
-
let e = !_ && !
|
|
30866
|
+
let e = !_ && !CY(v, r);
|
|
30632
30867
|
return _ || e ? h() : null;
|
|
30633
30868
|
}, [
|
|
30634
30869
|
a,
|
|
@@ -30639,77 +30874,77 @@ function pY(e) {
|
|
|
30639
30874
|
]);
|
|
30640
30875
|
return y === null ? p : y;
|
|
30641
30876
|
}
|
|
30642
|
-
function
|
|
30643
|
-
let t =
|
|
30877
|
+
function TY(e) {
|
|
30878
|
+
let t = hY(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = QJ(i._names.array, n), l = wY({
|
|
30644
30879
|
control: i,
|
|
30645
30880
|
name: n,
|
|
30646
|
-
defaultValue: A.useMemo(() =>
|
|
30881
|
+
defaultValue: A.useMemo(() => uY(i._formValues, n, uY(i._defaultValues, n, o)), [
|
|
30647
30882
|
i,
|
|
30648
30883
|
n,
|
|
30649
30884
|
o
|
|
30650
30885
|
]),
|
|
30651
30886
|
exact: s
|
|
30652
|
-
}), u =
|
|
30887
|
+
}), u = vY({
|
|
30653
30888
|
control: i,
|
|
30654
30889
|
name: n,
|
|
30655
30890
|
exact: s
|
|
30656
30891
|
}), d = A.useRef(e), f = A.useRef(i.register(n, {
|
|
30657
30892
|
...e.rules,
|
|
30658
30893
|
value: l,
|
|
30659
|
-
...
|
|
30894
|
+
...dY(e.disabled) ? { disabled: e.disabled } : {}
|
|
30660
30895
|
}));
|
|
30661
30896
|
d.current = e;
|
|
30662
30897
|
let p = A.useMemo(() => Object.defineProperties({}, {
|
|
30663
30898
|
invalid: {
|
|
30664
30899
|
enumerable: !0,
|
|
30665
|
-
get: () =>
|
|
30900
|
+
get: () => !!uY(u.errors, n)
|
|
30666
30901
|
},
|
|
30667
30902
|
isDirty: {
|
|
30668
30903
|
enumerable: !0,
|
|
30669
|
-
get: () =>
|
|
30904
|
+
get: () => !!uY(u.dirtyFields, n)
|
|
30670
30905
|
},
|
|
30671
30906
|
isTouched: {
|
|
30672
30907
|
enumerable: !0,
|
|
30673
|
-
get: () =>
|
|
30908
|
+
get: () => !!uY(u.touchedFields, n)
|
|
30674
30909
|
},
|
|
30675
30910
|
isValidating: {
|
|
30676
30911
|
enumerable: !0,
|
|
30677
|
-
get: () =>
|
|
30912
|
+
get: () => !!uY(u.validatingFields, n)
|
|
30678
30913
|
},
|
|
30679
30914
|
error: {
|
|
30680
30915
|
enumerable: !0,
|
|
30681
|
-
get: () =>
|
|
30916
|
+
get: () => uY(u.errors, n)
|
|
30682
30917
|
}
|
|
30683
30918
|
}), [u, n]), m = A.useCallback((e) => {
|
|
30684
|
-
let t =
|
|
30685
|
-
|
|
30919
|
+
let t = ZJ(e);
|
|
30920
|
+
uY(i._fields, n) || (f.current = i.register(n, {
|
|
30686
30921
|
...d.current.rules,
|
|
30687
30922
|
value: t
|
|
30688
30923
|
})), f.current.onChange({
|
|
30689
30924
|
target: {
|
|
30690
|
-
value:
|
|
30925
|
+
value: ZJ(e),
|
|
30691
30926
|
name: n
|
|
30692
30927
|
},
|
|
30693
|
-
type:
|
|
30928
|
+
type: nY.CHANGE
|
|
30694
30929
|
});
|
|
30695
30930
|
}, [n, i]), h = A.useCallback(() => f.current.onBlur({
|
|
30696
30931
|
target: {
|
|
30697
|
-
value:
|
|
30932
|
+
value: uY(i._formValues, n),
|
|
30698
30933
|
name: n
|
|
30699
30934
|
},
|
|
30700
|
-
type:
|
|
30935
|
+
type: nY.BLUR
|
|
30701
30936
|
}), [n, i._formValues]), g = A.useCallback((e) => {
|
|
30702
|
-
let t =
|
|
30937
|
+
let t = uY(i._fields, n);
|
|
30703
30938
|
t && t._f && e && (t._f.ref = {
|
|
30704
|
-
focus: () =>
|
|
30705
|
-
select: () =>
|
|
30706
|
-
setCustomValidity: (t) =>
|
|
30707
|
-
reportValidity: () =>
|
|
30939
|
+
focus: () => fY(e.focus) && e.focus(),
|
|
30940
|
+
select: () => fY(e.select) && e.select(),
|
|
30941
|
+
setCustomValidity: (t) => fY(e.setCustomValidity) && e.setCustomValidity(t),
|
|
30942
|
+
reportValidity: () => fY(e.reportValidity) && e.reportValidity()
|
|
30708
30943
|
});
|
|
30709
30944
|
}, [i._fields, n]), _ = A.useMemo(() => ({
|
|
30710
30945
|
name: n,
|
|
30711
30946
|
value: l,
|
|
30712
|
-
...
|
|
30947
|
+
...dY(r) || u.disabled ? { disabled: u.disabled || r } : {},
|
|
30713
30948
|
onChange: m,
|
|
30714
30949
|
onBlur: h,
|
|
30715
30950
|
ref: g
|
|
@@ -30726,15 +30961,15 @@ function mY(e) {
|
|
|
30726
30961
|
let e = i._options.shouldUnregister || a;
|
|
30727
30962
|
i.register(n, {
|
|
30728
30963
|
...d.current.rules,
|
|
30729
|
-
...
|
|
30964
|
+
...dY(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
30730
30965
|
});
|
|
30731
30966
|
let t = (e, t) => {
|
|
30732
|
-
let n =
|
|
30967
|
+
let n = uY(i._fields, e);
|
|
30733
30968
|
n && n._f && (n._f.mount = t);
|
|
30734
30969
|
};
|
|
30735
30970
|
if (t(n, !0), e) {
|
|
30736
|
-
let e =
|
|
30737
|
-
|
|
30971
|
+
let e = tY(uY(a ? i._defaultValues : i._options.values || i._defaultValues, n, uY(i._options.defaultValues, n, d.current.defaultValue)));
|
|
30972
|
+
pY(i._defaultValues, n, e), cY(uY(i._formValues, n)) && pY(i._formValues, n, e);
|
|
30738
30973
|
}
|
|
30739
30974
|
return !c && i.register(n), () => {
|
|
30740
30975
|
(c ? e && !i._state.action : e) ? i.unregister(n) : t(n, !1);
|
|
@@ -30763,23 +30998,23 @@ function mY(e) {
|
|
|
30763
30998
|
p
|
|
30764
30999
|
]);
|
|
30765
31000
|
}
|
|
30766
|
-
var
|
|
30767
|
-
|
|
30768
|
-
var
|
|
31001
|
+
var EY = A.createContext(null);
|
|
31002
|
+
EY.displayName = "HookFormContext";
|
|
31003
|
+
var DY = (e, t, n, r, i) => t ? {
|
|
30769
31004
|
...n[e],
|
|
30770
31005
|
types: {
|
|
30771
31006
|
...n[e] && n[e].types ? n[e].types : {},
|
|
30772
31007
|
[r]: i || !0
|
|
30773
31008
|
}
|
|
30774
|
-
} : {},
|
|
30775
|
-
if (!
|
|
31009
|
+
} : {}, OY = (e) => Array.isArray(e) ? e.filter(Boolean) : [], kY = (e) => Array.isArray(e) ? e : [e], AY = (e) => XJ(e) && !Object.keys(e).length, jY = (e) => e.type === "file", MY = (e) => {
|
|
31010
|
+
if (!eY) return !1;
|
|
30776
31011
|
let t = e ? e.ownerDocument : 0;
|
|
30777
31012
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
30778
|
-
},
|
|
30779
|
-
function
|
|
31013
|
+
}, NY = (e) => e.type === "radio";
|
|
31014
|
+
function PY(e, t) {
|
|
30780
31015
|
let n = t.slice(0, -1).length, r = 0;
|
|
30781
31016
|
for (; r < n;) {
|
|
30782
|
-
if (
|
|
31017
|
+
if (JJ(e)) {
|
|
30783
31018
|
e = void 0;
|
|
30784
31019
|
break;
|
|
30785
31020
|
}
|
|
@@ -30787,22 +31022,22 @@ function CY(e, t) {
|
|
|
30787
31022
|
}
|
|
30788
31023
|
return e;
|
|
30789
31024
|
}
|
|
30790
|
-
function
|
|
30791
|
-
for (let t in e) if (e.hasOwnProperty(t) && !
|
|
31025
|
+
function FY(e) {
|
|
31026
|
+
for (let t in e) if (e.hasOwnProperty(t) && !cY(e[t])) return !1;
|
|
30792
31027
|
return !0;
|
|
30793
31028
|
}
|
|
30794
|
-
function
|
|
30795
|
-
if (
|
|
30796
|
-
let n = Array.isArray(t) ? t :
|
|
30797
|
-
return r && delete r[a], i !== 0 && (
|
|
31029
|
+
function IY(e, t) {
|
|
31030
|
+
if (yY(t) && Object.prototype.hasOwnProperty.call(e, t)) return delete e[t], e;
|
|
31031
|
+
let n = Array.isArray(t) ? t : sY(t) ? [t] : lY(t), r = n.length === 1 ? e : PY(e, n), i = n.length - 1, a = n[i];
|
|
31032
|
+
return r && delete r[a], i !== 0 && (XJ(r) && AY(r) || Array.isArray(r) && FY(r)) && IY(e, n.slice(0, -1)), e;
|
|
30798
31033
|
}
|
|
30799
|
-
var
|
|
31034
|
+
var LY = {
|
|
30800
31035
|
value: !1,
|
|
30801
31036
|
isValid: !1
|
|
30802
|
-
},
|
|
31037
|
+
}, RY = {
|
|
30803
31038
|
value: !0,
|
|
30804
31039
|
isValid: !0
|
|
30805
|
-
},
|
|
31040
|
+
}, zY = (e) => {
|
|
30806
31041
|
if (Array.isArray(e)) {
|
|
30807
31042
|
if (e.length > 1) {
|
|
30808
31043
|
let t = e.filter((e) => e && e.checked && !e.disabled).map((e) => e.value);
|
|
@@ -30811,55 +31046,55 @@ var EY = {
|
|
|
30811
31046
|
isValid: !!t.length
|
|
30812
31047
|
};
|
|
30813
31048
|
}
|
|
30814
|
-
return e[0].checked && !e[0].disabled ? e[0].attributes && !
|
|
31049
|
+
return e[0].checked && !e[0].disabled ? e[0].attributes && !cY(e[0].attributes.value) ? cY(e[0].value) || e[0].value === "" ? RY : {
|
|
30815
31050
|
value: e[0].value,
|
|
30816
31051
|
isValid: !0
|
|
30817
|
-
} :
|
|
31052
|
+
} : RY : LY;
|
|
30818
31053
|
}
|
|
30819
|
-
return
|
|
30820
|
-
},
|
|
31054
|
+
return LY;
|
|
31055
|
+
}, BY = {
|
|
30821
31056
|
isValid: !1,
|
|
30822
31057
|
value: null
|
|
30823
|
-
},
|
|
31058
|
+
}, VY = (e) => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
|
|
30824
31059
|
isValid: !0,
|
|
30825
31060
|
value: t.value
|
|
30826
|
-
} : e,
|
|
30827
|
-
isOnSubmit: !e || e ===
|
|
30828
|
-
isOnBlur: e ===
|
|
30829
|
-
isOnChange: e ===
|
|
30830
|
-
isOnAll: e ===
|
|
30831
|
-
isOnTouch: e ===
|
|
30832
|
-
}),
|
|
31061
|
+
} : e, BY) : BY, HY = (e) => e instanceof RegExp, UY = (e) => ({
|
|
31062
|
+
isOnSubmit: !e || e === rY.onSubmit,
|
|
31063
|
+
isOnBlur: e === rY.onBlur,
|
|
31064
|
+
isOnChange: e === rY.onChange,
|
|
31065
|
+
isOnAll: e === rY.all,
|
|
31066
|
+
isOnTouch: e === rY.onTouched
|
|
31067
|
+
}), WY = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t) => e.startsWith(`${t}.`))), GY = (e, t, n, r) => {
|
|
30833
31068
|
for (let i of n || Object.keys(e)) {
|
|
30834
|
-
let n =
|
|
31069
|
+
let n = uY(e, i);
|
|
30835
31070
|
if (n) {
|
|
30836
31071
|
let { _f: e, ...a } = n;
|
|
30837
31072
|
if (e) {
|
|
30838
31073
|
if (e.refs && e.refs[0] && t(e.refs[0], i) && !r || e.ref && t(e.ref, e.name) && !r) return !0;
|
|
30839
|
-
if (
|
|
30840
|
-
} else if (
|
|
31074
|
+
if (GY(a, t)) break;
|
|
31075
|
+
} else if (XJ(a) && GY(a, t)) break;
|
|
30841
31076
|
}
|
|
30842
31077
|
}
|
|
30843
|
-
},
|
|
30844
|
-
let r =
|
|
30845
|
-
return
|
|
31078
|
+
}, KY = (e, t, n) => {
|
|
31079
|
+
let r = uY(e, n), i = Array.isArray(r) ? r : [];
|
|
31080
|
+
return pY(i, aY, t[n]), pY(e, n, i), e;
|
|
30846
31081
|
};
|
|
30847
|
-
function
|
|
30848
|
-
if (
|
|
31082
|
+
function qY(e, t, n = "validate") {
|
|
31083
|
+
if (yY(e) || Array.isArray(e) && e.every(yY) || dY(e) && !e) return {
|
|
30849
31084
|
type: n,
|
|
30850
|
-
message:
|
|
31085
|
+
message: yY(e) ? e : "",
|
|
30851
31086
|
ref: t
|
|
30852
31087
|
};
|
|
30853
31088
|
}
|
|
30854
|
-
var
|
|
31089
|
+
var JY = (e) => XJ(e) && !HY(e) ? e : {
|
|
30855
31090
|
value: e,
|
|
30856
31091
|
message: ""
|
|
30857
|
-
},
|
|
30858
|
-
let { ref: o, refs: s, required: c, maxLength: l, minLength: u, min: d, max: f, pattern: p, validate: m, name: h, valueAsNumber: g, mount: _ } = e._f, v =
|
|
31092
|
+
}, YY = async (e, t, n, r, i, a) => {
|
|
31093
|
+
let { ref: o, refs: s, required: c, maxLength: l, minLength: u, min: d, max: f, pattern: p, validate: m, name: h, valueAsNumber: g, mount: _ } = e._f, v = uY(n, h);
|
|
30859
31094
|
if (!_ || t.has(h)) return {};
|
|
30860
31095
|
let y = s ? s[0] : o, b = (e) => {
|
|
30861
|
-
i && y.reportValidity && (y.setCustomValidity(
|
|
30862
|
-
}, x = {}, S =
|
|
31096
|
+
i && y.reportValidity && (y.setCustomValidity(dY(e) ? "" : e || ""), y.reportValidity());
|
|
31097
|
+
}, x = {}, S = NY(o), C = KJ(o), w = S || C, T = (g || jY(o)) && cY(o.value) && cY(v) || MY(o) && o.value === "" || v === "" || Array.isArray(v) && !v.length, E = DY.bind(null, h, r, x), D = (e, t, n, r = iY.maxLength, i = iY.minLength) => {
|
|
30863
31098
|
let a = e ? t : n;
|
|
30864
31099
|
x[h] = {
|
|
30865
31100
|
type: e ? r : i,
|
|
@@ -30868,60 +31103,60 @@ var LY = (e) => zJ(e) && !jY(e) ? e : {
|
|
|
30868
31103
|
...E(e ? r : i, a)
|
|
30869
31104
|
};
|
|
30870
31105
|
};
|
|
30871
|
-
if (a ? !Array.isArray(v) || !v.length : c && (!w && (T ||
|
|
30872
|
-
let { value: e, message: t } =
|
|
31106
|
+
if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || JJ(v)) || dY(v) && !v || C && !zY(s).isValid || S && !VY(s).isValid)) {
|
|
31107
|
+
let { value: e, message: t } = yY(c) ? {
|
|
30873
31108
|
value: !!c,
|
|
30874
31109
|
message: c
|
|
30875
|
-
} :
|
|
31110
|
+
} : JY(c);
|
|
30876
31111
|
if (e && (x[h] = {
|
|
30877
|
-
type:
|
|
31112
|
+
type: iY.required,
|
|
30878
31113
|
message: t,
|
|
30879
31114
|
ref: y,
|
|
30880
|
-
...E(
|
|
31115
|
+
...E(iY.required, t)
|
|
30881
31116
|
}, !r)) return b(t), x;
|
|
30882
31117
|
}
|
|
30883
|
-
if (!T && (!
|
|
30884
|
-
let e, t, n =
|
|
30885
|
-
if (!
|
|
31118
|
+
if (!T && (!JJ(d) || !JJ(f))) {
|
|
31119
|
+
let e, t, n = JY(f), i = JY(d);
|
|
31120
|
+
if (!JJ(v) && !isNaN(v)) {
|
|
30886
31121
|
let r = o.valueAsNumber || v && +v;
|
|
30887
|
-
|
|
31122
|
+
JJ(n.value) || (e = r > n.value), JJ(i.value) || (t = r < i.value);
|
|
30888
31123
|
} else {
|
|
30889
31124
|
let r = o.valueAsDate || new Date(v), a = (e) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + e), s = o.type == "time", c = o.type == "week";
|
|
30890
|
-
|
|
31125
|
+
yY(n.value) && v && (e = s ? a(v) > a(n.value) : c ? v > n.value : r > new Date(n.value)), yY(i.value) && v && (t = s ? a(v) < a(i.value) : c ? v < i.value : r < new Date(i.value));
|
|
30891
31126
|
}
|
|
30892
|
-
if ((e || t) && (D(!!e, n.message, i.message,
|
|
31127
|
+
if ((e || t) && (D(!!e, n.message, i.message, iY.max, iY.min), !r)) return b(x[h].message), x;
|
|
30893
31128
|
}
|
|
30894
|
-
if ((l || u) && !T && (
|
|
30895
|
-
let e =
|
|
31129
|
+
if ((l || u) && !T && (yY(v) || a && Array.isArray(v))) {
|
|
31130
|
+
let e = JY(l), t = JY(u), n = !JJ(e.value) && v.length > +e.value, i = !JJ(t.value) && v.length < +t.value;
|
|
30896
31131
|
if ((n || i) && (D(n, e.message, t.message), !r)) return b(x[h].message), x;
|
|
30897
31132
|
}
|
|
30898
|
-
if (p && !T &&
|
|
30899
|
-
let { value: e, message: t } =
|
|
30900
|
-
if (
|
|
30901
|
-
type:
|
|
31133
|
+
if (p && !T && yY(v)) {
|
|
31134
|
+
let { value: e, message: t } = JY(p);
|
|
31135
|
+
if (HY(e) && !v.match(e) && (x[h] = {
|
|
31136
|
+
type: iY.pattern,
|
|
30902
31137
|
message: t,
|
|
30903
31138
|
ref: o,
|
|
30904
|
-
...E(
|
|
31139
|
+
...E(iY.pattern, t)
|
|
30905
31140
|
}, !r)) return b(t), x;
|
|
30906
31141
|
}
|
|
30907
31142
|
if (m) {
|
|
30908
|
-
if (
|
|
30909
|
-
let e =
|
|
31143
|
+
if (fY(m)) {
|
|
31144
|
+
let e = qY(await m(v, n), y);
|
|
30910
31145
|
if (e && (x[h] = {
|
|
30911
31146
|
...e,
|
|
30912
|
-
...E(
|
|
31147
|
+
...E(iY.validate, e.message)
|
|
30913
31148
|
}, !r)) return b(e.message), x;
|
|
30914
|
-
} else if (
|
|
31149
|
+
} else if (XJ(m)) {
|
|
30915
31150
|
let e = {};
|
|
30916
31151
|
for (let t in m) {
|
|
30917
|
-
if (!
|
|
30918
|
-
let i =
|
|
31152
|
+
if (!AY(e) && !r) break;
|
|
31153
|
+
let i = qY(await m[t](v, n), y, t);
|
|
30919
31154
|
i && (e = {
|
|
30920
31155
|
...i,
|
|
30921
31156
|
...E(t, i.message)
|
|
30922
31157
|
}, b(i.message), r && (x[h] = e));
|
|
30923
31158
|
}
|
|
30924
|
-
if (!
|
|
31159
|
+
if (!AY(e) && (x[h] = {
|
|
30925
31160
|
ref: y,
|
|
30926
31161
|
...e
|
|
30927
31162
|
}, !r)) return x;
|
|
@@ -30929,76 +31164,76 @@ var LY = (e) => zJ(e) && !jY(e) ? e : {
|
|
|
30929
31164
|
}
|
|
30930
31165
|
return b(!0), x;
|
|
30931
31166
|
};
|
|
30932
|
-
|
|
30933
|
-
var
|
|
31167
|
+
rY.onSubmit, rY.onChange;
|
|
31168
|
+
var XY = () => {
|
|
30934
31169
|
if (typeof crypto < "u" && crypto.randomUUID) return crypto.randomUUID();
|
|
30935
31170
|
let e = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
|
|
30936
31171
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
30937
31172
|
let n = (Math.random() * 16 + e) % 16 | 0;
|
|
30938
31173
|
return (t == "x" ? n : n & 3 | 8).toString(16);
|
|
30939
31174
|
});
|
|
30940
|
-
},
|
|
30941
|
-
function
|
|
31175
|
+
}, ZY = (e, t, n = {}) => n.shouldFocus || cY(n.shouldFocus) ? n.focusName || `${e}.${cY(n.focusIndex) ? t : n.focusIndex}.` : "", QY = (e, t) => [...e, ...kY(t)], $Y = (e) => Array.isArray(e) ? e.map(() => void 0) : void 0;
|
|
31176
|
+
function eX(e, t, n) {
|
|
30942
31177
|
return [
|
|
30943
31178
|
...e.slice(0, t),
|
|
30944
|
-
...
|
|
31179
|
+
...kY(n),
|
|
30945
31180
|
...e.slice(t)
|
|
30946
31181
|
];
|
|
30947
31182
|
}
|
|
30948
|
-
var
|
|
30949
|
-
function
|
|
31183
|
+
var tX = (e, t, n) => Array.isArray(e) ? (cY(e[n]) && (e[n] = void 0), e.splice(n, 0, e.splice(t, 1)[0]), e) : [], nX = (e, t) => [...kY(t), ...kY(e)];
|
|
31184
|
+
function rX(e, t) {
|
|
30950
31185
|
let n = 0, r = [...e];
|
|
30951
31186
|
for (let e of t) r.splice(e - n, 1), n++;
|
|
30952
|
-
return
|
|
31187
|
+
return OY(r).length ? r : [];
|
|
30953
31188
|
}
|
|
30954
|
-
var
|
|
31189
|
+
var iX = (e, t) => cY(t) ? [] : rX(e, kY(t).sort((e, t) => e - t)), aX = (e, t, n) => {
|
|
30955
31190
|
[e[t], e[n]] = [e[n], e[t]];
|
|
30956
|
-
},
|
|
30957
|
-
function
|
|
30958
|
-
let t =
|
|
31191
|
+
}, oX = (e, t, n) => (e[t] = n, e);
|
|
31192
|
+
function sX(e) {
|
|
31193
|
+
let t = hY(), { control: n = t, name: r, keyName: i = "id", shouldUnregister: a, rules: o } = e, [s, c] = A.useState(n._getFieldArray(r)), l = A.useRef(n._getFieldArray(r).map(XY)), u = A.useRef(!1);
|
|
30959
31194
|
n._names.array.add(r), A.useMemo(() => o && s.length >= 0 && n.register(r, o), [
|
|
30960
31195
|
n,
|
|
30961
31196
|
r,
|
|
30962
31197
|
s.length,
|
|
30963
31198
|
o
|
|
30964
|
-
]),
|
|
31199
|
+
]), _Y(() => n._subjects.array.subscribe({ next: ({ values: e, name: t }) => {
|
|
30965
31200
|
if (t === r || !t) {
|
|
30966
|
-
let n =
|
|
30967
|
-
Array.isArray(n) ? (c(n), l.current = n.map(
|
|
31201
|
+
let n = uY(e, r);
|
|
31202
|
+
Array.isArray(n) ? (c(n), l.current = n.map(XY)) : t || (c([]), l.current = []);
|
|
30968
31203
|
}
|
|
30969
31204
|
} }).unsubscribe, [n, r]);
|
|
30970
31205
|
let d = A.useCallback((e) => {
|
|
30971
31206
|
u.current = !0, n._setFieldArray(r, e);
|
|
30972
31207
|
}, [n, r]);
|
|
30973
31208
|
return A.useEffect(() => {
|
|
30974
|
-
n._state.action = !1,
|
|
30975
|
-
let e =
|
|
30976
|
-
if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !
|
|
31209
|
+
n._state.action = !1, WY(r, n._names) && n._subjects.state.next({ ...n._formState });
|
|
31210
|
+
let e = UY(n._options.mode);
|
|
31211
|
+
if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !UY(n._options.reValidateMode).isOnSubmit && !e.isOnBlur) if (n._options.resolver) n._runSchema([r]).then((e) => {
|
|
30977
31212
|
n._updateIsValidating([r]);
|
|
30978
|
-
let t =
|
|
30979
|
-
(i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ?
|
|
31213
|
+
let t = uY(e.errors, r), i = uY(n._formState.errors, r);
|
|
31214
|
+
(i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ? pY(n._formState.errors, r, t) : IY(n._formState.errors, r), n._subjects.state.next({ errors: n._formState.errors }));
|
|
30980
31215
|
});
|
|
30981
31216
|
else {
|
|
30982
|
-
let e =
|
|
30983
|
-
e && e._f && !(
|
|
31217
|
+
let e = uY(n._fields, r);
|
|
31218
|
+
e && e._f && !(UY(n._options.reValidateMode).isOnSubmit && UY(n._options.mode).isOnSubmit) && YY(e, n._names.disabled, n._formValues, n._options.criteriaMode === rY.all, n._options.shouldUseNativeValidation, !0).then((e) => !AY(e) && n._subjects.state.next({ errors: KY(n._formState.errors, e, r) }));
|
|
30984
31219
|
}
|
|
30985
31220
|
n._subjects.state.next({
|
|
30986
31221
|
name: r,
|
|
30987
|
-
values:
|
|
30988
|
-
}), n._names.focus &&
|
|
31222
|
+
values: tY(n._formValues)
|
|
31223
|
+
}), n._names.focus && GY(n._fields, (e, t) => {
|
|
30989
31224
|
if (n._names.focus && t.startsWith(n._names.focus) && e.focus) return e.focus(), 1;
|
|
30990
31225
|
}), n._names.focus = "", n._setValid(), u.current = !1;
|
|
30991
31226
|
}, [
|
|
30992
31227
|
s,
|
|
30993
31228
|
r,
|
|
30994
31229
|
n
|
|
30995
|
-
]), A.useEffect(() => (
|
|
31230
|
+
]), A.useEffect(() => (!uY(n._formValues, r) && n._setFieldArray(r), () => {
|
|
30996
31231
|
let e = !(n._options.shouldUnregister || a);
|
|
30997
31232
|
u.current && e && n._subjects.state.next({
|
|
30998
31233
|
name: r,
|
|
30999
|
-
values:
|
|
31234
|
+
values: tY(n._formValues)
|
|
31000
31235
|
}), e ? ((e, t) => {
|
|
31001
|
-
let r =
|
|
31236
|
+
let r = uY(n._fields, e);
|
|
31002
31237
|
r && r._f && (r._f.mount = t);
|
|
31003
31238
|
})(r, !1) : n.unregister(r);
|
|
31004
31239
|
}), [
|
|
@@ -31009,7 +31244,7 @@ function XY(e) {
|
|
|
31009
31244
|
]), {
|
|
31010
31245
|
swap: A.useCallback((e, t) => {
|
|
31011
31246
|
let i = n._getFieldArray(r);
|
|
31012
|
-
|
|
31247
|
+
aX(i, e, t), aX(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, aX, {
|
|
31013
31248
|
argA: e,
|
|
31014
31249
|
argB: t
|
|
31015
31250
|
}, !1);
|
|
@@ -31020,7 +31255,7 @@ function XY(e) {
|
|
|
31020
31255
|
]),
|
|
31021
31256
|
move: A.useCallback((e, t) => {
|
|
31022
31257
|
let i = n._getFieldArray(r);
|
|
31023
|
-
|
|
31258
|
+
tX(i, e, t), tX(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, tX, {
|
|
31024
31259
|
argA: e,
|
|
31025
31260
|
argB: t
|
|
31026
31261
|
}, !1);
|
|
@@ -31030,34 +31265,34 @@ function XY(e) {
|
|
|
31030
31265
|
n
|
|
31031
31266
|
]),
|
|
31032
31267
|
prepend: A.useCallback((e, t) => {
|
|
31033
|
-
let i =
|
|
31034
|
-
n._names.focus =
|
|
31268
|
+
let i = kY(tY(e)), a = nX(n._getFieldArray(r), i);
|
|
31269
|
+
n._names.focus = ZY(r, 0, t), l.current = nX(l.current, i.map(XY)), d(a), c(a), n._setFieldArray(r, a, nX, { argA: $Y(e) });
|
|
31035
31270
|
}, [
|
|
31036
31271
|
d,
|
|
31037
31272
|
r,
|
|
31038
31273
|
n
|
|
31039
31274
|
]),
|
|
31040
31275
|
append: A.useCallback((e, t) => {
|
|
31041
|
-
let i =
|
|
31042
|
-
n._names.focus =
|
|
31276
|
+
let i = kY(tY(e)), a = QY(n._getFieldArray(r), i);
|
|
31277
|
+
n._names.focus = ZY(r, a.length - 1, t), l.current = QY(l.current, i.map(XY)), d(a), c(a), n._setFieldArray(r, a, QY, { argA: $Y(e) });
|
|
31043
31278
|
}, [
|
|
31044
31279
|
d,
|
|
31045
31280
|
r,
|
|
31046
31281
|
n
|
|
31047
31282
|
]),
|
|
31048
31283
|
remove: A.useCallback((e) => {
|
|
31049
|
-
let t =
|
|
31050
|
-
l.current =
|
|
31284
|
+
let t = iX(n._getFieldArray(r), e);
|
|
31285
|
+
l.current = iX(l.current, e), d(t), c(t), !Array.isArray(uY(n._fields, r)) && pY(n._fields, r, void 0), n._setFieldArray(r, t, iX, { argA: e });
|
|
31051
31286
|
}, [
|
|
31052
31287
|
d,
|
|
31053
31288
|
r,
|
|
31054
31289
|
n
|
|
31055
31290
|
]),
|
|
31056
31291
|
insert: A.useCallback((e, t, i) => {
|
|
31057
|
-
let a =
|
|
31058
|
-
n._names.focus =
|
|
31292
|
+
let a = kY(tY(t)), o = eX(n._getFieldArray(r), e, a);
|
|
31293
|
+
n._names.focus = ZY(r, e, i), l.current = eX(l.current, e, a.map(XY)), d(o), c(o), n._setFieldArray(r, o, eX, {
|
|
31059
31294
|
argA: e,
|
|
31060
|
-
argB:
|
|
31295
|
+
argB: $Y(t)
|
|
31061
31296
|
});
|
|
31062
31297
|
}, [
|
|
31063
31298
|
d,
|
|
@@ -31065,8 +31300,8 @@ function XY(e) {
|
|
|
31065
31300
|
n
|
|
31066
31301
|
]),
|
|
31067
31302
|
update: A.useCallback((e, t) => {
|
|
31068
|
-
let i =
|
|
31069
|
-
l.current = [...a].map((t, n) => !t || n === e ?
|
|
31303
|
+
let i = tY(t), a = oX(n._getFieldArray(r), e, i);
|
|
31304
|
+
l.current = [...a].map((t, n) => !t || n === e ? XY() : l.current[n]), d(a), c([...a]), n._setFieldArray(r, a, oX, {
|
|
31070
31305
|
argA: e,
|
|
31071
31306
|
argB: i
|
|
31072
31307
|
}, !0, !1);
|
|
@@ -31076,8 +31311,8 @@ function XY(e) {
|
|
|
31076
31311
|
n
|
|
31077
31312
|
]),
|
|
31078
31313
|
replace: A.useCallback((e) => {
|
|
31079
|
-
let t =
|
|
31080
|
-
l.current = t.map(
|
|
31314
|
+
let t = kY(tY(e));
|
|
31315
|
+
l.current = t.map(XY), d([...t]), c([...t]), n._setFieldArray(r, [...t], (e) => e, {}, !0, !1);
|
|
31081
31316
|
}, [
|
|
31082
31317
|
d,
|
|
31083
31318
|
r,
|
|
@@ -31085,21 +31320,21 @@ function XY(e) {
|
|
|
31085
31320
|
]),
|
|
31086
31321
|
fields: A.useMemo(() => s.map((e, t) => ({
|
|
31087
31322
|
...e,
|
|
31088
|
-
[i]: l.current[t] ||
|
|
31323
|
+
[i]: l.current[t] || XY()
|
|
31089
31324
|
})), [s, i])
|
|
31090
31325
|
};
|
|
31091
31326
|
}
|
|
31092
31327
|
//#endregion
|
|
31093
31328
|
//#region src/composed/JsonSchemaForm/models/JsonSchemaFormContext.ts
|
|
31094
|
-
var
|
|
31095
|
-
function
|
|
31096
|
-
let e = I(
|
|
31329
|
+
var cX = M(null);
|
|
31330
|
+
function lX() {
|
|
31331
|
+
let e = I(cX);
|
|
31097
31332
|
if (e === null) throw Error("useJsonSchemaFormContext must be used within a <JsonSchemaForm>");
|
|
31098
31333
|
return e;
|
|
31099
31334
|
}
|
|
31100
31335
|
//#endregion
|
|
31101
31336
|
//#region src/composed/JsonSchemaForm/conditional/evalCondition.ts
|
|
31102
|
-
function
|
|
31337
|
+
function uX(e, t) {
|
|
31103
31338
|
if (e.$eq.size === 0) return !0;
|
|
31104
31339
|
for (let [n, r] of e.$eq) {
|
|
31105
31340
|
let e = t.get(n);
|
|
@@ -31109,11 +31344,11 @@ function $Y(e, t) {
|
|
|
31109
31344
|
}
|
|
31110
31345
|
//#endregion
|
|
31111
31346
|
//#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
|
|
31112
|
-
function
|
|
31113
|
-
let { control: r } =
|
|
31347
|
+
function dX({ condition: e, unregisterOnHide: t, children: n }) {
|
|
31348
|
+
let { control: r } = lX(), i = B(() => Array.from(e.$eq.keys()), [e]), a = wY({
|
|
31114
31349
|
control: r,
|
|
31115
31350
|
name: i
|
|
31116
|
-
}), o =
|
|
31351
|
+
}), o = uX(e, B(() => {
|
|
31117
31352
|
let e = /* @__PURE__ */ new Map();
|
|
31118
31353
|
if (i.length === 0) return e;
|
|
31119
31354
|
let t = Array.isArray(a) ? a : [a];
|
|
@@ -31129,15 +31364,15 @@ function eX({ condition: e, unregisterOnHide: t, children: n }) {
|
|
|
31129
31364
|
}
|
|
31130
31365
|
//#endregion
|
|
31131
31366
|
//#region src/composed/JsonSchemaForm/conditional/DisabledGate.tsx
|
|
31132
|
-
function
|
|
31133
|
-
let n =
|
|
31367
|
+
function fX({ condition: e, children: t }) {
|
|
31368
|
+
let n = lX(), r = B(() => Array.from(e.$eq.keys()), [e]), i = wY({
|
|
31134
31369
|
control: n.control,
|
|
31135
31370
|
name: r
|
|
31136
31371
|
});
|
|
31137
|
-
return
|
|
31372
|
+
return uX(e, B(() => {
|
|
31138
31373
|
let e = /* @__PURE__ */ new Map(), t = Array.isArray(i) ? i : [i];
|
|
31139
31374
|
return r.forEach((n, r) => e.set(n, t[r])), e;
|
|
31140
|
-
}, [r, i])) ? /* @__PURE__ */ H(
|
|
31375
|
+
}, [r, i])) ? /* @__PURE__ */ H(cX.Provider, {
|
|
31141
31376
|
value: {
|
|
31142
31377
|
...n,
|
|
31143
31378
|
disabled: !0
|
|
@@ -31147,7 +31382,7 @@ function tX({ condition: e, children: t }) {
|
|
|
31147
31382
|
}
|
|
31148
31383
|
//#endregion
|
|
31149
31384
|
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
31150
|
-
function
|
|
31385
|
+
function pX(e, t) {
|
|
31151
31386
|
return e.split(".").map((e, n) => {
|
|
31152
31387
|
let r = t[n];
|
|
31153
31388
|
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
@@ -31155,13 +31390,13 @@ function nX(e, t) {
|
|
|
31155
31390
|
}
|
|
31156
31391
|
//#endregion
|
|
31157
31392
|
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
31158
|
-
function
|
|
31393
|
+
function mX(e, t) {
|
|
31159
31394
|
let n = t === "" ? [] : t.split(".");
|
|
31160
|
-
return { $eq: new Map([...e.$eq].map(([e, t]) => [
|
|
31395
|
+
return { $eq: new Map([...e.$eq].map(([e, t]) => [pX(e, n), t])) };
|
|
31161
31396
|
}
|
|
31162
31397
|
//#endregion
|
|
31163
31398
|
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
31164
|
-
function
|
|
31399
|
+
function hX(e, t) {
|
|
31165
31400
|
if (!e) return e;
|
|
31166
31401
|
let n = {};
|
|
31167
31402
|
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
@@ -31169,17 +31404,17 @@ function iX(e, t) {
|
|
|
31169
31404
|
}
|
|
31170
31405
|
//#endregion
|
|
31171
31406
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
31172
|
-
function
|
|
31173
|
-
return
|
|
31407
|
+
function gX(e) {
|
|
31408
|
+
return _X(e);
|
|
31174
31409
|
}
|
|
31175
|
-
function
|
|
31176
|
-
return
|
|
31410
|
+
function _X(e) {
|
|
31411
|
+
return yX(vX({ ...e }));
|
|
31177
31412
|
}
|
|
31178
|
-
function
|
|
31413
|
+
function vX(e) {
|
|
31179
31414
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
31180
31415
|
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
31181
31416
|
for (let a of e.allOf) {
|
|
31182
|
-
let e =
|
|
31417
|
+
let e = _X(a);
|
|
31183
31418
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
31184
31419
|
...r,
|
|
31185
31420
|
...e.gioConfig
|
|
@@ -31188,33 +31423,33 @@ function sX(e) {
|
|
|
31188
31423
|
let a = { ...e };
|
|
31189
31424
|
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;
|
|
31190
31425
|
}
|
|
31191
|
-
function
|
|
31192
|
-
return e.properties &&=
|
|
31426
|
+
function yX(e) {
|
|
31427
|
+
return e.properties &&= bX(e.properties, _X), e.items &&= Array.isArray(e.items) ? e.items.map(_X) : _X(e.items), e.oneOf &&= e.oneOf.map(_X), e.anyOf &&= e.anyOf.map(_X), e.dependencies &&= hX(e.dependencies, _X), e;
|
|
31193
31428
|
}
|
|
31194
|
-
function
|
|
31429
|
+
function bX(e, t) {
|
|
31195
31430
|
let n = {};
|
|
31196
31431
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
31197
31432
|
return n;
|
|
31198
31433
|
}
|
|
31199
31434
|
//#endregion
|
|
31200
31435
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
31201
|
-
function
|
|
31436
|
+
function xX(e) {
|
|
31202
31437
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
31203
31438
|
}
|
|
31204
|
-
function
|
|
31439
|
+
function SX(e) {
|
|
31205
31440
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
31206
31441
|
}
|
|
31207
31442
|
//#endregion
|
|
31208
31443
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
31209
|
-
function
|
|
31210
|
-
return
|
|
31444
|
+
function CX(e) {
|
|
31445
|
+
return wX(e, e, []);
|
|
31211
31446
|
}
|
|
31212
|
-
function
|
|
31447
|
+
function wX(e, t, n) {
|
|
31213
31448
|
if (typeof e.$ref == "string") {
|
|
31214
31449
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
31215
|
-
let r =
|
|
31450
|
+
let r = TX(t, e.$ref);
|
|
31216
31451
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
31217
|
-
let i =
|
|
31452
|
+
let i = wX(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
31218
31453
|
...i,
|
|
31219
31454
|
...s
|
|
31220
31455
|
};
|
|
@@ -31226,25 +31461,25 @@ function pX(e, t, n) {
|
|
|
31226
31461
|
let r = { ...e };
|
|
31227
31462
|
if (r.properties) {
|
|
31228
31463
|
let e = {};
|
|
31229
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
31464
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = wX(a, t, n);
|
|
31230
31465
|
r.properties = e;
|
|
31231
31466
|
}
|
|
31232
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
31467
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => wX(e, t, n)) : wX(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => wX(e, t, n)), r.anyOf &&= r.anyOf.map((e) => wX(e, t, n)), r.allOf &&= r.allOf.map((e) => wX(e, t, n)), r.dependencies &&= hX(r.dependencies, (e) => wX(e, t, n)), r.definitions) {
|
|
31233
31468
|
let e = {};
|
|
31234
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
31469
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = wX(a, t, n);
|
|
31235
31470
|
r.definitions = e;
|
|
31236
31471
|
}
|
|
31237
31472
|
if (r.$defs) {
|
|
31238
31473
|
let e = {};
|
|
31239
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
31474
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = wX(a, t, n);
|
|
31240
31475
|
r.$defs = e;
|
|
31241
31476
|
}
|
|
31242
31477
|
return r;
|
|
31243
31478
|
}
|
|
31244
|
-
function
|
|
31479
|
+
function TX(e, t) {
|
|
31245
31480
|
if (t === "#") return e;
|
|
31246
31481
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
31247
|
-
let n = t.slice(2).split("/").map(
|
|
31482
|
+
let n = t.slice(2).split("/").map(SX), r = e;
|
|
31248
31483
|
for (let e of n) {
|
|
31249
31484
|
if (typeof r != "object" || !r) return;
|
|
31250
31485
|
r = r[e];
|
|
@@ -31253,28 +31488,28 @@ function mX(e, t) {
|
|
|
31253
31488
|
}
|
|
31254
31489
|
//#endregion
|
|
31255
31490
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
31256
|
-
function
|
|
31491
|
+
function EX(e) {
|
|
31257
31492
|
let t;
|
|
31258
31493
|
try {
|
|
31259
|
-
t =
|
|
31494
|
+
t = gX(CX(e));
|
|
31260
31495
|
} catch {
|
|
31261
31496
|
return;
|
|
31262
31497
|
}
|
|
31263
|
-
return
|
|
31498
|
+
return DX(t);
|
|
31264
31499
|
}
|
|
31265
|
-
function
|
|
31500
|
+
function DX(e) {
|
|
31266
31501
|
if (e.deprecated === !0) return;
|
|
31267
31502
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
31268
31503
|
let t = {};
|
|
31269
31504
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
31270
|
-
let e =
|
|
31505
|
+
let e = DX(r);
|
|
31271
31506
|
e !== void 0 && (t[n] = e);
|
|
31272
31507
|
}
|
|
31273
31508
|
let n = (e.oneOf ?? e.anyOf)?.find((e) => e.deprecated !== !0);
|
|
31274
31509
|
if (n?.properties) {
|
|
31275
31510
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
31276
31511
|
else if (!(e in t)) {
|
|
31277
|
-
let n =
|
|
31512
|
+
let n = DX(r);
|
|
31278
31513
|
n !== void 0 && (t[e] = n);
|
|
31279
31514
|
}
|
|
31280
31515
|
}
|
|
@@ -31282,23 +31517,23 @@ function gX(e) {
|
|
|
31282
31517
|
}
|
|
31283
31518
|
//#endregion
|
|
31284
31519
|
//#region src/composed/JsonSchemaForm/utils/fieldErrors.ts
|
|
31285
|
-
function
|
|
31520
|
+
function OX(e) {
|
|
31286
31521
|
return e ? e.types ? Object.values(e.types).flat().filter((e) => typeof e == "string").map((e) => ({ message: e })) : [{ message: e.message }] : [];
|
|
31287
31522
|
}
|
|
31288
31523
|
//#endregion
|
|
31289
31524
|
//#region src/composed/JsonSchemaForm/utils/labelOf.ts
|
|
31290
|
-
function
|
|
31525
|
+
function kX(e) {
|
|
31291
31526
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Field";
|
|
31292
31527
|
}
|
|
31293
|
-
function
|
|
31294
|
-
return
|
|
31528
|
+
function AX(e) {
|
|
31529
|
+
return kX(e.split(".").pop());
|
|
31295
31530
|
}
|
|
31296
|
-
function
|
|
31297
|
-
return typeof e.title == "string" && e.title.length > 0 ? e.title :
|
|
31531
|
+
function jX(e, t) {
|
|
31532
|
+
return typeof e.title == "string" && e.title.length > 0 ? e.title : kX(t);
|
|
31298
31533
|
}
|
|
31299
31534
|
//#endregion
|
|
31300
31535
|
//#region src/composed/JsonSchemaForm/fields/banner/SchemaBanner.tsx
|
|
31301
|
-
function
|
|
31536
|
+
function MX({ banner: e }) {
|
|
31302
31537
|
let t = "title" in e ? e.title : void 0;
|
|
31303
31538
|
return /* @__PURE__ */ U(Yy, {
|
|
31304
31539
|
role: "note",
|
|
@@ -31318,7 +31553,7 @@ function xX({ banner: e }) {
|
|
|
31318
31553
|
}
|
|
31319
31554
|
//#endregion
|
|
31320
31555
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
31321
|
-
function
|
|
31556
|
+
function NX(e) {
|
|
31322
31557
|
if (e.default !== void 0) return e.default;
|
|
31323
31558
|
switch (e.type) {
|
|
31324
31559
|
case "string": return "";
|
|
@@ -31333,11 +31568,11 @@ function SX(e) {
|
|
|
31333
31568
|
}
|
|
31334
31569
|
//#endregion
|
|
31335
31570
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
31336
|
-
function
|
|
31337
|
-
let n =
|
|
31571
|
+
function PX(e, t) {
|
|
31572
|
+
let n = lX(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = sX({
|
|
31338
31573
|
control: n.control,
|
|
31339
31574
|
name: r
|
|
31340
|
-
}), { fieldState: s } =
|
|
31575
|
+
}), { fieldState: s } = TY({
|
|
31341
31576
|
control: n.control,
|
|
31342
31577
|
name: r
|
|
31343
31578
|
}), c = n.disabled || e.readOnly === !0, l = typeof e.minItems == "number" ? e.minItems : 0, u = typeof e.maxItems == "number" ? e.maxItems : Infinity;
|
|
@@ -31355,10 +31590,10 @@ function CX(e, t) {
|
|
|
31355
31590
|
}
|
|
31356
31591
|
//#endregion
|
|
31357
31592
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
31358
|
-
function
|
|
31359
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } =
|
|
31593
|
+
function FX({ node: e, name: t, depth: n }) {
|
|
31594
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = PX(r, t), p = r.items, m = e.items, h = jX(r, t), g = r.gioConfig?.uiBorder === "full";
|
|
31360
31595
|
function _() {
|
|
31361
|
-
s(
|
|
31596
|
+
s(LX(p), { shouldFocus: !1 });
|
|
31362
31597
|
}
|
|
31363
31598
|
return /* @__PURE__ */ U(pR, {
|
|
31364
31599
|
"aria-required": r.isRequired || void 0,
|
|
@@ -31370,10 +31605,10 @@ function wX({ node: e, name: t, depth: n }) {
|
|
|
31370
31605
|
children: h
|
|
31371
31606
|
}),
|
|
31372
31607
|
r.description && /* @__PURE__ */ H(xR, { children: r.description }),
|
|
31373
|
-
r.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31608
|
+
r.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: r.gioConfig.banner }),
|
|
31374
31609
|
/* @__PURE__ */ H("div", {
|
|
31375
31610
|
className: "flex flex-col",
|
|
31376
|
-
children: o.map((e, t) => /* @__PURE__ */ H(
|
|
31611
|
+
children: o.map((e, t) => /* @__PURE__ */ H(IX, {
|
|
31377
31612
|
index: t,
|
|
31378
31613
|
path: a,
|
|
31379
31614
|
itemsNode: m,
|
|
@@ -31395,11 +31630,11 @@ function wX({ node: e, name: t, depth: n }) {
|
|
|
31395
31630
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
31396
31631
|
})
|
|
31397
31632
|
}),
|
|
31398
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31633
|
+
/* @__PURE__ */ H(CR, { errors: OX(l.error) })
|
|
31399
31634
|
]
|
|
31400
31635
|
});
|
|
31401
31636
|
}
|
|
31402
|
-
function
|
|
31637
|
+
function IX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: c }) {
|
|
31403
31638
|
let l = `${t}.${e}`;
|
|
31404
31639
|
return /* @__PURE__ */ U(Uw, {
|
|
31405
31640
|
defaultOpen: !0,
|
|
@@ -31428,13 +31663,13 @@ function TX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
31428
31663
|
})]
|
|
31429
31664
|
}), /* @__PURE__ */ H(Gw, { children: /* @__PURE__ */ H("div", {
|
|
31430
31665
|
className: "pt-2 pb-4 pl-6",
|
|
31431
|
-
children: n && /* @__PURE__ */ H(
|
|
31666
|
+
children: n && /* @__PURE__ */ H(cX.Provider, {
|
|
31432
31667
|
value: {
|
|
31433
31668
|
...c,
|
|
31434
31669
|
basePath: l,
|
|
31435
31670
|
disabled: i
|
|
31436
31671
|
},
|
|
31437
|
-
children: /* @__PURE__ */ H(
|
|
31672
|
+
children: /* @__PURE__ */ H(mZ, {
|
|
31438
31673
|
node: n,
|
|
31439
31674
|
name: "",
|
|
31440
31675
|
depth: r + 1
|
|
@@ -31443,17 +31678,17 @@ function TX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
31443
31678
|
}) })]
|
|
31444
31679
|
});
|
|
31445
31680
|
}
|
|
31446
|
-
function
|
|
31447
|
-
let t =
|
|
31448
|
-
return t === void 0 ?
|
|
31681
|
+
function LX(e) {
|
|
31682
|
+
let t = EX(e);
|
|
31683
|
+
return t === void 0 ? NX(e) : t;
|
|
31449
31684
|
}
|
|
31450
31685
|
//#endregion
|
|
31451
31686
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
31452
|
-
function
|
|
31453
|
-
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } =
|
|
31687
|
+
function RX({ node: e, name: t }) {
|
|
31688
|
+
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = PX(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = jX(n, t);
|
|
31454
31689
|
function h() {
|
|
31455
31690
|
let e = {};
|
|
31456
|
-
for (let t of p) e[t] =
|
|
31691
|
+
for (let t of p) e[t] = NX(f[t]);
|
|
31457
31692
|
a(e, { shouldFocus: !1 });
|
|
31458
31693
|
}
|
|
31459
31694
|
return /* @__PURE__ */ U(pR, {
|
|
@@ -31465,16 +31700,16 @@ function DX({ node: e, name: t }) {
|
|
|
31465
31700
|
children: m
|
|
31466
31701
|
}),
|
|
31467
31702
|
n.description && /* @__PURE__ */ H(xR, { children: n.description }),
|
|
31468
|
-
n.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31703
|
+
n.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: n.gioConfig.banner }),
|
|
31469
31704
|
/* @__PURE__ */ H("div", {
|
|
31470
31705
|
className: "overflow-hidden rounded-lg border",
|
|
31471
31706
|
children: /* @__PURE__ */ U(HW, { children: [/* @__PURE__ */ H(UW, { children: /* @__PURE__ */ U(KW, { children: [p.map((e) => /* @__PURE__ */ H(qW, {
|
|
31472
31707
|
scope: "col",
|
|
31473
|
-
children:
|
|
31708
|
+
children: VX(f[e], e)
|
|
31474
31709
|
}, e)), /* @__PURE__ */ H(qW, {
|
|
31475
31710
|
"aria-hidden": "true",
|
|
31476
31711
|
className: "w-px"
|
|
31477
|
-
})] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(
|
|
31712
|
+
})] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(zX, {
|
|
31478
31713
|
rowIndex: t,
|
|
31479
31714
|
rowPath: `${r}.${t}`,
|
|
31480
31715
|
columnKeys: p,
|
|
@@ -31492,12 +31727,12 @@ function DX({ node: e, name: t }) {
|
|
|
31492
31727
|
onClick: h,
|
|
31493
31728
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
31494
31729
|
}) }),
|
|
31495
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31730
|
+
/* @__PURE__ */ H(CR, { errors: OX(s.error) })
|
|
31496
31731
|
]
|
|
31497
31732
|
});
|
|
31498
31733
|
}
|
|
31499
|
-
function
|
|
31500
|
-
return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(
|
|
31734
|
+
function zX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
|
|
31735
|
+
return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(BX, {
|
|
31501
31736
|
columnKey: n,
|
|
31502
31737
|
cellPath: `${t}.${n}`,
|
|
31503
31738
|
propSchema: r[n],
|
|
@@ -31516,8 +31751,8 @@ function OX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
31516
31751
|
})
|
|
31517
31752
|
})] });
|
|
31518
31753
|
}
|
|
31519
|
-
function
|
|
31520
|
-
let { control: a } =
|
|
31754
|
+
function BX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
31755
|
+
let { control: a } = lX(), { field: o, fieldState: s } = TY({
|
|
31521
31756
|
control: a,
|
|
31522
31757
|
name: t
|
|
31523
31758
|
}), { ref: c, onBlur: l, onChange: u, value: d } = o;
|
|
@@ -31529,21 +31764,21 @@ function kX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
31529
31764
|
onBlur: l,
|
|
31530
31765
|
disabled: i,
|
|
31531
31766
|
"aria-invalid": s.invalid,
|
|
31532
|
-
"aria-label": `${
|
|
31767
|
+
"aria-label": `${VX(n, e)} for row ${r + 1}`,
|
|
31533
31768
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
31534
31769
|
}) });
|
|
31535
31770
|
}
|
|
31536
|
-
function
|
|
31771
|
+
function VX(e, t) {
|
|
31537
31772
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
31538
31773
|
}
|
|
31539
31774
|
//#endregion
|
|
31540
31775
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
31541
|
-
function
|
|
31542
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31776
|
+
function HX({ node: e, name: t }) {
|
|
31777
|
+
let { control: n, basePath: r, disabled: i } = lX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = TY({
|
|
31543
31778
|
control: n,
|
|
31544
31779
|
name: o,
|
|
31545
31780
|
defaultValue: typeof a.default == "boolean" ? a.default : !1
|
|
31546
|
-
}), l =
|
|
31781
|
+
}), l = jX(a, t), u = i || a.readOnly === !0;
|
|
31547
31782
|
return /* @__PURE__ */ U(_R, {
|
|
31548
31783
|
orientation: "horizontal",
|
|
31549
31784
|
"data-invalid": c.invalid,
|
|
@@ -31559,43 +31794,43 @@ function jX({ node: e, name: t }) {
|
|
|
31559
31794
|
htmlFor: o,
|
|
31560
31795
|
children: l
|
|
31561
31796
|
}),
|
|
31562
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31797
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: a.gioConfig.banner }),
|
|
31563
31798
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31564
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31799
|
+
/* @__PURE__ */ H(CR, { errors: OX(c.error) })
|
|
31565
31800
|
] })]
|
|
31566
31801
|
});
|
|
31567
31802
|
}
|
|
31568
31803
|
//#endregion
|
|
31569
31804
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
31570
|
-
function
|
|
31805
|
+
function UX(e) {
|
|
31571
31806
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
31572
31807
|
}
|
|
31573
|
-
function
|
|
31808
|
+
function WX(e) {
|
|
31574
31809
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
31575
31810
|
}
|
|
31576
|
-
function
|
|
31811
|
+
function GX(e) {
|
|
31577
31812
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
31578
31813
|
}
|
|
31579
|
-
function
|
|
31580
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !
|
|
31814
|
+
function KX(e) {
|
|
31815
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !UX(e);
|
|
31581
31816
|
}
|
|
31582
|
-
function
|
|
31817
|
+
function qX(e) {
|
|
31583
31818
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
31584
31819
|
}
|
|
31585
31820
|
//#endregion
|
|
31586
31821
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
31587
|
-
function
|
|
31822
|
+
function JX(e, t) {
|
|
31588
31823
|
let n = t?.[String(e)];
|
|
31589
31824
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
31590
31825
|
}
|
|
31591
|
-
function
|
|
31826
|
+
function YX(e, t) {
|
|
31592
31827
|
return e.map((e, n) => ({
|
|
31593
31828
|
raw: e,
|
|
31594
31829
|
key: String(n),
|
|
31595
|
-
label:
|
|
31830
|
+
label: JX(e, t)
|
|
31596
31831
|
}));
|
|
31597
31832
|
}
|
|
31598
|
-
function
|
|
31833
|
+
function XX(e) {
|
|
31599
31834
|
return e.map((e, t) => ({
|
|
31600
31835
|
raw: e.const,
|
|
31601
31836
|
key: String(t),
|
|
@@ -31604,12 +31839,12 @@ function zX(e) {
|
|
|
31604
31839
|
}
|
|
31605
31840
|
//#endregion
|
|
31606
31841
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
31607
|
-
function
|
|
31608
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31842
|
+
function ZX({ node: e, name: t }) {
|
|
31843
|
+
let { control: n, basePath: r, disabled: i } = lX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = TY({
|
|
31609
31844
|
control: n,
|
|
31610
31845
|
name: o,
|
|
31611
31846
|
defaultValue: a.default
|
|
31612
|
-
}), { ref: l, onBlur: u } = s, d =
|
|
31847
|
+
}), { ref: l, onBlur: u } = s, d = jX(a, t), f = i || a.readOnly === !0, p = QX(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
|
|
31613
31848
|
return /* @__PURE__ */ U(_R, {
|
|
31614
31849
|
"data-invalid": c.invalid,
|
|
31615
31850
|
children: [
|
|
@@ -31618,7 +31853,7 @@ function BX({ node: e, name: t }) {
|
|
|
31618
31853
|
required: a.isRequired,
|
|
31619
31854
|
children: d
|
|
31620
31855
|
}),
|
|
31621
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31856
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: a.gioConfig.banner }),
|
|
31622
31857
|
/* @__PURE__ */ U(tU, {
|
|
31623
31858
|
value: m,
|
|
31624
31859
|
onValueChange: (e) => s.onChange(h(e)),
|
|
@@ -31636,22 +31871,22 @@ function BX({ node: e, name: t }) {
|
|
|
31636
31871
|
}, e.key)) })]
|
|
31637
31872
|
}),
|
|
31638
31873
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31639
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31874
|
+
/* @__PURE__ */ H(CR, { errors: OX(c.error) })
|
|
31640
31875
|
]
|
|
31641
31876
|
});
|
|
31642
31877
|
}
|
|
31643
|
-
function
|
|
31644
|
-
return
|
|
31878
|
+
function QX(e) {
|
|
31879
|
+
return UX(e) ? XX(e.oneOf ?? []) : YX(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
31645
31880
|
}
|
|
31646
31881
|
//#endregion
|
|
31647
31882
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
31648
|
-
function
|
|
31649
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31883
|
+
function $X({ node: e, name: t }) {
|
|
31884
|
+
let { control: n, basePath: r, disabled: i } = lX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = TY({
|
|
31650
31885
|
control: n,
|
|
31651
31886
|
name: o,
|
|
31652
31887
|
defaultValue: Array.isArray(a.default) ? a.default : []
|
|
31653
|
-
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m =
|
|
31654
|
-
return
|
|
31888
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m = jX(a, t), h = i || a.readOnly === !0, g = a.items, _ = YX(g.enum ?? [], g.gioConfig?.enumLabelMap), v = _.map((e) => e.label), y = (e) => _.find((t) => t.label === e)?.raw, b = (e) => _.find((t) => Object.is(t.raw, e))?.label, x = (Array.isArray(s.value) ? s.value : []).map((e) => b(e)).filter((e) => e !== void 0);
|
|
31889
|
+
return eZ({
|
|
31655
31890
|
schema: a,
|
|
31656
31891
|
options: _,
|
|
31657
31892
|
value: f,
|
|
@@ -31664,7 +31899,7 @@ function HX({ node: e, name: t }) {
|
|
|
31664
31899
|
required: a.isRequired,
|
|
31665
31900
|
children: m
|
|
31666
31901
|
}),
|
|
31667
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31902
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: a.gioConfig.banner }),
|
|
31668
31903
|
/* @__PURE__ */ U(uM, {
|
|
31669
31904
|
multiple: !0,
|
|
31670
31905
|
autoHighlight: !0,
|
|
@@ -31697,27 +31932,27 @@ function HX({ node: e, name: t }) {
|
|
|
31697
31932
|
})]
|
|
31698
31933
|
}),
|
|
31699
31934
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31700
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31935
|
+
/* @__PURE__ */ H(CR, { errors: OX(c.error) })
|
|
31701
31936
|
]
|
|
31702
31937
|
});
|
|
31703
31938
|
}
|
|
31704
|
-
function
|
|
31939
|
+
function eZ({ schema: e, options: t, value: n, onReset: r }) {
|
|
31705
31940
|
R(() => {
|
|
31706
31941
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
31707
31942
|
}, [e]);
|
|
31708
31943
|
}
|
|
31709
31944
|
//#endregion
|
|
31710
31945
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
31711
|
-
function
|
|
31946
|
+
function tZ() {
|
|
31712
31947
|
return null;
|
|
31713
31948
|
}
|
|
31714
31949
|
//#endregion
|
|
31715
31950
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
31716
|
-
function
|
|
31717
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31951
|
+
function nZ({ node: e, name: t }) {
|
|
31952
|
+
let { control: n, basePath: r, disabled: i } = lX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = TY({
|
|
31718
31953
|
control: n,
|
|
31719
31954
|
name: o
|
|
31720
|
-
}), l =
|
|
31955
|
+
}), l = jX(a, t), u = i || a.readOnly === !0, d = (e) => {
|
|
31721
31956
|
let t = e.target.value;
|
|
31722
31957
|
if (t === "") {
|
|
31723
31958
|
s.onChange(null);
|
|
@@ -31734,7 +31969,7 @@ function GX({ node: e, name: t }) {
|
|
|
31734
31969
|
required: a.isRequired,
|
|
31735
31970
|
children: l
|
|
31736
31971
|
}),
|
|
31737
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31972
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: a.gioConfig.banner }),
|
|
31738
31973
|
/* @__PURE__ */ H(eM, {
|
|
31739
31974
|
id: o,
|
|
31740
31975
|
type: "number",
|
|
@@ -31749,21 +31984,21 @@ function GX({ node: e, name: t }) {
|
|
|
31749
31984
|
step: f
|
|
31750
31985
|
}),
|
|
31751
31986
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31752
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31987
|
+
/* @__PURE__ */ H(CR, { errors: OX(c.error) })
|
|
31753
31988
|
]
|
|
31754
31989
|
});
|
|
31755
31990
|
}
|
|
31756
31991
|
//#endregion
|
|
31757
31992
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
31758
|
-
function
|
|
31993
|
+
function rZ(e, t, n, r) {
|
|
31759
31994
|
if (e.length === 0) return -1;
|
|
31760
31995
|
let i = n?.get(t);
|
|
31761
|
-
return
|
|
31996
|
+
return iZ(i, e) && aZ(e[i], r) ? i : oZ(e, r);
|
|
31762
31997
|
}
|
|
31763
|
-
function
|
|
31998
|
+
function iZ(e, t) {
|
|
31764
31999
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
31765
32000
|
}
|
|
31766
|
-
function
|
|
32001
|
+
function aZ(e, t) {
|
|
31767
32002
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
31768
32003
|
if (n.const !== void 0) return t(e) === n.const;
|
|
31769
32004
|
if (typeof n.pattern == "string") {
|
|
@@ -31773,18 +32008,18 @@ function JX(e, t) {
|
|
|
31773
32008
|
return !0;
|
|
31774
32009
|
});
|
|
31775
32010
|
}
|
|
31776
|
-
function
|
|
32011
|
+
function oZ(e, t) {
|
|
31777
32012
|
let n = 0, r = {
|
|
31778
32013
|
viable: !1,
|
|
31779
32014
|
matches: -1
|
|
31780
32015
|
};
|
|
31781
32016
|
return e.forEach((e, i) => {
|
|
31782
|
-
let a =
|
|
31783
|
-
|
|
32017
|
+
let a = sZ(e, t);
|
|
32018
|
+
cZ(a, r) > 0 && (n = i, r = a);
|
|
31784
32019
|
}), n;
|
|
31785
32020
|
}
|
|
31786
|
-
function
|
|
31787
|
-
return
|
|
32021
|
+
function sZ(e, t) {
|
|
32022
|
+
return aZ(e, t) ? {
|
|
31788
32023
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
31789
32024
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
31790
32025
|
} : {
|
|
@@ -31792,13 +32027,13 @@ function XX(e, t) {
|
|
|
31792
32027
|
matches: -1
|
|
31793
32028
|
};
|
|
31794
32029
|
}
|
|
31795
|
-
function
|
|
32030
|
+
function cZ(e, t) {
|
|
31796
32031
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
31797
32032
|
}
|
|
31798
32033
|
//#endregion
|
|
31799
32034
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
31800
|
-
function
|
|
31801
|
-
let n =
|
|
32035
|
+
function lZ({ node: e, depth: t }) {
|
|
32036
|
+
let n = lX(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = V(() => rZ(c.map((e) => e.raw), a, s, (e) => r._getWatch(a ? `${a}.${e}` : e))), d = B(() => c.map((e) => (e.dependencyBranches ?? []).map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e))), [c, a]);
|
|
31802
32037
|
if (c.length === 0) return null;
|
|
31803
32038
|
let f = c[l] ?? c[0], p = f.dependencyBranches ?? [], m = n.disabled || o.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
|
|
31804
32039
|
if (e === l) return;
|
|
@@ -31829,21 +32064,21 @@ function QX({ node: e, depth: t }) {
|
|
|
31829
32064
|
}, t)) })]
|
|
31830
32065
|
}),
|
|
31831
32066
|
t === 0 && o.description && /* @__PURE__ */ H(xR, { children: o.description }),
|
|
31832
|
-
o.gioConfig?.banner && /* @__PURE__ */ H(
|
|
32067
|
+
o.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: o.gioConfig.banner })
|
|
31833
32068
|
] }),
|
|
31834
|
-
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(
|
|
32069
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(uZ, {
|
|
31835
32070
|
path: a ? `${a}.${e}` : e,
|
|
31836
32071
|
value: t
|
|
31837
32072
|
}, e)),
|
|
31838
|
-
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(
|
|
32073
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(mZ, {
|
|
31839
32074
|
node: n,
|
|
31840
32075
|
name: e,
|
|
31841
32076
|
depth: t + 1
|
|
31842
32077
|
}, `${l}-${e}`)),
|
|
31843
|
-
p.map((e, n) => /* @__PURE__ */ H(
|
|
31844
|
-
condition:
|
|
32078
|
+
p.map((e, n) => /* @__PURE__ */ H(dX, {
|
|
32079
|
+
condition: mX(e.showIf, a),
|
|
31845
32080
|
unregisterOnHide: d[l]?.[n],
|
|
31846
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(
|
|
32081
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(mZ, {
|
|
31847
32082
|
node: n,
|
|
31848
32083
|
name: e,
|
|
31849
32084
|
depth: t + 1
|
|
@@ -31851,8 +32086,8 @@ function QX({ node: e, depth: t }) {
|
|
|
31851
32086
|
}, `${l}-var-dep-${n}`))
|
|
31852
32087
|
] });
|
|
31853
32088
|
}
|
|
31854
|
-
function
|
|
31855
|
-
let { control: n } =
|
|
32089
|
+
function uZ({ path: e, value: t }) {
|
|
32090
|
+
let { control: n } = lX(), { field: r } = TY({
|
|
31856
32091
|
control: n,
|
|
31857
32092
|
name: e
|
|
31858
32093
|
}), { onChange: i } = r;
|
|
@@ -31862,28 +32097,28 @@ function $X({ path: e, value: t }) {
|
|
|
31862
32097
|
}
|
|
31863
32098
|
//#endregion
|
|
31864
32099
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
31865
|
-
function
|
|
31866
|
-
let r =
|
|
32100
|
+
function dZ({ node: e, name: t, depth: n }) {
|
|
32101
|
+
let r = lX(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = KX(i) || qX(i), s = B(() => e.dependencyBranches ?? [], [e.dependencyBranches]), c = s.length > 0, l = B(() => s.map((e) => Array.from(e.properties.keys()).map((e) => a ? `${a}.${e}` : e)), [s, a]), u = (e.properties || o || c) && /* @__PURE__ */ H(cX.Provider, {
|
|
31867
32102
|
value: {
|
|
31868
32103
|
...r,
|
|
31869
32104
|
basePath: a
|
|
31870
32105
|
},
|
|
31871
32106
|
children: /* @__PURE__ */ U(hR, { children: [
|
|
31872
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(
|
|
32107
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(mZ, {
|
|
31873
32108
|
node: t,
|
|
31874
32109
|
name: e,
|
|
31875
32110
|
depth: n + 1
|
|
31876
32111
|
}, e)),
|
|
31877
|
-
s.map((e, t) => /* @__PURE__ */ H(
|
|
31878
|
-
condition:
|
|
32112
|
+
s.map((e, t) => /* @__PURE__ */ H(dX, {
|
|
32113
|
+
condition: mX(e.showIf, a),
|
|
31879
32114
|
unregisterOnHide: l[t],
|
|
31880
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(
|
|
32115
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(mZ, {
|
|
31881
32116
|
node: t,
|
|
31882
32117
|
name: e,
|
|
31883
32118
|
depth: n + 1
|
|
31884
32119
|
}, e))
|
|
31885
32120
|
}, `dep-${t}`)),
|
|
31886
|
-
o && /* @__PURE__ */ H(
|
|
32121
|
+
o && /* @__PURE__ */ H(lZ, {
|
|
31887
32122
|
node: e,
|
|
31888
32123
|
depth: n
|
|
31889
32124
|
})
|
|
@@ -31895,17 +32130,17 @@ function eZ({ node: e, name: t, depth: n }) {
|
|
|
31895
32130
|
/* @__PURE__ */ H(mR, {
|
|
31896
32131
|
className: f ? "px-2 text-base font-semibold" : "text-base font-semibold",
|
|
31897
32132
|
required: i.isRequired,
|
|
31898
|
-
children:
|
|
32133
|
+
children: jX(i, t)
|
|
31899
32134
|
}),
|
|
31900
32135
|
i.description && /* @__PURE__ */ H(xR, { children: i.description }),
|
|
31901
|
-
i.gioConfig?.banner && /* @__PURE__ */ H(
|
|
32136
|
+
i.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: i.gioConfig.banner }),
|
|
31902
32137
|
u
|
|
31903
32138
|
]
|
|
31904
32139
|
});
|
|
31905
32140
|
}
|
|
31906
32141
|
//#endregion
|
|
31907
32142
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
31908
|
-
function
|
|
32143
|
+
function fZ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
31909
32144
|
let [s, c] = V(!1);
|
|
31910
32145
|
return /* @__PURE__ */ U(nM, {
|
|
31911
32146
|
className: e,
|
|
@@ -31931,14 +32166,14 @@ function tZ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
31931
32166
|
})]
|
|
31932
32167
|
});
|
|
31933
32168
|
}
|
|
31934
|
-
|
|
32169
|
+
fZ.displayName = "PasswordInput";
|
|
31935
32170
|
//#endregion
|
|
31936
32171
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
31937
|
-
function
|
|
31938
|
-
let { control: n, basePath: r, disabled: i } =
|
|
32172
|
+
function pZ({ node: e, name: t }) {
|
|
32173
|
+
let { control: n, basePath: r, disabled: i } = lX(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = TY({
|
|
31939
32174
|
control: n,
|
|
31940
32175
|
name: o
|
|
31941
|
-
}), l =
|
|
32176
|
+
}), l = jX(a, t), u = i || a.readOnly === !0, d = c.invalid, f = {
|
|
31942
32177
|
id: o,
|
|
31943
32178
|
value: typeof s.value == "string" ? s.value : "",
|
|
31944
32179
|
onChange: s.onChange,
|
|
@@ -31957,8 +32192,8 @@ function nZ({ node: e, name: t }) {
|
|
|
31957
32192
|
required: a.isRequired,
|
|
31958
32193
|
children: l
|
|
31959
32194
|
}),
|
|
31960
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31961
|
-
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(
|
|
32195
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(MX, { banner: a.gioConfig.banner }),
|
|
32196
|
+
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(fZ, {
|
|
31962
32197
|
...f,
|
|
31963
32198
|
pattern: a.pattern
|
|
31964
32199
|
}) : /* @__PURE__ */ H(eM, {
|
|
@@ -31967,144 +32202,144 @@ function nZ({ node: e, name: t }) {
|
|
|
31967
32202
|
pattern: a.pattern
|
|
31968
32203
|
}),
|
|
31969
32204
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31970
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
32205
|
+
/* @__PURE__ */ H(CR, { errors: OX(c.error) })
|
|
31971
32206
|
]
|
|
31972
32207
|
});
|
|
31973
32208
|
}
|
|
31974
32209
|
//#endregion
|
|
31975
32210
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
31976
|
-
function
|
|
31977
|
-
let { basePath: r } =
|
|
32211
|
+
function mZ({ node: e, name: t, depth: n = 0 }) {
|
|
32212
|
+
let { basePath: r } = lX(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ? mX(e.displayIf, r) : void 0, [e.displayIf, r]), l = B(() => e.disableIf ? mX(e.disableIf, r) : void 0, [e.disableIf, r]);
|
|
31978
32213
|
if (i.deprecated === !0) return null;
|
|
31979
|
-
let u =
|
|
31980
|
-
return u === null ? null : (l && (u = /* @__PURE__ */ H(
|
|
32214
|
+
let u = hZ(e, a, t, n);
|
|
32215
|
+
return u === null ? null : (l && (u = /* @__PURE__ */ H(fX, {
|
|
31981
32216
|
condition: l,
|
|
31982
32217
|
children: u
|
|
31983
|
-
})), c ? /* @__PURE__ */ H(
|
|
32218
|
+
})), c ? /* @__PURE__ */ H(dX, {
|
|
31984
32219
|
condition: c,
|
|
31985
32220
|
unregisterOnHide: s,
|
|
31986
32221
|
children: u
|
|
31987
32222
|
}) : u);
|
|
31988
32223
|
}
|
|
31989
|
-
function
|
|
31990
|
-
let { schema: i } = e, a =
|
|
31991
|
-
return Array.isArray(i.enum) && i.enum.length > 0 ||
|
|
32224
|
+
function hZ(e, t, n, r) {
|
|
32225
|
+
let { schema: i } = e, a = gZ(i.type);
|
|
32226
|
+
return Array.isArray(i.enum) && i.enum.length > 0 || UX(i) ? /* @__PURE__ */ H(ZX, {
|
|
31992
32227
|
node: e,
|
|
31993
32228
|
name: t
|
|
31994
|
-
}) :
|
|
32229
|
+
}) : WX(i) ? /* @__PURE__ */ H($X, {
|
|
31995
32230
|
node: e,
|
|
31996
32231
|
name: t
|
|
31997
|
-
}) :
|
|
32232
|
+
}) : GX(i) ? /* @__PURE__ */ H(RX, {
|
|
31998
32233
|
node: e,
|
|
31999
32234
|
name: t
|
|
32000
|
-
}) : a === "null" ? /* @__PURE__ */ H(
|
|
32235
|
+
}) : a === "null" ? /* @__PURE__ */ H(tZ, {}) : a === "boolean" ? /* @__PURE__ */ H(HX, {
|
|
32001
32236
|
node: e,
|
|
32002
32237
|
name: t
|
|
32003
|
-
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(
|
|
32238
|
+
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(nZ, {
|
|
32004
32239
|
node: e,
|
|
32005
32240
|
name: t
|
|
32006
|
-
}) : a === "string" ? /* @__PURE__ */ H(
|
|
32241
|
+
}) : a === "string" ? /* @__PURE__ */ H(pZ, {
|
|
32007
32242
|
node: e,
|
|
32008
32243
|
name: t
|
|
32009
|
-
}) : i.properties || a === "object" ||
|
|
32244
|
+
}) : i.properties || a === "object" || KX(i) || qX(i) ? /* @__PURE__ */ H(dZ, {
|
|
32010
32245
|
node: e,
|
|
32011
32246
|
name: n,
|
|
32012
32247
|
depth: r
|
|
32013
|
-
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(
|
|
32248
|
+
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(FX, {
|
|
32014
32249
|
node: e,
|
|
32015
32250
|
name: n,
|
|
32016
32251
|
depth: r
|
|
32017
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
32252
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${_Z(i)}). Field is omitted.`), null);
|
|
32018
32253
|
}
|
|
32019
|
-
function
|
|
32254
|
+
function gZ(e) {
|
|
32020
32255
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
32021
32256
|
}
|
|
32022
|
-
function
|
|
32257
|
+
function _Z(e) {
|
|
32023
32258
|
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";
|
|
32024
32259
|
}
|
|
32025
32260
|
//#endregion
|
|
32026
32261
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
32027
|
-
function
|
|
32028
|
-
return
|
|
32262
|
+
function vZ(e) {
|
|
32263
|
+
return yZ(e);
|
|
32029
32264
|
}
|
|
32030
|
-
function
|
|
32265
|
+
function yZ(e) {
|
|
32031
32266
|
let t = { ...e };
|
|
32032
32267
|
if (t.properties) {
|
|
32033
32268
|
let e = new Set(t.required ?? []), n = {};
|
|
32034
32269
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
32035
|
-
let t =
|
|
32270
|
+
let t = yZ(i);
|
|
32036
32271
|
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;
|
|
32037
32272
|
}
|
|
32038
32273
|
t.properties = n;
|
|
32039
32274
|
}
|
|
32040
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
32275
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(yZ) : yZ(t.items), t.oneOf &&= t.oneOf.map(yZ), t.anyOf &&= t.anyOf.map(yZ), t.allOf &&= t.allOf.map(yZ), t.dependencies &&= hX(t.dependencies, yZ), t;
|
|
32041
32276
|
}
|
|
32042
32277
|
//#endregion
|
|
32043
32278
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
32044
|
-
function
|
|
32279
|
+
function bZ(e) {
|
|
32045
32280
|
if (e.deprecated === !0) return { deprecated: !0 };
|
|
32046
32281
|
let t = { ...e };
|
|
32047
32282
|
if (e.properties) {
|
|
32048
32283
|
let n = [];
|
|
32049
32284
|
t.properties = {};
|
|
32050
|
-
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] =
|
|
32285
|
+
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] = bZ(i);
|
|
32051
32286
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
32052
32287
|
}
|
|
32053
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
32288
|
+
return e.items && !Array.isArray(e.items) && (t.items = bZ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => e.deprecated !== !0).map(bZ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => e.deprecated !== !0).map(bZ)), e.dependencies && (t.dependencies = hX(e.dependencies, bZ)), t;
|
|
32054
32289
|
}
|
|
32055
32290
|
//#endregion
|
|
32056
32291
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
32057
|
-
function
|
|
32058
|
-
let n =
|
|
32292
|
+
function xZ(e, t = "") {
|
|
32293
|
+
let n = vZ(bZ(gX(CX(e)))), r = /* @__PURE__ */ new Map();
|
|
32059
32294
|
return {
|
|
32060
|
-
root:
|
|
32295
|
+
root: SZ(n, "", !1, r, "", t),
|
|
32061
32296
|
nodeByPath: r,
|
|
32062
32297
|
variantIndices: /* @__PURE__ */ new Map()
|
|
32063
32298
|
};
|
|
32064
32299
|
}
|
|
32065
|
-
function
|
|
32300
|
+
function SZ(e, t, n, r, i = "", a = "") {
|
|
32066
32301
|
let o = {
|
|
32067
32302
|
rhfPath: t,
|
|
32068
32303
|
schema: e,
|
|
32069
32304
|
isRequired: n
|
|
32070
32305
|
};
|
|
32071
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
32306
|
+
if (e.gioConfig?.displayIf && (o.displayIf = DZ(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = DZ(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
32072
32307
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
32073
32308
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
32074
32309
|
let e = t ? `${t}.${o}` : o;
|
|
32075
|
-
i.set(o,
|
|
32310
|
+
i.set(o, SZ(s, e, n.has(o), r, t, a));
|
|
32076
32311
|
}
|
|
32077
32312
|
o.properties = i;
|
|
32078
32313
|
}
|
|
32079
32314
|
if (e.items && !Array.isArray(e.items)) {
|
|
32080
32315
|
let n = t ? `${t}.*` : "*";
|
|
32081
|
-
o.items =
|
|
32316
|
+
o.items = SZ(e.items, n, !1, r, t, a);
|
|
32082
32317
|
}
|
|
32083
32318
|
let s = e.oneOf ?? e.anyOf;
|
|
32084
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
32085
|
-
let n =
|
|
32319
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = CZ(s).map((e) => wZ(e, t, a))), e.dependencies) {
|
|
32320
|
+
let n = kZ(e.dependencies, t, a);
|
|
32086
32321
|
n.length > 0 && (o.dependencyBranches = n);
|
|
32087
32322
|
}
|
|
32088
32323
|
return r.set(t, o), o;
|
|
32089
32324
|
}
|
|
32090
|
-
function
|
|
32325
|
+
function CZ(e) {
|
|
32091
32326
|
let t = /* @__PURE__ */ new Set();
|
|
32092
32327
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
32093
32328
|
}
|
|
32094
|
-
function
|
|
32329
|
+
function wZ(e, t, n) {
|
|
32095
32330
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
32096
32331
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
32097
|
-
let e =
|
|
32332
|
+
let e = TZ(s);
|
|
32098
32333
|
e && a.push({
|
|
32099
32334
|
key: o,
|
|
32100
32335
|
value: e.value
|
|
32101
32336
|
});
|
|
32102
32337
|
let c = t ? `${t}.${o}` : o;
|
|
32103
|
-
i.set(o,
|
|
32338
|
+
i.set(o, EZ(s, c, r.has(o), t, n));
|
|
32104
32339
|
}
|
|
32105
32340
|
let o;
|
|
32106
32341
|
if (e.dependencies) {
|
|
32107
|
-
let r =
|
|
32342
|
+
let r = kZ(e.dependencies, t, n);
|
|
32108
32343
|
r.length > 0 && (o = r);
|
|
32109
32344
|
}
|
|
32110
32345
|
return {
|
|
@@ -32115,17 +32350,17 @@ function pZ(e, t, n) {
|
|
|
32115
32350
|
raw: e
|
|
32116
32351
|
};
|
|
32117
32352
|
}
|
|
32118
|
-
function
|
|
32353
|
+
function TZ(e) {
|
|
32119
32354
|
if (e.const !== void 0) return { value: e.const };
|
|
32120
32355
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
32121
32356
|
}
|
|
32122
|
-
function
|
|
32123
|
-
return
|
|
32357
|
+
function EZ(e, t, n, r, i) {
|
|
32358
|
+
return SZ(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
32124
32359
|
}
|
|
32125
|
-
function
|
|
32360
|
+
function DZ(e, t, n) {
|
|
32126
32361
|
let r = /* @__PURE__ */ new Map();
|
|
32127
32362
|
for (let [i, a] of Object.entries(e.$eq)) {
|
|
32128
|
-
let e =
|
|
32363
|
+
let e = OZ(i, t, n);
|
|
32129
32364
|
if (e === null) {
|
|
32130
32365
|
console.warn(`[JsonSchemaForm] gioConfig path "${i}" is unsupported (expected value.X / ./X / ../X).`);
|
|
32131
32366
|
continue;
|
|
@@ -32134,7 +32369,7 @@ function gZ(e, t, n) {
|
|
|
32134
32369
|
}
|
|
32135
32370
|
return { $eq: r };
|
|
32136
32371
|
}
|
|
32137
|
-
function
|
|
32372
|
+
function OZ(e, t, n) {
|
|
32138
32373
|
let r = null;
|
|
32139
32374
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
32140
32375
|
else if (e.startsWith("./")) {
|
|
@@ -32148,24 +32383,24 @@ function _Z(e, t, n) {
|
|
|
32148
32383
|
}
|
|
32149
32384
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
32150
32385
|
}
|
|
32151
|
-
function
|
|
32386
|
+
function kZ(e, t, n) {
|
|
32152
32387
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
32153
|
-
let i =
|
|
32388
|
+
let i = AZ(e, r);
|
|
32154
32389
|
if (!i) return [];
|
|
32155
32390
|
let a = t ? `${t}.${e}` : e;
|
|
32156
|
-
return i.map((r) =>
|
|
32391
|
+
return i.map((r) => jZ(r, e, a, t, n));
|
|
32157
32392
|
});
|
|
32158
32393
|
}
|
|
32159
|
-
function
|
|
32394
|
+
function AZ(e, t) {
|
|
32160
32395
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
32161
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
32396
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && TZ(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);
|
|
32162
32397
|
}
|
|
32163
|
-
function
|
|
32164
|
-
let a =
|
|
32398
|
+
function jZ(e, t, n, r, i) {
|
|
32399
|
+
let a = TZ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
32165
32400
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
32166
32401
|
if (n === t) continue;
|
|
32167
32402
|
let e = r ? `${r}.${n}` : n;
|
|
32168
|
-
s.set(n,
|
|
32403
|
+
s.set(n, EZ(a, e, o.has(n), r, i));
|
|
32169
32404
|
}
|
|
32170
32405
|
let c = i ? `${i}.${n}` : n;
|
|
32171
32406
|
return {
|
|
@@ -32176,10 +32411,10 @@ function bZ(e, t, n, r, i) {
|
|
|
32176
32411
|
}
|
|
32177
32412
|
//#endregion
|
|
32178
32413
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
32179
|
-
function
|
|
32414
|
+
function MZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
32180
32415
|
let a = B(() => {
|
|
32181
32416
|
try {
|
|
32182
|
-
let a =
|
|
32417
|
+
let a = xZ(e, n);
|
|
32183
32418
|
return {
|
|
32184
32419
|
ok: !0,
|
|
32185
32420
|
contextValue: {
|
|
@@ -32204,9 +32439,9 @@ function xZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
32204
32439
|
r,
|
|
32205
32440
|
i
|
|
32206
32441
|
]);
|
|
32207
|
-
return a.ok ? /* @__PURE__ */ H(
|
|
32442
|
+
return a.ok ? /* @__PURE__ */ H(cX.Provider, {
|
|
32208
32443
|
value: a.contextValue,
|
|
32209
|
-
children: /* @__PURE__ */ H(
|
|
32444
|
+
children: /* @__PURE__ */ H(mZ, { node: a.root })
|
|
32210
32445
|
}) : /* @__PURE__ */ U("p", {
|
|
32211
32446
|
role: "alert",
|
|
32212
32447
|
className: "text-sm text-destructive",
|
|
@@ -32215,7 +32450,7 @@ function xZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
32215
32450
|
}
|
|
32216
32451
|
//#endregion
|
|
32217
32452
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
32218
|
-
function
|
|
32453
|
+
function NZ(...e) {
|
|
32219
32454
|
return async (t, n, r) => {
|
|
32220
32455
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
32221
32456
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -32230,7 +32465,7 @@ function SZ(...e) {
|
|
|
32230
32465
|
}
|
|
32231
32466
|
//#endregion
|
|
32232
32467
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
32233
|
-
var
|
|
32468
|
+
var PZ = /* @__PURE__ */ W(((e) => {
|
|
32234
32469
|
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;
|
|
32235
32470
|
var t = class {};
|
|
32236
32471
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -32335,9 +32570,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
32335
32570
|
return new r(e.toString());
|
|
32336
32571
|
}
|
|
32337
32572
|
e.regexpCode = g;
|
|
32338
|
-
})),
|
|
32573
|
+
})), FZ = /* @__PURE__ */ W(((e) => {
|
|
32339
32574
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
32340
|
-
var t =
|
|
32575
|
+
var t = PZ(), n = class extends Error {
|
|
32341
32576
|
constructor(e) {
|
|
32342
32577
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
32343
32578
|
}
|
|
@@ -32446,9 +32681,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
32446
32681
|
return c;
|
|
32447
32682
|
}
|
|
32448
32683
|
};
|
|
32449
|
-
})),
|
|
32684
|
+
})), IZ = /* @__PURE__ */ W(((e) => {
|
|
32450
32685
|
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;
|
|
32451
|
-
var t =
|
|
32686
|
+
var t = PZ(), n = FZ(), r = PZ();
|
|
32452
32687
|
Object.defineProperty(e, "_", {
|
|
32453
32688
|
enumerable: !0,
|
|
32454
32689
|
get: function() {
|
|
@@ -32490,7 +32725,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
32490
32725
|
return r.Name;
|
|
32491
32726
|
}
|
|
32492
32727
|
});
|
|
32493
|
-
var i =
|
|
32728
|
+
var i = FZ();
|
|
32494
32729
|
Object.defineProperty(e, "Scope", {
|
|
32495
32730
|
enumerable: !0,
|
|
32496
32731
|
get: function() {
|
|
@@ -32961,9 +33196,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
32961
33196
|
function L(e) {
|
|
32962
33197
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
32963
33198
|
}
|
|
32964
|
-
})),
|
|
33199
|
+
})), LZ = /* @__PURE__ */ W(((e) => {
|
|
32965
33200
|
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;
|
|
32966
|
-
var t =
|
|
33201
|
+
var t = IZ(), n = PZ();
|
|
32967
33202
|
function r(e) {
|
|
32968
33203
|
let t = {};
|
|
32969
33204
|
for (let n of e) t[n] = !0;
|
|
@@ -33086,9 +33321,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33086
33321
|
}
|
|
33087
33322
|
}
|
|
33088
33323
|
e.checkStrictMode = x;
|
|
33089
|
-
})),
|
|
33324
|
+
})), RZ = /* @__PURE__ */ W(((e) => {
|
|
33090
33325
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33091
|
-
var t =
|
|
33326
|
+
var t = IZ();
|
|
33092
33327
|
e.default = {
|
|
33093
33328
|
data: new t.Name("data"),
|
|
33094
33329
|
valCxt: new t.Name("valCxt"),
|
|
@@ -33107,9 +33342,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33107
33342
|
jsonLen: new t.Name("jsonLen"),
|
|
33108
33343
|
jsonPart: new t.Name("jsonPart")
|
|
33109
33344
|
};
|
|
33110
|
-
})),
|
|
33345
|
+
})), zZ = /* @__PURE__ */ W(((e) => {
|
|
33111
33346
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
33112
|
-
var t =
|
|
33347
|
+
var t = IZ(), n = LZ(), r = RZ();
|
|
33113
33348
|
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)` };
|
|
33114
33349
|
function i(n, r = e.keywordError, i, a) {
|
|
33115
33350
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -33171,9 +33406,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33171
33406
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
33172
33407
|
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]);
|
|
33173
33408
|
}
|
|
33174
|
-
})),
|
|
33409
|
+
})), BZ = /* @__PURE__ */ W(((e) => {
|
|
33175
33410
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
33176
|
-
var t =
|
|
33411
|
+
var t = zZ(), n = IZ(), r = RZ(), i = { message: "boolean schema is false" };
|
|
33177
33412
|
function a(e) {
|
|
33178
33413
|
let { gen: t, schema: i, validateName: a } = e;
|
|
33179
33414
|
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));
|
|
@@ -33197,7 +33432,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33197
33432
|
};
|
|
33198
33433
|
(0, t.reportError)(o, i, void 0, n);
|
|
33199
33434
|
}
|
|
33200
|
-
})),
|
|
33435
|
+
})), VZ = /* @__PURE__ */ W(((e) => {
|
|
33201
33436
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
33202
33437
|
var t = new Set([
|
|
33203
33438
|
"string",
|
|
@@ -33251,7 +33486,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33251
33486
|
};
|
|
33252
33487
|
}
|
|
33253
33488
|
e.getRules = r;
|
|
33254
|
-
})),
|
|
33489
|
+
})), HZ = /* @__PURE__ */ W(((e) => {
|
|
33255
33490
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
33256
33491
|
function t({ schema: e, self: t }, r) {
|
|
33257
33492
|
let i = t.RULES.types[r];
|
|
@@ -33266,9 +33501,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33266
33501
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
33267
33502
|
}
|
|
33268
33503
|
e.shouldUseRule = r;
|
|
33269
|
-
})),
|
|
33504
|
+
})), UZ = /* @__PURE__ */ W(((e) => {
|
|
33270
33505
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
33271
|
-
var t =
|
|
33506
|
+
var t = VZ(), n = HZ(), r = zZ(), i = IZ(), a = LZ(), o;
|
|
33272
33507
|
(function(e) {
|
|
33273
33508
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
33274
33509
|
})(o || (e.DataType = o = {}));
|
|
@@ -33403,9 +33638,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33403
33638
|
it: e
|
|
33404
33639
|
};
|
|
33405
33640
|
}
|
|
33406
|
-
})),
|
|
33641
|
+
})), WZ = /* @__PURE__ */ W(((e) => {
|
|
33407
33642
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
33408
|
-
var t =
|
|
33643
|
+
var t = IZ(), n = LZ();
|
|
33409
33644
|
function r(e, t) {
|
|
33410
33645
|
let { properties: n, items: r } = e.schema;
|
|
33411
33646
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -33423,9 +33658,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33423
33658
|
let u = (0, t._)`${l} === undefined`;
|
|
33424
33659
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
33425
33660
|
}
|
|
33426
|
-
})),
|
|
33661
|
+
})), GZ = /* @__PURE__ */ W(((e) => {
|
|
33427
33662
|
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;
|
|
33428
|
-
var t =
|
|
33663
|
+
var t = IZ(), n = LZ(), r = RZ(), i = LZ();
|
|
33429
33664
|
function a(e, n) {
|
|
33430
33665
|
let { gen: r, data: i, it: a } = e;
|
|
33431
33666
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -33527,9 +33762,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33527
33762
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
33528
33763
|
}
|
|
33529
33764
|
e.validateUnion = v;
|
|
33530
|
-
})),
|
|
33765
|
+
})), KZ = /* @__PURE__ */ W(((e) => {
|
|
33531
33766
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
33532
|
-
var t =
|
|
33767
|
+
var t = IZ(), n = RZ(), r = GZ(), i = zZ();
|
|
33533
33768
|
function a(e, n) {
|
|
33534
33769
|
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);
|
|
33535
33770
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -33608,9 +33843,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33608
33843
|
}
|
|
33609
33844
|
}
|
|
33610
33845
|
e.validateKeywordUsage = f;
|
|
33611
|
-
})),
|
|
33846
|
+
})), qZ = /* @__PURE__ */ W(((e) => {
|
|
33612
33847
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
33613
|
-
var t =
|
|
33848
|
+
var t = IZ(), n = LZ();
|
|
33614
33849
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
33615
33850
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
33616
33851
|
if (r !== void 0) {
|
|
@@ -33654,7 +33889,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33654
33889
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
33655
33890
|
}
|
|
33656
33891
|
e.extendSubschemaMode = a;
|
|
33657
|
-
})),
|
|
33892
|
+
})), JZ = /* @__PURE__ */ W(((e, t) => {
|
|
33658
33893
|
t.exports = function e(t, n) {
|
|
33659
33894
|
if (t === n) return !0;
|
|
33660
33895
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -33678,7 +33913,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33678
33913
|
}
|
|
33679
33914
|
return t !== t && n !== n;
|
|
33680
33915
|
};
|
|
33681
|
-
})),
|
|
33916
|
+
})), YZ = /* @__PURE__ */ W(((e, t) => {
|
|
33682
33917
|
var n = t.exports = function(e, t, n) {
|
|
33683
33918
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
33684
33919
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -33741,9 +33976,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33741
33976
|
function i(e) {
|
|
33742
33977
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
33743
33978
|
}
|
|
33744
|
-
})),
|
|
33979
|
+
})), XZ = /* @__PURE__ */ W(((e) => {
|
|
33745
33980
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
33746
|
-
var t =
|
|
33981
|
+
var t = LZ(), n = JZ(), r = YZ(), i = new Set([
|
|
33747
33982
|
"type",
|
|
33748
33983
|
"format",
|
|
33749
33984
|
"pattern",
|
|
@@ -33832,9 +34067,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
33832
34067
|
}
|
|
33833
34068
|
}
|
|
33834
34069
|
e.getSchemaRefs = h;
|
|
33835
|
-
})),
|
|
34070
|
+
})), ZZ = /* @__PURE__ */ W(((e) => {
|
|
33836
34071
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
33837
|
-
var t =
|
|
34072
|
+
var t = BZ(), n = UZ(), r = HZ(), i = UZ(), a = WZ(), o = KZ(), s = qZ(), c = IZ(), l = RZ(), u = XZ(), d = LZ(), f = zZ();
|
|
33838
34073
|
function p(e) {
|
|
33839
34074
|
if (S(e) && (w(e), x(e))) {
|
|
33840
34075
|
_(e);
|
|
@@ -34124,23 +34359,23 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
34124
34359
|
}
|
|
34125
34360
|
}
|
|
34126
34361
|
e.getData = ae;
|
|
34127
|
-
})),
|
|
34362
|
+
})), QZ = /* @__PURE__ */ W(((e) => {
|
|
34128
34363
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
34129
34364
|
constructor(e) {
|
|
34130
34365
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
34131
34366
|
}
|
|
34132
34367
|
};
|
|
34133
|
-
})),
|
|
34368
|
+
})), $Z = /* @__PURE__ */ W(((e) => {
|
|
34134
34369
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34135
|
-
var t =
|
|
34370
|
+
var t = XZ();
|
|
34136
34371
|
e.default = class extends Error {
|
|
34137
34372
|
constructor(e, n, r, i) {
|
|
34138
34373
|
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));
|
|
34139
34374
|
}
|
|
34140
34375
|
};
|
|
34141
|
-
})),
|
|
34376
|
+
})), eQ = /* @__PURE__ */ W(((e) => {
|
|
34142
34377
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
34143
|
-
var t =
|
|
34378
|
+
var t = IZ(), n = QZ(), r = RZ(), i = XZ(), a = LZ(), o = ZZ(), s = class {
|
|
34144
34379
|
constructor(e) {
|
|
34145
34380
|
this.refs = {}, this.dynamicAnchors = {};
|
|
34146
34381
|
let t;
|
|
@@ -34299,27 +34534,27 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
34299
34534
|
baseId: t
|
|
34300
34535
|
}), o.schema !== o.root.schema) return o;
|
|
34301
34536
|
}
|
|
34302
|
-
})),
|
|
34303
|
-
$id: () =>
|
|
34537
|
+
})), tQ = /* @__PURE__ */ xe({
|
|
34538
|
+
$id: () => nQ,
|
|
34304
34539
|
additionalProperties: () => !1,
|
|
34305
|
-
default: () =>
|
|
34306
|
-
description: () =>
|
|
34307
|
-
properties: () =>
|
|
34308
|
-
required: () =>
|
|
34309
|
-
type: () =>
|
|
34310
|
-
}),
|
|
34311
|
-
|
|
34540
|
+
default: () => sQ,
|
|
34541
|
+
description: () => rQ,
|
|
34542
|
+
properties: () => oQ,
|
|
34543
|
+
required: () => aQ,
|
|
34544
|
+
type: () => iQ
|
|
34545
|
+
}), nQ, rQ, iQ, aQ, oQ, sQ, cQ = be((() => {
|
|
34546
|
+
nQ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", rQ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", iQ = "object", aQ = ["$data"], oQ = { $data: {
|
|
34312
34547
|
type: "string",
|
|
34313
34548
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
34314
|
-
} },
|
|
34315
|
-
$id:
|
|
34316
|
-
description:
|
|
34317
|
-
type:
|
|
34318
|
-
required:
|
|
34319
|
-
properties:
|
|
34549
|
+
} }, sQ = {
|
|
34550
|
+
$id: nQ,
|
|
34551
|
+
description: rQ,
|
|
34552
|
+
type: iQ,
|
|
34553
|
+
required: aQ,
|
|
34554
|
+
properties: oQ,
|
|
34320
34555
|
additionalProperties: !1
|
|
34321
34556
|
};
|
|
34322
|
-
})),
|
|
34557
|
+
})), lQ = /* @__PURE__ */ W(((e, t) => {
|
|
34323
34558
|
var n = RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu), r = RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u), i = RegExp.prototype.test.bind(/^[\da-f]{2}$/iu), a = RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu), o = RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);
|
|
34324
34559
|
function s(e) {
|
|
34325
34560
|
let t = "", n = 0, r = 0;
|
|
@@ -34531,8 +34766,8 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
34531
34766
|
normalizeIPv6: f,
|
|
34532
34767
|
stringArrayToHexStripped: s
|
|
34533
34768
|
};
|
|
34534
|
-
})),
|
|
34535
|
-
var { isUUID: n } =
|
|
34769
|
+
})), uQ = /* @__PURE__ */ W(((e, t) => {
|
|
34770
|
+
var { isUUID: n } = lQ(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
34536
34771
|
"http",
|
|
34537
34772
|
"https",
|
|
34538
34773
|
"ws",
|
|
@@ -34637,8 +34872,8 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
34637
34872
|
isValidSchemeName: a,
|
|
34638
34873
|
getSchemeHandler: y
|
|
34639
34874
|
};
|
|
34640
|
-
})),
|
|
34641
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
34875
|
+
})), dQ = /* @__PURE__ */ W(((e, t) => {
|
|
34876
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = lQ(), { SCHEMES: d, getSchemeHandler: f } = uQ();
|
|
34642
34877
|
function p(e, t) {
|
|
34643
34878
|
return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
|
|
34644
34879
|
}
|
|
@@ -34752,20 +34987,20 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
34752
34987
|
parse: x
|
|
34753
34988
|
};
|
|
34754
34989
|
t.exports = T, t.exports.default = T, t.exports.fastUri = T;
|
|
34755
|
-
})),
|
|
34990
|
+
})), fQ = /* @__PURE__ */ W(((e) => {
|
|
34756
34991
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34757
|
-
var t =
|
|
34992
|
+
var t = dQ();
|
|
34758
34993
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
34759
|
-
})),
|
|
34994
|
+
})), pQ = /* @__PURE__ */ W(((e) => {
|
|
34760
34995
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
34761
|
-
var t =
|
|
34996
|
+
var t = ZZ();
|
|
34762
34997
|
Object.defineProperty(e, "KeywordCxt", {
|
|
34763
34998
|
enumerable: !0,
|
|
34764
34999
|
get: function() {
|
|
34765
35000
|
return t.KeywordCxt;
|
|
34766
35001
|
}
|
|
34767
35002
|
});
|
|
34768
|
-
var n =
|
|
35003
|
+
var n = IZ();
|
|
34769
35004
|
Object.defineProperty(e, "_", {
|
|
34770
35005
|
enumerable: !0,
|
|
34771
35006
|
get: function() {
|
|
@@ -34797,7 +35032,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
34797
35032
|
return n.CodeGen;
|
|
34798
35033
|
}
|
|
34799
35034
|
});
|
|
34800
|
-
var r =
|
|
35035
|
+
var r = QZ(), i = $Z(), a = VZ(), o = eQ(), s = IZ(), c = XZ(), l = UZ(), u = LZ(), d = (cQ(), we(tQ).default), f = fQ(), p = (e, t) => new RegExp(e, t);
|
|
34801
35036
|
p.code = "new RegExp";
|
|
34802
35037
|
var m = [
|
|
34803
35038
|
"removeAdditional",
|
|
@@ -35183,16 +35418,16 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35183
35418
|
function F(e) {
|
|
35184
35419
|
return { anyOf: [e, P] };
|
|
35185
35420
|
}
|
|
35186
|
-
})),
|
|
35421
|
+
})), mQ = /* @__PURE__ */ W(((e) => {
|
|
35187
35422
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35188
35423
|
keyword: "id",
|
|
35189
35424
|
code() {
|
|
35190
35425
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
35191
35426
|
}
|
|
35192
35427
|
};
|
|
35193
|
-
})),
|
|
35428
|
+
})), hQ = /* @__PURE__ */ W(((e) => {
|
|
35194
35429
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
35195
|
-
var t =
|
|
35430
|
+
var t = $Z(), n = GZ(), r = IZ(), i = RZ(), a = eQ(), o = LZ(), s = {
|
|
35196
35431
|
keyword: "$ref",
|
|
35197
35432
|
schemaType: "string",
|
|
35198
35433
|
code(e) {
|
|
@@ -35265,9 +35500,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35265
35500
|
}
|
|
35266
35501
|
}
|
|
35267
35502
|
e.callRef = l, e.default = s;
|
|
35268
|
-
})),
|
|
35503
|
+
})), gQ = /* @__PURE__ */ W(((e) => {
|
|
35269
35504
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35270
|
-
var t =
|
|
35505
|
+
var t = mQ(), n = hQ();
|
|
35271
35506
|
e.default = [
|
|
35272
35507
|
"$schema",
|
|
35273
35508
|
"$id",
|
|
@@ -35278,9 +35513,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35278
35513
|
t.default,
|
|
35279
35514
|
n.default
|
|
35280
35515
|
];
|
|
35281
|
-
})),
|
|
35516
|
+
})), _Q = /* @__PURE__ */ W(((e) => {
|
|
35282
35517
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35283
|
-
var t =
|
|
35518
|
+
var t = IZ(), n = t.operators, r = {
|
|
35284
35519
|
maximum: {
|
|
35285
35520
|
okStr: "<=",
|
|
35286
35521
|
ok: n.LTE,
|
|
@@ -35316,9 +35551,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35316
35551
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
35317
35552
|
}
|
|
35318
35553
|
};
|
|
35319
|
-
})),
|
|
35554
|
+
})), vQ = /* @__PURE__ */ W(((e) => {
|
|
35320
35555
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35321
|
-
var t =
|
|
35556
|
+
var t = IZ();
|
|
35322
35557
|
e.default = {
|
|
35323
35558
|
keyword: "multipleOf",
|
|
35324
35559
|
type: "number",
|
|
@@ -35333,7 +35568,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35333
35568
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
35334
35569
|
}
|
|
35335
35570
|
};
|
|
35336
|
-
})),
|
|
35571
|
+
})), yQ = /* @__PURE__ */ W(((e) => {
|
|
35337
35572
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35338
35573
|
function t(e) {
|
|
35339
35574
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -35341,9 +35576,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35341
35576
|
return n;
|
|
35342
35577
|
}
|
|
35343
35578
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
35344
|
-
})),
|
|
35579
|
+
})), bQ = /* @__PURE__ */ W(((e) => {
|
|
35345
35580
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35346
|
-
var t =
|
|
35581
|
+
var t = IZ(), n = LZ(), r = yQ();
|
|
35347
35582
|
e.default = {
|
|
35348
35583
|
keyword: ["maxLength", "minLength"],
|
|
35349
35584
|
type: "string",
|
|
@@ -35361,9 +35596,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35361
35596
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
35362
35597
|
}
|
|
35363
35598
|
};
|
|
35364
|
-
})),
|
|
35599
|
+
})), xQ = /* @__PURE__ */ W(((e) => {
|
|
35365
35600
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35366
|
-
var t =
|
|
35601
|
+
var t = GZ(), n = LZ(), r = IZ();
|
|
35367
35602
|
e.default = {
|
|
35368
35603
|
keyword: "pattern",
|
|
35369
35604
|
type: "string",
|
|
@@ -35384,9 +35619,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35384
35619
|
}
|
|
35385
35620
|
}
|
|
35386
35621
|
};
|
|
35387
|
-
})),
|
|
35622
|
+
})), SQ = /* @__PURE__ */ W(((e) => {
|
|
35388
35623
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35389
|
-
var t =
|
|
35624
|
+
var t = IZ();
|
|
35390
35625
|
e.default = {
|
|
35391
35626
|
keyword: ["maxProperties", "minProperties"],
|
|
35392
35627
|
type: "object",
|
|
@@ -35404,9 +35639,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35404
35639
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
35405
35640
|
}
|
|
35406
35641
|
};
|
|
35407
|
-
})),
|
|
35642
|
+
})), CQ = /* @__PURE__ */ W(((e) => {
|
|
35408
35643
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35409
|
-
var t =
|
|
35644
|
+
var t = GZ(), n = IZ(), r = LZ();
|
|
35410
35645
|
e.default = {
|
|
35411
35646
|
keyword: "required",
|
|
35412
35647
|
type: "object",
|
|
@@ -35452,9 +35687,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35452
35687
|
}
|
|
35453
35688
|
}
|
|
35454
35689
|
};
|
|
35455
|
-
})),
|
|
35690
|
+
})), wQ = /* @__PURE__ */ W(((e) => {
|
|
35456
35691
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35457
|
-
var t =
|
|
35692
|
+
var t = IZ();
|
|
35458
35693
|
e.default = {
|
|
35459
35694
|
keyword: ["maxItems", "minItems"],
|
|
35460
35695
|
type: "array",
|
|
@@ -35472,13 +35707,13 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35472
35707
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
35473
35708
|
}
|
|
35474
35709
|
};
|
|
35475
|
-
})),
|
|
35710
|
+
})), TQ = /* @__PURE__ */ W(((e) => {
|
|
35476
35711
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35477
|
-
var t =
|
|
35712
|
+
var t = JZ();
|
|
35478
35713
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
35479
|
-
})),
|
|
35714
|
+
})), EQ = /* @__PURE__ */ W(((e) => {
|
|
35480
35715
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35481
|
-
var t =
|
|
35716
|
+
var t = UZ(), n = IZ(), r = LZ(), i = TQ();
|
|
35482
35717
|
e.default = {
|
|
35483
35718
|
keyword: "uniqueItems",
|
|
35484
35719
|
type: "array",
|
|
@@ -35519,9 +35754,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35519
35754
|
}
|
|
35520
35755
|
}
|
|
35521
35756
|
};
|
|
35522
|
-
})),
|
|
35757
|
+
})), DQ = /* @__PURE__ */ W(((e) => {
|
|
35523
35758
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35524
|
-
var t =
|
|
35759
|
+
var t = IZ(), n = LZ(), r = TQ();
|
|
35525
35760
|
e.default = {
|
|
35526
35761
|
keyword: "const",
|
|
35527
35762
|
$data: !0,
|
|
@@ -35534,9 +35769,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35534
35769
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
35535
35770
|
}
|
|
35536
35771
|
};
|
|
35537
|
-
})),
|
|
35772
|
+
})), OQ = /* @__PURE__ */ W(((e) => {
|
|
35538
35773
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35539
|
-
var t =
|
|
35774
|
+
var t = IZ(), n = LZ(), r = TQ();
|
|
35540
35775
|
e.default = {
|
|
35541
35776
|
keyword: "enum",
|
|
35542
35777
|
schemaType: "array",
|
|
@@ -35566,9 +35801,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35566
35801
|
}
|
|
35567
35802
|
}
|
|
35568
35803
|
};
|
|
35569
|
-
})),
|
|
35804
|
+
})), kQ = /* @__PURE__ */ W(((e) => {
|
|
35570
35805
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35571
|
-
var t =
|
|
35806
|
+
var t = _Q(), n = vQ(), r = bQ(), i = xQ(), a = SQ(), o = CQ(), s = wQ(), c = EQ(), l = DQ(), u = OQ();
|
|
35572
35807
|
e.default = [
|
|
35573
35808
|
t.default,
|
|
35574
35809
|
n.default,
|
|
@@ -35589,9 +35824,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35589
35824
|
l.default,
|
|
35590
35825
|
u.default
|
|
35591
35826
|
];
|
|
35592
|
-
})),
|
|
35827
|
+
})), AQ = /* @__PURE__ */ W(((e) => {
|
|
35593
35828
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
35594
|
-
var t =
|
|
35829
|
+
var t = IZ(), n = LZ(), r = {
|
|
35595
35830
|
keyword: "additionalItems",
|
|
35596
35831
|
type: "array",
|
|
35597
35832
|
schemaType: ["boolean", "object"],
|
|
@@ -35629,9 +35864,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35629
35864
|
}
|
|
35630
35865
|
}
|
|
35631
35866
|
e.validateAdditionalItems = i, e.default = r;
|
|
35632
|
-
})),
|
|
35867
|
+
})), jQ = /* @__PURE__ */ W(((e) => {
|
|
35633
35868
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
35634
|
-
var t =
|
|
35869
|
+
var t = IZ(), n = LZ(), r = GZ(), i = {
|
|
35635
35870
|
keyword: "items",
|
|
35636
35871
|
type: "array",
|
|
35637
35872
|
schemaType: [
|
|
@@ -35666,9 +35901,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35666
35901
|
}
|
|
35667
35902
|
}
|
|
35668
35903
|
e.validateTuple = a, e.default = i;
|
|
35669
|
-
})),
|
|
35904
|
+
})), MQ = /* @__PURE__ */ W(((e) => {
|
|
35670
35905
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35671
|
-
var t =
|
|
35906
|
+
var t = jQ();
|
|
35672
35907
|
e.default = {
|
|
35673
35908
|
keyword: "prefixItems",
|
|
35674
35909
|
type: "array",
|
|
@@ -35676,9 +35911,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35676
35911
|
before: "uniqueItems",
|
|
35677
35912
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
35678
35913
|
};
|
|
35679
|
-
})),
|
|
35914
|
+
})), NQ = /* @__PURE__ */ W(((e) => {
|
|
35680
35915
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35681
|
-
var t =
|
|
35916
|
+
var t = IZ(), n = LZ(), r = GZ(), i = AQ();
|
|
35682
35917
|
e.default = {
|
|
35683
35918
|
keyword: "items",
|
|
35684
35919
|
type: "array",
|
|
@@ -35693,9 +35928,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35693
35928
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
35694
35929
|
}
|
|
35695
35930
|
};
|
|
35696
|
-
})),
|
|
35931
|
+
})), PQ = /* @__PURE__ */ W(((e) => {
|
|
35697
35932
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35698
|
-
var t =
|
|
35933
|
+
var t = IZ(), n = LZ();
|
|
35699
35934
|
e.default = {
|
|
35700
35935
|
keyword: "contains",
|
|
35701
35936
|
type: "array",
|
|
@@ -35748,9 +35983,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35748
35983
|
}
|
|
35749
35984
|
}
|
|
35750
35985
|
};
|
|
35751
|
-
})),
|
|
35986
|
+
})), FQ = /* @__PURE__ */ W(((e) => {
|
|
35752
35987
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
35753
|
-
var t =
|
|
35988
|
+
var t = IZ(), n = LZ(), r = GZ();
|
|
35754
35989
|
e.error = {
|
|
35755
35990
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
35756
35991
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -35809,9 +36044,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35809
36044
|
}, () => i.var(c, !0)), e.ok(c));
|
|
35810
36045
|
}
|
|
35811
36046
|
e.validateSchemaDeps = s, e.default = i;
|
|
35812
|
-
})),
|
|
36047
|
+
})), IQ = /* @__PURE__ */ W(((e) => {
|
|
35813
36048
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35814
|
-
var t =
|
|
36049
|
+
var t = IZ(), n = LZ();
|
|
35815
36050
|
e.default = {
|
|
35816
36051
|
keyword: "propertyNames",
|
|
35817
36052
|
type: "object",
|
|
@@ -35837,9 +36072,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35837
36072
|
}), e.ok(s);
|
|
35838
36073
|
}
|
|
35839
36074
|
};
|
|
35840
|
-
})),
|
|
36075
|
+
})), LQ = /* @__PURE__ */ W(((e) => {
|
|
35841
36076
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35842
|
-
var t =
|
|
36077
|
+
var t = GZ(), n = IZ(), r = RZ(), i = LZ();
|
|
35843
36078
|
e.default = {
|
|
35844
36079
|
keyword: "additionalProperties",
|
|
35845
36080
|
type: ["object"],
|
|
@@ -35904,9 +36139,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35904
36139
|
}
|
|
35905
36140
|
}
|
|
35906
36141
|
};
|
|
35907
|
-
})),
|
|
36142
|
+
})), RQ = /* @__PURE__ */ W(((e) => {
|
|
35908
36143
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35909
|
-
var t =
|
|
36144
|
+
var t = ZZ(), n = GZ(), r = LZ(), i = LQ();
|
|
35910
36145
|
e.default = {
|
|
35911
36146
|
keyword: "properties",
|
|
35912
36147
|
type: "object",
|
|
@@ -35933,9 +36168,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35933
36168
|
}
|
|
35934
36169
|
}
|
|
35935
36170
|
};
|
|
35936
|
-
})),
|
|
36171
|
+
})), zQ = /* @__PURE__ */ W(((e) => {
|
|
35937
36172
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35938
|
-
var t =
|
|
36173
|
+
var t = GZ(), n = IZ(), r = LZ(), i = LZ();
|
|
35939
36174
|
e.default = {
|
|
35940
36175
|
keyword: "patternProperties",
|
|
35941
36176
|
type: "object",
|
|
@@ -35968,9 +36203,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35968
36203
|
}
|
|
35969
36204
|
}
|
|
35970
36205
|
};
|
|
35971
|
-
})),
|
|
36206
|
+
})), BQ = /* @__PURE__ */ W(((e) => {
|
|
35972
36207
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35973
|
-
var t =
|
|
36208
|
+
var t = LZ();
|
|
35974
36209
|
e.default = {
|
|
35975
36210
|
keyword: "not",
|
|
35976
36211
|
schemaType: ["object", "boolean"],
|
|
@@ -35991,17 +36226,17 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
35991
36226
|
},
|
|
35992
36227
|
error: { message: "must NOT be valid" }
|
|
35993
36228
|
};
|
|
35994
|
-
})),
|
|
36229
|
+
})), VQ = /* @__PURE__ */ W(((e) => {
|
|
35995
36230
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35996
36231
|
keyword: "anyOf",
|
|
35997
36232
|
schemaType: "array",
|
|
35998
36233
|
trackErrors: !0,
|
|
35999
|
-
code:
|
|
36234
|
+
code: GZ().validateUnion,
|
|
36000
36235
|
error: { message: "must match a schema in anyOf" }
|
|
36001
36236
|
};
|
|
36002
|
-
})),
|
|
36237
|
+
})), HQ = /* @__PURE__ */ W(((e) => {
|
|
36003
36238
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36004
|
-
var t =
|
|
36239
|
+
var t = IZ(), n = LZ();
|
|
36005
36240
|
e.default = {
|
|
36006
36241
|
keyword: "oneOf",
|
|
36007
36242
|
schemaType: "array",
|
|
@@ -36031,9 +36266,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36031
36266
|
}
|
|
36032
36267
|
}
|
|
36033
36268
|
};
|
|
36034
|
-
})),
|
|
36269
|
+
})), UQ = /* @__PURE__ */ W(((e) => {
|
|
36035
36270
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36036
|
-
var t =
|
|
36271
|
+
var t = LZ();
|
|
36037
36272
|
e.default = {
|
|
36038
36273
|
keyword: "allOf",
|
|
36039
36274
|
schemaType: "array",
|
|
@@ -36052,9 +36287,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36052
36287
|
});
|
|
36053
36288
|
}
|
|
36054
36289
|
};
|
|
36055
|
-
})),
|
|
36290
|
+
})), WQ = /* @__PURE__ */ W(((e) => {
|
|
36056
36291
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36057
|
-
var t =
|
|
36292
|
+
var t = IZ(), n = LZ(), r = {
|
|
36058
36293
|
keyword: "if",
|
|
36059
36294
|
schemaType: ["object", "boolean"],
|
|
36060
36295
|
trackErrors: !0,
|
|
@@ -36095,9 +36330,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36095
36330
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
36096
36331
|
}
|
|
36097
36332
|
e.default = r;
|
|
36098
|
-
})),
|
|
36333
|
+
})), GQ = /* @__PURE__ */ W(((e) => {
|
|
36099
36334
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36100
|
-
var t =
|
|
36335
|
+
var t = LZ();
|
|
36101
36336
|
e.default = {
|
|
36102
36337
|
keyword: ["then", "else"],
|
|
36103
36338
|
schemaType: ["object", "boolean"],
|
|
@@ -36105,9 +36340,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36105
36340
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
36106
36341
|
}
|
|
36107
36342
|
};
|
|
36108
|
-
})),
|
|
36343
|
+
})), KQ = /* @__PURE__ */ W(((e) => {
|
|
36109
36344
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36110
|
-
var t =
|
|
36345
|
+
var t = AQ(), n = MQ(), r = jQ(), i = NQ(), a = PQ(), o = FQ(), s = IQ(), c = LQ(), l = RQ(), u = zQ(), d = BQ(), f = VQ(), p = HQ(), m = UQ(), h = WQ(), g = GQ();
|
|
36111
36346
|
function _(e = !1) {
|
|
36112
36347
|
let _ = [
|
|
36113
36348
|
d.default,
|
|
@@ -36125,9 +36360,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36125
36360
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
36126
36361
|
}
|
|
36127
36362
|
e.default = _;
|
|
36128
|
-
})),
|
|
36363
|
+
})), qQ = /* @__PURE__ */ W(((e) => {
|
|
36129
36364
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36130
|
-
var t =
|
|
36365
|
+
var t = IZ();
|
|
36131
36366
|
e.default = {
|
|
36132
36367
|
keyword: "format",
|
|
36133
36368
|
type: ["number", "string"],
|
|
@@ -36200,9 +36435,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36200
36435
|
}
|
|
36201
36436
|
}
|
|
36202
36437
|
};
|
|
36203
|
-
})),
|
|
36204
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
36205
|
-
})),
|
|
36438
|
+
})), JQ = /* @__PURE__ */ W(((e) => {
|
|
36439
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [qQ().default];
|
|
36440
|
+
})), YQ = /* @__PURE__ */ W(((e) => {
|
|
36206
36441
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
36207
36442
|
"title",
|
|
36208
36443
|
"description",
|
|
@@ -36216,9 +36451,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36216
36451
|
"contentEncoding",
|
|
36217
36452
|
"contentSchema"
|
|
36218
36453
|
];
|
|
36219
|
-
})),
|
|
36454
|
+
})), XQ = /* @__PURE__ */ W(((e) => {
|
|
36220
36455
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36221
|
-
var t =
|
|
36456
|
+
var t = gQ(), n = kQ(), r = KQ(), i = JQ(), a = YQ();
|
|
36222
36457
|
e.default = [
|
|
36223
36458
|
t.default,
|
|
36224
36459
|
n.default,
|
|
@@ -36227,15 +36462,15 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36227
36462
|
a.metadataVocabulary,
|
|
36228
36463
|
a.contentVocabulary
|
|
36229
36464
|
];
|
|
36230
|
-
})),
|
|
36465
|
+
})), ZQ = /* @__PURE__ */ W(((e) => {
|
|
36231
36466
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
36232
36467
|
var t;
|
|
36233
36468
|
(function(e) {
|
|
36234
36469
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
36235
36470
|
})(t || (e.DiscrError = t = {}));
|
|
36236
|
-
})),
|
|
36471
|
+
})), QQ = /* @__PURE__ */ W(((e) => {
|
|
36237
36472
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36238
|
-
var t =
|
|
36473
|
+
var t = IZ(), n = ZQ(), r = eQ(), i = $Z(), a = LZ();
|
|
36239
36474
|
e.default = {
|
|
36240
36475
|
keyword: "discriminator",
|
|
36241
36476
|
type: "object",
|
|
@@ -36303,16 +36538,16 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36303
36538
|
}
|
|
36304
36539
|
}
|
|
36305
36540
|
};
|
|
36306
|
-
})),
|
|
36307
|
-
$id: () =>
|
|
36308
|
-
$schema: () =>
|
|
36309
|
-
default: () =>
|
|
36310
|
-
definitions: () =>
|
|
36311
|
-
properties: () =>
|
|
36312
|
-
title: () =>
|
|
36313
|
-
type: () =>
|
|
36314
|
-
}),
|
|
36315
|
-
|
|
36541
|
+
})), $Q = /* @__PURE__ */ xe({
|
|
36542
|
+
$id: () => t$,
|
|
36543
|
+
$schema: () => e$,
|
|
36544
|
+
default: () => o$,
|
|
36545
|
+
definitions: () => r$,
|
|
36546
|
+
properties: () => a$,
|
|
36547
|
+
title: () => n$,
|
|
36548
|
+
type: () => i$
|
|
36549
|
+
}), e$, t$, n$, r$, i$, a$, o$, s$ = be((() => {
|
|
36550
|
+
e$ = "http://json-schema.org/draft-07/schema#", t$ = "http://json-schema.org/draft-07/schema#", n$ = "Core schema meta-schema", r$ = {
|
|
36316
36551
|
schemaArray: {
|
|
36317
36552
|
type: "array",
|
|
36318
36553
|
minItems: 1,
|
|
@@ -36338,7 +36573,7 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36338
36573
|
uniqueItems: !0,
|
|
36339
36574
|
default: []
|
|
36340
36575
|
}
|
|
36341
|
-
},
|
|
36576
|
+
}, i$ = ["object", "boolean"], a$ = {
|
|
36342
36577
|
$id: {
|
|
36343
36578
|
type: "string",
|
|
36344
36579
|
format: "uri-reference"
|
|
@@ -36437,18 +36672,18 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36437
36672
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
36438
36673
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
36439
36674
|
not: { $ref: "#" }
|
|
36440
|
-
},
|
|
36441
|
-
$schema:
|
|
36442
|
-
$id:
|
|
36443
|
-
title:
|
|
36444
|
-
definitions:
|
|
36445
|
-
type:
|
|
36446
|
-
properties:
|
|
36675
|
+
}, o$ = {
|
|
36676
|
+
$schema: e$,
|
|
36677
|
+
$id: t$,
|
|
36678
|
+
title: n$,
|
|
36679
|
+
definitions: r$,
|
|
36680
|
+
type: i$,
|
|
36681
|
+
properties: a$,
|
|
36447
36682
|
default: !0
|
|
36448
36683
|
};
|
|
36449
|
-
})),
|
|
36684
|
+
})), c$ = /* @__PURE__ */ W(((e, t) => {
|
|
36450
36685
|
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;
|
|
36451
|
-
var n =
|
|
36686
|
+
var n = pQ(), r = XQ(), i = QQ(), a = (s$(), we($Q).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
36452
36687
|
_addVocabularies() {
|
|
36453
36688
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
36454
36689
|
}
|
|
@@ -36462,14 +36697,14 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36462
36697
|
}
|
|
36463
36698
|
};
|
|
36464
36699
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
36465
|
-
var l =
|
|
36700
|
+
var l = ZZ();
|
|
36466
36701
|
Object.defineProperty(e, "KeywordCxt", {
|
|
36467
36702
|
enumerable: !0,
|
|
36468
36703
|
get: function() {
|
|
36469
36704
|
return l.KeywordCxt;
|
|
36470
36705
|
}
|
|
36471
36706
|
});
|
|
36472
|
-
var u =
|
|
36707
|
+
var u = IZ();
|
|
36473
36708
|
Object.defineProperty(e, "_", {
|
|
36474
36709
|
enumerable: !0,
|
|
36475
36710
|
get: function() {
|
|
@@ -36501,21 +36736,21 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36501
36736
|
return u.CodeGen;
|
|
36502
36737
|
}
|
|
36503
36738
|
});
|
|
36504
|
-
var d =
|
|
36739
|
+
var d = QZ();
|
|
36505
36740
|
Object.defineProperty(e, "ValidationError", {
|
|
36506
36741
|
enumerable: !0,
|
|
36507
36742
|
get: function() {
|
|
36508
36743
|
return d.default;
|
|
36509
36744
|
}
|
|
36510
36745
|
});
|
|
36511
|
-
var f =
|
|
36746
|
+
var f = $Z();
|
|
36512
36747
|
Object.defineProperty(e, "MissingRefError", {
|
|
36513
36748
|
enumerable: !0,
|
|
36514
36749
|
get: function() {
|
|
36515
36750
|
return f.default;
|
|
36516
36751
|
}
|
|
36517
36752
|
});
|
|
36518
|
-
})),
|
|
36753
|
+
})), l$ = /* @__PURE__ */ W(((e) => {
|
|
36519
36754
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
36520
36755
|
function t(e, t) {
|
|
36521
36756
|
return {
|
|
@@ -36667,9 +36902,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36667
36902
|
return !1;
|
|
36668
36903
|
}
|
|
36669
36904
|
}
|
|
36670
|
-
})), $
|
|
36905
|
+
})), u$ = /* @__PURE__ */ W(((e) => {
|
|
36671
36906
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
36672
|
-
var t =
|
|
36907
|
+
var t = c$(), n = IZ(), r = n.operators, i = {
|
|
36673
36908
|
formatMaximum: {
|
|
36674
36909
|
okStr: "<=",
|
|
36675
36910
|
ok: r.LTE,
|
|
@@ -36729,9 +36964,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36729
36964
|
},
|
|
36730
36965
|
dependencies: ["format"]
|
|
36731
36966
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
36732
|
-
})),
|
|
36967
|
+
})), d$ = /* @__PURE__ */ W(((e, t) => {
|
|
36733
36968
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36734
|
-
var n =
|
|
36969
|
+
var n = l$(), r = u$(), i = IZ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
36735
36970
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
36736
36971
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
36737
36972
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -36747,9 +36982,9 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36747
36982
|
for (let r of t) e.addFormat(r, n[r]);
|
|
36748
36983
|
}
|
|
36749
36984
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
36750
|
-
})),
|
|
36985
|
+
})), f$ = /* @__PURE__ */ Ce(c$(), 1), p$ = /* @__PURE__ */ Ce(d$(), 1), m$ = {
|
|
36751
36986
|
required: () => "This field is required",
|
|
36752
|
-
type: (e) => `Should be "${
|
|
36987
|
+
type: (e) => `Should be "${g$(e)}".`,
|
|
36753
36988
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
36754
36989
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
36755
36990
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -36761,63 +36996,63 @@ var CZ = /* @__PURE__ */ W(((e) => {
|
|
|
36761
36996
|
maxItems: (e) => `Should NOT have more than ${e.params.limit} items`,
|
|
36762
36997
|
uniqueItems: () => "Should NOT have duplicate items",
|
|
36763
36998
|
const: (e) => `Should be equal to constant "${e.params.allowedValue}"`,
|
|
36764
|
-
pattern: (e, t) => `${
|
|
36999
|
+
pattern: (e, t) => `${AX(t)} value does not respect the pattern: ${e.params.pattern}`,
|
|
36765
37000
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
36766
37001
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
36767
37002
|
};
|
|
36768
|
-
function
|
|
36769
|
-
let n =
|
|
37003
|
+
function h$(e, t) {
|
|
37004
|
+
let n = m$[e.keyword];
|
|
36770
37005
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
36771
37006
|
}
|
|
36772
|
-
function
|
|
37007
|
+
function g$(e) {
|
|
36773
37008
|
let t = e.params.type;
|
|
36774
37009
|
return String(Array.isArray(t) ? t[0] : t);
|
|
36775
37010
|
}
|
|
36776
37011
|
//#endregion
|
|
36777
37012
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
36778
|
-
function
|
|
37013
|
+
function _$(e, t, n) {
|
|
36779
37014
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
36780
37015
|
for (let e of r) {
|
|
36781
37016
|
if (!i) return {
|
|
36782
37017
|
node: void 0,
|
|
36783
37018
|
value: void 0
|
|
36784
37019
|
};
|
|
36785
|
-
i =
|
|
37020
|
+
i = v$(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);
|
|
36786
37021
|
}
|
|
36787
37022
|
return i ? {
|
|
36788
|
-
node:
|
|
37023
|
+
node: y$(v$(i, a, n, r), r),
|
|
36789
37024
|
value: a
|
|
36790
37025
|
} : {
|
|
36791
37026
|
node: void 0,
|
|
36792
37027
|
value: a
|
|
36793
37028
|
};
|
|
36794
37029
|
}
|
|
36795
|
-
function
|
|
36796
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
37030
|
+
function v$(e, t, n, r) {
|
|
37031
|
+
let i = new Map(e.properties), a = e.variants ? S$(e.variants, t) : void 0;
|
|
36797
37032
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
36798
37033
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
36799
37034
|
if (o.length > 0) {
|
|
36800
|
-
for (let e of o) if (
|
|
37035
|
+
for (let e of o) if (b$(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
36801
37036
|
}
|
|
36802
37037
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
36803
37038
|
...e,
|
|
36804
37039
|
properties: i
|
|
36805
37040
|
} : e;
|
|
36806
37041
|
}
|
|
36807
|
-
function
|
|
37042
|
+
function y$(e, t) {
|
|
36808
37043
|
return e.displayIf ? {
|
|
36809
37044
|
...e,
|
|
36810
|
-
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [
|
|
37045
|
+
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [pX(e, t), n])) }
|
|
36811
37046
|
} : e;
|
|
36812
37047
|
}
|
|
36813
|
-
function
|
|
37048
|
+
function b$(e, t, n) {
|
|
36814
37049
|
for (let [r, i] of e) {
|
|
36815
|
-
let e =
|
|
37050
|
+
let e = x$(t, pX(r, n).split("."));
|
|
36816
37051
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
36817
37052
|
}
|
|
36818
37053
|
return !0;
|
|
36819
37054
|
}
|
|
36820
|
-
function
|
|
37055
|
+
function x$(e, t) {
|
|
36821
37056
|
let n = e;
|
|
36822
37057
|
for (let e of t) {
|
|
36823
37058
|
if (typeof n != "object" || !n) return;
|
|
@@ -36825,25 +37060,25 @@ function u$(e, t) {
|
|
|
36825
37060
|
}
|
|
36826
37061
|
return n;
|
|
36827
37062
|
}
|
|
36828
|
-
function
|
|
37063
|
+
function S$(e, t) {
|
|
36829
37064
|
if (typeof t != "object" || !t) return;
|
|
36830
37065
|
let n = t;
|
|
36831
37066
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
36832
37067
|
}
|
|
36833
37068
|
//#endregion
|
|
36834
37069
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
36835
|
-
var
|
|
37070
|
+
var C$ = new f$.default({
|
|
36836
37071
|
strict: !1,
|
|
36837
37072
|
allErrors: !0
|
|
36838
37073
|
});
|
|
36839
|
-
(0,
|
|
37074
|
+
(0, p$.default)(C$), C$.removeKeyword("id"), C$.addKeyword({
|
|
36840
37075
|
keyword: "id",
|
|
36841
37076
|
validate: () => !0
|
|
36842
37077
|
});
|
|
36843
|
-
function
|
|
37078
|
+
function w$(e, t = {}) {
|
|
36844
37079
|
let n;
|
|
36845
37080
|
try {
|
|
36846
|
-
n =
|
|
37081
|
+
n = xZ(e);
|
|
36847
37082
|
} catch (e) {
|
|
36848
37083
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
36849
37084
|
return () => ({
|
|
@@ -36856,7 +37091,7 @@ function p$(e, t = {}) {
|
|
|
36856
37091
|
}
|
|
36857
37092
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
36858
37093
|
try {
|
|
36859
|
-
a =
|
|
37094
|
+
a = C$.compile(r);
|
|
36860
37095
|
} catch (e) {
|
|
36861
37096
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
36862
37097
|
return () => ({
|
|
@@ -36867,15 +37102,15 @@ function p$(e, t = {}) {
|
|
|
36867
37102
|
} }
|
|
36868
37103
|
});
|
|
36869
37104
|
}
|
|
36870
|
-
|
|
37105
|
+
C$.removeSchema(r);
|
|
36871
37106
|
let o = async (e, t, r) => {
|
|
36872
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
37107
|
+
let o = a(e) ? [] : a.errors ?? [], s = j$(n.root, e, "", i), c = [...o, ...s];
|
|
36873
37108
|
return c.length === 0 ? {
|
|
36874
37109
|
values: e,
|
|
36875
37110
|
errors: {}
|
|
36876
37111
|
} : {
|
|
36877
37112
|
values: {},
|
|
36878
|
-
errors:
|
|
37113
|
+
errors: O$(D$(c.filter((t) => !T$(t, n, e))), r.criteriaMode ?? "firstError")
|
|
36879
37114
|
};
|
|
36880
37115
|
};
|
|
36881
37116
|
if (!t.basePath) return o;
|
|
@@ -36891,12 +37126,12 @@ function p$(e, t = {}) {
|
|
|
36891
37126
|
};
|
|
36892
37127
|
};
|
|
36893
37128
|
}
|
|
36894
|
-
function
|
|
36895
|
-
let { node: r, value: i } =
|
|
37129
|
+
function T$(e, t, n) {
|
|
37130
|
+
let { node: r, value: i } = _$(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(SX) : []).join("."), n);
|
|
36896
37131
|
if (!r) return !1;
|
|
36897
37132
|
switch (e.keyword) {
|
|
36898
37133
|
case "const":
|
|
36899
|
-
case "enum": return
|
|
37134
|
+
case "enum": return E$(r.schema, i);
|
|
36900
37135
|
case "required": {
|
|
36901
37136
|
let t = e.params.missingProperty;
|
|
36902
37137
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -36904,46 +37139,46 @@ function m$(e, t, n) {
|
|
|
36904
37139
|
default: return !1;
|
|
36905
37140
|
}
|
|
36906
37141
|
}
|
|
36907
|
-
function
|
|
37142
|
+
function E$(e, t) {
|
|
36908
37143
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
36909
37144
|
}
|
|
36910
|
-
function
|
|
37145
|
+
function D$(e) {
|
|
36911
37146
|
return e.filter((t) => {
|
|
36912
37147
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
36913
|
-
let n =
|
|
37148
|
+
let n = k$(t), r = n === "" ? "" : `${n}.`;
|
|
36914
37149
|
return !e.some((e) => {
|
|
36915
37150
|
if (e === t) return !1;
|
|
36916
|
-
let i =
|
|
37151
|
+
let i = k$(e);
|
|
36917
37152
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
36918
37153
|
});
|
|
36919
37154
|
});
|
|
36920
37155
|
}
|
|
36921
|
-
function
|
|
37156
|
+
function O$(e, t) {
|
|
36922
37157
|
let n = /* @__PURE__ */ new Map();
|
|
36923
37158
|
for (let t of e) {
|
|
36924
|
-
let e =
|
|
37159
|
+
let e = k$(t), r = n.get(e) ?? [];
|
|
36925
37160
|
r.push(t), n.set(e, r);
|
|
36926
37161
|
}
|
|
36927
37162
|
let r = {};
|
|
36928
37163
|
for (let [e, i] of n) {
|
|
36929
37164
|
let n = {
|
|
36930
37165
|
type: i[0].keyword,
|
|
36931
|
-
message:
|
|
37166
|
+
message: h$(i[0], e)
|
|
36932
37167
|
};
|
|
36933
37168
|
if (t === "all" && i.length > 0) {
|
|
36934
37169
|
let t = {};
|
|
36935
|
-
for (let n of i) t[n.keyword] =
|
|
37170
|
+
for (let n of i) t[n.keyword] = h$(n, e);
|
|
36936
37171
|
n.types = t;
|
|
36937
37172
|
}
|
|
36938
|
-
|
|
37173
|
+
A$(r, e === "" ? "root" : e, n);
|
|
36939
37174
|
}
|
|
36940
37175
|
return r;
|
|
36941
37176
|
}
|
|
36942
|
-
function
|
|
36943
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
37177
|
+
function k$(e) {
|
|
37178
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(SX) : [];
|
|
36944
37179
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
36945
37180
|
}
|
|
36946
|
-
function
|
|
37181
|
+
function A$(e, t, n) {
|
|
36947
37182
|
let r = t.split("."), i = e;
|
|
36948
37183
|
for (let e = 0; e < r.length - 1; e++) {
|
|
36949
37184
|
let t = r[e];
|
|
@@ -36951,7 +37186,7 @@ function y$(e, t, n) {
|
|
|
36951
37186
|
}
|
|
36952
37187
|
i[r[r.length - 1]] = n;
|
|
36953
37188
|
}
|
|
36954
|
-
function
|
|
37189
|
+
function j$(e, t, n, r) {
|
|
36955
37190
|
if (!e) return [];
|
|
36956
37191
|
let i = [];
|
|
36957
37192
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -36968,18 +37203,18 @@ function b$(e, t, n, r) {
|
|
|
36968
37203
|
}
|
|
36969
37204
|
}
|
|
36970
37205
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
36971
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
37206
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...j$(o, t[a], `${n}/${xX(a)}`, r));
|
|
36972
37207
|
if (e.variants && e.variants.length > 0 && a) {
|
|
36973
|
-
let a = t, o =
|
|
36974
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
37208
|
+
let a = t, o = rZ(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
37209
|
+
if (s) for (let [e, t] of s.properties) i.push(...j$(t, a[e], `${n}/${xX(e)}`, r));
|
|
36975
37210
|
}
|
|
36976
37211
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
36977
|
-
i.push(...
|
|
37212
|
+
i.push(...j$(e.items, t, `${n}/${a}`, r));
|
|
36978
37213
|
}), i;
|
|
36979
37214
|
}
|
|
36980
37215
|
//#endregion
|
|
36981
37216
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
36982
|
-
var
|
|
37217
|
+
var M$ = {
|
|
36983
37218
|
navigation: null,
|
|
36984
37219
|
contextSidebar: null,
|
|
36985
37220
|
breadcrumbs: [],
|
|
@@ -36987,9 +37222,9 @@ var x$ = {
|
|
|
36987
37222
|
viewMode: "global",
|
|
36988
37223
|
contextExpanded: !0,
|
|
36989
37224
|
contentVariant: "default"
|
|
36990
|
-
},
|
|
36991
|
-
function
|
|
36992
|
-
let [t, n] = V(
|
|
37225
|
+
}, N$ = M(null);
|
|
37226
|
+
function P$({ children: e }) {
|
|
37227
|
+
let [t, n] = V(M$), r = F((e, t) => {
|
|
36993
37228
|
n((n) => ({
|
|
36994
37229
|
...n,
|
|
36995
37230
|
[e]: t
|
|
@@ -37001,7 +37236,7 @@ function C$({ children: e }) {
|
|
|
37001
37236
|
}));
|
|
37002
37237
|
}, []), a = F((e) => {
|
|
37003
37238
|
n((t) => {
|
|
37004
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
37239
|
+
let n = Object.fromEntries(e.map((e) => [e, M$[e]]));
|
|
37005
37240
|
return {
|
|
37006
37241
|
...t,
|
|
37007
37242
|
...n
|
|
@@ -37018,20 +37253,20 @@ function C$({ children: e }) {
|
|
|
37018
37253
|
i,
|
|
37019
37254
|
a
|
|
37020
37255
|
]);
|
|
37021
|
-
return /* @__PURE__ */ H(
|
|
37256
|
+
return /* @__PURE__ */ H(N$.Provider, {
|
|
37022
37257
|
value: o,
|
|
37023
37258
|
children: e
|
|
37024
37259
|
});
|
|
37025
37260
|
}
|
|
37026
|
-
function
|
|
37027
|
-
let e = I(
|
|
37261
|
+
function F$() {
|
|
37262
|
+
let e = I(N$);
|
|
37028
37263
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
37029
37264
|
return e;
|
|
37030
37265
|
}
|
|
37031
37266
|
//#endregion
|
|
37032
37267
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
37033
|
-
function
|
|
37034
|
-
let { setSlots: n, resetSlots: r } =
|
|
37268
|
+
function I$(e, t = []) {
|
|
37269
|
+
let { setSlots: n, resetSlots: r } = F$();
|
|
37035
37270
|
R(() => {
|
|
37036
37271
|
n(e);
|
|
37037
37272
|
let t = Object.keys(e);
|
|
@@ -37046,7 +37281,7 @@ function T$(e, t = []) {
|
|
|
37046
37281
|
}
|
|
37047
37282
|
//#endregion
|
|
37048
37283
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
37049
|
-
var
|
|
37284
|
+
var L$ = [
|
|
37050
37285
|
{
|
|
37051
37286
|
value: "light",
|
|
37052
37287
|
label: "Light"
|
|
@@ -37060,7 +37295,7 @@ var E$ = [
|
|
|
37060
37295
|
label: "System"
|
|
37061
37296
|
}
|
|
37062
37297
|
];
|
|
37063
|
-
function
|
|
37298
|
+
function R$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSignOut: a }) {
|
|
37064
37299
|
let o = r ?? e.slice(0, 2).toUpperCase(), { mode: s, setMode: c } = D();
|
|
37065
37300
|
return /* @__PURE__ */ U(WL, { children: [/* @__PURE__ */ H(KL, {
|
|
37066
37301
|
asChild: !0,
|
|
@@ -37089,7 +37324,7 @@ function D$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
37089
37324
|
/* @__PURE__ */ H(ZL, {
|
|
37090
37325
|
value: s,
|
|
37091
37326
|
onValueChange: (e) => c(e),
|
|
37092
|
-
children:
|
|
37327
|
+
children: L$.map((e) => /* @__PURE__ */ H(QL, {
|
|
37093
37328
|
value: e.value,
|
|
37094
37329
|
children: e.label
|
|
37095
37330
|
}, e.value))
|
|
@@ -37102,6 +37337,6 @@ function D$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
37102
37337
|
]
|
|
37103
37338
|
})] });
|
|
37104
37339
|
}
|
|
37105
|
-
|
|
37340
|
+
R$.displayName = "TopNavUser";
|
|
37106
37341
|
//#endregion
|
|
37107
|
-
export { Vy as Accordion, Wy as AccordionContent, Hy as AccordionItem, Uy as AccordionTrigger, Yy as Alert, Qy as AlertAction, Zy as AlertDescription, Xy as AlertTitle, lG as AppContextBar, yG as AppLayout, CG as AppSidebar, oG as AppSwitcher, $y as Avatar, nb as AvatarBadge, tb as AvatarFallback, rb as AvatarGroup, ib as AvatarGroupCount, eb as AvatarImage, ob as Badge, sb as Breadcrumb, pb as BreadcrumbEllipsis, lb as BreadcrumbItem, ub as BreadcrumbLink, cb as BreadcrumbList, db as BreadcrumbPage, fb as BreadcrumbSeparator, hb as Button, vb as ButtonGroup, bb as ButtonGroupSeparator, yb as ButtonGroupText, Nw as Calendar, Pw as CalendarDayButton, Fw as Card, zw as CardAction, Bw as CardContent, Rw as CardDescription, Vw as CardFooter, Iw as CardHeader, Lw as CardTitle, Hw as Checkbox, Uw as Collapsible, Gw as CollapsibleContent, Ww as CollapsibleTrigger, uM as Combobox, wM as ComboboxChip, CM as ComboboxChips, TM as ComboboxChipsInput, bM as ComboboxCollection, hM as ComboboxContent, xM as ComboboxEmpty, vM as ComboboxGroup, mM as ComboboxInput, _M as ComboboxItem, yM as ComboboxLabel, gM as ComboboxList, SM as ComboboxSeparator, fM as ComboboxTrigger, dM as ComboboxValue, aI as Command, oI as CommandDialog, lI as CommandEmpty, uI as CommandGroup, sI as CommandInput, fI as CommandItem, cI as CommandList, dI as CommandSeparator, pI as CommandShortcut, OG as ContentHeader, mI as ContextMenu, wI as ContextMenuCheckboxItem, bI as ContextMenuContent, gI as ContextMenuGroup, xI as ContextMenuItem, EI as ContextMenuLabel, _I as ContextMenuPortal, yI as ContextMenuRadioGroup, TI as ContextMenuRadioItem, DI as ContextMenuSeparator, OI as ContextMenuShortcut, vI as ContextMenuSub, CI as ContextMenuSubContent, SI as ContextMenuSubTrigger, hI as ContextMenuTrigger, TG as ContextSidebar, EG as ContextToggleButton, kG as CopyableText,
|
|
37342
|
+
export { Vy as Accordion, Wy as AccordionContent, Hy as AccordionItem, Uy as AccordionTrigger, Yy as Alert, Qy as AlertAction, Zy as AlertDescription, Xy as AlertTitle, lG as AppContextBar, yG as AppLayout, CG as AppSidebar, oG as AppSwitcher, $y as Avatar, nb as AvatarBadge, tb as AvatarFallback, rb as AvatarGroup, ib as AvatarGroupCount, eb as AvatarImage, ob as Badge, yq as BadgeCell, sb as Breadcrumb, pb as BreadcrumbEllipsis, lb as BreadcrumbItem, ub as BreadcrumbLink, cb as BreadcrumbList, db as BreadcrumbPage, fb as BreadcrumbSeparator, hb as Button, vb as ButtonGroup, bb as ButtonGroupSeparator, yb as ButtonGroupText, Nw as Calendar, Pw as CalendarDayButton, Fw as Card, zw as CardAction, Bw as CardContent, Rw as CardDescription, Vw as CardFooter, Iw as CardHeader, Lw as CardTitle, Hw as Checkbox, Uw as Collapsible, Gw as CollapsibleContent, Ww as CollapsibleTrigger, uM as Combobox, wM as ComboboxChip, CM as ComboboxChips, TM as ComboboxChipsInput, bM as ComboboxCollection, hM as ComboboxContent, xM as ComboboxEmpty, vM as ComboboxGroup, mM as ComboboxInput, _M as ComboboxItem, yM as ComboboxLabel, gM as ComboboxList, SM as ComboboxSeparator, fM as ComboboxTrigger, dM as ComboboxValue, aI as Command, oI as CommandDialog, lI as CommandEmpty, uI as CommandGroup, sI as CommandInput, fI as CommandItem, cI as CommandList, dI as CommandSeparator, pI as CommandShortcut, OG as ContentHeader, mI as ContextMenu, wI as ContextMenuCheckboxItem, bI as ContextMenuContent, gI as ContextMenuGroup, xI as ContextMenuItem, EI as ContextMenuLabel, _I as ContextMenuPortal, yI as ContextMenuRadioGroup, TI as ContextMenuRadioItem, DI as ContextMenuSeparator, OI as ContextMenuShortcut, vI as ContextMenuSub, CI as ContextMenuSubContent, SI as ContextMenuSubTrigger, hI as ContextMenuTrigger, TG as ContextSidebar, EG as ContextToggleButton, xq as CopyableCell, kG as CopyableText, M$ as DEFAULT_SLOTS, dq as DataTable, fq as DataTableColumnHeader, Cq as DataTableEmptyState, iq as DataTablePagination, aq as DataTableViewOptions, vq as DateCell, MJ as DatePicker, NJ as DateRangePicker, IJ as DateTimePicker, zJ as DateTimeRangePicker, YF as Dialog, QF as DialogClose, eI as DialogContent, iI as DialogDescription, nI as DialogFooter, tI as DialogHeader, $F as DialogOverlay, ZF as DialogPortal, rI as DialogTitle, XF as DialogTrigger, PL as Drawer, LL as DrawerClose, zL as DrawerContent, UL as DrawerDescription, VL as DrawerFooter, BL as DrawerHeader, RL as DrawerOverlay, IL as DrawerPortal, HL as DrawerTitle, FL as DrawerTrigger, WL as DropdownMenu, XL as DropdownMenuCheckboxItem, qL as DropdownMenuContent, JL as DropdownMenuGroup, YL as DropdownMenuItem, $L as DropdownMenuLabel, GL as DropdownMenuPortal, ZL as DropdownMenuRadioGroup, QL as DropdownMenuRadioItem, eR as DropdownMenuSeparator, tR as DropdownMenuShortcut, nR as DropdownMenuSub, iR as DropdownMenuSubContent, rR as DropdownMenuSubTrigger, KL as DropdownMenuTrigger, aR as Empty, dR as EmptyContent, uR as EmptyDescription, oR as EmptyHeader, cR as EmptyMedia, lR as EmptyTitle, BJ as FacetedFilter, _R as Field, vR as FieldContent, xR as FieldDescription, CR as FieldError, hR as FieldGroup, yR as FieldLabel, mR as FieldLegend, SR as FieldSeparator, pR as FieldSet, bR as FieldTitle, GJ as FileUpload, _B as FileUploadInput, WJ as FileUploadItem, vB as HoverCard, bB as HoverCardContent, CB as HoverCardDescription, xB as HoverCardHeader, SB as HoverCardTitle, yB as HoverCardTrigger, eM as Input, nM as InputGroup, iM as InputGroupAddon, oM as InputGroupButton, cM as InputGroupInput, sM as InputGroupText, lM as InputGroupTextarea, DB as Item, NB as ItemActions, AB as ItemContent, MB as ItemDescription, FB as ItemFooter, wB as ItemGroup, PB as ItemHeader, kB as ItemMedia, TB as ItemSeparator, jB as ItemTitle, MZ as JsonSchemaForm, IB as Kbd, LB as KbdGroup, fR as Label, P$ as LayoutSlotsProvider, bq as MonoCell, RB as Pagination, zB as PaginationContent, WB as PaginationEllipsis, BB as PaginationItem, VB as PaginationLink, UB as PaginationNext, HB as PaginationPrevious, fZ as PasswordInput, GB as Popover, JB as PopoverAnchor, qB as PopoverContent, ZB as PopoverDescription, YB as PopoverHeader, XB as PopoverTitle, KB as PopoverTrigger, en as PortalContainerProvider, QB as Progress, eV as Prose, tV as RadioGroup, nV as RadioGroupItem, QH as ResizableHandle, ZH as ResizablePanel, XH as ResizablePanelGroup, $H as ScrollArea, eU as ScrollBar, tU as Select, aU as SelectContent, nU as SelectGroup, sU as SelectItem, oU as SelectLabel, uU as SelectScrollDownButton, lU as SelectScrollUpButton, cU as SelectSeparator, iU as SelectTrigger, rU as SelectValue, sG as SelectorDropdown, cG as SelectorTriggerButton, gb as Separator, dU as Sheet, pU as SheetClose, gU as SheetContent, bU as SheetDescription, vU as SheetFooter, _U as SheetHeader, yU as SheetTitle, fU as SheetTrigger, BU as Sidebar, JU as SidebarContent, KU as SidebarFooter, YU as SidebarGroup, ZU as SidebarGroupAction, QU as SidebarGroupContent, XU as SidebarGroupLabel, GU as SidebarHeader, WU as SidebarInput, UU as SidebarInset, $U as SidebarMenu, rW as SidebarMenuAction, iW as SidebarMenuBadge, nW as SidebarMenuButton, eW as SidebarMenuItem, aW as SidebarMenuSkeleton, oW as SidebarMenuSub, cW as SidebarMenuSubButton, sW as SidebarMenuSubItem, _G as SidebarModeControl, hG as SidebarModeProvider, wG as SidebarNavigation, zU as SidebarProvider, HU as SidebarRail, qU as SidebarSeparator, VU as SidebarTrigger, xU as Skeleton, BW as Spinner, VW as Switch, HW as Table, WW as TableBody, YW as TableCaption, JW as TableCell, GW as TableFooter, qW as TableHead, UW as TableHeader, KW as TableRow, XW as Tabs, eG as TabsContent, QW as TabsList, $W as TabsTrigger, tM as Textarea, O as ThemeProvider, zW as Toaster, nG as Toggle, iG as ToggleGroup, aG as ToggleGroupItem, CU as Tooltip, TU as TooltipContent, SU as TooltipProvider, wU as TooltipTrigger, R$ as TopNavUser, Sq as TruncatedCell, Jy as alertVariants, ab as badgeVariants, AG as buildLinearBreadcrumbs, _b as buttonGroupVariants, mb as buttonVariants, q as cn, NZ as composeResolvers, EX as extractDefaults, w$ as jsonSchemaResolver, ZW as tabsListVariants, CW as toast, tG as toggleVariants, EM as useComboboxAnchor, I$ as useLayoutConfig, F$ as useLayoutSlots, tn as usePortalContainer, RU as useSidebar, fG as useSidebarMode, D as useTheme };
|