@keycloak/keycloak-ui-shared 26.6.3 → 26.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/controls/SwitchControl.d.ts +2 -1
- package/dist/controls/select-control/SelectControl.d.ts +2 -1
- package/dist/controls/table/KeycloakDataTable.d.ts +5 -1
- package/dist/keycloak-ui-shared.js +761 -747
- package/dist/keycloak-ui-shared.js.map +1 -1
- package/dist/main.d.ts +2 -2
- package/dist/user-profile/utils.d.ts +1 -0
- package/package.json +4 -4
|
@@ -1,53 +1,53 @@
|
|
|
1
|
-
import { jsx as t, jsxs as
|
|
2
|
-
import { AlertGroup as
|
|
3
|
-
import { createContext as
|
|
4
|
-
import { useTranslation as
|
|
1
|
+
import { jsx as t, jsxs as I, Fragment as W } from "react/jsx-runtime";
|
|
2
|
+
import { AlertGroup as en, Alert as tn, AlertVariant as Ne, AlertActionCloseButton as nn, Page as rn, Modal as vt, ModalVariant as an, TextContent as ln, Text as Ce, Button as _, Spinner as bt, FormHelperText as We, HelperText as ze, HelperTextItem as Je, Popover as sn, Icon as _e, FormGroup as Ct, NumberInput as on, ValidatedOptions as H, InputGroup as Se, InputGroupItem as qe, TextInput as Te, Select as xe, SelectList as Ee, SelectOption as Ye, MenuToggle as pe, MenuToggleStatus as Qe, TextInputGroup as kt, TextInputGroupMain as It, ChipGroup as Xe, Chip as Ze, TextInputGroupUtilities as wt, Switch as cn, TextArea as St, FileUpload as dn, Title as un, Card as hn, CardHeader as fn, CardTitle as pn, CardBody as mn, Grid as gn, GridItem as st, PageSection as yn, JumpLinks as vn, JumpLinksItem as bn, ButtonVariant as Ie, Checkbox as Cn, Radio as kn, MenuFooter as In, Dropdown as wn, DropdownList as Sn, DropdownItem as ot, Masthead as Tn, MastheadToggle as xn, PageToggleButton as En, MastheadBrand as An, MastheadContent as Rn, Toolbar as ke, ToolbarContent as Ue, ToolbarItem as G, Avatar as Dn, Bullseye as On, EmptyState as Fn, EmptyStateIcon as ct, EmptyStateHeader as Pn, EmptyStateBody as Ln, EmptyStateFooter as Vn, EmptyStateActions as Mn, SearchInput as Bn, Divider as Nn, Pagination as _n, Badge as qn } from "@patternfly/react-core";
|
|
3
|
+
import { createContext as Tt, useContext as xt, useRef as Y, useEffect as le, useCallback as he, useState as R, useMemo as U, isValidElement as Et, forwardRef as Un, useId as At, Fragment as Rt, Children as Dt, Component as $n } from "react";
|
|
4
|
+
import { useTranslation as q } from "react-i18next";
|
|
5
5
|
import { NetworkError as Ot } from "@keycloak/keycloak-admin-client";
|
|
6
6
|
import Kn from "keycloak-js";
|
|
7
7
|
import { ExclamationCircleIcon as Hn, ExclamationTriangleIcon as jn, HelpIcon as Gn, EyeIcon as Wn, EyeSlashIcon as zn, TimesIcon as Ft, CubeIcon as Jn, PaypalIcon as Yn, InstagramIcon as Qn, BitbucketIcon as Xn, MicrosoftIcon as Zn, TwitterIcon as er, StackOverflowIcon as tr, OpenshiftIcon as nr, LinkedinIcon as rr, GoogleIcon as ar, GitlabIcon as lr, FacebookSquareIcon as ir, GithubIcon as sr, MinusCircleIcon as or, PlusCircleIcon as Pt, EllipsisVIcon as cr, BarsIcon as dr, SearchIcon as ur, SyncAltIcon as hr } from "@patternfly/react-icons";
|
|
8
|
-
import { useFormContext as
|
|
9
|
-
import { get as
|
|
8
|
+
import { useFormContext as Ae, Controller as oe, useController as Re, FormProvider as fr, useWatch as pr } from "react-hook-form";
|
|
9
|
+
import { get as N, intersectionBy as mr, cloneDeep as gr } from "lodash-es";
|
|
10
10
|
import ve from "@patternfly/react-styles/css/components/Avatar/avatar";
|
|
11
11
|
import { css as yr } from "@patternfly/react-styles";
|
|
12
|
-
import { Table as
|
|
13
|
-
import './main.css';function
|
|
14
|
-
const r =
|
|
12
|
+
import { Table as vr, TableVariant as br, Thead as Cr, Tr as be, Th as Ve, Tbody as dt, Td as ie, ExpandableRowContent as kr, ActionsColumn as Ir, TableText as wr } from "@patternfly/react-table";
|
|
13
|
+
import './main.css';function et(e, n) {
|
|
14
|
+
const r = Tt(n);
|
|
15
15
|
return r.displayName = e, r;
|
|
16
16
|
}
|
|
17
|
-
const
|
|
18
|
-
function
|
|
17
|
+
const Sr = ["error", "errorMessage"], Me = "error_description";
|
|
18
|
+
function Tr(e) {
|
|
19
19
|
if (typeof e == "string")
|
|
20
20
|
return e;
|
|
21
21
|
if (e instanceof Ot)
|
|
22
|
-
return
|
|
22
|
+
return Lt(e.responseData);
|
|
23
23
|
if (e instanceof Error)
|
|
24
24
|
return e.message;
|
|
25
25
|
throw new Error("Unable to determine error message.");
|
|
26
26
|
}
|
|
27
|
-
function
|
|
27
|
+
function xr(e) {
|
|
28
28
|
if (!(e instanceof Ot))
|
|
29
29
|
return;
|
|
30
30
|
const n = e.responseData;
|
|
31
|
-
return
|
|
31
|
+
return Er(n);
|
|
32
32
|
}
|
|
33
|
-
function
|
|
34
|
-
if (typeof e == "object" && e !== null &&
|
|
35
|
-
return e[
|
|
33
|
+
function Er(e) {
|
|
34
|
+
if (typeof e == "object" && e !== null && Me in e && typeof e[Me] == "string")
|
|
35
|
+
return e[Me];
|
|
36
36
|
}
|
|
37
|
-
function
|
|
37
|
+
function Lt(e) {
|
|
38
38
|
if (!(typeof e != "object" || e === null))
|
|
39
|
-
for (const n of
|
|
39
|
+
for (const n of Sr) {
|
|
40
40
|
const r = e[n];
|
|
41
41
|
if (typeof r == "string")
|
|
42
42
|
return r;
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
-
const
|
|
45
|
+
const Ar = () => Math.floor(Math.random() * 1e3);
|
|
46
46
|
function Rr(e) {
|
|
47
47
|
return e != null;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
50
|
-
const n =
|
|
49
|
+
function tt(e) {
|
|
50
|
+
const n = xt(e);
|
|
51
51
|
if (Rr(n))
|
|
52
52
|
return n;
|
|
53
53
|
throw new Error(
|
|
@@ -56,7 +56,7 @@ function et(e) {
|
|
|
56
56
|
}
|
|
57
57
|
function Dr() {
|
|
58
58
|
const e = Y(!1), n = Y(/* @__PURE__ */ new Set());
|
|
59
|
-
|
|
59
|
+
le(() => (e.current = !1, () => {
|
|
60
60
|
e.current = !0, r();
|
|
61
61
|
}), []);
|
|
62
62
|
function r() {
|
|
@@ -77,22 +77,22 @@ function Dr() {
|
|
|
77
77
|
}
|
|
78
78
|
function Or({ alerts: e, onCloseAlert: n }) {
|
|
79
79
|
return /* @__PURE__ */ t(
|
|
80
|
-
|
|
80
|
+
en,
|
|
81
81
|
{
|
|
82
82
|
"data-testid": "global-alerts",
|
|
83
83
|
isToast: !0,
|
|
84
84
|
style: { whiteSpace: "pre-wrap" },
|
|
85
85
|
children: e.map(({ id: r, variant: a, message: l, description: i }, s) => /* @__PURE__ */ t(
|
|
86
|
-
|
|
86
|
+
tn,
|
|
87
87
|
{
|
|
88
88
|
"data-testid": s === 0 ? "last-alert" : void 0,
|
|
89
89
|
isLiveRegion: !0,
|
|
90
|
-
variant:
|
|
90
|
+
variant: Ne[a],
|
|
91
91
|
component: "p",
|
|
92
92
|
variantLabel: "",
|
|
93
93
|
title: l,
|
|
94
94
|
actionClose: /* @__PURE__ */ t(
|
|
95
|
-
|
|
95
|
+
nn,
|
|
96
96
|
{
|
|
97
97
|
title: l,
|
|
98
98
|
onClose: () => n(r)
|
|
@@ -105,63 +105,63 @@ function Or({ alerts: e, onCloseAlert: n }) {
|
|
|
105
105
|
}
|
|
106
106
|
);
|
|
107
107
|
}
|
|
108
|
-
const Fr = 8e3,
|
|
108
|
+
const Fr = 8e3, Vt = et(
|
|
109
109
|
"AlertContext",
|
|
110
110
|
void 0
|
|
111
|
-
), qa = () =>
|
|
112
|
-
const { t: n } =
|
|
113
|
-
(c,
|
|
114
|
-
const
|
|
115
|
-
id:
|
|
111
|
+
), qa = () => tt(Vt), Pr = ({ children: e }) => {
|
|
112
|
+
const { t: n } = q(), r = Dr(), [a, l] = R([]), i = (c) => l((h) => h.filter((u) => u.id !== c)), s = he(
|
|
113
|
+
(c, h = Ne.success, u) => {
|
|
114
|
+
const m = {
|
|
115
|
+
id: Ar(),
|
|
116
116
|
message: c,
|
|
117
|
-
variant:
|
|
118
|
-
description:
|
|
117
|
+
variant: h,
|
|
118
|
+
description: u
|
|
119
119
|
};
|
|
120
|
-
l((
|
|
120
|
+
l((g) => [m, ...g]), r(() => i(m.id), Fr);
|
|
121
121
|
},
|
|
122
122
|
[r]
|
|
123
123
|
), o = he(
|
|
124
|
-
(c,
|
|
125
|
-
const
|
|
126
|
-
s(
|
|
124
|
+
(c, h) => {
|
|
125
|
+
const u = n(c, { error: Tr(h) }), m = xr(h);
|
|
126
|
+
s(u, Ne.danger, m);
|
|
127
127
|
},
|
|
128
128
|
[s, n]
|
|
129
|
-
),
|
|
130
|
-
return /* @__PURE__ */
|
|
129
|
+
), d = U(() => ({ addAlert: s, addError: o }), [s, o]);
|
|
130
|
+
return /* @__PURE__ */ I(Vt.Provider, { value: d, children: [
|
|
131
131
|
/* @__PURE__ */ t(Or, { alerts: a, onCloseAlert: i }),
|
|
132
132
|
e
|
|
133
133
|
] });
|
|
134
|
-
},
|
|
135
|
-
const { t: n, i18n: r } =
|
|
134
|
+
}, Lr = (e) => {
|
|
135
|
+
const { t: n, i18n: r } = q(), a = e.error, l = Vr(a), i = Lt(a);
|
|
136
136
|
console.error(a);
|
|
137
137
|
function s() {
|
|
138
138
|
location.href = location.origin + location.pathname;
|
|
139
139
|
}
|
|
140
|
-
return /* @__PURE__ */ t(
|
|
140
|
+
return /* @__PURE__ */ t(rn, { children: /* @__PURE__ */ t(
|
|
141
141
|
vt,
|
|
142
142
|
{
|
|
143
|
-
variant:
|
|
143
|
+
variant: an.small,
|
|
144
144
|
title: n("somethingWentWrong"),
|
|
145
145
|
titleIconVariant: "danger",
|
|
146
146
|
showClose: !1,
|
|
147
147
|
isOpen: !0,
|
|
148
148
|
actions: [
|
|
149
|
-
/* @__PURE__ */ t(
|
|
149
|
+
/* @__PURE__ */ t(_, { variant: "primary", onClick: s, children: n("tryAgain") }, "tryAgain")
|
|
150
150
|
],
|
|
151
|
-
children: /* @__PURE__ */ t(
|
|
151
|
+
children: /* @__PURE__ */ t(ln, { children: l ? /* @__PURE__ */ t(Ce, { children: n(l) }) : i && r.exists(i) ? /* @__PURE__ */ t(Ce, { children: n(i) }) : /* @__PURE__ */ t(Ce, { children: n("somethingWentWrongDescription") }) })
|
|
152
152
|
}
|
|
153
153
|
) });
|
|
154
154
|
};
|
|
155
|
-
function
|
|
155
|
+
function Vr(e) {
|
|
156
156
|
return e instanceof Error ? e.message : null;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
const [a, l] =
|
|
158
|
+
function Mr(e, n, r) {
|
|
159
|
+
const [a, l] = R(
|
|
160
160
|
() => e.getItem(n) ?? r
|
|
161
161
|
), i = he((s) => {
|
|
162
162
|
l(s), e.setItem(n, s);
|
|
163
163
|
}, []);
|
|
164
|
-
return
|
|
164
|
+
return le(() => {
|
|
165
165
|
l(e.getItem(n) ?? r), window.addEventListener("storage", s);
|
|
166
166
|
function s(o) {
|
|
167
167
|
o.storageArea === e && (o.key === null || o.key === n) && l(o.newValue ?? r);
|
|
@@ -169,45 +169,47 @@ function Lr(e, n, r) {
|
|
|
169
169
|
return () => window.removeEventListener("storage", s);
|
|
170
170
|
}, [e, n]), [a, i];
|
|
171
171
|
}
|
|
172
|
-
function
|
|
172
|
+
function Mt(e, n, r) {
|
|
173
173
|
const a = U(
|
|
174
174
|
() => JSON.stringify(r),
|
|
175
175
|
[r]
|
|
176
|
-
), [l, i] =
|
|
176
|
+
), [l, i] = Mr(
|
|
177
177
|
e,
|
|
178
178
|
n,
|
|
179
179
|
a
|
|
180
180
|
), s = U(() => JSON.parse(l), [l]), o = he(
|
|
181
|
-
(
|
|
181
|
+
(d) => i(JSON.stringify(d)),
|
|
182
182
|
[]
|
|
183
183
|
);
|
|
184
184
|
return [s, o];
|
|
185
185
|
}
|
|
186
|
-
const Bt =
|
|
186
|
+
const Bt = et(
|
|
187
187
|
"HelpContext",
|
|
188
188
|
void 0
|
|
189
|
-
), Br = () =>
|
|
190
|
-
const [n, r] =
|
|
189
|
+
), Br = () => tt(Bt), Nr = ({ children: e }) => {
|
|
190
|
+
const [n, r] = Mt(localStorage, "helpEnabled", !0);
|
|
191
191
|
function a() {
|
|
192
192
|
r(!n);
|
|
193
193
|
}
|
|
194
194
|
return /* @__PURE__ */ t(Bt.Provider, { value: { enabled: n, toggleHelp: a }, children: e });
|
|
195
|
-
}, _r = () =>
|
|
195
|
+
}, _r = () => Tt(void 0);
|
|
196
196
|
let $e;
|
|
197
|
-
const
|
|
198
|
-
const e =
|
|
197
|
+
const Ua = () => {
|
|
198
|
+
const e = xt(
|
|
199
|
+
$e
|
|
200
|
+
);
|
|
199
201
|
if (!e)
|
|
200
202
|
throw Error(
|
|
201
203
|
"no environment provider in the hierarchy make sure to add the provider"
|
|
202
204
|
);
|
|
203
205
|
return e;
|
|
204
|
-
},
|
|
206
|
+
}, $a = ({
|
|
205
207
|
environment: e,
|
|
206
208
|
keycloak: n,
|
|
207
209
|
children: r
|
|
208
210
|
}) => {
|
|
209
211
|
$e = _r();
|
|
210
|
-
const a = Y(!1), [l, i] =
|
|
212
|
+
const a = Y(!1), [l, i] = R(!!n), [s, o] = R(), d = U(() => {
|
|
211
213
|
if (n)
|
|
212
214
|
return n;
|
|
213
215
|
const c = new Kn({
|
|
@@ -217,16 +219,16 @@ const $a = () => {
|
|
|
217
219
|
});
|
|
218
220
|
return c.onAuthLogout = () => c.login(), c;
|
|
219
221
|
}, [e, n]);
|
|
220
|
-
return
|
|
222
|
+
return le(() => {
|
|
221
223
|
if (n || a.current)
|
|
222
224
|
return;
|
|
223
|
-
|
|
225
|
+
d.init({
|
|
224
226
|
onLoad: "login-required",
|
|
225
227
|
pkceMethod: "S256",
|
|
226
228
|
responseMode: "query",
|
|
227
229
|
scope: e.scope
|
|
228
|
-
}).then(() => i(!0)).catch((
|
|
229
|
-
}, [
|
|
230
|
+
}).then(() => i(!0)).catch((h) => o(h)), a.current = !0;
|
|
231
|
+
}, [d, n]), s ? /* @__PURE__ */ t(Lr, { error: s }) : l ? /* @__PURE__ */ t($e.Provider, { value: { environment: e, keycloak: d }, children: /* @__PURE__ */ t(Pr, { children: /* @__PURE__ */ t(Nr, { children: r }) }) }) : /* @__PURE__ */ t(bt, {});
|
|
230
232
|
};
|
|
231
233
|
function Ka() {
|
|
232
234
|
const n = document.getElementById("environment")?.textContent;
|
|
@@ -247,17 +249,17 @@ const Ha = ({
|
|
|
247
249
|
buttonVariant: i,
|
|
248
250
|
buttonTestRole: s,
|
|
249
251
|
onContinue: o,
|
|
250
|
-
component:
|
|
252
|
+
component: d = _,
|
|
251
253
|
children: c,
|
|
252
|
-
...
|
|
254
|
+
...h
|
|
253
255
|
}) => {
|
|
254
|
-
const [
|
|
255
|
-
return /* @__PURE__ */
|
|
256
|
+
const [u, m] = R(!1);
|
|
257
|
+
return /* @__PURE__ */ I(W, { children: [
|
|
256
258
|
/* @__PURE__ */ t(
|
|
257
|
-
|
|
259
|
+
d,
|
|
258
260
|
{
|
|
259
261
|
variant: i,
|
|
260
|
-
onClick: () =>
|
|
262
|
+
onClick: () => m(!0),
|
|
261
263
|
isDisabled: l,
|
|
262
264
|
"data-testrole": s,
|
|
263
265
|
children: a
|
|
@@ -267,29 +269,29 @@ const Ha = ({
|
|
|
267
269
|
vt,
|
|
268
270
|
{
|
|
269
271
|
variant: "small",
|
|
270
|
-
...
|
|
272
|
+
...h,
|
|
271
273
|
title: e,
|
|
272
|
-
isOpen:
|
|
273
|
-
onClose: () =>
|
|
274
|
+
isOpen: u,
|
|
275
|
+
onClose: () => m(!1),
|
|
274
276
|
actions: [
|
|
275
277
|
/* @__PURE__ */ t(
|
|
276
|
-
|
|
278
|
+
_,
|
|
277
279
|
{
|
|
278
280
|
id: "modal-confirm",
|
|
279
281
|
variant: "primary",
|
|
280
282
|
onClick: () => {
|
|
281
|
-
|
|
283
|
+
m(!1), o();
|
|
282
284
|
},
|
|
283
285
|
children: n
|
|
284
286
|
},
|
|
285
287
|
"confirm"
|
|
286
288
|
),
|
|
287
289
|
/* @__PURE__ */ t(
|
|
288
|
-
|
|
290
|
+
_,
|
|
289
291
|
{
|
|
290
292
|
id: "modal-cancel",
|
|
291
293
|
variant: "secondary",
|
|
292
|
-
onClick: () =>
|
|
294
|
+
onClick: () => m(!1),
|
|
293
295
|
children: r
|
|
294
296
|
},
|
|
295
297
|
"cancel"
|
|
@@ -299,7 +301,7 @@ const Ha = ({
|
|
|
299
301
|
}
|
|
300
302
|
)
|
|
301
303
|
] });
|
|
302
|
-
}, Nt = ({ message: e, ...n }) => /* @__PURE__ */ t(
|
|
304
|
+
}, Nt = ({ message: e, ...n }) => /* @__PURE__ */ t(We, { ...n, children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(Je, { icon: /* @__PURE__ */ t(Hn, {}), variant: "error", children: e }) }) }), _t = ({
|
|
303
305
|
helpText: e,
|
|
304
306
|
fieldLabelId: n,
|
|
305
307
|
noVerticalAlign: r = !0,
|
|
@@ -307,16 +309,17 @@ const Ha = ({
|
|
|
307
309
|
isRecommendation: l = !1
|
|
308
310
|
}) => {
|
|
309
311
|
const { enabled: i } = Br(), s = l ? jn : Gn;
|
|
310
|
-
return i ? /* @__PURE__ */ t(
|
|
312
|
+
return i ? /* @__PURE__ */ t(sn, { bodyContent: e, children: /* @__PURE__ */ I(W, { children: [
|
|
311
313
|
!a && /* @__PURE__ */ t(
|
|
312
314
|
"button",
|
|
313
315
|
{
|
|
316
|
+
type: "button",
|
|
314
317
|
"data-testid": `help-label-${n}`,
|
|
315
318
|
"aria-label": n,
|
|
316
319
|
onClick: (o) => o.preventDefault(),
|
|
317
320
|
className: "pf-v5-c-form__group-label-help",
|
|
318
321
|
children: /* @__PURE__ */ t(
|
|
319
|
-
|
|
322
|
+
_e,
|
|
320
323
|
{
|
|
321
324
|
isInline: r,
|
|
322
325
|
status: l ? "warning" : void 0,
|
|
@@ -326,7 +329,7 @@ const Ha = ({
|
|
|
326
329
|
}
|
|
327
330
|
),
|
|
328
331
|
a && /* @__PURE__ */ t(
|
|
329
|
-
|
|
332
|
+
_e,
|
|
330
333
|
{
|
|
331
334
|
isInline: r,
|
|
332
335
|
status: l ? "warning" : void 0,
|
|
@@ -347,12 +350,12 @@ const Q = ({
|
|
|
347
350
|
error: l,
|
|
348
351
|
children: i,
|
|
349
352
|
...s
|
|
350
|
-
}) => /* @__PURE__ */
|
|
351
|
-
|
|
353
|
+
}) => /* @__PURE__ */ I(
|
|
354
|
+
Ct,
|
|
352
355
|
{
|
|
353
356
|
label: r || n,
|
|
354
357
|
fieldId: e || n,
|
|
355
|
-
labelIcon: a ? /* @__PURE__ */ t(_t, { helpText: a, fieldLabelId: e || n }) : void 0,
|
|
358
|
+
labelIcon: Et(a) ? a : a ? /* @__PURE__ */ t(_t, { helpText: a, fieldLabelId: e || n }) : void 0,
|
|
356
359
|
...s,
|
|
357
360
|
children: [
|
|
358
361
|
i,
|
|
@@ -369,7 +372,7 @@ const Q = ({
|
|
|
369
372
|
const {
|
|
370
373
|
control: i,
|
|
371
374
|
formState: { errors: s }
|
|
372
|
-
} =
|
|
375
|
+
} = Ae();
|
|
373
376
|
return /* @__PURE__ */ t(
|
|
374
377
|
Q,
|
|
375
378
|
{
|
|
@@ -385,24 +388,24 @@ const Q = ({
|
|
|
385
388
|
name: e,
|
|
386
389
|
control: i,
|
|
387
390
|
render: ({ field: o }) => {
|
|
388
|
-
const
|
|
389
|
-
c !== void 0 ? Math.max(
|
|
391
|
+
const d = !!r.rules?.required, c = ce(r.rules?.min), h = o.value ?? r.defaultValue, u = (m) => o.onChange(
|
|
392
|
+
c !== void 0 ? Math.max(m, Number(c)) : m
|
|
390
393
|
);
|
|
391
394
|
return /* @__PURE__ */ t(
|
|
392
|
-
|
|
395
|
+
on,
|
|
393
396
|
{
|
|
394
397
|
...l,
|
|
395
398
|
id: e,
|
|
396
|
-
value:
|
|
399
|
+
value: h,
|
|
397
400
|
validated: s[e] ? H.error : H.default,
|
|
398
|
-
required:
|
|
401
|
+
required: d,
|
|
399
402
|
min: Number(c),
|
|
400
403
|
max: Number(r.rules?.max),
|
|
401
|
-
onPlus: () =>
|
|
402
|
-
onMinus: () =>
|
|
403
|
-
onChange: (
|
|
404
|
-
const
|
|
405
|
-
|
|
404
|
+
onPlus: () => u(h + 1),
|
|
405
|
+
onMinus: () => u(h - 1),
|
|
406
|
+
onChange: (m) => {
|
|
407
|
+
const g = Number(m.currentTarget.value);
|
|
408
|
+
u(isNaN(g) ? r.defaultValue : g);
|
|
406
409
|
}
|
|
407
410
|
}
|
|
408
411
|
);
|
|
@@ -416,10 +419,10 @@ const Q = ({
|
|
|
416
419
|
innerRef: n,
|
|
417
420
|
...r
|
|
418
421
|
}) => {
|
|
419
|
-
const { t: a } =
|
|
420
|
-
return /* @__PURE__ */
|
|
421
|
-
/* @__PURE__ */ t(
|
|
422
|
-
|
|
422
|
+
const { t: a } = q(), [l, i] = R(!0);
|
|
423
|
+
return /* @__PURE__ */ I(Se, { children: [
|
|
424
|
+
/* @__PURE__ */ t(qe, { isFill: !0, children: /* @__PURE__ */ t(
|
|
425
|
+
Te,
|
|
423
426
|
{
|
|
424
427
|
...r,
|
|
425
428
|
type: l ? "password" : "text",
|
|
@@ -427,7 +430,7 @@ const Q = ({
|
|
|
427
430
|
}
|
|
428
431
|
) }),
|
|
429
432
|
e && /* @__PURE__ */ t(
|
|
430
|
-
|
|
433
|
+
_,
|
|
431
434
|
{
|
|
432
435
|
variant: "control",
|
|
433
436
|
"aria-label": a("showPassword"),
|
|
@@ -436,16 +439,16 @@ const Q = ({
|
|
|
436
439
|
}
|
|
437
440
|
)
|
|
438
441
|
] });
|
|
439
|
-
}, qt =
|
|
442
|
+
}, qt = Un(
|
|
440
443
|
(e, n) => /* @__PURE__ */ t(qr, { ...e, innerRef: n })
|
|
441
444
|
);
|
|
442
445
|
qt.displayName = "PasswordInput";
|
|
443
446
|
const Ga = (e) => {
|
|
444
|
-
const { labelIcon: n, ...r } = e, a = !!ce(e.rules?.required), l = e.defaultValue ?? "", { field: i, fieldState: s } =
|
|
447
|
+
const { labelIcon: n, ...r } = e, a = !!ce(e.rules?.required), l = e.defaultValue ?? "", { field: i, fieldState: s } = Re({
|
|
445
448
|
...e,
|
|
446
449
|
defaultValue: l
|
|
447
450
|
});
|
|
448
|
-
return /* @__PURE__ */
|
|
451
|
+
return /* @__PURE__ */ I(
|
|
449
452
|
Q,
|
|
450
453
|
{
|
|
451
454
|
name: e.name,
|
|
@@ -466,11 +469,11 @@ const Ga = (e) => {
|
|
|
466
469
|
...i
|
|
467
470
|
}
|
|
468
471
|
),
|
|
469
|
-
e.helperText && /* @__PURE__ */ t(
|
|
472
|
+
e.helperText && /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(Je, { children: e.helperText }) }) })
|
|
470
473
|
]
|
|
471
474
|
}
|
|
472
475
|
);
|
|
473
|
-
},
|
|
476
|
+
}, Ur = ({
|
|
474
477
|
id: e,
|
|
475
478
|
name: n,
|
|
476
479
|
label: r,
|
|
@@ -479,68 +482,68 @@ const Ga = (e) => {
|
|
|
479
482
|
controller: i,
|
|
480
483
|
labelIcon: s,
|
|
481
484
|
isDisabled: o,
|
|
482
|
-
isFullWidth:
|
|
485
|
+
isFullWidth: d = !0,
|
|
483
486
|
onSelect: c,
|
|
484
|
-
...
|
|
487
|
+
...h
|
|
485
488
|
}) => {
|
|
486
489
|
const {
|
|
487
|
-
control:
|
|
488
|
-
formState: { errors:
|
|
489
|
-
} =
|
|
490
|
+
control: u,
|
|
491
|
+
formState: { errors: m }
|
|
492
|
+
} = Ae(), [g, C] = R(!1), E = ce(i.rules?.required) === !0;
|
|
490
493
|
return /* @__PURE__ */ t(
|
|
491
494
|
Q,
|
|
492
495
|
{
|
|
493
496
|
id: e,
|
|
494
497
|
name: n,
|
|
495
498
|
label: r,
|
|
496
|
-
isRequired:
|
|
497
|
-
error:
|
|
499
|
+
isRequired: E,
|
|
500
|
+
error: N(m, n),
|
|
498
501
|
labelIcon: s,
|
|
499
502
|
children: /* @__PURE__ */ t(
|
|
500
503
|
oe,
|
|
501
504
|
{
|
|
502
505
|
...i,
|
|
503
506
|
name: n,
|
|
504
|
-
control:
|
|
505
|
-
render: ({ field: { onChange:
|
|
506
|
-
|
|
507
|
+
control: u,
|
|
508
|
+
render: ({ field: { onChange: v, value: f } }) => /* @__PURE__ */ t(
|
|
509
|
+
xe,
|
|
507
510
|
{
|
|
508
|
-
...
|
|
511
|
+
...h,
|
|
509
512
|
variant: "default",
|
|
510
|
-
onClick: () => C(!
|
|
513
|
+
onClick: () => C(!g),
|
|
511
514
|
onOpenChange: () => C(!1),
|
|
512
515
|
selected: re(a) ? a.filter(
|
|
513
|
-
(
|
|
514
|
-
).map((
|
|
515
|
-
toggle: (
|
|
516
|
+
(b) => Array.isArray(f) ? f.includes(b.key) : f === b.key
|
|
517
|
+
).map((b) => b.value) : f,
|
|
518
|
+
toggle: (b) => /* @__PURE__ */ t(
|
|
516
519
|
pe,
|
|
517
520
|
{
|
|
518
521
|
id: e || n,
|
|
519
|
-
ref:
|
|
520
|
-
onClick: () => C(!
|
|
521
|
-
isExpanded:
|
|
522
|
-
isFullWidth:
|
|
523
|
-
status:
|
|
522
|
+
ref: b,
|
|
523
|
+
onClick: () => C(!g),
|
|
524
|
+
isExpanded: g,
|
|
525
|
+
isFullWidth: d,
|
|
526
|
+
status: N(m, n) ? Qe.danger : void 0,
|
|
524
527
|
"aria-label": r,
|
|
525
528
|
isDisabled: o,
|
|
526
529
|
children: re(a) ? a.find(
|
|
527
|
-
(A) => A.key === (Array.isArray(
|
|
528
|
-
)?.value :
|
|
530
|
+
(A) => A.key === (Array.isArray(f) ? f[0] : f)
|
|
531
|
+
)?.value : f
|
|
529
532
|
}
|
|
530
533
|
),
|
|
531
|
-
onSelect: (
|
|
532
|
-
const
|
|
533
|
-
c ? c(
|
|
534
|
+
onSelect: (b, A) => {
|
|
535
|
+
const w = A?.toString(), y = Array.isArray(f) ? [w] : w;
|
|
536
|
+
c ? c(y, v) : v(y), C(!1);
|
|
534
537
|
},
|
|
535
|
-
isOpen:
|
|
536
|
-
children: /* @__PURE__ */ t(Ee, { "data-testid": `select-${n}`, children: [...a, ...l].map((
|
|
537
|
-
|
|
538
|
+
isOpen: g,
|
|
539
|
+
children: /* @__PURE__ */ t(Ee, { "data-testid": `select-${n}`, children: [...a, ...l].map((b) => /* @__PURE__ */ t(
|
|
540
|
+
Ye,
|
|
538
541
|
{
|
|
539
|
-
value:
|
|
540
|
-
description: !
|
|
541
|
-
children:
|
|
542
|
+
value: se(b),
|
|
543
|
+
description: !fe(b) && "description" in b ? b.description : void 0,
|
|
544
|
+
children: fe(b) ? b : b.value
|
|
542
545
|
},
|
|
543
|
-
|
|
546
|
+
se(b)
|
|
544
547
|
)) })
|
|
545
548
|
}
|
|
546
549
|
)
|
|
@@ -548,7 +551,7 @@ const Ga = (e) => {
|
|
|
548
551
|
)
|
|
549
552
|
}
|
|
550
553
|
);
|
|
551
|
-
}, ne = (e) =>
|
|
554
|
+
}, ne = (e) => fe(e) ? e : e.value, $r = ({
|
|
552
555
|
id: e,
|
|
553
556
|
name: n,
|
|
554
557
|
label: r,
|
|
@@ -557,52 +560,52 @@ const Ga = (e) => {
|
|
|
557
560
|
controller: i,
|
|
558
561
|
labelIcon: s,
|
|
559
562
|
placeholderText: o,
|
|
560
|
-
onFilter:
|
|
563
|
+
onFilter: d,
|
|
561
564
|
variant: c,
|
|
562
|
-
isFullWidth:
|
|
563
|
-
...
|
|
565
|
+
isFullWidth: h = !0,
|
|
566
|
+
...u
|
|
564
567
|
}) => {
|
|
565
568
|
const {
|
|
566
|
-
control:
|
|
567
|
-
formState: { errors:
|
|
568
|
-
} =
|
|
569
|
+
control: m,
|
|
570
|
+
formState: { errors: g }
|
|
571
|
+
} = Ae(), [C, E] = R(!1), [v, f] = R(""), [b, A] = R(0), [w, y] = R([]), T = Y(), P = ce(i.rules?.required) === !0, O = c === ue.typeaheadMulti, D = U(
|
|
569
572
|
() => [
|
|
570
573
|
...a.filter(
|
|
571
|
-
(p) => !l.map((
|
|
574
|
+
(p) => !l.map((k) => ne(k)).includes(ne(p))
|
|
572
575
|
),
|
|
573
576
|
...l
|
|
574
577
|
],
|
|
575
578
|
[l, a]
|
|
576
|
-
),
|
|
577
|
-
(p) => ne(p).toLowerCase().startsWith(
|
|
578
|
-
),
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
)) : (
|
|
582
|
-
...
|
|
583
|
-
D.find((
|
|
579
|
+
), $ = D.filter(
|
|
580
|
+
(p) => ne(p).toLowerCase().startsWith(v.toLowerCase())
|
|
581
|
+
), j = (p, k) => {
|
|
582
|
+
k.value.includes(p) ? (k.onChange(k.value.filter((x) => x !== p)), re(a) && y(
|
|
583
|
+
w.filter((x) => x.key !== p)
|
|
584
|
+
)) : (k.onChange([...k.value, p]), re(D) && y([
|
|
585
|
+
...w,
|
|
586
|
+
D.find((x) => x.key === p)
|
|
584
587
|
]));
|
|
585
|
-
},
|
|
586
|
-
const
|
|
587
|
-
switch (
|
|
588
|
+
}, L = (p, k) => {
|
|
589
|
+
const x = $[b];
|
|
590
|
+
switch (E(!0), p.key) {
|
|
588
591
|
case "Enter": {
|
|
589
|
-
p.preventDefault(),
|
|
592
|
+
p.preventDefault(), f(O ? "" : ne(x)), j(se(x), k), E(!1), A(0);
|
|
590
593
|
break;
|
|
591
594
|
}
|
|
592
595
|
case "Tab":
|
|
593
596
|
case "Escape": {
|
|
594
|
-
|
|
597
|
+
E(!1), k.onChange(void 0);
|
|
595
598
|
break;
|
|
596
599
|
}
|
|
597
600
|
case "Backspace": {
|
|
598
|
-
c === ue.typeahead &&
|
|
601
|
+
c === ue.typeahead && k.onChange("");
|
|
599
602
|
break;
|
|
600
603
|
}
|
|
601
604
|
case "ArrowUp":
|
|
602
605
|
case "ArrowDown": {
|
|
603
606
|
p.preventDefault();
|
|
604
|
-
let
|
|
605
|
-
p.key === "ArrowUp" && (
|
|
607
|
+
let M = 0;
|
|
608
|
+
p.key === "ArrowUp" && (b === 0 ? M = a.length - 1 : M = b - 1), p.key === "ArrowDown" && (b === a.length - 1 ? M = 0 : M = b + 1), A(M);
|
|
606
609
|
break;
|
|
607
610
|
}
|
|
608
611
|
}
|
|
@@ -613,81 +616,81 @@ const Ga = (e) => {
|
|
|
613
616
|
id: e,
|
|
614
617
|
name: n,
|
|
615
618
|
label: r,
|
|
616
|
-
isRequired:
|
|
617
|
-
error:
|
|
619
|
+
isRequired: P,
|
|
620
|
+
error: N(g, n),
|
|
618
621
|
labelIcon: s,
|
|
619
622
|
children: /* @__PURE__ */ t(
|
|
620
623
|
oe,
|
|
621
624
|
{
|
|
622
625
|
...i,
|
|
623
626
|
name: n,
|
|
624
|
-
control:
|
|
627
|
+
control: m,
|
|
625
628
|
render: ({ field: p }) => /* @__PURE__ */ t(
|
|
626
|
-
|
|
629
|
+
xe,
|
|
627
630
|
{
|
|
628
|
-
...
|
|
629
|
-
onOpenChange: () =>
|
|
631
|
+
...u,
|
|
632
|
+
onOpenChange: () => E(!1),
|
|
630
633
|
selected: re(D) ? D.filter(
|
|
631
|
-
(
|
|
632
|
-
).map((
|
|
634
|
+
(k) => Array.isArray(p.value) ? p.value.includes(k.key) : p.value === k.key
|
|
635
|
+
).map((k) => k.value) : p.value,
|
|
633
636
|
shouldFocusFirstItemOnOpen: !1,
|
|
634
|
-
toggle: (
|
|
637
|
+
toggle: (k) => /* @__PURE__ */ t(
|
|
635
638
|
pe,
|
|
636
639
|
{
|
|
637
|
-
ref:
|
|
640
|
+
ref: k,
|
|
638
641
|
id: e || n,
|
|
639
642
|
variant: "typeahead",
|
|
640
643
|
onClick: () => {
|
|
641
|
-
|
|
644
|
+
E(!C), T.current?.focus();
|
|
642
645
|
},
|
|
643
646
|
isExpanded: C,
|
|
644
|
-
isFullWidth:
|
|
645
|
-
status:
|
|
646
|
-
children: /* @__PURE__ */
|
|
647
|
+
isFullWidth: h,
|
|
648
|
+
status: N(g, n) ? Qe.danger : void 0,
|
|
649
|
+
children: /* @__PURE__ */ I(kt, { isPlain: !0, children: [
|
|
647
650
|
/* @__PURE__ */ t(
|
|
648
|
-
|
|
651
|
+
It,
|
|
649
652
|
{
|
|
650
653
|
placeholder: o,
|
|
651
654
|
value: c === ue.typeahead && p.value ? re(D) ? D.find(
|
|
652
|
-
(
|
|
653
|
-
)?.value : p.value :
|
|
654
|
-
onClick: () =>
|
|
655
|
-
onChange: (
|
|
656
|
-
|
|
655
|
+
(x) => x.key === (Array.isArray(p.value) ? p.value[0] : p.value)
|
|
656
|
+
)?.value : p.value : v,
|
|
657
|
+
onClick: () => E(!C),
|
|
658
|
+
onChange: (x, M) => {
|
|
659
|
+
f(M), d?.(M);
|
|
657
660
|
},
|
|
658
|
-
onKeyDown: (
|
|
661
|
+
onKeyDown: (x) => L(x, p),
|
|
659
662
|
autoComplete: "off",
|
|
660
663
|
innerRef: T,
|
|
661
664
|
role: "combobox",
|
|
662
665
|
isExpanded: C,
|
|
663
666
|
"aria-controls": "select-typeahead-listbox",
|
|
664
|
-
children: c === ue.typeaheadMulti && Array.isArray(p.value) && /* @__PURE__ */ t(
|
|
665
|
-
(
|
|
666
|
-
|
|
667
|
+
children: c === ue.typeaheadMulti && Array.isArray(p.value) && /* @__PURE__ */ t(Xe, { "aria-label": "Current selections", children: p.value.map(
|
|
668
|
+
(x, M) => /* @__PURE__ */ t(
|
|
669
|
+
Ze,
|
|
667
670
|
{
|
|
668
|
-
onClick: (
|
|
669
|
-
|
|
671
|
+
onClick: (B) => {
|
|
672
|
+
B.stopPropagation(), p.onChange(
|
|
670
673
|
p.value.filter(
|
|
671
|
-
(Z) => Z !==
|
|
674
|
+
(Z) => Z !== se(x)
|
|
672
675
|
)
|
|
673
676
|
);
|
|
674
677
|
},
|
|
675
678
|
children: re(D) ? [
|
|
676
679
|
...D,
|
|
677
|
-
...
|
|
678
|
-
].find((
|
|
680
|
+
...w
|
|
681
|
+
].find((B) => x === B.key)?.value : ne(x)
|
|
679
682
|
},
|
|
680
|
-
|
|
683
|
+
M
|
|
681
684
|
)
|
|
682
685
|
) })
|
|
683
686
|
}
|
|
684
687
|
),
|
|
685
|
-
/* @__PURE__ */ t(
|
|
686
|
-
|
|
688
|
+
/* @__PURE__ */ t(wt, { children: (!!v || p.value) && /* @__PURE__ */ t(
|
|
689
|
+
_,
|
|
687
690
|
{
|
|
688
691
|
variant: "plain",
|
|
689
692
|
onClick: () => {
|
|
690
|
-
|
|
693
|
+
f(""), p.onChange(O ? [] : ""), T.current?.focus();
|
|
691
694
|
},
|
|
692
695
|
"aria-label": "Clear input value",
|
|
693
696
|
children: /* @__PURE__ */ t(Ft, { "aria-hidden": !0 })
|
|
@@ -696,22 +699,22 @@ const Ga = (e) => {
|
|
|
696
699
|
] })
|
|
697
700
|
}
|
|
698
701
|
),
|
|
699
|
-
onSelect: (
|
|
700
|
-
|
|
701
|
-
const
|
|
702
|
-
O && Array.isArray(p.value) ? (
|
|
702
|
+
onSelect: (k, x) => {
|
|
703
|
+
k?.stopPropagation();
|
|
704
|
+
const M = x?.toString();
|
|
705
|
+
O && Array.isArray(p.value) ? (f(""), j(M || "", p)) : (p.onChange(Array.isArray(p.value) ? [M] : M), E(!1));
|
|
703
706
|
},
|
|
704
707
|
isOpen: C,
|
|
705
|
-
children: /* @__PURE__ */ t(Ee, { children:
|
|
706
|
-
|
|
708
|
+
children: /* @__PURE__ */ t(Ee, { children: $.map((k, x) => /* @__PURE__ */ t(
|
|
709
|
+
Ye,
|
|
707
710
|
{
|
|
708
|
-
value:
|
|
709
|
-
isFocused:
|
|
710
|
-
isActive: p.value.includes(ne(
|
|
711
|
-
description: !
|
|
712
|
-
children: ne(
|
|
711
|
+
value: se(k),
|
|
712
|
+
isFocused: b === x,
|
|
713
|
+
isActive: p.value.includes(ne(k)),
|
|
714
|
+
description: !fe(k) && "description" in k ? k.description : void 0,
|
|
715
|
+
children: ne(k)
|
|
713
716
|
},
|
|
714
|
-
|
|
717
|
+
se(k)
|
|
715
718
|
)) })
|
|
716
719
|
}
|
|
717
720
|
)
|
|
@@ -721,13 +724,13 @@ const Ga = (e) => {
|
|
|
721
724
|
);
|
|
722
725
|
};
|
|
723
726
|
var ue = /* @__PURE__ */ ((e) => (e.single = "single", e.typeahead = "typeahead", e.typeaheadMulti = "typeaheadMulti", e))(ue || {});
|
|
724
|
-
const re = (e) => typeof e[0] != "string",
|
|
727
|
+
const re = (e) => typeof e[0] != "string", fe = (e) => typeof e == "string", se = (e) => fe(e) ? e : e.key, Kr = ({
|
|
725
728
|
variant: e = "single",
|
|
726
729
|
...n
|
|
727
|
-
}) => e === "single" ? /* @__PURE__ */ t(
|
|
728
|
-
const l = n || r, i =
|
|
730
|
+
}) => e === "single" ? /* @__PURE__ */ t(Ur, { ...n }) : /* @__PURE__ */ t($r, { ...n, variant: e }), Ke = (e) => e && typeof e == "string" ? e.includes("${") : !1, He = (e) => e.substring(2, e.length - 1), ae = (e, n, r, a) => {
|
|
731
|
+
const l = n || r, i = Ke(l) ? He(l) : l, s = a ? `${a}.${i}` : i;
|
|
729
732
|
return e(s || "");
|
|
730
|
-
},
|
|
733
|
+
}, je = (e, n) => ae(e, n.displayName, n.name), Hr = ["username", "firstName", "lastName", "email"], Ut = (e) => e && Hr.includes(e), X = (e) => `${Ut(e) ? "" : "attributes."}${e?.replaceAll(
|
|
731
734
|
".",
|
|
732
735
|
"🍺"
|
|
733
736
|
)}`, Wa = (e) => e.replaceAll(".", "🍺"), jr = (e) => e.replaceAll("🍺", ".");
|
|
@@ -735,11 +738,11 @@ function za(e, n, r) {
|
|
|
735
738
|
(e.responseData.errors !== void 0 ? e.responseData.errors : [e.responseData]).forEach((a) => {
|
|
736
739
|
const l = Object.assign(
|
|
737
740
|
{},
|
|
738
|
-
a.params?.map((i) =>
|
|
741
|
+
a.params?.map((i) => Ke(i) ? r(He(i)) : i)
|
|
739
742
|
);
|
|
740
743
|
n(X(a.field), {
|
|
741
744
|
message: r(
|
|
742
|
-
|
|
745
|
+
Ke(a.errorMessage) ? He(a.errorMessage) : a.errorMessage,
|
|
743
746
|
{
|
|
744
747
|
/* eslint-disable @typescript-eslint/no-misused-spread */
|
|
745
748
|
...l,
|
|
@@ -750,7 +753,7 @@ function za(e, n, r) {
|
|
|
750
753
|
});
|
|
751
754
|
});
|
|
752
755
|
}
|
|
753
|
-
function
|
|
756
|
+
function De({
|
|
754
757
|
required: e
|
|
755
758
|
}) {
|
|
756
759
|
return e;
|
|
@@ -771,7 +774,7 @@ const Ya = ({
|
|
|
771
774
|
labelIcon: a,
|
|
772
775
|
...l
|
|
773
776
|
}) => {
|
|
774
|
-
const s = r ?? (n ? "false" : !1), { control: o } =
|
|
777
|
+
const s = r ?? (n ? "false" : !1), { control: o } = Ae();
|
|
775
778
|
return /* @__PURE__ */ t(
|
|
776
779
|
Q,
|
|
777
780
|
{
|
|
@@ -786,8 +789,8 @@ const Ya = ({
|
|
|
786
789
|
control: o,
|
|
787
790
|
name: l.name,
|
|
788
791
|
defaultValue: s,
|
|
789
|
-
render: ({ field: { onChange:
|
|
790
|
-
|
|
792
|
+
render: ({ field: { onChange: d, value: c } }) => /* @__PURE__ */ t(
|
|
793
|
+
cn,
|
|
791
794
|
{
|
|
792
795
|
...l,
|
|
793
796
|
id: l.name,
|
|
@@ -795,9 +798,9 @@ const Ya = ({
|
|
|
795
798
|
label: e,
|
|
796
799
|
"aria-label": l.label,
|
|
797
800
|
isChecked: n ? c === "true" : c,
|
|
798
|
-
onChange: (
|
|
799
|
-
const
|
|
800
|
-
l.onChange?.(
|
|
801
|
+
onChange: (h, u) => {
|
|
802
|
+
const m = n ? u.toString() : u;
|
|
803
|
+
l.onChange?.(h, u), d(m);
|
|
801
804
|
}
|
|
802
805
|
}
|
|
803
806
|
)
|
|
@@ -806,7 +809,7 @@ const Ya = ({
|
|
|
806
809
|
}
|
|
807
810
|
);
|
|
808
811
|
}, Qa = (e) => {
|
|
809
|
-
const n = !!e.rules?.required, r = e.defaultValue ?? "", { field: a, fieldState: l } =
|
|
812
|
+
const n = !!e.rules?.required, r = e.defaultValue ?? "", { field: a, fieldState: l } = Re({
|
|
810
813
|
...e,
|
|
811
814
|
defaultValue: r
|
|
812
815
|
});
|
|
@@ -819,7 +822,7 @@ const Ya = ({
|
|
|
819
822
|
name: e.name,
|
|
820
823
|
error: l.error,
|
|
821
824
|
children: /* @__PURE__ */ t(
|
|
822
|
-
|
|
825
|
+
St,
|
|
823
826
|
{
|
|
824
827
|
isRequired: n,
|
|
825
828
|
id: e.name,
|
|
@@ -833,11 +836,11 @@ const Ya = ({
|
|
|
833
836
|
}
|
|
834
837
|
);
|
|
835
838
|
}, Xa = (e) => {
|
|
836
|
-
const { labelIcon: n, helperText: r, ...a } = e, l = !!ce(e.rules?.required), i = e.defaultValue ?? "", { field: s, fieldState: o } =
|
|
839
|
+
const { labelIcon: n, helperText: r, ...a } = e, l = !!ce(e.rules?.required), i = e.defaultValue ?? "", { field: s, fieldState: o } = Re({
|
|
837
840
|
...e,
|
|
838
841
|
defaultValue: i
|
|
839
842
|
});
|
|
840
|
-
return /* @__PURE__ */
|
|
843
|
+
return /* @__PURE__ */ I(
|
|
841
844
|
Q,
|
|
842
845
|
{
|
|
843
846
|
name: e.name,
|
|
@@ -847,7 +850,7 @@ const Ya = ({
|
|
|
847
850
|
error: o.error,
|
|
848
851
|
children: [
|
|
849
852
|
/* @__PURE__ */ t(
|
|
850
|
-
|
|
853
|
+
Te,
|
|
851
854
|
{
|
|
852
855
|
isRequired: l,
|
|
853
856
|
id: e.name,
|
|
@@ -858,12 +861,12 @@ const Ya = ({
|
|
|
858
861
|
...s
|
|
859
862
|
}
|
|
860
863
|
),
|
|
861
|
-
r && /* @__PURE__ */ t(
|
|
864
|
+
r && /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(Je, { children: r }) }) })
|
|
862
865
|
]
|
|
863
866
|
}
|
|
864
867
|
);
|
|
865
|
-
}, Gr =
|
|
866
|
-
const { labelIcon: n, ...r } = e, a = !!ce(e.rules?.required), l = e.defaultValue ?? "", { t: i } =
|
|
868
|
+
}, Gr = St, Za = (e) => {
|
|
869
|
+
const { labelIcon: n, ...r } = e, a = !!ce(e.rules?.required), l = e.defaultValue ?? "", { t: i } = q(), [s, o] = R(""), { field: d, fieldState: c } = Re({
|
|
867
870
|
...e,
|
|
868
871
|
defaultValue: l
|
|
869
872
|
});
|
|
@@ -876,7 +879,7 @@ const Ya = ({
|
|
|
876
879
|
isRequired: a,
|
|
877
880
|
error: c.error,
|
|
878
881
|
children: /* @__PURE__ */ t(
|
|
879
|
-
|
|
882
|
+
dn,
|
|
880
883
|
{
|
|
881
884
|
isRequired: a,
|
|
882
885
|
"data-testid": e["data-testid"] || e.name,
|
|
@@ -886,21 +889,21 @@ const Ya = ({
|
|
|
886
889
|
hideDefaultPreview: !0,
|
|
887
890
|
isDisabled: e.isDisabled,
|
|
888
891
|
type: "text",
|
|
889
|
-
onFileInputChange: (
|
|
890
|
-
|
|
892
|
+
onFileInputChange: (h, u) => {
|
|
893
|
+
d.onChange(u), o(u.name);
|
|
891
894
|
},
|
|
892
895
|
onClearClick: () => {
|
|
893
|
-
|
|
896
|
+
d.onChange(null), o("");
|
|
894
897
|
},
|
|
895
898
|
...r,
|
|
896
|
-
...
|
|
899
|
+
...d
|
|
897
900
|
}
|
|
898
901
|
)
|
|
899
902
|
}
|
|
900
903
|
);
|
|
901
904
|
}, el = ({ icon: e }) => {
|
|
902
905
|
const n = Wr(e);
|
|
903
|
-
return /* @__PURE__ */ t(
|
|
906
|
+
return /* @__PURE__ */ t(_e, { size: "lg", children: /* @__PURE__ */ t(n, { alt: e }) });
|
|
904
907
|
};
|
|
905
908
|
function Wr(e) {
|
|
906
909
|
switch (e) {
|
|
@@ -935,14 +938,14 @@ function Wr(e) {
|
|
|
935
938
|
}
|
|
936
939
|
const zr = "_title_180i0_2", Jr = {
|
|
937
940
|
title: zr
|
|
938
|
-
},
|
|
941
|
+
}, $t = ({
|
|
939
942
|
id: e,
|
|
940
943
|
title: n,
|
|
941
944
|
headingLevel: r = "h1",
|
|
942
945
|
size: a = "xl",
|
|
943
946
|
...l
|
|
944
947
|
}) => /* @__PURE__ */ t(
|
|
945
|
-
|
|
948
|
+
un,
|
|
946
949
|
{
|
|
947
950
|
headingLevel: r,
|
|
948
951
|
size: a,
|
|
@@ -958,70 +961,74 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
958
961
|
scrollId: r,
|
|
959
962
|
className: a
|
|
960
963
|
}) => {
|
|
961
|
-
const l =
|
|
962
|
-
return /* @__PURE__ */
|
|
963
|
-
/* @__PURE__ */ t(
|
|
964
|
-
/* @__PURE__ */ t(
|
|
964
|
+
const l = At();
|
|
965
|
+
return /* @__PURE__ */ I(hn, { id: l, className: a, isFlat: !0, children: [
|
|
966
|
+
/* @__PURE__ */ t(fn, { className: "kc-form-panel__header", children: /* @__PURE__ */ t(pn, { tabIndex: 0, children: /* @__PURE__ */ t($t, { id: r, title: e }) }) }),
|
|
967
|
+
/* @__PURE__ */ t(mn, { className: "kc-form-panel__body", children: n })
|
|
965
968
|
] });
|
|
966
969
|
}, Qr = (e) => {
|
|
967
970
|
const { title: n, children: r, scrollId: a, ...l } = e;
|
|
968
|
-
return /* @__PURE__ */ t("section", { ...l, style: { marginTop: "var(--pf-v5-global--spacer--lg)" }, children: /* @__PURE__ */
|
|
969
|
-
/* @__PURE__ */ t(
|
|
971
|
+
return /* @__PURE__ */ t("section", { ...l, style: { marginTop: "var(--pf-v5-global--spacer--lg)" }, children: /* @__PURE__ */ I(W, { children: [
|
|
972
|
+
/* @__PURE__ */ t($t, { id: a, title: n }),
|
|
970
973
|
r
|
|
971
974
|
] }) });
|
|
972
975
|
}, Xr = "_panel_1cdve_1", Zr = "_sticky_1cdve_5", ht = {
|
|
973
976
|
panel: Xr,
|
|
974
977
|
sticky: Zr
|
|
975
|
-
}, ea = "kc-main-content-page-container",
|
|
978
|
+
}, ea = "kc-main-content-page-container", Be = (e) => e.replace(/\s+/g, "-"), ta = ({
|
|
976
979
|
label: e,
|
|
977
980
|
sections: n,
|
|
978
981
|
borders: r = !1,
|
|
979
982
|
...a
|
|
980
983
|
}) => {
|
|
981
984
|
const l = U(
|
|
982
|
-
() => n.filter(({ isHidden:
|
|
985
|
+
() => n.filter(({ isHidden: o }) => !o),
|
|
983
986
|
[n]
|
|
984
|
-
);
|
|
985
|
-
return
|
|
986
|
-
|
|
987
|
-
|
|
987
|
+
), [i, s] = R(0);
|
|
988
|
+
return le(() => {
|
|
989
|
+
const o = document.getElementById(ea);
|
|
990
|
+
if (!o) return;
|
|
991
|
+
const d = 100, c = () => {
|
|
992
|
+
const h = o.scrollTop + d;
|
|
993
|
+
let u = 0;
|
|
994
|
+
l.forEach(({ title: m }, g) => {
|
|
995
|
+
const C = Be(m.toLowerCase()), E = document.getElementById(C);
|
|
996
|
+
E && h >= E.offsetTop && (u = g);
|
|
997
|
+
}), s(u);
|
|
998
|
+
};
|
|
999
|
+
return c(), o.addEventListener("scroll", c), () => o.removeEventListener("scroll", c);
|
|
1000
|
+
}, [l]), /* @__PURE__ */ I(gn, { hasGutter: !0, ...a, children: [
|
|
1001
|
+
/* @__PURE__ */ t(st, { md: 8, sm: 12, children: l.map(({ title: o, panel: d }) => {
|
|
1002
|
+
const c = Be(o.toLowerCase());
|
|
988
1003
|
return /* @__PURE__ */ t(Rt, { children: r ? /* @__PURE__ */ t(
|
|
989
1004
|
Yr,
|
|
990
1005
|
{
|
|
991
|
-
scrollId:
|
|
992
|
-
title:
|
|
1006
|
+
scrollId: c,
|
|
1007
|
+
title: o,
|
|
993
1008
|
className: ht.panel,
|
|
994
|
-
children:
|
|
1009
|
+
children: d
|
|
995
1010
|
}
|
|
996
|
-
) : /* @__PURE__ */ t(Qr, { scrollId:
|
|
1011
|
+
) : /* @__PURE__ */ t(Qr, { scrollId: c, title: o, children: d }) }, o);
|
|
997
1012
|
}) }),
|
|
998
|
-
/* @__PURE__ */ t(st, { md: 4, sm: 12, order: { default: "-1", md: "1" }, children: /* @__PURE__ */ t(
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
"data-testid": `jump-link-${s}`,
|
|
1018
|
-
children: i
|
|
1019
|
-
},
|
|
1020
|
-
i
|
|
1021
|
-
);
|
|
1022
|
-
})
|
|
1023
|
-
}
|
|
1024
|
-
) }) })
|
|
1013
|
+
/* @__PURE__ */ t(st, { md: 4, sm: 12, order: { default: "-1", md: "1" }, children: /* @__PURE__ */ t(yn, { className: ht.sticky, children: /* @__PURE__ */ t(vn, { isVertical: !0, label: e, children: l.map(({ title: o }, d) => {
|
|
1014
|
+
const c = Be(o.toLowerCase());
|
|
1015
|
+
return /* @__PURE__ */ t(
|
|
1016
|
+
bn,
|
|
1017
|
+
{
|
|
1018
|
+
isActive: i === d,
|
|
1019
|
+
onClick: () => {
|
|
1020
|
+
const h = document.getElementById(c);
|
|
1021
|
+
h && h.scrollIntoView({
|
|
1022
|
+
behavior: "smooth",
|
|
1023
|
+
block: "start"
|
|
1024
|
+
});
|
|
1025
|
+
},
|
|
1026
|
+
"data-testid": `jump-link-${c}`,
|
|
1027
|
+
children: o
|
|
1028
|
+
},
|
|
1029
|
+
o
|
|
1030
|
+
);
|
|
1031
|
+
}) }) }) })
|
|
1025
1032
|
] });
|
|
1026
1033
|
}, na = (e, n, r) => (e.isValid || r) && (e.isDirty || n) && !e.isLoading && !e.isValidating && !e.isSubmitting, tl = ({
|
|
1027
1034
|
formState: e,
|
|
@@ -1031,10 +1038,10 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1031
1038
|
children: l,
|
|
1032
1039
|
...i
|
|
1033
1040
|
}) => /* @__PURE__ */ t(
|
|
1034
|
-
|
|
1041
|
+
_,
|
|
1035
1042
|
{
|
|
1036
1043
|
variant: "primary",
|
|
1037
|
-
isDisabled:
|
|
1044
|
+
isDisabled: !na(e, a, r) || n,
|
|
1038
1045
|
...i,
|
|
1039
1046
|
type: "submit",
|
|
1040
1047
|
children: l
|
|
@@ -1058,7 +1065,7 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1058
1065
|
})).sort((i, s) => i.value.localeCompare(s.value, a)),
|
|
1059
1066
|
[r, a, e]
|
|
1060
1067
|
);
|
|
1061
|
-
return l.length ? /* @__PURE__ */ t(
|
|
1068
|
+
return l.length ? /* @__PURE__ */ t(fr, { ...n, children: /* @__PURE__ */ t(
|
|
1062
1069
|
Kr,
|
|
1063
1070
|
{
|
|
1064
1071
|
"data-testid": "locale-select",
|
|
@@ -1069,7 +1076,7 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1069
1076
|
variant: l.length >= 10 ? "typeahead" : "single"
|
|
1070
1077
|
}
|
|
1071
1078
|
) }) : null;
|
|
1072
|
-
},
|
|
1079
|
+
}, me = ({
|
|
1073
1080
|
t: e,
|
|
1074
1081
|
form: n,
|
|
1075
1082
|
attribute: r,
|
|
@@ -1081,24 +1088,24 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1081
1088
|
r.annotations?.inputHelperTextBefore
|
|
1082
1089
|
), {
|
|
1083
1090
|
formState: { errors: s }
|
|
1084
|
-
} = n, o = a?.(r),
|
|
1085
|
-
return /* @__PURE__ */
|
|
1086
|
-
|
|
1091
|
+
} = n, o = a?.(r), d = N(s, X(r.name));
|
|
1092
|
+
return /* @__PURE__ */ I(
|
|
1093
|
+
Ct,
|
|
1087
1094
|
{
|
|
1088
|
-
label:
|
|
1095
|
+
label: je(e, r) || "",
|
|
1089
1096
|
fieldId: r.name,
|
|
1090
|
-
isRequired:
|
|
1097
|
+
isRequired: De(r),
|
|
1091
1098
|
labelIcon: i ? /* @__PURE__ */ t(_t, { helpText: i, fieldLabelId: r.name }) : void 0,
|
|
1092
1099
|
children: [
|
|
1093
|
-
o ? /* @__PURE__ */
|
|
1100
|
+
o ? /* @__PURE__ */ I(Se, { children: [
|
|
1094
1101
|
l,
|
|
1095
1102
|
o
|
|
1096
1103
|
] }) : l,
|
|
1097
|
-
|
|
1104
|
+
d && /* @__PURE__ */ t(
|
|
1098
1105
|
Nt,
|
|
1099
1106
|
{
|
|
1100
1107
|
"data-testid": `${r.name}-helper`,
|
|
1101
|
-
message:
|
|
1108
|
+
message: d.message
|
|
1102
1109
|
}
|
|
1103
1110
|
)
|
|
1104
1111
|
]
|
|
@@ -1111,17 +1118,18 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1111
1118
|
attribute: r,
|
|
1112
1119
|
renderer: a,
|
|
1113
1120
|
...l
|
|
1114
|
-
}) => /* @__PURE__ */ t(
|
|
1121
|
+
}) => /* @__PURE__ */ t(me, { t: e, form: n, attribute: r, renderer: a, children: /* @__PURE__ */ t(
|
|
1115
1122
|
ia,
|
|
1116
1123
|
{
|
|
1117
1124
|
t: e,
|
|
1118
1125
|
form: n,
|
|
1119
|
-
"aria-label":
|
|
1126
|
+
"aria-label": je(e, r),
|
|
1120
1127
|
name: X(r.name),
|
|
1121
1128
|
defaultValue: [r.defaultValue || ""],
|
|
1122
1129
|
addButtonLabel: e("addMultivaluedLabel", {
|
|
1123
|
-
fieldLabel:
|
|
1130
|
+
fieldLabel: je(e, r)
|
|
1124
1131
|
}),
|
|
1132
|
+
isDisabled: r.readOnly,
|
|
1125
1133
|
...l
|
|
1126
1134
|
}
|
|
1127
1135
|
) }), ia = ({
|
|
@@ -1133,58 +1141,58 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1133
1141
|
isDisabled: i = !1,
|
|
1134
1142
|
defaultValue: s,
|
|
1135
1143
|
id: o,
|
|
1136
|
-
...
|
|
1144
|
+
...d
|
|
1137
1145
|
}) => {
|
|
1138
|
-
const { register: c, setValue:
|
|
1146
|
+
const { register: c, setValue: h, control: u } = a, m = pr({
|
|
1139
1147
|
name: n,
|
|
1140
|
-
control:
|
|
1148
|
+
control: u,
|
|
1141
1149
|
defaultValue: s || ""
|
|
1142
|
-
}),
|
|
1143
|
-
|
|
1144
|
-
},
|
|
1145
|
-
|
|
1146
|
-
},
|
|
1147
|
-
|
|
1148
|
-
},
|
|
1149
|
-
const
|
|
1150
|
-
|
|
1150
|
+
}), g = U(() => Array.isArray(m) && m.length !== 0 ? m : s || [""], [m]), C = (A) => {
|
|
1151
|
+
f([...g.slice(0, A), ...g.slice(A + 1)]);
|
|
1152
|
+
}, E = () => {
|
|
1153
|
+
f([...g, ""]);
|
|
1154
|
+
}, v = (A, w) => {
|
|
1155
|
+
f([...g.slice(0, A), w, ...g.slice(A + 1)]);
|
|
1156
|
+
}, f = (A) => {
|
|
1157
|
+
const w = A.flatMap((y) => y);
|
|
1158
|
+
h(n, w, {
|
|
1151
1159
|
shouldDirty: !0
|
|
1152
1160
|
});
|
|
1153
|
-
},
|
|
1154
|
-
return
|
|
1161
|
+
}, b = r.startsWith("html") ? r.substring(6) : "text";
|
|
1162
|
+
return le(() => {
|
|
1155
1163
|
c(n);
|
|
1156
|
-
}, [c]), /* @__PURE__ */ t("div", { id: o, children:
|
|
1157
|
-
/* @__PURE__ */
|
|
1158
|
-
/* @__PURE__ */ t(
|
|
1159
|
-
|
|
1164
|
+
}, [c]), /* @__PURE__ */ t("div", { id: o, children: g.map((A, w) => /* @__PURE__ */ I(Rt, { children: [
|
|
1165
|
+
/* @__PURE__ */ I(Se, { children: [
|
|
1166
|
+
/* @__PURE__ */ t(qe, { isFill: !0, children: /* @__PURE__ */ t(
|
|
1167
|
+
Te,
|
|
1160
1168
|
{
|
|
1161
|
-
"data-testid": n +
|
|
1162
|
-
onChange: (
|
|
1163
|
-
name: `${n}.${
|
|
1169
|
+
"data-testid": n + w,
|
|
1170
|
+
onChange: (y, T) => v(w, T),
|
|
1171
|
+
name: `${n}.${w}.value`,
|
|
1164
1172
|
value: A,
|
|
1165
1173
|
isDisabled: i,
|
|
1166
|
-
type:
|
|
1167
|
-
...
|
|
1174
|
+
type: b,
|
|
1175
|
+
...d
|
|
1168
1176
|
}
|
|
1169
1177
|
) }),
|
|
1170
|
-
/* @__PURE__ */ t(
|
|
1171
|
-
|
|
1178
|
+
/* @__PURE__ */ t(qe, { children: /* @__PURE__ */ t(
|
|
1179
|
+
_,
|
|
1172
1180
|
{
|
|
1173
|
-
"data-testid": "remove" +
|
|
1174
|
-
variant:
|
|
1175
|
-
onClick: () => C(
|
|
1181
|
+
"data-testid": "remove" + w,
|
|
1182
|
+
variant: Ie.link,
|
|
1183
|
+
onClick: () => C(w),
|
|
1176
1184
|
tabIndex: -1,
|
|
1177
1185
|
"aria-label": e("remove"),
|
|
1178
|
-
isDisabled:
|
|
1186
|
+
isDisabled: g.length === 1 || i,
|
|
1179
1187
|
children: /* @__PURE__ */ t(or, {})
|
|
1180
1188
|
}
|
|
1181
1189
|
) })
|
|
1182
1190
|
] }),
|
|
1183
|
-
|
|
1184
|
-
|
|
1191
|
+
w === g.length - 1 && /* @__PURE__ */ I(
|
|
1192
|
+
_,
|
|
1185
1193
|
{
|
|
1186
|
-
variant:
|
|
1187
|
-
onClick:
|
|
1194
|
+
variant: Ie.link,
|
|
1195
|
+
onClick: E,
|
|
1188
1196
|
tabIndex: -1,
|
|
1189
1197
|
"aria-label": e("add"),
|
|
1190
1198
|
"data-testid": "addValue",
|
|
@@ -1196,32 +1204,32 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1196
1204
|
]
|
|
1197
1205
|
}
|
|
1198
1206
|
)
|
|
1199
|
-
] },
|
|
1200
|
-
},
|
|
1201
|
-
const { form: n, inputType: r, attribute: a } = e, l =
|
|
1202
|
-
return /* @__PURE__ */ t(
|
|
1207
|
+
] }, w)) });
|
|
1208
|
+
}, ft = (e) => {
|
|
1209
|
+
const { form: n, inputType: r, attribute: a } = e, l = De(a), i = r.startsWith("multiselect"), s = i ? Cn : kn, o = a.validators?.options?.options || [], d = a.annotations?.inputOptionLabels || {}, c = a.annotations?.inputOptionLabelsI18nPrefix;
|
|
1210
|
+
return /* @__PURE__ */ t(me, { ...e, children: /* @__PURE__ */ t(
|
|
1203
1211
|
oe,
|
|
1204
1212
|
{
|
|
1205
1213
|
name: X(a.name),
|
|
1206
1214
|
control: n.control,
|
|
1207
1215
|
defaultValue: a.defaultValue,
|
|
1208
|
-
render: ({ field:
|
|
1216
|
+
render: ({ field: h }) => /* @__PURE__ */ t(W, { children: o.map((u) => /* @__PURE__ */ t(
|
|
1209
1217
|
s,
|
|
1210
1218
|
{
|
|
1211
|
-
id:
|
|
1212
|
-
"data-testid":
|
|
1213
|
-
label: ae(e.t,
|
|
1214
|
-
value:
|
|
1215
|
-
isChecked:
|
|
1219
|
+
id: u,
|
|
1220
|
+
"data-testid": u,
|
|
1221
|
+
label: ae(e.t, d[u], u, c),
|
|
1222
|
+
value: u,
|
|
1223
|
+
isChecked: h.value?.includes(u),
|
|
1216
1224
|
onChange: () => {
|
|
1217
|
-
i ?
|
|
1218
|
-
|
|
1219
|
-
) :
|
|
1225
|
+
i ? h.value?.includes(u) ? h.onChange(
|
|
1226
|
+
h.value?.filter((m) => m !== u)
|
|
1227
|
+
) : h.onChange([...h.value || [], u]) : h.onChange([u]);
|
|
1220
1228
|
},
|
|
1221
1229
|
readOnly: a.readOnly,
|
|
1222
1230
|
isRequired: l
|
|
1223
1231
|
},
|
|
1224
|
-
|
|
1232
|
+
u
|
|
1225
1233
|
)) })
|
|
1226
1234
|
}
|
|
1227
1235
|
) });
|
|
@@ -1234,55 +1242,55 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1234
1242
|
menuAppendTo: i,
|
|
1235
1243
|
direction: s,
|
|
1236
1244
|
width: o,
|
|
1237
|
-
maxHeight:
|
|
1245
|
+
maxHeight: d,
|
|
1238
1246
|
toggleIcon: c,
|
|
1239
|
-
className:
|
|
1240
|
-
isDisabled:
|
|
1241
|
-
children:
|
|
1242
|
-
...
|
|
1247
|
+
className: h,
|
|
1248
|
+
isDisabled: u,
|
|
1249
|
+
children: m,
|
|
1250
|
+
...g
|
|
1243
1251
|
}) => {
|
|
1244
|
-
const [C,
|
|
1245
|
-
|
|
1246
|
-
},
|
|
1247
|
-
|
|
1252
|
+
const [C, E] = R(!1), v = Y(), f = () => {
|
|
1253
|
+
E(!C), n(!C);
|
|
1254
|
+
}, b = () => i === "parent" && v.current?.parentElement || "inline", A = Dt.toArray(
|
|
1255
|
+
m
|
|
1248
1256
|
);
|
|
1249
1257
|
return /* @__PURE__ */ t(
|
|
1250
|
-
|
|
1258
|
+
xe,
|
|
1251
1259
|
{
|
|
1252
|
-
ref:
|
|
1253
|
-
maxMenuHeight:
|
|
1260
|
+
ref: v,
|
|
1261
|
+
maxMenuHeight: we(d),
|
|
1254
1262
|
isScrollable: !0,
|
|
1255
1263
|
popperProps: {
|
|
1256
|
-
appendTo:
|
|
1264
|
+
appendTo: b(),
|
|
1257
1265
|
direction: s,
|
|
1258
|
-
width:
|
|
1266
|
+
width: we(o)
|
|
1259
1267
|
},
|
|
1260
|
-
...
|
|
1261
|
-
onClick:
|
|
1262
|
-
onOpenChange: (
|
|
1263
|
-
|
|
1268
|
+
...g,
|
|
1269
|
+
onClick: f,
|
|
1270
|
+
onOpenChange: (w) => {
|
|
1271
|
+
w !== C && f();
|
|
1264
1272
|
},
|
|
1265
1273
|
selected: a,
|
|
1266
|
-
onSelect: (
|
|
1267
|
-
r?.(
|
|
1274
|
+
onSelect: (w, y) => {
|
|
1275
|
+
r?.(y || ""), f();
|
|
1268
1276
|
},
|
|
1269
|
-
toggle: (
|
|
1277
|
+
toggle: (w) => /* @__PURE__ */ t(
|
|
1270
1278
|
pe,
|
|
1271
1279
|
{
|
|
1272
1280
|
id: e,
|
|
1273
|
-
ref:
|
|
1274
|
-
className:
|
|
1275
|
-
onClick:
|
|
1281
|
+
ref: w,
|
|
1282
|
+
className: h,
|
|
1283
|
+
onClick: f,
|
|
1276
1284
|
isExpanded: l,
|
|
1277
|
-
"aria-label":
|
|
1285
|
+
"aria-label": g["aria-label"],
|
|
1278
1286
|
icon: c,
|
|
1279
|
-
isDisabled:
|
|
1287
|
+
isDisabled: u,
|
|
1280
1288
|
isFullWidth: !0,
|
|
1281
|
-
children: A.find((
|
|
1289
|
+
children: A.find((y) => y.props.value === a)?.props.children || a || g["aria-label"]
|
|
1282
1290
|
}
|
|
1283
1291
|
),
|
|
1284
1292
|
isOpen: l,
|
|
1285
|
-
children: /* @__PURE__ */ t(Ee, { children:
|
|
1293
|
+
children: /* @__PURE__ */ t(Ee, { children: m })
|
|
1286
1294
|
}
|
|
1287
1295
|
);
|
|
1288
1296
|
}, oa = ({
|
|
@@ -1294,31 +1302,35 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1294
1302
|
validated: i,
|
|
1295
1303
|
placeholderText: s,
|
|
1296
1304
|
maxHeight: o,
|
|
1297
|
-
width:
|
|
1305
|
+
width: d,
|
|
1298
1306
|
toggleIcon: c,
|
|
1299
|
-
direction:
|
|
1300
|
-
selections:
|
|
1301
|
-
typeAheadAriaLabel:
|
|
1302
|
-
chipGroupComponent:
|
|
1307
|
+
direction: h,
|
|
1308
|
+
selections: u,
|
|
1309
|
+
typeAheadAriaLabel: m,
|
|
1310
|
+
chipGroupComponent: g,
|
|
1303
1311
|
chipGroupProps: C,
|
|
1304
|
-
footer:
|
|
1305
|
-
isDisabled:
|
|
1306
|
-
children:
|
|
1307
|
-
...
|
|
1312
|
+
footer: E,
|
|
1313
|
+
isDisabled: v,
|
|
1314
|
+
children: f,
|
|
1315
|
+
...b
|
|
1308
1316
|
}) => {
|
|
1309
|
-
const [A,
|
|
1310
|
-
|
|
1311
|
-
), D = () => {
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1317
|
+
const [A, w] = R(""), [y, T] = R(0), P = Y(), O = Dt.toArray(
|
|
1318
|
+
f
|
|
1319
|
+
), D = a || !A ? O : O.filter((L) => {
|
|
1320
|
+
const { children: p, value: k } = L.props;
|
|
1321
|
+
return (typeof p == "string" ? p : String(k ?? "")).toLowerCase().includes(A.toLowerCase());
|
|
1322
|
+
}), $ = () => {
|
|
1323
|
+
r(!b.isOpen);
|
|
1324
|
+
}, j = (L) => {
|
|
1325
|
+
const p = D.at(y);
|
|
1326
|
+
switch (r(!0), L.key) {
|
|
1316
1327
|
case "Enter": {
|
|
1317
|
-
|
|
1328
|
+
if (L.preventDefault(), !p) break;
|
|
1329
|
+
l !== J.typeaheadMulti ? w(String(p.props.value)) : w(""), n?.(p.props.value), r(!1), T(0);
|
|
1318
1330
|
break;
|
|
1319
1331
|
}
|
|
1320
1332
|
case "Escape": {
|
|
1321
|
-
r
|
|
1333
|
+
r(!1);
|
|
1322
1334
|
break;
|
|
1323
1335
|
}
|
|
1324
1336
|
case "Backspace": {
|
|
@@ -1327,71 +1339,71 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1327
1339
|
}
|
|
1328
1340
|
case "ArrowUp":
|
|
1329
1341
|
case "ArrowDown": {
|
|
1330
|
-
|
|
1331
|
-
let
|
|
1332
|
-
|
|
1342
|
+
if (L.preventDefault(), D.length === 0) break;
|
|
1343
|
+
let k = 0;
|
|
1344
|
+
L.key === "ArrowUp" && (y === 0 ? k = D.length - 1 : k = y - 1), L.key === "ArrowDown" && (y === D.length - 1 ? k = 0 : k = y + 1), T(k);
|
|
1333
1345
|
break;
|
|
1334
1346
|
}
|
|
1335
1347
|
}
|
|
1336
1348
|
};
|
|
1337
|
-
return /* @__PURE__ */
|
|
1338
|
-
|
|
1349
|
+
return /* @__PURE__ */ I(
|
|
1350
|
+
xe,
|
|
1339
1351
|
{
|
|
1340
|
-
...
|
|
1341
|
-
onClick:
|
|
1342
|
-
onOpenChange: (
|
|
1343
|
-
onSelect: (
|
|
1344
|
-
n?.(
|
|
1352
|
+
...b,
|
|
1353
|
+
onClick: $,
|
|
1354
|
+
onOpenChange: (L) => r(L),
|
|
1355
|
+
onSelect: (L, p) => {
|
|
1356
|
+
n?.(p || ""), a?.(""), w("");
|
|
1345
1357
|
},
|
|
1346
|
-
maxMenuHeight:
|
|
1347
|
-
popperProps: { direction:
|
|
1348
|
-
toggle: (
|
|
1358
|
+
maxMenuHeight: we(o),
|
|
1359
|
+
popperProps: { direction: h, width: we(d) },
|
|
1360
|
+
toggle: (L) => /* @__PURE__ */ t(
|
|
1349
1361
|
pe,
|
|
1350
1362
|
{
|
|
1351
|
-
ref:
|
|
1363
|
+
ref: L,
|
|
1352
1364
|
id: e,
|
|
1353
1365
|
variant: "typeahead",
|
|
1354
|
-
onClick: () => r
|
|
1366
|
+
onClick: () => r(!0),
|
|
1355
1367
|
icon: c,
|
|
1356
|
-
isDisabled:
|
|
1357
|
-
isExpanded:
|
|
1368
|
+
isDisabled: v,
|
|
1369
|
+
isExpanded: b.isOpen,
|
|
1358
1370
|
isFullWidth: !0,
|
|
1359
|
-
status: i === "error" ?
|
|
1360
|
-
children: /* @__PURE__ */
|
|
1371
|
+
status: i === "error" ? Qe.danger : void 0,
|
|
1372
|
+
children: /* @__PURE__ */ I(kt, { isPlain: !0, children: [
|
|
1361
1373
|
/* @__PURE__ */ t(
|
|
1362
|
-
|
|
1374
|
+
It,
|
|
1363
1375
|
{
|
|
1364
1376
|
placeholder: s,
|
|
1365
|
-
value: l === J.typeahead &&
|
|
1366
|
-
onClick:
|
|
1367
|
-
onChange: (
|
|
1368
|
-
|
|
1377
|
+
value: l === J.typeahead && u ? u : A,
|
|
1378
|
+
onClick: $,
|
|
1379
|
+
onChange: (p, k) => {
|
|
1380
|
+
w(k), T(0), a?.(k);
|
|
1369
1381
|
},
|
|
1370
|
-
onKeyDown: (
|
|
1382
|
+
onKeyDown: (p) => j(p),
|
|
1371
1383
|
autoComplete: "off",
|
|
1372
|
-
innerRef:
|
|
1384
|
+
innerRef: P,
|
|
1373
1385
|
role: "combobox",
|
|
1374
|
-
isExpanded:
|
|
1386
|
+
isExpanded: b.isOpen,
|
|
1375
1387
|
"aria-controls": "select-typeahead-listbox",
|
|
1376
|
-
"aria-label":
|
|
1377
|
-
children: l === J.typeaheadMulti && Array.isArray(
|
|
1378
|
-
|
|
1388
|
+
"aria-label": m,
|
|
1389
|
+
children: l === J.typeaheadMulti && Array.isArray(u) && (g || /* @__PURE__ */ t(Xe, { ...C, children: u.map((p, k) => /* @__PURE__ */ t(
|
|
1390
|
+
Ze,
|
|
1379
1391
|
{
|
|
1380
1392
|
onClick: (x) => {
|
|
1381
|
-
x.stopPropagation(), n?.(
|
|
1393
|
+
x.stopPropagation(), n?.(p);
|
|
1382
1394
|
},
|
|
1383
|
-
children:
|
|
1395
|
+
children: p
|
|
1384
1396
|
},
|
|
1385
|
-
|
|
1397
|
+
k
|
|
1386
1398
|
)) }))
|
|
1387
1399
|
}
|
|
1388
1400
|
),
|
|
1389
|
-
/* @__PURE__ */ t(
|
|
1390
|
-
|
|
1401
|
+
/* @__PURE__ */ t(wt, { children: !!A && /* @__PURE__ */ t(
|
|
1402
|
+
_,
|
|
1391
1403
|
{
|
|
1392
1404
|
variant: "plain",
|
|
1393
1405
|
onClick: () => {
|
|
1394
|
-
n?.(""),
|
|
1406
|
+
n?.(""), w(""), a?.(""), P.current?.focus();
|
|
1395
1407
|
},
|
|
1396
1408
|
"aria-label": "Clear input value",
|
|
1397
1409
|
children: /* @__PURE__ */ t(Ft, { "aria-hidden": !0 })
|
|
@@ -1401,60 +1413,60 @@ const zr = "_title_180i0_2", Jr = {
|
|
|
1401
1413
|
}
|
|
1402
1414
|
),
|
|
1403
1415
|
children: [
|
|
1404
|
-
/* @__PURE__ */ t(Ee, { children:
|
|
1405
|
-
|
|
1416
|
+
/* @__PURE__ */ t(Ee, { children: D }),
|
|
1417
|
+
E && /* @__PURE__ */ t(In, { children: E })
|
|
1406
1418
|
]
|
|
1407
1419
|
}
|
|
1408
1420
|
);
|
|
1409
1421
|
};
|
|
1410
1422
|
var J = /* @__PURE__ */ ((e) => (e.single = "single", e.typeahead = "typeahead", e.typeaheadMulti = "typeaheadMulti", e))(J || {});
|
|
1411
|
-
const
|
|
1423
|
+
const we = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
1412
1424
|
variant: e = "single",
|
|
1413
1425
|
...n
|
|
1414
|
-
}) => e === "single" ? /* @__PURE__ */ t(sa, { ...n }) : /* @__PURE__ */ t(oa, { ...n, variant: e }),
|
|
1415
|
-
const { t: n, form: r, inputType: a, attribute: l } = e, [i, s] =
|
|
1416
|
-
c ?
|
|
1417
|
-
},
|
|
1418
|
-
(
|
|
1419
|
-
).map((
|
|
1420
|
-
|
|
1426
|
+
}) => e === "single" ? /* @__PURE__ */ t(sa, { ...n }) : /* @__PURE__ */ t(oa, { ...n, variant: e }), pt = (e) => {
|
|
1427
|
+
const { t: n, form: r, inputType: a, attribute: l } = e, [i, s] = R(!1), [o, d] = R(""), c = a === "multiselect", h = (v, f) => {
|
|
1428
|
+
c ? f.value?.includes(v) ? f.onChange(f.value.filter((b) => b !== v)) : Array.isArray(f.value) ? f.onChange([...f.value, v]) : f.onChange([v]) : f.onChange(v === f.value ? "" : v);
|
|
1429
|
+
}, u = l.validators?.options?.options || [], m = l.annotations?.inputOptionLabels || {}, g = l.annotations?.inputOptionLabelsI18nPrefix, C = (v) => ae(e.t, m[v], v, g), E = (v) => u.filter(
|
|
1430
|
+
(f) => C(f).toLowerCase().includes(o.toLowerCase())
|
|
1431
|
+
).map((f) => /* @__PURE__ */ t(
|
|
1432
|
+
Ye,
|
|
1421
1433
|
{
|
|
1422
|
-
selected: Array.isArray(
|
|
1423
|
-
value:
|
|
1424
|
-
children: C(
|
|
1434
|
+
selected: Array.isArray(v) ? v.includes(f) : v === f,
|
|
1435
|
+
value: f,
|
|
1436
|
+
children: C(f)
|
|
1425
1437
|
},
|
|
1426
|
-
|
|
1438
|
+
f
|
|
1427
1439
|
));
|
|
1428
|
-
return /* @__PURE__ */ t(
|
|
1440
|
+
return /* @__PURE__ */ t(me, { ...e, children: /* @__PURE__ */ t(
|
|
1429
1441
|
oe,
|
|
1430
1442
|
{
|
|
1431
1443
|
name: X(l.name),
|
|
1432
1444
|
defaultValue: l.defaultValue,
|
|
1433
1445
|
control: r.control,
|
|
1434
|
-
render: ({ field:
|
|
1446
|
+
render: ({ field: v }) => /* @__PURE__ */ t(
|
|
1435
1447
|
ca,
|
|
1436
1448
|
{
|
|
1437
1449
|
toggleId: l.name,
|
|
1438
|
-
onToggle: (
|
|
1439
|
-
onClear: () =>
|
|
1440
|
-
onSelect: (
|
|
1441
|
-
const
|
|
1442
|
-
|
|
1450
|
+
onToggle: (f) => s(f),
|
|
1451
|
+
onClear: () => h("", v),
|
|
1452
|
+
onSelect: (f) => {
|
|
1453
|
+
const b = f.toString();
|
|
1454
|
+
h(b, v), Array.isArray(v.value) || s(!1);
|
|
1443
1455
|
},
|
|
1444
|
-
selections: c && Array.isArray(
|
|
1445
|
-
variant: c ? J.typeaheadMulti :
|
|
1456
|
+
selections: c && Array.isArray(v.value) ? v.value.map((f) => C(f)) : C(v.value),
|
|
1457
|
+
variant: c ? J.typeaheadMulti : u.length >= 10 ? J.typeahead : J.single,
|
|
1446
1458
|
"aria-label": n("selectOne"),
|
|
1447
1459
|
isOpen: i,
|
|
1448
1460
|
isDisabled: l.readOnly,
|
|
1449
|
-
onFilter: (
|
|
1450
|
-
children:
|
|
1461
|
+
onFilter: (f) => (d(f), E(v.value)),
|
|
1462
|
+
children: E(v.value)
|
|
1451
1463
|
}
|
|
1452
1464
|
)
|
|
1453
1465
|
}
|
|
1454
1466
|
) });
|
|
1455
1467
|
}, da = (e) => {
|
|
1456
|
-
const { form: n, attribute: r } = e, a =
|
|
1457
|
-
return /* @__PURE__ */ t(
|
|
1468
|
+
const { form: n, attribute: r } = e, a = De(r);
|
|
1469
|
+
return /* @__PURE__ */ t(me, { ...e, children: /* @__PURE__ */ t(
|
|
1458
1470
|
Gr,
|
|
1459
1471
|
{
|
|
1460
1472
|
id: r.name,
|
|
@@ -1468,9 +1480,9 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1468
1480
|
}
|
|
1469
1481
|
) });
|
|
1470
1482
|
}, K = (e) => {
|
|
1471
|
-
const { form: n, inputType: r, attribute: a } = e, l =
|
|
1472
|
-
return /* @__PURE__ */ t(
|
|
1473
|
-
|
|
1483
|
+
const { form: n, inputType: r, attribute: a } = e, l = De(a), i = r.startsWith("html") ? r.substring(6) : "text";
|
|
1484
|
+
return /* @__PURE__ */ t(me, { ...e, children: /* @__PURE__ */ t(
|
|
1485
|
+
Te,
|
|
1474
1486
|
{
|
|
1475
1487
|
id: a.name,
|
|
1476
1488
|
"data-testid": a.name,
|
|
@@ -1487,13 +1499,13 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1487
1499
|
...n.register(X(a.name))
|
|
1488
1500
|
}
|
|
1489
1501
|
) });
|
|
1490
|
-
},
|
|
1502
|
+
}, Ge = {
|
|
1491
1503
|
text: K,
|
|
1492
1504
|
textarea: da,
|
|
1493
|
-
select:
|
|
1494
|
-
"select-radiobuttons":
|
|
1495
|
-
multiselect:
|
|
1496
|
-
"multiselect-checkboxes":
|
|
1505
|
+
select: pt,
|
|
1506
|
+
"select-radiobuttons": ft,
|
|
1507
|
+
multiselect: pt,
|
|
1508
|
+
"multiselect-checkboxes": ft,
|
|
1497
1509
|
"html5-email": K,
|
|
1498
1510
|
"html5-tel": K,
|
|
1499
1511
|
"html5-url": K,
|
|
@@ -1516,15 +1528,15 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1516
1528
|
const o = U(() => {
|
|
1517
1529
|
if (!r.attributes)
|
|
1518
1530
|
return [];
|
|
1519
|
-
const
|
|
1531
|
+
const d = i ? r.attributes.filter(({ readOnly: c }) => !c) : r.attributes;
|
|
1520
1532
|
return [
|
|
1521
1533
|
// Insert an empty group for attributes without a group.
|
|
1522
1534
|
{ name: void 0 },
|
|
1523
1535
|
...r.groups ?? []
|
|
1524
1536
|
].map((c) => ({
|
|
1525
1537
|
group: c,
|
|
1526
|
-
attributes:
|
|
1527
|
-
(
|
|
1538
|
+
attributes: d.filter(
|
|
1539
|
+
(h) => h.group === c.name
|
|
1528
1540
|
)
|
|
1529
1541
|
}));
|
|
1530
1542
|
}, [
|
|
@@ -1536,11 +1548,11 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1536
1548
|
ta,
|
|
1537
1549
|
{
|
|
1538
1550
|
label: e("jumpToSection"),
|
|
1539
|
-
sections: o.filter((
|
|
1540
|
-
title: ae(e,
|
|
1541
|
-
panel: /* @__PURE__ */
|
|
1542
|
-
|
|
1543
|
-
c.map((
|
|
1551
|
+
sections: o.filter((d) => d.attributes.length > 0).map(({ group: d, attributes: c }) => ({
|
|
1552
|
+
title: ae(e, d.displayHeader, d.name) || e("general"),
|
|
1553
|
+
panel: /* @__PURE__ */ I("div", { className: "pf-v5-c-form", children: [
|
|
1554
|
+
d.displayDescription && /* @__PURE__ */ t(Ce, { className: "pf-v5-u-pb-lg", children: ae(e, d.displayDescription, "") }),
|
|
1555
|
+
c.map((h) => /* @__PURE__ */ t(
|
|
1544
1556
|
ua,
|
|
1545
1557
|
{
|
|
1546
1558
|
t: e,
|
|
@@ -1548,9 +1560,9 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1548
1560
|
supportedLocales: a,
|
|
1549
1561
|
currentLocale: l,
|
|
1550
1562
|
renderer: s,
|
|
1551
|
-
attribute:
|
|
1563
|
+
attribute: h
|
|
1552
1564
|
},
|
|
1553
|
-
|
|
1565
|
+
h.name
|
|
1554
1566
|
))
|
|
1555
1567
|
] })
|
|
1556
1568
|
}))
|
|
@@ -1566,7 +1578,7 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1566
1578
|
}) => {
|
|
1567
1579
|
const s = n.watch(
|
|
1568
1580
|
X(i.name)
|
|
1569
|
-
), o = U(() =>
|
|
1581
|
+
), o = U(() => fa(i), [i]), d = i.multivalued || ma(s) && i.annotations?.inputType === void 0 ? Ge["multi-input"] : Ge[o];
|
|
1570
1582
|
return i.name === "locale" ? /* @__PURE__ */ t(
|
|
1571
1583
|
aa,
|
|
1572
1584
|
{
|
|
@@ -1577,7 +1589,7 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1577
1589
|
attribute: i
|
|
1578
1590
|
}
|
|
1579
1591
|
) : /* @__PURE__ */ t(
|
|
1580
|
-
|
|
1592
|
+
d,
|
|
1581
1593
|
{
|
|
1582
1594
|
t: e,
|
|
1583
1595
|
form: n,
|
|
@@ -1587,17 +1599,17 @@ const Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
|
|
|
1587
1599
|
}
|
|
1588
1600
|
);
|
|
1589
1601
|
}, ha = "text";
|
|
1590
|
-
function
|
|
1591
|
-
if (
|
|
1602
|
+
function fa(e) {
|
|
1603
|
+
if (Ut(e.name))
|
|
1592
1604
|
return "text";
|
|
1593
1605
|
const n = e.annotations?.inputType;
|
|
1594
1606
|
return pa(n) ? n : ha;
|
|
1595
1607
|
}
|
|
1596
|
-
const pa = (e) => typeof e == "string" && e in
|
|
1608
|
+
const pa = (e) => typeof e == "string" && e in Ge, ma = (e) => Array.isArray(e) && e.length > 1, ga = ({
|
|
1597
1609
|
className: e = "",
|
|
1598
1610
|
border: n,
|
|
1599
1611
|
size: r = "md"
|
|
1600
|
-
}) => /* @__PURE__ */
|
|
1612
|
+
}) => /* @__PURE__ */ I(
|
|
1601
1613
|
"svg",
|
|
1602
1614
|
{
|
|
1603
1615
|
className: yr(
|
|
@@ -1653,7 +1665,7 @@ const pa = (e) => typeof e == "string" && e in je, fa = (e) => Array.isArray(e)
|
|
|
1653
1665
|
) })
|
|
1654
1666
|
}
|
|
1655
1667
|
),
|
|
1656
|
-
/* @__PURE__ */ t("g", { style: { filter: 'url("#a")' }, children: /* @__PURE__ */
|
|
1668
|
+
/* @__PURE__ */ t("g", { style: { filter: 'url("#a")' }, children: /* @__PURE__ */ I("g", { transform: "translate(5.04 6.88)", children: [
|
|
1657
1669
|
/* @__PURE__ */ t(
|
|
1658
1670
|
"path",
|
|
1659
1671
|
{
|
|
@@ -1713,15 +1725,15 @@ const pa = (e) => typeof e == "string" && e in je, fa = (e) => Array.isArray(e)
|
|
|
1713
1725
|
] }) })
|
|
1714
1726
|
]
|
|
1715
1727
|
}
|
|
1716
|
-
),
|
|
1728
|
+
), mt = ({
|
|
1717
1729
|
isKebab: e = !1,
|
|
1718
1730
|
title: n,
|
|
1719
1731
|
dropDownItems: r,
|
|
1720
1732
|
...a
|
|
1721
1733
|
}) => {
|
|
1722
|
-
const [l, i] =
|
|
1734
|
+
const [l, i] = R(!1);
|
|
1723
1735
|
return /* @__PURE__ */ t(
|
|
1724
|
-
|
|
1736
|
+
wn,
|
|
1725
1737
|
{
|
|
1726
1738
|
...a,
|
|
1727
1739
|
popperProps: {
|
|
@@ -1740,7 +1752,7 @@ const pa = (e) => typeof e == "string" && e in je, fa = (e) => Array.isArray(e)
|
|
|
1740
1752
|
}
|
|
1741
1753
|
),
|
|
1742
1754
|
isOpen: l,
|
|
1743
|
-
children: /* @__PURE__ */ t(
|
|
1755
|
+
children: /* @__PURE__ */ t(Sn, { children: r })
|
|
1744
1756
|
}
|
|
1745
1757
|
);
|
|
1746
1758
|
};
|
|
@@ -1757,16 +1769,16 @@ const rl = ({
|
|
|
1757
1769
|
features: {
|
|
1758
1770
|
hasLogout: s = !0,
|
|
1759
1771
|
hasManageAccount: o = !0,
|
|
1760
|
-
hasUsername:
|
|
1772
|
+
hasUsername: d = !0
|
|
1761
1773
|
} = {},
|
|
1762
1774
|
kebabDropdownItems: c,
|
|
1763
|
-
dropdownItems:
|
|
1764
|
-
toolbarItems:
|
|
1765
|
-
toolbar:
|
|
1766
|
-
...
|
|
1775
|
+
dropdownItems: h = [],
|
|
1776
|
+
toolbarItems: u,
|
|
1777
|
+
toolbar: m,
|
|
1778
|
+
...g
|
|
1767
1779
|
}) => {
|
|
1768
|
-
const { t: C } =
|
|
1769
|
-
o &&
|
|
1780
|
+
const { t: C } = q(), E = [];
|
|
1781
|
+
o && E.push(
|
|
1770
1782
|
/* @__PURE__ */ t(
|
|
1771
1783
|
ot,
|
|
1772
1784
|
{
|
|
@@ -1775,17 +1787,17 @@ const rl = ({
|
|
|
1775
1787
|
},
|
|
1776
1788
|
"manageAccount"
|
|
1777
1789
|
)
|
|
1778
|
-
), s &&
|
|
1790
|
+
), s && E.push(
|
|
1779
1791
|
/* @__PURE__ */ t(ot, { onClick: () => e.logout(), children: C("signOut") }, "signOut")
|
|
1780
1792
|
);
|
|
1781
|
-
const
|
|
1782
|
-
return /* @__PURE__ */
|
|
1783
|
-
/* @__PURE__ */ t(xn, { children: /* @__PURE__ */ t(
|
|
1793
|
+
const v = e.idTokenParsed?.picture;
|
|
1794
|
+
return /* @__PURE__ */ I(Tn, { ...g, children: [
|
|
1795
|
+
/* @__PURE__ */ t(xn, { children: /* @__PURE__ */ t(En, { variant: "plain", "aria-label": C("navigation"), children: /* @__PURE__ */ t(dr, {}) }) }),
|
|
1784
1796
|
/* @__PURE__ */ t(An, { ...l, children: /* @__PURE__ */ t("img", { src: n, alt: r, className: a }) }),
|
|
1785
|
-
/* @__PURE__ */
|
|
1786
|
-
|
|
1787
|
-
/* @__PURE__ */ t(
|
|
1788
|
-
|
|
1797
|
+
/* @__PURE__ */ I(Rn, { children: [
|
|
1798
|
+
m,
|
|
1799
|
+
/* @__PURE__ */ t(ke, { children: /* @__PURE__ */ I(Ue, { children: [
|
|
1800
|
+
u?.map((f, b) => /* @__PURE__ */ t(G, { align: { default: "alignRight" }, children: f }, b)),
|
|
1789
1801
|
/* @__PURE__ */ t(
|
|
1790
1802
|
G,
|
|
1791
1803
|
{
|
|
@@ -1794,11 +1806,11 @@ const rl = ({
|
|
|
1794
1806
|
md: "visible"
|
|
1795
1807
|
},
|
|
1796
1808
|
children: /* @__PURE__ */ t(
|
|
1797
|
-
|
|
1809
|
+
mt,
|
|
1798
1810
|
{
|
|
1799
1811
|
"data-testid": "options",
|
|
1800
|
-
dropDownItems: [...
|
|
1801
|
-
title:
|
|
1812
|
+
dropDownItems: [...h, E],
|
|
1813
|
+
title: d ? ya(e.idTokenParsed, C) : void 0
|
|
1802
1814
|
}
|
|
1803
1815
|
)
|
|
1804
1816
|
}
|
|
@@ -1811,13 +1823,13 @@ const rl = ({
|
|
|
1811
1823
|
md: "hidden"
|
|
1812
1824
|
},
|
|
1813
1825
|
children: /* @__PURE__ */ t(
|
|
1814
|
-
|
|
1826
|
+
mt,
|
|
1815
1827
|
{
|
|
1816
1828
|
"data-testid": "options-kebab",
|
|
1817
1829
|
isKebab: !0,
|
|
1818
1830
|
dropDownItems: [
|
|
1819
|
-
...c ||
|
|
1820
|
-
|
|
1831
|
+
...c || h,
|
|
1832
|
+
E
|
|
1821
1833
|
]
|
|
1822
1834
|
}
|
|
1823
1835
|
)
|
|
@@ -1829,13 +1841,13 @@ const rl = ({
|
|
|
1829
1841
|
variant: "overflow-menu",
|
|
1830
1842
|
align: { default: "alignRight" },
|
|
1831
1843
|
className: "pf-v5-u-m-0-on-lg",
|
|
1832
|
-
children:
|
|
1844
|
+
children: v || i?.src ? /* @__PURE__ */ t(Dn, { src: v, alt: C("avatar"), ...i }) : /* @__PURE__ */ t(ga, { ...i })
|
|
1833
1845
|
}
|
|
1834
1846
|
)
|
|
1835
1847
|
] }) })
|
|
1836
1848
|
] })
|
|
1837
1849
|
] });
|
|
1838
|
-
}, Kt =
|
|
1850
|
+
}, Kt = et("ErrorBoundaryContext", void 0), Ht = () => tt(Kt);
|
|
1839
1851
|
class al extends $n {
|
|
1840
1852
|
state = {};
|
|
1841
1853
|
static getDerivedStateFromError = (n) => ({ error: n });
|
|
@@ -1856,9 +1868,9 @@ const ll = ({ children: e, fallback: n }) => {
|
|
|
1856
1868
|
const { error: r } = Ht();
|
|
1857
1869
|
return r ? /* @__PURE__ */ t(n, { error: r }) : e;
|
|
1858
1870
|
};
|
|
1859
|
-
function
|
|
1871
|
+
function va(e, n, r) {
|
|
1860
1872
|
const { showBoundary: a } = Ht();
|
|
1861
|
-
|
|
1873
|
+
le(() => {
|
|
1862
1874
|
const l = new AbortController(), { signal: i } = l;
|
|
1863
1875
|
return e().then((s) => {
|
|
1864
1876
|
i.aborted || n(s);
|
|
@@ -1867,9 +1879,9 @@ function ba(e, n, r) {
|
|
|
1867
1879
|
}), () => l.abort();
|
|
1868
1880
|
}, r);
|
|
1869
1881
|
}
|
|
1870
|
-
const
|
|
1871
|
-
const { t: e } =
|
|
1872
|
-
return /* @__PURE__ */ t(
|
|
1882
|
+
const ba = () => {
|
|
1883
|
+
const { t: e } = q();
|
|
1884
|
+
return /* @__PURE__ */ t(On, { children: /* @__PURE__ */ t(bt, { "aria-label": e("spinnerLoading") }) });
|
|
1873
1885
|
}, Ca = ({
|
|
1874
1886
|
message: e,
|
|
1875
1887
|
instructions: n,
|
|
@@ -1879,34 +1891,34 @@ const va = () => {
|
|
|
1879
1891
|
primaryActionText: i,
|
|
1880
1892
|
secondaryActions: s,
|
|
1881
1893
|
icon: o,
|
|
1882
|
-
isDisabled:
|
|
1894
|
+
isDisabled: d = !1,
|
|
1883
1895
|
children: c
|
|
1884
|
-
}) => /* @__PURE__ */
|
|
1896
|
+
}) => /* @__PURE__ */ I(Fn, { "data-testid": "empty-state", variant: "lg", children: [
|
|
1885
1897
|
a && l ? /* @__PURE__ */ t(ct, { icon: ur }) : a && /* @__PURE__ */ t(ct, { icon: o || Pt }),
|
|
1886
|
-
/* @__PURE__ */ t(
|
|
1887
|
-
/* @__PURE__ */ t(
|
|
1888
|
-
/* @__PURE__ */
|
|
1898
|
+
/* @__PURE__ */ t(Pn, { titleText: e, headingLevel: "h1" }),
|
|
1899
|
+
/* @__PURE__ */ t(Ln, { children: n }),
|
|
1900
|
+
/* @__PURE__ */ I(Vn, { children: [
|
|
1889
1901
|
i && /* @__PURE__ */ t(
|
|
1890
|
-
|
|
1902
|
+
_,
|
|
1891
1903
|
{
|
|
1892
1904
|
"data-testid": `${e.replace(/\W+/g, "-").toLowerCase()}-empty-action`,
|
|
1893
1905
|
variant: "primary",
|
|
1894
1906
|
onClick: r,
|
|
1895
|
-
isDisabled:
|
|
1907
|
+
isDisabled: d,
|
|
1896
1908
|
children: i
|
|
1897
1909
|
}
|
|
1898
1910
|
),
|
|
1899
1911
|
c,
|
|
1900
|
-
s && /* @__PURE__ */ t(Mn, { children: s.map((
|
|
1901
|
-
|
|
1912
|
+
s && /* @__PURE__ */ t(Mn, { children: s.map((h) => /* @__PURE__ */ t(
|
|
1913
|
+
_,
|
|
1902
1914
|
{
|
|
1903
|
-
"data-testid": `${
|
|
1904
|
-
variant:
|
|
1905
|
-
onClick:
|
|
1906
|
-
isDisabled:
|
|
1907
|
-
children:
|
|
1915
|
+
"data-testid": `${h.text.replace(/\W+/g, "-").toLowerCase()}-empty-action`,
|
|
1916
|
+
variant: h.type || Ie.secondary,
|
|
1917
|
+
onClick: h.onClick,
|
|
1918
|
+
isDisabled: d,
|
|
1919
|
+
children: h.text
|
|
1908
1920
|
},
|
|
1909
|
-
|
|
1921
|
+
h.text
|
|
1910
1922
|
)) })
|
|
1911
1923
|
] })
|
|
1912
1924
|
] }), ka = ({
|
|
@@ -1919,39 +1931,39 @@ const va = () => {
|
|
|
1919
1931
|
inputGroupPlaceholder: s,
|
|
1920
1932
|
inputGroupOnEnter: o
|
|
1921
1933
|
}) => {
|
|
1922
|
-
const { t:
|
|
1923
|
-
|
|
1924
|
-
},
|
|
1925
|
-
|
|
1934
|
+
const { t: d } = q(), [c, h] = R(""), u = (g) => {
|
|
1935
|
+
h(g.trim()), o?.(g.trim());
|
|
1936
|
+
}, m = (g) => {
|
|
1937
|
+
g.key === "Enter" && u(c);
|
|
1926
1938
|
};
|
|
1927
|
-
return /* @__PURE__ */
|
|
1928
|
-
/* @__PURE__ */ t(
|
|
1929
|
-
i && /* @__PURE__ */ t(G, { children: /* @__PURE__ */
|
|
1939
|
+
return /* @__PURE__ */ I(W, { children: [
|
|
1940
|
+
/* @__PURE__ */ t(ke, { "data-testid": "table-toolbar", children: /* @__PURE__ */ I(Ue, { children: [
|
|
1941
|
+
i && /* @__PURE__ */ t(G, { children: /* @__PURE__ */ I(Se, { "data-testid": i, children: [
|
|
1930
1942
|
l,
|
|
1931
1943
|
s && /* @__PURE__ */ t(
|
|
1932
|
-
|
|
1944
|
+
Bn,
|
|
1933
1945
|
{
|
|
1934
1946
|
"data-testid": "table-search-input",
|
|
1935
1947
|
placeholder: s,
|
|
1936
|
-
"aria-label":
|
|
1948
|
+
"aria-label": d("search"),
|
|
1937
1949
|
value: c,
|
|
1938
|
-
onChange: (
|
|
1939
|
-
|
|
1950
|
+
onChange: (g, C) => {
|
|
1951
|
+
h(C);
|
|
1940
1952
|
},
|
|
1941
|
-
onSearch: () =>
|
|
1942
|
-
onKeyDown:
|
|
1943
|
-
onClear: () =>
|
|
1953
|
+
onSearch: () => u(c),
|
|
1954
|
+
onKeyDown: m,
|
|
1955
|
+
onClear: () => u("")
|
|
1944
1956
|
}
|
|
1945
1957
|
)
|
|
1946
1958
|
] }) }),
|
|
1947
1959
|
e
|
|
1948
1960
|
] }) }),
|
|
1949
|
-
n && /* @__PURE__ */ t(
|
|
1950
|
-
/* @__PURE__ */ t(
|
|
1961
|
+
n && /* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Ue, { children: n }) }),
|
|
1962
|
+
/* @__PURE__ */ t(Nn, {}),
|
|
1951
1963
|
a,
|
|
1952
|
-
/* @__PURE__ */ t(
|
|
1964
|
+
/* @__PURE__ */ t(ke, { children: r })
|
|
1953
1965
|
] });
|
|
1954
|
-
},
|
|
1966
|
+
}, gt = ({
|
|
1955
1967
|
id: e,
|
|
1956
1968
|
variant: n = "top",
|
|
1957
1969
|
count: r,
|
|
@@ -1961,29 +1973,29 @@ const va = () => {
|
|
|
1961
1973
|
onPreviousClick: s,
|
|
1962
1974
|
onPerPageSelect: o
|
|
1963
1975
|
}) => {
|
|
1964
|
-
const { t:
|
|
1976
|
+
const { t: d } = q(), c = Math.round(a / l);
|
|
1965
1977
|
return /* @__PURE__ */ t(
|
|
1966
|
-
|
|
1978
|
+
_n,
|
|
1967
1979
|
{
|
|
1968
1980
|
widgetId: e,
|
|
1969
1981
|
titles: {
|
|
1970
|
-
paginationAriaLabel: `${
|
|
1982
|
+
paginationAriaLabel: `${d("pagination")} ${n} `
|
|
1971
1983
|
},
|
|
1972
1984
|
isCompact: !0,
|
|
1973
1985
|
toggleTemplate: ({
|
|
1974
|
-
firstIndex:
|
|
1975
|
-
lastIndex:
|
|
1976
|
-
}) => /* @__PURE__ */
|
|
1977
|
-
|
|
1986
|
+
firstIndex: h,
|
|
1987
|
+
lastIndex: u
|
|
1988
|
+
}) => /* @__PURE__ */ I("b", { children: [
|
|
1989
|
+
h,
|
|
1978
1990
|
" - ",
|
|
1979
|
-
|
|
1991
|
+
u
|
|
1980
1992
|
] }),
|
|
1981
1993
|
itemCount: r + c * l,
|
|
1982
1994
|
page: c + 1,
|
|
1983
1995
|
perPage: l,
|
|
1984
|
-
onNextClick: (
|
|
1985
|
-
onPreviousClick: (
|
|
1986
|
-
onPerPageSelect: (
|
|
1996
|
+
onNextClick: (h, u) => i((u - 1) * l),
|
|
1997
|
+
onPreviousClick: (h, u) => s((u - 1) * l),
|
|
1998
|
+
onPerPageSelect: (h, u, m) => o(m - 1, u),
|
|
1987
1999
|
variant: n
|
|
1988
2000
|
}
|
|
1989
2001
|
);
|
|
@@ -1996,35 +2008,35 @@ const va = () => {
|
|
|
1996
2008
|
inputGroupName: i,
|
|
1997
2009
|
inputGroupPlaceholder: s,
|
|
1998
2010
|
inputGroupOnEnter: o,
|
|
1999
|
-
...
|
|
2011
|
+
...d
|
|
2000
2012
|
}) => /* @__PURE__ */ t(
|
|
2001
2013
|
ka,
|
|
2002
2014
|
{
|
|
2003
2015
|
searchTypeComponent: n,
|
|
2004
|
-
toolbarItem: /* @__PURE__ */
|
|
2016
|
+
toolbarItem: /* @__PURE__ */ I(W, { children: [
|
|
2005
2017
|
r,
|
|
2006
|
-
/* @__PURE__ */ t(G, { variant: "pagination", children: /* @__PURE__ */ t(
|
|
2018
|
+
/* @__PURE__ */ t(G, { variant: "pagination", children: /* @__PURE__ */ t(gt, { count: e, ...d }) })
|
|
2007
2019
|
] }),
|
|
2008
2020
|
subToolbar: a,
|
|
2009
|
-
toolbarItemFooter: e !== 0 ? /* @__PURE__ */ t(G, { variant: "pagination", children: /* @__PURE__ */ t(
|
|
2021
|
+
toolbarItemFooter: e !== 0 ? /* @__PURE__ */ t(G, { variant: "pagination", children: /* @__PURE__ */ t(gt, { count: e, variant: "bottom", ...d }) }) : null,
|
|
2010
2022
|
inputGroupName: i,
|
|
2011
2023
|
inputGroupPlaceholder: s,
|
|
2012
2024
|
inputGroupOnEnter: o,
|
|
2013
2025
|
children: l
|
|
2014
2026
|
}
|
|
2015
|
-
), jt = (e) => !!e && e.title !== void 0,
|
|
2027
|
+
), jt = (e) => !!e && e.title !== void 0, yt = ({
|
|
2016
2028
|
row: e,
|
|
2017
2029
|
index: n,
|
|
2018
2030
|
actions: r,
|
|
2019
2031
|
actionResolver: a
|
|
2020
2032
|
}) => {
|
|
2021
2033
|
const l = r || a?.(e, {});
|
|
2022
|
-
return /* @__PURE__ */
|
|
2023
|
-
e.cells.map((i, s) => /* @__PURE__ */ t(
|
|
2024
|
-
l && l.length > 0 && !e.disableActions && /* @__PURE__ */ t(
|
|
2034
|
+
return /* @__PURE__ */ I(W, { children: [
|
|
2035
|
+
e.cells.map((i, s) => /* @__PURE__ */ t(ie, { children: jt(i) ? i.title : i }, `cell-${s}`)),
|
|
2036
|
+
l && l.length > 0 && !e.disableActions && /* @__PURE__ */ t(ie, { isActionCell: !0, children: /* @__PURE__ */ t(Ir, { items: l, extraData: { rowIndex: n } }) })
|
|
2025
2037
|
] });
|
|
2026
2038
|
}, wa = ({ row: e }) => e.cells.map((n, r) => /* @__PURE__ */ t("div", { children: jt(n) ? n.title : n }, `cell-${r}`));
|
|
2027
|
-
function
|
|
2039
|
+
function Sa({
|
|
2028
2040
|
columns: e,
|
|
2029
2041
|
rows: n,
|
|
2030
2042
|
actions: r,
|
|
@@ -2033,129 +2045,129 @@ function Ta({
|
|
|
2033
2045
|
selected: i,
|
|
2034
2046
|
onSelect: s,
|
|
2035
2047
|
onCollapse: o,
|
|
2036
|
-
canSelectAll:
|
|
2048
|
+
canSelectAll: d,
|
|
2037
2049
|
canSelect: c,
|
|
2038
|
-
isNotCompact:
|
|
2039
|
-
isRadio:
|
|
2040
|
-
...
|
|
2050
|
+
isNotCompact: h,
|
|
2051
|
+
isRadio: u,
|
|
2052
|
+
...m
|
|
2041
2053
|
}) {
|
|
2042
|
-
const { t:
|
|
2043
|
-
() =>
|
|
2054
|
+
const { t: g } = q(), [C, E] = R(i || []), [v, f] = R([]), b = U(
|
|
2055
|
+
() => mr(
|
|
2044
2056
|
C,
|
|
2045
|
-
n.map((
|
|
2057
|
+
n.map((y) => y.data),
|
|
2046
2058
|
"id"
|
|
2047
2059
|
),
|
|
2048
2060
|
[C, n]
|
|
2049
2061
|
);
|
|
2050
|
-
|
|
2051
|
-
if (
|
|
2052
|
-
const
|
|
2053
|
-
if (
|
|
2054
|
-
const T =
|
|
2055
|
-
T.indeterminate =
|
|
2062
|
+
le(() => {
|
|
2063
|
+
if (d) {
|
|
2064
|
+
const y = document.getElementsByName("check-all").item(0);
|
|
2065
|
+
if (y) {
|
|
2066
|
+
const T = y;
|
|
2067
|
+
T.indeterminate = b.length < n.length && b.length > 0;
|
|
2056
2068
|
}
|
|
2057
2069
|
}
|
|
2058
|
-
}, [C,
|
|
2059
|
-
const A = (
|
|
2060
|
-
|
|
2061
|
-
},
|
|
2062
|
-
if (
|
|
2063
|
-
const
|
|
2064
|
-
A(
|
|
2065
|
-
} else if (
|
|
2066
|
-
const
|
|
2067
|
-
(O) =>
|
|
2070
|
+
}, [C, d, n]);
|
|
2071
|
+
const A = (y) => {
|
|
2072
|
+
E(y), s?.(y);
|
|
2073
|
+
}, w = (y, T) => {
|
|
2074
|
+
if (u) {
|
|
2075
|
+
const P = T ? [n[y].data] : [];
|
|
2076
|
+
A(P);
|
|
2077
|
+
} else if (y === -1) {
|
|
2078
|
+
const P = b.map(
|
|
2079
|
+
(O) => N(O, "id")
|
|
2068
2080
|
);
|
|
2069
2081
|
A(
|
|
2070
2082
|
T ? [...C, ...n.map((O) => O.data)] : C.filter(
|
|
2071
|
-
(O) => !
|
|
2083
|
+
(O) => !P.includes(N(O, "id"))
|
|
2072
2084
|
)
|
|
2073
2085
|
);
|
|
2074
2086
|
} else
|
|
2075
|
-
A(T ? [...C, n[
|
|
2076
|
-
(
|
|
2087
|
+
A(T ? [...C, n[y].data] : C.filter(
|
|
2088
|
+
(P) => N(P, "id") !== n[y].data.id
|
|
2077
2089
|
));
|
|
2078
2090
|
};
|
|
2079
|
-
return /* @__PURE__ */
|
|
2080
|
-
|
|
2091
|
+
return /* @__PURE__ */ I(
|
|
2092
|
+
vr,
|
|
2081
2093
|
{
|
|
2082
|
-
...
|
|
2083
|
-
variant:
|
|
2084
|
-
"aria-label":
|
|
2094
|
+
...m,
|
|
2095
|
+
variant: h ? void 0 : br.compact,
|
|
2096
|
+
"aria-label": g(l),
|
|
2085
2097
|
children: [
|
|
2086
|
-
/* @__PURE__ */ t(Cr, { children: /* @__PURE__ */
|
|
2087
|
-
o && /* @__PURE__ */ t(
|
|
2088
|
-
|
|
2089
|
-
|
|
2098
|
+
/* @__PURE__ */ t(Cr, { children: /* @__PURE__ */ I(be, { children: [
|
|
2099
|
+
o && /* @__PURE__ */ t(Ve, { screenReaderText: g("expandRow") }),
|
|
2100
|
+
d && /* @__PURE__ */ t(
|
|
2101
|
+
Ve,
|
|
2090
2102
|
{
|
|
2091
|
-
screenReaderText:
|
|
2092
|
-
select:
|
|
2093
|
-
onSelect: (
|
|
2094
|
-
|
|
2103
|
+
screenReaderText: g("selectAll"),
|
|
2104
|
+
select: u ? void 0 : {
|
|
2105
|
+
onSelect: (y, T) => {
|
|
2106
|
+
w(-1, T);
|
|
2095
2107
|
},
|
|
2096
|
-
isSelected:
|
|
2108
|
+
isSelected: b.length === n.length
|
|
2097
2109
|
}
|
|
2098
2110
|
}
|
|
2099
2111
|
),
|
|
2100
|
-
e.map((
|
|
2101
|
-
|
|
2112
|
+
e.map((y) => /* @__PURE__ */ t(
|
|
2113
|
+
Ve,
|
|
2102
2114
|
{
|
|
2103
|
-
screenReaderText:
|
|
2104
|
-
className:
|
|
2105
|
-
children: y
|
|
2115
|
+
screenReaderText: g("expandRow"),
|
|
2116
|
+
className: y.transforms?.[0]().className,
|
|
2117
|
+
children: g(y.displayKey || y.name)
|
|
2106
2118
|
},
|
|
2107
|
-
|
|
2119
|
+
y.displayKey || y.name
|
|
2108
2120
|
))
|
|
2109
2121
|
] }) }),
|
|
2110
|
-
o ? n.map((
|
|
2122
|
+
o ? n.map((y, T) => /* @__PURE__ */ t(dt, { children: T % 2 === 0 ? /* @__PURE__ */ I(be, { children: [
|
|
2111
2123
|
/* @__PURE__ */ t(
|
|
2112
|
-
|
|
2124
|
+
ie,
|
|
2113
2125
|
{
|
|
2114
2126
|
expand: n[T + 1].cells.length === 0 ? void 0 : {
|
|
2115
|
-
isExpanded:
|
|
2127
|
+
isExpanded: v[T] ?? !1,
|
|
2116
2128
|
rowIndex: T,
|
|
2117
2129
|
expandId: "expandable-row-",
|
|
2118
|
-
onToggle: (
|
|
2130
|
+
onToggle: (P, O, D) => {
|
|
2119
2131
|
o(D, O);
|
|
2120
|
-
const
|
|
2121
|
-
|
|
2132
|
+
const $ = [...v];
|
|
2133
|
+
$[T] = D, f($);
|
|
2122
2134
|
}
|
|
2123
2135
|
}
|
|
2124
2136
|
}
|
|
2125
2137
|
),
|
|
2126
2138
|
/* @__PURE__ */ t(
|
|
2127
|
-
|
|
2139
|
+
yt,
|
|
2128
2140
|
{
|
|
2129
|
-
row:
|
|
2141
|
+
row: y,
|
|
2130
2142
|
index: T,
|
|
2131
2143
|
actions: r,
|
|
2132
2144
|
actionResolver: a
|
|
2133
2145
|
}
|
|
2134
2146
|
)
|
|
2135
|
-
] }) : /* @__PURE__ */
|
|
2136
|
-
/* @__PURE__ */ t(
|
|
2137
|
-
/* @__PURE__ */ t(
|
|
2138
|
-
] }) }, T)) : /* @__PURE__ */ t(dt, { children: n.map((
|
|
2147
|
+
] }) : /* @__PURE__ */ I(be, { isExpanded: v[T - 1] ?? !1, children: [
|
|
2148
|
+
/* @__PURE__ */ t(ie, {}),
|
|
2149
|
+
/* @__PURE__ */ t(ie, { colSpan: e.length, children: /* @__PURE__ */ t(kr, { children: /* @__PURE__ */ t(wa, { row: y }) }) })
|
|
2150
|
+
] }) }, T)) : /* @__PURE__ */ t(dt, { children: n.map((y, T) => /* @__PURE__ */ I(be, { isExpanded: v[T], children: [
|
|
2139
2151
|
c && /* @__PURE__ */ t(
|
|
2140
|
-
|
|
2152
|
+
ie,
|
|
2141
2153
|
{
|
|
2142
2154
|
select: {
|
|
2143
2155
|
rowIndex: T,
|
|
2144
|
-
onSelect: (
|
|
2145
|
-
|
|
2156
|
+
onSelect: (P, O, D) => {
|
|
2157
|
+
w(D, O);
|
|
2146
2158
|
},
|
|
2147
2159
|
isSelected: !!C.find(
|
|
2148
|
-
(
|
|
2160
|
+
(P) => N(P, "id") === y.data.id
|
|
2149
2161
|
),
|
|
2150
|
-
variant:
|
|
2151
|
-
isDisabled:
|
|
2162
|
+
variant: u ? "radio" : "checkbox",
|
|
2163
|
+
isDisabled: y.disableSelection
|
|
2152
2164
|
}
|
|
2153
2165
|
}
|
|
2154
2166
|
),
|
|
2155
2167
|
/* @__PURE__ */ t(
|
|
2156
|
-
|
|
2168
|
+
yt,
|
|
2157
2169
|
{
|
|
2158
|
-
row:
|
|
2170
|
+
row: y,
|
|
2159
2171
|
index: T,
|
|
2160
2172
|
actions: r,
|
|
2161
2173
|
actionResolver: a
|
|
@@ -2166,7 +2178,7 @@ function Ta({
|
|
|
2166
2178
|
}
|
|
2167
2179
|
);
|
|
2168
2180
|
}
|
|
2169
|
-
function
|
|
2181
|
+
function Ta({
|
|
2170
2182
|
ariaLabelKey: e,
|
|
2171
2183
|
searchPlaceholderKey: n,
|
|
2172
2184
|
isPaginated: r = !1,
|
|
@@ -2175,150 +2187,151 @@ function xa({
|
|
|
2175
2187
|
isNotCompact: i,
|
|
2176
2188
|
isRadio: s,
|
|
2177
2189
|
detailColumns: o,
|
|
2178
|
-
isRowDisabled:
|
|
2190
|
+
isRowDisabled: d,
|
|
2179
2191
|
loader: c,
|
|
2180
|
-
columns:
|
|
2181
|
-
actions:
|
|
2182
|
-
actionResolver:
|
|
2183
|
-
searchTypeComponent:
|
|
2192
|
+
columns: h,
|
|
2193
|
+
actions: u,
|
|
2194
|
+
actionResolver: m,
|
|
2195
|
+
searchTypeComponent: g,
|
|
2184
2196
|
toolbarItem: C,
|
|
2185
|
-
subToolbar:
|
|
2186
|
-
emptyState:
|
|
2187
|
-
icon:
|
|
2188
|
-
isSearching:
|
|
2197
|
+
subToolbar: E,
|
|
2198
|
+
emptyState: v,
|
|
2199
|
+
icon: f,
|
|
2200
|
+
isSearching: b = !1,
|
|
2189
2201
|
...A
|
|
2190
2202
|
}) {
|
|
2191
|
-
const { t:
|
|
2203
|
+
const { t: w } = q(), [y, T] = R([]), [P, O] = R(), [D, $] = R(), [j, L] = R(!1), [p, k] = Mt(
|
|
2192
2204
|
localStorage,
|
|
2193
2205
|
"pageSize",
|
|
2194
2206
|
10
|
|
2195
|
-
), [
|
|
2196
|
-
if ("cellFormatters" in
|
|
2197
|
-
const te =
|
|
2198
|
-
return
|
|
2207
|
+
), [x, M] = R(p), [B, Z] = R(0), [z, Oe] = R(""), nt = Y(), [Fe, Gt] = R(0), Wt = Y(), rt = () => Gt(Fe + 1), zt = At(), at = (S, F) => S.map((V) => {
|
|
2208
|
+
if ("cellFormatters" in V) {
|
|
2209
|
+
const te = N(F, V.name);
|
|
2210
|
+
return V.cellFormatters?.reduce((de, ye) => ye(de), te);
|
|
2199
2211
|
}
|
|
2200
|
-
if (
|
|
2201
|
-
const te =
|
|
2202
|
-
return { title: /* @__PURE__ */ t(te, { ...
|
|
2212
|
+
if (V.cellRenderer) {
|
|
2213
|
+
const te = V.cellRenderer;
|
|
2214
|
+
return { title: /* @__PURE__ */ t(te, { ...F }) };
|
|
2203
2215
|
}
|
|
2204
|
-
return
|
|
2205
|
-
}), lt = (
|
|
2206
|
-
const
|
|
2207
|
-
return
|
|
2208
|
-
const de =
|
|
2216
|
+
return N(F, V.name);
|
|
2217
|
+
}), lt = (S) => {
|
|
2218
|
+
const F = (V) => o?.[0]?.enabled?.(V);
|
|
2219
|
+
return S.map((V, te) => {
|
|
2220
|
+
const de = d ? d(V) : !1, ye = [
|
|
2209
2221
|
{
|
|
2210
|
-
data:
|
|
2222
|
+
data: V,
|
|
2211
2223
|
disableSelection: de,
|
|
2212
2224
|
disableActions: de,
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2225
|
+
// eslint-disable-next-line @typescript-eslint/no-unnecessary-condition -- lodash get performs dynamic property access at runtime
|
|
2226
|
+
selected: !!y.find((Zt) => N(Zt, "id") === N(V, "id")),
|
|
2227
|
+
isOpen: F(V) ? !1 : void 0,
|
|
2228
|
+
cells: at(h, V)
|
|
2216
2229
|
}
|
|
2217
2230
|
];
|
|
2218
|
-
return o &&
|
|
2231
|
+
return o && ye.push({
|
|
2219
2232
|
parent: te * 2,
|
|
2220
|
-
cells:
|
|
2221
|
-
}),
|
|
2233
|
+
cells: F(V) ? at(o, V) : []
|
|
2234
|
+
}), ye;
|
|
2222
2235
|
}).flat();
|
|
2223
|
-
}, Pe = (
|
|
2224
|
-
|
|
2236
|
+
}, Pe = (S) => ["string", "number"].includes(typeof S) ? S.toString() : S instanceof Array ? S.map(Pe).join("") : typeof S == "object" ? Pe(
|
|
2237
|
+
Et(S.title) ? S.title.props : Object.values(S)
|
|
2225
2238
|
) : "", it = U(
|
|
2226
2239
|
() => z === "" || r ? void 0 : lt(D || []).filter(
|
|
2227
|
-
(
|
|
2228
|
-
(
|
|
2240
|
+
(S) => S.cells.some(
|
|
2241
|
+
(F) => F && Pe(F).toLowerCase().includes(z.toLowerCase())
|
|
2229
2242
|
)
|
|
2230
|
-
).slice(
|
|
2231
|
-
[z,
|
|
2243
|
+
).slice(B, B + x + 1),
|
|
2244
|
+
[z, B, x]
|
|
2232
2245
|
);
|
|
2233
|
-
|
|
2246
|
+
va(
|
|
2234
2247
|
async () => {
|
|
2235
|
-
|
|
2236
|
-
const
|
|
2237
|
-
return
|
|
2248
|
+
L(!0);
|
|
2249
|
+
const S = nt.current === "" && z !== "";
|
|
2250
|
+
return S && Z(0), nt.current = z, await (typeof c == "function" ? c : "loader" in c ? c.loader : async () => c)(S ? 0 : B, x + 1, z);
|
|
2238
2251
|
},
|
|
2239
|
-
(
|
|
2240
|
-
|
|
2241
|
-
const
|
|
2242
|
-
O(
|
|
2252
|
+
(S) => {
|
|
2253
|
+
Wt.current = Fe, r || ($(S), S.length > B ? S = S.slice(B, B + x + 1) : Z(0));
|
|
2254
|
+
const F = lt(S);
|
|
2255
|
+
O(F), L(!1);
|
|
2243
2256
|
},
|
|
2244
2257
|
[
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2258
|
+
Fe,
|
|
2259
|
+
B,
|
|
2260
|
+
x,
|
|
2248
2261
|
z,
|
|
2249
|
-
typeof c != "function" ? c : void 0
|
|
2262
|
+
typeof c != "function" ? "signal" in c ? c.signal : c : void 0
|
|
2250
2263
|
]
|
|
2251
2264
|
);
|
|
2252
|
-
const
|
|
2253
|
-
await
|
|
2254
|
-
(it ||
|
|
2255
|
-
) && (r ||
|
|
2256
|
-
},
|
|
2257
|
-
ee[
|
|
2258
|
-
}, ee = it ||
|
|
2259
|
-
return /* @__PURE__ */
|
|
2260
|
-
(!
|
|
2265
|
+
const Jt = () => u && gr(u).map((S, F) => (delete S.onRowClick, S.onClick = async (V, te) => {
|
|
2266
|
+
await u[F].onRowClick(
|
|
2267
|
+
(it || P)[te].data
|
|
2268
|
+
) && (r || Oe(""), rt());
|
|
2269
|
+
}, S)), Yt = (S, F) => {
|
|
2270
|
+
ee[F].isOpen = S, O([...ee]);
|
|
2271
|
+
}, ee = it || P, ge = !ee || ee.length === 0, Le = z !== "" || b, Qt = o ? x * 2 : x, Xt = o ? (ee?.length || 0) / 2 : ee?.length || 0;
|
|
2272
|
+
return /* @__PURE__ */ I(W, { children: [
|
|
2273
|
+
(!ge || Le) && /* @__PURE__ */ I(
|
|
2261
2274
|
Ia,
|
|
2262
2275
|
{
|
|
2263
|
-
id:
|
|
2264
|
-
count:
|
|
2265
|
-
first:
|
|
2266
|
-
max:
|
|
2276
|
+
id: zt,
|
|
2277
|
+
count: Xt,
|
|
2278
|
+
first: B,
|
|
2279
|
+
max: x,
|
|
2267
2280
|
onNextClick: Z,
|
|
2268
2281
|
onPreviousClick: Z,
|
|
2269
|
-
onPerPageSelect: (
|
|
2270
|
-
Z(
|
|
2282
|
+
onPerPageSelect: (S, F) => {
|
|
2283
|
+
Z(S), M(F), k(F);
|
|
2271
2284
|
},
|
|
2272
2285
|
inputGroupName: n ? `${e}input` : void 0,
|
|
2273
|
-
inputGroupOnEnter:
|
|
2274
|
-
inputGroupPlaceholder:
|
|
2275
|
-
searchTypeComponent:
|
|
2276
|
-
toolbarItem: /* @__PURE__ */
|
|
2286
|
+
inputGroupOnEnter: Oe,
|
|
2287
|
+
inputGroupPlaceholder: w(n || ""),
|
|
2288
|
+
searchTypeComponent: g,
|
|
2289
|
+
toolbarItem: /* @__PURE__ */ I(W, { children: [
|
|
2277
2290
|
C,
|
|
2278
2291
|
" ",
|
|
2279
2292
|
/* @__PURE__ */ t(G, { variant: "separator" }),
|
|
2280
2293
|
" ",
|
|
2281
|
-
/* @__PURE__ */ t(G, { children: /* @__PURE__ */
|
|
2294
|
+
/* @__PURE__ */ t(G, { children: /* @__PURE__ */ I(_, { variant: "link", onClick: rt, "data-testid": "refresh", children: [
|
|
2282
2295
|
/* @__PURE__ */ t(hr, {}),
|
|
2283
2296
|
" ",
|
|
2284
|
-
|
|
2297
|
+
w("refresh")
|
|
2285
2298
|
] }) })
|
|
2286
2299
|
] }),
|
|
2287
|
-
subToolbar:
|
|
2300
|
+
subToolbar: E,
|
|
2288
2301
|
children: [
|
|
2289
|
-
!
|
|
2290
|
-
|
|
2302
|
+
!j && !ge && /* @__PURE__ */ t(
|
|
2303
|
+
Sa,
|
|
2291
2304
|
{
|
|
2292
2305
|
...A,
|
|
2293
2306
|
canSelectAll: l,
|
|
2294
2307
|
canSelect: !!a,
|
|
2295
|
-
selected:
|
|
2296
|
-
onSelect: (
|
|
2297
|
-
T(
|
|
2308
|
+
selected: y,
|
|
2309
|
+
onSelect: (S) => {
|
|
2310
|
+
T(S), a?.(S);
|
|
2298
2311
|
},
|
|
2299
|
-
onCollapse: o ?
|
|
2300
|
-
actions:
|
|
2301
|
-
actionResolver:
|
|
2302
|
-
rows: ee.slice(0,
|
|
2303
|
-
columns:
|
|
2312
|
+
onCollapse: o ? Yt : void 0,
|
|
2313
|
+
actions: Jt(),
|
|
2314
|
+
actionResolver: m,
|
|
2315
|
+
rows: ee.slice(0, Qt),
|
|
2316
|
+
columns: h,
|
|
2304
2317
|
isNotCompact: i,
|
|
2305
2318
|
isRadio: s,
|
|
2306
2319
|
ariaLabelKey: e
|
|
2307
2320
|
}
|
|
2308
2321
|
),
|
|
2309
|
-
!
|
|
2322
|
+
!j && ge && Le && /* @__PURE__ */ t(
|
|
2310
2323
|
Ca,
|
|
2311
2324
|
{
|
|
2312
2325
|
hasIcon: !0,
|
|
2313
|
-
icon:
|
|
2326
|
+
icon: f,
|
|
2314
2327
|
isSearchVariant: !0,
|
|
2315
|
-
message:
|
|
2316
|
-
instructions:
|
|
2317
|
-
secondaryActions:
|
|
2328
|
+
message: w("noSearchResults"),
|
|
2329
|
+
instructions: w("noSearchResultsInstructions"),
|
|
2330
|
+
secondaryActions: b ? [] : [
|
|
2318
2331
|
{
|
|
2319
|
-
text:
|
|
2320
|
-
onClick: () =>
|
|
2321
|
-
type:
|
|
2332
|
+
text: w("clearAllFilters"),
|
|
2333
|
+
onClick: () => Oe(""),
|
|
2334
|
+
type: Ie.link
|
|
2322
2335
|
}
|
|
2323
2336
|
]
|
|
2324
2337
|
}
|
|
@@ -2326,16 +2339,16 @@ function xa({
|
|
|
2326
2339
|
]
|
|
2327
2340
|
}
|
|
2328
2341
|
),
|
|
2329
|
-
|
|
2330
|
-
!
|
|
2342
|
+
j && /* @__PURE__ */ t(ba, {}),
|
|
2343
|
+
!j && ge && !Le && v
|
|
2331
2344
|
] });
|
|
2332
2345
|
}
|
|
2333
|
-
const
|
|
2334
|
-
const { t: r } =
|
|
2335
|
-
return /* @__PURE__ */ t(wr, { wrapModifier: "truncate", children: /* @__PURE__ */
|
|
2346
|
+
const xa = ({ link: e, organization: n }) => {
|
|
2347
|
+
const { t: r } = q();
|
|
2348
|
+
return /* @__PURE__ */ t(wr, { wrapModifier: "truncate", children: /* @__PURE__ */ I(e, { organization: n, children: [
|
|
2336
2349
|
n.name,
|
|
2337
2350
|
!n.enabled && /* @__PURE__ */ t(
|
|
2338
|
-
|
|
2351
|
+
qn,
|
|
2339
2352
|
{
|
|
2340
2353
|
isRead: !0,
|
|
2341
2354
|
className: "pf-v5-u-ml-sm",
|
|
@@ -2344,17 +2357,17 @@ const Sa = ({ link: e, organization: n }) => {
|
|
|
2344
2357
|
`${n.id}-disabled`
|
|
2345
2358
|
)
|
|
2346
2359
|
] }) });
|
|
2347
|
-
},
|
|
2348
|
-
const { t: n } =
|
|
2360
|
+
}, Ea = (e) => {
|
|
2361
|
+
const { t: n } = q();
|
|
2349
2362
|
return /* @__PURE__ */ t(
|
|
2350
|
-
|
|
2363
|
+
Xe,
|
|
2351
2364
|
{
|
|
2352
2365
|
numChips: 2,
|
|
2353
2366
|
expandedText: n("hide"),
|
|
2354
2367
|
collapsedText: n("showRemaining"),
|
|
2355
2368
|
children: e.domains?.map((r) => {
|
|
2356
2369
|
const a = typeof r == "string" ? r : r.name;
|
|
2357
|
-
return /* @__PURE__ */ t(
|
|
2370
|
+
return /* @__PURE__ */ t(Ze, { isReadOnly: !0, children: a }, a);
|
|
2358
2371
|
})
|
|
2359
2372
|
}
|
|
2360
2373
|
);
|
|
@@ -2367,13 +2380,13 @@ const Sa = ({ link: e, organization: n }) => {
|
|
|
2367
2380
|
onSelect: i,
|
|
2368
2381
|
onDelete: s,
|
|
2369
2382
|
deleteLabel: o = "delete",
|
|
2370
|
-
link:
|
|
2383
|
+
link: d,
|
|
2371
2384
|
children: c,
|
|
2372
|
-
actions:
|
|
2385
|
+
actions: h
|
|
2373
2386
|
}) => {
|
|
2374
|
-
const { t:
|
|
2387
|
+
const { t: u } = q();
|
|
2375
2388
|
return /* @__PURE__ */ t(
|
|
2376
|
-
|
|
2389
|
+
Ta,
|
|
2377
2390
|
{
|
|
2378
2391
|
loader: e,
|
|
2379
2392
|
isPaginated: r,
|
|
@@ -2384,19 +2397,19 @@ const Sa = ({ link: e, organization: n }) => {
|
|
|
2384
2397
|
onSelect: i,
|
|
2385
2398
|
canSelectAll: i !== void 0,
|
|
2386
2399
|
actions: [
|
|
2387
|
-
...s ? [{ title:
|
|
2388
|
-
...
|
|
2400
|
+
...s ? [{ title: u(o), onRowClick: s }] : [],
|
|
2401
|
+
...h ?? []
|
|
2389
2402
|
],
|
|
2390
2403
|
columns: [
|
|
2391
2404
|
{
|
|
2392
2405
|
name: "name",
|
|
2393
2406
|
displayKey: "name",
|
|
2394
|
-
cellRenderer: (
|
|
2407
|
+
cellRenderer: (m) => /* @__PURE__ */ t(xa, { link: d, organization: m })
|
|
2395
2408
|
},
|
|
2396
2409
|
{
|
|
2397
2410
|
name: "domains",
|
|
2398
2411
|
displayKey: "domains",
|
|
2399
|
-
cellRenderer:
|
|
2412
|
+
cellRenderer: Ea
|
|
2400
2413
|
},
|
|
2401
2414
|
{
|
|
2402
2415
|
name: "description",
|
|
@@ -2416,7 +2429,7 @@ export {
|
|
|
2416
2429
|
Ha as ContinueCancelModal,
|
|
2417
2430
|
ll as ErrorBoundaryFallback,
|
|
2418
2431
|
al as ErrorBoundaryProvider,
|
|
2419
|
-
|
|
2432
|
+
Lr as ErrorPage,
|
|
2420
2433
|
Za as FileUploadControl,
|
|
2421
2434
|
Nt as FormErrorText,
|
|
2422
2435
|
Yr as FormPanel,
|
|
@@ -2424,11 +2437,11 @@ export {
|
|
|
2424
2437
|
Nr as Help,
|
|
2425
2438
|
_t as HelpItem,
|
|
2426
2439
|
el as IconMapper,
|
|
2427
|
-
|
|
2440
|
+
Ta as KeycloakDataTable,
|
|
2428
2441
|
rl as KeycloakMasthead,
|
|
2429
|
-
|
|
2442
|
+
$a as KeycloakProvider,
|
|
2430
2443
|
ca as KeycloakSelect,
|
|
2431
|
-
|
|
2444
|
+
ba as KeycloakSpinner,
|
|
2432
2445
|
Gr as KeycloakTextArea,
|
|
2433
2446
|
Ca as ListEmptyState,
|
|
2434
2447
|
ja as NumberControl,
|
|
@@ -2445,26 +2458,27 @@ export {
|
|
|
2445
2458
|
Xa as TextControl,
|
|
2446
2459
|
nl as UserProfileFields,
|
|
2447
2460
|
Wa as beerify,
|
|
2448
|
-
|
|
2461
|
+
et as createNamedContext,
|
|
2449
2462
|
jr as debeerify,
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2463
|
+
Ar as generateId,
|
|
2464
|
+
xr as getErrorDescription,
|
|
2465
|
+
Tr as getErrorMessage,
|
|
2453
2466
|
Ka as getInjectedEnvironment,
|
|
2454
|
-
|
|
2455
|
-
|
|
2467
|
+
Er as getNetworkErrorDescription,
|
|
2468
|
+
Lt as getNetworkErrorMessage,
|
|
2469
|
+
Ke as isBundleKey,
|
|
2456
2470
|
Rr as isDefined,
|
|
2457
2471
|
Ja as isUserProfileError,
|
|
2458
2472
|
ae as label,
|
|
2459
2473
|
ea as mainPageContentId,
|
|
2460
2474
|
za as setUserProfileServerError,
|
|
2461
2475
|
qa as useAlerts,
|
|
2462
|
-
|
|
2476
|
+
Ua as useEnvironment,
|
|
2463
2477
|
Ht as useErrorBoundary,
|
|
2464
|
-
|
|
2478
|
+
va as useFetch,
|
|
2465
2479
|
Br as useHelp,
|
|
2466
|
-
|
|
2480
|
+
tt as useRequiredContext,
|
|
2467
2481
|
Dr as useSetTimeout,
|
|
2468
|
-
|
|
2482
|
+
Mt as useStoredState
|
|
2469
2483
|
};
|
|
2470
2484
|
//# sourceMappingURL=keycloak-ui-shared.js.map
|