@apicurio/common-ui-components 2.0.3 → 2.0.4

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.
Files changed (2) hide show
  1. package/dist/main.js +365 -366
  2. package/package.json +2 -2
package/dist/main.js CHANGED
@@ -1,23 +1,23 @@
1
- import j, { createContext as ht, useContext as gt, useState as I, useEffect as ke, memo as Te, forwardRef as Z, useCallback as Oe, useMemo as Ne } from "react";
2
- import { jsx as a, jsxs as f, Fragment as oe } from "react/jsx-runtime";
3
- import { EmptyState as ee, EmptyStateVariant as ut, EmptyStateHeader as te, EmptyStateBody as ge, Spinner as Q, Alert as _t, Dropdown as pt, MenuToggle as ae, DropdownList as ft, Divider as ze, DropdownItem as mt, Select as Ie, SelectOption as Ee, TextInput as ue, Button as _e, TextArea as wt, Modal as Ce, Form as vt, FormGroup as qe, EmptyStateIcon as Je, AboutModal as St, TextContent as bt, Text as je, TextVariants as He, TextList as Le, TextListItem as y, Progress as yt, Pagination as kt, PaginationVariant as Tt, Skeleton as It, SearchInput as Et, SelectList as Ct, ToolbarItem as Rt, InputGroup as xt, ToolbarToggleGroup as Ut, ToolbarGroup as At, ToolbarFilter as Pt } from "@patternfly/react-core";
4
- import { EllipsisVIcon as Ot, ChevronDownIcon as Nt, ChevronRightIcon as qt, ErrorCircleOIcon as jt, FilterIcon as Be } from "@patternfly/react-icons";
5
- import { DateTime as le } from "luxon";
6
- import { Tr as se, Td as Re, Th as Ht, Table as Lt, Thead as Mt, Tbody as Ft, ActionsColumn as Dt } from "@patternfly/react-table";
7
- import $t from "use-resize-observer";
8
- const Wt = ht({
1
+ import j, { createContext as gt, useContext as ut, useState as I, useEffect as Te, memo as Ie, forwardRef as ee, useCallback as Ne, useMemo as qe } from "react";
2
+ import { jsx as a, jsxs as f, Fragment as ae } from "react/jsx-runtime";
3
+ import { EmptyState as te, EmptyStateVariant as _t, EmptyStateHeader as se, EmptyStateBody as ue, Spinner as X, Alert as pt, Dropdown as ft, MenuToggle as ce, DropdownList as mt, Divider as Je, DropdownItem as wt, Select as Ee, SelectOption as Ce, TextInput as _e, Button as pe, TextArea as vt, Modal as Re, Form as St, FormGroup as je, EmptyStateIcon as Be, AboutModal as bt, TextContent as yt, Text as He, TextVariants as Le, TextList as Me, TextListItem as y, Progress as kt, Pagination as Tt, PaginationVariant as It, Skeleton as Et, SearchInput as Ct, SelectList as Rt, ToolbarItem as xt, InputGroup as Ut, ToolbarToggleGroup as At, ToolbarGroup as Pt, ToolbarFilter as Ot } from "@patternfly/react-core";
4
+ import { EllipsisVIcon as Nt, ChevronDownIcon as qt, ChevronRightIcon as jt, ErrorCircleOIcon as Ht, FilterIcon as Ve } from "@patternfly/react-icons";
5
+ import { DateTime as de } from "luxon";
6
+ import { Tr as ie, Td as xe, Th as Lt, Table as Mt, Thead as Ft, Tbody as Dt, ActionsColumn as $t } from "@patternfly/react-table";
7
+ import Wt from "use-resize-observer";
8
+ const Kt = gt({
9
9
  type: "none"
10
10
  });
11
- class B extends Error {
11
+ class V extends Error {
12
12
  }
13
- B.prototype.name = "InvalidTokenError";
14
- function Kt(e) {
13
+ V.prototype.name = "InvalidTokenError";
14
+ function zt(e) {
15
15
  return decodeURIComponent(atob(e).replace(/(.)/g, (t, s) => {
16
16
  let i = s.charCodeAt(0).toString(16).toUpperCase();
17
17
  return i.length < 2 && (i = "0" + i), "%" + i;
18
18
  }));
19
19
  }
20
- function zt(e) {
20
+ function Jt(e) {
21
21
  let t = e.replace(/-/g, "+").replace(/_/g, "/");
22
22
  switch (t.length % 4) {
23
23
  case 0:
@@ -32,31 +32,31 @@ function zt(e) {
32
32
  throw new Error("base64 string is not of the correct length");
33
33
  }
34
34
  try {
35
- return Kt(t);
35
+ return zt(t);
36
36
  } catch {
37
37
  return atob(t);
38
38
  }
39
39
  }
40
- function Jt(e, t) {
40
+ function Bt(e, t) {
41
41
  if (typeof e != "string")
42
- throw new B("Invalid token specified: must be a string");
42
+ throw new V("Invalid token specified: must be a string");
43
43
  t || (t = {});
44
44
  const s = t.header === !0 ? 0 : 1, i = e.split(".")[s];
45
45
  if (typeof i != "string")
46
- throw new B(`Invalid token specified: missing part #${s + 1}`);
46
+ throw new V(`Invalid token specified: missing part #${s + 1}`);
47
47
  let r;
48
48
  try {
49
- r = zt(i);
49
+ r = Jt(i);
50
50
  } catch (n) {
51
- throw new B(`Invalid token specified: invalid base64 for part #${s + 1} (${n.message})`);
51
+ throw new V(`Invalid token specified: invalid base64 for part #${s + 1} (${n.message})`);
52
52
  }
53
53
  try {
54
54
  return JSON.parse(r);
55
55
  } catch (n) {
56
- throw new B(`Invalid token specified: invalid json for part #${s + 1} (${n.message})`);
56
+ throw new V(`Invalid token specified: invalid json for part #${s + 1} (${n.message})`);
57
57
  }
58
58
  }
59
- var Bt = {
59
+ var Vt = {
60
60
  debug: () => {
61
61
  },
62
62
  info: () => {
@@ -65,10 +65,10 @@ var Bt = {
65
65
  },
66
66
  error: () => {
67
67
  }
68
- }, N, q, ie = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.ERROR = 1] = "ERROR", e[e.WARN = 2] = "WARN", e[e.INFO = 3] = "INFO", e[e.DEBUG = 4] = "DEBUG", e))(ie || {});
68
+ }, N, q, re = /* @__PURE__ */ ((e) => (e[e.NONE = 0] = "NONE", e[e.ERROR = 1] = "ERROR", e[e.WARN = 2] = "WARN", e[e.INFO = 3] = "INFO", e[e.DEBUG = 4] = "DEBUG", e))(re || {});
69
69
  ((e) => {
70
70
  function t() {
71
- N = 3, q = Bt;
71
+ N = 3, q = Vt;
72
72
  }
73
73
  e.reset = t;
74
74
  function s(r) {
@@ -81,7 +81,7 @@ var Bt = {
81
81
  q = r;
82
82
  }
83
83
  e.setLogger = i;
84
- })(ie || (ie = {}));
84
+ })(re || (re = {}));
85
85
  var u = class O {
86
86
  constructor(t) {
87
87
  this._name = t;
@@ -131,8 +131,8 @@ var u = class O {
131
131
  }
132
132
  /* eslint-enable @typescript-eslint/no-unsafe-enum-comparison */
133
133
  };
134
- ie.reset();
135
- var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")), K = class V {
134
+ re.reset();
135
+ var Gt = "10000000-1000-4000-8000-100000000000", Fe = (e) => btoa([...new Uint8Array(e)].map((t) => String.fromCharCode(t)).join("")), z = class G {
136
136
  static _randomWord() {
137
137
  const t = new Uint32Array(1);
138
138
  return crypto.getRandomValues(t), t[0];
@@ -141,16 +141,16 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
141
141
  * Generates RFC4122 version 4 guid
142
142
  */
143
143
  static generateUUIDv4() {
144
- return Vt.replace(
144
+ return Gt.replace(
145
145
  /[018]/g,
146
- (s) => (+s ^ V._randomWord() & 15 >> +s / 4).toString(16)
146
+ (s) => (+s ^ G._randomWord() & 15 >> +s / 4).toString(16)
147
147
  ).replace(/-/g, "");
148
148
  }
149
149
  /**
150
150
  * PKCE: Generate a code verifier
151
151
  */
152
152
  static generateCodeVerifier() {
153
- return V.generateUUIDv4() + V.generateUUIDv4() + V.generateUUIDv4();
153
+ return G.generateUUIDv4() + G.generateUUIDv4() + G.generateUUIDv4();
154
154
  }
155
155
  /**
156
156
  * PKCE: Generate a code challenge
@@ -160,7 +160,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
160
160
  throw new Error("Crypto.subtle is available only in secure contexts (HTTPS).");
161
161
  try {
162
162
  const i = new TextEncoder().encode(t), r = await crypto.subtle.digest("SHA-256", i);
163
- return Me(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
163
+ return Fe(r).replace(/\+/g, "-").replace(/\//g, "_").replace(/=+$/, "");
164
164
  } catch (s) {
165
165
  throw u.error("CryptoUtils.generateCodeChallenge", s), s;
166
166
  }
@@ -170,7 +170,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
170
170
  */
171
171
  static generateBasicAuth(t, s) {
172
172
  const r = new TextEncoder().encode([t, s].join(":"));
173
- return Me(r);
173
+ return Fe(r);
174
174
  }
175
175
  }, F = class {
176
176
  constructor(e) {
@@ -188,16 +188,16 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
188
188
  for (const t of this._callbacks)
189
189
  await t(...e);
190
190
  }
191
- }, pe = class {
191
+ }, fe = class {
192
192
  // IMPORTANT: doesn't validate the token
193
193
  static decode(e) {
194
194
  try {
195
- return Jt(e);
195
+ return Bt(e);
196
196
  } catch (t) {
197
197
  throw u.error("JwtUtils.decode", t), t;
198
198
  }
199
199
  }
200
- }, Fe = class {
200
+ }, De = class {
201
201
  /**
202
202
  * Populates a map of window features with a placement centered in front of
203
203
  * the current window. If no explicit width is given, a default value is
@@ -210,11 +210,11 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
210
210
  static serialize(e) {
211
211
  return Object.entries(e).filter(([, t]) => t != null).map(([t, s]) => `${t}=${typeof s != "boolean" ? s : s ? "yes" : "no"}`).join(",");
212
212
  }
213
- }, M = class Y extends F {
213
+ }, M = class Z extends F {
214
214
  constructor() {
215
215
  super(...arguments), this._logger = new u(`Timer('${this._name}')`), this._timerHandle = null, this._expiration = 0, this._callback = () => {
216
- const t = this._expiration - Y.getEpochTime();
217
- this._logger.debug("timer completes in", t), this._expiration <= Y.getEpochTime() && (this.cancel(), super.raise());
216
+ const t = this._expiration - Z.getEpochTime();
217
+ this._logger.debug("timer completes in", t), this._expiration <= Z.getEpochTime() && (this.cancel(), super.raise());
218
218
  };
219
219
  }
220
220
  // get the time
@@ -224,7 +224,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
224
224
  init(t) {
225
225
  const s = this._logger.create("init");
226
226
  t = Math.max(Math.floor(t), 1);
227
- const i = Y.getEpochTime() + t;
227
+ const i = Z.getEpochTime() + t;
228
228
  if (this.expiration === i && this._timerHandle) {
229
229
  s.debug("skipping since already initialized for expiration at", this.expiration);
230
230
  return;
@@ -239,25 +239,25 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
239
239
  cancel() {
240
240
  this._logger.create("cancel"), this._timerHandle && (clearInterval(this._timerHandle), this._timerHandle = null);
241
241
  }
242
- }, fe = class {
242
+ }, me = class {
243
243
  static readParams(e, t = "query") {
244
244
  if (!e)
245
245
  throw new TypeError("Invalid URL");
246
246
  const i = new URL(e, "http://127.0.0.1")[t === "fragment" ? "hash" : "search"];
247
247
  return new URLSearchParams(i.slice(1));
248
248
  }
249
- }, me = ";", W = class extends Error {
249
+ }, we = ";", W = class extends Error {
250
250
  constructor(e, t) {
251
251
  var s, i, r;
252
252
  if (super(e.error_description || e.error || ""), this.form = t, this.name = "ErrorResponse", !e.error)
253
253
  throw u.error("ErrorResponse", "No error passed"), new Error("No error passed");
254
254
  this.error = e.error, this.error_description = (s = e.error_description) != null ? s : null, this.error_uri = (i = e.error_uri) != null ? i : null, this.state = e.userState, this.session_state = (r = e.session_state) != null ? r : null, this.url_state = e.url_state;
255
255
  }
256
- }, xe = class extends Error {
256
+ }, Ue = class extends Error {
257
257
  constructor(e) {
258
258
  super(e), this.name = "ErrorTimeout";
259
259
  }
260
- }, Gt = class {
260
+ }, Qt = class {
261
261
  constructor(e) {
262
262
  this._logger = new u("AccessTokenEvents"), this._expiringTimer = new M("Access token expiring"), this._expiredTimer = new M("Access token expired"), this._expiringNotificationTimeInSeconds = e.expiringNotificationTimeInSeconds;
263
263
  }
@@ -302,7 +302,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
302
302
  removeAccessTokenExpired(e) {
303
303
  this._expiredTimer.removeHandler(e);
304
304
  }
305
- }, Qt = class {
305
+ }, Xt = class {
306
306
  constructor(e, t, s, i, r) {
307
307
  this._callback = e, this._client_id = t, this._intervalInSeconds = i, this._stopOnError = r, this._logger = new u("CheckSessionIFrame"), this._timer = null, this._session_state = null, this._message = (c) => {
308
308
  c.origin === this._frame_origin && c.source === this._frame.contentWindow && (c.data === "error" ? (this._logger.error("error message from check session op iframe"), this._stopOnError && this.stop()) : c.data === "changed" ? (this._logger.debug("changed message from check session op iframe"), this.stop(), this._callback()) : this._logger.debug(c.data + " message from check session op iframe"));
@@ -329,7 +329,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
329
329
  stop() {
330
330
  this._logger.create("stop"), this._session_state = null, this._timer && (clearInterval(this._timer), this._timer = null);
331
331
  }
332
- }, Ve = class {
332
+ }, Ge = class {
333
333
  constructor() {
334
334
  this._logger = new u("InMemoryWebStorage"), this._data = {};
335
335
  }
@@ -351,7 +351,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
351
351
  key(e) {
352
352
  return Object.getOwnPropertyNames(this._data)[e];
353
353
  }
354
- }, Ue = class {
354
+ }, Ae = class {
355
355
  constructor(e = [], t = null, s = {}) {
356
356
  this._jwtHandler = t, this._extraHeaders = s, this._logger = new u("JsonService"), this._contentTypes = [], this._contentTypes.push(...e, "application/json"), t && this._contentTypes.push("application/jwt");
357
357
  }
@@ -366,7 +366,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
366
366
  signal: r.signal
367
367
  });
368
368
  } catch (c) {
369
- throw c instanceof DOMException && c.name === "AbortError" ? new xe("Network timed out") : c;
369
+ throw c instanceof DOMException && c.name === "AbortError" ? new Ue("Network timed out") : c;
370
370
  } finally {
371
371
  clearTimeout(n);
372
372
  }
@@ -447,9 +447,9 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
447
447
  n && n !== "" && (e[r] = n);
448
448
  });
449
449
  }
450
- }, Xt = class {
450
+ }, Yt = class {
451
451
  constructor(e) {
452
- this._settings = e, this._logger = new u("MetadataService"), this._signingKeys = null, this._metadata = null, this._metadataUrl = this._settings.metadataUrl, this._jsonService = new Ue(
452
+ this._settings = e, this._logger = new u("MetadataService"), this._signingKeys = null, this._metadata = null, this._metadataUrl = this._settings.metadataUrl, this._jsonService = new Ae(
453
453
  ["application/jwk-set+json"],
454
454
  null,
455
455
  this._settings.extraHeaders
@@ -514,7 +514,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
514
514
  throw e.throw(new Error("Missing keys on keyset")), null;
515
515
  return this._signingKeys = s.keys, this._signingKeys;
516
516
  }
517
- }, Ge = class {
517
+ }, Qe = class {
518
518
  constructor({
519
519
  prefix: e = "oidc.",
520
520
  store: t = localStorage
@@ -541,7 +541,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
541
541
  }
542
542
  return t;
543
543
  }
544
- }, Yt = "code", Zt = "openid", es = "client_secret_post", ts = 60 * 15, we = class {
544
+ }, Zt = "code", es = "openid", ts = "client_secret_post", ss = 60 * 15, ve = class {
545
545
  constructor({
546
546
  // metadata related
547
547
  authority: e,
@@ -552,11 +552,11 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
552
552
  // client related
553
553
  client_id: n,
554
554
  client_secret: c,
555
- response_type: o = Yt,
556
- scope: l = Zt,
555
+ response_type: o = Zt,
556
+ scope: l = es,
557
557
  redirect_uri: d,
558
558
  post_logout_redirect_uri: h,
559
- client_authentication: g = es,
559
+ client_authentication: g = ts,
560
560
  // optional protocol
561
561
  prompt: v,
562
562
  display: b,
@@ -568,38 +568,38 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
568
568
  // behavior flags
569
569
  filterProtocolClaims: T = !0,
570
570
  loadUserInfo: w = !1,
571
- staleStateAgeInSeconds: U = ts,
571
+ staleStateAgeInSeconds: U = ss,
572
572
  mergeClaimsStrategy: C = { array: "replace" },
573
573
  disablePKCE: S = !1,
574
574
  // other behavior
575
575
  stateStore: L,
576
- revokeTokenAdditionalContentTypes: J,
577
- fetchRequestCredentials: X,
576
+ revokeTokenAdditionalContentTypes: B,
577
+ fetchRequestCredentials: Y,
578
578
  refreshTokenAllowedScope: p,
579
579
  // extra
580
580
  extraQueryParams: m = {},
581
581
  extraTokenParams: P = {},
582
582
  extraHeaders: D = {}
583
583
  }) {
584
- if (this.authority = e, t ? this.metadataUrl = t : (this.metadataUrl = e, e && (this.metadataUrl.endsWith("/") || (this.metadataUrl += "/"), this.metadataUrl += ".well-known/openid-configuration")), this.metadata = s, this.metadataSeed = r, this.signingKeys = i, this.client_id = n, this.client_secret = c, this.response_type = o, this.scope = l, this.redirect_uri = d, this.post_logout_redirect_uri = h, this.client_authentication = g, this.prompt = v, this.display = b, this.max_age = R, this.ui_locales = k, this.acr_values = x, this.resource = E, this.response_mode = H, this.filterProtocolClaims = T ?? !0, this.loadUserInfo = !!w, this.staleStateAgeInSeconds = U, this.mergeClaimsStrategy = C, this.disablePKCE = !!S, this.revokeTokenAdditionalContentTypes = J, this.fetchRequestCredentials = X || "same-origin", L)
584
+ if (this.authority = e, t ? this.metadataUrl = t : (this.metadataUrl = e, e && (this.metadataUrl.endsWith("/") || (this.metadataUrl += "/"), this.metadataUrl += ".well-known/openid-configuration")), this.metadata = s, this.metadataSeed = r, this.signingKeys = i, this.client_id = n, this.client_secret = c, this.response_type = o, this.scope = l, this.redirect_uri = d, this.post_logout_redirect_uri = h, this.client_authentication = g, this.prompt = v, this.display = b, this.max_age = R, this.ui_locales = k, this.acr_values = x, this.resource = E, this.response_mode = H, this.filterProtocolClaims = T ?? !0, this.loadUserInfo = !!w, this.staleStateAgeInSeconds = U, this.mergeClaimsStrategy = C, this.disablePKCE = !!S, this.revokeTokenAdditionalContentTypes = B, this.fetchRequestCredentials = Y || "same-origin", L)
585
585
  this.stateStore = L;
586
586
  else {
587
- const $ = typeof window < "u" ? window.localStorage : new Ve();
588
- this.stateStore = new Ge({ store: $ });
587
+ const $ = typeof window < "u" ? window.localStorage : new Ge();
588
+ this.stateStore = new Qe({ store: $ });
589
589
  }
590
590
  this.refreshTokenAllowedScope = p, this.extraQueryParams = m, this.extraTokenParams = P, this.extraHeaders = D;
591
591
  }
592
- }, ss = class {
592
+ }, is = class {
593
593
  constructor(e, t) {
594
594
  this._settings = e, this._metadataService = t, this._logger = new u("UserInfoService"), this._getClaimsFromJwt = async (s) => {
595
595
  const i = this._logger.create("_getClaimsFromJwt");
596
596
  try {
597
- const r = pe.decode(s);
597
+ const r = fe.decode(s);
598
598
  return i.debug("JWT decoding successful"), r;
599
599
  } catch (r) {
600
600
  throw i.error("Error parsing JWT response"), r;
601
601
  }
602
- }, this._jsonService = new Ue(
602
+ }, this._jsonService = new Ae(
603
603
  void 0,
604
604
  this._getClaimsFromJwt,
605
605
  this._settings.extraHeaders
@@ -616,9 +616,9 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
616
616
  });
617
617
  return t.debug("got claims", i), i;
618
618
  }
619
- }, Qe = class {
619
+ }, Xe = class {
620
620
  constructor(e, t) {
621
- this._settings = e, this._metadataService = t, this._logger = new u("TokenClient"), this._jsonService = new Ue(
621
+ this._settings = e, this._metadataService = t, this._logger = new u("TokenClient"), this._jsonService = new Ae(
622
622
  this._settings.revokeTokenAdditionalContentTypes,
623
623
  null,
624
624
  this._settings.extraHeaders
@@ -646,7 +646,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
646
646
  case "client_secret_basic":
647
647
  if (!i)
648
648
  throw n.throw(new Error("A client_secret is required")), null;
649
- o = K.generateBasicAuth(s, i);
649
+ o = z.generateBasicAuth(s, i);
650
650
  break;
651
651
  case "client_secret_post":
652
652
  c.append("client_id", s), i && c.append("client_secret", i);
@@ -679,7 +679,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
679
679
  case "client_secret_basic":
680
680
  if (!s)
681
681
  throw n.throw(new Error("A client_secret is required")), null;
682
- o = K.generateBasicAuth(t, s);
682
+ o = z.generateBasicAuth(t, s);
683
683
  break;
684
684
  case "client_secret_post":
685
685
  c.append("client_id", t), s && c.append("client_secret", s);
@@ -712,7 +712,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
712
712
  case "client_secret_basic":
713
713
  if (!s)
714
714
  throw n.throw(new Error("A client_secret is required")), null;
715
- o = K.generateBasicAuth(t, s);
715
+ o = z.generateBasicAuth(t, s);
716
716
  break;
717
717
  case "client_secret_post":
718
718
  c.append("client_id", t), s && c.append("client_secret", s);
@@ -739,9 +739,9 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
739
739
  c != null && r.set(n, c);
740
740
  r.set("client_id", this._settings.client_id), this._settings.client_secret && r.set("client_secret", this._settings.client_secret), await this._jsonService.postForm(i, { body: r }), s.debug("got response");
741
741
  }
742
- }, is = class {
742
+ }, rs = class {
743
743
  constructor(e, t, s) {
744
- this._settings = e, this._metadataService = t, this._claimsService = s, this._logger = new u("ResponseValidator"), this._userInfoService = new ss(this._settings, this._metadataService), this._tokenClient = new Qe(this._settings, this._metadataService);
744
+ this._settings = e, this._metadataService = t, this._claimsService = s, this._logger = new u("ResponseValidator"), this._userInfoService = new is(this._settings, this._metadataService), this._tokenClient = new Xe(this._settings, this._metadataService);
745
745
  }
746
746
  async validateSigninResponse(e, t) {
747
747
  const s = this._logger.create("validateSigninResponse");
@@ -800,16 +800,16 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
800
800
  var s;
801
801
  const i = this._logger.create("_validateIdTokenAttributes");
802
802
  i.debug("decoding ID Token JWT");
803
- const r = pe.decode((s = e.id_token) != null ? s : "");
803
+ const r = fe.decode((s = e.id_token) != null ? s : "");
804
804
  if (r.sub || i.throw(new Error("ID Token is missing a subject claim")), t) {
805
- const n = pe.decode(t);
805
+ const n = fe.decode(t);
806
806
  r.sub !== n.sub && i.throw(new Error("sub in id_token does not match current sub")), r.auth_time && r.auth_time !== n.auth_time && i.throw(new Error("auth_time in id_token does not match original auth_time")), r.azp && r.azp !== n.azp && i.throw(new Error("azp in id_token does not match original azp")), !r.azp && n.azp && i.throw(new Error("azp not in id_token, but present in original id_token"));
807
807
  }
808
808
  e.profile = r;
809
809
  }
810
- }, re = class ve {
810
+ }, ne = class Se {
811
811
  constructor(t) {
812
- this.id = t.id || K.generateUUIDv4(), this.data = t.data, t.created && t.created > 0 ? this.created = t.created : this.created = M.getEpochTime(), this.request_type = t.request_type, this.url_state = t.url_state;
812
+ this.id = t.id || z.generateUUIDv4(), this.data = t.data, t.created && t.created > 0 ? this.created = t.created : this.created = M.getEpochTime(), this.request_type = t.request_type, this.url_state = t.url_state;
813
813
  }
814
814
  toStorageString() {
815
815
  return new u("State").create("toStorageString"), JSON.stringify({
@@ -821,7 +821,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
821
821
  });
822
822
  }
823
823
  static fromStorageString(t) {
824
- return u.createStatic("State", "fromStorageString"), Promise.resolve(new ve(JSON.parse(t)));
824
+ return u.createStatic("State", "fromStorageString"), Promise.resolve(new Se(JSON.parse(t)));
825
825
  }
826
826
  static async clearStaleState(t, s) {
827
827
  const i = u.createStatic("State", "clearStaleState"), r = M.getEpochTime() - s, n = await t.getAllKeys();
@@ -831,7 +831,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
831
831
  let d = !1;
832
832
  if (l)
833
833
  try {
834
- const h = await ve.fromStorageString(l);
834
+ const h = await Se.fromStorageString(l);
835
835
  i.debug("got item from key:", o, h.created), h.created <= r && (d = !0);
836
836
  } catch (h) {
837
837
  i.error("Error parsing state for key:", o, h), d = !0;
@@ -841,13 +841,13 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
841
841
  d && (i.debug("removed item for key:", o), t.remove(o));
842
842
  }
843
843
  }
844
- }, Xe = class Se extends re {
844
+ }, Ye = class be extends ne {
845
845
  constructor(t) {
846
846
  super(t), this.code_verifier = t.code_verifier, this.code_challenge = t.code_challenge, this.authority = t.authority, this.client_id = t.client_id, this.redirect_uri = t.redirect_uri, this.scope = t.scope, this.client_secret = t.client_secret, this.extraTokenParams = t.extraTokenParams, this.response_mode = t.response_mode, this.skipUserInfo = t.skipUserInfo;
847
847
  }
848
848
  static async create(t) {
849
- const s = t.code_verifier === !0 ? K.generateCodeVerifier() : t.code_verifier || void 0, i = s ? await K.generateCodeChallenge(s) : void 0;
850
- return new Se({
849
+ const s = t.code_verifier === !0 ? z.generateCodeVerifier() : t.code_verifier || void 0, i = s ? await z.generateCodeChallenge(s) : void 0;
850
+ return new be({
851
851
  ...t,
852
852
  code_verifier: s,
853
853
  code_challenge: i
@@ -874,9 +874,9 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
874
874
  static fromStorageString(t) {
875
875
  u.createStatic("SigninState", "fromStorageString");
876
876
  const s = JSON.parse(t);
877
- return Se.create(s);
877
+ return be.create(s);
878
878
  }
879
- }, Ye = class Ze {
879
+ }, Ze = class et {
880
880
  constructor(t) {
881
881
  this.url = t.url, this.state = t.state;
882
882
  }
@@ -914,7 +914,7 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
914
914
  throw this._logger.error("create: No scope passed"), new Error("scope");
915
915
  if (!s)
916
916
  throw this._logger.error("create: No authority passed"), new Error("authority");
917
- const T = await Xe.create({
917
+ const T = await Ye.create({
918
918
  data: o,
919
919
  request_type: d,
920
920
  url_state: v,
@@ -930,21 +930,21 @@ var Vt = "10000000-1000-4000-8000-100000000000", Me = (e) => btoa([...new Uint8A
930
930
  }), w = new URL(t);
931
931
  w.searchParams.append("client_id", i), w.searchParams.append("redirect_uri", r), w.searchParams.append("response_type", n), w.searchParams.append("scope", c), g && w.searchParams.append("nonce", g);
932
932
  let U = T.id;
933
- v && (U = `${U}${me}${v}`), w.searchParams.append("state", U), T.code_challenge && (w.searchParams.append("code_challenge", T.code_challenge), w.searchParams.append("code_challenge_method", "S256")), b && (Array.isArray(b) ? b : [b]).forEach((S) => w.searchParams.append("resource", S));
933
+ v && (U = `${U}${we}${v}`), w.searchParams.append("state", U), T.code_challenge && (w.searchParams.append("code_challenge", T.code_challenge), w.searchParams.append("code_challenge_method", "S256")), b && (Array.isArray(b) ? b : [b]).forEach((S) => w.searchParams.append("resource", S));
934
934
  for (const [C, S] of Object.entries({ response_mode: l, ...H, ...k }))
935
935
  S != null && w.searchParams.append(C, S.toString());
936
- return new Ze({
936
+ return new et({
937
937
  url: w.href,
938
938
  state: T
939
939
  });
940
940
  }
941
941
  };
942
- Ye._logger = new u("SigninRequest");
943
- var rs = Ye, ns = "openid", de = class {
942
+ Ze._logger = new u("SigninRequest");
943
+ var ns = Ze, os = "openid", he = class {
944
944
  constructor(e) {
945
945
  if (this.access_token = "", this.token_type = "", this.profile = {}, this.state = e.get("state"), this.session_state = e.get("session_state"), this.state) {
946
- const t = decodeURIComponent(this.state).split(me);
947
- this.state = t[0], t.length > 1 && (this.url_state = t.slice(1).join(me));
946
+ const t = decodeURIComponent(this.state).split(we);
947
+ this.state = t[0], t.length > 1 && (this.url_state = t.slice(1).join(we));
948
948
  }
949
949
  this.error = e.get("error"), this.error_description = e.get("error_description"), this.error_uri = e.get("error_uri"), this.code = e.get("code");
950
950
  }
@@ -957,9 +957,9 @@ var rs = Ye, ns = "openid", de = class {
957
957
  }
958
958
  get isOpenId() {
959
959
  var e;
960
- return ((e = this.scope) == null ? void 0 : e.split(" ").includes(ns)) || !!this.id_token;
960
+ return ((e = this.scope) == null ? void 0 : e.split(" ").includes(os)) || !!this.id_token;
961
961
  }
962
- }, os = class {
962
+ }, as = class {
963
963
  constructor({
964
964
  url: e,
965
965
  state_data: t,
@@ -972,16 +972,16 @@ var rs = Ye, ns = "openid", de = class {
972
972
  if (this._logger = new u("SignoutRequest"), !e)
973
973
  throw this._logger.error("ctor: No url passed"), new Error("url");
974
974
  const o = new URL(e);
975
- s && o.searchParams.append("id_token_hint", s), c && o.searchParams.append("client_id", c), i && (o.searchParams.append("post_logout_redirect_uri", i), t && (this.state = new re({ data: t, request_type: n }), o.searchParams.append("state", this.state.id)));
975
+ s && o.searchParams.append("id_token_hint", s), c && o.searchParams.append("client_id", c), i && (o.searchParams.append("post_logout_redirect_uri", i), t && (this.state = new ne({ data: t, request_type: n }), o.searchParams.append("state", this.state.id)));
976
976
  for (const [l, d] of Object.entries({ ...r }))
977
977
  d != null && o.searchParams.append(l, d.toString());
978
978
  this.url = o.href;
979
979
  }
980
- }, as = class {
980
+ }, cs = class {
981
981
  constructor(e) {
982
982
  this.state = e.get("state"), this.error = e.get("error"), this.error_description = e.get("error_description"), this.error_uri = e.get("error_uri");
983
983
  }
984
- }, cs = [
984
+ }, ls = [
985
985
  "nbf",
986
986
  "jti",
987
987
  "auth_time",
@@ -991,7 +991,7 @@ var rs = Ye, ns = "openid", de = class {
991
991
  "azp",
992
992
  "at_hash"
993
993
  // https://openid.net/specs/openid-connect-core-1_0.html#CodeIDToken
994
- ], ls = ["sub", "iss", "aud", "exp", "iat"], ds = class {
994
+ ], ds = ["sub", "iss", "aud", "exp", "iat"], hs = class {
995
995
  constructor(e) {
996
996
  this._settings = e, this._logger = new u("ClaimsService");
997
997
  }
@@ -999,9 +999,9 @@ var rs = Ye, ns = "openid", de = class {
999
999
  const t = { ...e };
1000
1000
  if (this._settings.filterProtocolClaims) {
1001
1001
  let s;
1002
- Array.isArray(this._settings.filterProtocolClaims) ? s = this._settings.filterProtocolClaims : s = cs;
1002
+ Array.isArray(this._settings.filterProtocolClaims) ? s = this._settings.filterProtocolClaims : s = ls;
1003
1003
  for (const i of s)
1004
- ls.includes(i) || delete t[i];
1004
+ ds.includes(i) || delete t[i];
1005
1005
  }
1006
1006
  return t;
1007
1007
  }
@@ -1022,9 +1022,9 @@ var rs = Ye, ns = "openid", de = class {
1022
1022
  typeof s[i] == "object" && typeof r == "object" ? s[i] = this.mergeClaims(s[i], r) : s[i] = r;
1023
1023
  return s;
1024
1024
  }
1025
- }, hs = class {
1025
+ }, gs = class {
1026
1026
  constructor(e, t) {
1027
- this._logger = new u("OidcClient"), this.settings = e instanceof we ? e : new we(e), this.metadataService = t ?? new Xt(this.settings), this._claimsService = new ds(this.settings), this._validator = new is(this.settings, this.metadataService, this._claimsService), this._tokenClient = new Qe(this.settings, this.metadataService);
1027
+ this._logger = new u("OidcClient"), this.settings = e instanceof ve ? e : new ve(e), this.metadataService = t ?? new Yt(this.settings), this._claimsService = new hs(this.settings), this._validator = new rs(this.settings, this.metadataService, this._claimsService), this._tokenClient = new Xe(this.settings, this.metadataService);
1028
1028
  }
1029
1029
  async createSigninRequest({
1030
1030
  state: e,
@@ -1054,7 +1054,7 @@ var rs = Ye, ns = "openid", de = class {
1054
1054
  throw new Error("Only the Authorization Code flow (with PKCE) is supported");
1055
1055
  const C = await this.metadataService.getAuthorizationEndpoint();
1056
1056
  U.debug("Received authorization endpoint", C);
1057
- const S = await rs.create({
1057
+ const S = await ns.create({
1058
1058
  url: C,
1059
1059
  authority: this.settings.authority,
1060
1060
  client_id: this.settings.client_id,
@@ -1087,13 +1087,13 @@ var rs = Ye, ns = "openid", de = class {
1087
1087
  return await this.settings.stateStore.set(L.id, L.toStorageString()), S;
1088
1088
  }
1089
1089
  async readSigninResponseState(e, t = !1) {
1090
- const s = this._logger.create("readSigninResponseState"), i = new de(fe.readParams(e, this.settings.response_mode));
1090
+ const s = this._logger.create("readSigninResponseState"), i = new he(me.readParams(e, this.settings.response_mode));
1091
1091
  if (!i.state)
1092
1092
  throw s.throw(new Error("No state in response")), null;
1093
1093
  const r = await this.settings.stateStore[t ? "remove" : "get"](i.state);
1094
1094
  if (!r)
1095
1095
  throw s.throw(new Error("No matching state found in storage")), null;
1096
- return { state: await Xe.fromStorageString(r), response: i };
1096
+ return { state: await Ye.fromStorageString(r), response: i };
1097
1097
  }
1098
1098
  async processSigninResponse(e) {
1099
1099
  const t = this._logger.create("processSigninResponse"), { state: s, response: i } = await this.readSigninResponseState(e, !0);
@@ -1105,7 +1105,7 @@ var rs = Ye, ns = "openid", de = class {
1105
1105
  skipUserInfo: s = !1,
1106
1106
  extraTokenParams: i = {}
1107
1107
  }) {
1108
- const r = await this._tokenClient.exchangeCredentials({ username: e, password: t, ...i }), n = new de(new URLSearchParams());
1108
+ const r = await this._tokenClient.exchangeCredentials({ username: e, password: t, ...i }), n = new he(new URLSearchParams());
1109
1109
  return Object.assign(n, r), await this._validator.validateCredentialsResponse(n, s), n;
1110
1110
  }
1111
1111
  async useRefreshToken({
@@ -1132,7 +1132,7 @@ var rs = Ye, ns = "openid", de = class {
1132
1132
  resource: s,
1133
1133
  timeoutInSeconds: i,
1134
1134
  ...r
1135
- }), d = new de(new URLSearchParams());
1135
+ }), d = new he(new URLSearchParams());
1136
1136
  return Object.assign(d, l), c.debug("validating response", d), await this._validator.validateRefreshResponse(d, {
1137
1137
  ...e,
1138
1138
  // override the scope in the state handed over to the validator
@@ -1152,7 +1152,7 @@ var rs = Ye, ns = "openid", de = class {
1152
1152
  if (!o)
1153
1153
  throw c.throw(new Error("No end session endpoint")), null;
1154
1154
  c.debug("Received end session endpoint", o), !s && r && !t && (s = this.settings.client_id);
1155
- const l = new os({
1155
+ const l = new as({
1156
1156
  url: o,
1157
1157
  id_token_hint: t,
1158
1158
  client_id: s,
@@ -1166,7 +1166,7 @@ var rs = Ye, ns = "openid", de = class {
1166
1166
  return d && (c.debug("Signout request has state to persist"), await this.settings.stateStore.set(d.id, d.toStorageString())), l;
1167
1167
  }
1168
1168
  async readSignoutResponseState(e, t = !1) {
1169
- const s = this._logger.create("readSignoutResponseState"), i = new as(fe.readParams(e, this.settings.response_mode));
1169
+ const s = this._logger.create("readSignoutResponseState"), i = new cs(me.readParams(e, this.settings.response_mode));
1170
1170
  if (!i.state) {
1171
1171
  if (s.debug("No state in response"), i.error)
1172
1172
  throw s.warn("Response was error:", i.error), new W(i);
@@ -1175,14 +1175,14 @@ var rs = Ye, ns = "openid", de = class {
1175
1175
  const r = await this.settings.stateStore[t ? "remove" : "get"](i.state);
1176
1176
  if (!r)
1177
1177
  throw s.throw(new Error("No matching state found in storage")), null;
1178
- return { state: await re.fromStorageString(r), response: i };
1178
+ return { state: await ne.fromStorageString(r), response: i };
1179
1179
  }
1180
1180
  async processSignoutResponse(e) {
1181
1181
  const t = this._logger.create("processSignoutResponse"), { state: s, response: i } = await this.readSignoutResponseState(e, !0);
1182
1182
  return s ? (t.debug("Received state from storage; validating response"), this._validator.validateSignoutResponse(i, s)) : t.debug("No state from storage; skipping response validation"), i;
1183
1183
  }
1184
1184
  clearStaleState() {
1185
- return this._logger.create("clearStaleState"), re.clearStaleState(this.settings.stateStore, this.settings.staleStateAgeInSeconds);
1185
+ return this._logger.create("clearStaleState"), ne.clearStaleState(this.settings.stateStore, this.settings.staleStateAgeInSeconds);
1186
1186
  }
1187
1187
  async revokeToken(e, t) {
1188
1188
  return this._logger.create("revokeToken"), await this._tokenClient.revoke({
@@ -1190,7 +1190,7 @@ var rs = Ye, ns = "openid", de = class {
1190
1190
  token_type_hint: t
1191
1191
  });
1192
1192
  }
1193
- }, gs = class {
1193
+ }, us = class {
1194
1194
  constructor(e) {
1195
1195
  this._userManager = e, this._logger = new u("SessionMonitor"), this._start = async (t) => {
1196
1196
  const s = t.session_state;
@@ -1205,7 +1205,7 @@ var rs = Ye, ns = "openid", de = class {
1205
1205
  const r = await this._userManager.metadataService.getCheckSessionIframe();
1206
1206
  if (r) {
1207
1207
  i.debug("initializing check session iframe");
1208
- const n = this._userManager.settings.client_id, c = this._userManager.settings.checkSessionIntervalInSeconds, o = this._userManager.settings.stopCheckSessionOnError, l = new Qt(this._callback, n, r, c, o);
1208
+ const n = this._userManager.settings.client_id, c = this._userManager.settings.checkSessionIntervalInSeconds, o = this._userManager.settings.stopCheckSessionOnError, l = new Xt(this._callback, n, r, c, o);
1209
1209
  await l.load(), this._checkSessionIFrame = l, l.start(s);
1210
1210
  } else
1211
1211
  i.warn("no check session iframe found in the metadata");
@@ -1264,7 +1264,7 @@ var rs = Ye, ns = "openid", de = class {
1264
1264
  }
1265
1265
  }
1266
1266
  }
1267
- }, he = class et {
1267
+ }, ge = class tt {
1268
1268
  constructor(t) {
1269
1269
  var s;
1270
1270
  this.id_token = t.id_token, this.session_state = (s = t.session_state) != null ? s : null, this.access_token = t.access_token, this.refresh_token = t.refresh_token, this.token_type = t.token_type, this.scope = t.scope, this.profile = t.profile, this.expires_at = t.expires_at, this.state = t.userState, this.url_state = t.url_state;
@@ -1301,9 +1301,9 @@ var rs = Ye, ns = "openid", de = class {
1301
1301
  });
1302
1302
  }
1303
1303
  static fromStorageString(t) {
1304
- return u.createStatic("User", "fromStorageString"), new et(JSON.parse(t));
1304
+ return u.createStatic("User", "fromStorageString"), new tt(JSON.parse(t));
1305
1305
  }
1306
- }, De = "oidc-client", tt = class {
1306
+ }, $e = "oidc-client", st = class {
1307
1307
  constructor() {
1308
1308
  this._abort = new F("Window navigation aborted"), this._disposeHandlers = /* @__PURE__ */ new Set(), this._window = null;
1309
1309
  }
@@ -1316,9 +1316,9 @@ var rs = Ye, ns = "openid", de = class {
1316
1316
  const c = (o) => {
1317
1317
  var l;
1318
1318
  const d = o.data, h = (l = e.scriptOrigin) != null ? l : window.location.origin;
1319
- if (!(o.origin !== h || (d == null ? void 0 : d.source) !== De)) {
1319
+ if (!(o.origin !== h || (d == null ? void 0 : d.source) !== $e)) {
1320
1320
  try {
1321
- const g = fe.readParams(d.url, e.response_mode).get("state");
1321
+ const g = me.readParams(d.url, e.response_mode).get("state");
1322
1322
  if (g || t.warn("no state found in response url"), o.source !== this._window && g !== e.state)
1323
1323
  return;
1324
1324
  } catch {
@@ -1341,55 +1341,55 @@ var rs = Ye, ns = "openid", de = class {
1341
1341
  }
1342
1342
  static _notifyParent(e, t, s = !1, i = window.location.origin) {
1343
1343
  e.postMessage({
1344
- source: De,
1344
+ source: $e,
1345
1345
  url: t,
1346
1346
  keepOpen: s
1347
1347
  }, i);
1348
1348
  }
1349
- }, st = {
1349
+ }, it = {
1350
1350
  location: !1,
1351
1351
  toolbar: !1,
1352
1352
  height: 640,
1353
1353
  closePopupWindowAfterInSeconds: -1
1354
- }, it = "_blank", us = 60, _s = 2, rt = 10, ps = class extends we {
1354
+ }, rt = "_blank", _s = 60, ps = 2, nt = 10, fs = class extends ve {
1355
1355
  constructor(e) {
1356
1356
  const {
1357
1357
  popup_redirect_uri: t = e.redirect_uri,
1358
1358
  popup_post_logout_redirect_uri: s = e.post_logout_redirect_uri,
1359
- popupWindowFeatures: i = st,
1360
- popupWindowTarget: r = it,
1359
+ popupWindowFeatures: i = it,
1360
+ popupWindowTarget: r = rt,
1361
1361
  redirectMethod: n = "assign",
1362
1362
  redirectTarget: c = "self",
1363
1363
  iframeNotifyParentOrigin: o = e.iframeNotifyParentOrigin,
1364
1364
  iframeScriptOrigin: l = e.iframeScriptOrigin,
1365
1365
  silent_redirect_uri: d = e.redirect_uri,
1366
- silentRequestTimeoutInSeconds: h = rt,
1366
+ silentRequestTimeoutInSeconds: h = nt,
1367
1367
  automaticSilentRenew: g = !0,
1368
1368
  validateSubOnSilentRenew: v = !0,
1369
1369
  includeIdTokenInSilentRenew: b = !1,
1370
1370
  monitorSession: R = !1,
1371
1371
  monitorAnonymousSession: k = !1,
1372
- checkSessionIntervalInSeconds: x = _s,
1372
+ checkSessionIntervalInSeconds: x = ps,
1373
1373
  query_status_response_type: E = "code",
1374
1374
  stopCheckSessionOnError: H = !0,
1375
1375
  revokeTokenTypes: T = ["access_token", "refresh_token"],
1376
1376
  revokeTokensOnSignout: w = !1,
1377
1377
  includeIdTokenInSilentSignout: U = !1,
1378
- accessTokenExpiringNotificationTimeInSeconds: C = us,
1378
+ accessTokenExpiringNotificationTimeInSeconds: C = _s,
1379
1379
  userStore: S
1380
1380
  } = e;
1381
1381
  if (super(e), this.popup_redirect_uri = t, this.popup_post_logout_redirect_uri = s, this.popupWindowFeatures = i, this.popupWindowTarget = r, this.redirectMethod = n, this.redirectTarget = c, this.iframeNotifyParentOrigin = o, this.iframeScriptOrigin = l, this.silent_redirect_uri = d, this.silentRequestTimeoutInSeconds = h, this.automaticSilentRenew = g, this.validateSubOnSilentRenew = v, this.includeIdTokenInSilentRenew = b, this.monitorSession = R, this.monitorAnonymousSession = k, this.checkSessionIntervalInSeconds = x, this.stopCheckSessionOnError = H, this.query_status_response_type = E, this.revokeTokenTypes = T, this.revokeTokensOnSignout = w, this.includeIdTokenInSilentSignout = U, this.accessTokenExpiringNotificationTimeInSeconds = C, S)
1382
1382
  this.userStore = S;
1383
1383
  else {
1384
- const L = typeof window < "u" ? window.sessionStorage : new Ve();
1385
- this.userStore = new Ge({ store: L });
1384
+ const L = typeof window < "u" ? window.sessionStorage : new Ge();
1385
+ this.userStore = new Qe({ store: L });
1386
1386
  }
1387
1387
  }
1388
- }, $e = class nt extends tt {
1388
+ }, We = class ot extends st {
1389
1389
  constructor({
1390
- silentRequestTimeoutInSeconds: t = rt
1390
+ silentRequestTimeoutInSeconds: t = nt
1391
1391
  }) {
1392
- super(), this._logger = new u("IFrameWindow"), this._timeoutInSeconds = t, this._frame = nt.createHiddenIframe(), this._window = this._frame.contentWindow;
1392
+ super(), this._logger = new u("IFrameWindow"), this._timeoutInSeconds = t, this._frame = ot.createHiddenIframe(), this._window = this._frame.contentWindow;
1393
1393
  }
1394
1394
  static createHiddenIframe() {
1395
1395
  const t = window.document.createElement("iframe");
@@ -1397,7 +1397,7 @@ var rs = Ye, ns = "openid", de = class {
1397
1397
  }
1398
1398
  async navigate(t) {
1399
1399
  this._logger.debug("navigate: Using timeout of:", this._timeoutInSeconds);
1400
- const s = setTimeout(() => void this._abort.raise(new xe("IFrame timed out without a response")), this._timeoutInSeconds * 1e3);
1400
+ const s = setTimeout(() => void this._abort.raise(new Ue("IFrame timed out without a response")), this._timeoutInSeconds * 1e3);
1401
1401
  return this._disposeHandlers.add(() => clearTimeout(s)), await super.navigate(t);
1402
1402
  }
1403
1403
  close() {
@@ -1411,39 +1411,39 @@ var rs = Ye, ns = "openid", de = class {
1411
1411
  static notifyParent(t, s) {
1412
1412
  return super._notifyParent(window.parent, t, !1, s);
1413
1413
  }
1414
- }, fs = class {
1414
+ }, ms = class {
1415
1415
  constructor(e) {
1416
1416
  this._settings = e, this._logger = new u("IFrameNavigator");
1417
1417
  }
1418
1418
  async prepare({
1419
1419
  silentRequestTimeoutInSeconds: e = this._settings.silentRequestTimeoutInSeconds
1420
1420
  }) {
1421
- return new $e({ silentRequestTimeoutInSeconds: e });
1421
+ return new We({ silentRequestTimeoutInSeconds: e });
1422
1422
  }
1423
1423
  async callback(e) {
1424
- this._logger.create("callback"), $e.notifyParent(e, this._settings.iframeNotifyParentOrigin);
1424
+ this._logger.create("callback"), We.notifyParent(e, this._settings.iframeNotifyParentOrigin);
1425
1425
  }
1426
- }, ms = 500, ws = 1e3, We = class extends tt {
1426
+ }, ws = 500, vs = 1e3, Ke = class extends st {
1427
1427
  constructor({
1428
- popupWindowTarget: e = it,
1428
+ popupWindowTarget: e = rt,
1429
1429
  popupWindowFeatures: t = {}
1430
1430
  }) {
1431
1431
  super(), this._logger = new u("PopupWindow");
1432
- const s = Fe.center({ ...st, ...t });
1433
- this._window = window.open(void 0, e, Fe.serialize(s)), t.closePopupWindowAfterInSeconds && t.closePopupWindowAfterInSeconds > 0 && setTimeout(() => {
1432
+ const s = De.center({ ...it, ...t });
1433
+ this._window = window.open(void 0, e, De.serialize(s)), t.closePopupWindowAfterInSeconds && t.closePopupWindowAfterInSeconds > 0 && setTimeout(() => {
1434
1434
  if (!this._window || typeof this._window.closed != "boolean" || this._window.closed) {
1435
1435
  this._abort.raise(new Error("Popup blocked by user"));
1436
1436
  return;
1437
1437
  }
1438
1438
  this.close();
1439
- }, t.closePopupWindowAfterInSeconds * ws);
1439
+ }, t.closePopupWindowAfterInSeconds * vs);
1440
1440
  }
1441
1441
  async navigate(e) {
1442
1442
  var t;
1443
1443
  (t = this._window) == null || t.focus();
1444
1444
  const s = setInterval(() => {
1445
1445
  (!this._window || this._window.closed) && this._abort.raise(new Error("Popup closed by user"));
1446
- }, ms);
1446
+ }, ws);
1447
1447
  return this._disposeHandlers.add(() => clearInterval(s)), await super.navigate(e);
1448
1448
  }
1449
1449
  close() {
@@ -1454,7 +1454,7 @@ var rs = Ye, ns = "openid", de = class {
1454
1454
  throw new Error("No window.opener. Can't complete notification.");
1455
1455
  return super._notifyParent(window.opener, e, t);
1456
1456
  }
1457
- }, vs = class {
1457
+ }, Ss = class {
1458
1458
  constructor(e) {
1459
1459
  this._settings = e, this._logger = new u("PopupNavigator");
1460
1460
  }
@@ -1462,12 +1462,12 @@ var rs = Ye, ns = "openid", de = class {
1462
1462
  popupWindowFeatures: e = this._settings.popupWindowFeatures,
1463
1463
  popupWindowTarget: t = this._settings.popupWindowTarget
1464
1464
  }) {
1465
- return new We({ popupWindowFeatures: e, popupWindowTarget: t });
1465
+ return new Ke({ popupWindowFeatures: e, popupWindowTarget: t });
1466
1466
  }
1467
1467
  async callback(e, { keepOpen: t = !1 }) {
1468
- this._logger.create("callback"), We.notifyOpener(e, t);
1468
+ this._logger.create("callback"), Ke.notifyOpener(e, t);
1469
1469
  }
1470
- }, Ss = class {
1470
+ }, bs = class {
1471
1471
  constructor(e) {
1472
1472
  this._settings = e, this._logger = new u("RedirectNavigator");
1473
1473
  }
@@ -1496,7 +1496,7 @@ var rs = Ye, ns = "openid", de = class {
1496
1496
  }
1497
1497
  async callback() {
1498
1498
  }
1499
- }, bs = class extends Gt {
1499
+ }, ys = class extends Qt {
1500
1500
  constructor(e) {
1501
1501
  super({ expiringNotificationTimeInSeconds: e.accessTokenExpiringNotificationTimeInSeconds }), this._logger = new u("UserManagerEvents"), this._userLoaded = new F("User loaded"), this._userUnloaded = new F("User unloaded"), this._silentRenewError = new F("Silent renew error"), this._userSignedIn = new F("User signed in"), this._userSignedOut = new F("User signed out"), this._userSessionChanged = new F("User session changed");
1502
1502
  }
@@ -1605,14 +1605,14 @@ var rs = Ye, ns = "openid", de = class {
1605
1605
  async _raiseUserSessionChanged() {
1606
1606
  await this._userSessionChanged.raise();
1607
1607
  }
1608
- }, ys = class {
1608
+ }, ks = class {
1609
1609
  constructor(e) {
1610
1610
  this._userManager = e, this._logger = new u("SilentRenewService"), this._isStarted = !1, this._retryTimer = new M("Retry Silent Renew"), this._tokenExpiring = async () => {
1611
1611
  const t = this._logger.create("_tokenExpiring");
1612
1612
  try {
1613
1613
  await this._userManager.signinSilent(), t.debug("silent token renewal successful");
1614
1614
  } catch (s) {
1615
- if (s instanceof xe) {
1615
+ if (s instanceof Ue) {
1616
1616
  t.warn("ErrorTimeout from signinSilent:", s, "retry in 5s"), this._retryTimer.init(5);
1617
1617
  return;
1618
1618
  }
@@ -1634,13 +1634,13 @@ var rs = Ye, ns = "openid", de = class {
1634
1634
  stop() {
1635
1635
  this._isStarted && (this._retryTimer.cancel(), this._retryTimer.removeHandler(this._tokenExpiring), this._userManager.events.removeAccessTokenExpiring(this._tokenExpiring), this._isStarted = !1);
1636
1636
  }
1637
- }, ks = class {
1637
+ }, Ts = class {
1638
1638
  constructor(e) {
1639
1639
  this.refresh_token = e.refresh_token, this.id_token = e.id_token, this.session_state = e.session_state, this.scope = e.scope, this.profile = e.profile, this.data = e.state;
1640
1640
  }
1641
- }, Ts = class {
1641
+ }, Is = class {
1642
1642
  constructor(e, t, s, i) {
1643
- this._logger = new u("UserManager"), this.settings = new ps(e), this._client = new hs(e), this._redirectNavigator = t ?? new Ss(this.settings), this._popupNavigator = s ?? new vs(this.settings), this._iframeNavigator = i ?? new fs(this.settings), this._events = new bs(this.settings), this._silentRenewService = new ys(this), this.settings.automaticSilentRenew && this.startSilentRenew(), this._sessionMonitor = null, this.settings.monitorSession && (this._sessionMonitor = new gs(this));
1643
+ this._logger = new u("UserManager"), this.settings = new fs(e), this._client = new gs(e), this._redirectNavigator = t ?? new bs(this.settings), this._popupNavigator = s ?? new Ss(this.settings), this._iframeNavigator = i ?? new ms(this.settings), this._events = new ys(this.settings), this._silentRenewService = new ks(this), this.settings.automaticSilentRenew && this.startSilentRenew(), this._sessionMonitor = null, this.settings.monitorSession && (this._sessionMonitor = new us(this));
1644
1644
  }
1645
1645
  /**
1646
1646
  * Get object used to register for events raised by the `UserManager`.
@@ -1765,7 +1765,7 @@ var rs = Ye, ns = "openid", de = class {
1765
1765
  let n = await this._loadUser();
1766
1766
  if (n != null && n.refresh_token) {
1767
1767
  s.debug("using refresh token");
1768
- const d = new ks(n);
1768
+ const d = new Ts(n);
1769
1769
  return await this._useRefreshToken({
1770
1770
  state: d,
1771
1771
  redirect_uri: r.redirect_uri,
@@ -1791,7 +1791,7 @@ var rs = Ye, ns = "openid", de = class {
1791
1791
  const t = await this._client.useRefreshToken({
1792
1792
  ...e,
1793
1793
  timeoutInSeconds: this.settings.silentRequestTimeoutInSeconds
1794
- }), s = new he({ ...e.state, ...t });
1794
+ }), s = new ge({ ...e.state, ...t });
1795
1795
  return await this.storeUser(s), await this._events.load(s), s;
1796
1796
  }
1797
1797
  /**
@@ -1921,7 +1921,7 @@ var rs = Ye, ns = "openid", de = class {
1921
1921
  return s.debug("got signin response"), await this._buildUser(i, t);
1922
1922
  }
1923
1923
  async _buildUser(e, t) {
1924
- const s = this._logger.create("_buildUser"), i = new he(e);
1924
+ const s = this._logger.create("_buildUser"), i = new ge(e);
1925
1925
  if (t) {
1926
1926
  if (t !== i.profile.sub)
1927
1927
  throw s.debug("current user does not match user returned from signin. sub from signin:", i.profile.sub), new W({ ...e, error: "login_required" });
@@ -2086,7 +2086,7 @@ var rs = Ye, ns = "openid", de = class {
2086
2086
  }
2087
2087
  async _loadUser() {
2088
2088
  const e = this._logger.create("_loadUser"), t = await this.settings.userStore.get(this._userStoreKey);
2089
- return t ? (e.debug("user storageString loaded"), he.fromStorageString(t)) : (e.debug("no user storageString"), null);
2089
+ return t ? (e.debug("user storageString loaded"), ge.fromStorageString(t)) : (e.debug("no user storageString"), null);
2090
2090
  }
2091
2091
  async storeUser(e) {
2092
2092
  const t = this._logger.create("storeUser");
@@ -2104,28 +2104,25 @@ var rs = Ye, ns = "openid", de = class {
2104
2104
  await this._client.clearStaleState();
2105
2105
  }
2106
2106
  };
2107
- const Is = ["url", "clientId", "redirectUri", "scope"], Es = "openid profile email";
2108
- function Cs(e, t) {
2107
+ const Es = ["url", "clientId", "redirectUri", "scope", "logoutUrl"], Cs = "openid profile email";
2108
+ function Rs(e, t) {
2109
2109
  const s = {};
2110
2110
  return e.forEach((i) => {
2111
2111
  t[i] !== void 0 && (s[i] = t[i]);
2112
2112
  }), s;
2113
2113
  }
2114
- let _;
2115
- const Rs = (e) => {
2116
- const t = Cs(Is, e);
2117
- return new Ts({
2118
- authority: t.url,
2119
- client_id: t.clientId,
2120
- redirect_uri: t.redirectUri,
2121
- response_type: "code",
2122
- scope: t.scope || Es,
2123
- filterProtocolClaims: !0,
2124
- includeIdTokenInSilentRenew: !0,
2125
- includeIdTokenInSilentSignout: !0,
2126
- loadUserInfo: !0
2127
- });
2128
- }, xs = async () => {
2114
+ let _, K;
2115
+ const xs = (e) => (K = Rs(Es, e), new Is({
2116
+ authority: K.url,
2117
+ client_id: K.clientId,
2118
+ redirect_uri: K.redirectUri,
2119
+ response_type: "code",
2120
+ scope: K.scope || Cs,
2121
+ filterProtocolClaims: !0,
2122
+ includeIdTokenInSilentRenew: !0,
2123
+ includeIdTokenInSilentSignout: !0,
2124
+ loadUserInfo: !0
2125
+ })), Us = async () => {
2129
2126
  try {
2130
2127
  console.debug("[Auth] Logging in using OIDC");
2131
2128
  const e = new URL(window.location.href), t = await (_ == null ? void 0 : _.getUser());
@@ -2137,49 +2134,51 @@ const Rs = (e) => {
2137
2134
  } catch (e) {
2138
2135
  console.error("[Auth] Error logging in using OIDC: ", e);
2139
2136
  }
2140
- }, Us = async () => _ == null ? void 0 : _.removeUser().then(() => _ == null ? void 0 : _.signoutRedirect({ post_logout_redirect_uri: window.location.href })), As = async () => await (_ == null ? void 0 : _.getUser()) != null, Ps = async () => {
2137
+ }, As = async () => _ == null ? void 0 : _.removeUser().then(() => _ == null ? void 0 : _.signoutRedirect({
2138
+ post_logout_redirect_uri: K.logoutUrl || window.location.href
2139
+ })), Ps = async () => await (_ == null ? void 0 : _.getUser()) != null, Os = async () => {
2141
2140
  const e = await (_ == null ? void 0 : _.getUser());
2142
2141
  return Promise.resolve(e == null ? void 0 : e.id_token);
2143
- }, Os = async () => {
2142
+ }, Ns = async () => {
2144
2143
  const e = await (_ == null ? void 0 : _.getUser());
2145
2144
  return Promise.resolve(e == null ? void 0 : e.profile.preferred_username);
2146
2145
  };
2147
- let z, G;
2148
- const Ns = async (e, t) => {
2146
+ let J, Q;
2147
+ const qs = async (e, t) => {
2149
2148
  try {
2150
- console.debug("[Auth] Setting Username and Password for BasicAuth"), z = e, G = t;
2149
+ console.debug("[Auth] Setting Username and Password for BasicAuth"), J = e, Q = t;
2151
2150
  } catch (s) {
2152
2151
  console.error("[Auth] Error logging in using BasicAuth: ", s);
2153
2152
  }
2154
- }, qs = async () => {
2155
- console.debug("[Auth] Logout for BasicAuth"), z = void 0, G = void 0, window.location.reload();
2156
- }, js = async () => z !== void 0 && G !== void 0, Hs = async () => Promise.resolve(z), Ls = () => {
2157
- if (z !== void 0 && G != null)
2153
+ }, js = async () => {
2154
+ console.debug("[Auth] Logout for BasicAuth"), J = void 0, Q = void 0, window.location.reload();
2155
+ }, Hs = async () => J !== void 0 && Q !== void 0, Ls = async () => Promise.resolve(J), Ms = () => {
2156
+ if (J !== void 0 && Q != null)
2158
2157
  return {
2159
- username: z,
2160
- password: G
2158
+ username: J,
2159
+ password: Q
2161
2160
  };
2162
- }, ot = () => {
2163
- const e = gt(Wt);
2164
- return e.type === "oidc" ? (_ === void 0 && (console.debug("[Auth] Creating OIDC UserManager with options: ", e.options), _ = Rs(e.options)), {
2161
+ }, at = () => {
2162
+ const e = ut(Kt);
2163
+ return e.type === "oidc" ? (_ === void 0 && (console.debug("[Auth] Creating OIDC UserManager with options: ", e.options), _ = xs(e.options)), {
2165
2164
  isOidcAuthEnabled: () => !0,
2166
2165
  isBasicAuthEnabled: () => !1,
2167
- isAuthenticated: As,
2168
- getToken: Ps,
2166
+ isAuthenticated: Ps,
2167
+ getToken: Os,
2169
2168
  getUsernameAndPassword: () => {
2170
2169
  },
2171
- getUsername: Os,
2172
- login: xs,
2173
- logout: Us
2170
+ getUsername: Ns,
2171
+ login: Us,
2172
+ logout: As
2174
2173
  }) : e.type === "basic" ? {
2175
2174
  isOidcAuthEnabled: () => !1,
2176
2175
  isBasicAuthEnabled: () => !0,
2177
- isAuthenticated: js,
2176
+ isAuthenticated: Hs,
2178
2177
  getToken: () => Promise.resolve(void 0),
2179
- getUsernameAndPassword: Ls,
2180
- getUsername: Hs,
2181
- login: Ns,
2182
- logout: qs
2178
+ getUsernameAndPassword: Ms,
2179
+ getUsername: Ls,
2180
+ login: qs,
2181
+ logout: js
2183
2182
  } : {
2184
2183
  isOidcAuthEnabled: () => !1,
2185
2184
  isBasicAuthEnabled: () => !1,
@@ -2191,39 +2190,39 @@ const Ns = async (e, t) => {
2191
2190
  login: () => Promise.resolve(),
2192
2191
  logout: () => Promise.resolve()
2193
2192
  };
2194
- }, be = (e) => {
2193
+ }, ye = (e) => {
2195
2194
  const [t, s] = I(null), i = e.format || "locale";
2196
- return ke(() => {
2195
+ return Te(() => {
2197
2196
  let r;
2198
- if (e.date && typeof e.date == "string" ? r = le.fromISO(e.date) : e.date && typeof e.date == "object" && (r = le.fromJSDate(e.date)), r) {
2197
+ if (e.date && typeof e.date == "string" ? r = de.fromISO(e.date) : e.date && typeof e.date == "object" && (r = de.fromJSDate(e.date)), r) {
2199
2198
  const n = {
2200
2199
  locale: e.locale
2201
2200
  };
2202
- s(i === "fromNow" ? r.toRelative() : i === "locale" ? r.toLocaleString(le.DATETIME_FULL, n) : r.toFormat(i, n));
2201
+ s(i === "fromNow" ? r.toRelative() : i === "locale" ? r.toLocaleString(de.DATETIME_FULL, n) : r.toFormat(i, n));
2203
2202
  } else
2204
2203
  s(null);
2205
2204
  }, [e.date]), /* @__PURE__ */ a("span", { children: t || "" });
2206
- }, Xs = (e) => /* @__PURE__ */ a(be, { date: e.date, format: "fromNow" }), A = ({ condition: e, children: t }) => (typeof e == "boolean" ? e : e()) ? /* @__PURE__ */ a(j.Fragment, { children: t }) : /* @__PURE__ */ a(j.Fragment, {}), Ys = ({ collection: e, emptyState: t, emptyStateTitle: s, emptyStateMessage: i, children: r }) => {
2207
- const n = () => !e || e.length === 0, c = t || /* @__PURE__ */ f(ee, { variant: ut.xs, children: [
2208
- /* @__PURE__ */ a(te, { titleText: s || "None found", headingLevel: "h4" }),
2209
- /* @__PURE__ */ a(ge, { children: i || "No items found." })
2205
+ }, Ys = (e) => /* @__PURE__ */ a(ye, { date: e.date, format: "fromNow" }), A = ({ condition: e, children: t }) => (typeof e == "boolean" ? e : e()) ? /* @__PURE__ */ a(j.Fragment, { children: t }) : /* @__PURE__ */ a(j.Fragment, {}), Zs = ({ collection: e, emptyState: t, emptyStateTitle: s, emptyStateMessage: i, children: r }) => {
2206
+ const n = () => !e || e.length === 0, c = t || /* @__PURE__ */ f(te, { variant: _t.xs, children: [
2207
+ /* @__PURE__ */ a(se, { titleText: s || "None found", headingLevel: "h4" }),
2208
+ /* @__PURE__ */ a(ue, { children: i || "No items found." })
2210
2209
  ] });
2211
2210
  return n() ? /* @__PURE__ */ a(j.Fragment, { children: c }) : /* @__PURE__ */ a(j.Fragment, { children: r });
2212
- }, ne = ({ isLoading: e, loadingComponent: t, children: s }) => {
2213
- const i = () => typeof e == "boolean" ? e : e(), r = t || /* @__PURE__ */ a(Q, {});
2211
+ }, oe = ({ isLoading: e, loadingComponent: t, children: s }) => {
2212
+ const i = () => typeof e == "boolean" ? e : e(), r = t || /* @__PURE__ */ a(X, {});
2214
2213
  return i() ? /* @__PURE__ */ a(j.Fragment, { children: r }) : /* @__PURE__ */ a(j.Fragment, { children: s });
2215
- }, Zs = ({ toolbar: e, alwaysShowToolbar: t, emptyState: s, filteredEmptyState: i, isLoading: r, isError: n, loadingComponent: c, errorComponent: o, isEmpty: l, isFiltered: d, children: h }) => {
2214
+ }, ei = ({ toolbar: e, alwaysShowToolbar: t, emptyState: s, filteredEmptyState: i, isLoading: r, isError: n, loadingComponent: c, errorComponent: o, isEmpty: l, isFiltered: d, children: h }) => {
2216
2215
  const g = t || !l || d || n;
2217
- return o || (o = /* @__PURE__ */ a("div", { style: { padding: "15px", backgroundColor: "white" }, children: /* @__PURE__ */ a(_t, { isInline: !0, variant: "danger", title: "Error: Something went wrong!", children: /* @__PURE__ */ a("p", { children: "Something went wrong with the action you attempted, but we're not sure what it was. Try reloading the page and hopef for a better result, or contact your admin to report the error." }) }) })), /* @__PURE__ */ f(j.Fragment, { children: [
2216
+ return o || (o = /* @__PURE__ */ a("div", { style: { padding: "15px", backgroundColor: "white" }, children: /* @__PURE__ */ a(pt, { isInline: !0, variant: "danger", title: "Error: Something went wrong!", children: /* @__PURE__ */ a("p", { children: "Something went wrong with the action you attempted, but we're not sure what it was. Try reloading the page and hopef for a better result, or contact your admin to report the error." }) }) })), /* @__PURE__ */ f(j.Fragment, { children: [
2218
2217
  /* @__PURE__ */ a(A, { condition: g, children: e }),
2219
- /* @__PURE__ */ f(ne, { isLoading: r, loadingComponent: c, children: [
2218
+ /* @__PURE__ */ f(oe, { isLoading: r, loadingComponent: c, children: [
2220
2219
  /* @__PURE__ */ a(A, { condition: !l && !n, children: h }),
2221
2220
  /* @__PURE__ */ a(A, { condition: l && d && !n, children: i }),
2222
2221
  /* @__PURE__ */ a(A, { condition: l && !d && !n, children: s }),
2223
2222
  /* @__PURE__ */ a(A, { condition: n, children: o })
2224
2223
  ] })
2225
2224
  ] });
2226
- }, ei = (e) => {
2225
+ }, ti = (e) => {
2227
2226
  const [t, s] = I(!1), i = (l, d) => {
2228
2227
  s(!1);
2229
2228
  const h = d;
@@ -2236,15 +2235,15 @@ const Ns = async (e, t) => {
2236
2235
  }, c = e.popperProps || {
2237
2236
  appendTo: e.menuAppendTo
2238
2237
  };
2239
- let o = /* @__PURE__ */ a(Ot, { title: e.label });
2238
+ let o = /* @__PURE__ */ a(Nt, { title: e.label });
2240
2239
  return e.isKebab || (o = /* @__PURE__ */ a(j.Fragment, { children: e.label })), /* @__PURE__ */ a(
2241
- pt,
2240
+ ft,
2242
2241
  {
2243
2242
  isOpen: t,
2244
2243
  onSelect: i,
2245
2244
  onOpenChange: (l) => s(l),
2246
2245
  toggle: (l) => /* @__PURE__ */ a(
2247
- ae,
2246
+ ce,
2248
2247
  {
2249
2248
  "data-testid": e.testId,
2250
2249
  ref: l,
@@ -2257,8 +2256,8 @@ const Ns = async (e, t) => {
2257
2256
  ouiaId: "ObjectDropdown",
2258
2257
  popperProps: c,
2259
2258
  shouldFocusToggleOnSelect: !0,
2260
- children: /* @__PURE__ */ a(ft, { children: e.items.map((l, d) => e.itemIsVisible !== void 0 && !e.itemIsVisible(l) ? /* @__PURE__ */ a(oe, {}) : e.itemIsDivider && e.itemIsDivider(l) ? /* @__PURE__ */ a(ze, { component: "li" }, `divider-${d}`) : /* @__PURE__ */ a(
2261
- mt,
2259
+ children: /* @__PURE__ */ a(mt, { children: e.items.map((l, d) => e.itemIsVisible !== void 0 && !e.itemIsVisible(l) ? /* @__PURE__ */ a(ae, {}) : e.itemIsDivider && e.itemIsDivider(l) ? /* @__PURE__ */ a(Je, { component: "li" }, `divider-${d}`) : /* @__PURE__ */ a(
2260
+ wt,
2262
2261
  {
2263
2262
  value: d,
2264
2263
  isDisabled: e.itemIsDisabled === void 0 ? !1 : e.itemIsDisabled(l),
@@ -2269,7 +2268,7 @@ const Ns = async (e, t) => {
2269
2268
  )) })
2270
2269
  }
2271
2270
  );
2272
- }, ti = (e) => {
2271
+ }, si = (e) => {
2273
2272
  var l;
2274
2273
  const [t, s] = I(!1), i = (d, h) => {
2275
2274
  s(!1), e.onSelect(e.items[h]);
@@ -2279,7 +2278,7 @@ const Ns = async (e, t) => {
2279
2278
  let h;
2280
2279
  return e.itemToTestId !== void 0 && (h = e.itemToTestId(d)), h;
2281
2280
  }, c = (d) => /* @__PURE__ */ a(
2282
- ae,
2281
+ ce,
2283
2282
  {
2284
2283
  ref: d,
2285
2284
  className: e.toggleClassname || "menu-toggle",
@@ -2292,7 +2291,7 @@ const Ns = async (e, t) => {
2292
2291
  appendTo: e.appendTo === "document" ? () => document.body : "inline"
2293
2292
  };
2294
2293
  return /* @__PURE__ */ a(
2295
- Ie,
2294
+ Ee,
2296
2295
  {
2297
2296
  toggle: c,
2298
2297
  id: e.toggleId,
@@ -2300,8 +2299,8 @@ const Ns = async (e, t) => {
2300
2299
  onOpenChange: s,
2301
2300
  isOpen: t,
2302
2301
  popperProps: o,
2303
- children: (l = e.items) == null ? void 0 : l.map((d, h) => e.itemIsDivider && e.itemIsDivider(d) ? /* @__PURE__ */ a(ze, {}, h) : /* @__PURE__ */ a(
2304
- Ee,
2302
+ children: (l = e.items) == null ? void 0 : l.map((d, h) => e.itemIsDivider && e.itemIsDivider(d) ? /* @__PURE__ */ a(Je, {}, h) : /* @__PURE__ */ a(
2303
+ Ce,
2305
2304
  {
2306
2305
  isSelected: d === e.value,
2307
2306
  component: (g) => /* @__PURE__ */ a("button", { ...g, "data-testid": n(d) }),
@@ -2312,18 +2311,18 @@ const Ns = async (e, t) => {
2312
2311
  ))
2313
2312
  }
2314
2313
  );
2315
- }, si = ({ expanded: e, onClick: t }) => e ? /* @__PURE__ */ a(Nt, { onClick: t, style: { cursor: "pointer" } }) : /* @__PURE__ */ a(qt, { onClick: t, style: { cursor: "pointer" } }), at = {
2314
+ }, ii = ({ expanded: e, onClick: t }) => e ? /* @__PURE__ */ a(qt, { onClick: t, style: { cursor: "pointer" } }) : /* @__PURE__ */ a(jt, { onClick: t, style: { cursor: "pointer" } }), ct = {
2316
2315
  padding: "5px",
2317
2316
  minHeight: "128px",
2318
2317
  borderRight: 0,
2319
2318
  borderLeft: 0,
2320
2319
  borderBottom: "1px solid #666",
2321
2320
  backgroundColor: "rgb(240, 240, 240)"
2322
- }, Ms = {
2323
- ...at,
2321
+ }, Fs = {
2322
+ ...ct,
2324
2323
  color: "red",
2325
2324
  overflow: "auto"
2326
- }, ii = (e) => {
2325
+ }, ri = (e) => {
2327
2326
  const [t, s] = I(""), [i, r] = I(""), [n, c] = I(!1), [o, l] = I(), d = (k, x) => {
2328
2327
  s(x);
2329
2328
  }, h = () => t != null && t.trim().length > 0, g = () => o != null && o.trim().length > 0, v = () => {
@@ -2334,14 +2333,14 @@ const Ns = async (e, t) => {
2334
2333
  });
2335
2334
  }, b = () => {
2336
2335
  s(""), r(""), e.onChange(void 0, void 0);
2337
- }, R = /* @__PURE__ */ f("div", { className: "url-upload-loading", style: at, children: [
2338
- /* @__PURE__ */ a(Q, { size: "md", className: "spinner", style: { marginRight: "5px" } }),
2336
+ }, R = /* @__PURE__ */ f("div", { className: "url-upload-loading", style: ct, children: [
2337
+ /* @__PURE__ */ a(X, { size: "md", className: "spinner", style: { marginRight: "5px" } }),
2339
2338
  /* @__PURE__ */ a("span", { className: "spinner-message", children: "Loading URL content" })
2340
2339
  ] });
2341
2340
  return /* @__PURE__ */ f("div", { className: "url-upload", "data-testid": e.testId, children: [
2342
2341
  /* @__PURE__ */ f("div", { className: "url-upload-flex", style: { display: "flex" }, children: [
2343
2342
  /* @__PURE__ */ a("div", { className: "url-upload-url", style: { flexGrow: 1 }, children: /* @__PURE__ */ a(
2344
- ue,
2343
+ _e,
2345
2344
  {
2346
2345
  "data-testid": `${e.testId}-input`,
2347
2346
  value: t,
@@ -2352,16 +2351,16 @@ const Ns = async (e, t) => {
2352
2351
  "aria-label": "url input"
2353
2352
  }
2354
2353
  ) }),
2355
- /* @__PURE__ */ a("div", { className: "url-fetch-button", children: /* @__PURE__ */ a(_e, { "data-testid": `${e.testId}-fetch`, variant: "control", isDisabled: !h(), onClick: v, children: "Fetch" }) }),
2356
- /* @__PURE__ */ a("div", { className: "url-clear-button", children: /* @__PURE__ */ a(_e, { "data-testid": `${e.testId}-clear`, variant: "control", isDisabled: !h(), onClick: b, children: "Clear" }) })
2354
+ /* @__PURE__ */ a("div", { className: "url-fetch-button", children: /* @__PURE__ */ a(pe, { "data-testid": `${e.testId}-fetch`, variant: "control", isDisabled: !h(), onClick: v, children: "Fetch" }) }),
2355
+ /* @__PURE__ */ a("div", { className: "url-clear-button", children: /* @__PURE__ */ a(pe, { "data-testid": `${e.testId}-clear`, variant: "control", isDisabled: !h(), onClick: b, children: "Clear" }) })
2357
2356
  ] }),
2358
- /* @__PURE__ */ a("div", { className: "url-upload-preview", children: /* @__PURE__ */ f(ne, { isLoading: n, loadingComponent: R, children: [
2359
- /* @__PURE__ */ a(A, { condition: g, children: /* @__PURE__ */ f("div", { className: "url-upload-error", style: Ms, children: [
2357
+ /* @__PURE__ */ a("div", { className: "url-upload-preview", children: /* @__PURE__ */ f(oe, { isLoading: n, loadingComponent: R, children: [
2358
+ /* @__PURE__ */ a(A, { condition: g, children: /* @__PURE__ */ f("div", { className: "url-upload-error", style: Fs, children: [
2360
2359
  /* @__PURE__ */ a("div", { children: "Error getting content from URL." }),
2361
2360
  /* @__PURE__ */ a("div", { children: o })
2362
2361
  ] }) }),
2363
2362
  /* @__PURE__ */ a(A, { condition: !g(), children: /* @__PURE__ */ a(
2364
- wt,
2363
+ vt,
2365
2364
  {
2366
2365
  "data-testid": `${e.testId}-preview`,
2367
2366
  "aria-label": "url-content",
@@ -2372,7 +2371,7 @@ const Ns = async (e, t) => {
2372
2371
  ) })
2373
2372
  ] }) })
2374
2373
  ] });
2375
- }, Fs = (e) => {
2374
+ }, Ds = (e) => {
2376
2375
  const [t, s] = I({
2377
2376
  username: "",
2378
2377
  password: ""
@@ -2390,7 +2389,7 @@ const Ns = async (e, t) => {
2390
2389
  });
2391
2390
  };
2392
2391
  return /* @__PURE__ */ a(
2393
- Ce,
2392
+ Re,
2394
2393
  {
2395
2394
  title: "Login",
2396
2395
  variant: "small",
@@ -2401,16 +2400,16 @@ const Ns = async (e, t) => {
2401
2400
  "aria-label": "please-wait-modal",
2402
2401
  style: { marginTop: "-15px" },
2403
2402
  actions: [
2404
- /* @__PURE__ */ a(_e, { variant: "primary", "data-testid": "modal-btn-login", onClick: i, isDisabled: (t == null ? void 0 : t.username) === "" || (t == null ? void 0 : t.password) === "", children: "Login" }, "login")
2403
+ /* @__PURE__ */ a(pe, { variant: "primary", "data-testid": "modal-btn-login", onClick: i, isDisabled: (t == null ? void 0 : t.username) === "" || (t == null ? void 0 : t.password) === "", children: "Login" }, "login")
2405
2404
  ],
2406
- children: /* @__PURE__ */ f(vt, { children: [
2405
+ children: /* @__PURE__ */ f(St, { children: [
2407
2406
  /* @__PURE__ */ a(
2408
- qe,
2407
+ je,
2409
2408
  {
2410
2409
  label: "Username",
2411
2410
  fieldId: "form-username",
2412
2411
  children: /* @__PURE__ */ a(
2413
- ue,
2412
+ _e,
2414
2413
  {
2415
2414
  isRequired: !0,
2416
2415
  type: "text",
@@ -2425,12 +2424,12 @@ const Ns = async (e, t) => {
2425
2424
  }
2426
2425
  ),
2427
2426
  /* @__PURE__ */ a(
2428
- qe,
2427
+ je,
2429
2428
  {
2430
2429
  label: "Password",
2431
2430
  fieldId: "form-password",
2432
2431
  children: /* @__PURE__ */ a(
2433
- ue,
2432
+ _e,
2434
2433
  {
2435
2434
  isRequired: !0,
2436
2435
  type: "text",
@@ -2447,17 +2446,17 @@ const Ns = async (e, t) => {
2447
2446
  ] })
2448
2447
  }
2449
2448
  );
2450
- }, ri = (e) => {
2449
+ }, ni = (e) => {
2451
2450
  const [t, s] = I(
2452
2451
  0
2453
2452
  /* AUTHENTICATING */
2454
- ), i = ot(), r = (n) => {
2453
+ ), i = at(), r = (n) => {
2455
2454
  console.info("[ApplicationAuth] Using username and password."), i.login(n.username, n.password), s(
2456
2455
  1
2457
2456
  /* AUTHENTICATED */
2458
2457
  );
2459
2458
  };
2460
- return ke(() => {
2459
+ return Te(() => {
2461
2460
  i.isOidcAuthEnabled() ? i.login("", "").then(() => {
2462
2461
  console.info("[ApplicationAuth] Authentication successful."), s(
2463
2462
  1
@@ -2472,30 +2471,30 @@ const Ns = async (e, t) => {
2472
2471
  1
2473
2472
  /* AUTHENTICATED */
2474
2473
  );
2475
- }, []), /* @__PURE__ */ f(oe, { children: [
2476
- /* @__PURE__ */ a(A, { condition: t === 0 && i.isOidcAuthEnabled(), children: /* @__PURE__ */ f(ee, { children: [
2477
- /* @__PURE__ */ a(te, { titleText: "Loading", headingLevel: "h4" }),
2478
- /* @__PURE__ */ a(ge, { children: /* @__PURE__ */ a(Q, { size: "xl", "aria-label": "Loading spinner" }) })
2474
+ }, []), /* @__PURE__ */ f(ae, { children: [
2475
+ /* @__PURE__ */ a(A, { condition: t === 0 && i.isOidcAuthEnabled(), children: /* @__PURE__ */ f(te, { children: [
2476
+ /* @__PURE__ */ a(se, { titleText: "Loading", headingLevel: "h4" }),
2477
+ /* @__PURE__ */ a(ue, { children: /* @__PURE__ */ a(X, { size: "xl", "aria-label": "Loading spinner" }) })
2479
2478
  ] }) }),
2480
- /* @__PURE__ */ a(A, { condition: t === 0 && i.isBasicAuthEnabled(), children: /* @__PURE__ */ a(Fs, { onLogin: r }) }),
2481
- /* @__PURE__ */ a(A, { condition: t === 2, children: /* @__PURE__ */ f(ee, { children: [
2482
- /* @__PURE__ */ a(te, { titleText: "Empty state", headingLevel: "h4", icon: /* @__PURE__ */ a(Je, { icon: jt }) }),
2483
- /* @__PURE__ */ a(ge, { children: "Authentication failed." })
2479
+ /* @__PURE__ */ a(A, { condition: t === 0 && i.isBasicAuthEnabled(), children: /* @__PURE__ */ a(Ds, { onLogin: r }) }),
2480
+ /* @__PURE__ */ a(A, { condition: t === 2, children: /* @__PURE__ */ f(te, { children: [
2481
+ /* @__PURE__ */ a(se, { titleText: "Empty state", headingLevel: "h4", icon: /* @__PURE__ */ a(Be, { icon: Ht }) }),
2482
+ /* @__PURE__ */ a(ue, { children: "Authentication failed." })
2484
2483
  ] }) }),
2485
2484
  /* @__PURE__ */ a(A, { condition: t === 1, children: e.children })
2486
2485
  ] });
2487
- }, ni = (e) => {
2488
- const t = ot();
2486
+ }, oi = (e) => {
2487
+ const t = at();
2489
2488
  return (() => {
2490
2489
  let i = !0;
2491
2490
  return e.enabled !== void 0 && (i = i && (t.isOidcAuthEnabled() === e.enabled || t.isBasicAuthEnabled() === e.enabled)), i;
2492
2491
  })() ? /* @__PURE__ */ a(j.Fragment, { children: e.children }) : /* @__PURE__ */ a(j.Fragment, {});
2493
- }, oi = (e) => {
2492
+ }, ai = (e) => {
2494
2493
  const [t, s] = I(), [i, r] = I();
2495
- return ke(() => {
2494
+ return Te(() => {
2496
2495
  e.isOpen && (typeof e.frontendInfo == "function" ? e.frontendInfo().then(s) : s(e.frontendInfo), typeof e.backendInfo == "function" ? e.backendInfo().then(r) : r(e.backendInfo));
2497
2496
  }, [e.isOpen]), /* @__PURE__ */ a(
2498
- St,
2497
+ bt,
2499
2498
  {
2500
2499
  className: "app-about-modal",
2501
2500
  isOpen: e.isOpen,
@@ -2504,20 +2503,20 @@ const Ns = async (e, t) => {
2504
2503
  brandImageSrc: e.brandImageSrc,
2505
2504
  brandImageAlt: e.brandImageAlt,
2506
2505
  "aria-label": e.brandImageAlt,
2507
- children: /* @__PURE__ */ f(bt, { className: "app-about-modal-content", style: { marginTop: "-25px" }, children: [
2508
- /* @__PURE__ */ a(je, { component: He.h2, children: "Web console info" }),
2509
- /* @__PURE__ */ a(ne, { isLoading: t === void 0, children: /* @__PURE__ */ f(Le, { component: "dl", children: [
2506
+ children: /* @__PURE__ */ f(yt, { className: "app-about-modal-content", style: { marginTop: "-25px" }, children: [
2507
+ /* @__PURE__ */ a(He, { component: Le.h2, children: "Web console info" }),
2508
+ /* @__PURE__ */ a(oe, { isLoading: t === void 0, children: /* @__PURE__ */ f(Me, { component: "dl", children: [
2510
2509
  /* @__PURE__ */ a(y, { component: "dt", children: "Project" }),
2511
2510
  /* @__PURE__ */ a(y, { component: "dd", children: /* @__PURE__ */ a("a", { href: t == null ? void 0 : t.url, target: "_blank", children: t == null ? void 0 : t.name }) }),
2512
2511
  /* @__PURE__ */ a(y, { component: "dt", children: "Version" }),
2513
2512
  /* @__PURE__ */ a(y, { component: "dd", children: t == null ? void 0 : t.version }),
2514
2513
  /* @__PURE__ */ a(y, { component: "dt", children: "Built on" }),
2515
- /* @__PURE__ */ a(y, { component: "dd", children: /* @__PURE__ */ a(be, { date: t == null ? void 0 : t.builtOn, format: "locale" }) }),
2514
+ /* @__PURE__ */ a(y, { component: "dd", children: /* @__PURE__ */ a(ye, { date: t == null ? void 0 : t.builtOn, format: "locale" }) }),
2516
2515
  /* @__PURE__ */ a(y, { component: "dt", children: "Digest" }),
2517
2516
  /* @__PURE__ */ a(y, { component: "dd", children: t == null ? void 0 : t.digest })
2518
2517
  ] }) }),
2519
- /* @__PURE__ */ a(je, { style: { marginTop: "40px" }, component: He.h2, children: e.backendLabel }),
2520
- /* @__PURE__ */ a(ne, { isLoading: i === void 0, children: /* @__PURE__ */ f(Le, { component: "dl", children: [
2518
+ /* @__PURE__ */ a(He, { style: { marginTop: "40px" }, component: Le.h2, children: e.backendLabel }),
2519
+ /* @__PURE__ */ a(oe, { isLoading: i === void 0, children: /* @__PURE__ */ f(Me, { component: "dl", children: [
2521
2520
  /* @__PURE__ */ a(y, { component: "dt", children: "Name" }),
2522
2521
  /* @__PURE__ */ a(y, { component: "dd", children: (i == null ? void 0 : i.name) || "" }),
2523
2522
  /* @__PURE__ */ a(y, { component: "dt", children: "Description" }),
@@ -2525,13 +2524,13 @@ const Ns = async (e, t) => {
2525
2524
  /* @__PURE__ */ a(y, { component: "dt", children: "Version" }),
2526
2525
  /* @__PURE__ */ a(y, { component: "dd", children: (i == null ? void 0 : i.version) || "" }),
2527
2526
  /* @__PURE__ */ a(y, { component: "dt", children: "Built on" }),
2528
- /* @__PURE__ */ a(y, { component: "dd", children: /* @__PURE__ */ a(be, { date: i == null ? void 0 : i.builtOn, format: "locale" }) })
2527
+ /* @__PURE__ */ a(y, { component: "dd", children: /* @__PURE__ */ a(ye, { date: i == null ? void 0 : i.builtOn, format: "locale" }) })
2529
2528
  ] }) })
2530
2529
  ] })
2531
2530
  }
2532
2531
  );
2533
- }, ai = (e) => /* @__PURE__ */ f(
2534
- Ce,
2532
+ }, ci = (e) => /* @__PURE__ */ f(
2533
+ Re,
2535
2534
  {
2536
2535
  title: "Please Wait",
2537
2536
  variant: "small",
@@ -2542,12 +2541,12 @@ const Ns = async (e, t) => {
2542
2541
  "aria-label": "please-wait-modal",
2543
2542
  style: { marginTop: "-15px" },
2544
2543
  children: [
2545
- /* @__PURE__ */ a(Q, { size: "md", className: "spinner" }),
2544
+ /* @__PURE__ */ a(X, { size: "md", className: "spinner" }),
2546
2545
  /* @__PURE__ */ a("span", { className: "message", style: { fontSize: "15px", color: "#333", marginLeft: "10px" }, children: e.message })
2547
2546
  ]
2548
2547
  }
2549
- ), ci = (e) => /* @__PURE__ */ a(
2550
- Ce,
2548
+ ), li = (e) => /* @__PURE__ */ a(
2549
+ Re,
2551
2550
  {
2552
2551
  title: e.title,
2553
2552
  variant: "small",
@@ -2556,29 +2555,29 @@ const Ns = async (e, t) => {
2556
2555
  onClose: e.onClose,
2557
2556
  className: "progress pf-m-redhat-font",
2558
2557
  "aria-label": "progress-modal",
2559
- children: /* @__PURE__ */ a(yt, { title: e.message, value: e.progress })
2558
+ children: /* @__PURE__ */ a(kt, { title: e.message, value: e.progress })
2560
2559
  }
2561
2560
  );
2562
- function li() {
2563
- return /* @__PURE__ */ a(ee, { children: /* @__PURE__ */ a(
2564
- te,
2561
+ function di() {
2562
+ return /* @__PURE__ */ a(te, { children: /* @__PURE__ */ a(
2563
+ se,
2565
2564
  {
2566
2565
  titleText: "Loading",
2567
2566
  headingLevel: "h4",
2568
- icon: /* @__PURE__ */ a(Je, { icon: Q })
2567
+ icon: /* @__PURE__ */ a(Be, { icon: X })
2569
2568
  }
2570
2569
  ) });
2571
2570
  }
2572
- function di({
2571
+ function hi({
2573
2572
  itemCount: e,
2574
2573
  page: t,
2575
2574
  perPage: s,
2576
2575
  isCompact: i = !1,
2577
2576
  onChange: r,
2578
- variant: n = Tt.top
2577
+ variant: n = It.top
2579
2578
  }) {
2580
2579
  return /* @__PURE__ */ a(
2581
- kt,
2580
+ Tt,
2582
2581
  {
2583
2582
  itemCount: e,
2584
2583
  page: t,
@@ -2590,19 +2589,19 @@ function di({
2590
2589
  }
2591
2590
  );
2592
2591
  }
2593
- function Ds({ columns: e, rows: t, getTd: s = () => Re }) {
2592
+ function $s({ columns: e, rows: t, getTd: s = () => xe }) {
2594
2593
  const i = new Array(e).fill(0).map((n, c) => {
2595
2594
  const o = s(c);
2596
2595
  return /* @__PURE__ */ a(o, { children: /* @__PURE__ */ a(
2597
- It,
2596
+ Et,
2598
2597
  {
2599
2598
  screenreaderText: c === 0 ? "Loading data" : void 0
2600
2599
  }
2601
2600
  ) }, `cell_${c}`);
2602
- }), r = new Array(t).fill(0).map((n, c) => /* @__PURE__ */ a(se, { children: i }, `row_${c}`));
2603
- return /* @__PURE__ */ a(oe, { children: r });
2601
+ }), r = new Array(t).fill(0).map((n, c) => /* @__PURE__ */ a(ie, { children: i }, `row_${c}`));
2602
+ return /* @__PURE__ */ a(ae, { children: r });
2604
2603
  }
2605
- const hi = ({
2604
+ const gi = ({
2606
2605
  ariaLabel: e,
2607
2606
  minimumColumnWidth: t = 250,
2608
2607
  columns: s,
@@ -2627,13 +2626,13 @@ const hi = ({
2627
2626
  T && cancelAnimationFrame(T), p && (T = requestAnimationFrame(() => {
2628
2627
  H(p);
2629
2628
  }));
2630
- }, { ref: U } = $t({ onResize: w }), C = E >= 576, S = Oe(
2629
+ }, { ref: U } = Wt({ onResize: w }), C = E >= 576, S = Ne(
2631
2630
  (p) => C && p !== 0 && p !== s.length - 1,
2632
2631
  [s, C]
2633
- ), L = Ne(() => s.map((p, m) => {
2634
- const P = Z(
2635
- ({ children: D, ...$ }, ce) => /* @__PURE__ */ a(
2636
- ct,
2632
+ ), L = qe(() => s.map((p, m) => {
2633
+ const P = ee(
2634
+ ({ children: D, ...$ }, le) => /* @__PURE__ */ a(
2635
+ lt,
2637
2636
  {
2638
2637
  position: m,
2639
2638
  tableWidth: E,
@@ -2641,7 +2640,7 @@ const hi = ({
2641
2640
  canHide: S(m),
2642
2641
  sort: o ? o(p) : void 0,
2643
2642
  ...$,
2644
- ref: ce,
2643
+ ref: le,
2645
2644
  children: D
2646
2645
  }
2647
2646
  )
@@ -2659,11 +2658,11 @@ const hi = ({
2659
2658
  t,
2660
2659
  r,
2661
2660
  E
2662
- ]), J = Oe(
2661
+ ]), B = Ne(
2663
2662
  (p) => {
2664
- const m = Z(
2663
+ const m = ee(
2665
2664
  ({ children: P, ...D }, $) => /* @__PURE__ */ a(
2666
- ye,
2665
+ ke,
2667
2666
  {
2668
2667
  position: p,
2669
2668
  tableWidth: E,
@@ -2678,12 +2677,12 @@ const hi = ({
2678
2677
  return m.displayName = "ResponsiveTdCurried", m;
2679
2678
  },
2680
2679
  [S, t, E]
2681
- ), X = Ne(
2682
- () => s.map((p, m) => J(m)),
2683
- [s, J]
2680
+ ), Y = qe(
2681
+ () => s.map((p, m) => B(m)),
2682
+ [s, B]
2684
2683
  );
2685
2684
  return /* @__PURE__ */ f(
2686
- Lt,
2685
+ Mt,
2687
2686
  {
2688
2687
  "aria-label": e,
2689
2688
  gridBreakPoint: "",
@@ -2692,26 +2691,26 @@ const hi = ({
2692
2691
  ouiaId: R,
2693
2692
  variant: x,
2694
2693
  children: [
2695
- /* @__PURE__ */ a(Mt, { children: /* @__PURE__ */ a(se, { children: L }) }),
2696
- /* @__PURE__ */ f(Ft, { children: [
2694
+ /* @__PURE__ */ a(Ft, { children: /* @__PURE__ */ a(ie, { children: L }) }),
2695
+ /* @__PURE__ */ f(Dt, { children: [
2697
2696
  i === void 0 && /* @__PURE__ */ a(
2698
- Ds,
2697
+ $s,
2699
2698
  {
2700
2699
  columns: s.length,
2701
2700
  rows: h,
2702
- getTd: J
2701
+ getTd: B
2703
2702
  }
2704
2703
  ),
2705
2704
  i == null ? void 0 : i.map((p, m) => {
2706
- const P = l !== void 0 && l({ row: p, rowIndex: m }), D = d !== void 0 && d({ row: p, rowIndex: m }), $ = !P && g ? () => g({ row: p, rowIndex: m }) : void 0, ce = s.map((Ae, Pe) => n({
2707
- Td: X[Pe],
2708
- key: `row_${m}_cell_${Ae}`,
2709
- column: Ae,
2710
- colIndex: Pe,
2705
+ const P = l !== void 0 && l({ row: p, rowIndex: m }), D = d !== void 0 && d({ row: p, rowIndex: m }), $ = !P && g ? () => g({ row: p, rowIndex: m }) : void 0, le = s.map((Pe, Oe) => n({
2706
+ Td: Y[Oe],
2707
+ key: `row_${m}_cell_${Pe}`,
2708
+ column: Pe,
2709
+ colIndex: Oe,
2711
2710
  rowIndex: m,
2712
2711
  row: p
2713
- })), dt = !P && c && /* @__PURE__ */ a(
2714
- ye,
2712
+ })), ht = !P && c && /* @__PURE__ */ a(
2713
+ ke,
2715
2714
  {
2716
2715
  position: s.length,
2717
2716
  tableWidth: E,
@@ -2719,31 +2718,31 @@ const hi = ({
2719
2718
  canHide: !1,
2720
2719
  isActionCell: !0,
2721
2720
  "data-testid": v ? v({ row: p, rowIndex: m }) : `actions-for-row-${m}`,
2722
- children: c({ rowIndex: m, row: p, ActionsColumn: Dt })
2721
+ children: c({ rowIndex: m, row: p, ActionsColumn: $t })
2723
2722
  }
2724
2723
  );
2725
2724
  return /* @__PURE__ */ f(
2726
- lt,
2725
+ dt,
2727
2726
  {
2728
2727
  isDeleted: P,
2729
2728
  isSelected: D,
2730
2729
  onClick: $,
2731
2730
  rowOuiaId: b == null ? void 0 : b({ row: p, rowIndex: m }),
2732
2731
  children: [
2733
- ce,
2734
- dt
2732
+ le,
2733
+ ht
2735
2734
  ]
2736
2735
  },
2737
2736
  `row_${m}`
2738
2737
  );
2739
2738
  }),
2740
- (i == null ? void 0 : i.length) === 0 && /* @__PURE__ */ a(se, { children: /* @__PURE__ */ a(Re, { colSpan: s.length, children: k }) })
2739
+ (i == null ? void 0 : i.length) === 0 && /* @__PURE__ */ a(ie, { children: /* @__PURE__ */ a(xe, { colSpan: s.length, children: k }) })
2741
2740
  ] })
2742
2741
  ]
2743
2742
  }
2744
2743
  );
2745
- }, ct = Te(
2746
- Z((e, t) => {
2744
+ }, lt = Ie(
2745
+ ee((e, t) => {
2747
2746
  const {
2748
2747
  tableWidth: s,
2749
2748
  columnWidth: i,
@@ -2754,7 +2753,7 @@ const hi = ({
2754
2753
  ...l
2755
2754
  } = e, d = n && s < i * (r + 1) ? "pf-m-hidden" : "pf-m-visible";
2756
2755
  return /* @__PURE__ */ a(
2757
- Ht,
2756
+ Lt,
2758
2757
  {
2759
2758
  ref: t,
2760
2759
  className: `${d} ${c}`,
@@ -2764,9 +2763,9 @@ const hi = ({
2764
2763
  );
2765
2764
  })
2766
2765
  );
2767
- ct.displayName = "ResponsiveTh";
2768
- const ye = Te(
2769
- Z((e, t) => {
2766
+ lt.displayName = "ResponsiveTh";
2767
+ const ke = Ie(
2768
+ ee((e, t) => {
2770
2769
  const {
2771
2770
  tableWidth: s,
2772
2771
  columnWidth: i,
@@ -2777,7 +2776,7 @@ const ye = Te(
2777
2776
  ...l
2778
2777
  } = e, d = n && s < i * (r + 1) ? "pf-m-hidden" : "pf-m-visible";
2779
2778
  return /* @__PURE__ */ a(
2780
- Re,
2779
+ xe,
2781
2780
  {
2782
2781
  ref: t,
2783
2782
  className: `${d} ${c}`,
@@ -2787,10 +2786,10 @@ const ye = Te(
2787
2786
  );
2788
2787
  })
2789
2788
  );
2790
- ye.displayName = "ResponsiveTd";
2791
- const lt = Te(
2789
+ ke.displayName = "ResponsiveTd";
2790
+ const dt = Ie(
2792
2791
  ({ isDeleted: e, isSelected: t, onClick: s, children: i, rowOuiaId: r }) => /* @__PURE__ */ a(
2793
- se,
2792
+ ie,
2794
2793
  {
2795
2794
  onRowClick: (n) => {
2796
2795
  (n == null ? void 0 : n.target) instanceof HTMLElement && (["a", "button"].includes(n.target.tagName.toLowerCase()) || s && s());
@@ -2804,20 +2803,20 @@ const lt = Te(
2804
2803
  }
2805
2804
  )
2806
2805
  );
2807
- lt.displayName = "DeletableRow";
2808
- const $s = ({ label: e, onSearch: t }) => {
2806
+ dt.displayName = "DeletableRow";
2807
+ const Ws = ({ label: e, onSearch: t }) => {
2809
2808
  const s = (i, r, n) => {
2810
2809
  t(r);
2811
2810
  };
2812
2811
  return /* @__PURE__ */ a(
2813
- Et,
2812
+ Ct,
2814
2813
  {
2815
2814
  placeholder: `Filter by ${e}`,
2816
2815
  onSearch: s
2817
2816
  }
2818
2817
  );
2819
2818
  };
2820
- function Ke({
2819
+ function ze({
2821
2820
  options: e,
2822
2821
  value: t,
2823
2822
  onChange: s,
@@ -2825,16 +2824,16 @@ function Ke({
2825
2824
  }) {
2826
2825
  const [r, n] = I(!1);
2827
2826
  return /* @__PURE__ */ a(
2828
- Ie,
2827
+ Ee,
2829
2828
  {
2830
2829
  toggle: (o) => /* @__PURE__ */ a(
2831
- ae,
2830
+ ce,
2832
2831
  {
2833
2832
  ref: o,
2834
2833
  onClick: () => n((l) => !l),
2835
2834
  isExpanded: r,
2836
2835
  variant: "plain",
2837
- children: /* @__PURE__ */ a(Be, {})
2836
+ children: /* @__PURE__ */ a(Ve, {})
2838
2837
  }
2839
2838
  ),
2840
2839
  "aria-label": "table:select_filter",
@@ -2844,11 +2843,11 @@ function Ke({
2844
2843
  s(l), n(!1);
2845
2844
  },
2846
2845
  ouiaId: i,
2847
- children: /* @__PURE__ */ a(Ct, { children: e.map((o, l) => /* @__PURE__ */ a(Ee, { value: o, children: o }, l)) })
2846
+ children: /* @__PURE__ */ a(Rt, { children: e.map((o, l) => /* @__PURE__ */ a(Ce, { value: o, children: o }, l)) })
2848
2847
  }
2849
2848
  );
2850
2849
  }
2851
- function Ws({
2850
+ function Ks({
2852
2851
  label: e,
2853
2852
  chips: t,
2854
2853
  options: s,
@@ -2856,7 +2855,7 @@ function Ws({
2856
2855
  }) {
2857
2856
  const [r, n] = I(!1);
2858
2857
  return /* @__PURE__ */ a(
2859
- Ie,
2858
+ Ee,
2860
2859
  {
2861
2860
  "aria-label": e,
2862
2861
  onSelect: (c, o) => {
@@ -2865,7 +2864,7 @@ function Ws({
2865
2864
  selected: t,
2866
2865
  isOpen: r,
2867
2866
  toggle: (c) => /* @__PURE__ */ a(
2868
- ae,
2867
+ ce,
2869
2868
  {
2870
2869
  ref: c,
2871
2870
  onClick: () => n((o) => !o),
@@ -2876,16 +2875,16 @@ function Ws({
2876
2875
  children: `Filter by ${e}`
2877
2876
  }
2878
2877
  ),
2879
- children: Object.entries(s).map(([c, o]) => /* @__PURE__ */ a(Ee, { value: c, hasCheckbox: !0, children: o }, c))
2878
+ children: Object.entries(s).map(([c, o]) => /* @__PURE__ */ a(Ce, { value: c, hasCheckbox: !0, children: o }, c))
2880
2879
  }
2881
2880
  );
2882
2881
  }
2883
- function gi({ filters: e, breakpoint: t = "md" }) {
2882
+ function ui({ filters: e, breakpoint: t = "md" }) {
2884
2883
  const s = Object.keys(e), [i, r] = I(s[0]), n = (c, o) => {
2885
2884
  switch (o.type) {
2886
2885
  case "search":
2887
2886
  return /* @__PURE__ */ a(
2888
- $s,
2887
+ Ws,
2889
2888
  {
2890
2889
  onSearch: o.onSearch,
2891
2890
  label: c,
@@ -2895,7 +2894,7 @@ function gi({ filters: e, breakpoint: t = "md" }) {
2895
2894
  );
2896
2895
  case "checkbox":
2897
2896
  return /* @__PURE__ */ a(
2898
- Ws,
2897
+ Ks,
2899
2898
  {
2900
2899
  chips: o.chips,
2901
2900
  options: o.options,
@@ -2905,16 +2904,16 @@ function gi({ filters: e, breakpoint: t = "md" }) {
2905
2904
  );
2906
2905
  }
2907
2906
  };
2908
- return /* @__PURE__ */ f(oe, { children: [
2907
+ return /* @__PURE__ */ f(ae, { children: [
2909
2908
  /* @__PURE__ */ a(
2910
- Rt,
2909
+ xt,
2911
2910
  {
2912
2911
  variant: "search-filter",
2913
2912
  visibility: { default: "hidden", [t]: "visible" },
2914
2913
  "data-testid": "large-viewport-toolbar",
2915
- children: /* @__PURE__ */ f(xt, { children: [
2914
+ children: /* @__PURE__ */ f(Ut, { children: [
2916
2915
  s.length > 1 && /* @__PURE__ */ a(
2917
- Ke,
2916
+ ze,
2918
2917
  {
2919
2918
  options: s,
2920
2919
  value: i,
@@ -2927,14 +2926,14 @@ function gi({ filters: e, breakpoint: t = "md" }) {
2927
2926
  }
2928
2927
  ),
2929
2928
  /* @__PURE__ */ a(
2930
- Ut,
2929
+ At,
2931
2930
  {
2932
- toggleIcon: /* @__PURE__ */ a(Be, {}),
2931
+ toggleIcon: /* @__PURE__ */ a(Ve, {}),
2933
2932
  breakpoint: t,
2934
2933
  visibility: { default: "visible", [t]: "hidden" },
2935
- children: /* @__PURE__ */ f(At, { variant: "filter-group", children: [
2934
+ children: /* @__PURE__ */ f(Pt, { variant: "filter-group", children: [
2936
2935
  s.length > 1 && /* @__PURE__ */ a(
2937
- Ke,
2936
+ ze,
2938
2937
  {
2939
2938
  options: s,
2940
2939
  value: i,
@@ -2943,7 +2942,7 @@ function gi({ filters: e, breakpoint: t = "md" }) {
2943
2942
  }
2944
2943
  ),
2945
2944
  Object.entries(e).map(([c, o], l) => /* @__PURE__ */ a(
2946
- Pt,
2945
+ Ot,
2947
2946
  {
2948
2947
  chips: o.type === "checkbox" ? o.chips.map((d) => ({ key: d, node: o.options[d] })) : o.chips,
2949
2948
  deleteChip: (d, h) => o.onRemoveChip(typeof h == "string" ? h : h.key),
@@ -2960,33 +2959,33 @@ function gi({ filters: e, breakpoint: t = "md" }) {
2960
2959
  ] });
2961
2960
  }
2962
2961
  export {
2963
- oi as AppAboutModal,
2964
- ri as ApplicationAuth,
2965
- Wt as AuthConfigContext,
2966
- Fs as BasicAuthModal,
2967
- gi as ChipFilter,
2968
- be as DateTime,
2969
- lt as DeletableRow,
2970
- Ws as FilterCheckbox,
2971
- $s as FilterSearch,
2972
- Ke as FilterSelector,
2973
- Xs as FromNow,
2962
+ ai as AppAboutModal,
2963
+ ni as ApplicationAuth,
2964
+ Kt as AuthConfigContext,
2965
+ Ds as BasicAuthModal,
2966
+ ui as ChipFilter,
2967
+ ye as DateTime,
2968
+ dt as DeletableRow,
2969
+ Ks as FilterCheckbox,
2970
+ Ws as FilterSearch,
2971
+ ze as FilterSelector,
2972
+ Ys as FromNow,
2974
2973
  A as If,
2975
- ni as IfAuth,
2976
- Ys as IfNotEmpty,
2977
- ne as IfNotLoading,
2978
- Zs as ListWithToolbar,
2979
- li as Loading,
2980
- ei as ObjectDropdown,
2981
- ti as ObjectSelect,
2982
- di as Pagination,
2983
- ai as PleaseWaitModal,
2984
- ci as ProgressModal,
2985
- hi as ResponsiveTable,
2986
- ye as ResponsiveTd,
2987
- ct as ResponsiveTh,
2988
- Ds as TableSkeleton,
2989
- si as ToggleIcon,
2990
- ii as UrlUpload,
2991
- ot as useAuth
2974
+ oi as IfAuth,
2975
+ Zs as IfNotEmpty,
2976
+ oe as IfNotLoading,
2977
+ ei as ListWithToolbar,
2978
+ di as Loading,
2979
+ ti as ObjectDropdown,
2980
+ si as ObjectSelect,
2981
+ hi as Pagination,
2982
+ ci as PleaseWaitModal,
2983
+ li as ProgressModal,
2984
+ gi as ResponsiveTable,
2985
+ ke as ResponsiveTd,
2986
+ lt as ResponsiveTh,
2987
+ $s as TableSkeleton,
2988
+ ii as ToggleIcon,
2989
+ ri as UrlUpload,
2990
+ at as useAuth
2992
2991
  };