@telia-ace/widget-core-flamingo 1.1.77 → 1.1.79-rc.0
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +33 -33
- package/index.mjs +475 -440
- package/package.json +1 -1
package/index.mjs
CHANGED
@@ -1,21 +1,21 @@
|
|
1
|
-
var
|
2
|
-
return
|
1
|
+
var ft = function(s, t) {
|
2
|
+
return ft = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
3
3
|
e.__proto__ = i;
|
4
4
|
} || function(e, i) {
|
5
5
|
for (var r in i)
|
6
6
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
7
|
-
},
|
7
|
+
}, ft(s, t);
|
8
8
|
};
|
9
|
-
function
|
9
|
+
function z(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
|
+
ft(s, t);
|
13
13
|
function e() {
|
14
14
|
this.constructor = s;
|
15
15
|
}
|
16
16
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
17
17
|
}
|
18
|
-
function
|
18
|
+
function gt(s) {
|
19
19
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
20
20
|
if (e)
|
21
21
|
return e.call(s);
|
@@ -27,7 +27,7 @@ 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 Z(s, t) {
|
31
31
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
32
32
|
if (!e)
|
33
33
|
return s;
|
@@ -47,22 +47,22 @@ function J(s, t) {
|
|
47
47
|
}
|
48
48
|
return n;
|
49
49
|
}
|
50
|
-
function
|
50
|
+
function J(s, t, e) {
|
51
51
|
if (e || arguments.length === 2)
|
52
52
|
for (var i = 0, r = t.length, n; i < r; i++)
|
53
53
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
54
54
|
return s.concat(n || Array.prototype.slice.call(t));
|
55
55
|
}
|
56
|
-
function
|
56
|
+
function $(s) {
|
57
57
|
return typeof s == "function";
|
58
58
|
}
|
59
|
-
function
|
59
|
+
function te(s) {
|
60
60
|
var t = function(i) {
|
61
61
|
Error.call(i), i.stack = new Error().stack;
|
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 = te(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) {
|
@@ -71,13 +71,13 @@ var ot = Qt(function(s) {
|
|
71
71
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
72
72
|
};
|
73
73
|
});
|
74
|
-
function
|
74
|
+
function mt(s, t) {
|
75
75
|
if (s) {
|
76
76
|
var e = s.indexOf(t);
|
77
77
|
0 <= e && s.splice(e, 1);
|
78
78
|
}
|
79
79
|
}
|
80
|
-
var
|
80
|
+
var et = function() {
|
81
81
|
function s(t) {
|
82
82
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
83
83
|
}
|
@@ -89,9 +89,9 @@ var it = function() {
|
|
89
89
|
if (o)
|
90
90
|
if (this._parentage = null, Array.isArray(o))
|
91
91
|
try {
|
92
|
-
for (var a =
|
93
|
-
var
|
94
|
-
|
92
|
+
for (var a = gt(o), c = a.next(); !c.done; c = a.next()) {
|
93
|
+
var l = c.value;
|
94
|
+
l.remove(this);
|
95
95
|
}
|
96
96
|
} catch (v) {
|
97
97
|
t = { error: v };
|
@@ -105,23 +105,23 @@ var it = function() {
|
|
105
105
|
}
|
106
106
|
else
|
107
107
|
o.remove(this);
|
108
|
-
var
|
109
|
-
if (
|
108
|
+
var h = this.initialTeardown;
|
109
|
+
if ($(h))
|
110
110
|
try {
|
111
|
-
|
111
|
+
h();
|
112
112
|
} catch (v) {
|
113
|
-
n = v instanceof
|
113
|
+
n = v instanceof nt ? v.errors : [v];
|
114
114
|
}
|
115
115
|
var d = this._finalizers;
|
116
116
|
if (d) {
|
117
117
|
this._finalizers = null;
|
118
118
|
try {
|
119
|
-
for (var p =
|
119
|
+
for (var p = gt(d), f = p.next(); !f.done; f = p.next()) {
|
120
120
|
var g = f.value;
|
121
121
|
try {
|
122
|
-
|
122
|
+
Ot(g);
|
123
123
|
} catch (v) {
|
124
|
-
n = n ?? [], v instanceof
|
124
|
+
n = n ?? [], v instanceof nt ? n = J(J([], Z(n)), Z(v.errors)) : n.push(v);
|
125
125
|
}
|
126
126
|
}
|
127
127
|
} catch (v) {
|
@@ -136,13 +136,13 @@ var it = function() {
|
|
136
136
|
}
|
137
137
|
}
|
138
138
|
if (n)
|
139
|
-
throw new
|
139
|
+
throw new nt(n);
|
140
140
|
}
|
141
141
|
}, s.prototype.add = function(t) {
|
142
142
|
var e;
|
143
143
|
if (t && t !== this)
|
144
144
|
if (this.closed)
|
145
|
-
|
145
|
+
Ot(t);
|
146
146
|
else {
|
147
147
|
if (t instanceof s) {
|
148
148
|
if (t.closed || t._hasParent(this))
|
@@ -159,58 +159,58 @@ var it = function() {
|
|
159
159
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
160
160
|
}, s.prototype._removeParent = function(t) {
|
161
161
|
var e = this._parentage;
|
162
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
162
|
+
e === t ? this._parentage = null : Array.isArray(e) && mt(e, t);
|
163
163
|
}, s.prototype.remove = function(t) {
|
164
164
|
var e = this._finalizers;
|
165
|
-
e &&
|
165
|
+
e && mt(e, t), t instanceof s && t._removeParent(this);
|
166
166
|
}, s.EMPTY = function() {
|
167
167
|
var t = new s();
|
168
168
|
return t.closed = !0, t;
|
169
169
|
}(), s;
|
170
|
-
}(),
|
171
|
-
function
|
172
|
-
return s instanceof
|
170
|
+
}(), ee = et.EMPTY;
|
171
|
+
function ie(s) {
|
172
|
+
return s instanceof et || s && "closed" in s && $(s.remove) && $(s.add) && $(s.unsubscribe);
|
173
173
|
}
|
174
|
-
function
|
175
|
-
|
174
|
+
function Ot(s) {
|
175
|
+
$(s) ? s() : s.unsubscribe();
|
176
176
|
}
|
177
|
-
var
|
177
|
+
var se = {
|
178
178
|
onUnhandledError: null,
|
179
179
|
onStoppedNotification: null,
|
180
180
|
Promise: void 0,
|
181
181
|
useDeprecatedSynchronousErrorHandling: !1,
|
182
182
|
useDeprecatedNextContext: !1
|
183
|
-
},
|
183
|
+
}, vt = {
|
184
184
|
setTimeout: function(s, t) {
|
185
185
|
for (var e = [], i = 2; i < arguments.length; i++)
|
186
186
|
e[i - 2] = arguments[i];
|
187
|
-
var r =
|
188
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r,
|
187
|
+
var r = vt.delegate;
|
188
|
+
return r != null && r.setTimeout ? r.setTimeout.apply(r, J([s, t], Z(e))) : setTimeout.apply(void 0, J([s, t], Z(e)));
|
189
189
|
},
|
190
190
|
clearTimeout: function(s) {
|
191
|
-
var t =
|
191
|
+
var t = vt.delegate;
|
192
192
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
193
193
|
},
|
194
194
|
delegate: void 0
|
195
195
|
};
|
196
|
-
function
|
197
|
-
|
196
|
+
function _e(s) {
|
197
|
+
vt.setTimeout(function() {
|
198
198
|
throw s;
|
199
199
|
});
|
200
200
|
}
|
201
|
-
function
|
201
|
+
function Tt() {
|
202
202
|
}
|
203
|
-
function
|
203
|
+
function q(s) {
|
204
204
|
s();
|
205
205
|
}
|
206
|
-
var
|
207
|
-
|
206
|
+
var re = function(s) {
|
207
|
+
z(t, s);
|
208
208
|
function t(e) {
|
209
209
|
var i = s.call(this) || this;
|
210
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
210
|
+
return i.isStopped = !1, e ? (i.destination = e, ie(e) && e.add(i)) : i.destination = Se, i;
|
211
211
|
}
|
212
212
|
return t.create = function(e, i, r) {
|
213
|
-
return new
|
213
|
+
return new yt(e, i, r);
|
214
214
|
}, t.prototype.next = function(e) {
|
215
215
|
this.isStopped || this._next(e);
|
216
216
|
}, t.prototype.error = function(e) {
|
@@ -234,11 +234,11 @@ var se = function(s) {
|
|
234
234
|
this.unsubscribe();
|
235
235
|
}
|
236
236
|
}, t;
|
237
|
-
}(
|
238
|
-
function
|
239
|
-
return
|
237
|
+
}(et), Ae = Function.prototype.bind;
|
238
|
+
function ot(s, t) {
|
239
|
+
return Ae.call(s, t);
|
240
240
|
}
|
241
|
-
var
|
241
|
+
var xe = function() {
|
242
242
|
function s(t) {
|
243
243
|
this.partialObserver = t;
|
244
244
|
}
|
@@ -248,7 +248,7 @@ var Ae = function() {
|
|
248
248
|
try {
|
249
249
|
e.next(t);
|
250
250
|
} catch (i) {
|
251
|
-
|
251
|
+
Y(i);
|
252
252
|
}
|
253
253
|
}, s.prototype.error = function(t) {
|
254
254
|
var e = this.partialObserver;
|
@@ -256,24 +256,24 @@ var Ae = function() {
|
|
256
256
|
try {
|
257
257
|
e.error(t);
|
258
258
|
} catch (i) {
|
259
|
-
|
259
|
+
Y(i);
|
260
260
|
}
|
261
261
|
else
|
262
|
-
|
262
|
+
Y(t);
|
263
263
|
}, s.prototype.complete = function() {
|
264
264
|
var t = this.partialObserver;
|
265
265
|
if (t.complete)
|
266
266
|
try {
|
267
267
|
t.complete();
|
268
268
|
} catch (e) {
|
269
|
-
|
269
|
+
Y(e);
|
270
270
|
}
|
271
271
|
}, s;
|
272
|
-
}(),
|
273
|
-
|
272
|
+
}(), yt = function(s) {
|
273
|
+
z(t, s);
|
274
274
|
function t(e, i, r) {
|
275
275
|
var n = s.call(this) || this, o;
|
276
|
-
if (
|
276
|
+
if ($(e) || !e)
|
277
277
|
o = {
|
278
278
|
next: e ?? void 0,
|
279
279
|
error: i ?? void 0,
|
@@ -281,43 +281,43 @@ var Ae = function() {
|
|
281
281
|
};
|
282
282
|
else {
|
283
283
|
var a;
|
284
|
-
n &&
|
284
|
+
n && se.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
285
285
|
return n.unsubscribe();
|
286
286
|
}, o = {
|
287
|
-
next: e.next &&
|
288
|
-
error: e.error &&
|
289
|
-
complete: e.complete &&
|
287
|
+
next: e.next && ot(e.next, a),
|
288
|
+
error: e.error && ot(e.error, a),
|
289
|
+
complete: e.complete && ot(e.complete, a)
|
290
290
|
}) : o = e;
|
291
291
|
}
|
292
|
-
return n.destination = new
|
292
|
+
return n.destination = new xe(o), n;
|
293
293
|
}
|
294
294
|
return t;
|
295
|
-
}(
|
296
|
-
function
|
297
|
-
|
295
|
+
}(re);
|
296
|
+
function Y(s) {
|
297
|
+
_e(s);
|
298
298
|
}
|
299
|
-
function
|
299
|
+
function Ce(s) {
|
300
300
|
throw s;
|
301
301
|
}
|
302
|
-
var
|
302
|
+
var Se = {
|
303
303
|
closed: !0,
|
304
|
-
next:
|
305
|
-
error:
|
306
|
-
complete:
|
307
|
-
},
|
304
|
+
next: Tt,
|
305
|
+
error: Ce,
|
306
|
+
complete: Tt
|
307
|
+
}, Ee = function() {
|
308
308
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
309
309
|
}();
|
310
|
-
function
|
310
|
+
function Pe(s) {
|
311
311
|
return s;
|
312
312
|
}
|
313
|
-
function
|
314
|
-
return s.length === 0 ?
|
313
|
+
function Oe(s) {
|
314
|
+
return s.length === 0 ? Pe : s.length === 1 ? s[0] : function(e) {
|
315
315
|
return s.reduce(function(i, r) {
|
316
316
|
return r(i);
|
317
317
|
}, e);
|
318
318
|
};
|
319
319
|
}
|
320
|
-
var
|
320
|
+
var It = function() {
|
321
321
|
function s(t) {
|
322
322
|
t && (this._subscribe = t);
|
323
323
|
}
|
@@ -325,8 +325,8 @@ 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, n =
|
329
|
-
return
|
328
|
+
var r = this, n = Ie(t) ? t : new yt(t, e, i);
|
329
|
+
return q(function() {
|
330
330
|
var o = r, a = o.operator, c = o.source;
|
331
331
|
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
332
332
|
}), n;
|
@@ -338,8 +338,8 @@ var Tt = function() {
|
|
338
338
|
}
|
339
339
|
}, s.prototype.forEach = function(t, e) {
|
340
340
|
var i = this;
|
341
|
-
return e =
|
342
|
-
var o = new
|
341
|
+
return e = Rt(e), new e(function(r, n) {
|
342
|
+
var o = new yt({
|
343
343
|
next: function(a) {
|
344
344
|
try {
|
345
345
|
t(a);
|
@@ -355,15 +355,15 @@ var Tt = function() {
|
|
355
355
|
}, s.prototype._subscribe = function(t) {
|
356
356
|
var e;
|
357
357
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
358
|
-
}, s.prototype[
|
358
|
+
}, s.prototype[Ee] = function() {
|
359
359
|
return this;
|
360
360
|
}, s.prototype.pipe = function() {
|
361
361
|
for (var t = [], e = 0; e < arguments.length; e++)
|
362
362
|
t[e] = arguments[e];
|
363
|
-
return
|
363
|
+
return Oe(t)(this);
|
364
364
|
}, s.prototype.toPromise = function(t) {
|
365
365
|
var e = this;
|
366
|
-
return t =
|
366
|
+
return t = Rt(t), new t(function(i, r) {
|
367
367
|
var n;
|
368
368
|
e.subscribe(function(o) {
|
369
369
|
return n = o;
|
@@ -377,45 +377,45 @@ var Tt = function() {
|
|
377
377
|
return new s(t);
|
378
378
|
}, s;
|
379
379
|
}();
|
380
|
-
function
|
380
|
+
function Rt(s) {
|
381
381
|
var t;
|
382
|
-
return (t = s ??
|
383
|
-
}
|
384
|
-
function Oe(s) {
|
385
|
-
return s && w(s.next) && w(s.error) && w(s.complete);
|
382
|
+
return (t = s ?? se.Promise) !== null && t !== void 0 ? t : Promise;
|
386
383
|
}
|
387
384
|
function Te(s) {
|
388
|
-
return s && s
|
385
|
+
return s && $(s.next) && $(s.error) && $(s.complete);
|
386
|
+
}
|
387
|
+
function Ie(s) {
|
388
|
+
return s && s instanceof re || Te(s) && ie(s);
|
389
389
|
}
|
390
|
-
var
|
390
|
+
var Re = te(function(s) {
|
391
391
|
return function() {
|
392
392
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
393
393
|
};
|
394
394
|
}), wt = function(s) {
|
395
|
-
|
395
|
+
z(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;
|
399
399
|
}
|
400
400
|
return t.prototype.lift = function(e) {
|
401
|
-
var i = new
|
401
|
+
var i = new kt(this, this);
|
402
402
|
return i.operator = e, i;
|
403
403
|
}, t.prototype._throwIfClosed = function() {
|
404
404
|
if (this.closed)
|
405
|
-
throw new
|
405
|
+
throw new Re();
|
406
406
|
}, t.prototype.next = function(e) {
|
407
407
|
var i = this;
|
408
|
-
|
408
|
+
q(function() {
|
409
409
|
var r, n;
|
410
410
|
if (i._throwIfClosed(), !i.isStopped) {
|
411
411
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
412
412
|
try {
|
413
|
-
for (var o =
|
413
|
+
for (var o = gt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
414
414
|
var c = a.value;
|
415
415
|
c.next(e);
|
416
416
|
}
|
417
|
-
} catch (
|
418
|
-
r = { error:
|
417
|
+
} catch (l) {
|
418
|
+
r = { error: l };
|
419
419
|
} finally {
|
420
420
|
try {
|
421
421
|
a && !a.done && (n = o.return) && n.call(o);
|
@@ -428,7 +428,7 @@ var Ie = Qt(function(s) {
|
|
428
428
|
});
|
429
429
|
}, t.prototype.error = function(e) {
|
430
430
|
var i = this;
|
431
|
-
|
431
|
+
q(function() {
|
432
432
|
if (i._throwIfClosed(), !i.isStopped) {
|
433
433
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
434
434
|
for (var r = i.observers; r.length; )
|
@@ -437,7 +437,7 @@ var Ie = Qt(function(s) {
|
|
437
437
|
});
|
438
438
|
}, t.prototype.complete = function() {
|
439
439
|
var e = this;
|
440
|
-
|
440
|
+
q(function() {
|
441
441
|
if (e._throwIfClosed(), !e.isStopped) {
|
442
442
|
e.isStopped = !0;
|
443
443
|
for (var i = e.observers; i.length; )
|
@@ -459,20 +459,20 @@ var Ie = Qt(function(s) {
|
|
459
459
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
460
460
|
}, t.prototype._innerSubscribe = function(e) {
|
461
461
|
var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
462
|
-
return n || o ?
|
463
|
-
i.currentObservers = null,
|
462
|
+
return n || o ? ee : (this.currentObservers = null, a.push(e), new et(function() {
|
463
|
+
i.currentObservers = null, mt(a, e);
|
464
464
|
}));
|
465
465
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
466
466
|
var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
|
467
467
|
r ? e.error(n) : o && e.complete();
|
468
468
|
}, t.prototype.asObservable = function() {
|
469
|
-
var e = new
|
469
|
+
var e = new It();
|
470
470
|
return e.source = this, e;
|
471
471
|
}, t.create = function(e, i) {
|
472
|
-
return new
|
472
|
+
return new kt(e, i);
|
473
473
|
}, t;
|
474
|
-
}(
|
475
|
-
|
474
|
+
}(It), kt = function(s) {
|
475
|
+
z(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;
|
@@ -488,10 +488,10 @@ var Ie = Qt(function(s) {
|
|
488
488
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
489
489
|
}, t.prototype._subscribe = function(e) {
|
490
490
|
var i, r;
|
491
|
-
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r :
|
491
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : ee;
|
492
492
|
}, t;
|
493
|
-
}(wt),
|
494
|
-
|
493
|
+
}(wt), ne = function(s) {
|
494
|
+
z(t, s);
|
495
495
|
function t(e) {
|
496
496
|
var i = s.call(this) || this;
|
497
497
|
return i._value = e, i;
|
@@ -513,10 +513,10 @@ var Ie = Qt(function(s) {
|
|
513
513
|
}, t.prototype.next = function(e) {
|
514
514
|
s.prototype.next.call(this, this._value = e);
|
515
515
|
}, t;
|
516
|
-
}(wt),
|
517
|
-
class
|
516
|
+
}(wt), oe = /* @__PURE__ */ ((s) => (s.Loading = "loading", s.Ready = "ready", s))(oe || {});
|
517
|
+
class Mt {
|
518
518
|
constructor(t, e) {
|
519
|
-
this.state = new
|
519
|
+
this.state = new ne(
|
520
520
|
"loading"
|
521
521
|
/* Loading */
|
522
522
|
), this.resolvers = /* @__PURE__ */ new Map(), this.name = t, this.environment = e, this.state.next(
|
@@ -539,8 +539,8 @@ class kt {
|
|
539
539
|
* Copyright 2019 Google LLC
|
540
540
|
* SPDX-License-Identifier: BSD-3-Clause
|
541
541
|
*/
|
542
|
-
const
|
543
|
-
let
|
542
|
+
const K = globalThis, $t = K.ShadowRoot && (K.ShadyCSS === void 0 || K.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, _t = Symbol(), Nt = /* @__PURE__ */ new WeakMap();
|
543
|
+
let ae = 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 ($t && 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,7 +559,7 @@ let oe = class {
|
|
559
559
|
return this.cssText;
|
560
560
|
}
|
561
561
|
};
|
562
|
-
const
|
562
|
+
const ke = (s) => new ae(typeof s == "string" ? s : s + "", void 0, _t), M = (s, ...t) => {
|
563
563
|
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
564
564
|
if (o._$cssResult$ === !0)
|
565
565
|
return o.cssText;
|
@@ -567,30 +567,30 @@ const Re = (s) => new oe(typeof s == "string" ? s : s + "", void 0, _t), U = (s,
|
|
567
567
|
return o;
|
568
568
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
569
569
|
})(r) + s[n + 1], s[0]);
|
570
|
-
return new
|
571
|
-
},
|
570
|
+
return new ae(e, s, _t);
|
571
|
+
}, Me = (s, t) => {
|
572
572
|
if ($t)
|
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 = K.litNonce;
|
577
577
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
578
578
|
}
|
579
|
-
},
|
579
|
+
}, Ut = $t ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
580
580
|
let e = "";
|
581
581
|
for (const i of t.cssRules)
|
582
582
|
e += i.cssText;
|
583
|
-
return
|
583
|
+
return ke(e);
|
584
584
|
})(s) : s;
|
585
585
|
/**
|
586
586
|
* @license
|
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: Le, getOwnPropertySymbols: He, getPrototypeOf: De } = Object, C = globalThis, jt = C.trustedTypes, Be = jt ? jt.emptyScript : "", at = C.reactiveElementPolyfillSupport, j = (s, t) => s, G = { toAttribute(s, t) {
|
591
591
|
switch (t) {
|
592
592
|
case Boolean:
|
593
|
-
s = s ?
|
593
|
+
s = s ? Be : null;
|
594
594
|
break;
|
595
595
|
case Object:
|
596
596
|
case Array:
|
@@ -615,8 +615,8 @@ const { is: Ue, defineProperty: Ne, getOwnPropertyDescriptor: Me, getOwnProperty
|
|
615
615
|
}
|
616
616
|
}
|
617
617
|
return e;
|
618
|
-
} }, At = (s, t) => !
|
619
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
618
|
+
} }, At = (s, t) => !Ne(s, t), Lt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: At };
|
619
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
620
620
|
let I = class extends HTMLElement {
|
621
621
|
static addInitializer(t) {
|
622
622
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
@@ -624,14 +624,14 @@ let I = class extends HTMLElement {
|
|
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 = Lt) {
|
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: n } =
|
634
|
+
const { get: r, set: n } = je(this.prototype, t) ?? { get() {
|
635
635
|
return this[e];
|
636
636
|
}, set(o) {
|
637
637
|
this[e] = o;
|
@@ -644,19 +644,19 @@ let I = class extends HTMLElement {
|
|
644
644
|
}, configurable: !0, enumerable: !0 };
|
645
645
|
}
|
646
646
|
static getPropertyOptions(t) {
|
647
|
-
return this.elementProperties.get(t) ??
|
647
|
+
return this.elementProperties.get(t) ?? Lt;
|
648
648
|
}
|
649
649
|
static _$Ei() {
|
650
650
|
if (this.hasOwnProperty(j("elementProperties")))
|
651
651
|
return;
|
652
|
-
const t =
|
652
|
+
const t = De(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
656
|
if (this.hasOwnProperty(j("finalized")))
|
657
657
|
return;
|
658
658
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
|
659
|
-
const e = this.properties, i = [...
|
659
|
+
const e = this.properties, i = [...Le(e), ...He(e)];
|
660
660
|
for (const r of i)
|
661
661
|
this.createProperty(r, e[r]);
|
662
662
|
}
|
@@ -679,9 +679,9 @@ let I = 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 I = class extends HTMLElement {
|
|
711
711
|
}
|
712
712
|
createRenderRoot() {
|
713
713
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
714
|
-
return
|
714
|
+
return Me(t, this.constructor.elementStyles), t;
|
715
715
|
}
|
716
716
|
connectedCallback() {
|
717
717
|
var t;
|
@@ -736,7 +736,7 @@ let I = class extends HTMLElement {
|
|
736
736
|
var n;
|
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 o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
739
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : G).toAttribute(e, i.type);
|
740
740
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
741
741
|
}
|
742
742
|
}
|
@@ -744,7 +744,7 @@ let I = class extends HTMLElement {
|
|
744
744
|
var n;
|
745
745
|
const i = this.constructor, r = i._$Eh.get(t);
|
746
746
|
if (r !== void 0 && this._$Em !== r) {
|
747
|
-
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter :
|
747
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : G;
|
748
748
|
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
749
749
|
}
|
750
750
|
}
|
@@ -828,68 +828,68 @@ let I = class extends HTMLElement {
|
|
828
828
|
firstUpdated(t) {
|
829
829
|
}
|
830
830
|
};
|
831
|
-
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[j("elementProperties")] = /* @__PURE__ */ new Map(), I[j("finalized")] = /* @__PURE__ */ new Map(),
|
831
|
+
I.elementStyles = [], I.shadowRootOptions = { mode: "open" }, I[j("elementProperties")] = /* @__PURE__ */ new Map(), I[j("finalized")] = /* @__PURE__ */ new Map(), at == null || at({ 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 L = globalThis,
|
838
|
-
\f\r]`,
|
839
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
837
|
+
const L = globalThis, X = L.trustedTypes, Ht = X ? X.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, ce = "$lit$", x = `lit$${Math.random().toFixed(9).slice(2)}$`, he = "?" + x, ze = `<${he}>`, O = document, D = () => O.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", xt = Array.isArray, We = (s) => xt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", ct = `[
|
838
|
+
\f\r]`, U = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Dt = /-->/g, Bt = />/g, S = RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
|
839
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), zt = /'/g, Wt = /"/g, le = /^(?:script|style|textarea|title)$/i, Fe = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), R = Fe(1), T = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), Ft = /* @__PURE__ */ new WeakMap(), P = O.createTreeWalker(O, 129);
|
840
840
|
function de(s, t) {
|
841
|
-
if (!
|
841
|
+
if (!xt(s) || !s.hasOwnProperty("raw"))
|
842
842
|
throw Error("invalid template strings array");
|
843
|
-
return
|
843
|
+
return Ht !== void 0 ? Ht.createHTML(t) : t;
|
844
844
|
}
|
845
|
-
const
|
845
|
+
const Ve = (s, t) => {
|
846
846
|
const e = s.length - 1, i = [];
|
847
|
-
let r, n = t === 2 ? "<svg>" : "", o =
|
847
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = U;
|
848
848
|
for (let a = 0; a < e; a++) {
|
849
849
|
const c = s[a];
|
850
|
-
let
|
851
|
-
for (; p < c.length && (o.lastIndex = p,
|
852
|
-
p = o.lastIndex, o ===
|
853
|
-
const f = o ===
|
854
|
-
n += o ===
|
850
|
+
let l, h, d = -1, p = 0;
|
851
|
+
for (; p < c.length && (o.lastIndex = p, h = o.exec(c), h !== null); )
|
852
|
+
p = o.lastIndex, o === U ? h[1] === "!--" ? o = Dt : h[1] !== void 0 ? o = Bt : h[2] !== void 0 ? (le.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = S) : h[3] !== void 0 && (o = S) : o === S ? h[0] === ">" ? (o = r ?? U, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? S : h[3] === '"' ? Wt : zt) : o === Wt || o === zt ? o = S : o === Dt || o === Bt ? o = U : (o = S, r = void 0);
|
853
|
+
const f = o === S && s[a + 1].startsWith("/>") ? " " : "";
|
854
|
+
n += o === U ? c + ze : d >= 0 ? (i.push(l), c.slice(0, d) + ce + c.slice(d) + x + f) : c + x + (d === -2 ? a : f);
|
855
855
|
}
|
856
|
-
return [de(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
856
|
+
return [de(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
857
857
|
};
|
858
|
-
class
|
858
|
+
let bt = class pe {
|
859
859
|
constructor({ strings: t, _$litType$: e }, i) {
|
860
860
|
let r;
|
861
861
|
this.parts = [];
|
862
862
|
let n = 0, o = 0;
|
863
|
-
const a = t.length - 1, c = this.parts, [
|
864
|
-
if (this.el =
|
863
|
+
const a = t.length - 1, c = this.parts, [l, h] = Ve(t, e);
|
864
|
+
if (this.el = pe.createElement(l, i), P.currentNode = this.el.content, e === 2 || e === 3) {
|
865
865
|
const d = this.el.content.firstChild;
|
866
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
871
|
for (const d of r.getAttributeNames())
|
872
|
-
if (d.endsWith(
|
873
|
-
const p =
|
874
|
-
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ?
|
872
|
+
if (d.endsWith(ce)) {
|
873
|
+
const p = h[o++], f = r.getAttribute(d).split(x), g = /([.?@])?(.*)/.exec(p);
|
874
|
+
c.push({ type: 1, index: n, name: g[2], strings: f, ctor: g[1] === "." ? qe : g[1] === "?" ? Ke : g[1] === "@" ? Ze : it }), r.removeAttribute(d);
|
875
875
|
} else
|
876
|
-
d.startsWith(
|
876
|
+
d.startsWith(x) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
|
877
877
|
if (le.test(r.tagName)) {
|
878
|
-
const d = r.textContent.split(
|
878
|
+
const d = r.textContent.split(x), p = d.length - 1;
|
879
879
|
if (p > 0) {
|
880
|
-
r.textContent =
|
880
|
+
r.textContent = X ? X.emptyScript : "";
|
881
881
|
for (let f = 0; f < p; f++)
|
882
|
-
r.append(d[f], D()),
|
882
|
+
r.append(d[f], D()), P.nextNode(), c.push({ type: 2, index: ++n });
|
883
883
|
r.append(d[p], D());
|
884
884
|
}
|
885
885
|
}
|
886
886
|
} else if (r.nodeType === 8)
|
887
|
-
if (r.data ===
|
887
|
+
if (r.data === he)
|
888
888
|
c.push({ type: 2, index: n });
|
889
889
|
else {
|
890
890
|
let d = -1;
|
891
|
-
for (; (d = r.data.indexOf(
|
892
|
-
c.push({ type: 7, index: n }), d +=
|
891
|
+
for (; (d = r.data.indexOf(x, d + 1)) !== -1; )
|
892
|
+
c.push({ type: 7, index: n }), d += x.length - 1;
|
893
893
|
}
|
894
894
|
n++;
|
895
895
|
}
|
@@ -898,7 +898,7 @@ class z {
|
|
898
898
|
const i = O.createElement("template");
|
899
899
|
return i.innerHTML = t, i;
|
900
900
|
}
|
901
|
-
}
|
901
|
+
};
|
902
902
|
function k(s, t, e = s, i) {
|
903
903
|
var o, a;
|
904
904
|
if (t === T)
|
@@ -907,7 +907,7 @@ function k(s, t, e = s, i) {
|
|
907
907
|
const n = B(t) ? void 0 : t._$litDirective$;
|
908
908
|
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(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
|
-
class
|
910
|
+
class Ye {
|
911
911
|
constructor(t, e) {
|
912
912
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
913
913
|
}
|
@@ -919,16 +919,16 @@ class Ve {
|
|
919
919
|
}
|
920
920
|
u(t) {
|
921
921
|
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? O).importNode(e, !0);
|
922
|
-
|
923
|
-
let n =
|
922
|
+
P.currentNode = r;
|
923
|
+
let n = P.nextNode(), o = 0, a = 0, c = i[0];
|
924
924
|
for (; c !== void 0; ) {
|
925
925
|
if (o === c.index) {
|
926
|
-
let
|
927
|
-
c.type === 2 ?
|
926
|
+
let l;
|
927
|
+
c.type === 2 ? l = new W(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new Je(n, this, t)), this._$AV.push(l), c = i[++a];
|
928
928
|
}
|
929
|
-
o !== (c == null ? void 0 : c.index) && (n =
|
929
|
+
o !== (c == null ? void 0 : c.index) && (n = P.nextNode(), o++);
|
930
930
|
}
|
931
|
-
return
|
931
|
+
return P.currentNode = O, r;
|
932
932
|
}
|
933
933
|
p(t) {
|
934
934
|
let e = 0;
|
@@ -936,7 +936,7 @@ 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 W {
|
940
940
|
get _$AU() {
|
941
941
|
var t;
|
942
942
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -956,37 +956,37 @@ class F {
|
|
956
956
|
return this._$AB;
|
957
957
|
}
|
958
958
|
_$AI(t, e = this) {
|
959
|
-
t = k(this, t, e), B(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
959
|
+
t = k(this, t, e), B(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== T && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : We(t) ? this.k(t) : this._(t);
|
960
960
|
}
|
961
|
-
|
961
|
+
O(t) {
|
962
962
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
963
963
|
}
|
964
964
|
T(t) {
|
965
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.
|
965
|
+
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
966
966
|
}
|
967
967
|
_(t) {
|
968
968
|
this._$AH !== u && B(this._$AH) ? this._$AA.nextSibling.data = t : this.T(O.createTextNode(t)), this._$AH = t;
|
969
969
|
}
|
970
970
|
$(t) {
|
971
971
|
var n;
|
972
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
972
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = bt.createElement(de(i.h, i.h[0]), this.options)), i);
|
973
973
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
|
974
974
|
this._$AH.p(e);
|
975
975
|
else {
|
976
|
-
const o = new
|
976
|
+
const o = new Ye(r, this), a = o.u(this.options);
|
977
977
|
o.p(e), this.T(a), this._$AH = o;
|
978
978
|
}
|
979
979
|
}
|
980
980
|
_$AC(t) {
|
981
|
-
let e =
|
982
|
-
return e === void 0 &&
|
981
|
+
let e = Ft.get(t.strings);
|
982
|
+
return e === void 0 && Ft.set(t.strings, e = new bt(t)), e;
|
983
983
|
}
|
984
984
|
k(t) {
|
985
|
-
|
985
|
+
xt(this._$AH) || (this._$AH = [], this._$AR());
|
986
986
|
const e = this._$AH;
|
987
987
|
let i, r = 0;
|
988
988
|
for (const n of t)
|
989
|
-
r === e.length ? e.push(i = new
|
989
|
+
r === e.length ? e.push(i = new W(this.O(D()), this.O(D()), this, this.options)) : i = e[r], i._$AI(n), 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) {
|
@@ -1001,7 +1001,7 @@ class F {
|
|
1001
1001
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
1002
1002
|
}
|
1003
1003
|
}
|
1004
|
-
class
|
1004
|
+
class it {
|
1005
1005
|
get tagName() {
|
1006
1006
|
return this.element.tagName;
|
1007
1007
|
}
|
@@ -1018,9 +1018,9 @@ class st {
|
|
1018
1018
|
t = k(this, t, e, 0), o = !B(t) || t !== this._$AH && t !== T, o && (this._$AH = t);
|
1019
1019
|
else {
|
1020
1020
|
const a = t;
|
1021
|
-
let c,
|
1021
|
+
let c, l;
|
1022
1022
|
for (t = n[0], c = 0; c < n.length - 1; c++)
|
1023
|
-
|
1023
|
+
l = k(this, a[i + c], e, c), l === T && (l = this._$AH[c]), o || (o = !B(l) || l !== this._$AH[c]), l === u ? t = u : t !== u && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
|
1024
1024
|
}
|
1025
1025
|
o && !r && this.j(t);
|
1026
1026
|
}
|
@@ -1028,7 +1028,7 @@ class st {
|
|
1028
1028
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1029
1029
|
}
|
1030
1030
|
}
|
1031
|
-
class
|
1031
|
+
class qe extends it {
|
1032
1032
|
constructor() {
|
1033
1033
|
super(...arguments), this.type = 3;
|
1034
1034
|
}
|
@@ -1036,7 +1036,7 @@ class Ye extends st {
|
|
1036
1036
|
this.element[this.name] = t === u ? void 0 : t;
|
1037
1037
|
}
|
1038
1038
|
}
|
1039
|
-
class
|
1039
|
+
class Ke extends it {
|
1040
1040
|
constructor() {
|
1041
1041
|
super(...arguments), this.type = 4;
|
1042
1042
|
}
|
@@ -1044,7 +1044,7 @@ class qe extends st {
|
|
1044
1044
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
1045
1045
|
}
|
1046
1046
|
}
|
1047
|
-
class
|
1047
|
+
class Ze extends it {
|
1048
1048
|
constructor(t, e, i, r, n) {
|
1049
1049
|
super(t, e, i, r, n), this.type = 5;
|
1050
1050
|
}
|
@@ -1059,7 +1059,7 @@ class Ke extends st {
|
|
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 Je {
|
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
|
}
|
@@ -1070,14 +1070,14 @@ class Ze {
|
|
1070
1070
|
k(this, t);
|
1071
1071
|
}
|
1072
1072
|
}
|
1073
|
-
const
|
1074
|
-
|
1075
|
-
const
|
1073
|
+
const ht = L.litHtmlPolyfillSupport;
|
1074
|
+
ht == null || ht(bt, W), (L.litHtmlVersions ?? (L.litHtmlVersions = [])).push("3.2.1");
|
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
1079
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
1080
|
-
i._$litPart$ = r = new
|
1080
|
+
i._$litPart$ = r = new W(t.insertBefore(D(), n), n, void 0, e ?? {});
|
1081
1081
|
}
|
1082
1082
|
return r._$AI(s), r;
|
1083
1083
|
};
|
@@ -1086,7 +1086,7 @@ const Je = (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 $ = class extends I {
|
|
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;
|
@@ -1111,17 +1111,17 @@ let $ = class extends I {
|
|
1111
1111
|
return T;
|
1112
1112
|
}
|
1113
1113
|
};
|
1114
|
-
var
|
1115
|
-
|
1116
|
-
const
|
1117
|
-
|
1118
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.
|
1114
|
+
var Qt;
|
1115
|
+
_._$litElement$ = !0, _.finalized = !0, (Qt = globalThis.litElementHydrateSupport) == null || Qt.call(globalThis, { LitElement: _ });
|
1116
|
+
const lt = globalThis.litElementPolyfillSupport;
|
1117
|
+
lt == null || lt({ LitElement: _ });
|
1118
|
+
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
1119
1119
|
/**
|
1120
1120
|
* @license
|
1121
1121
|
* Copyright 2017 Google LLC
|
1122
1122
|
* SPDX-License-Identifier: BSD-3-Clause
|
1123
1123
|
*/
|
1124
|
-
const
|
1124
|
+
const Xe = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: At }, Qe = (s = Xe, t, e) => {
|
1125
1125
|
const { kind: i, metadata: r } = e;
|
1126
1126
|
let n = globalThis.litPropertyMetadata.get(r);
|
1127
1127
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
@@ -1143,7 +1143,7 @@ const Ge = { attribute: !0, type: String, converter: X, reflect: !1, hasChanged:
|
|
1143
1143
|
throw Error("Unsupported decorator location: " + i);
|
1144
1144
|
};
|
1145
1145
|
function m(s) {
|
1146
|
-
return (t, e) => typeof e == "object" ?
|
1146
|
+
return (t, e) => typeof e == "object" ? Qe(s, t, e) : ((i, r, n) => {
|
1147
1147
|
const o = r.hasOwnProperty(n);
|
1148
1148
|
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
1149
1149
|
})(s, t, e);
|
@@ -1156,12 +1156,12 @@ function m(s) {
|
|
1156
1156
|
function N(s) {
|
1157
1157
|
return m({ ...s, state: !0, attribute: !1 });
|
1158
1158
|
}
|
1159
|
-
var
|
1160
|
-
for (var r = i > 1 ? void 0 : i ?
|
1159
|
+
var ti = Object.defineProperty, ei = Object.getOwnPropertyDescriptor, ii = (s, t, e, i) => {
|
1160
|
+
for (var r = i > 1 ? void 0 : i ? ei(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1161
1161
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1162
|
-
return i && r &&
|
1162
|
+
return i && r && ti(t, e, r), r;
|
1163
1163
|
};
|
1164
|
-
class
|
1164
|
+
class st extends _ {
|
1165
1165
|
constructor() {
|
1166
1166
|
super(...arguments), this.anchor = "BottomRight";
|
1167
1167
|
}
|
@@ -1173,8 +1173,8 @@ class rt extends $ {
|
|
1173
1173
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
|
1174
1174
|
}
|
1175
1175
|
}
|
1176
|
-
|
1177
|
-
|
1176
|
+
st.styles = [
|
1177
|
+
M`
|
1178
1178
|
:host {
|
1179
1179
|
position: fixed;
|
1180
1180
|
display: flex;
|
@@ -1192,16 +1192,16 @@ rt.styles = [
|
|
1192
1192
|
}
|
1193
1193
|
`
|
1194
1194
|
];
|
1195
|
-
|
1195
|
+
ii([
|
1196
1196
|
m({ attribute: !0 })
|
1197
|
-
],
|
1197
|
+
], st.prototype, "anchor", 2);
|
1198
1198
|
/**
|
1199
1199
|
* @license
|
1200
1200
|
* Copyright 2017 Google LLC
|
1201
1201
|
* SPDX-License-Identifier: BSD-3-Clause
|
1202
1202
|
*/
|
1203
|
-
const
|
1204
|
-
let
|
1203
|
+
const Ct = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, St = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1204
|
+
let ue = class {
|
1205
1205
|
constructor(t) {
|
1206
1206
|
}
|
1207
1207
|
get _$AU() {
|
@@ -1222,7 +1222,7 @@ let pe = class {
|
|
1222
1222
|
* Copyright 2020 Google LLC
|
1223
1223
|
* SPDX-License-Identifier: BSD-3-Clause
|
1224
1224
|
*/
|
1225
|
-
const
|
1225
|
+
const si = (s) => s.strings === void 0;
|
1226
1226
|
/**
|
1227
1227
|
* @license
|
1228
1228
|
* Copyright 2017 Google LLC
|
@@ -1236,54 +1236,54 @@ const H = (s, t) => {
|
|
1236
1236
|
for (const r of e)
|
1237
1237
|
(i = r._$AO) == null || i.call(r, t, !1), H(r, t);
|
1238
1238
|
return !0;
|
1239
|
-
},
|
1239
|
+
}, Q = (s) => {
|
1240
1240
|
let t, e;
|
1241
1241
|
do {
|
1242
1242
|
if ((t = s._$AM) === void 0)
|
1243
1243
|
break;
|
1244
1244
|
e = t._$AN, e.delete(s), s = t;
|
1245
1245
|
} while ((e == null ? void 0 : e.size) === 0);
|
1246
|
-
},
|
1246
|
+
}, fe = (s) => {
|
1247
1247
|
for (let t; t = s._$AM; s = t) {
|
1248
1248
|
let e = t._$AN;
|
1249
1249
|
if (e === void 0)
|
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
|
-
function
|
1257
|
-
this._$AN !== void 0 ? (
|
1256
|
+
function ri(s) {
|
1257
|
+
this._$AN !== void 0 ? (Q(this), this._$AM = s, fe(this)) : this._$AM = s;
|
1258
1258
|
}
|
1259
|
-
function
|
1259
|
+
function ni(s, t = !1, e = 0) {
|
1260
1260
|
const i = this._$AH, r = this._$AN;
|
1261
1261
|
if (r !== void 0 && r.size !== 0)
|
1262
1262
|
if (t)
|
1263
1263
|
if (Array.isArray(i))
|
1264
1264
|
for (let n = e; n < i.length; n++)
|
1265
|
-
H(i[n], !1),
|
1265
|
+
H(i[n], !1), Q(i[n]);
|
1266
1266
|
else
|
1267
|
-
i != null && (H(i, !1),
|
1267
|
+
i != null && (H(i, !1), Q(i));
|
1268
1268
|
else
|
1269
1269
|
H(this, s);
|
1270
1270
|
}
|
1271
|
-
const
|
1272
|
-
s.type ==
|
1271
|
+
const oi = (s) => {
|
1272
|
+
s.type == Ct.CHILD && (s._$AP ?? (s._$AP = ni), s._$AQ ?? (s._$AQ = ri));
|
1273
1273
|
};
|
1274
|
-
class
|
1274
|
+
class ge extends ue {
|
1275
1275
|
constructor() {
|
1276
1276
|
super(...arguments), this._$AN = void 0;
|
1277
1277
|
}
|
1278
1278
|
_$AT(t, e, i) {
|
1279
|
-
super._$AT(t, e, i),
|
1279
|
+
super._$AT(t, e, i), fe(this), this.isConnected = t._$AU;
|
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 && (H(this, t),
|
1283
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (H(this, t), Q(this));
|
1284
1284
|
}
|
1285
1285
|
setValue(t) {
|
1286
|
-
if (
|
1286
|
+
if (si(this._$Ct))
|
1287
1287
|
this._$Ct._$AI(t, this);
|
1288
1288
|
else {
|
1289
1289
|
const e = [...this._$Ct._$AH];
|
@@ -1295,34 +1295,34 @@ class fe extends pe {
|
|
1295
1295
|
reconnected() {
|
1296
1296
|
}
|
1297
1297
|
}
|
1298
|
-
const
|
1299
|
-
let
|
1300
|
-
const
|
1298
|
+
const ai = /* @__PURE__ */ new WeakMap();
|
1299
|
+
let Vt = 0;
|
1300
|
+
const dt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new WeakSet(), qt = () => new Promise((s) => requestAnimationFrame(s)), ci = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Kt = (s, t) => {
|
1301
1301
|
const e = s - t;
|
1302
1302
|
return e === 0 ? void 0 : e;
|
1303
|
-
},
|
1303
|
+
}, Zt = (s, t) => {
|
1304
1304
|
const e = s / t;
|
1305
1305
|
return e === 1 ? void 0 : e;
|
1306
|
-
},
|
1307
|
-
const e =
|
1306
|
+
}, pt = { left: (s, t) => {
|
1307
|
+
const e = Kt(s, t);
|
1308
1308
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1309
1309
|
}, top: (s, t) => {
|
1310
|
-
const e =
|
1310
|
+
const e = Kt(s, t);
|
1311
1311
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1312
1312
|
}, width: (s, t) => {
|
1313
1313
|
let e;
|
1314
1314
|
t === 0 && (t = 1, e = { width: "1px" });
|
1315
|
-
const i =
|
1315
|
+
const i = Zt(s, t);
|
1316
1316
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1317
1317
|
}, height: (s, t) => {
|
1318
1318
|
let e;
|
1319
1319
|
t === 0 && (t = 1, e = { height: "1px" });
|
1320
|
-
const i =
|
1320
|
+
const i = Zt(s, t);
|
1321
1321
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1322
|
-
} },
|
1323
|
-
class
|
1322
|
+
} }, hi = { duration: 333, easing: "ease-in-out" }, li = ["left", "top", "width", "height", "opacity", "color", "background"], Jt = /* @__PURE__ */ new WeakMap();
|
1323
|
+
class di extends ge {
|
1324
1324
|
constructor(t) {
|
1325
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
1325
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Ct.CHILD)
|
1326
1326
|
throw Error("The `animate` directive must be used in attribute position.");
|
1327
1327
|
this.createFinished();
|
1328
1328
|
}
|
@@ -1340,7 +1340,7 @@ class li extends fe {
|
|
1340
1340
|
return u;
|
1341
1341
|
}
|
1342
1342
|
getController() {
|
1343
|
-
return
|
1343
|
+
return ai.get(this.u);
|
1344
1344
|
}
|
1345
1345
|
isDisabled() {
|
1346
1346
|
var t;
|
@@ -1349,17 +1349,17 @@ 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((n) => this.t = !0), this.element = t.element,
|
1352
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Jt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1353
1353
|
}
|
1354
1354
|
p(t) {
|
1355
1355
|
t = t ?? {};
|
1356
1356
|
const e = this.getController();
|
1357
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1357
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = li), this.options = t;
|
1358
1358
|
}
|
1359
1359
|
m() {
|
1360
1360
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1361
1361
|
return this.options.properties.forEach((r) => {
|
1362
|
-
const n = e[r] ?? (
|
1362
|
+
const n = e[r] ?? (pt[r] ? void 0 : i[r]), o = Number(n);
|
1363
1363
|
t[r] = isNaN(o) ? n + "" : o;
|
1364
1364
|
}), t;
|
1365
1365
|
}
|
@@ -1381,17 +1381,17 @@ class li extends fe {
|
|
1381
1381
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1382
1382
|
return;
|
1383
1383
|
let t;
|
1384
|
-
this.prepare(), await
|
1384
|
+
this.prepare(), await qt;
|
1385
1385
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1386
1386
|
if (this.A !== void 0) {
|
1387
1387
|
const { from: n, to: o } = this.N(this.A, r, e);
|
1388
1388
|
this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
|
1389
1389
|
} else {
|
1390
|
-
const n =
|
1390
|
+
const n = dt.get(this.options.inId);
|
1391
1391
|
if (n) {
|
1392
|
-
|
1392
|
+
dt.delete(this.options.inId);
|
1393
1393
|
const { from: o, to: a } = this.N(n, r, e);
|
1394
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1394
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Vt++, t.forEach((c) => c.zIndex = Vt);
|
1395
1395
|
} else
|
1396
1396
|
this.options.in && (t = [...this.options.in, {}]);
|
1397
1397
|
}
|
@@ -1408,9 +1408,9 @@ 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 && dt.set(this.options.id, this.A), this.options.out === void 0))
|
1412
1412
|
return;
|
1413
|
-
if (this.prepare(), await
|
1413
|
+
if (this.prepare(), await qt(), (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();
|
@@ -1436,19 +1436,19 @@ 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 = Jt.get(e);
|
1440
1440
|
i && !i.isDisabled() && i && t.push(i);
|
1441
1441
|
}
|
1442
1442
|
return t;
|
1443
1443
|
}
|
1444
1444
|
get isHostRendered() {
|
1445
|
-
const t =
|
1445
|
+
const t = Yt.has(this.u);
|
1446
1446
|
return t || this.u.updateComplete.then(() => {
|
1447
|
-
|
1447
|
+
Yt.add(this.u);
|
1448
1448
|
}), t;
|
1449
1449
|
}
|
1450
1450
|
j(t, e = this.O()) {
|
1451
|
-
const i = { ...
|
1451
|
+
const i = { ...hi };
|
1452
1452
|
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
1453
1453
|
}
|
1454
1454
|
N(t, e, i) {
|
@@ -1464,15 +1464,15 @@ class li extends fe {
|
|
1464
1464
|
let o = !1;
|
1465
1465
|
const a = {};
|
1466
1466
|
for (const c in e) {
|
1467
|
-
const
|
1468
|
-
if (c in
|
1469
|
-
const d =
|
1470
|
-
if (
|
1467
|
+
const l = t[c], h = e[c];
|
1468
|
+
if (c in pt) {
|
1469
|
+
const d = pt[c];
|
1470
|
+
if (l === void 0 || h === void 0)
|
1471
1471
|
continue;
|
1472
|
-
const p = d(
|
1472
|
+
const p = d(l, h);
|
1473
1473
|
p.transform !== void 0 && (a[c] = p.value, o = !0, r.transform = `${r.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(r, p.overrideFrom));
|
1474
1474
|
} else
|
1475
|
-
|
1475
|
+
l !== h && l !== void 0 && h !== void 0 && (o = !0, r[c] = l, n[c] = h);
|
1476
1476
|
}
|
1477
1477
|
return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
|
1478
1478
|
}
|
@@ -1499,16 +1499,16 @@ 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 pi = St(di), ui = { 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 = St(class extends ue {
|
1509
1509
|
constructor(s) {
|
1510
1510
|
var t;
|
1511
|
-
if (super(s), s.type !==
|
1511
|
+
if (super(s), s.type !== Ct.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
1512
1512
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1513
1513
|
}
|
1514
1514
|
render(s) {
|
@@ -1531,49 +1531,49 @@ const Jt = Ct(class extends pe {
|
|
1531
1531
|
}
|
1532
1532
|
return T;
|
1533
1533
|
}
|
1534
|
-
}),
|
1534
|
+
}), b = (s, t, e) => {
|
1535
1535
|
s && e.style.setProperty(t, s);
|
1536
|
-
},
|
1537
|
-
var e, i, r, n, o, a, c,
|
1538
|
-
|
1536
|
+
}, me = (s, t) => {
|
1537
|
+
var e, i, r, n, o, a, c, l, h;
|
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
|
-
),
|
1546
|
+
), b(
|
1547
1547
|
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1548
1548
|
"--text-on-secondary-background",
|
1549
1549
|
t
|
1550
|
-
),
|
1550
|
+
), b(
|
1551
1551
|
(o = s.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
1552
1552
|
"--destructive-color",
|
1553
1553
|
t
|
1554
|
-
),
|
1554
|
+
), b(
|
1555
1555
|
(a = s.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
1556
1556
|
"--text-on-destructive-color",
|
1557
1557
|
t
|
1558
|
-
),
|
1558
|
+
), b(
|
1559
1559
|
(c = s.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
1560
1560
|
"--interactive-primary-background",
|
1561
1561
|
t
|
1562
|
-
),
|
1563
|
-
(
|
1562
|
+
), b(
|
1563
|
+
(l = s.colors) == null ? void 0 : l.interactiveTextOnPrimaryBackground,
|
1564
1564
|
"--interactive-text-on-primary-background",
|
1565
1565
|
t
|
1566
|
-
),
|
1566
|
+
), b((h = s.colors) == null ? void 0 : h.focusColor, "--focus-color", t);
|
1567
1567
|
};
|
1568
1568
|
/**
|
1569
1569
|
* @license
|
1570
1570
|
* Copyright 2020 Google LLC
|
1571
1571
|
* SPDX-License-Identifier: BSD-3-Clause
|
1572
1572
|
*/
|
1573
|
-
const
|
1574
|
-
class
|
1573
|
+
const ve = () => new fi();
|
1574
|
+
class fi {
|
1575
1575
|
}
|
1576
|
-
const
|
1576
|
+
const ut = /* @__PURE__ */ new WeakMap(), ye = St(class extends ge {
|
1577
1577
|
render(s) {
|
1578
1578
|
return u;
|
1579
1579
|
}
|
@@ -1583,16 +1583,16 @@ const ft = /* @__PURE__ */ new WeakMap(), ve = Ct(class extends fe {
|
|
1583
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)), u;
|
1584
1584
|
}
|
1585
1585
|
rt(s) {
|
1586
|
-
if (typeof this.Y == "function") {
|
1586
|
+
if (this.isConnected || (s = void 0), typeof this.Y == "function") {
|
1587
1587
|
const t = this.ht ?? globalThis;
|
1588
|
-
let e =
|
1589
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1588
|
+
let e = ut.get(t);
|
1589
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ut.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
1590
1590
|
} else
|
1591
1591
|
this.Y.value = s;
|
1592
1592
|
}
|
1593
1593
|
get lt() {
|
1594
1594
|
var s, t;
|
1595
|
-
return typeof this.Y == "function" ? (s =
|
1595
|
+
return typeof this.Y == "function" ? (s = ut.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1596
1596
|
}
|
1597
1597
|
disconnected() {
|
1598
1598
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1601,14 +1601,14 @@ const ft = /* @__PURE__ */ new WeakMap(), ve = Ct(class extends fe {
|
|
1601
1601
|
this.rt(this.ct);
|
1602
1602
|
}
|
1603
1603
|
});
|
1604
|
-
var
|
1605
|
-
for (var r = i > 1 ? void 0 : i ?
|
1604
|
+
var gi = Object.defineProperty, mi = Object.getOwnPropertyDescriptor, F = (s, t, e, i) => {
|
1605
|
+
for (var r = i > 1 ? void 0 : i ? mi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1606
1606
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1607
|
-
return i && r &&
|
1607
|
+
return i && r && gi(t, e, r), r;
|
1608
1608
|
};
|
1609
|
-
class
|
1609
|
+
class A extends _ {
|
1610
1610
|
constructor() {
|
1611
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1611
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = ve(), this.widgetActive$ = new ne(!1), this.componentIsDestroyed$ = new wt();
|
1612
1612
|
}
|
1613
1613
|
async connectedCallback() {
|
1614
1614
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1643,23 +1643,23 @@ class _ extends $ {
|
|
1643
1643
|
}
|
1644
1644
|
_applyBranding() {
|
1645
1645
|
var t;
|
1646
|
-
(t = this.application) != null && t.settings &&
|
1646
|
+
(t = this.application) != null && t.settings && me(this.application.settings.branding, this);
|
1647
1647
|
}
|
1648
1648
|
async _renderSymbol() {
|
1649
|
-
var a, c,
|
1649
|
+
var a, c, l;
|
1650
1650
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1651
1651
|
if (e)
|
1652
1652
|
return R` <img src=${e} class="trigger-icon" alt="" /> `;
|
1653
|
-
const i = (
|
1653
|
+
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1654
1654
|
if (!i)
|
1655
1655
|
return u;
|
1656
|
-
const r = async (
|
1656
|
+
const r = async (h) => ui, { type: n, content: o } = i;
|
1657
1657
|
switch (n) {
|
1658
1658
|
case "Telia": {
|
1659
|
-
const
|
1660
|
-
return
|
1659
|
+
const h = await r();
|
1660
|
+
return h ? R`<telia-icon
|
1661
1661
|
class="trigger-icon"
|
1662
|
-
svg=${
|
1662
|
+
svg=${h.svg}
|
1663
1663
|
size="lg"
|
1664
1664
|
></telia-icon>` : u;
|
1665
1665
|
}
|
@@ -1676,20 +1676,20 @@ class _ extends $ {
|
|
1676
1676
|
render() {
|
1677
1677
|
var t, e, i, r;
|
1678
1678
|
return R`<div
|
1679
|
-
class=${
|
1679
|
+
class=${Gt({
|
1680
1680
|
"trigger-container": !0,
|
1681
1681
|
hidden: !this.triggerVisible
|
1682
1682
|
})}
|
1683
|
-
${
|
1683
|
+
${ye(this.containerRef)}
|
1684
1684
|
>
|
1685
1685
|
${!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`
|
1686
1686
|
<button
|
1687
1687
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1688
1688
|
class="trigger-label"
|
1689
1689
|
@click=${this.toggleActive}
|
1690
|
-
${
|
1690
|
+
${pi({
|
1691
1691
|
keyframeOptions: {},
|
1692
|
-
in:
|
1692
|
+
in: ci,
|
1693
1693
|
stabilizeOut: !0,
|
1694
1694
|
skipInitial: !1
|
1695
1695
|
})}
|
@@ -1700,7 +1700,7 @@ class _ extends $ {
|
|
1700
1700
|
|
1701
1701
|
<button
|
1702
1702
|
label="Widget trigger"
|
1703
|
-
class=${
|
1703
|
+
class=${Gt({
|
1704
1704
|
trigger: !0,
|
1705
1705
|
active: this.active,
|
1706
1706
|
rendered: this.loaded
|
@@ -1739,8 +1739,8 @@ class _ extends $ {
|
|
1739
1739
|
</div>`;
|
1740
1740
|
}
|
1741
1741
|
}
|
1742
|
-
|
1743
|
-
|
1742
|
+
A.styles = [
|
1743
|
+
M`
|
1744
1744
|
:host {
|
1745
1745
|
--voca-rem-multiplier: 0.625;
|
1746
1746
|
--trigger-label-bg: #f5e0ff;
|
@@ -1871,27 +1871,27 @@ _.styles = [
|
|
1871
1871
|
}
|
1872
1872
|
`
|
1873
1873
|
];
|
1874
|
-
|
1874
|
+
F([
|
1875
1875
|
m({ attribute: !1 })
|
1876
|
-
],
|
1877
|
-
|
1876
|
+
], A.prototype, "application", 2);
|
1877
|
+
F([
|
1878
1878
|
N()
|
1879
|
-
],
|
1880
|
-
|
1879
|
+
], A.prototype, "active", 2);
|
1880
|
+
F([
|
1881
1881
|
N()
|
1882
|
-
],
|
1883
|
-
|
1882
|
+
], A.prototype, "triggerVisible", 2);
|
1883
|
+
F([
|
1884
1884
|
N()
|
1885
|
-
],
|
1886
|
-
|
1885
|
+
], A.prototype, "loaded", 2);
|
1886
|
+
F([
|
1887
1887
|
N()
|
1888
|
-
],
|
1889
|
-
var
|
1890
|
-
for (var r = i > 1 ? void 0 : i ?
|
1888
|
+
], A.prototype, "icon", 2);
|
1889
|
+
var vi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, E = (s, t, e, i) => {
|
1890
|
+
for (var r = i > 1 ? void 0 : i ? yi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1891
1891
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1892
|
-
return i && r &&
|
1892
|
+
return i && r && vi(t, e, r), r;
|
1893
1893
|
};
|
1894
|
-
const
|
1894
|
+
const bi = (s) => {
|
1895
1895
|
class t extends s {
|
1896
1896
|
constructor() {
|
1897
1897
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1917,7 +1917,7 @@ const yi = (s) => {
|
|
1917
1917
|
}
|
1918
1918
|
return t.styles = [
|
1919
1919
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1920
|
-
|
1920
|
+
M`
|
1921
1921
|
:host {
|
1922
1922
|
font-family: var(--font-family);
|
1923
1923
|
grid-column: span var(--width);
|
@@ -1930,29 +1930,29 @@ const yi = (s) => {
|
|
1930
1930
|
box-sizing: border-box;
|
1931
1931
|
}
|
1932
1932
|
`
|
1933
|
-
],
|
1933
|
+
], E([
|
1934
1934
|
m()
|
1935
|
-
], t.prototype, "properties", 2),
|
1935
|
+
], t.prototype, "properties", 2), E([
|
1936
1936
|
m()
|
1937
|
-
], t.prototype, "context", 2),
|
1937
|
+
], t.prototype, "context", 2), E([
|
1938
1938
|
m()
|
1939
|
-
], t.prototype, "layout", 2),
|
1939
|
+
], t.prototype, "layout", 2), E([
|
1940
1940
|
m()
|
1941
|
-
], t.prototype, "name", 2),
|
1941
|
+
], t.prototype, "name", 2), E([
|
1942
1942
|
m()
|
1943
|
-
], t.prototype, "type", 2),
|
1943
|
+
], t.prototype, "type", 2), E([
|
1944
1944
|
m({ attribute: !1 })
|
1945
|
-
], t.prototype, "application", 2),
|
1945
|
+
], t.prototype, "application", 2), E([
|
1946
1946
|
m({ attribute: !1 })
|
1947
1947
|
], t.prototype, "parent", 2), t;
|
1948
1948
|
};
|
1949
|
-
class
|
1949
|
+
class Et extends bi(_) {
|
1950
1950
|
render() {
|
1951
1951
|
return R`Non resolved component`;
|
1952
1952
|
}
|
1953
1953
|
}
|
1954
|
-
|
1955
|
-
|
1954
|
+
Et.styles = [
|
1955
|
+
M`
|
1956
1956
|
:host {
|
1957
1957
|
display: block;
|
1958
1958
|
}
|
@@ -1963,20 +1963,20 @@ St.styles = [
|
|
1963
1963
|
* Copyright 2021 Google LLC
|
1964
1964
|
* SPDX-License-Identifier: BSD-3-Clause
|
1965
1965
|
*/
|
1966
|
-
function*
|
1966
|
+
function* wi(s, t) {
|
1967
1967
|
if (s !== void 0) {
|
1968
1968
|
let e = 0;
|
1969
1969
|
for (const i of s)
|
1970
1970
|
yield t(i, e++);
|
1971
1971
|
}
|
1972
1972
|
}
|
1973
|
-
var
|
1973
|
+
var w = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(w || {});
|
1974
1974
|
/**
|
1975
1975
|
* @license
|
1976
1976
|
* Copyright 2021 Google LLC
|
1977
1977
|
* SPDX-License-Identifier: BSD-3-Clause
|
1978
1978
|
*/
|
1979
|
-
let
|
1979
|
+
let $i = class extends Event {
|
1980
1980
|
constructor(t, e, i) {
|
1981
1981
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1982
1982
|
}
|
@@ -1991,7 +1991,7 @@ let wi = class extends Event {
|
|
1991
1991
|
* Copyright 2021 Google LLC
|
1992
1992
|
* SPDX-License-Identifier: BSD-3-Clause
|
1993
1993
|
*/
|
1994
|
-
class
|
1994
|
+
class _i {
|
1995
1995
|
get value() {
|
1996
1996
|
return this.o;
|
1997
1997
|
}
|
@@ -2026,12 +2026,12 @@ class $i {
|
|
2026
2026
|
* Copyright 2021 Google LLC
|
2027
2027
|
* SPDX-License-Identifier: BSD-3-Clause
|
2028
2028
|
*/
|
2029
|
-
let
|
2029
|
+
let Ai = class extends Event {
|
2030
2030
|
constructor(t) {
|
2031
2031
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
2032
2032
|
}
|
2033
2033
|
};
|
2034
|
-
class
|
2034
|
+
class Xt extends _i {
|
2035
2035
|
constructor(t, e, i) {
|
2036
2036
|
var r, n;
|
2037
2037
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
@@ -2042,8 +2042,8 @@ class Gt extends $i {
|
|
2042
2042
|
if (o.context !== this.context || a === this.host)
|
2043
2043
|
return;
|
2044
2044
|
const c = /* @__PURE__ */ new Set();
|
2045
|
-
for (const [
|
2046
|
-
c.has(
|
2045
|
+
for (const [l, { consumerHost: h }] of this.subscriptions)
|
2046
|
+
c.has(l) || (c.add(l), h.dispatchEvent(new $i(this.context, l, !0)));
|
2047
2047
|
o.stopPropagation();
|
2048
2048
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
2049
2049
|
}
|
@@ -2051,7 +2051,7 @@ class Gt extends $i {
|
|
2051
2051
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
2052
2052
|
}
|
2053
2053
|
hostConnected() {
|
2054
|
-
this.host.dispatchEvent(new
|
2054
|
+
this.host.dispatchEvent(new Ai(this.context));
|
2055
2055
|
}
|
2056
2056
|
}
|
2057
2057
|
/**
|
@@ -2059,12 +2059,12 @@ class Gt extends $i {
|
|
2059
2059
|
* Copyright 2017 Google LLC
|
2060
2060
|
* SPDX-License-Identifier: BSD-3-Clause
|
2061
2061
|
*/
|
2062
|
-
function
|
2062
|
+
function xi({ context: s }) {
|
2063
2063
|
return (t, e) => {
|
2064
2064
|
const i = /* @__PURE__ */ new WeakMap();
|
2065
2065
|
if (typeof e == "object")
|
2066
2066
|
return e.addInitializer(function() {
|
2067
|
-
i.set(this, new
|
2067
|
+
i.set(this, new Xt(this, { context: s }));
|
2068
2068
|
}), { get() {
|
2069
2069
|
return t.get.call(this);
|
2070
2070
|
}, set(r) {
|
@@ -2076,20 +2076,20 @@ function Ai({ context: s }) {
|
|
2076
2076
|
} };
|
2077
2077
|
{
|
2078
2078
|
t.constructor.addInitializer((o) => {
|
2079
|
-
i.set(o, new
|
2079
|
+
i.set(o, new Xt(o, { context: s }));
|
2080
2080
|
});
|
2081
2081
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
2082
2082
|
let n;
|
2083
2083
|
if (r === void 0) {
|
2084
2084
|
const o = /* @__PURE__ */ new WeakMap();
|
2085
|
-
n = { get
|
2085
|
+
n = { get() {
|
2086
2086
|
return o.get(this);
|
2087
|
-
}, set
|
2087
|
+
}, set(a) {
|
2088
2088
|
i.get(this).setValue(a), o.set(this, a);
|
2089
2089
|
}, configurable: !0, enumerable: !0 };
|
2090
2090
|
} else {
|
2091
2091
|
const o = r.set;
|
2092
|
-
n = { ...r, set
|
2092
|
+
n = { ...r, set(a) {
|
2093
2093
|
i.get(this).setValue(a), o == null || o.call(this, a);
|
2094
2094
|
} };
|
2095
2095
|
}
|
@@ -2097,15 +2097,15 @@ function Ai({ context: s }) {
|
|
2097
2097
|
}
|
2098
2098
|
};
|
2099
2099
|
}
|
2100
|
-
var
|
2101
|
-
for (var r = i > 1 ? void 0 : i ?
|
2100
|
+
var Ci = Object.defineProperty, Si = Object.getOwnPropertyDescriptor, Ei = (s, t, e, i) => {
|
2101
|
+
for (var r = i > 1 ? void 0 : i ? Si(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
2102
2102
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
2103
|
-
return i && r &&
|
2103
|
+
return i && r && Ci(t, e, r), r;
|
2104
2104
|
};
|
2105
|
-
const
|
2106
|
-
class
|
2105
|
+
const Pi = "application";
|
2106
|
+
class rt extends _ {
|
2107
2107
|
constructor() {
|
2108
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2108
|
+
super(...arguments), this.nodes = [], this.wrapperRef = ve();
|
2109
2109
|
}
|
2110
2110
|
addChild(t) {
|
2111
2111
|
t.parent = this, this.nodes.push(t);
|
@@ -2114,7 +2114,7 @@ class nt extends $ {
|
|
2114
2114
|
if (!this.wrapperRef.value)
|
2115
2115
|
return;
|
2116
2116
|
const t = this.application.settings;
|
2117
|
-
t != null && t.branding &&
|
2117
|
+
t != null && t.branding && me(t.branding, this.wrapperRef.value);
|
2118
2118
|
}
|
2119
2119
|
applyStyles() {
|
2120
2120
|
if (!this.wrapperRef.value)
|
@@ -2130,12 +2130,12 @@ class nt extends $ {
|
|
2130
2130
|
render() {
|
2131
2131
|
var i, r;
|
2132
2132
|
const t = this.application.settings.components.conversation;
|
2133
|
-
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 ===
|
2134
|
-
${
|
2133
|
+
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 === w.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")), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), R`<div class="widget-container" ${ye(this.wrapperRef)}>
|
2134
|
+
${wi(this.nodes, (n) => n)}
|
2135
2135
|
</div>`;
|
2136
2136
|
}
|
2137
2137
|
}
|
2138
|
-
|
2138
|
+
rt.styles = M`
|
2139
2139
|
:host {
|
2140
2140
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2141
2141
|
--spacing-xs: 0.2rem;
|
@@ -2271,11 +2271,11 @@ nt.styles = U`
|
|
2271
2271
|
pointer-events: none;
|
2272
2272
|
}
|
2273
2273
|
`;
|
2274
|
-
|
2274
|
+
Ei([
|
2275
2275
|
m({ attribute: !1 }),
|
2276
|
-
|
2277
|
-
],
|
2278
|
-
class
|
2276
|
+
xi({ context: Pi })
|
2277
|
+
], rt.prototype, "application", 2);
|
2278
|
+
class Oi {
|
2279
2279
|
constructor() {
|
2280
2280
|
this.root = this.createRoot();
|
2281
2281
|
}
|
@@ -2283,19 +2283,19 @@ class Pi {
|
|
2283
2283
|
this.root.application = e;
|
2284
2284
|
const i = (a) => {
|
2285
2285
|
if (Array.isArray(a)) {
|
2286
|
-
const [c, ...
|
2286
|
+
const [c, ...l] = a;
|
2287
2287
|
return {
|
2288
2288
|
definitionId: c,
|
2289
|
-
overrides:
|
2289
|
+
overrides: l
|
2290
2290
|
};
|
2291
2291
|
}
|
2292
2292
|
return {
|
2293
2293
|
definitionId: a,
|
2294
2294
|
overrides: []
|
2295
2295
|
};
|
2296
|
-
}, r = (a, c,
|
2297
|
-
|
2298
|
-
const p = i(d), f =
|
2296
|
+
}, r = (a, c, l, h) => {
|
2297
|
+
l.forEach((d) => {
|
2298
|
+
const p = i(d), f = h[p.definitionId];
|
2299
2299
|
if (!f) {
|
2300
2300
|
console.error(
|
2301
2301
|
`No definition found for component type '${p.definitionId}'.`
|
@@ -2307,7 +2307,7 @@ class Pi {
|
|
2307
2307
|
a,
|
2308
2308
|
g,
|
2309
2309
|
f.children,
|
2310
|
-
|
2310
|
+
h
|
2311
2311
|
// views
|
2312
2312
|
));
|
2313
2313
|
});
|
@@ -2315,11 +2315,11 @@ class Pi {
|
|
2315
2315
|
return r(this, this.root, [n], o), this.root;
|
2316
2316
|
}
|
2317
2317
|
createRoot() {
|
2318
|
-
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper",
|
2318
|
+
return typeof window < "u" && (window.customElements.get("ace-wrapper") || window.customElements.define("ace-wrapper", rt)), document.createElement("ace-wrapper");
|
2319
2319
|
}
|
2320
2320
|
createNode(t, e) {
|
2321
2321
|
if (!this.resolveComponent(e))
|
2322
|
-
return console.warn(`Unable to resolve component: ${e}`), new
|
2322
|
+
return console.warn(`Unable to resolve component: ${e}`), new Et();
|
2323
2323
|
const r = document.createElement(
|
2324
2324
|
`ace-${e}`
|
2325
2325
|
);
|
@@ -2332,7 +2332,7 @@ class Pi {
|
|
2332
2332
|
return this.root;
|
2333
2333
|
}
|
2334
2334
|
}
|
2335
|
-
const
|
2335
|
+
const be = class {
|
2336
2336
|
constructor() {
|
2337
2337
|
this.components = /* @__PURE__ */ new Map();
|
2338
2338
|
}
|
@@ -2352,14 +2352,14 @@ const ye = class {
|
|
2352
2352
|
await Promise.all(s);
|
2353
2353
|
}
|
2354
2354
|
defineAsWebComponent(s, t) {
|
2355
|
-
const e =
|
2355
|
+
const e = be.ResolveWebComponentName(s);
|
2356
2356
|
customElements.get(e) || customElements.define(e, t);
|
2357
2357
|
}
|
2358
2358
|
};
|
2359
|
-
let
|
2360
|
-
|
2361
|
-
var
|
2362
|
-
class
|
2359
|
+
let we = be;
|
2360
|
+
we.ResolveWebComponentName = (s) => `ace-${s}`;
|
2361
|
+
var y = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(y || {});
|
2362
|
+
class Ti {
|
2363
2363
|
constructor(t, e, i, r) {
|
2364
2364
|
this.disallowedKeys = [], this.widgetId = t, this.storage = e === "localStorage" ? window.localStorage : window.sessionStorage, this.policy = i, this.storageEntries = r;
|
2365
2365
|
}
|
@@ -2413,7 +2413,7 @@ class Oi {
|
|
2413
2413
|
return `ace_${this.widgetId.substring(0, 7)}-${t}`;
|
2414
2414
|
}
|
2415
2415
|
}
|
2416
|
-
class
|
2416
|
+
class Ii {
|
2417
2417
|
constructor() {
|
2418
2418
|
this.texts = /* @__PURE__ */ new Map();
|
2419
2419
|
}
|
@@ -2428,7 +2428,7 @@ class Ti {
|
|
2428
2428
|
return this.texts.get(t) || e;
|
2429
2429
|
}
|
2430
2430
|
}
|
2431
|
-
class
|
2431
|
+
class Ri {
|
2432
2432
|
constructor(t) {
|
2433
2433
|
this.widget = t, this.name = t.name;
|
2434
2434
|
}
|
@@ -2442,26 +2442,54 @@ class Ii {
|
|
2442
2442
|
this.widget.setZIndex(t);
|
2443
2443
|
}
|
2444
2444
|
}
|
2445
|
-
class
|
2445
|
+
class ki {
|
2446
2446
|
constructor(t, e, i, r, n) {
|
2447
|
-
this.id = t, this.name = e, this.container = i, this.settings = r, this.options = n, this.platform = new
|
2448
|
-
var
|
2449
|
-
|
2447
|
+
this.id = t, this.name = e, this.container = i, this.settings = r, this.options = n, this.platform = new Oi(), this.texts = new Ii(), this.renderStrategy = w.Inline, this.anchor = "BottomRight", this.autoActivate = !1, this.plugins = [], this.componentResolver = new we(), this.components = [], this.trigger = null, this.api = new Ri(this), this.onMessageReceived = async (a) => {
|
2448
|
+
var l;
|
2449
|
+
const c = a.data;
|
2450
|
+
switch (c.type) {
|
2451
|
+
case "set-storage-policies": {
|
2452
|
+
const { policies: h } = c.data || [], d = {
|
2453
|
+
[y.Analytics]: h.includes("analytics"),
|
2454
|
+
[y.Necessary]: h.includes("necessary"),
|
2455
|
+
[y.Functional]: h.includes("functional")
|
2456
|
+
};
|
2457
|
+
this.storage.updatePolicy(d);
|
2458
|
+
return;
|
2459
|
+
}
|
2460
|
+
case "disallow-storage-key": {
|
2461
|
+
const { storageKey: h } = c.data || null;
|
2462
|
+
h && this.storage.disallowKey(h);
|
2463
|
+
return;
|
2464
|
+
}
|
2465
|
+
case "open": {
|
2466
|
+
this.appendToDOM();
|
2467
|
+
return;
|
2468
|
+
}
|
2469
|
+
case "close": {
|
2470
|
+
this.hide();
|
2471
|
+
return;
|
2472
|
+
}
|
2473
|
+
case "set-z-index": {
|
2474
|
+
const { zIndex: h } = c.data || null;
|
2475
|
+
h && this.setZIndex(h);
|
2476
|
+
return;
|
2477
|
+
}
|
2450
2478
|
case "deactivate-widget": {
|
2451
|
-
const
|
2452
|
-
this.hide(), (
|
2479
|
+
const h = this.storage.get("open");
|
2480
|
+
this.hide(), (l = this.trigger) == null || l.hideTrigger(), h && this.storage.set("open", !0);
|
2453
2481
|
return;
|
2454
2482
|
}
|
2455
2483
|
default:
|
2456
2484
|
return;
|
2457
2485
|
}
|
2458
|
-
}, this.renderStrategy = this.options.renderStrategy ||
|
2486
|
+
}, this.renderStrategy = this.options.renderStrategy || w.Inline, this.triggerIcon = this.options.triggerIcon;
|
2459
2487
|
const o = {
|
2460
|
-
[
|
2461
|
-
[
|
2462
|
-
[
|
2488
|
+
[y.Necessary]: !0,
|
2489
|
+
[y.Functional]: !0,
|
2490
|
+
[y.Analytics]: !0
|
2463
2491
|
};
|
2464
|
-
this.storage = new
|
2492
|
+
this.storage = new Ti(
|
2465
2493
|
this.id,
|
2466
2494
|
"sessionStorage",
|
2467
2495
|
o,
|
@@ -2469,10 +2497,17 @@ class Ri {
|
|
2469
2497
|
), typeof n.autoActivate == "boolean" && (this.autoActivate = n.autoActivate), n.anchor && (this.anchor = n.anchor), this.container.register("$settings", r), this.texts.loadTexts(r.texts || {}), window.addEventListener("message", this.onMessageReceived);
|
2470
2498
|
}
|
2471
2499
|
async activate() {
|
2472
|
-
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(
|
2500
|
+
if (await this.loadPlugins(), await this.componentResolver.loadComponents(), this.root = this.platform.createComponentModel(this.settings, this), this.container.setState(oe.Ready), this.autoActivate) {
|
2473
2501
|
const t = this.render();
|
2474
2502
|
t && this._getTargetElement().appendChild(t);
|
2475
2503
|
}
|
2504
|
+
window != null && window.parent && window.parent.postMessage(
|
2505
|
+
{
|
2506
|
+
type: "widget-activated",
|
2507
|
+
data: { widgetId: this.id }
|
2508
|
+
},
|
2509
|
+
"*"
|
2510
|
+
);
|
2476
2511
|
}
|
2477
2512
|
async loadPlugins() {
|
2478
2513
|
for await (const t of this.plugins)
|
@@ -2517,11 +2552,11 @@ class Ri {
|
|
2517
2552
|
}
|
2518
2553
|
_getTargetElement() {
|
2519
2554
|
let t = "bottom-right";
|
2520
|
-
if (this.anchor === "BottomRight" ? t = "bottom-right" : this.anchor === "BottomLeft" && (t = "bottom-left"), this.renderStrategy ===
|
2555
|
+
if (this.anchor === "BottomRight" ? t = "bottom-right" : this.anchor === "BottomLeft" && (t = "bottom-left"), this.renderStrategy === w.Trigger) {
|
2521
2556
|
let e = document.querySelector(
|
2522
2557
|
`ace-trigger-slot.${t}`
|
2523
2558
|
);
|
2524
|
-
return e || (e = new
|
2559
|
+
return e || (e = new st(), e.anchor = this.anchor, document.body.appendChild(e)), e;
|
2525
2560
|
}
|
2526
2561
|
return document.body;
|
2527
2562
|
}
|
@@ -2531,17 +2566,17 @@ class Ri {
|
|
2531
2566
|
render() {
|
2532
2567
|
if (this._isEmbeddedInIFrame())
|
2533
2568
|
return this.root;
|
2534
|
-
if (this.renderStrategy ===
|
2535
|
-
const t = new
|
2569
|
+
if (this.renderStrategy === w.Trigger) {
|
2570
|
+
const t = new A();
|
2536
2571
|
return t.application = this, this.trigger = t, this.storage.get("open") && this.trigger.toggleActive(), t;
|
2537
2572
|
}
|
2538
2573
|
return this.root;
|
2539
2574
|
}
|
2540
2575
|
}
|
2541
|
-
const
|
2576
|
+
const Vi = (s) => new tt(s), $e = class {
|
2542
2577
|
// TODO:
|
2543
2578
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
2544
|
-
constructor(s =
|
2579
|
+
constructor(s = $e.endpoint) {
|
2545
2580
|
this._endpoint = s;
|
2546
2581
|
}
|
2547
2582
|
async getSite(s) {
|
@@ -2550,8 +2585,8 @@ const Fi = (s) => new et(s), we = class {
|
|
2550
2585
|
id: e.id,
|
2551
2586
|
triggers: e.triggers || [],
|
2552
2587
|
apps: e.widgets.map((i) => {
|
2553
|
-
let r =
|
2554
|
-
return i.renderStrategy === "Trigger" && (r =
|
2588
|
+
let r = w.Inline;
|
2589
|
+
return i.renderStrategy === "Trigger" && (r = w.Trigger), {
|
2555
2590
|
id: i.id,
|
2556
2591
|
widgetId: i.widgetId,
|
2557
2592
|
renderStrategy: r,
|
@@ -2573,9 +2608,9 @@ const Fi = (s) => new et(s), we = class {
|
|
2573
2608
|
} : null;
|
2574
2609
|
}
|
2575
2610
|
};
|
2576
|
-
let
|
2577
|
-
|
2578
|
-
class
|
2611
|
+
let tt = $e;
|
2612
|
+
tt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2613
|
+
class Mi {
|
2579
2614
|
constructor(t) {
|
2580
2615
|
this.site = t;
|
2581
2616
|
}
|
@@ -2584,9 +2619,9 @@ class ki {
|
|
2584
2619
|
(((i = this.site.environment) == null ? void 0 : i.applications) || []).forEach((r) => {
|
2585
2620
|
if (r.storage) {
|
2586
2621
|
const n = {
|
2587
|
-
[
|
2588
|
-
[
|
2589
|
-
[
|
2622
|
+
[y.Analytics]: t.includes("analytics"),
|
2623
|
+
[y.Necessary]: t.includes("necessary"),
|
2624
|
+
[y.Functional]: t.includes("functional")
|
2590
2625
|
};
|
2591
2626
|
r.storage.updatePolicy(n);
|
2592
2627
|
}
|
@@ -2599,9 +2634,9 @@ class ki {
|
|
2599
2634
|
});
|
2600
2635
|
}
|
2601
2636
|
}
|
2602
|
-
class
|
2637
|
+
class Ni {
|
2603
2638
|
constructor() {
|
2604
|
-
this.applications = [], this.container = new
|
2639
|
+
this.applications = [], this.container = new Mt("environment", this), this.bootstrapped = !1, this.site = null, this.widgetAPIHandlers = /* @__PURE__ */ new Map(), this.siteConfigurationHandlers = [], setTimeout(() => {
|
2605
2640
|
this.notifyWidgetsOfCreation();
|
2606
2641
|
}, 1e3);
|
2607
2642
|
}
|
@@ -2625,20 +2660,20 @@ class Ui {
|
|
2625
2660
|
i.condition.type === "url" && n.forEach((o) => {
|
2626
2661
|
const a = o.action.type === "render_widget";
|
2627
2662
|
if ((o.value === r || o.value === "*") && a) {
|
2628
|
-
let
|
2663
|
+
let l = { widgetId: "" };
|
2629
2664
|
try {
|
2630
|
-
|
2665
|
+
l = JSON.parse(o.action.data);
|
2631
2666
|
} catch {
|
2632
|
-
|
2667
|
+
l = {
|
2633
2668
|
widgetId: ""
|
2634
2669
|
};
|
2635
2670
|
}
|
2636
|
-
const
|
2637
|
-
(p) => p.id ===
|
2671
|
+
const h = t.findIndex(
|
2672
|
+
(p) => p.id === l.widgetId
|
2638
2673
|
) > -1, d = this.applications.find(
|
2639
|
-
(p) => p.id ===
|
2674
|
+
(p) => p.id === l.widgetId
|
2640
2675
|
);
|
2641
|
-
d && !
|
2676
|
+
d && !h && (d.autoActivate = !0, t.push(d));
|
2642
2677
|
}
|
2643
2678
|
});
|
2644
2679
|
});
|
@@ -2675,7 +2710,7 @@ class Ui {
|
|
2675
2710
|
e(i == null ? void 0 : i.api);
|
2676
2711
|
}
|
2677
2712
|
registerApp(t, e, i, r) {
|
2678
|
-
const n = new
|
2713
|
+
const n = new Mt(e, this), o = new ki(t, e, n, i, r);
|
2679
2714
|
this.applications.push(o);
|
2680
2715
|
}
|
2681
2716
|
registerSite(t) {
|
@@ -2687,9 +2722,9 @@ class Ui {
|
|
2687
2722
|
}), this;
|
2688
2723
|
}
|
2689
2724
|
}
|
2690
|
-
class
|
2725
|
+
class Ui {
|
2691
2726
|
constructor(t) {
|
2692
|
-
this.configurations = [], this.httpClient = new
|
2727
|
+
this.configurations = [], this.httpClient = new tt(), this.api = new Mi(this), this.triggers = [], this.httpClient = new tt(), typeof t == "string" ? this.url = t : (t.httpClient && (this.httpClient = t.httpClient), this.loadFromConfig(t));
|
2693
2728
|
}
|
2694
2729
|
async load(t) {
|
2695
2730
|
const e = await this.httpClient.getSite(t);
|
@@ -2717,7 +2752,7 @@ class Ni {
|
|
2717
2752
|
}
|
2718
2753
|
async bootstrap(t) {
|
2719
2754
|
var e;
|
2720
|
-
this.url && await this.load(this.url), this.environment = new
|
2755
|
+
this.url && await this.load(this.url), this.environment = new Ni(), this.addGlobal(this.environment);
|
2721
2756
|
for await (const i of this.configurations) {
|
2722
2757
|
const r = await this.httpClient.getWidget(i.widgetId);
|
2723
2758
|
r && ((e = this.environment) == null || e.registerApp(
|
@@ -2743,12 +2778,12 @@ class Ni {
|
|
2743
2778
|
}), globalThis.ace = t;
|
2744
2779
|
}
|
2745
2780
|
}
|
2746
|
-
var
|
2747
|
-
for (var r = i > 1 ? void 0 : i ?
|
2781
|
+
var ji = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, Pt = (s, t, e, i) => {
|
2782
|
+
for (var r = i > 1 ? void 0 : i ? Li(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
2748
2783
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
2749
|
-
return i && r &&
|
2784
|
+
return i && r && ji(t, e, r), r;
|
2750
2785
|
};
|
2751
|
-
class
|
2786
|
+
class V extends _ {
|
2752
2787
|
constructor() {
|
2753
2788
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2754
2789
|
}
|
@@ -2773,50 +2808,50 @@ class Y extends $ {
|
|
2773
2808
|
render() {
|
2774
2809
|
if (!this.widget || this.status !== "activated")
|
2775
2810
|
return u;
|
2776
|
-
if (this.widget.renderStrategy ===
|
2777
|
-
const t = new
|
2811
|
+
if (this.widget.renderStrategy === w.Trigger) {
|
2812
|
+
const t = new A();
|
2778
2813
|
return t.application = this.widget, t;
|
2779
2814
|
}
|
2780
2815
|
return this.widget.render();
|
2781
2816
|
}
|
2782
2817
|
}
|
2783
|
-
|
2784
|
-
|
2818
|
+
V.styles = [
|
2819
|
+
M`
|
2785
2820
|
:host {
|
2786
2821
|
display: block;
|
2787
2822
|
}
|
2788
2823
|
`
|
2789
2824
|
];
|
2790
|
-
|
2825
|
+
Pt([
|
2791
2826
|
m({ attribute: !0 })
|
2792
|
-
],
|
2793
|
-
|
2827
|
+
], V.prototype, "name", 2);
|
2828
|
+
Pt([
|
2794
2829
|
N()
|
2795
|
-
],
|
2796
|
-
|
2830
|
+
], V.prototype, "widget", 2);
|
2831
|
+
Pt([
|
2797
2832
|
N()
|
2798
|
-
],
|
2799
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
2800
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2801
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2802
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2803
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2804
|
-
const
|
2805
|
-
const i = new
|
2833
|
+
], V.prototype, "status", 2);
|
2834
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", st);
|
2835
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", A);
|
2836
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Et);
|
2837
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", rt);
|
2838
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", V);
|
2839
|
+
const Yi = async (s, t, e = {}) => {
|
2840
|
+
const i = new Ui(s);
|
2806
2841
|
e.httpClient && i.setHttpClient(e.httpClient), await i.bootstrap(t);
|
2807
2842
|
};
|
2808
2843
|
export {
|
2809
|
-
|
2810
|
-
|
2811
|
-
|
2812
|
-
|
2813
|
-
|
2814
|
-
|
2815
|
-
|
2816
|
-
|
2817
|
-
|
2818
|
-
|
2819
|
-
|
2820
|
-
|
2821
|
-
|
2844
|
+
V as AceWidget,
|
2845
|
+
ki as Application,
|
2846
|
+
Mt as Container,
|
2847
|
+
Ni as Environment,
|
2848
|
+
tt as HttpClient,
|
2849
|
+
Ui as Site,
|
2850
|
+
y as StorageCategory,
|
2851
|
+
Ti as StorageService,
|
2852
|
+
A as Trigger,
|
2853
|
+
bi as WidgetComponent,
|
2854
|
+
Pi as applicationContext,
|
2855
|
+
Yi as bootstrap,
|
2856
|
+
Vi as createHttpClient
|
2822
2857
|
};
|