@telia-ace/widget-conversation-flamingo 1.1.41-rc.1 → 1.1.41-rc.2
Sign up to get free protection for your applications and to get access to all the features.
@@ -4,17 +4,17 @@ import { ConversationMessageType as St } from "./index.mjs";
|
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const nt = globalThis,
|
7
|
+
const nt = globalThis, Bt = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, It = Symbol(), Vt = /* @__PURE__ */ new WeakMap();
|
8
8
|
let Le = class {
|
9
9
|
constructor(t, e, i) {
|
10
|
-
if (this._$cssResult$ = !0, i !==
|
10
|
+
if (this._$cssResult$ = !0, i !== It)
|
11
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
12
12
|
this.cssText = t, this.t = e;
|
13
13
|
}
|
14
14
|
get styleSheet() {
|
15
15
|
let t = this.o;
|
16
16
|
const e = this.t;
|
17
|
-
if (
|
17
|
+
if (Bt && t === void 0) {
|
18
18
|
const i = e !== void 0 && e.length === 1;
|
19
19
|
i && (t = Vt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Vt.set(e, t));
|
20
20
|
}
|
@@ -24,7 +24,7 @@ let Le = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const cs = (s) => new Le(typeof s == "string" ? s : s + "", void 0,
|
27
|
+
const cs = (s) => new Le(typeof s == "string" ? s : s + "", void 0, It), b = (s, ...t) => {
|
28
28
|
const e = s.length === 1 ? s[0] : t.reduce((i, n, o) => i + ((r) => {
|
29
29
|
if (r._$cssResult$ === !0)
|
30
30
|
return r.cssText;
|
@@ -32,16 +32,16 @@ const cs = (s) => new Le(typeof s == "string" ? s : s + "", void 0, Bt), b = (s,
|
|
32
32
|
return r;
|
33
33
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + r + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
34
34
|
})(n) + s[o + 1], s[0]);
|
35
|
-
return new Le(e, s,
|
35
|
+
return new Le(e, s, It);
|
36
36
|
}, ds = (s, t) => {
|
37
|
-
if (
|
37
|
+
if (Bt)
|
38
38
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
39
39
|
else
|
40
40
|
for (const e of t) {
|
41
41
|
const i = document.createElement("style"), n = nt.litNonce;
|
42
42
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = e.cssText, s.appendChild(i);
|
43
43
|
}
|
44
|
-
}, te =
|
44
|
+
}, te = Bt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
45
45
|
let e = "";
|
46
46
|
for (const i of t.cssRules)
|
47
47
|
e += i.cssText;
|
@@ -299,7 +299,7 @@ R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[F("elementProper
|
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const W = globalThis, rt = W.trustedTypes, ie = rt ? rt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Pe = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, Me = "?" + A, vs = `<${Me}>`, L = document,
|
302
|
+
const W = globalThis, rt = W.trustedTypes, ie = rt ? rt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Pe = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, Me = "?" + A, vs = `<${Me}>`, L = document, G = () => L.createComment(""), q = (s) => s === null || typeof s != "object" && typeof s != "function", Re = Array.isArray, ys = (s) => Re(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", kt = `[
|
303
303
|
\f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ne = /-->/g, oe = />/g, k = RegExp(`>|${kt}(?:([^\\s"'>=/]+)(${kt}*=${kt}*(?:[^
|
304
304
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, ae = /"/g, He = /^(?:script|style|textarea|title)$/i, bs = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), f = bs(1), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), le = /* @__PURE__ */ new WeakMap(), O = L.createTreeWalker(L, 129);
|
305
305
|
function Ue(s, t) {
|
@@ -335,8 +335,8 @@ class X {
|
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const h of n.getAttributeNames())
|
337
337
|
if (h.endsWith(Pe)) {
|
338
|
-
const p = d[r++], g = n.getAttribute(h).split(A),
|
339
|
-
l.push({ type: 1, index: o, name:
|
338
|
+
const p = d[r++], g = n.getAttribute(h).split(A), C = /([.?@])?(.*)/.exec(p);
|
339
|
+
l.push({ type: 1, index: o, name: C[2], strings: g, ctor: C[1] === "." ? xs : C[1] === "?" ? ws : C[1] === "@" ? As : mt }), n.removeAttribute(h);
|
340
340
|
} else
|
341
341
|
h.startsWith(A) && (l.push({ type: 6, index: o }), n.removeAttribute(h));
|
342
342
|
if (He.test(n.tagName)) {
|
@@ -344,8 +344,8 @@ class X {
|
|
344
344
|
if (p > 0) {
|
345
345
|
n.textContent = rt ? rt.emptyScript : "";
|
346
346
|
for (let g = 0; g < p; g++)
|
347
|
-
n.append(h[g],
|
348
|
-
n.append(h[p],
|
347
|
+
n.append(h[g], G()), O.nextNode(), l.push({ type: 2, index: ++o });
|
348
|
+
n.append(h[p], G());
|
349
349
|
}
|
350
350
|
}
|
351
351
|
} else if (n.nodeType === 8)
|
@@ -364,15 +364,15 @@ class X {
|
|
364
364
|
return i.innerHTML = t, i;
|
365
365
|
}
|
366
366
|
}
|
367
|
-
function
|
367
|
+
function B(s, t, e = s, i) {
|
368
368
|
var r, a;
|
369
369
|
if (t === E)
|
370
370
|
return t;
|
371
371
|
let n = i !== void 0 ? (r = e._$Co) == null ? void 0 : r[i] : e._$Cl;
|
372
372
|
const o = q(t) ? void 0 : t._$litDirective$;
|
373
|
-
return (n == null ? void 0 : n.constructor) !== o && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), o === void 0 ? n = void 0 : (n = new o(s), n._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t =
|
373
|
+
return (n == null ? void 0 : n.constructor) !== o && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), o === void 0 ? n = void 0 : (n = new o(s), n._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = n : e._$Cl = n), n !== void 0 && (t = B(s, n._$AS(s, t.values), n, i)), t;
|
374
374
|
}
|
375
|
-
class
|
375
|
+
class Cs {
|
376
376
|
constructor(t, e) {
|
377
377
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
378
378
|
}
|
@@ -421,7 +421,7 @@ class K {
|
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
423
|
_$AI(t, e = this) {
|
424
|
-
t =
|
424
|
+
t = B(this, t, e), q(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : ys(t) ? this.T(t) : this._(t);
|
425
425
|
}
|
426
426
|
k(t) {
|
427
427
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -438,7 +438,7 @@ class K {
|
|
438
438
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === n)
|
439
439
|
this._$AH.p(e);
|
440
440
|
else {
|
441
|
-
const r = new
|
441
|
+
const r = new Cs(n, this), a = r.u(this.options);
|
442
442
|
r.p(e), this.$(a), this._$AH = r;
|
443
443
|
}
|
444
444
|
}
|
@@ -451,7 +451,7 @@ class K {
|
|
451
451
|
const e = this._$AH;
|
452
452
|
let i, n = 0;
|
453
453
|
for (const o of t)
|
454
|
-
n === e.length ? e.push(i = new K(this.k(
|
454
|
+
n === e.length ? e.push(i = new K(this.k(G()), this.k(G()), this, this.options)) : i = e[n], i._$AI(o), n++;
|
455
455
|
n < e.length && (this._$AR(i && i._$AB.nextSibling, n), e.length = n);
|
456
456
|
}
|
457
457
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -480,12 +480,12 @@ class mt {
|
|
480
480
|
const o = this.strings;
|
481
481
|
let r = !1;
|
482
482
|
if (o === void 0)
|
483
|
-
t =
|
483
|
+
t = B(this, t, e, 0), r = !q(t) || t !== this._$AH && t !== E, r && (this._$AH = t);
|
484
484
|
else {
|
485
485
|
const a = t;
|
486
486
|
let l, c;
|
487
487
|
for (t = o[0], l = 0; l < o.length - 1; l++)
|
488
|
-
c =
|
488
|
+
c = B(this, a[i + l], e, l), c === E && (c = this._$AH[l]), r || (r = !q(c) || c !== this._$AH[l]), c === u ? t = u : t !== u && (t += (c ?? "") + o[l + 1]), this._$AH[l] = c;
|
489
489
|
}
|
490
490
|
r && !n && this.O(t);
|
491
491
|
}
|
@@ -493,7 +493,7 @@ class mt {
|
|
493
493
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
494
494
|
}
|
495
495
|
}
|
496
|
-
class
|
496
|
+
class xs extends mt {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class ws extends mt {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let
|
504
|
+
let ws = class extends mt {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -514,7 +514,7 @@ class As extends mt {
|
|
514
514
|
super(t, e, i, n, o), this.type = 5;
|
515
515
|
}
|
516
516
|
_$AI(t, e = this) {
|
517
|
-
if ((t =
|
517
|
+
if ((t = B(this, t, e, 0) ?? u) === E)
|
518
518
|
return;
|
519
519
|
const i = this._$AH, n = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || n);
|
520
520
|
n && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -532,7 +532,7 @@ class Ss {
|
|
532
532
|
return this._$AM._$AU;
|
533
533
|
}
|
534
534
|
_$AI(t) {
|
535
|
-
|
535
|
+
B(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
538
|
const Tt = W.litHtmlPolyfillSupport;
|
@@ -542,7 +542,7 @@ const Es = (s, t, e) => {
|
|
542
542
|
let n = i._$litPart$;
|
543
543
|
if (n === void 0) {
|
544
544
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
545
|
-
i._$litPart$ = n = new K(t.insertBefore(
|
545
|
+
i._$litPart$ = n = new K(t.insertBefore(G(), o), o, void 0, e ?? {});
|
546
546
|
}
|
547
547
|
return n._$AI(s), n;
|
548
548
|
};
|
@@ -581,7 +581,7 @@ m._$litElement$ = !0, m.finalized = !0, (Oe = globalThis.litElementHydrateSuppor
|
|
581
581
|
const Ot = globalThis.litElementPolyfillSupport;
|
582
582
|
Ot == null || Ot({ LitElement: m });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
|
-
const ce = { 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>' },
|
584
|
+
const ks = { 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>' }, Ts = { 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>' }, Os = { 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>' }, ce = { 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>' }, Ls = { 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>' }, Ps = { 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>' }, de = { 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>' }, H = {
|
585
585
|
allRenderFn: !1,
|
586
586
|
cmpDidLoad: !0,
|
587
587
|
cmpDidUnload: !1,
|
@@ -666,7 +666,7 @@ const ce = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.o
|
|
666
666
|
attachStyles: !0
|
667
667
|
};
|
668
668
|
let U, Ne, vt, je = !1, at = !1, Ft = !1, y = !1, he = null, Rt = !1;
|
669
|
-
const yt = typeof window < "u" ? window : {},
|
669
|
+
const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, De = yt.HTMLElement || class {
|
670
670
|
}, v = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -675,10 +675,10 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
675
675
|
ael: (s, t, e, i) => s.addEventListener(t, e, i),
|
676
676
|
rel: (s, t, e, i) => s.removeEventListener(t, e, i),
|
677
677
|
ce: (s, t) => new CustomEvent(s, t)
|
678
|
-
},
|
678
|
+
}, Ms = /* @__PURE__ */ (() => {
|
679
679
|
let s = !1;
|
680
680
|
try {
|
681
|
-
|
681
|
+
x.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
682
682
|
get() {
|
683
683
|
s = !0;
|
684
684
|
}
|
@@ -686,44 +686,44 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
686
686
|
} catch {
|
687
687
|
}
|
688
688
|
return s;
|
689
|
-
})(),
|
689
|
+
})(), Rs = (s) => Promise.resolve(s), Hs = /* @__PURE__ */ (() => {
|
690
690
|
try {
|
691
691
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
692
692
|
} catch {
|
693
693
|
}
|
694
694
|
return !1;
|
695
|
-
})(),
|
695
|
+
})(), Be = (s, t, e, i) => {
|
696
696
|
e && e.map(([n, o, r]) => {
|
697
|
-
const a =
|
697
|
+
const a = Ns(s, n), l = Us(t, r), c = js(n);
|
698
698
|
v.ael(a, o, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => v.rel(a, o, l, c));
|
699
699
|
});
|
700
|
-
},
|
700
|
+
}, Us = (s, t) => (e) => {
|
701
701
|
try {
|
702
702
|
H.lazyLoad || s.$hostElement$[t](e);
|
703
703
|
} catch (i) {
|
704
704
|
Q(i);
|
705
705
|
}
|
706
|
-
},
|
706
|
+
}, Ns = (s, t) => t & 4 ? x : t & 8 ? yt : t & 16 ? x.body : s, js = (s) => Ms ? {
|
707
707
|
passive: (s & 1) !== 0,
|
708
708
|
capture: (s & 2) !== 0
|
709
709
|
} : (s & 2) !== 0, pe = "http://www.w3.org/1999/xlink", P = (s, t = "") => () => {
|
710
|
-
}, ue = /* @__PURE__ */ new WeakMap(),
|
710
|
+
}, ue = /* @__PURE__ */ new WeakMap(), Ds = (s, t, e) => {
|
711
711
|
let i = dt.get(s);
|
712
|
-
|
713
|
-
},
|
714
|
-
let n =
|
715
|
-
if (s = s.nodeType === 11 ? s :
|
712
|
+
Hs && e ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, dt.set(s, i);
|
713
|
+
}, Bs = (s, t, e, i) => {
|
714
|
+
let n = Ie(t, e), o = dt.get(n);
|
715
|
+
if (s = s.nodeType === 11 ? s : x, o)
|
716
716
|
if (typeof o == "string") {
|
717
717
|
s = s.head || s;
|
718
718
|
let r = ue.get(s), a;
|
719
|
-
r || ue.set(s, r = /* @__PURE__ */ new Set()), r.has(n) || (a =
|
719
|
+
r || ue.set(s, r = /* @__PURE__ */ new Set()), r.has(n) || (a = x.createElement("style"), a.innerHTML = o, s.insertBefore(a, s.querySelector("link")), r && r.add(n));
|
720
720
|
} else
|
721
721
|
s.adoptedStyleSheets.includes(o) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, o]);
|
722
722
|
return n;
|
723
|
-
},
|
724
|
-
const t = s.$cmpMeta$, e = s.$hostElement$, i = t.$flags$, n = P("attachStyles", t.$tagName$), o =
|
723
|
+
}, Is = (s) => {
|
724
|
+
const t = s.$cmpMeta$, e = s.$hostElement$, i = t.$flags$, n = P("attachStyles", t.$tagName$), o = Bs(e.shadowRoot ? e.shadowRoot : e.getRootNode(), t, s.$modeName$);
|
725
725
|
i & 10 && (e["s-sc"] = o, e.classList.add(o + "-h"), i & 2 && e.classList.add(o + "-s")), n();
|
726
|
-
},
|
726
|
+
}, Ie = (s, t) => "sc-" + (t && s.$flags$ & 32 ? s.$tagName$ + "-" + t : s.$tagName$), zs = (s) => $i.map((t) => t(s)).find((t) => !!t), fe = {}, Fs = "http://www.w3.org/2000/svg", Ws = "http://www.w3.org/1999/xhtml", Zs = (s) => s != null, Wt = (s) => (s = typeof s, s === "object" || s === "function"), j = (s, t, ...e) => {
|
727
727
|
let i = null, n = null, o = null, r = !1, a = !1, l = [];
|
728
728
|
const c = (h) => {
|
729
729
|
for (let p = 0; p < h.length; p++)
|
@@ -737,7 +737,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
737
737
|
}
|
738
738
|
}
|
739
739
|
if (typeof s == "function")
|
740
|
-
return s(t === null ? {} : t, l,
|
740
|
+
return s(t === null ? {} : t, l, qs);
|
741
741
|
const d = lt(s, null);
|
742
742
|
return d.$attrs$ = t, l.length > 0 && (d.$children$ = l), d.$key$ = n, d.$name$ = o, d;
|
743
743
|
}, lt = (s, t) => {
|
@@ -749,9 +749,9 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
749
749
|
$children$: null
|
750
750
|
};
|
751
751
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
752
|
-
},
|
752
|
+
}, Zt = {}, Gs = (s) => s && s.$tag$ === Zt, qs = {
|
753
753
|
forEach: (s, t) => s.map(ge).forEach(t),
|
754
|
-
map: (s, t) => s.map(ge).map(t).map(
|
754
|
+
map: (s, t) => s.map(ge).map(t).map(Xs)
|
755
755
|
}, ge = (s) => ({
|
756
756
|
vattrs: s.$attrs$,
|
757
757
|
vchildren: s.$children$,
|
@@ -759,7 +759,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
759
759
|
vname: s.$name$,
|
760
760
|
vtag: s.$tag$,
|
761
761
|
vtext: s.$text$
|
762
|
-
}),
|
762
|
+
}), Xs = (s) => {
|
763
763
|
if (typeof s.vtag == "function") {
|
764
764
|
const e = Object.assign({}, s.vattrs);
|
765
765
|
return s.vkey && (e.key = s.vkey), s.vname && (e.name = s.vname), j(s.vtag, e, ...s.vchildren || []);
|
@@ -798,7 +798,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
798
798
|
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 || s.getAttribute(t) === "") && (c ? s.removeAttributeNS(pe, t) : s.removeAttribute(t)) : (!r || o & 4 || n) && !l && (i = i === !0 ? "" : i, c ? s.setAttributeNS(pe, t, i) : s.setAttribute(t, i));
|
799
799
|
}
|
800
800
|
}
|
801
|
-
},
|
801
|
+
}, Ys = /\s/, me = (s) => s ? s.split(Ys) : [], ze = (s, t, e, i) => {
|
802
802
|
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, o = s && s.$attrs$ || fe, r = t.$attrs$ || fe;
|
803
803
|
for (i in o)
|
804
804
|
i in r || $e(n, i, o[i], void 0, e, t.$flags$);
|
@@ -813,11 +813,11 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
813
813
|
// slot element does not have fallback content
|
814
814
|
1
|
815
815
|
))), n.$text$ !== null)
|
816
|
-
r = n.$elm$ =
|
816
|
+
r = n.$elm$ = x.createTextNode(n.$text$);
|
817
817
|
else if (n.$flags$ & 1)
|
818
|
-
r = n.$elm$ =
|
818
|
+
r = n.$elm$ = x.createTextNode("");
|
819
819
|
else {
|
820
|
-
if (y || (y = n.$tag$ === "svg"), r = n.$elm$ =
|
820
|
+
if (y || (y = n.$tag$ === "svg"), r = n.$elm$ = x.createElementNS(y ? Fs : Ws, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), ze(null, n, y), Zs(U) && r["s-si"] !== U && r.classList.add(r["s-si"] = U), n.$children$)
|
821
821
|
for (o = 0; o < n.$children$.length; ++o)
|
822
822
|
a = ct(s, n, o, r), a && r.appendChild(a);
|
823
823
|
n.$tag$ === "svg" ? y = !1 : r.tagName === "foreignObject" && (y = !0);
|
@@ -828,18 +828,18 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
828
828
|
const e = s.childNodes;
|
829
829
|
for (let i = e.length - 1; i >= 0; i--) {
|
830
830
|
const n = e[i];
|
831
|
-
n["s-hn"] !== vt && n["s-ol"] && (
|
831
|
+
n["s-hn"] !== vt && n["s-ol"] && (Ze(n).insertBefore(n, Gt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Ft = !0), t && Y(n, t);
|
832
832
|
}
|
833
833
|
v.$flags$ &= -2;
|
834
834
|
}, Fe = (s, t, e, i, n, o) => {
|
835
835
|
let r = s["s-cr"] && s["s-cr"].parentNode || s, a;
|
836
836
|
for (r.shadowRoot && r.tagName === vt && (r = r.shadowRoot); n <= o; ++n)
|
837
|
-
i[n] && (a = ct(null, e, n, s), a && (i[n].$elm$ = a, r.insertBefore(a,
|
837
|
+
i[n] && (a = ct(null, e, n, s), a && (i[n].$elm$ = a, r.insertBefore(a, Gt(t))));
|
838
838
|
}, We = (s, t, e, i, n) => {
|
839
839
|
for (; t <= e; ++t)
|
840
840
|
(i = s[t]) && (n = i.$elm$, Xe(i), at = !0, n["s-ol"] ? n["s-ol"].remove() : Y(n, !0), n.remove());
|
841
|
-
},
|
842
|
-
let n = 0, o = 0, r = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0], g = i[h],
|
841
|
+
}, Ks = (s, t, e, i) => {
|
842
|
+
let n = 0, o = 0, r = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0], g = i[h], C, et;
|
843
843
|
for (; n <= l && o <= h; )
|
844
844
|
if (c == null)
|
845
845
|
c = t[++n];
|
@@ -863,14 +863,14 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
863
863
|
r = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
r >= 0 ? (et = t[r], et.$tag$ !== p.$tag$ ?
|
866
|
+
r >= 0 ? (et = t[r], et.$tag$ !== p.$tag$ ? C = ct(t && t[o], e, r, s) : (N(et, p), t[r] = void 0, C = et.$elm$), p = i[++o]) : (C = ct(t && t[o], e, o, s), p = i[++o]), C && Ze(c.$elm$).insertBefore(C, Gt(c.$elm$));
|
867
867
|
}
|
868
868
|
n > l ? Fe(s, i[h + 1] == null ? null : i[h + 1].$elm$, e, i, o, h) : o > h && We(t, n, l);
|
869
|
-
}, st = (s, t) => s.$tag$ === t.$tag$ ? s.$tag$ === "slot" ? s.$name$ === t.$name$ : s.$key$ === t.$key$ : !1,
|
869
|
+
}, st = (s, t) => s.$tag$ === t.$tag$ ? s.$tag$ === "slot" ? s.$name$ === t.$name$ : s.$key$ === t.$key$ : !1, Gt = (s) => s && s["s-ol"] || s, Ze = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, N = (s, t) => {
|
870
870
|
const e = t.$elm$ = s.$elm$, i = s.$children$, n = t.$children$, o = t.$tag$, r = t.$text$;
|
871
871
|
let a;
|
872
|
-
r === null ? (y = o === "svg" ? !0 : o === "foreignObject" ? !1 : y, o === "slot" || ze(s, t, y), i !== null && n !== null ?
|
873
|
-
},
|
872
|
+
r === null ? (y = o === "svg" ? !0 : o === "foreignObject" ? !1 : y, o === "slot" || ze(s, t, y), i !== null && n !== null ? Ks(e, i, t, n) : n !== null ? (s.$text$ !== null && (e.textContent = ""), Fe(e, null, t, n, 0, n.length - 1)) : i !== null && We(i, 0, i.length - 1), y && o === "svg" && (y = !1)) : (a = e["s-cr"]) ? a.parentNode.textContent = r : s.$text$ !== r && (e.data = r);
|
873
|
+
}, Ge = (s) => {
|
874
874
|
let t = s.childNodes, e, i, n, o, r, a;
|
875
875
|
for (i = 0, n = t.length; i < n; i++)
|
876
876
|
if (e = t[i], e.nodeType === 1) {
|
@@ -886,7 +886,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
886
886
|
break;
|
887
887
|
}
|
888
888
|
}
|
889
|
-
|
889
|
+
Ge(e);
|
890
890
|
}
|
891
891
|
}, _ = [], qe = (s) => {
|
892
892
|
let t, e, i, n, o, r, a = 0, l = s.childNodes, c = l.length;
|
@@ -905,15 +905,15 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
905
905
|
}
|
906
906
|
}, ve = (s, t) => s.nodeType === 1 ? s.getAttribute("slot") === null && t === "" || s.getAttribute("slot") === t : s["s-sn"] === t ? !0 : t === "", Xe = (s) => {
|
907
907
|
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(Xe);
|
908
|
-
},
|
909
|
-
const e = s.$hostElement$, i = s.$cmpMeta$, n = s.$vnode$ || lt(null, null), o =
|
908
|
+
}, Qs = (s, t) => {
|
909
|
+
const e = s.$hostElement$, i = s.$cmpMeta$, n = s.$vnode$ || lt(null, null), o = Gs(t) ? t : j(null, null, t);
|
910
910
|
vt = e.tagName, i.$attrsToReflect$ && (o.$attrs$ = o.$attrs$ || {}, i.$attrsToReflect$.map(([r, a]) => o.$attrs$[a] = e[r])), o.$tag$ = null, o.$flags$ |= 4, s.$vnode$ = o, o.$elm$ = n.$elm$ = e.shadowRoot || e, U = e["s-sc"], Ne = e["s-cr"], je = (i.$flags$ & 1) !== 0, at = !1, N(n, o);
|
911
911
|
{
|
912
912
|
if (v.$flags$ |= 1, Ft) {
|
913
913
|
qe(o.$elm$);
|
914
914
|
let r, a, l, c, d, h, p = 0;
|
915
915
|
for (; p < _.length; p++)
|
916
|
-
r = _[p], a = r.$nodeToRelocate$, a["s-ol"] || (l =
|
916
|
+
r = _[p], a = r.$nodeToRelocate$, a["s-ol"] || (l = x.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
917
917
|
for (p = 0; p < _.length; p++)
|
918
918
|
if (r = _[p], a = r.$nodeToRelocate$, r.$slotRefNode$) {
|
919
919
|
for (c = r.$slotRefNode$.parentNode, d = r.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
@@ -925,51 +925,51 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
at &&
|
928
|
+
at && Ge(o.$elm$), v.$flags$ &= -2, _.length = 0;
|
929
929
|
}
|
930
|
-
},
|
931
|
-
const i =
|
930
|
+
}, Js = (s) => s, Vs = (s, t, e) => {
|
931
|
+
const i = Js(s);
|
932
932
|
return {
|
933
|
-
emit: (n) =>
|
933
|
+
emit: (n) => ti(i, t, {
|
934
934
|
bubbles: !!(e & 4),
|
935
935
|
composed: !!(e & 2),
|
936
936
|
cancelable: !!(e & 1),
|
937
937
|
detail: n
|
938
938
|
})
|
939
939
|
};
|
940
|
-
},
|
940
|
+
}, ti = (s, t, e) => {
|
941
941
|
const i = v.ce(t, e);
|
942
942
|
return s.dispatchEvent(i), i;
|
943
|
-
},
|
944
|
-
}, Ye = (s, t) => (s.$flags$ |= 16,
|
943
|
+
}, ei = (s, t) => {
|
944
|
+
}, Ye = (s, t) => (s.$flags$ |= 16, ei(s, s.$ancestorComponent$), yi(() => si(s, t))), si = (s, t) => {
|
945
945
|
const e = s.$hostElement$, i = P("scheduleUpdate", s.$cmpMeta$.$tagName$), n = e;
|
946
946
|
let o;
|
947
|
-
return t ? o =
|
948
|
-
},
|
947
|
+
return t ? o = D(n, "componentWillLoad") : o = D(n, "componentWillUpdate"), o = ye(o, () => D(n, "componentWillRender")), i(), ye(o, () => ii(s, n, t));
|
948
|
+
}, ii = async (s, t, e) => {
|
949
949
|
const i = s.$hostElement$, n = P("update", s.$cmpMeta$.$tagName$);
|
950
|
-
i["s-rc"], e &&
|
950
|
+
i["s-rc"], e && Is(s);
|
951
951
|
const o = P("render", s.$cmpMeta$.$tagName$);
|
952
|
-
|
953
|
-
},
|
952
|
+
ni(s, t, i), o(), n(), oi(s);
|
953
|
+
}, ni = (s, t, e) => {
|
954
954
|
try {
|
955
|
-
he = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide ||
|
955
|
+
he = t, t = t.render && t.render(), s.$flags$ &= -17, s.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide || Qs(s, t));
|
956
956
|
} catch (a) {
|
957
957
|
Q(a, s.$hostElement$);
|
958
958
|
}
|
959
959
|
return he = null, null;
|
960
|
-
},
|
960
|
+
}, oi = (s) => {
|
961
961
|
const t = s.$cmpMeta$.$tagName$, e = s.$hostElement$, i = P("postUpdate", t), n = e;
|
962
|
-
s.$ancestorComponent$,
|
963
|
-
},
|
962
|
+
s.$ancestorComponent$, D(n, "componentDidRender"), s.$flags$ & 64 ? (D(n, "componentDidUpdate"), i()) : (s.$flags$ |= 64, D(n, "componentDidLoad"), i());
|
963
|
+
}, D = (s, t, e) => {
|
964
964
|
if (s && s[t])
|
965
965
|
try {
|
966
966
|
return s[t](e);
|
967
967
|
} catch (i) {
|
968
968
|
Q(i);
|
969
969
|
}
|
970
|
-
}, ye = (s, t) => s && s.then ? s.then(t) : t(),
|
970
|
+
}, ye = (s, t) => s && s.then ? s.then(t) : t(), ri = (s, t) => s != null && !Wt(s) ? t & 4 ? s === "false" ? !1 : s === "" || !!s : t & 2 ? parseFloat(s) : t & 1 ? String(s) : s : s, ai = (s, t) => bt(s).$instanceValues$.get(t), li = (s, t, e, i) => {
|
971
971
|
const n = bt(s), o = s, r = n.$instanceValues$.get(t), a = n.$flags$, l = o;
|
972
|
-
e =
|
972
|
+
e = ri(e, i.$members$[t][0]);
|
973
973
|
const c = Number.isNaN(r) && Number.isNaN(e);
|
974
974
|
if (e !== r && !c) {
|
975
975
|
n.$instanceValues$.set(t, e);
|
@@ -991,17 +991,17 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
991
991
|
}
|
992
992
|
}
|
993
993
|
}
|
994
|
-
},
|
994
|
+
}, ci = (s, t, e) => {
|
995
995
|
if (t.$members$) {
|
996
996
|
s.watchers && (t.$watchers$ = s.watchers);
|
997
997
|
const i = Object.entries(t.$members$), n = s.prototype;
|
998
998
|
i.map(([o, [r]]) => {
|
999
999
|
(r & 31 || r & 32) && Object.defineProperty(n, o, {
|
1000
1000
|
get() {
|
1001
|
-
return
|
1001
|
+
return ai(this, o);
|
1002
1002
|
},
|
1003
1003
|
set(a) {
|
1004
|
-
|
1004
|
+
li(this, o, a, t);
|
1005
1005
|
},
|
1006
1006
|
configurable: !0,
|
1007
1007
|
enumerable: !0
|
@@ -1028,32 +1028,32 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1028
1028
|
}
|
1029
1029
|
}
|
1030
1030
|
return s;
|
1031
|
-
},
|
1031
|
+
}, di = async (s, t, e, i, n) => {
|
1032
1032
|
if (!(t.$flags$ & 32) && (n = s.constructor, t.$flags$ |= 32, customElements.whenDefined(e.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
1033
1033
|
let r = n.style;
|
1034
|
-
typeof r != "string" && (r = r[t.$modeName$ =
|
1035
|
-
const a =
|
1034
|
+
typeof r != "string" && (r = r[t.$modeName$ = zs(s)]);
|
1035
|
+
const a = Ie(e, t.$modeName$);
|
1036
1036
|
if (!dt.has(a)) {
|
1037
1037
|
const l = P("registerStyles", e.$tagName$);
|
1038
|
-
|
1038
|
+
Ds(a, r, !!(e.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
1041
|
t.$ancestorComponent$, (() => Ye(t, !0))();
|
1042
|
-
},
|
1043
|
-
},
|
1042
|
+
}, hi = (s) => {
|
1043
|
+
}, pi = (s) => {
|
1044
1044
|
if (!(v.$flags$ & 1)) {
|
1045
1045
|
const t = bt(s), e = t.$cmpMeta$, i = P("connectedCallback", e.$tagName$);
|
1046
|
-
t.$flags$ & 1 ? (
|
1046
|
+
t.$flags$ & 1 ? (Be(s, t, e.$listeners$), hi(t.$lazyInstance$)) : (t.$flags$ |= 1, e.$flags$ & 12 && ui(s), e.$members$ && Object.entries(e.$members$).map(([n, [o]]) => {
|
1047
1047
|
if (o & 31 && s.hasOwnProperty(n)) {
|
1048
1048
|
const r = s[n];
|
1049
1049
|
delete s[n], s[n] = r;
|
1050
1050
|
}
|
1051
|
-
}),
|
1051
|
+
}), di(s, t, e)), i();
|
1052
1052
|
}
|
1053
|
-
},
|
1054
|
-
const t = s["s-cr"] =
|
1053
|
+
}, ui = (s) => {
|
1054
|
+
const t = s["s-cr"] = x.createComment("");
|
1055
1055
|
t["s-cn"] = !0, s.insertBefore(t, s.firstChild);
|
1056
|
-
},
|
1056
|
+
}, fi = (s) => {
|
1057
1057
|
if (!(v.$flags$ & 1)) {
|
1058
1058
|
const t = bt(s);
|
1059
1059
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
@@ -1067,13 +1067,13 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1067
1067
|
const i = s.prototype.connectedCallback, n = s.prototype.disconnectedCallback;
|
1068
1068
|
return Object.assign(s.prototype, {
|
1069
1069
|
__registerHost() {
|
1070
|
-
|
1070
|
+
gi(this, e);
|
1071
1071
|
},
|
1072
1072
|
connectedCallback() {
|
1073
|
-
|
1073
|
+
pi(this), i && i.call(this);
|
1074
1074
|
},
|
1075
1075
|
disconnectedCallback() {
|
1076
|
-
|
1076
|
+
fi(this), n && n.call(this);
|
1077
1077
|
},
|
1078
1078
|
__attachShadow() {
|
1079
1079
|
this.attachShadow({
|
@@ -1081,18 +1081,18 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1081
1081
|
delegatesFocus: !!(e.$flags$ & 16)
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
|
-
}), s.is = e.$tagName$,
|
1085
|
-
}, Qe = /* @__PURE__ */ new WeakMap(), bt = (s) => Qe.get(s),
|
1084
|
+
}), s.is = e.$tagName$, ci(s, e);
|
1085
|
+
}, Qe = /* @__PURE__ */ new WeakMap(), bt = (s) => Qe.get(s), gi = (s, t) => {
|
1086
1086
|
const e = {
|
1087
1087
|
$flags$: 0,
|
1088
1088
|
$hostElement$: s,
|
1089
1089
|
$cmpMeta$: t,
|
1090
1090
|
$instanceValues$: /* @__PURE__ */ new Map()
|
1091
1091
|
};
|
1092
|
-
return
|
1093
|
-
}, be = (s, t) => t in s, Q = (s, t) => (0, console.error)(s, t), dt = /* @__PURE__ */ new Map(),
|
1094
|
-
s.push(e), Rt || (Rt = !0, t && v.$flags$ & 4 ?
|
1095
|
-
},
|
1092
|
+
return Be(s, e, t.$listeners$), Qe.set(s, e);
|
1093
|
+
}, be = (s, t) => t in s, Q = (s, t) => (0, console.error)(s, t), dt = /* @__PURE__ */ new Map(), $i = [], _e = [], Je = [], mi = (s, t) => (e) => {
|
1094
|
+
s.push(e), Rt || (Rt = !0, t && v.$flags$ & 4 ? vi(Ht) : v.raf(Ht));
|
1095
|
+
}, Ce = (s) => {
|
1096
1096
|
for (let t = 0; t < s.length; t++)
|
1097
1097
|
try {
|
1098
1098
|
s[t](performance.now());
|
@@ -1101,8 +1101,8 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1101
1101
|
}
|
1102
1102
|
s.length = 0;
|
1103
1103
|
}, Ht = () => {
|
1104
|
-
|
1105
|
-
},
|
1104
|
+
Ce(_e), Ce(Je), (Rt = _e.length > 0) && v.raf(Ht);
|
1105
|
+
}, vi = (s) => Rs().then(s), yi = /* @__PURE__ */ mi(Je, !0), bi = (s = {}) => {
|
1106
1106
|
const { content: t = "", title: e, attributes: i = [] } = s;
|
1107
1107
|
let n = "", o = [
|
1108
1108
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -1110,27 +1110,27 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1110
1110
|
...i
|
1111
1111
|
];
|
1112
1112
|
return e && (n = `<title>${e}</title>`), `<svg ${o.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
1113
|
-
},
|
1114
|
-
function
|
1113
|
+
}, _i = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
1114
|
+
function Ci(s) {
|
1115
1115
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
1116
1116
|
}
|
1117
|
-
class
|
1117
|
+
class xi {
|
1118
1118
|
constructor(t) {
|
1119
|
-
this.voca_component = t, this.voca_added =
|
1119
|
+
this.voca_component = t, this.voca_added = Ci(/* @__PURE__ */ new Date());
|
1120
1120
|
}
|
1121
1121
|
}
|
1122
|
-
const
|
1122
|
+
const wi = "telia-vst{display:none}", Ai = /* @__PURE__ */ Ke(class extends De {
|
1123
1123
|
constructor() {
|
1124
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
1124
|
+
super(), this.__registerHost(), this.vocaInternalUStats = Vs(this, "vocaInternalUStats", 7);
|
1125
1125
|
}
|
1126
1126
|
connectedCallback() {
|
1127
|
-
this.vocaInternalUStats.emit(new
|
1127
|
+
this.vocaInternalUStats.emit(new xi(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
|
-
return j(
|
1130
|
+
return j(Zt, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
|
-
return
|
1133
|
+
return wi;
|
1134
1134
|
}
|
1135
1135
|
}, [0, "telia-vst", {
|
1136
1136
|
dataTrackingId: [1, "data-tracking-id"]
|
@@ -1141,7 +1141,7 @@ function Ve() {
|
|
1141
1141
|
["telia-vst"].forEach((t) => {
|
1142
1142
|
switch (t) {
|
1143
1143
|
case "telia-vst":
|
1144
|
-
customElements.get(t) || customElements.define(t,
|
1144
|
+
customElements.get(t) || customElements.define(t, Ai);
|
1145
1145
|
break;
|
1146
1146
|
}
|
1147
1147
|
});
|
@@ -1150,14 +1150,14 @@ Ve();
|
|
1150
1150
|
function Ut() {
|
1151
1151
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
1152
1152
|
}
|
1153
|
-
function
|
1153
|
+
function Si() {
|
1154
1154
|
if (typeof Ut().vocadsIcons !== void 0)
|
1155
1155
|
return Ut().vocadsIcons;
|
1156
1156
|
}
|
1157
|
-
function
|
1157
|
+
function Ei() {
|
1158
1158
|
return Ut().vocadsIconsRegistered;
|
1159
1159
|
}
|
1160
|
-
const
|
1160
|
+
const ki = ".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))}", Ti = /* @__PURE__ */ Ke(class extends De {
|
1161
1161
|
constructor() {
|
1162
1162
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
1163
1163
|
}
|
@@ -1169,8 +1169,8 @@ const Ai = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1169
1169
|
getSvgString() {
|
1170
1170
|
if (this.svg)
|
1171
1171
|
return this.svg;
|
1172
|
-
if (
|
1173
|
-
const s =
|
1172
|
+
if (Ei() && this.name) {
|
1173
|
+
const s = Si();
|
1174
1174
|
return s[this.name] ? s[this.name].svg : "";
|
1175
1175
|
}
|
1176
1176
|
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"), "";
|
@@ -1181,15 +1181,15 @@ const Ai = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1181
1181
|
...t,
|
1182
1182
|
{ name: "aria-hidden", value: "true" }
|
1183
1183
|
];
|
1184
|
-
const e =
|
1185
|
-
content:
|
1184
|
+
const e = bi({
|
1185
|
+
content: _i(s),
|
1186
1186
|
attributes: t,
|
1187
1187
|
title: this.allyTitle
|
1188
1188
|
});
|
1189
|
-
return j(
|
1189
|
+
return j(Zt, { class: `telia-icon telia-icon--${this.size}` }, j("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: e }), j("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
1190
1190
|
}
|
1191
1191
|
static get style() {
|
1192
|
-
return
|
1192
|
+
return ki;
|
1193
1193
|
}
|
1194
1194
|
}, [0, "telia-icon", {
|
1195
1195
|
name: [1],
|
@@ -1198,13 +1198,13 @@ const Ai = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1198
1198
|
allyTitle: [1, "ally-title"],
|
1199
1199
|
dataTestid: [1, "data-testid"]
|
1200
1200
|
}]);
|
1201
|
-
function
|
1201
|
+
function Oi() {
|
1202
1202
|
if (typeof customElements > "u")
|
1203
1203
|
return;
|
1204
1204
|
["telia-icon", "telia-vst"].forEach((t) => {
|
1205
1205
|
switch (t) {
|
1206
1206
|
case "telia-icon":
|
1207
|
-
customElements.get(t) || customElements.define(t,
|
1207
|
+
customElements.get(t) || customElements.define(t, Ti);
|
1208
1208
|
break;
|
1209
1209
|
case "telia-vst":
|
1210
1210
|
customElements.get(t) || Ve();
|
@@ -1212,7 +1212,7 @@ function Ei() {
|
|
1212
1212
|
}
|
1213
1213
|
});
|
1214
1214
|
}
|
1215
|
-
|
1215
|
+
Oi();
|
1216
1216
|
/**
|
1217
1217
|
* @license
|
1218
1218
|
* Copyright 2017 Google LLC
|
@@ -1228,7 +1228,7 @@ const J = (s) => (t, e) => {
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const
|
1231
|
+
const Li = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt }, Pi = (s = Li, t, e) => {
|
1232
1232
|
const { kind: i, metadata: n } = e;
|
1233
1233
|
let o = globalThis.litPropertyMetadata.get(n);
|
1234
1234
|
if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
@@ -1250,7 +1250,7 @@ const ki = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged
|
|
1250
1250
|
throw Error("Unsupported decorator location: " + i);
|
1251
1251
|
};
|
1252
1252
|
function $(s) {
|
1253
|
-
return (t, e) => typeof e == "object" ?
|
1253
|
+
return (t, e) => typeof e == "object" ? Pi(s, t, e) : ((i, n, o) => {
|
1254
1254
|
const r = n.hasOwnProperty(o);
|
1255
1255
|
return n.constructor.createProperty(o, r ? { ...i, wrapped: !0 } : i), r ? Object.getOwnPropertyDescriptor(n, o) : void 0;
|
1256
1256
|
})(s, t, e);
|
@@ -1260,7 +1260,7 @@ function $(s) {
|
|
1260
1260
|
* Copyright 2017 Google LLC
|
1261
1261
|
* SPDX-License-Identifier: BSD-3-Clause
|
1262
1262
|
*/
|
1263
|
-
function
|
1263
|
+
function w(s) {
|
1264
1264
|
return $({ ...s, state: !0, attribute: !1 });
|
1265
1265
|
}
|
1266
1266
|
/**
|
@@ -1268,13 +1268,13 @@ function C(s) {
|
|
1268
1268
|
* Copyright 2020 Google LLC
|
1269
1269
|
* SPDX-License-Identifier: BSD-3-Clause
|
1270
1270
|
*/
|
1271
|
-
const
|
1271
|
+
const Mi = (s) => s.strings === void 0;
|
1272
1272
|
/**
|
1273
1273
|
* @license
|
1274
1274
|
* Copyright 2017 Google LLC
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
|
-
const _t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 },
|
1277
|
+
const _t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Ct = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1278
1278
|
let qt = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
@@ -1296,13 +1296,13 @@ let qt = class {
|
|
1296
1296
|
* Copyright 2017 Google LLC
|
1297
1297
|
* SPDX-License-Identifier: BSD-3-Clause
|
1298
1298
|
*/
|
1299
|
-
const
|
1299
|
+
const Z = (s, t) => {
|
1300
1300
|
var i;
|
1301
1301
|
const e = s._$AN;
|
1302
1302
|
if (e === void 0)
|
1303
1303
|
return !1;
|
1304
1304
|
for (const n of e)
|
1305
|
-
(i = n._$AO) == null || i.call(n, t, !1),
|
1305
|
+
(i = n._$AO) == null || i.call(n, t, !1), Z(n, t);
|
1306
1306
|
return !0;
|
1307
1307
|
}, ht = (s) => {
|
1308
1308
|
let t, e;
|
@@ -1318,26 +1318,26 @@ const G = (s, t) => {
|
|
1318
1318
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1319
1319
|
else if (e.has(s))
|
1320
1320
|
break;
|
1321
|
-
e.add(s),
|
1321
|
+
e.add(s), Ui(t);
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
|
-
function
|
1324
|
+
function Ri(s) {
|
1325
1325
|
this._$AN !== void 0 ? (ht(this), this._$AM = s, ts(this)) : this._$AM = s;
|
1326
1326
|
}
|
1327
|
-
function
|
1327
|
+
function Hi(s, t = !1, e = 0) {
|
1328
1328
|
const i = this._$AH, n = this._$AN;
|
1329
1329
|
if (n !== void 0 && n.size !== 0)
|
1330
1330
|
if (t)
|
1331
1331
|
if (Array.isArray(i))
|
1332
1332
|
for (let o = e; o < i.length; o++)
|
1333
|
-
|
1333
|
+
Z(i[o], !1), ht(i[o]);
|
1334
1334
|
else
|
1335
|
-
i != null && (
|
1335
|
+
i != null && (Z(i, !1), ht(i));
|
1336
1336
|
else
|
1337
|
-
|
1337
|
+
Z(this, s);
|
1338
1338
|
}
|
1339
|
-
const
|
1340
|
-
s.type == _t.CHILD && (s._$AP ?? (s._$AP =
|
1339
|
+
const Ui = (s) => {
|
1340
|
+
s.type == _t.CHILD && (s._$AP ?? (s._$AP = Hi), s._$AQ ?? (s._$AQ = Ri));
|
1341
1341
|
};
|
1342
1342
|
let es = class extends qt {
|
1343
1343
|
constructor() {
|
@@ -1348,10 +1348,10 @@ let es = class extends qt {
|
|
1348
1348
|
}
|
1349
1349
|
_$AO(t, e = !0) {
|
1350
1350
|
var i, n;
|
1351
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (
|
1351
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (Z(this, t), ht(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
|
-
if (
|
1354
|
+
if (Mi(this._$Ct))
|
1355
1355
|
this._$Ct._$AI(t, this);
|
1356
1356
|
else {
|
1357
1357
|
const e = [...this._$Ct._$AH];
|
@@ -1368,10 +1368,10 @@ let es = class extends qt {
|
|
1368
1368
|
* Copyright 2020 Google LLC
|
1369
1369
|
* SPDX-License-Identifier: BSD-3-Clause
|
1370
1370
|
*/
|
1371
|
-
const pt = () => new
|
1372
|
-
class
|
1371
|
+
const pt = () => new Ni();
|
1372
|
+
class Ni {
|
1373
1373
|
}
|
1374
|
-
const Lt = /* @__PURE__ */ new WeakMap(), ut =
|
1374
|
+
const Lt = /* @__PURE__ */ new WeakMap(), ut = Ct(class extends es {
|
1375
1375
|
render(s) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1404,7 +1404,7 @@ const Lt = /* @__PURE__ */ new WeakMap(), ut = xt(class extends es {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const Xt =
|
1407
|
+
const Xt = Ct(class extends qt {
|
1408
1408
|
constructor(s) {
|
1409
1409
|
var t;
|
1410
1410
|
if (super(s), s.type !== _t.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
@@ -1431,10 +1431,10 @@ const Xt = xt(class extends qt {
|
|
1431
1431
|
return E;
|
1432
1432
|
}
|
1433
1433
|
});
|
1434
|
-
var
|
1435
|
-
for (var n = i > 1 ? void 0 : i ?
|
1434
|
+
var ji = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, Bi = (s, t, e, i) => {
|
1435
|
+
for (var n = i > 1 ? void 0 : i ? Di(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1436
1436
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1437
|
-
return i && n &&
|
1437
|
+
return i && n && ji(t, e, n), n;
|
1438
1438
|
};
|
1439
1439
|
class Yt extends m {
|
1440
1440
|
constructor() {
|
@@ -1467,12 +1467,12 @@ Yt.styles = [
|
|
1467
1467
|
}
|
1468
1468
|
`
|
1469
1469
|
];
|
1470
|
-
|
1470
|
+
Bi([
|
1471
1471
|
$({ attribute: !0 })
|
1472
1472
|
], Yt.prototype, "anchor", 2);
|
1473
|
-
const
|
1474
|
-
let
|
1475
|
-
const Pt = /* @__PURE__ */ new Map(),
|
1473
|
+
const Ii = /* @__PURE__ */ new WeakMap();
|
1474
|
+
let xe = 0;
|
1475
|
+
const Pt = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new WeakSet(), Ae = () => new Promise((s) => requestAnimationFrame(s)), zi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Fi = [{ opacity: 0 }], Se = [{ opacity: 0 }, { opacity: 1 }], Ee = (s, t) => {
|
1476
1476
|
const e = s - t;
|
1477
1477
|
return e === 0 ? void 0 : e;
|
1478
1478
|
}, ke = (s, t) => {
|
@@ -1494,8 +1494,8 @@ const Pt = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new WeakSet(), Ae = (
|
|
1494
1494
|
t === 0 && (t = 1, e = { height: "1px" });
|
1495
1495
|
const i = ke(s, t);
|
1496
1496
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1497
|
-
} },
|
1498
|
-
class
|
1497
|
+
} }, Wi = { duration: 333, easing: "ease-in-out" }, Zi = ["left", "top", "width", "height", "opacity", "color", "background"], Te = /* @__PURE__ */ new WeakMap();
|
1498
|
+
class Gi extends es {
|
1499
1499
|
constructor(t) {
|
1500
1500
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === _t.CHILD)
|
1501
1501
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1515,7 +1515,7 @@ class Fi extends es {
|
|
1515
1515
|
return u;
|
1516
1516
|
}
|
1517
1517
|
getController() {
|
1518
|
-
return
|
1518
|
+
return Ii.get(this.l);
|
1519
1519
|
}
|
1520
1520
|
isDisabled() {
|
1521
1521
|
var t;
|
@@ -1529,7 +1529,7 @@ class Fi extends es {
|
|
1529
1529
|
u(t) {
|
1530
1530
|
t = t ?? {};
|
1531
1531
|
const e = this.getController();
|
1532
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1532
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Zi), this.options = t;
|
1533
1533
|
}
|
1534
1534
|
p() {
|
1535
1535
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
@@ -1566,7 +1566,7 @@ class Fi extends es {
|
|
1566
1566
|
if (o) {
|
1567
1567
|
Pt.delete(this.options.inId);
|
1568
1568
|
const { from: r, to: a } = this.O(o, n, e);
|
1569
|
-
t = this.calculateKeyframes(r, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1569
|
+
t = this.calculateKeyframes(r, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, xe++, t.forEach((l) => l.zIndex = xe);
|
1570
1570
|
} else
|
1571
1571
|
this.options.in && (t = [...this.options.in, {}]);
|
1572
1572
|
}
|
@@ -1617,13 +1617,13 @@ class Fi extends es {
|
|
1617
1617
|
return t;
|
1618
1618
|
}
|
1619
1619
|
get isHostRendered() {
|
1620
|
-
const t =
|
1620
|
+
const t = we.has(this.l);
|
1621
1621
|
return t || this.l.updateComplete.then(() => {
|
1622
|
-
|
1622
|
+
we.add(this.l);
|
1623
1623
|
}), t;
|
1624
1624
|
}
|
1625
1625
|
A(t, e = this._()) {
|
1626
|
-
const i = { ...
|
1626
|
+
const i = { ...Wi };
|
1627
1627
|
return e.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
1628
1628
|
}
|
1629
1629
|
O(t, e, i) {
|
@@ -1674,7 +1674,7 @@ class Fi extends es {
|
|
1674
1674
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1675
1675
|
}
|
1676
1676
|
}
|
1677
|
-
const Nt =
|
1677
|
+
const Nt = Ct(Gi), it = (s, t, e) => {
|
1678
1678
|
s && e.style.setProperty(t, s);
|
1679
1679
|
}, ss = (s, t) => {
|
1680
1680
|
var e, i, n, o;
|
@@ -1692,10 +1692,10 @@ const Nt = xt(Fi), it = (s, t, e) => {
|
|
1692
1692
|
t
|
1693
1693
|
);
|
1694
1694
|
};
|
1695
|
-
var
|
1696
|
-
for (var n = i > 1 ? void 0 : i ?
|
1695
|
+
var qi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, xt = (s, t, e, i) => {
|
1696
|
+
for (var n = i > 1 ? void 0 : i ? Xi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1697
1697
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1698
|
-
return i && n &&
|
1698
|
+
return i && n && qi(t, e, n), n;
|
1699
1699
|
};
|
1700
1700
|
class M extends m {
|
1701
1701
|
constructor() {
|
@@ -1726,7 +1726,7 @@ class M extends m {
|
|
1726
1726
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1727
1727
|
if (!i)
|
1728
1728
|
return u;
|
1729
|
-
const n = async (d) =>
|
1729
|
+
const n = async (d) => Ls, { type: o, content: r } = i;
|
1730
1730
|
switch (o) {
|
1731
1731
|
case "Telia": {
|
1732
1732
|
const d = await n();
|
@@ -1749,7 +1749,7 @@ class M extends m {
|
|
1749
1749
|
@click=${this.toggleActive}
|
1750
1750
|
${Nt({
|
1751
1751
|
keyframeOptions: {},
|
1752
|
-
in:
|
1752
|
+
in: zi,
|
1753
1753
|
stabilizeOut: !0,
|
1754
1754
|
skipInitial: !1
|
1755
1755
|
})}
|
@@ -1905,22 +1905,22 @@ M.styles = [
|
|
1905
1905
|
}
|
1906
1906
|
`
|
1907
1907
|
];
|
1908
|
-
|
1908
|
+
xt([
|
1909
1909
|
$({ attribute: !1 })
|
1910
1910
|
], M.prototype, "application", 2);
|
1911
|
-
|
1912
|
-
|
1911
|
+
xt([
|
1912
|
+
w()
|
1913
1913
|
], M.prototype, "active", 2);
|
1914
|
-
|
1915
|
-
|
1914
|
+
xt([
|
1915
|
+
w()
|
1916
1916
|
], M.prototype, "loaded", 2);
|
1917
|
-
|
1918
|
-
|
1917
|
+
xt([
|
1918
|
+
w()
|
1919
1919
|
], M.prototype, "icon", 2);
|
1920
|
-
var
|
1921
|
-
for (var n = i > 1 ? void 0 : i ?
|
1920
|
+
var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, T = (s, t, e, i) => {
|
1921
|
+
for (var n = i > 1 ? void 0 : i ? Ki(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1922
1922
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1923
|
-
return i && n &&
|
1923
|
+
return i && n && Yi(t, e, n), n;
|
1924
1924
|
};
|
1925
1925
|
const is = (s) => {
|
1926
1926
|
class t extends s {
|
@@ -1994,17 +1994,17 @@ ns.styles = [
|
|
1994
1994
|
* Copyright 2021 Google LLC
|
1995
1995
|
* SPDX-License-Identifier: BSD-3-Clause
|
1996
1996
|
*/
|
1997
|
-
function*
|
1997
|
+
function* Qi(s, t) {
|
1998
1998
|
if (s !== void 0) {
|
1999
1999
|
let e = 0;
|
2000
2000
|
for (const i of s)
|
2001
2001
|
yield t(i, e++);
|
2002
2002
|
}
|
2003
2003
|
}
|
2004
|
-
var Kt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Kt || {}),
|
2005
|
-
for (var n = i > 1 ? void 0 : i ?
|
2004
|
+
var Kt = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(Kt || {}), Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, tn = (s, t, e, i) => {
|
2005
|
+
for (var n = i > 1 ? void 0 : i ? Vi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2006
2006
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2007
|
-
return i && n &&
|
2007
|
+
return i && n && Ji(t, e, n), n;
|
2008
2008
|
};
|
2009
2009
|
class Qt extends m {
|
2010
2010
|
constructor() {
|
@@ -2032,7 +2032,7 @@ class Qt extends m {
|
|
2032
2032
|
}
|
2033
2033
|
render() {
|
2034
2034
|
return this.application.renderStrategy === Kt.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")), f`<div class="widget-container" ${ut(this.wrapperRef)}>
|
2035
|
-
${
|
2035
|
+
${Qi(this.nodes, (t) => t)}
|
2036
2036
|
</div>`;
|
2037
2037
|
}
|
2038
2038
|
}
|
@@ -2134,13 +2134,13 @@ Qt.styles = b`
|
|
2134
2134
|
animation: slideDown 0.3s linear;
|
2135
2135
|
}
|
2136
2136
|
`;
|
2137
|
-
|
2137
|
+
tn([
|
2138
2138
|
$({ attribute: !1 })
|
2139
2139
|
], Qt.prototype, "application", 2);
|
2140
|
-
var
|
2141
|
-
for (var n = i > 1 ? void 0 : i ?
|
2140
|
+
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, Jt = (s, t, e, i) => {
|
2141
|
+
for (var n = i > 1 ? void 0 : i ? sn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2142
2142
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2143
|
-
return i && n &&
|
2143
|
+
return i && n && en(t, e, n), n;
|
2144
2144
|
};
|
2145
2145
|
class V extends m {
|
2146
2146
|
constructor() {
|
@@ -2185,22 +2185,22 @@ Jt([
|
|
2185
2185
|
$({ attribute: !0 })
|
2186
2186
|
], V.prototype, "name", 2);
|
2187
2187
|
Jt([
|
2188
|
-
|
2188
|
+
w()
|
2189
2189
|
], V.prototype, "widget", 2);
|
2190
2190
|
Jt([
|
2191
|
-
|
2191
|
+
w()
|
2192
2192
|
], V.prototype, "status", 2);
|
2193
2193
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Yt);
|
2194
2194
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", M);
|
2195
2195
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ns);
|
2196
2196
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Qt);
|
2197
2197
|
customElements.get("ace-widget") || customElements.define("ace-widget", V);
|
2198
|
-
var
|
2199
|
-
for (var n = i > 1 ? void 0 : i ?
|
2198
|
+
var nn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, wt = (s, t, e, i) => {
|
2199
|
+
for (var n = i > 1 ? void 0 : i ? on(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2200
2200
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2201
|
-
return i && n &&
|
2201
|
+
return i && n && nn(t, e, n), n;
|
2202
2202
|
};
|
2203
|
-
let
|
2203
|
+
let I = class extends m {
|
2204
2204
|
constructor() {
|
2205
2205
|
super(...arguments), this.loading = !0, this.entries = [];
|
2206
2206
|
}
|
@@ -2235,7 +2235,7 @@ let B = class extends m {
|
|
2235
2235
|
${Nt({
|
2236
2236
|
keyframeOptions: {},
|
2237
2237
|
in: Se,
|
2238
|
-
out:
|
2238
|
+
out: Fi,
|
2239
2239
|
stabilizeOut: !0,
|
2240
2240
|
skipInitial: !1
|
2241
2241
|
})}
|
@@ -2243,7 +2243,7 @@ let B = class extends m {
|
|
2243
2243
|
</div> `;
|
2244
2244
|
}
|
2245
2245
|
};
|
2246
|
-
|
2246
|
+
I.styles = [
|
2247
2247
|
b`
|
2248
2248
|
:host {
|
2249
2249
|
display: block;
|
@@ -2257,22 +2257,22 @@ B.styles = [
|
|
2257
2257
|
}
|
2258
2258
|
`
|
2259
2259
|
];
|
2260
|
-
|
2260
|
+
wt([
|
2261
2261
|
$({ type: Boolean })
|
2262
|
-
],
|
2263
|
-
|
2262
|
+
], I.prototype, "loading", 2);
|
2263
|
+
wt([
|
2264
2264
|
$({ attribute: !1 })
|
2265
|
-
],
|
2266
|
-
|
2267
|
-
|
2268
|
-
],
|
2269
|
-
|
2265
|
+
], I.prototype, "session", 2);
|
2266
|
+
wt([
|
2267
|
+
w()
|
2268
|
+
], I.prototype, "entries", 2);
|
2269
|
+
I = wt([
|
2270
2270
|
J("ace-conversation-session")
|
2271
|
-
],
|
2272
|
-
var
|
2273
|
-
for (var n = i > 1 ? void 0 : i ?
|
2271
|
+
], I);
|
2272
|
+
var rn = Object.defineProperty, an = Object.getOwnPropertyDescriptor, os = (s, t, e, i) => {
|
2273
|
+
for (var n = i > 1 ? void 0 : i ? an(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2274
2274
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2275
|
-
return i && n &&
|
2275
|
+
return i && n && rn(t, e, n), n;
|
2276
2276
|
};
|
2277
2277
|
let ft = class extends m {
|
2278
2278
|
connectedCallback() {
|
@@ -2294,6 +2294,12 @@ let ft = class extends m {
|
|
2294
2294
|
let e = "";
|
2295
2295
|
return s ? t ? e = `${s}: ${this._getTimestamp(t)}` : e = s : t && (e = this._getTimestamp(t)), f`<p class="conversation-timestamp">${e}</p>`;
|
2296
2296
|
}
|
2297
|
+
_renderDeliveryStatus(s) {
|
2298
|
+
return s === "delivered" ? f`<telia-icon
|
2299
|
+
svg=${Ts.svg}
|
2300
|
+
size="sm"
|
2301
|
+
></telia-icon>` : s === "failed" ? f`<telia-icon svg=${ks.svg} size="sm"></telia-icon>` : f`<telia-icon svg=${Os.svg} size="sm"></telia-icon>`;
|
2302
|
+
}
|
2297
2303
|
_dispatchEntryAction(s) {
|
2298
2304
|
this.entry.actions$.next(s.detail);
|
2299
2305
|
}
|
@@ -2340,10 +2346,12 @@ let ft = class extends m {
|
|
2340
2346
|
`
|
2341
2347
|
)}
|
2342
2348
|
</div>
|
2343
|
-
|
2349
|
+
<div class="message-details">
|
2350
|
+
${this._renderTimestamp(
|
2344
2351
|
this.entry.sender.name || "",
|
2345
2352
|
this.entry.timestamp
|
2346
2353
|
)}
|
2354
|
+
</div>
|
2347
2355
|
</div>`;
|
2348
2356
|
case St.User:
|
2349
2357
|
return f`<div class="conversation-user-message">
|
@@ -2358,10 +2366,13 @@ let ft = class extends m {
|
|
2358
2366
|
`
|
2359
2367
|
)}
|
2360
2368
|
</div>
|
2361
|
-
|
2369
|
+
<div class="message-details">
|
2370
|
+
${this._renderTimestamp(
|
2362
2371
|
this.entry.sender.name || "",
|
2363
2372
|
this.entry.timestamp
|
2364
2373
|
)}
|
2374
|
+
${this._renderDeliveryStatus(this.entry.status)}
|
2375
|
+
</div>
|
2365
2376
|
</div>`;
|
2366
2377
|
default:
|
2367
2378
|
return u;
|
@@ -2388,6 +2399,12 @@ ft.styles = [
|
|
2388
2399
|
color: var(--bubble-text-color);
|
2389
2400
|
}
|
2390
2401
|
|
2402
|
+
.message-details {
|
2403
|
+
display: flex;
|
2404
|
+
gap: var(--spacing-sm);
|
2405
|
+
align-items: center;
|
2406
|
+
}
|
2407
|
+
|
2391
2408
|
.conversation-system-message {
|
2392
2409
|
display: flex;
|
2393
2410
|
flex-direction: column;
|
@@ -2412,6 +2429,7 @@ ft.styles = [
|
|
2412
2429
|
display: flex;
|
2413
2430
|
flex-direction: column;
|
2414
2431
|
align-items: flex-end;
|
2432
|
+
gap: var(--spacing-sm);
|
2415
2433
|
}
|
2416
2434
|
|
2417
2435
|
.conversation-agent-message {
|
@@ -2420,6 +2438,7 @@ ft.styles = [
|
|
2420
2438
|
display: grid;
|
2421
2439
|
margin-right: 10%;
|
2422
2440
|
width: 90%;
|
2441
|
+
gap: var(--spacing-sm);
|
2423
2442
|
|
2424
2443
|
grid-template-columns: 1fr;
|
2425
2444
|
grid-template-rows: 1fr auto;
|
@@ -2480,16 +2499,16 @@ ft = os([
|
|
2480
2499
|
* Copyright 2021 Google LLC
|
2481
2500
|
* SPDX-License-Identifier: BSD-3-Clause
|
2482
2501
|
*/
|
2483
|
-
const
|
2502
|
+
const ln = (s, t, e) => {
|
2484
2503
|
for (const i of t)
|
2485
2504
|
if (i[0] === s)
|
2486
2505
|
return (0, i[1])();
|
2487
2506
|
return e == null ? void 0 : e();
|
2488
2507
|
};
|
2489
|
-
var
|
2490
|
-
for (var n = i > 1 ? void 0 : i ?
|
2508
|
+
var cn = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, rs = (s, t, e, i) => {
|
2509
|
+
for (var n = i > 1 ? void 0 : i ? dn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2491
2510
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2492
|
-
return i && n &&
|
2511
|
+
return i && n && cn(t, e, n), n;
|
2493
2512
|
};
|
2494
2513
|
let gt = class extends m {
|
2495
2514
|
render() {
|
@@ -2497,7 +2516,7 @@ let gt = class extends m {
|
|
2497
2516
|
<div class="message-group">
|
2498
2517
|
${this.group.items.map(
|
2499
2518
|
([s, t]) => f`
|
2500
|
-
${
|
2519
|
+
${ln(
|
2501
2520
|
s,
|
2502
2521
|
[["html", () => f`<message-type-html .message=${t} />`]],
|
2503
2522
|
() => {
|
@@ -2536,10 +2555,10 @@ rs([
|
|
2536
2555
|
gt = rs([
|
2537
2556
|
J("conversation-group")
|
2538
2557
|
], gt);
|
2539
|
-
var
|
2540
|
-
for (var n = i > 1 ? void 0 : i ?
|
2558
|
+
var hn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, un = (s, t, e, i) => {
|
2559
|
+
for (var n = i > 1 ? void 0 : i ? pn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2541
2560
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2542
|
-
return i && n &&
|
2561
|
+
return i && n && hn(t, e, n), n;
|
2543
2562
|
};
|
2544
2563
|
let jt = class extends m {
|
2545
2564
|
render() {
|
@@ -2587,7 +2606,7 @@ jt.styles = [
|
|
2587
2606
|
}
|
2588
2607
|
`
|
2589
2608
|
];
|
2590
|
-
jt =
|
2609
|
+
jt = un([
|
2591
2610
|
J("ace-typing-state")
|
2592
2611
|
], jt);
|
2593
2612
|
/**
|
@@ -2595,7 +2614,7 @@ jt = dn([
|
|
2595
2614
|
* Copyright 2017 Google LLC
|
2596
2615
|
* SPDX-License-Identifier: BSD-3-Clause
|
2597
2616
|
*/
|
2598
|
-
class
|
2617
|
+
class Dt extends qt {
|
2599
2618
|
constructor(t) {
|
2600
2619
|
if (super(t), this.et = u, t.type !== _t.CHILD)
|
2601
2620
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2614,17 +2633,17 @@ class It extends qt {
|
|
2614
2633
|
return e.raw = e, this.vt = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
2615
2634
|
}
|
2616
2635
|
}
|
2617
|
-
|
2618
|
-
const
|
2619
|
-
var
|
2620
|
-
for (var n = i > 1 ? void 0 : i ?
|
2636
|
+
Dt.directiveName = "unsafeHTML", Dt.resultType = 1;
|
2637
|
+
const fn = Ct(Dt);
|
2638
|
+
var gn = Object.defineProperty, $n = Object.getOwnPropertyDescriptor, as = (s, t, e, i) => {
|
2639
|
+
for (var n = i > 1 ? void 0 : i ? $n(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2621
2640
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2622
|
-
return i && n &&
|
2641
|
+
return i && n && gn(t, e, n), n;
|
2623
2642
|
};
|
2624
2643
|
let $t = class extends m {
|
2625
2644
|
render() {
|
2626
2645
|
return f`<div class="message-type-html">
|
2627
|
-
${
|
2646
|
+
${fn(this.message.content)}
|
2628
2647
|
</div>`;
|
2629
2648
|
}
|
2630
2649
|
};
|
@@ -2649,7 +2668,7 @@ as([
|
|
2649
2668
|
$t = as([
|
2650
2669
|
J("message-type-html")
|
2651
2670
|
], $t);
|
2652
|
-
class
|
2671
|
+
class mn {
|
2653
2672
|
constructor(t) {
|
2654
2673
|
this._message = null, this._host = t, t.addController(this);
|
2655
2674
|
}
|
@@ -2665,17 +2684,17 @@ class fn {
|
|
2665
2684
|
return !!this.message;
|
2666
2685
|
}
|
2667
2686
|
}
|
2668
|
-
var
|
2669
|
-
for (var n = i > 1 ? void 0 : i ?
|
2687
|
+
var vn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
|
2688
|
+
for (var n = i > 1 ? void 0 : i ? yn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2670
2689
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2671
|
-
return i && n &&
|
2690
|
+
return i && n && vn(t, e, n), n;
|
2672
2691
|
};
|
2673
|
-
const
|
2692
|
+
const bn = (s) => {
|
2674
2693
|
s.scrollTo ? s.scrollTo({ top: s.scrollHeight, behavior: "smooth" }) : s.scrollTop = s.scrollHeight;
|
2675
2694
|
}, ls = is(m);
|
2676
2695
|
class tt extends ls {
|
2677
2696
|
constructor() {
|
2678
|
-
super(...arguments), this.toast = new
|
2697
|
+
super(...arguments), this.toast = new mn(this), this.message = "", this.platform = null, this.session = null, this.disabled = !1, this.conversationContentRef = pt(), this.formRef = pt(), this.chatScrollHeight = 0;
|
2679
2698
|
}
|
2680
2699
|
async connectedCallback() {
|
2681
2700
|
super.connectedCallback();
|
@@ -2720,7 +2739,7 @@ class tt extends ls {
|
|
2720
2739
|
const t = this.conversationContentRef.value;
|
2721
2740
|
t && setTimeout(() => {
|
2722
2741
|
const e = t.scrollHeight;
|
2723
|
-
e > this.chatScrollHeight && (
|
2742
|
+
e > this.chatScrollHeight && (bn(t), this.chatScrollHeight = e);
|
2724
2743
|
}, 1e3);
|
2725
2744
|
}
|
2726
2745
|
disableInput() {
|
@@ -2769,7 +2788,7 @@ class tt extends ls {
|
|
2769
2788
|
title=${t.getOrFallback("conversation.send-alt", "Send")}
|
2770
2789
|
?disabled=${this.disabled}
|
2771
2790
|
>
|
2772
|
-
<telia-icon svg=${
|
2791
|
+
<telia-icon svg=${Ps.svg}></telia-icon>
|
2773
2792
|
</button>
|
2774
2793
|
</div>
|
2775
2794
|
</form>
|
@@ -2934,16 +2953,16 @@ tt.styles = [
|
|
2934
2953
|
`
|
2935
2954
|
];
|
2936
2955
|
At([
|
2937
|
-
|
2956
|
+
w()
|
2938
2957
|
], tt.prototype, "message", 2);
|
2939
2958
|
At([
|
2940
|
-
|
2959
|
+
w()
|
2941
2960
|
], tt.prototype, "platform", 2);
|
2942
2961
|
At([
|
2943
|
-
|
2962
|
+
w()
|
2944
2963
|
], tt.prototype, "session", 2);
|
2945
2964
|
At([
|
2946
|
-
|
2965
|
+
w()
|
2947
2966
|
], tt.prototype, "disabled", 2);
|
2948
2967
|
export {
|
2949
2968
|
tt as Conversation,
|