@carbon-labs/wc-global-header 0.91.0 → 0.92.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -39,7 +39,7 @@ const co = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, qe), K = (t,
39
39
  throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
40
40
  })(c) + t[r + 1], t[0]);
41
41
  return new Ys(e, t, qe);
42
- }, Pc = (t, o) => {
42
+ }, Ic = (t, o) => {
43
43
  if (je) t.adoptedStyleSheets = o.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
44
44
  else for (const e of o) {
45
45
  const s = document.createElement("style"), c = Qt.litNonce;
@@ -55,7 +55,7 @@ const co = (t) => new Ys(typeof t == "string" ? t : t + "", void 0, qe), K = (t,
55
55
  * Copyright 2017 Google LLC
56
56
  * SPDX-License-Identifier: BSD-3-Clause
57
57
  */
58
- const { is: Ic, defineProperty: Oc, getOwnPropertyDescriptor: Tc, getOwnPropertyNames: Mc, getOwnPropertySymbols: Nc, getPrototypeOf: Lc } = Object, Po = globalThis, is = Po.trustedTypes, Bc = is ? is.emptyScript : "", fe = Po.reactiveElementPolyfillSupport, Nt = (t, o) => t, oe = { toAttribute(t, o) {
58
+ const { is: Pc, defineProperty: Oc, getOwnPropertyDescriptor: Tc, getOwnPropertyNames: Mc, getOwnPropertySymbols: Nc, getPrototypeOf: Lc } = Object, Io = globalThis, is = Io.trustedTypes, Bc = is ? is.emptyScript : "", fe = Io.reactiveElementPolyfillSupport, Nt = (t, o) => t, oe = { toAttribute(t, o) {
59
59
  switch (o) {
60
60
  case Boolean:
61
61
  t = t ? Bc : null;
@@ -83,8 +83,8 @@ const { is: Ic, defineProperty: Oc, getOwnPropertyDescriptor: Tc, getOwnProperty
83
83
  }
84
84
  }
85
85
  return e;
86
- } }, Ue = (t, o) => !Ic(t, o), as = { attribute: !0, type: String, converter: oe, reflect: !1, useDefault: !1, hasChanged: Ue };
87
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Po.litPropertyMetadata ?? (Po.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
86
+ } }, Ue = (t, o) => !Pc(t, o), as = { attribute: !0, type: String, converter: oe, reflect: !1, useDefault: !1, hasChanged: Ue };
87
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Io.litPropertyMetadata ?? (Io.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
88
88
  let mt = class extends HTMLElement {
89
89
  static addInitializer(o) {
90
90
  this._$Ei(), (this.l ?? (this.l = [])).push(o);
@@ -169,7 +169,7 @@ let mt = class extends HTMLElement {
169
169
  }
170
170
  createRenderRoot() {
171
171
  const o = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
172
- return Pc(o, this.constructor.elementStyles), o;
172
+ return Ic(o, this.constructor.elementStyles), o;
173
173
  }
174
174
  connectedCallback() {
175
175
  var o;
@@ -288,7 +288,7 @@ let mt = class extends HTMLElement {
288
288
  firstUpdated(o) {
289
289
  }
290
290
  };
291
- mt.elementStyles = [], mt.shadowRootOptions = { mode: "open" }, mt[Nt("elementProperties")] = /* @__PURE__ */ new Map(), mt[Nt("finalized")] = /* @__PURE__ */ new Map(), fe == null || fe({ ReactiveElement: mt }), (Po.reactiveElementVersions ?? (Po.reactiveElementVersions = [])).push("2.1.2");
291
+ mt.elementStyles = [], mt.shadowRootOptions = { mode: "open" }, mt[Nt("elementProperties")] = /* @__PURE__ */ new Map(), mt[Nt("finalized")] = /* @__PURE__ */ new Map(), fe == null || fe({ ReactiveElement: mt }), (Io.reactiveElementVersions ?? (Io.reactiveElementVersions = [])).push("2.1.2");
292
292
  /**
293
293
  * @license
294
294
  * Copyright 2017 Google LLC
@@ -340,7 +340,7 @@ const Dc = (t, o, e) => (e.configurable = !0, e.enumerable = !0, Reflect.decorat
340
340
  * Copyright 2017 Google LLC
341
341
  * SPDX-License-Identifier: BSD-3-Clause
342
342
  */
343
- function Pt(t, o) {
343
+ function It(t, o) {
344
344
  return (e, s, c) => {
345
345
  const r = (n) => {
346
346
  var i;
@@ -884,17 +884,17 @@ let M = (qo = class extends Zt(fo(y)) {
884
884
  (e = super.updated) == null || e.call(this, o), this._checkBadgeWarning();
885
885
  }
886
886
  render() {
887
- const { autofocus: o, buttonClassName: e, dangerDescription: s, disabled: c, download: r, href: n, hreflang: i, kind: a, isExpressive: l, isSelected: u, linkRole: v, openTooltip: g, ping: h, rel: b, size: _, tabIndex: w, target: z, tooltipAlignment: E, tooltipPosition: S, tooltipText: P, type: A, _hasIcon: $, hasMainContent: B, _handleSlotChange: x } = this;
887
+ const { autofocus: o, buttonClassName: e, dangerDescription: s, disabled: c, download: r, href: n, hreflang: i, kind: a, isExpressive: l, isSelected: u, linkRole: v, openTooltip: g, ping: h, rel: b, size: _, tabIndex: w, target: z, tooltipAlignment: I, tooltipPosition: S, tooltipText: P, type: A, _hasIcon: C, hasMainContent: B, _handleSlotChange: x } = this;
888
888
  let L = {
889
889
  "cds-custom--btn": !0,
890
890
  [`cds-custom--btn--${a}`]: a,
891
891
  "cds-custom--btn--danger--tertiary": a === "danger-tertiary",
892
892
  "cds-custom--btn--danger--ghost": a === "danger-ghost",
893
893
  "cds-custom--btn--disabled": c,
894
- "cds-custom--btn--icon-only": $ && !B,
894
+ "cds-custom--btn--icon-only": C && !B,
895
895
  [`cds-custom--btn--${_}`]: _,
896
896
  [`cds-custom--layout--size-${_}`]: _,
897
- "cds-custom-ce--btn--has-icon": $,
897
+ "cds-custom-ce--btn--has-icon": C,
898
898
  "cds-custom--btn--expressive": l,
899
899
  "cds-custom--btn--selected": u && a === "ghost"
900
900
  };
@@ -933,12 +933,12 @@ let M = (qo = class extends Zt(fo(y)) {
933
933
  </a>
934
934
  ${m`<slot id="badge-indicator" name="badge-indicator"></slot>` ?? !c}
935
935
  `;
936
- const R = E && (S === "top" || S === "bottom") ? `-${E}` : "", j = Y({
936
+ const R = I && (S === "top" || S === "bottom") ? `-${I}` : "", j = Y({
937
937
  "cds-custom--popover-container": !0,
938
938
  "cds-custom--popover--caret": !0,
939
939
  "cds-custom--popover--high-contrast": !0,
940
940
  "cds-custom--tooltip": !0,
941
- "cds-custom--icon-tooltip": $,
941
+ "cds-custom--icon-tooltip": C,
942
942
  "cds-custom--popover--open": g,
943
943
  [`cds-custom--popover--${S}${R}`]: P
944
944
  });
@@ -1158,7 +1158,7 @@ let vo = (Uo = class extends sc {
1158
1158
  ...y.shadowRootOptions,
1159
1159
  delegatesFocus: !0
1160
1160
  }, Uo.styles = po, Uo);
1161
- p([Pt("button")], vo.prototype, "_buttonNode", void 0);
1161
+ p([It("button")], vo.prototype, "_buttonNode", void 0);
1162
1162
  p([d({
1163
1163
  type: Boolean,
1164
1164
  reflect: !0
@@ -1180,7 +1180,7 @@ const no = (t, o, e) => Array.prototype.forEach.call(t, o, e);
1180
1180
  * Copyright 2017 Google LLC
1181
1181
  * SPDX-License-Identifier: BSD-3-Clause
1182
1182
  */
1183
- class Pe extends We {
1183
+ class Ie extends We {
1184
1184
  constructor(o) {
1185
1185
  if (super(o), this.it = f, o.type !== ue.CHILD) throw Error(this.constructor.directiveName + "() can only be used in child bindings");
1186
1186
  }
@@ -1194,16 +1194,16 @@ class Pe extends We {
1194
1194
  return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
1195
1195
  }
1196
1196
  }
1197
- Pe.directiveName = "unsafeHTML", Pe.resultType = 1;
1197
+ Ie.directiveName = "unsafeHTML", Ie.resultType = 1;
1198
1198
  /**
1199
1199
  * @license
1200
1200
  * Copyright 2017 Google LLC
1201
1201
  * SPDX-License-Identifier: BSD-3-Clause
1202
1202
  */
1203
- class Ie extends Pe {
1203
+ class Pe extends Ie {
1204
1204
  }
1205
- Ie.directiveName = "unsafeSVG", Ie.resultType = 2;
1206
- const tr = Ze(Ie);
1205
+ Pe.directiveName = "unsafeSVG", Pe.resultType = 2;
1206
+ const tr = Ze(Pe);
1207
1207
  function fs(t, o) {
1208
1208
  var e = Object.keys(t);
1209
1209
  if (Object.getOwnPropertySymbols) {
@@ -1407,7 +1407,7 @@ let xo = (Xo = class extends Zt(fo(y)) {
1407
1407
  ...y.shadowRootOptions,
1408
1408
  delegatesFocus: !0
1409
1409
  }, Xo.styles = po, Xo);
1410
- p([Pt('[part="trigger"]')], xo.prototype, "_topMenuItem", void 0);
1410
+ p([It('[part="trigger"]')], xo.prototype, "_topMenuItem", void 0);
1411
1411
  p([q("keydown")], xo.prototype, "_handleKeydownTrigger", null);
1412
1412
  p([q("focusout")], xo.prototype, "_handleBlur", null);
1413
1413
  p([d({
@@ -1870,7 +1870,7 @@ let ko = (Go = class extends fo(y) {
1870
1870
  ...y.shadowRootOptions,
1871
1871
  delegatesFocus: !0
1872
1872
  }, Go.styles = it, Go);
1873
- p([Pt("#title-icon-container")], ko.prototype, "_titleIconContainerNode", void 0);
1873
+ p([It("#title-icon-container")], ko.prototype, "_titleIconContainerNode", void 0);
1874
1874
  p([d({
1875
1875
  type: Boolean,
1876
1876
  reflect: !0
@@ -1899,8 +1899,8 @@ var br = {
1899
1899
  }],
1900
1900
  name: "chevron--down",
1901
1901
  size: 20
1902
- }, Io;
1903
- let Mo = (Io = class extends fo(y) {
1902
+ }, Po;
1903
+ let Mo = (Po = class extends fo(y) {
1904
1904
  constructor(...o) {
1905
1905
  super(...o), this._hasIcon = !1, this.active = !1, this.expanded = !1, this.large = !1, this.forceCollapsed = !1, this.title = "";
1906
1906
  }
@@ -2006,11 +2006,11 @@ let Mo = (Io = class extends fo(y) {
2006
2006
  static get eventToggle() {
2007
2007
  return "cds-custom-side-nav-menu-toggled";
2008
2008
  }
2009
- }, Io.attribItemHasIcon = "parent-has-icon", Io.shadowRootOptions = {
2009
+ }, Po.attribItemHasIcon = "parent-has-icon", Po.shadowRootOptions = {
2010
2010
  ...y.shadowRootOptions,
2011
2011
  delegatesFocus: !0
2012
- }, Io.styles = it, Io);
2013
- p([Pt("#title-icon-container")], Mo.prototype, "_titleIconContainerNode", void 0);
2012
+ }, Po.styles = it, Po);
2013
+ p([It("#title-icon-container")], Mo.prototype, "_titleIconContainerNode", void 0);
2014
2014
  p([d({
2015
2015
  type: Boolean,
2016
2016
  reflect: !0
@@ -2168,7 +2168,7 @@ const gr = ["top", "right", "bottom", "left"], No = Math.min, Q = Math.max, ce =
2168
2168
  function yr(t, o, e) {
2169
2169
  return Q(t, No(o, e));
2170
2170
  }
2171
- function It(t, o) {
2171
+ function Pt(t, o) {
2172
2172
  return typeof t == "function" ? t(o) : t;
2173
2173
  }
2174
2174
  function rt(t) {
@@ -2324,12 +2324,12 @@ async function Ar(t, o) {
2324
2324
  elementContext: v = "floating",
2325
2325
  altBoundary: g = !1,
2326
2326
  padding: h = 0
2327
- } = It(o, t), b = ac(h), w = i[g ? v === "floating" ? "reference" : "floating" : v], z = ne(await r.getClippingRect({
2327
+ } = Pt(o, t), b = ac(h), w = i[g ? v === "floating" ? "reference" : "floating" : v], z = ne(await r.getClippingRect({
2328
2328
  element: (e = await (r.isElement == null ? void 0 : r.isElement(w))) == null || e ? w : w.contextElement || await (r.getDocumentElement == null ? void 0 : r.getDocumentElement(i.floating)),
2329
2329
  boundary: l,
2330
2330
  rootBoundary: u,
2331
2331
  strategy: a
2332
- })), E = v === "floating" ? {
2332
+ })), I = v === "floating" ? {
2333
2333
  x: s,
2334
2334
  y: c,
2335
2335
  width: n.floating.width,
@@ -2342,10 +2342,10 @@ async function Ar(t, o) {
2342
2342
  y: 1
2343
2343
  }, A = ne(r.convertOffsetParentRelativeRectToViewportRelativeRect ? await r.convertOffsetParentRelativeRectToViewportRelativeRect({
2344
2344
  elements: i,
2345
- rect: E,
2345
+ rect: I,
2346
2346
  offsetParent: S,
2347
2347
  strategy: a
2348
- }) : E);
2348
+ }) : I);
2349
2349
  return {
2350
2350
  top: (z.top - A.top + b.top) / P.y,
2351
2351
  bottom: (A.bottom - z.bottom + b.bottom) / P.y,
@@ -2353,7 +2353,7 @@ async function Ar(t, o) {
2353
2353
  right: (A.right - z.right + b.right) / P.x
2354
2354
  };
2355
2355
  }
2356
- const Er = 50, Pr = async (t, o, e) => {
2356
+ const Er = 50, Ir = async (t, o, e) => {
2357
2357
  const {
2358
2358
  placement: s = "bottom",
2359
2359
  strategy: c = "absolute",
@@ -2378,13 +2378,13 @@ const Er = 50, Pr = async (t, o, e) => {
2378
2378
  continue;
2379
2379
  const {
2380
2380
  name: z,
2381
- fn: E
2381
+ fn: I
2382
2382
  } = w, {
2383
2383
  x: S,
2384
2384
  y: P,
2385
2385
  data: A,
2386
- reset: $
2387
- } = await E({
2386
+ reset: C
2387
+ } = await I({
2388
2388
  x: u,
2389
2389
  y: v,
2390
2390
  initialPlacement: s,
@@ -2401,11 +2401,11 @@ const Er = 50, Pr = async (t, o, e) => {
2401
2401
  u = S ?? u, v = P ?? v, b[z] = {
2402
2402
  ...b[z],
2403
2403
  ...A
2404
- }, $ && h < Er && (h++, typeof $ == "object" && ($.placement && (g = $.placement), $.rects && (l = $.rects === !0 ? await n.getElementRects({
2404
+ }, C && h < Er && (h++, typeof C == "object" && (C.placement && (g = C.placement), C.rects && (l = C.rects === !0 ? await n.getElementRects({
2405
2405
  reference: t,
2406
2406
  floating: o,
2407
2407
  strategy: c
2408
- }) : $.rects), {
2408
+ }) : C.rects), {
2409
2409
  x: u,
2410
2410
  y: v
2411
2411
  } = Cs(l, g, a)), _ = -1);
@@ -2417,7 +2417,7 @@ const Er = 50, Pr = async (t, o, e) => {
2417
2417
  strategy: c,
2418
2418
  middlewareData: b
2419
2419
  };
2420
- }, Ir = (t) => ({
2420
+ }, Pr = (t) => ({
2421
2421
  name: "arrow",
2422
2422
  options: t,
2423
2423
  async fn(o) {
@@ -2432,16 +2432,16 @@ const Er = 50, Pr = async (t, o, e) => {
2432
2432
  } = o, {
2433
2433
  element: l,
2434
2434
  padding: u = 0
2435
- } = It(t, o) || {};
2435
+ } = Pt(t, o) || {};
2436
2436
  if (l == null)
2437
2437
  return {};
2438
2438
  const v = ac(u), g = {
2439
2439
  x: e,
2440
2440
  y: s
2441
- }, h = Ye(c), b = Ke(h), _ = await n.getDimensions(l), w = h === "y", z = w ? "top" : "left", E = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", P = r.reference[b] + r.reference[h] - g[h] - r.floating[b], A = g[h] - r.reference[h], $ = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l));
2442
- let B = $ ? $[S] : 0;
2443
- (!B || !await (n.isElement == null ? void 0 : n.isElement($))) && (B = i.floating[S] || r.floating[b]);
2444
- const x = P / 2 - A / 2, L = B / 2 - _[b] / 2 - 1, F = No(v[z], L), U = No(v[E], L), R = F, j = B - _[b] - U, D = B / 2 - _[b] / 2 + x, X = yr(R, D, j), oo = !a.arrow && Ot(c) != null && D !== X && r.reference[b] / 2 - (D < R ? F : U) - _[b] / 2 < 0, Z = oo ? D < R ? D - R : D - j : 0;
2441
+ }, h = Ye(c), b = Ke(h), _ = await n.getDimensions(l), w = h === "y", z = w ? "top" : "left", I = w ? "bottom" : "right", S = w ? "clientHeight" : "clientWidth", P = r.reference[b] + r.reference[h] - g[h] - r.floating[b], A = g[h] - r.reference[h], C = await (n.getOffsetParent == null ? void 0 : n.getOffsetParent(l));
2442
+ let B = C ? C[S] : 0;
2443
+ (!B || !await (n.isElement == null ? void 0 : n.isElement(C))) && (B = i.floating[S] || r.floating[b]);
2444
+ const x = P / 2 - A / 2, L = B / 2 - _[b] / 2 - 1, F = No(v[z], L), U = No(v[I], L), R = F, j = B - _[b] - U, D = B / 2 - _[b] / 2 + x, X = yr(R, D, j), oo = !a.arrow && Ot(c) != null && D !== X && r.reference[b] / 2 - (D < R ? F : U) - _[b] / 2 < 0, Z = oo ? D < R ? D - R : D - j : 0;
2445
2445
  return {
2446
2446
  [h]: g[h] + Z,
2447
2447
  data: {
@@ -2475,11 +2475,11 @@ const Er = 50, Pr = async (t, o, e) => {
2475
2475
  fallbackAxisSideDirection: b = "none",
2476
2476
  flipAlignment: _ = !0,
2477
2477
  ...w
2478
- } = It(t, o);
2478
+ } = Pt(t, o);
2479
2479
  if ((e = r.arrow) != null && e.alignmentOffset)
2480
2480
  return {};
2481
- const z = rt(c), E = Eo(i), S = rt(i) === i, P = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), A = g || (S || !_ ? [re(i)] : kr(i)), $ = b !== "none";
2482
- !g && $ && A.push(...Cr(i, _, b, P));
2481
+ const z = rt(c), I = Eo(i), S = rt(i) === i, P = await (a.isRTL == null ? void 0 : a.isRTL(l.floating)), A = g || (S || !_ ? [re(i)] : kr(i)), C = b !== "none";
2482
+ !g && C && A.push(...Cr(i, _, b, P));
2483
2483
  const B = [i, ...A], x = await a.detectOverflow(o, w), L = [];
2484
2484
  let F = ((s = r.flip) == null ? void 0 : s.overflows) || [];
2485
2485
  if (u && L.push(x[z]), v) {
@@ -2492,9 +2492,9 @@ const Er = 50, Pr = async (t, o, e) => {
2492
2492
  }], !L.every((D) => D <= 0)) {
2493
2493
  var U, R;
2494
2494
  const D = (((U = r.flip) == null ? void 0 : U.index) || 0) + 1, X = B[D];
2495
- if (X && (!(v === "alignment" ? E !== Eo(X) : !1) || // We leave the current main axis only if every placement on that axis
2495
+ if (X && (!(v === "alignment" ? I !== Eo(X) : !1) || // We leave the current main axis only if every placement on that axis
2496
2496
  // overflows the main axis.
2497
- F.every((G) => Eo(G.placement) === E ? G.overflows[0] > 0 : !0)))
2497
+ F.every((G) => Eo(G.placement) === I ? G.overflows[0] > 0 : !0)))
2498
2498
  return {
2499
2499
  data: {
2500
2500
  index: D,
@@ -2510,9 +2510,9 @@ const Er = 50, Pr = async (t, o, e) => {
2510
2510
  case "bestFit": {
2511
2511
  var j;
2512
2512
  const Z = (j = F.filter((G) => {
2513
- if ($) {
2513
+ if (C) {
2514
2514
  const lo = Eo(G.placement);
2515
- return lo === E || // Create a bias to the `y` side axis due to horizontal
2515
+ return lo === I || // Create a bias to the `y` side axis due to horizontal
2516
2516
  // reading directions favoring greater width.
2517
2517
  lo === "y";
2518
2518
  }
@@ -2558,7 +2558,7 @@ const Tr = function(t) {
2558
2558
  } = o, {
2559
2559
  strategy: c = "referenceHidden",
2560
2560
  ...r
2561
- } = It(t, o);
2561
+ } = Pt(t, o);
2562
2562
  switch (c) {
2563
2563
  case "referenceHidden": {
2564
2564
  const n = await s.detectOverflow(o, {
@@ -2595,7 +2595,7 @@ async function Nr(t, o) {
2595
2595
  placement: e,
2596
2596
  platform: s,
2597
2597
  elements: c
2598
- } = t, r = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), n = rt(e), i = Ot(e), a = Eo(e) === "y", l = Mr.has(n) ? -1 : 1, u = r && a ? -1 : 1, v = It(o, t);
2598
+ } = t, r = await (s.isRTL == null ? void 0 : s.isRTL(c.floating)), n = rt(e), i = Ot(e), a = Eo(e) === "y", l = Mr.has(n) ? -1 : 1, u = r && a ? -1 : 1, v = Pt(o, t);
2599
2599
  let {
2600
2600
  mainAxis: g,
2601
2601
  crossAxis: h,
@@ -2654,15 +2654,15 @@ const Lr = function(t) {
2654
2654
  apply: a = () => {
2655
2655
  },
2656
2656
  ...l
2657
- } = It(t, o), u = await n.detectOverflow(o, l), v = rt(c), g = Ot(c), h = Eo(c) === "y", {
2657
+ } = Pt(t, o), u = await n.detectOverflow(o, l), v = rt(c), g = Ot(c), h = Eo(c) === "y", {
2658
2658
  width: b,
2659
2659
  height: _
2660
2660
  } = r.floating;
2661
2661
  let w, z;
2662
2662
  v === "top" || v === "bottom" ? (w = v, z = g === (await (n.isRTL == null ? void 0 : n.isRTL(i.floating)) ? "start" : "end") ? "left" : "right") : (z = v, w = g === "end" ? "top" : "bottom");
2663
- const E = _ - u.top - u.bottom, S = b - u.left - u.right, P = No(_ - u[w], E), A = No(b - u[z], S), $ = !o.middlewareData.shift;
2663
+ const I = _ - u.top - u.bottom, S = b - u.left - u.right, P = No(_ - u[w], I), A = No(b - u[z], S), C = !o.middlewareData.shift;
2664
2664
  let B = P, x = A;
2665
- if ((e = o.middlewareData.shift) != null && e.enabled.x && (x = S), (s = o.middlewareData.shift) != null && s.enabled.y && (B = E), $ && !g) {
2665
+ if ((e = o.middlewareData.shift) != null && e.enabled.x && (x = S), (s = o.middlewareData.shift) != null && s.enabled.y && (B = I), C && !g) {
2666
2666
  const F = Q(u.left, 0), U = Q(u.right, 0), R = Q(u.top, 0), j = Q(u.bottom, 0);
2667
2667
  h ? x = b - 2 * (F !== 0 || U !== 0 ? F + U : Q(u.left, u.right)) : B = _ - 2 * (R !== 0 || j !== 0 ? R + j : Q(u.top, u.bottom));
2668
2668
  }
@@ -2844,7 +2844,7 @@ function nt(t, o, e, s) {
2844
2844
  const g = J(r), h = s && io(s) ? J(s) : s;
2845
2845
  let b = g, _ = Le(b);
2846
2846
  for (; _ && s && h !== b; ) {
2847
- const w = vt(_), z = _.getBoundingClientRect(), E = ao(_), S = z.left + (_.clientLeft + parseFloat(E.paddingLeft)) * w.x, P = z.top + (_.clientTop + parseFloat(E.paddingTop)) * w.y;
2847
+ const w = vt(_), z = _.getBoundingClientRect(), I = ao(_), S = z.left + (_.clientLeft + parseFloat(I.paddingLeft)) * w.x, P = z.top + (_.clientTop + parseFloat(I.paddingTop)) * w.y;
2848
2848
  a *= w.x, l *= w.y, u *= w.x, v *= w.y, a += S, l += P, b = J(_), _ = Le(b);
2849
2849
  }
2850
2850
  }
@@ -2907,7 +2907,7 @@ function Xr(t) {
2907
2907
  y: i
2908
2908
  };
2909
2909
  }
2910
- const Ps = 25;
2910
+ const Is = 25;
2911
2911
  function Zr(t, o) {
2912
2912
  const e = J(t), s = yo(t), c = e.visualViewport;
2913
2913
  let r = s.clientWidth, n = s.clientHeight, i = 0, a = 0;
@@ -2919,8 +2919,8 @@ function Zr(t, o) {
2919
2919
  const l = be(s);
2920
2920
  if (l <= 0) {
2921
2921
  const u = s.ownerDocument, v = u.body, g = getComputedStyle(v), h = u.compatMode === "CSS1Compat" && parseFloat(g.marginLeft) + parseFloat(g.marginRight) || 0, b = Math.abs(s.clientWidth - v.clientWidth - h);
2922
- b <= Ps && (r -= b);
2923
- } else l <= Ps && (r += l);
2922
+ b <= Is && (r -= b);
2923
+ } else l <= Is && (r += l);
2924
2924
  return {
2925
2925
  width: r,
2926
2926
  height: n,
@@ -2937,7 +2937,7 @@ function Wr(t, o) {
2937
2937
  y: l
2938
2938
  };
2939
2939
  }
2940
- function Is(t, o, e) {
2940
+ function Ps(t, o, e) {
2941
2941
  let s;
2942
2942
  if (o === "viewport")
2943
2943
  s = Zr(t, e);
@@ -2980,10 +2980,10 @@ function Yr(t) {
2980
2980
  rootBoundary: s,
2981
2981
  strategy: c
2982
2982
  } = t;
2983
- const n = [...e === "clippingAncestors" ? ve(o) ? [] : Kr(o, this._c) : [].concat(e), s], i = Is(o, n[0], c);
2983
+ const n = [...e === "clippingAncestors" ? ve(o) ? [] : Kr(o, this._c) : [].concat(e), s], i = Ps(o, n[0], c);
2984
2984
  let a = i.top, l = i.right, u = i.bottom, v = i.left;
2985
2985
  for (let g = 1; g < n.length; g++) {
2986
- const h = Is(o, n[g], c);
2986
+ const h = Ps(o, n[g], c);
2987
2987
  a = Q(h.top, a), l = No(h.right, l), u = No(h.bottom, u), v = Q(h.left, v);
2988
2988
  }
2989
2989
  return {
@@ -3108,8 +3108,8 @@ function en(t, o) {
3108
3108
  threshold: Q(0, No(1, a)) || 1
3109
3109
  };
3110
3110
  let P = !0;
3111
- function A($) {
3112
- const B = $[0].intersectionRatio;
3111
+ function A(C) {
3112
+ const B = C[0].intersectionRatio;
3113
3113
  if (B !== a) {
3114
3114
  if (!P)
3115
3115
  return n();
@@ -3149,8 +3149,8 @@ function sn(t, o, e, s) {
3149
3149
  const v = l && i ? en(l, e) : null;
3150
3150
  let g = -1, h = null;
3151
3151
  n && (h = new ResizeObserver((z) => {
3152
- let [E] = z;
3153
- E && E.target === l && h && o && (h.unobserve(o), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
3152
+ let [I] = z;
3153
+ I && I.target === l && h && o && (h.unobserve(o), cancelAnimationFrame(g), g = requestAnimationFrame(() => {
3154
3154
  var S;
3155
3155
  (S = h) == null || S.observe(o);
3156
3156
  })), e();
@@ -3163,12 +3163,12 @@ function sn(t, o, e, s) {
3163
3163
  }
3164
3164
  return e(), () => {
3165
3165
  var z;
3166
- u.forEach((E) => {
3167
- c && E.removeEventListener("scroll", e), r && E.removeEventListener("resize", e);
3166
+ u.forEach((I) => {
3167
+ c && I.removeEventListener("scroll", e), r && I.removeEventListener("resize", e);
3168
3168
  }), v == null || v(), (z = h) == null || z.disconnect(), h = null, a && cancelAnimationFrame(b);
3169
3169
  };
3170
3170
  }
3171
- const cn = Lr, rn = Or, Ts = Br, nn = Tr, an = Ir, dn = (t, o, e) => {
3171
+ const cn = Lr, rn = Or, Ts = Br, nn = Tr, an = Pr, dn = (t, o, e) => {
3172
3172
  const s = /* @__PURE__ */ new Map(), c = {
3173
3173
  platform: tn,
3174
3174
  ...e
@@ -3176,7 +3176,7 @@ const cn = Lr, rn = Or, Ts = Br, nn = Tr, an = Ir, dn = (t, o, e) => {
3176
3176
  ...c.platform,
3177
3177
  _c: s
3178
3178
  };
3179
- return Pr(t, o, {
3179
+ return Ir(t, o, {
3180
3180
  ...c,
3181
3181
  platform: r
3182
3182
  });
@@ -3231,9 +3231,9 @@ var pn = class {
3231
3231
  break;
3232
3232
  }
3233
3233
  const _ = getComputedStyle(h), z = u ? 0 : ((A) => {
3234
- const $ = parseFloat(A);
3235
- return A.trim().endsWith("rem") ? $ * 16 : $;
3236
- })(_.getPropertyValue("--cds-popover-offset").trim()) ?? 10, E = [
3234
+ const C = parseFloat(A);
3235
+ return A.trim().endsWith("rem") ? C * 16 : C;
3236
+ })(_.getPropertyValue("--cds-popover-offset").trim()) ?? 10, I = [
3237
3237
  cn(u ? 0 : {
3238
3238
  alignmentAxis: a,
3239
3239
  mainAxis: e ? z : 4
@@ -3280,8 +3280,8 @@ var pn = class {
3280
3280
  fallbackAxisSideDirection: "start",
3281
3281
  boundary: l
3282
3282
  }),
3283
- ...n && (b === "bottom" || b === "top") ? [Ts({ apply({ rects: A, elements: $ }) {
3284
- $.floating.style.width = `${A.reference.width}px`;
3283
+ ...n && (b === "bottom" || b === "top") ? [Ts({ apply({ rects: A, elements: C }) {
3284
+ C.floating.style.width = `${A.reference.width}px`;
3285
3285
  } })] : [Ts({ apply({ elements: A }) {
3286
3286
  A.floating.style.removeProperty("width");
3287
3287
  } })],
@@ -3292,12 +3292,12 @@ var pn = class {
3292
3292
  nn()
3293
3293
  ];
3294
3294
  if (i) {
3295
- const { x: A, y: $, placement: B, middlewareData: x, strategy: L } = await dn(s, h, {
3295
+ const { x: A, y: C, placement: B, middlewareData: x, strategy: L } = await dn(s, h, {
3296
3296
  strategy: "fixed",
3297
- middleware: E,
3297
+ middleware: I,
3298
3298
  placement: b
3299
3299
  });
3300
- if (h.setAttribute("align", B), h.style.left = `${A}px`, h.style.top = `${$}px`, h.style.position = `${L}`, h.style.visibility = (S = x.hide) != null && S.referenceHidden ? "hidden" : "visible", t) {
3300
+ if (h.setAttribute("align", B), h.style.left = `${A}px`, h.style.top = `${C}px`, h.style.position = `${L}`, h.style.visibility = (S = x.hide) != null && S.referenceHidden ? "hidden" : "visible", t) {
3301
3301
  const { x: F, y: U } = x.arrow, R = {
3302
3302
  top: "bottom",
3303
3303
  right: "left",
@@ -3501,8 +3501,8 @@ let W = (tt = class extends Zt(y) {
3501
3501
  return "cds-custom-popover-closed";
3502
3502
  }
3503
3503
  }, Jt = tt, tt.styles = gc, tt);
3504
- p([Pt("slot")], W.prototype, "_triggerSlotNode", void 0);
3505
- p([Pt('slot[name="content"]')], W.prototype, "_contentSlotNode", void 0);
3504
+ p([It("slot")], W.prototype, "_triggerSlotNode", void 0);
3505
+ p([It('slot[name="content"]')], W.prototype, "_contentSlotNode", void 0);
3506
3506
  p([d({
3507
3507
  reflect: !0,
3508
3508
  type: String
@@ -3780,7 +3780,7 @@ var An = {
3780
3780
  }],
3781
3781
  name: "api",
3782
3782
  size: 16
3783
- }, Pn = {
3783
+ }, In = {
3784
3784
  elem: "svg",
3785
3785
  attrs: {
3786
3786
  xmlns: "http://www.w3.org/2000/svg",
@@ -3795,7 +3795,7 @@ var An = {
3795
3795
  }],
3796
3796
  name: "app-connectivity",
3797
3797
  size: 20
3798
- }, In = {
3798
+ }, Pn = {
3799
3799
  elem: "svg",
3800
3800
  attrs: {
3801
3801
  xmlns: "http://www.w3.org/2000/svg",
@@ -4515,8 +4515,8 @@ const ii = "https://ibmassistme-dev.zll1vg8lrcq.us-south.codeengine.appdomain.cl
4515
4515
  const s = `${t}${o}`, n = {
4516
4516
  AiLaunch20: An,
4517
4517
  Api16: En,
4518
- AppConnectivity20: Pn,
4519
- ArrowRight16: In,
4518
+ AppConnectivity20: In,
4519
+ ArrowRight16: Pn,
4520
4520
  ChartVennDiagram20: On,
4521
4521
  Checkmark16: Tn,
4522
4522
  CloudServices20: Mn,
@@ -4607,7 +4607,7 @@ let eo = class extends y {
4607
4607
  };
4608
4608
  }
4609
4609
  render() {
4610
- var e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z, E, S, P, A, $, B;
4610
+ var e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z, I, S, P, A, C, B;
4611
4611
  const o = "title-icon";
4612
4612
  return typeof this.isCollapsible > "u" || this.isCollapsible ? this.isSideNavMenuItems ? m`
4613
4613
  <cds-custom-side-nav-menu
@@ -4689,7 +4689,7 @@ let eo = class extends y {
4689
4689
  <cds-custom-side-nav-link
4690
4690
  role="link"
4691
4691
  href="${(z = this.link) == null ? void 0 : z.href}"
4692
- @click="${(E = this.link) == null ? void 0 : E.onClick}"
4692
+ @click="${(I = this.link) == null ? void 0 : I.onClick}"
4693
4693
  title="${(S = this.link) == null ? void 0 : S.label}"
4694
4694
  class="${mo({
4695
4695
  [`${O}--side-nav__link--current`]: this.isActive
@@ -4697,7 +4697,7 @@ let eo = class extends y {
4697
4697
  @mouseleave="${() => this._setIsHoveringOnSideNavItem(!1)}"
4698
4698
  @mouseenter="${() => this._setIsHoveringOnSideNavItem(!0)}"
4699
4699
  large="${!this.isHybridIpaas}">
4700
- ${(P = this.link) != null && P.iconName ? N((A = this.link) == null ? void 0 : A.iconName, 16, o) : ($ = this.link) == null ? void 0 : $.label}
4700
+ ${(P = this.link) != null && P.iconName ? N((A = this.link) == null ? void 0 : A.iconName, 16, o) : (C = this.link) == null ? void 0 : C.label}
4701
4701
  </cds-custom-side-nav-link>
4702
4702
  <cds-custom-popover-content
4703
4703
  >${(B = this.link) == null ? void 0 : B.label}</cds-custom-popover-content
@@ -5203,7 +5203,7 @@ var Ai = Object.defineProperty, Ei = Object.getOwnPropertyDescriptor, os = (t, o
5203
5203
  (n = t[r]) && (c = (s ? n(o, e, c) : n(c)) || c);
5204
5204
  return s && c && Ai(o, e, c), c;
5205
5205
  };
5206
- const { stablePrefix: Pi } = ro;
5206
+ const { stablePrefix: Ii } = ro;
5207
5207
  let jt = class extends y {
5208
5208
  constructor() {
5209
5209
  super(), this.open = !1, this.trialConfig = {}, this.handleOutsideClick = this.handleOutsideClick.bind(this);
@@ -5245,9 +5245,9 @@ os([
5245
5245
  d({ type: Object })
5246
5246
  ], jt.prototype, "trialConfig", 2);
5247
5247
  jt = os([
5248
- so(`${Pi}-global-header-trial-popover`)
5248
+ so(`${Ii}-global-header-trial-popover`)
5249
5249
  ], jt);
5250
- const Ii = `/**
5250
+ const Pi = `/**
5251
5251
  * @license
5252
5252
  *
5253
5253
  * Copyright IBM Corp. 2025
@@ -5295,7 +5295,7 @@ let zo = class extends y {
5295
5295
  }
5296
5296
  };
5297
5297
  zo.styles = K`
5298
- ${co(Ii)}
5298
+ ${co(Pi)}
5299
5299
  `;
5300
5300
  at([
5301
5301
  d({ type: String })
@@ -6544,7 +6544,7 @@ let Co = class extends y {
6544
6544
  }), Ws(this.headerProps));
6545
6545
  }
6546
6546
  render() {
6547
- var t, o, e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z, E, S, P, A, $, B, x, L, F, U;
6547
+ var t, o, e, s, c, r, n, i, a, l, u, v, g, h, b, _, w, z, I, S, P, A, C, B, x, L, F, U;
6548
6548
  return m`
6549
6549
  <cds-custom-header
6550
6550
  class="${O}__header"
@@ -6612,7 +6612,7 @@ let Co = class extends y {
6612
6612
 
6613
6613
  <!-- sideNav link render -->
6614
6614
  ${this.headerProps.sideNav.links && this.headerProps.sideNav.links.length > 0 ? m`
6615
- ${(S = (E = this.headerProps.sideNav) == null ? void 0 : E.links) == null ? void 0 : S.map((R) => {
6615
+ ${(S = (I = this.headerProps.sideNav) == null ? void 0 : I.links) == null ? void 0 : S.map((R) => {
6616
6616
  var j, D, X;
6617
6617
  return m`
6618
6618
  <clabs-global-header-side-nav-item
@@ -6635,7 +6635,7 @@ let Co = class extends y {
6635
6635
  aria-label=${((A = (P = this.headerProps) == null ? void 0 : P.sideNavPropsV2) == null ? void 0 : A.buttonLabel) ?? "Side navigation"}
6636
6636
  collapse-mode="rail"
6637
6637
  ?expanded="${typeof this.headerProps.sideNavPropsV2.isExpandable < "u" && this.headerProps.sideNavPropsV2.isExpandable ? this.isMenuOpen : !1}"
6638
- ?is-not-persistent="${!(typeof ((B = ($ = this.headerProps) == null ? void 0 : $.sideNavPropsV2) == null ? void 0 : B.isCollapsible) < "u" && !((L = (x = this.headerProps) == null ? void 0 : x.sideNav) != null && L.isCollapsible))}"
6638
+ ?is-not-persistent="${!(typeof ((B = (C = this.headerProps) == null ? void 0 : C.sideNavPropsV2) == null ? void 0 : B.isCollapsible) < "u" && !((L = (x = this.headerProps) == null ? void 0 : x.sideNav) != null && L.isCollapsible))}"
6639
6639
  class="
6640
6640
  ${mo({
6641
6641
  [`${O}--rail-sidePanel`]: typeof this.headerProps.sideNavPropsV2.isCollapsible < "u" && !this.headerProps.sideNavPropsV2.isCollapsible
@@ -6703,7 +6703,7 @@ const da = `.cds--layout--size-xs{--cds-layout-size-height-context: var(--cds-la
6703
6703
  */
6704
6704
  class pa {
6705
6705
  constructor(o) {
6706
- this.refreshIntervalId = null, this.config = o, this.tokenRefreshInterval = o.tokenRefreshInterval || 25, this.idleTimeoutInterval = o.idleTimeoutInterval || 28, this.basePath = o.basePath, this.activityEvents = [
6706
+ this.refreshIntervalId = null, this.sessionStatusIntervalId = null, this.isLoggingOut = !1, this.config = o, this.tokenRefreshInterval = o.tokenRefreshInterval || 25, this.sessionStatusInterval = o.sessionStatusInterval || 10, this.idleTimeoutInterval = o.idleTimeoutInterval || 28, this.basePath = o.basePath, this.activityEvents = [
6707
6707
  "mousedown",
6708
6708
  "mousemove",
6709
6709
  "keypress",
@@ -6711,7 +6711,7 @@ class pa {
6711
6711
  "touchstart",
6712
6712
  "click",
6713
6713
  "focus"
6714
- ], this.isIdle = !1, this.idleTimeout = void 0, this.boundSetActive = () => this.setActive(), this.softLogoutUrl = o.softLogoutUrl, this.softLogoutCallback = o.softLogoutCallback;
6714
+ ], this.isIdle = !1, this.idleTimeout = void 0, this.boundSetActive = () => this.setActive(), this.logoutUrl = o.logoutUrl, this.logoutCallback = o.logoutCallback;
6715
6715
  }
6716
6716
  startRefreshSchedule() {
6717
6717
  this.refreshIntervalId = window.setInterval(
@@ -6734,7 +6734,7 @@ class pa {
6734
6734
  method: "GET",
6735
6735
  credentials: "same-origin"
6736
6736
  });
6737
- e.ok ? console.log("Solis token refresh successful") : e.status === 429 ? console.log("Solis token refresh skipped (too recent)") : e.status === 401 || e.status === 403 ? (console.error("Solis token refresh unauthorized - triggering logout"), await this.performSoftLogout()) : console.error("Solis token refresh failed:", e.status);
6737
+ e.ok ? console.log("Solis token refresh successful") : e.status === 429 ? console.log("Solis token refresh skipped (too recent)") : e.status === 401 || e.status === 403 ? (console.error("Solis token refresh unauthorized - triggering logout"), await this.performLogout()) : console.error("Solis token refresh failed:", e.status);
6738
6738
  } catch (e) {
6739
6739
  console.error("Solis token refresh error:", e.message);
6740
6740
  }
@@ -6761,7 +6761,10 @@ class pa {
6761
6761
  );
6762
6762
  }
6763
6763
  async setIdle() {
6764
- this.isIdle = !0, await this.checkSessionStatus() || await this.performSoftLogout();
6764
+ if (this.isIdle = !0, !await this.checkSessionStatus()) {
6765
+ await this.performLogout();
6766
+ return;
6767
+ }
6765
6768
  }
6766
6769
  isTabIdle() {
6767
6770
  return this.isIdle;
@@ -6777,8 +6780,10 @@ class pa {
6777
6780
  return console.error("Solis session status unknown:", e.message), !1;
6778
6781
  }
6779
6782
  }
6780
- async performSoftLogout() {
6781
- this.stopRefreshSchedule(), this.unregisterActivityListeners();
6783
+ async performLogout() {
6784
+ if (this.isLoggingOut)
6785
+ return;
6786
+ this.isLoggingOut = !0, this.stopRefreshSchedule(), this.stopSessionStatusPolling(), this.unregisterActivityListeners();
6782
6787
  const o = this.basePath ? this.basePath + "/v1/solis/session/logout" : "/v1/solis/session/logout";
6783
6788
  try {
6784
6789
  const e = await fetch(o, {
@@ -6789,29 +6794,51 @@ class pa {
6789
6794
  } catch (e) {
6790
6795
  console.error("Solis session logout error:", e.message);
6791
6796
  }
6792
- if (this.softLogoutCallback)
6797
+ if (this.logoutCallback)
6793
6798
  try {
6794
- await this.softLogoutCallback();
6799
+ await this.logoutCallback();
6795
6800
  } catch (e) {
6796
- console.error("Soft logout failed with error: ", e.message);
6801
+ console.error("Logout failed with error: ", e.message);
6797
6802
  }
6798
6803
  this.redirect(
6799
- this.softLogoutUrl ?? (this.basePath ? `${this.basePath}/logout` : "/logout")
6804
+ this.logoutUrl ?? (this.basePath ? `${this.basePath}/logout` : "/logout")
6800
6805
  );
6801
6806
  }
6807
+ startSessionStatusPolling() {
6808
+ const o = async () => {
6809
+ if (!await this.checkSessionStatus()) {
6810
+ await this.performLogout();
6811
+ return;
6812
+ }
6813
+ this.sessionStatusIntervalId = window.setTimeout(
6814
+ o,
6815
+ this.sessionStatusInterval * 1e3
6816
+ );
6817
+ };
6818
+ this.sessionStatusIntervalId = window.setTimeout(
6819
+ o,
6820
+ this.sessionStatusInterval * 1e3
6821
+ );
6822
+ }
6823
+ stopSessionStatusPolling() {
6824
+ this.sessionStatusIntervalId && (clearTimeout(this.sessionStatusIntervalId), this.sessionStatusIntervalId = null);
6825
+ }
6826
+ isPollingRunning() {
6827
+ return this.sessionStatusIntervalId !== null;
6828
+ }
6802
6829
  redirect(o) {
6803
6830
  window.location.href = o;
6804
6831
  }
6805
6832
  }
6806
- var la = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, I = (t, o, e, s) => {
6833
+ var la = Object.defineProperty, ua = Object.getOwnPropertyDescriptor, E = (t, o, e, s) => {
6807
6834
  for (var c = s > 1 ? void 0 : s ? ua(o, e) : o, r = t.length - 1, n; r >= 0; r--)
6808
6835
  (n = t[r]) && (c = (s ? n(o, e, c) : n(c)) || c);
6809
6836
  return s && c && la(o, e, c), c;
6810
6837
  };
6811
6838
  const { stablePrefix: ma } = ro;
6812
- let C = class extends y {
6839
+ let $ = class extends y {
6813
6840
  constructor() {
6814
- super(), this.productName = null, this.productKey = "", this.fetchHeaders = {}, this.solisSidekickEnabled = !1, this.solisSwitcherEnabled = !1, this.solisEnvironment = "local", this.solisDevMode = !1, this.basePath = "", this.displayName = "", this.userEmail = "", this.productVersion = null, this.assistMeKey = "", this.aiCallbackEvent = "", this.logoutCallbackEvent = "", this.notificationOpenCallbackEvent = "", this.searchCallbackEvent = "", this.searchSubmitCallbackEvent = "", this.hasNewNotifications = !1, this.searchConfigs = null, this.capabilityProfileFooterLinks = [], this.capabilityGlobalActions = [], this.addCookiePreferences = !1, this.forceBackendProxy = !1, this.solisSessionManagerEnabled = !1, this.solisSessionRefreshInterval = 25, this.solisIdleTimeoutInterval = 28, this.softLogoutUrl = "", this.headerOptions = {
6841
+ super(), this.productName = null, this.productKey = "", this.fetchHeaders = {}, this.solisSidekickEnabled = !1, this.solisSwitcherEnabled = !1, this.solisEnvironment = "local", this.solisDevMode = !1, this.basePath = "", this.displayName = "", this.userEmail = "", this.productVersion = null, this.assistMeKey = "", this.aiCallbackEvent = "", this.logoutCallbackEvent = "", this.notificationOpenCallbackEvent = "", this.searchCallbackEvent = "", this.searchSubmitCallbackEvent = "", this.hasNewNotifications = !1, this.searchConfigs = null, this.capabilityProfileFooterLinks = [], this.capabilityGlobalActions = [], this.addCookiePreferences = !1, this.forceBackendProxy = !1, this.solisSessionManagerEnabled = !1, this.solisSessionRefreshInterval = 25, this.solisIdleTimeoutInterval = 28, this.solisSessionStatusInterval = 10, this.logoutUrl = "", this.headerOptions = {
6815
6842
  ...yn,
6816
6843
  brand: {
6817
6844
  company: "IBM",
@@ -6831,7 +6858,7 @@ let C = class extends y {
6831
6858
  super.connectedCallback(), document.addEventListener(Ls, this._customEventListener);
6832
6859
  }
6833
6860
  disconnectedCallback() {
6834
- super.disconnectedCallback(), this.sessionManager && (this.sessionManager.stopRefreshSchedule(), this.sessionManager.unregisterActivityListeners(), this.sessionManager = null), document.removeEventListener(Ls, this._customEventListener);
6861
+ super.disconnectedCallback(), this.sessionManager && (this.sessionManager.stopRefreshSchedule(), this.sessionManager.stopSessionStatusPolling(), this.sessionManager.unregisterActivityListeners(), this.sessionManager = null), document.removeEventListener(Ls, this._customEventListener);
6835
6862
  }
6836
6863
  // reload the header options whenever the custom event is received
6837
6864
  _customEventListener(t) {
@@ -6880,10 +6907,11 @@ let C = class extends y {
6880
6907
  }), this.sessionManager = new pa({
6881
6908
  tokenRefreshInterval: this.solisSessionRefreshInterval,
6882
6909
  idleTimeoutInterval: this.solisIdleTimeoutInterval,
6910
+ sessionStatusInterval: this.solisSessionStatusInterval,
6883
6911
  basePath: this.basePath,
6884
- softLogoutCallback: t,
6885
- softLogoutUrl: this.softLogoutUrl || void 0
6886
- }), this.sessionManager.startRefreshSchedule(), this.sessionManager.registerActivityListeners();
6912
+ logoutCallback: t,
6913
+ logoutUrl: this.logoutUrl || void 0
6914
+ }), this.sessionManager.startRefreshSchedule(), this.sessionManager.startSessionStatusPolling(), this.sessionManager.registerActivityListeners();
6887
6915
  }
6888
6916
  }
6889
6917
  initCookiePrefsLink() {
@@ -6907,7 +6935,10 @@ let C = class extends y {
6907
6935
  carbonIcon: "Logout",
6908
6936
  arialLabel: "Logout"
6909
6937
  };
6910
- return this.logoutCallback ? t.onClickHandler = this.logoutCallback : this.logoutCallbackEvent ? t.onClickHandler = () => {
6938
+ return this.solisSessionManagerEnabled ? t.onClickHandler = () => {
6939
+ var o;
6940
+ return (o = this.sessionManager) == null ? void 0 : o.performLogout();
6941
+ } : this.logoutCallback ? t.onClickHandler = this.logoutCallback : this.logoutCallbackEvent ? t.onClickHandler = () => {
6911
6942
  const o = new CustomEvent(this.logoutCallbackEvent, {
6912
6943
  bubbles: !0,
6913
6944
  cancelable: !0
@@ -7044,125 +7075,128 @@ let C = class extends y {
7044
7075
  </div>`;
7045
7076
  }
7046
7077
  };
7047
- C.styles = K`
7078
+ $.styles = K`
7048
7079
  ${co(da)}
7049
7080
  `;
7050
- I([
7081
+ E([
7051
7082
  d({ type: String })
7052
- ], C.prototype, "productName", 2);
7053
- I([
7083
+ ], $.prototype, "productName", 2);
7084
+ E([
7054
7085
  d({ type: String })
7055
- ], C.prototype, "productKey", 2);
7056
- I([
7086
+ ], $.prototype, "productKey", 2);
7087
+ E([
7057
7088
  d({ type: Object })
7058
- ], C.prototype, "fetchHeaders", 2);
7059
- I([
7089
+ ], $.prototype, "fetchHeaders", 2);
7090
+ E([
7060
7091
  d({ type: Boolean })
7061
- ], C.prototype, "solisSidekickEnabled", 2);
7062
- I([
7092
+ ], $.prototype, "solisSidekickEnabled", 2);
7093
+ E([
7063
7094
  d({ type: Boolean })
7064
- ], C.prototype, "solisSwitcherEnabled", 2);
7065
- I([
7095
+ ], $.prototype, "solisSwitcherEnabled", 2);
7096
+ E([
7066
7097
  d({ type: String })
7067
- ], C.prototype, "solisEnvironment", 2);
7068
- I([
7098
+ ], $.prototype, "solisEnvironment", 2);
7099
+ E([
7069
7100
  d({ type: Boolean })
7070
- ], C.prototype, "solisDevMode", 2);
7071
- I([
7101
+ ], $.prototype, "solisDevMode", 2);
7102
+ E([
7072
7103
  d({ type: String })
7073
- ], C.prototype, "basePath", 2);
7074
- I([
7104
+ ], $.prototype, "basePath", 2);
7105
+ E([
7075
7106
  d({ type: String })
7076
- ], C.prototype, "displayName", 2);
7077
- I([
7107
+ ], $.prototype, "displayName", 2);
7108
+ E([
7078
7109
  d({ type: String })
7079
- ], C.prototype, "userEmail", 2);
7080
- I([
7110
+ ], $.prototype, "userEmail", 2);
7111
+ E([
7081
7112
  d({ type: String })
7082
- ], C.prototype, "productVersion", 2);
7083
- I([
7113
+ ], $.prototype, "productVersion", 2);
7114
+ E([
7084
7115
  d({ type: String })
7085
- ], C.prototype, "assistMeKey", 2);
7086
- I([
7116
+ ], $.prototype, "assistMeKey", 2);
7117
+ E([
7087
7118
  d({ type: Function })
7088
- ], C.prototype, "aiCallback", 2);
7089
- I([
7119
+ ], $.prototype, "aiCallback", 2);
7120
+ E([
7090
7121
  d({ type: String })
7091
- ], C.prototype, "aiCallbackEvent", 2);
7092
- I([
7122
+ ], $.prototype, "aiCallbackEvent", 2);
7123
+ E([
7093
7124
  d({ type: Function })
7094
- ], C.prototype, "logoutCallback", 2);
7095
- I([
7125
+ ], $.prototype, "logoutCallback", 2);
7126
+ E([
7096
7127
  d({ type: String })
7097
- ], C.prototype, "logoutCallbackEvent", 2);
7098
- I([
7128
+ ], $.prototype, "logoutCallbackEvent", 2);
7129
+ E([
7099
7130
  d({ type: Function })
7100
- ], C.prototype, "notificationOpenCallback", 2);
7101
- I([
7131
+ ], $.prototype, "notificationOpenCallback", 2);
7132
+ E([
7102
7133
  d({ type: String })
7103
- ], C.prototype, "notificationOpenCallbackEvent", 2);
7104
- I([
7134
+ ], $.prototype, "notificationOpenCallbackEvent", 2);
7135
+ E([
7105
7136
  d({ type: Function })
7106
- ], C.prototype, "searchCallback", 2);
7107
- I([
7137
+ ], $.prototype, "searchCallback", 2);
7138
+ E([
7108
7139
  d({ type: String })
7109
- ], C.prototype, "searchCallbackEvent", 2);
7110
- I([
7140
+ ], $.prototype, "searchCallbackEvent", 2);
7141
+ E([
7111
7142
  d({ type: Function })
7112
- ], C.prototype, "searchSubmitCallback", 2);
7113
- I([
7143
+ ], $.prototype, "searchSubmitCallback", 2);
7144
+ E([
7114
7145
  d({ type: String })
7115
- ], C.prototype, "searchSubmitCallbackEvent", 2);
7116
- I([
7146
+ ], $.prototype, "searchSubmitCallbackEvent", 2);
7147
+ E([
7117
7148
  d({ type: Boolean })
7118
- ], C.prototype, "hasNewNotifications", 2);
7119
- I([
7149
+ ], $.prototype, "hasNewNotifications", 2);
7150
+ E([
7120
7151
  d({ type: Object })
7121
- ], C.prototype, "searchConfigs", 2);
7122
- I([
7152
+ ], $.prototype, "searchConfigs", 2);
7153
+ E([
7123
7154
  d({ type: Array })
7124
- ], C.prototype, "capabilityProfileFooterLinks", 2);
7125
- I([
7155
+ ], $.prototype, "capabilityProfileFooterLinks", 2);
7156
+ E([
7126
7157
  d({ type: Array })
7127
- ], C.prototype, "capabilityGlobalActions", 2);
7128
- I([
7158
+ ], $.prototype, "capabilityGlobalActions", 2);
7159
+ E([
7129
7160
  d({ type: Boolean })
7130
- ], C.prototype, "addCookiePreferences", 2);
7131
- I([
7161
+ ], $.prototype, "addCookiePreferences", 2);
7162
+ E([
7132
7163
  d({ type: Boolean })
7133
- ], C.prototype, "forceBackendProxy", 2);
7134
- I([
7164
+ ], $.prototype, "forceBackendProxy", 2);
7165
+ E([
7135
7166
  d({ type: Boolean })
7136
- ], C.prototype, "solisSessionManagerEnabled", 2);
7137
- I([
7167
+ ], $.prototype, "solisSessionManagerEnabled", 2);
7168
+ E([
7169
+ d({ type: Number })
7170
+ ], $.prototype, "solisSessionRefreshInterval", 2);
7171
+ E([
7138
7172
  d({ type: Number })
7139
- ], C.prototype, "solisSessionRefreshInterval", 2);
7140
- I([
7173
+ ], $.prototype, "solisIdleTimeoutInterval", 2);
7174
+ E([
7141
7175
  d({ type: Number })
7142
- ], C.prototype, "solisIdleTimeoutInterval", 2);
7143
- I([
7176
+ ], $.prototype, "solisSessionStatusInterval", 2);
7177
+ E([
7144
7178
  d({ type: String })
7145
- ], C.prototype, "softLogoutUrl", 2);
7146
- I([
7179
+ ], $.prototype, "logoutUrl", 2);
7180
+ E([
7147
7181
  go()
7148
- ], C.prototype, "headerOptions", 2);
7149
- C = I([
7182
+ ], $.prototype, "headerOptions", 2);
7183
+ $ = E([
7150
7184
  so(`${ma}-global-header-hybrid-ipaas`)
7151
- ], C);
7185
+ ], $);
7152
7186
  export {
7153
7187
  k as A,
7154
7188
  Co as C,
7155
7189
  fo as F,
7156
7190
  q as H,
7157
- In as _,
7191
+ Pn as _,
7158
7192
  Zt as a,
7159
- C as b,
7193
+ $ as b,
7160
7194
  mr as c,
7161
7195
  p as d,
7162
7196
  m as e,
7163
7197
  H as f,
7164
7198
  Y as g,
7165
- Pt as h,
7199
+ It as h,
7166
7200
  K as i,
7167
7201
  y as j,
7168
7202
  Ft as k,
@@ -1,5 +1,5 @@
1
1
  import E from "react";
2
- import { b as A } from "./HybridIpaasHeader-CBvppYUD.mjs";
2
+ import { b as A } from "./HybridIpaasHeader-C1d3BtRJ.mjs";
3
3
  /**
4
4
  * @license
5
5
  * Copyright 2018 Google LLC
@@ -1,5 +1,5 @@
1
- import { C as se, e as u, r as K, i as F, n as d, j as v, A as X, t as Z, s as q, d as i, f as x, F as U, g as V, o as b, h as Y, k as L, _ as oe, a as W, c as ce, H as D, l as ie } from "./HybridIpaasHeader-CBvppYUD.mjs";
2
- import { b as De } from "./HybridIpaasHeader-CBvppYUD.mjs";
1
+ import { C as se, e as u, r as K, i as F, n as d, j as v, A as X, t as Z, s as q, d as i, f as x, F as U, g as V, o as b, h as Y, k as L, _ as oe, a as W, c as ce, H as D, l as ie } from "./HybridIpaasHeader-C1d3BtRJ.mjs";
2
+ import { b as De } from "./HybridIpaasHeader-C1d3BtRJ.mjs";
3
3
  var le = {
4
4
  elem: "svg",
5
5
  attrs: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@carbon-labs/wc-global-header",
3
- "version": "0.91.0",
3
+ "version": "0.92.0",
4
4
  "author": "Your Name <your@email.com>",
5
5
  "publishConfig": {
6
6
  "access": "public",
@@ -49,5 +49,5 @@
49
49
  "vite": "^6.4.2",
50
50
  "webdriverio": "^9.23.2"
51
51
  },
52
- "gitHead": "55dbaf4343491f29fb5219672897a20f7146f66c"
52
+ "gitHead": "01b8cf28e3de7cfc8dfd3a4ecbb9b8eb82d35735"
53
53
  }