@telia-ace/widget-core-flamingo 1.1.120-rc.9 → 1.1.121-rc.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -83,8 +83,8 @@ var ot = function() {
83
83
  if (this._parentage = null, Array.isArray(n))
84
84
  try {
85
85
  for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
86
- var l = c.value;
87
- l.remove(this);
86
+ var h = c.value;
87
+ h.remove(this);
88
88
  }
89
89
  } catch (v) {
90
90
  t = { error: v };
@@ -97,10 +97,10 @@ var ot = function() {
97
97
  }
98
98
  else
99
99
  n.remove(this);
100
- var h = this.initialTeardown;
101
- if (_(h))
100
+ var l = this.initialTeardown;
101
+ if (_(l))
102
102
  try {
103
- h();
103
+ l();
104
104
  } catch (v) {
105
105
  o = v instanceof at ? v.errors : [v];
106
106
  }
@@ -111,7 +111,7 @@ var ot = function() {
111
111
  for (var u = mt(d), f = u.next(); !f.done; f = u.next()) {
112
112
  var g = f.value;
113
113
  try {
114
- Lt(g);
114
+ Ut(g);
115
115
  } catch (v) {
116
116
  o = o ?? [], v instanceof at ? o = yt(yt([], vt(o)), vt(v.errors)) : o.push(v);
117
117
  }
@@ -133,7 +133,7 @@ var ot = function() {
133
133
  var e;
134
134
  if (t && t !== this)
135
135
  if (this.closed)
136
- Lt(t);
136
+ Ut(t);
137
137
  else {
138
138
  if (t instanceof r) {
139
139
  if (t.closed || t._hasParent(this))
@@ -162,12 +162,12 @@ var ot = function() {
162
162
  function le(r) {
163
163
  return r instanceof ot || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
164
164
  }
165
- function Lt(r) {
165
+ function Ut(r) {
166
166
  _(r) ? r() : r.unsubscribe();
167
167
  }
168
- var Se = {
168
+ var Ee = {
169
169
  Promise: void 0
170
- }, Ee = {
170
+ }, Se = {
171
171
  setTimeout: function(r, t) {
172
172
  for (var e = [], i = 2; i < arguments.length; i++)
173
173
  e[i - 2] = arguments[i];
@@ -179,7 +179,7 @@ var Se = {
179
179
  delegate: void 0
180
180
  };
181
181
  function Pe(r) {
182
- Ee.setTimeout(function() {
182
+ Se.setTimeout(function() {
183
183
  throw r;
184
184
  });
185
185
  }
@@ -294,7 +294,7 @@ var Ht = function() {
294
294
  var e = new r();
295
295
  return e.source = this, e.operator = t, e;
296
296
  }, r.prototype.subscribe = function(t, e, i) {
297
- var s = this, o = Ue(t) ? t : new wt(t, e, i);
297
+ var s = this, o = Le(t) ? t : new wt(t, e, i);
298
298
  return J(function() {
299
299
  var n = s, a = n.operator, c = n.source;
300
300
  o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
@@ -348,19 +348,19 @@ var Ht = function() {
348
348
  }();
349
349
  function Ft(r) {
350
350
  var t;
351
- return (t = r ?? Se.Promise) !== null && t !== void 0 ? t : Promise;
351
+ return (t = r ?? Ee.Promise) !== null && t !== void 0 ? t : Promise;
352
352
  }
353
353
  function Ne(r) {
354
354
  return r && _(r.next) && _(r.error) && _(r.complete);
355
355
  }
356
- function Ue(r) {
356
+ function Le(r) {
357
357
  return r && r instanceof de || Ne(r) && le(r);
358
358
  }
359
- var Le = ce(function(r) {
359
+ var Ue = ce(function(r) {
360
360
  return function() {
361
361
  r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
362
362
  };
363
- }), xt = function(r) {
363
+ }), At = function(r) {
364
364
  G(t, r);
365
365
  function t() {
366
366
  var e = r.call(this) || this;
@@ -371,7 +371,7 @@ var Le = ce(function(r) {
371
371
  return i.operator = e, i;
372
372
  }, t.prototype._throwIfClosed = function() {
373
373
  if (this.closed)
374
- throw new Le();
374
+ throw new Ue();
375
375
  }, t.prototype.next = function(e) {
376
376
  var i = this;
377
377
  J(function() {
@@ -383,8 +383,8 @@ var Le = ce(function(r) {
383
383
  var c = a.value;
384
384
  c.next(e);
385
385
  }
386
- } catch (l) {
387
- s = { error: l };
386
+ } catch (h) {
387
+ s = { error: h };
388
388
  } finally {
389
389
  try {
390
390
  a && !a.done && (o = n.return) && o.call(n);
@@ -458,7 +458,7 @@ var Le = ce(function(r) {
458
458
  var i, s;
459
459
  return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : he;
460
460
  }, t;
461
- }(xt), At = function(r) {
461
+ }(At), xt = function(r) {
462
462
  G(t, r);
463
463
  function t(e) {
464
464
  var i = r.call(this) || this;
@@ -481,10 +481,10 @@ var Le = ce(function(r) {
481
481
  }, t.prototype.next = function(e) {
482
482
  r.prototype.next.call(this, this._value = e);
483
483
  }, t;
484
- }(xt), ue = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ue || {});
484
+ }(At), ue = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ue || {});
485
485
  class Dt {
486
486
  constructor(t, e) {
487
- this.state = new At(
487
+ this.state = new xt(
488
488
  "loading"
489
489
  /* Loading */
490
490
  ), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
@@ -507,10 +507,10 @@ class Dt {
507
507
  * Copyright 2019 Google LLC
508
508
  * SPDX-License-Identifier: BSD-3-Clause
509
509
  */
510
- const X = globalThis, Ct = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, St = Symbol(), zt = /* @__PURE__ */ new WeakMap();
510
+ const X = globalThis, Ct = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Et = Symbol(), zt = /* @__PURE__ */ new WeakMap();
511
511
  let pe = class {
512
512
  constructor(t, e, i) {
513
- if (this._$cssResult$ = !0, i !== St) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
513
+ if (this._$cssResult$ = !0, i !== Et) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
514
514
  this.cssText = t, this.t = e;
515
515
  }
516
516
  get styleSheet() {
@@ -526,13 +526,13 @@ let pe = class {
526
526
  return this.cssText;
527
527
  }
528
528
  };
529
- const je = (r) => new pe(typeof r == "string" ? r : r + "", void 0, St), L = (r, ...t) => {
529
+ const je = (r) => new pe(typeof r == "string" ? r : r + "", void 0, Et), U = (r, ...t) => {
530
530
  const e = r.length === 1 ? r[0] : t.reduce((i, s, o) => i + ((n) => {
531
531
  if (n._$cssResult$ === !0) return n.cssText;
532
532
  if (typeof n == "number") return n;
533
533
  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.");
534
534
  })(s) + r[o + 1], r[0]);
535
- return new pe(e, r, St);
535
+ return new pe(e, r, Et);
536
536
  }, He = (r, t) => {
537
537
  if (Ct) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
538
538
  else for (const e of t) {
@@ -577,7 +577,7 @@ const { is: Fe, defineProperty: Be, getOwnPropertyDescriptor: De, getOwnProperty
577
577
  }
578
578
  }
579
579
  return e;
580
- } }, Et = (r, t) => !Fe(r, t), qt = { attribute: !0, type: String, converter: Q, reflect: !1, useDefault: !1, hasChanged: Et };
580
+ } }, St = (r, t) => !Fe(r, t), qt = { attribute: !0, type: String, converter: Q, reflect: !1, useDefault: !1, hasChanged: St };
581
581
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
582
582
  let T = class extends HTMLElement {
583
583
  static addInitializer(t) {
@@ -697,14 +697,16 @@ let T = class extends HTMLElement {
697
697
  const i = this.constructor, s = i._$Eh.get(t);
698
698
  if (s !== void 0 && this._$Em !== s) {
699
699
  const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter : Q;
700
- this._$Em = s, this[s] = c.fromAttribute(e, a.type) ?? ((n = this._$Ej) == null ? void 0 : n.get(s)) ?? null, this._$Em = null;
700
+ this._$Em = s;
701
+ const h = c.fromAttribute(e, a.type);
702
+ this[s] = h ?? ((n = this._$Ej) == null ? void 0 : n.get(s)) ?? h, this._$Em = null;
701
703
  }
702
704
  }
703
705
  requestUpdate(t, e, i) {
704
706
  var s;
705
707
  if (t !== void 0) {
706
708
  const o = this.constructor, n = this[t];
707
- if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ?? Et)(n, e) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(o._$Eu(t, i)))) return;
709
+ if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ?? St)(n, e) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(o._$Eu(t, i)))) return;
708
710
  this.C(t, e, i);
709
711
  }
710
712
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
@@ -780,14 +782,14 @@ let T = class extends HTMLElement {
780
782
  firstUpdated(t) {
781
783
  }
782
784
  };
783
- T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[F("elementProperties")] = /* @__PURE__ */ new Map(), T[F("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.0");
785
+ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[F("elementProperties")] = /* @__PURE__ */ new Map(), T[F("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.1");
784
786
  /**
785
787
  * @license
786
788
  * Copyright 2017 Google LLC
787
789
  * SPDX-License-Identifier: BSD-3-Clause
788
790
  */
789
- const B = globalThis, tt = B.trustedTypes, Gt = tt ? tt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, fe = "$lit$", A = `lit$${Math.random().toFixed(9).slice(2)}$`, ge = "?" + A, Ge = `<${ge}>`, I = document, z = () => I.createComment(""), V = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Ke = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
790
- \f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Kt = /-->/g, Yt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
791
+ const B = globalThis, tt = B.trustedTypes, Gt = tt ? tt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, fe = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, ge = "?" + x, Ge = `<${ge}>`, I = document, z = () => I.createComment(""), V = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Ke = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
792
+ \f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Kt = /-->/g, Yt = />/g, E = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
791
793
  \f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Jt = /"/g, me = /^(?:script|style|textarea|title)$/i, Ye = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), R = Ye(1), k = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), P = I.createTreeWalker(I, 129);
792
794
  function ve(r, t) {
793
795
  if (!Pt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
@@ -798,10 +800,10 @@ const Ze = (r, t) => {
798
800
  let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = H;
799
801
  for (let a = 0; a < e; a++) {
800
802
  const c = r[a];
801
- let l, h, d = -1, u = 0;
802
- for (; u < c.length && (n.lastIndex = u, h = n.exec(c), h !== null); ) u = n.lastIndex, n === H ? h[1] === "!--" ? n = Kt : h[1] !== void 0 ? n = Yt : h[2] !== void 0 ? (me.test(h[2]) && (s = RegExp("</" + h[2], "g")), n = S) : h[3] !== void 0 && (n = S) : n === S ? h[0] === ">" ? (n = s ?? H, d = -1) : h[1] === void 0 ? d = -2 : (d = n.lastIndex - h[2].length, l = h[1], n = h[3] === void 0 ? S : h[3] === '"' ? Jt : Zt) : n === Jt || n === Zt ? n = S : n === Kt || n === Yt ? n = H : (n = S, s = void 0);
803
- const f = n === S && r[a + 1].startsWith("/>") ? " " : "";
804
- o += n === H ? c + Ge : d >= 0 ? (i.push(l), c.slice(0, d) + fe + c.slice(d) + A + f) : c + A + (d === -2 ? a : f);
803
+ let h, l, d = -1, u = 0;
804
+ for (; u < c.length && (n.lastIndex = u, l = n.exec(c), l !== null); ) u = n.lastIndex, n === H ? l[1] === "!--" ? n = Kt : l[1] !== void 0 ? n = Yt : l[2] !== void 0 ? (me.test(l[2]) && (s = RegExp("</" + l[2], "g")), n = E) : l[3] !== void 0 && (n = E) : n === E ? l[0] === ">" ? (n = s ?? H, d = -1) : l[1] === void 0 ? d = -2 : (d = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? E : l[3] === '"' ? Jt : Zt) : n === Jt || n === Zt ? n = E : n === Kt || n === Yt ? n = H : (n = E, s = void 0);
805
+ const f = n === E && r[a + 1].startsWith("/>") ? " " : "";
806
+ o += n === H ? c + Ge : d >= 0 ? (i.push(h), c.slice(0, d) + fe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
805
807
  }
806
808
  return [ve(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
807
809
  };
@@ -810,19 +812,19 @@ let $t = class ye {
810
812
  let s;
811
813
  this.parts = [];
812
814
  let o = 0, n = 0;
813
- const a = t.length - 1, c = this.parts, [l, h] = Ze(t, e);
814
- if (this.el = ye.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
815
+ const a = t.length - 1, c = this.parts, [h, l] = Ze(t, e);
816
+ if (this.el = ye.createElement(h, i), P.currentNode = this.el.content, e === 2 || e === 3) {
815
817
  const d = this.el.content.firstChild;
816
818
  d.replaceWith(...d.childNodes);
817
819
  }
818
820
  for (; (s = P.nextNode()) !== null && c.length < a; ) {
819
821
  if (s.nodeType === 1) {
820
822
  if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(fe)) {
821
- const u = h[n++], f = s.getAttribute(d).split(A), g = /([.?@])?(.*)/.exec(u);
823
+ const u = l[n++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
822
824
  c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : nt }), s.removeAttribute(d);
823
- } else d.startsWith(A) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
825
+ } else d.startsWith(x) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
824
826
  if (me.test(s.tagName)) {
825
- const d = s.textContent.split(A), u = d.length - 1;
827
+ const d = s.textContent.split(x), u = d.length - 1;
826
828
  if (u > 0) {
827
829
  s.textContent = tt ? tt.emptyScript : "";
828
830
  for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++o });
@@ -832,7 +834,7 @@ let $t = class ye {
832
834
  } else if (s.nodeType === 8) if (s.data === ge) c.push({ type: 2, index: o });
833
835
  else {
834
836
  let d = -1;
835
- for (; (d = s.data.indexOf(A, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += A.length - 1;
837
+ for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += x.length - 1;
836
838
  }
837
839
  o++;
838
840
  }
@@ -865,8 +867,8 @@ class Je {
865
867
  let o = P.nextNode(), n = 0, a = 0, c = i[0];
866
868
  for (; c !== void 0; ) {
867
869
  if (n === c.index) {
868
- let l;
869
- c.type === 2 ? l = new K(o, o.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (l = new ei(o, this, t)), this._$AV.push(l), c = i[++a];
870
+ let h;
871
+ c.type === 2 ? h = new K(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(o, this, t)), this._$AV.push(h), c = i[++a];
870
872
  }
871
873
  n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
872
874
  }
@@ -930,7 +932,7 @@ class K {
930
932
  }
931
933
  _$AR(t = this._$AA.nextSibling, e) {
932
934
  var i;
933
- for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
935
+ for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t !== this._$AB; ) {
934
936
  const s = t.nextSibling;
935
937
  t.remove(), t = s;
936
938
  }
@@ -956,8 +958,8 @@ class nt {
956
958
  if (o === void 0) t = M(this, t, e, 0), n = !V(t) || t !== this._$AH && t !== k, n && (this._$AH = t);
957
959
  else {
958
960
  const a = t;
959
- let c, l;
960
- for (t = o[0], c = 0; c < o.length - 1; c++) l = M(this, a[i + c], e, c), l === k && (l = this._$AH[c]), n || (n = !V(l) || l !== this._$AH[c]), l === p ? t = p : t !== p && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
961
+ let c, h;
962
+ for (t = o[0], c = 0; c < o.length - 1; c++) h = M(this, a[i + c], e, c), h === k && (h = this._$AH[c]), n || (n = !V(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
961
963
  }
962
964
  n && !s && this.j(t);
963
965
  }
@@ -1007,7 +1009,7 @@ class ei {
1007
1009
  }
1008
1010
  }
1009
1011
  const lt = B.litHtmlPolyfillSupport;
1010
- lt == null || lt($t, K), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.3.0");
1012
+ lt == null || lt($t, K), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.3.1");
1011
1013
  const ii = (r, t, e) => {
1012
1014
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1013
1015
  let s = i._$litPart$;
@@ -1023,7 +1025,7 @@ const ii = (r, t, e) => {
1023
1025
  * SPDX-License-Identifier: BSD-3-Clause
1024
1026
  */
1025
1027
  const O = globalThis;
1026
- let x = class extends T {
1028
+ let A = class extends T {
1027
1029
  constructor() {
1028
1030
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
1029
1031
  }
@@ -1049,16 +1051,16 @@ let x = class extends T {
1049
1051
  }
1050
1052
  };
1051
1053
  var ae;
1052
- x._$litElement$ = !0, x.finalized = !0, (ae = O.litElementHydrateSupport) == null || ae.call(O, { LitElement: x });
1054
+ A._$litElement$ = !0, A.finalized = !0, (ae = O.litElementHydrateSupport) == null || ae.call(O, { LitElement: A });
1053
1055
  const dt = O.litElementPolyfillSupport;
1054
- dt == null || dt({ LitElement: x });
1055
- (O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.0");
1056
+ dt == null || dt({ LitElement: A });
1057
+ (O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.1");
1056
1058
  /**
1057
1059
  * @license
1058
1060
  * Copyright 2017 Google LLC
1059
1061
  * SPDX-License-Identifier: BSD-3-Clause
1060
1062
  */
1061
- const si = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged: Et }, ri = (r = si, t, e) => {
1063
+ const si = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged: St }, ri = (r = si, t, e) => {
1062
1064
  const { kind: i, metadata: s } = e;
1063
1065
  let o = globalThis.litPropertyMetadata.get(s);
1064
1066
  if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(e.name, r), i === "accessor") {
@@ -1098,7 +1100,7 @@ var oi = Object.defineProperty, ni = (r, t, e, i) => {
1098
1100
  (n = r[o]) && (s = n(t, e, s) || s);
1099
1101
  return s && oi(t, e, s), s;
1100
1102
  };
1101
- const Tt = class Tt extends x {
1103
+ const Tt = class Tt extends A {
1102
1104
  constructor() {
1103
1105
  super(...arguments), this.anchor = "BottomRight";
1104
1106
  }
@@ -1111,7 +1113,7 @@ const Tt = class Tt extends x {
1111
1113
  }
1112
1114
  };
1113
1115
  Tt.styles = [
1114
- L`
1116
+ U`
1115
1117
  :host {
1116
1118
  position: fixed;
1117
1119
  display: flex;
@@ -1384,13 +1386,13 @@ class gi extends $e {
1384
1386
  let n = !1;
1385
1387
  const a = {};
1386
1388
  for (const c in e) {
1387
- const l = t[c], h = e[c];
1389
+ const h = t[c], l = e[c];
1388
1390
  if (c in pt) {
1389
1391
  const d = pt[c];
1390
- if (l === void 0 || h === void 0) continue;
1391
- const u = d(l, h);
1392
+ if (h === void 0 || l === void 0) continue;
1393
+ const u = d(h, l);
1392
1394
  u.transform !== void 0 && (a[c] = u.value, n = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
1393
- } else l !== h && l !== void 0 && h !== void 0 && (n = !0, s[c] = l, o[c] = h);
1395
+ } else h !== l && h !== void 0 && l !== void 0 && (n = !0, s[c] = h, o[c] = l);
1394
1396
  }
1395
1397
  return s.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [s, o] : void 0;
1396
1398
  }
@@ -1449,7 +1451,7 @@ const oe = It(class extends be {
1449
1451
  }), w = (r, t, e) => {
1450
1452
  r && e.style.setProperty(t, r);
1451
1453
  }, _e = (r, t) => {
1452
- var e, i, s, o, n, a, c, l, h;
1454
+ var e, i, s, o, n, a, c, h, l;
1453
1455
  w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
1454
1456
  (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1455
1457
  "--text-on-primary-background",
@@ -1475,20 +1477,20 @@ const oe = It(class extends be {
1475
1477
  "--interactive-primary-background",
1476
1478
  t
1477
1479
  ), w(
1478
- (l = r.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
1480
+ (h = r.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
1479
1481
  "--interactive-text-on-primary-background",
1480
1482
  t
1481
- ), w((h = r.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
1483
+ ), w((l = r.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
1482
1484
  };
1483
1485
  /**
1484
1486
  * @license
1485
1487
  * Copyright 2020 Google LLC
1486
1488
  * SPDX-License-Identifier: BSD-3-Clause
1487
1489
  */
1488
- const xe = () => new yi();
1490
+ const Ae = () => new yi();
1489
1491
  class yi {
1490
1492
  }
1491
- const ft = /* @__PURE__ */ new WeakMap(), Ae = It(class extends $e {
1493
+ const ft = /* @__PURE__ */ new WeakMap(), xe = It(class extends $e {
1492
1494
  render(r) {
1493
1495
  return p;
1494
1496
  }
@@ -1520,9 +1522,9 @@ var bi = Object.defineProperty, Y = (r, t, e, i) => {
1520
1522
  (n = r[o]) && (s = n(t, e, s) || s);
1521
1523
  return s && bi(t, e, s), s;
1522
1524
  };
1523
- const Rt = class Rt extends x {
1525
+ const Rt = class Rt extends A {
1524
1526
  constructor() {
1525
- super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = xe(), this.widgetActive$ = new At(!1), this.componentIsDestroyed$ = new xt();
1527
+ super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = Ae(), this.widgetActive$ = new xt(!1), this.componentIsDestroyed$ = new At();
1526
1528
  }
1527
1529
  async connectedCallback() {
1528
1530
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
@@ -1560,20 +1562,20 @@ const Rt = class Rt extends x {
1560
1562
  (t = this.application) != null && t.settings && _e(this.application.settings.branding, this);
1561
1563
  }
1562
1564
  async _renderSymbol() {
1563
- var a, c, l;
1565
+ var a, c, h;
1564
1566
  const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
1565
1567
  if (e)
1566
1568
  return R` <img src=${e} class="trigger-icon" alt="" /> `;
1567
- const i = (l = this.application) == null ? void 0 : l.triggerIcon;
1569
+ const i = (h = this.application) == null ? void 0 : h.triggerIcon;
1568
1570
  if (!i)
1569
1571
  return p;
1570
- const s = async (h) => vi, { type: o, content: n } = i;
1572
+ const s = async (l) => vi, { type: o, content: n } = i;
1571
1573
  switch (o) {
1572
1574
  case "Telia": {
1573
- const h = await s();
1574
- return h ? R`<telia-icon
1575
+ const l = await s();
1576
+ return l ? R`<telia-icon
1575
1577
  class="trigger-icon"
1576
- svg=${h.svg}
1578
+ svg=${l.svg}
1577
1579
  size="lg"
1578
1580
  ></telia-icon>` : p;
1579
1581
  }
@@ -1595,17 +1597,18 @@ const Rt = class Rt extends x {
1595
1597
  this.triggerVisible = !0;
1596
1598
  }
1597
1599
  render() {
1598
- var t, e, i, s;
1600
+ var t, e, i, s, o, n, a;
1599
1601
  return R`<div
1600
1602
  class=${oe({
1601
1603
  "trigger-container": !0,
1602
1604
  hidden: !this.triggerVisible
1603
1605
  })}
1604
- ${Ae(this.containerRef)}
1606
+ ${xe(this.containerRef)}
1605
1607
  >
1606
1608
  ${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? R`
1607
1609
  <button
1608
- label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1610
+ type="button"
1611
+ aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
1609
1612
  class="trigger-label"
1610
1613
  @click=${this.toggleActive}
1611
1614
  ${mi({
@@ -1615,12 +1618,13 @@ const Rt = class Rt extends x {
1615
1618
  skipInitial: !1
1616
1619
  })}
1617
1620
  >
1618
- ${this.application.settings.branding.other.buttonLabelText}
1621
+ ${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}
1619
1622
  </button>
1620
1623
  ` : p}
1621
1624
 
1622
1625
  <button
1623
- label="Widget trigger"
1626
+ type="button"
1627
+ aria-label="${((a = (n = (o = this.application) == null ? void 0 : o.settings) == null ? void 0 : n.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
1624
1628
  class=${oe({
1625
1629
  trigger: !0,
1626
1630
  active: this.active,
@@ -1661,7 +1665,7 @@ const Rt = class Rt extends x {
1661
1665
  }
1662
1666
  };
1663
1667
  Rt.styles = [
1664
- L`
1668
+ U`
1665
1669
  :host {
1666
1670
  --voca-rem-multiplier: 0.625;
1667
1671
  --trigger-label-bg: #f5e0ff;
@@ -1808,7 +1812,7 @@ Y([
1808
1812
  Y([
1809
1813
  j()
1810
1814
  ], b.prototype, "icon");
1811
- var wi = Object.defineProperty, E = (r, t, e, i) => {
1815
+ var wi = Object.defineProperty, S = (r, t, e, i) => {
1812
1816
  for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1813
1817
  (n = r[o]) && (s = n(t, e, s) || s);
1814
1818
  return s && wi(t, e, s), s;
@@ -1839,7 +1843,7 @@ const $i = (r) => {
1839
1843
  };
1840
1844
  e.styles = [
1841
1845
  // (superClass as unknown as typeof LitElement).styles ?? [],
1842
- L`
1846
+ U`
1843
1847
  :host {
1844
1848
  font-family: var(--font-family);
1845
1849
  grid-column: span var(--width);
@@ -1854,28 +1858,28 @@ const $i = (r) => {
1854
1858
  `
1855
1859
  ];
1856
1860
  let t = e;
1857
- return E([
1861
+ return S([
1858
1862
  m()
1859
- ], t.prototype, "properties"), E([
1863
+ ], t.prototype, "properties"), S([
1860
1864
  m()
1861
- ], t.prototype, "context"), E([
1865
+ ], t.prototype, "context"), S([
1862
1866
  m()
1863
- ], t.prototype, "layout"), E([
1867
+ ], t.prototype, "layout"), S([
1864
1868
  m()
1865
- ], t.prototype, "name"), E([
1869
+ ], t.prototype, "name"), S([
1866
1870
  m()
1867
- ], t.prototype, "type"), E([
1871
+ ], t.prototype, "type"), S([
1868
1872
  m({ attribute: !1 })
1869
- ], t.prototype, "application"), E([
1873
+ ], t.prototype, "application"), S([
1870
1874
  m({ attribute: !1 })
1871
1875
  ], t.prototype, "parent"), t;
1872
- }, Mt = class Mt extends $i(x) {
1876
+ }, Mt = class Mt extends $i(A) {
1873
1877
  render() {
1874
1878
  return R`Non resolved component`;
1875
1879
  }
1876
1880
  };
1877
1881
  Mt.styles = [
1878
- L`
1882
+ U`
1879
1883
  :host {
1880
1884
  display: block;
1881
1885
  }
@@ -1893,7 +1897,7 @@ function* _i(r, t) {
1893
1897
  for (const i of r) yield t(i, e++);
1894
1898
  }
1895
1899
  }
1896
- var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))($ || {});
1900
+ var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))($ || {}), Ai = /* @__PURE__ */ ((r) => (r.NonAuthenticated = "non-authenticated", r.Authenticating = "authenticating", r.Authenticated = "authenticated", r.ChatEnded = "chat-ended", r))(Ai || {});
1897
1901
  /**
1898
1902
  * @license
1899
1903
  * Copyright 2021 Google LLC
@@ -1914,7 +1918,7 @@ let xi = class extends Event {
1914
1918
  * Copyright 2021 Google LLC
1915
1919
  * SPDX-License-Identifier: BSD-3-Clause
1916
1920
  */
1917
- class Ai {
1921
+ class Ci {
1918
1922
  get value() {
1919
1923
  return this.o;
1920
1924
  }
@@ -1947,12 +1951,12 @@ class Ai {
1947
1951
  * Copyright 2021 Google LLC
1948
1952
  * SPDX-License-Identifier: BSD-3-Clause
1949
1953
  */
1950
- let Ci = class extends Event {
1954
+ let Ei = class extends Event {
1951
1955
  constructor(t, e) {
1952
1956
  super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
1953
1957
  }
1954
1958
  };
1955
- class ne extends Ai {
1959
+ class ne extends Ci {
1956
1960
  constructor(t, e, i) {
1957
1961
  var s, o;
1958
1962
  super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
@@ -1962,7 +1966,7 @@ class ne extends Ai {
1962
1966
  }, this.onProviderRequest = (n) => {
1963
1967
  if (n.context !== this.context || (n.contextTarget ?? n.composedPath()[0]) === this.host) return;
1964
1968
  const a = /* @__PURE__ */ new Set();
1965
- for (const [c, { consumerHost: l }] of this.subscriptions) a.has(c) || (a.add(c), l.dispatchEvent(new xi(this.context, l, c, !0)));
1969
+ for (const [c, { consumerHost: h }] of this.subscriptions) a.has(c) || (a.add(c), h.dispatchEvent(new xi(this.context, h, c, !0)));
1966
1970
  n.stopPropagation();
1967
1971
  }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (s = this.host).addController) == null || o.call(s, this);
1968
1972
  }
@@ -1970,7 +1974,7 @@ class ne extends Ai {
1970
1974
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1971
1975
  }
1972
1976
  hostConnected() {
1973
- this.host.dispatchEvent(new Ci(this.context, this.host));
1977
+ this.host.dispatchEvent(new Ei(this.context, this.host));
1974
1978
  }
1975
1979
  }
1976
1980
  /**
@@ -2011,14 +2015,14 @@ function Si({ context: r }) {
2011
2015
  }
2012
2016
  };
2013
2017
  }
2014
- var Ei = Object.defineProperty, Ce = (r, t, e, i) => {
2018
+ var Pi = Object.defineProperty, Ce = (r, t, e, i) => {
2015
2019
  for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2016
2020
  (n = r[o]) && (s = n(t, e, s) || s);
2017
- return s && Ei(t, e, s), s;
2021
+ return s && Pi(t, e, s), s;
2018
2022
  };
2019
- const Pi = "application", Nt = class Nt extends x {
2023
+ const Oi = "application", Nt = class Nt extends A {
2020
2024
  constructor() {
2021
- super(...arguments), this.nodes = [], this.wrapperRef = xe(), this.fullscreen = !1, this.isReady = new At(!1);
2025
+ super(...arguments), this.nodes = [], this.wrapperRef = Ae(), this.fullscreen = !1, this.isReady = new xt(!1);
2022
2026
  }
2023
2027
  addChild(t) {
2024
2028
  t.parent = this, this.nodes.push(t);
@@ -2043,12 +2047,12 @@ const Pi = "application", Nt = class Nt extends x {
2043
2047
  render() {
2044
2048
  var i, s;
2045
2049
  const t = this.application.settings.components.conversation;
2046
- return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), R`<div class="widget-container" ${Ae(this.wrapperRef)}>
2050
+ return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), R`<div class="widget-container" ${xe(this.wrapperRef)}>
2047
2051
  ${_i(this.nodes, (o) => o)}
2048
2052
  </div>`;
2049
2053
  }
2050
2054
  };
2051
- Nt.styles = L`
2055
+ Nt.styles = U`
2052
2056
  :host {
2053
2057
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
2054
2058
  --spacing-xs: 0.2rem;
@@ -2220,9 +2224,9 @@ Ce([
2220
2224
  ], N.prototype, "fullscreen");
2221
2225
  Ce([
2222
2226
  m({ attribute: !1 }),
2223
- Si({ context: Pi })
2227
+ Si({ context: Oi })
2224
2228
  ], N.prototype, "application");
2225
- class Oi {
2229
+ class Ii {
2226
2230
  constructor() {
2227
2231
  this.root = this.createRoot();
2228
2232
  }
@@ -2230,19 +2234,19 @@ class Oi {
2230
2234
  this.root.application = e;
2231
2235
  const i = (a) => {
2232
2236
  if (Array.isArray(a)) {
2233
- const [c, ...l] = a;
2237
+ const [c, ...h] = a;
2234
2238
  return {
2235
2239
  definitionId: c,
2236
- overrides: l
2240
+ overrides: h
2237
2241
  };
2238
2242
  }
2239
2243
  return {
2240
2244
  definitionId: a,
2241
2245
  overrides: []
2242
2246
  };
2243
- }, s = (a, c, l, h) => {
2244
- l.forEach((d) => {
2245
- const u = i(d), f = h[u.definitionId];
2247
+ }, s = (a, c, h, l) => {
2248
+ h.forEach((d) => {
2249
+ const u = i(d), f = l[u.definitionId];
2246
2250
  if (!f) {
2247
2251
  console.error(
2248
2252
  `No definition found for component type '${u.definitionId}'.`
@@ -2254,7 +2258,7 @@ class Oi {
2254
2258
  a,
2255
2259
  g,
2256
2260
  f.children,
2257
- h
2261
+ l
2258
2262
  // views
2259
2263
  ));
2260
2264
  });
@@ -2306,7 +2310,7 @@ const st = class st {
2306
2310
  st.ResolveWebComponentName = (t) => `ace-${t}`;
2307
2311
  let _t = st;
2308
2312
  var y = /* @__PURE__ */ ((r) => (r.Necessary = "necessary", r.Functional = "functional", r.Analytics = "analytics", r))(y || {});
2309
- class Ii {
2313
+ class ki {
2310
2314
  constructor(t, e, i, s) {
2311
2315
  this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries = s;
2312
2316
  }
@@ -2363,7 +2367,7 @@ class Ii {
2363
2367
  return `ace_${this.widgetId.substring(0, 7)}-${t}`;
2364
2368
  }
2365
2369
  }
2366
- class ki {
2370
+ class Ti {
2367
2371
  constructor() {
2368
2372
  this.texts = /* @__PURE__ */ new Map();
2369
2373
  }
@@ -2378,8 +2382,8 @@ class ki {
2378
2382
  return this.texts.get(t) || e;
2379
2383
  }
2380
2384
  }
2381
- const Ti = "1.1.120-rc.9";
2382
- class Ri {
2385
+ const Ri = "##__WIDGETS_VERSION__##";
2386
+ class Mi {
2383
2387
  constructor(t) {
2384
2388
  this.widget = t, this.name = t.name;
2385
2389
  }
@@ -2397,33 +2401,33 @@ class Ri {
2397
2401
  }
2398
2402
  version() {
2399
2403
  return {
2400
- version: Ti
2404
+ version: Ri
2401
2405
  };
2402
2406
  }
2403
2407
  }
2404
- class Mi {
2408
+ class Ni {
2405
2409
  constructor(t, e, i, s, o) {
2406
- this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Oi(), this.texts = new ki(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.userData = {}, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Ri(this), this.onMessageReceived = async (a) => {
2407
- var l;
2410
+ this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Ii(), this.texts = new Ti(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
2411
+ var h;
2408
2412
  const c = a.data;
2409
2413
  switch (c.type) {
2410
2414
  case "set-storage-policies": {
2411
- const { policies: h } = c.data || [], d = {
2412
- [y.Analytics]: h.includes("analytics"),
2413
- [y.Necessary]: h.includes("necessary"),
2414
- [y.Functional]: h.includes("functional")
2415
+ const { policies: l } = c.data || [], d = {
2416
+ [y.Analytics]: l.includes("analytics"),
2417
+ [y.Necessary]: l.includes("necessary"),
2418
+ [y.Functional]: l.includes("functional")
2415
2419
  };
2416
2420
  this.storage.updatePolicy(d);
2417
2421
  return;
2418
2422
  }
2419
2423
  case "disallow-storage-key": {
2420
- const { storageKey: h } = c.data || null;
2421
- h && this.storage.disallowKey(h);
2424
+ const { storageKey: l } = c.data || null;
2425
+ l && this.storage.disallowKey(l);
2422
2426
  return;
2423
2427
  }
2424
2428
  case "set-fullscreen-mode": {
2425
- const { value: h } = c.data;
2426
- typeof h == "boolean" && this.setFullscreenMode(h);
2429
+ const { value: l } = c.data;
2430
+ typeof l == "boolean" && this.setFullscreenMode(l);
2427
2431
  return;
2428
2432
  }
2429
2433
  case "open": {
@@ -2435,13 +2439,13 @@ class Mi {
2435
2439
  return;
2436
2440
  }
2437
2441
  case "set-z-index": {
2438
- const { zIndex: h } = c.data || null;
2439
- h && this.setZIndex(h);
2442
+ const { zIndex: l } = c.data || null;
2443
+ l && this.setZIndex(l);
2440
2444
  return;
2441
2445
  }
2442
2446
  case "deactivate-widget": {
2443
- const h = this.storage.get("open");
2444
- this.hide(), (l = this.trigger) == null || l.hideTrigger(), h && this.storage.set("open", !0);
2447
+ const l = this.storage.get("open");
2448
+ this.hide(), (h = this.trigger) == null || h.hideTrigger(), l && this.storage.set("open", !0);
2445
2449
  return;
2446
2450
  }
2447
2451
  case "set-open": {
@@ -2457,7 +2461,7 @@ class Mi {
2457
2461
  [y.Functional]: !0,
2458
2462
  [y.Analytics]: !0
2459
2463
  };
2460
- this.storage = new Ii(
2464
+ this.storage = new ki(
2461
2465
  this.id,
2462
2466
  "sessionStorage",
2463
2467
  n,
@@ -2498,10 +2502,10 @@ class Mi {
2498
2502
  return this.plugins.push(t), this;
2499
2503
  }
2500
2504
  appendToDOM(t = {}) {
2501
- this.root && (this.root.classList.add("expanded"), this.root.classList.remove("hidden"), document.body.appendChild(this.root)), t.ignoreStorage || this.storage.set("open", !0);
2505
+ this.root && (this.root.classList.add("expanded"), this.root.classList.remove("hidden"), this.root.removeAttribute("inert"), document.body.appendChild(this.root)), t.ignoreStorage || this.storage.set("open", !0);
2502
2506
  }
2503
2507
  hide() {
2504
- this.root && (this.root.classList.add("hidden"), this.root.classList.remove("expanded")), this.storage.set("open", !1);
2508
+ this.root && (this.root.contains(document.activeElement) && (this.trigger && typeof this.trigger.focus == "function" ? this.trigger.focus() : (document.activeElement instanceof HTMLElement && typeof document.activeElement.blur == "function" && document.activeElement.blur(), document.body.focus())), this.root.classList.add("hidden"), this.root.classList.remove("expanded"), this.root.setAttribute("inert", "")), this.storage.set("open", !1);
2505
2509
  }
2506
2510
  setZIndex(t) {
2507
2511
  this.root && (this.root.style.zIndex = t.toString());
@@ -2551,7 +2555,7 @@ class Mi {
2551
2555
  return this.root;
2552
2556
  }
2553
2557
  }
2554
- const Wi = (r) => new q(r), rt = class rt {
2558
+ const qi = (r) => new q(r), rt = class rt {
2555
2559
  // TODO:
2556
2560
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
2557
2561
  constructor(t = rt.endpoint) {
@@ -2565,7 +2569,7 @@ const Wi = (r) => new q(r), rt = class rt {
2565
2569
  apps: (i.widgets || []).map((s) => {
2566
2570
  let o = $.Trigger;
2567
2571
  s.renderStrategy.toLowerCase() === "inline" && (o = $.Inline);
2568
- const n = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", l = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
2572
+ const n = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
2569
2573
  return {
2570
2574
  id: n,
2571
2575
  widgetId: n,
@@ -2574,7 +2578,7 @@ const Wi = (r) => new q(r), rt = class rt {
2574
2578
  anchor: c,
2575
2579
  triggerIcon: {
2576
2580
  type: "Telia",
2577
- content: l
2581
+ content: h
2578
2582
  }
2579
2583
  };
2580
2584
  })
@@ -2590,7 +2594,7 @@ const Wi = (r) => new q(r), rt = class rt {
2590
2594
  };
2591
2595
  rt.endpoint = "https://widgets.ace.teliacompany.net/api";
2592
2596
  let q = rt;
2593
- class Ni {
2597
+ class Li {
2594
2598
  constructor(t) {
2595
2599
  this.site = t;
2596
2600
  }
@@ -2640,20 +2644,20 @@ class Ui {
2640
2644
  i.condition.type === "url" && o.forEach((n) => {
2641
2645
  const a = n.action.type === "render_widget";
2642
2646
  if ((n.value === s || n.value === "*") && a) {
2643
- let l = { widgetId: "" };
2647
+ let h = { widgetId: "" };
2644
2648
  try {
2645
- l = JSON.parse(n.action.data);
2649
+ h = JSON.parse(n.action.data);
2646
2650
  } catch {
2647
- l = {
2651
+ h = {
2648
2652
  widgetId: ""
2649
2653
  };
2650
2654
  }
2651
- const h = t.findIndex(
2652
- (u) => u.id === l.widgetId
2655
+ const l = t.findIndex(
2656
+ (u) => u.id === h.widgetId
2653
2657
  ) > -1, d = this.applications.find(
2654
- (u) => u.id === l.widgetId
2658
+ (u) => u.id === h.widgetId
2655
2659
  );
2656
- d && !h && (d.autoActivate = !0, t.push(d));
2660
+ d && !l && (d.autoActivate = !0, t.push(d));
2657
2661
  }
2658
2662
  });
2659
2663
  });
@@ -2690,7 +2694,7 @@ class Ui {
2690
2694
  e(i == null ? void 0 : i.api);
2691
2695
  }
2692
2696
  registerApp(t, e, i, s) {
2693
- const o = new Dt(e, this), n = new Mi(t, e, o, i, s);
2697
+ const o = new Dt(e, this), n = new Ni(t, e, o, i, s);
2694
2698
  this.applications.push(n);
2695
2699
  }
2696
2700
  registerSite(t) {
@@ -2702,9 +2706,9 @@ class Ui {
2702
2706
  }), this;
2703
2707
  }
2704
2708
  }
2705
- class Li {
2709
+ class ji {
2706
2710
  constructor(t) {
2707
- this.configurations = [], this.httpClient = new q(), this.api = new Ni(this), this.triggers = [], this.httpClient = new q(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
2711
+ this.configurations = [], this.httpClient = new q(), this.api = new Li(this), this.triggers = [], this.httpClient = new q(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
2708
2712
  }
2709
2713
  async load(t) {
2710
2714
  const e = await this.httpClient.getSite(t);
@@ -2758,12 +2762,12 @@ class Li {
2758
2762
  }), globalThis.ace = t;
2759
2763
  }
2760
2764
  }
2761
- var ji = Object.defineProperty, kt = (r, t, e, i) => {
2765
+ var Hi = Object.defineProperty, kt = (r, t, e, i) => {
2762
2766
  for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2763
2767
  (n = r[o]) && (s = n(t, e, s) || s);
2764
- return s && ji(t, e, s), s;
2768
+ return s && Hi(t, e, s), s;
2765
2769
  };
2766
- const Ut = class Ut extends x {
2770
+ const Lt = class Lt extends A {
2767
2771
  constructor() {
2768
2772
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
2769
2773
  }
@@ -2795,44 +2799,45 @@ const Ut = class Ut extends x {
2795
2799
  return this.widget.render();
2796
2800
  }
2797
2801
  };
2798
- Ut.styles = [
2799
- L`
2802
+ Lt.styles = [
2803
+ U`
2800
2804
  :host {
2801
2805
  display: block;
2802
2806
  }
2803
2807
  `
2804
2808
  ];
2805
- let U = Ut;
2809
+ let L = Lt;
2806
2810
  kt([
2807
2811
  m({ attribute: !0 })
2808
- ], U.prototype, "name");
2812
+ ], L.prototype, "name");
2809
2813
  kt([
2810
2814
  j()
2811
- ], U.prototype, "widget");
2815
+ ], L.prototype, "widget");
2812
2816
  kt([
2813
2817
  j()
2814
- ], U.prototype, "status");
2818
+ ], L.prototype, "status");
2815
2819
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", W);
2816
2820
  customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
2817
2821
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", it);
2818
2822
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", N);
2819
- customElements.get("ace-widget") || customElements.define("ace-widget", U);
2820
- const qi = async (r, t, e = {}) => {
2821
- const i = new Li(r);
2823
+ customElements.get("ace-widget") || customElements.define("ace-widget", L);
2824
+ const Gi = async (r, t, e = {}) => {
2825
+ const i = new ji(r);
2822
2826
  e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
2823
2827
  };
2824
2828
  export {
2825
- U as AceWidget,
2826
- Mi as Application,
2829
+ L as AceWidget,
2830
+ Ni as Application,
2831
+ Ai as AuthState,
2827
2832
  Dt as Container,
2828
2833
  Ui as Environment,
2829
2834
  q as HttpClient,
2830
- Li as Site,
2835
+ ji as Site,
2831
2836
  y as StorageCategory,
2832
- Ii as StorageService,
2837
+ ki as StorageService,
2833
2838
  b as Trigger,
2834
2839
  $i as WidgetComponent,
2835
- Pi as applicationContext,
2836
- qi as bootstrap,
2837
- Wi as createHttpClient
2840
+ Oi as applicationContext,
2841
+ Gi as bootstrap,
2842
+ qi as createHttpClient
2838
2843
  };