@keycloak/keycloak-ui-shared 26.6.4 → 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.
@@ -1,53 +1,53 @@
1
- import { jsx as t, jsxs as k, Fragment as W } from "react/jsx-runtime";
2
- import { AlertGroup as Zt, Alert as en, AlertVariant as Be, AlertActionCloseButton as tn, Page as nn, Modal as vt, ModalVariant as rn, TextContent as an, Text as ke, Button as q, Spinner as Ct, FormHelperText as Ge, HelperText as We, HelperTextItem as ze, Popover as ln, Icon as Ne, FormGroup as kt, NumberInput as sn, ValidatedOptions as H, InputGroup as xe, InputGroupItem as _e, TextInput as Se, Select as Ae, SelectList as Ee, SelectOption as Je, MenuToggle as pe, MenuToggleStatus as Ye, TextInputGroup as It, TextInputGroupMain as wt, ChipGroup as Qe, Chip as Xe, TextInputGroupUtilities as Tt, Switch as on, TextArea as xt, FileUpload as cn, Title as dn, Card as un, CardHeader as hn, CardTitle as mn, CardBody as pn, Grid as fn, GridItem as st, PageSection as gn, JumpLinks as yn, JumpLinksItem as bn, ButtonVariant as we, Checkbox as vn, Radio as Cn, MenuFooter as kn, Dropdown as In, DropdownList as wn, DropdownItem as ot, Masthead as Tn, MastheadToggle as xn, PageToggleButton as Sn, MastheadBrand as An, MastheadContent as En, Toolbar as Ie, ToolbarContent as qe, ToolbarItem as G, Avatar as Rn, Bullseye as Dn, EmptyState as On, EmptyStateIcon as ct, EmptyStateHeader as Fn, EmptyStateBody as Pn, EmptyStateFooter as Vn, EmptyStateActions as Mn, SearchInput as Ln, Divider as Bn, Pagination as Nn, Badge as _n } from "@patternfly/react-core";
3
- import { createContext as St, useContext as At, useRef as Y, useEffect as se, useCallback as he, useState as E, useMemo as U, forwardRef as qn, useId as Et, Fragment as Rt, Children as Dt, Component as $n, isValidElement as Un } from "react";
4
- import { useTranslation as $ } from "react-i18next";
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 Re, Controller as oe, useController as De, FormProvider as mr, useWatch as pr } from "react-hook-form";
9
- import { get as _, intersectionBy as fr, cloneDeep as gr } from "lodash-es";
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 br, TableVariant as vr, Thead as Cr, Tr as Ce, Th as Me, Tbody as dt, Td as le, ExpandableRowContent as kr, ActionsColumn as Ir, TableText as wr } from "@patternfly/react-table";
13
- import './main.css';function Ze(e, n) {
14
- const r = St(n);
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 Tr = ["error", "errorMessage"], Le = "error_description";
18
- function xr(e) {
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 Vt(e.responseData);
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 Sr(e) {
27
+ function xr(e) {
28
28
  if (!(e instanceof Ot))
29
29
  return;
30
30
  const n = e.responseData;
31
- return Ar(n);
31
+ return Er(n);
32
32
  }
33
- function Ar(e) {
34
- if (typeof e == "object" && e !== null && Le in e && typeof e[Le] == "string")
35
- return e[Le];
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 Vt(e) {
37
+ function Lt(e) {
38
38
  if (!(typeof e != "object" || e === null))
39
- for (const n of Tr) {
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 Er = () => Math.floor(Math.random() * 1e3);
45
+ const Ar = () => Math.floor(Math.random() * 1e3);
46
46
  function Rr(e) {
47
47
  return e != null;
48
48
  }
49
- function et(e) {
50
- const n = At(e);
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
- se(() => (e.current = !1, () => {
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
- Zt,
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
- en,
86
+ tn,
87
87
  {
88
88
  "data-testid": s === 0 ? "last-alert" : void 0,
89
89
  isLiveRegion: !0,
90
- variant: Be[a],
90
+ variant: Ne[a],
91
91
  component: "p",
92
92
  variantLabel: "",
93
93
  title: l,
94
94
  actionClose: /* @__PURE__ */ t(
95
- tn,
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, Mt = Ze(
108
+ const Fr = 8e3, Vt = et(
109
109
  "AlertContext",
110
110
  void 0
111
- ), qa = () => et(Mt), Pr = ({ children: e }) => {
112
- const { t: n } = $(), r = Dr(), [a, l] = E([]), i = (c) => l((u) => u.filter((d) => d.id !== c)), s = he(
113
- (c, u = Be.success, d) => {
114
- const g = {
115
- id: Er(),
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: u,
118
- description: d
117
+ variant: h,
118
+ description: u
119
119
  };
120
- l((y) => [g, ...y]), r(() => i(g.id), Fr);
120
+ l((g) => [m, ...g]), r(() => i(m.id), Fr);
121
121
  },
122
122
  [r]
123
123
  ), o = he(
124
- (c, u) => {
125
- const d = n(c, { error: xr(u) }), g = Sr(u);
126
- s(d, Be.danger, g);
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
- ), h = U(() => ({ addAlert: s, addError: o }), [s, o]);
130
- return /* @__PURE__ */ k(Mt.Provider, { value: h, children: [
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
- }, Vr = (e) => {
135
- const { t: n, i18n: r } = $(), a = e.error, l = Mr(a), i = Vt(a);
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(nn, { children: /* @__PURE__ */ t(
140
+ return /* @__PURE__ */ t(rn, { children: /* @__PURE__ */ t(
141
141
  vt,
142
142
  {
143
- variant: rn.small,
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(q, { variant: "primary", onClick: s, children: n("tryAgain") }, "tryAgain")
149
+ /* @__PURE__ */ t(_, { variant: "primary", onClick: s, children: n("tryAgain") }, "tryAgain")
150
150
  ],
151
- children: /* @__PURE__ */ t(an, { children: l ? /* @__PURE__ */ t(ke, { children: n(l) }) : i && r.exists(i) ? /* @__PURE__ */ t(ke, { children: n(i) }) : /* @__PURE__ */ t(ke, { children: n("somethingWentWrongDescription") }) })
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 Mr(e) {
155
+ function Vr(e) {
156
156
  return e instanceof Error ? e.message : null;
157
157
  }
158
- function Lr(e, n, r) {
159
- const [a, l] = E(
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 se(() => {
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 Lt(e, n, r) {
172
+ function Mt(e, n, r) {
173
173
  const a = U(
174
174
  () => JSON.stringify(r),
175
175
  [r]
176
- ), [l, i] = Lr(
176
+ ), [l, i] = Mr(
177
177
  e,
178
178
  n,
179
179
  a
180
180
  ), s = U(() => JSON.parse(l), [l]), o = he(
181
- (h) => i(JSON.stringify(h)),
181
+ (d) => i(JSON.stringify(d)),
182
182
  []
183
183
  );
184
184
  return [s, o];
185
185
  }
186
- const Bt = Ze(
186
+ const Bt = et(
187
187
  "HelpContext",
188
188
  void 0
189
- ), Br = () => et(Bt), Nr = ({ children: e }) => {
190
- const [n, r] = Lt(localStorage, "helpEnabled", !0);
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 = () => St(void 0);
195
+ }, _r = () => Tt(void 0);
196
196
  let $e;
197
- const $a = () => {
198
- const e = At($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
- }, Ua = ({
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] = E(!!n), [s, o] = E(), h = U(() => {
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 se(() => {
222
+ return le(() => {
221
223
  if (n || a.current)
222
224
  return;
223
- h.init({
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((u) => o(u)), a.current = !0;
229
- }, [h, n]), s ? /* @__PURE__ */ t(Vr, { error: s }) : l ? /* @__PURE__ */ t($e.Provider, { value: { environment: e, keycloak: h }, children: /* @__PURE__ */ t(Pr, { children: /* @__PURE__ */ t(Nr, { children: r }) }) }) : /* @__PURE__ */ t(Ct, {});
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: h = q,
252
+ component: d = _,
251
253
  children: c,
252
- ...u
254
+ ...h
253
255
  }) => {
254
- const [d, g] = E(!1);
255
- return /* @__PURE__ */ k(W, { children: [
256
+ const [u, m] = R(!1);
257
+ return /* @__PURE__ */ I(W, { children: [
256
258
  /* @__PURE__ */ t(
257
- h,
259
+ d,
258
260
  {
259
261
  variant: i,
260
- onClick: () => g(!0),
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
- ...u,
272
+ ...h,
271
273
  title: e,
272
- isOpen: d,
273
- onClose: () => g(!1),
274
+ isOpen: u,
275
+ onClose: () => m(!1),
274
276
  actions: [
275
277
  /* @__PURE__ */ t(
276
- q,
278
+ _,
277
279
  {
278
280
  id: "modal-confirm",
279
281
  variant: "primary",
280
282
  onClick: () => {
281
- g(!1), o();
283
+ m(!1), o();
282
284
  },
283
285
  children: n
284
286
  },
285
287
  "confirm"
286
288
  ),
287
289
  /* @__PURE__ */ t(
288
- q,
290
+ _,
289
291
  {
290
292
  id: "modal-cancel",
291
293
  variant: "secondary",
292
- onClick: () => g(!1),
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(Ge, { ...n, children: /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(ze, { icon: /* @__PURE__ */ t(Hn, {}), variant: "error", children: e }) }) }), _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(ln, { bodyContent: e, children: /* @__PURE__ */ k(W, { children: [
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
- Ne,
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
- Ne,
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__ */ k(
351
- kt,
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
- } = Re();
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 h = !!r.rules?.required, c = ce(r.rules?.min), u = o.value ?? r.defaultValue, d = (g) => o.onChange(
389
- c !== void 0 ? Math.max(g, Number(c)) : g
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
- sn,
395
+ on,
393
396
  {
394
397
  ...l,
395
398
  id: e,
396
- value: u,
399
+ value: h,
397
400
  validated: s[e] ? H.error : H.default,
398
- required: h,
401
+ required: d,
399
402
  min: Number(c),
400
403
  max: Number(r.rules?.max),
401
- onPlus: () => d(u + 1),
402
- onMinus: () => d(u - 1),
403
- onChange: (g) => {
404
- const y = Number(g.currentTarget.value);
405
- d(isNaN(y) ? r.defaultValue : y);
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 } = $(), [l, i] = E(!0);
420
- return /* @__PURE__ */ k(xe, { children: [
421
- /* @__PURE__ */ t(_e, { isFill: !0, children: /* @__PURE__ */ t(
422
- Se,
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
- q,
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 = qn(
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 } = De({
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__ */ k(
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(Ge, { children: /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(ze, { children: e.helperText }) }) })
472
+ e.helperText && /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(Je, { children: e.helperText }) }) })
470
473
  ]
471
474
  }
472
475
  );
473
- }, $r = ({
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: h = !0,
485
+ isFullWidth: d = !0,
483
486
  onSelect: c,
484
- ...u
487
+ ...h
485
488
  }) => {
486
489
  const {
487
- control: d,
488
- formState: { errors: g }
489
- } = Re(), [y, C] = E(!1), R = ce(i.rules?.required) === !0;
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: R,
497
- error: _(g, n),
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: d,
505
- render: ({ field: { onChange: b, value: m } }) => /* @__PURE__ */ t(
506
- Ae,
507
+ control: u,
508
+ render: ({ field: { onChange: v, value: f } }) => /* @__PURE__ */ t(
509
+ xe,
507
510
  {
508
- ...u,
511
+ ...h,
509
512
  variant: "default",
510
- onClick: () => C(!y),
513
+ onClick: () => C(!g),
511
514
  onOpenChange: () => C(!1),
512
515
  selected: re(a) ? a.filter(
513
- (v) => Array.isArray(m) ? m.includes(v.key) : m === v.key
514
- ).map((v) => v.value) : m,
515
- toggle: (v) => /* @__PURE__ */ t(
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: v,
520
- onClick: () => C(!y),
521
- isExpanded: y,
522
- isFullWidth: h,
523
- status: _(g, n) ? Ye.danger : void 0,
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(m) ? m[0] : m)
528
- )?.value : m
530
+ (A) => A.key === (Array.isArray(f) ? f[0] : f)
531
+ )?.value : f
529
532
  }
530
533
  ),
531
- onSelect: (v, A) => {
532
- const I = A?.toString(), f = Array.isArray(m) ? [I] : I;
533
- c ? c(f, b) : b(f), C(!1);
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: y,
536
- children: /* @__PURE__ */ t(Ee, { "data-testid": `select-${n}`, children: [...a, ...l].map((v) => /* @__PURE__ */ t(
537
- Je,
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: ie(v),
540
- description: !me(v) && "description" in v ? v.description : void 0,
541
- children: me(v) ? v : v.value
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
- ie(v)
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) => me(e) ? e : e.value, Ur = ({
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: h,
563
+ onFilter: d,
561
564
  variant: c,
562
- isFullWidth: u = !0,
563
- ...d
565
+ isFullWidth: h = !0,
566
+ ...u
564
567
  }) => {
565
568
  const {
566
- control: g,
567
- formState: { errors: y }
568
- } = Re(), [C, R] = E(!1), [b, m] = E(""), [v, A] = E(0), [I, f] = E([]), T = Y(), V = ce(i.rules?.required) === !0, O = c === ue.typeaheadMulti, D = U(
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((x) => ne(x)).includes(ne(p))
574
+ (p) => !l.map((k) => ne(k)).includes(ne(p))
572
575
  ),
573
576
  ...l
574
577
  ],
575
578
  [l, a]
576
- ), j = D.filter(
577
- (p) => ne(p).toLowerCase().startsWith(b.toLowerCase())
578
- ), F = (p, x) => {
579
- x.value.includes(p) ? (x.onChange(x.value.filter((S) => S !== p)), re(a) && f(
580
- I.filter((S) => S.key !== p)
581
- )) : (x.onChange([...x.value, p]), re(D) && f([
582
- ...I,
583
- D.find((S) => S.key === p)
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
- }, B = (p, x) => {
586
- const S = j[v];
587
- switch (R(!0), p.key) {
588
+ }, L = (p, k) => {
589
+ const x = $[b];
590
+ switch (E(!0), p.key) {
588
591
  case "Enter": {
589
- p.preventDefault(), m(O ? "" : ne(S)), F(ie(S), x), R(!1), A(0);
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
- R(!1), x.onChange(void 0);
597
+ E(!1), k.onChange(void 0);
595
598
  break;
596
599
  }
597
600
  case "Backspace": {
598
- c === ue.typeahead && x.onChange("");
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 L = 0;
605
- p.key === "ArrowUp" && (v === 0 ? L = a.length - 1 : L = v - 1), p.key === "ArrowDown" && (v === a.length - 1 ? L = 0 : L = v + 1), A(L);
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: V,
617
- error: _(y, n),
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: g,
627
+ control: m,
625
628
  render: ({ field: p }) => /* @__PURE__ */ t(
626
- Ae,
629
+ xe,
627
630
  {
628
- ...d,
629
- onOpenChange: () => R(!1),
631
+ ...u,
632
+ onOpenChange: () => E(!1),
630
633
  selected: re(D) ? D.filter(
631
- (x) => Array.isArray(p.value) ? p.value.includes(x.key) : p.value === x.key
632
- ).map((x) => x.value) : p.value,
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: (x) => /* @__PURE__ */ t(
637
+ toggle: (k) => /* @__PURE__ */ t(
635
638
  pe,
636
639
  {
637
- ref: x,
640
+ ref: k,
638
641
  id: e || n,
639
642
  variant: "typeahead",
640
643
  onClick: () => {
641
- R(!C), T.current?.focus();
644
+ E(!C), T.current?.focus();
642
645
  },
643
646
  isExpanded: C,
644
- isFullWidth: u,
645
- status: _(y, n) ? Ye.danger : void 0,
646
- children: /* @__PURE__ */ k(It, { isPlain: !0, children: [
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
- wt,
651
+ It,
649
652
  {
650
653
  placeholder: o,
651
654
  value: c === ue.typeahead && p.value ? re(D) ? D.find(
652
- (S) => S.key === (Array.isArray(p.value) ? p.value[0] : p.value)
653
- )?.value : p.value : b,
654
- onClick: () => R(!C),
655
- onChange: (S, L) => {
656
- m(L), h?.(L);
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: (S) => B(S, p),
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(Qe, { "aria-label": "Current selections", children: p.value.map(
665
- (S, L) => /* @__PURE__ */ t(
666
- Xe,
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: (N) => {
669
- N.stopPropagation(), p.onChange(
671
+ onClick: (B) => {
672
+ B.stopPropagation(), p.onChange(
670
673
  p.value.filter(
671
- (Z) => Z !== ie(S)
674
+ (Z) => Z !== se(x)
672
675
  )
673
676
  );
674
677
  },
675
678
  children: re(D) ? [
676
679
  ...D,
677
- ...I
678
- ].find((N) => S === N.key)?.value : ne(S)
680
+ ...w
681
+ ].find((B) => x === B.key)?.value : ne(x)
679
682
  },
680
- L
683
+ M
681
684
  )
682
685
  ) })
683
686
  }
684
687
  ),
685
- /* @__PURE__ */ t(Tt, { children: (!!b || p.value) && /* @__PURE__ */ t(
686
- q,
688
+ /* @__PURE__ */ t(wt, { children: (!!v || p.value) && /* @__PURE__ */ t(
689
+ _,
687
690
  {
688
691
  variant: "plain",
689
692
  onClick: () => {
690
- m(""), p.onChange(O ? [] : ""), T?.current?.focus();
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: (x, S) => {
700
- x?.stopPropagation();
701
- const L = S?.toString();
702
- O && Array.isArray(p.value) ? (m(""), F(L || "", p)) : (p.onChange(Array.isArray(p.value) ? [L] : L), R(!1));
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: j.map((x, S) => /* @__PURE__ */ t(
706
- Je,
708
+ children: /* @__PURE__ */ t(Ee, { children: $.map((k, x) => /* @__PURE__ */ t(
709
+ Ye,
707
710
  {
708
- value: ie(x),
709
- isFocused: v === S,
710
- isActive: p.value.includes(ne(x)),
711
- description: !me(x) && "description" in x ? x.description : void 0,
712
- children: ne(x)
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
- ie(x)
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", me = (e) => typeof e == "string", ie = (e) => me(e) ? e : e.key, Kr = ({
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($r, { ...n }) : /* @__PURE__ */ t(Ur, { ...n, variant: e }), Ue = (e) => e && typeof e == "string" ? e.includes("${") : !1, Ke = (e) => e.substring(2, e.length - 1), ae = (e, n, r, a) => {
728
- const l = n || r, i = Ue(l) ? Ke(l) : l, s = a ? `${a}.${i}` : 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
- }, He = (e, n) => ae(e, n.displayName, n.name), Hr = ["username", "firstName", "lastName", "email"], $t = (e) => e && Hr.includes(e), X = (e) => `${$t(e) ? "" : "attributes."}${e?.replaceAll(
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) => Ue(i) ? r(Ke(i)) : 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
- Ue(a.errorMessage) ? Ke(a.errorMessage) : a.errorMessage,
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 Oe({
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 } = Re();
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: h, value: c } }) => /* @__PURE__ */ t(
790
- on,
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: (u, d) => {
799
- const g = n ? d.toString() : d;
800
- l.onChange?.(u, d), h(g);
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 } = De({
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
- xt,
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 } = De({
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__ */ k(
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
- Se,
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(Ge, { children: /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(ze, { children: r }) }) })
864
+ r && /* @__PURE__ */ t(We, { children: /* @__PURE__ */ t(ze, { children: /* @__PURE__ */ t(Je, { children: r }) }) })
862
865
  ]
863
866
  }
864
867
  );
865
- }, Gr = xt, Za = (e) => {
866
- const { labelIcon: n, ...r } = e, a = !!ce(e.rules?.required), l = e.defaultValue ?? "", { t: i } = $(), [s, o] = E(""), { field: h, fieldState: c } = De({
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
- cn,
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: (u, d) => {
890
- h.onChange(d), o(d.name);
892
+ onFileInputChange: (h, u) => {
893
+ d.onChange(u), o(u.name);
891
894
  },
892
895
  onClearClick: () => {
893
- h.onChange(null), o("");
896
+ d.onChange(null), o("");
894
897
  },
895
898
  ...r,
896
- ...h
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(Ne, { size: "lg", children: /* @__PURE__ */ t(n, { alt: e }) });
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
- }, Ut = ({
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
- dn,
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 = Et();
962
- return /* @__PURE__ */ k(un, { id: l, className: a, isFlat: !0, children: [
963
- /* @__PURE__ */ t(hn, { className: "kc-form-panel__header", children: /* @__PURE__ */ t(mn, { tabIndex: 0, children: /* @__PURE__ */ t(Ut, { id: r, title: e }) }) }),
964
- /* @__PURE__ */ t(pn, { className: "kc-form-panel__body", children: n })
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__ */ k(W, { children: [
969
- /* @__PURE__ */ t(Ut, { id: a, title: n }),
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", mt = (e) => e.replace(/\s+/g, "-"), ta = ({
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: i }) => !i),
985
+ () => n.filter(({ isHidden: o }) => !o),
983
986
  [n]
984
- );
985
- return /* @__PURE__ */ k(fn, { hasGutter: !0, ...a, children: [
986
- /* @__PURE__ */ t(st, { md: 8, sm: 12, children: l.map(({ title: i, panel: s }) => {
987
- const o = mt(i.toLowerCase());
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: o,
992
- title: i,
1006
+ scrollId: c,
1007
+ title: o,
993
1008
  className: ht.panel,
994
- children: s
1009
+ children: d
995
1010
  }
996
- ) : /* @__PURE__ */ t(Qr, { scrollId: o, title: i, children: s }) }, i);
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(gn, { className: ht.sticky, children: /* @__PURE__ */ t(
999
- yn,
1000
- {
1001
- isVertical: !0,
1002
- scrollableSelector: `#${ea}`,
1003
- label: e,
1004
- offset: 100,
1005
- children: l.map(({ title: i }) => {
1006
- const s = mt(i.toLowerCase());
1007
- return /* @__PURE__ */ t(
1008
- bn,
1009
- {
1010
- onClick: () => {
1011
- const o = document.getElementById(s);
1012
- o && o.scrollIntoView({
1013
- behavior: "smooth",
1014
- block: "start"
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
- q,
1041
+ _,
1035
1042
  {
1036
1043
  variant: "primary",
1037
- isDisabled: e && !na(e, a, r) || n,
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(mr, { ...n, children: /* @__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
- }, fe = ({
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), h = _(s, X(r.name));
1085
- return /* @__PURE__ */ k(
1086
- kt,
1091
+ } = n, o = a?.(r), d = N(s, X(r.name));
1092
+ return /* @__PURE__ */ I(
1093
+ Ct,
1087
1094
  {
1088
- label: He(e, r) || "",
1095
+ label: je(e, r) || "",
1089
1096
  fieldId: r.name,
1090
- isRequired: Oe(r),
1097
+ isRequired: De(r),
1091
1098
  labelIcon: i ? /* @__PURE__ */ t(_t, { helpText: i, fieldLabelId: r.name }) : void 0,
1092
1099
  children: [
1093
- o ? /* @__PURE__ */ k(xe, { children: [
1100
+ o ? /* @__PURE__ */ I(Se, { children: [
1094
1101
  l,
1095
1102
  o
1096
1103
  ] }) : l,
1097
- h && /* @__PURE__ */ t(
1104
+ d && /* @__PURE__ */ t(
1098
1105
  Nt,
1099
1106
  {
1100
1107
  "data-testid": `${r.name}-helper`,
1101
- message: h.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(fe, { t: e, form: n, attribute: r, renderer: a, children: /* @__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": He(e, r),
1126
+ "aria-label": je(e, r),
1120
1127
  name: X(r.name),
1121
1128
  defaultValue: [r.defaultValue || ""],
1122
1129
  addButtonLabel: e("addMultivaluedLabel", {
1123
- fieldLabel: He(e, r)
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
- ...h
1144
+ ...d
1137
1145
  }) => {
1138
- const { register: c, setValue: u, control: d } = a, g = pr({
1146
+ const { register: c, setValue: h, control: u } = a, m = pr({
1139
1147
  name: n,
1140
- control: d,
1148
+ control: u,
1141
1149
  defaultValue: s || ""
1142
- }), y = U(() => Array.isArray(g) && g.length !== 0 ? g : s || [""], [g]), C = (A) => {
1143
- m([...y.slice(0, A), ...y.slice(A + 1)]);
1144
- }, R = () => {
1145
- m([...y, ""]);
1146
- }, b = (A, I) => {
1147
- m([...y.slice(0, A), I, ...y.slice(A + 1)]);
1148
- }, m = (A) => {
1149
- const I = A.flatMap((f) => f);
1150
- u(n, I, {
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
- }, v = r.startsWith("html") ? r.substring(6) : "text";
1154
- return se(() => {
1161
+ }, b = r.startsWith("html") ? r.substring(6) : "text";
1162
+ return le(() => {
1155
1163
  c(n);
1156
- }, [c]), /* @__PURE__ */ t("div", { id: o, children: y.map((A, I) => /* @__PURE__ */ k(Rt, { children: [
1157
- /* @__PURE__ */ k(xe, { children: [
1158
- /* @__PURE__ */ t(_e, { isFill: !0, children: /* @__PURE__ */ t(
1159
- Se,
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 + I,
1162
- onChange: (f, T) => b(I, T),
1163
- name: `${n}.${I}.value`,
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: v,
1167
- ...h
1174
+ type: b,
1175
+ ...d
1168
1176
  }
1169
1177
  ) }),
1170
- /* @__PURE__ */ t(_e, { children: /* @__PURE__ */ t(
1171
- q,
1178
+ /* @__PURE__ */ t(qe, { children: /* @__PURE__ */ t(
1179
+ _,
1172
1180
  {
1173
- "data-testid": "remove" + I,
1174
- variant: we.link,
1175
- onClick: () => C(I),
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: y.length === 1 || i,
1186
+ isDisabled: g.length === 1 || i,
1179
1187
  children: /* @__PURE__ */ t(or, {})
1180
1188
  }
1181
1189
  ) })
1182
1190
  ] }),
1183
- I === y.length - 1 && /* @__PURE__ */ k(
1184
- q,
1191
+ w === g.length - 1 && /* @__PURE__ */ I(
1192
+ _,
1185
1193
  {
1186
- variant: we.link,
1187
- onClick: R,
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
- ] }, I)) });
1200
- }, pt = (e) => {
1201
- const { form: n, inputType: r, attribute: a } = e, l = Oe(a), i = r.startsWith("multiselect"), s = i ? vn : Cn, o = a.validators?.options?.options || [], h = a.annotations?.inputOptionLabels || {}, c = a.annotations?.inputOptionLabelsI18nPrefix;
1202
- return /* @__PURE__ */ t(fe, { ...e, children: /* @__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: u }) => /* @__PURE__ */ t(W, { children: o.map((d) => /* @__PURE__ */ t(
1216
+ render: ({ field: h }) => /* @__PURE__ */ t(W, { children: o.map((u) => /* @__PURE__ */ t(
1209
1217
  s,
1210
1218
  {
1211
- id: d,
1212
- "data-testid": d,
1213
- label: ae(e.t, h[d], d, c),
1214
- value: d,
1215
- isChecked: u.value?.includes(d),
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 ? u.value?.includes(d) ? u.onChange(
1218
- u.value?.filter((g) => g !== d)
1219
- ) : u.onChange([...u.value || [], d]) : u.onChange([d]);
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
- d
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: h,
1245
+ maxHeight: d,
1238
1246
  toggleIcon: c,
1239
- className: u,
1240
- isDisabled: d,
1241
- children: g,
1242
- ...y
1247
+ className: h,
1248
+ isDisabled: u,
1249
+ children: m,
1250
+ ...g
1243
1251
  }) => {
1244
- const [C, R] = E(!1), b = Y(), m = () => {
1245
- R(!C), n(!C);
1246
- }, v = () => i === "parent" && b.current?.parentElement || "inline", A = Dt.toArray(
1247
- g
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
- Ae,
1258
+ xe,
1251
1259
  {
1252
- ref: b,
1253
- maxMenuHeight: Te(h),
1260
+ ref: v,
1261
+ maxMenuHeight: we(d),
1254
1262
  isScrollable: !0,
1255
1263
  popperProps: {
1256
- appendTo: v(),
1264
+ appendTo: b(),
1257
1265
  direction: s,
1258
- width: Te(o)
1266
+ width: we(o)
1259
1267
  },
1260
- ...y,
1261
- onClick: m,
1262
- onOpenChange: (I) => {
1263
- I !== C && m();
1268
+ ...g,
1269
+ onClick: f,
1270
+ onOpenChange: (w) => {
1271
+ w !== C && f();
1264
1272
  },
1265
1273
  selected: a,
1266
- onSelect: (I, f) => {
1267
- r?.(f || ""), m();
1274
+ onSelect: (w, y) => {
1275
+ r?.(y || ""), f();
1268
1276
  },
1269
- toggle: (I) => /* @__PURE__ */ t(
1277
+ toggle: (w) => /* @__PURE__ */ t(
1270
1278
  pe,
1271
1279
  {
1272
1280
  id: e,
1273
- ref: I,
1274
- className: u,
1275
- onClick: m,
1281
+ ref: w,
1282
+ className: h,
1283
+ onClick: f,
1276
1284
  isExpanded: l,
1277
- "aria-label": y["aria-label"],
1285
+ "aria-label": g["aria-label"],
1278
1286
  icon: c,
1279
- isDisabled: d,
1287
+ isDisabled: u,
1280
1288
  isFullWidth: !0,
1281
- children: A.find((f) => f.props.value === a)?.props.children || a || y["aria-label"]
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: g })
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: h,
1305
+ width: d,
1298
1306
  toggleIcon: c,
1299
- direction: u,
1300
- selections: d,
1301
- typeAheadAriaLabel: g,
1302
- chipGroupComponent: y,
1307
+ direction: h,
1308
+ selections: u,
1309
+ typeAheadAriaLabel: m,
1310
+ chipGroupComponent: g,
1303
1311
  chipGroupProps: C,
1304
- footer: R,
1305
- isDisabled: b,
1306
- children: m,
1307
- ...v
1312
+ footer: E,
1313
+ isDisabled: v,
1314
+ children: f,
1315
+ ...b
1308
1316
  }) => {
1309
- const [A, I] = E(""), [f, T] = E(0), V = Y(), O = Dt.toArray(
1310
- m
1311
- ), D = () => {
1312
- r?.(!v.isOpen);
1313
- }, j = (F) => {
1314
- const B = O[f];
1315
- switch (r?.(!0), F.key) {
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
- F.preventDefault(), l !== J.typeaheadMulti ? I(B.props.value) : I(""), n?.(B.props.value), r?.(!1), T(0);
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?.(!1);
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
- F.preventDefault();
1331
- let p = 0;
1332
- F.key === "ArrowUp" && (f === 0 ? p = O.length - 1 : p = f - 1), F.key === "ArrowDown" && (f === O.length - 1 ? p = 0 : p = f + 1), T(p);
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__ */ k(
1338
- Ae,
1349
+ return /* @__PURE__ */ I(
1350
+ xe,
1339
1351
  {
1340
- ...v,
1341
- onClick: D,
1342
- onOpenChange: (F) => r?.(F),
1343
- onSelect: (F, B) => {
1344
- n?.(B || ""), a?.(""), I("");
1352
+ ...b,
1353
+ onClick: $,
1354
+ onOpenChange: (L) => r(L),
1355
+ onSelect: (L, p) => {
1356
+ n?.(p || ""), a?.(""), w("");
1345
1357
  },
1346
- maxMenuHeight: Te(o),
1347
- popperProps: { direction: u, width: Te(h) },
1348
- toggle: (F) => /* @__PURE__ */ t(
1358
+ maxMenuHeight: we(o),
1359
+ popperProps: { direction: h, width: we(d) },
1360
+ toggle: (L) => /* @__PURE__ */ t(
1349
1361
  pe,
1350
1362
  {
1351
- ref: F,
1363
+ ref: L,
1352
1364
  id: e,
1353
1365
  variant: "typeahead",
1354
- onClick: () => r?.(!0),
1366
+ onClick: () => r(!0),
1355
1367
  icon: c,
1356
- isDisabled: b,
1357
- isExpanded: v.isOpen,
1368
+ isDisabled: v,
1369
+ isExpanded: b.isOpen,
1358
1370
  isFullWidth: !0,
1359
- status: i === "error" ? Ye.danger : void 0,
1360
- children: /* @__PURE__ */ k(It, { isPlain: !0, children: [
1371
+ status: i === "error" ? Qe.danger : void 0,
1372
+ children: /* @__PURE__ */ I(kt, { isPlain: !0, children: [
1361
1373
  /* @__PURE__ */ t(
1362
- wt,
1374
+ It,
1363
1375
  {
1364
1376
  placeholder: s,
1365
- value: l === J.typeahead && d ? d : A,
1366
- onClick: D,
1367
- onChange: (B, p) => {
1368
- I(p), a?.(p);
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: (B) => j(B),
1382
+ onKeyDown: (p) => j(p),
1371
1383
  autoComplete: "off",
1372
- innerRef: V,
1384
+ innerRef: P,
1373
1385
  role: "combobox",
1374
- isExpanded: v.isOpen,
1386
+ isExpanded: b.isOpen,
1375
1387
  "aria-controls": "select-typeahead-listbox",
1376
- "aria-label": g,
1377
- children: l === J.typeaheadMulti && Array.isArray(d) && (y || /* @__PURE__ */ t(Qe, { ...C, children: d.map((B, p) => /* @__PURE__ */ t(
1378
- Xe,
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?.(B);
1393
+ x.stopPropagation(), n?.(p);
1382
1394
  },
1383
- children: B
1395
+ children: p
1384
1396
  },
1385
- p
1397
+ k
1386
1398
  )) }))
1387
1399
  }
1388
1400
  ),
1389
- /* @__PURE__ */ t(Tt, { children: !!A && /* @__PURE__ */ t(
1390
- q,
1401
+ /* @__PURE__ */ t(wt, { children: !!A && /* @__PURE__ */ t(
1402
+ _,
1391
1403
  {
1392
1404
  variant: "plain",
1393
1405
  onClick: () => {
1394
- n?.(""), I(""), a?.(""), V?.current?.focus();
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: m }),
1405
- R && /* @__PURE__ */ t(kn, { children: R })
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 Te = (e) => typeof e == "number" ? e + "px" : e, ca = ({
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 }), ft = (e) => {
1415
- const { t: n, form: r, inputType: a, attribute: l } = e, [i, s] = E(!1), [o, h] = E(""), c = a === "multiselect", u = (b, m) => {
1416
- c ? m.value?.includes(b) ? m.onChange(m.value.filter((v) => v !== b)) : Array.isArray(m.value) ? m.onChange([...m.value, b]) : m.onChange([b]) : m.onChange(b === m.value ? "" : b);
1417
- }, d = l.validators?.options?.options || [], g = l.annotations?.inputOptionLabels || {}, y = l.annotations?.inputOptionLabelsI18nPrefix, C = (b) => ae(e.t, g[b], b, y), R = (b) => d.filter(
1418
- (m) => C(m).toLowerCase().includes(o.toLowerCase())
1419
- ).map((m) => /* @__PURE__ */ t(
1420
- Je,
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(b) ? b.includes(m) : b === m,
1423
- value: m,
1424
- children: C(m)
1434
+ selected: Array.isArray(v) ? v.includes(f) : v === f,
1435
+ value: f,
1436
+ children: C(f)
1425
1437
  },
1426
- m
1438
+ f
1427
1439
  ));
1428
- return /* @__PURE__ */ t(fe, { ...e, children: /* @__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: b }) => /* @__PURE__ */ t(
1446
+ render: ({ field: v }) => /* @__PURE__ */ t(
1435
1447
  ca,
1436
1448
  {
1437
1449
  toggleId: l.name,
1438
- onToggle: (m) => s(m),
1439
- onClear: () => u("", b),
1440
- onSelect: (m) => {
1441
- const v = m.toString();
1442
- u(v, b), Array.isArray(b.value) || s(!1);
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(b.value) ? b.value.map((m) => C(m)) : C(b.value),
1445
- variant: c ? J.typeaheadMulti : d.length >= 10 ? J.typeahead : J.single,
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: (m) => (h(m), R(b.value)),
1450
- children: R(b.value)
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 = Oe(r);
1457
- return /* @__PURE__ */ t(fe, { ...e, children: /* @__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 = Oe(a), i = r.startsWith("html") ? r.substring(6) : "text";
1472
- return /* @__PURE__ */ t(fe, { ...e, children: /* @__PURE__ */ t(
1473
- Se,
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
- }, je = {
1502
+ }, Ge = {
1491
1503
  text: K,
1492
1504
  textarea: da,
1493
- select: ft,
1494
- "select-radiobuttons": pt,
1495
- multiselect: ft,
1496
- "multiselect-checkboxes": pt,
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 h = i ? r.attributes.filter(({ readOnly: c }) => !c) : r.attributes;
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: h.filter(
1527
- (u) => u.group === c.name
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((h) => h.attributes.length > 0).map(({ group: h, attributes: c }) => ({
1540
- title: ae(e, h.displayHeader, h.name) || e("general"),
1541
- panel: /* @__PURE__ */ k("div", { className: "pf-v5-c-form", children: [
1542
- h.displayDescription && /* @__PURE__ */ t(ke, { className: "pf-v5-u-pb-lg", children: ae(e, h.displayDescription, "") }),
1543
- c.map((u) => /* @__PURE__ */ t(
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: u
1563
+ attribute: h
1552
1564
  },
1553
- u.name
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(() => ma(i), [i]), h = i.multivalued || fa(s) && i.annotations?.inputType === void 0 ? je["multi-input"] : je[o];
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
- h,
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 ma(e) {
1591
- if ($t(e.name))
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 je, fa = (e) => Array.isArray(e) && e.length > 1, ga = ({
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__ */ k(
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__ */ k("g", { transform: "translate(5.04 6.88)", children: [
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
- ), gt = ({
1728
+ ), mt = ({
1717
1729
  isKebab: e = !1,
1718
1730
  title: n,
1719
1731
  dropDownItems: r,
1720
1732
  ...a
1721
1733
  }) => {
1722
- const [l, i] = E(!1);
1734
+ const [l, i] = R(!1);
1723
1735
  return /* @__PURE__ */ t(
1724
- In,
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(wn, { children: r })
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: h = !0
1772
+ hasUsername: d = !0
1761
1773
  } = {},
1762
1774
  kebabDropdownItems: c,
1763
- dropdownItems: u = [],
1764
- toolbarItems: d,
1765
- toolbar: g,
1766
- ...y
1775
+ dropdownItems: h = [],
1776
+ toolbarItems: u,
1777
+ toolbar: m,
1778
+ ...g
1767
1779
  }) => {
1768
- const { t: C } = $(), R = [];
1769
- o && R.push(
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 && R.push(
1790
+ ), s && E.push(
1779
1791
  /* @__PURE__ */ t(ot, { onClick: () => e.logout(), children: C("signOut") }, "signOut")
1780
1792
  );
1781
- const b = e.idTokenParsed?.picture;
1782
- return /* @__PURE__ */ k(Tn, { ...y, children: [
1783
- /* @__PURE__ */ t(xn, { children: /* @__PURE__ */ t(Sn, { variant: "plain", "aria-label": C("navigation"), children: /* @__PURE__ */ t(dr, {}) }) }),
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__ */ k(En, { children: [
1786
- g,
1787
- /* @__PURE__ */ t(Ie, { children: /* @__PURE__ */ k(qe, { children: [
1788
- d?.map((m, v) => /* @__PURE__ */ t(G, { align: { default: "alignRight" }, children: m }, v)),
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
- gt,
1809
+ mt,
1798
1810
  {
1799
1811
  "data-testid": "options",
1800
- dropDownItems: [...u, R],
1801
- title: h ? ya(e.idTokenParsed, C) : void 0
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
- gt,
1826
+ mt,
1815
1827
  {
1816
1828
  "data-testid": "options-kebab",
1817
1829
  isKebab: !0,
1818
1830
  dropDownItems: [
1819
- ...c || u,
1820
- R
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: b || i?.src ? /* @__PURE__ */ t(Rn, { src: b, alt: C("avatar"), ...i }) : /* @__PURE__ */ t(ga, { ...i })
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 = Ze("ErrorBoundaryContext", void 0), Ht = () => et(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 ba(e, n, r) {
1871
+ function va(e, n, r) {
1860
1872
  const { showBoundary: a } = Ht();
1861
- se(() => {
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 va = () => {
1871
- const { t: e } = $();
1872
- return /* @__PURE__ */ t(Dn, { children: /* @__PURE__ */ t(Ct, { "aria-label": e("spinnerLoading") }) });
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: h = !1,
1894
+ isDisabled: d = !1,
1883
1895
  children: c
1884
- }) => /* @__PURE__ */ k(On, { "data-testid": "empty-state", variant: "lg", children: [
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(Fn, { titleText: e, headingLevel: "h1" }),
1887
- /* @__PURE__ */ t(Pn, { children: n }),
1888
- /* @__PURE__ */ k(Vn, { children: [
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
- q,
1902
+ _,
1891
1903
  {
1892
1904
  "data-testid": `${e.replace(/\W+/g, "-").toLowerCase()}-empty-action`,
1893
1905
  variant: "primary",
1894
1906
  onClick: r,
1895
- isDisabled: h,
1907
+ isDisabled: d,
1896
1908
  children: i
1897
1909
  }
1898
1910
  ),
1899
1911
  c,
1900
- s && /* @__PURE__ */ t(Mn, { children: s.map((u) => /* @__PURE__ */ t(
1901
- q,
1912
+ s && /* @__PURE__ */ t(Mn, { children: s.map((h) => /* @__PURE__ */ t(
1913
+ _,
1902
1914
  {
1903
- "data-testid": `${u.text.replace(/\W+/g, "-").toLowerCase()}-empty-action`,
1904
- variant: u.type || we.secondary,
1905
- onClick: u.onClick,
1906
- isDisabled: h,
1907
- children: u.text
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
- u.text
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: h } = $(), [c, u] = E(""), d = (y) => {
1923
- u(y.trim()), o?.(y.trim());
1924
- }, g = (y) => {
1925
- y.key === "Enter" && d(c);
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__ */ k(W, { children: [
1928
- /* @__PURE__ */ t(Ie, { "data-testid": "table-toolbar", children: /* @__PURE__ */ k(qe, { children: [
1929
- i && /* @__PURE__ */ t(G, { children: /* @__PURE__ */ k(xe, { "data-testid": i, children: [
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
- Ln,
1944
+ Bn,
1933
1945
  {
1934
1946
  "data-testid": "table-search-input",
1935
1947
  placeholder: s,
1936
- "aria-label": h("search"),
1948
+ "aria-label": d("search"),
1937
1949
  value: c,
1938
- onChange: (y, C) => {
1939
- u(C);
1950
+ onChange: (g, C) => {
1951
+ h(C);
1940
1952
  },
1941
- onSearch: () => d(c),
1942
- onKeyDown: g,
1943
- onClear: () => d("")
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(Ie, { children: /* @__PURE__ */ t(qe, { children: n }) }),
1950
- /* @__PURE__ */ t(Bn, {}),
1961
+ n && /* @__PURE__ */ t(ke, { children: /* @__PURE__ */ t(Ue, { children: n }) }),
1962
+ /* @__PURE__ */ t(Nn, {}),
1951
1963
  a,
1952
- /* @__PURE__ */ t(Ie, { children: r })
1964
+ /* @__PURE__ */ t(ke, { children: r })
1953
1965
  ] });
1954
- }, yt = ({
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: h } = $(), c = Math.round(a / l);
1976
+ const { t: d } = q(), c = Math.round(a / l);
1965
1977
  return /* @__PURE__ */ t(
1966
- Nn,
1978
+ _n,
1967
1979
  {
1968
1980
  widgetId: e,
1969
1981
  titles: {
1970
- paginationAriaLabel: `${h("pagination")} ${n} `
1982
+ paginationAriaLabel: `${d("pagination")} ${n} `
1971
1983
  },
1972
1984
  isCompact: !0,
1973
1985
  toggleTemplate: ({
1974
- firstIndex: u,
1975
- lastIndex: d
1976
- }) => /* @__PURE__ */ k("b", { children: [
1977
- u,
1986
+ firstIndex: h,
1987
+ lastIndex: u
1988
+ }) => /* @__PURE__ */ I("b", { children: [
1989
+ h,
1978
1990
  " - ",
1979
- d
1991
+ u
1980
1992
  ] }),
1981
1993
  itemCount: r + c * l,
1982
1994
  page: c + 1,
1983
1995
  perPage: l,
1984
- onNextClick: (u, d) => i((d - 1) * l),
1985
- onPreviousClick: (u, d) => s((d - 1) * l),
1986
- onPerPageSelect: (u, d, g) => o(g - 1, d),
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
- ...h
2011
+ ...d
2000
2012
  }) => /* @__PURE__ */ t(
2001
2013
  ka,
2002
2014
  {
2003
2015
  searchTypeComponent: n,
2004
- toolbarItem: /* @__PURE__ */ k(W, { children: [
2016
+ toolbarItem: /* @__PURE__ */ I(W, { children: [
2005
2017
  r,
2006
- /* @__PURE__ */ t(G, { variant: "pagination", children: /* @__PURE__ */ t(yt, { count: e, ...h }) })
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(yt, { count: e, variant: "bottom", ...h }) }) : null,
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, bt = ({
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__ */ k(W, { children: [
2023
- e.cells.map((i, s) => /* @__PURE__ */ t(le, { children: jt(i) ? i.title : i }, `cell-${s}`)),
2024
- l && l.length > 0 && !e.disableActions && /* @__PURE__ */ t(le, { isActionCell: !0, children: /* @__PURE__ */ t(Ir, { items: l, extraData: { rowIndex: n } }) })
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 Ta({
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: h,
2048
+ canSelectAll: d,
2037
2049
  canSelect: c,
2038
- isNotCompact: u,
2039
- isRadio: d,
2040
- ...g
2050
+ isNotCompact: h,
2051
+ isRadio: u,
2052
+ ...m
2041
2053
  }) {
2042
- const { t: y } = $(), [C, R] = E(i || []), [b, m] = E([]), v = U(
2043
- () => fr(
2054
+ const { t: g } = q(), [C, E] = R(i || []), [v, f] = R([]), b = U(
2055
+ () => mr(
2044
2056
  C,
2045
- n.map((f) => f.data),
2057
+ n.map((y) => y.data),
2046
2058
  "id"
2047
2059
  ),
2048
2060
  [C, n]
2049
2061
  );
2050
- se(() => {
2051
- if (h) {
2052
- const f = document.getElementsByName("check-all").item(0);
2053
- if (f) {
2054
- const T = f;
2055
- T.indeterminate = v.length < n.length && v.length > 0;
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, h, n]);
2059
- const A = (f) => {
2060
- R(f), s?.(f);
2061
- }, I = (f, T) => {
2062
- if (d) {
2063
- const V = T ? [n[f].data] : [];
2064
- A(V);
2065
- } else if (f === -1) {
2066
- const V = v.map(
2067
- (O) => _(O, "id")
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) => !V.includes(_(O, "id"))
2083
+ (O) => !P.includes(N(O, "id"))
2072
2084
  )
2073
2085
  );
2074
2086
  } else
2075
- A(T ? [...C, n[f].data] : C.filter(
2076
- (V) => _(V, "id") !== n[f].data.id
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__ */ k(
2080
- br,
2091
+ return /* @__PURE__ */ I(
2092
+ vr,
2081
2093
  {
2082
- ...g,
2083
- variant: u ? void 0 : vr.compact,
2084
- "aria-label": y(l),
2094
+ ...m,
2095
+ variant: h ? void 0 : br.compact,
2096
+ "aria-label": g(l),
2085
2097
  children: [
2086
- /* @__PURE__ */ t(Cr, { children: /* @__PURE__ */ k(Ce, { children: [
2087
- o && /* @__PURE__ */ t(Me, { screenReaderText: y("expandRow") }),
2088
- h && /* @__PURE__ */ t(
2089
- Me,
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: y("selectAll"),
2092
- select: d ? void 0 : {
2093
- onSelect: (f, T) => {
2094
- I(-1, T);
2103
+ screenReaderText: g("selectAll"),
2104
+ select: u ? void 0 : {
2105
+ onSelect: (y, T) => {
2106
+ w(-1, T);
2095
2107
  },
2096
- isSelected: v.length === n.length
2108
+ isSelected: b.length === n.length
2097
2109
  }
2098
2110
  }
2099
2111
  ),
2100
- e.map((f) => /* @__PURE__ */ t(
2101
- Me,
2112
+ e.map((y) => /* @__PURE__ */ t(
2113
+ Ve,
2102
2114
  {
2103
- screenReaderText: y("expandRow"),
2104
- className: f.transforms?.[0]().className,
2105
- children: y(f.displayKey || f.name)
2115
+ screenReaderText: g("expandRow"),
2116
+ className: y.transforms?.[0]().className,
2117
+ children: g(y.displayKey || y.name)
2106
2118
  },
2107
- f.displayKey || f.name
2119
+ y.displayKey || y.name
2108
2120
  ))
2109
2121
  ] }) }),
2110
- o ? n.map((f, T) => /* @__PURE__ */ t(dt, { children: T % 2 === 0 ? /* @__PURE__ */ k(Ce, { children: [
2122
+ o ? n.map((y, T) => /* @__PURE__ */ t(dt, { children: T % 2 === 0 ? /* @__PURE__ */ I(be, { children: [
2111
2123
  /* @__PURE__ */ t(
2112
- le,
2124
+ ie,
2113
2125
  {
2114
2126
  expand: n[T + 1].cells.length === 0 ? void 0 : {
2115
- isExpanded: b[T] ?? !1,
2127
+ isExpanded: v[T] ?? !1,
2116
2128
  rowIndex: T,
2117
2129
  expandId: "expandable-row-",
2118
- onToggle: (V, O, D) => {
2130
+ onToggle: (P, O, D) => {
2119
2131
  o(D, O);
2120
- const j = [...b];
2121
- j[T] = D, m(j);
2132
+ const $ = [...v];
2133
+ $[T] = D, f($);
2122
2134
  }
2123
2135
  }
2124
2136
  }
2125
2137
  ),
2126
2138
  /* @__PURE__ */ t(
2127
- bt,
2139
+ yt,
2128
2140
  {
2129
- row: f,
2141
+ row: y,
2130
2142
  index: T,
2131
2143
  actions: r,
2132
2144
  actionResolver: a
2133
2145
  }
2134
2146
  )
2135
- ] }) : /* @__PURE__ */ k(Ce, { isExpanded: b[T - 1] ?? !1, children: [
2136
- /* @__PURE__ */ t(le, {}),
2137
- /* @__PURE__ */ t(le, { colSpan: e.length, children: /* @__PURE__ */ t(kr, { children: /* @__PURE__ */ t(wa, { row: f }) }) })
2138
- ] }) }, T)) : /* @__PURE__ */ t(dt, { children: n.map((f, T) => /* @__PURE__ */ k(Ce, { isExpanded: b[T], children: [
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
- le,
2152
+ ie,
2141
2153
  {
2142
2154
  select: {
2143
2155
  rowIndex: T,
2144
- onSelect: (V, O, D) => {
2145
- I(D, O);
2156
+ onSelect: (P, O, D) => {
2157
+ w(D, O);
2146
2158
  },
2147
2159
  isSelected: !!C.find(
2148
- (V) => _(V, "id") === f.data.id
2160
+ (P) => N(P, "id") === y.data.id
2149
2161
  ),
2150
- variant: d ? "radio" : "checkbox",
2151
- isDisabled: f.disableSelection
2162
+ variant: u ? "radio" : "checkbox",
2163
+ isDisabled: y.disableSelection
2152
2164
  }
2153
2165
  }
2154
2166
  ),
2155
2167
  /* @__PURE__ */ t(
2156
- bt,
2168
+ yt,
2157
2169
  {
2158
- row: f,
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 xa({
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: h,
2190
+ isRowDisabled: d,
2179
2191
  loader: c,
2180
- columns: u,
2181
- actions: d,
2182
- actionResolver: g,
2183
- searchTypeComponent: y,
2192
+ columns: h,
2193
+ actions: u,
2194
+ actionResolver: m,
2195
+ searchTypeComponent: g,
2184
2196
  toolbarItem: C,
2185
- subToolbar: R,
2186
- emptyState: b,
2187
- icon: m,
2188
- isSearching: v = !1,
2197
+ subToolbar: E,
2198
+ emptyState: v,
2199
+ icon: f,
2200
+ isSearching: b = !1,
2189
2201
  ...A
2190
2202
  }) {
2191
- const { t: I } = $(), [f, T] = E([]), [V, O] = E(), [D, j] = E(), [F, B] = E(!1), [p, x] = Lt(
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
- ), [S, L] = E(p), [N, Z] = E(0), [z, Fe] = E(""), tt = Y(), [ge, Gt] = E(0), nt = Y(), rt = () => Gt(ge + 1), Wt = Et(), at = (w, P) => w.map((M) => {
2196
- if ("cellFormatters" in M) {
2197
- const te = _(P, M.name);
2198
- return M.cellFormatters?.reduce((de, be) => be(de), te);
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 (M.cellRenderer) {
2201
- const te = M.cellRenderer;
2202
- return { title: /* @__PURE__ */ t(te, { ...P }) };
2212
+ if (V.cellRenderer) {
2213
+ const te = V.cellRenderer;
2214
+ return { title: /* @__PURE__ */ t(te, { ...F }) };
2203
2215
  }
2204
- return _(P, M.name);
2205
- }), lt = (w) => {
2206
- const P = (M) => o?.[0]?.enabled?.(M);
2207
- return w.map((M, te) => {
2208
- const de = h ? h(M) : !1, be = [
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: M,
2222
+ data: V,
2211
2223
  disableSelection: de,
2212
2224
  disableActions: de,
2213
- selected: !!f.find((Xt) => _(Xt, "id") === _(M, "id")),
2214
- isOpen: P(M) ? !1 : void 0,
2215
- cells: at(u, M)
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 && be.push({
2231
+ return o && ye.push({
2219
2232
  parent: te * 2,
2220
- cells: P(M) ? at(o, M) : []
2221
- }), be;
2233
+ cells: F(V) ? at(o, V) : []
2234
+ }), ye;
2222
2235
  }).flat();
2223
- }, Pe = (w) => ["string", "number"].includes(typeof w) ? w.toString() : w instanceof Array ? w.map(Pe).join("") : typeof w == "object" ? Pe(
2224
- Un(w.title) ? w.title.props : Object.values(w)
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
- (w) => w.cells.some(
2228
- (P) => P && Pe(P).toLowerCase().includes(z.toLowerCase())
2240
+ (S) => S.cells.some(
2241
+ (F) => F && Pe(F).toLowerCase().includes(z.toLowerCase())
2229
2242
  )
2230
- ).slice(N, N + S + 1),
2231
- [z, N, S]
2243
+ ).slice(B, B + x + 1),
2244
+ [z, B, x]
2232
2245
  );
2233
- ba(
2246
+ va(
2234
2247
  async () => {
2235
- B(!0);
2236
- const w = tt.current === "" && z !== "";
2237
- return w && Z(0), tt.current = z, typeof c == "function" ? ge === nt.current && D ? D : await c(w ? 0 : N, S + 1, z) : c;
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
- (w) => {
2240
- nt.current = ge, r || (j(w), w.length > N ? w = w.slice(N, N + S + 1) : Z(0));
2241
- const P = lt(w);
2242
- O(P), B(!1);
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
- ge,
2246
- N,
2247
- S,
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 zt = () => d && gr(d).map((w, P) => (delete w.onRowClick, w.onClick = async (M, te) => {
2253
- await d[P].onRowClick(
2254
- (it || V)[te].data
2255
- ) && (r || Fe(""), rt());
2256
- }, w)), Jt = (w, P) => {
2257
- ee[P].isOpen = w, O([...ee]);
2258
- }, ee = it || V, ye = !ee || ee.length === 0, Ve = z !== "" || v, Yt = o ? S * 2 : S, Qt = o ? (ee?.length || 0) / 2 : ee?.length || 0;
2259
- return /* @__PURE__ */ k(W, { children: [
2260
- (!ye || Ve) && /* @__PURE__ */ k(
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: Wt,
2264
- count: Qt,
2265
- first: N,
2266
- max: S,
2276
+ id: zt,
2277
+ count: Xt,
2278
+ first: B,
2279
+ max: x,
2267
2280
  onNextClick: Z,
2268
2281
  onPreviousClick: Z,
2269
- onPerPageSelect: (w, P) => {
2270
- Z(w), L(P), x(P);
2282
+ onPerPageSelect: (S, F) => {
2283
+ Z(S), M(F), k(F);
2271
2284
  },
2272
2285
  inputGroupName: n ? `${e}input` : void 0,
2273
- inputGroupOnEnter: Fe,
2274
- inputGroupPlaceholder: I(n || ""),
2275
- searchTypeComponent: y,
2276
- toolbarItem: /* @__PURE__ */ k(W, { children: [
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__ */ k(q, { variant: "link", onClick: rt, "data-testid": "refresh", children: [
2294
+ /* @__PURE__ */ t(G, { children: /* @__PURE__ */ I(_, { variant: "link", onClick: rt, "data-testid": "refresh", children: [
2282
2295
  /* @__PURE__ */ t(hr, {}),
2283
2296
  " ",
2284
- I("refresh")
2297
+ w("refresh")
2285
2298
  ] }) })
2286
2299
  ] }),
2287
- subToolbar: R,
2300
+ subToolbar: E,
2288
2301
  children: [
2289
- !F && !ye && /* @__PURE__ */ t(
2290
- Ta,
2302
+ !j && !ge && /* @__PURE__ */ t(
2303
+ Sa,
2291
2304
  {
2292
2305
  ...A,
2293
2306
  canSelectAll: l,
2294
2307
  canSelect: !!a,
2295
- selected: f,
2296
- onSelect: (w) => {
2297
- T(w), a?.(w);
2308
+ selected: y,
2309
+ onSelect: (S) => {
2310
+ T(S), a?.(S);
2298
2311
  },
2299
- onCollapse: o ? Jt : void 0,
2300
- actions: zt(),
2301
- actionResolver: g,
2302
- rows: ee.slice(0, Yt),
2303
- columns: u,
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
- !F && ye && Ve && /* @__PURE__ */ t(
2322
+ !j && ge && Le && /* @__PURE__ */ t(
2310
2323
  Ca,
2311
2324
  {
2312
2325
  hasIcon: !0,
2313
- icon: m,
2326
+ icon: f,
2314
2327
  isSearchVariant: !0,
2315
- message: I("noSearchResults"),
2316
- instructions: I("noSearchResultsInstructions"),
2317
- secondaryActions: v ? [] : [
2328
+ message: w("noSearchResults"),
2329
+ instructions: w("noSearchResultsInstructions"),
2330
+ secondaryActions: b ? [] : [
2318
2331
  {
2319
- text: I("clearAllFilters"),
2320
- onClick: () => Fe(""),
2321
- type: we.link
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
- F && /* @__PURE__ */ t(va, {}),
2330
- !F && ye && !Ve && b
2342
+ j && /* @__PURE__ */ t(ba, {}),
2343
+ !j && ge && !Le && v
2331
2344
  ] });
2332
2345
  }
2333
- const Sa = ({ link: e, organization: n }) => {
2334
- const { t: r } = $();
2335
- return /* @__PURE__ */ t(wr, { wrapModifier: "truncate", children: /* @__PURE__ */ k(e, { organization: n, children: [
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
- _n,
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
- }, Aa = (e) => {
2348
- const { t: n } = $();
2360
+ }, Ea = (e) => {
2361
+ const { t: n } = q();
2349
2362
  return /* @__PURE__ */ t(
2350
- Qe,
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(Xe, { isReadOnly: !0, children: a }, a);
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: h,
2383
+ link: d,
2371
2384
  children: c,
2372
- actions: u
2385
+ actions: h
2373
2386
  }) => {
2374
- const { t: d } = $();
2387
+ const { t: u } = q();
2375
2388
  return /* @__PURE__ */ t(
2376
- xa,
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: d(o), onRowClick: s }] : [],
2388
- ...u ?? []
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: (g) => /* @__PURE__ */ t(Sa, { link: h, organization: g })
2407
+ cellRenderer: (m) => /* @__PURE__ */ t(xa, { link: d, organization: m })
2395
2408
  },
2396
2409
  {
2397
2410
  name: "domains",
2398
2411
  displayKey: "domains",
2399
- cellRenderer: Aa
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
- Vr as ErrorPage,
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
- xa as KeycloakDataTable,
2440
+ Ta as KeycloakDataTable,
2428
2441
  rl as KeycloakMasthead,
2429
- Ua as KeycloakProvider,
2442
+ $a as KeycloakProvider,
2430
2443
  ca as KeycloakSelect,
2431
- va as KeycloakSpinner,
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
- Ze as createNamedContext,
2461
+ et as createNamedContext,
2449
2462
  jr as debeerify,
2450
- Er as generateId,
2451
- Sr as getErrorDescription,
2452
- xr as getErrorMessage,
2463
+ Ar as generateId,
2464
+ xr as getErrorDescription,
2465
+ Tr as getErrorMessage,
2453
2466
  Ka as getInjectedEnvironment,
2454
- Ar as getNetworkErrorDescription,
2455
- Vt as getNetworkErrorMessage,
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
- $a as useEnvironment,
2476
+ Ua as useEnvironment,
2463
2477
  Ht as useErrorBoundary,
2464
- ba as useFetch,
2478
+ va as useFetch,
2465
2479
  Br as useHelp,
2466
- et as useRequiredContext,
2480
+ tt as useRequiredContext,
2467
2481
  Dr as useSetTimeout,
2468
- Lt as useStoredState
2482
+ Mt as useStoredState
2469
2483
  };
2470
2484
  //# sourceMappingURL=keycloak-ui-shared.js.map