@telia-ace/widget-conversation-flamingo 1.1.69-rc.0 → 1.1.69
Sign up to get free protection for your applications and to get access to all the features.
- package/index.js +51 -55
- package/index.mjs +562 -575
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -1,5 +1,5 @@
|
|
1
|
-
const
|
2
|
-
s.registerComponent("conversation", Promise.resolve().then(() =>
|
1
|
+
const Jo = async (s) => {
|
2
|
+
s.registerComponent("conversation", Promise.resolve().then(() => Xo));
|
3
3
|
};
|
4
4
|
class As {
|
5
5
|
constructor() {
|
@@ -25,24 +25,24 @@ class As {
|
|
25
25
|
// return this.registeredProviders.get(providerKey);
|
26
26
|
// }
|
27
27
|
}
|
28
|
-
var
|
29
|
-
return
|
28
|
+
var ie = function(s, t) {
|
29
|
+
return ie = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, r) {
|
30
30
|
e.__proto__ = r;
|
31
31
|
} || function(e, r) {
|
32
32
|
for (var n in r)
|
33
33
|
Object.prototype.hasOwnProperty.call(r, n) && (e[n] = r[n]);
|
34
|
-
},
|
34
|
+
}, ie(s, t);
|
35
35
|
};
|
36
36
|
function nt(s, 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
|
+
ie(s, t);
|
40
40
|
function e() {
|
41
41
|
this.constructor = s;
|
42
42
|
}
|
43
43
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
44
44
|
}
|
45
|
-
function
|
45
|
+
function Er(s, t, e, r) {
|
46
46
|
function n(i) {
|
47
47
|
return i instanceof e ? i : new e(function(o) {
|
48
48
|
o(i);
|
@@ -175,7 +175,7 @@ function F(s, t, e) {
|
|
175
175
|
function Q(s) {
|
176
176
|
return this instanceof Q ? (this.v = s, this) : new Q(s);
|
177
177
|
}
|
178
|
-
function
|
178
|
+
function kr(s, t, e) {
|
179
179
|
if (!Symbol.asyncIterator)
|
180
180
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
181
181
|
var r = e.apply(s, t || []), n, i = [];
|
@@ -209,7 +209,7 @@ function Or(s, 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 Or(s) {
|
213
213
|
if (!Symbol.asyncIterator)
|
214
214
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
215
215
|
var t = s[Symbol.asyncIterator], e;
|
@@ -238,7 +238,7 @@ function ks(s) {
|
|
238
238
|
}, e = s(t);
|
239
239
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
240
240
|
}
|
241
|
-
var
|
241
|
+
var Xt = ks(function(s) {
|
242
242
|
return function(e) {
|
243
243
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
244
244
|
` + e.map(function(r, n) {
|
@@ -247,13 +247,13 @@ var Jt = ks(function(s) {
|
|
247
247
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
248
248
|
};
|
249
249
|
});
|
250
|
-
function
|
250
|
+
function oe(s, t) {
|
251
251
|
if (s) {
|
252
252
|
var e = s.indexOf(t);
|
253
253
|
0 <= e && s.splice(e, 1);
|
254
254
|
}
|
255
255
|
}
|
256
|
-
var
|
256
|
+
var Ht = function() {
|
257
257
|
function s(t) {
|
258
258
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
259
259
|
}
|
@@ -286,7 +286,7 @@ var Dt = function() {
|
|
286
286
|
try {
|
287
287
|
h();
|
288
288
|
} catch (m) {
|
289
|
-
i = m instanceof
|
289
|
+
i = m instanceof Xt ? m.errors : [m];
|
290
290
|
}
|
291
291
|
var u = this._finalizers;
|
292
292
|
if (u) {
|
@@ -297,7 +297,7 @@ var Dt = function() {
|
|
297
297
|
try {
|
298
298
|
Ne($);
|
299
299
|
} catch (m) {
|
300
|
-
i = i ?? [], m instanceof
|
300
|
+
i = i ?? [], m instanceof Xt ? i = F(F([], j(i)), j(m.errors)) : i.push(m);
|
301
301
|
}
|
302
302
|
}
|
303
303
|
} catch (m) {
|
@@ -312,7 +312,7 @@ var Dt = function() {
|
|
312
312
|
}
|
313
313
|
}
|
314
314
|
if (i)
|
315
|
-
throw new
|
315
|
+
throw new Xt(i);
|
316
316
|
}
|
317
317
|
}, s.prototype.add = function(t) {
|
318
318
|
var e;
|
@@ -335,17 +335,17 @@ var Dt = function() {
|
|
335
335
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
336
336
|
}, s.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) && oe(e, t);
|
339
339
|
}, s.prototype.remove = function(t) {
|
340
340
|
var e = this._finalizers;
|
341
|
-
e &&
|
341
|
+
e && oe(e, t), t instanceof s && t._removeParent(this);
|
342
342
|
}, s.EMPTY = function() {
|
343
343
|
var t = new s();
|
344
344
|
return t.closed = !0, t;
|
345
345
|
}(), s;
|
346
|
-
}(), Os =
|
346
|
+
}(), Os = Ht.EMPTY;
|
347
347
|
function Ls(s) {
|
348
|
-
return s instanceof
|
348
|
+
return s instanceof Ht || s && "closed" in s && v(s.remove) && v(s.add) && v(s.unsubscribe);
|
349
349
|
}
|
350
350
|
function Ne(s) {
|
351
351
|
v(s) ? s() : s.unsubscribe();
|
@@ -356,37 +356,37 @@ var Ts = {
|
|
356
356
|
Promise: void 0,
|
357
357
|
useDeprecatedSynchronousErrorHandling: !1,
|
358
358
|
useDeprecatedNextContext: !1
|
359
|
-
},
|
359
|
+
}, ae = {
|
360
360
|
setTimeout: function(s, t) {
|
361
361
|
for (var e = [], r = 2; r < arguments.length; r++)
|
362
362
|
e[r - 2] = arguments[r];
|
363
|
-
var n =
|
363
|
+
var n = ae.delegate;
|
364
364
|
return n != null && n.setTimeout ? n.setTimeout.apply(n, F([s, t], j(e))) : setTimeout.apply(void 0, F([s, t], j(e)));
|
365
365
|
},
|
366
366
|
clearTimeout: function(s) {
|
367
|
-
var t =
|
367
|
+
var t = ae.delegate;
|
368
368
|
return ((t == null ? void 0 : t.clearTimeout) || clearTimeout)(s);
|
369
369
|
},
|
370
370
|
delegate: void 0
|
371
371
|
};
|
372
372
|
function Ps(s) {
|
373
|
-
|
373
|
+
ae.setTimeout(function() {
|
374
374
|
throw s;
|
375
375
|
});
|
376
376
|
}
|
377
|
-
function
|
377
|
+
function kt() {
|
378
378
|
}
|
379
|
-
function
|
379
|
+
function At(s) {
|
380
380
|
s();
|
381
381
|
}
|
382
|
-
var
|
382
|
+
var me = function(s) {
|
383
383
|
nt(t, s);
|
384
384
|
function t(e) {
|
385
385
|
var r = s.call(this) || this;
|
386
|
-
return r.isStopped = !1, e ? (r.destination = e, Ls(e) && e.add(r)) : r.destination =
|
386
|
+
return r.isStopped = !1, e ? (r.destination = e, Ls(e) && e.add(r)) : r.destination = Mr, r;
|
387
387
|
}
|
388
388
|
return t.create = function(e, r, n) {
|
389
|
-
return new
|
389
|
+
return new le(e, r, n);
|
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 $e = function(s) {
|
|
410
410
|
this.unsubscribe();
|
411
411
|
}
|
412
412
|
}, t;
|
413
|
-
}(
|
414
|
-
function
|
415
|
-
return
|
413
|
+
}(Ht), Lr = Function.prototype.bind;
|
414
|
+
function Jt(s, t) {
|
415
|
+
return Lr.call(s, t);
|
416
416
|
}
|
417
|
-
var
|
417
|
+
var Tr = function() {
|
418
418
|
function s(t) {
|
419
419
|
this.partialObserver = t;
|
420
420
|
}
|
@@ -424,7 +424,7 @@ var Pr = function() {
|
|
424
424
|
try {
|
425
425
|
e.next(t);
|
426
426
|
} catch (r) {
|
427
|
-
|
427
|
+
_t(r);
|
428
428
|
}
|
429
429
|
}, s.prototype.error = function(t) {
|
430
430
|
var e = this.partialObserver;
|
@@ -432,20 +432,20 @@ var Pr = function() {
|
|
432
432
|
try {
|
433
433
|
e.error(t);
|
434
434
|
} catch (r) {
|
435
|
-
|
435
|
+
_t(r);
|
436
436
|
}
|
437
437
|
else
|
438
|
-
|
438
|
+
_t(t);
|
439
439
|
}, s.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
|
+
_t(e);
|
446
446
|
}
|
447
447
|
}, s;
|
448
|
-
}(),
|
448
|
+
}(), le = function(s) {
|
449
449
|
nt(t, s);
|
450
450
|
function t(e, r, n) {
|
451
451
|
var i = s.call(this) || this, o;
|
@@ -460,34 +460,34 @@ var Pr = function() {
|
|
460
460
|
i && Ts.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 && Jt(e.next, a),
|
464
|
+
error: e.error && Jt(e.error, a),
|
465
|
+
complete: e.complete && Jt(e.complete, a)
|
466
466
|
}) : o = e;
|
467
467
|
}
|
468
|
-
return i.destination = new
|
468
|
+
return i.destination = new Tr(o), i;
|
469
469
|
}
|
470
470
|
return t;
|
471
|
-
}(
|
472
|
-
function
|
471
|
+
}(me);
|
472
|
+
function _t(s) {
|
473
473
|
Ps(s);
|
474
474
|
}
|
475
|
-
function
|
475
|
+
function Pr(s) {
|
476
476
|
throw s;
|
477
477
|
}
|
478
|
-
var
|
478
|
+
var Mr = {
|
479
479
|
closed: !0,
|
480
|
-
next:
|
481
|
-
error:
|
482
|
-
complete:
|
483
|
-
},
|
480
|
+
next: kt,
|
481
|
+
error: Pr,
|
482
|
+
complete: kt
|
483
|
+
}, $e = function() {
|
484
484
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
485
485
|
}();
|
486
|
-
function
|
486
|
+
function mt(s) {
|
487
487
|
return s;
|
488
488
|
}
|
489
|
-
function
|
490
|
-
return s.length === 0 ?
|
489
|
+
function Ur(s) {
|
490
|
+
return s.length === 0 ? mt : s.length === 1 ? s[0] : function(e) {
|
491
491
|
return s.reduce(function(r, n) {
|
492
492
|
return n(r);
|
493
493
|
}, e);
|
@@ -501,8 +501,8 @@ var _ = function() {
|
|
501
501
|
var e = new s();
|
502
502
|
return e.source = this, e.operator = t, e;
|
503
503
|
}, s.prototype.subscribe = function(t, e, r) {
|
504
|
-
var n = this, i =
|
505
|
-
return
|
504
|
+
var n = this, i = Rr(t) ? t : new le(t, e, r);
|
505
|
+
return At(function() {
|
506
506
|
var o = n, a = o.operator, l = o.source;
|
507
507
|
i.add(a ? a.call(i, l) : l ? n._subscribe(i) : n._trySubscribe(i));
|
508
508
|
}), i;
|
@@ -515,7 +515,7 @@ var _ = function() {
|
|
515
515
|
}, s.prototype.forEach = function(t, e) {
|
516
516
|
var r = this;
|
517
517
|
return e = Be(e), new e(function(n, i) {
|
518
|
-
var o = new
|
518
|
+
var o = new le({
|
519
519
|
next: function(a) {
|
520
520
|
try {
|
521
521
|
t(a);
|
@@ -531,12 +531,12 @@ var _ = function() {
|
|
531
531
|
}, s.prototype._subscribe = function(t) {
|
532
532
|
var e;
|
533
533
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
534
|
-
}, s.prototype[
|
534
|
+
}, s.prototype[$e] = function() {
|
535
535
|
return this;
|
536
536
|
}, s.prototype.pipe = function() {
|
537
537
|
for (var t = [], e = 0; e < arguments.length; e++)
|
538
538
|
t[e] = arguments[e];
|
539
|
-
return
|
539
|
+
return Ur(t)(this);
|
540
540
|
}, s.prototype.toPromise = function(t) {
|
541
541
|
var e = this;
|
542
542
|
return t = Be(t), new t(function(r, n) {
|
@@ -557,18 +557,18 @@ function Be(s) {
|
|
557
557
|
var t;
|
558
558
|
return (t = s ?? Ts.Promise) !== null && t !== void 0 ? t : Promise;
|
559
559
|
}
|
560
|
-
function
|
560
|
+
function Ir(s) {
|
561
561
|
return s && v(s.next) && v(s.error) && v(s.complete);
|
562
562
|
}
|
563
|
-
function
|
564
|
-
return s && s instanceof
|
563
|
+
function Rr(s) {
|
564
|
+
return s && s instanceof me || Ir(s) && Ls(s);
|
565
565
|
}
|
566
|
-
function
|
566
|
+
function jr(s) {
|
567
567
|
return v(s == null ? void 0 : s.lift);
|
568
568
|
}
|
569
569
|
function D(s) {
|
570
570
|
return function(t) {
|
571
|
-
if (
|
571
|
+
if (jr(t))
|
572
572
|
return t.lift(function(e) {
|
573
573
|
try {
|
574
574
|
return s(e, this);
|
@@ -580,9 +580,9 @@ function D(s) {
|
|
580
580
|
};
|
581
581
|
}
|
582
582
|
function k(s, t, e, r, n) {
|
583
|
-
return new
|
583
|
+
return new Hr(s, t, e, r, n);
|
584
584
|
}
|
585
|
-
var
|
585
|
+
var Hr = function(s) {
|
586
586
|
nt(t, s);
|
587
587
|
function t(e, r, n, i, o, a) {
|
588
588
|
var l = s.call(this, e) || this;
|
@@ -617,7 +617,7 @@ var Dr = function(s) {
|
|
617
617
|
s.prototype.unsubscribe.call(this), !r && ((e = this.onFinalize) === null || e === void 0 || e.call(this));
|
618
618
|
}
|
619
619
|
}, t;
|
620
|
-
}(
|
620
|
+
}(me), Dr = ks(function(s) {
|
621
621
|
return function() {
|
622
622
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
623
623
|
};
|
@@ -632,10 +632,10 @@ var Dr = function(s) {
|
|
632
632
|
return r.operator = e, r;
|
633
633
|
}, t.prototype._throwIfClosed = function() {
|
634
634
|
if (this.closed)
|
635
|
-
throw new
|
635
|
+
throw new Dr();
|
636
636
|
}, t.prototype.next = function(e) {
|
637
637
|
var r = this;
|
638
|
-
|
638
|
+
At(function() {
|
639
639
|
var n, i;
|
640
640
|
if (r._throwIfClosed(), !r.isStopped) {
|
641
641
|
r.currentObservers || (r.currentObservers = Array.from(r.observers));
|
@@ -658,7 +658,7 @@ var Dr = function(s) {
|
|
658
658
|
});
|
659
659
|
}, t.prototype.error = function(e) {
|
660
660
|
var r = this;
|
661
|
-
|
661
|
+
At(function() {
|
662
662
|
if (r._throwIfClosed(), !r.isStopped) {
|
663
663
|
r.hasError = r.isStopped = !0, r.thrownError = e;
|
664
664
|
for (var n = r.observers; n.length; )
|
@@ -667,7 +667,7 @@ var Dr = function(s) {
|
|
667
667
|
});
|
668
668
|
}, t.prototype.complete = function() {
|
669
669
|
var e = this;
|
670
|
-
|
670
|
+
At(function() {
|
671
671
|
if (e._throwIfClosed(), !e.isStopped) {
|
672
672
|
e.isStopped = !0;
|
673
673
|
for (var r = e.observers; r.length; )
|
@@ -689,8 +689,8 @@ var Dr = function(s) {
|
|
689
689
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
690
690
|
}, t.prototype._innerSubscribe = function(e) {
|
691
691
|
var r = this, n = this, i = n.hasError, o = n.isStopped, a = n.observers;
|
692
|
-
return i || o ? Os : (this.currentObservers = null, a.push(e), new
|
693
|
-
r.currentObservers = null,
|
692
|
+
return i || o ? Os : (this.currentObservers = null, a.push(e), new Ht(function() {
|
693
|
+
r.currentObservers = null, oe(a, e);
|
694
694
|
}));
|
695
695
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
696
696
|
var r = this, n = r.hasError, i = r.thrownError, o = r.isStopped;
|
@@ -743,32 +743,32 @@ var Dr = function(s) {
|
|
743
743
|
}, t.prototype.next = function(e) {
|
744
744
|
s.prototype.next.call(this, this._value = e);
|
745
745
|
}, t;
|
746
|
-
}(x),
|
746
|
+
}(x), $t = new _(function(s) {
|
747
747
|
return s.complete();
|
748
748
|
});
|
749
|
-
function
|
749
|
+
function Nr(s) {
|
750
750
|
return s && v(s.schedule);
|
751
751
|
}
|
752
|
-
function
|
752
|
+
function ye(s) {
|
753
753
|
return s[s.length - 1];
|
754
754
|
}
|
755
755
|
function Ms(s) {
|
756
|
-
return v(
|
756
|
+
return v(ye(s)) ? s.pop() : void 0;
|
757
757
|
}
|
758
|
-
function
|
759
|
-
return
|
758
|
+
function be(s) {
|
759
|
+
return Nr(ye(s)) ? s.pop() : void 0;
|
760
760
|
}
|
761
|
-
function
|
762
|
-
return typeof
|
761
|
+
function Br(s, t) {
|
762
|
+
return typeof ye(s) == "number" ? s.pop() : t;
|
763
763
|
}
|
764
|
-
var
|
764
|
+
var we = function(s) {
|
765
765
|
return s && typeof s.length == "number" && typeof s != "function";
|
766
766
|
};
|
767
767
|
function Us(s) {
|
768
768
|
return v(s == null ? void 0 : s.then);
|
769
769
|
}
|
770
770
|
function Is(s) {
|
771
|
-
return v(s[
|
771
|
+
return v(s[$e]);
|
772
772
|
}
|
773
773
|
function Rs(s) {
|
774
774
|
return Symbol.asyncIterator && v(s == null ? void 0 : s[Symbol.asyncIterator]);
|
@@ -776,15 +776,15 @@ function Rs(s) {
|
|
776
776
|
function js(s) {
|
777
777
|
return new TypeError("You provided " + (s !== null && typeof s == "object" ? "an invalid object" : "'" + s + "'") + " where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.");
|
778
778
|
}
|
779
|
-
function
|
779
|
+
function zr() {
|
780
780
|
return typeof Symbol != "function" || !Symbol.iterator ? "@@iterator" : Symbol.iterator;
|
781
781
|
}
|
782
|
-
var Hs =
|
782
|
+
var Hs = zr();
|
783
783
|
function Ds(s) {
|
784
784
|
return v(s == null ? void 0 : s[Hs]);
|
785
785
|
}
|
786
786
|
function Ns(s) {
|
787
|
-
return
|
787
|
+
return kr(this, arguments, function() {
|
788
788
|
var e, r, n, i;
|
789
789
|
return Es(this, function(o) {
|
790
790
|
switch (o.label) {
|
@@ -822,36 +822,36 @@ function T(s) {
|
|
822
822
|
return s;
|
823
823
|
if (s != null) {
|
824
824
|
if (Is(s))
|
825
|
+
return Fr(s);
|
826
|
+
if (we(s))
|
825
827
|
return Wr(s);
|
826
|
-
if (xe(s))
|
827
|
-
return Zr(s);
|
828
828
|
if (Us(s))
|
829
|
-
return
|
829
|
+
return Zr(s);
|
830
830
|
if (Rs(s))
|
831
831
|
return zs(s);
|
832
832
|
if (Ds(s))
|
833
|
-
return
|
833
|
+
return Yr(s);
|
834
834
|
if (Bs(s))
|
835
|
-
return
|
835
|
+
return qr(s);
|
836
836
|
}
|
837
837
|
throw js(s);
|
838
838
|
}
|
839
|
-
function
|
839
|
+
function Fr(s) {
|
840
840
|
return new _(function(t) {
|
841
|
-
var e = s[
|
841
|
+
var e = s[$e]();
|
842
842
|
if (v(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 Wr(s) {
|
848
848
|
return new _(function(t) {
|
849
849
|
for (var e = 0; e < s.length && !t.closed; e++)
|
850
850
|
t.next(s[e]);
|
851
851
|
t.complete();
|
852
852
|
});
|
853
853
|
}
|
854
|
-
function
|
854
|
+
function Zr(s) {
|
855
855
|
return new _(function(t) {
|
856
856
|
s.then(function(e) {
|
857
857
|
t.closed || (t.next(e), t.complete());
|
@@ -860,7 +860,7 @@ function Yr(s) {
|
|
860
860
|
}).then(null, Ps);
|
861
861
|
});
|
862
862
|
}
|
863
|
-
function
|
863
|
+
function Yr(s) {
|
864
864
|
return new _(function(t) {
|
865
865
|
var e, r;
|
866
866
|
try {
|
@@ -884,22 +884,22 @@ function qr(s) {
|
|
884
884
|
}
|
885
885
|
function zs(s) {
|
886
886
|
return new _(function(t) {
|
887
|
-
|
887
|
+
Kr(s, t).catch(function(e) {
|
888
888
|
return t.error(e);
|
889
889
|
});
|
890
890
|
});
|
891
891
|
}
|
892
|
-
function
|
892
|
+
function qr(s) {
|
893
893
|
return zs(Ns(s));
|
894
894
|
}
|
895
|
-
function
|
895
|
+
function Kr(s, t) {
|
896
896
|
var e, r, n, i;
|
897
|
-
return
|
897
|
+
return Er(this, void 0, void 0, function() {
|
898
898
|
var o, a;
|
899
899
|
return Es(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 = Or(s), l.label = 1;
|
903
903
|
case 1:
|
904
904
|
return [4, e.next()];
|
905
905
|
case 2:
|
@@ -964,13 +964,13 @@ function Ws(s, t) {
|
|
964
964
|
}, t));
|
965
965
|
});
|
966
966
|
}
|
967
|
-
function
|
967
|
+
function Gr(s, t) {
|
968
968
|
return T(s).pipe(Ws(t), Fs(t));
|
969
969
|
}
|
970
|
-
function
|
970
|
+
function Xr(s, t) {
|
971
971
|
return T(s).pipe(Ws(t), Fs(t));
|
972
972
|
}
|
973
|
-
function
|
973
|
+
function Jr(s, t) {
|
974
974
|
return new _(function(e) {
|
975
975
|
var r = 0;
|
976
976
|
return t.schedule(function() {
|
@@ -978,7 +978,7 @@ function Qr(s, t) {
|
|
978
978
|
});
|
979
979
|
});
|
980
980
|
}
|
981
|
-
function
|
981
|
+
function Qr(s, t) {
|
982
982
|
return new _(function(e) {
|
983
983
|
var r;
|
984
984
|
return M(e, t, function() {
|
@@ -1011,36 +1011,36 @@ function Zs(s, t) {
|
|
1011
1011
|
});
|
1012
1012
|
});
|
1013
1013
|
}
|
1014
|
-
function
|
1014
|
+
function Vr(s, t) {
|
1015
1015
|
return Zs(Ns(s), t);
|
1016
1016
|
}
|
1017
|
-
function
|
1017
|
+
function tn(s, t) {
|
1018
1018
|
if (s != null) {
|
1019
1019
|
if (Is(s))
|
1020
|
-
return
|
1021
|
-
if (
|
1022
|
-
return Qr(s, t);
|
1023
|
-
if (Us(s))
|
1020
|
+
return Gr(s, t);
|
1021
|
+
if (we(s))
|
1024
1022
|
return Jr(s, t);
|
1023
|
+
if (Us(s))
|
1024
|
+
return Xr(s, t);
|
1025
1025
|
if (Rs(s))
|
1026
1026
|
return Zs(s, t);
|
1027
1027
|
if (Ds(s))
|
1028
|
-
return
|
1028
|
+
return Qr(s, t);
|
1029
1029
|
if (Bs(s))
|
1030
|
-
return
|
1030
|
+
return Vr(s, t);
|
1031
1031
|
}
|
1032
1032
|
throw js(s);
|
1033
1033
|
}
|
1034
|
-
function
|
1035
|
-
return t ?
|
1034
|
+
function Dt(s, t) {
|
1035
|
+
return t ? tn(s, t) : T(s);
|
1036
1036
|
}
|
1037
|
-
function
|
1037
|
+
function ce() {
|
1038
1038
|
for (var s = [], t = 0; t < arguments.length; t++)
|
1039
1039
|
s[t] = arguments[t];
|
1040
|
-
var e =
|
1041
|
-
return
|
1040
|
+
var e = be(s);
|
1041
|
+
return Dt(s, e);
|
1042
1042
|
}
|
1043
|
-
function
|
1043
|
+
function Ot(s, t) {
|
1044
1044
|
return D(function(e, r) {
|
1045
1045
|
var n = 0;
|
1046
1046
|
e.subscribe(k(r, function(i) {
|
@@ -1048,23 +1048,23 @@ function Lt(s, t) {
|
|
1048
1048
|
}));
|
1049
1049
|
});
|
1050
1050
|
}
|
1051
|
-
var
|
1052
|
-
function
|
1053
|
-
return
|
1051
|
+
var en = Array.isArray;
|
1052
|
+
function sn(s, t) {
|
1053
|
+
return en(t) ? s.apply(void 0, F([], j(t))) : s(t);
|
1054
1054
|
}
|
1055
1055
|
function Ys(s) {
|
1056
|
-
return
|
1057
|
-
return
|
1056
|
+
return Ot(function(t) {
|
1057
|
+
return sn(s, t);
|
1058
1058
|
});
|
1059
1059
|
}
|
1060
|
-
var
|
1061
|
-
function
|
1060
|
+
var rn = Array.isArray, nn = Object.getPrototypeOf, on = Object.prototype, an = Object.keys;
|
1061
|
+
function ln(s) {
|
1062
1062
|
if (s.length === 1) {
|
1063
1063
|
var t = s[0];
|
1064
|
-
if (
|
1064
|
+
if (rn(t))
|
1065
1065
|
return { args: t, keys: null };
|
1066
|
-
if (
|
1067
|
-
var e =
|
1066
|
+
if (cn(t)) {
|
1067
|
+
var e = an(t);
|
1068
1068
|
return {
|
1069
1069
|
args: e.map(function(r) {
|
1070
1070
|
return t[r];
|
@@ -1075,31 +1075,31 @@ function cn(s) {
|
|
1075
1075
|
}
|
1076
1076
|
return { args: s, keys: null };
|
1077
1077
|
}
|
1078
|
-
function
|
1079
|
-
return s && typeof s == "object" &&
|
1078
|
+
function cn(s) {
|
1079
|
+
return s && typeof s == "object" && nn(s) === on;
|
1080
1080
|
}
|
1081
|
-
function
|
1081
|
+
function hn(s, t) {
|
1082
1082
|
return s.reduce(function(e, r, n) {
|
1083
1083
|
return e[r] = t[n], e;
|
1084
1084
|
}, {});
|
1085
1085
|
}
|
1086
|
-
function
|
1086
|
+
function un() {
|
1087
1087
|
for (var s = [], t = 0; t < arguments.length; t++)
|
1088
1088
|
s[t] = arguments[t];
|
1089
|
-
var e =
|
1089
|
+
var e = be(s), r = Ms(s), n = ln(s), i = n.args, o = n.keys;
|
1090
1090
|
if (i.length === 0)
|
1091
|
-
return
|
1092
|
-
var a = new _(
|
1093
|
-
return
|
1094
|
-
} :
|
1091
|
+
return Dt([], e);
|
1092
|
+
var a = new _(dn(i, e, o ? function(l) {
|
1093
|
+
return hn(o, l);
|
1094
|
+
} : mt));
|
1095
1095
|
return r ? a.pipe(Ys(r)) : a;
|
1096
1096
|
}
|
1097
|
-
function
|
1098
|
-
return e === void 0 && (e =
|
1097
|
+
function dn(s, t, e) {
|
1098
|
+
return e === void 0 && (e = mt), function(r) {
|
1099
1099
|
Fe(t, function() {
|
1100
1100
|
for (var n = s.length, i = new Array(n), o = n, a = n, l = function(h) {
|
1101
1101
|
Fe(t, function() {
|
1102
|
-
var u =
|
1102
|
+
var u = Dt(s[h], t), d = !1;
|
1103
1103
|
u.subscribe(k(r, function(p) {
|
1104
1104
|
i[h] = p, d || (d = !0, a--), a || r.next(e(i.slice()));
|
1105
1105
|
}, function() {
|
@@ -1114,7 +1114,7 @@ function pn(s, t, e) {
|
|
1114
1114
|
function Fe(s, t, e) {
|
1115
1115
|
s ? M(e, s, t) : t();
|
1116
1116
|
}
|
1117
|
-
function
|
1117
|
+
function pn(s, t, e, r, n, i, o, a) {
|
1118
1118
|
var l = [], c = 0, h = 0, u = !1, d = function() {
|
1119
1119
|
u && !l.length && !c && t.complete();
|
1120
1120
|
}, p = function(m) {
|
@@ -1131,15 +1131,15 @@ function fn(s, t, e, r, n, i, o, a) {
|
|
1131
1131
|
try {
|
1132
1132
|
c--;
|
1133
1133
|
for (var it = function() {
|
1134
|
-
var
|
1134
|
+
var xt = l.shift();
|
1135
1135
|
o ? M(t, o, function() {
|
1136
|
-
return $(
|
1137
|
-
}) : $(
|
1136
|
+
return $(xt);
|
1137
|
+
}) : $(xt);
|
1138
1138
|
}; l.length && c < r; )
|
1139
1139
|
it();
|
1140
1140
|
d();
|
1141
|
-
} catch (
|
1142
|
-
t.error(
|
1141
|
+
} catch (xt) {
|
1142
|
+
t.error(xt);
|
1143
1143
|
}
|
1144
1144
|
}));
|
1145
1145
|
};
|
@@ -1149,30 +1149,30 @@ function fn(s, t, e, r, n, i, o, a) {
|
|
1149
1149
|
a == null || a();
|
1150
1150
|
};
|
1151
1151
|
}
|
1152
|
-
function
|
1153
|
-
return e === void 0 && (e = 1 / 0), v(t) ?
|
1154
|
-
return
|
1152
|
+
function xe(s, t, e) {
|
1153
|
+
return e === void 0 && (e = 1 / 0), v(t) ? xe(function(r, n) {
|
1154
|
+
return Ot(function(i, o) {
|
1155
1155
|
return t(r, i, n, o);
|
1156
1156
|
})(T(s(r, n)));
|
1157
1157
|
}, e) : (typeof t == "number" && (e = t), D(function(r, n) {
|
1158
|
-
return
|
1158
|
+
return pn(r, n, s, e);
|
1159
1159
|
}));
|
1160
1160
|
}
|
1161
|
-
function
|
1162
|
-
return s === void 0 && (s = 1 / 0),
|
1161
|
+
function fn(s) {
|
1162
|
+
return s === void 0 && (s = 1 / 0), xe(mt, s);
|
1163
1163
|
}
|
1164
|
-
var
|
1165
|
-
function
|
1164
|
+
var gn = ["addListener", "removeListener"], vn = ["addEventListener", "removeEventListener"], mn = ["on", "off"];
|
1165
|
+
function Lt(s, t, e, r) {
|
1166
1166
|
if (v(e) && (r = e, e = void 0), r)
|
1167
|
-
return
|
1168
|
-
var n = j(
|
1167
|
+
return Lt(s, t, e).pipe(Ys(r));
|
1168
|
+
var n = j(bn(s) ? vn.map(function(a) {
|
1169
1169
|
return function(l) {
|
1170
1170
|
return s[a](t, l, e);
|
1171
1171
|
};
|
1172
|
-
}) :
|
1173
|
-
if (!i &&
|
1174
|
-
return
|
1175
|
-
return
|
1172
|
+
}) : $n(s) ? gn.map(We(s, t)) : yn(s) ? mn.map(We(s, t)) : [], 2), i = n[0], o = n[1];
|
1173
|
+
if (!i && we(s))
|
1174
|
+
return xe(function(a) {
|
1175
|
+
return Lt(a, t, e);
|
1176
1176
|
})(T(s));
|
1177
1177
|
if (!i)
|
1178
1178
|
throw new TypeError("Invalid event target");
|
@@ -1194,24 +1194,24 @@ function We(s, t) {
|
|
1194
1194
|
};
|
1195
1195
|
};
|
1196
1196
|
}
|
1197
|
-
function
|
1197
|
+
function $n(s) {
|
1198
1198
|
return v(s.addListener) && v(s.removeListener);
|
1199
1199
|
}
|
1200
|
-
function
|
1200
|
+
function yn(s) {
|
1201
1201
|
return v(s.on) && v(s.off);
|
1202
1202
|
}
|
1203
|
-
function
|
1203
|
+
function bn(s) {
|
1204
1204
|
return v(s.addEventListener) && v(s.removeEventListener);
|
1205
1205
|
}
|
1206
|
-
function
|
1206
|
+
function wn() {
|
1207
1207
|
for (var s = [], t = 0; t < arguments.length; t++)
|
1208
1208
|
s[t] = arguments[t];
|
1209
|
-
var e =
|
1210
|
-
return n.length ? n.length === 1 ? T(n[0]) :
|
1209
|
+
var e = be(s), r = Br(s, 1 / 0), n = s;
|
1210
|
+
return n.length ? n.length === 1 ? T(n[0]) : fn(r)(Dt(n, e)) : $t;
|
1211
1211
|
}
|
1212
|
-
function
|
1212
|
+
function he(s) {
|
1213
1213
|
return s <= 0 ? function() {
|
1214
|
-
return
|
1214
|
+
return $t;
|
1215
1215
|
} : D(function(t, e) {
|
1216
1216
|
var r = 0;
|
1217
1217
|
t.subscribe(k(e, function(n) {
|
@@ -1241,10 +1241,10 @@ function Ze(s) {
|
|
1241
1241
|
return D(function(t, e) {
|
1242
1242
|
T(s).subscribe(k(e, function() {
|
1243
1243
|
return e.complete();
|
1244
|
-
},
|
1244
|
+
}, kt)), !e.closed && t.subscribe(e);
|
1245
1245
|
});
|
1246
1246
|
}
|
1247
|
-
function
|
1247
|
+
function ue() {
|
1248
1248
|
for (var s = [], t = 0; t < arguments.length; t++)
|
1249
1249
|
s[t] = arguments[t];
|
1250
1250
|
var e = Ms(s);
|
@@ -1253,8 +1253,8 @@ function de() {
|
|
1253
1253
|
return !1;
|
1254
1254
|
}), l = !1, c = function(u) {
|
1255
1255
|
T(s[u]).subscribe(k(n, function(d) {
|
1256
|
-
o[u] = d, !l && !a[u] && (a[u] = !0, (l = a.every(
|
1257
|
-
},
|
1256
|
+
o[u] = d, !l && !a[u] && (a[u] = !0, (l = a.every(mt)) && (a = null));
|
1257
|
+
}, kt));
|
1258
1258
|
}, h = 0; h < i; h++)
|
1259
1259
|
c(h);
|
1260
1260
|
r.subscribe(k(n, function(u) {
|
@@ -1267,7 +1267,7 @@ function de() {
|
|
1267
1267
|
}
|
1268
1268
|
var I = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(I || {});
|
1269
1269
|
const qs = () => crypto.randomUUID();
|
1270
|
-
class
|
1270
|
+
class Nt {
|
1271
1271
|
constructor(t, e, r) {
|
1272
1272
|
this.type = t, this.sender = e, this.messages = r, this.status = "delivered", this.didUpdate = new x(), this.actions$ = new x(), this.remove$ = new x(), this.timestamp = Date.now(), this.id = qs();
|
1273
1273
|
}
|
@@ -1285,12 +1285,12 @@ class Bt {
|
|
1285
1285
|
this.remove$.next();
|
1286
1286
|
}
|
1287
1287
|
}
|
1288
|
-
class
|
1288
|
+
class xn {
|
1289
1289
|
constructor(t) {
|
1290
1290
|
this.name = t, this.print$ = new x();
|
1291
1291
|
}
|
1292
1292
|
print(t, e = "html") {
|
1293
|
-
const r = new
|
1293
|
+
const r = new Nt(
|
1294
1294
|
I.Agent,
|
1295
1295
|
{ name: this.name },
|
1296
1296
|
[
|
@@ -1305,12 +1305,12 @@ class _n {
|
|
1305
1305
|
return this.print$.asObservable();
|
1306
1306
|
}
|
1307
1307
|
}
|
1308
|
-
class
|
1308
|
+
class _n {
|
1309
1309
|
constructor(t) {
|
1310
1310
|
this.name = t, this.print$ = new x();
|
1311
1311
|
}
|
1312
1312
|
print(t) {
|
1313
|
-
const e = new
|
1313
|
+
const e = new Nt(
|
1314
1314
|
I.User,
|
1315
1315
|
{ name: this.name },
|
1316
1316
|
[
|
@@ -1325,12 +1325,12 @@ class Sn {
|
|
1325
1325
|
return this.print$.asObservable();
|
1326
1326
|
}
|
1327
1327
|
}
|
1328
|
-
class
|
1328
|
+
class Sn {
|
1329
1329
|
constructor() {
|
1330
1330
|
this.print$ = new x(), this.name = "system";
|
1331
1331
|
}
|
1332
1332
|
print(t) {
|
1333
|
-
const e = new
|
1333
|
+
const e = new Nt(
|
1334
1334
|
I.System,
|
1335
1335
|
{ name: this.name },
|
1336
1336
|
[
|
@@ -1345,12 +1345,12 @@ class Cn {
|
|
1345
1345
|
return this.print$.asObservable();
|
1346
1346
|
}
|
1347
1347
|
}
|
1348
|
-
class
|
1348
|
+
class Qo {
|
1349
1349
|
constructor(t, e) {
|
1350
1350
|
this.name = t, this.component = e, this.print$ = new x(), this.typingState$ = new P(!1), this.complete$ = new x(), this.system = this.createSystem(), this.rehydrate$ = new x(), this.saveToCurrentSession$ = new x(), this.showChatOverlay$ = new P(!1), this.onComplete = () => this.complete$.asObservable();
|
1351
1351
|
}
|
1352
1352
|
connect(t = {}) {
|
1353
|
-
this.complete$.pipe(
|
1353
|
+
this.complete$.pipe(he(1)).subscribe(() => {
|
1354
1354
|
this.disconnected();
|
1355
1355
|
});
|
1356
1356
|
}
|
@@ -1362,7 +1362,7 @@ class Vo {
|
|
1362
1362
|
this.print(I.User, t.text);
|
1363
1363
|
}
|
1364
1364
|
print(t, e) {
|
1365
|
-
const r = new
|
1365
|
+
const r = new Nt(
|
1366
1366
|
t,
|
1367
1367
|
{
|
1368
1368
|
name: ""
|
@@ -1379,19 +1379,19 @@ class Vo {
|
|
1379
1379
|
return this.print$.next(t), t;
|
1380
1380
|
}
|
1381
1381
|
createAgent(t) {
|
1382
|
-
const e = new
|
1382
|
+
const e = new xn(t);
|
1383
1383
|
return e.subscribe().subscribe((r) => {
|
1384
1384
|
this.playNotification(), this.printEntry(r);
|
1385
1385
|
}), e;
|
1386
1386
|
}
|
1387
1387
|
createUser(t) {
|
1388
|
-
const e = new
|
1388
|
+
const e = new _n(t);
|
1389
1389
|
return e.subscribe().subscribe((r) => {
|
1390
1390
|
this.printEntry(r);
|
1391
1391
|
}), e;
|
1392
1392
|
}
|
1393
1393
|
createSystem() {
|
1394
|
-
const t = new
|
1394
|
+
const t = new Sn();
|
1395
1395
|
return t.subscribe().subscribe((e) => {
|
1396
1396
|
this.printEntry(e);
|
1397
1397
|
}), t;
|
@@ -1427,17 +1427,17 @@ class Vo {
|
|
1427
1427
|
* Copyright 2019 Google LLC
|
1428
1428
|
* SPDX-License-Identifier: BSD-3-Clause
|
1429
1429
|
*/
|
1430
|
-
const
|
1430
|
+
const Et = globalThis, _e = Et.ShadowRoot && (Et.ShadyCSS === void 0 || Et.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Se = Symbol(), Ye = /* @__PURE__ */ new WeakMap();
|
1431
1431
|
let Ks = class {
|
1432
1432
|
constructor(t, e, r) {
|
1433
|
-
if (this._$cssResult$ = !0, r !==
|
1433
|
+
if (this._$cssResult$ = !0, r !== Se)
|
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 (_e && t === void 0) {
|
1441
1441
|
const r = e !== void 0 && e.length === 1;
|
1442
1442
|
r && (t = Ye.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), r && Ye.set(e, t));
|
1443
1443
|
}
|
@@ -1447,7 +1447,7 @@ let Ks = class {
|
|
1447
1447
|
return this.cssText;
|
1448
1448
|
}
|
1449
1449
|
};
|
1450
|
-
const
|
1450
|
+
const Cn = (s) => new Ks(typeof s == "string" ? s : s + "", void 0, Se), S = (s, ...t) => {
|
1451
1451
|
const e = s.length === 1 ? s[0] : t.reduce((r, n, i) => r + ((o) => {
|
1452
1452
|
if (o._$cssResult$ === !0)
|
1453
1453
|
return o.cssText;
|
@@ -1455,30 +1455,30 @@ const An = (s) => new Ks(typeof s == "string" ? s : s + "", void 0, Ce), S = (s,
|
|
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
|
})(n) + s[i + 1], s[0]);
|
1458
|
-
return new Ks(e, s,
|
1459
|
-
},
|
1460
|
-
if (
|
1458
|
+
return new Ks(e, s, Se);
|
1459
|
+
}, An = (s, t) => {
|
1460
|
+
if (_e)
|
1461
1461
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
1462
1462
|
else
|
1463
1463
|
for (const e of t) {
|
1464
|
-
const r = document.createElement("style"), n =
|
1464
|
+
const r = document.createElement("style"), n = Et.litNonce;
|
1465
1465
|
n !== void 0 && r.setAttribute("nonce", n), r.textContent = e.cssText, s.appendChild(r);
|
1466
1466
|
}
|
1467
|
-
}, qe =
|
1467
|
+
}, qe = _e ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
1468
1468
|
let e = "";
|
1469
1469
|
for (const r of t.cssRules)
|
1470
1470
|
e += r.cssText;
|
1471
|
-
return
|
1471
|
+
return Cn(e);
|
1472
1472
|
})(s) : s;
|
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: En, defineProperty: kn, getOwnPropertyDescriptor: On, getOwnPropertyNames: Ln, getOwnPropertySymbols: Tn, getPrototypeOf: Pn } = Object, R = globalThis, Ke = R.trustedTypes, Mn = Ke ? Ke.emptyScript : "", Qt = R.reactiveElementPolyfillSupport, at = (s, t) => s, Tt = { toAttribute(s, t) {
|
1479
1479
|
switch (t) {
|
1480
1480
|
case Boolean:
|
1481
|
-
s = s ?
|
1481
|
+
s = s ? Mn : null;
|
1482
1482
|
break;
|
1483
1483
|
case Object:
|
1484
1484
|
case Array:
|
@@ -1503,7 +1503,7 @@ const { is: kn, defineProperty: On, getOwnPropertyDescriptor: Ln, getOwnProperty
|
|
1503
1503
|
}
|
1504
1504
|
}
|
1505
1505
|
return e;
|
1506
|
-
} },
|
1506
|
+
} }, Ce = (s, t) => !En(s, t), Ge = { attribute: !0, type: String, converter: Tt, reflect: !1, hasChanged: Ce };
|
1507
1507
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), R.litPropertyMetadata ?? (R.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1508
1508
|
let K = class extends HTMLElement {
|
1509
1509
|
static addInitializer(t) {
|
@@ -1515,11 +1515,11 @@ let K = class extends HTMLElement {
|
|
1515
1515
|
static createProperty(t, e = Ge) {
|
1516
1516
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
1517
1517
|
const r = Symbol(), n = this.getPropertyDescriptor(t, r, e);
|
1518
|
-
n !== void 0 &&
|
1518
|
+
n !== void 0 && kn(this.prototype, t, n);
|
1519
1519
|
}
|
1520
1520
|
}
|
1521
1521
|
static getPropertyDescriptor(t, e, r) {
|
1522
|
-
const { get: n, set: i } =
|
1522
|
+
const { get: n, set: i } = On(this.prototype, t) ?? { get() {
|
1523
1523
|
return this[e];
|
1524
1524
|
}, set(o) {
|
1525
1525
|
this[e] = o;
|
@@ -1537,14 +1537,14 @@ let K = class extends HTMLElement {
|
|
1537
1537
|
static _$Ei() {
|
1538
1538
|
if (this.hasOwnProperty(at("elementProperties")))
|
1539
1539
|
return;
|
1540
|
-
const t =
|
1540
|
+
const t = Pn(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(at("finalized")))
|
1545
1545
|
return;
|
1546
1546
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(at("properties"))) {
|
1547
|
-
const e = this.properties, r = [...
|
1547
|
+
const e = this.properties, r = [...Ln(e), ...Tn(e)];
|
1548
1548
|
for (const n of r)
|
1549
1549
|
this.createProperty(n, e[n]);
|
1550
1550
|
}
|
@@ -1599,7 +1599,7 @@ let K = class extends HTMLElement {
|
|
1599
1599
|
}
|
1600
1600
|
createRenderRoot() {
|
1601
1601
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1602
|
-
return
|
1602
|
+
return An(t, this.constructor.elementStyles), t;
|
1603
1603
|
}
|
1604
1604
|
connectedCallback() {
|
1605
1605
|
var t;
|
@@ -1624,7 +1624,7 @@ let K = class extends HTMLElement {
|
|
1624
1624
|
var i;
|
1625
1625
|
const r = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, r);
|
1626
1626
|
if (n !== void 0 && r.reflect === !0) {
|
1627
|
-
const o = (((i = r.converter) == null ? void 0 : i.toAttribute) !== void 0 ? r.converter :
|
1627
|
+
const o = (((i = r.converter) == null ? void 0 : i.toAttribute) !== void 0 ? r.converter : Tt).toAttribute(e, r.type);
|
1628
1628
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
1629
1629
|
}
|
1630
1630
|
}
|
@@ -1632,13 +1632,13 @@ let K = class extends HTMLElement {
|
|
1632
1632
|
var i;
|
1633
1633
|
const r = this.constructor, n = r._$Eh.get(t);
|
1634
1634
|
if (n !== void 0 && this._$Em !== n) {
|
1635
|
-
const o = r.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? o.converter :
|
1635
|
+
const o = r.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((i = o.converter) == null ? void 0 : i.fromAttribute) !== void 0 ? o.converter : Tt;
|
1636
1636
|
this._$Em = n, this[n] = a.fromAttribute(e, o.type), this._$Em = null;
|
1637
1637
|
}
|
1638
1638
|
}
|
1639
1639
|
requestUpdate(t, e, r) {
|
1640
1640
|
if (t !== void 0) {
|
1641
|
-
if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ??
|
1641
|
+
if (r ?? (r = this.constructor.getPropertyOptions(t)), !(r.hasChanged ?? Ce)(this[t], e))
|
1642
1642
|
return;
|
1643
1643
|
this.P(t, e, r);
|
1644
1644
|
}
|
@@ -1716,21 +1716,21 @@ let K = class extends HTMLElement {
|
|
1716
1716
|
firstUpdated(t) {
|
1717
1717
|
}
|
1718
1718
|
};
|
1719
|
-
K.elementStyles = [], K.shadowRootOptions = { mode: "open" }, K[at("elementProperties")] = /* @__PURE__ */ new Map(), K[at("finalized")] = /* @__PURE__ */ new Map(),
|
1719
|
+
K.elementStyles = [], K.shadowRootOptions = { mode: "open" }, K[at("elementProperties")] = /* @__PURE__ */ new Map(), K[at("finalized")] = /* @__PURE__ */ new Map(), Qt == null || Qt({ ReactiveElement: K }), (R.reactiveElementVersions ?? (R.reactiveElementVersions = [])).push("2.0.4");
|
1720
1720
|
/**
|
1721
1721
|
* @license
|
1722
1722
|
* Copyright 2017 Google LLC
|
1723
1723
|
* SPDX-License-Identifier: BSD-3-Clause
|
1724
1724
|
*/
|
1725
|
-
const lt = globalThis,
|
1726
|
-
\f\r]`, ot = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Je = /-->/g, Qe = />/g, N = RegExp(`>|${
|
1727
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ve = /'/g, ts = /"/g, Qs = /^(?:script|style|textarea|title)$/i,
|
1725
|
+
const lt = globalThis, Pt = lt.trustedTypes, Xe = Pt ? Pt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Gs = "$lit$", U = `lit$${(Math.random() + "").slice(9)}$`, Xs = "?" + U, Un = `<${Xs}>`, W = document, dt = () => W.createComment(""), pt = (s) => s === null || typeof s != "object" && typeof s != "function", Js = Array.isArray, In = (s) => Js(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", Vt = `[
|
1726
|
+
\f\r]`, ot = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Je = /-->/g, Qe = />/g, N = RegExp(`>|${Vt}(?:([^\\s"'>=/]+)(${Vt}*=${Vt}*(?:[^
|
1727
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ve = /'/g, ts = /"/g, Qs = /^(?:script|style|textarea|title)$/i, Rn = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), g = Rn(1), H = Symbol.for("lit-noChange"), f = Symbol.for("lit-nothing"), es = /* @__PURE__ */ new WeakMap(), z = W.createTreeWalker(W, 129);
|
1728
1728
|
function Vs(s, t) {
|
1729
1729
|
if (!Array.isArray(s) || !s.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 jn = (s, t) => {
|
1734
1734
|
const e = s.length - 1, r = [];
|
1735
1735
|
let n, i = t === 2 ? "<svg>" : "", o = ot;
|
1736
1736
|
for (let a = 0; a < e; a++) {
|
@@ -1739,7 +1739,7 @@ const Hn = (s, t) => {
|
|
1739
1739
|
for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); )
|
1740
1740
|
d = o.lastIndex, o === ot ? h[1] === "!--" ? o = Je : h[1] !== void 0 ? o = Qe : h[2] !== void 0 ? (Qs.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = N) : h[3] !== void 0 && (o = N) : o === N ? h[0] === ">" ? (o = n ?? ot, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? N : h[3] === '"' ? ts : Ve) : o === ts || o === Ve ? o = N : o === Je || o === Qe ? o = ot : (o = N, n = void 0);
|
1741
1741
|
const p = o === N && s[a + 1].startsWith("/>") ? " " : "";
|
1742
|
-
i += o === ot ? l +
|
1742
|
+
i += o === ot ? l + Un : u >= 0 ? (r.push(c), l.slice(0, u) + Gs + l.slice(u) + U + p) : l + U + (u === -2 ? a : p);
|
1743
1743
|
}
|
1744
1744
|
return [Vs(s, i + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), r];
|
1745
1745
|
};
|
@@ -1748,7 +1748,7 @@ class ft {
|
|
1748
1748
|
let n;
|
1749
1749
|
this.parts = [];
|
1750
1750
|
let i = 0, o = 0;
|
1751
|
-
const a = t.length - 1, l = this.parts, [c, h] =
|
1751
|
+
const a = t.length - 1, l = this.parts, [c, h] = jn(t, e);
|
1752
1752
|
if (this.el = ft.createElement(c, r), z.currentNode = this.el.content, e === 2) {
|
1753
1753
|
const u = this.el.content.firstChild;
|
1754
1754
|
u.replaceWith(...u.childNodes);
|
@@ -1759,13 +1759,13 @@ class ft {
|
|
1759
1759
|
for (const u of n.getAttributeNames())
|
1760
1760
|
if (u.endsWith(Gs)) {
|
1761
1761
|
const d = h[o++], p = n.getAttribute(u).split(U), $ = /([.?@])?(.*)/.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] === "." ? Dn : $[1] === "?" ? Nn : $[1] === "@" ? Bn : Bt }), n.removeAttribute(u);
|
1763
1763
|
} else
|
1764
1764
|
u.startsWith(U) && (l.push({ type: 6, index: i }), n.removeAttribute(u));
|
1765
1765
|
if (Qs.test(n.tagName)) {
|
1766
1766
|
const u = n.textContent.split(U), d = u.length - 1;
|
1767
1767
|
if (d > 0) {
|
1768
|
-
n.textContent =
|
1768
|
+
n.textContent = Pt ? Pt.emptyScript : "";
|
1769
1769
|
for (let p = 0; p < d; p++)
|
1770
1770
|
n.append(u[p], dt()), z.nextNode(), l.push({ type: 2, index: ++i });
|
1771
1771
|
n.append(u[d], dt());
|
@@ -1795,7 +1795,7 @@ function rt(s, t, e = s, r) {
|
|
1795
1795
|
const i = pt(t) ? void 0 : t._$litDirective$;
|
1796
1796
|
return (n == null ? void 0 : n.constructor) !== i && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), i === void 0 ? n = void 0 : (n = new i(s), n._$AT(s, e, r)), r !== void 0 ? (e._$Co ?? (e._$Co = []))[r] = n : e._$Cl = n), n !== void 0 && (t = rt(s, n._$AS(s, t.values), n, r)), t;
|
1797
1797
|
}
|
1798
|
-
class
|
1798
|
+
class Hn {
|
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 Dn {
|
|
1812
1812
|
for (; l !== void 0; ) {
|
1813
1813
|
if (o === l.index) {
|
1814
1814
|
let c;
|
1815
|
-
l.type === 2 ? c = new
|
1815
|
+
l.type === 2 ? c = new yt(i, i.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(i, l.name, l.strings, this, t) : l.type === 6 && (c = new zn(i, this, t)), this._$AV.push(c), l = r[++a];
|
1816
1816
|
}
|
1817
1817
|
o !== (l == null ? void 0 : l.index) && (i = z.nextNode(), o++);
|
1818
1818
|
}
|
@@ -1824,7 +1824,7 @@ class Dn {
|
|
1824
1824
|
r !== void 0 && (r.strings !== void 0 ? (r._$AI(t, r, e), e += r.strings.length - 2) : r._$AI(t[e])), e++;
|
1825
1825
|
}
|
1826
1826
|
}
|
1827
|
-
class
|
1827
|
+
class yt {
|
1828
1828
|
get _$AU() {
|
1829
1829
|
var t;
|
1830
1830
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -1844,7 +1844,7 @@ class bt {
|
|
1844
1844
|
return this._$AB;
|
1845
1845
|
}
|
1846
1846
|
_$AI(t, e = this) {
|
1847
|
-
t = rt(this, t, e), pt(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
1847
|
+
t = rt(this, t, e), pt(t) ? t === f || t == null || t === "" ? (this._$AH !== f && this._$AR(), this._$AH = f) : t !== this._$AH && t !== H && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : In(t) ? this.k(t) : this._(t);
|
1848
1848
|
}
|
1849
1849
|
S(t) {
|
1850
1850
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -1861,7 +1861,7 @@ class bt {
|
|
1861
1861
|
if (((i = this._$AH) == null ? void 0 : i._$AD) === n)
|
1862
1862
|
this._$AH.p(e);
|
1863
1863
|
else {
|
1864
|
-
const o = new
|
1864
|
+
const o = new Hn(n, this), a = o.u(this.options);
|
1865
1865
|
o.p(e), this.T(a), this._$AH = o;
|
1866
1866
|
}
|
1867
1867
|
}
|
@@ -1874,7 +1874,7 @@ class bt {
|
|
1874
1874
|
const e = this._$AH;
|
1875
1875
|
let r, n = 0;
|
1876
1876
|
for (const i of t)
|
1877
|
-
n === e.length ? e.push(r = new
|
1877
|
+
n === e.length ? e.push(r = new yt(this.S(dt()), this.S(dt()), this, this.options)) : r = e[n], r._$AI(i), n++;
|
1878
1878
|
n < e.length && (this._$AR(r && r._$AB.nextSibling, n), e.length = n);
|
1879
1879
|
}
|
1880
1880
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -1889,7 +1889,7 @@ class bt {
|
|
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 Bt {
|
1893
1893
|
get tagName() {
|
1894
1894
|
return this.element.tagName;
|
1895
1895
|
}
|
@@ -1916,7 +1916,7 @@ class zt {
|
|
1916
1916
|
t === f ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
1917
1917
|
}
|
1918
1918
|
}
|
1919
|
-
class
|
1919
|
+
class Dn extends Bt {
|
1920
1920
|
constructor() {
|
1921
1921
|
super(...arguments), this.type = 3;
|
1922
1922
|
}
|
@@ -1924,7 +1924,7 @@ class Nn extends zt {
|
|
1924
1924
|
this.element[this.name] = t === f ? void 0 : t;
|
1925
1925
|
}
|
1926
1926
|
}
|
1927
|
-
let
|
1927
|
+
let Nn = class extends Bt {
|
1928
1928
|
constructor() {
|
1929
1929
|
super(...arguments), this.type = 4;
|
1930
1930
|
}
|
@@ -1932,7 +1932,7 @@ let Bn = class extends zt {
|
|
1932
1932
|
this.element.toggleAttribute(this.name, !!t && t !== f);
|
1933
1933
|
}
|
1934
1934
|
};
|
1935
|
-
class
|
1935
|
+
class Bn extends Bt {
|
1936
1936
|
constructor(t, e, r, n, i) {
|
1937
1937
|
super(t, e, r, n, i), this.type = 5;
|
1938
1938
|
}
|
@@ -1947,7 +1947,7 @@ class zn extends zt {
|
|
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 zn {
|
1951
1951
|
constructor(t, e, r) {
|
1952
1952
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = r;
|
1953
1953
|
}
|
@@ -1958,14 +1958,14 @@ class Fn {
|
|
1958
1958
|
rt(this, t);
|
1959
1959
|
}
|
1960
1960
|
}
|
1961
|
-
const
|
1962
|
-
|
1963
|
-
const
|
1961
|
+
const te = lt.litHtmlPolyfillSupport;
|
1962
|
+
te == null || te(ft, yt), (lt.litHtmlVersions ?? (lt.litHtmlVersions = [])).push("3.1.2");
|
1963
|
+
const Fn = (s, t, e) => {
|
1964
1964
|
const r = (e == null ? void 0 : e.renderBefore) ?? t;
|
1965
1965
|
let n = r._$litPart$;
|
1966
1966
|
if (n === void 0) {
|
1967
1967
|
const i = (e == null ? void 0 : e.renderBefore) ?? null;
|
1968
|
-
r._$litPart$ = n = new
|
1968
|
+
r._$litPart$ = n = new yt(t.insertBefore(dt(), i), i, void 0, e ?? {});
|
1969
1969
|
}
|
1970
1970
|
return n._$AI(s), n;
|
1971
1971
|
};
|
@@ -1985,7 +1985,7 @@ let b = class extends K {
|
|
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 = Fn(e, this.renderRoot, this.renderOptions);
|
1989
1989
|
}
|
1990
1990
|
connectedCallback() {
|
1991
1991
|
var t;
|
@@ -2001,10 +2001,10 @@ let b = class extends K {
|
|
2001
2001
|
};
|
2002
2002
|
var Cs;
|
2003
2003
|
b._$litElement$ = !0, b.finalized = !0, (Cs = globalThis.litElementHydrateSupport) == null || Cs.call(globalThis, { LitElement: b });
|
2004
|
-
const
|
2005
|
-
|
2004
|
+
const ee = globalThis.litElementPolyfillSupport;
|
2005
|
+
ee == null || ee({ LitElement: b });
|
2006
2006
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2007
|
-
const
|
2007
|
+
const Wn = { 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>' }, Zn = { 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>' }, Yn = { 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>' }, qn = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Kn = { name: "close-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="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, ss = { 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>' }, Gn = { 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>' }, Xn = { 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>' }, rs = { 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>' }, G = {
|
2008
2008
|
allRenderFn: !1,
|
2009
2009
|
cmpDidLoad: !0,
|
2010
2010
|
cmpDidUnload: !1,
|
@@ -2088,8 +2088,8 @@ const Zn = { 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 X, tr,
|
2092
|
-
const
|
2091
|
+
let X, tr, zt, er = !1, Mt = !1, Ae = !1, C = !1, ns = null, de = !1;
|
2092
|
+
const Ft = typeof window < "u" ? window : {}, O = Ft.document || { head: {} }, sr = Ft.HTMLElement || class {
|
2093
2093
|
}, w = {
|
2094
2094
|
$flags$: 0,
|
2095
2095
|
$resourcesUrl$: "",
|
@@ -2098,7 +2098,7 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2098
2098
|
ael: (s, t, e, r) => s.addEventListener(t, e, r),
|
2099
2099
|
rel: (s, t, e, r) => s.removeEventListener(t, e, r),
|
2100
2100
|
ce: (s, t) => new CustomEvent(s, t)
|
2101
|
-
},
|
2101
|
+
}, Jn = /* @__PURE__ */ (() => {
|
2102
2102
|
let s = !1;
|
2103
2103
|
try {
|
2104
2104
|
O.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2109,7 +2109,7 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2109
2109
|
} catch {
|
2110
2110
|
}
|
2111
2111
|
return s;
|
2112
|
-
})(),
|
2112
|
+
})(), Qn = (s) => Promise.resolve(s), Vn = /* @__PURE__ */ (() => {
|
2113
2113
|
try {
|
2114
2114
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2115
2115
|
} catch {
|
@@ -2117,24 +2117,24 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2117
2117
|
return !1;
|
2118
2118
|
})(), rr = (s, t, e, r) => {
|
2119
2119
|
e && e.map(([n, i, o]) => {
|
2120
|
-
const a =
|
2120
|
+
const a = ei(s, n), l = ti(t, o), c = si(n);
|
2121
2121
|
w.ael(a, i, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => w.rel(a, i, l, c));
|
2122
2122
|
});
|
2123
|
-
},
|
2123
|
+
}, ti = (s, t) => (e) => {
|
2124
2124
|
try {
|
2125
2125
|
G.lazyLoad || s.$hostElement$[t](e);
|
2126
2126
|
} catch (r) {
|
2127
|
-
|
2127
|
+
bt(r);
|
2128
2128
|
}
|
2129
|
-
},
|
2129
|
+
}, ei = (s, t) => t & 4 ? O : t & 8 ? Ft : t & 16 ? O.body : s, si = (s) => Jn ? {
|
2130
2130
|
passive: (s & 1) !== 0,
|
2131
2131
|
capture: (s & 2) !== 0
|
2132
2132
|
} : (s & 2) !== 0, is = "http://www.w3.org/1999/xlink", Z = (s, t = "") => () => {
|
2133
|
-
}, os = /* @__PURE__ */ new WeakMap(),
|
2134
|
-
let r =
|
2135
|
-
|
2136
|
-
},
|
2137
|
-
let n = nr(t, e), i =
|
2133
|
+
}, os = /* @__PURE__ */ new WeakMap(), ri = (s, t, e) => {
|
2134
|
+
let r = Rt.get(s);
|
2135
|
+
Vn && e ? (r = r || new CSSStyleSheet(), r.replace(t)) : r = t, Rt.set(s, r);
|
2136
|
+
}, ni = (s, t, e, r) => {
|
2137
|
+
let n = nr(t, e), i = Rt.get(n);
|
2138
2138
|
if (s = s.nodeType === 11 ? s : O, i)
|
2139
2139
|
if (typeof i == "string") {
|
2140
2140
|
s = s.head || s;
|
@@ -2143,14 +2143,14 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2143
2143
|
} else
|
2144
2144
|
s.adoptedStyleSheets.includes(i) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, i]);
|
2145
2145
|
return n;
|
2146
|
-
},
|
2147
|
-
const t = s.$cmpMeta$, e = s.$hostElement$, r = t.$flags$, n = Z("attachStyles", t.$tagName$), i =
|
2146
|
+
}, ii = (s) => {
|
2147
|
+
const t = s.$cmpMeta$, e = s.$hostElement$, r = t.$flags$, n = Z("attachStyles", t.$tagName$), i = ni(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, s.$modeName$);
|
2148
2148
|
r & 10 && (e["s-sc"] = i, e.classList.add(i + "-h"), r & 2 && e.classList.add(i + "-s")), n();
|
2149
|
-
}, nr = (s, t) => "sc-" + (t && s.$flags$ & 32 ? s.$tagName$ + "-" + t : s.$tagName$),
|
2149
|
+
}, nr = (s, t) => "sc-" + (t && s.$flags$ & 32 ? s.$tagName$ + "-" + t : s.$tagName$), oi = (s) => Ui.map((t) => t(s)).find((t) => !!t), as = {}, ai = "http://www.w3.org/2000/svg", li = "http://www.w3.org/1999/xhtml", ci = (s) => s != null, Ee = (s) => (s = typeof s, s === "object" || s === "function"), tt = (s, t, ...e) => {
|
2150
2150
|
let r = null, n = null, i = null, o = !1, a = !1, l = [];
|
2151
2151
|
const c = (u) => {
|
2152
2152
|
for (let d = 0; d < u.length; d++)
|
2153
|
-
r = u[d], Array.isArray(r) ? c(r) : r != null && typeof r != "boolean" && ((o = typeof s != "function" && !
|
2153
|
+
r = u[d], Array.isArray(r) ? c(r) : r != null && typeof r != "boolean" && ((o = typeof s != "function" && !Ee(r)) && (r = String(r)), o && a ? l[l.length - 1].$text$ += r : l.push(o ? Ut(null, r) : r), a = o);
|
2154
2154
|
};
|
2155
2155
|
if (c(e), t) {
|
2156
2156
|
t.key && (n = t.key), t.name && (i = t.name);
|
@@ -2160,10 +2160,10 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2160
2160
|
}
|
2161
2161
|
}
|
2162
2162
|
if (typeof s == "function")
|
2163
|
-
return s(t === null ? {} : t, l,
|
2164
|
-
const h =
|
2163
|
+
return s(t === null ? {} : t, l, ui);
|
2164
|
+
const h = Ut(s, null);
|
2165
2165
|
return h.$attrs$ = t, l.length > 0 && (h.$children$ = l), h.$key$ = n, h.$name$ = i, h;
|
2166
|
-
},
|
2166
|
+
}, Ut = (s, t) => {
|
2167
2167
|
const e = {
|
2168
2168
|
$flags$: 0,
|
2169
2169
|
$tag$: s,
|
@@ -2172,9 +2172,9 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2172
2172
|
$children$: null
|
2173
2173
|
};
|
2174
2174
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
2175
|
-
},
|
2175
|
+
}, ke = {}, hi = (s) => s && s.$tag$ === ke, ui = {
|
2176
2176
|
forEach: (s, t) => s.map(ls).forEach(t),
|
2177
|
-
map: (s, t) => s.map(ls).map(t).map(
|
2177
|
+
map: (s, t) => s.map(ls).map(t).map(di)
|
2178
2178
|
}, ls = (s) => ({
|
2179
2179
|
vattrs: s.$attrs$,
|
2180
2180
|
vchildren: s.$children$,
|
@@ -2182,12 +2182,12 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2182
2182
|
vname: s.$name$,
|
2183
2183
|
vtag: s.$tag$,
|
2184
2184
|
vtext: s.$text$
|
2185
|
-
}),
|
2185
|
+
}), di = (s) => {
|
2186
2186
|
if (typeof s.vtag == "function") {
|
2187
2187
|
const e = Object.assign({}, s.vattrs);
|
2188
2188
|
return s.vkey && (e.key = s.vkey), s.vname && (e.name = s.vname), tt(s.vtag, e, ...s.vchildren || []);
|
2189
2189
|
}
|
2190
|
-
const t =
|
2190
|
+
const t = Ut(s.vtag, s.vtext);
|
2191
2191
|
return t.$attrs$ = s.vattrs, t.$children$ = s.vchildren, t.$key$ = s.vkey, t.$name$ = s.vname, t;
|
2192
2192
|
}, cs = (s, t, e, r, n, i) => {
|
2193
2193
|
if (e !== r) {
|
@@ -2204,9 +2204,9 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2204
2204
|
if (t === "ref")
|
2205
2205
|
r && r(s);
|
2206
2206
|
else if (!s.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
2207
|
-
t[2] === "-" ? t = t.slice(3) : ps(
|
2207
|
+
t[2] === "-" ? t = t.slice(3) : ps(Ft, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && w.rel(s, t, e, !1), r && w.ael(s, t, r, !1);
|
2208
2208
|
else {
|
2209
|
-
const l =
|
2209
|
+
const l = Ee(r);
|
2210
2210
|
if ((o || l && r !== null) && !n)
|
2211
2211
|
try {
|
2212
2212
|
if (s.tagName.includes("-"))
|
@@ -2221,15 +2221,15 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2221
2221
|
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), r == null || r === !1 ? (r !== !1 || s.getAttribute(t) === "") && (c ? s.removeAttributeNS(is, t) : s.removeAttribute(t)) : (!o || i & 4 || n) && !l && (r = r === !0 ? "" : r, c ? s.setAttributeNS(is, t, r) : s.setAttribute(t, r));
|
2222
2222
|
}
|
2223
2223
|
}
|
2224
|
-
},
|
2224
|
+
}, pi = /\s/, hs = (s) => s ? s.split(pi) : [], ir = (s, t, e, r) => {
|
2225
2225
|
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, i = s && s.$attrs$ || as, o = t.$attrs$ || as;
|
2226
2226
|
for (r in i)
|
2227
2227
|
r in o || cs(n, r, i[r], void 0, e, t.$flags$);
|
2228
2228
|
for (r in o)
|
2229
2229
|
cs(n, r, i[r], o[r], e, t.$flags$);
|
2230
|
-
},
|
2230
|
+
}, It = (s, t, e, r) => {
|
2231
2231
|
let n = t.$children$[e], i = 0, o, a, l;
|
2232
|
-
if (er || (
|
2232
|
+
if (er || (Ae = !0, n.$tag$ === "slot" && (X && r.classList.add(X + "-s"), n.$flags$ |= n.$children$ ? (
|
2233
2233
|
// slot element has fallback content
|
2234
2234
|
2
|
2235
2235
|
) : (
|
@@ -2240,28 +2240,28 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2240
2240
|
else if (n.$flags$ & 1)
|
2241
2241
|
o = n.$elm$ = O.createTextNode("");
|
2242
2242
|
else {
|
2243
|
-
if (C || (C = n.$tag$ === "svg"), o = n.$elm$ = O.createElementNS(C ?
|
2243
|
+
if (C || (C = n.$tag$ === "svg"), o = n.$elm$ = O.createElementNS(C ? ai : li, n.$flags$ & 2 ? "slot-fb" : n.$tag$), C && n.$tag$ === "foreignObject" && (C = !1), ir(null, n, C), ci(X) && o["s-si"] !== X && o.classList.add(o["s-si"] = X), n.$children$)
|
2244
2244
|
for (i = 0; i < n.$children$.length; ++i)
|
2245
|
-
a =
|
2245
|
+
a = It(s, n, i, o), a && o.appendChild(a);
|
2246
2246
|
n.$tag$ === "svg" ? C = !1 : o.tagName === "foreignObject" && (C = !0);
|
2247
2247
|
}
|
2248
|
-
return o["s-hn"] =
|
2248
|
+
return o["s-hn"] = zt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = tr, o["s-sn"] = n.$name$ || "", l = s && s.$children$ && s.$children$[e], l && l.$tag$ === n.$tag$ && s.$elm$ && gt(s.$elm$, !1)), o;
|
2249
2249
|
}, gt = (s, t) => {
|
2250
2250
|
w.$flags$ |= 1;
|
2251
2251
|
const e = s.childNodes;
|
2252
2252
|
for (let r = e.length - 1; r >= 0; r--) {
|
2253
2253
|
const n = e[r];
|
2254
|
-
n["s-hn"] !==
|
2254
|
+
n["s-hn"] !== zt && n["s-ol"] && (lr(n).insertBefore(n, Oe(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Ae = !0), t && gt(n, t);
|
2255
2255
|
}
|
2256
2256
|
w.$flags$ &= -2;
|
2257
2257
|
}, or = (s, t, e, r, n, i) => {
|
2258
2258
|
let o = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
2259
|
-
for (o.shadowRoot && o.tagName ===
|
2260
|
-
r[n] && (a =
|
2259
|
+
for (o.shadowRoot && o.tagName === zt && (o = o.shadowRoot); n <= i; ++n)
|
2260
|
+
r[n] && (a = It(null, e, n, s), a && (r[n].$elm$ = a, o.insertBefore(a, Oe(t))));
|
2261
2261
|
}, ar = (s, t, e, r, n) => {
|
2262
2262
|
for (; t <= e; ++t)
|
2263
|
-
(r = s[t]) && (n = r.$elm$, ur(r),
|
2264
|
-
},
|
2263
|
+
(r = s[t]) && (n = r.$elm$, ur(r), Mt = !0, n["s-ol"] ? n["s-ol"].remove() : gt(n, !0), n.remove());
|
2264
|
+
}, fi = (s, t, e, r) => {
|
2265
2265
|
let n = 0, i = 0, o = 0, a = 0, l = t.length - 1, c = t[0], h = t[l], u = r.length - 1, d = r[0], p = r[u], $, m;
|
2266
2266
|
for (; n <= l && i <= u; )
|
2267
2267
|
if (c == null)
|
@@ -2272,13 +2272,13 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2272
2272
|
d = r[++i];
|
2273
2273
|
else if (p == null)
|
2274
2274
|
p = r[--u];
|
2275
|
-
else if (
|
2275
|
+
else if (St(c, d))
|
2276
2276
|
J(c, d), c = t[++n], d = r[++i];
|
2277
|
-
else if (
|
2277
|
+
else if (St(h, p))
|
2278
2278
|
J(h, p), h = t[--l], p = r[--u];
|
2279
|
-
else if (
|
2279
|
+
else if (St(c, p))
|
2280
2280
|
(c.$tag$ === "slot" || p.$tag$ === "slot") && gt(c.$elm$.parentNode, !1), J(c, p), s.insertBefore(c.$elm$, h.$elm$.nextSibling), c = t[++n], p = r[--u];
|
2281
|
-
else if (
|
2281
|
+
else if (St(h, d))
|
2282
2282
|
(c.$tag$ === "slot" || p.$tag$ === "slot") && gt(h.$elm$.parentNode, !1), J(h, d), s.insertBefore(h.$elm$, c.$elm$), h = t[--l], d = r[++i];
|
2283
2283
|
else {
|
2284
2284
|
for (o = -1, a = n; a <= l; ++a)
|
@@ -2286,13 +2286,13 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.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$ ? $ = It(t && t[i], e, o, s) : (J(m, d), t[o] = void 0, $ = m.$elm$), d = r[++i]) : ($ = It(t && t[i], e, i, s), d = r[++i]), $ && lr(c.$elm$).insertBefore($, Oe(c.$elm$));
|
2290
2290
|
}
|
2291
2291
|
n > l ? or(s, r[u + 1] == null ? null : r[u + 1].$elm$, e, r, i, u) : i > u && ar(t, n, l);
|
2292
|
-
},
|
2292
|
+
}, St = (s, t) => s.$tag$ === t.$tag$ ? s.$tag$ === "slot" ? s.$name$ === t.$name$ : s.$key$ === t.$key$ : !1, Oe = (s) => s && s["s-ol"] || s, lr = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, J = (s, t) => {
|
2293
2293
|
const e = t.$elm$ = s.$elm$, r = s.$children$, n = t.$children$, i = t.$tag$, o = t.$text$;
|
2294
2294
|
let a;
|
2295
|
-
o === null ? (C = i === "svg" ? !0 : i === "foreignObject" ? !1 : C, i === "slot" || ir(s, t, C), r !== null && n !== null ?
|
2295
|
+
o === null ? (C = i === "svg" ? !0 : i === "foreignObject" ? !1 : C, i === "slot" || ir(s, t, C), r !== null && n !== null ? fi(e, r, t, n) : n !== null ? (s.$text$ !== null && (e.textContent = ""), or(e, null, t, n, 0, n.length - 1)) : r !== null && ar(r, 0, r.length - 1), C && i === "svg" && (C = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (e.data = o);
|
2296
2296
|
}, cr = (s) => {
|
2297
2297
|
let t = s.childNodes, e, r, n, i, o, a;
|
2298
2298
|
for (r = 0, n = t.length; r < n; r++)
|
@@ -2316,7 +2316,7 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.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 (r = e.parentNode.childNodes, n = t["s-sn"], o = r.length - 1; o >= 0; o--)
|
2319
|
-
e = r[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (us(e, n) ? (i = E.find((h) => h.$nodeToRelocate$ === e),
|
2319
|
+
e = r[o], !e["s-cn"] && !e["s-nr"] && e["s-hn"] !== t["s-hn"] && (us(e, n) ? (i = E.find((h) => h.$nodeToRelocate$ === e), Mt = !0, e["s-sn"] = e["s-sn"] || n, i ? i.$slotRefNode$ = t : E.push({
|
2320
2320
|
$slotRefNode$: t,
|
2321
2321
|
$nodeToRelocate$: e
|
2322
2322
|
}), e["s-sr"] && E.map((h) => {
|
@@ -2328,11 +2328,11 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2328
2328
|
}
|
2329
2329
|
}, us = (s, t) => s.nodeType === 1 ? s.getAttribute("slot") === null && t === "" || s.getAttribute("slot") === t : s["s-sn"] === t ? !0 : t === "", ur = (s) => {
|
2330
2330
|
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(ur);
|
2331
|
-
},
|
2332
|
-
const e = s.$hostElement$, r = s.$cmpMeta$, n = s.$vnode$ ||
|
2333
|
-
|
2331
|
+
}, gi = (s, t) => {
|
2332
|
+
const e = s.$hostElement$, r = s.$cmpMeta$, n = s.$vnode$ || Ut(null, null), i = hi(t) ? t : tt(null, null, t);
|
2333
|
+
zt = e.tagName, r.$attrsToReflect$ && (i.$attrs$ = i.$attrs$ || {}, r.$attrsToReflect$.map(([o, a]) => i.$attrs$[a] = e[o])), i.$tag$ = null, i.$flags$ |= 4, s.$vnode$ = i, i.$elm$ = n.$elm$ = e.shadowRoot || e, X = e["s-sc"], tr = e["s-cr"], er = (r.$flags$ & 1) !== 0, Mt = !1, J(n, i);
|
2334
2334
|
{
|
2335
|
-
if (w.$flags$ |= 1,
|
2335
|
+
if (w.$flags$ |= 1, Ae) {
|
2336
2336
|
hr(i.$elm$);
|
2337
2337
|
let o, a, l, c, h, u, d = 0;
|
2338
2338
|
for (; d < E.length; d++)
|
@@ -2348,39 +2348,39 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2348
2348
|
} else
|
2349
2349
|
a.nodeType === 1 && (a.hidden = !0);
|
2350
2350
|
}
|
2351
|
-
|
2351
|
+
Mt && cr(i.$elm$), w.$flags$ &= -2, E.length = 0;
|
2352
2352
|
}
|
2353
|
-
},
|
2354
|
-
const r =
|
2353
|
+
}, vi = (s) => s, mi = (s, t, e) => {
|
2354
|
+
const r = vi(s);
|
2355
2355
|
return {
|
2356
|
-
emit: (n) =>
|
2356
|
+
emit: (n) => $i(r, t, {
|
2357
2357
|
bubbles: !!(e & 4),
|
2358
2358
|
composed: !!(e & 2),
|
2359
2359
|
cancelable: !!(e & 1),
|
2360
2360
|
detail: n
|
2361
2361
|
})
|
2362
2362
|
};
|
2363
|
-
},
|
2363
|
+
}, $i = (s, t, e) => {
|
2364
2364
|
const r = w.ce(t, e);
|
2365
2365
|
return s.dispatchEvent(r), r;
|
2366
|
-
},
|
2367
|
-
}, dr = (s, t) => (s.$flags$ |= 16,
|
2366
|
+
}, yi = (s, t) => {
|
2367
|
+
}, dr = (s, t) => (s.$flags$ |= 16, yi(s, s.$ancestorComponent$), ji(() => bi(s, t))), bi = (s, t) => {
|
2368
2368
|
const e = s.$hostElement$, r = Z("scheduleUpdate", s.$cmpMeta$.$tagName$), n = e;
|
2369
2369
|
let i;
|
2370
|
-
return t ? i = et(n, "componentWillLoad") : i = et(n, "componentWillUpdate"), i = ds(i, () => et(n, "componentWillRender")), r(), ds(i, () =>
|
2371
|
-
},
|
2370
|
+
return t ? i = et(n, "componentWillLoad") : i = et(n, "componentWillUpdate"), i = ds(i, () => et(n, "componentWillRender")), r(), ds(i, () => wi(s, n, t));
|
2371
|
+
}, wi = async (s, t, e) => {
|
2372
2372
|
const r = s.$hostElement$, n = Z("update", s.$cmpMeta$.$tagName$);
|
2373
|
-
r["s-rc"], e &&
|
2373
|
+
r["s-rc"], e && ii(s);
|
2374
2374
|
const i = Z("render", s.$cmpMeta$.$tagName$);
|
2375
|
-
|
2376
|
-
},
|
2375
|
+
xi(s, t, r), i(), n(), _i(s);
|
2376
|
+
}, xi = (s, t, e) => {
|
2377
2377
|
try {
|
2378
|
-
ns = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (G.hasRenderFn || G.reflect) && (G.vdomRender || G.reflect) && (G.hydrateServerSide ||
|
2378
|
+
ns = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (G.hasRenderFn || G.reflect) && (G.vdomRender || G.reflect) && (G.hydrateServerSide || gi(s, t));
|
2379
2379
|
} catch (a) {
|
2380
|
-
|
2380
|
+
bt(a, s.$hostElement$);
|
2381
2381
|
}
|
2382
2382
|
return ns = null, null;
|
2383
|
-
},
|
2383
|
+
}, _i = (s) => {
|
2384
2384
|
const t = s.$cmpMeta$.$tagName$, e = s.$hostElement$, r = Z("postUpdate", t), n = e;
|
2385
2385
|
s.$ancestorComponent$, et(n, "componentDidRender"), s.$flags$ & 64 ? (et(n, "componentDidUpdate"), r()) : (s.$flags$ |= 64, et(n, "componentDidLoad"), r());
|
2386
2386
|
}, et = (s, t, e) => {
|
@@ -2388,11 +2388,11 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2388
2388
|
try {
|
2389
2389
|
return s[t](e);
|
2390
2390
|
} catch (r) {
|
2391
|
-
|
2391
|
+
bt(r);
|
2392
2392
|
}
|
2393
|
-
}, ds = (s, t) => s && s.then ? s.then(t) : t(),
|
2394
|
-
const n =
|
2395
|
-
e =
|
2393
|
+
}, ds = (s, t) => s && s.then ? s.then(t) : t(), Si = (s, t) => s != null && !Ee(s) ? t & 4 ? s === "false" ? !1 : s === "" || !!s : t & 2 ? parseFloat(s) : t & 1 ? String(s) : s : s, Ci = (s, t) => Wt(s).$instanceValues$.get(t), Ai = (s, t, e, r) => {
|
2394
|
+
const n = Wt(s), i = s, o = n.$instanceValues$.get(t), a = n.$flags$, l = i;
|
2395
|
+
e = Si(e, r.$members$[t][0]);
|
2396
2396
|
const c = Number.isNaN(o) && Number.isNaN(e);
|
2397
2397
|
if (e !== o && !c) {
|
2398
2398
|
n.$instanceValues$.set(t, e);
|
@@ -2403,7 +2403,7 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2403
2403
|
try {
|
2404
2404
|
l[d](e, o, t);
|
2405
2405
|
} catch (p) {
|
2406
|
-
|
2406
|
+
bt(p, i);
|
2407
2407
|
}
|
2408
2408
|
});
|
2409
2409
|
}
|
@@ -2414,17 +2414,17 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2414
2414
|
}
|
2415
2415
|
}
|
2416
2416
|
}
|
2417
|
-
},
|
2417
|
+
}, Ei = (s, t, e) => {
|
2418
2418
|
if (t.$members$) {
|
2419
2419
|
s.watchers && (t.$watchers$ = s.watchers);
|
2420
2420
|
const r = Object.entries(t.$members$), n = s.prototype;
|
2421
2421
|
r.map(([i, [o]]) => {
|
2422
2422
|
(o & 31 || o & 32) && Object.defineProperty(n, i, {
|
2423
2423
|
get() {
|
2424
|
-
return
|
2424
|
+
return Ci(this, i);
|
2425
2425
|
},
|
2426
2426
|
set(a) {
|
2427
|
-
|
2427
|
+
Ai(this, i, a, t);
|
2428
2428
|
},
|
2429
2429
|
configurable: !0,
|
2430
2430
|
enumerable: !0
|
@@ -2451,34 +2451,34 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2451
2451
|
}
|
2452
2452
|
}
|
2453
2453
|
return s;
|
2454
|
-
},
|
2454
|
+
}, ki = async (s, t, e, r, n) => {
|
2455
2455
|
if (!(t.$flags$ & 32) && (n = s.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
2456
2456
|
let o = n.style;
|
2457
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
2457
|
+
typeof o != "string" && (o = o[t.$modeName$ = oi(s)]);
|
2458
2458
|
const a = nr(e, t.$modeName$);
|
2459
|
-
if (!
|
2459
|
+
if (!Rt.has(a)) {
|
2460
2460
|
const l = Z("registerStyles", e.$tagName$);
|
2461
|
-
|
2461
|
+
ri(a, o, !!(e.$flags$ & 1)), l();
|
2462
2462
|
}
|
2463
2463
|
}
|
2464
2464
|
t.$ancestorComponent$, (() => dr(t, !0))();
|
2465
|
+
}, Oi = (s) => {
|
2465
2466
|
}, Li = (s) => {
|
2466
|
-
}, Ti = (s) => {
|
2467
2467
|
if (!(w.$flags$ & 1)) {
|
2468
|
-
const t =
|
2469
|
-
t.$flags$ & 1 ? (rr(s, t, e.$listeners$),
|
2468
|
+
const t = Wt(s), e = t.$cmpMeta$, r = Z("connectedCallback", e.$tagName$);
|
2469
|
+
t.$flags$ & 1 ? (rr(s, t, e.$listeners$), Oi(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && Ti(s), e.$members$ && Object.entries(e.$members$).map(([n, [i]]) => {
|
2470
2470
|
if (i & 31 && s.hasOwnProperty(n)) {
|
2471
2471
|
const o = s[n];
|
2472
2472
|
delete s[n], s[n] = o;
|
2473
2473
|
}
|
2474
|
-
}),
|
2474
|
+
}), ki(s, t, e)), r();
|
2475
2475
|
}
|
2476
|
-
},
|
2476
|
+
}, Ti = (s) => {
|
2477
2477
|
const t = s["s-cr"] = O.createComment("");
|
2478
2478
|
t["s-cn"] = !0, s.insertBefore(t, s.firstChild);
|
2479
|
-
},
|
2479
|
+
}, Pi = (s) => {
|
2480
2480
|
if (!(w.$flags$ & 1)) {
|
2481
|
-
const t =
|
2481
|
+
const t = Wt(s);
|
2482
2482
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
2483
2483
|
}
|
2484
2484
|
}, pr = (s, t) => {
|
@@ -2490,13 +2490,13 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2490
2490
|
const r = s.prototype.connectedCallback, n = s.prototype.disconnectedCallback;
|
2491
2491
|
return Object.assign(s.prototype, {
|
2492
2492
|
__registerHost() {
|
2493
|
-
|
2493
|
+
Mi(this, e);
|
2494
2494
|
},
|
2495
2495
|
connectedCallback() {
|
2496
|
-
|
2496
|
+
Li(this), r && r.call(this);
|
2497
2497
|
},
|
2498
2498
|
disconnectedCallback() {
|
2499
|
-
|
2499
|
+
Pi(this), n && n.call(this);
|
2500
2500
|
},
|
2501
2501
|
__attachShadow() {
|
2502
2502
|
this.attachShadow({
|
@@ -2504,8 +2504,8 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2504
2504
|
delegatesFocus: !!(e.$flags$ & 16)
|
2505
2505
|
});
|
2506
2506
|
}
|
2507
|
-
}), s.is = e.$tagName$,
|
2508
|
-
}, fr = /* @__PURE__ */ new WeakMap(),
|
2507
|
+
}), s.is = e.$tagName$, Ei(s, e);
|
2508
|
+
}, fr = /* @__PURE__ */ new WeakMap(), Wt = (s) => fr.get(s), Mi = (s, t) => {
|
2509
2509
|
const e = {
|
2510
2510
|
$flags$: 0,
|
2511
2511
|
$hostElement$: s,
|
@@ -2513,19 +2513,19 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2513
2513
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2514
2514
|
};
|
2515
2515
|
return rr(s, e, t.$listeners$), fr.set(s, e);
|
2516
|
-
}, ps = (s, t) => t in s,
|
2517
|
-
s.push(e),
|
2516
|
+
}, ps = (s, t) => t in s, bt = (s, t) => (0, console.error)(s, t), Rt = /* @__PURE__ */ new Map(), Ui = [], fs = [], gr = [], Ii = (s, t) => (e) => {
|
2517
|
+
s.push(e), de || (de = !0, t && w.$flags$ & 4 ? Ri(pe) : w.raf(pe));
|
2518
2518
|
}, gs = (s) => {
|
2519
2519
|
for (let t = 0; t < s.length; t++)
|
2520
2520
|
try {
|
2521
2521
|
s[t](performance.now());
|
2522
2522
|
} catch (e) {
|
2523
|
-
|
2523
|
+
bt(e);
|
2524
2524
|
}
|
2525
2525
|
s.length = 0;
|
2526
|
-
},
|
2527
|
-
gs(fs), gs(gr), (
|
2528
|
-
},
|
2526
|
+
}, pe = () => {
|
2527
|
+
gs(fs), gs(gr), (de = fs.length > 0) && w.raf(pe);
|
2528
|
+
}, Ri = (s) => Qn().then(s), ji = /* @__PURE__ */ Ii(gr, !0), Hi = (s = {}) => {
|
2529
2529
|
const { content: t = "", title: e, attributes: r = [] } = s;
|
2530
2530
|
let n = "", i = [
|
2531
2531
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2533,27 +2533,27 @@ const Wt = typeof window < "u" ? window : {}, O = Wt.document || { head: {} }, s
|
|
2533
2533
|
...r
|
2534
2534
|
];
|
2535
2535
|
return e && (n = `<title>${e}</title>`), `<svg ${i.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
2536
|
-
},
|
2537
|
-
function
|
2536
|
+
}, Di = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2537
|
+
function Ni(s) {
|
2538
2538
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2539
2539
|
}
|
2540
|
-
class
|
2540
|
+
class Bi {
|
2541
2541
|
constructor(t) {
|
2542
|
-
this.voca_component = t, this.voca_added =
|
2542
|
+
this.voca_component = t, this.voca_added = Ni(/* @__PURE__ */ new Date());
|
2543
2543
|
}
|
2544
2544
|
}
|
2545
|
-
const
|
2545
|
+
const zi = "telia-vst{display:none}", Fi = /* @__PURE__ */ pr(class extends sr {
|
2546
2546
|
constructor() {
|
2547
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2547
|
+
super(), this.__registerHost(), this.vocaInternalUStats = mi(this, "vocaInternalUStats", 7);
|
2548
2548
|
}
|
2549
2549
|
connectedCallback() {
|
2550
|
-
this.vocaInternalUStats.emit(new
|
2550
|
+
this.vocaInternalUStats.emit(new Bi(this.dataTrackingId));
|
2551
2551
|
}
|
2552
2552
|
render() {
|
2553
|
-
return tt(
|
2553
|
+
return tt(ke, null);
|
2554
2554
|
}
|
2555
2555
|
static get style() {
|
2556
|
-
return
|
2556
|
+
return zi;
|
2557
2557
|
}
|
2558
2558
|
}, [0, "telia-vst", {
|
2559
2559
|
dataTrackingId: [1, "data-tracking-id"]
|
@@ -2564,23 +2564,23 @@ function vr() {
|
|
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, Fi);
|
2568
2568
|
break;
|
2569
2569
|
}
|
2570
2570
|
});
|
2571
2571
|
}
|
2572
2572
|
vr();
|
2573
|
-
function
|
2573
|
+
function fe() {
|
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 Wi() {
|
2577
|
+
if (typeof fe().vocadsIcons !== void 0)
|
2578
|
+
return fe().vocadsIcons;
|
2579
2579
|
}
|
2580
|
-
function
|
2581
|
-
return
|
2580
|
+
function Zi() {
|
2581
|
+
return fe().vocadsIconsRegistered;
|
2582
2582
|
}
|
2583
|
-
const
|
2583
|
+
const Yi = ".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))}", qi = /* @__PURE__ */ pr(class extends sr {
|
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 qi = ".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 s =
|
2595
|
+
if (Zi() && this.name) {
|
2596
|
+
const s = Wi();
|
2597
2597
|
return s[this.name] ? s[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 qi = ".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 = Hi({
|
2608
|
+
content: Di(s),
|
2609
2609
|
attributes: t,
|
2610
2610
|
title: this.allyTitle
|
2611
2611
|
});
|
2612
|
-
return tt(
|
2612
|
+
return tt(ke, { class: `telia-icon telia-icon--${this.size}` }, tt("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), tt("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2613
2613
|
}
|
2614
2614
|
static get style() {
|
2615
|
-
return
|
2615
|
+
return Yi;
|
2616
2616
|
}
|
2617
2617
|
}, [0, "telia-icon", {
|
2618
2618
|
name: [1],
|
@@ -2621,13 +2621,13 @@ const qi = ".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 Ki() {
|
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, qi);
|
2631
2631
|
break;
|
2632
2632
|
case "telia-vst":
|
2633
2633
|
customElements.get(t) || vr();
|
@@ -2635,23 +2635,13 @@ function Gi() {
|
|
2635
2635
|
}
|
2636
2636
|
});
|
2637
2637
|
}
|
2638
|
-
|
2638
|
+
Ki();
|
2639
2639
|
/**
|
2640
2640
|
* @license
|
2641
2641
|
* Copyright 2017 Google LLC
|
2642
2642
|
* SPDX-License-Identifier: BSD-3-Clause
|
2643
2643
|
*/
|
2644
|
-
const Xi = (s
|
2645
|
-
e !== void 0 ? e.addInitializer(() => {
|
2646
|
-
customElements.define(s, t);
|
2647
|
-
}) : customElements.define(s, t);
|
2648
|
-
};
|
2649
|
-
/**
|
2650
|
-
* @license
|
2651
|
-
* Copyright 2017 Google LLC
|
2652
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
2653
|
-
*/
|
2654
|
-
const Ji = { attribute: !0, type: String, converter: Pt, reflect: !1, hasChanged: Ae }, Qi = (s = Ji, t, e) => {
|
2644
|
+
const Gi = { attribute: !0, type: String, converter: Tt, reflect: !1, hasChanged: Ce }, Xi = (s = Gi, t, e) => {
|
2655
2645
|
const { kind: r, metadata: n } = e;
|
2656
2646
|
let i = globalThis.litPropertyMetadata.get(n);
|
2657
2647
|
if (i === void 0 && globalThis.litPropertyMetadata.set(n, i = /* @__PURE__ */ new Map()), i.set(e.name, s), r === "accessor") {
|
@@ -2673,7 +2663,7 @@ const Ji = { attribute: !0, type: String, converter: Pt, reflect: !1, hasChanged
|
|
2673
2663
|
throw Error("Unsupported decorator location: " + r);
|
2674
2664
|
};
|
2675
2665
|
function y(s) {
|
2676
|
-
return (t, e) => typeof e == "object" ?
|
2666
|
+
return (t, e) => typeof e == "object" ? Xi(s, t, e) : ((r, n, i) => {
|
2677
2667
|
const o = n.hasOwnProperty(i);
|
2678
2668
|
return n.constructor.createProperty(i, o ? { ...r, wrapped: !0 } : r), o ? Object.getOwnPropertyDescriptor(n, i) : void 0;
|
2679
2669
|
})(s, t, e);
|
@@ -2691,14 +2681,14 @@ function A(s) {
|
|
2691
2681
|
* Copyright 2020 Google LLC
|
2692
2682
|
* SPDX-License-Identifier: BSD-3-Clause
|
2693
2683
|
*/
|
2694
|
-
const
|
2684
|
+
const Ji = (s) => s.strings === void 0;
|
2695
2685
|
/**
|
2696
2686
|
* @license
|
2697
2687
|
* Copyright 2017 Google LLC
|
2698
2688
|
* SPDX-License-Identifier: BSD-3-Clause
|
2699
2689
|
*/
|
2700
|
-
const
|
2701
|
-
let
|
2690
|
+
const Zt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Yt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
2691
|
+
let Le = class {
|
2702
2692
|
constructor(t) {
|
2703
2693
|
}
|
2704
2694
|
get _$AU() {
|
@@ -2727,7 +2717,7 @@ const ct = (s, t) => {
|
|
2727
2717
|
for (const n of e)
|
2728
2718
|
(r = n._$AO) == null || r.call(n, t, !1), ct(n, t);
|
2729
2719
|
return !0;
|
2730
|
-
},
|
2720
|
+
}, jt = (s) => {
|
2731
2721
|
let t, e;
|
2732
2722
|
do {
|
2733
2723
|
if ((t = s._$AM) === void 0)
|
@@ -2741,28 +2731,28 @@ const ct = (s, t) => {
|
|
2741
2731
|
t._$AN = e = /* @__PURE__ */ new Set();
|
2742
2732
|
else if (e.has(s))
|
2743
2733
|
break;
|
2744
|
-
e.add(s),
|
2734
|
+
e.add(s), to(t);
|
2745
2735
|
}
|
2746
2736
|
};
|
2747
|
-
function
|
2748
|
-
this._$AN !== void 0 ? (
|
2737
|
+
function Qi(s) {
|
2738
|
+
this._$AN !== void 0 ? (jt(this), this._$AM = s, mr(this)) : this._$AM = s;
|
2749
2739
|
}
|
2750
|
-
function
|
2740
|
+
function Vi(s, t = !1, e = 0) {
|
2751
2741
|
const r = this._$AH, n = this._$AN;
|
2752
2742
|
if (n !== void 0 && n.size !== 0)
|
2753
2743
|
if (t)
|
2754
2744
|
if (Array.isArray(r))
|
2755
2745
|
for (let i = e; i < r.length; i++)
|
2756
|
-
ct(r[i], !1),
|
2746
|
+
ct(r[i], !1), jt(r[i]);
|
2757
2747
|
else
|
2758
|
-
r != null && (ct(r, !1),
|
2748
|
+
r != null && (ct(r, !1), jt(r));
|
2759
2749
|
else
|
2760
2750
|
ct(this, s);
|
2761
2751
|
}
|
2762
|
-
const
|
2763
|
-
s.type ==
|
2752
|
+
const to = (s) => {
|
2753
|
+
s.type == Zt.CHILD && (s._$AP ?? (s._$AP = Vi), s._$AQ ?? (s._$AQ = Qi));
|
2764
2754
|
};
|
2765
|
-
let $r = class extends
|
2755
|
+
let $r = class extends Le {
|
2766
2756
|
constructor() {
|
2767
2757
|
super(...arguments), this._$AN = void 0;
|
2768
2758
|
}
|
@@ -2771,10 +2761,10 @@ let $r = class extends Te {
|
|
2771
2761
|
}
|
2772
2762
|
_$AO(t, e = !0) {
|
2773
2763
|
var r, n;
|
2774
|
-
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (n = this.disconnected) == null || n.call(this)), e && (ct(this, t),
|
2764
|
+
t !== this.isConnected && (this.isConnected = t, t ? (r = this.reconnected) == null || r.call(this) : (n = this.disconnected) == null || n.call(this)), e && (ct(this, t), jt(this));
|
2775
2765
|
}
|
2776
2766
|
setValue(t) {
|
2777
|
-
if (
|
2767
|
+
if (Ji(this._$Ct))
|
2778
2768
|
this._$Ct._$AI(t, this);
|
2779
2769
|
else {
|
2780
2770
|
const e = [...this._$Ct._$AH];
|
@@ -2791,10 +2781,10 @@ let $r = class extends Te {
|
|
2791
2781
|
* Copyright 2020 Google LLC
|
2792
2782
|
* SPDX-License-Identifier: BSD-3-Clause
|
2793
2783
|
*/
|
2794
|
-
const ht = () => new
|
2795
|
-
class
|
2784
|
+
const ht = () => new eo();
|
2785
|
+
class eo {
|
2796
2786
|
}
|
2797
|
-
const
|
2787
|
+
const se = /* @__PURE__ */ new WeakMap(), ut = Yt(class extends $r {
|
2798
2788
|
render(s) {
|
2799
2789
|
return f;
|
2800
2790
|
}
|
@@ -2806,14 +2796,14 @@ const re = /* @__PURE__ */ new WeakMap(), ut = qt(class extends $r {
|
|
2806
2796
|
rt(s) {
|
2807
2797
|
if (typeof this.Y == "function") {
|
2808
2798
|
const t = this.ht ?? globalThis;
|
2809
|
-
let e =
|
2810
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
2799
|
+
let e = se.get(t);
|
2800
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), se.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
2811
2801
|
} else
|
2812
2802
|
this.Y.value = s;
|
2813
2803
|
}
|
2814
2804
|
get lt() {
|
2815
2805
|
var s, t;
|
2816
|
-
return typeof this.Y == "function" ? (s =
|
2806
|
+
return typeof this.Y == "function" ? (s = se.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
2817
2807
|
}
|
2818
2808
|
disconnected() {
|
2819
2809
|
this.lt === this.ct && this.rt(void 0);
|
@@ -2827,10 +2817,10 @@ const re = /* @__PURE__ */ new WeakMap(), ut = qt(class extends $r {
|
|
2827
2817
|
* Copyright 2018 Google LLC
|
2828
2818
|
* SPDX-License-Identifier: BSD-3-Clause
|
2829
2819
|
*/
|
2830
|
-
const vt =
|
2820
|
+
const vt = Yt(class extends Le {
|
2831
2821
|
constructor(s) {
|
2832
2822
|
var t;
|
2833
|
-
if (super(s), s.type !==
|
2823
|
+
if (super(s), s.type !== Zt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
2834
2824
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
2835
2825
|
}
|
2836
2826
|
render(s) {
|
@@ -2854,12 +2844,12 @@ const vt = qt(class extends Te {
|
|
2854
2844
|
return H;
|
2855
2845
|
}
|
2856
2846
|
});
|
2857
|
-
var
|
2858
|
-
for (var n = r > 1 ? void 0 : r ?
|
2847
|
+
var so = Object.defineProperty, ro = Object.getOwnPropertyDescriptor, no = (s, t, e, r) => {
|
2848
|
+
for (var n = r > 1 ? void 0 : r ? ro(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
2859
2849
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
2860
|
-
return r && n &&
|
2850
|
+
return r && n && so(t, e, n), n;
|
2861
2851
|
};
|
2862
|
-
class
|
2852
|
+
class Te extends b {
|
2863
2853
|
constructor() {
|
2864
2854
|
super(...arguments), this.anchor = "BottomRight";
|
2865
2855
|
}
|
@@ -2871,7 +2861,7 @@ class Pe extends b {
|
|
2871
2861
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), f;
|
2872
2862
|
}
|
2873
2863
|
}
|
2874
|
-
|
2864
|
+
Te.styles = [
|
2875
2865
|
S`
|
2876
2866
|
:host {
|
2877
2867
|
position: fixed;
|
@@ -2890,18 +2880,18 @@ Pe.styles = [
|
|
2890
2880
|
}
|
2891
2881
|
`
|
2892
2882
|
];
|
2893
|
-
|
2883
|
+
no([
|
2894
2884
|
y({ attribute: !0 })
|
2895
|
-
],
|
2896
|
-
const
|
2885
|
+
], Te.prototype, "anchor", 2);
|
2886
|
+
const io = /* @__PURE__ */ new WeakMap();
|
2897
2887
|
let vs = 0;
|
2898
|
-
const
|
2888
|
+
const re = /* @__PURE__ */ new Map(), ms = /* @__PURE__ */ new WeakSet(), $s = () => new Promise((s) => requestAnimationFrame(s)), oo = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], ao = [{ opacity: 0 }], ys = [{ opacity: 0 }, { opacity: 1 }], bs = (s, t) => {
|
2899
2889
|
const e = s - t;
|
2900
2890
|
return e === 0 ? void 0 : e;
|
2901
2891
|
}, ws = (s, t) => {
|
2902
2892
|
const e = s / t;
|
2903
2893
|
return e === 1 ? void 0 : e;
|
2904
|
-
},
|
2894
|
+
}, ne = { left: (s, t) => {
|
2905
2895
|
const e = bs(s, t);
|
2906
2896
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
2907
2897
|
}, top: (s, t) => {
|
@@ -2917,10 +2907,10 @@ const ne = /* @__PURE__ */ new Map(), ms = /* @__PURE__ */ new WeakSet(), $s = (
|
|
2917
2907
|
t === 0 && (t = 1, e = { height: "1px" });
|
2918
2908
|
const r = ws(s, t);
|
2919
2909
|
return { value: r, overrideFrom: e, transform: r == null || isNaN(r) ? void 0 : `scaleY(${r})` };
|
2920
|
-
} },
|
2921
|
-
class
|
2910
|
+
} }, lo = { duration: 333, easing: "ease-in-out" }, co = ["left", "top", "width", "height", "opacity", "color", "background"], xs = /* @__PURE__ */ new WeakMap();
|
2911
|
+
class ho extends $r {
|
2922
2912
|
constructor(t) {
|
2923
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
2913
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === Zt.CHILD)
|
2924
2914
|
throw Error("The `animate` directive must be used in attribute position.");
|
2925
2915
|
this.createFinished();
|
2926
2916
|
}
|
@@ -2938,7 +2928,7 @@ class po extends $r {
|
|
2938
2928
|
return f;
|
2939
2929
|
}
|
2940
2930
|
getController() {
|
2941
|
-
return
|
2931
|
+
return io.get(this.u);
|
2942
2932
|
}
|
2943
2933
|
isDisabled() {
|
2944
2934
|
var t;
|
@@ -2952,12 +2942,12 @@ class po extends $r {
|
|
2952
2942
|
p(t) {
|
2953
2943
|
t = t ?? {};
|
2954
2944
|
const e = this.getController();
|
2955
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
2945
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = co), this.options = t;
|
2956
2946
|
}
|
2957
2947
|
m() {
|
2958
2948
|
const t = {}, e = this.element.getBoundingClientRect(), r = getComputedStyle(this.element);
|
2959
2949
|
return this.options.properties.forEach((n) => {
|
2960
|
-
const i = e[n] ?? (
|
2950
|
+
const i = e[n] ?? (ne[n] ? void 0 : r[n]), o = Number(i);
|
2961
2951
|
t[n] = isNaN(o) ? i + "" : o;
|
2962
2952
|
}), t;
|
2963
2953
|
}
|
@@ -2985,9 +2975,9 @@ class po extends $r {
|
|
2985
2975
|
const { from: i, to: o } = this.N(this.A, n, e);
|
2986
2976
|
this.log("measured", [this.A, n, i, o]), t = this.calculateKeyframes(i, o);
|
2987
2977
|
} else {
|
2988
|
-
const i =
|
2978
|
+
const i = re.get(this.options.inId);
|
2989
2979
|
if (i) {
|
2990
|
-
|
2980
|
+
re.delete(this.options.inId);
|
2991
2981
|
const { from: o, to: a } = this.N(i, n, e);
|
2992
2982
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, vs++, t.forEach((l) => l.zIndex = vs);
|
2993
2983
|
} else
|
@@ -3006,7 +2996,7 @@ class po extends $r {
|
|
3006
2996
|
}
|
3007
2997
|
async disconnected() {
|
3008
2998
|
var e;
|
3009
|
-
if (!this.h || (this.options.id !== void 0 &&
|
2999
|
+
if (!this.h || (this.options.id !== void 0 && re.set(this.options.id, this.A), this.options.out === void 0))
|
3010
3000
|
return;
|
3011
3001
|
if (this.prepare(), await $s(), (e = this.i) == null ? void 0 : e.isConnected) {
|
3012
3002
|
const r = this.o && this.o.parentNode === this.i ? this.o : null;
|
@@ -3046,7 +3036,7 @@ class po extends $r {
|
|
3046
3036
|
}), t;
|
3047
3037
|
}
|
3048
3038
|
j(t, e = this.O()) {
|
3049
|
-
const r = { ...
|
3039
|
+
const r = { ...lo };
|
3050
3040
|
return e.forEach((n) => Object.assign(r, n.options.keyframeOptions)), Object.assign(r, t), r;
|
3051
3041
|
}
|
3052
3042
|
N(t, e, r) {
|
@@ -3063,8 +3053,8 @@ class po extends $r {
|
|
3063
3053
|
const a = {};
|
3064
3054
|
for (const l in e) {
|
3065
3055
|
const c = t[l], h = e[l];
|
3066
|
-
if (l in
|
3067
|
-
const u =
|
3056
|
+
if (l in ne) {
|
3057
|
+
const u = ne[l];
|
3068
3058
|
if (c === void 0 || h === void 0)
|
3069
3059
|
continue;
|
3070
3060
|
const d = u(c, h);
|
@@ -3097,28 +3087,28 @@ class po extends $r {
|
|
3097
3087
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
3098
3088
|
}
|
3099
3089
|
}
|
3100
|
-
const
|
3090
|
+
const ge = Yt(ho), Ct = (s, t, e) => {
|
3101
3091
|
s && e.style.setProperty(t, s);
|
3102
3092
|
}, yr = (s, t) => {
|
3103
3093
|
var e, r, n, i;
|
3104
|
-
|
3094
|
+
Ct((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Ct(
|
3105
3095
|
(r = s.colors) == null ? void 0 : r.textOnPrimaryBackground,
|
3106
3096
|
"--text-on-primary-background",
|
3107
3097
|
t
|
3108
|
-
),
|
3098
|
+
), Ct(
|
3109
3099
|
(n = s.colors) == null ? void 0 : n.secondaryBackground,
|
3110
3100
|
"--secondary-background",
|
3111
3101
|
t
|
3112
|
-
),
|
3102
|
+
), Ct(
|
3113
3103
|
(i = s.colors) == null ? void 0 : i.textOnSecondaryBackground,
|
3114
3104
|
"--text-on-secondary-background",
|
3115
3105
|
t
|
3116
3106
|
);
|
3117
3107
|
};
|
3118
|
-
var
|
3119
|
-
for (var n = r > 1 ? void 0 : r ?
|
3108
|
+
var uo = Object.defineProperty, po = Object.getOwnPropertyDescriptor, qt = (s, t, e, r) => {
|
3109
|
+
for (var n = r > 1 ? void 0 : r ? po(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3120
3110
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
3121
|
-
return r && n &&
|
3111
|
+
return r && n && uo(t, e, n), n;
|
3122
3112
|
};
|
3123
3113
|
class Y extends b {
|
3124
3114
|
constructor() {
|
@@ -3149,7 +3139,7 @@ class Y extends b {
|
|
3149
3139
|
const r = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3150
3140
|
if (!r)
|
3151
3141
|
return f;
|
3152
|
-
const n = async (h) =>
|
3142
|
+
const n = async (h) => Gn, { type: i, content: o } = r;
|
3153
3143
|
switch (i) {
|
3154
3144
|
case "Telia": {
|
3155
3145
|
const h = await n();
|
@@ -3171,9 +3161,9 @@ class Y extends b {
|
|
3171
3161
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
3172
3162
|
class="trigger-label"
|
3173
3163
|
@click=${this.toggleActive}
|
3174
|
-
${
|
3164
|
+
${ge({
|
3175
3165
|
keyframeOptions: {},
|
3176
|
-
in:
|
3166
|
+
in: oo,
|
3177
3167
|
stabilizeOut: !0,
|
3178
3168
|
skipInitial: !1
|
3179
3169
|
})}
|
@@ -3330,22 +3320,22 @@ Y.styles = [
|
|
3330
3320
|
}
|
3331
3321
|
`
|
3332
3322
|
];
|
3333
|
-
|
3323
|
+
qt([
|
3334
3324
|
y({ attribute: !1 })
|
3335
3325
|
], Y.prototype, "application", 2);
|
3336
|
-
|
3326
|
+
qt([
|
3337
3327
|
A()
|
3338
3328
|
], Y.prototype, "active", 2);
|
3339
|
-
|
3329
|
+
qt([
|
3340
3330
|
A()
|
3341
3331
|
], Y.prototype, "loaded", 2);
|
3342
|
-
|
3332
|
+
qt([
|
3343
3333
|
A()
|
3344
3334
|
], Y.prototype, "icon", 2);
|
3345
|
-
var
|
3346
|
-
for (var n = r > 1 ? void 0 : r ?
|
3335
|
+
var fo = Object.defineProperty, go = Object.getOwnPropertyDescriptor, B = (s, t, e, r) => {
|
3336
|
+
for (var n = r > 1 ? void 0 : r ? go(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3347
3337
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
3348
|
-
return r && n &&
|
3338
|
+
return r && n && fo(t, e, n), n;
|
3349
3339
|
};
|
3350
3340
|
const br = (s) => {
|
3351
3341
|
class t extends s {
|
@@ -3419,20 +3409,20 @@ wr.styles = [
|
|
3419
3409
|
* Copyright 2021 Google LLC
|
3420
3410
|
* SPDX-License-Identifier: BSD-3-Clause
|
3421
3411
|
*/
|
3422
|
-
function*
|
3412
|
+
function* vo(s, t) {
|
3423
3413
|
if (s !== void 0) {
|
3424
3414
|
let e = 0;
|
3425
3415
|
for (const r of s)
|
3426
3416
|
yield t(r, e++);
|
3427
3417
|
}
|
3428
3418
|
}
|
3429
|
-
var
|
3419
|
+
var Pe = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Pe || {});
|
3430
3420
|
/**
|
3431
3421
|
* @license
|
3432
3422
|
* Copyright 2021 Google LLC
|
3433
3423
|
* SPDX-License-Identifier: BSD-3-Clause
|
3434
3424
|
*/
|
3435
|
-
let
|
3425
|
+
let mo = class extends Event {
|
3436
3426
|
constructor(t, e, r) {
|
3437
3427
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = r ?? !1;
|
3438
3428
|
}
|
@@ -3447,7 +3437,7 @@ let yo = class extends Event {
|
|
3447
3437
|
* Copyright 2021 Google LLC
|
3448
3438
|
* SPDX-License-Identifier: BSD-3-Clause
|
3449
3439
|
*/
|
3450
|
-
class
|
3440
|
+
class $o {
|
3451
3441
|
get value() {
|
3452
3442
|
return this.o;
|
3453
3443
|
}
|
@@ -3482,12 +3472,12 @@ class bo {
|
|
3482
3472
|
* Copyright 2021 Google LLC
|
3483
3473
|
* SPDX-License-Identifier: BSD-3-Clause
|
3484
3474
|
*/
|
3485
|
-
let
|
3475
|
+
let yo = class extends Event {
|
3486
3476
|
constructor(t) {
|
3487
3477
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
3488
3478
|
}
|
3489
3479
|
};
|
3490
|
-
class _s extends
|
3480
|
+
class _s extends $o {
|
3491
3481
|
constructor(t, e, r) {
|
3492
3482
|
var n, i;
|
3493
3483
|
super(e.context !== void 0 ? e.initialValue : r), this.onContextRequest = (o) => {
|
@@ -3499,7 +3489,7 @@ class _s extends bo {
|
|
3499
3489
|
return;
|
3500
3490
|
const l = /* @__PURE__ */ new Set();
|
3501
3491
|
for (const [c, { consumerHost: h }] of this.subscriptions)
|
3502
|
-
l.has(c) || (l.add(c), h.dispatchEvent(new
|
3492
|
+
l.has(c) || (l.add(c), h.dispatchEvent(new mo(this.context, c, !0)));
|
3503
3493
|
o.stopPropagation();
|
3504
3494
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (i = (n = this.host).addController) == null || i.call(n, this);
|
3505
3495
|
}
|
@@ -3507,7 +3497,7 @@ class _s extends bo {
|
|
3507
3497
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3508
3498
|
}
|
3509
3499
|
hostConnected() {
|
3510
|
-
this.host.dispatchEvent(new
|
3500
|
+
this.host.dispatchEvent(new yo(this.context));
|
3511
3501
|
}
|
3512
3502
|
}
|
3513
3503
|
/**
|
@@ -3515,7 +3505,7 @@ class _s extends bo {
|
|
3515
3505
|
* Copyright 2017 Google LLC
|
3516
3506
|
* SPDX-License-Identifier: BSD-3-Clause
|
3517
3507
|
*/
|
3518
|
-
function
|
3508
|
+
function bo({ context: s }) {
|
3519
3509
|
return (t, e) => {
|
3520
3510
|
const r = /* @__PURE__ */ new WeakMap();
|
3521
3511
|
if (typeof e == "object")
|
@@ -3553,13 +3543,13 @@ function xo({ context: s }) {
|
|
3553
3543
|
}
|
3554
3544
|
};
|
3555
3545
|
}
|
3556
|
-
var
|
3557
|
-
for (var n = r > 1 ? void 0 : r ?
|
3546
|
+
var wo = Object.defineProperty, xo = Object.getOwnPropertyDescriptor, _o = (s, t, e, r) => {
|
3547
|
+
for (var n = r > 1 ? void 0 : r ? xo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3558
3548
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
3559
|
-
return r && n &&
|
3549
|
+
return r && n && wo(t, e, n), n;
|
3560
3550
|
};
|
3561
|
-
const
|
3562
|
-
class
|
3551
|
+
const So = "application";
|
3552
|
+
class Me extends b {
|
3563
3553
|
constructor() {
|
3564
3554
|
super(...arguments), this.nodes = [], this.wrapperRef = ht();
|
3565
3555
|
}
|
@@ -3584,12 +3574,12 @@ class Ue extends b {
|
|
3584
3574
|
this.applyBranding(), this.applyStyles();
|
3585
3575
|
}
|
3586
3576
|
render() {
|
3587
|
-
return this.application.renderStrategy ===
|
3588
|
-
${
|
3577
|
+
return this.application.renderStrategy === Pe.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")), g`<div class="widget-container" ${ut(this.wrapperRef)}>
|
3578
|
+
${vo(this.nodes, (t) => t)}
|
3589
3579
|
</div>`;
|
3590
3580
|
}
|
3591
3581
|
}
|
3592
|
-
|
3582
|
+
Me.styles = S`
|
3593
3583
|
:host {
|
3594
3584
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
3595
3585
|
--spacing-xs: 0.2rem;
|
@@ -3694,16 +3684,16 @@ Ue.styles = S`
|
|
3694
3684
|
animation: slideDown 0.3s linear;
|
3695
3685
|
}
|
3696
3686
|
`;
|
3697
|
-
|
3687
|
+
_o([
|
3698
3688
|
y({ attribute: !1 }),
|
3699
|
-
|
3700
|
-
],
|
3701
|
-
var
|
3702
|
-
for (var n = r > 1 ? void 0 : r ?
|
3689
|
+
bo({ context: So })
|
3690
|
+
], Me.prototype, "application", 2);
|
3691
|
+
var Co = Object.defineProperty, Ao = Object.getOwnPropertyDescriptor, Ue = (s, t, e, r) => {
|
3692
|
+
for (var n = r > 1 ? void 0 : r ? Ao(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3703
3693
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
3704
|
-
return r && n &&
|
3694
|
+
return r && n && Co(t, e, n), n;
|
3705
3695
|
};
|
3706
|
-
class
|
3696
|
+
class wt extends b {
|
3707
3697
|
constructor() {
|
3708
3698
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
3709
3699
|
}
|
@@ -3728,35 +3718,35 @@ class xt extends b {
|
|
3728
3718
|
render() {
|
3729
3719
|
if (!this.widget || this.status !== "activated")
|
3730
3720
|
return f;
|
3731
|
-
if (this.widget.renderStrategy ===
|
3721
|
+
if (this.widget.renderStrategy === Pe.Trigger) {
|
3732
3722
|
const t = new Y();
|
3733
3723
|
return t.application = this.widget, t;
|
3734
3724
|
}
|
3735
3725
|
return this.widget.render();
|
3736
3726
|
}
|
3737
3727
|
}
|
3738
|
-
|
3728
|
+
wt.styles = [
|
3739
3729
|
S`
|
3740
3730
|
:host {
|
3741
3731
|
display: block;
|
3742
3732
|
}
|
3743
3733
|
`
|
3744
3734
|
];
|
3745
|
-
|
3735
|
+
Ue([
|
3746
3736
|
y({ attribute: !0 })
|
3747
|
-
],
|
3748
|
-
|
3737
|
+
], wt.prototype, "name", 2);
|
3738
|
+
Ue([
|
3749
3739
|
A()
|
3750
|
-
],
|
3751
|
-
|
3740
|
+
], wt.prototype, "widget", 2);
|
3741
|
+
Ue([
|
3752
3742
|
A()
|
3753
|
-
],
|
3754
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
3743
|
+
], wt.prototype, "status", 2);
|
3744
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Te);
|
3755
3745
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", Y);
|
3756
3746
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", wr);
|
3757
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
3758
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
3759
|
-
class
|
3747
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Me);
|
3748
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", wt);
|
3749
|
+
class Eo {
|
3760
3750
|
constructor(t) {
|
3761
3751
|
this._message = null, this._host = t, t.addController(this);
|
3762
3752
|
}
|
@@ -3775,7 +3765,7 @@ class Oo {
|
|
3775
3765
|
class Ss {
|
3776
3766
|
constructor(t, e, r, n, i) {
|
3777
3767
|
this.id = t, this.providerKey = e, this.providerOptions = r, this.component = i, this.provider$ = new P(null), this.entries$ = new P([]), this.removeEntryAction$ = new x(), this.kill$ = new x(), this.isTyping$ = new P(!1), this.data$ = new P({}), this.complete$ = this.provider$.pipe(
|
3778
|
-
V((l) => l ? l.onComplete() :
|
3768
|
+
V((l) => l ? l.onComplete() : $t)
|
3779
3769
|
);
|
3780
3770
|
const o = this._getProviderFactory(e);
|
3781
3771
|
if (!o)
|
@@ -3812,14 +3802,14 @@ class Ss {
|
|
3812
3802
|
};
|
3813
3803
|
}
|
3814
3804
|
write(t) {
|
3815
|
-
this._addEntryRemoveHandler(t), this.entries$.pipe(
|
3805
|
+
this._addEntryRemoveHandler(t), this.entries$.pipe(he(1)).subscribe((e) => {
|
3816
3806
|
this.entries$.next([...e, t]);
|
3817
3807
|
});
|
3818
3808
|
}
|
3819
3809
|
_addEntryRemoveHandler(t) {
|
3820
3810
|
t.remove$.pipe(
|
3821
3811
|
V(() => this.entries$),
|
3822
|
-
|
3812
|
+
he(1)
|
3823
3813
|
).subscribe((e) => {
|
3824
3814
|
this.removeEntryAction$.next(t), this.entries$.next(e.filter((r) => r !== t));
|
3825
3815
|
});
|
@@ -3828,9 +3818,9 @@ class Ss {
|
|
3828
3818
|
return this.component.platform.registeredProviders.get(t);
|
3829
3819
|
}
|
3830
3820
|
}
|
3831
|
-
class
|
3821
|
+
class ko {
|
3832
3822
|
constructor(t) {
|
3833
|
-
this.component = t, this.currentSession$ = new P(null), this.sessions = [], this.storage = null,
|
3823
|
+
this.component = t, this.currentSession$ = new P(null), this.sessions = [], this.storage = null, Lt(t, "handover").subscribe((e) => {
|
3834
3824
|
const r = this._createNewSession(
|
3835
3825
|
e.detail.providerKey,
|
3836
3826
|
e.detail.providerOptions
|
@@ -3926,12 +3916,12 @@ class Lo {
|
|
3926
3916
|
return this.component.properties.providers[0];
|
3927
3917
|
}
|
3928
3918
|
}
|
3929
|
-
class
|
3919
|
+
class Oo {
|
3930
3920
|
constructor(t, e) {
|
3931
|
-
this.state$ = t, this.component = e, this.entries$ = new P([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new
|
3921
|
+
this.state$ = t, this.component = e, this.entries$ = new P([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new ko(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
3932
3922
|
V((r) => r ? r.provider$.pipe(
|
3933
|
-
V((n) => n ? n.isTyping() :
|
3934
|
-
) :
|
3923
|
+
V((n) => n ? n.isTyping() : ce(!1))
|
3924
|
+
) : ce(!1))
|
3935
3925
|
), t.subscribe((r) => {
|
3936
3926
|
switch (r) {
|
3937
3927
|
case "init":
|
@@ -3957,16 +3947,16 @@ class To {
|
|
3957
3947
|
this.session$.pipe(
|
3958
3948
|
V((t) => {
|
3959
3949
|
if (!t)
|
3960
|
-
return
|
3961
|
-
const e = t.removeEntryAction$.pipe(
|
3962
|
-
|
3950
|
+
return $t;
|
3951
|
+
const e = t.removeEntryAction$.pipe(ue(this.entries$)).pipe(
|
3952
|
+
Ot(([n, i]) => i.filter((o) => o.id !== n.id))
|
3963
3953
|
), r = t.entries().pipe(
|
3964
|
-
|
3954
|
+
Ot((n) => {
|
3965
3955
|
const i = this.entries$.value, o = n.filter((a) => i.findIndex((l) => l.id === a.id) === -1);
|
3966
3956
|
return [...i, ...o];
|
3967
3957
|
})
|
3968
3958
|
);
|
3969
|
-
return
|
3959
|
+
return wn(e, r);
|
3970
3960
|
})
|
3971
3961
|
).subscribe((t) => {
|
3972
3962
|
this.entries$.next(t);
|
@@ -3977,12 +3967,12 @@ class To {
|
|
3977
3967
|
(t = this.sessionService) == null || t.startSession();
|
3978
3968
|
}
|
3979
3969
|
}
|
3980
|
-
var
|
3981
|
-
for (var n = r > 1 ? void 0 : r ?
|
3970
|
+
var Lo = Object.defineProperty, To = Object.getOwnPropertyDescriptor, Po = (s, t, e, r) => {
|
3971
|
+
for (var n = r > 1 ? void 0 : r ? To(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
3982
3972
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
3983
|
-
return r && n &&
|
3973
|
+
return r && n && Lo(t, e, n), n;
|
3984
3974
|
};
|
3985
|
-
class
|
3975
|
+
class Ie extends b {
|
3986
3976
|
connectedCallback() {
|
3987
3977
|
var t;
|
3988
3978
|
super.connectedCallback(), (t = this.entry.didUpdate) == null || t.subscribe(() => {
|
@@ -4004,13 +3994,13 @@ class Re extends b {
|
|
4004
3994
|
}
|
4005
3995
|
_renderDeliveryStatus(t) {
|
4006
3996
|
return t === "delivered" ? g`<telia-icon
|
4007
|
-
svg=${
|
3997
|
+
svg=${Zn.svg}
|
4008
3998
|
size="sm"
|
4009
3999
|
></telia-icon>` : t === "failed" ? g`<telia-icon
|
4010
|
-
svg=${
|
4000
|
+
svg=${Wn.svg}
|
4011
4001
|
size="sm"
|
4012
4002
|
title="Message could not be delivered"
|
4013
|
-
></telia-icon>` : g`<telia-icon svg=${
|
4003
|
+
></telia-icon>` : g`<telia-icon svg=${Yn.svg} size="sm"></telia-icon>`;
|
4014
4004
|
}
|
4015
4005
|
_dispatchEntryAction(t) {
|
4016
4006
|
this.entry.actions$.next(t.detail);
|
@@ -4096,7 +4086,7 @@ class Re extends b {
|
|
4096
4086
|
}
|
4097
4087
|
}
|
4098
4088
|
}
|
4099
|
-
|
4089
|
+
Ie.styles = [
|
4100
4090
|
S`
|
4101
4091
|
:host {
|
4102
4092
|
box-sizing: border-box;
|
@@ -4214,15 +4204,15 @@ Re.styles = [
|
|
4214
4204
|
}
|
4215
4205
|
`
|
4216
4206
|
];
|
4217
|
-
|
4207
|
+
Po([
|
4218
4208
|
y({ attribute: !1 })
|
4219
|
-
],
|
4220
|
-
var
|
4221
|
-
for (var n = r > 1 ? void 0 : r ?
|
4209
|
+
], Ie.prototype, "entry", 2);
|
4210
|
+
var Mo = Object.defineProperty, Uo = Object.getOwnPropertyDescriptor, xr = (s, t, e, r) => {
|
4211
|
+
for (var n = r > 1 ? void 0 : r ? Uo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4222
4212
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
4223
|
-
return r && n &&
|
4213
|
+
return r && n && Mo(t, e, n), n;
|
4224
4214
|
};
|
4225
|
-
class
|
4215
|
+
class Kt extends b {
|
4226
4216
|
constructor() {
|
4227
4217
|
super(...arguments), this.entries = [], this.loading = !0;
|
4228
4218
|
}
|
@@ -4236,7 +4226,7 @@ class Gt extends b {
|
|
4236
4226
|
(t) => g`<div class="conversation-entry" tabindex="-1">
|
4237
4227
|
<conversation-entry
|
4238
4228
|
.entry=${t}
|
4239
|
-
${
|
4229
|
+
${ge({
|
4240
4230
|
keyframeOptions: {},
|
4241
4231
|
in: ys,
|
4242
4232
|
stabilizeOut: !0,
|
@@ -4247,10 +4237,10 @@ class Gt extends b {
|
|
4247
4237
|
</div>`
|
4248
4238
|
)}
|
4249
4239
|
${this.loading ? g`<ace-typing-state
|
4250
|
-
${
|
4240
|
+
${ge({
|
4251
4241
|
keyframeOptions: {},
|
4252
4242
|
in: ys,
|
4253
|
-
out:
|
4243
|
+
out: ao,
|
4254
4244
|
stabilizeOut: !0,
|
4255
4245
|
skipInitial: !1
|
4256
4246
|
})}
|
@@ -4258,7 +4248,7 @@ class Gt extends b {
|
|
4258
4248
|
</div>`;
|
4259
4249
|
}
|
4260
4250
|
}
|
4261
|
-
|
4251
|
+
Kt.styles = [
|
4262
4252
|
S`
|
4263
4253
|
:host {
|
4264
4254
|
display: block;
|
@@ -4274,33 +4264,33 @@ Gt.styles = [
|
|
4274
4264
|
];
|
4275
4265
|
xr([
|
4276
4266
|
y({ attribute: !1 })
|
4277
|
-
],
|
4267
|
+
], Kt.prototype, "entries", 2);
|
4278
4268
|
xr([
|
4279
4269
|
y({ type: Boolean })
|
4280
|
-
],
|
4270
|
+
], Kt.prototype, "loading", 2);
|
4281
4271
|
/**
|
4282
4272
|
* @license
|
4283
4273
|
* Copyright 2021 Google LLC
|
4284
4274
|
* SPDX-License-Identifier: BSD-3-Clause
|
4285
4275
|
*/
|
4286
|
-
const
|
4276
|
+
const Io = (s, t, e) => {
|
4287
4277
|
for (const r of t)
|
4288
4278
|
if (r[0] === s)
|
4289
4279
|
return (0, r[1])();
|
4290
4280
|
return e == null ? void 0 : e();
|
4291
4281
|
};
|
4292
|
-
var
|
4293
|
-
for (var n = r > 1 ? void 0 : r ?
|
4282
|
+
var Ro = Object.defineProperty, jo = Object.getOwnPropertyDescriptor, Ho = (s, t, e, r) => {
|
4283
|
+
for (var n = r > 1 ? void 0 : r ? jo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4294
4284
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
4295
|
-
return r && n &&
|
4285
|
+
return r && n && Ro(t, e, n), n;
|
4296
4286
|
};
|
4297
|
-
class
|
4287
|
+
class Re extends b {
|
4298
4288
|
render() {
|
4299
4289
|
return g`
|
4300
4290
|
<div class="message-group">
|
4301
4291
|
${this.group.items.map(
|
4302
4292
|
([t, e, r]) => g`
|
4303
|
-
${
|
4293
|
+
${Io(
|
4304
4294
|
t,
|
4305
4295
|
[
|
4306
4296
|
["html", () => g`<message-type-html .message=${e} />`],
|
@@ -4323,7 +4313,7 @@ class je extends b {
|
|
4323
4313
|
`;
|
4324
4314
|
}
|
4325
4315
|
}
|
4326
|
-
|
4316
|
+
Re.styles = [
|
4327
4317
|
S`
|
4328
4318
|
:host {
|
4329
4319
|
box-sizing: border-box;
|
@@ -4339,9 +4329,9 @@ je.styles = [
|
|
4339
4329
|
}
|
4340
4330
|
`
|
4341
4331
|
];
|
4342
|
-
|
4332
|
+
Ho([
|
4343
4333
|
y({ attribute: !1 })
|
4344
|
-
],
|
4334
|
+
], Re.prototype, "group", 2);
|
4345
4335
|
class _r extends b {
|
4346
4336
|
render() {
|
4347
4337
|
return g`<div class="container">
|
@@ -4393,9 +4383,9 @@ _r.styles = [
|
|
4393
4383
|
* Copyright 2017 Google LLC
|
4394
4384
|
* SPDX-License-Identifier: BSD-3-Clause
|
4395
4385
|
*/
|
4396
|
-
class
|
4386
|
+
class ve extends Le {
|
4397
4387
|
constructor(t) {
|
4398
|
-
if (super(t), this.it = f, t.type !==
|
4388
|
+
if (super(t), this.it = f, t.type !== Zt.CHILD)
|
4399
4389
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
4400
4390
|
}
|
4401
4391
|
render(t) {
|
@@ -4412,21 +4402,21 @@ class me extends Te {
|
|
4412
4402
|
return e.raw = e, this._t = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
4413
4403
|
}
|
4414
4404
|
}
|
4415
|
-
|
4416
|
-
const Sr =
|
4417
|
-
var
|
4418
|
-
for (var n = r > 1 ? void 0 : r ?
|
4405
|
+
ve.directiveName = "unsafeHTML", ve.resultType = 1;
|
4406
|
+
const Sr = Yt(ve);
|
4407
|
+
var Do = Object.defineProperty, No = Object.getOwnPropertyDescriptor, Bo = (s, t, e, r) => {
|
4408
|
+
for (var n = r > 1 ? void 0 : r ? No(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4419
4409
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
4420
|
-
return r && n &&
|
4410
|
+
return r && n && Do(t, e, n), n;
|
4421
4411
|
};
|
4422
|
-
class
|
4412
|
+
class je extends b {
|
4423
4413
|
render() {
|
4424
4414
|
return g`<div class="message-type-html">
|
4425
4415
|
${Sr(this.message.content)}
|
4426
4416
|
</div>`;
|
4427
4417
|
}
|
4428
4418
|
}
|
4429
|
-
|
4419
|
+
je.styles = [
|
4430
4420
|
S`
|
4431
4421
|
:host {
|
4432
4422
|
box-sizing: border-box;
|
@@ -4450,15 +4440,15 @@ He.styles = [
|
|
4450
4440
|
}
|
4451
4441
|
`
|
4452
4442
|
];
|
4453
|
-
|
4443
|
+
Bo([
|
4454
4444
|
y({ attribute: !1 })
|
4455
|
-
],
|
4456
|
-
var
|
4457
|
-
for (var n = r > 1 ? void 0 : r ?
|
4445
|
+
], je.prototype, "message", 2);
|
4446
|
+
var zo = Object.defineProperty, Fo = Object.getOwnPropertyDescriptor, Cr = (s, t, e, r) => {
|
4447
|
+
for (var n = r > 1 ? void 0 : r ? Fo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4458
4448
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
4459
|
-
return r && n &&
|
4449
|
+
return r && n && zo(t, e, n), n;
|
4460
4450
|
};
|
4461
|
-
class
|
4451
|
+
class Gt extends b {
|
4462
4452
|
constructor() {
|
4463
4453
|
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "";
|
4464
4454
|
}
|
@@ -4481,7 +4471,7 @@ class Xt extends b {
|
|
4481
4471
|
`;
|
4482
4472
|
}
|
4483
4473
|
}
|
4484
|
-
|
4474
|
+
Gt.styles = [
|
4485
4475
|
S`
|
4486
4476
|
:host {
|
4487
4477
|
box-sizing: border-box;
|
@@ -4507,19 +4497,19 @@ Xt.styles = [
|
|
4507
4497
|
];
|
4508
4498
|
Cr([
|
4509
4499
|
y({ attribute: !1 })
|
4510
|
-
],
|
4500
|
+
], Gt.prototype, "message", 2);
|
4511
4501
|
Cr([
|
4512
4502
|
A()
|
4513
|
-
],
|
4514
|
-
var
|
4515
|
-
for (var n = r > 1 ? void 0 : r ?
|
4503
|
+
], Gt.prototype, "showLightbox", 2);
|
4504
|
+
var Wo = Object.defineProperty, Zo = Object.getOwnPropertyDescriptor, Yo = (s, t, e, r) => {
|
4505
|
+
for (var n = r > 1 ? void 0 : r ? Zo(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4516
4506
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
4517
|
-
return r && n &&
|
4507
|
+
return r && n && Wo(t, e, n), n;
|
4518
4508
|
};
|
4519
|
-
|
4509
|
+
class He extends b {
|
4520
4510
|
constructor() {
|
4521
|
-
super(...arguments), this.escapeListener = (
|
4522
|
-
|
4511
|
+
super(...arguments), this.escapeListener = (t) => {
|
4512
|
+
t.key === "Escape" && this.closeLightbox();
|
4523
4513
|
};
|
4524
4514
|
}
|
4525
4515
|
firstUpdated() {
|
@@ -4529,20 +4519,20 @@ let mt = class extends b {
|
|
4529
4519
|
document.removeEventListener("keydown", this.escapeListener);
|
4530
4520
|
}
|
4531
4521
|
closeLightbox() {
|
4532
|
-
const
|
4522
|
+
const t = new CustomEvent("action", {
|
4533
4523
|
composed: !0,
|
4534
4524
|
detail: {
|
4535
4525
|
key: "close-lightbox"
|
4536
4526
|
}
|
4537
4527
|
});
|
4538
|
-
this.dispatchEvent(
|
4528
|
+
this.dispatchEvent(t);
|
4539
4529
|
}
|
4540
|
-
handleKeyDown(
|
4541
|
-
if (
|
4542
|
-
const
|
4543
|
-
if (
|
4544
|
-
const
|
4545
|
-
|
4530
|
+
handleKeyDown(t) {
|
4531
|
+
if (t.key === "Tab") {
|
4532
|
+
const e = this.shadowRoot.querySelectorAll("button");
|
4533
|
+
if (e.length) {
|
4534
|
+
const r = e[0], n = e[e.length - 1];
|
4535
|
+
t.shiftKey ? t.target === r && (n.focus(), t.preventDefault()) : t.target === n && (r.focus(), t.preventDefault());
|
4546
4536
|
}
|
4547
4537
|
}
|
4548
4538
|
}
|
@@ -4553,13 +4543,13 @@ let mt = class extends b {
|
|
4553
4543
|
@keydown=${this.handleKeyDown}
|
4554
4544
|
>
|
4555
4545
|
<button class="close" @click=${this.closeLightbox}>
|
4556
|
-
<telia-icon svg=${
|
4546
|
+
<telia-icon svg=${Kn.svg} size="lg"></telia-icon>
|
4557
4547
|
</button>
|
4558
4548
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
4559
4549
|
</div> `;
|
4560
4550
|
}
|
4561
|
-
}
|
4562
|
-
|
4551
|
+
}
|
4552
|
+
He.styles = [
|
4563
4553
|
S`
|
4564
4554
|
.lightbox {
|
4565
4555
|
position: fixed;
|
@@ -4596,32 +4586,29 @@ mt.styles = [
|
|
4596
4586
|
}
|
4597
4587
|
`
|
4598
4588
|
];
|
4599
|
-
|
4589
|
+
Yo([
|
4600
4590
|
y({ attribute: !0 })
|
4601
|
-
],
|
4602
|
-
|
4603
|
-
|
4604
|
-
], mt);
|
4605
|
-
var Ko = Object.defineProperty, Go = Object.getOwnPropertyDescriptor, q = (s, t, e, r) => {
|
4606
|
-
for (var n = r > 1 ? void 0 : r ? Go(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4591
|
+
], He.prototype, "imageUrl", 2);
|
4592
|
+
var qo = Object.defineProperty, Ko = Object.getOwnPropertyDescriptor, q = (s, t, e, r) => {
|
4593
|
+
for (var n = r > 1 ? void 0 : r ? Ko(t, e) : t, i = s.length - 1, o; i >= 0; i--)
|
4607
4594
|
(o = s[i]) && (n = (r ? o(t, e, n) : o(n)) || n);
|
4608
|
-
return r && n &&
|
4595
|
+
return r && n && qo(t, e, n), n;
|
4609
4596
|
};
|
4610
|
-
const
|
4597
|
+
const Go = (s) => {
|
4611
4598
|
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
4612
4599
|
};
|
4613
|
-
customElements.get("conversation-entry") || customElements.define("conversation-entry",
|
4614
|
-
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed",
|
4615
|
-
customElements.get("conversation-group") || customElements.define("conversation-group",
|
4600
|
+
customElements.get("conversation-entry") || customElements.define("conversation-entry", Ie);
|
4601
|
+
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", Kt);
|
4602
|
+
customElements.get("conversation-group") || customElements.define("conversation-group", Re);
|
4616
4603
|
customElements.get("ace-typing-state") || customElements.define("ace-typing-state", _r);
|
4617
|
-
customElements.get("message-type-html") || customElements.define("message-type-html",
|
4618
|
-
customElements.get("message-type-markdown") || customElements.define("message-type-markdown",
|
4619
|
-
customElements.get("ace-lightbox") || customElements.define("ace-lightbox",
|
4620
|
-
const
|
4621
|
-
class L extends
|
4604
|
+
customElements.get("message-type-html") || customElements.define("message-type-html", je);
|
4605
|
+
customElements.get("message-type-markdown") || customElements.define("message-type-markdown", Gt);
|
4606
|
+
customElements.get("ace-lightbox") || customElements.define("ace-lightbox", He);
|
4607
|
+
const Ar = br(b);
|
4608
|
+
class L extends Ar {
|
4622
4609
|
constructor() {
|
4623
|
-
super(...arguments), this.message = "", this.disabled = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = ht(), this.formRef = ht(), this.inputRef = ht(), this.chatScrollHeight = 0, this.toast = new
|
4624
|
-
V((t) => t ? t == null ? void 0 : t.provider$ :
|
4610
|
+
super(...arguments), this.message = "", this.disabled = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = ht(), this.formRef = ht(), this.inputRef = ht(), this.chatScrollHeight = 0, this.toast = new Eo(this), this.messageMaxLength = 1e3, this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new P("waiting"), this.stateMachine = new Oo(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
4611
|
+
V((t) => t ? t == null ? void 0 : t.provider$ : ce(null))
|
4625
4612
|
);
|
4626
4613
|
}
|
4627
4614
|
async connectedCallback() {
|
@@ -4629,17 +4616,17 @@ class L extends Er {
|
|
4629
4616
|
const t = await this.application.container.get(
|
4630
4617
|
"conversation"
|
4631
4618
|
);
|
4632
|
-
this.platform = t || null, this.stateSubscription =
|
4619
|
+
this.platform = t || null, this.stateSubscription = un([
|
4633
4620
|
this.stateMachine.entries(),
|
4634
4621
|
this.stateMachine.isTyping()
|
4635
4622
|
]).subscribe(([e, r]) => {
|
4636
4623
|
this.entries = e, this.typing = r;
|
4637
|
-
}), this.userSubmitSubscription =
|
4624
|
+
}), this.userSubmitSubscription = Lt(
|
4638
4625
|
this,
|
4639
4626
|
"user-submit"
|
4640
|
-
).pipe(
|
4627
|
+
).pipe(ue(this.provider$)).subscribe(([e, r]) => {
|
4641
4628
|
r && r.onUserSubmit(e.detail);
|
4642
|
-
}), this._addHeaderOptions(), this.provider$.pipe(
|
4629
|
+
}), this._addHeaderOptions(), this.provider$.pipe(ue(this.provider$)).subscribe(([e, r]) => {
|
4643
4630
|
r && r.showChatOverlay$.pipe().subscribe((n) => {
|
4644
4631
|
this.chatOverlayActive = n;
|
4645
4632
|
});
|
@@ -4655,7 +4642,7 @@ class L extends Er {
|
|
4655
4642
|
const t = this.conversationContentRef.value;
|
4656
4643
|
t && setTimeout(() => {
|
4657
4644
|
const e = t.scrollHeight;
|
4658
|
-
e > this.chatScrollHeight && (
|
4645
|
+
e > this.chatScrollHeight && (Go(t), this.chatScrollHeight = e);
|
4659
4646
|
}, 300);
|
4660
4647
|
}
|
4661
4648
|
disableInput() {
|
@@ -4714,7 +4701,7 @@ class L extends Er {
|
|
4714
4701
|
providerOptions: e
|
4715
4702
|
}
|
4716
4703
|
});
|
4717
|
-
return this.dispatchEvent(r), r.detail.complete ||
|
4704
|
+
return this.dispatchEvent(r), r.detail.complete || $t;
|
4718
4705
|
}
|
4719
4706
|
render() {
|
4720
4707
|
var e;
|
@@ -4734,7 +4721,7 @@ class L extends Er {
|
|
4734
4721
|
class="overlay-button"
|
4735
4722
|
@click=${() => this.chatOverlayActive = !1}
|
4736
4723
|
>
|
4737
|
-
<telia-icon svg=${
|
4724
|
+
<telia-icon svg=${qn.svg}></telia-icon>
|
4738
4725
|
</button>
|
4739
4726
|
</div>` : f}
|
4740
4727
|
<div
|
@@ -4784,7 +4771,7 @@ class L extends Er {
|
|
4784
4771
|
title=${t.getOrFallback("conversation.send-alt", "Send")}
|
4785
4772
|
?disabled=${this.disabled}
|
4786
4773
|
>
|
4787
|
-
<telia-icon svg=${
|
4774
|
+
<telia-icon svg=${Xn.svg}></telia-icon>
|
4788
4775
|
</button>
|
4789
4776
|
<!-- TODO: Activate character counter when details decided -->
|
4790
4777
|
<!--<span class="counter"
|
@@ -4796,7 +4783,7 @@ class L extends Er {
|
|
4796
4783
|
}
|
4797
4784
|
}
|
4798
4785
|
L.styles = [
|
4799
|
-
|
4786
|
+
Ar.styles || [],
|
4800
4787
|
S`
|
4801
4788
|
:host {
|
4802
4789
|
font-family: var(--font-family);
|
@@ -5043,18 +5030,18 @@ q([
|
|
5043
5030
|
q([
|
5044
5031
|
A()
|
5045
5032
|
], L.prototype, "typing", 2);
|
5046
|
-
const
|
5033
|
+
const Xo = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
5047
5034
|
__proto__: null,
|
5048
5035
|
Conversation: L,
|
5049
5036
|
default: L
|
5050
5037
|
}, Symbol.toStringTag, { value: "Module" }));
|
5051
5038
|
export {
|
5052
|
-
|
5039
|
+
xn as Agent,
|
5053
5040
|
L as Conversation,
|
5054
|
-
|
5055
|
-
|
5041
|
+
Jo as ConversationComponent,
|
5042
|
+
Nt as ConversationEntry,
|
5056
5043
|
I as ConversationMessageType,
|
5057
5044
|
As as ConversationPlatform,
|
5058
|
-
|
5059
|
-
|
5045
|
+
Qo as ConversationProvider,
|
5046
|
+
_n as User
|
5060
5047
|
};
|