@telia-ace/widget-components-area-flamingo 1.1.12-rc.5 → 1.1.12-rc.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,19 +3,19 @@
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
5
  */
6
- const I = globalThis, st = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, it = Symbol(), ot = /* @__PURE__ */ new WeakMap();
7
- let _t = class {
6
+ const B = globalThis, tt = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, et = Symbol(), rt = /* @__PURE__ */ new WeakMap();
7
+ let ft = class {
8
8
  constructor(t, e, i) {
9
- if (this._$cssResult$ = !0, i !== it)
9
+ if (this._$cssResult$ = !0, i !== et)
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 (st && t === void 0) {
16
+ if (tt && t === void 0) {
17
17
  const i = e !== void 0 && e.length === 1;
18
- i && (t = ot.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && ot.set(e, t));
18
+ i && (t = rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && rt.set(e, t));
19
19
  }
20
20
  return t;
21
21
  }
@@ -23,7 +23,7 @@ let _t = class {
23
23
  return this.cssText;
24
24
  }
25
25
  };
26
- const Ut = (s) => new _t(typeof s == "string" ? s : s + "", void 0, it), P = (s, ...t) => {
26
+ const Ut = (s) => new ft(typeof s == "string" ? s : s + "", void 0, et), P = (s, ...t) => {
27
27
  const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
28
28
  if (o._$cssResult$ === !0)
29
29
  return o.cssText;
@@ -31,16 +31,16 @@ const Ut = (s) => new _t(typeof s == "string" ? s : s + "", void 0, it), P = (s,
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
33
  })(r) + s[n + 1], s[0]);
34
- return new _t(e, s, it);
34
+ return new ft(e, s, et);
35
35
  }, Nt = (s, t) => {
36
- if (st)
36
+ if (tt)
37
37
  s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
38
38
  else
39
39
  for (const e of t) {
40
- const i = document.createElement("style"), r = I.litNonce;
40
+ const i = document.createElement("style"), r = B.litNonce;
41
41
  r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
42
42
  }
43
- }, at = st ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
43
+ }, nt = tt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
44
44
  let e = "";
45
45
  for (const i of t.cssRules)
46
46
  e += i.cssText;
@@ -51,10 +51,10 @@ const Ut = (s) => new _t(typeof s == "string" ? s : s + "", void 0, it), P = (s,
51
51
  * Copyright 2017 Google LLC
52
52
  * SPDX-License-Identifier: BSD-3-Clause
53
53
  */
54
- const { is: Mt, defineProperty: Ht, getOwnPropertyDescriptor: Rt, getOwnPropertyNames: kt, getOwnPropertySymbols: Dt, getPrototypeOf: Lt } = Object, m = globalThis, ct = m.trustedTypes, jt = ct ? ct.emptyScript : "", K = m.reactiveElementPolyfillSupport, T = (s, t) => s, G = { toAttribute(s, t) {
54
+ const { is: Mt, defineProperty: kt, getOwnPropertyDescriptor: Ht, getOwnPropertyNames: Rt, getOwnPropertySymbols: Lt, getPrototypeOf: Dt } = Object, _ = globalThis, ot = _.trustedTypes, zt = ot ? ot.emptyScript : "", J = _.reactiveElementPolyfillSupport, T = (s, t) => s, I = { toAttribute(s, t) {
55
55
  switch (t) {
56
56
  case Boolean:
57
- s = s ? jt : null;
57
+ s = s ? zt : null;
58
58
  break;
59
59
  case Object:
60
60
  case Array:
@@ -79,23 +79,23 @@ const { is: Mt, defineProperty: Ht, getOwnPropertyDescriptor: Rt, getOwnProperty
79
79
  }
80
80
  }
81
81
  return e;
82
- } }, rt = (s, t) => !Mt(s, t), ht = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: rt };
83
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), m.litPropertyMetadata ?? (m.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
- class C extends HTMLElement {
82
+ } }, st = (s, t) => !Mt(s, t), at = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: st };
83
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
84
+ class E extends HTMLElement {
85
85
  static addInitializer(t) {
86
86
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
87
87
  }
88
88
  static get observedAttributes() {
89
89
  return this.finalize(), this._$Eh && [...this._$Eh.keys()];
90
90
  }
91
- static createProperty(t, e = ht) {
91
+ static createProperty(t, e = at) {
92
92
  if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
93
93
  const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
94
- r !== void 0 && Ht(this.prototype, t, r);
94
+ r !== void 0 && kt(this.prototype, t, r);
95
95
  }
96
96
  }
97
97
  static getPropertyDescriptor(t, e, i) {
98
- const { get: r, set: n } = Rt(this.prototype, t) ?? { get() {
98
+ const { get: r, set: n } = Ht(this.prototype, t) ?? { get() {
99
99
  return this[e];
100
100
  }, set(o) {
101
101
  this[e] = o;
@@ -108,19 +108,19 @@ class C extends HTMLElement {
108
108
  }, configurable: !0, enumerable: !0 };
109
109
  }
110
110
  static getPropertyOptions(t) {
111
- return this.elementProperties.get(t) ?? ht;
111
+ return this.elementProperties.get(t) ?? at;
112
112
  }
113
113
  static _$Ei() {
114
114
  if (this.hasOwnProperty(T("elementProperties")))
115
115
  return;
116
- const t = Lt(this);
116
+ const t = Dt(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
120
  if (this.hasOwnProperty(T("finalized")))
121
121
  return;
122
122
  if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(T("properties"))) {
123
- const e = this.properties, i = [...kt(e), ...Dt(e)];
123
+ const e = this.properties, i = [...Rt(e), ...Lt(e)];
124
124
  for (const r of i)
125
125
  this.createProperty(r, e[r]);
126
126
  }
@@ -143,9 +143,9 @@ class C extends HTMLElement {
143
143
  if (Array.isArray(t)) {
144
144
  const i = new Set(t.flat(1 / 0).reverse());
145
145
  for (const r of i)
146
- e.unshift(at(r));
146
+ e.unshift(nt(r));
147
147
  } else
148
- t !== void 0 && e.push(at(t));
148
+ t !== void 0 && e.push(nt(t));
149
149
  return e;
150
150
  }
151
151
  static _$Eu(t, e) {
@@ -200,7 +200,7 @@ class C extends HTMLElement {
200
200
  var n;
201
201
  const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
202
202
  if (r !== void 0 && i.reflect === !0) {
203
- const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
203
+ const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : I).toAttribute(e, i.type);
204
204
  this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
205
205
  }
206
206
  }
@@ -208,13 +208,13 @@ class C extends HTMLElement {
208
208
  var n;
209
209
  const i = this.constructor, r = i._$Eh.get(t);
210
210
  if (r !== void 0 && this._$Em !== r) {
211
- const o = i.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : G;
211
+ const o = i.getPropertyOptions(r), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : I;
212
212
  this._$Em = r, this[r] = c.fromAttribute(e, o.type), this._$Em = null;
213
213
  }
214
214
  }
215
215
  requestUpdate(t, e, i, r = !1, n) {
216
216
  if (t !== void 0) {
217
- if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? rt)(r ? n : this[t], e))
217
+ if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? st)(r ? n : this[t], e))
218
218
  return;
219
219
  this.C(t, e, i);
220
220
  }
@@ -292,19 +292,19 @@ class C extends HTMLElement {
292
292
  firstUpdated(t) {
293
293
  }
294
294
  }
295
- C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[T("elementProperties")] = /* @__PURE__ */ new Map(), C[T("finalized")] = /* @__PURE__ */ new Map(), K == null || K({ ReactiveElement: C }), (m.reactiveElementVersions ?? (m.reactiveElementVersions = [])).push("2.0.1");
295
+ E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[T("elementProperties")] = /* @__PURE__ */ new Map(), E[T("finalized")] = /* @__PURE__ */ new Map(), J == null || J({ 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 U = globalThis, W = U.trustedTypes, lt = W ? W.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, mt = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, yt = "?" + _, zt = `<${yt}>`, w = document, M = () => w.createComment(""), H = (s) => s === null || typeof s != "object" && typeof s != "function", vt = Array.isArray, Bt = (s) => vt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Z = `[
302
- \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, dt = /-->/g, pt = />/g, v = RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
303
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ut = /'/g, gt = /"/g, At = /^(?:script|style|textarea|title)$/i, It = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), R = It(1), x = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ft = /* @__PURE__ */ new WeakMap(), b = w.createTreeWalker(w, 129);
304
- function bt(s, t) {
301
+ const U = globalThis, G = U.trustedTypes, ct = G ? G.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, jt = `<${mt}>`, b = document, M = () => b.createComment(""), k = (s) => s === null || typeof s != "object" && typeof s != "function", _t = Array.isArray, Bt = (s) => _t(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", K = `[
302
+ \f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, y = RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
303
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, yt = /^(?:script|style|textarea|title)$/i, It = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), H = It(1), w = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = b.createTreeWalker(b, 129);
304
+ function vt(s, t) {
305
305
  if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
306
306
  throw Error("invalid template strings array");
307
- return lt !== void 0 ? lt.createHTML(t) : t;
307
+ return ct !== void 0 ? ct.createHTML(t) : t;
308
308
  }
309
309
  const Gt = (s, t) => {
310
310
  const e = s.length - 1, i = [];
@@ -313,63 +313,63 @@ const Gt = (s, t) => {
313
313
  const a = s[c];
314
314
  let d, p, h = -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 = dt : p[1] !== void 0 ? o = pt : p[2] !== void 0 ? (At.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = r ?? O, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? gt : ut) : o === gt || o === ut ? o = v : o === dt || o === pt ? o = O : (o = v, r = void 0);
317
- const $ = o === v && s[c + 1].startsWith("/>") ? " " : "";
318
- n += o === O ? a + zt : h >= 0 ? (i.push(d), a.slice(0, h) + mt + a.slice(h) + _ + $) : a + _ + (h === -2 ? c : $);
316
+ g = o.lastIndex, o === O ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (yt.test(p[2]) && (r = RegExp("</" + p[2], "g")), o = y) : p[3] !== void 0 && (o = y) : o === y ? p[0] === ">" ? (o = r ?? O, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? y : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = y : o === ht || o === lt ? o = O : (o = y, r = void 0);
317
+ const $ = o === y && s[c + 1].startsWith("/>") ? " " : "";
318
+ n += o === O ? a + jt : h >= 0 ? (i.push(d), a.slice(0, h) + $t + a.slice(h) + m + $) : a + m + (h === -2 ? c : $);
319
319
  }
320
- return [bt(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
320
+ return [vt(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
321
321
  };
322
- class k {
322
+ class R {
323
323
  constructor({ strings: t, _$litType$: e }, i) {
324
324
  let r;
325
325
  this.parts = [];
326
326
  let n = 0, o = 0;
327
327
  const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
328
- if (this.el = k.createElement(d, i), b.currentNode = this.el.content, e === 2) {
328
+ if (this.el = R.createElement(d, i), A.currentNode = this.el.content, e === 2) {
329
329
  const h = this.el.content.firstChild;
330
330
  h.replaceWith(...h.childNodes);
331
331
  }
332
- for (; (r = b.nextNode()) !== null && a.length < c; ) {
332
+ for (; (r = A.nextNode()) !== null && a.length < c; ) {
333
333
  if (r.nodeType === 1) {
334
334
  if (r.hasAttributes())
335
335
  for (const h of r.getAttributeNames())
336
- if (h.endsWith(mt)) {
337
- const g = p[o++], $ = r.getAttribute(h).split(_), z = /([.?@])?(.*)/.exec(g);
338
- a.push({ type: 1, index: n, name: z[2], strings: $, ctor: z[1] === "." ? Vt : z[1] === "?" ? qt : z[1] === "@" ? Yt : Y }), r.removeAttribute(h);
336
+ if (h.endsWith($t)) {
337
+ const g = p[o++], $ = r.getAttribute(h).split(m), z = /([.?@])?(.*)/.exec(g);
338
+ a.push({ type: 1, index: n, name: z[2], strings: $, ctor: z[1] === "." ? Vt : z[1] === "?" ? qt : z[1] === "@" ? Yt : q }), r.removeAttribute(h);
339
339
  } else
340
- h.startsWith(_) && (a.push({ type: 6, index: n }), r.removeAttribute(h));
341
- if (At.test(r.tagName)) {
342
- const h = r.textContent.split(_), g = h.length - 1;
340
+ h.startsWith(m) && (a.push({ type: 6, index: n }), r.removeAttribute(h));
341
+ if (yt.test(r.tagName)) {
342
+ const h = r.textContent.split(m), g = h.length - 1;
343
343
  if (g > 0) {
344
- r.textContent = W ? W.emptyScript : "";
344
+ r.textContent = G ? G.emptyScript : "";
345
345
  for (let $ = 0; $ < g; $++)
346
- r.append(h[$], M()), b.nextNode(), a.push({ type: 2, index: ++n });
346
+ r.append(h[$], M()), A.nextNode(), a.push({ type: 2, index: ++n });
347
347
  r.append(h[g], M());
348
348
  }
349
349
  }
350
350
  } else if (r.nodeType === 8)
351
- if (r.data === yt)
351
+ if (r.data === mt)
352
352
  a.push({ type: 2, index: n });
353
353
  else {
354
354
  let h = -1;
355
- for (; (h = r.data.indexOf(_, h + 1)) !== -1; )
356
- a.push({ type: 7, index: n }), h += _.length - 1;
355
+ for (; (h = r.data.indexOf(m, h + 1)) !== -1; )
356
+ a.push({ type: 7, index: n }), h += m.length - 1;
357
357
  }
358
358
  n++;
359
359
  }
360
360
  }
361
361
  static createElement(t, e) {
362
- const i = w.createElement("template");
362
+ const i = b.createElement("template");
363
363
  return i.innerHTML = t, i;
364
364
  }
365
365
  }
366
- function E(s, t, e = s, i) {
366
+ function C(s, t, e = s, i) {
367
367
  var o, c;
368
- if (t === x)
368
+ if (t === w)
369
369
  return t;
370
370
  let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : 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(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = E(s, r._$AS(s, t.values), r, i)), t;
371
+ const n = k(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(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = C(s, r._$AS(s, t.values), r, i)), t;
373
373
  }
374
374
  class Wt {
375
375
  constructor(t, e) {
@@ -382,17 +382,17 @@ class Wt {
382
382
  return this._$AM._$AU;
383
383
  }
384
384
  u(t) {
385
- const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? w).importNode(e, !0);
386
- b.currentNode = r;
387
- let n = b.nextNode(), o = 0, c = 0, a = i[0];
385
+ const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? b).importNode(e, !0);
386
+ A.currentNode = r;
387
+ let n = A.nextNode(), o = 0, c = 0, a = i[0];
388
388
  for (; a !== void 0; ) {
389
389
  if (o === a.index) {
390
390
  let d;
391
- a.type === 2 ? d = new D(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Ft(n, this, t)), this._$AV.push(d), a = i[++c];
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 Ft(n, this, t)), this._$AV.push(d), a = i[++c];
392
392
  }
393
- o !== (a == null ? void 0 : a.index) && (n = b.nextNode(), o++);
393
+ o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
394
394
  }
395
- return b.currentNode = w, r;
395
+ return A.currentNode = b, r;
396
396
  }
397
397
  p(t) {
398
398
  let e = 0;
@@ -400,7 +400,7 @@ class Wt {
400
400
  i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
401
401
  }
402
402
  }
403
- class D {
403
+ class L {
404
404
  get _$AU() {
405
405
  var t;
406
406
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -420,7 +420,7 @@ class D {
420
420
  return this._$AB;
421
421
  }
422
422
  _$AI(t, e = this) {
423
- t = E(this, t, e), H(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== x && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Bt(t) ? this.T(t) : this._(t);
423
+ t = C(this, t, e), k(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== w && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Bt(t) ? this.T(t) : this._(t);
424
424
  }
425
425
  k(t) {
426
426
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -429,11 +429,11 @@ class D {
429
429
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
430
430
  }
431
431
  _(t) {
432
- this._$AH !== l && H(this._$AH) ? this._$AA.nextSibling.data = t : this.$(w.createTextNode(t)), this._$AH = t;
432
+ this._$AH !== l && k(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$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = k.createElement(bt(i.h, i.h[0]), this.options)), i);
436
+ const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = R.createElement(vt(i.h, i.h[0]), this.options)), i);
437
437
  if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
438
438
  this._$AH.p(e);
439
439
  else {
@@ -442,15 +442,15 @@ class D {
442
442
  }
443
443
  }
444
444
  _$AC(t) {
445
- let e = ft.get(t.strings);
446
- return e === void 0 && ft.set(t.strings, e = new k(t)), e;
445
+ let e = ut.get(t.strings);
446
+ return e === void 0 && ut.set(t.strings, e = new R(t)), e;
447
447
  }
448
448
  T(t) {
449
- vt(this._$AH) || (this._$AH = [], this._$AR());
449
+ _t(this._$AH) || (this._$AH = [], this._$AR());
450
450
  const e = this._$AH;
451
451
  let i, r = 0;
452
452
  for (const n of t)
453
- r === e.length ? e.push(i = new D(this.k(M()), this.k(M()), this, this.options)) : i = e[r], i._$AI(n), r++;
453
+ r === e.length ? e.push(i = new L(this.k(M()), this.k(M()), this, this.options)) : i = e[r], i._$AI(n), r++;
454
454
  r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
455
455
  }
456
456
  _$AR(t = this._$AA.nextSibling, e) {
@@ -465,7 +465,7 @@ class D {
465
465
  this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
466
466
  }
467
467
  }
468
- class Y {
468
+ class q {
469
469
  get tagName() {
470
470
  return this.element.tagName;
471
471
  }
@@ -479,12 +479,12 @@ class Y {
479
479
  const n = this.strings;
480
480
  let o = !1;
481
481
  if (n === void 0)
482
- t = E(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== x, o && (this._$AH = t);
482
+ t = C(this, t, e, 0), o = !k(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 = E(this, c[i + a], e, a), d === x && (d = this._$AH[a]), o || (o = !H(d) || d !== this._$AH[a]), d === l ? t = l : t !== l && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
487
+ d = C(this, c[i + a], e, a), d === w && (d = this._$AH[a]), o || (o = !k(d) || d !== this._$AH[a]), d === l ? t = l : t !== l && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
488
488
  }
489
489
  o && !r && this.O(t);
490
490
  }
@@ -492,7 +492,7 @@ class Y {
492
492
  t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
493
493
  }
494
494
  }
495
- class Vt extends Y {
495
+ class Vt extends q {
496
496
  constructor() {
497
497
  super(...arguments), this.type = 3;
498
498
  }
@@ -500,7 +500,7 @@ class Vt extends Y {
500
500
  this.element[this.name] = t === l ? void 0 : t;
501
501
  }
502
502
  }
503
- class qt extends Y {
503
+ class qt extends q {
504
504
  constructor() {
505
505
  super(...arguments), this.type = 4;
506
506
  }
@@ -508,12 +508,12 @@ class qt extends Y {
508
508
  this.element.toggleAttribute(this.name, !!t && t !== l);
509
509
  }
510
510
  }
511
- class Yt extends Y {
511
+ class Yt extends q {
512
512
  constructor(t, e, i, r, n) {
513
513
  super(t, e, i, r, n), this.type = 5;
514
514
  }
515
515
  _$AI(t, e = this) {
516
- if ((t = E(this, t, e, 0) ?? l) === x)
516
+ if ((t = C(this, t, e, 0) ?? l) === w)
517
517
  return;
518
518
  const i = this._$AH, r = t === l && i !== l || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== l && (i === l || r);
519
519
  r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
@@ -531,17 +531,17 @@ class Ft {
531
531
  return this._$AM._$AU;
532
532
  }
533
533
  _$AI(t) {
534
- E(this, t);
534
+ C(this, t);
535
535
  }
536
536
  }
537
- const Q = U.litHtmlPolyfillSupport;
538
- Q == null || Q(k, D), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
537
+ const Z = U.litHtmlPolyfillSupport;
538
+ Z == null || Z(R, L), (U.litHtmlVersions ?? (U.litHtmlVersions = [])).push("3.0.2");
539
539
  const Jt = (s, t, e) => {
540
540
  const i = (e == null ? void 0 : e.renderBefore) ?? t;
541
541
  let r = i._$litPart$;
542
542
  if (r === void 0) {
543
543
  const n = (e == null ? void 0 : e.renderBefore) ?? null;
544
- i._$litPart$ = r = new D(t.insertBefore(M(), n), n, void 0, e ?? {});
544
+ i._$litPart$ = r = new L(t.insertBefore(M(), n), n, void 0, e ?? {});
545
545
  }
546
546
  return r._$AI(s), r;
547
547
  };
@@ -550,7 +550,7 @@ const Jt = (s, t, e) => {
550
550
  * Copyright 2017 Google LLC
551
551
  * SPDX-License-Identifier: BSD-3-Clause
552
552
  */
553
- let f = class extends C {
553
+ let f = class extends E {
554
554
  constructor() {
555
555
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
556
556
  }
@@ -572,20 +572,20 @@ let f = class extends C {
572
572
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
573
573
  }
574
574
  render() {
575
- return x;
575
+ return w;
576
576
  }
577
577
  };
578
- var $t;
579
- f._$litElement$ = !0, f.finalized = !0, ($t = globalThis.litElementHydrateSupport) == null || $t.call(globalThis, { LitElement: f });
580
- const X = globalThis.litElementPolyfillSupport;
581
- X == null || X({ LitElement: f });
578
+ var gt;
579
+ f._$litElement$ = !0, f.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: f });
580
+ const Q = globalThis.litElementPolyfillSupport;
581
+ Q == null || Q({ LitElement: f });
582
582
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
583
583
  /**
584
584
  * @license
585
585
  * Copyright 2021 Google LLC
586
586
  * SPDX-License-Identifier: BSD-3-Clause
587
587
  */
588
- function* wt(s, t) {
588
+ function* At(s, t) {
589
589
  if (s !== void 0) {
590
590
  let e = 0;
591
591
  for (const i of s)
@@ -597,7 +597,7 @@ function* wt(s, t) {
597
597
  * Copyright 2017 Google LLC
598
598
  * SPDX-License-Identifier: BSD-3-Clause
599
599
  */
600
- const F = (s) => (t, e) => {
600
+ const bt = (s) => (t, e) => {
601
601
  e !== void 0 ? e.addInitializer(() => {
602
602
  customElements.define(s, t);
603
603
  }) : customElements.define(s, t);
@@ -607,7 +607,7 @@ const F = (s) => (t, e) => {
607
607
  * Copyright 2017 Google LLC
608
608
  * SPDX-License-Identifier: BSD-3-Clause
609
609
  */
610
- const Kt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: rt }, Zt = (s = Kt, t, e) => {
610
+ const Kt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: st }, Zt = (s = Kt, t, e) => {
611
611
  const { kind: i, metadata: r } = e;
612
612
  let n = globalThis.litPropertyMetadata.get(r);
613
613
  if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
@@ -639,7 +639,7 @@ function u(s) {
639
639
  * Copyright 2017 Google LLC
640
640
  * SPDX-License-Identifier: BSD-3-Clause
641
641
  */
642
- function L(s) {
642
+ function D(s) {
643
643
  return u({ ...s, state: !0, attribute: !1 });
644
644
  }
645
645
  /**
@@ -647,7 +647,7 @@ function L(s) {
647
647
  * Copyright 2017 Google LLC
648
648
  * SPDX-License-Identifier: BSD-3-Clause
649
649
  */
650
- const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s) => (...t) => ({ _$litDirective$: s, values: t });
650
+ const wt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, xt = (s) => (...t) => ({ _$litDirective$: s, values: t });
651
651
  class Et {
652
652
  constructor(t) {
653
653
  }
@@ -669,10 +669,10 @@ class Et {
669
669
  * Copyright 2018 Google LLC
670
670
  * SPDX-License-Identifier: BSD-3-Clause
671
671
  */
672
- const Qt = Ct(class extends Et {
672
+ const Qt = xt(class extends Et {
673
673
  constructor(s) {
674
674
  var t;
675
- if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
675
+ if (super(s), s.type !== wt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
676
676
  throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
677
677
  }
678
678
  render(s) {
@@ -693,32 +693,32 @@ const Qt = Ct(class extends Et {
693
693
  const o = !!t[n];
694
694
  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)));
695
695
  }
696
- return x;
696
+ return w;
697
697
  }
698
- }), B = (s, t, e) => {
698
+ }), j = (s, t, e) => {
699
699
  s && e.style.setProperty(t, s);
700
- }, St = (s, t) => {
700
+ }, Ct = (s, t) => {
701
701
  var e, i, r, n;
702
- B((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
702
+ j((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), j(
703
703
  (i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
704
704
  "--text-on-primary-background",
705
705
  t
706
- ), B(
706
+ ), j(
707
707
  (r = s.colors) == null ? void 0 : r.secondaryBackground,
708
708
  "--secondary-background",
709
709
  t
710
- ), B(
710
+ ), j(
711
711
  (n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
712
712
  "--text-on-secondary-background",
713
713
  t
714
714
  );
715
715
  };
716
- var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, j = (s, t, e, i) => {
716
+ var Xt = Object.defineProperty, te = Object.getOwnPropertyDescriptor, Y = (s, t, e, i) => {
717
717
  for (var r = i > 1 ? void 0 : i ? te(t, e) : t, n = s.length - 1, o; n >= 0; n--)
718
718
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
719
719
  return i && r && Xt(t, e, r), r;
720
720
  };
721
- let y = class extends f {
721
+ class x extends f {
722
722
  constructor() {
723
723
  super(...arguments), this.active = !1, this.loaded = !1;
724
724
  }
@@ -726,8 +726,8 @@ let y = class extends f {
726
726
  super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
727
727
  }
728
728
  _toggleActive() {
729
- var s;
730
- if (!((s = this.application) != null && s.root)) {
729
+ var t;
730
+ if (!((t = this.application) != null && t.root)) {
731
731
  console.warn(
732
732
  "Could not activate widget. No root element assigned to widget."
733
733
  );
@@ -736,23 +736,23 @@ let y = class extends f {
736
736
  this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.removeFromDOM();
737
737
  }
738
738
  _applyBranding() {
739
- var s;
740
- (s = this.application) != null && s.settings && St(this.application.settings.branding, this);
739
+ var t;
740
+ (t = this.application) != null && t.settings && Ct(this.application.settings.branding, this);
741
741
  }
742
742
  async _renderSymbol() {
743
- var r;
744
- const s = (r = this.application) == null ? void 0 : r.triggerIcon;
745
- if (!s)
743
+ var n;
744
+ const t = (n = this.application) == null ? void 0 : n.triggerIcon;
745
+ if (!t)
746
746
  return l;
747
- const t = async (n) => await import("./index-5087564d.mjs").then(
748
- (c) => c[n]
749
- ), { type: e, content: i } = s;
750
- switch (e) {
747
+ const e = async (o) => await import("./index-5087564d.mjs").then(
748
+ (a) => a[o]
749
+ ), { type: i, content: r } = t;
750
+ switch (i) {
751
751
  case "Telia": {
752
- const n = await t(i);
753
- return n ? R`<telia-icon
752
+ const o = await e(r);
753
+ return o ? H`<telia-icon
754
754
  class="trigger-icon"
755
- svg=${n.svg}
755
+ svg=${o.svg}
756
756
  size="lg"
757
757
  ></telia-icon>` : l;
758
758
  }
@@ -761,7 +761,7 @@ let y = class extends f {
761
761
  }
762
762
  }
763
763
  render() {
764
- return R`<button
764
+ return H`<button
765
765
  class=${Qt({
766
766
  trigger: !0,
767
767
  active: this.active,
@@ -799,8 +799,8 @@ let y = class extends f {
799
799
  </span>
800
800
  </button>`;
801
801
  }
802
- };
803
- y.styles = [
802
+ }
803
+ x.styles = [
804
804
  P`
805
805
  :host {
806
806
  --voca-rem-multiplier: 0.625;
@@ -871,27 +871,24 @@ y.styles = [
871
871
  }
872
872
  `
873
873
  ];
874
- j([
874
+ Y([
875
875
  u({ attribute: !1 })
876
- ], y.prototype, "application", 2);
877
- j([
878
- L()
879
- ], y.prototype, "active", 2);
880
- j([
881
- L()
882
- ], y.prototype, "loaded", 2);
883
- j([
884
- L()
885
- ], y.prototype, "icon", 2);
886
- y = j([
887
- F("ace-trigger")
888
- ], y);
889
- var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, A = (s, t, e, i) => {
876
+ ], x.prototype, "application", 2);
877
+ Y([
878
+ D()
879
+ ], x.prototype, "active", 2);
880
+ Y([
881
+ D()
882
+ ], x.prototype, "loaded", 2);
883
+ Y([
884
+ D()
885
+ ], x.prototype, "icon", 2);
886
+ var ee = Object.defineProperty, se = Object.getOwnPropertyDescriptor, v = (s, t, e, i) => {
890
887
  for (var r = i > 1 ? void 0 : i ? se(t, e) : t, n = s.length - 1, o; n >= 0; n--)
891
888
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
892
889
  return i && r && ee(t, e, r), r;
893
890
  };
894
- const Pt = (s) => {
891
+ const St = (s) => {
895
892
  class t extends s {
896
893
  constructor() {
897
894
  super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
@@ -930,48 +927,40 @@ const Pt = (s) => {
930
927
  box-sizing: border-box;
931
928
  }
932
929
  `
933
- ], A([
930
+ ], v([
934
931
  u()
935
- ], t.prototype, "properties", 2), A([
932
+ ], t.prototype, "properties", 2), v([
936
933
  u()
937
- ], t.prototype, "context", 2), A([
934
+ ], t.prototype, "context", 2), v([
938
935
  u()
939
- ], t.prototype, "layout", 2), A([
936
+ ], t.prototype, "layout", 2), v([
940
937
  u()
941
- ], t.prototype, "name", 2), A([
938
+ ], t.prototype, "name", 2), v([
942
939
  u()
943
- ], t.prototype, "type", 2), A([
940
+ ], t.prototype, "type", 2), v([
944
941
  u({ attribute: !1 })
945
- ], t.prototype, "application", 2), A([
942
+ ], t.prototype, "application", 2), v([
946
943
  u({ attribute: !1 })
947
944
  ], t.prototype, "parent", 2), t;
948
945
  };
949
- var ie = Object.defineProperty, re = Object.getOwnPropertyDescriptor, ne = (s, t, e, i) => {
950
- for (var r = i > 1 ? void 0 : i ? re(t, e) : t, n = s.length - 1, o; n >= 0; n--)
951
- (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
952
- return i && r && ie(t, e, r), r;
953
- };
954
- let et = class extends Pt(f) {
946
+ class Pt extends St(f) {
955
947
  render() {
956
- return R`Non resolved component`;
948
+ return H`Non resolved component`;
957
949
  }
958
- };
959
- et.styles = [
950
+ }
951
+ Pt.styles = [
960
952
  P`
961
953
  :host {
962
954
  display: block;
963
955
  }
964
956
  `
965
957
  ];
966
- et = ne([
967
- F("ace-unresolved-component")
968
- ], et);
969
958
  /**
970
959
  * @license
971
960
  * Copyright 2020 Google LLC
972
961
  * SPDX-License-Identifier: BSD-3-Clause
973
962
  */
974
- const oe = (s) => s.strings === void 0;
963
+ const ie = (s) => s.strings === void 0;
975
964
  /**
976
965
  * @license
977
966
  * Copyright 2017 Google LLC
@@ -985,7 +974,7 @@ const N = (s, t) => {
985
974
  for (const r of e)
986
975
  (i = r._$AO) == null || i.call(r, t, !1), N(r, t);
987
976
  return !0;
988
- }, V = (s) => {
977
+ }, W = (s) => {
989
978
  let t, e;
990
979
  do {
991
980
  if ((t = s._$AM) === void 0)
@@ -999,28 +988,28 @@ const N = (s, t) => {
999
988
  t._$AN = e = /* @__PURE__ */ new Set();
1000
989
  else if (e.has(s))
1001
990
  break;
1002
- e.add(s), he(t);
991
+ e.add(s), oe(t);
1003
992
  }
1004
993
  };
1005
- function ae(s) {
1006
- this._$AN !== void 0 ? (V(this), this._$AM = s, Ot(this)) : this._$AM = s;
994
+ function re(s) {
995
+ this._$AN !== void 0 ? (W(this), this._$AM = s, Ot(this)) : this._$AM = s;
1007
996
  }
1008
- function ce(s, t = !1, e = 0) {
997
+ function ne(s, t = !1, e = 0) {
1009
998
  const i = this._$AH, r = this._$AN;
1010
999
  if (r !== void 0 && r.size !== 0)
1011
1000
  if (t)
1012
1001
  if (Array.isArray(i))
1013
1002
  for (let n = e; n < i.length; n++)
1014
- N(i[n], !1), V(i[n]);
1003
+ N(i[n], !1), W(i[n]);
1015
1004
  else
1016
- i != null && (N(i, !1), V(i));
1005
+ i != null && (N(i, !1), W(i));
1017
1006
  else
1018
1007
  N(this, s);
1019
1008
  }
1020
- const he = (s) => {
1021
- s.type == xt.CHILD && (s._$AP ?? (s._$AP = ce), s._$AQ ?? (s._$AQ = ae));
1009
+ const oe = (s) => {
1010
+ s.type == wt.CHILD && (s._$AP ?? (s._$AP = ne), s._$AQ ?? (s._$AQ = re));
1022
1011
  };
1023
- class le extends Et {
1012
+ class ae extends Et {
1024
1013
  constructor() {
1025
1014
  super(...arguments), this._$AN = void 0;
1026
1015
  }
@@ -1029,10 +1018,10 @@ class le extends Et {
1029
1018
  }
1030
1019
  _$AO(t, e = !0) {
1031
1020
  var i, r;
1032
- t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), V(this));
1021
+ t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (N(this, t), W(this));
1033
1022
  }
1034
1023
  setValue(t) {
1035
- if (oe(this._$Ct))
1024
+ if (ie(this._$Ct))
1036
1025
  this._$Ct._$AI(t, this);
1037
1026
  else {
1038
1027
  const e = [...this._$Ct._$AH];
@@ -1049,10 +1038,10 @@ class le extends Et {
1049
1038
  * Copyright 2020 Google LLC
1050
1039
  * SPDX-License-Identifier: BSD-3-Clause
1051
1040
  */
1052
- const de = () => new pe();
1053
- class pe {
1041
+ const ce = () => new he();
1042
+ class he {
1054
1043
  }
1055
- const tt = /* @__PURE__ */ new WeakMap(), ue = Ct(class extends le {
1044
+ const X = /* @__PURE__ */ new WeakMap(), le = xt(class extends ae {
1056
1045
  render(s) {
1057
1046
  return l;
1058
1047
  }
@@ -1064,14 +1053,14 @@ const tt = /* @__PURE__ */ new WeakMap(), ue = Ct(class extends le {
1064
1053
  ot(s) {
1065
1054
  if (typeof this.G == "function") {
1066
1055
  const t = this.ct ?? globalThis;
1067
- let e = tt.get(t);
1068
- e === void 0 && (e = /* @__PURE__ */ new WeakMap(), tt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ct, s);
1056
+ let e = X.get(t);
1057
+ e === void 0 && (e = /* @__PURE__ */ new WeakMap(), X.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ct, s);
1069
1058
  } else
1070
1059
  this.G.value = s;
1071
1060
  }
1072
1061
  get rt() {
1073
1062
  var s, t;
1074
- return typeof this.G == "function" ? (s = tt.get(this.ct ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1063
+ return typeof this.G == "function" ? (s = X.get(this.ct ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
1075
1064
  }
1076
1065
  disconnected() {
1077
1066
  this.rt === this.lt && this.ot(void 0);
@@ -1080,14 +1069,14 @@ const tt = /* @__PURE__ */ new WeakMap(), ue = Ct(class extends le {
1080
1069
  this.ot(this.lt);
1081
1070
  }
1082
1071
  });
1083
- var nt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(nt || {}), ge = Object.defineProperty, fe = Object.getOwnPropertyDescriptor, Tt = (s, t, e, i) => {
1084
- for (var r = i > 1 ? void 0 : i ? fe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1072
+ var it = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(it || {}), de = Object.defineProperty, pe = Object.getOwnPropertyDescriptor, Tt = (s, t, e, i) => {
1073
+ for (var r = i > 1 ? void 0 : i ? pe(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1085
1074
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1086
- return i && r && ge(t, e, r), r;
1075
+ return i && r && de(t, e, r), r;
1087
1076
  };
1088
- let q = class extends f {
1077
+ let V = class extends f {
1089
1078
  constructor() {
1090
- super(...arguments), this.nodes = [], this.wrapperRef = de();
1079
+ super(...arguments), this.nodes = [], this.wrapperRef = ce();
1091
1080
  }
1092
1081
  addChild(s) {
1093
1082
  s.parent = this, this.nodes.push(s);
@@ -1095,19 +1084,19 @@ let q = class extends f {
1095
1084
  applyBranding() {
1096
1085
  if (this.wrapperRef.value) {
1097
1086
  const s = this.application.settings;
1098
- s != null && s.branding && St(s.branding, this.wrapperRef.value);
1087
+ s != null && s.branding && Ct(s.branding, this.wrapperRef.value);
1099
1088
  }
1100
1089
  }
1101
1090
  firstUpdated(s) {
1102
1091
  this.applyBranding();
1103
1092
  }
1104
1093
  render() {
1105
- return this.application.renderStrategy === nt.Trigger && this.renderRoot.host.classList.add("floating"), R`<div class="widget-container" ${ue(this.wrapperRef)}>
1106
- ${wt(this.nodes, (s) => s)}
1094
+ return this.application.renderStrategy === it.Trigger && this.renderRoot.host.classList.add("floating"), H`<div class="widget-container" ${le(this.wrapperRef)}>
1095
+ ${At(this.nodes, (s) => s)}
1107
1096
  </div>`;
1108
1097
  }
1109
1098
  };
1110
- q.styles = P`
1099
+ V.styles = P`
1111
1100
  :host {
1112
1101
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
1113
1102
  --spacing-xs: 0.2rem;
@@ -1188,14 +1177,14 @@ q.styles = P`
1188
1177
  `;
1189
1178
  Tt([
1190
1179
  u({ attribute: !1 })
1191
- ], q.prototype, "application", 2);
1192
- q = Tt([
1193
- F("ace-wrapper")
1194
- ], q);
1195
- var $e = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, J = (s, t, e, i) => {
1196
- for (var r = i > 1 ? void 0 : i ? _e(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1180
+ ], V.prototype, "application", 2);
1181
+ V = Tt([
1182
+ bt("ace-wrapper")
1183
+ ], V);
1184
+ var ue = Object.defineProperty, ge = Object.getOwnPropertyDescriptor, F = (s, t, e, i) => {
1185
+ for (var r = i > 1 ? void 0 : i ? ge(t, e) : t, n = s.length - 1, o; n >= 0; n--)
1197
1186
  (o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
1198
- return i && r && $e(t, e, r), r;
1187
+ return i && r && ue(t, e, r), r;
1199
1188
  };
1200
1189
  let S = class extends f {
1201
1190
  constructor() {
@@ -1222,8 +1211,8 @@ let S = class extends f {
1222
1211
  render() {
1223
1212
  if (!this.widget || this.status !== "activated")
1224
1213
  return l;
1225
- if (this.widget.renderStrategy === nt.Trigger) {
1226
- const s = new y();
1214
+ if (this.widget.renderStrategy === it.Trigger) {
1215
+ const s = new x();
1227
1216
  return s.application = this.widget, s;
1228
1217
  }
1229
1218
  return this.widget.render();
@@ -1236,42 +1225,44 @@ S.styles = [
1236
1225
  }
1237
1226
  `
1238
1227
  ];
1239
- J([
1228
+ F([
1240
1229
  u({ attribute: !0 })
1241
1230
  ], S.prototype, "name", 2);
1242
- J([
1243
- L()
1231
+ F([
1232
+ D()
1244
1233
  ], S.prototype, "widget", 2);
1245
- J([
1246
- L()
1234
+ F([
1235
+ D()
1247
1236
  ], S.prototype, "status", 2);
1248
- S = J([
1249
- F("ace-widget")
1237
+ S = F([
1238
+ bt("ace-widget")
1250
1239
  ], S);
1251
- const me = (s) => {
1240
+ customElements.get("ace-trigger") || customElements.define("ace-trigger", x);
1241
+ customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Pt);
1242
+ const fe = (s) => {
1252
1243
  const t = {};
1253
1244
  return Object.keys(s).forEach((e) => {
1254
1245
  e.indexOf("css-") > -1 && (t[e] = s[e]);
1255
1246
  }), t;
1256
- }, ye = (s, t) => {
1257
- const e = me(t);
1247
+ }, $e = (s, t) => {
1248
+ const e = fe(t);
1258
1249
  Object.entries(e).forEach(([i, r]) => {
1259
1250
  s.style.setProperty(i.replace("css-", ""), r);
1260
1251
  });
1261
1252
  };
1262
- class ve extends Pt(f) {
1253
+ class me extends St(f) {
1263
1254
  constructor() {
1264
1255
  super(...arguments), this.nodes = [];
1265
1256
  }
1266
1257
  render() {
1267
1258
  var t;
1268
- return ye(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
1259
+ return $e(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
1269
1260
  "--columns",
1270
1261
  ((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
1271
- ), R`${wt(this.nodes, (e) => e)}`;
1262
+ ), H`${At(this.nodes, (e) => e)}`;
1272
1263
  }
1273
1264
  }
1274
- ve.styles = [
1265
+ me.styles = [
1275
1266
  P`
1276
1267
  :host {
1277
1268
  height: 100%;
@@ -1284,6 +1275,6 @@ ve.styles = [
1284
1275
  `
1285
1276
  ];
1286
1277
  export {
1287
- ve as Area,
1288
- ve as default
1278
+ me as Area,
1279
+ me as default
1289
1280
  };
@@ -2,49 +2,49 @@
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const I=globalThis,st=I.ShadowRoot&&(I.ShadyCSS===void 0||I.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,it=Symbol(),at=new WeakMap;let mt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==it)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(st&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=at.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&at.set(e,t))}return t}toString(){return this.cssText}};const Mt=s=>new mt(typeof s=="string"?s:s+"",void 0,it),P=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,r,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;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.")})(r)+s[n+1],s[0]);return new mt(e,s,it)},Nt=(s,t)=>{if(st)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=I.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},ct=st?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Mt(e)})(s):s;/**
5
+ */const B=globalThis,tt=B.ShadowRoot&&(B.ShadyCSS===void 0||B.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,et=Symbol(),nt=new WeakMap;let $t=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==et)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(tt&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=nt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&nt.set(e,t))}return t}toString(){return this.cssText}};const Mt=s=>new $t(typeof s=="string"?s:s+"",void 0,et),P=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,r,n)=>i+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;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.")})(r)+s[n+1],s[0]);return new $t(e,s,et)},Nt=(s,t)=>{if(tt)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),r=B.litNonce;r!==void 0&&i.setAttribute("nonce",r),i.textContent=e.cssText,s.appendChild(i)}},ot=tt?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Mt(e)})(s):s;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */const{is:Ht,defineProperty:Rt,getOwnPropertyDescriptor:kt,getOwnPropertyNames:Dt,getOwnPropertySymbols:Lt,getPrototypeOf:jt}=Object,m=globalThis,ht=m.trustedTypes,zt=ht?ht.emptyScript:"",K=m.reactiveElementPolyfillSupport,T=(s,t)=>s,G={toAttribute(s,t){switch(t){case Boolean:s=s?zt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},rt=(s,t)=>!Ht(s,t),lt={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:rt};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),m.litPropertyMetadata??(m.litPropertyMetadata=new WeakMap);class C extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=lt){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Rt(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=kt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const c=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??lt}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=jt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,i=[...Dt(e),...Lt(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(ct(r))}else t!==void 0&&e.push(ct(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:G).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:G;this._$Em=r,this[r]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i,r=!1,n){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??rt)(r?n:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$ES)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}C.elementStyles=[],C.shadowRootOptions={mode:"open"},C[T("elementProperties")]=new Map,C[T("finalized")]=new Map,K==null||K({ReactiveElement:C}),(m.reactiveElementVersions??(m.reactiveElementVersions=[])).push("2.0.1");/**
9
+ */const{is:kt,defineProperty:Ht,getOwnPropertyDescriptor:Rt,getOwnPropertyNames:Lt,getOwnPropertySymbols:Dt,getPrototypeOf:jt}=Object,_=globalThis,at=_.trustedTypes,zt=at?at.emptyScript:"",J=_.reactiveElementPolyfillSupport,T=(s,t)=>s,I={toAttribute(s,t){switch(t){case Boolean:s=s?zt:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s)}catch{e=null}}return e}},st=(s,t)=>!kt(s,t),ct={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:st};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),_.litPropertyMetadata??(_.litPropertyMetadata=new WeakMap);class E extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ct){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);r!==void 0&&Ht(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:n}=Rt(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return r==null?void 0:r.call(this)},set(o){const c=r==null?void 0:r.call(this);n.call(this,o),this.requestUpdate(t,c,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ct}static _$Ei(){if(this.hasOwnProperty(T("elementProperties")))return;const t=jt(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(T("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(T("properties"))){const e=this.properties,i=[...Lt(e),...Dt(e)];for(const r of i)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,r]of e)this.elementProperties.set(i,r)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const r=this._$Eu(e,i);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const r of i)e.unshift(ot(r))}else t!==void 0&&e.push(ot(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$Eg=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e;(this._$ES??(this._$ES=[])).push(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$ES)==null||e.splice(this._$ES.indexOf(t)>>>0,1)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Nt(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)==null||t.forEach(e=>{var i;return(i=e.hostConnected)==null?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e){var n;const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(r!==void 0&&i.reflect===!0){const o=(((n=i.converter)==null?void 0:n.toAttribute)!==void 0?i.converter:I).toAttribute(e,i.type);this._$Em=t,o==null?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){var n;const i=this.constructor,r=i._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const o=i.getPropertyOptions(r),c=typeof o.converter=="function"?{fromAttribute:o.converter}:((n=o.converter)==null?void 0:n.fromAttribute)!==void 0?o.converter:I;this._$Em=r,this[r]=c.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,i,r=!1,n){if(t!==void 0){if(i??(i=this.constructor.getPropertyOptions(t)),!(i.hasChanged??st)(r?n:this[t],e))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$Eg=this._$EP())}C(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$EP(){this.isUpdatePending=!0;try{await this._$Eg}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,o]of r)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.C(n,this[n],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(i=this._$ES)==null||i.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$ET()}catch(r){throw t=!1,this._$ET(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)==null||e.forEach(i=>{var r;return(r=i.hostUpdated)==null?void 0:r.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$ET(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$Eg}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EO(e,this[e]))),this._$ET()}updated(t){}firstUpdated(t){}}E.elementStyles=[],E.shadowRootOptions={mode:"open"},E[T("elementProperties")]=new Map,E[T("finalized")]=new Map,J==null||J({ReactiveElement:E}),(_.reactiveElementVersions??(_.reactiveElementVersions=[])).push("2.0.1");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const U=globalThis,W=U.trustedTypes,dt=W?W.createPolicy("lit-html",{createHTML:s=>s}):void 0,yt="$lit$",_=`lit$${(Math.random()+"").slice(9)}$`,vt="?"+_,Bt=`<${vt}>`,w=document,N=()=>w.createComment(""),H=s=>s===null||typeof s!="object"&&typeof s!="function",At=Array.isArray,It=s=>At(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Z=`[
14
- \f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,pt=/-->/g,ut=/>/g,v=RegExp(`>|${Z}(?:([^\\s"'>=/]+)(${Z}*=${Z}*(?:[^
15
- \f\r"'\`<>=]|("|')|))|$)`,"g"),gt=/'/g,ft=/"/g,bt=/^(?:script|style|textarea|title)$/i,Gt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),R=Gt(1),x=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),$t=new WeakMap,b=w.createTreeWalker(w,129);function wt(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return dt!==void 0?dt.createHTML(t):t}const Wt=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":"",o=O;for(let c=0;c<e;c++){const a=s[c];let d,p,h=-1,g=0;for(;g<a.length&&(o.lastIndex=g,p=o.exec(a),p!==null);)g=o.lastIndex,o===O?p[1]==="!--"?o=pt:p[1]!==void 0?o=ut:p[2]!==void 0?(bt.test(p[2])&&(r=RegExp("</"+p[2],"g")),o=v):p[3]!==void 0&&(o=v):o===v?p[0]===">"?(o=r??O,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?v:p[3]==='"'?ft:gt):o===ft||o===gt?o=v:o===pt||o===ut?o=O:(o=v,r=void 0);const $=o===v&&s[c+1].startsWith("/>")?" ":"";n+=o===O?a+Bt:h>=0?(i.push(d),a.slice(0,h)+yt+a.slice(h)+_+$):a+_+(h===-2?c:$)}return[wt(s,n+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class k{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=Wt(t,e);if(this.el=k.createElement(d,i),b.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=b.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(yt)){const g=p[o++],$=r.getAttribute(h).split(_),z=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:z[2],strings:$,ctor:z[1]==="."?qt:z[1]==="?"?Yt:z[1]==="@"?Ft:Y}),r.removeAttribute(h)}else h.startsWith(_)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(bt.test(r.tagName)){const h=r.textContent.split(_),g=h.length-1;if(g>0){r.textContent=W?W.emptyScript:"";for(let $=0;$<g;$++)r.append(h[$],N()),b.nextNode(),a.push({type:2,index:++n});r.append(h[g],N())}}}else if(r.nodeType===8)if(r.data===vt)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(_,h+1))!==-1;)a.push({type:7,index:n}),h+=_.length-1}n++}}static createElement(t,e){const i=w.createElement("template");return i.innerHTML=t,i}}function E(s,t,e=s,i){var o,c;if(t===x)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=H(t)?void 0:t._$litDirective$;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(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=E(s,r._$AS(s,t.values),r,i)),t}class Vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??w).importNode(e,!0);b.currentNode=r;let n=b.nextNode(),o=0,c=0,a=i[0];for(;a!==void 0;){if(o===a.index){let d;a.type===2?d=new D(n,n.nextSibling,this,t):a.type===1?d=new a.ctor(n,a.name,a.strings,this,t):a.type===6&&(d=new Jt(n,this,t)),this._$AV.push(d),a=i[++c]}o!==(a==null?void 0:a.index)&&(n=b.nextNode(),o++)}return b.currentNode=w,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class D{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=E(this,t,e),H(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==x&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):It(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==l&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(w.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=k.createElement(wt(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Vt(r,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=$t.get(t.strings);return e===void 0&&$t.set(t.strings,e=new k(t)),e}T(t){At(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new D(this.k(N()),this.k(N()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Y{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=l}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=E(this,t,e,0),o=!H(t)||t!==this._$AH&&t!==x,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=E(this,c[i+a],e,a),d===x&&(d=this._$AH[a]),o||(o=!H(d)||d!==this._$AH[a]),d===l?t=l:t!==l&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!r&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends Y{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class Yt extends Y{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class Ft extends Y{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=E(this,t,e,0)??l)===x)return;const i=this._$AH,r=t===l&&i!==l||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==l&&(i===l||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Jt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){E(this,t)}}const Q=U.litHtmlPolyfillSupport;Q==null||Q(k,D),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.2");const Kt=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new D(t.insertBefore(N(),n),n,void 0,e??{})}return r._$AI(s),r};/**
13
+ */const U=globalThis,G=U.trustedTypes,ht=G?G.createPolicy("lit-html",{createHTML:s=>s}):void 0,mt="$lit$",m=`lit$${(Math.random()+"").slice(9)}$`,_t="?"+m,Bt=`<${_t}>`,b=document,N=()=>b.createComment(""),k=s=>s===null||typeof s!="object"&&typeof s!="function",yt=Array.isArray,It=s=>yt(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",K=`[
14
+ \f\r]`,O=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,dt=/>/g,y=RegExp(`>|${K}(?:([^\\s"'>=/]+)(${K}*=${K}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),pt=/'/g,ut=/"/g,vt=/^(?:script|style|textarea|title)$/i,Gt=s=>(t,...e)=>({_$litType$:s,strings:t,values:e}),H=Gt(1),w=Symbol.for("lit-noChange"),l=Symbol.for("lit-nothing"),gt=new WeakMap,A=b.createTreeWalker(b,129);function At(s,t){if(!Array.isArray(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ht!==void 0?ht.createHTML(t):t}const Wt=(s,t)=>{const e=s.length-1,i=[];let r,n=t===2?"<svg>":"",o=O;for(let c=0;c<e;c++){const a=s[c];let d,p,h=-1,g=0;for(;g<a.length&&(o.lastIndex=g,p=o.exec(a),p!==null);)g=o.lastIndex,o===O?p[1]==="!--"?o=lt:p[1]!==void 0?o=dt:p[2]!==void 0?(vt.test(p[2])&&(r=RegExp("</"+p[2],"g")),o=y):p[3]!==void 0&&(o=y):o===y?p[0]===">"?(o=r??O,h=-1):p[1]===void 0?h=-2:(h=o.lastIndex-p[2].length,d=p[1],o=p[3]===void 0?y:p[3]==='"'?ut:pt):o===ut||o===pt?o=y:o===lt||o===dt?o=O:(o=y,r=void 0);const $=o===y&&s[c+1].startsWith("/>")?" ":"";n+=o===O?a+Bt:h>=0?(i.push(d),a.slice(0,h)+mt+a.slice(h)+m+$):a+m+(h===-2?c:$)}return[At(s,n+(s[e]||"<?>")+(t===2?"</svg>":"")),i]};class R{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let n=0,o=0;const c=t.length-1,a=this.parts,[d,p]=Wt(t,e);if(this.el=R.createElement(d,i),A.currentNode=this.el.content,e===2){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(r=A.nextNode())!==null&&a.length<c;){if(r.nodeType===1){if(r.hasAttributes())for(const h of r.getAttributeNames())if(h.endsWith(mt)){const g=p[o++],$=r.getAttribute(h).split(m),j=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:j[2],strings:$,ctor:j[1]==="."?qt:j[1]==="?"?Yt:j[1]==="@"?Ft:q}),r.removeAttribute(h)}else h.startsWith(m)&&(a.push({type:6,index:n}),r.removeAttribute(h));if(vt.test(r.tagName)){const h=r.textContent.split(m),g=h.length-1;if(g>0){r.textContent=G?G.emptyScript:"";for(let $=0;$<g;$++)r.append(h[$],N()),A.nextNode(),a.push({type:2,index:++n});r.append(h[g],N())}}}else if(r.nodeType===8)if(r.data===_t)a.push({type:2,index:n});else{let h=-1;for(;(h=r.data.indexOf(m,h+1))!==-1;)a.push({type:7,index:n}),h+=m.length-1}n++}}static createElement(t,e){const i=b.createElement("template");return i.innerHTML=t,i}}function C(s,t,e=s,i){var o,c;if(t===w)return t;let r=i!==void 0?(o=e._$Co)==null?void 0:o[i]:e._$Cl;const n=k(t)?void 0:t._$litDirective$;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(s),r._$AT(s,e,i)),i!==void 0?(e._$Co??(e._$Co=[]))[i]=r:e._$Cl=r),r!==void 0&&(t=C(s,r._$AS(s,t.values),r,i)),t}class Vt{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:i}=this._$AD,r=((t==null?void 0:t.creationScope)??b).importNode(e,!0);A.currentNode=r;let n=A.nextNode(),o=0,c=0,a=i[0];for(;a!==void 0;){if(o===a.index){let d;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 Jt(n,this,t)),this._$AV.push(d),a=i[++c]}o!==(a==null?void 0:a.index)&&(n=A.nextNode(),o++)}return A.currentNode=b,r}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class L{get _$AU(){var t;return((t=this._$AM)==null?void 0:t._$AU)??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=l,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=(r==null?void 0:r.isConnected)??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=C(this,t,e),k(t)?t===l||t==null||t===""?(this._$AH!==l&&this._$AR(),this._$AH=l):t!==this._$AH&&t!==w&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):It(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==l&&k(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.createTextNode(t)),this._$AH=t}g(t){var n;const{values:e,_$litType$:i}=t,r=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=R.createElement(At(i.h,i.h[0]),this.options)),i);if(((n=this._$AH)==null?void 0:n._$AD)===r)this._$AH.p(e);else{const o=new Vt(r,this),c=o.u(this.options);o.p(e),this.$(c),this._$AH=o}}_$AC(t){let e=gt.get(t.strings);return e===void 0&&gt.set(t.strings,e=new R(t)),e}T(t){yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const n of t)r===e.length?e.push(i=new L(this.k(N()),this.k(N()),this,this.options)):i=e[r],i._$AI(n),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class q{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,n){this.type=1,this._$AH=l,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=l}_$AI(t,e=this,i,r){const n=this.strings;let o=!1;if(n===void 0)t=C(this,t,e,0),o=!k(t)||t!==this._$AH&&t!==w,o&&(this._$AH=t);else{const c=t;let a,d;for(t=n[0],a=0;a<n.length-1;a++)d=C(this,c[i+a],e,a),d===w&&(d=this._$AH[a]),o||(o=!k(d)||d!==this._$AH[a]),d===l?t=l:t!==l&&(t+=(d??"")+n[a+1]),this._$AH[a]=d}o&&!r&&this.O(t)}O(t){t===l?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class qt extends q{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===l?void 0:t}}class Yt extends q{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==l)}}class Ft extends q{constructor(t,e,i,r,n){super(t,e,i,r,n),this.type=5}_$AI(t,e=this){if((t=C(this,t,e,0)??l)===w)return;const i=this._$AH,r=t===l&&i!==l||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,n=t!==l&&(i===l||r);r&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e;typeof this._$AH=="function"?this._$AH.call(((e=this.options)==null?void 0:e.host)??this.element,t):this._$AH.handleEvent(t)}}class Jt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){C(this,t)}}const Z=U.litHtmlPolyfillSupport;Z==null||Z(R,L),(U.litHtmlVersions??(U.litHtmlVersions=[])).push("3.0.2");const Kt=(s,t,e)=>{const i=(e==null?void 0:e.renderBefore)??t;let r=i._$litPart$;if(r===void 0){const n=(e==null?void 0:e.renderBefore)??null;i._$litPart$=r=new L(t.insertBefore(N(),n),n,void 0,e??{})}return r._$AI(s),r};/**
16
16
  * @license
17
17
  * Copyright 2017 Google LLC
18
18
  * SPDX-License-Identifier: BSD-3-Clause
19
- */let f=class extends C{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return x}};var _t;f._$litElement$=!0,f.finalized=!0,(_t=globalThis.litElementHydrateSupport)==null||_t.call(globalThis,{LitElement:f});const X=globalThis.litElementPolyfillSupport;X==null||X({LitElement:f});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
19
+ */let f=class extends E{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Kt(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return w}};var ft;f._$litElement$=!0,f.finalized=!0,(ft=globalThis.litElementHydrateSupport)==null||ft.call(globalThis,{LitElement:f});const Q=globalThis.litElementPolyfillSupport;Q==null||Q({LitElement:f});(globalThis.litElementVersions??(globalThis.litElementVersions=[])).push("4.0.1");/**
20
20
  * @license
21
21
  * Copyright 2021 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */function*xt(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}/**
23
+ */function*bt(s,t){if(s!==void 0){let e=0;for(const i of s)yield t(i,e++)}}/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const F=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};/**
27
+ */const wt=s=>(t,e)=>{e!==void 0?e.addInitializer(()=>{customElements.define(s,t)}):customElements.define(s,t)};/**
28
28
  * @license
29
29
  * Copyright 2017 Google LLC
30
30
  * SPDX-License-Identifier: BSD-3-Clause
31
- */const Zt={attribute:!0,type:String,converter:G,reflect:!1,hasChanged:rt},Qt=(s=Zt,t,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,s),i==="accessor"){const{name:o}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(o,a,s)},init(c){return c!==void 0&&this.C(o,void 0,s),c}}}if(i==="setter"){const{name:o}=e;return function(c){const a=this[o];t.call(this,c),this.requestUpdate(o,a,s)}}throw Error("Unsupported decorator location: "+i)};function u(s){return(t,e)=>typeof e=="object"?Qt(s,t,e):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(s,t,e)}/**
31
+ */const Zt={attribute:!0,type:String,converter:I,reflect:!1,hasChanged:st},Qt=(s=Zt,t,e)=>{const{kind:i,metadata:r}=e;let n=globalThis.litPropertyMetadata.get(r);if(n===void 0&&globalThis.litPropertyMetadata.set(r,n=new Map),n.set(e.name,s),i==="accessor"){const{name:o}=e;return{set(c){const a=t.get.call(this);t.set.call(this,c),this.requestUpdate(o,a,s)},init(c){return c!==void 0&&this.C(o,void 0,s),c}}}if(i==="setter"){const{name:o}=e;return function(c){const a=this[o];t.call(this,c),this.requestUpdate(o,a,s)}}throw Error("Unsupported decorator location: "+i)};function u(s){return(t,e)=>typeof e=="object"?Qt(s,t,e):((i,r,n)=>{const o=r.hasOwnProperty(n);return r.constructor.createProperty(n,o?{...i,wrapped:!0}:i),o?Object.getOwnPropertyDescriptor(r,n):void 0})(s,t,e)}/**
32
32
  * @license
33
33
  * Copyright 2017 Google LLC
34
34
  * SPDX-License-Identifier: BSD-3-Clause
35
- */function L(s){return u({...s,state:!0,attribute:!1})}/**
35
+ */function D(s){return u({...s,state:!0,attribute:!1})}/**
36
36
  * @license
37
37
  * Copyright 2017 Google LLC
38
38
  * SPDX-License-Identifier: BSD-3-Clause
39
- */const Ct={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Et=s=>(...t)=>({_$litDirective$:s,values:t});class St{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
39
+ */const xt={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Et=s=>(...t)=>({_$litDirective$:s,values:t});class Ct{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
40
40
  * @license
41
41
  * Copyright 2018 Google LLC
42
42
  * SPDX-License-Identifier: BSD-3-Clause
43
- */const Xt=Et(class extends St{constructor(s){var t;if(super(s),s.type!==Ct.ATTRIBUTE||s.name!=="class"||((t=s.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.it===void 0){this.it=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((i=this.st)!=null&&i.has(n))&&this.it.add(n);return this.render(t)}const e=s.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];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)))}return x}}),B=(s,t,e)=>{s&&e.style.setProperty(t,s)},Pt=(s,t)=>{var e,i,r,n;B((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),B((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),B((r=s.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),B((n=s.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,j=(s,t,e,i)=>{for(var r=i>1?void 0:i?ee(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&te(t,e,r),r};let y=class extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var s;if(!((s=this.application)!=null&&s.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.removeFromDOM()}_applyBranding(){var s;(s=this.application)!=null&&s.settings&&Pt(this.application.settings.branding,this)}async _renderSymbol(){var r;const s=(r=this.application)==null?void 0:r.triggerIcon;if(!s)return l;const t=async n=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(c=>c[n]),{type:e,content:i}=s;switch(e){case"Telia":{const n=await t(i);return n?R`<telia-icon
43
+ */const Xt=Et(class extends Ct{constructor(s){var t;if(super(s),s.type!==xt.ATTRIBUTE||s.name!=="class"||((t=s.strings)==null?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(s){return" "+Object.keys(s).filter(t=>s[t]).join(" ")+" "}update(s,[t]){var i,r;if(this.it===void 0){this.it=new Set,s.strings!==void 0&&(this.st=new Set(s.strings.join(" ").split(/\s/).filter(n=>n!=="")));for(const n in t)t[n]&&!((i=this.st)!=null&&i.has(n))&&this.it.add(n);return this.render(t)}const e=s.element.classList;for(const n of this.it)n in t||(e.remove(n),this.it.delete(n));for(const n in t){const o=!!t[n];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)))}return w}}),z=(s,t,e)=>{s&&e.style.setProperty(t,s)},St=(s,t)=>{var e,i,r,n;z((e=s.colors)==null?void 0:e.primaryBackground,"--primary-background",t),z((i=s.colors)==null?void 0:i.textOnPrimaryBackground,"--text-on-primary-background",t),z((r=s.colors)==null?void 0:r.secondaryBackground,"--secondary-background",t),z((n=s.colors)==null?void 0:n.textOnSecondaryBackground,"--text-on-secondary-background",t)};var te=Object.defineProperty,ee=Object.getOwnPropertyDescriptor,Y=(s,t,e,i)=>{for(var r=i>1?void 0:i?ee(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&te(t,e,r),r};class x extends f{constructor(){super(...arguments),this.active=!1,this.loaded=!1}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}_toggleActive(){var t;if(!((t=this.application)!=null&&t.root)){console.warn("Could not activate widget. No root element assigned to widget.");return}this.active=!this.active,this.active?this.application.appendToDOM():this.application.removeFromDOM()}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&St(this.application.settings.branding,this)}async _renderSymbol(){var n;const t=(n=this.application)==null?void 0:n.triggerIcon;if(!t)return l;const e=async o=>await Promise.resolve().then(()=>require("./index-6dd00f59.js")).then(a=>a[o]),{type:i,content:r}=t;switch(i){case"Telia":{const o=await e(r);return o?H`<telia-icon
44
44
  class="trigger-icon"
45
- svg=${n.svg}
45
+ svg=${o.svg}
46
46
  size="lg"
47
- ></telia-icon>`:l}default:return l}}render(){return R`<button
47
+ ></telia-icon>`:l}default:return l}}render(){return H`<button
48
48
  class=${Xt({trigger:!0,active:this.active,rendered:this.loaded})}
49
49
  @click=${this._toggleActive}
50
50
  >
@@ -76,7 +76,7 @@
76
76
  />
77
77
  </svg>
78
78
  </span>
79
- </button>`}};y.styles=[P`
79
+ </button>`}}x.styles=[P`
80
80
  :host {
81
81
  --voca-rem-multiplier: 0.625;
82
82
  display: block;
@@ -144,7 +144,7 @@
144
144
  align-items: center;
145
145
  fill: var(--trigger-text-color, var(--text-on-primary-background));
146
146
  }
147
- `];j([u({attribute:!1})],y.prototype,"application",2);j([L()],y.prototype,"active",2);j([L()],y.prototype,"loaded",2);j([L()],y.prototype,"icon",2);y=j([F("ace-trigger")],y);var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,A=(s,t,e,i)=>{for(var r=i>1?void 0:i?ie(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&se(t,e,r),r};const Ot=s=>{class t extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[P`
147
+ `];Y([u({attribute:!1})],x.prototype,"application",2);Y([D()],x.prototype,"active",2);Y([D()],x.prototype,"loaded",2);Y([D()],x.prototype,"icon",2);var se=Object.defineProperty,ie=Object.getOwnPropertyDescriptor,v=(s,t,e,i)=>{for(var r=i>1?void 0:i?ie(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&se(t,e,r),r};const Pt=s=>{class t extends s{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(i){this.properties=i}writeLayout(i){this.layout=i}writeContext(i){this.context=i}addChild(i){i.parent=this,this.nodes.push(i)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`)}}return t.styles=[P`
148
148
  :host {
149
149
  font-family: var(--font-family);
150
150
  grid-column: span var(--width);
@@ -156,25 +156,25 @@
156
156
  * {
157
157
  box-sizing: border-box;
158
158
  }
159
- `],A([u()],t.prototype,"properties",2),A([u()],t.prototype,"context",2),A([u()],t.prototype,"layout",2),A([u()],t.prototype,"name",2),A([u()],t.prototype,"type",2),A([u({attribute:!1})],t.prototype,"application",2),A([u({attribute:!1})],t.prototype,"parent",2),t};var re=Object.defineProperty,ne=Object.getOwnPropertyDescriptor,oe=(s,t,e,i)=>{for(var r=i>1?void 0:i?ne(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&re(t,e,r),r};let et=class extends Ot(f){render(){return R`Non resolved component`}};et.styles=[P`
159
+ `],v([u()],t.prototype,"properties",2),v([u()],t.prototype,"context",2),v([u()],t.prototype,"layout",2),v([u()],t.prototype,"name",2),v([u()],t.prototype,"type",2),v([u({attribute:!1})],t.prototype,"application",2),v([u({attribute:!1})],t.prototype,"parent",2),t};class Ot extends Pt(f){render(){return H`Non resolved component`}}Ot.styles=[P`
160
160
  :host {
161
161
  display: block;
162
162
  }
163
- `];et=oe([F("ace-unresolved-component")],et);/**
163
+ `];/**
164
164
  * @license
165
165
  * Copyright 2020 Google LLC
166
166
  * SPDX-License-Identifier: BSD-3-Clause
167
- */const ae=s=>s.strings===void 0;/**
167
+ */const re=s=>s.strings===void 0;/**
168
168
  * @license
169
169
  * Copyright 2017 Google LLC
170
170
  * SPDX-License-Identifier: BSD-3-Clause
171
- */const M=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),M(r,t);return!0},V=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},Tt=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),le(t)}};function ce(s){this._$AN!==void 0?(V(this),this._$AM=s,Tt(this)):this._$AM=s}function he(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let n=e;n<i.length;n++)M(i[n],!1),V(i[n]);else i!=null&&(M(i,!1),V(i));else M(this,s)}const le=s=>{s.type==Ct.CHILD&&(s._$AP??(s._$AP=he),s._$AQ??(s._$AQ=ce))};class de extends St{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Tt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(M(this,t),V(this))}setValue(t){if(ae(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
171
+ */const M=(s,t)=>{var i;const e=s._$AN;if(e===void 0)return!1;for(const r of e)(i=r._$AO)==null||i.call(r,t,!1),M(r,t);return!0},W=s=>{let t,e;do{if((t=s._$AM)===void 0)break;e=t._$AN,e.delete(s),s=t}while((e==null?void 0:e.size)===0)},Tt=s=>{for(let t;t=s._$AM;s=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(s))break;e.add(s),ae(t)}};function ne(s){this._$AN!==void 0?(W(this),this._$AM=s,Tt(this)):this._$AM=s}function oe(s,t=!1,e=0){const i=this._$AH,r=this._$AN;if(r!==void 0&&r.size!==0)if(t)if(Array.isArray(i))for(let n=e;n<i.length;n++)M(i[n],!1),W(i[n]);else i!=null&&(M(i,!1),W(i));else M(this,s)}const ae=s=>{s.type==xt.CHILD&&(s._$AP??(s._$AP=oe),s._$AQ??(s._$AQ=ne))};class ce extends Ct{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,i){super._$AT(t,e,i),Tt(this),this.isConnected=t._$AU}_$AO(t,e=!0){var i,r;t!==this.isConnected&&(this.isConnected=t,t?(i=this.reconnected)==null||i.call(this):(r=this.disconnected)==null||r.call(this)),e&&(M(this,t),W(this))}setValue(t){if(re(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}/**
172
172
  * @license
173
173
  * Copyright 2020 Google LLC
174
174
  * SPDX-License-Identifier: BSD-3-Clause
175
- */const pe=()=>new ue;class ue{}const tt=new WeakMap,ge=Et(class extends de{render(s){return l}update(s,[t]){var i;const e=t!==this.G;return e&&this.G!==void 0&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=t,this.ct=(i=s.options)==null?void 0:i.host,this.ot(this.lt=s.element)),l}ot(s){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=tt.get(t);e===void 0&&(e=new WeakMap,tt.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ct,s)}else this.G.value=s}get rt(){var s,t;return typeof this.G=="function"?(s=tt.get(this.ct??globalThis))==null?void 0:s.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var nt=(s=>(s.Inline="inline",s.Trigger="trigger",s))(nt||{}),fe=Object.defineProperty,$e=Object.getOwnPropertyDescriptor,Ut=(s,t,e,i)=>{for(var r=i>1?void 0:i?$e(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&fe(t,e,r),r};let q=class extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=pe()}addChild(s){s.parent=this,this.nodes.push(s)}applyBranding(){if(this.wrapperRef.value){const s=this.application.settings;s!=null&&s.branding&&Pt(s.branding,this.wrapperRef.value)}}firstUpdated(s){this.applyBranding()}render(){return this.application.renderStrategy===nt.Trigger&&this.renderRoot.host.classList.add("floating"),R`<div class="widget-container" ${ge(this.wrapperRef)}>
176
- ${xt(this.nodes,s=>s)}
177
- </div>`}};q.styles=P`
175
+ */const he=()=>new le;class le{}const X=new WeakMap,de=Et(class extends ce{render(s){return l}update(s,[t]){var i;const e=t!==this.G;return e&&this.G!==void 0&&this.ot(void 0),(e||this.rt!==this.lt)&&(this.G=t,this.ct=(i=s.options)==null?void 0:i.host,this.ot(this.lt=s.element)),l}ot(s){if(typeof this.G=="function"){const t=this.ct??globalThis;let e=X.get(t);e===void 0&&(e=new WeakMap,X.set(t,e)),e.get(this.G)!==void 0&&this.G.call(this.ct,void 0),e.set(this.G,s),s!==void 0&&this.G.call(this.ct,s)}else this.G.value=s}get rt(){var s,t;return typeof this.G=="function"?(s=X.get(this.ct??globalThis))==null?void 0:s.get(this.G):(t=this.G)==null?void 0:t.value}disconnected(){this.rt===this.lt&&this.ot(void 0)}reconnected(){this.ot(this.lt)}});var it=(s=>(s.Inline="inline",s.Trigger="trigger",s))(it||{}),pe=Object.defineProperty,ue=Object.getOwnPropertyDescriptor,Ut=(s,t,e,i)=>{for(var r=i>1?void 0:i?ue(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&pe(t,e,r),r};let V=class extends f{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=he()}addChild(s){s.parent=this,this.nodes.push(s)}applyBranding(){if(this.wrapperRef.value){const s=this.application.settings;s!=null&&s.branding&&St(s.branding,this.wrapperRef.value)}}firstUpdated(s){this.applyBranding()}render(){return this.application.renderStrategy===it.Trigger&&this.renderRoot.host.classList.add("floating"),H`<div class="widget-container" ${de(this.wrapperRef)}>
176
+ ${bt(this.nodes,s=>s)}
177
+ </div>`}};V.styles=P`
178
178
  :host {
179
179
  --font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
180
180
  --spacing-xs: 0.2rem;
@@ -252,11 +252,11 @@
252
252
  opacity: 1;
253
253
  }
254
254
  }
255
- `;Ut([u({attribute:!1})],q.prototype,"application",2);q=Ut([F("ace-wrapper")],q);var _e=Object.defineProperty,me=Object.getOwnPropertyDescriptor,J=(s,t,e,i)=>{for(var r=i>1?void 0:i?me(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&_e(t,e,r),r};let S=class extends f{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(s){this.widget=s.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const s=globalThis.widgets;s&&(this.widget=s.applications.find(t=>t.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return l;if(this.widget.renderStrategy===nt.Trigger){const s=new y;return s.application=this.widget,s}return this.widget.render()}};S.styles=[P`
255
+ `;Ut([u({attribute:!1})],V.prototype,"application",2);V=Ut([wt("ace-wrapper")],V);var ge=Object.defineProperty,fe=Object.getOwnPropertyDescriptor,F=(s,t,e,i)=>{for(var r=i>1?void 0:i?fe(t,e):t,n=s.length-1,o;n>=0;n--)(o=s[n])&&(r=(i?o(t,e,r):o(r))||r);return i&&r&&ge(t,e,r),r};let S=class extends f{constructor(){super(),this.status="deactivated",this.addEventListener("environment-created",this.onEnvironmentCreated)}async connectedCallback(){super.connectedCallback(),await this.getGlobalEnvironment()}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("environment-created",this.onEnvironmentCreated)}async onEnvironmentCreated(s){this.widget=s.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const s=globalThis.widgets;s&&(this.widget=s.applications.find(t=>t.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return l;if(this.widget.renderStrategy===it.Trigger){const s=new x;return s.application=this.widget,s}return this.widget.render()}};S.styles=[P`
256
256
  :host {
257
257
  display: block;
258
258
  }
259
- `];J([u({attribute:!0})],S.prototype,"name",2);J([L()],S.prototype,"widget",2);J([L()],S.prototype,"status",2);S=J([F("ace-widget")],S);const ye=s=>{const t={};return Object.keys(s).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=s[e])}),t},ve=(s,t)=>{const e=ye(t);Object.entries(e).forEach(([i,r])=>{s.style.setProperty(i.replace("css-",""),r)})};class ot extends Ot(f){constructor(){super(...arguments),this.nodes=[]}render(){var t;return ve(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),R`${xt(this.nodes,e=>e)}`}}ot.styles=[P`
259
+ `];F([u({attribute:!0})],S.prototype,"name",2);F([D()],S.prototype,"widget",2);F([D()],S.prototype,"status",2);S=F([wt("ace-widget")],S);customElements.get("ace-trigger")||customElements.define("ace-trigger",x);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Ot);const $e=s=>{const t={};return Object.keys(s).forEach(e=>{e.indexOf("css-")>-1&&(t[e]=s[e])}),t},me=(s,t)=>{const e=$e(t);Object.entries(e).forEach(([i,r])=>{s.style.setProperty(i.replace("css-",""),r)})};class rt extends Pt(f){constructor(){super(...arguments),this.nodes=[]}render(){var t;return me(this.renderRoot.host,this.properties),this.renderRoot.host.style.setProperty("--columns",((t=this.properties.columns)==null?void 0:t.toString())||"1"),H`${bt(this.nodes,e=>e)}`}}rt.styles=[P`
260
260
  :host {
261
261
  height: 100%;
262
262
  display: grid;
@@ -265,4 +265,4 @@
265
265
  grid-template-rows: auto;
266
266
  grid-template-columns: repeat(var(--columns), 1fr);
267
267
  }
268
- `];exports.Area=ot;exports.default=ot;
268
+ `];exports.Area=rt;exports.default=rt;
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-6186125e.js")))};module.exports=r;
1
+ "use strict";const r=async e=>{e.registerComponent("area",Promise.resolve().then(()=>require("./area-23dc5b66.js")))};module.exports=r;
package/index.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  const o = async (e) => {
2
- e.registerComponent("area", import("./area-27c914b6.mjs"));
2
+ e.registerComponent("area", import("./area-09ae0a6d.mjs"));
3
3
  };
4
4
  export {
5
5
  o as default
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@telia-ace/widget-components-area-flamingo",
3
- "version": "1.1.12-rc.5",
3
+ "version": "1.1.12-rc.7",
4
4
  "dependencies": {
5
- "@telia-ace/widget-core-flamingo": "1.1.12-rc.5",
5
+ "@telia-ace/widget-core-flamingo": "1.1.12-rc.7",
6
6
  "lit": "^3.0.2"
7
7
  },
8
8
  "main": "./index.js",