@telia-ace/widget-components-widget-header-flamingo 1.1.123-rc.9 → 1.1.123

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.
@@ -285,21 +285,21 @@ H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[it("elementPrope
285
285
  * SPDX-License-Identifier: BSD-3-Clause
286
286
  */
287
287
  const st = globalThis, bt = st.trustedTypes, Ae = bt ? bt.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, ni = "$lit$", O = `lit$${Math.random().toFixed(9).slice(2)}$`, ri = "?" + O, cs = `<${ri}>`, M = document, rt = () => M.createComment(""), ot = (i) => i === null || typeof i != "object" && typeof i != "function", ne = Array.isArray, us = (i) => ne(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", Nt = `[
288
- \f\r]`, et = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ke = /-->/g, Ce = />/g, P = RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
289
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Ee = /'/g, Oe = /"/g, oi = /^(?:script|style|textarea|title)$/i, hs = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), m = hs(1), j = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Te = /* @__PURE__ */ new WeakMap(), I = M.createTreeWalker(M, 129);
288
+ \f\r]`, tt = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ke = /-->/g, Ce = />/g, P = RegExp(`>|${Nt}(?:([^\\s"'>=/]+)(${Nt}*=${Nt}*(?:[^
289
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Ee = /'/g, Oe = /"/g, oi = /^(?:script|style|textarea|title)$/i, hs = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), m = hs(1), j = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Te = /* @__PURE__ */ new WeakMap(), L = M.createTreeWalker(M, 129);
290
290
  function ai(i, t) {
291
291
  if (!ne(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
292
292
  return Ae !== void 0 ? Ae.createHTML(t) : t;
293
293
  }
294
294
  const ds = (i, t) => {
295
295
  const e = i.length - 1, s = [];
296
- let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = et;
296
+ let n, r = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = tt;
297
297
  for (let a = 0; a < e; a++) {
298
298
  const l = i[a];
299
299
  let c, u, h = -1, d = 0;
300
- for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === et ? u[1] === "!--" ? o = ke : u[1] !== void 0 ? o = Ce : u[2] !== void 0 ? (oi.test(u[2]) && (n = RegExp("</" + u[2], "g")), o = P) : u[3] !== void 0 && (o = P) : o === P ? u[0] === ">" ? (o = n ?? et, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? P : u[3] === '"' ? Oe : Ee) : o === Oe || o === Ee ? o = P : o === ke || o === Ce ? o = et : (o = P, n = void 0);
300
+ for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); ) d = o.lastIndex, o === tt ? u[1] === "!--" ? o = ke : u[1] !== void 0 ? o = Ce : u[2] !== void 0 ? (oi.test(u[2]) && (n = RegExp("</" + u[2], "g")), o = P) : u[3] !== void 0 && (o = P) : o === P ? u[0] === ">" ? (o = n ?? tt, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? P : u[3] === '"' ? Oe : Ee) : o === Oe || o === Ee ? o = P : o === ke || o === Ce ? o = tt : (o = P, n = void 0);
301
301
  const f = o === P && i[a + 1].startsWith("/>") ? " " : "";
302
- r += o === et ? l + cs : h >= 0 ? (s.push(c), l.slice(0, h) + ni + l.slice(h) + O + f) : l + O + (h === -2 ? a : f);
302
+ r += o === tt ? l + cs : h >= 0 ? (s.push(c), l.slice(0, h) + ni + l.slice(h) + O + f) : l + O + (h === -2 ? a : f);
303
303
  }
304
304
  return [ai(i, r + (i[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), s];
305
305
  };
@@ -309,11 +309,11 @@ let qt = class li {
309
309
  this.parts = [];
310
310
  let r = 0, o = 0;
311
311
  const a = t.length - 1, l = this.parts, [c, u] = ds(t, e);
312
- if (this.el = li.createElement(c, s), I.currentNode = this.el.content, e === 2 || e === 3) {
312
+ if (this.el = li.createElement(c, s), L.currentNode = this.el.content, e === 2 || e === 3) {
313
313
  const h = this.el.content.firstChild;
314
314
  h.replaceWith(...h.childNodes);
315
315
  }
316
- for (; (n = I.nextNode()) !== null && l.length < a; ) {
316
+ for (; (n = L.nextNode()) !== null && l.length < a; ) {
317
317
  if (n.nodeType === 1) {
318
318
  if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(ni)) {
319
319
  const d = u[o++], f = n.getAttribute(h).split(O), v = /([.?@])?(.*)/.exec(d);
@@ -323,7 +323,7 @@ let qt = class li {
323
323
  const h = n.textContent.split(O), d = h.length - 1;
324
324
  if (d > 0) {
325
325
  n.textContent = bt ? bt.emptyScript : "";
326
- for (let f = 0; f < d; f++) n.append(h[f], rt()), I.nextNode(), l.push({ type: 2, index: ++r });
326
+ for (let f = 0; f < d; f++) n.append(h[f], rt()), L.nextNode(), l.push({ type: 2, index: ++r });
327
327
  n.append(h[d], rt());
328
328
  }
329
329
  }
@@ -340,12 +340,12 @@ let qt = class li {
340
340
  return s.innerHTML = t, s;
341
341
  }
342
342
  };
343
- function Z(i, t, e = i, s) {
343
+ function K(i, t, e = i, s) {
344
344
  var o, a;
345
345
  if (t === j) return t;
346
346
  let n = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
347
347
  const r = ot(t) ? void 0 : t._$litDirective$;
348
- return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = Z(i, n._$AS(i, t.values), n, s)), t;
348
+ return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(i), n._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = n : e._$Cl = n), n !== void 0 && (t = K(i, n._$AS(i, t.values), n, s)), t;
349
349
  }
350
350
  class fs {
351
351
  constructor(t, e) {
@@ -359,16 +359,16 @@ class fs {
359
359
  }
360
360
  u(t) {
361
361
  const { el: { content: e }, parts: s } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? M).importNode(e, !0);
362
- I.currentNode = n;
363
- let r = I.nextNode(), o = 0, a = 0, l = s[0];
362
+ L.currentNode = n;
363
+ let r = L.nextNode(), o = 0, a = 0, l = s[0];
364
364
  for (; l !== void 0; ) {
365
365
  if (o === l.index) {
366
366
  let c;
367
367
  l.type === 2 ? c = new ct(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new $s(r, this, t)), this._$AV.push(c), l = s[++a];
368
368
  }
369
- o !== (l == null ? void 0 : l.index) && (r = I.nextNode(), o++);
369
+ o !== (l == null ? void 0 : l.index) && (r = L.nextNode(), o++);
370
370
  }
371
- return I.currentNode = M, n;
371
+ return L.currentNode = M, n;
372
372
  }
373
373
  p(t) {
374
374
  let e = 0;
@@ -395,7 +395,7 @@ class ct {
395
395
  return this._$AB;
396
396
  }
397
397
  _$AI(t, e = this) {
398
- t = Z(this, t, e), ot(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : us(t) ? this.k(t) : this._(t);
398
+ t = K(this, t, e), ot(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : us(t) ? this.k(t) : this._(t);
399
399
  }
400
400
  O(t) {
401
401
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -451,11 +451,11 @@ class Tt {
451
451
  _$AI(t, e = this, s, n) {
452
452
  const r = this.strings;
453
453
  let o = !1;
454
- if (r === void 0) t = Z(this, t, e, 0), o = !ot(t) || t !== this._$AH && t !== j, o && (this._$AH = t);
454
+ if (r === void 0) t = K(this, t, e, 0), o = !ot(t) || t !== this._$AH && t !== j, o && (this._$AH = t);
455
455
  else {
456
456
  const a = t;
457
457
  let l, c;
458
- for (t = r[0], l = 0; l < r.length - 1; l++) c = Z(this, a[s + l], e, l), c === j && (c = this._$AH[l]), o || (o = !ot(c) || c !== this._$AH[l]), c === p ? t = p : t !== p && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
458
+ for (t = r[0], l = 0; l < r.length - 1; l++) c = K(this, a[s + l], e, l), c === j && (c = this._$AH[l]), o || (o = !ot(c) || c !== this._$AH[l]), c === p ? t = p : t !== p && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
459
459
  }
460
460
  o && !n && this.j(t);
461
461
  }
@@ -484,7 +484,7 @@ class vs extends Tt {
484
484
  super(t, e, s, n, r), this.type = 5;
485
485
  }
486
486
  _$AI(t, e = this) {
487
- if ((t = Z(this, t, e, 0) ?? p) === j) return;
487
+ if ((t = K(this, t, e, 0) ?? p) === j) return;
488
488
  const s = this._$AH, n = t === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== p && (s === p || n);
489
489
  n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
490
490
  }
@@ -501,7 +501,7 @@ class $s {
501
501
  return this._$AM._$AU;
502
502
  }
503
503
  _$AI(t) {
504
- Z(this, t);
504
+ K(this, t);
505
505
  }
506
506
  }
507
507
  const Ft = st.litHtmlPolyfillSupport;
@@ -721,7 +721,7 @@ var Gt = function(i, t) {
721
721
  for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (e[n] = s[n]);
722
722
  }, Gt(i, t);
723
723
  };
724
- function V(i, t) {
724
+ function Q(i, t) {
725
725
  if (typeof t != "function" && t !== null)
726
726
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
727
727
  Gt(i, t);
@@ -817,7 +817,7 @@ function di(i, t) {
817
817
  return { value: c[0] ? c[1] : void 0, done: !0 };
818
818
  }
819
819
  }
820
- function X(i) {
820
+ function Z(i) {
821
821
  var t = typeof Symbol == "function" && Symbol.iterator, e = t && i[t], s = 0;
822
822
  if (e) return e.call(i);
823
823
  if (i && typeof i.length == "number") return {
@@ -849,8 +849,8 @@ function Kt(i, t, e) {
849
849
  (r || !(s in t)) && (r || (r = Array.prototype.slice.call(t, 0, s)), r[s] = t[s]);
850
850
  return i.concat(r || Array.prototype.slice.call(t));
851
851
  }
852
- function G(i) {
853
- return this instanceof G ? (this.v = i, this) : new G(i);
852
+ function q(i) {
853
+ return this instanceof q ? (this.v = i, this) : new q(i);
854
854
  }
855
855
  function Cs(i, t, e) {
856
856
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
@@ -865,8 +865,8 @@ function Cs(i, t, e) {
865
865
  }
866
866
  function a(f, v) {
867
867
  s[f] && (n[f] = function(g) {
868
- return new Promise(function(pt, tt) {
869
- r.push([f, g, pt, tt]) > 1 || l(f, g);
868
+ return new Promise(function(pt, V) {
869
+ r.push([f, g, pt, V]) > 1 || l(f, g);
870
870
  });
871
871
  }, v && (n[f] = v(n[f])));
872
872
  }
@@ -878,7 +878,7 @@ function Cs(i, t, e) {
878
878
  }
879
879
  }
880
880
  function c(f) {
881
- f.value instanceof G ? Promise.resolve(f.value.v).then(u, h) : d(r[0][2], f);
881
+ f.value instanceof q ? Promise.resolve(f.value.v).then(u, h) : d(r[0][2], f);
882
882
  }
883
883
  function u(f) {
884
884
  l("next", f);
@@ -893,7 +893,7 @@ function Cs(i, t, e) {
893
893
  function Es(i) {
894
894
  if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
895
895
  var t = i[Symbol.asyncIterator], e;
896
- return t ? t.call(i) : (i = typeof X == "function" ? X(i) : i[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
896
+ return t ? t.call(i) : (i = typeof Z == "function" ? Z(i) : i[Symbol.iterator](), e = {}, s("next"), s("throw"), s("return"), e[Symbol.asyncIterator] = function() {
897
897
  return this;
898
898
  }, e);
899
899
  function s(r) {
@@ -945,7 +945,7 @@ var Pt = (function() {
945
945
  if (o)
946
946
  if (this._parentage = null, Array.isArray(o))
947
947
  try {
948
- for (var a = X(o), l = a.next(); !l.done; l = a.next()) {
948
+ for (var a = Z(o), l = a.next(); !l.done; l = a.next()) {
949
949
  var c = l.value;
950
950
  c.remove(this);
951
951
  }
@@ -971,7 +971,7 @@ var Pt = (function() {
971
971
  if (h) {
972
972
  this._finalizers = null;
973
973
  try {
974
- for (var d = X(h), f = d.next(); !f.done; f = d.next()) {
974
+ for (var d = Z(h), f = d.next(); !f.done; f = d.next()) {
975
975
  var v = f.value;
976
976
  try {
977
977
  Pe(v);
@@ -1046,16 +1046,16 @@ function vi(i) {
1046
1046
  throw i;
1047
1047
  });
1048
1048
  }
1049
- function Le() {
1049
+ function Ie() {
1050
1050
  }
1051
1051
  function mt(i) {
1052
1052
  i();
1053
1053
  }
1054
1054
  var ae = (function(i) {
1055
- V(t, i);
1055
+ Q(t, i);
1056
1056
  function t(e) {
1057
1057
  var s = i.call(this) || this;
1058
- return s.isStopped = !1, e ? (s.destination = e, gi(e) && e.add(s)) : s.destination = Is, s;
1058
+ return s.isStopped = !1, e ? (s.destination = e, gi(e) && e.add(s)) : s.destination = Ls, s;
1059
1059
  }
1060
1060
  return t.create = function(e, s, n) {
1061
1061
  return new Xt(e, s, n);
@@ -1114,7 +1114,7 @@ var ae = (function(i) {
1114
1114
  }
1115
1115
  }, i;
1116
1116
  })(), Xt = (function(i) {
1117
- V(t, i);
1117
+ Q(t, i);
1118
1118
  function t(e, s, n) {
1119
1119
  var r = i.call(this) || this, o;
1120
1120
  return $(e) || !e ? o = {
@@ -1128,14 +1128,14 @@ var ae = (function(i) {
1128
1128
  function gt(i) {
1129
1129
  vi(i);
1130
1130
  }
1131
- function Ls(i) {
1131
+ function Is(i) {
1132
1132
  throw i;
1133
1133
  }
1134
- var Is = {
1134
+ var Ls = {
1135
1135
  closed: !0,
1136
- next: Le,
1137
- error: Ls,
1138
- complete: Le
1136
+ next: Ie,
1137
+ error: Is,
1138
+ complete: Ie
1139
1139
  }, le = (function() {
1140
1140
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
1141
1141
  })();
@@ -1170,7 +1170,7 @@ var _ = (function() {
1170
1170
  }
1171
1171
  }, i.prototype.forEach = function(t, e) {
1172
1172
  var s = this;
1173
- return e = Ie(e), new e(function(n, r) {
1173
+ return e = Le(e), new e(function(n, r) {
1174
1174
  var o = new Xt({
1175
1175
  next: function(a) {
1176
1176
  try {
@@ -1195,7 +1195,7 @@ var _ = (function() {
1195
1195
  return Rs(t)(this);
1196
1196
  }, i.prototype.toPromise = function(t) {
1197
1197
  var e = this;
1198
- return t = Ie(t), new t(function(s, n) {
1198
+ return t = Le(t), new t(function(s, n) {
1199
1199
  var r;
1200
1200
  e.subscribe(function(o) {
1201
1201
  return r = o;
@@ -1209,7 +1209,7 @@ var _ = (function() {
1209
1209
  return new i(t);
1210
1210
  }, i;
1211
1211
  })();
1212
- function Ie(i) {
1212
+ function Le(i) {
1213
1213
  var t;
1214
1214
  return (t = i ?? Os.Promise) !== null && t !== void 0 ? t : Promise;
1215
1215
  }
@@ -1222,7 +1222,7 @@ function Ms(i) {
1222
1222
  function js(i) {
1223
1223
  return $(i == null ? void 0 : i.lift);
1224
1224
  }
1225
- function Lt(i) {
1225
+ function It(i) {
1226
1226
  return function(t) {
1227
1227
  if (js(t))
1228
1228
  return t.lift(function(e) {
@@ -1239,7 +1239,7 @@ function St(i, t, e, s, n) {
1239
1239
  return new Ns(i, t, e, s, n);
1240
1240
  }
1241
1241
  var Ns = (function(i) {
1242
- V(t, i);
1242
+ Q(t, i);
1243
1243
  function t(e, s, n, r, o, a) {
1244
1244
  var l = i.call(this, e) || this;
1245
1245
  return l.onFinalize = o, l.shouldUnsubscribe = a, l._next = s ? function(c) {
@@ -1278,7 +1278,7 @@ var Ns = (function(i) {
1278
1278
  i(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
1279
1279
  };
1280
1280
  }), ut = (function(i) {
1281
- V(t, i);
1281
+ Q(t, i);
1282
1282
  function t() {
1283
1283
  var e = i.call(this) || this;
1284
1284
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
@@ -1296,7 +1296,7 @@ var Ns = (function(i) {
1296
1296
  if (s._throwIfClosed(), !s.isStopped) {
1297
1297
  s.currentObservers || (s.currentObservers = Array.from(s.observers));
1298
1298
  try {
1299
- for (var o = X(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
1299
+ for (var o = Z(s.currentObservers), a = o.next(); !a.done; a = o.next()) {
1300
1300
  var l = a.value;
1301
1301
  l.next(e);
1302
1302
  }
@@ -1357,7 +1357,7 @@ var Ns = (function(i) {
1357
1357
  return new Re(e, s);
1358
1358
  }, t;
1359
1359
  })(_), Re = (function(i) {
1360
- V(t, i);
1360
+ Q(t, i);
1361
1361
  function t(e, s) {
1362
1362
  var n = i.call(this) || this;
1363
1363
  return n.destination = e, n.source = s, n;
@@ -1376,7 +1376,7 @@ var Ns = (function(i) {
1376
1376
  return (n = (s = this.source) === null || s === void 0 ? void 0 : s.subscribe(e)) !== null && n !== void 0 ? n : pi;
1377
1377
  }, t;
1378
1378
  })(ut), mi = (function(i) {
1379
- V(t, i);
1379
+ Q(t, i);
1380
1380
  function t(e) {
1381
1381
  var s = i.call(this) || this;
1382
1382
  return s._value = e, s;
@@ -1445,13 +1445,13 @@ function Ci(i) {
1445
1445
  case 1:
1446
1446
  o.trys.push([1, , 9, 10]), o.label = 2;
1447
1447
  case 2:
1448
- return [4, G(e.read())];
1448
+ return [4, q(e.read())];
1449
1449
  case 3:
1450
- return s = o.sent(), n = s.value, r = s.done, r ? [4, G(void 0)] : [3, 5];
1450
+ return s = o.sent(), n = s.value, r = s.done, r ? [4, q(void 0)] : [3, 5];
1451
1451
  case 4:
1452
1452
  return [2, o.sent()];
1453
1453
  case 5:
1454
- return [4, G(n)];
1454
+ return [4, q(n)];
1455
1455
  case 6:
1456
1456
  return [4, o.sent()];
1457
1457
  case 7:
@@ -1516,7 +1516,7 @@ function Ks(i) {
1516
1516
  return new _(function(t) {
1517
1517
  var e, s;
1518
1518
  try {
1519
- for (var n = X(i), r = n.next(); !r.done; r = n.next()) {
1519
+ for (var n = Z(i), r = n.next(); !r.done; r = n.next()) {
1520
1520
  var o = r.value;
1521
1521
  if (t.next(o), t.closed)
1522
1522
  return;
@@ -1590,7 +1590,7 @@ function U(i, t, e, s, n) {
1590
1590
  return r;
1591
1591
  }
1592
1592
  function Ti(i, t) {
1593
- return t === void 0 && (t = 0), Lt(function(e, s) {
1593
+ return t === void 0 && (t = 0), It(function(e, s) {
1594
1594
  e.subscribe(St(s, function(n) {
1595
1595
  return U(s, i, function() {
1596
1596
  return s.next(n);
@@ -1607,7 +1607,7 @@ function Ti(i, t) {
1607
1607
  });
1608
1608
  }
1609
1609
  function Pi(i, t) {
1610
- return t === void 0 && (t = 0), Lt(function(e, s) {
1610
+ return t === void 0 && (t = 0), It(function(e, s) {
1611
1611
  s.add(i.schedule(function() {
1612
1612
  return e.subscribe(s);
1613
1613
  }, t));
@@ -1616,10 +1616,10 @@ function Pi(i, t) {
1616
1616
  function Qs(i, t) {
1617
1617
  return J(i).pipe(Pi(t), Ti(t));
1618
1618
  }
1619
- function Vs(i, t) {
1619
+ function Js(i, t) {
1620
1620
  return J(i).pipe(Pi(t), Ti(t));
1621
1621
  }
1622
- function Js(i, t) {
1622
+ function Vs(i, t) {
1623
1623
  return new _(function(e) {
1624
1624
  var s = 0;
1625
1625
  return t.schedule(function() {
@@ -1646,7 +1646,7 @@ function tn(i, t) {
1646
1646
  };
1647
1647
  });
1648
1648
  }
1649
- function Li(i, t) {
1649
+ function Ii(i, t) {
1650
1650
  if (!i)
1651
1651
  throw new Error("Iterable cannot be null");
1652
1652
  return new _(function(e) {
@@ -1661,18 +1661,18 @@ function Li(i, t) {
1661
1661
  });
1662
1662
  }
1663
1663
  function en(i, t) {
1664
- return Li(Ci(i), t);
1664
+ return Ii(Ci(i), t);
1665
1665
  }
1666
1666
  function sn(i, t) {
1667
1667
  if (i != null) {
1668
1668
  if (_i(i))
1669
1669
  return Qs(i, t);
1670
1670
  if (bi(i))
1671
- return Js(i, t);
1672
- if (wi(i))
1673
1671
  return Vs(i, t);
1672
+ if (wi(i))
1673
+ return Js(i, t);
1674
1674
  if (xi(i))
1675
- return Li(i, t);
1675
+ return Ii(i, t);
1676
1676
  if (ki(i))
1677
1677
  return tn(i, t);
1678
1678
  if (Ei(i))
@@ -1684,7 +1684,7 @@ function nn(i, t) {
1684
1684
  return t ? sn(i, t) : J(i);
1685
1685
  }
1686
1686
  function rn(i, t) {
1687
- return Lt(function(e, s) {
1687
+ return It(function(e, s) {
1688
1688
  var n = 0;
1689
1689
  e.subscribe(St(s, function(r) {
1690
1690
  s.next(i.call(t, r, n++));
@@ -1699,19 +1699,19 @@ function on(i, t, e, s, n, r, o, a) {
1699
1699
  }, v = function(g) {
1700
1700
  c++;
1701
1701
  var pt = !1;
1702
- J(e(g, u++)).subscribe(St(t, function(tt) {
1703
- t.next(tt);
1702
+ J(e(g, u++)).subscribe(St(t, function(V) {
1703
+ t.next(V);
1704
1704
  }, function() {
1705
1705
  pt = !0;
1706
1706
  }, void 0, function() {
1707
1707
  if (pt)
1708
1708
  try {
1709
1709
  c--;
1710
- for (var tt = function() {
1710
+ for (var V = function() {
1711
1711
  var Mt = l.shift();
1712
1712
  o || v(Mt);
1713
1713
  }; l.length && c < s; )
1714
- tt();
1714
+ V();
1715
1715
  d();
1716
1716
  } catch (Mt) {
1717
1717
  t.error(Mt);
@@ -1723,17 +1723,17 @@ function on(i, t, e, s, n, r, o, a) {
1723
1723
  })), function() {
1724
1724
  };
1725
1725
  }
1726
- function Ii(i, t, e) {
1727
- return e === void 0 && (e = 1 / 0), $(t) ? Ii(function(s, n) {
1726
+ function Li(i, t, e) {
1727
+ return e === void 0 && (e = 1 / 0), $(t) ? Li(function(s, n) {
1728
1728
  return rn(function(r, o) {
1729
1729
  return t(s, r, n, o);
1730
1730
  })(J(i(s, n)));
1731
- }, e) : (typeof t == "number" && (e = t), Lt(function(s, n) {
1731
+ }, e) : (typeof t == "number" && (e = t), It(function(s, n) {
1732
1732
  return on(s, n, i, e);
1733
1733
  }));
1734
1734
  }
1735
1735
  function an(i) {
1736
- return i === void 0 && (i = 1 / 0), Ii($i, i);
1736
+ return i === void 0 && (i = 1 / 0), Li($i, i);
1737
1737
  }
1738
1738
  function ln() {
1739
1739
  for (var i = [], t = 0; t < arguments.length; t++)
@@ -2124,7 +2124,7 @@ const ve = class ve extends A {
2124
2124
  return m`<div
2125
2125
  class=${He({
2126
2126
  "trigger-container": !0,
2127
- hidden: !this.triggerVisible
2127
+ "ace-hidden": !this.triggerVisible
2128
2128
  })}
2129
2129
  ${xt(this.containerRef)}
2130
2130
  >
@@ -2208,7 +2208,7 @@ ve.styles = [
2208
2208
  gap: 1rem;
2209
2209
  }
2210
2210
 
2211
- .trigger-container.hidden {
2211
+ .trigger-container.ace-hidden {
2212
2212
  display: none;
2213
2213
  }
2214
2214
 
@@ -2335,7 +2335,7 @@ ht([
2335
2335
  ht([
2336
2336
  S()
2337
2337
  ], E.prototype, "icon");
2338
- var wn = Object.defineProperty, L = (i, t, e, s) => {
2338
+ var wn = Object.defineProperty, I = (i, t, e, s) => {
2339
2339
  for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
2340
2340
  (o = i[r]) && (n = o(t, e, n) || n);
2341
2341
  return n && wn(t, e, n), n;
@@ -2381,19 +2381,19 @@ const Ui = (i) => {
2381
2381
  `
2382
2382
  ];
2383
2383
  let t = e;
2384
- return L([
2384
+ return I([
2385
2385
  w()
2386
- ], t.prototype, "properties"), L([
2386
+ ], t.prototype, "properties"), I([
2387
2387
  w()
2388
- ], t.prototype, "context"), L([
2388
+ ], t.prototype, "context"), I([
2389
2389
  w()
2390
- ], t.prototype, "layout"), L([
2390
+ ], t.prototype, "layout"), I([
2391
2391
  w()
2392
- ], t.prototype, "name"), L([
2392
+ ], t.prototype, "name"), I([
2393
2393
  w()
2394
- ], t.prototype, "type"), L([
2394
+ ], t.prototype, "type"), I([
2395
2395
  w({ attribute: !1 })
2396
- ], t.prototype, "application"), L([
2396
+ ], t.prototype, "application"), I([
2397
2397
  w({ attribute: !1 })
2398
2398
  ], t.prototype, "parent"), t;
2399
2399
  }, $e = class $e extends Ui(A) {
@@ -2420,7 +2420,7 @@ function* _n(i, t) {
2420
2420
  for (const s of i) yield t(s, e++);
2421
2421
  }
2422
2422
  }
2423
- var ce = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(ce || {}), z = /* @__PURE__ */ ((i) => (i.NonAuthenticated = "non-authenticated", i.Authenticating = "authenticating", i.Authenticated = "authenticated", i.ChatEnded = "chat-ended", i))(z || {});
2423
+ var ce = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(ce || {}), et = /* @__PURE__ */ ((i) => (i.NonAuthenticated = "non-authenticated", i.Authenticating = "authenticating", i.Authenticated = "authenticated", i.ChatEnded = "chat-ended", i))(et || {});
2424
2424
  /**
2425
2425
  * @license
2426
2426
  * Copyright 2021 Google LLC
@@ -2568,9 +2568,8 @@ const En = "application", me = class me extends A {
2568
2568
  this.applyBranding(), this.applyStyles();
2569
2569
  }
2570
2570
  render() {
2571
- var s, n;
2572
- const t = this.application.settings.components.conversation;
2573
- return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ce.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"), m`<div class="widget-container" ${xt(this.wrapperRef)}>
2571
+ var e, s, n;
2572
+ return ((n = (s = (e = this.application.settings) == null ? void 0 : e.agentConfig) == null ? void 0 : s.live) == null ? void 0 : n.isThirdPartyWidget) ?? !1 ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ce.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"), m`<div class="widget-container" ${xt(this.wrapperRef)}>
2574
2573
  ${_n(this.nodes, (r) => r)}
2575
2574
  </div>`;
2576
2575
  }
@@ -2725,19 +2724,19 @@ me.styles = B`
2725
2724
  }
2726
2725
  }
2727
2726
 
2728
- :host(.expanded) {
2727
+ :host(.ace-expanded) {
2729
2728
  opacity: 1;
2730
2729
  animation: slideUp 0.3s linear;
2731
2730
  }
2732
2731
 
2733
- :host(.hidden) {
2732
+ :host(.ace-hidden) {
2734
2733
  opacity: 0;
2735
2734
  animation: slideDown 0.3s linear;
2736
2735
  pointer-events: none;
2737
2736
  }
2738
2737
 
2739
- :host(.hidden.embedded),
2740
- :host(.expanded.embedded) {
2738
+ :host(.ace-hidden.embedded),
2739
+ :host(.ace-expanded.embedded) {
2741
2740
  animation: none;
2742
2741
  }
2743
2742
  `;
@@ -2793,22 +2792,22 @@ ye.styles = [
2793
2792
  }
2794
2793
  `
2795
2794
  ];
2796
- let Q = ye;
2795
+ let X = ye;
2797
2796
  ue([
2798
2797
  w({ attribute: !0 })
2799
- ], Q.prototype, "name");
2798
+ ], X.prototype, "name");
2800
2799
  ue([
2801
2800
  S()
2802
- ], Q.prototype, "widget");
2801
+ ], X.prototype, "widget");
2803
2802
  ue([
2804
2803
  S()
2805
- ], Q.prototype, "status");
2804
+ ], X.prototype, "status");
2806
2805
  customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", At);
2807
2806
  customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
2808
2807
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Qt);
2809
2808
  customElements.get("ace-wrapper") || customElements.define("ace-wrapper", at);
2810
- customElements.get("ace-widget") || customElements.define("ace-widget", Q);
2811
- const D = {
2809
+ customElements.get("ace-widget") || customElements.define("ace-widget", X);
2810
+ const z = {
2812
2811
  allRenderFn: !1,
2813
2812
  cmpDidLoad: !0,
2814
2813
  cmpDidUnload: !1,
@@ -2892,7 +2891,7 @@ const D = {
2892
2891
  transformTagName: !1,
2893
2892
  attachStyles: !0
2894
2893
  };
2895
- let W, ji, It, Ni = !1, kt = !1, he = !1, b = !1, De = null, Vt = !1;
2894
+ let D, ji, Lt, Ni = !1, kt = !1, he = !1, b = !1, De = null, Jt = !1;
2896
2895
  const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, Fi = Rt.HTMLElement || class {
2897
2896
  }, y = {
2898
2897
  $flags$: 0,
@@ -2913,7 +2912,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
2913
2912
  } catch {
2914
2913
  }
2915
2914
  return i;
2916
- })(), Pn = (i) => Promise.resolve(i), Ln = /* @__PURE__ */ (() => {
2915
+ })(), Pn = (i) => Promise.resolve(i), In = /* @__PURE__ */ (() => {
2917
2916
  try {
2918
2917
  return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
2919
2918
  } catch {
@@ -2921,12 +2920,12 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
2921
2920
  return !1;
2922
2921
  })(), Bi = (i, t, e, s) => {
2923
2922
  e && e.map(([n, r, o]) => {
2924
- const a = Rn(i, n), l = In(t, o), c = Un(n);
2923
+ const a = Rn(i, n), l = Ln(t, o), c = Un(n);
2925
2924
  y.ael(a, r, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => y.rel(a, r, l, c));
2926
2925
  });
2927
- }, In = (i, t) => (e) => {
2926
+ }, Ln = (i, t) => (e) => {
2928
2927
  try {
2929
- D.lazyLoad || i.$hostElement$[t](e);
2928
+ z.lazyLoad || i.$hostElement$[t](e);
2930
2929
  } catch (s) {
2931
2930
  dt(s);
2932
2931
  }
@@ -2936,7 +2935,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
2936
2935
  } : (i & 2) !== 0, We = "http://www.w3.org/1999/xlink", N = (i, t = "") => () => {
2937
2936
  }, qe = /* @__PURE__ */ new WeakMap(), Mn = (i, t, e) => {
2938
2937
  let s = Ot.get(i);
2939
- Ln && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, Ot.set(i, s);
2938
+ In && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, Ot.set(i, s);
2940
2939
  }, jn = (i, t, e, s) => {
2941
2940
  let n = Hi(t, e), r = Ot.get(n);
2942
2941
  if (i = i.nodeType === 11 ? i : k, r)
@@ -2949,7 +2948,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
2949
2948
  }, Nn = (i) => {
2950
2949
  const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = N("attachStyles", t.$tagName$), r = jn(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, i.$modeName$);
2951
2950
  s & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), s & 2 && e.classList.add(r + "-s")), n();
2952
- }, Hi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Fn = (i) => fr.map((t) => t(i)).find((t) => !!t), Ge = {}, Bn = "http://www.w3.org/2000/svg", Hn = "http://www.w3.org/1999/xhtml", zn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"), Y = (i, t, ...e) => {
2951
+ }, Hi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Fn = (i) => fr.map((t) => t(i)).find((t) => !!t), Ge = {}, Bn = "http://www.w3.org/2000/svg", Hn = "http://www.w3.org/1999/xhtml", zn = (i) => i != null, de = (i) => (i = typeof i, i === "object" || i === "function"), G = (i, t, ...e) => {
2953
2952
  let s = null, n = null, r = null, o = !1, a = !1, l = [];
2954
2953
  const c = (h) => {
2955
2954
  for (let d = 0; d < h.length; d++)
@@ -2988,13 +2987,13 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
2988
2987
  }), qn = (i) => {
2989
2988
  if (typeof i.vtag == "function") {
2990
2989
  const e = Object.assign({}, i.vattrs);
2991
- return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname), Y(i.vtag, e, ...i.vchildren || []);
2990
+ return i.vkey && (e.key = i.vkey), i.vname && (e.name = i.vname), G(i.vtag, e, ...i.vchildren || []);
2992
2991
  }
2993
2992
  const t = Ct(i.vtag, i.vtext);
2994
2993
  return t.$attrs$ = i.vattrs, t.$children$ = i.vchildren, t.$key$ = i.vkey, t.$name$ = i.vname, t;
2995
2994
  }, Ke = (i, t, e, s, n, r) => {
2996
2995
  if (e !== s) {
2997
- let o = Ve(i, t), a = t.toLowerCase();
2996
+ let o = Je(i, t), a = t.toLowerCase();
2998
2997
  if (t === "class") {
2999
2998
  const l = i.classList, c = Ze(e), u = Ze(s);
3000
2999
  l.remove(...c.filter((h) => h && !u.includes(h))), l.add(...u.filter((h) => h && !c.includes(h)));
@@ -3007,7 +3006,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3007
3006
  if (t === "ref")
3008
3007
  s && s(i);
3009
3008
  else if (!i.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
3010
- t[2] === "-" ? t = t.slice(3) : Ve(Rt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && y.rel(i, t, e, !1), s && y.ael(i, t, s, !1);
3009
+ t[2] === "-" ? t = t.slice(3) : Je(Rt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && y.rel(i, t, e, !1), s && y.ael(i, t, s, !1);
3011
3010
  else {
3012
3011
  const l = de(s);
3013
3012
  if ((o || l && s !== null) && !n)
@@ -3032,7 +3031,7 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3032
3031
  Ke(n, s, r[s], o[s], e, t.$flags$);
3033
3032
  }, Et = (i, t, e, s) => {
3034
3033
  let n = t.$children$[e], r = 0, o, a, l;
3035
- if (Ni || (he = !0, n.$tag$ === "slot" && (W && s.classList.add(W + "-s"), n.$flags$ |= n.$children$ ? (
3034
+ if (Ni || (he = !0, n.$tag$ === "slot" && (D && s.classList.add(D + "-s"), n.$flags$ |= n.$children$ ? (
3036
3035
  // slot element has fallback content
3037
3036
  2
3038
3037
  ) : (
@@ -3043,23 +3042,23 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3043
3042
  else if (n.$flags$ & 1)
3044
3043
  o = n.$elm$ = k.createTextNode("");
3045
3044
  else {
3046
- if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ? Bn : Hn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), b && n.$tag$ === "foreignObject" && (b = !1), zi(null, n, b), zn(W) && o["s-si"] !== W && o.classList.add(o["s-si"] = W), n.$children$)
3045
+ if (b || (b = n.$tag$ === "svg"), o = n.$elm$ = k.createElementNS(b ? Bn : Hn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), b && n.$tag$ === "foreignObject" && (b = !1), zi(null, n, b), zn(D) && o["s-si"] !== D && o.classList.add(o["s-si"] = D), n.$children$)
3047
3046
  for (r = 0; r < n.$children$.length; ++r)
3048
3047
  a = Et(i, n, r, o), a && o.appendChild(a);
3049
3048
  n.$tag$ === "svg" ? b = !1 : o.tagName === "foreignObject" && (b = !0);
3050
3049
  }
3051
- return o["s-hn"] = It, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ji, o["s-sn"] = n.$name$ || "", l = i && i.$children$ && i.$children$[e], l && l.$tag$ === n.$tag$ && i.$elm$ && lt(i.$elm$, !1)), o;
3050
+ return o["s-hn"] = Lt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = ji, o["s-sn"] = n.$name$ || "", l = i && i.$children$ && i.$children$[e], l && l.$tag$ === n.$tag$ && i.$elm$ && lt(i.$elm$, !1)), o;
3052
3051
  }, lt = (i, t) => {
3053
3052
  y.$flags$ |= 1;
3054
3053
  const e = i.childNodes;
3055
3054
  for (let s = e.length - 1; s >= 0; s--) {
3056
3055
  const n = e[s];
3057
- n["s-hn"] !== It && n["s-ol"] && (qi(n).insertBefore(n, pe(n)), n["s-ol"].remove(), n["s-ol"] = void 0, he = !0), t && lt(n, t);
3056
+ n["s-hn"] !== Lt && n["s-ol"] && (qi(n).insertBefore(n, pe(n)), n["s-ol"].remove(), n["s-ol"] = void 0, he = !0), t && lt(n, t);
3058
3057
  }
3059
3058
  y.$flags$ &= -2;
3060
3059
  }, Di = (i, t, e, s, n, r) => {
3061
3060
  let o = i["s-cr"] && i["s-cr"].parentNode || i, a;
3062
- for (o.shadowRoot && o.tagName === It && (o = o.shadowRoot); n <= r; ++n)
3061
+ for (o.shadowRoot && o.tagName === Lt && (o = o.shadowRoot); n <= r; ++n)
3063
3062
  s[n] && (a = Et(null, e, n, i), a && (s[n].$elm$ = a, o.insertBefore(a, pe(t))));
3064
3063
  }, Wi = (i, t, e, s, n) => {
3065
3064
  for (; t <= e; ++t)
@@ -3076,23 +3075,23 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3076
3075
  else if (f == null)
3077
3076
  f = s[--h];
3078
3077
  else if (vt(c, d))
3079
- q(c, d), c = t[++n], d = s[++r];
3078
+ W(c, d), c = t[++n], d = s[++r];
3080
3079
  else if (vt(u, f))
3081
- q(u, f), u = t[--l], f = s[--h];
3080
+ W(u, f), u = t[--l], f = s[--h];
3082
3081
  else if (vt(c, f))
3083
- (c.$tag$ === "slot" || f.$tag$ === "slot") && lt(c.$elm$.parentNode, !1), q(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
3082
+ (c.$tag$ === "slot" || f.$tag$ === "slot") && lt(c.$elm$.parentNode, !1), W(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
3084
3083
  else if (vt(u, d))
3085
- (c.$tag$ === "slot" || f.$tag$ === "slot") && lt(u.$elm$.parentNode, !1), q(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
3084
+ (c.$tag$ === "slot" || f.$tag$ === "slot") && lt(u.$elm$.parentNode, !1), W(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
3086
3085
  else {
3087
3086
  for (o = -1, a = n; a <= l; ++a)
3088
3087
  if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
3089
3088
  o = a;
3090
3089
  break;
3091
3090
  }
3092
- o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Et(t && t[r], e, o, i) : (q(g, d), t[o] = void 0, v = g.$elm$), d = s[++r]) : (v = Et(t && t[r], e, r, i), d = s[++r]), v && qi(c.$elm$).insertBefore(v, pe(c.$elm$));
3091
+ o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? v = Et(t && t[r], e, o, i) : (W(g, d), t[o] = void 0, v = g.$elm$), d = s[++r]) : (v = Et(t && t[r], e, r, i), d = s[++r]), v && qi(c.$elm$).insertBefore(v, pe(c.$elm$));
3093
3092
  }
3094
3093
  n > l ? Di(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, r, h) : r > h && Wi(t, n, l);
3095
- }, vt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, q = (i, t) => {
3094
+ }, vt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, pe = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, W = (i, t) => {
3096
3095
  const e = t.$elm$ = i.$elm$, s = i.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
3097
3096
  let a;
3098
3097
  o === null ? (b = r === "svg" ? !0 : r === "foreignObject" ? !1 : b, r === "slot" || zi(i, t, b), s !== null && n !== null ? Yn(e, s, t, n) : n !== null ? (i.$text$ !== null && (e.textContent = ""), Di(e, null, t, n, 0, n.length - 1)) : s !== null && Wi(s, 0, s.length - 1), b && r === "svg" && (b = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (e.data = o);
@@ -3132,8 +3131,8 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3132
3131
  }, Xe = (i, t) => i.nodeType === 1 ? i.getAttribute("slot") === null && t === "" || i.getAttribute("slot") === t : i["s-sn"] === t ? !0 : t === "", Ki = (i) => {
3133
3132
  i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(Ki);
3134
3133
  }, Kn = (i, t) => {
3135
- const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || Ct(null, null), r = Dn(t) ? t : Y(null, null, t);
3136
- It = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, W = e["s-sc"], ji = e["s-cr"], Ni = (s.$flags$ & 1) !== 0, kt = !1, q(n, r);
3134
+ const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || Ct(null, null), r = Dn(t) ? t : G(null, null, t);
3135
+ Lt = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, D = e["s-sc"], ji = e["s-cr"], Ni = (s.$flags$ & 1) !== 0, kt = !1, W(n, r);
3137
3136
  {
3138
3137
  if (y.$flags$ |= 1, he) {
3139
3138
  Yi(r.$elm$);
@@ -3166,11 +3165,11 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3166
3165
  }, Qn = (i, t, e) => {
3167
3166
  const s = y.ce(t, e);
3168
3167
  return i.dispatchEvent(s), s;
3169
- }, Vn = (i, t) => {
3170
- }, Zi = (i, t) => (i.$flags$ |= 16, Vn(i, i.$ancestorComponent$), vr(() => Jn(i, t))), Jn = (i, t) => {
3168
+ }, Jn = (i, t) => {
3169
+ }, Zi = (i, t) => (i.$flags$ |= 16, Jn(i, i.$ancestorComponent$), vr(() => Vn(i, t))), Vn = (i, t) => {
3171
3170
  const e = i.$hostElement$, s = N("scheduleUpdate", i.$cmpMeta$.$tagName$), n = e;
3172
3171
  let r;
3173
- return t ? r = K(n, "componentWillLoad") : r = K(n, "componentWillUpdate"), r = Qe(r, () => K(n, "componentWillRender")), s(), Qe(r, () => tr(i, n, t));
3172
+ return t ? r = Y(n, "componentWillLoad") : r = Y(n, "componentWillUpdate"), r = Qe(r, () => Y(n, "componentWillRender")), s(), Qe(r, () => tr(i, n, t));
3174
3173
  }, tr = async (i, t, e) => {
3175
3174
  const s = i.$hostElement$, n = N("update", i.$cmpMeta$.$tagName$);
3176
3175
  s["s-rc"], e && Nn(i);
@@ -3178,15 +3177,15 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3178
3177
  er(i, t, s), r(), n(), ir(i);
3179
3178
  }, er = (i, t, e) => {
3180
3179
  try {
3181
- De = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (D.hasRenderFn || D.reflect) && (D.vdomRender || D.reflect) && (D.hydrateServerSide || Kn(i, t));
3180
+ De = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (z.hasRenderFn || z.reflect) && (z.vdomRender || z.reflect) && (z.hydrateServerSide || Kn(i, t));
3182
3181
  } catch (a) {
3183
3182
  dt(a, i.$hostElement$);
3184
3183
  }
3185
3184
  return De = null, null;
3186
3185
  }, ir = (i) => {
3187
3186
  const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = N("postUpdate", t), n = e;
3188
- i.$ancestorComponent$, K(n, "componentDidRender"), i.$flags$ & 64 ? (K(n, "componentDidUpdate"), s()) : (i.$flags$ |= 64, K(n, "componentDidLoad"), s());
3189
- }, K = (i, t, e) => {
3187
+ i.$ancestorComponent$, Y(n, "componentDidRender"), i.$flags$ & 64 ? (Y(n, "componentDidUpdate"), s()) : (i.$flags$ |= 64, Y(n, "componentDidLoad"), s());
3188
+ }, Y = (i, t, e) => {
3190
3189
  if (i && i[t])
3191
3190
  try {
3192
3191
  return i[t](e);
@@ -3316,8 +3315,8 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3316
3315
  $instanceValues$: /* @__PURE__ */ new Map()
3317
3316
  };
3318
3317
  return Bi(i, e, t.$listeners$), Qi.set(i, e);
3319
- }, Ve = (i, t) => t in i, dt = (i, t) => (0, console.error)(i, t), Ot = /* @__PURE__ */ new Map(), fr = [], Je = [], Vi = [], pr = (i, t) => (e) => {
3320
- i.push(e), Vt || (Vt = !0, t && y.$flags$ & 4 ? gr(Jt) : y.raf(Jt));
3318
+ }, Je = (i, t) => t in i, dt = (i, t) => (0, console.error)(i, t), Ot = /* @__PURE__ */ new Map(), fr = [], Ve = [], Ji = [], pr = (i, t) => (e) => {
3319
+ i.push(e), Jt || (Jt = !0, t && y.$flags$ & 4 ? gr(Vt) : y.raf(Vt));
3321
3320
  }, ti = (i) => {
3322
3321
  for (let t = 0; t < i.length; t++)
3323
3322
  try {
@@ -3326,9 +3325,9 @@ const Rt = typeof window < "u" ? window : {}, k = Rt.document || { head: {} }, F
3326
3325
  dt(e);
3327
3326
  }
3328
3327
  i.length = 0;
3329
- }, Jt = () => {
3330
- ti(Je), ti(Vi), (Vt = Je.length > 0) && y.raf(Jt);
3331
- }, gr = (i) => Pn().then(i), vr = /* @__PURE__ */ pr(Vi, !0), $r = (i = {}) => {
3328
+ }, Vt = () => {
3329
+ ti(Ve), ti(Ji), (Jt = Ve.length > 0) && y.raf(Vt);
3330
+ }, gr = (i) => Pn().then(i), vr = /* @__PURE__ */ pr(Ji, !0), $r = (i = {}) => {
3332
3331
  const { content: t = "", title: e, attributes: s = [] } = i;
3333
3332
  let n = "", r = [
3334
3333
  { name: "xmlns", value: "http://www.w3.org/2000/svg" },
@@ -3353,7 +3352,7 @@ const wr = "telia-vst{display:none}", _r = /* @__PURE__ */ Xi(class extends Fi {
3353
3352
  this.vocaInternalUStats.emit(new br(this.dataTrackingId));
3354
3353
  }
3355
3354
  render() {
3356
- return Y(fe, null);
3355
+ return G(fe, null);
3357
3356
  }
3358
3357
  static get style() {
3359
3358
  return wr;
@@ -3361,7 +3360,7 @@ const wr = "telia-vst{display:none}", _r = /* @__PURE__ */ Xi(class extends Fi {
3361
3360
  }, [0, "telia-vst", {
3362
3361
  dataTrackingId: [1, "data-tracking-id"]
3363
3362
  }]);
3364
- function Ji() {
3363
+ function Vi() {
3365
3364
  if (typeof customElements > "u")
3366
3365
  return;
3367
3366
  ["telia-vst"].forEach((t) => {
@@ -3372,7 +3371,7 @@ function Ji() {
3372
3371
  }
3373
3372
  });
3374
3373
  }
3375
- Ji();
3374
+ Vi();
3376
3375
  function te() {
3377
3376
  return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
3378
3377
  }
@@ -3412,7 +3411,7 @@ const Ar = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
3412
3411
  attributes: t,
3413
3412
  title: this.allyTitle
3414
3413
  });
3415
- return Y(fe, { class: `telia-icon telia-icon--${this.size}` }, Y("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), Y("telia-vst", { dataTrackingId: this.dataTrackingId }));
3414
+ return G(fe, { class: `telia-icon telia-icon--${this.size}` }, G("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), G("telia-vst", { dataTrackingId: this.dataTrackingId }));
3416
3415
  }
3417
3416
  static get style() {
3418
3417
  return Ar;
@@ -3433,7 +3432,7 @@ function Cr() {
3433
3432
  customElements.get(t) || customElements.define(t, kr);
3434
3433
  break;
3435
3434
  case "telia-vst":
3436
- customElements.get(t) || Ji();
3435
+ customElements.get(t) || Vi();
3437
3436
  break;
3438
3437
  }
3439
3438
  });
@@ -3500,14 +3499,14 @@ class Pr {
3500
3499
  return this._options.length > 0;
3501
3500
  }
3502
3501
  }
3503
- var Lr = Object.defineProperty, ft = (i, t, e, s) => {
3502
+ var Ir = Object.defineProperty, ft = (i, t, e, s) => {
3504
3503
  for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
3505
3504
  (o = i[r]) && (n = o(t, e, n) || n);
3506
- return n && Lr(t, e, n), n;
3505
+ return n && Ir(t, e, n), n;
3507
3506
  };
3508
3507
  const ei = Ui(A), be = class be extends ei {
3509
3508
  constructor() {
3510
- super(...arguments), this.optionsIsVisible = !1, this.authState = z.NonAuthenticated, this.userName = "", this.authUrl = "", this.showAuthOptions = !0, this.shouldUseAuth = !1, this.options = new Pr(this), this.optionsRef = _t(), this.optionsTriggerRef = _t(), this.actions$ = new ut(), this.onClickOutside = (t) => {
3509
+ super(...arguments), this.optionsIsVisible = !1, this.authState = et.NonAuthenticated, this.userName = "", this.authUrl = "", this.showAuthOptions = !0, this.shouldUseAuth = !1, this.options = new Pr(this), this.optionsRef = _t(), this.optionsTriggerRef = _t(), this.actions$ = new ut(), this.onClickOutside = (t) => {
3511
3510
  !this.optionsTriggerRef.value || !this.optionsRef.value || t.composedPath().includes(this.optionsTriggerRef.value) || t.composedPath().includes(this.optionsRef.value) || (this.optionsIsVisible = !1);
3512
3511
  }, this.onGlobalKeyDown = (t) => {
3513
3512
  var e, s;
@@ -3540,23 +3539,17 @@ const ei = Ui(A), be = class be extends ei {
3540
3539
  }), this.application.storage.set("open", !1));
3541
3540
  }
3542
3541
  notify(t, e = {}) {
3543
- if (window != null && window.parent) {
3544
- const s = window.location.origin;
3545
- window.parent.postMessage(
3546
- {
3547
- type: t,
3548
- data: e
3549
- },
3550
- s
3551
- );
3552
- }
3542
+ window != null && window.parent && window.parent.postMessage(
3543
+ {
3544
+ type: t,
3545
+ data: e
3546
+ },
3547
+ "*"
3548
+ );
3553
3549
  }
3554
3550
  onStartAuth() {
3555
3551
  this.actions$.next({ key: "start-auth" }), this.optionsIsVisible = !1;
3556
3552
  }
3557
- onLogoutAuth() {
3558
- this.actions$.next({ key: "logout-auth" }), this.optionsIsVisible = !1;
3559
- }
3560
3553
  handleFocusTrap(t) {
3561
3554
  var o, a;
3562
3555
  const e = (o = this.optionsRef.value) == null ? void 0 : o.querySelectorAll(
@@ -3567,7 +3560,7 @@ const ei = Ui(A), be = class be extends ei {
3567
3560
  t.shiftKey ? r === s && (t.preventDefault(), n.focus()) : r === n && (t.preventDefault(), s.focus());
3568
3561
  }
3569
3562
  renderAuthSection(t) {
3570
- return !this.showAuthOptions || !(this.shouldUseAuth && this.authState !== z.ChatEnded) ? p : m`<div class="options-menu__auth-container">
3563
+ return !this.showAuthOptions || !(this.shouldUseAuth && this.authState !== et.ChatEnded) ? p : m`<div class="options-menu__auth-container">
3571
3564
  <p class="options-menu__auth-helper-text" data-testid="auth-helper-text">
3572
3565
  ${t.getOrFallback(
3573
3566
  "widget-header.authentication-text",
@@ -3578,7 +3571,7 @@ const ei = Ui(A), be = class be extends ei {
3578
3571
  </div>`;
3579
3572
  }
3580
3573
  renderAuthStatus(t) {
3581
- return this.authState === z.NonAuthenticated ? m` <div class="options-menu__auth">
3574
+ return this.authState === et.NonAuthenticated ? m` <div class="options-menu__auth">
3582
3575
  <p class="options-menu__auth-status" data-testid="auth-status">
3583
3576
  ${t.getOrFallback(
3584
3577
  "widget-header.not-authenticated",
@@ -3598,14 +3591,6 @@ const ei = Ui(A), be = class be extends ei {
3598
3591
  <p class="options-menu__auth-status" data-testid="auth-status">
3599
3592
  ${this.userName}
3600
3593
  </p>
3601
- ${this.authState === z.Authenticated ? m`<button
3602
- type="button"
3603
- @click=${this.onLogoutAuth}
3604
- class="options-menu__auth-link"
3605
- data-testid="auth-link"
3606
- >
3607
- ${t.getOrFallback("widget-header.log-out", "Log out")}
3608
- </button>` : p}
3609
3594
  </div>`;
3610
3595
  }
3611
3596
  setFocusToOptionsTitle() {
@@ -3618,7 +3603,7 @@ const ei = Ui(A), be = class be extends ei {
3618
3603
  const t = this.application.storage.get(
3619
3604
  "auth"
3620
3605
  );
3621
- t != null && t.authenticated && (this.userName = (t == null ? void 0 : t.name) ?? "", this.authState = z.Authenticated), document.addEventListener("click", this.onClickOutside), window.addEventListener("keydown", this.onGlobalKeyDown);
3606
+ t != null && t.authenticated && (this.userName = (t == null ? void 0 : t.name) ?? "", this.authState = et.Authenticated), document.addEventListener("click", this.onClickOutside), window.addEventListener("keydown", this.onGlobalKeyDown);
3622
3607
  }
3623
3608
  updated(t) {
3624
3609
  super.updated(t), this.optionsIsVisible && this.optionsRef.value && this.setFocusToOptionsTitle();
@@ -3627,11 +3612,9 @@ const ei = Ui(A), be = class be extends ei {
3627
3612
  super.disconnectedCallback(), document.removeEventListener("click", this.onClickOutside), window.removeEventListener("keydown", this.onGlobalKeyDown);
3628
3613
  }
3629
3614
  render() {
3630
- var a, l, c, u, h;
3631
- const t = this.application.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.logotype, s = this.application.texts, n = s.get("widget-header.header", "ACE Widget"), r = this.application.settings.components.conversation;
3632
- this.shouldUseAuth = (c = (l = this.application.settings) == null ? void 0 : l.auth) == null ? void 0 : c.shouldUseAuth;
3633
- const o = (h = (u = r == null ? void 0 : r.properties) == null ? void 0 : u.chat) == null ? void 0 : h.isThirdPartyWidget;
3634
- return m` <div class="widget-header">
3615
+ var o, a, l, c, u, h;
3616
+ const t = this.application.branding(), e = (o = t == null ? void 0 : t.graphics) == null ? void 0 : o.logotype, s = this.application.texts, n = s.get("widget-header.header", "ACE Widget"), r = ((c = (l = (a = this.application.settings) == null ? void 0 : a.agentConfig) == null ? void 0 : l.live) == null ? void 0 : c.isThirdPartyWidget) ?? !1;
3617
+ return this.shouldUseAuth = ((h = (u = this.application.settings) == null ? void 0 : u.auth) == null ? void 0 : h.shouldUseAuth) ?? !1, m` <div class="widget-header">
3635
3618
  ${e ? m` <img
3636
3619
  src=${e}
3637
3620
  class="logotype"
@@ -3690,7 +3673,7 @@ const ei = Ui(A), be = class be extends ei {
3690
3673
  </button>`)}
3691
3674
  </div>
3692
3675
  ` : p}
3693
- ${o ? p : m`<button
3676
+ ${r ? p : m`<button
3694
3677
  type="button"
3695
3678
  @click=${this.onMinimizeClick}
3696
3679
  class="widget-header__action-button"
@@ -3853,8 +3836,8 @@ be.styles = [
3853
3836
 
3854
3837
  .options-menu__item:disabled,
3855
3838
  .options-menu__item[disabled] {
3856
- cursor: default;
3857
- pointer-events: none;
3839
+ cursor: not-allowed;
3840
+ opacity: 0.5;
3858
3841
  }
3859
3842
  `
3860
3843
  ];