@telia-ace/widget-components-copyright-flamingo 1.1.72-rc.2 → 1.1.72-rc.20
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.
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
return
|
|
1
|
+
var ht = function(s, t) {
|
|
2
|
+
return ht = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
3
3
|
e.__proto__ = i;
|
|
4
4
|
} || function(e, i) {
|
|
5
5
|
for (var r in i)
|
|
6
6
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
7
|
-
},
|
|
7
|
+
}, ht(s, t);
|
|
8
8
|
};
|
|
9
|
-
function
|
|
9
|
+
function D(s, t) {
|
|
10
10
|
if (typeof t != "function" && t !== null)
|
|
11
11
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
12
|
-
|
|
12
|
+
ht(s, t);
|
|
13
13
|
function e() {
|
|
14
14
|
this.constructor = s;
|
|
15
15
|
}
|
|
@@ -31,29 +31,29 @@ function q(s, t) {
|
|
|
31
31
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
|
32
32
|
if (!e)
|
|
33
33
|
return s;
|
|
34
|
-
var i = e.call(s), r,
|
|
34
|
+
var i = e.call(s), r, o = [], n;
|
|
35
35
|
try {
|
|
36
36
|
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
|
|
37
|
-
|
|
37
|
+
o.push(r.value);
|
|
38
38
|
} catch (a) {
|
|
39
|
-
|
|
39
|
+
n = { error: a };
|
|
40
40
|
} finally {
|
|
41
41
|
try {
|
|
42
42
|
r && !r.done && (e = i.return) && e.call(i);
|
|
43
43
|
} finally {
|
|
44
|
-
if (
|
|
45
|
-
throw
|
|
44
|
+
if (n)
|
|
45
|
+
throw n.error;
|
|
46
46
|
}
|
|
47
47
|
}
|
|
48
|
-
return
|
|
48
|
+
return o;
|
|
49
49
|
}
|
|
50
50
|
function K(s, t, e) {
|
|
51
51
|
if (e || arguments.length === 2)
|
|
52
|
-
for (var i = 0, r = t.length,
|
|
53
|
-
(
|
|
54
|
-
return s.concat(
|
|
52
|
+
for (var i = 0, r = t.length, o; i < r; i++)
|
|
53
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
54
|
+
return s.concat(o || Array.prototype.slice.call(t));
|
|
55
55
|
}
|
|
56
|
-
function
|
|
56
|
+
function b(s) {
|
|
57
57
|
return typeof s == "function";
|
|
58
58
|
}
|
|
59
59
|
function Kt(s) {
|
|
@@ -82,46 +82,46 @@ var Q = function() {
|
|
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
83
83
|
}
|
|
84
84
|
return s.prototype.unsubscribe = function() {
|
|
85
|
-
var t, e, i, r,
|
|
85
|
+
var t, e, i, r, o;
|
|
86
86
|
if (!this.closed) {
|
|
87
87
|
this.closed = !0;
|
|
88
|
-
var
|
|
89
|
-
if (
|
|
90
|
-
if (this._parentage = null, Array.isArray(
|
|
88
|
+
var n = this._parentage;
|
|
89
|
+
if (n)
|
|
90
|
+
if (this._parentage = null, Array.isArray(n))
|
|
91
91
|
try {
|
|
92
|
-
for (var a = pt(
|
|
93
|
-
var
|
|
94
|
-
|
|
92
|
+
for (var a = pt(n), c = a.next(); !c.done; c = a.next()) {
|
|
93
|
+
var l = c.value;
|
|
94
|
+
l.remove(this);
|
|
95
95
|
}
|
|
96
96
|
} catch (v) {
|
|
97
97
|
t = { error: v };
|
|
98
98
|
} finally {
|
|
99
99
|
try {
|
|
100
|
-
|
|
100
|
+
c && !c.done && (e = a.return) && e.call(a);
|
|
101
101
|
} finally {
|
|
102
102
|
if (t)
|
|
103
103
|
throw t.error;
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
else
|
|
107
|
-
|
|
108
|
-
var
|
|
109
|
-
if (
|
|
107
|
+
n.remove(this);
|
|
108
|
+
var h = this.initialTeardown;
|
|
109
|
+
if (b(h))
|
|
110
110
|
try {
|
|
111
|
-
|
|
111
|
+
h();
|
|
112
112
|
} catch (v) {
|
|
113
|
-
|
|
113
|
+
o = v instanceof et ? v.errors : [v];
|
|
114
114
|
}
|
|
115
115
|
var p = this._finalizers;
|
|
116
116
|
if (p) {
|
|
117
117
|
this._finalizers = null;
|
|
118
118
|
try {
|
|
119
119
|
for (var u = pt(p), f = u.next(); !f.done; f = u.next()) {
|
|
120
|
-
var
|
|
120
|
+
var T = f.value;
|
|
121
121
|
try {
|
|
122
|
-
xt(
|
|
122
|
+
xt(T);
|
|
123
123
|
} catch (v) {
|
|
124
|
-
|
|
124
|
+
o = o ?? [], v instanceof et ? o = K(K([], q(o)), q(v.errors)) : o.push(v);
|
|
125
125
|
}
|
|
126
126
|
}
|
|
127
127
|
} catch (v) {
|
|
@@ -135,8 +135,8 @@ var Q = function() {
|
|
|
135
135
|
}
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
|
-
if (
|
|
139
|
-
throw new et(
|
|
138
|
+
if (o)
|
|
139
|
+
throw new et(o);
|
|
140
140
|
}
|
|
141
141
|
}, s.prototype.add = function(t) {
|
|
142
142
|
var e;
|
|
@@ -169,10 +169,10 @@ var Q = function() {
|
|
|
169
169
|
}(), s;
|
|
170
170
|
}(), Gt = Q.EMPTY;
|
|
171
171
|
function Xt(s) {
|
|
172
|
-
return s instanceof Q || s && "closed" in s &&
|
|
172
|
+
return s instanceof Q || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
|
173
173
|
}
|
|
174
174
|
function xt(s) {
|
|
175
|
-
|
|
175
|
+
b(s) ? s() : s.unsubscribe();
|
|
176
176
|
}
|
|
177
177
|
var Jt = {
|
|
178
178
|
onUnhandledError: null,
|
|
@@ -204,7 +204,7 @@ function F(s) {
|
|
|
204
204
|
s();
|
|
205
205
|
}
|
|
206
206
|
var Qt = function(s) {
|
|
207
|
-
|
|
207
|
+
D(t, s);
|
|
208
208
|
function t(e) {
|
|
209
209
|
var i = s.call(this) || this;
|
|
210
210
|
return i.isStopped = !1, e ? (i.destination = e, Xt(e) && e.add(i)) : i.destination = $e, i;
|
|
@@ -248,7 +248,7 @@ var ye = function() {
|
|
|
248
248
|
try {
|
|
249
249
|
e.next(t);
|
|
250
250
|
} catch (i) {
|
|
251
|
-
|
|
251
|
+
Y(i);
|
|
252
252
|
}
|
|
253
253
|
}, s.prototype.error = function(t) {
|
|
254
254
|
var e = this.partialObserver;
|
|
@@ -256,44 +256,44 @@ var ye = function() {
|
|
|
256
256
|
try {
|
|
257
257
|
e.error(t);
|
|
258
258
|
} catch (i) {
|
|
259
|
-
|
|
259
|
+
Y(i);
|
|
260
260
|
}
|
|
261
261
|
else
|
|
262
|
-
|
|
262
|
+
Y(t);
|
|
263
263
|
}, s.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
|
+
Y(e);
|
|
270
270
|
}
|
|
271
271
|
}, s;
|
|
272
272
|
}(), ft = function(s) {
|
|
273
|
-
|
|
273
|
+
D(t, s);
|
|
274
274
|
function t(e, i, r) {
|
|
275
|
-
var
|
|
276
|
-
if (
|
|
277
|
-
|
|
275
|
+
var o = s.call(this) || this, n;
|
|
276
|
+
if (b(e) || !e)
|
|
277
|
+
n = {
|
|
278
278
|
next: e ?? void 0,
|
|
279
279
|
error: i ?? void 0,
|
|
280
280
|
complete: r ?? void 0
|
|
281
281
|
};
|
|
282
282
|
else {
|
|
283
283
|
var a;
|
|
284
|
-
|
|
285
|
-
return
|
|
286
|
-
},
|
|
284
|
+
o && Jt.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
|
285
|
+
return o.unsubscribe();
|
|
286
|
+
}, n = {
|
|
287
287
|
next: e.next && it(e.next, a),
|
|
288
288
|
error: e.error && it(e.error, a),
|
|
289
289
|
complete: e.complete && it(e.complete, a)
|
|
290
|
-
}) :
|
|
290
|
+
}) : n = e;
|
|
291
291
|
}
|
|
292
|
-
return
|
|
292
|
+
return o.destination = new ye(n), o;
|
|
293
293
|
}
|
|
294
294
|
return t;
|
|
295
295
|
}(Qt);
|
|
296
|
-
function
|
|
296
|
+
function Y(s) {
|
|
297
297
|
ve(s);
|
|
298
298
|
}
|
|
299
299
|
function be(s) {
|
|
@@ -325,11 +325,11 @@ var St = function() {
|
|
|
325
325
|
var e = new s();
|
|
326
326
|
return e.source = this, e.operator = t, e;
|
|
327
327
|
}, s.prototype.subscribe = function(t, e, i) {
|
|
328
|
-
var r = this,
|
|
328
|
+
var r = this, o = xe(t) ? t : new ft(t, e, i);
|
|
329
329
|
return F(function() {
|
|
330
|
-
var
|
|
331
|
-
|
|
332
|
-
}),
|
|
330
|
+
var n = r, a = n.operator, c = n.source;
|
|
331
|
+
o.add(a ? a.call(o, c) : c ? r._subscribe(o) : r._trySubscribe(o));
|
|
332
|
+
}), o;
|
|
333
333
|
}, s.prototype._trySubscribe = function(t) {
|
|
334
334
|
try {
|
|
335
335
|
return this._subscribe(t);
|
|
@@ -338,19 +338,19 @@ var St = function() {
|
|
|
338
338
|
}
|
|
339
339
|
}, s.prototype.forEach = function(t, e) {
|
|
340
340
|
var i = this;
|
|
341
|
-
return e = Pt(e), new e(function(r,
|
|
342
|
-
var
|
|
341
|
+
return e = Pt(e), new e(function(r, o) {
|
|
342
|
+
var n = new ft({
|
|
343
343
|
next: function(a) {
|
|
344
344
|
try {
|
|
345
345
|
t(a);
|
|
346
|
-
} catch (
|
|
347
|
-
|
|
346
|
+
} catch (c) {
|
|
347
|
+
o(c), n.unsubscribe();
|
|
348
348
|
}
|
|
349
349
|
},
|
|
350
|
-
error:
|
|
350
|
+
error: o,
|
|
351
351
|
complete: r
|
|
352
352
|
});
|
|
353
|
-
i.subscribe(
|
|
353
|
+
i.subscribe(n);
|
|
354
354
|
});
|
|
355
355
|
}, s.prototype._subscribe = function(t) {
|
|
356
356
|
var e;
|
|
@@ -364,13 +364,13 @@ var St = function() {
|
|
|
364
364
|
}, s.prototype.toPromise = function(t) {
|
|
365
365
|
var e = this;
|
|
366
366
|
return t = Pt(t), new t(function(i, r) {
|
|
367
|
-
var
|
|
368
|
-
e.subscribe(function(
|
|
369
|
-
return
|
|
370
|
-
}, function(
|
|
371
|
-
return r(
|
|
367
|
+
var o;
|
|
368
|
+
e.subscribe(function(n) {
|
|
369
|
+
return o = n;
|
|
370
|
+
}, function(n) {
|
|
371
|
+
return r(n);
|
|
372
372
|
}, function() {
|
|
373
|
-
return i(
|
|
373
|
+
return i(o);
|
|
374
374
|
});
|
|
375
375
|
});
|
|
376
376
|
}, s.create = function(t) {
|
|
@@ -382,7 +382,7 @@ function Pt(s) {
|
|
|
382
382
|
return (t = s ?? Jt.Promise) !== null && t !== void 0 ? t : Promise;
|
|
383
383
|
}
|
|
384
384
|
function Ae(s) {
|
|
385
|
-
return s &&
|
|
385
|
+
return s && b(s.next) && b(s.error) && b(s.complete);
|
|
386
386
|
}
|
|
387
387
|
function xe(s) {
|
|
388
388
|
return s && s instanceof Qt || Ae(s) && Xt(s);
|
|
@@ -392,7 +392,7 @@ var Ee = Kt(function(s) {
|
|
|
392
392
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
393
393
|
};
|
|
394
394
|
}), gt = function(s) {
|
|
395
|
-
|
|
395
|
+
D(t, s);
|
|
396
396
|
function t() {
|
|
397
397
|
var e = s.call(this) || this;
|
|
398
398
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -406,19 +406,19 @@ var Ee = Kt(function(s) {
|
|
|
406
406
|
}, t.prototype.next = function(e) {
|
|
407
407
|
var i = this;
|
|
408
408
|
F(function() {
|
|
409
|
-
var r,
|
|
409
|
+
var r, o;
|
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
412
412
|
try {
|
|
413
|
-
for (var
|
|
414
|
-
var
|
|
415
|
-
|
|
413
|
+
for (var n = pt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
|
414
|
+
var c = a.value;
|
|
415
|
+
c.next(e);
|
|
416
416
|
}
|
|
417
|
-
} catch (
|
|
418
|
-
r = { error:
|
|
417
|
+
} catch (l) {
|
|
418
|
+
r = { error: l };
|
|
419
419
|
} finally {
|
|
420
420
|
try {
|
|
421
|
-
a && !a.done && (
|
|
421
|
+
a && !a.done && (o = n.return) && o.call(n);
|
|
422
422
|
} finally {
|
|
423
423
|
if (r)
|
|
424
424
|
throw r.error;
|
|
@@ -458,13 +458,13 @@ var Ee = Kt(function(s) {
|
|
|
458
458
|
}, t.prototype._subscribe = function(e) {
|
|
459
459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
|
461
|
-
var i = this, r = this,
|
|
462
|
-
return
|
|
461
|
+
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
|
462
|
+
return o || n ? Gt : (this.currentObservers = null, a.push(e), new Q(function() {
|
|
463
463
|
i.currentObservers = null, dt(a, e);
|
|
464
464
|
}));
|
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
466
|
-
var i = this, r = i.hasError,
|
|
467
|
-
r ? e.error(
|
|
466
|
+
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
|
467
|
+
r ? e.error(o) : n && e.complete();
|
|
468
468
|
}, t.prototype.asObservable = function() {
|
|
469
469
|
var e = new St();
|
|
470
470
|
return e.source = this, e;
|
|
@@ -472,7 +472,7 @@ var Ee = Kt(function(s) {
|
|
|
472
472
|
return new Ot(e, i);
|
|
473
473
|
}, t;
|
|
474
474
|
}(St), Ot = function(s) {
|
|
475
|
-
|
|
475
|
+
D(t, s);
|
|
476
476
|
function t(e, i) {
|
|
477
477
|
var r = s.call(this) || this;
|
|
478
478
|
return r.destination = e, r.source = i, r;
|
|
@@ -491,7 +491,7 @@ var Ee = Kt(function(s) {
|
|
|
491
491
|
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : Gt;
|
|
492
492
|
}, t;
|
|
493
493
|
}(gt), Se = function(s) {
|
|
494
|
-
|
|
494
|
+
D(t, s);
|
|
495
495
|
function t(e) {
|
|
496
496
|
var i = s.call(this) || this;
|
|
497
497
|
return i._value = e, i;
|
|
@@ -506,10 +506,10 @@ var Ee = Kt(function(s) {
|
|
|
506
506
|
var i = s.prototype._subscribe.call(this, e);
|
|
507
507
|
return !i.closed && e.next(this._value), i;
|
|
508
508
|
}, t.prototype.getValue = function() {
|
|
509
|
-
var e = this, i = e.hasError, r = e.thrownError,
|
|
509
|
+
var e = this, i = e.hasError, r = e.thrownError, o = e._value;
|
|
510
510
|
if (i)
|
|
511
511
|
throw r;
|
|
512
|
-
return this._throwIfClosed(),
|
|
512
|
+
return this._throwIfClosed(), o;
|
|
513
513
|
}, t.prototype.next = function(e) {
|
|
514
514
|
s.prototype.next.call(this, this._value = e);
|
|
515
515
|
}, t;
|
|
@@ -539,14 +539,14 @@ let te = class {
|
|
|
539
539
|
return this.cssText;
|
|
540
540
|
}
|
|
541
541
|
};
|
|
542
|
-
const Pe = (s) => new te(typeof s == "string" ? s : s + "", void 0, mt),
|
|
543
|
-
const e = s.length === 1 ? s[0] : t.reduce((i, r,
|
|
544
|
-
if (
|
|
545
|
-
return
|
|
546
|
-
if (typeof
|
|
547
|
-
return
|
|
548
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
|
549
|
-
})(r) + s[
|
|
542
|
+
const Pe = (s) => new te(typeof s == "string" ? s : s + "", void 0, mt), O = (s, ...t) => {
|
|
543
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, o) => i + ((n) => {
|
|
544
|
+
if (n._$cssResult$ === !0)
|
|
545
|
+
return n.cssText;
|
|
546
|
+
if (typeof n == "number")
|
|
547
|
+
return n;
|
|
548
|
+
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.");
|
|
549
|
+
})(r) + s[o + 1], s[0]);
|
|
550
550
|
return new te(e, s, mt);
|
|
551
551
|
}, Oe = (s, t) => {
|
|
552
552
|
if (vt)
|
|
@@ -556,7 +556,7 @@ const Pe = (s) => new te(typeof s == "string" ? s : s + "", void 0, mt), P = (s,
|
|
|
556
556
|
const i = document.createElement("style"), r = Z.litNonce;
|
|
557
557
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
558
558
|
}
|
|
559
|
-
},
|
|
559
|
+
}, kt = vt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
|
560
560
|
let e = "";
|
|
561
561
|
for (const i of t.cssRules)
|
|
562
562
|
e += i.cssText;
|
|
@@ -567,7 +567,7 @@ const Pe = (s) => new te(typeof s == "string" ? s : s + "", void 0, mt), P = (s,
|
|
|
567
567
|
* Copyright 2017 Google LLC
|
|
568
568
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
569
569
|
*/
|
|
570
|
-
const { is: Te, defineProperty:
|
|
570
|
+
const { is: Te, defineProperty: ke, getOwnPropertyDescriptor: Me, getOwnPropertyNames: Ue, getOwnPropertySymbols: He, getPrototypeOf: Le } = Object, _ = globalThis, Mt = _.trustedTypes, Re = Mt ? Mt.emptyScript : "", st = _.reactiveElementPolyfillSupport, L = (s, t) => s, G = { toAttribute(s, t) {
|
|
571
571
|
switch (t) {
|
|
572
572
|
case Boolean:
|
|
573
573
|
s = s ? Re : null;
|
|
@@ -596,8 +596,8 @@ const { is: Te, defineProperty: Me, getOwnPropertyDescriptor: ke, getOwnProperty
|
|
|
596
596
|
}
|
|
597
597
|
return e;
|
|
598
598
|
} }, yt = (s, t) => !Te(s, t), Ut = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: yt };
|
|
599
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
|
600
|
-
let
|
|
599
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
600
|
+
let k = class extends HTMLElement {
|
|
601
601
|
static addInitializer(t) {
|
|
602
602
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
|
603
603
|
}
|
|
@@ -607,35 +607,35 @@ let T = class extends HTMLElement {
|
|
|
607
607
|
static createProperty(t, e = Ut) {
|
|
608
608
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
609
609
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
610
|
-
r !== void 0 &&
|
|
610
|
+
r !== void 0 && ke(this.prototype, t, r);
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
static getPropertyDescriptor(t, e, i) {
|
|
614
|
-
const { get: r, set:
|
|
614
|
+
const { get: r, set: o } = Me(this.prototype, t) ?? { get() {
|
|
615
615
|
return this[e];
|
|
616
|
-
}, set(
|
|
617
|
-
this[e] =
|
|
616
|
+
}, set(n) {
|
|
617
|
+
this[e] = n;
|
|
618
618
|
} };
|
|
619
619
|
return { get() {
|
|
620
620
|
return r == null ? void 0 : r.call(this);
|
|
621
|
-
}, set(
|
|
621
|
+
}, set(n) {
|
|
622
622
|
const a = r == null ? void 0 : r.call(this);
|
|
623
|
-
|
|
623
|
+
o.call(this, n), this.requestUpdate(t, a, i);
|
|
624
624
|
}, configurable: !0, enumerable: !0 };
|
|
625
625
|
}
|
|
626
626
|
static getPropertyOptions(t) {
|
|
627
627
|
return this.elementProperties.get(t) ?? Ut;
|
|
628
628
|
}
|
|
629
629
|
static _$Ei() {
|
|
630
|
-
if (this.hasOwnProperty(
|
|
630
|
+
if (this.hasOwnProperty(L("elementProperties")))
|
|
631
631
|
return;
|
|
632
632
|
const t = Le(this);
|
|
633
633
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
634
634
|
}
|
|
635
635
|
static finalize() {
|
|
636
|
-
if (this.hasOwnProperty(
|
|
636
|
+
if (this.hasOwnProperty(L("finalized")))
|
|
637
637
|
return;
|
|
638
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
638
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(L("properties"))) {
|
|
639
639
|
const e = this.properties, i = [...Ue(e), ...He(e)];
|
|
640
640
|
for (const r of i)
|
|
641
641
|
this.createProperty(r, e[r]);
|
|
@@ -659,9 +659,9 @@ let T = class extends HTMLElement {
|
|
|
659
659
|
if (Array.isArray(t)) {
|
|
660
660
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
661
661
|
for (const r of i)
|
|
662
|
-
e.unshift(
|
|
662
|
+
e.unshift(kt(r));
|
|
663
663
|
} else
|
|
664
|
-
t !== void 0 && e.push(
|
|
664
|
+
t !== void 0 && e.push(kt(t));
|
|
665
665
|
return e;
|
|
666
666
|
}
|
|
667
667
|
static _$Eu(t, e) {
|
|
@@ -713,19 +713,19 @@ let T = class extends HTMLElement {
|
|
|
713
713
|
this._$AK(t, i);
|
|
714
714
|
}
|
|
715
715
|
_$EC(t, e) {
|
|
716
|
-
var
|
|
716
|
+
var o;
|
|
717
717
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
718
718
|
if (r !== void 0 && i.reflect === !0) {
|
|
719
|
-
const
|
|
720
|
-
this._$Em = t,
|
|
719
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
|
|
720
|
+
this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
|
721
721
|
}
|
|
722
722
|
}
|
|
723
723
|
_$AK(t, e) {
|
|
724
|
-
var
|
|
724
|
+
var o;
|
|
725
725
|
const i = this.constructor, r = i._$Eh.get(t);
|
|
726
726
|
if (r !== void 0 && this._$Em !== r) {
|
|
727
|
-
const
|
|
728
|
-
this._$Em = r, this[r] = a.fromAttribute(e,
|
|
727
|
+
const n = i.getPropertyOptions(r), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : G;
|
|
728
|
+
this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
|
|
729
729
|
}
|
|
730
730
|
}
|
|
731
731
|
requestUpdate(t, e, i) {
|
|
@@ -758,21 +758,21 @@ let T = class extends HTMLElement {
|
|
|
758
758
|
return;
|
|
759
759
|
if (!this.hasUpdated) {
|
|
760
760
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
|
761
|
-
for (const [
|
|
762
|
-
this[
|
|
761
|
+
for (const [o, n] of this._$Ep)
|
|
762
|
+
this[o] = n;
|
|
763
763
|
this._$Ep = void 0;
|
|
764
764
|
}
|
|
765
765
|
const r = this.constructor.elementProperties;
|
|
766
766
|
if (r.size > 0)
|
|
767
|
-
for (const [
|
|
768
|
-
|
|
767
|
+
for (const [o, n] of r)
|
|
768
|
+
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
|
769
769
|
}
|
|
770
770
|
let t = !1;
|
|
771
771
|
const e = this._$AL;
|
|
772
772
|
try {
|
|
773
773
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
|
774
|
-
var
|
|
775
|
-
return (
|
|
774
|
+
var o;
|
|
775
|
+
return (o = r.hostUpdate) == null ? void 0 : o.call(r);
|
|
776
776
|
}), this.update(e)) : this._$EU();
|
|
777
777
|
} catch (r) {
|
|
778
778
|
throw t = !1, this._$EU(), r;
|
|
@@ -808,84 +808,84 @@ let T = class extends HTMLElement {
|
|
|
808
808
|
firstUpdated(t) {
|
|
809
809
|
}
|
|
810
810
|
};
|
|
811
|
-
|
|
811
|
+
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[L("elementProperties")] = /* @__PURE__ */ new Map(), k[L("finalized")] = /* @__PURE__ */ new Map(), st == null || st({ ReactiveElement: k }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.4");
|
|
812
812
|
/**
|
|
813
813
|
* @license
|
|
814
814
|
* Copyright 2017 Google LLC
|
|
815
815
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
816
816
|
*/
|
|
817
|
-
const
|
|
818
|
-
\f\r]`,
|
|
819
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g, re = /^(?:script|style|textarea|title)$/i,
|
|
820
|
-
function
|
|
817
|
+
const R = globalThis, X = R.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, ee = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, ie = "?" + $, je = `<${ie}>`, S = document, N = () => S.createComment(""), I = (s) => s === null || typeof s != "object" && typeof s != "function", se = Array.isArray, Ne = (s) => se(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", rt = `[
|
|
818
|
+
\f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Rt = />/g, C = RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
819
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), jt = /'/g, Nt = /"/g, re = /^(?:script|style|textarea|title)$/i, oe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = oe(1), Ie = oe(2), P = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), It = /* @__PURE__ */ new WeakMap(), E = S.createTreeWalker(S, 129);
|
|
820
|
+
function ne(s, t) {
|
|
821
821
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
|
822
822
|
throw Error("invalid template strings array");
|
|
823
823
|
return Ht !== void 0 ? Ht.createHTML(t) : t;
|
|
824
824
|
}
|
|
825
|
-
const
|
|
825
|
+
const Be = (s, t) => {
|
|
826
826
|
const e = s.length - 1, i = [];
|
|
827
|
-
let r,
|
|
827
|
+
let r, o = t === 2 ? "<svg>" : "", n = H;
|
|
828
828
|
for (let a = 0; a < e; a++) {
|
|
829
|
-
const
|
|
830
|
-
let
|
|
831
|
-
for (; u <
|
|
832
|
-
u =
|
|
833
|
-
const f =
|
|
834
|
-
|
|
835
|
-
}
|
|
836
|
-
return [
|
|
829
|
+
const c = s[a];
|
|
830
|
+
let l, h, p = -1, u = 0;
|
|
831
|
+
for (; u < c.length && (n.lastIndex = u, h = n.exec(c), h !== null); )
|
|
832
|
+
u = n.lastIndex, n === H ? h[1] === "!--" ? n = Lt : h[1] !== void 0 ? n = Rt : h[2] !== void 0 ? (re.test(h[2]) && (r = RegExp("</" + h[2], "g")), n = C) : h[3] !== void 0 && (n = C) : n === C ? h[0] === ">" ? (n = r ?? H, p = -1) : h[1] === void 0 ? p = -2 : (p = n.lastIndex - h[2].length, l = h[1], n = h[3] === void 0 ? C : h[3] === '"' ? Nt : jt) : n === Nt || n === jt ? n = C : n === Lt || n === Rt ? n = H : (n = C, r = void 0);
|
|
833
|
+
const f = n === C && s[a + 1].startsWith("/>") ? " " : "";
|
|
834
|
+
o += n === H ? c + je : p >= 0 ? (i.push(l), c.slice(0, p) + ee + c.slice(p) + $ + f) : c + $ + (p === -2 ? a : f);
|
|
835
|
+
}
|
|
836
|
+
return [ne(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
|
837
837
|
};
|
|
838
|
-
class
|
|
838
|
+
class B {
|
|
839
839
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
840
840
|
let r;
|
|
841
841
|
this.parts = [];
|
|
842
|
-
let
|
|
843
|
-
const a = t.length - 1,
|
|
844
|
-
if (this.el =
|
|
842
|
+
let o = 0, n = 0;
|
|
843
|
+
const a = t.length - 1, c = this.parts, [l, h] = Be(t, e);
|
|
844
|
+
if (this.el = B.createElement(l, i), E.currentNode = this.el.content, e === 2) {
|
|
845
845
|
const p = this.el.content.firstChild;
|
|
846
846
|
p.replaceWith(...p.childNodes);
|
|
847
847
|
}
|
|
848
|
-
for (; (r =
|
|
848
|
+
for (; (r = E.nextNode()) !== null && c.length < a; ) {
|
|
849
849
|
if (r.nodeType === 1) {
|
|
850
850
|
if (r.hasAttributes())
|
|
851
851
|
for (const p of r.getAttributeNames())
|
|
852
852
|
if (p.endsWith(ee)) {
|
|
853
|
-
const u =
|
|
854
|
-
|
|
853
|
+
const u = h[n++], f = r.getAttribute(p).split($), T = /([.?@])?(.*)/.exec(u);
|
|
854
|
+
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Ve : T[1] === "?" ? ze : T[1] === "@" ? We : tt }), r.removeAttribute(p);
|
|
855
855
|
} else
|
|
856
|
-
p.startsWith(
|
|
856
|
+
p.startsWith($) && (c.push({ type: 6, index: o }), r.removeAttribute(p));
|
|
857
857
|
if (re.test(r.tagName)) {
|
|
858
|
-
const p = r.textContent.split(
|
|
858
|
+
const p = r.textContent.split($), u = p.length - 1;
|
|
859
859
|
if (u > 0) {
|
|
860
860
|
r.textContent = X ? X.emptyScript : "";
|
|
861
861
|
for (let f = 0; f < u; f++)
|
|
862
|
-
r.append(p[f],
|
|
863
|
-
r.append(p[u],
|
|
862
|
+
r.append(p[f], N()), E.nextNode(), c.push({ type: 2, index: ++o });
|
|
863
|
+
r.append(p[u], N());
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
} else if (r.nodeType === 8)
|
|
867
867
|
if (r.data === ie)
|
|
868
|
-
|
|
868
|
+
c.push({ type: 2, index: o });
|
|
869
869
|
else {
|
|
870
870
|
let p = -1;
|
|
871
|
-
for (; (p = r.data.indexOf(
|
|
872
|
-
|
|
871
|
+
for (; (p = r.data.indexOf($, p + 1)) !== -1; )
|
|
872
|
+
c.push({ type: 7, index: o }), p += $.length - 1;
|
|
873
873
|
}
|
|
874
|
-
|
|
874
|
+
o++;
|
|
875
875
|
}
|
|
876
876
|
}
|
|
877
877
|
static createElement(t, e) {
|
|
878
|
-
const i =
|
|
878
|
+
const i = S.createElement("template");
|
|
879
879
|
return i.innerHTML = t, i;
|
|
880
880
|
}
|
|
881
881
|
}
|
|
882
882
|
function M(s, t, e = s, i) {
|
|
883
|
-
var
|
|
884
|
-
if (t ===
|
|
883
|
+
var n, a;
|
|
884
|
+
if (t === P)
|
|
885
885
|
return t;
|
|
886
|
-
let r = i !== void 0 ? (
|
|
887
|
-
const
|
|
888
|
-
return (r == null ? void 0 : r.constructor) !==
|
|
886
|
+
let r = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
|
887
|
+
const o = I(t) ? void 0 : t._$litDirective$;
|
|
888
|
+
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
|
|
889
889
|
}
|
|
890
890
|
class De {
|
|
891
891
|
constructor(t, e) {
|
|
@@ -898,17 +898,17 @@ class De {
|
|
|
898
898
|
return this._$AM._$AU;
|
|
899
899
|
}
|
|
900
900
|
u(t) {
|
|
901
|
-
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
|
902
|
-
|
|
903
|
-
let
|
|
904
|
-
for (;
|
|
905
|
-
if (
|
|
906
|
-
let
|
|
907
|
-
|
|
901
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
|
902
|
+
E.currentNode = r;
|
|
903
|
+
let o = E.nextNode(), n = 0, a = 0, c = i[0];
|
|
904
|
+
for (; c !== void 0; ) {
|
|
905
|
+
if (n === c.index) {
|
|
906
|
+
let l;
|
|
907
|
+
c.type === 2 ? l = new V(o, o.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (l = new Ye(o, this, t)), this._$AV.push(l), c = i[++a];
|
|
908
908
|
}
|
|
909
|
-
|
|
909
|
+
n !== (c == null ? void 0 : c.index) && (o = E.nextNode(), n++);
|
|
910
910
|
}
|
|
911
|
-
return
|
|
911
|
+
return E.currentNode = S, r;
|
|
912
912
|
}
|
|
913
913
|
p(t) {
|
|
914
914
|
let e = 0;
|
|
@@ -916,7 +916,7 @@ class De {
|
|
|
916
916
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
917
917
|
}
|
|
918
918
|
}
|
|
919
|
-
class
|
|
919
|
+
class V {
|
|
920
920
|
get _$AU() {
|
|
921
921
|
var t;
|
|
922
922
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -936,7 +936,7 @@ class D {
|
|
|
936
936
|
return this._$AB;
|
|
937
937
|
}
|
|
938
938
|
_$AI(t, e = this) {
|
|
939
|
-
t = M(this, t, e),
|
|
939
|
+
t = M(this, t, e), I(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) : Ne(t) ? this.k(t) : this._(t);
|
|
940
940
|
}
|
|
941
941
|
S(t) {
|
|
942
942
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -945,28 +945,28 @@ class D {
|
|
|
945
945
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
|
946
946
|
}
|
|
947
947
|
_(t) {
|
|
948
|
-
this._$AH !== d &&
|
|
948
|
+
this._$AH !== d && I(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
|
949
949
|
}
|
|
950
950
|
$(t) {
|
|
951
|
-
var
|
|
952
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
953
|
-
if (((
|
|
951
|
+
var o;
|
|
952
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = B.createElement(ne(i.h, i.h[0]), this.options)), i);
|
|
953
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === r)
|
|
954
954
|
this._$AH.p(e);
|
|
955
955
|
else {
|
|
956
|
-
const
|
|
957
|
-
|
|
956
|
+
const n = new De(r, this), a = n.u(this.options);
|
|
957
|
+
n.p(e), this.T(a), this._$AH = n;
|
|
958
958
|
}
|
|
959
959
|
}
|
|
960
960
|
_$AC(t) {
|
|
961
961
|
let e = It.get(t.strings);
|
|
962
|
-
return e === void 0 && It.set(t.strings, e = new
|
|
962
|
+
return e === void 0 && It.set(t.strings, e = new B(t)), e;
|
|
963
963
|
}
|
|
964
964
|
k(t) {
|
|
965
965
|
se(this._$AH) || (this._$AH = [], this._$AR());
|
|
966
966
|
const e = this._$AH;
|
|
967
967
|
let i, r = 0;
|
|
968
|
-
for (const
|
|
969
|
-
r === e.length ? e.push(i = new
|
|
968
|
+
for (const o of t)
|
|
969
|
+
r === e.length ? e.push(i = new V(this.S(N()), this.S(N()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
|
970
970
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
971
971
|
}
|
|
972
972
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
@@ -988,27 +988,27 @@ class tt {
|
|
|
988
988
|
get _$AU() {
|
|
989
989
|
return this._$AM._$AU;
|
|
990
990
|
}
|
|
991
|
-
constructor(t, e, i, r,
|
|
992
|
-
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options =
|
|
991
|
+
constructor(t, e, i, r, o) {
|
|
992
|
+
this.type = 1, this._$AH = d, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = d;
|
|
993
993
|
}
|
|
994
994
|
_$AI(t, e = this, i, r) {
|
|
995
|
-
const
|
|
996
|
-
let
|
|
997
|
-
if (
|
|
998
|
-
t = M(this, t, e, 0),
|
|
995
|
+
const o = this.strings;
|
|
996
|
+
let n = !1;
|
|
997
|
+
if (o === void 0)
|
|
998
|
+
t = M(this, t, e, 0), n = !I(t) || t !== this._$AH && t !== P, n && (this._$AH = t);
|
|
999
999
|
else {
|
|
1000
1000
|
const a = t;
|
|
1001
|
-
let
|
|
1002
|
-
for (t =
|
|
1003
|
-
|
|
1001
|
+
let c, l;
|
|
1002
|
+
for (t = o[0], c = 0; c < o.length - 1; c++)
|
|
1003
|
+
l = M(this, a[i + c], e, c), l === P && (l = this._$AH[c]), n || (n = !I(l) || l !== this._$AH[c]), l === d ? t = d : t !== d && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
|
|
1004
1004
|
}
|
|
1005
|
-
|
|
1005
|
+
n && !r && this.j(t);
|
|
1006
1006
|
}
|
|
1007
1007
|
j(t) {
|
|
1008
1008
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
1009
1009
|
}
|
|
1010
1010
|
}
|
|
1011
|
-
class
|
|
1011
|
+
class Ve extends tt {
|
|
1012
1012
|
constructor() {
|
|
1013
1013
|
super(...arguments), this.type = 3;
|
|
1014
1014
|
}
|
|
@@ -1025,14 +1025,14 @@ class ze extends tt {
|
|
|
1025
1025
|
}
|
|
1026
1026
|
}
|
|
1027
1027
|
class We extends tt {
|
|
1028
|
-
constructor(t, e, i, r,
|
|
1029
|
-
super(t, e, i, r,
|
|
1028
|
+
constructor(t, e, i, r, o) {
|
|
1029
|
+
super(t, e, i, r, o), this.type = 5;
|
|
1030
1030
|
}
|
|
1031
1031
|
_$AI(t, e = this) {
|
|
1032
|
-
if ((t = M(this, t, e, 0) ?? d) ===
|
|
1032
|
+
if ((t = M(this, t, e, 0) ?? d) === P)
|
|
1033
1033
|
return;
|
|
1034
|
-
const i = this._$AH, r = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive,
|
|
1035
|
-
r && this.element.removeEventListener(this.name, this, i),
|
|
1034
|
+
const i = this._$AH, r = t === d && i !== d || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== d && (i === d || r);
|
|
1035
|
+
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
|
1036
1036
|
}
|
|
1037
1037
|
handleEvent(t) {
|
|
1038
1038
|
var e;
|
|
@@ -1050,14 +1050,14 @@ class Ye {
|
|
|
1050
1050
|
M(this, t);
|
|
1051
1051
|
}
|
|
1052
1052
|
}
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1053
|
+
const ot = R.litHtmlPolyfillSupport;
|
|
1054
|
+
ot == null || ot(B, V), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.1.2");
|
|
1055
1055
|
const Fe = (s, t, e) => {
|
|
1056
1056
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
1057
1057
|
let r = i._$litPart$;
|
|
1058
1058
|
if (r === void 0) {
|
|
1059
|
-
const
|
|
1060
|
-
i._$litPart$ = r = new
|
|
1059
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
1060
|
+
i._$litPart$ = r = new V(t.insertBefore(N(), o), o, void 0, e ?? {});
|
|
1061
1061
|
}
|
|
1062
1062
|
return r._$AI(s), r;
|
|
1063
1063
|
};
|
|
@@ -1066,7 +1066,7 @@ const Fe = (s, t, e) => {
|
|
|
1066
1066
|
* Copyright 2017 Google LLC
|
|
1067
1067
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1068
1068
|
*/
|
|
1069
|
-
let m = class extends
|
|
1069
|
+
let m = class extends k {
|
|
1070
1070
|
constructor() {
|
|
1071
1071
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
1072
1072
|
}
|
|
@@ -1088,13 +1088,13 @@ let m = class extends T {
|
|
|
1088
1088
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
|
1089
1089
|
}
|
|
1090
1090
|
render() {
|
|
1091
|
-
return
|
|
1091
|
+
return P;
|
|
1092
1092
|
}
|
|
1093
1093
|
};
|
|
1094
1094
|
var qt;
|
|
1095
1095
|
m._$litElement$ = !0, m.finalized = !0, (qt = globalThis.litElementHydrateSupport) == null || qt.call(globalThis, { LitElement: m });
|
|
1096
|
-
const
|
|
1097
|
-
|
|
1096
|
+
const nt = globalThis.litElementPolyfillSupport;
|
|
1097
|
+
nt == null || nt({ LitElement: m });
|
|
1098
1098
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
|
1099
1099
|
/**
|
|
1100
1100
|
* @license
|
|
@@ -1103,29 +1103,29 @@ ot == null || ot({ LitElement: m });
|
|
|
1103
1103
|
*/
|
|
1104
1104
|
const Ze = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: yt }, qe = (s = Ze, t, e) => {
|
|
1105
1105
|
const { kind: i, metadata: r } = e;
|
|
1106
|
-
let
|
|
1107
|
-
if (
|
|
1108
|
-
const { name:
|
|
1106
|
+
let o = globalThis.litPropertyMetadata.get(r);
|
|
1107
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
|
1108
|
+
const { name: n } = e;
|
|
1109
1109
|
return { set(a) {
|
|
1110
|
-
const
|
|
1111
|
-
t.set.call(this, a), this.requestUpdate(
|
|
1110
|
+
const c = t.get.call(this);
|
|
1111
|
+
t.set.call(this, a), this.requestUpdate(n, c, s);
|
|
1112
1112
|
}, init(a) {
|
|
1113
|
-
return a !== void 0 && this.P(
|
|
1113
|
+
return a !== void 0 && this.P(n, void 0, s), a;
|
|
1114
1114
|
} };
|
|
1115
1115
|
}
|
|
1116
1116
|
if (i === "setter") {
|
|
1117
|
-
const { name:
|
|
1117
|
+
const { name: n } = e;
|
|
1118
1118
|
return function(a) {
|
|
1119
|
-
const
|
|
1120
|
-
t.call(this, a), this.requestUpdate(
|
|
1119
|
+
const c = this[n];
|
|
1120
|
+
t.call(this, a), this.requestUpdate(n, c, s);
|
|
1121
1121
|
};
|
|
1122
1122
|
}
|
|
1123
1123
|
throw Error("Unsupported decorator location: " + i);
|
|
1124
1124
|
};
|
|
1125
1125
|
function g(s) {
|
|
1126
|
-
return (t, e) => typeof e == "object" ? qe(s, t, e) : ((i, r,
|
|
1127
|
-
const
|
|
1128
|
-
return r.constructor.createProperty(
|
|
1126
|
+
return (t, e) => typeof e == "object" ? qe(s, t, e) : ((i, r, o) => {
|
|
1127
|
+
const n = r.hasOwnProperty(o);
|
|
1128
|
+
return r.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
|
1129
1129
|
})(s, t, e);
|
|
1130
1130
|
}
|
|
1131
1131
|
/**
|
|
@@ -1133,12 +1133,12 @@ function g(s) {
|
|
|
1133
1133
|
* Copyright 2017 Google LLC
|
|
1134
1134
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1135
1135
|
*/
|
|
1136
|
-
function
|
|
1136
|
+
function U(s) {
|
|
1137
1137
|
return g({ ...s, state: !0, attribute: !1 });
|
|
1138
1138
|
}
|
|
1139
1139
|
var Ke = Object.defineProperty, Ge = Object.getOwnPropertyDescriptor, Xe = (s, t, e, i) => {
|
|
1140
|
-
for (var r = i > 1 ? void 0 : i ? Ge(t, e) : t,
|
|
1141
|
-
(
|
|
1140
|
+
for (var r = i > 1 ? void 0 : i ? Ge(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1141
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1142
1142
|
return i && r && Ke(t, e, r), r;
|
|
1143
1143
|
};
|
|
1144
1144
|
class bt extends m {
|
|
@@ -1154,7 +1154,7 @@ class bt extends m {
|
|
|
1154
1154
|
}
|
|
1155
1155
|
}
|
|
1156
1156
|
bt.styles = [
|
|
1157
|
-
|
|
1157
|
+
O`
|
|
1158
1158
|
:host {
|
|
1159
1159
|
position: fixed;
|
|
1160
1160
|
display: flex;
|
|
@@ -1208,13 +1208,13 @@ const Je = (s) => s.strings === void 0;
|
|
|
1208
1208
|
* Copyright 2017 Google LLC
|
|
1209
1209
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1210
1210
|
*/
|
|
1211
|
-
const
|
|
1211
|
+
const j = (s, t) => {
|
|
1212
1212
|
var i;
|
|
1213
1213
|
const e = s._$AN;
|
|
1214
1214
|
if (e === void 0)
|
|
1215
1215
|
return !1;
|
|
1216
1216
|
for (const r of e)
|
|
1217
|
-
(i = r._$AO) == null || i.call(r, t, !1),
|
|
1217
|
+
(i = r._$AO) == null || i.call(r, t, !1), j(r, t);
|
|
1218
1218
|
return !0;
|
|
1219
1219
|
}, J = (s) => {
|
|
1220
1220
|
let t, e;
|
|
@@ -1223,7 +1223,7 @@ const R = (s, t) => {
|
|
|
1223
1223
|
break;
|
|
1224
1224
|
e = t._$AN, e.delete(s), s = t;
|
|
1225
1225
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1226
|
-
},
|
|
1226
|
+
}, ce = (s) => {
|
|
1227
1227
|
for (let t; t = s._$AM; s = t) {
|
|
1228
1228
|
let e = t._$AN;
|
|
1229
1229
|
if (e === void 0)
|
|
@@ -1234,33 +1234,33 @@ const R = (s, t) => {
|
|
|
1234
1234
|
}
|
|
1235
1235
|
};
|
|
1236
1236
|
function Qe(s) {
|
|
1237
|
-
this._$AN !== void 0 ? (J(this), this._$AM = s,
|
|
1237
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, ce(this)) : this._$AM = s;
|
|
1238
1238
|
}
|
|
1239
1239
|
function ti(s, t = !1, e = 0) {
|
|
1240
1240
|
const i = this._$AH, r = this._$AN;
|
|
1241
1241
|
if (r !== void 0 && r.size !== 0)
|
|
1242
1242
|
if (t)
|
|
1243
1243
|
if (Array.isArray(i))
|
|
1244
|
-
for (let
|
|
1245
|
-
|
|
1244
|
+
for (let o = e; o < i.length; o++)
|
|
1245
|
+
j(i[o], !1), J(i[o]);
|
|
1246
1246
|
else
|
|
1247
|
-
i != null && (
|
|
1247
|
+
i != null && (j(i, !1), J(i));
|
|
1248
1248
|
else
|
|
1249
|
-
|
|
1249
|
+
j(this, s);
|
|
1250
1250
|
}
|
|
1251
1251
|
const ei = (s) => {
|
|
1252
1252
|
s.type == $t.CHILD && (s._$AP ?? (s._$AP = ti), s._$AQ ?? (s._$AQ = Qe));
|
|
1253
1253
|
};
|
|
1254
|
-
class
|
|
1254
|
+
class le extends ae {
|
|
1255
1255
|
constructor() {
|
|
1256
1256
|
super(...arguments), this._$AN = void 0;
|
|
1257
1257
|
}
|
|
1258
1258
|
_$AT(t, e, i) {
|
|
1259
|
-
super._$AT(t, e, i),
|
|
1259
|
+
super._$AT(t, e, i), ce(this), this.isConnected = t._$AU;
|
|
1260
1260
|
}
|
|
1261
1261
|
_$AO(t, e = !0) {
|
|
1262
1262
|
var i, r;
|
|
1263
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (
|
|
1263
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (j(this, t), J(this));
|
|
1264
1264
|
}
|
|
1265
1265
|
setValue(t) {
|
|
1266
1266
|
if (Je(this._$Ct))
|
|
@@ -1276,14 +1276,14 @@ class he extends ae {
|
|
|
1276
1276
|
}
|
|
1277
1277
|
}
|
|
1278
1278
|
const ii = /* @__PURE__ */ new WeakMap();
|
|
1279
|
-
let
|
|
1280
|
-
const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(),
|
|
1279
|
+
let Bt = 0;
|
|
1280
|
+
const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(), Vt = () => new Promise((s) => requestAnimationFrame(s)), si = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], zt = (s, t) => {
|
|
1281
1281
|
const e = s - t;
|
|
1282
1282
|
return e === 0 ? void 0 : e;
|
|
1283
1283
|
}, Wt = (s, t) => {
|
|
1284
1284
|
const e = s / t;
|
|
1285
1285
|
return e === 1 ? void 0 : e;
|
|
1286
|
-
},
|
|
1286
|
+
}, ct = { left: (s, t) => {
|
|
1287
1287
|
const e = zt(s, t);
|
|
1288
1288
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1289
1289
|
}, top: (s, t) => {
|
|
@@ -1299,8 +1299,8 @@ const at = /* @__PURE__ */ new Map(), Dt = /* @__PURE__ */ new WeakSet(), Bt = (
|
|
|
1299
1299
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1300
1300
|
const i = Wt(s, t);
|
|
1301
1301
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1302
|
-
} }, ri = { duration: 333, easing: "ease-in-out" },
|
|
1303
|
-
class
|
|
1302
|
+
} }, ri = { duration: 333, easing: "ease-in-out" }, oi = ["left", "top", "width", "height", "opacity", "color", "background"], Yt = /* @__PURE__ */ new WeakMap();
|
|
1303
|
+
class ni extends le {
|
|
1304
1304
|
constructor(t) {
|
|
1305
1305
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === $t.CHILD)
|
|
1306
1306
|
throw Error("The `animate` directive must be used in attribute position.");
|
|
@@ -1329,25 +1329,25 @@ class oi extends he {
|
|
|
1329
1329
|
update(t, [e]) {
|
|
1330
1330
|
var r;
|
|
1331
1331
|
const i = this.u === void 0;
|
|
1332
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((
|
|
1332
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, Yt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
|
1333
1333
|
}
|
|
1334
1334
|
p(t) {
|
|
1335
1335
|
t = t ?? {};
|
|
1336
1336
|
const e = this.getController();
|
|
1337
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
1337
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = oi), this.options = t;
|
|
1338
1338
|
}
|
|
1339
1339
|
m() {
|
|
1340
1340
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
1341
1341
|
return this.options.properties.forEach((r) => {
|
|
1342
|
-
const
|
|
1343
|
-
t[r] = isNaN(
|
|
1342
|
+
const o = e[r] ?? (ct[r] ? void 0 : i[r]), n = Number(o);
|
|
1343
|
+
t[r] = isNaN(n) ? o + "" : n;
|
|
1344
1344
|
}), t;
|
|
1345
1345
|
}
|
|
1346
1346
|
v() {
|
|
1347
1347
|
let t, e = !0;
|
|
1348
1348
|
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
|
1349
1349
|
if (Array.isArray(i)) {
|
|
1350
|
-
if (Array.isArray(r) && r.length === i.length && i.every((
|
|
1350
|
+
if (Array.isArray(r) && r.length === i.length && i.every((o, n) => o === r[n]))
|
|
1351
1351
|
return !1;
|
|
1352
1352
|
} else if (r === i)
|
|
1353
1353
|
return !1;
|
|
@@ -1361,17 +1361,17 @@ class oi extends he {
|
|
|
1361
1361
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
|
1362
1362
|
return;
|
|
1363
1363
|
let t;
|
|
1364
|
-
this.prepare(), await
|
|
1364
|
+
this.prepare(), await Vt;
|
|
1365
1365
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
|
1366
1366
|
if (this.A !== void 0) {
|
|
1367
|
-
const { from:
|
|
1368
|
-
this.log("measured", [this.A, r,
|
|
1367
|
+
const { from: o, to: n } = this.N(this.A, r, e);
|
|
1368
|
+
this.log("measured", [this.A, r, o, n]), t = this.calculateKeyframes(o, n);
|
|
1369
1369
|
} else {
|
|
1370
|
-
const
|
|
1371
|
-
if (
|
|
1370
|
+
const o = at.get(this.options.inId);
|
|
1371
|
+
if (o) {
|
|
1372
1372
|
at.delete(this.options.inId);
|
|
1373
|
-
const { from:
|
|
1374
|
-
t = this.calculateKeyframes(
|
|
1373
|
+
const { from: n, to: a } = this.N(o, r, e);
|
|
1374
|
+
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Bt++, t.forEach((c) => c.zIndex = Bt);
|
|
1375
1375
|
} else
|
|
1376
1376
|
this.options.in && (t = [...this.options.in, {}]);
|
|
1377
1377
|
}
|
|
@@ -1390,13 +1390,13 @@ class oi extends he {
|
|
|
1390
1390
|
var e;
|
|
1391
1391
|
if (!this.h || (this.options.id !== void 0 && at.set(this.options.id, this.A), this.options.out === void 0))
|
|
1392
1392
|
return;
|
|
1393
|
-
if (this.prepare(), await
|
|
1393
|
+
if (this.prepare(), await Vt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1394
1394
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1395
1395
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
|
1396
1396
|
const r = this.m();
|
|
1397
1397
|
this.log("stabilizing out");
|
|
1398
|
-
const
|
|
1399
|
-
getComputedStyle(this.element).position !== "static" ||
|
|
1398
|
+
const o = this.A.left - r.left, n = this.A.top - r.top;
|
|
1399
|
+
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");
|
|
1400
1400
|
}
|
|
1401
1401
|
}
|
|
1402
1402
|
const t = this.j(this.options.keyframeOptions);
|
|
@@ -1434,27 +1434,27 @@ class oi extends he {
|
|
|
1434
1434
|
N(t, e, i) {
|
|
1435
1435
|
t = { ...t }, e = { ...e };
|
|
1436
1436
|
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
|
1437
|
-
let
|
|
1437
|
+
let o = 1, n = 1;
|
|
1438
1438
|
return r.length > 0 && (r.forEach((a) => {
|
|
1439
|
-
a.width && (
|
|
1440
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
|
1439
|
+
a.width && (o /= a.width), a.height && (n /= a.height);
|
|
1440
|
+
}), 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 };
|
|
1441
1441
|
}
|
|
1442
1442
|
calculateKeyframes(t, e, i = !1) {
|
|
1443
|
-
const r = {},
|
|
1444
|
-
let
|
|
1443
|
+
const r = {}, o = {};
|
|
1444
|
+
let n = !1;
|
|
1445
1445
|
const a = {};
|
|
1446
|
-
for (const
|
|
1447
|
-
const
|
|
1448
|
-
if (
|
|
1449
|
-
const p =
|
|
1450
|
-
if (
|
|
1446
|
+
for (const c in e) {
|
|
1447
|
+
const l = t[c], h = e[c];
|
|
1448
|
+
if (c in ct) {
|
|
1449
|
+
const p = ct[c];
|
|
1450
|
+
if (l === void 0 || h === void 0)
|
|
1451
1451
|
continue;
|
|
1452
|
-
const u = p(
|
|
1453
|
-
u.transform !== void 0 && (a[
|
|
1452
|
+
const u = p(l, h);
|
|
1453
|
+
u.transform !== void 0 && (a[c] = u.value, n = !0, r.transform = `${r.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(r, u.overrideFrom));
|
|
1454
1454
|
} else
|
|
1455
|
-
|
|
1455
|
+
l !== h && l !== void 0 && h !== void 0 && (n = !0, r[c] = l, o[c] = h);
|
|
1456
1456
|
}
|
|
1457
|
-
return r.transformOrigin =
|
|
1457
|
+
return r.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [r, o] : void 0;
|
|
1458
1458
|
}
|
|
1459
1459
|
async animate(t, e = this.options.keyframeOptions) {
|
|
1460
1460
|
this.start(), this.frames = t;
|
|
@@ -1479,7 +1479,7 @@ class oi extends he {
|
|
|
1479
1479
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
1480
1480
|
}
|
|
1481
1481
|
}
|
|
1482
|
-
const ai = _t(
|
|
1482
|
+
const ai = _t(ni), ci = { 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>' };
|
|
1483
1483
|
/**
|
|
1484
1484
|
* @license
|
|
1485
1485
|
* Copyright 2018 Google LLC
|
|
@@ -1497,47 +1497,63 @@ const Ft = _t(class extends ae {
|
|
|
1497
1497
|
update(s, [t]) {
|
|
1498
1498
|
var i, r;
|
|
1499
1499
|
if (this.st === void 0) {
|
|
1500
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
|
1501
|
-
for (const
|
|
1502
|
-
t[
|
|
1500
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
|
1501
|
+
for (const o in t)
|
|
1502
|
+
t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
|
1503
1503
|
return this.render(t);
|
|
1504
1504
|
}
|
|
1505
1505
|
const e = s.element.classList;
|
|
1506
|
-
for (const
|
|
1507
|
-
|
|
1508
|
-
for (const
|
|
1509
|
-
const
|
|
1510
|
-
|
|
1506
|
+
for (const o of this.st)
|
|
1507
|
+
o in t || (e.remove(o), this.st.delete(o));
|
|
1508
|
+
for (const o in t) {
|
|
1509
|
+
const n = !!t[o];
|
|
1510
|
+
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
|
1511
1511
|
}
|
|
1512
|
-
return
|
|
1512
|
+
return P;
|
|
1513
1513
|
}
|
|
1514
|
-
}),
|
|
1514
|
+
}), y = (s, t, e) => {
|
|
1515
1515
|
s && e.style.setProperty(t, s);
|
|
1516
|
-
},
|
|
1517
|
-
var e, i, r, n;
|
|
1518
|
-
|
|
1516
|
+
}, he = (s, t) => {
|
|
1517
|
+
var e, i, r, o, n, a, c, l, h;
|
|
1518
|
+
y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), y(
|
|
1519
1519
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
1520
1520
|
"--text-on-primary-background",
|
|
1521
1521
|
t
|
|
1522
|
-
),
|
|
1522
|
+
), y(
|
|
1523
1523
|
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
|
1524
1524
|
"--secondary-background",
|
|
1525
1525
|
t
|
|
1526
|
-
),
|
|
1527
|
-
(
|
|
1526
|
+
), y(
|
|
1527
|
+
(o = s.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
|
1528
1528
|
"--text-on-secondary-background",
|
|
1529
1529
|
t
|
|
1530
|
-
)
|
|
1530
|
+
), y(
|
|
1531
|
+
(n = s.colors) == null ? void 0 : n.interactiveDestructiveBackground,
|
|
1532
|
+
"--destructive-color",
|
|
1533
|
+
t
|
|
1534
|
+
), y(
|
|
1535
|
+
(a = s.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
|
1536
|
+
"--text-on-destructive-color",
|
|
1537
|
+
t
|
|
1538
|
+
), y(
|
|
1539
|
+
(c = s.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
|
1540
|
+
"--interactive-primary-background",
|
|
1541
|
+
t
|
|
1542
|
+
), y(
|
|
1543
|
+
(l = s.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
|
|
1544
|
+
"--interactive-text-on-primary-background",
|
|
1545
|
+
t
|
|
1546
|
+
), y((h = s.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
|
|
1531
1547
|
};
|
|
1532
1548
|
/**
|
|
1533
1549
|
* @license
|
|
1534
1550
|
* Copyright 2020 Google LLC
|
|
1535
1551
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1536
1552
|
*/
|
|
1537
|
-
const pe = () => new
|
|
1538
|
-
class
|
|
1553
|
+
const pe = () => new li();
|
|
1554
|
+
class li {
|
|
1539
1555
|
}
|
|
1540
|
-
const
|
|
1556
|
+
const lt = /* @__PURE__ */ new WeakMap(), de = _t(class extends le {
|
|
1541
1557
|
render(s) {
|
|
1542
1558
|
return d;
|
|
1543
1559
|
}
|
|
@@ -1549,14 +1565,14 @@ const ht = /* @__PURE__ */ new WeakMap(), de = _t(class extends he {
|
|
|
1549
1565
|
rt(s) {
|
|
1550
1566
|
if (typeof this.Y == "function") {
|
|
1551
1567
|
const t = this.ht ?? globalThis;
|
|
1552
|
-
let e =
|
|
1553
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1568
|
+
let e = lt.get(t);
|
|
1569
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
|
1554
1570
|
} else
|
|
1555
1571
|
this.Y.value = s;
|
|
1556
1572
|
}
|
|
1557
1573
|
get lt() {
|
|
1558
1574
|
var s, t;
|
|
1559
|
-
return typeof this.Y == "function" ? (s =
|
|
1575
|
+
return typeof this.Y == "function" ? (s = lt.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
|
1560
1576
|
}
|
|
1561
1577
|
disconnected() {
|
|
1562
1578
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1565,12 +1581,12 @@ const ht = /* @__PURE__ */ new WeakMap(), de = _t(class extends he {
|
|
|
1565
1581
|
this.rt(this.ct);
|
|
1566
1582
|
}
|
|
1567
1583
|
});
|
|
1568
|
-
var
|
|
1569
|
-
for (var r = i > 1 ? void 0 : i ? pi(t, e) : t,
|
|
1570
|
-
(
|
|
1571
|
-
return i && r &&
|
|
1584
|
+
var hi = Object.defineProperty, pi = Object.getOwnPropertyDescriptor, z = (s, t, e, i) => {
|
|
1585
|
+
for (var r = i > 1 ? void 0 : i ? pi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1586
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1587
|
+
return i && r && hi(t, e, r), r;
|
|
1572
1588
|
};
|
|
1573
|
-
class
|
|
1589
|
+
class w extends m {
|
|
1574
1590
|
constructor() {
|
|
1575
1591
|
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = pe(), this.widgetActive$ = new Se(!1), this.componentIsDestroyed$ = new gt();
|
|
1576
1592
|
}
|
|
@@ -1592,23 +1608,23 @@ class _ extends m {
|
|
|
1592
1608
|
}
|
|
1593
1609
|
_applyBranding() {
|
|
1594
1610
|
var t;
|
|
1595
|
-
(t = this.application) != null && t.settings &&
|
|
1611
|
+
(t = this.application) != null && t.settings && he(this.application.settings.branding, this);
|
|
1596
1612
|
}
|
|
1597
1613
|
async _renderSymbol() {
|
|
1598
|
-
var a,
|
|
1599
|
-
const t = (a = this.application) == null ? void 0 : a.branding(), e = (
|
|
1614
|
+
var a, c, l;
|
|
1615
|
+
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
|
1600
1616
|
if (e)
|
|
1601
|
-
return
|
|
1602
|
-
const i = (
|
|
1617
|
+
return x` <img src=${e} class="trigger-icon" alt="" /> `;
|
|
1618
|
+
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
|
1603
1619
|
if (!i)
|
|
1604
1620
|
return d;
|
|
1605
|
-
const r = async (
|
|
1606
|
-
switch (
|
|
1621
|
+
const r = async (h) => ci, { type: o, content: n } = i;
|
|
1622
|
+
switch (o) {
|
|
1607
1623
|
case "Telia": {
|
|
1608
|
-
const
|
|
1609
|
-
return
|
|
1624
|
+
const h = await r();
|
|
1625
|
+
return h ? x`<telia-icon
|
|
1610
1626
|
class="trigger-icon"
|
|
1611
|
-
svg=${
|
|
1627
|
+
svg=${h.svg}
|
|
1612
1628
|
size="lg"
|
|
1613
1629
|
></telia-icon>` : d;
|
|
1614
1630
|
}
|
|
@@ -1624,14 +1640,14 @@ class _ extends m {
|
|
|
1624
1640
|
}
|
|
1625
1641
|
render() {
|
|
1626
1642
|
var t, e, i, r;
|
|
1627
|
-
return
|
|
1643
|
+
return x`<div
|
|
1628
1644
|
class=${Ft({
|
|
1629
1645
|
"trigger-container": !0,
|
|
1630
1646
|
hidden: !this.triggerVisible
|
|
1631
1647
|
})}
|
|
1632
1648
|
${de(this.containerRef)}
|
|
1633
1649
|
>
|
|
1634
|
-
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ?
|
|
1650
|
+
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? x`
|
|
1635
1651
|
<button
|
|
1636
1652
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
1637
1653
|
class="trigger-label"
|
|
@@ -1688,23 +1704,27 @@ class _ extends m {
|
|
|
1688
1704
|
</div>`;
|
|
1689
1705
|
}
|
|
1690
1706
|
}
|
|
1691
|
-
|
|
1692
|
-
|
|
1707
|
+
w.styles = [
|
|
1708
|
+
O`
|
|
1693
1709
|
:host {
|
|
1694
1710
|
--voca-rem-multiplier: 0.625;
|
|
1695
1711
|
--trigger-label-bg: #f5e0ff;
|
|
1696
1712
|
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
|
1697
1713
|
display: block;
|
|
1698
1714
|
box-sizing: border-box;
|
|
1699
|
-
/* font-family: var(--font-family); */
|
|
1700
1715
|
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
1701
1716
|
}
|
|
1702
1717
|
|
|
1718
|
+
:focus {
|
|
1719
|
+
outline-color: var(--focus-color);
|
|
1720
|
+
}
|
|
1721
|
+
|
|
1703
1722
|
.trigger-container {
|
|
1704
1723
|
display: flex;
|
|
1705
1724
|
align-items: center;
|
|
1706
1725
|
gap: 1rem;
|
|
1707
1726
|
}
|
|
1727
|
+
|
|
1708
1728
|
.trigger-container.hidden {
|
|
1709
1729
|
display: none;
|
|
1710
1730
|
}
|
|
@@ -1722,26 +1742,34 @@ _.styles = [
|
|
|
1722
1742
|
width: 55px;
|
|
1723
1743
|
border-radius: 55px;
|
|
1724
1744
|
cursor: pointer;
|
|
1725
|
-
background-color: var(
|
|
1745
|
+
background-color: var(
|
|
1746
|
+
--interactive-primary-background,
|
|
1747
|
+
var(--primary-background)
|
|
1748
|
+
);
|
|
1726
1749
|
font-family: Lato;
|
|
1727
1750
|
text-decoration: none;
|
|
1728
1751
|
border: 3px dashed transparent;
|
|
1729
1752
|
box-sizing: border-box;
|
|
1730
1753
|
transition: transform 200ms ease-out;
|
|
1731
1754
|
}
|
|
1755
|
+
|
|
1732
1756
|
.trigger:active {
|
|
1733
1757
|
transform: scale(0.8) !important;
|
|
1734
1758
|
}
|
|
1759
|
+
|
|
1735
1760
|
.trigger:hover:not(:active) {
|
|
1736
1761
|
transform: scale(1.1) !important;
|
|
1737
1762
|
}
|
|
1763
|
+
|
|
1738
1764
|
.trigger.rendered {
|
|
1739
1765
|
transform: scale(1);
|
|
1740
1766
|
}
|
|
1767
|
+
|
|
1741
1768
|
.trigger.active .trigger-icon {
|
|
1742
1769
|
opacity: 0;
|
|
1743
1770
|
transform: rotate(-180deg) scale(0);
|
|
1744
1771
|
}
|
|
1772
|
+
|
|
1745
1773
|
.trigger.active .trigger-close {
|
|
1746
1774
|
opacity: 1;
|
|
1747
1775
|
transform: rotate(0deg) scale(1);
|
|
@@ -1754,8 +1782,12 @@ _.styles = [
|
|
|
1754
1782
|
opacity: 1;
|
|
1755
1783
|
transform: rotate(0deg) scale(1);
|
|
1756
1784
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
|
1757
|
-
color: var(
|
|
1785
|
+
color: var(
|
|
1786
|
+
--interactive-text-on-primary-background,
|
|
1787
|
+
var(--text-on-primary-background)
|
|
1788
|
+
);
|
|
1758
1789
|
}
|
|
1790
|
+
|
|
1759
1791
|
.trigger-close {
|
|
1760
1792
|
opacity: 0;
|
|
1761
1793
|
transition: transform 200ms ease-out;
|
|
@@ -1769,8 +1801,12 @@ _.styles = [
|
|
|
1769
1801
|
justify-content: center;
|
|
1770
1802
|
align-items: center;
|
|
1771
1803
|
}
|
|
1804
|
+
|
|
1772
1805
|
.trigger-close svg path {
|
|
1773
|
-
fill: var(
|
|
1806
|
+
fill: var(
|
|
1807
|
+
--interactive-text-on-primary-background,
|
|
1808
|
+
var(--text-on-primary-background)
|
|
1809
|
+
);
|
|
1774
1810
|
}
|
|
1775
1811
|
|
|
1776
1812
|
img {
|
|
@@ -1779,8 +1815,8 @@ _.styles = [
|
|
|
1779
1815
|
|
|
1780
1816
|
.trigger-label {
|
|
1781
1817
|
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
|
1782
|
-
background-color: var(--
|
|
1783
|
-
color: var(--
|
|
1818
|
+
background-color: var(--secondary-background);
|
|
1819
|
+
color: var(--text-on-secondary-background);
|
|
1784
1820
|
white-space: nowrap;
|
|
1785
1821
|
padding: 0.7rem 1rem;
|
|
1786
1822
|
border-radius: 0.3rem;
|
|
@@ -1800,24 +1836,24 @@ _.styles = [
|
|
|
1800
1836
|
}
|
|
1801
1837
|
`
|
|
1802
1838
|
];
|
|
1803
|
-
|
|
1839
|
+
z([
|
|
1804
1840
|
g({ attribute: !1 })
|
|
1805
|
-
],
|
|
1806
|
-
|
|
1807
|
-
|
|
1808
|
-
],
|
|
1809
|
-
|
|
1810
|
-
|
|
1811
|
-
],
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
],
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
],
|
|
1818
|
-
var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor,
|
|
1819
|
-
for (var r = i > 1 ? void 0 : i ? ui(t, e) : t,
|
|
1820
|
-
(
|
|
1841
|
+
], w.prototype, "application", 2);
|
|
1842
|
+
z([
|
|
1843
|
+
U()
|
|
1844
|
+
], w.prototype, "active", 2);
|
|
1845
|
+
z([
|
|
1846
|
+
U()
|
|
1847
|
+
], w.prototype, "triggerVisible", 2);
|
|
1848
|
+
z([
|
|
1849
|
+
U()
|
|
1850
|
+
], w.prototype, "loaded", 2);
|
|
1851
|
+
z([
|
|
1852
|
+
U()
|
|
1853
|
+
], w.prototype, "icon", 2);
|
|
1854
|
+
var di = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, A = (s, t, e, i) => {
|
|
1855
|
+
for (var r = i > 1 ? void 0 : i ? ui(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
1856
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
1821
1857
|
return i && r && di(t, e, r), r;
|
|
1822
1858
|
};
|
|
1823
1859
|
const ue = (s) => {
|
|
@@ -1846,7 +1882,7 @@ const ue = (s) => {
|
|
|
1846
1882
|
}
|
|
1847
1883
|
return t.styles = [
|
|
1848
1884
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
|
1849
|
-
|
|
1885
|
+
O`
|
|
1850
1886
|
:host {
|
|
1851
1887
|
font-family: var(--font-family);
|
|
1852
1888
|
grid-column: span var(--width);
|
|
@@ -1859,29 +1895,29 @@ const ue = (s) => {
|
|
|
1859
1895
|
box-sizing: border-box;
|
|
1860
1896
|
}
|
|
1861
1897
|
`
|
|
1862
|
-
],
|
|
1898
|
+
], A([
|
|
1863
1899
|
g()
|
|
1864
|
-
], t.prototype, "properties", 2),
|
|
1900
|
+
], t.prototype, "properties", 2), A([
|
|
1865
1901
|
g()
|
|
1866
|
-
], t.prototype, "context", 2),
|
|
1902
|
+
], t.prototype, "context", 2), A([
|
|
1867
1903
|
g()
|
|
1868
|
-
], t.prototype, "layout", 2),
|
|
1904
|
+
], t.prototype, "layout", 2), A([
|
|
1869
1905
|
g()
|
|
1870
|
-
], t.prototype, "name", 2),
|
|
1906
|
+
], t.prototype, "name", 2), A([
|
|
1871
1907
|
g()
|
|
1872
|
-
], t.prototype, "type", 2),
|
|
1908
|
+
], t.prototype, "type", 2), A([
|
|
1873
1909
|
g({ attribute: !1 })
|
|
1874
|
-
], t.prototype, "application", 2),
|
|
1910
|
+
], t.prototype, "application", 2), A([
|
|
1875
1911
|
g({ attribute: !1 })
|
|
1876
1912
|
], t.prototype, "parent", 2), t;
|
|
1877
1913
|
};
|
|
1878
1914
|
class fe extends ue(m) {
|
|
1879
1915
|
render() {
|
|
1880
|
-
return
|
|
1916
|
+
return x`Non resolved component`;
|
|
1881
1917
|
}
|
|
1882
1918
|
}
|
|
1883
1919
|
fe.styles = [
|
|
1884
|
-
|
|
1920
|
+
O`
|
|
1885
1921
|
:host {
|
|
1886
1922
|
display: block;
|
|
1887
1923
|
}
|
|
@@ -1962,19 +1998,19 @@ let mi = class extends Event {
|
|
|
1962
1998
|
};
|
|
1963
1999
|
class Zt extends vi {
|
|
1964
2000
|
constructor(t, e, i) {
|
|
1965
|
-
var r,
|
|
1966
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
|
1967
|
-
const a =
|
|
1968
|
-
|
|
1969
|
-
}, this.onProviderRequest = (
|
|
1970
|
-
const a =
|
|
1971
|
-
if (
|
|
2001
|
+
var r, o;
|
|
2002
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
|
2003
|
+
const a = n.composedPath()[0];
|
|
2004
|
+
n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
|
|
2005
|
+
}, this.onProviderRequest = (n) => {
|
|
2006
|
+
const a = n.composedPath()[0];
|
|
2007
|
+
if (n.context !== this.context || a === this.host)
|
|
1972
2008
|
return;
|
|
1973
|
-
const
|
|
1974
|
-
for (const [
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
|
2009
|
+
const c = /* @__PURE__ */ new Set();
|
|
2010
|
+
for (const [l, { consumerHost: h }] of this.subscriptions)
|
|
2011
|
+
c.has(l) || (c.add(l), h.dispatchEvent(new gi(this.context, l, !0)));
|
|
2012
|
+
n.stopPropagation();
|
|
2013
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (r = this.host).addController) == null || o.call(r, this);
|
|
1978
2014
|
}
|
|
1979
2015
|
attachListeners() {
|
|
1980
2016
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
@@ -1997,38 +2033,38 @@ function yi({ context: s }) {
|
|
|
1997
2033
|
}), { get() {
|
|
1998
2034
|
return t.get.call(this);
|
|
1999
2035
|
}, set(r) {
|
|
2000
|
-
var
|
|
2001
|
-
return (
|
|
2036
|
+
var o;
|
|
2037
|
+
return (o = i.get(this)) == null || o.setValue(r), t.set.call(this, r);
|
|
2002
2038
|
}, init(r) {
|
|
2003
|
-
var
|
|
2004
|
-
return (
|
|
2039
|
+
var o;
|
|
2040
|
+
return (o = i.get(this)) == null || o.setValue(r), r;
|
|
2005
2041
|
} };
|
|
2006
2042
|
{
|
|
2007
|
-
t.constructor.addInitializer((
|
|
2008
|
-
i.set(
|
|
2043
|
+
t.constructor.addInitializer((n) => {
|
|
2044
|
+
i.set(n, new Zt(n, { context: s }));
|
|
2009
2045
|
});
|
|
2010
2046
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
|
2011
|
-
let
|
|
2047
|
+
let o;
|
|
2012
2048
|
if (r === void 0) {
|
|
2013
|
-
const
|
|
2014
|
-
|
|
2015
|
-
return
|
|
2049
|
+
const n = /* @__PURE__ */ new WeakMap();
|
|
2050
|
+
o = { get: function() {
|
|
2051
|
+
return n.get(this);
|
|
2016
2052
|
}, set: function(a) {
|
|
2017
|
-
i.get(this).setValue(a),
|
|
2053
|
+
i.get(this).setValue(a), n.set(this, a);
|
|
2018
2054
|
}, configurable: !0, enumerable: !0 };
|
|
2019
2055
|
} else {
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2022
|
-
i.get(this).setValue(a),
|
|
2056
|
+
const n = r.set;
|
|
2057
|
+
o = { ...r, set: function(a) {
|
|
2058
|
+
i.get(this).setValue(a), n == null || n.call(this, a);
|
|
2023
2059
|
} };
|
|
2024
2060
|
}
|
|
2025
|
-
return void Object.defineProperty(t, e,
|
|
2061
|
+
return void Object.defineProperty(t, e, o);
|
|
2026
2062
|
}
|
|
2027
2063
|
};
|
|
2028
2064
|
}
|
|
2029
2065
|
var bi = Object.defineProperty, $i = Object.getOwnPropertyDescriptor, _i = (s, t, e, i) => {
|
|
2030
|
-
for (var r = i > 1 ? void 0 : i ? $i(t, e) : t,
|
|
2031
|
-
(
|
|
2066
|
+
for (var r = i > 1 ? void 0 : i ? $i(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
2067
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
2032
2068
|
return i && r && bi(t, e, r), r;
|
|
2033
2069
|
};
|
|
2034
2070
|
const wi = "application";
|
|
@@ -2043,7 +2079,7 @@ class Ct extends m {
|
|
|
2043
2079
|
if (!this.wrapperRef.value)
|
|
2044
2080
|
return;
|
|
2045
2081
|
const t = this.application.settings;
|
|
2046
|
-
t != null && t.branding &&
|
|
2082
|
+
t != null && t.branding && he(t.branding, this.wrapperRef.value);
|
|
2047
2083
|
}
|
|
2048
2084
|
applyStyles() {
|
|
2049
2085
|
if (!this.wrapperRef.value)
|
|
@@ -2059,12 +2095,12 @@ class Ct extends m {
|
|
|
2059
2095
|
render() {
|
|
2060
2096
|
var i, r;
|
|
2061
2097
|
const t = this.application.settings.components.conversation;
|
|
2062
|
-
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.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")),
|
|
2063
|
-
${fi(this.nodes, (
|
|
2098
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.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")), x`<div class="widget-container" ${de(this.wrapperRef)}>
|
|
2099
|
+
${fi(this.nodes, (o) => o)}
|
|
2064
2100
|
</div>`;
|
|
2065
2101
|
}
|
|
2066
2102
|
}
|
|
2067
|
-
Ct.styles =
|
|
2103
|
+
Ct.styles = O`
|
|
2068
2104
|
:host {
|
|
2069
2105
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
2070
2106
|
--spacing-xs: 0.2rem;
|
|
@@ -2080,6 +2116,7 @@ Ct.styles = P`
|
|
|
2080
2116
|
--gray-color: #f3f3f8;
|
|
2081
2117
|
--white-color: #fff;
|
|
2082
2118
|
--gray-dark-color: #a6a6a6;
|
|
2119
|
+
--black-border-color: #00000054;
|
|
2083
2120
|
|
|
2084
2121
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
|
2085
2122
|
--border-radius: var(--spacing-sm);
|
|
@@ -2156,8 +2193,6 @@ Ct.styles = P`
|
|
|
2156
2193
|
background-color: var(--primary-background);
|
|
2157
2194
|
padding: var(--spacing-sm);
|
|
2158
2195
|
border: var(--widget-border, none);
|
|
2159
|
-
border-left: 1px solid #00000054;
|
|
2160
|
-
border-right: 1px solid #00000054;
|
|
2161
2196
|
}
|
|
2162
2197
|
@keyframes slideDown {
|
|
2163
2198
|
from {
|
|
@@ -2194,11 +2229,11 @@ _i([
|
|
|
2194
2229
|
yi({ context: wi })
|
|
2195
2230
|
], Ct.prototype, "application", 2);
|
|
2196
2231
|
var Ci = Object.defineProperty, Ai = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
|
|
2197
|
-
for (var r = i > 1 ? void 0 : i ? Ai(t, e) : t,
|
|
2198
|
-
(
|
|
2232
|
+
for (var r = i > 1 ? void 0 : i ? Ai(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
|
2233
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
|
2199
2234
|
return i && r && Ci(t, e, r), r;
|
|
2200
2235
|
};
|
|
2201
|
-
class
|
|
2236
|
+
class W extends m {
|
|
2202
2237
|
constructor() {
|
|
2203
2238
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
|
2204
2239
|
}
|
|
@@ -2224,14 +2259,14 @@ class z extends m {
|
|
|
2224
2259
|
if (!this.widget || this.status !== "activated")
|
|
2225
2260
|
return d;
|
|
2226
2261
|
if (this.widget.renderStrategy === wt.Trigger) {
|
|
2227
|
-
const t = new
|
|
2262
|
+
const t = new w();
|
|
2228
2263
|
return t.application = this.widget, t;
|
|
2229
2264
|
}
|
|
2230
2265
|
return this.widget.render();
|
|
2231
2266
|
}
|
|
2232
2267
|
}
|
|
2233
|
-
|
|
2234
|
-
|
|
2268
|
+
W.styles = [
|
|
2269
|
+
O`
|
|
2235
2270
|
:host {
|
|
2236
2271
|
display: block;
|
|
2237
2272
|
}
|
|
@@ -2239,18 +2274,18 @@ z.styles = [
|
|
|
2239
2274
|
];
|
|
2240
2275
|
At([
|
|
2241
2276
|
g({ attribute: !0 })
|
|
2242
|
-
],
|
|
2277
|
+
], W.prototype, "name", 2);
|
|
2243
2278
|
At([
|
|
2244
|
-
|
|
2245
|
-
],
|
|
2279
|
+
U()
|
|
2280
|
+
], W.prototype, "widget", 2);
|
|
2246
2281
|
At([
|
|
2247
|
-
|
|
2248
|
-
],
|
|
2282
|
+
U()
|
|
2283
|
+
], W.prototype, "status", 2);
|
|
2249
2284
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", bt);
|
|
2250
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
|
2285
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", w);
|
|
2251
2286
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", fe);
|
|
2252
2287
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Ct);
|
|
2253
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
|
2288
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", W);
|
|
2254
2289
|
const xi = Ie`
|
|
2255
2290
|
<g clip-path="url(#clip0_119_1665)">
|
|
2256
2291
|
<path d="M16.9321 27.4656C11.5983 29.6245 8.54568 28.9365 6.85856 27.5904L6.83398 27.5712C9.44534 30.1717 12.4221 32.0011 15.0324 32.0011C19.6033 32.0011 25.8614 26.4651 28.8232 17.8805C27.1542 20.9792 23.5727 24.7861 16.9321 27.4656Z" fill="#990AE3"/>
|
|
@@ -2273,7 +2308,7 @@ const xi = Ie`
|
|
|
2273
2308
|
class Ei extends ge {
|
|
2274
2309
|
render() {
|
|
2275
2310
|
var e;
|
|
2276
|
-
return (e = this.application.branding().other) != null && e.whiteLabel ? d :
|
|
2311
|
+
return (e = this.application.branding().other) != null && e.whiteLabel ? d : x` <div class="copyright">
|
|
2277
2312
|
<a
|
|
2278
2313
|
aria-label="Powered by Telia ACE"
|
|
2279
2314
|
href="https://ace-showcase.com"
|
|
@@ -2296,11 +2331,15 @@ class Ei extends ge {
|
|
|
2296
2331
|
}
|
|
2297
2332
|
Ei.styles = [
|
|
2298
2333
|
ge.styles || [],
|
|
2299
|
-
|
|
2334
|
+
O`
|
|
2300
2335
|
:host {
|
|
2301
2336
|
--copyright-text-color: var(--text-on-primary-background);
|
|
2302
2337
|
}
|
|
2303
2338
|
|
|
2339
|
+
:focus {
|
|
2340
|
+
outline-color: var(--focus-color);
|
|
2341
|
+
}
|
|
2342
|
+
|
|
2304
2343
|
.copyright {
|
|
2305
2344
|
padding: var(--spacing-sx);
|
|
2306
2345
|
box-shadow: 1px 0px 10px rgba(0, 0, 0, 0.1);
|