@ansible/ansible-ui-framework 2.4.5 → 2.4.6
Sign up to get free protection for your applications and to get access to all the features.
package/index.js
CHANGED
@@ -4,7 +4,7 @@ var fi = (t, e, r) => (_d(t, typeof e != "symbol" ? e + "" : e, r), r), Ga = (t,
|
|
4
4
|
if (!e.has(t))
|
5
5
|
throw TypeError("Cannot " + r);
|
6
6
|
};
|
7
|
-
var
|
7
|
+
var $r = (t, e, r) => (Ga(t, e, "read from private field"), r ? r.call(t) : e.get(t)), rs = (t, e, r) => {
|
8
8
|
if (e.has(t))
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
10
10
|
e instanceof WeakSet ? e.add(t) : e.set(t, r);
|
@@ -13,12 +13,12 @@ var Er = (t, e, r) => (Ga(t, e, "read from private field"), r ? r.call(t) : e.ge
|
|
13
13
|
hr(t, e, s, r);
|
14
14
|
},
|
15
15
|
get _() {
|
16
|
-
return
|
16
|
+
return $r(t, e, n);
|
17
17
|
}
|
18
18
|
});
|
19
19
|
import * as de from "react";
|
20
|
-
import Ke, { useState as ye, useCallback as ge, useEffect as Pe, createContext as Ir, useContext as Wt, useId as Td, Fragment as
|
21
|
-
import { Tooltip as zt, Switch as Fl, ButtonVariant as pr, Dropdown as Ml, DropdownSeparator as Pd, DropdownItem as ks, DropdownToggle as Vl, KebabToggle as Nd, Button as Qe, Split as zn, DropdownPosition as qs, Flex as Jt, FlexItem as vt, AlertGroup as Dd, Alert as Gs, AlertActionCloseButton as Id, Popover as Ys, FormGroup as ba, Select as Ll, SelectVariant as zl, Modal as gn, ModalVariant as yn, Form as Bl, SelectOption as Pt, ClipboardCopy as Rd, Truncate as js, SplitItem as sr, LabelGroup as Ul, Label as ys, DescriptionListGroup as rn, DescriptionListTerm as zi, DescriptionListDescription as nn, PageSection as Ut, DescriptionList as Os, DataList as Wl, DataListItem as Hl, DataListItemRow as ql, DataListControl as Ad, DataListDragButton as Fd, DataListCheck as Gl, DataListItemCells as Yl, DataListCell as Bi, Pagination as Zl, PaginationVariant as Kl, Card as Md, CardHeader as Vd, CardTitle as Ld, Text as Fn, CardActions as zd, Checkbox as wa, CardFooter as Bd, CardBody as Ud, Stack as an, Title as Br, DataListAction as Wd, DropdownToggleCheckbox as Hd, Toolbar as Za, ToolbarContent as Ka, ToolbarItem as
|
20
|
+
import Ke, { useState as ye, useCallback as ge, useEffect as Pe, createContext as Ir, useContext as Wt, useId as Td, Fragment as xr, useMemo as ke, useRef as Xt, useDebugValue as Ya, createElement as Al, Component as kd, Children as ya, isValidElement as va, cloneElement as jd, useLayoutEffect as Od } from "react";
|
21
|
+
import { Tooltip as zt, Switch as Fl, ButtonVariant as pr, Dropdown as Ml, DropdownSeparator as Pd, DropdownItem as ks, DropdownToggle as Vl, KebabToggle as Nd, Button as Qe, Split as zn, DropdownPosition as qs, Flex as Jt, FlexItem as vt, AlertGroup as Dd, Alert as Gs, AlertActionCloseButton as Id, Popover as Ys, FormGroup as ba, Select as Ll, SelectVariant as zl, Modal as gn, ModalVariant as yn, Form as Bl, SelectOption as Pt, ClipboardCopy as Rd, Truncate as js, SplitItem as sr, LabelGroup as Ul, Label as ys, DescriptionListGroup as rn, DescriptionListTerm as zi, DescriptionListDescription as nn, PageSection as Ut, DescriptionList as Os, DataList as Wl, DataListItem as Hl, DataListItemRow as ql, DataListControl as Ad, DataListDragButton as Fd, DataListCheck as Gl, DataListItemCells as Yl, DataListCell as Bi, Pagination as Zl, PaginationVariant as Kl, Card as Md, CardHeader as Vd, CardTitle as Ld, Text as Fn, CardActions as zd, Checkbox as wa, CardFooter as Bd, CardBody as Ud, Stack as an, Title as Br, DataListAction as Wd, DropdownToggleCheckbox as Hd, Toolbar as Za, ToolbarContent as Ka, ToolbarItem as Cr, Skeleton as or, ToolbarGroup as ns, ToolbarToggleGroup as qd, ToolbarFilter as Gd, ToggleGroup as Yd, ToggleGroupItem as mi, InputGroup as Zs, TextInputGroup as Zd, TextInputGroupMain as Kd, TextInputGroupUtilities as Jd, EmptyState as Ui, EmptyStateVariant as Ja, EmptyStateIcon as Wi, EmptyStateBody as Hi, Bullseye as Xd, Spinner as Qd, EmptyStateSecondaryActions as ef, ModalBoxBody as Ps, Progress as tf, ProgressSize as rf, ProgressVariant as Xa, Icon as nf, ChipGroup as sf, Chip as af, SelectGroup as of, TextArea as lf, TextInput as Jl, ActionGroup as cf, Grid as uf, PageSectionVariants as Qa, PageNavigation as df, StackItem as ss, Breadcrumb as ff, BreadcrumbItem as hf, Tab as Xl, PageSectionTypes as xa, Divider as Ns, Tabs as Sa, TabsComponent as mf } from "@patternfly/react-core";
|
22
22
|
import { CircleIcon as pf, OutlinedQuestionCircleIcon as Ql, HelpIcon as gf, FilterIcon as eo, ColumnsIcon as yf, TableIcon as vf, ListIcon as bf, ThLargeIcon as wf, TimesIcon as xf, ArrowRightIcon as Sf, ExclamationCircleIcon as ec, PlusCircleIcon as Ef, SearchIcon as Ea, PendingIcon as $f, CheckCircleIcon as Cf, ExclamationTriangleIcon as _f, EyeIcon as tc, EyeSlashIcon as rc, ExternalLinkAltIcon as Tf, SyncAltIcon as kf } from "@patternfly/react-icons";
|
23
23
|
import { TableComposable as jf, Thead as nc, Tr as on, Th as ln, Tbody as Of, Td as Vt, CollapseColumn as Pf } from "@patternfly/react-table";
|
24
24
|
import * as pi from "monaco-editor";
|
@@ -1097,11 +1097,11 @@ const Yr = /* @__PURE__ */ de.createContext(null);
|
|
1097
1097
|
process.env.NODE_ENV !== "production" && (Yr.displayName = "Navigation");
|
1098
1098
|
const Qs = /* @__PURE__ */ de.createContext(null);
|
1099
1099
|
process.env.NODE_ENV !== "production" && (Qs.displayName = "Location");
|
1100
|
-
const
|
1100
|
+
const Er = /* @__PURE__ */ de.createContext({
|
1101
1101
|
outlet: null,
|
1102
1102
|
matches: []
|
1103
1103
|
});
|
1104
|
-
process.env.NODE_ENV !== "production" && (
|
1104
|
+
process.env.NODE_ENV !== "production" && (Er.displayName = "Route");
|
1105
1105
|
const $a = /* @__PURE__ */ de.createContext(null);
|
1106
1106
|
process.env.NODE_ENV !== "production" && ($a.displayName = "RouteError");
|
1107
1107
|
function Zi() {
|
@@ -1163,7 +1163,7 @@ function uc() {
|
|
1163
1163
|
navigator: e
|
1164
1164
|
} = de.useContext(Yr), {
|
1165
1165
|
matches: r
|
1166
|
-
} = de.useContext(
|
1166
|
+
} = de.useContext(Er), {
|
1167
1167
|
pathname: n
|
1168
1168
|
} = Zr(), s = JSON.stringify(oc(r).map((o) => o.pathnameBase)), i = de.useRef(!1);
|
1169
1169
|
return de.useEffect(() => {
|
@@ -1182,7 +1182,7 @@ function uc() {
|
|
1182
1182
|
function Th() {
|
1183
1183
|
let {
|
1184
1184
|
matches: t
|
1185
|
-
} = de.useContext(
|
1185
|
+
} = de.useContext(Er), e = t[t.length - 1];
|
1186
1186
|
return e ? e.params : {};
|
1187
1187
|
}
|
1188
1188
|
function ti(t, e) {
|
@@ -1190,7 +1190,7 @@ function ti(t, e) {
|
|
1190
1190
|
relative: r
|
1191
1191
|
} = e === void 0 ? {} : e, {
|
1192
1192
|
matches: n
|
1193
|
-
} = de.useContext(
|
1193
|
+
} = de.useContext(Er), {
|
1194
1194
|
pathname: s
|
1195
1195
|
} = Zr(), i = JSON.stringify(oc(n).map((a) => a.pathnameBase));
|
1196
1196
|
return de.useMemo(() => lc(t, JSON.parse(i), s, r === "path"), [t, i, s, r]);
|
@@ -1206,7 +1206,7 @@ function kh(t, e) {
|
|
1206
1206
|
navigator: r
|
1207
1207
|
} = de.useContext(Yr), n = de.useContext(Xs), {
|
1208
1208
|
matches: s
|
1209
|
-
} = de.useContext(
|
1209
|
+
} = de.useContext(Er), i = s[s.length - 1], a = i ? i.params : {}, o = i ? i.pathname : "/", l = i ? i.pathnameBase : "/", c = i && i.route;
|
1210
1210
|
if (process.env.NODE_ENV !== "production") {
|
1211
1211
|
let E = c && c.path || "";
|
1212
1212
|
Fh(o, !c || E.endsWith("*"), "You rendered descendant <Routes> (or called `useRoutes()`) at " + ('"' + o + '" (under <Route path="' + E + '">) but the ') + `parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.
|
@@ -1295,7 +1295,7 @@ class Oh extends de.Component {
|
|
1295
1295
|
console.error("React Router caught the following error during render", e, r);
|
1296
1296
|
}
|
1297
1297
|
render() {
|
1298
|
-
return this.state.error ? /* @__PURE__ */ de.createElement(
|
1298
|
+
return this.state.error ? /* @__PURE__ */ de.createElement(Er.Provider, {
|
1299
1299
|
value: this.props.routeContext
|
1300
1300
|
}, /* @__PURE__ */ de.createElement($a.Provider, {
|
1301
1301
|
value: this.state.error,
|
@@ -1309,7 +1309,7 @@ function Ph(t) {
|
|
1309
1309
|
match: r,
|
1310
1310
|
children: n
|
1311
1311
|
} = t, s = de.useContext(Js);
|
1312
|
-
return s && s.static && s.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (s.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ de.createElement(
|
1312
|
+
return s && s.static && s.staticContext && (r.route.errorElement || r.route.ErrorBoundary) && (s.staticContext._deepestRenderedBoundaryId = r.route.id), /* @__PURE__ */ de.createElement(Er.Provider, {
|
1313
1313
|
value: e
|
1314
1314
|
}, n);
|
1315
1315
|
}
|
@@ -1366,7 +1366,7 @@ function Dh(t) {
|
|
1366
1366
|
return e || (process.env.NODE_ENV !== "production" ? Ae(!1, dc(t)) : Ae(!1)), e;
|
1367
1367
|
}
|
1368
1368
|
function Ih(t) {
|
1369
|
-
let e = de.useContext(
|
1369
|
+
let e = de.useContext(Er);
|
1370
1370
|
return e || (process.env.NODE_ENV !== "production" ? Ae(!1, dc(t)) : Ae(!1)), e;
|
1371
1371
|
}
|
1372
1372
|
function Rh(t) {
|
@@ -1692,7 +1692,7 @@ function mc(t, e) {
|
|
1692
1692
|
relative: r
|
1693
1693
|
} = e === void 0 ? {} : e, {
|
1694
1694
|
basename: n
|
1695
|
-
} = de.useContext(Yr), s = de.useContext(
|
1695
|
+
} = de.useContext(Yr), s = de.useContext(Er);
|
1696
1696
|
s || (process.env.NODE_ENV !== "production" ? Ae(!1, "useFormAction must be used inside a RouteContext") : Ae(!1));
|
1697
1697
|
let [i] = s.matches.slice(-1), a = Gr({}, ti(t || ".", {
|
1698
1698
|
relative: r
|
@@ -1785,7 +1785,7 @@ function Bn() {
|
|
1785
1785
|
);
|
1786
1786
|
}
|
1787
1787
|
function vc(t) {
|
1788
|
-
const { action: e, wrapper: r, selectedItem: n, iconOnly: s } = t, a = Bn()(e, n), o = r ??
|
1788
|
+
const { action: e, wrapper: r, selectedItem: n, iconOnly: s } = t, a = Bn()(e, n), o = r ?? xr, l = a || (e.tooltip ? e.tooltip : void 0), c = Td();
|
1789
1789
|
let d = e.label;
|
1790
1790
|
s && e.showPinnedLabel !== !0 && (d = void 0);
|
1791
1791
|
let h = e.labelOff;
|
@@ -2728,7 +2728,7 @@ var bo = function(t, e) {
|
|
2728
2728
|
return r;
|
2729
2729
|
}, Xi = function(t) {
|
2730
2730
|
return t !== null && typeof t == "object" && (t.toString ? t.toString() : Object.prototype.toString.call(t)) === "[object Object]" && !fn.typeOf(t);
|
2731
|
-
}, Is = Object.freeze([]),
|
2731
|
+
}, Is = Object.freeze([]), Nr = Object.freeze({});
|
2732
2732
|
function Mn(t) {
|
2733
2733
|
return typeof t == "function";
|
2734
2734
|
}
|
@@ -2925,7 +2925,7 @@ var Em = function() {
|
|
2925
2925
|
}, t;
|
2926
2926
|
}(), wo = Oa, Im = { isServer: !Oa, useCSSOMInjection: !wm }, Sc = function() {
|
2927
2927
|
function t(r, n, s) {
|
2928
|
-
r === void 0 && (r =
|
2928
|
+
r === void 0 && (r = Nr), n === void 0 && (n = {}), this.options = vr({}, Im, {}, r), this.gs = n, this.names = new Map(s), this.server = !!r.isServer, !this.server && Oa && wo && (wo = !1, function(i) {
|
2929
2929
|
for (var a = document.querySelectorAll(_m), o = 0, l = a.length; o < l; o++) {
|
2930
2930
|
var c = a[o];
|
2931
2931
|
c && c.getAttribute(hn) !== "active" && (jm(i, c), c.parentNode && c.parentNode.removeChild(c));
|
@@ -3042,7 +3042,7 @@ var Fm = Ec("5.3.9"), Mm = function() {
|
|
3042
3042
|
}, t;
|
3043
3043
|
}(), Vm = /^\s*\/\/.*$/gm, Lm = [":", "[", ".", "#"];
|
3044
3044
|
function zm(t) {
|
3045
|
-
var e, r, n, s, i = t === void 0 ?
|
3045
|
+
var e, r, n, s, i = t === void 0 ? Nr : t, a = i.options, o = a === void 0 ? Nr : a, l = i.plugins, c = l === void 0 ? Is : l, d = new lm(o), h = [], u = function(y) {
|
3046
3046
|
function v(E) {
|
3047
3047
|
if (E)
|
3048
3048
|
try {
|
@@ -3180,7 +3180,7 @@ To resolve this only create new StyledComponents outside of any render method an
|
|
3180
3180
|
}
|
3181
3181
|
}
|
3182
3182
|
}, Km = function(t, e, r) {
|
3183
|
-
return r === void 0 && (r =
|
3183
|
+
return r === void 0 && (r = Nr), t.theme !== r.theme && t.theme || e || r.theme;
|
3184
3184
|
}, Jm = /[!"#$%&'()*+,./:;<=>?@[\\\]^`{|}~-]+/g, Xm = /(^-|-$)/g;
|
3185
3185
|
function bi(t) {
|
3186
3186
|
return t.replace(Jm, "-").replace(Xm, "");
|
@@ -3231,15 +3231,15 @@ function Pc(t, e, r) {
|
|
3231
3231
|
var _ = w.attrs, x = w.componentStyle, k = w.defaultProps, O = w.foldedComponentIds, R = w.shouldForwardProp, F = w.styledComponentId, H = w.target;
|
3232
3232
|
process.env.NODE_ENV !== "production" && Ya(F);
|
3233
3233
|
var G = function(ie, z, ve) {
|
3234
|
-
ie === void 0 && (ie =
|
3234
|
+
ie === void 0 && (ie = Nr);
|
3235
3235
|
var te = vr({}, z, { theme: ie }), Ne = {};
|
3236
3236
|
return ve.forEach(function(Ce) {
|
3237
3237
|
var Ee, Z, Ue, Le = Ce;
|
3238
3238
|
for (Ee in Mn(Le) && (Le = Le(te)), Le)
|
3239
3239
|
te[Ee] = Ne[Ee] = Ee === "className" ? (Z = Ne[Ee], Ue = Le[Ee], Z && Ue ? Z + " " + Ue : Z || Ue) : Le[Ee];
|
3240
3240
|
}), [te, Ne];
|
3241
|
-
}(Km(b, Wt(Oc), k) ||
|
3242
|
-
var Ne = Um(), Ce = Wm(), Ee = z ? ie.generateAndInjectStyles(
|
3241
|
+
}(Km(b, Wt(Oc), k) || Nr, b, _), Y = G[0], X = G[1], ee = function(ie, z, ve, te) {
|
3242
|
+
var Ne = Um(), Ce = Wm(), Ee = z ? ie.generateAndInjectStyles(Nr, Ne, Ce) : ie.generateAndInjectStyles(ve, Ne, Ce);
|
3243
3243
|
return process.env.NODE_ENV !== "production" && Ya(Ee), process.env.NODE_ENV !== "production" && !z && te && te(Ee), Ee;
|
3244
3244
|
}(x, V, Y, process.env.NODE_ENV !== "production" ? w.warnTooManyClasses : void 0), N = A, $ = X.$as || b.$as || X.as || b.as || H, M = os($), U = X !== b ? vr({}, b, {}, X) : b, q = {};
|
3245
3245
|
for (var K in U)
|
@@ -3284,7 +3284,7 @@ Example:
|
|
3284
3284
|
}
|
3285
3285
|
var na = function(t) {
|
3286
3286
|
return function e(r, n, s) {
|
3287
|
-
if (s === void 0 && (s =
|
3287
|
+
if (s === void 0 && (s = Nr), !fn.isValidElementType(n))
|
3288
3288
|
return vn(1, String(n));
|
3289
3289
|
var i = function() {
|
3290
3290
|
return r(n, s, Tc.apply(void 0, arguments));
|
@@ -3315,7 +3315,7 @@ const gt = na, rp = gt.span`
|
|
3315
3315
|
padding-right: 4px;
|
3316
3316
|
`;
|
3317
3317
|
function np(t) {
|
3318
|
-
const { action: e, isSecondary: r, wrapper: n, iconOnly: s, selectedItem: i, selectedItems: a } = t, l = Bn()(e, i, a), c = n ??
|
3318
|
+
const { action: e, isSecondary: r, wrapper: n, iconOnly: s, selectedItem: i, selectedItems: a } = t, l = Bn()(e, i, a), c = n ?? xr, d = e.icon, h = l || (e.tooltip ? e.tooltip : s ? e.label : void 0);
|
3319
3319
|
let u = e.variant ?? pr.secondary;
|
3320
3320
|
r && [pr.primary, pr.danger].includes(u) && (u = pr.secondary), u === pr.primary && e.isDanger && (u = pr.danger), s && (u = pr.plain);
|
3321
3321
|
const m = e.label.toLowerCase().split(" ").join("-"), p = s && d ? /* @__PURE__ */ f.jsx(d, {}) : e.label;
|
@@ -3349,7 +3349,7 @@ const sp = gt.span`
|
|
3349
3349
|
padding-right: 4px;
|
3350
3350
|
`;
|
3351
3351
|
function ip(t) {
|
3352
|
-
const { action: e, wrapper: r, iconOnly: n, selectedItem: s, selectedItems: i } = t, o = Bn()(e, s, i), l = r ??
|
3352
|
+
const { action: e, wrapper: r, iconOnly: n, selectedItem: s, selectedItems: i } = t, o = Bn()(e, s, i), l = r ?? xr, c = e.icon, d = o || (e.tooltip ? e.tooltip : n ? e.label : void 0), h = e.label.toLowerCase().split(" ").join("-"), u = n && c ? /* @__PURE__ */ f.jsx(c, {}) : e.label;
|
3353
3353
|
let m;
|
3354
3354
|
switch (e.selection) {
|
3355
3355
|
case st.None:
|
@@ -3866,7 +3866,7 @@ class Fc extends Jr {
|
|
3866
3866
|
}
|
3867
3867
|
class Lt extends Jr {
|
3868
3868
|
}
|
3869
|
-
class
|
3869
|
+
class _r extends Jr {
|
3870
3870
|
constructor() {
|
3871
3871
|
super("Zone is an abstract class");
|
3872
3872
|
}
|
@@ -4004,7 +4004,7 @@ class qn {
|
|
4004
4004
|
* @type {string}
|
4005
4005
|
*/
|
4006
4006
|
get type() {
|
4007
|
-
throw new
|
4007
|
+
throw new _r();
|
4008
4008
|
}
|
4009
4009
|
/**
|
4010
4010
|
* The name of this zone.
|
@@ -4012,7 +4012,7 @@ class qn {
|
|
4012
4012
|
* @type {string}
|
4013
4013
|
*/
|
4014
4014
|
get name() {
|
4015
|
-
throw new
|
4015
|
+
throw new _r();
|
4016
4016
|
}
|
4017
4017
|
get ianaName() {
|
4018
4018
|
return this.name;
|
@@ -4023,7 +4023,7 @@ class qn {
|
|
4023
4023
|
* @type {boolean}
|
4024
4024
|
*/
|
4025
4025
|
get isUniversal() {
|
4026
|
-
throw new
|
4026
|
+
throw new _r();
|
4027
4027
|
}
|
4028
4028
|
/**
|
4029
4029
|
* Returns the offset's common name (such as EST) at the specified timestamp
|
@@ -4035,7 +4035,7 @@ class qn {
|
|
4035
4035
|
* @return {string}
|
4036
4036
|
*/
|
4037
4037
|
offsetName(e, r) {
|
4038
|
-
throw new
|
4038
|
+
throw new _r();
|
4039
4039
|
}
|
4040
4040
|
/**
|
4041
4041
|
* Returns the offset's value as a string
|
@@ -4046,7 +4046,7 @@ class qn {
|
|
4046
4046
|
* @return {string}
|
4047
4047
|
*/
|
4048
4048
|
formatOffset(e, r) {
|
4049
|
-
throw new
|
4049
|
+
throw new _r();
|
4050
4050
|
}
|
4051
4051
|
/**
|
4052
4052
|
* Return the offset in minutes for this zone at the specified timestamp.
|
@@ -4055,7 +4055,7 @@ class qn {
|
|
4055
4055
|
* @return {number}
|
4056
4056
|
*/
|
4057
4057
|
offset(e) {
|
4058
|
-
throw new
|
4058
|
+
throw new _r();
|
4059
4059
|
}
|
4060
4060
|
/**
|
4061
4061
|
* Return whether this Zone is equal to another zone
|
@@ -4064,7 +4064,7 @@ class qn {
|
|
4064
4064
|
* @return {boolean}
|
4065
4065
|
*/
|
4066
4066
|
equals(e) {
|
4067
|
-
throw new
|
4067
|
+
throw new _r();
|
4068
4068
|
}
|
4069
4069
|
/**
|
4070
4070
|
* Return whether this Zone is valid.
|
@@ -4072,7 +4072,7 @@ class qn {
|
|
4072
4072
|
* @type {boolean}
|
4073
4073
|
*/
|
4074
4074
|
get isValid() {
|
4075
|
-
throw new
|
4075
|
+
throw new _r();
|
4076
4076
|
}
|
4077
4077
|
}
|
4078
4078
|
let xi = null;
|
@@ -4153,13 +4153,13 @@ function wp(t, e) {
|
|
4153
4153
|
return n;
|
4154
4154
|
}
|
4155
4155
|
let ls = {};
|
4156
|
-
class
|
4156
|
+
class Sr extends qn {
|
4157
4157
|
/**
|
4158
4158
|
* @param {string} name - Zone name
|
4159
4159
|
* @return {IANAZone}
|
4160
4160
|
*/
|
4161
4161
|
static create(e) {
|
4162
|
-
return ls[e] || (ls[e] = new
|
4162
|
+
return ls[e] || (ls[e] = new Sr(e)), ls[e];
|
4163
4163
|
}
|
4164
4164
|
/**
|
4165
4165
|
* Reset local caches. Should only be necessary in testing scenarios.
|
@@ -4197,7 +4197,7 @@ class xr extends qn {
|
|
4197
4197
|
}
|
4198
4198
|
}
|
4199
4199
|
constructor(e) {
|
4200
|
-
super(), this.zoneName = e, this.valid =
|
4200
|
+
super(), this.zoneName = e, this.valid = Sr.isValidZone(e);
|
4201
4201
|
}
|
4202
4202
|
/** @override **/
|
4203
4203
|
get type() {
|
@@ -4348,7 +4348,7 @@ class Pp {
|
|
4348
4348
|
this.dt = e;
|
4349
4349
|
else if (e.zone.type === "fixed") {
|
4350
4350
|
const a = -1 * (e.offset / 60), o = a >= 0 ? `Etc/GMT+${a}` : `Etc/GMT${a}`;
|
4351
|
-
e.offset !== 0 &&
|
4351
|
+
e.offset !== 0 && Sr.create(o).valid ? (s = o, this.dt = e) : (s = "UTC", this.dt = e.offset === 0 ? e : e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
4352
4352
|
} else
|
4353
4353
|
e.zone.type === "system" ? this.dt = e : e.zone.type === "iana" ? (this.dt = e, s = e.zone.name) : (s = "UTC", this.dt = e.setZone("UTC").plus({ minutes: e.offset }), this.originalZone = e.zone);
|
4354
4354
|
const i = { ...this.opts };
|
@@ -4598,14 +4598,14 @@ class Dp extends qn {
|
|
4598
4598
|
return !1;
|
4599
4599
|
}
|
4600
4600
|
}
|
4601
|
-
function
|
4601
|
+
function Or(t, e) {
|
4602
4602
|
if (Fe(t) || t === null)
|
4603
4603
|
return e;
|
4604
4604
|
if (t instanceof qn)
|
4605
4605
|
return t;
|
4606
4606
|
if (Ip(t)) {
|
4607
4607
|
const r = t.toLowerCase();
|
4608
|
-
return r === "default" ? e : r === "local" || r === "system" ? ii.instance : r === "utc" || r === "gmt" ? kt.utcInstance : kt.parseSpecifier(r) ||
|
4608
|
+
return r === "default" ? e : r === "local" || r === "system" ? ii.instance : r === "utc" || r === "gmt" ? kt.utcInstance : kt.parseSpecifier(r) || Sr.create(t);
|
4609
4609
|
} else
|
4610
4610
|
return Ur(t) ? kt.instance(t) : typeof t == "object" && t.offset && typeof t.offset == "number" ? t : new Dp(t);
|
4611
4611
|
}
|
@@ -4642,7 +4642,7 @@ class ht {
|
|
4642
4642
|
* @type {Zone}
|
4643
4643
|
*/
|
4644
4644
|
static get defaultZone() {
|
4645
|
-
return
|
4645
|
+
return Or(jo, ii.instance);
|
4646
4646
|
}
|
4647
4647
|
/**
|
4648
4648
|
* Get the default locale to create DateTimes with. Does not affect existing instances.
|
@@ -4723,7 +4723,7 @@ class ht {
|
|
4723
4723
|
* @return {void}
|
4724
4724
|
*/
|
4725
4725
|
static resetCaches() {
|
4726
|
-
rt.resetCache(),
|
4726
|
+
rt.resetCache(), Sr.resetCache();
|
4727
4727
|
}
|
4728
4728
|
}
|
4729
4729
|
function Fe(t) {
|
@@ -4775,7 +4775,7 @@ function mt(t, e = 2) {
|
|
4775
4775
|
let n;
|
4776
4776
|
return r ? n = "-" + ("" + -t).padStart(e, "0") : n = ("" + t).padStart(e, "0"), n;
|
4777
4777
|
}
|
4778
|
-
function
|
4778
|
+
function jr(t) {
|
4779
4779
|
if (!(Fe(t) || t === null || t === ""))
|
4780
4780
|
return parseInt(t, 10);
|
4781
4781
|
}
|
@@ -5255,7 +5255,7 @@ function mu(...t) {
|
|
5255
5255
|
const n = {};
|
5256
5256
|
let s;
|
5257
5257
|
for (s = 0; s < t.length; s++)
|
5258
|
-
n[t[s]] =
|
5258
|
+
n[t[s]] = jr(e[r + s]);
|
5259
5259
|
return [n, null, r + s];
|
5260
5260
|
};
|
5261
5261
|
}
|
@@ -5264,7 +5264,7 @@ const pu = /(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/, Jp = `(?:${pu.source}?(?:\\[(${hu.
|
|
5264
5264
|
), sg = RegExp(`(?: ${yu.source})?`);
|
5265
5265
|
function cn(t, e, r) {
|
5266
5266
|
const n = t[e];
|
5267
|
-
return Fe(n) ? r :
|
5267
|
+
return Fe(n) ? r : jr(n);
|
5268
5268
|
}
|
5269
5269
|
function ig(t, e) {
|
5270
5270
|
return [{
|
@@ -5286,7 +5286,7 @@ function Yn(t, e) {
|
|
5286
5286
|
return [{}, s, e + 3];
|
5287
5287
|
}
|
5288
5288
|
function Zn(t, e) {
|
5289
|
-
const r = t[e] ?
|
5289
|
+
const r = t[e] ? Sr.create(t[e]) : null;
|
5290
5290
|
return [{}, r, e + 1];
|
5291
5291
|
}
|
5292
5292
|
const ag = RegExp(`^T?${Ia.source}$`), og = /^-?P(?:(?:(-?\d{1,20}(?:\.\d{1,20})?)Y)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20}(?:\.\d{1,20})?)W)?(?:(-?\d{1,20}(?:\.\d{1,20})?)D)?(?:T(?:(-?\d{1,20}(?:\.\d{1,20})?)H)?(?:(-?\d{1,20}(?:\.\d{1,20})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,20}))?S)?)?)$/;
|
@@ -5318,13 +5318,13 @@ const cg = {
|
|
5318
5318
|
};
|
5319
5319
|
function Aa(t, e, r, n, s, i, a) {
|
5320
5320
|
const o = {
|
5321
|
-
year: e.length === 2 ? la(
|
5321
|
+
year: e.length === 2 ? la(jr(e)) : jr(e),
|
5322
5322
|
month: au.indexOf(r) + 1,
|
5323
|
-
day:
|
5324
|
-
hour:
|
5325
|
-
minute:
|
5323
|
+
day: jr(n),
|
5324
|
+
hour: jr(s),
|
5325
|
+
minute: jr(i)
|
5326
5326
|
};
|
5327
|
-
return a && (o.second =
|
5327
|
+
return a && (o.second = jr(a)), t && (o.weekday = t.length > 3 ? lu.indexOf(t) + 1 : cu.indexOf(t) + 1), o;
|
5328
5328
|
}
|
5329
5329
|
const ug = /^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;
|
5330
5330
|
function dg(t) {
|
@@ -5502,7 +5502,7 @@ const Ig = "Invalid Duration", bu = {
|
|
5502
5502
|
"seconds",
|
5503
5503
|
"milliseconds"
|
5504
5504
|
], Fg = Ar.slice(0).reverse();
|
5505
|
-
function
|
5505
|
+
function Tr(t, e, r = !1) {
|
5506
5506
|
const n = {
|
5507
5507
|
values: r ? e.values : { ...t.values, ...e.values || {} },
|
5508
5508
|
loc: t.loc.clone(e.loc),
|
@@ -5851,7 +5851,7 @@ class Ve {
|
|
5851
5851
|
const r = Ve.fromDurationLike(e), n = {};
|
5852
5852
|
for (const s of Ar)
|
5853
5853
|
(pn(r.values, s) || pn(this.values, s)) && (n[s] = r.get(s) + this.get(s));
|
5854
|
-
return
|
5854
|
+
return Tr(this, { values: n }, !0);
|
5855
5855
|
}
|
5856
5856
|
/**
|
5857
5857
|
* Make this Duration shorter by the specified amount. Return a newly-constructed Duration.
|
@@ -5877,7 +5877,7 @@ class Ve {
|
|
5877
5877
|
const r = {};
|
5878
5878
|
for (const n of Object.keys(this.values))
|
5879
5879
|
r[n] = iu(e(this.values[n], n));
|
5880
|
-
return
|
5880
|
+
return Tr(this, { values: r }, !0);
|
5881
5881
|
}
|
5882
5882
|
/**
|
5883
5883
|
* Get the value of unit.
|
@@ -5901,7 +5901,7 @@ class Ve {
|
|
5901
5901
|
if (!this.isValid)
|
5902
5902
|
return this;
|
5903
5903
|
const r = { ...this.values, ...Vs(e, Ve.normalizeUnit) };
|
5904
|
-
return
|
5904
|
+
return Tr(this, { values: r });
|
5905
5905
|
}
|
5906
5906
|
/**
|
5907
5907
|
* "Set" the locale and/or numberingSystem. Returns a newly-constructed Duration.
|
@@ -5910,7 +5910,7 @@ class Ve {
|
|
5910
5910
|
*/
|
5911
5911
|
reconfigure({ locale: e, numberingSystem: r, conversionAccuracy: n, matrix: s } = {}) {
|
5912
5912
|
const a = { loc: this.loc.clone({ locale: e, numberingSystem: r }), matrix: s, conversionAccuracy: n };
|
5913
|
-
return
|
5913
|
+
return Tr(this, a);
|
5914
5914
|
}
|
5915
5915
|
/**
|
5916
5916
|
* Return the length of the duration in the specified unit.
|
@@ -5933,7 +5933,7 @@ class Ve {
|
|
5933
5933
|
if (!this.isValid)
|
5934
5934
|
return this;
|
5935
5935
|
const e = this.toObject();
|
5936
|
-
return Vg(this.matrix, e),
|
5936
|
+
return Vg(this.matrix, e), Tr(this, { values: e }, !0);
|
5937
5937
|
}
|
5938
5938
|
/**
|
5939
5939
|
* Rescale units to its largest representation
|
@@ -5944,7 +5944,7 @@ class Ve {
|
|
5944
5944
|
if (!this.isValid)
|
5945
5945
|
return this;
|
5946
5946
|
const e = Lg(this.normalize().shiftToAll().toObject());
|
5947
|
-
return
|
5947
|
+
return Tr(this, { values: e }, !0);
|
5948
5948
|
}
|
5949
5949
|
/**
|
5950
5950
|
* Convert this Duration into its representation in a different set of units.
|
@@ -5974,7 +5974,7 @@ class Ve {
|
|
5974
5974
|
Ur(s[a]) && (n[a] = s[a]);
|
5975
5975
|
for (const a in n)
|
5976
5976
|
n[a] !== 0 && (r[i] += a === i ? n[a] : n[a] / this.matrix[i][a]);
|
5977
|
-
return
|
5977
|
+
return Tr(this, { values: r }, !0).normalize();
|
5978
5978
|
}
|
5979
5979
|
/**
|
5980
5980
|
* Shift this Duration to all available units.
|
@@ -6004,7 +6004,7 @@ class Ve {
|
|
6004
6004
|
const e = {};
|
6005
6005
|
for (const r of Object.keys(this.values))
|
6006
6006
|
e[r] = this.values[r] === 0 ? 0 : -this.values[r];
|
6007
|
-
return
|
6007
|
+
return Tr(this, { values: e }, !0);
|
6008
6008
|
}
|
6009
6009
|
/**
|
6010
6010
|
* Get the years.
|
@@ -6575,7 +6575,7 @@ class us {
|
|
6575
6575
|
* @return {boolean}
|
6576
6576
|
*/
|
6577
6577
|
static isValidIANAZone(e) {
|
6578
|
-
return
|
6578
|
+
return Sr.isValidZone(e);
|
6579
6579
|
}
|
6580
6580
|
/**
|
6581
6581
|
* Converts the input into a {@link Zone} instance.
|
@@ -6592,7 +6592,7 @@ class us {
|
|
6592
6592
|
* @return {Zone}
|
6593
6593
|
*/
|
6594
6594
|
static normalizeZone(e) {
|
6595
|
-
return
|
6595
|
+
return Or(e, ht.defaultZone);
|
6596
6596
|
}
|
6597
6597
|
/**
|
6598
6598
|
* Return an array of standalone month names.
|
@@ -7038,7 +7038,7 @@ function ty(t) {
|
|
7038
7038
|
}
|
7039
7039
|
};
|
7040
7040
|
let r = null, n;
|
7041
|
-
return Fe(t.z) || (r =
|
7041
|
+
return Fe(t.z) || (r = Sr.create(t.z)), Fe(t.Z) || (r || (r = new kt(t.Z)), n = t.Z), Fe(t.q) || (t.M = (t.q - 1) * 3 + 1), Fe(t.h) || (t.h < 12 && t.a === 1 ? t.h += 12 : t.h === 12 && t.a === 0 && (t.h = 0)), t.G === 0 && t.y && (t.y = -t.y), Fe(t.u) || (t.S = Pa(t.u)), [Object.keys(t).reduce((i, a) => {
|
7042
7042
|
const o = e(a);
|
7043
7043
|
return o && (i[o] = t[a]), i;
|
7044
7044
|
}, {}), r, n];
|
@@ -7285,7 +7285,7 @@ function Yo(t) {
|
|
7285
7285
|
return e;
|
7286
7286
|
}
|
7287
7287
|
function Zo(t, e) {
|
7288
|
-
const r =
|
7288
|
+
const r = Or(e.zone, ht.defaultZone), n = rt.fromObject(e), s = ht.now();
|
7289
7289
|
let i, a;
|
7290
7290
|
if (Fe(t.year))
|
7291
7291
|
i = s;
|
@@ -7408,7 +7408,7 @@ class Te {
|
|
7408
7408
|
const n = Rp(e) ? e.valueOf() : NaN;
|
7409
7409
|
if (Number.isNaN(n))
|
7410
7410
|
return Te.invalid("invalid input");
|
7411
|
-
const s =
|
7411
|
+
const s = Or(r.zone, ht.defaultZone);
|
7412
7412
|
return s.isValid ? new Te({
|
7413
7413
|
ts: n,
|
7414
7414
|
zone: s,
|
@@ -7429,7 +7429,7 @@ class Te {
|
|
7429
7429
|
if (Ur(e))
|
7430
7430
|
return e < -Wo || e > Wo ? Te.invalid("Timestamp out of range") : new Te({
|
7431
7431
|
ts: e,
|
7432
|
-
zone:
|
7432
|
+
zone: Or(r.zone, ht.defaultZone),
|
7433
7433
|
loc: rt.fromObject(r)
|
7434
7434
|
});
|
7435
7435
|
throw new Lt(
|
@@ -7450,7 +7450,7 @@ class Te {
|
|
7450
7450
|
if (Ur(e))
|
7451
7451
|
return new Te({
|
7452
7452
|
ts: e * 1e3,
|
7453
|
-
zone:
|
7453
|
+
zone: Or(r.zone, ht.defaultZone),
|
7454
7454
|
loc: rt.fromObject(r)
|
7455
7455
|
});
|
7456
7456
|
throw new Lt("fromSeconds requires a numerical input");
|
@@ -7485,7 +7485,7 @@ class Te {
|
|
7485
7485
|
*/
|
7486
7486
|
static fromObject(e, r = {}) {
|
7487
7487
|
e = e || {};
|
7488
|
-
const n =
|
7488
|
+
const n = Or(r.zone, ht.defaultZone);
|
7489
7489
|
if (!n.isValid)
|
7490
7490
|
return Te.invalid(fs(n));
|
7491
7491
|
const s = ht.now(), i = Fe(r.specificOffset) ? n.offset(s) : r.specificOffset, a = Vs(e, Yo), o = !Fe(a.ordinal), l = !Fe(a.year), c = !Fe(a.month) || !Fe(a.day), d = l || c, h = a.weekYear || a.weekNumber, u = rt.fromObject(r);
|
@@ -8003,7 +8003,7 @@ class Te {
|
|
8003
8003
|
* @return {DateTime}
|
8004
8004
|
*/
|
8005
8005
|
setZone(e, { keepLocalTime: r = !1, keepCalendarTime: n = !1 } = {}) {
|
8006
|
-
if (e =
|
8006
|
+
if (e = Or(e, ht.defaultZone), e.equals(this.zone))
|
8007
8007
|
return this;
|
8008
8008
|
if (e.isValid) {
|
8009
8009
|
let s = this.ts;
|
@@ -9046,7 +9046,7 @@ function Ry(t) {
|
|
9046
9046
|
}
|
9047
9047
|
function Ay(t) {
|
9048
9048
|
const { item: e, columns: r, disablePadding: n, numberOfColumns: s } = t;
|
9049
|
-
return e ? /* @__PURE__ */ f.jsx(Ty, { disablePadding: n, numberOfColumns: s, children: r.map((i) => /* @__PURE__ */ f.jsx(Ss, { label: i.header, children: /* @__PURE__ */ f.jsx(Tt, { column: i, item: e }) }, i.id ?? i.header)) }) : /* @__PURE__ */ f.jsx(f.Fragment, {});
|
9049
|
+
return e ? /* @__PURE__ */ f.jsx(Ty, { disablePadding: n, numberOfColumns: s, children: r.map((i) => "value" in i && i.value && i.value(e) === void 0 ? /* @__PURE__ */ f.jsx(xr, {}, i.id ?? i.header) : /* @__PURE__ */ f.jsx(Ss, { label: i.header, children: /* @__PURE__ */ f.jsx(Tt, { column: i, item: e }) }, i.id ?? i.header)) }) : /* @__PURE__ */ f.jsx(f.Fragment, {});
|
9050
9050
|
}
|
9051
9051
|
class Fy {
|
9052
9052
|
constructor(e) {
|
@@ -9065,21 +9065,21 @@ class My {
|
|
9065
9065
|
}
|
9066
9066
|
enqueue(e) {
|
9067
9067
|
const r = new Fy(e);
|
9068
|
-
|
9068
|
+
$r(this, nr) ? ($r(this, Lr).next = r, hr(this, Lr, r)) : (hr(this, nr, r), hr(this, Lr, r)), hi(this, zr)._++;
|
9069
9069
|
}
|
9070
9070
|
dequeue() {
|
9071
|
-
const e =
|
9071
|
+
const e = $r(this, nr);
|
9072
9072
|
if (e)
|
9073
|
-
return hr(this, nr,
|
9073
|
+
return hr(this, nr, $r(this, nr).next), hi(this, zr)._--, e.value;
|
9074
9074
|
}
|
9075
9075
|
clear() {
|
9076
9076
|
hr(this, nr, void 0), hr(this, Lr, void 0), hr(this, zr, 0);
|
9077
9077
|
}
|
9078
9078
|
get size() {
|
9079
|
-
return
|
9079
|
+
return $r(this, zr);
|
9080
9080
|
}
|
9081
9081
|
*[Symbol.iterator]() {
|
9082
|
-
let e =
|
9082
|
+
let e = $r(this, nr);
|
9083
9083
|
for (; e; )
|
9084
9084
|
yield e.value, e = e.next;
|
9085
9085
|
}
|
@@ -10179,7 +10179,7 @@ function Dv(t) {
|
|
10179
10179
|
{
|
10180
10180
|
className: "border-bottom dark-2",
|
10181
10181
|
style: { paddingBottom: m ? void 0 : 8, paddingTop: m ? void 0 : 8 },
|
10182
|
-
children: /* @__PURE__ */ f.jsx(Ka, { children: /* @__PURE__ */ f.jsx(
|
10182
|
+
children: /* @__PURE__ */ f.jsx(Ka, { children: /* @__PURE__ */ f.jsx(Cr, { style: { width: "100%" }, children: /* @__PURE__ */ f.jsx(or, { height: "36px" }) }) })
|
10183
10183
|
}
|
10184
10184
|
) : /* @__PURE__ */ f.jsx(
|
10185
10185
|
Za,
|
@@ -10192,9 +10192,9 @@ function Dv(t) {
|
|
10192
10192
|
borderBottom: u ? "thin solid var(--pf-global--BorderColor--100)" : void 0
|
10193
10193
|
},
|
10194
10194
|
children: /* @__PURE__ */ f.jsxs(Ka, { children: [
|
10195
|
-
b && /* @__PURE__ */ f.jsx(ns, { children: /* @__PURE__ */ f.jsx(
|
10195
|
+
b && /* @__PURE__ */ f.jsx(ns, { children: /* @__PURE__ */ f.jsx(Cr, { variant: "bulk-select", children: /* @__PURE__ */ f.jsx(Ov, { ...t }) }) }),
|
10196
10196
|
a && a.length > 0 && /* @__PURE__ */ f.jsx(qd, { toggleIcon: /* @__PURE__ */ f.jsx(eo, {}), breakpoint: "md", children: /* @__PURE__ */ f.jsxs(ns, { variant: "filter-group", children: [
|
10197
|
-
/* @__PURE__ */ f.jsx(
|
10197
|
+
/* @__PURE__ */ f.jsx(Cr, { children: /* @__PURE__ */ f.jsx(
|
10198
10198
|
Mr,
|
10199
10199
|
{
|
10200
10200
|
id: "filter",
|
@@ -10215,7 +10215,7 @@ function Dv(t) {
|
|
10215
10215
|
) }, k.key))
|
10216
10216
|
}
|
10217
10217
|
) }),
|
10218
|
-
/* @__PURE__ */ f.jsx(
|
10218
|
+
/* @__PURE__ */ f.jsx(Cr, { children: /* @__PURE__ */ f.jsx(
|
10219
10219
|
Iv,
|
10220
10220
|
{
|
10221
10221
|
id: "filter-input",
|
@@ -10267,13 +10267,13 @@ function Dv(t) {
|
|
10267
10267
|
{
|
10268
10268
|
actions: v,
|
10269
10269
|
selectedItems: o,
|
10270
|
-
wrapper:
|
10270
|
+
wrapper: Cr
|
10271
10271
|
}
|
10272
10272
|
) }),
|
10273
10273
|
/* @__PURE__ */ f.jsx(Pv, {}),
|
10274
10274
|
/* @__PURE__ */ f.jsxs(ns, { variant: "button-group", children: [
|
10275
|
-
!t.disableColumnManagement && h && p === "table" && /* @__PURE__ */ f.jsx(
|
10276
|
-
x > 1 && /* @__PURE__ */ f.jsx(
|
10275
|
+
!t.disableColumnManagement && h && p === "table" && /* @__PURE__ */ f.jsx(Cr, { children: /* @__PURE__ */ f.jsx(zt, { content: "Manage columns", children: /* @__PURE__ */ f.jsx(Qe, { variant: "plain", icon: /* @__PURE__ */ f.jsx(yf, {}), onClick: h }) }) }),
|
10276
|
+
x > 1 && /* @__PURE__ */ f.jsx(Cr, { children: /* @__PURE__ */ f.jsx(Yd, { "aria-label": "table view toggle", children: [
|
10277
10277
|
!t.disableTableView && ot.Table,
|
10278
10278
|
!t.disableListView && ot.List,
|
10279
10279
|
!t.disableCardView && ot.Cards
|
@@ -10339,7 +10339,7 @@ function Dv(t) {
|
|
10339
10339
|
}
|
10340
10340
|
}) }) })
|
10341
10341
|
] }),
|
10342
|
-
/* @__PURE__ */ f.jsx(
|
10342
|
+
/* @__PURE__ */ f.jsx(Cr, { visibility: { default: "hidden", "2xl": "visible" }, children: /* @__PURE__ */ f.jsx(
|
10343
10343
|
Zl,
|
10344
10344
|
{
|
10345
10345
|
variant: Kl.top,
|
@@ -10354,7 +10354,7 @@ function Dv(t) {
|
|
10354
10354
|
) })
|
10355
10355
|
] })
|
10356
10356
|
}
|
10357
|
-
) : /* @__PURE__ */ f.jsx(
|
10357
|
+
) : /* @__PURE__ */ f.jsx(xr, {});
|
10358
10358
|
}
|
10359
10359
|
function Iv(t) {
|
10360
10360
|
const { filter: e } = t;
|
@@ -10805,7 +10805,7 @@ function Uv(t) {
|
|
10805
10805
|
}
|
10806
10806
|
function Wv(t) {
|
10807
10807
|
const { columns: e, item: r, rowActions: n } = t, [s, i] = ye(!1);
|
10808
|
-
return /* @__PURE__ */ f.jsxs(
|
10808
|
+
return /* @__PURE__ */ f.jsxs(xr, { children: [
|
10809
10809
|
e.filter((a) => a.enabled !== !1).map((a) => /* @__PURE__ */ f.jsx(
|
10810
10810
|
Vt,
|
10811
10811
|
{
|
@@ -12309,7 +12309,7 @@ var pl = (t) => ({
|
|
12309
12309
|
}), gl = (t, e, r) => !r && (e.watchAll || e.watch.has(t) || [...e.watch].some((n) => t.startsWith(n) && /^\.\w+/.test(t.slice(n.length)))), R0 = (t, e, r) => {
|
12310
12310
|
const n = Jn(ue(t, r));
|
12311
12311
|
return Xe(n, "root", e[r]), Xe(t, r, n), t;
|
12312
|
-
}, dn = (t) => typeof t == "boolean", Ua = (t) => t.type === "file",
|
12312
|
+
}, dn = (t) => typeof t == "boolean", Ua = (t) => t.type === "file", Pr = (t) => typeof t == "function", zs = (t) => {
|
12313
12313
|
if (!La)
|
12314
12314
|
return !1;
|
12315
12315
|
const e = t ? t.ownerDocument : 0;
|
@@ -12405,7 +12405,7 @@ var tn = (t) => pt(t) && !Bs(t) ? t : {
|
|
12405
12405
|
return w(F), b;
|
12406
12406
|
}
|
12407
12407
|
if (m) {
|
12408
|
-
if (
|
12408
|
+
if (Pr(m)) {
|
12409
12409
|
const R = await m(C, e), F = wl(R, S);
|
12410
12410
|
if (F && (b[p] = {
|
12411
12411
|
...F,
|
@@ -12492,7 +12492,7 @@ function Vr(t, e) {
|
|
12492
12492
|
}
|
12493
12493
|
var dd = (t) => t.type === "select-multiple", M0 = (t) => Wa(t) || Kn(t), Di = (t) => zs(t) && t.isConnected, fd = (t) => {
|
12494
12494
|
for (const e in t)
|
12495
|
-
if (
|
12495
|
+
if (Pr(t[e]))
|
12496
12496
|
return !0;
|
12497
12497
|
return !1;
|
12498
12498
|
};
|
@@ -12565,7 +12565,7 @@ function W0(t = {}, e) {
|
|
12565
12565
|
}, n = {
|
12566
12566
|
submitCount: 0,
|
12567
12567
|
isDirty: !1,
|
12568
|
-
isLoading:
|
12568
|
+
isLoading: Pr(r.defaultValues),
|
12569
12569
|
isValidating: !1,
|
12570
12570
|
isSubmitted: !1,
|
12571
12571
|
isSubmitting: !1,
|
@@ -12797,7 +12797,7 @@ function W0(t = {}, e) {
|
|
12797
12797
|
errors: n.errors,
|
12798
12798
|
isValid: !1
|
12799
12799
|
}), W && W.shouldFocus && oe && oe.focus && oe.focus();
|
12800
|
-
}, ie = (P, L) =>
|
12800
|
+
}, ie = (P, L) => Pr(P) ? u.values.subscribe({
|
12801
12801
|
next: (W) => P(H(void 0, L), W)
|
12802
12802
|
}) : H(P, L, !0), z = (P, L = {}) => {
|
12803
12803
|
for (const W of P ? Cs(P) : l.mount)
|
@@ -12922,7 +12922,7 @@ function W0(t = {}, e) {
|
|
12922
12922
|
isSubmitting: !1,
|
12923
12923
|
isSubmitSuccessful: !1
|
12924
12924
|
});
|
12925
|
-
}, Z = (P, L) => Ee(
|
12925
|
+
}, Z = (P, L) => Ee(Pr(P) ? P(a) : P, L);
|
12926
12926
|
return {
|
12927
12927
|
control: {
|
12928
12928
|
register: ve,
|
@@ -12936,7 +12936,7 @@ function W0(t = {}, e) {
|
|
12936
12936
|
_updateFieldArray: w,
|
12937
12937
|
_getFieldArray: G,
|
12938
12938
|
_reset: Ee,
|
12939
|
-
_resetDefaultValues: () =>
|
12939
|
+
_resetDefaultValues: () => Pr(r.defaultValues) && r.defaultValues().then((P) => {
|
12940
12940
|
Z(P, r.resetOptions), u.state.next({
|
12941
12941
|
isLoading: !1
|
12942
12942
|
});
|
@@ -13011,7 +13011,7 @@ function H0(t = {}) {
|
|
13011
13011
|
const e = Ke.useRef(), [r, n] = Ke.useState({
|
13012
13012
|
isDirty: !1,
|
13013
13013
|
isValidating: !1,
|
13014
|
-
isLoading:
|
13014
|
+
isLoading: Pr(t.defaultValues),
|
13015
13015
|
isSubmitted: !1,
|
13016
13016
|
isSubmitting: !1,
|
13017
13017
|
isSubmitSuccessful: !1,
|
@@ -13020,7 +13020,7 @@ function H0(t = {}) {
|
|
13020
13020
|
dirtyFields: {},
|
13021
13021
|
touchedFields: {},
|
13022
13022
|
errors: {},
|
13023
|
-
defaultValues:
|
13023
|
+
defaultValues: Pr(t.defaultValues) ? void 0 : t.defaultValues
|
13024
13024
|
});
|
13025
13025
|
e.current || (e.current = {
|
13026
13026
|
...W0(t, () => n((i) => ({ ...i }))),
|
@@ -13066,7 +13066,7 @@ function xw(t) {
|
|
13066
13066
|
}
|
13067
13067
|
);
|
13068
13068
|
}
|
13069
|
-
function
|
13069
|
+
function Dr(t) {
|
13070
13070
|
return t.charAt(0).toUpperCase() + t.slice(1);
|
13071
13071
|
}
|
13072
13072
|
function Sw(t) {
|
@@ -13101,7 +13101,7 @@ function Sw(t) {
|
|
13101
13101
|
rules: {
|
13102
13102
|
required: typeof s == "string" && a === !0 ? {
|
13103
13103
|
value: !0,
|
13104
|
-
message: `${
|
13104
|
+
message: `${Dr(s.toLocaleLowerCase())} is required.`
|
13105
13105
|
} : void 0,
|
13106
13106
|
validate: t.validate
|
13107
13107
|
}
|
@@ -13223,7 +13223,7 @@ function $w(t) {
|
|
13223
13223
|
rules: {
|
13224
13224
|
required: typeof e == "string" && r === !0 ? {
|
13225
13225
|
value: !0,
|
13226
|
-
message: `${
|
13226
|
+
message: `${Dr(e.toLocaleLowerCase())} is required.`
|
13227
13227
|
} : void 0,
|
13228
13228
|
validate: n
|
13229
13229
|
}
|
@@ -13302,17 +13302,17 @@ function _w(t) {
|
|
13302
13302
|
rules: {
|
13303
13303
|
required: typeof r == "string" && s === !0 ? {
|
13304
13304
|
value: !0,
|
13305
|
-
message: `${
|
13305
|
+
message: `${Dr(r.toLocaleLowerCase())} is required.`
|
13306
13306
|
} : void 0,
|
13307
13307
|
minLength: typeof r == "string" && typeof i == "number" ? {
|
13308
13308
|
value: i,
|
13309
|
-
message: `${
|
13309
|
+
message: `${Dr(
|
13310
13310
|
r.toLocaleLowerCase()
|
13311
13311
|
)} must be at least ${i} characters.`
|
13312
13312
|
} : i,
|
13313
13313
|
maxLength: typeof r == "string" && typeof a == "number" ? {
|
13314
13314
|
value: a,
|
13315
|
-
message: `${
|
13315
|
+
message: `${Dr(
|
13316
13316
|
r.toLocaleLowerCase()
|
13317
13317
|
)} cannot be greater than ${a} characters.`
|
13318
13318
|
} : a,
|
@@ -13390,17 +13390,17 @@ function Tw(t) {
|
|
13390
13390
|
rules: {
|
13391
13391
|
required: typeof p == "string" && n === !0 ? {
|
13392
13392
|
value: !0,
|
13393
|
-
message: `${
|
13393
|
+
message: `${Dr(p.toLocaleLowerCase())} is required.`
|
13394
13394
|
} : void 0,
|
13395
13395
|
minLength: typeof p == "string" && typeof s == "number" ? {
|
13396
13396
|
value: s,
|
13397
|
-
message: `${
|
13397
|
+
message: `${Dr(
|
13398
13398
|
p.toLocaleLowerCase()
|
13399
13399
|
)} must be at least ${s} characters.`
|
13400
13400
|
} : s,
|
13401
13401
|
maxLength: typeof p == "string" && typeof i == "number" ? {
|
13402
13402
|
value: i,
|
13403
|
-
message: `${
|
13403
|
+
message: `${Dr(
|
13404
13404
|
p.toLocaleLowerCase()
|
13405
13405
|
)} cannot be greater than ${i} characters.`
|
13406
13406
|
} : i,
|
@@ -13417,7 +13417,7 @@ function kw(t) {
|
|
13417
13417
|
formState: { isSubmitting: n }
|
13418
13418
|
} = er(), s = e(t.name), { fieldState: i } = od({ name: t.name }), a = i.error;
|
13419
13419
|
let o = t.id ?? t.name;
|
13420
|
-
return o = o.split(".").join("-"), /* @__PURE__ */ f.jsx(
|
13420
|
+
return o = o.split(".").join("-"), /* @__PURE__ */ f.jsx(xr, { children: /* @__PURE__ */ f.jsx(
|
13421
13421
|
ba,
|
13422
13422
|
{
|
13423
13423
|
id: `${o}-form-group`,
|
@@ -16044,7 +16044,7 @@ var Q0 = /* @__PURE__ */ Object.defineProperty({ default: wd }, "__esModule", {
|
|
16044
16044
|
}
|
16045
16045
|
e.getValidate = n, e.callRef = s, e.default = r;
|
16046
16046
|
}), nb = /* @__PURE__ */ Object.defineProperty({ default: ["$schema", "$id", "$defs", "$vocabulary", { keyword: "$comment" }, "definitions", tb.default, rb.default] }, "__esModule", { value: !0 });
|
16047
|
-
const
|
16047
|
+
const kr = g.operators, Hs = { maximum: { okStr: "<=", ok: kr.LTE, fail: kr.GT }, minimum: { okStr: ">=", ok: kr.GTE, fail: kr.LT }, exclusiveMaximum: { okStr: "<", ok: kr.LT, fail: kr.GTE }, exclusiveMinimum: { okStr: ">", ok: kr.GT, fail: kr.LTE } }, sb = { message: ({ keyword: t, schemaCode: e }) => g.str`must be ${Hs[t].okStr} ${e}`, params: ({ keyword: t, schemaCode: e }) => g._`{comparison: ${Hs[t].okStr}, limit: ${e}}` }, ib = { keyword: Object.keys(Hs), type: "number", schemaType: "number", $data: !0, error: sb, code(t) {
|
16048
16048
|
const { keyword: e, data: r, schemaCode: n } = t;
|
16049
16049
|
t.fail$data(g._`${r} ${Hs[e].fail} ${n} || isNaN(${r})`);
|
16050
16050
|
} };
|
@@ -16820,7 +16820,7 @@ function Lb(t) {
|
|
16820
16820
|
) : r.label
|
16821
16821
|
},
|
16822
16822
|
r.id ?? r.label ?? n
|
16823
|
-
) : /* @__PURE__ */ f.jsx(
|
16823
|
+
) : /* @__PURE__ */ f.jsx(xr, {}, n)) }) : /* @__PURE__ */ f.jsx(xr, {});
|
16824
16824
|
}
|
16825
16825
|
function Pw(t) {
|
16826
16826
|
const { navigation: e, breadcrumbs: r, title: n, description: s, controls: i, headerActions: a, footer: o } = t, l = lr("lg"), c = lr("xl"), d = lr("md"), [h] = St();
|