@telia-ace/widget-core-flamingo 1.1.111-rc.7 → 1.1.111-rc.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. package/index.js +10 -10
  2. package/index.mjs +229 -229
  3. package/package.json +3 -3
package/index.mjs CHANGED
@@ -27,24 +27,24 @@ function gt(r) {
27
27
  function mt(r, t) {
28
28
  var e = typeof Symbol == "function" && r[Symbol.iterator];
29
29
  if (!e) return r;
30
- var i = e.call(r), s, o = [], n;
30
+ var i = e.call(r), s, n = [], o;
31
31
  try {
32
- for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) o.push(s.value);
32
+ for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) n.push(s.value);
33
33
  } catch (a) {
34
- n = { error: a };
34
+ o = { error: a };
35
35
  } finally {
36
36
  try {
37
37
  s && !s.done && (e = i.return) && e.call(i);
38
38
  } finally {
39
- if (n) throw n.error;
39
+ if (o) throw o.error;
40
40
  }
41
41
  }
42
- return o;
42
+ return n;
43
43
  }
44
44
  function vt(r, t, e) {
45
- if (e || arguments.length === 2) for (var i = 0, s = t.length, o; i < s; i++)
46
- (o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
47
- return r.concat(o || Array.prototype.slice.call(t));
45
+ if (e || arguments.length === 2) for (var i = 0, s = t.length, n; i < s; i++)
46
+ (n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
47
+ return r.concat(n || Array.prototype.slice.call(t));
48
48
  }
49
49
  function _(r) {
50
50
  return typeof r == "function";
@@ -55,7 +55,7 @@ function ae(r) {
55
55
  }, e = r(t);
56
56
  return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
57
57
  }
58
- var nt = ae(function(r) {
58
+ var ot = ae(function(r) {
59
59
  return function(e) {
60
60
  r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
61
61
  ` + e.map(function(i, s) {
@@ -75,14 +75,14 @@ var rt = function() {
75
75
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
76
76
  }
77
77
  return r.prototype.unsubscribe = function() {
78
- var t, e, i, s, o;
78
+ var t, e, i, s, n;
79
79
  if (!this.closed) {
80
80
  this.closed = !0;
81
- var n = this._parentage;
82
- if (n)
83
- if (this._parentage = null, Array.isArray(n))
81
+ var o = this._parentage;
82
+ if (o)
83
+ if (this._parentage = null, Array.isArray(o))
84
84
  try {
85
- for (var a = gt(n), c = a.next(); !c.done; c = a.next()) {
85
+ for (var a = gt(o), c = a.next(); !c.done; c = a.next()) {
86
86
  var l = c.value;
87
87
  l.remove(this);
88
88
  }
@@ -96,13 +96,13 @@ var rt = function() {
96
96
  }
97
97
  }
98
98
  else
99
- n.remove(this);
99
+ o.remove(this);
100
100
  var h = this.initialTeardown;
101
101
  if (_(h))
102
102
  try {
103
103
  h();
104
104
  } catch (v) {
105
- o = v instanceof nt ? v.errors : [v];
105
+ n = v instanceof ot ? v.errors : [v];
106
106
  }
107
107
  var d = this._finalizers;
108
108
  if (d) {
@@ -113,7 +113,7 @@ var rt = function() {
113
113
  try {
114
114
  Ut(g);
115
115
  } catch (v) {
116
- o = o ?? [], v instanceof nt ? o = vt(vt([], mt(o)), mt(v.errors)) : o.push(v);
116
+ n = n ?? [], v instanceof ot ? n = vt(vt([], mt(n)), mt(v.errors)) : n.push(v);
117
117
  }
118
118
  }
119
119
  } catch (v) {
@@ -126,8 +126,8 @@ var rt = function() {
126
126
  }
127
127
  }
128
128
  }
129
- if (o)
130
- throw new nt(o);
129
+ if (n)
130
+ throw new ot(n);
131
131
  }
132
132
  }, r.prototype.add = function(t) {
133
133
  var e;
@@ -253,12 +253,12 @@ var le = function(r) {
253
253
  }(), bt = function(r) {
254
254
  Y(t, r);
255
255
  function t(e, i, s) {
256
- var o = r.call(this) || this, n;
257
- return _(e) || !e ? n = {
256
+ var n = r.call(this) || this, o;
257
+ return _(e) || !e ? o = {
258
258
  next: e ?? void 0,
259
259
  error: i ?? void 0,
260
260
  complete: s ?? void 0
261
- } : n = e, o.destination = new Pe(n), o;
261
+ } : o = e, n.destination = new Pe(o), n;
262
262
  }
263
263
  return t;
264
264
  }(le);
@@ -294,11 +294,11 @@ var jt = 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 = Me(t) ? t : new bt(t, e, i);
297
+ var s = this, n = Me(t) ? t : new bt(t, e, i);
298
298
  return G(function() {
299
- var n = s, a = n.operator, c = n.source;
300
- o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
301
- }), o;
299
+ var o = s, a = o.operator, c = o.source;
300
+ n.add(a ? a.call(n, c) : c ? s._subscribe(n) : s._trySubscribe(n));
301
+ }), n;
302
302
  }, r.prototype._trySubscribe = function(t) {
303
303
  try {
304
304
  return this._subscribe(t);
@@ -307,19 +307,19 @@ var jt = function() {
307
307
  }
308
308
  }, r.prototype.forEach = function(t, e) {
309
309
  var i = this;
310
- return e = Ht(e), new e(function(s, o) {
311
- var n = new bt({
310
+ return e = Ht(e), new e(function(s, n) {
311
+ var o = new bt({
312
312
  next: function(a) {
313
313
  try {
314
314
  t(a);
315
315
  } catch (c) {
316
- o(c), n.unsubscribe();
316
+ n(c), o.unsubscribe();
317
317
  }
318
318
  },
319
- error: o,
319
+ error: n,
320
320
  complete: s
321
321
  });
322
- i.subscribe(n);
322
+ i.subscribe(o);
323
323
  });
324
324
  }, r.prototype._subscribe = function(t) {
325
325
  var e;
@@ -333,13 +333,13 @@ var jt = function() {
333
333
  }, r.prototype.toPromise = function(t) {
334
334
  var e = this;
335
335
  return t = Ht(t), new t(function(i, s) {
336
- var o;
337
- e.subscribe(function(n) {
338
- return o = n;
339
- }, function(n) {
340
- return s(n);
336
+ var n;
337
+ e.subscribe(function(o) {
338
+ return n = o;
339
+ }, function(o) {
340
+ return s(o);
341
341
  }, function() {
342
- return i(o);
342
+ return i(n);
343
343
  });
344
344
  });
345
345
  }, r.create = function(t) {
@@ -375,11 +375,11 @@ var Ue = ae(function(r) {
375
375
  }, t.prototype.next = function(e) {
376
376
  var i = this;
377
377
  G(function() {
378
- var s, o;
378
+ var s, n;
379
379
  if (i._throwIfClosed(), !i.isStopped) {
380
380
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
381
381
  try {
382
- for (var n = gt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
382
+ for (var o = gt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
383
383
  var c = a.value;
384
384
  c.next(e);
385
385
  }
@@ -387,7 +387,7 @@ var Ue = ae(function(r) {
387
387
  s = { error: l };
388
388
  } finally {
389
389
  try {
390
- a && !a.done && (o = n.return) && o.call(n);
390
+ a && !a.done && (n = o.return) && n.call(o);
391
391
  } finally {
392
392
  if (s) throw s.error;
393
393
  }
@@ -426,13 +426,13 @@ var Ue = ae(function(r) {
426
426
  }, t.prototype._subscribe = function(e) {
427
427
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
428
428
  }, t.prototype._innerSubscribe = function(e) {
429
- var i = this, s = this, o = s.hasError, n = s.isStopped, a = s.observers;
430
- return o || n ? ce : (this.currentObservers = null, a.push(e), new rt(function() {
429
+ var i = this, s = this, n = s.hasError, o = s.isStopped, a = s.observers;
430
+ return n || o ? ce : (this.currentObservers = null, a.push(e), new rt(function() {
431
431
  i.currentObservers = null, yt(a, e);
432
432
  }));
433
433
  }, t.prototype._checkFinalizedStatuses = function(e) {
434
- var i = this, s = i.hasError, o = i.thrownError, n = i.isStopped;
435
- s ? e.error(o) : n && e.complete();
434
+ var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
435
+ s ? e.error(n) : o && e.complete();
436
436
  }, t.prototype.asObservable = function() {
437
437
  var e = new jt();
438
438
  return e.source = this, e;
@@ -474,10 +474,10 @@ var Ue = ae(function(r) {
474
474
  var i = r.prototype._subscribe.call(this, e);
475
475
  return !i.closed && e.next(this._value), i;
476
476
  }, t.prototype.getValue = function() {
477
- var e = this, i = e.hasError, s = e.thrownError, o = e._value;
477
+ var e = this, i = e.hasError, s = e.thrownError, n = e._value;
478
478
  if (i)
479
479
  throw s;
480
- return this._throwIfClosed(), o;
480
+ return this._throwIfClosed(), n;
481
481
  }, t.prototype.next = function(e) {
482
482
  r.prototype.next.call(this, this._value = e);
483
483
  }, t;
@@ -527,11 +527,11 @@ let ue = class {
527
527
  }
528
528
  };
529
529
  const Le = (r) => new ue(typeof r == "string" ? r : r + "", void 0, Ct), U = (r, ...t) => {
530
- const e = r.length === 1 ? r[0] : t.reduce((i, s, o) => i + ((n) => {
531
- if (n._$cssResult$ === !0) return n.cssText;
532
- if (typeof n == "number") return n;
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
- })(s) + r[o + 1], r[0]);
530
+ const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
531
+ if (o._$cssResult$ === !0) return o.cssText;
532
+ if (typeof o == "number") return o;
533
+ throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
534
+ })(s) + r[n + 1], r[0]);
535
535
  return new ue(e, r, Ct);
536
536
  }, je = (r, t) => {
537
537
  if (xt) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
@@ -593,16 +593,16 @@ let k = class extends HTMLElement {
593
593
  }
594
594
  }
595
595
  static getPropertyDescriptor(t, e, i) {
596
- const { get: s, set: o } = De(this.prototype, t) ?? { get() {
596
+ const { get: s, set: n } = De(this.prototype, t) ?? { get() {
597
597
  return this[e];
598
- }, set(n) {
599
- this[e] = n;
598
+ }, set(o) {
599
+ this[e] = o;
600
600
  } };
601
601
  return { get() {
602
602
  return s == null ? void 0 : s.call(this);
603
- }, set(n) {
603
+ }, set(o) {
604
604
  const a = s == null ? void 0 : s.call(this);
605
- o.call(this, n), this.requestUpdate(t, a, i);
605
+ n.call(this, o), this.requestUpdate(t, a, i);
606
606
  }, configurable: !0, enumerable: !0 };
607
607
  }
608
608
  static getPropertyOptions(t) {
@@ -687,19 +687,19 @@ let k = class extends HTMLElement {
687
687
  this._$AK(t, i);
688
688
  }
689
689
  _$EC(t, e) {
690
- var o;
690
+ var n;
691
691
  const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
692
692
  if (s !== void 0 && i.reflect === !0) {
693
- const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
694
- this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
693
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
694
+ this._$Em = t, o == null ? this.removeAttribute(s) : this.setAttribute(s, o), this._$Em = null;
695
695
  }
696
696
  }
697
697
  _$AK(t, e) {
698
- var o;
698
+ var n;
699
699
  const i = this.constructor, s = i._$Eh.get(t);
700
700
  if (s !== void 0 && this._$Em !== s) {
701
- const n = i.getPropertyOptions(s), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : X;
702
- this._$Em = s, this[s] = a.fromAttribute(e, n.type), this._$Em = null;
701
+ const o = i.getPropertyOptions(s), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : X;
702
+ this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
703
703
  }
704
704
  }
705
705
  requestUpdate(t, e, i) {
@@ -730,18 +730,18 @@ let k = class extends HTMLElement {
730
730
  if (!this.isUpdatePending) return;
731
731
  if (!this.hasUpdated) {
732
732
  if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
733
- for (const [o, n] of this._$Ep) this[o] = n;
733
+ for (const [n, o] of this._$Ep) this[n] = o;
734
734
  this._$Ep = void 0;
735
735
  }
736
736
  const s = this.constructor.elementProperties;
737
- if (s.size > 0) for (const [o, n] of s) n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
737
+ if (s.size > 0) for (const [n, o] of s) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
738
738
  }
739
739
  let t = !1;
740
740
  const e = this._$AL;
741
741
  try {
742
742
  t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
743
- var o;
744
- return (o = s.hostUpdate) == null ? void 0 : o.call(s);
743
+ var n;
744
+ return (n = s.hostUpdate) == null ? void 0 : n.call(s);
745
745
  }), this.update(e)) : this._$EU();
746
746
  } catch (s) {
747
747
  throw t = !1, this._$EU(), s;
@@ -792,21 +792,21 @@ function me(r, t) {
792
792
  }
793
793
  const Ze = (r, t) => {
794
794
  const e = r.length - 1, i = [];
795
- let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = j;
795
+ let s, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = j;
796
796
  for (let a = 0; a < e; a++) {
797
797
  const c = r[a];
798
798
  let l, h, d = -1, u = 0;
799
- for (; u < c.length && (n.lastIndex = u, h = n.exec(c), h !== null); ) u = n.lastIndex, n === j ? h[1] === "!--" ? n = qt : h[1] !== void 0 ? n = Kt : h[2] !== void 0 ? (ge.test(h[2]) && (s = RegExp("</" + h[2], "g")), n = S) : h[3] !== void 0 && (n = S) : n === S ? h[0] === ">" ? (n = s ?? j, 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] === '"' ? Gt : Zt) : n === Gt || n === Zt ? n = S : n === qt || n === Kt ? n = j : (n = S, s = void 0);
800
- const f = n === S && r[a + 1].startsWith("/>") ? " " : "";
801
- o += n === j ? c + Ye : d >= 0 ? (i.push(l), c.slice(0, d) + pe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
799
+ for (; u < c.length && (o.lastIndex = u, h = o.exec(c), h !== null); ) u = o.lastIndex, o === j ? h[1] === "!--" ? o = qt : h[1] !== void 0 ? o = Kt : h[2] !== void 0 ? (ge.test(h[2]) && (s = RegExp("</" + h[2], "g")), o = S) : h[3] !== void 0 && (o = S) : o === S ? h[0] === ">" ? (o = s ?? j, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? S : h[3] === '"' ? Gt : Zt) : o === Gt || o === Zt ? o = S : o === qt || o === Kt ? o = j : (o = S, s = void 0);
800
+ const f = o === S && r[a + 1].startsWith("/>") ? " " : "";
801
+ n += o === j ? c + Ye : d >= 0 ? (i.push(l), c.slice(0, d) + pe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
802
802
  }
803
- return [me(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
803
+ return [me(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
804
804
  };
805
805
  let wt = class ve {
806
806
  constructor({ strings: t, _$litType$: e }, i) {
807
807
  let s;
808
808
  this.parts = [];
809
- let o = 0, n = 0;
809
+ let n = 0, o = 0;
810
810
  const a = t.length - 1, c = this.parts, [l, h] = Ze(t, e);
811
811
  if (this.el = ve.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
812
812
  const d = this.el.content.firstChild;
@@ -815,23 +815,23 @@ let wt = class ve {
815
815
  for (; (s = P.nextNode()) !== null && c.length < a; ) {
816
816
  if (s.nodeType === 1) {
817
817
  if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(pe)) {
818
- const u = h[n++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
819
- c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Je : g[1] === "?" ? Xe : g[1] === "@" ? Qe : ot }), s.removeAttribute(d);
820
- } else d.startsWith(x) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
818
+ const u = h[o++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
819
+ c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? Je : g[1] === "?" ? Xe : g[1] === "@" ? Qe : nt }), s.removeAttribute(d);
820
+ } else d.startsWith(x) && (c.push({ type: 6, index: n }), s.removeAttribute(d));
821
821
  if (ge.test(s.tagName)) {
822
822
  const d = s.textContent.split(x), u = d.length - 1;
823
823
  if (u > 0) {
824
824
  s.textContent = Q ? Q.emptyScript : "";
825
- for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++o });
825
+ for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++n });
826
826
  s.append(d[u], z());
827
827
  }
828
828
  }
829
- } else if (s.nodeType === 8) if (s.data === fe) c.push({ type: 2, index: o });
829
+ } else if (s.nodeType === 8) if (s.data === fe) c.push({ type: 2, index: n });
830
830
  else {
831
831
  let d = -1;
832
- for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += x.length - 1;
832
+ for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += x.length - 1;
833
833
  }
834
- o++;
834
+ n++;
835
835
  }
836
836
  }
837
837
  static createElement(t, e) {
@@ -840,11 +840,11 @@ let wt = class ve {
840
840
  }
841
841
  };
842
842
  function R(r, t, e = r, i) {
843
- var n, a;
843
+ var o, a;
844
844
  if (t === I) return t;
845
- let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
846
- const o = F(t) ? void 0 : t._$litDirective$;
847
- return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
845
+ let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
846
+ const n = F(t) ? void 0 : t._$litDirective$;
847
+ return (s == null ? void 0 : s.constructor) !== n && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), n === void 0 ? s = void 0 : (s = new n(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = R(r, s._$AS(r, t.values), s, i)), t;
848
848
  }
849
849
  class Ge {
850
850
  constructor(t, e) {
@@ -859,13 +859,13 @@ class Ge {
859
859
  u(t) {
860
860
  const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
861
861
  P.currentNode = s;
862
- let o = P.nextNode(), n = 0, a = 0, c = i[0];
862
+ let n = P.nextNode(), o = 0, a = 0, c = i[0];
863
863
  for (; c !== void 0; ) {
864
- if (n === c.index) {
864
+ if (o === c.index) {
865
865
  let l;
866
- c.type === 2 ? l = new q(o, o.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (l = new ti(o, this, t)), this._$AV.push(l), c = i[++a];
866
+ c.type === 2 ? l = new q(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new ti(n, this, t)), this._$AV.push(l), c = i[++a];
867
867
  }
868
- n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
868
+ o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
869
869
  }
870
870
  return P.currentNode = O, s;
871
871
  }
@@ -906,12 +906,12 @@ class q {
906
906
  this._$AH !== p && F(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
907
907
  }
908
908
  $(t) {
909
- var o;
909
+ var n;
910
910
  const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = wt.createElement(me(i.h, i.h[0]), this.options)), i);
911
- if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
911
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === s) this._$AH.p(e);
912
912
  else {
913
- const n = new Ge(s, this), a = n.u(this.options);
914
- n.p(e), this.T(a), this._$AH = n;
913
+ const o = new Ge(s, this), a = o.u(this.options);
914
+ o.p(e), this.T(a), this._$AH = o;
915
915
  }
916
916
  }
917
917
  _$AC(t) {
@@ -922,7 +922,7 @@ class q {
922
922
  Et(this._$AH) || (this._$AH = [], this._$AR());
923
923
  const e = this._$AH;
924
924
  let i, s = 0;
925
- for (const o of t) s === e.length ? e.push(i = new q(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(o), s++;
925
+ for (const n of t) s === e.length ? e.push(i = new q(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(n), s++;
926
926
  s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
927
927
  }
928
928
  _$AR(t = this._$AA.nextSibling, e) {
@@ -937,32 +937,32 @@ class q {
937
937
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
938
938
  }
939
939
  }
940
- class ot {
940
+ class nt {
941
941
  get tagName() {
942
942
  return this.element.tagName;
943
943
  }
944
944
  get _$AU() {
945
945
  return this._$AM._$AU;
946
946
  }
947
- constructor(t, e, i, s, o) {
948
- this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
947
+ constructor(t, e, i, s, n) {
948
+ this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
949
949
  }
950
950
  _$AI(t, e = this, i, s) {
951
- const o = this.strings;
952
- let n = !1;
953
- if (o === void 0) t = R(this, t, e, 0), n = !F(t) || t !== this._$AH && t !== I, n && (this._$AH = t);
951
+ const n = this.strings;
952
+ let o = !1;
953
+ if (n === void 0) t = R(this, t, e, 0), o = !F(t) || t !== this._$AH && t !== I, o && (this._$AH = t);
954
954
  else {
955
955
  const a = t;
956
956
  let c, l;
957
- for (t = o[0], c = 0; c < o.length - 1; c++) l = R(this, a[i + c], e, c), l === I && (l = this._$AH[c]), n || (n = !F(l) || l !== this._$AH[c]), l === p ? t = p : t !== p && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
957
+ for (t = n[0], c = 0; c < n.length - 1; c++) l = R(this, a[i + c], e, c), l === I && (l = this._$AH[c]), o || (o = !F(l) || l !== this._$AH[c]), l === p ? t = p : t !== p && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
958
958
  }
959
- n && !s && this.j(t);
959
+ o && !s && this.j(t);
960
960
  }
961
961
  j(t) {
962
962
  t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
963
963
  }
964
964
  }
965
- class Je extends ot {
965
+ class Je extends nt {
966
966
  constructor() {
967
967
  super(...arguments), this.type = 3;
968
968
  }
@@ -970,7 +970,7 @@ class Je extends ot {
970
970
  this.element[this.name] = t === p ? void 0 : t;
971
971
  }
972
972
  }
973
- class Xe extends ot {
973
+ class Xe extends nt {
974
974
  constructor() {
975
975
  super(...arguments), this.type = 4;
976
976
  }
@@ -978,14 +978,14 @@ class Xe extends ot {
978
978
  this.element.toggleAttribute(this.name, !!t && t !== p);
979
979
  }
980
980
  }
981
- class Qe extends ot {
982
- constructor(t, e, i, s, o) {
983
- super(t, e, i, s, o), this.type = 5;
981
+ class Qe extends nt {
982
+ constructor(t, e, i, s, n) {
983
+ super(t, e, i, s, n), this.type = 5;
984
984
  }
985
985
  _$AI(t, e = this) {
986
986
  if ((t = R(this, t, e, 0) ?? p) === I) return;
987
- const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== p && (i === p || s);
988
- s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
987
+ const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== p && (i === p || s);
988
+ s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
989
989
  }
990
990
  handleEvent(t) {
991
991
  var e;
@@ -1009,8 +1009,8 @@ const ei = (r, t, e) => {
1009
1009
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1010
1010
  let s = i._$litPart$;
1011
1011
  if (s === void 0) {
1012
- const o = (e == null ? void 0 : e.renderBefore) ?? null;
1013
- i._$litPart$ = s = new q(t.insertBefore(z(), o), o, void 0, e ?? {});
1012
+ const n = (e == null ? void 0 : e.renderBefore) ?? null;
1013
+ i._$litPart$ = s = new q(t.insertBefore(z(), n), n, void 0, e ?? {});
1014
1014
  }
1015
1015
  return s._$AI(r), s;
1016
1016
  };
@@ -1044,8 +1044,8 @@ let A = class extends k {
1044
1044
  return I;
1045
1045
  }
1046
1046
  };
1047
- var ne;
1048
- A._$litElement$ = !0, A.finalized = !0, (ne = globalThis.litElementHydrateSupport) == null || ne.call(globalThis, { LitElement: A });
1047
+ var oe;
1048
+ A._$litElement$ = !0, A.finalized = !0, (oe = globalThis.litElementHydrateSupport) == null || oe.call(globalThis, { LitElement: A });
1049
1049
  const lt = globalThis.litElementPolyfillSupport;
1050
1050
  lt == null || lt({ LitElement: A });
1051
1051
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
@@ -1056,29 +1056,29 @@ lt == null || lt({ LitElement: A });
1056
1056
  */
1057
1057
  const ii = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: St }, si = (r = ii, t, e) => {
1058
1058
  const { kind: i, metadata: s } = e;
1059
- let o = globalThis.litPropertyMetadata.get(s);
1060
- if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(e.name, r), i === "accessor") {
1061
- const { name: n } = e;
1059
+ let n = globalThis.litPropertyMetadata.get(s);
1060
+ if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
1061
+ const { name: o } = e;
1062
1062
  return { set(a) {
1063
1063
  const c = t.get.call(this);
1064
- t.set.call(this, a), this.requestUpdate(n, c, r);
1064
+ t.set.call(this, a), this.requestUpdate(o, c, r);
1065
1065
  }, init(a) {
1066
- return a !== void 0 && this.P(n, void 0, r), a;
1066
+ return a !== void 0 && this.P(o, void 0, r), a;
1067
1067
  } };
1068
1068
  }
1069
1069
  if (i === "setter") {
1070
- const { name: n } = e;
1070
+ const { name: o } = e;
1071
1071
  return function(a) {
1072
- const c = this[n];
1073
- t.call(this, a), this.requestUpdate(n, c, r);
1072
+ const c = this[o];
1073
+ t.call(this, a), this.requestUpdate(o, c, r);
1074
1074
  };
1075
1075
  }
1076
1076
  throw Error("Unsupported decorator location: " + i);
1077
1077
  };
1078
1078
  function m(r) {
1079
- return (t, e) => typeof e == "object" ? si(r, t, e) : ((i, s, o) => {
1080
- const n = s.hasOwnProperty(o);
1081
- return s.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
1079
+ return (t, e) => typeof e == "object" ? si(r, t, e) : ((i, s, n) => {
1080
+ const o = s.hasOwnProperty(n);
1081
+ return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
1082
1082
  })(r, t, e);
1083
1083
  }
1084
1084
  /**
@@ -1089,9 +1089,9 @@ function m(r) {
1089
1089
  function L(r) {
1090
1090
  return m({ ...r, state: !0, attribute: !1 });
1091
1091
  }
1092
- var ri = Object.defineProperty, oi = (r, t, e, i) => {
1093
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1094
- (n = r[o]) && (s = n(t, e, s) || s);
1092
+ var ri = Object.defineProperty, ni = (r, t, e, i) => {
1093
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1094
+ (o = r[n]) && (s = o(t, e, s) || s);
1095
1095
  return s && ri(t, e, s), s;
1096
1096
  };
1097
1097
  const kt = class kt extends A {
@@ -1126,7 +1126,7 @@ kt.styles = [
1126
1126
  `
1127
1127
  ];
1128
1128
  let V = kt;
1129
- oi([
1129
+ ni([
1130
1130
  m({ attribute: !0 })
1131
1131
  ], V.prototype, "anchor");
1132
1132
  /**
@@ -1156,7 +1156,7 @@ let ye = class {
1156
1156
  * Copyright 2020 Google LLC
1157
1157
  * SPDX-License-Identifier: BSD-3-Clause
1158
1158
  */
1159
- const ni = (r) => r.strings === void 0;
1159
+ const oi = (r) => r.strings === void 0;
1160
1160
  /**
1161
1161
  * @license
1162
1162
  * Copyright 2017 Google LLC
@@ -1187,7 +1187,7 @@ function ai(r) {
1187
1187
  }
1188
1188
  function ci(r, t = !1, e = 0) {
1189
1189
  const i = this._$AH, s = this._$AN;
1190
- if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++) D(i[o], !1), tt(i[o]);
1190
+ if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) D(i[n], !1), tt(i[n]);
1191
1191
  else i != null && (D(i, !1), tt(i));
1192
1192
  else D(this, r);
1193
1193
  }
@@ -1206,7 +1206,7 @@ class we extends ye {
1206
1206
  t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (D(this, t), tt(this));
1207
1207
  }
1208
1208
  setValue(t) {
1209
- if (ni(this._$Ct)) this._$Ct._$AI(t, this);
1209
+ if (oi(this._$Ct)) this._$Ct._$AI(t, this);
1210
1210
  else {
1211
1211
  const e = [...this._$Ct._$AH];
1212
1212
  e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
@@ -1270,7 +1270,7 @@ class fi extends we {
1270
1270
  update(t, [e]) {
1271
1271
  var s;
1272
1272
  const i = this.u === void 0;
1273
- return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, se.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1273
+ return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, se.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
1274
1274
  }
1275
1275
  p(t) {
1276
1276
  t = t ?? {};
@@ -1280,15 +1280,15 @@ class fi extends we {
1280
1280
  m() {
1281
1281
  const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
1282
1282
  return this.options.properties.forEach((s) => {
1283
- const o = e[s] ?? (ut[s] ? void 0 : i[s]), n = Number(o);
1284
- t[s] = isNaN(n) ? o + "" : n;
1283
+ const n = e[s] ?? (ut[s] ? void 0 : i[s]), o = Number(n);
1284
+ t[s] = isNaN(o) ? n + "" : o;
1285
1285
  }), t;
1286
1286
  }
1287
1287
  v() {
1288
1288
  let t, e = !0;
1289
1289
  return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
1290
1290
  if (Array.isArray(i)) {
1291
- if (Array.isArray(s) && s.length === i.length && i.every((o, n) => o === s[n])) return !1;
1291
+ if (Array.isArray(s) && s.length === i.length && i.every((n, o) => n === s[o])) return !1;
1292
1292
  } else if (s === i) return !1;
1293
1293
  return !0;
1294
1294
  })(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
@@ -1302,14 +1302,14 @@ class fi extends we {
1302
1302
  this.prepare(), await te;
1303
1303
  const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
1304
1304
  if (this.A !== void 0) {
1305
- const { from: o, to: n } = this.N(this.A, s, e);
1306
- this.log("measured", [this.A, s, o, n]), t = this.calculateKeyframes(o, n);
1305
+ const { from: n, to: o } = this.N(this.A, s, e);
1306
+ this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
1307
1307
  } else {
1308
- const o = dt.get(this.options.inId);
1309
- if (o) {
1308
+ const n = dt.get(this.options.inId);
1309
+ if (n) {
1310
1310
  dt.delete(this.options.inId);
1311
- const { from: n, to: a } = this.N(o, s, e);
1312
- t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Xt++, t.forEach((c) => c.zIndex = Xt);
1311
+ const { from: o, to: a } = this.N(n, s, e);
1312
+ t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Xt++, t.forEach((c) => c.zIndex = Xt);
1313
1313
  } else this.options.in && (t = [...this.options.in, {}]);
1314
1314
  }
1315
1315
  this.animate(t, i);
@@ -1331,8 +1331,8 @@ class fi extends we {
1331
1331
  if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
1332
1332
  const s = this.m();
1333
1333
  this.log("stabilizing out");
1334
- const o = this.A.left - s.left, n = this.A.top - s.top;
1335
- getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
1334
+ const n = this.A.left - s.left, o = this.A.top - s.top;
1335
+ getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
1336
1336
  }
1337
1337
  }
1338
1338
  const t = this.j(this.options.keyframeOptions);
@@ -1370,14 +1370,14 @@ class fi extends we {
1370
1370
  N(t, e, i) {
1371
1371
  t = { ...t }, e = { ...e };
1372
1372
  const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
1373
- let o = 1, n = 1;
1373
+ let n = 1, o = 1;
1374
1374
  return s.length > 0 && (s.forEach((a) => {
1375
- a.width && (o /= a.width), a.height && (n /= a.height);
1376
- }), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
1375
+ a.width && (n /= a.width), a.height && (o /= a.height);
1376
+ }), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
1377
1377
  }
1378
1378
  calculateKeyframes(t, e, i = !1) {
1379
- const s = {}, o = {};
1380
- let n = !1;
1379
+ const s = {}, n = {};
1380
+ let o = !1;
1381
1381
  const a = {};
1382
1382
  for (const c in e) {
1383
1383
  const l = t[c], h = e[c];
@@ -1385,10 +1385,10 @@ class fi extends we {
1385
1385
  const d = ut[c];
1386
1386
  if (l === void 0 || h === void 0) continue;
1387
1387
  const u = d(l, h);
1388
- 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));
1389
- } else l !== h && l !== void 0 && h !== void 0 && (n = !0, s[c] = l, o[c] = h);
1388
+ u.transform !== void 0 && (a[c] = u.value, o = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
1389
+ } else l !== h && l !== void 0 && h !== void 0 && (o = !0, s[c] = l, n[c] = h);
1390
1390
  }
1391
- return s.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [s, o] : void 0;
1391
+ return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
1392
1392
  }
1393
1393
  async animate(t, e = this.options.keyframeOptions) {
1394
1394
  this.start(), this.frames = t;
@@ -1430,22 +1430,22 @@ const re = Ot(class extends ye {
1430
1430
  update(r, [t]) {
1431
1431
  var i, s;
1432
1432
  if (this.st === void 0) {
1433
- this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
1434
- for (const o in t) t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
1433
+ this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
1434
+ for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
1435
1435
  return this.render(t);
1436
1436
  }
1437
1437
  const e = r.element.classList;
1438
- for (const o of this.st) o in t || (e.remove(o), this.st.delete(o));
1439
- for (const o in t) {
1440
- const n = !!t[o];
1441
- n === this.st.has(o) || (s = this.nt) != null && s.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
1438
+ for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
1439
+ for (const n in t) {
1440
+ const o = !!t[n];
1441
+ o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
1442
1442
  }
1443
1443
  return I;
1444
1444
  }
1445
1445
  }), w = (r, t, e) => {
1446
1446
  r && e.style.setProperty(t, r);
1447
1447
  }, $e = (r, t) => {
1448
- var e, i, s, o, n, a, c, l, h;
1448
+ var e, i, s, n, o, a, c, l, h;
1449
1449
  w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
1450
1450
  (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1451
1451
  "--text-on-primary-background",
@@ -1455,11 +1455,11 @@ const re = Ot(class extends ye {
1455
1455
  "--secondary-background",
1456
1456
  t
1457
1457
  ), w(
1458
- (o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
1458
+ (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
1459
1459
  "--text-on-secondary-background",
1460
1460
  t
1461
1461
  ), w(
1462
- (n = r.colors) == null ? void 0 : n.interactiveDestructiveBackground,
1462
+ (o = r.colors) == null ? void 0 : o.interactiveDestructiveBackground,
1463
1463
  "--destructive-color",
1464
1464
  t
1465
1465
  ), w(
@@ -1512,8 +1512,8 @@ const pt = /* @__PURE__ */ new WeakMap(), Ae = Ot(class extends we {
1512
1512
  }
1513
1513
  });
1514
1514
  var yi = Object.defineProperty, K = (r, t, e, i) => {
1515
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1516
- (n = r[o]) && (s = n(t, e, s) || s);
1515
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1516
+ (o = r[n]) && (s = o(t, e, s) || s);
1517
1517
  return s && yi(t, e, s), s;
1518
1518
  };
1519
1519
  const Tt = class Tt extends A {
@@ -1563,8 +1563,8 @@ const Tt = class Tt extends A {
1563
1563
  const i = (l = this.application) == null ? void 0 : l.triggerIcon;
1564
1564
  if (!i)
1565
1565
  return p;
1566
- const s = async (h) => mi, { type: o, content: n } = i;
1567
- switch (o) {
1566
+ const s = async (h) => mi, { type: n, content: o } = i;
1567
+ switch (n) {
1568
1568
  case "Telia": {
1569
1569
  const h = await s();
1570
1570
  return h ? T`<telia-icon
@@ -1798,8 +1798,8 @@ K([
1798
1798
  L()
1799
1799
  ], b.prototype, "icon");
1800
1800
  var bi = Object.defineProperty, E = (r, t, e, i) => {
1801
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
1802
- (n = r[o]) && (s = n(t, e, s) || s);
1801
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
1802
+ (o = r[n]) && (s = o(t, e, s) || s);
1803
1803
  return s && bi(t, e, s), s;
1804
1804
  };
1805
1805
  const wi = (r) => {
@@ -1889,8 +1889,8 @@ var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))
1889
1889
  * SPDX-License-Identifier: BSD-3-Clause
1890
1890
  */
1891
1891
  let _i = class extends Event {
1892
- constructor(t, e, i) {
1893
- super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
1892
+ constructor(t, e, i, s) {
1893
+ super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = i, this.subscribe = s ?? !1;
1894
1894
  }
1895
1895
  };
1896
1896
  /**
@@ -1937,29 +1937,29 @@ class Ai {
1937
1937
  * SPDX-License-Identifier: BSD-3-Clause
1938
1938
  */
1939
1939
  let xi = class extends Event {
1940
- constructor(t) {
1941
- super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
1940
+ constructor(t, e) {
1941
+ super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
1942
1942
  }
1943
1943
  };
1944
- class oe extends Ai {
1944
+ class ne extends Ai {
1945
1945
  constructor(t, e, i) {
1946
- var s, o;
1947
- super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
1948
- const a = n.composedPath()[0];
1949
- n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
1950
- }, this.onProviderRequest = (n) => {
1951
- const a = n.composedPath()[0];
1952
- if (n.context !== this.context || a === this.host) return;
1953
- const c = /* @__PURE__ */ new Set();
1954
- for (const [l, { consumerHost: h }] of this.subscriptions) c.has(l) || (c.add(l), h.dispatchEvent(new _i(this.context, l, !0)));
1955
- n.stopPropagation();
1956
- }, 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);
1946
+ var s, n;
1947
+ super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
1948
+ if (o.context !== this.context) return;
1949
+ const a = o.contextTarget ?? o.composedPath()[0];
1950
+ a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
1951
+ }, this.onProviderRequest = (o) => {
1952
+ if (o.context !== this.context || (o.contextTarget ?? o.composedPath()[0]) === this.host) return;
1953
+ const a = /* @__PURE__ */ new Set();
1954
+ for (const [c, { consumerHost: l }] of this.subscriptions) a.has(c) || (a.add(c), l.dispatchEvent(new _i(this.context, l, c, !0)));
1955
+ o.stopPropagation();
1956
+ }, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (s = this.host).addController) == null || n.call(s, this);
1957
1957
  }
1958
1958
  attachListeners() {
1959
1959
  this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
1960
1960
  }
1961
1961
  hostConnected() {
1962
- this.host.dispatchEvent(new xi(this.context));
1962
+ this.host.dispatchEvent(new xi(this.context, this.host));
1963
1963
  }
1964
1964
  }
1965
1965
  /**
@@ -1971,42 +1971,42 @@ function Ci({ context: r }) {
1971
1971
  return (t, e) => {
1972
1972
  const i = /* @__PURE__ */ new WeakMap();
1973
1973
  if (typeof e == "object") return e.addInitializer(function() {
1974
- i.set(this, new oe(this, { context: r }));
1974
+ i.set(this, new ne(this, { context: r }));
1975
1975
  }), { get() {
1976
1976
  return t.get.call(this);
1977
1977
  }, set(s) {
1978
- var o;
1979
- return (o = i.get(this)) == null || o.setValue(s), t.set.call(this, s);
1978
+ var n;
1979
+ return (n = i.get(this)) == null || n.setValue(s), t.set.call(this, s);
1980
1980
  }, init(s) {
1981
- var o;
1982
- return (o = i.get(this)) == null || o.setValue(s), s;
1981
+ var n;
1982
+ return (n = i.get(this)) == null || n.setValue(s), s;
1983
1983
  } };
1984
1984
  {
1985
- t.constructor.addInitializer((n) => {
1986
- i.set(n, new oe(n, { context: r }));
1985
+ t.constructor.addInitializer((o) => {
1986
+ i.set(o, new ne(o, { context: r }));
1987
1987
  });
1988
1988
  const s = Object.getOwnPropertyDescriptor(t, e);
1989
- let o;
1989
+ let n;
1990
1990
  if (s === void 0) {
1991
- const n = /* @__PURE__ */ new WeakMap();
1992
- o = { get() {
1993
- return n.get(this);
1991
+ const o = /* @__PURE__ */ new WeakMap();
1992
+ n = { get() {
1993
+ return o.get(this);
1994
1994
  }, set(a) {
1995
- i.get(this).setValue(a), n.set(this, a);
1995
+ i.get(this).setValue(a), o.set(this, a);
1996
1996
  }, configurable: !0, enumerable: !0 };
1997
1997
  } else {
1998
- const n = s.set;
1999
- o = { ...s, set(a) {
2000
- i.get(this).setValue(a), n == null || n.call(this, a);
1998
+ const o = s.set;
1999
+ n = { ...s, set(a) {
2000
+ i.get(this).setValue(a), o == null || o.call(this, a);
2001
2001
  } };
2002
2002
  }
2003
- return void Object.defineProperty(t, e, o);
2003
+ return void Object.defineProperty(t, e, n);
2004
2004
  }
2005
2005
  };
2006
2006
  }
2007
2007
  var Si = Object.defineProperty, xe = (r, t, e, i) => {
2008
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2009
- (n = r[o]) && (s = n(t, e, s) || s);
2008
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2009
+ (o = r[n]) && (s = o(t, e, s) || s);
2010
2010
  return s && Si(t, e, s), s;
2011
2011
  };
2012
2012
  const Ei = "application", Nt = class Nt extends A {
@@ -2037,7 +2037,7 @@ const Ei = "application", Nt = class Nt extends A {
2037
2037
  var i, s;
2038
2038
  const t = this.application.settings.components.conversation;
2039
2039
  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"), T`<div class="widget-container" ${Ae(this.wrapperRef)}>
2040
- ${$i(this.nodes, (o) => o)}
2040
+ ${$i(this.nodes, (n) => n)}
2041
2041
  </div>`;
2042
2042
  }
2043
2043
  };
@@ -2238,8 +2238,8 @@ class Pi {
2238
2238
  // views
2239
2239
  ));
2240
2240
  });
2241
- }, { entry: o, components: n } = t;
2242
- return s(this, this.root, [o], n), this.root;
2241
+ }, { entry: n, components: o } = t;
2242
+ return s(this, this.root, [n], o), this.root;
2243
2243
  }
2244
2244
  createRoot() {
2245
2245
  return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", N)), document.createElement("ace-wrapper");
@@ -2300,8 +2300,8 @@ class Oi {
2300
2300
  }
2301
2301
  const s = i.category;
2302
2302
  if (this.policy[s]) {
2303
- const o = { value: e, category: s };
2304
- this.storage.setItem(this._prefixKey(t), JSON.stringify(o));
2303
+ const n = { value: e, category: s };
2304
+ this.storage.setItem(this._prefixKey(t), JSON.stringify(n));
2305
2305
  } else
2306
2306
  console.warn(
2307
2307
  `Storage policy does not allow storing items in category: ${s}`
@@ -2358,7 +2358,7 @@ class Ii {
2358
2358
  return this.texts.get(t) || e;
2359
2359
  }
2360
2360
  }
2361
- const ki = "1.1.111-rc.7";
2361
+ const ki = "1.1.111-rc.9";
2362
2362
  class Ti {
2363
2363
  constructor(t) {
2364
2364
  this.widget = t, this.name = t.name;
@@ -2382,8 +2382,8 @@ class Ti {
2382
2382
  }
2383
2383
  }
2384
2384
  class Ri {
2385
- constructor(t, e, i, s, o) {
2386
- this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Pi(), this.texts = new Ii(), 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 Ti(this), this.onMessageReceived = async (a) => {
2385
+ constructor(t, e, i, s, n) {
2386
+ this.id = t, this.name = e, this.container = i, this.settings = s, this.options = n, this.platform = new Pi(), this.texts = new Ii(), 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 Ti(this), this.onMessageReceived = async (a) => {
2387
2387
  var l;
2388
2388
  const c = a.data;
2389
2389
  switch (c.type) {
@@ -2432,7 +2432,7 @@ class Ri {
2432
2432
  return;
2433
2433
  }
2434
2434
  }, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
2435
- const n = {
2435
+ const o = {
2436
2436
  [y.Necessary]: !0,
2437
2437
  [y.Functional]: !0,
2438
2438
  [y.Analytics]: !0
@@ -2440,9 +2440,9 @@ class Ri {
2440
2440
  this.storage = new Oi(
2441
2441
  this.id,
2442
2442
  "sessionStorage",
2443
- n,
2443
+ o,
2444
2444
  this.settings.storage
2445
- ), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2445
+ ), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
2446
2446
  }
2447
2447
  async activate() {
2448
2448
  if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(de.Ready), this.autoActivate) {
@@ -2543,13 +2543,13 @@ const Vi = (r) => new W(r), st = class st {
2543
2543
  id: i.id,
2544
2544
  triggers: i.triggers || [],
2545
2545
  apps: (i.widgets || []).map((s) => {
2546
- let o = $.Trigger;
2547
- s.renderStrategy.toLowerCase() === "inline" && (o = $.Inline);
2548
- 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";
2546
+ let n = $.Trigger;
2547
+ s.renderStrategy.toLowerCase() === "inline" && (n = $.Inline);
2548
+ const o = 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";
2549
2549
  return {
2550
- id: n,
2551
- widgetId: n,
2552
- renderStrategy: o,
2550
+ id: o,
2551
+ widgetId: o,
2552
+ renderStrategy: n,
2553
2553
  autoActivate: a,
2554
2554
  anchor: c,
2555
2555
  triggerIcon: {
@@ -2578,12 +2578,12 @@ class Ni {
2578
2578
  var i;
2579
2579
  (((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
2580
2580
  if (s.storage) {
2581
- const o = {
2581
+ const n = {
2582
2582
  [y.Analytics]: t.includes("analytics"),
2583
2583
  [y.Necessary]: t.includes("necessary"),
2584
2584
  [y.Functional]: t.includes("functional")
2585
2585
  };
2586
- s.storage.updatePolicy(o);
2586
+ s.storage.updatePolicy(n);
2587
2587
  }
2588
2588
  });
2589
2589
  }
@@ -2616,13 +2616,13 @@ class Mi {
2616
2616
  (i) => i.autoActivate
2617
2617
  );
2618
2618
  (((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
2619
- const s = window.location.pathname, o = i.condition.outputs || [];
2620
- i.condition.type === "url" && o.forEach((n) => {
2621
- const a = n.action.type === "render_widget";
2622
- if ((n.value === s || n.value === "*") && a) {
2619
+ const s = window.location.pathname, n = i.condition.outputs || [];
2620
+ i.condition.type === "url" && n.forEach((o) => {
2621
+ const a = o.action.type === "render_widget";
2622
+ if ((o.value === s || o.value === "*") && a) {
2623
2623
  let l = { widgetId: "" };
2624
2624
  try {
2625
- l = JSON.parse(n.action.data);
2625
+ l = JSON.parse(o.action.data);
2626
2626
  } catch {
2627
2627
  l = {
2628
2628
  widgetId: ""
@@ -2662,16 +2662,16 @@ class Mi {
2662
2662
  if (!i) {
2663
2663
  const s = this.widgetAPIHandlers.get(t) || [];
2664
2664
  s.push(() => {
2665
- const o = this.applications.find((n) => n.name === t);
2666
- e(o == null ? void 0 : o.api);
2665
+ const n = this.applications.find((o) => o.name === t);
2666
+ e(n == null ? void 0 : n.api);
2667
2667
  }), this.widgetAPIHandlers.set(t, s);
2668
2668
  return;
2669
2669
  }
2670
2670
  e(i == null ? void 0 : i.api);
2671
2671
  }
2672
2672
  registerApp(t, e, i, s) {
2673
- const o = new Dt(e, this), n = new Ri(t, e, o, i, s);
2674
- this.applications.push(n);
2673
+ const n = new Dt(e, this), o = new Ri(t, e, n, i, s);
2674
+ this.applications.push(o);
2675
2675
  }
2676
2676
  registerSite(t) {
2677
2677
  this.site = t;
@@ -2739,8 +2739,8 @@ class Ui {
2739
2739
  }
2740
2740
  }
2741
2741
  var Li = Object.defineProperty, It = (r, t, e, i) => {
2742
- for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
2743
- (n = r[o]) && (s = n(t, e, s) || s);
2742
+ for (var s = void 0, n = r.length - 1, o; n >= 0; n--)
2743
+ (o = r[n]) && (s = o(t, e, s) || s);
2744
2744
  return s && Li(t, e, s), s;
2745
2745
  };
2746
2746
  const Mt = class Mt extends A {