@telia-ace/widget-core-flamingo 1.1.56-rc.0 → 1.1.56-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +16 -14
- package/index.mjs +217 -215
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -27,7 +27,7 @@ function ft(r) {
|
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function
|
30
|
+
function K(r, t) {
|
31
31
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
32
32
|
if (!e)
|
33
33
|
return r;
|
@@ -47,7 +47,7 @@ function Y(r, t) {
|
|
47
47
|
}
|
48
48
|
return n;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function G(r, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
52
|
for (var i = 0, s = t.length, n; i < s; i++)
|
53
53
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
@@ -56,13 +56,13 @@ function K(r, t, e) {
|
|
56
56
|
function b(r) {
|
57
57
|
return typeof r == "function";
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function Gt(r) {
|
60
60
|
var t = function(i) {
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
62
62
|
}, e = r(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var st =
|
65
|
+
var st = Gt(function(r) {
|
66
66
|
return function(e) {
|
67
67
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
68
|
` + e.map(function(i, s) {
|
@@ -90,8 +90,8 @@ var Q = function() {
|
|
90
90
|
if (this._parentage = null, Array.isArray(o))
|
91
91
|
try {
|
92
92
|
for (var a = ft(o), c = a.next(); !c.done; c = a.next()) {
|
93
|
-
var
|
94
|
-
|
93
|
+
var h = c.value;
|
94
|
+
h.remove(this);
|
95
95
|
}
|
96
96
|
} catch (v) {
|
97
97
|
t = { error: v };
|
@@ -105,10 +105,10 @@ var Q = function() {
|
|
105
105
|
}
|
106
106
|
else
|
107
107
|
o.remove(this);
|
108
|
-
var
|
109
|
-
if (b(
|
108
|
+
var l = this.initialTeardown;
|
109
|
+
if (b(l))
|
110
110
|
try {
|
111
|
-
|
111
|
+
l();
|
112
112
|
} catch (v) {
|
113
113
|
n = v instanceof st ? v.errors : [v];
|
114
114
|
}
|
@@ -121,7 +121,7 @@ var Q = function() {
|
|
121
121
|
try {
|
122
122
|
xt(g);
|
123
123
|
} catch (v) {
|
124
|
-
n = n ?? [], v instanceof st ? n =
|
124
|
+
n = n ?? [], v instanceof st ? n = G(G([], K(n)), K(v.errors)) : n.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
@@ -185,7 +185,7 @@ var Xt = {
|
|
185
185
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
186
|
e[i - 2] = arguments[i];
|
187
187
|
var s = mt.delegate;
|
188
|
-
return s != null && s.setTimeout ? s.setTimeout.apply(s,
|
188
|
+
return s != null && s.setTimeout ? s.setTimeout.apply(s, G([r, t], K(e))) : setTimeout.apply(void 0, G([r, t], K(e)));
|
189
189
|
},
|
190
190
|
clearTimeout: function(r) {
|
191
191
|
var t = mt.delegate;
|
@@ -248,7 +248,7 @@ var be = function() {
|
|
248
248
|
try {
|
249
249
|
e.next(t);
|
250
250
|
} catch (i) {
|
251
|
-
|
251
|
+
F(i);
|
252
252
|
}
|
253
253
|
}, r.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
@@ -256,17 +256,17 @@ var be = function() {
|
|
256
256
|
try {
|
257
257
|
e.error(t);
|
258
258
|
} catch (i) {
|
259
|
-
|
259
|
+
F(i);
|
260
260
|
}
|
261
261
|
else
|
262
|
-
|
262
|
+
F(t);
|
263
263
|
}, r.prototype.complete = function() {
|
264
264
|
var t = this.partialObserver;
|
265
265
|
if (t.complete)
|
266
266
|
try {
|
267
267
|
t.complete();
|
268
268
|
} catch (e) {
|
269
|
-
|
269
|
+
F(e);
|
270
270
|
}
|
271
271
|
}, r;
|
272
272
|
}(), vt = function(r) {
|
@@ -293,7 +293,7 @@ var be = function() {
|
|
293
293
|
}
|
294
294
|
return t;
|
295
295
|
}(Qt);
|
296
|
-
function
|
296
|
+
function F(r) {
|
297
297
|
ve(r);
|
298
298
|
}
|
299
299
|
function $e(r) {
|
@@ -317,7 +317,7 @@ function Ce(r) {
|
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
|
-
var
|
320
|
+
var Pt = function() {
|
321
321
|
function r(t) {
|
322
322
|
t && (this._subscribe = t);
|
323
323
|
}
|
@@ -338,7 +338,7 @@ var Ot = function() {
|
|
338
338
|
}
|
339
339
|
}, r.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e =
|
341
|
+
return e = Ot(e), new e(function(s, n) {
|
342
342
|
var o = new vt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
@@ -363,7 +363,7 @@ var Ot = function() {
|
|
363
363
|
return Ce(t)(this);
|
364
364
|
}, r.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t =
|
366
|
+
return t = Ot(t), new t(function(i, s) {
|
367
367
|
var n;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return n = o;
|
@@ -377,7 +377,7 @@ var Ot = function() {
|
|
377
377
|
return new r(t);
|
378
378
|
}, r;
|
379
379
|
}();
|
380
|
-
function
|
380
|
+
function Ot(r) {
|
381
381
|
var t;
|
382
382
|
return (t = r ?? Xt.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
@@ -387,7 +387,7 @@ function Se(r) {
|
|
387
387
|
function xe(r) {
|
388
388
|
return r && r instanceof Qt || Se(r) && Jt(r);
|
389
389
|
}
|
390
|
-
var Ee =
|
390
|
+
var Ee = Gt(function(r) {
|
391
391
|
return function() {
|
392
392
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
@@ -414,8 +414,8 @@ var Ee = Kt(function(r) {
|
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
417
|
-
} catch (
|
418
|
-
s = { error:
|
417
|
+
} catch (h) {
|
418
|
+
s = { error: h };
|
419
419
|
} finally {
|
420
420
|
try {
|
421
421
|
a && !a.done && (n = o.return) && n.call(o);
|
@@ -466,12 +466,12 @@ var Ee = Kt(function(r) {
|
|
466
466
|
var i = this, s = i.hasError, n = i.thrownError, o = i.isStopped;
|
467
467
|
s ? e.error(n) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
|
-
var e = new
|
469
|
+
var e = new Pt();
|
470
470
|
return e.source = this, e;
|
471
471
|
}, t.create = function(e, i) {
|
472
472
|
return new Tt(e, i);
|
473
473
|
}, t;
|
474
|
-
}(
|
474
|
+
}(Pt), Tt = function(r) {
|
475
475
|
B(t, r);
|
476
476
|
function t(e, i) {
|
477
477
|
var s = r.call(this) || this;
|
@@ -490,7 +490,7 @@ var Ee = Kt(function(r) {
|
|
490
490
|
var i, s;
|
491
491
|
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : Zt;
|
492
492
|
}, t;
|
493
|
-
}(te),
|
493
|
+
}(te), Pe = function(r) {
|
494
494
|
B(t, r);
|
495
495
|
function t(e) {
|
496
496
|
var i = r.call(this) || this;
|
@@ -516,7 +516,7 @@ var Ee = Kt(function(r) {
|
|
516
516
|
}(te), ee = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ee || {});
|
517
517
|
class Rt {
|
518
518
|
constructor(t, e) {
|
519
|
-
this.state = new
|
519
|
+
this.state = new Pe(
|
520
520
|
"loading"
|
521
521
|
/* Loading */
|
522
522
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -559,7 +559,7 @@ let ie = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const
|
562
|
+
const Oe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r, ...t) => {
|
563
563
|
const e = r.length === 1 ? r[0] : t.reduce((i, s, n) => i + ((o) => {
|
564
564
|
if (o._$cssResult$ === !0)
|
565
565
|
return o.cssText;
|
@@ -580,17 +580,17 @@ const Pe = (r) => new ie(typeof r == "string" ? r : r + "", void 0, $t), U = (r,
|
|
580
580
|
let e = "";
|
581
581
|
for (const i of t.cssRules)
|
582
582
|
e += i.cssText;
|
583
|
-
return
|
583
|
+
return Oe(e);
|
584
584
|
})(r) : r;
|
585
585
|
/**
|
586
586
|
* @license
|
587
587
|
* Copyright 2017 Google LLC
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
589
|
*/
|
590
|
-
const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: Ie, getOwnPropertyNames:
|
590
|
+
const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: Ie, getOwnPropertyNames: Ne, getOwnPropertySymbols: je, getPrototypeOf: ke } = Object, w = globalThis, Nt = w.trustedTypes, Me = Nt ? Nt.emptyScript : "", ot = w.reactiveElementPolyfillSupport, N = (r, t) => r, Z = { toAttribute(r, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
r = r ?
|
593
|
+
r = r ? Me : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
@@ -615,16 +615,16 @@ const { is: Re, defineProperty: Ue, getOwnPropertyDescriptor: Ie, getOwnProperty
|
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} }, _t = (r, t) => !Re(r, t),
|
618
|
+
} }, _t = (r, t) => !Re(r, t), jt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t };
|
619
619
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
|
-
let
|
620
|
+
let O = class extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
622
622
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
623
623
|
}
|
624
624
|
static get observedAttributes() {
|
625
625
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
626
626
|
}
|
627
|
-
static createProperty(t, e =
|
627
|
+
static createProperty(t, e = jt) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
629
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
630
630
|
s !== void 0 && Ue(this.prototype, t, s);
|
@@ -644,19 +644,19 @@ let P = class extends HTMLElement {
|
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
646
646
|
static getPropertyOptions(t) {
|
647
|
-
return this.elementProperties.get(t) ??
|
647
|
+
return this.elementProperties.get(t) ?? jt;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
|
-
if (this.hasOwnProperty(
|
650
|
+
if (this.hasOwnProperty(N("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = ke(this);
|
653
653
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
654
654
|
}
|
655
655
|
static finalize() {
|
656
|
-
if (this.hasOwnProperty(
|
656
|
+
if (this.hasOwnProperty(N("finalized")))
|
657
657
|
return;
|
658
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
659
|
-
const e = this.properties, i = [...
|
658
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
|
659
|
+
const e = this.properties, i = [...Ne(e), ...je(e)];
|
660
660
|
for (const s of i)
|
661
661
|
this.createProperty(s, e[s]);
|
662
662
|
}
|
@@ -693,15 +693,15 @@ let P = class extends HTMLElement {
|
|
693
693
|
}
|
694
694
|
_$Ev() {
|
695
695
|
var t;
|
696
|
-
this._$
|
696
|
+
this._$ES = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
697
697
|
}
|
698
698
|
addController(t) {
|
699
699
|
var e;
|
700
|
-
(this._$
|
700
|
+
(this._$EO ?? (this._$EO = /* @__PURE__ */ new Set())).add(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
701
701
|
}
|
702
702
|
removeController(t) {
|
703
703
|
var e;
|
704
|
-
(e = this._$
|
704
|
+
(e = this._$EO) == null || e.delete(t);
|
705
705
|
}
|
706
706
|
_$E_() {
|
707
707
|
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
@@ -715,7 +715,7 @@ let P = class extends HTMLElement {
|
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
718
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$
|
718
|
+
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$EO) == null || t.forEach((e) => {
|
719
719
|
var i;
|
720
720
|
return (i = e.hostConnected) == null ? void 0 : i.call(e);
|
721
721
|
});
|
@@ -724,7 +724,7 @@ let P = class extends HTMLElement {
|
|
724
724
|
}
|
725
725
|
disconnectedCallback() {
|
726
726
|
var t;
|
727
|
-
(t = this._$
|
727
|
+
(t = this._$EO) == null || t.forEach((e) => {
|
728
728
|
var i;
|
729
729
|
return (i = e.hostDisconnected) == null ? void 0 : i.call(e);
|
730
730
|
});
|
@@ -732,7 +732,7 @@ let P = class extends HTMLElement {
|
|
732
732
|
attributeChangedCallback(t, e, i) {
|
733
733
|
this._$AK(t, i);
|
734
734
|
}
|
735
|
-
_$
|
735
|
+
_$EC(t, e) {
|
736
736
|
var n;
|
737
737
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
738
738
|
if (s !== void 0 && i.reflect === !0) {
|
@@ -748,21 +748,21 @@ let P = class extends HTMLElement {
|
|
748
748
|
this._$Em = s, this[s] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
|
-
requestUpdate(t, e, i
|
751
|
+
requestUpdate(t, e, i) {
|
752
752
|
if (t !== void 0) {
|
753
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(
|
753
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(this[t], e))
|
754
754
|
return;
|
755
|
-
this.
|
755
|
+
this.P(t, e, i);
|
756
756
|
}
|
757
|
-
this.isUpdatePending === !1 && (this._$
|
757
|
+
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
758
758
|
}
|
759
|
-
|
759
|
+
P(t, e, i) {
|
760
760
|
this._$AL.has(t) || this._$AL.set(t, e), i.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
761
761
|
}
|
762
|
-
async _$
|
762
|
+
async _$ET() {
|
763
763
|
this.isUpdatePending = !0;
|
764
764
|
try {
|
765
|
-
await this._$
|
765
|
+
await this._$ES;
|
766
766
|
} catch (e) {
|
767
767
|
Promise.reject(e);
|
768
768
|
}
|
@@ -777,7 +777,7 @@ let P = class extends HTMLElement {
|
|
777
777
|
if (!this.isUpdatePending)
|
778
778
|
return;
|
779
779
|
if (!this.hasUpdated) {
|
780
|
-
if (this._$Ep) {
|
780
|
+
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
781
781
|
for (const [n, o] of this._$Ep)
|
782
782
|
this[n] = o;
|
783
783
|
this._$Ep = void 0;
|
@@ -785,17 +785,17 @@ let P = class extends HTMLElement {
|
|
785
785
|
const s = this.constructor.elementProperties;
|
786
786
|
if (s.size > 0)
|
787
787
|
for (const [n, o] of s)
|
788
|
-
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.
|
788
|
+
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
789
789
|
}
|
790
790
|
let t = !1;
|
791
791
|
const e = this._$AL;
|
792
792
|
try {
|
793
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$
|
793
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
794
794
|
var n;
|
795
795
|
return (n = s.hostUpdate) == null ? void 0 : n.call(s);
|
796
|
-
}), this.update(e)) : this._$
|
796
|
+
}), this.update(e)) : this._$EU();
|
797
797
|
} catch (s) {
|
798
|
-
throw t = !1, this._$
|
798
|
+
throw t = !1, this._$EU(), s;
|
799
799
|
}
|
800
800
|
t && this._$AE(e);
|
801
801
|
}
|
@@ -803,55 +803,55 @@ let P = class extends HTMLElement {
|
|
803
803
|
}
|
804
804
|
_$AE(t) {
|
805
805
|
var e;
|
806
|
-
(e = this._$
|
806
|
+
(e = this._$EO) == null || e.forEach((i) => {
|
807
807
|
var s;
|
808
808
|
return (s = i.hostUpdated) == null ? void 0 : s.call(i);
|
809
809
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
810
810
|
}
|
811
|
-
_$
|
811
|
+
_$EU() {
|
812
812
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
813
813
|
}
|
814
814
|
get updateComplete() {
|
815
815
|
return this.getUpdateComplete();
|
816
816
|
}
|
817
817
|
getUpdateComplete() {
|
818
|
-
return this._$
|
818
|
+
return this._$ES;
|
819
819
|
}
|
820
820
|
shouldUpdate(t) {
|
821
821
|
return !0;
|
822
822
|
}
|
823
823
|
update(t) {
|
824
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$
|
824
|
+
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EC(e, this[e]))), this._$EU();
|
825
825
|
}
|
826
826
|
updated(t) {
|
827
827
|
}
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
};
|
831
|
-
|
831
|
+
O.elementStyles = [], O.shadowRootOptions = { mode: "open" }, O[N("elementProperties")] = /* @__PURE__ */ new Map(), O[N("finalized")] = /* @__PURE__ */ new Map(), ot == null || ot({ ReactiveElement: O }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.0.4");
|
832
832
|
/**
|
833
833
|
* @license
|
834
834
|
* Copyright 2017 Google LLC
|
835
835
|
* SPDX-License-Identifier: BSD-3-Clause
|
836
836
|
*/
|
837
|
-
const
|
838
|
-
\f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, oe = /^(?:script|style|textarea|title)$/i, Be = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Be(1),
|
837
|
+
const j = globalThis, J = j.trustedTypes, kt = J ? J.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, re = "$lit$", _ = `lit$${(Math.random() + "").slice(9)}$`, se = "?" + _, Le = `<${se}>`, E = document, M = () => E.createComment(""), L = (r) => r === null || typeof r != "object" && typeof r != "function", ne = Array.isArray, He = (r) => ne(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", at = `[
|
838
|
+
\f\r]`, I = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Mt = /-->/g, Lt = />/g, C = RegExp(`>|${at}(?:([^\\s"'>=/]+)(${at}*=${at}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ht = /'/g, Bt = /"/g, oe = /^(?:script|style|textarea|title)$/i, Be = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), T = Be(1), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Dt = /* @__PURE__ */ new WeakMap(), x = E.createTreeWalker(E, 129);
|
840
840
|
function ae(r, t) {
|
841
841
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
|
-
return
|
843
|
+
return kt !== void 0 ? kt.createHTML(t) : t;
|
844
844
|
}
|
845
845
|
const De = (r, t) => {
|
846
846
|
const e = r.length - 1, i = [];
|
847
847
|
let s, n = t === 2 ? "<svg>" : "", o = I;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
849
|
const c = r[a];
|
850
|
-
let
|
851
|
-
for (; f < c.length && (o.lastIndex = f,
|
852
|
-
f = o.lastIndex, o === I ?
|
850
|
+
let h, l, p = -1, f = 0;
|
851
|
+
for (; f < c.length && (o.lastIndex = f, l = o.exec(c), l !== null); )
|
852
|
+
f = o.lastIndex, o === I ? l[1] === "!--" ? o = Mt : l[1] !== void 0 ? o = Lt : l[2] !== void 0 ? (oe.test(l[2]) && (s = RegExp("</" + l[2], "g")), o = C) : l[3] !== void 0 && (o = C) : o === C ? l[0] === ">" ? (o = s ?? I, p = -1) : l[1] === void 0 ? p = -2 : (p = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? C : l[3] === '"' ? Bt : Ht) : o === Bt || o === Ht ? o = C : o === Mt || o === Lt ? o = I : (o = C, s = void 0);
|
853
853
|
const u = o === C && r[a + 1].startsWith("/>") ? " " : "";
|
854
|
-
n += o === I ? c + Le : p >= 0 ? (i.push(
|
854
|
+
n += o === I ? c + Le : p >= 0 ? (i.push(h), c.slice(0, p) + re + c.slice(p) + _ + u) : c + _ + (p === -2 ? a : u);
|
855
855
|
}
|
856
856
|
return [ae(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
@@ -860,8 +860,8 @@ class H {
|
|
860
860
|
let s;
|
861
861
|
this.parts = [];
|
862
862
|
let n = 0, o = 0;
|
863
|
-
const a = t.length - 1, c = this.parts, [
|
864
|
-
if (this.el = H.createElement(
|
863
|
+
const a = t.length - 1, c = this.parts, [h, l] = De(t, e);
|
864
|
+
if (this.el = H.createElement(h, i), x.currentNode = this.el.content, e === 2) {
|
865
865
|
const p = this.el.content.firstChild;
|
866
866
|
p.replaceWith(...p.childNodes);
|
867
867
|
}
|
@@ -870,8 +870,8 @@ class H {
|
|
870
870
|
if (s.hasAttributes())
|
871
871
|
for (const p of s.getAttributeNames())
|
872
872
|
if (p.endsWith(re)) {
|
873
|
-
const f =
|
874
|
-
c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ?
|
873
|
+
const f = l[o++], u = s.getAttribute(p).split(_), g = /([.?@])?(.*)/.exec(f);
|
874
|
+
c.push({ type: 1, index: n, name: g[2], strings: u, ctor: g[1] === "." ? We : g[1] === "?" ? Fe : g[1] === "@" ? Ye : tt }), s.removeAttribute(p);
|
875
875
|
} else
|
876
876
|
p.startsWith(_) && (c.push({ type: 6, index: n }), s.removeAttribute(p));
|
877
877
|
if (oe.test(s.tagName)) {
|
@@ -879,8 +879,8 @@ class H {
|
|
879
879
|
if (f > 0) {
|
880
880
|
s.textContent = J ? J.emptyScript : "";
|
881
881
|
for (let u = 0; u < f; u++)
|
882
|
-
s.append(p[u],
|
883
|
-
s.append(p[f],
|
882
|
+
s.append(p[u], M()), x.nextNode(), c.push({ type: 2, index: ++n });
|
883
|
+
s.append(p[f], M());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (s.nodeType === 8)
|
@@ -901,7 +901,7 @@ class H {
|
|
901
901
|
}
|
902
902
|
function R(r, t, e = r, i) {
|
903
903
|
var o, a;
|
904
|
-
if (t ===
|
904
|
+
if (t === P)
|
905
905
|
return t;
|
906
906
|
let s = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
907
907
|
const n = L(t) ? void 0 : t._$litDirective$;
|
@@ -923,8 +923,8 @@ class ze {
|
|
923
923
|
let n = x.nextNode(), o = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
|
-
let
|
927
|
-
c.type === 2 ?
|
926
|
+
let h;
|
927
|
+
c.type === 2 ? h = new D(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new qe(n, this, t)), this._$AV.push(h), c = i[++a];
|
928
928
|
}
|
929
929
|
o !== (c == null ? void 0 : c.index) && (n = x.nextNode(), o++);
|
930
930
|
}
|
@@ -956,37 +956,37 @@ class D {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t = R(this, t, e), L(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !==
|
959
|
+
t = R(this, t, e), L(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : He(t) ? this.k(t) : this._(t);
|
960
960
|
}
|
961
|
-
|
961
|
+
S(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
963
963
|
}
|
964
|
-
|
965
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
964
|
+
T(t) {
|
965
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
|
-
this._$AH !== d && L(this._$AH) ? this._$AA.nextSibling.data = t : this
|
968
|
+
this._$AH !== d && L(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
|
-
|
970
|
+
$(t) {
|
971
971
|
var n;
|
972
972
|
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = H.createElement(ae(i.h, i.h[0]), this.options)), i);
|
973
973
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === s)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
976
|
const o = new ze(s, this), a = o.u(this.options);
|
977
|
-
o.p(e), this
|
977
|
+
o.p(e), this.T(a), this._$AH = o;
|
978
978
|
}
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
981
981
|
let e = Dt.get(t.strings);
|
982
982
|
return e === void 0 && Dt.set(t.strings, e = new H(t)), e;
|
983
983
|
}
|
984
|
-
|
984
|
+
k(t) {
|
985
985
|
ne(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
987
|
let i, s = 0;
|
988
988
|
for (const n of t)
|
989
|
-
s === e.length ? e.push(i = new D(this.
|
989
|
+
s === e.length ? e.push(i = new D(this.S(M()), this.S(M()), this, this.options)) : i = e[s], i._$AI(n), s++;
|
990
990
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -1015,41 +1015,41 @@ class tt {
|
|
1015
1015
|
const n = this.strings;
|
1016
1016
|
let o = !1;
|
1017
1017
|
if (n === void 0)
|
1018
|
-
t = R(this, t, e, 0), o = !L(t) || t !== this._$AH && t !==
|
1018
|
+
t = R(this, t, e, 0), o = !L(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
|
-
let c,
|
1021
|
+
let c, h;
|
1022
1022
|
for (t = n[0], c = 0; c < n.length - 1; c++)
|
1023
|
-
|
1023
|
+
h = R(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !L(h) || h !== this._$AH[c]), h === d ? t = d : t !== d && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
|
-
o && !s && this.
|
1025
|
+
o && !s && this.j(t);
|
1026
1026
|
}
|
1027
|
-
|
1027
|
+
j(t) {
|
1028
1028
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
|
-
class
|
1031
|
+
class We extends tt {
|
1032
1032
|
constructor() {
|
1033
1033
|
super(...arguments), this.type = 3;
|
1034
1034
|
}
|
1035
|
-
|
1035
|
+
j(t) {
|
1036
1036
|
this.element[this.name] = t === d ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
|
-
class
|
1039
|
+
class Fe extends tt {
|
1040
1040
|
constructor() {
|
1041
1041
|
super(...arguments), this.type = 4;
|
1042
1042
|
}
|
1043
|
-
|
1043
|
+
j(t) {
|
1044
1044
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
|
-
class
|
1047
|
+
class Ye extends tt {
|
1048
1048
|
constructor(t, e, i, s, n) {
|
1049
1049
|
super(t, e, i, s, n), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
|
-
if ((t = R(this, t, e, 0) ?? d) ===
|
1052
|
+
if ((t = R(this, t, e, 0) ?? d) === P)
|
1053
1053
|
return;
|
1054
1054
|
const i = this._$AH, s = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== d && (i === d || s);
|
1055
1055
|
s && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -1070,14 +1070,14 @@ class qe {
|
|
1070
1070
|
R(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const ct =
|
1074
|
-
ct == null || ct(H, D), (
|
1073
|
+
const ct = j.litHtmlPolyfillSupport;
|
1074
|
+
ct == null || ct(H, D), (j.litHtmlVersions ?? (j.litHtmlVersions = [])).push("3.1.2");
|
1075
1075
|
const Ve = (r, t, e) => {
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
1077
|
let s = i._$litPart$;
|
1078
1078
|
if (s === void 0) {
|
1079
1079
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ = s = new D(t.insertBefore(
|
1080
|
+
i._$litPart$ = s = new D(t.insertBefore(M(), n), n, void 0, e ?? {});
|
1081
1081
|
}
|
1082
1082
|
return s._$AI(r), s;
|
1083
1083
|
};
|
@@ -1086,7 +1086,7 @@ const Ve = (r, t, e) => {
|
|
1086
1086
|
* Copyright 2017 Google LLC
|
1087
1087
|
* SPDX-License-Identifier: BSD-3-Clause
|
1088
1088
|
*/
|
1089
|
-
let $ = class extends
|
1089
|
+
let $ = class extends O {
|
1090
1090
|
constructor() {
|
1091
1091
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1092
1092
|
}
|
@@ -1108,20 +1108,20 @@ let $ = class extends P {
|
|
1108
1108
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
1109
1109
|
}
|
1110
1110
|
render() {
|
1111
|
-
return
|
1111
|
+
return P;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
|
-
var
|
1115
|
-
$._$litElement$ = !0, $.finalized = !0, (
|
1116
|
-
const
|
1117
|
-
|
1118
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.
|
1114
|
+
var Kt;
|
1115
|
+
$._$litElement$ = !0, $.finalized = !0, (Kt = globalThis.litElementHydrateSupport) == null || Kt.call(globalThis, { LitElement: $ });
|
1116
|
+
const ht = globalThis.litElementPolyfillSupport;
|
1117
|
+
ht == null || ht({ LitElement: $ });
|
1118
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
1119
1119
|
/**
|
1120
1120
|
* @license
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const
|
1124
|
+
const Ke = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: _t }, Ge = (r = Ke, t, e) => {
|
1125
1125
|
const { kind: i, metadata: s } = e;
|
1126
1126
|
let n = globalThis.litPropertyMetadata.get(s);
|
1127
1127
|
if (n === void 0 && globalThis.litPropertyMetadata.set(s, n = /* @__PURE__ */ new Map()), n.set(e.name, r), i === "accessor") {
|
@@ -1130,7 +1130,7 @@ const Ye = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged:
|
|
1130
1130
|
const c = t.get.call(this);
|
1131
1131
|
t.set.call(this, a), this.requestUpdate(o, c, r);
|
1132
1132
|
}, init(a) {
|
1133
|
-
return a !== void 0 && this.
|
1133
|
+
return a !== void 0 && this.P(o, void 0, r), a;
|
1134
1134
|
} };
|
1135
1135
|
}
|
1136
1136
|
if (i === "setter") {
|
@@ -1143,7 +1143,7 @@ const Ye = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged:
|
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
1145
|
function m(r) {
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1146
|
+
return (t, e) => typeof e == "object" ? Ge(r, t, e) : ((i, s, n) => {
|
1147
1147
|
const o = s.hasOwnProperty(n);
|
1148
1148
|
return s.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(s, n) : void 0;
|
1149
1149
|
})(r, t, e);
|
@@ -1228,13 +1228,13 @@ const Qe = (r) => r.strings === void 0;
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const
|
1231
|
+
const k = (r, t) => {
|
1232
1232
|
var i;
|
1233
1233
|
const e = r._$AN;
|
1234
1234
|
if (e === void 0)
|
1235
1235
|
return !1;
|
1236
1236
|
for (const s of e)
|
1237
|
-
(i = s._$AO) == null || i.call(s, t, !1),
|
1237
|
+
(i = s._$AO) == null || i.call(s, t, !1), k(s, t);
|
1238
1238
|
return !0;
|
1239
1239
|
}, X = (r) => {
|
1240
1240
|
let t, e;
|
@@ -1243,7 +1243,7 @@ const N = (r, t) => {
|
|
1243
1243
|
break;
|
1244
1244
|
e = t._$AN, e.delete(r), r = t;
|
1245
1245
|
} while ((e == null ? void 0 : e.size) === 0);
|
1246
|
-
},
|
1246
|
+
}, he = (r) => {
|
1247
1247
|
for (let t; t = r._$AM; r = t) {
|
1248
1248
|
let e = t._$AN;
|
1249
1249
|
if (e === void 0)
|
@@ -1254,7 +1254,7 @@ const N = (r, t) => {
|
|
1254
1254
|
}
|
1255
1255
|
};
|
1256
1256
|
function ti(r) {
|
1257
|
-
this._$AN !== void 0 ? (X(this), this._$AM = r,
|
1257
|
+
this._$AN !== void 0 ? (X(this), this._$AM = r, he(this)) : this._$AM = r;
|
1258
1258
|
}
|
1259
1259
|
function ei(r, t = !1, e = 0) {
|
1260
1260
|
const i = this._$AH, s = this._$AN;
|
@@ -1262,25 +1262,25 @@ function ei(r, t = !1, e = 0) {
|
|
1262
1262
|
if (t)
|
1263
1263
|
if (Array.isArray(i))
|
1264
1264
|
for (let n = e; n < i.length; n++)
|
1265
|
-
|
1265
|
+
k(i[n], !1), X(i[n]);
|
1266
1266
|
else
|
1267
|
-
i != null && (
|
1267
|
+
i != null && (k(i, !1), X(i));
|
1268
1268
|
else
|
1269
|
-
|
1269
|
+
k(this, r);
|
1270
1270
|
}
|
1271
1271
|
const ii = (r) => {
|
1272
1272
|
r.type == wt.CHILD && (r._$AP ?? (r._$AP = ei), r._$AQ ?? (r._$AQ = ti));
|
1273
1273
|
};
|
1274
|
-
class
|
1274
|
+
class le extends ce {
|
1275
1275
|
constructor() {
|
1276
1276
|
super(...arguments), this._$AN = void 0;
|
1277
1277
|
}
|
1278
1278
|
_$AT(t, e, i) {
|
1279
|
-
super._$AT(t, e, i),
|
1279
|
+
super._$AT(t, e, i), he(this), this.isConnected = t._$AU;
|
1280
1280
|
}
|
1281
1281
|
_$AO(t, e = !0) {
|
1282
1282
|
var i, s;
|
1283
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (
|
1283
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (k(this, t), X(this));
|
1284
1284
|
}
|
1285
1285
|
setValue(t) {
|
1286
1286
|
if (Qe(this._$Ct))
|
@@ -1297,17 +1297,17 @@ class he extends ce {
|
|
1297
1297
|
}
|
1298
1298
|
const ri = /* @__PURE__ */ new WeakMap();
|
1299
1299
|
let zt = 0;
|
1300
|
-
const
|
1300
|
+
const lt = /* @__PURE__ */ new Map(), Wt = /* @__PURE__ */ new WeakSet(), Ft = () => new Promise((r) => requestAnimationFrame(r)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Yt = (r, t) => {
|
1301
1301
|
const e = r - t;
|
1302
1302
|
return e === 0 ? void 0 : e;
|
1303
1303
|
}, qt = (r, t) => {
|
1304
1304
|
const e = r / t;
|
1305
1305
|
return e === 1 ? void 0 : e;
|
1306
1306
|
}, pt = { left: (r, t) => {
|
1307
|
-
const e =
|
1307
|
+
const e = Yt(r, t);
|
1308
1308
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1309
1309
|
}, top: (r, t) => {
|
1310
|
-
const e =
|
1310
|
+
const e = Yt(r, t);
|
1311
1311
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1312
1312
|
}, width: (r, t) => {
|
1313
1313
|
let e;
|
@@ -1320,27 +1320,27 @@ const ht = /* @__PURE__ */ new Map(), Ft = /* @__PURE__ */ new WeakSet(), Wt = (
|
|
1320
1320
|
const i = qt(r, t);
|
1321
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
1322
|
} }, ni = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"], Vt = /* @__PURE__ */ new WeakMap();
|
1323
|
-
class ai extends
|
1323
|
+
class ai extends le {
|
1324
1324
|
constructor(t) {
|
1325
|
-
if (super(t), this.t =
|
1325
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === wt.CHILD)
|
1326
1326
|
throw Error("The `animate` directive must be used in attribute position.");
|
1327
1327
|
this.createFinished();
|
1328
1328
|
}
|
1329
1329
|
createFinished() {
|
1330
1330
|
var t;
|
1331
1331
|
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
1332
|
-
this.
|
1332
|
+
this.l = e;
|
1333
1333
|
});
|
1334
1334
|
}
|
1335
1335
|
async resolveFinished() {
|
1336
1336
|
var t;
|
1337
|
-
(t = this.
|
1337
|
+
(t = this.l) == null || t.call(this), this.l = void 0;
|
1338
1338
|
}
|
1339
1339
|
render(t) {
|
1340
1340
|
return d;
|
1341
1341
|
}
|
1342
1342
|
getController() {
|
1343
|
-
return ri.get(this.
|
1343
|
+
return ri.get(this.u);
|
1344
1344
|
}
|
1345
1345
|
isDisabled() {
|
1346
1346
|
var t;
|
@@ -1348,22 +1348,22 @@ class ai extends he {
|
|
1348
1348
|
}
|
1349
1349
|
update(t, [e]) {
|
1350
1350
|
var s;
|
1351
|
-
const i = this.
|
1352
|
-
return i && (this.
|
1351
|
+
const i = this.u === void 0;
|
1352
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Vt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1353
1353
|
}
|
1354
|
-
|
1354
|
+
p(t) {
|
1355
1355
|
t = t ?? {};
|
1356
1356
|
const e = this.getController();
|
1357
1357
|
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = oi), this.options = t;
|
1358
1358
|
}
|
1359
|
-
|
1359
|
+
m() {
|
1360
1360
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1361
1361
|
return this.options.properties.forEach((s) => {
|
1362
1362
|
const n = e[s] ?? (pt[s] ? void 0 : i[s]), o = Number(n);
|
1363
1363
|
t[s] = isNaN(o) ? n + "" : o;
|
1364
1364
|
}), t;
|
1365
1365
|
}
|
1366
|
-
|
1366
|
+
v() {
|
1367
1367
|
let t, e = !0;
|
1368
1368
|
return this.options.guard && (t = this.options.guard(), e = ((i, s) => {
|
1369
1369
|
if (Array.isArray(i)) {
|
@@ -1372,25 +1372,25 @@ class ai extends he {
|
|
1372
1372
|
} else if (s === i)
|
1373
1373
|
return !1;
|
1374
1374
|
return !0;
|
1375
|
-
})(t, this.
|
1375
|
+
})(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;
|
1376
1376
|
}
|
1377
1377
|
hostUpdate() {
|
1378
|
-
typeof this.optionsOrCallback == "function" && this.
|
1378
|
+
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);
|
1379
1379
|
}
|
1380
1380
|
async hostUpdated() {
|
1381
|
-
if (!this.
|
1381
|
+
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1382
1382
|
return;
|
1383
1383
|
let t;
|
1384
|
-
this.prepare(), await
|
1385
|
-
const e = this.
|
1386
|
-
if (this.
|
1387
|
-
const { from: n, to: o } = this.
|
1388
|
-
this.log("measured", [this.
|
1384
|
+
this.prepare(), await Ft;
|
1385
|
+
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
1386
|
+
if (this.A !== void 0) {
|
1387
|
+
const { from: n, to: o } = this.N(this.A, s, e);
|
1388
|
+
this.log("measured", [this.A, s, n, o]), t = this.calculateKeyframes(n, o);
|
1389
1389
|
} else {
|
1390
|
-
const n =
|
1390
|
+
const n = lt.get(this.options.inId);
|
1391
1391
|
if (n) {
|
1392
|
-
|
1393
|
-
const { from: o, to: a } = this.
|
1392
|
+
lt.delete(this.options.inId);
|
1393
|
+
const { from: o, to: a } = this.N(n, s, e);
|
1394
1394
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, zt++, t.forEach((c) => c.zIndex = zt);
|
1395
1395
|
} else
|
1396
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
@@ -1398,28 +1398,28 @@ class ai extends he {
|
|
1398
1398
|
this.animate(t, i);
|
1399
1399
|
}
|
1400
1400
|
resetStyles() {
|
1401
|
-
this.
|
1401
|
+
this.P !== void 0 && (this.element.setAttribute("style", this.P ?? ""), this.P = void 0);
|
1402
1402
|
}
|
1403
1403
|
commitStyles() {
|
1404
1404
|
var t, e;
|
1405
|
-
this.
|
1405
|
+
this.P = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
|
1406
1406
|
}
|
1407
1407
|
reconnected() {
|
1408
1408
|
}
|
1409
1409
|
async disconnected() {
|
1410
1410
|
var e;
|
1411
|
-
if (!this.
|
1411
|
+
if (!this.h || (this.options.id !== void 0 && lt.set(this.options.id, this.A), this.options.out === void 0))
|
1412
1412
|
return;
|
1413
|
-
if (this.prepare(), await
|
1414
|
-
const i = this.
|
1415
|
-
if (this.
|
1416
|
-
const s = this.
|
1413
|
+
if (this.prepare(), await Ft(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1414
|
+
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1415
|
+
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1416
|
+
const s = this.m();
|
1417
1417
|
this.log("stabilizing out");
|
1418
|
-
const n = this.
|
1418
|
+
const n = this.A.left - s.left, o = this.A.top - s.top;
|
1419
1419
|
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
1420
1420
|
}
|
1421
1421
|
}
|
1422
|
-
const t = this.
|
1422
|
+
const t = this.j(this.options.keyframeOptions);
|
1423
1423
|
await this.animate(this.options.out, t), this.element.remove();
|
1424
1424
|
}
|
1425
1425
|
prepare() {
|
@@ -1431,9 +1431,9 @@ class ai extends he {
|
|
1431
1431
|
}
|
1432
1432
|
didFinish(t) {
|
1433
1433
|
var e, i;
|
1434
|
-
t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.
|
1434
|
+
t && ((i = (e = this.options).onComplete) == null || i.call(e, this)), this.A = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
1435
1435
|
}
|
1436
|
-
|
1436
|
+
O() {
|
1437
1437
|
const t = [];
|
1438
1438
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1439
1439
|
const i = Vt.get(e);
|
@@ -1442,20 +1442,20 @@ class ai extends he {
|
|
1442
1442
|
return t;
|
1443
1443
|
}
|
1444
1444
|
get isHostRendered() {
|
1445
|
-
const t =
|
1446
|
-
return t || this.
|
1447
|
-
|
1445
|
+
const t = Wt.has(this.u);
|
1446
|
+
return t || this.u.updateComplete.then(() => {
|
1447
|
+
Wt.add(this.u);
|
1448
1448
|
}), t;
|
1449
1449
|
}
|
1450
|
-
|
1450
|
+
j(t, e = this.O()) {
|
1451
1451
|
const i = { ...ni };
|
1452
1452
|
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
1453
1453
|
}
|
1454
|
-
|
1454
|
+
N(t, e, i) {
|
1455
1455
|
t = { ...t }, e = { ...e };
|
1456
1456
|
const s = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1457
1457
|
let n = 1, o = 1;
|
1458
|
-
return s
|
1458
|
+
return s.length > 0 && (s.forEach((a) => {
|
1459
1459
|
a.width && (n /= a.width), a.height && (o /= a.height);
|
1460
1460
|
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
1461
1461
|
}
|
@@ -1464,15 +1464,15 @@ class ai extends he {
|
|
1464
1464
|
let o = !1;
|
1465
1465
|
const a = {};
|
1466
1466
|
for (const c in e) {
|
1467
|
-
const
|
1467
|
+
const h = t[c], l = e[c];
|
1468
1468
|
if (c in pt) {
|
1469
1469
|
const p = pt[c];
|
1470
|
-
if (
|
1470
|
+
if (h === void 0 || l === void 0)
|
1471
1471
|
continue;
|
1472
|
-
const f = p(
|
1472
|
+
const f = p(h, l);
|
1473
1473
|
f.transform !== void 0 && (a[c] = f.value, o = !0, s.transform = `${s.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(s, f.overrideFrom));
|
1474
1474
|
} else
|
1475
|
-
|
1475
|
+
h !== l && h !== void 0 && l !== void 0 && (o = !0, s[c] = h, n[c] = l);
|
1476
1476
|
}
|
1477
1477
|
return s.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [s, n] : void 0;
|
1478
1478
|
}
|
@@ -1499,13 +1499,13 @@ class ai extends he {
|
|
1499
1499
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1500
1500
|
}
|
1501
1501
|
}
|
1502
|
-
const ci = At(ai),
|
1502
|
+
const ci = At(ai), hi = { 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>' };
|
1503
1503
|
/**
|
1504
1504
|
* @license
|
1505
1505
|
* Copyright 2018 Google LLC
|
1506
1506
|
* SPDX-License-Identifier: BSD-3-Clause
|
1507
1507
|
*/
|
1508
|
-
const
|
1508
|
+
const li = At(class extends ce {
|
1509
1509
|
constructor(r) {
|
1510
1510
|
var t;
|
1511
1511
|
if (super(r), r.type !== wt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
@@ -1516,34 +1516,34 @@ const hi = At(class extends ce {
|
|
1516
1516
|
}
|
1517
1517
|
update(r, [t]) {
|
1518
1518
|
var i, s;
|
1519
|
-
if (this.
|
1520
|
-
this.
|
1519
|
+
if (this.st === void 0) {
|
1520
|
+
this.st = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.nt = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
1521
1521
|
for (const n in t)
|
1522
|
-
t[n] && !((i = this.
|
1522
|
+
t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
1523
1523
|
return this.render(t);
|
1524
1524
|
}
|
1525
1525
|
const e = r.element.classList;
|
1526
|
-
for (const n of this.
|
1527
|
-
n in t || (e.remove(n), this.
|
1526
|
+
for (const n of this.st)
|
1527
|
+
n in t || (e.remove(n), this.st.delete(n));
|
1528
1528
|
for (const n in t) {
|
1529
1529
|
const o = !!t[n];
|
1530
|
-
o === this.
|
1530
|
+
o === this.st.has(n) || (s = this.nt) != null && s.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
1531
1531
|
}
|
1532
|
-
return
|
1532
|
+
return P;
|
1533
1533
|
}
|
1534
|
-
}),
|
1534
|
+
}), Y = (r, t, e) => {
|
1535
1535
|
r && e.style.setProperty(t, r);
|
1536
1536
|
}, pe = (r, t) => {
|
1537
1537
|
var e, i, s, n;
|
1538
|
-
|
1538
|
+
Y((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
|
1539
1539
|
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1540
1540
|
"--text-on-primary-background",
|
1541
1541
|
t
|
1542
|
-
),
|
1542
|
+
), Y(
|
1543
1543
|
(s = r.colors) == null ? void 0 : s.secondaryBackground,
|
1544
1544
|
"--secondary-background",
|
1545
1545
|
t
|
1546
|
-
),
|
1546
|
+
), Y(
|
1547
1547
|
(n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1548
1548
|
"--text-on-secondary-background",
|
1549
1549
|
t
|
@@ -1557,32 +1557,32 @@ const hi = At(class extends ce {
|
|
1557
1557
|
const de = () => new pi();
|
1558
1558
|
class pi {
|
1559
1559
|
}
|
1560
|
-
const dt = /* @__PURE__ */ new WeakMap(), ue = At(class extends
|
1560
|
+
const dt = /* @__PURE__ */ new WeakMap(), ue = At(class extends le {
|
1561
1561
|
render(r) {
|
1562
1562
|
return d;
|
1563
1563
|
}
|
1564
1564
|
update(r, [t]) {
|
1565
1565
|
var i;
|
1566
|
-
const e = t !== this.
|
1567
|
-
return e && this.
|
1566
|
+
const e = t !== this.Y;
|
1567
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = r.options) == null ? void 0 : i.host, this.rt(this.ct = r.element)), d;
|
1568
1568
|
}
|
1569
|
-
|
1570
|
-
if (typeof this.
|
1571
|
-
const t = this.
|
1569
|
+
rt(r) {
|
1570
|
+
if (typeof this.Y == "function") {
|
1571
|
+
const t = this.ht ?? globalThis;
|
1572
1572
|
let e = dt.get(t);
|
1573
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), dt.set(t, e)), e.get(this.
|
1573
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), dt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, r), r !== void 0 && this.Y.call(this.ht, r);
|
1574
1574
|
} else
|
1575
|
-
this.
|
1575
|
+
this.Y.value = r;
|
1576
1576
|
}
|
1577
|
-
get
|
1577
|
+
get lt() {
|
1578
1578
|
var r, t;
|
1579
|
-
return typeof this.
|
1579
|
+
return typeof this.Y == "function" ? (r = dt.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1580
1580
|
}
|
1581
1581
|
disconnected() {
|
1582
|
-
this.
|
1582
|
+
this.lt === this.ct && this.rt(void 0);
|
1583
1583
|
}
|
1584
1584
|
reconnected() {
|
1585
|
-
this.
|
1585
|
+
this.rt(this.ct);
|
1586
1586
|
}
|
1587
1587
|
});
|
1588
1588
|
var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, it = (r, t, e, i) => {
|
@@ -1612,20 +1612,20 @@ class A extends $ {
|
|
1612
1612
|
(t = this.application) != null && t.settings && pe(this.application.settings.branding, this);
|
1613
1613
|
}
|
1614
1614
|
async _renderSymbol() {
|
1615
|
-
var a, c,
|
1615
|
+
var a, c, h;
|
1616
1616
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1617
1617
|
if (e)
|
1618
1618
|
return T` <img src=${e} class="trigger-icon" alt="" /> `;
|
1619
|
-
const i = (
|
1619
|
+
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1620
1620
|
if (!i)
|
1621
1621
|
return d;
|
1622
|
-
const s = async (
|
1622
|
+
const s = async (l) => hi, { type: n, content: o } = i;
|
1623
1623
|
switch (n) {
|
1624
1624
|
case "Telia": {
|
1625
|
-
const
|
1626
|
-
return
|
1625
|
+
const l = await s();
|
1626
|
+
return l ? T`<telia-icon
|
1627
1627
|
class="trigger-icon"
|
1628
|
-
svg=${
|
1628
|
+
svg=${l.svg}
|
1629
1629
|
size="lg"
|
1630
1630
|
></telia-icon>` : d;
|
1631
1631
|
}
|
@@ -1638,6 +1638,7 @@ class A extends $ {
|
|
1638
1638
|
return T`<div class="trigger-container" ${ue(this.containerRef)}>
|
1639
1639
|
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? T`
|
1640
1640
|
<button
|
1641
|
+
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1641
1642
|
class="trigger-label"
|
1642
1643
|
@click=${this.toggleActive}
|
1643
1644
|
${ci({
|
@@ -1652,7 +1653,8 @@ class A extends $ {
|
|
1652
1653
|
` : d}
|
1653
1654
|
|
1654
1655
|
<button
|
1655
|
-
|
1656
|
+
label="Widget trigger"
|
1657
|
+
class=${li({
|
1656
1658
|
trigger: !0,
|
1657
1659
|
active: this.active,
|
1658
1660
|
rendered: this.loaded
|
@@ -2038,19 +2040,19 @@ class _i {
|
|
2038
2040
|
this.root.application = e;
|
2039
2041
|
const i = (a) => {
|
2040
2042
|
if (Array.isArray(a)) {
|
2041
|
-
const [c, ...
|
2043
|
+
const [c, ...h] = a;
|
2042
2044
|
return {
|
2043
2045
|
definitionId: c,
|
2044
|
-
overrides:
|
2046
|
+
overrides: h
|
2045
2047
|
};
|
2046
2048
|
}
|
2047
2049
|
return {
|
2048
2050
|
definitionId: a,
|
2049
2051
|
overrides: []
|
2050
2052
|
};
|
2051
|
-
}, s = (a, c,
|
2052
|
-
|
2053
|
-
const f = i(p), u =
|
2053
|
+
}, s = (a, c, h, l) => {
|
2054
|
+
h.forEach((p) => {
|
2055
|
+
const f = i(p), u = l[f.definitionId];
|
2054
2056
|
if (!u) {
|
2055
2057
|
console.error(
|
2056
2058
|
`No definition found for component type '${f.definitionId}'.`
|
@@ -2062,7 +2064,7 @@ class _i {
|
|
2062
2064
|
a,
|
2063
2065
|
g,
|
2064
2066
|
u.children,
|
2065
|
-
|
2067
|
+
l
|
2066
2068
|
// views
|
2067
2069
|
));
|
2068
2070
|
});
|
@@ -2331,12 +2333,12 @@ class xi {
|
|
2331
2333
|
globalThis.widgets = t;
|
2332
2334
|
}
|
2333
2335
|
}
|
2334
|
-
var Ei = Object.defineProperty,
|
2335
|
-
for (var s = i > 1 ? void 0 : i ?
|
2336
|
+
var Ei = Object.defineProperty, Pi = Object.getOwnPropertyDescriptor, St = (r, t, e, i) => {
|
2337
|
+
for (var s = i > 1 ? void 0 : i ? Pi(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
2336
2338
|
(o = r[n]) && (s = (i ? o(t, e, s) : o(s)) || s);
|
2337
2339
|
return i && s && Ei(t, e, s), s;
|
2338
2340
|
};
|
2339
|
-
class
|
2341
|
+
class W extends $ {
|
2340
2342
|
constructor() {
|
2341
2343
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2342
2344
|
}
|
@@ -2368,7 +2370,7 @@ class F extends $ {
|
|
2368
2370
|
return this.widget.render();
|
2369
2371
|
}
|
2370
2372
|
}
|
2371
|
-
|
2373
|
+
W.styles = [
|
2372
2374
|
U`
|
2373
2375
|
:host {
|
2374
2376
|
display: block;
|
@@ -2377,23 +2379,23 @@ F.styles = [
|
|
2377
2379
|
];
|
2378
2380
|
St([
|
2379
2381
|
m({ attribute: !0 })
|
2380
|
-
],
|
2382
|
+
], W.prototype, "name", 2);
|
2381
2383
|
St([
|
2382
2384
|
z()
|
2383
|
-
],
|
2385
|
+
], W.prototype, "widget", 2);
|
2384
2386
|
St([
|
2385
2387
|
z()
|
2386
|
-
],
|
2388
|
+
], W.prototype, "status", 2);
|
2387
2389
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", et);
|
2388
2390
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2389
2391
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Ct);
|
2390
2392
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
|
2391
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2393
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", W);
|
2392
2394
|
const Ii = async (r, t) => {
|
2393
2395
|
await new xi(r).bootstrap(t);
|
2394
2396
|
};
|
2395
2397
|
export {
|
2396
|
-
|
2398
|
+
W as AceWidget,
|
2397
2399
|
Ci as Application,
|
2398
2400
|
Rt as Container,
|
2399
2401
|
Si as Environment,
|