@ansible/ansible-ui-framework 0.0.633 → 0.0.634
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +360 -359
- package/index.umd.cjs +16 -16
- package/package.json +1 -1
package/index.js
CHANGED
@@ -77,8 +77,8 @@ function of() {
|
|
77
77
|
var ee = p && O[p] || O[y];
|
78
78
|
return typeof ee == "function" ? ee : null;
|
79
79
|
}
|
80
|
-
var
|
81
|
-
function
|
80
|
+
var C = t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
|
81
|
+
function E(O) {
|
82
82
|
{
|
83
83
|
for (var ee = arguments.length, oe = new Array(ee > 1 ? ee - 1 : 0), we = 1; we < ee; we++)
|
84
84
|
oe[we - 1] = arguments[we];
|
@@ -87,7 +87,7 @@ function of() {
|
|
87
87
|
}
|
88
88
|
function $(O, ee, oe) {
|
89
89
|
{
|
90
|
-
var we =
|
90
|
+
var we = C.ReactDebugCurrentFrame, Ne = we.getStackAddendum();
|
91
91
|
Ne !== "" && (ee += "%s", oe = oe.concat([Ne]));
|
92
92
|
var We = oe.map(function(Oe) {
|
93
93
|
return String(Oe);
|
@@ -117,7 +117,7 @@ function of() {
|
|
117
117
|
function A(O) {
|
118
118
|
if (O == null)
|
119
119
|
return null;
|
120
|
-
if (typeof O.tag == "number" &&
|
120
|
+
if (typeof O.tag == "number" && E("Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."), typeof O == "function")
|
121
121
|
return O.displayName || O.name || null;
|
122
122
|
if (typeof O == "string")
|
123
123
|
return O;
|
@@ -218,10 +218,10 @@ function of() {
|
|
218
218
|
})
|
219
219
|
});
|
220
220
|
}
|
221
|
-
G < 0 &&
|
221
|
+
G < 0 && E("disabledDepth fell below zero. This is a bug in React. Please file an issue.");
|
222
222
|
}
|
223
223
|
}
|
224
|
-
var V =
|
224
|
+
var V = C.ReactCurrentDispatcher, ye;
|
225
225
|
function re(O, ee, oe) {
|
226
226
|
{
|
227
227
|
if (ye === void 0)
|
@@ -347,7 +347,7 @@ function of() {
|
|
347
347
|
}
|
348
348
|
return "";
|
349
349
|
}
|
350
|
-
var z = Object.prototype.hasOwnProperty, U = {}, ie =
|
350
|
+
var z = Object.prototype.hasOwnProperty, U = {}, ie = C.ReactDebugCurrentFrame;
|
351
351
|
function se(O) {
|
352
352
|
if (O) {
|
353
353
|
var ee = O._owner, oe = k(O.type, O._source, ee ? ee.type : null);
|
@@ -370,7 +370,7 @@ function of() {
|
|
370
370
|
} catch (Xe) {
|
371
371
|
_e = Xe;
|
372
372
|
}
|
373
|
-
_e && !(_e instanceof Error) && (se(Ne),
|
373
|
+
_e && !(_e instanceof Error) && (se(Ne), E("%s: type specification of %s `%s` is invalid; the type checker function must return `null` or an `Error` but returned a %s. You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument).", we || "React class", oe, Oe, typeof _e), se(null)), _e instanceof Error && !(_e.message in U) && (U[_e.message] = !0, se(Ne), E("Failed %s type: %s", oe, _e.message), se(null));
|
374
374
|
}
|
375
375
|
}
|
376
376
|
}
|
@@ -396,9 +396,9 @@ function of() {
|
|
396
396
|
}
|
397
397
|
function jt(O) {
|
398
398
|
if (ge(O))
|
399
|
-
return
|
399
|
+
return E("The provided key is an unsupported type %s. This value must be coerced to a string before before using it here.", Te(O)), Ye(O);
|
400
400
|
}
|
401
|
-
var St =
|
401
|
+
var St = C.ReactCurrentOwner, $t = {
|
402
402
|
key: !0,
|
403
403
|
ref: !0,
|
404
404
|
__self: !0,
|
@@ -424,13 +424,13 @@ function of() {
|
|
424
424
|
function de(O, ee) {
|
425
425
|
if (typeof O.ref == "string" && St.current && ee && St.current.stateNode !== ee) {
|
426
426
|
var oe = A(St.current.type);
|
427
|
-
I[oe] || (
|
427
|
+
I[oe] || (E('Component "%s" contains the string ref "%s". Support for string refs will be removed in a future major release. This case cannot be automatically converted to an arrow function. We ask you to manually fix this case by using useRef() or createRef() instead. Learn more about using refs safely here: https://reactjs.org/link/strict-mode-string-ref', A(St.current.type), O.ref), I[oe] = !0);
|
428
428
|
}
|
429
429
|
}
|
430
430
|
function be(O, ee) {
|
431
431
|
{
|
432
432
|
var oe = function() {
|
433
|
-
_ || (_ = !0,
|
433
|
+
_ || (_ = !0, E("%s: `key` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ee));
|
434
434
|
};
|
435
435
|
oe.isReactWarning = !0, Object.defineProperty(O, "key", {
|
436
436
|
get: oe,
|
@@ -441,7 +441,7 @@ function of() {
|
|
441
441
|
function Ce(O, ee) {
|
442
442
|
{
|
443
443
|
var oe = function() {
|
444
|
-
D || (D = !0,
|
444
|
+
D || (D = !0, E("%s: `ref` is not a prop. Trying to access it will result in `undefined` being returned. If you need to access the same value within the child component, you should pass it as a different prop. (https://reactjs.org/link/special-props)", ee));
|
445
445
|
};
|
446
446
|
oe.isReactWarning = !0, Object.defineProperty(O, "ref", {
|
447
447
|
get: oe,
|
@@ -496,7 +496,7 @@ function of() {
|
|
496
496
|
return Pe(O, _e, ct, Ne, we, St.current, Oe);
|
497
497
|
}
|
498
498
|
}
|
499
|
-
var tt =
|
499
|
+
var tt = C.ReactCurrentOwner, Se = C.ReactDebugCurrentFrame;
|
500
500
|
function Ue(O) {
|
501
501
|
if (O) {
|
502
502
|
var ee = O._owner, oe = k(O.type, O._source, ee ? ee.type : null);
|
@@ -555,7 +555,7 @@ Check the top-level render call using <` + oe + ">.");
|
|
555
555
|
return;
|
556
556
|
yt[oe] = !0;
|
557
557
|
var we = "";
|
558
|
-
O && O._owner && O._owner !== tt.current && (we = " It was passed a child from " + A(O._owner.type) + "."), Ue(O),
|
558
|
+
O && O._owner && O._owner !== tt.current && (we = " It was passed a child from " + A(O._owner.type) + "."), Ue(O), E('Each child in a list should have a unique "key" prop.%s%s See https://reactjs.org/link/warning-keys for more information.', oe, we), Ue(null);
|
559
559
|
}
|
560
560
|
}
|
561
561
|
function ar(O, ee) {
|
@@ -597,9 +597,9 @@ Check the top-level render call using <` + oe + ">.");
|
|
597
597
|
} else if (ee.PropTypes !== void 0 && !Ge) {
|
598
598
|
Ge = !0;
|
599
599
|
var Ne = A(ee);
|
600
|
-
|
600
|
+
E("Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?", Ne || "Unknown");
|
601
601
|
}
|
602
|
-
typeof ee.getDefaultProps == "function" && !ee.getDefaultProps.isReactClassApproved &&
|
602
|
+
typeof ee.getDefaultProps == "function" && !ee.getDefaultProps.isReactClassApproved && E("getDefaultProps is only used on classic React.createClass definitions. Use a static property named `defaultProps` instead.");
|
603
603
|
}
|
604
604
|
}
|
605
605
|
function Dt(O) {
|
@@ -607,11 +607,11 @@ Check the top-level render call using <` + oe + ">.");
|
|
607
607
|
for (var ee = Object.keys(O.props), oe = 0; oe < ee.length; oe++) {
|
608
608
|
var we = ee[oe];
|
609
609
|
if (we !== "children" && we !== "key") {
|
610
|
-
Ue(O),
|
610
|
+
Ue(O), E("Invalid prop `%s` supplied to `React.Fragment`. React.Fragment can only have `key` and `children` props.", we), Ue(null);
|
611
611
|
break;
|
612
612
|
}
|
613
613
|
}
|
614
|
-
O.ref !== null && (Ue(O),
|
614
|
+
O.ref !== null && (Ue(O), E("Invalid attribute `ref` supplied to `React.Fragment`."), Ue(null));
|
615
615
|
}
|
616
616
|
}
|
617
617
|
function Bt(O, ee, oe, we, Ne, We) {
|
@@ -623,7 +623,7 @@ Check the top-level render call using <` + oe + ">.");
|
|
623
623
|
var ct = lt(Ne);
|
624
624
|
ct ? _e += ct : _e += Be();
|
625
625
|
var Xe;
|
626
|
-
O === null ? Xe = "null" : De(O) ? Xe = "array" : O !== void 0 && O.$$typeof === e ? (Xe = "<" + (A(O.type) || "Unknown") + " />", _e = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof O,
|
626
|
+
O === null ? Xe = "null" : De(O) ? Xe = "array" : O !== void 0 && O.$$typeof === e ? (Xe = "<" + (A(O.type) || "Unknown") + " />", _e = " Did you accidentally export a JSX literal instead of a component?") : Xe = typeof O, E("React.jsx: type is invalid -- expected a string (for built-in components) or a class/function (for composite components) but got: %s.%s", Xe, _e);
|
627
627
|
}
|
628
628
|
var st = Le(O, ee, oe, Ne, We);
|
629
629
|
if (st == null)
|
@@ -637,7 +637,7 @@ Check the top-level render call using <` + oe + ">.");
|
|
637
637
|
ar(gt[or], O);
|
638
638
|
Object.freeze && Object.freeze(gt);
|
639
639
|
} else
|
640
|
-
|
640
|
+
E("React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead.");
|
641
641
|
else
|
642
642
|
ar(gt, O);
|
643
643
|
}
|
@@ -842,7 +842,7 @@ var Lr = function(t) {
|
|
842
842
|
return Qn.get(t);
|
843
843
|
if (zl(t))
|
844
844
|
return Qn.set(t, Ua), Ua;
|
845
|
-
var r = getComputedStyle(t), n = na(t) && t.ownerSVGElement && t.getBBox(), s = !Sf && r.boxSizing === "border-box", i = xf.test(r.writingMode || ""), a = !n && za.test(r.overflowY || ""), o = !n && za.test(r.overflowX || ""), l = n ? 0 : Jt(r.paddingTop), c = n ? 0 : Jt(r.paddingRight), d = n ? 0 : Jt(r.paddingBottom), h = n ? 0 : Jt(r.paddingLeft), u = n ? 0 : Jt(r.borderTopWidth), m = n ? 0 : Jt(r.borderRightWidth), p = n ? 0 : Jt(r.borderBottomWidth), y = n ? 0 : Jt(r.borderLeftWidth), v = h + c,
|
845
|
+
var r = getComputedStyle(t), n = na(t) && t.ownerSVGElement && t.getBBox(), s = !Sf && r.boxSizing === "border-box", i = xf.test(r.writingMode || ""), a = !n && za.test(r.overflowY || ""), o = !n && za.test(r.overflowX || ""), l = n ? 0 : Jt(r.paddingTop), c = n ? 0 : Jt(r.paddingRight), d = n ? 0 : Jt(r.paddingBottom), h = n ? 0 : Jt(r.paddingLeft), u = n ? 0 : Jt(r.borderTopWidth), m = n ? 0 : Jt(r.borderRightWidth), p = n ? 0 : Jt(r.borderBottomWidth), y = n ? 0 : Jt(r.borderLeftWidth), v = h + c, C = l + d, E = y + m, $ = u + p, b = o ? t.offsetHeight - $ - t.clientHeight : 0, w = a ? t.offsetWidth - E - t.clientWidth : 0, L = s ? v + E : 0, M = s ? C + $ : 0, T = n ? n.width : Jt(r.width) - L - w, x = n ? n.height : Jt(r.height) - M - b, j = T + v + w + E, P = x + C + b + $, R = Lr({
|
846
846
|
devicePixelContentBoxSize: tn(Math.round(T * devicePixelRatio), Math.round(x * devicePixelRatio), i),
|
847
847
|
borderBoxSize: tn(j, P, i),
|
848
848
|
contentBoxSize: tn(T, x, i),
|
@@ -1665,8 +1665,8 @@ const Ih = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
1665
1665
|
basename: u
|
1666
1666
|
} = ke.useContext(hn), m, p = !1;
|
1667
1667
|
if (typeof c == "string" && Dh.test(c) && (m = c, Ih)) {
|
1668
|
-
let
|
1669
|
-
$.origin ===
|
1668
|
+
let E = new URL(window.location.href), $ = c.startsWith("//") ? new URL(E.protocol + c) : new URL(c), b = ih($.pathname, u);
|
1669
|
+
$.origin === E.origin && b != null ? c = b + $.search + $.hash : p = !0;
|
1670
1670
|
}
|
1671
1671
|
let y = Sh(c, {
|
1672
1672
|
relative: s
|
@@ -1677,14 +1677,14 @@ const Ih = typeof window < "u" && typeof window.document < "u" && typeof window.
|
|
1677
1677
|
preventScrollReset: d,
|
1678
1678
|
relative: s
|
1679
1679
|
});
|
1680
|
-
function E
|
1681
|
-
n && n(
|
1680
|
+
function C(E) {
|
1681
|
+
n && n(E), E.defaultPrevented || v(E);
|
1682
1682
|
}
|
1683
1683
|
return (
|
1684
1684
|
// eslint-disable-next-line jsx-a11y/anchor-has-content
|
1685
1685
|
/* @__PURE__ */ ke.createElement("a", Ur({}, h, {
|
1686
1686
|
href: m || y,
|
1687
|
-
onClick: p || i ? n :
|
1687
|
+
onClick: p || i ? n : C,
|
1688
1688
|
ref: r,
|
1689
1689
|
target: l
|
1690
1690
|
}))
|
@@ -1704,15 +1704,15 @@ const Rh = /* @__PURE__ */ ke.forwardRef(function(e, r) {
|
|
1704
1704
|
relative: d.relative
|
1705
1705
|
}), u = Fn(), m = ke.useContext(Jl), {
|
1706
1706
|
navigator: p
|
1707
|
-
} = ke.useContext(hn), y = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, v = u.pathname,
|
1708
|
-
s || (v = v.toLowerCase(),
|
1709
|
-
let
|
1707
|
+
} = ke.useContext(hn), y = p.encodeLocation ? p.encodeLocation(h).pathname : h.pathname, v = u.pathname, C = m && m.navigation && m.navigation.location ? m.navigation.location.pathname : null;
|
1708
|
+
s || (v = v.toLowerCase(), C = C ? C.toLowerCase() : null, y = y.toLowerCase());
|
1709
|
+
let E = v === y || !a && v.startsWith(y) && v.charAt(y.length) === "/", $ = C != null && (C === y || !a && C.startsWith(y) && C.charAt(y.length) === "/"), b = E ? n : void 0, w;
|
1710
1710
|
typeof i == "function" ? w = i({
|
1711
|
-
isActive:
|
1711
|
+
isActive: E,
|
1712
1712
|
isPending: $
|
1713
|
-
}) : w = [i,
|
1713
|
+
}) : w = [i, E ? "active" : null, $ ? "pending" : null].filter(Boolean).join(" ");
|
1714
1714
|
let L = typeof o == "function" ? o({
|
1715
|
-
isActive:
|
1715
|
+
isActive: E,
|
1716
1716
|
isPending: $
|
1717
1717
|
}) : o;
|
1718
1718
|
return /* @__PURE__ */ ke.createElement(sn, Ur({}, d, {
|
@@ -1722,7 +1722,7 @@ const Rh = /* @__PURE__ */ ke.forwardRef(function(e, r) {
|
|
1722
1722
|
style: L,
|
1723
1723
|
to: l
|
1724
1724
|
}), typeof c == "function" ? c({
|
1725
|
-
isActive:
|
1725
|
+
isActive: E,
|
1726
1726
|
isPending: $
|
1727
1727
|
}) : c);
|
1728
1728
|
});
|
@@ -1748,9 +1748,9 @@ const Xl = /* @__PURE__ */ ke.forwardRef((t, e) => {
|
|
1748
1748
|
if (a && a(v), v.defaultPrevented)
|
1749
1749
|
return;
|
1750
1750
|
v.preventDefault();
|
1751
|
-
let
|
1752
|
-
u(
|
1753
|
-
method:
|
1751
|
+
let C = v.nativeEvent.submitter, E = (C == null ? void 0 : C.getAttribute("formmethod")) || s;
|
1752
|
+
u(C || v.currentTarget, {
|
1753
|
+
method: E,
|
1754
1754
|
replace: n,
|
1755
1755
|
relative: c,
|
1756
1756
|
preventScrollReset: d
|
@@ -1859,13 +1859,13 @@ function la(t) {
|
|
1859
1859
|
(b = t.onOpen) == null || b.call(t, d);
|
1860
1860
|
}, [d, t]), c.length === 0)
|
1861
1861
|
return /* @__PURE__ */ f.jsx(f.Fragment, {});
|
1862
|
-
const p = r, y = p ? /* @__PURE__ */ f.jsx(p, {}) : e, v = l === mt.primary || u && !!(n != null && n.length),
|
1862
|
+
const p = r, y = p ? /* @__PURE__ */ f.jsx(p, {}) : e, v = l === mt.primary || u && !!(n != null && n.length), C = l === mt.primary && !u && !!(n != null && n.length), E = e || p ? /* @__PURE__ */ f.jsx(
|
1863
1863
|
ml,
|
1864
1864
|
{
|
1865
1865
|
id: "toggle-dropdown",
|
1866
1866
|
isDisabled: a,
|
1867
1867
|
onToggle: () => h(!d),
|
1868
|
-
toggleVariant:
|
1868
|
+
toggleVariant: C ? "secondary" : v ? "primary" : void 0,
|
1869
1869
|
toggleIndicator: p && i ? null : void 0,
|
1870
1870
|
style: v && !e ? { color: "var(--pf-global--Color--light-100)" } : {},
|
1871
1871
|
icon: p ? /* @__PURE__ */ f.jsx(p, {}) : void 0,
|
@@ -1885,7 +1885,7 @@ function la(t) {
|
|
1885
1885
|
hl,
|
1886
1886
|
{
|
1887
1887
|
onSelect: () => h(!1),
|
1888
|
-
toggle:
|
1888
|
+
toggle: E,
|
1889
1889
|
isOpen: d,
|
1890
1890
|
isPlain: !e || i,
|
1891
1891
|
dropdownItems: c.map((b, w) => /* @__PURE__ */ f.jsx(
|
@@ -5205,7 +5205,7 @@ function Np(t) {
|
|
5205
5205
|
return t.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g, "\\$&");
|
5206
5206
|
}
|
5207
5207
|
function Ip(t, e) {
|
5208
|
-
const r = Wt(e), n = Wt(e, "{2}"), s = Wt(e, "{3}"), i = Wt(e, "{4}"), a = Wt(e, "{6}"), o = Wt(e, "{1,2}"), l = Wt(e, "{1,3}"), c = Wt(e, "{1,6}"), d = Wt(e, "{1,9}"), h = Wt(e, "{2,4}"), u = Wt(e, "{4,6}"), m = (v) => ({ regex: RegExp(Np(v.val)), deser: ([
|
5208
|
+
const r = Wt(e), n = Wt(e, "{2}"), s = Wt(e, "{3}"), i = Wt(e, "{4}"), a = Wt(e, "{6}"), o = Wt(e, "{1,2}"), l = Wt(e, "{1,3}"), c = Wt(e, "{1,6}"), d = Wt(e, "{1,9}"), h = Wt(e, "{2,4}"), u = Wt(e, "{4,6}"), m = (v) => ({ regex: RegExp(Np(v.val)), deser: ([C]) => C, literal: !0 }), y = ((v) => {
|
5209
5209
|
if (t.literal)
|
5210
5210
|
return m(v);
|
5211
5211
|
switch (v.val) {
|
@@ -5882,12 +5882,12 @@ class Ee {
|
|
5882
5882
|
const m = h || a.weekday && !d;
|
5883
5883
|
let p, y, v = $o(s, i);
|
5884
5884
|
m ? (p = Hp, y = Wp, v = Ui(v)) : o ? (p = Gp, y = qp, v = fi(v)) : (p = nu, y = ru);
|
5885
|
-
let
|
5885
|
+
let C = !1;
|
5886
5886
|
for (const T of p) {
|
5887
5887
|
const x = a[T];
|
5888
|
-
Re(x) ?
|
5888
|
+
Re(x) ? C ? a[T] = y[T] : a[T] = v[T] : C = !0;
|
5889
5889
|
}
|
5890
|
-
const
|
5890
|
+
const E = m ? Up(a) : o ? Bp(a) : Qc(a), $ = E || eu(a);
|
5891
5891
|
if ($)
|
5892
5892
|
return Ee.invalid($);
|
5893
5893
|
const b = m ? wo(a) : o ? xo(a) : a, [w, L] = ps(b, i, n), M = new Ee({
|
@@ -7342,9 +7342,9 @@ function Dr(t) {
|
|
7342
7342
|
additionalControls: d,
|
7343
7343
|
placeholderText: h,
|
7344
7344
|
...u
|
7345
|
-
} = t, [m, p] = pe(!1), y = me(() => p((
|
7346
|
-
(
|
7347
|
-
typeof
|
7345
|
+
} = t, [m, p] = pe(!1), y = me(() => p((C) => !C), []), v = me(
|
7346
|
+
(C, E) => {
|
7347
|
+
typeof E == "string" ? r == null || r(C, E) : r == null || r(C, E.toString()), p(!1);
|
7348
7348
|
},
|
7349
7349
|
[r]
|
7350
7350
|
);
|
@@ -7546,7 +7546,7 @@ function sg() {
|
|
7546
7546
|
if (Po)
|
7547
7547
|
return qe;
|
7548
7548
|
Po = 1;
|
7549
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
7549
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
|
7550
7550
|
function $(w) {
|
7551
7551
|
if (typeof w == "object" && w !== null) {
|
7552
7552
|
var L = w.$$typeof;
|
@@ -7605,7 +7605,7 @@ function sg() {
|
|
7605
7605
|
}, qe.isSuspense = function(w) {
|
7606
7606
|
return $(w) === h;
|
7607
7607
|
}, qe.isValidElementType = function(w) {
|
7608
|
-
return typeof w == "string" || typeof w == "function" || w === n || w === c || w === i || w === s || w === h || w === u || typeof w == "object" && w !== null && (w.$$typeof === p || w.$$typeof === m || w.$$typeof === a || w.$$typeof === o || w.$$typeof === d || w.$$typeof === v || w.$$typeof ===
|
7608
|
+
return typeof w == "string" || typeof w == "function" || w === n || w === c || w === i || w === s || w === h || w === u || typeof w == "object" && w !== null && (w.$$typeof === p || w.$$typeof === m || w.$$typeof === a || w.$$typeof === o || w.$$typeof === d || w.$$typeof === v || w.$$typeof === C || w.$$typeof === E || w.$$typeof === y);
|
7609
7609
|
}, qe.typeOf = $, qe;
|
7610
7610
|
}
|
7611
7611
|
var He = {};
|
@@ -7620,10 +7620,10 @@ var He = {};
|
|
7620
7620
|
var No;
|
7621
7621
|
function ig() {
|
7622
7622
|
return No || (No = 1, process.env.NODE_ENV !== "production" && function() {
|
7623
|
-
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117,
|
7623
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? Symbol.for("react.element") : 60103, r = t ? Symbol.for("react.portal") : 60106, n = t ? Symbol.for("react.fragment") : 60107, s = t ? Symbol.for("react.strict_mode") : 60108, i = t ? Symbol.for("react.profiler") : 60114, a = t ? Symbol.for("react.provider") : 60109, o = t ? Symbol.for("react.context") : 60110, l = t ? Symbol.for("react.async_mode") : 60111, c = t ? Symbol.for("react.concurrent_mode") : 60111, d = t ? Symbol.for("react.forward_ref") : 60112, h = t ? Symbol.for("react.suspense") : 60113, u = t ? Symbol.for("react.suspense_list") : 60120, m = t ? Symbol.for("react.memo") : 60115, p = t ? Symbol.for("react.lazy") : 60116, y = t ? Symbol.for("react.block") : 60121, v = t ? Symbol.for("react.fundamental") : 60117, C = t ? Symbol.for("react.responder") : 60118, E = t ? Symbol.for("react.scope") : 60119;
|
7624
7624
|
function $(Z) {
|
7625
7625
|
return typeof Z == "string" || typeof Z == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
7626
|
-
Z === n || Z === c || Z === i || Z === s || Z === h || Z === u || typeof Z == "object" && Z !== null && (Z.$$typeof === p || Z.$$typeof === m || Z.$$typeof === a || Z.$$typeof === o || Z.$$typeof === d || Z.$$typeof === v || Z.$$typeof ===
|
7626
|
+
Z === n || Z === c || Z === i || Z === s || Z === h || Z === u || typeof Z == "object" && Z !== null && (Z.$$typeof === p || Z.$$typeof === m || Z.$$typeof === a || Z.$$typeof === o || Z.$$typeof === d || Z.$$typeof === v || Z.$$typeof === C || Z.$$typeof === E || Z.$$typeof === y);
|
7627
7627
|
}
|
7628
7628
|
function b(Z) {
|
7629
7629
|
if (typeof Z == "object" && Z !== null) {
|
@@ -7788,7 +7788,7 @@ function ag(t) {
|
|
7788
7788
|
k = ge + "{" + k + "}";
|
7789
7789
|
break;
|
7790
7790
|
case 107:
|
7791
|
-
ge = ge.replace(
|
7791
|
+
ge = ge.replace(E, "$1 $2"), k = ge + "{" + k + "}", k = G === 1 || G === 2 && i("@" + k, 3) ? "@-webkit-" + k + "@" + k : "@" + k;
|
7792
7792
|
break;
|
7793
7793
|
default:
|
7794
7794
|
k = ge + k, ae === 112 && (k = (Ye += k, ""));
|
@@ -7960,12 +7960,12 @@ function ag(t) {
|
|
7960
7960
|
var ae = H.charCodeAt(0);
|
7961
7961
|
switch (33 > ae && (ae = (H = H.trim()).charCodeAt(0)), ae) {
|
7962
7962
|
case 38:
|
7963
|
-
return H.replace(
|
7963
|
+
return H.replace(C, "$1" + B.trim());
|
7964
7964
|
case 58:
|
7965
|
-
return B.trim() + H.replace(
|
7965
|
+
return B.trim() + H.replace(C, "$1" + B.trim());
|
7966
7966
|
default:
|
7967
7967
|
if (0 < 1 * J && 0 < H.indexOf("\f"))
|
7968
|
-
return H.replace(
|
7968
|
+
return H.replace(C, (B.charCodeAt(0) === 58 ? "" : "$1") + B.trim());
|
7969
7969
|
}
|
7970
7970
|
return B + H;
|
7971
7971
|
}
|
@@ -8129,7 +8129,7 @@ function ag(t) {
|
|
8129
8129
|
var V = e(Y, J, H, 0, 0);
|
8130
8130
|
return 0 < te && (ae = o(-2, V, J, J, A, R, V.length, 0, 0, 0), ae !== void 0 && (V = ae)), F = "", q = 0, R = A = 1, V;
|
8131
8131
|
}
|
8132
|
-
var h = /^\0+/g, u = /[\0\r\f]/g, m = /: */g, p = /zoo|gra/, y = /([,: ])(transform)/g, v = /,\r+?/g,
|
8132
|
+
var h = /^\0+/g, u = /[\0\r\f]/g, m = /: */g, p = /zoo|gra/, y = /([,: ])(transform)/g, v = /,\r+?/g, C = /([\t\r\n ])*\f?&/g, E = /@(k\w+)\s*(\S*)\s*/, $ = /::(place)/g, b = /:(read-only)/g, w = /[svh]\w+-[tblr]{2}/, L = /\(\s*(.*)\s*\)/g, M = /([\s\S]*?);/g, T = /-self|flex-/g, x = /[^]*?(:[rp][el]a[\w-]+)[^]*/, j = /stretch|:\s*\w+\-(?:conte|avail)/, P = /([^-])(image-set\()/, R = 1, A = 1, q = 0, G = 1, Y = [], Q = [], te = 0, N = null, S = 0, F = "";
|
8133
8133
|
return d.use = l, d.set = c, t !== void 0 && c(t), d;
|
8134
8134
|
}
|
8135
8135
|
var og = {
|
@@ -8573,8 +8573,8 @@ var Rg = du("5.3.9"), Ag = function() {
|
|
8573
8573
|
if (h) {
|
8574
8574
|
var v = qi(d >>> 0);
|
8575
8575
|
if (!r.hasNameForId(s, v)) {
|
8576
|
-
var
|
8577
|
-
r.insertRules(s, v,
|
8576
|
+
var C = n(h, "." + v, void 0, s);
|
8577
|
+
r.insertRules(s, v, C);
|
8578
8578
|
}
|
8579
8579
|
i.push(v);
|
8580
8580
|
}
|
@@ -8584,47 +8584,47 @@ var Rg = du("5.3.9"), Ag = function() {
|
|
8584
8584
|
}(), Fg = /^\s*\/\/.*$/gm, Mg = [":", "[", ".", "#"];
|
8585
8585
|
function Vg(t) {
|
8586
8586
|
var e, r, n, s, i = t === void 0 ? Tr : t, a = i.options, o = a === void 0 ? Tr : a, l = i.plugins, c = l === void 0 ? Os : l, d = new ag(o), h = [], u = function(y) {
|
8587
|
-
function v(
|
8588
|
-
if (
|
8587
|
+
function v(C) {
|
8588
|
+
if (C)
|
8589
8589
|
try {
|
8590
|
-
y(
|
8590
|
+
y(C + "}");
|
8591
8591
|
} catch {
|
8592
8592
|
}
|
8593
8593
|
}
|
8594
|
-
return function(
|
8595
|
-
switch (
|
8594
|
+
return function(C, E, $, b, w, L, M, T, x, j) {
|
8595
|
+
switch (C) {
|
8596
8596
|
case 1:
|
8597
|
-
if (x === 0 &&
|
8598
|
-
return y(
|
8597
|
+
if (x === 0 && E.charCodeAt(0) === 64)
|
8598
|
+
return y(E + ";"), "";
|
8599
8599
|
break;
|
8600
8600
|
case 2:
|
8601
8601
|
if (T === 0)
|
8602
|
-
return
|
8602
|
+
return E + "/*|*/";
|
8603
8603
|
break;
|
8604
8604
|
case 3:
|
8605
8605
|
switch (T) {
|
8606
8606
|
case 102:
|
8607
8607
|
case 112:
|
8608
|
-
return y($[0] +
|
8608
|
+
return y($[0] + E), "";
|
8609
8609
|
default:
|
8610
|
-
return
|
8610
|
+
return E + (j === 0 ? "/*|*/" : "");
|
8611
8611
|
}
|
8612
8612
|
case -2:
|
8613
|
-
|
8613
|
+
E.split("/*|*/}").forEach(v);
|
8614
8614
|
}
|
8615
8615
|
};
|
8616
8616
|
}(function(y) {
|
8617
8617
|
h.push(y);
|
8618
|
-
}), m = function(y, v,
|
8619
|
-
return v === 0 && Mg.indexOf(
|
8618
|
+
}), m = function(y, v, C) {
|
8619
|
+
return v === 0 && Mg.indexOf(C[r.length]) !== -1 || C.match(s) ? y : "." + e;
|
8620
8620
|
};
|
8621
|
-
function p(y, v,
|
8622
|
-
|
8623
|
-
var $ = y.replace(Fg, ""), b = v &&
|
8624
|
-
return e =
|
8621
|
+
function p(y, v, C, E) {
|
8622
|
+
E === void 0 && (E = "&");
|
8623
|
+
var $ = y.replace(Fg, ""), b = v && C ? C + " " + v + " { " + $ + " }" : $;
|
8624
|
+
return e = E, r = v, n = new RegExp("\\" + r + "\\b", "g"), s = new RegExp("(\\" + r + "\\b){2,}"), d(C || !v ? "" : v, b);
|
8625
8625
|
}
|
8626
|
-
return d.use([].concat(c, [function(y, v,
|
8627
|
-
y === 2 &&
|
8626
|
+
return d.use([].concat(c, [function(y, v, C) {
|
8627
|
+
y === 2 && C.length && C[0].lastIndexOf(r) > 0 && (C[0] = C[0].replace(n, m));
|
8628
8628
|
}, u, function(y) {
|
8629
8629
|
if (y === -2) {
|
8630
8630
|
var v = h;
|
@@ -8756,18 +8756,18 @@ var vu = Ke.createContext();
|
|
8756
8756
|
vu.Consumer;
|
8757
8757
|
var yi = {};
|
8758
8758
|
function bu(t, e, r) {
|
8759
|
-
var n = ba(t), s = !us(t), i = e.attrs, a = i === void 0 ? Os : i, o = e.componentId, l = o === void 0 ? function(
|
8760
|
-
var b = typeof
|
8759
|
+
var n = ba(t), s = !us(t), i = e.attrs, a = i === void 0 ? Os : i, o = e.componentId, l = o === void 0 ? function(E, $) {
|
8760
|
+
var b = typeof E != "string" ? "sc" : gi(E);
|
8761
8761
|
yi[b] = (yi[b] || 0) + 1;
|
8762
8762
|
var w = b + "-" + gu("5.3.9" + b + yi[b]);
|
8763
8763
|
return $ ? $ + "-" + w : w;
|
8764
|
-
}(e.displayName, e.parentComponentId) : o, c = e.displayName, d = c === void 0 ? function(
|
8765
|
-
return us(
|
8764
|
+
}(e.displayName, e.parentComponentId) : o, c = e.displayName, d = c === void 0 ? function(E) {
|
8765
|
+
return us(E) ? "styled." + E : "Styled(" + Wi(E) + ")";
|
8766
8766
|
}(t) : c, h = e.displayName && e.componentId ? gi(e.displayName) + "-" + e.componentId : e.componentId || l, u = n && t.attrs ? Array.prototype.concat(t.attrs, a).filter(Boolean) : a, m = e.shouldForwardProp;
|
8767
|
-
n && t.shouldForwardProp && (m = e.shouldForwardProp ? function(
|
8768
|
-
return t.shouldForwardProp(
|
8767
|
+
n && t.shouldForwardProp && (m = e.shouldForwardProp ? function(E, $, b) {
|
8768
|
+
return t.shouldForwardProp(E, $, b) && e.shouldForwardProp(E, $, b);
|
8769
8769
|
} : t.shouldForwardProp);
|
8770
|
-
var p, y = new Ag(r, h, n ? t.componentStyle : void 0), v = y.isStatic && a.length === 0,
|
8770
|
+
var p, y = new Ag(r, h, n ? t.componentStyle : void 0), v = y.isStatic && a.length === 0, C = function(E, $) {
|
8771
8771
|
return function(b, w, L, M) {
|
8772
8772
|
var T = b.attrs, x = b.componentStyle, j = b.defaultProps, P = b.foldedComponentIds, R = b.shouldForwardProp, A = b.styledComponentId, q = b.target;
|
8773
8773
|
process.env.NODE_ENV !== "production" && ja(A);
|
@@ -8786,9 +8786,9 @@ function bu(t, e, r) {
|
|
8786
8786
|
for (var J in B)
|
8787
8787
|
J[0] !== "$" && J !== "as" && (J === "forwardedAs" ? H.as = B[J] : (R ? R(J, Io, S) : !F || Io(J)) && (H[J] = B[J]));
|
8788
8788
|
return w.style && Q.style !== w.style && (H.style = mr({}, w.style, {}, Q.style)), H.className = Array.prototype.concat(P, A, te !== A ? te : null, w.className, Q.className).filter(Boolean).join(" "), H.ref = N, Qi(S, H);
|
8789
|
-
}(p,
|
8789
|
+
}(p, E, $, v);
|
8790
8790
|
};
|
8791
|
-
return
|
8791
|
+
return C.displayName = d, (p = Ke.forwardRef(C)).attrs = u, p.componentStyle = y, p.displayName = d, p.shouldForwardProp = m, p.foldedComponentIds = n ? Array.prototype.concat(t.foldedComponentIds, t.styledComponentId) : Os, p.styledComponentId = h, p.target = n ? t.target : t, p.withComponent = function(E) {
|
8792
8792
|
var $ = e.componentId, b = function(L, M) {
|
8793
8793
|
if (L == null)
|
8794
8794
|
return {};
|
@@ -8796,18 +8796,18 @@ function bu(t, e, r) {
|
|
8796
8796
|
for (x = 0; x < P.length; x++)
|
8797
8797
|
T = P[x], M.indexOf(T) >= 0 || (j[T] = L[T]);
|
8798
8798
|
return j;
|
8799
|
-
}(e, ["componentId"]), w = $ && $ + "-" + (us(
|
8800
|
-
return bu(
|
8799
|
+
}(e, ["componentId"]), w = $ && $ + "-" + (us(E) ? E : gi(Wi(E)));
|
8800
|
+
return bu(E, mr({}, b, { attrs: u, componentId: w }), r);
|
8801
8801
|
}, Object.defineProperty(p, "defaultProps", { get: function() {
|
8802
8802
|
return this._foldedDefaultProps;
|
8803
|
-
}, set: function(
|
8804
|
-
this._foldedDefaultProps = n ? yu({}, t.defaultProps,
|
8805
|
-
} }), process.env.NODE_ENV !== "production" && (Gg(d, h), p.warnTooManyClasses = function(
|
8803
|
+
}, set: function(E) {
|
8804
|
+
this._foldedDefaultProps = n ? yu({}, t.defaultProps, E) : E;
|
8805
|
+
} }), process.env.NODE_ENV !== "production" && (Gg(d, h), p.warnTooManyClasses = function(E, $) {
|
8806
8806
|
var b = {}, w = !1;
|
8807
8807
|
return function(L) {
|
8808
8808
|
if (!w && (b[L] = !0, Object.keys(b).length >= 200)) {
|
8809
8809
|
var M = $ ? ' with the id of "' + $ + '"' : "";
|
8810
|
-
console.warn("Over 200 classes were generated for component " +
|
8810
|
+
console.warn("Over 200 classes were generated for component " + E + M + `.
|
8811
8811
|
Consider using the attrs method, together with a style object for frequently changed styles.
|
8812
8812
|
Example:
|
8813
8813
|
const Component = styled.div.attrs(props => ({
|
@@ -9130,7 +9130,7 @@ function iy(t) {
|
|
9130
9130
|
}
|
9131
9131
|
function ay(t, e, r, n, s, i, a, o) {
|
9132
9132
|
const l = Ie(() => {
|
9133
|
-
let
|
9133
|
+
let C, E, $;
|
9134
9134
|
const b = [];
|
9135
9135
|
let w;
|
9136
9136
|
const L = [], M = [];
|
@@ -9148,10 +9148,10 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9148
9148
|
default:
|
9149
9149
|
switch (T.list) {
|
9150
9150
|
case "name":
|
9151
|
-
|
9151
|
+
C = T;
|
9152
9152
|
break;
|
9153
9153
|
case "subtitle":
|
9154
|
-
|
9154
|
+
E = T;
|
9155
9155
|
break;
|
9156
9156
|
case "description":
|
9157
9157
|
$ = T;
|
@@ -9168,8 +9168,8 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9168
9168
|
break;
|
9169
9169
|
}
|
9170
9170
|
return {
|
9171
|
-
nameColumn:
|
9172
|
-
subtitleColumn:
|
9171
|
+
nameColumn: C,
|
9172
|
+
subtitleColumn: E,
|
9173
9173
|
descriptionColumn: $,
|
9174
9174
|
countColumns: b,
|
9175
9175
|
primaryColumns: L,
|
@@ -9177,8 +9177,8 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9177
9177
|
labelColumn: w
|
9178
9178
|
};
|
9179
9179
|
}, [t]), c = me(
|
9180
|
-
(
|
9181
|
-
r != null && r(
|
9180
|
+
(C) => {
|
9181
|
+
r != null && r(C) ? s == null || s(C) : n == null || n(C);
|
9182
9182
|
},
|
9183
9183
|
[r, n, s]
|
9184
9184
|
), {
|
@@ -9191,16 +9191,16 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9191
9191
|
labelColumn: v
|
9192
9192
|
} = l;
|
9193
9193
|
return me(
|
9194
|
-
(
|
9195
|
-
const
|
9196
|
-
return /* @__PURE__ */ f.jsx(yl, { "aria-labelledby": `data-list-${
|
9194
|
+
(C) => {
|
9195
|
+
const E = e(C), $ = r == null ? void 0 : r(C);
|
9196
|
+
return /* @__PURE__ */ f.jsx(yl, { "aria-labelledby": `data-list-${E}`, isExpanded: $, children: /* @__PURE__ */ f.jsxs(vl, { children: [
|
9197
9197
|
o && /* @__PURE__ */ f.jsx(
|
9198
9198
|
bl,
|
9199
9199
|
{
|
9200
|
-
"aria-labelledby": `data-list-check-${
|
9201
|
-
name: `data-list-check-${
|
9202
|
-
isChecked: r == null ? void 0 : r(
|
9203
|
-
onClick: () => c(
|
9200
|
+
"aria-labelledby": `data-list-check-${E}`,
|
9201
|
+
name: `data-list-check-${E}`,
|
9202
|
+
isChecked: r == null ? void 0 : r(C),
|
9203
|
+
onClick: () => c(C)
|
9204
9204
|
}
|
9205
9205
|
),
|
9206
9206
|
/* @__PURE__ */ f.jsx(
|
@@ -9209,17 +9209,17 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9209
9209
|
dataListCells: [
|
9210
9210
|
/* @__PURE__ */ f.jsx(Ti, { width: 5, children: /* @__PURE__ */ f.jsx(Er, { children: /* @__PURE__ */ f.jsxs(kn, { hasGutter: !0, children: [
|
9211
9211
|
/* @__PURE__ */ f.jsxs(Er, { alignItems: { default: "alignItemsCenter" }, children: [
|
9212
|
-
(d == null ? void 0 : d.icon) && /* @__PURE__ */ f.jsx(ga, { size: "xl", children: d == null ? void 0 : d.icon(
|
9212
|
+
(d == null ? void 0 : d.icon) && /* @__PURE__ */ f.jsx(ga, { size: "xl", children: d == null ? void 0 : d.icon(C) }),
|
9213
9213
|
/* @__PURE__ */ f.jsxs(kn, { children: [
|
9214
|
-
/* @__PURE__ */ f.jsx(Mr, { headingLevel: "h2", style: { marginTop: -4, fontWeight: "bold" }, children: /* @__PURE__ */ f.jsx("span", { id: `data-list-${
|
9215
|
-
h ? /* @__PURE__ */ f.jsx(In, { component: "small", style: { opacity: 0.7 }, children: /* @__PURE__ */ f.jsx(Et, { column: h, item:
|
9214
|
+
/* @__PURE__ */ f.jsx(Mr, { headingLevel: "h2", style: { marginTop: -4, fontWeight: "bold" }, children: /* @__PURE__ */ f.jsx("span", { id: `data-list-${E}`, children: /* @__PURE__ */ f.jsx(Et, { column: d, item: C }) }) }),
|
9215
|
+
h ? /* @__PURE__ */ f.jsx(In, { component: "small", style: { opacity: 0.7 }, children: /* @__PURE__ */ f.jsx(Et, { column: h, item: C }) }) : a && /* @__PURE__ */ f.jsx(In, { component: "small", style: { opacity: 0.7 }, children: a })
|
9216
9216
|
] })
|
9217
9217
|
] }),
|
9218
9218
|
(u || p.length > 0 || m.length > 0 || v) && /* @__PURE__ */ f.jsxs(_s, { isCompact: !0, children: [
|
9219
|
-
u && (!u.value || u.value(
|
9220
|
-
p.map((b) => b.value && !b.value(
|
9219
|
+
u && (!u.value || u.value(C)) && /* @__PURE__ */ f.jsx(Kr, { children: /* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(Et, { column: u, item: C }) }) }, u.header),
|
9220
|
+
p.map((b) => b.value && !b.value(C) ? /* @__PURE__ */ f.jsx(f.Fragment, {}) : /* @__PURE__ */ f.jsxs(Kr, { children: [
|
9221
9221
|
/* @__PURE__ */ f.jsx(ki, { style: { whiteSpace: "nowrap" }, children: b.header }),
|
9222
|
-
/* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(Et, { column: b, item:
|
9222
|
+
/* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(Et, { column: b, item: C }) })
|
9223
9223
|
] }, b.header)),
|
9224
9224
|
m.length > 0 && /* @__PURE__ */ f.jsx(Kr, { children: /* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(
|
9225
9225
|
"div",
|
@@ -9235,7 +9235,7 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9235
9235
|
{
|
9236
9236
|
style: { display: "flex", gap: 6, alignItems: "baseline" },
|
9237
9237
|
children: [
|
9238
|
-
/* @__PURE__ */ f.jsx(Et, { column: b, item:
|
9238
|
+
/* @__PURE__ */ f.jsx(Et, { column: b, item: C }),
|
9239
9239
|
/* @__PURE__ */ f.jsx("small", { style: { opacity: 0.7 }, children: b.header })
|
9240
9240
|
]
|
9241
9241
|
},
|
@@ -9243,12 +9243,12 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9243
9243
|
))
|
9244
9244
|
}
|
9245
9245
|
) }) }, "counts"),
|
9246
|
-
v && /* @__PURE__ */ f.jsx(Kr, { children: /* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(Et, { column: v, item:
|
9246
|
+
v && /* @__PURE__ */ f.jsx(Kr, { children: /* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(Et, { column: v, item: C }) }) }, v.header)
|
9247
9247
|
] })
|
9248
9248
|
] }) }) }, "primary"),
|
9249
|
-
y.length > 0 ? /* @__PURE__ */ f.jsx(Ti, { children: /* @__PURE__ */ f.jsx(_s, { isCompact: !0, children: y.map((b) => b.value && !b.value(
|
9249
|
+
y.length > 0 ? /* @__PURE__ */ f.jsx(Ti, { children: /* @__PURE__ */ f.jsx(_s, { isCompact: !0, children: y.map((b) => b.value && !b.value(C) ? /* @__PURE__ */ f.jsx(f.Fragment, {}) : /* @__PURE__ */ f.jsxs(Kr, { children: [
|
9250
9250
|
/* @__PURE__ */ f.jsx(ki, { style: { whiteSpace: "nowrap" }, children: b.header }),
|
9251
|
-
/* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(Et, { column: b, item:
|
9251
|
+
/* @__PURE__ */ f.jsx(Jr, { children: /* @__PURE__ */ f.jsx(Et, { column: b, item: C }) })
|
9252
9252
|
] }, b.header)) }) }, "secondary") : null
|
9253
9253
|
]
|
9254
9254
|
}
|
@@ -9266,13 +9266,13 @@ function ay(t, e, r, n, s, i, a, o) {
|
|
9266
9266
|
{
|
9267
9267
|
actions: i,
|
9268
9268
|
position: Ms.right,
|
9269
|
-
selectedItem:
|
9269
|
+
selectedItem: C,
|
9270
9270
|
iconOnly: !0
|
9271
9271
|
}
|
9272
9272
|
)
|
9273
9273
|
}
|
9274
9274
|
)
|
9275
|
-
] }) },
|
9275
|
+
] }) }, E);
|
9276
9276
|
},
|
9277
9277
|
[
|
9278
9278
|
e,
|
@@ -9313,7 +9313,7 @@ function oy(t) {
|
|
9313
9313
|
"select-all"
|
9314
9314
|
)
|
9315
9315
|
],
|
9316
|
-
onToggle: (
|
9316
|
+
onToggle: (C) => r(C)
|
9317
9317
|
}
|
9318
9318
|
);
|
9319
9319
|
}, [a, c, d, h]), m = Ie(() => /* @__PURE__ */ f.jsx(
|
@@ -9380,7 +9380,7 @@ function uy(t) {
|
|
9380
9380
|
} = t, m = sr("md"), { viewType: p, setViewType: y } = t;
|
9381
9381
|
let { toolbarActions: v } = t;
|
9382
9382
|
v = v ?? [];
|
9383
|
-
const
|
9383
|
+
const C = me((j, P) => s(P), [s]), E = me(
|
9384
9384
|
(j, P) => i(P),
|
9385
9385
|
[i]
|
9386
9386
|
), $ = a !== void 0, b = v !== void 0 && v.length > 0, w = t.showSelect === !0 || o !== void 0 && v && v.find((j) => Ze.bulk === j.type), L = w || $ || b, [M, T] = pe(
|
@@ -9560,8 +9560,8 @@ function uy(t) {
|
|
9560
9560
|
itemCount: e,
|
9561
9561
|
perPage: n,
|
9562
9562
|
page: r,
|
9563
|
-
onSetPage:
|
9564
|
-
onPerPageSelect:
|
9563
|
+
onSetPage: C,
|
9564
|
+
onPerPageSelect: E,
|
9565
9565
|
style: { marginTop: -8, marginBottom: -8 }
|
9566
9566
|
}
|
9567
9567
|
) })
|
@@ -9716,7 +9716,7 @@ function my(t) {
|
|
9716
9716
|
onSelect: m,
|
9717
9717
|
unselectAll: p,
|
9718
9718
|
expandedRow: y
|
9719
|
-
} = t, [v] = xt(),
|
9719
|
+
} = t, [v] = xt(), C = t.showSelect || (c == null ? void 0 : c.find((T) => Ze.bulk === T.type)) !== void 0, E = jr(null), [$, b] = pe({
|
9720
9720
|
left: 0,
|
9721
9721
|
right: 0,
|
9722
9722
|
top: 0,
|
@@ -9732,14 +9732,14 @@ function my(t) {
|
|
9732
9732
|
(T) => w(T.currentTarget),
|
9733
9733
|
[w]
|
9734
9734
|
);
|
9735
|
-
zs(
|
9735
|
+
zs(E, () => w(E.current)), Ae(() => w(E.current), [w]);
|
9736
9736
|
const M = Bn();
|
9737
9737
|
return /* @__PURE__ */ f.jsxs(
|
9738
9738
|
"div",
|
9739
9739
|
{
|
9740
9740
|
className: "pf-c-scroll-inner-wrapper",
|
9741
9741
|
style: { height: "100%", marginBottom: -1 },
|
9742
|
-
ref:
|
9742
|
+
ref: E,
|
9743
9743
|
onScroll: L,
|
9744
9744
|
children: [
|
9745
9745
|
/* @__PURE__ */ f.jsxs(
|
@@ -9754,7 +9754,7 @@ function my(t) {
|
|
9754
9754
|
py,
|
9755
9755
|
{
|
9756
9756
|
...t,
|
9757
|
-
showSelect:
|
9757
|
+
showSelect: C,
|
9758
9758
|
scrollLeft: $.left > 0,
|
9759
9759
|
scrollRight: $.right > 1,
|
9760
9760
|
tableColumns: e,
|
@@ -9762,7 +9762,7 @@ function my(t) {
|
|
9762
9762
|
}
|
9763
9763
|
),
|
9764
9764
|
/* @__PURE__ */ f.jsx(rf, { children: d === void 0 ? new Array(h).fill(0).map((T, x) => /* @__PURE__ */ f.jsx(Qr, { children: /* @__PURE__ */ f.jsx(Vt, { children: /* @__PURE__ */ f.jsx("div", { style: { paddingTop: 5, paddingBottom: 5 }, children: /* @__PURE__ */ f.jsx(Cr, { height: "27px" }) }) }) }, x)) : r === void 0 ? new Array(Math.min(h, d)).fill(0).map((T, x) => /* @__PURE__ */ f.jsxs(Qr, { children: [
|
9765
|
-
|
9765
|
+
C && /* @__PURE__ */ f.jsx(Vt, {}),
|
9766
9766
|
/* @__PURE__ */ f.jsx(Vt, { colSpan: e.length, children: /* @__PURE__ */ f.jsx("div", { style: { paddingTop: 5, paddingBottom: 5 }, children: /* @__PURE__ */ f.jsx(Cr, { height: "27px" }) }) })
|
9767
9767
|
] }, x)) : r == null ? void 0 : r.map((T, x) => /* @__PURE__ */ f.jsx(
|
9768
9768
|
gy,
|
@@ -9775,7 +9775,7 @@ function my(t) {
|
|
9775
9775
|
unselectItem: s,
|
9776
9776
|
rowActions: l,
|
9777
9777
|
rowIndex: x,
|
9778
|
-
showSelect:
|
9778
|
+
showSelect: C,
|
9779
9779
|
scrollLeft: $.left > 0,
|
9780
9780
|
scrollRight: $.right > 1,
|
9781
9781
|
unselectAll: p,
|
@@ -9872,63 +9872,64 @@ function py(t) {
|
|
9872
9872
|
function gy(t) {
|
9873
9873
|
const {
|
9874
9874
|
columns: e,
|
9875
|
-
|
9876
|
-
|
9877
|
-
|
9878
|
-
|
9879
|
-
|
9880
|
-
|
9881
|
-
|
9882
|
-
|
9883
|
-
|
9884
|
-
|
9885
|
-
|
9875
|
+
unselectAll: r,
|
9876
|
+
selectItem: n,
|
9877
|
+
unselectItem: s,
|
9878
|
+
isItemSelected: i,
|
9879
|
+
isSelectMultiple: a,
|
9880
|
+
item: o,
|
9881
|
+
rowActions: l,
|
9882
|
+
rowIndex: c,
|
9883
|
+
showSelect: d,
|
9884
|
+
onSelect: h,
|
9885
|
+
expandedRow: u
|
9886
|
+
} = t, [m, p] = pe(!1), y = Bn(), v = u == null ? void 0 : u(o);
|
9886
9887
|
return /* @__PURE__ */ f.jsxs(f.Fragment, { children: [
|
9887
9888
|
/* @__PURE__ */ f.jsxs(
|
9888
9889
|
Qr,
|
9889
9890
|
{
|
9890
|
-
className:
|
9891
|
-
isRowSelected:
|
9891
|
+
className: i ? "selected" : void 0,
|
9892
|
+
isRowSelected: m,
|
9892
9893
|
style: {
|
9893
9894
|
boxShadow: "unset",
|
9894
|
-
borderBottom:
|
9895
|
+
borderBottom: m ? "unset" : void 0
|
9895
9896
|
},
|
9896
9897
|
children: [
|
9897
|
-
|
9898
|
+
u && /* @__PURE__ */ f.jsx(
|
9898
9899
|
Vt,
|
9899
9900
|
{
|
9900
|
-
expand:
|
9901
|
-
rowIndex:
|
9902
|
-
isExpanded:
|
9903
|
-
onToggle: () =>
|
9901
|
+
expand: v ? {
|
9902
|
+
rowIndex: c,
|
9903
|
+
isExpanded: m,
|
9904
|
+
onToggle: () => p((C) => !C)
|
9904
9905
|
} : void 0,
|
9905
|
-
style: { paddingLeft:
|
9906
|
+
style: { paddingLeft: v ? 8 : 4 }
|
9906
9907
|
}
|
9907
9908
|
),
|
9908
|
-
|
9909
|
+
d && /* @__PURE__ */ f.jsx(
|
9909
9910
|
en,
|
9910
9911
|
{
|
9911
|
-
select:
|
9912
|
-
onSelect: (
|
9913
|
-
E ?
|
9912
|
+
select: i !== void 0 ? {
|
9913
|
+
onSelect: (C, E) => {
|
9914
|
+
E ? n == null || n(o) : s == null || s(o);
|
9914
9915
|
},
|
9915
|
-
isSelected:
|
9916
|
+
isSelected: i
|
9916
9917
|
} : void 0,
|
9917
9918
|
isStickyColumn: !0,
|
9918
9919
|
stickyMinWidth: "0px",
|
9919
9920
|
hasRightBorder: t.scrollLeft
|
9920
9921
|
}
|
9921
9922
|
),
|
9922
|
-
|
9923
|
+
h && /* @__PURE__ */ f.jsx(
|
9923
9924
|
Vt,
|
9924
9925
|
{
|
9925
9926
|
select: {
|
9926
|
-
rowIndex:
|
9927
|
-
onSelect: (
|
9928
|
-
|
9927
|
+
rowIndex: c,
|
9928
|
+
onSelect: () => {
|
9929
|
+
a || r == null || r(), n == null || n(o), h == null || h(o);
|
9929
9930
|
},
|
9930
|
-
isSelected:
|
9931
|
-
variant:
|
9931
|
+
isSelected: i ?? !1,
|
9932
|
+
variant: a ? "checkbox" : "radio"
|
9932
9933
|
},
|
9933
9934
|
isStickyColumn: !0,
|
9934
9935
|
stickyMinWidth: "0px",
|
@@ -9939,8 +9940,8 @@ function gy(t) {
|
|
9939
9940
|
yy,
|
9940
9941
|
{
|
9941
9942
|
columns: e,
|
9942
|
-
item:
|
9943
|
-
rowActions:
|
9943
|
+
item: o,
|
9944
|
+
rowActions: l,
|
9944
9945
|
scrollLeft: t.scrollLeft,
|
9945
9946
|
scrollRight: t.scrollRight
|
9946
9947
|
}
|
@@ -9948,25 +9949,25 @@ function gy(t) {
|
|
9948
9949
|
]
|
9949
9950
|
}
|
9950
9951
|
),
|
9951
|
-
|
9952
|
+
u && m && v && /* @__PURE__ */ f.jsxs(
|
9952
9953
|
Qr,
|
9953
9954
|
{
|
9954
|
-
className:
|
9955
|
-
isExpanded:
|
9955
|
+
className: i ? "selected" : void 0,
|
9956
|
+
isExpanded: m,
|
9956
9957
|
style: { boxShadow: "unset" },
|
9957
9958
|
children: [
|
9958
9959
|
/* @__PURE__ */ f.jsx(Vt, {}),
|
9959
|
-
|
9960
|
-
|
9960
|
+
d && /* @__PURE__ */ f.jsx(en, { isStickyColumn: !0, stickyMinWidth: "0px", hasRightBorder: t.scrollLeft }),
|
9961
|
+
h && /* @__PURE__ */ f.jsx(Vt, { isStickyColumn: !0, stickyMinWidth: "0px", hasRightBorder: t.scrollLeft }),
|
9961
9962
|
/* @__PURE__ */ f.jsx(
|
9962
9963
|
Vt,
|
9963
9964
|
{
|
9964
|
-
colSpan: e.filter((
|
9965
|
-
style: { paddingBottom:
|
9966
|
-
children: /* @__PURE__ */ f.jsx(nf, { children:
|
9965
|
+
colSpan: e.filter((C) => C.enabled !== !1).length,
|
9966
|
+
style: { paddingBottom: y.tableLayout === "compact" ? 12 : 24, paddingTop: 0 },
|
9967
|
+
children: /* @__PURE__ */ f.jsx(nf, { children: v })
|
9967
9968
|
}
|
9968
9969
|
),
|
9969
|
-
|
9970
|
+
l !== void 0 && l.length > 0 && /* @__PURE__ */ f.jsx(
|
9970
9971
|
Vt,
|
9971
9972
|
{
|
9972
9973
|
isActionCell: !0,
|
@@ -10075,7 +10076,7 @@ function g0(t, e, r) {
|
|
10075
10076
|
selectItems: o,
|
10076
10077
|
unselectAll: l,
|
10077
10078
|
allSelected: c
|
10078
|
-
} = wy(t, e), { sorted: d, sort: h, setSort: u } = wu(t), { filtered: m, setFilterFn: p } = xu(d, e), { searched: y, search: v, setSearch:
|
10079
|
+
} = wy(t, e), { sorted: d, sort: h, setSort: u } = wu(t), { filtered: m, setFilterFn: p } = xu(d, e), { searched: y, search: v, setSearch: C, setSearchFn: E } = Sy(
|
10079
10080
|
m,
|
10080
10081
|
e,
|
10081
10082
|
r == null ? void 0 : r.search
|
@@ -10097,8 +10098,8 @@ function g0(t, e, r) {
|
|
10097
10098
|
setFilterFn: p,
|
10098
10099
|
setPage: w,
|
10099
10100
|
setPerPage: M,
|
10100
|
-
setSearch:
|
10101
|
-
setSearchFn:
|
10101
|
+
setSearch: C,
|
10102
|
+
setSearchFn: E,
|
10102
10103
|
setSort: u,
|
10103
10104
|
sort: h,
|
10104
10105
|
sorted: d,
|
@@ -10121,8 +10122,8 @@ function g0(t, e, r) {
|
|
10121
10122
|
p,
|
10122
10123
|
w,
|
10123
10124
|
M,
|
10124
|
-
E,
|
10125
10125
|
C,
|
10126
|
+
E,
|
10126
10127
|
u,
|
10127
10128
|
h,
|
10128
10129
|
d,
|
@@ -10220,17 +10221,17 @@ function xy(t, e) {
|
|
10220
10221
|
Ae(() => {
|
10221
10222
|
n((m) => {
|
10222
10223
|
let p = !1;
|
10223
|
-
const y = t ? t.reduce((
|
10224
|
+
const y = t ? t.reduce((E, $) => {
|
10224
10225
|
const b = e($);
|
10225
|
-
return
|
10226
|
+
return E[b] = $, m[b] && m[b] !== $ && (p = !0, m[b] = $), E;
|
10226
10227
|
}, {}) : {}, v = {};
|
10227
|
-
for (const
|
10228
|
-
y[
|
10229
|
-
const
|
10230
|
-
if (
|
10228
|
+
for (const E in m)
|
10229
|
+
y[E] || (v[E] = !0);
|
10230
|
+
const C = Object.keys(v);
|
10231
|
+
if (C.length) {
|
10231
10232
|
p = !0;
|
10232
|
-
for (const
|
10233
|
-
delete m[
|
10233
|
+
for (const E of C)
|
10234
|
+
delete m[E];
|
10234
10235
|
}
|
10235
10236
|
return p ? { ...m } : m;
|
10236
10237
|
});
|
@@ -10401,7 +10402,7 @@ function $y(t) {
|
|
10401
10402
|
onClose: o,
|
10402
10403
|
processingText: l,
|
10403
10404
|
isDanger: c
|
10404
|
-
} = t, [d] = xt(), [h, u] = pe(!0), [m, p] = pe(!1), [y, v] = pe(0), [
|
10405
|
+
} = t, [d] = xt(), [h, u] = pe(!0), [m, p] = pe(!1), [y, v] = pe(0), [C, E] = pe(""), [$, b] = pe(), [w] = pe(() => new AbortController()), [L, M] = Or(), T = me(() => {
|
10405
10406
|
p(!0), w.abort(), u(!1), b((G) => {
|
10406
10407
|
const Y = { ...G };
|
10407
10408
|
for (const Q of r) {
|
@@ -10439,7 +10440,7 @@ function $y(t) {
|
|
10439
10440
|
...B ?? {},
|
10440
10441
|
[S]: "Unknown error"
|
10441
10442
|
}));
|
10442
|
-
|
10443
|
+
E(d.errorText);
|
10443
10444
|
}
|
10444
10445
|
} finally {
|
10445
10446
|
w.signal.aborted || v(++Q);
|
@@ -10524,9 +10525,9 @@ function $y(t) {
|
|
10524
10525
|
Ed,
|
10525
10526
|
{
|
10526
10527
|
value: y / r.length * 100,
|
10527
|
-
title: w.signal.aborted ? d.canceledText :
|
10528
|
+
title: w.signal.aborted ? d.canceledText : C ? d.errorText : h ? l ?? d.processingText : d.successText,
|
10528
10529
|
size: Cd.lg,
|
10529
|
-
variant:
|
10530
|
+
variant: C || m ? Ia.danger : y === r.length ? Ia.success : void 0
|
10530
10531
|
}
|
10531
10532
|
) })
|
10532
10533
|
]
|
@@ -10600,7 +10601,7 @@ function jy(t) {
|
|
10600
10601
|
isDanger: u
|
10601
10602
|
} = t, [m, p] = Or(), [y] = xt(), v = me(() => {
|
10602
10603
|
p(void 0), c == null || c();
|
10603
|
-
}, [c, p]),
|
10604
|
+
}, [c, p]), C = Ie(() => o && r.some(o) ? r.sort((P, R) => vs(o(P), o(R))) : r, [r, o]), { paged: E, page: $, perPage: b, setPage: w, setPerPage: L } = Xs(C), [M, T] = pe(!d), x = Ie(() => o && r.some(o) ? [
|
10604
10605
|
{
|
10605
10606
|
header: "",
|
10606
10607
|
cell: (P) => o(P) ? /* @__PURE__ */ f.jsx(
|
@@ -10646,7 +10647,7 @@ function jy(t) {
|
|
10646
10647
|
/* @__PURE__ */ f.jsx(
|
10647
10648
|
Js,
|
10648
10649
|
{
|
10649
|
-
pageItems:
|
10650
|
+
pageItems: E,
|
10650
10651
|
itemCount: r.length,
|
10651
10652
|
tableColumns: x,
|
10652
10653
|
keyFn: n,
|
@@ -11278,12 +11279,12 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11278
11279
|
value: t,
|
11279
11280
|
message: ""
|
11280
11281
|
}, Jo = async (t, e, r, n, s) => {
|
11281
|
-
const { ref: i, refs: a, required: o, maxLength: l, minLength: c, min: d, max: h, pattern: u, validate: m, name: p, valueAsNumber: y, mount: v, disabled:
|
11282
|
-
if (!v ||
|
11282
|
+
const { ref: i, refs: a, required: o, maxLength: l, minLength: c, min: d, max: h, pattern: u, validate: m, name: p, valueAsNumber: y, mount: v, disabled: C } = t._f, E = ue(e, p);
|
11283
|
+
if (!v || C)
|
11283
11284
|
return {};
|
11284
11285
|
const $ = a ? a[0] : i, b = (R) => {
|
11285
11286
|
n && $.reportValidity && ($.setCustomValidity(nn(R) ? "" : R || ""), $.reportValidity());
|
11286
|
-
}, w = {}, L = Ea(i), M = Wn(i), T = L || M, x = (y || _a(i)) && at(i.value) && at(
|
11287
|
+
}, w = {}, L = Ea(i), M = Wn(i), T = L || M, x = (y || _a(i)) && at(i.value) && at(E) || Is(i) && i.value === "" || E === "" || Array.isArray(E) && !E.length, j = Du.bind(null, p, r, w), P = (R, A, q, G = ur.maxLength, Y = ur.minLength) => {
|
11287
11288
|
const Q = R ? A : q;
|
11288
11289
|
w[p] = {
|
11289
11290
|
type: R ? G : Y,
|
@@ -11292,7 +11293,7 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11292
11293
|
...j(R ? G : Y, Q)
|
11293
11294
|
};
|
11294
11295
|
};
|
11295
|
-
if (s ? !Array.isArray(
|
11296
|
+
if (s ? !Array.isArray(E) || !E.length : o && (!T && (x || _t(E)) || nn(E) && !E || M && !Ru(a).isValid || L && !Au(a).isValid)) {
|
11296
11297
|
const { value: R, message: A } = ws(o) ? { value: !!o, message: o } : Zr(o);
|
11297
11298
|
if (R && (w[p] = {
|
11298
11299
|
type: ur.required,
|
@@ -11305,24 +11306,24 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11305
11306
|
if (!x && (!_t(d) || !_t(h))) {
|
11306
11307
|
let R, A;
|
11307
11308
|
const q = Zr(h), G = Zr(d);
|
11308
|
-
if (!_t(
|
11309
|
-
const Y = i.valueAsNumber ||
|
11309
|
+
if (!_t(E) && !isNaN(E)) {
|
11310
|
+
const Y = i.valueAsNumber || E && +E;
|
11310
11311
|
_t(q.value) || (R = Y > q.value), _t(G.value) || (A = Y < G.value);
|
11311
11312
|
} else {
|
11312
|
-
const Y = i.valueAsDate || new Date(
|
11313
|
-
tr(q.value) &&
|
11313
|
+
const Y = i.valueAsDate || new Date(E), Q = (S) => /* @__PURE__ */ new Date((/* @__PURE__ */ new Date()).toDateString() + " " + S), te = i.type == "time", N = i.type == "week";
|
11314
|
+
tr(q.value) && E && (R = te ? Q(E) > Q(q.value) : N ? E > q.value : Y > new Date(q.value)), tr(G.value) && E && (A = te ? Q(E) < Q(G.value) : N ? E < G.value : Y < new Date(G.value));
|
11314
11315
|
}
|
11315
11316
|
if ((R || A) && (P(!!R, q.message, G.message, ur.max, ur.min), !r))
|
11316
11317
|
return b(w[p].message), w;
|
11317
11318
|
}
|
11318
|
-
if ((l || c) && !x && (tr(
|
11319
|
-
const R = Zr(l), A = Zr(c), q = !_t(R.value) &&
|
11319
|
+
if ((l || c) && !x && (tr(E) || s && Array.isArray(E))) {
|
11320
|
+
const R = Zr(l), A = Zr(c), q = !_t(R.value) && E.length > +R.value, G = !_t(A.value) && E.length < +A.value;
|
11320
11321
|
if ((q || G) && (P(q, R.message, A.message), !r))
|
11321
11322
|
return b(w[p].message), w;
|
11322
11323
|
}
|
11323
|
-
if (u && !x && tr(
|
11324
|
+
if (u && !x && tr(E)) {
|
11324
11325
|
const { value: R, message: A } = Zr(u);
|
11325
|
-
if (Ds(R) && !
|
11326
|
+
if (Ds(R) && !E.match(R) && (w[p] = {
|
11326
11327
|
type: ur.pattern,
|
11327
11328
|
message: A,
|
11328
11329
|
ref: i,
|
@@ -11332,7 +11333,7 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11332
11333
|
}
|
11333
11334
|
if (m) {
|
11334
11335
|
if (_r(m)) {
|
11335
|
-
const R = await m(
|
11336
|
+
const R = await m(E, e), A = Ko(R, $);
|
11336
11337
|
if (A && (w[p] = {
|
11337
11338
|
...A,
|
11338
11339
|
...j(ur.validate, A.message)
|
@@ -11343,7 +11344,7 @@ var Zr = (t) => pt(t) && !Ds(t) ? t : {
|
|
11343
11344
|
for (const A in m) {
|
11344
11345
|
if (!Mt(R) && !r)
|
11345
11346
|
break;
|
11346
|
-
const q = Ko(await m[A](
|
11347
|
+
const q = Ko(await m[A](E, e), $, A);
|
11347
11348
|
q && (R = {
|
11348
11349
|
...q,
|
11349
11350
|
...j(A, q.message)
|
@@ -11521,9 +11522,9 @@ function Jy(t = {}, e) {
|
|
11521
11522
|
values: vi(),
|
11522
11523
|
array: vi(),
|
11523
11524
|
state: vi()
|
11524
|
-
}, m = t.resetOptions && t.resetOptions.keepDirtyValues, p = qo(r.mode), y = qo(r.reValidateMode), v = r.criteriaMode === Ht.all,
|
11525
|
+
}, m = t.resetOptions && t.resetOptions.keepDirtyValues, p = qo(r.mode), y = qo(r.reValidateMode), v = r.criteriaMode === Ht.all, C = (k) => (z) => {
|
11525
11526
|
clearTimeout(d), d = setTimeout(k, z);
|
11526
|
-
},
|
11527
|
+
}, E = async (k) => {
|
11527
11528
|
if (h.isValid || k) {
|
11528
11529
|
const z = r.resolver ? Mt((await x()).errors) : await P(s, !0);
|
11529
11530
|
z !== n.isValid && u.state.next({
|
@@ -11563,7 +11564,7 @@ function Jy(t = {}, e) {
|
|
11563
11564
|
const se = ue(s, k);
|
11564
11565
|
if (se) {
|
11565
11566
|
const K = ue(a, k, at(U) ? ue(i, k) : U);
|
11566
|
-
at(K) || ie && ie.defaultChecked || z ? Qe(a, k, z ? K : xi(se._f)) : Y(k, K), o.mount &&
|
11567
|
+
at(K) || ie && ie.defaultChecked || z ? Qe(a, k, z ? K : xi(se._f)) : Y(k, K), o.mount && E();
|
11567
11568
|
}
|
11568
11569
|
}, M = (k, z, U, ie, se) => {
|
11569
11570
|
let K = !1, he = !1;
|
@@ -11582,7 +11583,7 @@ function Jy(t = {}, e) {
|
|
11582
11583
|
return K && se && u.state.next(De), K ? De : {};
|
11583
11584
|
}, T = (k, z, U, ie) => {
|
11584
11585
|
const se = ue(n.errors, k), K = h.isValid && nn(z) && n.isValid !== z;
|
11585
|
-
if (t.delayError && U ? (c =
|
11586
|
+
if (t.delayError && U ? (c = C(() => w(k, U)), c(t.delayError)) : (clearTimeout(d), c = null, U ? Qe(n.errors, k, U) : vt(n.errors, k)), (U ? !Rr(se, U) : se) || !Mt(ie) || K) {
|
11586
11587
|
const he = {
|
11587
11588
|
...ie,
|
11588
11589
|
...K && nn(z) ? { isValid: z } : {},
|
@@ -11673,7 +11674,7 @@ function Jy(t = {}, e) {
|
|
11673
11674
|
type: k.type,
|
11674
11675
|
values: { ...a }
|
11675
11676
|
}), Ye)
|
11676
|
-
return h.isValid &&
|
11677
|
+
return h.isValid && E(), $t && u.state.next({ name: U, ...jt ? {} : St });
|
11677
11678
|
if (!ge && jt && u.state.next({ ...n }), $(!0), r.resolver) {
|
11678
11679
|
const { errors: _ } = await x([U]), D = Xo(n.errors, s, U), I = Xo(_, s, D.name || U);
|
11679
11680
|
he = I.error, U = I.name, De = Mt(_);
|
@@ -11691,7 +11692,7 @@ function Jy(t = {}, e) {
|
|
11691
11692
|
k ? (ie = (await Promise.all(se.map(async (K) => {
|
11692
11693
|
const he = ue(s, K);
|
11693
11694
|
return await P(he && he._f ? { [K]: he } : he);
|
11694
|
-
}))).every(Boolean), !(!ie && !n.isValid) &&
|
11695
|
+
}))).every(Boolean), !(!ie && !n.isValid) && E()) : ie = U = await P(s);
|
11695
11696
|
return u.state.next({
|
11696
11697
|
...!tr(k) || h.isValid && U !== n.isValid ? {} : { name: k },
|
11697
11698
|
...r.resolver || !k ? { isValid: U } : {},
|
@@ -11733,7 +11734,7 @@ function Jy(t = {}, e) {
|
|
11733
11734
|
}), u.state.next({
|
11734
11735
|
...n,
|
11735
11736
|
...z.keepDirty ? { isDirty: A() } : {}
|
11736
|
-
}), !z.keepIsValid &&
|
11737
|
+
}), !z.keepIsValid && E();
|
11737
11738
|
}, ye = (k, z = {}) => {
|
11738
11739
|
let U = ue(s, k);
|
11739
11740
|
const ie = nn(z.disabled);
|
@@ -11801,7 +11802,7 @@ function Jy(t = {}, e) {
|
|
11801
11802
|
errors: n.errors
|
11802
11803
|
});
|
11803
11804
|
}, $e = (k, z = {}) => {
|
11804
|
-
ue(s, k) && (at(z.defaultValue) ? te(k, ue(i, k)) : (te(k, z.defaultValue), Qe(i, k, z.defaultValue)), z.keepTouched || vt(n.touchedFields, k), z.keepDirty || (vt(n.dirtyFields, k), n.isDirty = z.defaultValue ? A(k, ue(i, k)) : A()), z.keepError || (vt(n.errors, k), h.isValid &&
|
11805
|
+
ue(s, k) && (at(z.defaultValue) ? te(k, ue(i, k)) : (te(k, z.defaultValue), Qe(i, k, z.defaultValue)), z.keepTouched || vt(n.touchedFields, k), z.keepDirty || (vt(n.dirtyFields, k), n.isDirty = z.defaultValue ? A(k, ue(i, k)) : A()), z.keepError || (vt(n.errors, k), h.isValid && E()), u.state.next({ ...n }));
|
11805
11806
|
}, xe = (k, z = {}) => {
|
11806
11807
|
const U = k || i, ie = dr(U), se = k && !Mt(k) ? ie : i;
|
11807
11808
|
if (z.keepDefaultValues || (i = U), !z.keepValues) {
|
@@ -11872,7 +11873,7 @@ function Jy(t = {}, e) {
|
|
11872
11873
|
_executeSchema: x,
|
11873
11874
|
_getWatch: q,
|
11874
11875
|
_getDirty: A,
|
11875
|
-
_updateValid:
|
11876
|
+
_updateValid: E,
|
11876
11877
|
_removeUnmounted: R,
|
11877
11878
|
_updateFieldArray: b,
|
11878
11879
|
_getFieldArray: G,
|
@@ -12265,8 +12266,8 @@ function O0(t) {
|
|
12265
12266
|
} = t, { label: p } = t, {
|
12266
12267
|
control: y,
|
12267
12268
|
setValue: v,
|
12268
|
-
trigger:
|
12269
|
-
formState: { isSubmitting:
|
12269
|
+
trigger: C,
|
12270
|
+
formState: { isSubmitting: E, isValidating: $ }
|
12270
12271
|
} = Kt(), [b] = xt();
|
12271
12272
|
return /* @__PURE__ */ f.jsx(
|
12272
12273
|
Hr,
|
@@ -12278,13 +12279,13 @@ function O0(t) {
|
|
12278
12279
|
Fy,
|
12279
12280
|
{
|
12280
12281
|
...m,
|
12281
|
-
onBlur: () =>
|
12282
|
+
onBlur: () => C(M),
|
12282
12283
|
isRequired: n,
|
12283
12284
|
id: d ?? M.split(".").join("-"),
|
12284
12285
|
value: L,
|
12285
12286
|
onChange: w,
|
12286
12287
|
helperTextInvalid: T != null && T.message ? o && $ ? b.validating : T == null ? void 0 : T.message : void 0,
|
12287
|
-
isReadOnly: r ||
|
12288
|
+
isReadOnly: r || E,
|
12288
12289
|
minLength: void 0,
|
12289
12290
|
maxLength: void 0,
|
12290
12291
|
children: l && /* @__PURE__ */ f.jsx(
|
@@ -12301,7 +12302,7 @@ function O0(t) {
|
|
12301
12302
|
}
|
12302
12303
|
}, l),
|
12303
12304
|
"aria-label": "Options menu",
|
12304
|
-
isDisabled:
|
12305
|
+
isDisabled: E,
|
12305
12306
|
children: /* @__PURE__ */ f.jsx(ra, {})
|
12306
12307
|
}
|
12307
12308
|
)
|
@@ -12487,9 +12488,9 @@ var ve = et(function(t, e) {
|
|
12487
12488
|
let v = 1;
|
12488
12489
|
for (; v < y.length - 1; ) {
|
12489
12490
|
if (y[v] === a) {
|
12490
|
-
const
|
12491
|
-
if (
|
12492
|
-
y.splice(v - 1, 3,
|
12491
|
+
const C = c(y[v - 1], y[v + 1]);
|
12492
|
+
if (C !== void 0) {
|
12493
|
+
y.splice(v - 1, 3, C);
|
12493
12494
|
continue;
|
12494
12495
|
}
|
12495
12496
|
y[v++] = "+";
|
@@ -12823,10 +12824,10 @@ var ve = et(function(t, e) {
|
|
12823
12824
|
}
|
12824
12825
|
}
|
12825
12826
|
v.kind = "if";
|
12826
|
-
class
|
12827
|
+
class C extends m {
|
12827
12828
|
}
|
12828
|
-
|
12829
|
-
class
|
12829
|
+
C.kind = "for";
|
12830
|
+
class E extends C {
|
12830
12831
|
constructor(S) {
|
12831
12832
|
super(), this.iteration = S;
|
12832
12833
|
}
|
@@ -12841,7 +12842,7 @@ var ve = et(function(t, e) {
|
|
12841
12842
|
return j(super.names, this.iteration.names);
|
12842
12843
|
}
|
12843
12844
|
}
|
12844
|
-
class $ extends
|
12845
|
+
class $ extends C {
|
12845
12846
|
constructor(S, F, B, H) {
|
12846
12847
|
super(), this.varKind = S, this.name = F, this.from = B, this.to = H;
|
12847
12848
|
}
|
@@ -12854,7 +12855,7 @@ var ve = et(function(t, e) {
|
|
12854
12855
|
return P(S, this.to);
|
12855
12856
|
}
|
12856
12857
|
}
|
12857
|
-
class b extends
|
12858
|
+
class b extends C {
|
12858
12859
|
constructor(S, F, B, H) {
|
12859
12860
|
super(), this.loop = S, this.varKind = F, this.name = B, this.iterable = H;
|
12860
12861
|
}
|
@@ -13016,7 +13017,7 @@ var ve = et(function(t, e) {
|
|
13016
13017
|
return this._blockNode(N), S && this.code(S).endFor(), this;
|
13017
13018
|
}
|
13018
13019
|
for(N, S) {
|
13019
|
-
return this._for(new
|
13020
|
+
return this._for(new E(N), S);
|
13020
13021
|
}
|
13021
13022
|
forRange(N, S, F, B, H = this.opts.es5 ? Ft.varKinds.var : Ft.varKinds.let) {
|
13022
13023
|
const J = this._scope.toName(N);
|
@@ -13039,7 +13040,7 @@ var ve = et(function(t, e) {
|
|
13039
13040
|
return this._for(new b("in", B, H, S), () => F(H));
|
13040
13041
|
}
|
13041
13042
|
endFor() {
|
13042
|
-
return this._endBlockNode(
|
13043
|
+
return this._endBlockNode(C);
|
13043
13044
|
}
|
13044
13045
|
label(N) {
|
13045
13046
|
return this._leafNode(new l(N));
|
@@ -13138,8 +13139,8 @@ var ve = et(function(t, e) {
|
|
13138
13139
|
if (!p.strictSchema || typeof m == "boolean")
|
13139
13140
|
return;
|
13140
13141
|
const v = y.RULES.keywords;
|
13141
|
-
for (const
|
13142
|
-
v[
|
13142
|
+
for (const C in m)
|
13143
|
+
v[C] || h(u, `unknown keyword: "${C}"`);
|
13143
13144
|
}
|
13144
13145
|
function n(u, m) {
|
13145
13146
|
if (typeof u == "boolean")
|
@@ -13156,8 +13157,8 @@ var ve = et(function(t, e) {
|
|
13156
13157
|
return u.replace(/~1/g, "/").replace(/~0/g, "~");
|
13157
13158
|
}
|
13158
13159
|
function a({ mergeNames: u, mergeToName: m, mergeValues: p, resultToName: y }) {
|
13159
|
-
return (v,
|
13160
|
-
const b =
|
13160
|
+
return (v, C, E, $) => {
|
13161
|
+
const b = E === void 0 ? C : E instanceof g.Name ? (C instanceof g.Name ? u(v, C, E) : m(v, C, E), E) : C instanceof g.Name ? (m(v, E, C), C) : p(C, E);
|
13161
13162
|
return $ !== g.Name || b instanceof g.Name ? b : y(v, b);
|
13162
13163
|
};
|
13163
13164
|
}
|
@@ -13258,11 +13259,11 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13258
13259
|
function i(l, c, d) {
|
13259
13260
|
const { createErrors: h } = l.it;
|
13260
13261
|
return h === !1 ? g._`{}` : function(u, m, p = {}) {
|
13261
|
-
const { gen: y, it: v } = u,
|
13262
|
-
return function(
|
13263
|
-
const { keyword: L, data: M, schemaValue: T, it: x } =
|
13264
|
-
w.push([s.keyword, L], [s.params, typeof $ == "function" ? $(
|
13265
|
-
}(u, m,
|
13262
|
+
const { gen: y, it: v } = u, C = [a(v, p), o(u, p)];
|
13263
|
+
return function(E, { params: $, message: b }, w) {
|
13264
|
+
const { keyword: L, data: M, schemaValue: T, it: x } = E, { opts: j, propertyName: P, topSchemaRef: R, schemaPath: A } = x;
|
13265
|
+
w.push([s.keyword, L], [s.params, typeof $ == "function" ? $(E) : $ || g._`{}`]), j.messages && w.push([s.message, typeof b == "function" ? b(E) : b]), j.verbose && w.push([s.schema, T], [s.parentSchema, g._`${R}${A}`], [X.default.data, M]), P && w.push([s.propertyName, P]);
|
13266
|
+
}(u, m, C), y.object(...C);
|
13266
13267
|
}(l, c, d);
|
13267
13268
|
}
|
13268
13269
|
function a({ errorPath: l }, { instancePath: c }) {
|
@@ -13330,15 +13331,15 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13330
13331
|
}
|
13331
13332
|
return d;
|
13332
13333
|
}, e.getJSONTypes = n, e.coerceAndCheckDataType = function(c, d) {
|
13333
|
-
const { gen: h, data: u, opts: m } = c, p = function(v,
|
13334
|
-
return
|
13334
|
+
const { gen: h, data: u, opts: m } = c, p = function(v, C) {
|
13335
|
+
return C ? v.filter((E) => s.has(E) || C === "array" && E === "array") : [];
|
13335
13336
|
}(d, m.coerceTypes), y = d.length > 0 && !(p.length === 0 && d.length === 1 && (0, xs.schemaHasRulesForType)(c, d[0]));
|
13336
13337
|
if (y) {
|
13337
13338
|
const v = a(d, u, m.strictNumbers, r.Wrong);
|
13338
13339
|
h.if(v, () => {
|
13339
|
-
p.length ? function(
|
13340
|
-
const { gen: b, data: w, opts: L } =
|
13341
|
-
L.coerceTypes === "array" && b.if(g._`${M} == 'object' && Array.isArray(${w}) && ${w}.length == 1`, () => b.assign(w, g._`${w}[0]`).assign(M, g._`typeof ${w}`).if(a(
|
13340
|
+
p.length ? function(C, E, $) {
|
13341
|
+
const { gen: b, data: w, opts: L } = C, M = b.let("dataType", g._`typeof ${w}`), T = b.let("coerced", g._`undefined`);
|
13342
|
+
L.coerceTypes === "array" && b.if(g._`${M} == 'object' && Array.isArray(${w}) && ${w}.length == 1`, () => b.assign(w, g._`${w}[0]`).assign(M, g._`typeof ${w}`).if(a(E, w, L.strictNumbers), () => b.assign(T, w))), b.if(g._`${T} !== undefined`);
|
13342
13343
|
for (const j of $)
|
13343
13344
|
(s.has(j) || j === "array" && L.coerceTypes === "array") && x(j);
|
13344
13345
|
function x(j) {
|
@@ -13360,10 +13361,10 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13360
13361
|
|| ${M} === "boolean" || ${w} === null`).assign(T, g._`[${w}]`);
|
13361
13362
|
}
|
13362
13363
|
}
|
13363
|
-
b.else(), l(
|
13364
|
+
b.else(), l(C), b.endIf(), b.if(g._`${T} !== undefined`, () => {
|
13364
13365
|
b.assign(w, T), function({ gen: j, parentData: P, parentDataProperty: R }, A) {
|
13365
13366
|
j.if(g._`${P} !== undefined`, () => j.assign(g._`${P}[${R}]`, A));
|
13366
|
-
}(
|
13367
|
+
}(C, T);
|
13367
13368
|
});
|
13368
13369
|
}(c, d, p) : l(c);
|
13369
13370
|
});
|
@@ -13471,10 +13472,10 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13471
13472
|
return h ? g._`${u} && ${s(l, c, d)}` : u;
|
13472
13473
|
}, e.noPropertyInData = i, e.allSchemaProperties = a, e.schemaProperties = function(l, c) {
|
13473
13474
|
return a(c).filter((d) => !(0, fe.alwaysValidSchema)(l, c[d]));
|
13474
|
-
}, e.callValidateCode = function({ schemaCode: l, data: c, it: { gen: d, topSchemaRef: h, schemaPath: u, errorPath: m }, it: p }, y, v,
|
13475
|
-
const
|
13475
|
+
}, e.callValidateCode = function({ schemaCode: l, data: c, it: { gen: d, topSchemaRef: h, schemaPath: u, errorPath: m }, it: p }, y, v, C) {
|
13476
|
+
const E = C ? g._`${l}, ${c}, ${h}${u}` : c, $ = [[X.default.instancePath, (0, g.strConcat)(X.default.instancePath, m)], [X.default.parentData, p.parentData], [X.default.parentDataProperty, p.parentDataProperty], [X.default.rootData, X.default.rootData]];
|
13476
13477
|
p.opts.dynamicRef && $.push([X.default.dynamicAnchors, X.default.dynamicAnchors]);
|
13477
|
-
const b = g._`${
|
13478
|
+
const b = g._`${E}, ${d.object(...$)}`;
|
13478
13479
|
return v !== g.nil ? g._`${y}.call(${v}, ${b})` : g._`${y}(${b})`;
|
13479
13480
|
};
|
13480
13481
|
const o = g._`new RegExp`;
|
@@ -13490,8 +13491,8 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13490
13491
|
return c.var(m, !0), p(() => c.break()), m;
|
13491
13492
|
function p(y) {
|
13492
13493
|
const v = c.const("len", g._`${d}.length`);
|
13493
|
-
c.forRange("i", 0, v, (
|
13494
|
-
l.subschema({ keyword: h, dataProp:
|
13494
|
+
c.forRange("i", 0, v, (C) => {
|
13495
|
+
l.subschema({ keyword: h, dataProp: C, dataPropType: fe.Type.Num }, m), c.if((0, g.not)(m), y);
|
13495
13496
|
});
|
13496
13497
|
}
|
13497
13498
|
}, e.validateUnion = function(l) {
|
@@ -13502,8 +13503,8 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13502
13503
|
return;
|
13503
13504
|
const m = c.let("valid", !1), p = c.name("_valid");
|
13504
13505
|
c.block(() => d.forEach((y, v) => {
|
13505
|
-
const
|
13506
|
-
c.assign(m, g._`${m} || ${p}`), l.mergeValidEvaluated(
|
13506
|
+
const C = l.subschema({ keyword: h, schemaProp: v, compositeRule: !0 }, p);
|
13507
|
+
c.assign(m, g._`${m} || ${p}`), l.mergeValidEvaluated(C, p) || c.if((0, g.not)(m));
|
13507
13508
|
})), l.result(m, () => l.reset(), () => l.error(!0));
|
13508
13509
|
};
|
13509
13510
|
}), En = et(function(t, e) {
|
@@ -13524,35 +13525,35 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13524
13525
|
}, e.funcKeywordCode = function(s, i) {
|
13525
13526
|
var a;
|
13526
13527
|
const { gen: o, keyword: l, schema: c, parentSchema: d, $data: h, it: u } = s;
|
13527
|
-
(function({ schemaEnv:
|
13528
|
-
if ($.async && !
|
13528
|
+
(function({ schemaEnv: E }, $) {
|
13529
|
+
if ($.async && !E.$async)
|
13529
13530
|
throw new Error("async keyword in sync schema");
|
13530
13531
|
})(u, i);
|
13531
13532
|
const m = !h && i.compile ? i.compile.call(u.self, c, d, u) : i.validate, p = n(o, l, m), y = o.let("valid");
|
13532
|
-
function v(
|
13533
|
-
o.assign(y, g._`${
|
13533
|
+
function v(E = i.async ? g._`await ` : g.nil) {
|
13534
|
+
o.assign(y, g._`${E}${(0, nt.callValidateCode)(s, p, u.opts.passContext ? X.default.this : X.default.self, !("compile" in i && !h || i.schema === !1))}`, i.modifying);
|
13534
13535
|
}
|
13535
|
-
function E
|
13536
|
+
function C(E) {
|
13536
13537
|
var $;
|
13537
|
-
o.if((0, g.not)(($ = i.valid) !== null && $ !== void 0 ? $ : y),
|
13538
|
+
o.if((0, g.not)(($ = i.valid) !== null && $ !== void 0 ? $ : y), E);
|
13538
13539
|
}
|
13539
13540
|
s.block$data(y, function() {
|
13540
13541
|
if (i.errors === !1)
|
13541
|
-
v(), i.modifying && r(s),
|
13542
|
+
v(), i.modifying && r(s), C(() => s.error());
|
13542
13543
|
else {
|
13543
|
-
const
|
13544
|
+
const E = i.async ? function() {
|
13544
13545
|
const $ = o.let("ruleErrs", null);
|
13545
13546
|
return o.try(() => v(g._`await `), (b) => o.assign(y, !1).if(g._`${b} instanceof ${u.ValidationError}`, () => o.assign($, g._`${b}.errors`), () => o.throw(b))), $;
|
13546
13547
|
}() : function() {
|
13547
13548
|
const $ = g._`${p}.errors`;
|
13548
13549
|
return o.assign($, null), v(g.nil), $;
|
13549
13550
|
}();
|
13550
|
-
i.modifying && r(s),
|
13551
|
+
i.modifying && r(s), C(() => function($, b) {
|
13551
13552
|
const { gen: w } = $;
|
13552
13553
|
w.if(g._`Array.isArray(${b})`, () => {
|
13553
13554
|
w.assign(X.default.vErrors, g._`${X.default.vErrors} === null ? ${b} : ${X.default.vErrors}.concat(${b})`).assign(X.default.errors, g._`${X.default.vErrors}.length`), (0, Pt.extendErrors)($);
|
13554
13555
|
}, () => $.error());
|
13555
|
-
}(s,
|
13556
|
+
}(s, E));
|
13556
13557
|
}
|
13557
13558
|
}), s.ok((a = i.valid) !== null && a !== void 0 ? a : y);
|
13558
13559
|
}, e.validSchemaType = function(s, i, a = !1) {
|
@@ -13702,18 +13703,18 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13702
13703
|
e.getSchemaRefs = function(h, u) {
|
13703
13704
|
if (typeof h == "boolean")
|
13704
13705
|
return {};
|
13705
|
-
const { schemaId: m, uriResolver: p } = this.opts, y = c(h[m] || u), v = { "": y },
|
13706
|
+
const { schemaId: m, uriResolver: p } = this.opts, y = c(h[m] || u), v = { "": y }, C = a(p, y, !1), E = {}, $ = /* @__PURE__ */ new Set();
|
13706
13707
|
return nv(h, { allKeys: !0 }, (L, M, T, x) => {
|
13707
13708
|
if (x === void 0)
|
13708
13709
|
return;
|
13709
|
-
const j =
|
13710
|
+
const j = C + M;
|
13710
13711
|
let P = v[x];
|
13711
13712
|
function R(q) {
|
13712
13713
|
if (q = c(P ? (0, this.opts.uriResolver.resolve)(P, q) : q), $.has(q))
|
13713
13714
|
throw w(q);
|
13714
13715
|
$.add(q);
|
13715
13716
|
let G = this.refs[q];
|
13716
|
-
return typeof G == "string" && (G = this.refs[G]), typeof G == "object" ? b(L, G.schema, q) : q !== c(j) && (q[0] === "#" ? (b(L,
|
13717
|
+
return typeof G == "string" && (G = this.refs[G]), typeof G == "object" ? b(L, G.schema, q) : q !== c(j) && (q[0] === "#" ? (b(L, E[q], q), E[q] = L) : this.refs[q] = j), q;
|
13717
13718
|
}
|
13718
13719
|
function A(q) {
|
13719
13720
|
if (typeof q == "string") {
|
@@ -13723,7 +13724,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13723
13724
|
}
|
13724
13725
|
}
|
13725
13726
|
typeof L[m] == "string" && (P = R.call(this, L[m])), A.call(this, L.$anchor), A.call(this, L.$dynamicAnchor), v[M] = P;
|
13726
|
-
}),
|
13727
|
+
}), E;
|
13727
13728
|
function b(L, M, T) {
|
13728
13729
|
if (M !== void 0 && !Ca(L, M))
|
13729
13730
|
throw w(T);
|
@@ -13850,7 +13851,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13850
13851
|
class p {
|
13851
13852
|
constructor(b, w, L) {
|
13852
13853
|
if ((0, En.validateKeywordUsage)(b, w, L), this.gen = b.gen, this.allErrors = b.allErrors, this.keyword = L, this.data = b.data, this.schema = b.schema[L], this.$data = w.$data && b.opts.$data && this.schema && this.schema.$data, this.schemaValue = (0, fe.schemaRefOrVal)(b, this.schema, L, this.$data), this.schemaType = w.schemaType, this.parentSchema = b.schema, this.params = {}, this.it = b, this.def = w, this.$data)
|
13853
|
-
this.schemaCode = b.gen.const("vSchema",
|
13854
|
+
this.schemaCode = b.gen.const("vSchema", E(this.$data, b));
|
13854
13855
|
else if (this.schemaCode = this.schemaValue, !(0, En.validSchemaType)(this.schema, w.schemaType, w.allowUndefined))
|
13855
13856
|
throw new Error(`${L} value must be ${JSON.stringify(w.schemaType)}`);
|
13856
13857
|
("code" in w ? w.trackErrors : w.errors !== !1) && (this.errsCount = b.gen.const("_errs", X.default.errors));
|
@@ -13960,8 +13961,8 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13960
13961
|
"code" in w ? w.code(M, L) : M.$data && w.validate ? (0, En.funcKeywordCode)(M, w) : "macro" in w ? (0, En.macroKeywordCode)(M, w) : (w.compile || w.validate) && (0, En.funcKeywordCode)(M, w);
|
13961
13962
|
}
|
13962
13963
|
e.KeywordCxt = p;
|
13963
|
-
const v = /^\/(?:[^~]|~0|~1)*$/,
|
13964
|
-
function
|
13964
|
+
const v = /^\/(?:[^~]|~0|~1)*$/, C = /^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;
|
13965
|
+
function E($, { dataLevel: b, dataNames: w, dataPathArr: L }) {
|
13965
13966
|
let M, T;
|
13966
13967
|
if ($ === "")
|
13967
13968
|
return X.default.rootData;
|
@@ -13970,7 +13971,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13970
13971
|
throw new Error(`Invalid JSON-pointer: ${$}`);
|
13971
13972
|
M = $, T = X.default.rootData;
|
13972
13973
|
} else {
|
13973
|
-
const R =
|
13974
|
+
const R = C.exec($);
|
13974
13975
|
if (!R)
|
13975
13976
|
throw new Error(`Invalid JSON-pointer: ${$}`);
|
13976
13977
|
const A = +R[1];
|
@@ -13993,7 +13994,7 @@ var X = /* @__PURE__ */ Object.defineProperty({ default: tv }, "__esModule", { v
|
|
13993
13994
|
return `Cannot access ${R} ${A} levels up, current level is ${b}`;
|
13994
13995
|
}
|
13995
13996
|
}
|
13996
|
-
e.getData =
|
13997
|
+
e.getData = E;
|
13997
13998
|
});
|
13998
13999
|
class sv extends Error {
|
13999
14000
|
constructor(e) {
|
@@ -14020,18 +14021,18 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14020
14021
|
if (h)
|
14021
14022
|
return h;
|
14022
14023
|
const u = (0, ut.getFullPath)(this.opts.uriResolver, d.root.baseId), { es5: m, lines: p } = this.opts.code, { ownProperties: y } = this.opts, v = new g.CodeGen(this.scope, { es5: m, lines: p, ownProperties: y });
|
14023
|
-
let
|
14024
|
-
d.$async && (
|
14025
|
-
const
|
14026
|
-
d.validateName =
|
14027
|
-
const $ = { gen: v, allErrors: this.opts.allErrors, data: X.default.data, parentData: X.default.parentData, parentDataProperty: X.default.parentDataProperty, dataNames: [X.default.data], dataPathArr: [g.nil], dataLevel: 0, dataTypes: [], definedProperties: /* @__PURE__ */ new Set(), topSchemaRef: v.scopeValue("schema", this.opts.code.source === !0 ? { ref: d.schema, code: (0, g.stringify)(d.schema) } : { ref: d.schema }), validateName:
|
14024
|
+
let C;
|
14025
|
+
d.$async && (C = v.scopeValue("Error", { ref: qu.default, code: g._`require("ajv/dist/runtime/validation_error").default` }));
|
14026
|
+
const E = v.scopeName("validate");
|
14027
|
+
d.validateName = E;
|
14028
|
+
const $ = { gen: v, allErrors: this.opts.allErrors, data: X.default.data, parentData: X.default.parentData, parentDataProperty: X.default.parentDataProperty, dataNames: [X.default.data], dataPathArr: [g.nil], dataLevel: 0, dataTypes: [], definedProperties: /* @__PURE__ */ new Set(), topSchemaRef: v.scopeValue("schema", this.opts.code.source === !0 ? { ref: d.schema, code: (0, g.stringify)(d.schema) } : { ref: d.schema }), validateName: E, ValidationError: C, schema: d.schema, schemaEnv: d, rootId: u, baseId: d.baseId || u, schemaPath: g.nil, errSchemaPath: d.schemaPath || (this.opts.jtd ? "" : "#"), errorPath: g._`""`, opts: this.opts, self: this };
|
14028
14029
|
let b;
|
14029
14030
|
try {
|
14030
14031
|
this._compilations.add(d), (0, Hn.validateFunctionCode)($), v.optimize(this.opts.code.optimize);
|
14031
14032
|
const w = v.toString();
|
14032
14033
|
b = `${v.scopeRefs(X.default.scope)}return ${w}`, this.opts.code.process && (b = this.opts.code.process(b, d));
|
14033
14034
|
const L = new Function(`${X.default.self}`, `${X.default.scope}`, b)(this, this.scope.get());
|
14034
|
-
if (this.scope.value(
|
14035
|
+
if (this.scope.value(E, { ref: L }), L.errors = null, L.schema = d.schema, L.schemaEnv = d, d.$async && (L.$async = !0), this.opts.code.source === !0 && (L.source = { validateName: E, validateCode: w, scopeValues: v._values }), this.opts.unevaluated) {
|
14035
14036
|
const { props: M, items: T } = $;
|
14036
14037
|
L.evaluated = { props: M instanceof g.Name ? void 0 : M, items: T instanceof g.Name ? void 0 : T, dynamicProps: M instanceof g.Name, dynamicItems: T instanceof g.Name }, L.source && (L.source.evaluated = (0, g.stringify)(L.evaluated));
|
14037
14038
|
}
|
@@ -14064,13 +14065,13 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14064
14065
|
return c.call(this, u, d);
|
14065
14066
|
const y = (0, ut.normalizeId)(m), v = this.refs[y] || this.schemas[y];
|
14066
14067
|
if (typeof v == "string") {
|
14067
|
-
const
|
14068
|
-
return typeof (
|
14068
|
+
const C = o.call(this, d, v);
|
14069
|
+
return typeof (C == null ? void 0 : C.schema) != "object" ? void 0 : c.call(this, u, C);
|
14069
14070
|
}
|
14070
14071
|
if (typeof (v == null ? void 0 : v.schema) == "object") {
|
14071
14072
|
if (v.validate || n.call(this, v), y === (0, ut.normalizeId)(h)) {
|
14072
|
-
const { schema:
|
14073
|
-
return $ && (p = (0, ut.resolveUrl)(this.opts.uriResolver, p, $)), new r({ schema:
|
14073
|
+
const { schema: C } = v, { schemaId: E } = this.opts, $ = C[E];
|
14074
|
+
return $ && (p = (0, ut.resolveUrl)(this.opts.uriResolver, p, $)), new r({ schema: C, schemaId: E, root: d, baseId: p });
|
14074
14075
|
}
|
14075
14076
|
return c.call(this, u, v);
|
14076
14077
|
}
|
@@ -14083,8 +14084,8 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14083
14084
|
return p;
|
14084
14085
|
let y = a.call(this, d, u);
|
14085
14086
|
if (y === void 0) {
|
14086
|
-
const v = (m = d.localRefs) === null || m === void 0 ? void 0 : m[u], { schemaId:
|
14087
|
-
v && (y = new r({ schema: v, schemaId:
|
14087
|
+
const v = (m = d.localRefs) === null || m === void 0 ? void 0 : m[u], { schemaId: C } = this.opts;
|
14088
|
+
v && (y = new r({ schema: v, schemaId: C, root: d, baseId: h }));
|
14088
14089
|
}
|
14089
14090
|
return y !== void 0 ? d.refs[u] = s.call(this, y) : void 0;
|
14090
14091
|
}, e.getCompilingSchema = i, e.resolveSchema = o;
|
@@ -14093,19 +14094,19 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14093
14094
|
var p;
|
14094
14095
|
if (((p = d.fragment) === null || p === void 0 ? void 0 : p[0]) !== "/")
|
14095
14096
|
return;
|
14096
|
-
for (const
|
14097
|
+
for (const C of d.fragment.slice(1).split("/")) {
|
14097
14098
|
if (typeof u == "boolean")
|
14098
14099
|
return;
|
14099
|
-
const
|
14100
|
-
if (
|
14100
|
+
const E = u[(0, fe.unescapeFragment)(C)];
|
14101
|
+
if (E === void 0)
|
14101
14102
|
return;
|
14102
|
-
const $ = typeof (u =
|
14103
|
-
!l.has(
|
14103
|
+
const $ = typeof (u = E) == "object" && u[this.opts.schemaId];
|
14104
|
+
!l.has(C) && $ && (h = (0, ut.resolveUrl)(this.opts.uriResolver, h, $));
|
14104
14105
|
}
|
14105
14106
|
let y;
|
14106
14107
|
if (typeof u != "boolean" && u.$ref && !(0, fe.schemaHasRulesButRef)(u, this.RULES)) {
|
14107
|
-
const
|
14108
|
-
y = o.call(this, m,
|
14108
|
+
const C = (0, ut.resolveUrl)(this.opts.uriResolver, h, u.$ref);
|
14109
|
+
y = o.call(this, m, C);
|
14109
14110
|
}
|
14110
14111
|
const { schemaId: v } = this.opts;
|
14111
14112
|
return y = y || new r({ schema: u, schemaId: v, root: m, baseId: h }), y.schema !== y.root.schema ? y : void 0;
|
@@ -14162,7 +14163,7 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14162
14163
|
return ne;
|
14163
14164
|
}(_, D);
|
14164
14165
|
throw new TypeError("Invalid attempt to destructure non-iterable instance");
|
14165
|
-
}, h = 2147483647, u = 36, m = /^xn--/, p = /[^\0-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, v = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" },
|
14166
|
+
}, h = 2147483647, u = 36, m = /^xn--/, p = /[^\0-\x7E]/, y = /[\x2E\u3002\uFF0E\uFF61]/g, v = { overflow: "Overflow: input needs wider integers to process", "not-basic": "Illegal input >= 0x80 (not a basic code point)", "invalid-input": "Invalid input" }, C = Math.floor, E = String.fromCharCode;
|
14166
14167
|
function $(_) {
|
14167
14168
|
throw new RangeError(v[_]);
|
14168
14169
|
}
|
@@ -14178,9 +14179,9 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14178
14179
|
return _ + 22 + 75 * (_ < 26) - ((D != 0) << 5);
|
14179
14180
|
}, L = function(_, D, I) {
|
14180
14181
|
var W = 0;
|
14181
|
-
for (_ = I ?
|
14182
|
-
_ =
|
14183
|
-
return
|
14182
|
+
for (_ = I ? C(_ / 700) : _ >> 1, _ += C(_ / D); _ > 455; W += u)
|
14183
|
+
_ = C(_ / 35);
|
14184
|
+
return C(W + 36 * _ / (_ + 38));
|
14184
14185
|
}, M = function(_) {
|
14185
14186
|
return b(_, function(D) {
|
14186
14187
|
return p.test(D) ? "xn--" + function(I) {
|
@@ -14198,7 +14199,7 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14198
14199
|
try {
|
14199
14200
|
for (var Se, Ue = I[Symbol.iterator](); !(Pe = (Se = Ue.next()).done); Pe = !0) {
|
14200
14201
|
var Ge = Se.value;
|
14201
|
-
Ge < 128 && W.push(
|
14202
|
+
Ge < 128 && W.push(E(Ge));
|
14202
14203
|
}
|
14203
14204
|
} catch (_e) {
|
14204
14205
|
Le = !0, tt = _e;
|
@@ -14229,7 +14230,7 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14229
14230
|
}
|
14230
14231
|
}
|
14231
14232
|
var Bt = Be + 1;
|
14232
|
-
lt - de >
|
14233
|
+
lt - de > C((h - be) / Bt) && $("overflow"), be += (lt - de) * Bt, de = lt;
|
14233
14234
|
var Rt = !0, Gn = !1, Yn = void 0;
|
14234
14235
|
try {
|
14235
14236
|
for (var Zn, O = I[Symbol.iterator](); !(Rt = (Zn = O.next()).done); Rt = !0) {
|
@@ -14240,9 +14241,9 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14240
14241
|
if (oe < Ne)
|
14241
14242
|
break;
|
14242
14243
|
var We = oe - Ne, Oe = u - Ne;
|
14243
|
-
W.push(
|
14244
|
+
W.push(E(w(Ne + We % Oe, 0))), oe = C(We / Oe);
|
14244
14245
|
}
|
14245
|
-
W.push(
|
14246
|
+
W.push(E(w(oe, 0))), Ce = L(be, Bt, Be == ot), be = 0, ++Be;
|
14246
14247
|
}
|
14247
14248
|
}
|
14248
14249
|
} catch (_e) {
|
@@ -14271,15 +14272,15 @@ var Ji = /* @__PURE__ */ Object.defineProperty({ default: iv }, "__esModule", {
|
|
14271
14272
|
for (var Ue = be, Ge = 1, ot = u; ; ot += u) {
|
14272
14273
|
Se >= de && $("invalid-input");
|
14273
14274
|
var Be = (W = I.charCodeAt(Se++)) - 48 < 10 ? W - 22 : W - 65 < 26 ? W - 65 : W - 97 < 26 ? W - 97 : u;
|
14274
|
-
(Be >= u || Be >
|
14275
|
+
(Be >= u || Be > C((h - be) / Ge)) && $("overflow"), be += Be * Ge;
|
14275
14276
|
var lt = ot <= Pe ? 1 : ot >= Pe + 26 ? 26 : ot - Pe;
|
14276
14277
|
if (Be < lt)
|
14277
14278
|
break;
|
14278
14279
|
var yt = u - lt;
|
14279
|
-
Ge >
|
14280
|
+
Ge > C(h / yt) && $("overflow"), Ge *= yt;
|
14280
14281
|
}
|
14281
14282
|
var bt = ne.length + 1;
|
14282
|
-
Pe = L(be - Ue, bt, Ue == 0),
|
14283
|
+
Pe = L(be - Ue, bt, Ue == 0), C(be / bt) > h - Ce && $("overflow"), Ce += C(be / bt), be %= bt, ne.splice(be++, 0, Ce);
|
14283
14284
|
}
|
14284
14285
|
return String.fromCodePoint.apply(String, ne);
|
14285
14286
|
}(D.slice(4).toLowerCase()) : D;
|
@@ -14731,7 +14732,7 @@ var av = /* @__PURE__ */ Object.defineProperty({ default: Hu }, "__esModule", {
|
|
14731
14732
|
if (P = (j = x).keyword, Array.isArray(P) && !P.length)
|
14732
14733
|
throw new Error("addKeywords: keyword must be string or non-empty array");
|
14733
14734
|
}
|
14734
|
-
if (
|
14735
|
+
if (E.call(this, P, j), !j)
|
14735
14736
|
return (0, fe.eachItem)(P, (A) => $.call(this, A)), this;
|
14736
14737
|
w.call(this, j);
|
14737
14738
|
const R = { ...j, type: (0, rr.getJSONTypes)(j.type), schemaType: (0, rr.getJSONTypes)(j.schemaType) };
|
@@ -14862,13 +14863,13 @@ var av = /* @__PURE__ */ Object.defineProperty({ default: Hu }, "__esModule", {
|
|
14862
14863
|
const v = { log() {
|
14863
14864
|
}, warn() {
|
14864
14865
|
}, error() {
|
14865
|
-
} },
|
14866
|
-
function
|
14866
|
+
} }, C = /^[a-z_$][a-z0-9_$:-]*$/i;
|
14867
|
+
function E(T, x) {
|
14867
14868
|
const { RULES: j } = this;
|
14868
14869
|
if ((0, fe.eachItem)(T, (P) => {
|
14869
14870
|
if (j.keywords[P])
|
14870
14871
|
throw new Error(`Keyword ${P} is already defined`);
|
14871
|
-
if (!
|
14872
|
+
if (!C.test(P))
|
14872
14873
|
throw new Error(`Keyword ${P} has invalid name`);
|
14873
14874
|
}), x && x.$data && !("code" in x) && !("validate" in x))
|
14874
14875
|
throw new Error('$data keyword must have "code" or "validate" function');
|
@@ -14914,11 +14915,11 @@ var av = /* @__PURE__ */ Object.defineProperty({ default: Hu }, "__esModule", {
|
|
14914
14915
|
if (y === void 0)
|
14915
14916
|
throw new Ji.default(l.opts.uriResolver, c, o);
|
14916
14917
|
return y instanceof fr.SchemaEnv ? function(v) {
|
14917
|
-
const
|
14918
|
-
s(i,
|
14918
|
+
const C = n(i, v);
|
14919
|
+
s(i, C, v, v.$async);
|
14919
14920
|
}(y) : function(v) {
|
14920
|
-
const
|
14921
|
-
i.mergeEvaluated($), i.ok(
|
14921
|
+
const C = a.scopeValue("schema", u.code.source === !0 ? { ref: v, code: (0, g.stringify)(v) } : { ref: v }), E = a.name("valid"), $ = i.subschema({ schema: v, dataTypes: [], schemaPath: g.nil, topSchemaRef: C, errSchemaPath: o }, E);
|
14922
|
+
i.mergeEvaluated($), i.ok(E);
|
14922
14923
|
}(y);
|
14923
14924
|
} };
|
14924
14925
|
function n(i, a) {
|
@@ -14927,39 +14928,39 @@ var av = /* @__PURE__ */ Object.defineProperty({ default: Hu }, "__esModule", {
|
|
14927
14928
|
}
|
14928
14929
|
function s(i, a, o, l) {
|
14929
14930
|
const { gen: c, it: d } = i, { allErrors: h, schemaEnv: u, opts: m } = d, p = m.passContext ? X.default.this : g.nil;
|
14930
|
-
function y(
|
14931
|
-
const
|
14932
|
-
c.assign(X.default.vErrors, g._`${X.default.vErrors} === null ? ${
|
14931
|
+
function y(C) {
|
14932
|
+
const E = g._`${C}.errors`;
|
14933
|
+
c.assign(X.default.vErrors, g._`${X.default.vErrors} === null ? ${E} : ${X.default.vErrors}.concat(${E})`), c.assign(X.default.errors, g._`${X.default.vErrors}.length`);
|
14933
14934
|
}
|
14934
|
-
function v(
|
14935
|
-
var
|
14935
|
+
function v(C) {
|
14936
|
+
var E;
|
14936
14937
|
if (!d.opts.unevaluated)
|
14937
14938
|
return;
|
14938
|
-
const $ = (
|
14939
|
+
const $ = (E = o == null ? void 0 : o.validate) === null || E === void 0 ? void 0 : E.evaluated;
|
14939
14940
|
if (d.props !== !0)
|
14940
14941
|
if ($ && !$.dynamicProps)
|
14941
14942
|
$.props !== void 0 && (d.props = fe.mergeEvaluated.props(c, $.props, d.props));
|
14942
14943
|
else {
|
14943
|
-
const b = c.var("props", g._`${
|
14944
|
+
const b = c.var("props", g._`${C}.evaluated.props`);
|
14944
14945
|
d.props = fe.mergeEvaluated.props(c, b, d.props, g.Name);
|
14945
14946
|
}
|
14946
14947
|
if (d.items !== !0)
|
14947
14948
|
if ($ && !$.dynamicItems)
|
14948
14949
|
$.items !== void 0 && (d.items = fe.mergeEvaluated.items(c, $.items, d.items));
|
14949
14950
|
else {
|
14950
|
-
const b = c.var("items", g._`${
|
14951
|
+
const b = c.var("items", g._`${C}.evaluated.items`);
|
14951
14952
|
d.items = fe.mergeEvaluated.items(c, b, d.items, g.Name);
|
14952
14953
|
}
|
14953
14954
|
}
|
14954
14955
|
l ? function() {
|
14955
14956
|
if (!u.$async)
|
14956
14957
|
throw new Error("async schema referenced by sync schema");
|
14957
|
-
const
|
14958
|
+
const C = c.let("valid");
|
14958
14959
|
c.try(() => {
|
14959
|
-
c.code(g._`await ${(0, nt.callValidateCode)(i, a, p)}`), v(a), h || c.assign(
|
14960
|
-
}, (
|
14961
|
-
c.if(g._`!(${
|
14962
|
-
}), i.ok(
|
14960
|
+
c.code(g._`await ${(0, nt.callValidateCode)(i, a, p)}`), v(a), h || c.assign(C, !0);
|
14961
|
+
}, (E) => {
|
14962
|
+
c.if(g._`!(${E} instanceof ${d.ValidationError})`, () => c.throw(E)), y(E), h || c.assign(C, !1);
|
14963
|
+
}), i.ok(C);
|
14963
14964
|
}() : i.result((0, nt.callValidateCode)(i, a, p), () => v(a), () => y(a));
|
14964
14965
|
}
|
14965
14966
|
e.getValidate = n, e.callRef = s, e.default = r;
|
@@ -15109,8 +15110,8 @@ var $i = /* @__PURE__ */ Object.defineProperty({ default: Ca }, "__esModule", {
|
|
15109
15110
|
function n(s, i, a = s.schema) {
|
15110
15111
|
const { gen: o, parentSchema: l, data: c, keyword: d, it: h } = s;
|
15111
15112
|
(function(p) {
|
15112
|
-
const { opts: y, errSchemaPath: v } = h,
|
15113
|
-
y.strictTuples && (
|
15113
|
+
const { opts: y, errSchemaPath: v } = h, C = a.length;
|
15114
|
+
y.strictTuples && (C !== p.minItems || C !== p.maxItems && p[i] !== !1) && (0, fe.checkStrictMode)(h, `"${d}" is ${C}-tuple, but minItems or maxItems/${i} are not specified or different at path "${v}"`, y.strictTuples);
|
15114
15115
|
})(l), h.opts.unevaluated && a.length && h.items !== !0 && (h.items = fe.mergeEvaluated.items(o, a.length, h.items));
|
15115
15116
|
const u = o.name("valid"), m = o.const("len", g._`${c}.length`);
|
15116
15117
|
a.forEach((p, y) => {
|
@@ -15225,18 +15226,18 @@ const kv = { keyword: "additionalProperties", type: ["object"], schemaType: ["bo
|
|
15225
15226
|
}
|
15226
15227
|
}
|
15227
15228
|
function m(p, y, v) {
|
15228
|
-
const
|
15229
|
-
v === !1 && Object.assign(
|
15229
|
+
const C = { keyword: "additionalProperties", dataProp: p, dataPropType: fe.Type.Str };
|
15230
|
+
v === !1 && Object.assign(C, { compositeRule: !0, createErrors: !1, allErrors: !1 }), t.subschema(C, y);
|
15230
15231
|
}
|
15231
15232
|
e.forIn("key", s, (p) => {
|
15232
15233
|
c.length || d.length ? e.if(function(y) {
|
15233
15234
|
let v;
|
15234
15235
|
if (c.length > 8) {
|
15235
|
-
const
|
15236
|
-
v = (0, nt.isOwnProperty)(e,
|
15236
|
+
const C = (0, fe.schemaRefOrVal)(a, n.properties, "properties");
|
15237
|
+
v = (0, nt.isOwnProperty)(e, C, y);
|
15237
15238
|
} else
|
15238
|
-
v = c.length ? (0, g.or)(...c.map((
|
15239
|
-
return d.length && (v = (0, g.or)(v, ...d.map((
|
15239
|
+
v = c.length ? (0, g.or)(...c.map((C) => g._`${y} === ${C}`)) : g.nil;
|
15240
|
+
return d.length && (v = (0, g.or)(v, ...d.map((C) => g._`${(0, nt.usePattern)(t, C)}.test(${y})`))), (0, g.not)(v);
|
15240
15241
|
}(p), () => u(p)) : u(p);
|
15241
15242
|
}), t.ok(g._`${i} === ${X.default.errors}`);
|
15242
15243
|
} };
|
@@ -15353,8 +15354,8 @@ var Rv = /* @__PURE__ */ Object.defineProperty({ default: { keyword: "if", schem
|
|
15353
15354
|
l.validateFormats && (s ? function() {
|
15354
15355
|
const u = r.scopeValue("formats", { ref: h.formats, code: l.code.formats }), m = r.const("fDef", g._`${u}[${a}]`), p = r.let("fType"), y = r.let("format");
|
15355
15356
|
r.if(g._`typeof ${m} == "object" && !(${m} instanceof RegExp)`, () => r.assign(p, g._`${m}.type || "string"`).assign(y, g._`${m}.validate`), () => r.assign(p, g._`"string"`).assign(y, m)), t.fail$data((0, g.or)(l.strictSchema === !1 ? g.nil : g._`${a} && !${y}`, function() {
|
15356
|
-
const v = d.$async ? g._`(${m}.async ? await ${y}(${n}) : ${y}(${n}))` : g._`${y}(${n})`,
|
15357
|
-
return g._`${y} && ${y} !== true && ${p} === ${e} && !${
|
15357
|
+
const v = d.$async ? g._`(${m}.async ? await ${y}(${n}) : ${y}(${n}))` : g._`${y}(${n})`, C = g._`(typeof ${y} == "function" ? ${v} : ${y}.test(${n}))`;
|
15358
|
+
return g._`${y} && ${y} !== true && ${p} === ${e} && !${C}`;
|
15358
15359
|
}()));
|
15359
15360
|
}() : function() {
|
15360
15361
|
const u = h.formats[i];
|
@@ -15370,8 +15371,8 @@ var Rv = /* @__PURE__ */ Object.defineProperty({ default: { keyword: "if", schem
|
|
15370
15371
|
if (u === !0)
|
15371
15372
|
return;
|
15372
15373
|
const [m, p, y] = function(v) {
|
15373
|
-
const
|
15374
|
-
return typeof v != "object" || v instanceof RegExp ? ["string", v,
|
15374
|
+
const C = v instanceof RegExp ? (0, g.regexpCode)(v) : l.code.formats ? g._`${l.code.formats}${(0, g.getProperty)(i)}` : void 0, E = r.scopeValue("formats", { key: i, ref: v, code: C });
|
15375
|
+
return typeof v != "object" || v instanceof RegExp ? ["string", v, E] : [v.type || "string", v.validate, g._`${E}.validate`];
|
15375
15376
|
}(u);
|
15376
15377
|
m === e && t.pass(function() {
|
15377
15378
|
if (typeof u == "object" && !(u instanceof RegExp) && u.async) {
|
@@ -15416,7 +15417,7 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15416
15417
|
const w = (u = b == null ? void 0 : b.properties) === null || u === void 0 ? void 0 : u[o];
|
15417
15418
|
if (typeof w != "object")
|
15418
15419
|
throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${o}"`);
|
15419
|
-
y = y && (p || v(b)),
|
15420
|
+
y = y && (p || v(b)), C(w, $);
|
15420
15421
|
}
|
15421
15422
|
if (!y)
|
15422
15423
|
throw new Error(`discriminator: "${o}" must be required`);
|
@@ -15424,17 +15425,17 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15424
15425
|
function v({ required: $ }) {
|
15425
15426
|
return Array.isArray($) && $.includes(o);
|
15426
15427
|
}
|
15427
|
-
function
|
15428
|
+
function C($, b) {
|
15428
15429
|
if ($.const)
|
15429
|
-
|
15430
|
+
E($.const, b);
|
15430
15431
|
else {
|
15431
15432
|
if (!$.enum)
|
15432
15433
|
throw new Error(`discriminator: "properties/${o}" must have "const" or "enum"`);
|
15433
15434
|
for (const w of $.enum)
|
15434
|
-
|
15435
|
+
E(w, b);
|
15435
15436
|
}
|
15436
15437
|
}
|
15437
|
-
function
|
15438
|
+
function E($, b) {
|
15438
15439
|
if (typeof $ != "string" || $ in m)
|
15439
15440
|
throw new Error(`discriminator: "${o}" values must be unique strings`);
|
15440
15441
|
m[$] = b;
|
@@ -15485,9 +15486,9 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15485
15486
|
const { gen: u, data: m, schema: p, schemaValue: y, it: v } = h;
|
15486
15487
|
if (v.createErrors === !1)
|
15487
15488
|
return;
|
15488
|
-
const
|
15489
|
+
const C = p, E = g.strConcat(X.default.instancePath, v.errorPath);
|
15489
15490
|
function $(M, T) {
|
15490
|
-
return g.and(ce._`${M}.keyword !== ${r}`, ce._`!${M}.${n}`, ce._`${M}.instancePath === ${
|
15491
|
+
return g.and(ce._`${M}.keyword !== ${r}`, ce._`!${M}.${n}`, ce._`${M}.instancePath === ${E}`, ce._`${M}.keyword in ${T}`, ce._`${M}.schemaPath.indexOf(${v.errSchemaPath}) === 0`, ce._`/^\\/[^\\/]*$/.test(${M}.schemaPath.slice(${v.errSchemaPath.length}))`);
|
15491
15492
|
}
|
15492
15493
|
function b(M, T) {
|
15493
15494
|
const x = [];
|
@@ -15504,7 +15505,7 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15504
15505
|
return ce._`function(){return ${w(M)}}`;
|
15505
15506
|
}
|
15506
15507
|
u.if(ce._`${X.default.errors} > 0`, () => {
|
15507
|
-
if (typeof
|
15508
|
+
if (typeof C == "object") {
|
15508
15509
|
const [T, x] = function(j) {
|
15509
15510
|
let P, R;
|
15510
15511
|
for (const A in j) {
|
@@ -15520,7 +15521,7 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15520
15521
|
R || (R = {}), R[A] = [];
|
15521
15522
|
}
|
15522
15523
|
return [P, R];
|
15523
|
-
}(
|
15524
|
+
}(C);
|
15524
15525
|
x && function(j) {
|
15525
15526
|
const P = u.const("emErrors", ce.stringify(j)), R = u.const("templates", b(j, p));
|
15526
15527
|
u.forOf("err", X.default.vErrors, (Y) => u.if($(Y, P), () => u.code(ce._`${P}[${Y}.keyword].push(${Y})`).assign(ce._`${Y}.${n}`, !0)));
|
@@ -15566,12 +15567,12 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15566
15567
|
}, () => {
|
15567
15568
|
N(P, p.properties), u.assign(Y, ce.str`properties`);
|
15568
15569
|
}), Q = ce._`[${Y}]`) : R ? (u.if(q), N(R, p.items), Q = ce._`.items`) : P && (u.if(g.and(A, g.not(q))), N(P, p.properties), Q = ce._`.properties`), u.forOf("err", X.default.vErrors, (S) => function(F, B, H) {
|
15569
|
-
u.if(g.and(ce._`${F}.keyword !== ${r}`, ce._`!${F}.${n}`, ce._`${F}.instancePath.indexOf(${
|
15570
|
-
const J = u.scopeValue("pattern", { ref: /^\/([^/]*)(?:\/|$)/, code: ce._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")` }), ae = u.const("emMatches", ce._`${J}.exec(${F}.instancePath.slice(${
|
15570
|
+
u.if(g.and(ce._`${F}.keyword !== ${r}`, ce._`!${F}.${n}`, ce._`${F}.instancePath.indexOf(${E}) === 0`), () => {
|
15571
|
+
const J = u.scopeValue("pattern", { ref: /^\/([^/]*)(?:\/|$)/, code: ce._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")` }), ae = u.const("emMatches", ce._`${J}.exec(${F}.instancePath.slice(${E}.length))`), V = u.const("emChild", ce._`${ae} && ${ae}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);
|
15571
15572
|
u.if(ce._`${V} !== undefined && ${V} in ${B}`, () => H(V));
|
15572
15573
|
});
|
15573
15574
|
}(S, G, (F) => u.code(ce._`${G}[${F}].push(${S})`).assign(ce._`${S}.${n}`, !0))), u.forIn("key", G, (S) => u.if(ce._`${G}[${S}].length`, () => {
|
15574
|
-
Pt.reportError(h, { message: ce._`${S} in ${te} ? ${te}[${S}]() : ${y}${Q}[${S}]`, params: ce._`{errors: ${G}[${S}]}` }), u.assign(ce._`${X.default.vErrors}[${X.default.errors}-1].instancePath`, ce._`${
|
15575
|
+
Pt.reportError(h, { message: ce._`${S} in ${te} ? ${te}[${S}]() : ${y}${Q}[${S}]`, params: ce._`{errors: ${G}[${S}]}` }), u.assign(ce._`${X.default.vErrors}[${X.default.errors}-1].instancePath`, ce._`${E} + "/" + ${S}.replace(/~/g, "~0").replace(/\\//g, "~1")`);
|
15575
15576
|
})), u.endIf();
|
15576
15577
|
}(function({ properties: j, items: P }) {
|
15577
15578
|
const R = {};
|
@@ -15586,13 +15587,13 @@ var Lv = /* @__PURE__ */ Object.defineProperty({ default: Vv }, "__esModule", {
|
|
15586
15587
|
R.items[A] = [];
|
15587
15588
|
}
|
15588
15589
|
return R;
|
15589
|
-
}(
|
15590
|
+
}(C));
|
15590
15591
|
}
|
15591
|
-
const M = typeof
|
15592
|
+
const M = typeof C == "string" ? C : C._;
|
15592
15593
|
M && function(T) {
|
15593
15594
|
const x = u.const("emErrs", ce._`[]`);
|
15594
15595
|
u.forOf("err", X.default.vErrors, (j) => u.if(function(P) {
|
15595
|
-
return g.and(ce._`${P}.keyword !== ${r}`, ce._`!${P}.${n}`, g.or(ce._`${P}.instancePath === ${
|
15596
|
+
return g.and(ce._`${P}.keyword !== ${r}`, ce._`!${P}.${n}`, g.or(ce._`${P}.instancePath === ${E}`, g.and(ce._`${P}.instancePath.indexOf(${E}) === 0`, ce._`${P}.instancePath[${E}.length] === "/"`)), ce._`${P}.schemaPath.indexOf(${v.errSchemaPath}) === 0`, ce._`${P}.schemaPath[${v.errSchemaPath}.length] === "/"`);
|
15596
15597
|
}(j), () => u.code(ce._`${x}.push(${j})`).assign(ce._`${j}.${n}`, !0))), u.if(ce._`${x}.length`, () => Pt.reportError(h, { message: w(T), params: ce._`{errors: ${x}}` }));
|
15597
15598
|
}(M), d.keepErrors || function() {
|
15598
15599
|
const T = u.const("emErrs", ce._`[]`);
|
@@ -15643,12 +15644,12 @@ function N0(t) {
|
|
15643
15644
|
let v = /* @__PURE__ */ f.jsx(Ly, { ...i, children: /* @__PURE__ */ f.jsxs(
|
15644
15645
|
$l,
|
15645
15646
|
{
|
15646
|
-
onSubmit: o(async (
|
15647
|
+
onSubmit: o(async (C) => {
|
15647
15648
|
d("");
|
15648
15649
|
try {
|
15649
|
-
await t.onSubmit(
|
15650
|
-
} catch (
|
15651
|
-
d(
|
15650
|
+
await t.onSubmit(C, d, l);
|
15651
|
+
} catch (E) {
|
15652
|
+
d(E instanceof Error ? E.message : "Unknown error");
|
15652
15653
|
}
|
15653
15654
|
}),
|
15654
15655
|
isHorizontal: m,
|
@@ -16104,9 +16105,9 @@ function r0(t, e) {
|
|
16104
16105
|
if (!e) {
|
16105
16106
|
const v = r.get("perPage");
|
16106
16107
|
if (v) {
|
16107
|
-
const
|
16108
|
-
if (Number.isInteger(
|
16109
|
-
return
|
16108
|
+
const C = Number(v);
|
16109
|
+
if (Number.isInteger(C))
|
16110
|
+
return C;
|
16110
16111
|
}
|
16111
16112
|
}
|
16112
16113
|
const y = localStorage.getItem("perPage");
|
@@ -16139,10 +16140,10 @@ function r0(t, e) {
|
|
16139
16140
|
case "perPage":
|
16140
16141
|
break;
|
16141
16142
|
default: {
|
16142
|
-
const
|
16143
|
-
if (
|
16144
|
-
const
|
16145
|
-
y[v] =
|
16143
|
+
const C = r.get(v);
|
16144
|
+
if (C) {
|
16145
|
+
const E = C.split(",");
|
16146
|
+
y[v] = E;
|
16146
16147
|
}
|
16147
16148
|
}
|
16148
16149
|
}
|
@@ -16208,8 +16209,8 @@ function F0(t) {
|
|
16208
16209
|
return !1;
|
16209
16210
|
});
|
16210
16211
|
}, [h, y, s]);
|
16211
|
-
const v = Xs(p.filtered), { setPage:
|
16212
|
-
Ae(() =>
|
16212
|
+
const v = Xs(p.filtered), { setPage: C, setPerPage: E } = v;
|
16213
|
+
Ae(() => C(o), [o, v, C]), Ae(() => E(l), [l, v, E]);
|
16213
16214
|
const $ = xy(e, r);
|
16214
16215
|
return Ie(() => ({
|
16215
16216
|
itemCount: e ? p.filtered.length : void 0,
|