@telia-ace/widget-components-widget-header-flamingo 1.1.8 → 1.1.9-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -19,7 +19,7 @@ const pt = (n, t, e, ...s) => {
19
19
  error: (e, ...s) => pt(t, "error", e, ...s)
20
20
  };
21
21
  };
22
- var q = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(q || {}), k = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(k || {});
22
+ var q = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(q || {}), C = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(C || {});
23
23
  const Pe = (n, t, e, s) => {
24
24
  try {
25
25
  const i = new t(e, s);
@@ -55,12 +55,12 @@ let Ce = class {
55
55
  let i;
56
56
  typeof e == "function" ? i = {
57
57
  scope: q.Widget,
58
- stage: k.Post,
58
+ stage: C.Post,
59
59
  defaultArgs: void 0,
60
60
  handlerResolver: e
61
61
  } : i = {
62
62
  scope: jt(e.scope, q.Widget),
63
- stage: jt(e.stage, k.Post),
63
+ stage: jt(e.stage, C.Post),
64
64
  defaultArgs: e.defaultArgs,
65
65
  handlerResolver: s
66
66
  };
@@ -81,19 +81,19 @@ const ce = (n) => {
81
81
  ce((n) => {
82
82
  n.createCommand(
83
83
  "types.register",
84
- { scope: q.Implementation, stage: k.Pre },
84
+ { scope: q.Implementation, stage: C.Pre },
85
85
  (t) => (e, s) => {
86
86
  t.container.get("$types")[e] = s;
87
87
  }
88
88
  ).createCommand(
89
89
  "type",
90
- { stage: k.Pre },
90
+ { stage: C.Pre },
91
91
  (t) => (e) => {
92
92
  t.container.register("$type", e);
93
93
  }
94
94
  ).createCommand(
95
95
  "settings",
96
- { stage: k.Pre, defaultArgs: [null] },
96
+ { stage: C.Pre, defaultArgs: [null] },
97
97
  (t) => (e) => {
98
98
  t.events.dispatch(
99
99
  "settings:change",
@@ -103,7 +103,7 @@ ce((n) => {
103
103
  }
104
104
  ).createCommand(
105
105
  "plugin",
106
- { stage: k.Pre },
106
+ { stage: C.Pre },
107
107
  (t) => (e, s, i) => {
108
108
  const { container: r } = t;
109
109
  let o = null, a = e, c = s;
@@ -160,7 +160,7 @@ ce((n) => {
160
160
  const ke = ce((n) => {
161
161
  n.createCommand(
162
162
  "ready",
163
- { scope: q.Implementation, stage: k.Pre },
163
+ { scope: q.Implementation, stage: C.Pre },
164
164
  (t) => (e) => {
165
165
  const { container: s } = t, i = s.owner;
166
166
  s.get("bootstrapping").ready ? e(i) : i.events.subscribeOnce("bootstrap:ready", () => {
@@ -185,7 +185,7 @@ const ut = (n, t, e, ...s) => {
185
185
  console.error(i, ...s);
186
186
  break;
187
187
  }
188
- }, y = (n) => {
188
+ }, v = (n) => {
189
189
  const t = n.container || n;
190
190
  return {
191
191
  info: (e, ...s) => ut(t, "info", e, ...s),
@@ -294,7 +294,7 @@ class Et {
294
294
  */
295
295
  registerAsync(t, e) {
296
296
  const s = g(this).resolvers.get(t);
297
- s && !s.async && process.env.NODE_ENV !== "production" && y(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${t}') previously used by a non-async resolver.`);
297
+ s && !s.async && process.env.NODE_ENV !== "production" && v(this).warn(`Mismatching resolver type. You are registering an async resolver with a key ('${t}') previously used by a non-async resolver.`);
298
298
  const i = new Oe(t, e, s, this);
299
299
  return g(this).resolvers.set(t, i), i.id;
300
300
  }
@@ -305,7 +305,7 @@ class Et {
305
305
  */
306
306
  registerFactory(t, e) {
307
307
  const s = g(this).resolvers.get(t);
308
- s && s.async && process.env.NODE_ENV !== "production" && y(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
308
+ s && s.async && process.env.NODE_ENV !== "production" && v(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
309
309
  const i = new Ne(t, e, s, this);
310
310
  return g(this).resolvers.set(t, i), i.id;
311
311
  }
@@ -316,7 +316,7 @@ class Et {
316
316
  */
317
317
  register(t, e) {
318
318
  const s = g(this).resolvers.get(t);
319
- s && s.async && process.env.NODE_ENV !== "production" && y(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
319
+ s && s.async && process.env.NODE_ENV !== "production" && v(this).warn(`Mismatching resolver type. You are registering a non-async resolver with a key ('${t}') previously used by an async resolver.`);
320
320
  const i = new Se(t, e, s, this);
321
321
  return g(this).resolvers.set(t, i), i.id;
322
322
  }
@@ -327,7 +327,7 @@ class Et {
327
327
  get(t) {
328
328
  const e = g(this).resolvers.get(t);
329
329
  if (e)
330
- return e.async && process.env.NODE_ENV !== "production" && y(this).warn(`You are retrieving an async value (with key '${t}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`), e.resolve();
330
+ return e.async && process.env.NODE_ENV !== "production" && v(this).warn(`You are retrieving an async value (with key '${t}') by the non-async function 'container.get(key)'. This will not be supported in future versions. Use 'container.getAsync(key) instead.'`), e.resolve();
331
331
  if (this.parent)
332
332
  return this.parent.get(t);
333
333
  }
@@ -339,7 +339,7 @@ class Et {
339
339
  const e = g(this).resolvers.get(t);
340
340
  if (e) {
341
341
  if (!e.async)
342
- throw process.env.NODE_ENV !== "production" && y(this).warn(`You are retrieving a non-async value (with key '${t}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`), "Mismatching resolver type";
342
+ throw process.env.NODE_ENV !== "production" && v(this).warn(`You are retrieving a non-async value (with key '${t}') by the async function 'container.getAsync(key)'.Use 'container.get(key) instead.'`), "Mismatching resolver type";
343
343
  return e.resolve();
344
344
  }
345
345
  return this.parent ? this.parent.getAsync(t) : Promise.resolve(void 0);
@@ -375,9 +375,9 @@ let zt = class {
375
375
  this.cancelable && (this.defaultPrevented = !0);
376
376
  }
377
377
  };
378
- const w = L(), Dt = (n, t) => [].concat(
379
- w(n).listenerLookup.get(t.toLowerCase()) || [],
380
- w(n).listenerLookup.get("*") || []
378
+ const b = L(), Dt = (n, t) => [].concat(
379
+ b(n).listenerLookup.get(t.toLowerCase()) || [],
380
+ b(n).listenerLookup.get("*") || []
381
381
  ), It = (n, t, e, s) => {
382
382
  let i, r;
383
383
  return t instanceof zt ? (i = t, r = t.type) : (i = new zt(t, n.target, !!e.cancelable, !!e.bubbles), r = t), { event: i, type: r, async: s };
@@ -389,20 +389,20 @@ let Te = class he {
389
389
  * @param parent Parent Event Manager instance.
390
390
  */
391
391
  constructor(t, e) {
392
- this.target = t, this.parent = e, w(this).listenerLookup = /* @__PURE__ */ new Map(), w(this).children = [];
392
+ this.target = t, this.parent = e, b(this).listenerLookup = /* @__PURE__ */ new Map(), b(this).children = [];
393
393
  }
394
394
  /**
395
395
  * Clears registered event listeners in this `EventManager` as well as in any children.
396
396
  */
397
397
  clear() {
398
- w(this).listenerLookup.clear(), w(this).children.forEach((t) => t.clear());
398
+ b(this).listenerLookup.clear(), b(this).children.forEach((t) => t.clear());
399
399
  }
400
400
  /**
401
401
  * Detaches this `EventManager` instance from its parent, allowing it to be garbage-collected.
402
402
  */
403
403
  detach() {
404
404
  if (this.parent) {
405
- const t = w(this.parent).children, e = t.indexOf(this);
405
+ const t = b(this.parent).children, e = t.indexOf(this);
406
406
  e > -1 && t.splice(e, 1);
407
407
  }
408
408
  }
@@ -412,7 +412,7 @@ let Te = class he {
412
412
  * @param listener Listener for the event.
413
413
  */
414
414
  subscribe(t, e, s) {
415
- const i = w(this).listenerLookup, r = t.toLowerCase();
415
+ const i = b(this).listenerLookup, r = t.toLowerCase();
416
416
  return i.has(r) || i.set(r, []), i.get(r).push(e), () => this.unsubscribe(t, e);
417
417
  }
418
418
  /**
@@ -429,7 +429,7 @@ let Te = class he {
429
429
  * @param listener Event listener to remove.
430
430
  */
431
431
  unsubscribe(t, e) {
432
- const s = w(this).listenerLookup.get(t.toLowerCase());
432
+ const s = b(this).listenerLookup.get(t.toLowerCase());
433
433
  if (s) {
434
434
  const i = s.indexOf(e);
435
435
  i > -1 && s.splice(i, 1);
@@ -475,15 +475,15 @@ let Te = class he {
475
475
  */
476
476
  createChild(t) {
477
477
  const e = new he(t, this);
478
- return w(this).children.push(e), e;
478
+ return b(this).children.push(e), e;
479
479
  }
480
480
  };
481
- const X = (n, t, e) => {
481
+ const G = (n, t, e) => {
482
482
  const s = n.get("$plugins").map((i) => {
483
483
  try {
484
484
  return i.invoke(t, e);
485
485
  } catch (r) {
486
- y(n).error("An error occured when invoking a plugin.", i, r);
486
+ v(n).error("An error occured when invoking a plugin.", i, r);
487
487
  }
488
488
  });
489
489
  return Promise.all(s);
@@ -495,16 +495,16 @@ let Me = class {
495
495
  createInstance() {
496
496
  if (!this.widget.container.get("$instance")) {
497
497
  const t = this.widget.container.get("$types"), e = this.widget.container.get("$type");
498
- !e && y(this).error("Unable to create widget. No type is specified.");
498
+ !e && v(this).error("Unable to create widget. No type is specified.");
499
499
  const s = t[e];
500
- !s && y(this).error(`Unable to create widget. Type '${e}' is not registered.`), this.widget.events.dispatch("widget:create-instance", {}, { bubbles: !0 });
500
+ !s && v(this).error(`Unable to create widget. Type '${e}' is not registered.`), this.widget.events.dispatch("widget:create-instance", {}, { bubbles: !0 });
501
501
  try {
502
502
  this.widget.container.register(
503
503
  "$instance",
504
504
  new s(this.container)
505
505
  );
506
506
  } catch (i) {
507
- y(this).error("Unable to create widget type.", i);
507
+ v(this).error("Unable to create widget type.", i);
508
508
  }
509
509
  this.widget.events.dispatch("widget:instance-created", {}, { bubbles: !0 });
510
510
  }
@@ -519,7 +519,7 @@ let Me = class {
519
519
  return this.initialized = this.initialized || (() => {
520
520
  const e = this.container.get("$instance"), s = e.initialize || (() => {
521
521
  });
522
- return this.initialized = Promise.resolve(s.call(e, t)).then(() => X(this.container, "initialize", t)).then(() => {
522
+ return this.initialized = Promise.resolve(s.call(e, t)).then(() => G(this.container, "initialize", t)).then(() => {
523
523
  });
524
524
  })();
525
525
  }
@@ -531,7 +531,7 @@ let Me = class {
531
531
  */
532
532
  activate(t) {
533
533
  return (this.initialized || this.initialize()).then(() => {
534
- this.activated = this.activated || (() => X(this.container, "activate").then(() => {
534
+ this.activated = this.activated || (() => G(this.container, "activate").then(() => {
535
535
  const e = this.container.get("$instance");
536
536
  return this.activated = e.activate(t);
537
537
  }))();
@@ -540,7 +540,7 @@ let Me = class {
540
540
  deactivate() {
541
541
  const t = this.container.get("$instance"), e = t.deactivate || (() => {
542
542
  });
543
- return X(this.container, "deactivate").then(() => Promise.resolve(e.call(t))).then(() => {
543
+ return G(this.container, "deactivate").then(() => Promise.resolve(e.call(t))).then(() => {
544
544
  this.initialized = null, this.activated = null;
545
545
  }).then(() => {
546
546
  });
@@ -551,7 +551,7 @@ let Me = class {
551
551
  * @param args Command arguments
552
552
  */
553
553
  invoke(t, ...e) {
554
- return X(this.container, "invoke", { command: t, args: e }).then(() => {
554
+ return G(this.container, "invoke", { command: t, args: e }).then(() => {
555
555
  const s = this.container.get("$instance");
556
556
  if (s[t])
557
557
  return s[t].apply(s, e);
@@ -561,7 +561,7 @@ let Me = class {
561
561
  });
562
562
  }
563
563
  };
564
- const H = (n, t) => {
564
+ const U = (n, t) => {
565
565
  if (!t)
566
566
  return !0;
567
567
  if (typeof t == "string") {
@@ -576,26 +576,26 @@ const H = (n, t) => {
576
576
  }, Ue = (n, t) => {
577
577
  if (typeof t == "function")
578
578
  return t(n);
579
- const e = typeof t == "string" ? Le(t) : t;
580
- return !(!H(n.implementation.tenant || "", e.tenant || "") || !H(n.implementation.name, e.implementation || "") || !H(n.name, e.widget || "") || !H(n.container.get("$type"), e.type || ""));
579
+ const e = typeof t == "string" ? Re(t) : t;
580
+ return !(!U(n.implementation.tenant || "", e.tenant || "") || !U(n.implementation.name, e.implementation || "") || !U(n.name, e.widget || "") || !U(n.container.get("$type"), e.type || ""));
581
581
  }, He = (n, t) => {
582
582
  if (typeof t == "function")
583
583
  return t(n);
584
584
  const e = typeof t == "string" ? je(t) : t;
585
- return !(!H(n.tenant || "", e.tenant || "") || !H(n.name, e.implementation || ""));
586
- }, le = (n) => (t) => Ue(t, n), Re = (n) => (t) => He(t, n), E = (n) => n instanceof Array && n.length === 1 ? n[0] : n, Le = (n) => {
585
+ return !(!U(n.tenant || "", e.tenant || "") || !U(n.name, e.implementation || ""));
586
+ }, le = (n) => (t) => Ue(t, n), Le = (n) => (t) => He(t, n), A = (n) => n instanceof Array && n.length === 1 ? n[0] : n, Re = (n) => {
587
587
  const t = {}, e = n.split(":");
588
- return e.length === 1 ? t.widget = E(e[0].split(",")) : e.length === 2 ? (t.implementation = E(e[0].split(",")), t.widget = E(e[1].split(","))) : (t.tenant = E(e[0].split(",")), t.implementation = E(e[1].split(",")), t.widget = E(e[2].split(","))), t;
588
+ return e.length === 1 ? t.widget = A(e[0].split(",")) : e.length === 2 ? (t.implementation = A(e[0].split(",")), t.widget = A(e[1].split(","))) : (t.tenant = A(e[0].split(",")), t.implementation = A(e[1].split(",")), t.widget = A(e[2].split(","))), t;
589
589
  }, je = (n) => {
590
590
  const t = {}, e = n.split(":");
591
- return e.length === 1 ? t.implementation = E(e[0].split(",")) : (t.tenant = E(e[0].split(",")), t.implementation = E(e[1].split(","))), t;
591
+ return e.length === 1 ? t.implementation = A(e[0].split(",")) : (t.tenant = A(e[0].split(",")), t.implementation = A(e[1].split(","))), t;
592
592
  }, it = L(), Bt = (n, t, e) => n.filter((s) => s.stage === t && le(s.selector)(e));
593
593
  function ze(n) {
594
594
  const t = n.container.get("$environment");
595
595
  let e = it(t).configurationCache;
596
596
  e && (e = e.filter((s) => s[0] !== n), it(t).configurationCache = e);
597
597
  }
598
- var nt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(nt || {}), x = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(x || {});
598
+ var nt = /* @__PURE__ */ ((n) => (n.Implementation = "implementation", n.Widget = "widget", n))(nt || {}), E = /* @__PURE__ */ ((n) => (n.Pre = "pre", n.Post = "post", n))(E || {});
599
599
  const pe = (n, t, e) => (Object.keys(t).forEach((s) => {
600
600
  const i = t[s];
601
601
  if (typeof i == "function") {
@@ -690,12 +690,12 @@ let Ve = class {
690
690
  let i;
691
691
  typeof e == "function" ? i = {
692
692
  scope: nt.Widget,
693
- stage: x.Post,
693
+ stage: E.Post,
694
694
  defaultArgs: void 0,
695
695
  handlerResolver: e
696
696
  } : i = {
697
697
  scope: Wt(e.scope, nt.Widget),
698
- stage: Wt(e.stage, x.Post),
698
+ stage: Wt(e.stage, E.Post),
699
699
  defaultArgs: e.defaultArgs,
700
700
  handlerResolver: s
701
701
  };
@@ -715,19 +715,19 @@ const de = (n) => {
715
715
  }, We = de((n) => {
716
716
  n.createCommand(
717
717
  "types.register",
718
- { scope: nt.Implementation, stage: x.Pre },
718
+ { scope: nt.Implementation, stage: E.Pre },
719
719
  (t) => (e, s) => {
720
720
  t.container.get("$types")[e] = s;
721
721
  }
722
722
  ).createCommand(
723
723
  "type",
724
- { stage: x.Pre },
724
+ { stage: E.Pre },
725
725
  (t) => (e) => {
726
726
  t.container.register("$type", e);
727
727
  }
728
728
  ).createCommand(
729
729
  "settings",
730
- { stage: x.Pre, defaultArgs: [null] },
730
+ { stage: E.Pre, defaultArgs: [null] },
731
731
  (t) => (e) => {
732
732
  t.events.dispatch(
733
733
  "settings:change",
@@ -737,7 +737,7 @@ const de = (n) => {
737
737
  }
738
738
  ).createCommand(
739
739
  "plugin",
740
- { stage: x.Pre },
740
+ { stage: E.Pre },
741
741
  (t) => (e, s, i) => {
742
742
  const { container: r } = t;
743
743
  let o = null, a = e, c = s;
@@ -758,7 +758,7 @@ const de = (n) => {
758
758
  );
759
759
  r.get("$plugins").push(d), h && d.invoke("initialize", null);
760
760
  } catch (d) {
761
- y(t).warn("Error when initializing plugin", d);
761
+ v(t).warn("Error when initializing plugin", d);
762
762
  }
763
763
  };
764
764
  t.container.get("$instance") ? l(!0) : t.events.subscribeOnce("widget:instance-created", () => l(!1));
@@ -790,9 +790,9 @@ const de = (n) => {
790
790
  t.container.register("csp", e);
791
791
  }
792
792
  );
793
- }), Fe = We;
794
- function qe(n, t, e = []) {
795
- const s = [Fe].concat(e), i = Ie(
793
+ }), qe = We;
794
+ function Fe(n, t, e = []) {
795
+ const s = [qe].concat(e), i = Ie(
796
796
  t,
797
797
  s
798
798
  );
@@ -818,18 +818,18 @@ let Ye = class {
818
818
  });
819
819
  }
820
820
  };
821
- const tt = /* @__PURE__ */ new WeakMap();
821
+ const X = /* @__PURE__ */ new WeakMap();
822
822
  function Qe(n) {
823
- return tt.has(n) || tt.set(n, new Ye()), (t) => new Promise((e, s) => {
824
- const i = tt.get(n);
823
+ return X.has(n) || X.set(n, new Ye()), (t) => new Promise((e, s) => {
824
+ const i = X.get(n);
825
825
  i.add(t, e, s, () => {
826
- i.tasks.length || tt.delete(n);
826
+ i.tasks.length || X.delete(n);
827
827
  });
828
828
  });
829
829
  }
830
- const Ft = (n) => typeof n < "u", D = (n, t) => {
830
+ const qt = (n) => typeof n < "u", z = (n, t) => {
831
831
  n.events.dispatch("widget:state-change", { state: t }, { bubbles: !0 }), n.state = t, n.events.dispatch("widget:state-changed", {}, { bubbles: !0 });
832
- }, b = L(), Ze = (n) => {
832
+ }, $ = L(), Ze = (n) => {
833
833
  const { container: t, events: e } = n;
834
834
  t.get("$controller") || (t.register("$controller", new Me(t)), e.dispatch("widget:controller-created", {}, { bubbles: !0 }));
835
835
  };
@@ -841,9 +841,9 @@ class Je {
841
841
  * @param configuration Configuration for the widget.
842
842
  */
843
843
  constructor(t, e, s) {
844
- this.state = "deactivated", this.name = t, this.implementation = e, this.container = e.container.createChild(this, t), this.events = e.events.createChild(this), b(this).subscriptions = [], s && e.configure((i) => {
844
+ this.state = "deactivated", this.name = t, this.implementation = e, this.container = e.container.createChild(this, t), this.events = e.events.createChild(this), $(this).subscriptions = [], s && e.configure((i) => {
845
845
  const r = i(t);
846
- Ft(s.type) && r.type(s.type), Ft(s.settings) && r.settings(s.settings), s.plugins && Object.keys(s.plugins).forEach((o) => {
846
+ qt(s.type) && r.type(s.type), qt(s.settings) && r.settings(s.settings), s.plugins && Object.keys(s.plugins).forEach((o) => {
847
847
  var a;
848
848
  const c = (a = s.plugins) == null ? void 0 : a[o];
849
849
  r.plugin(o, c);
@@ -856,25 +856,25 @@ class Je {
856
856
  */
857
857
  load() {
858
858
  return Qe(this)(() => {
859
- b(this).deactivatedPromise = null;
859
+ $(this).deactivatedPromise = null;
860
860
  const t = this.state === "deactivated";
861
- t && (D(
861
+ t && (z(
862
862
  this,
863
863
  "activating"
864
864
  /* Activating */
865
- ), this.container.register("$widget", this), this.container.register("$controller", null), this.container.register("$plugins", []), this.container.register("$type", null), this.container.register("$instance", null)), D(
865
+ ), this.container.register("$widget", this), this.container.register("$controller", null), this.container.register("$plugins", []), this.container.register("$type", null), this.container.register("$instance", null)), z(
866
866
  this,
867
867
  "loading"
868
868
  /* Loading */
869
869
  );
870
- const e = this.implementation.instructions, s = Bt(e, x.Pre, this);
870
+ const e = this.implementation.instructions, s = Bt(e, E.Pre, this);
871
871
  return Promise.all(s.map((i) => i.handler(this))).then(() => {
872
872
  Ze(this);
873
- const i = Bt(e, x.Post, this);
873
+ const i = Bt(e, E.Post, this);
874
874
  return Promise.all(i.map((r) => r.handler(this))).then(() => {
875
875
  t && this.container.get("$controller").initialize();
876
876
  });
877
- }).then(() => (D(
877
+ }).then(() => (z(
878
878
  this,
879
879
  "activated"
880
880
  /* Activated */
@@ -886,7 +886,7 @@ class Je {
886
886
  * @param data Activation data
887
887
  */
888
888
  activate(t) {
889
- b(this).subscriptions.push(
889
+ $(this).subscriptions.push(
890
890
  this.implementation.events.subscribe("implementation:configured", () => {
891
891
  [
892
892
  "activated",
@@ -896,8 +896,8 @@ class Je {
896
896
  ].indexOf(this.state) > -1 && this.load();
897
897
  })
898
898
  );
899
- const e = b(this).activatedPromise;
900
- return e ? (process.env.NODE_ENV !== "production" && y(this).warn(`Widget '${this.name}' has already been activated. The passed arguments for this activation will be discarded.`, t), e) : b(this).activatedPromise = this.load().then(() => this.container.get("$controller").activate(t));
899
+ const e = $(this).activatedPromise;
900
+ return e ? (process.env.NODE_ENV !== "production" && v(this).warn(`Widget '${this.name}' has already been activated. The passed arguments for this activation will be discarded.`, t), e) : $(this).activatedPromise = this.load().then(() => this.container.get("$controller").activate(t));
901
901
  }
902
902
  /**
903
903
  * Invokes a command on a widget. If the widget isn't activate the invocation
@@ -906,8 +906,8 @@ class Je {
906
906
  * @param args Command arguments.
907
907
  */
908
908
  invoke(t, ...e) {
909
- const s = b(this).activatedPromise, i = (r, ...o) => s.then(this.load).then(() => this.container.get("$controller").invoke(r, ...o));
910
- return s ? i(t, ...e) : (process.env.NODE_ENV !== "production" && y(this).warn("You are invoking a command on a deactivated widget. The invocation will be queued until the widget is activated.", this), new Promise((r) => {
909
+ const s = $(this).activatedPromise, i = (r, ...o) => s.then(this.load).then(() => this.container.get("$controller").invoke(r, ...o));
910
+ return s ? i(t, ...e) : (process.env.NODE_ENV !== "production" && v(this).warn("You are invoking a command on a deactivated widget. The invocation will be queued until the widget is activated.", this), new Promise((r) => {
911
911
  const o = this.events.subscribe("widget:state-changed", () => {
912
912
  this.state === "activated" && (o(), r(i(t, ...e)));
913
913
  });
@@ -918,12 +918,12 @@ class Je {
918
918
  * `EventManager`.
919
919
  */
920
920
  deactivate() {
921
- return b(this).deactivatedPromise || (this.state === "deactivated" ? Promise.resolve() : (D(
921
+ return $(this).deactivatedPromise || (this.state === "deactivated" ? Promise.resolve() : (z(
922
922
  this,
923
923
  "deactivating"
924
924
  /* Deactivating */
925
- ), b(this).deactivatedPromise = this.container.get("$controller").deactivate().then(() => (b(this).activatedPromise = null, b(this).subscriptions.forEach((e) => e()), b(this).subscriptions = [], this.container.clear().then(() => {
926
- this.events.clear(), ze(this), D(
925
+ ), $(this).deactivatedPromise = this.container.get("$controller").deactivate().then(() => ($(this).activatedPromise = null, $(this).subscriptions.forEach((e) => e()), $(this).subscriptions = [], this.container.clear().then(() => {
926
+ this.events.clear(), ze(this), z(
927
927
  this,
928
928
  "deactivated"
929
929
  /* Deactivated */
@@ -931,7 +931,7 @@ class Je {
931
931
  })))));
932
932
  }
933
933
  }
934
- const qt = L();
934
+ const Ft = L();
935
935
  class Ke {
936
936
  /**
937
937
  * Creates a new Implementation instance.
@@ -940,7 +940,7 @@ class Ke {
940
940
  * @param configurationApiExtensions Optional configuration API extensions.
941
941
  */
942
942
  constructor(t, e, s = []) {
943
- this.instructions = [], this.widgets = /* @__PURE__ */ new Map(), this.name = t.name, this.tenant = t.tenant, this.environment = e, this.container = e.container.createChild(this, this.name), this.events = e.events.createChild(this), this.container.register("$types", {}), qt(this).configurationApiExtensions = s;
943
+ this.instructions = [], this.widgets = /* @__PURE__ */ new Map(), this.name = t.name, this.tenant = t.tenant, this.environment = e, this.container = e.container.createChild(this, this.name), this.events = e.events.createChild(this), this.container.register("$types", {}), Ft(this).configurationApiExtensions = s;
944
944
  }
945
945
  /**
946
946
  * Loads all widgets in the implementation.
@@ -954,7 +954,7 @@ class Ke {
954
954
  * @param configFn Callback function for configuration.
955
955
  */
956
956
  configure(t) {
957
- return qe(t, this, qt(this).configurationApiExtensions), this.events.dispatch(
957
+ return Fe(t, this, Ft(this).configurationApiExtensions), this.events.dispatch(
958
958
  "implementation:configured",
959
959
  { implementation: this },
960
960
  { bubbles: !0 }
@@ -1011,7 +1011,7 @@ const xt = "#____version____#", gt = L(), Xe = (n) => n.tenant ? `${n.name}:${n.
1011
1011
  }), i;
1012
1012
  },
1013
1013
  le
1014
- ), this.implementations = new Yt([], Re), this.name = t, this.container = new Et(this, t), this.events = new Te(this), this.container.register("$version", xt), this.container.register("$environment", this), this.container.register("$environmentOptions", s), gt(this).configurationApiExtensions = e;
1014
+ ), this.implementations = new Yt([], Le), this.name = t, this.container = new Et(this, t), this.events = new Te(this), this.container.register("$version", xt), this.container.register("$environment", this), this.container.register("$environmentOptions", s), gt(this).configurationApiExtensions = e;
1015
1015
  }
1016
1016
  /**
1017
1017
  * Creates an implementation based on the provided configuration.
@@ -1021,7 +1021,7 @@ const xt = "#____version____#", gt = L(), Xe = (n) => n.tenant ? `${n.name}:${n.
1021
1021
  const e = Xe(t);
1022
1022
  let s = this.implementations.find(e);
1023
1023
  if (s)
1024
- return process.env.NODE_ENV !== "production" && y(s).warn(`Implementation "${e}" already exist on current environment.`), s;
1024
+ return process.env.NODE_ENV !== "production" && v(s).warn(`Implementation "${e}" already exist on current environment.`), s;
1025
1025
  const i = gt(this).configurationApiExtensions;
1026
1026
  return s = Ge(
1027
1027
  t,
@@ -1055,22 +1055,22 @@ const xt = "#____version____#", gt = L(), Xe = (n) => n.tenant ? `${n.name}:${n.
1055
1055
  };
1056
1056
  let me = ge;
1057
1057
  me.version = xt;
1058
- const at = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e), B = class {
1058
+ const at = (n, t, ...e) => typeof t == "string" ? n(`[humany] ${t}`, ...e) : n(t, ...e), I = class {
1059
1059
  constructor() {
1060
- this.keys = [], this.log = (t, ...e) => this.lookup(t, () => B.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => B.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => B.error(...e)), this.info = (t, ...e) => this.lookup(t, () => B.info(...e));
1060
+ this.keys = [], this.log = (t, ...e) => this.lookup(t, () => I.log(...e)), this.warn = (t, ...e) => this.lookup(t, () => I.warn(...e)), this.error = (t, ...e) => this.lookup(t, () => I.error(...e)), this.info = (t, ...e) => this.lookup(t, () => I.info(...e));
1061
1061
  }
1062
1062
  lookup(t, e) {
1063
1063
  this.keys.indexOf(t) === -1 && (this.keys.push(t), e());
1064
1064
  }
1065
1065
  };
1066
- let J = B;
1067
- J.log = (...n) => at(console.log, ...n);
1068
- J.warn = (...n) => at(console.warn, ...n);
1069
- J.error = (...n) => at(console.error, ...n);
1070
- J.info = (...n) => at(console.info, ...n);
1071
- const P = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
1066
+ let Z = I;
1067
+ Z.log = (...n) => at(console.log, ...n);
1068
+ Z.warn = (...n) => at(console.warn, ...n);
1069
+ Z.error = (...n) => at(console.error, ...n);
1070
+ Z.info = (...n) => at(console.info, ...n);
1071
+ const x = () => Math.floor((1 + Math.random()) * 65536).toString(16).substring(1);
1072
1072
  function Pt() {
1073
- return P() + P() + "-" + P() + "-" + P() + "-" + P() + "-" + P() + P() + P();
1073
+ return x() + x() + "-" + x() + "-" + x() + "-" + x() + "-" + x() + x() + x();
1074
1074
  }
1075
1075
  var ts = Object.defineProperty, es = Object.defineProperties, ss = Object.getOwnPropertyDescriptors, Qt = Object.getOwnPropertySymbols, is = Object.prototype.hasOwnProperty, ns = Object.prototype.propertyIsEnumerable, Zt = (n, t, e) => t in n ? ts(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, wt = (n, t) => {
1076
1076
  for (var e in t || (t = {}))
@@ -1239,8 +1239,8 @@ let kt = class {
1239
1239
  const { data: u = {}, options: d, cancelled: f } = p;
1240
1240
  return Promise.resolve(
1241
1241
  f ? {} : o.fn(u, d, h)
1242
- ).then((z) => {
1243
- i[l.id] = z;
1242
+ ).then((j) => {
1243
+ i[l.id] = j;
1244
1244
  });
1245
1245
  });
1246
1246
  })
@@ -1289,7 +1289,7 @@ let Jt = class {
1289
1289
  }
1290
1290
  mount(t, e) {
1291
1291
  let s = t.get("mounted-nodes");
1292
- return s || (s = /* @__PURE__ */ new Map(), t.register("mounted-nodes", s)), s.has(this) ? (process.env.NODE_ENV !== "production" && J.error("Trying to mount an already mounted component node.", this), () => {
1292
+ return s || (s = /* @__PURE__ */ new Map(), t.register("mounted-nodes", s)), s.has(this) ? (process.env.NODE_ENV !== "production" && Z.error("Trying to mount an already mounted component node.", this), () => {
1293
1293
  }) : (this.events.dispatch("components:node-mounted", { node: this }), this.mountCount === 0 && (this.mountCount = this.mountCount + 1, this.events.dispatch("components:node-enter", { node: this })), () => {
1294
1294
  s.delete(this), this.events.dispatch("components:node-unmounted", { node: this }), this.mountCount = this.mountCount - 1, this.mountCount === 0 && this.events.dispatch("components:node-exit", { node: this });
1295
1295
  });
@@ -1422,44 +1422,44 @@ const ds = (n) => {
1422
1422
  for (; t.parent; )
1423
1423
  e = e + 1, t = t.parent;
1424
1424
  return e;
1425
- }, us = (n) => n.map(([t, e]) => [ds(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), ft = (n) => n instanceof Date ? !1 : n && typeof n == "object" && !Array.isArray(n), A = (n, ...t) => {
1425
+ }, us = (n) => n.map(([t, e]) => [ds(t), t, e]).sort(([t], [e]) => t - e).map(([, t, e]) => [t, e]), ft = (n) => n instanceof Date ? !1 : n && typeof n == "object" && !Array.isArray(n), _ = (n, ...t) => {
1426
1426
  if (!t.length)
1427
1427
  return n;
1428
1428
  const e = t.shift();
1429
1429
  if (ft(n) && ft(e))
1430
1430
  for (const s in e)
1431
- ft(e[s]) ? (n[s] || Object.assign(n, { [s]: {} }), A(n[s], e[s])) : Object.assign(n, { [s]: e[s] });
1432
- return A(n, ...t);
1431
+ ft(e[s]) ? (n[s] || Object.assign(n, { [s]: {} }), _(n[s], e[s])) : Object.assign(n, { [s]: e[s] });
1432
+ return _(n, ...t);
1433
1433
  }, gs = (n, t) => !n || n === "all" ? !0 : n.some((e) => t.indexOf(e) > -1), ms = (n, t) => {
1434
1434
  let e = [], s = [], i;
1435
1435
  const r = () => {
1436
1436
  process.env.NODE_ENV !== "production" && console.time("state-processor.flush");
1437
1437
  const a = /* @__PURE__ */ new Map(), c = us(e.map((h, p) => [h, s[p]])), l = (h, p) => {
1438
1438
  var u;
1439
- const d = a.get(h) || {}, f = p.context && !d.context, z = p.properties && !d.properties, ht = p.layout && !d.layout;
1439
+ const d = a.get(h) || {}, f = p.context && !d.context, j = p.properties && !d.properties, ht = p.layout && !d.layout;
1440
1440
  a.set(h, {
1441
1441
  context: d.context || f,
1442
- properties: d.properties || z,
1442
+ properties: d.properties || j,
1443
1443
  layout: d.layout || ht
1444
- }), z && (h.attributes.properties = {}), ht && (h.attributes.layout = {}), f && (h.attributes.context = A({}, (u = h.parent) == null ? void 0 : u.attributes.context));
1445
- const Ht = [], Rt = [], Lt = [];
1446
- if (h.changesets.forEach((_) => {
1447
- const [$, lt] = _;
1448
- gs(lt.breakpoints, n.breakpoints) && (z && (typeof $.properties == "function" ? Ht.push(
1449
- $.properties
1450
- ) : A(h.attributes.properties, $.properties)), ht && (typeof $.layout == "function" ? Rt.push($.layout) : A(h.attributes.layout, $.layout)), f && (typeof $.context == "function" ? Lt.push($.context) : A(h.attributes.context, $.context)));
1451
- }), Ht.forEach((_) => {
1452
- A(h.attributes.properties, _(h.attributes.properties));
1453
- }), Rt.forEach((_) => {
1454
- A(h.attributes.layout, _(h.attributes.layout));
1455
- }), Lt.forEach((_) => {
1456
- A(h.attributes.context, _(h.attributes.context));
1444
+ }), j && (h.attributes.properties = {}), ht && (h.attributes.layout = {}), f && (h.attributes.context = _({}, (u = h.parent) == null ? void 0 : u.attributes.context));
1445
+ const Ht = [], Lt = [], Rt = [];
1446
+ if (h.changesets.forEach((w) => {
1447
+ const [y, lt] = w;
1448
+ gs(lt.breakpoints, n.breakpoints) && (j && (typeof y.properties == "function" ? Ht.push(
1449
+ y.properties
1450
+ ) : _(h.attributes.properties, y.properties)), ht && (typeof y.layout == "function" ? Lt.push(y.layout) : _(h.attributes.layout, y.layout)), f && (typeof y.context == "function" ? Rt.push(y.context) : _(h.attributes.context, y.context)));
1451
+ }), Ht.forEach((w) => {
1452
+ _(h.attributes.properties, w(h.attributes.properties));
1453
+ }), Lt.forEach((w) => {
1454
+ _(h.attributes.layout, w(h.attributes.layout));
1455
+ }), Rt.forEach((w) => {
1456
+ _(h.attributes.context, w(h.attributes.context));
1457
1457
  }), f || p.recursive) {
1458
- const _ = n.getBranch(h), $ = p.recursive ? p : {
1458
+ const w = n.getBranch(h), y = p.recursive ? p : {
1459
1459
  context: !!f
1460
1460
  };
1461
- h.getChildren(_).forEach((lt) => {
1462
- l(lt, $);
1461
+ h.getChildren(w).forEach((lt) => {
1462
+ l(lt, y);
1463
1463
  });
1464
1464
  }
1465
1465
  };
@@ -1775,7 +1775,7 @@ const bs = (n) => new $e(typeof n == "string" ? n : n + "", void 0, Nt), ws = (n
1775
1775
  * Copyright 2017 Google LLC
1776
1776
  * SPDX-License-Identifier: BSD-3-Clause
1777
1777
  */
1778
- const { is: As, defineProperty: Es, getOwnPropertyDescriptor: xs, getOwnPropertyNames: Ps, getOwnPropertySymbols: Cs, getPrototypeOf: ks } = Object, O = globalThis, Xt = O.trustedTypes, Os = Xt ? Xt.emptyScript : "", vt = O.reactiveElementPolyfillSupport, V = (n, t) => n, rt = { toAttribute(n, t) {
1778
+ const { is: As, defineProperty: Es, getOwnPropertyDescriptor: xs, getOwnPropertyNames: Ps, getOwnPropertySymbols: Cs, getPrototypeOf: ks } = Object, k = globalThis, Xt = k.trustedTypes, Os = Xt ? Xt.emptyScript : "", vt = k.reactiveElementPolyfillSupport, B = (n, t) => n, rt = { toAttribute(n, t) {
1779
1779
  switch (t) {
1780
1780
  case Boolean:
1781
1781
  n = n ? Os : null;
@@ -1804,8 +1804,8 @@ const { is: As, defineProperty: Es, getOwnPropertyDescriptor: xs, getOwnProperty
1804
1804
  }
1805
1805
  return e;
1806
1806
  } }, Tt = (n, t) => !As(n, t), te = { attribute: !0, type: String, converter: rt, reflect: !1, hasChanged: Tt };
1807
- Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), O.litPropertyMetadata ?? (O.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1808
- class U extends HTMLElement {
1807
+ Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), k.litPropertyMetadata ?? (k.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
1808
+ class M extends HTMLElement {
1809
1809
  static addInitializer(t) {
1810
1810
  this._$Ei(), (this.l ?? (this.l = [])).push(t);
1811
1811
  }
@@ -1835,15 +1835,15 @@ class U extends HTMLElement {
1835
1835
  return this.elementProperties.get(t) ?? te;
1836
1836
  }
1837
1837
  static _$Ei() {
1838
- if (this.hasOwnProperty(V("elementProperties")))
1838
+ if (this.hasOwnProperty(B("elementProperties")))
1839
1839
  return;
1840
1840
  const t = ks(this);
1841
1841
  t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
1842
1842
  }
1843
1843
  static finalize() {
1844
- if (this.hasOwnProperty(V("finalized")))
1844
+ if (this.hasOwnProperty(B("finalized")))
1845
1845
  return;
1846
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(V("properties"))) {
1846
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(B("properties"))) {
1847
1847
  const e = this.properties, s = [...Ps(e), ...Cs(e)];
1848
1848
  for (const i of s)
1849
1849
  this.createProperty(i, e[i]);
@@ -2016,15 +2016,15 @@ class U extends HTMLElement {
2016
2016
  firstUpdated(t) {
2017
2017
  }
2018
2018
  }
2019
- U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[V("elementProperties")] = /* @__PURE__ */ new Map(), U[V("finalized")] = /* @__PURE__ */ new Map(), vt == null || vt({ ReactiveElement: U }), (O.reactiveElementVersions ?? (O.reactiveElementVersions = [])).push("2.0.1");
2019
+ M.elementStyles = [], M.shadowRootOptions = { mode: "open" }, M[B("elementProperties")] = /* @__PURE__ */ new Map(), M[B("finalized")] = /* @__PURE__ */ new Map(), vt == null || vt({ ReactiveElement: M }), (k.reactiveElementVersions ?? (k.reactiveElementVersions = [])).push("2.0.1");
2020
2020
  /**
2021
2021
  * @license
2022
2022
  * Copyright 2017 Google LLC
2023
2023
  * SPDX-License-Identifier: BSD-3-Clause
2024
2024
  */
2025
- const W = globalThis, ot = W.trustedTypes, ee = ot ? ot.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, be = "$lit$", C = `lit$${(Math.random() + "").slice(9)}$`, we = "?" + C, Ss = `<${we}>`, T = document, Y = () => T.createComment(""), Q = (n) => n === null || typeof n != "object" && typeof n != "function", _e = Array.isArray, Ns = (n) => _e(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", yt = `[
2026
- \f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, ie = />/g, S = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
2027
- \f\r"'\`<>=]|("|')|))|$)`, "g"), ne = /'/g, re = /"/g, Ae = /^(?:script|style|textarea|title)$/i, Ts = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), et = Ts(1), M = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), oe = /* @__PURE__ */ new WeakMap(), N = T.createTreeWalker(T, 129);
2025
+ const V = globalThis, ot = V.trustedTypes, ee = ot ? ot.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, be = "$lit$", P = `lit$${(Math.random() + "").slice(9)}$`, we = "?" + P, Ss = `<${we}>`, N = document, F = () => N.createComment(""), Y = (n) => n === null || typeof n != "object" && typeof n != "function", _e = Array.isArray, Ns = (n) => _e(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", yt = `[
2026
+ \f\r]`, D = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, ie = />/g, O = RegExp(`>|${yt}(?:([^\\s"'>=/]+)(${yt}*=${yt}*(?:[^
2027
+ \f\r"'\`<>=]|("|')|))|$)`, "g"), ne = /'/g, re = /"/g, Ae = /^(?:script|style|textarea|title)$/i, Ts = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), tt = Ts(1), T = Symbol.for("lit-noChange"), m = Symbol.for("lit-nothing"), oe = /* @__PURE__ */ new WeakMap(), S = N.createTreeWalker(N, 129);
2028
2028
  function Ee(n, t) {
2029
2029
  if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
2030
2030
  throw Error("invalid template strings array");
@@ -2032,43 +2032,43 @@ function Ee(n, t) {
2032
2032
  }
2033
2033
  const Ms = (n, t) => {
2034
2034
  const e = n.length - 1, s = [];
2035
- let i, r = t === 2 ? "<svg>" : "", o = I;
2035
+ let i, r = t === 2 ? "<svg>" : "", o = D;
2036
2036
  for (let a = 0; a < e; a++) {
2037
2037
  const c = n[a];
2038
2038
  let l, h, p = -1, u = 0;
2039
2039
  for (; u < c.length && (o.lastIndex = u, h = o.exec(c), h !== null); )
2040
- u = o.lastIndex, o === I ? h[1] === "!--" ? o = se : h[1] !== void 0 ? o = ie : h[2] !== void 0 ? (Ae.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = S) : h[3] !== void 0 && (o = S) : o === S ? h[0] === ">" ? (o = i ?? I, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? S : h[3] === '"' ? re : ne) : o === re || o === ne ? o = S : o === se || o === ie ? o = I : (o = S, i = void 0);
2041
- const d = o === S && n[a + 1].startsWith("/>") ? " " : "";
2042
- r += o === I ? c + Ss : p >= 0 ? (s.push(l), c.slice(0, p) + be + c.slice(p) + C + d) : c + C + (p === -2 ? a : d);
2040
+ u = o.lastIndex, o === D ? h[1] === "!--" ? o = se : h[1] !== void 0 ? o = ie : h[2] !== void 0 ? (Ae.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = O) : h[3] !== void 0 && (o = O) : o === O ? h[0] === ">" ? (o = i ?? D, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? O : h[3] === '"' ? re : ne) : o === re || o === ne ? o = O : o === se || o === ie ? o = D : (o = O, i = void 0);
2041
+ const d = o === O && n[a + 1].startsWith("/>") ? " " : "";
2042
+ r += o === D ? c + Ss : p >= 0 ? (s.push(l), c.slice(0, p) + be + c.slice(p) + P + d) : c + P + (p === -2 ? a : d);
2043
2043
  }
2044
2044
  return [Ee(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
2045
2045
  };
2046
- class Z {
2046
+ class Q {
2047
2047
  constructor({ strings: t, _$litType$: e }, s) {
2048
2048
  let i;
2049
2049
  this.parts = [];
2050
2050
  let r = 0, o = 0;
2051
2051
  const a = t.length - 1, c = this.parts, [l, h] = Ms(t, e);
2052
- if (this.el = Z.createElement(l, s), N.currentNode = this.el.content, e === 2) {
2052
+ if (this.el = Q.createElement(l, s), S.currentNode = this.el.content, e === 2) {
2053
2053
  const p = this.el.content.firstChild;
2054
2054
  p.replaceWith(...p.childNodes);
2055
2055
  }
2056
- for (; (i = N.nextNode()) !== null && c.length < a; ) {
2056
+ for (; (i = S.nextNode()) !== null && c.length < a; ) {
2057
2057
  if (i.nodeType === 1) {
2058
2058
  if (i.hasAttributes())
2059
2059
  for (const p of i.getAttributeNames())
2060
2060
  if (p.endsWith(be)) {
2061
- const u = h[o++], d = i.getAttribute(p).split(C), f = /([.?@])?(.*)/.exec(u);
2062
- c.push({ type: 1, index: r, name: f[2], strings: d, ctor: f[1] === "." ? Hs : f[1] === "?" ? Rs : f[1] === "@" ? Ls : ct }), i.removeAttribute(p);
2061
+ const u = h[o++], d = i.getAttribute(p).split(P), f = /([.?@])?(.*)/.exec(u);
2062
+ c.push({ type: 1, index: r, name: f[2], strings: d, ctor: f[1] === "." ? Hs : f[1] === "?" ? Ls : f[1] === "@" ? Rs : ct }), i.removeAttribute(p);
2063
2063
  } else
2064
- p.startsWith(C) && (c.push({ type: 6, index: r }), i.removeAttribute(p));
2064
+ p.startsWith(P) && (c.push({ type: 6, index: r }), i.removeAttribute(p));
2065
2065
  if (Ae.test(i.tagName)) {
2066
- const p = i.textContent.split(C), u = p.length - 1;
2066
+ const p = i.textContent.split(P), u = p.length - 1;
2067
2067
  if (u > 0) {
2068
2068
  i.textContent = ot ? ot.emptyScript : "";
2069
2069
  for (let d = 0; d < u; d++)
2070
- i.append(p[d], Y()), N.nextNode(), c.push({ type: 2, index: ++r });
2071
- i.append(p[u], Y());
2070
+ i.append(p[d], F()), S.nextNode(), c.push({ type: 2, index: ++r });
2071
+ i.append(p[u], F());
2072
2072
  }
2073
2073
  }
2074
2074
  } else if (i.nodeType === 8)
@@ -2076,24 +2076,24 @@ class Z {
2076
2076
  c.push({ type: 2, index: r });
2077
2077
  else {
2078
2078
  let p = -1;
2079
- for (; (p = i.data.indexOf(C, p + 1)) !== -1; )
2080
- c.push({ type: 7, index: r }), p += C.length - 1;
2079
+ for (; (p = i.data.indexOf(P, p + 1)) !== -1; )
2080
+ c.push({ type: 7, index: r }), p += P.length - 1;
2081
2081
  }
2082
2082
  r++;
2083
2083
  }
2084
2084
  }
2085
2085
  static createElement(t, e) {
2086
- const s = T.createElement("template");
2086
+ const s = N.createElement("template");
2087
2087
  return s.innerHTML = t, s;
2088
2088
  }
2089
2089
  }
2090
- function R(n, t, e = n, s) {
2090
+ function H(n, t, e = n, s) {
2091
2091
  var o, a;
2092
- if (t === M)
2092
+ if (t === T)
2093
2093
  return t;
2094
2094
  let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
2095
- const r = Q(t) ? void 0 : t._$litDirective$;
2096
- return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = R(n, i._$AS(n, t.values), i, s)), t;
2095
+ const r = Y(t) ? void 0 : t._$litDirective$;
2096
+ return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(n), i._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = H(n, i._$AS(n, t.values), i, s)), t;
2097
2097
  }
2098
2098
  class Us {
2099
2099
  constructor(t, e) {
@@ -2106,17 +2106,17 @@ class Us {
2106
2106
  return this._$AM._$AU;
2107
2107
  }
2108
2108
  u(t) {
2109
- const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? T).importNode(e, !0);
2110
- N.currentNode = i;
2111
- let r = N.nextNode(), o = 0, a = 0, c = s[0];
2109
+ const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? N).importNode(e, !0);
2110
+ S.currentNode = i;
2111
+ let r = S.nextNode(), o = 0, a = 0, c = s[0];
2112
2112
  for (; c !== void 0; ) {
2113
2113
  if (o === c.index) {
2114
2114
  let l;
2115
- c.type === 2 ? l = new K(r, r.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (l = new js(r, this, t)), this._$AV.push(l), c = s[++a];
2115
+ c.type === 2 ? l = new J(r, r.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(r, c.name, c.strings, this, t) : c.type === 6 && (l = new js(r, this, t)), this._$AV.push(l), c = s[++a];
2116
2116
  }
2117
- o !== (c == null ? void 0 : c.index) && (r = N.nextNode(), o++);
2117
+ o !== (c == null ? void 0 : c.index) && (r = S.nextNode(), o++);
2118
2118
  }
2119
- return N.currentNode = T, i;
2119
+ return S.currentNode = N, i;
2120
2120
  }
2121
2121
  p(t) {
2122
2122
  let e = 0;
@@ -2124,7 +2124,7 @@ class Us {
2124
2124
  s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
2125
2125
  }
2126
2126
  }
2127
- class K {
2127
+ class J {
2128
2128
  get _$AU() {
2129
2129
  var t;
2130
2130
  return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
@@ -2144,7 +2144,7 @@ class K {
2144
2144
  return this._$AB;
2145
2145
  }
2146
2146
  _$AI(t, e = this) {
2147
- t = R(this, t, e), Q(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== M && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ns(t) ? this.T(t) : this._(t);
2147
+ t = H(this, t, e), Y(t) ? t === m || t == null || t === "" ? (this._$AH !== m && this._$AR(), this._$AH = m) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Ns(t) ? this.T(t) : this._(t);
2148
2148
  }
2149
2149
  k(t) {
2150
2150
  return this._$AA.parentNode.insertBefore(t, this._$AB);
@@ -2153,11 +2153,11 @@ class K {
2153
2153
  this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
2154
2154
  }
2155
2155
  _(t) {
2156
- this._$AH !== m && Q(this._$AH) ? this._$AA.nextSibling.data = t : this.$(T.createTextNode(t)), this._$AH = t;
2156
+ this._$AH !== m && Y(this._$AH) ? this._$AA.nextSibling.data = t : this.$(N.createTextNode(t)), this._$AH = t;
2157
2157
  }
2158
2158
  g(t) {
2159
2159
  var r;
2160
- const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Z.createElement(Ee(s.h, s.h[0]), this.options)), s);
2160
+ const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = Q.createElement(Ee(s.h, s.h[0]), this.options)), s);
2161
2161
  if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
2162
2162
  this._$AH.p(e);
2163
2163
  else {
@@ -2167,14 +2167,14 @@ class K {
2167
2167
  }
2168
2168
  _$AC(t) {
2169
2169
  let e = oe.get(t.strings);
2170
- return e === void 0 && oe.set(t.strings, e = new Z(t)), e;
2170
+ return e === void 0 && oe.set(t.strings, e = new Q(t)), e;
2171
2171
  }
2172
2172
  T(t) {
2173
2173
  _e(this._$AH) || (this._$AH = [], this._$AR());
2174
2174
  const e = this._$AH;
2175
2175
  let s, i = 0;
2176
2176
  for (const r of t)
2177
- i === e.length ? e.push(s = new K(this.k(Y()), this.k(Y()), this, this.options)) : s = e[i], s._$AI(r), i++;
2177
+ i === e.length ? e.push(s = new J(this.k(F()), this.k(F()), this, this.options)) : s = e[i], s._$AI(r), i++;
2178
2178
  i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
2179
2179
  }
2180
2180
  _$AR(t = this._$AA.nextSibling, e) {
@@ -2203,12 +2203,12 @@ class ct {
2203
2203
  const r = this.strings;
2204
2204
  let o = !1;
2205
2205
  if (r === void 0)
2206
- t = R(this, t, e, 0), o = !Q(t) || t !== this._$AH && t !== M, o && (this._$AH = t);
2206
+ t = H(this, t, e, 0), o = !Y(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
2207
2207
  else {
2208
2208
  const a = t;
2209
2209
  let c, l;
2210
2210
  for (t = r[0], c = 0; c < r.length - 1; c++)
2211
- l = R(this, a[s + c], e, c), l === M && (l = this._$AH[c]), o || (o = !Q(l) || l !== this._$AH[c]), l === m ? t = m : t !== m && (t += (l ?? "") + r[c + 1]), this._$AH[c] = l;
2211
+ l = H(this, a[s + c], e, c), l === T && (l = this._$AH[c]), o || (o = !Y(l) || l !== this._$AH[c]), l === m ? t = m : t !== m && (t += (l ?? "") + r[c + 1]), this._$AH[c] = l;
2212
2212
  }
2213
2213
  o && !i && this.O(t);
2214
2214
  }
@@ -2224,7 +2224,7 @@ class Hs extends ct {
2224
2224
  this.element[this.name] = t === m ? void 0 : t;
2225
2225
  }
2226
2226
  }
2227
- class Rs extends ct {
2227
+ class Ls extends ct {
2228
2228
  constructor() {
2229
2229
  super(...arguments), this.type = 4;
2230
2230
  }
@@ -2232,12 +2232,12 @@ class Rs extends ct {
2232
2232
  this.element.toggleAttribute(this.name, !!t && t !== m);
2233
2233
  }
2234
2234
  }
2235
- class Ls extends ct {
2235
+ class Rs extends ct {
2236
2236
  constructor(t, e, s, i, r) {
2237
2237
  super(t, e, s, i, r), this.type = 5;
2238
2238
  }
2239
2239
  _$AI(t, e = this) {
2240
- if ((t = R(this, t, e, 0) ?? m) === M)
2240
+ if ((t = H(this, t, e, 0) ?? m) === T)
2241
2241
  return;
2242
2242
  const s = this._$AH, i = t === m && s !== m || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, r = t !== m && (s === m || i);
2243
2243
  i && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
@@ -2255,17 +2255,17 @@ class js {
2255
2255
  return this._$AM._$AU;
2256
2256
  }
2257
2257
  _$AI(t) {
2258
- R(this, t);
2258
+ H(this, t);
2259
2259
  }
2260
2260
  }
2261
- const $t = W.litHtmlPolyfillSupport;
2262
- $t == null || $t(Z, K), (W.litHtmlVersions ?? (W.litHtmlVersions = [])).push("3.0.2");
2261
+ const $t = V.litHtmlPolyfillSupport;
2262
+ $t == null || $t(Q, J), (V.litHtmlVersions ?? (V.litHtmlVersions = [])).push("3.0.2");
2263
2263
  const zs = (n, t, e) => {
2264
2264
  const s = (e == null ? void 0 : e.renderBefore) ?? t;
2265
2265
  let i = s._$litPart$;
2266
2266
  if (i === void 0) {
2267
2267
  const r = (e == null ? void 0 : e.renderBefore) ?? null;
2268
- s._$litPart$ = i = new K(t.insertBefore(Y(), r), r, void 0, e ?? {});
2268
+ s._$litPart$ = i = new J(t.insertBefore(F(), r), r, void 0, e ?? {});
2269
2269
  }
2270
2270
  return i._$AI(n), i;
2271
2271
  };
@@ -2274,7 +2274,7 @@ const zs = (n, t, e) => {
2274
2274
  * Copyright 2017 Google LLC
2275
2275
  * SPDX-License-Identifier: BSD-3-Clause
2276
2276
  */
2277
- class F extends U {
2277
+ class W extends M {
2278
2278
  constructor() {
2279
2279
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
2280
2280
  }
@@ -2296,13 +2296,13 @@ class F extends U {
2296
2296
  super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
2297
2297
  }
2298
2298
  render() {
2299
- return M;
2299
+ return T;
2300
2300
  }
2301
2301
  }
2302
2302
  var ae;
2303
- F._$litElement$ = !0, F.finalized = !0, (ae = globalThis.litElementHydrateSupport) == null || ae.call(globalThis, { LitElement: F });
2303
+ W._$litElement$ = !0, W.finalized = !0, (ae = globalThis.litElementHydrateSupport) == null || ae.call(globalThis, { LitElement: W });
2304
2304
  const bt = globalThis.litElementPolyfillSupport;
2305
- bt == null || bt({ LitElement: F });
2305
+ bt == null || bt({ LitElement: W });
2306
2306
  (globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
2307
2307
  /**
2308
2308
  * @license
@@ -2371,7 +2371,7 @@ class Ws {
2371
2371
  * Copyright 2018 Google LLC
2372
2372
  * SPDX-License-Identifier: BSD-3-Clause
2373
2373
  */
2374
- const Fs = Vs(class extends Ws {
2374
+ const qs = Vs(class extends Ws {
2375
2375
  constructor(n) {
2376
2376
  var t;
2377
2377
  if (super(n), n.type !== Bs.ATTRIBUTE || n.name !== "class" || ((t = n.strings) == null ? void 0 : t.length) > 2)
@@ -2395,20 +2395,28 @@ const Fs = Vs(class extends Ws {
2395
2395
  const o = !!t[r];
2396
2396
  o === this.it.has(r) || (i = this.st) != null && i.has(r) || (o ? (e.add(r), this.it.add(r)) : (e.remove(r), this.it.delete(r)));
2397
2397
  }
2398
- return M;
2398
+ return T;
2399
2399
  }
2400
- }), v = (n, t, e) => {
2400
+ }), et = (n, t, e) => {
2401
2401
  n && e.style.setProperty(t, n);
2402
- }, qs = (n, t) => {
2403
- var e, s, i, r, o, a, c, l, h, p, u;
2404
- v((e = n.colors) == null ? void 0 : e.primary, "--primary-color", t), v((s = n.colors) == null ? void 0 : s.secondary, "--secondary-color", t), v((i = n.colors) == null ? void 0 : i.text, "--text-color", t), v((r = n.colors) == null ? void 0 : r.link, "--link-color", t), v((o = n.colors) == null ? void 0 : o.gray, "--gray-color", t), v((a = n.colors) == null ? void 0 : a.grayDark, "--gray-dark-color", t), v((c = n.spacing) == null ? void 0 : c.xs, "--spacing-xs", t), v((l = n.spacing) == null ? void 0 : l.sm, "--spacing-sm", t), v((h = n.spacing) == null ? void 0 : h.md, "--spacing-md", t), v((p = n.spacing) == null ? void 0 : p.lg, "--spacing-lg", t), v((u = n.spacing) == null ? void 0 : u.xl, "--spacing-xl", t), v(n.boxShadow, "--box-shadow", t), v(n.borderRadius, "--border-radius", t), v(n.borderRadiusSm, "--border-radius-sm", t), v(n.fontFamily, "--font-family", t);
2402
+ }, Fs = (n, t) => {
2403
+ var e, s, i, r;
2404
+ et((e = n.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), et(
2405
+ (s = n.colors) == null ? void 0 : s.textOnPrimaryBackground,
2406
+ "--text-on-primary-background",
2407
+ t
2408
+ ), et((i = n.colors) == null ? void 0 : i.secondaryBackground, "--secondary-background", t), et(
2409
+ (r = n.colors) == null ? void 0 : r.textOnSecondaryBackground,
2410
+ "--text-on-secondary-background",
2411
+ t
2412
+ );
2405
2413
  };
2406
- var Ys = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, G = (n, t, e, s) => {
2414
+ var Ys = Object.defineProperty, Qs = Object.getOwnPropertyDescriptor, K = (n, t, e, s) => {
2407
2415
  for (var i = s > 1 ? void 0 : s ? Qs(t, e) : t, r = n.length - 1, o; r >= 0; r--)
2408
2416
  (o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
2409
2417
  return s && i && Ys(t, e, i), i;
2410
2418
  };
2411
- class j extends F {
2419
+ class R extends W {
2412
2420
  constructor() {
2413
2421
  super(...arguments), this.active = !1, this.loaded = !1;
2414
2422
  }
@@ -2419,9 +2427,9 @@ class j extends F {
2419
2427
  this.active = !this.active;
2420
2428
  }
2421
2429
  _applyBranding() {
2422
- var s;
2423
- const t = ((s = this.container) == null ? void 0 : s.get("$settings")) ?? {}, e = t == null ? void 0 : t.components[t == null ? void 0 : t.entry];
2424
- e && qs(e.context, this);
2430
+ var e;
2431
+ const t = ((e = this.container) == null ? void 0 : e.get("$settings")) ?? {};
2432
+ t != null && t.branding && Fs(t.branding, this);
2425
2433
  }
2426
2434
  async _renderSymbol(t) {
2427
2435
  const e = async (s) => await import("./index-d18b6f25.mjs").then(
@@ -2432,16 +2440,16 @@ class j extends F {
2432
2440
  switch (s) {
2433
2441
  case "Telia": {
2434
2442
  const r = await e(i);
2435
- return r ? et`<telia-icon
2443
+ return r ? tt`<telia-icon
2436
2444
  class="trigger-icon"
2437
2445
  svg=${r.svg}
2438
2446
  size="lg"
2439
2447
  ></telia-icon>` : m;
2440
2448
  }
2441
2449
  case "FontAwesome":
2442
- return et`<i class="trigger-fa-icon fa fa-${i}"></i>`;
2450
+ return tt`<i class="trigger-fa-icon fa fa-${i}"></i>`;
2443
2451
  case "Uri":
2444
- return et`<i
2452
+ return tt`<i
2445
2453
  class="trigger-custom-icon"
2446
2454
  style="background: url(${i}) no-repeat center center;background-size: contain;"
2447
2455
  ></i>`;
@@ -2451,8 +2459,8 @@ class j extends F {
2451
2459
  }
2452
2460
  }
2453
2461
  render() {
2454
- return et`<button
2455
- class=${Fs({
2462
+ return tt`<button
2463
+ class=${qs({
2456
2464
  trigger: !0,
2457
2465
  active: this.active,
2458
2466
  rendered: this.loaded
@@ -2490,7 +2498,7 @@ class j extends F {
2490
2498
  </button>`;
2491
2499
  }
2492
2500
  }
2493
- j.styles = [
2501
+ R.styles = [
2494
2502
  ws`
2495
2503
  :host {
2496
2504
  --voca-rem-multiplier: 0.625;
@@ -2514,7 +2522,7 @@ j.styles = [
2514
2522
  width: 55px;
2515
2523
  border-radius: 55px;
2516
2524
  cursor: pointer;
2517
- background-color: var(--trigger-bg, var(--primary-color));
2525
+ background-color: var(--trigger-bg, var(--primary-background));
2518
2526
  font-family: Lato;
2519
2527
  text-decoration: none;
2520
2528
  border: 3px dashed transparent;
@@ -2543,7 +2551,7 @@ j.styles = [
2543
2551
  opacity: 1;
2544
2552
  transform: rotate(0deg) scale(1);
2545
2553
  transition: opacity 200ms ease-out, transform 200ms ease-out;
2546
- color: var(--trigger-text-color, #fff);
2554
+ color: var(--trigger-text-color, var(--text-on-primary-background));
2547
2555
  }
2548
2556
  .trigger-close {
2549
2557
  opacity: 0;
@@ -2557,30 +2565,30 @@ j.styles = [
2557
2565
  display: flex;
2558
2566
  justify-content: center;
2559
2567
  align-items: center;
2560
- fill: var(--trigger-text-color, #fff);
2568
+ fill: var(--trigger-text-color, var(--text-on-primary-background));
2561
2569
  }
2562
2570
  `
2563
2571
  ];
2564
- G([
2572
+ K([
2565
2573
  Mt({ attribute: !1 })
2566
- ], j.prototype, "symbol", 2);
2567
- G([
2574
+ ], R.prototype, "symbol", 2);
2575
+ K([
2568
2576
  Mt({ attribute: !1 })
2569
- ], j.prototype, "container", 2);
2570
- G([
2577
+ ], R.prototype, "container", 2);
2578
+ K([
2571
2579
  Ut()
2572
- ], j.prototype, "active", 2);
2573
- G([
2580
+ ], R.prototype, "active", 2);
2581
+ K([
2574
2582
  Ut()
2575
- ], j.prototype, "loaded", 2);
2576
- G([
2583
+ ], R.prototype, "loaded", 2);
2584
+ K([
2577
2585
  Ut()
2578
- ], j.prototype, "icon", 2);
2586
+ ], R.prototype, "icon", 2);
2579
2587
  const Zs = (n, t, e, s, i) => n.getAsync("componentResolver").then((r) => (r.registerComponent(t, e), vs(n, t, s || (() => {
2580
2588
  }), t, i))), li = (n) => Zs(
2581
2589
  n,
2582
2590
  "widget-header",
2583
- import("./widget-header-52b90c8d.mjs"),
2591
+ import("./widget-header-08d70cfa.mjs"),
2584
2592
  (t) => {
2585
2593
  }
2586
2594
  );
@@ -2592,10 +2600,9 @@ export {
2592
2600
  li as W,
2593
2601
  Pt as h,
2594
2602
  ws as i,
2595
- qs as m,
2596
2603
  Mt as n,
2597
2604
  fs as p,
2598
2605
  Ut as r,
2599
- F as s,
2600
- et as x
2606
+ W as s,
2607
+ tt as x
2601
2608
  };