@telia-ace/widget-core-flamingo 1.1.115-rc.7 → 1.1.116-rc.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +35 -35
- package/index.mjs +388 -388
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -1,20 +1,20 @@
|
|
1
|
-
var
|
2
|
-
return
|
1
|
+
var gt = function(r, t) {
|
2
|
+
return gt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
3
|
e.__proto__ = i;
|
4
4
|
} || function(e, i) {
|
5
5
|
for (var s in i) Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
6
|
-
},
|
6
|
+
}, gt(r, t);
|
7
7
|
};
|
8
|
-
function
|
8
|
+
function G(r, t) {
|
9
9
|
if (typeof t != "function" && t !== null)
|
10
10
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
11
|
-
|
11
|
+
gt(r, t);
|
12
12
|
function e() {
|
13
13
|
this.constructor = r;
|
14
14
|
}
|
15
15
|
r.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
16
16
|
}
|
17
|
-
function
|
17
|
+
function mt(r) {
|
18
18
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && r[t], i = 0;
|
19
19
|
if (e) return e.call(r);
|
20
20
|
if (r && typeof r.length == "number") return {
|
@@ -24,7 +24,7 @@ function gt(r) {
|
|
24
24
|
};
|
25
25
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
26
26
|
}
|
27
|
-
function
|
27
|
+
function vt(r, t) {
|
28
28
|
var e = typeof Symbol == "function" && r[Symbol.iterator];
|
29
29
|
if (!e) return r;
|
30
30
|
var i = e.call(r), s, o = [], n;
|
@@ -41,7 +41,7 @@ function mt(r, t) {
|
|
41
41
|
}
|
42
42
|
return o;
|
43
43
|
}
|
44
|
-
function
|
44
|
+
function yt(r, t, e) {
|
45
45
|
if (e || arguments.length === 2) for (var i = 0, s = t.length, o; i < s; i++)
|
46
46
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
47
47
|
return r.concat(o || Array.prototype.slice.call(t));
|
@@ -49,13 +49,13 @@ function vt(r, t, e) {
|
|
49
49
|
function _(r) {
|
50
50
|
return typeof r == "function";
|
51
51
|
}
|
52
|
-
function
|
52
|
+
function ce(r) {
|
53
53
|
var t = function(i) {
|
54
54
|
Error.call(i), i.stack = new Error().stack;
|
55
55
|
}, e = r(t);
|
56
56
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
57
57
|
}
|
58
|
-
var
|
58
|
+
var at = ce(function(r) {
|
59
59
|
return function(e) {
|
60
60
|
r(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
61
61
|
` + e.map(function(i, s) {
|
@@ -64,13 +64,13 @@ var nt = ae(function(r) {
|
|
64
64
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
65
65
|
};
|
66
66
|
});
|
67
|
-
function
|
67
|
+
function bt(r, t) {
|
68
68
|
if (r) {
|
69
69
|
var e = r.indexOf(t);
|
70
70
|
0 <= e && r.splice(e, 1);
|
71
71
|
}
|
72
72
|
}
|
73
|
-
var
|
73
|
+
var ot = function() {
|
74
74
|
function r(t) {
|
75
75
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
76
76
|
}
|
@@ -82,7 +82,7 @@ var rt = function() {
|
|
82
82
|
if (n)
|
83
83
|
if (this._parentage = null, Array.isArray(n))
|
84
84
|
try {
|
85
|
-
for (var a =
|
85
|
+
for (var a = mt(n), c = a.next(); !c.done; c = a.next()) {
|
86
86
|
var l = c.value;
|
87
87
|
l.remove(this);
|
88
88
|
}
|
@@ -102,18 +102,18 @@ var rt = function() {
|
|
102
102
|
try {
|
103
103
|
h();
|
104
104
|
} catch (v) {
|
105
|
-
o = v instanceof
|
105
|
+
o = v instanceof at ? v.errors : [v];
|
106
106
|
}
|
107
107
|
var d = this._finalizers;
|
108
108
|
if (d) {
|
109
109
|
this._finalizers = null;
|
110
110
|
try {
|
111
|
-
for (var u =
|
111
|
+
for (var u = mt(d), f = u.next(); !f.done; f = u.next()) {
|
112
112
|
var g = f.value;
|
113
113
|
try {
|
114
|
-
|
114
|
+
Lt(g);
|
115
115
|
} catch (v) {
|
116
|
-
o = o ?? [], v instanceof
|
116
|
+
o = o ?? [], v instanceof at ? o = yt(yt([], vt(o)), vt(v.errors)) : o.push(v);
|
117
117
|
}
|
118
118
|
}
|
119
119
|
} catch (v) {
|
@@ -127,13 +127,13 @@ var rt = function() {
|
|
127
127
|
}
|
128
128
|
}
|
129
129
|
if (o)
|
130
|
-
throw new
|
130
|
+
throw new at(o);
|
131
131
|
}
|
132
132
|
}, r.prototype.add = function(t) {
|
133
133
|
var e;
|
134
134
|
if (t && t !== this)
|
135
135
|
if (this.closed)
|
136
|
-
|
136
|
+
Lt(t);
|
137
137
|
else {
|
138
138
|
if (t instanceof r) {
|
139
139
|
if (t.closed || t._hasParent(this))
|
@@ -150,52 +150,52 @@ var rt = function() {
|
|
150
150
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
151
151
|
}, r.prototype._removeParent = function(t) {
|
152
152
|
var e = this._parentage;
|
153
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
153
|
+
e === t ? this._parentage = null : Array.isArray(e) && bt(e, t);
|
154
154
|
}, r.prototype.remove = function(t) {
|
155
155
|
var e = this._finalizers;
|
156
|
-
e &&
|
156
|
+
e && bt(e, t), t instanceof r && t._removeParent(this);
|
157
157
|
}, r.EMPTY = function() {
|
158
158
|
var t = new r();
|
159
159
|
return t.closed = !0, t;
|
160
160
|
}(), r;
|
161
|
-
}(),
|
162
|
-
function
|
163
|
-
return r instanceof
|
161
|
+
}(), he = ot.EMPTY;
|
162
|
+
function le(r) {
|
163
|
+
return r instanceof ot || r && "closed" in r && _(r.remove) && _(r.add) && _(r.unsubscribe);
|
164
164
|
}
|
165
|
-
function
|
165
|
+
function Lt(r) {
|
166
166
|
_(r) ? r() : r.unsubscribe();
|
167
167
|
}
|
168
|
-
var
|
168
|
+
var Se = {
|
169
169
|
Promise: void 0
|
170
|
-
},
|
170
|
+
}, Ee = {
|
171
171
|
setTimeout: function(r, t) {
|
172
172
|
for (var e = [], i = 2; i < arguments.length; i++)
|
173
173
|
e[i - 2] = arguments[i];
|
174
|
-
return setTimeout.apply(void 0,
|
174
|
+
return setTimeout.apply(void 0, yt([r, t], vt(e)));
|
175
175
|
},
|
176
176
|
clearTimeout: function(r) {
|
177
177
|
return clearTimeout(r);
|
178
178
|
},
|
179
179
|
delegate: void 0
|
180
180
|
};
|
181
|
-
function
|
182
|
-
|
181
|
+
function Pe(r) {
|
182
|
+
Ee.setTimeout(function() {
|
183
183
|
throw r;
|
184
184
|
});
|
185
185
|
}
|
186
|
-
function
|
186
|
+
function jt() {
|
187
187
|
}
|
188
|
-
function
|
188
|
+
function J(r) {
|
189
189
|
r();
|
190
190
|
}
|
191
|
-
var
|
192
|
-
|
191
|
+
var de = function(r) {
|
192
|
+
G(t, r);
|
193
193
|
function t(e) {
|
194
194
|
var i = r.call(this) || this;
|
195
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
195
|
+
return i.isStopped = !1, e ? (i.destination = e, le(e) && e.add(i)) : i.destination = ke, i;
|
196
196
|
}
|
197
197
|
return t.create = function(e, i, s) {
|
198
|
-
return new
|
198
|
+
return new wt(e, i, s);
|
199
199
|
}, t.prototype.next = function(e) {
|
200
200
|
this.isStopped || this._next(e);
|
201
201
|
}, t.prototype.error = function(e) {
|
@@ -219,7 +219,7 @@ var le = function(r) {
|
|
219
219
|
this.unsubscribe();
|
220
220
|
}
|
221
221
|
}, t;
|
222
|
-
}(
|
222
|
+
}(ot), Oe = function() {
|
223
223
|
function r(t) {
|
224
224
|
this.partialObserver = t;
|
225
225
|
}
|
@@ -250,43 +250,43 @@ var le = function(r) {
|
|
250
250
|
Z(e);
|
251
251
|
}
|
252
252
|
}, r;
|
253
|
-
}(),
|
254
|
-
|
253
|
+
}(), wt = function(r) {
|
254
|
+
G(t, r);
|
255
255
|
function t(e, i, s) {
|
256
256
|
var o = r.call(this) || this, n;
|
257
257
|
return _(e) || !e ? n = {
|
258
258
|
next: e ?? void 0,
|
259
259
|
error: i ?? void 0,
|
260
260
|
complete: s ?? void 0
|
261
|
-
} : n = e, o.destination = new
|
261
|
+
} : n = e, o.destination = new Oe(n), o;
|
262
262
|
}
|
263
263
|
return t;
|
264
|
-
}(
|
264
|
+
}(de);
|
265
265
|
function Z(r) {
|
266
|
-
|
266
|
+
Pe(r);
|
267
267
|
}
|
268
|
-
function
|
268
|
+
function Ie(r) {
|
269
269
|
throw r;
|
270
270
|
}
|
271
|
-
var
|
271
|
+
var ke = {
|
272
272
|
closed: !0,
|
273
|
-
next:
|
274
|
-
error:
|
275
|
-
complete:
|
276
|
-
},
|
273
|
+
next: jt,
|
274
|
+
error: Ie,
|
275
|
+
complete: jt
|
276
|
+
}, Te = function() {
|
277
277
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
278
278
|
}();
|
279
|
-
function
|
279
|
+
function Re(r) {
|
280
280
|
return r;
|
281
281
|
}
|
282
|
-
function
|
283
|
-
return r.length === 0 ?
|
282
|
+
function Me(r) {
|
283
|
+
return r.length === 0 ? Re : r.length === 1 ? r[0] : function(e) {
|
284
284
|
return r.reduce(function(i, s) {
|
285
285
|
return s(i);
|
286
286
|
}, e);
|
287
287
|
};
|
288
288
|
}
|
289
|
-
var
|
289
|
+
var Ht = function() {
|
290
290
|
function r(t) {
|
291
291
|
t && (this._subscribe = t);
|
292
292
|
}
|
@@ -294,8 +294,8 @@ var jt = function() {
|
|
294
294
|
var e = new r();
|
295
295
|
return e.source = this, e.operator = t, e;
|
296
296
|
}, r.prototype.subscribe = function(t, e, i) {
|
297
|
-
var s = this, o =
|
298
|
-
return
|
297
|
+
var s = this, o = Ue(t) ? t : new wt(t, e, i);
|
298
|
+
return J(function() {
|
299
299
|
var n = s, a = n.operator, c = n.source;
|
300
300
|
o.add(a ? a.call(o, c) : c ? s._subscribe(o) : s._trySubscribe(o));
|
301
301
|
}), o;
|
@@ -307,8 +307,8 @@ var jt = function() {
|
|
307
307
|
}
|
308
308
|
}, r.prototype.forEach = function(t, e) {
|
309
309
|
var i = this;
|
310
|
-
return e =
|
311
|
-
var n = new
|
310
|
+
return e = Ft(e), new e(function(s, o) {
|
311
|
+
var n = new wt({
|
312
312
|
next: function(a) {
|
313
313
|
try {
|
314
314
|
t(a);
|
@@ -324,15 +324,15 @@ var jt = function() {
|
|
324
324
|
}, r.prototype._subscribe = function(t) {
|
325
325
|
var e;
|
326
326
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
327
|
-
}, r.prototype[
|
327
|
+
}, r.prototype[Te] = function() {
|
328
328
|
return this;
|
329
329
|
}, r.prototype.pipe = function() {
|
330
330
|
for (var t = [], e = 0; e < arguments.length; e++)
|
331
331
|
t[e] = arguments[e];
|
332
|
-
return
|
332
|
+
return Me(t)(this);
|
333
333
|
}, r.prototype.toPromise = function(t) {
|
334
334
|
var e = this;
|
335
|
-
return t =
|
335
|
+
return t = Ft(t), new t(function(i, s) {
|
336
336
|
var o;
|
337
337
|
e.subscribe(function(n) {
|
338
338
|
return o = n;
|
@@ -346,40 +346,40 @@ var jt = function() {
|
|
346
346
|
return new r(t);
|
347
347
|
}, r;
|
348
348
|
}();
|
349
|
-
function
|
349
|
+
function Ft(r) {
|
350
350
|
var t;
|
351
|
-
return (t = r ??
|
351
|
+
return (t = r ?? Se.Promise) !== null && t !== void 0 ? t : Promise;
|
352
352
|
}
|
353
353
|
function Ne(r) {
|
354
354
|
return r && _(r.next) && _(r.error) && _(r.complete);
|
355
355
|
}
|
356
|
-
function
|
357
|
-
return r && r instanceof
|
356
|
+
function Ue(r) {
|
357
|
+
return r && r instanceof de || Ne(r) && le(r);
|
358
358
|
}
|
359
|
-
var
|
359
|
+
var Le = ce(function(r) {
|
360
360
|
return function() {
|
361
361
|
r(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
362
362
|
};
|
363
|
-
}),
|
364
|
-
|
363
|
+
}), xt = function(r) {
|
364
|
+
G(t, r);
|
365
365
|
function t() {
|
366
366
|
var e = r.call(this) || this;
|
367
367
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
368
368
|
}
|
369
369
|
return t.prototype.lift = function(e) {
|
370
|
-
var i = new
|
370
|
+
var i = new Bt(this, this);
|
371
371
|
return i.operator = e, i;
|
372
372
|
}, t.prototype._throwIfClosed = function() {
|
373
373
|
if (this.closed)
|
374
|
-
throw new
|
374
|
+
throw new Le();
|
375
375
|
}, t.prototype.next = function(e) {
|
376
376
|
var i = this;
|
377
|
-
|
377
|
+
J(function() {
|
378
378
|
var s, o;
|
379
379
|
if (i._throwIfClosed(), !i.isStopped) {
|
380
380
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
381
381
|
try {
|
382
|
-
for (var n =
|
382
|
+
for (var n = mt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
383
383
|
var c = a.value;
|
384
384
|
c.next(e);
|
385
385
|
}
|
@@ -396,7 +396,7 @@ var Ue = ae(function(r) {
|
|
396
396
|
});
|
397
397
|
}, t.prototype.error = function(e) {
|
398
398
|
var i = this;
|
399
|
-
|
399
|
+
J(function() {
|
400
400
|
if (i._throwIfClosed(), !i.isStopped) {
|
401
401
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
402
402
|
for (var s = i.observers; s.length; )
|
@@ -405,7 +405,7 @@ var Ue = ae(function(r) {
|
|
405
405
|
});
|
406
406
|
}, t.prototype.complete = function() {
|
407
407
|
var e = this;
|
408
|
-
|
408
|
+
J(function() {
|
409
409
|
if (e._throwIfClosed(), !e.isStopped) {
|
410
410
|
e.isStopped = !0;
|
411
411
|
for (var i = e.observers; i.length; )
|
@@ -427,20 +427,20 @@ var Ue = ae(function(r) {
|
|
427
427
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
428
428
|
}, t.prototype._innerSubscribe = function(e) {
|
429
429
|
var i = this, s = this, o = s.hasError, n = s.isStopped, a = s.observers;
|
430
|
-
return o || n ?
|
431
|
-
i.currentObservers = null,
|
430
|
+
return o || n ? he : (this.currentObservers = null, a.push(e), new ot(function() {
|
431
|
+
i.currentObservers = null, bt(a, e);
|
432
432
|
}));
|
433
433
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
434
434
|
var i = this, s = i.hasError, o = i.thrownError, n = i.isStopped;
|
435
435
|
s ? e.error(o) : n && e.complete();
|
436
436
|
}, t.prototype.asObservable = function() {
|
437
|
-
var e = new
|
437
|
+
var e = new Ht();
|
438
438
|
return e.source = this, e;
|
439
439
|
}, t.create = function(e, i) {
|
440
|
-
return new
|
440
|
+
return new Bt(e, i);
|
441
441
|
}, t;
|
442
|
-
}(
|
443
|
-
|
442
|
+
}(Ht), Bt = function(r) {
|
443
|
+
G(t, r);
|
444
444
|
function t(e, i) {
|
445
445
|
var s = r.call(this) || this;
|
446
446
|
return s.destination = e, s.source = i, s;
|
@@ -456,10 +456,10 @@ var Ue = ae(function(r) {
|
|
456
456
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
457
457
|
}, t.prototype._subscribe = function(e) {
|
458
458
|
var i, s;
|
459
|
-
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s :
|
459
|
+
return (s = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && s !== void 0 ? s : he;
|
460
460
|
}, t;
|
461
|
-
}(
|
462
|
-
|
461
|
+
}(xt), At = function(r) {
|
462
|
+
G(t, r);
|
463
463
|
function t(e) {
|
464
464
|
var i = r.call(this) || this;
|
465
465
|
return i._value = e, i;
|
@@ -481,10 +481,10 @@ var Ue = ae(function(r) {
|
|
481
481
|
}, t.prototype.next = function(e) {
|
482
482
|
r.prototype.next.call(this, this._value = e);
|
483
483
|
}, t;
|
484
|
-
}(
|
485
|
-
class
|
484
|
+
}(xt), ue = /* @__PURE__ */ ((r) => (r.Loading = "loading", r.Ready = "ready", r))(ue || {});
|
485
|
+
class Dt {
|
486
486
|
constructor(t, e) {
|
487
|
-
this.state = new
|
487
|
+
this.state = new At(
|
488
488
|
"loading"
|
489
489
|
/* Loading */
|
490
490
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -507,18 +507,18 @@ class Bt {
|
|
507
507
|
* Copyright 2019 Google LLC
|
508
508
|
* SPDX-License-Identifier: BSD-3-Clause
|
509
509
|
*/
|
510
|
-
const
|
511
|
-
let
|
510
|
+
const X = globalThis, Ct = X.ShadowRoot && (X.ShadyCSS === void 0 || X.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, St = Symbol(), zt = /* @__PURE__ */ new WeakMap();
|
511
|
+
let pe = class {
|
512
512
|
constructor(t, e, i) {
|
513
|
-
if (this._$cssResult$ = !0, i !==
|
513
|
+
if (this._$cssResult$ = !0, i !== St) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
514
514
|
this.cssText = t, this.t = e;
|
515
515
|
}
|
516
516
|
get styleSheet() {
|
517
517
|
let t = this.o;
|
518
518
|
const e = this.t;
|
519
|
-
if (
|
519
|
+
if (Ct && t === void 0) {
|
520
520
|
const i = e !== void 0 && e.length === 1;
|
521
|
-
i && (t =
|
521
|
+
i && (t = zt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && zt.set(e, t));
|
522
522
|
}
|
523
523
|
return t;
|
524
524
|
}
|
@@ -526,33 +526,33 @@ let ue = class {
|
|
526
526
|
return this.cssText;
|
527
527
|
}
|
528
528
|
};
|
529
|
-
const
|
529
|
+
const je = (r) => new pe(typeof r == "string" ? r : r + "", void 0, St), L = (r, ...t) => {
|
530
530
|
const e = r.length === 1 ? r[0] : t.reduce((i, s, o) => i + ((n) => {
|
531
531
|
if (n._$cssResult$ === !0) return n.cssText;
|
532
532
|
if (typeof n == "number") return n;
|
533
533
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
534
534
|
})(s) + r[o + 1], r[0]);
|
535
|
-
return new
|
536
|
-
},
|
537
|
-
if (
|
535
|
+
return new pe(e, r, St);
|
536
|
+
}, He = (r, t) => {
|
537
|
+
if (Ct) r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
538
538
|
else for (const e of t) {
|
539
|
-
const i = document.createElement("style"), s =
|
539
|
+
const i = document.createElement("style"), s = X.litNonce;
|
540
540
|
s !== void 0 && i.setAttribute("nonce", s), i.textContent = e.cssText, r.appendChild(i);
|
541
541
|
}
|
542
|
-
},
|
542
|
+
}, Vt = Ct ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
543
543
|
let e = "";
|
544
544
|
for (const i of t.cssRules) e += i.cssText;
|
545
|
-
return
|
545
|
+
return je(e);
|
546
546
|
})(r) : r;
|
547
547
|
/**
|
548
548
|
* @license
|
549
549
|
* Copyright 2017 Google LLC
|
550
550
|
* SPDX-License-Identifier: BSD-3-Clause
|
551
551
|
*/
|
552
|
-
const { is:
|
552
|
+
const { is: Fe, defineProperty: Be, getOwnPropertyDescriptor: De, getOwnPropertyNames: ze, getOwnPropertySymbols: Ve, getPrototypeOf: We } = Object, C = globalThis, Wt = C.trustedTypes, qe = Wt ? Wt.emptyScript : "", ct = C.reactiveElementPolyfillSupport, F = (r, t) => r, Q = { toAttribute(r, t) {
|
553
553
|
switch (t) {
|
554
554
|
case Boolean:
|
555
|
-
r = r ?
|
555
|
+
r = r ? qe : null;
|
556
556
|
break;
|
557
557
|
case Object:
|
558
558
|
case Array:
|
@@ -577,46 +577,44 @@ const { is: He, defineProperty: Fe, getOwnPropertyDescriptor: Be, getOwnProperty
|
|
577
577
|
}
|
578
578
|
}
|
579
579
|
return e;
|
580
|
-
} },
|
580
|
+
} }, Et = (r, t) => !Fe(r, t), qt = { attribute: !0, type: String, converter: Q, reflect: !1, useDefault: !1, hasChanged: Et };
|
581
581
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
582
|
-
let
|
582
|
+
let T = class extends HTMLElement {
|
583
583
|
static addInitializer(t) {
|
584
584
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
585
585
|
}
|
586
586
|
static get observedAttributes() {
|
587
587
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
588
588
|
}
|
589
|
-
static createProperty(t, e =
|
590
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
589
|
+
static createProperty(t, e = qt) {
|
590
|
+
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
591
591
|
const i = Symbol(), s = this.getPropertyDescriptor(t, i, e);
|
592
|
-
s !== void 0 &&
|
592
|
+
s !== void 0 && Be(this.prototype, t, s);
|
593
593
|
}
|
594
594
|
}
|
595
595
|
static getPropertyDescriptor(t, e, i) {
|
596
|
-
const { get: s, set: o } =
|
596
|
+
const { get: s, set: o } = De(this.prototype, t) ?? { get() {
|
597
597
|
return this[e];
|
598
598
|
}, set(n) {
|
599
599
|
this[e] = n;
|
600
600
|
} };
|
601
|
-
return { get() {
|
602
|
-
return s == null ? void 0 : s.call(this);
|
603
|
-
}, set(n) {
|
601
|
+
return { get: s, set(n) {
|
604
602
|
const a = s == null ? void 0 : s.call(this);
|
605
|
-
o.call(this, n), this.requestUpdate(t, a, i);
|
603
|
+
o == null || o.call(this, n), this.requestUpdate(t, a, i);
|
606
604
|
}, configurable: !0, enumerable: !0 };
|
607
605
|
}
|
608
606
|
static getPropertyOptions(t) {
|
609
|
-
return this.elementProperties.get(t) ??
|
607
|
+
return this.elementProperties.get(t) ?? qt;
|
610
608
|
}
|
611
609
|
static _$Ei() {
|
612
|
-
if (this.hasOwnProperty(
|
613
|
-
const t =
|
610
|
+
if (this.hasOwnProperty(F("elementProperties"))) return;
|
611
|
+
const t = We(this);
|
614
612
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
615
613
|
}
|
616
614
|
static finalize() {
|
617
|
-
if (this.hasOwnProperty(
|
618
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
619
|
-
const e = this.properties, i = [...
|
615
|
+
if (this.hasOwnProperty(F("finalized"))) return;
|
616
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(F("properties"))) {
|
617
|
+
const e = this.properties, i = [...ze(e), ...Ve(e)];
|
620
618
|
for (const s of i) this.createProperty(s, e[s]);
|
621
619
|
}
|
622
620
|
const t = this[Symbol.metadata];
|
@@ -635,8 +633,8 @@ let k = class extends HTMLElement {
|
|
635
633
|
const e = [];
|
636
634
|
if (Array.isArray(t)) {
|
637
635
|
const i = new Set(t.flat(1 / 0).reverse());
|
638
|
-
for (const s of i) e.unshift(
|
639
|
-
} else t !== void 0 && e.push(
|
636
|
+
for (const s of i) e.unshift(Vt(s));
|
637
|
+
} else t !== void 0 && e.push(Vt(t));
|
640
638
|
return e;
|
641
639
|
}
|
642
640
|
static _$Eu(t, e) {
|
@@ -665,7 +663,7 @@ let k = class extends HTMLElement {
|
|
665
663
|
}
|
666
664
|
createRenderRoot() {
|
667
665
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
668
|
-
return
|
666
|
+
return He(t, this.constructor.elementStyles), t;
|
669
667
|
}
|
670
668
|
connectedCallback() {
|
671
669
|
var t;
|
@@ -686,33 +684,35 @@ let k = class extends HTMLElement {
|
|
686
684
|
attributeChangedCallback(t, e, i) {
|
687
685
|
this._$AK(t, i);
|
688
686
|
}
|
689
|
-
_$
|
687
|
+
_$ET(t, e) {
|
690
688
|
var o;
|
691
689
|
const i = this.constructor.elementProperties.get(t), s = this.constructor._$Eu(t, i);
|
692
690
|
if (s !== void 0 && i.reflect === !0) {
|
693
|
-
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter :
|
691
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : Q).toAttribute(e, i.type);
|
694
692
|
this._$Em = t, n == null ? this.removeAttribute(s) : this.setAttribute(s, n), this._$Em = null;
|
695
693
|
}
|
696
694
|
}
|
697
695
|
_$AK(t, e) {
|
698
|
-
var o;
|
696
|
+
var o, n;
|
699
697
|
const i = this.constructor, s = i._$Eh.get(t);
|
700
698
|
if (s !== void 0 && this._$Em !== s) {
|
701
|
-
const
|
702
|
-
this._$Em = s, this[s] =
|
699
|
+
const a = i.getPropertyOptions(s), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter : Q;
|
700
|
+
this._$Em = s, this[s] = c.fromAttribute(e, a.type) ?? ((n = this._$Ej) == null ? void 0 : n.get(s)) ?? null, this._$Em = null;
|
703
701
|
}
|
704
702
|
}
|
705
703
|
requestUpdate(t, e, i) {
|
704
|
+
var s;
|
706
705
|
if (t !== void 0) {
|
707
|
-
|
708
|
-
|
706
|
+
const o = this.constructor, n = this[t];
|
707
|
+
if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ?? Et)(n, e) || i.useDefault && i.reflect && n === ((s = this._$Ej) == null ? void 0 : s.get(t)) && !this.hasAttribute(o._$Eu(t, i)))) return;
|
708
|
+
this.C(t, e, i);
|
709
709
|
}
|
710
|
-
this.isUpdatePending === !1 && (this._$ES = this._$
|
710
|
+
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
711
711
|
}
|
712
|
-
|
713
|
-
this._$AL.has(t) || this._$AL.set(t, e),
|
712
|
+
C(t, e, { useDefault: i, reflect: s, wrapped: o }, n) {
|
713
|
+
i && !(this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Map())).has(t) && (this._$Ej.set(t, n ?? e ?? this[t]), o !== !0 || n !== void 0) || (this._$AL.has(t) || (this.hasUpdated || i || (e = void 0), this._$AL.set(t, e)), s === !0 && this._$Em !== t && (this._$Eq ?? (this._$Eq = /* @__PURE__ */ new Set())).add(t));
|
714
714
|
}
|
715
|
-
async _$
|
715
|
+
async _$EP() {
|
716
716
|
this.isUpdatePending = !0;
|
717
717
|
try {
|
718
718
|
await this._$ES;
|
@@ -734,7 +734,10 @@ let k = class extends HTMLElement {
|
|
734
734
|
this._$Ep = void 0;
|
735
735
|
}
|
736
736
|
const s = this.constructor.elementProperties;
|
737
|
-
if (s.size > 0) for (const [o, n] of s)
|
737
|
+
if (s.size > 0) for (const [o, n] of s) {
|
738
|
+
const { wrapped: a } = n, c = this[o];
|
739
|
+
a !== !0 || this._$AL.has(o) || c === void 0 || this.C(o, void 0, n, c);
|
740
|
+
}
|
738
741
|
}
|
739
742
|
let t = !1;
|
740
743
|
const e = this._$AL;
|
@@ -742,9 +745,9 @@ let k = class extends HTMLElement {
|
|
742
745
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((s) => {
|
743
746
|
var o;
|
744
747
|
return (o = s.hostUpdate) == null ? void 0 : o.call(s);
|
745
|
-
}), this.update(e)) : this._$
|
748
|
+
}), this.update(e)) : this._$EM();
|
746
749
|
} catch (s) {
|
747
|
-
throw t = !1, this._$
|
750
|
+
throw t = !1, this._$EM(), s;
|
748
751
|
}
|
749
752
|
t && this._$AE(e);
|
750
753
|
}
|
@@ -757,7 +760,7 @@ let k = class extends HTMLElement {
|
|
757
760
|
return (s = i.hostUpdated) == null ? void 0 : s.call(i);
|
758
761
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
759
762
|
}
|
760
|
-
_$
|
763
|
+
_$EM() {
|
761
764
|
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
762
765
|
}
|
763
766
|
get updateComplete() {
|
@@ -770,63 +773,63 @@ let k = class extends HTMLElement {
|
|
770
773
|
return !0;
|
771
774
|
}
|
772
775
|
update(t) {
|
773
|
-
this._$
|
776
|
+
this._$Eq && (this._$Eq = this._$Eq.forEach((e) => this._$ET(e, this[e]))), this._$EM();
|
774
777
|
}
|
775
778
|
updated(t) {
|
776
779
|
}
|
777
780
|
firstUpdated(t) {
|
778
781
|
}
|
779
782
|
};
|
780
|
-
|
783
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[F("elementProperties")] = /* @__PURE__ */ new Map(), T[F("finalized")] = /* @__PURE__ */ new Map(), ct == null || ct({ ReactiveElement: T }), (C.reactiveElementVersions ?? (C.reactiveElementVersions = [])).push("2.1.0");
|
781
784
|
/**
|
782
785
|
* @license
|
783
786
|
* Copyright 2017 Google LLC
|
784
787
|
* SPDX-License-Identifier: BSD-3-Clause
|
785
788
|
*/
|
786
|
-
const
|
787
|
-
\f\r]`,
|
788
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g,
|
789
|
-
function
|
790
|
-
if (!
|
791
|
-
return
|
789
|
+
const B = globalThis, tt = B.trustedTypes, Gt = tt ? tt.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, fe = "$lit$", A = `lit$${Math.random().toFixed(9).slice(2)}$`, ge = "?" + A, Ge = `<${ge}>`, I = document, z = () => I.createComment(""), V = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Ke = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", ht = `[
|
790
|
+
\f\r]`, H = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Kt = /-->/g, Yt = />/g, S = RegExp(`>|${ht}(?:([^\\s"'>=/]+)(${ht}*=${ht}*(?:[^
|
791
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Zt = /'/g, Jt = /"/g, me = /^(?:script|style|textarea|title)$/i, Ye = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), R = Ye(1), k = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), Xt = /* @__PURE__ */ new WeakMap(), P = I.createTreeWalker(I, 129);
|
792
|
+
function ve(r, t) {
|
793
|
+
if (!Pt(r) || !r.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
794
|
+
return Gt !== void 0 ? Gt.createHTML(t) : t;
|
792
795
|
}
|
793
796
|
const Ze = (r, t) => {
|
794
797
|
const e = r.length - 1, i = [];
|
795
|
-
let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n =
|
798
|
+
let s, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = H;
|
796
799
|
for (let a = 0; a < e; a++) {
|
797
800
|
const c = r[a];
|
798
801
|
let l, h, d = -1, u = 0;
|
799
|
-
for (; u < c.length && (n.lastIndex = u, h = n.exec(c), h !== null); ) u = n.lastIndex, n ===
|
802
|
+
for (; u < c.length && (n.lastIndex = u, h = n.exec(c), h !== null); ) u = n.lastIndex, n === H ? h[1] === "!--" ? n = Kt : h[1] !== void 0 ? n = Yt : h[2] !== void 0 ? (me.test(h[2]) && (s = RegExp("</" + h[2], "g")), n = S) : h[3] !== void 0 && (n = S) : n === S ? h[0] === ">" ? (n = s ?? H, d = -1) : h[1] === void 0 ? d = -2 : (d = n.lastIndex - h[2].length, l = h[1], n = h[3] === void 0 ? S : h[3] === '"' ? Jt : Zt) : n === Jt || n === Zt ? n = S : n === Kt || n === Yt ? n = H : (n = S, s = void 0);
|
800
803
|
const f = n === S && r[a + 1].startsWith("/>") ? " " : "";
|
801
|
-
o += n ===
|
804
|
+
o += n === H ? c + Ge : d >= 0 ? (i.push(l), c.slice(0, d) + fe + c.slice(d) + A + f) : c + A + (d === -2 ? a : f);
|
802
805
|
}
|
803
|
-
return [
|
806
|
+
return [ve(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
804
807
|
};
|
805
|
-
let
|
808
|
+
let $t = class ye {
|
806
809
|
constructor({ strings: t, _$litType$: e }, i) {
|
807
810
|
let s;
|
808
811
|
this.parts = [];
|
809
812
|
let o = 0, n = 0;
|
810
813
|
const a = t.length - 1, c = this.parts, [l, h] = Ze(t, e);
|
811
|
-
if (this.el =
|
814
|
+
if (this.el = ye.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
812
815
|
const d = this.el.content.firstChild;
|
813
816
|
d.replaceWith(...d.childNodes);
|
814
817
|
}
|
815
818
|
for (; (s = P.nextNode()) !== null && c.length < a; ) {
|
816
819
|
if (s.nodeType === 1) {
|
817
|
-
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(
|
820
|
+
if (s.hasAttributes()) for (const d of s.getAttributeNames()) if (d.endsWith(fe)) {
|
818
821
|
const u = h[n++], f = s.getAttribute(d).split(A), g = /([.?@])?(.*)/.exec(u);
|
819
|
-
c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ?
|
822
|
+
c.push({ type: 1, index: o, name: g[2], strings: f, ctor: g[1] === "." ? Xe : g[1] === "?" ? Qe : g[1] === "@" ? ti : nt }), s.removeAttribute(d);
|
820
823
|
} else d.startsWith(A) && (c.push({ type: 6, index: o }), s.removeAttribute(d));
|
821
|
-
if (
|
824
|
+
if (me.test(s.tagName)) {
|
822
825
|
const d = s.textContent.split(A), u = d.length - 1;
|
823
826
|
if (u > 0) {
|
824
|
-
s.textContent =
|
825
|
-
for (let f = 0; f < u; f++) s.append(d[f],
|
826
|
-
s.append(d[u],
|
827
|
+
s.textContent = tt ? tt.emptyScript : "";
|
828
|
+
for (let f = 0; f < u; f++) s.append(d[f], z()), P.nextNode(), c.push({ type: 2, index: ++o });
|
829
|
+
s.append(d[u], z());
|
827
830
|
}
|
828
831
|
}
|
829
|
-
} else if (s.nodeType === 8) if (s.data ===
|
832
|
+
} else if (s.nodeType === 8) if (s.data === ge) c.push({ type: 2, index: o });
|
830
833
|
else {
|
831
834
|
let d = -1;
|
832
835
|
for (; (d = s.data.indexOf(A, d + 1)) !== -1; ) c.push({ type: 7, index: o }), d += A.length - 1;
|
@@ -835,18 +838,18 @@ let wt = class ve {
|
|
835
838
|
}
|
836
839
|
}
|
837
840
|
static createElement(t, e) {
|
838
|
-
const i =
|
841
|
+
const i = I.createElement("template");
|
839
842
|
return i.innerHTML = t, i;
|
840
843
|
}
|
841
844
|
};
|
842
|
-
function
|
845
|
+
function M(r, t, e = r, i) {
|
843
846
|
var n, a;
|
844
|
-
if (t ===
|
847
|
+
if (t === k) return t;
|
845
848
|
let s = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
846
|
-
const o =
|
847
|
-
return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t =
|
849
|
+
const o = V(t) ? void 0 : t._$litDirective$;
|
850
|
+
return (s == null ? void 0 : s.constructor) !== o && ((a = s == null ? void 0 : s._$AO) == null || a.call(s, !1), o === void 0 ? s = void 0 : (s = new o(r), s._$AT(r, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = s : e._$Cl = s), s !== void 0 && (t = M(r, s._$AS(r, t.values), s, i)), t;
|
848
851
|
}
|
849
|
-
class
|
852
|
+
class Je {
|
850
853
|
constructor(t, e) {
|
851
854
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
852
855
|
}
|
@@ -857,24 +860,24 @@ class Ge {
|
|
857
860
|
return this._$AM._$AU;
|
858
861
|
}
|
859
862
|
u(t) {
|
860
|
-
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ??
|
863
|
+
const { el: { content: e }, parts: i } = this._$AD, s = ((t == null ? void 0 : t.creationScope) ?? I).importNode(e, !0);
|
861
864
|
P.currentNode = s;
|
862
865
|
let o = P.nextNode(), n = 0, a = 0, c = i[0];
|
863
866
|
for (; c !== void 0; ) {
|
864
867
|
if (n === c.index) {
|
865
868
|
let l;
|
866
|
-
c.type === 2 ? l = new
|
869
|
+
c.type === 2 ? l = new K(o, o.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (l = new ei(o, this, t)), this._$AV.push(l), c = i[++a];
|
867
870
|
}
|
868
871
|
n !== (c == null ? void 0 : c.index) && (o = P.nextNode(), n++);
|
869
872
|
}
|
870
|
-
return P.currentNode =
|
873
|
+
return P.currentNode = I, s;
|
871
874
|
}
|
872
875
|
p(t) {
|
873
876
|
let e = 0;
|
874
877
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
875
878
|
}
|
876
879
|
}
|
877
|
-
class
|
880
|
+
class K {
|
878
881
|
get _$AU() {
|
879
882
|
var t;
|
880
883
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -894,7 +897,7 @@ class q {
|
|
894
897
|
return this._$AB;
|
895
898
|
}
|
896
899
|
_$AI(t, e = this) {
|
897
|
-
t =
|
900
|
+
t = M(this, t, e), V(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== k && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ke(t) ? this.k(t) : this._(t);
|
898
901
|
}
|
899
902
|
O(t) {
|
900
903
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -903,26 +906,26 @@ class q {
|
|
903
906
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
904
907
|
}
|
905
908
|
_(t) {
|
906
|
-
this._$AH !== p &&
|
909
|
+
this._$AH !== p && V(this._$AH) ? this._$AA.nextSibling.data = t : this.T(I.createTextNode(t)), this._$AH = t;
|
907
910
|
}
|
908
911
|
$(t) {
|
909
912
|
var o;
|
910
|
-
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
913
|
+
const { values: e, _$litType$: i } = t, s = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = $t.createElement(ve(i.h, i.h[0]), this.options)), i);
|
911
914
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === s) this._$AH.p(e);
|
912
915
|
else {
|
913
|
-
const n = new
|
916
|
+
const n = new Je(s, this), a = n.u(this.options);
|
914
917
|
n.p(e), this.T(a), this._$AH = n;
|
915
918
|
}
|
916
919
|
}
|
917
920
|
_$AC(t) {
|
918
|
-
let e =
|
919
|
-
return e === void 0 &&
|
921
|
+
let e = Xt.get(t.strings);
|
922
|
+
return e === void 0 && Xt.set(t.strings, e = new $t(t)), e;
|
920
923
|
}
|
921
924
|
k(t) {
|
922
|
-
|
925
|
+
Pt(this._$AH) || (this._$AH = [], this._$AR());
|
923
926
|
const e = this._$AH;
|
924
927
|
let i, s = 0;
|
925
|
-
for (const o of t) s === e.length ? e.push(i = new
|
928
|
+
for (const o of t) s === e.length ? e.push(i = new K(this.O(z()), this.O(z()), this, this.options)) : i = e[s], i._$AI(o), s++;
|
926
929
|
s < e.length && (this._$AR(i && i._$AB.nextSibling, s), e.length = s);
|
927
930
|
}
|
928
931
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -937,7 +940,7 @@ class q {
|
|
937
940
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
938
941
|
}
|
939
942
|
}
|
940
|
-
class
|
943
|
+
class nt {
|
941
944
|
get tagName() {
|
942
945
|
return this.element.tagName;
|
943
946
|
}
|
@@ -950,11 +953,11 @@ class ot {
|
|
950
953
|
_$AI(t, e = this, i, s) {
|
951
954
|
const o = this.strings;
|
952
955
|
let n = !1;
|
953
|
-
if (o === void 0) t =
|
956
|
+
if (o === void 0) t = M(this, t, e, 0), n = !V(t) || t !== this._$AH && t !== k, n && (this._$AH = t);
|
954
957
|
else {
|
955
958
|
const a = t;
|
956
959
|
let c, l;
|
957
|
-
for (t = o[0], c = 0; c < o.length - 1; c++) l =
|
960
|
+
for (t = o[0], c = 0; c < o.length - 1; c++) l = M(this, a[i + c], e, c), l === k && (l = this._$AH[c]), n || (n = !V(l) || l !== this._$AH[c]), l === p ? t = p : t !== p && (t += (l ?? "") + o[c + 1]), this._$AH[c] = l;
|
958
961
|
}
|
959
962
|
n && !s && this.j(t);
|
960
963
|
}
|
@@ -962,7 +965,7 @@ class ot {
|
|
962
965
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
963
966
|
}
|
964
967
|
}
|
965
|
-
class
|
968
|
+
class Xe extends nt {
|
966
969
|
constructor() {
|
967
970
|
super(...arguments), this.type = 3;
|
968
971
|
}
|
@@ -970,7 +973,7 @@ class Je extends ot {
|
|
970
973
|
this.element[this.name] = t === p ? void 0 : t;
|
971
974
|
}
|
972
975
|
}
|
973
|
-
class
|
976
|
+
class Qe extends nt {
|
974
977
|
constructor() {
|
975
978
|
super(...arguments), this.type = 4;
|
976
979
|
}
|
@@ -978,12 +981,12 @@ class Xe extends ot {
|
|
978
981
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
979
982
|
}
|
980
983
|
}
|
981
|
-
class
|
984
|
+
class ti extends nt {
|
982
985
|
constructor(t, e, i, s, o) {
|
983
986
|
super(t, e, i, s, o), this.type = 5;
|
984
987
|
}
|
985
988
|
_$AI(t, e = this) {
|
986
|
-
if ((t =
|
989
|
+
if ((t = M(this, t, e, 0) ?? p) === k) return;
|
987
990
|
const i = this._$AH, s = t === p && i !== p || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== p && (i === p || s);
|
988
991
|
s && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
989
992
|
}
|
@@ -992,7 +995,7 @@ class Qe extends ot {
|
|
992
995
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
993
996
|
}
|
994
997
|
}
|
995
|
-
class
|
998
|
+
class ei {
|
996
999
|
constructor(t, e, i) {
|
997
1000
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
998
1001
|
}
|
@@ -1000,17 +1003,17 @@ class ti {
|
|
1000
1003
|
return this._$AM._$AU;
|
1001
1004
|
}
|
1002
1005
|
_$AI(t) {
|
1003
|
-
|
1006
|
+
M(this, t);
|
1004
1007
|
}
|
1005
1008
|
}
|
1006
|
-
const
|
1007
|
-
|
1008
|
-
const
|
1009
|
+
const lt = B.litHtmlPolyfillSupport;
|
1010
|
+
lt == null || lt($t, K), (B.litHtmlVersions ?? (B.litHtmlVersions = [])).push("3.3.0");
|
1011
|
+
const ii = (r, t, e) => {
|
1009
1012
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
1010
1013
|
let s = i._$litPart$;
|
1011
1014
|
if (s === void 0) {
|
1012
1015
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
1013
|
-
i._$litPart$ = s = new
|
1016
|
+
i._$litPart$ = s = new K(t.insertBefore(z(), o), o, void 0, e ?? {});
|
1014
1017
|
}
|
1015
1018
|
return s._$AI(r), s;
|
1016
1019
|
};
|
@@ -1019,7 +1022,8 @@ const ei = (r, t, e) => {
|
|
1019
1022
|
* Copyright 2017 Google LLC
|
1020
1023
|
* SPDX-License-Identifier: BSD-3-Clause
|
1021
1024
|
*/
|
1022
|
-
|
1025
|
+
const O = globalThis;
|
1026
|
+
let x = class extends T {
|
1023
1027
|
constructor() {
|
1024
1028
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
1025
1029
|
}
|
@@ -1030,7 +1034,7 @@ let x = class extends k {
|
|
1030
1034
|
}
|
1031
1035
|
update(t) {
|
1032
1036
|
const e = this.render();
|
1033
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1037
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = ii(e, this.renderRoot, this.renderOptions);
|
1034
1038
|
}
|
1035
1039
|
connectedCallback() {
|
1036
1040
|
var t;
|
@@ -1041,29 +1045,29 @@ let x = class extends k {
|
|
1041
1045
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
1042
1046
|
}
|
1043
1047
|
render() {
|
1044
|
-
return
|
1048
|
+
return k;
|
1045
1049
|
}
|
1046
1050
|
};
|
1047
|
-
var
|
1048
|
-
x._$litElement$ = !0, x.finalized = !0, (
|
1049
|
-
const
|
1050
|
-
|
1051
|
-
(
|
1051
|
+
var ae;
|
1052
|
+
x._$litElement$ = !0, x.finalized = !0, (ae = O.litElementHydrateSupport) == null || ae.call(O, { LitElement: x });
|
1053
|
+
const dt = O.litElementPolyfillSupport;
|
1054
|
+
dt == null || dt({ LitElement: x });
|
1055
|
+
(O.litElementVersions ?? (O.litElementVersions = [])).push("4.2.0");
|
1052
1056
|
/**
|
1053
1057
|
* @license
|
1054
1058
|
* Copyright 2017 Google LLC
|
1055
1059
|
* SPDX-License-Identifier: BSD-3-Clause
|
1056
1060
|
*/
|
1057
|
-
const
|
1061
|
+
const si = { attribute: !0, type: String, converter: Q, reflect: !1, hasChanged: Et }, ri = (r = si, t, e) => {
|
1058
1062
|
const { kind: i, metadata: s } = e;
|
1059
1063
|
let o = globalThis.litPropertyMetadata.get(s);
|
1060
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), o.set(e.name, r), i === "accessor") {
|
1064
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(s, o = /* @__PURE__ */ new Map()), i === "setter" && ((r = Object.create(r)).wrapped = !0), o.set(e.name, r), i === "accessor") {
|
1061
1065
|
const { name: n } = e;
|
1062
1066
|
return { set(a) {
|
1063
1067
|
const c = t.get.call(this);
|
1064
1068
|
t.set.call(this, a), this.requestUpdate(n, c, r);
|
1065
1069
|
}, init(a) {
|
1066
|
-
return a !== void 0 && this.
|
1070
|
+
return a !== void 0 && this.C(n, void 0, r, a), a;
|
1067
1071
|
} };
|
1068
1072
|
}
|
1069
1073
|
if (i === "setter") {
|
@@ -1076,9 +1080,9 @@ const ii = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged:
|
|
1076
1080
|
throw Error("Unsupported decorator location: " + i);
|
1077
1081
|
};
|
1078
1082
|
function m(r) {
|
1079
|
-
return (t, e) => typeof e == "object" ?
|
1083
|
+
return (t, e) => typeof e == "object" ? ri(r, t, e) : ((i, s, o) => {
|
1080
1084
|
const n = s.hasOwnProperty(o);
|
1081
|
-
return s.constructor.createProperty(o,
|
1085
|
+
return s.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(s, o) : void 0;
|
1082
1086
|
})(r, t, e);
|
1083
1087
|
}
|
1084
1088
|
/**
|
@@ -1086,15 +1090,15 @@ function m(r) {
|
|
1086
1090
|
* Copyright 2017 Google LLC
|
1087
1091
|
* SPDX-License-Identifier: BSD-3-Clause
|
1088
1092
|
*/
|
1089
|
-
function
|
1093
|
+
function j(r) {
|
1090
1094
|
return m({ ...r, state: !0, attribute: !1 });
|
1091
1095
|
}
|
1092
|
-
var
|
1096
|
+
var oi = Object.defineProperty, ni = (r, t, e, i) => {
|
1093
1097
|
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1094
1098
|
(n = r[o]) && (s = n(t, e, s) || s);
|
1095
|
-
return s &&
|
1099
|
+
return s && oi(t, e, s), s;
|
1096
1100
|
};
|
1097
|
-
const
|
1101
|
+
const Tt = class Tt extends x {
|
1098
1102
|
constructor() {
|
1099
1103
|
super(...arguments), this.anchor = "BottomRight";
|
1100
1104
|
}
|
@@ -1106,8 +1110,8 @@ const kt = class kt extends x {
|
|
1106
1110
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), p;
|
1107
1111
|
}
|
1108
1112
|
};
|
1109
|
-
|
1110
|
-
|
1113
|
+
Tt.styles = [
|
1114
|
+
L`
|
1111
1115
|
:host {
|
1112
1116
|
position: fixed;
|
1113
1117
|
display: flex;
|
@@ -1125,17 +1129,17 @@ kt.styles = [
|
|
1125
1129
|
}
|
1126
1130
|
`
|
1127
1131
|
];
|
1128
|
-
let
|
1129
|
-
|
1132
|
+
let W = Tt;
|
1133
|
+
ni([
|
1130
1134
|
m({ attribute: !0 })
|
1131
|
-
],
|
1135
|
+
], W.prototype, "anchor");
|
1132
1136
|
/**
|
1133
1137
|
* @license
|
1134
1138
|
* Copyright 2017 Google LLC
|
1135
1139
|
* SPDX-License-Identifier: BSD-3-Clause
|
1136
1140
|
*/
|
1137
|
-
const
|
1138
|
-
let
|
1141
|
+
const Ot = { ATTRIBUTE: 1, CHILD: 2 }, It = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
1142
|
+
let be = class {
|
1139
1143
|
constructor(t) {
|
1140
1144
|
}
|
1141
1145
|
get _$AU() {
|
@@ -1156,57 +1160,57 @@ let ye = class {
|
|
1156
1160
|
* Copyright 2020 Google LLC
|
1157
1161
|
* SPDX-License-Identifier: BSD-3-Clause
|
1158
1162
|
*/
|
1159
|
-
const
|
1163
|
+
const ai = (r) => r.strings === void 0;
|
1160
1164
|
/**
|
1161
1165
|
* @license
|
1162
1166
|
* Copyright 2017 Google LLC
|
1163
1167
|
* SPDX-License-Identifier: BSD-3-Clause
|
1164
1168
|
*/
|
1165
|
-
const
|
1169
|
+
const D = (r, t) => {
|
1166
1170
|
var i;
|
1167
1171
|
const e = r._$AN;
|
1168
1172
|
if (e === void 0) return !1;
|
1169
|
-
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1),
|
1173
|
+
for (const s of e) (i = s._$AO) == null || i.call(s, t, !1), D(s, t);
|
1170
1174
|
return !0;
|
1171
|
-
},
|
1175
|
+
}, et = (r) => {
|
1172
1176
|
let t, e;
|
1173
1177
|
do {
|
1174
1178
|
if ((t = r._$AM) === void 0) break;
|
1175
1179
|
e = t._$AN, e.delete(r), r = t;
|
1176
1180
|
} while ((e == null ? void 0 : e.size) === 0);
|
1177
|
-
},
|
1181
|
+
}, we = (r) => {
|
1178
1182
|
for (let t; t = r._$AM; r = t) {
|
1179
1183
|
let e = t._$AN;
|
1180
1184
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
1181
1185
|
else if (e.has(r)) break;
|
1182
|
-
e.add(r),
|
1186
|
+
e.add(r), li(t);
|
1183
1187
|
}
|
1184
1188
|
};
|
1185
|
-
function
|
1186
|
-
this._$AN !== void 0 ? (
|
1189
|
+
function ci(r) {
|
1190
|
+
this._$AN !== void 0 ? (et(this), this._$AM = r, we(this)) : this._$AM = r;
|
1187
1191
|
}
|
1188
|
-
function
|
1192
|
+
function hi(r, t = !1, e = 0) {
|
1189
1193
|
const i = this._$AH, s = this._$AN;
|
1190
|
-
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++)
|
1191
|
-
else i != null && (
|
1192
|
-
else
|
1194
|
+
if (s !== void 0 && s.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++) D(i[o], !1), et(i[o]);
|
1195
|
+
else i != null && (D(i, !1), et(i));
|
1196
|
+
else D(this, r);
|
1193
1197
|
}
|
1194
|
-
const
|
1195
|
-
r.type ==
|
1198
|
+
const li = (r) => {
|
1199
|
+
r.type == Ot.CHILD && (r._$AP ?? (r._$AP = hi), r._$AQ ?? (r._$AQ = ci));
|
1196
1200
|
};
|
1197
|
-
class
|
1201
|
+
class $e extends be {
|
1198
1202
|
constructor() {
|
1199
1203
|
super(...arguments), this._$AN = void 0;
|
1200
1204
|
}
|
1201
1205
|
_$AT(t, e, i) {
|
1202
|
-
super._$AT(t, e, i),
|
1206
|
+
super._$AT(t, e, i), we(this), this.isConnected = t._$AU;
|
1203
1207
|
}
|
1204
1208
|
_$AO(t, e = !0) {
|
1205
1209
|
var i, s;
|
1206
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (
|
1210
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (s = this.disconnected) == null || s.call(this)), e && (D(this, t), et(this));
|
1207
1211
|
}
|
1208
1212
|
setValue(t) {
|
1209
|
-
if (
|
1213
|
+
if (ai(this._$Ct)) this._$Ct._$AI(t, this);
|
1210
1214
|
else {
|
1211
1215
|
const e = [...this._$Ct._$AH];
|
1212
1216
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
@@ -1217,34 +1221,34 @@ class we extends ye {
|
|
1217
1221
|
reconnected() {
|
1218
1222
|
}
|
1219
1223
|
}
|
1220
|
-
const
|
1221
|
-
let
|
1222
|
-
const
|
1224
|
+
const di = /* @__PURE__ */ new WeakMap();
|
1225
|
+
let Qt = 0;
|
1226
|
+
const ut = /* @__PURE__ */ new Map(), te = /* @__PURE__ */ new WeakSet(), ee = () => new Promise((r) => requestAnimationFrame(r)), ui = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], ie = (r, t) => {
|
1223
1227
|
const e = r - t;
|
1224
1228
|
return e === 0 ? void 0 : e;
|
1225
|
-
},
|
1229
|
+
}, se = (r, t) => {
|
1226
1230
|
const e = r / t;
|
1227
1231
|
return e === 1 ? void 0 : e;
|
1228
|
-
},
|
1229
|
-
const e =
|
1232
|
+
}, pt = { left: (r, t) => {
|
1233
|
+
const e = ie(r, t);
|
1230
1234
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1231
1235
|
}, top: (r, t) => {
|
1232
|
-
const e =
|
1236
|
+
const e = ie(r, t);
|
1233
1237
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1234
1238
|
}, width: (r, t) => {
|
1235
1239
|
let e;
|
1236
1240
|
t === 0 && (t = 1, e = { width: "1px" });
|
1237
|
-
const i =
|
1241
|
+
const i = se(r, t);
|
1238
1242
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1239
1243
|
}, height: (r, t) => {
|
1240
1244
|
let e;
|
1241
1245
|
t === 0 && (t = 1, e = { height: "1px" });
|
1242
|
-
const i =
|
1246
|
+
const i = se(r, t);
|
1243
1247
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1244
|
-
} },
|
1245
|
-
class
|
1248
|
+
} }, pi = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"], re = /* @__PURE__ */ new WeakMap();
|
1249
|
+
class gi extends $e {
|
1246
1250
|
constructor(t) {
|
1247
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
1251
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Ot.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
1248
1252
|
this.createFinished();
|
1249
1253
|
}
|
1250
1254
|
createFinished() {
|
@@ -1261,7 +1265,7 @@ class fi extends we {
|
|
1261
1265
|
return p;
|
1262
1266
|
}
|
1263
1267
|
getController() {
|
1264
|
-
return
|
1268
|
+
return di.get(this.u);
|
1265
1269
|
}
|
1266
1270
|
isDisabled() {
|
1267
1271
|
var t;
|
@@ -1270,17 +1274,17 @@ class fi extends we {
|
|
1270
1274
|
update(t, [e]) {
|
1271
1275
|
var s;
|
1272
1276
|
const i = this.u === void 0;
|
1273
|
-
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element,
|
1277
|
+
return i && (this.u = (s = t.options) == null ? void 0 : s.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, re.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1274
1278
|
}
|
1275
1279
|
p(t) {
|
1276
1280
|
t = t ?? {};
|
1277
1281
|
const e = this.getController();
|
1278
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1282
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fi), this.options = t;
|
1279
1283
|
}
|
1280
1284
|
m() {
|
1281
1285
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1282
1286
|
return this.options.properties.forEach((s) => {
|
1283
|
-
const o = e[s] ?? (
|
1287
|
+
const o = e[s] ?? (pt[s] ? void 0 : i[s]), n = Number(o);
|
1284
1288
|
t[s] = isNaN(n) ? o + "" : n;
|
1285
1289
|
}), t;
|
1286
1290
|
}
|
@@ -1299,17 +1303,17 @@ class fi extends we {
|
|
1299
1303
|
async hostUpdated() {
|
1300
1304
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
1301
1305
|
let t;
|
1302
|
-
this.prepare(), await
|
1306
|
+
this.prepare(), await ee;
|
1303
1307
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), s = this.m();
|
1304
1308
|
if (this.A !== void 0) {
|
1305
1309
|
const { from: o, to: n } = this.N(this.A, s, e);
|
1306
1310
|
this.log("measured", [this.A, s, o, n]), t = this.calculateKeyframes(o, n);
|
1307
1311
|
} else {
|
1308
|
-
const o =
|
1312
|
+
const o = ut.get(this.options.inId);
|
1309
1313
|
if (o) {
|
1310
|
-
|
1314
|
+
ut.delete(this.options.inId);
|
1311
1315
|
const { from: n, to: a } = this.N(o, s, e);
|
1312
|
-
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1316
|
+
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Qt++, t.forEach((c) => c.zIndex = Qt);
|
1313
1317
|
} else this.options.in && (t = [...this.options.in, {}]);
|
1314
1318
|
}
|
1315
1319
|
this.animate(t, i);
|
@@ -1325,8 +1329,8 @@ class fi extends we {
|
|
1325
1329
|
}
|
1326
1330
|
async disconnected() {
|
1327
1331
|
var e;
|
1328
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1329
|
-
if (this.prepare(), await
|
1332
|
+
if (!this.h || (this.options.id !== void 0 && ut.set(this.options.id, this.A), this.options.out === void 0)) return;
|
1333
|
+
if (this.prepare(), await ee(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1330
1334
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1331
1335
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1332
1336
|
const s = this.m();
|
@@ -1352,19 +1356,19 @@ class fi extends we {
|
|
1352
1356
|
O() {
|
1353
1357
|
const t = [];
|
1354
1358
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1355
|
-
const i =
|
1359
|
+
const i = re.get(e);
|
1356
1360
|
i && !i.isDisabled() && i && t.push(i);
|
1357
1361
|
}
|
1358
1362
|
return t;
|
1359
1363
|
}
|
1360
1364
|
get isHostRendered() {
|
1361
|
-
const t =
|
1365
|
+
const t = te.has(this.u);
|
1362
1366
|
return t || this.u.updateComplete.then(() => {
|
1363
|
-
|
1367
|
+
te.add(this.u);
|
1364
1368
|
}), t;
|
1365
1369
|
}
|
1366
1370
|
j(t, e = this.O()) {
|
1367
|
-
const i = { ...
|
1371
|
+
const i = { ...pi };
|
1368
1372
|
return e.forEach((s) => Object.assign(i, s.options.keyframeOptions)), Object.assign(i, t), i;
|
1369
1373
|
}
|
1370
1374
|
N(t, e, i) {
|
@@ -1381,8 +1385,8 @@ class fi extends we {
|
|
1381
1385
|
const a = {};
|
1382
1386
|
for (const c in e) {
|
1383
1387
|
const l = t[c], h = e[c];
|
1384
|
-
if (c in
|
1385
|
-
const d =
|
1388
|
+
if (c in pt) {
|
1389
|
+
const d = pt[c];
|
1386
1390
|
if (l === void 0 || h === void 0) continue;
|
1387
1391
|
const u = d(l, h);
|
1388
1392
|
u.transform !== void 0 && (a[c] = u.value, n = !0, s.transform = `${s.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(s, u.overrideFrom));
|
@@ -1413,16 +1417,16 @@ class fi extends we {
|
|
1413
1417
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1414
1418
|
}
|
1415
1419
|
}
|
1416
|
-
const
|
1420
|
+
const mi = It(gi), vi = { 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>' };
|
1417
1421
|
/**
|
1418
1422
|
* @license
|
1419
1423
|
* Copyright 2018 Google LLC
|
1420
1424
|
* SPDX-License-Identifier: BSD-3-Clause
|
1421
1425
|
*/
|
1422
|
-
const
|
1426
|
+
const oe = It(class extends be {
|
1423
1427
|
constructor(r) {
|
1424
1428
|
var t;
|
1425
|
-
if (super(r), r.type !==
|
1429
|
+
if (super(r), r.type !== Ot.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1426
1430
|
}
|
1427
1431
|
render(r) {
|
1428
1432
|
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
@@ -1440,11 +1444,11 @@ const re = Ot(class extends ye {
|
|
1440
1444
|
const n = !!t[o];
|
1441
1445
|
n === this.st.has(o) || (s = this.nt) != null && s.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
1442
1446
|
}
|
1443
|
-
return
|
1447
|
+
return k;
|
1444
1448
|
}
|
1445
1449
|
}), w = (r, t, e) => {
|
1446
1450
|
r && e.style.setProperty(t, r);
|
1447
|
-
},
|
1451
|
+
}, _e = (r, t) => {
|
1448
1452
|
var e, i, s, o, n, a, c, l, h;
|
1449
1453
|
w((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), w(
|
1450
1454
|
(i = r.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
@@ -1481,28 +1485,28 @@ const re = Ot(class extends ye {
|
|
1481
1485
|
* Copyright 2020 Google LLC
|
1482
1486
|
* SPDX-License-Identifier: BSD-3-Clause
|
1483
1487
|
*/
|
1484
|
-
const
|
1485
|
-
class
|
1488
|
+
const xe = () => new yi();
|
1489
|
+
class yi {
|
1486
1490
|
}
|
1487
|
-
const
|
1491
|
+
const ft = /* @__PURE__ */ new WeakMap(), Ae = It(class extends $e {
|
1488
1492
|
render(r) {
|
1489
1493
|
return p;
|
1490
1494
|
}
|
1491
1495
|
update(r, [t]) {
|
1492
1496
|
var i;
|
1493
|
-
const e = t !== this.
|
1494
|
-
return e && this.
|
1497
|
+
const e = t !== this.G;
|
1498
|
+
return e && this.G !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.G = t, this.ht = (i = r.options) == null ? void 0 : i.host, this.rt(this.ct = r.element)), p;
|
1495
1499
|
}
|
1496
1500
|
rt(r) {
|
1497
|
-
if (this.isConnected || (r = void 0), typeof this.
|
1501
|
+
if (this.isConnected || (r = void 0), typeof this.G == "function") {
|
1498
1502
|
const t = this.ht ?? globalThis;
|
1499
|
-
let e =
|
1500
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1501
|
-
} else this.
|
1503
|
+
let e = ft.get(t);
|
1504
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ft.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ht, r);
|
1505
|
+
} else this.G.value = r;
|
1502
1506
|
}
|
1503
1507
|
get lt() {
|
1504
1508
|
var r, t;
|
1505
|
-
return typeof this.
|
1509
|
+
return typeof this.G == "function" ? (r = ft.get(this.ht ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1506
1510
|
}
|
1507
1511
|
disconnected() {
|
1508
1512
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1511,14 +1515,14 @@ const pt = /* @__PURE__ */ new WeakMap(), xe = Ot(class extends we {
|
|
1511
1515
|
this.rt(this.ct);
|
1512
1516
|
}
|
1513
1517
|
});
|
1514
|
-
var
|
1518
|
+
var bi = Object.defineProperty, Y = (r, t, e, i) => {
|
1515
1519
|
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1516
1520
|
(n = r[o]) && (s = n(t, e, s) || s);
|
1517
|
-
return s &&
|
1521
|
+
return s && bi(t, e, s), s;
|
1518
1522
|
};
|
1519
|
-
const
|
1523
|
+
const Rt = class Rt extends x {
|
1520
1524
|
constructor() {
|
1521
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1525
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = xe(), this.widgetActive$ = new At(!1), this.componentIsDestroyed$ = new xt();
|
1522
1526
|
}
|
1523
1527
|
async connectedCallback() {
|
1524
1528
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1553,21 +1557,21 @@ const Tt = class Tt extends x {
|
|
1553
1557
|
}
|
1554
1558
|
_applyBranding() {
|
1555
1559
|
var t;
|
1556
|
-
(t = this.application) != null && t.settings &&
|
1560
|
+
(t = this.application) != null && t.settings && _e(this.application.settings.branding, this);
|
1557
1561
|
}
|
1558
1562
|
async _renderSymbol() {
|
1559
1563
|
var a, c, l;
|
1560
1564
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1561
1565
|
if (e)
|
1562
|
-
return
|
1566
|
+
return R` <img src=${e} class="trigger-icon" alt="" /> `;
|
1563
1567
|
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1564
1568
|
if (!i)
|
1565
1569
|
return p;
|
1566
|
-
const s = async (h) =>
|
1570
|
+
const s = async (h) => vi, { type: o, content: n } = i;
|
1567
1571
|
switch (o) {
|
1568
1572
|
case "Telia": {
|
1569
1573
|
const h = await s();
|
1570
|
-
return h ?
|
1574
|
+
return h ? R`<telia-icon
|
1571
1575
|
class="trigger-icon"
|
1572
1576
|
svg=${h.svg}
|
1573
1577
|
size="lg"
|
@@ -1592,21 +1596,21 @@ const Tt = class Tt extends x {
|
|
1592
1596
|
}
|
1593
1597
|
render() {
|
1594
1598
|
var t, e, i, s;
|
1595
|
-
return
|
1596
|
-
class=${
|
1599
|
+
return R`<div
|
1600
|
+
class=${oe({
|
1597
1601
|
"trigger-container": !0,
|
1598
1602
|
hidden: !this.triggerVisible
|
1599
1603
|
})}
|
1600
|
-
${
|
1604
|
+
${Ae(this.containerRef)}
|
1601
1605
|
>
|
1602
|
-
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ?
|
1606
|
+
${!this.active && ((s = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && s.showButtonLabel) ? R`
|
1603
1607
|
<button
|
1604
1608
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1605
1609
|
class="trigger-label"
|
1606
1610
|
@click=${this.toggleActive}
|
1607
|
-
${
|
1611
|
+
${mi({
|
1608
1612
|
keyframeOptions: {},
|
1609
|
-
in:
|
1613
|
+
in: ui,
|
1610
1614
|
stabilizeOut: !0,
|
1611
1615
|
skipInitial: !1
|
1612
1616
|
})}
|
@@ -1617,7 +1621,7 @@ const Tt = class Tt extends x {
|
|
1617
1621
|
|
1618
1622
|
<button
|
1619
1623
|
label="Widget trigger"
|
1620
|
-
class=${
|
1624
|
+
class=${oe({
|
1621
1625
|
trigger: !0,
|
1622
1626
|
active: this.active,
|
1623
1627
|
rendered: this.loaded
|
@@ -1656,8 +1660,8 @@ const Tt = class Tt extends x {
|
|
1656
1660
|
</div>`;
|
1657
1661
|
}
|
1658
1662
|
};
|
1659
|
-
|
1660
|
-
|
1663
|
+
Rt.styles = [
|
1664
|
+
L`
|
1661
1665
|
:host {
|
1662
1666
|
--voca-rem-multiplier: 0.625;
|
1663
1667
|
--trigger-label-bg: #f5e0ff;
|
@@ -1788,28 +1792,28 @@ Tt.styles = [
|
|
1788
1792
|
}
|
1789
1793
|
`
|
1790
1794
|
];
|
1791
|
-
let b =
|
1792
|
-
|
1795
|
+
let b = Rt;
|
1796
|
+
Y([
|
1793
1797
|
m({ attribute: !1 })
|
1794
1798
|
], b.prototype, "application");
|
1795
|
-
|
1796
|
-
|
1799
|
+
Y([
|
1800
|
+
j()
|
1797
1801
|
], b.prototype, "active");
|
1798
|
-
|
1799
|
-
|
1802
|
+
Y([
|
1803
|
+
j()
|
1800
1804
|
], b.prototype, "triggerVisible");
|
1801
|
-
|
1802
|
-
|
1805
|
+
Y([
|
1806
|
+
j()
|
1803
1807
|
], b.prototype, "loaded");
|
1804
|
-
|
1805
|
-
|
1808
|
+
Y([
|
1809
|
+
j()
|
1806
1810
|
], b.prototype, "icon");
|
1807
|
-
var
|
1811
|
+
var wi = Object.defineProperty, E = (r, t, e, i) => {
|
1808
1812
|
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
1809
1813
|
(n = r[o]) && (s = n(t, e, s) || s);
|
1810
|
-
return s &&
|
1814
|
+
return s && wi(t, e, s), s;
|
1811
1815
|
};
|
1812
|
-
const
|
1816
|
+
const $i = (r) => {
|
1813
1817
|
const e = class e extends r {
|
1814
1818
|
constructor() {
|
1815
1819
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1835,7 +1839,7 @@ const wi = (r) => {
|
|
1835
1839
|
};
|
1836
1840
|
e.styles = [
|
1837
1841
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1838
|
-
|
1842
|
+
L`
|
1839
1843
|
:host {
|
1840
1844
|
font-family: var(--font-family);
|
1841
1845
|
grid-column: span var(--width);
|
@@ -1865,25 +1869,25 @@ const wi = (r) => {
|
|
1865
1869
|
], t.prototype, "application"), E([
|
1866
1870
|
m({ attribute: !1 })
|
1867
1871
|
], t.prototype, "parent"), t;
|
1868
|
-
},
|
1872
|
+
}, Mt = class Mt extends $i(x) {
|
1869
1873
|
render() {
|
1870
|
-
return
|
1874
|
+
return R`Non resolved component`;
|
1871
1875
|
}
|
1872
1876
|
};
|
1873
|
-
|
1874
|
-
|
1877
|
+
Mt.styles = [
|
1878
|
+
L`
|
1875
1879
|
:host {
|
1876
1880
|
display: block;
|
1877
1881
|
}
|
1878
1882
|
`
|
1879
1883
|
];
|
1880
|
-
let
|
1884
|
+
let it = Mt;
|
1881
1885
|
/**
|
1882
1886
|
* @license
|
1883
1887
|
* Copyright 2021 Google LLC
|
1884
1888
|
* SPDX-License-Identifier: BSD-3-Clause
|
1885
1889
|
*/
|
1886
|
-
function*
|
1890
|
+
function* _i(r, t) {
|
1887
1891
|
if (r !== void 0) {
|
1888
1892
|
let e = 0;
|
1889
1893
|
for (const i of r) yield t(i, e++);
|
@@ -1895,7 +1899,7 @@ var $ = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))
|
|
1895
1899
|
* Copyright 2021 Google LLC
|
1896
1900
|
* SPDX-License-Identifier: BSD-3-Clause
|
1897
1901
|
*/
|
1898
|
-
let
|
1902
|
+
let xi = class extends Event {
|
1899
1903
|
constructor(t, e, i, s) {
|
1900
1904
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = i, this.subscribe = s ?? !1;
|
1901
1905
|
}
|
@@ -1910,7 +1914,7 @@ let _i = class extends Event {
|
|
1910
1914
|
* Copyright 2021 Google LLC
|
1911
1915
|
* SPDX-License-Identifier: BSD-3-Clause
|
1912
1916
|
*/
|
1913
|
-
class
|
1917
|
+
class Ai {
|
1914
1918
|
get value() {
|
1915
1919
|
return this.o;
|
1916
1920
|
}
|
@@ -1943,12 +1947,12 @@ class xi {
|
|
1943
1947
|
* Copyright 2021 Google LLC
|
1944
1948
|
* SPDX-License-Identifier: BSD-3-Clause
|
1945
1949
|
*/
|
1946
|
-
let
|
1950
|
+
let Ci = class extends Event {
|
1947
1951
|
constructor(t, e) {
|
1948
1952
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
1949
1953
|
}
|
1950
1954
|
};
|
1951
|
-
class
|
1955
|
+
class ne extends Ai {
|
1952
1956
|
constructor(t, e, i) {
|
1953
1957
|
var s, o;
|
1954
1958
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
@@ -1958,7 +1962,7 @@ class oe extends xi {
|
|
1958
1962
|
}, this.onProviderRequest = (n) => {
|
1959
1963
|
if (n.context !== this.context || (n.contextTarget ?? n.composedPath()[0]) === this.host) return;
|
1960
1964
|
const a = /* @__PURE__ */ new Set();
|
1961
|
-
for (const [c, { consumerHost: l }] of this.subscriptions) a.has(c) || (a.add(c), l.dispatchEvent(new
|
1965
|
+
for (const [c, { consumerHost: l }] of this.subscriptions) a.has(c) || (a.add(c), l.dispatchEvent(new xi(this.context, l, c, !0)));
|
1962
1966
|
n.stopPropagation();
|
1963
1967
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (s = this.host).addController) == null || o.call(s, this);
|
1964
1968
|
}
|
@@ -1966,7 +1970,7 @@ class oe extends xi {
|
|
1966
1970
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
1967
1971
|
}
|
1968
1972
|
hostConnected() {
|
1969
|
-
this.host.dispatchEvent(new
|
1973
|
+
this.host.dispatchEvent(new Ci(this.context, this.host));
|
1970
1974
|
}
|
1971
1975
|
}
|
1972
1976
|
/**
|
@@ -1974,23 +1978,19 @@ class oe extends xi {
|
|
1974
1978
|
* Copyright 2017 Google LLC
|
1975
1979
|
* SPDX-License-Identifier: BSD-3-Clause
|
1976
1980
|
*/
|
1977
|
-
function
|
1981
|
+
function Si({ context: r }) {
|
1978
1982
|
return (t, e) => {
|
1979
1983
|
const i = /* @__PURE__ */ new WeakMap();
|
1980
|
-
if (typeof e == "object") return
|
1981
|
-
i.set(this, new oe(this, { context: r }));
|
1982
|
-
}), { get() {
|
1984
|
+
if (typeof e == "object") return { get() {
|
1983
1985
|
return t.get.call(this);
|
1984
1986
|
}, set(s) {
|
1985
|
-
|
1986
|
-
return (o = i.get(this)) == null || o.setValue(s), t.set.call(this, s);
|
1987
|
+
return i.get(this).setValue(s), t.set.call(this, s);
|
1987
1988
|
}, init(s) {
|
1988
|
-
|
1989
|
-
return (o = i.get(this)) == null || o.setValue(s), s;
|
1989
|
+
return i.set(this, new ne(this, { context: r, initialValue: s })), s;
|
1990
1990
|
} };
|
1991
1991
|
{
|
1992
1992
|
t.constructor.addInitializer((n) => {
|
1993
|
-
i.set(n, new
|
1993
|
+
i.set(n, new ne(n, { context: r }));
|
1994
1994
|
});
|
1995
1995
|
const s = Object.getOwnPropertyDescriptor(t, e);
|
1996
1996
|
let o;
|
@@ -2011,14 +2011,14 @@ function Ci({ context: r }) {
|
|
2011
2011
|
}
|
2012
2012
|
};
|
2013
2013
|
}
|
2014
|
-
var
|
2014
|
+
var Ei = Object.defineProperty, Ce = (r, t, e, i) => {
|
2015
2015
|
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
2016
2016
|
(n = r[o]) && (s = n(t, e, s) || s);
|
2017
|
-
return s &&
|
2017
|
+
return s && Ei(t, e, s), s;
|
2018
2018
|
};
|
2019
|
-
const
|
2019
|
+
const Pi = "application", Nt = class Nt extends x {
|
2020
2020
|
constructor() {
|
2021
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2021
|
+
super(...arguments), this.nodes = [], this.wrapperRef = xe(), this.fullscreen = !1, this.isReady = new At(!1);
|
2022
2022
|
}
|
2023
2023
|
addChild(t) {
|
2024
2024
|
t.parent = this, this.nodes.push(t);
|
@@ -2027,7 +2027,7 @@ const Ei = "application", Nt = class Nt extends x {
|
|
2027
2027
|
if (!this.wrapperRef.value)
|
2028
2028
|
return;
|
2029
2029
|
const t = this.application.settings;
|
2030
|
-
t != null && t.branding &&
|
2030
|
+
t != null && t.branding && _e(t.branding, this.wrapperRef.value);
|
2031
2031
|
}
|
2032
2032
|
applyStyles() {
|
2033
2033
|
if (!this.wrapperRef.value)
|
@@ -2043,12 +2043,12 @@ const Ei = "application", Nt = class Nt extends x {
|
|
2043
2043
|
render() {
|
2044
2044
|
var i, s;
|
2045
2045
|
const t = this.application.settings.components.conversation;
|
2046
|
-
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"),
|
2047
|
-
${
|
2046
|
+
return ((s = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : s.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === $.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), R`<div class="widget-container" ${Ae(this.wrapperRef)}>
|
2047
|
+
${_i(this.nodes, (o) => o)}
|
2048
2048
|
</div>`;
|
2049
2049
|
}
|
2050
2050
|
};
|
2051
|
-
Nt.styles =
|
2051
|
+
Nt.styles = L`
|
2052
2052
|
:host {
|
2053
2053
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2054
2054
|
--spacing-xs: 0.2rem;
|
@@ -2215,14 +2215,14 @@ Nt.styles = U`
|
|
2215
2215
|
}
|
2216
2216
|
`;
|
2217
2217
|
let N = Nt;
|
2218
|
-
|
2218
|
+
Ce([
|
2219
2219
|
m({ attribute: !0 })
|
2220
2220
|
], N.prototype, "fullscreen");
|
2221
|
-
|
2221
|
+
Ce([
|
2222
2222
|
m({ attribute: !1 }),
|
2223
|
-
|
2223
|
+
Si({ context: Pi })
|
2224
2224
|
], N.prototype, "application");
|
2225
|
-
class
|
2225
|
+
class Oi {
|
2226
2226
|
constructor() {
|
2227
2227
|
this.root = this.createRoot();
|
2228
2228
|
}
|
@@ -2266,7 +2266,7 @@ class Pi {
|
|
2266
2266
|
}
|
2267
2267
|
createNode(t, e) {
|
2268
2268
|
if (!this.resolveComponent(e))
|
2269
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
2269
|
+
return console.warn(`Unable to resolve component: ${e}`), new it();
|
2270
2270
|
const s = document.createElement(
|
2271
2271
|
`ace-${e}`
|
2272
2272
|
);
|
@@ -2279,7 +2279,7 @@ class Pi {
|
|
2279
2279
|
return this.root;
|
2280
2280
|
}
|
2281
2281
|
}
|
2282
|
-
const
|
2282
|
+
const st = class st {
|
2283
2283
|
constructor() {
|
2284
2284
|
this.components = /* @__PURE__ */ new Map();
|
2285
2285
|
}
|
@@ -2299,14 +2299,14 @@ const it = class it {
|
|
2299
2299
|
await Promise.all(t);
|
2300
2300
|
}
|
2301
2301
|
defineAsWebComponent(t, e) {
|
2302
|
-
const i =
|
2302
|
+
const i = st.ResolveWebComponentName(t);
|
2303
2303
|
customElements.get(i) || customElements.define(i, e);
|
2304
2304
|
}
|
2305
2305
|
};
|
2306
|
-
|
2307
|
-
let
|
2306
|
+
st.ResolveWebComponentName = (t) => `ace-${t}`;
|
2307
|
+
let _t = st;
|
2308
2308
|
var y = /* @__PURE__ */ ((r) => (r.Necessary = "necessary", r.Functional = "functional", r.Analytics = "analytics", r))(y || {});
|
2309
|
-
class
|
2309
|
+
class Ii {
|
2310
2310
|
constructor(t, e, i, s) {
|
2311
2311
|
this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries = s;
|
2312
2312
|
}
|
@@ -2363,7 +2363,7 @@ class Oi {
|
|
2363
2363
|
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
2364
2364
|
}
|
2365
2365
|
}
|
2366
|
-
class
|
2366
|
+
class ki {
|
2367
2367
|
constructor() {
|
2368
2368
|
this.texts = /* @__PURE__ */ new Map();
|
2369
2369
|
}
|
@@ -2378,8 +2378,8 @@ class Ii {
|
|
2378
2378
|
return this.texts.get(t) || e;
|
2379
2379
|
}
|
2380
2380
|
}
|
2381
|
-
const
|
2382
|
-
class
|
2381
|
+
const Ti = "##__WIDGETS_VERSION__##";
|
2382
|
+
class Ri {
|
2383
2383
|
constructor(t) {
|
2384
2384
|
this.widget = t, this.name = t.name;
|
2385
2385
|
}
|
@@ -2397,13 +2397,13 @@ class Ti {
|
|
2397
2397
|
}
|
2398
2398
|
version() {
|
2399
2399
|
return {
|
2400
|
-
version:
|
2400
|
+
version: Ti
|
2401
2401
|
};
|
2402
2402
|
}
|
2403
2403
|
}
|
2404
|
-
class
|
2404
|
+
class Mi {
|
2405
2405
|
constructor(t, e, i, s, o) {
|
2406
|
-
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new
|
2406
|
+
this.id = t, this.name = e, this.container = i, this.settings = s, this.options = o, this.platform = new Oi(), this.texts = new ki(), this.renderStrategy = $.Inline, this.fullscreen = !1, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new _t(), this.components = [], this.trigger = null, this.api = new Ri(this), this.onMessageReceived = async (a) => {
|
2407
2407
|
var l;
|
2408
2408
|
const c = a.data;
|
2409
2409
|
switch (c.type) {
|
@@ -2457,7 +2457,7 @@ class Ri {
|
|
2457
2457
|
[y.Functional]: !0,
|
2458
2458
|
[y.Analytics]: !0
|
2459
2459
|
};
|
2460
|
-
this.storage = new
|
2460
|
+
this.storage = new Ii(
|
2461
2461
|
this.id,
|
2462
2462
|
"sessionStorage",
|
2463
2463
|
n,
|
@@ -2465,7 +2465,7 @@ class Ri {
|
|
2465
2465
|
), typeof o.autoActivate == "boolean" && (this.autoActivate = o.autoActivate), o.anchor && (this.anchor = o.anchor), this.container.register("$settings", s), this.texts.loadTexts(s.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
2466
2466
|
}
|
2467
2467
|
async activate() {
|
2468
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2468
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(ue.Ready), this.autoActivate) {
|
2469
2469
|
const t = this.render();
|
2470
2470
|
t && this._getTargetElement().appendChild(t);
|
2471
2471
|
}
|
@@ -2531,7 +2531,7 @@ class Ri {
|
|
2531
2531
|
let e = document.querySelector(
|
2532
2532
|
`ace-trigger-slot.${t}`
|
2533
2533
|
);
|
2534
|
-
return e || (e = new
|
2534
|
+
return e || (e = new W(), e.anchor = this.anchor, document.body.appendChild(e)), e;
|
2535
2535
|
}
|
2536
2536
|
return document.body;
|
2537
2537
|
}
|
@@ -2551,10 +2551,10 @@ class Ri {
|
|
2551
2551
|
return this.root;
|
2552
2552
|
}
|
2553
2553
|
}
|
2554
|
-
const
|
2554
|
+
const Wi = (r) => new q(r), rt = class rt {
|
2555
2555
|
// TODO:
|
2556
2556
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2557
|
-
constructor(t =
|
2557
|
+
constructor(t = rt.endpoint) {
|
2558
2558
|
this._endpoint = t;
|
2559
2559
|
}
|
2560
2560
|
async getSite(t) {
|
@@ -2588,8 +2588,8 @@ const Vi = (r) => new W(r), st = class st {
|
|
2588
2588
|
} : null;
|
2589
2589
|
}
|
2590
2590
|
};
|
2591
|
-
|
2592
|
-
let
|
2591
|
+
rt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2592
|
+
let q = rt;
|
2593
2593
|
class Ni {
|
2594
2594
|
constructor(t) {
|
2595
2595
|
this.site = t;
|
@@ -2614,9 +2614,9 @@ class Ni {
|
|
2614
2614
|
});
|
2615
2615
|
}
|
2616
2616
|
}
|
2617
|
-
class
|
2617
|
+
class Ui {
|
2618
2618
|
constructor() {
|
2619
|
-
this.applications = [], this.container = new
|
2619
|
+
this.applications = [], this.container = new Dt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
|
2620
2620
|
this.notifyWidgetsOfCreation();
|
2621
2621
|
}, 1e3);
|
2622
2622
|
}
|
@@ -2690,7 +2690,7 @@ class Mi {
|
|
2690
2690
|
e(i == null ? void 0 : i.api);
|
2691
2691
|
}
|
2692
2692
|
registerApp(t, e, i, s) {
|
2693
|
-
const o = new
|
2693
|
+
const o = new Dt(e, this), n = new Mi(t, e, o, i, s);
|
2694
2694
|
this.applications.push(n);
|
2695
2695
|
}
|
2696
2696
|
registerSite(t) {
|
@@ -2702,9 +2702,9 @@ class Mi {
|
|
2702
2702
|
}), this;
|
2703
2703
|
}
|
2704
2704
|
}
|
2705
|
-
class
|
2705
|
+
class Li {
|
2706
2706
|
constructor(t) {
|
2707
|
-
this.configurations = [], this.httpClient = new
|
2707
|
+
this.configurations = [], this.httpClient = new q(), this.api = new Ni(this), this.triggers = [], this.httpClient = new q(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2708
2708
|
}
|
2709
2709
|
async load(t) {
|
2710
2710
|
const e = await this.httpClient.getSite(t);
|
@@ -2732,7 +2732,7 @@ class Ui {
|
|
2732
2732
|
}
|
2733
2733
|
async bootstrap(t) {
|
2734
2734
|
var e;
|
2735
|
-
this.url && await this.load(this.url), this.environment = new
|
2735
|
+
this.url && await this.load(this.url), this.environment = new Ui(), this.addGlobal(this.environment);
|
2736
2736
|
for await (const i of this.configurations) {
|
2737
2737
|
const s = await this.httpClient.getWidget(i.widgetId);
|
2738
2738
|
s && ((e = this.environment) == null || e.registerApp(
|
@@ -2758,12 +2758,12 @@ class Ui {
|
|
2758
2758
|
}), globalThis.ace = t;
|
2759
2759
|
}
|
2760
2760
|
}
|
2761
|
-
var
|
2761
|
+
var ji = Object.defineProperty, kt = (r, t, e, i) => {
|
2762
2762
|
for (var s = void 0, o = r.length - 1, n; o >= 0; o--)
|
2763
2763
|
(n = r[o]) && (s = n(t, e, s) || s);
|
2764
|
-
return s &&
|
2764
|
+
return s && ji(t, e, s), s;
|
2765
2765
|
};
|
2766
|
-
const
|
2766
|
+
const Ut = class Ut extends x {
|
2767
2767
|
constructor() {
|
2768
2768
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2769
2769
|
}
|
@@ -2795,44 +2795,44 @@ const Mt = class Mt extends x {
|
|
2795
2795
|
return this.widget.render();
|
2796
2796
|
}
|
2797
2797
|
};
|
2798
|
-
|
2799
|
-
|
2798
|
+
Ut.styles = [
|
2799
|
+
L`
|
2800
2800
|
:host {
|
2801
2801
|
display: block;
|
2802
2802
|
}
|
2803
2803
|
`
|
2804
2804
|
];
|
2805
|
-
let
|
2806
|
-
|
2805
|
+
let U = Ut;
|
2806
|
+
kt([
|
2807
2807
|
m({ attribute: !0 })
|
2808
|
-
],
|
2809
|
-
|
2810
|
-
|
2811
|
-
],
|
2812
|
-
|
2813
|
-
|
2814
|
-
],
|
2815
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2808
|
+
], U.prototype, "name");
|
2809
|
+
kt([
|
2810
|
+
j()
|
2811
|
+
], U.prototype, "widget");
|
2812
|
+
kt([
|
2813
|
+
j()
|
2814
|
+
], U.prototype, "status");
|
2815
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", W);
|
2816
2816
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", b);
|
2817
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2817
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", it);
|
2818
2818
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", N);
|
2819
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2820
|
-
const
|
2821
|
-
const i = new
|
2819
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", U);
|
2820
|
+
const qi = async (r, t, e = {}) => {
|
2821
|
+
const i = new Li(r);
|
2822
2822
|
e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
|
2823
2823
|
};
|
2824
2824
|
export {
|
2825
|
-
|
2826
|
-
|
2827
|
-
|
2828
|
-
|
2829
|
-
|
2830
|
-
|
2825
|
+
U as AceWidget,
|
2826
|
+
Mi as Application,
|
2827
|
+
Dt as Container,
|
2828
|
+
Ui as Environment,
|
2829
|
+
q as HttpClient,
|
2830
|
+
Li as Site,
|
2831
2831
|
y as StorageCategory,
|
2832
|
-
|
2832
|
+
Ii as StorageService,
|
2833
2833
|
b as Trigger,
|
2834
|
-
|
2835
|
-
|
2836
|
-
|
2837
|
-
|
2834
|
+
$i as WidgetComponent,
|
2835
|
+
Pi as applicationContext,
|
2836
|
+
qi as bootstrap,
|
2837
|
+
Wi as createHttpClient
|
2838
2838
|
};
|