@telia-ace/widget-core-flamingo 1.1.12-rc.7 → 1.1.12-rc.8

Sign up to get free protection for your applications and to get access to all the features.
package/index.mjs CHANGED
@@ -6,7 +6,7 @@ var ut = function(r, t) {
6
6
  Object.prototype.hasOwnProperty.call(i, n) && (e[n] = i[n]);
7
7
  }, ut(r, t);
8
8
  };
9
- function L(r, t) {
9
+ function D(r, t) {
10
10
  if (typeof t != "function" && t !== null)
11
11
  throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
12
12
  ut(r, t);
@@ -27,7 +27,7 @@ function pt(r) {
27
27
  };
28
28
  throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
29
29
  }
30
- function q(r, t) {
30
+ function Y(r, t) {
31
31
  var e = typeof Symbol == "function" && r[Symbol.iterator];
32
32
  if (!e)
33
33
  return r;
@@ -47,7 +47,7 @@ function q(r, t) {
47
47
  }
48
48
  return s;
49
49
  }
50
- function J(r, t, e) {
50
+ function q(r, t, e) {
51
51
  if (e || arguments.length === 2)
52
52
  for (var i = 0, n = t.length, s; i < n; i++)
53
53
  (s || !(i in t)) && (s || (s = Array.prototype.slice.call(t, 0, i)), s[i] = t[i]);
@@ -77,7 +77,7 @@ function dt(r, t) {
77
77
  0 <= e && r.splice(e, 1);
78
78
  }
79
79
  }
80
- var tt = function() {
80
+ var X = function() {
81
81
  function r(t) {
82
82
  this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
83
83
  }
@@ -121,7 +121,7 @@ var tt = function() {
121
121
  try {
122
122
  $t(g);
123
123
  } catch (v) {
124
- s = s ?? [], v instanceof nt ? s = J(J([], q(s)), q(v.errors)) : s.push(v);
124
+ s = s ?? [], v instanceof nt ? s = q(q([], Y(s)), Y(v.errors)) : s.push(v);
125
125
  }
126
126
  }
127
127
  } catch (v) {
@@ -167,9 +167,9 @@ var tt = function() {
167
167
  var t = new r();
168
168
  return t.closed = !0, t;
169
169
  }(), r;
170
- }(), Dt = tt.EMPTY;
170
+ }(), Dt = X.EMPTY;
171
171
  function Lt(r) {
172
- return r instanceof tt || r && "closed" in r && m(r.remove) && m(r.add) && m(r.unsubscribe);
172
+ return r instanceof X || r && "closed" in r && m(r.remove) && m(r.add) && m(r.unsubscribe);
173
173
  }
174
174
  function $t(r) {
175
175
  m(r) ? r() : r.unsubscribe();
@@ -185,7 +185,7 @@ var Bt = {
185
185
  for (var e = [], i = 2; i < arguments.length; i++)
186
186
  e[i - 2] = arguments[i];
187
187
  var n = ft.delegate;
188
- return n != null && n.setTimeout ? n.setTimeout.apply(n, J([r, t], q(e))) : setTimeout.apply(void 0, J([r, t], q(e)));
188
+ return n != null && n.setTimeout ? n.setTimeout.apply(n, q([r, t], Y(e))) : setTimeout.apply(void 0, q([r, t], Y(e)));
189
189
  },
190
190
  clearTimeout: function(r) {
191
191
  var t = ft.delegate;
@@ -193,21 +193,21 @@ var Bt = {
193
193
  },
194
194
  delegate: void 0
195
195
  };
196
- function ae(r) {
196
+ function se(r) {
197
197
  ft.setTimeout(function() {
198
198
  throw r;
199
199
  });
200
200
  }
201
201
  function wt() {
202
202
  }
203
- function F(r) {
203
+ function V(r) {
204
204
  r();
205
205
  }
206
206
  var zt = function(r) {
207
- L(t, r);
207
+ D(t, r);
208
208
  function t(e) {
209
209
  var i = r.call(this) || this;
210
- return i.isStopped = !1, e ? (i.destination = e, Lt(e) && e.add(i)) : i.destination = ue, i;
210
+ return i.isStopped = !1, e ? (i.destination = e, Lt(e) && e.add(i)) : i.destination = le, i;
211
211
  }
212
212
  return t.create = function(e, i, n) {
213
213
  return new gt(e, i, n);
@@ -234,11 +234,11 @@ var zt = function(r) {
234
234
  this.unsubscribe();
235
235
  }
236
236
  }, t;
237
- }(tt), ce = Function.prototype.bind;
237
+ }(X), oe = Function.prototype.bind;
238
238
  function st(r, t) {
239
- return ce.call(r, t);
239
+ return oe.call(r, t);
240
240
  }
241
- var le = function() {
241
+ var ae = function() {
242
242
  function r(t) {
243
243
  this.partialObserver = t;
244
244
  }
@@ -248,7 +248,7 @@ var le = function() {
248
248
  try {
249
249
  e.next(t);
250
250
  } catch (i) {
251
- G(i);
251
+ W(i);
252
252
  }
253
253
  }, r.prototype.error = function(t) {
254
254
  var e = this.partialObserver;
@@ -256,21 +256,21 @@ var le = function() {
256
256
  try {
257
257
  e.error(t);
258
258
  } catch (i) {
259
- G(i);
259
+ W(i);
260
260
  }
261
261
  else
262
- G(t);
262
+ W(t);
263
263
  }, r.prototype.complete = function() {
264
264
  var t = this.partialObserver;
265
265
  if (t.complete)
266
266
  try {
267
267
  t.complete();
268
268
  } catch (e) {
269
- G(e);
269
+ W(e);
270
270
  }
271
271
  }, r;
272
272
  }(), gt = function(r) {
273
- L(t, r);
273
+ D(t, r);
274
274
  function t(e, i, n) {
275
275
  var s = r.call(this) || this, o;
276
276
  if (m(e) || !e)
@@ -289,29 +289,29 @@ var le = function() {
289
289
  complete: e.complete && st(e.complete, a)
290
290
  }) : o = e;
291
291
  }
292
- return s.destination = new le(o), s;
292
+ return s.destination = new ae(o), s;
293
293
  }
294
294
  return t;
295
295
  }(zt);
296
- function G(r) {
297
- ae(r);
296
+ function W(r) {
297
+ se(r);
298
298
  }
299
- function he(r) {
299
+ function ce(r) {
300
300
  throw r;
301
301
  }
302
- var ue = {
302
+ var le = {
303
303
  closed: !0,
304
304
  next: wt,
305
- error: he,
305
+ error: ce,
306
306
  complete: wt
307
- }, pe = function() {
307
+ }, he = function() {
308
308
  return typeof Symbol == "function" && Symbol.observable || "@@observable";
309
309
  }();
310
- function de(r) {
310
+ function ue(r) {
311
311
  return r;
312
312
  }
313
- function fe(r) {
314
- return r.length === 0 ? de : r.length === 1 ? r[0] : function(e) {
313
+ function pe(r) {
314
+ return r.length === 0 ? ue : r.length === 1 ? r[0] : function(e) {
315
315
  return r.reduce(function(i, n) {
316
316
  return n(i);
317
317
  }, e);
@@ -325,8 +325,8 @@ var At = function() {
325
325
  var e = new r();
326
326
  return e.source = this, e.operator = t, e;
327
327
  }, r.prototype.subscribe = function(t, e, i) {
328
- var n = this, s = ve(t) ? t : new gt(t, e, i);
329
- return F(function() {
328
+ var n = this, s = fe(t) ? t : new gt(t, e, i);
329
+ return V(function() {
330
330
  var o = n, a = o.operator, c = o.source;
331
331
  s.add(a ? a.call(s, c) : c ? n._subscribe(s) : n._trySubscribe(s));
332
332
  }), s;
@@ -355,12 +355,12 @@ var At = function() {
355
355
  }, r.prototype._subscribe = function(t) {
356
356
  var e;
357
357
  return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
358
- }, r.prototype[pe] = function() {
358
+ }, r.prototype[he] = function() {
359
359
  return this;
360
360
  }, r.prototype.pipe = function() {
361
361
  for (var t = [], e = 0; e < arguments.length; e++)
362
362
  t[e] = arguments[e];
363
- return fe(t)(this);
363
+ return pe(t)(this);
364
364
  }, r.prototype.toPromise = function(t) {
365
365
  var e = this;
366
366
  return t = St(t), new t(function(i, n) {
@@ -381,18 +381,18 @@ function St(r) {
381
381
  var t;
382
382
  return (t = r ?? Bt.Promise) !== null && t !== void 0 ? t : Promise;
383
383
  }
384
- function ge(r) {
384
+ function de(r) {
385
385
  return r && m(r.next) && m(r.error) && m(r.complete);
386
386
  }
387
- function ve(r) {
388
- return r && r instanceof zt || ge(r) && Lt(r);
387
+ function fe(r) {
388
+ return r && r instanceof zt || de(r) && Lt(r);
389
389
  }
390
- var ye = Nt(function(r) {
390
+ var ge = Nt(function(r) {
391
391
  return function() {
392
392
  r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
393
393
  };
394
394
  }), Wt = function(r) {
395
- L(t, r);
395
+ D(t, r);
396
396
  function t() {
397
397
  var e = r.call(this) || this;
398
398
  return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
@@ -402,10 +402,10 @@ var ye = Nt(function(r) {
402
402
  return i.operator = e, i;
403
403
  }, t.prototype._throwIfClosed = function() {
404
404
  if (this.closed)
405
- throw new ye();
405
+ throw new ge();
406
406
  }, t.prototype.next = function(e) {
407
407
  var i = this;
408
- F(function() {
408
+ V(function() {
409
409
  var n, s;
410
410
  if (i._throwIfClosed(), !i.isStopped) {
411
411
  i.currentObservers || (i.currentObservers = Array.from(i.observers));
@@ -428,7 +428,7 @@ var ye = Nt(function(r) {
428
428
  });
429
429
  }, t.prototype.error = function(e) {
430
430
  var i = this;
431
- F(function() {
431
+ V(function() {
432
432
  if (i._throwIfClosed(), !i.isStopped) {
433
433
  i.hasError = i.isStopped = !0, i.thrownError = e;
434
434
  for (var n = i.observers; n.length; )
@@ -437,7 +437,7 @@ var ye = Nt(function(r) {
437
437
  });
438
438
  }, t.prototype.complete = function() {
439
439
  var e = this;
440
- F(function() {
440
+ V(function() {
441
441
  if (e._throwIfClosed(), !e.isStopped) {
442
442
  e.isStopped = !0;
443
443
  for (var i = e.observers; i.length; )
@@ -459,7 +459,7 @@ var ye = Nt(function(r) {
459
459
  return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
460
460
  }, t.prototype._innerSubscribe = function(e) {
461
461
  var i = this, n = this, s = n.hasError, o = n.isStopped, a = n.observers;
462
- return s || o ? Dt : (this.currentObservers = null, a.push(e), new tt(function() {
462
+ return s || o ? Dt : (this.currentObservers = null, a.push(e), new X(function() {
463
463
  i.currentObservers = null, dt(a, e);
464
464
  }));
465
465
  }, t.prototype._checkFinalizedStatuses = function(e) {
@@ -472,7 +472,7 @@ var ye = Nt(function(r) {
472
472
  return new Et(e, i);
473
473
  }, t;
474
474
  }(At), Et = function(r) {
475
- L(t, r);
475
+ D(t, r);
476
476
  function t(e, i) {
477
477
  var n = r.call(this) || this;
478
478
  return n.destination = e, n.source = i, n;
@@ -490,8 +490,8 @@ var ye = Nt(function(r) {
490
490
  var i, n;
491
491
  return (n = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && n !== void 0 ? n : Dt;
492
492
  }, t;
493
- }(Wt), me = function(r) {
494
- L(t, r);
493
+ }(Wt), ve = function(r) {
494
+ D(t, r);
495
495
  function t(e) {
496
496
  var i = r.call(this) || this;
497
497
  return i._value = e, i;
@@ -516,7 +516,7 @@ var ye = Nt(function(r) {
516
516
  }(Wt), Gt = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(Gt || {});
517
517
  class Ct {
518
518
  constructor(t, e) {
519
- this.state = new me(
519
+ this.state = new ve(
520
520
  "loading"
521
521
  /* Loading */
522
522
  ), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
@@ -539,7 +539,7 @@ class Ct {
539
539
  * Copyright 2019 Google LLC
540
540
  * SPDX-License-Identifier: BSD-3-Clause
541
541
  */
542
- const Y = globalThis, yt = Y.ShadowRoot && (Y.ShadyCSS === void 0 || Y.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, mt = Symbol(), xt = /* @__PURE__ */ new WeakMap();
542
+ const F = globalThis, yt = F.ShadowRoot && (F.ShadyCSS === void 0 || F.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, mt = Symbol(), xt = /* @__PURE__ */ new WeakMap();
543
543
  let Vt = class {
544
544
  constructor(t, e, i) {
545
545
  if (this._$cssResult$ = !0, i !== mt)
@@ -559,7 +559,7 @@ let Vt = class {
559
559
  return this.cssText;
560
560
  }
561
561
  };
562
- const be = (r) => new Vt(typeof r == "string" ? r : r + "", void 0, mt), B = (r, ...t) => {
562
+ const ye = (r) => new Vt(typeof r == "string" ? r : r + "", void 0, mt), L = (r, ...t) => {
563
563
  const e = r.length === 1 ? r[0] : t.reduce((i, n, s) => i + ((o) => {
564
564
  if (o._$cssResult$ === !0)
565
565
  return o.cssText;
@@ -568,29 +568,29 @@ const be = (r) => new Vt(typeof r == "string" ? r : r + "", void 0, mt), B = (r,
568
568
  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.");
569
569
  })(n) + r[s + 1], r[0]);
570
570
  return new Vt(e, r, mt);
571
- }, _e = (r, t) => {
571
+ }, me = (r, t) => {
572
572
  if (yt)
573
573
  r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
574
574
  else
575
575
  for (const e of t) {
576
- const i = document.createElement("style"), n = Y.litNonce;
576
+ const i = document.createElement("style"), n = F.litNonce;
577
577
  n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, r.appendChild(i);
578
578
  }
579
579
  }, Pt = yt ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
580
580
  let e = "";
581
581
  for (const i of t.cssRules)
582
582
  e += i.cssText;
583
- return be(e);
583
+ return ye(e);
584
584
  })(r) : r;
585
585
  /**
586
586
  * @license
587
587
  * Copyright 2017 Google LLC
588
588
  * SPDX-License-Identifier: BSD-3-Clause
589
589
  */
590
- const { is: $e, defineProperty: we, getOwnPropertyDescriptor: Ae, getOwnPropertyNames: Se, getOwnPropertySymbols: Ee, getPrototypeOf: Ce } = Object, _ = globalThis, Tt = _.trustedTypes, xe = Tt ? Tt.emptyScript : "", ot = _.reactiveElementPolyfillSupport, I = (r, t) => r, K = { toAttribute(r, t) {
590
+ const { is: be, defineProperty: _e, getOwnPropertyDescriptor: $e, getOwnPropertyNames: we, getOwnPropertySymbols: Ae, getPrototypeOf: Se } = Object, _ = globalThis, Tt = _.trustedTypes, Ee = Tt ? Tt.emptyScript : "", ot = _.reactiveElementPolyfillSupport, I = (r, t) => r, J = { toAttribute(r, t) {
591
591
  switch (t) {
592
592
  case Boolean:
593
- r = r ? xe : null;
593
+ r = r ? Ee : null;
594
594
  break;
595
595
  case Object:
596
596
  case Array:
@@ -615,7 +615,7 @@ const { is: $e, defineProperty: we, getOwnPropertyDescriptor: Ae, getOwnProperty
615
615
  }
616
616
  }
617
617
  return e;
618
- } }, bt = (r, t) => !$e(r, t), Ot = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: bt };
618
+ } }, bt = (r, t) => !be(r, t), Ot = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: bt };
619
619
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
620
620
  class T extends HTMLElement {
621
621
  static addInitializer(t) {
@@ -627,11 +627,11 @@ class T extends HTMLElement {
627
627
  static createProperty(t, e = Ot) {
628
628
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
629
629
  const i = Symbol(), n = this.getPropertyDescriptor(t, i, e);
630
- n !== void 0 && we(this.prototype, t, n);
630
+ n !== void 0 && _e(this.prototype, t, n);
631
631
  }
632
632
  }
633
633
  static getPropertyDescriptor(t, e, i) {
634
- const { get: n, set: s } = Ae(this.prototype, t) ?? { get() {
634
+ const { get: n, set: s } = $e(this.prototype, t) ?? { get() {
635
635
  return this[e];
636
636
  }, set(o) {
637
637
  this[e] = o;
@@ -649,14 +649,14 @@ class T extends HTMLElement {
649
649
  static _$Ei() {
650
650
  if (this.hasOwnProperty(I("elementProperties")))
651
651
  return;
652
- const t = Ce(this);
652
+ const t = Se(this);
653
653
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
654
654
  }
655
655
  static finalize() {
656
656
  if (this.hasOwnProperty(I("finalized")))
657
657
  return;
658
658
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(I("properties"))) {
659
- const e = this.properties, i = [...Se(e), ...Ee(e)];
659
+ const e = this.properties, i = [...we(e), ...Ae(e)];
660
660
  for (const n of i)
661
661
  this.createProperty(n, e[n]);
662
662
  }
@@ -711,7 +711,7 @@ class T extends HTMLElement {
711
711
  }
712
712
  createRenderRoot() {
713
713
  const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
714
- return _e(t, this.constructor.elementStyles), t;
714
+ return me(t, this.constructor.elementStyles), t;
715
715
  }
716
716
  connectedCallback() {
717
717
  var t;
@@ -736,7 +736,7 @@ class T extends HTMLElement {
736
736
  var s;
737
737
  const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
738
738
  if (n !== void 0 && i.reflect === !0) {
739
- const o = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : K).toAttribute(e, i.type);
739
+ const o = (((s = i.converter) == null ? void 0 : s.toAttribute) !== void 0 ? i.converter : J).toAttribute(e, i.type);
740
740
  this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
741
741
  }
742
742
  }
@@ -744,7 +744,7 @@ class T extends HTMLElement {
744
744
  var s;
745
745
  const i = this.constructor, n = i._$Eh.get(t);
746
746
  if (n !== void 0 && this._$Em !== n) {
747
- const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : K;
747
+ const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) == null ? void 0 : s.fromAttribute) !== void 0 ? o.converter : J;
748
748
  this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
749
749
  }
750
750
  }
@@ -834,15 +834,15 @@ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[I("elementProper
834
834
  * Copyright 2017 Google LLC
835
835
  * SPDX-License-Identifier: BSD-3-Clause
836
836
  */
837
- const M = globalThis, Z = M.trustedTypes, Ut = Z ? Z.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ft = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, Yt = "?" + b, Pe = `<${Yt}>`, x = document, j = () => x.createComment(""), H = (r) => r === null || typeof r != "object" && typeof r != "function", qt = Array.isArray, Te = (r) => qt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
837
+ const M = globalThis, K = M.trustedTypes, Ut = K ? K.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Ft = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, Yt = "?" + b, Ce = `<${Yt}>`, x = document, j = () => x.createComment(""), H = (r) => r === null || typeof r != "object" && typeof r != "function", qt = Array.isArray, xe = (r) => qt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
838
838
  \f\r]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rt = /-->/g, It = />/g, S = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
839
- \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Oe = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Q = Oe(1), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), C = x.createTreeWalker(x, 129);
839
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), Mt = /'/g, kt = /"/g, Jt = /^(?:script|style|textarea|title)$/i, Pe = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), Z = Pe(1), P = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), C = x.createTreeWalker(x, 129);
840
840
  function Kt(r, t) {
841
841
  if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
842
842
  throw Error("invalid template strings array");
843
843
  return Ut !== void 0 ? Ut.createHTML(t) : t;
844
844
  }
845
- const Ue = (r, t) => {
845
+ const Te = (r, t) => {
846
846
  const e = r.length - 1, i = [];
847
847
  let n, s = t === 2 ? "<svg>" : "", o = R;
848
848
  for (let a = 0; a < e; a++) {
@@ -851,7 +851,7 @@ const Ue = (r, t) => {
851
851
  for (; f < c.length && (o.lastIndex = f, d = o.exec(c), d !== null); )
852
852
  f = o.lastIndex, o === R ? d[1] === "!--" ? o = Rt : d[1] !== void 0 ? o = It : d[2] !== void 0 ? (Jt.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = S) : d[3] !== void 0 && (o = S) : o === S ? d[0] === ">" ? (o = n ?? R, l = -1) : d[1] === void 0 ? l = -2 : (l = o.lastIndex - d[2].length, h = d[1], o = d[3] === void 0 ? S : d[3] === '"' ? kt : Mt) : o === kt || o === Mt ? o = S : o === Rt || o === It ? o = R : (o = S, n = void 0);
853
853
  const u = o === S && r[a + 1].startsWith("/>") ? " " : "";
854
- s += o === R ? c + Pe : l >= 0 ? (i.push(h), c.slice(0, l) + Ft + c.slice(l) + b + u) : c + b + (l === -2 ? a : u);
854
+ s += o === R ? c + Ce : l >= 0 ? (i.push(h), c.slice(0, l) + Ft + c.slice(l) + b + u) : c + b + (l === -2 ? a : u);
855
855
  }
856
856
  return [Kt(r, s + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
857
857
  };
@@ -860,7 +860,7 @@ class N {
860
860
  let n;
861
861
  this.parts = [];
862
862
  let s = 0, o = 0;
863
- const a = t.length - 1, c = this.parts, [h, d] = Ue(t, e);
863
+ const a = t.length - 1, c = this.parts, [h, d] = Te(t, e);
864
864
  if (this.el = N.createElement(h, i), C.currentNode = this.el.content, e === 2) {
865
865
  const l = this.el.content.firstChild;
866
866
  l.replaceWith(...l.childNodes);
@@ -871,13 +871,13 @@ class N {
871
871
  for (const l of n.getAttributeNames())
872
872
  if (l.endsWith(Ft)) {
873
873
  const f = d[o++], u = n.getAttribute(l).split(b), g = /([.?@])?(.*)/.exec(f);
874
- c.push({ type: 1, index: s, name: g[2], strings: u, ctor: g[1] === "." ? Ie : g[1] === "?" ? Me : g[1] === "@" ? ke : et }), n.removeAttribute(l);
874
+ c.push({ type: 1, index: s, name: g[2], strings: u, ctor: g[1] === "." ? Ue : g[1] === "?" ? Re : g[1] === "@" ? Ie : tt }), n.removeAttribute(l);
875
875
  } else
876
876
  l.startsWith(b) && (c.push({ type: 6, index: s }), n.removeAttribute(l));
877
877
  if (Jt.test(n.tagName)) {
878
878
  const l = n.textContent.split(b), f = l.length - 1;
879
879
  if (f > 0) {
880
- n.textContent = Z ? Z.emptyScript : "";
880
+ n.textContent = K ? K.emptyScript : "";
881
881
  for (let u = 0; u < f; u++)
882
882
  n.append(l[u], j()), C.nextNode(), c.push({ type: 2, index: ++s });
883
883
  n.append(l[f], j());
@@ -907,7 +907,7 @@ function O(r, t, e = r, i) {
907
907
  const s = H(t) ? void 0 : t._$litDirective$;
908
908
  return (n == null ? void 0 : n.constructor) !== s && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), s === void 0 ? n = void 0 : (n = new s(r), n._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t = O(r, n._$AS(r, t.values), n, i)), t;
909
909
  }
910
- class Re {
910
+ class Oe {
911
911
  constructor(t, e) {
912
912
  this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
913
913
  }
@@ -924,7 +924,7 @@ class Re {
924
924
  for (; c !== void 0; ) {
925
925
  if (o === c.index) {
926
926
  let h;
927
- c.type === 2 ? h = new z(s, s.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (h = new je(s, this, t)), this._$AV.push(h), c = i[++a];
927
+ c.type === 2 ? h = new B(s, s.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(s, c.name, c.strings, this, t) : c.type === 6 && (h = new Me(s, this, t)), this._$AV.push(h), c = i[++a];
928
928
  }
929
929
  o !== (c == null ? void 0 : c.index) && (s = C.nextNode(), o++);
930
930
  }
@@ -936,7 +936,7 @@ class Re {
936
936
  i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
937
937
  }
938
938
  }
939
- class z {
939
+ class B {
940
940
  get _$AU() {
941
941
  var t;
942
942
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -956,7 +956,7 @@ class z {
956
956
  return this._$AB;
957
957
  }
958
958
  _$AI(t, e = this) {
959
- t = O(this, t, e), H(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Te(t) ? this.T(t) : this._(t);
959
+ t = O(this, t, e), H(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : xe(t) ? this.T(t) : this._(t);
960
960
  }
961
961
  k(t) {
962
962
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -973,7 +973,7 @@ class z {
973
973
  if (((s = this._$AH) == null ? void 0 : s._$AD) === n)
974
974
  this._$AH.p(e);
975
975
  else {
976
- const o = new Re(n, this), a = o.u(this.options);
976
+ const o = new Oe(n, this), a = o.u(this.options);
977
977
  o.p(e), this.$(a), this._$AH = o;
978
978
  }
979
979
  }
@@ -986,7 +986,7 @@ class z {
986
986
  const e = this._$AH;
987
987
  let i, n = 0;
988
988
  for (const s of t)
989
- n === e.length ? e.push(i = new z(this.k(j()), this.k(j()), this, this.options)) : i = e[n], i._$AI(s), n++;
989
+ n === e.length ? e.push(i = new B(this.k(j()), this.k(j()), this, this.options)) : i = e[n], i._$AI(s), n++;
990
990
  n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
991
991
  }
992
992
  _$AR(t = this._$AA.nextSibling, e) {
@@ -1001,7 +1001,7 @@ class z {
1001
1001
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
1002
1002
  }
1003
1003
  }
1004
- class et {
1004
+ class tt {
1005
1005
  get tagName() {
1006
1006
  return this.element.tagName;
1007
1007
  }
@@ -1028,7 +1028,7 @@ class et {
1028
1028
  t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
1029
1029
  }
1030
1030
  }
1031
- class Ie extends et {
1031
+ class Ue extends tt {
1032
1032
  constructor() {
1033
1033
  super(...arguments), this.type = 3;
1034
1034
  }
@@ -1036,7 +1036,7 @@ class Ie extends et {
1036
1036
  this.element[this.name] = t === p ? void 0 : t;
1037
1037
  }
1038
1038
  }
1039
- class Me extends et {
1039
+ class Re extends tt {
1040
1040
  constructor() {
1041
1041
  super(...arguments), this.type = 4;
1042
1042
  }
@@ -1044,7 +1044,7 @@ class Me extends et {
1044
1044
  this.element.toggleAttribute(this.name, !!t && t !== p);
1045
1045
  }
1046
1046
  }
1047
- class ke extends et {
1047
+ class Ie extends tt {
1048
1048
  constructor(t, e, i, n, s) {
1049
1049
  super(t, e, i, n, s), this.type = 5;
1050
1050
  }
@@ -1059,7 +1059,7 @@ class ke extends et {
1059
1059
  typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
1060
1060
  }
1061
1061
  }
1062
- class je {
1062
+ class Me {
1063
1063
  constructor(t, e, i) {
1064
1064
  this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
1065
1065
  }
@@ -1071,13 +1071,13 @@ class je {
1071
1071
  }
1072
1072
  }
1073
1073
  const ct = M.litHtmlPolyfillSupport;
1074
- ct == null || ct(N, z), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.0.2");
1075
- const He = (r, t, e) => {
1074
+ ct == null || ct(N, B), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.0.2");
1075
+ const ke = (r, t, e) => {
1076
1076
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
1077
1077
  let n = i._$litPart$;
1078
1078
  if (n === void 0) {
1079
1079
  const s = (e == null ? void 0 : e.renderBefore) ?? null;
1080
- i._$litPart$ = n = new z(t.insertBefore(j(), s), s, void 0, e ?? {});
1080
+ i._$litPart$ = n = new B(t.insertBefore(j(), s), s, void 0, e ?? {});
1081
1081
  }
1082
1082
  return n._$AI(r), n;
1083
1083
  };
@@ -1097,7 +1097,7 @@ let $ = class extends T {
1097
1097
  }
1098
1098
  update(t) {
1099
1099
  const e = this.render();
1100
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = He(e, this.renderRoot, this.renderOptions);
1100
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ke(e, this.renderRoot, this.renderOptions);
1101
1101
  }
1102
1102
  connectedCallback() {
1103
1103
  var t;
@@ -1121,7 +1121,7 @@ lt == null || lt({ LitElement: $ });
1121
1121
  * Copyright 2017 Google LLC
1122
1122
  * SPDX-License-Identifier: BSD-3-Clause
1123
1123
  */
1124
- const Zt = (r) => (t, e) => {
1124
+ const je = (r) => (t, e) => {
1125
1125
  e !== void 0 ? e.addInitializer(() => {
1126
1126
  customElements.define(r, t);
1127
1127
  }) : customElements.define(r, t);
@@ -1131,7 +1131,7 @@ const Zt = (r) => (t, e) => {
1131
1131
  * Copyright 2017 Google LLC
1132
1132
  * SPDX-License-Identifier: BSD-3-Clause
1133
1133
  */
1134
- const Ne = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: bt }, De = (r = Ne, t, e) => {
1134
+ const He = { attribute: !0, type: String, converter: J, reflect: !1, hasChanged: bt }, Ne = (r = He, t, e) => {
1135
1135
  const { kind: i, metadata: n } = e;
1136
1136
  let s = globalThis.litPropertyMetadata.get(n);
1137
1137
  if (s === void 0 && globalThis.litPropertyMetadata.set(n, s = /* @__PURE__ */ new Map()), s.set(e.name, r), i === "accessor") {
@@ -1153,7 +1153,7 @@ const Ne = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged:
1153
1153
  throw Error("Unsupported decorator location: " + i);
1154
1154
  };
1155
1155
  function y(r) {
1156
- return (t, e) => typeof e == "object" ? De(r, t, e) : ((i, n, s) => {
1156
+ return (t, e) => typeof e == "object" ? Ne(r, t, e) : ((i, n, s) => {
1157
1157
  const o = n.hasOwnProperty(s);
1158
1158
  return n.constructor.createProperty(s, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, s) : void 0;
1159
1159
  })(r, t, e);
@@ -1163,7 +1163,7 @@ function y(r) {
1163
1163
  * Copyright 2017 Google LLC
1164
1164
  * SPDX-License-Identifier: BSD-3-Clause
1165
1165
  */
1166
- function W(r) {
1166
+ function z(r) {
1167
1167
  return y({ ...r, state: !0, attribute: !1 });
1168
1168
  }
1169
1169
  /**
@@ -1171,8 +1171,8 @@ function W(r) {
1171
1171
  * Copyright 2017 Google LLC
1172
1172
  * SPDX-License-Identifier: BSD-3-Clause
1173
1173
  */
1174
- const Qt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xt = (r) => (...t) => ({ _$litDirective$: r, values: t });
1175
- class te {
1174
+ const Zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Qt = (r) => (...t) => ({ _$litDirective$: r, values: t });
1175
+ class Xt {
1176
1176
  constructor(t) {
1177
1177
  }
1178
1178
  get _$AU() {
@@ -1193,10 +1193,10 @@ class te {
1193
1193
  * Copyright 2018 Google LLC
1194
1194
  * SPDX-License-Identifier: BSD-3-Clause
1195
1195
  */
1196
- const Le = Xt(class extends te {
1196
+ const De = Qt(class extends Xt {
1197
1197
  constructor(r) {
1198
1198
  var t;
1199
- if (super(r), r.type !== Qt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
1199
+ if (super(r), r.type !== Zt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
1200
1200
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
1201
1201
  }
1202
1202
  render(r) {
@@ -1219,28 +1219,28 @@ const Le = Xt(class extends te {
1219
1219
  }
1220
1220
  return P;
1221
1221
  }
1222
- }), V = (r, t, e) => {
1222
+ }), G = (r, t, e) => {
1223
1223
  r && e.style.setProperty(t, r);
1224
- }, ee = (r, t) => {
1224
+ }, te = (r, t) => {
1225
1225
  var e, i, n, s;
1226
- V((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), V(
1226
+ G((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), G(
1227
1227
  (i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
1228
1228
  "--text-on-primary-background",
1229
1229
  t
1230
- ), V(
1230
+ ), G(
1231
1231
  (n = r.colors) == null ? void 0 : n.secondaryBackground,
1232
1232
  "--secondary-background",
1233
1233
  t
1234
- ), V(
1234
+ ), G(
1235
1235
  (s = r.colors) == null ? void 0 : s.textOnSecondaryBackground,
1236
1236
  "--text-on-secondary-background",
1237
1237
  t
1238
1238
  );
1239
1239
  };
1240
- var Be = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, rt = (r, t, e, i) => {
1241
- for (var n = i > 1 ? void 0 : i ? ze(t, e) : t, s = r.length - 1, o; s >= 0; s--)
1240
+ var Le = Object.defineProperty, Be = Object.getOwnPropertyDescriptor, et = (r, t, e, i) => {
1241
+ for (var n = i > 1 ? void 0 : i ? Be(t, e) : t, s = r.length - 1, o; s >= 0; s--)
1242
1242
  (o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
1243
- return i && n && Be(t, e, n), n;
1243
+ return i && n && Le(t, e, n), n;
1244
1244
  };
1245
1245
  class A extends $ {
1246
1246
  constructor() {
@@ -1261,7 +1261,7 @@ class A extends $ {
1261
1261
  }
1262
1262
  _applyBranding() {
1263
1263
  var t;
1264
- (t = this.application) != null && t.settings && ee(this.application.settings.branding, this);
1264
+ (t = this.application) != null && t.settings && te(this.application.settings.branding, this);
1265
1265
  }
1266
1266
  async _renderSymbol() {
1267
1267
  var s;
@@ -1274,7 +1274,7 @@ class A extends $ {
1274
1274
  switch (i) {
1275
1275
  case "Telia": {
1276
1276
  const o = await e(n);
1277
- return o ? Q`<telia-icon
1277
+ return o ? Z`<telia-icon
1278
1278
  class="trigger-icon"
1279
1279
  svg=${o.svg}
1280
1280
  size="lg"
@@ -1285,8 +1285,8 @@ class A extends $ {
1285
1285
  }
1286
1286
  }
1287
1287
  render() {
1288
- return Q`<button
1289
- class=${Le({
1288
+ return Z`<button
1289
+ class=${De({
1290
1290
  trigger: !0,
1291
1291
  active: this.active,
1292
1292
  rendered: this.loaded
@@ -1325,7 +1325,7 @@ class A extends $ {
1325
1325
  }
1326
1326
  }
1327
1327
  A.styles = [
1328
- B`
1328
+ L`
1329
1329
  :host {
1330
1330
  --voca-rem-multiplier: 0.625;
1331
1331
  display: block;
@@ -1395,24 +1395,24 @@ A.styles = [
1395
1395
  }
1396
1396
  `
1397
1397
  ];
1398
- rt([
1398
+ et([
1399
1399
  y({ attribute: !1 })
1400
1400
  ], A.prototype, "application", 2);
1401
- rt([
1402
- W()
1401
+ et([
1402
+ z()
1403
1403
  ], A.prototype, "active", 2);
1404
- rt([
1405
- W()
1404
+ et([
1405
+ z()
1406
1406
  ], A.prototype, "loaded", 2);
1407
- rt([
1408
- W()
1407
+ et([
1408
+ z()
1409
1409
  ], A.prototype, "icon", 2);
1410
- var We = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, E = (r, t, e, i) => {
1411
- for (var n = i > 1 ? void 0 : i ? Ge(t, e) : t, s = r.length - 1, o; s >= 0; s--)
1410
+ var ze = Object.defineProperty, We = Object.getOwnPropertyDescriptor, E = (r, t, e, i) => {
1411
+ for (var n = i > 1 ? void 0 : i ? We(t, e) : t, s = r.length - 1, o; s >= 0; s--)
1412
1412
  (o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
1413
- return i && n && We(t, e, n), n;
1413
+ return i && n && ze(t, e, n), n;
1414
1414
  };
1415
- const Ve = (r) => {
1415
+ const Ge = (r) => {
1416
1416
  class t extends r {
1417
1417
  constructor() {
1418
1418
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -1438,7 +1438,7 @@ const Ve = (r) => {
1438
1438
  }
1439
1439
  return t.styles = [
1440
1440
  // (superClass as unknown as typeof LitElement).styles ?? [],
1441
- B`
1441
+ L`
1442
1442
  :host {
1443
1443
  font-family: var(--font-family);
1444
1444
  grid-column: span var(--width);
@@ -1467,13 +1467,13 @@ const Ve = (r) => {
1467
1467
  y({ attribute: !1 })
1468
1468
  ], t.prototype, "parent", 2), t;
1469
1469
  };
1470
- class _t extends Ve($) {
1470
+ class _t extends Ge($) {
1471
1471
  render() {
1472
- return Q`Non resolved component`;
1472
+ return Z`Non resolved component`;
1473
1473
  }
1474
1474
  }
1475
1475
  _t.styles = [
1476
- B`
1476
+ L`
1477
1477
  :host {
1478
1478
  display: block;
1479
1479
  }
@@ -1484,7 +1484,7 @@ _t.styles = [
1484
1484
  * Copyright 2020 Google LLC
1485
1485
  * SPDX-License-Identifier: BSD-3-Clause
1486
1486
  */
1487
- const Fe = (r) => r.strings === void 0;
1487
+ const Ve = (r) => r.strings === void 0;
1488
1488
  /**
1489
1489
  * @license
1490
1490
  * Copyright 2017 Google LLC
@@ -1498,54 +1498,54 @@ const k = (r, t) => {
1498
1498
  for (const n of e)
1499
1499
  (i = n._$AO) == null || i.call(n, t, !1), k(n, t);
1500
1500
  return !0;
1501
- }, X = (r) => {
1501
+ }, Q = (r) => {
1502
1502
  let t, e;
1503
1503
  do {
1504
1504
  if ((t = r._$AM) === void 0)
1505
1505
  break;
1506
1506
  e = t._$AN, e.delete(r), r = t;
1507
1507
  } while ((e == null ? void 0 : e.size) === 0);
1508
- }, re = (r) => {
1508
+ }, ee = (r) => {
1509
1509
  for (let t; t = r._$AM; r = t) {
1510
1510
  let e = t._$AN;
1511
1511
  if (e === void 0)
1512
1512
  t._$AN = e = /* @__PURE__ */ new Set();
1513
1513
  else if (e.has(r))
1514
1514
  break;
1515
- e.add(r), Je(t);
1515
+ e.add(r), qe(t);
1516
1516
  }
1517
1517
  };
1518
- function Ye(r) {
1519
- this._$AN !== void 0 ? (X(this), this._$AM = r, re(this)) : this._$AM = r;
1518
+ function Fe(r) {
1519
+ this._$AN !== void 0 ? (Q(this), this._$AM = r, ee(this)) : this._$AM = r;
1520
1520
  }
1521
- function qe(r, t = !1, e = 0) {
1521
+ function Ye(r, t = !1, e = 0) {
1522
1522
  const i = this._$AH, n = this._$AN;
1523
1523
  if (n !== void 0 && n.size !== 0)
1524
1524
  if (t)
1525
1525
  if (Array.isArray(i))
1526
1526
  for (let s = e; s < i.length; s++)
1527
- k(i[s], !1), X(i[s]);
1527
+ k(i[s], !1), Q(i[s]);
1528
1528
  else
1529
- i != null && (k(i, !1), X(i));
1529
+ i != null && (k(i, !1), Q(i));
1530
1530
  else
1531
1531
  k(this, r);
1532
1532
  }
1533
- const Je = (r) => {
1534
- r.type == Qt.CHILD && (r._$AP ?? (r._$AP = qe), r._$AQ ?? (r._$AQ = Ye));
1533
+ const qe = (r) => {
1534
+ r.type == Zt.CHILD && (r._$AP ?? (r._$AP = Ye), r._$AQ ?? (r._$AQ = Fe));
1535
1535
  };
1536
- class Ke extends te {
1536
+ class Je extends Xt {
1537
1537
  constructor() {
1538
1538
  super(...arguments), this._$AN = void 0;
1539
1539
  }
1540
1540
  _$AT(t, e, i) {
1541
- super._$AT(t, e, i), re(this), this.isConnected = t._$AU;
1541
+ super._$AT(t, e, i), ee(this), this.isConnected = t._$AU;
1542
1542
  }
1543
1543
  _$AO(t, e = !0) {
1544
1544
  var i, n;
1545
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (k(this, t), X(this));
1545
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (k(this, t), Q(this));
1546
1546
  }
1547
1547
  setValue(t) {
1548
- if (Fe(this._$Ct))
1548
+ if (Ve(this._$Ct))
1549
1549
  this._$Ct._$AI(t, this);
1550
1550
  else {
1551
1551
  const e = [...this._$Ct._$AH];
@@ -1562,10 +1562,10 @@ class Ke extends te {
1562
1562
  * Copyright 2020 Google LLC
1563
1563
  * SPDX-License-Identifier: BSD-3-Clause
1564
1564
  */
1565
- const Ze = () => new Qe();
1566
- class Qe {
1565
+ const Ke = () => new Ze();
1566
+ class Ze {
1567
1567
  }
1568
- const ht = /* @__PURE__ */ new WeakMap(), Xe = Xt(class extends Ke {
1568
+ const ht = /* @__PURE__ */ new WeakMap(), Qe = Qt(class extends Je {
1569
1569
  render(r) {
1570
1570
  return p;
1571
1571
  }
@@ -1598,41 +1598,41 @@ const ht = /* @__PURE__ */ new WeakMap(), Xe = Xt(class extends Ke {
1598
1598
  * Copyright 2021 Google LLC
1599
1599
  * SPDX-License-Identifier: BSD-3-Clause
1600
1600
  */
1601
- function* tr(r, t) {
1601
+ function* Xe(r, t) {
1602
1602
  if (r !== void 0) {
1603
1603
  let e = 0;
1604
1604
  for (const i of r)
1605
1605
  yield t(i, e++);
1606
1606
  }
1607
1607
  }
1608
- var w = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(w || {}), er = Object.defineProperty, rr = Object.getOwnPropertyDescriptor, ie = (r, t, e, i) => {
1609
- for (var n = i > 1 ? void 0 : i ? rr(t, e) : t, s = r.length - 1, o; s >= 0; s--)
1608
+ var w = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(w || {}), tr = Object.defineProperty, er = Object.getOwnPropertyDescriptor, rr = (r, t, e, i) => {
1609
+ for (var n = i > 1 ? void 0 : i ? er(t, e) : t, s = r.length - 1, o; s >= 0; s--)
1610
1610
  (o = r[s]) && (n = (i ? o(t, e, n) : o(n)) || n);
1611
- return i && n && er(t, e, n), n;
1611
+ return i && n && tr(t, e, n), n;
1612
1612
  };
1613
- let D = class extends $ {
1613
+ class rt extends $ {
1614
1614
  constructor() {
1615
- super(...arguments), this.nodes = [], this.wrapperRef = Ze();
1615
+ super(...arguments), this.nodes = [], this.wrapperRef = Ke();
1616
1616
  }
1617
- addChild(r) {
1618
- r.parent = this, this.nodes.push(r);
1617
+ addChild(t) {
1618
+ t.parent = this, this.nodes.push(t);
1619
1619
  }
1620
1620
  applyBranding() {
1621
1621
  if (this.wrapperRef.value) {
1622
- const r = this.application.settings;
1623
- r != null && r.branding && ee(r.branding, this.wrapperRef.value);
1622
+ const t = this.application.settings;
1623
+ t != null && t.branding && te(t.branding, this.wrapperRef.value);
1624
1624
  }
1625
1625
  }
1626
- firstUpdated(r) {
1626
+ firstUpdated(t) {
1627
1627
  this.applyBranding();
1628
1628
  }
1629
1629
  render() {
1630
- return this.application.renderStrategy === w.Trigger && this.renderRoot.host.classList.add("floating"), Q`<div class="widget-container" ${Xe(this.wrapperRef)}>
1631
- ${tr(this.nodes, (r) => r)}
1630
+ return this.application.renderStrategy === w.Trigger && this.renderRoot.host.classList.add("floating"), Z`<div class="widget-container" ${Qe(this.wrapperRef)}>
1631
+ ${Xe(this.nodes, (t) => t)}
1632
1632
  </div>`;
1633
1633
  }
1634
- };
1635
- D.styles = B`
1634
+ }
1635
+ rt.styles = L`
1636
1636
  :host {
1637
1637
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1638
1638
  --spacing-xs: 0.2rem;
@@ -1711,12 +1711,9 @@ D.styles = B`
1711
1711
  }
1712
1712
  }
1713
1713
  `;
1714
- ie([
1714
+ rr([
1715
1715
  y({ attribute: !1 })
1716
- ], D.prototype, "application", 2);
1717
- D = ie([
1718
- Zt("ace-wrapper")
1719
- ], D);
1716
+ ], rt.prototype, "application", 2);
1720
1717
  class ir {
1721
1718
  constructor() {
1722
1719
  this.root = this.createRoot();
@@ -1757,7 +1754,7 @@ class ir {
1757
1754
  return n(this, this.root, [s], o), this.root;
1758
1755
  }
1759
1756
  createRoot() {
1760
- return new D();
1757
+ return new rt();
1761
1758
  }
1762
1759
  createNode(t, e) {
1763
1760
  const i = this.resolveComponent(e);
@@ -1773,7 +1770,7 @@ class ir {
1773
1770
  return this.root;
1774
1771
  }
1775
1772
  }
1776
- const ne = class {
1773
+ const re = class {
1777
1774
  constructor() {
1778
1775
  this.components = /* @__PURE__ */ new Map();
1779
1776
  }
@@ -1793,15 +1790,15 @@ const ne = class {
1793
1790
  await Promise.all(r);
1794
1791
  }
1795
1792
  defineAsWebComponent(r, t) {
1796
- const e = ne.ResolveWebComponentName(r);
1793
+ const e = re.ResolveWebComponentName(r);
1797
1794
  customElements.get(e) || customElements.define(e, t);
1798
1795
  }
1799
1796
  };
1800
- let se = ne;
1801
- se.ResolveWebComponentName = (r) => `ace-${r}`;
1797
+ let ie = re;
1798
+ ie.ResolveWebComponentName = (r) => `ace-${r}`;
1802
1799
  class nr {
1803
1800
  constructor(t, e, i, n) {
1804
- this.name = t, this.container = e, this.settings = i, this.options = n, this.platform = new ir(), this.renderStrategy = w.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new se(), this.renderStrategy = this.options.renderStrategy || w.Inline, this.triggerIcon = this.options.triggerIcon, typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), this.container.register("$settings", i);
1801
+ this.name = t, this.container = e, this.settings = i, this.options = n, this.platform = new ir(), this.renderStrategy = w.Inline, this.autoActivate = !1, this.plugins = [], this.componentResolver = new ie(), this.renderStrategy = this.options.renderStrategy || w.Inline, this.triggerIcon = this.options.triggerIcon, typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), this.container.register("$settings", i);
1805
1802
  }
1806
1803
  async activate() {
1807
1804
  if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(Gt.Ready), this.autoActivate) {
@@ -1836,7 +1833,7 @@ class nr {
1836
1833
  return this.root;
1837
1834
  }
1838
1835
  }
1839
- const oe = class {
1836
+ const ne = class {
1840
1837
  // TODO:
1841
1838
  // private static endpoint = 'http://localhost:5299/api'; // TODO:
1842
1839
  static async getSite(r) {
@@ -1858,14 +1855,14 @@ const oe = class {
1858
1855
  } : null;
1859
1856
  }
1860
1857
  static async getWidget(r) {
1861
- const e = await (await fetch(`${oe.endpoint}/widget/${r}`)).json();
1858
+ const e = await (await fetch(`${ne.endpoint}/widget/${r}`)).json();
1862
1859
  return e ? {
1863
1860
  name: e.name,
1864
1861
  config: JSON.parse(e.configuration)
1865
1862
  } : null;
1866
1863
  }
1867
1864
  };
1868
- let vt = oe;
1865
+ let vt = ne;
1869
1866
  vt.endpoint = "https://widgets.ace.teliacompany.net/api";
1870
1867
  class sr {
1871
1868
  constructor() {
@@ -1977,7 +1974,7 @@ let U = class extends $ {
1977
1974
  }
1978
1975
  };
1979
1976
  U.styles = [
1980
- B`
1977
+ L`
1981
1978
  :host {
1982
1979
  display: block;
1983
1980
  }
@@ -1987,16 +1984,17 @@ it([
1987
1984
  y({ attribute: !0 })
1988
1985
  ], U.prototype, "name", 2);
1989
1986
  it([
1990
- W()
1987
+ z()
1991
1988
  ], U.prototype, "widget", 2);
1992
1989
  it([
1993
- W()
1990
+ z()
1994
1991
  ], U.prototype, "status", 2);
1995
1992
  U = it([
1996
- Zt("ace-widget")
1993
+ je("ace-widget")
1997
1994
  ], U);
1998
1995
  customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
1999
1996
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", _t);
1997
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
2000
1998
  const ur = async (r, t) => {
2001
1999
  await new or(r).bootstrap(t);
2002
2000
  };
@@ -2007,6 +2005,6 @@ export {
2007
2005
  sr as Environment,
2008
2006
  or as Site,
2009
2007
  A as Trigger,
2010
- Ve as WidgetComponent,
2008
+ Ge as WidgetComponent,
2011
2009
  ur as bootstrap
2012
2010
  };