@telia-ace/widget-components-widget-header-flamingo 1.1.113 → 1.1.114-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.
package/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-
|
|
1
|
+
"use strict";const r=async e=>{e.registerComponent("widget-header",Promise.resolve().then(()=>require("./widget-header-DT0cebh9.js")))};module.exports=r;
|
package/index.mjs
CHANGED
package/package.json
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@telia-ace/widget-components-widget-header-flamingo",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.114-rc.1",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"lit": "^3.0.2",
|
|
6
|
-
"@telia-ace/widget-core-flamingo": "1.1.
|
|
6
|
+
"@telia-ace/widget-core-flamingo": "1.1.114-rc.1",
|
|
7
7
|
"@teliads/components": "^22.1.1",
|
|
8
8
|
"@teliads/icons": "^8.4.0",
|
|
9
9
|
"@lit-labs/motion": "^1.0.8",
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
1
|
+
var Dt = function(i, t) {
|
|
2
|
+
return Dt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, s) {
|
|
3
3
|
e.__proto__ = s;
|
|
4
4
|
} || function(e, s) {
|
|
5
5
|
for (var n in s) Object.prototype.hasOwnProperty.call(s, n) && (e[n] = s[n]);
|
|
6
|
-
},
|
|
6
|
+
}, Dt(i, t);
|
|
7
7
|
};
|
|
8
8
|
function K(i, t) {
|
|
9
9
|
if (typeof t != "function" && t !== null)
|
|
10
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
11
|
-
|
|
11
|
+
Dt(i, t);
|
|
12
12
|
function e() {
|
|
13
13
|
this.constructor = i;
|
|
14
14
|
}
|
|
@@ -133,8 +133,8 @@ function Yt(i, t, e) {
|
|
|
133
133
|
(r || !(s in t)) && (r || (r = Array.prototype.slice.call(t, 0, s)), r[s] = t[s]);
|
|
134
134
|
return i.concat(r || Array.prototype.slice.call(t));
|
|
135
135
|
}
|
|
136
|
-
function
|
|
137
|
-
return this instanceof
|
|
136
|
+
function D(i) {
|
|
137
|
+
return this instanceof D ? (this.v = i, this) : new D(i);
|
|
138
138
|
}
|
|
139
139
|
function is(i, t, e) {
|
|
140
140
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
@@ -162,7 +162,7 @@ function is(i, t, e) {
|
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
function c(f) {
|
|
165
|
-
f.value instanceof
|
|
165
|
+
f.value instanceof D ? Promise.resolve(f.value.v).then(u, h) : d(r[0][2], f);
|
|
166
166
|
}
|
|
167
167
|
function u(f) {
|
|
168
168
|
l("next", f);
|
|
@@ -433,7 +433,7 @@ function cs(i) {
|
|
|
433
433
|
}, e);
|
|
434
434
|
};
|
|
435
435
|
}
|
|
436
|
-
var
|
|
436
|
+
var _ = function() {
|
|
437
437
|
function i(t) {
|
|
438
438
|
t && (this._subscribe = t);
|
|
439
439
|
}
|
|
@@ -454,7 +454,7 @@ var w = function() {
|
|
|
454
454
|
}
|
|
455
455
|
}, i.prototype.forEach = function(t, e) {
|
|
456
456
|
var s = this;
|
|
457
|
-
return e =
|
|
457
|
+
return e = we(e), new e(function(n, r) {
|
|
458
458
|
var o = new Zt({
|
|
459
459
|
next: function(a) {
|
|
460
460
|
try {
|
|
@@ -479,7 +479,7 @@ var w = function() {
|
|
|
479
479
|
return cs(t)(this);
|
|
480
480
|
}, i.prototype.toPromise = function(t) {
|
|
481
481
|
var e = this;
|
|
482
|
-
return t =
|
|
482
|
+
return t = we(t), new t(function(s, n) {
|
|
483
483
|
var r;
|
|
484
484
|
e.subscribe(function(o) {
|
|
485
485
|
return r = o;
|
|
@@ -493,7 +493,7 @@ var w = function() {
|
|
|
493
493
|
return new i(t);
|
|
494
494
|
}, i;
|
|
495
495
|
}();
|
|
496
|
-
function
|
|
496
|
+
function we(i) {
|
|
497
497
|
var t;
|
|
498
498
|
return (t = i ?? ns.Promise) !== null && t !== void 0 ? t : Promise;
|
|
499
499
|
}
|
|
@@ -568,7 +568,7 @@ var fs = function(i) {
|
|
|
568
568
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
569
569
|
}
|
|
570
570
|
return t.prototype.lift = function(e) {
|
|
571
|
-
var s = new
|
|
571
|
+
var s = new _e(this, this);
|
|
572
572
|
return s.operator = e, s;
|
|
573
573
|
}, t.prototype._throwIfClosed = function() {
|
|
574
574
|
if (this.closed)
|
|
@@ -635,12 +635,12 @@ var fs = function(i) {
|
|
|
635
635
|
var s = this, n = s.hasError, r = s.thrownError, o = s.isStopped;
|
|
636
636
|
n ? e.error(r) : o && e.complete();
|
|
637
637
|
}, t.prototype.asObservable = function() {
|
|
638
|
-
var e = new
|
|
638
|
+
var e = new _();
|
|
639
639
|
return e.source = this, e;
|
|
640
640
|
}, t.create = function(e, s) {
|
|
641
|
-
return new
|
|
641
|
+
return new _e(e, s);
|
|
642
642
|
}, t;
|
|
643
|
-
}(
|
|
643
|
+
}(_), _e = function(i) {
|
|
644
644
|
K(t, i);
|
|
645
645
|
function t(e, s) {
|
|
646
646
|
var n = i.call(this) || this;
|
|
@@ -682,7 +682,7 @@ var fs = function(i) {
|
|
|
682
682
|
}, t.prototype.next = function(e) {
|
|
683
683
|
i.prototype.next.call(this, this._value = e);
|
|
684
684
|
}, t;
|
|
685
|
-
}(Ot), gs = new
|
|
685
|
+
}(Ot), gs = new _(function(i) {
|
|
686
686
|
return i.complete();
|
|
687
687
|
});
|
|
688
688
|
function $s(i) {
|
|
@@ -729,13 +729,13 @@ function mi(i) {
|
|
|
729
729
|
case 1:
|
|
730
730
|
o.trys.push([1, , 9, 10]), o.label = 2;
|
|
731
731
|
case 2:
|
|
732
|
-
return [4,
|
|
732
|
+
return [4, D(e.read())];
|
|
733
733
|
case 3:
|
|
734
|
-
return s = o.sent(), n = s.value, r = s.done, r ? [4,
|
|
734
|
+
return s = o.sent(), n = s.value, r = s.done, r ? [4, D(void 0)] : [3, 5];
|
|
735
735
|
case 4:
|
|
736
736
|
return [2, o.sent()];
|
|
737
737
|
case 5:
|
|
738
|
-
return [4,
|
|
738
|
+
return [4, D(n)];
|
|
739
739
|
case 6:
|
|
740
740
|
return [4, o.sent()];
|
|
741
741
|
case 7:
|
|
@@ -754,15 +754,15 @@ function yi(i) {
|
|
|
754
754
|
return v(i == null ? void 0 : i.getReader);
|
|
755
755
|
}
|
|
756
756
|
function X(i) {
|
|
757
|
-
if (i instanceof
|
|
757
|
+
if (i instanceof _)
|
|
758
758
|
return i;
|
|
759
759
|
if (i != null) {
|
|
760
760
|
if (fi(i))
|
|
761
761
|
return bs(i);
|
|
762
762
|
if (hi(i))
|
|
763
|
-
return _s(i);
|
|
764
|
-
if (di(i))
|
|
765
763
|
return ws(i);
|
|
764
|
+
if (di(i))
|
|
765
|
+
return _s(i);
|
|
766
766
|
if (pi(i))
|
|
767
767
|
return bi(i);
|
|
768
768
|
if (vi(i))
|
|
@@ -773,22 +773,22 @@ function X(i) {
|
|
|
773
773
|
throw gi(i);
|
|
774
774
|
}
|
|
775
775
|
function bs(i) {
|
|
776
|
-
return new
|
|
776
|
+
return new _(function(t) {
|
|
777
777
|
var e = i[ee]();
|
|
778
778
|
if (v(e.subscribe))
|
|
779
779
|
return e.subscribe(t);
|
|
780
780
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
|
781
781
|
});
|
|
782
782
|
}
|
|
783
|
-
function
|
|
784
|
-
return new
|
|
783
|
+
function ws(i) {
|
|
784
|
+
return new _(function(t) {
|
|
785
785
|
for (var e = 0; e < i.length && !t.closed; e++)
|
|
786
786
|
t.next(i[e]);
|
|
787
787
|
t.complete();
|
|
788
788
|
});
|
|
789
789
|
}
|
|
790
|
-
function
|
|
791
|
-
return new
|
|
790
|
+
function _s(i) {
|
|
791
|
+
return new _(function(t) {
|
|
792
792
|
i.then(function(e) {
|
|
793
793
|
t.closed || (t.next(e), t.complete());
|
|
794
794
|
}, function(e) {
|
|
@@ -797,7 +797,7 @@ function ws(i) {
|
|
|
797
797
|
});
|
|
798
798
|
}
|
|
799
799
|
function xs(i) {
|
|
800
|
-
return new
|
|
800
|
+
return new _(function(t) {
|
|
801
801
|
var e, s;
|
|
802
802
|
try {
|
|
803
803
|
for (var n = q(i), r = n.next(); !r.done; r = n.next()) {
|
|
@@ -818,7 +818,7 @@ function xs(i) {
|
|
|
818
818
|
});
|
|
819
819
|
}
|
|
820
820
|
function bi(i) {
|
|
821
|
-
return new
|
|
821
|
+
return new _(function(t) {
|
|
822
822
|
As(i, t).catch(function(e) {
|
|
823
823
|
return t.error(e);
|
|
824
824
|
});
|
|
@@ -873,7 +873,7 @@ function L(i, t, e, s, n) {
|
|
|
873
873
|
if (i.add(r), !n)
|
|
874
874
|
return r;
|
|
875
875
|
}
|
|
876
|
-
function
|
|
876
|
+
function wi(i, t) {
|
|
877
877
|
return t === void 0 && (t = 0), Et(function(e, s) {
|
|
878
878
|
e.subscribe(gt(s, function(n) {
|
|
879
879
|
return L(s, i, function() {
|
|
@@ -890,7 +890,7 @@ function _i(i, t) {
|
|
|
890
890
|
}));
|
|
891
891
|
});
|
|
892
892
|
}
|
|
893
|
-
function
|
|
893
|
+
function _i(i, t) {
|
|
894
894
|
return t === void 0 && (t = 0), Et(function(e, s) {
|
|
895
895
|
s.add(i.schedule(function() {
|
|
896
896
|
return e.subscribe(s);
|
|
@@ -898,13 +898,13 @@ function wi(i, t) {
|
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
900
|
function ks(i, t) {
|
|
901
|
-
return X(i).pipe(
|
|
901
|
+
return X(i).pipe(_i(t), wi(t));
|
|
902
902
|
}
|
|
903
903
|
function Cs(i, t) {
|
|
904
|
-
return X(i).pipe(
|
|
904
|
+
return X(i).pipe(_i(t), wi(t));
|
|
905
905
|
}
|
|
906
906
|
function Es(i, t) {
|
|
907
|
-
return new
|
|
907
|
+
return new _(function(e) {
|
|
908
908
|
var s = 0;
|
|
909
909
|
return t.schedule(function() {
|
|
910
910
|
s === i.length ? e.complete() : (e.next(i[s++]), e.closed || this.schedule());
|
|
@@ -912,7 +912,7 @@ function Es(i, t) {
|
|
|
912
912
|
});
|
|
913
913
|
}
|
|
914
914
|
function Os(i, t) {
|
|
915
|
-
return new
|
|
915
|
+
return new _(function(e) {
|
|
916
916
|
var s;
|
|
917
917
|
return L(e, t, function() {
|
|
918
918
|
s = i[$i](), L(e, t, function() {
|
|
@@ -933,7 +933,7 @@ function Os(i, t) {
|
|
|
933
933
|
function xi(i, t) {
|
|
934
934
|
if (!i)
|
|
935
935
|
throw new Error("Iterable cannot be null");
|
|
936
|
-
return new
|
|
936
|
+
return new _(function(e) {
|
|
937
937
|
L(e, t, function() {
|
|
938
938
|
var s = i[Symbol.asyncIterator]();
|
|
939
939
|
L(e, t, function() {
|
|
@@ -1072,7 +1072,7 @@ const js = (i) => new Ai(typeof i == "string" ? i : i + "", void 0, se), j = (i,
|
|
|
1072
1072
|
* Copyright 2017 Google LLC
|
|
1073
1073
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1074
1074
|
*/
|
|
1075
|
-
const { is: Bs, defineProperty: Hs, getOwnPropertyDescriptor:
|
|
1075
|
+
const { is: Bs, defineProperty: Hs, getOwnPropertyDescriptor: Fs, getOwnPropertyNames: zs, getOwnPropertySymbols: Ds, getPrototypeOf: Ws } = Object, O = globalThis, Ae = O.trustedTypes, Ys = Ae ? Ae.emptyScript : "", Mt = O.reactiveElementPolyfillSupport, V = (i, t) => i, $t = { toAttribute(i, t) {
|
|
1076
1076
|
switch (t) {
|
|
1077
1077
|
case Boolean:
|
|
1078
1078
|
i = i ? Ys : null;
|
|
@@ -1116,7 +1116,7 @@ let B = class extends HTMLElement {
|
|
|
1116
1116
|
}
|
|
1117
1117
|
}
|
|
1118
1118
|
static getPropertyDescriptor(t, e, s) {
|
|
1119
|
-
const { get: n, set: r } =
|
|
1119
|
+
const { get: n, set: r } = Fs(this.prototype, t) ?? { get() {
|
|
1120
1120
|
return this[e];
|
|
1121
1121
|
}, set(o) {
|
|
1122
1122
|
this[e] = o;
|
|
@@ -1139,7 +1139,7 @@ let B = class extends HTMLElement {
|
|
|
1139
1139
|
static finalize() {
|
|
1140
1140
|
if (this.hasOwnProperty(V("finalized"))) return;
|
|
1141
1141
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(V("properties"))) {
|
|
1142
|
-
const e = this.properties, s = [...
|
|
1142
|
+
const e = this.properties, s = [...zs(e), ...Ds(e)];
|
|
1143
1143
|
for (const n of s) this.createProperty(n, e[n]);
|
|
1144
1144
|
}
|
|
1145
1145
|
const t = this[Symbol.metadata];
|
|
@@ -1598,7 +1598,7 @@ const sn = { attribute: !0, type: String, converter: $t, reflect: !1, hasChanged
|
|
|
1598
1598
|
}
|
|
1599
1599
|
throw Error("Unsupported decorator location: " + s);
|
|
1600
1600
|
};
|
|
1601
|
-
function
|
|
1601
|
+
function w(i) {
|
|
1602
1602
|
return (t, e) => typeof e == "object" ? nn(i, t, e) : ((s, n, r) => {
|
|
1603
1603
|
const o = n.hasOwnProperty(r);
|
|
1604
1604
|
return n.constructor.createProperty(r, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
|
|
@@ -1610,7 +1610,7 @@ function _(i) {
|
|
|
1610
1610
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1611
1611
|
*/
|
|
1612
1612
|
function N(i) {
|
|
1613
|
-
return
|
|
1613
|
+
return w({ ...i, state: !0, attribute: !1 });
|
|
1614
1614
|
}
|
|
1615
1615
|
var rn = Object.defineProperty, on = (i, t, e, s) => {
|
|
1616
1616
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
@@ -1650,7 +1650,7 @@ fe.styles = [
|
|
|
1650
1650
|
];
|
|
1651
1651
|
let mt = fe;
|
|
1652
1652
|
on([
|
|
1653
|
-
|
|
1653
|
+
w({ attribute: !0 })
|
|
1654
1654
|
], mt.prototype, "anchor");
|
|
1655
1655
|
/**
|
|
1656
1656
|
* @license
|
|
@@ -1748,7 +1748,7 @@ const Ht = /* @__PURE__ */ new Map(), Re = /* @__PURE__ */ new WeakSet(), Ue = (
|
|
|
1748
1748
|
}, Ne = (i, t) => {
|
|
1749
1749
|
const e = i / t;
|
|
1750
1750
|
return e === 1 ? void 0 : e;
|
|
1751
|
-
},
|
|
1751
|
+
}, Ft = { left: (i, t) => {
|
|
1752
1752
|
const e = je(i, t);
|
|
1753
1753
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1754
1754
|
}, top: (i, t) => {
|
|
@@ -1803,7 +1803,7 @@ class gn extends Li {
|
|
|
1803
1803
|
m() {
|
|
1804
1804
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
|
1805
1805
|
return this.options.properties.forEach((n) => {
|
|
1806
|
-
const r = e[n] ?? (
|
|
1806
|
+
const r = e[n] ?? (Ft[n] ? void 0 : s[n]), o = Number(r);
|
|
1807
1807
|
t[n] = isNaN(o) ? r + "" : o;
|
|
1808
1808
|
}), t;
|
|
1809
1809
|
}
|
|
@@ -1904,8 +1904,8 @@ class gn extends Li {
|
|
|
1904
1904
|
const a = {};
|
|
1905
1905
|
for (const l in e) {
|
|
1906
1906
|
const c = t[l], u = e[l];
|
|
1907
|
-
if (l in
|
|
1908
|
-
const h =
|
|
1907
|
+
if (l in Ft) {
|
|
1908
|
+
const h = Ft[l];
|
|
1909
1909
|
if (c === void 0 || u === void 0) continue;
|
|
1910
1910
|
const d = h(c, u);
|
|
1911
1911
|
d.transform !== void 0 && (a[l] = d.value, o = !0, n.transform = `${n.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(n, d.overrideFrom));
|
|
@@ -2007,7 +2007,7 @@ const He = ae(class extends Pi {
|
|
|
2007
2007
|
const bt = () => new yn();
|
|
2008
2008
|
let yn = class {
|
|
2009
2009
|
};
|
|
2010
|
-
const
|
|
2010
|
+
const zt = /* @__PURE__ */ new WeakMap(), wt = ae(class extends Li {
|
|
2011
2011
|
render(i) {
|
|
2012
2012
|
return p;
|
|
2013
2013
|
}
|
|
@@ -2019,13 +2019,13 @@ const Dt = /* @__PURE__ */ new WeakMap(), _t = ae(class extends Li {
|
|
|
2019
2019
|
rt(i) {
|
|
2020
2020
|
if (this.isConnected || (i = void 0), typeof this.Y == "function") {
|
|
2021
2021
|
const t = this.ht ?? globalThis;
|
|
2022
|
-
let e =
|
|
2023
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
2022
|
+
let e = zt.get(t);
|
|
2023
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), zt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, i), i !== void 0 && this.Y.call(this.ht, i);
|
|
2024
2024
|
} else this.Y.value = i;
|
|
2025
2025
|
}
|
|
2026
2026
|
get lt() {
|
|
2027
2027
|
var i, t;
|
|
2028
|
-
return typeof this.Y == "function" ? (i =
|
|
2028
|
+
return typeof this.Y == "function" ? (i = zt.get(this.ht ?? globalThis)) == null ? void 0 : i.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
2029
2029
|
}
|
|
2030
2030
|
disconnected() {
|
|
2031
2031
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -2113,7 +2113,7 @@ const pe = class pe extends S {
|
|
|
2113
2113
|
"trigger-container": !0,
|
|
2114
2114
|
hidden: !this.triggerVisible
|
|
2115
2115
|
})}
|
|
2116
|
-
${
|
|
2116
|
+
${wt(this.containerRef)}
|
|
2117
2117
|
>
|
|
2118
2118
|
${!this.active && ((n = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && n.showButtonLabel) ? b`
|
|
2119
2119
|
<button
|
|
@@ -2306,7 +2306,7 @@ pe.styles = [
|
|
|
2306
2306
|
];
|
|
2307
2307
|
let C = pe;
|
|
2308
2308
|
lt([
|
|
2309
|
-
|
|
2309
|
+
w({ attribute: !1 })
|
|
2310
2310
|
], C.prototype, "application");
|
|
2311
2311
|
lt([
|
|
2312
2312
|
N()
|
|
@@ -2320,10 +2320,10 @@ lt([
|
|
|
2320
2320
|
lt([
|
|
2321
2321
|
N()
|
|
2322
2322
|
], C.prototype, "icon");
|
|
2323
|
-
var
|
|
2323
|
+
var wn = Object.defineProperty, P = (i, t, e, s) => {
|
|
2324
2324
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2325
2325
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
2326
|
-
return n &&
|
|
2326
|
+
return n && wn(t, e, n), n;
|
|
2327
2327
|
};
|
|
2328
2328
|
const Mi = (i) => {
|
|
2329
2329
|
const e = class e extends i {
|
|
@@ -2367,19 +2367,19 @@ const Mi = (i) => {
|
|
|
2367
2367
|
];
|
|
2368
2368
|
let t = e;
|
|
2369
2369
|
return P([
|
|
2370
|
-
|
|
2370
|
+
w()
|
|
2371
2371
|
], t.prototype, "properties"), P([
|
|
2372
|
-
|
|
2372
|
+
w()
|
|
2373
2373
|
], t.prototype, "context"), P([
|
|
2374
|
-
|
|
2374
|
+
w()
|
|
2375
2375
|
], t.prototype, "layout"), P([
|
|
2376
|
-
|
|
2376
|
+
w()
|
|
2377
2377
|
], t.prototype, "name"), P([
|
|
2378
|
-
|
|
2378
|
+
w()
|
|
2379
2379
|
], t.prototype, "type"), P([
|
|
2380
|
-
|
|
2380
|
+
w({ attribute: !1 })
|
|
2381
2381
|
], t.prototype, "application"), P([
|
|
2382
|
-
|
|
2382
|
+
w({ attribute: !1 })
|
|
2383
2383
|
], t.prototype, "parent"), t;
|
|
2384
2384
|
}, ge = class ge extends Mi(S) {
|
|
2385
2385
|
render() {
|
|
@@ -2399,7 +2399,7 @@ let Kt = ge;
|
|
|
2399
2399
|
* Copyright 2021 Google LLC
|
|
2400
2400
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
2401
2401
|
*/
|
|
2402
|
-
function*
|
|
2402
|
+
function* _n(i, t) {
|
|
2403
2403
|
if (i !== void 0) {
|
|
2404
2404
|
let e = 0;
|
|
2405
2405
|
for (const s of i) yield t(s, e++);
|
|
@@ -2464,7 +2464,7 @@ let An = class extends Event {
|
|
|
2464
2464
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
|
2465
2465
|
}
|
|
2466
2466
|
};
|
|
2467
|
-
class
|
|
2467
|
+
class Fe extends Sn {
|
|
2468
2468
|
constructor(t, e, s) {
|
|
2469
2469
|
var n, r;
|
|
2470
2470
|
super(e.context !== void 0 ? e.initialValue : s), this.onContextRequest = (o) => {
|
|
@@ -2494,7 +2494,7 @@ function kn({ context: i }) {
|
|
|
2494
2494
|
return (t, e) => {
|
|
2495
2495
|
const s = /* @__PURE__ */ new WeakMap();
|
|
2496
2496
|
if (typeof e == "object") return e.addInitializer(function() {
|
|
2497
|
-
s.set(this, new
|
|
2497
|
+
s.set(this, new Fe(this, { context: i }));
|
|
2498
2498
|
}), { get() {
|
|
2499
2499
|
return t.get.call(this);
|
|
2500
2500
|
}, set(n) {
|
|
@@ -2506,7 +2506,7 @@ function kn({ context: i }) {
|
|
|
2506
2506
|
} };
|
|
2507
2507
|
{
|
|
2508
2508
|
t.constructor.addInitializer((o) => {
|
|
2509
|
-
s.set(o, new
|
|
2509
|
+
s.set(o, new Fe(o, { context: i }));
|
|
2510
2510
|
});
|
|
2511
2511
|
const n = Object.getOwnPropertyDescriptor(t, e);
|
|
2512
2512
|
let r;
|
|
@@ -2559,8 +2559,8 @@ const En = "application", $e = class $e extends S {
|
|
|
2559
2559
|
render() {
|
|
2560
2560
|
var s, n;
|
|
2561
2561
|
const t = this.application.settings.components.conversation;
|
|
2562
|
-
return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === nt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), b`<div class="widget-container" ${
|
|
2563
|
-
${
|
|
2562
|
+
return ((n = (s = t == null ? void 0 : t.properties) == null ? void 0 : s.chat) == null ? void 0 : n.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === nt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), b`<div class="widget-container" ${wt(this.wrapperRef)}>
|
|
2563
|
+
${_n(this.nodes, (r) => r)}
|
|
2564
2564
|
</div>`;
|
|
2565
2565
|
}
|
|
2566
2566
|
};
|
|
@@ -2580,7 +2580,20 @@ $e.styles = j`
|
|
|
2580
2580
|
--gray-color: #f3f3f8;
|
|
2581
2581
|
--white-color: #fff;
|
|
2582
2582
|
--gray-dark-color: #a6a6a6;
|
|
2583
|
-
|
|
2583
|
+
|
|
2584
|
+
--text-weak: #00000070;
|
|
2585
|
+
--text-medium: #0000009E;
|
|
2586
|
+
--text-default: #000000CC
|
|
2587
|
+
--text-weak-negative: #FFFFFF5E;
|
|
2588
|
+
--text-medium-negative: #FFFFFFA8;
|
|
2589
|
+
--text-default-negative: #FFFFFFF2;
|
|
2590
|
+
|
|
2591
|
+
--border-color-weak: #00000029;
|
|
2592
|
+
--border-color-medium: #00000054;
|
|
2593
|
+
--border-color-strong: #0000008a;
|
|
2594
|
+
--border-color-weak-negative: #ffffff29;
|
|
2595
|
+
--border-color-medium-negative: #ffffff54;
|
|
2596
|
+
--border-color-strong-negative: #ffffff8a;
|
|
2584
2597
|
|
|
2585
2598
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
2586
2599
|
--border-radius: var(--spacing-sm);
|
|
@@ -2719,10 +2732,10 @@ $e.styles = j`
|
|
|
2719
2732
|
`;
|
|
2720
2733
|
let rt = $e;
|
|
2721
2734
|
ji([
|
|
2722
|
-
|
|
2735
|
+
w({ attribute: !0 })
|
|
2723
2736
|
], rt.prototype, "fullscreen");
|
|
2724
2737
|
ji([
|
|
2725
|
-
|
|
2738
|
+
w({ attribute: !1 }),
|
|
2726
2739
|
kn({ context: En })
|
|
2727
2740
|
], rt.prototype, "application");
|
|
2728
2741
|
const kt = class kt {
|
|
@@ -2763,7 +2776,7 @@ const kt = class kt {
|
|
|
2763
2776
|
}
|
|
2764
2777
|
};
|
|
2765
2778
|
kt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
|
2766
|
-
let
|
|
2779
|
+
let ze = kt;
|
|
2767
2780
|
var On = Object.defineProperty, le = (i, t, e, s) => {
|
|
2768
2781
|
for (var n = void 0, r = i.length - 1, o; r >= 0; r--)
|
|
2769
2782
|
(o = i[r]) && (n = o(t, e, n) || n);
|
|
@@ -2810,7 +2823,7 @@ ve.styles = [
|
|
|
2810
2823
|
];
|
|
2811
2824
|
let G = ve;
|
|
2812
2825
|
le([
|
|
2813
|
-
|
|
2826
|
+
w({ attribute: !0 })
|
|
2814
2827
|
], G.prototype, "name");
|
|
2815
2828
|
le([
|
|
2816
2829
|
N()
|
|
@@ -2968,7 +2981,7 @@ const H = {
|
|
|
2968
2981
|
transformTagName: !1,
|
|
2969
2982
|
attachStyles: !0
|
|
2970
2983
|
};
|
|
2971
|
-
let
|
|
2984
|
+
let F, Ni, Pt, Bi = !1, _t = !1, ce = !1, y = !1, De = null, Xt = !1;
|
|
2972
2985
|
const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, Hi = It.HTMLElement || class {
|
|
2973
2986
|
}, m = {
|
|
2974
2987
|
$flags$: 0,
|
|
@@ -2995,7 +3008,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
2995
3008
|
} catch {
|
|
2996
3009
|
}
|
|
2997
3010
|
return !1;
|
|
2998
|
-
})(),
|
|
3011
|
+
})(), Fi = (i, t, e, s) => {
|
|
2999
3012
|
e && e.map(([n, r, o]) => {
|
|
3000
3013
|
const a = Nn(i, n), l = jn(t, o), c = Bn(n);
|
|
3001
3014
|
m.ael(a, r, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => m.rel(a, r, l, c));
|
|
@@ -3013,8 +3026,8 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3013
3026
|
}, Ye = /* @__PURE__ */ new WeakMap(), Hn = (i, t, e) => {
|
|
3014
3027
|
let s = At.get(i);
|
|
3015
3028
|
Mn && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, At.set(i, s);
|
|
3016
|
-
},
|
|
3017
|
-
let n =
|
|
3029
|
+
}, Fn = (i, t, e, s) => {
|
|
3030
|
+
let n = zi(t, e), r = At.get(n);
|
|
3018
3031
|
if (i = i.nodeType === 11 ? i : A, r)
|
|
3019
3032
|
if (typeof r == "string") {
|
|
3020
3033
|
i = i.head || i;
|
|
@@ -3022,10 +3035,10 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3022
3035
|
o || Ye.set(i, o = /* @__PURE__ */ new Set()), o.has(n) || (a = A.createElement("style"), a.innerHTML = r, i.insertBefore(a, i.querySelector("link")), o && o.add(n));
|
|
3023
3036
|
} else i.adoptedStyleSheets.includes(r) || (i.adoptedStyleSheets = [...i.adoptedStyleSheets, r]);
|
|
3024
3037
|
return n;
|
|
3025
|
-
},
|
|
3026
|
-
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = M("attachStyles", t.$tagName$), r =
|
|
3038
|
+
}, zn = (i) => {
|
|
3039
|
+
const t = i.$cmpMeta$, e = i.$hostElement$, s = t.$flags$, n = M("attachStyles", t.$tagName$), r = Fn(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, i.$modeName$);
|
|
3027
3040
|
s & 10 && (e["s-sc"] = r, e.classList.add(r + "-h"), s & 2 && e.classList.add(r + "-s")), n();
|
|
3028
|
-
},
|
|
3041
|
+
}, zi = (i, t) => "sc-" + (t && i.$flags$ & 32 ? i.$tagName$ + "-" + t : i.$tagName$), Dn = (i) => vr.map((t) => t(i)).find((t) => !!t), qe = {}, Wn = "http://www.w3.org/2000/svg", Yn = "http://www.w3.org/1999/xhtml", qn = (i) => i != null, ue = (i) => (i = typeof i, i === "object" || i === "function"), W = (i, t, ...e) => {
|
|
3029
3042
|
let s = null, n = null, r = null, o = !1, a = !1, l = [];
|
|
3030
3043
|
const c = (h) => {
|
|
3031
3044
|
for (let d = 0; d < h.length; d++)
|
|
@@ -3100,7 +3113,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3100
3113
|
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), s == null || s === !1 ? (s !== !1 || i.getAttribute(t) === "") && (c ? i.removeAttributeNS(We, t) : i.removeAttribute(t)) : (!o || r & 4 || n) && !l && (s = s === !0 ? "" : s, c ? i.setAttributeNS(We, t, s) : i.setAttribute(t, s));
|
|
3101
3114
|
}
|
|
3102
3115
|
}
|
|
3103
|
-
}, Xn = /\s/, Ke = (i) => i ? i.split(Xn) : [],
|
|
3116
|
+
}, Xn = /\s/, Ke = (i) => i ? i.split(Xn) : [], Di = (i, t, e, s) => {
|
|
3104
3117
|
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = i && i.$attrs$ || qe, o = t.$attrs$ || qe;
|
|
3105
3118
|
for (s in r)
|
|
3106
3119
|
s in o || Ge(n, s, r[s], void 0, e, t.$flags$);
|
|
@@ -3108,7 +3121,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3108
3121
|
Ge(n, s, r[s], o[s], e, t.$flags$);
|
|
3109
3122
|
}, St = (i, t, e, s) => {
|
|
3110
3123
|
let n = t.$children$[e], r = 0, o, a, l;
|
|
3111
|
-
if (Bi || (ce = !0, n.$tag$ === "slot" && (
|
|
3124
|
+
if (Bi || (ce = !0, n.$tag$ === "slot" && (F && s.classList.add(F + "-s"), n.$flags$ |= n.$children$ ? (
|
|
3112
3125
|
// slot element has fallback content
|
|
3113
3126
|
2
|
|
3114
3127
|
) : (
|
|
@@ -3119,7 +3132,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3119
3132
|
else if (n.$flags$ & 1)
|
|
3120
3133
|
o = n.$elm$ = A.createTextNode("");
|
|
3121
3134
|
else {
|
|
3122
|
-
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = A.createElementNS(y ? Wn : Yn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1),
|
|
3135
|
+
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = A.createElementNS(y ? Wn : Yn, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), Di(null, n, y), qn(F) && o["s-si"] !== F && o.classList.add(o["s-si"] = F), n.$children$)
|
|
3123
3136
|
for (r = 0; r < n.$children$.length; ++r)
|
|
3124
3137
|
a = St(i, n, r, o), a && o.appendChild(a);
|
|
3125
3138
|
n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
|
|
@@ -3139,7 +3152,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3139
3152
|
s[n] && (a = St(null, e, n, i), a && (s[n].$elm$ = a, o.insertBefore(a, de(t))));
|
|
3140
3153
|
}, Yi = (i, t, e, s, n) => {
|
|
3141
3154
|
for (; t <= e; ++t)
|
|
3142
|
-
(s = i[t]) && (n = s.$elm$, Ki(s),
|
|
3155
|
+
(s = i[t]) && (n = s.$elm$, Ki(s), _t = !0, n["s-ol"] ? n["s-ol"].remove() : ot(n, !0), n.remove());
|
|
3143
3156
|
}, Qn = (i, t, e, s) => {
|
|
3144
3157
|
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = s.length - 1, d = s[0], f = s[h], $, g;
|
|
3145
3158
|
for (; n <= l && r <= h; )
|
|
@@ -3152,26 +3165,26 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3152
3165
|
else if (f == null)
|
|
3153
3166
|
f = s[--h];
|
|
3154
3167
|
else if (dt(c, d))
|
|
3155
|
-
|
|
3168
|
+
z(c, d), c = t[++n], d = s[++r];
|
|
3156
3169
|
else if (dt(u, f))
|
|
3157
|
-
|
|
3170
|
+
z(u, f), u = t[--l], f = s[--h];
|
|
3158
3171
|
else if (dt(c, f))
|
|
3159
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(c.$elm$.parentNode, !1),
|
|
3172
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(c.$elm$.parentNode, !1), z(c, f), i.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++n], f = s[--h];
|
|
3160
3173
|
else if (dt(u, d))
|
|
3161
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(u.$elm$.parentNode, !1),
|
|
3174
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && ot(u.$elm$.parentNode, !1), z(u, d), i.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++r];
|
|
3162
3175
|
else {
|
|
3163
3176
|
for (o = -1, a = n; a <= l; ++a)
|
|
3164
3177
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === d.$key$) {
|
|
3165
3178
|
o = a;
|
|
3166
3179
|
break;
|
|
3167
3180
|
}
|
|
3168
|
-
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? $ = St(t && t[r], e, o, i) : (
|
|
3181
|
+
o >= 0 ? (g = t[o], g.$tag$ !== d.$tag$ ? $ = St(t && t[r], e, o, i) : (z(g, d), t[o] = void 0, $ = g.$elm$), d = s[++r]) : ($ = St(t && t[r], e, r, i), d = s[++r]), $ && qi(c.$elm$).insertBefore($, de(c.$elm$));
|
|
3169
3182
|
}
|
|
3170
3183
|
n > l ? Wi(i, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, r, h) : r > h && Yi(t, n, l);
|
|
3171
|
-
}, dt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, de = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode,
|
|
3184
|
+
}, dt = (i, t) => i.$tag$ === t.$tag$ ? i.$tag$ === "slot" ? i.$name$ === t.$name$ : i.$key$ === t.$key$ : !1, de = (i) => i && i["s-ol"] || i, qi = (i) => (i["s-ol"] ? i["s-ol"] : i).parentNode, z = (i, t) => {
|
|
3172
3185
|
const e = t.$elm$ = i.$elm$, s = i.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
|
3173
3186
|
let a;
|
|
3174
|
-
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" ||
|
|
3187
|
+
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" || Di(i, t, y), s !== null && n !== null ? Qn(e, s, t, n) : n !== null ? (i.$text$ !== null && (e.textContent = ""), Wi(e, null, t, n, 0, n.length - 1)) : s !== null && Yi(s, 0, s.length - 1), y && r === "svg" && (y = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : i.$text$ !== o && (e.data = o);
|
|
3175
3188
|
}, Zi = (i) => {
|
|
3176
3189
|
let t = i.childNodes, e, s, n, r, o, a;
|
|
3177
3190
|
for (s = 0, n = t.length; s < n; s++)
|
|
@@ -3195,7 +3208,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3195
3208
|
for (; a < c; a++) {
|
|
3196
3209
|
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
|
3197
3210
|
for (s = e.parentNode.childNodes, n = t["s-sn"], o = s.length - 1; o >= 0; o--)
|
|
3198
|
-
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Xe(e, n) ? (r = x.find((u) => u.$nodeToRelocate$ === e),
|
|
3211
|
+
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (Xe(e, n) ? (r = x.find((u) => u.$nodeToRelocate$ === e), _t = !0, e["s-sn"] = e["s-sn"] || n, r ? r.$slotRefNode$ = t : x.push({
|
|
3199
3212
|
$slotRefNode$: t,
|
|
3200
3213
|
$nodeToRelocate$: e
|
|
3201
3214
|
}), e["s-sr"] && x.map((u) => {
|
|
@@ -3209,7 +3222,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3209
3222
|
i.$attrs$ && i.$attrs$.ref && i.$attrs$.ref(null), i.$children$ && i.$children$.map(Ki);
|
|
3210
3223
|
}, Jn = (i, t) => {
|
|
3211
3224
|
const e = i.$hostElement$, s = i.$cmpMeta$, n = i.$vnode$ || xt(null, null), r = Zn(t) ? t : W(null, null, t);
|
|
3212
|
-
Pt = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e,
|
|
3225
|
+
Pt = e.tagName, s.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = e[o])), r.$tag$ = null, r.$flags$ |= 4, i.$vnode$ = r, r.$elm$ = n.$elm$ = e.shadowRoot || e, F = e["s-sc"], Ni = e["s-cr"], Bi = (s.$flags$ & 1) !== 0, _t = !1, z(n, r);
|
|
3213
3226
|
{
|
|
3214
3227
|
if (m.$flags$ |= 1, ce) {
|
|
3215
3228
|
Gi(r.$elm$);
|
|
@@ -3227,7 +3240,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3227
3240
|
} else
|
|
3228
3241
|
a.nodeType === 1 && (a.hidden = !0);
|
|
3229
3242
|
}
|
|
3230
|
-
|
|
3243
|
+
_t && Zi(r.$elm$), m.$flags$ &= -2, x.length = 0;
|
|
3231
3244
|
}
|
|
3232
3245
|
}, Vn = (i) => i, tr = (i, t, e) => {
|
|
3233
3246
|
const s = Vn(i);
|
|
@@ -3249,16 +3262,16 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3249
3262
|
return t ? r = Y(n, "componentWillLoad") : r = Y(n, "componentWillUpdate"), r = Qe(r, () => Y(n, "componentWillRender")), s(), Qe(r, () => nr(i, n, t));
|
|
3250
3263
|
}, nr = async (i, t, e) => {
|
|
3251
3264
|
const s = i.$hostElement$, n = M("update", i.$cmpMeta$.$tagName$);
|
|
3252
|
-
s["s-rc"], e &&
|
|
3265
|
+
s["s-rc"], e && zn(i);
|
|
3253
3266
|
const r = M("render", i.$cmpMeta$.$tagName$);
|
|
3254
3267
|
rr(i, t, s), r(), n(), or(i);
|
|
3255
3268
|
}, rr = (i, t, e) => {
|
|
3256
3269
|
try {
|
|
3257
|
-
|
|
3270
|
+
De = t, t = t.render && t.render(), i.$flags$ &= -17, i.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide || Jn(i, t));
|
|
3258
3271
|
} catch (a) {
|
|
3259
3272
|
ct(a, i.$hostElement$);
|
|
3260
3273
|
}
|
|
3261
|
-
return
|
|
3274
|
+
return De = null, null;
|
|
3262
3275
|
}, or = (i) => {
|
|
3263
3276
|
const t = i.$cmpMeta$.$tagName$, e = i.$hostElement$, s = M("postUpdate", t), n = e;
|
|
3264
3277
|
i.$ancestorComponent$, Y(n, "componentDidRender"), i.$flags$ & 64 ? (Y(n, "componentDidUpdate"), s()) : (i.$flags$ |= 64, Y(n, "componentDidLoad"), s());
|
|
@@ -3333,8 +3346,8 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3333
3346
|
}, hr = async (i, t, e, s, n) => {
|
|
3334
3347
|
if (!(t.$flags$ & 32) && (n = i.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
|
3335
3348
|
let o = n.style;
|
|
3336
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
|
3337
|
-
const a =
|
|
3349
|
+
typeof o != "string" && (o = o[t.$modeName$ = Dn(i)]);
|
|
3350
|
+
const a = zi(e, t.$modeName$);
|
|
3338
3351
|
if (!At.has(a)) {
|
|
3339
3352
|
const l = M("registerStyles", e.$tagName$);
|
|
3340
3353
|
Hn(a, o, !!(e.$flags$ & 1)), l();
|
|
@@ -3345,7 +3358,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3345
3358
|
}, fr = (i) => {
|
|
3346
3359
|
if (!(m.$flags$ & 1)) {
|
|
3347
3360
|
const t = Lt(i), e = t.$cmpMeta$, s = M("connectedCallback", e.$tagName$);
|
|
3348
|
-
t.$flags$ & 1 ? (
|
|
3361
|
+
t.$flags$ & 1 ? (Fi(i, t, e.$listeners$), dr(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && pr(i), e.$members$ && Object.entries(e.$members$).map(([n, [r]]) => {
|
|
3349
3362
|
if (r & 31 && i.hasOwnProperty(n)) {
|
|
3350
3363
|
const o = i[n];
|
|
3351
3364
|
delete i[n], i[n] = o;
|
|
@@ -3391,7 +3404,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3391
3404
|
$cmpMeta$: t,
|
|
3392
3405
|
$instanceValues$: /* @__PURE__ */ new Map()
|
|
3393
3406
|
};
|
|
3394
|
-
return
|
|
3407
|
+
return Fi(i, e, t.$listeners$), Ji.set(i, e);
|
|
3395
3408
|
}, Je = (i, t) => t in i, ct = (i, t) => (0, console.error)(i, t), At = /* @__PURE__ */ new Map(), vr = [], Ve = [], Vi = [], mr = (i, t) => (e) => {
|
|
3396
3409
|
i.push(e), Xt || (Xt = !0, t && m.$flags$ & 4 ? yr(Qt) : m.raf(Qt));
|
|
3397
3410
|
}, ti = (i) => {
|
|
@@ -3404,7 +3417,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3404
3417
|
i.length = 0;
|
|
3405
3418
|
}, Qt = () => {
|
|
3406
3419
|
ti(Ve), ti(Vi), (Xt = Ve.length > 0) && m.raf(Qt);
|
|
3407
|
-
}, yr = (i) => Un().then(i), br = /* @__PURE__ */ mr(Vi, !0),
|
|
3420
|
+
}, yr = (i) => Un().then(i), br = /* @__PURE__ */ mr(Vi, !0), wr = (i = {}) => {
|
|
3408
3421
|
const { content: t = "", title: e, attributes: s = [] } = i;
|
|
3409
3422
|
let n = "", r = [
|
|
3410
3423
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
|
@@ -3412,7 +3425,7 @@ const It = typeof window < "u" ? window : {}, A = It.document || { head: {} }, H
|
|
|
3412
3425
|
...s
|
|
3413
3426
|
];
|
|
3414
3427
|
return e && (n = `<title>${e}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
|
3415
|
-
},
|
|
3428
|
+
}, _r = (i) => i.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
|
3416
3429
|
function xr(i) {
|
|
3417
3430
|
return `${i.getFullYear()}.${i.getMonth() + 1}`;
|
|
3418
3431
|
}
|
|
@@ -3483,8 +3496,8 @@ const Or = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
|
3483
3496
|
...t,
|
|
3484
3497
|
{ name: "aria-hidden", value: "true" }
|
|
3485
3498
|
];
|
|
3486
|
-
const e =
|
|
3487
|
-
content:
|
|
3499
|
+
const e = wr({
|
|
3500
|
+
content: _r(i),
|
|
3488
3501
|
attributes: t,
|
|
3489
3502
|
title: this.allyTitle
|
|
3490
3503
|
});
|
|
@@ -3574,7 +3587,7 @@ const ei = Mi(S), me = class me extends ei {
|
|
|
3574
3587
|
<button
|
|
3575
3588
|
@click=${this._onToggleOptionsMenuClick}
|
|
3576
3589
|
class="widget-header__action-button"
|
|
3577
|
-
${
|
|
3590
|
+
${wt(this.optionsTriggerRef)}
|
|
3578
3591
|
title=${s.getOrFallback("widget-header.ellipses", "Options")}
|
|
3579
3592
|
data-testid="options-button"
|
|
3580
3593
|
>
|
|
@@ -3582,7 +3595,7 @@ const ei = Mi(S), me = class me extends ei {
|
|
|
3582
3595
|
</button>
|
|
3583
3596
|
${this.optionsIsVisible ? b` <div
|
|
3584
3597
|
class="options-menu"
|
|
3585
|
-
${
|
|
3598
|
+
${wt(this.optionsRef)}
|
|
3586
3599
|
${Ri({
|
|
3587
3600
|
keyframeOptions: { duration: 120 },
|
|
3588
3601
|
in: Me,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Wt=function(i,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Wt(i,t)};function K(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function es(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(u){try{c(s.next(u))}catch(h){o(h)}}function l(u){try{c(s.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):n(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function si(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,n&&(r=c[0]&2?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],n=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function q(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function qt(i,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return i.concat(r||Array.prototype.slice.call(t))}function
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});var Wt=function(i,t){return Wt=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,s){e.__proto__=s}||function(e,s){for(var n in s)Object.prototype.hasOwnProperty.call(s,n)&&(e[n]=s[n])},Wt(i,t)};function K(i,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Wt(i,t);function e(){this.constructor=i}i.prototype=t===null?Object.create(t):(e.prototype=t.prototype,new e)}function es(i,t,e,s){function n(r){return r instanceof e?r:new e(function(o){o(r)})}return new(e||(e=Promise))(function(r,o){function a(u){try{c(s.next(u))}catch(h){o(h)}}function l(u){try{c(s.throw(u))}catch(h){o(h)}}function c(u){u.done?r(u.value):n(u.value).then(a,l)}c((s=s.apply(i,t||[])).next())})}function si(i,t){var e={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},s,n,r,o=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return o.next=a(0),o.throw=a(1),o.return=a(2),typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(c){return function(u){return l([c,u])}}function l(c){if(s)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(e=0)),e;)try{if(s=1,n&&(r=c[0]&2?n.return:c[0]?n.throw||((r=n.return)&&r.call(n),0):n.next)&&!(r=r.call(n,c[1])).done)return r;switch(n=0,r&&(c=[c[0]&2,r.value]),c[0]){case 0:case 1:r=c;break;case 4:return e.label++,{value:c[1],done:!1};case 5:e.label++,n=c[1],c=[0];continue;case 7:c=e.ops.pop(),e.trys.pop();continue;default:if(r=e.trys,!(r=r.length>0&&r[r.length-1])&&(c[0]===6||c[0]===2)){e=0;continue}if(c[0]===3&&(!r||c[1]>r[0]&&c[1]<r[3])){e.label=c[1];break}if(c[0]===6&&e.label<r[1]){e.label=r[1],r=c;break}if(r&&e.label<r[2]){e.label=r[2],e.ops.push(c);break}r[2]&&e.ops.pop(),e.trys.pop();continue}c=t.call(i,e)}catch(u){c=[6,u],n=0}finally{s=r=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function q(i){var t=typeof Symbol=="function"&&Symbol.iterator,e=t&&i[t],s=0;if(e)return e.call(i);if(i&&typeof i.length=="number")return{next:function(){return i&&s>=i.length&&(i=void 0),{value:i&&i[s++],done:!i}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Yt(i,t){var e=typeof Symbol=="function"&&i[Symbol.iterator];if(!e)return i;var s=e.call(i),n,r=[],o;try{for(;(t===void 0||t-- >0)&&!(n=s.next()).done;)r.push(n.value)}catch(a){o={error:a}}finally{try{n&&!n.done&&(e=s.return)&&e.call(s)}finally{if(o)throw o.error}}return r}function qt(i,t,e){if(e||arguments.length===2)for(var s=0,n=t.length,r;s<n;s++)(r||!(s in t))&&(r||(r=Array.prototype.slice.call(t,0,s)),r[s]=t[s]);return i.concat(r||Array.prototype.slice.call(t))}function D(i){return this instanceof D?(this.v=i,this):new D(i)}function is(i,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var s=e.apply(i,t||[]),n,r=[];return n=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",o),n[Symbol.asyncIterator]=function(){return this},n;function o(f){return function($){return Promise.resolve($).then(f,h)}}function a(f,$){s[f]&&(n[f]=function(g){return new Promise(function(ht,Q){r.push([f,g,ht,Q])>1||l(f,g)})},$&&(n[f]=$(n[f])))}function l(f,$){try{c(s[f]($))}catch(g){d(r[0][3],g)}}function c(f){f.value instanceof D?Promise.resolve(f.value.v).then(u,h):d(r[0][2],f)}function u(f){l("next",f)}function h(f){l("throw",f)}function d(f,$){f($),r.shift(),r.length&&l(r[0][0],r[0][1])}}function ss(i){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=i[Symbol.asyncIterator],e;return t?t.call(i):(i=typeof q=="function"?q(i):i[Symbol.iterator](),e={},s("next"),s("throw"),s("return"),e[Symbol.asyncIterator]=function(){return this},e);function s(r){e[r]=i[r]&&function(o){return new Promise(function(a,l){o=i[r](o),n(a,l,o.done,o.value)})}}function n(r,o,a,l){Promise.resolve(l).then(function(c){r({value:c,done:a})},o)}}function v(i){return typeof i=="function"}function ni(i){var t=function(s){Error.call(s),s.stack=new Error().stack},e=i(t);return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var Mt=ni(function(i){return function(e){i(this),this.message=e?e.length+` errors occurred during unsubscription:
|
|
2
2
|
`+e.map(function(s,n){return n+1+") "+s.toString()}).join(`
|
|
3
|
-
`):"",this.name="UnsubscriptionError",this.errors=e}});function Zt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Et=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=q(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){r=g instanceof Mt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=q(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ye($)}catch(g){r=r??[],g instanceof Mt?r=qt(qt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new Mt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ye(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Zt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Zt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),ri=Et.EMPTY;function oi(i){return i instanceof Et||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function ye(i){v(i)?i():i.unsubscribe()}var ns={Promise:void 0},rs={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,qt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function ai(i){rs.setTimeout(function(){throw i})}function be(){}function pt(i){i()}var te=function(i){K(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,oi(e)&&e.add(s)):s.destination=ls,s}return t.create=function(e,s,n){return new Gt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Et),os=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){dt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){dt(s)}else dt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){dt(e)}},i}(),Gt=function(i){K(t,i);function t(e,s,n){var r=i.call(this)||this,o;return v(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new os(o),r}return t}(te);function dt(i){ai(i)}function as(i){throw i}var ls={closed:!0,next:be,error:as,complete:be},ee=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function li(i){return i}function cs(i){return i.length===0?li:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(s)},e)}}var w=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,s){var n=this,r=hs(t)?t:new Gt(t,e,s);return pt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=_e(e),new e(function(n,r){var o=new Gt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[ee]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cs(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=_e(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i}();function _e(i){var t;return(t=i??ns.Promise)!==null&&t!==void 0?t:Promise}function us(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function hs(i){return i&&i instanceof te||us(i)&&oi(i)}function ds(i){return v(i==null?void 0:i.lift)}function Ot(i){return function(t){if(ds(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function $t(i,t,e,s,n){return new fs(i,t,e,s,n)}var fs=function(i){K(t,i);function t(e,s,n,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(te),ps=ni(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Tt=function(i){K(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var s=new we(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new ps},t.prototype.next=function(e){var s=this;pt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=q(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;pt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;pt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var s=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?ri:(this.currentObservers=null,a.push(e),new Et(function(){s.currentObservers=null,Zt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new w;return e.source=this,e},t.create=function(e,s){return new we(e,s)},t}(w),we=function(i){K(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:ri},t}(Tt),ci=function(i){K(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(Tt),gs=new w(function(i){return i.complete()});function $s(i){return i&&v(i.schedule)}function ui(i){return i[i.length-1]}function vs(i){return $s(ui(i))?i.pop():void 0}function ms(i,t){return typeof ui(i)=="number"?i.pop():t}var hi=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function di(i){return v(i==null?void 0:i.then)}function fi(i){return v(i[ee])}function pi(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function gi(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ys(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $i=ys();function vi(i){return v(i==null?void 0:i[$i])}function mi(i){return is(this,arguments,function(){var e,s,n,r;return si(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,F(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,F(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,F(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function yi(i){return v(i==null?void 0:i.getReader)}function X(i){if(i instanceof w)return i;if(i!=null){if(fi(i))return bs(i);if(hi(i))return _s(i);if(di(i))return ws(i);if(pi(i))return bi(i);if(vi(i))return xs(i);if(yi(i))return Ss(i)}throw gi(i)}function bs(i){return new w(function(t){var e=i[ee]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function _s(i){return new w(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function ws(i){return new w(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ai)})}function xs(i){return new w(function(t){var e,s;try{for(var n=q(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function bi(i){return new w(function(t){As(i,t).catch(function(e){return t.error(e)})})}function Ss(i){return bi(mi(i))}function As(i,t){var e,s,n,r;return es(this,void 0,void 0,function(){var o,a;return si(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=ss(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function L(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function _i(i,t){return t===void 0&&(t=0),Ot(function(e,s){e.subscribe($t(s,function(n){return L(s,i,function(){return s.next(n)},t)},function(){return L(s,i,function(){return s.complete()},t)},function(n){return L(s,i,function(){return s.error(n)},t)}))})}function wi(i,t){return t===void 0&&(t=0),Ot(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function ks(i,t){return X(i).pipe(wi(t),_i(t))}function Cs(i,t){return X(i).pipe(wi(t),_i(t))}function Es(i,t){return new w(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Os(i,t){return new w(function(e){var s;return L(e,t,function(){s=i[$i](),L(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return v(s==null?void 0:s.return)&&s.return()}})}function xi(i,t){if(!i)throw new Error("Iterable cannot be null");return new w(function(e){L(e,t,function(){var s=i[Symbol.asyncIterator]();L(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function Ts(i,t){return xi(mi(i),t)}function Ps(i,t){if(i!=null){if(fi(i))return ks(i,t);if(hi(i))return Es(i,t);if(di(i))return Cs(i,t);if(pi(i))return xi(i,t);if(vi(i))return Os(i,t);if(yi(i))return Ts(i,t)}throw gi(i)}function Is(i,t){return t?Ps(i,t):X(i)}function Ls(i,t){return Ot(function(e,s){var n=0;e.subscribe($t(s,function(r){s.next(i.call(t,r,n++))}))})}function Rs(i,t,e,s,n,r,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?$(g):l.push(g)},$=function(g){c++;var ht=!1;X(e(g,u++)).subscribe($t(t,function(Q){t.next(Q)},function(){ht=!0},void 0,function(){if(ht)try{c--;for(var Q=function(){var Ut=l.shift();o||$(Ut)};l.length&&c<s;)Q();d()}catch(Ut){t.error(Ut)}}))};return i.subscribe($t(t,f,function(){h=!0,d()})),function(){}}function Si(i,t,e){return e===void 0&&(e=1/0),v(t)?Si(function(s,n){return Ls(function(r,o){return t(s,r,n,o)})(X(i(s,n)))},e):(typeof t=="number"&&(e=t),Ot(function(s,n){return Rs(s,n,i,e)}))}function Us(i){return i===void 0&&(i=1/0),Si(li,i)}function Ms(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=vs(i),s=ms(i,1/0),n=i;return n.length?n.length===1?X(n[0]):Us(s)(Is(n,e)):gs}/**
|
|
3
|
+
`):"",this.name="UnsubscriptionError",this.errors=e}});function Zt(i,t){if(i){var e=i.indexOf(t);0<=e&&i.splice(e,1)}}var Et=function(){function i(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return i.prototype.unsubscribe=function(){var t,e,s,n,r;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var a=q(o),l=a.next();!l.done;l=a.next()){var c=l.value;c.remove(this)}}catch(g){t={error:g}}finally{try{l&&!l.done&&(e=a.return)&&e.call(a)}finally{if(t)throw t.error}}else o.remove(this);var u=this.initialTeardown;if(v(u))try{u()}catch(g){r=g instanceof Mt?g.errors:[g]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var d=q(h),f=d.next();!f.done;f=d.next()){var $=f.value;try{ye($)}catch(g){r=r??[],g instanceof Mt?r=qt(qt([],Yt(r)),Yt(g.errors)):r.push(g)}}}catch(g){s={error:g}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(s)throw s.error}}}if(r)throw new Mt(r)}},i.prototype.add=function(t){var e;if(t&&t!==this)if(this.closed)ye(t);else{if(t instanceof i){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}},i.prototype._hasParent=function(t){var e=this._parentage;return e===t||Array.isArray(e)&&e.includes(t)},i.prototype._addParent=function(t){var e=this._parentage;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t},i.prototype._removeParent=function(t){var e=this._parentage;e===t?this._parentage=null:Array.isArray(e)&&Zt(e,t)},i.prototype.remove=function(t){var e=this._finalizers;e&&Zt(e,t),t instanceof i&&t._removeParent(this)},i.EMPTY=function(){var t=new i;return t.closed=!0,t}(),i}(),ri=Et.EMPTY;function oi(i){return i instanceof Et||i&&"closed"in i&&v(i.remove)&&v(i.add)&&v(i.unsubscribe)}function ye(i){v(i)?i():i.unsubscribe()}var ns={Promise:void 0},rs={setTimeout:function(i,t){for(var e=[],s=2;s<arguments.length;s++)e[s-2]=arguments[s];return setTimeout.apply(void 0,qt([i,t],Yt(e)))},clearTimeout:function(i){return clearTimeout(i)},delegate:void 0};function ai(i){rs.setTimeout(function(){throw i})}function be(){}function pt(i){i()}var te=function(i){K(t,i);function t(e){var s=i.call(this)||this;return s.isStopped=!1,e?(s.destination=e,oi(e)&&e.add(s)):s.destination=ls,s}return t.create=function(e,s,n){return new Gt(e,s,n)},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,i.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){try{this.destination.error(e)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(Et),os=function(){function i(t){this.partialObserver=t}return i.prototype.next=function(t){var e=this.partialObserver;if(e.next)try{e.next(t)}catch(s){dt(s)}},i.prototype.error=function(t){var e=this.partialObserver;if(e.error)try{e.error(t)}catch(s){dt(s)}else dt(t)},i.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(e){dt(e)}},i}(),Gt=function(i){K(t,i);function t(e,s,n){var r=i.call(this)||this,o;return v(e)||!e?o={next:e??void 0,error:s??void 0,complete:n??void 0}:o=e,r.destination=new os(o),r}return t}(te);function dt(i){ai(i)}function as(i){throw i}var ls={closed:!0,next:be,error:as,complete:be},ee=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function li(i){return i}function cs(i){return i.length===0?li:i.length===1?i[0]:function(e){return i.reduce(function(s,n){return n(s)},e)}}var _=function(){function i(t){t&&(this._subscribe=t)}return i.prototype.lift=function(t){var e=new i;return e.source=this,e.operator=t,e},i.prototype.subscribe=function(t,e,s){var n=this,r=hs(t)?t:new Gt(t,e,s);return pt(function(){var o=n,a=o.operator,l=o.source;r.add(a?a.call(r,l):l?n._subscribe(r):n._trySubscribe(r))}),r},i.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.error(e)}},i.prototype.forEach=function(t,e){var s=this;return e=we(e),new e(function(n,r){var o=new Gt({next:function(a){try{t(a)}catch(l){r(l),o.unsubscribe()}},error:r,complete:n});s.subscribe(o)})},i.prototype._subscribe=function(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)},i.prototype[ee]=function(){return this},i.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return cs(t)(this)},i.prototype.toPromise=function(t){var e=this;return t=we(t),new t(function(s,n){var r;e.subscribe(function(o){return r=o},function(o){return n(o)},function(){return s(r)})})},i.create=function(t){return new i(t)},i}();function we(i){var t;return(t=i??ns.Promise)!==null&&t!==void 0?t:Promise}function us(i){return i&&v(i.next)&&v(i.error)&&v(i.complete)}function hs(i){return i&&i instanceof te||us(i)&&oi(i)}function ds(i){return v(i==null?void 0:i.lift)}function Ot(i){return function(t){if(ds(t))return t.lift(function(e){try{return i(e,this)}catch(s){this.error(s)}});throw new TypeError("Unable to lift unknown Observable type")}}function $t(i,t,e,s,n){return new fs(i,t,e,s,n)}var fs=function(i){K(t,i);function t(e,s,n,r,o,a){var l=i.call(this,e)||this;return l.onFinalize=o,l.shouldUnsubscribe=a,l._next=s?function(c){try{s(c)}catch(u){e.error(u)}}:i.prototype._next,l._error=r?function(c){try{r(c)}catch(u){e.error(u)}finally{this.unsubscribe()}}:i.prototype._error,l._complete=n?function(){try{n()}catch(c){e.error(c)}finally{this.unsubscribe()}}:i.prototype._complete,l}return t.prototype.unsubscribe=function(){var e;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var s=this.closed;i.prototype.unsubscribe.call(this),!s&&((e=this.onFinalize)===null||e===void 0||e.call(this))}},t}(te),ps=ni(function(i){return function(){i(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Tt=function(i){K(t,i);function t(){var e=i.call(this)||this;return e.closed=!1,e.currentObservers=null,e.observers=[],e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return t.prototype.lift=function(e){var s=new _e(this,this);return s.operator=e,s},t.prototype._throwIfClosed=function(){if(this.closed)throw new ps},t.prototype.next=function(e){var s=this;pt(function(){var n,r;if(s._throwIfClosed(),!s.isStopped){s.currentObservers||(s.currentObservers=Array.from(s.observers));try{for(var o=q(s.currentObservers),a=o.next();!a.done;a=o.next()){var l=a.value;l.next(e)}}catch(c){n={error:c}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}})},t.prototype.error=function(e){var s=this;pt(function(){if(s._throwIfClosed(),!s.isStopped){s.hasError=s.isStopped=!0,s.thrownError=e;for(var n=s.observers;n.length;)n.shift().error(e)}})},t.prototype.complete=function(){var e=this;pt(function(){if(e._throwIfClosed(),!e.isStopped){e.isStopped=!0;for(var s=e.observers;s.length;)s.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var e;return((e=this.observers)===null||e===void 0?void 0:e.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(e){return this._throwIfClosed(),i.prototype._trySubscribe.call(this,e)},t.prototype._subscribe=function(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)},t.prototype._innerSubscribe=function(e){var s=this,n=this,r=n.hasError,o=n.isStopped,a=n.observers;return r||o?ri:(this.currentObservers=null,a.push(e),new Et(function(){s.currentObservers=null,Zt(a,e)}))},t.prototype._checkFinalizedStatuses=function(e){var s=this,n=s.hasError,r=s.thrownError,o=s.isStopped;n?e.error(r):o&&e.complete()},t.prototype.asObservable=function(){var e=new _;return e.source=this,e},t.create=function(e,s){return new _e(e,s)},t}(_),_e=function(i){K(t,i);function t(e,s){var n=i.call(this)||this;return n.destination=e,n.source=s,n}return t.prototype.next=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.next)===null||n===void 0||n.call(s,e)},t.prototype.error=function(e){var s,n;(n=(s=this.destination)===null||s===void 0?void 0:s.error)===null||n===void 0||n.call(s,e)},t.prototype.complete=function(){var e,s;(s=(e=this.destination)===null||e===void 0?void 0:e.complete)===null||s===void 0||s.call(e)},t.prototype._subscribe=function(e){var s,n;return(n=(s=this.source)===null||s===void 0?void 0:s.subscribe(e))!==null&&n!==void 0?n:ri},t}(Tt),ci=function(i){K(t,i);function t(e){var s=i.call(this)||this;return s._value=e,s}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(e){var s=i.prototype._subscribe.call(this,e);return!s.closed&&e.next(this._value),s},t.prototype.getValue=function(){var e=this,s=e.hasError,n=e.thrownError,r=e._value;if(s)throw n;return this._throwIfClosed(),r},t.prototype.next=function(e){i.prototype.next.call(this,this._value=e)},t}(Tt),gs=new _(function(i){return i.complete()});function $s(i){return i&&v(i.schedule)}function ui(i){return i[i.length-1]}function vs(i){return $s(ui(i))?i.pop():void 0}function ms(i,t){return typeof ui(i)=="number"?i.pop():t}var hi=function(i){return i&&typeof i.length=="number"&&typeof i!="function"};function di(i){return v(i==null?void 0:i.then)}function fi(i){return v(i[ee])}function pi(i){return Symbol.asyncIterator&&v(i==null?void 0:i[Symbol.asyncIterator])}function gi(i){return new TypeError("You provided "+(i!==null&&typeof i=="object"?"an invalid object":"'"+i+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ys(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var $i=ys();function vi(i){return v(i==null?void 0:i[$i])}function mi(i){return is(this,arguments,function(){var e,s,n,r;return si(this,function(o){switch(o.label){case 0:e=i.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,D(e.read())];case 3:return s=o.sent(),n=s.value,r=s.done,r?[4,D(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,D(n)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return e.releaseLock(),[7];case 10:return[2]}})})}function yi(i){return v(i==null?void 0:i.getReader)}function X(i){if(i instanceof _)return i;if(i!=null){if(fi(i))return bs(i);if(hi(i))return ws(i);if(di(i))return _s(i);if(pi(i))return bi(i);if(vi(i))return xs(i);if(yi(i))return Ss(i)}throw gi(i)}function bs(i){return new _(function(t){var e=i[ee]();if(v(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function ws(i){return new _(function(t){for(var e=0;e<i.length&&!t.closed;e++)t.next(i[e]);t.complete()})}function _s(i){return new _(function(t){i.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,ai)})}function xs(i){return new _(function(t){var e,s;try{for(var n=q(i),r=n.next();!r.done;r=n.next()){var o=r.value;if(t.next(o),t.closed)return}}catch(a){e={error:a}}finally{try{r&&!r.done&&(s=n.return)&&s.call(n)}finally{if(e)throw e.error}}t.complete()})}function bi(i){return new _(function(t){As(i,t).catch(function(e){return t.error(e)})})}function Ss(i){return bi(mi(i))}function As(i,t){var e,s,n,r;return es(this,void 0,void 0,function(){var o,a;return si(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),e=ss(i),l.label=1;case 1:return[4,e.next()];case 2:if(s=l.sent(),!!s.done)return[3,4];if(o=s.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),n={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),s&&!s.done&&(r=e.return)?[4,r.call(e)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(n)throw n.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function L(i,t,e,s,n){s===void 0&&(s=0),n===void 0&&(n=!1);var r=t.schedule(function(){e(),n?i.add(this.schedule(null,s)):this.unsubscribe()},s);if(i.add(r),!n)return r}function wi(i,t){return t===void 0&&(t=0),Ot(function(e,s){e.subscribe($t(s,function(n){return L(s,i,function(){return s.next(n)},t)},function(){return L(s,i,function(){return s.complete()},t)},function(n){return L(s,i,function(){return s.error(n)},t)}))})}function _i(i,t){return t===void 0&&(t=0),Ot(function(e,s){s.add(i.schedule(function(){return e.subscribe(s)},t))})}function ks(i,t){return X(i).pipe(_i(t),wi(t))}function Cs(i,t){return X(i).pipe(_i(t),wi(t))}function Es(i,t){return new _(function(e){var s=0;return t.schedule(function(){s===i.length?e.complete():(e.next(i[s++]),e.closed||this.schedule())})})}function Os(i,t){return new _(function(e){var s;return L(e,t,function(){s=i[$i](),L(e,t,function(){var n,r,o;try{n=s.next(),r=n.value,o=n.done}catch(a){e.error(a);return}o?e.complete():e.next(r)},0,!0)}),function(){return v(s==null?void 0:s.return)&&s.return()}})}function xi(i,t){if(!i)throw new Error("Iterable cannot be null");return new _(function(e){L(e,t,function(){var s=i[Symbol.asyncIterator]();L(e,t,function(){s.next().then(function(n){n.done?e.complete():e.next(n.value)})},0,!0)})})}function Ts(i,t){return xi(mi(i),t)}function Ps(i,t){if(i!=null){if(fi(i))return ks(i,t);if(hi(i))return Es(i,t);if(di(i))return Cs(i,t);if(pi(i))return xi(i,t);if(vi(i))return Os(i,t);if(yi(i))return Ts(i,t)}throw gi(i)}function Is(i,t){return t?Ps(i,t):X(i)}function Ls(i,t){return Ot(function(e,s){var n=0;e.subscribe($t(s,function(r){s.next(i.call(t,r,n++))}))})}function Rs(i,t,e,s,n,r,o,a){var l=[],c=0,u=0,h=!1,d=function(){h&&!l.length&&!c&&t.complete()},f=function(g){return c<s?$(g):l.push(g)},$=function(g){c++;var ht=!1;X(e(g,u++)).subscribe($t(t,function(Q){t.next(Q)},function(){ht=!0},void 0,function(){if(ht)try{c--;for(var Q=function(){var Ut=l.shift();o||$(Ut)};l.length&&c<s;)Q();d()}catch(Ut){t.error(Ut)}}))};return i.subscribe($t(t,f,function(){h=!0,d()})),function(){}}function Si(i,t,e){return e===void 0&&(e=1/0),v(t)?Si(function(s,n){return Ls(function(r,o){return t(s,r,n,o)})(X(i(s,n)))},e):(typeof t=="number"&&(e=t),Ot(function(s,n){return Rs(s,n,i,e)}))}function Us(i){return i===void 0&&(i=1/0),Si(li,i)}function Ms(){for(var i=[],t=0;t<arguments.length;t++)i[t]=arguments[t];var e=vs(i),s=ms(i,1/0),n=i;return n.length?n.length===1?X(n[0]):Us(s)(Is(n,e)):gs}/**
|
|
4
4
|
* @license
|
|
5
5
|
* Copyright 2019 Google LLC
|
|
6
6
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
* @license
|
|
9
9
|
* Copyright 2017 Google LLC
|
|
10
10
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
11
|
-
*/const{is:Bs,defineProperty:Hs,getOwnPropertyDescriptor:
|
|
11
|
+
*/const{is:Bs,defineProperty:Hs,getOwnPropertyDescriptor:Fs,getOwnPropertyNames:zs,getOwnPropertySymbols:Ds,getPrototypeOf:Ws}=Object,O=globalThis,Ae=O.trustedTypes,Ys=Ae?Ae.emptyScript:"",jt=O.reactiveElementPolyfillSupport,V=(i,t)=>i,vt={toAttribute(i,t){switch(t){case Boolean:i=i?Ys:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch{e=null}}return e}},ne=(i,t)=>!Bs(i,t),ke={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:ne};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),O.litPropertyMetadata??(O.litPropertyMetadata=new WeakMap);let B=class 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=ke){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const s=Symbol(),n=this.getPropertyDescriptor(t,s,e);n!==void 0&&Hs(this.prototype,t,n)}}static getPropertyDescriptor(t,e,s){const{get:n,set:r}=Fs(this.prototype,t)??{get(){return this[e]},set(o){this[e]=o}};return{get(){return n==null?void 0:n.call(this)},set(o){const a=n==null?void 0:n.call(this);r.call(this,o),this.requestUpdate(t,a,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ke}static _$Ei(){if(this.hasOwnProperty(V("elementProperties")))return;const t=Ws(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(V("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(V("properties"))){const e=this.properties,s=[...zs(e),...Ds(e)];for(const n of s)this.createProperty(n,e[n])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[s,n]of e)this.elementProperties.set(s,n)}this._$Eh=new Map;for(const[e,s]of this.elementProperties){const n=this._$Eu(e,s);n!==void 0&&this._$Eh.set(n,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const n of s)e.unshift(Se(n))}else t!==void 0&&e.push(Se(t));return e}static _$Eu(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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._$ES=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._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&((e=t.hostConnected)==null||e.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return Ns(t,this.constructor.elementStyles),t}connectedCallback(){var t;this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostConnected)==null?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var s;return(s=e.hostDisconnected)==null?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EC(t,e){var r;const s=this.constructor.elementProperties.get(t),n=this.constructor._$Eu(t,s);if(n!==void 0&&s.reflect===!0){const o=(((r=s.converter)==null?void 0:r.toAttribute)!==void 0?s.converter:vt).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(t,e){var r;const s=this.constructor,n=s._$Eh.get(t);if(n!==void 0&&this._$Em!==n){const o=s.getPropertyOptions(n),a=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:vt;this._$Em=n,this[n]=a.fromAttribute(e,o.type),this._$Em=null}}requestUpdate(t,e,s){if(t!==void 0){if(s??(s=this.constructor.getPropertyOptions(t)),!(s.hasChanged??ne)(this[t],e))return;this.P(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,s){this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$Em!==t&&(this._$Ej??(this._$Ej=new Set)).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,o]of this._$Ep)this[r]=o;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,o]of n)o.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],o)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(e)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(s=>{var n;return(n=s.hostUpdated)==null?void 0:n.call(s)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}};B.elementStyles=[],B.shadowRootOptions={mode:"open"},B[V("elementProperties")]=new Map,B[V("finalized")]=new Map,jt==null||jt({ReactiveElement:B}),(O.reactiveElementVersions??(O.reactiveElementVersions=[])).push("2.0.4");/**
|
|
12
12
|
* @license
|
|
13
13
|
* Copyright 2017 Google LLC
|
|
14
14
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -22,11 +22,11 @@
|
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
25
|
-
*/const sn={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:ne},nn=(i=sn,t,e)=>{const{kind:s,metadata:n}=e;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,i)},init(a){return a!==void 0&&this.P(o,void 0,i),a}}}if(s==="setter"){const{name:o}=e;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,i)}}throw Error("Unsupported decorator location: "+s)};function
|
|
25
|
+
*/const sn={attribute:!0,type:String,converter:vt,reflect:!1,hasChanged:ne},nn=(i=sn,t,e)=>{const{kind:s,metadata:n}=e;let r=globalThis.litPropertyMetadata.get(n);if(r===void 0&&globalThis.litPropertyMetadata.set(n,r=new Map),r.set(e.name,i),s==="accessor"){const{name:o}=e;return{set(a){const l=t.get.call(this);t.set.call(this,a),this.requestUpdate(o,l,i)},init(a){return a!==void 0&&this.P(o,void 0,i),a}}}if(s==="setter"){const{name:o}=e;return function(a){const l=this[o];t.call(this,a),this.requestUpdate(o,l,i)}}throw Error("Unsupported decorator location: "+s)};function w(i){return(t,e)=>typeof e=="object"?nn(i,t,e):((s,n,r)=>{const o=n.hasOwnProperty(r);return n.constructor.createProperty(r,o?{...s,wrapped:!0}:s),o?Object.getOwnPropertyDescriptor(n,r):void 0})(i,t,e)}/**
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/function N(i){return
|
|
29
|
+
*/function N(i){return w({...i,state:!0,attribute:!1})}var rn=Object.defineProperty,on=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&rn(t,e,n),n};const fe=class fe extends S{constructor(){super(...arguments),this.anchor="BottomRight"}appendChild(t){var e;return(e=this.shadowRoot)==null||e.appendChild(t),t}render(){return this.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right"),p}};fe.styles=[j`
|
|
30
30
|
:host {
|
|
31
31
|
position: fixed;
|
|
32
32
|
display: flex;
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
bottom: 20px;
|
|
43
43
|
left: 20px;
|
|
44
44
|
}
|
|
45
|
-
`];let yt=fe;on([
|
|
45
|
+
`];let yt=fe;on([w({attribute:!0})],yt.prototype,"anchor");/**
|
|
46
46
|
* @license
|
|
47
47
|
* Copyright 2017 Google LLC
|
|
48
48
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
* @license
|
|
55
55
|
* Copyright 2017 Google LLC
|
|
56
56
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
57
|
-
*/const et=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const n of e)(s=n._$AO)==null||s.call(n,t,!1),et(n,t);return!0},bt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Ii=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),un(t)}};function ln(i){this._$AN!==void 0?(bt(this),this._$AM=i,Ii(this)):this._$AM=i}function cn(i,t=!1,e=0){const s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)et(s[r],!1),bt(s[r]);else s!=null&&(et(s,!1),bt(s));else et(this,i)}const un=i=>{i.type==oe.CHILD&&(i._$AP??(i._$AP=cn),i._$AQ??(i._$AQ=ln))};class Li extends Pi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ii(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,n;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(et(this,t),bt(this))}setValue(t){if(an(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(){}}const hn=new WeakMap;let Le=0;const zt=new Map,Re=new WeakSet,Ue=()=>new Promise(i=>requestAnimationFrame(i)),Me=[{transform:"translateY(-100%) scale(0)",opacity:0}],dn=[{transform:"translateX(100%) scale(0)",opacity:0}],je=(i,t)=>{const e=i-t;return e===0?void 0:e},Ne=(i,t)=>{const e=i/t;return e===1?void 0:e},Dt={left:(i,t)=>{const e=je(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=je(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Ne(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Ne(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},fn={duration:333,easing:"ease-in-out"},pn=["left","top","width","height","opacity","color","background"],Be=new WeakMap;class gn extends Li{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===oe.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return hn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const s=this.u===void 0;return s&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(r=>this.t=!0),this.element=t.element,Be.set(this.element,this)),this.optionsOrCallback=e,(s||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=pn),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=e[n]??(Dt[n]?void 0:s[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,n)=>{if(Array.isArray(s)){if(Array.isArray(n)&&n.length===s.length&&s.every((r,o)=>r===n[o]))return!1}else if(n===s)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Ue;const e=this.O(),s=this.j(this.options.keyframeOptions,e),n=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,n,e);this.log("measured",[this.A,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=zt.get(this.options.inId);if(r){zt.delete(this.options.inId);const{from:o,to:a}=this.N(r,n,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Le++,t.forEach(l=>l.zIndex=Le)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&zt.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Ue(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const r=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,s;t&&((s=(e=this.options).onComplete)==null||s.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const s=Be.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Re.has(this.u);return t||this.u.updateComplete.then(()=>{Re.add(this.u)}),t}j(t,e=this.O()){const s={...fn};return e.forEach(n=>Object.assign(s,n.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const n=s.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const n={},r={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in Dt){const h=Dt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,n.transform=`${n.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(n,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,n[l]=c,r[l]=u)}return n.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const Ri=ae(gn),$n={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},vn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},mn={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
|
|
57
|
+
*/const et=(i,t)=>{var s;const e=i._$AN;if(e===void 0)return!1;for(const n of e)(s=n._$AO)==null||s.call(n,t,!1),et(n,t);return!0},bt=i=>{let t,e;do{if((t=i._$AM)===void 0)break;e=t._$AN,e.delete(i),i=t}while((e==null?void 0:e.size)===0)},Ii=i=>{for(let t;t=i._$AM;i=t){let e=t._$AN;if(e===void 0)t._$AN=e=new Set;else if(e.has(i))break;e.add(i),un(t)}};function ln(i){this._$AN!==void 0?(bt(this),this._$AM=i,Ii(this)):this._$AM=i}function cn(i,t=!1,e=0){const s=this._$AH,n=this._$AN;if(n!==void 0&&n.size!==0)if(t)if(Array.isArray(s))for(let r=e;r<s.length;r++)et(s[r],!1),bt(s[r]);else s!=null&&(et(s,!1),bt(s));else et(this,i)}const un=i=>{i.type==oe.CHILD&&(i._$AP??(i._$AP=cn),i._$AQ??(i._$AQ=ln))};class Li extends Pi{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ii(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,n;t!==this.isConnected&&(this.isConnected=t,t?(s=this.reconnected)==null||s.call(this):(n=this.disconnected)==null||n.call(this)),e&&(et(this,t),bt(this))}setValue(t){if(an(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(){}}const hn=new WeakMap;let Le=0;const Ft=new Map,Re=new WeakSet,Ue=()=>new Promise(i=>requestAnimationFrame(i)),Me=[{transform:"translateY(-100%) scale(0)",opacity:0}],dn=[{transform:"translateX(100%) scale(0)",opacity:0}],je=(i,t)=>{const e=i-t;return e===0?void 0:e},Ne=(i,t)=>{const e=i/t;return e===1?void 0:e},zt={left:(i,t)=>{const e=je(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateX(${e}px)`}},top:(i,t)=>{const e=je(i,t);return{value:e,transform:e==null||isNaN(e)?void 0:`translateY(${e}px)`}},width:(i,t)=>{let e;t===0&&(t=1,e={width:"1px"});const s=Ne(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleX(${s})`}},height:(i,t)=>{let e;t===0&&(t=1,e={height:"1px"});const s=Ne(i,t);return{value:s,overrideFrom:e,transform:s==null||isNaN(s)?void 0:`scaleY(${s})`}}},fn={duration:333,easing:"ease-in-out"},pn=["left","top","width","height","opacity","color","background"],Be=new WeakMap;class gn extends Li{constructor(t){if(super(t),this.t=!1,this.i=null,this.o=null,this.h=!0,this.shouldLog=!1,t.type===oe.CHILD)throw Error("The `animate` directive must be used in attribute position.");this.createFinished()}createFinished(){var t;(t=this.resolveFinished)==null||t.call(this),this.finished=new Promise(e=>{this.l=e})}async resolveFinished(){var t;(t=this.l)==null||t.call(this),this.l=void 0}render(t){return p}getController(){return hn.get(this.u)}isDisabled(){var t;return this.options.disabled||((t=this.getController())==null?void 0:t.disabled)}update(t,[e]){var n;const s=this.u===void 0;return s&&(this.u=(n=t.options)==null?void 0:n.host,this.u.addController(this),this.u.updateComplete.then(r=>this.t=!0),this.element=t.element,Be.set(this.element,this)),this.optionsOrCallback=e,(s||typeof e!="function")&&this.p(e),this.render(e)}p(t){t=t??{};const e=this.getController();e!==void 0&&((t={...e.defaultOptions,...t}).keyframeOptions={...e.defaultOptions.keyframeOptions,...t.keyframeOptions}),t.properties??(t.properties=pn),this.options=t}m(){const t={},e=this.element.getBoundingClientRect(),s=getComputedStyle(this.element);return this.options.properties.forEach(n=>{const r=e[n]??(zt[n]?void 0:s[n]),o=Number(r);t[n]=isNaN(o)?r+"":o}),t}v(){let t,e=!0;return this.options.guard&&(t=this.options.guard(),e=((s,n)=>{if(Array.isArray(s)){if(Array.isArray(n)&&n.length===s.length&&s.every((r,o)=>r===n[o]))return!1}else if(n===s)return!1;return!0})(t,this._)),this.h=this.t&&!this.isDisabled()&&!this.isAnimating()&&e&&this.element.isConnected,this.h&&(this._=Array.isArray(t)?Array.from(t):t),this.h}hostUpdate(){typeof this.optionsOrCallback=="function"&&this.p(this.optionsOrCallback()),this.v()&&(this.A=this.m(),this.i=this.i??this.element.parentNode,this.o=this.element.nextSibling)}async hostUpdated(){if(!this.h||!this.element.isConnected||this.options.skipInitial&&!this.isHostRendered)return;let t;this.prepare(),await Ue;const e=this.O(),s=this.j(this.options.keyframeOptions,e),n=this.m();if(this.A!==void 0){const{from:r,to:o}=this.N(this.A,n,e);this.log("measured",[this.A,n,r,o]),t=this.calculateKeyframes(r,o)}else{const r=Ft.get(this.options.inId);if(r){Ft.delete(this.options.inId);const{from:o,to:a}=this.N(r,n,e);t=this.calculateKeyframes(o,a),t=this.options.in?[{...this.options.in[0],...t[0]},...this.options.in.slice(1),t[1]]:t,Le++,t.forEach(l=>l.zIndex=Le)}else this.options.in&&(t=[...this.options.in,{}])}this.animate(t,s)}resetStyles(){this.P!==void 0&&(this.element.setAttribute("style",this.P??""),this.P=void 0)}commitStyles(){var t,e;this.P=this.element.getAttribute("style"),(t=this.webAnimation)==null||t.commitStyles(),(e=this.webAnimation)==null||e.cancel()}reconnected(){}async disconnected(){var e;if(!this.h||(this.options.id!==void 0&&Ft.set(this.options.id,this.A),this.options.out===void 0))return;if(this.prepare(),await Ue(),(e=this.i)==null?void 0:e.isConnected){const s=this.o&&this.o.parentNode===this.i?this.o:null;if(this.i.insertBefore(this.element,s),this.options.stabilizeOut){const n=this.m();this.log("stabilizing out");const r=this.A.left-n.left,o=this.A.top-n.top;getComputedStyle(this.element).position!=="static"||r===0&&o===0||(this.element.style.position="relative"),r!==0&&(this.element.style.left=r+"px"),o!==0&&(this.element.style.top=o+"px")}}const t=this.j(this.options.keyframeOptions);await this.animate(this.options.out,t),this.element.remove()}prepare(){this.createFinished()}start(){var t,e;(e=(t=this.options).onStart)==null||e.call(t,this)}didFinish(t){var e,s;t&&((s=(e=this.options).onComplete)==null||s.call(e,this)),this.A=void 0,this.animatingProperties=void 0,this.frames=void 0,this.resolveFinished()}O(){const t=[];for(let e=this.element.parentNode;e;e=e==null?void 0:e.parentNode){const s=Be.get(e);s&&!s.isDisabled()&&s&&t.push(s)}return t}get isHostRendered(){const t=Re.has(this.u);return t||this.u.updateComplete.then(()=>{Re.add(this.u)}),t}j(t,e=this.O()){const s={...fn};return e.forEach(n=>Object.assign(s,n.options.keyframeOptions)),Object.assign(s,t),s}N(t,e,s){t={...t},e={...e};const n=s.map(a=>a.animatingProperties).filter(a=>a!==void 0);let r=1,o=1;return n.length>0&&(n.forEach(a=>{a.width&&(r/=a.width),a.height&&(o/=a.height)}),t.left!==void 0&&e.left!==void 0&&(t.left=r*t.left,e.left=r*e.left),t.top!==void 0&&e.top!==void 0&&(t.top=o*t.top,e.top=o*e.top)),{from:t,to:e}}calculateKeyframes(t,e,s=!1){const n={},r={};let o=!1;const a={};for(const l in e){const c=t[l],u=e[l];if(l in zt){const h=zt[l];if(c===void 0||u===void 0)continue;const d=h(c,u);d.transform!==void 0&&(a[l]=d.value,o=!0,n.transform=`${n.transform??""} ${d.transform}`,d.overrideFrom!==void 0&&Object.assign(n,d.overrideFrom))}else c!==u&&c!==void 0&&u!==void 0&&(o=!0,n[l]=c,r[l]=u)}return n.transformOrigin=r.transformOrigin=s?"center center":"top left",this.animatingProperties=a,o?[n,r]:void 0}async animate(t,e=this.options.keyframeOptions){this.start(),this.frames=t;let s=!1;if(!this.isAnimating()&&!this.isDisabled()&&(this.options.onFrames&&(this.frames=t=this.options.onFrames(this),this.log("modified frames",t)),t!==void 0)){this.log("animate",[t,e]),s=!0,this.webAnimation=this.element.animate(t,e);const n=this.getController();n==null||n.add(this);try{await this.webAnimation.finished}catch{}n==null||n.remove(this)}return this.didFinish(s),s}isAnimating(){var t,e;return((t=this.webAnimation)==null?void 0:t.playState)==="running"||((e=this.webAnimation)==null?void 0:e.pending)}log(t,e){this.shouldLog&&!this.isDisabled()&&console.log(t,this.options.id,e)}}const Ri=ae(gn),$n={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>'},vn={svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M18 36C15.7909 36 14 34.2091 14 32C14 29.7909 15.7909 28 18 28C20.2091 28 22 29.7909 22 32C22 34.2091 20.2091 36 18 36ZM28 32C28 34.2091 29.7909 36 32 36C34.2091 36 36 34.2091 36 32C36 29.7909 34.2091 28 32 28C29.7909 28 28 29.7909 28 32ZM46 36C43.7909 36 42 34.2091 42 32C42 29.7909 43.7909 28 46 28C48.2091 28 50 29.7909 50 32C50 34.2091 48.2091 36 46 36Z"/></svg>'},mn={name:"question",svg:'<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>'};/**
|
|
58
58
|
* @license
|
|
59
59
|
* Copyright 2018 Google LLC
|
|
60
60
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
* @license
|
|
63
63
|
* Copyright 2020 Google LLC
|
|
64
64
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
65
|
-
*/const
|
|
65
|
+
*/const wt=()=>new yn;let yn=class{};const Dt=new WeakMap,_t=ae(class extends Li{render(i){return p}update(i,[t]){var s;const e=t!==this.Y;return e&&this.Y!==void 0&&this.rt(void 0),(e||this.lt!==this.ct)&&(this.Y=t,this.ht=(s=i.options)==null?void 0:s.host,this.rt(this.ct=i.element)),p}rt(i){if(this.isConnected||(i=void 0),typeof this.Y=="function"){const t=this.ht??globalThis;let e=Dt.get(t);e===void 0&&(e=new WeakMap,Dt.set(t,e)),e.get(this.Y)!==void 0&&this.Y.call(this.ht,void 0),e.set(this.Y,i),i!==void 0&&this.Y.call(this.ht,i)}else this.Y.value=i}get lt(){var i,t;return typeof this.Y=="function"?(i=Dt.get(this.ht??globalThis))==null?void 0:i.get(this.Y):(t=this.Y)==null?void 0:t.value}disconnected(){this.lt===this.ct&&this.rt(void 0)}reconnected(){this.rt(this.ct)}});var bn=Object.defineProperty,ct=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&bn(t,e,n),n};const pe=class pe extends S{constructor(){super(...arguments),this.active=!1,this.triggerVisible=!0,this.loaded=!1,this.containerRef=wt(),this.widgetActive$=new ci(!1),this.componentIsDestroyed$=new Tt}async connectedCallback(){super.connectedCallback(),this.icon=await this._renderSymbol(),this.loaded=!0,this._applyBranding()}disconnectedCallback(){super.disconnectedCallback(),this.componentIsDestroyed$.next(),this.componentIsDestroyed$.complete()}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.notify("widget-set-active",{widgetId:this.application.id,active:!0}),this.widgetActive$.next(!0),this.hideTrigger()):(this.application.hide(),this.notify("widget-set-active",{widgetId:this.application.id,active:!1}),this.widgetActive$.next(!1),this.showTrigger())}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}_applyBranding(){var t;(t=this.application)!=null&&t.settings&&Ui(this.application.settings.branding,this)}async _renderSymbol(){var a,l,c;const t=(a=this.application)==null?void 0:a.branding(),e=(l=t==null?void 0:t.graphics)==null?void 0:l.trigger;if(e)return b` <img src=${e} class="trigger-icon" alt="" /> `;const s=(c=this.application)==null?void 0:c.triggerIcon;if(!s)return p;const n=async u=>mn,{type:r,content:o}=s;switch(r){case"Telia":{const u=await n();return u?b`<telia-icon
|
|
66
66
|
class="trigger-icon"
|
|
67
67
|
svg=${u.svg}
|
|
68
68
|
size="lg"
|
|
69
69
|
></telia-icon>`:p}default:return p}}hideTrigger(){this.triggerVisible=!1}showTrigger(){this.triggerVisible=!0}render(){var t,e,s,n;return b`<div
|
|
70
70
|
class=${He({"trigger-container":!0,hidden:!this.triggerVisible})}
|
|
71
|
-
${
|
|
71
|
+
${_t(this.containerRef)}
|
|
72
72
|
>
|
|
73
73
|
${!this.active&&((n=(s=(e=(t=this.application)==null?void 0:t.settings)==null?void 0:e.branding)==null?void 0:s.other)!=null&&n.showButtonLabel)?b`
|
|
74
74
|
<button
|
|
@@ -244,7 +244,7 @@
|
|
|
244
244
|
.trigger-label:hover {
|
|
245
245
|
opacity: 0.8;
|
|
246
246
|
}
|
|
247
|
-
`];let C=pe;ct([
|
|
247
|
+
`];let C=pe;ct([w({attribute:!1})],C.prototype,"application");ct([N()],C.prototype,"active");ct([N()],C.prototype,"triggerVisible");ct([N()],C.prototype,"loaded");ct([N()],C.prototype,"icon");var wn=Object.defineProperty,P=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&wn(t,e,n),n};const Mi=i=>{const e=class e extends i{constructor(){super(...arguments),this.properties={},this.context={},this.layout={},this.nodes=[]}writeProperties(n){this.properties=n}writeLayout(n){this.layout=n}writeContext(n){this.context=n}addChild(n){n.parent=this,this.nodes.push(n)}connectedCallback(){super.connectedCallback(),this.renderRoot.host.style.setProperty("--width",this.layout.size==="full"?"var(--columns, 1)":`min(${this.layout.size||"var(--columns)"}, var(--columns))`),this.application.mountComponent(this)}};e.styles=[j`
|
|
248
248
|
:host {
|
|
249
249
|
font-family: var(--font-family);
|
|
250
250
|
grid-column: span var(--width);
|
|
@@ -256,7 +256,7 @@
|
|
|
256
256
|
* {
|
|
257
257
|
box-sizing: border-box;
|
|
258
258
|
}
|
|
259
|
-
`];let t=e;return P([
|
|
259
|
+
`];let t=e;return P([w()],t.prototype,"properties"),P([w()],t.prototype,"context"),P([w()],t.prototype,"layout"),P([w()],t.prototype,"name"),P([w()],t.prototype,"type"),P([w({attribute:!1})],t.prototype,"application"),P([w({attribute:!1})],t.prototype,"parent"),t},ge=class ge extends Mi(S){render(){return b`Non resolved component`}};ge.styles=[j`
|
|
260
260
|
:host {
|
|
261
261
|
display: block;
|
|
262
262
|
}
|
|
@@ -264,7 +264,7 @@
|
|
|
264
264
|
* @license
|
|
265
265
|
* Copyright 2021 Google LLC
|
|
266
266
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
267
|
-
*/function*
|
|
267
|
+
*/function*_n(i,t){if(i!==void 0){let e=0;for(const s of i)yield t(s,e++)}}var nt=(i=>(i.Inline="inline",i.Trigger="trigger",i))(nt||{});/**
|
|
268
268
|
* @license
|
|
269
269
|
* Copyright 2021 Google LLC
|
|
270
270
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -280,12 +280,12 @@
|
|
|
280
280
|
* @license
|
|
281
281
|
* Copyright 2021 Google LLC
|
|
282
282
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
283
|
-
*/let An=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}};class
|
|
283
|
+
*/let An=class extends Event{constructor(t,e){super("context-provider",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=e}};class Fe extends Sn{constructor(t,e,s){var n,r;super(e.context!==void 0?e.initialValue:s),this.onContextRequest=o=>{if(o.context!==this.context)return;const a=o.contextTarget??o.composedPath()[0];a!==this.host&&(o.stopPropagation(),this.addCallback(o.callback,a,o.subscribe))},this.onProviderRequest=o=>{if(o.context!==this.context||(o.contextTarget??o.composedPath()[0])===this.host)return;const a=new Set;for(const[l,{consumerHost:c}]of this.subscriptions)a.has(l)||(a.add(l),c.dispatchEvent(new xn(this.context,c,l,!0)));o.stopPropagation()},this.host=t,e.context!==void 0?this.context=e.context:this.context=e,this.attachListeners(),(r=(n=this.host).addController)==null||r.call(n,this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new An(this.context,this.host))}}/**
|
|
284
284
|
* @license
|
|
285
285
|
* Copyright 2017 Google LLC
|
|
286
286
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
287
|
-
*/function kn({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){s.set(this,new
|
|
288
|
-
${
|
|
287
|
+
*/function kn({context:i}){return(t,e)=>{const s=new WeakMap;if(typeof e=="object")return e.addInitializer(function(){s.set(this,new Fe(this,{context:i}))}),{get(){return t.get.call(this)},set(n){var r;return(r=s.get(this))==null||r.setValue(n),t.set.call(this,n)},init(n){var r;return(r=s.get(this))==null||r.setValue(n),n}};{t.constructor.addInitializer(o=>{s.set(o,new Fe(o,{context:i}))});const n=Object.getOwnPropertyDescriptor(t,e);let r;if(n===void 0){const o=new WeakMap;r={get(){return o.get(this)},set(a){s.get(this).setValue(a),o.set(this,a)},configurable:!0,enumerable:!0}}else{const o=n.set;r={...n,set(a){s.get(this).setValue(a),o==null||o.call(this,a)}}}return void Object.defineProperty(t,e,r)}}}var Cn=Object.defineProperty,ji=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Cn(t,e,n),n};const En="application",$e=class $e extends S{constructor(){super(...arguments),this.nodes=[],this.wrapperRef=wt(),this.fullscreen=!1,this.isReady=new ci(!1)}addChild(t){t.parent=this,this.nodes.push(t)}applyBranding(){if(!this.wrapperRef.value)return;const t=this.application.settings;t!=null&&t.branding&&Ui(t.branding,this.wrapperRef.value)}applyStyles(){if(!this.wrapperRef.value)return;const t=this.application.styles(),e=this.wrapperRef.value;Object.entries(t).forEach(([s,n])=>{e.style.setProperty(`--${s}`,n)})}firstUpdated(t){this.applyBranding(),this.applyStyles()}render(){var s,n;const t=this.application.settings.components.conversation;return((n=(s=t==null?void 0:t.properties)==null?void 0:s.chat)==null?void 0:n.isThirdPartyWidget)?this.renderRoot.host.classList.add("third-party"):this.application.renderStrategy===nt.Trigger&&(this.renderRoot.host.classList.add("floating"),this.application.anchor==="BottomLeft"?this.renderRoot.host.classList.add("bottom-left"):this.application.anchor==="BottomRight"&&this.renderRoot.host.classList.add("bottom-right")),this.application.fullscreen&&this.renderRoot.host.classList.add("fullscreen"),window.self!==window.top&&this.renderRoot.host.classList.add("embedded"),b`<div class="widget-container" ${_t(this.wrapperRef)}>
|
|
288
|
+
${_n(this.nodes,r=>r)}
|
|
289
289
|
</div>`}};$e.styles=j`
|
|
290
290
|
:host {
|
|
291
291
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
@@ -302,7 +302,20 @@
|
|
|
302
302
|
--gray-color: #f3f3f8;
|
|
303
303
|
--white-color: #fff;
|
|
304
304
|
--gray-dark-color: #a6a6a6;
|
|
305
|
-
|
|
305
|
+
|
|
306
|
+
--text-weak: #00000070;
|
|
307
|
+
--text-medium: #0000009E;
|
|
308
|
+
--text-default: #000000CC
|
|
309
|
+
--text-weak-negative: #FFFFFF5E;
|
|
310
|
+
--text-medium-negative: #FFFFFFA8;
|
|
311
|
+
--text-default-negative: #FFFFFFF2;
|
|
312
|
+
|
|
313
|
+
--border-color-weak: #00000029;
|
|
314
|
+
--border-color-medium: #00000054;
|
|
315
|
+
--border-color-strong: #0000008a;
|
|
316
|
+
--border-color-weak-negative: #ffffff29;
|
|
317
|
+
--border-color-medium-negative: #ffffff54;
|
|
318
|
+
--border-color-strong-negative: #ffffff8a;
|
|
306
319
|
|
|
307
320
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
308
321
|
--border-radius: var(--spacing-sm);
|
|
@@ -438,11 +451,11 @@
|
|
|
438
451
|
:host(.expanded.embedded) {
|
|
439
452
|
animation: none;
|
|
440
453
|
}
|
|
441
|
-
`;let rt=$e;ji([
|
|
454
|
+
`;let rt=$e;ji([w({attribute:!0})],rt.prototype,"fullscreen");ji([w({attribute:!1}),kn({context:En})],rt.prototype,"application");const Ct=class Ct{constructor(t=Ct.endpoint){this._endpoint=t}async getSite(t){const s=await(await fetch(t)).json();return s?{id:s.id,triggers:s.triggers||[],apps:(s.widgets||[]).map(n=>{let r=nt.Trigger;n.renderStrategy.toLowerCase()==="inline"&&(r=nt.Inline);const o=n.widgetId?n.widgetId:n.id,a=typeof n.autoActivate=="boolean"?n.autoActivate:!1,l=typeof n.anchor=="string"?n.anchor:"BottomRight",c=typeof n.triggerIcon=="string"?n.triggerIcon:"question";return{id:o,widgetId:o,renderStrategy:r,autoActivate:a,anchor:l,triggerIcon:{type:"Telia",content:c}}})}:null}async getWidget(t){const s=await(await fetch(`${this._endpoint}/widget/${t}`)).json();return s?{name:s.name,config:JSON.parse(s.configuration)}:null}};Ct.endpoint="https://widgets.ace.teliacompany.net/api";let ze=Ct;var On=Object.defineProperty,le=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&On(t,e,n),n};const ve=class ve extends S{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(t){this.widget=t.detail.widget,await this.activate(),this.requestUpdate()}async activate(){this.widget&&(await this.widget.activate(),this.status="activated")}async getGlobalEnvironment(){const t=globalThis.widgets;t&&(this.widget=t.applications.find(e=>e.name===this.name),await this.activate())}render(){if(!this.widget||this.status!=="activated")return p;if(this.widget.renderStrategy===nt.Trigger){const t=new C;return t.application=this.widget,t}return this.widget.render()}};ve.styles=[j`
|
|
442
455
|
:host {
|
|
443
456
|
display: block;
|
|
444
457
|
}
|
|
445
|
-
`];let G=ve;le([_({attribute:!0})],G.prototype,"name");le([N()],G.prototype,"widget");le([N()],G.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",yt);customElements.get("ace-trigger")||customElements.define("ace-trigger",C);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Xt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",rt);customElements.get("ace-widget")||customElements.define("ace-widget",G);const Tn=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Pn=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Tn();class In{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new Tt,this.id=Pn(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Ln{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new In(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Ms(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let z,Ni,It,Bi=!1,xt=!1,ce=!1,y=!1,Fe=null,Qt=!1;const Lt=typeof window<"u"?window:{},A=Lt.document||{head:{}},Hi=Lt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Rn=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Un=i=>Promise.resolve(i),Mn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),zi=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Nn(i,n),l=jn(t,o),c=Bn(n);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},jn=(i,t)=>e=>{try{H.lazyLoad||i.$hostElement$[t](e)}catch(s){ut(s)}},Nn=(i,t)=>t&4?A:t&8?Lt:t&16?A.body:i,Bn=i=>Rn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",M=(i,t="")=>()=>{},Ye=new WeakMap,Hn=(i,t,e)=>{let s=kt.get(i);Mn&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,kt.set(i,s)},zn=(i,t,e,s)=>{let n=Di(t,e),r=kt.get(n);if(i=i.nodeType===11?i:A,r)if(typeof r=="string"){i=i.head||i;let o=Ye.get(i),a;o||Ye.set(i,o=new Set),o.has(n)||(a=A.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},Dn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=M("attachStyles",t.$tagName$),r=zn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},Di=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Fn=i=>vr.map(t=>t(i)).find(t=>!!t),qe={},Wn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml",qn=i=>i!=null,ue=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let s=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!ue(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?St(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Gn);const u=St(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},St=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},he={},Zn=i=>i&&i.$tag$===he,Gn={forEach:(i,t)=>i.map(Ze).forEach(t),map:(i,t)=>i.map(Ze).map(t).map(Kn)},Ze=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Kn=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ge=(i,t,e,s,n,r)=>{if(e!==s){let o=Je(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Ke(e),u=Ke(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Je(Lt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),s&&m.ael(i,t,s,!1);else{const l=ue(s);if((o||l&&s!==null)&&!n)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(We,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Xn=/\s/,Ke=i=>i?i.split(Xn):[],Fi=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||qe,o=t.$attrs$||qe;for(s in r)s in o||Ge(n,s,r[s],void 0,e,t.$flags$);for(s in o)Ge(n,s,r[s],o[s],e,t.$flags$)},At=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Bi||(ce=!0,n.$tag$==="slot"&&(z&&s.classList.add(z+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=A.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=A.createTextNode("");else{if(y||(y=n.$tag$==="svg"),o=n.$elm$=A.createElementNS(y?Wn:Yn,n.$flags$&2?"slot-fb":n.$tag$),y&&n.$tag$==="foreignObject"&&(y=!1),Fi(null,n,y),qn(z)&&o["s-si"]!==z&&o.classList.add(o["s-si"]=z),n.$children$)for(r=0;r<n.$children$.length;++r)a=At(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=It,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Ni,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&ot(i.$elm$,!1)),o},ot=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==It&&n["s-ol"]&&(qi(n).insertBefore(n,de(n)),n["s-ol"].remove(),n["s-ol"]=void 0,ce=!0),t&&ot(n,t)}m.$flags$&=-2},Wi=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===It&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=At(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,de(t))))},Yi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Ki(s),xt=!0,n["s-ol"]?n["s-ol"].remove():ot(n,!0),n.remove())},Qn=(i,t,e,s)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],$,g;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if(ft(c,d))D(c,d),c=t[++n],d=s[++r];else if(ft(u,f))D(u,f),u=t[--l],f=s[--h];else if(ft(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(c.$elm$.parentNode,!1),D(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if(ft(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(u.$elm$.parentNode,!1),D(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=At(t&&t[r],e,o,i):(D(g,d),t[o]=void 0,$=g.$elm$),d=s[++r]):($=At(t&&t[r],e,r,i),d=s[++r]),$&&qi(c.$elm$).insertBefore($,de(c.$elm$))}n>l?Wi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Yi(t,n,l)},ft=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,de=i=>i&&i["s-ol"]||i,qi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,D=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Fi(i,t,y),s!==null&&n!==null?Qn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),Wi(e,null,t,n,0,n.length-1)):s!==null&&Yi(s,0,s.length-1),y&&r==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Zi=i=>{let t=i.childNodes,e,s,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Zi(e)}},x=[],Gi=i=>{let t,e,s,n,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,n=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Xe(e,n)?(r=x.find(u=>u.$nodeToRelocate$===e),xt=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{Xe(u.$nodeToRelocate$,e["s-sn"])&&(r=x.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Gi(t)}},Xe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Ki=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Ki)},Jn=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||St(null,null),r=Zn(t)?t:W(null,null,t);It=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,z=e["s-sc"],Ni=e["s-cr"],Bi=(s.$flags$&1)!==0,xt=!1,D(n,r);{if(m.$flags$|=1,ce){Gi(r.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}xt&&Zi(r.$elm$),m.$flags$&=-2,x.length=0}},Vn=i=>i,tr=(i,t,e)=>{const s=Vn(i);return{emit:n=>er(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},er=(i,t,e)=>{const s=m.ce(t,e);return i.dispatchEvent(s),s},ir=(i,t)=>{},Xi=(i,t)=>(i.$flags$|=16,ir(i,i.$ancestorComponent$),br(()=>sr(i,t))),sr=(i,t)=>{const e=i.$hostElement$,s=M("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=Qe(r,()=>Y(n,"componentWillRender")),s(),Qe(r,()=>nr(i,n,t))},nr=async(i,t,e)=>{const s=i.$hostElement$,n=M("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&Dn(i);const r=M("render",i.$cmpMeta$.$tagName$);rr(i,t,s),r(),n(),or(i)},rr=(i,t,e)=>{try{Fe=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Jn(i,t))}catch(a){ut(a,i.$hostElement$)}return Fe=null,null},or=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=M("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ut(s)}},Qe=(i,t)=>i&&i.then?i.then(t):t(),ar=(i,t)=>i!=null&&!ue(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,lr=(i,t)=>Rt(i).$instanceValues$.get(t),cr=(i,t,e,s)=>{const n=Rt(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=ar(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){ut(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Xi(n,!1)}}}},ur=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return lr(this,r)},set(a){cr(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},hr=async(i,t,e,s,n)=>{if(!(t.$flags$&32)&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Fn(i)]);const a=Di(e,t.$modeName$);if(!kt.has(a)){const l=M("registerStyles",e.$tagName$);Hn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Xi(t,!0)},dr=i=>{},fr=i=>{if(!(m.$flags$&1)){const t=Rt(i),e=t.$cmpMeta$,s=M("connectedCallback",e.$tagName$);t.$flags$&1?(zi(i,t,e.$listeners$),dr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&pr(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),hr(i,t,e)),s()}},pr=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},gr=i=>{if(!(m.$flags$&1)){const t=Rt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Qi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){$r(this,e)},connectedCallback(){fr(this),s&&s.call(this)},disconnectedCallback(){gr(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,ur(i,e)},Ji=new WeakMap,Rt=i=>Ji.get(i),$r=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return zi(i,e,t.$listeners$),Ji.set(i,e)},Je=(i,t)=>t in i,ut=(i,t)=>(0,console.error)(i,t),kt=new Map,vr=[],Ve=[],Vi=[],mr=(i,t)=>e=>{i.push(e),Qt||(Qt=!0,t&&m.$flags$&4?yr(Jt):m.raf(Jt))},ti=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ut(e)}i.length=0},Jt=()=>{ti(Ve),ti(Vi),(Qt=Ve.length>0)&&m.raf(Jt)},yr=i=>Un().then(i),br=mr(Vi,!0),_r=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},wr=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function xr(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class Sr{constructor(t){this.voca_component=t,this.voca_added=xr(new Date)}}const Ar="telia-vst{display:none}",kr=Qi(class extends Hi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=tr(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new Sr(this.dataTrackingId))}render(){return W(he,null)}static get style(){return Ar}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function ts(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,kr);break}})}ts();function Vt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Cr(){if(typeof Vt().vocadsIcons!==void 0)return Vt().vocadsIcons}function Er(){return Vt().vocadsIconsRegistered}const Or=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",Tr=Qi(class extends Hi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Er()&&this.name){const i=Cr();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=_r({content:wr(i),attributes:t,title:this.allyTitle});return W(he,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Or}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Pr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Tr);break;case"telia-vst":customElements.get(t)||ts();break}})}Pr();var Ir=Object.defineProperty,Lr=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Ir(t,e,n),n};const ei=Mi(S),me=class me extends ei{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Ln(this),this.optionsRef=_t(),this.optionsTriggerRef=_t(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var a,l,c;const t=this.application.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.logotype,s=this.application.texts,n=s.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation,o=(c=(l=r==null?void 0:r.properties)==null?void 0:l.chat)==null?void 0:c.isThirdPartyWidget;return b` <div class="widget-header">
|
|
458
|
+
`];let G=ve;le([w({attribute:!0})],G.prototype,"name");le([N()],G.prototype,"widget");le([N()],G.prototype,"status");customElements.get("ace-trigger-slot")||customElements.define("ace-trigger-slot",yt);customElements.get("ace-trigger")||customElements.define("ace-trigger",C);customElements.get("ace-unresolved-component")||customElements.define("ace-unresolved-component",Xt);customElements.get("ace-wrapper")||customElements.define("ace-wrapper",rt);customElements.get("ace-widget")||customElements.define("ace-widget",G);const Tn=()=>"10000000-1000-4000-8000-100000000000".replace(/[018]/g,i=>(+i^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+i/4).toString(16)),Pn=()=>typeof crypto.randomUUID=="function"?crypto.randomUUID():Tn();class In{constructor(t,e,s,n,r,o,a=!0){this.label=t,this.icon=e,this.onClick=s,this.closeOnClick=n,this.key=r,this.update=new Tt,this.id=Pn(),this._controller=o,this.enabled=a}updateLabel(t){this.label=t,this.update.next()}updateIcon(t){this.icon=t,this.update.next()}remove(){this._controller.removeOption(this)}subscribe(){return this.update.asObservable()}}class Ln{constructor(t){this._options=[],this._subscription=null,this._host=t,t.addController(this)}hostConnected(){}hostDisconnected(){this._subscription&&this._subscription.unsubscribe(),this._options=[]}addOption(t){const e=new In(t.label,t.icon,t.onClick,t.closeOnClick,t.key,this);return this._options.push(e),this.handleUpdate(),e}removeOption(t){this._options=this._options.filter(e=>e.id!==t.id)}handleUpdate(){this._subscription&&this._subscription.unsubscribe();const t=this._options.map(e=>e.subscribe());this._subscription=Ms(t).subscribe(()=>{this._host.requestUpdate()})}set options(t){this._options=t,this._host.requestUpdate()}get options(){return this._options}hasOptions(){return this._options.length>0}}const H={allRenderFn:!1,cmpDidLoad:!0,cmpDidUnload:!1,cmpDidUpdate:!0,cmpDidRender:!0,cmpWillLoad:!0,cmpWillUpdate:!0,cmpWillRender:!0,connectedCallback:!0,disconnectedCallback:!0,element:!0,event:!0,hasRenderFn:!0,lifecycle:!0,hostListener:!0,hostListenerTargetWindow:!0,hostListenerTargetDocument:!0,hostListenerTargetBody:!0,hostListenerTargetParent:!1,hostListenerTarget:!0,member:!0,method:!0,mode:!0,observeAttribute:!0,prop:!0,propMutable:!0,reflect:!0,scoped:!0,shadowDom:!0,slot:!0,cssAnnotations:!0,state:!0,style:!0,svg:!0,updatable:!0,vdomAttribute:!0,vdomXlink:!0,vdomClass:!0,vdomFunctional:!0,vdomKey:!0,vdomListener:!0,vdomRef:!0,vdomPropOrAttr:!0,vdomRender:!0,vdomStyle:!0,vdomText:!0,watchCallback:!0,taskQueue:!0,hotModuleReplacement:!1,isDebug:!1,isDev:!1,isTesting:!1,hydrateServerSide:!1,hydrateClientSide:!1,lifecycleDOMEvents:!1,lazyLoad:!1,profile:!1,slotRelocation:!0,appendChildSlotFix:!1,cloneNodeFix:!1,hydratedAttribute:!1,hydratedClass:!0,safari10:!1,scriptDataOpts:!1,scopedSlotTextContentFix:!1,shadowDomShim:!1,slotChildNodesFix:!1,invisiblePrehydration:!0,propBoolean:!0,propNumber:!0,propString:!0,cssVarShim:!1,constructableCSS:!0,cmpShouldUpdate:!0,devTools:!1,dynamicImportShim:!1,shadowDelegatesFocus:!0,initializeNextTick:!1,asyncLoading:!1,asyncQueue:!1,transformTagName:!1,attachStyles:!0};let F,Ni,It,Bi=!1,xt=!1,ce=!1,y=!1,De=null,Qt=!1;const Lt=typeof window<"u"?window:{},A=Lt.document||{head:{}},Hi=Lt.HTMLElement||class{},m={$flags$:0,$resourcesUrl$:"",jmp:i=>i(),raf:i=>requestAnimationFrame(i),ael:(i,t,e,s)=>i.addEventListener(t,e,s),rel:(i,t,e,s)=>i.removeEventListener(t,e,s),ce:(i,t)=>new CustomEvent(i,t)},Rn=(()=>{let i=!1;try{A.addEventListener("e",null,Object.defineProperty({},"passive",{get(){i=!0}}))}catch{}return i})(),Un=i=>Promise.resolve(i),Mn=(()=>{try{return new CSSStyleSheet,typeof new CSSStyleSheet().replace=="function"}catch{}return!1})(),Fi=(i,t,e,s)=>{e&&e.map(([n,r,o])=>{const a=Nn(i,n),l=jn(t,o),c=Bn(n);m.ael(a,r,l,c),(t.$rmListeners$=t.$rmListeners$||[]).push(()=>m.rel(a,r,l,c))})},jn=(i,t)=>e=>{try{H.lazyLoad||i.$hostElement$[t](e)}catch(s){ut(s)}},Nn=(i,t)=>t&4?A:t&8?Lt:t&16?A.body:i,Bn=i=>Rn?{passive:(i&1)!==0,capture:(i&2)!==0}:(i&2)!==0,We="http://www.w3.org/1999/xlink",M=(i,t="")=>()=>{},Ye=new WeakMap,Hn=(i,t,e)=>{let s=kt.get(i);Mn&&e?(s=s||new CSSStyleSheet,s.replace(t)):s=t,kt.set(i,s)},Fn=(i,t,e,s)=>{let n=zi(t,e),r=kt.get(n);if(i=i.nodeType===11?i:A,r)if(typeof r=="string"){i=i.head||i;let o=Ye.get(i),a;o||Ye.set(i,o=new Set),o.has(n)||(a=A.createElement("style"),a.innerHTML=r,i.insertBefore(a,i.querySelector("link")),o&&o.add(n))}else i.adoptedStyleSheets.includes(r)||(i.adoptedStyleSheets=[...i.adoptedStyleSheets,r]);return n},zn=i=>{const t=i.$cmpMeta$,e=i.$hostElement$,s=t.$flags$,n=M("attachStyles",t.$tagName$),r=Fn(e.shadowRoot?e.shadowRoot:e.getRootNode(),t,i.$modeName$);s&10&&(e["s-sc"]=r,e.classList.add(r+"-h"),s&2&&e.classList.add(r+"-s")),n()},zi=(i,t)=>"sc-"+(t&&i.$flags$&32?i.$tagName$+"-"+t:i.$tagName$),Dn=i=>vr.map(t=>t(i)).find(t=>!!t),qe={},Wn="http://www.w3.org/2000/svg",Yn="http://www.w3.org/1999/xhtml",qn=i=>i!=null,ue=i=>(i=typeof i,i==="object"||i==="function"),W=(i,t,...e)=>{let s=null,n=null,r=null,o=!1,a=!1,l=[];const c=h=>{for(let d=0;d<h.length;d++)s=h[d],Array.isArray(s)?c(s):s!=null&&typeof s!="boolean"&&((o=typeof i!="function"&&!ue(s))&&(s=String(s)),o&&a?l[l.length-1].$text$+=s:l.push(o?St(null,s):s),a=o)};if(c(e),t){t.key&&(n=t.key),t.name&&(r=t.name);{const h=t.className||t.class;h&&(t.class=typeof h!="object"?h:Object.keys(h).filter(d=>h[d]).join(" "))}}if(typeof i=="function")return i(t===null?{}:t,l,Gn);const u=St(i,null);return u.$attrs$=t,l.length>0&&(u.$children$=l),u.$key$=n,u.$name$=r,u},St=(i,t)=>{const e={$flags$:0,$tag$:i,$text$:t,$elm$:null,$children$:null};return e.$attrs$=null,e.$key$=null,e.$name$=null,e},he={},Zn=i=>i&&i.$tag$===he,Gn={forEach:(i,t)=>i.map(Ze).forEach(t),map:(i,t)=>i.map(Ze).map(t).map(Kn)},Ze=i=>({vattrs:i.$attrs$,vchildren:i.$children$,vkey:i.$key$,vname:i.$name$,vtag:i.$tag$,vtext:i.$text$}),Kn=i=>{if(typeof i.vtag=="function"){const e=Object.assign({},i.vattrs);return i.vkey&&(e.key=i.vkey),i.vname&&(e.name=i.vname),W(i.vtag,e,...i.vchildren||[])}const t=St(i.vtag,i.vtext);return t.$attrs$=i.vattrs,t.$children$=i.vchildren,t.$key$=i.vkey,t.$name$=i.vname,t},Ge=(i,t,e,s,n,r)=>{if(e!==s){let o=Je(i,t),a=t.toLowerCase();if(t==="class"){const l=i.classList,c=Ke(e),u=Ke(s);l.remove(...c.filter(h=>h&&!u.includes(h))),l.add(...u.filter(h=>h&&!c.includes(h)))}else if(t==="style"){for(const l in e)(!s||s[l]==null)&&(l.includes("-")?i.style.removeProperty(l):i.style[l]="");for(const l in s)(!e||s[l]!==e[l])&&(l.includes("-")?i.style.setProperty(l,s[l]):i.style[l]=s[l])}else if(t!=="key")if(t==="ref")s&&s(i);else if(!i.__lookupSetter__(t)&&t[0]==="o"&&t[1]==="n")t[2]==="-"?t=t.slice(3):Je(Lt,a)?t=a.slice(2):t=a[2]+t.slice(3),e&&m.rel(i,t,e,!1),s&&m.ael(i,t,s,!1);else{const l=ue(s);if((o||l&&s!==null)&&!n)try{if(i.tagName.includes("-"))i[t]=s;else{let u=s??"";t==="list"?o=!1:(e==null||i[t]!=u)&&(i[t]=u)}}catch{}let c=!1;a!==(a=a.replace(/^xlink\:?/,""))&&(t=a,c=!0),s==null||s===!1?(s!==!1||i.getAttribute(t)==="")&&(c?i.removeAttributeNS(We,t):i.removeAttribute(t)):(!o||r&4||n)&&!l&&(s=s===!0?"":s,c?i.setAttributeNS(We,t,s):i.setAttribute(t,s))}}},Xn=/\s/,Ke=i=>i?i.split(Xn):[],Di=(i,t,e,s)=>{const n=t.$elm$.nodeType===11&&t.$elm$.host?t.$elm$.host:t.$elm$,r=i&&i.$attrs$||qe,o=t.$attrs$||qe;for(s in r)s in o||Ge(n,s,r[s],void 0,e,t.$flags$);for(s in o)Ge(n,s,r[s],o[s],e,t.$flags$)},At=(i,t,e,s)=>{let n=t.$children$[e],r=0,o,a,l;if(Bi||(ce=!0,n.$tag$==="slot"&&(F&&s.classList.add(F+"-s"),n.$flags$|=n.$children$?2:1)),n.$text$!==null)o=n.$elm$=A.createTextNode(n.$text$);else if(n.$flags$&1)o=n.$elm$=A.createTextNode("");else{if(y||(y=n.$tag$==="svg"),o=n.$elm$=A.createElementNS(y?Wn:Yn,n.$flags$&2?"slot-fb":n.$tag$),y&&n.$tag$==="foreignObject"&&(y=!1),Di(null,n,y),qn(F)&&o["s-si"]!==F&&o.classList.add(o["s-si"]=F),n.$children$)for(r=0;r<n.$children$.length;++r)a=At(i,n,r,o),a&&o.appendChild(a);n.$tag$==="svg"?y=!1:o.tagName==="foreignObject"&&(y=!0)}return o["s-hn"]=It,n.$flags$&3&&(o["s-sr"]=!0,o["s-cr"]=Ni,o["s-sn"]=n.$name$||"",l=i&&i.$children$&&i.$children$[e],l&&l.$tag$===n.$tag$&&i.$elm$&&ot(i.$elm$,!1)),o},ot=(i,t)=>{m.$flags$|=1;const e=i.childNodes;for(let s=e.length-1;s>=0;s--){const n=e[s];n["s-hn"]!==It&&n["s-ol"]&&(qi(n).insertBefore(n,de(n)),n["s-ol"].remove(),n["s-ol"]=void 0,ce=!0),t&&ot(n,t)}m.$flags$&=-2},Wi=(i,t,e,s,n,r)=>{let o=i["s-cr"]&&i["s-cr"].parentNode||i,a;for(o.shadowRoot&&o.tagName===It&&(o=o.shadowRoot);n<=r;++n)s[n]&&(a=At(null,e,n,i),a&&(s[n].$elm$=a,o.insertBefore(a,de(t))))},Yi=(i,t,e,s,n)=>{for(;t<=e;++t)(s=i[t])&&(n=s.$elm$,Ki(s),xt=!0,n["s-ol"]?n["s-ol"].remove():ot(n,!0),n.remove())},Qn=(i,t,e,s)=>{let n=0,r=0,o=0,a=0,l=t.length-1,c=t[0],u=t[l],h=s.length-1,d=s[0],f=s[h],$,g;for(;n<=l&&r<=h;)if(c==null)c=t[++n];else if(u==null)u=t[--l];else if(d==null)d=s[++r];else if(f==null)f=s[--h];else if(ft(c,d))z(c,d),c=t[++n],d=s[++r];else if(ft(u,f))z(u,f),u=t[--l],f=s[--h];else if(ft(c,f))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(c.$elm$.parentNode,!1),z(c,f),i.insertBefore(c.$elm$,u.$elm$.nextSibling),c=t[++n],f=s[--h];else if(ft(u,d))(c.$tag$==="slot"||f.$tag$==="slot")&&ot(u.$elm$.parentNode,!1),z(u,d),i.insertBefore(u.$elm$,c.$elm$),u=t[--l],d=s[++r];else{for(o=-1,a=n;a<=l;++a)if(t[a]&&t[a].$key$!==null&&t[a].$key$===d.$key$){o=a;break}o>=0?(g=t[o],g.$tag$!==d.$tag$?$=At(t&&t[r],e,o,i):(z(g,d),t[o]=void 0,$=g.$elm$),d=s[++r]):($=At(t&&t[r],e,r,i),d=s[++r]),$&&qi(c.$elm$).insertBefore($,de(c.$elm$))}n>l?Wi(i,s[h+1]==null?null:s[h+1].$elm$,e,s,r,h):r>h&&Yi(t,n,l)},ft=(i,t)=>i.$tag$===t.$tag$?i.$tag$==="slot"?i.$name$===t.$name$:i.$key$===t.$key$:!1,de=i=>i&&i["s-ol"]||i,qi=i=>(i["s-ol"]?i["s-ol"]:i).parentNode,z=(i,t)=>{const e=t.$elm$=i.$elm$,s=i.$children$,n=t.$children$,r=t.$tag$,o=t.$text$;let a;o===null?(y=r==="svg"?!0:r==="foreignObject"?!1:y,r==="slot"||Di(i,t,y),s!==null&&n!==null?Qn(e,s,t,n):n!==null?(i.$text$!==null&&(e.textContent=""),Wi(e,null,t,n,0,n.length-1)):s!==null&&Yi(s,0,s.length-1),y&&r==="svg"&&(y=!1)):(a=e["s-cr"])?a.parentNode.textContent=o:i.$text$!==o&&(e.data=o)},Zi=i=>{let t=i.childNodes,e,s,n,r,o,a;for(s=0,n=t.length;s<n;s++)if(e=t[s],e.nodeType===1){if(e["s-sr"]){for(o=e["s-sn"],e.hidden=!1,r=0;r<n;r++)if(a=t[r].nodeType,t[r]["s-hn"]!==e["s-hn"]||o!==""){if(a===1&&o===t[r].getAttribute("slot")){e.hidden=!0;break}}else if(a===1||a===3&&t[r].textContent.trim()!==""){e.hidden=!0;break}}Zi(e)}},x=[],Gi=i=>{let t,e,s,n,r,o,a=0,l=i.childNodes,c=l.length;for(;a<c;a++){if(t=l[a],t["s-sr"]&&(e=t["s-cr"])&&e.parentNode)for(s=e.parentNode.childNodes,n=t["s-sn"],o=s.length-1;o>=0;o--)e=s[o],!e["s-cn"]&&!e["s-nr"]&&e["s-hn"]!==t["s-hn"]&&(Xe(e,n)?(r=x.find(u=>u.$nodeToRelocate$===e),xt=!0,e["s-sn"]=e["s-sn"]||n,r?r.$slotRefNode$=t:x.push({$slotRefNode$:t,$nodeToRelocate$:e}),e["s-sr"]&&x.map(u=>{Xe(u.$nodeToRelocate$,e["s-sn"])&&(r=x.find(h=>h.$nodeToRelocate$===e),r&&!u.$slotRefNode$&&(u.$slotRefNode$=r.$slotRefNode$))})):x.some(u=>u.$nodeToRelocate$===e)||x.push({$nodeToRelocate$:e}));t.nodeType===1&&Gi(t)}},Xe=(i,t)=>i.nodeType===1?i.getAttribute("slot")===null&&t===""||i.getAttribute("slot")===t:i["s-sn"]===t?!0:t==="",Ki=i=>{i.$attrs$&&i.$attrs$.ref&&i.$attrs$.ref(null),i.$children$&&i.$children$.map(Ki)},Jn=(i,t)=>{const e=i.$hostElement$,s=i.$cmpMeta$,n=i.$vnode$||St(null,null),r=Zn(t)?t:W(null,null,t);It=e.tagName,s.$attrsToReflect$&&(r.$attrs$=r.$attrs$||{},s.$attrsToReflect$.map(([o,a])=>r.$attrs$[a]=e[o])),r.$tag$=null,r.$flags$|=4,i.$vnode$=r,r.$elm$=n.$elm$=e.shadowRoot||e,F=e["s-sc"],Ni=e["s-cr"],Bi=(s.$flags$&1)!==0,xt=!1,z(n,r);{if(m.$flags$|=1,ce){Gi(r.$elm$);let o,a,l,c,u,h,d=0;for(;d<x.length;d++)o=x[d],a=o.$nodeToRelocate$,a["s-ol"]||(l=A.createTextNode(""),l["s-nr"]=a,a.parentNode.insertBefore(a["s-ol"]=l,a));for(d=0;d<x.length;d++)if(o=x[d],a=o.$nodeToRelocate$,o.$slotRefNode$){for(c=o.$slotRefNode$.parentNode,u=o.$slotRefNode$.nextSibling,l=a["s-ol"];l=l.previousSibling;)if(h=l["s-nr"],h&&h["s-sn"]===a["s-sn"]&&c===h.parentNode&&(h=h.nextSibling,!h||!h["s-nr"])){u=h;break}(!u&&c!==a.parentNode||a.nextSibling!==u)&&a!==u&&(!a["s-hn"]&&a["s-ol"]&&(a["s-hn"]=a["s-ol"].parentNode.nodeName),c.insertBefore(a,u))}else a.nodeType===1&&(a.hidden=!0)}xt&&Zi(r.$elm$),m.$flags$&=-2,x.length=0}},Vn=i=>i,tr=(i,t,e)=>{const s=Vn(i);return{emit:n=>er(s,t,{bubbles:!0,composed:!0,cancelable:!0,detail:n})}},er=(i,t,e)=>{const s=m.ce(t,e);return i.dispatchEvent(s),s},ir=(i,t)=>{},Xi=(i,t)=>(i.$flags$|=16,ir(i,i.$ancestorComponent$),br(()=>sr(i,t))),sr=(i,t)=>{const e=i.$hostElement$,s=M("scheduleUpdate",i.$cmpMeta$.$tagName$),n=e;let r;return t?r=Y(n,"componentWillLoad"):r=Y(n,"componentWillUpdate"),r=Qe(r,()=>Y(n,"componentWillRender")),s(),Qe(r,()=>nr(i,n,t))},nr=async(i,t,e)=>{const s=i.$hostElement$,n=M("update",i.$cmpMeta$.$tagName$);s["s-rc"],e&&zn(i);const r=M("render",i.$cmpMeta$.$tagName$);rr(i,t,s),r(),n(),or(i)},rr=(i,t,e)=>{try{De=t,t=t.render&&t.render(),i.$flags$&=-17,i.$flags$|=2,(H.hasRenderFn||H.reflect)&&(H.vdomRender||H.reflect)&&(H.hydrateServerSide||Jn(i,t))}catch(a){ut(a,i.$hostElement$)}return De=null,null},or=i=>{const t=i.$cmpMeta$.$tagName$,e=i.$hostElement$,s=M("postUpdate",t),n=e;i.$ancestorComponent$,Y(n,"componentDidRender"),i.$flags$&64?(Y(n,"componentDidUpdate"),s()):(i.$flags$|=64,Y(n,"componentDidLoad"),s())},Y=(i,t,e)=>{if(i&&i[t])try{return i[t](e)}catch(s){ut(s)}},Qe=(i,t)=>i&&i.then?i.then(t):t(),ar=(i,t)=>i!=null&&!ue(i)?t&4?i==="false"?!1:i===""||!!i:t&2?parseFloat(i):t&1?String(i):i:i,lr=(i,t)=>Rt(i).$instanceValues$.get(t),cr=(i,t,e,s)=>{const n=Rt(i),r=i,o=n.$instanceValues$.get(t),a=n.$flags$,l=r;e=ar(e,s.$members$[t][0]);const c=Number.isNaN(o)&&Number.isNaN(e);if(e!==o&&!c){n.$instanceValues$.set(t,e);{if(s.$watchers$&&a&128){const h=s.$watchers$[t];h&&h.map(d=>{try{l[d](e,o,t)}catch(f){ut(f,r)}})}if((a&18)===2){if(l.componentShouldUpdate&&l.componentShouldUpdate(e,o,t)===!1)return;Xi(n,!1)}}}},ur=(i,t,e)=>{if(t.$members$){i.watchers&&(t.$watchers$=i.watchers);const s=Object.entries(t.$members$),n=i.prototype;s.map(([r,[o]])=>{(o&31||o&32)&&Object.defineProperty(n,r,{get(){return lr(this,r)},set(a){cr(this,r,a,t)},configurable:!0,enumerable:!0})});{const r=new Map;n.attributeChangedCallback=function(o,a,l){m.jmp(()=>{const c=r.get(o);if(this.hasOwnProperty(c))l=this[c],delete this[c];else if(n.hasOwnProperty(c)&&typeof this[c]=="number"&&this[c]==l)return;this[c]=l===null&&typeof this[c]=="boolean"?!1:l})},i.observedAttributes=s.filter(([o,a])=>a[0]&15).map(([o,a])=>{const l=a[1]||o;return r.set(l,o),a[0]&512&&t.$attrsToReflect$.push([o,l]),l})}}return i},hr=async(i,t,e,s,n)=>{if(!(t.$flags$&32)&&(n=i.constructor,t.$flags$|=32,customElements.whenDefined(e.$tagName$).then(()=>t.$flags$|=128),n.style)){let o=n.style;typeof o!="string"&&(o=o[t.$modeName$=Dn(i)]);const a=zi(e,t.$modeName$);if(!kt.has(a)){const l=M("registerStyles",e.$tagName$);Hn(a,o,!!(e.$flags$&1)),l()}}t.$ancestorComponent$,Xi(t,!0)},dr=i=>{},fr=i=>{if(!(m.$flags$&1)){const t=Rt(i),e=t.$cmpMeta$,s=M("connectedCallback",e.$tagName$);t.$flags$&1?(Fi(i,t,e.$listeners$),dr(t.$lazyInstance$)):(t.$flags$|=1,e.$flags$&12&&pr(i),e.$members$&&Object.entries(e.$members$).map(([n,[r]])=>{if(r&31&&i.hasOwnProperty(n)){const o=i[n];delete i[n],i[n]=o}}),hr(i,t,e)),s()}},pr=i=>{const t=i["s-cr"]=A.createComment("");t["s-cn"]=!0,i.insertBefore(t,i.firstChild)},gr=i=>{if(!(m.$flags$&1)){const t=Rt(i);t.$rmListeners$&&(t.$rmListeners$.map(e=>e()),t.$rmListeners$=void 0)}},Qi=(i,t)=>{const e={$flags$:t[0],$tagName$:t[1]};e.$members$=t[2],e.$listeners$=t[3],e.$watchers$=i.$watchers$,e.$attrsToReflect$=[];const s=i.prototype.connectedCallback,n=i.prototype.disconnectedCallback;return Object.assign(i.prototype,{__registerHost(){$r(this,e)},connectedCallback(){fr(this),s&&s.call(this)},disconnectedCallback(){gr(this),n&&n.call(this)},__attachShadow(){this.attachShadow({mode:"open",delegatesFocus:!!(e.$flags$&16)})}}),i.is=e.$tagName$,ur(i,e)},Ji=new WeakMap,Rt=i=>Ji.get(i),$r=(i,t)=>{const e={$flags$:0,$hostElement$:i,$cmpMeta$:t,$instanceValues$:new Map};return Fi(i,e,t.$listeners$),Ji.set(i,e)},Je=(i,t)=>t in i,ut=(i,t)=>(0,console.error)(i,t),kt=new Map,vr=[],Ve=[],Vi=[],mr=(i,t)=>e=>{i.push(e),Qt||(Qt=!0,t&&m.$flags$&4?yr(Jt):m.raf(Jt))},ti=i=>{for(let t=0;t<i.length;t++)try{i[t](performance.now())}catch(e){ut(e)}i.length=0},Jt=()=>{ti(Ve),ti(Vi),(Qt=Ve.length>0)&&m.raf(Jt)},yr=i=>Un().then(i),br=mr(Vi,!0),wr=(i={})=>{const{content:t="",title:e,attributes:s=[]}=i;let n="",r=[{name:"xmlns",value:"http://www.w3.org/2000/svg"},{name:"fill",value:"currentColor"},...s];return e&&(n=`<title>${e}</title>`),`<svg ${r.map(a=>`${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`},_r=i=>i.replace(/<(\/?)svg([^>]*)>/g,"").trim();function xr(i){return`${i.getFullYear()}.${i.getMonth()+1}`}class Sr{constructor(t){this.voca_component=t,this.voca_added=xr(new Date)}}const Ar="telia-vst{display:none}",kr=Qi(class extends Hi{constructor(){super(),this.__registerHost(),this.vocaInternalUStats=tr(this,"vocaInternalUStats")}connectedCallback(){this.vocaInternalUStats.emit(new Sr(this.dataTrackingId))}render(){return W(he,null)}static get style(){return Ar}},[0,"telia-vst",{dataTrackingId:[1,"data-tracking-id"]}]);function ts(){if(typeof customElements>"u")return;["telia-vst"].forEach(t=>{switch(t){case"telia-vst":customElements.get(t)||customElements.define(t,kr);break}})}ts();function Vt(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{vocadsIcons:void 0,vocadsIconsRegistered:!1}}function Cr(){if(typeof Vt().vocadsIcons!==void 0)return Vt().vocadsIcons}function Er(){return Vt().vocadsIconsRegistered}const Or=".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}",Tr=Qi(class extends Hi{constructor(){super(),this.__registerHost(),this.size="md",this.allyTitle=null,this.dataTrackingId="telia-icon"}getSvgString(){if(this.svg)return this.svg;if(Er()&&this.name){const i=Cr();return i[this.name]?i[this.name].svg:""}return this.name&&console.warn(this.name,"Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"),""}render(){let i=this.getSvgString(),t=[{name:"viewBox",value:"0 0 64 64"}];this.allyTitle?t=[...t,{name:"role",value:"img"}]:t=[...t,{name:"aria-hidden",value:"true"}];const e=wr({content:_r(i),attributes:t,title:this.allyTitle});return W(he,{class:`telia-icon telia-icon--${this.size}`},W("span",{"aria-label":this.allyTitle,class:"telia-icon__container",innerHTML:e}),W("telia-vst",{dataTrackingId:this.dataTrackingId}))}static get style(){return Or}},[0,"telia-icon",{name:[1],svg:[1],size:[1],allyTitle:[1,"ally-title"],dataTestid:[1,"data-testid"]}]);function Pr(){if(typeof customElements>"u")return;["telia-icon","telia-vst"].forEach(t=>{switch(t){case"telia-icon":customElements.get(t)||customElements.define(t,Tr);break;case"telia-vst":customElements.get(t)||ts();break}})}Pr();var Ir=Object.defineProperty,Lr=(i,t,e,s)=>{for(var n=void 0,r=i.length-1,o;r>=0;r--)(o=i[r])&&(n=o(t,e,n)||n);return n&&Ir(t,e,n),n};const ei=Mi(S),me=class me extends ei{constructor(){super(...arguments),this.optionsIsVisible=!1,this.options=new Ln(this),this.optionsRef=wt(),this.optionsTriggerRef=wt(),this._onClickOutside=t=>{!this.optionsTriggerRef.value||!this.optionsRef.value||t.composedPath().includes(this.optionsTriggerRef.value)||t.composedPath().includes(this.optionsRef.value)||(this.optionsIsVisible=!1)}}addOption(t){return this.options.addOption(t)}removeOption(t){return this.options.removeOption(t)}_onToggleOptionsMenuClick(){this.optionsIsVisible=!this.optionsIsVisible}_onMinimizeClick(){this.application.trigger?this.application.trigger.toggleActive():(this.notify("widget-minimize",{widgetId:this.application.id}),this.application.storage.set("open",!1))}notify(t,e={}){window!=null&&window.parent&&window.parent.postMessage({type:t,data:e},"*")}connectedCallback(){super.connectedCallback(),document.addEventListener("click",this._onClickOutside)}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this._onClickOutside)}render(){var a,l,c;const t=this.application.branding(),e=(a=t==null?void 0:t.graphics)==null?void 0:a.logotype,s=this.application.texts,n=s.get("widget-header.header","ACE Widget"),r=this.application.settings.components.conversation,o=(c=(l=r==null?void 0:r.properties)==null?void 0:l.chat)==null?void 0:c.isThirdPartyWidget;return b` <div class="widget-header">
|
|
446
459
|
${e?b` <img
|
|
447
460
|
src=${e}
|
|
448
461
|
class="logotype"
|
|
@@ -458,7 +471,7 @@
|
|
|
458
471
|
<button
|
|
459
472
|
@click=${this._onToggleOptionsMenuClick}
|
|
460
473
|
class="widget-header__action-button"
|
|
461
|
-
${
|
|
474
|
+
${_t(this.optionsTriggerRef)}
|
|
462
475
|
title=${s.getOrFallback("widget-header.ellipses","Options")}
|
|
463
476
|
data-testid="options-button"
|
|
464
477
|
>
|
|
@@ -466,7 +479,7 @@
|
|
|
466
479
|
</button>
|
|
467
480
|
${this.optionsIsVisible?b` <div
|
|
468
481
|
class="options-menu"
|
|
469
|
-
${
|
|
482
|
+
${_t(this.optionsRef)}
|
|
470
483
|
${Ri({keyframeOptions:{duration:120},in:Me,out:Me,stabilizeOut:!0,skipInitial:!1})}
|
|
471
484
|
>
|
|
472
485
|
${this.options.options.map(u=>b`<button
|