@gravitee/graphene-core 2.41.0-renovate-all-devdependencies-minor-patch.8eab3a1 → 2.41.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { $ as e, A as t, At as n, D as r, Kt as i, M as a, Nt as o, O as s, P as c, Pt as l, Q as u, Qt as d, T as f, W as p, Z as m, bn as h, c as g, f as _, j as v, k as y, ln as b, p as x, pt as S, sn as C, tt as w, xt as T, zt as E } from "./icons-
|
|
2
|
-
import { n as D, t as O } from "./ThemeProvider-
|
|
1
|
+
import { $ as e, A as t, At as n, D as r, Kt as i, M as a, Nt as o, O as s, P as c, Pt as l, Q as u, Qt as d, T as f, W as p, Z as m, bn as h, c as g, f as _, j as v, k as y, ln as b, p as x, pt as S, sn as C, tt as w, xt as T, zt as E } from "./icons-D_4R9XrW.js";
|
|
2
|
+
import { n as D, t as O } from "./ThemeProvider-C_Ea8dI-.js";
|
|
3
3
|
import * as k from "react";
|
|
4
4
|
import A, { Fragment as j, createContext as M, createElement as N, forwardRef as P, useCallback as F, useContext as I, useDebugValue as L, useEffect as R, useId as ee, useImperativeHandle as te, useLayoutEffect as z, useMemo as B, useReducer as ne, useRef as re, useState as V, useSyncExternalStore as ie, useSyncExternalStore as ae } from "react";
|
|
5
5
|
import { Fragment as oe, jsx as H, jsxs as U } from "react/jsx-runtime";
|
|
@@ -276,7 +276,7 @@ var De = (e, t) => {
|
|
|
276
276
|
}, Ut = (e, t, n = !1) => {
|
|
277
277
|
let r = ct.exec(e);
|
|
278
278
|
return r ? r[1] ? t(r[1]) : n : !1;
|
|
279
|
-
}, Wt = (e) => e === "position" || e === "percentage", Gt = (e) => e === "image" || e === "url", Kt = (e) => e === "length" || e === "size" || e === "bg-size", qt = (e) => e === "length", Jt = (e) => e === "number", Yt = (e) => e === "family-name", Xt = (e) => e === "number" || e === "weight", Zt = (e) => e === "shadow", Qt =
|
|
279
|
+
}, Wt = (e) => e === "position" || e === "percentage", Gt = (e) => e === "image" || e === "url", Kt = (e) => e === "length" || e === "size" || e === "bg-size", qt = (e) => e === "length", Jt = (e) => e === "number", Yt = (e) => e === "family-name", Xt = (e) => e === "number" || e === "weight", Zt = (e) => e === "shadow", Qt = /* @__PURE__ */ it(() => {
|
|
280
280
|
let e = ot("color"), t = ot("font"), n = ot("text"), r = ot("font-weight"), i = ot("tracking"), a = ot("leading"), o = ot("breakpoint"), s = ot("container"), c = ot("spacing"), l = ot("radius"), u = ot("shadow"), d = ot("inset-shadow"), f = ot("text-shadow"), p = ot("drop-shadow"), m = ot("blur"), h = ot("perspective"), g = ot("aspect"), _ = ot("ease"), v = ot("animate"), y = () => [
|
|
281
281
|
"auto",
|
|
282
282
|
"avoid",
|
|
@@ -1801,7 +1801,7 @@ function an(...e) {
|
|
|
1801
1801
|
}
|
|
1802
1802
|
//#endregion
|
|
1803
1803
|
//#region ../../node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
1804
|
-
|
|
1804
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1805
1805
|
function on(e) {
|
|
1806
1806
|
let t = /* @__PURE__ */ cn(e), n = k.forwardRef((e, n) => {
|
|
1807
1807
|
let { children: r, ...i } = e, a = k.Children.toArray(r), o = a.find(dn);
|
|
@@ -1822,7 +1822,7 @@ function on(e) {
|
|
|
1822
1822
|
return n.displayName = `${e}.Slot`, n;
|
|
1823
1823
|
}
|
|
1824
1824
|
var sn = /* @__PURE__ */ on("Slot");
|
|
1825
|
-
|
|
1825
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1826
1826
|
function cn(e) {
|
|
1827
1827
|
let t = k.forwardRef((e, t) => {
|
|
1828
1828
|
let { children: n, ...r } = e;
|
|
@@ -1835,7 +1835,7 @@ function cn(e) {
|
|
|
1835
1835
|
return t.displayName = `${e}.SlotClone`, t;
|
|
1836
1836
|
}
|
|
1837
1837
|
var ln = Symbol("radix.slottable");
|
|
1838
|
-
|
|
1838
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
1839
1839
|
function un(e) {
|
|
1840
1840
|
let t = ({ children: e }) => /* @__PURE__ */ H(oe, { children: e });
|
|
1841
1841
|
return t.displayName = `${e}.Slottable`, t.__radixId = ln, t;
|
|
@@ -3878,7 +3878,7 @@ var Qo = function(e) {
|
|
|
3878
3878
|
}
|
|
3879
3879
|
}
|
|
3880
3880
|
};
|
|
3881
|
-
}, $o =
|
|
3881
|
+
}, $o = /* @__PURE__ */ new Set(["left", "top"]);
|
|
3882
3882
|
async function es(e, t) {
|
|
3883
3883
|
let { placement: n, platform: r, elements: i } = e, a = await (r.isRTL == null ? void 0 : r.isRTL(i.floating)), o = To(n), s = Eo(n), c = ko(n) === "y", l = $o.has(o) ? -1 : 1, u = a && c ? -1 : 1, d = wo(t, e), { mainAxis: f, crossAxis: p, alignmentAxis: m } = typeof d == "number" ? {
|
|
3884
3884
|
mainAxis: d,
|
|
@@ -4125,7 +4125,7 @@ function Ms(e) {
|
|
|
4125
4125
|
y: s
|
|
4126
4126
|
};
|
|
4127
4127
|
}
|
|
4128
|
-
var Ns =
|
|
4128
|
+
var Ns = /* @__PURE__ */ xo(0);
|
|
4129
4129
|
function Ps(e) {
|
|
4130
4130
|
let t = ss(e);
|
|
4131
4131
|
return !Ss() || !t.visualViewport ? Ns : {
|
|
@@ -12158,7 +12158,7 @@ function iT(...e) {
|
|
|
12158
12158
|
}
|
|
12159
12159
|
//#endregion
|
|
12160
12160
|
//#region ../../node_modules/@base-ui/react/esm/internals/composite/list/CompositeListContext.js
|
|
12161
|
-
var aT =
|
|
12161
|
+
var aT = /* @__PURE__ */ k.createContext({
|
|
12162
12162
|
register: () => {},
|
|
12163
12163
|
unregister: () => {},
|
|
12164
12164
|
subscribeMapChange: () => () => {},
|
|
@@ -12233,7 +12233,7 @@ function sT(e) {
|
|
|
12233
12233
|
r,
|
|
12234
12234
|
o
|
|
12235
12235
|
]);
|
|
12236
|
-
return
|
|
12236
|
+
return /* @__PURE__ */ H(aT.Provider, {
|
|
12237
12237
|
value: g,
|
|
12238
12238
|
children: t
|
|
12239
12239
|
});
|
|
@@ -12250,7 +12250,7 @@ function uT(e, t) {
|
|
|
12250
12250
|
}
|
|
12251
12251
|
//#endregion
|
|
12252
12252
|
//#region ../../node_modules/@base-ui/react/esm/internals/direction-context/DirectionContext.js
|
|
12253
|
-
var dT =
|
|
12253
|
+
var dT = /* @__PURE__ */ k.createContext(void 0);
|
|
12254
12254
|
process.env.NODE_ENV !== "production" && (dT.displayName = "DirectionContext");
|
|
12255
12255
|
function fT() {
|
|
12256
12256
|
return k.useContext(dT)?.direction ?? "ltr";
|
|
@@ -12342,7 +12342,7 @@ function ST(e) {
|
|
|
12342
12342
|
//#endregion
|
|
12343
12343
|
//#region ../../node_modules/@base-ui/utils/esm/getReactElementRef.js
|
|
12344
12344
|
function CT(e) {
|
|
12345
|
-
if (
|
|
12345
|
+
if (!/* @__PURE__ */ k.isValidElement(e)) return null;
|
|
12346
12346
|
let t = e, n = t.props;
|
|
12347
12347
|
return (ST(19) ? n?.ref : t.ref) ?? null;
|
|
12348
12348
|
}
|
|
@@ -12494,12 +12494,12 @@ function QT(e, t, n, r) {
|
|
|
12494
12494
|
let e = MT(n, t.props);
|
|
12495
12495
|
e.ref = n.ref;
|
|
12496
12496
|
let i = t;
|
|
12497
|
-
if (i?.$$typeof === YT && (i = k.Children.toArray(t)[0]), process.env.NODE_ENV !== "production" &&
|
|
12497
|
+
if (i?.$$typeof === YT && (i = k.Children.toArray(t)[0]), process.env.NODE_ENV !== "production" && !/* @__PURE__ */ k.isValidElement(i)) throw Error([
|
|
12498
12498
|
"Base UI: The `render` prop was provided an invalid React element as `React.isValidElement(render)` is `false`.",
|
|
12499
12499
|
"A valid React element must be provided to the `render` prop because it is cloned with props to replace the default element.",
|
|
12500
12500
|
"https://base-ui.com/r/invalid-render-prop"
|
|
12501
12501
|
].join("\n"));
|
|
12502
|
-
return
|
|
12502
|
+
return /* @__PURE__ */ k.cloneElement(i, e);
|
|
12503
12503
|
}
|
|
12504
12504
|
if (e && typeof e == "string") return eE(e, n);
|
|
12505
12505
|
throw Error(process.env.NODE_ENV === "production" ? mT(8) : "Base UI: Render element or function are not defined.");
|
|
@@ -12509,15 +12509,15 @@ function $T(e) {
|
|
|
12509
12509
|
t.length !== 0 && XT.test(t) && ZT.test(t) && iT(`The \`render\` prop received a function named \`${t}\` that starts with an uppercase letter.`, "This usually means a React component was passed directly as `render={Component}`.", "Base UI calls `render` as a plain function, which can break the Rules of Hooks during reconciliation.", "If this is an intentional render callback, rename it to start with a lowercase letter.", "Use `render={<Component />}` or `render={(props) => <Component {...props} />}` instead.", "https://base-ui.com/r/invalid-render-prop");
|
|
12510
12510
|
}
|
|
12511
12511
|
function eE(e, t) {
|
|
12512
|
-
return e === "button" ?
|
|
12512
|
+
return e === "button" ? /* @__PURE__ */ N("button", {
|
|
12513
12513
|
type: "button",
|
|
12514
12514
|
...t,
|
|
12515
12515
|
key: t.key
|
|
12516
|
-
}) : e === "img" ?
|
|
12516
|
+
}) : e === "img" ? /* @__PURE__ */ N("img", {
|
|
12517
12517
|
alt: "",
|
|
12518
12518
|
...t,
|
|
12519
12519
|
key: t.key
|
|
12520
|
-
}) :
|
|
12520
|
+
}) : /* @__PURE__ */ k.createElement(e, t);
|
|
12521
12521
|
}
|
|
12522
12522
|
//#endregion
|
|
12523
12523
|
//#region ../../node_modules/@base-ui/react/esm/internals/reason-parts.js
|
|
@@ -12636,7 +12636,7 @@ function kE(e) {
|
|
|
12636
12636
|
}
|
|
12637
12637
|
//#endregion
|
|
12638
12638
|
//#region ../../node_modules/@base-ui/react/esm/internals/stateAttributesMapping.js
|
|
12639
|
-
var AE =
|
|
12639
|
+
var AE = /* @__PURE__ */ function(e) {
|
|
12640
12640
|
return e.startingStyle = "data-starting-style", e.endingStyle = "data-ending-style", e;
|
|
12641
12641
|
}({}), jE = { [AE.startingStyle]: "" }, ME = { [AE.endingStyle]: "" }, NE = { transitionStatus(e) {
|
|
12642
12642
|
return e === "starting" ? jE : e === "ending" ? ME : null;
|
|
@@ -12734,7 +12734,7 @@ function FE(e, t = !1, n = !1) {
|
|
|
12734
12734
|
}
|
|
12735
12735
|
//#endregion
|
|
12736
12736
|
//#region ../../node_modules/@base-ui/react/esm/internals/composite/list/useCompositeListItem.js
|
|
12737
|
-
var IE =
|
|
12737
|
+
var IE = /* @__PURE__ */ function(e) {
|
|
12738
12738
|
return e[e.None = 0] = "None", e[e.GuessFromOrder = 1] = "GuessFromOrder", e;
|
|
12739
12739
|
}({});
|
|
12740
12740
|
function LE(e = {}) {
|
|
@@ -12783,7 +12783,7 @@ function LE(e = {}) {
|
|
|
12783
12783
|
}
|
|
12784
12784
|
//#endregion
|
|
12785
12785
|
//#region ../../node_modules/@base-ui/react/esm/internals/composite/root/CompositeRootContext.js
|
|
12786
|
-
var RE =
|
|
12786
|
+
var RE = /* @__PURE__ */ k.createContext(void 0);
|
|
12787
12787
|
process.env.NODE_ENV !== "production" && (RE.displayName = "CompositeRootContext");
|
|
12788
12788
|
function zE(e = !1) {
|
|
12789
12789
|
let t = k.useContext(RE);
|
|
@@ -13499,7 +13499,7 @@ var TO = {
|
|
|
13499
13499
|
}, DO = {
|
|
13500
13500
|
...TO,
|
|
13501
13501
|
position: "absolute"
|
|
13502
|
-
}, OO =
|
|
13502
|
+
}, OO = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
13503
13503
|
let [n, r] = k.useState();
|
|
13504
13504
|
Z(() => {
|
|
13505
13505
|
ZE && r("button");
|
|
@@ -13508,7 +13508,7 @@ var TO = {
|
|
|
13508
13508
|
tabIndex: 0,
|
|
13509
13509
|
role: n
|
|
13510
13510
|
};
|
|
13511
|
-
return
|
|
13511
|
+
return /* @__PURE__ */ H("span", {
|
|
13512
13512
|
...e,
|
|
13513
13513
|
ref: t,
|
|
13514
13514
|
style: EO,
|
|
@@ -13607,7 +13607,7 @@ var WO = { style: { transition: "none" } }, GO = { fallbackAxisSide: "none" }, K
|
|
|
13607
13607
|
position: "fixed",
|
|
13608
13608
|
top: 0,
|
|
13609
13609
|
left: 0
|
|
13610
|
-
}, qO =
|
|
13610
|
+
}, qO = /* @__PURE__ */ k.createContext(null);
|
|
13611
13611
|
process.env.NODE_ENV !== "production" && (qO.displayName = "PortalContext");
|
|
13612
13612
|
var JO = () => k.useContext(qO), YO = kO("portal");
|
|
13613
13613
|
function XO(e = {}) {
|
|
@@ -13640,10 +13640,10 @@ function XO(e = {}) {
|
|
|
13640
13640
|
});
|
|
13641
13641
|
return {
|
|
13642
13642
|
portalNode: l,
|
|
13643
|
-
portalSubtree: s && p ?
|
|
13643
|
+
portalSubtree: s && p ? /* @__PURE__ */ se.createPortal(p, s) : null
|
|
13644
13644
|
};
|
|
13645
13645
|
}
|
|
13646
|
-
var ZO =
|
|
13646
|
+
var ZO = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
13647
13647
|
let { children: n, container: r, className: i, render: a, renderGuards: o, style: s, ...c } = e, { portalNode: l, portalSubtree: u } = XO({
|
|
13648
13648
|
container: r,
|
|
13649
13649
|
ref: t,
|
|
@@ -13667,22 +13667,22 @@ var ZO = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
13667
13667
|
portalNode: l,
|
|
13668
13668
|
setFocusManagerState: g
|
|
13669
13669
|
}), [l]);
|
|
13670
|
-
return
|
|
13670
|
+
return /* @__PURE__ */ U(k.Fragment, { children: [u, /* @__PURE__ */ U(qO.Provider, {
|
|
13671
13671
|
value: x,
|
|
13672
13672
|
children: [
|
|
13673
|
-
b && l &&
|
|
13673
|
+
b && l && /* @__PURE__ */ H(OO, {
|
|
13674
13674
|
"data-type": "outside",
|
|
13675
13675
|
ref: d,
|
|
13676
13676
|
onFocus: (e) => {
|
|
13677
13677
|
iO(e, l) ? p.current?.focus() : rO(h ? h.domReference : null)?.focus();
|
|
13678
13678
|
}
|
|
13679
13679
|
}),
|
|
13680
|
-
b && l &&
|
|
13680
|
+
b && l && /* @__PURE__ */ H("span", {
|
|
13681
13681
|
"aria-owns": l.id,
|
|
13682
13682
|
style: KO
|
|
13683
13683
|
}),
|
|
13684
|
-
l &&
|
|
13685
|
-
b && l &&
|
|
13684
|
+
l && /* @__PURE__ */ se.createPortal(n, l),
|
|
13685
|
+
b && l && /* @__PURE__ */ H(OO, {
|
|
13686
13686
|
"data-type": "outside",
|
|
13687
13687
|
ref: f,
|
|
13688
13688
|
onFocus: (e) => {
|
|
@@ -13711,9 +13711,9 @@ function QO() {
|
|
|
13711
13711
|
}
|
|
13712
13712
|
//#endregion
|
|
13713
13713
|
//#region ../../node_modules/@base-ui/react/esm/floating-ui-react/components/FloatingTree.js
|
|
13714
|
-
var $O =
|
|
13714
|
+
var $O = /* @__PURE__ */ k.createContext(null);
|
|
13715
13715
|
process.env.NODE_ENV !== "production" && ($O.displayName = "FloatingNodeContext");
|
|
13716
|
-
var ek =
|
|
13716
|
+
var ek = /* @__PURE__ */ k.createContext(null);
|
|
13717
13717
|
process.env.NODE_ENV !== "production" && (ek.displayName = "FloatingTreeContext");
|
|
13718
13718
|
var tk = () => k.useContext($O)?.id || null, nk = (e) => {
|
|
13719
13719
|
let t = k.useContext(ek);
|
|
@@ -13730,7 +13730,7 @@ function ok() {
|
|
|
13730
13730
|
ak = ak.filter((e) => e.deref()?.isConnected);
|
|
13731
13731
|
}
|
|
13732
13732
|
function sk(e) {
|
|
13733
|
-
ok(), e && os(e) !== "body" && (ak.push(new WeakRef(e)), ak.length > ik && (ak = ak.slice(-
|
|
13733
|
+
ok(), e && os(e) !== "body" && (ak.push(new WeakRef(e)), ak.length > ik && (ak = ak.slice(-ik)));
|
|
13734
13734
|
}
|
|
13735
13735
|
function ck() {
|
|
13736
13736
|
return ok(), ak[ak.length - 1]?.deref();
|
|
@@ -13983,8 +13983,8 @@ function dk(e) {
|
|
|
13983
13983
|
w
|
|
13984
13984
|
]);
|
|
13985
13985
|
let oe = !r && (s ? !C : !0) && (re || s);
|
|
13986
|
-
return
|
|
13987
|
-
oe &&
|
|
13986
|
+
return /* @__PURE__ */ U(k.Fragment, { children: [
|
|
13987
|
+
oe && /* @__PURE__ */ H(OO, {
|
|
13988
13988
|
"data-type": "inside",
|
|
13989
13989
|
ref: ee,
|
|
13990
13990
|
onFocus: (e) => {
|
|
@@ -13995,7 +13995,7 @@ function dk(e) {
|
|
|
13995
13995
|
}
|
|
13996
13996
|
}),
|
|
13997
13997
|
n,
|
|
13998
|
-
oe &&
|
|
13998
|
+
oe && /* @__PURE__ */ H(OO, {
|
|
13999
13999
|
"data-type": "inside",
|
|
14000
14000
|
ref: te,
|
|
14001
14001
|
onFocus: (e) => {
|
|
@@ -15146,7 +15146,7 @@ function qk(e) {
|
|
|
15146
15146
|
//#region ../../node_modules/@base-ui/react/esm/utils/popupStateMapping.js
|
|
15147
15147
|
var Jk = function(e) {
|
|
15148
15148
|
return e.open = "data-open", e.closed = "data-closed", e[e.startingStyle = AE.startingStyle] = "startingStyle", e[e.endingStyle = AE.endingStyle] = "endingStyle", e.anchorHidden = "data-anchor-hidden", e.side = "data-side", e.align = "data-align", e;
|
|
15149
|
-
}({}), Yk =
|
|
15149
|
+
}({}), Yk = /* @__PURE__ */ function(e) {
|
|
15150
15150
|
return e.popupOpen = "data-popup-open", e.pressed = "data-pressed", e;
|
|
15151
15151
|
}({}), Xk = { [Yk.popupOpen]: "" }, Zk = {
|
|
15152
15152
|
[Yk.popupOpen]: "",
|
|
@@ -15170,13 +15170,13 @@ function iA(e) {
|
|
|
15170
15170
|
}
|
|
15171
15171
|
//#endregion
|
|
15172
15172
|
//#region ../../node_modules/@base-ui/react/esm/utils/InternalBackdrop.js
|
|
15173
|
-
var aA =
|
|
15173
|
+
var aA = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
15174
15174
|
let { cutout: n, ...r } = e, i;
|
|
15175
15175
|
if (n) {
|
|
15176
15176
|
let e = n.getBoundingClientRect();
|
|
15177
15177
|
i = `polygon(0% 0%,100% 0%,100% 100%,0% 100%,0% 0%,${e.left}px ${e.top}px,${e.left}px ${e.bottom}px,${e.right}px ${e.bottom}px,${e.right}px ${e.top}px,${e.left}px ${e.top}px)`;
|
|
15178
15178
|
}
|
|
15179
|
-
return
|
|
15179
|
+
return /* @__PURE__ */ H("div", {
|
|
15180
15180
|
ref: t,
|
|
15181
15181
|
role: "presentation",
|
|
15182
15182
|
"data-base-ui-inert": "",
|
|
@@ -15193,13 +15193,13 @@ var aA = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
15193
15193
|
process.env.NODE_ENV !== "production" && (aA.displayName = "InternalBackdrop");
|
|
15194
15194
|
//#endregion
|
|
15195
15195
|
//#region ../../node_modules/@base-ui/react/esm/combobox/root/ComboboxRootContext.js
|
|
15196
|
-
var oA =
|
|
15196
|
+
var oA = /* @__PURE__ */ k.createContext(void 0);
|
|
15197
15197
|
process.env.NODE_ENV !== "production" && (oA.displayName = "ComboboxRootContext");
|
|
15198
|
-
var sA =
|
|
15198
|
+
var sA = /* @__PURE__ */ k.createContext(void 0);
|
|
15199
15199
|
process.env.NODE_ENV !== "production" && (sA.displayName = "ComboboxFloatingContext");
|
|
15200
|
-
var cA =
|
|
15200
|
+
var cA = /* @__PURE__ */ k.createContext(void 0);
|
|
15201
15201
|
process.env.NODE_ENV !== "production" && (cA.displayName = "ComboboxDerivedItemsContext");
|
|
15202
|
-
var lA =
|
|
15202
|
+
var lA = /* @__PURE__ */ k.createContext("");
|
|
15203
15203
|
process.env.NODE_ENV !== "production" && (lA.displayName = "ComboboxInputValueContext");
|
|
15204
15204
|
function uA() {
|
|
15205
15205
|
let e = k.useContext(oA);
|
|
@@ -15292,7 +15292,7 @@ function wA(e, t, n) {
|
|
|
15292
15292
|
return r();
|
|
15293
15293
|
}
|
|
15294
15294
|
function TA(e, t, n) {
|
|
15295
|
-
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(
|
|
15295
|
+
return e.reduce((e, r, i) => (i > 0 && e.push(", "), e.push(/* @__PURE__ */ H(k.Fragment, { children: wA(r, t, n) }, i)), e), []);
|
|
15296
15296
|
}
|
|
15297
15297
|
//#endregion
|
|
15298
15298
|
//#region ../../node_modules/@base-ui/react/esm/combobox/store.js
|
|
@@ -15347,7 +15347,7 @@ var $ = {
|
|
|
15347
15347
|
modal: _k((e) => e.modal),
|
|
15348
15348
|
autoHighlight: _k((e) => e.autoHighlight),
|
|
15349
15349
|
submitOnItemClick: _k((e) => e.submitOnItemClick)
|
|
15350
|
-
}, EA =
|
|
15350
|
+
}, EA = /* @__PURE__ */ function(e) {
|
|
15351
15351
|
return e.disabled = "data-disabled", e.valid = "data-valid", e.invalid = "data-invalid", e.touched = "data-touched", e.dirty = "data-dirty", e.filled = "data-filled", e.focused = "data-focused", e;
|
|
15352
15352
|
}({}), DA = {
|
|
15353
15353
|
badInput: !1,
|
|
@@ -15372,7 +15372,7 @@ var $ = {
|
|
|
15372
15372
|
...OA
|
|
15373
15373
|
}, AA = { valid(e) {
|
|
15374
15374
|
return e === null ? null : e ? { [EA.valid]: "" } : { [EA.invalid]: "" };
|
|
15375
|
-
} }, jA =
|
|
15375
|
+
} }, jA = /* @__PURE__ */ k.createContext({
|
|
15376
15376
|
invalid: void 0,
|
|
15377
15377
|
name: void 0,
|
|
15378
15378
|
validityData: {
|
|
@@ -15437,7 +15437,7 @@ function NA(e, t) {
|
|
|
15437
15437
|
}
|
|
15438
15438
|
//#endregion
|
|
15439
15439
|
//#region ../../node_modules/@base-ui/react/esm/internals/form-context/FormContext.js
|
|
15440
|
-
var PA =
|
|
15440
|
+
var PA = /* @__PURE__ */ k.createContext({
|
|
15441
15441
|
formRef: { current: { fields: /* @__PURE__ */ new Map() } },
|
|
15442
15442
|
errors: {},
|
|
15443
15443
|
clearErrors: TT,
|
|
@@ -15450,7 +15450,7 @@ function FA() {
|
|
|
15450
15450
|
}
|
|
15451
15451
|
//#endregion
|
|
15452
15452
|
//#region ../../node_modules/@base-ui/react/esm/internals/labelable-provider/LabelableContext.js
|
|
15453
|
-
var IA =
|
|
15453
|
+
var IA = /* @__PURE__ */ k.createContext({
|
|
15454
15454
|
controlId: void 0,
|
|
15455
15455
|
registerControlId: TT,
|
|
15456
15456
|
labelId: void 0,
|
|
@@ -16017,7 +16017,7 @@ function qA(e) {
|
|
|
16017
16017
|
et
|
|
16018
16018
|
]), Rt = k.useMemo(() => Array.isArray(nt) ? "" : CA(nt, O), [nt, O]), zt = Me && Array.isArray(Re) && Re.length > 0, Bt = Me || u === "none" ? void 0 : je, Vt = k.useMemo(() => !Me || !Array.isArray(Re) || !je ? null : Re.map((e) => {
|
|
16019
16019
|
let t = CA(e, O);
|
|
16020
|
-
return
|
|
16020
|
+
return /* @__PURE__ */ H("input", {
|
|
16021
16021
|
type: "hidden",
|
|
16022
16022
|
form: p,
|
|
16023
16023
|
name: je,
|
|
@@ -16029,9 +16029,9 @@ function qA(e) {
|
|
|
16029
16029
|
p,
|
|
16030
16030
|
je,
|
|
16031
16031
|
O
|
|
16032
|
-
]), Ht =
|
|
16032
|
+
]), Ht = /* @__PURE__ */ U(k.Fragment, { children: [
|
|
16033
16033
|
e.children,
|
|
16034
|
-
|
|
16034
|
+
/* @__PURE__ */ H("input", {
|
|
16035
16035
|
...ce.getInputValidationProps({
|
|
16036
16036
|
onFocus() {
|
|
16037
16037
|
if (mt) {
|
|
@@ -16071,13 +16071,13 @@ function qA(e) {
|
|
|
16071
16071
|
}),
|
|
16072
16072
|
Vt
|
|
16073
16073
|
] });
|
|
16074
|
-
return
|
|
16074
|
+
return /* @__PURE__ */ H(oA.Provider, {
|
|
16075
16075
|
value: tt,
|
|
16076
|
-
children:
|
|
16076
|
+
children: /* @__PURE__ */ H(sA.Provider, {
|
|
16077
16077
|
value: jt,
|
|
16078
|
-
children:
|
|
16078
|
+
children: /* @__PURE__ */ H(cA.Provider, {
|
|
16079
16079
|
value: Lt,
|
|
16080
|
-
children:
|
|
16080
|
+
children: /* @__PURE__ */ H(lA.Provider, {
|
|
16081
16081
|
value: He,
|
|
16082
16082
|
children: Ht
|
|
16083
16083
|
})
|
|
@@ -16115,7 +16115,7 @@ function XA(e, t) {
|
|
|
16115
16115
|
}
|
|
16116
16116
|
//#endregion
|
|
16117
16117
|
//#region ../../node_modules/@base-ui/react/esm/combobox/trigger/ComboboxTrigger.js
|
|
16118
|
-
var ZA = 2, QA =
|
|
16118
|
+
var ZA = 2, QA = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16119
16119
|
let { render: n, className: r, nativeButton: i = !0, disabled: a = !1, id: o, style: s, ...c } = e, { state: l, disabled: u, setTouched: d, setFocused: f, validationMode: p, validation: m } = MA(), { labelId: h } = LA(), g = uA(), { filteredItems: _ } = fA(), v = Q(g, $.selectionMode), y = Q(g, $.disabled), b = Q(g, $.readOnly), x = Q(g, $.required), S = Q(g, $.mounted), C = Q(g, $.popupSide), w = Q(g, $.positionerElement), T = Q(g, $.listElement), E = Q(g, $.triggerProps), D = Q(g, $.triggerElement), O = Q(g, $.inputInsidePopup), A = Q(g, $.id), j = Q(g, $.labelId), M = Q(g, $.open), N = Q(g, $.selectedValue), P = Q(g, $.activeIndex), F = Q(g, $.selectedIndex), I = Q(g, $.hasSelectedValue), L = dA(), R = pA(), ee = fO(), te = u || y || a, z = _.length === 0, B = S && w ? C : null;
|
|
16120
16120
|
RA({ id: O ? o : void 0 });
|
|
16121
16121
|
let ne = O ? o ?? A : o, re = XA(h, j), V = k.useRef("");
|
|
@@ -16212,14 +16212,14 @@ var ZA = 2, QA = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
16212
16212
|
process.env.NODE_ENV !== "production" && (QA.displayName = "ComboboxTrigger");
|
|
16213
16213
|
//#endregion
|
|
16214
16214
|
//#region ../../node_modules/@base-ui/react/esm/combobox/chips/ComboboxChipsContext.js
|
|
16215
|
-
var $A =
|
|
16215
|
+
var $A = /* @__PURE__ */ k.createContext(void 0);
|
|
16216
16216
|
process.env.NODE_ENV !== "production" && ($A.displayName = "ComboboxChipsContext");
|
|
16217
16217
|
function ej() {
|
|
16218
16218
|
return k.useContext($A);
|
|
16219
16219
|
}
|
|
16220
16220
|
//#endregion
|
|
16221
16221
|
//#region ../../node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositionerContext.js
|
|
16222
|
-
var tj =
|
|
16222
|
+
var tj = /* @__PURE__ */ k.createContext(void 0);
|
|
16223
16223
|
process.env.NODE_ENV !== "production" && (tj.displayName = "ComboboxPositionerContext");
|
|
16224
16224
|
function nj(e) {
|
|
16225
16225
|
let t = k.useContext(tj);
|
|
@@ -16228,9 +16228,9 @@ function nj(e) {
|
|
|
16228
16228
|
}
|
|
16229
16229
|
//#endregion
|
|
16230
16230
|
//#region ../../node_modules/@base-ui/react/esm/combobox/utils/ComboboxInternalDismissButton.js
|
|
16231
|
-
var rj =
|
|
16231
|
+
var rj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16232
16232
|
let n = uA(), { buttonRef: r, getButtonProps: i } = VE({ native: !1 });
|
|
16233
|
-
return
|
|
16233
|
+
return /* @__PURE__ */ H("span", {
|
|
16234
16234
|
ref: hT(t, r),
|
|
16235
16235
|
...i({ onClick: eT((e) => {
|
|
16236
16236
|
n.state.setOpen(!1, mE(aE, e.nativeEvent, e.currentTarget));
|
|
@@ -16243,7 +16243,7 @@ var rj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
16243
16243
|
process.env.NODE_ENV !== "production" && (rj.displayName = "ComboboxInternalDismissButton");
|
|
16244
16244
|
//#endregion
|
|
16245
16245
|
//#region ../../node_modules/@base-ui/react/esm/combobox/input/ComboboxInput.js
|
|
16246
|
-
var ij =
|
|
16246
|
+
var ij = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16247
16247
|
let { render: n, className: r, disabled: i = !1, id: a, style: o, ...s } = e, { state: c, disabled: l, setTouched: u, setFocused: d, validationMode: f, validation: p } = MA(), { labelId: m } = LA(), h = ej(), g = !!nj(!0), _ = uA(), { filteredItems: v } = fA(), y = pA(), b = fT(), x = Q(_, $.required), S = Q(_, $.disabled), C = Q(_, $.readOnly), w = Q(_, $.name), T = Q(_, $.form), E = Q(_, $.selectionMode), D = Q(_, $.autoHighlight), O = Q(_, $.inputProps), A = Q(_, $.triggerProps), j = Q(_, $.open), M = Q(_, $.mounted), N = Q(_, $.selectedValue), P = Q(_, $.popupSide), F = Q(_, $.positionerElement), I = Q(_, $.id), L = Q(_, $.inline), R = Q(_, $.modal), ee = !!D, te = M && F ? P : null, z = l || S || i, B = v.length === 0, ne = g || L, re = !ne || R, V = xE(a ?? (ne ? void 0 : I)), ie = XA(m, void 0), ae = g ? OA : c, [oe, se] = k.useState(null), ce = k.useRef(!1), le = k.useRef(null), ue = k.useRef(!1), de = eT((e) => {
|
|
16248
16248
|
let t = g || _.state.inline;
|
|
16249
16249
|
t && !_.state.hasInputValue && _.state.setInputValue("", mE(tE)), _.update({
|
|
@@ -16410,7 +16410,7 @@ var ij = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
16410
16410
|
],
|
|
16411
16411
|
stateAttributesMapping: JA
|
|
16412
16412
|
});
|
|
16413
|
-
return
|
|
16413
|
+
return /* @__PURE__ */ U(k.Fragment, { children: [j && re && /* @__PURE__ */ H(rj, { ref: _.state.startDismissRef }), he] });
|
|
16414
16414
|
});
|
|
16415
16415
|
process.env.NODE_ENV !== "production" && (ij.displayName = "ComboboxInput");
|
|
16416
16416
|
//#endregion
|
|
@@ -16425,7 +16425,7 @@ function aj(e, t, n, r, i) {
|
|
|
16425
16425
|
var oj = {
|
|
16426
16426
|
...NE,
|
|
16427
16427
|
...tA
|
|
16428
|
-
}, sj =
|
|
16428
|
+
}, sj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16429
16429
|
let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, keepMounted: o = !1, style: s, ...c } = e, { disabled: l } = MA(), u = uA(), d = Q(u, $.selectionMode), f = Q(u, $.disabled), p = Q(u, $.readOnly), m = Q(u, $.open), h = Q(u, $.selectedValue), g = Q(u, $.hasSelectionChips), _ = pA(), v = !1;
|
|
16430
16430
|
v = d === "none" ? _ !== "" : d === "single" ? h != null : g;
|
|
16431
16431
|
let y = l || f || i, { buttonRef: b, getButtonProps: x } = VE({
|
|
@@ -16480,14 +16480,14 @@ var oj = {
|
|
|
16480
16480
|
process.env.NODE_ENV !== "production" && (sj.displayName = "ComboboxClear");
|
|
16481
16481
|
//#endregion
|
|
16482
16482
|
//#region ../../node_modules/@base-ui/react/esm/combobox/collection/GroupCollectionContext.js
|
|
16483
|
-
var cj =
|
|
16483
|
+
var cj = /* @__PURE__ */ k.createContext(null);
|
|
16484
16484
|
process.env.NODE_ENV !== "production" && (cj.displayName = "GroupCollectionContext");
|
|
16485
16485
|
function lj() {
|
|
16486
16486
|
return k.useContext(cj);
|
|
16487
16487
|
}
|
|
16488
16488
|
function uj(e) {
|
|
16489
16489
|
let { children: t, items: n } = e, r = k.useMemo(() => ({ items: n }), [n]);
|
|
16490
|
-
return
|
|
16490
|
+
return /* @__PURE__ */ H(cj.Provider, {
|
|
16491
16491
|
value: r,
|
|
16492
16492
|
children: t
|
|
16493
16493
|
});
|
|
@@ -16496,17 +16496,17 @@ function uj(e) {
|
|
|
16496
16496
|
//#region ../../node_modules/@base-ui/react/esm/combobox/collection/ComboboxCollection.js
|
|
16497
16497
|
function dj(e) {
|
|
16498
16498
|
let { children: t } = e, { filteredItems: n } = fA(), r = lj(), i = r ? r.items : n;
|
|
16499
|
-
return i ?
|
|
16499
|
+
return i ? /* @__PURE__ */ H(k.Fragment, { children: i.map(t) }) : null;
|
|
16500
16500
|
}
|
|
16501
16501
|
//#endregion
|
|
16502
16502
|
//#region ../../node_modules/@base-ui/react/esm/combobox/list/ComboboxList.js
|
|
16503
|
-
var fj =
|
|
16503
|
+
var fj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16504
16504
|
var n;
|
|
16505
16505
|
let { render: r, className: i, style: a, children: o, ...s } = e, c = uA(), l = dA(), u = !!nj(!0), { filteredItems: d, hasItems: f } = fA(), p = Q(c, $.selectionMode), m = Q(c, $.grid), h = Q(c, $.popupProps), g = Q(c, $.virtualized), _ = p === "multiple", v = d.length === 0, y = eT((e) => {
|
|
16506
16506
|
c.set("positionerElement", e);
|
|
16507
16507
|
}), b = eT((e) => {
|
|
16508
16508
|
c.set("listElement", e);
|
|
16509
|
-
}), x = k.useMemo(() => typeof o == "function" ? n ||=
|
|
16509
|
+
}), x = k.useMemo(() => typeof o == "function" ? n ||= /* @__PURE__ */ H(dj, { children: o }) : o, [o]), S = { empty: v }, C = l.useState("floatingId"), w = KT("div", e, {
|
|
16510
16510
|
state: S,
|
|
16511
16511
|
ref: [
|
|
16512
16512
|
t,
|
|
@@ -16540,7 +16540,7 @@ var fj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
16540
16540
|
s
|
|
16541
16541
|
]
|
|
16542
16542
|
});
|
|
16543
|
-
return g ? w :
|
|
16543
|
+
return g ? w : /* @__PURE__ */ H(sT, {
|
|
16544
16544
|
elementsRef: c.state.listRef,
|
|
16545
16545
|
labelsRef: f ? void 0 : c.state.labelsRef,
|
|
16546
16546
|
children: w
|
|
@@ -16576,7 +16576,7 @@ function hj() {
|
|
|
16576
16576
|
}
|
|
16577
16577
|
//#endregion
|
|
16578
16578
|
//#region ../../node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortalContext.js
|
|
16579
|
-
var gj =
|
|
16579
|
+
var gj = /* @__PURE__ */ k.createContext(void 0);
|
|
16580
16580
|
process.env.NODE_ENV !== "production" && (gj.displayName = "ComboboxPortalContext");
|
|
16581
16581
|
function _j() {
|
|
16582
16582
|
let e = k.useContext(gj);
|
|
@@ -16585,11 +16585,11 @@ function _j() {
|
|
|
16585
16585
|
}
|
|
16586
16586
|
//#endregion
|
|
16587
16587
|
//#region ../../node_modules/@base-ui/react/esm/combobox/portal/ComboboxPortal.js
|
|
16588
|
-
var vj =
|
|
16588
|
+
var vj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16589
16589
|
let { keepMounted: n = !1, ...r } = e, i = uA(), a = Q(i, $.mounted), o = Q(i, $.forceMounted);
|
|
16590
|
-
return a || n || o ?
|
|
16590
|
+
return a || n || o ? /* @__PURE__ */ H(gj.Provider, {
|
|
16591
16591
|
value: n,
|
|
16592
|
-
children:
|
|
16592
|
+
children: /* @__PURE__ */ H(ZO, {
|
|
16593
16593
|
ref: t,
|
|
16594
16594
|
...r
|
|
16595
16595
|
})
|
|
@@ -16912,7 +16912,7 @@ function Aj(e, t, n, r) {
|
|
|
16912
16912
|
}
|
|
16913
16913
|
//#endregion
|
|
16914
16914
|
//#region ../../node_modules/@base-ui/react/esm/combobox/positioner/ComboboxPositioner.js
|
|
16915
|
-
var jj =
|
|
16915
|
+
var jj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16916
16916
|
let { render: n, className: r, anchor: i, positionMethod: a = "absolute", side: o = "bottom", align: s = "center", sideOffset: c = 0, alignOffset: l = 0, collisionBoundary: u = "clipping-ancestors", collisionPadding: d = 5, arrowPadding: f = 5, sticky: p = !1, disableAnchorTracking: m = !1, collisionAvoidance: h = GO, style: g, ..._ } = e, v = uA(), { filteredItems: y } = fA(), b = dA(), x = _j(), S = Q(v, $.modal), C = Q(v, $.open), w = Q(v, $.mounted), T = Q(v, $.openMethod), E = Q(v, $.positionerElement), D = Q(v, $.triggerElement), O = Q(v, $.inputElement), k = Q(v, $.inputGroupElement), A = Q(v, $.inputInsidePopup), j = Q(v, $.transitionStatus), M = y.length === 0, N = Tj({
|
|
16917
16917
|
anchor: i ?? (A ? D : k ?? O),
|
|
16918
16918
|
floatingRootContext: b,
|
|
@@ -16952,9 +16952,9 @@ var jj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
16952
16952
|
hidden: !w,
|
|
16953
16953
|
inert: !C
|
|
16954
16954
|
});
|
|
16955
|
-
return
|
|
16955
|
+
return /* @__PURE__ */ U(tj.Provider, {
|
|
16956
16956
|
value: N,
|
|
16957
|
-
children: [w && S &&
|
|
16957
|
+
children: [w && S && /* @__PURE__ */ H(aA, {
|
|
16958
16958
|
inert: iA(!C),
|
|
16959
16959
|
cutout: k ?? O ?? D
|
|
16960
16960
|
}), I]
|
|
@@ -16966,7 +16966,7 @@ process.env.NODE_ENV !== "production" && (jj.displayName = "ComboboxPositioner")
|
|
|
16966
16966
|
var Mj = {
|
|
16967
16967
|
...rA,
|
|
16968
16968
|
...NE
|
|
16969
|
-
}, Nj =
|
|
16969
|
+
}, Nj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
16970
16970
|
let { render: n, className: r, style: i, initialFocus: a, finalFocus: o, ...s } = e, c = uA(), l = nj(), u = dA(), { filteredItems: d } = fA(), f = Q(c, $.mounted), p = Q(c, $.open), m = Q(c, $.openMethod), h = Q(c, $.transitionStatus), g = Q(c, $.inputInsidePopup), _ = Q(c, $.inputElement), v = Q(c, $.modal), y = d.length === 0;
|
|
16971
16971
|
cO({
|
|
16972
16972
|
open: p,
|
|
@@ -17001,7 +17001,7 @@ var Mj = {
|
|
|
17001
17001
|
}), x = a === void 0 ? g ? (e) => e === "touch" ? c.state.popupRef.current : _ : !1 : a, S;
|
|
17002
17002
|
S = o ?? (g ? void 0 : !1);
|
|
17003
17003
|
let C = !g || v;
|
|
17004
|
-
return
|
|
17004
|
+
return /* @__PURE__ */ H(dk, {
|
|
17005
17005
|
context: u,
|
|
17006
17006
|
disabled: !f,
|
|
17007
17007
|
modal: C,
|
|
@@ -17009,13 +17009,13 @@ var Mj = {
|
|
|
17009
17009
|
initialFocus: x,
|
|
17010
17010
|
returnFocus: S,
|
|
17011
17011
|
getInsideElements: () => [c.state.startDismissRef.current, c.state.endDismissRef.current],
|
|
17012
|
-
children:
|
|
17012
|
+
children: /* @__PURE__ */ U(k.Fragment, { children: [b, C && /* @__PURE__ */ H(rj, { ref: c.state.endDismissRef })] })
|
|
17013
17013
|
});
|
|
17014
17014
|
});
|
|
17015
17015
|
process.env.NODE_ENV !== "production" && (Nj.displayName = "ComboboxPopup");
|
|
17016
17016
|
//#endregion
|
|
17017
17017
|
//#region ../../node_modules/@base-ui/react/esm/combobox/group/ComboboxGroupContext.js
|
|
17018
|
-
var Pj =
|
|
17018
|
+
var Pj = /* @__PURE__ */ k.createContext(void 0);
|
|
17019
17019
|
process.env.NODE_ENV !== "production" && (Pj.displayName = "ComboboxGroupContext");
|
|
17020
17020
|
function Fj() {
|
|
17021
17021
|
let e = k.useContext(Pj);
|
|
@@ -17024,7 +17024,7 @@ function Fj() {
|
|
|
17024
17024
|
}
|
|
17025
17025
|
//#endregion
|
|
17026
17026
|
//#region ../../node_modules/@base-ui/react/esm/combobox/group/ComboboxGroup.js
|
|
17027
|
-
var Ij =
|
|
17027
|
+
var Ij = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17028
17028
|
let { render: n, className: r, style: i, items: a, ...o } = e, [s, c] = k.useState(), l = k.useMemo(() => ({
|
|
17029
17029
|
labelId: s,
|
|
17030
17030
|
setLabelId: c,
|
|
@@ -17039,11 +17039,11 @@ var Ij = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17039
17039
|
role: "group",
|
|
17040
17040
|
"aria-labelledby": s
|
|
17041
17041
|
}, o]
|
|
17042
|
-
}), d =
|
|
17042
|
+
}), d = /* @__PURE__ */ H(Pj.Provider, {
|
|
17043
17043
|
value: l,
|
|
17044
17044
|
children: u
|
|
17045
17045
|
});
|
|
17046
|
-
return a ?
|
|
17046
|
+
return a ? /* @__PURE__ */ H(uj, {
|
|
17047
17047
|
items: a,
|
|
17048
17048
|
children: d
|
|
17049
17049
|
}) : d;
|
|
@@ -17051,7 +17051,7 @@ var Ij = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17051
17051
|
process.env.NODE_ENV !== "production" && (Ij.displayName = "ComboboxGroup");
|
|
17052
17052
|
//#endregion
|
|
17053
17053
|
//#region ../../node_modules/@base-ui/react/esm/combobox/group-label/ComboboxGroupLabel.js
|
|
17054
|
-
var Lj =
|
|
17054
|
+
var Lj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17055
17055
|
let { render: n, className: r, style: i, id: a, ...o } = e, { setLabelId: s } = Fj(), c = xE(a);
|
|
17056
17056
|
return Z(() => (s(c), () => {
|
|
17057
17057
|
s(void 0);
|
|
@@ -17063,7 +17063,7 @@ var Lj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17063
17063
|
process.env.NODE_ENV !== "production" && (Lj.displayName = "ComboboxGroupLabel");
|
|
17064
17064
|
//#endregion
|
|
17065
17065
|
//#region ../../node_modules/@base-ui/react/esm/combobox/item/ComboboxItemContext.js
|
|
17066
|
-
var Rj =
|
|
17066
|
+
var Rj = /* @__PURE__ */ k.createContext(void 0);
|
|
17067
17067
|
process.env.NODE_ENV !== "production" && (Rj.displayName = "ComboboxItemContext");
|
|
17068
17068
|
function zj() {
|
|
17069
17069
|
let e = k.useContext(Rj);
|
|
@@ -17072,14 +17072,14 @@ function zj() {
|
|
|
17072
17072
|
}
|
|
17073
17073
|
//#endregion
|
|
17074
17074
|
//#region ../../node_modules/@base-ui/react/esm/combobox/row/ComboboxRowContext.js
|
|
17075
|
-
var Bj =
|
|
17075
|
+
var Bj = /* @__PURE__ */ k.createContext(!1);
|
|
17076
17076
|
process.env.NODE_ENV !== "production" && (Bj.displayName = "ComboboxRowContext");
|
|
17077
17077
|
function Vj() {
|
|
17078
17078
|
return k.useContext(Bj);
|
|
17079
17079
|
}
|
|
17080
17080
|
//#endregion
|
|
17081
17081
|
//#region ../../node_modules/@base-ui/react/esm/combobox/item/ComboboxItem.js
|
|
17082
|
-
var Hj =
|
|
17082
|
+
var Hj = /* @__PURE__ */ k.memo(/* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17083
17083
|
let { render: n, className: r, value: i = null, index: a, disabled: o = !1, nativeButton: s = !1, style: c, ...l } = e, u = k.useRef(!1), d = k.useRef(null), f = LE({
|
|
17084
17084
|
index: a,
|
|
17085
17085
|
textRef: d,
|
|
@@ -17184,7 +17184,7 @@ var Hj = /*#__PURE__*/ k.memo(/*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17184
17184
|
selected: M,
|
|
17185
17185
|
textRef: d
|
|
17186
17186
|
}), [M, d]);
|
|
17187
|
-
return
|
|
17187
|
+
return /* @__PURE__ */ H(Rj.Provider, {
|
|
17188
17188
|
value: te,
|
|
17189
17189
|
children: ee
|
|
17190
17190
|
});
|
|
@@ -17192,7 +17192,7 @@ var Hj = /*#__PURE__*/ k.memo(/*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17192
17192
|
process.env.NODE_ENV !== "production" && (Hj.displayName = "ComboboxItem");
|
|
17193
17193
|
//#endregion
|
|
17194
17194
|
//#region ../../node_modules/@base-ui/react/esm/combobox/empty/ComboboxEmpty.js
|
|
17195
|
-
var Uj =
|
|
17195
|
+
var Uj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17196
17196
|
let { render: n, className: r, style: i, children: a, ...o } = e, { filteredItems: s } = fA(), c = uA(), l = hj(), u = s.length === 0 ? a : null;
|
|
17197
17197
|
return KT("div", e, {
|
|
17198
17198
|
ref: [
|
|
@@ -17211,7 +17211,7 @@ var Uj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17211
17211
|
process.env.NODE_ENV !== "production" && (Uj.displayName = "ComboboxEmpty");
|
|
17212
17212
|
//#endregion
|
|
17213
17213
|
//#region ../../node_modules/@base-ui/react/esm/separator/Separator.js
|
|
17214
|
-
var Wj =
|
|
17214
|
+
var Wj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17215
17215
|
let { className: n, render: r, orientation: i = "horizontal", style: a, ...o } = e;
|
|
17216
17216
|
return KT("div", e, {
|
|
17217
17217
|
state: { orientation: i },
|
|
@@ -17227,7 +17227,7 @@ process.env.NODE_ENV !== "production" && (Wj.displayName = "Separator");
|
|
|
17227
17227
|
//#region ../../node_modules/@base-ui/react/esm/combobox/root/ComboboxRoot.js
|
|
17228
17228
|
function Gj(e) {
|
|
17229
17229
|
let { multiple: t = !1, defaultValue: n, value: r, onValueChange: i, autoComplete: a, ...o } = e;
|
|
17230
|
-
return
|
|
17230
|
+
return /* @__PURE__ */ H(qA, {
|
|
17231
17231
|
...o,
|
|
17232
17232
|
selectionMode: t ? "multiple" : "single",
|
|
17233
17233
|
selectedValue: r,
|
|
@@ -17240,19 +17240,19 @@ function Gj(e) {
|
|
|
17240
17240
|
//#region ../../node_modules/@base-ui/react/esm/combobox/value/ComboboxValue.js
|
|
17241
17241
|
function Kj(e) {
|
|
17242
17242
|
let { children: t, placeholder: n } = e, r = uA(), i = Q(r, $.itemToStringLabel), a = Q(r, $.selectedValue), o = Q(r, $.items), s = Q(r, $.selectionMode) === "multiple", c = Q(r, $.hasSelectedValue), l = !c && n != null && t == null, u = Q(r, $.hasNullItemLabel, l), d = null;
|
|
17243
|
-
return d = typeof t == "function" ? t(a) : t ?? (!c && n != null && !u ? n : s && Array.isArray(a) ? TA(a, o, i) : wA(a, o, i)),
|
|
17243
|
+
return d = typeof t == "function" ? t(a) : t ?? (!c && n != null && !u ? n : s && Array.isArray(a) ? TA(a, o, i) : wA(a, o, i)), /* @__PURE__ */ H(k.Fragment, { children: d });
|
|
17244
17244
|
}
|
|
17245
17245
|
//#endregion
|
|
17246
17246
|
//#region ../../node_modules/@base-ui/react/esm/combobox/item-indicator/ComboboxItemIndicator.js
|
|
17247
|
-
var qj =
|
|
17247
|
+
var qj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17248
17248
|
let n = e.keepMounted ?? !1, { selected: r } = zj();
|
|
17249
|
-
return n || r ?
|
|
17249
|
+
return n || r ? /* @__PURE__ */ H(Jj, {
|
|
17250
17250
|
...e,
|
|
17251
17251
|
ref: t
|
|
17252
17252
|
}) : null;
|
|
17253
17253
|
});
|
|
17254
17254
|
process.env.NODE_ENV !== "production" && (qj.displayName = "ComboboxItemIndicator");
|
|
17255
|
-
var Jj =
|
|
17255
|
+
var Jj = /* @__PURE__ */ k.memo(/* @__PURE__ */ k.forwardRef((e, t) => {
|
|
17256
17256
|
let { render: n, className: r, style: i, keepMounted: a, ...o } = e, { selected: s } = zj(), c = k.useRef(null), { transitionStatus: l, setMounted: u } = FE(s), d = KT("span", e, {
|
|
17257
17257
|
ref: [t, c],
|
|
17258
17258
|
state: {
|
|
@@ -17276,7 +17276,7 @@ var Jj = /*#__PURE__*/ k.memo(/*#__PURE__*/ k.forwardRef((e, t) => {
|
|
|
17276
17276
|
process.env.NODE_ENV !== "production" && (Jj.displayName = "Inner");
|
|
17277
17277
|
//#endregion
|
|
17278
17278
|
//#region ../../node_modules/@base-ui/react/esm/combobox/chips/ComboboxChips.js
|
|
17279
|
-
var Yj =
|
|
17279
|
+
var Yj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17280
17280
|
let { render: n, className: r, style: i, ...a } = e, o = uA(), s = Q(o, $.open), c = Q(o, $.hasSelectionChips), [l, u] = k.useState(void 0);
|
|
17281
17281
|
s && l !== void 0 && u(void 0);
|
|
17282
17282
|
let d = k.useRef([]), f = KT("div", e, {
|
|
@@ -17297,9 +17297,9 @@ var Yj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17297
17297
|
u,
|
|
17298
17298
|
d
|
|
17299
17299
|
]);
|
|
17300
|
-
return
|
|
17300
|
+
return /* @__PURE__ */ H($A.Provider, {
|
|
17301
17301
|
value: p,
|
|
17302
|
-
children:
|
|
17302
|
+
children: /* @__PURE__ */ H(sT, {
|
|
17303
17303
|
elementsRef: d,
|
|
17304
17304
|
children: f
|
|
17305
17305
|
})
|
|
@@ -17308,7 +17308,7 @@ var Yj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17308
17308
|
process.env.NODE_ENV !== "production" && (Yj.displayName = "ComboboxChips");
|
|
17309
17309
|
//#endregion
|
|
17310
17310
|
//#region ../../node_modules/@base-ui/react/esm/combobox/chip/ComboboxChipContext.js
|
|
17311
|
-
var Xj =
|
|
17311
|
+
var Xj = /* @__PURE__ */ k.createContext(void 0);
|
|
17312
17312
|
process.env.NODE_ENV !== "production" && (Xj.displayName = "ComboboxChipContext");
|
|
17313
17313
|
function Zj() {
|
|
17314
17314
|
let e = k.useContext(Xj);
|
|
@@ -17317,7 +17317,7 @@ function Zj() {
|
|
|
17317
17317
|
}
|
|
17318
17318
|
//#endregion
|
|
17319
17319
|
//#region ../../node_modules/@base-ui/react/esm/combobox/chip/ComboboxChip.js
|
|
17320
|
-
var Qj =
|
|
17320
|
+
var Qj = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17321
17321
|
let { render: n, className: r, style: i, ...a } = e, o = uA(), { setHighlightedChipIndex: s, chipsRef: c } = ej(), l = Q(o, $.disabled), u = Q(o, $.readOnly), d = Q(o, $.selectedValue), { ref: f, index: p } = LE();
|
|
17322
17322
|
function m(e) {
|
|
17323
17323
|
let t = p;
|
|
@@ -17349,7 +17349,7 @@ var Qj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17349
17349
|
}
|
|
17350
17350
|
}, a]
|
|
17351
17351
|
}), g = k.useMemo(() => ({ index: p }), [p]);
|
|
17352
|
-
return
|
|
17352
|
+
return /* @__PURE__ */ H(Xj.Provider, {
|
|
17353
17353
|
value: g,
|
|
17354
17354
|
children: h
|
|
17355
17355
|
});
|
|
@@ -17357,7 +17357,7 @@ var Qj = /*#__PURE__*/ k.forwardRef(function(e, t) {
|
|
|
17357
17357
|
process.env.NODE_ENV !== "production" && (Qj.displayName = "ComboboxChip");
|
|
17358
17358
|
//#endregion
|
|
17359
17359
|
//#region ../../node_modules/@base-ui/react/esm/combobox/chip-remove/ComboboxChipRemove.js
|
|
17360
|
-
var $j =
|
|
17360
|
+
var $j = /* @__PURE__ */ k.forwardRef(function(e, t) {
|
|
17361
17361
|
let { render: n, className: r, disabled: i = !1, nativeButton: a = !0, style: o, ...s } = e, c = uA(), { index: l } = Zj(), u = Q(c, $.disabled), d = Q(c, $.readOnly), f = Q(c, $.selectedValue), p = Q(c, $.isItemEqualToValue), m = u || i, { buttonRef: h, getButtonProps: g } = VE({
|
|
17362
17362
|
native: a,
|
|
17363
17363
|
disabled: m || d,
|
|
@@ -17844,7 +17844,7 @@ function nN(e) {
|
|
|
17844
17844
|
}
|
|
17845
17845
|
//#endregion
|
|
17846
17846
|
//#region ../../node_modules/@radix-ui/react-dialog/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
17847
|
-
|
|
17847
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
17848
17848
|
function rN(e) {
|
|
17849
17849
|
let t = k.forwardRef((t, n) => {
|
|
17850
17850
|
let { children: r, ...i } = t, a = null, o = !1, s = [];
|
|
@@ -18538,7 +18538,7 @@ function ZP(...e) {
|
|
|
18538
18538
|
}
|
|
18539
18539
|
//#endregion
|
|
18540
18540
|
//#region ../../node_modules/cmdk/node_modules/@radix-ui/react-slot/dist/index.mjs
|
|
18541
|
-
|
|
18541
|
+
/* @__NO_SIDE_EFFECTS__ */
|
|
18542
18542
|
function QP(e) {
|
|
18543
18543
|
let t = k.forwardRef((t, n) => {
|
|
18544
18544
|
let { children: r, ...i } = t, a = null, o = !1, s = [];
|
|
@@ -20022,7 +20022,7 @@ function TL({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
20022
20022
|
aL(document.documentElement, "scrollBehavior");
|
|
20023
20023
|
}), [k]);
|
|
20024
20024
|
function Te(e) {
|
|
20025
|
-
let t = e ? (window.innerWidth - hL) / window.innerWidth : 1, n = e ? -
|
|
20025
|
+
let t = e ? (window.innerWidth - hL) / window.innerWidth : 1, n = e ? -hL : 0;
|
|
20026
20026
|
re.current && window.clearTimeout(re.current), iL(H.current, {
|
|
20027
20027
|
transition: `transform ${uL.DURATION}s cubic-bezier(${uL.EASE.join(",")})`,
|
|
20028
20028
|
transform: oL(b) ? `scale(${t}) translate3d(0, ${n}px, 0)` : `scale(${t}) translate3d(${n}px, 0, 0)`
|
|
@@ -20036,14 +20036,14 @@ function TL({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
20036
20036
|
}
|
|
20037
20037
|
function Ee(e, t) {
|
|
20038
20038
|
if (t < 0) return;
|
|
20039
|
-
let n = (window.innerWidth - hL) / window.innerWidth, r = n + t * (1 - n), i = -
|
|
20039
|
+
let n = (window.innerWidth - hL) / window.innerWidth, r = n + t * (1 - n), i = -hL + t * hL;
|
|
20040
20040
|
iL(H.current, {
|
|
20041
20041
|
transform: oL(b) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`,
|
|
20042
20042
|
transition: "none"
|
|
20043
20043
|
});
|
|
20044
20044
|
}
|
|
20045
20045
|
function De(e, t) {
|
|
20046
|
-
let n = oL(b) ? window.innerHeight : window.innerWidth, r = t ? (n - hL) / n : 1, i = t ? -
|
|
20046
|
+
let n = oL(b) ? window.innerHeight : window.innerWidth, r = t ? (n - hL) / n : 1, i = t ? -hL : 0;
|
|
20047
20047
|
t && iL(H.current, {
|
|
20048
20048
|
transition: `transform ${uL.DURATION}s cubic-bezier(${uL.EASE.join(",")})`,
|
|
20049
20049
|
transform: oL(b) ? `scale(${r}) translate3d(0, ${i}px, 0)` : `scale(${r}) translate3d(${i}px, 0, 0)`
|
|
@@ -20053,13 +20053,13 @@ function TL({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
20053
20053
|
g || window.requestAnimationFrame(() => {
|
|
20054
20054
|
document.body.style.pointerEvents = "auto";
|
|
20055
20055
|
});
|
|
20056
|
-
}, [g]),
|
|
20056
|
+
}, [g]), /* @__PURE__ */ A.createElement(VP, {
|
|
20057
20057
|
defaultOpen: x,
|
|
20058
20058
|
onOpenChange: (e) => {
|
|
20059
20059
|
!u && !e || (e ? N(!0) : xe(!0), j(e));
|
|
20060
20060
|
},
|
|
20061
20061
|
open: k
|
|
20062
|
-
},
|
|
20062
|
+
}, /* @__PURE__ */ A.createElement(AI.Provider, { value: {
|
|
20063
20063
|
activeSnapPoint: le,
|
|
20064
20064
|
snapPoints: a,
|
|
20065
20065
|
setActiveSnapPoint: de,
|
|
@@ -20091,11 +20091,11 @@ function TL({ open: e, onOpenChange: t, children: n, onDrag: r, onRelease: i, sn
|
|
|
20091
20091
|
autoFocus: O
|
|
20092
20092
|
} }, n));
|
|
20093
20093
|
}
|
|
20094
|
-
var EL =
|
|
20094
|
+
var EL = /* @__PURE__ */ A.forwardRef(function({ ...e }, t) {
|
|
20095
20095
|
let { overlayRef: n, snapPoints: r, onRelease: i, shouldFade: a, isOpen: o, modal: s, shouldAnimate: c } = jI(), l = nL(t, n), u = r && r.length > 0;
|
|
20096
20096
|
if (!s) return null;
|
|
20097
20097
|
let d = A.useCallback((e) => i(e), [i]);
|
|
20098
|
-
return
|
|
20098
|
+
return /* @__PURE__ */ A.createElement(WP, {
|
|
20099
20099
|
onMouseUp: d,
|
|
20100
20100
|
ref: l,
|
|
20101
20101
|
"data-vaul-overlay": "",
|
|
@@ -20106,7 +20106,7 @@ var EL = /*#__PURE__*/ A.forwardRef(function({ ...e }, t) {
|
|
|
20106
20106
|
});
|
|
20107
20107
|
});
|
|
20108
20108
|
EL.displayName = "Drawer.Overlay";
|
|
20109
|
-
var DL =
|
|
20109
|
+
var DL = /* @__PURE__ */ A.forwardRef(function({ onPointerDownOutside: e, style: t, onOpenAutoFocus: n, ...r }, i) {
|
|
20110
20110
|
let { drawerRef: a, onPress: o, onRelease: s, onDrag: c, keyboardIsOpen: l, snapPointsOffset: u, activeSnapPointIndex: d, modal: f, isOpen: p, direction: m, snapPoints: h, container: g, handleOnly: _, shouldAnimate: v, autoFocus: y } = jI(), [b, x] = A.useState(!1), S = nL(i, a), C = A.useRef(null), w = A.useRef(null), T = A.useRef(!1), E = h && h.length > 0;
|
|
20111
20111
|
SL();
|
|
20112
20112
|
let D = (e, t, n = 0) => {
|
|
@@ -20125,7 +20125,7 @@ var DL = /*#__PURE__*/ A.forwardRef(function({ onPointerDownOutside: e, style: t
|
|
|
20125
20125
|
function O(e) {
|
|
20126
20126
|
C.current = null, T.current = !1, s(e);
|
|
20127
20127
|
}
|
|
20128
|
-
return
|
|
20128
|
+
return /* @__PURE__ */ A.createElement(GP, {
|
|
20129
20129
|
"data-vaul-drawer-direction": m,
|
|
20130
20130
|
"data-vaul-drawer": "",
|
|
20131
20131
|
"data-vaul-delayed-snap-points": b ? "true" : "false",
|
|
@@ -20180,7 +20180,7 @@ var DL = /*#__PURE__*/ A.forwardRef(function({ onPointerDownOutside: e, style: t
|
|
|
20180
20180
|
});
|
|
20181
20181
|
});
|
|
20182
20182
|
DL.displayName = "Drawer.Content";
|
|
20183
|
-
var OL = 250, kL = 120, AL =
|
|
20183
|
+
var OL = 250, kL = 120, AL = /* @__PURE__ */ A.forwardRef(function({ preventCycle: e = !1, children: t, ...n }, r) {
|
|
20184
20184
|
let { closeDrawer: i, isDragging: a, snapPoints: o, activeSnapPoint: s, setActiveSnapPoint: c, dismissible: l, handleOnly: u, isOpen: d, onPress: f, onDrag: p } = jI(), m = A.useRef(null), h = A.useRef(!1);
|
|
20185
20185
|
function g() {
|
|
20186
20186
|
if (h.current) {
|
|
@@ -20217,7 +20217,7 @@ var OL = 250, kL = 120, AL = /*#__PURE__*/ A.forwardRef(function({ preventCycle:
|
|
|
20217
20217
|
function y() {
|
|
20218
20218
|
m.current && window.clearTimeout(m.current), h.current = !1;
|
|
20219
20219
|
}
|
|
20220
|
-
return
|
|
20220
|
+
return /* @__PURE__ */ A.createElement("div", {
|
|
20221
20221
|
onClick: g,
|
|
20222
20222
|
onPointerCancel: y,
|
|
20223
20223
|
onPointerDown: (e) => {
|
|
@@ -20231,7 +20231,7 @@ var OL = 250, kL = 120, AL = /*#__PURE__*/ A.forwardRef(function({ preventCycle:
|
|
|
20231
20231
|
"data-vaul-handle": "",
|
|
20232
20232
|
"aria-hidden": "true",
|
|
20233
20233
|
...n
|
|
20234
|
-
},
|
|
20234
|
+
}, /* @__PURE__ */ A.createElement("span", {
|
|
20235
20235
|
"data-vaul-handle-hitarea": "",
|
|
20236
20236
|
"aria-hidden": "true"
|
|
20237
20237
|
}, t));
|
|
@@ -20240,7 +20240,7 @@ AL.displayName = "Drawer.Handle";
|
|
|
20240
20240
|
function jL({ onDrag: e, onOpenChange: t, open: n, ...r }) {
|
|
20241
20241
|
let { onNestedDrag: i, onNestedOpenChange: a, onNestedRelease: o } = jI();
|
|
20242
20242
|
if (!i) throw Error("Drawer.NestedRoot must be placed in another drawer");
|
|
20243
|
-
return
|
|
20243
|
+
return /* @__PURE__ */ A.createElement(TL, {
|
|
20244
20244
|
nested: !0,
|
|
20245
20245
|
open: n,
|
|
20246
20246
|
onClose: () => {
|
|
@@ -20258,7 +20258,7 @@ function jL({ onDrag: e, onOpenChange: t, open: n, ...r }) {
|
|
|
20258
20258
|
}
|
|
20259
20259
|
function ML(e) {
|
|
20260
20260
|
let t = jI(), { container: n = t.container, ...r } = e;
|
|
20261
|
-
return
|
|
20261
|
+
return /* @__PURE__ */ A.createElement(UP, {
|
|
20262
20262
|
container: n,
|
|
20263
20263
|
...r
|
|
20264
20264
|
});
|
|
@@ -22825,11 +22825,11 @@ function cB(e, t) {
|
|
|
22825
22825
|
for (a = 0; a < r.length; a++) i = r[a], !(t.indexOf(i) >= 0) && (n[i] = e[i]);
|
|
22826
22826
|
return n;
|
|
22827
22827
|
}
|
|
22828
|
-
var lB =
|
|
22828
|
+
var lB = /* @__PURE__ */ P(function(e, t) {
|
|
22829
22829
|
var n = e.children, r = fB(sB(e, Wz)), i = r.open, a = sB(r, Gz);
|
|
22830
22830
|
return te(t, function() {
|
|
22831
22831
|
return { open: i };
|
|
22832
|
-
}, [i]),
|
|
22832
|
+
}, [i]), /* @__PURE__ */ A.createElement(j, null, n(aB(aB({}, a), {}, { open: i })));
|
|
22833
22833
|
});
|
|
22834
22834
|
lB.displayName = "Dropzone";
|
|
22835
22835
|
var uB = {
|
|
@@ -25790,53 +25790,53 @@ var uW = (e) => {
|
|
|
25790
25790
|
case "error": return gW;
|
|
25791
25791
|
default: return null;
|
|
25792
25792
|
}
|
|
25793
|
-
}, dW = Array(12).fill(0), fW = ({ visible: e, className: t }) =>
|
|
25793
|
+
}, dW = Array(12).fill(0), fW = ({ visible: e, className: t }) => /* @__PURE__ */ A.createElement("div", {
|
|
25794
25794
|
className: ["sonner-loading-wrapper", t].filter(Boolean).join(" "),
|
|
25795
25795
|
"data-visible": e
|
|
25796
|
-
},
|
|
25796
|
+
}, /* @__PURE__ */ A.createElement("div", { className: "sonner-spinner" }, dW.map((e, t) => /* @__PURE__ */ A.createElement("div", {
|
|
25797
25797
|
className: "sonner-loading-bar",
|
|
25798
25798
|
key: `spinner-bar-${t}`
|
|
25799
|
-
})))), pW =
|
|
25799
|
+
})))), pW = /* @__PURE__ */ A.createElement("svg", {
|
|
25800
25800
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25801
25801
|
viewBox: "0 0 20 20",
|
|
25802
25802
|
fill: "currentColor",
|
|
25803
25803
|
height: "20",
|
|
25804
25804
|
width: "20"
|
|
25805
|
-
},
|
|
25805
|
+
}, /* @__PURE__ */ A.createElement("path", {
|
|
25806
25806
|
fillRule: "evenodd",
|
|
25807
25807
|
d: "M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z",
|
|
25808
25808
|
clipRule: "evenodd"
|
|
25809
|
-
})), mW =
|
|
25809
|
+
})), mW = /* @__PURE__ */ A.createElement("svg", {
|
|
25810
25810
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25811
25811
|
viewBox: "0 0 24 24",
|
|
25812
25812
|
fill: "currentColor",
|
|
25813
25813
|
height: "20",
|
|
25814
25814
|
width: "20"
|
|
25815
|
-
},
|
|
25815
|
+
}, /* @__PURE__ */ A.createElement("path", {
|
|
25816
25816
|
fillRule: "evenodd",
|
|
25817
25817
|
d: "M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z",
|
|
25818
25818
|
clipRule: "evenodd"
|
|
25819
|
-
})), hW =
|
|
25819
|
+
})), hW = /* @__PURE__ */ A.createElement("svg", {
|
|
25820
25820
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25821
25821
|
viewBox: "0 0 20 20",
|
|
25822
25822
|
fill: "currentColor",
|
|
25823
25823
|
height: "20",
|
|
25824
25824
|
width: "20"
|
|
25825
|
-
},
|
|
25825
|
+
}, /* @__PURE__ */ A.createElement("path", {
|
|
25826
25826
|
fillRule: "evenodd",
|
|
25827
25827
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z",
|
|
25828
25828
|
clipRule: "evenodd"
|
|
25829
|
-
})), gW =
|
|
25829
|
+
})), gW = /* @__PURE__ */ A.createElement("svg", {
|
|
25830
25830
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25831
25831
|
viewBox: "0 0 20 20",
|
|
25832
25832
|
fill: "currentColor",
|
|
25833
25833
|
height: "20",
|
|
25834
25834
|
width: "20"
|
|
25835
|
-
},
|
|
25835
|
+
}, /* @__PURE__ */ A.createElement("path", {
|
|
25836
25836
|
fillRule: "evenodd",
|
|
25837
25837
|
d: "M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z",
|
|
25838
25838
|
clipRule: "evenodd"
|
|
25839
|
-
})), _W =
|
|
25839
|
+
})), _W = /* @__PURE__ */ A.createElement("svg", {
|
|
25840
25840
|
xmlns: "http://www.w3.org/2000/svg",
|
|
25841
25841
|
width: "12",
|
|
25842
25842
|
height: "12",
|
|
@@ -25846,12 +25846,12 @@ var uW = (e) => {
|
|
|
25846
25846
|
strokeWidth: "1.5",
|
|
25847
25847
|
strokeLinecap: "round",
|
|
25848
25848
|
strokeLinejoin: "round"
|
|
25849
|
-
},
|
|
25849
|
+
}, /* @__PURE__ */ A.createElement("line", {
|
|
25850
25850
|
x1: "18",
|
|
25851
25851
|
y1: "6",
|
|
25852
25852
|
x2: "6",
|
|
25853
25853
|
y2: "18"
|
|
25854
|
-
}),
|
|
25854
|
+
}), /* @__PURE__ */ A.createElement("line", {
|
|
25855
25855
|
x1: "6",
|
|
25856
25856
|
y1: "6",
|
|
25857
25857
|
x2: "18",
|
|
@@ -26096,16 +26096,16 @@ var FW = (e) => {
|
|
|
26096
26096
|
n.delete && (Se(), n.onDismiss == null || n.onDismiss.call(n, n));
|
|
26097
26097
|
}, [Se, n.delete]);
|
|
26098
26098
|
function Ce() {
|
|
26099
|
-
return w?.loading ?
|
|
26099
|
+
return w?.loading ? /* @__PURE__ */ A.createElement("div", {
|
|
26100
26100
|
className: NW(C?.loader, n?.classNames?.loader, "sonner-loader"),
|
|
26101
26101
|
"data-visible": U === "loading"
|
|
26102
|
-
}, w.loading) :
|
|
26102
|
+
}, w.loading) : /* @__PURE__ */ A.createElement(fW, {
|
|
26103
26103
|
className: NW(C?.loader, n?.classNames?.loader),
|
|
26104
26104
|
visible: U === "loading"
|
|
26105
26105
|
});
|
|
26106
26106
|
}
|
|
26107
26107
|
let we = n.icon || w?.[U] || uW(U);
|
|
26108
|
-
return
|
|
26108
|
+
return /* @__PURE__ */ A.createElement("li", {
|
|
26109
26109
|
tabIndex: 0,
|
|
26110
26110
|
ref: ae,
|
|
26111
26111
|
className: NW(_, ce, C?.toast, n?.classNames?.toast, C?.default, C?.[U], n?.classNames?.[U]),
|
|
@@ -26182,7 +26182,7 @@ var FW = (e) => {
|
|
|
26182
26182
|
}
|
|
26183
26183
|
(Math.abs(s.x) > 0 || Math.abs(s.y) > 0) && te(!0), (n = ae.current) == null || n.style.setProperty("--swipe-amount-x", `${s.x}px`), (r = ae.current) == null || r.style.setProperty("--swipe-amount-y", `${s.y}px`);
|
|
26184
26184
|
}
|
|
26185
|
-
}, de && !n.jsx && U !== "loading" ?
|
|
26185
|
+
}, de && !n.jsx && U !== "loading" ? /* @__PURE__ */ A.createElement("button", {
|
|
26186
26186
|
"aria-label": T,
|
|
26187
26187
|
"data-disabled": xe,
|
|
26188
26188
|
"data-close-button": !0,
|
|
@@ -26190,19 +26190,19 @@ var FW = (e) => {
|
|
|
26190
26190
|
Se(), n.onDismiss == null || n.onDismiss.call(n, n);
|
|
26191
26191
|
},
|
|
26192
26192
|
className: NW(C?.closeButton, n?.classNames?.closeButton)
|
|
26193
|
-
}, w?.close ?? _W) : null, (U || n.icon || n.promise) && n.icon !== null && (w?.[U] !== null || n.icon) ?
|
|
26193
|
+
}, w?.close ?? _W) : null, (U || n.icon || n.promise) && n.icon !== null && (w?.[U] !== null || n.icon) ? /* @__PURE__ */ A.createElement("div", {
|
|
26194
26194
|
"data-icon": "",
|
|
26195
26195
|
className: NW(C?.icon, n?.classNames?.icon)
|
|
26196
|
-
}, n.promise || n.type === "loading" && !n.icon ? n.icon || Ce() : null, n.type === "loading" ? null : we) : null,
|
|
26196
|
+
}, n.promise || n.type === "loading" && !n.icon ? n.icon || Ce() : null, n.type === "loading" ? null : we) : null, /* @__PURE__ */ A.createElement("div", {
|
|
26197
26197
|
"data-content": "",
|
|
26198
26198
|
className: NW(C?.content, n?.classNames?.content)
|
|
26199
|
-
},
|
|
26199
|
+
}, /* @__PURE__ */ A.createElement("div", {
|
|
26200
26200
|
"data-title": "",
|
|
26201
26201
|
className: NW(C?.title, n?.classNames?.title)
|
|
26202
|
-
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ?
|
|
26202
|
+
}, n.jsx ? n.jsx : typeof n.title == "function" ? n.title() : n.title), n.description ? /* @__PURE__ */ A.createElement("div", {
|
|
26203
26203
|
"data-description": "",
|
|
26204
26204
|
className: NW(v, le, C?.description, n?.classNames?.description)
|
|
26205
|
-
}, typeof n.description == "function" ? n.description() : n.description) : null),
|
|
26205
|
+
}, typeof n.description == "function" ? n.description() : n.description) : null), /* @__PURE__ */ A.isValidElement(n.cancel) ? n.cancel : n.cancel && wW(n.cancel) ? /* @__PURE__ */ A.createElement("button", {
|
|
26206
26206
|
"data-button": !0,
|
|
26207
26207
|
"data-cancel": !0,
|
|
26208
26208
|
style: n.cancelButtonStyle || h,
|
|
@@ -26210,7 +26210,7 @@ var FW = (e) => {
|
|
|
26210
26210
|
wW(n.cancel) && se && (n.cancel.onClick == null || n.cancel.onClick.call(n.cancel, e), Se());
|
|
26211
26211
|
},
|
|
26212
26212
|
className: NW(C?.cancelButton, n?.classNames?.cancelButton)
|
|
26213
|
-
}, n.cancel.label) : null,
|
|
26213
|
+
}, n.cancel.label) : null, /* @__PURE__ */ A.isValidElement(n.action) ? n.action : n.action && wW(n.action) ? /* @__PURE__ */ A.createElement("button", {
|
|
26214
26214
|
"data-button": !0,
|
|
26215
26215
|
"data-action": !0,
|
|
26216
26216
|
style: n.actionButtonStyle || g,
|
|
@@ -26249,7 +26249,7 @@ function LW(e, t) {
|
|
|
26249
26249
|
}) : o(a);
|
|
26250
26250
|
}), n;
|
|
26251
26251
|
}
|
|
26252
|
-
var RW =
|
|
26252
|
+
var RW = /* @__PURE__ */ A.forwardRef(function(e, t) {
|
|
26253
26253
|
let { id: n, invert: r, position: i = "bottom-right", hotkey: a = ["altKey", "KeyT"], expand: o, closeButton: s, className: c, offset: l, mobileOffset: u, theme: d = "light", richColors: f, duration: p, style: m, visibleToasts: h = TW, toastOptions: g, dir: _ = IW(), gap: v = AW, icons: y, containerAriaLabel: b = "Notifications" } = e, [x, S] = A.useState([]), C = A.useMemo(() => n ? x.filter((e) => e.toasterId === n) : x.filter((e) => !e.toasterId), [x, n]), w = A.useMemo(() => Array.from(new Set([i].concat(C.filter((e) => e.position).map((e) => e.position)))), [C, i]), [T, E] = A.useState([]), [D, O] = A.useState(!1), [k, j] = A.useState(!1), [M, N] = A.useState(d === "system" ? typeof window < "u" && window.matchMedia && window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light" : d), P = A.useRef(null), F = a.join("+").replace(/Key/g, "").replace(/Digit/g, ""), I = A.useRef(null), L = A.useRef(!1), R = A.useCallback((e) => {
|
|
26254
26254
|
S((t) => (t.find((t) => t.id === e.id)?.delete || bW.dismiss(e.id), t.filter(({ id: t }) => t !== e.id)));
|
|
26255
26255
|
}, []);
|
|
@@ -26313,7 +26313,7 @@ var RW = /*#__PURE__*/ A.forwardRef(function(e, t) {
|
|
|
26313
26313
|
if (P.current) return () => {
|
|
26314
26314
|
I.current && (I.current.focus({ preventScroll: !0 }), I.current = null, L.current = !1);
|
|
26315
26315
|
};
|
|
26316
|
-
}, [P.current]),
|
|
26316
|
+
}, [P.current]), /* @__PURE__ */ A.createElement("section", {
|
|
26317
26317
|
ref: t,
|
|
26318
26318
|
"aria-label": `${b} ${F}`,
|
|
26319
26319
|
tabIndex: -1,
|
|
@@ -26323,7 +26323,7 @@ var RW = /*#__PURE__*/ A.forwardRef(function(e, t) {
|
|
|
26323
26323
|
suppressHydrationWarning: !0
|
|
26324
26324
|
}, w.map((t, n) => {
|
|
26325
26325
|
let [i, a] = t.split("-");
|
|
26326
|
-
return C.length ?
|
|
26326
|
+
return C.length ? /* @__PURE__ */ A.createElement("ol", {
|
|
26327
26327
|
key: t,
|
|
26328
26328
|
dir: _ === "auto" ? IW() : _,
|
|
26329
26329
|
tabIndex: -1,
|
|
@@ -26356,7 +26356,7 @@ var RW = /*#__PURE__*/ A.forwardRef(function(e, t) {
|
|
|
26356
26356
|
e.target instanceof HTMLElement && e.target.dataset.dismissible === "false" || j(!0);
|
|
26357
26357
|
},
|
|
26358
26358
|
onPointerUp: () => j(!1)
|
|
26359
|
-
}, C.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) =>
|
|
26359
|
+
}, C.filter((e) => !e.position && n === 0 || e.position === t).map((n, i) => /* @__PURE__ */ A.createElement(FW, {
|
|
26360
26360
|
key: n.id,
|
|
26361
26361
|
icons: y,
|
|
26362
26362
|
index: i,
|
|
@@ -28620,7 +28620,7 @@ function QK() {
|
|
|
28620
28620
|
//#endregion
|
|
28621
28621
|
//#region ../../node_modules/@tanstack/react-table/build/lib/index.mjs
|
|
28622
28622
|
function $K(e, t) {
|
|
28623
|
-
return e ? eq(e) ?
|
|
28623
|
+
return e ? eq(e) ? /* @__PURE__ */ k.createElement(e, t) : e : null;
|
|
28624
28624
|
}
|
|
28625
28625
|
function eq(e) {
|
|
28626
28626
|
return tq(e) || typeof e == "function" || nq(e);
|
|
@@ -30481,20 +30481,35 @@ function WJ(e) {
|
|
|
30481
30481
|
for (let t in e) Object.prototype.hasOwnProperty.call(e, t) && (r[t] = WJ(e[t]));
|
|
30482
30482
|
return r;
|
|
30483
30483
|
}
|
|
30484
|
-
var GJ = {
|
|
30484
|
+
var GJ = (e) => /^\w*$/.test(e), KJ = (e) => e === void 0, qJ = (e) => Array.isArray(e) ? e.filter(Boolean) : [], JJ = (e) => qJ(e.replace(/["|']|\]/g, "").split(/\.|\[/)), YJ = (e, t, n) => {
|
|
30485
|
+
if (!t || !zJ(e)) return n;
|
|
30486
|
+
let r = (GJ(t) ? [t] : JJ(t)).reduce((e, t) => LJ(e) ? void 0 : e[t], e);
|
|
30487
|
+
return KJ(r) || r === e ? KJ(e[t]) ? n : e[t] : r;
|
|
30488
|
+
}, XJ = (e) => typeof e == "boolean", ZJ = (e) => typeof e == "function", QJ = (e, t, n) => {
|
|
30489
|
+
let r = -1, i = GJ(t) ? [t] : JJ(t), a = i.length, o = a - 1;
|
|
30490
|
+
for (; ++r < a;) {
|
|
30491
|
+
let t = i[r], a = n;
|
|
30492
|
+
if (r !== o) {
|
|
30493
|
+
let n = e[t];
|
|
30494
|
+
a = zJ(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
|
|
30495
|
+
}
|
|
30496
|
+
if (t === "__proto__" || t === "constructor" || t === "prototype") return;
|
|
30497
|
+
e[t] = a, e = e[t];
|
|
30498
|
+
}
|
|
30499
|
+
}, $J = {
|
|
30485
30500
|
BLUR: "blur",
|
|
30486
30501
|
FOCUS_OUT: "focusout",
|
|
30487
30502
|
CHANGE: "change",
|
|
30488
30503
|
SUBMIT: "submit",
|
|
30489
30504
|
TRIGGER: "trigger",
|
|
30490
30505
|
VALID: "valid"
|
|
30491
|
-
},
|
|
30506
|
+
}, eY = {
|
|
30492
30507
|
onBlur: "onBlur",
|
|
30493
30508
|
onChange: "onChange",
|
|
30494
30509
|
onSubmit: "onSubmit",
|
|
30495
30510
|
onTouched: "onTouched",
|
|
30496
30511
|
all: "all"
|
|
30497
|
-
},
|
|
30512
|
+
}, tY = {
|
|
30498
30513
|
max: "max",
|
|
30499
30514
|
min: "min",
|
|
30500
30515
|
maxLength: "maxLength",
|
|
@@ -30502,37 +30517,16 @@ var GJ = {
|
|
|
30502
30517
|
pattern: "pattern",
|
|
30503
30518
|
required: "required",
|
|
30504
30519
|
validate: "validate"
|
|
30505
|
-
},
|
|
30506
|
-
"__proto__",
|
|
30507
|
-
"constructor",
|
|
30508
|
-
"prototype"
|
|
30509
|
-
], XJ = (e) => /^\w*$/.test(e), ZJ = (e) => e === void 0, QJ = (e) => e.split(/[.[\]'"]/g).filter(Boolean), $J = (e, t, n) => {
|
|
30510
|
-
if (!t || !zJ(e)) return n;
|
|
30511
|
-
let r = XJ(t) ? [t] : QJ(t);
|
|
30512
|
-
if (r.some((e) => YJ.includes(e))) return n;
|
|
30513
|
-
let i = r.reduce((e, t) => LJ(e) ? void 0 : e[t], e);
|
|
30514
|
-
return ZJ(i) || i === e ? ZJ(e[t]) ? n : e[t] : i;
|
|
30515
|
-
}, eY = (e) => typeof e == "boolean", tY = (e) => typeof e == "function", nY = (e, t, n) => {
|
|
30516
|
-
let r = -1, i = XJ(t) ? [t] : QJ(t), a = i.length, o = a - 1;
|
|
30517
|
-
for (; ++r < a;) {
|
|
30518
|
-
let t = i[r], a = n;
|
|
30519
|
-
if (r !== o) {
|
|
30520
|
-
let n = e[t];
|
|
30521
|
-
a = zJ(n) || Array.isArray(n) ? n : isNaN(+i[r + 1]) ? {} : [];
|
|
30522
|
-
}
|
|
30523
|
-
if (YJ.includes(t)) return;
|
|
30524
|
-
e[t] = a, e = e[t];
|
|
30525
|
-
}
|
|
30526
|
-
}, rY = A.createContext(null);
|
|
30520
|
+
}, nY = "root", rY = A.createContext(null);
|
|
30527
30521
|
rY.displayName = "HookFormControlContext";
|
|
30528
30522
|
var iY = () => A.useContext(rY), aY = (e, t, n, r = !0) => {
|
|
30529
30523
|
let i = {};
|
|
30530
30524
|
for (let a in e) Object.defineProperty(i, a, { get: () => {
|
|
30531
30525
|
let i = a;
|
|
30532
|
-
return t._proxyFormState[i] !==
|
|
30526
|
+
return t._proxyFormState[i] !== eY.all && (t._proxyFormState[i] = !r || eY.all), n && (n[i] = !0), e[i];
|
|
30533
30527
|
} });
|
|
30534
30528
|
return i;
|
|
30535
|
-
}, oY =
|
|
30529
|
+
}, oY = typeof window < "u" ? A.useLayoutEffect : A.useEffect;
|
|
30536
30530
|
function sY(e) {
|
|
30537
30531
|
let t = iY(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = A.useState(() => ({
|
|
30538
30532
|
...n._formState,
|
|
@@ -30566,14 +30560,13 @@ function sY(e) {
|
|
|
30566
30560
|
c.current.isValid && n._setValid(!0);
|
|
30567
30561
|
}, [n]), A.useMemo(() => aY(o, n, c.current, !1), [o, n]);
|
|
30568
30562
|
}
|
|
30569
|
-
var cY = (e) => typeof e == "string", lY = (e, t, n, r, i) => cY(e) ? (r && t.watch.add(e),
|
|
30570
|
-
function
|
|
30563
|
+
var cY = (e) => typeof e == "string", lY = (e, t, n, r, i) => cY(e) ? (r && t.watch.add(e), YJ(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), YJ(n, e))) : (r && (t.watchAll = !0), n), uY = (e) => LJ(e) || !RJ(e);
|
|
30564
|
+
function dY(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
30571
30565
|
if (e === t) return !0;
|
|
30572
30566
|
if (uY(e) || uY(t)) return Object.is(e, t);
|
|
30573
30567
|
if (IJ(e) && IJ(t)) return Object.is(e.getTime(), t.getTime());
|
|
30574
30568
|
let r = Object.keys(e), i = Object.keys(t);
|
|
30575
30569
|
if (r.length !== i.length) return !1;
|
|
30576
|
-
if (dY(e, r) || dY(t, i)) return Object.is(e, t);
|
|
30577
30570
|
if (n.has(e) || n.has(t)) return !0;
|
|
30578
30571
|
n.add(e), n.add(t);
|
|
30579
30572
|
for (let i of r) {
|
|
@@ -30581,12 +30574,12 @@ function fY(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
30581
30574
|
if (!(i in t)) return !1;
|
|
30582
30575
|
if (i !== "ref") {
|
|
30583
30576
|
let e = t[i];
|
|
30584
|
-
if (IJ(r) && IJ(e) || (zJ(r) || Array.isArray(r)) && (zJ(e) || Array.isArray(e)) ? !
|
|
30577
|
+
if (IJ(r) && IJ(e) || (zJ(r) || Array.isArray(r)) && (zJ(e) || Array.isArray(e)) ? !dY(r, e, n) : !Object.is(r, e)) return !1;
|
|
30585
30578
|
}
|
|
30586
30579
|
}
|
|
30587
30580
|
return !0;
|
|
30588
30581
|
}
|
|
30589
|
-
function
|
|
30582
|
+
function fY(e) {
|
|
30590
30583
|
let t = iY(), { 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
30584
|
l.current = s;
|
|
30592
30585
|
let [p, m] = A.useState(() => {
|
|
@@ -30604,7 +30597,7 @@ function pY(e) {
|
|
|
30604
30597
|
let t = lY(r, n._names, e || n._formValues, !1, c.current);
|
|
30605
30598
|
if (l.current) {
|
|
30606
30599
|
let e = l.current(t);
|
|
30607
|
-
|
|
30600
|
+
dY(e, u.current) || (m(e), u.current = e);
|
|
30608
30601
|
} else m(t);
|
|
30609
30602
|
}
|
|
30610
30603
|
}, [
|
|
@@ -30613,7 +30606,7 @@ function pY(e) {
|
|
|
30613
30606
|
a,
|
|
30614
30607
|
r
|
|
30615
30608
|
]);
|
|
30616
|
-
oY(() => ((d.current !== n || !
|
|
30609
|
+
oY(() => ((d.current !== n || !dY(f.current, r)) && (d.current = n, f.current = r, g()), n._subscribe({
|
|
30617
30610
|
name: r,
|
|
30618
30611
|
formState: { values: !0 },
|
|
30619
30612
|
exact: o,
|
|
@@ -30628,7 +30621,7 @@ function pY(e) {
|
|
|
30628
30621
|
]), A.useEffect(() => n._removeUnmounted());
|
|
30629
30622
|
let _ = d.current !== n, v = f.current, y = A.useMemo(() => {
|
|
30630
30623
|
if (a) return null;
|
|
30631
|
-
let e = !_ && !
|
|
30624
|
+
let e = !_ && !dY(v, r);
|
|
30632
30625
|
return _ || e ? h() : null;
|
|
30633
30626
|
}, [
|
|
30634
30627
|
a,
|
|
@@ -30639,11 +30632,11 @@ function pY(e) {
|
|
|
30639
30632
|
]);
|
|
30640
30633
|
return y === null ? p : y;
|
|
30641
30634
|
}
|
|
30642
|
-
function
|
|
30643
|
-
let t = iY(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = VJ(i._names.array, n), l =
|
|
30635
|
+
function pY(e) {
|
|
30636
|
+
let t = iY(), { name: n, disabled: r, control: i = t, shouldUnregister: a, defaultValue: o, exact: s = !0 } = e, c = VJ(i._names.array, n), l = fY({
|
|
30644
30637
|
control: i,
|
|
30645
30638
|
name: n,
|
|
30646
|
-
defaultValue: A.useMemo(() =>
|
|
30639
|
+
defaultValue: A.useMemo(() => YJ(i._formValues, n, YJ(i._defaultValues, n, o)), [
|
|
30647
30640
|
i,
|
|
30648
30641
|
n,
|
|
30649
30642
|
o
|
|
@@ -30656,60 +30649,54 @@ function mY(e) {
|
|
|
30656
30649
|
}), d = A.useRef(e), f = A.useRef(i.register(n, {
|
|
30657
30650
|
...e.rules,
|
|
30658
30651
|
value: l,
|
|
30659
|
-
...
|
|
30652
|
+
...XJ(e.disabled) ? { disabled: e.disabled } : {}
|
|
30660
30653
|
}));
|
|
30661
30654
|
d.current = e;
|
|
30662
30655
|
let p = A.useMemo(() => Object.defineProperties({}, {
|
|
30663
30656
|
invalid: {
|
|
30664
30657
|
enumerable: !0,
|
|
30665
|
-
get: () =>
|
|
30658
|
+
get: () => !!YJ(u.errors, n)
|
|
30666
30659
|
},
|
|
30667
30660
|
isDirty: {
|
|
30668
30661
|
enumerable: !0,
|
|
30669
|
-
get: () =>
|
|
30662
|
+
get: () => !!YJ(u.dirtyFields, n)
|
|
30670
30663
|
},
|
|
30671
30664
|
isTouched: {
|
|
30672
30665
|
enumerable: !0,
|
|
30673
|
-
get: () =>
|
|
30666
|
+
get: () => !!YJ(u.touchedFields, n)
|
|
30674
30667
|
},
|
|
30675
30668
|
isValidating: {
|
|
30676
30669
|
enumerable: !0,
|
|
30677
|
-
get: () =>
|
|
30670
|
+
get: () => !!YJ(u.validatingFields, n)
|
|
30678
30671
|
},
|
|
30679
30672
|
error: {
|
|
30680
30673
|
enumerable: !0,
|
|
30681
|
-
get: () =>
|
|
30674
|
+
get: () => YJ(u.errors, n)
|
|
30682
30675
|
}
|
|
30683
|
-
}), [u, n]), m = A.useCallback((e) => {
|
|
30684
|
-
|
|
30685
|
-
|
|
30686
|
-
|
|
30687
|
-
|
|
30688
|
-
|
|
30689
|
-
|
|
30690
|
-
value: BJ(e),
|
|
30691
|
-
name: n
|
|
30692
|
-
},
|
|
30693
|
-
type: GJ.CHANGE
|
|
30694
|
-
});
|
|
30695
|
-
}, [n, i]), h = A.useCallback(() => f.current.onBlur({
|
|
30676
|
+
}), [u, n]), m = A.useCallback((e) => f.current.onChange({
|
|
30677
|
+
target: {
|
|
30678
|
+
value: BJ(e),
|
|
30679
|
+
name: n
|
|
30680
|
+
},
|
|
30681
|
+
type: $J.CHANGE
|
|
30682
|
+
}), [n]), h = A.useCallback(() => f.current.onBlur({
|
|
30696
30683
|
target: {
|
|
30697
|
-
value:
|
|
30684
|
+
value: YJ(i._formValues, n),
|
|
30698
30685
|
name: n
|
|
30699
30686
|
},
|
|
30700
|
-
type:
|
|
30687
|
+
type: $J.BLUR
|
|
30701
30688
|
}), [n, i._formValues]), g = A.useCallback((e) => {
|
|
30702
|
-
let t =
|
|
30689
|
+
let t = YJ(i._fields, n);
|
|
30703
30690
|
t && t._f && e && (t._f.ref = {
|
|
30704
|
-
focus: () =>
|
|
30705
|
-
select: () =>
|
|
30706
|
-
setCustomValidity: (t) =>
|
|
30707
|
-
reportValidity: () =>
|
|
30691
|
+
focus: () => ZJ(e.focus) && e.focus(),
|
|
30692
|
+
select: () => ZJ(e.select) && e.select(),
|
|
30693
|
+
setCustomValidity: (t) => ZJ(e.setCustomValidity) && e.setCustomValidity(t),
|
|
30694
|
+
reportValidity: () => ZJ(e.reportValidity) && e.reportValidity()
|
|
30708
30695
|
});
|
|
30709
30696
|
}, [i._fields, n]), _ = A.useMemo(() => ({
|
|
30710
30697
|
name: n,
|
|
30711
30698
|
value: l,
|
|
30712
|
-
...
|
|
30699
|
+
...XJ(r) || u.disabled ? { disabled: u.disabled || r } : {},
|
|
30713
30700
|
onChange: m,
|
|
30714
30701
|
onBlur: h,
|
|
30715
30702
|
ref: g
|
|
@@ -30726,15 +30713,15 @@ function mY(e) {
|
|
|
30726
30713
|
let e = i._options.shouldUnregister || a;
|
|
30727
30714
|
i.register(n, {
|
|
30728
30715
|
...d.current.rules,
|
|
30729
|
-
...
|
|
30716
|
+
...XJ(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
30730
30717
|
});
|
|
30731
30718
|
let t = (e, t) => {
|
|
30732
|
-
let n =
|
|
30719
|
+
let n = YJ(i._fields, e);
|
|
30733
30720
|
n && n._f && (n._f.mount = t);
|
|
30734
30721
|
};
|
|
30735
30722
|
if (t(n, !0), e) {
|
|
30736
|
-
let e = WJ(
|
|
30737
|
-
|
|
30723
|
+
let e = WJ(YJ(i._options.defaultValues, n, d.current.defaultValue));
|
|
30724
|
+
QJ(i._defaultValues, n, e), KJ(YJ(i._formValues, n)) && QJ(i._formValues, n, e);
|
|
30738
30725
|
}
|
|
30739
30726
|
return !c && i.register(n), () => {
|
|
30740
30727
|
(c ? e && !i._state.action : e) ? i.unregister(n) : t(n, !1);
|
|
@@ -30763,20 +30750,20 @@ function mY(e) {
|
|
|
30763
30750
|
p
|
|
30764
30751
|
]);
|
|
30765
30752
|
}
|
|
30766
|
-
var
|
|
30767
|
-
|
|
30768
|
-
var
|
|
30753
|
+
var mY = A.createContext(null);
|
|
30754
|
+
mY.displayName = "HookFormContext";
|
|
30755
|
+
var hY = (e, t, n, r, i) => t ? {
|
|
30769
30756
|
...n[e],
|
|
30770
30757
|
types: {
|
|
30771
30758
|
...n[e] && n[e].types ? n[e].types : {},
|
|
30772
30759
|
[r]: i || !0
|
|
30773
30760
|
}
|
|
30774
|
-
} : {},
|
|
30761
|
+
} : {}, gY = (e) => Array.isArray(e) ? e : [e], _Y = (e) => zJ(e) && !Object.keys(e).length, vY = (e) => e.type === "file", yY = (e) => {
|
|
30775
30762
|
if (!UJ) return !1;
|
|
30776
30763
|
let t = e ? e.ownerDocument : 0;
|
|
30777
30764
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
30778
|
-
},
|
|
30779
|
-
function
|
|
30765
|
+
}, bY = (e) => e.type === "radio";
|
|
30766
|
+
function xY(e, t) {
|
|
30780
30767
|
let n = t.slice(0, -1).length, r = 0;
|
|
30781
30768
|
for (; r < n;) {
|
|
30782
30769
|
if (LJ(e)) {
|
|
@@ -30787,22 +30774,22 @@ function CY(e, t) {
|
|
|
30787
30774
|
}
|
|
30788
30775
|
return e;
|
|
30789
30776
|
}
|
|
30790
|
-
function
|
|
30791
|
-
for (let t in e) if (e.hasOwnProperty(t) && !
|
|
30777
|
+
function SY(e) {
|
|
30778
|
+
for (let t in e) if (e.hasOwnProperty(t) && !KJ(e[t])) return !1;
|
|
30792
30779
|
return !0;
|
|
30793
30780
|
}
|
|
30794
|
-
function
|
|
30781
|
+
function CY(e, t) {
|
|
30795
30782
|
if (cY(t) && Object.prototype.hasOwnProperty.call(e, t)) return delete e[t], e;
|
|
30796
|
-
let n = Array.isArray(t) ? t :
|
|
30797
|
-
return r && delete r[a], i !== 0 && (zJ(r) &&
|
|
30783
|
+
let n = Array.isArray(t) ? t : GJ(t) ? [t] : JJ(t), r = n.length === 1 ? e : xY(e, n), i = n.length - 1, a = n[i];
|
|
30784
|
+
return r && delete r[a], i !== 0 && (zJ(r) && _Y(r) || Array.isArray(r) && SY(r)) && CY(e, n.slice(0, -1)), e;
|
|
30798
30785
|
}
|
|
30799
|
-
var
|
|
30786
|
+
var wY = {
|
|
30800
30787
|
value: !1,
|
|
30801
30788
|
isValid: !1
|
|
30802
|
-
},
|
|
30789
|
+
}, TY = {
|
|
30803
30790
|
value: !0,
|
|
30804
30791
|
isValid: !0
|
|
30805
|
-
},
|
|
30792
|
+
}, EY = (e) => {
|
|
30806
30793
|
if (Array.isArray(e)) {
|
|
30807
30794
|
if (e.length > 1) {
|
|
30808
30795
|
let t = e.filter((e) => e && e.checked && !e.disabled).map((e) => e.value);
|
|
@@ -30811,55 +30798,55 @@ var EY = {
|
|
|
30811
30798
|
isValid: !!t.length
|
|
30812
30799
|
};
|
|
30813
30800
|
}
|
|
30814
|
-
return e[0].checked && !e[0].disabled ? e[0].attributes && !
|
|
30801
|
+
return e[0].checked && !e[0].disabled ? e[0].attributes && !KJ(e[0].attributes.value) ? KJ(e[0].value) || e[0].value === "" ? TY : {
|
|
30815
30802
|
value: e[0].value,
|
|
30816
30803
|
isValid: !0
|
|
30817
|
-
} :
|
|
30804
|
+
} : TY : wY;
|
|
30818
30805
|
}
|
|
30819
|
-
return
|
|
30820
|
-
},
|
|
30806
|
+
return wY;
|
|
30807
|
+
}, DY = {
|
|
30821
30808
|
isValid: !1,
|
|
30822
30809
|
value: null
|
|
30823
|
-
},
|
|
30810
|
+
}, OY = (e) => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
|
|
30824
30811
|
isValid: !0,
|
|
30825
30812
|
value: t.value
|
|
30826
|
-
} : e,
|
|
30827
|
-
isOnSubmit: !e || e ===
|
|
30828
|
-
isOnBlur: e ===
|
|
30829
|
-
isOnChange: e ===
|
|
30830
|
-
isOnAll: e ===
|
|
30831
|
-
isOnTouch: e ===
|
|
30832
|
-
}),
|
|
30813
|
+
} : e, DY) : DY, kY = (e) => e instanceof RegExp, AY = (e) => ({
|
|
30814
|
+
isOnSubmit: !e || e === eY.onSubmit,
|
|
30815
|
+
isOnBlur: e === eY.onBlur,
|
|
30816
|
+
isOnChange: e === eY.onChange,
|
|
30817
|
+
isOnAll: e === eY.all,
|
|
30818
|
+
isOnTouch: e === eY.onTouched
|
|
30819
|
+
}), jY = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t) => e.startsWith(t) && /^\.\w+/.test(e.slice(t.length)))), MY = (e, t, n, r) => {
|
|
30833
30820
|
for (let i of n || Object.keys(e)) {
|
|
30834
|
-
let n =
|
|
30821
|
+
let n = YJ(e, i);
|
|
30835
30822
|
if (n) {
|
|
30836
30823
|
let { _f: e, ...a } = n;
|
|
30837
30824
|
if (e) {
|
|
30838
30825
|
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 (zJ(a) &&
|
|
30826
|
+
if (MY(a, t)) break;
|
|
30827
|
+
} else if (zJ(a) && MY(a, t)) break;
|
|
30841
30828
|
}
|
|
30842
30829
|
}
|
|
30843
|
-
},
|
|
30844
|
-
let r =
|
|
30845
|
-
return
|
|
30830
|
+
}, NY = (e, t, n) => {
|
|
30831
|
+
let r = gY(YJ(e, n));
|
|
30832
|
+
return QJ(r, nY, t[n]), QJ(e, n, r), e;
|
|
30846
30833
|
};
|
|
30847
|
-
function
|
|
30848
|
-
if (cY(e) || Array.isArray(e) && e.every(cY) ||
|
|
30834
|
+
function PY(e, t, n = "validate") {
|
|
30835
|
+
if (cY(e) || Array.isArray(e) && e.every(cY) || XJ(e) && !e) return {
|
|
30849
30836
|
type: n,
|
|
30850
30837
|
message: cY(e) ? e : "",
|
|
30851
30838
|
ref: t
|
|
30852
30839
|
};
|
|
30853
30840
|
}
|
|
30854
|
-
var
|
|
30841
|
+
var FY = (e) => zJ(e) && !kY(e) ? e : {
|
|
30855
30842
|
value: e,
|
|
30856
30843
|
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 =
|
|
30844
|
+
}, IY = async (e, t, n, r, i, a) => {
|
|
30845
|
+
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 = YJ(n, h);
|
|
30859
30846
|
if (!_ || t.has(h)) return {};
|
|
30860
30847
|
let y = s ? s[0] : o, b = (e) => {
|
|
30861
|
-
i && y.reportValidity && (y.setCustomValidity(
|
|
30862
|
-
}, x = {}, S =
|
|
30848
|
+
i && y.reportValidity && (y.setCustomValidity(XJ(e) ? "" : e || ""), y.reportValidity());
|
|
30849
|
+
}, x = {}, S = bY(o), C = FJ(o), w = S || C, T = (g || vY(o)) && KJ(o.value) && KJ(v) || yY(o) && o.value === "" || v === "" || Array.isArray(v) && !v.length || g && typeof v == "number" && isNaN(v), E = hY.bind(null, h, r, x), D = (e, t, n, r = tY.maxLength, i = tY.minLength) => {
|
|
30863
30850
|
let a = e ? t : n;
|
|
30864
30851
|
x[h] = {
|
|
30865
30852
|
type: e ? r : i,
|
|
@@ -30868,20 +30855,20 @@ var LY = (e) => zJ(e) && !jY(e) ? e : {
|
|
|
30868
30855
|
...E(e ? r : i, a)
|
|
30869
30856
|
};
|
|
30870
30857
|
};
|
|
30871
|
-
if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || LJ(v)) ||
|
|
30858
|
+
if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || LJ(v)) || XJ(v) && !v || C && !EY(s).isValid || S && !OY(s).isValid)) {
|
|
30872
30859
|
let { value: e, message: t } = cY(c) ? {
|
|
30873
30860
|
value: !!c,
|
|
30874
30861
|
message: c
|
|
30875
|
-
} :
|
|
30862
|
+
} : FY(c);
|
|
30876
30863
|
if (e && (x[h] = {
|
|
30877
|
-
type:
|
|
30864
|
+
type: tY.required,
|
|
30878
30865
|
message: t,
|
|
30879
30866
|
ref: y,
|
|
30880
|
-
...E(
|
|
30867
|
+
...E(tY.required, t)
|
|
30881
30868
|
}, !r)) return b(t), x;
|
|
30882
30869
|
}
|
|
30883
30870
|
if (!T && (!LJ(d) || !LJ(f))) {
|
|
30884
|
-
let e, t, n =
|
|
30871
|
+
let e, t, n = FY(f), i = FY(d);
|
|
30885
30872
|
if (!LJ(v) && !isNaN(v)) {
|
|
30886
30873
|
let r = o.valueAsNumber || v && +v;
|
|
30887
30874
|
LJ(n.value) || (e = r > n.value), LJ(i.value) || (t = r < i.value);
|
|
@@ -30889,39 +30876,39 @@ var LY = (e) => zJ(e) && !jY(e) ? e : {
|
|
|
30889
30876
|
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
30877
|
cY(n.value) && v && (e = s ? a(v) > a(n.value) : c ? v > n.value : r > new Date(n.value)), cY(i.value) && v && (t = s ? a(v) < a(i.value) : c ? v < i.value : r < new Date(i.value));
|
|
30891
30878
|
}
|
|
30892
|
-
if ((e || t) && (D(!!e, n.message, i.message,
|
|
30879
|
+
if ((e || t) && (D(!!e, n.message, i.message, tY.max, tY.min), !r)) return b(x[h].message), x;
|
|
30893
30880
|
}
|
|
30894
30881
|
if ((l || u) && !T && (cY(v) || a && Array.isArray(v))) {
|
|
30895
|
-
let e =
|
|
30882
|
+
let e = FY(l), t = FY(u), n = !LJ(e.value) && v.length > +e.value, i = !LJ(t.value) && v.length < +t.value;
|
|
30896
30883
|
if ((n || i) && (D(n, e.message, t.message), !r)) return b(x[h].message), x;
|
|
30897
30884
|
}
|
|
30898
30885
|
if (p && !T && cY(v)) {
|
|
30899
|
-
let { value: e, message: t } =
|
|
30900
|
-
if (
|
|
30901
|
-
type:
|
|
30886
|
+
let { value: e, message: t } = FY(p);
|
|
30887
|
+
if (kY(e) && !v.match(e) && (x[h] = {
|
|
30888
|
+
type: tY.pattern,
|
|
30902
30889
|
message: t,
|
|
30903
30890
|
ref: o,
|
|
30904
|
-
...E(
|
|
30891
|
+
...E(tY.pattern, t)
|
|
30905
30892
|
}, !r)) return b(t), x;
|
|
30906
30893
|
}
|
|
30907
30894
|
if (m) {
|
|
30908
|
-
if (
|
|
30909
|
-
let e =
|
|
30895
|
+
if (ZJ(m)) {
|
|
30896
|
+
let e = PY(await m(v, n), y);
|
|
30910
30897
|
if (e && (x[h] = {
|
|
30911
30898
|
...e,
|
|
30912
|
-
...E(
|
|
30899
|
+
...E(tY.validate, e.message)
|
|
30913
30900
|
}, !r)) return b(e.message), x;
|
|
30914
30901
|
} else if (zJ(m)) {
|
|
30915
30902
|
let e = {};
|
|
30916
30903
|
for (let t in m) {
|
|
30917
|
-
if (!
|
|
30918
|
-
let i =
|
|
30904
|
+
if (!_Y(e) && !r) break;
|
|
30905
|
+
let i = PY(await m[t](v, n), y, t);
|
|
30919
30906
|
i && (e = {
|
|
30920
30907
|
...i,
|
|
30921
30908
|
...E(t, i.message)
|
|
30922
30909
|
}, b(i.message), r && (x[h] = e));
|
|
30923
30910
|
}
|
|
30924
|
-
if (!
|
|
30911
|
+
if (!_Y(e) && (x[h] = {
|
|
30925
30912
|
ref: y,
|
|
30926
30913
|
...e
|
|
30927
30914
|
}, !r)) return x;
|
|
@@ -30929,33 +30916,33 @@ var LY = (e) => zJ(e) && !jY(e) ? e : {
|
|
|
30929
30916
|
}
|
|
30930
30917
|
return b(!0), x;
|
|
30931
30918
|
};
|
|
30932
|
-
|
|
30933
|
-
var
|
|
30919
|
+
eY.onSubmit, eY.onChange;
|
|
30920
|
+
var LY = () => {
|
|
30934
30921
|
if (typeof crypto < "u" && crypto.randomUUID) return crypto.randomUUID();
|
|
30935
30922
|
let e = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
|
|
30936
30923
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
30937
30924
|
let n = (Math.random() * 16 + e) % 16 | 0;
|
|
30938
30925
|
return (t == "x" ? n : n & 3 | 8).toString(16);
|
|
30939
30926
|
});
|
|
30940
|
-
},
|
|
30941
|
-
function
|
|
30927
|
+
}, RY = (e, t, n = {}) => n.shouldFocus || KJ(n.shouldFocus) ? n.focusName || `${e}.${KJ(n.focusIndex) ? t : n.focusIndex}.` : "", zY = (e, t) => [...e, ...gY(t)], BY = (e) => Array.isArray(e) ? e.map(() => void 0) : void 0;
|
|
30928
|
+
function VY(e, t, n) {
|
|
30942
30929
|
return [
|
|
30943
30930
|
...e.slice(0, t),
|
|
30944
|
-
...
|
|
30931
|
+
...gY(n),
|
|
30945
30932
|
...e.slice(t)
|
|
30946
30933
|
];
|
|
30947
30934
|
}
|
|
30948
|
-
var
|
|
30949
|
-
function
|
|
30935
|
+
var HY = (e, t, n) => Array.isArray(e) ? (KJ(e[n]) && (e[n] = void 0), e.splice(n, 0, e.splice(t, 1)[0]), e) : [], UY = (e, t) => [...gY(t), ...gY(e)];
|
|
30936
|
+
function WY(e, t) {
|
|
30950
30937
|
let n = 0, r = [...e];
|
|
30951
30938
|
for (let e of t) r.splice(e - n, 1), n++;
|
|
30952
|
-
return
|
|
30939
|
+
return qJ(r).length ? r : [];
|
|
30953
30940
|
}
|
|
30954
|
-
var
|
|
30941
|
+
var GY = (e, t) => KJ(t) ? [] : WY(e, gY(t).sort((e, t) => e - t)), KY = (e, t, n) => {
|
|
30955
30942
|
[e[t], e[n]] = [e[n], e[t]];
|
|
30956
|
-
},
|
|
30957
|
-
function
|
|
30958
|
-
let t = iY(), { 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(
|
|
30943
|
+
}, qY = (e, t, n) => (e[t] = n, e);
|
|
30944
|
+
function JY(e) {
|
|
30945
|
+
let t = iY(), { 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(LY)), u = A.useRef(!1);
|
|
30959
30946
|
n._names.array.add(r), A.useMemo(() => o && s.length >= 0 && n.register(r, o), [
|
|
30960
30947
|
n,
|
|
30961
30948
|
r,
|
|
@@ -30963,42 +30950,42 @@ function XY(e) {
|
|
|
30963
30950
|
o
|
|
30964
30951
|
]), oY(() => n._subjects.array.subscribe({ next: ({ values: e, name: t }) => {
|
|
30965
30952
|
if (t === r || !t) {
|
|
30966
|
-
let
|
|
30967
|
-
Array.isArray(
|
|
30953
|
+
let t = YJ(e, r);
|
|
30954
|
+
Array.isArray(t) && (c(t), l.current = t.map(LY));
|
|
30968
30955
|
}
|
|
30969
30956
|
} }).unsubscribe, [n, r]);
|
|
30970
30957
|
let d = A.useCallback((e) => {
|
|
30971
30958
|
u.current = !0, n._setFieldArray(r, e);
|
|
30972
30959
|
}, [n, r]);
|
|
30973
30960
|
return A.useEffect(() => {
|
|
30974
|
-
n._state.action = !1,
|
|
30975
|
-
let e =
|
|
30976
|
-
if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !
|
|
30961
|
+
n._state.action = !1, jY(r, n._names) && n._subjects.state.next({ ...n._formState });
|
|
30962
|
+
let e = AY(n._options.mode);
|
|
30963
|
+
if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !AY(n._options.reValidateMode).isOnSubmit && !e.isOnBlur) if (n._options.resolver) n._runSchema([r]).then((e) => {
|
|
30977
30964
|
n._updateIsValidating([r]);
|
|
30978
|
-
let t =
|
|
30979
|
-
(i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ?
|
|
30965
|
+
let t = YJ(e.errors, r), i = YJ(n._formState.errors, r);
|
|
30966
|
+
(i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ? QJ(n._formState.errors, r, t) : CY(n._formState.errors, r), n._subjects.state.next({ errors: n._formState.errors }));
|
|
30980
30967
|
});
|
|
30981
30968
|
else {
|
|
30982
|
-
let e =
|
|
30983
|
-
e && e._f && !(
|
|
30969
|
+
let e = YJ(n._fields, r);
|
|
30970
|
+
e && e._f && !(AY(n._options.reValidateMode).isOnSubmit && AY(n._options.mode).isOnSubmit) && IY(e, n._names.disabled, n._formValues, n._options.criteriaMode === eY.all, n._options.shouldUseNativeValidation, !0).then((e) => !_Y(e) && n._subjects.state.next({ errors: NY(n._formState.errors, e, r) }));
|
|
30984
30971
|
}
|
|
30985
30972
|
n._subjects.state.next({
|
|
30986
30973
|
name: r,
|
|
30987
30974
|
values: WJ(n._formValues)
|
|
30988
|
-
}), n._names.focus &&
|
|
30975
|
+
}), n._names.focus && MY(n._fields, (e, t) => {
|
|
30989
30976
|
if (n._names.focus && t.startsWith(n._names.focus) && e.focus) return e.focus(), 1;
|
|
30990
30977
|
}), n._names.focus = "", n._setValid(), u.current = !1;
|
|
30991
30978
|
}, [
|
|
30992
30979
|
s,
|
|
30993
30980
|
r,
|
|
30994
30981
|
n
|
|
30995
|
-
]), A.useEffect(() => (
|
|
30982
|
+
]), A.useEffect(() => (!YJ(n._formValues, r) && n._setFieldArray(r), () => {
|
|
30996
30983
|
let e = !(n._options.shouldUnregister || a);
|
|
30997
30984
|
u.current && e && n._subjects.state.next({
|
|
30998
30985
|
name: r,
|
|
30999
30986
|
values: WJ(n._formValues)
|
|
31000
30987
|
}), e ? ((e, t) => {
|
|
31001
|
-
let r =
|
|
30988
|
+
let r = YJ(n._fields, e);
|
|
31002
30989
|
r && r._f && (r._f.mount = t);
|
|
31003
30990
|
})(r, !1) : n.unregister(r);
|
|
31004
30991
|
}), [
|
|
@@ -31009,7 +30996,7 @@ function XY(e) {
|
|
|
31009
30996
|
]), {
|
|
31010
30997
|
swap: A.useCallback((e, t) => {
|
|
31011
30998
|
let i = n._getFieldArray(r);
|
|
31012
|
-
|
|
30999
|
+
KY(i, e, t), KY(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, KY, {
|
|
31013
31000
|
argA: e,
|
|
31014
31001
|
argB: t
|
|
31015
31002
|
}, !1);
|
|
@@ -31020,7 +31007,7 @@ function XY(e) {
|
|
|
31020
31007
|
]),
|
|
31021
31008
|
move: A.useCallback((e, t) => {
|
|
31022
31009
|
let i = n._getFieldArray(r);
|
|
31023
|
-
|
|
31010
|
+
HY(i, e, t), HY(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, HY, {
|
|
31024
31011
|
argA: e,
|
|
31025
31012
|
argB: t
|
|
31026
31013
|
}, !1);
|
|
@@ -31030,34 +31017,34 @@ function XY(e) {
|
|
|
31030
31017
|
n
|
|
31031
31018
|
]),
|
|
31032
31019
|
prepend: A.useCallback((e, t) => {
|
|
31033
|
-
let i =
|
|
31034
|
-
n._names.focus =
|
|
31020
|
+
let i = gY(WJ(e)), a = UY(n._getFieldArray(r), i);
|
|
31021
|
+
n._names.focus = RY(r, 0, t), l.current = UY(l.current, i.map(LY)), d(a), c(a), n._setFieldArray(r, a, UY, { argA: BY(e) });
|
|
31035
31022
|
}, [
|
|
31036
31023
|
d,
|
|
31037
31024
|
r,
|
|
31038
31025
|
n
|
|
31039
31026
|
]),
|
|
31040
31027
|
append: A.useCallback((e, t) => {
|
|
31041
|
-
let i =
|
|
31042
|
-
n._names.focus =
|
|
31028
|
+
let i = gY(WJ(e)), a = zY(n._getFieldArray(r), i);
|
|
31029
|
+
n._names.focus = RY(r, a.length - 1, t), l.current = zY(l.current, i.map(LY)), d(a), c(a), n._setFieldArray(r, a, zY, { argA: BY(e) });
|
|
31043
31030
|
}, [
|
|
31044
31031
|
d,
|
|
31045
31032
|
r,
|
|
31046
31033
|
n
|
|
31047
31034
|
]),
|
|
31048
31035
|
remove: A.useCallback((e) => {
|
|
31049
|
-
let t =
|
|
31050
|
-
l.current =
|
|
31036
|
+
let t = GY(n._getFieldArray(r), e);
|
|
31037
|
+
l.current = GY(l.current, e), d(t), c(t), !Array.isArray(YJ(n._fields, r)) && QJ(n._fields, r, void 0), n._setFieldArray(r, t, GY, { argA: e });
|
|
31051
31038
|
}, [
|
|
31052
31039
|
d,
|
|
31053
31040
|
r,
|
|
31054
31041
|
n
|
|
31055
31042
|
]),
|
|
31056
31043
|
insert: A.useCallback((e, t, i) => {
|
|
31057
|
-
let a =
|
|
31058
|
-
n._names.focus =
|
|
31044
|
+
let a = gY(WJ(t)), o = VY(n._getFieldArray(r), e, a);
|
|
31045
|
+
n._names.focus = RY(r, e, i), l.current = VY(l.current, e, a.map(LY)), d(o), c(o), n._setFieldArray(r, o, VY, {
|
|
31059
31046
|
argA: e,
|
|
31060
|
-
argB:
|
|
31047
|
+
argB: BY(t)
|
|
31061
31048
|
});
|
|
31062
31049
|
}, [
|
|
31063
31050
|
d,
|
|
@@ -31065,8 +31052,8 @@ function XY(e) {
|
|
|
31065
31052
|
n
|
|
31066
31053
|
]),
|
|
31067
31054
|
update: A.useCallback((e, t) => {
|
|
31068
|
-
let i = WJ(t), a =
|
|
31069
|
-
l.current = [...a].map((t, n) => !t || n === e ?
|
|
31055
|
+
let i = WJ(t), a = qY(n._getFieldArray(r), e, i);
|
|
31056
|
+
l.current = [...a].map((t, n) => !t || n === e ? LY() : l.current[n]), d(a), c([...a]), n._setFieldArray(r, a, qY, {
|
|
31070
31057
|
argA: e,
|
|
31071
31058
|
argB: i
|
|
31072
31059
|
}, !0, !1);
|
|
@@ -31076,8 +31063,8 @@ function XY(e) {
|
|
|
31076
31063
|
n
|
|
31077
31064
|
]),
|
|
31078
31065
|
replace: A.useCallback((e) => {
|
|
31079
|
-
let t =
|
|
31080
|
-
l.current = t.map(
|
|
31066
|
+
let t = gY(WJ(e));
|
|
31067
|
+
l.current = t.map(LY), d([...t]), c([...t]), n._setFieldArray(r, [...t], (e) => e, {}, !0, !1);
|
|
31081
31068
|
}, [
|
|
31082
31069
|
d,
|
|
31083
31070
|
r,
|
|
@@ -31085,21 +31072,21 @@ function XY(e) {
|
|
|
31085
31072
|
]),
|
|
31086
31073
|
fields: A.useMemo(() => s.map((e, t) => ({
|
|
31087
31074
|
...e,
|
|
31088
|
-
[i]: l.current[t] ||
|
|
31075
|
+
[i]: l.current[t] || LY()
|
|
31089
31076
|
})), [s, i])
|
|
31090
31077
|
};
|
|
31091
31078
|
}
|
|
31092
31079
|
//#endregion
|
|
31093
31080
|
//#region src/composed/JsonSchemaForm/models/JsonSchemaFormContext.ts
|
|
31094
|
-
var
|
|
31095
|
-
function
|
|
31096
|
-
let e = I(
|
|
31081
|
+
var YY = M(null);
|
|
31082
|
+
function XY() {
|
|
31083
|
+
let e = I(YY);
|
|
31097
31084
|
if (e === null) throw Error("useJsonSchemaFormContext must be used within a <JsonSchemaForm>");
|
|
31098
31085
|
return e;
|
|
31099
31086
|
}
|
|
31100
31087
|
//#endregion
|
|
31101
31088
|
//#region src/composed/JsonSchemaForm/conditional/evalCondition.ts
|
|
31102
|
-
function
|
|
31089
|
+
function ZY(e, t) {
|
|
31103
31090
|
if (e.$eq.size === 0) return !0;
|
|
31104
31091
|
for (let [n, r] of e.$eq) {
|
|
31105
31092
|
let e = t.get(n);
|
|
@@ -31109,11 +31096,11 @@ function $Y(e, t) {
|
|
|
31109
31096
|
}
|
|
31110
31097
|
//#endregion
|
|
31111
31098
|
//#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
|
|
31112
|
-
function
|
|
31113
|
-
let { control: r } =
|
|
31099
|
+
function QY({ condition: e, unregisterOnHide: t, children: n }) {
|
|
31100
|
+
let { control: r } = XY(), i = B(() => Array.from(e.$eq.keys()), [e]), a = fY({
|
|
31114
31101
|
control: r,
|
|
31115
31102
|
name: i
|
|
31116
|
-
}), o =
|
|
31103
|
+
}), o = ZY(e, B(() => {
|
|
31117
31104
|
let e = /* @__PURE__ */ new Map();
|
|
31118
31105
|
if (i.length === 0) return e;
|
|
31119
31106
|
let t = Array.isArray(a) ? a : [a];
|
|
@@ -31129,7 +31116,7 @@ function eX({ condition: e, unregisterOnHide: t, children: n }) {
|
|
|
31129
31116
|
}
|
|
31130
31117
|
//#endregion
|
|
31131
31118
|
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
31132
|
-
function
|
|
31119
|
+
function $Y(e, t) {
|
|
31133
31120
|
return e.split(".").map((e, n) => {
|
|
31134
31121
|
let r = t[n];
|
|
31135
31122
|
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
@@ -31137,13 +31124,13 @@ function tX(e, t) {
|
|
|
31137
31124
|
}
|
|
31138
31125
|
//#endregion
|
|
31139
31126
|
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
31140
|
-
function
|
|
31127
|
+
function eX(e, t) {
|
|
31141
31128
|
let n = t === "" ? [] : t.split(".");
|
|
31142
|
-
return { $eq: new Map([...e.$eq].map(([e, t]) => [
|
|
31129
|
+
return { $eq: new Map([...e.$eq].map(([e, t]) => [$Y(e, n), t])) };
|
|
31143
31130
|
}
|
|
31144
31131
|
//#endregion
|
|
31145
31132
|
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
31146
|
-
function
|
|
31133
|
+
function tX(e, t) {
|
|
31147
31134
|
if (!e) return e;
|
|
31148
31135
|
let n = {};
|
|
31149
31136
|
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
@@ -31151,17 +31138,17 @@ function rX(e, t) {
|
|
|
31151
31138
|
}
|
|
31152
31139
|
//#endregion
|
|
31153
31140
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
31154
|
-
function
|
|
31155
|
-
return
|
|
31141
|
+
function nX(e) {
|
|
31142
|
+
return rX(e);
|
|
31156
31143
|
}
|
|
31157
|
-
function
|
|
31158
|
-
return
|
|
31144
|
+
function rX(e) {
|
|
31145
|
+
return aX(iX({ ...e }));
|
|
31159
31146
|
}
|
|
31160
|
-
function
|
|
31147
|
+
function iX(e) {
|
|
31161
31148
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
31162
31149
|
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
31163
31150
|
for (let a of e.allOf) {
|
|
31164
|
-
let e =
|
|
31151
|
+
let e = rX(a);
|
|
31165
31152
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
31166
31153
|
...r,
|
|
31167
31154
|
...e.gioConfig
|
|
@@ -31170,33 +31157,33 @@ function oX(e) {
|
|
|
31170
31157
|
let a = { ...e };
|
|
31171
31158
|
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;
|
|
31172
31159
|
}
|
|
31173
|
-
function
|
|
31174
|
-
return e.properties &&=
|
|
31160
|
+
function aX(e) {
|
|
31161
|
+
return e.properties &&= oX(e.properties, rX), e.items &&= Array.isArray(e.items) ? e.items.map(rX) : rX(e.items), e.oneOf &&= e.oneOf.map(rX), e.anyOf &&= e.anyOf.map(rX), e.dependencies &&= tX(e.dependencies, rX), e;
|
|
31175
31162
|
}
|
|
31176
|
-
function
|
|
31163
|
+
function oX(e, t) {
|
|
31177
31164
|
let n = {};
|
|
31178
31165
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
31179
31166
|
return n;
|
|
31180
31167
|
}
|
|
31181
31168
|
//#endregion
|
|
31182
31169
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
31183
|
-
function
|
|
31170
|
+
function sX(e) {
|
|
31184
31171
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
31185
31172
|
}
|
|
31186
|
-
function
|
|
31173
|
+
function cX(e) {
|
|
31187
31174
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
31188
31175
|
}
|
|
31189
31176
|
//#endregion
|
|
31190
31177
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
31191
|
-
function
|
|
31192
|
-
return
|
|
31178
|
+
function lX(e) {
|
|
31179
|
+
return uX(e, e, []);
|
|
31193
31180
|
}
|
|
31194
|
-
function
|
|
31181
|
+
function uX(e, t, n) {
|
|
31195
31182
|
if (typeof e.$ref == "string") {
|
|
31196
31183
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
31197
|
-
let r =
|
|
31184
|
+
let r = dX(t, e.$ref);
|
|
31198
31185
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
31199
|
-
let i =
|
|
31186
|
+
let i = uX(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
31200
31187
|
...i,
|
|
31201
31188
|
...s
|
|
31202
31189
|
};
|
|
@@ -31208,25 +31195,25 @@ function fX(e, t, n) {
|
|
|
31208
31195
|
let r = { ...e };
|
|
31209
31196
|
if (r.properties) {
|
|
31210
31197
|
let e = {};
|
|
31211
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
31198
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = uX(a, t, n);
|
|
31212
31199
|
r.properties = e;
|
|
31213
31200
|
}
|
|
31214
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
31201
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => uX(e, t, n)) : uX(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => uX(e, t, n)), r.anyOf &&= r.anyOf.map((e) => uX(e, t, n)), r.allOf &&= r.allOf.map((e) => uX(e, t, n)), r.dependencies &&= tX(r.dependencies, (e) => uX(e, t, n)), r.definitions) {
|
|
31215
31202
|
let e = {};
|
|
31216
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
31203
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = uX(a, t, n);
|
|
31217
31204
|
r.definitions = e;
|
|
31218
31205
|
}
|
|
31219
31206
|
if (r.$defs) {
|
|
31220
31207
|
let e = {};
|
|
31221
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
31208
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = uX(a, t, n);
|
|
31222
31209
|
r.$defs = e;
|
|
31223
31210
|
}
|
|
31224
31211
|
return r;
|
|
31225
31212
|
}
|
|
31226
|
-
function
|
|
31213
|
+
function dX(e, t) {
|
|
31227
31214
|
if (t === "#") return e;
|
|
31228
31215
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
31229
|
-
let n = t.slice(2).split("/").map(
|
|
31216
|
+
let n = t.slice(2).split("/").map(cX), r = e;
|
|
31230
31217
|
for (let e of n) {
|
|
31231
31218
|
if (typeof r != "object" || !r) return;
|
|
31232
31219
|
r = r[e];
|
|
@@ -31235,28 +31222,28 @@ function pX(e, t) {
|
|
|
31235
31222
|
}
|
|
31236
31223
|
//#endregion
|
|
31237
31224
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
31238
|
-
function
|
|
31225
|
+
function fX(e) {
|
|
31239
31226
|
let t;
|
|
31240
31227
|
try {
|
|
31241
|
-
t =
|
|
31228
|
+
t = nX(lX(e));
|
|
31242
31229
|
} catch {
|
|
31243
31230
|
return;
|
|
31244
31231
|
}
|
|
31245
|
-
return
|
|
31232
|
+
return pX(t);
|
|
31246
31233
|
}
|
|
31247
|
-
function
|
|
31234
|
+
function pX(e) {
|
|
31248
31235
|
if (e.deprecated === !0) return;
|
|
31249
31236
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
31250
31237
|
let t = {};
|
|
31251
31238
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
31252
|
-
let e =
|
|
31239
|
+
let e = pX(r);
|
|
31253
31240
|
e !== void 0 && (t[n] = e);
|
|
31254
31241
|
}
|
|
31255
31242
|
let n = (e.oneOf ?? e.anyOf)?.find((e) => e.deprecated !== !0);
|
|
31256
31243
|
if (n?.properties) {
|
|
31257
31244
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
31258
31245
|
else if (!(e in t)) {
|
|
31259
|
-
let n =
|
|
31246
|
+
let n = pX(r);
|
|
31260
31247
|
n !== void 0 && (t[e] = n);
|
|
31261
31248
|
}
|
|
31262
31249
|
}
|
|
@@ -31264,23 +31251,23 @@ function hX(e) {
|
|
|
31264
31251
|
}
|
|
31265
31252
|
//#endregion
|
|
31266
31253
|
//#region src/composed/JsonSchemaForm/utils/fieldErrors.ts
|
|
31267
|
-
function
|
|
31254
|
+
function mX(e) {
|
|
31268
31255
|
return e ? e.types ? Object.values(e.types).flat().filter((e) => typeof e == "string").map((e) => ({ message: e })) : [{ message: e.message }] : [];
|
|
31269
31256
|
}
|
|
31270
31257
|
//#endregion
|
|
31271
31258
|
//#region src/composed/JsonSchemaForm/utils/labelOf.ts
|
|
31272
|
-
function
|
|
31259
|
+
function hX(e) {
|
|
31273
31260
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Field";
|
|
31274
31261
|
}
|
|
31275
|
-
function
|
|
31276
|
-
return
|
|
31262
|
+
function gX(e) {
|
|
31263
|
+
return hX(e.split(".").pop());
|
|
31277
31264
|
}
|
|
31278
|
-
function
|
|
31279
|
-
return typeof e.title == "string" && e.title.length > 0 ? e.title :
|
|
31265
|
+
function _X(e, t) {
|
|
31266
|
+
return typeof e.title == "string" && e.title.length > 0 ? e.title : hX(t);
|
|
31280
31267
|
}
|
|
31281
31268
|
//#endregion
|
|
31282
31269
|
//#region src/composed/JsonSchemaForm/fields/banner/SchemaBanner.tsx
|
|
31283
|
-
function
|
|
31270
|
+
function vX({ banner: e }) {
|
|
31284
31271
|
let t = "title" in e ? e.title : void 0;
|
|
31285
31272
|
return /* @__PURE__ */ U(Yy, {
|
|
31286
31273
|
role: "note",
|
|
@@ -31300,7 +31287,7 @@ function bX({ banner: e }) {
|
|
|
31300
31287
|
}
|
|
31301
31288
|
//#endregion
|
|
31302
31289
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
31303
|
-
function
|
|
31290
|
+
function yX(e) {
|
|
31304
31291
|
if (e.default !== void 0) return e.default;
|
|
31305
31292
|
switch (e.type) {
|
|
31306
31293
|
case "string": return "";
|
|
@@ -31315,11 +31302,11 @@ function xX(e) {
|
|
|
31315
31302
|
}
|
|
31316
31303
|
//#endregion
|
|
31317
31304
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
31318
|
-
function
|
|
31319
|
-
let n =
|
|
31305
|
+
function bX(e, t) {
|
|
31306
|
+
let n = XY(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = JY({
|
|
31320
31307
|
control: n.control,
|
|
31321
31308
|
name: r
|
|
31322
|
-
}), { fieldState: s } =
|
|
31309
|
+
}), { fieldState: s } = pY({
|
|
31323
31310
|
control: n.control,
|
|
31324
31311
|
name: r
|
|
31325
31312
|
}), c = n.disabled || e.readOnly === !0, l = typeof e.minItems == "number" ? e.minItems : 0, u = typeof e.maxItems == "number" ? e.maxItems : Infinity;
|
|
@@ -31337,10 +31324,10 @@ function SX(e, t) {
|
|
|
31337
31324
|
}
|
|
31338
31325
|
//#endregion
|
|
31339
31326
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
31340
|
-
function
|
|
31341
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } =
|
|
31327
|
+
function xX({ node: e, name: t, depth: n }) {
|
|
31328
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = bX(r, t), p = r.items, m = e.items, h = _X(r, t), g = r.gioConfig?.uiBorder === "full";
|
|
31342
31329
|
function _() {
|
|
31343
|
-
s(
|
|
31330
|
+
s(CX(p), { shouldFocus: !1 });
|
|
31344
31331
|
}
|
|
31345
31332
|
return /* @__PURE__ */ U(pR, {
|
|
31346
31333
|
"aria-required": r.isRequired || void 0,
|
|
@@ -31352,10 +31339,10 @@ function CX({ node: e, name: t, depth: n }) {
|
|
|
31352
31339
|
children: h
|
|
31353
31340
|
}),
|
|
31354
31341
|
r.description && /* @__PURE__ */ H(xR, { children: r.description }),
|
|
31355
|
-
r.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31342
|
+
r.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: r.gioConfig.banner }),
|
|
31356
31343
|
/* @__PURE__ */ H("div", {
|
|
31357
31344
|
className: "flex flex-col",
|
|
31358
|
-
children: o.map((e, t) => /* @__PURE__ */ H(
|
|
31345
|
+
children: o.map((e, t) => /* @__PURE__ */ H(SX, {
|
|
31359
31346
|
index: t,
|
|
31360
31347
|
path: a,
|
|
31361
31348
|
itemsNode: m,
|
|
@@ -31377,11 +31364,11 @@ function CX({ node: e, name: t, depth: n }) {
|
|
|
31377
31364
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
31378
31365
|
})
|
|
31379
31366
|
}),
|
|
31380
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31367
|
+
/* @__PURE__ */ H(CR, { errors: mX(l.error) })
|
|
31381
31368
|
]
|
|
31382
31369
|
});
|
|
31383
31370
|
}
|
|
31384
|
-
function
|
|
31371
|
+
function SX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: c }) {
|
|
31385
31372
|
let l = `${t}.${e}`;
|
|
31386
31373
|
return /* @__PURE__ */ U(Uw, {
|
|
31387
31374
|
defaultOpen: !0,
|
|
@@ -31410,13 +31397,13 @@ function wX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
31410
31397
|
})]
|
|
31411
31398
|
}), /* @__PURE__ */ H(Gw, { children: /* @__PURE__ */ H("div", {
|
|
31412
31399
|
className: "pt-2 pb-4 pl-6",
|
|
31413
|
-
children: n && /* @__PURE__ */ H(
|
|
31400
|
+
children: n && /* @__PURE__ */ H(YY.Provider, {
|
|
31414
31401
|
value: {
|
|
31415
31402
|
...c,
|
|
31416
31403
|
basePath: l,
|
|
31417
31404
|
disabled: i
|
|
31418
31405
|
},
|
|
31419
|
-
children: /* @__PURE__ */ H(
|
|
31406
|
+
children: /* @__PURE__ */ H(eZ, {
|
|
31420
31407
|
node: n,
|
|
31421
31408
|
name: "",
|
|
31422
31409
|
depth: r + 1
|
|
@@ -31425,17 +31412,17 @@ function wX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
31425
31412
|
}) })]
|
|
31426
31413
|
});
|
|
31427
31414
|
}
|
|
31428
|
-
function
|
|
31429
|
-
let t =
|
|
31430
|
-
return t === void 0 ?
|
|
31415
|
+
function CX(e) {
|
|
31416
|
+
let t = fX(e);
|
|
31417
|
+
return t === void 0 ? yX(e) : t;
|
|
31431
31418
|
}
|
|
31432
31419
|
//#endregion
|
|
31433
31420
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
31434
|
-
function
|
|
31435
|
-
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } =
|
|
31421
|
+
function wX({ node: e, name: t }) {
|
|
31422
|
+
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = bX(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = _X(n, t);
|
|
31436
31423
|
function h() {
|
|
31437
31424
|
let e = {};
|
|
31438
|
-
for (let t of p) e[t] =
|
|
31425
|
+
for (let t of p) e[t] = yX(f[t]);
|
|
31439
31426
|
a(e, { shouldFocus: !1 });
|
|
31440
31427
|
}
|
|
31441
31428
|
return /* @__PURE__ */ U(pR, {
|
|
@@ -31447,16 +31434,16 @@ function EX({ node: e, name: t }) {
|
|
|
31447
31434
|
children: m
|
|
31448
31435
|
}),
|
|
31449
31436
|
n.description && /* @__PURE__ */ H(xR, { children: n.description }),
|
|
31450
|
-
n.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31437
|
+
n.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: n.gioConfig.banner }),
|
|
31451
31438
|
/* @__PURE__ */ H("div", {
|
|
31452
31439
|
className: "overflow-hidden rounded-lg border",
|
|
31453
31440
|
children: /* @__PURE__ */ U(HW, { children: [/* @__PURE__ */ H(UW, { children: /* @__PURE__ */ U(KW, { children: [p.map((e) => /* @__PURE__ */ H(qW, {
|
|
31454
31441
|
scope: "col",
|
|
31455
|
-
children:
|
|
31442
|
+
children: DX(f[e], e)
|
|
31456
31443
|
}, e)), /* @__PURE__ */ H(qW, {
|
|
31457
31444
|
"aria-hidden": "true",
|
|
31458
31445
|
className: "w-px"
|
|
31459
|
-
})] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(
|
|
31446
|
+
})] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(TX, {
|
|
31460
31447
|
rowIndex: t,
|
|
31461
31448
|
rowPath: `${r}.${t}`,
|
|
31462
31449
|
columnKeys: p,
|
|
@@ -31474,12 +31461,12 @@ function EX({ node: e, name: t }) {
|
|
|
31474
31461
|
onClick: h,
|
|
31475
31462
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
31476
31463
|
}) }),
|
|
31477
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31464
|
+
/* @__PURE__ */ H(CR, { errors: mX(s.error) })
|
|
31478
31465
|
]
|
|
31479
31466
|
});
|
|
31480
31467
|
}
|
|
31481
|
-
function
|
|
31482
|
-
return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(
|
|
31468
|
+
function TX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
|
|
31469
|
+
return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(EX, {
|
|
31483
31470
|
columnKey: n,
|
|
31484
31471
|
cellPath: `${t}.${n}`,
|
|
31485
31472
|
propSchema: r[n],
|
|
@@ -31498,8 +31485,8 @@ function DX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
31498
31485
|
})
|
|
31499
31486
|
})] });
|
|
31500
31487
|
}
|
|
31501
|
-
function
|
|
31502
|
-
let { control: a } =
|
|
31488
|
+
function EX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
31489
|
+
let { control: a } = XY(), { field: o, fieldState: s } = pY({
|
|
31503
31490
|
control: a,
|
|
31504
31491
|
name: t
|
|
31505
31492
|
}), { ref: c, onBlur: l, onChange: u, value: d } = o;
|
|
@@ -31511,21 +31498,21 @@ function OX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
31511
31498
|
onBlur: l,
|
|
31512
31499
|
disabled: i,
|
|
31513
31500
|
"aria-invalid": s.invalid,
|
|
31514
|
-
"aria-label": `${
|
|
31501
|
+
"aria-label": `${DX(n, e)} for row ${r + 1}`,
|
|
31515
31502
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
31516
31503
|
}) });
|
|
31517
31504
|
}
|
|
31518
|
-
function
|
|
31505
|
+
function DX(e, t) {
|
|
31519
31506
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
31520
31507
|
}
|
|
31521
31508
|
//#endregion
|
|
31522
31509
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
31523
|
-
function
|
|
31524
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31510
|
+
function OX({ node: e, name: t }) {
|
|
31511
|
+
let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
|
|
31525
31512
|
control: n,
|
|
31526
31513
|
name: o,
|
|
31527
31514
|
defaultValue: typeof a.default == "boolean" ? a.default : !1
|
|
31528
|
-
}), l =
|
|
31515
|
+
}), l = _X(a, t), u = i || a.readOnly === !0;
|
|
31529
31516
|
return /* @__PURE__ */ U(_R, {
|
|
31530
31517
|
orientation: "horizontal",
|
|
31531
31518
|
"data-invalid": c.invalid,
|
|
@@ -31541,43 +31528,43 @@ function AX({ node: e, name: t }) {
|
|
|
31541
31528
|
htmlFor: o,
|
|
31542
31529
|
children: l
|
|
31543
31530
|
}),
|
|
31544
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31531
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
|
|
31545
31532
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31546
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31533
|
+
/* @__PURE__ */ H(CR, { errors: mX(c.error) })
|
|
31547
31534
|
] })]
|
|
31548
31535
|
});
|
|
31549
31536
|
}
|
|
31550
31537
|
//#endregion
|
|
31551
31538
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
31552
|
-
function
|
|
31539
|
+
function kX(e) {
|
|
31553
31540
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
31554
31541
|
}
|
|
31555
|
-
function
|
|
31542
|
+
function AX(e) {
|
|
31556
31543
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
31557
31544
|
}
|
|
31558
|
-
function
|
|
31545
|
+
function jX(e) {
|
|
31559
31546
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
31560
31547
|
}
|
|
31561
|
-
function
|
|
31562
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !
|
|
31548
|
+
function MX(e) {
|
|
31549
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !kX(e);
|
|
31563
31550
|
}
|
|
31564
|
-
function
|
|
31551
|
+
function NX(e) {
|
|
31565
31552
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
31566
31553
|
}
|
|
31567
31554
|
//#endregion
|
|
31568
31555
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
31569
|
-
function
|
|
31556
|
+
function PX(e, t) {
|
|
31570
31557
|
let n = t?.[String(e)];
|
|
31571
31558
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
31572
31559
|
}
|
|
31573
|
-
function
|
|
31560
|
+
function FX(e, t) {
|
|
31574
31561
|
return e.map((e, n) => ({
|
|
31575
31562
|
raw: e,
|
|
31576
31563
|
key: String(n),
|
|
31577
|
-
label:
|
|
31564
|
+
label: PX(e, t)
|
|
31578
31565
|
}));
|
|
31579
31566
|
}
|
|
31580
|
-
function
|
|
31567
|
+
function IX(e) {
|
|
31581
31568
|
return e.map((e, t) => ({
|
|
31582
31569
|
raw: e.const,
|
|
31583
31570
|
key: String(t),
|
|
@@ -31586,12 +31573,12 @@ function RX(e) {
|
|
|
31586
31573
|
}
|
|
31587
31574
|
//#endregion
|
|
31588
31575
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
31589
|
-
function
|
|
31590
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31576
|
+
function LX({ node: e, name: t }) {
|
|
31577
|
+
let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
|
|
31591
31578
|
control: n,
|
|
31592
31579
|
name: o,
|
|
31593
31580
|
defaultValue: a.default
|
|
31594
|
-
}), { ref: l, onBlur: u } = s, d =
|
|
31581
|
+
}), { ref: l, onBlur: u } = s, d = _X(a, t), f = i || a.readOnly === !0, p = RX(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
|
|
31595
31582
|
return /* @__PURE__ */ U(_R, {
|
|
31596
31583
|
"data-invalid": c.invalid,
|
|
31597
31584
|
children: [
|
|
@@ -31600,7 +31587,7 @@ function zX({ node: e, name: t }) {
|
|
|
31600
31587
|
required: a.isRequired,
|
|
31601
31588
|
children: d
|
|
31602
31589
|
}),
|
|
31603
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31590
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
|
|
31604
31591
|
/* @__PURE__ */ U(tU, {
|
|
31605
31592
|
value: m,
|
|
31606
31593
|
onValueChange: (e) => s.onChange(h(e)),
|
|
@@ -31618,22 +31605,22 @@ function zX({ node: e, name: t }) {
|
|
|
31618
31605
|
}, e.key)) })]
|
|
31619
31606
|
}),
|
|
31620
31607
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31621
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31608
|
+
/* @__PURE__ */ H(CR, { errors: mX(c.error) })
|
|
31622
31609
|
]
|
|
31623
31610
|
});
|
|
31624
31611
|
}
|
|
31625
|
-
function
|
|
31626
|
-
return
|
|
31612
|
+
function RX(e) {
|
|
31613
|
+
return kX(e) ? IX(e.oneOf ?? []) : FX(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
31627
31614
|
}
|
|
31628
31615
|
//#endregion
|
|
31629
31616
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
31630
|
-
function
|
|
31631
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31617
|
+
function zX({ node: e, name: t }) {
|
|
31618
|
+
let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
|
|
31632
31619
|
control: n,
|
|
31633
31620
|
name: o,
|
|
31634
31621
|
defaultValue: Array.isArray(a.default) ? a.default : []
|
|
31635
|
-
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m =
|
|
31636
|
-
return
|
|
31622
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m = _X(a, t), h = i || a.readOnly === !0, g = a.items, _ = FX(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);
|
|
31623
|
+
return BX({
|
|
31637
31624
|
schema: a,
|
|
31638
31625
|
options: _,
|
|
31639
31626
|
value: f,
|
|
@@ -31646,7 +31633,7 @@ function VX({ node: e, name: t }) {
|
|
|
31646
31633
|
required: a.isRequired,
|
|
31647
31634
|
children: m
|
|
31648
31635
|
}),
|
|
31649
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31636
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
|
|
31650
31637
|
/* @__PURE__ */ U(uM, {
|
|
31651
31638
|
multiple: !0,
|
|
31652
31639
|
autoHighlight: !0,
|
|
@@ -31679,27 +31666,27 @@ function VX({ node: e, name: t }) {
|
|
|
31679
31666
|
})]
|
|
31680
31667
|
}),
|
|
31681
31668
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31682
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31669
|
+
/* @__PURE__ */ H(CR, { errors: mX(c.error) })
|
|
31683
31670
|
]
|
|
31684
31671
|
});
|
|
31685
31672
|
}
|
|
31686
|
-
function
|
|
31673
|
+
function BX({ schema: e, options: t, value: n, onReset: r }) {
|
|
31687
31674
|
R(() => {
|
|
31688
31675
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
31689
31676
|
}, [e]);
|
|
31690
31677
|
}
|
|
31691
31678
|
//#endregion
|
|
31692
31679
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
31693
|
-
function
|
|
31680
|
+
function VX() {
|
|
31694
31681
|
return null;
|
|
31695
31682
|
}
|
|
31696
31683
|
//#endregion
|
|
31697
31684
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
31698
|
-
function
|
|
31699
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31685
|
+
function HX({ node: e, name: t }) {
|
|
31686
|
+
let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
|
|
31700
31687
|
control: n,
|
|
31701
31688
|
name: o
|
|
31702
|
-
}), l =
|
|
31689
|
+
}), l = _X(a, t), u = i || a.readOnly === !0, d = (e) => {
|
|
31703
31690
|
let t = e.target.value;
|
|
31704
31691
|
if (t === "") {
|
|
31705
31692
|
s.onChange(null);
|
|
@@ -31716,7 +31703,7 @@ function WX({ node: e, name: t }) {
|
|
|
31716
31703
|
required: a.isRequired,
|
|
31717
31704
|
children: l
|
|
31718
31705
|
}),
|
|
31719
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31706
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
|
|
31720
31707
|
/* @__PURE__ */ H(eM, {
|
|
31721
31708
|
id: o,
|
|
31722
31709
|
type: "number",
|
|
@@ -31731,21 +31718,21 @@ function WX({ node: e, name: t }) {
|
|
|
31731
31718
|
step: f
|
|
31732
31719
|
}),
|
|
31733
31720
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31734
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31721
|
+
/* @__PURE__ */ H(CR, { errors: mX(c.error) })
|
|
31735
31722
|
]
|
|
31736
31723
|
});
|
|
31737
31724
|
}
|
|
31738
31725
|
//#endregion
|
|
31739
31726
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
31740
|
-
function
|
|
31727
|
+
function UX(e, t, n, r) {
|
|
31741
31728
|
if (e.length === 0) return -1;
|
|
31742
31729
|
let i = n?.get(t);
|
|
31743
|
-
return
|
|
31730
|
+
return WX(i, e) && GX(e[i], r) ? i : KX(e, r);
|
|
31744
31731
|
}
|
|
31745
|
-
function
|
|
31732
|
+
function WX(e, t) {
|
|
31746
31733
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
31747
31734
|
}
|
|
31748
|
-
function
|
|
31735
|
+
function GX(e, t) {
|
|
31749
31736
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
31750
31737
|
if (n.const !== void 0) return t(e) === n.const;
|
|
31751
31738
|
if (typeof n.pattern == "string") {
|
|
@@ -31755,18 +31742,18 @@ function qX(e, t) {
|
|
|
31755
31742
|
return !0;
|
|
31756
31743
|
});
|
|
31757
31744
|
}
|
|
31758
|
-
function
|
|
31745
|
+
function KX(e, t) {
|
|
31759
31746
|
let n = 0, r = {
|
|
31760
31747
|
viable: !1,
|
|
31761
31748
|
matches: -1
|
|
31762
31749
|
};
|
|
31763
31750
|
return e.forEach((e, i) => {
|
|
31764
|
-
let a =
|
|
31765
|
-
|
|
31751
|
+
let a = qX(e, t);
|
|
31752
|
+
JX(a, r) > 0 && (n = i, r = a);
|
|
31766
31753
|
}), n;
|
|
31767
31754
|
}
|
|
31768
|
-
function
|
|
31769
|
-
return
|
|
31755
|
+
function qX(e, t) {
|
|
31756
|
+
return GX(e, t) ? {
|
|
31770
31757
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
31771
31758
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
31772
31759
|
} : {
|
|
@@ -31774,13 +31761,13 @@ function YX(e, t) {
|
|
|
31774
31761
|
matches: -1
|
|
31775
31762
|
};
|
|
31776
31763
|
}
|
|
31777
|
-
function
|
|
31764
|
+
function JX(e, t) {
|
|
31778
31765
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
31779
31766
|
}
|
|
31780
31767
|
//#endregion
|
|
31781
31768
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
31782
|
-
function
|
|
31783
|
-
let n =
|
|
31769
|
+
function YX({ node: e, depth: t }) {
|
|
31770
|
+
let n = XY(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = V(() => UX(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]);
|
|
31784
31771
|
if (c.length === 0) return null;
|
|
31785
31772
|
let f = c[l] ?? c[0], p = f.dependencyBranches ?? [], m = n.disabled || o.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
|
|
31786
31773
|
if (e === l) return;
|
|
@@ -31811,21 +31798,21 @@ function ZX({ node: e, depth: t }) {
|
|
|
31811
31798
|
}, t)) })]
|
|
31812
31799
|
}),
|
|
31813
31800
|
t === 0 && o.description && /* @__PURE__ */ H(xR, { children: o.description }),
|
|
31814
|
-
o.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31801
|
+
o.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: o.gioConfig.banner })
|
|
31815
31802
|
] }),
|
|
31816
|
-
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(
|
|
31803
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(XX, {
|
|
31817
31804
|
path: a ? `${a}.${e}` : e,
|
|
31818
31805
|
value: t
|
|
31819
31806
|
}, e)),
|
|
31820
|
-
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(
|
|
31807
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(eZ, {
|
|
31821
31808
|
node: n,
|
|
31822
31809
|
name: e,
|
|
31823
31810
|
depth: t + 1
|
|
31824
31811
|
}, `${l}-${e}`)),
|
|
31825
|
-
p.map((e, n) => /* @__PURE__ */ H(
|
|
31826
|
-
condition:
|
|
31812
|
+
p.map((e, n) => /* @__PURE__ */ H(QY, {
|
|
31813
|
+
condition: eX(e.showIf, a),
|
|
31827
31814
|
unregisterOnHide: d[l]?.[n],
|
|
31828
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(
|
|
31815
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(eZ, {
|
|
31829
31816
|
node: n,
|
|
31830
31817
|
name: e,
|
|
31831
31818
|
depth: t + 1
|
|
@@ -31833,8 +31820,8 @@ function ZX({ node: e, depth: t }) {
|
|
|
31833
31820
|
}, `${l}-var-dep-${n}`))
|
|
31834
31821
|
] });
|
|
31835
31822
|
}
|
|
31836
|
-
function
|
|
31837
|
-
let { control: n } =
|
|
31823
|
+
function XX({ path: e, value: t }) {
|
|
31824
|
+
let { control: n } = XY(), { field: r } = pY({
|
|
31838
31825
|
control: n,
|
|
31839
31826
|
name: e
|
|
31840
31827
|
}), { onChange: i } = r;
|
|
@@ -31844,28 +31831,28 @@ function QX({ path: e, value: t }) {
|
|
|
31844
31831
|
}
|
|
31845
31832
|
//#endregion
|
|
31846
31833
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
31847
|
-
function
|
|
31848
|
-
let r =
|
|
31834
|
+
function ZX({ node: e, name: t, depth: n }) {
|
|
31835
|
+
let r = XY(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = MX(i) || NX(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(YY.Provider, {
|
|
31849
31836
|
value: {
|
|
31850
31837
|
...r,
|
|
31851
31838
|
basePath: a
|
|
31852
31839
|
},
|
|
31853
31840
|
children: /* @__PURE__ */ U(hR, { children: [
|
|
31854
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(
|
|
31841
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(eZ, {
|
|
31855
31842
|
node: t,
|
|
31856
31843
|
name: e,
|
|
31857
31844
|
depth: n + 1
|
|
31858
31845
|
}, e)),
|
|
31859
|
-
s.map((e, t) => /* @__PURE__ */ H(
|
|
31860
|
-
condition:
|
|
31846
|
+
s.map((e, t) => /* @__PURE__ */ H(QY, {
|
|
31847
|
+
condition: eX(e.showIf, a),
|
|
31861
31848
|
unregisterOnHide: l[t],
|
|
31862
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(
|
|
31849
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(eZ, {
|
|
31863
31850
|
node: t,
|
|
31864
31851
|
name: e,
|
|
31865
31852
|
depth: n + 1
|
|
31866
31853
|
}, e))
|
|
31867
31854
|
}, `dep-${t}`)),
|
|
31868
|
-
o && /* @__PURE__ */ H(
|
|
31855
|
+
o && /* @__PURE__ */ H(YX, {
|
|
31869
31856
|
node: e,
|
|
31870
31857
|
depth: n
|
|
31871
31858
|
})
|
|
@@ -31877,17 +31864,17 @@ function $X({ node: e, name: t, depth: n }) {
|
|
|
31877
31864
|
/* @__PURE__ */ H(mR, {
|
|
31878
31865
|
className: f ? "px-2 text-base font-semibold" : "text-base font-semibold",
|
|
31879
31866
|
required: i.isRequired,
|
|
31880
|
-
children:
|
|
31867
|
+
children: _X(i, t)
|
|
31881
31868
|
}),
|
|
31882
31869
|
i.description && /* @__PURE__ */ H(xR, { children: i.description }),
|
|
31883
|
-
i.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31870
|
+
i.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: i.gioConfig.banner }),
|
|
31884
31871
|
u
|
|
31885
31872
|
]
|
|
31886
31873
|
});
|
|
31887
31874
|
}
|
|
31888
31875
|
//#endregion
|
|
31889
31876
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
31890
|
-
function
|
|
31877
|
+
function QX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
31891
31878
|
let [s, c] = V(!1);
|
|
31892
31879
|
return /* @__PURE__ */ U(nM, {
|
|
31893
31880
|
className: e,
|
|
@@ -31913,14 +31900,14 @@ function eZ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
31913
31900
|
})]
|
|
31914
31901
|
});
|
|
31915
31902
|
}
|
|
31916
|
-
|
|
31903
|
+
QX.displayName = "PasswordInput";
|
|
31917
31904
|
//#endregion
|
|
31918
31905
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
31919
|
-
function
|
|
31920
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31906
|
+
function $X({ node: e, name: t }) {
|
|
31907
|
+
let { control: n, basePath: r, disabled: i } = XY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = pY({
|
|
31921
31908
|
control: n,
|
|
31922
31909
|
name: o
|
|
31923
|
-
}), l =
|
|
31910
|
+
}), l = _X(a, t), u = i || a.readOnly === !0, d = c.invalid, f = {
|
|
31924
31911
|
id: o,
|
|
31925
31912
|
value: typeof s.value == "string" ? s.value : "",
|
|
31926
31913
|
onChange: s.onChange,
|
|
@@ -31939,8 +31926,8 @@ function tZ({ node: e, name: t }) {
|
|
|
31939
31926
|
required: a.isRequired,
|
|
31940
31927
|
children: l
|
|
31941
31928
|
}),
|
|
31942
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31943
|
-
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(
|
|
31929
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(vX, { banner: a.gioConfig.banner }),
|
|
31930
|
+
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(QX, {
|
|
31944
31931
|
...f,
|
|
31945
31932
|
pattern: a.pattern
|
|
31946
31933
|
}) : /* @__PURE__ */ H(eM, {
|
|
@@ -31949,141 +31936,141 @@ function tZ({ node: e, name: t }) {
|
|
|
31949
31936
|
pattern: a.pattern
|
|
31950
31937
|
}),
|
|
31951
31938
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31952
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31939
|
+
/* @__PURE__ */ H(CR, { errors: mX(c.error) })
|
|
31953
31940
|
]
|
|
31954
31941
|
});
|
|
31955
31942
|
}
|
|
31956
31943
|
//#endregion
|
|
31957
31944
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
31958
|
-
function
|
|
31959
|
-
let { basePath: r } =
|
|
31945
|
+
function eZ({ node: e, name: t, depth: n = 0 }) {
|
|
31946
|
+
let { basePath: r } = XY(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ? eX(e.displayIf, r) : void 0, [e.displayIf, r]);
|
|
31960
31947
|
if (i.deprecated === !0) return null;
|
|
31961
|
-
let l =
|
|
31962
|
-
return l === null ? null : c ? /* @__PURE__ */ H(
|
|
31948
|
+
let l = tZ(e, a, t, n);
|
|
31949
|
+
return l === null ? null : c ? /* @__PURE__ */ H(QY, {
|
|
31963
31950
|
condition: c,
|
|
31964
31951
|
unregisterOnHide: s,
|
|
31965
31952
|
children: l
|
|
31966
31953
|
}) : l;
|
|
31967
31954
|
}
|
|
31968
|
-
function
|
|
31969
|
-
let { schema: i } = e, a =
|
|
31970
|
-
return Array.isArray(i.enum) && i.enum.length > 0 ||
|
|
31955
|
+
function tZ(e, t, n, r) {
|
|
31956
|
+
let { schema: i } = e, a = nZ(i.type);
|
|
31957
|
+
return Array.isArray(i.enum) && i.enum.length > 0 || kX(i) ? /* @__PURE__ */ H(LX, {
|
|
31971
31958
|
node: e,
|
|
31972
31959
|
name: t
|
|
31973
|
-
}) :
|
|
31960
|
+
}) : AX(i) ? /* @__PURE__ */ H(zX, {
|
|
31974
31961
|
node: e,
|
|
31975
31962
|
name: t
|
|
31976
|
-
}) :
|
|
31963
|
+
}) : jX(i) ? /* @__PURE__ */ H(wX, {
|
|
31977
31964
|
node: e,
|
|
31978
31965
|
name: t
|
|
31979
|
-
}) : a === "null" ? /* @__PURE__ */ H(
|
|
31966
|
+
}) : a === "null" ? /* @__PURE__ */ H(VX, {}) : a === "boolean" ? /* @__PURE__ */ H(OX, {
|
|
31980
31967
|
node: e,
|
|
31981
31968
|
name: t
|
|
31982
|
-
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(
|
|
31969
|
+
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(HX, {
|
|
31983
31970
|
node: e,
|
|
31984
31971
|
name: t
|
|
31985
|
-
}) : a === "string" ? /* @__PURE__ */ H(
|
|
31972
|
+
}) : a === "string" ? /* @__PURE__ */ H($X, {
|
|
31986
31973
|
node: e,
|
|
31987
31974
|
name: t
|
|
31988
|
-
}) : i.properties || a === "object" ||
|
|
31975
|
+
}) : i.properties || a === "object" || MX(i) || NX(i) ? /* @__PURE__ */ H(ZX, {
|
|
31989
31976
|
node: e,
|
|
31990
31977
|
name: n,
|
|
31991
31978
|
depth: r
|
|
31992
|
-
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(
|
|
31979
|
+
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(xX, {
|
|
31993
31980
|
node: e,
|
|
31994
31981
|
name: n,
|
|
31995
31982
|
depth: r
|
|
31996
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
31983
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${rZ(i)}). Field is omitted.`), null);
|
|
31997
31984
|
}
|
|
31998
|
-
function
|
|
31985
|
+
function nZ(e) {
|
|
31999
31986
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
32000
31987
|
}
|
|
32001
|
-
function
|
|
31988
|
+
function rZ(e) {
|
|
32002
31989
|
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";
|
|
32003
31990
|
}
|
|
32004
31991
|
//#endregion
|
|
32005
31992
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
32006
|
-
function
|
|
32007
|
-
return
|
|
31993
|
+
function iZ(e) {
|
|
31994
|
+
return aZ(e);
|
|
32008
31995
|
}
|
|
32009
|
-
function
|
|
31996
|
+
function aZ(e) {
|
|
32010
31997
|
let t = { ...e };
|
|
32011
31998
|
if (t.properties) {
|
|
32012
31999
|
let e = new Set(t.required ?? []), n = {};
|
|
32013
32000
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
32014
|
-
let t =
|
|
32001
|
+
let t = aZ(i);
|
|
32015
32002
|
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;
|
|
32016
32003
|
}
|
|
32017
32004
|
t.properties = n;
|
|
32018
32005
|
}
|
|
32019
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
32006
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(aZ) : aZ(t.items), t.oneOf &&= t.oneOf.map(aZ), t.anyOf &&= t.anyOf.map(aZ), t.allOf &&= t.allOf.map(aZ), t.dependencies &&= tX(t.dependencies, aZ), t;
|
|
32020
32007
|
}
|
|
32021
32008
|
//#endregion
|
|
32022
32009
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
32023
|
-
function
|
|
32010
|
+
function oZ(e) {
|
|
32024
32011
|
if (e.deprecated === !0) return { deprecated: !0 };
|
|
32025
32012
|
let t = { ...e };
|
|
32026
32013
|
if (e.properties) {
|
|
32027
32014
|
let n = [];
|
|
32028
32015
|
t.properties = {};
|
|
32029
|
-
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] =
|
|
32016
|
+
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] = oZ(i);
|
|
32030
32017
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
32031
32018
|
}
|
|
32032
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
32019
|
+
return e.items && !Array.isArray(e.items) && (t.items = oZ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => e.deprecated !== !0).map(oZ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => e.deprecated !== !0).map(oZ)), e.dependencies && (t.dependencies = tX(e.dependencies, oZ)), t;
|
|
32033
32020
|
}
|
|
32034
32021
|
//#endregion
|
|
32035
32022
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
32036
|
-
function
|
|
32037
|
-
let n = oZ(
|
|
32023
|
+
function sZ(e, t = "") {
|
|
32024
|
+
let n = iZ(oZ(nX(lX(e)))), r = /* @__PURE__ */ new Map();
|
|
32038
32025
|
return {
|
|
32039
|
-
root:
|
|
32026
|
+
root: cZ(n, "", !1, r, "", t),
|
|
32040
32027
|
nodeByPath: r,
|
|
32041
32028
|
variantIndices: /* @__PURE__ */ new Map()
|
|
32042
32029
|
};
|
|
32043
32030
|
}
|
|
32044
|
-
function
|
|
32031
|
+
function cZ(e, t, n, r, i = "", a = "") {
|
|
32045
32032
|
let o = {
|
|
32046
32033
|
rhfPath: t,
|
|
32047
32034
|
schema: e,
|
|
32048
32035
|
isRequired: n
|
|
32049
32036
|
};
|
|
32050
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
32037
|
+
if (e.gioConfig?.displayIf && (o.displayIf = pZ(e.gioConfig.displayIf, i, a)), e.properties) {
|
|
32051
32038
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
32052
32039
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
32053
32040
|
let e = t ? `${t}.${o}` : o;
|
|
32054
|
-
i.set(o,
|
|
32041
|
+
i.set(o, cZ(s, e, n.has(o), r, t, a));
|
|
32055
32042
|
}
|
|
32056
32043
|
o.properties = i;
|
|
32057
32044
|
}
|
|
32058
32045
|
if (e.items && !Array.isArray(e.items)) {
|
|
32059
32046
|
let n = t ? `${t}.*` : "*";
|
|
32060
|
-
o.items =
|
|
32047
|
+
o.items = cZ(e.items, n, !1, r, t, a);
|
|
32061
32048
|
}
|
|
32062
32049
|
let s = e.oneOf ?? e.anyOf;
|
|
32063
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
32064
|
-
let n =
|
|
32050
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = lZ(s).map((e) => uZ(e, t, a))), e.dependencies) {
|
|
32051
|
+
let n = hZ(e.dependencies, t, a);
|
|
32065
32052
|
n.length > 0 && (o.dependencyBranches = n);
|
|
32066
32053
|
}
|
|
32067
32054
|
return r.set(t, o), o;
|
|
32068
32055
|
}
|
|
32069
|
-
function
|
|
32056
|
+
function lZ(e) {
|
|
32070
32057
|
let t = /* @__PURE__ */ new Set();
|
|
32071
32058
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
32072
32059
|
}
|
|
32073
|
-
function
|
|
32060
|
+
function uZ(e, t, n) {
|
|
32074
32061
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
32075
32062
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
32076
|
-
let e =
|
|
32063
|
+
let e = dZ(s);
|
|
32077
32064
|
e && a.push({
|
|
32078
32065
|
key: o,
|
|
32079
32066
|
value: e.value
|
|
32080
32067
|
});
|
|
32081
32068
|
let c = t ? `${t}.${o}` : o;
|
|
32082
|
-
i.set(o,
|
|
32069
|
+
i.set(o, fZ(s, c, r.has(o), t, n));
|
|
32083
32070
|
}
|
|
32084
32071
|
let o;
|
|
32085
32072
|
if (e.dependencies) {
|
|
32086
|
-
let r =
|
|
32073
|
+
let r = hZ(e.dependencies, t, n);
|
|
32087
32074
|
r.length > 0 && (o = r);
|
|
32088
32075
|
}
|
|
32089
32076
|
return {
|
|
@@ -32094,17 +32081,17 @@ function fZ(e, t, n) {
|
|
|
32094
32081
|
raw: e
|
|
32095
32082
|
};
|
|
32096
32083
|
}
|
|
32097
|
-
function
|
|
32084
|
+
function dZ(e) {
|
|
32098
32085
|
if (e.const !== void 0) return { value: e.const };
|
|
32099
32086
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
32100
32087
|
}
|
|
32101
|
-
function
|
|
32102
|
-
return
|
|
32088
|
+
function fZ(e, t, n, r, i) {
|
|
32089
|
+
return cZ(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
32103
32090
|
}
|
|
32104
|
-
function
|
|
32091
|
+
function pZ(e, t, n) {
|
|
32105
32092
|
let r = /* @__PURE__ */ new Map();
|
|
32106
32093
|
for (let [i, a] of Object.entries(e.$eq)) {
|
|
32107
|
-
let e =
|
|
32094
|
+
let e = mZ(i, t, n);
|
|
32108
32095
|
if (e === null) {
|
|
32109
32096
|
console.warn(`[JsonSchemaForm] gioConfig path "${i}" is unsupported (expected value.X / ./X / ../X).`);
|
|
32110
32097
|
continue;
|
|
@@ -32113,7 +32100,7 @@ function hZ(e, t, n) {
|
|
|
32113
32100
|
}
|
|
32114
32101
|
return { $eq: r };
|
|
32115
32102
|
}
|
|
32116
|
-
function
|
|
32103
|
+
function mZ(e, t, n) {
|
|
32117
32104
|
let r = null;
|
|
32118
32105
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
32119
32106
|
else if (e.startsWith("./")) {
|
|
@@ -32127,24 +32114,24 @@ function gZ(e, t, n) {
|
|
|
32127
32114
|
}
|
|
32128
32115
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
32129
32116
|
}
|
|
32130
|
-
function
|
|
32117
|
+
function hZ(e, t, n) {
|
|
32131
32118
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
32132
|
-
let i =
|
|
32119
|
+
let i = gZ(e, r);
|
|
32133
32120
|
if (!i) return [];
|
|
32134
32121
|
let a = t ? `${t}.${e}` : e;
|
|
32135
|
-
return i.map((r) =>
|
|
32122
|
+
return i.map((r) => _Z(r, e, a, t, n));
|
|
32136
32123
|
});
|
|
32137
32124
|
}
|
|
32138
|
-
function
|
|
32125
|
+
function gZ(e, t) {
|
|
32139
32126
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
32140
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
32127
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && dZ(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);
|
|
32141
32128
|
}
|
|
32142
|
-
function
|
|
32143
|
-
let a =
|
|
32129
|
+
function _Z(e, t, n, r, i) {
|
|
32130
|
+
let a = dZ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
32144
32131
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
32145
32132
|
if (n === t) continue;
|
|
32146
32133
|
let e = r ? `${r}.${n}` : n;
|
|
32147
|
-
s.set(n,
|
|
32134
|
+
s.set(n, fZ(a, e, o.has(n), r, i));
|
|
32148
32135
|
}
|
|
32149
32136
|
let c = i ? `${i}.${n}` : n;
|
|
32150
32137
|
return {
|
|
@@ -32155,10 +32142,10 @@ function yZ(e, t, n, r, i) {
|
|
|
32155
32142
|
}
|
|
32156
32143
|
//#endregion
|
|
32157
32144
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
32158
|
-
function
|
|
32145
|
+
function vZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
32159
32146
|
let a = B(() => {
|
|
32160
32147
|
try {
|
|
32161
|
-
let a =
|
|
32148
|
+
let a = sZ(e, n);
|
|
32162
32149
|
return {
|
|
32163
32150
|
ok: !0,
|
|
32164
32151
|
contextValue: {
|
|
@@ -32183,9 +32170,9 @@ function bZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
32183
32170
|
r,
|
|
32184
32171
|
i
|
|
32185
32172
|
]);
|
|
32186
|
-
return a.ok ? /* @__PURE__ */ H(
|
|
32173
|
+
return a.ok ? /* @__PURE__ */ H(YY.Provider, {
|
|
32187
32174
|
value: a.contextValue,
|
|
32188
|
-
children: /* @__PURE__ */ H(
|
|
32175
|
+
children: /* @__PURE__ */ H(eZ, { node: a.root })
|
|
32189
32176
|
}) : /* @__PURE__ */ U("p", {
|
|
32190
32177
|
role: "alert",
|
|
32191
32178
|
className: "text-sm text-destructive",
|
|
@@ -32194,7 +32181,7 @@ function bZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
32194
32181
|
}
|
|
32195
32182
|
//#endregion
|
|
32196
32183
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
32197
|
-
function
|
|
32184
|
+
function yZ(...e) {
|
|
32198
32185
|
return async (t, n, r) => {
|
|
32199
32186
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
32200
32187
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -32209,7 +32196,7 @@ function xZ(...e) {
|
|
|
32209
32196
|
}
|
|
32210
32197
|
//#endregion
|
|
32211
32198
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
32212
|
-
var
|
|
32199
|
+
var bZ = /* @__PURE__ */ W(((e) => {
|
|
32213
32200
|
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;
|
|
32214
32201
|
var t = class {};
|
|
32215
32202
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -32314,9 +32301,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
32314
32301
|
return new r(e.toString());
|
|
32315
32302
|
}
|
|
32316
32303
|
e.regexpCode = g;
|
|
32317
|
-
})),
|
|
32304
|
+
})), xZ = /* @__PURE__ */ W(((e) => {
|
|
32318
32305
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
32319
|
-
var t =
|
|
32306
|
+
var t = bZ(), n = class extends Error {
|
|
32320
32307
|
constructor(e) {
|
|
32321
32308
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
32322
32309
|
}
|
|
@@ -32425,9 +32412,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
32425
32412
|
return c;
|
|
32426
32413
|
}
|
|
32427
32414
|
};
|
|
32428
|
-
})),
|
|
32415
|
+
})), SZ = /* @__PURE__ */ W(((e) => {
|
|
32429
32416
|
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;
|
|
32430
|
-
var t =
|
|
32417
|
+
var t = bZ(), n = xZ(), r = bZ();
|
|
32431
32418
|
Object.defineProperty(e, "_", {
|
|
32432
32419
|
enumerable: !0,
|
|
32433
32420
|
get: function() {
|
|
@@ -32469,7 +32456,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
32469
32456
|
return r.Name;
|
|
32470
32457
|
}
|
|
32471
32458
|
});
|
|
32472
|
-
var i =
|
|
32459
|
+
var i = xZ();
|
|
32473
32460
|
Object.defineProperty(e, "Scope", {
|
|
32474
32461
|
enumerable: !0,
|
|
32475
32462
|
get: function() {
|
|
@@ -32940,9 +32927,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
32940
32927
|
function L(e) {
|
|
32941
32928
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
32942
32929
|
}
|
|
32943
|
-
})),
|
|
32930
|
+
})), CZ = /* @__PURE__ */ W(((e) => {
|
|
32944
32931
|
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;
|
|
32945
|
-
var t =
|
|
32932
|
+
var t = SZ(), n = bZ();
|
|
32946
32933
|
function r(e) {
|
|
32947
32934
|
let t = {};
|
|
32948
32935
|
for (let n of e) t[n] = !0;
|
|
@@ -33065,9 +33052,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33065
33052
|
}
|
|
33066
33053
|
}
|
|
33067
33054
|
e.checkStrictMode = x;
|
|
33068
|
-
})),
|
|
33055
|
+
})), wZ = /* @__PURE__ */ W(((e) => {
|
|
33069
33056
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33070
|
-
var t =
|
|
33057
|
+
var t = SZ();
|
|
33071
33058
|
e.default = {
|
|
33072
33059
|
data: new t.Name("data"),
|
|
33073
33060
|
valCxt: new t.Name("valCxt"),
|
|
@@ -33086,9 +33073,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33086
33073
|
jsonLen: new t.Name("jsonLen"),
|
|
33087
33074
|
jsonPart: new t.Name("jsonPart")
|
|
33088
33075
|
};
|
|
33089
|
-
})),
|
|
33076
|
+
})), TZ = /* @__PURE__ */ W(((e) => {
|
|
33090
33077
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
33091
|
-
var t =
|
|
33078
|
+
var t = SZ(), n = CZ(), r = wZ();
|
|
33092
33079
|
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)` };
|
|
33093
33080
|
function i(n, r = e.keywordError, i, a) {
|
|
33094
33081
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -33150,9 +33137,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33150
33137
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
33151
33138
|
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]);
|
|
33152
33139
|
}
|
|
33153
|
-
})),
|
|
33140
|
+
})), EZ = /* @__PURE__ */ W(((e) => {
|
|
33154
33141
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
33155
|
-
var t =
|
|
33142
|
+
var t = TZ(), n = SZ(), r = wZ(), i = { message: "boolean schema is false" };
|
|
33156
33143
|
function a(e) {
|
|
33157
33144
|
let { gen: t, schema: i, validateName: a } = e;
|
|
33158
33145
|
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));
|
|
@@ -33176,7 +33163,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33176
33163
|
};
|
|
33177
33164
|
(0, t.reportError)(o, i, void 0, n);
|
|
33178
33165
|
}
|
|
33179
|
-
})),
|
|
33166
|
+
})), DZ = /* @__PURE__ */ W(((e) => {
|
|
33180
33167
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
33181
33168
|
var t = new Set([
|
|
33182
33169
|
"string",
|
|
@@ -33230,7 +33217,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33230
33217
|
};
|
|
33231
33218
|
}
|
|
33232
33219
|
e.getRules = r;
|
|
33233
|
-
})),
|
|
33220
|
+
})), OZ = /* @__PURE__ */ W(((e) => {
|
|
33234
33221
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
33235
33222
|
function t({ schema: e, self: t }, r) {
|
|
33236
33223
|
let i = t.RULES.types[r];
|
|
@@ -33245,9 +33232,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33245
33232
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
33246
33233
|
}
|
|
33247
33234
|
e.shouldUseRule = r;
|
|
33248
|
-
})),
|
|
33235
|
+
})), kZ = /* @__PURE__ */ W(((e) => {
|
|
33249
33236
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
33250
|
-
var t =
|
|
33237
|
+
var t = DZ(), n = OZ(), r = TZ(), i = SZ(), a = CZ(), o;
|
|
33251
33238
|
(function(e) {
|
|
33252
33239
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
33253
33240
|
})(o || (e.DataType = o = {}));
|
|
@@ -33382,9 +33369,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33382
33369
|
it: e
|
|
33383
33370
|
};
|
|
33384
33371
|
}
|
|
33385
|
-
})),
|
|
33372
|
+
})), AZ = /* @__PURE__ */ W(((e) => {
|
|
33386
33373
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
33387
|
-
var t =
|
|
33374
|
+
var t = SZ(), n = CZ();
|
|
33388
33375
|
function r(e, t) {
|
|
33389
33376
|
let { properties: n, items: r } = e.schema;
|
|
33390
33377
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -33402,9 +33389,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33402
33389
|
let u = (0, t._)`${l} === undefined`;
|
|
33403
33390
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
33404
33391
|
}
|
|
33405
|
-
})),
|
|
33392
|
+
})), jZ = /* @__PURE__ */ W(((e) => {
|
|
33406
33393
|
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;
|
|
33407
|
-
var t =
|
|
33394
|
+
var t = SZ(), n = CZ(), r = wZ(), i = CZ();
|
|
33408
33395
|
function a(e, n) {
|
|
33409
33396
|
let { gen: r, data: i, it: a } = e;
|
|
33410
33397
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -33506,9 +33493,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33506
33493
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
33507
33494
|
}
|
|
33508
33495
|
e.validateUnion = v;
|
|
33509
|
-
})),
|
|
33496
|
+
})), MZ = /* @__PURE__ */ W(((e) => {
|
|
33510
33497
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
33511
|
-
var t =
|
|
33498
|
+
var t = SZ(), n = wZ(), r = jZ(), i = TZ();
|
|
33512
33499
|
function a(e, n) {
|
|
33513
33500
|
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);
|
|
33514
33501
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -33587,9 +33574,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33587
33574
|
}
|
|
33588
33575
|
}
|
|
33589
33576
|
e.validateKeywordUsage = f;
|
|
33590
|
-
})),
|
|
33577
|
+
})), NZ = /* @__PURE__ */ W(((e) => {
|
|
33591
33578
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
33592
|
-
var t =
|
|
33579
|
+
var t = SZ(), n = CZ();
|
|
33593
33580
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
33594
33581
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
33595
33582
|
if (r !== void 0) {
|
|
@@ -33633,7 +33620,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33633
33620
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
33634
33621
|
}
|
|
33635
33622
|
e.extendSubschemaMode = a;
|
|
33636
|
-
})),
|
|
33623
|
+
})), PZ = /* @__PURE__ */ W(((e, t) => {
|
|
33637
33624
|
t.exports = function e(t, n) {
|
|
33638
33625
|
if (t === n) return !0;
|
|
33639
33626
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -33657,7 +33644,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33657
33644
|
}
|
|
33658
33645
|
return t !== t && n !== n;
|
|
33659
33646
|
};
|
|
33660
|
-
})),
|
|
33647
|
+
})), FZ = /* @__PURE__ */ W(((e, t) => {
|
|
33661
33648
|
var n = t.exports = function(e, t, n) {
|
|
33662
33649
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
33663
33650
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -33720,9 +33707,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33720
33707
|
function i(e) {
|
|
33721
33708
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
33722
33709
|
}
|
|
33723
|
-
})),
|
|
33710
|
+
})), IZ = /* @__PURE__ */ W(((e) => {
|
|
33724
33711
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
33725
|
-
var t =
|
|
33712
|
+
var t = CZ(), n = PZ(), r = FZ(), i = new Set([
|
|
33726
33713
|
"type",
|
|
33727
33714
|
"format",
|
|
33728
33715
|
"pattern",
|
|
@@ -33811,9 +33798,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
33811
33798
|
}
|
|
33812
33799
|
}
|
|
33813
33800
|
e.getSchemaRefs = h;
|
|
33814
|
-
})),
|
|
33801
|
+
})), LZ = /* @__PURE__ */ W(((e) => {
|
|
33815
33802
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
33816
|
-
var t =
|
|
33803
|
+
var t = EZ(), n = kZ(), r = OZ(), i = kZ(), a = AZ(), o = MZ(), s = NZ(), c = SZ(), l = wZ(), u = IZ(), d = CZ(), f = TZ();
|
|
33817
33804
|
function p(e) {
|
|
33818
33805
|
if (S(e) && (w(e), x(e))) {
|
|
33819
33806
|
_(e);
|
|
@@ -34103,23 +34090,23 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
34103
34090
|
}
|
|
34104
34091
|
}
|
|
34105
34092
|
e.getData = ae;
|
|
34106
|
-
})),
|
|
34093
|
+
})), RZ = /* @__PURE__ */ W(((e) => {
|
|
34107
34094
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
34108
34095
|
constructor(e) {
|
|
34109
34096
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
34110
34097
|
}
|
|
34111
34098
|
};
|
|
34112
|
-
})),
|
|
34099
|
+
})), zZ = /* @__PURE__ */ W(((e) => {
|
|
34113
34100
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34114
|
-
var t =
|
|
34101
|
+
var t = IZ();
|
|
34115
34102
|
e.default = class extends Error {
|
|
34116
34103
|
constructor(e, n, r, i) {
|
|
34117
34104
|
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));
|
|
34118
34105
|
}
|
|
34119
34106
|
};
|
|
34120
|
-
})),
|
|
34107
|
+
})), BZ = /* @__PURE__ */ W(((e) => {
|
|
34121
34108
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
34122
|
-
var t =
|
|
34109
|
+
var t = SZ(), n = RZ(), r = wZ(), i = IZ(), a = CZ(), o = LZ(), s = class {
|
|
34123
34110
|
constructor(e) {
|
|
34124
34111
|
this.refs = {}, this.dynamicAnchors = {};
|
|
34125
34112
|
let t;
|
|
@@ -34278,27 +34265,27 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
34278
34265
|
baseId: t
|
|
34279
34266
|
}), o.schema !== o.root.schema) return o;
|
|
34280
34267
|
}
|
|
34281
|
-
})),
|
|
34282
|
-
$id: () =>
|
|
34268
|
+
})), VZ = /* @__PURE__ */ xe({
|
|
34269
|
+
$id: () => HZ,
|
|
34283
34270
|
additionalProperties: () => !1,
|
|
34284
|
-
default: () =>
|
|
34285
|
-
description: () =>
|
|
34286
|
-
properties: () =>
|
|
34287
|
-
required: () =>
|
|
34288
|
-
type: () =>
|
|
34289
|
-
}), WZ, GZ, KZ, qZ, JZ
|
|
34290
|
-
|
|
34271
|
+
default: () => qZ,
|
|
34272
|
+
description: () => UZ,
|
|
34273
|
+
properties: () => KZ,
|
|
34274
|
+
required: () => GZ,
|
|
34275
|
+
type: () => WZ
|
|
34276
|
+
}), HZ, UZ, WZ, GZ, KZ, qZ, JZ = be((() => {
|
|
34277
|
+
HZ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", UZ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", WZ = "object", GZ = ["$data"], KZ = { $data: {
|
|
34291
34278
|
type: "string",
|
|
34292
34279
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
34293
|
-
} },
|
|
34294
|
-
$id:
|
|
34295
|
-
description:
|
|
34296
|
-
type:
|
|
34297
|
-
required:
|
|
34298
|
-
properties:
|
|
34280
|
+
} }, qZ = {
|
|
34281
|
+
$id: HZ,
|
|
34282
|
+
description: UZ,
|
|
34283
|
+
type: WZ,
|
|
34284
|
+
required: GZ,
|
|
34285
|
+
properties: KZ,
|
|
34299
34286
|
additionalProperties: !1
|
|
34300
34287
|
};
|
|
34301
|
-
})),
|
|
34288
|
+
})), YZ = /* @__PURE__ */ W(((e, t) => {
|
|
34302
34289
|
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);
|
|
34303
34290
|
function s(e) {
|
|
34304
34291
|
let t = "", n = 0, r = 0;
|
|
@@ -34510,8 +34497,8 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
34510
34497
|
normalizeIPv6: f,
|
|
34511
34498
|
stringArrayToHexStripped: s
|
|
34512
34499
|
};
|
|
34513
|
-
})),
|
|
34514
|
-
var { isUUID: n } =
|
|
34500
|
+
})), XZ = /* @__PURE__ */ W(((e, t) => {
|
|
34501
|
+
var { isUUID: n } = YZ(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
34515
34502
|
"http",
|
|
34516
34503
|
"https",
|
|
34517
34504
|
"ws",
|
|
@@ -34616,8 +34603,8 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
34616
34603
|
isValidSchemeName: a,
|
|
34617
34604
|
getSchemeHandler: y
|
|
34618
34605
|
};
|
|
34619
|
-
})),
|
|
34620
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
34606
|
+
})), ZZ = /* @__PURE__ */ W(((e, t) => {
|
|
34607
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = YZ(), { SCHEMES: d, getSchemeHandler: f } = XZ();
|
|
34621
34608
|
function p(e, t) {
|
|
34622
34609
|
return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
|
|
34623
34610
|
}
|
|
@@ -34731,20 +34718,20 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
34731
34718
|
parse: x
|
|
34732
34719
|
};
|
|
34733
34720
|
t.exports = T, t.exports.default = T, t.exports.fastUri = T;
|
|
34734
|
-
})),
|
|
34721
|
+
})), QZ = /* @__PURE__ */ W(((e) => {
|
|
34735
34722
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34736
|
-
var t =
|
|
34723
|
+
var t = ZZ();
|
|
34737
34724
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
34738
|
-
})),
|
|
34725
|
+
})), $Z = /* @__PURE__ */ W(((e) => {
|
|
34739
34726
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
34740
|
-
var t =
|
|
34727
|
+
var t = LZ();
|
|
34741
34728
|
Object.defineProperty(e, "KeywordCxt", {
|
|
34742
34729
|
enumerable: !0,
|
|
34743
34730
|
get: function() {
|
|
34744
34731
|
return t.KeywordCxt;
|
|
34745
34732
|
}
|
|
34746
34733
|
});
|
|
34747
|
-
var n =
|
|
34734
|
+
var n = SZ();
|
|
34748
34735
|
Object.defineProperty(e, "_", {
|
|
34749
34736
|
enumerable: !0,
|
|
34750
34737
|
get: function() {
|
|
@@ -34776,7 +34763,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
34776
34763
|
return n.CodeGen;
|
|
34777
34764
|
}
|
|
34778
34765
|
});
|
|
34779
|
-
var r =
|
|
34766
|
+
var r = RZ(), i = zZ(), a = DZ(), o = BZ(), s = SZ(), c = IZ(), l = kZ(), u = CZ(), d = (JZ(), we(VZ).default), f = QZ(), p = (e, t) => new RegExp(e, t);
|
|
34780
34767
|
p.code = "new RegExp";
|
|
34781
34768
|
var m = [
|
|
34782
34769
|
"removeAdditional",
|
|
@@ -35162,16 +35149,16 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35162
35149
|
function F(e) {
|
|
35163
35150
|
return { anyOf: [e, P] };
|
|
35164
35151
|
}
|
|
35165
|
-
})),
|
|
35152
|
+
})), eQ = /* @__PURE__ */ W(((e) => {
|
|
35166
35153
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35167
35154
|
keyword: "id",
|
|
35168
35155
|
code() {
|
|
35169
35156
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
35170
35157
|
}
|
|
35171
35158
|
};
|
|
35172
|
-
})),
|
|
35159
|
+
})), tQ = /* @__PURE__ */ W(((e) => {
|
|
35173
35160
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
35174
|
-
var t =
|
|
35161
|
+
var t = zZ(), n = jZ(), r = SZ(), i = wZ(), a = BZ(), o = CZ(), s = {
|
|
35175
35162
|
keyword: "$ref",
|
|
35176
35163
|
schemaType: "string",
|
|
35177
35164
|
code(e) {
|
|
@@ -35244,9 +35231,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35244
35231
|
}
|
|
35245
35232
|
}
|
|
35246
35233
|
e.callRef = l, e.default = s;
|
|
35247
|
-
})),
|
|
35234
|
+
})), nQ = /* @__PURE__ */ W(((e) => {
|
|
35248
35235
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35249
|
-
var t =
|
|
35236
|
+
var t = eQ(), n = tQ();
|
|
35250
35237
|
e.default = [
|
|
35251
35238
|
"$schema",
|
|
35252
35239
|
"$id",
|
|
@@ -35257,9 +35244,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35257
35244
|
t.default,
|
|
35258
35245
|
n.default
|
|
35259
35246
|
];
|
|
35260
|
-
})),
|
|
35247
|
+
})), rQ = /* @__PURE__ */ W(((e) => {
|
|
35261
35248
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35262
|
-
var t =
|
|
35249
|
+
var t = SZ(), n = t.operators, r = {
|
|
35263
35250
|
maximum: {
|
|
35264
35251
|
okStr: "<=",
|
|
35265
35252
|
ok: n.LTE,
|
|
@@ -35295,9 +35282,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35295
35282
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
35296
35283
|
}
|
|
35297
35284
|
};
|
|
35298
|
-
})),
|
|
35285
|
+
})), iQ = /* @__PURE__ */ W(((e) => {
|
|
35299
35286
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35300
|
-
var t =
|
|
35287
|
+
var t = SZ();
|
|
35301
35288
|
e.default = {
|
|
35302
35289
|
keyword: "multipleOf",
|
|
35303
35290
|
type: "number",
|
|
@@ -35312,7 +35299,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35312
35299
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
35313
35300
|
}
|
|
35314
35301
|
};
|
|
35315
|
-
})),
|
|
35302
|
+
})), aQ = /* @__PURE__ */ W(((e) => {
|
|
35316
35303
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35317
35304
|
function t(e) {
|
|
35318
35305
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -35320,9 +35307,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35320
35307
|
return n;
|
|
35321
35308
|
}
|
|
35322
35309
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
35323
|
-
})),
|
|
35310
|
+
})), oQ = /* @__PURE__ */ W(((e) => {
|
|
35324
35311
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35325
|
-
var t =
|
|
35312
|
+
var t = SZ(), n = CZ(), r = aQ();
|
|
35326
35313
|
e.default = {
|
|
35327
35314
|
keyword: ["maxLength", "minLength"],
|
|
35328
35315
|
type: "string",
|
|
@@ -35340,9 +35327,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35340
35327
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
35341
35328
|
}
|
|
35342
35329
|
};
|
|
35343
|
-
})),
|
|
35330
|
+
})), sQ = /* @__PURE__ */ W(((e) => {
|
|
35344
35331
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35345
|
-
var t =
|
|
35332
|
+
var t = jZ(), n = CZ(), r = SZ();
|
|
35346
35333
|
e.default = {
|
|
35347
35334
|
keyword: "pattern",
|
|
35348
35335
|
type: "string",
|
|
@@ -35363,9 +35350,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35363
35350
|
}
|
|
35364
35351
|
}
|
|
35365
35352
|
};
|
|
35366
|
-
})),
|
|
35353
|
+
})), cQ = /* @__PURE__ */ W(((e) => {
|
|
35367
35354
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35368
|
-
var t =
|
|
35355
|
+
var t = SZ();
|
|
35369
35356
|
e.default = {
|
|
35370
35357
|
keyword: ["maxProperties", "minProperties"],
|
|
35371
35358
|
type: "object",
|
|
@@ -35383,9 +35370,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35383
35370
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
35384
35371
|
}
|
|
35385
35372
|
};
|
|
35386
|
-
})),
|
|
35373
|
+
})), lQ = /* @__PURE__ */ W(((e) => {
|
|
35387
35374
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35388
|
-
var t =
|
|
35375
|
+
var t = jZ(), n = SZ(), r = CZ();
|
|
35389
35376
|
e.default = {
|
|
35390
35377
|
keyword: "required",
|
|
35391
35378
|
type: "object",
|
|
@@ -35431,9 +35418,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35431
35418
|
}
|
|
35432
35419
|
}
|
|
35433
35420
|
};
|
|
35434
|
-
})),
|
|
35421
|
+
})), uQ = /* @__PURE__ */ W(((e) => {
|
|
35435
35422
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35436
|
-
var t =
|
|
35423
|
+
var t = SZ();
|
|
35437
35424
|
e.default = {
|
|
35438
35425
|
keyword: ["maxItems", "minItems"],
|
|
35439
35426
|
type: "array",
|
|
@@ -35451,13 +35438,13 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35451
35438
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
35452
35439
|
}
|
|
35453
35440
|
};
|
|
35454
|
-
})),
|
|
35441
|
+
})), dQ = /* @__PURE__ */ W(((e) => {
|
|
35455
35442
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35456
|
-
var t =
|
|
35443
|
+
var t = PZ();
|
|
35457
35444
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
35458
|
-
})),
|
|
35445
|
+
})), fQ = /* @__PURE__ */ W(((e) => {
|
|
35459
35446
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35460
|
-
var t =
|
|
35447
|
+
var t = kZ(), n = SZ(), r = CZ(), i = dQ();
|
|
35461
35448
|
e.default = {
|
|
35462
35449
|
keyword: "uniqueItems",
|
|
35463
35450
|
type: "array",
|
|
@@ -35498,9 +35485,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35498
35485
|
}
|
|
35499
35486
|
}
|
|
35500
35487
|
};
|
|
35501
|
-
})),
|
|
35488
|
+
})), pQ = /* @__PURE__ */ W(((e) => {
|
|
35502
35489
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35503
|
-
var t =
|
|
35490
|
+
var t = SZ(), n = CZ(), r = dQ();
|
|
35504
35491
|
e.default = {
|
|
35505
35492
|
keyword: "const",
|
|
35506
35493
|
$data: !0,
|
|
@@ -35513,9 +35500,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35513
35500
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
35514
35501
|
}
|
|
35515
35502
|
};
|
|
35516
|
-
})),
|
|
35503
|
+
})), mQ = /* @__PURE__ */ W(((e) => {
|
|
35517
35504
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35518
|
-
var t =
|
|
35505
|
+
var t = SZ(), n = CZ(), r = dQ();
|
|
35519
35506
|
e.default = {
|
|
35520
35507
|
keyword: "enum",
|
|
35521
35508
|
schemaType: "array",
|
|
@@ -35545,9 +35532,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35545
35532
|
}
|
|
35546
35533
|
}
|
|
35547
35534
|
};
|
|
35548
|
-
})),
|
|
35535
|
+
})), hQ = /* @__PURE__ */ W(((e) => {
|
|
35549
35536
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35550
|
-
var t =
|
|
35537
|
+
var t = rQ(), n = iQ(), r = oQ(), i = sQ(), a = cQ(), o = lQ(), s = uQ(), c = fQ(), l = pQ(), u = mQ();
|
|
35551
35538
|
e.default = [
|
|
35552
35539
|
t.default,
|
|
35553
35540
|
n.default,
|
|
@@ -35568,9 +35555,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35568
35555
|
l.default,
|
|
35569
35556
|
u.default
|
|
35570
35557
|
];
|
|
35571
|
-
})),
|
|
35558
|
+
})), gQ = /* @__PURE__ */ W(((e) => {
|
|
35572
35559
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
35573
|
-
var t =
|
|
35560
|
+
var t = SZ(), n = CZ(), r = {
|
|
35574
35561
|
keyword: "additionalItems",
|
|
35575
35562
|
type: "array",
|
|
35576
35563
|
schemaType: ["boolean", "object"],
|
|
@@ -35608,9 +35595,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35608
35595
|
}
|
|
35609
35596
|
}
|
|
35610
35597
|
e.validateAdditionalItems = i, e.default = r;
|
|
35611
|
-
})),
|
|
35598
|
+
})), _Q = /* @__PURE__ */ W(((e) => {
|
|
35612
35599
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
35613
|
-
var t =
|
|
35600
|
+
var t = SZ(), n = CZ(), r = jZ(), i = {
|
|
35614
35601
|
keyword: "items",
|
|
35615
35602
|
type: "array",
|
|
35616
35603
|
schemaType: [
|
|
@@ -35645,9 +35632,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35645
35632
|
}
|
|
35646
35633
|
}
|
|
35647
35634
|
e.validateTuple = a, e.default = i;
|
|
35648
|
-
})),
|
|
35635
|
+
})), vQ = /* @__PURE__ */ W(((e) => {
|
|
35649
35636
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35650
|
-
var t =
|
|
35637
|
+
var t = _Q();
|
|
35651
35638
|
e.default = {
|
|
35652
35639
|
keyword: "prefixItems",
|
|
35653
35640
|
type: "array",
|
|
@@ -35655,9 +35642,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35655
35642
|
before: "uniqueItems",
|
|
35656
35643
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
35657
35644
|
};
|
|
35658
|
-
})),
|
|
35645
|
+
})), yQ = /* @__PURE__ */ W(((e) => {
|
|
35659
35646
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35660
|
-
var t =
|
|
35647
|
+
var t = SZ(), n = CZ(), r = jZ(), i = gQ();
|
|
35661
35648
|
e.default = {
|
|
35662
35649
|
keyword: "items",
|
|
35663
35650
|
type: "array",
|
|
@@ -35672,9 +35659,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35672
35659
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
35673
35660
|
}
|
|
35674
35661
|
};
|
|
35675
|
-
})),
|
|
35662
|
+
})), bQ = /* @__PURE__ */ W(((e) => {
|
|
35676
35663
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35677
|
-
var t =
|
|
35664
|
+
var t = SZ(), n = CZ();
|
|
35678
35665
|
e.default = {
|
|
35679
35666
|
keyword: "contains",
|
|
35680
35667
|
type: "array",
|
|
@@ -35727,9 +35714,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35727
35714
|
}
|
|
35728
35715
|
}
|
|
35729
35716
|
};
|
|
35730
|
-
})),
|
|
35717
|
+
})), xQ = /* @__PURE__ */ W(((e) => {
|
|
35731
35718
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
35732
|
-
var t =
|
|
35719
|
+
var t = SZ(), n = CZ(), r = jZ();
|
|
35733
35720
|
e.error = {
|
|
35734
35721
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
35735
35722
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -35788,9 +35775,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35788
35775
|
}, () => i.var(c, !0)), e.ok(c));
|
|
35789
35776
|
}
|
|
35790
35777
|
e.validateSchemaDeps = s, e.default = i;
|
|
35791
|
-
})),
|
|
35778
|
+
})), SQ = /* @__PURE__ */ W(((e) => {
|
|
35792
35779
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35793
|
-
var t =
|
|
35780
|
+
var t = SZ(), n = CZ();
|
|
35794
35781
|
e.default = {
|
|
35795
35782
|
keyword: "propertyNames",
|
|
35796
35783
|
type: "object",
|
|
@@ -35816,9 +35803,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35816
35803
|
}), e.ok(s);
|
|
35817
35804
|
}
|
|
35818
35805
|
};
|
|
35819
|
-
})),
|
|
35806
|
+
})), CQ = /* @__PURE__ */ W(((e) => {
|
|
35820
35807
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35821
|
-
var t =
|
|
35808
|
+
var t = jZ(), n = SZ(), r = wZ(), i = CZ();
|
|
35822
35809
|
e.default = {
|
|
35823
35810
|
keyword: "additionalProperties",
|
|
35824
35811
|
type: ["object"],
|
|
@@ -35883,9 +35870,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35883
35870
|
}
|
|
35884
35871
|
}
|
|
35885
35872
|
};
|
|
35886
|
-
})),
|
|
35873
|
+
})), wQ = /* @__PURE__ */ W(((e) => {
|
|
35887
35874
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35888
|
-
var t =
|
|
35875
|
+
var t = LZ(), n = jZ(), r = CZ(), i = CQ();
|
|
35889
35876
|
e.default = {
|
|
35890
35877
|
keyword: "properties",
|
|
35891
35878
|
type: "object",
|
|
@@ -35912,9 +35899,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35912
35899
|
}
|
|
35913
35900
|
}
|
|
35914
35901
|
};
|
|
35915
|
-
})),
|
|
35902
|
+
})), TQ = /* @__PURE__ */ W(((e) => {
|
|
35916
35903
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35917
|
-
var t =
|
|
35904
|
+
var t = jZ(), n = SZ(), r = CZ(), i = CZ();
|
|
35918
35905
|
e.default = {
|
|
35919
35906
|
keyword: "patternProperties",
|
|
35920
35907
|
type: "object",
|
|
@@ -35947,9 +35934,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35947
35934
|
}
|
|
35948
35935
|
}
|
|
35949
35936
|
};
|
|
35950
|
-
})),
|
|
35937
|
+
})), EQ = /* @__PURE__ */ W(((e) => {
|
|
35951
35938
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35952
|
-
var t =
|
|
35939
|
+
var t = CZ();
|
|
35953
35940
|
e.default = {
|
|
35954
35941
|
keyword: "not",
|
|
35955
35942
|
schemaType: ["object", "boolean"],
|
|
@@ -35970,17 +35957,17 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
35970
35957
|
},
|
|
35971
35958
|
error: { message: "must NOT be valid" }
|
|
35972
35959
|
};
|
|
35973
|
-
})),
|
|
35960
|
+
})), DQ = /* @__PURE__ */ W(((e) => {
|
|
35974
35961
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35975
35962
|
keyword: "anyOf",
|
|
35976
35963
|
schemaType: "array",
|
|
35977
35964
|
trackErrors: !0,
|
|
35978
|
-
code:
|
|
35965
|
+
code: jZ().validateUnion,
|
|
35979
35966
|
error: { message: "must match a schema in anyOf" }
|
|
35980
35967
|
};
|
|
35981
|
-
})),
|
|
35968
|
+
})), OQ = /* @__PURE__ */ W(((e) => {
|
|
35982
35969
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35983
|
-
var t =
|
|
35970
|
+
var t = SZ(), n = CZ();
|
|
35984
35971
|
e.default = {
|
|
35985
35972
|
keyword: "oneOf",
|
|
35986
35973
|
schemaType: "array",
|
|
@@ -36010,9 +35997,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36010
35997
|
}
|
|
36011
35998
|
}
|
|
36012
35999
|
};
|
|
36013
|
-
})),
|
|
36000
|
+
})), kQ = /* @__PURE__ */ W(((e) => {
|
|
36014
36001
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36015
|
-
var t =
|
|
36002
|
+
var t = CZ();
|
|
36016
36003
|
e.default = {
|
|
36017
36004
|
keyword: "allOf",
|
|
36018
36005
|
schemaType: "array",
|
|
@@ -36031,9 +36018,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36031
36018
|
});
|
|
36032
36019
|
}
|
|
36033
36020
|
};
|
|
36034
|
-
})),
|
|
36021
|
+
})), AQ = /* @__PURE__ */ W(((e) => {
|
|
36035
36022
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36036
|
-
var t =
|
|
36023
|
+
var t = SZ(), n = CZ(), r = {
|
|
36037
36024
|
keyword: "if",
|
|
36038
36025
|
schemaType: ["object", "boolean"],
|
|
36039
36026
|
trackErrors: !0,
|
|
@@ -36074,9 +36061,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36074
36061
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
36075
36062
|
}
|
|
36076
36063
|
e.default = r;
|
|
36077
|
-
})),
|
|
36064
|
+
})), jQ = /* @__PURE__ */ W(((e) => {
|
|
36078
36065
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36079
|
-
var t =
|
|
36066
|
+
var t = CZ();
|
|
36080
36067
|
e.default = {
|
|
36081
36068
|
keyword: ["then", "else"],
|
|
36082
36069
|
schemaType: ["object", "boolean"],
|
|
@@ -36084,9 +36071,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36084
36071
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
36085
36072
|
}
|
|
36086
36073
|
};
|
|
36087
|
-
})),
|
|
36074
|
+
})), MQ = /* @__PURE__ */ W(((e) => {
|
|
36088
36075
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36089
|
-
var t =
|
|
36076
|
+
var t = gQ(), n = vQ(), r = _Q(), i = yQ(), a = bQ(), o = xQ(), s = SQ(), c = CQ(), l = wQ(), u = TQ(), d = EQ(), f = DQ(), p = OQ(), m = kQ(), h = AQ(), g = jQ();
|
|
36090
36077
|
function _(e = !1) {
|
|
36091
36078
|
let _ = [
|
|
36092
36079
|
d.default,
|
|
@@ -36104,9 +36091,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36104
36091
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
36105
36092
|
}
|
|
36106
36093
|
e.default = _;
|
|
36107
|
-
})),
|
|
36094
|
+
})), NQ = /* @__PURE__ */ W(((e) => {
|
|
36108
36095
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36109
|
-
var t =
|
|
36096
|
+
var t = SZ();
|
|
36110
36097
|
e.default = {
|
|
36111
36098
|
keyword: "format",
|
|
36112
36099
|
type: ["number", "string"],
|
|
@@ -36179,9 +36166,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36179
36166
|
}
|
|
36180
36167
|
}
|
|
36181
36168
|
};
|
|
36182
|
-
})),
|
|
36183
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
36184
|
-
})),
|
|
36169
|
+
})), PQ = /* @__PURE__ */ W(((e) => {
|
|
36170
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [NQ().default];
|
|
36171
|
+
})), FQ = /* @__PURE__ */ W(((e) => {
|
|
36185
36172
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
36186
36173
|
"title",
|
|
36187
36174
|
"description",
|
|
@@ -36195,9 +36182,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36195
36182
|
"contentEncoding",
|
|
36196
36183
|
"contentSchema"
|
|
36197
36184
|
];
|
|
36198
|
-
})),
|
|
36185
|
+
})), IQ = /* @__PURE__ */ W(((e) => {
|
|
36199
36186
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36200
|
-
var t =
|
|
36187
|
+
var t = nQ(), n = hQ(), r = MQ(), i = PQ(), a = FQ();
|
|
36201
36188
|
e.default = [
|
|
36202
36189
|
t.default,
|
|
36203
36190
|
n.default,
|
|
@@ -36206,15 +36193,15 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36206
36193
|
a.metadataVocabulary,
|
|
36207
36194
|
a.contentVocabulary
|
|
36208
36195
|
];
|
|
36209
|
-
})),
|
|
36196
|
+
})), LQ = /* @__PURE__ */ W(((e) => {
|
|
36210
36197
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
36211
36198
|
var t;
|
|
36212
36199
|
(function(e) {
|
|
36213
36200
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
36214
36201
|
})(t || (e.DiscrError = t = {}));
|
|
36215
|
-
})),
|
|
36202
|
+
})), RQ = /* @__PURE__ */ W(((e) => {
|
|
36216
36203
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36217
|
-
var t =
|
|
36204
|
+
var t = SZ(), n = LQ(), r = BZ(), i = zZ(), a = CZ();
|
|
36218
36205
|
e.default = {
|
|
36219
36206
|
keyword: "discriminator",
|
|
36220
36207
|
type: "object",
|
|
@@ -36282,16 +36269,16 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36282
36269
|
}
|
|
36283
36270
|
}
|
|
36284
36271
|
};
|
|
36285
|
-
})),
|
|
36286
|
-
$id: () =>
|
|
36287
|
-
$schema: () =>
|
|
36288
|
-
default: () =>
|
|
36289
|
-
definitions: () =>
|
|
36290
|
-
properties: () =>
|
|
36291
|
-
title: () =>
|
|
36292
|
-
type: () =>
|
|
36293
|
-
}), HQ, UQ, WQ, GQ, KQ, qQ
|
|
36294
|
-
|
|
36272
|
+
})), zQ = /* @__PURE__ */ xe({
|
|
36273
|
+
$id: () => VQ,
|
|
36274
|
+
$schema: () => BQ,
|
|
36275
|
+
default: () => KQ,
|
|
36276
|
+
definitions: () => UQ,
|
|
36277
|
+
properties: () => GQ,
|
|
36278
|
+
title: () => HQ,
|
|
36279
|
+
type: () => WQ
|
|
36280
|
+
}), BQ, VQ, HQ, UQ, WQ, GQ, KQ, qQ = be((() => {
|
|
36281
|
+
BQ = "http://json-schema.org/draft-07/schema#", VQ = "http://json-schema.org/draft-07/schema#", HQ = "Core schema meta-schema", UQ = {
|
|
36295
36282
|
schemaArray: {
|
|
36296
36283
|
type: "array",
|
|
36297
36284
|
minItems: 1,
|
|
@@ -36317,7 +36304,7 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36317
36304
|
uniqueItems: !0,
|
|
36318
36305
|
default: []
|
|
36319
36306
|
}
|
|
36320
|
-
},
|
|
36307
|
+
}, WQ = ["object", "boolean"], GQ = {
|
|
36321
36308
|
$id: {
|
|
36322
36309
|
type: "string",
|
|
36323
36310
|
format: "uri-reference"
|
|
@@ -36416,18 +36403,18 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36416
36403
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
36417
36404
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
36418
36405
|
not: { $ref: "#" }
|
|
36419
|
-
},
|
|
36420
|
-
$schema:
|
|
36421
|
-
$id:
|
|
36422
|
-
title:
|
|
36423
|
-
definitions:
|
|
36424
|
-
type:
|
|
36425
|
-
properties:
|
|
36406
|
+
}, KQ = {
|
|
36407
|
+
$schema: BQ,
|
|
36408
|
+
$id: VQ,
|
|
36409
|
+
title: HQ,
|
|
36410
|
+
definitions: UQ,
|
|
36411
|
+
type: WQ,
|
|
36412
|
+
properties: GQ,
|
|
36426
36413
|
default: !0
|
|
36427
36414
|
};
|
|
36428
|
-
})),
|
|
36415
|
+
})), JQ = /* @__PURE__ */ W(((e, t) => {
|
|
36429
36416
|
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;
|
|
36430
|
-
var n =
|
|
36417
|
+
var n = $Z(), r = IQ(), i = RQ(), a = (qQ(), we(zQ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
36431
36418
|
_addVocabularies() {
|
|
36432
36419
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
36433
36420
|
}
|
|
@@ -36441,14 +36428,14 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36441
36428
|
}
|
|
36442
36429
|
};
|
|
36443
36430
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
36444
|
-
var l =
|
|
36431
|
+
var l = LZ();
|
|
36445
36432
|
Object.defineProperty(e, "KeywordCxt", {
|
|
36446
36433
|
enumerable: !0,
|
|
36447
36434
|
get: function() {
|
|
36448
36435
|
return l.KeywordCxt;
|
|
36449
36436
|
}
|
|
36450
36437
|
});
|
|
36451
|
-
var u =
|
|
36438
|
+
var u = SZ();
|
|
36452
36439
|
Object.defineProperty(e, "_", {
|
|
36453
36440
|
enumerable: !0,
|
|
36454
36441
|
get: function() {
|
|
@@ -36480,21 +36467,21 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36480
36467
|
return u.CodeGen;
|
|
36481
36468
|
}
|
|
36482
36469
|
});
|
|
36483
|
-
var d =
|
|
36470
|
+
var d = RZ();
|
|
36484
36471
|
Object.defineProperty(e, "ValidationError", {
|
|
36485
36472
|
enumerable: !0,
|
|
36486
36473
|
get: function() {
|
|
36487
36474
|
return d.default;
|
|
36488
36475
|
}
|
|
36489
36476
|
});
|
|
36490
|
-
var f =
|
|
36477
|
+
var f = zZ();
|
|
36491
36478
|
Object.defineProperty(e, "MissingRefError", {
|
|
36492
36479
|
enumerable: !0,
|
|
36493
36480
|
get: function() {
|
|
36494
36481
|
return f.default;
|
|
36495
36482
|
}
|
|
36496
36483
|
});
|
|
36497
|
-
})),
|
|
36484
|
+
})), YQ = /* @__PURE__ */ W(((e) => {
|
|
36498
36485
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
36499
36486
|
function t(e, t) {
|
|
36500
36487
|
return {
|
|
@@ -36646,9 +36633,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36646
36633
|
return !1;
|
|
36647
36634
|
}
|
|
36648
36635
|
}
|
|
36649
|
-
})),
|
|
36636
|
+
})), XQ = /* @__PURE__ */ W(((e) => {
|
|
36650
36637
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
36651
|
-
var t =
|
|
36638
|
+
var t = JQ(), n = SZ(), r = n.operators, i = {
|
|
36652
36639
|
formatMaximum: {
|
|
36653
36640
|
okStr: "<=",
|
|
36654
36641
|
ok: r.LTE,
|
|
@@ -36708,9 +36695,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36708
36695
|
},
|
|
36709
36696
|
dependencies: ["format"]
|
|
36710
36697
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
36711
|
-
})),
|
|
36698
|
+
})), ZQ = /* @__PURE__ */ W(((e, t) => {
|
|
36712
36699
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36713
|
-
var n =
|
|
36700
|
+
var n = YQ(), r = XQ(), i = SZ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
36714
36701
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
36715
36702
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
36716
36703
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -36726,9 +36713,9 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36726
36713
|
for (let r of t) e.addFormat(r, n[r]);
|
|
36727
36714
|
}
|
|
36728
36715
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
36729
|
-
})),
|
|
36716
|
+
})), QQ = /* @__PURE__ */ Ce(JQ(), 1), $Q = /* @__PURE__ */ Ce(ZQ(), 1), e$ = {
|
|
36730
36717
|
required: () => "This field is required",
|
|
36731
|
-
type: (e) => `Should be "${
|
|
36718
|
+
type: (e) => `Should be "${n$(e)}".`,
|
|
36732
36719
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
36733
36720
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
36734
36721
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -36740,63 +36727,63 @@ var SZ = /* @__PURE__ */ W(((e) => {
|
|
|
36740
36727
|
maxItems: (e) => `Should NOT have more than ${e.params.limit} items`,
|
|
36741
36728
|
uniqueItems: () => "Should NOT have duplicate items",
|
|
36742
36729
|
const: (e) => `Should be equal to constant "${e.params.allowedValue}"`,
|
|
36743
|
-
pattern: (e, t) => `${
|
|
36730
|
+
pattern: (e, t) => `${gX(t)} value does not respect the pattern: ${e.params.pattern}`,
|
|
36744
36731
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
36745
36732
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
36746
36733
|
};
|
|
36747
|
-
function
|
|
36748
|
-
let n =
|
|
36734
|
+
function t$(e, t) {
|
|
36735
|
+
let n = e$[e.keyword];
|
|
36749
36736
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
36750
36737
|
}
|
|
36751
|
-
function
|
|
36738
|
+
function n$(e) {
|
|
36752
36739
|
let t = e.params.type;
|
|
36753
36740
|
return String(Array.isArray(t) ? t[0] : t);
|
|
36754
36741
|
}
|
|
36755
36742
|
//#endregion
|
|
36756
36743
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
36757
|
-
function
|
|
36744
|
+
function r$(e, t, n) {
|
|
36758
36745
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
36759
36746
|
for (let e of r) {
|
|
36760
36747
|
if (!i) return {
|
|
36761
36748
|
node: void 0,
|
|
36762
36749
|
value: void 0
|
|
36763
36750
|
};
|
|
36764
|
-
i =
|
|
36751
|
+
i = i$(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);
|
|
36765
36752
|
}
|
|
36766
36753
|
return i ? {
|
|
36767
|
-
node:
|
|
36754
|
+
node: a$(i$(i, a, n, r), r),
|
|
36768
36755
|
value: a
|
|
36769
36756
|
} : {
|
|
36770
36757
|
node: void 0,
|
|
36771
36758
|
value: a
|
|
36772
36759
|
};
|
|
36773
36760
|
}
|
|
36774
|
-
function
|
|
36775
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
36761
|
+
function i$(e, t, n, r) {
|
|
36762
|
+
let i = new Map(e.properties), a = e.variants ? c$(e.variants, t) : void 0;
|
|
36776
36763
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
36777
36764
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
36778
36765
|
if (o.length > 0) {
|
|
36779
|
-
for (let e of o) if (
|
|
36766
|
+
for (let e of o) if (o$(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
36780
36767
|
}
|
|
36781
36768
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
36782
36769
|
...e,
|
|
36783
36770
|
properties: i
|
|
36784
36771
|
} : e;
|
|
36785
36772
|
}
|
|
36786
|
-
function
|
|
36773
|
+
function a$(e, t) {
|
|
36787
36774
|
return e.displayIf ? {
|
|
36788
36775
|
...e,
|
|
36789
|
-
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [
|
|
36776
|
+
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [$Y(e, t), n])) }
|
|
36790
36777
|
} : e;
|
|
36791
36778
|
}
|
|
36792
|
-
function
|
|
36779
|
+
function o$(e, t, n) {
|
|
36793
36780
|
for (let [r, i] of e) {
|
|
36794
|
-
let e =
|
|
36781
|
+
let e = s$(t, $Y(r, n).split("."));
|
|
36795
36782
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
36796
36783
|
}
|
|
36797
36784
|
return !0;
|
|
36798
36785
|
}
|
|
36799
|
-
function
|
|
36786
|
+
function s$(e, t) {
|
|
36800
36787
|
let n = e;
|
|
36801
36788
|
for (let e of t) {
|
|
36802
36789
|
if (typeof n != "object" || !n) return;
|
|
@@ -36804,25 +36791,25 @@ function l$(e, t) {
|
|
|
36804
36791
|
}
|
|
36805
36792
|
return n;
|
|
36806
36793
|
}
|
|
36807
|
-
function
|
|
36794
|
+
function c$(e, t) {
|
|
36808
36795
|
if (typeof t != "object" || !t) return;
|
|
36809
36796
|
let n = t;
|
|
36810
36797
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
36811
36798
|
}
|
|
36812
36799
|
//#endregion
|
|
36813
36800
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
36814
|
-
var
|
|
36801
|
+
var l$ = new QQ.default({
|
|
36815
36802
|
strict: !1,
|
|
36816
36803
|
allErrors: !0
|
|
36817
36804
|
});
|
|
36818
|
-
(0,
|
|
36805
|
+
(0, $Q.default)(l$), l$.removeKeyword("id"), l$.addKeyword({
|
|
36819
36806
|
keyword: "id",
|
|
36820
36807
|
validate: () => !0
|
|
36821
36808
|
});
|
|
36822
|
-
function
|
|
36809
|
+
function u$(e, t = {}) {
|
|
36823
36810
|
let n;
|
|
36824
36811
|
try {
|
|
36825
|
-
n =
|
|
36812
|
+
n = sZ(e);
|
|
36826
36813
|
} catch (e) {
|
|
36827
36814
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
36828
36815
|
return () => ({
|
|
@@ -36835,7 +36822,7 @@ function f$(e, t = {}) {
|
|
|
36835
36822
|
}
|
|
36836
36823
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
36837
36824
|
try {
|
|
36838
|
-
a =
|
|
36825
|
+
a = l$.compile(r);
|
|
36839
36826
|
} catch (e) {
|
|
36840
36827
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
36841
36828
|
return () => ({
|
|
@@ -36846,15 +36833,15 @@ function f$(e, t = {}) {
|
|
|
36846
36833
|
} }
|
|
36847
36834
|
});
|
|
36848
36835
|
}
|
|
36849
|
-
|
|
36836
|
+
l$.removeSchema(r);
|
|
36850
36837
|
let o = async (e, t, r) => {
|
|
36851
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
36838
|
+
let o = a(e) ? [] : a.errors ?? [], s = _$(n.root, e, "", i), c = [...o, ...s];
|
|
36852
36839
|
return c.length === 0 ? {
|
|
36853
36840
|
values: e,
|
|
36854
36841
|
errors: {}
|
|
36855
36842
|
} : {
|
|
36856
36843
|
values: {},
|
|
36857
|
-
errors:
|
|
36844
|
+
errors: m$(p$(c.filter((t) => !d$(t, n, e))), r.criteriaMode ?? "firstError")
|
|
36858
36845
|
};
|
|
36859
36846
|
};
|
|
36860
36847
|
if (!t.basePath) return o;
|
|
@@ -36870,12 +36857,12 @@ function f$(e, t = {}) {
|
|
|
36870
36857
|
};
|
|
36871
36858
|
};
|
|
36872
36859
|
}
|
|
36873
|
-
function
|
|
36874
|
-
let { node: r, value: i } =
|
|
36860
|
+
function d$(e, t, n) {
|
|
36861
|
+
let { node: r, value: i } = r$(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(cX) : []).join("."), n);
|
|
36875
36862
|
if (!r) return !1;
|
|
36876
36863
|
switch (e.keyword) {
|
|
36877
36864
|
case "const":
|
|
36878
|
-
case "enum": return
|
|
36865
|
+
case "enum": return f$(r.schema, i);
|
|
36879
36866
|
case "required": {
|
|
36880
36867
|
let t = e.params.missingProperty;
|
|
36881
36868
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -36883,46 +36870,46 @@ function p$(e, t, n) {
|
|
|
36883
36870
|
default: return !1;
|
|
36884
36871
|
}
|
|
36885
36872
|
}
|
|
36886
|
-
function
|
|
36873
|
+
function f$(e, t) {
|
|
36887
36874
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
36888
36875
|
}
|
|
36889
|
-
function
|
|
36876
|
+
function p$(e) {
|
|
36890
36877
|
return e.filter((t) => {
|
|
36891
36878
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
36892
|
-
let n =
|
|
36879
|
+
let n = h$(t), r = n === "" ? "" : `${n}.`;
|
|
36893
36880
|
return !e.some((e) => {
|
|
36894
36881
|
if (e === t) return !1;
|
|
36895
|
-
let i =
|
|
36882
|
+
let i = h$(e);
|
|
36896
36883
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
36897
36884
|
});
|
|
36898
36885
|
});
|
|
36899
36886
|
}
|
|
36900
|
-
function
|
|
36887
|
+
function m$(e, t) {
|
|
36901
36888
|
let n = /* @__PURE__ */ new Map();
|
|
36902
36889
|
for (let t of e) {
|
|
36903
|
-
let e =
|
|
36890
|
+
let e = h$(t), r = n.get(e) ?? [];
|
|
36904
36891
|
r.push(t), n.set(e, r);
|
|
36905
36892
|
}
|
|
36906
36893
|
let r = {};
|
|
36907
36894
|
for (let [e, i] of n) {
|
|
36908
36895
|
let n = {
|
|
36909
36896
|
type: i[0].keyword,
|
|
36910
|
-
message:
|
|
36897
|
+
message: t$(i[0], e)
|
|
36911
36898
|
};
|
|
36912
36899
|
if (t === "all" && i.length > 0) {
|
|
36913
36900
|
let t = {};
|
|
36914
|
-
for (let n of i) t[n.keyword] =
|
|
36901
|
+
for (let n of i) t[n.keyword] = t$(n, e);
|
|
36915
36902
|
n.types = t;
|
|
36916
36903
|
}
|
|
36917
|
-
|
|
36904
|
+
g$(r, e === "" ? "root" : e, n);
|
|
36918
36905
|
}
|
|
36919
36906
|
return r;
|
|
36920
36907
|
}
|
|
36921
|
-
function
|
|
36922
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
36908
|
+
function h$(e) {
|
|
36909
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(cX) : [];
|
|
36923
36910
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
36924
36911
|
}
|
|
36925
|
-
function
|
|
36912
|
+
function g$(e, t, n) {
|
|
36926
36913
|
let r = t.split("."), i = e;
|
|
36927
36914
|
for (let e = 0; e < r.length - 1; e++) {
|
|
36928
36915
|
let t = r[e];
|
|
@@ -36930,7 +36917,7 @@ function v$(e, t, n) {
|
|
|
36930
36917
|
}
|
|
36931
36918
|
i[r[r.length - 1]] = n;
|
|
36932
36919
|
}
|
|
36933
|
-
function
|
|
36920
|
+
function _$(e, t, n, r) {
|
|
36934
36921
|
if (!e) return [];
|
|
36935
36922
|
let i = [];
|
|
36936
36923
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -36947,18 +36934,18 @@ function y$(e, t, n, r) {
|
|
|
36947
36934
|
}
|
|
36948
36935
|
}
|
|
36949
36936
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
36950
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
36937
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(..._$(o, t[a], `${n}/${sX(a)}`, r));
|
|
36951
36938
|
if (e.variants && e.variants.length > 0 && a) {
|
|
36952
|
-
let a = t, o =
|
|
36953
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
36939
|
+
let a = t, o = UX(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
36940
|
+
if (s) for (let [e, t] of s.properties) i.push(..._$(t, a[e], `${n}/${sX(e)}`, r));
|
|
36954
36941
|
}
|
|
36955
36942
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
36956
|
-
i.push(...
|
|
36943
|
+
i.push(..._$(e.items, t, `${n}/${a}`, r));
|
|
36957
36944
|
}), i;
|
|
36958
36945
|
}
|
|
36959
36946
|
//#endregion
|
|
36960
36947
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
36961
|
-
var
|
|
36948
|
+
var v$ = {
|
|
36962
36949
|
navigation: null,
|
|
36963
36950
|
contextSidebar: null,
|
|
36964
36951
|
breadcrumbs: [],
|
|
@@ -36966,9 +36953,9 @@ var b$ = {
|
|
|
36966
36953
|
viewMode: "global",
|
|
36967
36954
|
contextExpanded: !0,
|
|
36968
36955
|
contentVariant: "default"
|
|
36969
|
-
},
|
|
36970
|
-
function
|
|
36971
|
-
let [t, n] = V(
|
|
36956
|
+
}, y$ = M(null);
|
|
36957
|
+
function b$({ children: e }) {
|
|
36958
|
+
let [t, n] = V(v$), r = F((e, t) => {
|
|
36972
36959
|
n((n) => ({
|
|
36973
36960
|
...n,
|
|
36974
36961
|
[e]: t
|
|
@@ -36980,7 +36967,7 @@ function S$({ children: e }) {
|
|
|
36980
36967
|
}));
|
|
36981
36968
|
}, []), a = F((e) => {
|
|
36982
36969
|
n((t) => {
|
|
36983
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
36970
|
+
let n = Object.fromEntries(e.map((e) => [e, v$[e]]));
|
|
36984
36971
|
return {
|
|
36985
36972
|
...t,
|
|
36986
36973
|
...n
|
|
@@ -36997,20 +36984,20 @@ function S$({ children: e }) {
|
|
|
36997
36984
|
i,
|
|
36998
36985
|
a
|
|
36999
36986
|
]);
|
|
37000
|
-
return /* @__PURE__ */ H(
|
|
36987
|
+
return /* @__PURE__ */ H(y$.Provider, {
|
|
37001
36988
|
value: o,
|
|
37002
36989
|
children: e
|
|
37003
36990
|
});
|
|
37004
36991
|
}
|
|
37005
|
-
function
|
|
37006
|
-
let e = I(
|
|
36992
|
+
function x$() {
|
|
36993
|
+
let e = I(y$);
|
|
37007
36994
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
37008
36995
|
return e;
|
|
37009
36996
|
}
|
|
37010
36997
|
//#endregion
|
|
37011
36998
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
37012
|
-
function
|
|
37013
|
-
let { setSlots: n, resetSlots: r } =
|
|
36999
|
+
function S$(e, t = []) {
|
|
37000
|
+
let { setSlots: n, resetSlots: r } = x$();
|
|
37014
37001
|
R(() => {
|
|
37015
37002
|
n(e);
|
|
37016
37003
|
let t = Object.keys(e);
|
|
@@ -37025,7 +37012,7 @@ function w$(e, t = []) {
|
|
|
37025
37012
|
}
|
|
37026
37013
|
//#endregion
|
|
37027
37014
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
37028
|
-
var
|
|
37015
|
+
var C$ = [
|
|
37029
37016
|
{
|
|
37030
37017
|
value: "light",
|
|
37031
37018
|
label: "Light"
|
|
@@ -37039,7 +37026,7 @@ var T$ = [
|
|
|
37039
37026
|
label: "System"
|
|
37040
37027
|
}
|
|
37041
37028
|
];
|
|
37042
|
-
function
|
|
37029
|
+
function w$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSignOut: a }) {
|
|
37043
37030
|
let o = r ?? e.slice(0, 2).toUpperCase(), { mode: s, setMode: c } = D();
|
|
37044
37031
|
return /* @__PURE__ */ U(WL, { children: [/* @__PURE__ */ H(KL, {
|
|
37045
37032
|
asChild: !0,
|
|
@@ -37068,7 +37055,7 @@ function E$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
37068
37055
|
/* @__PURE__ */ H(ZL, {
|
|
37069
37056
|
value: s,
|
|
37070
37057
|
onValueChange: (e) => c(e),
|
|
37071
|
-
children:
|
|
37058
|
+
children: C$.map((e) => /* @__PURE__ */ H(QL, {
|
|
37072
37059
|
value: e.value,
|
|
37073
37060
|
children: e.label
|
|
37074
37061
|
}, e.value))
|
|
@@ -37081,6 +37068,6 @@ function E$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
37081
37068
|
]
|
|
37082
37069
|
})] });
|
|
37083
37070
|
}
|
|
37084
|
-
|
|
37071
|
+
w$.displayName = "TopNavUser";
|
|
37085
37072
|
//#endregion
|
|
37086
|
-
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,
|
|
37073
|
+
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, v$ as DEFAULT_SLOTS, uq as DataTable, dq as DataTableColumnHeader, fq as DataTablePagination, iq as DataTableViewOptions, xJ as DatePicker, SJ as DateRangePicker, TJ as DateTimePicker, OJ 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, kJ 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, PJ as FileUpload, _B as FileUploadInput, NJ 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, vZ as JsonSchemaForm, IB as Kbd, LB as KbdGroup, fR as Label, b$ as LayoutSlotsProvider, RB as Pagination, zB as PaginationContent, WB as PaginationEllipsis, BB as PaginationItem, VB as PaginationLink, UB as PaginationNext, HB as PaginationPrevious, QX 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, w$ as TopNavUser, Jy as alertVariants, ab as badgeVariants, AG as buildLinearBreadcrumbs, _b as buttonGroupVariants, mb as buttonVariants, q as cn, yZ as composeResolvers, fX as extractDefaults, u$ as jsonSchemaResolver, ZW as tabsListVariants, CW as toast, tG as toggleVariants, EM as useComboboxAnchor, S$ as useLayoutConfig, x$ as useLayoutSlots, tn as usePortalContainer, RU as useSidebar, fG as useSidebarMode, D as useTheme };
|