@telia-ace/widget-core-flamingo 1.1.120-rc.30 → 1.1.120-rc.31
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 +10 -10
- package/index.mjs +284 -282
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -27,24 +27,24 @@ function mt(r) {
|
|
27
27
|
function vt(r, t) {
|
28
28
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
29
29
|
if (!e) return r;
|
30
|
-
var i = e.call(r), s,
|
30
|
+
var i = e.call(r), s, o = [], n;
|
31
31
|
try {
|
32
|
-
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; )
|
32
|
+
for (; (t === void 0 || t-- > 0) && !(s = i.next()).done; ) o.push(s.value);
|
33
33
|
} catch (a) {
|
34
|
-
|
34
|
+
n = { error: a };
|
35
35
|
} finally {
|
36
36
|
try {
|
37
37
|
s && !s.done && (e = i.return) && e.call(i);
|
38
38
|
} finally {
|
39
|
-
if (
|
39
|
+
if (n) throw n.error;
|
40
40
|
}
|
41
41
|
}
|
42
|
-
return
|
42
|
+
return o;
|
43
43
|
}
|
44
44
|
function yt(r, t, e) {
|
45
|
-
if (e || arguments.length === 2) for (var i = 0, s = t.length,
|
46
|
-
(
|
47
|
-
return r.concat(
|
45
|
+
if (e || arguments.length === 2) for (var i = 0, s = t.length, o; i < s; i++)
|
46
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
47
|
+
return r.concat(o || Array.prototype.slice.call(t));
|
48
48
|
}
|
49
49
|
function _(r) {
|
50
50
|
return typeof r == "function";
|
@@ -70,21 +70,21 @@ function bt(r, t) {
|
|
70
70
|
0 <= e && r.splice(e, 1);
|
71
71
|
}
|
72
72
|
}
|
73
|
-
var
|
73
|
+
var ot = function() {
|
74
74
|
function r(t) {
|
75
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
76
76
|
}
|
77
77
|
return r.prototype.unsubscribe = function() {
|
78
|
-
var t, e, i, s,
|
78
|
+
var t, e, i, s, o;
|
79
79
|
if (!this.closed) {
|
80
80
|
this.closed = !0;
|
81
|
-
var
|
82
|
-
if (
|
83
|
-
if (this._parentage = null, Array.isArray(
|
81
|
+
var n = this._parentage;
|
82
|
+
if (n)
|
83
|
+
if (this._parentage = null, Array.isArray(n))
|
84
84
|
try {
|
85
|
-
for (var a = mt(
|
86
|
-
var
|
87
|
-
|
85
|
+
for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
|
86
|
+
var h = c.value;
|
87
|
+
h.remove(this);
|
88
88
|
}
|
89
89
|
} catch (v) {
|
90
90
|
t = { error: v };
|
@@ -96,13 +96,13 @@ var nt = function() {
|
|
96
96
|
}
|
97
97
|
}
|
98
98
|
else
|
99
|
-
|
100
|
-
var
|
101
|
-
if (_(
|
99
|
+
n.remove(this);
|
100
|
+
var l = this.initialTeardown;
|
101
|
+
if (_(l))
|
102
102
|
try {
|
103
|
-
|
103
|
+
l();
|
104
104
|
} catch (v) {
|
105
|
-
|
105
|
+
o = v instanceof at ? v.errors : [v];
|
106
106
|
}
|
107
107
|
var d = this._finalizers;
|
108
108
|
if (d) {
|
@@ -113,7 +113,7 @@ var nt = function() {
|
|
113
113
|
try {
|
114
114
|
Ut(g);
|
115
115
|
} catch (v) {
|
116
|
-
|
116
|
+
o = o ?? [], v instanceof at ? o = yt(yt([], vt(o)), vt(v.errors)) : o.push(v);
|
117
117
|
}
|
118
118
|
}
|
119
119
|
} catch (v) {
|
@@ -126,8 +126,8 @@ var nt = function() {
|
|
126
126
|
}
|
127
127
|
}
|
128
128
|
}
|
129
|
-
if (
|
130
|
-
throw new at(
|
129
|
+
if (o)
|
130
|
+
throw new at(o);
|
131
131
|
}
|
132
132
|
}, r.prototype.add = function(t) {
|
133
133
|
var e;
|
@@ -158,9 +158,9 @@ var nt = function() {
|
|
158
158
|
var t = new r();
|
159
159
|
return t.closed = !0, t;
|
160
160
|
}(), r;
|
161
|
-
}(), he =
|
161
|
+
}(), he = ot.EMPTY;
|
162
162
|
function le(r) {
|
163
|
-
return r instanceof
|
163
|
+
return r instanceof ot || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
|
164
164
|
}
|
165
165
|
function Ut(r) {
|
166
166
|
_(r) ? r() : r.unsubscribe();
|
@@ -219,7 +219,7 @@ var de = function(r) {
|
|
219
219
|
this.unsubscribe();
|
220
220
|
}
|
221
221
|
}, t;
|
222
|
-
}(
|
222
|
+
}(ot), Oe = function() {
|
223
223
|
function r(t) {
|
224
224
|
this.partialObserver = t;
|
225
225
|
}
|
@@ -253,12 +253,12 @@ var de = function(r) {
|
|
253
253
|
}(), wt = function(r) {
|
254
254
|
G(t, r);
|
255
255
|
function t(e, i, s) {
|
256
|
-
var
|
257
|
-
return _(e) || !e ?
|
256
|
+
var o = r.call(this) || this, n;
|
257
|
+
return _(e) || !e ? n = {
|
258
258
|
next: e ?? void 0,
|
259
259
|
error: i ?? void 0,
|
260
260
|
complete: s ?? void 0
|
261
|
-
} :
|
261
|
+
} : n = e, o.destination = new Oe(n), o;
|
262
262
|
}
|
263
263
|
return t;
|
264
264
|
}(de);
|
@@ -294,11 +294,11 @@ var Ht = function() {
|
|
294
294
|
var e = new r();
|
295
295
|
return e.source = this, e.operator = t, e;
|
296
296
|
}, r.prototype.subscribe = function(t, e, i) {
|
297
|
-
var s = this,
|
297
|
+
var s = this, o = Le(t) ? t : new wt(t, e, i);
|
298
298
|
return J(function() {
|
299
|
-
var
|
300
|
-
|
301
|
-
}),
|
299
|
+
var n = s, a = n.operator, c = n.source;
|
300
|
+
o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
|
301
|
+
}), o;
|
302
302
|
}, r.prototype._trySubscribe = function(t) {
|
303
303
|
try {
|
304
304
|
return this._subscribe(t);
|
@@ -307,19 +307,19 @@ var Ht = function() {
|
|
307
307
|
}
|
308
308
|
}, r.prototype.forEach = function(t, e) {
|
309
309
|
var i = this;
|
310
|
-
return e = Ft(e), new e(function(s,
|
311
|
-
var
|
310
|
+
return e = Ft(e), new e(function(s, o) {
|
311
|
+
var n = new wt({
|
312
312
|
next: function(a) {
|
313
313
|
try {
|
314
314
|
t(a);
|
315
315
|
} catch (c) {
|
316
|
-
|
316
|
+
o(c), n.unsubscribe();
|
317
317
|
}
|
318
318
|
},
|
319
|
-
error:
|
319
|
+
error: o,
|
320
320
|
complete: s
|
321
321
|
});
|
322
|
-
i.subscribe(
|
322
|
+
i.subscribe(n);
|
323
323
|
});
|
324
324
|
}, r.prototype._subscribe = function(t) {
|
325
325
|
var e;
|
@@ -333,13 +333,13 @@ var Ht = function() {
|
|
333
333
|
}, r.prototype.toPromise = function(t) {
|
334
334
|
var e = this;
|
335
335
|
return t = Ft(t), new t(function(i, s) {
|
336
|
-
var
|
337
|
-
e.subscribe(function(
|
338
|
-
return
|
339
|
-
}, function(
|
340
|
-
return s(
|
336
|
+
var o;
|
337
|
+
e.subscribe(function(n) {
|
338
|
+
return o = n;
|
339
|
+
}, function(n) {
|
340
|
+
return s(n);
|
341
341
|
}, function() {
|
342
|
-
return i(
|
342
|
+
return i(o);
|
343
343
|
});
|
344
344
|
});
|
345
345
|
}, r.create = function(t) {
|
@@ -375,19 +375,19 @@ var Ue = ce(function(r) {
|
|
375
375
|
}, t.prototype.next = function(e) {
|
376
376
|
var i = this;
|
377
377
|
J(function() {
|
378
|
-
var s,
|
378
|
+
var s, o;
|
379
379
|
if (i._throwIfClosed(), !i.isStopped) {
|
380
380
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
381
381
|
try {
|
382
|
-
for (var
|
382
|
+
for (var n = mt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
383
383
|
var c = a.value;
|
384
384
|
c.next(e);
|
385
385
|
}
|
386
|
-
} catch (
|
387
|
-
s = { error:
|
386
|
+
} catch (h) {
|
387
|
+
s = { error: h };
|
388
388
|
} finally {
|
389
389
|
try {
|
390
|
-
a && !a.done && (
|
390
|
+
a && !a.done && (o = n.return) && o.call(n);
|
391
391
|
} finally {
|
392
392
|
if (s) throw s.error;
|
393
393
|
}
|
@@ -426,13 +426,13 @@ var Ue = ce(function(r) {
|
|
426
426
|
}, t.prototype._subscribe = function(e) {
|
427
427
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
428
428
|
}, t.prototype._innerSubscribe = function(e) {
|
429
|
-
var i = this, s = this,
|
430
|
-
return
|
429
|
+
var i = this, s = this, o = s.hasError, n = s.isStopped, a = s.observers;
|
430
|
+
return o || n ? he : (this.currentObservers = null, a.push(e), new ot(function() {
|
431
431
|
i.currentObservers = null, bt(a, e);
|
432
432
|
}));
|
433
433
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
434
|
-
var i = this, s = i.hasError,
|
435
|
-
s ? e.error(
|
434
|
+
var i = this, s = i.hasError, o = i.thrownError, n = i.isStopped;
|
435
|
+
s ? e.error(o) : n && e.complete();
|
436
436
|
}, t.prototype.asObservable = function() {
|
437
437
|
var e = new Ht();
|
438
438
|
return e.source = this, e;
|
@@ -474,10 +474,10 @@ var Ue = ce(function(r) {
|
|
474
474
|
var i = r.prototype._subscribe.call(this, e);
|
475
475
|
return !i.closed && e.next(this._value), i;
|
476
476
|
}, t.prototype.getValue = function() {
|
477
|
-
var e = this, i = e.hasError, s = e.thrownError,
|
477
|
+
var e = this, i = e.hasError, s = e.thrownError, o = e._value;
|
478
478
|
if (i)
|
479
479
|
throw s;
|
480
|
-
return this._throwIfClosed(),
|
480
|
+
return this._throwIfClosed(), o;
|
481
481
|
}, t.prototype.next = function(e) {
|
482
482
|
r.prototype.next.call(this, this._value = e);
|
483
483
|
}, t;
|
@@ -527,11 +527,11 @@ let pe = class {
|
|
527
527
|
}
|
528
528
|
};
|
529
529
|
const je = (r) => new pe(typeof r == "string" ? r : r + "", void 0, Et), U = (r, ...t) => {
|
530
|
-
const e = r.length === 1 ? r[0] : t.reduce((i, s,
|
531
|
-
if (
|
532
|
-
if (typeof
|
533
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
534
|
-
})(s) + r[
|
530
|
+
const e = r.length === 1 ? r[0] : t.reduce((i, s, o) => i + ((n) => {
|
531
|
+
if (n._$cssResult$ === !0) return n.cssText;
|
532
|
+
if (typeof n == "number") return n;
|
533
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
534
|
+
})(s) + r[o + 1], r[0]);
|
535
535
|
return new pe(e, r, Et);
|
536
536
|
}, He = (r, t) => {
|
537
537
|
if (Ct) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
@@ -593,14 +593,14 @@ let T = class extends HTMLElement {
|
|
593
593
|
}
|
594
594
|
}
|
595
595
|
static getPropertyDescriptor(t, e, i) {
|
596
|
-
const { get: s, set:
|
596
|
+
const { get: s, set: o } = De(this.prototype, t) ?? { get() {
|
597
597
|
return this[e];
|
598
|
-
}, set(
|
599
|
-
this[e] =
|
598
|
+
}, set(n) {
|
599
|
+
this[e] = n;
|
600
600
|
} };
|
601
|
-
return { get: s, set(
|
601
|
+
return { get: s, set(n) {
|
602
602
|
const a = s == null ? void 0 : s.call(this);
|
603
|
-
|
603
|
+
o == null || o.call(this, n), this.requestUpdate(t, a, i);
|
604
604
|
}, configurable: !0, enumerable: !0 };
|
605
605
|
}
|
606
606
|
static getPropertyOptions(t) {
|
@@ -685,32 +685,34 @@ let T = class extends HTMLElement {
|
|
685
685
|
this._$AK(t, i);
|
686
686
|
}
|
687
687
|
_$ET(t, e) {
|
688
|
-
var
|
688
|
+
var o;
|
689
689
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
690
690
|
if (s !== void 0 && i.reflect === !0) {
|
691
|
-
const
|
692
|
-
this._$Em = t,
|
691
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : Q).toAttribute(e, i.type);
|
692
|
+
this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
|
693
693
|
}
|
694
694
|
}
|
695
695
|
_$AK(t, e) {
|
696
|
-
var
|
696
|
+
var o, n;
|
697
697
|
const i = this.constructor, s = i._$Eh.get(t);
|
698
698
|
if (s !== void 0 && this._$Em !== s) {
|
699
|
-
const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((
|
700
|
-
this._$Em = s
|
699
|
+
const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter : Q;
|
700
|
+
this._$Em = s;
|
701
|
+
const h = c.fromAttribute(e, a.type);
|
702
|
+
this[s] = h ?? ((n = this._$Ej) == null ? void 0 : n.get(s)) ?? h, this._$Em = null;
|
701
703
|
}
|
702
704
|
}
|
703
705
|
requestUpdate(t, e, i) {
|
704
706
|
var s;
|
705
707
|
if (t !== void 0) {
|
706
|
-
const
|
707
|
-
if (i ?? (i =
|
708
|
+
const o = this.constructor, n = this[t];
|
709
|
+
if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ?? St)(n, e) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(o._$Eu(t, i)))) return;
|
708
710
|
this.C(t, e, i);
|
709
711
|
}
|
710
712
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
711
713
|
}
|
712
|
-
C(t, e, { useDefault: i, reflect: s, wrapped:
|
713
|
-
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t,
|
714
|
+
C(t, e, { useDefault: i, reflect: s, wrapped: o }, n) {
|
715
|
+
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, n ?? e ?? this[t]), o !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
714
716
|
}
|
715
717
|
async _$EP() {
|
716
718
|
this.isUpdatePending = !0;
|
@@ -730,21 +732,21 @@ let T = class extends HTMLElement {
|
|
730
732
|
if (!this.isUpdatePending) return;
|
731
733
|
if (!this.hasUpdated) {
|
732
734
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
733
|
-
for (const [
|
735
|
+
for (const [o, n] of this._$Ep) this[o] = n;
|
734
736
|
this._$Ep = void 0;
|
735
737
|
}
|
736
738
|
const s = this.constructor.elementProperties;
|
737
|
-
if (s.size > 0) for (const [
|
738
|
-
const { wrapped: a } =
|
739
|
-
a !== !0 || this._$AL.has(
|
739
|
+
if (s.size > 0) for (const [o, n] of s) {
|
740
|
+
const { wrapped: a } = n, c = this[o];
|
741
|
+
a !== !0 || this._$AL.has(o) || c === void 0 || this.C(o, void 0, n, c);
|
740
742
|
}
|
741
743
|
}
|
742
744
|
let t = !1;
|
743
745
|
const e = this._$AL;
|
744
746
|
try {
|
745
747
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
746
|
-
var
|
747
|
-
return (
|
748
|
+
var o;
|
749
|
+
return (o = s.hostUpdate) == null ? void 0 : o.call(s);
|
748
750
|
}), this.update(e)) : this._$EM();
|
749
751
|
} catch (s) {
|
750
752
|
throw t = !1, this._$EM(), s;
|
@@ -780,7 +782,7 @@ let T = class extends HTMLElement {
|
|
780
782
|
firstUpdated(t) {
|
781
783
|
}
|
782
784
|
};
|
783
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[F("elementProperties")] = /* @__PURE__ */ new Map(), T[F("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.
|
785
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[F("elementProperties")] = /* @__PURE__ */ new Map(), T[F("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.1");
|
784
786
|
/**
|
785
787
|
* @license
|
786
788
|
* Copyright 2017 Google LLC
|
@@ -795,46 +797,46 @@ function ve(r, t) {
|
|
795
797
|
}
|
796
798
|
const Ze = (r, t) => {
|
797
799
|
const e = r.length - 1, i = [];
|
798
|
-
let s,
|
800
|
+
let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = H;
|
799
801
|
for (let a = 0; a < e; a++) {
|
800
802
|
const c = r[a];
|
801
|
-
let
|
802
|
-
for (; u < c.length && (
|
803
|
-
const f =
|
804
|
-
|
803
|
+
let h, l, d = -1, u = 0;
|
804
|
+
for (; u < c.length && (n.lastIndex = u, l = n.exec(c), l !== null); ) u = n.lastIndex, n === H ? l[1] === "!--" ? n = Kt : l[1] !== void 0 ? n = Yt : l[2] !== void 0 ? (me.test(l[2]) && (s = RegExp("</" + l[2], "g")), n = E) : l[3] !== void 0 && (n = E) : n === E ? l[0] === ">" ? (n = s ?? H, d = -1) : l[1] === void 0 ? d = -2 : (d = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? E : l[3] === '"' ? Jt : Zt) : n === Jt || n === Zt ? n = E : n === Kt || n === Yt ? n = H : (n = E, s = void 0);
|
805
|
+
const f = n === E && r[a + 1].startsWith("/>") ? " " : "";
|
806
|
+
o += n === H ? c + Ge : d >= 0 ? (i.push(h), c.slice(0, d) + fe + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
805
807
|
}
|
806
|
-
return [ve(r,
|
808
|
+
return [ve(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
807
809
|
};
|
808
810
|
let $t = class ye {
|
809
811
|
constructor({ strings: t, _$litType$: e }, i) {
|
810
812
|
let s;
|
811
813
|
this.parts = [];
|
812
|
-
let
|
813
|
-
const a = t.length - 1, c = this.parts, [
|
814
|
-
if (this.el = ye.createElement(
|
814
|
+
let o = 0, n = 0;
|
815
|
+
const a = t.length - 1, c = this.parts, [h, l] = Ze(t, e);
|
816
|
+
if (this.el = ye.createElement(h, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
815
817
|
const d = this.el.content.firstChild;
|
816
818
|
d.replaceWith(...d.childNodes);
|
817
819
|
}
|
818
820
|
for (; (s = P.nextNode()) !== null && c.length < a; ) {
|
819
821
|
if (s.nodeType === 1) {
|
820
822
|
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(fe)) {
|
821
|
-
const u =
|
822
|
-
c.push({ type: 1, index:
|
823
|
-
} else d.startsWith(x) && (c.push({ type: 6, index:
|
823
|
+
const u = l[n++], f = s.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(u);
|
824
|
+
c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : nt }), s.removeAttribute(d);
|
825
|
+
} else d.startsWith(x) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
|
824
826
|
if (me.test(s.tagName)) {
|
825
827
|
const d = s.textContent.split(x), u = d.length - 1;
|
826
828
|
if (u > 0) {
|
827
829
|
s.textContent = tt ? tt.emptyScript : "";
|
828
|
-
for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++
|
830
|
+
for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++o });
|
829
831
|
s.append(d[u], z());
|
830
832
|
}
|
831
833
|
}
|
832
|
-
} else if (s.nodeType === 8) if (s.data === ge) c.push({ type: 2, index:
|
834
|
+
} else if (s.nodeType === 8) if (s.data === ge) c.push({ type: 2, index: o });
|
833
835
|
else {
|
834
836
|
let d = -1;
|
835
|
-
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index:
|
837
|
+
for (; (d = s.data.indexOf(x, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += x.length - 1;
|
836
838
|
}
|
837
|
-
|
839
|
+
o++;
|
838
840
|
}
|
839
841
|
}
|
840
842
|
static createElement(t, e) {
|
@@ -843,11 +845,11 @@ let $t = class ye {
|
|
843
845
|
}
|
844
846
|
};
|
845
847
|
function M(r, t, e = r, i) {
|
846
|
-
var
|
848
|
+
var n, a;
|
847
849
|
if (t === k) return t;
|
848
|
-
let s = i !== void 0 ? (
|
849
|
-
const
|
850
|
-
return (s == null ? void 0 : s.constructor) !==
|
850
|
+
let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
851
|
+
const o = V(t) ? void 0 : t._$litDirective$;
|
852
|
+
return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = M(r, s._$AS(r, t.values), s, i)), t;
|
851
853
|
}
|
852
854
|
class Je {
|
853
855
|
constructor(t, e) {
|
@@ -862,13 +864,13 @@ class Je {
|
|
862
864
|
u(t) {
|
863
865
|
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? I).importNode(e, !0);
|
864
866
|
P.currentNode = s;
|
865
|
-
let
|
867
|
+
let o = P.nextNode(), n = 0, a = 0, c = i[0];
|
866
868
|
for (; c !== void 0; ) {
|
867
|
-
if (
|
868
|
-
let
|
869
|
-
c.type === 2 ?
|
869
|
+
if (n === c.index) {
|
870
|
+
let h;
|
871
|
+
c.type === 2 ? h = new K(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new ei(o, this, t)), this._$AV.push(h), c = i[++a];
|
870
872
|
}
|
871
|
-
|
873
|
+
n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
|
872
874
|
}
|
873
875
|
return P.currentNode = I, s;
|
874
876
|
}
|
@@ -909,12 +911,12 @@ class K {
|
|
909
911
|
this._$AH !== p && V(this._$AH) ? this._$AA.nextSibling.data = t : this.T(I.createTextNode(t)), this._$AH = t;
|
910
912
|
}
|
911
913
|
$(t) {
|
912
|
-
var
|
914
|
+
var o;
|
913
915
|
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = $t.createElement(ve(i.h, i.h[0]), this.options)), i);
|
914
|
-
if (((
|
916
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
|
915
917
|
else {
|
916
|
-
const
|
917
|
-
|
918
|
+
const n = new Je(s, this), a = n.u(this.options);
|
919
|
+
n.p(e), this.T(a), this._$AH = n;
|
918
920
|
}
|
919
921
|
}
|
920
922
|
_$AC(t) {
|
@@ -925,12 +927,12 @@ class K {
|
|
925
927
|
Pt(this._$AH) || (this._$AH = [], this._$AR());
|
926
928
|
const e = this._$AH;
|
927
929
|
let i, s = 0;
|
928
|
-
for (const
|
930
|
+
for (const o of t) s === e.length ? e.push(i = new K(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(o), s++;
|
929
931
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
930
932
|
}
|
931
933
|
_$AR(t = this._$AA.nextSibling, e) {
|
932
934
|
var i;
|
933
|
-
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t
|
935
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t !== this._$AB; ) {
|
934
936
|
const s = t.nextSibling;
|
935
937
|
t.remove(), t = s;
|
936
938
|
}
|
@@ -940,32 +942,32 @@ class K {
|
|
940
942
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
941
943
|
}
|
942
944
|
}
|
943
|
-
class
|
945
|
+
class nt {
|
944
946
|
get tagName() {
|
945
947
|
return this.element.tagName;
|
946
948
|
}
|
947
949
|
get _$AU() {
|
948
950
|
return this._$AM._$AU;
|
949
951
|
}
|
950
|
-
constructor(t, e, i, s,
|
951
|
-
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options =
|
952
|
+
constructor(t, e, i, s, o) {
|
953
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = s, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = p;
|
952
954
|
}
|
953
955
|
_$AI(t, e = this, i, s) {
|
954
|
-
const
|
955
|
-
let
|
956
|
-
if (
|
956
|
+
const o = this.strings;
|
957
|
+
let n = !1;
|
958
|
+
if (o === void 0) t = M(this, t, e, 0), n = !V(t) || t !== this._$AH && t !== k, n && (this._$AH = t);
|
957
959
|
else {
|
958
960
|
const a = t;
|
959
|
-
let c,
|
960
|
-
for (t =
|
961
|
+
let c, h;
|
962
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) h = M(this, a[i + c], e, c), h === k && (h = this._$AH[c]), n || (n = !V(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
961
963
|
}
|
962
|
-
|
964
|
+
n && !s && this.j(t);
|
963
965
|
}
|
964
966
|
j(t) {
|
965
967
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
966
968
|
}
|
967
969
|
}
|
968
|
-
class Xe extends
|
970
|
+
class Xe extends nt {
|
969
971
|
constructor() {
|
970
972
|
super(...arguments), this.type = 3;
|
971
973
|
}
|
@@ -973,7 +975,7 @@ class Xe extends ot {
|
|
973
975
|
this.element[this.name] = t === p ? void 0 : t;
|
974
976
|
}
|
975
977
|
}
|
976
|
-
class Qe extends
|
978
|
+
class Qe extends nt {
|
977
979
|
constructor() {
|
978
980
|
super(...arguments), this.type = 4;
|
979
981
|
}
|
@@ -981,14 +983,14 @@ class Qe extends ot {
|
|
981
983
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
982
984
|
}
|
983
985
|
}
|
984
|
-
class ti extends
|
985
|
-
constructor(t, e, i, s,
|
986
|
-
super(t, e, i, s,
|
986
|
+
class ti extends nt {
|
987
|
+
constructor(t, e, i, s, o) {
|
988
|
+
super(t, e, i, s, o), this.type = 5;
|
987
989
|
}
|
988
990
|
_$AI(t, e = this) {
|
989
991
|
if ((t = M(this, t, e, 0) ?? p) === k) return;
|
990
|
-
const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive,
|
991
|
-
s && this.element.removeEventListener(this.name, this, i),
|
992
|
+
const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== p && (i === p || s);
|
993
|
+
s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
992
994
|
}
|
993
995
|
handleEvent(t) {
|
994
996
|
var e;
|
@@ -1007,13 +1009,13 @@ class ei {
|
|
1007
1009
|
}
|
1008
1010
|
}
|
1009
1011
|
const lt = B.litHtmlPolyfillSupport;
|
1010
|
-
lt == null || lt($t, K), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.3.
|
1012
|
+
lt == null || lt($t, K), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.3.1");
|
1011
1013
|
const ii = (r, t, e) => {
|
1012
1014
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1013
1015
|
let s = i._$litPart$;
|
1014
1016
|
if (s === void 0) {
|
1015
|
-
const
|
1016
|
-
i._$litPart$ = s = new K(t.insertBefore(z(),
|
1017
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
1018
|
+
i._$litPart$ = s = new K(t.insertBefore(z(), o), o, void 0, e ?? {});
|
1017
1019
|
}
|
1018
1020
|
return s._$AI(r), s;
|
1019
1021
|
};
|
@@ -1052,7 +1054,7 @@ var ae;
|
|
1052
1054
|
A._$litElement$ = !0, A.finalized = !0, (ae = O.litElementHydrateSupport) == null || ae.call(O, { LitElement: A });
|
1053
1055
|
const dt = O.litElementPolyfillSupport;
|
1054
1056
|
dt == null || dt({ LitElement: A });
|
1055
|
-
(O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.
|
1057
|
+
(O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.1");
|
1056
1058
|
/**
|
1057
1059
|
* @license
|
1058
1060
|
* Copyright 2017 Google LLC
|
@@ -1060,29 +1062,29 @@ dt == null || dt({ LitElement: A });
|
|
1060
1062
|
*/
|
1061
1063
|
const si = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged: St }, ri = (r = si, t, e) => {
|
1062
1064
|
const { kind: i, metadata: s } = e;
|
1063
|
-
let
|
1064
|
-
if (
|
1065
|
-
const { name:
|
1065
|
+
let o = globalThis.litPropertyMetadata.get(s);
|
1066
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(e.name, r), i === "accessor") {
|
1067
|
+
const { name: n } = e;
|
1066
1068
|
return { set(a) {
|
1067
1069
|
const c = t.get.call(this);
|
1068
|
-
t.set.call(this, a), this.requestUpdate(
|
1070
|
+
t.set.call(this, a), this.requestUpdate(n, c, r);
|
1069
1071
|
}, init(a) {
|
1070
|
-
return a !== void 0 && this.C(
|
1072
|
+
return a !== void 0 && this.C(n, void 0, r, a), a;
|
1071
1073
|
} };
|
1072
1074
|
}
|
1073
1075
|
if (i === "setter") {
|
1074
|
-
const { name:
|
1076
|
+
const { name: n } = e;
|
1075
1077
|
return function(a) {
|
1076
|
-
const c = this[
|
1077
|
-
t.call(this, a), this.requestUpdate(
|
1078
|
+
const c = this[n];
|
1079
|
+
t.call(this, a), this.requestUpdate(n, c, r);
|
1078
1080
|
};
|
1079
1081
|
}
|
1080
1082
|
throw Error("Unsupported decorator location: " + i);
|
1081
1083
|
};
|
1082
1084
|
function m(r) {
|
1083
|
-
return (t, e) => typeof e == "object" ? ri(r, t, e) : ((i, s,
|
1084
|
-
const
|
1085
|
-
return s.constructor.createProperty(
|
1085
|
+
return (t, e) => typeof e == "object" ? ri(r, t, e) : ((i, s, o) => {
|
1086
|
+
const n = s.hasOwnProperty(o);
|
1087
|
+
return s.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
1086
1088
|
})(r, t, e);
|
1087
1089
|
}
|
1088
1090
|
/**
|
@@ -1093,10 +1095,10 @@ function m(r) {
|
|
1093
1095
|
function j(r) {
|
1094
1096
|
return m({ ...r, state: !0, attribute: !1 });
|
1095
1097
|
}
|
1096
|
-
var
|
1097
|
-
for (var s = void 0,
|
1098
|
-
(
|
1099
|
-
return s &&
|
1098
|
+
var oi = Object.defineProperty, ni = (r, t, e, i) => {
|
1099
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1100
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
1101
|
+
return s && oi(t, e, s), s;
|
1100
1102
|
};
|
1101
1103
|
const Tt = class Tt extends A {
|
1102
1104
|
constructor() {
|
@@ -1130,7 +1132,7 @@ Tt.styles = [
|
|
1130
1132
|
`
|
1131
1133
|
];
|
1132
1134
|
let W = Tt;
|
1133
|
-
|
1135
|
+
ni([
|
1134
1136
|
m({ attribute: !0 })
|
1135
1137
|
], W.prototype, "anchor");
|
1136
1138
|
/**
|
@@ -1191,7 +1193,7 @@ function ci(r) {
|
|
1191
1193
|
}
|
1192
1194
|
function hi(r, t = !1, e = 0) {
|
1193
1195
|
const i = this._$AH, s = this._$AN;
|
1194
|
-
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let
|
1196
|
+
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++) D(i[o], !1), et(i[o]);
|
1195
1197
|
else i != null && (D(i, !1), et(i));
|
1196
1198
|
else D(this, r);
|
1197
1199
|
}
|
@@ -1274,7 +1276,7 @@ class gi extends $e {
|
|
1274
1276
|
update(t, [e]) {
|
1275
1277
|
var s;
|
1276
1278
|
const i = this.u === void 0;
|
1277
|
-
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((
|
1279
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, re.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1278
1280
|
}
|
1279
1281
|
p(t) {
|
1280
1282
|
t = t ?? {};
|
@@ -1284,15 +1286,15 @@ class gi extends $e {
|
|
1284
1286
|
m() {
|
1285
1287
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1286
1288
|
return this.options.properties.forEach((s) => {
|
1287
|
-
const
|
1288
|
-
t[s] = isNaN(
|
1289
|
+
const o = e[s] ?? (pt[s] ? void 0 : i[s]), n = Number(o);
|
1290
|
+
t[s] = isNaN(n) ? o + "" : n;
|
1289
1291
|
}), t;
|
1290
1292
|
}
|
1291
1293
|
v() {
|
1292
1294
|
let t, e = !0;
|
1293
1295
|
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
1294
1296
|
if (Array.isArray(i)) {
|
1295
|
-
if (Array.isArray(s) && s.length === i.length && i.every((
|
1297
|
+
if (Array.isArray(s) && s.length === i.length && i.every((o, n) => o === s[n])) return !1;
|
1296
1298
|
} else if (s === i) return !1;
|
1297
1299
|
return !0;
|
1298
1300
|
})(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;
|
@@ -1306,14 +1308,14 @@ class gi extends $e {
|
|
1306
1308
|
this.prepare(), await ee;
|
1307
1309
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
1308
1310
|
if (this.A !== void 0) {
|
1309
|
-
const { from:
|
1310
|
-
this.log("measured", [this.A, s,
|
1311
|
+
const { from: o, to: n } = this.N(this.A, s, e);
|
1312
|
+
this.log("measured", [this.A, s, o, n]), t = this.calculateKeyframes(o, n);
|
1311
1313
|
} else {
|
1312
|
-
const
|
1313
|
-
if (
|
1314
|
+
const o = ut.get(this.options.inId);
|
1315
|
+
if (o) {
|
1314
1316
|
ut.delete(this.options.inId);
|
1315
|
-
const { from:
|
1316
|
-
t = this.calculateKeyframes(
|
1317
|
+
const { from: n, to: a } = this.N(o, s, e);
|
1318
|
+
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Qt++, t.forEach((c) => c.zIndex = Qt);
|
1317
1319
|
} else this.options.in && (t = [...this.options.in, {}]);
|
1318
1320
|
}
|
1319
1321
|
this.animate(t, i);
|
@@ -1335,8 +1337,8 @@ class gi extends $e {
|
|
1335
1337
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1336
1338
|
const s = this.m();
|
1337
1339
|
this.log("stabilizing out");
|
1338
|
-
const
|
1339
|
-
getComputedStyle(this.element).position !== "static" ||
|
1340
|
+
const o = this.A.left - s.left, n = this.A.top - s.top;
|
1341
|
+
getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
|
1340
1342
|
}
|
1341
1343
|
}
|
1342
1344
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1374,25 +1376,25 @@ class gi extends $e {
|
|
1374
1376
|
N(t, e, i) {
|
1375
1377
|
t = { ...t }, e = { ...e };
|
1376
1378
|
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1377
|
-
let
|
1379
|
+
let o = 1, n = 1;
|
1378
1380
|
return s.length > 0 && (s.forEach((a) => {
|
1379
|
-
a.width && (
|
1380
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1381
|
+
a.width && (o /= a.width), a.height && (n /= a.height);
|
1382
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
|
1381
1383
|
}
|
1382
1384
|
calculateKeyframes(t, e, i = !1) {
|
1383
|
-
const s = {},
|
1384
|
-
let
|
1385
|
+
const s = {}, o = {};
|
1386
|
+
let n = !1;
|
1385
1387
|
const a = {};
|
1386
1388
|
for (const c in e) {
|
1387
|
-
const
|
1389
|
+
const h = t[c], l = e[c];
|
1388
1390
|
if (c in pt) {
|
1389
1391
|
const d = pt[c];
|
1390
|
-
if (
|
1391
|
-
const u = d(
|
1392
|
-
u.transform !== void 0 && (a[c] = u.value,
|
1393
|
-
} else
|
1392
|
+
if (h === void 0 || l === void 0) continue;
|
1393
|
+
const u = d(h, l);
|
1394
|
+
u.transform !== void 0 && (a[c] = u.value, n = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
|
1395
|
+
} else h !== l && h !== void 0 && l !== void 0 && (n = !0, s[c] = h, o[c] = l);
|
1394
1396
|
}
|
1395
|
-
return s.transformOrigin =
|
1397
|
+
return s.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [s, o] : void 0;
|
1396
1398
|
}
|
1397
1399
|
async animate(t, e = this.options.keyframeOptions) {
|
1398
1400
|
this.start(), this.frames = t;
|
@@ -1423,7 +1425,7 @@ const mi = It(gi), vi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns
|
|
1423
1425
|
* Copyright 2018 Google LLC
|
1424
1426
|
* SPDX-License-Identifier: BSD-3-Clause
|
1425
1427
|
*/
|
1426
|
-
const
|
1428
|
+
const oe = It(class extends be {
|
1427
1429
|
constructor(r) {
|
1428
1430
|
var t;
|
1429
1431
|
if (super(r), r.type !== Ot.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
@@ -1434,22 +1436,22 @@ const ne = It(class extends be {
|
|
1434
1436
|
update(r, [t]) {
|
1435
1437
|
var i, s;
|
1436
1438
|
if (this.st === void 0) {
|
1437
|
-
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((
|
1438
|
-
for (const
|
1439
|
+
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
1440
|
+
for (const o in t) t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
1439
1441
|
return this.render(t);
|
1440
1442
|
}
|
1441
1443
|
const e = r.element.classList;
|
1442
|
-
for (const
|
1443
|
-
for (const
|
1444
|
-
const
|
1445
|
-
|
1444
|
+
for (const o of this.st) o in t || (e.remove(o), this.st.delete(o));
|
1445
|
+
for (const o in t) {
|
1446
|
+
const n = !!t[o];
|
1447
|
+
n === this.st.has(o) || (s = this.nt) != null && s.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
1446
1448
|
}
|
1447
1449
|
return k;
|
1448
1450
|
}
|
1449
1451
|
}), w = (r, t, e) => {
|
1450
1452
|
r && e.style.setProperty(t, r);
|
1451
1453
|
}, _e = (r, t) => {
|
1452
|
-
var e, i, s,
|
1454
|
+
var e, i, s, o, n, a, c, h, l;
|
1453
1455
|
w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
|
1454
1456
|
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1455
1457
|
"--text-on-primary-background",
|
@@ -1459,11 +1461,11 @@ const ne = It(class extends be {
|
|
1459
1461
|
"--secondary-background",
|
1460
1462
|
t
|
1461
1463
|
), w(
|
1462
|
-
(
|
1464
|
+
(o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
1463
1465
|
"--text-on-secondary-background",
|
1464
1466
|
t
|
1465
1467
|
), w(
|
1466
|
-
(
|
1468
|
+
(n = r.colors) == null ? void 0 : n.interactiveDestructiveBackground,
|
1467
1469
|
"--destructive-color",
|
1468
1470
|
t
|
1469
1471
|
), w(
|
@@ -1475,10 +1477,10 @@ const ne = It(class extends be {
|
|
1475
1477
|
"--interactive-primary-background",
|
1476
1478
|
t
|
1477
1479
|
), w(
|
1478
|
-
(
|
1480
|
+
(h = r.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
1479
1481
|
"--interactive-text-on-primary-background",
|
1480
1482
|
t
|
1481
|
-
), w((
|
1483
|
+
), w((l = r.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
1482
1484
|
};
|
1483
1485
|
/**
|
1484
1486
|
* @license
|
@@ -1516,8 +1518,8 @@ const ft = /* @__PURE__ */ new WeakMap(), xe = It(class extends $e {
|
|
1516
1518
|
}
|
1517
1519
|
});
|
1518
1520
|
var bi = Object.defineProperty, Y = (r, t, e, i) => {
|
1519
|
-
for (var s = void 0,
|
1520
|
-
(
|
1521
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1522
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
1521
1523
|
return s && bi(t, e, s), s;
|
1522
1524
|
};
|
1523
1525
|
const Rt = class Rt extends A {
|
@@ -1560,20 +1562,20 @@ const Rt = class Rt extends A {
|
|
1560
1562
|
(t = this.application) != null && t.settings && _e(this.application.settings.branding, this);
|
1561
1563
|
}
|
1562
1564
|
async _renderSymbol() {
|
1563
|
-
var a, c,
|
1565
|
+
var a, c, h;
|
1564
1566
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1565
1567
|
if (e)
|
1566
1568
|
return R` <img src=${e} class="trigger-icon" alt="" /> `;
|
1567
|
-
const i = (
|
1569
|
+
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1568
1570
|
if (!i)
|
1569
1571
|
return p;
|
1570
|
-
const s = async (
|
1571
|
-
switch (
|
1572
|
+
const s = async (l) => vi, { type: o, content: n } = i;
|
1573
|
+
switch (o) {
|
1572
1574
|
case "Telia": {
|
1573
|
-
const
|
1574
|
-
return
|
1575
|
+
const l = await s();
|
1576
|
+
return l ? R`<telia-icon
|
1575
1577
|
class="trigger-icon"
|
1576
|
-
svg=${
|
1578
|
+
svg=${l.svg}
|
1577
1579
|
size="lg"
|
1578
1580
|
></telia-icon>` : p;
|
1579
1581
|
}
|
@@ -1595,9 +1597,9 @@ const Rt = class Rt extends A {
|
|
1595
1597
|
this.triggerVisible = !0;
|
1596
1598
|
}
|
1597
1599
|
render() {
|
1598
|
-
var t, e, i, s,
|
1600
|
+
var t, e, i, s, o, n, a;
|
1599
1601
|
return R`<div
|
1600
|
-
class=${
|
1602
|
+
class=${oe({
|
1601
1603
|
"trigger-container": !0,
|
1602
1604
|
hidden: !this.triggerVisible
|
1603
1605
|
})}
|
@@ -1622,8 +1624,8 @@ const Rt = class Rt extends A {
|
|
1622
1624
|
|
1623
1625
|
<button
|
1624
1626
|
type="button"
|
1625
|
-
aria-label="${((a = (
|
1626
|
-
class=${
|
1627
|
+
aria-label="${((a = (n = (o = this.application) == null ? void 0 : o.settings) == null ? void 0 : n.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
|
1628
|
+
class=${oe({
|
1627
1629
|
trigger: !0,
|
1628
1630
|
active: this.active,
|
1629
1631
|
rendered: this.loaded
|
@@ -1811,8 +1813,8 @@ Y([
|
|
1811
1813
|
j()
|
1812
1814
|
], b.prototype, "icon");
|
1813
1815
|
var wi = Object.defineProperty, S = (r, t, e, i) => {
|
1814
|
-
for (var s = void 0,
|
1815
|
-
(
|
1816
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1817
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
1816
1818
|
return s && wi(t, e, s), s;
|
1817
1819
|
};
|
1818
1820
|
const $i = (r) => {
|
@@ -1954,19 +1956,19 @@ let Ei = class extends Event {
|
|
1954
1956
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
1955
1957
|
}
|
1956
1958
|
};
|
1957
|
-
class
|
1959
|
+
class ne extends Ci {
|
1958
1960
|
constructor(t, e, i) {
|
1959
|
-
var s,
|
1960
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
1961
|
-
if (
|
1962
|
-
const a =
|
1963
|
-
a !== this.host && (
|
1964
|
-
}, this.onProviderRequest = (
|
1965
|
-
if (
|
1961
|
+
var s, o;
|
1962
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
1963
|
+
if (n.context !== this.context) return;
|
1964
|
+
const a = n.contextTarget ?? n.composedPath()[0];
|
1965
|
+
a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
|
1966
|
+
}, this.onProviderRequest = (n) => {
|
1967
|
+
if (n.context !== this.context || (n.contextTarget ?? n.composedPath()[0]) === this.host) return;
|
1966
1968
|
const a = /* @__PURE__ */ new Set();
|
1967
|
-
for (const [c, { consumerHost:
|
1968
|
-
|
1969
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
1969
|
+
for (const [c, { consumerHost: h }] of this.subscriptions) a.has(c) || (a.add(c), h.dispatchEvent(new xi(this.context, h, c, !0)));
|
1970
|
+
n.stopPropagation();
|
1971
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (s = this.host).addController) == null || o.call(s, this);
|
1970
1972
|
}
|
1971
1973
|
attachListeners() {
|
1972
1974
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
@@ -1988,34 +1990,34 @@ function Si({ context: r }) {
|
|
1988
1990
|
}, set(s) {
|
1989
1991
|
return i.get(this).setValue(s), t.set.call(this, s);
|
1990
1992
|
}, init(s) {
|
1991
|
-
return i.set(this, new
|
1993
|
+
return i.set(this, new ne(this, { context: r, initialValue: s })), s;
|
1992
1994
|
} };
|
1993
1995
|
{
|
1994
|
-
t.constructor.addInitializer((
|
1995
|
-
i.set(
|
1996
|
+
t.constructor.addInitializer((n) => {
|
1997
|
+
i.set(n, new ne(n, { context: r }));
|
1996
1998
|
});
|
1997
1999
|
const s = Object.getOwnPropertyDescriptor(t, e);
|
1998
|
-
let
|
2000
|
+
let o;
|
1999
2001
|
if (s === void 0) {
|
2000
|
-
const
|
2001
|
-
|
2002
|
-
return
|
2002
|
+
const n = /* @__PURE__ */ new WeakMap();
|
2003
|
+
o = { get() {
|
2004
|
+
return n.get(this);
|
2003
2005
|
}, set(a) {
|
2004
|
-
i.get(this).setValue(a),
|
2006
|
+
i.get(this).setValue(a), n.set(this, a);
|
2005
2007
|
}, configurable: !0, enumerable: !0 };
|
2006
2008
|
} else {
|
2007
|
-
const
|
2008
|
-
|
2009
|
-
i.get(this).setValue(a),
|
2009
|
+
const n = s.set;
|
2010
|
+
o = { ...s, set(a) {
|
2011
|
+
i.get(this).setValue(a), n == null || n.call(this, a);
|
2010
2012
|
} };
|
2011
2013
|
}
|
2012
|
-
return void Object.defineProperty(t, e,
|
2014
|
+
return void Object.defineProperty(t, e, o);
|
2013
2015
|
}
|
2014
2016
|
};
|
2015
2017
|
}
|
2016
2018
|
var Pi = Object.defineProperty, Ce = (r, t, e, i) => {
|
2017
|
-
for (var s = void 0,
|
2018
|
-
(
|
2019
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
2020
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
2019
2021
|
return s && Pi(t, e, s), s;
|
2020
2022
|
};
|
2021
2023
|
const Oi = "application", Nt = class Nt extends A {
|
@@ -2046,7 +2048,7 @@ const Oi = "application", Nt = class Nt extends A {
|
|
2046
2048
|
var i, s;
|
2047
2049
|
const t = this.application.settings.components.conversation;
|
2048
2050
|
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.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"), R`<div class="widget-container" ${xe(this.wrapperRef)}>
|
2049
|
-
${_i(this.nodes, (
|
2051
|
+
${_i(this.nodes, (o) => o)}
|
2050
2052
|
</div>`;
|
2051
2053
|
}
|
2052
2054
|
};
|
@@ -2232,19 +2234,19 @@ class Ii {
|
|
2232
2234
|
this.root.application = e;
|
2233
2235
|
const i = (a) => {
|
2234
2236
|
if (Array.isArray(a)) {
|
2235
|
-
const [c, ...
|
2237
|
+
const [c, ...h] = a;
|
2236
2238
|
return {
|
2237
2239
|
definitionId: c,
|
2238
|
-
overrides:
|
2240
|
+
overrides: h
|
2239
2241
|
};
|
2240
2242
|
}
|
2241
2243
|
return {
|
2242
2244
|
definitionId: a,
|
2243
2245
|
overrides: []
|
2244
2246
|
};
|
2245
|
-
}, s = (a, c,
|
2246
|
-
|
2247
|
-
const u = i(d), f =
|
2247
|
+
}, s = (a, c, h, l) => {
|
2248
|
+
h.forEach((d) => {
|
2249
|
+
const u = i(d), f = l[u.definitionId];
|
2248
2250
|
if (!f) {
|
2249
2251
|
console.error(
|
2250
2252
|
`No definition found for component type '${u.definitionId}'.`
|
@@ -2256,12 +2258,12 @@ class Ii {
|
|
2256
2258
|
a,
|
2257
2259
|
g,
|
2258
2260
|
f.children,
|
2259
|
-
|
2261
|
+
l
|
2260
2262
|
// views
|
2261
2263
|
));
|
2262
2264
|
});
|
2263
|
-
}, { entry:
|
2264
|
-
return s(this, this.root, [
|
2265
|
+
}, { entry: o, components: n } = t;
|
2266
|
+
return s(this, this.root, [o], n), this.root;
|
2265
2267
|
}
|
2266
2268
|
createRoot() {
|
2267
2269
|
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", N)), document.createElement("ace-wrapper");
|
@@ -2322,8 +2324,8 @@ class ki {
|
|
2322
2324
|
}
|
2323
2325
|
const s = i.category;
|
2324
2326
|
if (this.policy[s]) {
|
2325
|
-
const
|
2326
|
-
this.storage.setItem(this._prefixKey(t), JSON.stringify(
|
2327
|
+
const o = { value: e, category: s };
|
2328
|
+
this.storage.setItem(this._prefixKey(t), JSON.stringify(o));
|
2327
2329
|
} else
|
2328
2330
|
console.warn(
|
2329
2331
|
`Storage policy does not allow storing items in category: ${s}`
|
@@ -2380,7 +2382,7 @@ class Ti {
|
|
2380
2382
|
return this.texts.get(t) || e;
|
2381
2383
|
}
|
2382
2384
|
}
|
2383
|
-
const Ri = "1.1.120-rc.
|
2385
|
+
const Ri = "1.1.120-rc.31";
|
2384
2386
|
class Mi {
|
2385
2387
|
constructor(t) {
|
2386
2388
|
this.widget = t, this.name = t.name;
|
@@ -2404,28 +2406,28 @@ class Mi {
|
|
2404
2406
|
}
|
2405
2407
|
}
|
2406
2408
|
class Ni {
|
2407
|
-
constructor(t, e, i, s,
|
2408
|
-
this.id = t, this.name = e, this.container = i, this.settings = s, this.options =
|
2409
|
-
var
|
2409
|
+
constructor(t, e, i, s, o) {
|
2410
|
+
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Ii(), this.texts = new Ti(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Mi(this), this.onMessageReceived = async (a) => {
|
2411
|
+
var h;
|
2410
2412
|
const c = a.data;
|
2411
2413
|
switch (c.type) {
|
2412
2414
|
case "set-storage-policies": {
|
2413
|
-
const { policies:
|
2414
|
-
[y.Analytics]:
|
2415
|
-
[y.Necessary]:
|
2416
|
-
[y.Functional]:
|
2415
|
+
const { policies: l } = c.data || [], d = {
|
2416
|
+
[y.Analytics]: l.includes("analytics"),
|
2417
|
+
[y.Necessary]: l.includes("necessary"),
|
2418
|
+
[y.Functional]: l.includes("functional")
|
2417
2419
|
};
|
2418
2420
|
this.storage.updatePolicy(d);
|
2419
2421
|
return;
|
2420
2422
|
}
|
2421
2423
|
case "disallow-storage-key": {
|
2422
|
-
const { storageKey:
|
2423
|
-
|
2424
|
+
const { storageKey: l } = c.data || null;
|
2425
|
+
l && this.storage.disallowKey(l);
|
2424
2426
|
return;
|
2425
2427
|
}
|
2426
2428
|
case "set-fullscreen-mode": {
|
2427
|
-
const { value:
|
2428
|
-
typeof
|
2429
|
+
const { value: l } = c.data;
|
2430
|
+
typeof l == "boolean" && this.setFullscreenMode(l);
|
2429
2431
|
return;
|
2430
2432
|
}
|
2431
2433
|
case "open": {
|
@@ -2437,13 +2439,13 @@ class Ni {
|
|
2437
2439
|
return;
|
2438
2440
|
}
|
2439
2441
|
case "set-z-index": {
|
2440
|
-
const { zIndex:
|
2441
|
-
|
2442
|
+
const { zIndex: l } = c.data || null;
|
2443
|
+
l && this.setZIndex(l);
|
2442
2444
|
return;
|
2443
2445
|
}
|
2444
2446
|
case "deactivate-widget": {
|
2445
|
-
const
|
2446
|
-
this.hide(), (
|
2447
|
+
const l = this.storage.get("open");
|
2448
|
+
this.hide(), (h = this.trigger) == null || h.hideTrigger(), l && this.storage.set("open", !0);
|
2447
2449
|
return;
|
2448
2450
|
}
|
2449
2451
|
case "set-open": {
|
@@ -2454,7 +2456,7 @@ class Ni {
|
|
2454
2456
|
return;
|
2455
2457
|
}
|
2456
2458
|
}, this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
|
2457
|
-
const
|
2459
|
+
const n = {
|
2458
2460
|
[y.Necessary]: !0,
|
2459
2461
|
[y.Functional]: !0,
|
2460
2462
|
[y.Analytics]: !0
|
@@ -2462,9 +2464,9 @@ class Ni {
|
|
2462
2464
|
this.storage = new ki(
|
2463
2465
|
this.id,
|
2464
2466
|
"sessionStorage",
|
2465
|
-
|
2467
|
+
n,
|
2466
2468
|
this.settings.storage
|
2467
|
-
), typeof
|
2469
|
+
), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
2468
2470
|
}
|
2469
2471
|
async activate() {
|
2470
2472
|
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ue.Ready), this.autoActivate) {
|
@@ -2565,18 +2567,18 @@ const qi = (r) => new q(r), rt = class rt {
|
|
2565
2567
|
id: i.id,
|
2566
2568
|
triggers: i.triggers || [],
|
2567
2569
|
apps: (i.widgets || []).map((s) => {
|
2568
|
-
let
|
2569
|
-
s.renderStrategy.toLowerCase() === "inline" && (
|
2570
|
-
const
|
2570
|
+
let o = $.Trigger;
|
2571
|
+
s.renderStrategy.toLowerCase() === "inline" && (o = $.Inline);
|
2572
|
+
const n = s.widgetId ? s.widgetId : s.id, a = typeof s.autoActivate == "boolean" ? s.autoActivate : !1, c = typeof s.anchor == "string" ? s.anchor : "BottomRight", h = typeof s.triggerIcon == "string" ? s.triggerIcon : "question";
|
2571
2573
|
return {
|
2572
|
-
id:
|
2573
|
-
widgetId:
|
2574
|
-
renderStrategy:
|
2574
|
+
id: n,
|
2575
|
+
widgetId: n,
|
2576
|
+
renderStrategy: o,
|
2575
2577
|
autoActivate: a,
|
2576
2578
|
anchor: c,
|
2577
2579
|
triggerIcon: {
|
2578
2580
|
type: "Telia",
|
2579
|
-
content:
|
2581
|
+
content: h
|
2580
2582
|
}
|
2581
2583
|
};
|
2582
2584
|
})
|
@@ -2600,12 +2602,12 @@ class Li {
|
|
2600
2602
|
var i;
|
2601
2603
|
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((s) => {
|
2602
2604
|
if (s.storage) {
|
2603
|
-
const
|
2605
|
+
const o = {
|
2604
2606
|
[y.Analytics]: t.includes("analytics"),
|
2605
2607
|
[y.Necessary]: t.includes("necessary"),
|
2606
2608
|
[y.Functional]: t.includes("functional")
|
2607
2609
|
};
|
2608
|
-
s.storage.updatePolicy(
|
2610
|
+
s.storage.updatePolicy(o);
|
2609
2611
|
}
|
2610
2612
|
});
|
2611
2613
|
}
|
@@ -2638,24 +2640,24 @@ class Ui {
|
|
2638
2640
|
(i) => i.autoActivate
|
2639
2641
|
);
|
2640
2642
|
(((e = this.site) == null ? void 0 : e.triggers) || []).filter((i) => i.triggerType === "visit").forEach((i) => {
|
2641
|
-
const s = window.location.pathname,
|
2642
|
-
i.condition.type === "url" &&
|
2643
|
-
const a =
|
2644
|
-
if ((
|
2645
|
-
let
|
2643
|
+
const s = window.location.pathname, o = i.condition.outputs || [];
|
2644
|
+
i.condition.type === "url" && o.forEach((n) => {
|
2645
|
+
const a = n.action.type === "render_widget";
|
2646
|
+
if ((n.value === s || n.value === "*") && a) {
|
2647
|
+
let h = { widgetId: "" };
|
2646
2648
|
try {
|
2647
|
-
|
2649
|
+
h = JSON.parse(n.action.data);
|
2648
2650
|
} catch {
|
2649
|
-
|
2651
|
+
h = {
|
2650
2652
|
widgetId: ""
|
2651
2653
|
};
|
2652
2654
|
}
|
2653
|
-
const
|
2654
|
-
(u) => u.id ===
|
2655
|
+
const l = t.findIndex(
|
2656
|
+
(u) => u.id === h.widgetId
|
2655
2657
|
) > -1, d = this.applications.find(
|
2656
|
-
(u) => u.id ===
|
2658
|
+
(u) => u.id === h.widgetId
|
2657
2659
|
);
|
2658
|
-
d && !
|
2660
|
+
d && !l && (d.autoActivate = !0, t.push(d));
|
2659
2661
|
}
|
2660
2662
|
});
|
2661
2663
|
});
|
@@ -2684,16 +2686,16 @@ class Ui {
|
|
2684
2686
|
if (!i) {
|
2685
2687
|
const s = this.widgetAPIHandlers.get(t) || [];
|
2686
2688
|
s.push(() => {
|
2687
|
-
const
|
2688
|
-
e(
|
2689
|
+
const o = this.applications.find((n) => n.name === t);
|
2690
|
+
e(o == null ? void 0 : o.api);
|
2689
2691
|
}), this.widgetAPIHandlers.set(t, s);
|
2690
2692
|
return;
|
2691
2693
|
}
|
2692
2694
|
e(i == null ? void 0 : i.api);
|
2693
2695
|
}
|
2694
2696
|
registerApp(t, e, i, s) {
|
2695
|
-
const
|
2696
|
-
this.applications.push(
|
2697
|
+
const o = new Dt(e, this), n = new Ni(t, e, o, i, s);
|
2698
|
+
this.applications.push(n);
|
2697
2699
|
}
|
2698
2700
|
registerSite(t) {
|
2699
2701
|
this.site = t;
|
@@ -2761,8 +2763,8 @@ class ji {
|
|
2761
2763
|
}
|
2762
2764
|
}
|
2763
2765
|
var Hi = Object.defineProperty, kt = (r, t, e, i) => {
|
2764
|
-
for (var s = void 0,
|
2765
|
-
(
|
2766
|
+
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
2767
|
+
(n = r[o]) && (s = n(t, e, s) || s);
|
2766
2768
|
return s && Hi(t, e, s), s;
|
2767
2769
|
};
|
2768
2770
|
const Lt = class Lt extends A {
|