@telia-ace/widget-conversation-flamingo 1.1.53-rc.0 → 1.1.53-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +150 -150
- package/index.mjs +746 -747
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -25,24 +25,24 @@ class An {
|
|
25
25
|
// return this.registeredProviders.get(providerKey);
|
26
26
|
// }
|
27
27
|
}
|
28
|
-
var
|
29
|
-
return
|
28
|
+
var ae = function(n, t) {
|
29
|
+
return ae = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, s) {
|
30
30
|
e.__proto__ = s;
|
31
31
|
} || function(e, s) {
|
32
32
|
for (var r in s)
|
33
33
|
Object.prototype.hasOwnProperty.call(s, r) && (e[r] = s[r]);
|
34
|
-
},
|
34
|
+
}, ae(n, t);
|
35
35
|
};
|
36
36
|
function st(n, t) {
|
37
37
|
if (typeof t != "function" && t !== null)
|
38
38
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
39
|
-
|
39
|
+
ae(n, t);
|
40
40
|
function e() {
|
41
41
|
this.constructor = n;
|
42
42
|
}
|
43
43
|
n.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
44
44
|
}
|
45
|
-
function
|
45
|
+
function As(n, t, e, s) {
|
46
46
|
function r(i) {
|
47
47
|
return i instanceof e ? i : new e(function(o) {
|
48
48
|
o(i);
|
@@ -175,7 +175,7 @@ function F(n, t, e) {
|
|
175
175
|
function J(n) {
|
176
176
|
return this instanceof J ? (this.v = n, this) : new J(n);
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function Es(n, t, e) {
|
179
179
|
if (!Symbol.asyncIterator)
|
180
180
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
181
181
|
var s = e.apply(n, t || []), r, i = [];
|
@@ -209,7 +209,7 @@ function Os(n, t, e) {
|
|
209
209
|
d(p), i.shift(), i.length && a(i[0][0], i[0][1]);
|
210
210
|
}
|
211
211
|
}
|
212
|
-
function
|
212
|
+
function Os(n) {
|
213
213
|
if (!Symbol.asyncIterator)
|
214
214
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
215
215
|
var t = n[Symbol.asyncIterator], e;
|
@@ -238,7 +238,7 @@ function On(n) {
|
|
238
238
|
}, e = n(t);
|
239
239
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
240
240
|
}
|
241
|
-
var
|
241
|
+
var Qt = On(function(n) {
|
242
242
|
return function(e) {
|
243
243
|
n(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
244
244
|
` + e.map(function(s, r) {
|
@@ -247,13 +247,13 @@ var Vt = On(function(n) {
|
|
247
247
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
248
248
|
};
|
249
249
|
});
|
250
|
-
function
|
250
|
+
function le(n, t) {
|
251
251
|
if (n) {
|
252
252
|
var e = n.indexOf(t);
|
253
253
|
0 <= e && n.splice(e, 1);
|
254
254
|
}
|
255
255
|
}
|
256
|
-
var
|
256
|
+
var Bt = function() {
|
257
257
|
function n(t) {
|
258
258
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
259
259
|
}
|
@@ -286,7 +286,7 @@ var Ft = function() {
|
|
286
286
|
try {
|
287
287
|
u();
|
288
288
|
} catch (m) {
|
289
|
-
i = m instanceof
|
289
|
+
i = m instanceof Qt ? m.errors : [m];
|
290
290
|
}
|
291
291
|
var h = this._finalizers;
|
292
292
|
if (h) {
|
@@ -297,7 +297,7 @@ var Ft = function() {
|
|
297
297
|
try {
|
298
298
|
Ne($);
|
299
299
|
} catch (m) {
|
300
|
-
i = i ?? [], m instanceof
|
300
|
+
i = i ?? [], m instanceof Qt ? i = F(F([], R(i)), R(m.errors)) : i.push(m);
|
301
301
|
}
|
302
302
|
}
|
303
303
|
} catch (m) {
|
@@ -312,7 +312,7 @@ var Ft = function() {
|
|
312
312
|
}
|
313
313
|
}
|
314
314
|
if (i)
|
315
|
-
throw new
|
315
|
+
throw new Qt(i);
|
316
316
|
}
|
317
317
|
}, n.prototype.add = function(t) {
|
318
318
|
var e;
|
@@ -335,17 +335,17 @@ var Ft = function() {
|
|
335
335
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
336
336
|
}, n.prototype._removeParent = function(t) {
|
337
337
|
var e = this._parentage;
|
338
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
338
|
+
e === t ? this._parentage = null : Array.isArray(e) && le(e, t);
|
339
339
|
}, n.prototype.remove = function(t) {
|
340
340
|
var e = this._finalizers;
|
341
|
-
e &&
|
341
|
+
e && le(e, t), t instanceof n && t._removeParent(this);
|
342
342
|
}, n.EMPTY = function() {
|
343
343
|
var t = new n();
|
344
344
|
return t.closed = !0, t;
|
345
345
|
}(), n;
|
346
|
-
}(), kn =
|
346
|
+
}(), kn = Bt.EMPTY;
|
347
347
|
function Tn(n) {
|
348
|
-
return n instanceof
|
348
|
+
return n instanceof Bt || n && "closed" in n && g(n.remove) && g(n.add) && g(n.unsubscribe);
|
349
349
|
}
|
350
350
|
function Ne(n) {
|
351
351
|
g(n) ? n() : n.unsubscribe();
|
@@ -356,37 +356,37 @@ var Pn = {
|
|
356
356
|
Promise: void 0,
|
357
357
|
useDeprecatedSynchronousErrorHandling: !1,
|
358
358
|
useDeprecatedNextContext: !1
|
359
|
-
},
|
359
|
+
}, ce = {
|
360
360
|
setTimeout: function(n, t) {
|
361
361
|
for (var e = [], s = 2; s < arguments.length; s++)
|
362
362
|
e[s - 2] = arguments[s];
|
363
|
-
var r =
|
363
|
+
var r = ce.delegate;
|
364
364
|
return r != null && r.setTimeout ? r.setTimeout.apply(r, F([n, t], R(e))) : setTimeout.apply(void 0, F([n, t], R(e)));
|
365
365
|
},
|
366
366
|
clearTimeout: function(n) {
|
367
|
-
var t =
|
367
|
+
var t = ce.delegate;
|
368
368
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(n);
|
369
369
|
},
|
370
370
|
delegate: void 0
|
371
371
|
};
|
372
372
|
function Ln(n) {
|
373
|
-
|
373
|
+
ce.setTimeout(function() {
|
374
374
|
throw n;
|
375
375
|
});
|
376
376
|
}
|
377
|
-
function
|
377
|
+
function At() {
|
378
378
|
}
|
379
|
-
function
|
379
|
+
function xt(n) {
|
380
380
|
n();
|
381
381
|
}
|
382
|
-
var
|
382
|
+
var ye = function(n) {
|
383
383
|
st(t, n);
|
384
384
|
function t(e) {
|
385
385
|
var s = n.call(this) || this;
|
386
|
-
return s.isStopped = !1, e ? (s.destination = e, Tn(e) && e.add(s)) : s.destination =
|
386
|
+
return s.isStopped = !1, e ? (s.destination = e, Tn(e) && e.add(s)) : s.destination = Ls, s;
|
387
387
|
}
|
388
388
|
return t.create = function(e, s, r) {
|
389
|
-
return new
|
389
|
+
return new ue(e, s, r);
|
390
390
|
}, t.prototype.next = function(e) {
|
391
391
|
this.isStopped || this._next(e);
|
392
392
|
}, t.prototype.error = function(e) {
|
@@ -410,11 +410,11 @@ var be = function(n) {
|
|
410
410
|
this.unsubscribe();
|
411
411
|
}
|
412
412
|
}, t;
|
413
|
-
}(
|
414
|
-
function
|
415
|
-
return
|
413
|
+
}(Bt), ks = Function.prototype.bind;
|
414
|
+
function Vt(n, t) {
|
415
|
+
return ks.call(n, t);
|
416
416
|
}
|
417
|
-
var
|
417
|
+
var Ts = function() {
|
418
418
|
function n(t) {
|
419
419
|
this.partialObserver = t;
|
420
420
|
}
|
@@ -424,7 +424,7 @@ var Ps = function() {
|
|
424
424
|
try {
|
425
425
|
e.next(t);
|
426
426
|
} catch (s) {
|
427
|
-
|
427
|
+
wt(s);
|
428
428
|
}
|
429
429
|
}, n.prototype.error = function(t) {
|
430
430
|
var e = this.partialObserver;
|
@@ -432,20 +432,20 @@ var Ps = function() {
|
|
432
432
|
try {
|
433
433
|
e.error(t);
|
434
434
|
} catch (s) {
|
435
|
-
|
435
|
+
wt(s);
|
436
436
|
}
|
437
437
|
else
|
438
|
-
|
438
|
+
wt(t);
|
439
439
|
}, n.prototype.complete = function() {
|
440
440
|
var t = this.partialObserver;
|
441
441
|
if (t.complete)
|
442
442
|
try {
|
443
443
|
t.complete();
|
444
444
|
} catch (e) {
|
445
|
-
|
445
|
+
wt(e);
|
446
446
|
}
|
447
447
|
}, n;
|
448
|
-
}(),
|
448
|
+
}(), ue = function(n) {
|
449
449
|
st(t, n);
|
450
450
|
function t(e, s, r) {
|
451
451
|
var i = n.call(this) || this, o;
|
@@ -460,33 +460,33 @@ var Ps = function() {
|
|
460
460
|
i && Pn.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
461
461
|
return i.unsubscribe();
|
462
462
|
}, o = {
|
463
|
-
next: e.next &&
|
464
|
-
error: e.error &&
|
465
|
-
complete: e.complete &&
|
463
|
+
next: e.next && Vt(e.next, a),
|
464
|
+
error: e.error && Vt(e.error, a),
|
465
|
+
complete: e.complete && Vt(e.complete, a)
|
466
466
|
}) : o = e;
|
467
467
|
}
|
468
|
-
return i.destination = new
|
468
|
+
return i.destination = new Ts(o), i;
|
469
469
|
}
|
470
470
|
return t;
|
471
|
-
}(
|
472
|
-
function
|
471
|
+
}(ye);
|
472
|
+
function wt(n) {
|
473
473
|
Ln(n);
|
474
474
|
}
|
475
|
-
function
|
475
|
+
function Ps(n) {
|
476
476
|
throw n;
|
477
477
|
}
|
478
|
-
var
|
478
|
+
var Ls = {
|
479
479
|
closed: !0,
|
480
|
-
next:
|
481
|
-
error:
|
482
|
-
complete:
|
483
|
-
},
|
480
|
+
next: At,
|
481
|
+
error: Ps,
|
482
|
+
complete: At
|
483
|
+
}, be = function() {
|
484
484
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
485
485
|
}();
|
486
486
|
function ft(n) {
|
487
487
|
return n;
|
488
488
|
}
|
489
|
-
function
|
489
|
+
function Ms(n) {
|
490
490
|
return n.length === 0 ? ft : n.length === 1 ? n[0] : function(e) {
|
491
491
|
return n.reduce(function(s, r) {
|
492
492
|
return r(s);
|
@@ -501,8 +501,8 @@ var S = function() {
|
|
501
501
|
var e = new n();
|
502
502
|
return e.source = this, e.operator = t, e;
|
503
503
|
}, n.prototype.subscribe = function(t, e, s) {
|
504
|
-
var r = this, i =
|
505
|
-
return
|
504
|
+
var r = this, i = Us(t) ? t : new ue(t, e, s);
|
505
|
+
return xt(function() {
|
506
506
|
var o = r, a = o.operator, l = o.source;
|
507
507
|
i.add(a ? a.call(i, l) : l ? r._subscribe(i) : r._trySubscribe(i));
|
508
508
|
}), i;
|
@@ -515,7 +515,7 @@ var S = function() {
|
|
515
515
|
}, n.prototype.forEach = function(t, e) {
|
516
516
|
var s = this;
|
517
517
|
return e = Be(e), new e(function(r, i) {
|
518
|
-
var o = new
|
518
|
+
var o = new ue({
|
519
519
|
next: function(a) {
|
520
520
|
try {
|
521
521
|
t(a);
|
@@ -531,12 +531,12 @@ var S = function() {
|
|
531
531
|
}, n.prototype._subscribe = function(t) {
|
532
532
|
var e;
|
533
533
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
534
|
-
}, n.prototype[
|
534
|
+
}, n.prototype[be] = function() {
|
535
535
|
return this;
|
536
536
|
}, n.prototype.pipe = function() {
|
537
537
|
for (var t = [], e = 0; e < arguments.length; e++)
|
538
538
|
t[e] = arguments[e];
|
539
|
-
return
|
539
|
+
return Ms(t)(this);
|
540
540
|
}, n.prototype.toPromise = function(t) {
|
541
541
|
var e = this;
|
542
542
|
return t = Be(t), new t(function(s, r) {
|
@@ -557,18 +557,18 @@ function Be(n) {
|
|
557
557
|
var t;
|
558
558
|
return (t = n ?? Pn.Promise) !== null && t !== void 0 ? t : Promise;
|
559
559
|
}
|
560
|
-
function
|
560
|
+
function Is(n) {
|
561
561
|
return n && g(n.next) && g(n.error) && g(n.complete);
|
562
562
|
}
|
563
|
-
function
|
564
|
-
return n && n instanceof
|
563
|
+
function Us(n) {
|
564
|
+
return n && n instanceof ye || Is(n) && Tn(n);
|
565
565
|
}
|
566
|
-
function
|
566
|
+
function Rs(n) {
|
567
567
|
return g(n == null ? void 0 : n.lift);
|
568
568
|
}
|
569
569
|
function D(n) {
|
570
570
|
return function(t) {
|
571
|
-
if (
|
571
|
+
if (Rs(t))
|
572
572
|
return t.lift(function(e) {
|
573
573
|
try {
|
574
574
|
return n(e, this);
|
@@ -580,9 +580,9 @@ function D(n) {
|
|
580
580
|
};
|
581
581
|
}
|
582
582
|
function E(n, t, e, s, r) {
|
583
|
-
return new
|
583
|
+
return new js(n, t, e, s, r);
|
584
584
|
}
|
585
|
-
var
|
585
|
+
var js = function(n) {
|
586
586
|
st(t, n);
|
587
587
|
function t(e, s, r, i, o, a) {
|
588
588
|
var l = n.call(this, e) || this;
|
@@ -617,7 +617,7 @@ var Hs = function(n) {
|
|
617
617
|
n.prototype.unsubscribe.call(this), !s && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
618
618
|
}
|
619
619
|
}, t;
|
620
|
-
}(
|
620
|
+
}(ye), Hs = On(function(n) {
|
621
621
|
return function() {
|
622
622
|
n(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
623
623
|
};
|
@@ -632,10 +632,10 @@ var Hs = function(n) {
|
|
632
632
|
return s.operator = e, s;
|
633
633
|
}, t.prototype._throwIfClosed = function() {
|
634
634
|
if (this.closed)
|
635
|
-
throw new
|
635
|
+
throw new Hs();
|
636
636
|
}, t.prototype.next = function(e) {
|
637
637
|
var s = this;
|
638
|
-
|
638
|
+
xt(function() {
|
639
639
|
var r, i;
|
640
640
|
if (s._throwIfClosed(), !s.isStopped) {
|
641
641
|
s.currentObservers || (s.currentObservers = Array.from(s.observers));
|
@@ -658,7 +658,7 @@ var Hs = function(n) {
|
|
658
658
|
});
|
659
659
|
}, t.prototype.error = function(e) {
|
660
660
|
var s = this;
|
661
|
-
|
661
|
+
xt(function() {
|
662
662
|
if (s._throwIfClosed(), !s.isStopped) {
|
663
663
|
s.hasError = s.isStopped = !0, s.thrownError = e;
|
664
664
|
for (var r = s.observers; r.length; )
|
@@ -667,7 +667,7 @@ var Hs = function(n) {
|
|
667
667
|
});
|
668
668
|
}, t.prototype.complete = function() {
|
669
669
|
var e = this;
|
670
|
-
|
670
|
+
xt(function() {
|
671
671
|
if (e._throwIfClosed(), !e.isStopped) {
|
672
672
|
e.isStopped = !0;
|
673
673
|
for (var s = e.observers; s.length; )
|
@@ -689,8 +689,8 @@ var Hs = function(n) {
|
|
689
689
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
690
690
|
}, t.prototype._innerSubscribe = function(e) {
|
691
691
|
var s = this, r = this, i = r.hasError, o = r.isStopped, a = r.observers;
|
692
|
-
return i || o ? kn : (this.currentObservers = null, a.push(e), new
|
693
|
-
s.currentObservers = null,
|
692
|
+
return i || o ? kn : (this.currentObservers = null, a.push(e), new Bt(function() {
|
693
|
+
s.currentObservers = null, le(a, e);
|
694
694
|
}));
|
695
695
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
696
696
|
var s = this, r = s.hasError, i = s.thrownError, o = s.isStopped;
|
@@ -746,29 +746,29 @@ var Hs = function(n) {
|
|
746
746
|
}(_), vt = new S(function(n) {
|
747
747
|
return n.complete();
|
748
748
|
});
|
749
|
-
function
|
749
|
+
function Ds(n) {
|
750
750
|
return n && g(n.schedule);
|
751
751
|
}
|
752
|
-
function
|
752
|
+
function we(n) {
|
753
753
|
return n[n.length - 1];
|
754
754
|
}
|
755
755
|
function Mn(n) {
|
756
|
-
return g(
|
756
|
+
return g(we(n)) ? n.pop() : void 0;
|
757
757
|
}
|
758
|
-
function
|
759
|
-
return
|
758
|
+
function _e(n) {
|
759
|
+
return Ds(we(n)) ? n.pop() : void 0;
|
760
760
|
}
|
761
|
-
function
|
762
|
-
return typeof
|
761
|
+
function Ns(n, t) {
|
762
|
+
return typeof we(n) == "number" ? n.pop() : t;
|
763
763
|
}
|
764
|
-
var
|
764
|
+
var Se = function(n) {
|
765
765
|
return n && typeof n.length == "number" && typeof n != "function";
|
766
766
|
};
|
767
767
|
function In(n) {
|
768
768
|
return g(n == null ? void 0 : n.then);
|
769
769
|
}
|
770
770
|
function Un(n) {
|
771
|
-
return g(n[
|
771
|
+
return g(n[be]);
|
772
772
|
}
|
773
773
|
function Rn(n) {
|
774
774
|
return Symbol.asyncIterator && g(n == null ? void 0 : n[Symbol.asyncIterator]);
|
@@ -776,15 +776,15 @@ function Rn(n) {
|
|
776
776
|
function jn(n) {
|
777
777
|
return new TypeError("You provided " + (n !== null && typeof n == "object" ? "an invalid object" : "'" + n + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
778
778
|
}
|
779
|
-
function
|
779
|
+
function Bs() {
|
780
780
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
781
781
|
}
|
782
|
-
var Hn =
|
782
|
+
var Hn = Bs();
|
783
783
|
function Dn(n) {
|
784
784
|
return g(n == null ? void 0 : n[Hn]);
|
785
785
|
}
|
786
786
|
function Nn(n) {
|
787
|
-
return
|
787
|
+
return Es(this, arguments, function() {
|
788
788
|
var e, s, r, i;
|
789
789
|
return En(this, function(o) {
|
790
790
|
switch (o.label) {
|
@@ -822,36 +822,36 @@ function k(n) {
|
|
822
822
|
return n;
|
823
823
|
if (n != null) {
|
824
824
|
if (Un(n))
|
825
|
+
return zs(n);
|
826
|
+
if (Se(n))
|
825
827
|
return Fs(n);
|
826
|
-
if (xe(n))
|
827
|
-
return Ws(n);
|
828
828
|
if (In(n))
|
829
|
-
return
|
829
|
+
return Ws(n);
|
830
830
|
if (Rn(n))
|
831
831
|
return zn(n);
|
832
832
|
if (Dn(n))
|
833
|
-
return
|
833
|
+
return Zs(n);
|
834
834
|
if (Bn(n))
|
835
|
-
return
|
835
|
+
return Gs(n);
|
836
836
|
}
|
837
837
|
throw jn(n);
|
838
838
|
}
|
839
|
-
function
|
839
|
+
function zs(n) {
|
840
840
|
return new S(function(t) {
|
841
|
-
var e = n[
|
841
|
+
var e = n[be]();
|
842
842
|
if (g(e.subscribe))
|
843
843
|
return e.subscribe(t);
|
844
844
|
throw new TypeError("Provided object does not correctly implement Symbol.observable");
|
845
845
|
});
|
846
846
|
}
|
847
|
-
function
|
847
|
+
function Fs(n) {
|
848
848
|
return new S(function(t) {
|
849
849
|
for (var e = 0; e < n.length && !t.closed; e++)
|
850
850
|
t.next(n[e]);
|
851
851
|
t.complete();
|
852
852
|
});
|
853
853
|
}
|
854
|
-
function
|
854
|
+
function Ws(n) {
|
855
855
|
return new S(function(t) {
|
856
856
|
n.then(function(e) {
|
857
857
|
t.closed || (t.next(e), t.complete());
|
@@ -860,7 +860,7 @@ function Zs(n) {
|
|
860
860
|
}).then(null, Ln);
|
861
861
|
});
|
862
862
|
}
|
863
|
-
function
|
863
|
+
function Zs(n) {
|
864
864
|
return new S(function(t) {
|
865
865
|
var e, s;
|
866
866
|
try {
|
@@ -884,22 +884,22 @@ function Gs(n) {
|
|
884
884
|
}
|
885
885
|
function zn(n) {
|
886
886
|
return new S(function(t) {
|
887
|
-
|
887
|
+
qs(n, t).catch(function(e) {
|
888
888
|
return t.error(e);
|
889
889
|
});
|
890
890
|
});
|
891
891
|
}
|
892
|
-
function
|
892
|
+
function Gs(n) {
|
893
893
|
return zn(Nn(n));
|
894
894
|
}
|
895
|
-
function
|
895
|
+
function qs(n, t) {
|
896
896
|
var e, s, r, i;
|
897
|
-
return
|
897
|
+
return As(this, void 0, void 0, function() {
|
898
898
|
var o, a;
|
899
899
|
return En(this, function(l) {
|
900
900
|
switch (l.label) {
|
901
901
|
case 0:
|
902
|
-
l.trys.push([0, 5, 6, 11]), e =
|
902
|
+
l.trys.push([0, 5, 6, 11]), e = Os(n), l.label = 1;
|
903
903
|
case 1:
|
904
904
|
return [4, e.next()];
|
905
905
|
case 2:
|
@@ -964,13 +964,13 @@ function Wn(n, t) {
|
|
964
964
|
}, t));
|
965
965
|
});
|
966
966
|
}
|
967
|
-
function
|
967
|
+
function Ys(n, t) {
|
968
968
|
return k(n).pipe(Wn(t), Fn(t));
|
969
969
|
}
|
970
|
-
function
|
970
|
+
function Ks(n, t) {
|
971
971
|
return k(n).pipe(Wn(t), Fn(t));
|
972
972
|
}
|
973
|
-
function
|
973
|
+
function Xs(n, t) {
|
974
974
|
return new S(function(e) {
|
975
975
|
var s = 0;
|
976
976
|
return t.schedule(function() {
|
@@ -978,7 +978,7 @@ function Js(n, t) {
|
|
978
978
|
});
|
979
979
|
});
|
980
980
|
}
|
981
|
-
function
|
981
|
+
function Js(n, t) {
|
982
982
|
return new S(function(e) {
|
983
983
|
var s;
|
984
984
|
return P(e, t, function() {
|
@@ -1011,36 +1011,36 @@ function Zn(n, t) {
|
|
1011
1011
|
});
|
1012
1012
|
});
|
1013
1013
|
}
|
1014
|
-
function
|
1014
|
+
function Qs(n, t) {
|
1015
1015
|
return Zn(Nn(n), t);
|
1016
1016
|
}
|
1017
|
-
function
|
1017
|
+
function Vs(n, t) {
|
1018
1018
|
if (n != null) {
|
1019
1019
|
if (Un(n))
|
1020
|
-
return
|
1021
|
-
if (
|
1022
|
-
return Js(n, t);
|
1023
|
-
if (In(n))
|
1020
|
+
return Ys(n, t);
|
1021
|
+
if (Se(n))
|
1024
1022
|
return Xs(n, t);
|
1023
|
+
if (In(n))
|
1024
|
+
return Ks(n, t);
|
1025
1025
|
if (Rn(n))
|
1026
1026
|
return Zn(n, t);
|
1027
1027
|
if (Dn(n))
|
1028
|
-
return
|
1028
|
+
return Js(n, t);
|
1029
1029
|
if (Bn(n))
|
1030
|
-
return
|
1030
|
+
return Qs(n, t);
|
1031
1031
|
}
|
1032
1032
|
throw jn(n);
|
1033
1033
|
}
|
1034
|
-
function
|
1035
|
-
return t ?
|
1034
|
+
function zt(n, t) {
|
1035
|
+
return t ? Vs(n, t) : k(n);
|
1036
1036
|
}
|
1037
|
-
function
|
1037
|
+
function he() {
|
1038
1038
|
for (var n = [], t = 0; t < arguments.length; t++)
|
1039
1039
|
n[t] = arguments[t];
|
1040
|
-
var e =
|
1041
|
-
return
|
1040
|
+
var e = _e(n);
|
1041
|
+
return zt(n, e);
|
1042
1042
|
}
|
1043
|
-
function
|
1043
|
+
function Et(n, t) {
|
1044
1044
|
return D(function(e, s) {
|
1045
1045
|
var r = 0;
|
1046
1046
|
e.subscribe(E(s, function(i) {
|
@@ -1048,23 +1048,23 @@ function Ot(n, t) {
|
|
1048
1048
|
}));
|
1049
1049
|
});
|
1050
1050
|
}
|
1051
|
-
var
|
1052
|
-
function
|
1053
|
-
return
|
1051
|
+
var tr = Array.isArray;
|
1052
|
+
function er(n, t) {
|
1053
|
+
return tr(t) ? n.apply(void 0, F([], R(t))) : n(t);
|
1054
1054
|
}
|
1055
1055
|
function Gn(n) {
|
1056
|
-
return
|
1057
|
-
return
|
1056
|
+
return Et(function(t) {
|
1057
|
+
return er(n, t);
|
1058
1058
|
});
|
1059
1059
|
}
|
1060
|
-
var
|
1061
|
-
function
|
1060
|
+
var nr = Array.isArray, sr = Object.getPrototypeOf, rr = Object.prototype, ir = Object.keys;
|
1061
|
+
function or(n) {
|
1062
1062
|
if (n.length === 1) {
|
1063
1063
|
var t = n[0];
|
1064
|
-
if (
|
1064
|
+
if (nr(t))
|
1065
1065
|
return { args: t, keys: null };
|
1066
|
-
if (
|
1067
|
-
var e =
|
1066
|
+
if (ar(t)) {
|
1067
|
+
var e = ir(t);
|
1068
1068
|
return {
|
1069
1069
|
args: e.map(function(s) {
|
1070
1070
|
return t[s];
|
@@ -1075,31 +1075,31 @@ function ar(n) {
|
|
1075
1075
|
}
|
1076
1076
|
return { args: n, keys: null };
|
1077
1077
|
}
|
1078
|
-
function
|
1079
|
-
return n && typeof n == "object" &&
|
1078
|
+
function ar(n) {
|
1079
|
+
return n && typeof n == "object" && sr(n) === rr;
|
1080
1080
|
}
|
1081
|
-
function
|
1081
|
+
function lr(n, t) {
|
1082
1082
|
return n.reduce(function(e, s, r) {
|
1083
1083
|
return e[s] = t[r], e;
|
1084
1084
|
}, {});
|
1085
1085
|
}
|
1086
|
-
function
|
1086
|
+
function cr() {
|
1087
1087
|
for (var n = [], t = 0; t < arguments.length; t++)
|
1088
1088
|
n[t] = arguments[t];
|
1089
|
-
var e =
|
1089
|
+
var e = _e(n), s = Mn(n), r = or(n), i = r.args, o = r.keys;
|
1090
1090
|
if (i.length === 0)
|
1091
|
-
return
|
1092
|
-
var a = new S(
|
1093
|
-
return
|
1091
|
+
return zt([], e);
|
1092
|
+
var a = new S(ur(i, e, o ? function(l) {
|
1093
|
+
return lr(o, l);
|
1094
1094
|
} : ft));
|
1095
1095
|
return s ? a.pipe(Gn(s)) : a;
|
1096
1096
|
}
|
1097
|
-
function
|
1097
|
+
function ur(n, t, e) {
|
1098
1098
|
return e === void 0 && (e = ft), function(s) {
|
1099
1099
|
Fe(t, function() {
|
1100
1100
|
for (var r = n.length, i = new Array(r), o = r, a = r, l = function(u) {
|
1101
1101
|
Fe(t, function() {
|
1102
|
-
var h =
|
1102
|
+
var h = zt(n[u], t), d = !1;
|
1103
1103
|
h.subscribe(E(s, function(p) {
|
1104
1104
|
i[u] = p, d || (d = !0, a--), a || s.next(e(i.slice()));
|
1105
1105
|
}, function() {
|
@@ -1114,7 +1114,7 @@ function hr(n, t, e) {
|
|
1114
1114
|
function Fe(n, t, e) {
|
1115
1115
|
n ? P(e, n, t) : t();
|
1116
1116
|
}
|
1117
|
-
function
|
1117
|
+
function hr(n, t, e, s, r, i, o, a) {
|
1118
1118
|
var l = [], c = 0, u = 0, h = !1, d = function() {
|
1119
1119
|
h && !l.length && !c && t.complete();
|
1120
1120
|
}, p = function(m) {
|
@@ -1131,15 +1131,15 @@ function dr(n, t, e, s, r, i, o, a) {
|
|
1131
1131
|
try {
|
1132
1132
|
c--;
|
1133
1133
|
for (var rt = function() {
|
1134
|
-
var
|
1134
|
+
var bt = l.shift();
|
1135
1135
|
o ? P(t, o, function() {
|
1136
|
-
return $(
|
1137
|
-
}) : $(
|
1136
|
+
return $(bt);
|
1137
|
+
}) : $(bt);
|
1138
1138
|
}; l.length && c < s; )
|
1139
1139
|
rt();
|
1140
1140
|
d();
|
1141
|
-
} catch (
|
1142
|
-
t.error(
|
1141
|
+
} catch (bt) {
|
1142
|
+
t.error(bt);
|
1143
1143
|
}
|
1144
1144
|
}));
|
1145
1145
|
};
|
@@ -1149,30 +1149,30 @@ function dr(n, t, e, s, r, i, o, a) {
|
|
1149
1149
|
a == null || a();
|
1150
1150
|
};
|
1151
1151
|
}
|
1152
|
-
function
|
1153
|
-
return e === void 0 && (e = 1 / 0), g(t) ?
|
1154
|
-
return
|
1152
|
+
function xe(n, t, e) {
|
1153
|
+
return e === void 0 && (e = 1 / 0), g(t) ? xe(function(s, r) {
|
1154
|
+
return Et(function(i, o) {
|
1155
1155
|
return t(s, i, r, o);
|
1156
1156
|
})(k(n(s, r)));
|
1157
1157
|
}, e) : (typeof t == "number" && (e = t), D(function(s, r) {
|
1158
|
-
return
|
1158
|
+
return hr(s, r, n, e);
|
1159
1159
|
}));
|
1160
1160
|
}
|
1161
|
-
function
|
1162
|
-
return n === void 0 && (n = 1 / 0),
|
1161
|
+
function dr(n) {
|
1162
|
+
return n === void 0 && (n = 1 / 0), xe(ft, n);
|
1163
1163
|
}
|
1164
|
-
var
|
1165
|
-
function
|
1164
|
+
var pr = ["addListener", "removeListener"], fr = ["addEventListener", "removeEventListener"], vr = ["on", "off"];
|
1165
|
+
function Ot(n, t, e, s) {
|
1166
1166
|
if (g(e) && (s = e, e = void 0), s)
|
1167
|
-
return
|
1168
|
-
var r = R(
|
1167
|
+
return Ot(n, t, e).pipe(Gn(s));
|
1168
|
+
var r = R($r(n) ? fr.map(function(a) {
|
1169
1169
|
return function(l) {
|
1170
1170
|
return n[a](t, l, e);
|
1171
1171
|
};
|
1172
|
-
}) :
|
1173
|
-
if (!i &&
|
1174
|
-
return
|
1175
|
-
return
|
1172
|
+
}) : gr(n) ? pr.map(We(n, t)) : mr(n) ? vr.map(We(n, t)) : [], 2), i = r[0], o = r[1];
|
1173
|
+
if (!i && Se(n))
|
1174
|
+
return xe(function(a) {
|
1175
|
+
return Ot(a, t, e);
|
1176
1176
|
})(k(n));
|
1177
1177
|
if (!i)
|
1178
1178
|
throw new TypeError("Invalid event target");
|
@@ -1194,22 +1194,22 @@ function We(n, t) {
|
|
1194
1194
|
};
|
1195
1195
|
};
|
1196
1196
|
}
|
1197
|
-
function
|
1197
|
+
function gr(n) {
|
1198
1198
|
return g(n.addListener) && g(n.removeListener);
|
1199
1199
|
}
|
1200
|
-
function
|
1200
|
+
function mr(n) {
|
1201
1201
|
return g(n.on) && g(n.off);
|
1202
1202
|
}
|
1203
|
-
function
|
1203
|
+
function $r(n) {
|
1204
1204
|
return g(n.addEventListener) && g(n.removeEventListener);
|
1205
1205
|
}
|
1206
|
-
function
|
1206
|
+
function yr() {
|
1207
1207
|
for (var n = [], t = 0; t < arguments.length; t++)
|
1208
1208
|
n[t] = arguments[t];
|
1209
|
-
var e =
|
1210
|
-
return r.length ? r.length === 1 ? k(r[0]) :
|
1209
|
+
var e = _e(n), s = Ns(n, 1 / 0), r = n;
|
1210
|
+
return r.length ? r.length === 1 ? k(r[0]) : dr(s)(zt(r, e)) : vt;
|
1211
1211
|
}
|
1212
|
-
function
|
1212
|
+
function de(n) {
|
1213
1213
|
return n <= 0 ? function() {
|
1214
1214
|
return vt;
|
1215
1215
|
} : D(function(t, e) {
|
@@ -1241,7 +1241,7 @@ function Ze(n) {
|
|
1241
1241
|
return D(function(t, e) {
|
1242
1242
|
k(n).subscribe(E(e, function() {
|
1243
1243
|
return e.complete();
|
1244
|
-
},
|
1244
|
+
}, At)), !e.closed && t.subscribe(e);
|
1245
1245
|
});
|
1246
1246
|
}
|
1247
1247
|
function qn() {
|
@@ -1254,7 +1254,7 @@ function qn() {
|
|
1254
1254
|
}), l = !1, c = function(h) {
|
1255
1255
|
k(n[h]).subscribe(E(r, function(d) {
|
1256
1256
|
o[h] = d, !l && !a[h] && (a[h] = !0, (l = a.every(ft)) && (a = null));
|
1257
|
-
},
|
1257
|
+
}, At));
|
1258
1258
|
}, u = 0; u < i; u++)
|
1259
1259
|
c(u);
|
1260
1260
|
s.subscribe(E(r, function(h) {
|
@@ -1267,7 +1267,7 @@ function qn() {
|
|
1267
1267
|
}
|
1268
1268
|
var I = /* @__PURE__ */ ((n) => (n.User = "user", n.Agent = "agent", n.System = "system", n))(I || {});
|
1269
1269
|
const Yn = () => crypto.randomUUID();
|
1270
|
-
class
|
1270
|
+
class Ft {
|
1271
1271
|
constructor(t, e, s) {
|
1272
1272
|
this.type = t, this.sender = e, this.messages = s, this.status = "delivered", this.didUpdate = new _(), this.actions$ = new _(), this.remove$ = new _(), this.timestamp = Date.now(), this.id = Yn();
|
1273
1273
|
}
|
@@ -1285,12 +1285,12 @@ class Zt {
|
|
1285
1285
|
this.remove$.next();
|
1286
1286
|
}
|
1287
1287
|
}
|
1288
|
-
class
|
1288
|
+
class br {
|
1289
1289
|
constructor(t) {
|
1290
1290
|
this.name = t, this.print$ = new _();
|
1291
1291
|
}
|
1292
1292
|
print(t) {
|
1293
|
-
const e = new
|
1293
|
+
const e = new Ft(
|
1294
1294
|
I.Agent,
|
1295
1295
|
{ name: this.name },
|
1296
1296
|
[
|
@@ -1305,12 +1305,12 @@ class wr {
|
|
1305
1305
|
return this.print$.asObservable();
|
1306
1306
|
}
|
1307
1307
|
}
|
1308
|
-
class
|
1308
|
+
class wr {
|
1309
1309
|
constructor(t) {
|
1310
1310
|
this.name = t, this.print$ = new _();
|
1311
1311
|
}
|
1312
1312
|
print(t) {
|
1313
|
-
const e = new
|
1313
|
+
const e = new Ft(
|
1314
1314
|
I.User,
|
1315
1315
|
{ name: this.name },
|
1316
1316
|
[
|
@@ -1325,12 +1325,12 @@ class _r {
|
|
1325
1325
|
return this.print$.asObservable();
|
1326
1326
|
}
|
1327
1327
|
}
|
1328
|
-
class
|
1328
|
+
class _r {
|
1329
1329
|
constructor() {
|
1330
1330
|
this.print$ = new _(), this.name = "system";
|
1331
1331
|
}
|
1332
1332
|
print(t) {
|
1333
|
-
const e = new
|
1333
|
+
const e = new Ft(
|
1334
1334
|
I.System,
|
1335
1335
|
{ name: this.name },
|
1336
1336
|
[
|
@@ -1350,7 +1350,7 @@ class No {
|
|
1350
1350
|
this.name = t, this.component = e, this.print$ = new _(), this.typingState$ = new M(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.onComplete = () => this.complete$.asObservable();
|
1351
1351
|
}
|
1352
1352
|
connect(t = {}) {
|
1353
|
-
this.complete$.pipe(
|
1353
|
+
this.complete$.pipe(de(1)).subscribe(() => {
|
1354
1354
|
this.disconnected();
|
1355
1355
|
});
|
1356
1356
|
}
|
@@ -1362,7 +1362,7 @@ class No {
|
|
1362
1362
|
this.print(I.User, t.text);
|
1363
1363
|
}
|
1364
1364
|
print(t, e) {
|
1365
|
-
const s = new
|
1365
|
+
const s = new Ft(
|
1366
1366
|
t,
|
1367
1367
|
{
|
1368
1368
|
name: ""
|
@@ -1379,19 +1379,19 @@ class No {
|
|
1379
1379
|
return this.print$.next(t), t;
|
1380
1380
|
}
|
1381
1381
|
createAgent(t) {
|
1382
|
-
const e = new
|
1382
|
+
const e = new br(t);
|
1383
1383
|
return e.subscribe().subscribe((s) => {
|
1384
1384
|
this.playNotification(), this.printEntry(s);
|
1385
1385
|
}), e;
|
1386
1386
|
}
|
1387
1387
|
createUser(t) {
|
1388
|
-
const e = new
|
1388
|
+
const e = new wr(t);
|
1389
1389
|
return e.subscribe().subscribe((s) => {
|
1390
1390
|
this.printEntry(s);
|
1391
1391
|
}), e;
|
1392
1392
|
}
|
1393
1393
|
createSystem() {
|
1394
|
-
const t = new
|
1394
|
+
const t = new _r();
|
1395
1395
|
return t.subscribe().subscribe((e) => {
|
1396
1396
|
this.printEntry(e);
|
1397
1397
|
}), t;
|
@@ -1427,17 +1427,17 @@ class No {
|
|
1427
1427
|
* Copyright 2019 Google LLC
|
1428
1428
|
* SPDX-License-Identifier: BSD-3-Clause
|
1429
1429
|
*/
|
1430
|
-
const
|
1430
|
+
const Ct = globalThis, Ce = Ct.ShadowRoot && (Ct.ShadyCSS === void 0 || Ct.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Ae = Symbol(), Ge = /* @__PURE__ */ new WeakMap();
|
1431
1431
|
let Kn = class {
|
1432
1432
|
constructor(t, e, s) {
|
1433
|
-
if (this._$cssResult$ = !0, s !==
|
1433
|
+
if (this._$cssResult$ = !0, s !== Ae)
|
1434
1434
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
1435
1435
|
this.cssText = t, this.t = e;
|
1436
1436
|
}
|
1437
1437
|
get styleSheet() {
|
1438
1438
|
let t = this.o;
|
1439
1439
|
const e = this.t;
|
1440
|
-
if (
|
1440
|
+
if (Ce && t === void 0) {
|
1441
1441
|
const s = e !== void 0 && e.length === 1;
|
1442
1442
|
s && (t = Ge.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Ge.set(e, t));
|
1443
1443
|
}
|
@@ -1447,7 +1447,7 @@ let Kn = class {
|
|
1447
1447
|
return this.cssText;
|
1448
1448
|
}
|
1449
1449
|
};
|
1450
|
-
const
|
1450
|
+
const Sr = (n) => new Kn(typeof n == "string" ? n : n + "", void 0, Ae), C = (n, ...t) => {
|
1451
1451
|
const e = n.length === 1 ? n[0] : t.reduce((s, r, i) => s + ((o) => {
|
1452
1452
|
if (o._$cssResult$ === !0)
|
1453
1453
|
return o.cssText;
|
@@ -1455,30 +1455,30 @@ const xr = (n) => new Kn(typeof n == "string" ? n : n + "", void 0, Ee), C = (n,
|
|
1455
1455
|
return o;
|
1456
1456
|
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.");
|
1457
1457
|
})(r) + n[i + 1], n[0]);
|
1458
|
-
return new Kn(e, n,
|
1459
|
-
},
|
1460
|
-
if (
|
1458
|
+
return new Kn(e, n, Ae);
|
1459
|
+
}, xr = (n, t) => {
|
1460
|
+
if (Ce)
|
1461
1461
|
n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
1462
1462
|
else
|
1463
1463
|
for (const e of t) {
|
1464
|
-
const s = document.createElement("style"), r =
|
1464
|
+
const s = document.createElement("style"), r = Ct.litNonce;
|
1465
1465
|
r !== void 0 && s.setAttribute("nonce", r), s.textContent = e.cssText, n.appendChild(s);
|
1466
1466
|
}
|
1467
|
-
}, qe =
|
1467
|
+
}, qe = Ce ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
|
1468
1468
|
let e = "";
|
1469
1469
|
for (const s of t.cssRules)
|
1470
1470
|
e += s.cssText;
|
1471
|
-
return
|
1471
|
+
return Sr(e);
|
1472
1472
|
})(n) : n;
|
1473
1473
|
/**
|
1474
1474
|
* @license
|
1475
1475
|
* Copyright 2017 Google LLC
|
1476
1476
|
* SPDX-License-Identifier: BSD-3-Clause
|
1477
1477
|
*/
|
1478
|
-
const { is:
|
1478
|
+
const { is: Cr, defineProperty: Ar, getOwnPropertyDescriptor: Er, getOwnPropertyNames: Or, getOwnPropertySymbols: kr, getPrototypeOf: Tr } = Object, U = globalThis, Ye = U.trustedTypes, Pr = Ye ? Ye.emptyScript : "", te = U.reactiveElementPolyfillSupport, ot = (n, t) => n, kt = { toAttribute(n, t) {
|
1479
1479
|
switch (t) {
|
1480
1480
|
case Boolean:
|
1481
|
-
n = n ?
|
1481
|
+
n = n ? Pr : null;
|
1482
1482
|
break;
|
1483
1483
|
case Object:
|
1484
1484
|
case Array:
|
@@ -1503,7 +1503,7 @@ const { is: Ar, defineProperty: Er, getOwnPropertyDescriptor: Or, getOwnProperty
|
|
1503
1503
|
}
|
1504
1504
|
}
|
1505
1505
|
return e;
|
1506
|
-
} },
|
1506
|
+
} }, Ee = (n, t) => !Cr(n, t), Ke = { attribute: !0, type: String, converter: kt, reflect: !1, hasChanged: Ee };
|
1507
1507
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), U.litPropertyMetadata ?? (U.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1508
1508
|
let q = class extends HTMLElement {
|
1509
1509
|
static addInitializer(t) {
|
@@ -1515,11 +1515,11 @@ let q = class extends HTMLElement {
|
|
1515
1515
|
static createProperty(t, e = Ke) {
|
1516
1516
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
1517
1517
|
const s = Symbol(), r = this.getPropertyDescriptor(t, s, e);
|
1518
|
-
r !== void 0 &&
|
1518
|
+
r !== void 0 && Ar(this.prototype, t, r);
|
1519
1519
|
}
|
1520
1520
|
}
|
1521
1521
|
static getPropertyDescriptor(t, e, s) {
|
1522
|
-
const { get: r, set: i } =
|
1522
|
+
const { get: r, set: i } = Er(this.prototype, t) ?? { get() {
|
1523
1523
|
return this[e];
|
1524
1524
|
}, set(o) {
|
1525
1525
|
this[e] = o;
|
@@ -1537,14 +1537,14 @@ let q = class extends HTMLElement {
|
|
1537
1537
|
static _$Ei() {
|
1538
1538
|
if (this.hasOwnProperty(ot("elementProperties")))
|
1539
1539
|
return;
|
1540
|
-
const t =
|
1540
|
+
const t = Tr(this);
|
1541
1541
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
1542
1542
|
}
|
1543
1543
|
static finalize() {
|
1544
1544
|
if (this.hasOwnProperty(ot("finalized")))
|
1545
1545
|
return;
|
1546
1546
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(ot("properties"))) {
|
1547
|
-
const e = this.properties, s = [...
|
1547
|
+
const e = this.properties, s = [...Or(e), ...kr(e)];
|
1548
1548
|
for (const r of s)
|
1549
1549
|
this.createProperty(r, e[r]);
|
1550
1550
|
}
|
@@ -1599,7 +1599,7 @@ let q = class extends HTMLElement {
|
|
1599
1599
|
}
|
1600
1600
|
createRenderRoot() {
|
1601
1601
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1602
|
-
return
|
1602
|
+
return xr(t, this.constructor.elementStyles), t;
|
1603
1603
|
}
|
1604
1604
|
connectedCallback() {
|
1605
1605
|
var t;
|
@@ -1624,7 +1624,7 @@ let q = class extends HTMLElement {
|
|
1624
1624
|
var i;
|
1625
1625
|
const s = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, s);
|
1626
1626
|
if (r !== void 0 && s.reflect === !0) {
|
1627
|
-
const o = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter :
|
1627
|
+
const o = (((i = s.converter) == null ? void 0 : i.toAttribute) !== void 0 ? s.converter : kt).toAttribute(e, s.type);
|
1628
1628
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
1629
1629
|
}
|
1630
1630
|
}
|
@@ -1632,13 +1632,13 @@ let q = class extends HTMLElement {
|
|
1632
1632
|
var i;
|
1633
1633
|
const s = this.constructor, r = s._$Eh.get(t);
|
1634
1634
|
if (r !== void 0 && this._$Em !== r) {
|
1635
|
-
const o = s.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? o.converter :
|
1635
|
+
const o = s.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? o.converter : kt;
|
1636
1636
|
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
1637
1637
|
}
|
1638
1638
|
}
|
1639
1639
|
requestUpdate(t, e, s, r = !1, i) {
|
1640
1640
|
if (t !== void 0) {
|
1641
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
1641
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? Ee)(r ? i : this[t], e))
|
1642
1642
|
return;
|
1643
1643
|
this.C(t, e, s);
|
1644
1644
|
}
|
@@ -1716,21 +1716,21 @@ let q = class extends HTMLElement {
|
|
1716
1716
|
firstUpdated(t) {
|
1717
1717
|
}
|
1718
1718
|
};
|
1719
|
-
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[ot("elementProperties")] = /* @__PURE__ */ new Map(), q[ot("finalized")] = /* @__PURE__ */ new Map(),
|
1719
|
+
q.elementStyles = [], q.shadowRootOptions = { mode: "open" }, q[ot("elementProperties")] = /* @__PURE__ */ new Map(), q[ot("finalized")] = /* @__PURE__ */ new Map(), te == null || te({ ReactiveElement: q }), (U.reactiveElementVersions ?? (U.reactiveElementVersions = [])).push("2.0.1");
|
1720
1720
|
/**
|
1721
1721
|
* @license
|
1722
1722
|
* Copyright 2017 Google LLC
|
1723
1723
|
* SPDX-License-Identifier: BSD-3-Clause
|
1724
1724
|
*/
|
1725
|
-
const at = globalThis,
|
1726
|
-
\f\r]`, it = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Je = /-->/g, Qe = />/g, N = RegExp(`>|${
|
1727
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ve = /'/g, tn = /"/g, Vn = /^(?:script|style|textarea|title)$/i,
|
1725
|
+
const at = globalThis, Tt = at.trustedTypes, Xe = Tt ? Tt.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, Xn = "$lit$", L = `lit$${(Math.random() + "").slice(9)}$`, Jn = "?" + L, Lr = `<${Jn}>`, W = document, ct = () => W.createComment(""), ut = (n) => n === null || typeof n != "object" && typeof n != "function", Qn = Array.isArray, Mr = (n) => Qn(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", ee = `[
|
1726
|
+
\f\r]`, it = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Je = /-->/g, Qe = />/g, N = RegExp(`>|${ee}(?:([^\\s"'>=/]+)(${ee}*=${ee}*(?:[^
|
1727
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ve = /'/g, tn = /"/g, Vn = /^(?:script|style|textarea|title)$/i, Ir = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), v = Ir(1), j = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), en = /* @__PURE__ */ new WeakMap(), z = W.createTreeWalker(W, 129);
|
1728
1728
|
function ts(n, t) {
|
1729
1729
|
if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
|
1730
1730
|
throw Error("invalid template strings array");
|
1731
1731
|
return Xe !== void 0 ? Xe.createHTML(t) : t;
|
1732
1732
|
}
|
1733
|
-
const
|
1733
|
+
const Ur = (n, t) => {
|
1734
1734
|
const e = n.length - 1, s = [];
|
1735
1735
|
let r, i = t === 2 ? "<svg>" : "", o = it;
|
1736
1736
|
for (let a = 0; a < e; a++) {
|
@@ -1739,7 +1739,7 @@ const Rr = (n, t) => {
|
|
1739
1739
|
for (; d < l.length && (o.lastIndex = d, u = o.exec(l), u !== null); )
|
1740
1740
|
d = o.lastIndex, o === it ? u[1] === "!--" ? o = Je : u[1] !== void 0 ? o = Qe : u[2] !== void 0 ? (Vn.test(u[2]) && (r = RegExp("</" + u[2], "g")), o = N) : u[3] !== void 0 && (o = N) : o === N ? u[0] === ">" ? (o = r ?? it, h = -1) : u[1] === void 0 ? h = -2 : (h = o.lastIndex - u[2].length, c = u[1], o = u[3] === void 0 ? N : u[3] === '"' ? tn : Ve) : o === tn || o === Ve ? o = N : o === Je || o === Qe ? o = it : (o = N, r = void 0);
|
1741
1741
|
const p = o === N && n[a + 1].startsWith("/>") ? " " : "";
|
1742
|
-
i += o === it ? l +
|
1742
|
+
i += o === it ? l + Lr : h >= 0 ? (s.push(c), l.slice(0, h) + Xn + l.slice(h) + L + p) : l + L + (h === -2 ? a : p);
|
1743
1743
|
}
|
1744
1744
|
return [ts(n, i + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
1745
1745
|
};
|
@@ -1748,7 +1748,7 @@ class ht {
|
|
1748
1748
|
let r;
|
1749
1749
|
this.parts = [];
|
1750
1750
|
let i = 0, o = 0;
|
1751
|
-
const a = t.length - 1, l = this.parts, [c, u] =
|
1751
|
+
const a = t.length - 1, l = this.parts, [c, u] = Ur(t, e);
|
1752
1752
|
if (this.el = ht.createElement(c, s), z.currentNode = this.el.content, e === 2) {
|
1753
1753
|
const h = this.el.content.firstChild;
|
1754
1754
|
h.replaceWith(...h.childNodes);
|
@@ -1759,13 +1759,13 @@ class ht {
|
|
1759
1759
|
for (const h of r.getAttributeNames())
|
1760
1760
|
if (h.endsWith(Xn)) {
|
1761
1761
|
const d = u[o++], p = r.getAttribute(h).split(L), $ = /([.?@])?(.*)/.exec(d);
|
1762
|
-
l.push({ type: 1, index: i, name: $[2], strings: p, ctor: $[1] === "." ?
|
1762
|
+
l.push({ type: 1, index: i, name: $[2], strings: p, ctor: $[1] === "." ? jr : $[1] === "?" ? Hr : $[1] === "@" ? Dr : Wt }), r.removeAttribute(h);
|
1763
1763
|
} else
|
1764
1764
|
h.startsWith(L) && (l.push({ type: 6, index: i }), r.removeAttribute(h));
|
1765
1765
|
if (Vn.test(r.tagName)) {
|
1766
1766
|
const h = r.textContent.split(L), d = h.length - 1;
|
1767
1767
|
if (d > 0) {
|
1768
|
-
r.textContent =
|
1768
|
+
r.textContent = Tt ? Tt.emptyScript : "";
|
1769
1769
|
for (let p = 0; p < d; p++)
|
1770
1770
|
r.append(h[p], ct()), z.nextNode(), l.push({ type: 2, index: ++i });
|
1771
1771
|
r.append(h[d], ct());
|
@@ -1795,7 +1795,7 @@ function nt(n, t, e = n, s) {
|
|
1795
1795
|
const i = ut(t) ? void 0 : t._$litDirective$;
|
1796
1796
|
return (r == null ? void 0 : r.constructor) !== i && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), i === void 0 ? r = void 0 : (r = new i(n), r._$AT(n, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = r : e._$Cl = r), r !== void 0 && (t = nt(n, r._$AS(n, t.values), r, s)), t;
|
1797
1797
|
}
|
1798
|
-
class
|
1798
|
+
class Rr {
|
1799
1799
|
constructor(t, e) {
|
1800
1800
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
1801
1801
|
}
|
@@ -1812,7 +1812,7 @@ class jr {
|
|
1812
1812
|
for (; l !== void 0; ) {
|
1813
1813
|
if (o === l.index) {
|
1814
1814
|
let c;
|
1815
|
-
l.type === 2 ? c = new gt(i, i.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (c = new
|
1815
|
+
l.type === 2 ? c = new gt(i, i.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (c = new Nr(i, this, t)), this._$AV.push(c), l = s[++a];
|
1816
1816
|
}
|
1817
1817
|
o !== (l == null ? void 0 : l.index) && (i = z.nextNode(), o++);
|
1818
1818
|
}
|
@@ -1844,7 +1844,7 @@ class gt {
|
|
1844
1844
|
return this._$AB;
|
1845
1845
|
}
|
1846
1846
|
_$AI(t, e = this) {
|
1847
|
-
t = nt(this, t, e), ut(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) :
|
1847
|
+
t = nt(this, t, e), ut(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== j && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Mr(t) ? this.T(t) : this._(t);
|
1848
1848
|
}
|
1849
1849
|
k(t) {
|
1850
1850
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -1861,7 +1861,7 @@ class gt {
|
|
1861
1861
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === r)
|
1862
1862
|
this._$AH.p(e);
|
1863
1863
|
else {
|
1864
|
-
const o = new
|
1864
|
+
const o = new Rr(r, this), a = o.u(this.options);
|
1865
1865
|
o.p(e), this.$(a), this._$AH = o;
|
1866
1866
|
}
|
1867
1867
|
}
|
@@ -1889,7 +1889,7 @@ class gt {
|
|
1889
1889
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
1890
1890
|
}
|
1891
1891
|
}
|
1892
|
-
class
|
1892
|
+
class Wt {
|
1893
1893
|
get tagName() {
|
1894
1894
|
return this.element.tagName;
|
1895
1895
|
}
|
@@ -1916,7 +1916,7 @@ class Gt {
|
|
1916
1916
|
t === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1917
1917
|
}
|
1918
1918
|
}
|
1919
|
-
class
|
1919
|
+
class jr extends Wt {
|
1920
1920
|
constructor() {
|
1921
1921
|
super(...arguments), this.type = 3;
|
1922
1922
|
}
|
@@ -1924,7 +1924,7 @@ class Hr extends Gt {
|
|
1924
1924
|
this.element[this.name] = t === f ? void 0 : t;
|
1925
1925
|
}
|
1926
1926
|
}
|
1927
|
-
let
|
1927
|
+
let Hr = class extends Wt {
|
1928
1928
|
constructor() {
|
1929
1929
|
super(...arguments), this.type = 4;
|
1930
1930
|
}
|
@@ -1932,7 +1932,7 @@ let Dr = class extends Gt {
|
|
1932
1932
|
this.element.toggleAttribute(this.name, !!t && t !== f);
|
1933
1933
|
}
|
1934
1934
|
};
|
1935
|
-
class
|
1935
|
+
class Dr extends Wt {
|
1936
1936
|
constructor(t, e, s, r, i) {
|
1937
1937
|
super(t, e, s, r, i), this.type = 5;
|
1938
1938
|
}
|
@@ -1947,7 +1947,7 @@ class Nr extends Gt {
|
|
1947
1947
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
1948
1948
|
}
|
1949
1949
|
}
|
1950
|
-
class
|
1950
|
+
class Nr {
|
1951
1951
|
constructor(t, e, s) {
|
1952
1952
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
1953
1953
|
}
|
@@ -1958,9 +1958,9 @@ class Br {
|
|
1958
1958
|
nt(this, t);
|
1959
1959
|
}
|
1960
1960
|
}
|
1961
|
-
const
|
1962
|
-
|
1963
|
-
const
|
1961
|
+
const ne = at.litHtmlPolyfillSupport;
|
1962
|
+
ne == null || ne(ht, gt), (at.litHtmlVersions ?? (at.litHtmlVersions = [])).push("3.0.2");
|
1963
|
+
const Br = (n, t, e) => {
|
1964
1964
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
1965
1965
|
let r = s._$litPart$;
|
1966
1966
|
if (r === void 0) {
|
@@ -1985,7 +1985,7 @@ let b = class extends q {
|
|
1985
1985
|
}
|
1986
1986
|
update(t) {
|
1987
1987
|
const e = this.render();
|
1988
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
1988
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Br(e, this.renderRoot, this.renderOptions);
|
1989
1989
|
}
|
1990
1990
|
connectedCallback() {
|
1991
1991
|
var t;
|
@@ -2001,10 +2001,10 @@ let b = class extends q {
|
|
2001
2001
|
};
|
2002
2002
|
var Cn;
|
2003
2003
|
b._$litElement$ = !0, b.finalized = !0, (Cn = globalThis.litElementHydrateSupport) == null || Cn.call(globalThis, { LitElement: b });
|
2004
|
-
const
|
2005
|
-
|
2004
|
+
const se = globalThis.litElementPolyfillSupport;
|
2005
|
+
se == null || se({ LitElement: b });
|
2006
2006
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
2007
|
-
const
|
2007
|
+
const zr = { name: "alert", 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 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4.01731 47.4568 16.5432 59.9827 32 60ZM32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6923 45.0849 45.0849 55.6923 32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.32247 18.9212 18.9212 8.32247 32 8.30769Z"/><path d="M29.3491 38.6031V20.6807C29.348 19.8662 29.4903 19.0598 29.7675 18.3096C29.9945 17.6371 30.3484 17.0302 30.804 16.5322C31.1251 16.1524 31.5593 15.9246 32.0204 15.894C32.6852 15.894 33.3496 16.471 34.0134 17.625C34.3738 18.1337 34.5955 18.7525 34.6509 19.4042V37.3267C34.6509 37.9947 34.2454 38.6329 33.4345 39.2414C32.6632 39.835 31.7547 40.1521 30.825 40.1523C29.8423 40.1524 29.3503 39.636 29.3491 38.6031Z"/><path d="M33.66 44.6959C33.9649 45.0866 34.161 45.551 34.2284 46.0419C34.2284 46.5397 33.8893 47.0083 33.2109 47.4476C32.5638 47.8771 31.8043 48.1062 31.0275 48.1061C30.1902 48.1061 29.7716 47.7271 29.7716 46.9693C29.7703 46.3788 29.8874 45.7941 30.116 45.2496C30.3064 44.7579 30.6022 44.3138 30.9826 43.9487C31.2626 43.6591 31.6427 43.4875 32.045 43.4692C32.5635 43.4692 33.1019 43.8781 33.66 44.6959Z"/></svg>' }, Fr = { name: "check-circle-filled", 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.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Wr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, nn = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, Zr = { 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>' }, Gr = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, sn = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, Y = {
|
2008
2008
|
allRenderFn: !1,
|
2009
2009
|
cmpDidLoad: !0,
|
2010
2010
|
cmpDidUnload: !1,
|
@@ -2088,8 +2088,8 @@ const Fr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2088
2088
|
transformTagName: !1,
|
2089
2089
|
attachStyles: !0
|
2090
2090
|
};
|
2091
|
-
let K, es,
|
2092
|
-
const
|
2091
|
+
let K, es, Zt, ns = !1, Pt = !1, Oe = !1, x = !1, rn = null, pe = !1;
|
2092
|
+
const Gt = typeof window < "u" ? window : {}, O = Gt.document || { head: {} }, ss = Gt.HTMLElement || class {
|
2093
2093
|
}, w = {
|
2094
2094
|
$flags$: 0,
|
2095
2095
|
$resourcesUrl$: "",
|
@@ -2098,7 +2098,7 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2098
2098
|
ael: (n, t, e, s) => n.addEventListener(t, e, s),
|
2099
2099
|
rel: (n, t, e, s) => n.removeEventListener(t, e, s),
|
2100
2100
|
ce: (n, t) => new CustomEvent(n, t)
|
2101
|
-
},
|
2101
|
+
}, qr = /* @__PURE__ */ (() => {
|
2102
2102
|
let n = !1;
|
2103
2103
|
try {
|
2104
2104
|
O.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2109,7 +2109,7 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2109
2109
|
} catch {
|
2110
2110
|
}
|
2111
2111
|
return n;
|
2112
|
-
})(),
|
2112
|
+
})(), Yr = (n) => Promise.resolve(n), Kr = /* @__PURE__ */ (() => {
|
2113
2113
|
try {
|
2114
2114
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2115
2115
|
} catch {
|
@@ -2117,24 +2117,24 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2117
2117
|
return !1;
|
2118
2118
|
})(), rs = (n, t, e, s) => {
|
2119
2119
|
e && e.map(([r, i, o]) => {
|
2120
|
-
const a =
|
2120
|
+
const a = Jr(n, r), l = Xr(t, o), c = Qr(r);
|
2121
2121
|
w.ael(a, i, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => w.rel(a, i, l, c));
|
2122
2122
|
});
|
2123
|
-
},
|
2123
|
+
}, Xr = (n, t) => (e) => {
|
2124
2124
|
try {
|
2125
2125
|
Y.lazyLoad || n.$hostElement$[t](e);
|
2126
2126
|
} catch (s) {
|
2127
2127
|
mt(s);
|
2128
2128
|
}
|
2129
|
-
},
|
2129
|
+
}, Jr = (n, t) => t & 4 ? O : t & 8 ? Gt : t & 16 ? O.body : n, Qr = (n) => qr ? {
|
2130
2130
|
passive: (n & 1) !== 0,
|
2131
2131
|
capture: (n & 2) !== 0
|
2132
2132
|
} : (n & 2) !== 0, on = "http://www.w3.org/1999/xlink", Z = (n, t = "") => () => {
|
2133
|
-
}, an = /* @__PURE__ */ new WeakMap(),
|
2134
|
-
let s =
|
2135
|
-
|
2136
|
-
},
|
2137
|
-
let r = is(t, e), i =
|
2133
|
+
}, an = /* @__PURE__ */ new WeakMap(), Vr = (n, t, e) => {
|
2134
|
+
let s = It.get(n);
|
2135
|
+
Kr && e ? (s = s || new CSSStyleSheet(), s.replace(t)) : s = t, It.set(n, s);
|
2136
|
+
}, ti = (n, t, e, s) => {
|
2137
|
+
let r = is(t, e), i = It.get(r);
|
2138
2138
|
if (n = n.nodeType === 11 ? n : O, i)
|
2139
2139
|
if (typeof i == "string") {
|
2140
2140
|
n = n.head || n;
|
@@ -2143,14 +2143,14 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2143
2143
|
} else
|
2144
2144
|
n.adoptedStyleSheets.includes(i) || (n.adoptedStyleSheets = [...n.adoptedStyleSheets, i]);
|
2145
2145
|
return r;
|
2146
|
-
},
|
2147
|
-
const t = n.$cmpMeta$, e = n.$hostElement$, s = t.$flags$, r = Z("attachStyles", t.$tagName$), i =
|
2146
|
+
}, ei = (n) => {
|
2147
|
+
const t = n.$cmpMeta$, e = n.$hostElement$, s = t.$flags$, r = Z("attachStyles", t.$tagName$), i = ti(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, n.$modeName$);
|
2148
2148
|
s & 10 && (e["s-sc"] = i, e.classList.add(i + "-h"), s & 2 && e.classList.add(i + "-s")), r();
|
2149
|
-
}, is = (n, t) => "sc-" + (t && n.$flags$ & 32 ? n.$tagName$ + "-" + t : n.$tagName$),
|
2149
|
+
}, is = (n, t) => "sc-" + (t && n.$flags$ & 32 ? n.$tagName$ + "-" + t : n.$tagName$), ni = (n) => Ti.map((t) => t(n)).find((t) => !!t), ln = {}, si = "http://www.w3.org/2000/svg", ri = "http://www.w3.org/1999/xhtml", ii = (n) => n != null, ke = (n) => (n = typeof n, n === "object" || n === "function"), V = (n, t, ...e) => {
|
2150
2150
|
let s = null, r = null, i = null, o = !1, a = !1, l = [];
|
2151
2151
|
const c = (h) => {
|
2152
2152
|
for (let d = 0; d < h.length; d++)
|
2153
|
-
s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !
|
2153
|
+
s = h[d], Array.isArray(s) ? c(s) : s != null && typeof s != "boolean" && ((o = typeof n != "function" && !ke(s)) && (s = String(s)), o && a ? l[l.length - 1].$text$ += s : l.push(o ? Lt(null, s) : s), a = o);
|
2154
2154
|
};
|
2155
2155
|
if (c(e), t) {
|
2156
2156
|
t.key && (r = t.key), t.name && (i = t.name);
|
@@ -2160,10 +2160,10 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2160
2160
|
}
|
2161
2161
|
}
|
2162
2162
|
if (typeof n == "function")
|
2163
|
-
return n(t === null ? {} : t, l,
|
2164
|
-
const u =
|
2163
|
+
return n(t === null ? {} : t, l, ai);
|
2164
|
+
const u = Lt(n, null);
|
2165
2165
|
return u.$attrs$ = t, l.length > 0 && (u.$children$ = l), u.$key$ = r, u.$name$ = i, u;
|
2166
|
-
},
|
2166
|
+
}, Lt = (n, t) => {
|
2167
2167
|
const e = {
|
2168
2168
|
$flags$: 0,
|
2169
2169
|
$tag$: n,
|
@@ -2172,9 +2172,9 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2172
2172
|
$children$: null
|
2173
2173
|
};
|
2174
2174
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
2175
|
-
},
|
2175
|
+
}, Te = {}, oi = (n) => n && n.$tag$ === Te, ai = {
|
2176
2176
|
forEach: (n, t) => n.map(cn).forEach(t),
|
2177
|
-
map: (n, t) => n.map(cn).map(t).map(
|
2177
|
+
map: (n, t) => n.map(cn).map(t).map(li)
|
2178
2178
|
}, cn = (n) => ({
|
2179
2179
|
vattrs: n.$attrs$,
|
2180
2180
|
vchildren: n.$children$,
|
@@ -2182,12 +2182,12 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2182
2182
|
vname: n.$name$,
|
2183
2183
|
vtag: n.$tag$,
|
2184
2184
|
vtext: n.$text$
|
2185
|
-
}),
|
2185
|
+
}), li = (n) => {
|
2186
2186
|
if (typeof n.vtag == "function") {
|
2187
2187
|
const e = Object.assign({}, n.vattrs);
|
2188
2188
|
return n.vkey && (e.key = n.vkey), n.vname && (e.name = n.vname), V(n.vtag, e, ...n.vchildren || []);
|
2189
2189
|
}
|
2190
|
-
const t =
|
2190
|
+
const t = Lt(n.vtag, n.vtext);
|
2191
2191
|
return t.$attrs$ = n.vattrs, t.$children$ = n.vchildren, t.$key$ = n.vkey, t.$name$ = n.vname, t;
|
2192
2192
|
}, un = (n, t, e, s, r, i) => {
|
2193
2193
|
if (e !== s) {
|
@@ -2204,9 +2204,9 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2204
2204
|
if (t === "ref")
|
2205
2205
|
s && s(n);
|
2206
2206
|
else if (!n.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
2207
|
-
t[2] === "-" ? t = t.slice(3) : fn(
|
2207
|
+
t[2] === "-" ? t = t.slice(3) : fn(Gt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && w.rel(n, t, e, !1), s && w.ael(n, t, s, !1);
|
2208
2208
|
else {
|
2209
|
-
const l =
|
2209
|
+
const l = ke(s);
|
2210
2210
|
if ((o || l && s !== null) && !r)
|
2211
2211
|
try {
|
2212
2212
|
if (n.tagName.includes("-"))
|
@@ -2221,15 +2221,15 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2221
2221
|
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), s == null || s === !1 ? (s !== !1 || n.getAttribute(t) === "") && (c ? n.removeAttributeNS(on, t) : n.removeAttribute(t)) : (!o || i & 4 || r) && !l && (s = s === !0 ? "" : s, c ? n.setAttributeNS(on, t, s) : n.setAttribute(t, s));
|
2222
2222
|
}
|
2223
2223
|
}
|
2224
|
-
},
|
2224
|
+
}, ci = /\s/, hn = (n) => n ? n.split(ci) : [], os = (n, t, e, s) => {
|
2225
2225
|
const r = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = n && n.$attrs$ || ln, o = t.$attrs$ || ln;
|
2226
2226
|
for (s in i)
|
2227
2227
|
s in o || un(r, s, i[s], void 0, e, t.$flags$);
|
2228
2228
|
for (s in o)
|
2229
2229
|
un(r, s, i[s], o[s], e, t.$flags$);
|
2230
|
-
},
|
2230
|
+
}, Mt = (n, t, e, s) => {
|
2231
2231
|
let r = t.$children$[e], i = 0, o, a, l;
|
2232
|
-
if (ns || (
|
2232
|
+
if (ns || (Oe = !0, r.$tag$ === "slot" && (K && s.classList.add(K + "-s"), r.$flags$ |= r.$children$ ? (
|
2233
2233
|
// slot element has fallback content
|
2234
2234
|
2
|
2235
2235
|
) : (
|
@@ -2240,28 +2240,28 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2240
2240
|
else if (r.$flags$ & 1)
|
2241
2241
|
o = r.$elm$ = O.createTextNode("");
|
2242
2242
|
else {
|
2243
|
-
if (x || (x = r.$tag$ === "svg"), o = r.$elm$ = O.createElementNS(x ?
|
2243
|
+
if (x || (x = r.$tag$ === "svg"), o = r.$elm$ = O.createElementNS(x ? si : ri, r.$flags$ & 2 ? "slot-fb" : r.$tag$), x && r.$tag$ === "foreignObject" && (x = !1), os(null, r, x), ii(K) && o["s-si"] !== K && o.classList.add(o["s-si"] = K), r.$children$)
|
2244
2244
|
for (i = 0; i < r.$children$.length; ++i)
|
2245
|
-
a =
|
2245
|
+
a = Mt(n, r, i, o), a && o.appendChild(a);
|
2246
2246
|
r.$tag$ === "svg" ? x = !1 : o.tagName === "foreignObject" && (x = !0);
|
2247
2247
|
}
|
2248
|
-
return o["s-hn"] =
|
2248
|
+
return o["s-hn"] = Zt, r.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = es, o["s-sn"] = r.$name$ || "", l = n && n.$children$ && n.$children$[e], l && l.$tag$ === r.$tag$ && n.$elm$ && dt(n.$elm$, !1)), o;
|
2249
2249
|
}, dt = (n, t) => {
|
2250
2250
|
w.$flags$ |= 1;
|
2251
2251
|
const e = n.childNodes;
|
2252
2252
|
for (let s = e.length - 1; s >= 0; s--) {
|
2253
2253
|
const r = e[s];
|
2254
|
-
r["s-hn"] !==
|
2254
|
+
r["s-hn"] !== Zt && r["s-ol"] && (cs(r).insertBefore(r, Pe(r)), r["s-ol"].remove(), r["s-ol"] = void 0, Oe = !0), t && dt(r, t);
|
2255
2255
|
}
|
2256
2256
|
w.$flags$ &= -2;
|
2257
2257
|
}, as = (n, t, e, s, r, i) => {
|
2258
2258
|
let o = n["s-cr"] && n["s-cr"].parentNode || n, a;
|
2259
|
-
for (o.shadowRoot && o.tagName ===
|
2260
|
-
s[r] && (a =
|
2259
|
+
for (o.shadowRoot && o.tagName === Zt && (o = o.shadowRoot); r <= i; ++r)
|
2260
|
+
s[r] && (a = Mt(null, e, r, n), a && (s[r].$elm$ = a, o.insertBefore(a, Pe(t))));
|
2261
2261
|
}, ls = (n, t, e, s, r) => {
|
2262
2262
|
for (; t <= e; ++t)
|
2263
|
-
(s = n[t]) && (r = s.$elm$, ds(s),
|
2264
|
-
},
|
2263
|
+
(s = n[t]) && (r = s.$elm$, ds(s), Pt = !0, r["s-ol"] ? r["s-ol"].remove() : dt(r, !0), r.remove());
|
2264
|
+
}, ui = (n, t, e, s) => {
|
2265
2265
|
let r = 0, i = 0, o = 0, a = 0, l = t.length - 1, c = t[0], u = t[l], h = s.length - 1, d = s[0], p = s[h], $, m;
|
2266
2266
|
for (; r <= l && i <= h; )
|
2267
2267
|
if (c == null)
|
@@ -2272,13 +2272,13 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2272
2272
|
d = s[++i];
|
2273
2273
|
else if (p == null)
|
2274
2274
|
p = s[--h];
|
2275
|
-
else if (
|
2275
|
+
else if (_t(c, d))
|
2276
2276
|
X(c, d), c = t[++r], d = s[++i];
|
2277
|
-
else if (
|
2277
|
+
else if (_t(u, p))
|
2278
2278
|
X(u, p), u = t[--l], p = s[--h];
|
2279
|
-
else if (
|
2279
|
+
else if (_t(c, p))
|
2280
2280
|
(c.$tag$ === "slot" || p.$tag$ === "slot") && dt(c.$elm$.parentNode, !1), X(c, p), n.insertBefore(c.$elm$, u.$elm$.nextSibling), c = t[++r], p = s[--h];
|
2281
|
-
else if (
|
2281
|
+
else if (_t(u, d))
|
2282
2282
|
(c.$tag$ === "slot" || p.$tag$ === "slot") && dt(u.$elm$.parentNode, !1), X(u, d), n.insertBefore(u.$elm$, c.$elm$), u = t[--l], d = s[++i];
|
2283
2283
|
else {
|
2284
2284
|
for (o = -1, a = r; a <= l; ++a)
|
@@ -2286,13 +2286,13 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2286
2286
|
o = a;
|
2287
2287
|
break;
|
2288
2288
|
}
|
2289
|
-
o >= 0 ? (m = t[o], m.$tag$ !== d.$tag$ ? $ =
|
2289
|
+
o >= 0 ? (m = t[o], m.$tag$ !== d.$tag$ ? $ = Mt(t && t[i], e, o, n) : (X(m, d), t[o] = void 0, $ = m.$elm$), d = s[++i]) : ($ = Mt(t && t[i], e, i, n), d = s[++i]), $ && cs(c.$elm$).insertBefore($, Pe(c.$elm$));
|
2290
2290
|
}
|
2291
2291
|
r > l ? as(n, s[h + 1] == null ? null : s[h + 1].$elm$, e, s, i, h) : i > h && ls(t, r, l);
|
2292
|
-
},
|
2292
|
+
}, _t = (n, t) => n.$tag$ === t.$tag$ ? n.$tag$ === "slot" ? n.$name$ === t.$name$ : n.$key$ === t.$key$ : !1, Pe = (n) => n && n["s-ol"] || n, cs = (n) => (n["s-ol"] ? n["s-ol"] : n).parentNode, X = (n, t) => {
|
2293
2293
|
const e = t.$elm$ = n.$elm$, s = n.$children$, r = t.$children$, i = t.$tag$, o = t.$text$;
|
2294
2294
|
let a;
|
2295
|
-
o === null ? (x = i === "svg" ? !0 : i === "foreignObject" ? !1 : x, i === "slot" || os(n, t, x), s !== null && r !== null ?
|
2295
|
+
o === null ? (x = i === "svg" ? !0 : i === "foreignObject" ? !1 : x, i === "slot" || os(n, t, x), s !== null && r !== null ? ui(e, s, t, r) : r !== null ? (n.$text$ !== null && (e.textContent = ""), as(e, null, t, r, 0, r.length - 1)) : s !== null && ls(s, 0, s.length - 1), x && i === "svg" && (x = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : n.$text$ !== o && (e.data = o);
|
2296
2296
|
}, us = (n) => {
|
2297
2297
|
let t = n.childNodes, e, s, r, i, o, a;
|
2298
2298
|
for (s = 0, r = t.length; s < r; s++)
|
@@ -2316,7 +2316,7 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2316
2316
|
for (; a < c; a++) {
|
2317
2317
|
if (t = l[a], t["s-sr"] && (e = t["s-cr"]) && e.parentNode)
|
2318
2318
|
for (s = e.parentNode.childNodes, r = t["s-sn"], o = s.length - 1; o >= 0; o--)
|
2319
|
-
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (dn(e, r) ? (i = A.find((u) => u.$nodeToRelocate$ === e),
|
2319
|
+
e = s[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (dn(e, r) ? (i = A.find((u) => u.$nodeToRelocate$ === e), Pt = !0, e["s-sn"] = e["s-sn"] || r, i ? i.$slotRefNode$ = t : A.push({
|
2320
2320
|
$slotRefNode$: t,
|
2321
2321
|
$nodeToRelocate$: e
|
2322
2322
|
}), e["s-sr"] && A.map((u) => {
|
@@ -2328,11 +2328,11 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2328
2328
|
}
|
2329
2329
|
}, dn = (n, t) => n.nodeType === 1 ? n.getAttribute("slot") === null && t === "" || n.getAttribute("slot") === t : n["s-sn"] === t ? !0 : t === "", ds = (n) => {
|
2330
2330
|
n.$attrs$ && n.$attrs$.ref && n.$attrs$.ref(null), n.$children$ && n.$children$.map(ds);
|
2331
|
-
},
|
2332
|
-
const e = n.$hostElement$, s = n.$cmpMeta$, r = n.$vnode$ ||
|
2333
|
-
|
2331
|
+
}, hi = (n, t) => {
|
2332
|
+
const e = n.$hostElement$, s = n.$cmpMeta$, r = n.$vnode$ || Lt(null, null), i = oi(t) ? t : V(null, null, t);
|
2333
|
+
Zt = e.tagName, s.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, s.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = e[o])), i.$tag$ = null, i.$flags$ |= 4, n.$vnode$ = i, i.$elm$ = r.$elm$ = e.shadowRoot || e, K = e["s-sc"], es = e["s-cr"], ns = (s.$flags$ & 1) !== 0, Pt = !1, X(r, i);
|
2334
2334
|
{
|
2335
|
-
if (w.$flags$ |= 1,
|
2335
|
+
if (w.$flags$ |= 1, Oe) {
|
2336
2336
|
hs(i.$elm$);
|
2337
2337
|
let o, a, l, c, u, h, d = 0;
|
2338
2338
|
for (; d < A.length; d++)
|
@@ -2348,39 +2348,39 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2348
2348
|
} else
|
2349
2349
|
a.nodeType === 1 && (a.hidden = !0);
|
2350
2350
|
}
|
2351
|
-
|
2351
|
+
Pt && us(i.$elm$), w.$flags$ &= -2, A.length = 0;
|
2352
2352
|
}
|
2353
|
-
},
|
2354
|
-
const s =
|
2353
|
+
}, di = (n) => n, pi = (n, t, e) => {
|
2354
|
+
const s = di(n);
|
2355
2355
|
return {
|
2356
|
-
emit: (r) =>
|
2356
|
+
emit: (r) => fi(s, t, {
|
2357
2357
|
bubbles: !!(e & 4),
|
2358
2358
|
composed: !!(e & 2),
|
2359
2359
|
cancelable: !!(e & 1),
|
2360
2360
|
detail: r
|
2361
2361
|
})
|
2362
2362
|
};
|
2363
|
-
},
|
2363
|
+
}, fi = (n, t, e) => {
|
2364
2364
|
const s = w.ce(t, e);
|
2365
2365
|
return n.dispatchEvent(s), s;
|
2366
|
-
},
|
2367
|
-
}, ps = (n, t) => (n.$flags$ |= 16,
|
2366
|
+
}, vi = (n, t) => {
|
2367
|
+
}, ps = (n, t) => (n.$flags$ |= 16, vi(n, n.$ancestorComponent$), Mi(() => gi(n, t))), gi = (n, t) => {
|
2368
2368
|
const e = n.$hostElement$, s = Z("scheduleUpdate", n.$cmpMeta$.$tagName$), r = e;
|
2369
2369
|
let i;
|
2370
|
-
return t ? i = tt(r, "componentWillLoad") : i = tt(r, "componentWillUpdate"), i = pn(i, () => tt(r, "componentWillRender")), s(), pn(i, () =>
|
2371
|
-
},
|
2370
|
+
return t ? i = tt(r, "componentWillLoad") : i = tt(r, "componentWillUpdate"), i = pn(i, () => tt(r, "componentWillRender")), s(), pn(i, () => mi(n, r, t));
|
2371
|
+
}, mi = async (n, t, e) => {
|
2372
2372
|
const s = n.$hostElement$, r = Z("update", n.$cmpMeta$.$tagName$);
|
2373
|
-
s["s-rc"], e &&
|
2373
|
+
s["s-rc"], e && ei(n);
|
2374
2374
|
const i = Z("render", n.$cmpMeta$.$tagName$);
|
2375
|
-
|
2376
|
-
},
|
2375
|
+
$i(n, t, s), i(), r(), yi(n);
|
2376
|
+
}, $i = (n, t, e) => {
|
2377
2377
|
try {
|
2378
|
-
rn = t, t = t.render && t.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Y.hasRenderFn || Y.reflect) && (Y.vdomRender || Y.reflect) && (Y.hydrateServerSide ||
|
2378
|
+
rn = t, t = t.render && t.render(), n.$flags$ &= -17, n.$flags$ |= 2, (Y.hasRenderFn || Y.reflect) && (Y.vdomRender || Y.reflect) && (Y.hydrateServerSide || hi(n, t));
|
2379
2379
|
} catch (a) {
|
2380
2380
|
mt(a, n.$hostElement$);
|
2381
2381
|
}
|
2382
2382
|
return rn = null, null;
|
2383
|
-
},
|
2383
|
+
}, yi = (n) => {
|
2384
2384
|
const t = n.$cmpMeta$.$tagName$, e = n.$hostElement$, s = Z("postUpdate", t), r = e;
|
2385
2385
|
n.$ancestorComponent$, tt(r, "componentDidRender"), n.$flags$ & 64 ? (tt(r, "componentDidUpdate"), s()) : (n.$flags$ |= 64, tt(r, "componentDidLoad"), s());
|
2386
2386
|
}, tt = (n, t, e) => {
|
@@ -2390,9 +2390,9 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2390
2390
|
} catch (s) {
|
2391
2391
|
mt(s);
|
2392
2392
|
}
|
2393
|
-
}, pn = (n, t) => n && n.then ? n.then(t) : t(),
|
2394
|
-
const r =
|
2395
|
-
e =
|
2393
|
+
}, pn = (n, t) => n && n.then ? n.then(t) : t(), bi = (n, t) => n != null && !ke(n) ? t & 4 ? n === "false" ? !1 : n === "" || !!n : t & 2 ? parseFloat(n) : t & 1 ? String(n) : n : n, wi = (n, t) => qt(n).$instanceValues$.get(t), _i = (n, t, e, s) => {
|
2394
|
+
const r = qt(n), i = n, o = r.$instanceValues$.get(t), a = r.$flags$, l = i;
|
2395
|
+
e = bi(e, s.$members$[t][0]);
|
2396
2396
|
const c = Number.isNaN(o) && Number.isNaN(e);
|
2397
2397
|
if (e !== o && !c) {
|
2398
2398
|
r.$instanceValues$.set(t, e);
|
@@ -2414,17 +2414,17 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2414
2414
|
}
|
2415
2415
|
}
|
2416
2416
|
}
|
2417
|
-
},
|
2417
|
+
}, Si = (n, t, e) => {
|
2418
2418
|
if (t.$members$) {
|
2419
2419
|
n.watchers && (t.$watchers$ = n.watchers);
|
2420
2420
|
const s = Object.entries(t.$members$), r = n.prototype;
|
2421
2421
|
s.map(([i, [o]]) => {
|
2422
2422
|
(o & 31 || o & 32) && Object.defineProperty(r, i, {
|
2423
2423
|
get() {
|
2424
|
-
return
|
2424
|
+
return wi(this, i);
|
2425
2425
|
},
|
2426
2426
|
set(a) {
|
2427
|
-
|
2427
|
+
_i(this, i, a, t);
|
2428
2428
|
},
|
2429
2429
|
configurable: !0,
|
2430
2430
|
enumerable: !0
|
@@ -2451,34 +2451,34 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2451
2451
|
}
|
2452
2452
|
}
|
2453
2453
|
return n;
|
2454
|
-
},
|
2454
|
+
}, xi = async (n, t, e, s, r) => {
|
2455
2455
|
if (!(t.$flags$ & 32) && (r = n.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), r.style)) {
|
2456
2456
|
let o = r.style;
|
2457
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
2457
|
+
typeof o != "string" && (o = o[t.$modeName$ = ni(n)]);
|
2458
2458
|
const a = is(e, t.$modeName$);
|
2459
|
-
if (!
|
2459
|
+
if (!It.has(a)) {
|
2460
2460
|
const l = Z("registerStyles", e.$tagName$);
|
2461
|
-
|
2461
|
+
Vr(a, o, !!(e.$flags$ & 1)), l();
|
2462
2462
|
}
|
2463
2463
|
}
|
2464
2464
|
t.$ancestorComponent$, (() => ps(t, !0))();
|
2465
|
+
}, Ci = (n) => {
|
2465
2466
|
}, Ai = (n) => {
|
2466
|
-
}, Ei = (n) => {
|
2467
2467
|
if (!(w.$flags$ & 1)) {
|
2468
|
-
const t =
|
2469
|
-
t.$flags$ & 1 ? (rs(n, t, e.$listeners$),
|
2468
|
+
const t = qt(n), e = t.$cmpMeta$, s = Z("connectedCallback", e.$tagName$);
|
2469
|
+
t.$flags$ & 1 ? (rs(n, t, e.$listeners$), Ci(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && Ei(n), e.$members$ && Object.entries(e.$members$).map(([r, [i]]) => {
|
2470
2470
|
if (i & 31 && n.hasOwnProperty(r)) {
|
2471
2471
|
const o = n[r];
|
2472
2472
|
delete n[r], n[r] = o;
|
2473
2473
|
}
|
2474
|
-
}),
|
2474
|
+
}), xi(n, t, e)), s();
|
2475
2475
|
}
|
2476
|
-
},
|
2476
|
+
}, Ei = (n) => {
|
2477
2477
|
const t = n["s-cr"] = O.createComment("");
|
2478
2478
|
t["s-cn"] = !0, n.insertBefore(t, n.firstChild);
|
2479
|
-
},
|
2479
|
+
}, Oi = (n) => {
|
2480
2480
|
if (!(w.$flags$ & 1)) {
|
2481
|
-
const t =
|
2481
|
+
const t = qt(n);
|
2482
2482
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
2483
2483
|
}
|
2484
2484
|
}, fs = (n, t) => {
|
@@ -2490,13 +2490,13 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2490
2490
|
const s = n.prototype.connectedCallback, r = n.prototype.disconnectedCallback;
|
2491
2491
|
return Object.assign(n.prototype, {
|
2492
2492
|
__registerHost() {
|
2493
|
-
|
2493
|
+
ki(this, e);
|
2494
2494
|
},
|
2495
2495
|
connectedCallback() {
|
2496
|
-
|
2496
|
+
Ai(this), s && s.call(this);
|
2497
2497
|
},
|
2498
2498
|
disconnectedCallback() {
|
2499
|
-
|
2499
|
+
Oi(this), r && r.call(this);
|
2500
2500
|
},
|
2501
2501
|
__attachShadow() {
|
2502
2502
|
this.attachShadow({
|
@@ -2504,8 +2504,8 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2504
2504
|
delegatesFocus: !!(e.$flags$ & 16)
|
2505
2505
|
});
|
2506
2506
|
}
|
2507
|
-
}), n.is = e.$tagName$,
|
2508
|
-
}, vs = /* @__PURE__ */ new WeakMap(),
|
2507
|
+
}), n.is = e.$tagName$, Si(n, e);
|
2508
|
+
}, vs = /* @__PURE__ */ new WeakMap(), qt = (n) => vs.get(n), ki = (n, t) => {
|
2509
2509
|
const e = {
|
2510
2510
|
$flags$: 0,
|
2511
2511
|
$hostElement$: n,
|
@@ -2513,8 +2513,8 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2513
2513
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2514
2514
|
};
|
2515
2515
|
return rs(n, e, t.$listeners$), vs.set(n, e);
|
2516
|
-
}, fn = (n, t) => t in n, mt = (n, t) => (0, console.error)(n, t),
|
2517
|
-
n.push(e),
|
2516
|
+
}, fn = (n, t) => t in n, mt = (n, t) => (0, console.error)(n, t), It = /* @__PURE__ */ new Map(), Ti = [], vn = [], gs = [], Pi = (n, t) => (e) => {
|
2517
|
+
n.push(e), pe || (pe = !0, t && w.$flags$ & 4 ? Li(fe) : w.raf(fe));
|
2518
2518
|
}, gn = (n) => {
|
2519
2519
|
for (let t = 0; t < n.length; t++)
|
2520
2520
|
try {
|
@@ -2523,9 +2523,9 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2523
2523
|
mt(e);
|
2524
2524
|
}
|
2525
2525
|
n.length = 0;
|
2526
|
-
},
|
2527
|
-
gn(vn), gn(gs), (
|
2528
|
-
},
|
2526
|
+
}, fe = () => {
|
2527
|
+
gn(vn), gn(gs), (pe = vn.length > 0) && w.raf(fe);
|
2528
|
+
}, Li = (n) => Yr().then(n), Mi = /* @__PURE__ */ Pi(gs, !0), Ii = (n = {}) => {
|
2529
2529
|
const { content: t = "", title: e, attributes: s = [] } = n;
|
2530
2530
|
let r = "", i = [
|
2531
2531
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2533,27 +2533,27 @@ const Yt = typeof window < "u" ? window : {}, O = Yt.document || { head: {} }, s
|
|
2533
2533
|
...s
|
2534
2534
|
];
|
2535
2535
|
return e && (r = `<title>${e}</title>`), `<svg ${i.map((a) => `${a.name}="${a.value}"`).join(" ")}>${r}${t}</svg>`;
|
2536
|
-
},
|
2537
|
-
function
|
2536
|
+
}, Ui = (n) => n.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2537
|
+
function Ri(n) {
|
2538
2538
|
return `${n.getFullYear()}.${n.getMonth() + 1}`;
|
2539
2539
|
}
|
2540
|
-
class
|
2540
|
+
class ji {
|
2541
2541
|
constructor(t) {
|
2542
|
-
this.voca_component = t, this.voca_added =
|
2542
|
+
this.voca_component = t, this.voca_added = Ri(/* @__PURE__ */ new Date());
|
2543
2543
|
}
|
2544
2544
|
}
|
2545
|
-
const
|
2545
|
+
const Hi = "telia-vst{display:none}", Di = /* @__PURE__ */ fs(class extends ss {
|
2546
2546
|
constructor() {
|
2547
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2547
|
+
super(), this.__registerHost(), this.vocaInternalUStats = pi(this, "vocaInternalUStats", 7);
|
2548
2548
|
}
|
2549
2549
|
connectedCallback() {
|
2550
|
-
this.vocaInternalUStats.emit(new
|
2550
|
+
this.vocaInternalUStats.emit(new ji(this.dataTrackingId));
|
2551
2551
|
}
|
2552
2552
|
render() {
|
2553
|
-
return V(
|
2553
|
+
return V(Te, null);
|
2554
2554
|
}
|
2555
2555
|
static get style() {
|
2556
|
-
return
|
2556
|
+
return Hi;
|
2557
2557
|
}
|
2558
2558
|
}, [0, "telia-vst", {
|
2559
2559
|
dataTrackingId: [1, "data-tracking-id"]
|
@@ -2564,23 +2564,23 @@ function ms() {
|
|
2564
2564
|
["telia-vst"].forEach((t) => {
|
2565
2565
|
switch (t) {
|
2566
2566
|
case "telia-vst":
|
2567
|
-
customElements.get(t) || customElements.define(t,
|
2567
|
+
customElements.get(t) || customElements.define(t, Di);
|
2568
2568
|
break;
|
2569
2569
|
}
|
2570
2570
|
});
|
2571
2571
|
}
|
2572
2572
|
ms();
|
2573
|
-
function
|
2573
|
+
function ve() {
|
2574
2574
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2575
2575
|
}
|
2576
|
-
function
|
2577
|
-
if (typeof
|
2578
|
-
return
|
2576
|
+
function Ni() {
|
2577
|
+
if (typeof ve().vocadsIcons !== void 0)
|
2578
|
+
return ve().vocadsIcons;
|
2579
2579
|
}
|
2580
|
-
function
|
2581
|
-
return
|
2580
|
+
function Bi() {
|
2581
|
+
return ve().vocadsIconsRegistered;
|
2582
2582
|
}
|
2583
|
-
const
|
2583
|
+
const zi = ".telia-icon{display:inline-block}.telia-icon__container{display:block;height:inherit}.telia-icon svg{display:block}.telia-icon--sm{height:calc(1.6rem * var(--voca-rem-multiplier));min-width:calc(1.6rem * var(--voca-rem-multiplier));width:calc(1.6rem * var(--voca-rem-multiplier))}.telia-icon--md{height:calc(2.4rem * var(--voca-rem-multiplier));min-width:calc(2.4rem * var(--voca-rem-multiplier));width:calc(2.4rem * var(--voca-rem-multiplier))}.telia-icon--lg{height:calc(3.2rem * var(--voca-rem-multiplier));min-width:calc(3.2rem * var(--voca-rem-multiplier));width:calc(3.2rem * var(--voca-rem-multiplier))}", Fi = /* @__PURE__ */ fs(class extends ss {
|
2584
2584
|
constructor() {
|
2585
2585
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2586
2586
|
}
|
@@ -2592,8 +2592,8 @@ const Fi = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2592
2592
|
getSvgString() {
|
2593
2593
|
if (this.svg)
|
2594
2594
|
return this.svg;
|
2595
|
-
if (
|
2596
|
-
const n =
|
2595
|
+
if (Bi() && this.name) {
|
2596
|
+
const n = Ni();
|
2597
2597
|
return n[this.name] ? n[this.name].svg : "";
|
2598
2598
|
}
|
2599
2599
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
@@ -2604,15 +2604,15 @@ const Fi = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2604
2604
|
...t,
|
2605
2605
|
{ name: "aria-hidden", value: "true" }
|
2606
2606
|
];
|
2607
|
-
const e =
|
2608
|
-
content:
|
2607
|
+
const e = Ii({
|
2608
|
+
content: Ui(n),
|
2609
2609
|
attributes: t,
|
2610
2610
|
title: this.allyTitle
|
2611
2611
|
});
|
2612
|
-
return V(
|
2612
|
+
return V(Te, { class: `telia-icon telia-icon--${this.size}` }, V("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), V("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2613
2613
|
}
|
2614
2614
|
static get style() {
|
2615
|
-
return
|
2615
|
+
return zi;
|
2616
2616
|
}
|
2617
2617
|
}, [0, "telia-icon", {
|
2618
2618
|
name: [1],
|
@@ -2621,13 +2621,13 @@ const Fi = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2621
2621
|
allyTitle: [1, "ally-title"],
|
2622
2622
|
dataTestid: [1, "data-testid"]
|
2623
2623
|
}]);
|
2624
|
-
function
|
2624
|
+
function Wi() {
|
2625
2625
|
if (typeof customElements > "u")
|
2626
2626
|
return;
|
2627
2627
|
["telia-icon", "telia-vst"].forEach((t) => {
|
2628
2628
|
switch (t) {
|
2629
2629
|
case "telia-icon":
|
2630
|
-
customElements.get(t) || customElements.define(t,
|
2630
|
+
customElements.get(t) || customElements.define(t, Fi);
|
2631
2631
|
break;
|
2632
2632
|
case "telia-vst":
|
2633
2633
|
customElements.get(t) || ms();
|
@@ -2635,13 +2635,13 @@ function Zi() {
|
|
2635
2635
|
}
|
2636
2636
|
});
|
2637
2637
|
}
|
2638
|
-
|
2638
|
+
Wi();
|
2639
2639
|
/**
|
2640
2640
|
* @license
|
2641
2641
|
* Copyright 2017 Google LLC
|
2642
2642
|
* SPDX-License-Identifier: BSD-3-Clause
|
2643
2643
|
*/
|
2644
|
-
const
|
2644
|
+
const Yt = (n) => (t, e) => {
|
2645
2645
|
e !== void 0 ? e.addInitializer(() => {
|
2646
2646
|
customElements.define(n, t);
|
2647
2647
|
}) : customElements.define(n, t);
|
@@ -2651,7 +2651,7 @@ const $t = (n) => (t, e) => {
|
|
2651
2651
|
* Copyright 2017 Google LLC
|
2652
2652
|
* SPDX-License-Identifier: BSD-3-Clause
|
2653
2653
|
*/
|
2654
|
-
const
|
2654
|
+
const Zi = { attribute: !0, type: String, converter: kt, reflect: !1, hasChanged: Ee }, Gi = (n = Zi, t, e) => {
|
2655
2655
|
const { kind: s, metadata: r } = e;
|
2656
2656
|
let i = globalThis.litPropertyMetadata.get(r);
|
2657
2657
|
if (i === void 0 && globalThis.litPropertyMetadata.set(r, i = /* @__PURE__ */ new Map()), i.set(e.name, n), s === "accessor") {
|
@@ -2673,7 +2673,7 @@ const Gi = { attribute: !0, type: String, converter: Tt, reflect: !1, hasChanged
|
|
2673
2673
|
throw Error("Unsupported decorator location: " + s);
|
2674
2674
|
};
|
2675
2675
|
function y(n) {
|
2676
|
-
return (t, e) => typeof e == "object" ?
|
2676
|
+
return (t, e) => typeof e == "object" ? Gi(n, t, e) : ((s, r, i) => {
|
2677
2677
|
const o = r.hasOwnProperty(i);
|
2678
2678
|
return r.constructor.createProperty(i, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(r, i) : void 0;
|
2679
2679
|
})(n, t, e);
|
@@ -2691,14 +2691,14 @@ function T(n) {
|
|
2691
2691
|
* Copyright 2020 Google LLC
|
2692
2692
|
* SPDX-License-Identifier: BSD-3-Clause
|
2693
2693
|
*/
|
2694
|
-
const
|
2694
|
+
const qi = (n) => n.strings === void 0;
|
2695
2695
|
/**
|
2696
2696
|
* @license
|
2697
2697
|
* Copyright 2017 Google LLC
|
2698
2698
|
* SPDX-License-Identifier: BSD-3-Clause
|
2699
2699
|
*/
|
2700
|
-
const
|
2701
|
-
let
|
2700
|
+
const Kt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Xt = (n) => (...t) => ({ _$litDirective$: n, values: t });
|
2701
|
+
let Le = class {
|
2702
2702
|
constructor(t) {
|
2703
2703
|
}
|
2704
2704
|
get _$AU() {
|
@@ -2727,7 +2727,7 @@ const lt = (n, t) => {
|
|
2727
2727
|
for (const r of e)
|
2728
2728
|
(s = r._$AO) == null || s.call(r, t, !1), lt(r, t);
|
2729
2729
|
return !0;
|
2730
|
-
},
|
2730
|
+
}, Ut = (n) => {
|
2731
2731
|
let t, e;
|
2732
2732
|
do {
|
2733
2733
|
if ((t = n._$AM) === void 0)
|
@@ -2741,28 +2741,28 @@ const lt = (n, t) => {
|
|
2741
2741
|
t._$AN = e = /* @__PURE__ */ new Set();
|
2742
2742
|
else if (e.has(n))
|
2743
2743
|
break;
|
2744
|
-
e.add(n),
|
2744
|
+
e.add(n), Xi(t);
|
2745
2745
|
}
|
2746
2746
|
};
|
2747
|
-
function
|
2748
|
-
this._$AN !== void 0 ? (
|
2747
|
+
function Yi(n) {
|
2748
|
+
this._$AN !== void 0 ? (Ut(this), this._$AM = n, $s(this)) : this._$AM = n;
|
2749
2749
|
}
|
2750
|
-
function
|
2750
|
+
function Ki(n, t = !1, e = 0) {
|
2751
2751
|
const s = this._$AH, r = this._$AN;
|
2752
2752
|
if (r !== void 0 && r.size !== 0)
|
2753
2753
|
if (t)
|
2754
2754
|
if (Array.isArray(s))
|
2755
2755
|
for (let i = e; i < s.length; i++)
|
2756
|
-
lt(s[i], !1),
|
2756
|
+
lt(s[i], !1), Ut(s[i]);
|
2757
2757
|
else
|
2758
|
-
s != null && (lt(s, !1),
|
2758
|
+
s != null && (lt(s, !1), Ut(s));
|
2759
2759
|
else
|
2760
2760
|
lt(this, n);
|
2761
2761
|
}
|
2762
|
-
const
|
2763
|
-
n.type ==
|
2762
|
+
const Xi = (n) => {
|
2763
|
+
n.type == Kt.CHILD && (n._$AP ?? (n._$AP = Ki), n._$AQ ?? (n._$AQ = Yi));
|
2764
2764
|
};
|
2765
|
-
let ys = class extends
|
2765
|
+
let ys = class extends Le {
|
2766
2766
|
constructor() {
|
2767
2767
|
super(...arguments), this._$AN = void 0;
|
2768
2768
|
}
|
@@ -2771,10 +2771,10 @@ let ys = class extends Me {
|
|
2771
2771
|
}
|
2772
2772
|
_$AO(t, e = !0) {
|
2773
2773
|
var s, r;
|
2774
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (lt(this, t),
|
2774
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (r = this.disconnected) == null || r.call(this)), e && (lt(this, t), Ut(this));
|
2775
2775
|
}
|
2776
2776
|
setValue(t) {
|
2777
|
-
if (
|
2777
|
+
if (qi(this._$Ct))
|
2778
2778
|
this._$Ct._$AI(t, this);
|
2779
2779
|
else {
|
2780
2780
|
const e = [...this._$Ct._$AH];
|
@@ -2791,10 +2791,10 @@ let ys = class extends Me {
|
|
2791
2791
|
* Copyright 2020 Google LLC
|
2792
2792
|
* SPDX-License-Identifier: BSD-3-Clause
|
2793
2793
|
*/
|
2794
|
-
const
|
2795
|
-
class
|
2794
|
+
const Rt = () => new Ji();
|
2795
|
+
class Ji {
|
2796
2796
|
}
|
2797
|
-
const
|
2797
|
+
const re = /* @__PURE__ */ new WeakMap(), jt = Xt(class extends ys {
|
2798
2798
|
render(n) {
|
2799
2799
|
return f;
|
2800
2800
|
}
|
@@ -2806,14 +2806,14 @@ const ie = /* @__PURE__ */ new WeakMap(), Ht = Jt(class extends ys {
|
|
2806
2806
|
ot(n) {
|
2807
2807
|
if (typeof this.G == "function") {
|
2808
2808
|
const t = this.ct ?? globalThis;
|
2809
|
-
let e =
|
2810
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
2809
|
+
let e = re.get(t);
|
2810
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), re.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, n), n !== void 0 && this.G.call(this.ct, n);
|
2811
2811
|
} else
|
2812
2812
|
this.G.value = n;
|
2813
2813
|
}
|
2814
2814
|
get rt() {
|
2815
2815
|
var n, t;
|
2816
|
-
return typeof this.G == "function" ? (n =
|
2816
|
+
return typeof this.G == "function" ? (n = re.get(this.ct ?? globalThis)) == null ? void 0 : n.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
2817
2817
|
}
|
2818
2818
|
disconnected() {
|
2819
2819
|
this.rt === this.lt && this.ot(void 0);
|
@@ -2827,10 +2827,10 @@ const ie = /* @__PURE__ */ new WeakMap(), Ht = Jt(class extends ys {
|
|
2827
2827
|
* Copyright 2018 Google LLC
|
2828
2828
|
* SPDX-License-Identifier: BSD-3-Clause
|
2829
2829
|
*/
|
2830
|
-
const
|
2830
|
+
const Ht = Xt(class extends Le {
|
2831
2831
|
constructor(n) {
|
2832
2832
|
var t;
|
2833
|
-
if (super(n), n.type !==
|
2833
|
+
if (super(n), n.type !== Kt.ATTRIBUTE || n.name !== "class" || ((t = n.strings) == null ? void 0 : t.length) > 2)
|
2834
2834
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
2835
2835
|
}
|
2836
2836
|
render(n) {
|
@@ -2854,12 +2854,12 @@ const Dt = Jt(class extends Me {
|
|
2854
2854
|
return j;
|
2855
2855
|
}
|
2856
2856
|
});
|
2857
|
-
var
|
2858
|
-
for (var r = s > 1 ? void 0 : s ?
|
2857
|
+
var Qi = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, to = (n, t, e, s) => {
|
2858
|
+
for (var r = s > 1 ? void 0 : s ? Vi(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
2859
2859
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
2860
|
-
return s && r &&
|
2860
|
+
return s && r && Qi(t, e, r), r;
|
2861
2861
|
};
|
2862
|
-
class
|
2862
|
+
class Me extends b {
|
2863
2863
|
constructor() {
|
2864
2864
|
super(...arguments), this.anchor = "BottomRight";
|
2865
2865
|
}
|
@@ -2871,7 +2871,7 @@ class Ie extends b {
|
|
2871
2871
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), f;
|
2872
2872
|
}
|
2873
2873
|
}
|
2874
|
-
|
2874
|
+
Me.styles = [
|
2875
2875
|
C`
|
2876
2876
|
:host {
|
2877
2877
|
position: fixed;
|
@@ -2890,18 +2890,18 @@ Ie.styles = [
|
|
2890
2890
|
}
|
2891
2891
|
`
|
2892
2892
|
];
|
2893
|
-
|
2893
|
+
to([
|
2894
2894
|
y({ attribute: !0 })
|
2895
|
-
],
|
2896
|
-
const
|
2895
|
+
], Me.prototype, "anchor", 2);
|
2896
|
+
const eo = /* @__PURE__ */ new WeakMap();
|
2897
2897
|
let mn = 0;
|
2898
|
-
const
|
2898
|
+
const ie = /* @__PURE__ */ new Map(), $n = /* @__PURE__ */ new WeakSet(), yn = () => new Promise((n) => requestAnimationFrame(n)), no = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], so = [{ opacity: 0 }], bn = [{ opacity: 0 }, { opacity: 1 }], wn = (n, t) => {
|
2899
2899
|
const e = n - t;
|
2900
2900
|
return e === 0 ? void 0 : e;
|
2901
2901
|
}, _n = (n, t) => {
|
2902
2902
|
const e = n / t;
|
2903
2903
|
return e === 1 ? void 0 : e;
|
2904
|
-
},
|
2904
|
+
}, oe = { left: (n, t) => {
|
2905
2905
|
const e = wn(n, t);
|
2906
2906
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
2907
2907
|
}, top: (n, t) => {
|
@@ -2917,10 +2917,10 @@ const oe = /* @__PURE__ */ new Map(), $n = /* @__PURE__ */ new WeakSet(), yn = (
|
|
2917
2917
|
t === 0 && (t = 1, e = { height: "1px" });
|
2918
2918
|
const s = _n(n, t);
|
2919
2919
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
2920
|
-
} },
|
2921
|
-
class
|
2920
|
+
} }, ro = { duration: 333, easing: "ease-in-out" }, io = ["left", "top", "width", "height", "opacity", "color", "background"], Sn = /* @__PURE__ */ new WeakMap();
|
2921
|
+
class oo extends ys {
|
2922
2922
|
constructor(t) {
|
2923
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type ===
|
2923
|
+
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === Kt.CHILD)
|
2924
2924
|
throw Error("The `animate` directive must be used in attribute position.");
|
2925
2925
|
this.createFinished();
|
2926
2926
|
}
|
@@ -2938,7 +2938,7 @@ class ao extends ys {
|
|
2938
2938
|
return f;
|
2939
2939
|
}
|
2940
2940
|
getController() {
|
2941
|
-
return
|
2941
|
+
return eo.get(this.l);
|
2942
2942
|
}
|
2943
2943
|
isDisabled() {
|
2944
2944
|
var t;
|
@@ -2952,12 +2952,12 @@ class ao extends ys {
|
|
2952
2952
|
u(t) {
|
2953
2953
|
t = t ?? {};
|
2954
2954
|
const e = this.getController();
|
2955
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
2955
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = io), this.options = t;
|
2956
2956
|
}
|
2957
2957
|
p() {
|
2958
2958
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
2959
2959
|
return this.options.properties.forEach((r) => {
|
2960
|
-
const i = e[r] ?? (
|
2960
|
+
const i = e[r] ?? (oe[r] ? void 0 : s[r]), o = Number(i);
|
2961
2961
|
t[r] = isNaN(o) ? i + "" : o;
|
2962
2962
|
}), t;
|
2963
2963
|
}
|
@@ -2985,9 +2985,9 @@ class ao extends ys {
|
|
2985
2985
|
const { from: i, to: o } = this.O(this.g, r, e);
|
2986
2986
|
this.log("measured", [this.g, r, i, o]), t = this.calculateKeyframes(i, o);
|
2987
2987
|
} else {
|
2988
|
-
const i =
|
2988
|
+
const i = ie.get(this.options.inId);
|
2989
2989
|
if (i) {
|
2990
|
-
|
2990
|
+
ie.delete(this.options.inId);
|
2991
2991
|
const { from: o, to: a } = this.O(i, r, e);
|
2992
2992
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, mn++, t.forEach((l) => l.zIndex = mn);
|
2993
2993
|
} else
|
@@ -3006,7 +3006,7 @@ class ao extends ys {
|
|
3006
3006
|
}
|
3007
3007
|
async disconnected() {
|
3008
3008
|
var e;
|
3009
|
-
if (!this.o || (this.options.id !== void 0 &&
|
3009
|
+
if (!this.o || (this.options.id !== void 0 && ie.set(this.options.id, this.g), this.options.out === void 0))
|
3010
3010
|
return;
|
3011
3011
|
if (this.prepare(), await yn(), (e = this.t) == null ? void 0 : e.isConnected) {
|
3012
3012
|
const s = this.i && this.i.parentNode === this.t ? this.i : null;
|
@@ -3046,7 +3046,7 @@ class ao extends ys {
|
|
3046
3046
|
}), t;
|
3047
3047
|
}
|
3048
3048
|
A(t, e = this._()) {
|
3049
|
-
const s = { ...
|
3049
|
+
const s = { ...ro };
|
3050
3050
|
return e.forEach((r) => Object.assign(s, r.options.keyframeOptions)), Object.assign(s, t), s;
|
3051
3051
|
}
|
3052
3052
|
O(t, e, s) {
|
@@ -3063,8 +3063,8 @@ class ao extends ys {
|
|
3063
3063
|
const a = {};
|
3064
3064
|
for (const l in e) {
|
3065
3065
|
const c = t[l], u = e[l];
|
3066
|
-
if (l in
|
3067
|
-
const h =
|
3066
|
+
if (l in oe) {
|
3067
|
+
const h = oe[l];
|
3068
3068
|
if (c === void 0 || u === void 0)
|
3069
3069
|
continue;
|
3070
3070
|
const d = h(c, u);
|
@@ -3097,32 +3097,32 @@ class ao extends ys {
|
|
3097
3097
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
3098
3098
|
}
|
3099
3099
|
}
|
3100
|
-
const
|
3100
|
+
const ge = Xt(oo), St = (n, t, e) => {
|
3101
3101
|
n && e.style.setProperty(t, n);
|
3102
3102
|
}, bs = (n, t) => {
|
3103
3103
|
var e, s, r, i;
|
3104
|
-
|
3104
|
+
St((e = n.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), St(
|
3105
3105
|
(s = n.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
3106
3106
|
"--text-on-primary-background",
|
3107
3107
|
t
|
3108
|
-
),
|
3108
|
+
), St(
|
3109
3109
|
(r = n.colors) == null ? void 0 : r.secondaryBackground,
|
3110
3110
|
"--secondary-background",
|
3111
3111
|
t
|
3112
|
-
),
|
3112
|
+
), St(
|
3113
3113
|
(i = n.colors) == null ? void 0 : i.textOnSecondaryBackground,
|
3114
3114
|
"--text-on-secondary-background",
|
3115
3115
|
t
|
3116
3116
|
);
|
3117
3117
|
};
|
3118
|
-
var
|
3119
|
-
for (var r = s > 1 ? void 0 : s ?
|
3118
|
+
var ao = Object.defineProperty, lo = Object.getOwnPropertyDescriptor, Jt = (n, t, e, s) => {
|
3119
|
+
for (var r = s > 1 ? void 0 : s ? lo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3120
3120
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3121
|
-
return s && r &&
|
3121
|
+
return s && r && ao(t, e, r), r;
|
3122
3122
|
};
|
3123
3123
|
class G extends b {
|
3124
3124
|
constructor() {
|
3125
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
3125
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = Rt();
|
3126
3126
|
}
|
3127
3127
|
async connectedCallback() {
|
3128
3128
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -3149,7 +3149,7 @@ class G extends b {
|
|
3149
3149
|
const s = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3150
3150
|
if (!s)
|
3151
3151
|
return f;
|
3152
|
-
const r = async (u) =>
|
3152
|
+
const r = async (u) => Zr, { type: i, content: o } = s;
|
3153
3153
|
switch (i) {
|
3154
3154
|
case "Telia": {
|
3155
3155
|
const u = await r();
|
@@ -3165,14 +3165,14 @@ class G extends b {
|
|
3165
3165
|
}
|
3166
3166
|
render() {
|
3167
3167
|
var t, e, s, r;
|
3168
|
-
return v`<div class="trigger-container" ${
|
3168
|
+
return v`<div class="trigger-container" ${jt(this.containerRef)}>
|
3169
3169
|
${!this.active && ((r = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && r.showButtonLabel) ? v`
|
3170
3170
|
<button
|
3171
3171
|
class="trigger-label"
|
3172
3172
|
@click=${this.toggleActive}
|
3173
|
-
${
|
3173
|
+
${ge({
|
3174
3174
|
keyframeOptions: {},
|
3175
|
-
in:
|
3175
|
+
in: no,
|
3176
3176
|
stabilizeOut: !0,
|
3177
3177
|
skipInitial: !1
|
3178
3178
|
})}
|
@@ -3182,7 +3182,7 @@ class G extends b {
|
|
3182
3182
|
` : f}
|
3183
3183
|
|
3184
3184
|
<button
|
3185
|
-
class=${
|
3185
|
+
class=${Ht({
|
3186
3186
|
trigger: !0,
|
3187
3187
|
active: this.active,
|
3188
3188
|
rendered: this.loaded
|
@@ -3328,22 +3328,22 @@ G.styles = [
|
|
3328
3328
|
}
|
3329
3329
|
`
|
3330
3330
|
];
|
3331
|
-
|
3331
|
+
Jt([
|
3332
3332
|
y({ attribute: !1 })
|
3333
3333
|
], G.prototype, "application", 2);
|
3334
|
-
|
3334
|
+
Jt([
|
3335
3335
|
T()
|
3336
3336
|
], G.prototype, "active", 2);
|
3337
|
-
|
3337
|
+
Jt([
|
3338
3338
|
T()
|
3339
3339
|
], G.prototype, "loaded", 2);
|
3340
|
-
|
3340
|
+
Jt([
|
3341
3341
|
T()
|
3342
3342
|
], G.prototype, "icon", 2);
|
3343
|
-
var
|
3344
|
-
for (var r = s > 1 ? void 0 : s ?
|
3343
|
+
var co = Object.defineProperty, uo = Object.getOwnPropertyDescriptor, B = (n, t, e, s) => {
|
3344
|
+
for (var r = s > 1 ? void 0 : s ? uo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3345
3345
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3346
|
-
return s && r &&
|
3346
|
+
return s && r && co(t, e, r), r;
|
3347
3347
|
};
|
3348
3348
|
const ws = (n) => {
|
3349
3349
|
class t extends n {
|
@@ -3417,21 +3417,21 @@ _s.styles = [
|
|
3417
3417
|
* Copyright 2021 Google LLC
|
3418
3418
|
* SPDX-License-Identifier: BSD-3-Clause
|
3419
3419
|
*/
|
3420
|
-
function*
|
3420
|
+
function* ho(n, t) {
|
3421
3421
|
if (n !== void 0) {
|
3422
3422
|
let e = 0;
|
3423
3423
|
for (const s of n)
|
3424
3424
|
yield t(s, e++);
|
3425
3425
|
}
|
3426
3426
|
}
|
3427
|
-
var
|
3428
|
-
for (var r = s > 1 ? void 0 : s ?
|
3427
|
+
var Ie = /* @__PURE__ */ ((n) => (n.Inline = "inline", n.Trigger = "trigger", n))(Ie || {}), po = Object.defineProperty, fo = Object.getOwnPropertyDescriptor, vo = (n, t, e, s) => {
|
3428
|
+
for (var r = s > 1 ? void 0 : s ? fo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3429
3429
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3430
|
-
return s && r &&
|
3430
|
+
return s && r && po(t, e, r), r;
|
3431
3431
|
};
|
3432
|
-
class
|
3432
|
+
class Ue extends b {
|
3433
3433
|
constructor() {
|
3434
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
3434
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Rt();
|
3435
3435
|
}
|
3436
3436
|
addChild(t) {
|
3437
3437
|
t.parent = this, this.nodes.push(t);
|
@@ -3454,12 +3454,12 @@ class Re extends b {
|
|
3454
3454
|
this.applyBranding(), this.applyStyles();
|
3455
3455
|
}
|
3456
3456
|
render() {
|
3457
|
-
return this.application.renderStrategy ===
|
3458
|
-
${
|
3457
|
+
return this.application.renderStrategy === Ie.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")), v`<div class="widget-container" ${jt(this.wrapperRef)}>
|
3458
|
+
${ho(this.nodes, (t) => t)}
|
3459
3459
|
</div>`;
|
3460
3460
|
}
|
3461
3461
|
}
|
3462
|
-
|
3462
|
+
Ue.styles = C`
|
3463
3463
|
:host {
|
3464
3464
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3465
3465
|
--spacing-xs: 0.2rem;
|
@@ -3557,15 +3557,15 @@ Re.styles = C`
|
|
3557
3557
|
animation: slideDown 0.3s linear;
|
3558
3558
|
}
|
3559
3559
|
`;
|
3560
|
-
|
3560
|
+
vo([
|
3561
3561
|
y({ attribute: !1 })
|
3562
|
-
],
|
3563
|
-
var
|
3564
|
-
for (var r = s > 1 ? void 0 : s ?
|
3562
|
+
], Ue.prototype, "application", 2);
|
3563
|
+
var go = Object.defineProperty, mo = Object.getOwnPropertyDescriptor, Re = (n, t, e, s) => {
|
3564
|
+
for (var r = s > 1 ? void 0 : s ? mo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3565
3565
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3566
|
-
return s && r &&
|
3566
|
+
return s && r && go(t, e, r), r;
|
3567
3567
|
};
|
3568
|
-
class
|
3568
|
+
class $t extends b {
|
3569
3569
|
constructor() {
|
3570
3570
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3571
3571
|
}
|
@@ -3590,280 +3590,38 @@ class yt extends b {
|
|
3590
3590
|
render() {
|
3591
3591
|
if (!this.widget || this.status !== "activated")
|
3592
3592
|
return f;
|
3593
|
-
if (this.widget.renderStrategy ===
|
3593
|
+
if (this.widget.renderStrategy === Ie.Trigger) {
|
3594
3594
|
const t = new G();
|
3595
3595
|
return t.application = this.widget, t;
|
3596
3596
|
}
|
3597
3597
|
return this.widget.render();
|
3598
3598
|
}
|
3599
3599
|
}
|
3600
|
-
|
3600
|
+
$t.styles = [
|
3601
3601
|
C`
|
3602
3602
|
:host {
|
3603
3603
|
display: block;
|
3604
3604
|
}
|
3605
3605
|
`
|
3606
3606
|
];
|
3607
|
-
|
3607
|
+
Re([
|
3608
3608
|
y({ attribute: !0 })
|
3609
|
-
],
|
3610
|
-
|
3609
|
+
], $t.prototype, "name", 2);
|
3610
|
+
Re([
|
3611
3611
|
T()
|
3612
|
-
],
|
3613
|
-
|
3612
|
+
], $t.prototype, "widget", 2);
|
3613
|
+
Re([
|
3614
3614
|
T()
|
3615
|
-
],
|
3616
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
3615
|
+
], $t.prototype, "status", 2);
|
3616
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Me);
|
3617
3617
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", G);
|
3618
3618
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", _s);
|
3619
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
3620
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3621
|
-
var
|
3622
|
-
for (var r = s > 1 ? void 0 : s ?
|
3619
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Ue);
|
3620
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", $t);
|
3621
|
+
var $o = Object.defineProperty, yo = Object.getOwnPropertyDescriptor, je = (n, t, e, s) => {
|
3622
|
+
for (var r = s > 1 ? void 0 : s ? yo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3623
3623
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3624
|
-
return s && r &&
|
3625
|
-
};
|
3626
|
-
let Nt = class extends b {
|
3627
|
-
connectedCallback() {
|
3628
|
-
var n;
|
3629
|
-
super.connectedCallback(), (n = this.entry.didUpdate) == null || n.subscribe(() => {
|
3630
|
-
this.requestUpdate();
|
3631
|
-
});
|
3632
|
-
}
|
3633
|
-
_getTimestamp(n) {
|
3634
|
-
return new Date(n).toLocaleTimeString([], {
|
3635
|
-
hour: "numeric",
|
3636
|
-
minute: "2-digit",
|
3637
|
-
hourCycle: "h23"
|
3638
|
-
});
|
3639
|
-
}
|
3640
|
-
_renderTimestamp(n, t) {
|
3641
|
-
if (!n && !t)
|
3642
|
-
return f;
|
3643
|
-
let e = "";
|
3644
|
-
return n ? t ? e = `${n}: ${this._getTimestamp(t)}` : e = n : t && (e = this._getTimestamp(t)), v`<p class="conversation-timestamp">${e}</p>`;
|
3645
|
-
}
|
3646
|
-
_renderDeliveryStatus(n) {
|
3647
|
-
return n === "delivered" ? v`<telia-icon
|
3648
|
-
svg=${Wr.svg}
|
3649
|
-
size="sm"
|
3650
|
-
></telia-icon>` : n === "failed" ? v`<telia-icon
|
3651
|
-
svg=${Fr.svg}
|
3652
|
-
size="sm"
|
3653
|
-
title="Message could not be delivered"
|
3654
|
-
></telia-icon>` : v`<telia-icon svg=${Zr.svg} size="sm"></telia-icon>`;
|
3655
|
-
}
|
3656
|
-
_dispatchEntryAction(n) {
|
3657
|
-
this.entry.actions$.next(n.detail);
|
3658
|
-
}
|
3659
|
-
render() {
|
3660
|
-
var n, t;
|
3661
|
-
switch (this.entry.type) {
|
3662
|
-
case I.System:
|
3663
|
-
return v`
|
3664
|
-
<div class="conversation-system-message">
|
3665
|
-
${this.entry.messages.map(
|
3666
|
-
(e) => v`
|
3667
|
-
<div class="message-container">
|
3668
|
-
<div class="message-content">
|
3669
|
-
<conversation-group
|
3670
|
-
.group=${e}
|
3671
|
-
@action=${this._dispatchEntryAction}
|
3672
|
-
></conversation-group>
|
3673
|
-
</div>
|
3674
|
-
</div>
|
3675
|
-
`
|
3676
|
-
)}
|
3677
|
-
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
3678
|
-
</div>
|
3679
|
-
`;
|
3680
|
-
case I.Agent:
|
3681
|
-
return v`<div
|
3682
|
-
class=${Dt({
|
3683
|
-
"conversation-agent-message": !0,
|
3684
|
-
"has-avatar": !!((n = this.entry.sender) != null && n.avatar)
|
3685
|
-
})}
|
3686
|
-
>
|
3687
|
-
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? v`<div class="avatar">
|
3688
|
-
<img src=${this.entry.sender.avatar} />
|
3689
|
-
</div>` : f}
|
3690
|
-
|
3691
|
-
<div class="entry-content">
|
3692
|
-
${this.entry.messages.map(
|
3693
|
-
(e) => v`
|
3694
|
-
<div class="message-container">
|
3695
|
-
<div class="message-content">
|
3696
|
-
<conversation-group .group=${e}></conversation-group>
|
3697
|
-
</div>
|
3698
|
-
</div>
|
3699
|
-
`
|
3700
|
-
)}
|
3701
|
-
</div>
|
3702
|
-
<div class="message-details">
|
3703
|
-
${this._renderTimestamp(
|
3704
|
-
this.entry.sender.name || "",
|
3705
|
-
this.entry.timestamp
|
3706
|
-
)}
|
3707
|
-
</div>
|
3708
|
-
</div>`;
|
3709
|
-
case I.User:
|
3710
|
-
return v`<div
|
3711
|
-
class=${Dt({
|
3712
|
-
"conversation-user-message": !0,
|
3713
|
-
"has-error": this.entry.status === "failed"
|
3714
|
-
})}
|
3715
|
-
>
|
3716
|
-
<div class="entry-content">
|
3717
|
-
${this.entry.messages.map(
|
3718
|
-
(e) => v`
|
3719
|
-
<div class="message-container">
|
3720
|
-
<div class="message-content">
|
3721
|
-
<conversation-group .group=${e}></conversation-group>
|
3722
|
-
</div>
|
3723
|
-
</div>
|
3724
|
-
`
|
3725
|
-
)}
|
3726
|
-
</div>
|
3727
|
-
<div class="message-details">
|
3728
|
-
${this._renderTimestamp(
|
3729
|
-
this.entry.sender.name || "",
|
3730
|
-
this.entry.timestamp
|
3731
|
-
)}
|
3732
|
-
${this._renderDeliveryStatus(this.entry.status)}
|
3733
|
-
</div>
|
3734
|
-
</div>`;
|
3735
|
-
default:
|
3736
|
-
return f;
|
3737
|
-
}
|
3738
|
-
}
|
3739
|
-
};
|
3740
|
-
Nt.styles = [
|
3741
|
-
C`
|
3742
|
-
:host {
|
3743
|
-
box-sizing: border-box;
|
3744
|
-
display: block;
|
3745
|
-
}
|
3746
|
-
* {
|
3747
|
-
box-sizing: border-box;
|
3748
|
-
}
|
3749
|
-
.message-content {
|
3750
|
-
padding: var(--spacing-md);
|
3751
|
-
display: inline-block;
|
3752
|
-
margin-top: var(--spacing-md);
|
3753
|
-
max-width: 100%;
|
3754
|
-
border: 1px solid rgba(255, 255, 255, 0.22);
|
3755
|
-
border-radius: var(--border-radius);
|
3756
|
-
background-color: var(--bubble-bg-color);
|
3757
|
-
color: var(--bubble-text-color);
|
3758
|
-
}
|
3759
|
-
|
3760
|
-
.message-details {
|
3761
|
-
display: flex;
|
3762
|
-
gap: var(--spacing-sm);
|
3763
|
-
align-items: center;
|
3764
|
-
}
|
3765
|
-
|
3766
|
-
.conversation-system-message {
|
3767
|
-
display: flex;
|
3768
|
-
flex-direction: column;
|
3769
|
-
justify-content: center;
|
3770
|
-
align-items: center;
|
3771
|
-
}
|
3772
|
-
|
3773
|
-
.conversation-system-message .message-content {
|
3774
|
-
padding: 0;
|
3775
|
-
}
|
3776
|
-
|
3777
|
-
.conversation-system-message span {
|
3778
|
-
color: var(--message-info-color, var(--text-color));
|
3779
|
-
font-size: 0.8rem;
|
3780
|
-
}
|
3781
|
-
|
3782
|
-
.conversation-user-message {
|
3783
|
-
--bubble-bg-color: var(--user-bg-color);
|
3784
|
-
--bubble-text-color: var(--user-text-color);
|
3785
|
-
margin-left: 10%;
|
3786
|
-
width: 90%;
|
3787
|
-
display: flex;
|
3788
|
-
flex-direction: column;
|
3789
|
-
align-items: flex-end;
|
3790
|
-
gap: var(--spacing-sm);
|
3791
|
-
}
|
3792
|
-
|
3793
|
-
.conversation-user-message.has-error {
|
3794
|
-
opacity: 0.7;
|
3795
|
-
}
|
3796
|
-
|
3797
|
-
.conversation-user-message.has-error .message-details {
|
3798
|
-
color: var(--error-text-color);
|
3799
|
-
}
|
3800
|
-
|
3801
|
-
.conversation-agent-message {
|
3802
|
-
--bubble-bg-color: var(--agent-bg-color);
|
3803
|
-
--bubble-text-color: var(--agent-text-color);
|
3804
|
-
display: grid;
|
3805
|
-
margin-right: 10%;
|
3806
|
-
width: 90%;
|
3807
|
-
gap: var(--spacing-sm);
|
3808
|
-
|
3809
|
-
grid-template-columns: 1fr;
|
3810
|
-
grid-template-rows: 1fr auto;
|
3811
|
-
grid-template-areas:
|
3812
|
-
'content'
|
3813
|
-
'info';
|
3814
|
-
}
|
3815
|
-
.conversation-agent-message.has-avatar {
|
3816
|
-
grid-template-columns: auto 1fr;
|
3817
|
-
grid-template-rows: 1fr auto;
|
3818
|
-
grid-template-areas:
|
3819
|
-
'avatar content'
|
3820
|
-
'. info';
|
3821
|
-
}
|
3822
|
-
|
3823
|
-
.avatar {
|
3824
|
-
grid-area: avatar;
|
3825
|
-
place-self: flex-end;
|
3826
|
-
width: 32px;
|
3827
|
-
height: 32px;
|
3828
|
-
border-radius: 50%;
|
3829
|
-
align-self: flex-end;
|
3830
|
-
justify-self: center;
|
3831
|
-
overflow: hidden;
|
3832
|
-
margin-right: var(--spacing-md);
|
3833
|
-
justify-content: center;
|
3834
|
-
align-items: center;
|
3835
|
-
}
|
3836
|
-
.avatar img {
|
3837
|
-
height: 100%;
|
3838
|
-
width: 100%;
|
3839
|
-
object-fit: cover;
|
3840
|
-
}
|
3841
|
-
|
3842
|
-
.conversation-timestamp {
|
3843
|
-
grid-area: info;
|
3844
|
-
margin: 0;
|
3845
|
-
line-height: 1.5em;
|
3846
|
-
grid-area: info;
|
3847
|
-
color: var(--message-info-color, var(--text-color));
|
3848
|
-
font-size: 0.8rem;
|
3849
|
-
font-weight: 300;
|
3850
|
-
}
|
3851
|
-
|
3852
|
-
.entry-content {
|
3853
|
-
grid-area: content;
|
3854
|
-
}
|
3855
|
-
`
|
3856
|
-
];
|
3857
|
-
Ss([
|
3858
|
-
y({ attribute: !1 })
|
3859
|
-
], Nt.prototype, "entry", 2);
|
3860
|
-
Nt = Ss([
|
3861
|
-
$t("conversation-entry")
|
3862
|
-
], Nt);
|
3863
|
-
var wo = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, He = (n, t, e, s) => {
|
3864
|
-
for (var r = s > 1 ? void 0 : s ? _o(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3865
|
-
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3866
|
-
return s && r && wo(t, e, r), r;
|
3624
|
+
return s && r && $o(t, e, r), r;
|
3867
3625
|
};
|
3868
3626
|
let pt = class extends b {
|
3869
3627
|
constructor() {
|
@@ -3879,7 +3637,7 @@ let pt = class extends b {
|
|
3879
3637
|
(n) => v`<div class="conversation-entry" tabindex="-1">
|
3880
3638
|
<conversation-entry
|
3881
3639
|
.entry=${n}
|
3882
|
-
${
|
3640
|
+
${ge({
|
3883
3641
|
keyframeOptions: {},
|
3884
3642
|
in: bn,
|
3885
3643
|
stabilizeOut: !0,
|
@@ -3890,10 +3648,10 @@ let pt = class extends b {
|
|
3890
3648
|
</div>`
|
3891
3649
|
)}
|
3892
3650
|
${this.loading ? v`<ace-typing-state
|
3893
|
-
${
|
3651
|
+
${ge({
|
3894
3652
|
keyframeOptions: {},
|
3895
3653
|
in: bn,
|
3896
|
-
out:
|
3654
|
+
out: so,
|
3897
3655
|
stabilizeOut: !0,
|
3898
3656
|
skipInitial: !1
|
3899
3657
|
})}
|
@@ -3915,38 +3673,38 @@ pt.styles = [
|
|
3915
3673
|
}
|
3916
3674
|
`
|
3917
3675
|
];
|
3918
|
-
|
3676
|
+
je([
|
3919
3677
|
y({ attribute: !1 })
|
3920
3678
|
], pt.prototype, "entries", 2);
|
3921
|
-
|
3679
|
+
je([
|
3922
3680
|
y({ type: Boolean })
|
3923
3681
|
], pt.prototype, "loading", 2);
|
3924
|
-
pt =
|
3925
|
-
|
3682
|
+
pt = je([
|
3683
|
+
Yt("ace-conversation-feed")
|
3926
3684
|
], pt);
|
3927
3685
|
/**
|
3928
3686
|
* @license
|
3929
3687
|
* Copyright 2021 Google LLC
|
3930
3688
|
* SPDX-License-Identifier: BSD-3-Clause
|
3931
3689
|
*/
|
3932
|
-
const
|
3690
|
+
const bo = (n, t, e) => {
|
3933
3691
|
for (const s of t)
|
3934
3692
|
if (s[0] === n)
|
3935
3693
|
return (0, s[1])();
|
3936
3694
|
return e == null ? void 0 : e();
|
3937
3695
|
};
|
3938
|
-
var
|
3939
|
-
for (var r = s > 1 ? void 0 : s ?
|
3696
|
+
var wo = Object.defineProperty, _o = Object.getOwnPropertyDescriptor, Ss = (n, t, e, s) => {
|
3697
|
+
for (var r = s > 1 ? void 0 : s ? _o(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3940
3698
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3941
|
-
return s && r &&
|
3699
|
+
return s && r && wo(t, e, r), r;
|
3942
3700
|
};
|
3943
|
-
let
|
3701
|
+
let Dt = class extends b {
|
3944
3702
|
render() {
|
3945
3703
|
return v`
|
3946
3704
|
<div class="message-group">
|
3947
3705
|
${this.group.items.map(
|
3948
3706
|
([n, t]) => v`
|
3949
|
-
${
|
3707
|
+
${bo(
|
3950
3708
|
n,
|
3951
3709
|
[["html", () => v`<message-type-html .message=${t} />`]],
|
3952
3710
|
() => {
|
@@ -3963,7 +3721,7 @@ let Bt = class extends b {
|
|
3963
3721
|
`;
|
3964
3722
|
}
|
3965
3723
|
};
|
3966
|
-
|
3724
|
+
Dt.styles = [
|
3967
3725
|
C`
|
3968
3726
|
:host {
|
3969
3727
|
box-sizing: border-box;
|
@@ -3979,18 +3737,18 @@ Bt.styles = [
|
|
3979
3737
|
}
|
3980
3738
|
`
|
3981
3739
|
];
|
3982
|
-
|
3740
|
+
Ss([
|
3983
3741
|
y({ attribute: !1 })
|
3984
|
-
],
|
3985
|
-
|
3986
|
-
|
3987
|
-
],
|
3988
|
-
var
|
3989
|
-
for (var r = s > 1 ? void 0 : s ?
|
3742
|
+
], Dt.prototype, "group", 2);
|
3743
|
+
Dt = Ss([
|
3744
|
+
Yt("conversation-group")
|
3745
|
+
], Dt);
|
3746
|
+
var So = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, Co = (n, t, e, s) => {
|
3747
|
+
for (var r = s > 1 ? void 0 : s ? xo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
3990
3748
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
3991
|
-
return s && r &&
|
3749
|
+
return s && r && So(t, e, r), r;
|
3992
3750
|
};
|
3993
|
-
let
|
3751
|
+
let me = class extends b {
|
3994
3752
|
render() {
|
3995
3753
|
return v`<div class="container">
|
3996
3754
|
<div class="dot"></div>
|
@@ -3999,7 +3757,7 @@ let $e = class extends b {
|
|
3999
3757
|
</div>`;
|
4000
3758
|
}
|
4001
3759
|
};
|
4002
|
-
|
3760
|
+
me.styles = [
|
4003
3761
|
C`
|
4004
3762
|
:host {
|
4005
3763
|
display: block;
|
@@ -4036,17 +3794,17 @@ $e.styles = [
|
|
4036
3794
|
}
|
4037
3795
|
`
|
4038
3796
|
];
|
4039
|
-
|
4040
|
-
|
4041
|
-
],
|
3797
|
+
me = Co([
|
3798
|
+
Yt("ace-typing-state")
|
3799
|
+
], me);
|
4042
3800
|
/**
|
4043
3801
|
* @license
|
4044
3802
|
* Copyright 2017 Google LLC
|
4045
3803
|
* SPDX-License-Identifier: BSD-3-Clause
|
4046
3804
|
*/
|
4047
|
-
class
|
3805
|
+
class $e extends Le {
|
4048
3806
|
constructor(t) {
|
4049
|
-
if (super(t), this.et = f, t.type !==
|
3807
|
+
if (super(t), this.et = f, t.type !== Kt.CHILD)
|
4050
3808
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
4051
3809
|
}
|
4052
3810
|
render(t) {
|
@@ -4063,21 +3821,21 @@ class ye extends Me {
|
|
4063
3821
|
return e.raw = e, this.vt = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
4064
3822
|
}
|
4065
3823
|
}
|
4066
|
-
|
4067
|
-
const
|
4068
|
-
var
|
4069
|
-
for (var r = s > 1 ? void 0 : s ?
|
3824
|
+
$e.directiveName = "unsafeHTML", $e.resultType = 1;
|
3825
|
+
const Ao = Xt($e);
|
3826
|
+
var Eo = Object.defineProperty, Oo = Object.getOwnPropertyDescriptor, xs = (n, t, e, s) => {
|
3827
|
+
for (var r = s > 1 ? void 0 : s ? Oo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
4070
3828
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
4071
|
-
return s && r &&
|
3829
|
+
return s && r && Eo(t, e, r), r;
|
4072
3830
|
};
|
4073
|
-
let
|
3831
|
+
let Nt = class extends b {
|
4074
3832
|
render() {
|
4075
3833
|
return v`<div class="message-type-html">
|
4076
|
-
${
|
3834
|
+
${Ao(this.message.content)}
|
4077
3835
|
</div>`;
|
4078
3836
|
}
|
4079
3837
|
};
|
4080
|
-
|
3838
|
+
Nt.styles = [
|
4081
3839
|
C`
|
4082
3840
|
:host {
|
4083
3841
|
box-sizing: border-box;
|
@@ -4095,13 +3853,13 @@ zt.styles = [
|
|
4095
3853
|
}
|
4096
3854
|
`
|
4097
3855
|
];
|
4098
|
-
|
3856
|
+
xs([
|
4099
3857
|
y({ attribute: !1 })
|
4100
|
-
],
|
4101
|
-
|
4102
|
-
|
4103
|
-
],
|
4104
|
-
class
|
3858
|
+
], Nt.prototype, "message", 2);
|
3859
|
+
Nt = xs([
|
3860
|
+
Yt("message-type-html")
|
3861
|
+
], Nt);
|
3862
|
+
class ko {
|
4105
3863
|
constructor(t) {
|
4106
3864
|
this._message = null, this._host = t, t.addController(this);
|
4107
3865
|
}
|
@@ -4157,14 +3915,14 @@ class xn {
|
|
4157
3915
|
};
|
4158
3916
|
}
|
4159
3917
|
write(t) {
|
4160
|
-
this._addEntryRemoveHandler(t), this.entries$.pipe(
|
3918
|
+
this._addEntryRemoveHandler(t), this.entries$.pipe(de(1)).subscribe((e) => {
|
4161
3919
|
this.entries$.next([...e, t]);
|
4162
3920
|
});
|
4163
3921
|
}
|
4164
3922
|
_addEntryRemoveHandler(t) {
|
4165
3923
|
t.remove$.pipe(
|
4166
3924
|
Q(() => this.entries$),
|
4167
|
-
|
3925
|
+
de(1)
|
4168
3926
|
).subscribe((e) => {
|
4169
3927
|
this.removeEntryAction$.next(t), this.entries$.next(e.filter((s) => s !== t));
|
4170
3928
|
});
|
@@ -4173,9 +3931,9 @@ class xn {
|
|
4173
3931
|
return this.component.platform.registeredProviders.get(t);
|
4174
3932
|
}
|
4175
3933
|
}
|
4176
|
-
class
|
3934
|
+
class To {
|
4177
3935
|
constructor(t) {
|
4178
|
-
this.component = t, this.currentSession$ = new M(null), this.sessions = [], this.storage = null,
|
3936
|
+
this.component = t, this.currentSession$ = new M(null), this.sessions = [], this.storage = null, Ot(t, "handover").subscribe((e) => {
|
4179
3937
|
const s = this._createNewSession(
|
4180
3938
|
e.detail.providerKey,
|
4181
3939
|
e.detail.providerOptions
|
@@ -4271,12 +4029,12 @@ class Mo {
|
|
4271
4029
|
return this.component.properties.providers[0];
|
4272
4030
|
}
|
4273
4031
|
}
|
4274
|
-
class
|
4032
|
+
class Po {
|
4275
4033
|
constructor(t, e) {
|
4276
|
-
this.state$ = t, this.component = e, this.entries$ = new M([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
4034
|
+
this.state$ = t, this.component = e, this.entries$ = new M([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new To(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
4277
4035
|
Q((s) => s ? s.provider$.pipe(
|
4278
|
-
Q((r) => r ? r.isTyping() :
|
4279
|
-
) :
|
4036
|
+
Q((r) => r ? r.isTyping() : he(!1))
|
4037
|
+
) : he(!1))
|
4280
4038
|
), t.subscribe((s) => {
|
4281
4039
|
switch (s) {
|
4282
4040
|
case "init":
|
@@ -4304,14 +4062,14 @@ class Io {
|
|
4304
4062
|
if (!t)
|
4305
4063
|
return vt;
|
4306
4064
|
const e = t.removeEntryAction$.pipe(qn(this.entries$)).pipe(
|
4307
|
-
|
4065
|
+
Et(([r, i]) => i.filter((o) => o.id !== r.id))
|
4308
4066
|
), s = t.entries().pipe(
|
4309
|
-
|
4067
|
+
Et((r) => {
|
4310
4068
|
const i = this.entries$.value, o = r.filter((a) => i.findIndex((l) => l.id === a.id) === -1);
|
4311
4069
|
return [...i, ...o];
|
4312
4070
|
})
|
4313
4071
|
);
|
4314
|
-
return
|
4072
|
+
return yr(e, s);
|
4315
4073
|
})
|
4316
4074
|
).subscribe((t) => {
|
4317
4075
|
this.entries$.next(t);
|
@@ -4322,18 +4080,259 @@ class Io {
|
|
4322
4080
|
(t = this.sessionService) == null || t.startSession();
|
4323
4081
|
}
|
4324
4082
|
}
|
4325
|
-
var
|
4083
|
+
var Lo = Object.defineProperty, Mo = Object.getOwnPropertyDescriptor, Io = (n, t, e, s) => {
|
4084
|
+
for (var r = s > 1 ? void 0 : s ? Mo(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
4085
|
+
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
4086
|
+
return s && r && Lo(t, e, r), r;
|
4087
|
+
};
|
4088
|
+
class He extends b {
|
4089
|
+
connectedCallback() {
|
4090
|
+
var t;
|
4091
|
+
super.connectedCallback(), (t = this.entry.didUpdate) == null || t.subscribe(() => {
|
4092
|
+
this.requestUpdate();
|
4093
|
+
});
|
4094
|
+
}
|
4095
|
+
_getTimestamp(t) {
|
4096
|
+
return new Date(t).toLocaleTimeString([], {
|
4097
|
+
hour: "numeric",
|
4098
|
+
minute: "2-digit",
|
4099
|
+
hourCycle: "h23"
|
4100
|
+
});
|
4101
|
+
}
|
4102
|
+
_renderTimestamp(t, e) {
|
4103
|
+
if (!t && !e)
|
4104
|
+
return f;
|
4105
|
+
let s = "";
|
4106
|
+
return t ? e ? s = `${t}: ${this._getTimestamp(e)}` : s = t : e && (s = this._getTimestamp(e)), v`<p class="conversation-timestamp">${s}</p>`;
|
4107
|
+
}
|
4108
|
+
_renderDeliveryStatus(t) {
|
4109
|
+
return t === "delivered" ? v`<telia-icon
|
4110
|
+
svg=${Fr.svg}
|
4111
|
+
size="sm"
|
4112
|
+
></telia-icon>` : t === "failed" ? v`<telia-icon
|
4113
|
+
svg=${zr.svg}
|
4114
|
+
size="sm"
|
4115
|
+
title="Message could not be delivered"
|
4116
|
+
></telia-icon>` : v`<telia-icon svg=${Wr.svg} size="sm"></telia-icon>`;
|
4117
|
+
}
|
4118
|
+
_dispatchEntryAction(t) {
|
4119
|
+
this.entry.actions$.next(t.detail);
|
4120
|
+
}
|
4121
|
+
render() {
|
4122
|
+
var t, e;
|
4123
|
+
switch (this.entry.type) {
|
4124
|
+
case I.System:
|
4125
|
+
return v`
|
4126
|
+
<div class="conversation-system-message">
|
4127
|
+
${this.entry.messages.map(
|
4128
|
+
(s) => v`
|
4129
|
+
<div class="message-container">
|
4130
|
+
<div class="message-content">
|
4131
|
+
<conversation-group
|
4132
|
+
.group=${s}
|
4133
|
+
@action=${this._dispatchEntryAction}
|
4134
|
+
></conversation-group>
|
4135
|
+
</div>
|
4136
|
+
</div>
|
4137
|
+
`
|
4138
|
+
)}
|
4139
|
+
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
4140
|
+
</div>
|
4141
|
+
`;
|
4142
|
+
case I.Agent:
|
4143
|
+
return v`<div
|
4144
|
+
class=${Ht({
|
4145
|
+
"conversation-agent-message": !0,
|
4146
|
+
"has-avatar": !!((t = this.entry.sender) != null && t.avatar)
|
4147
|
+
})}
|
4148
|
+
>
|
4149
|
+
${typeof ((e = this.entry.sender) == null ? void 0 : e.avatar) == "string" ? v`<div class="avatar">
|
4150
|
+
<img src=${this.entry.sender.avatar} />
|
4151
|
+
</div>` : f}
|
4152
|
+
|
4153
|
+
<div class="entry-content">
|
4154
|
+
${this.entry.messages.map(
|
4155
|
+
(s) => v`
|
4156
|
+
<div class="message-container">
|
4157
|
+
<div class="message-content">
|
4158
|
+
<conversation-group .group=${s}></conversation-group>
|
4159
|
+
</div>
|
4160
|
+
</div>
|
4161
|
+
`
|
4162
|
+
)}
|
4163
|
+
</div>
|
4164
|
+
<div class="message-details">
|
4165
|
+
${this._renderTimestamp(
|
4166
|
+
this.entry.sender.name || "",
|
4167
|
+
this.entry.timestamp
|
4168
|
+
)}
|
4169
|
+
</div>
|
4170
|
+
</div>`;
|
4171
|
+
case I.User:
|
4172
|
+
return v`<div
|
4173
|
+
class=${Ht({
|
4174
|
+
"conversation-user-message": !0,
|
4175
|
+
"has-error": this.entry.status === "failed"
|
4176
|
+
})}
|
4177
|
+
>
|
4178
|
+
<div class="entry-content">
|
4179
|
+
${this.entry.messages.map(
|
4180
|
+
(s) => v`
|
4181
|
+
<div class="message-container">
|
4182
|
+
<div class="message-content">
|
4183
|
+
<conversation-group .group=${s}></conversation-group>
|
4184
|
+
</div>
|
4185
|
+
</div>
|
4186
|
+
`
|
4187
|
+
)}
|
4188
|
+
</div>
|
4189
|
+
<div class="message-details">
|
4190
|
+
${this._renderTimestamp(
|
4191
|
+
this.entry.sender.name || "",
|
4192
|
+
this.entry.timestamp
|
4193
|
+
)}
|
4194
|
+
${this._renderDeliveryStatus(this.entry.status)}
|
4195
|
+
</div>
|
4196
|
+
</div>`;
|
4197
|
+
default:
|
4198
|
+
return f;
|
4199
|
+
}
|
4200
|
+
}
|
4201
|
+
}
|
4202
|
+
He.styles = [
|
4203
|
+
C`
|
4204
|
+
:host {
|
4205
|
+
box-sizing: border-box;
|
4206
|
+
display: block;
|
4207
|
+
}
|
4208
|
+
* {
|
4209
|
+
box-sizing: border-box;
|
4210
|
+
}
|
4211
|
+
.message-content {
|
4212
|
+
padding: var(--spacing-md);
|
4213
|
+
display: inline-block;
|
4214
|
+
margin-top: var(--spacing-md);
|
4215
|
+
max-width: 100%;
|
4216
|
+
border: 1px solid rgba(255, 255, 255, 0.22);
|
4217
|
+
border-radius: var(--border-radius);
|
4218
|
+
background-color: var(--bubble-bg-color);
|
4219
|
+
color: var(--bubble-text-color);
|
4220
|
+
}
|
4221
|
+
|
4222
|
+
.message-details {
|
4223
|
+
display: flex;
|
4224
|
+
gap: var(--spacing-sm);
|
4225
|
+
align-items: center;
|
4226
|
+
}
|
4227
|
+
|
4228
|
+
.conversation-system-message {
|
4229
|
+
display: flex;
|
4230
|
+
flex-direction: column;
|
4231
|
+
justify-content: center;
|
4232
|
+
align-items: center;
|
4233
|
+
}
|
4234
|
+
|
4235
|
+
.conversation-system-message .message-content {
|
4236
|
+
padding: 0;
|
4237
|
+
}
|
4238
|
+
|
4239
|
+
.conversation-system-message span {
|
4240
|
+
color: var(--message-info-color, var(--text-color));
|
4241
|
+
font-size: 0.8rem;
|
4242
|
+
}
|
4243
|
+
|
4244
|
+
.conversation-user-message {
|
4245
|
+
--bubble-bg-color: var(--user-bg-color);
|
4246
|
+
--bubble-text-color: var(--user-text-color);
|
4247
|
+
margin-left: 10%;
|
4248
|
+
width: 90%;
|
4249
|
+
display: flex;
|
4250
|
+
flex-direction: column;
|
4251
|
+
align-items: flex-end;
|
4252
|
+
gap: var(--spacing-sm);
|
4253
|
+
}
|
4254
|
+
|
4255
|
+
.conversation-user-message.has-error {
|
4256
|
+
opacity: 0.7;
|
4257
|
+
}
|
4258
|
+
|
4259
|
+
.conversation-user-message.has-error .message-details {
|
4260
|
+
color: var(--error-text-color);
|
4261
|
+
}
|
4262
|
+
|
4263
|
+
.conversation-agent-message {
|
4264
|
+
--bubble-bg-color: var(--agent-bg-color);
|
4265
|
+
--bubble-text-color: var(--agent-text-color);
|
4266
|
+
display: grid;
|
4267
|
+
margin-right: 10%;
|
4268
|
+
width: 90%;
|
4269
|
+
gap: var(--spacing-sm);
|
4270
|
+
|
4271
|
+
grid-template-columns: 1fr;
|
4272
|
+
grid-template-rows: 1fr auto;
|
4273
|
+
grid-template-areas:
|
4274
|
+
'content'
|
4275
|
+
'info';
|
4276
|
+
}
|
4277
|
+
.conversation-agent-message.has-avatar {
|
4278
|
+
grid-template-columns: auto 1fr;
|
4279
|
+
grid-template-rows: 1fr auto;
|
4280
|
+
grid-template-areas:
|
4281
|
+
'avatar content'
|
4282
|
+
'. info';
|
4283
|
+
}
|
4284
|
+
|
4285
|
+
.avatar {
|
4286
|
+
grid-area: avatar;
|
4287
|
+
place-self: flex-end;
|
4288
|
+
width: 32px;
|
4289
|
+
height: 32px;
|
4290
|
+
border-radius: 50%;
|
4291
|
+
align-self: flex-end;
|
4292
|
+
justify-self: center;
|
4293
|
+
overflow: hidden;
|
4294
|
+
margin-right: var(--spacing-md);
|
4295
|
+
justify-content: center;
|
4296
|
+
align-items: center;
|
4297
|
+
}
|
4298
|
+
.avatar img {
|
4299
|
+
height: 100%;
|
4300
|
+
width: 100%;
|
4301
|
+
object-fit: cover;
|
4302
|
+
}
|
4303
|
+
|
4304
|
+
.conversation-timestamp {
|
4305
|
+
grid-area: info;
|
4306
|
+
margin: 0;
|
4307
|
+
line-height: 1.5em;
|
4308
|
+
grid-area: info;
|
4309
|
+
color: var(--message-info-color, var(--text-color));
|
4310
|
+
font-size: 0.8rem;
|
4311
|
+
font-weight: 300;
|
4312
|
+
}
|
4313
|
+
|
4314
|
+
.entry-content {
|
4315
|
+
grid-area: content;
|
4316
|
+
}
|
4317
|
+
`
|
4318
|
+
];
|
4319
|
+
Io([
|
4320
|
+
y({ attribute: !1 })
|
4321
|
+
], He.prototype, "entry", 2);
|
4322
|
+
var Uo = Object.defineProperty, Ro = Object.getOwnPropertyDescriptor, yt = (n, t, e, s) => {
|
4326
4323
|
for (var r = s > 1 ? void 0 : s ? Ro(t, e) : t, i = n.length - 1, o; i >= 0; i--)
|
4327
4324
|
(o = n[i]) && (r = (s ? o(t, e, r) : o(r)) || r);
|
4328
4325
|
return s && r && Uo(t, e, r), r;
|
4329
4326
|
};
|
4330
4327
|
const jo = (n) => {
|
4331
4328
|
n.scrollTo ? n.scrollTo({ top: n.scrollHeight, behavior: "smooth" }) : n.scrollTop = n.scrollHeight;
|
4332
|
-
}
|
4333
|
-
|
4329
|
+
};
|
4330
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", He);
|
4331
|
+
const Cs = ws(b);
|
4332
|
+
class H extends Cs {
|
4334
4333
|
constructor() {
|
4335
|
-
super(...arguments), this.message = "", this.disabled = !1, this.conversationContentRef =
|
4336
|
-
Q((t) => t ? t == null ? void 0 : t.provider$ :
|
4334
|
+
super(...arguments), this.message = "", this.disabled = !1, this.conversationContentRef = Rt(), this.formRef = Rt(), this.chatScrollHeight = 0, this.toast = new ko(this), this.messageMaxLength = 1e3, this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new M("waiting"), this.stateMachine = new Po(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
4335
|
+
Q((t) => t ? t == null ? void 0 : t.provider$ : he(null))
|
4337
4336
|
);
|
4338
4337
|
}
|
4339
4338
|
async connectedCallback() {
|
@@ -4341,12 +4340,12 @@ class H extends As {
|
|
4341
4340
|
const t = await this.application.container.get(
|
4342
4341
|
"conversation"
|
4343
4342
|
);
|
4344
|
-
this.platform = t || null, this.stateSubscription =
|
4343
|
+
this.platform = t || null, this.stateSubscription = cr([
|
4345
4344
|
this.stateMachine.entries(),
|
4346
4345
|
this.stateMachine.isTyping()
|
4347
4346
|
]).subscribe(([e, s]) => {
|
4348
4347
|
this.entries = e, this.typing = s;
|
4349
|
-
}), this.userSubmitSubscription =
|
4348
|
+
}), this.userSubmitSubscription = Ot(
|
4350
4349
|
this,
|
4351
4350
|
"user-submit"
|
4352
4351
|
).pipe(qn(this.provider$)).subscribe(([e, s]) => {
|
@@ -4422,7 +4421,7 @@ class H extends As {
|
|
4422
4421
|
const t = this.application.texts;
|
4423
4422
|
return this.conversationState$.value === "waiting" && ((e = this.application) != null && e.storage) && this.platform && (this.stateMachine.setStorage(this.application.storage), this.conversationState$.next("init")), v` <div
|
4424
4423
|
@action=${this._actionHandler}
|
4425
|
-
class=${
|
4424
|
+
class=${Ht({
|
4426
4425
|
conversation: !0,
|
4427
4426
|
disabled: this.disabled,
|
4428
4427
|
"conversation--has-toast": this.toast.hasMessage(),
|
@@ -4433,7 +4432,7 @@ class H extends As {
|
|
4433
4432
|
class="conversation-content"
|
4434
4433
|
part="scroll-container"
|
4435
4434
|
aria-live="polite"
|
4436
|
-
${
|
4435
|
+
${jt(this.conversationContentRef)}
|
4437
4436
|
>
|
4438
4437
|
${this.toast.hasMessage() ? v`<div class="conversation__toast">${this.toast.message}</div>` : f}
|
4439
4438
|
<ace-conversation-feed
|
@@ -4445,7 +4444,7 @@ class H extends As {
|
|
4445
4444
|
<form
|
4446
4445
|
class="conversation-bottom"
|
4447
4446
|
@submit=${this._onSendMessage}
|
4448
|
-
${
|
4447
|
+
${jt(this.formRef)}
|
4449
4448
|
>
|
4450
4449
|
<input
|
4451
4450
|
maxlength=${this.messageMaxLength}
|
@@ -4466,7 +4465,7 @@ class H extends As {
|
|
4466
4465
|
title=${t.getOrFallback("conversation.send-alt", "Send")}
|
4467
4466
|
?disabled=${this.disabled}
|
4468
4467
|
>
|
4469
|
-
<telia-icon svg=${
|
4468
|
+
<telia-icon svg=${Gr.svg}></telia-icon>
|
4470
4469
|
</button>
|
4471
4470
|
</div>
|
4472
4471
|
</form>
|
@@ -4474,7 +4473,7 @@ class H extends As {
|
|
4474
4473
|
}
|
4475
4474
|
}
|
4476
4475
|
H.styles = [
|
4477
|
-
|
4476
|
+
Cs.styles || [],
|
4478
4477
|
C`
|
4479
4478
|
:host {
|
4480
4479
|
font-family: var(--font-family);
|
@@ -4651,19 +4650,19 @@ H.styles = [
|
|
4651
4650
|
}
|
4652
4651
|
`
|
4653
4652
|
];
|
4654
|
-
|
4653
|
+
yt([
|
4655
4654
|
T()
|
4656
4655
|
], H.prototype, "message", 2);
|
4657
|
-
|
4656
|
+
yt([
|
4658
4657
|
T()
|
4659
4658
|
], H.prototype, "disabled", 2);
|
4660
|
-
|
4659
|
+
yt([
|
4661
4660
|
T()
|
4662
4661
|
], H.prototype, "platform", 2);
|
4663
|
-
|
4662
|
+
yt([
|
4664
4663
|
T()
|
4665
4664
|
], H.prototype, "entries", 2);
|
4666
|
-
|
4665
|
+
yt([
|
4667
4666
|
T()
|
4668
4667
|
], H.prototype, "typing", 2);
|
4669
4668
|
const Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
@@ -4672,12 +4671,12 @@ const Ho = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
4672
4671
|
default: H
|
4673
4672
|
}, Symbol.toStringTag, { value: "Module" }));
|
4674
4673
|
export {
|
4675
|
-
|
4674
|
+
br as Agent,
|
4676
4675
|
H as Conversation,
|
4677
4676
|
Do as ConversationComponent,
|
4678
|
-
|
4677
|
+
Ft as ConversationEntry,
|
4679
4678
|
I as ConversationMessageType,
|
4680
4679
|
An as ConversationPlatform,
|
4681
4680
|
No as ConversationProvider,
|
4682
|
-
|
4681
|
+
wr as User
|
4683
4682
|
};
|