@telia-ace/widget-conversation-flamingo 1.1.42 → 1.1.43-rc.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,20 +1,20 @@
|
|
1
|
-
import { ConversationMessageType as
|
1
|
+
import { ConversationMessageType as Et } from "./index.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const nt = globalThis,
|
7
|
+
const nt = globalThis, It = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, zt = 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 !== zt)
|
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 (It && 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, zt), 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, It), 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, zt);
|
36
36
|
}, ds = (s, t) => {
|
37
|
-
if (
|
37
|
+
if (It)
|
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 = It ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
45
45
|
let e = "";
|
46
46
|
for (const i of t.cssRules)
|
47
47
|
e += i.cssText;
|
@@ -52,7 +52,7 @@ const cs = (s) => new Le(typeof s == "string" ? s : s + "", void 0, It), b = (s,
|
|
52
52
|
* Copyright 2017 Google LLC
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
54
54
|
*/
|
55
|
-
const { is: hs, defineProperty: ps, getOwnPropertyDescriptor: us, getOwnPropertyNames: fs, getOwnPropertySymbols: gs, getPrototypeOf: $s } = Object, S = globalThis, ee = S.trustedTypes, ms = ee ? ee.emptyScript : "",
|
55
|
+
const { is: hs, defineProperty: ps, getOwnPropertyDescriptor: us, getOwnPropertyNames: fs, getOwnPropertySymbols: gs, getPrototypeOf: $s } = Object, S = globalThis, ee = S.trustedTypes, ms = ee ? ee.emptyScript : "", kt = S.reactiveElementPolyfillSupport, F = (s, t) => s, ot = { toAttribute(s, t) {
|
56
56
|
switch (t) {
|
57
57
|
case Boolean:
|
58
58
|
s = s ? ms : null;
|
@@ -80,7 +80,7 @@ const { is: hs, defineProperty: ps, getOwnPropertyDescriptor: us, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return e;
|
83
|
-
} },
|
83
|
+
} }, Ft = (s, t) => !hs(s, t), se = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: Ft };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), S.litPropertyMetadata ?? (S.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
85
|
let R = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
@@ -215,7 +215,7 @@ let R = class extends HTMLElement {
|
|
215
215
|
}
|
216
216
|
requestUpdate(t, e, i, n = !1, o) {
|
217
217
|
if (t !== void 0) {
|
218
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
218
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? Ft)(n ? o : this[t], e))
|
219
219
|
return;
|
220
220
|
this.C(t, e, i);
|
221
221
|
}
|
@@ -293,14 +293,14 @@ let R = class extends HTMLElement {
|
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[F("elementProperties")] = /* @__PURE__ */ new Map(), R[F("finalized")] = /* @__PURE__ */ new Map(),
|
296
|
+
R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[F("elementProperties")] = /* @__PURE__ */ new Map(), R[F("finalized")] = /* @__PURE__ */ new Map(), kt == null || kt({ ReactiveElement: R }), (S.reactiveElementVersions ?? (S.reactiveElementVersions = [])).push("2.0.1");
|
297
297
|
/**
|
298
298
|
* @license
|
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, 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",
|
303
|
-
\f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ne = /-->/g, oe = />/g, k = RegExp(`>|${
|
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", Tt = `[
|
303
|
+
\f\r]`, z = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ne = /-->/g, oe = />/g, k = RegExp(`>|${Tt}(?:([^\\s"'>=/]+)(${Tt}*=${Tt}*(?:[^
|
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) {
|
306
306
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
@@ -336,7 +336,7 @@ class X {
|
|
336
336
|
for (const h of n.getAttributeNames())
|
337
337
|
if (h.endsWith(Pe)) {
|
338
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 :
|
339
|
+
l.push({ type: 1, index: o, name: C[2], strings: g, ctor: C[1] === "." ? xs : C[1] === "?" ? ws : C[1] === "@" ? As : vt }), 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)) {
|
@@ -466,7 +466,7 @@ class K {
|
|
466
466
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
467
467
|
}
|
468
468
|
}
|
469
|
-
class
|
469
|
+
class vt {
|
470
470
|
get tagName() {
|
471
471
|
return this.element.tagName;
|
472
472
|
}
|
@@ -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 xs extends
|
496
|
+
class xs extends vt {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class xs extends mt {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let ws = class extends
|
504
|
+
let ws = class extends vt {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,7 +509,7 @@ let ws = class extends mt {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class As extends
|
512
|
+
class As extends vt {
|
513
513
|
constructor(t, e, i, n, o) {
|
514
514
|
super(t, e, i, n, o), this.type = 5;
|
515
515
|
}
|
@@ -535,8 +535,8 @@ class Ss {
|
|
535
535
|
B(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
|
-
const
|
539
|
-
|
538
|
+
const Ot = W.litHtmlPolyfillSupport;
|
539
|
+
Ot == null || Ot(X, K), (W.litHtmlVersions ?? (W.litHtmlVersions = [])).push("3.0.2");
|
540
540
|
const Es = (s, t, e) => {
|
541
541
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
542
542
|
let n = i._$litPart$;
|
@@ -578,8 +578,8 @@ let m = class extends R {
|
|
578
578
|
};
|
579
579
|
var Oe;
|
580
580
|
m._$litElement$ = !0, m.finalized = !0, (Oe = globalThis.litElementHydrateSupport) == null || Oe.call(globalThis, { LitElement: m });
|
581
|
-
const
|
582
|
-
|
581
|
+
const Lt = globalThis.litElementPolyfillSupport;
|
582
|
+
Lt == null || Lt({ LitElement: m });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
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,
|
@@ -665,8 +665,8 @@ const ks = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
665
665
|
transformTagName: !1,
|
666
666
|
attachStyles: !0
|
667
667
|
};
|
668
|
-
let U, Ne,
|
669
|
-
const
|
668
|
+
let U, Ne, yt, je = !1, at = !1, Wt = !1, y = !1, he = null, Ht = !1;
|
669
|
+
const bt = typeof window < "u" ? window : {}, x = bt.document || { head: {} }, De = bt.HTMLElement || class {
|
670
670
|
}, v = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -703,7 +703,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
703
703
|
} catch (i) {
|
704
704
|
Q(i);
|
705
705
|
}
|
706
|
-
}, Ns = (s, t) => t & 4 ? x : t & 8 ?
|
706
|
+
}, Ns = (s, t) => t & 4 ? x : t & 8 ? bt : 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 = "") => () => {
|
@@ -723,11 +723,11 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
723
723
|
}, Is = (s) => {
|
724
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
|
-
}, 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,
|
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, Zt = (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++)
|
730
|
-
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((r = typeof s != "function" && !
|
730
|
+
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((r = typeof s != "function" && !Zt(i)) && (i = String(i)), r && a ? l[l.length - 1].$text$ += i : l.push(r ? lt(null, i) : i), a = r);
|
731
731
|
};
|
732
732
|
if (c(e), t) {
|
733
733
|
t.key && (n = t.key), t.name && (o = t.name);
|
@@ -749,7 +749,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
749
749
|
$children$: null
|
750
750
|
};
|
751
751
|
return e.$attrs$ = null, e.$key$ = null, e.$name$ = null, e;
|
752
|
-
},
|
752
|
+
}, Gt = {}, Gs = (s) => s && s.$tag$ === Gt, qs = {
|
753
753
|
forEach: (s, t) => s.map(ge).forEach(t),
|
754
754
|
map: (s, t) => s.map(ge).map(t).map(Xs)
|
755
755
|
}, ge = (s) => ({
|
@@ -781,9 +781,9 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
781
781
|
if (t === "ref")
|
782
782
|
i && i(s);
|
783
783
|
else if (!s.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
784
|
-
t[2] === "-" ? t = t.slice(3) : be(
|
784
|
+
t[2] === "-" ? t = t.slice(3) : be(bt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), e && v.rel(s, t, e, !1), i && v.ael(s, t, i, !1);
|
785
785
|
else {
|
786
|
-
const l =
|
786
|
+
const l = Zt(i);
|
787
787
|
if ((r || l && i !== null) && !n)
|
788
788
|
try {
|
789
789
|
if (s.tagName.includes("-"))
|
@@ -806,7 +806,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
806
806
|
$e(n, i, o[i], r[i], e, t.$flags$);
|
807
807
|
}, ct = (s, t, e, i) => {
|
808
808
|
let n = t.$children$[e], o = 0, r, a, l;
|
809
|
-
if (je || (
|
809
|
+
if (je || (Wt = !0, n.$tag$ === "slot" && (U && i.classList.add(U + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
@@ -822,19 +822,19 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
822
822
|
a = ct(s, n, o, r), a && r.appendChild(a);
|
823
823
|
n.$tag$ === "svg" ? y = !1 : r.tagName === "foreignObject" && (y = !0);
|
824
824
|
}
|
825
|
-
return r["s-hn"] =
|
825
|
+
return r["s-hn"] = yt, n.$flags$ & 3 && (r["s-sr"] = !0, r["s-cr"] = Ne, r["s-sn"] = n.$name$ || "", l = s && s.$children$ && s.$children$[e], l && l.$tag$ === n.$tag$ && s.$elm$ && Y(s.$elm$, !1)), r;
|
826
826
|
}, Y = (s, t) => {
|
827
827
|
v.$flags$ |= 1;
|
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"] !==
|
831
|
+
n["s-hn"] !== yt && n["s-ol"] && (Ze(n).insertBefore(n, qt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Wt = !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
|
-
for (r.shadowRoot && r.tagName ===
|
837
|
-
i[n] && (a = ct(null, e, n, s), a && (i[n].$elm$ = a, r.insertBefore(a,
|
836
|
+
for (r.shadowRoot && r.tagName === yt && (r = r.shadowRoot); n <= o; ++n)
|
837
|
+
i[n] && (a = ct(null, e, n, s), a && (i[n].$elm$ = a, r.insertBefore(a, qt(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());
|
@@ -863,10 +863,10 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
863
863
|
r = a;
|
864
864
|
break;
|
865
865
|
}
|
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,
|
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, qt(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, qt = (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
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);
|
@@ -907,9 +907,9 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
907
907
|
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(Xe);
|
908
908
|
}, Qs = (s, t) => {
|
909
909
|
const e = s.$hostElement$, i = s.$cmpMeta$, n = s.$vnode$ || lt(null, null), o = Gs(t) ? t : j(null, null, t);
|
910
|
-
|
910
|
+
yt = 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
|
-
if (v.$flags$ |= 1,
|
912
|
+
if (v.$flags$ |= 1, Wt) {
|
913
913
|
qe(o.$elm$);
|
914
914
|
let r, a, l, c, d, h, p = 0;
|
915
915
|
for (; p < _.length; p++)
|
@@ -967,8 +967,8 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
967
967
|
} catch (i) {
|
968
968
|
Q(i);
|
969
969
|
}
|
970
|
-
}, ye = (s, t) => s && s.then ? s.then(t) : t(), ri = (s, t) => s != null && !
|
971
|
-
const n =
|
970
|
+
}, ye = (s, t) => s && s.then ? s.then(t) : t(), ri = (s, t) => s != null && !Zt(s) ? t & 4 ? s === "false" ? !1 : s === "" || !!s : t & 2 ? parseFloat(s) : t & 1 ? String(s) : s : s, ai = (s, t) => _t(s).$instanceValues$.get(t), li = (s, t, e, i) => {
|
971
|
+
const n = _t(s), o = s, r = n.$instanceValues$.get(t), a = n.$flags$, l = o;
|
972
972
|
e = ri(e, i.$members$[t][0]);
|
973
973
|
const c = Number.isNaN(r) && Number.isNaN(e);
|
974
974
|
if (e !== r && !c) {
|
@@ -1042,7 +1042,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
1042
1042
|
}, hi = (s) => {
|
1043
1043
|
}, pi = (s) => {
|
1044
1044
|
if (!(v.$flags$ & 1)) {
|
1045
|
-
const t =
|
1045
|
+
const t = _t(s), e = t.$cmpMeta$, i = P("connectedCallback", e.$tagName$);
|
1046
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];
|
@@ -1055,7 +1055,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
1055
1055
|
t["s-cn"] = !0, s.insertBefore(t, s.firstChild);
|
1056
1056
|
}, fi = (s) => {
|
1057
1057
|
if (!(v.$flags$ & 1)) {
|
1058
|
-
const t =
|
1058
|
+
const t = _t(s);
|
1059
1059
|
t.$rmListeners$ && (t.$rmListeners$.map((e) => e()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
1061
|
}, Ke = (s, t) => {
|
@@ -1082,7 +1082,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
1084
|
}), s.is = e.$tagName$, ci(s, e);
|
1085
|
-
}, Qe = /* @__PURE__ */ new WeakMap(),
|
1085
|
+
}, Qe = /* @__PURE__ */ new WeakMap(), _t = (s) => Qe.get(s), gi = (s, t) => {
|
1086
1086
|
const e = {
|
1087
1087
|
$flags$: 0,
|
1088
1088
|
$hostElement$: s,
|
@@ -1091,7 +1091,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
1091
1091
|
};
|
1092
1092
|
return Be(s, e, t.$listeners$), Qe.set(s, e);
|
1093
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),
|
1094
|
+
s.push(e), Ht || (Ht = !0, t && v.$flags$ & 4 ? vi(Ut) : v.raf(Ut));
|
1095
1095
|
}, Ce = (s) => {
|
1096
1096
|
for (let t = 0; t < s.length; t++)
|
1097
1097
|
try {
|
@@ -1100,8 +1100,8 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, D
|
|
1100
1100
|
Q(e);
|
1101
1101
|
}
|
1102
1102
|
s.length = 0;
|
1103
|
-
},
|
1104
|
-
Ce(_e), Ce(Je), (
|
1103
|
+
}, Ut = () => {
|
1104
|
+
Ce(_e), Ce(Je), (Ht = _e.length > 0) && v.raf(Ut);
|
1105
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 = [
|
@@ -1127,7 +1127,7 @@ const wi = "telia-vst{display:none}", Ai = /* @__PURE__ */ Ke(class extends De {
|
|
1127
1127
|
this.vocaInternalUStats.emit(new xi(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
|
-
return j(
|
1130
|
+
return j(Gt, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
1133
|
return wi;
|
@@ -1147,15 +1147,15 @@ function Ve() {
|
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
1149
|
Ve();
|
1150
|
-
function
|
1150
|
+
function Nt() {
|
1151
1151
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
1152
1152
|
}
|
1153
1153
|
function Si() {
|
1154
|
-
if (typeof
|
1155
|
-
return
|
1154
|
+
if (typeof Nt().vocadsIcons !== void 0)
|
1155
|
+
return Nt().vocadsIcons;
|
1156
1156
|
}
|
1157
1157
|
function Ei() {
|
1158
|
-
return
|
1158
|
+
return Nt().vocadsIconsRegistered;
|
1159
1159
|
}
|
1160
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() {
|
@@ -1186,7 +1186,7 @@ const ki = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1186
1186
|
attributes: t,
|
1187
1187
|
title: this.allyTitle
|
1188
1188
|
});
|
1189
|
-
return j(
|
1189
|
+
return j(Gt, { 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
1192
|
return ki;
|
@@ -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 Li = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged:
|
1231
|
+
const Li = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: Ft }, 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") {
|
@@ -1274,8 +1274,8 @@ const Mi = (s) => s.strings === void 0;
|
|
1274
1274
|
* Copyright 2017 Google LLC
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
|
-
const
|
1278
|
-
let
|
1277
|
+
const Ct = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, xt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1278
|
+
let Xt = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
1281
1281
|
get _$AU() {
|
@@ -1337,9 +1337,9 @@ function Hi(s, t = !1, e = 0) {
|
|
1337
1337
|
Z(this, s);
|
1338
1338
|
}
|
1339
1339
|
const Ui = (s) => {
|
1340
|
-
s.type ==
|
1340
|
+
s.type == Ct.CHILD && (s._$AP ?? (s._$AP = Hi), s._$AQ ?? (s._$AQ = Ri));
|
1341
1341
|
};
|
1342
|
-
let es = class extends
|
1342
|
+
let es = class extends Xt {
|
1343
1343
|
constructor() {
|
1344
1344
|
super(...arguments), this._$AN = void 0;
|
1345
1345
|
}
|
@@ -1371,7 +1371,7 @@ let es = class extends qt {
|
|
1371
1371
|
const pt = () => new Ni();
|
1372
1372
|
class Ni {
|
1373
1373
|
}
|
1374
|
-
const
|
1374
|
+
const Pt = /* @__PURE__ */ new WeakMap(), ut = xt(class extends es {
|
1375
1375
|
render(s) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1383,14 +1383,14 @@ const Lt = /* @__PURE__ */ new WeakMap(), ut = Ct(class extends es {
|
|
1383
1383
|
ot(s) {
|
1384
1384
|
if (typeof this.G == "function") {
|
1385
1385
|
const t = this.ct ?? globalThis;
|
1386
|
-
let e =
|
1387
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1386
|
+
let e = Pt.get(t);
|
1387
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Pt.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ct, s);
|
1388
1388
|
} else
|
1389
1389
|
this.G.value = s;
|
1390
1390
|
}
|
1391
1391
|
get rt() {
|
1392
1392
|
var s, t;
|
1393
|
-
return typeof this.G == "function" ? (s =
|
1393
|
+
return typeof this.G == "function" ? (s = Pt.get(this.ct ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1394
1394
|
}
|
1395
1395
|
disconnected() {
|
1396
1396
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1404,10 +1404,10 @@ const Lt = /* @__PURE__ */ new WeakMap(), ut = Ct(class extends es {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const
|
1407
|
+
const ft = xt(class extends Xt {
|
1408
1408
|
constructor(s) {
|
1409
1409
|
var t;
|
1410
|
-
if (super(s), s.type !==
|
1410
|
+
if (super(s), s.type !== Ct.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
1411
1411
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1412
1412
|
}
|
1413
1413
|
render(s) {
|
@@ -1472,13 +1472,13 @@ Bi([
|
|
1472
1472
|
], Yt.prototype, "anchor", 2);
|
1473
1473
|
const Ii = /* @__PURE__ */ new WeakMap();
|
1474
1474
|
let xe = 0;
|
1475
|
-
const
|
1475
|
+
const Mt = /* @__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) => {
|
1479
1479
|
const e = s / t;
|
1480
1480
|
return e === 1 ? void 0 : e;
|
1481
|
-
},
|
1481
|
+
}, Rt = { left: (s, t) => {
|
1482
1482
|
const e = Ee(s, t);
|
1483
1483
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1484
1484
|
}, top: (s, t) => {
|
@@ -1497,7 +1497,7 @@ const Pt = /* @__PURE__ */ new Map(), we = /* @__PURE__ */ new WeakSet(), Ae = (
|
|
1497
1497
|
} }, Wi = { duration: 333, easing: "ease-in-out" }, Zi = ["left", "top", "width", "height", "opacity", "color", "background"], Te = /* @__PURE__ */ new WeakMap();
|
1498
1498
|
class Gi extends es {
|
1499
1499
|
constructor(t) {
|
1500
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type ===
|
1500
|
+
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === Ct.CHILD)
|
1501
1501
|
throw Error("The `animate` directive must be used in attribute position.");
|
1502
1502
|
this.createFinished();
|
1503
1503
|
}
|
@@ -1534,7 +1534,7 @@ class Gi extends es {
|
|
1534
1534
|
p() {
|
1535
1535
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1536
1536
|
return this.options.properties.forEach((n) => {
|
1537
|
-
const o = e[n] ?? (
|
1537
|
+
const o = e[n] ?? (Rt[n] ? void 0 : i[n]), r = Number(o);
|
1538
1538
|
t[n] = isNaN(r) ? o + "" : r;
|
1539
1539
|
}), t;
|
1540
1540
|
}
|
@@ -1562,9 +1562,9 @@ class Gi extends es {
|
|
1562
1562
|
const { from: o, to: r } = this.O(this.g, n, e);
|
1563
1563
|
this.log("measured", [this.g, n, o, r]), t = this.calculateKeyframes(o, r);
|
1564
1564
|
} else {
|
1565
|
-
const o =
|
1565
|
+
const o = Mt.get(this.options.inId);
|
1566
1566
|
if (o) {
|
1567
|
-
|
1567
|
+
Mt.delete(this.options.inId);
|
1568
1568
|
const { from: r, to: a } = this.O(o, n, e);
|
1569
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
|
@@ -1583,7 +1583,7 @@ class Gi extends es {
|
|
1583
1583
|
}
|
1584
1584
|
async disconnected() {
|
1585
1585
|
var e;
|
1586
|
-
if (!this.o || (this.options.id !== void 0 &&
|
1586
|
+
if (!this.o || (this.options.id !== void 0 && Mt.set(this.options.id, this.g), this.options.out === void 0))
|
1587
1587
|
return;
|
1588
1588
|
if (this.prepare(), await Ae(), (e = this.t) == null ? void 0 : e.isConnected) {
|
1589
1589
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
@@ -1640,8 +1640,8 @@ class Gi extends es {
|
|
1640
1640
|
const a = {};
|
1641
1641
|
for (const l in e) {
|
1642
1642
|
const c = t[l], d = e[l];
|
1643
|
-
if (l in
|
1644
|
-
const h =
|
1643
|
+
if (l in Rt) {
|
1644
|
+
const h = Rt[l];
|
1645
1645
|
if (c === void 0 || d === void 0)
|
1646
1646
|
continue;
|
1647
1647
|
const p = h(c, d);
|
@@ -1674,7 +1674,7 @@ class Gi extends es {
|
|
1674
1674
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1675
1675
|
}
|
1676
1676
|
}
|
1677
|
-
const
|
1677
|
+
const jt = xt(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,7 +1692,7 @@ const Nt = Ct(Gi), it = (s, t, e) => {
|
|
1692
1692
|
t
|
1693
1693
|
);
|
1694
1694
|
};
|
1695
|
-
var qi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor,
|
1695
|
+
var qi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, wt = (s, t, e, i) => {
|
1696
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
1698
|
return i && n && qi(t, e, n), n;
|
@@ -1747,7 +1747,7 @@ class M extends m {
|
|
1747
1747
|
<button
|
1748
1748
|
class="trigger-label"
|
1749
1749
|
@click=${this.toggleActive}
|
1750
|
-
${
|
1750
|
+
${jt({
|
1751
1751
|
keyframeOptions: {},
|
1752
1752
|
in: zi,
|
1753
1753
|
stabilizeOut: !0,
|
@@ -1759,7 +1759,7 @@ class M extends m {
|
|
1759
1759
|
` : u}
|
1760
1760
|
|
1761
1761
|
<button
|
1762
|
-
class=${
|
1762
|
+
class=${ft({
|
1763
1763
|
trigger: !0,
|
1764
1764
|
active: this.active,
|
1765
1765
|
rendered: this.loaded
|
@@ -1905,16 +1905,16 @@ M.styles = [
|
|
1905
1905
|
}
|
1906
1906
|
`
|
1907
1907
|
];
|
1908
|
-
|
1908
|
+
wt([
|
1909
1909
|
$({ attribute: !1 })
|
1910
1910
|
], M.prototype, "application", 2);
|
1911
|
-
|
1911
|
+
wt([
|
1912
1912
|
w()
|
1913
1913
|
], M.prototype, "active", 2);
|
1914
|
-
|
1914
|
+
wt([
|
1915
1915
|
w()
|
1916
1916
|
], M.prototype, "loaded", 2);
|
1917
|
-
|
1917
|
+
wt([
|
1918
1918
|
w()
|
1919
1919
|
], M.prototype, "icon", 2);
|
1920
1920
|
var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, T = (s, t, e, i) => {
|
@@ -2195,7 +2195,7 @@ 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 nn = Object.defineProperty, on = Object.getOwnPropertyDescriptor,
|
2198
|
+
var nn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, At = (s, t, e, i) => {
|
2199
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
2201
|
return i && n && nn(t, e, n), n;
|
@@ -2221,7 +2221,7 @@ let I = class extends m {
|
|
2221
2221
|
(s) => f`<div class="conversation-entry" tabindex="-1">
|
2222
2222
|
<conversation-entry
|
2223
2223
|
.entry=${s}
|
2224
|
-
${
|
2224
|
+
${jt({
|
2225
2225
|
keyframeOptions: {},
|
2226
2226
|
in: Se,
|
2227
2227
|
stabilizeOut: !0,
|
@@ -2232,7 +2232,7 @@ let I = class extends m {
|
|
2232
2232
|
</div>`
|
2233
2233
|
)}
|
2234
2234
|
${this.loading ? f`<ace-typing-state
|
2235
|
-
${
|
2235
|
+
${jt({
|
2236
2236
|
keyframeOptions: {},
|
2237
2237
|
in: Se,
|
2238
2238
|
out: Fi,
|
@@ -2257,16 +2257,16 @@ I.styles = [
|
|
2257
2257
|
}
|
2258
2258
|
`
|
2259
2259
|
];
|
2260
|
-
|
2260
|
+
At([
|
2261
2261
|
$({ type: Boolean })
|
2262
2262
|
], I.prototype, "loading", 2);
|
2263
|
-
|
2263
|
+
At([
|
2264
2264
|
$({ attribute: !1 })
|
2265
2265
|
], I.prototype, "session", 2);
|
2266
|
-
|
2266
|
+
At([
|
2267
2267
|
w()
|
2268
2268
|
], I.prototype, "entries", 2);
|
2269
|
-
I =
|
2269
|
+
I = At([
|
2270
2270
|
J("ace-conversation-session")
|
2271
2271
|
], I);
|
2272
2272
|
var rn = Object.defineProperty, an = Object.getOwnPropertyDescriptor, os = (s, t, e, i) => {
|
@@ -2274,7 +2274,7 @@ var rn = Object.defineProperty, an = Object.getOwnPropertyDescriptor, os = (s, t
|
|
2274
2274
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2275
2275
|
return i && n && rn(t, e, n), n;
|
2276
2276
|
};
|
2277
|
-
let
|
2277
|
+
let gt = class extends m {
|
2278
2278
|
connectedCallback() {
|
2279
2279
|
var s;
|
2280
2280
|
super.connectedCallback(), (s = this.entry.didUpdate) == null || s.subscribe(() => {
|
@@ -2298,7 +2298,11 @@ let ft = class extends m {
|
|
2298
2298
|
return s === "delivered" ? f`<telia-icon
|
2299
2299
|
svg=${Ts.svg}
|
2300
2300
|
size="sm"
|
2301
|
-
></telia-icon>` : s === "failed" ? f`<telia-icon
|
2301
|
+
></telia-icon>` : s === "failed" ? f`<telia-icon
|
2302
|
+
svg=${ks.svg}
|
2303
|
+
size="sm"
|
2304
|
+
title="Message could not be delivered"
|
2305
|
+
></telia-icon>` : f`<telia-icon svg=${Os.svg} size="sm"></telia-icon>`;
|
2302
2306
|
}
|
2303
2307
|
_dispatchEntryAction(s) {
|
2304
2308
|
this.entry.actions$.next(s.detail);
|
@@ -2306,7 +2310,7 @@ let ft = class extends m {
|
|
2306
2310
|
render() {
|
2307
2311
|
var s, t;
|
2308
2312
|
switch (this.entry.type) {
|
2309
|
-
case
|
2313
|
+
case Et.System:
|
2310
2314
|
return f`
|
2311
2315
|
<div class="conversation-system-message">
|
2312
2316
|
${this.entry.messages.map(
|
@@ -2324,9 +2328,9 @@ let ft = class extends m {
|
|
2324
2328
|
<span>${this._getTimestamp(this.entry.timestamp)}</span>
|
2325
2329
|
</div>
|
2326
2330
|
`;
|
2327
|
-
case
|
2331
|
+
case Et.Agent:
|
2328
2332
|
return f`<div
|
2329
|
-
class=${
|
2333
|
+
class=${ft({
|
2330
2334
|
"conversation-agent-message": !0,
|
2331
2335
|
"has-avatar": !!((s = this.entry.sender) != null && s.avatar)
|
2332
2336
|
})}
|
@@ -2353,8 +2357,13 @@ let ft = class extends m {
|
|
2353
2357
|
)}
|
2354
2358
|
</div>
|
2355
2359
|
</div>`;
|
2356
|
-
case
|
2357
|
-
return f`<div
|
2360
|
+
case Et.User:
|
2361
|
+
return f`<div
|
2362
|
+
class=${ft({
|
2363
|
+
"conversation-user-message": !0,
|
2364
|
+
"has-error": this.entry.status === "failed"
|
2365
|
+
})}
|
2366
|
+
>
|
2358
2367
|
<div class="entry-content">
|
2359
2368
|
${this.entry.messages.map(
|
2360
2369
|
(e) => f`
|
@@ -2379,7 +2388,7 @@ let ft = class extends m {
|
|
2379
2388
|
}
|
2380
2389
|
}
|
2381
2390
|
};
|
2382
|
-
|
2391
|
+
gt.styles = [
|
2383
2392
|
b`
|
2384
2393
|
:host {
|
2385
2394
|
box-sizing: border-box;
|
@@ -2432,6 +2441,14 @@ ft.styles = [
|
|
2432
2441
|
gap: var(--spacing-sm);
|
2433
2442
|
}
|
2434
2443
|
|
2444
|
+
.conversation-user-message.has-error {
|
2445
|
+
opacity: 0.7;
|
2446
|
+
}
|
2447
|
+
|
2448
|
+
.conversation-user-message.has-error .message-details {
|
2449
|
+
color: var(--error-text-color);
|
2450
|
+
}
|
2451
|
+
|
2435
2452
|
.conversation-agent-message {
|
2436
2453
|
--bubble-bg-color: var(--agent-bg-color);
|
2437
2454
|
--bubble-text-color: var(--agent-text-color);
|
@@ -2490,10 +2507,10 @@ ft.styles = [
|
|
2490
2507
|
];
|
2491
2508
|
os([
|
2492
2509
|
$({ attribute: !1 })
|
2493
|
-
],
|
2494
|
-
|
2510
|
+
], gt.prototype, "entry", 2);
|
2511
|
+
gt = os([
|
2495
2512
|
J("conversation-entry")
|
2496
|
-
],
|
2513
|
+
], gt);
|
2497
2514
|
/**
|
2498
2515
|
* @license
|
2499
2516
|
* Copyright 2021 Google LLC
|
@@ -2510,7 +2527,7 @@ var cn = Object.defineProperty, dn = Object.getOwnPropertyDescriptor, rs = (s, t
|
|
2510
2527
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2511
2528
|
return i && n && cn(t, e, n), n;
|
2512
2529
|
};
|
2513
|
-
let
|
2530
|
+
let $t = class extends m {
|
2514
2531
|
render() {
|
2515
2532
|
return f`
|
2516
2533
|
<div class="message-group">
|
@@ -2533,7 +2550,7 @@ let gt = class extends m {
|
|
2533
2550
|
`;
|
2534
2551
|
}
|
2535
2552
|
};
|
2536
|
-
|
2553
|
+
$t.styles = [
|
2537
2554
|
b`
|
2538
2555
|
:host {
|
2539
2556
|
box-sizing: border-box;
|
@@ -2551,16 +2568,16 @@ gt.styles = [
|
|
2551
2568
|
];
|
2552
2569
|
rs([
|
2553
2570
|
$({ attribute: !1 })
|
2554
|
-
],
|
2555
|
-
|
2571
|
+
], $t.prototype, "group", 2);
|
2572
|
+
$t = rs([
|
2556
2573
|
J("conversation-group")
|
2557
|
-
],
|
2574
|
+
], $t);
|
2558
2575
|
var hn = Object.defineProperty, pn = Object.getOwnPropertyDescriptor, un = (s, t, e, i) => {
|
2559
2576
|
for (var n = i > 1 ? void 0 : i ? pn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2560
2577
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2561
2578
|
return i && n && hn(t, e, n), n;
|
2562
2579
|
};
|
2563
|
-
let
|
2580
|
+
let Dt = class extends m {
|
2564
2581
|
render() {
|
2565
2582
|
return f`<div class="container">
|
2566
2583
|
<div class="dot"></div>
|
@@ -2569,7 +2586,7 @@ let jt = class extends m {
|
|
2569
2586
|
</div>`;
|
2570
2587
|
}
|
2571
2588
|
};
|
2572
|
-
|
2589
|
+
Dt.styles = [
|
2573
2590
|
b`
|
2574
2591
|
:host {
|
2575
2592
|
display: block;
|
@@ -2606,17 +2623,17 @@ jt.styles = [
|
|
2606
2623
|
}
|
2607
2624
|
`
|
2608
2625
|
];
|
2609
|
-
|
2626
|
+
Dt = un([
|
2610
2627
|
J("ace-typing-state")
|
2611
|
-
],
|
2628
|
+
], Dt);
|
2612
2629
|
/**
|
2613
2630
|
* @license
|
2614
2631
|
* Copyright 2017 Google LLC
|
2615
2632
|
* SPDX-License-Identifier: BSD-3-Clause
|
2616
2633
|
*/
|
2617
|
-
class
|
2634
|
+
class Bt extends Xt {
|
2618
2635
|
constructor(t) {
|
2619
|
-
if (super(t), this.et = u, t.type !==
|
2636
|
+
if (super(t), this.et = u, t.type !== Ct.CHILD)
|
2620
2637
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
2621
2638
|
}
|
2622
2639
|
render(t) {
|
@@ -2633,21 +2650,21 @@ class Dt extends qt {
|
|
2633
2650
|
return e.raw = e, this.vt = { _$litType$: this.constructor.resultType, strings: e, values: [] };
|
2634
2651
|
}
|
2635
2652
|
}
|
2636
|
-
|
2637
|
-
const fn =
|
2653
|
+
Bt.directiveName = "unsafeHTML", Bt.resultType = 1;
|
2654
|
+
const fn = xt(Bt);
|
2638
2655
|
var gn = Object.defineProperty, $n = Object.getOwnPropertyDescriptor, as = (s, t, e, i) => {
|
2639
2656
|
for (var n = i > 1 ? void 0 : i ? $n(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2640
2657
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2641
2658
|
return i && n && gn(t, e, n), n;
|
2642
2659
|
};
|
2643
|
-
let
|
2660
|
+
let mt = class extends m {
|
2644
2661
|
render() {
|
2645
2662
|
return f`<div class="message-type-html">
|
2646
2663
|
${fn(this.message.content)}
|
2647
2664
|
</div>`;
|
2648
2665
|
}
|
2649
2666
|
};
|
2650
|
-
|
2667
|
+
mt.styles = [
|
2651
2668
|
b`
|
2652
2669
|
:host {
|
2653
2670
|
box-sizing: border-box;
|
@@ -2660,14 +2677,17 @@ $t.styles = [
|
|
2660
2677
|
padding: 0;
|
2661
2678
|
word-break: break-word;
|
2662
2679
|
}
|
2680
|
+
a {
|
2681
|
+
word-break: break-all;
|
2682
|
+
}
|
2663
2683
|
`
|
2664
2684
|
];
|
2665
2685
|
as([
|
2666
2686
|
$({ attribute: !1 })
|
2667
|
-
],
|
2668
|
-
|
2687
|
+
], mt.prototype, "message", 2);
|
2688
|
+
mt = as([
|
2669
2689
|
J("message-type-html")
|
2670
|
-
],
|
2690
|
+
], mt);
|
2671
2691
|
class mn {
|
2672
2692
|
constructor(t) {
|
2673
2693
|
this._message = null, this._host = t, t.addController(this);
|
@@ -2684,7 +2704,7 @@ class mn {
|
|
2684
2704
|
return !!this.message;
|
2685
2705
|
}
|
2686
2706
|
}
|
2687
|
-
var vn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor,
|
2707
|
+
var vn = Object.defineProperty, yn = Object.getOwnPropertyDescriptor, St = (s, t, e, i) => {
|
2688
2708
|
for (var n = i > 1 ? void 0 : i ? yn(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
2689
2709
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
2690
2710
|
return i && n && vn(t, e, n), n;
|
@@ -2755,7 +2775,7 @@ class tt extends ls {
|
|
2755
2775
|
const t = this.application.texts;
|
2756
2776
|
return f` <div
|
2757
2777
|
@action=${this._actionHandler}
|
2758
|
-
class=${
|
2778
|
+
class=${ft({
|
2759
2779
|
conversation: !0,
|
2760
2780
|
disabled: this.disabled,
|
2761
2781
|
"conversation--has-toast": this.toast.hasMessage(),
|
@@ -2829,6 +2849,8 @@ tt.styles = [
|
|
2829
2849
|
--toast-bg: #eb5185;
|
2830
2850
|
--toast-text-color: white;
|
2831
2851
|
|
2852
|
+
--error-text-color: #eb5185;
|
2853
|
+
|
2832
2854
|
--message-info-color: var(
|
2833
2855
|
--conversation-message-info-color,
|
2834
2856
|
var(--text-color)
|
@@ -2952,16 +2974,16 @@ tt.styles = [
|
|
2952
2974
|
}
|
2953
2975
|
`
|
2954
2976
|
];
|
2955
|
-
|
2977
|
+
St([
|
2956
2978
|
w()
|
2957
2979
|
], tt.prototype, "message", 2);
|
2958
|
-
|
2980
|
+
St([
|
2959
2981
|
w()
|
2960
2982
|
], tt.prototype, "platform", 2);
|
2961
|
-
|
2983
|
+
St([
|
2962
2984
|
w()
|
2963
2985
|
], tt.prototype, "session", 2);
|
2964
|
-
|
2986
|
+
St([
|
2965
2987
|
w()
|
2966
2988
|
], tt.prototype, "disabled", 2);
|
2967
2989
|
export {
|