@ansible/ansible-ui-framework 2.4.2669 → 2.4.2670
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{ChatbotPortal-Eu5wR85C.js → ChatbotPortal-BH8CMPmN.js} +2 -2
- package/{ChatbotSideBarHeader-BY09_8DV.js → ChatbotSideBarHeader-Ddv_eclo.js} +2 -2
- package/{index-sqJe9OpF.js → index-DgEyX64-.js} +43 -43
- package/index.js +1 -1
- package/index.umd.cjs +4 -4
- package/package.json +1 -1
- package/publish/{index-sqJe9OpF.d.ts → index-DgEyX64-.d.ts} +2 -2
- package/publish/index.d.ts +151 -151
- /package/publish/{ChatbotPortal-Eu5wR85C.d.ts → ChatbotPortal-BH8CMPmN.d.ts} +0 -0
- /package/publish/{ChatbotSideBarHeader-BY09_8DV.d.ts → ChatbotSideBarHeader-Ddv_eclo.d.ts} +0 -0
@@ -1,10 +1,10 @@
|
|
1
|
-
import { u as He, j as M } from "./index-
|
1
|
+
import { u as He, j as M } from "./index-DgEyX64-.js";
|
2
2
|
import { useContext as je, createContext as Oe, useState as Se, useEffect as Be, useRef as Ze } from "react";
|
3
3
|
import Ye from "react-dom";
|
4
4
|
import { A as Te } from "./ansible-chatbot-jXPBfTRi.js";
|
5
5
|
import { Spinner as De } from "@patternfly/react-core";
|
6
6
|
import "@patternfly/react-icons";
|
7
|
-
import "react-router";
|
7
|
+
import "react-router-dom";
|
8
8
|
const se = Symbol.for("yaml.alias"), Le = Symbol.for("yaml.document"), R = Symbol.for("yaml.map"), Pe = Symbol.for("yaml.pair"), ge = Symbol.for("yaml.scalar"), V = Symbol.for("yaml.seq"), z = Symbol.for("yaml.node.type"), Z = (l) => !!l && typeof l == "object" && l[z] === se, oe = (l) => !!l && typeof l == "object" && l[z] === Le, Ie = (l) => !!l && typeof l == "object" && l[z] === R, y = (l) => !!l && typeof l == "object" && l[z] === Pe, B = (l) => !!l && typeof l == "object" && l[z] === ge, me = (l) => !!l && typeof l == "object" && l[z] === V;
|
9
9
|
function S(l) {
|
10
10
|
if (l && typeof l == "object")
|
@@ -1,9 +1,9 @@
|
|
1
|
-
import { u as a, j as e, d as i } from "./index-
|
1
|
+
import { u as a, j as e, d as i } from "./index-DgEyX64-.js";
|
2
2
|
import { t as s, a as r, X as n } from "./ansible-chatbot-jXPBfTRi.js";
|
3
3
|
import "@patternfly/react-core";
|
4
4
|
import "react";
|
5
5
|
import "@patternfly/react-icons";
|
6
|
-
import "react-router";
|
6
|
+
import "react-router-dom";
|
7
7
|
const o = i.img`
|
8
8
|
height: 40px;
|
9
9
|
display: inline-block;
|
@@ -15,9 +15,9 @@ var nh = (e, t, n, r) => ({
|
|
15
15
|
});
|
16
16
|
import * as q from "react";
|
17
17
|
import O, { createContext as pn, useContext as Pt, useCallback as J, useState as X, useRef as Ne, useEffect as ye, useMemo as fe, useDebugValue as Z1, createElement as Jv, Fragment as Sr, useId as cT, Component as OR, useLayoutEffect as qd, Children as Qv, isValidElement as zd, cloneElement as TR, forwardRef as us, version as kR, useReducer as AR, useImperativeHandle as jR, lazy as uT, Suspense as dT } from "react";
|
18
|
-
import { MenuToggle as zl, MenuToggleCheckbox as DR, DropdownItem as Cu, Dropdown as fT, DropdownList as hT, Popover as Wd, Icon as rr, Stack as Er, StackItem as Do, Button as Se, PageSection as $n, PageSectionVariants as PR, Flex as Yt, FlexItem as et, Title as Po, Skeleton as qn, Breadcrumb as MR, BreadcrumbItem as RR, Bullseye as Wl, Spinner as Bd, Divider as $o, Tooltip as Zr, Switch as gT, ButtonVariant as pr, Split as na, AlertGroup as LR, Alert as di, AlertActionCloseButton as IR, ClipboardCopy as FR, Truncate as pT, SplitItem as Qn, LabelGroup as ex, Label as ka, Card as mT, CardHeader as yT, Text as Aa, CardFooter as vT, CardBody as tx, ProgressStepper as NR, ProgressStep as $R, DescriptionListTerm as Cy, DescriptionListGroup as wo, DescriptionListDescription as So, DescriptionList as Eu, Select as nx, MenuSearch as xT, MenuSearchInput as bT, SearchInput as _T, SelectOption as Bl, SelectGroup as wT, MenuFooter as rx, Chip as Ey, ChipGroup as ST, SelectList as ix, debounce as qR, ActionList as CT, ActionListItem as Ou, ToolbarItem as br, DatePicker as X1, isValidDate as J1, InputGroup as Vd, InputGroupItem as xl, TextInputGroup as ET, TextInputGroupMain as OT, TextInputGroupUtilities as TT, ToolbarToggleGroup as zR, ToolbarGroup as bl, ToolbarFilter as WR, ToggleGroup as kT, ToggleGroupItem as dl, Toolbar as Oy, Pagination as AT, PaginationVariant as jT, ToolbarContent as DT, EmptyState as Ya, EmptyStateHeader as Ka, EmptyStateIcon as ds, EmptyStateBody as pi, EmptyStateFooter as fs, EmptyStateVariant as PT, EmptyStateActions as Vl, Modal as Ul, ModalVariant as Hl, ModalBoxBody as qo, CardTitle as BR, DataList as VR, DataListItem as UR, DataListItemRow as HR, DataListCheck as GR, DataListItemCells as YR, DataListCell as Q1, DataListAction as KR, ProgressVariant as e5, Progress as ZR, ProgressSize as XR, Checkbox as MT, Form as RT, Grid as JR, ActionGroup as QR, FormGroup as eL, FormHelperText as tL, HelperText as nL, HelperTextItem as rL, TextArea as iL, TextInput as aL, Drawer as LT, DrawerContent as IT, DrawerPanelContent as FT, NotificationDrawer as oL, NotificationDrawerHeader as sL, DrawerCloseButton as NT, NotificationDrawerBody as lL, NotificationDrawerGroupList as cL, NotificationDrawerGroup as uL, NotificationDrawerList as dL, NotificationDrawerListItem as fL, NotificationDrawerListItemHeader as hL, NotificationDrawerListItemBody as gL, DrawerContentBody as $T, Masthead as pL, MastheadMain as mL, MastheadBrand as yL, MastheadContent as vL, MastheadToggle as xL, PageToggleButton as bL, NotificationBadge as _L,
|
18
|
+
import { MenuToggle as zl, MenuToggleCheckbox as DR, DropdownItem as Cu, Dropdown as fT, DropdownList as hT, Popover as Wd, Icon as rr, Stack as Er, StackItem as Do, Button as Se, PageSection as $n, PageSectionVariants as PR, Flex as Yt, FlexItem as et, Title as Po, Skeleton as qn, Breadcrumb as MR, BreadcrumbItem as RR, Bullseye as Wl, Spinner as Bd, Divider as $o, Tooltip as Zr, Switch as gT, ButtonVariant as pr, Split as na, AlertGroup as LR, Alert as di, AlertActionCloseButton as IR, ClipboardCopy as FR, Truncate as pT, SplitItem as Qn, LabelGroup as ex, Label as ka, Card as mT, CardHeader as yT, Text as Aa, CardFooter as vT, CardBody as tx, ProgressStepper as NR, ProgressStep as $R, DescriptionListTerm as Cy, DescriptionListGroup as wo, DescriptionListDescription as So, DescriptionList as Eu, Select as nx, MenuSearch as xT, MenuSearchInput as bT, SearchInput as _T, SelectOption as Bl, SelectGroup as wT, MenuFooter as rx, Chip as Ey, ChipGroup as ST, SelectList as ix, debounce as qR, ActionList as CT, ActionListItem as Ou, ToolbarItem as br, DatePicker as X1, isValidDate as J1, InputGroup as Vd, InputGroupItem as xl, TextInputGroup as ET, TextInputGroupMain as OT, TextInputGroupUtilities as TT, ToolbarToggleGroup as zR, ToolbarGroup as bl, ToolbarFilter as WR, ToggleGroup as kT, ToggleGroupItem as dl, Toolbar as Oy, Pagination as AT, PaginationVariant as jT, ToolbarContent as DT, EmptyState as Ya, EmptyStateHeader as Ka, EmptyStateIcon as ds, EmptyStateBody as pi, EmptyStateFooter as fs, EmptyStateVariant as PT, EmptyStateActions as Vl, Modal as Ul, ModalVariant as Hl, ModalBoxBody as qo, CardTitle as BR, DataList as VR, DataListItem as UR, DataListItemRow as HR, DataListCheck as GR, DataListItemCells as YR, DataListCell as Q1, DataListAction as KR, ProgressVariant as e5, Progress as ZR, ProgressSize as XR, Checkbox as MT, Form as RT, Grid as JR, ActionGroup as QR, FormGroup as eL, FormHelperText as tL, HelperText as nL, HelperTextItem as rL, TextArea as iL, TextInput as aL, Drawer as LT, DrawerContent as IT, DrawerPanelContent as FT, NotificationDrawer as oL, NotificationDrawerHeader as sL, DrawerCloseButton as NT, NotificationDrawerBody as lL, NotificationDrawerGroupList as cL, NotificationDrawerGroup as uL, NotificationDrawerList as dL, NotificationDrawerListItem as fL, NotificationDrawerListItemHeader as hL, NotificationDrawerListItemBody as gL, DrawerContentBody as $T, Masthead as pL, MastheadMain as mL, MastheadBrand as yL, MastheadContent as vL, MastheadToggle as xL, PageToggleButton as bL, NotificationBadge as _L, PageSidebar as wL, PageSidebarBody as SL, Nav as CL, NavList as EL, NavItem as OL, NavExpandable as TL, DrawerHead as kL, DrawerActions as AL, DrawerPanelBody as jL, Page as DL, Tab as PL, Tabs as t5 } from "@patternfly/react-core";
|
19
19
|
import { OutlinedQuestionCircleIcon as qT, ExternalLinkAltIcon as ax, SyncAltIcon as ox, EllipsisVIcon as ML, CaretDownIcon as zT, CircleIcon as RL, AngleRightIcon as LL, HelpIcon as IL, TimesIcon as Gl, TimesCircleIcon as FL, ArrowRightIcon as NL, FilterIcon as WT, SearchIcon as hs, SortAmountDownIcon as $L, SortAmountUpIcon as qL, SortNumericDownAltIcon as zL, SortNumericUpIcon as WL, SortAlphaDownAltIcon as BL, SortAlphaUpIcon as VL, ColumnsIcon as UL, TableIcon as n5, ListIcon as r5, ThLargeIcon as i5, ExclamationCircleIcon as Yl, PlusCircleIcon as BT, CubesIcon as HL, PendingIcon as GL, CheckCircleIcon as YL, ExclamationTriangleIcon as KL, WrenchIcon as ZL, AngleDownIcon as XL, CopyIcon as JL, UploadIcon as QL, DownloadIcon as eI, EyeIcon as VT, EyeSlashIcon as UT, BarsIcon as tI, MoonIcon as nI, SunIcon as rI } from "@patternfly/react-icons";
|
20
|
-
import { useNavigate as ra, Link as Xr, useMatch as iI, Outlet as aI, Routes as oI, Route as sI } from "react-router";
|
20
|
+
import { useNavigate as ra, Link as Xr, useMatch as iI, Outlet as aI, Routes as oI, Route as sI } from "react-router-dom";
|
21
21
|
import a5 from "react-dom";
|
22
22
|
import { Table as sx, Thead as HT, Tr as zo, Th as ja, Tbody as lx, Td as Sn, CollapseColumn as lI } from "@patternfly/react-table";
|
23
23
|
import * as Rr from "monaco-editor";
|
@@ -35742,7 +35742,7 @@ function goe() {
|
|
35742
35742
|
),
|
35743
35743
|
/* @__PURE__ */ g.jsx(pi, { children: e("We could not find that page.") }),
|
35744
35744
|
/* @__PURE__ */ g.jsx(fs, { children: /* @__PURE__ */ g.jsx(Vl, { children: /* @__PURE__ */ g.jsxs(Er, { hasGutter: !0, children: [
|
35745
|
-
/* @__PURE__ */ g.jsx(Se, { onClick: () =>
|
35745
|
+
/* @__PURE__ */ g.jsx(Se, { onClick: () => t(-1), children: e("Return to previous page") }),
|
35746
35746
|
/* @__PURE__ */ g.jsx(Se, { component: (n) => /* @__PURE__ */ g.jsx(Xr, { to: "/", ...n }), children: e("Return to dashboard") })
|
35747
35747
|
] }) }) })
|
35748
35748
|
] });
|
@@ -35759,7 +35759,7 @@ function efe() {
|
|
35759
35759
|
}
|
35760
35760
|
),
|
35761
35761
|
/* @__PURE__ */ g.jsx(fs, { children: /* @__PURE__ */ g.jsx(Vl, { children: /* @__PURE__ */ g.jsxs(Er, { hasGutter: !0, children: [
|
35762
|
-
/* @__PURE__ */ g.jsx(Se, { onClick: () =>
|
35762
|
+
/* @__PURE__ */ g.jsx(Se, { onClick: () => t(-1), children: e("Return to previous page") }),
|
35763
35763
|
/* @__PURE__ */ g.jsx(Se, { component: (n) => /* @__PURE__ */ g.jsx(Xr, { to: "/", ...n }), children: e("Return to dashboard") })
|
35764
35764
|
] }) }) })
|
35765
35765
|
] });
|
@@ -43795,41 +43795,16 @@ function dfe() {
|
|
43795
43795
|
}
|
43796
43796
|
);
|
43797
43797
|
}
|
43798
|
-
|
43799
|
-
var _u = /* @__PURE__ */ ((e) => (e.Open = "open", e.Closed = "closed", e.Disabled = "disabled", e))(_u || {});
|
43800
|
-
const Gue = pn({
|
43801
|
-
chatbotState: "disabled",
|
43802
|
-
setChatbotState: () => {
|
43803
|
-
}
|
43804
|
-
}), Yue = () => Pt(Gue), Kue = uT(() => import("./ChatbotSideBarHeader-BY09_8DV.js")), Zue = () => {
|
43805
|
-
const { t: e } = Me();
|
43806
|
-
return /* @__PURE__ */ g.jsx(dT, { fallback: /* @__PURE__ */ g.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ g.jsx(Kue, {}) });
|
43807
|
-
}, Xue = De($T)`
|
43808
|
-
max-height: 100%;
|
43809
|
-
`, Jue = (e) => {
|
43810
|
-
const { chatbotState: t, setChatbotState: n } = Yue(), r = O.useRef(null), i = () => {
|
43811
|
-
r.current !== null && r.current.focus();
|
43812
|
-
}, a = () => {
|
43813
|
-
n(_u.Closed);
|
43814
|
-
}, o = /* @__PURE__ */ g.jsxs(FT, { isResizable: !0, children: [
|
43815
|
-
/* @__PURE__ */ g.jsxs(wL, { children: [
|
43816
|
-
/* @__PURE__ */ g.jsx(Yt, { children: /* @__PURE__ */ g.jsx(et, { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ g.jsx("span", { tabIndex: t === _u.Open ? 0 : -1, ref: r, children: /* @__PURE__ */ g.jsx(Zue, {}) }) }) }),
|
43817
|
-
/* @__PURE__ */ g.jsx(SL, { children: /* @__PURE__ */ g.jsx(NT, { onClick: a }) })
|
43818
|
-
] }),
|
43819
|
-
/* @__PURE__ */ g.jsx(CL, { style: { padding: "0px 0px 0px 0px" }, children: /* @__PURE__ */ g.jsx(Hue, {}) })
|
43820
|
-
] });
|
43821
|
-
return /* @__PURE__ */ g.jsx(LT, { isExpanded: t === _u.Open, onExpand: i, isInline: !0, children: /* @__PURE__ */ g.jsx(IT, { panelContent: o, children: /* @__PURE__ */ g.jsx(Xue, { children: e.children }) }) });
|
43822
|
-
};
|
43823
|
-
function Que(e) {
|
43798
|
+
function Uue(e) {
|
43824
43799
|
const { navigation: t } = e, n = q1();
|
43825
|
-
return /* @__PURE__ */ g.jsx(
|
43800
|
+
return /* @__PURE__ */ g.jsx(wL, { isSidebarOpen: n.isOpen, className: "bg-lighten", children: /* @__PURE__ */ g.jsxs(SL, { children: [
|
43826
43801
|
e.contextSwitcher,
|
43827
|
-
/* @__PURE__ */ g.jsx(
|
43802
|
+
/* @__PURE__ */ g.jsx(CL, { "data-cy": "page-navigation", className: "side-nav", children: /* @__PURE__ */ g.jsx(EL, { children: /* @__PURE__ */ g.jsx(_u, { baseRoute: e.basename ?? "", items: t }) }) })
|
43828
43803
|
] }) });
|
43829
43804
|
}
|
43830
|
-
function
|
43805
|
+
function _u(e) {
|
43831
43806
|
return /* @__PURE__ */ g.jsx(g.Fragment, { children: e.items.filter((t) => "hidden" in t ? t.hidden !== !0 : !0).map((t, n) => /* @__PURE__ */ g.jsx(
|
43832
|
-
|
43807
|
+
Hue,
|
43833
43808
|
{
|
43834
43809
|
item: t,
|
43835
43810
|
baseRoute: e.baseRoute
|
@@ -43837,7 +43812,7 @@ function wu(e) {
|
|
43837
43812
|
t.id ?? t.label ?? n
|
43838
43813
|
)) });
|
43839
43814
|
}
|
43840
|
-
function
|
43815
|
+
function Hue(e) {
|
43841
43816
|
var d, f;
|
43842
43817
|
const { item: t } = e, [n, r] = X(
|
43843
43818
|
() => localStorage.getItem("default-nav-expanded") === "true" || localStorage.getItem((t.id ?? t.label) + "-expanded") === "true"
|
@@ -43857,10 +43832,10 @@ function ede(e) {
|
|
43857
43832
|
s = s.replace("//", "/");
|
43858
43833
|
const l = !!iI(s + "/*");
|
43859
43834
|
if (t.path === "/" && "children" in t)
|
43860
|
-
return /* @__PURE__ */ g.jsx(
|
43835
|
+
return /* @__PURE__ */ g.jsx(_u, { items: t.children, baseRoute: "" });
|
43861
43836
|
const c = "children" in t && ((f = t.children) == null ? void 0 : f.find((h) => h.label)), u = { fontSize: "small", opacity: 0.5, textAlign: "left" };
|
43862
43837
|
return !c && "label" in t ? /* @__PURE__ */ g.jsxs(
|
43863
|
-
|
43838
|
+
OL,
|
43864
43839
|
{
|
43865
43840
|
id: a,
|
43866
43841
|
href: t.href || s,
|
@@ -43880,7 +43855,7 @@ function ede(e) {
|
|
43880
43855
|
]
|
43881
43856
|
}
|
43882
43857
|
) : !c || t.label === void 0 ? null : t.label ? /* @__PURE__ */ g.jsx(
|
43883
|
-
|
43858
|
+
TL,
|
43884
43859
|
{
|
43885
43860
|
buttonProps: { id: a },
|
43886
43861
|
isActive: l,
|
@@ -43890,10 +43865,35 @@ function ede(e) {
|
|
43890
43865
|
] }),
|
43891
43866
|
isExpanded: n,
|
43892
43867
|
onExpand: (h, p) => i(p),
|
43893
|
-
children: /* @__PURE__ */ g.jsx(
|
43868
|
+
children: /* @__PURE__ */ g.jsx(_u, { items: t.children, baseRoute: s })
|
43894
43869
|
}
|
43895
|
-
) : /* @__PURE__ */ g.jsx(
|
43870
|
+
) : /* @__PURE__ */ g.jsx(_u, { items: t.children, baseRoute: s });
|
43896
43871
|
}
|
43872
|
+
const Gue = uT(() => import("./ChatbotPortal-BH8CMPmN.js")), Yue = () => /* @__PURE__ */ g.jsx(dT, { fallback: /* @__PURE__ */ g.jsx("div", { children: "Loading..." }), children: /* @__PURE__ */ g.jsx(Gue, {}) });
|
43873
|
+
var wu = /* @__PURE__ */ ((e) => (e.Open = "open", e.Closed = "closed", e.Disabled = "disabled", e))(wu || {});
|
43874
|
+
const Kue = pn({
|
43875
|
+
chatbotState: "disabled",
|
43876
|
+
setChatbotState: () => {
|
43877
|
+
}
|
43878
|
+
}), Zue = () => Pt(Kue), Xue = uT(() => import("./ChatbotSideBarHeader-Ddv_eclo.js")), Jue = () => {
|
43879
|
+
const { t: e } = Me();
|
43880
|
+
return /* @__PURE__ */ g.jsx(dT, { fallback: /* @__PURE__ */ g.jsx("span", { children: e("Loading...") }), children: /* @__PURE__ */ g.jsx(Xue, {}) });
|
43881
|
+
}, Que = De($T)`
|
43882
|
+
max-height: 100%;
|
43883
|
+
`, ede = (e) => {
|
43884
|
+
const { chatbotState: t, setChatbotState: n } = Zue(), r = O.useRef(null), i = () => {
|
43885
|
+
r.current !== null && r.current.focus();
|
43886
|
+
}, a = () => {
|
43887
|
+
n(wu.Closed);
|
43888
|
+
}, o = /* @__PURE__ */ g.jsxs(FT, { isResizable: !0, children: [
|
43889
|
+
/* @__PURE__ */ g.jsxs(kL, { children: [
|
43890
|
+
/* @__PURE__ */ g.jsx(Yt, { children: /* @__PURE__ */ g.jsx(et, { style: { display: "flex", alignItems: "center" }, children: /* @__PURE__ */ g.jsx("span", { tabIndex: t === wu.Open ? 0 : -1, ref: r, children: /* @__PURE__ */ g.jsx(Jue, {}) }) }) }),
|
43891
|
+
/* @__PURE__ */ g.jsx(AL, { children: /* @__PURE__ */ g.jsx(NT, { onClick: a }) })
|
43892
|
+
] }),
|
43893
|
+
/* @__PURE__ */ g.jsx(jL, { style: { padding: "0px 0px 0px 0px" }, children: /* @__PURE__ */ g.jsx(Yue, {}) })
|
43894
|
+
] });
|
43895
|
+
return /* @__PURE__ */ g.jsx(LT, { isExpanded: t === wu.Open, onExpand: i, isInline: !0, children: /* @__PURE__ */ g.jsx(IT, { panelContent: o, children: /* @__PURE__ */ g.jsx(Que, { children: e.children }) }) });
|
43896
|
+
};
|
43897
43897
|
function ffe(e) {
|
43898
43898
|
const { navigation: t, masthead: n } = e, r = fe(
|
43899
43899
|
() => [
|
@@ -43904,14 +43904,14 @@ function ffe(e) {
|
|
43904
43904
|
{
|
43905
43905
|
header: n,
|
43906
43906
|
sidebar: /* @__PURE__ */ g.jsx(
|
43907
|
-
|
43907
|
+
Uue,
|
43908
43908
|
{
|
43909
43909
|
navigation: t,
|
43910
43910
|
basename: e.basename,
|
43911
43911
|
contextSwitcher: e.contextSwitcher
|
43912
43912
|
}
|
43913
43913
|
),
|
43914
|
-
children: /* @__PURE__ */ g.jsx($ue, { children: /* @__PURE__ */ g.jsx(
|
43914
|
+
children: /* @__PURE__ */ g.jsx($ue, { children: /* @__PURE__ */ g.jsx(ede, { children: /* @__PURE__ */ g.jsxs(
|
43915
43915
|
"div",
|
43916
43916
|
{
|
43917
43917
|
style: {
|
@@ -44866,7 +44866,7 @@ export {
|
|
44866
44866
|
ufe as as,
|
44867
44867
|
dfe as at,
|
44868
44868
|
ffe as au,
|
44869
|
-
|
44869
|
+
Uue as av,
|
44870
44870
|
hfe as aw,
|
44871
44871
|
tde as ax,
|
44872
44872
|
nde as ay,
|
package/index.js
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
import { Y as s, B as o, x as t, C as r, aT as l, aV as i, aS as n, aU as g, aW as u, aR as b, aN as P, y as d, ab as m, aa as C, D as c, bl as T, bj as D, z as p, E as S, bp as h, a7 as F, H as v, i as B, A as f, L as A, $ as I, P as N, o as x, n as y, q as k, r as w, t as E, au as O, w as L, F as M, I as V, J as R, M as W, K as j, G, N as U, U as z, O as H, V as q, aM as Q, W as J, X as K, a0 as X, Q as Y, aj as Z, am as _, a8 as $, a9 as aa, ak as ea, ae as sa, al as oa, af as ta, ag as ra, ah as la, an as ia, ao as na, ap as ga, aq as ua, ar as ba, aC as Pa, aE as da, av as ma, a5 as Ca, a6 as ca, as as Ta, aI as Da, aJ as pa, bd as Sa, aK as ha, aO as Fa, aQ as va, bc as Ba, at as fa, be as Aa, bg as Ia, bo as Na, R as xa, S as ya, a4 as ka, aL as wa, aX as Ea, T as Oa, bk as La, bf as Ma, bn as Va, bm as Ra, az as Wa, aA as ja, aB as Ga, bw as Ua, bv as za, bu as Ha, bt as qa, v as Qa, by as Ja, ax as Ka, g as Xa, bh as Ya, ad as Za, bx as _a, a as $a, e as ae, c as ee, f as se, p as oe, h as te, b as re, aw as le, ay as ie, bi as ne, l as ge, Z as ue, _ as be, aP as Pe, b5 as de, b4 as me, b0 as Ce, b2 as ce, b3 as Te, ba as De, ai as pe, bq as Se, aG as he, br as Fe, m as ve, s as Be, a2 as fe, a1 as Ae, aF as Ie, aD as Ne, aH as xe, u as ye, bb as ke, a3 as we, b7 as Ee, b8 as Oe, b9 as Le, b6 as Me, bs as Ve, a_ as Re, b1 as We, aZ as je, a$ as Ge, aY as Ue, k as ze, ac as He } from "./index-
|
1
|
+
import { Y as s, B as o, x as t, C as r, aT as l, aV as i, aS as n, aU as g, aW as u, aR as b, aN as P, y as d, ab as m, aa as C, D as c, bl as T, bj as D, z as p, E as S, bp as h, a7 as F, H as v, i as B, A as f, L as A, $ as I, P as N, o as x, n as y, q as k, r as w, t as E, au as O, w as L, F as M, I as V, J as R, M as W, K as j, G, N as U, U as z, O as H, V as q, aM as Q, W as J, X as K, a0 as X, Q as Y, aj as Z, am as _, a8 as $, a9 as aa, ak as ea, ae as sa, al as oa, af as ta, ag as ra, ah as la, an as ia, ao as na, ap as ga, aq as ua, ar as ba, aC as Pa, aE as da, av as ma, a5 as Ca, a6 as ca, as as Ta, aI as Da, aJ as pa, bd as Sa, aK as ha, aO as Fa, aQ as va, bc as Ba, at as fa, be as Aa, bg as Ia, bo as Na, R as xa, S as ya, a4 as ka, aL as wa, aX as Ea, T as Oa, bk as La, bf as Ma, bn as Va, bm as Ra, az as Wa, aA as ja, aB as Ga, bw as Ua, bv as za, bu as Ha, bt as qa, v as Qa, by as Ja, ax as Ka, g as Xa, bh as Ya, ad as Za, bx as _a, a as $a, e as ae, c as ee, f as se, p as oe, h as te, b as re, aw as le, ay as ie, bi as ne, l as ge, Z as ue, _ as be, aP as Pe, b5 as de, b4 as me, b0 as Ce, b2 as ce, b3 as Te, ba as De, ai as pe, bq as Se, aG as he, br as Fe, m as ve, s as Be, a2 as fe, a1 as Ae, aF as Ie, aD as Ne, aH as xe, u as ye, bb as ke, a3 as we, b7 as Ee, b8 as Oe, b9 as Le, b6 as Me, bs as Ve, a_ as Re, b1 as We, aZ as je, a$ as Ge, aY as Ue, k as ze, ac as He } from "./index-DgEyX64-.js";
|
2
2
|
export {
|
3
3
|
s as BulkActionDialog,
|
4
4
|
o as BulkSelector,
|
package/index.umd.cjs
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
(function(Ne,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("@patternfly/react-core"),require("react"),require("@patternfly/react-icons"),require("react-router"),require("react-dom"),require("@patternfly/react-table"),require("monaco-editor"),require("monaco-yaml")):typeof define=="function"&&define.amd?define(["exports","@patternfly/react-core","react","@patternfly/react-icons","react-router","react-dom","@patternfly/react-table","monaco-editor","monaco-yaml"],Q):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Q(Ne["@ansible/ansible-ui-framework"]={},Ne.PatternflyReactCore,Ne.React,Ne.PatternflyReactIcons,Ne.ReactRouterDom,Ne.ReactDOM,Ne.PatternflyReactTable,Ne.MonacoEditor,Ne.MonacoYaml))})(this,function(Ne,Q,w,Ht,ga,XP,ar,eDe,tDe){"use strict";var OLt=Object.defineProperty;var ZPe=Ne=>{throw TypeError(Ne)};var ILt=(Ne,Q,w)=>Q in Ne?OLt(Ne,Q,{enumerable:!0,configurable:!0,writable:!0,value:w}):Ne[Q]=w;var bt=(Ne,Q,w)=>ILt(Ne,typeof Q!="symbol"?Q+"":Q,w),JPe=(Ne,Q,w)=>Q.has(Ne)||ZPe("Cannot "+w);var lu=(Ne,Q,w)=>(JPe(Ne,Q,"read from private field"),w?w.call(Ne):Q.get(Ne)),QP=(Ne,Q,w)=>Q.has(Ne)?ZPe("Cannot add the same private member more than once"):Q instanceof WeakSet?Q.add(Ne):Q.set(Ne,w),hm=(Ne,Q,w,Ht)=>(JPe(Ne,Q,"write to private field"),Ht?Ht.call(Ne,w):Q.set(Ne,w),w);var RZ=(Ne,Q,w,Ht)=>({set _(ga){hm(Ne,Q,ga,w)},get _(){return lu(Ne,Q,Ht)}});var Ys,Vh,Yh,hNe,bNe;function OZ(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=OZ(w),su=OZ(eDe);var Uk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zk={exports:{}},fS={};/**
|
1
|
+
(function(Ne,Q){typeof exports=="object"&&typeof module<"u"?Q(exports,require("@patternfly/react-core"),require("react"),require("@patternfly/react-icons"),require("react-router-dom"),require("react-dom"),require("@patternfly/react-table"),require("monaco-editor"),require("monaco-yaml")):typeof define=="function"&&define.amd?define(["exports","@patternfly/react-core","react","@patternfly/react-icons","react-router-dom","react-dom","@patternfly/react-table","monaco-editor","monaco-yaml"],Q):(Ne=typeof globalThis<"u"?globalThis:Ne||self,Q(Ne["@ansible/ansible-ui-framework"]={},Ne.PatternflyReactCore,Ne.React,Ne.PatternflyReactIcons,Ne.ReactRouterDom,Ne.ReactDOM,Ne.PatternflyReactTable,Ne.MonacoEditor,Ne.MonacoYaml))})(this,function(Ne,Q,w,Ht,ga,XP,ar,eDe,tDe){"use strict";var OLt=Object.defineProperty;var ZPe=Ne=>{throw TypeError(Ne)};var ILt=(Ne,Q,w)=>Q in Ne?OLt(Ne,Q,{enumerable:!0,configurable:!0,writable:!0,value:w}):Ne[Q]=w;var bt=(Ne,Q,w)=>ILt(Ne,typeof Q!="symbol"?Q+"":Q,w),JPe=(Ne,Q,w)=>Q.has(Ne)||ZPe("Cannot "+w);var lu=(Ne,Q,w)=>(JPe(Ne,Q,"read from private field"),w?w.call(Ne):Q.get(Ne)),QP=(Ne,Q,w)=>Q.has(Ne)?ZPe("Cannot add the same private member more than once"):Q instanceof WeakSet?Q.add(Ne):Q.set(Ne,w),hm=(Ne,Q,w,Ht)=>(JPe(Ne,Q,"write to private field"),Ht?Ht.call(Ne,w):Q.set(Ne,w),w);var RZ=(Ne,Q,w,Ht)=>({set _(ga){hm(Ne,Q,ga,w)},get _(){return lu(Ne,Q,Ht)}});var Ys,Vh,Yh,hNe,bNe;function OZ(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const D=OZ(w),su=OZ(eDe);var Uk=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function $n(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var zk={exports:{}},fS={};/**
|
2
2
|
* @license React
|
3
3
|
* react-jsx-runtime.production.min.js
|
4
4
|
*
|
@@ -448,7 +448,7 @@ See https://s-c.sh/2BAXzed for more info.`),window[oT]+=1);const iT=On.button`
|
|
448
448
|
height: 64px;
|
449
449
|
display: flex;
|
450
450
|
align-items: center;
|
451
|
-
`;function Let(e){const{title:t,items:n,keyFn:r,prompt:a,alertPrompts:o,confirmationColumns:i,isItemNonActionable:l,onConfirm:s,onClose:c,confirmText:p,actionButtonText:f,isDanger:g}=e,[v,b]=Zp(),[y]=ya(),x=w.useCallback(()=>{b(void 0),c==null||c()},[c,b]),E=w.useMemo(()=>l&&n.some(l)?n.sort((W,j)=>CE(l(W),l(j))):n,[n,l]),C=EE(E),[O,N]=w.useState(!p),I=w.useMemo(()=>l&&n.some(l)?[{header:"",cell:W=>l(W)?R.jsx(Q.Tooltip,{content:l(W),trigger:l(W)?void 0:"manual",children:R.jsx(Q.Icon,{status:"warning",children:R.jsx(Ht.ExclamationTriangleIcon,{})})}):null},...i]:i,[i,l,n]),P=w.useMemo(()=>l?n.filter(W=>!l(W)):n,[l,n]),L=NO(I),{t:F}=Hn();return R.jsx(Q.Modal,{titleIconVariant:g?"warning":void 0,title:t,"aria-label":t,ouiaId:t,description:a,variant:Q.ModalVariant.medium,isOpen:!0,onClose:x,actions:[R.jsx(Q.Button,{id:"submit",ouiaId:"submit",variant:g?"danger":"primary",onClick:()=>{x(),s()},isAriaDisabled:!O,children:f},"submit"),R.jsx(Q.Button,{id:"cancel",variant:"link",onClick:c,children:y.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&R.jsxs(Q.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[R.jsxs(Det,{children:[o&&o.length>0&&o.map((W,j)=>R.jsx(Q.Alert,{"data-cy":"alert-toaster",isInline:!0,title:W,variant:"warning"},j)),R.jsx(wE,{pageItems:C.paged,itemCount:n.length,tableColumns:L,keyFn:r,compact:!0,errorStateTitle:F("Error"),emptyStateTitle:F("No items"),autoHidePagination:!0,disableBodyPadding:!0,...C},"items")]}),p&&P.length>0&&R.jsx(Met,{children:R.jsx(Q.Checkbox,{id:"confirm",ouiaId:"confirm",label:p,isChecked:O,onChange:(W,j)=>N(j)})})]})})}function Bet(){const[e,t]=Zp(),[n,r]=w.useState();return w.useEffect(()=>{if(n){const a=()=>{var o;r(void 0),(o=n.onClose)==null||o.call(n)};t(R.jsx(Let,{...n,onClose:a}))}else t(void 0)},[n,t]),r}function Fet(e=SE,t){const n=Bet(),r=Fpe();return w.useCallback(a=>{const o={...a,errorAdapter:e,statusParser:t};return a.isItemNonActionable&&a.isItemNonActionable!==void 0&&(o.items=a.items.filter(i=>a.isItemNonActionable!==void 0&&!a.isItemNonActionable(i))),n({...a,onConfirm:()=>r(o)})},[r,n,e,t])}function jet(e){const{view:t,tableColumns:n,toolbarFilters:r,maxSelections:a,labelForSelectedItems:o,isCompact:i}=e,[l]=ya();return t.itemCount===void 0&&t.error===void 0?R.jsx(Q.Skeleton,{height:"80px"}):R.jsxs(R.Fragment,{children:[R.jsxs(Q.Split,{hasGutter:!0,children:[R.jsx(Q.SplitItem,{style:{fontWeight:"bold",whiteSpace:"nowrap"},children:o??l.selectedText}),t.selectedItems.length>0?R.jsx(Q.LabelGroup,{children:t.selectedItems.map((s,c)=>n&&n.length>0?R.jsx(Q.Label,{onClose:()=>t.unselectItem(s),children:R.jsx(di,{item:s,column:n.find(p=>p.card==="name"||p.list==="name")??n[0]})},c):R.jsx(R.Fragment,{}))}):R.jsx(Q.SplitItem,{style:{fontStyle:"italic"},children:l.noneSelectedText})]}),R.jsx(wE,{tableColumns:n,toolbarFilters:r,...t,emptyStateTitle:e.emptyStateTitle??l.noItemsFound,errorStateTitle:e.errorStateTitle??l.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:i,disableBodyPadding:!0,maxSelections:a})]})}function Uet(e){const{title:t,description:n,view:r,tableColumns:a,toolbarFilters:o,emptyStateTitle:i,errorStateTitle:l,confirmText:s,cancelText:c,onSelect:p,maxSelections:f,allowZeroSelections:g}=e,[v,b]=Zp();let y=w.useCallback(()=>b(void 0),[b]);e.onClose&&(y=e.onClose);const[x]=ya(),E=NO(a);return R.jsx(Q.Modal,{title:t,"aria-label":t,ouiaId:t,description:n,isOpen:!0,onClose:y,variant:Q.ModalVariant.medium,tabIndex:0,actions:[R.jsx(Q.Button,{variant:"primary",id:"submit",onClick:()=>{y(),p(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!g,children:s??x.confirmText},"submit"),R.jsx(Q.Button,{id:"cancel",variant:"link",onClick:y,children:c??x.cancelText},"cancel")],hasNoBodyWrapper:!0,children:R.jsx(Q.ModalBoxBody,{style:{overflow:"hidden"},children:R.jsx(jet,{view:r,tableColumns:E,toolbarFilters:o,emptyStateTitle:i,errorStateTitle:l,maxSelections:f,isCompact:!0})})})}function zet(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:a,cancel:o,selected:i,isMultiple:l}=e,[s,c]=w.useState(""),[p,f]=w.useState(),g=w.useCallback((y,x)=>{c(x??""),f(()=>y)},[]),[v,b]=Zp();return w.useEffect(()=>{p!==void 0?b(R.jsx(zpe,{title:s,open:!0,isMultiple:l,setOpen:()=>f(void 0),onSelect:p,view:t,tableColumns:n,toolbarFilters:r,confirm:a,cancel:o,selected:i,keyFn:t.keyFn})):(b(void 0),t.unselectAll())},[o,a,p,i,b,n,s,r,t,l]),g}function zpe(e){const{title:t,open:n,isMultiple:r=!1,setOpen:a,onSelect:o,view:i,tableColumns:l,toolbarFilters:s,confirm:c,cancel:p,selected:f}=e,g=()=>a(!1),{t:v}=Hn();return R.jsxs(Q.Modal,{title:t,"aria-label":t,ouiaId:`${t}-dialog`,isOpen:n,onClose:g,variant:Q.ModalVariant.medium,tabIndex:0,actions:[R.jsx(Q.Button,{variant:"primary",onClick:()=>{!r&&i.selectedItems.length>0?o(i.selectedItems[0]):r&&o(i.selectedItems),g()},isAriaDisabled:i.selectedItems.length===0,children:c},"confirm"),R.jsx(Q.Button,{variant:"link",onClick:g,children:p},"cancel")],hasNoBodyWrapper:!0,children:[R.jsx(Q.ModalBoxBody,{style:{overflow:"hidden"},children:R.jsxs(Q.Split,{hasGutter:!0,children:[R.jsx(Q.SplitItem,{style:{fontWeight:"bold"},children:f}),i.selectedItems.length>0?R.jsx(Q.ChipGroup,{children:i.selectedItems.map((b,y)=>l&&l.length>0?R.jsx(Q.Chip,{onClick:()=>i.unselectItem(b),children:R.jsx(di,{item:b,column:l.find(x=>x.card==="name"||x.list==="name")??l[0]})},y):R.jsx(R.Fragment,{}))}):R.jsx(Q.SplitItem,{style:{fontStyle:"italic"},children:v`None - Please make a selection below.`})]})}),R.jsx($P,{open:i.itemCount===void 0,children:R.jsx(Q.Skeleton,{height:"80px"})}),R.jsx($P,{open:i.itemCount!==void 0,children:R.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:R.jsx(wE,{tableColumns:l,toolbarFilters:s,emptyStateTitle:v("No items found"),errorStateTitle:v("Error loading items"),...i,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function Gpe(){const{t:e}=Hn(),t=ga.useNavigate();return R.jsxs(Q.EmptyState,{isFullHeight:!0,children:[R.jsx(Q.EmptyStateHeader,{titleText:R.jsx(R.Fragment,{children:e("Page not found")}),icon:R.jsx(Q.EmptyStateIcon,{icon:Ht.ExclamationCircleIcon}),headingLevel:"h2"}),R.jsx(Q.EmptyStateBody,{children:e("We could not find that page.")}),R.jsx(Q.EmptyStateFooter,{children:R.jsx(Q.EmptyStateActions,{children:R.jsxs(Q.Stack,{hasGutter:!0,children:[R.jsx(Q.Button,{onClick:()=>void t(-1),children:e("Return to previous page")}),R.jsx(Q.Button,{component:n=>R.jsx(ga.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}function Get(){const{t:e}=Hn(),t=ga.useNavigate();return R.jsxs(Q.EmptyState,{isFullHeight:!0,children:[R.jsx(Q.EmptyStateHeader,{titleText:R.jsx(R.Fragment,{children:e("Under Development")}),icon:R.jsx(Q.EmptyStateIcon,{icon:Ht.WrenchIcon}),headingLevel:"h2"}),R.jsx(Q.EmptyStateFooter,{children:R.jsx(Q.EmptyStateActions,{children:R.jsxs(Q.Stack,{hasGutter:!0,children:[R.jsx(Q.Button,{onClick:()=>void t(-1),children:e("Return to previous page")}),R.jsx(Q.Button,{component:n=>R.jsx(ga.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}var kE=e=>e.type==="checkbox",Zv=e=>e instanceof Date,hl=e=>e==null;const qpe=e=>typeof e=="object";var Za=e=>!hl(e)&&!Array.isArray(e)&&qpe(e)&&!Zv(e),Hpe=e=>Za(e)&&e.target?kE(e.target)?e.target.checked:e.target.value:e,qet=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Wpe=(e,t)=>e.has(qet(t)),Het=e=>{const t=e.constructor&&e.constructor.prototype;return Za(t)&&t.hasOwnProperty("isPrototypeOf")},Lj=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ql(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Lj&&(e instanceof Blob||e instanceof FileList))&&(n||Za(e)))if(t=n?[]:{},!n&&!Het(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Ql(e[r]));else return e;return t}var MO=e=>Array.isArray(e)?e.filter(Boolean):[],Ba=e=>e===void 0,It=(e,t,n)=>{if(!t||!Za(e))return n;const r=MO(t.split(/[,[\].]+?/)).reduce((a,o)=>hl(a)?a:a[o],e);return Ba(r)||r===e?Ba(e[t])?n:e[t]:r},Ec=e=>typeof e=="boolean",Bj=e=>/^\w*$/.test(e),Vpe=e=>MO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Gr=(e,t,n)=>{let r=-1;const a=Bj(t)?[t]:Vpe(t),o=a.length,i=o-1;for(;++r<o;){const l=a[r];let s=n;if(r!==i){const c=e[l];s=Za(c)||Array.isArray(c)?c:isNaN(+a[r+1])?{}:[]}if(l==="__proto__")return;e[l]=s,e=e[l]}return e};const LO={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vd={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Jp={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ype=w.createContext(null),Su=()=>w.useContext(Ype),Kpe=e=>{const{children:t,...n}=e;return w.createElement(Ype.Provider,{value:n},t)};var Qpe=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==vd.all&&(t._proxyFormState[i]=!r||vd.all),n&&(n[i]=!0),e[i]}});return a},Xl=e=>Za(e)&&!Object.keys(e).length,Xpe=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Xl(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!r||vd.all))},TE=e=>Array.isArray(e)?e:[e],Zpe=(e,t,n)=>!e||!t||e===t||TE(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Fj(e){const t=w.useRef(e);t.current=e,w.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function jj(e){const t=Su(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,l]=w.useState(n._formState),s=w.useRef(!0),c=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=w.useRef(a);return p.current=a,Fj({disabled:r,next:f=>s.current&&Zpe(p.current,f.name,o)&&Xpe(f,c.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),w.useEffect(()=>(s.current=!0,c.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Qpe(i,n,c.current,!1)}var Eu=e=>typeof e=="string",Jpe=(e,t,n,r,a)=>Eu(e)?(r&&t.watch.add(e),It(n,e,a)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),It(n,o))):(r&&(t.watchAll=!0),n);function $pe(e){const t=Su(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},l=w.useRef(r);l.current=r,Fj({disabled:o,subject:n._subjects.values,next:p=>{Zpe(l.current,p.name,i)&&c(Ql(Jpe(l.current,n._names,p.values||n._formValues,!1,a)))}});const[s,c]=w.useState(n._getWatch(r,a));return w.useEffect(()=>n._removeUnmounted()),s}function Wet(e){const t=Su(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=Wpe(a._names.array,n),l=$pe({control:a,name:n,defaultValue:It(a._formValues,n,It(a._defaultValues,n,e.defaultValue)),exact:!0}),s=jj({control:a,name:n,exact:!0}),c=w.useRef(a.register(n,{...e.rules,value:l,...Ec(e.disabled)?{disabled:e.disabled}:{}}));return w.useEffect(()=>{const p=a._options.shouldUnregister||o,f=(g,v)=>{const b=It(a._fields,g);b&&b._f&&(b._f.mount=v)};if(f(n,!0),p){const g=Ql(It(a._options.defaultValues,n));Gr(a._defaultValues,n,g),Ba(It(a._formValues,n))&&Gr(a._formValues,n,g)}return()=>{(i?p&&!a._state.action:p)?a.unregister(n):f(n,!1)}},[n,a,i,o]),w.useEffect(()=>{It(a._fields,n)&&a._updateDisabledField({disabled:r,fields:a._fields,name:n,value:It(a._fields,n)._f.value})},[r,n,a]),{field:{name:n,value:l,...Ec(r)||s.disabled?{disabled:s.disabled||r}:{},onChange:w.useCallback(p=>c.current.onChange({target:{value:Hpe(p),name:n},type:LO.CHANGE}),[n]),onBlur:w.useCallback(()=>c.current.onBlur({target:{value:It(a._formValues,n),name:n},type:LO.BLUR}),[n,a]),ref:w.useCallback(p=>{const f=It(a._fields,n);f&&p&&(f._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})},[a._fields,n])},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!It(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!It(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!It(s.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!It(s.validatingFields,n)},error:{enumerable:!0,get:()=>It(s.errors,n)}})}}const dy=e=>e.render(Wet(e));var Vet=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},efe=e=>({isOnSubmit:!e||e===vd.onSubmit,isOnBlur:e===vd.onBlur,isOnChange:e===vd.onChange,isOnAll:e===vd.all,isOnTouch:e===vd.onTouched}),tfe=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const RE=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const o=It(e,a);if(o){const{_f:i,...l}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(RE(l,t))break}else if(Za(l)&&RE(l,t))break}}};var Yet=(e,t,n)=>{const r=TE(It(e,n));return Gr(r,"root",t[n]),Gr(e,n,r),e},Uj=e=>e.type==="file",wu=e=>typeof e=="function",BO=e=>{if(!Lj)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},FO=e=>Eu(e),zj=e=>e.type==="radio",jO=e=>e instanceof RegExp;const nfe={value:!1,isValid:!1},rfe={value:!0,isValid:!0};var afe=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ba(e[0].attributes.value)?Ba(e[0].value)||e[0].value===""?rfe:{value:e[0].value,isValid:!0}:rfe:nfe}return nfe};const ofe={isValid:!1,value:null};var ife=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ofe):ofe;function lfe(e,t,n="validate"){if(FO(e)||Array.isArray(e)&&e.every(FO)||Ec(e)&&!e)return{type:n,message:FO(e)?e:"",ref:t}}var uy=e=>Za(e)&&!jO(e)?e:{value:e,message:""},sfe=async(e,t,n,r,a)=>{const{ref:o,refs:i,required:l,maxLength:s,minLength:c,min:p,max:f,pattern:g,validate:v,name:b,valueAsNumber:y,mount:x,disabled:E}=e._f,C=It(t,b);if(!x||E)return{};const O=i?i[0]:o,N=U=>{r&&O.reportValidity&&(O.setCustomValidity(Ec(U)?"":U||""),O.reportValidity())},I={},P=zj(o),L=kE(o),F=P||L,W=(y||Uj(o))&&Ba(o.value)&&Ba(C)||BO(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,j=Vet.bind(null,b,n,I),B=(U,H,Y,K=Jp.maxLength,re=Jp.minLength)=>{const oe=U?H:Y;I[b]={type:U?K:re,message:oe,ref:o,...j(U?K:re,oe)}};if(a?!Array.isArray(C)||!C.length:l&&(!F&&(W||hl(C))||Ec(C)&&!C||L&&!afe(i).isValid||P&&!ife(i).isValid)){const{value:U,message:H}=FO(l)?{value:!!l,message:l}:uy(l);if(U&&(I[b]={type:Jp.required,message:H,ref:O,...j(Jp.required,H)},!n))return N(H),I}if(!W&&(!hl(p)||!hl(f))){let U,H;const Y=uy(f),K=uy(p);if(!hl(C)&&!isNaN(C)){const re=o.valueAsNumber||C&&+C;hl(Y.value)||(U=re>Y.value),hl(K.value)||(H=re<K.value)}else{const re=o.valueAsDate||new Date(C),oe=G=>new Date(new Date().toDateString()+" "+G),te=o.type=="time",ee=o.type=="week";Eu(Y.value)&&C&&(U=te?oe(C)>oe(Y.value):ee?C>Y.value:re>new Date(Y.value)),Eu(K.value)&&C&&(H=te?oe(C)<oe(K.value):ee?C<K.value:re<new Date(K.value))}if((U||H)&&(B(!!U,Y.message,K.message,Jp.max,Jp.min),!n))return N(I[b].message),I}if((s||c)&&!W&&(Eu(C)||a&&Array.isArray(C))){const U=uy(s),H=uy(c),Y=!hl(U.value)&&C.length>+U.value,K=!hl(H.value)&&C.length<+H.value;if((Y||K)&&(B(Y,U.message,H.message),!n))return N(I[b].message),I}if(g&&!W&&Eu(C)){const{value:U,message:H}=uy(g);if(jO(U)&&!C.match(U)&&(I[b]={type:Jp.pattern,message:H,ref:o,...j(Jp.pattern,H)},!n))return N(H),I}if(v){if(wu(v)){const U=await v(C,t),H=lfe(U,O);if(H&&(I[b]={...H,...j(Jp.validate,H.message)},!n))return N(H.message),I}else if(Za(v)){let U={};for(const H in v){if(!Xl(U)&&!n)break;const Y=lfe(await v[H](C,t),O,H);Y&&(U={...Y,...j(H,Y.message)},N(Y.message),n&&(I[b]=U))}if(!Xl(U)&&(I[b]={ref:O,...U},!n))return I}}return N(!0),I};function Ket(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ba(e)?r++:e[t[r++]];return e}function Qet(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ba(e[t]))return!1;return!0}function Io(e,t){const n=Array.isArray(t)?t:Bj(t)?[t]:Vpe(t),r=n.length===1?e:Ket(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(Za(r)&&Xl(r)||Array.isArray(r)&&Qet(r))&&Io(e,n.slice(0,-1)),e}var Gj=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},qj=e=>hl(e)||!qpe(e);function qm(e,t){if(qj(e)||qj(t))return e===t;if(Zv(e)&&Zv(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const o=e[a];if(!r.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Zv(o)&&Zv(i)||Za(o)&&Za(i)||Array.isArray(o)&&Array.isArray(i)?!qm(o,i):o!==i)return!1}}return!0}var cfe=e=>e.type==="select-multiple",Xet=e=>zj(e)||kE(e),Hj=e=>BO(e)&&e.isConnected,dfe=e=>{for(const t in e)if(wu(e[t]))return!0;return!1};function UO(e,t={}){const n=Array.isArray(e);if(Za(e)||n)for(const r in e)Array.isArray(e[r])||Za(e[r])&&!dfe(e[r])?(t[r]=Array.isArray(e[r])?[]:{},UO(e[r],t[r])):hl(e[r])||(t[r]=!0);return t}function ufe(e,t,n){const r=Array.isArray(e);if(Za(e)||r)for(const a in e)Array.isArray(e[a])||Za(e[a])&&!dfe(e[a])?Ba(t)||qj(n[a])?n[a]=Array.isArray(e[a])?UO(e[a],[]):{...UO(e[a])}:ufe(e[a],hl(t)?{}:t[a],n[a]):n[a]=!qm(e[a],t[a]);return n}var OE=(e,t)=>ufe(e,t,UO(t)),pfe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ba(e)?e:t?e===""?NaN:e&&+e:n&&Eu(e)?new Date(e):r?r(e):e;function Wj(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Uj(t)?t.files:zj(t)?ife(e.refs).value:cfe(t)?[...t.selectedOptions].map(({value:n})=>n):kE(t)?afe(e.refs).value:pfe(Ba(t.value)?e.ref.value:t.value,e)}var Zet=(e,t,n,r)=>{const a={};for(const o of e){const i=It(t,o);i&&Gr(a,o,i._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},IE=e=>Ba(e)?e:jO(e)?e.source:Za(e)?jO(e.value)?e.value.source:e.value:e;const ffe="AsyncFunction";var Jet=e=>(!e||!e.validate)&&!!(wu(e.validate)&&e.validate.constructor.name===ffe||Za(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ffe)),$et=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function mfe(e,t,n){const r=It(e,n);if(r||Bj(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),i=It(t,o),l=It(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:n}}var ett=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,ttt=(e,t)=>!MO(It(e,t)).length&&Io(e,t);const ntt={mode:vd.onSubmit,reValidateMode:vd.onChange,shouldFocusError:!0};function rtt(e={}){let t={...ntt,...e},n={submitCount:0,isDirty:!1,isLoading:wu(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Za(t.defaultValues)||Za(t.values)?Ql(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Ql(a),i={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},s,c=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Gj(),array:Gj(),state:Gj()},g=efe(t.mode),v=efe(t.reValidateMode),b=t.criteriaMode===vd.all,y=ue=>fe=>{clearTimeout(c),c=setTimeout(ue,fe)},x=async ue=>{if(!t.disabled&&(p.isValid||ue)){const fe=t.resolver?Xl((await F()).errors):await j(r,!0);fe!==n.isValid&&f.state.next({isValid:fe})}},E=(ue,fe)=>{!t.disabled&&(p.isValidating||p.validatingFields)&&((ue||Array.from(l.mount)).forEach(Ee=>{Ee&&(fe?Gr(n.validatingFields,Ee,fe):Io(n.validatingFields,Ee))}),f.state.next({validatingFields:n.validatingFields,isValidating:!Xl(n.validatingFields)}))},C=(ue,fe=[],Ee,He,Qe=!0,Ge=!0)=>{if(He&&Ee&&!t.disabled){if(i.action=!0,Ge&&Array.isArray(It(r,ue))){const ve=Ee(It(r,ue),He.argA,He.argB);Qe&&Gr(r,ue,ve)}if(Ge&&Array.isArray(It(n.errors,ue))){const ve=Ee(It(n.errors,ue),He.argA,He.argB);Qe&&Gr(n.errors,ue,ve),ttt(n.errors,ue)}if(p.touchedFields&&Ge&&Array.isArray(It(n.touchedFields,ue))){const ve=Ee(It(n.touchedFields,ue),He.argA,He.argB);Qe&&Gr(n.touchedFields,ue,ve)}p.dirtyFields&&(n.dirtyFields=OE(a,o)),f.state.next({name:ue,isDirty:U(ue,fe),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Gr(o,ue,fe)},O=(ue,fe)=>{Gr(n.errors,ue,fe),f.state.next({errors:n.errors})},N=ue=>{n.errors=ue,f.state.next({errors:n.errors,isValid:!1})},I=(ue,fe,Ee,He)=>{const Qe=It(r,ue);if(Qe){const Ge=It(o,ue,Ba(Ee)?It(a,ue):Ee);Ba(Ge)||He&&He.defaultChecked||fe?Gr(o,ue,fe?Ge:Wj(Qe._f)):K(ue,Ge),i.mount&&x()}},P=(ue,fe,Ee,He,Qe)=>{let Ge=!1,ve=!1;const Se={name:ue};if(!t.disabled){const _e=!!(It(r,ue)&&It(r,ue)._f&&It(r,ue)._f.disabled);if(!Ee||He){p.isDirty&&(ve=n.isDirty,n.isDirty=Se.isDirty=U(),Ge=ve!==Se.isDirty);const Ae=_e||qm(It(a,ue),fe);ve=!!(!_e&&It(n.dirtyFields,ue)),Ae||_e?Io(n.dirtyFields,ue):Gr(n.dirtyFields,ue,!0),Se.dirtyFields=n.dirtyFields,Ge=Ge||p.dirtyFields&&ve!==!Ae}if(Ee){const Ae=It(n.touchedFields,ue);Ae||(Gr(n.touchedFields,ue,Ee),Se.touchedFields=n.touchedFields,Ge=Ge||p.touchedFields&&Ae!==Ee)}Ge&&Qe&&f.state.next(Se)}return Ge?Se:{}},L=(ue,fe,Ee,He)=>{const Qe=It(n.errors,ue),Ge=p.isValid&&Ec(fe)&&n.isValid!==fe;if(e.delayError&&Ee?(s=y(()=>O(ue,Ee)),s(e.delayError)):(clearTimeout(c),s=null,Ee?Gr(n.errors,ue,Ee):Io(n.errors,ue)),(Ee?!qm(Qe,Ee):Qe)||!Xl(He)||Ge){const ve={...He,...Ge&&Ec(fe)?{isValid:fe}:{},errors:n.errors,name:ue};n={...n,...ve},f.state.next(ve)}},F=async ue=>{E(ue,!0);const fe=await t.resolver(o,t.context,Zet(ue||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return E(ue),fe},W=async ue=>{const{errors:fe}=await F(ue);if(ue)for(const Ee of ue){const He=It(fe,Ee);He?Gr(n.errors,Ee,He):Io(n.errors,Ee)}else n.errors=fe;return fe},j=async(ue,fe,Ee={valid:!0})=>{for(const He in ue){const Qe=ue[He];if(Qe){const{_f:Ge,...ve}=Qe;if(Ge){const Se=l.array.has(Ge.name),_e=Qe._f&&Jet(Qe._f);_e&&p.validatingFields&&E([He],!0);const Ae=await sfe(Qe,o,b,t.shouldUseNativeValidation&&!fe,Se);if(_e&&p.validatingFields&&E([He]),Ae[Ge.name]&&(Ee.valid=!1,fe))break;!fe&&(It(Ae,Ge.name)?Se?Yet(n.errors,Ae,Ge.name):Gr(n.errors,Ge.name,Ae[Ge.name]):Io(n.errors,Ge.name))}!Xl(ve)&&await j(ve,fe,Ee)}}return Ee.valid},B=()=>{for(const ue of l.unMount){const fe=It(r,ue);fe&&(fe._f.refs?fe._f.refs.every(Ee=>!Hj(Ee)):!Hj(fe._f.ref))&&pe(ue)}l.unMount=new Set},U=(ue,fe)=>!t.disabled&&(ue&&fe&&Gr(o,ue,fe),!qm(ae(),a)),H=(ue,fe,Ee)=>Jpe(ue,l,{...i.mount?o:Ba(fe)?a:Eu(ue)?{[ue]:fe}:fe},Ee,fe),Y=ue=>MO(It(i.mount?o:a,ue,e.shouldUnregister?It(a,ue,[]):[])),K=(ue,fe,Ee={})=>{const He=It(r,ue);let Qe=fe;if(He){const Ge=He._f;Ge&&(!Ge.disabled&&Gr(o,ue,pfe(fe,Ge)),Qe=BO(Ge.ref)&&hl(fe)?"":fe,cfe(Ge.ref)?[...Ge.ref.options].forEach(ve=>ve.selected=Qe.includes(ve.value)):Ge.refs?kE(Ge.ref)?Ge.refs.length>1?Ge.refs.forEach(ve=>(!ve.defaultChecked||!ve.disabled)&&(ve.checked=Array.isArray(Qe)?!!Qe.find(Se=>Se===ve.value):Qe===ve.value)):Ge.refs[0]&&(Ge.refs[0].checked=!!Qe):Ge.refs.forEach(ve=>ve.checked=ve.value===Qe):Uj(Ge.ref)?Ge.ref.value="":(Ge.ref.value=Qe,Ge.ref.type||f.values.next({name:ue,values:{...o}})))}(Ee.shouldDirty||Ee.shouldTouch)&&P(ue,Qe,Ee.shouldTouch,Ee.shouldDirty,!0),Ee.shouldValidate&&G(ue)},re=(ue,fe,Ee)=>{for(const He in fe){const Qe=fe[He],Ge=`${ue}.${He}`,ve=It(r,Ge);(l.array.has(ue)||Za(Qe)||ve&&!ve._f)&&!Zv(Qe)?re(Ge,Qe,Ee):K(Ge,Qe,Ee)}},oe=(ue,fe,Ee={})=>{const He=It(r,ue),Qe=l.array.has(ue),Ge=Ql(fe);Gr(o,ue,Ge),Qe?(f.array.next({name:ue,values:{...o}}),(p.isDirty||p.dirtyFields)&&Ee.shouldDirty&&f.state.next({name:ue,dirtyFields:OE(a,o),isDirty:U(ue,Ge)})):He&&!He._f&&!hl(Ge)?re(ue,Ge,Ee):K(ue,Ge,Ee),tfe(ue,l)&&f.state.next({...n}),f.values.next({name:i.mount?ue:void 0,values:{...o}})},te=async ue=>{i.mount=!0;const fe=ue.target;let Ee=fe.name,He=!0;const Qe=It(r,Ee),Ge=()=>fe.type?Wj(Qe._f):Hpe(ue),ve=Se=>{He=Number.isNaN(Se)||Zv(Se)&&isNaN(Se.getTime())||qm(Se,It(o,Ee,Se))};if(Qe){let Se,_e;const Ae=Ge(),ze=ue.type===LO.BLUR||ue.type===LO.FOCUS_OUT,De=!$et(Qe._f)&&!t.resolver&&!It(n.errors,Ee)&&!Qe._f.deps||ett(ze,It(n.touchedFields,Ee),n.isSubmitted,v,g),Ye=tfe(Ee,l,ze);Gr(o,Ee,Ae),ze?(Qe._f.onBlur&&Qe._f.onBlur(ue),s&&s(0)):Qe._f.onChange&&Qe._f.onChange(ue);const Xe=P(Ee,Ae,ze,!1),yt=!Xl(Xe)||Ye;if(!ze&&f.values.next({name:Ee,type:ue.type,values:{...o}}),De)return p.isValid&&(e.mode==="onBlur"?ze&&x():x()),yt&&f.state.next({name:Ee,...Ye?{}:Xe});if(!ze&&Ye&&f.state.next({...n}),t.resolver){const{errors:ut}=await F([Ee]);if(ve(Ae),He){const Yt=mfe(n.errors,r,Ee),Rt=mfe(ut,r,Yt.name||Ee);Se=Rt.error,Ee=Rt.name,_e=Xl(ut)}}else E([Ee],!0),Se=(await sfe(Qe,o,b,t.shouldUseNativeValidation))[Ee],E([Ee]),ve(Ae),He&&(Se?_e=!1:p.isValid&&(_e=await j(r,!0)));He&&(Qe._f.deps&&G(Qe._f.deps),L(Ee,_e,Se,Xe))}},ee=(ue,fe)=>{if(It(n.errors,fe)&&ue.focus)return ue.focus(),1},G=async(ue,fe={})=>{let Ee,He;const Qe=TE(ue);if(t.resolver){const Ge=await W(Ba(ue)?ue:Qe);Ee=Xl(Ge),He=ue?!Qe.some(ve=>It(Ge,ve)):Ee}else ue?(He=(await Promise.all(Qe.map(async Ge=>{const ve=It(r,Ge);return await j(ve&&ve._f?{[Ge]:ve}:ve)}))).every(Boolean),!(!He&&!n.isValid)&&x()):He=Ee=await j(r);return f.state.next({...!Eu(ue)||p.isValid&&Ee!==n.isValid?{}:{name:ue},...t.resolver||!ue?{isValid:Ee}:{},errors:n.errors}),fe.shouldFocus&&!He&&RE(r,ee,ue?Qe:l.mount),He},ae=ue=>{const fe={...i.mount?o:a};return Ba(ue)?fe:Eu(ue)?It(fe,ue):ue.map(Ee=>It(fe,Ee))},ce=(ue,fe)=>({invalid:!!It((fe||n).errors,ue),isDirty:!!It((fe||n).dirtyFields,ue),error:It((fe||n).errors,ue),isValidating:!!It(n.validatingFields,ue),isTouched:!!It((fe||n).touchedFields,ue)}),$=ue=>{ue&&TE(ue).forEach(fe=>Io(n.errors,fe)),f.state.next({errors:ue?n.errors:{}})},de=(ue,fe,Ee)=>{const He=(It(r,ue,{_f:{}})._f||{}).ref,Qe=It(n.errors,ue)||{},{ref:Ge,message:ve,type:Se,..._e}=Qe;Gr(n.errors,ue,{..._e,...fe,ref:He}),f.state.next({name:ue,errors:n.errors,isValid:!1}),Ee&&Ee.shouldFocus&&He&&He.focus&&He.focus()},be=(ue,fe)=>wu(ue)?f.values.subscribe({next:Ee=>ue(H(void 0,fe),Ee)}):H(ue,fe,!0),pe=(ue,fe={})=>{for(const Ee of ue?TE(ue):l.mount)l.mount.delete(Ee),l.array.delete(Ee),fe.keepValue||(Io(r,Ee),Io(o,Ee)),!fe.keepError&&Io(n.errors,Ee),!fe.keepDirty&&Io(n.dirtyFields,Ee),!fe.keepTouched&&Io(n.touchedFields,Ee),!fe.keepIsValidating&&Io(n.validatingFields,Ee),!t.shouldUnregister&&!fe.keepDefaultValue&&Io(a,Ee);f.values.next({values:{...o}}),f.state.next({...n,...fe.keepDirty?{isDirty:U()}:{}}),!fe.keepIsValid&&x()},Te=({disabled:ue,name:fe,field:Ee,fields:He,value:Qe})=>{if(Ec(ue)&&i.mount||ue){const Ge=ue?void 0:Ba(Qe)?Wj(Ee?Ee._f:It(He,fe)._f):Qe;Gr(o,fe,Ge),P(fe,Ge,!1,!1,!0)}},Ce=(ue,fe={})=>{let Ee=It(r,ue);const He=Ec(fe.disabled)||Ec(t.disabled);return Gr(r,ue,{...Ee||{},_f:{...Ee&&Ee._f?Ee._f:{ref:{name:ue}},name:ue,mount:!0,...fe}}),l.mount.add(ue),Ee?Te({field:Ee,disabled:Ec(fe.disabled)?fe.disabled:t.disabled,name:ue,value:fe.value}):I(ue,!0,fe.value),{...He?{disabled:fe.disabled||t.disabled}:{},...t.progressive?{required:!!fe.required,min:IE(fe.min),max:IE(fe.max),minLength:IE(fe.minLength),maxLength:IE(fe.maxLength),pattern:IE(fe.pattern)}:{},name:ue,onChange:te,onBlur:te,ref:Qe=>{if(Qe){Ce(ue,fe),Ee=It(r,ue);const Ge=Ba(Qe.value)&&Qe.querySelectorAll&&Qe.querySelectorAll("input,select,textarea")[0]||Qe,ve=Xet(Ge),Se=Ee._f.refs||[];if(ve?Se.find(_e=>_e===Ge):Ge===Ee._f.ref)return;Gr(r,ue,{_f:{...Ee._f,...ve?{refs:[...Se.filter(Hj),Ge,...Array.isArray(It(a,ue))?[{}]:[]],ref:{type:Ge.type,name:ue}}:{ref:Ge}}}),I(ue,!1,void 0,Ge)}else Ee=It(r,ue,{}),Ee._f&&(Ee._f.mount=!1),(t.shouldUnregister||fe.shouldUnregister)&&!(Wpe(l.array,ue)&&i.action)&&l.unMount.add(ue)}}},he=()=>t.shouldFocusError&&RE(r,ee,l.mount),xe=ue=>{Ec(ue)&&(f.state.next({disabled:ue}),RE(r,(fe,Ee)=>{const He=It(r,Ee);He&&(fe.disabled=He._f.disabled||ue,Array.isArray(He._f.refs)&&He._f.refs.forEach(Qe=>{Qe.disabled=He._f.disabled||ue}))},0,!1))},Pe=(ue,fe)=>async Ee=>{let He;if(Ee&&(Ee.preventDefault&&Ee.preventDefault(),Ee.persist&&Ee.persist()),t.disabled){fe&&await fe({...n.errors},Ee);return}let Qe=Ql(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Ge,values:ve}=await F();n.errors=Ge,Qe=ve}else await j(r);if(Io(n.errors,"root"),Xl(n.errors)){f.state.next({errors:{}});try{await ue(Qe,Ee)}catch(Ge){He=Ge}}else fe&&await fe({...n.errors},Ee),he(),setTimeout(he);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Xl(n.errors)&&!He,submitCount:n.submitCount+1,errors:n.errors}),He)throw He},ie=(ue,fe={})=>{It(r,ue)&&(Ba(fe.defaultValue)?oe(ue,Ql(It(a,ue))):(oe(ue,fe.defaultValue),Gr(a,ue,Ql(fe.defaultValue))),fe.keepTouched||Io(n.touchedFields,ue),fe.keepDirty||(Io(n.dirtyFields,ue),n.isDirty=fe.defaultValue?U(ue,Ql(It(a,ue))):U()),fe.keepError||(Io(n.errors,ue),p.isValid&&x()),f.state.next({...n}))},lt=(ue,fe={})=>{const Ee=ue?Ql(ue):a,He=Ql(Ee),Qe=Xl(ue),Ge=Qe?a:He;if(fe.keepDefaultValues||(a=Ee),!fe.keepValues){if(fe.keepDirtyValues){const ve=new Set([...l.mount,...Object.keys(OE(a,o))]);for(const Se of Array.from(ve))It(n.dirtyFields,Se)?Gr(Ge,Se,It(o,Se)):oe(Se,It(Ge,Se))}else{if(Lj&&Ba(ue))for(const ve of l.mount){const Se=It(r,ve);if(Se&&Se._f){const _e=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(BO(_e)){const Ae=_e.closest("form");if(Ae){Ae.reset();break}}}}r={}}o=e.shouldUnregister?fe.keepDefaultValues?Ql(a):{}:Ql(Ge),f.array.next({values:{...Ge}}),f.values.next({values:{...Ge}})}l={mount:fe.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!p.isValid||!!fe.keepIsValid||!!fe.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:fe.keepSubmitCount?n.submitCount:0,isDirty:Qe?!1:fe.keepDirty?n.isDirty:!!(fe.keepDefaultValues&&!qm(ue,a)),isSubmitted:fe.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Qe?{}:fe.keepDirtyValues?fe.keepDefaultValues&&o?OE(a,o):n.dirtyFields:fe.keepDefaultValues&&ue?OE(a,ue):fe.keepDirty?n.dirtyFields:{},touchedFields:fe.keepTouched?n.touchedFields:{},errors:fe.keepErrors?n.errors:{},isSubmitSuccessful:fe.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Me=(ue,fe)=>lt(wu(ue)?ue(o):ue,fe);return{control:{register:Ce,unregister:pe,getFieldState:ce,handleSubmit:Pe,setError:de,_executeSchema:F,_getWatch:H,_getDirty:U,_updateValid:x,_removeUnmounted:B,_updateFieldArray:C,_updateDisabledField:Te,_getFieldArray:Y,_reset:lt,_resetDefaultValues:()=>wu(t.defaultValues)&&t.defaultValues().then(ue=>{Me(ue,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:ue=>{n={...n,...ue}},_disableForm:xe,_subjects:f,_proxyFormState:p,_setErrors:N,get _fields(){return r},get _formValues(){return o},get _state(){return i},set _state(ue){i=ue},get _defaultValues(){return a},get _names(){return l},set _names(ue){l=ue},get _formState(){return n},set _formState(ue){n=ue},get _options(){return t},set _options(ue){t={...t,...ue}}},trigger:G,register:Ce,handleSubmit:Pe,watch:be,setValue:oe,getValues:ae,reset:Me,resetField:ie,clearErrors:$,unregister:pe,setError:de,setFocus:(ue,fe={})=>{const Ee=It(r,ue),He=Ee&&Ee._f;if(He){const Qe=He.refs?He.refs[0]:He.ref;Qe.focus&&(Qe.focus(),fe.shouldSelect&&wu(Qe.select)&&Qe.select())}},getFieldState:ce}}function gfe(e={}){const t=w.useRef(),n=w.useRef(),[r,a]=w.useState({isDirty:!1,isValidating:!1,isLoading:wu(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:wu(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...rtt(e),formState:r});const o=t.current.control;return o._options=e,Fj({subject:o._subjects.state,next:i=>{Xpe(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),w.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),w.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==r.isDirty&&o._subjects.state.next({isDirty:i})}},[o,r.isDirty]),w.useEffect(()=>{e.values&&!qm(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),w.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),w.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),w.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=Qpe(r,o),t.current}const att=({error:e})=>typeof e=="string"?null:Array.isArray(e)&&e.length>1?R.jsx("ul",{children:e.map((t,n)=>R.jsx("li",{children:t},n))}):w.isValidElement(e)?R.jsx(R.Fragment,{children:e}):null;function vfe({error:e,isMd:t,onCancel:n}){const{t:r}=Hn();if(!e)return null;const a="24px",o=Array.isArray(e)&&e.length>1,i=t&&n?{paddingLeft:a}:void 0,s=typeof e=="string"?e:Array.isArray(e)&&e.length>0?e.length>1?r("Errors"):String(e[0]):r("Error");return R.jsx(Q.Alert,{variant:"danger",title:s,isInline:!0,style:i,isExpandable:o,children:R.jsx(att,{error:e})})}function Vj(e){const{isSubmitting:t,errors:n}=jj(),{clearErrors:r}=gfe(),a=n&&Object.keys(n).length>0;return R.jsx(Q.Button,{onClick:()=>{a&&r()},"data-cy":"Submit",type:"submit",isDisabled:t,isLoading:t,isDanger:a,variant:a?"secondary":void 0,style:e.style,children:e.children})}function hfe(e){const[t,n]=w.useState(!1),r=()=>{n(!0),e.onCancel()};return R.jsx(Q.Button,{"data-cy":"Cancel",type:"button",variant:"link",onClick:r,isLoading:t,children:e.children})}const ott=On(Q.PageSection)`
|
451
|
+
`;function Let(e){const{title:t,items:n,keyFn:r,prompt:a,alertPrompts:o,confirmationColumns:i,isItemNonActionable:l,onConfirm:s,onClose:c,confirmText:p,actionButtonText:f,isDanger:g}=e,[v,b]=Zp(),[y]=ya(),x=w.useCallback(()=>{b(void 0),c==null||c()},[c,b]),E=w.useMemo(()=>l&&n.some(l)?n.sort((W,j)=>CE(l(W),l(j))):n,[n,l]),C=EE(E),[O,N]=w.useState(!p),I=w.useMemo(()=>l&&n.some(l)?[{header:"",cell:W=>l(W)?R.jsx(Q.Tooltip,{content:l(W),trigger:l(W)?void 0:"manual",children:R.jsx(Q.Icon,{status:"warning",children:R.jsx(Ht.ExclamationTriangleIcon,{})})}):null},...i]:i,[i,l,n]),P=w.useMemo(()=>l?n.filter(W=>!l(W)):n,[l,n]),L=NO(I),{t:F}=Hn();return R.jsx(Q.Modal,{titleIconVariant:g?"warning":void 0,title:t,"aria-label":t,ouiaId:t,description:a,variant:Q.ModalVariant.medium,isOpen:!0,onClose:x,actions:[R.jsx(Q.Button,{id:"submit",ouiaId:"submit",variant:g?"danger":"primary",onClick:()=>{x(),s()},isAriaDisabled:!O,children:f},"submit"),R.jsx(Q.Button,{id:"cancel",variant:"link",onClick:c,children:y.cancelText},"cancel")],hasNoBodyWrapper:!0,children:n.length>0&&R.jsxs(Q.ModalBoxBody,{style:{paddingLeft:0,paddingRight:0},children:[R.jsxs(Det,{children:[o&&o.length>0&&o.map((W,j)=>R.jsx(Q.Alert,{"data-cy":"alert-toaster",isInline:!0,title:W,variant:"warning"},j)),R.jsx(wE,{pageItems:C.paged,itemCount:n.length,tableColumns:L,keyFn:r,compact:!0,errorStateTitle:F("Error"),emptyStateTitle:F("No items"),autoHidePagination:!0,disableBodyPadding:!0,...C},"items")]}),p&&P.length>0&&R.jsx(Met,{children:R.jsx(Q.Checkbox,{id:"confirm",ouiaId:"confirm",label:p,isChecked:O,onChange:(W,j)=>N(j)})})]})})}function Bet(){const[e,t]=Zp(),[n,r]=w.useState();return w.useEffect(()=>{if(n){const a=()=>{var o;r(void 0),(o=n.onClose)==null||o.call(n)};t(R.jsx(Let,{...n,onClose:a}))}else t(void 0)},[n,t]),r}function Fet(e=SE,t){const n=Bet(),r=Fpe();return w.useCallback(a=>{const o={...a,errorAdapter:e,statusParser:t};return a.isItemNonActionable&&a.isItemNonActionable!==void 0&&(o.items=a.items.filter(i=>a.isItemNonActionable!==void 0&&!a.isItemNonActionable(i))),n({...a,onConfirm:()=>r(o)})},[r,n,e,t])}function jet(e){const{view:t,tableColumns:n,toolbarFilters:r,maxSelections:a,labelForSelectedItems:o,isCompact:i}=e,[l]=ya();return t.itemCount===void 0&&t.error===void 0?R.jsx(Q.Skeleton,{height:"80px"}):R.jsxs(R.Fragment,{children:[R.jsxs(Q.Split,{hasGutter:!0,children:[R.jsx(Q.SplitItem,{style:{fontWeight:"bold",whiteSpace:"nowrap"},children:o??l.selectedText}),t.selectedItems.length>0?R.jsx(Q.LabelGroup,{children:t.selectedItems.map((s,c)=>n&&n.length>0?R.jsx(Q.Label,{onClose:()=>t.unselectItem(s),children:R.jsx(di,{item:s,column:n.find(p=>p.card==="name"||p.list==="name")??n[0]})},c):R.jsx(R.Fragment,{}))}):R.jsx(Q.SplitItem,{style:{fontStyle:"italic"},children:l.noneSelectedText})]}),R.jsx(wE,{tableColumns:n,toolbarFilters:r,...t,emptyStateTitle:e.emptyStateTitle??l.noItemsFound,errorStateTitle:e.errorStateTitle??l.errorText,showSelect:!0,disableCardView:!0,disableListView:!0,compact:i,disableBodyPadding:!0,maxSelections:a})]})}function Uet(e){const{title:t,description:n,view:r,tableColumns:a,toolbarFilters:o,emptyStateTitle:i,errorStateTitle:l,confirmText:s,cancelText:c,onSelect:p,maxSelections:f,allowZeroSelections:g}=e,[v,b]=Zp();let y=w.useCallback(()=>b(void 0),[b]);e.onClose&&(y=e.onClose);const[x]=ya(),E=NO(a);return R.jsx(Q.Modal,{title:t,"aria-label":t,ouiaId:t,description:n,isOpen:!0,onClose:y,variant:Q.ModalVariant.medium,tabIndex:0,actions:[R.jsx(Q.Button,{variant:"primary",id:"submit",onClick:()=>{y(),p(r.selectedItems)},isAriaDisabled:r.selectedItems.length===0&&!g,children:s??x.confirmText},"submit"),R.jsx(Q.Button,{id:"cancel",variant:"link",onClick:y,children:c??x.cancelText},"cancel")],hasNoBodyWrapper:!0,children:R.jsx(Q.ModalBoxBody,{style:{overflow:"hidden"},children:R.jsx(jet,{view:r,tableColumns:E,toolbarFilters:o,emptyStateTitle:i,errorStateTitle:l,maxSelections:f,isCompact:!0})})})}function zet(e){const{view:t,tableColumns:n,toolbarFilters:r,confirm:a,cancel:o,selected:i,isMultiple:l}=e,[s,c]=w.useState(""),[p,f]=w.useState(),g=w.useCallback((y,x)=>{c(x??""),f(()=>y)},[]),[v,b]=Zp();return w.useEffect(()=>{p!==void 0?b(R.jsx(zpe,{title:s,open:!0,isMultiple:l,setOpen:()=>f(void 0),onSelect:p,view:t,tableColumns:n,toolbarFilters:r,confirm:a,cancel:o,selected:i,keyFn:t.keyFn})):(b(void 0),t.unselectAll())},[o,a,p,i,b,n,s,r,t,l]),g}function zpe(e){const{title:t,open:n,isMultiple:r=!1,setOpen:a,onSelect:o,view:i,tableColumns:l,toolbarFilters:s,confirm:c,cancel:p,selected:f}=e,g=()=>a(!1),{t:v}=Hn();return R.jsxs(Q.Modal,{title:t,"aria-label":t,ouiaId:`${t}-dialog`,isOpen:n,onClose:g,variant:Q.ModalVariant.medium,tabIndex:0,actions:[R.jsx(Q.Button,{variant:"primary",onClick:()=>{!r&&i.selectedItems.length>0?o(i.selectedItems[0]):r&&o(i.selectedItems),g()},isAriaDisabled:i.selectedItems.length===0,children:c},"confirm"),R.jsx(Q.Button,{variant:"link",onClick:g,children:p},"cancel")],hasNoBodyWrapper:!0,children:[R.jsx(Q.ModalBoxBody,{style:{overflow:"hidden"},children:R.jsxs(Q.Split,{hasGutter:!0,children:[R.jsx(Q.SplitItem,{style:{fontWeight:"bold"},children:f}),i.selectedItems.length>0?R.jsx(Q.ChipGroup,{children:i.selectedItems.map((b,y)=>l&&l.length>0?R.jsx(Q.Chip,{onClick:()=>i.unselectItem(b),children:R.jsx(di,{item:b,column:l.find(x=>x.card==="name"||x.list==="name")??l[0]})},y):R.jsx(R.Fragment,{}))}):R.jsx(Q.SplitItem,{style:{fontStyle:"italic"},children:v`None - Please make a selection below.`})]})}),R.jsx($P,{open:i.itemCount===void 0,children:R.jsx(Q.Skeleton,{height:"80px"})}),R.jsx($P,{open:i.itemCount!==void 0,children:R.jsx("div",{style:{display:"flex",flexDirection:"column",maxHeight:500,overflow:"hidden"},children:R.jsx(wE,{tableColumns:l,toolbarFilters:s,emptyStateTitle:v("No items found"),errorStateTitle:v("Error loading items"),...i,isSelectMultiple:r,onSelect:()=>null,disableCardView:!0,disableListView:!0,compact:!0,disableBodyPadding:!0})})})]})}function Gpe(){const{t:e}=Hn(),t=ga.useNavigate();return R.jsxs(Q.EmptyState,{isFullHeight:!0,children:[R.jsx(Q.EmptyStateHeader,{titleText:R.jsx(R.Fragment,{children:e("Page not found")}),icon:R.jsx(Q.EmptyStateIcon,{icon:Ht.ExclamationCircleIcon}),headingLevel:"h2"}),R.jsx(Q.EmptyStateBody,{children:e("We could not find that page.")}),R.jsx(Q.EmptyStateFooter,{children:R.jsx(Q.EmptyStateActions,{children:R.jsxs(Q.Stack,{hasGutter:!0,children:[R.jsx(Q.Button,{onClick:()=>t(-1),children:e("Return to previous page")}),R.jsx(Q.Button,{component:n=>R.jsx(ga.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}function Get(){const{t:e}=Hn(),t=ga.useNavigate();return R.jsxs(Q.EmptyState,{isFullHeight:!0,children:[R.jsx(Q.EmptyStateHeader,{titleText:R.jsx(R.Fragment,{children:e("Under Development")}),icon:R.jsx(Q.EmptyStateIcon,{icon:Ht.WrenchIcon}),headingLevel:"h2"}),R.jsx(Q.EmptyStateFooter,{children:R.jsx(Q.EmptyStateActions,{children:R.jsxs(Q.Stack,{hasGutter:!0,children:[R.jsx(Q.Button,{onClick:()=>t(-1),children:e("Return to previous page")}),R.jsx(Q.Button,{component:n=>R.jsx(ga.Link,{to:"/",...n}),children:e("Return to dashboard")})]})})})]})}var kE=e=>e.type==="checkbox",Zv=e=>e instanceof Date,hl=e=>e==null;const qpe=e=>typeof e=="object";var Za=e=>!hl(e)&&!Array.isArray(e)&&qpe(e)&&!Zv(e),Hpe=e=>Za(e)&&e.target?kE(e.target)?e.target.checked:e.target.value:e,qet=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,Wpe=(e,t)=>e.has(qet(t)),Het=e=>{const t=e.constructor&&e.constructor.prototype;return Za(t)&&t.hasOwnProperty("isPrototypeOf")},Lj=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function Ql(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(Lj&&(e instanceof Blob||e instanceof FileList))&&(n||Za(e)))if(t=n?[]:{},!n&&!Het(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=Ql(e[r]));else return e;return t}var MO=e=>Array.isArray(e)?e.filter(Boolean):[],Ba=e=>e===void 0,It=(e,t,n)=>{if(!t||!Za(e))return n;const r=MO(t.split(/[,[\].]+?/)).reduce((a,o)=>hl(a)?a:a[o],e);return Ba(r)||r===e?Ba(e[t])?n:e[t]:r},Ec=e=>typeof e=="boolean",Bj=e=>/^\w*$/.test(e),Vpe=e=>MO(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Gr=(e,t,n)=>{let r=-1;const a=Bj(t)?[t]:Vpe(t),o=a.length,i=o-1;for(;++r<o;){const l=a[r];let s=n;if(r!==i){const c=e[l];s=Za(c)||Array.isArray(c)?c:isNaN(+a[r+1])?{}:[]}if(l==="__proto__")return;e[l]=s,e=e[l]}return e};const LO={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},vd={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Jp={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},Ype=w.createContext(null),Su=()=>w.useContext(Ype),Kpe=e=>{const{children:t,...n}=e;return w.createElement(Ype.Provider,{value:n},t)};var Qpe=(e,t,n,r=!0)=>{const a={defaultValues:t._defaultValues};for(const o in e)Object.defineProperty(a,o,{get:()=>{const i=o;return t._proxyFormState[i]!==vd.all&&(t._proxyFormState[i]=!r||vd.all),n&&(n[i]=!0),e[i]}});return a},Xl=e=>Za(e)&&!Object.keys(e).length,Xpe=(e,t,n,r)=>{n(e);const{name:a,...o}=e;return Xl(o)||Object.keys(o).length>=Object.keys(t).length||Object.keys(o).find(i=>t[i]===(!r||vd.all))},TE=e=>Array.isArray(e)?e:[e],Zpe=(e,t,n)=>!e||!t||e===t||TE(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function Fj(e){const t=w.useRef(e);t.current=e,w.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function jj(e){const t=Su(),{control:n=t.control,disabled:r,name:a,exact:o}=e||{},[i,l]=w.useState(n._formState),s=w.useRef(!0),c=w.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),p=w.useRef(a);return p.current=a,Fj({disabled:r,next:f=>s.current&&Zpe(p.current,f.name,o)&&Xpe(f,c.current,n._updateFormState)&&l({...n._formState,...f}),subject:n._subjects.state}),w.useEffect(()=>(s.current=!0,c.current.isValid&&n._updateValid(!0),()=>{s.current=!1}),[n]),Qpe(i,n,c.current,!1)}var Eu=e=>typeof e=="string",Jpe=(e,t,n,r,a)=>Eu(e)?(r&&t.watch.add(e),It(n,e,a)):Array.isArray(e)?e.map(o=>(r&&t.watch.add(o),It(n,o))):(r&&(t.watchAll=!0),n);function $pe(e){const t=Su(),{control:n=t.control,name:r,defaultValue:a,disabled:o,exact:i}=e||{},l=w.useRef(r);l.current=r,Fj({disabled:o,subject:n._subjects.values,next:p=>{Zpe(l.current,p.name,i)&&c(Ql(Jpe(l.current,n._names,p.values||n._formValues,!1,a)))}});const[s,c]=w.useState(n._getWatch(r,a));return w.useEffect(()=>n._removeUnmounted()),s}function Wet(e){const t=Su(),{name:n,disabled:r,control:a=t.control,shouldUnregister:o}=e,i=Wpe(a._names.array,n),l=$pe({control:a,name:n,defaultValue:It(a._formValues,n,It(a._defaultValues,n,e.defaultValue)),exact:!0}),s=jj({control:a,name:n,exact:!0}),c=w.useRef(a.register(n,{...e.rules,value:l,...Ec(e.disabled)?{disabled:e.disabled}:{}}));return w.useEffect(()=>{const p=a._options.shouldUnregister||o,f=(g,v)=>{const b=It(a._fields,g);b&&b._f&&(b._f.mount=v)};if(f(n,!0),p){const g=Ql(It(a._options.defaultValues,n));Gr(a._defaultValues,n,g),Ba(It(a._formValues,n))&&Gr(a._formValues,n,g)}return()=>{(i?p&&!a._state.action:p)?a.unregister(n):f(n,!1)}},[n,a,i,o]),w.useEffect(()=>{It(a._fields,n)&&a._updateDisabledField({disabled:r,fields:a._fields,name:n,value:It(a._fields,n)._f.value})},[r,n,a]),{field:{name:n,value:l,...Ec(r)||s.disabled?{disabled:s.disabled||r}:{},onChange:w.useCallback(p=>c.current.onChange({target:{value:Hpe(p),name:n},type:LO.CHANGE}),[n]),onBlur:w.useCallback(()=>c.current.onBlur({target:{value:It(a._formValues,n),name:n},type:LO.BLUR}),[n,a]),ref:w.useCallback(p=>{const f=It(a._fields,n);f&&p&&(f._f.ref={focus:()=>p.focus(),select:()=>p.select(),setCustomValidity:g=>p.setCustomValidity(g),reportValidity:()=>p.reportValidity()})},[a._fields,n])},formState:s,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!It(s.errors,n)},isDirty:{enumerable:!0,get:()=>!!It(s.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!It(s.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!It(s.validatingFields,n)},error:{enumerable:!0,get:()=>It(s.errors,n)}})}}const dy=e=>e.render(Wet(e));var Vet=(e,t,n,r,a)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:a||!0}}:{},efe=e=>({isOnSubmit:!e||e===vd.onSubmit,isOnBlur:e===vd.onBlur,isOnChange:e===vd.onChange,isOnAll:e===vd.all,isOnTouch:e===vd.onTouched}),tfe=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const RE=(e,t,n,r)=>{for(const a of n||Object.keys(e)){const o=It(e,a);if(o){const{_f:i,...l}=o;if(i){if(i.refs&&i.refs[0]&&t(i.refs[0],a)&&!r)return!0;if(i.ref&&t(i.ref,i.name)&&!r)return!0;if(RE(l,t))break}else if(Za(l)&&RE(l,t))break}}};var Yet=(e,t,n)=>{const r=TE(It(e,n));return Gr(r,"root",t[n]),Gr(e,n,r),e},Uj=e=>e.type==="file",wu=e=>typeof e=="function",BO=e=>{if(!Lj)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},FO=e=>Eu(e),zj=e=>e.type==="radio",jO=e=>e instanceof RegExp;const nfe={value:!1,isValid:!1},rfe={value:!0,isValid:!0};var afe=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!Ba(e[0].attributes.value)?Ba(e[0].value)||e[0].value===""?rfe:{value:e[0].value,isValid:!0}:rfe:nfe}return nfe};const ofe={isValid:!1,value:null};var ife=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,ofe):ofe;function lfe(e,t,n="validate"){if(FO(e)||Array.isArray(e)&&e.every(FO)||Ec(e)&&!e)return{type:n,message:FO(e)?e:"",ref:t}}var uy=e=>Za(e)&&!jO(e)?e:{value:e,message:""},sfe=async(e,t,n,r,a)=>{const{ref:o,refs:i,required:l,maxLength:s,minLength:c,min:p,max:f,pattern:g,validate:v,name:b,valueAsNumber:y,mount:x,disabled:E}=e._f,C=It(t,b);if(!x||E)return{};const O=i?i[0]:o,N=U=>{r&&O.reportValidity&&(O.setCustomValidity(Ec(U)?"":U||""),O.reportValidity())},I={},P=zj(o),L=kE(o),F=P||L,W=(y||Uj(o))&&Ba(o.value)&&Ba(C)||BO(o)&&o.value===""||C===""||Array.isArray(C)&&!C.length,j=Vet.bind(null,b,n,I),B=(U,H,Y,K=Jp.maxLength,re=Jp.minLength)=>{const oe=U?H:Y;I[b]={type:U?K:re,message:oe,ref:o,...j(U?K:re,oe)}};if(a?!Array.isArray(C)||!C.length:l&&(!F&&(W||hl(C))||Ec(C)&&!C||L&&!afe(i).isValid||P&&!ife(i).isValid)){const{value:U,message:H}=FO(l)?{value:!!l,message:l}:uy(l);if(U&&(I[b]={type:Jp.required,message:H,ref:O,...j(Jp.required,H)},!n))return N(H),I}if(!W&&(!hl(p)||!hl(f))){let U,H;const Y=uy(f),K=uy(p);if(!hl(C)&&!isNaN(C)){const re=o.valueAsNumber||C&&+C;hl(Y.value)||(U=re>Y.value),hl(K.value)||(H=re<K.value)}else{const re=o.valueAsDate||new Date(C),oe=G=>new Date(new Date().toDateString()+" "+G),te=o.type=="time",ee=o.type=="week";Eu(Y.value)&&C&&(U=te?oe(C)>oe(Y.value):ee?C>Y.value:re>new Date(Y.value)),Eu(K.value)&&C&&(H=te?oe(C)<oe(K.value):ee?C<K.value:re<new Date(K.value))}if((U||H)&&(B(!!U,Y.message,K.message,Jp.max,Jp.min),!n))return N(I[b].message),I}if((s||c)&&!W&&(Eu(C)||a&&Array.isArray(C))){const U=uy(s),H=uy(c),Y=!hl(U.value)&&C.length>+U.value,K=!hl(H.value)&&C.length<+H.value;if((Y||K)&&(B(Y,U.message,H.message),!n))return N(I[b].message),I}if(g&&!W&&Eu(C)){const{value:U,message:H}=uy(g);if(jO(U)&&!C.match(U)&&(I[b]={type:Jp.pattern,message:H,ref:o,...j(Jp.pattern,H)},!n))return N(H),I}if(v){if(wu(v)){const U=await v(C,t),H=lfe(U,O);if(H&&(I[b]={...H,...j(Jp.validate,H.message)},!n))return N(H.message),I}else if(Za(v)){let U={};for(const H in v){if(!Xl(U)&&!n)break;const Y=lfe(await v[H](C,t),O,H);Y&&(U={...Y,...j(H,Y.message)},N(Y.message),n&&(I[b]=U))}if(!Xl(U)&&(I[b]={ref:O,...U},!n))return I}}return N(!0),I};function Ket(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=Ba(e)?r++:e[t[r++]];return e}function Qet(e){for(const t in e)if(e.hasOwnProperty(t)&&!Ba(e[t]))return!1;return!0}function Io(e,t){const n=Array.isArray(t)?t:Bj(t)?[t]:Vpe(t),r=n.length===1?e:Ket(e,n),a=n.length-1,o=n[a];return r&&delete r[o],a!==0&&(Za(r)&&Xl(r)||Array.isArray(r)&&Qet(r))&&Io(e,n.slice(0,-1)),e}var Gj=()=>{let e=[];return{get observers(){return e},next:a=>{for(const o of e)o.next&&o.next(a)},subscribe:a=>(e.push(a),{unsubscribe:()=>{e=e.filter(o=>o!==a)}}),unsubscribe:()=>{e=[]}}},qj=e=>hl(e)||!qpe(e);function qm(e,t){if(qj(e)||qj(t))return e===t;if(Zv(e)&&Zv(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const a of n){const o=e[a];if(!r.includes(a))return!1;if(a!=="ref"){const i=t[a];if(Zv(o)&&Zv(i)||Za(o)&&Za(i)||Array.isArray(o)&&Array.isArray(i)?!qm(o,i):o!==i)return!1}}return!0}var cfe=e=>e.type==="select-multiple",Xet=e=>zj(e)||kE(e),Hj=e=>BO(e)&&e.isConnected,dfe=e=>{for(const t in e)if(wu(e[t]))return!0;return!1};function UO(e,t={}){const n=Array.isArray(e);if(Za(e)||n)for(const r in e)Array.isArray(e[r])||Za(e[r])&&!dfe(e[r])?(t[r]=Array.isArray(e[r])?[]:{},UO(e[r],t[r])):hl(e[r])||(t[r]=!0);return t}function ufe(e,t,n){const r=Array.isArray(e);if(Za(e)||r)for(const a in e)Array.isArray(e[a])||Za(e[a])&&!dfe(e[a])?Ba(t)||qj(n[a])?n[a]=Array.isArray(e[a])?UO(e[a],[]):{...UO(e[a])}:ufe(e[a],hl(t)?{}:t[a],n[a]):n[a]=!qm(e[a],t[a]);return n}var OE=(e,t)=>ufe(e,t,UO(t)),pfe=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>Ba(e)?e:t?e===""?NaN:e&&+e:n&&Eu(e)?new Date(e):r?r(e):e;function Wj(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return Uj(t)?t.files:zj(t)?ife(e.refs).value:cfe(t)?[...t.selectedOptions].map(({value:n})=>n):kE(t)?afe(e.refs).value:pfe(Ba(t.value)?e.ref.value:t.value,e)}var Zet=(e,t,n,r)=>{const a={};for(const o of e){const i=It(t,o);i&&Gr(a,o,i._f)}return{criteriaMode:n,names:[...e],fields:a,shouldUseNativeValidation:r}},IE=e=>Ba(e)?e:jO(e)?e.source:Za(e)?jO(e.value)?e.value.source:e.value:e;const ffe="AsyncFunction";var Jet=e=>(!e||!e.validate)&&!!(wu(e.validate)&&e.validate.constructor.name===ffe||Za(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===ffe)),$et=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function mfe(e,t,n){const r=It(e,n);if(r||Bj(n))return{error:r,name:n};const a=n.split(".");for(;a.length;){const o=a.join("."),i=It(t,o),l=It(e,o);if(i&&!Array.isArray(i)&&n!==o)return{name:n};if(l&&l.type)return{name:o,error:l};a.pop()}return{name:n}}var ett=(e,t,n,r,a)=>a.isOnAll?!1:!n&&a.isOnTouch?!(t||e):(n?r.isOnBlur:a.isOnBlur)?!e:(n?r.isOnChange:a.isOnChange)?e:!0,ttt=(e,t)=>!MO(It(e,t)).length&&Io(e,t);const ntt={mode:vd.onSubmit,reValidateMode:vd.onChange,shouldFocusError:!0};function rtt(e={}){let t={...ntt,...e},n={submitCount:0,isDirty:!1,isLoading:wu(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},a=Za(t.defaultValues)||Za(t.values)?Ql(t.defaultValues||t.values)||{}:{},o=t.shouldUnregister?{}:Ql(a),i={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},s,c=0;const p={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:Gj(),array:Gj(),state:Gj()},g=efe(t.mode),v=efe(t.reValidateMode),b=t.criteriaMode===vd.all,y=ue=>fe=>{clearTimeout(c),c=setTimeout(ue,fe)},x=async ue=>{if(!t.disabled&&(p.isValid||ue)){const fe=t.resolver?Xl((await F()).errors):await j(r,!0);fe!==n.isValid&&f.state.next({isValid:fe})}},E=(ue,fe)=>{!t.disabled&&(p.isValidating||p.validatingFields)&&((ue||Array.from(l.mount)).forEach(Ee=>{Ee&&(fe?Gr(n.validatingFields,Ee,fe):Io(n.validatingFields,Ee))}),f.state.next({validatingFields:n.validatingFields,isValidating:!Xl(n.validatingFields)}))},C=(ue,fe=[],Ee,He,Qe=!0,Ge=!0)=>{if(He&&Ee&&!t.disabled){if(i.action=!0,Ge&&Array.isArray(It(r,ue))){const ve=Ee(It(r,ue),He.argA,He.argB);Qe&&Gr(r,ue,ve)}if(Ge&&Array.isArray(It(n.errors,ue))){const ve=Ee(It(n.errors,ue),He.argA,He.argB);Qe&&Gr(n.errors,ue,ve),ttt(n.errors,ue)}if(p.touchedFields&&Ge&&Array.isArray(It(n.touchedFields,ue))){const ve=Ee(It(n.touchedFields,ue),He.argA,He.argB);Qe&&Gr(n.touchedFields,ue,ve)}p.dirtyFields&&(n.dirtyFields=OE(a,o)),f.state.next({name:ue,isDirty:U(ue,fe),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Gr(o,ue,fe)},O=(ue,fe)=>{Gr(n.errors,ue,fe),f.state.next({errors:n.errors})},N=ue=>{n.errors=ue,f.state.next({errors:n.errors,isValid:!1})},I=(ue,fe,Ee,He)=>{const Qe=It(r,ue);if(Qe){const Ge=It(o,ue,Ba(Ee)?It(a,ue):Ee);Ba(Ge)||He&&He.defaultChecked||fe?Gr(o,ue,fe?Ge:Wj(Qe._f)):K(ue,Ge),i.mount&&x()}},P=(ue,fe,Ee,He,Qe)=>{let Ge=!1,ve=!1;const Se={name:ue};if(!t.disabled){const _e=!!(It(r,ue)&&It(r,ue)._f&&It(r,ue)._f.disabled);if(!Ee||He){p.isDirty&&(ve=n.isDirty,n.isDirty=Se.isDirty=U(),Ge=ve!==Se.isDirty);const Ae=_e||qm(It(a,ue),fe);ve=!!(!_e&&It(n.dirtyFields,ue)),Ae||_e?Io(n.dirtyFields,ue):Gr(n.dirtyFields,ue,!0),Se.dirtyFields=n.dirtyFields,Ge=Ge||p.dirtyFields&&ve!==!Ae}if(Ee){const Ae=It(n.touchedFields,ue);Ae||(Gr(n.touchedFields,ue,Ee),Se.touchedFields=n.touchedFields,Ge=Ge||p.touchedFields&&Ae!==Ee)}Ge&&Qe&&f.state.next(Se)}return Ge?Se:{}},L=(ue,fe,Ee,He)=>{const Qe=It(n.errors,ue),Ge=p.isValid&&Ec(fe)&&n.isValid!==fe;if(e.delayError&&Ee?(s=y(()=>O(ue,Ee)),s(e.delayError)):(clearTimeout(c),s=null,Ee?Gr(n.errors,ue,Ee):Io(n.errors,ue)),(Ee?!qm(Qe,Ee):Qe)||!Xl(He)||Ge){const ve={...He,...Ge&&Ec(fe)?{isValid:fe}:{},errors:n.errors,name:ue};n={...n,...ve},f.state.next(ve)}},F=async ue=>{E(ue,!0);const fe=await t.resolver(o,t.context,Zet(ue||l.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return E(ue),fe},W=async ue=>{const{errors:fe}=await F(ue);if(ue)for(const Ee of ue){const He=It(fe,Ee);He?Gr(n.errors,Ee,He):Io(n.errors,Ee)}else n.errors=fe;return fe},j=async(ue,fe,Ee={valid:!0})=>{for(const He in ue){const Qe=ue[He];if(Qe){const{_f:Ge,...ve}=Qe;if(Ge){const Se=l.array.has(Ge.name),_e=Qe._f&&Jet(Qe._f);_e&&p.validatingFields&&E([He],!0);const Ae=await sfe(Qe,o,b,t.shouldUseNativeValidation&&!fe,Se);if(_e&&p.validatingFields&&E([He]),Ae[Ge.name]&&(Ee.valid=!1,fe))break;!fe&&(It(Ae,Ge.name)?Se?Yet(n.errors,Ae,Ge.name):Gr(n.errors,Ge.name,Ae[Ge.name]):Io(n.errors,Ge.name))}!Xl(ve)&&await j(ve,fe,Ee)}}return Ee.valid},B=()=>{for(const ue of l.unMount){const fe=It(r,ue);fe&&(fe._f.refs?fe._f.refs.every(Ee=>!Hj(Ee)):!Hj(fe._f.ref))&&pe(ue)}l.unMount=new Set},U=(ue,fe)=>!t.disabled&&(ue&&fe&&Gr(o,ue,fe),!qm(ae(),a)),H=(ue,fe,Ee)=>Jpe(ue,l,{...i.mount?o:Ba(fe)?a:Eu(ue)?{[ue]:fe}:fe},Ee,fe),Y=ue=>MO(It(i.mount?o:a,ue,e.shouldUnregister?It(a,ue,[]):[])),K=(ue,fe,Ee={})=>{const He=It(r,ue);let Qe=fe;if(He){const Ge=He._f;Ge&&(!Ge.disabled&&Gr(o,ue,pfe(fe,Ge)),Qe=BO(Ge.ref)&&hl(fe)?"":fe,cfe(Ge.ref)?[...Ge.ref.options].forEach(ve=>ve.selected=Qe.includes(ve.value)):Ge.refs?kE(Ge.ref)?Ge.refs.length>1?Ge.refs.forEach(ve=>(!ve.defaultChecked||!ve.disabled)&&(ve.checked=Array.isArray(Qe)?!!Qe.find(Se=>Se===ve.value):Qe===ve.value)):Ge.refs[0]&&(Ge.refs[0].checked=!!Qe):Ge.refs.forEach(ve=>ve.checked=ve.value===Qe):Uj(Ge.ref)?Ge.ref.value="":(Ge.ref.value=Qe,Ge.ref.type||f.values.next({name:ue,values:{...o}})))}(Ee.shouldDirty||Ee.shouldTouch)&&P(ue,Qe,Ee.shouldTouch,Ee.shouldDirty,!0),Ee.shouldValidate&&G(ue)},re=(ue,fe,Ee)=>{for(const He in fe){const Qe=fe[He],Ge=`${ue}.${He}`,ve=It(r,Ge);(l.array.has(ue)||Za(Qe)||ve&&!ve._f)&&!Zv(Qe)?re(Ge,Qe,Ee):K(Ge,Qe,Ee)}},oe=(ue,fe,Ee={})=>{const He=It(r,ue),Qe=l.array.has(ue),Ge=Ql(fe);Gr(o,ue,Ge),Qe?(f.array.next({name:ue,values:{...o}}),(p.isDirty||p.dirtyFields)&&Ee.shouldDirty&&f.state.next({name:ue,dirtyFields:OE(a,o),isDirty:U(ue,Ge)})):He&&!He._f&&!hl(Ge)?re(ue,Ge,Ee):K(ue,Ge,Ee),tfe(ue,l)&&f.state.next({...n}),f.values.next({name:i.mount?ue:void 0,values:{...o}})},te=async ue=>{i.mount=!0;const fe=ue.target;let Ee=fe.name,He=!0;const Qe=It(r,Ee),Ge=()=>fe.type?Wj(Qe._f):Hpe(ue),ve=Se=>{He=Number.isNaN(Se)||Zv(Se)&&isNaN(Se.getTime())||qm(Se,It(o,Ee,Se))};if(Qe){let Se,_e;const Ae=Ge(),ze=ue.type===LO.BLUR||ue.type===LO.FOCUS_OUT,De=!$et(Qe._f)&&!t.resolver&&!It(n.errors,Ee)&&!Qe._f.deps||ett(ze,It(n.touchedFields,Ee),n.isSubmitted,v,g),Ye=tfe(Ee,l,ze);Gr(o,Ee,Ae),ze?(Qe._f.onBlur&&Qe._f.onBlur(ue),s&&s(0)):Qe._f.onChange&&Qe._f.onChange(ue);const Xe=P(Ee,Ae,ze,!1),yt=!Xl(Xe)||Ye;if(!ze&&f.values.next({name:Ee,type:ue.type,values:{...o}}),De)return p.isValid&&(e.mode==="onBlur"?ze&&x():x()),yt&&f.state.next({name:Ee,...Ye?{}:Xe});if(!ze&&Ye&&f.state.next({...n}),t.resolver){const{errors:ut}=await F([Ee]);if(ve(Ae),He){const Yt=mfe(n.errors,r,Ee),Rt=mfe(ut,r,Yt.name||Ee);Se=Rt.error,Ee=Rt.name,_e=Xl(ut)}}else E([Ee],!0),Se=(await sfe(Qe,o,b,t.shouldUseNativeValidation))[Ee],E([Ee]),ve(Ae),He&&(Se?_e=!1:p.isValid&&(_e=await j(r,!0)));He&&(Qe._f.deps&&G(Qe._f.deps),L(Ee,_e,Se,Xe))}},ee=(ue,fe)=>{if(It(n.errors,fe)&&ue.focus)return ue.focus(),1},G=async(ue,fe={})=>{let Ee,He;const Qe=TE(ue);if(t.resolver){const Ge=await W(Ba(ue)?ue:Qe);Ee=Xl(Ge),He=ue?!Qe.some(ve=>It(Ge,ve)):Ee}else ue?(He=(await Promise.all(Qe.map(async Ge=>{const ve=It(r,Ge);return await j(ve&&ve._f?{[Ge]:ve}:ve)}))).every(Boolean),!(!He&&!n.isValid)&&x()):He=Ee=await j(r);return f.state.next({...!Eu(ue)||p.isValid&&Ee!==n.isValid?{}:{name:ue},...t.resolver||!ue?{isValid:Ee}:{},errors:n.errors}),fe.shouldFocus&&!He&&RE(r,ee,ue?Qe:l.mount),He},ae=ue=>{const fe={...i.mount?o:a};return Ba(ue)?fe:Eu(ue)?It(fe,ue):ue.map(Ee=>It(fe,Ee))},ce=(ue,fe)=>({invalid:!!It((fe||n).errors,ue),isDirty:!!It((fe||n).dirtyFields,ue),error:It((fe||n).errors,ue),isValidating:!!It(n.validatingFields,ue),isTouched:!!It((fe||n).touchedFields,ue)}),$=ue=>{ue&&TE(ue).forEach(fe=>Io(n.errors,fe)),f.state.next({errors:ue?n.errors:{}})},de=(ue,fe,Ee)=>{const He=(It(r,ue,{_f:{}})._f||{}).ref,Qe=It(n.errors,ue)||{},{ref:Ge,message:ve,type:Se,..._e}=Qe;Gr(n.errors,ue,{..._e,...fe,ref:He}),f.state.next({name:ue,errors:n.errors,isValid:!1}),Ee&&Ee.shouldFocus&&He&&He.focus&&He.focus()},be=(ue,fe)=>wu(ue)?f.values.subscribe({next:Ee=>ue(H(void 0,fe),Ee)}):H(ue,fe,!0),pe=(ue,fe={})=>{for(const Ee of ue?TE(ue):l.mount)l.mount.delete(Ee),l.array.delete(Ee),fe.keepValue||(Io(r,Ee),Io(o,Ee)),!fe.keepError&&Io(n.errors,Ee),!fe.keepDirty&&Io(n.dirtyFields,Ee),!fe.keepTouched&&Io(n.touchedFields,Ee),!fe.keepIsValidating&&Io(n.validatingFields,Ee),!t.shouldUnregister&&!fe.keepDefaultValue&&Io(a,Ee);f.values.next({values:{...o}}),f.state.next({...n,...fe.keepDirty?{isDirty:U()}:{}}),!fe.keepIsValid&&x()},Te=({disabled:ue,name:fe,field:Ee,fields:He,value:Qe})=>{if(Ec(ue)&&i.mount||ue){const Ge=ue?void 0:Ba(Qe)?Wj(Ee?Ee._f:It(He,fe)._f):Qe;Gr(o,fe,Ge),P(fe,Ge,!1,!1,!0)}},Ce=(ue,fe={})=>{let Ee=It(r,ue);const He=Ec(fe.disabled)||Ec(t.disabled);return Gr(r,ue,{...Ee||{},_f:{...Ee&&Ee._f?Ee._f:{ref:{name:ue}},name:ue,mount:!0,...fe}}),l.mount.add(ue),Ee?Te({field:Ee,disabled:Ec(fe.disabled)?fe.disabled:t.disabled,name:ue,value:fe.value}):I(ue,!0,fe.value),{...He?{disabled:fe.disabled||t.disabled}:{},...t.progressive?{required:!!fe.required,min:IE(fe.min),max:IE(fe.max),minLength:IE(fe.minLength),maxLength:IE(fe.maxLength),pattern:IE(fe.pattern)}:{},name:ue,onChange:te,onBlur:te,ref:Qe=>{if(Qe){Ce(ue,fe),Ee=It(r,ue);const Ge=Ba(Qe.value)&&Qe.querySelectorAll&&Qe.querySelectorAll("input,select,textarea")[0]||Qe,ve=Xet(Ge),Se=Ee._f.refs||[];if(ve?Se.find(_e=>_e===Ge):Ge===Ee._f.ref)return;Gr(r,ue,{_f:{...Ee._f,...ve?{refs:[...Se.filter(Hj),Ge,...Array.isArray(It(a,ue))?[{}]:[]],ref:{type:Ge.type,name:ue}}:{ref:Ge}}}),I(ue,!1,void 0,Ge)}else Ee=It(r,ue,{}),Ee._f&&(Ee._f.mount=!1),(t.shouldUnregister||fe.shouldUnregister)&&!(Wpe(l.array,ue)&&i.action)&&l.unMount.add(ue)}}},he=()=>t.shouldFocusError&&RE(r,ee,l.mount),xe=ue=>{Ec(ue)&&(f.state.next({disabled:ue}),RE(r,(fe,Ee)=>{const He=It(r,Ee);He&&(fe.disabled=He._f.disabled||ue,Array.isArray(He._f.refs)&&He._f.refs.forEach(Qe=>{Qe.disabled=He._f.disabled||ue}))},0,!1))},Pe=(ue,fe)=>async Ee=>{let He;if(Ee&&(Ee.preventDefault&&Ee.preventDefault(),Ee.persist&&Ee.persist()),t.disabled){fe&&await fe({...n.errors},Ee);return}let Qe=Ql(o);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Ge,values:ve}=await F();n.errors=Ge,Qe=ve}else await j(r);if(Io(n.errors,"root"),Xl(n.errors)){f.state.next({errors:{}});try{await ue(Qe,Ee)}catch(Ge){He=Ge}}else fe&&await fe({...n.errors},Ee),he(),setTimeout(he);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:Xl(n.errors)&&!He,submitCount:n.submitCount+1,errors:n.errors}),He)throw He},ie=(ue,fe={})=>{It(r,ue)&&(Ba(fe.defaultValue)?oe(ue,Ql(It(a,ue))):(oe(ue,fe.defaultValue),Gr(a,ue,Ql(fe.defaultValue))),fe.keepTouched||Io(n.touchedFields,ue),fe.keepDirty||(Io(n.dirtyFields,ue),n.isDirty=fe.defaultValue?U(ue,Ql(It(a,ue))):U()),fe.keepError||(Io(n.errors,ue),p.isValid&&x()),f.state.next({...n}))},lt=(ue,fe={})=>{const Ee=ue?Ql(ue):a,He=Ql(Ee),Qe=Xl(ue),Ge=Qe?a:He;if(fe.keepDefaultValues||(a=Ee),!fe.keepValues){if(fe.keepDirtyValues){const ve=new Set([...l.mount,...Object.keys(OE(a,o))]);for(const Se of Array.from(ve))It(n.dirtyFields,Se)?Gr(Ge,Se,It(o,Se)):oe(Se,It(Ge,Se))}else{if(Lj&&Ba(ue))for(const ve of l.mount){const Se=It(r,ve);if(Se&&Se._f){const _e=Array.isArray(Se._f.refs)?Se._f.refs[0]:Se._f.ref;if(BO(_e)){const Ae=_e.closest("form");if(Ae){Ae.reset();break}}}}r={}}o=e.shouldUnregister?fe.keepDefaultValues?Ql(a):{}:Ql(Ge),f.array.next({values:{...Ge}}),f.values.next({values:{...Ge}})}l={mount:fe.keepDirtyValues?l.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},i.mount=!p.isValid||!!fe.keepIsValid||!!fe.keepDirtyValues,i.watch=!!e.shouldUnregister,f.state.next({submitCount:fe.keepSubmitCount?n.submitCount:0,isDirty:Qe?!1:fe.keepDirty?n.isDirty:!!(fe.keepDefaultValues&&!qm(ue,a)),isSubmitted:fe.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:Qe?{}:fe.keepDirtyValues?fe.keepDefaultValues&&o?OE(a,o):n.dirtyFields:fe.keepDefaultValues&&ue?OE(a,ue):fe.keepDirty?n.dirtyFields:{},touchedFields:fe.keepTouched?n.touchedFields:{},errors:fe.keepErrors?n.errors:{},isSubmitSuccessful:fe.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},Me=(ue,fe)=>lt(wu(ue)?ue(o):ue,fe);return{control:{register:Ce,unregister:pe,getFieldState:ce,handleSubmit:Pe,setError:de,_executeSchema:F,_getWatch:H,_getDirty:U,_updateValid:x,_removeUnmounted:B,_updateFieldArray:C,_updateDisabledField:Te,_getFieldArray:Y,_reset:lt,_resetDefaultValues:()=>wu(t.defaultValues)&&t.defaultValues().then(ue=>{Me(ue,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:ue=>{n={...n,...ue}},_disableForm:xe,_subjects:f,_proxyFormState:p,_setErrors:N,get _fields(){return r},get _formValues(){return o},get _state(){return i},set _state(ue){i=ue},get _defaultValues(){return a},get _names(){return l},set _names(ue){l=ue},get _formState(){return n},set _formState(ue){n=ue},get _options(){return t},set _options(ue){t={...t,...ue}}},trigger:G,register:Ce,handleSubmit:Pe,watch:be,setValue:oe,getValues:ae,reset:Me,resetField:ie,clearErrors:$,unregister:pe,setError:de,setFocus:(ue,fe={})=>{const Ee=It(r,ue),He=Ee&&Ee._f;if(He){const Qe=He.refs?He.refs[0]:He.ref;Qe.focus&&(Qe.focus(),fe.shouldSelect&&wu(Qe.select)&&Qe.select())}},getFieldState:ce}}function gfe(e={}){const t=w.useRef(),n=w.useRef(),[r,a]=w.useState({isDirty:!1,isValidating:!1,isLoading:wu(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:wu(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...rtt(e),formState:r});const o=t.current.control;return o._options=e,Fj({subject:o._subjects.state,next:i=>{Xpe(i,o._proxyFormState,o._updateFormState,!0)&&a({...o._formState})}}),w.useEffect(()=>o._disableForm(e.disabled),[o,e.disabled]),w.useEffect(()=>{if(o._proxyFormState.isDirty){const i=o._getDirty();i!==r.isDirty&&o._subjects.state.next({isDirty:i})}},[o,r.isDirty]),w.useEffect(()=>{e.values&&!qm(e.values,n.current)?(o._reset(e.values,o._options.resetOptions),n.current=e.values,a(i=>({...i}))):o._resetDefaultValues()},[e.values,o]),w.useEffect(()=>{e.errors&&o._setErrors(e.errors)},[e.errors,o]),w.useEffect(()=>{o._state.mount||(o._updateValid(),o._state.mount=!0),o._state.watch&&(o._state.watch=!1,o._subjects.state.next({...o._formState})),o._removeUnmounted()}),w.useEffect(()=>{e.shouldUnregister&&o._subjects.values.next({values:o._getWatch()})},[e.shouldUnregister,o]),t.current.formState=Qpe(r,o),t.current}const att=({error:e})=>typeof e=="string"?null:Array.isArray(e)&&e.length>1?R.jsx("ul",{children:e.map((t,n)=>R.jsx("li",{children:t},n))}):w.isValidElement(e)?R.jsx(R.Fragment,{children:e}):null;function vfe({error:e,isMd:t,onCancel:n}){const{t:r}=Hn();if(!e)return null;const a="24px",o=Array.isArray(e)&&e.length>1,i=t&&n?{paddingLeft:a}:void 0,s=typeof e=="string"?e:Array.isArray(e)&&e.length>0?e.length>1?r("Errors"):String(e[0]):r("Error");return R.jsx(Q.Alert,{variant:"danger",title:s,isInline:!0,style:i,isExpandable:o,children:R.jsx(att,{error:e})})}function Vj(e){const{isSubmitting:t,errors:n}=jj(),{clearErrors:r}=gfe(),a=n&&Object.keys(n).length>0;return R.jsx(Q.Button,{onClick:()=>{a&&r()},"data-cy":"Submit",type:"submit",isDisabled:t,isLoading:t,isDanger:a,variant:a?"secondary":void 0,style:e.style,children:e.children})}function hfe(e){const[t,n]=w.useState(!1),r=()=>{n(!0),e.onCancel()};return R.jsx(Q.Button,{"data-cy":"Cancel",type:"button",variant:"link",onClick:r,isLoading:t,children:e.children})}const ott=On(Q.PageSection)`
|
452
452
|
padding-bottom: var(--pf-v5-global--spacer--xl);
|
453
453
|
`,itt=On(Q.ActionGroup)`
|
454
454
|
&& {
|
@@ -517,9 +517,9 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
517
517
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function bge(e,t){if(e){if(typeof e=="string")return CU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CU(e,t)}}function CU(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Zat(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r=[],a=!0,o=!1,i,l;try{for(n=n.call(e);!(a=(i=n.next()).done)&&(r.push(i.value),!(t&&r.length===t));a=!0);}catch(s){o=!0,l=s}finally{try{!a&&n.return!=null&&n.return()}finally{if(o)throw l}}return r}}function Jat(e){if(Array.isArray(e))return e}function _ge(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Sa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_ge(Object(n),!0).forEach(function(r){kU(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_ge(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function kU(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aI(e,t){if(e==null)return{};var n=$at(e,t),r,a;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(a=0;a<o.length;a++)r=o[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function $at(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,o;for(o=0;o<r.length;o++)a=r[o],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}var TU=w.forwardRef(function(e,t){var n=e.children,r=aI(e,Gat),a=xge(r),o=a.open,i=aI(a,qat);return w.useImperativeHandle(t,function(){return{open:o}},[o]),w.createElement(w.Fragment,null,n(Sa(Sa({},i),{},{open:o})))});TU.displayName="Dropzone";var yge={disabled:!1,getFilesFromEvent:cat,maxSize:1/0,minSize:0,multiple:!0,maxFiles:0,preventDropOnDocument:!0,noClick:!1,noKeyboard:!1,noDrag:!1,noDragEventsBubbling:!1,validator:null,useFsAccessApi:!1,autoFocus:!1};TU.defaultProps=yge,TU.propTypes={children:qr.func,accept:qr.objectOf(qr.arrayOf(qr.string)),multiple:qr.bool,preventDropOnDocument:qr.bool,noClick:qr.bool,noKeyboard:qr.bool,noDrag:qr.bool,noDragEventsBubbling:qr.bool,minSize:qr.number,maxSize:qr.number,maxFiles:qr.number,disabled:qr.bool,getFilesFromEvent:qr.func,onFileDialogCancel:qr.func,onFileDialogOpen:qr.func,useFsAccessApi:qr.bool,autoFocus:qr.bool,onDragEnter:qr.func,onDragLeave:qr.func,onDragOver:qr.func,onDrop:qr.func,onDropAccepted:qr.func,onDropRejected:qr.func,onError:qr.func,validator:qr.func};var RU={isFocused:!1,isFileDialogActive:!1,isDragActive:!1,isDragAccept:!1,isDragReject:!1,acceptedFiles:[],fileRejections:[]};function xge(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=Sa(Sa({},yge),e),n=t.accept,r=t.disabled,a=t.getFilesFromEvent,o=t.maxSize,i=t.minSize,l=t.multiple,s=t.maxFiles,c=t.onDragEnter,p=t.onDragLeave,f=t.onDragOver,g=t.onDrop,v=t.onDropAccepted,b=t.onDropRejected,y=t.onFileDialogCancel,x=t.onFileDialogOpen,E=t.useFsAccessApi,C=t.autoFocus,O=t.preventDropOnDocument,N=t.noClick,I=t.noKeyboard,P=t.noDrag,L=t.noDragEventsBubbling,F=t.onError,W=t.validator,j=w.useMemo(function(){return jat(n)},[n]),B=w.useMemo(function(){return Fat(n)},[n]),U=w.useMemo(function(){return typeof x=="function"?x:Sge},[x]),H=w.useMemo(function(){return typeof y=="function"?y:Sge},[y]),Y=w.useRef(null),K=w.useRef(null),re=w.useReducer(eot,RU),oe=wU(re,2),te=oe[0],ee=oe[1],G=te.isFocused,ae=te.isFileDialogActive,ce=w.useRef(typeof window<"u"&&window.isSecureContext&&E&&Bat()),$=function(){!ce.current&&ae&&setTimeout(function(){if(K.current){var Se=K.current.files;Se.length||(ee({type:"closeDialog"}),H())}},300)};w.useEffect(function(){return window.addEventListener("focus",$,!1),function(){window.removeEventListener("focus",$,!1)}},[K,ae,H,ce]);var de=w.useRef([]),be=function(Se){Y.current&&Y.current.contains(Se.target)||(Se.preventDefault(),de.current=[])};w.useEffect(function(){return O&&(document.addEventListener("dragover",gge,!1),document.addEventListener("drop",be,!1)),function(){O&&(document.removeEventListener("dragover",gge),document.removeEventListener("drop",be))}},[Y,O]),w.useEffect(function(){return!r&&C&&Y.current&&Y.current.focus(),function(){}},[Y,C,r]);var pe=w.useCallback(function(ve){F?F(ve):console.error(ve)},[F]),Te=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve),de.current=[].concat(Vat(de.current),[ve.target]),rI(ve)&&Promise.resolve(a(ve)).then(function(Se){if(!(nI(ve)&&!L)){var _e=Se.length,Ae=_e>0&&Pat({files:Se,accept:j,minSize:i,maxSize:o,multiple:l,maxFiles:s,validator:W}),ze=_e>0&&!Ae;ee({isDragAccept:Ae,isDragReject:ze,isDragActive:!0,type:"setDraggedFiles"}),c&&c(ve)}}).catch(function(Se){return pe(Se)})},[a,c,pe,L,j,i,o,l,s,W]),Ce=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve);var Se=rI(ve);if(Se&&ve.dataTransfer)try{ve.dataTransfer.dropEffect="copy"}catch{}return Se&&f&&f(ve),!1},[f,L]),he=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve);var Se=de.current.filter(function(Ae){return Y.current&&Y.current.contains(Ae)}),_e=Se.indexOf(ve.target);_e!==-1&&Se.splice(_e,1),de.current=Se,!(Se.length>0)&&(ee({type:"setDraggedFiles",isDragActive:!1,isDragAccept:!1,isDragReject:!1}),rI(ve)&&p&&p(ve))},[Y,p,L]),xe=w.useCallback(function(ve,Se){var _e=[],Ae=[];ve.forEach(function(ze){var De=fge(ze,j),Ye=wU(De,2),Xe=Ye[0],yt=Ye[1],ut=mge(ze,i,o),Yt=wU(ut,2),Rt=Yt[0],ye=Yt[1],Le=W?W(ze):null;if(Xe&&Rt&&!Le)_e.push(ze);else{var Ze=[yt,ye];Le&&(Ze=Ze.concat(Le)),Ae.push({file:ze,errors:Ze.filter(function(At){return At})})}}),(!l&&_e.length>1||l&&s>=1&&_e.length>s)&&(_e.forEach(function(ze){Ae.push({file:ze,errors:[Aat]})}),_e.splice(0)),ee({acceptedFiles:_e,fileRejections:Ae,isDragReject:Ae.length>0,type:"setFiles"}),g&&g(_e,Ae,Se),Ae.length>0&&b&&b(Ae,Se),_e.length>0&&v&&v(_e,Se)},[ee,l,j,i,o,s,g,v,b,W]),Pe=w.useCallback(function(ve){ve.preventDefault(),ve.persist(),Ee(ve),de.current=[],rI(ve)&&Promise.resolve(a(ve)).then(function(Se){nI(ve)&&!L||xe(Se,ve)}).catch(function(Se){return pe(Se)}),ee({type:"reset"})},[a,xe,pe,L]),ie=w.useCallback(function(){if(ce.current){ee({type:"openDialog"}),U();var ve={multiple:l,types:B};window.showOpenFilePicker(ve).then(function(Se){return a(Se)}).then(function(Se){xe(Se,null),ee({type:"closeDialog"})}).catch(function(Se){Uat(Se)?(H(Se),ee({type:"closeDialog"})):zat(Se)?(ce.current=!1,K.current?(K.current.value=null,K.current.click()):pe(new Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))):pe(Se)});return}K.current&&(ee({type:"openDialog"}),U(),K.current.value=null,K.current.click())},[ee,U,H,E,xe,pe,B,l]),lt=w.useCallback(function(ve){!Y.current||!Y.current.isEqualNode(ve.target)||(ve.key===" "||ve.key==="Enter"||ve.keyCode===32||ve.keyCode===13)&&(ve.preventDefault(),ie())},[Y,ie]),Me=w.useCallback(function(){ee({type:"focus"})},[]),ot=w.useCallback(function(){ee({type:"blur"})},[]),_t=w.useCallback(function(){N||(Lat()?setTimeout(ie,0):ie())},[N,ie]),st=function(Se){return r?null:Se},ue=function(Se){return I?null:st(Se)},fe=function(Se){return P?null:st(Se)},Ee=function(Se){L&&Se.stopPropagation()},He=w.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Se=ve.refKey,_e=Se===void 0?"ref":Se,Ae=ve.role,ze=ve.onKeyDown,De=ve.onFocus,Ye=ve.onBlur,Xe=ve.onClick,yt=ve.onDragEnter,ut=ve.onDragOver,Yt=ve.onDragLeave,Rt=ve.onDrop,ye=aI(ve,Hat);return Sa(Sa(kU({onKeyDown:ue(Ru(ze,lt)),onFocus:ue(Ru(De,Me)),onBlur:ue(Ru(Ye,ot)),onClick:st(Ru(Xe,_t)),onDragEnter:fe(Ru(yt,Te)),onDragOver:fe(Ru(ut,Ce)),onDragLeave:fe(Ru(Yt,he)),onDrop:fe(Ru(Rt,Pe)),role:typeof Ae=="string"&&Ae!==""?Ae:"presentation"},_e,Y),!r&&!I?{tabIndex:0}:{}),ye)}},[Y,lt,Me,ot,_t,Te,Ce,he,Pe,I,P,r]),Qe=w.useCallback(function(ve){ve.stopPropagation()},[]),Ge=w.useMemo(function(){return function(){var ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Se=ve.refKey,_e=Se===void 0?"ref":Se,Ae=ve.onChange,ze=ve.onClick,De=aI(ve,Wat),Ye=kU({accept:j,multiple:l,type:"file",style:{border:0,clip:"rect(0, 0, 0, 0)",clipPath:"inset(50%)",height:"1px",margin:"0 -1px -1px 0",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap"},onChange:st(Ru(Ae,Pe)),onClick:st(Ru(ze,Qe)),tabIndex:-1},_e,K);return Sa(Sa({},Ye),De)}},[K,n,l,Pe,r]);return Sa(Sa({},te),{},{isFocused:G&&!r,getRootProps:He,getInputProps:Ge,rootRef:Y,inputRef:K,open:st(ie)})}function eot(e,t){switch(t.type){case"focus":return Sa(Sa({},e),{},{isFocused:!0});case"blur":return Sa(Sa({},e),{},{isFocused:!1});case"openDialog":return Sa(Sa({},RU),{},{isFileDialogActive:!0});case"closeDialog":return Sa(Sa({},e),{},{isFileDialogActive:!1});case"setDraggedFiles":return Sa(Sa({},e),{},{isDragActive:t.isDragActive,isDragAccept:t.isDragAccept,isDragReject:t.isDragReject});case"setFiles":return Sa(Sa({},e),{},{acceptedFiles:t.acceptedFiles,fileRejections:t.fileRejections,isDragReject:t.isDragReject});case"reset":return Sa({},RU);default:return e}}function Sge(){}function tot(e){const{t}=Hn(),n=cT(),{onDrop:r}=e,a=w.useCallback(l=>{if(!l||l.length===0)return;const s=l[0],c=new FileReader;c.onload=()=>{const p=c.result;if(typeof p=="string"){const f={variant:"success",title:t("File uploaded"),timeout:!0};n.addAlert(f),r(p)}},c.onerror=()=>{const p={variant:"danger",title:t("Failed to upload file"),children:t("Unable to upload")};n.addAlert(p)},c.readAsText(s)},[t,n,r]),{getRootProps:o,getInputProps:i}=xge({onDrop:a,noClick:!0,accept:e.accept??{"application/json":[".json"],"text/yaml":[".yaml",".yml"]}});return R.jsxs("div",{id:"code-editor-dropzone",...o({disabled:!0}),style:{width:"100%",height:"100%"},children:[R.jsx("input",{id:"code-editor-dropzone-input",...i(),ref:e.inputRef}),e.children]})}function not(e){return R.jsx(Q.Icon,{size:e.size??"md",children:R.jsx(Ht.AngleDownIcon,{"data-cy":"expandable",style:{transform:e.isExpanded?"rotate(0deg)":e.direction==="left"?"rotate(90deg)":"rotate(-90deg)",transition:"transform 0.2s",alignSelf:"center"},onClick:()=>e.setExpanded(!e.isExpanded),"aria-label":e.isExpanded?DE("Collapse"):DE("Expand")})})}function rot(e,t,n="txt"){const r=new Blob(t.split("/n"),{type:"text/plain"}),a=document.createElement("a");a.href=URL.createObjectURL(r),a.download=e+"."+n,document.body.appendChild(a),a.click(),document.body.removeChild(a)}function GE(e){const{children:t,helperText:n,helperTextInvalid:r,isRequired:a,labelHelp:o,labelHelpTitle:i,label:l,fullWidth:s}=e;return R.jsxs(Q.FormGroup,{id:`${e.fieldId}-form-group`,fieldId:e.fieldId,label:R.jsxs(R.Fragment,{children:[e.icon,l]}),labelIcon:o?R.jsx(lT,{title:i,help:o}):void 0,labelInfo:e.additionalControls,isRequired:a,"data-cy":`${e.fieldId}-form-group`,style:{gridColumn:s?"span 12":void 0},children:[t,(n||r)&&R.jsx(Q.FormHelperText,{children:R.jsx(Q.HelperText,{children:R.jsx(Q.HelperTextItem,{variant:r?"error":void 0,children:r||n})})})]})}function aot(e){const{t}=Hn(),{name:n,format:r,disableCopy:a,disableUpload:o,disableDownload:i,disableExpand:l,validate:s,isArray:c}=e,p=kp(e),{formState:{isSubmitting:f,isValidating:g},setError:v,getValues:b,clearErrors:y,control:x}=Su(),C=Rp().dataEditorFormat??"yaml",[O,N]=w.useState(C),[I,P]=w.useState(!e.defaultCollapsed),[L,F]=w.useState(()=>{const $=b(n);return typeof $=="string"?$:Ou($,C)}),W=cT(),{writeToClipboard:j}=GJ(),B=w.useCallback(()=>j(Ou(ef(b(n),c),O)),[b,c,O,n,j]),U=w.useCallback($=>{F(Ou(ef($,c),O))},[c,O]),H=w.useRef(null),Y=w.useCallback(()=>{var $;return($=H.current)==null?void 0:$.click()},[]),K=w.useCallback(()=>{const $=n||"data",de=O==="json"?"json":"yaml";rot($,Ou(ef(b(n),c),O),de),W.addAlert({variant:"success",title:t("File downloaded"),timeout:!0})},[W,b,c,O,n,t]);w.useLayoutEffect(()=>{const $=Ou(ef(b(n),c),O);F($)},[b,c,O,n]);const[re,oe]=w.useState(!1),te=$pe({name:n});w.useEffect(()=>{re||F(Ou(ef(te,c),O))},[re,te,c,O]);const{setValue:ee,formState:{defaultValues:G}}=Su(),ae=ME(e.label,e.isRequired),ce=my(G,e.name);return R.jsx(dy,{name:n,control:x,shouldUnregister:!0,render:({field:{value:$,name:de,onChange:be},fieldState:{error:pe}})=>{var Ce;function Te(he){try{const xe=ef(he,c);switch(r){case"object":be(xe);return;default:be(Ou(xe,r));break}y(de)}catch(xe){xe instanceof Error&&v(de,{message:xe.message})}}return R.jsxs(GE,{fieldId:p,icon:!l&&R.jsx(not,{isExpanded:I,setExpanded:P}),label:e.label,labelHelpTitle:e.labelHelpTitle??e.label,labelHelp:e.labelHelp,additionalControls:R.jsx(wge,{handleCopy:!a&&B,handleUpload:!o&&Y,handleDownload:!i&&K,language:O,setLanguage:N,children:e.additionalControls}),helperText:e.helperText,helperTextInvalid:!(s&&g)&&((Ce=pe==null?void 0:pe.message)==null?void 0:Ce.split(`
|
518
518
|
`)),isRequired:e.isRequired,children:[I&&R.jsxs("div",{style:{display:"flex"},children:[R.jsx(tot,{onDrop:U,isDisabled:f||e.isReadOnly,inputRef:H,children:R.jsx(Zrt,{"data-cy":p,id:p,name:de,language:O,value:L,onChange:Te,setError:he=>{he?v(de,{message:he}):y(de)},isReadOnly:e.isReadOnly||f,className:e.isReadOnly?"pf-v5-c-form-control pf-m-disabled":"pf-v5-c-form-control",onFocus:()=>oe(!0),onBlur:()=>oe(!1)})}),R.jsx(pu,{actions:[{label:t("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{ee(e.name,ce),F(""),setTimeout(()=>{F(Ou(ef(ce,c),O))},0)},isHidden:()=>!e.enableUndo||Lfe($,ce)},{label:t("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{ee(e.name,e.defaultValue),F(""),setTimeout(()=>{F(Ou(ef(e.defaultValue,c),O))},0)},isHidden:()=>!e.enableReset||Lfe($,e.defaultValue)}],position:"right"})]}),!I&&R.jsx("div",{className:"pf-v5-c-form-control"})]})},rules:{required:ae,validate:e.validate}})}function Ege(e){const{t}=Hn(),{handleCopy:n,handleDownload:r,handleUpload:a}=e;return!n&&!r&&!a?R.jsx(R.Fragment,{}):R.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsMd"},children:[n&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"copy-button","data-cy":"copy-button","aria-label":t("Copy to clipboard"),type:"button",onClick:n,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.CopyIcon,{})})})}),a&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"upload-button","data-cy":"upload-button","aria-label":t("Upload from file"),type:"button",onClick:a,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.UploadIcon,{})})})}),r&&R.jsx(Q.FlexItem,{children:R.jsx(iT,{id:"download-button","data-cy":"download-button","aria-label":t("Download file"),type:"button",onClick:r,children:R.jsx(Q.Icon,{size:"md",children:R.jsx(Ht.DownloadIcon,{})})})})]})}function wge(e){const{t}=Hn(),{handleCopy:n,handleDownload:r,handleUpload:a,language:o,setLanguage:i}=e;return R.jsxs(Q.Flex,{spaceItems:{default:"spaceItemsLg"},children:[R.jsx(Q.FlexItem,{children:e.children}),R.jsx(Ege,{handleCopy:n,handleDownload:r,handleUpload:a}),R.jsx(Q.FlexItem,{align:{default:"alignRight"},children:R.jsxs(Q.ToggleGroup,{isCompact:!0,children:[R.jsx(Q.ToggleGroupItem,{id:"toggle-yaml","data-cy":"toggle-yaml","aria-label":t("Toggle to YAML"),isSelected:o==="yaml",text:"YAML",type:"button",onChange:()=>i("yaml")}),R.jsx(Q.ToggleGroupItem,{id:"toggle-json","data-cy":"toggle-json","aria-label":t("Toggle to JSON"),isSelected:o==="json",text:"JSON",type:"button",onChange:()=>i("json")})]})})]})}function ef(e,t){const n=t?[]:{};if(e==null)return n;const a=()=>{try{e=zme.load(e)}catch(o){return o instanceof Error||o instanceof fU?new Error(o.message):{}}};if(typeof e=="string")try{e=JSON.parse(e)}catch{a()}return t?Array.isArray(e)?e:[]:Array.isArray(e)?{}:e}function Ou(e,t){if(e==null)return"";if(e instanceof Error)return e.message;switch(t){case"json":return JSON.stringify(e,null,2);case"yaml":try{const n=zme.dump(e).trimEnd();switch(n){case"null":case"{}":case"[]":return"";default:return n}}catch(n){return n instanceof Error||n instanceof fU?n.message:""}default:return""}}function oot(e){const{additionalControls:t,footer:n,helperText:r,isDisabled:a,isReadOnly:o,isRequired:i,label:l,labelHelp:s,labelHelpTitle:c,name:p,options:f,placeholderText:g,validate:v}=e,b=kp(e),{t:y}=Hn(),{control:x,setValue:E,getValues:C,formState:{isSubmitting:O,isValidating:N,defaultValues:I}}=Su(),[P,L]=w.useState(!1),F=w.useCallback(()=>L(!P),[P]),[W]=ya(),j=ME(e.label,e.isRequired),B=my(I,e.name);w.useEffect(()=>{C(e.name)||f.length===1&&i&&E(e.name,f[0].value)},[C,i,f,e.name,E]);const U=(H,Y)=>R.jsx(Q.MenuToggle,{"data-cy":`${b}-form-group`,id:`${b}-form-group-toggle`,isDisabled:a||o||O,ref:H,onClick:F,isExpanded:P,isFullWidth:!0,children:Y??g});return R.jsx(dy,{name:p,control:x,defaultValue:e.defaultValue,shouldUnregister:!0,render:({field:{onChange:H,value:Y},fieldState:{error:K}})=>{const re=(ee,G)=>{const ae=f.find(ce=>ce.value===G);ae&&(H(ae.value),e.onChange&&e.onChange(ae.value)),L(!1)},oe=K!=null&&K.message?v&&N?W.validating:K==null?void 0:K.message:void 0,te=f.find(ee=>ee.value===Y);return R.jsx(GE,{fieldId:b,label:l,labelHelpTitle:c??l,labelHelp:s,additionalControls:t,helperText:r,helperTextInvalid:oe,isRequired:i,children:R.jsxs("div",{style:{display:"flex"},children:[R.jsx(Q.Select,{"aria-describedby":`${b}-form-group-select`,"data-cy":b,id:b,isOpen:P,itemID:b,onOpenChange:ee=>L(ee),onSelect:re,ouiaId:"menu-select",shouldFocusToggleOnSelect:!0,toggle:ee=>U(ee,te==null?void 0:te.label),isScrollable:!0,children:R.jsxs(R.Fragment,{children:[R.jsx(Q.SelectList,{children:f.map(ee=>{const G=uu(ee);return R.jsx(Q.SelectOption,{id:G,value:ee.value,label:ee.label,description:ee.description,"data-cy":G,children:ee.label},ee.label)})}),n&&R.jsx(Q.MenuFooter,{children:n})]})}),R.jsx(pu,{actions:[{label:y("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{E(e.name,B)},isHidden:()=>!e.enableUndo||Y===B},{label:y("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{E(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||Y===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:j,validate:v}})}function iot(e){const{name:t,helperText:n,validate:r,additionalControls:a,label:o,labelHelp:i,labelHelpTitle:l,labelOn:s,labelOff:c}=e,{control:p,formState:{isSubmitting:f,isValidating:g}}=Su(),v=kp(e);return R.jsx(dy,{name:t,control:p,shouldUnregister:!0,render:({field:{onChange:b,value:y},fieldState:{error:x}})=>{const E=r&&g||x==null?void 0:x.message;return R.jsx(GE,{fieldId:v,"data-cy":v+"-form-group",label:o,labelHelpTitle:l??o,labelHelp:i,helperText:n,helperTextInvalid:E,additionalControls:a,children:R.jsx(Q.Switch,{"data-cy":v+"-toggle","aria-label":o,isChecked:y,onChange:C=>b(C),isDisabled:f,label:s,labelOff:c})})}})}function lot(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:s,helperText:c,isDisabled:p,isReadOnly:f,isRequired:g,validate:v,minLength:b,maxLength:y,min:x,max:E,pattern:C,selectTitle:O,selectOpen:N,selectValue:I,autoFocus:P,autoComplete:L,disableAutoResize:F}=e,W=kp(e),{control:j,setValue:B,formState:{isSubmitting:U,isValidating:H}}=Su(),[Y,K]=w.useState(!1),[re]=ya(),oe=ME(e.label,e.isRequired);return R.jsx(dy,{name:n,control:j,shouldUnregister:!0,render:({field:{onChange:te,value:ee,name:G},fieldState:{error:ae}})=>{const ce=ae!=null&&ae.message?v&&H?re.validating:ae==null?void 0:ae.message:void 0;function $(de){te(de.trimStart())}return R.jsx(GE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:ce,isRequired:g,fullWidth:!0,children:R.jsxs(Q.InputGroup,{children:[R.jsx(Q.InputGroupItem,{isFill:!0,children:R.jsx(Q.TextArea,{id:W,placeholder:l,onChange:(de,be)=>$(be),value:ee??"","aria-describedby":W?`${W}-form-group`:void 0,validated:ce?"error":void 0,type:t==="password"?Y?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:L||"off","data-cy":W,autoResize:F===void 0?!0:!F,rows:1,resizeOrientation:"vertical"})}),t==="password"&&R.jsx(Q.Button,{variant:"control",onClick:()=>K(!Y),isDisabled:p||f,children:Y?R.jsx(Ht.EyeIcon,{}):R.jsx(Ht.EyeSlashIcon,{})}),O&&R.jsx(Q.Button,{ouiaId:`lookup-${G}-button`,variant:"control",onClick:()=>N==null?void 0:N(de=>{if(I){const be=I(de);B(G,be,{shouldValidate:!0})}},O),"aria-label":"Options menu",isDisabled:p||U,children:R.jsx(Ht.SearchIcon,{})}),s]})})},rules:{required:oe,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${ku(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${ku(r.toLocaleLowerCase())} must be less than ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:b,pattern:C}})}function sot(e){const{type:t,name:n,label:r,labelHelpTitle:a,labelHelp:o,additionalControls:i,placeholder:l,button:s,helperText:c,isDisabled:p,isReadOnly:f,isRequired:g,validate:v,minLength:b,maxLength:y,min:x,max:E,pattern:C,selectTitle:O,selectOpen:N,selectValue:I,autoFocus:P,autoComplete:L,fullWidth:F}=e,W=kp(e),{t:j}=Hn(),{control:B,setValue:U,formState:{isSubmitting:H,isValidating:Y,defaultValues:K}}=Su(),[re,oe]=w.useState(!1),[te]=ya(),ee=ME(e.label,e.isRequired),G=my(K,e.name);return R.jsx(dy,{name:n,control:B,shouldUnregister:e.shouldUnregister!==!1,defaultValue:e.defaultValue,render:({field:{onChange:ae,value:ce,name:$},fieldState:{error:de}})=>{const be=de!=null&&de.message?v&&Y?te.validating:de==null?void 0:de.message:void 0;let pe=ce;switch(t){case"datetime-local":if(ce){const Ce=new Date(ce);pe=new Date(Ce.getTime()-Ce.getTimezoneOffset()*6e4).toISOString().slice(0,16)}break}function Te(Ce){switch(e.type){case"datetime-local":{ae(new Date(Ce).toISOString());break}case"number":{let he=Number(Ce);if(Ce===""||isNaN(he)){U($,null),ae(null);return}E!==void 0&&he>Number(E)&&(he=Number(E)),x!==void 0&&he<Number(x)&&(he=Number(x)),U($,he),ae(he);break}default:ae(Ce.trimStart())}}return R.jsx(GE,{fieldId:W,label:r,labelHelpTitle:a??r,labelHelp:o,additionalControls:i,helperText:c,helperTextInvalid:be,isRequired:g,fullWidth:F,children:R.jsxs(Q.InputGroup,{children:[R.jsx(Q.InputGroupItem,{isFill:!0,children:R.jsx(Q.TextInput,{id:W,placeholder:l,onChange:(Ce,he)=>Te(he),value:pe??"","aria-describedby":W?`${W}-form-group`:void 0,validated:be?"error":void 0,type:t==="password"?re?"text":"password":t,readOnlyVariant:f?"default":void 0,isDisabled:p,autoFocus:P,autoComplete:L||"off","data-cy":W})}),t==="password"&&R.jsx(Q.Button,{variant:"control",onClick:()=>oe(!re),isDisabled:p||f,children:re?R.jsx(Ht.EyeIcon,{}):R.jsx(Ht.EyeSlashIcon,{})}),O&&R.jsx(Q.Button,{ouiaId:`lookup-${$}-button`,variant:"control",onClick:()=>N==null?void 0:N(Ce=>{if(I){const he=I(Ce);U($,he,{shouldValidate:!0})}},O),"aria-label":"Options menu",isDisabled:p||H,children:R.jsx(Ht.SearchIcon,{"data-cy":"lookup-button"})}),s,R.jsx(pu,{actions:[{label:j("Undo changes"),type:Pr.Button,selection:vr.None,onClick:()=>{U(e.name,G)},isHidden:()=>!e.enableUndo||ce===G},{label:j("Reset to default"),type:Pr.Button,selection:vr.None,onClick:()=>{U(e.name,e.defaultValue)},isHidden:()=>!e.enableReset||ce===e.defaultValue}],variant:Q.ButtonVariant.control,position:"right"})]})})},rules:{required:ee,validate:v,minLength:typeof r=="string"&&typeof b=="number"?{value:b,message:`${ku(r.toLocaleLowerCase())} must be at least ${b} characters.`}:b,maxLength:typeof r=="string"&&typeof y=="number"?{value:y,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${y} characters.`}:y,min:typeof r=="string"&&(typeof x=="number"||typeof x=="string")?{value:x,message:`${ku(r.toLocaleLowerCase())} must be greater or equal to ${x}.`}:b,max:typeof r=="string"&&(typeof E=="number"||typeof E=="string")?{value:E,message:`${ku(r.toLocaleLowerCase())} cannot be greater than ${E}.`}:E,pattern:C}})}const OU=w.createContext({isOpen:!1,setState:()=>({})});function oI(){return w.useContext(OU)}function Cge(e){const t=Oi("xl"),[n,r]=w.useState(()=>t),a=w.useCallback(o=>{o.isOpen!==void 0&&r(o.isOpen)},[]);return w.useEffect(()=>a({isOpen:t}),[t,a]),R.jsx(OU.Provider,{value:{isOpen:n,setState:a},children:e.children})}function kge(){const e=ga.useNavigate(),t=Oi("xl"),n=oI();return w.useCallback(a=>{e(a),t||n.setState({isOpen:!n.isOpen})},[e,t,n])}const IU=w.createContext([{},()=>{}]);function cot(){return w.useContext(IU)[0]}function dot(){return w.useContext(IU)}function uot(e){const[t,n]=w.useState({}),r=w.useCallback(o=>{n(Tge("",o))},[]),a=w.useMemo(()=>[t,r],[t,r]);return R.jsx(IU.Provider,{value:a,children:e.children})}function Tge(e,t){const n={};return t.forEach(r=>{const a=(e+"/"+r.path).replace("//","/");"id"in r&&typeof r.id=="string"&&(n[r.id]=a),"children"in r&&Object.assign(n,Tge(a,r.children))}),n}const Rge=w.createContext({notificationsDrawerOpen:!1,setNotificationsDrawerOpen:()=>{throw new Error("PageNotificationsContext not implemented")},notificationGroups:{},setNotificationGroups:()=>{throw new Error("PageNotificationsContext not implemented")}});function iI(){return w.useContext(Rge)}function pot(e){const[t,n]=w.useState(!1),[r,a]=w.useState({});return R.jsx(Rge.Provider,{value:{notificationGroups:r,setNotificationGroups:a,notificationsDrawerOpen:t,setNotificationsDrawerOpen:n},children:e.children})}function fot(e){const{t}=Hn(),{notificationsDrawerOpen:n,setNotificationsDrawerOpen:r}=iI(),a=w.useRef(null);function o(){var l;r(!1),(l=a.current)==null||l.focus()}const{notificationGroups:i}=iI();return R.jsx(Q.Drawer,{isExpanded:n,onExpand:()=>r(!0),children:R.jsx(Q.DrawerContent,{panelContent:R.jsx(Q.DrawerPanelContent,{children:R.jsxs(Q.NotificationDrawer,{"data-cy":"notifications-drawer",children:[R.jsx(Q.NotificationDrawerHeader,{title:t("Notifications"),children:R.jsx(Q.DrawerCloseButton,{onClick:o})}),R.jsx(Q.NotificationDrawerBody,{children:R.jsx(Q.NotificationDrawerGroupList,{children:Object.values(i).map((l,s)=>R.jsx(got,{group:l},s))})})]})}),children:R.jsx(mot,{children:e.children})})})}const mot=On(Q.DrawerContentBody)`
|
519
519
|
max-height: 100%;
|
520
|
-
`;function got(e){const{t}=Hn(),[n,r]=w.useState(!0);return R.jsx(Q.NotificationDrawerGroup,{title:e.group.title,isExpanded:n,count:e.group.notifications.length,onExpand:(a,o)=>r(o),children:R.jsxs(Q.NotificationDrawerList,{isHidden:!n,children:[e.group.notifications.map((a,o)=>R.jsx(vot,{notification:a},o)),e.group.notifications.length===0&&R.jsxs(Q.EmptyState,{variant:Q.EmptyStateVariant.full,children:[R.jsx(Q.EmptyStateHeader,{headingLevel:"h2",titleText:t("No notifications")}),R.jsx(Q.EmptyStateBody,{children:t("There are currently no notifications.")})]})]})})}function vot(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=ga.useNavigate(),{setNotificationsDrawerOpen:r}=iI(),a=e.notification.timestamp?new Date(e.notification.timestamp):void 0,o=a?`${a.toLocaleDateString()} ${a.toLocaleTimeString()}`:void 0;return R.jsxs(Q.NotificationDrawerListItem,{variant:e.notification.variant,onClick:()=>{n(e.notification.to),r(!1)},children:[R.jsx(Q.NotificationDrawerListItemHeader,{title:e.notification.title,variant:t}),R.jsx(Q.NotificationDrawerListItemBody,{timestamp:o,children:e.notification.description})]})}function hot(e){return R.jsx(jZ,{children:R.jsx(Iee,{defaultRefreshInterval:e.defaultRefreshInterval,children:R.jsx(uot,{children:R.jsx(kpe,{children:R.jsx(UJ,{children:R.jsx(Cge,{children:R.jsx(pot,{children:R.jsx(PMe,{children:e.children})})})})})})})})}function Oge(e){const[t]=ya();return R.jsx(zJ,{message:t.errorText,children:R.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function bot(e){const t=Oi("sm");return R.jsxs(Q.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[R.jsx(Ige,{}),t&&R.jsx(Q.MastheadMain,{children:R.jsx(Q.MastheadBrand,{component:n=>R.jsx(ga.Link,{...n,to:"/"}),children:e.brand})}),R.jsx(Q.MastheadContent,{style:{marginLeft:0,minHeight:0},children:R.jsx(Q.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:R.jsx(Q.ToolbarContent,{children:e.children})})})]})}function Ige(){const e=oI();return R.jsx(Q.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:R.jsx(Q.PageToggleButton,{"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation",children:R.jsx(Ht.BarsIcon,{})})})}function _ot(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=iI(),n=Object.values(t).reduce((r,a)=>r+a.notifications.length,0);return R.jsx(Q.NotificationBadge,{"data-cy":"notification-badge",variant:n===0?"read":"unread",count:n,onClick:()=>e(r=>!r)})}function yot(){const[e,t]=w.useContext(yv);return e.activeTheme==="dark"?R.jsx(Q.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:R.jsx(Ht.MoonIcon,{})}):R.jsx(Q.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:R.jsx(Ht.SunIcon,{})})}const xot=w.lazy(()=>Promise.resolve().then(()=>FNt)),
|
520
|
+
`;function got(e){const{t}=Hn(),[n,r]=w.useState(!0);return R.jsx(Q.NotificationDrawerGroup,{title:e.group.title,isExpanded:n,count:e.group.notifications.length,onExpand:(a,o)=>r(o),children:R.jsxs(Q.NotificationDrawerList,{isHidden:!n,children:[e.group.notifications.map((a,o)=>R.jsx(vot,{notification:a},o)),e.group.notifications.length===0&&R.jsxs(Q.EmptyState,{variant:Q.EmptyStateVariant.full,children:[R.jsx(Q.EmptyStateHeader,{headingLevel:"h2",titleText:t("No notifications")}),R.jsx(Q.EmptyStateBody,{children:t("There are currently no notifications.")})]})]})})}function vot(e){const t=e.notification.variant==="info"?void 0:e.notification.variant,n=ga.useNavigate(),{setNotificationsDrawerOpen:r}=iI(),a=e.notification.timestamp?new Date(e.notification.timestamp):void 0,o=a?`${a.toLocaleDateString()} ${a.toLocaleTimeString()}`:void 0;return R.jsxs(Q.NotificationDrawerListItem,{variant:e.notification.variant,onClick:()=>{n(e.notification.to),r(!1)},children:[R.jsx(Q.NotificationDrawerListItemHeader,{title:e.notification.title,variant:t}),R.jsx(Q.NotificationDrawerListItemBody,{timestamp:o,children:e.notification.description})]})}function hot(e){return R.jsx(jZ,{children:R.jsx(Iee,{defaultRefreshInterval:e.defaultRefreshInterval,children:R.jsx(uot,{children:R.jsx(kpe,{children:R.jsx(UJ,{children:R.jsx(Cge,{children:R.jsx(pot,{children:R.jsx(PMe,{children:e.children})})})})})})})})}function Oge(e){const[t]=ya();return R.jsx(zJ,{message:t.errorText,children:R.jsx("div",{style:{display:"flex",flexDirection:"column",height:"100%",maxHeight:"100%"},children:e.children})})}function bot(e){const t=Oi("sm");return R.jsxs(Q.Masthead,{display:{default:"inline"},style:{borderBottom:"1px solid #fff4",paddingRight:0},children:[R.jsx(Ige,{}),t&&R.jsx(Q.MastheadMain,{children:R.jsx(Q.MastheadBrand,{component:n=>R.jsx(ga.Link,{...n,to:"/"}),children:e.brand})}),R.jsx(Q.MastheadContent,{style:{marginLeft:0,minHeight:0},children:R.jsx(Q.Toolbar,{id:"toolbar","data-cy":"toolbar",inset:{default:"insetNone"},style:{padding:0},children:R.jsx(Q.ToolbarContent,{children:e.children})})})]})}function Ige(){const e=oI();return R.jsx(Q.MastheadToggle,{onClick:()=>e.setState({isOpen:!e.isOpen}),children:R.jsx(Q.PageToggleButton,{"data-cy":"nav-toggle",variant:"plain","aria-label":"Global navigation",children:R.jsx(Ht.BarsIcon,{})})})}function _ot(){const{setNotificationsDrawerOpen:e,notificationGroups:t}=iI(),n=Object.values(t).reduce((r,a)=>r+a.notifications.length,0);return R.jsx(Q.NotificationBadge,{"data-cy":"notification-badge",variant:n===0?"read":"unread",count:n,onClick:()=>e(r=>!r)})}function yot(){const[e,t]=w.useContext(yv);return e.activeTheme==="dark"?R.jsx(Q.Button,{"data-cy":"settings-icon",variant:"plain",onClick:()=>t({...e,theme:"light"}),children:R.jsx(Ht.MoonIcon,{})}):R.jsx(Q.Button,{"data-cy":"theme-icon",variant:"plain",onClick:()=>t({...e,theme:"dark"}),children:R.jsx(Ht.SunIcon,{})})}function Nge(e){const{navigation:t}=e,n=oI();return R.jsx(Q.PageSidebar,{isSidebarOpen:n.isOpen,className:"bg-lighten",children:R.jsxs(Q.PageSidebarBody,{children:[e.contextSwitcher,R.jsx(Q.Nav,{"data-cy":"page-navigation",className:"side-nav",children:R.jsx(Q.NavList,{children:R.jsx(lI,{baseRoute:e.basename??"",items:t})})})]})})}function lI(e){return R.jsx(R.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>R.jsx(xot,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function xot(e){var f,g;const{item:t}=e,[n,r]=w.useState(()=>localStorage.getItem("default-nav-expanded")==="true"||localStorage.getItem((t.id??t.label)+"-expanded")==="true"),a=v=>{r(v),localStorage.setItem((t.id??t.label)+"-expanded",v?"true":"false")};let o;if("id"in e.item)o=e.item.id;else if("children"in e.item){const v=e.item.children.find(b=>b.path==="");v&&"id"in v&&(o=v.id)}o||(o=(f=e.item.label)==null?void 0:f.split(" ").join("-").toLowerCase());const i=kge();let l=e.baseRoute+"/"+t.path;l=l.replace("//","/");const s=!!ga.useMatch(l+"/*");if(t.path==="/"&&"children"in t)return R.jsx(lI,{items:t.children,baseRoute:""});const c="children"in t&&((g=t.children)==null?void 0:g.find(v=>v.label)),p={fontSize:"small",opacity:.5,textAlign:"left"};return!c&&"label"in t?R.jsxs(Q.NavItem,{id:o,href:t.href||l,isActive:s,className:s?"bg-lighten":void 0,onClick:()=>t.href?window.open(t.href,"_blank"):i(l),target:t.href?"_blank":"","data-cy":o,style:{display:"flex",alignItems:"stretch",flexDirection:"column"},children:[R.jsxs(Q.Flex,{flexWrap:{default:"nowrap"},children:[R.jsx(Q.FlexItem,{grow:{default:"grow"},children:t.label}),"badge"in t&&t.badge&&R.jsx(Q.FlexItem,{children:R.jsx(Q.Label,{isCompact:!0,variant:"outline",color:t.badgeColor,children:t.badge})}),"href"in t&&t.href&&R.jsx(Q.FlexItem,{children:R.jsx("span",{className:"pf-v5-c-nav__toggle",children:R.jsx("span",{className:"pf-v5-c-nav__toggle-icon",children:R.jsx(Ht.ExternalLinkAltIcon,{})})})})]}),t.subtitle&&R.jsx("div",{style:p,children:t.subtitle})]}):!c||t.label===void 0?null:t.label?R.jsx(Q.NavExpandable,{buttonProps:{id:o},isActive:s,title:R.jsxs("div",{children:[R.jsx("div",{style:{textAlign:"left"},children:t.label}),t.subtitle&&R.jsx("div",{style:p,children:t.subtitle})]}),isExpanded:n,onExpand:(v,b)=>a(b),children:R.jsx(lI,{items:t.children,baseRoute:l})}):R.jsx(lI,{items:t.children,baseRoute:l})}const Sot=w.lazy(()=>Promise.resolve().then(()=>FNt)),Eot=()=>R.jsx(w.Suspense,{fallback:R.jsx("div",{children:"Loading..."}),children:R.jsx(Sot,{})});var sI=(e=>(e.Open="open",e.Closed="closed",e.Disabled="disabled",e))(sI||{});const wot=w.createContext({chatbotState:"disabled",setChatbotState:()=>{}}),Cot=()=>w.useContext(wot),kot=w.lazy(()=>Promise.resolve().then(()=>GNt)),Tot=()=>{const{t:e}=Hn();return R.jsx(w.Suspense,{fallback:R.jsx("span",{children:e("Loading...")}),children:R.jsx(kot,{})})},Rot=On(Q.DrawerContentBody)`
|
521
521
|
max-height: 100%;
|
522
|
-
`,Rot=e=>{const{chatbotState:t,setChatbotState:n}=wot(),r=w.useRef(null),a=()=>{r.current!==null&&r.current.focus()},o=()=>{n(lI.Closed)},i=R.jsxs(Q.DrawerPanelContent,{isResizable:!0,children:[R.jsxs(Q.DrawerHead,{children:[R.jsx(Q.Flex,{children:R.jsx(Q.FlexItem,{style:{display:"flex",alignItems:"center"},children:R.jsx("span",{tabIndex:t===lI.Open?0:-1,ref:r,children:R.jsx(kot,{})})})}),R.jsx(Q.DrawerActions,{children:R.jsx(Q.DrawerCloseButton,{onClick:o})})]}),R.jsx(Q.DrawerPanelBody,{style:{padding:"0px 0px 0px 0px"},children:R.jsx(Sot,{})})]});return R.jsx(Q.Drawer,{isExpanded:t===lI.Open,onExpand:a,isInline:!0,children:R.jsx(Q.DrawerContent,{panelContent:i,children:R.jsx(Tot,{children:e.children})})})};function Nge(e){const{navigation:t}=e,n=oI();return R.jsx(Q.PageSidebar,{isSidebarOpen:n.isOpen,className:"bg-lighten",children:R.jsxs(Q.PageSidebarBody,{children:[e.contextSwitcher,R.jsx(Q.Nav,{"data-cy":"page-navigation",className:"side-nav",children:R.jsx(Q.NavList,{children:R.jsx(sI,{baseRoute:e.basename??"",items:t})})})]})})}function sI(e){return R.jsx(R.Fragment,{children:e.items.filter(t=>"hidden"in t?t.hidden!==!0:!0).map((t,n)=>R.jsx(Oot,{item:t,baseRoute:e.baseRoute},t.id??t.label??n))})}function Oot(e){var f,g;const{item:t}=e,[n,r]=w.useState(()=>localStorage.getItem("default-nav-expanded")==="true"||localStorage.getItem((t.id??t.label)+"-expanded")==="true"),a=v=>{r(v),localStorage.setItem((t.id??t.label)+"-expanded",v?"true":"false")};let o;if("id"in e.item)o=e.item.id;else if("children"in e.item){const v=e.item.children.find(b=>b.path==="");v&&"id"in v&&(o=v.id)}o||(o=(f=e.item.label)==null?void 0:f.split(" ").join("-").toLowerCase());const i=kge();let l=e.baseRoute+"/"+t.path;l=l.replace("//","/");const s=!!ga.useMatch(l+"/*");if(t.path==="/"&&"children"in t)return R.jsx(sI,{items:t.children,baseRoute:""});const c="children"in t&&((g=t.children)==null?void 0:g.find(v=>v.label)),p={fontSize:"small",opacity:.5,textAlign:"left"};return!c&&"label"in t?R.jsxs(Q.NavItem,{id:o,href:t.href||l,isActive:s,className:s?"bg-lighten":void 0,onClick:()=>t.href?window.open(t.href,"_blank"):i(l),target:t.href?"_blank":"","data-cy":o,style:{display:"flex",alignItems:"stretch",flexDirection:"column"},children:[R.jsxs(Q.Flex,{flexWrap:{default:"nowrap"},children:[R.jsx(Q.FlexItem,{grow:{default:"grow"},children:t.label}),"badge"in t&&t.badge&&R.jsx(Q.FlexItem,{children:R.jsx(Q.Label,{isCompact:!0,variant:"outline",color:t.badgeColor,children:t.badge})}),"href"in t&&t.href&&R.jsx(Q.FlexItem,{children:R.jsx("span",{className:"pf-v5-c-nav__toggle",children:R.jsx("span",{className:"pf-v5-c-nav__toggle-icon",children:R.jsx(Ht.ExternalLinkAltIcon,{})})})})]}),t.subtitle&&R.jsx("div",{style:p,children:t.subtitle})]}):!c||t.label===void 0?null:t.label?R.jsx(Q.NavExpandable,{buttonProps:{id:o},isActive:s,title:R.jsxs("div",{children:[R.jsx("div",{style:{textAlign:"left"},children:t.label}),t.subtitle&&R.jsx("div",{style:p,children:t.subtitle})]}),isExpanded:n,onExpand:(v,b)=>a(b),children:R.jsx(sI,{items:t.children,baseRoute:l})}):R.jsx(sI,{items:t.children,baseRoute:l})}function Iot(e){const{navigation:t,masthead:n}=e,r=w.useMemo(()=>[{path:e.basename??"/",element:R.jsx(Q.Page,{header:n,sidebar:R.jsx(Nge,{navigation:t,basename:e.basename,contextSwitcher:e.contextSwitcher}),children:R.jsx(fot,{children:R.jsx(Rot,{children:R.jsxs("div",{style:{maxHeight:"100%",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},children:[e.banner,R.jsx("div",{style:{flexGrow:1,overflow:"hidden"},children:R.jsx(ga.Outlet,{})})]})})})}),children:t.filter(({href:i})=>!i)},{path:"*",element:R.jsx(Gpe,{})}],[n,t,e.banner,e.basename,e.contextSwitcher]),[a,o]=dot();return w.useEffect(()=>o(r),[r,o]),R.jsx(ga.Routes,{children:r.map(Age)})}function Age(e){var t;return R.jsx(ga.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(Age)},e.path)}function Not(e){return e.replace(/^\//,"")}function Pge(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=Pge(n.children,t);if(r)return r}}}function Dge(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const a=Dge(r.children,t);if(a)return a}}}function Mge(e,t,n){for(const r of e)if("id"in r&&r.id===t){const a=r;"children"in r||(a.children=[]),a.children.push(n);return}else"children"in r&&Mge(r.children,t,n)}function Lge(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r+1,0,n);return}else"children"in a&&Lge(a.children,t,n)}}function Bge(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r,0,n);return}else"children"in a&&Bge(a.children,t,n)}}function Fge(){const e=cot();return w.useCallback((t,n)=>{let r=e[t]??"";const a=n==null?void 0:n.params,o=n==null?void 0:n.query;return r&&(a&&(r=Object.keys(a).reduce((i,l)=>{let s=a[l];if(s==null)return i;s=encodeURIComponent(s.toString());const c=":"+l,p=new RegExp(c+"(?!.*"+c+")","g");return i.replace(p,s)},r)),o&&(r=`${r}?${Object.keys(o).map(i=>{let l=o[i];return l===void 0?"":(l=encodeURIComponent(l.toString()),`${i}=${l}`)}).join("&").replace("/&&/g","&")}`)),r},[e])}function Aot(){const e=ga.useNavigate(),t=Fge();return w.useCallback((n,r)=>{const a=t(n,r);a&&e(a)},[e,t])}function Pot(e){const{loading:t}=e,[n,r]=w.useState((e==null?void 0:e.initialTabIndex)??0),a=w.useCallback((s,c)=>r(c),[r]),o=w.Children.toArray(e.children),i=o.map((s,c)=>{if(w.isValidElement(s)&&s.type===NU){const p=s.props.label;return R.jsx(Q.Tab,{title:p||R.jsx(Q.Skeleton,{width:"60px"}),eventKey:c},p??c)}return s}),l=o[n];return t?R.jsx(Q.Tabs,{style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:R.jsx(NU,{children:R.jsx(Q.PageSection,{variant:"light",children:R.jsx(Q.Skeleton,{})})})}):R.jsxs(R.Fragment,{children:[R.jsx(Q.Tabs,{activeKey:n,onSelect:a,inset:{default:"insetSm"},isBox:!0,style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:i}),l]})}function NU(e){return R.jsx(R.Fragment,{children:e.children})}function Dot(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(i.map(l=>t(l)))},o?o.map(i=>n(i)):[])}}function Mot(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(t(i))},o?n(o):void 0)}}function Lot(){const[e,t]=w.useState(!0);return w.useEffect(()=>()=>{t(!1)},[]),e}function Bot(){const e=w.useRef({isMounted:!0});return w.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function jge(){const e=Lot(),[t,n]=w.useState(e?window.location:void 0),r=w.useCallback(()=>{n(window.location)},[]);w.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const a=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]),o=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]);return{location:t,push:a,update:o}}function Uge(){var a,o;const e=jge(),t=((a=e.location)==null?void 0:a.pathname)||"/",n=w.useMemo(()=>{var l;let i=(l=e.location)==null?void 0:l.search;return i&&i.includes("?specPath=")?i=i.substring(0,i.indexOf("?specPath=")):i&&i.includes("&specPath=")&&(i=i.substring(0,i.indexOf("&specPath="))),new URLSearchParams(i??"/")},[(o=e.location)==null?void 0:o.search]),r=w.useCallback(i=>{const l=i.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}const zge=w.createContext({});function eh(){return w.useContext(zge)}function Fot(e,t){return!e.hidden||!e.hidden(t)?e:null}function tf(e){return(e==null?void 0:e.substeps)!==void 0}function jot(e){const{steps:t,onSubmit:n}=e,[r,a]=w.useState(!1),[o,i]=w.useState(null),[l,s]=w.useState({}),[c,p]=w.useState(e.stepDefaults??{}),[f,g]=w.useState({}),[v,b]=w.useState(),[y,x]=w.useState(!1),[E,C]=Uge(),O=w.useMemo(()=>Uot(t),[t]);w.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const L in e.stepDefaults)t.find(F=>F.id===L)||console.warn(`PageWizardProvider: defaultValue key '${L}' not found in steps.`)},[e.stepDefaults,t]),w.useEffect(()=>{const L=cI(t,l);o||!L.length||(L[0].substeps?i(L[0].substeps[0]):i(L[0]))},[o,t,l]);const N=w.useCallback(async(L={})=>{var U;const F=Gge(t,{...l,...L});if(o===null)return Promise.resolve();if(!tf(o)&&o.validate&&await o.validate(L,l),(o==null?void 0:o.id)===((U=F[F.length-1])==null?void 0:U.id)){x(!0);try{await n(l)}catch(H){b(H instanceof Error?H:new Error(DE("An error occurred.")))}finally{x(!1)}return}const j=F.findIndex(H=>H.id===(o==null?void 0:o.id)),B=tf(F[j+1])?F[j+2]:F[j+1];return C(new URLSearchParams("")),s(H=>({...H,...L})),p(H=>({...H,[o==null?void 0:o.id]:L})),i(B),Promise.resolve()},[o,t,n,C,l,b]),I=w.useCallback(()=>{const L=cI(O,l),F=L.findIndex(j=>j.id===(o==null?void 0:o.id)),W=tf(L[F-1])?L[F-2]:L[F-1];C(new URLSearchParams("")),i(W)},[o==null?void 0:o.id,O,C,l]),P=w.useMemo(()=>({wizardData:l,setWizardData:s,stepData:c,setStepData:p,steps:e.steps,visibleSteps:cI(t,l),visibleStepsFlattened:Gge(t,l),activeStep:o,setActiveStep:i,stepError:f,setStepError:g,submitError:v,setSubmitError:b,isToggleExpanded:r,setToggleExpanded:a,onNext:N,onBack:I,isSubmitting:y}),[l,s,c,p,e.steps,t,o,i,f,g,v,b,r,a,N,I,y]);return R.jsx(zge.Provider,{value:P,children:e.children})}function Uot(e){return e.reduce((t,n)=>(t.push(n),tf(n)&&t.push(...n.substeps),t),[])}function cI(e,t){return e.filter(n=>Fot(n,t))}function Gge(e,t){return cI(e,t).reduce((r,a)=>(r.push(a),tf(a)&&r.push(...a.substeps),r),[])}function qge(e){const{t}=Hn(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:a}=eh(),o=(n==null?void 0:n.id)===r[r.length-1].id,i=t(o?"Finish":"Next"),l=tf(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,s=l?"pf-v5-c-button pf-m-disabled":"pf-v5-c-button pf-m-secondary";return R.jsxs("footer",{className:"pf-v5-c-wizard__footer border-top bg-lighten","data-cy":"wizard-footer",children:[n!==null&&"inputs"in n?R.jsx(Vj,{style:{minWidth:10},children:i}):R.jsx("button",{"data-cy":"wizard-next",className:"pf-v5-c-button pf-m-primary",type:"submit",onClick:()=>{var c;a(void 0),(c=e.onNext)==null||c.call(e)},children:i}),R.jsx("button",{type:"button","data-cy":"wizard-back",className:s,disabled:l,onClick:()=>{var c;a(void 0),(c=e.onBack)==null||c.call(e)},children:t("Back")}),R.jsx("div",{"data-cy":"wizard-cancel",className:"pf-v5-c-wizard__footer-cancel",children:R.jsx("button",{className:"pf-v5-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})]})}function zot({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:a}){const o=ga.useNavigate(),{activeStep:i,stepData:l,onNext:s,onBack:c,submitError:p,isSubmitting:f}=eh(),g=w.useCallback(()=>{e?e():o(-1)},[o,e]);return f?R.jsx(Q.Bullseye,{children:R.jsx(Q.Spinner,{})}):R.jsxs(Oge,{children:[R.jsx(qot,{error:p}),i!==null&&("inputs"in i?R.jsxs(bfe,{onSubmit:s,footer:R.jsx(qge,{onBack:c,onCancel:g}),defaultValue:l[i.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:a,isWizard:!0,children:[R.jsx(Got,{}),i.inputs]},i.id):R.jsxs("div",{"data-cy":`wizard-section-${i.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[R.jsx(Q.PageSection,{"aria-label":DE("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,variant:"light",children:i==null?void 0:i.element}),R.jsx(qge,{onNext:()=>void s({}),onBack:c,onCancel:g})]}))]})}function Got(){const{activeStep:e,setStepError:t}=eh(),{errors:n}=jj(),r=JSON.stringify(n);return w.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function qot(e){const{t}=Hn(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?R.jsx(Q.Alert,{variant:"danger",title:e.error}):R.jsx(Q.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return R.jsx(Q.Alert,{variant:"danger",title:e.error.message});if(n.json)return R.jsx(Q.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,a)=>R.jsx("div",{children:r},a))})}const nf={wizardClose:"pf-v5-c-wizard__close",wizardHeader:"pf-v5-c-wizard__header",wizardTitle:"pf-v5-c-wizard__title",wizardTitleText:"pf-v5-c-wizard__title-text",wizardToggle:"pf-v5-c-wizard__toggle",wizardToggleIcon:"pf-v5-c-wizard__toggle-icon",wizardToggleList:"pf-v5-c-wizard__toggle-list",wizardToggleListItem:"pf-v5-c-wizard__toggle-list-item",wizardToggleNum:"pf-v5-c-wizard__toggle-num"};function Iu(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=Iu(...r);o&&t.push(o)}else if(a==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}const Hot=On.div`
|
522
|
+
`,Oot=e=>{const{chatbotState:t,setChatbotState:n}=Cot(),r=w.useRef(null),a=()=>{r.current!==null&&r.current.focus()},o=()=>{n(sI.Closed)},i=R.jsxs(Q.DrawerPanelContent,{isResizable:!0,children:[R.jsxs(Q.DrawerHead,{children:[R.jsx(Q.Flex,{children:R.jsx(Q.FlexItem,{style:{display:"flex",alignItems:"center"},children:R.jsx("span",{tabIndex:t===sI.Open?0:-1,ref:r,children:R.jsx(Tot,{})})})}),R.jsx(Q.DrawerActions,{children:R.jsx(Q.DrawerCloseButton,{onClick:o})})]}),R.jsx(Q.DrawerPanelBody,{style:{padding:"0px 0px 0px 0px"},children:R.jsx(Eot,{})})]});return R.jsx(Q.Drawer,{isExpanded:t===sI.Open,onExpand:a,isInline:!0,children:R.jsx(Q.DrawerContent,{panelContent:i,children:R.jsx(Rot,{children:e.children})})})};function Iot(e){const{navigation:t,masthead:n}=e,r=w.useMemo(()=>[{path:e.basename??"/",element:R.jsx(Q.Page,{header:n,sidebar:R.jsx(Nge,{navigation:t,basename:e.basename,contextSwitcher:e.contextSwitcher}),children:R.jsx(fot,{children:R.jsx(Oot,{children:R.jsxs("div",{style:{maxHeight:"100%",overflow:"hidden",height:"100%",display:"flex",flexDirection:"column"},children:[e.banner,R.jsx("div",{style:{flexGrow:1,overflow:"hidden"},children:R.jsx(ga.Outlet,{})})]})})})}),children:t.filter(({href:i})=>!i)},{path:"*",element:R.jsx(Gpe,{})}],[n,t,e.banner,e.basename,e.contextSwitcher]),[a,o]=dot();return w.useEffect(()=>o(r),[r,o]),R.jsx(ga.Routes,{children:r.map(Age)})}function Age(e){var t;return R.jsx(ga.Route,{path:e.path,element:e.element,children:(t=e.children)==null?void 0:t.map(Age)},e.path)}function Not(e){return e.replace(/^\//,"")}function Pge(e,t){for(const n of e){if("id"in n&&n.id===t)return n;if("children"in n){const r=Pge(n.children,t);if(r)return r}}}function Dge(e,t){for(let n=0;n<e.length;n++){const r=e[n];if("id"in r&&r.id===t)return e.splice(n,1),r;if("children"in r){const a=Dge(r.children,t);if(a)return a}}}function Mge(e,t,n){for(const r of e)if("id"in r&&r.id===t){const a=r;"children"in r||(a.children=[]),a.children.push(n);return}else"children"in r&&Mge(r.children,t,n)}function Lge(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r+1,0,n);return}else"children"in a&&Lge(a.children,t,n)}}function Bge(e,t,n){for(let r=0;r<e.length;r++){const a=e[r];if("id"in a&&a.id===t){e.splice(r,0,n);return}else"children"in a&&Bge(a.children,t,n)}}function Fge(){const e=cot();return w.useCallback((t,n)=>{let r=e[t]??"";const a=n==null?void 0:n.params,o=n==null?void 0:n.query;return r&&(a&&(r=Object.keys(a).reduce((i,l)=>{let s=a[l];if(s==null)return i;s=encodeURIComponent(s.toString());const c=":"+l,p=new RegExp(c+"(?!.*"+c+")","g");return i.replace(p,s)},r)),o&&(r=`${r}?${Object.keys(o).map(i=>{let l=o[i];return l===void 0?"":(l=encodeURIComponent(l.toString()),`${i}=${l}`)}).join("&").replace("/&&/g","&")}`)),r},[e])}function Aot(){const e=ga.useNavigate(),t=Fge();return w.useCallback((n,r)=>{const a=t(n,r);a&&e(a)},[e,t])}function Pot(e){const{loading:t}=e,[n,r]=w.useState((e==null?void 0:e.initialTabIndex)??0),a=w.useCallback((s,c)=>r(c),[r]),o=w.Children.toArray(e.children),i=o.map((s,c)=>{if(w.isValidElement(s)&&s.type===NU){const p=s.props.label;return R.jsx(Q.Tab,{title:p||R.jsx(Q.Skeleton,{width:"60px"}),eventKey:c},p??c)}return s}),l=o[n];return t?R.jsx(Q.Tabs,{style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:R.jsx(NU,{children:R.jsx(Q.PageSection,{variant:"light",children:R.jsx(Q.Skeleton,{})})})}):R.jsxs(R.Fragment,{children:[R.jsx(Q.Tabs,{activeKey:n,onSelect:a,inset:{default:"insetSm"},isBox:!0,style:{flexShrink:0,backgroundColor:"var(--pf-v5-c-tabs__link--BackgroundColor)"},children:i}),l]})}function NU(e){return R.jsx(R.Fragment,{children:e.children})}function Dot(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(i.map(l=>t(l)))},o?o.map(i=>n(i)):[])}}function Mot(e,t,n,r){return(a,o)=>{e(i=>{r?r(i):a(t(i))},o?n(o):void 0)}}function Lot(){const[e,t]=w.useState(!0);return w.useEffect(()=>()=>{t(!1)},[]),e}function Bot(){const e=w.useRef({isMounted:!0});return w.useEffect(()=>()=>{e.current.isMounted=!1},[]),e}function jge(){const e=Lot(),[t,n]=w.useState(e?window.location:void 0),r=w.useCallback(()=>{n(window.location)},[]);w.useEffect(()=>{if(e)return t||r(),window.addEventListener("popstate",r),()=>{window.removeEventListener("popstate",r)}},[e,t,r]);const a=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]),o=w.useCallback(i=>{window.history.replaceState(null,"",i),r()},[r]);return{location:t,push:a,update:o}}function Uge(){var a,o;const e=jge(),t=((a=e.location)==null?void 0:a.pathname)||"/",n=w.useMemo(()=>{var l;let i=(l=e.location)==null?void 0:l.search;return i&&i.includes("?specPath=")?i=i.substring(0,i.indexOf("?specPath=")):i&&i.includes("&specPath=")&&(i=i.substring(0,i.indexOf("&specPath="))),new URLSearchParams(i??"/")},[(o=e.location)==null?void 0:o.search]),r=w.useCallback(i=>{const l=i.toString();l?e.update("?"+l):e.update(t)},[e,t]);return[n,r]}const zge=w.createContext({});function eh(){return w.useContext(zge)}function Fot(e,t){return!e.hidden||!e.hidden(t)?e:null}function tf(e){return(e==null?void 0:e.substeps)!==void 0}function jot(e){const{steps:t,onSubmit:n}=e,[r,a]=w.useState(!1),[o,i]=w.useState(null),[l,s]=w.useState({}),[c,p]=w.useState(e.stepDefaults??{}),[f,g]=w.useState({}),[v,b]=w.useState(),[y,x]=w.useState(!1),[E,C]=Uge(),O=w.useMemo(()=>Uot(t),[t]);w.useEffect(()=>{if(process.env.NODE_ENV==="development")for(const L in e.stepDefaults)t.find(F=>F.id===L)||console.warn(`PageWizardProvider: defaultValue key '${L}' not found in steps.`)},[e.stepDefaults,t]),w.useEffect(()=>{const L=cI(t,l);o||!L.length||(L[0].substeps?i(L[0].substeps[0]):i(L[0]))},[o,t,l]);const N=w.useCallback(async(L={})=>{var U;const F=Gge(t,{...l,...L});if(o===null)return Promise.resolve();if(!tf(o)&&o.validate&&await o.validate(L,l),(o==null?void 0:o.id)===((U=F[F.length-1])==null?void 0:U.id)){x(!0);try{await n(l)}catch(H){b(H instanceof Error?H:new Error(DE("An error occurred.")))}finally{x(!1)}return}const j=F.findIndex(H=>H.id===(o==null?void 0:o.id)),B=tf(F[j+1])?F[j+2]:F[j+1];return C(new URLSearchParams("")),s(H=>({...H,...L})),p(H=>({...H,[o==null?void 0:o.id]:L})),i(B),Promise.resolve()},[o,t,n,C,l,b]),I=w.useCallback(()=>{const L=cI(O,l),F=L.findIndex(j=>j.id===(o==null?void 0:o.id)),W=tf(L[F-1])?L[F-2]:L[F-1];C(new URLSearchParams("")),i(W)},[o==null?void 0:o.id,O,C,l]),P=w.useMemo(()=>({wizardData:l,setWizardData:s,stepData:c,setStepData:p,steps:e.steps,visibleSteps:cI(t,l),visibleStepsFlattened:Gge(t,l),activeStep:o,setActiveStep:i,stepError:f,setStepError:g,submitError:v,setSubmitError:b,isToggleExpanded:r,setToggleExpanded:a,onNext:N,onBack:I,isSubmitting:y}),[l,s,c,p,e.steps,t,o,i,f,g,v,b,r,a,N,I,y]);return R.jsx(zge.Provider,{value:P,children:e.children})}function Uot(e){return e.reduce((t,n)=>(t.push(n),tf(n)&&t.push(...n.substeps),t),[])}function cI(e,t){return e.filter(n=>Fot(n,t))}function Gge(e,t){return cI(e,t).reduce((r,a)=>(r.push(a),tf(a)&&r.push(...a.substeps),r),[])}function qge(e){const{t}=Hn(),{activeStep:n,visibleStepsFlattened:r,setSubmitError:a}=eh(),o=(n==null?void 0:n.id)===r[r.length-1].id,i=t(o?"Finish":"Next"),l=tf(r[0])?(n==null?void 0:n.id)===r[1].id:(n==null?void 0:n.id)===r[0].id,s=l?"pf-v5-c-button pf-m-disabled":"pf-v5-c-button pf-m-secondary";return R.jsxs("footer",{className:"pf-v5-c-wizard__footer border-top bg-lighten","data-cy":"wizard-footer",children:[n!==null&&"inputs"in n?R.jsx(Vj,{style:{minWidth:10},children:i}):R.jsx("button",{"data-cy":"wizard-next",className:"pf-v5-c-button pf-m-primary",type:"submit",onClick:()=>{var c;a(void 0),(c=e.onNext)==null||c.call(e)},children:i}),R.jsx("button",{type:"button","data-cy":"wizard-back",className:s,disabled:l,onClick:()=>{var c;a(void 0),(c=e.onBack)==null||c.call(e)},children:t("Back")}),R.jsx("div",{"data-cy":"wizard-cancel",className:"pf-v5-c-wizard__footer-cancel",children:R.jsx("button",{className:"pf-v5-c-button pf-m-link",type:"button",onClick:e.onCancel,children:t("Cancel")})})]})}function zot({onCancel:e,disableGrid:t,errorAdapter:n,isVertical:r,singleColumn:a}){const o=ga.useNavigate(),{activeStep:i,stepData:l,onNext:s,onBack:c,submitError:p,isSubmitting:f}=eh(),g=w.useCallback(()=>{e?e():o(-1)},[o,e]);return f?R.jsx(Q.Bullseye,{children:R.jsx(Q.Spinner,{})}):R.jsxs(Oge,{children:[R.jsx(qot,{error:p}),i!==null&&("inputs"in i?R.jsxs(bfe,{onSubmit:s,footer:R.jsx(qge,{onBack:c,onCancel:g}),defaultValue:l[i.id],errorAdapter:n,disableGrid:t,isVertical:r,singleColumn:a,isWizard:!0,children:[R.jsx(Got,{}),i.inputs]},i.id):R.jsxs("div",{"data-cy":`wizard-section-${i.id}`,style:{display:"flex",flexDirection:"column",flexGrow:1,overflow:"hidden"},children:[R.jsx(Q.PageSection,{"aria-label":DE("Wizard step content"),hasOverflowScroll:!0,isFilled:!0,variant:"light",children:i==null?void 0:i.element}),R.jsx(qge,{onNext:()=>void s({}),onBack:c,onCancel:g})]}))]})}function Got(){const{activeStep:e,setStepError:t}=eh(),{errors:n}=jj(),r=JSON.stringify(n);return w.useEffect(()=>{Object.keys(n).length===0?t({}):e&&t({[e.id]:n})},[n,e,t,r]),null}function qot(e){const{t}=Hn(),n=e.error;if(!e.error)return null;if(!(e.error instanceof Error))return typeof e.error=="string"?R.jsx(Q.Alert,{variant:"danger",title:e.error}):R.jsx(Q.Alert,{variant:"danger",title:t("An error occurred.")});if("message"in e.error&&!n.json)return R.jsx(Q.Alert,{variant:"danger",title:e.error.message});if(n.json)return R.jsx(Q.Alert,{variant:"danger",title:n.message,isInline:!0,children:Object.values(n.json).map((r,a)=>R.jsx("div",{children:r},a))})}const nf={wizardClose:"pf-v5-c-wizard__close",wizardHeader:"pf-v5-c-wizard__header",wizardTitle:"pf-v5-c-wizard__title",wizardTitleText:"pf-v5-c-wizard__title-text",wizardToggle:"pf-v5-c-wizard__toggle",wizardToggleIcon:"pf-v5-c-wizard__toggle-icon",wizardToggleList:"pf-v5-c-wizard__toggle-list",wizardToggleListItem:"pf-v5-c-wizard__toggle-list-item",wizardToggleNum:"pf-v5-c-wizard__toggle-num"};function Iu(...e){const t=[],n={}.hasOwnProperty;return e.filter(Boolean).forEach(r=>{const a=typeof r;if(a==="string"||a==="number")t.push(r);else if(Array.isArray(r)&&r.length){const o=Iu(...r);o&&t.push(o)}else if(a==="object")for(const o in r)n.call(r,o)&&r[o]&&t.push(o)}),t.join(" ")}const Hot=On.div`
|
523
523
|
background-color: var(--pf-v5-global--BackgroundColor--light-100);
|
524
524
|
color: var(--pf-v5-global--Color--dark-100);
|
525
525
|
|
package/package.json
CHANGED
@@ -129,7 +129,7 @@ declare function Vue(): any;
|
|
129
129
|
declare function ufe(): any;
|
130
130
|
declare function dfe(): any;
|
131
131
|
declare function ffe(e: any): any;
|
132
|
-
declare function
|
132
|
+
declare function Uue(e: any): any;
|
133
133
|
declare function hfe(e: any): any;
|
134
134
|
declare function tde(e: any, t: any): any;
|
135
135
|
declare function nde(e: any, t: any): any;
|
@@ -344,4 +344,4 @@ declare function Nde(e: any): any;
|
|
344
344
|
declare function $de(e: any): any;
|
345
345
|
declare function YN(e: any): any;
|
346
346
|
import * as q from "react";
|
347
|
-
export { Jde as $, KN as A, LI as B, d5 as C, qde as D, zde as E, Xy as F, FA as G, gx as H, Wde as I, kx as J, Bre as K, Mde as L, Vde as M, Ude as N, Hde as O, Xd as P, Gre as Q, V4 as R, mr as S, ZN as T, Gde as U, pl as V, Gie as W, aae as X, ioe as Y, aoe as Z, Xde as _, Ek as a, w1 as a$, Aae as a0, jae as a1, ca as a2, Qde as a3, hoe as a4, goe as a5, efe as a6, tfe as a7, nfe as a8, rfe as a9, ide as aA, ade as aB, oR as aC, q1 as aD, Mue as aE, Rue as aF, ode as aG, gfe as aH, _s as aI, UN as aJ, Kf as aK, qae as aL, Gae as aM, Yae as aN, Kae as aO, Zae as aP, HE as aQ, ma as aR, Kie as aS, Zie as aT, Xie as aU, Jie as aV, $v as aW, tn as aX, EP as aY, Qie as aZ, eae as a_, Due as aa, Pue as ab, Li as ac, ti as ad, ife as ae, afe as af, ofe as ag, sfe as ah, tM as ai, Roe as aj, Loe as ak, eM as al, Doe as am, lfe as an, Y4 as ao, Bue as ap, cfe as aq, Vue as ar, ufe as as, dfe as at, ffe as au,
|
347
|
+
export { Jde as $, KN as A, LI as B, d5 as C, qde as D, zde as E, Xy as F, FA as G, gx as H, Wde as I, kx as J, Bre as K, Mde as L, Vde as M, Ude as N, Hde as O, Xd as P, Gre as Q, V4 as R, mr as S, ZN as T, Gde as U, pl as V, Gie as W, aae as X, ioe as Y, aoe as Z, Xde as _, Ek as a, w1 as a$, Aae as a0, jae as a1, ca as a2, Qde as a3, hoe as a4, goe as a5, efe as a6, tfe as a7, nfe as a8, rfe as a9, ide as aA, ade as aB, oR as aC, q1 as aD, Mue as aE, Rue as aF, ode as aG, gfe as aH, _s as aI, UN as aJ, Kf as aK, qae as aL, Gae as aM, Yae as aN, Kae as aO, Zae as aP, HE as aQ, ma as aR, Kie as aS, Zie as aT, Xie as aU, Jie as aV, $v as aW, tn as aX, EP as aY, Qie as aZ, eae as a_, Due as aa, Pue as ab, Li as ac, ti as ad, ife as ae, afe as af, ofe as ag, sfe as ah, tM as ai, Roe as aj, Loe as ak, eM as al, Doe as am, lfe as an, Y4 as ao, Bue as ap, cfe as aq, Vue as ar, ufe as as, dfe as at, ffe as au, Uue as av, hfe as aw, tde as ax, nde as ay, rde as az, Z4 as b, Yde as b0, Kde as b1, tae as b2, nae as b3, rae as b4, iae as b5, Zde as b6, DP as b7, Dae as b8, PP as b9, MP as ba, Yf as bb, pfe as bc, rT as bd, Eae as be, AP as bf, xae as bg, mfe as bh, yfe as bi, cl as bj, mae as bk, yae as bl, vae as bm, iy as bn, vfe as bo, kI as bp, St as bq, xfe as br, bde as bs, ooe as bt, xu as bu, soe as bv, bfe as bw, _de as bx, wde as by, Ok as c, De as d, Tk as e, Rde as f, Go as g, Lde as h, X4 as i, g as j, RI as k, fn as l, Pde as m, nt as n, Ue as o, Ck as p, Oi as q, jk as r, mx as s, hF as t, ws as u, Ide as v, Fde as w, Nde as x, $de as y, YN as z };
|
package/publish/index.d.ts
CHANGED
@@ -1,152 +1,152 @@
|
|
1
|
-
import { Y as s } from "./index-
|
2
|
-
import { B as o } from "./index-
|
3
|
-
import { x as t } from "./index-
|
4
|
-
import { C as r } from "./index-
|
5
|
-
import { aT as l } from "./index-
|
6
|
-
import { aV as i } from "./index-
|
7
|
-
import { aS as n } from "./index-
|
8
|
-
import { aU as g } from "./index-
|
9
|
-
import { aW as u } from "./index-
|
10
|
-
import { aR as b } from "./index-
|
11
|
-
import { aN as P } from "./index-
|
12
|
-
import { y as d } from "./index-
|
13
|
-
import { ab as m } from "./index-
|
14
|
-
import { aa as C } from "./index-
|
15
|
-
import { D as c } from "./index-
|
16
|
-
import { bl as T } from "./index-
|
17
|
-
import { bj as D } from "./index-
|
18
|
-
import { z as p } from "./index-
|
19
|
-
import { E as S } from "./index-
|
20
|
-
import { bp as h } from "./index-
|
21
|
-
import { a7 as F } from "./index-
|
22
|
-
import { H as v } from "./index-
|
23
|
-
import { i as B } from "./index-
|
24
|
-
import { A as f } from "./index-
|
25
|
-
import { L as A } from "./index-
|
26
|
-
import { $ as I } from "./index-
|
27
|
-
import { P as N } from "./index-
|
28
|
-
import { o as x } from "./index-
|
29
|
-
import { n as y } from "./index-
|
30
|
-
import { q as k } from "./index-
|
31
|
-
import { r as w } from "./index-
|
32
|
-
import { t as E } from "./index-
|
33
|
-
import { au as O } from "./index-
|
34
|
-
import { w as L } from "./index-
|
35
|
-
import { F as M } from "./index-
|
36
|
-
import { I as V } from "./index-
|
37
|
-
import { J as R } from "./index-
|
38
|
-
import { M as W } from "./index-
|
39
|
-
import { K as j } from "./index-
|
40
|
-
import { G } from "./index-
|
41
|
-
import { N as U } from "./index-
|
42
|
-
import { U as z } from "./index-
|
43
|
-
import { O as H } from "./index-
|
44
|
-
import { V as q } from "./index-
|
45
|
-
import { aM as Q } from "./index-
|
46
|
-
import { W as J } from "./index-
|
47
|
-
import { X as K } from "./index-
|
48
|
-
import { a0 as X } from "./index-
|
49
|
-
import { Q as Y } from "./index-
|
50
|
-
import { aj as Z } from "./index-
|
51
|
-
import { am as _ } from "./index-
|
52
|
-
import { a8 as $ } from "./index-
|
53
|
-
import { a9 as aa } from "./index-
|
54
|
-
import { ak as ea } from "./index-
|
55
|
-
import { ae as sa } from "./index-
|
56
|
-
import { al as oa } from "./index-
|
57
|
-
import { af as ta } from "./index-
|
58
|
-
import { ag as ra } from "./index-
|
59
|
-
import { ah as la } from "./index-
|
60
|
-
import { an as ia } from "./index-
|
61
|
-
import { ao as na } from "./index-
|
62
|
-
import { ap as ga } from "./index-
|
63
|
-
import { aq as ua } from "./index-
|
64
|
-
import { ar as ba } from "./index-
|
65
|
-
import { aC as Pa } from "./index-
|
66
|
-
import { aE as da } from "./index-
|
67
|
-
import { av as ma } from "./index-
|
68
|
-
import { a5 as Ca } from "./index-
|
69
|
-
import { a6 as ca } from "./index-
|
70
|
-
import { as as Ta } from "./index-
|
71
|
-
import { aI as Da } from "./index-
|
72
|
-
import { aJ as pa } from "./index-
|
73
|
-
import { bd as Sa } from "./index-
|
74
|
-
import { aK as ha } from "./index-
|
75
|
-
import { aO as Fa } from "./index-
|
76
|
-
import { aQ as va } from "./index-
|
77
|
-
import { bc as Ba } from "./index-
|
78
|
-
import { at as fa } from "./index-
|
79
|
-
import { be as Aa } from "./index-
|
80
|
-
import { bg as Ia } from "./index-
|
81
|
-
import { bo as Na } from "./index-
|
82
|
-
import { R as xa } from "./index-
|
83
|
-
import { S as ya } from "./index-
|
84
|
-
import { a4 as ka } from "./index-
|
85
|
-
import { aL as wa } from "./index-
|
86
|
-
import { aX as Ea } from "./index-
|
87
|
-
import { T as Oa } from "./index-
|
88
|
-
import { bk as La } from "./index-
|
89
|
-
import { bf as Ma } from "./index-
|
90
|
-
import { bn as Va } from "./index-
|
91
|
-
import { bm as Ra } from "./index-
|
92
|
-
import { az as Wa } from "./index-
|
93
|
-
import { aA as ja } from "./index-
|
94
|
-
import { aB as Ga } from "./index-
|
95
|
-
import { bw as Ua } from "./index-
|
96
|
-
import { bv as za } from "./index-
|
97
|
-
import { bu as Ha } from "./index-
|
98
|
-
import { bt as qa } from "./index-
|
99
|
-
import { v as Qa } from "./index-
|
100
|
-
import { by as Ja } from "./index-
|
101
|
-
import { ax as Ka } from "./index-
|
102
|
-
import { g as Xa } from "./index-
|
103
|
-
import { bh as Ya } from "./index-
|
104
|
-
import { ad as Za } from "./index-
|
105
|
-
import { bx as _a } from "./index-
|
106
|
-
import { a as $a } from "./index-
|
107
|
-
import { e as ae } from "./index-
|
108
|
-
import { c as ee } from "./index-
|
109
|
-
import { f as se } from "./index-
|
110
|
-
import { p as oe } from "./index-
|
111
|
-
import { h as te } from "./index-
|
112
|
-
import { b as re } from "./index-
|
113
|
-
import { aw as le } from "./index-
|
114
|
-
import { ay as ie } from "./index-
|
115
|
-
import { bi as ne } from "./index-
|
116
|
-
import { l as ge } from "./index-
|
117
|
-
import { Z as ue } from "./index-
|
118
|
-
import { _ as be } from "./index-
|
119
|
-
import { aP as Pe } from "./index-
|
120
|
-
import { b5 as de } from "./index-
|
121
|
-
import { b4 as me } from "./index-
|
122
|
-
import { b0 as Ce } from "./index-
|
123
|
-
import { b2 as ce } from "./index-
|
124
|
-
import { b3 as Te } from "./index-
|
125
|
-
import { ba as De } from "./index-
|
126
|
-
import { ai as pe } from "./index-
|
127
|
-
import { bq as Se } from "./index-
|
128
|
-
import { aG as he } from "./index-
|
129
|
-
import { br as Fe } from "./index-
|
130
|
-
import { m as ve } from "./index-
|
131
|
-
import { s as Be } from "./index-
|
132
|
-
import { a2 as fe } from "./index-
|
133
|
-
import { a1 as Ae } from "./index-
|
134
|
-
import { aF as Ie } from "./index-
|
135
|
-
import { aD as Ne } from "./index-
|
136
|
-
import { aH as xe } from "./index-
|
137
|
-
import { u as ye } from "./index-
|
138
|
-
import { bb as ke } from "./index-
|
139
|
-
import { a3 as we } from "./index-
|
140
|
-
import { b7 as Ee } from "./index-
|
141
|
-
import { b8 as Oe } from "./index-
|
142
|
-
import { b9 as Le } from "./index-
|
143
|
-
import { b6 as Me } from "./index-
|
144
|
-
import { bs as Ve } from "./index-
|
145
|
-
import { a_ as Re } from "./index-
|
146
|
-
import { b1 as We } from "./index-
|
147
|
-
import { aZ as je } from "./index-
|
148
|
-
import { a$ as Ge } from "./index-
|
149
|
-
import { aY as Ue } from "./index-
|
150
|
-
import { k as ze } from "./index-
|
151
|
-
import { ac as He } from "./index-
|
1
|
+
import { Y as s } from "./index-DgEyX64-.js";
|
2
|
+
import { B as o } from "./index-DgEyX64-.js";
|
3
|
+
import { x as t } from "./index-DgEyX64-.js";
|
4
|
+
import { C as r } from "./index-DgEyX64-.js";
|
5
|
+
import { aT as l } from "./index-DgEyX64-.js";
|
6
|
+
import { aV as i } from "./index-DgEyX64-.js";
|
7
|
+
import { aS as n } from "./index-DgEyX64-.js";
|
8
|
+
import { aU as g } from "./index-DgEyX64-.js";
|
9
|
+
import { aW as u } from "./index-DgEyX64-.js";
|
10
|
+
import { aR as b } from "./index-DgEyX64-.js";
|
11
|
+
import { aN as P } from "./index-DgEyX64-.js";
|
12
|
+
import { y as d } from "./index-DgEyX64-.js";
|
13
|
+
import { ab as m } from "./index-DgEyX64-.js";
|
14
|
+
import { aa as C } from "./index-DgEyX64-.js";
|
15
|
+
import { D as c } from "./index-DgEyX64-.js";
|
16
|
+
import { bl as T } from "./index-DgEyX64-.js";
|
17
|
+
import { bj as D } from "./index-DgEyX64-.js";
|
18
|
+
import { z as p } from "./index-DgEyX64-.js";
|
19
|
+
import { E as S } from "./index-DgEyX64-.js";
|
20
|
+
import { bp as h } from "./index-DgEyX64-.js";
|
21
|
+
import { a7 as F } from "./index-DgEyX64-.js";
|
22
|
+
import { H as v } from "./index-DgEyX64-.js";
|
23
|
+
import { i as B } from "./index-DgEyX64-.js";
|
24
|
+
import { A as f } from "./index-DgEyX64-.js";
|
25
|
+
import { L as A } from "./index-DgEyX64-.js";
|
26
|
+
import { $ as I } from "./index-DgEyX64-.js";
|
27
|
+
import { P as N } from "./index-DgEyX64-.js";
|
28
|
+
import { o as x } from "./index-DgEyX64-.js";
|
29
|
+
import { n as y } from "./index-DgEyX64-.js";
|
30
|
+
import { q as k } from "./index-DgEyX64-.js";
|
31
|
+
import { r as w } from "./index-DgEyX64-.js";
|
32
|
+
import { t as E } from "./index-DgEyX64-.js";
|
33
|
+
import { au as O } from "./index-DgEyX64-.js";
|
34
|
+
import { w as L } from "./index-DgEyX64-.js";
|
35
|
+
import { F as M } from "./index-DgEyX64-.js";
|
36
|
+
import { I as V } from "./index-DgEyX64-.js";
|
37
|
+
import { J as R } from "./index-DgEyX64-.js";
|
38
|
+
import { M as W } from "./index-DgEyX64-.js";
|
39
|
+
import { K as j } from "./index-DgEyX64-.js";
|
40
|
+
import { G } from "./index-DgEyX64-.js";
|
41
|
+
import { N as U } from "./index-DgEyX64-.js";
|
42
|
+
import { U as z } from "./index-DgEyX64-.js";
|
43
|
+
import { O as H } from "./index-DgEyX64-.js";
|
44
|
+
import { V as q } from "./index-DgEyX64-.js";
|
45
|
+
import { aM as Q } from "./index-DgEyX64-.js";
|
46
|
+
import { W as J } from "./index-DgEyX64-.js";
|
47
|
+
import { X as K } from "./index-DgEyX64-.js";
|
48
|
+
import { a0 as X } from "./index-DgEyX64-.js";
|
49
|
+
import { Q as Y } from "./index-DgEyX64-.js";
|
50
|
+
import { aj as Z } from "./index-DgEyX64-.js";
|
51
|
+
import { am as _ } from "./index-DgEyX64-.js";
|
52
|
+
import { a8 as $ } from "./index-DgEyX64-.js";
|
53
|
+
import { a9 as aa } from "./index-DgEyX64-.js";
|
54
|
+
import { ak as ea } from "./index-DgEyX64-.js";
|
55
|
+
import { ae as sa } from "./index-DgEyX64-.js";
|
56
|
+
import { al as oa } from "./index-DgEyX64-.js";
|
57
|
+
import { af as ta } from "./index-DgEyX64-.js";
|
58
|
+
import { ag as ra } from "./index-DgEyX64-.js";
|
59
|
+
import { ah as la } from "./index-DgEyX64-.js";
|
60
|
+
import { an as ia } from "./index-DgEyX64-.js";
|
61
|
+
import { ao as na } from "./index-DgEyX64-.js";
|
62
|
+
import { ap as ga } from "./index-DgEyX64-.js";
|
63
|
+
import { aq as ua } from "./index-DgEyX64-.js";
|
64
|
+
import { ar as ba } from "./index-DgEyX64-.js";
|
65
|
+
import { aC as Pa } from "./index-DgEyX64-.js";
|
66
|
+
import { aE as da } from "./index-DgEyX64-.js";
|
67
|
+
import { av as ma } from "./index-DgEyX64-.js";
|
68
|
+
import { a5 as Ca } from "./index-DgEyX64-.js";
|
69
|
+
import { a6 as ca } from "./index-DgEyX64-.js";
|
70
|
+
import { as as Ta } from "./index-DgEyX64-.js";
|
71
|
+
import { aI as Da } from "./index-DgEyX64-.js";
|
72
|
+
import { aJ as pa } from "./index-DgEyX64-.js";
|
73
|
+
import { bd as Sa } from "./index-DgEyX64-.js";
|
74
|
+
import { aK as ha } from "./index-DgEyX64-.js";
|
75
|
+
import { aO as Fa } from "./index-DgEyX64-.js";
|
76
|
+
import { aQ as va } from "./index-DgEyX64-.js";
|
77
|
+
import { bc as Ba } from "./index-DgEyX64-.js";
|
78
|
+
import { at as fa } from "./index-DgEyX64-.js";
|
79
|
+
import { be as Aa } from "./index-DgEyX64-.js";
|
80
|
+
import { bg as Ia } from "./index-DgEyX64-.js";
|
81
|
+
import { bo as Na } from "./index-DgEyX64-.js";
|
82
|
+
import { R as xa } from "./index-DgEyX64-.js";
|
83
|
+
import { S as ya } from "./index-DgEyX64-.js";
|
84
|
+
import { a4 as ka } from "./index-DgEyX64-.js";
|
85
|
+
import { aL as wa } from "./index-DgEyX64-.js";
|
86
|
+
import { aX as Ea } from "./index-DgEyX64-.js";
|
87
|
+
import { T as Oa } from "./index-DgEyX64-.js";
|
88
|
+
import { bk as La } from "./index-DgEyX64-.js";
|
89
|
+
import { bf as Ma } from "./index-DgEyX64-.js";
|
90
|
+
import { bn as Va } from "./index-DgEyX64-.js";
|
91
|
+
import { bm as Ra } from "./index-DgEyX64-.js";
|
92
|
+
import { az as Wa } from "./index-DgEyX64-.js";
|
93
|
+
import { aA as ja } from "./index-DgEyX64-.js";
|
94
|
+
import { aB as Ga } from "./index-DgEyX64-.js";
|
95
|
+
import { bw as Ua } from "./index-DgEyX64-.js";
|
96
|
+
import { bv as za } from "./index-DgEyX64-.js";
|
97
|
+
import { bu as Ha } from "./index-DgEyX64-.js";
|
98
|
+
import { bt as qa } from "./index-DgEyX64-.js";
|
99
|
+
import { v as Qa } from "./index-DgEyX64-.js";
|
100
|
+
import { by as Ja } from "./index-DgEyX64-.js";
|
101
|
+
import { ax as Ka } from "./index-DgEyX64-.js";
|
102
|
+
import { g as Xa } from "./index-DgEyX64-.js";
|
103
|
+
import { bh as Ya } from "./index-DgEyX64-.js";
|
104
|
+
import { ad as Za } from "./index-DgEyX64-.js";
|
105
|
+
import { bx as _a } from "./index-DgEyX64-.js";
|
106
|
+
import { a as $a } from "./index-DgEyX64-.js";
|
107
|
+
import { e as ae } from "./index-DgEyX64-.js";
|
108
|
+
import { c as ee } from "./index-DgEyX64-.js";
|
109
|
+
import { f as se } from "./index-DgEyX64-.js";
|
110
|
+
import { p as oe } from "./index-DgEyX64-.js";
|
111
|
+
import { h as te } from "./index-DgEyX64-.js";
|
112
|
+
import { b as re } from "./index-DgEyX64-.js";
|
113
|
+
import { aw as le } from "./index-DgEyX64-.js";
|
114
|
+
import { ay as ie } from "./index-DgEyX64-.js";
|
115
|
+
import { bi as ne } from "./index-DgEyX64-.js";
|
116
|
+
import { l as ge } from "./index-DgEyX64-.js";
|
117
|
+
import { Z as ue } from "./index-DgEyX64-.js";
|
118
|
+
import { _ as be } from "./index-DgEyX64-.js";
|
119
|
+
import { aP as Pe } from "./index-DgEyX64-.js";
|
120
|
+
import { b5 as de } from "./index-DgEyX64-.js";
|
121
|
+
import { b4 as me } from "./index-DgEyX64-.js";
|
122
|
+
import { b0 as Ce } from "./index-DgEyX64-.js";
|
123
|
+
import { b2 as ce } from "./index-DgEyX64-.js";
|
124
|
+
import { b3 as Te } from "./index-DgEyX64-.js";
|
125
|
+
import { ba as De } from "./index-DgEyX64-.js";
|
126
|
+
import { ai as pe } from "./index-DgEyX64-.js";
|
127
|
+
import { bq as Se } from "./index-DgEyX64-.js";
|
128
|
+
import { aG as he } from "./index-DgEyX64-.js";
|
129
|
+
import { br as Fe } from "./index-DgEyX64-.js";
|
130
|
+
import { m as ve } from "./index-DgEyX64-.js";
|
131
|
+
import { s as Be } from "./index-DgEyX64-.js";
|
132
|
+
import { a2 as fe } from "./index-DgEyX64-.js";
|
133
|
+
import { a1 as Ae } from "./index-DgEyX64-.js";
|
134
|
+
import { aF as Ie } from "./index-DgEyX64-.js";
|
135
|
+
import { aD as Ne } from "./index-DgEyX64-.js";
|
136
|
+
import { aH as xe } from "./index-DgEyX64-.js";
|
137
|
+
import { u as ye } from "./index-DgEyX64-.js";
|
138
|
+
import { bb as ke } from "./index-DgEyX64-.js";
|
139
|
+
import { a3 as we } from "./index-DgEyX64-.js";
|
140
|
+
import { b7 as Ee } from "./index-DgEyX64-.js";
|
141
|
+
import { b8 as Oe } from "./index-DgEyX64-.js";
|
142
|
+
import { b9 as Le } from "./index-DgEyX64-.js";
|
143
|
+
import { b6 as Me } from "./index-DgEyX64-.js";
|
144
|
+
import { bs as Ve } from "./index-DgEyX64-.js";
|
145
|
+
import { a_ as Re } from "./index-DgEyX64-.js";
|
146
|
+
import { b1 as We } from "./index-DgEyX64-.js";
|
147
|
+
import { aZ as je } from "./index-DgEyX64-.js";
|
148
|
+
import { a$ as Ge } from "./index-DgEyX64-.js";
|
149
|
+
import { aY as Ue } from "./index-DgEyX64-.js";
|
150
|
+
import { k as ze } from "./index-DgEyX64-.js";
|
151
|
+
import { ac as He } from "./index-DgEyX64-.js";
|
152
152
|
export { s as BulkActionDialog, o as BulkSelector, t as BytesCell, r as Collapse, l as ColumnCardOption, i as ColumnDashboardOption, n as ColumnListOption, g as ColumnModalOption, u as ColumnPriority, b as ColumnTableOption, P as ColumnsDiv, d as CopyCell, m as DataEditorActions, C as DataEditorButtons, c as DateCell, T as DateRange, D as DateRangeFilterPresets, p as DateTimeCell, S as ElapsedTimeCell, h as FrameworkTranslationsProvider, F as GenericForm, v as Help, B as LabelColorE, f as LabelsCell, A as LoadingPage, I as MultiSelectDialog, N as PFColorE, x as PageActionSelection, y as PageActionType, k as PageActions, w as PageAlertToasterContext, E as PageAlertToasterProvider, O as PageApp, L as PageBody, M as PageChartContainer, V as PageDashboard, R as PageDashboardCard, W as PageDashboardChart, j as PageDashboardChartVariantE, G as PageDashboardContext, U as PageDashboardCount, z as PageDashboardDonutCard, H as PageDashboardGettingStarted, q as PageDetail, Q as PageDetailDiv, J as PageDetails, K as PageDetailsFromColumns, X as PageDialogProvider, Y as PageDonutChart, Z as PageForm, _ as PageFormCancelButton, $ as PageFormCheckbox, aa as PageFormDataEditor, ea as PageFormGrid, sa as PageFormSelect, oa as PageFormSubmitButton, ta as PageFormSwitch, ra as PageFormTextArea, la as PageFormTextInput, ia as PageFramework, na as PageHeader, ga as PageLayout, ua as PageMasthead, ba as PageMastheadToggle, Pa as PageNavSideBarContext, da as PageNavSideBarProvider, ma as PageNavigation, Ca as PageNotFound, ca as PageNotImplemented, Ta as PageNotificationsIcon, Da as PageSettingsContext, pa as PageSettingsProvider, Sa as PageTab, ha as PageTable, Fa as PageTableCard, va as PageTableCards, Ba as PageTabs, fa as PageThemeSwitcher, Aa as PageToolbar, Ia as PageToolbarFilters, Na as PageWizard, xa as RunningIcon, ya as Scrollable, ka as SelectDialog, wa as Small, Ea as TableColumnCell, Oa as TextCell, La as ToolbarDateRangeFilter, Ma as ToolbarFilterType, Va as ToolbarSingleTextFilter, Ra as ToolbarTextMultiFilter, Wa as addNavigationItem, ja as addNavigationItemAfter, Ga as addNavigationItemBefore, Ua as buildQueryString, za as compareNumbers, Ha as compareStrings, qa as compareUnknowns, Qa as errorToAlertProps, Ja as filtersToSearchObj, Ka as findNavigationItemById, Xa as getPatternflyColor, Ya as multiSelectBrowseAdapter, Za as objectToString, _a as paramsToSearchObj, $a as pfDanger, ae as pfDisabled, ee as pfInfo, se as pfLink, oe as pfSuccess, te as pfUnreachable, re as pfWarning, le as removeLeadingSlash, ie as removeNavigationItemById, ne as singleSelectBrowseAdapter, ge as useBreakpoint, ue as useBulkActionDialog, be as useBulkConfirmation, Pe as useColumnsToTableCardFn, de as useColumnsWithoutExpandedRow, me as useColumnsWithoutSort, Ce as useDashboardColumns, ce as useDescriptionColumns, Te as useExpandedColumns, De as useFiltered, pe as useFormErrors, Se as useFrameworkTranslations, he as useGetPageUrl, Fe as useInMemoryView, ve as useOrientation, Be as usePageAlertToaster, fe as usePageDialog, Ae as usePageDialogs, Ie as usePageNavBarClick, Ne as usePageNavSideBar, xe as usePageNavigate, ye as usePageSettings, ke as usePaged, we as useSelectDialog, Ee as useSelected, Oe as useSelectedInMemory, Le as useSorted, Me as useTableItems, Ve as useView, Re as useVisibleCardColumns, We as useVisibleColumns, je as useVisibleListColumns, Ge as useVisibleModalColumns, Ue as useVisibleTableColumns, ze as useWindowSize, He as valueToObject };
|
File without changes
|
File without changes
|