@gravitee/graphene-core 2.41.0 → 2.42.0-renovate-all-devdependencies-minor-patch.51d5fad
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/__stories__/fixtures/index.d.ts +1 -1
- package/dist/__stories__/fixtures/index.d.ts.map +1 -1
- package/dist/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts +3 -0
- package/dist/__stories__/fixtures/json-schema-form/disableIf.fixture.d.ts.map +1 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts +1 -0
- package/dist/__stories__/fixtures/json-schema-form/index.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/SchemaField.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/conditional/DisabledGate.d.ts +15 -0
- package/dist/composed/JsonSchemaForm/conditional/DisabledGate.d.ts.map +1 -0
- package/dist/composed/JsonSchemaForm/schema/buildIndex.d.ts.map +1 -1
- package/dist/composed/JsonSchemaForm/schema/types.d.ts +4 -0
- package/dist/composed/JsonSchemaForm/schema/types.d.ts.map +1 -1
- package/dist/icons/index.js +1 -1
- package/dist/index.js +768 -734
- package/dist/testing/index.js +1 -1
- package/package.json +6 -5
- /package/dist/{ThemeProvider-C_Ea8dI-.js → ThemeProvider-D0l3ICGl.js} +0 -0
- /package/dist/{icons-D_4R9XrW.js → icons-DdCWtjqd.js} +0 -0
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-DdCWtjqd.js";
|
|
2
|
+
import { n as D, t as O } from "./ThemeProvider-D0l3ICGl.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(-20)));
|
|
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 ? -16 : 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 = -16 + 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 ? -16 : 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:
|
|
|
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:
|
|
|
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({ preventCycl
|
|
|
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({ preventCycl
|
|
|
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,35 +30481,20 @@ 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 =
|
|
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 = {
|
|
30484
|
+
var GJ = {
|
|
30500
30485
|
BLUR: "blur",
|
|
30501
30486
|
FOCUS_OUT: "focusout",
|
|
30502
30487
|
CHANGE: "change",
|
|
30503
30488
|
SUBMIT: "submit",
|
|
30504
30489
|
TRIGGER: "trigger",
|
|
30505
30490
|
VALID: "valid"
|
|
30506
|
-
},
|
|
30491
|
+
}, KJ = {
|
|
30507
30492
|
onBlur: "onBlur",
|
|
30508
30493
|
onChange: "onChange",
|
|
30509
30494
|
onSubmit: "onSubmit",
|
|
30510
30495
|
onTouched: "onTouched",
|
|
30511
30496
|
all: "all"
|
|
30512
|
-
},
|
|
30497
|
+
}, qJ = {
|
|
30513
30498
|
max: "max",
|
|
30514
30499
|
min: "min",
|
|
30515
30500
|
maxLength: "maxLength",
|
|
@@ -30517,16 +30502,37 @@ var GJ = (e) => /^\w*$/.test(e), KJ = (e) => e === void 0, qJ = (e) => Array.isA
|
|
|
30517
30502
|
pattern: "pattern",
|
|
30518
30503
|
required: "required",
|
|
30519
30504
|
validate: "validate"
|
|
30520
|
-
},
|
|
30505
|
+
}, JJ = "root", YJ = [
|
|
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);
|
|
30521
30527
|
rY.displayName = "HookFormControlContext";
|
|
30522
30528
|
var iY = () => A.useContext(rY), aY = (e, t, n, r = !0) => {
|
|
30523
30529
|
let i = {};
|
|
30524
30530
|
for (let a in e) Object.defineProperty(i, a, { get: () => {
|
|
30525
30531
|
let i = a;
|
|
30526
|
-
return t._proxyFormState[i] !==
|
|
30532
|
+
return t._proxyFormState[i] !== KJ.all && (t._proxyFormState[i] = !r || KJ.all), n && (n[i] = !0), e[i];
|
|
30527
30533
|
} });
|
|
30528
30534
|
return i;
|
|
30529
|
-
}, oY =
|
|
30535
|
+
}, oY = UJ ? A.useLayoutEffect : A.useEffect;
|
|
30530
30536
|
function sY(e) {
|
|
30531
30537
|
let t = iY(), { control: n = t, disabled: r, name: i, exact: a } = e || {}, [o, s] = A.useState(() => ({
|
|
30532
30538
|
...n._formState,
|
|
@@ -30560,13 +30566,14 @@ function sY(e) {
|
|
|
30560
30566
|
c.current.isValid && n._setValid(!0);
|
|
30561
30567
|
}, [n]), A.useMemo(() => aY(o, n, c.current, !1), [o, n]);
|
|
30562
30568
|
}
|
|
30563
|
-
var cY = (e) => typeof e == "string", lY = (e, t, n, r, i) => cY(e) ? (r && t.watch.add(e),
|
|
30564
|
-
function
|
|
30569
|
+
var cY = (e) => typeof e == "string", lY = (e, t, n, r, i) => cY(e) ? (r && t.watch.add(e), $J(n, e, i)) : Array.isArray(e) ? e.map((e) => (r && t.watch.add(e), $J(n, e))) : (r && (t.watchAll = !0), n), uY = (e) => LJ(e) || !RJ(e), dY = (e, t) => t.length === 0 && !Array.isArray(e) && !HJ(e);
|
|
30570
|
+
function fY(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
30565
30571
|
if (e === t) return !0;
|
|
30566
30572
|
if (uY(e) || uY(t)) return Object.is(e, t);
|
|
30567
30573
|
if (IJ(e) && IJ(t)) return Object.is(e.getTime(), t.getTime());
|
|
30568
30574
|
let r = Object.keys(e), i = Object.keys(t);
|
|
30569
30575
|
if (r.length !== i.length) return !1;
|
|
30576
|
+
if (dY(e, r) || dY(t, i)) return Object.is(e, t);
|
|
30570
30577
|
if (n.has(e) || n.has(t)) return !0;
|
|
30571
30578
|
n.add(e), n.add(t);
|
|
30572
30579
|
for (let i of r) {
|
|
@@ -30574,12 +30581,12 @@ function dY(e, t, n = /* @__PURE__ */ new WeakSet()) {
|
|
|
30574
30581
|
if (!(i in t)) return !1;
|
|
30575
30582
|
if (i !== "ref") {
|
|
30576
30583
|
let e = t[i];
|
|
30577
|
-
if (IJ(r) && IJ(e) || (zJ(r) || Array.isArray(r)) && (zJ(e) || Array.isArray(e)) ? !
|
|
30584
|
+
if (IJ(r) && IJ(e) || (zJ(r) || Array.isArray(r)) && (zJ(e) || Array.isArray(e)) ? !fY(r, e, n) : !Object.is(r, e)) return !1;
|
|
30578
30585
|
}
|
|
30579
30586
|
}
|
|
30580
30587
|
return !0;
|
|
30581
30588
|
}
|
|
30582
|
-
function
|
|
30589
|
+
function pY(e) {
|
|
30583
30590
|
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);
|
|
30584
30591
|
l.current = s;
|
|
30585
30592
|
let [p, m] = A.useState(() => {
|
|
@@ -30597,7 +30604,7 @@ function fY(e) {
|
|
|
30597
30604
|
let t = lY(r, n._names, e || n._formValues, !1, c.current);
|
|
30598
30605
|
if (l.current) {
|
|
30599
30606
|
let e = l.current(t);
|
|
30600
|
-
|
|
30607
|
+
fY(e, u.current) || (m(e), u.current = e);
|
|
30601
30608
|
} else m(t);
|
|
30602
30609
|
}
|
|
30603
30610
|
}, [
|
|
@@ -30606,7 +30613,7 @@ function fY(e) {
|
|
|
30606
30613
|
a,
|
|
30607
30614
|
r
|
|
30608
30615
|
]);
|
|
30609
|
-
oY(() => ((d.current !== n || !
|
|
30616
|
+
oY(() => ((d.current !== n || !fY(f.current, r)) && (d.current = n, f.current = r, g()), n._subscribe({
|
|
30610
30617
|
name: r,
|
|
30611
30618
|
formState: { values: !0 },
|
|
30612
30619
|
exact: o,
|
|
@@ -30621,7 +30628,7 @@ function fY(e) {
|
|
|
30621
30628
|
]), A.useEffect(() => n._removeUnmounted());
|
|
30622
30629
|
let _ = d.current !== n, v = f.current, y = A.useMemo(() => {
|
|
30623
30630
|
if (a) return null;
|
|
30624
|
-
let e = !_ && !
|
|
30631
|
+
let e = !_ && !fY(v, r);
|
|
30625
30632
|
return _ || e ? h() : null;
|
|
30626
30633
|
}, [
|
|
30627
30634
|
a,
|
|
@@ -30632,11 +30639,11 @@ function fY(e) {
|
|
|
30632
30639
|
]);
|
|
30633
30640
|
return y === null ? p : y;
|
|
30634
30641
|
}
|
|
30635
|
-
function
|
|
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 =
|
|
30642
|
+
function mY(e) {
|
|
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 = pY({
|
|
30637
30644
|
control: i,
|
|
30638
30645
|
name: n,
|
|
30639
|
-
defaultValue: A.useMemo(() =>
|
|
30646
|
+
defaultValue: A.useMemo(() => $J(i._formValues, n, $J(i._defaultValues, n, o)), [
|
|
30640
30647
|
i,
|
|
30641
30648
|
n,
|
|
30642
30649
|
o
|
|
@@ -30649,54 +30656,60 @@ function pY(e) {
|
|
|
30649
30656
|
}), d = A.useRef(e), f = A.useRef(i.register(n, {
|
|
30650
30657
|
...e.rules,
|
|
30651
30658
|
value: l,
|
|
30652
|
-
...
|
|
30659
|
+
...eY(e.disabled) ? { disabled: e.disabled } : {}
|
|
30653
30660
|
}));
|
|
30654
30661
|
d.current = e;
|
|
30655
30662
|
let p = A.useMemo(() => Object.defineProperties({}, {
|
|
30656
30663
|
invalid: {
|
|
30657
30664
|
enumerable: !0,
|
|
30658
|
-
get: () =>
|
|
30665
|
+
get: () => !!$J(u.errors, n)
|
|
30659
30666
|
},
|
|
30660
30667
|
isDirty: {
|
|
30661
30668
|
enumerable: !0,
|
|
30662
|
-
get: () =>
|
|
30669
|
+
get: () => !!$J(u.dirtyFields, n)
|
|
30663
30670
|
},
|
|
30664
30671
|
isTouched: {
|
|
30665
30672
|
enumerable: !0,
|
|
30666
|
-
get: () =>
|
|
30673
|
+
get: () => !!$J(u.touchedFields, n)
|
|
30667
30674
|
},
|
|
30668
30675
|
isValidating: {
|
|
30669
30676
|
enumerable: !0,
|
|
30670
|
-
get: () =>
|
|
30677
|
+
get: () => !!$J(u.validatingFields, n)
|
|
30671
30678
|
},
|
|
30672
30679
|
error: {
|
|
30673
30680
|
enumerable: !0,
|
|
30674
|
-
get: () =>
|
|
30681
|
+
get: () => $J(u.errors, n)
|
|
30675
30682
|
}
|
|
30676
|
-
}), [u, n]), m = A.useCallback((e) =>
|
|
30677
|
-
|
|
30678
|
-
|
|
30679
|
-
|
|
30680
|
-
|
|
30681
|
-
|
|
30682
|
-
|
|
30683
|
+
}), [u, n]), m = A.useCallback((e) => {
|
|
30684
|
+
let t = BJ(e);
|
|
30685
|
+
$J(i._fields, n) || (f.current = i.register(n, {
|
|
30686
|
+
...d.current.rules,
|
|
30687
|
+
value: t
|
|
30688
|
+
})), f.current.onChange({
|
|
30689
|
+
target: {
|
|
30690
|
+
value: BJ(e),
|
|
30691
|
+
name: n
|
|
30692
|
+
},
|
|
30693
|
+
type: GJ.CHANGE
|
|
30694
|
+
});
|
|
30695
|
+
}, [n, i]), h = A.useCallback(() => f.current.onBlur({
|
|
30683
30696
|
target: {
|
|
30684
|
-
value:
|
|
30697
|
+
value: $J(i._formValues, n),
|
|
30685
30698
|
name: n
|
|
30686
30699
|
},
|
|
30687
|
-
type:
|
|
30700
|
+
type: GJ.BLUR
|
|
30688
30701
|
}), [n, i._formValues]), g = A.useCallback((e) => {
|
|
30689
|
-
let t =
|
|
30702
|
+
let t = $J(i._fields, n);
|
|
30690
30703
|
t && t._f && e && (t._f.ref = {
|
|
30691
|
-
focus: () =>
|
|
30692
|
-
select: () =>
|
|
30693
|
-
setCustomValidity: (t) =>
|
|
30694
|
-
reportValidity: () =>
|
|
30704
|
+
focus: () => tY(e.focus) && e.focus(),
|
|
30705
|
+
select: () => tY(e.select) && e.select(),
|
|
30706
|
+
setCustomValidity: (t) => tY(e.setCustomValidity) && e.setCustomValidity(t),
|
|
30707
|
+
reportValidity: () => tY(e.reportValidity) && e.reportValidity()
|
|
30695
30708
|
});
|
|
30696
30709
|
}, [i._fields, n]), _ = A.useMemo(() => ({
|
|
30697
30710
|
name: n,
|
|
30698
30711
|
value: l,
|
|
30699
|
-
...
|
|
30712
|
+
...eY(r) || u.disabled ? { disabled: u.disabled || r } : {},
|
|
30700
30713
|
onChange: m,
|
|
30701
30714
|
onBlur: h,
|
|
30702
30715
|
ref: g
|
|
@@ -30713,15 +30726,15 @@ function pY(e) {
|
|
|
30713
30726
|
let e = i._options.shouldUnregister || a;
|
|
30714
30727
|
i.register(n, {
|
|
30715
30728
|
...d.current.rules,
|
|
30716
|
-
...
|
|
30729
|
+
...eY(d.current.disabled) ? { disabled: d.current.disabled } : {}
|
|
30717
30730
|
});
|
|
30718
30731
|
let t = (e, t) => {
|
|
30719
|
-
let n =
|
|
30732
|
+
let n = $J(i._fields, e);
|
|
30720
30733
|
n && n._f && (n._f.mount = t);
|
|
30721
30734
|
};
|
|
30722
30735
|
if (t(n, !0), e) {
|
|
30723
|
-
let e = WJ(
|
|
30724
|
-
|
|
30736
|
+
let e = WJ($J(a ? i._defaultValues : i._options.values || i._defaultValues, n, $J(i._options.defaultValues, n, d.current.defaultValue)));
|
|
30737
|
+
nY(i._defaultValues, n, e), ZJ($J(i._formValues, n)) && nY(i._formValues, n, e);
|
|
30725
30738
|
}
|
|
30726
30739
|
return !c && i.register(n), () => {
|
|
30727
30740
|
(c ? e && !i._state.action : e) ? i.unregister(n) : t(n, !1);
|
|
@@ -30750,20 +30763,20 @@ function pY(e) {
|
|
|
30750
30763
|
p
|
|
30751
30764
|
]);
|
|
30752
30765
|
}
|
|
30753
|
-
var
|
|
30754
|
-
|
|
30755
|
-
var
|
|
30766
|
+
var hY = A.createContext(null);
|
|
30767
|
+
hY.displayName = "HookFormContext";
|
|
30768
|
+
var gY = (e, t, n, r, i) => t ? {
|
|
30756
30769
|
...n[e],
|
|
30757
30770
|
types: {
|
|
30758
30771
|
...n[e] && n[e].types ? n[e].types : {},
|
|
30759
30772
|
[r]: i || !0
|
|
30760
30773
|
}
|
|
30761
|
-
} : {},
|
|
30774
|
+
} : {}, _Y = (e) => Array.isArray(e) ? e.filter(Boolean) : [], vY = (e) => Array.isArray(e) ? e : [e], yY = (e) => zJ(e) && !Object.keys(e).length, bY = (e) => e.type === "file", xY = (e) => {
|
|
30762
30775
|
if (!UJ) return !1;
|
|
30763
30776
|
let t = e ? e.ownerDocument : 0;
|
|
30764
30777
|
return e instanceof (t && t.defaultView ? t.defaultView.HTMLElement : HTMLElement);
|
|
30765
|
-
},
|
|
30766
|
-
function
|
|
30778
|
+
}, SY = (e) => e.type === "radio";
|
|
30779
|
+
function CY(e, t) {
|
|
30767
30780
|
let n = t.slice(0, -1).length, r = 0;
|
|
30768
30781
|
for (; r < n;) {
|
|
30769
30782
|
if (LJ(e)) {
|
|
@@ -30774,22 +30787,22 @@ function xY(e, t) {
|
|
|
30774
30787
|
}
|
|
30775
30788
|
return e;
|
|
30776
30789
|
}
|
|
30777
|
-
function
|
|
30778
|
-
for (let t in e) if (e.hasOwnProperty(t) && !
|
|
30790
|
+
function wY(e) {
|
|
30791
|
+
for (let t in e) if (e.hasOwnProperty(t) && !ZJ(e[t])) return !1;
|
|
30779
30792
|
return !0;
|
|
30780
30793
|
}
|
|
30781
|
-
function
|
|
30794
|
+
function TY(e, t) {
|
|
30782
30795
|
if (cY(t) && Object.prototype.hasOwnProperty.call(e, t)) return delete e[t], e;
|
|
30783
|
-
let n = Array.isArray(t) ? t :
|
|
30784
|
-
return r && delete r[a], i !== 0 && (zJ(r) &&
|
|
30796
|
+
let n = Array.isArray(t) ? t : XJ(t) ? [t] : QJ(t), r = n.length === 1 ? e : CY(e, n), i = n.length - 1, a = n[i];
|
|
30797
|
+
return r && delete r[a], i !== 0 && (zJ(r) && yY(r) || Array.isArray(r) && wY(r)) && TY(e, n.slice(0, -1)), e;
|
|
30785
30798
|
}
|
|
30786
|
-
var
|
|
30799
|
+
var EY = {
|
|
30787
30800
|
value: !1,
|
|
30788
30801
|
isValid: !1
|
|
30789
|
-
},
|
|
30802
|
+
}, DY = {
|
|
30790
30803
|
value: !0,
|
|
30791
30804
|
isValid: !0
|
|
30792
|
-
},
|
|
30805
|
+
}, OY = (e) => {
|
|
30793
30806
|
if (Array.isArray(e)) {
|
|
30794
30807
|
if (e.length > 1) {
|
|
30795
30808
|
let t = e.filter((e) => e && e.checked && !e.disabled).map((e) => e.value);
|
|
@@ -30798,55 +30811,55 @@ var wY = {
|
|
|
30798
30811
|
isValid: !!t.length
|
|
30799
30812
|
};
|
|
30800
30813
|
}
|
|
30801
|
-
return e[0].checked && !e[0].disabled ? e[0].attributes && !
|
|
30814
|
+
return e[0].checked && !e[0].disabled ? e[0].attributes && !ZJ(e[0].attributes.value) ? ZJ(e[0].value) || e[0].value === "" ? DY : {
|
|
30802
30815
|
value: e[0].value,
|
|
30803
30816
|
isValid: !0
|
|
30804
|
-
} :
|
|
30817
|
+
} : DY : EY;
|
|
30805
30818
|
}
|
|
30806
|
-
return
|
|
30807
|
-
},
|
|
30819
|
+
return EY;
|
|
30820
|
+
}, kY = {
|
|
30808
30821
|
isValid: !1,
|
|
30809
30822
|
value: null
|
|
30810
|
-
},
|
|
30823
|
+
}, AY = (e) => Array.isArray(e) ? e.reduce((e, t) => t && t.checked && !t.disabled ? {
|
|
30811
30824
|
isValid: !0,
|
|
30812
30825
|
value: t.value
|
|
30813
|
-
} : e,
|
|
30814
|
-
isOnSubmit: !e || e ===
|
|
30815
|
-
isOnBlur: e ===
|
|
30816
|
-
isOnChange: e ===
|
|
30817
|
-
isOnAll: e ===
|
|
30818
|
-
isOnTouch: e ===
|
|
30819
|
-
}),
|
|
30826
|
+
} : e, kY) : kY, jY = (e) => e instanceof RegExp, MY = (e) => ({
|
|
30827
|
+
isOnSubmit: !e || e === KJ.onSubmit,
|
|
30828
|
+
isOnBlur: e === KJ.onBlur,
|
|
30829
|
+
isOnChange: e === KJ.onChange,
|
|
30830
|
+
isOnAll: e === KJ.all,
|
|
30831
|
+
isOnTouch: e === KJ.onTouched
|
|
30832
|
+
}), NY = (e, t, n) => !n && (t.watchAll || t.watch.has(e) || [...t.watch].some((t) => e.startsWith(`${t}.`))), PY = (e, t, n, r) => {
|
|
30820
30833
|
for (let i of n || Object.keys(e)) {
|
|
30821
|
-
let n =
|
|
30834
|
+
let n = $J(e, i);
|
|
30822
30835
|
if (n) {
|
|
30823
30836
|
let { _f: e, ...a } = n;
|
|
30824
30837
|
if (e) {
|
|
30825
30838
|
if (e.refs && e.refs[0] && t(e.refs[0], i) && !r || e.ref && t(e.ref, e.name) && !r) return !0;
|
|
30826
|
-
if (
|
|
30827
|
-
} else if (zJ(a) &&
|
|
30839
|
+
if (PY(a, t)) break;
|
|
30840
|
+
} else if (zJ(a) && PY(a, t)) break;
|
|
30828
30841
|
}
|
|
30829
30842
|
}
|
|
30830
|
-
},
|
|
30831
|
-
let r =
|
|
30832
|
-
return
|
|
30843
|
+
}, FY = (e, t, n) => {
|
|
30844
|
+
let r = $J(e, n), i = Array.isArray(r) ? r : [];
|
|
30845
|
+
return nY(i, JJ, t[n]), nY(e, n, i), e;
|
|
30833
30846
|
};
|
|
30834
|
-
function
|
|
30835
|
-
if (cY(e) || Array.isArray(e) && e.every(cY) ||
|
|
30847
|
+
function IY(e, t, n = "validate") {
|
|
30848
|
+
if (cY(e) || Array.isArray(e) && e.every(cY) || eY(e) && !e) return {
|
|
30836
30849
|
type: n,
|
|
30837
30850
|
message: cY(e) ? e : "",
|
|
30838
30851
|
ref: t
|
|
30839
30852
|
};
|
|
30840
30853
|
}
|
|
30841
|
-
var
|
|
30854
|
+
var LY = (e) => zJ(e) && !jY(e) ? e : {
|
|
30842
30855
|
value: e,
|
|
30843
30856
|
message: ""
|
|
30844
|
-
},
|
|
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 =
|
|
30857
|
+
}, RY = async (e, t, n, r, i, a) => {
|
|
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 = $J(n, h);
|
|
30846
30859
|
if (!_ || t.has(h)) return {};
|
|
30847
30860
|
let y = s ? s[0] : o, b = (e) => {
|
|
30848
|
-
i && y.reportValidity && (y.setCustomValidity(
|
|
30849
|
-
}, x = {}, S =
|
|
30861
|
+
i && y.reportValidity && (y.setCustomValidity(eY(e) ? "" : e || ""), y.reportValidity());
|
|
30862
|
+
}, x = {}, S = SY(o), C = FJ(o), w = S || C, T = (g || bY(o)) && ZJ(o.value) && ZJ(v) || xY(o) && o.value === "" || v === "" || Array.isArray(v) && !v.length, E = gY.bind(null, h, r, x), D = (e, t, n, r = qJ.maxLength, i = qJ.minLength) => {
|
|
30850
30863
|
let a = e ? t : n;
|
|
30851
30864
|
x[h] = {
|
|
30852
30865
|
type: e ? r : i,
|
|
@@ -30855,20 +30868,20 @@ var FY = (e) => zJ(e) && !kY(e) ? e : {
|
|
|
30855
30868
|
...E(e ? r : i, a)
|
|
30856
30869
|
};
|
|
30857
30870
|
};
|
|
30858
|
-
if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || LJ(v)) ||
|
|
30871
|
+
if (a ? !Array.isArray(v) || !v.length : c && (!w && (T || LJ(v)) || eY(v) && !v || C && !OY(s).isValid || S && !AY(s).isValid)) {
|
|
30859
30872
|
let { value: e, message: t } = cY(c) ? {
|
|
30860
30873
|
value: !!c,
|
|
30861
30874
|
message: c
|
|
30862
|
-
} :
|
|
30875
|
+
} : LY(c);
|
|
30863
30876
|
if (e && (x[h] = {
|
|
30864
|
-
type:
|
|
30877
|
+
type: qJ.required,
|
|
30865
30878
|
message: t,
|
|
30866
30879
|
ref: y,
|
|
30867
|
-
...E(
|
|
30880
|
+
...E(qJ.required, t)
|
|
30868
30881
|
}, !r)) return b(t), x;
|
|
30869
30882
|
}
|
|
30870
30883
|
if (!T && (!LJ(d) || !LJ(f))) {
|
|
30871
|
-
let e, t, n =
|
|
30884
|
+
let e, t, n = LY(f), i = LY(d);
|
|
30872
30885
|
if (!LJ(v) && !isNaN(v)) {
|
|
30873
30886
|
let r = o.valueAsNumber || v && +v;
|
|
30874
30887
|
LJ(n.value) || (e = r > n.value), LJ(i.value) || (t = r < i.value);
|
|
@@ -30876,39 +30889,39 @@ var FY = (e) => zJ(e) && !kY(e) ? e : {
|
|
|
30876
30889
|
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";
|
|
30877
30890
|
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));
|
|
30878
30891
|
}
|
|
30879
|
-
if ((e || t) && (D(!!e, n.message, i.message,
|
|
30892
|
+
if ((e || t) && (D(!!e, n.message, i.message, qJ.max, qJ.min), !r)) return b(x[h].message), x;
|
|
30880
30893
|
}
|
|
30881
30894
|
if ((l || u) && !T && (cY(v) || a && Array.isArray(v))) {
|
|
30882
|
-
let e =
|
|
30895
|
+
let e = LY(l), t = LY(u), n = !LJ(e.value) && v.length > +e.value, i = !LJ(t.value) && v.length < +t.value;
|
|
30883
30896
|
if ((n || i) && (D(n, e.message, t.message), !r)) return b(x[h].message), x;
|
|
30884
30897
|
}
|
|
30885
30898
|
if (p && !T && cY(v)) {
|
|
30886
|
-
let { value: e, message: t } =
|
|
30887
|
-
if (
|
|
30888
|
-
type:
|
|
30899
|
+
let { value: e, message: t } = LY(p);
|
|
30900
|
+
if (jY(e) && !v.match(e) && (x[h] = {
|
|
30901
|
+
type: qJ.pattern,
|
|
30889
30902
|
message: t,
|
|
30890
30903
|
ref: o,
|
|
30891
|
-
...E(
|
|
30904
|
+
...E(qJ.pattern, t)
|
|
30892
30905
|
}, !r)) return b(t), x;
|
|
30893
30906
|
}
|
|
30894
30907
|
if (m) {
|
|
30895
|
-
if (
|
|
30896
|
-
let e =
|
|
30908
|
+
if (tY(m)) {
|
|
30909
|
+
let e = IY(await m(v, n), y);
|
|
30897
30910
|
if (e && (x[h] = {
|
|
30898
30911
|
...e,
|
|
30899
|
-
...E(
|
|
30912
|
+
...E(qJ.validate, e.message)
|
|
30900
30913
|
}, !r)) return b(e.message), x;
|
|
30901
30914
|
} else if (zJ(m)) {
|
|
30902
30915
|
let e = {};
|
|
30903
30916
|
for (let t in m) {
|
|
30904
|
-
if (!
|
|
30905
|
-
let i =
|
|
30917
|
+
if (!yY(e) && !r) break;
|
|
30918
|
+
let i = IY(await m[t](v, n), y, t);
|
|
30906
30919
|
i && (e = {
|
|
30907
30920
|
...i,
|
|
30908
30921
|
...E(t, i.message)
|
|
30909
30922
|
}, b(i.message), r && (x[h] = e));
|
|
30910
30923
|
}
|
|
30911
|
-
if (!
|
|
30924
|
+
if (!yY(e) && (x[h] = {
|
|
30912
30925
|
ref: y,
|
|
30913
30926
|
...e
|
|
30914
30927
|
}, !r)) return x;
|
|
@@ -30916,33 +30929,33 @@ var FY = (e) => zJ(e) && !kY(e) ? e : {
|
|
|
30916
30929
|
}
|
|
30917
30930
|
return b(!0), x;
|
|
30918
30931
|
};
|
|
30919
|
-
|
|
30920
|
-
var
|
|
30932
|
+
KJ.onSubmit, KJ.onChange;
|
|
30933
|
+
var zY = () => {
|
|
30921
30934
|
if (typeof crypto < "u" && crypto.randomUUID) return crypto.randomUUID();
|
|
30922
30935
|
let e = typeof performance > "u" ? Date.now() : performance.now() * 1e3;
|
|
30923
30936
|
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g, (t) => {
|
|
30924
30937
|
let n = (Math.random() * 16 + e) % 16 | 0;
|
|
30925
30938
|
return (t == "x" ? n : n & 3 | 8).toString(16);
|
|
30926
30939
|
});
|
|
30927
|
-
},
|
|
30928
|
-
function
|
|
30940
|
+
}, BY = (e, t, n = {}) => n.shouldFocus || ZJ(n.shouldFocus) ? n.focusName || `${e}.${ZJ(n.focusIndex) ? t : n.focusIndex}.` : "", VY = (e, t) => [...e, ...vY(t)], HY = (e) => Array.isArray(e) ? e.map(() => void 0) : void 0;
|
|
30941
|
+
function UY(e, t, n) {
|
|
30929
30942
|
return [
|
|
30930
30943
|
...e.slice(0, t),
|
|
30931
|
-
...
|
|
30944
|
+
...vY(n),
|
|
30932
30945
|
...e.slice(t)
|
|
30933
30946
|
];
|
|
30934
30947
|
}
|
|
30935
|
-
var
|
|
30936
|
-
function
|
|
30948
|
+
var WY = (e, t, n) => Array.isArray(e) ? (ZJ(e[n]) && (e[n] = void 0), e.splice(n, 0, e.splice(t, 1)[0]), e) : [], GY = (e, t) => [...vY(t), ...vY(e)];
|
|
30949
|
+
function KY(e, t) {
|
|
30937
30950
|
let n = 0, r = [...e];
|
|
30938
30951
|
for (let e of t) r.splice(e - n, 1), n++;
|
|
30939
|
-
return
|
|
30952
|
+
return _Y(r).length ? r : [];
|
|
30940
30953
|
}
|
|
30941
|
-
var
|
|
30954
|
+
var qY = (e, t) => ZJ(t) ? [] : KY(e, vY(t).sort((e, t) => e - t)), JY = (e, t, n) => {
|
|
30942
30955
|
[e[t], e[n]] = [e[n], e[t]];
|
|
30943
|
-
},
|
|
30944
|
-
function
|
|
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(
|
|
30956
|
+
}, YY = (e, t, n) => (e[t] = n, e);
|
|
30957
|
+
function XY(e) {
|
|
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(zY)), u = A.useRef(!1);
|
|
30946
30959
|
n._names.array.add(r), A.useMemo(() => o && s.length >= 0 && n.register(r, o), [
|
|
30947
30960
|
n,
|
|
30948
30961
|
r,
|
|
@@ -30950,42 +30963,42 @@ function JY(e) {
|
|
|
30950
30963
|
o
|
|
30951
30964
|
]), oY(() => n._subjects.array.subscribe({ next: ({ values: e, name: t }) => {
|
|
30952
30965
|
if (t === r || !t) {
|
|
30953
|
-
let
|
|
30954
|
-
Array.isArray(
|
|
30966
|
+
let n = $J(e, r);
|
|
30967
|
+
Array.isArray(n) ? (c(n), l.current = n.map(zY)) : t || (c([]), l.current = []);
|
|
30955
30968
|
}
|
|
30956
30969
|
} }).unsubscribe, [n, r]);
|
|
30957
30970
|
let d = A.useCallback((e) => {
|
|
30958
30971
|
u.current = !0, n._setFieldArray(r, e);
|
|
30959
30972
|
}, [n, r]);
|
|
30960
30973
|
return A.useEffect(() => {
|
|
30961
|
-
n._state.action = !1,
|
|
30962
|
-
let e =
|
|
30963
|
-
if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !
|
|
30974
|
+
n._state.action = !1, NY(r, n._names) && n._subjects.state.next({ ...n._formState });
|
|
30975
|
+
let e = MY(n._options.mode);
|
|
30976
|
+
if (u.current && (!e.isOnSubmit || n._formState.isSubmitted) && !MY(n._options.reValidateMode).isOnSubmit && !e.isOnBlur) if (n._options.resolver) n._runSchema([r]).then((e) => {
|
|
30964
30977
|
n._updateIsValidating([r]);
|
|
30965
|
-
let t =
|
|
30966
|
-
(i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ?
|
|
30978
|
+
let t = $J(e.errors, r), i = $J(n._formState.errors, r);
|
|
30979
|
+
(i ? !t && i.type || t && (i.type !== t.type || i.message !== t.message) : t && t.type) && (t ? nY(n._formState.errors, r, t) : TY(n._formState.errors, r), n._subjects.state.next({ errors: n._formState.errors }));
|
|
30967
30980
|
});
|
|
30968
30981
|
else {
|
|
30969
|
-
let e =
|
|
30970
|
-
e && e._f && !(
|
|
30982
|
+
let e = $J(n._fields, r);
|
|
30983
|
+
e && e._f && !(MY(n._options.reValidateMode).isOnSubmit && MY(n._options.mode).isOnSubmit) && RY(e, n._names.disabled, n._formValues, n._options.criteriaMode === KJ.all, n._options.shouldUseNativeValidation, !0).then((e) => !yY(e) && n._subjects.state.next({ errors: FY(n._formState.errors, e, r) }));
|
|
30971
30984
|
}
|
|
30972
30985
|
n._subjects.state.next({
|
|
30973
30986
|
name: r,
|
|
30974
30987
|
values: WJ(n._formValues)
|
|
30975
|
-
}), n._names.focus &&
|
|
30988
|
+
}), n._names.focus && PY(n._fields, (e, t) => {
|
|
30976
30989
|
if (n._names.focus && t.startsWith(n._names.focus) && e.focus) return e.focus(), 1;
|
|
30977
30990
|
}), n._names.focus = "", n._setValid(), u.current = !1;
|
|
30978
30991
|
}, [
|
|
30979
30992
|
s,
|
|
30980
30993
|
r,
|
|
30981
30994
|
n
|
|
30982
|
-
]), A.useEffect(() => (
|
|
30995
|
+
]), A.useEffect(() => (!$J(n._formValues, r) && n._setFieldArray(r), () => {
|
|
30983
30996
|
let e = !(n._options.shouldUnregister || a);
|
|
30984
30997
|
u.current && e && n._subjects.state.next({
|
|
30985
30998
|
name: r,
|
|
30986
30999
|
values: WJ(n._formValues)
|
|
30987
31000
|
}), e ? ((e, t) => {
|
|
30988
|
-
let r =
|
|
31001
|
+
let r = $J(n._fields, e);
|
|
30989
31002
|
r && r._f && (r._f.mount = t);
|
|
30990
31003
|
})(r, !1) : n.unregister(r);
|
|
30991
31004
|
}), [
|
|
@@ -30996,7 +31009,7 @@ function JY(e) {
|
|
|
30996
31009
|
]), {
|
|
30997
31010
|
swap: A.useCallback((e, t) => {
|
|
30998
31011
|
let i = n._getFieldArray(r);
|
|
30999
|
-
|
|
31012
|
+
JY(i, e, t), JY(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, JY, {
|
|
31000
31013
|
argA: e,
|
|
31001
31014
|
argB: t
|
|
31002
31015
|
}, !1);
|
|
@@ -31007,7 +31020,7 @@ function JY(e) {
|
|
|
31007
31020
|
]),
|
|
31008
31021
|
move: A.useCallback((e, t) => {
|
|
31009
31022
|
let i = n._getFieldArray(r);
|
|
31010
|
-
|
|
31023
|
+
WY(i, e, t), WY(l.current, e, t), d(i), c(i), n._setFieldArray(r, i, WY, {
|
|
31011
31024
|
argA: e,
|
|
31012
31025
|
argB: t
|
|
31013
31026
|
}, !1);
|
|
@@ -31017,34 +31030,34 @@ function JY(e) {
|
|
|
31017
31030
|
n
|
|
31018
31031
|
]),
|
|
31019
31032
|
prepend: A.useCallback((e, t) => {
|
|
31020
|
-
let i =
|
|
31021
|
-
n._names.focus =
|
|
31033
|
+
let i = vY(WJ(e)), a = GY(n._getFieldArray(r), i);
|
|
31034
|
+
n._names.focus = BY(r, 0, t), l.current = GY(l.current, i.map(zY)), d(a), c(a), n._setFieldArray(r, a, GY, { argA: HY(e) });
|
|
31022
31035
|
}, [
|
|
31023
31036
|
d,
|
|
31024
31037
|
r,
|
|
31025
31038
|
n
|
|
31026
31039
|
]),
|
|
31027
31040
|
append: A.useCallback((e, t) => {
|
|
31028
|
-
let i =
|
|
31029
|
-
n._names.focus =
|
|
31041
|
+
let i = vY(WJ(e)), a = VY(n._getFieldArray(r), i);
|
|
31042
|
+
n._names.focus = BY(r, a.length - 1, t), l.current = VY(l.current, i.map(zY)), d(a), c(a), n._setFieldArray(r, a, VY, { argA: HY(e) });
|
|
31030
31043
|
}, [
|
|
31031
31044
|
d,
|
|
31032
31045
|
r,
|
|
31033
31046
|
n
|
|
31034
31047
|
]),
|
|
31035
31048
|
remove: A.useCallback((e) => {
|
|
31036
|
-
let t =
|
|
31037
|
-
l.current =
|
|
31049
|
+
let t = qY(n._getFieldArray(r), e);
|
|
31050
|
+
l.current = qY(l.current, e), d(t), c(t), !Array.isArray($J(n._fields, r)) && nY(n._fields, r, void 0), n._setFieldArray(r, t, qY, { argA: e });
|
|
31038
31051
|
}, [
|
|
31039
31052
|
d,
|
|
31040
31053
|
r,
|
|
31041
31054
|
n
|
|
31042
31055
|
]),
|
|
31043
31056
|
insert: A.useCallback((e, t, i) => {
|
|
31044
|
-
let a =
|
|
31045
|
-
n._names.focus =
|
|
31057
|
+
let a = vY(WJ(t)), o = UY(n._getFieldArray(r), e, a);
|
|
31058
|
+
n._names.focus = BY(r, e, i), l.current = UY(l.current, e, a.map(zY)), d(o), c(o), n._setFieldArray(r, o, UY, {
|
|
31046
31059
|
argA: e,
|
|
31047
|
-
argB:
|
|
31060
|
+
argB: HY(t)
|
|
31048
31061
|
});
|
|
31049
31062
|
}, [
|
|
31050
31063
|
d,
|
|
@@ -31052,8 +31065,8 @@ function JY(e) {
|
|
|
31052
31065
|
n
|
|
31053
31066
|
]),
|
|
31054
31067
|
update: A.useCallback((e, t) => {
|
|
31055
|
-
let i = WJ(t), a =
|
|
31056
|
-
l.current = [...a].map((t, n) => !t || n === e ?
|
|
31068
|
+
let i = WJ(t), a = YY(n._getFieldArray(r), e, i);
|
|
31069
|
+
l.current = [...a].map((t, n) => !t || n === e ? zY() : l.current[n]), d(a), c([...a]), n._setFieldArray(r, a, YY, {
|
|
31057
31070
|
argA: e,
|
|
31058
31071
|
argB: i
|
|
31059
31072
|
}, !0, !1);
|
|
@@ -31063,8 +31076,8 @@ function JY(e) {
|
|
|
31063
31076
|
n
|
|
31064
31077
|
]),
|
|
31065
31078
|
replace: A.useCallback((e) => {
|
|
31066
|
-
let t =
|
|
31067
|
-
l.current = t.map(
|
|
31079
|
+
let t = vY(WJ(e));
|
|
31080
|
+
l.current = t.map(zY), d([...t]), c([...t]), n._setFieldArray(r, [...t], (e) => e, {}, !0, !1);
|
|
31068
31081
|
}, [
|
|
31069
31082
|
d,
|
|
31070
31083
|
r,
|
|
@@ -31072,21 +31085,21 @@ function JY(e) {
|
|
|
31072
31085
|
]),
|
|
31073
31086
|
fields: A.useMemo(() => s.map((e, t) => ({
|
|
31074
31087
|
...e,
|
|
31075
|
-
[i]: l.current[t] ||
|
|
31088
|
+
[i]: l.current[t] || zY()
|
|
31076
31089
|
})), [s, i])
|
|
31077
31090
|
};
|
|
31078
31091
|
}
|
|
31079
31092
|
//#endregion
|
|
31080
31093
|
//#region src/composed/JsonSchemaForm/models/JsonSchemaFormContext.ts
|
|
31081
|
-
var
|
|
31082
|
-
function
|
|
31083
|
-
let e = I(
|
|
31094
|
+
var ZY = M(null);
|
|
31095
|
+
function QY() {
|
|
31096
|
+
let e = I(ZY);
|
|
31084
31097
|
if (e === null) throw Error("useJsonSchemaFormContext must be used within a <JsonSchemaForm>");
|
|
31085
31098
|
return e;
|
|
31086
31099
|
}
|
|
31087
31100
|
//#endregion
|
|
31088
31101
|
//#region src/composed/JsonSchemaForm/conditional/evalCondition.ts
|
|
31089
|
-
function
|
|
31102
|
+
function $Y(e, t) {
|
|
31090
31103
|
if (e.$eq.size === 0) return !0;
|
|
31091
31104
|
for (let [n, r] of e.$eq) {
|
|
31092
31105
|
let e = t.get(n);
|
|
@@ -31096,11 +31109,11 @@ function ZY(e, t) {
|
|
|
31096
31109
|
}
|
|
31097
31110
|
//#endregion
|
|
31098
31111
|
//#region src/composed/JsonSchemaForm/conditional/ConditionalGate.tsx
|
|
31099
|
-
function
|
|
31100
|
-
let { control: r } =
|
|
31112
|
+
function eX({ condition: e, unregisterOnHide: t, children: n }) {
|
|
31113
|
+
let { control: r } = QY(), i = B(() => Array.from(e.$eq.keys()), [e]), a = pY({
|
|
31101
31114
|
control: r,
|
|
31102
31115
|
name: i
|
|
31103
|
-
}), o =
|
|
31116
|
+
}), o = $Y(e, B(() => {
|
|
31104
31117
|
let e = /* @__PURE__ */ new Map();
|
|
31105
31118
|
if (i.length === 0) return e;
|
|
31106
31119
|
let t = Array.isArray(a) ? a : [a];
|
|
@@ -31115,8 +31128,26 @@ function QY({ condition: e, unregisterOnHide: t, children: n }) {
|
|
|
31115
31128
|
]), o ? /* @__PURE__ */ H(oe, { children: n }) : null;
|
|
31116
31129
|
}
|
|
31117
31130
|
//#endregion
|
|
31131
|
+
//#region src/composed/JsonSchemaForm/conditional/DisabledGate.tsx
|
|
31132
|
+
function tX({ condition: e, children: t }) {
|
|
31133
|
+
let n = QY(), r = B(() => Array.from(e.$eq.keys()), [e]), i = pY({
|
|
31134
|
+
control: n.control,
|
|
31135
|
+
name: r
|
|
31136
|
+
});
|
|
31137
|
+
return $Y(e, B(() => {
|
|
31138
|
+
let e = /* @__PURE__ */ new Map(), t = Array.isArray(i) ? i : [i];
|
|
31139
|
+
return r.forEach((n, r) => e.set(n, t[r])), e;
|
|
31140
|
+
}, [r, i])) ? /* @__PURE__ */ H(ZY.Provider, {
|
|
31141
|
+
value: {
|
|
31142
|
+
...n,
|
|
31143
|
+
disabled: !0
|
|
31144
|
+
},
|
|
31145
|
+
children: t
|
|
31146
|
+
}) : /* @__PURE__ */ H(oe, { children: t });
|
|
31147
|
+
}
|
|
31148
|
+
//#endregion
|
|
31118
31149
|
//#region src/composed/JsonSchemaForm/conditional/concretizePath.ts
|
|
31119
|
-
function
|
|
31150
|
+
function nX(e, t) {
|
|
31120
31151
|
return e.split(".").map((e, n) => {
|
|
31121
31152
|
let r = t[n];
|
|
31122
31153
|
return e === "*" && r !== void 0 && /^\d+$/.test(r) ? r : e;
|
|
@@ -31124,13 +31155,13 @@ function $Y(e, t) {
|
|
|
31124
31155
|
}
|
|
31125
31156
|
//#endregion
|
|
31126
31157
|
//#region src/composed/JsonSchemaForm/conditional/concretizeCondition.ts
|
|
31127
|
-
function
|
|
31158
|
+
function rX(e, t) {
|
|
31128
31159
|
let n = t === "" ? [] : t.split(".");
|
|
31129
|
-
return { $eq: new Map([...e.$eq].map(([e, t]) => [
|
|
31160
|
+
return { $eq: new Map([...e.$eq].map(([e, t]) => [nX(e, n), t])) };
|
|
31130
31161
|
}
|
|
31131
31162
|
//#endregion
|
|
31132
31163
|
//#region src/composed/JsonSchemaForm/schema/preprocess/walkDependencies.ts
|
|
31133
|
-
function
|
|
31164
|
+
function iX(e, t) {
|
|
31134
31165
|
if (!e) return e;
|
|
31135
31166
|
let n = {};
|
|
31136
31167
|
for (let [r, i] of Object.entries(e)) n[r] = Array.isArray(i) ? i : t(i);
|
|
@@ -31138,17 +31169,17 @@ function tX(e, t) {
|
|
|
31138
31169
|
}
|
|
31139
31170
|
//#endregion
|
|
31140
31171
|
//#region src/composed/JsonSchemaForm/schema/preprocess/mergeAllOf.ts
|
|
31141
|
-
function
|
|
31142
|
-
return
|
|
31172
|
+
function aX(e) {
|
|
31173
|
+
return oX(e);
|
|
31143
31174
|
}
|
|
31144
|
-
function
|
|
31145
|
-
return
|
|
31175
|
+
function oX(e) {
|
|
31176
|
+
return cX(sX({ ...e }));
|
|
31146
31177
|
}
|
|
31147
|
-
function
|
|
31178
|
+
function sX(e) {
|
|
31148
31179
|
if (!Array.isArray(e.allOf) || e.allOf.length === 0) return e;
|
|
31149
31180
|
let t = { ...e.properties ?? {} }, n = new Set(e.required ?? []), r = e.gioConfig ? { ...e.gioConfig } : void 0, i = { ...e.dependencies ?? {} };
|
|
31150
31181
|
for (let a of e.allOf) {
|
|
31151
|
-
let e =
|
|
31182
|
+
let e = oX(a);
|
|
31152
31183
|
Object.assign(t, e.properties ?? {}), e.required?.forEach((e) => n.add(e)), e.gioConfig && (r = {
|
|
31153
31184
|
...r,
|
|
31154
31185
|
...e.gioConfig
|
|
@@ -31157,33 +31188,33 @@ function iX(e) {
|
|
|
31157
31188
|
let a = { ...e };
|
|
31158
31189
|
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;
|
|
31159
31190
|
}
|
|
31160
|
-
function
|
|
31161
|
-
return e.properties &&=
|
|
31191
|
+
function cX(e) {
|
|
31192
|
+
return e.properties &&= lX(e.properties, oX), e.items &&= Array.isArray(e.items) ? e.items.map(oX) : oX(e.items), e.oneOf &&= e.oneOf.map(oX), e.anyOf &&= e.anyOf.map(oX), e.dependencies &&= iX(e.dependencies, oX), e;
|
|
31162
31193
|
}
|
|
31163
|
-
function
|
|
31194
|
+
function lX(e, t) {
|
|
31164
31195
|
let n = {};
|
|
31165
31196
|
for (let [r, i] of Object.entries(e)) n[r] = t(i);
|
|
31166
31197
|
return n;
|
|
31167
31198
|
}
|
|
31168
31199
|
//#endregion
|
|
31169
31200
|
//#region src/composed/JsonSchemaForm/utils/jsonPointer.ts
|
|
31170
|
-
function
|
|
31201
|
+
function uX(e) {
|
|
31171
31202
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
31172
31203
|
}
|
|
31173
|
-
function
|
|
31204
|
+
function dX(e) {
|
|
31174
31205
|
return e.replace(/~1/g, "/").replace(/~0/g, "~");
|
|
31175
31206
|
}
|
|
31176
31207
|
//#endregion
|
|
31177
31208
|
//#region src/composed/JsonSchemaForm/schema/preprocess/resolveRefs.ts
|
|
31178
|
-
function
|
|
31179
|
-
return
|
|
31209
|
+
function fX(e) {
|
|
31210
|
+
return pX(e, e, []);
|
|
31180
31211
|
}
|
|
31181
|
-
function
|
|
31212
|
+
function pX(e, t, n) {
|
|
31182
31213
|
if (typeof e.$ref == "string") {
|
|
31183
31214
|
if (n.includes(e.$ref)) throw Error(`Cyclic $ref: ${[...n, e.$ref].join(" → ")}`);
|
|
31184
|
-
let r =
|
|
31215
|
+
let r = mX(t, e.$ref);
|
|
31185
31216
|
if (r === void 0) throw Error(`Unresolved $ref: ${e.$ref}`);
|
|
31186
|
-
let i =
|
|
31217
|
+
let i = pX(r, t, [...n, e.$ref]), { $ref: a, gioConfig: o, ...s } = e, c = {
|
|
31187
31218
|
...i,
|
|
31188
31219
|
...s
|
|
31189
31220
|
};
|
|
@@ -31195,25 +31226,25 @@ function uX(e, t, n) {
|
|
|
31195
31226
|
let r = { ...e };
|
|
31196
31227
|
if (r.properties) {
|
|
31197
31228
|
let e = {};
|
|
31198
|
-
for (let [i, a] of Object.entries(r.properties)) e[i] =
|
|
31229
|
+
for (let [i, a] of Object.entries(r.properties)) e[i] = pX(a, t, n);
|
|
31199
31230
|
r.properties = e;
|
|
31200
31231
|
}
|
|
31201
|
-
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) =>
|
|
31232
|
+
if (r.items &&= Array.isArray(r.items) ? r.items.map((e) => pX(e, t, n)) : pX(r.items, t, n), r.oneOf &&= r.oneOf.map((e) => pX(e, t, n)), r.anyOf &&= r.anyOf.map((e) => pX(e, t, n)), r.allOf &&= r.allOf.map((e) => pX(e, t, n)), r.dependencies &&= iX(r.dependencies, (e) => pX(e, t, n)), r.definitions) {
|
|
31202
31233
|
let e = {};
|
|
31203
|
-
for (let [i, a] of Object.entries(r.definitions)) e[i] =
|
|
31234
|
+
for (let [i, a] of Object.entries(r.definitions)) e[i] = pX(a, t, n);
|
|
31204
31235
|
r.definitions = e;
|
|
31205
31236
|
}
|
|
31206
31237
|
if (r.$defs) {
|
|
31207
31238
|
let e = {};
|
|
31208
|
-
for (let [i, a] of Object.entries(r.$defs)) e[i] =
|
|
31239
|
+
for (let [i, a] of Object.entries(r.$defs)) e[i] = pX(a, t, n);
|
|
31209
31240
|
r.$defs = e;
|
|
31210
31241
|
}
|
|
31211
31242
|
return r;
|
|
31212
31243
|
}
|
|
31213
|
-
function
|
|
31244
|
+
function mX(e, t) {
|
|
31214
31245
|
if (t === "#") return e;
|
|
31215
31246
|
if (!t.startsWith("#/")) throw Error(`Unsupported $ref format (only local JSON Pointers are supported): ${t}`);
|
|
31216
|
-
let n = t.slice(2).split("/").map(
|
|
31247
|
+
let n = t.slice(2).split("/").map(dX), r = e;
|
|
31217
31248
|
for (let e of n) {
|
|
31218
31249
|
if (typeof r != "object" || !r) return;
|
|
31219
31250
|
r = r[e];
|
|
@@ -31222,28 +31253,28 @@ function dX(e, t) {
|
|
|
31222
31253
|
}
|
|
31223
31254
|
//#endregion
|
|
31224
31255
|
//#region src/composed/JsonSchemaForm/form-bindings/extractDefaults.ts
|
|
31225
|
-
function
|
|
31256
|
+
function hX(e) {
|
|
31226
31257
|
let t;
|
|
31227
31258
|
try {
|
|
31228
|
-
t =
|
|
31259
|
+
t = aX(fX(e));
|
|
31229
31260
|
} catch {
|
|
31230
31261
|
return;
|
|
31231
31262
|
}
|
|
31232
|
-
return
|
|
31263
|
+
return gX(t);
|
|
31233
31264
|
}
|
|
31234
|
-
function
|
|
31265
|
+
function gX(e) {
|
|
31235
31266
|
if (e.deprecated === !0) return;
|
|
31236
31267
|
if (Object.prototype.hasOwnProperty.call(e, "default")) return e.default;
|
|
31237
31268
|
let t = {};
|
|
31238
31269
|
if (e.properties) for (let [n, r] of Object.entries(e.properties)) {
|
|
31239
|
-
let e =
|
|
31270
|
+
let e = gX(r);
|
|
31240
31271
|
e !== void 0 && (t[n] = e);
|
|
31241
31272
|
}
|
|
31242
31273
|
let n = (e.oneOf ?? e.anyOf)?.find((e) => e.deprecated !== !0);
|
|
31243
31274
|
if (n?.properties) {
|
|
31244
31275
|
for (let [e, r] of Object.entries(n.properties)) if (r.const !== void 0) t[e] = r.const;
|
|
31245
31276
|
else if (!(e in t)) {
|
|
31246
|
-
let n =
|
|
31277
|
+
let n = gX(r);
|
|
31247
31278
|
n !== void 0 && (t[e] = n);
|
|
31248
31279
|
}
|
|
31249
31280
|
}
|
|
@@ -31251,23 +31282,23 @@ function pX(e) {
|
|
|
31251
31282
|
}
|
|
31252
31283
|
//#endregion
|
|
31253
31284
|
//#region src/composed/JsonSchemaForm/utils/fieldErrors.ts
|
|
31254
|
-
function
|
|
31285
|
+
function _X(e) {
|
|
31255
31286
|
return e ? e.types ? Object.values(e.types).flat().filter((e) => typeof e == "string").map((e) => ({ message: e })) : [{ message: e.message }] : [];
|
|
31256
31287
|
}
|
|
31257
31288
|
//#endregion
|
|
31258
31289
|
//#region src/composed/JsonSchemaForm/utils/labelOf.ts
|
|
31259
|
-
function
|
|
31290
|
+
function vX(e) {
|
|
31260
31291
|
return e ? e.charAt(0).toUpperCase() + e.slice(1) : "Field";
|
|
31261
31292
|
}
|
|
31262
|
-
function
|
|
31263
|
-
return
|
|
31293
|
+
function yX(e) {
|
|
31294
|
+
return vX(e.split(".").pop());
|
|
31264
31295
|
}
|
|
31265
|
-
function
|
|
31266
|
-
return typeof e.title == "string" && e.title.length > 0 ? e.title :
|
|
31296
|
+
function bX(e, t) {
|
|
31297
|
+
return typeof e.title == "string" && e.title.length > 0 ? e.title : vX(t);
|
|
31267
31298
|
}
|
|
31268
31299
|
//#endregion
|
|
31269
31300
|
//#region src/composed/JsonSchemaForm/fields/banner/SchemaBanner.tsx
|
|
31270
|
-
function
|
|
31301
|
+
function xX({ banner: e }) {
|
|
31271
31302
|
let t = "title" in e ? e.title : void 0;
|
|
31272
31303
|
return /* @__PURE__ */ U(Yy, {
|
|
31273
31304
|
role: "note",
|
|
@@ -31287,7 +31318,7 @@ function vX({ banner: e }) {
|
|
|
31287
31318
|
}
|
|
31288
31319
|
//#endregion
|
|
31289
31320
|
//#region src/composed/JsonSchemaForm/fields/array/buildDefaultForType.ts
|
|
31290
|
-
function
|
|
31321
|
+
function SX(e) {
|
|
31291
31322
|
if (e.default !== void 0) return e.default;
|
|
31292
31323
|
switch (e.type) {
|
|
31293
31324
|
case "string": return "";
|
|
@@ -31302,11 +31333,11 @@ function yX(e) {
|
|
|
31302
31333
|
}
|
|
31303
31334
|
//#endregion
|
|
31304
31335
|
//#region src/composed/JsonSchemaForm/fields/array/use-array-field.ts
|
|
31305
|
-
function
|
|
31306
|
-
let n =
|
|
31336
|
+
function CX(e, t) {
|
|
31337
|
+
let n = QY(), r = t ? n.basePath ? `${n.basePath}.${t}` : t : n.basePath, { fields: i, append: a, remove: o } = XY({
|
|
31307
31338
|
control: n.control,
|
|
31308
31339
|
name: r
|
|
31309
|
-
}), { fieldState: s } =
|
|
31340
|
+
}), { fieldState: s } = mY({
|
|
31310
31341
|
control: n.control,
|
|
31311
31342
|
name: r
|
|
31312
31343
|
}), c = n.disabled || e.readOnly === !0, l = typeof e.minItems == "number" ? e.minItems : 0, u = typeof e.maxItems == "number" ? e.maxItems : Infinity;
|
|
@@ -31324,10 +31355,10 @@ function bX(e, t) {
|
|
|
31324
31355
|
}
|
|
31325
31356
|
//#endregion
|
|
31326
31357
|
//#region src/composed/JsonSchemaForm/fields/array/ArrayField.tsx
|
|
31327
|
-
function
|
|
31328
|
-
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } =
|
|
31358
|
+
function wX({ node: e, name: t, depth: n }) {
|
|
31359
|
+
let { schema: r } = e, { ctx: i, path: a, fields: o, append: s, remove: c, fieldState: l, isDisabled: u, atMin: d, atMax: f } = CX(r, t), p = r.items, m = e.items, h = bX(r, t), g = r.gioConfig?.uiBorder === "full";
|
|
31329
31360
|
function _() {
|
|
31330
|
-
s(
|
|
31361
|
+
s(EX(p), { shouldFocus: !1 });
|
|
31331
31362
|
}
|
|
31332
31363
|
return /* @__PURE__ */ U(pR, {
|
|
31333
31364
|
"aria-required": r.isRequired || void 0,
|
|
@@ -31339,10 +31370,10 @@ function xX({ node: e, name: t, depth: n }) {
|
|
|
31339
31370
|
children: h
|
|
31340
31371
|
}),
|
|
31341
31372
|
r.description && /* @__PURE__ */ H(xR, { children: r.description }),
|
|
31342
|
-
r.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31373
|
+
r.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: r.gioConfig.banner }),
|
|
31343
31374
|
/* @__PURE__ */ H("div", {
|
|
31344
31375
|
className: "flex flex-col",
|
|
31345
|
-
children: o.map((e, t) => /* @__PURE__ */ H(
|
|
31376
|
+
children: o.map((e, t) => /* @__PURE__ */ H(TX, {
|
|
31346
31377
|
index: t,
|
|
31347
31378
|
path: a,
|
|
31348
31379
|
itemsNode: m,
|
|
@@ -31364,11 +31395,11 @@ function xX({ node: e, name: t, depth: n }) {
|
|
|
31364
31395
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
31365
31396
|
})
|
|
31366
31397
|
}),
|
|
31367
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31398
|
+
/* @__PURE__ */ H(CR, { errors: _X(l.error) })
|
|
31368
31399
|
]
|
|
31369
31400
|
});
|
|
31370
31401
|
}
|
|
31371
|
-
function
|
|
31402
|
+
function TX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove: a, onRemove: o, ctx: c }) {
|
|
31372
31403
|
let l = `${t}.${e}`;
|
|
31373
31404
|
return /* @__PURE__ */ U(Uw, {
|
|
31374
31405
|
defaultOpen: !0,
|
|
@@ -31397,13 +31428,13 @@ function SX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
31397
31428
|
})]
|
|
31398
31429
|
}), /* @__PURE__ */ H(Gw, { children: /* @__PURE__ */ H("div", {
|
|
31399
31430
|
className: "pt-2 pb-4 pl-6",
|
|
31400
|
-
children: n && /* @__PURE__ */ H(
|
|
31431
|
+
children: n && /* @__PURE__ */ H(ZY.Provider, {
|
|
31401
31432
|
value: {
|
|
31402
31433
|
...c,
|
|
31403
31434
|
basePath: l,
|
|
31404
31435
|
disabled: i
|
|
31405
31436
|
},
|
|
31406
|
-
children: /* @__PURE__ */ H(
|
|
31437
|
+
children: /* @__PURE__ */ H(rZ, {
|
|
31407
31438
|
node: n,
|
|
31408
31439
|
name: "",
|
|
31409
31440
|
depth: r + 1
|
|
@@ -31412,17 +31443,17 @@ function SX({ index: e, path: t, itemsNode: n, depth: r, disabled: i, canRemove:
|
|
|
31412
31443
|
}) })]
|
|
31413
31444
|
});
|
|
31414
31445
|
}
|
|
31415
|
-
function
|
|
31416
|
-
let t =
|
|
31417
|
-
return t === void 0 ?
|
|
31446
|
+
function EX(e) {
|
|
31447
|
+
let t = hX(e);
|
|
31448
|
+
return t === void 0 ? SX(e) : t;
|
|
31418
31449
|
}
|
|
31419
31450
|
//#endregion
|
|
31420
31451
|
//#region src/composed/JsonSchemaForm/fields/array/HeadersArrayField.tsx
|
|
31421
|
-
function
|
|
31422
|
-
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } =
|
|
31452
|
+
function DX({ node: e, name: t }) {
|
|
31453
|
+
let { schema: n } = e, { path: r, fields: i, append: a, remove: o, fieldState: s, isDisabled: c, atMin: l, atMax: u } = CX(n, t), d = n.items, f = d && !Array.isArray(d) ? d.properties ?? {} : {}, p = Object.keys(f), m = bX(n, t);
|
|
31423
31454
|
function h() {
|
|
31424
31455
|
let e = {};
|
|
31425
|
-
for (let t of p) e[t] =
|
|
31456
|
+
for (let t of p) e[t] = SX(f[t]);
|
|
31426
31457
|
a(e, { shouldFocus: !1 });
|
|
31427
31458
|
}
|
|
31428
31459
|
return /* @__PURE__ */ U(pR, {
|
|
@@ -31434,16 +31465,16 @@ function wX({ node: e, name: t }) {
|
|
|
31434
31465
|
children: m
|
|
31435
31466
|
}),
|
|
31436
31467
|
n.description && /* @__PURE__ */ H(xR, { children: n.description }),
|
|
31437
|
-
n.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31468
|
+
n.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: n.gioConfig.banner }),
|
|
31438
31469
|
/* @__PURE__ */ H("div", {
|
|
31439
31470
|
className: "overflow-hidden rounded-lg border",
|
|
31440
31471
|
children: /* @__PURE__ */ U(HW, { children: [/* @__PURE__ */ H(UW, { children: /* @__PURE__ */ U(KW, { children: [p.map((e) => /* @__PURE__ */ H(qW, {
|
|
31441
31472
|
scope: "col",
|
|
31442
|
-
children:
|
|
31473
|
+
children: AX(f[e], e)
|
|
31443
31474
|
}, e)), /* @__PURE__ */ H(qW, {
|
|
31444
31475
|
"aria-hidden": "true",
|
|
31445
31476
|
className: "w-px"
|
|
31446
|
-
})] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(
|
|
31477
|
+
})] }) }), /* @__PURE__ */ H(WW, { children: i.map((e, t) => /* @__PURE__ */ H(OX, {
|
|
31447
31478
|
rowIndex: t,
|
|
31448
31479
|
rowPath: `${r}.${t}`,
|
|
31449
31480
|
columnKeys: p,
|
|
@@ -31461,12 +31492,12 @@ function wX({ node: e, name: t }) {
|
|
|
31461
31492
|
onClick: h,
|
|
31462
31493
|
children: [/* @__PURE__ */ H(E, { "aria-hidden": "true" }), "Add"]
|
|
31463
31494
|
}) }),
|
|
31464
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31495
|
+
/* @__PURE__ */ H(CR, { errors: _X(s.error) })
|
|
31465
31496
|
]
|
|
31466
31497
|
});
|
|
31467
31498
|
}
|
|
31468
|
-
function
|
|
31469
|
-
return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(
|
|
31499
|
+
function OX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disabled: i, canRemove: a, onRemove: o }) {
|
|
31500
|
+
return /* @__PURE__ */ U(KW, { children: [n.map((n) => /* @__PURE__ */ H(kX, {
|
|
31470
31501
|
columnKey: n,
|
|
31471
31502
|
cellPath: `${t}.${n}`,
|
|
31472
31503
|
propSchema: r[n],
|
|
@@ -31485,8 +31516,8 @@ function TX({ rowIndex: e, rowPath: t, columnKeys: n, itemProperties: r, disable
|
|
|
31485
31516
|
})
|
|
31486
31517
|
})] });
|
|
31487
31518
|
}
|
|
31488
|
-
function
|
|
31489
|
-
let { control: a } =
|
|
31519
|
+
function kX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i }) {
|
|
31520
|
+
let { control: a } = QY(), { field: o, fieldState: s } = mY({
|
|
31490
31521
|
control: a,
|
|
31491
31522
|
name: t
|
|
31492
31523
|
}), { ref: c, onBlur: l, onChange: u, value: d } = o;
|
|
@@ -31498,21 +31529,21 @@ function EX({ columnKey: e, cellPath: t, propSchema: n, rowIndex: r, disabled: i
|
|
|
31498
31529
|
onBlur: l,
|
|
31499
31530
|
disabled: i,
|
|
31500
31531
|
"aria-invalid": s.invalid,
|
|
31501
|
-
"aria-label": `${
|
|
31532
|
+
"aria-label": `${AX(n, e)} for row ${r + 1}`,
|
|
31502
31533
|
placeholder: typeof n.title == "string" ? n.title : void 0
|
|
31503
31534
|
}) });
|
|
31504
31535
|
}
|
|
31505
|
-
function
|
|
31536
|
+
function AX(e, t) {
|
|
31506
31537
|
return typeof e.title == "string" ? e.title : t.charAt(0).toUpperCase() + t.slice(1);
|
|
31507
31538
|
}
|
|
31508
31539
|
//#endregion
|
|
31509
31540
|
//#region src/composed/JsonSchemaForm/fields/boolean/BooleanField.tsx
|
|
31510
|
-
function
|
|
31511
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31541
|
+
function jX({ node: e, name: t }) {
|
|
31542
|
+
let { control: n, basePath: r, disabled: i } = QY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = mY({
|
|
31512
31543
|
control: n,
|
|
31513
31544
|
name: o,
|
|
31514
31545
|
defaultValue: typeof a.default == "boolean" ? a.default : !1
|
|
31515
|
-
}), l =
|
|
31546
|
+
}), l = bX(a, t), u = i || a.readOnly === !0;
|
|
31516
31547
|
return /* @__PURE__ */ U(_R, {
|
|
31517
31548
|
orientation: "horizontal",
|
|
31518
31549
|
"data-invalid": c.invalid,
|
|
@@ -31528,43 +31559,43 @@ function OX({ node: e, name: t }) {
|
|
|
31528
31559
|
htmlFor: o,
|
|
31529
31560
|
children: l
|
|
31530
31561
|
}),
|
|
31531
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31562
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: a.gioConfig.banner }),
|
|
31532
31563
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31533
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31564
|
+
/* @__PURE__ */ H(CR, { errors: _X(c.error) })
|
|
31534
31565
|
] })]
|
|
31535
31566
|
});
|
|
31536
31567
|
}
|
|
31537
31568
|
//#endregion
|
|
31538
31569
|
//#region src/composed/JsonSchemaForm/utils/schemaShape.ts
|
|
31539
|
-
function
|
|
31570
|
+
function MX(e) {
|
|
31540
31571
|
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.every((e) => e.const !== void 0);
|
|
31541
31572
|
}
|
|
31542
|
-
function
|
|
31573
|
+
function NX(e) {
|
|
31543
31574
|
return e.type !== "array" || e.uniqueItems !== !0 || !e.items || Array.isArray(e.items) ? !1 : Array.isArray(e.items.enum) && e.items.enum.length > 0;
|
|
31544
31575
|
}
|
|
31545
|
-
function
|
|
31576
|
+
function PX(e) {
|
|
31546
31577
|
return e.type === "array" && e.gioConfig?.uiType === "gio-headers-array";
|
|
31547
31578
|
}
|
|
31548
|
-
function
|
|
31549
|
-
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !
|
|
31579
|
+
function FX(e) {
|
|
31580
|
+
return Array.isArray(e.oneOf) && e.oneOf.length > 0 && e.oneOf.some((e) => e.properties !== void 0) && !MX(e);
|
|
31550
31581
|
}
|
|
31551
|
-
function
|
|
31582
|
+
function IX(e) {
|
|
31552
31583
|
return Array.isArray(e.anyOf) && e.anyOf.length > 0 && e.anyOf.some((e) => e.properties !== void 0);
|
|
31553
31584
|
}
|
|
31554
31585
|
//#endregion
|
|
31555
31586
|
//#region src/composed/JsonSchemaForm/fields/enum/enumOptions.ts
|
|
31556
|
-
function
|
|
31587
|
+
function LX(e, t) {
|
|
31557
31588
|
let n = t?.[String(e)];
|
|
31558
31589
|
return n === void 0 ? e === null ? "—" : String(e) : n;
|
|
31559
31590
|
}
|
|
31560
|
-
function
|
|
31591
|
+
function RX(e, t) {
|
|
31561
31592
|
return e.map((e, n) => ({
|
|
31562
31593
|
raw: e,
|
|
31563
31594
|
key: String(n),
|
|
31564
|
-
label:
|
|
31595
|
+
label: LX(e, t)
|
|
31565
31596
|
}));
|
|
31566
31597
|
}
|
|
31567
|
-
function
|
|
31598
|
+
function zX(e) {
|
|
31568
31599
|
return e.map((e, t) => ({
|
|
31569
31600
|
raw: e.const,
|
|
31570
31601
|
key: String(t),
|
|
@@ -31573,12 +31604,12 @@ function IX(e) {
|
|
|
31573
31604
|
}
|
|
31574
31605
|
//#endregion
|
|
31575
31606
|
//#region src/composed/JsonSchemaForm/fields/enum/EnumField.tsx
|
|
31576
|
-
function
|
|
31577
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31607
|
+
function BX({ node: e, name: t }) {
|
|
31608
|
+
let { control: n, basePath: r, disabled: i } = QY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = mY({
|
|
31578
31609
|
control: n,
|
|
31579
31610
|
name: o,
|
|
31580
31611
|
defaultValue: a.default
|
|
31581
|
-
}), { ref: l, onBlur: u } = s, d =
|
|
31612
|
+
}), { ref: l, onBlur: u } = s, d = bX(a, t), f = i || a.readOnly === !0, p = VX(a), m = p.find((e) => Object.is(e.raw, s.value))?.key ?? "", h = (e) => p.find((t) => t.key === e)?.raw;
|
|
31582
31613
|
return /* @__PURE__ */ U(_R, {
|
|
31583
31614
|
"data-invalid": c.invalid,
|
|
31584
31615
|
children: [
|
|
@@ -31587,7 +31618,7 @@ function LX({ node: e, name: t }) {
|
|
|
31587
31618
|
required: a.isRequired,
|
|
31588
31619
|
children: d
|
|
31589
31620
|
}),
|
|
31590
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31621
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: a.gioConfig.banner }),
|
|
31591
31622
|
/* @__PURE__ */ U(tU, {
|
|
31592
31623
|
value: m,
|
|
31593
31624
|
onValueChange: (e) => s.onChange(h(e)),
|
|
@@ -31605,22 +31636,22 @@ function LX({ node: e, name: t }) {
|
|
|
31605
31636
|
}, e.key)) })]
|
|
31606
31637
|
}),
|
|
31607
31638
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31608
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31639
|
+
/* @__PURE__ */ H(CR, { errors: _X(c.error) })
|
|
31609
31640
|
]
|
|
31610
31641
|
});
|
|
31611
31642
|
}
|
|
31612
|
-
function
|
|
31613
|
-
return
|
|
31643
|
+
function VX(e) {
|
|
31644
|
+
return MX(e) ? zX(e.oneOf ?? []) : RX(e.enum ?? [], e.gioConfig?.enumLabelMap);
|
|
31614
31645
|
}
|
|
31615
31646
|
//#endregion
|
|
31616
31647
|
//#region src/composed/JsonSchemaForm/fields/enum/MultiSelectField.tsx
|
|
31617
|
-
function
|
|
31618
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31648
|
+
function HX({ node: e, name: t }) {
|
|
31649
|
+
let { control: n, basePath: r, disabled: i } = QY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = mY({
|
|
31619
31650
|
control: n,
|
|
31620
31651
|
name: o,
|
|
31621
31652
|
defaultValue: Array.isArray(a.default) ? a.default : []
|
|
31622
|
-
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m =
|
|
31623
|
-
return
|
|
31653
|
+
}), { ref: l, onBlur: u, onChange: d, value: f } = s, p = EM(), m = bX(a, t), h = i || a.readOnly === !0, g = a.items, _ = RX(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);
|
|
31654
|
+
return UX({
|
|
31624
31655
|
schema: a,
|
|
31625
31656
|
options: _,
|
|
31626
31657
|
value: f,
|
|
@@ -31633,7 +31664,7 @@ function zX({ node: e, name: t }) {
|
|
|
31633
31664
|
required: a.isRequired,
|
|
31634
31665
|
children: m
|
|
31635
31666
|
}),
|
|
31636
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31667
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: a.gioConfig.banner }),
|
|
31637
31668
|
/* @__PURE__ */ U(uM, {
|
|
31638
31669
|
multiple: !0,
|
|
31639
31670
|
autoHighlight: !0,
|
|
@@ -31666,27 +31697,27 @@ function zX({ node: e, name: t }) {
|
|
|
31666
31697
|
})]
|
|
31667
31698
|
}),
|
|
31668
31699
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31669
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31700
|
+
/* @__PURE__ */ H(CR, { errors: _X(c.error) })
|
|
31670
31701
|
]
|
|
31671
31702
|
});
|
|
31672
31703
|
}
|
|
31673
|
-
function
|
|
31704
|
+
function UX({ schema: e, options: t, value: n, onReset: r }) {
|
|
31674
31705
|
R(() => {
|
|
31675
31706
|
(Array.isArray(n) ? n : []).every((e) => t.some((t) => Object.is(t.raw, e))) || r(Array.isArray(e.default) ? e.default : []);
|
|
31676
31707
|
}, [e]);
|
|
31677
31708
|
}
|
|
31678
31709
|
//#endregion
|
|
31679
31710
|
//#region src/composed/JsonSchemaForm/fields/null/NullField.tsx
|
|
31680
|
-
function
|
|
31711
|
+
function WX() {
|
|
31681
31712
|
return null;
|
|
31682
31713
|
}
|
|
31683
31714
|
//#endregion
|
|
31684
31715
|
//#region src/composed/JsonSchemaForm/fields/number/NumberField.tsx
|
|
31685
|
-
function
|
|
31686
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31716
|
+
function GX({ node: e, name: t }) {
|
|
31717
|
+
let { control: n, basePath: r, disabled: i } = QY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = mY({
|
|
31687
31718
|
control: n,
|
|
31688
31719
|
name: o
|
|
31689
|
-
}), l =
|
|
31720
|
+
}), l = bX(a, t), u = i || a.readOnly === !0, d = (e) => {
|
|
31690
31721
|
let t = e.target.value;
|
|
31691
31722
|
if (t === "") {
|
|
31692
31723
|
s.onChange(null);
|
|
@@ -31703,7 +31734,7 @@ function HX({ node: e, name: t }) {
|
|
|
31703
31734
|
required: a.isRequired,
|
|
31704
31735
|
children: l
|
|
31705
31736
|
}),
|
|
31706
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31737
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: a.gioConfig.banner }),
|
|
31707
31738
|
/* @__PURE__ */ H(eM, {
|
|
31708
31739
|
id: o,
|
|
31709
31740
|
type: "number",
|
|
@@ -31718,21 +31749,21 @@ function HX({ node: e, name: t }) {
|
|
|
31718
31749
|
step: f
|
|
31719
31750
|
}),
|
|
31720
31751
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31721
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31752
|
+
/* @__PURE__ */ H(CR, { errors: _X(c.error) })
|
|
31722
31753
|
]
|
|
31723
31754
|
});
|
|
31724
31755
|
}
|
|
31725
31756
|
//#endregion
|
|
31726
31757
|
//#region src/composed/JsonSchemaForm/utils/pickActiveVariant.ts
|
|
31727
|
-
function
|
|
31758
|
+
function KX(e, t, n, r) {
|
|
31728
31759
|
if (e.length === 0) return -1;
|
|
31729
31760
|
let i = n?.get(t);
|
|
31730
|
-
return
|
|
31761
|
+
return qX(i, e) && JX(e[i], r) ? i : YX(e, r);
|
|
31731
31762
|
}
|
|
31732
|
-
function
|
|
31763
|
+
function qX(e, t) {
|
|
31733
31764
|
return typeof e == "number" && Number.isInteger(e) && t[e] !== void 0;
|
|
31734
31765
|
}
|
|
31735
|
-
function
|
|
31766
|
+
function JX(e, t) {
|
|
31736
31767
|
return Object.entries(e.properties ?? {}).every(([e, n]) => {
|
|
31737
31768
|
if (n.const !== void 0) return t(e) === n.const;
|
|
31738
31769
|
if (typeof n.pattern == "string") {
|
|
@@ -31742,18 +31773,18 @@ function GX(e, t) {
|
|
|
31742
31773
|
return !0;
|
|
31743
31774
|
});
|
|
31744
31775
|
}
|
|
31745
|
-
function
|
|
31776
|
+
function YX(e, t) {
|
|
31746
31777
|
let n = 0, r = {
|
|
31747
31778
|
viable: !1,
|
|
31748
31779
|
matches: -1
|
|
31749
31780
|
};
|
|
31750
31781
|
return e.forEach((e, i) => {
|
|
31751
|
-
let a =
|
|
31752
|
-
|
|
31782
|
+
let a = XX(e, t);
|
|
31783
|
+
ZX(a, r) > 0 && (n = i, r = a);
|
|
31753
31784
|
}), n;
|
|
31754
31785
|
}
|
|
31755
|
-
function
|
|
31756
|
-
return
|
|
31786
|
+
function XX(e, t) {
|
|
31787
|
+
return JX(e, t) ? {
|
|
31757
31788
|
viable: (e.required ?? []).every((e) => t(e) !== void 0),
|
|
31758
31789
|
matches: Object.keys(e.properties ?? {}).filter((e) => t(e) !== void 0).length
|
|
31759
31790
|
} : {
|
|
@@ -31761,13 +31792,13 @@ function qX(e, t) {
|
|
|
31761
31792
|
matches: -1
|
|
31762
31793
|
};
|
|
31763
31794
|
}
|
|
31764
|
-
function
|
|
31795
|
+
function ZX(e, t) {
|
|
31765
31796
|
return e.viable === t.viable ? e.matches - t.matches : e.viable ? 1 : -1;
|
|
31766
31797
|
}
|
|
31767
31798
|
//#endregion
|
|
31768
31799
|
//#region src/composed/JsonSchemaForm/fields/oneOf/OneOfField.tsx
|
|
31769
|
-
function
|
|
31770
|
-
let n =
|
|
31800
|
+
function QX({ node: e, depth: t }) {
|
|
31801
|
+
let n = QY(), { control: r, index: i, basePath: a } = n, { schema: o } = e, s = i.variantIndices, c = B(() => e.variants ?? [], [e.variants]), [l, u] = V(() => KX(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]);
|
|
31771
31802
|
if (c.length === 0) return null;
|
|
31772
31803
|
let f = c[l] ?? c[0], p = f.dependencyBranches ?? [], m = n.disabled || o.readOnly === !0, h = `${a || "root"}-variant`, g = (e) => {
|
|
31773
31804
|
if (e === l) return;
|
|
@@ -31798,21 +31829,21 @@ function YX({ node: e, depth: t }) {
|
|
|
31798
31829
|
}, t)) })]
|
|
31799
31830
|
}),
|
|
31800
31831
|
t === 0 && o.description && /* @__PURE__ */ H(xR, { children: o.description }),
|
|
31801
|
-
o.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31832
|
+
o.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: o.gioConfig.banner })
|
|
31802
31833
|
] }),
|
|
31803
|
-
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H(
|
|
31834
|
+
f.consts.map(({ key: e, value: t }) => /* @__PURE__ */ H($X, {
|
|
31804
31835
|
path: a ? `${a}.${e}` : e,
|
|
31805
31836
|
value: t
|
|
31806
31837
|
}, e)),
|
|
31807
|
-
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(
|
|
31838
|
+
Array.from(f.properties).filter(([, e]) => e.schema.const === void 0).map(([e, n]) => /* @__PURE__ */ H(rZ, {
|
|
31808
31839
|
node: n,
|
|
31809
31840
|
name: e,
|
|
31810
31841
|
depth: t + 1
|
|
31811
31842
|
}, `${l}-${e}`)),
|
|
31812
|
-
p.map((e, n) => /* @__PURE__ */ H(
|
|
31813
|
-
condition:
|
|
31843
|
+
p.map((e, n) => /* @__PURE__ */ H(eX, {
|
|
31844
|
+
condition: rX(e.showIf, a),
|
|
31814
31845
|
unregisterOnHide: d[l]?.[n],
|
|
31815
|
-
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(
|
|
31846
|
+
children: Array.from(e.properties).map(([e, n]) => /* @__PURE__ */ H(rZ, {
|
|
31816
31847
|
node: n,
|
|
31817
31848
|
name: e,
|
|
31818
31849
|
depth: t + 1
|
|
@@ -31820,8 +31851,8 @@ function YX({ node: e, depth: t }) {
|
|
|
31820
31851
|
}, `${l}-var-dep-${n}`))
|
|
31821
31852
|
] });
|
|
31822
31853
|
}
|
|
31823
|
-
function
|
|
31824
|
-
let { control: n } =
|
|
31854
|
+
function $X({ path: e, value: t }) {
|
|
31855
|
+
let { control: n } = QY(), { field: r } = mY({
|
|
31825
31856
|
control: n,
|
|
31826
31857
|
name: e
|
|
31827
31858
|
}), { onChange: i } = r;
|
|
@@ -31831,28 +31862,28 @@ function XX({ path: e, value: t }) {
|
|
|
31831
31862
|
}
|
|
31832
31863
|
//#endregion
|
|
31833
31864
|
//#region src/composed/JsonSchemaForm/fields/object/ObjectField.tsx
|
|
31834
|
-
function
|
|
31835
|
-
let r =
|
|
31865
|
+
function eZ({ node: e, name: t, depth: n }) {
|
|
31866
|
+
let r = QY(), { schema: i } = e, a = t ? r.basePath ? `${r.basePath}.${t}` : t : r.basePath, o = FX(i) || IX(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(ZY.Provider, {
|
|
31836
31867
|
value: {
|
|
31837
31868
|
...r,
|
|
31838
31869
|
basePath: a
|
|
31839
31870
|
},
|
|
31840
31871
|
children: /* @__PURE__ */ U(hR, { children: [
|
|
31841
|
-
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(
|
|
31872
|
+
e.properties && Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(rZ, {
|
|
31842
31873
|
node: t,
|
|
31843
31874
|
name: e,
|
|
31844
31875
|
depth: n + 1
|
|
31845
31876
|
}, e)),
|
|
31846
|
-
s.map((e, t) => /* @__PURE__ */ H(
|
|
31847
|
-
condition:
|
|
31877
|
+
s.map((e, t) => /* @__PURE__ */ H(eX, {
|
|
31878
|
+
condition: rX(e.showIf, a),
|
|
31848
31879
|
unregisterOnHide: l[t],
|
|
31849
|
-
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(
|
|
31880
|
+
children: Array.from(e.properties).map(([e, t]) => /* @__PURE__ */ H(rZ, {
|
|
31850
31881
|
node: t,
|
|
31851
31882
|
name: e,
|
|
31852
31883
|
depth: n + 1
|
|
31853
31884
|
}, e))
|
|
31854
31885
|
}, `dep-${t}`)),
|
|
31855
|
-
o && /* @__PURE__ */ H(
|
|
31886
|
+
o && /* @__PURE__ */ H(QX, {
|
|
31856
31887
|
node: e,
|
|
31857
31888
|
depth: n
|
|
31858
31889
|
})
|
|
@@ -31864,17 +31895,17 @@ function ZX({ node: e, name: t, depth: n }) {
|
|
|
31864
31895
|
/* @__PURE__ */ H(mR, {
|
|
31865
31896
|
className: f ? "px-2 text-base font-semibold" : "text-base font-semibold",
|
|
31866
31897
|
required: i.isRequired,
|
|
31867
|
-
children:
|
|
31898
|
+
children: bX(i, t)
|
|
31868
31899
|
}),
|
|
31869
31900
|
i.description && /* @__PURE__ */ H(xR, { children: i.description }),
|
|
31870
|
-
i.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31901
|
+
i.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: i.gioConfig.banner }),
|
|
31871
31902
|
u
|
|
31872
31903
|
]
|
|
31873
31904
|
});
|
|
31874
31905
|
}
|
|
31875
31906
|
//#endregion
|
|
31876
31907
|
//#region src/composed/PasswordInput/PasswordInput.tsx
|
|
31877
|
-
function
|
|
31908
|
+
function tZ({ groupClassName: e, showLabel: t = "Show password", hideLabel: n = "Hide password", hideToggle: r = !1, className: i, disabled: a, ...o }) {
|
|
31878
31909
|
let [s, c] = V(!1);
|
|
31879
31910
|
return /* @__PURE__ */ U(nM, {
|
|
31880
31911
|
className: e,
|
|
@@ -31900,14 +31931,14 @@ function QX({ groupClassName: e, showLabel: t = "Show password", hideLabel: n =
|
|
|
31900
31931
|
})]
|
|
31901
31932
|
});
|
|
31902
31933
|
}
|
|
31903
|
-
|
|
31934
|
+
tZ.displayName = "PasswordInput";
|
|
31904
31935
|
//#endregion
|
|
31905
31936
|
//#region src/composed/JsonSchemaForm/fields/string/StringField.tsx
|
|
31906
|
-
function
|
|
31907
|
-
let { control: n, basePath: r, disabled: i } =
|
|
31937
|
+
function nZ({ node: e, name: t }) {
|
|
31938
|
+
let { control: n, basePath: r, disabled: i } = QY(), { schema: a } = e, o = t ? r ? `${r}.${t}` : t : r, { field: s, fieldState: c } = mY({
|
|
31908
31939
|
control: n,
|
|
31909
31940
|
name: o
|
|
31910
|
-
}), l =
|
|
31941
|
+
}), l = bX(a, t), u = i || a.readOnly === !0, d = c.invalid, f = {
|
|
31911
31942
|
id: o,
|
|
31912
31943
|
value: typeof s.value == "string" ? s.value : "",
|
|
31913
31944
|
onChange: s.onChange,
|
|
@@ -31926,8 +31957,8 @@ function $X({ node: e, name: t }) {
|
|
|
31926
31957
|
required: a.isRequired,
|
|
31927
31958
|
children: l
|
|
31928
31959
|
}),
|
|
31929
|
-
a.gioConfig?.banner && /* @__PURE__ */ H(
|
|
31930
|
-
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(
|
|
31960
|
+
a.gioConfig?.banner && /* @__PURE__ */ H(xX, { banner: a.gioConfig.banner }),
|
|
31961
|
+
a.format === "text" ? /* @__PURE__ */ H(tM, { ...f }) : a.format === "password" ? /* @__PURE__ */ H(tZ, {
|
|
31931
31962
|
...f,
|
|
31932
31963
|
pattern: a.pattern
|
|
31933
31964
|
}) : /* @__PURE__ */ H(eM, {
|
|
@@ -31936,141 +31967,144 @@ function $X({ node: e, name: t }) {
|
|
|
31936
31967
|
pattern: a.pattern
|
|
31937
31968
|
}),
|
|
31938
31969
|
a.description && /* @__PURE__ */ H(xR, { children: a.description }),
|
|
31939
|
-
/* @__PURE__ */ H(CR, { errors:
|
|
31970
|
+
/* @__PURE__ */ H(CR, { errors: _X(c.error) })
|
|
31940
31971
|
]
|
|
31941
31972
|
});
|
|
31942
31973
|
}
|
|
31943
31974
|
//#endregion
|
|
31944
31975
|
//#region src/composed/JsonSchemaForm/SchemaField.tsx
|
|
31945
|
-
function
|
|
31946
|
-
let { basePath: r } =
|
|
31976
|
+
function rZ({ node: e, name: t, depth: n = 0 }) {
|
|
31977
|
+
let { basePath: r } = QY(), { schema: i } = e, a = t ?? "", o = t ? r ? `${r}.${t}` : t : r, s = B(() => [o], [o]), c = B(() => e.displayIf ? rX(e.displayIf, r) : void 0, [e.displayIf, r]), l = B(() => e.disableIf ? rX(e.disableIf, r) : void 0, [e.disableIf, r]);
|
|
31947
31978
|
if (i.deprecated === !0) return null;
|
|
31948
|
-
let
|
|
31949
|
-
return
|
|
31979
|
+
let u = iZ(e, a, t, n);
|
|
31980
|
+
return u === null ? null : (l && (u = /* @__PURE__ */ H(tX, {
|
|
31981
|
+
condition: l,
|
|
31982
|
+
children: u
|
|
31983
|
+
})), c ? /* @__PURE__ */ H(eX, {
|
|
31950
31984
|
condition: c,
|
|
31951
31985
|
unregisterOnHide: s,
|
|
31952
|
-
children:
|
|
31953
|
-
}) :
|
|
31986
|
+
children: u
|
|
31987
|
+
}) : u);
|
|
31954
31988
|
}
|
|
31955
|
-
function
|
|
31956
|
-
let { schema: i } = e, a =
|
|
31957
|
-
return Array.isArray(i.enum) && i.enum.length > 0 ||
|
|
31989
|
+
function iZ(e, t, n, r) {
|
|
31990
|
+
let { schema: i } = e, a = aZ(i.type);
|
|
31991
|
+
return Array.isArray(i.enum) && i.enum.length > 0 || MX(i) ? /* @__PURE__ */ H(BX, {
|
|
31958
31992
|
node: e,
|
|
31959
31993
|
name: t
|
|
31960
|
-
}) :
|
|
31994
|
+
}) : NX(i) ? /* @__PURE__ */ H(HX, {
|
|
31961
31995
|
node: e,
|
|
31962
31996
|
name: t
|
|
31963
|
-
}) :
|
|
31997
|
+
}) : PX(i) ? /* @__PURE__ */ H(DX, {
|
|
31964
31998
|
node: e,
|
|
31965
31999
|
name: t
|
|
31966
|
-
}) : a === "null" ? /* @__PURE__ */ H(
|
|
32000
|
+
}) : a === "null" ? /* @__PURE__ */ H(WX, {}) : a === "boolean" ? /* @__PURE__ */ H(jX, {
|
|
31967
32001
|
node: e,
|
|
31968
32002
|
name: t
|
|
31969
|
-
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(
|
|
32003
|
+
}) : a === "integer" || a === "number" ? /* @__PURE__ */ H(GX, {
|
|
31970
32004
|
node: e,
|
|
31971
32005
|
name: t
|
|
31972
|
-
}) : a === "string" ? /* @__PURE__ */ H(
|
|
32006
|
+
}) : a === "string" ? /* @__PURE__ */ H(nZ, {
|
|
31973
32007
|
node: e,
|
|
31974
32008
|
name: t
|
|
31975
|
-
}) : i.properties || a === "object" ||
|
|
32009
|
+
}) : i.properties || a === "object" || FX(i) || IX(i) ? /* @__PURE__ */ H(eZ, {
|
|
31976
32010
|
node: e,
|
|
31977
32011
|
name: n,
|
|
31978
32012
|
depth: r
|
|
31979
|
-
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(
|
|
32013
|
+
}) : a === "array" && i.items && !Array.isArray(i.items) ? /* @__PURE__ */ H(wX, {
|
|
31980
32014
|
node: e,
|
|
31981
32015
|
name: n,
|
|
31982
32016
|
depth: r
|
|
31983
|
-
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${
|
|
32017
|
+
}) : (console.warn(`[JsonSchemaForm] No renderer for schema at "${n ?? "root"}" (${oZ(i)}). Field is omitted.`), null);
|
|
31984
32018
|
}
|
|
31985
|
-
function
|
|
32019
|
+
function aZ(e) {
|
|
31986
32020
|
return Array.isArray(e) ? e.find((e) => e !== "null") ?? e[0] : e;
|
|
31987
32021
|
}
|
|
31988
|
-
function
|
|
32022
|
+
function oZ(e) {
|
|
31989
32023
|
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";
|
|
31990
32024
|
}
|
|
31991
32025
|
//#endregion
|
|
31992
32026
|
//#region src/composed/JsonSchemaForm/schema/preprocess/liftRequired.ts
|
|
31993
|
-
function
|
|
31994
|
-
return
|
|
32027
|
+
function sZ(e) {
|
|
32028
|
+
return cZ(e);
|
|
31995
32029
|
}
|
|
31996
|
-
function
|
|
32030
|
+
function cZ(e) {
|
|
31997
32031
|
let t = { ...e };
|
|
31998
32032
|
if (t.properties) {
|
|
31999
32033
|
let e = new Set(t.required ?? []), n = {};
|
|
32000
32034
|
for (let [r, i] of Object.entries(t.properties)) {
|
|
32001
|
-
let t =
|
|
32035
|
+
let t = cZ(i);
|
|
32002
32036
|
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;
|
|
32003
32037
|
}
|
|
32004
32038
|
t.properties = n;
|
|
32005
32039
|
}
|
|
32006
|
-
return t.items &&= Array.isArray(t.items) ? t.items.map(
|
|
32040
|
+
return t.items &&= Array.isArray(t.items) ? t.items.map(cZ) : cZ(t.items), t.oneOf &&= t.oneOf.map(cZ), t.anyOf &&= t.anyOf.map(cZ), t.allOf &&= t.allOf.map(cZ), t.dependencies &&= iX(t.dependencies, cZ), t;
|
|
32007
32041
|
}
|
|
32008
32042
|
//#endregion
|
|
32009
32043
|
//#region src/composed/JsonSchemaForm/schema/preprocess/relaxDeprecated.ts
|
|
32010
|
-
function
|
|
32044
|
+
function lZ(e) {
|
|
32011
32045
|
if (e.deprecated === !0) return { deprecated: !0 };
|
|
32012
32046
|
let t = { ...e };
|
|
32013
32047
|
if (e.properties) {
|
|
32014
32048
|
let n = [];
|
|
32015
32049
|
t.properties = {};
|
|
32016
|
-
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] =
|
|
32050
|
+
for (let [r, i] of Object.entries(e.properties)) i.deprecated === !0 && n.push(r), t.properties[r] = lZ(i);
|
|
32017
32051
|
n.length > 0 && e.required && (t.required = e.required.filter((e) => !n.includes(e)));
|
|
32018
32052
|
}
|
|
32019
|
-
return e.items && !Array.isArray(e.items) && (t.items =
|
|
32053
|
+
return e.items && !Array.isArray(e.items) && (t.items = lZ(e.items)), e.oneOf && (t.oneOf = e.oneOf.filter((e) => e.deprecated !== !0).map(lZ)), e.anyOf && (t.anyOf = e.anyOf.filter((e) => e.deprecated !== !0).map(lZ)), e.dependencies && (t.dependencies = iX(e.dependencies, lZ)), t;
|
|
32020
32054
|
}
|
|
32021
32055
|
//#endregion
|
|
32022
32056
|
//#region src/composed/JsonSchemaForm/schema/buildIndex.ts
|
|
32023
|
-
function
|
|
32024
|
-
let n =
|
|
32057
|
+
function uZ(e, t = "") {
|
|
32058
|
+
let n = sZ(lZ(aX(fX(e)))), r = /* @__PURE__ */ new Map();
|
|
32025
32059
|
return {
|
|
32026
|
-
root:
|
|
32060
|
+
root: dZ(n, "", !1, r, "", t),
|
|
32027
32061
|
nodeByPath: r,
|
|
32028
32062
|
variantIndices: /* @__PURE__ */ new Map()
|
|
32029
32063
|
};
|
|
32030
32064
|
}
|
|
32031
|
-
function
|
|
32065
|
+
function dZ(e, t, n, r, i = "", a = "") {
|
|
32032
32066
|
let o = {
|
|
32033
32067
|
rhfPath: t,
|
|
32034
32068
|
schema: e,
|
|
32035
32069
|
isRequired: n
|
|
32036
32070
|
};
|
|
32037
|
-
if (e.gioConfig?.displayIf && (o.displayIf =
|
|
32071
|
+
if (e.gioConfig?.displayIf && (o.displayIf = gZ(e.gioConfig.displayIf, i, a)), e.gioConfig?.disableIf && (o.disableIf = gZ(e.gioConfig.disableIf, i, a)), e.properties) {
|
|
32038
32072
|
let n = new Set(e.required ?? []), i = /* @__PURE__ */ new Map();
|
|
32039
32073
|
for (let [o, s] of Object.entries(e.properties)) {
|
|
32040
32074
|
let e = t ? `${t}.${o}` : o;
|
|
32041
|
-
i.set(o,
|
|
32075
|
+
i.set(o, dZ(s, e, n.has(o), r, t, a));
|
|
32042
32076
|
}
|
|
32043
32077
|
o.properties = i;
|
|
32044
32078
|
}
|
|
32045
32079
|
if (e.items && !Array.isArray(e.items)) {
|
|
32046
32080
|
let n = t ? `${t}.*` : "*";
|
|
32047
|
-
o.items =
|
|
32081
|
+
o.items = dZ(e.items, n, !1, r, t, a);
|
|
32048
32082
|
}
|
|
32049
32083
|
let s = e.oneOf ?? e.anyOf;
|
|
32050
|
-
if (Array.isArray(s) && s.length > 0 && (o.variants =
|
|
32051
|
-
let n =
|
|
32084
|
+
if (Array.isArray(s) && s.length > 0 && (o.variants = fZ(s).map((e) => pZ(e, t, a))), e.dependencies) {
|
|
32085
|
+
let n = vZ(e.dependencies, t, a);
|
|
32052
32086
|
n.length > 0 && (o.dependencyBranches = n);
|
|
32053
32087
|
}
|
|
32054
32088
|
return r.set(t, o), o;
|
|
32055
32089
|
}
|
|
32056
|
-
function
|
|
32090
|
+
function fZ(e) {
|
|
32057
32091
|
let t = /* @__PURE__ */ new Set();
|
|
32058
32092
|
return e.filter((e) => typeof e.title == "string" ? t.has(e.title) ? !1 : (t.add(e.title), !0) : !0);
|
|
32059
32093
|
}
|
|
32060
|
-
function
|
|
32094
|
+
function pZ(e, t, n) {
|
|
32061
32095
|
let r = new Set(e.required ?? []), i = /* @__PURE__ */ new Map(), a = [];
|
|
32062
32096
|
for (let [o, s] of Object.entries(e.properties ?? {})) {
|
|
32063
|
-
let e =
|
|
32097
|
+
let e = mZ(s);
|
|
32064
32098
|
e && a.push({
|
|
32065
32099
|
key: o,
|
|
32066
32100
|
value: e.value
|
|
32067
32101
|
});
|
|
32068
32102
|
let c = t ? `${t}.${o}` : o;
|
|
32069
|
-
i.set(o,
|
|
32103
|
+
i.set(o, hZ(s, c, r.has(o), t, n));
|
|
32070
32104
|
}
|
|
32071
32105
|
let o;
|
|
32072
32106
|
if (e.dependencies) {
|
|
32073
|
-
let r =
|
|
32107
|
+
let r = vZ(e.dependencies, t, n);
|
|
32074
32108
|
r.length > 0 && (o = r);
|
|
32075
32109
|
}
|
|
32076
32110
|
return {
|
|
@@ -32081,17 +32115,17 @@ function uZ(e, t, n) {
|
|
|
32081
32115
|
raw: e
|
|
32082
32116
|
};
|
|
32083
32117
|
}
|
|
32084
|
-
function
|
|
32118
|
+
function mZ(e) {
|
|
32085
32119
|
if (e.const !== void 0) return { value: e.const };
|
|
32086
32120
|
if (Array.isArray(e.enum) && e.enum.length === 1) return { value: e.enum[0] };
|
|
32087
32121
|
}
|
|
32088
|
-
function
|
|
32089
|
-
return
|
|
32122
|
+
function hZ(e, t, n, r, i) {
|
|
32123
|
+
return dZ(e, t, n, /* @__PURE__ */ new Map(), r, i);
|
|
32090
32124
|
}
|
|
32091
|
-
function
|
|
32125
|
+
function gZ(e, t, n) {
|
|
32092
32126
|
let r = /* @__PURE__ */ new Map();
|
|
32093
32127
|
for (let [i, a] of Object.entries(e.$eq)) {
|
|
32094
|
-
let e =
|
|
32128
|
+
let e = _Z(i, t, n);
|
|
32095
32129
|
if (e === null) {
|
|
32096
32130
|
console.warn(`[JsonSchemaForm] gioConfig path "${i}" is unsupported (expected value.X / ./X / ../X).`);
|
|
32097
32131
|
continue;
|
|
@@ -32100,7 +32134,7 @@ function pZ(e, t, n) {
|
|
|
32100
32134
|
}
|
|
32101
32135
|
return { $eq: r };
|
|
32102
32136
|
}
|
|
32103
|
-
function
|
|
32137
|
+
function _Z(e, t, n) {
|
|
32104
32138
|
let r = null;
|
|
32105
32139
|
if (e.startsWith("value.")) r = e.slice(6);
|
|
32106
32140
|
else if (e.startsWith("./")) {
|
|
@@ -32114,24 +32148,24 @@ function mZ(e, t, n) {
|
|
|
32114
32148
|
}
|
|
32115
32149
|
return r === null ? null : n ? `${n}.${r}` : r;
|
|
32116
32150
|
}
|
|
32117
|
-
function
|
|
32151
|
+
function vZ(e, t, n) {
|
|
32118
32152
|
return Object.entries(e).flatMap(([e, r]) => {
|
|
32119
|
-
let i =
|
|
32153
|
+
let i = yZ(e, r);
|
|
32120
32154
|
if (!i) return [];
|
|
32121
32155
|
let a = t ? `${t}.${e}` : e;
|
|
32122
|
-
return i.map((r) =>
|
|
32156
|
+
return i.map((r) => bZ(r, e, a, t, n));
|
|
32123
32157
|
});
|
|
32124
32158
|
}
|
|
32125
|
-
function
|
|
32159
|
+
function yZ(e, t) {
|
|
32126
32160
|
let n = typeof t == "object" && t && !Array.isArray(t) ? t : null;
|
|
32127
|
-
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 &&
|
|
32161
|
+
return n?.oneOf?.length ? n.oneOf.every((t) => t.properties?.[e] !== void 0 && mZ(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);
|
|
32128
32162
|
}
|
|
32129
|
-
function
|
|
32130
|
-
let a =
|
|
32163
|
+
function bZ(e, t, n, r, i) {
|
|
32164
|
+
let a = mZ(e.properties[t]).value, o = new Set((e.required ?? []).filter((e) => e !== t)), s = /* @__PURE__ */ new Map();
|
|
32131
32165
|
for (let [n, a] of Object.entries(e.properties ?? {})) {
|
|
32132
32166
|
if (n === t) continue;
|
|
32133
32167
|
let e = r ? `${r}.${n}` : n;
|
|
32134
|
-
s.set(n,
|
|
32168
|
+
s.set(n, hZ(a, e, o.has(n), r, i));
|
|
32135
32169
|
}
|
|
32136
32170
|
let c = i ? `${i}.${n}` : n;
|
|
32137
32171
|
return {
|
|
@@ -32142,10 +32176,10 @@ function _Z(e, t, n, r, i) {
|
|
|
32142
32176
|
}
|
|
32143
32177
|
//#endregion
|
|
32144
32178
|
//#region src/composed/JsonSchemaForm/JsonSchemaForm.tsx
|
|
32145
|
-
function
|
|
32179
|
+
function xZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i }) {
|
|
32146
32180
|
let a = B(() => {
|
|
32147
32181
|
try {
|
|
32148
|
-
let a =
|
|
32182
|
+
let a = uZ(e, n);
|
|
32149
32183
|
return {
|
|
32150
32184
|
ok: !0,
|
|
32151
32185
|
contextValue: {
|
|
@@ -32170,9 +32204,9 @@ function vZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
32170
32204
|
r,
|
|
32171
32205
|
i
|
|
32172
32206
|
]);
|
|
32173
|
-
return a.ok ? /* @__PURE__ */ H(
|
|
32207
|
+
return a.ok ? /* @__PURE__ */ H(ZY.Provider, {
|
|
32174
32208
|
value: a.contextValue,
|
|
32175
|
-
children: /* @__PURE__ */ H(
|
|
32209
|
+
children: /* @__PURE__ */ H(rZ, { node: a.root })
|
|
32176
32210
|
}) : /* @__PURE__ */ U("p", {
|
|
32177
32211
|
role: "alert",
|
|
32178
32212
|
className: "text-sm text-destructive",
|
|
@@ -32181,7 +32215,7 @@ function vZ({ schema: e, control: t, name: n = "", disabled: r = !1, context: i
|
|
|
32181
32215
|
}
|
|
32182
32216
|
//#endregion
|
|
32183
32217
|
//#region src/composed/JsonSchemaForm/form-bindings/composeResolvers.ts
|
|
32184
|
-
function
|
|
32218
|
+
function SZ(...e) {
|
|
32185
32219
|
return async (t, n, r) => {
|
|
32186
32220
|
let i = await Promise.all(e.map((e) => e(t, n, r))), a = {};
|
|
32187
32221
|
for (let e of i) Object.assign(a, e.errors);
|
|
@@ -32196,7 +32230,7 @@ function yZ(...e) {
|
|
|
32196
32230
|
}
|
|
32197
32231
|
//#endregion
|
|
32198
32232
|
//#region ../../node_modules/ajv/dist/compile/codegen/code.js
|
|
32199
|
-
var
|
|
32233
|
+
var CZ = /* @__PURE__ */ W(((e) => {
|
|
32200
32234
|
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;
|
|
32201
32235
|
var t = class {};
|
|
32202
32236
|
e._CodeOrName = t, e.IDENTIFIER = /^[a-z$_][a-z$_0-9]*$/i;
|
|
@@ -32301,9 +32335,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
32301
32335
|
return new r(e.toString());
|
|
32302
32336
|
}
|
|
32303
32337
|
e.regexpCode = g;
|
|
32304
|
-
})),
|
|
32338
|
+
})), wZ = /* @__PURE__ */ W(((e) => {
|
|
32305
32339
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.ValueScope = e.ValueScopeName = e.Scope = e.varKinds = e.UsedValueState = void 0;
|
|
32306
|
-
var t =
|
|
32340
|
+
var t = CZ(), n = class extends Error {
|
|
32307
32341
|
constructor(e) {
|
|
32308
32342
|
super(`CodeGen: "code" for ${e} not defined`), this.value = e.value;
|
|
32309
32343
|
}
|
|
@@ -32412,9 +32446,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
32412
32446
|
return c;
|
|
32413
32447
|
}
|
|
32414
32448
|
};
|
|
32415
|
-
})),
|
|
32449
|
+
})), TZ = /* @__PURE__ */ W(((e) => {
|
|
32416
32450
|
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;
|
|
32417
|
-
var t =
|
|
32451
|
+
var t = CZ(), n = wZ(), r = CZ();
|
|
32418
32452
|
Object.defineProperty(e, "_", {
|
|
32419
32453
|
enumerable: !0,
|
|
32420
32454
|
get: function() {
|
|
@@ -32456,7 +32490,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
32456
32490
|
return r.Name;
|
|
32457
32491
|
}
|
|
32458
32492
|
});
|
|
32459
|
-
var i =
|
|
32493
|
+
var i = wZ();
|
|
32460
32494
|
Object.defineProperty(e, "Scope", {
|
|
32461
32495
|
enumerable: !0,
|
|
32462
32496
|
get: function() {
|
|
@@ -32927,9 +32961,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
32927
32961
|
function L(e) {
|
|
32928
32962
|
return e instanceof t.Name ? e : (0, t._)`(${e})`;
|
|
32929
32963
|
}
|
|
32930
|
-
})),
|
|
32964
|
+
})), EZ = /* @__PURE__ */ W(((e) => {
|
|
32931
32965
|
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;
|
|
32932
|
-
var t =
|
|
32966
|
+
var t = TZ(), n = CZ();
|
|
32933
32967
|
function r(e) {
|
|
32934
32968
|
let t = {};
|
|
32935
32969
|
for (let n of e) t[n] = !0;
|
|
@@ -33052,9 +33086,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33052
33086
|
}
|
|
33053
33087
|
}
|
|
33054
33088
|
e.checkStrictMode = x;
|
|
33055
|
-
})),
|
|
33089
|
+
})), DZ = /* @__PURE__ */ W(((e) => {
|
|
33056
33090
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
33057
|
-
var t =
|
|
33091
|
+
var t = TZ();
|
|
33058
33092
|
e.default = {
|
|
33059
33093
|
data: new t.Name("data"),
|
|
33060
33094
|
valCxt: new t.Name("valCxt"),
|
|
@@ -33073,9 +33107,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33073
33107
|
jsonLen: new t.Name("jsonLen"),
|
|
33074
33108
|
jsonPart: new t.Name("jsonPart")
|
|
33075
33109
|
};
|
|
33076
|
-
})),
|
|
33110
|
+
})), OZ = /* @__PURE__ */ W(((e) => {
|
|
33077
33111
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendErrors = e.resetErrorsCount = e.reportExtraError = e.reportError = e.keyword$DataError = e.keywordError = void 0;
|
|
33078
|
-
var t =
|
|
33112
|
+
var t = TZ(), n = EZ(), r = DZ();
|
|
33079
33113
|
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)` };
|
|
33080
33114
|
function i(n, r = e.keywordError, i, a) {
|
|
33081
33115
|
let { it: o } = n, { gen: s, compositeRule: u, allErrors: f } = o, p = d(n, r, i);
|
|
@@ -33137,9 +33171,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33137
33171
|
let { keyword: o, data: s, schemaValue: c, it: l } = e, { opts: d, propertyName: f, topSchemaRef: p, schemaPath: m } = l;
|
|
33138
33172
|
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]);
|
|
33139
33173
|
}
|
|
33140
|
-
})),
|
|
33174
|
+
})), kZ = /* @__PURE__ */ W(((e) => {
|
|
33141
33175
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.boolOrEmptySchema = e.topBoolOrEmptySchema = void 0;
|
|
33142
|
-
var t =
|
|
33176
|
+
var t = OZ(), n = TZ(), r = DZ(), i = { message: "boolean schema is false" };
|
|
33143
33177
|
function a(e) {
|
|
33144
33178
|
let { gen: t, schema: i, validateName: a } = e;
|
|
33145
33179
|
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));
|
|
@@ -33163,7 +33197,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33163
33197
|
};
|
|
33164
33198
|
(0, t.reportError)(o, i, void 0, n);
|
|
33165
33199
|
}
|
|
33166
|
-
})),
|
|
33200
|
+
})), AZ = /* @__PURE__ */ W(((e) => {
|
|
33167
33201
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getRules = e.isJSONType = void 0;
|
|
33168
33202
|
var t = new Set([
|
|
33169
33203
|
"string",
|
|
@@ -33217,7 +33251,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33217
33251
|
};
|
|
33218
33252
|
}
|
|
33219
33253
|
e.getRules = r;
|
|
33220
|
-
})),
|
|
33254
|
+
})), jZ = /* @__PURE__ */ W(((e) => {
|
|
33221
33255
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.shouldUseRule = e.shouldUseGroup = e.schemaHasRulesForType = void 0;
|
|
33222
33256
|
function t({ schema: e, self: t }, r) {
|
|
33223
33257
|
let i = t.RULES.types[r];
|
|
@@ -33232,9 +33266,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33232
33266
|
return e[t.keyword] !== void 0 || t.definition.implements?.some((t) => e[t] !== void 0);
|
|
33233
33267
|
}
|
|
33234
33268
|
e.shouldUseRule = r;
|
|
33235
|
-
})),
|
|
33269
|
+
})), MZ = /* @__PURE__ */ W(((e) => {
|
|
33236
33270
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.reportTypeError = e.checkDataTypes = e.checkDataType = e.coerceAndCheckDataType = e.getJSONTypes = e.getSchemaTypes = e.DataType = void 0;
|
|
33237
|
-
var t =
|
|
33271
|
+
var t = AZ(), n = jZ(), r = OZ(), i = TZ(), a = EZ(), o;
|
|
33238
33272
|
(function(e) {
|
|
33239
33273
|
e[e.Correct = 0] = "Correct", e[e.Wrong = 1] = "Wrong";
|
|
33240
33274
|
})(o || (e.DataType = o = {}));
|
|
@@ -33369,9 +33403,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33369
33403
|
it: e
|
|
33370
33404
|
};
|
|
33371
33405
|
}
|
|
33372
|
-
})),
|
|
33406
|
+
})), NZ = /* @__PURE__ */ W(((e) => {
|
|
33373
33407
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.assignDefaults = void 0;
|
|
33374
|
-
var t =
|
|
33408
|
+
var t = TZ(), n = EZ();
|
|
33375
33409
|
function r(e, t) {
|
|
33376
33410
|
let { properties: n, items: r } = e.schema;
|
|
33377
33411
|
if (t === "object" && n) for (let t in n) i(e, t, n[t].default);
|
|
@@ -33389,9 +33423,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33389
33423
|
let u = (0, t._)`${l} === undefined`;
|
|
33390
33424
|
c.useDefaults === "empty" && (u = (0, t._)`${u} || ${l} === null || ${l} === ""`), a.if(u, (0, t._)`${l} = ${(0, t.stringify)(i)}`);
|
|
33391
33425
|
}
|
|
33392
|
-
})),
|
|
33426
|
+
})), PZ = /* @__PURE__ */ W(((e) => {
|
|
33393
33427
|
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;
|
|
33394
|
-
var t =
|
|
33428
|
+
var t = TZ(), n = EZ(), r = DZ(), i = EZ();
|
|
33395
33429
|
function a(e, n) {
|
|
33396
33430
|
let { gen: r, data: i, it: a } = e;
|
|
33397
33431
|
r.if(d(r, i, n, a.opts.ownProperties), () => {
|
|
@@ -33493,9 +33527,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33493
33527
|
})), e.result(s, () => e.reset(), () => e.error(!0));
|
|
33494
33528
|
}
|
|
33495
33529
|
e.validateUnion = v;
|
|
33496
|
-
})),
|
|
33530
|
+
})), FZ = /* @__PURE__ */ W(((e) => {
|
|
33497
33531
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateKeywordUsage = e.validSchemaType = e.funcKeywordCode = e.macroKeywordCode = void 0;
|
|
33498
|
-
var t =
|
|
33532
|
+
var t = TZ(), n = DZ(), r = PZ(), i = OZ();
|
|
33499
33533
|
function a(e, n) {
|
|
33500
33534
|
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);
|
|
33501
33535
|
s.opts.validateSchema !== !1 && s.self.validateSchema(c, !0);
|
|
@@ -33574,9 +33608,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33574
33608
|
}
|
|
33575
33609
|
}
|
|
33576
33610
|
e.validateKeywordUsage = f;
|
|
33577
|
-
})),
|
|
33611
|
+
})), IZ = /* @__PURE__ */ W(((e) => {
|
|
33578
33612
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.extendSubschemaMode = e.extendSubschemaData = e.getSubschema = void 0;
|
|
33579
|
-
var t =
|
|
33613
|
+
var t = TZ(), n = EZ();
|
|
33580
33614
|
function r(e, { keyword: r, schemaProp: i, schema: a, schemaPath: o, errSchemaPath: s, topSchemaRef: c }) {
|
|
33581
33615
|
if (r !== void 0 && a !== void 0) throw Error("both \"keyword\" and \"schema\" passed, only one allowed");
|
|
33582
33616
|
if (r !== void 0) {
|
|
@@ -33620,7 +33654,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33620
33654
|
r !== void 0 && (e.compositeRule = r), i !== void 0 && (e.createErrors = i), a !== void 0 && (e.allErrors = a), e.jtdDiscriminator = t, e.jtdMetadata = n;
|
|
33621
33655
|
}
|
|
33622
33656
|
e.extendSubschemaMode = a;
|
|
33623
|
-
})),
|
|
33657
|
+
})), LZ = /* @__PURE__ */ W(((e, t) => {
|
|
33624
33658
|
t.exports = function e(t, n) {
|
|
33625
33659
|
if (t === n) return !0;
|
|
33626
33660
|
if (t && n && typeof t == "object" && typeof n == "object") {
|
|
@@ -33644,7 +33678,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33644
33678
|
}
|
|
33645
33679
|
return t !== t && n !== n;
|
|
33646
33680
|
};
|
|
33647
|
-
})),
|
|
33681
|
+
})), RZ = /* @__PURE__ */ W(((e, t) => {
|
|
33648
33682
|
var n = t.exports = function(e, t, n) {
|
|
33649
33683
|
typeof t == "function" && (n = t, t = {}), n = t.cb || n;
|
|
33650
33684
|
var i = typeof n == "function" ? n : n.pre || function() {}, a = n.post || function() {};
|
|
@@ -33707,9 +33741,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33707
33741
|
function i(e) {
|
|
33708
33742
|
return e.replace(/~/g, "~0").replace(/\//g, "~1");
|
|
33709
33743
|
}
|
|
33710
|
-
})),
|
|
33744
|
+
})), zZ = /* @__PURE__ */ W(((e) => {
|
|
33711
33745
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getSchemaRefs = e.resolveUrl = e.normalizeId = e._getFullPath = e.getFullPath = e.inlineRef = void 0;
|
|
33712
|
-
var t =
|
|
33746
|
+
var t = EZ(), n = LZ(), r = RZ(), i = new Set([
|
|
33713
33747
|
"type",
|
|
33714
33748
|
"format",
|
|
33715
33749
|
"pattern",
|
|
@@ -33798,9 +33832,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
33798
33832
|
}
|
|
33799
33833
|
}
|
|
33800
33834
|
e.getSchemaRefs = h;
|
|
33801
|
-
})),
|
|
33835
|
+
})), BZ = /* @__PURE__ */ W(((e) => {
|
|
33802
33836
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.getData = e.KeywordCxt = e.validateFunctionCode = void 0;
|
|
33803
|
-
var t =
|
|
33837
|
+
var t = kZ(), n = MZ(), r = jZ(), i = MZ(), a = NZ(), o = FZ(), s = IZ(), c = TZ(), l = DZ(), u = zZ(), d = EZ(), f = OZ();
|
|
33804
33838
|
function p(e) {
|
|
33805
33839
|
if (S(e) && (w(e), x(e))) {
|
|
33806
33840
|
_(e);
|
|
@@ -34090,23 +34124,23 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
34090
34124
|
}
|
|
34091
34125
|
}
|
|
34092
34126
|
e.getData = ae;
|
|
34093
|
-
})),
|
|
34127
|
+
})), VZ = /* @__PURE__ */ W(((e) => {
|
|
34094
34128
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = class extends Error {
|
|
34095
34129
|
constructor(e) {
|
|
34096
34130
|
super("validation failed"), this.errors = e, this.ajv = this.validation = !0;
|
|
34097
34131
|
}
|
|
34098
34132
|
};
|
|
34099
|
-
})),
|
|
34133
|
+
})), HZ = /* @__PURE__ */ W(((e) => {
|
|
34100
34134
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34101
|
-
var t =
|
|
34135
|
+
var t = zZ();
|
|
34102
34136
|
e.default = class extends Error {
|
|
34103
34137
|
constructor(e, n, r, i) {
|
|
34104
34138
|
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));
|
|
34105
34139
|
}
|
|
34106
34140
|
};
|
|
34107
|
-
})),
|
|
34141
|
+
})), UZ = /* @__PURE__ */ W(((e) => {
|
|
34108
34142
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.resolveSchema = e.getCompilingSchema = e.resolveRef = e.compileSchema = e.SchemaEnv = void 0;
|
|
34109
|
-
var t =
|
|
34143
|
+
var t = TZ(), n = VZ(), r = DZ(), i = zZ(), a = EZ(), o = BZ(), s = class {
|
|
34110
34144
|
constructor(e) {
|
|
34111
34145
|
this.refs = {}, this.dynamicAnchors = {};
|
|
34112
34146
|
let t;
|
|
@@ -34265,27 +34299,27 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
34265
34299
|
baseId: t
|
|
34266
34300
|
}), o.schema !== o.root.schema) return o;
|
|
34267
34301
|
}
|
|
34268
|
-
})),
|
|
34269
|
-
$id: () =>
|
|
34302
|
+
})), WZ = /* @__PURE__ */ xe({
|
|
34303
|
+
$id: () => GZ,
|
|
34270
34304
|
additionalProperties: () => !1,
|
|
34271
|
-
default: () =>
|
|
34272
|
-
description: () =>
|
|
34273
|
-
properties: () =>
|
|
34274
|
-
required: () =>
|
|
34275
|
-
type: () =>
|
|
34276
|
-
}),
|
|
34277
|
-
|
|
34305
|
+
default: () => XZ,
|
|
34306
|
+
description: () => KZ,
|
|
34307
|
+
properties: () => YZ,
|
|
34308
|
+
required: () => JZ,
|
|
34309
|
+
type: () => qZ
|
|
34310
|
+
}), GZ, KZ, qZ, JZ, YZ, XZ, ZZ = be((() => {
|
|
34311
|
+
GZ = "https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#", KZ = "Meta-schema for $data reference (JSON AnySchema extension proposal)", qZ = "object", JZ = ["$data"], YZ = { $data: {
|
|
34278
34312
|
type: "string",
|
|
34279
34313
|
anyOf: [{ format: "relative-json-pointer" }, { format: "json-pointer" }]
|
|
34280
|
-
} },
|
|
34281
|
-
$id:
|
|
34282
|
-
description:
|
|
34283
|
-
type:
|
|
34284
|
-
required:
|
|
34285
|
-
properties:
|
|
34314
|
+
} }, XZ = {
|
|
34315
|
+
$id: GZ,
|
|
34316
|
+
description: KZ,
|
|
34317
|
+
type: qZ,
|
|
34318
|
+
required: JZ,
|
|
34319
|
+
properties: YZ,
|
|
34286
34320
|
additionalProperties: !1
|
|
34287
34321
|
};
|
|
34288
|
-
})),
|
|
34322
|
+
})), QZ = /* @__PURE__ */ W(((e, t) => {
|
|
34289
34323
|
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);
|
|
34290
34324
|
function s(e) {
|
|
34291
34325
|
let t = "", n = 0, r = 0;
|
|
@@ -34497,8 +34531,8 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
34497
34531
|
normalizeIPv6: f,
|
|
34498
34532
|
stringArrayToHexStripped: s
|
|
34499
34533
|
};
|
|
34500
|
-
})),
|
|
34501
|
-
var { isUUID: n } =
|
|
34534
|
+
})), $Z = /* @__PURE__ */ W(((e, t) => {
|
|
34535
|
+
var { isUUID: n } = QZ(), r = /([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu, i = [
|
|
34502
34536
|
"http",
|
|
34503
34537
|
"https",
|
|
34504
34538
|
"ws",
|
|
@@ -34603,8 +34637,8 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
34603
34637
|
isValidSchemeName: a,
|
|
34604
34638
|
getSchemeHandler: y
|
|
34605
34639
|
};
|
|
34606
|
-
})),
|
|
34607
|
-
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } =
|
|
34640
|
+
})), eQ = /* @__PURE__ */ W(((e, t) => {
|
|
34641
|
+
var { normalizeIPv6: n, removeDotSegments: r, recomposeAuthority: i, normalizePercentEncoding: a, normalizePathEncoding: o, escapePreservingEscapes: s, reescapeHostDelimiters: c, isIPv4: l, nonSimpleDomain: u } = QZ(), { SCHEMES: d, getSchemeHandler: f } = $Z();
|
|
34608
34642
|
function p(e, t) {
|
|
34609
34643
|
return typeof e == "string" ? e = S(e, t) : typeof e == "object" && (e = x(_(e, t), t)), e;
|
|
34610
34644
|
}
|
|
@@ -34718,20 +34752,20 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
34718
34752
|
parse: x
|
|
34719
34753
|
};
|
|
34720
34754
|
t.exports = T, t.exports.default = T, t.exports.fastUri = T;
|
|
34721
|
-
})),
|
|
34755
|
+
})), tQ = /* @__PURE__ */ W(((e) => {
|
|
34722
34756
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
34723
|
-
var t =
|
|
34757
|
+
var t = eQ();
|
|
34724
34758
|
t.code = "require(\"ajv/dist/runtime/uri\").default", e.default = t;
|
|
34725
|
-
})),
|
|
34759
|
+
})), nQ = /* @__PURE__ */ W(((e) => {
|
|
34726
34760
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.CodeGen = e.Name = e.nil = e.stringify = e.str = e._ = e.KeywordCxt = void 0;
|
|
34727
|
-
var t =
|
|
34761
|
+
var t = BZ();
|
|
34728
34762
|
Object.defineProperty(e, "KeywordCxt", {
|
|
34729
34763
|
enumerable: !0,
|
|
34730
34764
|
get: function() {
|
|
34731
34765
|
return t.KeywordCxt;
|
|
34732
34766
|
}
|
|
34733
34767
|
});
|
|
34734
|
-
var n =
|
|
34768
|
+
var n = TZ();
|
|
34735
34769
|
Object.defineProperty(e, "_", {
|
|
34736
34770
|
enumerable: !0,
|
|
34737
34771
|
get: function() {
|
|
@@ -34763,7 +34797,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
34763
34797
|
return n.CodeGen;
|
|
34764
34798
|
}
|
|
34765
34799
|
});
|
|
34766
|
-
var r =
|
|
34800
|
+
var r = VZ(), i = HZ(), a = AZ(), o = UZ(), s = TZ(), c = zZ(), l = MZ(), u = EZ(), d = (ZZ(), we(WZ).default), f = tQ(), p = (e, t) => new RegExp(e, t);
|
|
34767
34801
|
p.code = "new RegExp";
|
|
34768
34802
|
var m = [
|
|
34769
34803
|
"removeAdditional",
|
|
@@ -35149,16 +35183,16 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35149
35183
|
function F(e) {
|
|
35150
35184
|
return { anyOf: [e, P] };
|
|
35151
35185
|
}
|
|
35152
|
-
})),
|
|
35186
|
+
})), rQ = /* @__PURE__ */ W(((e) => {
|
|
35153
35187
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35154
35188
|
keyword: "id",
|
|
35155
35189
|
code() {
|
|
35156
35190
|
throw Error("NOT SUPPORTED: keyword \"id\", use \"$id\" for schema ID");
|
|
35157
35191
|
}
|
|
35158
35192
|
};
|
|
35159
|
-
})),
|
|
35193
|
+
})), iQ = /* @__PURE__ */ W(((e) => {
|
|
35160
35194
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.callRef = e.getValidate = void 0;
|
|
35161
|
-
var t =
|
|
35195
|
+
var t = HZ(), n = PZ(), r = TZ(), i = DZ(), a = UZ(), o = EZ(), s = {
|
|
35162
35196
|
keyword: "$ref",
|
|
35163
35197
|
schemaType: "string",
|
|
35164
35198
|
code(e) {
|
|
@@ -35231,9 +35265,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35231
35265
|
}
|
|
35232
35266
|
}
|
|
35233
35267
|
e.callRef = l, e.default = s;
|
|
35234
|
-
})),
|
|
35268
|
+
})), aQ = /* @__PURE__ */ W(((e) => {
|
|
35235
35269
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35236
|
-
var t =
|
|
35270
|
+
var t = rQ(), n = iQ();
|
|
35237
35271
|
e.default = [
|
|
35238
35272
|
"$schema",
|
|
35239
35273
|
"$id",
|
|
@@ -35244,9 +35278,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35244
35278
|
t.default,
|
|
35245
35279
|
n.default
|
|
35246
35280
|
];
|
|
35247
|
-
})),
|
|
35281
|
+
})), oQ = /* @__PURE__ */ W(((e) => {
|
|
35248
35282
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35249
|
-
var t =
|
|
35283
|
+
var t = TZ(), n = t.operators, r = {
|
|
35250
35284
|
maximum: {
|
|
35251
35285
|
okStr: "<=",
|
|
35252
35286
|
ok: n.LTE,
|
|
@@ -35282,9 +35316,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35282
35316
|
e.fail$data((0, t._)`${i} ${r[n].fail} ${a} || isNaN(${i})`);
|
|
35283
35317
|
}
|
|
35284
35318
|
};
|
|
35285
|
-
})),
|
|
35319
|
+
})), sQ = /* @__PURE__ */ W(((e) => {
|
|
35286
35320
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35287
|
-
var t =
|
|
35321
|
+
var t = TZ();
|
|
35288
35322
|
e.default = {
|
|
35289
35323
|
keyword: "multipleOf",
|
|
35290
35324
|
type: "number",
|
|
@@ -35299,7 +35333,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35299
35333
|
e.fail$data((0, t._)`(${i} === 0 || (${s} = ${r}/${i}, ${c}))`);
|
|
35300
35334
|
}
|
|
35301
35335
|
};
|
|
35302
|
-
})),
|
|
35336
|
+
})), cQ = /* @__PURE__ */ W(((e) => {
|
|
35303
35337
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35304
35338
|
function t(e) {
|
|
35305
35339
|
let t = e.length, n = 0, r = 0, i;
|
|
@@ -35307,9 +35341,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35307
35341
|
return n;
|
|
35308
35342
|
}
|
|
35309
35343
|
e.default = t, t.code = "require(\"ajv/dist/runtime/ucs2length\").default";
|
|
35310
|
-
})),
|
|
35344
|
+
})), lQ = /* @__PURE__ */ W(((e) => {
|
|
35311
35345
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35312
|
-
var t =
|
|
35346
|
+
var t = TZ(), n = EZ(), r = cQ();
|
|
35313
35347
|
e.default = {
|
|
35314
35348
|
keyword: ["maxLength", "minLength"],
|
|
35315
35349
|
type: "string",
|
|
@@ -35327,9 +35361,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35327
35361
|
e.fail$data((0, t._)`${l} ${c} ${o}`);
|
|
35328
35362
|
}
|
|
35329
35363
|
};
|
|
35330
|
-
})),
|
|
35364
|
+
})), uQ = /* @__PURE__ */ W(((e) => {
|
|
35331
35365
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35332
|
-
var t =
|
|
35366
|
+
var t = PZ(), n = EZ(), r = TZ();
|
|
35333
35367
|
e.default = {
|
|
35334
35368
|
keyword: "pattern",
|
|
35335
35369
|
type: "string",
|
|
@@ -35350,9 +35384,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35350
35384
|
}
|
|
35351
35385
|
}
|
|
35352
35386
|
};
|
|
35353
|
-
})),
|
|
35387
|
+
})), dQ = /* @__PURE__ */ W(((e) => {
|
|
35354
35388
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35355
|
-
var t =
|
|
35389
|
+
var t = TZ();
|
|
35356
35390
|
e.default = {
|
|
35357
35391
|
keyword: ["maxProperties", "minProperties"],
|
|
35358
35392
|
type: "object",
|
|
@@ -35370,9 +35404,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35370
35404
|
e.fail$data((0, t._)`Object.keys(${r}).length ${a} ${i}`);
|
|
35371
35405
|
}
|
|
35372
35406
|
};
|
|
35373
|
-
})),
|
|
35407
|
+
})), fQ = /* @__PURE__ */ W(((e) => {
|
|
35374
35408
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35375
|
-
var t =
|
|
35409
|
+
var t = PZ(), n = TZ(), r = EZ();
|
|
35376
35410
|
e.default = {
|
|
35377
35411
|
keyword: "required",
|
|
35378
35412
|
type: "object",
|
|
@@ -35418,9 +35452,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35418
35452
|
}
|
|
35419
35453
|
}
|
|
35420
35454
|
};
|
|
35421
|
-
})),
|
|
35455
|
+
})), pQ = /* @__PURE__ */ W(((e) => {
|
|
35422
35456
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35423
|
-
var t =
|
|
35457
|
+
var t = TZ();
|
|
35424
35458
|
e.default = {
|
|
35425
35459
|
keyword: ["maxItems", "minItems"],
|
|
35426
35460
|
type: "array",
|
|
@@ -35438,13 +35472,13 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35438
35472
|
e.fail$data((0, t._)`${r}.length ${a} ${i}`);
|
|
35439
35473
|
}
|
|
35440
35474
|
};
|
|
35441
|
-
})),
|
|
35475
|
+
})), mQ = /* @__PURE__ */ W(((e) => {
|
|
35442
35476
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35443
|
-
var t =
|
|
35477
|
+
var t = LZ();
|
|
35444
35478
|
t.code = "require(\"ajv/dist/runtime/equal\").default", e.default = t;
|
|
35445
|
-
})),
|
|
35479
|
+
})), hQ = /* @__PURE__ */ W(((e) => {
|
|
35446
35480
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35447
|
-
var t =
|
|
35481
|
+
var t = MZ(), n = TZ(), r = EZ(), i = mQ();
|
|
35448
35482
|
e.default = {
|
|
35449
35483
|
keyword: "uniqueItems",
|
|
35450
35484
|
type: "array",
|
|
@@ -35485,9 +35519,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35485
35519
|
}
|
|
35486
35520
|
}
|
|
35487
35521
|
};
|
|
35488
|
-
})),
|
|
35522
|
+
})), gQ = /* @__PURE__ */ W(((e) => {
|
|
35489
35523
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35490
|
-
var t =
|
|
35524
|
+
var t = TZ(), n = EZ(), r = mQ();
|
|
35491
35525
|
e.default = {
|
|
35492
35526
|
keyword: "const",
|
|
35493
35527
|
$data: !0,
|
|
@@ -35500,9 +35534,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35500
35534
|
o || c && typeof c == "object" ? e.fail$data((0, t._)`!${(0, n.useFunc)(i, r.default)}(${a}, ${s})`) : e.fail((0, t._)`${c} !== ${a}`);
|
|
35501
35535
|
}
|
|
35502
35536
|
};
|
|
35503
|
-
})),
|
|
35537
|
+
})), _Q = /* @__PURE__ */ W(((e) => {
|
|
35504
35538
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35505
|
-
var t =
|
|
35539
|
+
var t = TZ(), n = EZ(), r = mQ();
|
|
35506
35540
|
e.default = {
|
|
35507
35541
|
keyword: "enum",
|
|
35508
35542
|
schemaType: "array",
|
|
@@ -35532,9 +35566,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35532
35566
|
}
|
|
35533
35567
|
}
|
|
35534
35568
|
};
|
|
35535
|
-
})),
|
|
35569
|
+
})), vQ = /* @__PURE__ */ W(((e) => {
|
|
35536
35570
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35537
|
-
var t =
|
|
35571
|
+
var t = oQ(), n = sQ(), r = lQ(), i = uQ(), a = dQ(), o = fQ(), s = pQ(), c = hQ(), l = gQ(), u = _Q();
|
|
35538
35572
|
e.default = [
|
|
35539
35573
|
t.default,
|
|
35540
35574
|
n.default,
|
|
@@ -35555,9 +35589,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35555
35589
|
l.default,
|
|
35556
35590
|
u.default
|
|
35557
35591
|
];
|
|
35558
|
-
})),
|
|
35592
|
+
})), yQ = /* @__PURE__ */ W(((e) => {
|
|
35559
35593
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateAdditionalItems = void 0;
|
|
35560
|
-
var t =
|
|
35594
|
+
var t = TZ(), n = EZ(), r = {
|
|
35561
35595
|
keyword: "additionalItems",
|
|
35562
35596
|
type: "array",
|
|
35563
35597
|
schemaType: ["boolean", "object"],
|
|
@@ -35595,9 +35629,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35595
35629
|
}
|
|
35596
35630
|
}
|
|
35597
35631
|
e.validateAdditionalItems = i, e.default = r;
|
|
35598
|
-
})),
|
|
35632
|
+
})), bQ = /* @__PURE__ */ W(((e) => {
|
|
35599
35633
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateTuple = void 0;
|
|
35600
|
-
var t =
|
|
35634
|
+
var t = TZ(), n = EZ(), r = PZ(), i = {
|
|
35601
35635
|
keyword: "items",
|
|
35602
35636
|
type: "array",
|
|
35603
35637
|
schemaType: [
|
|
@@ -35632,9 +35666,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35632
35666
|
}
|
|
35633
35667
|
}
|
|
35634
35668
|
e.validateTuple = a, e.default = i;
|
|
35635
|
-
})),
|
|
35669
|
+
})), xQ = /* @__PURE__ */ W(((e) => {
|
|
35636
35670
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35637
|
-
var t =
|
|
35671
|
+
var t = bQ();
|
|
35638
35672
|
e.default = {
|
|
35639
35673
|
keyword: "prefixItems",
|
|
35640
35674
|
type: "array",
|
|
@@ -35642,9 +35676,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35642
35676
|
before: "uniqueItems",
|
|
35643
35677
|
code: (e) => (0, t.validateTuple)(e, "items")
|
|
35644
35678
|
};
|
|
35645
|
-
})),
|
|
35679
|
+
})), SQ = /* @__PURE__ */ W(((e) => {
|
|
35646
35680
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35647
|
-
var t =
|
|
35681
|
+
var t = TZ(), n = EZ(), r = PZ(), i = yQ();
|
|
35648
35682
|
e.default = {
|
|
35649
35683
|
keyword: "items",
|
|
35650
35684
|
type: "array",
|
|
@@ -35659,9 +35693,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35659
35693
|
o.items = !0, !(0, n.alwaysValidSchema)(o, t) && (s ? (0, i.validateAdditionalItems)(e, s) : e.ok((0, r.validateArray)(e)));
|
|
35660
35694
|
}
|
|
35661
35695
|
};
|
|
35662
|
-
})),
|
|
35696
|
+
})), CQ = /* @__PURE__ */ W(((e) => {
|
|
35663
35697
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35664
|
-
var t =
|
|
35698
|
+
var t = TZ(), n = EZ();
|
|
35665
35699
|
e.default = {
|
|
35666
35700
|
keyword: "contains",
|
|
35667
35701
|
type: "array",
|
|
@@ -35714,9 +35748,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35714
35748
|
}
|
|
35715
35749
|
}
|
|
35716
35750
|
};
|
|
35717
|
-
})),
|
|
35751
|
+
})), wQ = /* @__PURE__ */ W(((e) => {
|
|
35718
35752
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.validateSchemaDeps = e.validatePropertyDeps = e.error = void 0;
|
|
35719
|
-
var t =
|
|
35753
|
+
var t = TZ(), n = EZ(), r = PZ();
|
|
35720
35754
|
e.error = {
|
|
35721
35755
|
message: ({ params: { property: e, depsCount: n, deps: r } }) => {
|
|
35722
35756
|
let i = n === 1 ? "property" : "properties";
|
|
@@ -35775,9 +35809,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35775
35809
|
}, () => i.var(c, !0)), e.ok(c));
|
|
35776
35810
|
}
|
|
35777
35811
|
e.validateSchemaDeps = s, e.default = i;
|
|
35778
|
-
})),
|
|
35812
|
+
})), TQ = /* @__PURE__ */ W(((e) => {
|
|
35779
35813
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35780
|
-
var t =
|
|
35814
|
+
var t = TZ(), n = EZ();
|
|
35781
35815
|
e.default = {
|
|
35782
35816
|
keyword: "propertyNames",
|
|
35783
35817
|
type: "object",
|
|
@@ -35803,9 +35837,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35803
35837
|
}), e.ok(s);
|
|
35804
35838
|
}
|
|
35805
35839
|
};
|
|
35806
|
-
})),
|
|
35840
|
+
})), EQ = /* @__PURE__ */ W(((e) => {
|
|
35807
35841
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35808
|
-
var t =
|
|
35842
|
+
var t = PZ(), n = TZ(), r = DZ(), i = EZ();
|
|
35809
35843
|
e.default = {
|
|
35810
35844
|
keyword: "additionalProperties",
|
|
35811
35845
|
type: ["object"],
|
|
@@ -35870,9 +35904,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35870
35904
|
}
|
|
35871
35905
|
}
|
|
35872
35906
|
};
|
|
35873
|
-
})),
|
|
35907
|
+
})), DQ = /* @__PURE__ */ W(((e) => {
|
|
35874
35908
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35875
|
-
var t =
|
|
35909
|
+
var t = BZ(), n = PZ(), r = EZ(), i = EQ();
|
|
35876
35910
|
e.default = {
|
|
35877
35911
|
keyword: "properties",
|
|
35878
35912
|
type: "object",
|
|
@@ -35899,9 +35933,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35899
35933
|
}
|
|
35900
35934
|
}
|
|
35901
35935
|
};
|
|
35902
|
-
})),
|
|
35936
|
+
})), OQ = /* @__PURE__ */ W(((e) => {
|
|
35903
35937
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35904
|
-
var t =
|
|
35938
|
+
var t = PZ(), n = TZ(), r = EZ(), i = EZ();
|
|
35905
35939
|
e.default = {
|
|
35906
35940
|
keyword: "patternProperties",
|
|
35907
35941
|
type: "object",
|
|
@@ -35934,9 +35968,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35934
35968
|
}
|
|
35935
35969
|
}
|
|
35936
35970
|
};
|
|
35937
|
-
})),
|
|
35971
|
+
})), kQ = /* @__PURE__ */ W(((e) => {
|
|
35938
35972
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35939
|
-
var t =
|
|
35973
|
+
var t = EZ();
|
|
35940
35974
|
e.default = {
|
|
35941
35975
|
keyword: "not",
|
|
35942
35976
|
schemaType: ["object", "boolean"],
|
|
@@ -35957,17 +35991,17 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35957
35991
|
},
|
|
35958
35992
|
error: { message: "must NOT be valid" }
|
|
35959
35993
|
};
|
|
35960
|
-
})),
|
|
35994
|
+
})), AQ = /* @__PURE__ */ W(((e) => {
|
|
35961
35995
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = {
|
|
35962
35996
|
keyword: "anyOf",
|
|
35963
35997
|
schemaType: "array",
|
|
35964
35998
|
trackErrors: !0,
|
|
35965
|
-
code:
|
|
35999
|
+
code: PZ().validateUnion,
|
|
35966
36000
|
error: { message: "must match a schema in anyOf" }
|
|
35967
36001
|
};
|
|
35968
|
-
})),
|
|
36002
|
+
})), jQ = /* @__PURE__ */ W(((e) => {
|
|
35969
36003
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
35970
|
-
var t =
|
|
36004
|
+
var t = TZ(), n = EZ();
|
|
35971
36005
|
e.default = {
|
|
35972
36006
|
keyword: "oneOf",
|
|
35973
36007
|
schemaType: "array",
|
|
@@ -35997,9 +36031,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
35997
36031
|
}
|
|
35998
36032
|
}
|
|
35999
36033
|
};
|
|
36000
|
-
})),
|
|
36034
|
+
})), MQ = /* @__PURE__ */ W(((e) => {
|
|
36001
36035
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36002
|
-
var t =
|
|
36036
|
+
var t = EZ();
|
|
36003
36037
|
e.default = {
|
|
36004
36038
|
keyword: "allOf",
|
|
36005
36039
|
schemaType: "array",
|
|
@@ -36018,9 +36052,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36018
36052
|
});
|
|
36019
36053
|
}
|
|
36020
36054
|
};
|
|
36021
|
-
})),
|
|
36055
|
+
})), NQ = /* @__PURE__ */ W(((e) => {
|
|
36022
36056
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36023
|
-
var t =
|
|
36057
|
+
var t = TZ(), n = EZ(), r = {
|
|
36024
36058
|
keyword: "if",
|
|
36025
36059
|
schemaType: ["object", "boolean"],
|
|
36026
36060
|
trackErrors: !0,
|
|
@@ -36061,9 +36095,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36061
36095
|
return r !== void 0 && !(0, n.alwaysValidSchema)(e, r);
|
|
36062
36096
|
}
|
|
36063
36097
|
e.default = r;
|
|
36064
|
-
})),
|
|
36098
|
+
})), PQ = /* @__PURE__ */ W(((e) => {
|
|
36065
36099
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36066
|
-
var t =
|
|
36100
|
+
var t = EZ();
|
|
36067
36101
|
e.default = {
|
|
36068
36102
|
keyword: ["then", "else"],
|
|
36069
36103
|
schemaType: ["object", "boolean"],
|
|
@@ -36071,9 +36105,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36071
36105
|
n.if === void 0 && (0, t.checkStrictMode)(r, `"${e}" without "if" is ignored`);
|
|
36072
36106
|
}
|
|
36073
36107
|
};
|
|
36074
|
-
})),
|
|
36108
|
+
})), FQ = /* @__PURE__ */ W(((e) => {
|
|
36075
36109
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36076
|
-
var t =
|
|
36110
|
+
var t = yQ(), n = xQ(), r = bQ(), i = SQ(), a = CQ(), o = wQ(), s = TQ(), c = EQ(), l = DQ(), u = OQ(), d = kQ(), f = AQ(), p = jQ(), m = MQ(), h = NQ(), g = PQ();
|
|
36077
36111
|
function _(e = !1) {
|
|
36078
36112
|
let _ = [
|
|
36079
36113
|
d.default,
|
|
@@ -36091,9 +36125,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36091
36125
|
return e ? _.push(n.default, i.default) : _.push(t.default, r.default), _.push(a.default), _;
|
|
36092
36126
|
}
|
|
36093
36127
|
e.default = _;
|
|
36094
|
-
})),
|
|
36128
|
+
})), IQ = /* @__PURE__ */ W(((e) => {
|
|
36095
36129
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36096
|
-
var t =
|
|
36130
|
+
var t = TZ();
|
|
36097
36131
|
e.default = {
|
|
36098
36132
|
keyword: "format",
|
|
36099
36133
|
type: ["number", "string"],
|
|
@@ -36166,9 +36200,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36166
36200
|
}
|
|
36167
36201
|
}
|
|
36168
36202
|
};
|
|
36169
|
-
})),
|
|
36170
|
-
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [
|
|
36171
|
-
})),
|
|
36203
|
+
})), LQ = /* @__PURE__ */ W(((e) => {
|
|
36204
|
+
Object.defineProperty(e, "__esModule", { value: !0 }), e.default = [IQ().default];
|
|
36205
|
+
})), RQ = /* @__PURE__ */ W(((e) => {
|
|
36172
36206
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.contentVocabulary = e.metadataVocabulary = void 0, e.metadataVocabulary = [
|
|
36173
36207
|
"title",
|
|
36174
36208
|
"description",
|
|
@@ -36182,9 +36216,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36182
36216
|
"contentEncoding",
|
|
36183
36217
|
"contentSchema"
|
|
36184
36218
|
];
|
|
36185
|
-
})),
|
|
36219
|
+
})), zQ = /* @__PURE__ */ W(((e) => {
|
|
36186
36220
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36187
|
-
var t =
|
|
36221
|
+
var t = aQ(), n = vQ(), r = FQ(), i = LQ(), a = RQ();
|
|
36188
36222
|
e.default = [
|
|
36189
36223
|
t.default,
|
|
36190
36224
|
n.default,
|
|
@@ -36193,15 +36227,15 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36193
36227
|
a.metadataVocabulary,
|
|
36194
36228
|
a.contentVocabulary
|
|
36195
36229
|
];
|
|
36196
|
-
})),
|
|
36230
|
+
})), BQ = /* @__PURE__ */ W(((e) => {
|
|
36197
36231
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.DiscrError = void 0;
|
|
36198
36232
|
var t;
|
|
36199
36233
|
(function(e) {
|
|
36200
36234
|
e.Tag = "tag", e.Mapping = "mapping";
|
|
36201
36235
|
})(t || (e.DiscrError = t = {}));
|
|
36202
|
-
})),
|
|
36236
|
+
})), VQ = /* @__PURE__ */ W(((e) => {
|
|
36203
36237
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36204
|
-
var t =
|
|
36238
|
+
var t = TZ(), n = BQ(), r = UZ(), i = HZ(), a = EZ();
|
|
36205
36239
|
e.default = {
|
|
36206
36240
|
keyword: "discriminator",
|
|
36207
36241
|
type: "object",
|
|
@@ -36269,16 +36303,16 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36269
36303
|
}
|
|
36270
36304
|
}
|
|
36271
36305
|
};
|
|
36272
|
-
})),
|
|
36273
|
-
$id: () =>
|
|
36274
|
-
$schema: () =>
|
|
36275
|
-
default: () =>
|
|
36276
|
-
definitions: () =>
|
|
36277
|
-
properties: () =>
|
|
36278
|
-
title: () =>
|
|
36279
|
-
type: () =>
|
|
36280
|
-
}),
|
|
36281
|
-
|
|
36306
|
+
})), HQ = /* @__PURE__ */ xe({
|
|
36307
|
+
$id: () => WQ,
|
|
36308
|
+
$schema: () => UQ,
|
|
36309
|
+
default: () => YQ,
|
|
36310
|
+
definitions: () => KQ,
|
|
36311
|
+
properties: () => JQ,
|
|
36312
|
+
title: () => GQ,
|
|
36313
|
+
type: () => qQ
|
|
36314
|
+
}), UQ, WQ, GQ, KQ, qQ, JQ, YQ, XQ = be((() => {
|
|
36315
|
+
UQ = "http://json-schema.org/draft-07/schema#", WQ = "http://json-schema.org/draft-07/schema#", GQ = "Core schema meta-schema", KQ = {
|
|
36282
36316
|
schemaArray: {
|
|
36283
36317
|
type: "array",
|
|
36284
36318
|
minItems: 1,
|
|
@@ -36304,7 +36338,7 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36304
36338
|
uniqueItems: !0,
|
|
36305
36339
|
default: []
|
|
36306
36340
|
}
|
|
36307
|
-
},
|
|
36341
|
+
}, qQ = ["object", "boolean"], JQ = {
|
|
36308
36342
|
$id: {
|
|
36309
36343
|
type: "string",
|
|
36310
36344
|
format: "uri-reference"
|
|
@@ -36403,18 +36437,18 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36403
36437
|
anyOf: { $ref: "#/definitions/schemaArray" },
|
|
36404
36438
|
oneOf: { $ref: "#/definitions/schemaArray" },
|
|
36405
36439
|
not: { $ref: "#" }
|
|
36406
|
-
},
|
|
36407
|
-
$schema:
|
|
36408
|
-
$id:
|
|
36409
|
-
title:
|
|
36410
|
-
definitions:
|
|
36411
|
-
type:
|
|
36412
|
-
properties:
|
|
36440
|
+
}, YQ = {
|
|
36441
|
+
$schema: UQ,
|
|
36442
|
+
$id: WQ,
|
|
36443
|
+
title: GQ,
|
|
36444
|
+
definitions: KQ,
|
|
36445
|
+
type: qQ,
|
|
36446
|
+
properties: JQ,
|
|
36413
36447
|
default: !0
|
|
36414
36448
|
};
|
|
36415
|
-
})),
|
|
36449
|
+
})), ZQ = /* @__PURE__ */ W(((e, t) => {
|
|
36416
36450
|
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;
|
|
36417
|
-
var n =
|
|
36451
|
+
var n = nQ(), r = zQ(), i = VQ(), a = (XQ(), we(HQ).default), o = ["/properties"], s = "http://json-schema.org/draft-07/schema", c = class extends n.default {
|
|
36418
36452
|
_addVocabularies() {
|
|
36419
36453
|
super._addVocabularies(), r.default.forEach((e) => this.addVocabulary(e)), this.opts.discriminator && this.addKeyword(i.default);
|
|
36420
36454
|
}
|
|
@@ -36428,14 +36462,14 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36428
36462
|
}
|
|
36429
36463
|
};
|
|
36430
36464
|
e.Ajv = c, t.exports = e = c, t.exports.Ajv = c, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = c;
|
|
36431
|
-
var l =
|
|
36465
|
+
var l = BZ();
|
|
36432
36466
|
Object.defineProperty(e, "KeywordCxt", {
|
|
36433
36467
|
enumerable: !0,
|
|
36434
36468
|
get: function() {
|
|
36435
36469
|
return l.KeywordCxt;
|
|
36436
36470
|
}
|
|
36437
36471
|
});
|
|
36438
|
-
var u =
|
|
36472
|
+
var u = TZ();
|
|
36439
36473
|
Object.defineProperty(e, "_", {
|
|
36440
36474
|
enumerable: !0,
|
|
36441
36475
|
get: function() {
|
|
@@ -36467,21 +36501,21 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36467
36501
|
return u.CodeGen;
|
|
36468
36502
|
}
|
|
36469
36503
|
});
|
|
36470
|
-
var d =
|
|
36504
|
+
var d = VZ();
|
|
36471
36505
|
Object.defineProperty(e, "ValidationError", {
|
|
36472
36506
|
enumerable: !0,
|
|
36473
36507
|
get: function() {
|
|
36474
36508
|
return d.default;
|
|
36475
36509
|
}
|
|
36476
36510
|
});
|
|
36477
|
-
var f =
|
|
36511
|
+
var f = HZ();
|
|
36478
36512
|
Object.defineProperty(e, "MissingRefError", {
|
|
36479
36513
|
enumerable: !0,
|
|
36480
36514
|
get: function() {
|
|
36481
36515
|
return f.default;
|
|
36482
36516
|
}
|
|
36483
36517
|
});
|
|
36484
|
-
})),
|
|
36518
|
+
})), QQ = /* @__PURE__ */ W(((e) => {
|
|
36485
36519
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatNames = e.fastFormats = e.fullFormats = void 0;
|
|
36486
36520
|
function t(e, t) {
|
|
36487
36521
|
return {
|
|
@@ -36633,9 +36667,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36633
36667
|
return !1;
|
|
36634
36668
|
}
|
|
36635
36669
|
}
|
|
36636
|
-
})),
|
|
36670
|
+
})), $Q = /* @__PURE__ */ W(((e) => {
|
|
36637
36671
|
Object.defineProperty(e, "__esModule", { value: !0 }), e.formatLimitDefinition = void 0;
|
|
36638
|
-
var t =
|
|
36672
|
+
var t = ZQ(), n = TZ(), r = n.operators, i = {
|
|
36639
36673
|
formatMaximum: {
|
|
36640
36674
|
okStr: "<=",
|
|
36641
36675
|
ok: r.LTE,
|
|
@@ -36695,9 +36729,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36695
36729
|
},
|
|
36696
36730
|
dependencies: ["format"]
|
|
36697
36731
|
}, e.default = (t) => (t.addKeyword(e.formatLimitDefinition), t);
|
|
36698
|
-
})),
|
|
36732
|
+
})), e$ = /* @__PURE__ */ W(((e, t) => {
|
|
36699
36733
|
Object.defineProperty(e, "__esModule", { value: !0 });
|
|
36700
|
-
var n =
|
|
36734
|
+
var n = QQ(), r = $Q(), i = TZ(), a = new i.Name("fullFormats"), o = new i.Name("fastFormats"), s = (e, t = { keywords: !0 }) => {
|
|
36701
36735
|
if (Array.isArray(t)) return c(e, t, n.fullFormats, a), e;
|
|
36702
36736
|
let [i, s] = t.mode === "fast" ? [n.fastFormats, o] : [n.fullFormats, a];
|
|
36703
36737
|
return c(e, t.formats || n.formatNames, i, s), t.keywords && (0, r.default)(e), e;
|
|
@@ -36713,9 +36747,9 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36713
36747
|
for (let r of t) e.addFormat(r, n[r]);
|
|
36714
36748
|
}
|
|
36715
36749
|
t.exports = e = s, Object.defineProperty(e, "__esModule", { value: !0 }), e.default = s;
|
|
36716
|
-
})),
|
|
36750
|
+
})), t$ = /* @__PURE__ */ Ce(ZQ(), 1), n$ = /* @__PURE__ */ Ce(e$(), 1), r$ = {
|
|
36717
36751
|
required: () => "This field is required",
|
|
36718
|
-
type: (e) => `Should be "${
|
|
36752
|
+
type: (e) => `Should be "${a$(e)}".`,
|
|
36719
36753
|
minLength: (e) => e.params.limit === 1 ? "This field must not be empty" : `Should NOT be shorter than ${e.params.limit} characters`,
|
|
36720
36754
|
maxLength: (e) => `Should NOT be longer than ${e.params.limit} characters`,
|
|
36721
36755
|
minimum: (e) => `Should be >= ${e.params.limit}`,
|
|
@@ -36727,63 +36761,63 @@ var bZ = /* @__PURE__ */ W(((e) => {
|
|
|
36727
36761
|
maxItems: (e) => `Should NOT have more than ${e.params.limit} items`,
|
|
36728
36762
|
uniqueItems: () => "Should NOT have duplicate items",
|
|
36729
36763
|
const: (e) => `Should be equal to constant "${e.params.allowedValue}"`,
|
|
36730
|
-
pattern: (e, t) => `${
|
|
36764
|
+
pattern: (e, t) => `${yX(t)} value does not respect the pattern: ${e.params.pattern}`,
|
|
36731
36765
|
format: (e) => `Should be a valid ${e.params.format}`,
|
|
36732
36766
|
uniqueItemProperties: (e) => `${e.params.propertyName ?? "This field"} must be unique`
|
|
36733
36767
|
};
|
|
36734
|
-
function
|
|
36735
|
-
let n =
|
|
36768
|
+
function i$(e, t) {
|
|
36769
|
+
let n = r$[e.keyword];
|
|
36736
36770
|
return n ? n(e, t) : e.message ?? "Invalid value";
|
|
36737
36771
|
}
|
|
36738
|
-
function
|
|
36772
|
+
function a$(e) {
|
|
36739
36773
|
let t = e.params.type;
|
|
36740
36774
|
return String(Array.isArray(t) ? t[0] : t);
|
|
36741
36775
|
}
|
|
36742
36776
|
//#endregion
|
|
36743
36777
|
//#region src/composed/JsonSchemaForm/form-bindings/resolveAt.ts
|
|
36744
|
-
function
|
|
36778
|
+
function o$(e, t, n) {
|
|
36745
36779
|
let r = t === "" ? [] : t.split("."), i = e.root, a = n, o = [];
|
|
36746
36780
|
for (let e of r) {
|
|
36747
36781
|
if (!i) return {
|
|
36748
36782
|
node: void 0,
|
|
36749
36783
|
value: void 0
|
|
36750
36784
|
};
|
|
36751
|
-
i =
|
|
36785
|
+
i = s$(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);
|
|
36752
36786
|
}
|
|
36753
36787
|
return i ? {
|
|
36754
|
-
node:
|
|
36788
|
+
node: c$(s$(i, a, n, r), r),
|
|
36755
36789
|
value: a
|
|
36756
36790
|
} : {
|
|
36757
36791
|
node: void 0,
|
|
36758
36792
|
value: a
|
|
36759
36793
|
};
|
|
36760
36794
|
}
|
|
36761
|
-
function
|
|
36762
|
-
let i = new Map(e.properties), a = e.variants ?
|
|
36795
|
+
function s$(e, t, n, r) {
|
|
36796
|
+
let i = new Map(e.properties), a = e.variants ? d$(e.variants, t) : void 0;
|
|
36763
36797
|
if (a) for (let [e, t] of a.properties) i.set(e, t);
|
|
36764
36798
|
let o = [...e.dependencyBranches ?? [], ...a?.dependencyBranches ?? []];
|
|
36765
36799
|
if (o.length > 0) {
|
|
36766
|
-
for (let e of o) if (
|
|
36800
|
+
for (let e of o) if (l$(e.showIf.$eq, n, r)) for (let [t, n] of e.properties) i.set(t, n);
|
|
36767
36801
|
}
|
|
36768
36802
|
return i.size > (e.properties?.size ?? 0) ? {
|
|
36769
36803
|
...e,
|
|
36770
36804
|
properties: i
|
|
36771
36805
|
} : e;
|
|
36772
36806
|
}
|
|
36773
|
-
function
|
|
36807
|
+
function c$(e, t) {
|
|
36774
36808
|
return e.displayIf ? {
|
|
36775
36809
|
...e,
|
|
36776
|
-
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [
|
|
36810
|
+
displayIf: { $eq: new Map([...e.displayIf.$eq].map(([e, n]) => [nX(e, t), n])) }
|
|
36777
36811
|
} : e;
|
|
36778
36812
|
}
|
|
36779
|
-
function
|
|
36813
|
+
function l$(e, t, n) {
|
|
36780
36814
|
for (let [r, i] of e) {
|
|
36781
|
-
let e =
|
|
36815
|
+
let e = u$(t, nX(r, n).split("."));
|
|
36782
36816
|
if (!(Array.isArray(i) ? i : [i]).includes(e)) return !1;
|
|
36783
36817
|
}
|
|
36784
36818
|
return !0;
|
|
36785
36819
|
}
|
|
36786
|
-
function
|
|
36820
|
+
function u$(e, t) {
|
|
36787
36821
|
let n = e;
|
|
36788
36822
|
for (let e of t) {
|
|
36789
36823
|
if (typeof n != "object" || !n) return;
|
|
@@ -36791,25 +36825,25 @@ function s$(e, t) {
|
|
|
36791
36825
|
}
|
|
36792
36826
|
return n;
|
|
36793
36827
|
}
|
|
36794
|
-
function
|
|
36828
|
+
function d$(e, t) {
|
|
36795
36829
|
if (typeof t != "object" || !t) return;
|
|
36796
36830
|
let n = t;
|
|
36797
36831
|
return e.find((e) => e.consts.length > 0 && e.consts.every((e) => Object.is(n[e.key], e.value)));
|
|
36798
36832
|
}
|
|
36799
36833
|
//#endregion
|
|
36800
36834
|
//#region src/composed/JsonSchemaForm/form-bindings/jsonSchemaResolver.ts
|
|
36801
|
-
var
|
|
36835
|
+
var f$ = new t$.default({
|
|
36802
36836
|
strict: !1,
|
|
36803
36837
|
allErrors: !0
|
|
36804
36838
|
});
|
|
36805
|
-
(0,
|
|
36839
|
+
(0, n$.default)(f$), f$.removeKeyword("id"), f$.addKeyword({
|
|
36806
36840
|
keyword: "id",
|
|
36807
36841
|
validate: () => !0
|
|
36808
36842
|
});
|
|
36809
|
-
function
|
|
36843
|
+
function p$(e, t = {}) {
|
|
36810
36844
|
let n;
|
|
36811
36845
|
try {
|
|
36812
|
-
n =
|
|
36846
|
+
n = uZ(e);
|
|
36813
36847
|
} catch (e) {
|
|
36814
36848
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
36815
36849
|
return () => ({
|
|
@@ -36822,7 +36856,7 @@ function u$(e, t = {}) {
|
|
|
36822
36856
|
}
|
|
36823
36857
|
let r = n.root.schema, i = n.variantIndices, a;
|
|
36824
36858
|
try {
|
|
36825
|
-
a =
|
|
36859
|
+
a = f$.compile(r);
|
|
36826
36860
|
} catch (e) {
|
|
36827
36861
|
let t = e instanceof Error ? e.message : "Invalid JSON Schema";
|
|
36828
36862
|
return () => ({
|
|
@@ -36833,15 +36867,15 @@ function u$(e, t = {}) {
|
|
|
36833
36867
|
} }
|
|
36834
36868
|
});
|
|
36835
36869
|
}
|
|
36836
|
-
|
|
36870
|
+
f$.removeSchema(r);
|
|
36837
36871
|
let o = async (e, t, r) => {
|
|
36838
|
-
let o = a(e) ? [] : a.errors ?? [], s =
|
|
36872
|
+
let o = a(e) ? [] : a.errors ?? [], s = b$(n.root, e, "", i), c = [...o, ...s];
|
|
36839
36873
|
return c.length === 0 ? {
|
|
36840
36874
|
values: e,
|
|
36841
36875
|
errors: {}
|
|
36842
36876
|
} : {
|
|
36843
36877
|
values: {},
|
|
36844
|
-
errors:
|
|
36878
|
+
errors: _$(g$(c.filter((t) => !m$(t, n, e))), r.criteriaMode ?? "firstError")
|
|
36845
36879
|
};
|
|
36846
36880
|
};
|
|
36847
36881
|
if (!t.basePath) return o;
|
|
@@ -36857,12 +36891,12 @@ function u$(e, t = {}) {
|
|
|
36857
36891
|
};
|
|
36858
36892
|
};
|
|
36859
36893
|
}
|
|
36860
|
-
function
|
|
36861
|
-
let { node: r, value: i } =
|
|
36894
|
+
function m$(e, t, n) {
|
|
36895
|
+
let { node: r, value: i } = o$(t, (e.instancePath ? e.instancePath.slice(1).split("/").map(dX) : []).join("."), n);
|
|
36862
36896
|
if (!r) return !1;
|
|
36863
36897
|
switch (e.keyword) {
|
|
36864
36898
|
case "const":
|
|
36865
|
-
case "enum": return
|
|
36899
|
+
case "enum": return h$(r.schema, i);
|
|
36866
36900
|
case "required": {
|
|
36867
36901
|
let t = e.params.missingProperty;
|
|
36868
36902
|
return typeof t == "string" && !!r.properties && !r.properties.has(t);
|
|
@@ -36870,46 +36904,46 @@ function d$(e, t, n) {
|
|
|
36870
36904
|
default: return !1;
|
|
36871
36905
|
}
|
|
36872
36906
|
}
|
|
36873
|
-
function
|
|
36907
|
+
function h$(e, t) {
|
|
36874
36908
|
return e.const === void 0 ? Array.isArray(e.enum) ? e.enum.includes(t) : !1 : Object.is(e.const, t);
|
|
36875
36909
|
}
|
|
36876
|
-
function
|
|
36910
|
+
function g$(e) {
|
|
36877
36911
|
return e.filter((t) => {
|
|
36878
36912
|
if (t.keyword !== "oneOf" && t.keyword !== "anyOf") return !0;
|
|
36879
|
-
let n =
|
|
36913
|
+
let n = v$(t), r = n === "" ? "" : `${n}.`;
|
|
36880
36914
|
return !e.some((e) => {
|
|
36881
36915
|
if (e === t) return !1;
|
|
36882
|
-
let i =
|
|
36916
|
+
let i = v$(e);
|
|
36883
36917
|
return n === "" ? i !== "" : i.startsWith(r);
|
|
36884
36918
|
});
|
|
36885
36919
|
});
|
|
36886
36920
|
}
|
|
36887
|
-
function
|
|
36921
|
+
function _$(e, t) {
|
|
36888
36922
|
let n = /* @__PURE__ */ new Map();
|
|
36889
36923
|
for (let t of e) {
|
|
36890
|
-
let e =
|
|
36924
|
+
let e = v$(t), r = n.get(e) ?? [];
|
|
36891
36925
|
r.push(t), n.set(e, r);
|
|
36892
36926
|
}
|
|
36893
36927
|
let r = {};
|
|
36894
36928
|
for (let [e, i] of n) {
|
|
36895
36929
|
let n = {
|
|
36896
36930
|
type: i[0].keyword,
|
|
36897
|
-
message:
|
|
36931
|
+
message: i$(i[0], e)
|
|
36898
36932
|
};
|
|
36899
36933
|
if (t === "all" && i.length > 0) {
|
|
36900
36934
|
let t = {};
|
|
36901
|
-
for (let n of i) t[n.keyword] =
|
|
36935
|
+
for (let n of i) t[n.keyword] = i$(n, e);
|
|
36902
36936
|
n.types = t;
|
|
36903
36937
|
}
|
|
36904
|
-
|
|
36938
|
+
y$(r, e === "" ? "root" : e, n);
|
|
36905
36939
|
}
|
|
36906
36940
|
return r;
|
|
36907
36941
|
}
|
|
36908
|
-
function
|
|
36909
|
-
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(
|
|
36942
|
+
function v$(e) {
|
|
36943
|
+
let t = e.instancePath ? e.instancePath.slice(1).split("/").map(dX) : [];
|
|
36910
36944
|
return e.keyword === "required" && typeof e.params.missingProperty == "string" && t.push(e.params.missingProperty), t.join(".");
|
|
36911
36945
|
}
|
|
36912
|
-
function
|
|
36946
|
+
function y$(e, t, n) {
|
|
36913
36947
|
let r = t.split("."), i = e;
|
|
36914
36948
|
for (let e = 0; e < r.length - 1; e++) {
|
|
36915
36949
|
let t = r[e];
|
|
@@ -36917,7 +36951,7 @@ function g$(e, t, n) {
|
|
|
36917
36951
|
}
|
|
36918
36952
|
i[r[r.length - 1]] = n;
|
|
36919
36953
|
}
|
|
36920
|
-
function
|
|
36954
|
+
function b$(e, t, n, r) {
|
|
36921
36955
|
if (!e) return [];
|
|
36922
36956
|
let i = [];
|
|
36923
36957
|
if (e.schema.gioConfig?.uniqueItemProperties && Array.isArray(t)) for (let r of e.schema.gioConfig.uniqueItemProperties) {
|
|
@@ -36934,18 +36968,18 @@ function _$(e, t, n, r) {
|
|
|
36934
36968
|
}
|
|
36935
36969
|
}
|
|
36936
36970
|
let a = typeof t == "object" && !!t && !Array.isArray(t);
|
|
36937
|
-
if (e.properties && a) for (let [a, o] of e.properties) i.push(...
|
|
36971
|
+
if (e.properties && a) for (let [a, o] of e.properties) i.push(...b$(o, t[a], `${n}/${uX(a)}`, r));
|
|
36938
36972
|
if (e.variants && e.variants.length > 0 && a) {
|
|
36939
|
-
let a = t, o =
|
|
36940
|
-
if (s) for (let [e, t] of s.properties) i.push(...
|
|
36973
|
+
let a = t, o = KX(e.variants.map((e) => e.raw), e.rhfPath, r, (e) => a[e]), s = e.variants[o];
|
|
36974
|
+
if (s) for (let [e, t] of s.properties) i.push(...b$(t, a[e], `${n}/${uX(e)}`, r));
|
|
36941
36975
|
}
|
|
36942
36976
|
return e.items && Array.isArray(t) && t.forEach((t, a) => {
|
|
36943
|
-
i.push(...
|
|
36977
|
+
i.push(...b$(e.items, t, `${n}/${a}`, r));
|
|
36944
36978
|
}), i;
|
|
36945
36979
|
}
|
|
36946
36980
|
//#endregion
|
|
36947
36981
|
//#region src/composed/LayoutSlots/LayoutSlotsContext.tsx
|
|
36948
|
-
var
|
|
36982
|
+
var x$ = {
|
|
36949
36983
|
navigation: null,
|
|
36950
36984
|
contextSidebar: null,
|
|
36951
36985
|
breadcrumbs: [],
|
|
@@ -36953,9 +36987,9 @@ var v$ = {
|
|
|
36953
36987
|
viewMode: "global",
|
|
36954
36988
|
contextExpanded: !0,
|
|
36955
36989
|
contentVariant: "default"
|
|
36956
|
-
},
|
|
36957
|
-
function
|
|
36958
|
-
let [t, n] = V(
|
|
36990
|
+
}, S$ = M(null);
|
|
36991
|
+
function C$({ children: e }) {
|
|
36992
|
+
let [t, n] = V(x$), r = F((e, t) => {
|
|
36959
36993
|
n((n) => ({
|
|
36960
36994
|
...n,
|
|
36961
36995
|
[e]: t
|
|
@@ -36967,7 +37001,7 @@ function b$({ children: e }) {
|
|
|
36967
37001
|
}));
|
|
36968
37002
|
}, []), a = F((e) => {
|
|
36969
37003
|
n((t) => {
|
|
36970
|
-
let n = Object.fromEntries(e.map((e) => [e,
|
|
37004
|
+
let n = Object.fromEntries(e.map((e) => [e, x$[e]]));
|
|
36971
37005
|
return {
|
|
36972
37006
|
...t,
|
|
36973
37007
|
...n
|
|
@@ -36984,20 +37018,20 @@ function b$({ children: e }) {
|
|
|
36984
37018
|
i,
|
|
36985
37019
|
a
|
|
36986
37020
|
]);
|
|
36987
|
-
return /* @__PURE__ */ H(
|
|
37021
|
+
return /* @__PURE__ */ H(S$.Provider, {
|
|
36988
37022
|
value: o,
|
|
36989
37023
|
children: e
|
|
36990
37024
|
});
|
|
36991
37025
|
}
|
|
36992
|
-
function
|
|
36993
|
-
let e = I(
|
|
37026
|
+
function w$() {
|
|
37027
|
+
let e = I(S$);
|
|
36994
37028
|
if (!e) throw Error("useLayoutSlots must be used within a LayoutSlotsProvider.");
|
|
36995
37029
|
return e;
|
|
36996
37030
|
}
|
|
36997
37031
|
//#endregion
|
|
36998
37032
|
//#region src/composed/LayoutSlots/use-layout-config.ts
|
|
36999
|
-
function
|
|
37000
|
-
let { setSlots: n, resetSlots: r } =
|
|
37033
|
+
function T$(e, t = []) {
|
|
37034
|
+
let { setSlots: n, resetSlots: r } = w$();
|
|
37001
37035
|
R(() => {
|
|
37002
37036
|
n(e);
|
|
37003
37037
|
let t = Object.keys(e);
|
|
@@ -37012,7 +37046,7 @@ function S$(e, t = []) {
|
|
|
37012
37046
|
}
|
|
37013
37047
|
//#endregion
|
|
37014
37048
|
//#region src/composed/TopNavUser/TopNavUser.tsx
|
|
37015
|
-
var
|
|
37049
|
+
var E$ = [
|
|
37016
37050
|
{
|
|
37017
37051
|
value: "light",
|
|
37018
37052
|
label: "Light"
|
|
@@ -37026,7 +37060,7 @@ var C$ = [
|
|
|
37026
37060
|
label: "System"
|
|
37027
37061
|
}
|
|
37028
37062
|
];
|
|
37029
|
-
function
|
|
37063
|
+
function D$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSignOut: a }) {
|
|
37030
37064
|
let o = r ?? e.slice(0, 2).toUpperCase(), { mode: s, setMode: c } = D();
|
|
37031
37065
|
return /* @__PURE__ */ U(WL, { children: [/* @__PURE__ */ H(KL, {
|
|
37032
37066
|
asChild: !0,
|
|
@@ -37055,7 +37089,7 @@ function w$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
37055
37089
|
/* @__PURE__ */ H(ZL, {
|
|
37056
37090
|
value: s,
|
|
37057
37091
|
onValueChange: (e) => c(e),
|
|
37058
|
-
children:
|
|
37092
|
+
children: E$.map((e) => /* @__PURE__ */ H(QL, {
|
|
37059
37093
|
value: e.value,
|
|
37060
37094
|
children: e.label
|
|
37061
37095
|
}, e.value))
|
|
@@ -37068,6 +37102,6 @@ function w$({ name: e, email: t, avatarUrl: n, initials: r, className: i, onSign
|
|
|
37068
37102
|
]
|
|
37069
37103
|
})] });
|
|
37070
37104
|
}
|
|
37071
|
-
|
|
37105
|
+
D$.displayName = "TopNavUser";
|
|
37072
37106
|
//#endregion
|
|
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,
|
|
37107
|
+
export { Vy as Accordion, Wy as AccordionContent, Hy as AccordionItem, Uy as AccordionTrigger, Yy as Alert, Qy as AlertAction, Zy as AlertDescription, Xy as AlertTitle, lG as AppContextBar, yG as AppLayout, CG as AppSidebar, oG as AppSwitcher, $y as Avatar, nb as AvatarBadge, tb as AvatarFallback, rb as AvatarGroup, ib as AvatarGroupCount, eb as AvatarImage, ob as Badge, sb as Breadcrumb, pb as BreadcrumbEllipsis, lb as BreadcrumbItem, ub as BreadcrumbLink, cb as BreadcrumbList, db as BreadcrumbPage, fb as BreadcrumbSeparator, hb as Button, vb as ButtonGroup, bb as ButtonGroupSeparator, yb as ButtonGroupText, Nw as Calendar, Pw as CalendarDayButton, Fw as Card, zw as CardAction, Bw as CardContent, Rw as CardDescription, Vw as CardFooter, Iw as CardHeader, Lw as CardTitle, Hw as Checkbox, Uw as Collapsible, Gw as CollapsibleContent, Ww as CollapsibleTrigger, uM as Combobox, wM as ComboboxChip, CM as ComboboxChips, TM as ComboboxChipsInput, bM as ComboboxCollection, hM as ComboboxContent, xM as ComboboxEmpty, vM as ComboboxGroup, mM as ComboboxInput, _M as ComboboxItem, yM as ComboboxLabel, gM as ComboboxList, SM as ComboboxSeparator, fM as ComboboxTrigger, dM as ComboboxValue, aI as Command, oI as CommandDialog, lI as CommandEmpty, uI as CommandGroup, sI as CommandInput, fI as CommandItem, cI as CommandList, dI as CommandSeparator, pI as CommandShortcut, OG as ContentHeader, mI as ContextMenu, wI as ContextMenuCheckboxItem, bI as ContextMenuContent, gI as ContextMenuGroup, xI as ContextMenuItem, EI as ContextMenuLabel, _I as ContextMenuPortal, yI as ContextMenuRadioGroup, TI as ContextMenuRadioItem, DI as ContextMenuSeparator, OI as ContextMenuShortcut, vI as ContextMenuSub, CI as ContextMenuSubContent, SI as ContextMenuSubTrigger, hI as ContextMenuTrigger, TG as ContextSidebar, EG as ContextToggleButton, kG as CopyableText, x$ 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, xZ as JsonSchemaForm, IB as Kbd, LB as KbdGroup, fR as Label, C$ as LayoutSlotsProvider, RB as Pagination, zB as PaginationContent, WB as PaginationEllipsis, BB as PaginationItem, VB as PaginationLink, UB as PaginationNext, HB as PaginationPrevious, tZ 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, D$ as TopNavUser, Jy as alertVariants, ab as badgeVariants, AG as buildLinearBreadcrumbs, _b as buttonGroupVariants, mb as buttonVariants, q as cn, SZ as composeResolvers, hX as extractDefaults, p$ as jsonSchemaResolver, ZW as tabsListVariants, CW as toast, tG as toggleVariants, EM as useComboboxAnchor, T$ as useLayoutConfig, w$ as useLayoutSlots, tn as usePortalContainer, RU as useSidebar, fG as useSidebarMode, D as useTheme };
|