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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,17 +3,17 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const j = globalThis, X = j.ShadowRoot && (j.ShadyCSS === void 0 || j.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, tt = Symbol(), rt = /* @__PURE__ */ new WeakMap();
6
+ const j = globalThis, Q = j.ShadowRoot && (j.ShadyCSS === void 0 || j.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, X = Symbol(), rt = /* @__PURE__ */ new WeakMap();
7
7
  let ft = class {
8
8
  constructor(t, e, s) {
9
- if (this._$cssResult$ = !0, s !== tt)
9
+ if (this._$cssResult$ = !0, s !== X)
10
10
  throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
11
11
  this.cssText = t, this.t = e;
12
12
  }
13
13
  get styleSheet() {
14
14
  let t = this.o;
15
15
  const e = this.t;
16
- if (X && t === void 0) {
16
+ if (Q && t === void 0) {
17
17
  const s = e !== void 0 && e.length === 1;
18
18
  s && (t = rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && rt.set(e, t));
19
19
  }
@@ -23,63 +23,63 @@ let ft = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Tt = (i) => new ft(typeof i == "string" ? i : i + "", void 0, tt), T = (i, ...t) => {
27
- const e = i.length === 1 ? i[0] : t.reduce((s, r, n) => s + ((o) => {
26
+ const Tt = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r, ...t) => {
27
+ const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
28
28
  if (o._$cssResult$ === !0)
29
29
  return o.cssText;
30
30
  if (typeof o == "number")
31
31
  return o;
32
32
  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.");
33
- })(r) + i[n + 1], i[0]);
34
- return new ft(e, i, tt);
35
- }, Ot = (i, t) => {
36
- if (X)
37
- i.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
33
+ })(i) + r[n + 1], r[0]);
34
+ return new ft(e, r, X);
35
+ }, Ot = (r, t) => {
36
+ if (Q)
37
+ r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else
39
39
  for (const e of t) {
40
- const s = document.createElement("style"), r = j.litNonce;
41
- r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, i.appendChild(s);
40
+ const s = document.createElement("style"), i = j.litNonce;
41
+ i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
42
42
  }
43
- }, nt = X ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((t) => {
43
+ }, nt = Q ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
44
44
  let e = "";
45
45
  for (const s of t.cssRules)
46
46
  e += s.cssText;
47
47
  return Tt(e);
48
- })(i) : i;
48
+ })(r) : r;
49
49
  /**
50
50
  * @license
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
53
  */
54
- const { is: Ut, defineProperty: kt, getOwnPropertyDescriptor: Nt, getOwnPropertyNames: Mt, getOwnPropertySymbols: Ht, getPrototypeOf: Rt } = Object, _ = globalThis, ot = _.trustedTypes, Lt = ot ? ot.emptyScript : "", J = _.reactiveElementPolyfillSupport, U = (i, t) => i, I = { toAttribute(i, t) {
54
+ const { is: Ut, defineProperty: kt, getOwnPropertyDescriptor: Nt, getOwnPropertyNames: Mt, getOwnPropertySymbols: Ht, getPrototypeOf: Rt } = Object, _ = globalThis, ot = _.trustedTypes, Lt = ot ? ot.emptyScript : "", Y = _.reactiveElementPolyfillSupport, O = (r, t) => r, I = { toAttribute(r, t) {
55
55
  switch (t) {
56
56
  case Boolean:
57
- i = i ? Lt : null;
57
+ r = r ? Lt : null;
58
58
  break;
59
59
  case Object:
60
60
  case Array:
61
- i = i == null ? i : JSON.stringify(i);
61
+ r = r == null ? r : JSON.stringify(r);
62
62
  }
63
- return i;
64
- }, fromAttribute(i, t) {
65
- let e = i;
63
+ return r;
64
+ }, fromAttribute(r, t) {
65
+ let e = r;
66
66
  switch (t) {
67
67
  case Boolean:
68
- e = i !== null;
68
+ e = r !== null;
69
69
  break;
70
70
  case Number:
71
- e = i === null ? null : Number(i);
71
+ e = r === null ? null : Number(r);
72
72
  break;
73
73
  case Object:
74
74
  case Array:
75
75
  try {
76
- e = JSON.parse(i);
76
+ e = JSON.parse(r);
77
77
  } catch {
78
78
  e = null;
79
79
  }
80
80
  }
81
81
  return e;
82
- } }, et = (i, t) => !Ut(i, t), at = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: et };
82
+ } }, tt = (r, t) => !Ut(r, t), at = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: tt };
83
83
  Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
84
  class E extends HTMLElement {
85
85
  static addInitializer(t) {
@@ -90,20 +90,20 @@ class E extends HTMLElement {
90
90
  }
91
91
  static createProperty(t, e = at) {
92
92
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
93
- const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
94
- r !== void 0 && kt(this.prototype, t, r);
93
+ const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
94
+ i !== void 0 && kt(this.prototype, t, i);
95
95
  }
96
96
  }
97
97
  static getPropertyDescriptor(t, e, s) {
98
- const { get: r, set: n } = Nt(this.prototype, t) ?? { get() {
98
+ const { get: i, set: n } = Nt(this.prototype, t) ?? { get() {
99
99
  return this[e];
100
100
  }, set(o) {
101
101
  this[e] = o;
102
102
  } };
103
103
  return { get() {
104
- return r == null ? void 0 : r.call(this);
104
+ return i == null ? void 0 : i.call(this);
105
105
  }, set(o) {
106
- const c = r == null ? void 0 : r.call(this);
106
+ const c = i == null ? void 0 : i.call(this);
107
107
  n.call(this, o), this.requestUpdate(t, c, s);
108
108
  }, configurable: !0, enumerable: !0 };
109
109
  }
@@ -111,30 +111,30 @@ class E extends HTMLElement {
111
111
  return this.elementProperties.get(t) ?? at;
112
112
  }
113
113
  static _$Ei() {
114
- if (this.hasOwnProperty(U("elementProperties")))
114
+ if (this.hasOwnProperty(O("elementProperties")))
115
115
  return;
116
116
  const t = Rt(this);
117
117
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
118
118
  }
119
119
  static finalize() {
120
- if (this.hasOwnProperty(U("finalized")))
120
+ if (this.hasOwnProperty(O("finalized")))
121
121
  return;
122
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
122
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(O("properties"))) {
123
123
  const e = this.properties, s = [...Mt(e), ...Ht(e)];
124
- for (const r of s)
125
- this.createProperty(r, e[r]);
124
+ for (const i of s)
125
+ this.createProperty(i, e[i]);
126
126
  }
127
127
  const t = this[Symbol.metadata];
128
128
  if (t !== null) {
129
129
  const e = litPropertyMetadata.get(t);
130
130
  if (e !== void 0)
131
- for (const [s, r] of e)
132
- this.elementProperties.set(s, r);
131
+ for (const [s, i] of e)
132
+ this.elementProperties.set(s, i);
133
133
  }
134
134
  this._$Eh = /* @__PURE__ */ new Map();
135
135
  for (const [e, s] of this.elementProperties) {
136
- const r = this._$Eu(e, s);
137
- r !== void 0 && this._$Eh.set(r, e);
136
+ const i = this._$Eu(e, s);
137
+ i !== void 0 && this._$Eh.set(i, e);
138
138
  }
139
139
  this.elementStyles = this.finalizeStyles(this.styles);
140
140
  }
@@ -142,8 +142,8 @@ class E extends HTMLElement {
142
142
  const e = [];
143
143
  if (Array.isArray(t)) {
144
144
  const s = new Set(t.flat(1 / 0).reverse());
145
- for (const r of s)
146
- e.unshift(nt(r));
145
+ for (const i of s)
146
+ e.unshift(nt(i));
147
147
  } else
148
148
  t !== void 0 && e.push(nt(t));
149
149
  return e;
@@ -198,23 +198,23 @@ class E extends HTMLElement {
198
198
  }
199
199
  _$EO(t, e) {
200
200
  var n;
201
- const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
202
- if (r !== void 0 && s.reflect === !0) {
201
+ const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
202
+ if (i !== void 0 && s.reflect === !0) {
203
203
  const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : I).toAttribute(e, s.type);
204
- this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
204
+ this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
205
205
  }
206
206
  }
207
207
  _$AK(t, e) {
208
208
  var n;
209
- const s = this.constructor, r = s._$Eh.get(t);
210
- if (r !== void 0 && this._$Em !== r) {
211
- const o = s.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : I;
212
- this._$Em = r, this[r] = c.fromAttribute(e, o.type), this._$Em = null;
209
+ const s = this.constructor, i = s._$Eh.get(t);
210
+ if (i !== void 0 && this._$Em !== i) {
211
+ const o = s.getPropertyOptions(i), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : I;
212
+ this._$Em = i, this[i] = c.fromAttribute(e, o.type), this._$Em = null;
213
213
  }
214
214
  }
215
- requestUpdate(t, e, s, r = !1, n) {
215
+ requestUpdate(t, e, s, i = !1, n) {
216
216
  if (t !== void 0) {
217
- if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? et)(r ? n : this[t], e))
217
+ if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? tt)(i ? n : this[t], e))
218
218
  return;
219
219
  this.C(t, e, s);
220
220
  }
@@ -246,20 +246,20 @@ class E extends HTMLElement {
246
246
  this[n] = o;
247
247
  this._$Ep = void 0;
248
248
  }
249
- const r = this.constructor.elementProperties;
250
- if (r.size > 0)
251
- for (const [n, o] of r)
249
+ const i = this.constructor.elementProperties;
250
+ if (i.size > 0)
251
+ for (const [n, o] of i)
252
252
  o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
253
253
  }
254
254
  let t = !1;
255
255
  const e = this._$AL;
256
256
  try {
257
- t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((r) => {
257
+ t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((i) => {
258
258
  var n;
259
- return (n = r.hostUpdate) == null ? void 0 : n.call(r);
259
+ return (n = i.hostUpdate) == null ? void 0 : n.call(i);
260
260
  }), this.update(e)) : this._$ET();
261
- } catch (r) {
262
- throw t = !1, this._$ET(), r;
261
+ } catch (i) {
262
+ throw t = !1, this._$ET(), i;
263
263
  }
264
264
  t && this._$AE(e);
265
265
  }
@@ -268,8 +268,8 @@ class E extends HTMLElement {
268
268
  _$AE(t) {
269
269
  var e;
270
270
  (e = this._$ES) == null || e.forEach((s) => {
271
- var r;
272
- return (r = s.hostUpdated) == null ? void 0 : r.call(s);
271
+ var i;
272
+ return (i = s.hostUpdated) == null ? void 0 : i.call(s);
273
273
  }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
274
274
  }
275
275
  _$ET() {
@@ -292,67 +292,67 @@ class E extends HTMLElement {
292
292
  firstUpdated(t) {
293
293
  }
294
294
  }
295
- E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[U("elementProperties")] = /* @__PURE__ */ new Map(), E[U("finalized")] = /* @__PURE__ */ new Map(), J == null || J({ ReactiveElement: E }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
295
+ E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[O("elementProperties")] = /* @__PURE__ */ new Map(), E[O("finalized")] = /* @__PURE__ */ new Map(), Y == null || Y({ ReactiveElement: E }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
296
296
  /**
297
297
  * @license
298
298
  * Copyright 2017 Google LLC
299
299
  * SPDX-License-Identifier: BSD-3-Clause
300
300
  */
301
- const k = globalThis, W = k.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, zt = `<${mt}>`, b = document, M = () => b.createComment(""), H = (i) => i === null || typeof i != "object" && typeof i != "function", _t = Array.isArray, Dt = (i) => _t(i) || typeof (i == null ? void 0 : i[Symbol.iterator]) == "function", K = `[
302
- \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, v = RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
303
- \f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, vt = /^(?:script|style|textarea|title)$/i, Bt = (i) => (t, ...e) => ({ _$litType$: i, strings: t, values: e }), C = Bt(1), w = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
304
- function yt(i, t) {
305
- if (!Array.isArray(i) || !i.hasOwnProperty("raw"))
301
+ const U = globalThis, W = U.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, zt = `<${mt}>`, b = document, N = () => b.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", _t = Array.isArray, Dt = (r) => _t(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
302
+ \f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, v = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
303
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, vt = /^(?:script|style|textarea|title)$/i, Bt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), C = Bt(1), w = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
304
+ function yt(r, t) {
305
+ if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
306
306
  throw Error("invalid template strings array");
307
307
  return ct !== void 0 ? ct.createHTML(t) : t;
308
308
  }
309
- const jt = (i, t) => {
310
- const e = i.length - 1, s = [];
311
- let r, n = t === 2 ? "<svg>" : "", o = O;
309
+ const jt = (r, t) => {
310
+ const e = r.length - 1, s = [];
311
+ let i, n = t === 2 ? "<svg>" : "", o = T;
312
312
  for (let c = 0; c < e; c++) {
313
- const a = i[c];
313
+ const a = r[c];
314
314
  let d, p, l = -1, g = 0;
315
315
  for (; g < a.length && (o.lastIndex = g, p = o.exec(a), p !== null); )
316
- g = o.lastIndex, o === O ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (vt.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = r ?? O, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = v : o === ht || o === lt ? o = O : (o = v, r = void 0);
317
- const $ = o === v && i[c + 1].startsWith("/>") ? " " : "";
318
- n += o === O ? a + zt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ? c : $);
316
+ g = o.lastIndex, o === T ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (vt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = i ?? T, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = v : o === ht || o === lt ? o = T : (o = v, i = void 0);
317
+ const $ = o === v && r[c + 1].startsWith("/>") ? " " : "";
318
+ n += o === T ? a + zt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ? c : $);
319
319
  }
320
- return [yt(i, n + (i[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
320
+ return [yt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
321
321
  };
322
- class R {
322
+ class H {
323
323
  constructor({ strings: t, _$litType$: e }, s) {
324
- let r;
324
+ let i;
325
325
  this.parts = [];
326
326
  let n = 0, o = 0;
327
327
  const c = t.length - 1, a = this.parts, [d, p] = jt(t, e);
328
- if (this.el = R.createElement(d, s), A.currentNode = this.el.content, e === 2) {
328
+ if (this.el = H.createElement(d, s), A.currentNode = this.el.content, e === 2) {
329
329
  const l = this.el.content.firstChild;
330
330
  l.replaceWith(...l.childNodes);
331
331
  }
332
- for (; (r = A.nextNode()) !== null && a.length < c; ) {
333
- if (r.nodeType === 1) {
334
- if (r.hasAttributes())
335
- for (const l of r.getAttributeNames())
332
+ for (; (i = A.nextNode()) !== null && a.length < c; ) {
333
+ if (i.nodeType === 1) {
334
+ if (i.hasAttributes())
335
+ for (const l of i.getAttributeNames())
336
336
  if (l.endsWith($t)) {
337
- const g = p[o++], $ = r.getAttribute(l).split(m), D = /([.?@])?(.*)/.exec(g);
338
- a.push({ type: 1, index: n, name: D[2], strings: $, ctor: D[1] === "." ? Wt : D[1] === "?" ? Gt : D[1] === "@" ? Vt : V }), r.removeAttribute(l);
337
+ const g = p[o++], $ = i.getAttribute(l).split(m), D = /([.?@])?(.*)/.exec(g);
338
+ a.push({ type: 1, index: n, name: D[2], strings: $, ctor: D[1] === "." ? Wt : D[1] === "?" ? Gt : D[1] === "@" ? Vt : V }), i.removeAttribute(l);
339
339
  } else
340
- l.startsWith(m) && (a.push({ type: 6, index: n }), r.removeAttribute(l));
341
- if (vt.test(r.tagName)) {
342
- const l = r.textContent.split(m), g = l.length - 1;
340
+ l.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
341
+ if (vt.test(i.tagName)) {
342
+ const l = i.textContent.split(m), g = l.length - 1;
343
343
  if (g > 0) {
344
- r.textContent = W ? W.emptyScript : "";
344
+ i.textContent = W ? W.emptyScript : "";
345
345
  for (let $ = 0; $ < g; $++)
346
- r.append(l[$], M()), A.nextNode(), a.push({ type: 2, index: ++n });
347
- r.append(l[g], M());
346
+ i.append(l[$], N()), A.nextNode(), a.push({ type: 2, index: ++n });
347
+ i.append(l[g], N());
348
348
  }
349
349
  }
350
- } else if (r.nodeType === 8)
351
- if (r.data === mt)
350
+ } else if (i.nodeType === 8)
351
+ if (i.data === mt)
352
352
  a.push({ type: 2, index: n });
353
353
  else {
354
354
  let l = -1;
355
- for (; (l = r.data.indexOf(m, l + 1)) !== -1; )
355
+ for (; (l = i.data.indexOf(m, l + 1)) !== -1; )
356
356
  a.push({ type: 7, index: n }), l += m.length - 1;
357
357
  }
358
358
  n++;
@@ -363,13 +363,13 @@ class R {
363
363
  return s.innerHTML = t, s;
364
364
  }
365
365
  }
366
- function S(i, t, e = i, s) {
366
+ function S(r, t, e = r, s) {
367
367
  var o, c;
368
368
  if (t === w)
369
369
  return t;
370
- let r = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
371
- const n = H(t) ? void 0 : t._$litDirective$;
372
- return (r == null ? void 0 : r.constructor) !== n && ((c = r == null ? void 0 : r._$AO) == null || c.call(r, !1), n === void 0 ? r = void 0 : (r = new n(i), r._$AT(i, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = S(i, r._$AS(i, t.values), r, s)), t;
370
+ let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
371
+ const n = M(t) ? void 0 : t._$litDirective$;
372
+ return (i == null ? void 0 : i.constructor) !== n && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
373
373
  }
374
374
  class It {
375
375
  constructor(t, e) {
@@ -382,17 +382,17 @@ class It {
382
382
  return this._$AM._$AU;
383
383
  }
384
384
  u(t) {
385
- const { el: { content: e }, parts: s } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
386
- A.currentNode = r;
385
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
386
+ A.currentNode = i;
387
387
  let n = A.nextNode(), o = 0, c = 0, a = s[0];
388
388
  for (; a !== void 0; ) {
389
389
  if (o === a.index) {
390
390
  let d;
391
- a.type === 2 ? d = new L(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new qt(n, this, t)), this._$AV.push(d), a = s[++c];
391
+ a.type === 2 ? d = new R(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new qt(n, this, t)), this._$AV.push(d), a = s[++c];
392
392
  }
393
393
  o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
394
394
  }
395
- return A.currentNode = b, r;
395
+ return A.currentNode = b, i;
396
396
  }
397
397
  p(t) {
398
398
  let e = 0;
@@ -400,13 +400,13 @@ class It {
400
400
  s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
401
401
  }
402
402
  }
403
- class L {
403
+ class R {
404
404
  get _$AU() {
405
405
  var t;
406
406
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
407
407
  }
408
- constructor(t, e, s, r) {
409
- this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
408
+ constructor(t, e, s, i) {
409
+ this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
410
410
  }
411
411
  get parentNode() {
412
412
  let t = this._$AA.parentNode;
@@ -420,7 +420,7 @@ class L {
420
420
  return this._$AB;
421
421
  }
422
422
  _$AI(t, e = this) {
423
- t = S(this, t, e), H(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Dt(t) ? this.T(t) : this._(t);
423
+ t = S(this, t, e), M(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Dt(t) ? this.T(t) : this._(t);
424
424
  }
425
425
  k(t) {
426
426
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -429,35 +429,35 @@ class L {
429
429
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
430
430
  }
431
431
  _(t) {
432
- this._$AH !== h && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(b.createTextNode(t)), this._$AH = t;
432
+ this._$AH !== h && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(b.createTextNode(t)), this._$AH = t;
433
433
  }
434
434
  g(t) {
435
435
  var n;
436
- const { values: e, _$litType$: s } = t, r = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = R.createElement(yt(s.h, s.h[0]), this.options)), s);
437
- if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
436
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(yt(s.h, s.h[0]), this.options)), s);
437
+ if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
438
438
  this._$AH.p(e);
439
439
  else {
440
- const o = new It(r, this), c = o.u(this.options);
440
+ const o = new It(i, this), c = o.u(this.options);
441
441
  o.p(e), this.$(c), this._$AH = o;
442
442
  }
443
443
  }
444
444
  _$AC(t) {
445
445
  let e = ut.get(t.strings);
446
- return e === void 0 && ut.set(t.strings, e = new R(t)), e;
446
+ return e === void 0 && ut.set(t.strings, e = new H(t)), e;
447
447
  }
448
448
  T(t) {
449
449
  _t(this._$AH) || (this._$AH = [], this._$AR());
450
450
  const e = this._$AH;
451
- let s, r = 0;
451
+ let s, i = 0;
452
452
  for (const n of t)
453
- r === e.length ? e.push(s = new L(this.k(M()), this.k(M()), this, this.options)) : s = e[r], s._$AI(n), r++;
454
- r < e.length && (this._$AR(s && s._$AB.nextSibling, r), e.length = r);
453
+ i === e.length ? e.push(s = new R(this.k(N()), this.k(N()), this, this.options)) : s = e[i], s._$AI(n), i++;
454
+ i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
455
455
  }
456
456
  _$AR(t = this._$AA.nextSibling, e) {
457
457
  var s;
458
458
  for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
459
- const r = t.nextSibling;
460
- t.remove(), t = r;
459
+ const i = t.nextSibling;
460
+ t.remove(), t = i;
461
461
  }
462
462
  }
463
463
  setConnected(t) {
@@ -472,21 +472,21 @@ class V {
472
472
  get _$AU() {
473
473
  return this._$AM._$AU;
474
474
  }
475
- constructor(t, e, s, r, n) {
476
- this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = h;
475
+ constructor(t, e, s, i, n) {
476
+ this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = h;
477
477
  }
478
- _$AI(t, e = this, s, r) {
478
+ _$AI(t, e = this, s, i) {
479
479
  const n = this.strings;
480
480
  let o = !1;
481
481
  if (n === void 0)
482
- t = S(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
482
+ t = S(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== w, o && (this._$AH = t);
483
483
  else {
484
484
  const c = t;
485
485
  let a, d;
486
486
  for (t = n[0], a = 0; a < n.length - 1; a++)
487
- d = S(this, c[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !H(d) || d !== this._$AH[a]), d === h ? t = h : t !== h && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
487
+ d = S(this, c[s + a], e, a), d === w && (d = this._$AH[a]), o || (o = !M(d) || d !== this._$AH[a]), d === h ? t = h : t !== h && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
488
488
  }
489
- o && !r && this.O(t);
489
+ o && !i && this.O(t);
490
490
  }
491
491
  O(t) {
492
492
  t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
@@ -509,14 +509,14 @@ class Gt extends V {
509
509
  }
510
510
  }
511
511
  class Vt extends V {
512
- constructor(t, e, s, r, n) {
513
- super(t, e, s, r, n), this.type = 5;
512
+ constructor(t, e, s, i, n) {
513
+ super(t, e, s, i, n), this.type = 5;
514
514
  }
515
515
  _$AI(t, e = this) {
516
516
  if ((t = S(this, t, e, 0) ?? h) === w)
517
517
  return;
518
- const s = this._$AH, r = t === h && s !== h || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== h && (s === h || r);
519
- r && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
518
+ const s = this._$AH, i = t === h && s !== h || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== h && (s === h || i);
519
+ i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
520
520
  }
521
521
  handleEvent(t) {
522
522
  var e;
@@ -534,16 +534,16 @@ class qt {
534
534
  S(this, t);
535
535
  }
536
536
  }
537
- const Z = k.litHtmlPolyfillSupport;
538
- Z == null || Z(R, L), (k.litHtmlVersions ?? (k.litHtmlVersions = [])).push("3.0.2");
539
- const Yt = (i, t, e) => {
537
+ const K = U.litHtmlPolyfillSupport;
538
+ K == null || K(H, R), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
539
+ const Yt = (r, t, e) => {
540
540
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
541
- let r = s._$litPart$;
542
- if (r === void 0) {
541
+ let i = s._$litPart$;
542
+ if (i === void 0) {
543
543
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
544
- s._$litPart$ = r = new L(t.insertBefore(M(), n), n, void 0, e ?? {});
544
+ s._$litPart$ = i = new R(t.insertBefore(N(), n), n, void 0, e ?? {});
545
545
  }
546
- return r._$AI(i), r;
546
+ return i._$AI(r), i;
547
547
  };
548
548
  /**
549
549
  * @license
@@ -577,65 +577,55 @@ let f = class extends E {
577
577
  };
578
578
  var gt;
579
579
  f._$litElement$ = !0, f.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: f });
580
- const F = globalThis.litElementPolyfillSupport;
581
- F == null || F({ LitElement: f });
580
+ const Z = globalThis.litElementPolyfillSupport;
581
+ Z == null || Z({ LitElement: f });
582
582
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
583
583
  /**
584
584
  * @license
585
585
  * Copyright 2017 Google LLC
586
586
  * SPDX-License-Identifier: BSD-3-Clause
587
587
  */
588
- const Jt = (i) => (t, e) => {
589
- e !== void 0 ? e.addInitializer(() => {
590
- customElements.define(i, t);
591
- }) : customElements.define(i, t);
592
- };
593
- /**
594
- * @license
595
- * Copyright 2017 Google LLC
596
- * SPDX-License-Identifier: BSD-3-Clause
597
- */
598
- const Kt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: et }, Zt = (i = Kt, t, e) => {
599
- const { kind: s, metadata: r } = e;
600
- let n = globalThis.litPropertyMetadata.get(r);
601
- if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, i), s === "accessor") {
588
+ const Jt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: tt }, Kt = (r = Jt, t, e) => {
589
+ const { kind: s, metadata: i } = e;
590
+ let n = globalThis.litPropertyMetadata.get(i);
591
+ if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
602
592
  const { name: o } = e;
603
593
  return { set(c) {
604
594
  const a = t.get.call(this);
605
- t.set.call(this, c), this.requestUpdate(o, a, i);
595
+ t.set.call(this, c), this.requestUpdate(o, a, r);
606
596
  }, init(c) {
607
- return c !== void 0 && this.C(o, void 0, i), c;
597
+ return c !== void 0 && this.C(o, void 0, r), c;
608
598
  } };
609
599
  }
610
600
  if (s === "setter") {
611
601
  const { name: o } = e;
612
602
  return function(c) {
613
603
  const a = this[o];
614
- t.call(this, c), this.requestUpdate(o, a, i);
604
+ t.call(this, c), this.requestUpdate(o, a, r);
615
605
  };
616
606
  }
617
607
  throw Error("Unsupported decorator location: " + s);
618
608
  };
619
- function u(i) {
620
- return (t, e) => typeof e == "object" ? Zt(i, t, e) : ((s, r, n) => {
621
- const o = r.hasOwnProperty(n);
622
- return r.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
623
- })(i, t, e);
609
+ function u(r) {
610
+ return (t, e) => typeof e == "object" ? Kt(r, t, e) : ((s, i, n) => {
611
+ const o = i.hasOwnProperty(n);
612
+ return i.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
613
+ })(r, t, e);
624
614
  }
625
615
  /**
626
616
  * @license
627
617
  * Copyright 2017 Google LLC
628
618
  * SPDX-License-Identifier: BSD-3-Clause
629
619
  */
630
- function z(i) {
631
- return u({ ...i, state: !0, attribute: !1 });
620
+ function L(r) {
621
+ return u({ ...r, state: !0, attribute: !1 });
632
622
  }
633
623
  /**
634
624
  * @license
635
625
  * Copyright 2017 Google LLC
636
626
  * SPDX-License-Identifier: BSD-3-Clause
637
627
  */
638
- const At = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, bt = (i) => (...t) => ({ _$litDirective$: i, values: t });
628
+ const At = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, bt = (r) => (...t) => ({ _$litDirective$: r, values: t });
639
629
  class wt {
640
630
  constructor(t) {
641
631
  }
@@ -657,54 +647,54 @@ class wt {
657
647
  * Copyright 2018 Google LLC
658
648
  * SPDX-License-Identifier: BSD-3-Clause
659
649
  */
660
- const Ft = bt(class extends wt {
661
- constructor(i) {
650
+ const Zt = bt(class extends wt {
651
+ constructor(r) {
662
652
  var t;
663
- if (super(i), i.type !== At.ATTRIBUTE || i.name !== "class" || ((t = i.strings) == null ? void 0 : t.length) > 2)
653
+ if (super(r), r.type !== At.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
664
654
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
665
655
  }
666
- render(i) {
667
- return " " + Object.keys(i).filter((t) => i[t]).join(" ") + " ";
656
+ render(r) {
657
+ return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
668
658
  }
669
- update(i, [t]) {
670
- var s, r;
659
+ update(r, [t]) {
660
+ var s, i;
671
661
  if (this.it === void 0) {
672
- this.it = /* @__PURE__ */ new Set(), i.strings !== void 0 && (this.st = new Set(i.strings.join(" ").split(/\s/).filter((n) => n !== "")));
662
+ this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
673
663
  for (const n in t)
674
664
  t[n] && !((s = this.st) != null && s.has(n)) && this.it.add(n);
675
665
  return this.render(t);
676
666
  }
677
- const e = i.element.classList;
667
+ const e = r.element.classList;
678
668
  for (const n of this.it)
679
669
  n in t || (e.remove(n), this.it.delete(n));
680
670
  for (const n in t) {
681
671
  const o = !!t[n];
682
- o === this.it.has(n) || (r = this.st) != null && r.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
672
+ o === this.it.has(n) || (i = this.st) != null && i.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
683
673
  }
684
674
  return w;
685
675
  }
686
- }), B = (i, t, e) => {
687
- i && e.style.setProperty(t, i);
688
- }, xt = (i, t) => {
689
- var e, s, r, n;
690
- B((e = i.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
691
- (s = i.colors) == null ? void 0 : s.textOnPrimaryBackground,
676
+ }), B = (r, t, e) => {
677
+ r && e.style.setProperty(t, r);
678
+ }, xt = (r, t) => {
679
+ var e, s, i, n;
680
+ B((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
681
+ (s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
692
682
  "--text-on-primary-background",
693
683
  t
694
684
  ), B(
695
- (r = i.colors) == null ? void 0 : r.secondaryBackground,
685
+ (i = r.colors) == null ? void 0 : i.secondaryBackground,
696
686
  "--secondary-background",
697
687
  t
698
688
  ), B(
699
- (n = i.colors) == null ? void 0 : n.textOnSecondaryBackground,
689
+ (n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
700
690
  "--text-on-secondary-background",
701
691
  t
702
692
  );
703
693
  };
704
- var Qt = Object.defineProperty, Xt = Object.getOwnPropertyDescriptor, q = (i, t, e, s) => {
705
- for (var r = s > 1 ? void 0 : s ? Xt(t, e) : t, n = i.length - 1, o; n >= 0; n--)
706
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
707
- return s && r && Qt(t, e, r), r;
694
+ var Ft = Object.defineProperty, Qt = Object.getOwnPropertyDescriptor, q = (r, t, e, s) => {
695
+ for (var i = s > 1 ? void 0 : s ? Qt(t, e) : t, n = r.length - 1, o; n >= 0; n--)
696
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
697
+ return s && i && Ft(t, e, i), i;
708
698
  };
709
699
  class x extends f {
710
700
  constructor() {
@@ -734,10 +724,10 @@ class x extends f {
734
724
  return h;
735
725
  const e = async (o) => await import("./index-5087564d.mjs").then(
736
726
  (a) => a[o]
737
- ), { type: s, content: r } = t;
727
+ ), { type: s, content: i } = t;
738
728
  switch (s) {
739
729
  case "Telia": {
740
- const o = await e(r);
730
+ const o = await e(i);
741
731
  return o ? C`<telia-icon
742
732
  class="trigger-icon"
743
733
  svg=${o.svg}
@@ -750,7 +740,7 @@ class x extends f {
750
740
  }
751
741
  render() {
752
742
  return C`<button
753
- class=${Ft({
743
+ class=${Zt({
754
744
  trigger: !0,
755
745
  active: this.active,
756
746
  rendered: this.loaded
@@ -789,7 +779,7 @@ class x extends f {
789
779
  }
790
780
  }
791
781
  x.styles = [
792
- T`
782
+ P`
793
783
  :host {
794
784
  --voca-rem-multiplier: 0.625;
795
785
  display: block;
@@ -863,21 +853,21 @@ q([
863
853
  u({ attribute: !1 })
864
854
  ], x.prototype, "application", 2);
865
855
  q([
866
- z()
856
+ L()
867
857
  ], x.prototype, "active", 2);
868
858
  q([
869
- z()
859
+ L()
870
860
  ], x.prototype, "loaded", 2);
871
861
  q([
872
- z()
862
+ L()
873
863
  ], x.prototype, "icon", 2);
874
- var te = Object.defineProperty, ee = Object.getOwnPropertyDescriptor, y = (i, t, e, s) => {
875
- for (var r = s > 1 ? void 0 : s ? ee(t, e) : t, n = i.length - 1, o; n >= 0; n--)
876
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
877
- return s && r && te(t, e, r), r;
864
+ var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, y = (r, t, e, s) => {
865
+ for (var i = s > 1 ? void 0 : s ? te(t, e) : t, n = r.length - 1, o; n >= 0; n--)
866
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
867
+ return s && i && Xt(t, e, i), i;
878
868
  };
879
- const Et = (i) => {
880
- class t extends i {
869
+ const Et = (r) => {
870
+ class t extends r {
881
871
  constructor() {
882
872
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
883
873
  }
@@ -902,7 +892,7 @@ const Et = (i) => {
902
892
  }
903
893
  return t.styles = [
904
894
  // (superClass as unknown as typeof LitElement).styles ?? [],
905
- T`
895
+ P`
906
896
  :host {
907
897
  font-family: var(--font-family);
908
898
  grid-column: span var(--width);
@@ -937,7 +927,7 @@ class Ct extends Et(f) {
937
927
  }
938
928
  }
939
929
  Ct.styles = [
940
- T`
930
+ P`
941
931
  :host {
942
932
  display: block;
943
933
  }
@@ -948,56 +938,56 @@ Ct.styles = [
948
938
  * Copyright 2020 Google LLC
949
939
  * SPDX-License-Identifier: BSD-3-Clause
950
940
  */
951
- const se = (i) => i.strings === void 0;
941
+ const ee = (r) => r.strings === void 0;
952
942
  /**
953
943
  * @license
954
944
  * Copyright 2017 Google LLC
955
945
  * SPDX-License-Identifier: BSD-3-Clause
956
946
  */
957
- const N = (i, t) => {
947
+ const k = (r, t) => {
958
948
  var s;
959
- const e = i._$AN;
949
+ const e = r._$AN;
960
950
  if (e === void 0)
961
951
  return !1;
962
- for (const r of e)
963
- (s = r._$AO) == null || s.call(r, t, !1), N(r, t);
952
+ for (const i of e)
953
+ (s = i._$AO) == null || s.call(i, t, !1), k(i, t);
964
954
  return !0;
965
- }, G = (i) => {
955
+ }, G = (r) => {
966
956
  let t, e;
967
957
  do {
968
- if ((t = i._$AM) === void 0)
958
+ if ((t = r._$AM) === void 0)
969
959
  break;
970
- e = t._$AN, e.delete(i), i = t;
960
+ e = t._$AN, e.delete(r), r = t;
971
961
  } while ((e == null ? void 0 : e.size) === 0);
972
- }, St = (i) => {
973
- for (let t; t = i._$AM; i = t) {
962
+ }, St = (r) => {
963
+ for (let t; t = r._$AM; r = t) {
974
964
  let e = t._$AN;
975
965
  if (e === void 0)
976
966
  t._$AN = e = /* @__PURE__ */ new Set();
977
- else if (e.has(i))
967
+ else if (e.has(r))
978
968
  break;
979
- e.add(i), ne(t);
969
+ e.add(r), re(t);
980
970
  }
981
971
  };
982
- function ie(i) {
983
- this._$AN !== void 0 ? (G(this), this._$AM = i, St(this)) : this._$AM = i;
972
+ function se(r) {
973
+ this._$AN !== void 0 ? (G(this), this._$AM = r, St(this)) : this._$AM = r;
984
974
  }
985
- function re(i, t = !1, e = 0) {
986
- const s = this._$AH, r = this._$AN;
987
- if (r !== void 0 && r.size !== 0)
975
+ function ie(r, t = !1, e = 0) {
976
+ const s = this._$AH, i = this._$AN;
977
+ if (i !== void 0 && i.size !== 0)
988
978
  if (t)
989
979
  if (Array.isArray(s))
990
980
  for (let n = e; n < s.length; n++)
991
- N(s[n], !1), G(s[n]);
981
+ k(s[n], !1), G(s[n]);
992
982
  else
993
- s != null && (N(s, !1), G(s));
983
+ s != null && (k(s, !1), G(s));
994
984
  else
995
- N(this, i);
985
+ k(this, r);
996
986
  }
997
- const ne = (i) => {
998
- i.type == At.CHILD && (i._$AP ?? (i._$AP = re), i._$AQ ?? (i._$AQ = ie));
987
+ const re = (r) => {
988
+ r.type == At.CHILD && (r._$AP ?? (r._$AP = ie), r._$AQ ?? (r._$AQ = se));
999
989
  };
1000
- class oe extends wt {
990
+ class ne extends wt {
1001
991
  constructor() {
1002
992
  super(...arguments), this._$AN = void 0;
1003
993
  }
@@ -1005,11 +995,11 @@ class oe extends wt {
1005
995
  super._$AT(t, e, s), St(this), this.isConnected = t._$AU;
1006
996
  }
1007
997
  _$AO(t, e = !0) {
1008
- var s, r;
1009
- t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), G(this));
998
+ var s, i;
999
+ t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (k(this, t), G(this));
1010
1000
  }
1011
1001
  setValue(t) {
1012
- if (se(this._$Ct))
1002
+ if (ee(this._$Ct))
1013
1003
  this._$Ct._$AI(t, this);
1014
1004
  else {
1015
1005
  const e = [...this._$Ct._$AH];
@@ -1026,29 +1016,29 @@ class oe extends wt {
1026
1016
  * Copyright 2020 Google LLC
1027
1017
  * SPDX-License-Identifier: BSD-3-Clause
1028
1018
  */
1029
- const ae = () => new ce();
1030
- class ce {
1019
+ const oe = () => new ae();
1020
+ class ae {
1031
1021
  }
1032
- const Q = /* @__PURE__ */ new WeakMap(), he = bt(class extends oe {
1033
- render(i) {
1022
+ const F = /* @__PURE__ */ new WeakMap(), ce = bt(class extends ne {
1023
+ render(r) {
1034
1024
  return h;
1035
1025
  }
1036
- update(i, [t]) {
1026
+ update(r, [t]) {
1037
1027
  var s;
1038
1028
  const e = t !== this.G;
1039
- return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = i.options) == null ? void 0 : s.host, this.ot(this.lt = i.element)), h;
1029
+ return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)), h;
1040
1030
  }
1041
- ot(i) {
1031
+ ot(r) {
1042
1032
  if (typeof this.G == "function") {
1043
1033
  const t = this.ct ?? globalThis;
1044
- let e = Q.get(t);
1045
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Q.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, i), i !== void 0 && this.G.call(this.ct, i);
1034
+ let e = F.get(t);
1035
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), F.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
1046
1036
  } else
1047
- this.G.value = i;
1037
+ this.G.value = r;
1048
1038
  }
1049
1039
  get rt() {
1050
- var i, t;
1051
- return typeof this.G == "function" ? (i = Q.get(this.ct ?? globalThis)) == null ? void 0 : i.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1040
+ var r, t;
1041
+ return typeof this.G == "function" ? (r = F.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1052
1042
  }
1053
1043
  disconnected() {
1054
1044
  this.rt === this.lt && this.ot(void 0);
@@ -1062,21 +1052,21 @@ const Q = /* @__PURE__ */ new WeakMap(), he = bt(class extends oe {
1062
1052
  * Copyright 2021 Google LLC
1063
1053
  * SPDX-License-Identifier: BSD-3-Clause
1064
1054
  */
1065
- function* le(i, t) {
1066
- if (i !== void 0) {
1055
+ function* he(r, t) {
1056
+ if (r !== void 0) {
1067
1057
  let e = 0;
1068
- for (const s of i)
1058
+ for (const s of r)
1069
1059
  yield t(s, e++);
1070
1060
  }
1071
1061
  }
1072
- var st = /* @__PURE__ */ ((i) => (i.Inline = "inline", i.Trigger = "trigger", i))(st || {}), de = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, ue = (i, t, e, s) => {
1073
- for (var r = s > 1 ? void 0 : s ? pe(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1074
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1075
- return s && r && de(t, e, r), r;
1062
+ var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(et || {}), le = Object.defineProperty, de = Object.getOwnPropertyDescriptor, pe = (r, t, e, s) => {
1063
+ for (var i = s > 1 ? void 0 : s ? de(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1064
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1065
+ return s && i && le(t, e, i), i;
1076
1066
  };
1077
- class it extends f {
1067
+ class st extends f {
1078
1068
  constructor() {
1079
- super(...arguments), this.nodes = [], this.wrapperRef = ae();
1069
+ super(...arguments), this.nodes = [], this.wrapperRef = oe();
1080
1070
  }
1081
1071
  addChild(t) {
1082
1072
  t.parent = this, this.nodes.push(t);
@@ -1091,12 +1081,12 @@ class it extends f {
1091
1081
  this.applyBranding();
1092
1082
  }
1093
1083
  render() {
1094
- return this.application.renderStrategy === st.Trigger && this.renderRoot.host.classList.add("floating"), C`<div class="widget-container" ${he(this.wrapperRef)}>
1095
- ${le(this.nodes, (t) => t)}
1084
+ return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), C`<div class="widget-container" ${ce(this.wrapperRef)}>
1085
+ ${he(this.nodes, (t) => t)}
1096
1086
  </div>`;
1097
1087
  }
1098
1088
  }
1099
- it.styles = T`
1089
+ st.styles = P`
1100
1090
  :host {
1101
1091
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1102
1092
  --spacing-xs: 0.2rem;
@@ -1175,15 +1165,15 @@ it.styles = T`
1175
1165
  }
1176
1166
  }
1177
1167
  `;
1178
- ue([
1168
+ pe([
1179
1169
  u({ attribute: !1 })
1180
- ], it.prototype, "application", 2);
1181
- var ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, Y = (i, t, e, s) => {
1182
- for (var r = s > 1 ? void 0 : s ? fe(t, e) : t, n = i.length - 1, o; n >= 0; n--)
1183
- (o = i[n]) && (r = (s ? o(t, e, r) : o(r)) || r);
1184
- return s && r && ge(t, e, r), r;
1170
+ ], st.prototype, "application", 2);
1171
+ var ue = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, it = (r, t, e, s) => {
1172
+ for (var i = s > 1 ? void 0 : s ? ge(t, e) : t, n = r.length - 1, o; n >= 0; n--)
1173
+ (o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
1174
+ return s && i && ue(t, e, i), i;
1185
1175
  };
1186
- let P = class extends f {
1176
+ class z extends f {
1187
1177
  constructor() {
1188
1178
  super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
1189
1179
  }
@@ -1193,52 +1183,50 @@ let P = class extends f {
1193
1183
  disconnectedCallback() {
1194
1184
  super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
1195
1185
  }
1196
- async onEnvironmentCreated(i) {
1197
- this.widget = i.detail.widget, await this.activate(), this.requestUpdate();
1186
+ async onEnvironmentCreated(t) {
1187
+ this.widget = t.detail.widget, await this.activate(), this.requestUpdate();
1198
1188
  }
1199
1189
  async activate() {
1200
1190
  this.widget && (await this.widget.activate(), this.status = "activated");
1201
1191
  }
1202
1192
  async getGlobalEnvironment() {
1203
- const i = globalThis.widgets;
1204
- i && (this.widget = i.applications.find(
1205
- (t) => t.name === this.name
1193
+ const t = globalThis.widgets;
1194
+ t && (this.widget = t.applications.find(
1195
+ (e) => e.name === this.name
1206
1196
  ), await this.activate());
1207
1197
  }
1208
1198
  render() {
1209
1199
  if (!this.widget || this.status !== "activated")
1210
1200
  return h;
1211
- if (this.widget.renderStrategy === st.Trigger) {
1212
- const i = new x();
1213
- return i.application = this.widget, i;
1201
+ if (this.widget.renderStrategy === et.Trigger) {
1202
+ const t = new x();
1203
+ return t.application = this.widget, t;
1214
1204
  }
1215
1205
  return this.widget.render();
1216
1206
  }
1217
- };
1218
- P.styles = [
1219
- T`
1207
+ }
1208
+ z.styles = [
1209
+ P`
1220
1210
  :host {
1221
1211
  display: block;
1222
1212
  }
1223
1213
  `
1224
1214
  ];
1225
- Y([
1215
+ it([
1226
1216
  u({ attribute: !0 })
1227
- ], P.prototype, "name", 2);
1228
- Y([
1229
- z()
1230
- ], P.prototype, "widget", 2);
1231
- Y([
1232
- z()
1233
- ], P.prototype, "status", 2);
1234
- P = Y([
1235
- Jt("ace-widget")
1236
- ], P);
1217
+ ], z.prototype, "name", 2);
1218
+ it([
1219
+ L()
1220
+ ], z.prototype, "widget", 2);
1221
+ it([
1222
+ L()
1223
+ ], z.prototype, "status", 2);
1237
1224
  customElements.get("ace-trigger") || customElements.define("ace-trigger", x);
1238
1225
  customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Ct);
1239
- customElements.get("ace-wrapper") || customElements.define("ace-wrapper", it);
1226
+ customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
1227
+ customElements.get("ace-widget") || customElements.define("ace-widget", z);
1240
1228
  const Pt = Et(f);
1241
- class $e extends Pt {
1229
+ class fe extends Pt {
1242
1230
  render() {
1243
1231
  return C` <div class="widget-header">
1244
1232
  <!-- <telia-icon svg={aiRobot.svg} size="lg"></telia-icon> -->
@@ -1250,9 +1238,9 @@ class $e extends Pt {
1250
1238
  </div>`;
1251
1239
  }
1252
1240
  }
1253
- $e.styles = [
1241
+ fe.styles = [
1254
1242
  Pt.styles || [],
1255
- T`
1243
+ P`
1256
1244
  :host {
1257
1245
  --header-text-color: var(--text-on-primary-background);
1258
1246
  }
@@ -1281,6 +1269,6 @@ $e.styles = [
1281
1269
  `
1282
1270
  ];
1283
1271
  export {
1284
- $e as WidgetHeader,
1285
- $e as default
1272
+ fe as WidgetHeader,
1273
+ fe as default
1286
1274
  };