@telia-ace/widget-core-flamingo 1.1.72-rc.2 → 1.1.72-rc.20
Sign up to get free protection for your applications and to get access to all the features.
- package/bootstrap.d.ts +4 -1
- package/index.js +54 -35
- package/index.mjs +507 -457
- package/models/application.d.ts +1 -0
- package/models/site.d.ts +2 -0
- package/package.json +1 -1
- package/services/site-api.d.ts +1 -0
- package/services/storage.service.d.ts +5 -2
- package/services/widget-api.d.ts +1 -2
package/index.mjs
CHANGED
@@ -6,7 +6,7 @@ var gt = function(s, t) {
|
|
6
6
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
7
7
|
}, gt(s, t);
|
8
8
|
};
|
9
|
-
function
|
9
|
+
function W(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
|
gt(s, t);
|
@@ -27,33 +27,33 @@ function mt(s) {
|
|
27
27
|
};
|
28
28
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
29
29
|
}
|
30
|
-
function
|
30
|
+
function G(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 J(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 w(s) {
|
57
57
|
return typeof s == "function";
|
58
58
|
}
|
59
59
|
function Qt(s) {
|
@@ -62,7 +62,7 @@ function Qt(s) {
|
|
62
62
|
}, e = s(t);
|
63
63
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
64
64
|
}
|
65
|
-
var
|
65
|
+
var nt = Qt(function(s) {
|
66
66
|
return function(e) {
|
67
67
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
68
68
|
` + e.map(function(i, r) {
|
@@ -82,14 +82,14 @@ var it = 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 = mt(
|
92
|
+
for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
|
93
93
|
var h = c.value;
|
94
94
|
h.remove(this);
|
95
95
|
}
|
@@ -104,24 +104,24 @@ var it = function() {
|
|
104
104
|
}
|
105
105
|
}
|
106
106
|
else
|
107
|
-
|
107
|
+
n.remove(this);
|
108
108
|
var l = this.initialTeardown;
|
109
|
-
if (
|
109
|
+
if (w(l))
|
110
110
|
try {
|
111
111
|
l();
|
112
112
|
} catch (v) {
|
113
|
-
|
113
|
+
o = v instanceof nt ? v.errors : [v];
|
114
114
|
}
|
115
|
-
var
|
116
|
-
if (
|
115
|
+
var d = this._finalizers;
|
116
|
+
if (d) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var f = mt(
|
119
|
+
for (var f = mt(d), u = f.next(); !u.done; u = f.next()) {
|
120
120
|
var g = u.value;
|
121
121
|
try {
|
122
122
|
Pt(g);
|
123
123
|
} catch (v) {
|
124
|
-
|
124
|
+
o = o ?? [], v instanceof nt ? o = J(J([], G(o)), G(v.errors)) : o.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
@@ -135,8 +135,8 @@ var it = function() {
|
|
135
135
|
}
|
136
136
|
}
|
137
137
|
}
|
138
|
-
if (
|
139
|
-
throw new
|
138
|
+
if (o)
|
139
|
+
throw new nt(o);
|
140
140
|
}
|
141
141
|
}, s.prototype.add = function(t) {
|
142
142
|
var e;
|
@@ -169,10 +169,10 @@ var it = function() {
|
|
169
169
|
}(), s;
|
170
170
|
}(), te = it.EMPTY;
|
171
171
|
function ee(s) {
|
172
|
-
return s instanceof it || s && "closed" in s &&
|
172
|
+
return s instanceof it || s && "closed" in s && w(s.remove) && w(s.add) && w(s.unsubscribe);
|
173
173
|
}
|
174
174
|
function Pt(s) {
|
175
|
-
|
175
|
+
w(s) ? s() : s.unsubscribe();
|
176
176
|
}
|
177
177
|
var ie = {
|
178
178
|
onUnhandledError: null,
|
@@ -185,7 +185,7 @@ var ie = {
|
|
185
185
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
186
|
e[i - 2] = arguments[i];
|
187
187
|
var r = yt.delegate;
|
188
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r, J([s, t],
|
188
|
+
return r != null && r.setTimeout ? r.setTimeout.apply(r, J([s, t], G(e))) : setTimeout.apply(void 0, J([s, t], G(e)));
|
189
189
|
},
|
190
190
|
clearTimeout: function(s) {
|
191
191
|
var t = yt.delegate;
|
@@ -204,7 +204,7 @@ function K(s) {
|
|
204
204
|
s();
|
205
205
|
}
|
206
206
|
var se = function(s) {
|
207
|
-
|
207
|
+
W(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, ee(e) && e.add(i)) : i.destination = Ce, i;
|
@@ -248,7 +248,7 @@ var Ae = function() {
|
|
248
248
|
try {
|
249
249
|
e.next(t);
|
250
250
|
} catch (i) {
|
251
|
-
|
251
|
+
q(i);
|
252
252
|
}
|
253
253
|
}, s.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
@@ -256,44 +256,44 @@ var Ae = function() {
|
|
256
256
|
try {
|
257
257
|
e.error(t);
|
258
258
|
} catch (i) {
|
259
|
-
|
259
|
+
q(i);
|
260
260
|
}
|
261
261
|
else
|
262
|
-
|
262
|
+
q(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
|
+
q(e);
|
270
270
|
}
|
271
271
|
}, s;
|
272
272
|
}(), bt = function(s) {
|
273
|
-
|
273
|
+
W(t, s);
|
274
274
|
function t(e, i, r) {
|
275
|
-
var
|
276
|
-
if (
|
277
|
-
|
275
|
+
var o = s.call(this) || this, n;
|
276
|
+
if (w(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 && ie.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
|
+
return o.unsubscribe();
|
286
|
+
}, n = {
|
287
287
|
next: e.next && at(e.next, a),
|
288
288
|
error: e.error && at(e.error, a),
|
289
289
|
complete: e.complete && at(e.complete, a)
|
290
|
-
}) :
|
290
|
+
}) : n = e;
|
291
291
|
}
|
292
|
-
return
|
292
|
+
return o.destination = new Ae(n), o;
|
293
293
|
}
|
294
294
|
return t;
|
295
295
|
}(se);
|
296
|
-
function
|
296
|
+
function q(s) {
|
297
297
|
we(s);
|
298
298
|
}
|
299
299
|
function xe(s) {
|
@@ -325,11 +325,11 @@ var Tt = 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 = Te(t) ? t : new bt(t, e, i);
|
329
329
|
return K(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 Tt = function() {
|
|
338
338
|
}
|
339
339
|
}, s.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e = It(e), new e(function(r,
|
342
|
-
var
|
341
|
+
return e = It(e), new e(function(r, o) {
|
342
|
+
var n = new bt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
346
346
|
} catch (c) {
|
347
|
-
|
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 Tt = function() {
|
|
364
364
|
}, s.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
366
|
return t = It(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 It(s) {
|
|
382
382
|
return (t = s ?? ie.Promise) !== null && t !== void 0 ? t : Promise;
|
383
383
|
}
|
384
384
|
function Oe(s) {
|
385
|
-
return s &&
|
385
|
+
return s && w(s.next) && w(s.error) && w(s.complete);
|
386
386
|
}
|
387
387
|
function Te(s) {
|
388
388
|
return s && s instanceof se || Oe(s) && ee(s);
|
@@ -392,7 +392,7 @@ var Ie = Qt(function(s) {
|
|
392
392
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
394
|
}), $t = function(s) {
|
395
|
-
|
395
|
+
W(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,11 +406,11 @@ var Ie = Qt(function(s) {
|
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
408
|
K(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
|
413
|
+
for (var n = mt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
@@ -418,7 +418,7 @@ var Ie = Qt(function(s) {
|
|
418
418
|
r = { error: h };
|
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 Ie = Qt(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 ? te : (this.currentObservers = null, a.push(e), new it(function() {
|
463
463
|
i.currentObservers = null, vt(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 Tt();
|
470
470
|
return e.source = this, e;
|
@@ -472,7 +472,7 @@ var Ie = Qt(function(s) {
|
|
472
472
|
return new Rt(e, i);
|
473
473
|
}, t;
|
474
474
|
}(Tt), Rt = function(s) {
|
475
|
-
|
475
|
+
W(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 Ie = Qt(function(s) {
|
|
491
491
|
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : te;
|
492
492
|
}, t;
|
493
493
|
}($t), re = function(s) {
|
494
|
-
|
494
|
+
W(t, s);
|
495
495
|
function t(e) {
|
496
496
|
var i = s.call(this) || this;
|
497
497
|
return i._value = e, i;
|
@@ -506,15 +506,15 @@ var Ie = Qt(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;
|
516
|
-
}($t),
|
517
|
-
class
|
516
|
+
}($t), oe = /* @__PURE__ */ ((s) => (s.Loading = "loading", s.Ready = "ready", s))(oe || {});
|
517
|
+
class kt {
|
518
518
|
constructor(t, e) {
|
519
519
|
this.state = new re(
|
520
520
|
"loading"
|
@@ -539,8 +539,8 @@ class Ut {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const
|
543
|
-
let
|
542
|
+
const Z = globalThis, wt = Z.ShadowRoot && (Z.ShadyCSS === void 0 || Z.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
543
|
+
let ne = class {
|
544
544
|
constructor(t, e, i) {
|
545
545
|
if (this._$cssResult$ = !0, i !== _t)
|
546
546
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -551,7 +551,7 @@ let oe = class {
|
|
551
551
|
const e = this.t;
|
552
552
|
if (wt && t === void 0) {
|
553
553
|
const i = e !== void 0 && e.length === 1;
|
554
|
-
i && (t =
|
554
|
+
i && (t = Nt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Nt.set(e, t));
|
555
555
|
}
|
556
556
|
return t;
|
557
557
|
}
|
@@ -559,24 +559,24 @@ let oe = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const Re = (s) => new
|
563
|
-
const e = s.length === 1 ? s[0] : t.reduce((i, r,
|
564
|
-
if (
|
565
|
-
return
|
566
|
-
if (typeof
|
567
|
-
return
|
568
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
569
|
-
})(r) + s[
|
570
|
-
return new
|
571
|
-
},
|
562
|
+
const Re = (s) => new ne(typeof s == "string" ? s : s + "", void 0, _t), N = (s, ...t) => {
|
563
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, o) => i + ((n) => {
|
564
|
+
if (n._$cssResult$ === !0)
|
565
|
+
return n.cssText;
|
566
|
+
if (typeof n == "number")
|
567
|
+
return n;
|
568
|
+
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.");
|
569
|
+
})(r) + s[o + 1], s[0]);
|
570
|
+
return new ne(e, s, _t);
|
571
|
+
}, ke = (s, t) => {
|
572
572
|
if (wt)
|
573
573
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
574
574
|
else
|
575
575
|
for (const e of t) {
|
576
|
-
const i = document.createElement("style"), r =
|
576
|
+
const i = document.createElement("style"), r = Z.litNonce;
|
577
577
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
578
578
|
}
|
579
|
-
},
|
579
|
+
}, Ut = wt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
580
580
|
let e = "";
|
581
581
|
for (const i of t.cssRules)
|
582
582
|
e += i.cssText;
|
@@ -587,7 +587,7 @@ const Re = (s) => new oe(typeof s == "string" ? s : s + "", void 0, _t), U = (s,
|
|
587
587
|
* Copyright 2017 Google LLC
|
588
588
|
* SPDX-License-Identifier: BSD-3-Clause
|
589
589
|
*/
|
590
|
-
const { is:
|
590
|
+
const { is: Ne, defineProperty: Ue, getOwnPropertyDescriptor: je, getOwnPropertyNames: Me, getOwnPropertySymbols: He, getPrototypeOf: Le } = Object, C = globalThis, jt = C.trustedTypes, Be = jt ? jt.emptyScript : "", ct = C.reactiveElementPolyfillSupport, M = (s, t) => s, X = { toAttribute(s, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
593
|
s = s ? Be : null;
|
@@ -615,48 +615,48 @@ const { is: Me, defineProperty: ke, getOwnPropertyDescriptor: Ne, getOwnProperty
|
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} }, At = (s, t) => !
|
619
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
620
|
-
let
|
618
|
+
} }, At = (s, t) => !Ne(s, t), Mt = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: At };
|
619
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
|
+
let I = 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 = Mt) {
|
628
628
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
629
629
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
630
|
-
r !== void 0 &&
|
630
|
+
r !== void 0 && Ue(this.prototype, t, r);
|
631
631
|
}
|
632
632
|
}
|
633
633
|
static getPropertyDescriptor(t, e, i) {
|
634
|
-
const { get: r, set:
|
634
|
+
const { get: r, set: o } = je(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
|
-
}, set(
|
637
|
-
this[e] =
|
636
|
+
}, set(n) {
|
637
|
+
this[e] = n;
|
638
638
|
} };
|
639
639
|
return { get() {
|
640
640
|
return r == null ? void 0 : r.call(this);
|
641
|
-
}, set(
|
641
|
+
}, set(n) {
|
642
642
|
const a = r == null ? void 0 : r.call(this);
|
643
|
-
|
643
|
+
o.call(this, n), this.requestUpdate(t, a, i);
|
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) ?? Mt;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
|
-
if (this.hasOwnProperty(
|
650
|
+
if (this.hasOwnProperty(M("elementProperties")))
|
651
651
|
return;
|
652
652
|
const t = Le(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(M("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(M("properties"))) {
|
659
|
+
const e = this.properties, i = [...Me(e), ...He(e)];
|
660
660
|
for (const r of i)
|
661
661
|
this.createProperty(r, e[r]);
|
662
662
|
}
|
@@ -679,9 +679,9 @@ let T = class extends HTMLElement {
|
|
679
679
|
if (Array.isArray(t)) {
|
680
680
|
const i = new Set(t.flat(1 / 0).reverse());
|
681
681
|
for (const r of i)
|
682
|
-
e.unshift(
|
682
|
+
e.unshift(Ut(r));
|
683
683
|
} else
|
684
|
-
t !== void 0 && e.push(
|
684
|
+
t !== void 0 && e.push(Ut(t));
|
685
685
|
return e;
|
686
686
|
}
|
687
687
|
static _$Eu(t, e) {
|
@@ -711,7 +711,7 @@ let T = class extends HTMLElement {
|
|
711
711
|
}
|
712
712
|
createRenderRoot() {
|
713
713
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
714
|
-
return
|
714
|
+
return ke(t, this.constructor.elementStyles), t;
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
@@ -733,19 +733,19 @@ let T = class extends HTMLElement {
|
|
733
733
|
this._$AK(t, i);
|
734
734
|
}
|
735
735
|
_$EC(t, e) {
|
736
|
-
var
|
736
|
+
var o;
|
737
737
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
738
738
|
if (r !== void 0 && i.reflect === !0) {
|
739
|
-
const
|
740
|
-
this._$Em = t,
|
739
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : X).toAttribute(e, i.type);
|
740
|
+
this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
743
743
|
_$AK(t, e) {
|
744
|
-
var
|
744
|
+
var o;
|
745
745
|
const i = this.constructor, r = i._$Eh.get(t);
|
746
746
|
if (r !== void 0 && this._$Em !== r) {
|
747
|
-
const
|
748
|
-
this._$Em = r, this[r] = a.fromAttribute(e,
|
747
|
+
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 : X;
|
748
|
+
this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
751
751
|
requestUpdate(t, e, i) {
|
@@ -778,21 +778,21 @@ let T = class extends HTMLElement {
|
|
778
778
|
return;
|
779
779
|
if (!this.hasUpdated) {
|
780
780
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
781
|
-
for (const [
|
782
|
-
this[
|
781
|
+
for (const [o, n] of this._$Ep)
|
782
|
+
this[o] = n;
|
783
783
|
this._$Ep = void 0;
|
784
784
|
}
|
785
785
|
const r = this.constructor.elementProperties;
|
786
786
|
if (r.size > 0)
|
787
|
-
for (const [
|
788
|
-
|
787
|
+
for (const [o, n] of r)
|
788
|
+
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
789
789
|
}
|
790
790
|
let t = !1;
|
791
791
|
const e = this._$AL;
|
792
792
|
try {
|
793
793
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
794
|
-
var
|
795
|
-
return (
|
794
|
+
var o;
|
795
|
+
return (o = r.hostUpdate) == null ? void 0 : o.call(r);
|
796
796
|
}), this.update(e)) : this._$EU();
|
797
797
|
} catch (r) {
|
798
798
|
throw t = !1, this._$EU(), r;
|
@@ -828,84 +828,84 @@ let T = class extends HTMLElement {
|
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
};
|
831
|
-
|
831
|
+
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[M("elementProperties")] = /* @__PURE__ */ new Map(), I[M("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: I }), (C.reactiveElementVersions ?? (C.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]`,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Dt = /'/g, zt = /"/g, le = /^(?:script|style|textarea|title)$/i, We = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }),
|
840
|
-
function
|
837
|
+
const H = globalThis, Q = H.trustedTypes, Ht = Q ? Q.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, ae = "$lit$", x = `lit$${(Math.random() + "").slice(9)}$`, ce = "?" + x, De = `<${ce}>`, O = document, B = () => O.createComment(""), D = (s) => s === null || typeof s != "object" && typeof s != "function", he = Array.isArray, ze = (s) => he(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ht = `[
|
838
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Bt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Dt = /'/g, zt = /"/g, le = /^(?:script|style|textarea|title)$/i, We = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), R = We(1), T = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Wt = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
|
840
|
+
function de(s, t) {
|
841
841
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
843
|
return Ht !== void 0 ? Ht.createHTML(t) : t;
|
844
844
|
}
|
845
845
|
const Fe = (s, t) => {
|
846
846
|
const e = s.length - 1, i = [];
|
847
|
-
let r,
|
847
|
+
let r, o = t === 2 ? "<svg>" : "", n = j;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
849
|
const c = s[a];
|
850
|
-
let h, l,
|
851
|
-
for (; f < c.length && (
|
852
|
-
f =
|
853
|
-
const u =
|
854
|
-
|
850
|
+
let h, l, d = -1, f = 0;
|
851
|
+
for (; f < c.length && (n.lastIndex = f, l = n.exec(c), l !== null); )
|
852
|
+
f = n.lastIndex, n === j ? l[1] === "!--" ? n = Lt : l[1] !== void 0 ? n = Bt : l[2] !== void 0 ? (le.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = S) : l[3] !== void 0 && (n = S) : n === S ? l[0] === ">" ? (n = r ?? j, d = -1) : l[1] === void 0 ? d = -2 : (d = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? S : l[3] === '"' ? zt : Dt) : n === zt || n === Dt ? n = S : n === Lt || n === Bt ? n = j : (n = S, r = void 0);
|
853
|
+
const u = n === S && s[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
o += n === j ? c + De : d >= 0 ? (i.push(h), c.slice(0, d) + ae + c.slice(d) + x + u) : c + x + (d === -2 ? a : u);
|
855
855
|
}
|
856
|
-
return [
|
856
|
+
return [de(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
857
857
|
};
|
858
|
-
class
|
858
|
+
class z {
|
859
859
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
860
|
let r;
|
861
861
|
this.parts = [];
|
862
|
-
let
|
862
|
+
let o = 0, n = 0;
|
863
863
|
const a = t.length - 1, c = this.parts, [h, l] = Fe(t, e);
|
864
|
-
if (this.el =
|
865
|
-
const
|
866
|
-
|
864
|
+
if (this.el = z.createElement(h, i), P.currentNode = this.el.content, e === 2) {
|
865
|
+
const d = this.el.content.firstChild;
|
866
|
+
d.replaceWith(...d.childNodes);
|
867
867
|
}
|
868
|
-
for (; (r =
|
868
|
+
for (; (r = P.nextNode()) !== null && c.length < a; ) {
|
869
869
|
if (r.nodeType === 1) {
|
870
870
|
if (r.hasAttributes())
|
871
|
-
for (const
|
872
|
-
if (
|
873
|
-
const f = l[
|
874
|
-
c.push({ type: 1, index:
|
871
|
+
for (const d of r.getAttributeNames())
|
872
|
+
if (d.endsWith(ae)) {
|
873
|
+
const f = l[n++], u = r.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(f);
|
874
|
+
c.push({ type: 1, index: o, name: g[2], strings: u, ctor: g[1] === "." ? Ye : g[1] === "?" ? qe : g[1] === "@" ? Ke : st }), r.removeAttribute(d);
|
875
875
|
} else
|
876
|
-
|
876
|
+
d.startsWith(x) && (c.push({ type: 6, index: o }), r.removeAttribute(d));
|
877
877
|
if (le.test(r.tagName)) {
|
878
|
-
const
|
878
|
+
const d = r.textContent.split(x), f = d.length - 1;
|
879
879
|
if (f > 0) {
|
880
880
|
r.textContent = Q ? Q.emptyScript : "";
|
881
881
|
for (let u = 0; u < f; u++)
|
882
|
-
r.append(
|
883
|
-
r.append(
|
882
|
+
r.append(d[u], B()), P.nextNode(), c.push({ type: 2, index: ++o });
|
883
|
+
r.append(d[f], B());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (r.nodeType === 8)
|
887
887
|
if (r.data === ce)
|
888
|
-
c.push({ type: 2, index:
|
888
|
+
c.push({ type: 2, index: o });
|
889
889
|
else {
|
890
|
-
let
|
891
|
-
for (; (
|
892
|
-
c.push({ type: 7, index:
|
890
|
+
let d = -1;
|
891
|
+
for (; (d = r.data.indexOf(x, d + 1)) !== -1; )
|
892
|
+
c.push({ type: 7, index: o }), d += x.length - 1;
|
893
893
|
}
|
894
|
-
|
894
|
+
o++;
|
895
895
|
}
|
896
896
|
}
|
897
897
|
static createElement(t, e) {
|
898
|
-
const i =
|
898
|
+
const i = O.createElement("template");
|
899
899
|
return i.innerHTML = t, i;
|
900
900
|
}
|
901
901
|
}
|
902
|
-
function
|
903
|
-
var
|
904
|
-
if (t ===
|
902
|
+
function k(s, t, e = s, i) {
|
903
|
+
var n, a;
|
904
|
+
if (t === T)
|
905
905
|
return t;
|
906
|
-
let r = i !== void 0 ? (
|
907
|
-
const
|
908
|
-
return (r == null ? void 0 : r.constructor) !==
|
906
|
+
let r = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
907
|
+
const o = D(t) ? void 0 : t._$litDirective$;
|
908
|
+
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 = k(s, r._$AS(s, t.values), r, i)), t;
|
909
909
|
}
|
910
910
|
class Ve {
|
911
911
|
constructor(t, e) {
|
@@ -918,17 +918,17 @@ class Ve {
|
|
918
918
|
return this._$AM._$AU;
|
919
919
|
}
|
920
920
|
u(t) {
|
921
|
-
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
922
|
-
|
923
|
-
let
|
921
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
|
922
|
+
P.currentNode = r;
|
923
|
+
let o = P.nextNode(), n = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
|
-
if (
|
925
|
+
if (n === c.index) {
|
926
926
|
let h;
|
927
|
-
c.type === 2 ? h = new
|
927
|
+
c.type === 2 ? h = new F(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new Ze(o, this, t)), this._$AV.push(h), c = i[++a];
|
928
928
|
}
|
929
|
-
|
929
|
+
n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
|
930
930
|
}
|
931
|
-
return
|
931
|
+
return P.currentNode = O, r;
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
@@ -936,13 +936,13 @@ class Ve {
|
|
936
936
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
937
937
|
}
|
938
938
|
}
|
939
|
-
class
|
939
|
+
class F {
|
940
940
|
get _$AU() {
|
941
941
|
var t;
|
942
942
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
943
943
|
}
|
944
944
|
constructor(t, e, i, r) {
|
945
|
-
this.type = 2, this._$AH =
|
945
|
+
this.type = 2, this._$AH = p, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
946
946
|
}
|
947
947
|
get parentNode() {
|
948
948
|
let t = this._$AA.parentNode;
|
@@ -956,7 +956,7 @@ class W {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t =
|
959
|
+
t = k(this, t, e), D(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : ze(t) ? this.k(t) : this._(t);
|
960
960
|
}
|
961
961
|
S(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -965,28 +965,28 @@ class W {
|
|
965
965
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
|
-
this._$AH !==
|
968
|
+
this._$AH !== p && D(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
$(t) {
|
971
|
-
var
|
972
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
973
|
-
if (((
|
971
|
+
var o;
|
972
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = z.createElement(de(i.h, i.h[0]), this.options)), i);
|
973
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === r)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
|
-
const
|
977
|
-
|
976
|
+
const n = new Ve(r, this), a = n.u(this.options);
|
977
|
+
n.p(e), this.T(a), this._$AH = n;
|
978
978
|
}
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
981
981
|
let e = Wt.get(t.strings);
|
982
|
-
return e === void 0 && Wt.set(t.strings, e = new
|
982
|
+
return e === void 0 && Wt.set(t.strings, e = new z(t)), e;
|
983
983
|
}
|
984
984
|
k(t) {
|
985
985
|
he(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
987
|
let i, r = 0;
|
988
|
-
for (const
|
989
|
-
r === e.length ? e.push(i = new
|
988
|
+
for (const o of t)
|
989
|
+
r === e.length ? e.push(i = new F(this.S(B()), this.S(B()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
990
990
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
991
991
|
}
|
992
992
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -1008,24 +1008,24 @@ class st {
|
|
1008
1008
|
get _$AU() {
|
1009
1009
|
return this._$AM._$AU;
|
1010
1010
|
}
|
1011
|
-
constructor(t, e, i, r,
|
1012
|
-
this.type = 1, this._$AH =
|
1011
|
+
constructor(t, e, i, r, o) {
|
1012
|
+
this.type = 1, this._$AH = p, 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 = p;
|
1013
1013
|
}
|
1014
1014
|
_$AI(t, e = this, i, r) {
|
1015
|
-
const
|
1016
|
-
let
|
1017
|
-
if (
|
1018
|
-
t =
|
1015
|
+
const o = this.strings;
|
1016
|
+
let n = !1;
|
1017
|
+
if (o === void 0)
|
1018
|
+
t = k(this, t, e, 0), n = !D(t) || t !== this._$AH && t !== T, n && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
1021
|
let c, h;
|
1022
|
-
for (t =
|
1023
|
-
h =
|
1022
|
+
for (t = o[0], c = 0; c < o.length - 1; c++)
|
1023
|
+
h = k(this, a[i + c], e, c), h === T && (h = this._$AH[c]), n || (n = !D(h) || h !== this._$AH[c]), h === p ? t = p : t !== p && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
1024
1024
|
}
|
1025
|
-
|
1025
|
+
n && !r && this.j(t);
|
1026
1026
|
}
|
1027
1027
|
j(t) {
|
1028
|
-
t ===
|
1028
|
+
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
1031
|
class Ye extends st {
|
@@ -1033,7 +1033,7 @@ class Ye extends st {
|
|
1033
1033
|
super(...arguments), this.type = 3;
|
1034
1034
|
}
|
1035
1035
|
j(t) {
|
1036
|
-
this.element[this.name] = t ===
|
1036
|
+
this.element[this.name] = t === p ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
1039
|
class qe extends st {
|
@@ -1041,25 +1041,25 @@ class qe extends st {
|
|
1041
1041
|
super(...arguments), this.type = 4;
|
1042
1042
|
}
|
1043
1043
|
j(t) {
|
1044
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
1044
|
+
this.element.toggleAttribute(this.name, !!t && t !== p);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
1047
|
class Ke extends st {
|
1048
|
-
constructor(t, e, i, r,
|
1049
|
-
super(t, e, i, r,
|
1048
|
+
constructor(t, e, i, r, o) {
|
1049
|
+
super(t, e, i, r, o), this.type = 5;
|
1050
1050
|
}
|
1051
1051
|
_$AI(t, e = this) {
|
1052
|
-
if ((t =
|
1052
|
+
if ((t = k(this, t, e, 0) ?? p) === T)
|
1053
1053
|
return;
|
1054
|
-
const i = this._$AH, r = t ===
|
1055
|
-
r && this.element.removeEventListener(this.name, this, i),
|
1054
|
+
const i = this._$AH, r = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== p && (i === p || r);
|
1055
|
+
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
1056
1056
|
}
|
1057
1057
|
handleEvent(t) {
|
1058
1058
|
var e;
|
1059
1059
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1060
1060
|
}
|
1061
1061
|
}
|
1062
|
-
class
|
1062
|
+
class Ze {
|
1063
1063
|
constructor(t, e, i) {
|
1064
1064
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
1065
1065
|
}
|
@@ -1067,17 +1067,17 @@ class Ge {
|
|
1067
1067
|
return this._$AM._$AU;
|
1068
1068
|
}
|
1069
1069
|
_$AI(t) {
|
1070
|
-
|
1070
|
+
k(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const lt =
|
1074
|
-
lt == null || lt(
|
1075
|
-
const
|
1073
|
+
const lt = H.litHtmlPolyfillSupport;
|
1074
|
+
lt == null || lt(z, F), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.1.2");
|
1075
|
+
const Ge = (s, t, e) => {
|
1076
1076
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1077
1077
|
let r = i._$litPart$;
|
1078
1078
|
if (r === void 0) {
|
1079
|
-
const
|
1080
|
-
i._$litPart$ = r = new
|
1079
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
+
i._$litPart$ = r = new F(t.insertBefore(B(), o), o, void 0, e ?? {});
|
1081
1081
|
}
|
1082
1082
|
return r._$AI(s), r;
|
1083
1083
|
};
|
@@ -1086,7 +1086,7 @@ const Ze = (s, t, e) => {
|
|
1086
1086
|
* Copyright 2017 Google LLC
|
1087
1087
|
* SPDX-License-Identifier: BSD-3-Clause
|
1088
1088
|
*/
|
1089
|
-
let
|
1089
|
+
let _ = class extends I {
|
1090
1090
|
constructor() {
|
1091
1091
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1092
1092
|
}
|
@@ -1097,7 +1097,7 @@ let w = class extends T {
|
|
1097
1097
|
}
|
1098
1098
|
update(t) {
|
1099
1099
|
const e = this.render();
|
1100
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1100
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Ge(e, this.renderRoot, this.renderOptions);
|
1101
1101
|
}
|
1102
1102
|
connectedCallback() {
|
1103
1103
|
var t;
|
@@ -1108,13 +1108,13 @@ let w = class extends T {
|
|
1108
1108
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
1109
1109
|
}
|
1110
1110
|
render() {
|
1111
|
-
return
|
1111
|
+
return T;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
1114
|
var Xt;
|
1115
|
-
|
1116
|
-
const
|
1117
|
-
|
1115
|
+
_._$litElement$ = !0, _.finalized = !0, (Xt = globalThis.litElementHydrateSupport) == null || Xt.call(globalThis, { LitElement: _ });
|
1116
|
+
const dt = globalThis.litElementPolyfillSupport;
|
1117
|
+
dt == null || dt({ LitElement: _ });
|
1118
1118
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
1119
1119
|
/**
|
1120
1120
|
* @license
|
@@ -1123,29 +1123,29 @@ pt == null || pt({ LitElement: w });
|
|
1123
1123
|
*/
|
1124
1124
|
const Je = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged: At }, Xe = (s = Je, t, e) => {
|
1125
1125
|
const { kind: i, metadata: r } = e;
|
1126
|
-
let
|
1127
|
-
if (
|
1128
|
-
const { name:
|
1126
|
+
let o = globalThis.litPropertyMetadata.get(r);
|
1127
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
1128
|
+
const { name: n } = e;
|
1129
1129
|
return { set(a) {
|
1130
1130
|
const c = t.get.call(this);
|
1131
|
-
t.set.call(this, a), this.requestUpdate(
|
1131
|
+
t.set.call(this, a), this.requestUpdate(n, c, s);
|
1132
1132
|
}, init(a) {
|
1133
|
-
return a !== void 0 && this.P(
|
1133
|
+
return a !== void 0 && this.P(n, void 0, s), a;
|
1134
1134
|
} };
|
1135
1135
|
}
|
1136
1136
|
if (i === "setter") {
|
1137
|
-
const { name:
|
1137
|
+
const { name: n } = e;
|
1138
1138
|
return function(a) {
|
1139
|
-
const c = this[
|
1140
|
-
t.call(this, a), this.requestUpdate(
|
1139
|
+
const c = this[n];
|
1140
|
+
t.call(this, a), this.requestUpdate(n, c, s);
|
1141
1141
|
};
|
1142
1142
|
}
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
1145
|
function m(s) {
|
1146
|
-
return (t, e) => typeof e == "object" ? Xe(s, t, e) : ((i, r,
|
1147
|
-
const
|
1148
|
-
return r.constructor.createProperty(
|
1146
|
+
return (t, e) => typeof e == "object" ? Xe(s, t, e) : ((i, r, o) => {
|
1147
|
+
const n = r.hasOwnProperty(o);
|
1148
|
+
return r.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
1149
1149
|
})(s, t, e);
|
1150
1150
|
}
|
1151
1151
|
/**
|
@@ -1153,15 +1153,15 @@ function m(s) {
|
|
1153
1153
|
* Copyright 2017 Google LLC
|
1154
1154
|
* SPDX-License-Identifier: BSD-3-Clause
|
1155
1155
|
*/
|
1156
|
-
function
|
1156
|
+
function U(s) {
|
1157
1157
|
return m({ ...s, state: !0, attribute: !1 });
|
1158
1158
|
}
|
1159
1159
|
var Qe = Object.defineProperty, ti = Object.getOwnPropertyDescriptor, ei = (s, t, e, i) => {
|
1160
|
-
for (var r = i > 1 ? void 0 : i ? ti(t, e) : t,
|
1161
|
-
(
|
1160
|
+
for (var r = i > 1 ? void 0 : i ? ti(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1161
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1162
1162
|
return i && r && Qe(t, e, r), r;
|
1163
1163
|
};
|
1164
|
-
class rt extends
|
1164
|
+
class rt extends _ {
|
1165
1165
|
constructor() {
|
1166
1166
|
super(...arguments), this.anchor = "BottomRight";
|
1167
1167
|
}
|
@@ -1170,11 +1170,11 @@ class rt extends w {
|
|
1170
1170
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1171
1171
|
}
|
1172
1172
|
render() {
|
1173
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
1173
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
|
1174
1174
|
}
|
1175
1175
|
}
|
1176
1176
|
rt.styles = [
|
1177
|
-
|
1177
|
+
N`
|
1178
1178
|
:host {
|
1179
1179
|
position: fixed;
|
1180
1180
|
display: flex;
|
@@ -1201,7 +1201,7 @@ ei([
|
|
1201
1201
|
* SPDX-License-Identifier: BSD-3-Clause
|
1202
1202
|
*/
|
1203
1203
|
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1204
|
-
let
|
1204
|
+
let pe = class {
|
1205
1205
|
constructor(t) {
|
1206
1206
|
}
|
1207
1207
|
get _$AU() {
|
@@ -1228,13 +1228,13 @@ const ii = (s) => s.strings === void 0;
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const
|
1231
|
+
const L = (s, t) => {
|
1232
1232
|
var i;
|
1233
1233
|
const e = s._$AN;
|
1234
1234
|
if (e === void 0)
|
1235
1235
|
return !1;
|
1236
1236
|
for (const r of e)
|
1237
|
-
(i = r._$AO) == null || i.call(r, t, !1),
|
1237
|
+
(i = r._$AO) == null || i.call(r, t, !1), L(r, t);
|
1238
1238
|
return !0;
|
1239
1239
|
}, tt = (s) => {
|
1240
1240
|
let t, e;
|
@@ -1250,7 +1250,7 @@ const H = (s, t) => {
|
|
1250
1250
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1251
1251
|
else if (e.has(s))
|
1252
1252
|
break;
|
1253
|
-
e.add(s),
|
1253
|
+
e.add(s), oi(t);
|
1254
1254
|
}
|
1255
1255
|
};
|
1256
1256
|
function si(s) {
|
@@ -1261,17 +1261,17 @@ function ri(s, t = !1, e = 0) {
|
|
1261
1261
|
if (r !== void 0 && r.size !== 0)
|
1262
1262
|
if (t)
|
1263
1263
|
if (Array.isArray(i))
|
1264
|
-
for (let
|
1265
|
-
|
1264
|
+
for (let o = e; o < i.length; o++)
|
1265
|
+
L(i[o], !1), tt(i[o]);
|
1266
1266
|
else
|
1267
|
-
i != null && (
|
1267
|
+
i != null && (L(i, !1), tt(i));
|
1268
1268
|
else
|
1269
|
-
|
1269
|
+
L(this, s);
|
1270
1270
|
}
|
1271
|
-
const
|
1271
|
+
const oi = (s) => {
|
1272
1272
|
s.type == xt.CHILD && (s._$AP ?? (s._$AP = ri), s._$AQ ?? (s._$AQ = si));
|
1273
1273
|
};
|
1274
|
-
class fe extends
|
1274
|
+
class fe extends pe {
|
1275
1275
|
constructor() {
|
1276
1276
|
super(...arguments), this._$AN = void 0;
|
1277
1277
|
}
|
@@ -1280,7 +1280,7 @@ class fe extends de {
|
|
1280
1280
|
}
|
1281
1281
|
_$AO(t, e = !0) {
|
1282
1282
|
var i, r;
|
1283
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (
|
1283
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (L(this, t), tt(this));
|
1284
1284
|
}
|
1285
1285
|
setValue(t) {
|
1286
1286
|
if (ii(this._$Ct))
|
@@ -1295,9 +1295,9 @@ class fe extends de {
|
|
1295
1295
|
reconnected() {
|
1296
1296
|
}
|
1297
1297
|
}
|
1298
|
-
const
|
1298
|
+
const ni = /* @__PURE__ */ new WeakMap();
|
1299
1299
|
let Ft = 0;
|
1300
|
-
const
|
1300
|
+
const pt = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new WeakSet(), Yt = () => new Promise((s) => requestAnimationFrame(s)), ai = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], qt = (s, t) => {
|
1301
1301
|
const e = s - t;
|
1302
1302
|
return e === 0 ? void 0 : e;
|
1303
1303
|
}, Kt = (s, t) => {
|
@@ -1319,7 +1319,7 @@ const dt = /* @__PURE__ */ new Map(), Vt = /* @__PURE__ */ new WeakSet(), Yt = (
|
|
1319
1319
|
t === 0 && (t = 1, e = { height: "1px" });
|
1320
1320
|
const i = Kt(s, t);
|
1321
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
|
-
} }, ci = { duration: 333, easing: "ease-in-out" }, hi = ["left", "top", "width", "height", "opacity", "color", "background"],
|
1322
|
+
} }, ci = { duration: 333, easing: "ease-in-out" }, hi = ["left", "top", "width", "height", "opacity", "color", "background"], Zt = /* @__PURE__ */ new WeakMap();
|
1323
1323
|
class li extends fe {
|
1324
1324
|
constructor(t) {
|
1325
1325
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === xt.CHILD)
|
@@ -1337,10 +1337,10 @@ class li extends fe {
|
|
1337
1337
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
1338
1338
|
}
|
1339
1339
|
render(t) {
|
1340
|
-
return
|
1340
|
+
return p;
|
1341
1341
|
}
|
1342
1342
|
getController() {
|
1343
|
-
return
|
1343
|
+
return ni.get(this.u);
|
1344
1344
|
}
|
1345
1345
|
isDisabled() {
|
1346
1346
|
var t;
|
@@ -1349,7 +1349,7 @@ class li extends fe {
|
|
1349
1349
|
update(t, [e]) {
|
1350
1350
|
var r;
|
1351
1351
|
const i = this.u === void 0;
|
1352
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((
|
1352
|
+
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, Zt.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 ?? {};
|
@@ -1359,15 +1359,15 @@ class li extends fe {
|
|
1359
1359
|
m() {
|
1360
1360
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1361
1361
|
return this.options.properties.forEach((r) => {
|
1362
|
-
const
|
1363
|
-
t[r] = isNaN(
|
1362
|
+
const o = e[r] ?? (ut[r] ? void 0 : i[r]), n = Number(o);
|
1363
|
+
t[r] = isNaN(n) ? o + "" : n;
|
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, r) => {
|
1369
1369
|
if (Array.isArray(i)) {
|
1370
|
-
if (Array.isArray(r) && r.length === i.length && i.every((
|
1370
|
+
if (Array.isArray(r) && r.length === i.length && i.every((o, n) => o === r[n]))
|
1371
1371
|
return !1;
|
1372
1372
|
} else if (r === i)
|
1373
1373
|
return !1;
|
@@ -1384,14 +1384,14 @@ class li extends fe {
|
|
1384
1384
|
this.prepare(), await Yt;
|
1385
1385
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1386
1386
|
if (this.A !== void 0) {
|
1387
|
-
const { from:
|
1388
|
-
this.log("measured", [this.A, r,
|
1387
|
+
const { from: o, to: n } = this.N(this.A, r, e);
|
1388
|
+
this.log("measured", [this.A, r, o, n]), t = this.calculateKeyframes(o, n);
|
1389
1389
|
} else {
|
1390
|
-
const
|
1391
|
-
if (
|
1392
|
-
|
1393
|
-
const { from:
|
1394
|
-
t = this.calculateKeyframes(
|
1390
|
+
const o = pt.get(this.options.inId);
|
1391
|
+
if (o) {
|
1392
|
+
pt.delete(this.options.inId);
|
1393
|
+
const { from: n, to: a } = this.N(o, r, e);
|
1394
|
+
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Ft++, t.forEach((c) => c.zIndex = Ft);
|
1395
1395
|
} else
|
1396
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
1397
1397
|
}
|
@@ -1408,15 +1408,15 @@ class li extends fe {
|
|
1408
1408
|
}
|
1409
1409
|
async disconnected() {
|
1410
1410
|
var e;
|
1411
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1411
|
+
if (!this.h || (this.options.id !== void 0 && pt.set(this.options.id, this.A), this.options.out === void 0))
|
1412
1412
|
return;
|
1413
1413
|
if (this.prepare(), await Yt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1414
1414
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1415
1415
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1416
1416
|
const r = this.m();
|
1417
1417
|
this.log("stabilizing out");
|
1418
|
-
const
|
1419
|
-
getComputedStyle(this.element).position !== "static" ||
|
1418
|
+
const o = this.A.left - r.left, n = this.A.top - r.top;
|
1419
|
+
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");
|
1420
1420
|
}
|
1421
1421
|
}
|
1422
1422
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1436,7 +1436,7 @@ class li extends fe {
|
|
1436
1436
|
O() {
|
1437
1437
|
const t = [];
|
1438
1438
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1439
|
-
const i =
|
1439
|
+
const i = Zt.get(e);
|
1440
1440
|
i && !i.isDisabled() && i && t.push(i);
|
1441
1441
|
}
|
1442
1442
|
return t;
|
@@ -1454,27 +1454,27 @@ class li extends fe {
|
|
1454
1454
|
N(t, e, i) {
|
1455
1455
|
t = { ...t }, e = { ...e };
|
1456
1456
|
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1457
|
-
let
|
1457
|
+
let o = 1, n = 1;
|
1458
1458
|
return r.length > 0 && (r.forEach((a) => {
|
1459
|
-
a.width && (
|
1460
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1459
|
+
a.width && (o /= a.width), a.height && (n /= a.height);
|
1460
|
+
}), 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 };
|
1461
1461
|
}
|
1462
1462
|
calculateKeyframes(t, e, i = !1) {
|
1463
|
-
const r = {},
|
1464
|
-
let
|
1463
|
+
const r = {}, o = {};
|
1464
|
+
let n = !1;
|
1465
1465
|
const a = {};
|
1466
1466
|
for (const c in e) {
|
1467
1467
|
const h = t[c], l = e[c];
|
1468
1468
|
if (c in ut) {
|
1469
|
-
const
|
1469
|
+
const d = ut[c];
|
1470
1470
|
if (h === void 0 || l === void 0)
|
1471
1471
|
continue;
|
1472
|
-
const f =
|
1473
|
-
f.transform !== void 0 && (a[c] = f.value,
|
1472
|
+
const f = d(h, l);
|
1473
|
+
f.transform !== void 0 && (a[c] = f.value, n = !0, r.transform = `${r.transform ?? ""} ${f.transform}`, f.overrideFrom !== void 0 && Object.assign(r, f.overrideFrom));
|
1474
1474
|
} else
|
1475
|
-
h !== l && h !== void 0 && l !== void 0 && (
|
1475
|
+
h !== l && h !== void 0 && l !== void 0 && (n = !0, r[c] = h, o[c] = l);
|
1476
1476
|
}
|
1477
|
-
return r.transformOrigin =
|
1477
|
+
return r.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [r, o] : void 0;
|
1478
1478
|
}
|
1479
1479
|
async animate(t, e = this.options.keyframeOptions) {
|
1480
1480
|
this.start(), this.frames = t;
|
@@ -1499,13 +1499,13 @@ class li extends fe {
|
|
1499
1499
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1500
1500
|
}
|
1501
1501
|
}
|
1502
|
-
const
|
1502
|
+
const di = Ct(li), pi = { 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 Gt = Ct(class extends pe {
|
1509
1509
|
constructor(s) {
|
1510
1510
|
var t;
|
1511
1511
|
if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
@@ -1517,37 +1517,53 @@ const Zt = Ct(class extends de {
|
|
1517
1517
|
update(s, [t]) {
|
1518
1518
|
var i, r;
|
1519
1519
|
if (this.st === void 0) {
|
1520
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
1521
|
-
for (const
|
1522
|
-
t[
|
1520
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
1521
|
+
for (const o in t)
|
1522
|
+
t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
1523
1523
|
return this.render(t);
|
1524
1524
|
}
|
1525
1525
|
const e = s.element.classList;
|
1526
|
-
for (const
|
1527
|
-
|
1528
|
-
for (const
|
1529
|
-
const
|
1530
|
-
|
1526
|
+
for (const o of this.st)
|
1527
|
+
o in t || (e.remove(o), this.st.delete(o));
|
1528
|
+
for (const o in t) {
|
1529
|
+
const n = !!t[o];
|
1530
|
+
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)));
|
1531
1531
|
}
|
1532
|
-
return
|
1532
|
+
return T;
|
1533
1533
|
}
|
1534
|
-
}),
|
1534
|
+
}), b = (s, t, e) => {
|
1535
1535
|
s && e.style.setProperty(t, s);
|
1536
1536
|
}, ge = (s, t) => {
|
1537
|
-
var e, i, r, n;
|
1538
|
-
|
1537
|
+
var e, i, r, o, n, a, c, h, l;
|
1538
|
+
b((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), b(
|
1539
1539
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1540
1540
|
"--text-on-primary-background",
|
1541
1541
|
t
|
1542
|
-
),
|
1542
|
+
), b(
|
1543
1543
|
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
1544
1544
|
"--secondary-background",
|
1545
1545
|
t
|
1546
|
-
),
|
1547
|
-
(
|
1546
|
+
), b(
|
1547
|
+
(o = s.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
1548
1548
|
"--text-on-secondary-background",
|
1549
1549
|
t
|
1550
|
-
)
|
1550
|
+
), b(
|
1551
|
+
(n = s.colors) == null ? void 0 : n.interactiveDestructiveBackground,
|
1552
|
+
"--destructive-color",
|
1553
|
+
t
|
1554
|
+
), b(
|
1555
|
+
(a = s.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
1556
|
+
"--text-on-destructive-color",
|
1557
|
+
t
|
1558
|
+
), b(
|
1559
|
+
(c = s.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
1560
|
+
"--interactive-primary-background",
|
1561
|
+
t
|
1562
|
+
), b(
|
1563
|
+
(h = s.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
1564
|
+
"--interactive-text-on-primary-background",
|
1565
|
+
t
|
1566
|
+
), b((l = s.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
1551
1567
|
};
|
1552
1568
|
/**
|
1553
1569
|
* @license
|
@@ -1559,12 +1575,12 @@ class ui {
|
|
1559
1575
|
}
|
1560
1576
|
const ft = /* @__PURE__ */ new WeakMap(), ve = Ct(class extends fe {
|
1561
1577
|
render(s) {
|
1562
|
-
return
|
1578
|
+
return p;
|
1563
1579
|
}
|
1564
1580
|
update(s, [t]) {
|
1565
1581
|
var i;
|
1566
1582
|
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 = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)),
|
1583
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), p;
|
1568
1584
|
}
|
1569
1585
|
rt(s) {
|
1570
1586
|
if (typeof this.Y == "function") {
|
@@ -1585,12 +1601,12 @@ const ft = /* @__PURE__ */ new WeakMap(), ve = Ct(class extends fe {
|
|
1585
1601
|
this.rt(this.ct);
|
1586
1602
|
}
|
1587
1603
|
});
|
1588
|
-
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor,
|
1589
|
-
for (var r = i > 1 ? void 0 : i ? gi(t, e) : t,
|
1590
|
-
(
|
1604
|
+
var fi = Object.defineProperty, gi = Object.getOwnPropertyDescriptor, V = (s, t, e, i) => {
|
1605
|
+
for (var r = i > 1 ? void 0 : i ? gi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1606
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1591
1607
|
return i && r && fi(t, e, r), r;
|
1592
1608
|
};
|
1593
|
-
class
|
1609
|
+
class A extends _ {
|
1594
1610
|
constructor() {
|
1595
1611
|
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = me(), this.widgetActive$ = new re(!1), this.componentIsDestroyed$ = new $t();
|
1596
1612
|
}
|
@@ -1618,22 +1634,22 @@ class _ extends w {
|
|
1618
1634
|
var a, c, h;
|
1619
1635
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1620
1636
|
if (e)
|
1621
|
-
return
|
1637
|
+
return R` <img src=${e} class="trigger-icon" alt="" /> `;
|
1622
1638
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1623
1639
|
if (!i)
|
1624
|
-
return
|
1625
|
-
const r = async (l) =>
|
1626
|
-
switch (
|
1640
|
+
return p;
|
1641
|
+
const r = async (l) => pi, { type: o, content: n } = i;
|
1642
|
+
switch (o) {
|
1627
1643
|
case "Telia": {
|
1628
1644
|
const l = await r();
|
1629
|
-
return l ?
|
1645
|
+
return l ? R`<telia-icon
|
1630
1646
|
class="trigger-icon"
|
1631
1647
|
svg=${l.svg}
|
1632
1648
|
size="lg"
|
1633
|
-
></telia-icon>` :
|
1649
|
+
></telia-icon>` : p;
|
1634
1650
|
}
|
1635
1651
|
default:
|
1636
|
-
return
|
1652
|
+
return p;
|
1637
1653
|
}
|
1638
1654
|
}
|
1639
1655
|
hideTrigger() {
|
@@ -1644,19 +1660,19 @@ class _ extends w {
|
|
1644
1660
|
}
|
1645
1661
|
render() {
|
1646
1662
|
var t, e, i, r;
|
1647
|
-
return
|
1648
|
-
class=${
|
1663
|
+
return R`<div
|
1664
|
+
class=${Gt({
|
1649
1665
|
"trigger-container": !0,
|
1650
1666
|
hidden: !this.triggerVisible
|
1651
1667
|
})}
|
1652
1668
|
${ve(this.containerRef)}
|
1653
1669
|
>
|
1654
|
-
${!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) ?
|
1670
|
+
${!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) ? R`
|
1655
1671
|
<button
|
1656
1672
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1657
1673
|
class="trigger-label"
|
1658
1674
|
@click=${this.toggleActive}
|
1659
|
-
${
|
1675
|
+
${di({
|
1660
1676
|
keyframeOptions: {},
|
1661
1677
|
in: ai,
|
1662
1678
|
stabilizeOut: !0,
|
@@ -1665,11 +1681,11 @@ class _ extends w {
|
|
1665
1681
|
>
|
1666
1682
|
${this.application.settings.branding.other.buttonLabelText}
|
1667
1683
|
</button>
|
1668
|
-
` :
|
1684
|
+
` : p}
|
1669
1685
|
|
1670
1686
|
<button
|
1671
1687
|
label="Widget trigger"
|
1672
|
-
class=${
|
1688
|
+
class=${Gt({
|
1673
1689
|
trigger: !0,
|
1674
1690
|
active: this.active,
|
1675
1691
|
rendered: this.loaded
|
@@ -1708,23 +1724,27 @@ class _ extends w {
|
|
1708
1724
|
</div>`;
|
1709
1725
|
}
|
1710
1726
|
}
|
1711
|
-
|
1712
|
-
|
1727
|
+
A.styles = [
|
1728
|
+
N`
|
1713
1729
|
:host {
|
1714
1730
|
--voca-rem-multiplier: 0.625;
|
1715
1731
|
--trigger-label-bg: #f5e0ff;
|
1716
1732
|
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
1717
1733
|
display: block;
|
1718
1734
|
box-sizing: border-box;
|
1719
|
-
/* font-family: var(--font-family); */
|
1720
1735
|
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1721
1736
|
}
|
1722
1737
|
|
1738
|
+
:focus {
|
1739
|
+
outline-color: var(--focus-color);
|
1740
|
+
}
|
1741
|
+
|
1723
1742
|
.trigger-container {
|
1724
1743
|
display: flex;
|
1725
1744
|
align-items: center;
|
1726
1745
|
gap: 1rem;
|
1727
1746
|
}
|
1747
|
+
|
1728
1748
|
.trigger-container.hidden {
|
1729
1749
|
display: none;
|
1730
1750
|
}
|
@@ -1742,26 +1762,34 @@ _.styles = [
|
|
1742
1762
|
width: 55px;
|
1743
1763
|
border-radius: 55px;
|
1744
1764
|
cursor: pointer;
|
1745
|
-
background-color: var(
|
1765
|
+
background-color: var(
|
1766
|
+
--interactive-primary-background,
|
1767
|
+
var(--primary-background)
|
1768
|
+
);
|
1746
1769
|
font-family: Lato;
|
1747
1770
|
text-decoration: none;
|
1748
1771
|
border: 3px dashed transparent;
|
1749
1772
|
box-sizing: border-box;
|
1750
1773
|
transition: transform 200ms ease-out;
|
1751
1774
|
}
|
1775
|
+
|
1752
1776
|
.trigger:active {
|
1753
1777
|
transform: scale(0.8) !important;
|
1754
1778
|
}
|
1779
|
+
|
1755
1780
|
.trigger:hover:not(:active) {
|
1756
1781
|
transform: scale(1.1) !important;
|
1757
1782
|
}
|
1783
|
+
|
1758
1784
|
.trigger.rendered {
|
1759
1785
|
transform: scale(1);
|
1760
1786
|
}
|
1787
|
+
|
1761
1788
|
.trigger.active .trigger-icon {
|
1762
1789
|
opacity: 0;
|
1763
1790
|
transform: rotate(-180deg) scale(0);
|
1764
1791
|
}
|
1792
|
+
|
1765
1793
|
.trigger.active .trigger-close {
|
1766
1794
|
opacity: 1;
|
1767
1795
|
transform: rotate(0deg) scale(1);
|
@@ -1774,8 +1802,12 @@ _.styles = [
|
|
1774
1802
|
opacity: 1;
|
1775
1803
|
transform: rotate(0deg) scale(1);
|
1776
1804
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
1777
|
-
color: var(
|
1805
|
+
color: var(
|
1806
|
+
--interactive-text-on-primary-background,
|
1807
|
+
var(--text-on-primary-background)
|
1808
|
+
);
|
1778
1809
|
}
|
1810
|
+
|
1779
1811
|
.trigger-close {
|
1780
1812
|
opacity: 0;
|
1781
1813
|
transition: transform 200ms ease-out;
|
@@ -1789,8 +1821,12 @@ _.styles = [
|
|
1789
1821
|
justify-content: center;
|
1790
1822
|
align-items: center;
|
1791
1823
|
}
|
1824
|
+
|
1792
1825
|
.trigger-close svg path {
|
1793
|
-
fill: var(
|
1826
|
+
fill: var(
|
1827
|
+
--interactive-text-on-primary-background,
|
1828
|
+
var(--text-on-primary-background)
|
1829
|
+
);
|
1794
1830
|
}
|
1795
1831
|
|
1796
1832
|
img {
|
@@ -1799,8 +1835,8 @@ _.styles = [
|
|
1799
1835
|
|
1800
1836
|
.trigger-label {
|
1801
1837
|
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
1802
|
-
background-color: var(--
|
1803
|
-
color: var(--
|
1838
|
+
background-color: var(--secondary-background);
|
1839
|
+
color: var(--text-on-secondary-background);
|
1804
1840
|
white-space: nowrap;
|
1805
1841
|
padding: 0.7rem 1rem;
|
1806
1842
|
border-radius: 0.3rem;
|
@@ -1820,24 +1856,24 @@ _.styles = [
|
|
1820
1856
|
}
|
1821
1857
|
`
|
1822
1858
|
];
|
1823
|
-
|
1859
|
+
V([
|
1824
1860
|
m({ attribute: !1 })
|
1825
|
-
],
|
1826
|
-
|
1827
|
-
|
1828
|
-
],
|
1829
|
-
|
1830
|
-
|
1831
|
-
],
|
1832
|
-
|
1833
|
-
|
1834
|
-
],
|
1835
|
-
|
1836
|
-
|
1837
|
-
],
|
1838
|
-
var mi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor,
|
1839
|
-
for (var r = i > 1 ? void 0 : i ? vi(t, e) : t,
|
1840
|
-
(
|
1861
|
+
], A.prototype, "application", 2);
|
1862
|
+
V([
|
1863
|
+
U()
|
1864
|
+
], A.prototype, "active", 2);
|
1865
|
+
V([
|
1866
|
+
U()
|
1867
|
+
], A.prototype, "triggerVisible", 2);
|
1868
|
+
V([
|
1869
|
+
U()
|
1870
|
+
], A.prototype, "loaded", 2);
|
1871
|
+
V([
|
1872
|
+
U()
|
1873
|
+
], A.prototype, "icon", 2);
|
1874
|
+
var mi = Object.defineProperty, vi = Object.getOwnPropertyDescriptor, E = (s, t, e, i) => {
|
1875
|
+
for (var r = i > 1 ? void 0 : i ? vi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1876
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1841
1877
|
return i && r && mi(t, e, r), r;
|
1842
1878
|
};
|
1843
1879
|
const yi = (s) => {
|
@@ -1866,7 +1902,7 @@ const yi = (s) => {
|
|
1866
1902
|
}
|
1867
1903
|
return t.styles = [
|
1868
1904
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1869
|
-
|
1905
|
+
N`
|
1870
1906
|
:host {
|
1871
1907
|
font-family: var(--font-family);
|
1872
1908
|
grid-column: span var(--width);
|
@@ -1879,29 +1915,29 @@ const yi = (s) => {
|
|
1879
1915
|
box-sizing: border-box;
|
1880
1916
|
}
|
1881
1917
|
`
|
1882
|
-
],
|
1918
|
+
], E([
|
1883
1919
|
m()
|
1884
|
-
], t.prototype, "properties", 2),
|
1920
|
+
], t.prototype, "properties", 2), E([
|
1885
1921
|
m()
|
1886
|
-
], t.prototype, "context", 2),
|
1922
|
+
], t.prototype, "context", 2), E([
|
1887
1923
|
m()
|
1888
|
-
], t.prototype, "layout", 2),
|
1924
|
+
], t.prototype, "layout", 2), E([
|
1889
1925
|
m()
|
1890
|
-
], t.prototype, "name", 2),
|
1926
|
+
], t.prototype, "name", 2), E([
|
1891
1927
|
m()
|
1892
|
-
], t.prototype, "type", 2),
|
1928
|
+
], t.prototype, "type", 2), E([
|
1893
1929
|
m({ attribute: !1 })
|
1894
|
-
], t.prototype, "application", 2),
|
1930
|
+
], t.prototype, "application", 2), E([
|
1895
1931
|
m({ attribute: !1 })
|
1896
1932
|
], t.prototype, "parent", 2), t;
|
1897
1933
|
};
|
1898
|
-
class St extends yi(
|
1934
|
+
class St extends yi(_) {
|
1899
1935
|
render() {
|
1900
|
-
return
|
1936
|
+
return R`Non resolved component`;
|
1901
1937
|
}
|
1902
1938
|
}
|
1903
1939
|
St.styles = [
|
1904
|
-
|
1940
|
+
N`
|
1905
1941
|
:host {
|
1906
1942
|
display: block;
|
1907
1943
|
}
|
@@ -1919,7 +1955,7 @@ function* bi(s, t) {
|
|
1919
1955
|
yield t(i, e++);
|
1920
1956
|
}
|
1921
1957
|
}
|
1922
|
-
var
|
1958
|
+
var $ = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))($ || {});
|
1923
1959
|
/**
|
1924
1960
|
* @license
|
1925
1961
|
* Copyright 2021 Google LLC
|
@@ -1982,19 +2018,19 @@ let _i = class extends Event {
|
|
1982
2018
|
};
|
1983
2019
|
class Jt extends wi {
|
1984
2020
|
constructor(t, e, i) {
|
1985
|
-
var r,
|
1986
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
1987
|
-
const a =
|
1988
|
-
|
1989
|
-
}, this.onProviderRequest = (
|
1990
|
-
const a =
|
1991
|
-
if (
|
2021
|
+
var r, o;
|
2022
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
2023
|
+
const a = n.composedPath()[0];
|
2024
|
+
n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
|
2025
|
+
}, this.onProviderRequest = (n) => {
|
2026
|
+
const a = n.composedPath()[0];
|
2027
|
+
if (n.context !== this.context || a === this.host)
|
1992
2028
|
return;
|
1993
2029
|
const c = /* @__PURE__ */ new Set();
|
1994
2030
|
for (const [h, { consumerHost: l }] of this.subscriptions)
|
1995
2031
|
c.has(h) || (c.add(h), l.dispatchEvent(new $i(this.context, h, !0)));
|
1996
|
-
|
1997
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
2032
|
+
n.stopPropagation();
|
2033
|
+
}, 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);
|
1998
2034
|
}
|
1999
2035
|
attachListeners() {
|
2000
2036
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
@@ -2017,42 +2053,42 @@ function Ai({ context: s }) {
|
|
2017
2053
|
}), { get() {
|
2018
2054
|
return t.get.call(this);
|
2019
2055
|
}, set(r) {
|
2020
|
-
var
|
2021
|
-
return (
|
2056
|
+
var o;
|
2057
|
+
return (o = i.get(this)) == null || o.setValue(r), t.set.call(this, r);
|
2022
2058
|
}, init(r) {
|
2023
|
-
var
|
2024
|
-
return (
|
2059
|
+
var o;
|
2060
|
+
return (o = i.get(this)) == null || o.setValue(r), r;
|
2025
2061
|
} };
|
2026
2062
|
{
|
2027
|
-
t.constructor.addInitializer((
|
2028
|
-
i.set(
|
2063
|
+
t.constructor.addInitializer((n) => {
|
2064
|
+
i.set(n, new Jt(n, { context: s }));
|
2029
2065
|
});
|
2030
2066
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
2031
|
-
let
|
2067
|
+
let o;
|
2032
2068
|
if (r === void 0) {
|
2033
|
-
const
|
2034
|
-
|
2035
|
-
return
|
2069
|
+
const n = /* @__PURE__ */ new WeakMap();
|
2070
|
+
o = { get: function() {
|
2071
|
+
return n.get(this);
|
2036
2072
|
}, set: function(a) {
|
2037
|
-
i.get(this).setValue(a),
|
2073
|
+
i.get(this).setValue(a), n.set(this, a);
|
2038
2074
|
}, configurable: !0, enumerable: !0 };
|
2039
2075
|
} else {
|
2040
|
-
const
|
2041
|
-
|
2042
|
-
i.get(this).setValue(a),
|
2076
|
+
const n = r.set;
|
2077
|
+
o = { ...r, set: function(a) {
|
2078
|
+
i.get(this).setValue(a), n == null || n.call(this, a);
|
2043
2079
|
} };
|
2044
2080
|
}
|
2045
|
-
return void Object.defineProperty(t, e,
|
2081
|
+
return void Object.defineProperty(t, e, o);
|
2046
2082
|
}
|
2047
2083
|
};
|
2048
2084
|
}
|
2049
2085
|
var xi = Object.defineProperty, Ci = Object.getOwnPropertyDescriptor, Si = (s, t, e, i) => {
|
2050
|
-
for (var r = i > 1 ? void 0 : i ? Ci(t, e) : t,
|
2051
|
-
(
|
2086
|
+
for (var r = i > 1 ? void 0 : i ? Ci(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
2087
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
2052
2088
|
return i && r && xi(t, e, r), r;
|
2053
2089
|
};
|
2054
2090
|
const Ei = "application";
|
2055
|
-
class
|
2091
|
+
class ot extends _ {
|
2056
2092
|
constructor() {
|
2057
2093
|
super(...arguments), this.nodes = [], this.wrapperRef = me();
|
2058
2094
|
}
|
@@ -2079,12 +2115,12 @@ class nt extends w {
|
|
2079
2115
|
render() {
|
2080
2116
|
var i, r;
|
2081
2117
|
const t = this.application.settings.components.conversation;
|
2082
|
-
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 ===
|
2083
|
-
${bi(this.nodes, (
|
2118
|
+
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 === $.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")), R`<div class="widget-container" ${ve(this.wrapperRef)}>
|
2119
|
+
${bi(this.nodes, (o) => o)}
|
2084
2120
|
</div>`;
|
2085
2121
|
}
|
2086
2122
|
}
|
2087
|
-
|
2123
|
+
ot.styles = N`
|
2088
2124
|
:host {
|
2089
2125
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2090
2126
|
--spacing-xs: 0.2rem;
|
@@ -2100,6 +2136,7 @@ nt.styles = U`
|
|
2100
2136
|
--gray-color: #f3f3f8;
|
2101
2137
|
--white-color: #fff;
|
2102
2138
|
--gray-dark-color: #a6a6a6;
|
2139
|
+
--black-border-color: #00000054;
|
2103
2140
|
|
2104
2141
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
2105
2142
|
--border-radius: var(--spacing-sm);
|
@@ -2176,8 +2213,6 @@ nt.styles = U`
|
|
2176
2213
|
background-color: var(--primary-background);
|
2177
2214
|
padding: var(--spacing-sm);
|
2178
2215
|
border: var(--widget-border, none);
|
2179
|
-
border-left: 1px solid #00000054;
|
2180
|
-
border-right: 1px solid #00000054;
|
2181
2216
|
}
|
2182
2217
|
@keyframes slideDown {
|
2183
2218
|
from {
|
@@ -2212,7 +2247,7 @@ nt.styles = U`
|
|
2212
2247
|
Si([
|
2213
2248
|
m({ attribute: !1 }),
|
2214
2249
|
Ai({ context: Ei })
|
2215
|
-
],
|
2250
|
+
], ot.prototype, "application", 2);
|
2216
2251
|
class Pi {
|
2217
2252
|
constructor() {
|
2218
2253
|
this.root = this.createRoot();
|
@@ -2232,8 +2267,8 @@ class Pi {
|
|
2232
2267
|
overrides: []
|
2233
2268
|
};
|
2234
2269
|
}, r = (a, c, h, l) => {
|
2235
|
-
h.forEach((
|
2236
|
-
const f = i(
|
2270
|
+
h.forEach((d) => {
|
2271
|
+
const f = i(d), u = l[f.definitionId];
|
2237
2272
|
if (!u) {
|
2238
2273
|
console.error(
|
2239
2274
|
`No definition found for component type '${f.definitionId}'.`
|
@@ -2249,11 +2284,11 @@ class Pi {
|
|
2249
2284
|
// views
|
2250
2285
|
));
|
2251
2286
|
});
|
2252
|
-
}, { entry:
|
2253
|
-
return r(this, this.root, [
|
2287
|
+
}, { entry: o, components: n } = t;
|
2288
|
+
return r(this, this.root, [o], n), this.root;
|
2254
2289
|
}
|
2255
2290
|
createRoot() {
|
2256
|
-
return new
|
2291
|
+
return new ot();
|
2257
2292
|
}
|
2258
2293
|
createNode(t, e) {
|
2259
2294
|
const i = this.resolveComponent(e);
|
@@ -2295,19 +2330,20 @@ const ye = class {
|
|
2295
2330
|
};
|
2296
2331
|
let be = ye;
|
2297
2332
|
be.ResolveWebComponentName = (s) => `ace-${s}`;
|
2298
|
-
var y = /* @__PURE__ */ ((s) => (s.
|
2333
|
+
var y = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(y || {});
|
2299
2334
|
class Oi {
|
2300
2335
|
constructor(t, e, i) {
|
2301
|
-
this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i;
|
2336
|
+
this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i;
|
2302
2337
|
}
|
2303
2338
|
set(t, e, i) {
|
2304
|
-
if (this.
|
2305
|
-
|
2306
|
-
|
2307
|
-
|
2308
|
-
|
2309
|
-
|
2310
|
-
|
2339
|
+
if (!this.disallowedKeys.includes(t))
|
2340
|
+
if (this.policy[i]) {
|
2341
|
+
const r = { value: e, category: i };
|
2342
|
+
this.storage.setItem(this._prefixKey(t), JSON.stringify(r));
|
2343
|
+
} else
|
2344
|
+
console.warn(
|
2345
|
+
`Storage policy does not allow storing items in category: ${i}`
|
2346
|
+
);
|
2311
2347
|
}
|
2312
2348
|
get(t) {
|
2313
2349
|
const e = this.storage.getItem(this._prefixKey(t));
|
@@ -2325,8 +2361,18 @@ class Oi {
|
|
2325
2361
|
removeItem(t) {
|
2326
2362
|
this.storage.removeItem(this._prefixKey(t));
|
2327
2363
|
}
|
2364
|
+
enforcePolicy() {
|
2365
|
+
var t;
|
2366
|
+
for (const [e, i] of Object.entries(this.storage)) {
|
2367
|
+
const r = (t = JSON.parse(i)) == null ? void 0 : t.category;
|
2368
|
+
this.policy[r] || this.storage.removeItem(e);
|
2369
|
+
}
|
2370
|
+
}
|
2328
2371
|
updatePolicy(t) {
|
2329
|
-
this.policy = t;
|
2372
|
+
this.policy = t, this.enforcePolicy();
|
2373
|
+
}
|
2374
|
+
disallowKey(t) {
|
2375
|
+
this.disallowedKeys.includes(t) || this.disallowedKeys.push(t), this.removeItem(t);
|
2330
2376
|
}
|
2331
2377
|
_prefixKey(t) {
|
2332
2378
|
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
@@ -2357,27 +2403,22 @@ class Ii {
|
|
2357
2403
|
close() {
|
2358
2404
|
this.widget.hide();
|
2359
2405
|
}
|
2360
|
-
|
2361
|
-
|
2362
|
-
(t = this.widget.trigger) == null || t.hideTrigger();
|
2363
|
-
}
|
2364
|
-
showTriggerButton() {
|
2365
|
-
var t;
|
2366
|
-
(t = this.widget.trigger) == null || t.showTrigger();
|
2406
|
+
setZIndex(t) {
|
2407
|
+
this.widget.setZIndex(t);
|
2367
2408
|
}
|
2368
2409
|
}
|
2369
2410
|
class Ri {
|
2370
|
-
constructor(t, e, i, r,
|
2371
|
-
this.id = t, this.name = e, this.container = i, this.settings = r, this.options =
|
2372
|
-
const
|
2373
|
-
[y.
|
2374
|
-
[y.
|
2411
|
+
constructor(t, e, i, r, o) {
|
2412
|
+
this.id = t, this.name = e, this.container = i, this.settings = r, this.options = o, this.platform = new Pi(), this.texts = new Ti(), this.renderStrategy = $.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new be(), this.components = [], this.trigger = null, this.api = new Ii(this), this.renderStrategy = this.options.renderStrategy || $.Inline, this.triggerIcon = this.options.triggerIcon;
|
2413
|
+
const n = {
|
2414
|
+
[y.Necessary]: !0,
|
2415
|
+
[y.Functional]: !0,
|
2375
2416
|
[y.Analytics]: !0
|
2376
2417
|
};
|
2377
|
-
this.storage = new Oi(this.id, "sessionStorage",
|
2418
|
+
this.storage = new Oi(this.id, "sessionStorage", n), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {});
|
2378
2419
|
}
|
2379
2420
|
async activate() {
|
2380
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2421
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(oe.Ready), this.autoActivate) {
|
2381
2422
|
const t = this.render();
|
2382
2423
|
t && this._getTargetElement().appendChild(t);
|
2383
2424
|
}
|
@@ -2396,23 +2437,22 @@ class Ri {
|
|
2396
2437
|
return this.plugins.push(t), this;
|
2397
2438
|
}
|
2398
2439
|
appendToDOM() {
|
2399
|
-
this.root && (this.root.classList.add("expanded"), this.root.classList.remove("hidden"), document.body.appendChild(this.root)), this.storage.set("open",
|
2440
|
+
this.root && (this.root.classList.add("expanded"), this.root.classList.remove("hidden"), document.body.appendChild(this.root)), this.storage.set("open", !0, y.Necessary);
|
2400
2441
|
}
|
2401
2442
|
hide() {
|
2402
|
-
this.root && (this.root.classList.add("hidden"), this.root.classList.remove("expanded")), this.storage.set("open",
|
2443
|
+
this.root && (this.root.classList.add("hidden"), this.root.classList.remove("expanded")), this.storage.set("open", !1, y.Necessary);
|
2444
|
+
}
|
2445
|
+
setZIndex(t) {
|
2446
|
+
this.root && (this.root.style.zIndex = t.toString());
|
2403
2447
|
}
|
2404
2448
|
mute() {
|
2405
|
-
this.storage.set(
|
2406
|
-
"muteAudioNotifications",
|
2407
|
-
"true",
|
2408
|
-
y.Mandatory
|
2409
|
-
);
|
2449
|
+
this.storage.set("muteAudioNotifications", !0, y.Necessary);
|
2410
2450
|
}
|
2411
2451
|
unmute() {
|
2412
2452
|
this.storage.set(
|
2413
2453
|
"muteAudioNotifications",
|
2414
|
-
|
2415
|
-
y.
|
2454
|
+
!1,
|
2455
|
+
y.Necessary
|
2416
2456
|
);
|
2417
2457
|
}
|
2418
2458
|
registerComponent(t, e) {
|
@@ -2430,7 +2470,7 @@ class Ri {
|
|
2430
2470
|
}
|
2431
2471
|
_getTargetElement() {
|
2432
2472
|
let t = "bottom-right";
|
2433
|
-
if (this.anchor === "BottomRight" ? t = "bottom-right" : this.anchor === "BottomLeft" && (t = "bottom-left"), this.renderStrategy ===
|
2473
|
+
if (this.anchor === "BottomRight" ? t = "bottom-right" : this.anchor === "BottomLeft" && (t = "bottom-left"), this.renderStrategy === $.Trigger) {
|
2434
2474
|
let e = document.querySelector(
|
2435
2475
|
`ace-trigger-slot.${t}`
|
2436
2476
|
);
|
@@ -2439,8 +2479,8 @@ class Ri {
|
|
2439
2479
|
return document.body;
|
2440
2480
|
}
|
2441
2481
|
render() {
|
2442
|
-
if (this.renderStrategy ===
|
2443
|
-
const t = new
|
2482
|
+
if (this.renderStrategy === $.Trigger) {
|
2483
|
+
const t = new A();
|
2444
2484
|
return t.application = this, this.trigger = t, this.storage.get("open") && this.trigger.toggleActive(), t;
|
2445
2485
|
}
|
2446
2486
|
return this.root;
|
@@ -2457,8 +2497,8 @@ const Fi = (s) => new et(s), $e = class {
|
|
2457
2497
|
return e ? {
|
2458
2498
|
id: e.id,
|
2459
2499
|
apps: e.widgets.map((i) => {
|
2460
|
-
let r =
|
2461
|
-
return i.renderStrategy === "Trigger" && (r =
|
2500
|
+
let r = $.Inline;
|
2501
|
+
return i.renderStrategy === "Trigger" && (r = $.Trigger), {
|
2462
2502
|
id: i.id,
|
2463
2503
|
widgetId: i.widgetId,
|
2464
2504
|
renderStrategy: r,
|
@@ -2482,7 +2522,7 @@ const Fi = (s) => new et(s), $e = class {
|
|
2482
2522
|
};
|
2483
2523
|
let et = $e;
|
2484
2524
|
et.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2485
|
-
class
|
2525
|
+
class ki {
|
2486
2526
|
constructor(t) {
|
2487
2527
|
this.site = t;
|
2488
2528
|
}
|
@@ -2490,19 +2530,25 @@ class Ui {
|
|
2490
2530
|
var i;
|
2491
2531
|
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((r) => {
|
2492
2532
|
if (r.storage) {
|
2493
|
-
const
|
2533
|
+
const o = {
|
2494
2534
|
[y.Analytics]: t.includes("analytics"),
|
2495
|
-
[y.
|
2496
|
-
[y.
|
2535
|
+
[y.Necessary]: t.includes("necessary"),
|
2536
|
+
[y.Functional]: t.includes("functional")
|
2497
2537
|
};
|
2498
|
-
r.storage.updatePolicy(
|
2538
|
+
r.storage.updatePolicy(o);
|
2499
2539
|
}
|
2500
2540
|
});
|
2501
2541
|
}
|
2542
|
+
disallowStorageKey(t) {
|
2543
|
+
var e;
|
2544
|
+
(((e = this.site.environment) == null ? void 0 : e.applications) || []).forEach((i) => {
|
2545
|
+
i.storage && i.storage.disallowKey(t);
|
2546
|
+
});
|
2547
|
+
}
|
2502
2548
|
}
|
2503
|
-
class
|
2549
|
+
class Ni {
|
2504
2550
|
constructor() {
|
2505
|
-
this.applications = [], this.container = new
|
2551
|
+
this.applications = [], this.container = new kt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
|
2506
2552
|
this.notifyWidgetsOfCreation();
|
2507
2553
|
}, 1e3);
|
2508
2554
|
}
|
@@ -2545,16 +2591,16 @@ class Mi {
|
|
2545
2591
|
if (!i) {
|
2546
2592
|
const r = this.widgetAPIHandlers.get(t) || [];
|
2547
2593
|
r.push(() => {
|
2548
|
-
const
|
2549
|
-
e(
|
2594
|
+
const o = this.applications.find((n) => n.name === t);
|
2595
|
+
e(o == null ? void 0 : o.api);
|
2550
2596
|
}), this.widgetAPIHandlers.set(t, r);
|
2551
2597
|
return;
|
2552
2598
|
}
|
2553
2599
|
e(i == null ? void 0 : i.api);
|
2554
2600
|
}
|
2555
2601
|
registerApp(t, e, i, r) {
|
2556
|
-
const
|
2557
|
-
this.applications.push(
|
2602
|
+
const o = new kt(e, this), n = new Ri(t, e, o, i, r);
|
2603
|
+
this.applications.push(n);
|
2558
2604
|
}
|
2559
2605
|
registerSite(t) {
|
2560
2606
|
this.site = t;
|
@@ -2565,9 +2611,9 @@ class Mi {
|
|
2565
2611
|
}), this;
|
2566
2612
|
}
|
2567
2613
|
}
|
2568
|
-
class
|
2614
|
+
class Ui {
|
2569
2615
|
constructor(t) {
|
2570
|
-
this.configurations = [], this.httpClient = new et(), this.api = new
|
2616
|
+
this.configurations = [], this.httpClient = new et(), this.api = new ki(this), this.httpClient = new et(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2571
2617
|
}
|
2572
2618
|
async load(t) {
|
2573
2619
|
const e = await this.httpClient.getSite(t);
|
@@ -2590,9 +2636,12 @@ class ki {
|
|
2590
2636
|
}
|
2591
2637
|
}));
|
2592
2638
|
}
|
2639
|
+
setHttpClient(t) {
|
2640
|
+
this.httpClient = t;
|
2641
|
+
}
|
2593
2642
|
async bootstrap(t) {
|
2594
2643
|
var e;
|
2595
|
-
this.url && await this.load(this.url), this.environment = new
|
2644
|
+
this.url && await this.load(this.url), this.environment = new Ni(), this.addGlobal(this.environment);
|
2596
2645
|
for await (const i of this.configurations) {
|
2597
2646
|
const r = await this.httpClient.getWidget(i.widgetId);
|
2598
2647
|
r && ((e = this.environment) == null || e.registerApp(
|
@@ -2610,20 +2659,20 @@ class ki {
|
|
2610
2659
|
t(this.environment), this.environment.registerSite(this), await this.environment.bootstrap();
|
2611
2660
|
}
|
2612
2661
|
addGlobal(t) {
|
2613
|
-
const e = globalThis.
|
2662
|
+
const e = globalThis.ace;
|
2614
2663
|
((e == null ? void 0 : e._w) || []).forEach(([i, r]) => {
|
2615
2664
|
t.widget(i, r);
|
2616
2665
|
}), ((e == null ? void 0 : e._c) || []).forEach((i) => {
|
2617
2666
|
t.configure(i);
|
2618
|
-
}), globalThis.
|
2667
|
+
}), globalThis.ace = t;
|
2619
2668
|
}
|
2620
2669
|
}
|
2621
|
-
var
|
2622
|
-
for (var r = i > 1 ? void 0 : i ?
|
2623
|
-
(
|
2624
|
-
return i && r &&
|
2670
|
+
var ji = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, Et = (s, t, e, i) => {
|
2671
|
+
for (var r = i > 1 ? void 0 : i ? Mi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
2672
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
2673
|
+
return i && r && ji(t, e, r), r;
|
2625
2674
|
};
|
2626
|
-
class
|
2675
|
+
class Y extends _ {
|
2627
2676
|
constructor() {
|
2628
2677
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2629
2678
|
}
|
@@ -2647,16 +2696,16 @@ class V extends w {
|
|
2647
2696
|
}
|
2648
2697
|
render() {
|
2649
2698
|
if (!this.widget || this.status !== "activated")
|
2650
|
-
return
|
2651
|
-
if (this.widget.renderStrategy ===
|
2652
|
-
const t = new
|
2699
|
+
return p;
|
2700
|
+
if (this.widget.renderStrategy === $.Trigger) {
|
2701
|
+
const t = new A();
|
2653
2702
|
return t.application = this.widget, t;
|
2654
2703
|
}
|
2655
2704
|
return this.widget.render();
|
2656
2705
|
}
|
2657
2706
|
}
|
2658
|
-
|
2659
|
-
|
2707
|
+
Y.styles = [
|
2708
|
+
N`
|
2660
2709
|
:host {
|
2661
2710
|
display: block;
|
2662
2711
|
}
|
@@ -2664,31 +2713,32 @@ V.styles = [
|
|
2664
2713
|
];
|
2665
2714
|
Et([
|
2666
2715
|
m({ attribute: !0 })
|
2667
|
-
],
|
2716
|
+
], Y.prototype, "name", 2);
|
2668
2717
|
Et([
|
2669
|
-
|
2670
|
-
],
|
2718
|
+
U()
|
2719
|
+
], Y.prototype, "widget", 2);
|
2671
2720
|
Et([
|
2672
|
-
|
2673
|
-
],
|
2721
|
+
U()
|
2722
|
+
], Y.prototype, "status", 2);
|
2674
2723
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", rt);
|
2675
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2724
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2676
2725
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", St);
|
2677
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2678
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2679
|
-
const Vi = async (s, t) => {
|
2680
|
-
|
2726
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", ot);
|
2727
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", Y);
|
2728
|
+
const Vi = async (s, t, e = {}) => {
|
2729
|
+
const i = new Ui(s);
|
2730
|
+
e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
|
2681
2731
|
};
|
2682
2732
|
export {
|
2683
|
-
|
2733
|
+
Y as AceWidget,
|
2684
2734
|
Ri as Application,
|
2685
|
-
|
2686
|
-
|
2735
|
+
kt as Container,
|
2736
|
+
Ni as Environment,
|
2687
2737
|
et as HttpClient,
|
2688
|
-
|
2738
|
+
Ui as Site,
|
2689
2739
|
y as StorageCategory,
|
2690
2740
|
Oi as StorageService,
|
2691
|
-
|
2741
|
+
A as Trigger,
|
2692
2742
|
yi as WidgetComponent,
|
2693
2743
|
Ei as applicationContext,
|
2694
2744
|
Vi as bootstrap,
|