@telia-ace/widget-conversation-flamingo 1.1.70-rc.26 → 1.1.70-rc.27
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation.d.ts +2 -0
- package/index.js +72 -35
- package/index.mjs +159 -121
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -9,7 +9,7 @@ var $t = (s, e, t) => {
|
|
9
9
|
throw TypeError("Cannot add the same private member more than once");
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
|
-
var
|
12
|
+
var He = (s, e, t) => (Ai(s, e, "access private method"), t);
|
13
13
|
const Rl = async (s) => {
|
14
14
|
s.registerComponent("conversation", Promise.resolve().then(() => Ol));
|
15
15
|
};
|
@@ -436,7 +436,7 @@ var Pi = function() {
|
|
436
436
|
try {
|
437
437
|
t.next(e);
|
438
438
|
} catch (n) {
|
439
|
-
|
439
|
+
De(n);
|
440
440
|
}
|
441
441
|
}, s.prototype.error = function(e) {
|
442
442
|
var t = this.partialObserver;
|
@@ -444,17 +444,17 @@ var Pi = function() {
|
|
444
444
|
try {
|
445
445
|
t.error(e);
|
446
446
|
} catch (n) {
|
447
|
-
|
447
|
+
De(n);
|
448
448
|
}
|
449
449
|
else
|
450
|
-
|
450
|
+
De(e);
|
451
451
|
}, s.prototype.complete = function() {
|
452
452
|
var e = this.partialObserver;
|
453
453
|
if (e.complete)
|
454
454
|
try {
|
455
455
|
e.complete();
|
456
456
|
} catch (t) {
|
457
|
-
|
457
|
+
De(t);
|
458
458
|
}
|
459
459
|
}, s;
|
460
460
|
}(), Rt = function(s) {
|
@@ -481,7 +481,7 @@ var Pi = function() {
|
|
481
481
|
}
|
482
482
|
return e;
|
483
483
|
}(Zt);
|
484
|
-
function
|
484
|
+
function De(s) {
|
485
485
|
ys(s);
|
486
486
|
}
|
487
487
|
function Ri(s) {
|
@@ -592,9 +592,9 @@ function K(s) {
|
|
592
592
|
};
|
593
593
|
}
|
594
594
|
function P(s, e, t, n, i) {
|
595
|
-
return new
|
595
|
+
return new Hi(s, e, t, n, i);
|
596
596
|
}
|
597
|
-
var
|
597
|
+
var Hi = function(s) {
|
598
598
|
be(e, s);
|
599
599
|
function e(t, n, i, r, o, a) {
|
600
600
|
var l = s.call(this, t) || this;
|
@@ -629,7 +629,7 @@ var Di = function(s) {
|
|
629
629
|
s.prototype.unsubscribe.call(this), !n && ((t = this.onFinalize) === null || t === void 0 || t.call(this));
|
630
630
|
}
|
631
631
|
}, e;
|
632
|
-
}(Zt),
|
632
|
+
}(Zt), Di = gs(function(s) {
|
633
633
|
return function() {
|
634
634
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
635
635
|
};
|
@@ -644,7 +644,7 @@ var Di = function(s) {
|
|
644
644
|
return n.operator = t, n;
|
645
645
|
}, e.prototype._throwIfClosed = function() {
|
646
646
|
if (this.closed)
|
647
|
-
throw new
|
647
|
+
throw new Di();
|
648
648
|
}, e.prototype.next = function(t) {
|
649
649
|
var n = this;
|
650
650
|
Ze(function() {
|
@@ -732,7 +732,7 @@ var Di = function(s) {
|
|
732
732
|
var n, i;
|
733
733
|
return (i = (n = this.source) === null || n === void 0 ? void 0 : n.subscribe(t)) !== null && i !== void 0 ? i : ms;
|
734
734
|
}, e;
|
735
|
-
}(_),
|
735
|
+
}(_), U = function(s) {
|
736
736
|
be(e, s);
|
737
737
|
function e(t) {
|
738
738
|
var n = s.call(this) || this;
|
@@ -829,7 +829,7 @@ function As(s) {
|
|
829
829
|
function Es(s) {
|
830
830
|
return $(s == null ? void 0 : s.getReader);
|
831
831
|
}
|
832
|
-
function
|
832
|
+
function B(s) {
|
833
833
|
if (s instanceof A)
|
834
834
|
return s;
|
835
835
|
if (s != null) {
|
@@ -977,10 +977,10 @@ function Os(s, e) {
|
|
977
977
|
});
|
978
978
|
}
|
979
979
|
function Gi(s, e) {
|
980
|
-
return
|
980
|
+
return B(s).pipe(Os(e), Ls(e));
|
981
981
|
}
|
982
982
|
function Xi(s, e) {
|
983
|
-
return
|
983
|
+
return B(s).pipe(Os(e), Ls(e));
|
984
984
|
}
|
985
985
|
function Vi(s, e) {
|
986
986
|
return new A(function(t) {
|
@@ -1044,7 +1044,7 @@ function tr(s, e) {
|
|
1044
1044
|
throw _s(s);
|
1045
1045
|
}
|
1046
1046
|
function lt(s, e) {
|
1047
|
-
return e ? tr(s, e) :
|
1047
|
+
return e ? tr(s, e) : B(s);
|
1048
1048
|
}
|
1049
1049
|
function It() {
|
1050
1050
|
for (var s = [], e = 0; e < arguments.length; e++)
|
@@ -1134,21 +1134,21 @@ function dr(s, e, t, n, i, r, o, a) {
|
|
1134
1134
|
}, b = function(f) {
|
1135
1135
|
r && e.next(f), c++;
|
1136
1136
|
var I = !1;
|
1137
|
-
|
1138
|
-
i == null || i(
|
1137
|
+
B(t(f, h++)).subscribe(P(e, function(N) {
|
1138
|
+
i == null || i(N), r ? d(N) : e.next(N);
|
1139
1139
|
}, function() {
|
1140
1140
|
I = !0;
|
1141
1141
|
}, void 0, function() {
|
1142
1142
|
if (I)
|
1143
1143
|
try {
|
1144
1144
|
c--;
|
1145
|
-
for (var
|
1145
|
+
for (var N = function() {
|
1146
1146
|
var V = l.shift();
|
1147
1147
|
o ? F(e, o, function() {
|
1148
1148
|
return b(V);
|
1149
1149
|
}) : b(V);
|
1150
1150
|
}; l.length && c < n; )
|
1151
|
-
|
1151
|
+
N();
|
1152
1152
|
p();
|
1153
1153
|
} catch (V) {
|
1154
1154
|
e.error(V);
|
@@ -1165,7 +1165,7 @@ function Gt(s, e, t) {
|
|
1165
1165
|
return t === void 0 && (t = 1 / 0), $(e) ? Gt(function(n, i) {
|
1166
1166
|
return Qe(function(r, o) {
|
1167
1167
|
return e(n, r, i, o);
|
1168
|
-
})(
|
1168
|
+
})(B(s(n, i)));
|
1169
1169
|
}, t) : (typeof e == "number" && (t = e), K(function(n, i) {
|
1170
1170
|
return dr(n, i, s, t);
|
1171
1171
|
}));
|
@@ -1185,7 +1185,7 @@ function Ke(s, e, t, n) {
|
|
1185
1185
|
if (!r && Kt(s))
|
1186
1186
|
return Gt(function(a) {
|
1187
1187
|
return Ke(a, e, t);
|
1188
|
-
})(
|
1188
|
+
})(B(s));
|
1189
1189
|
if (!r)
|
1190
1190
|
throw new TypeError("Invalid event target");
|
1191
1191
|
return new A(function(a) {
|
@@ -1219,7 +1219,7 @@ function xr() {
|
|
1219
1219
|
for (var s = [], e = 0; e < arguments.length; e++)
|
1220
1220
|
s[e] = arguments[e];
|
1221
1221
|
var t = Qt(s), n = Ni(s, 1 / 0), i = s;
|
1222
|
-
return i.length ? i.length === 1 ?
|
1222
|
+
return i.length ? i.length === 1 ? B(i[0]) : fr(n)(lt(i, t)) : Pe;
|
1223
1223
|
}
|
1224
1224
|
function Mt(s) {
|
1225
1225
|
return s <= 0 ? function() {
|
@@ -1239,7 +1239,7 @@ function pe(s, e) {
|
|
1239
1239
|
t.subscribe(P(n, function(l) {
|
1240
1240
|
i == null || i.unsubscribe();
|
1241
1241
|
var c = 0, h = r++;
|
1242
|
-
|
1242
|
+
B(s(l, h)).subscribe(i = P(n, function(u) {
|
1243
1243
|
return n.next(e ? e(l, u, h, c++) : u);
|
1244
1244
|
}, function() {
|
1245
1245
|
i = null, a();
|
@@ -1251,7 +1251,7 @@ function pe(s, e) {
|
|
1251
1251
|
}
|
1252
1252
|
function zt(s) {
|
1253
1253
|
return K(function(e, t) {
|
1254
|
-
|
1254
|
+
B(s).subscribe(P(t, function() {
|
1255
1255
|
return t.complete();
|
1256
1256
|
}, Ye)), !t.closed && e.subscribe(t);
|
1257
1257
|
});
|
@@ -1264,7 +1264,7 @@ function Ut() {
|
|
1264
1264
|
for (var r = s.length, o = new Array(r), a = s.map(function() {
|
1265
1265
|
return !1;
|
1266
1266
|
}), l = !1, c = function(u) {
|
1267
|
-
|
1267
|
+
B(s[u]).subscribe(P(i, function(p) {
|
1268
1268
|
o[u] = p, !l && !a[u] && (a[u] = !0, (l = a.every(Oe)) && (a = null));
|
1269
1269
|
}, Ye));
|
1270
1270
|
}, h = 0; h < r; h++)
|
@@ -1359,7 +1359,7 @@ class _r {
|
|
1359
1359
|
}
|
1360
1360
|
class Il {
|
1361
1361
|
constructor(e, t) {
|
1362
|
-
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new
|
1362
|
+
this.name = e, this.component = t, this.print$ = new _(), this.typingState$ = new U(!1), this.complete$ = new _(), this.system = this.createSystem(), this.rehydrate$ = new _(), this.saveToCurrentSession$ = new _(), this.showChatOverlay$ = new U(!1), this.onComplete = () => this.complete$.asObservable();
|
1363
1363
|
}
|
1364
1364
|
connect(e = {}) {
|
1365
1365
|
this.complete$.pipe(Mt(1)).subscribe(() => {
|
@@ -1736,8 +1736,8 @@ ae.elementStyles = [], ae.shadowRootOptions = { mode: "open" }, ae[xe("elementPr
|
|
1736
1736
|
*/
|
1737
1737
|
const we = globalThis, Xe = we.trustedTypes, Pn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, zs = "$lit$", q = `lit$${(Math.random() + "").slice(9)}$`, Us = "?" + q, Ir = `<${Us}>`, se = document, Ce = () => se.createComment(""), Ae = (s) => s === null || typeof s != "object" && typeof s != "function", js = Array.isArray, Mr = (s) => js(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _t = `[
|
1738
1738
|
\f\r]`, ye = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Rn = /-->/g, In = />/g, J = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
1739
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g,
|
1740
|
-
function
|
1739
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Mn = /'/g, zn = /"/g, Hs = /^(?:script|style|textarea|title)$/i, zr = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = zr(1), Q = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), Un = /* @__PURE__ */ new WeakMap(), te = se.createTreeWalker(se, 129);
|
1740
|
+
function Ds(s, e) {
|
1741
1741
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1742
1742
|
throw Error("invalid template strings array");
|
1743
1743
|
return Pn !== void 0 ? Pn.createHTML(e) : e;
|
@@ -1749,11 +1749,11 @@ const Ur = (s, e) => {
|
|
1749
1749
|
const l = s[a];
|
1750
1750
|
let c, h, u = -1, p = 0;
|
1751
1751
|
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
1752
|
-
p = o.lastIndex, o === ye ? h[1] === "!--" ? o = Rn : h[1] !== void 0 ? o = In : h[2] !== void 0 ? (
|
1752
|
+
p = o.lastIndex, o === ye ? h[1] === "!--" ? o = Rn : h[1] !== void 0 ? o = In : h[2] !== void 0 ? (Hs.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = J) : h[3] !== void 0 && (o = J) : o === J ? h[0] === ">" ? (o = i ?? ye, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? J : h[3] === '"' ? zn : Mn) : o === zn || o === Mn ? o = J : o === Rn || o === In ? o = ye : (o = J, i = void 0);
|
1753
1753
|
const d = o === J && s[a + 1].startsWith("/>") ? " " : "";
|
1754
1754
|
r += o === ye ? l + Ir : u >= 0 ? (n.push(c), l.slice(0, u) + zs + l.slice(u) + q + d) : l + q + (u === -2 ? a : d);
|
1755
1755
|
}
|
1756
|
-
return [
|
1756
|
+
return [Ds(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1757
1757
|
};
|
1758
1758
|
class Ee {
|
1759
1759
|
constructor({ strings: e, _$litType$: t }, n) {
|
@@ -1771,10 +1771,10 @@ class Ee {
|
|
1771
1771
|
for (const u of i.getAttributeNames())
|
1772
1772
|
if (u.endsWith(zs)) {
|
1773
1773
|
const p = h[o++], d = i.getAttribute(u).split(q), b = /([.?@])?(.*)/.exec(p);
|
1774
|
-
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ?
|
1774
|
+
l.push({ type: 1, index: r, name: b[2], strings: d, ctor: b[1] === "." ? Hr : b[1] === "?" ? Dr : b[1] === "@" ? Br : ht }), i.removeAttribute(u);
|
1775
1775
|
} else
|
1776
1776
|
u.startsWith(q) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1777
|
-
if (
|
1777
|
+
if (Hs.test(i.tagName)) {
|
1778
1778
|
const u = i.textContent.split(q), p = u.length - 1;
|
1779
1779
|
if (p > 0) {
|
1780
1780
|
i.textContent = Xe ? Xe.emptyScript : "";
|
@@ -1869,7 +1869,7 @@ class Re {
|
|
1869
1869
|
}
|
1870
1870
|
$(e) {
|
1871
1871
|
var r;
|
1872
|
-
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ee.createElement(
|
1872
|
+
const { values: t, _$litType$: n } = e, i = typeof n == "number" ? this._$AC(e) : (n.el === void 0 && (n.el = Ee.createElement(Ds(n.h, n.h[0]), this.options)), n);
|
1873
1873
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1874
1874
|
this._$AH.p(t);
|
1875
1875
|
else {
|
@@ -1928,7 +1928,7 @@ class ht {
|
|
1928
1928
|
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1929
1929
|
}
|
1930
1930
|
}
|
1931
|
-
class
|
1931
|
+
class Hr extends ht {
|
1932
1932
|
constructor() {
|
1933
1933
|
super(...arguments), this.type = 3;
|
1934
1934
|
}
|
@@ -1936,7 +1936,7 @@ class Dr extends ht {
|
|
1936
1936
|
this.element[this.name] = e === g ? void 0 : e;
|
1937
1937
|
}
|
1938
1938
|
}
|
1939
|
-
let
|
1939
|
+
let Dr = class extends ht {
|
1940
1940
|
constructor() {
|
1941
1941
|
super(...arguments), this.type = 4;
|
1942
1942
|
}
|
@@ -2016,7 +2016,7 @@ k._$litElement$ = !0, k.finalized = !0, (ps = globalThis.litElementHydrateSuppor
|
|
2016
2016
|
const Ct = globalThis.litElementPolyfillSupport;
|
2017
2017
|
Ct == null || Ct({ LitElement: k });
|
2018
2018
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2019
|
-
const qr = { 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>' }, Zr = { name: "check-circle-filled", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Wr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Yr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Qr = { name: "close-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, jn = { 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>' }, Kr = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, Gr = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' },
|
2019
|
+
const qr = { 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>' }, Zr = { name: "check-circle-filled", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9829 16.5431 47.4569 4.01712 32 4ZM44.5613 24.5793L31.6382 43.9639C31.2806 44.5011 30.7008 44.8493 30.0586 44.9126C29.988 44.9197 29.9171 44.9232 29.8462 44.9231C29.275 44.9229 28.7272 44.696 28.3233 44.2921L19.7079 35.6767C19.1639 35.1326 18.9514 34.3396 19.1505 33.5964C19.3497 32.8533 19.9302 32.2728 20.6734 32.0736C21.4166 31.8745 22.2095 32.087 22.7536 32.631L29.5117 39.3881L40.9772 22.1899C41.4016 21.5439 42.1396 21.1749 42.9111 21.2229C43.6825 21.2709 44.3691 21.7286 44.7101 22.4223C45.0511 23.1159 44.9944 23.9391 44.5613 24.5793Z"/></svg>' }, Wr = { name: "check-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9998 4C16.5358 4 3.99976 16.536 3.99976 32C3.99976 47.464 16.5358 60 31.9998 60C47.4637 60 59.9998 47.464 59.9998 32C59.9826 16.5431 47.4566 4.01712 31.9998 4ZM31.9998 55.6923C18.9149 55.6923 8.30745 45.0849 8.30745 32C8.30745 18.9151 18.9149 8.30769 31.9998 8.30769C45.0847 8.30769 55.6921 18.9151 55.6921 32C55.6773 45.0788 45.0785 55.6775 31.9998 55.6923ZM44.5611 24.5793L31.638 43.9639C31.2804 44.5011 30.7005 44.8493 30.0584 44.9126C29.9878 44.9197 29.9169 44.9232 29.8459 44.9231C29.2747 44.9229 28.727 44.696 28.3231 44.2921L19.7077 35.6767C19.1636 35.1326 18.9512 34.3396 19.1503 33.5964C19.3494 32.8533 19.9299 32.2728 20.6731 32.0736C21.4163 31.8745 22.2093 32.087 22.7534 32.631L29.5115 39.3881L40.9769 22.1899C41.4013 21.5439 42.1394 21.1749 42.9108 21.2229C43.6823 21.2709 44.3688 21.7286 44.7099 22.4223C45.0509 23.1159 44.9941 23.9391 44.5611 24.5793Z"/></svg>' }, Yr = { name: "chevron-down", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M53.0318 24.8653L33.5318 44.3653C33.1256 44.7717 32.5745 45.0001 31.9999 45.0001C31.4253 45.0001 30.8742 44.7717 30.468 44.3653L10.968 24.8653C10.122 24.0193 10.122 22.6476 10.968 21.8015C11.8141 20.9555 13.1858 20.9555 14.0318 21.8015L31.9999 39.7696L49.968 21.8015C50.8141 20.9555 52.1858 20.9555 53.0318 21.8015C53.8779 22.6476 53.8779 24.0193 53.0318 24.8653Z"/></svg>' }, Qr = { name: "close-circle", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 56C45.2548 56 56 45.2548 56 32C56 18.7452 45.2548 8 32 8C18.7452 8 8 18.7452 8 32C8 45.2548 18.7452 56 32 56ZM32 60C47.464 60 60 47.464 60 32C60 16.536 47.464 4 32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60Z"/><path d="M25.2772 22.695C24.5164 21.8942 23.2505 21.8617 22.4497 22.6225C21.6488 23.3833 21.6164 24.6492 22.3772 25.45L29.2411 32.6752L22.4773 39.795C21.7166 40.5958 21.749 41.8617 22.5498 42.6225C23.3507 43.3833 24.6166 43.3508 25.3773 42.55L31.9998 35.5791L38.6222 42.55C39.3829 43.3508 40.6488 43.3833 41.4497 42.6225C42.2505 41.8617 42.2829 40.5958 41.5222 39.795L34.7584 32.6752L41.6223 25.45C42.3831 24.6492 42.3507 23.3833 41.5498 22.6225C40.749 21.8617 39.4831 21.8942 38.7224 22.695L31.9998 29.7714L25.2772 22.695Z"/></svg>' }, jn = { 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>' }, Kr = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' }, Gr = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, Hn = { 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>' }, le = {
|
2020
2020
|
allRenderFn: !1,
|
2021
2021
|
cmpDidLoad: !0,
|
2022
2022
|
cmpDidUnload: !1,
|
@@ -2100,8 +2100,8 @@ const qr = { name: "alert", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.
|
|
2100
2100
|
transformTagName: !1,
|
2101
2101
|
attachStyles: !0
|
2102
2102
|
};
|
2103
|
-
let ce, Bs, ut, Ns = !1, Ve = !1, en = !1, T = !1,
|
2104
|
-
const pt = typeof window < "u" ? window : {},
|
2103
|
+
let ce, Bs, ut, Ns = !1, Ve = !1, en = !1, T = !1, Dn = null, jt = !1;
|
2104
|
+
const pt = typeof window < "u" ? window : {}, D = pt.document || { head: {} }, Fs = pt.HTMLElement || class {
|
2105
2105
|
}, S = {
|
2106
2106
|
$flags$: 0,
|
2107
2107
|
$resourcesUrl$: "",
|
@@ -2113,7 +2113,7 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2113
2113
|
}, Xr = /* @__PURE__ */ (() => {
|
2114
2114
|
let s = !1;
|
2115
2115
|
try {
|
2116
|
-
|
2116
|
+
D.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
2117
2117
|
get() {
|
2118
2118
|
s = !0;
|
2119
2119
|
}
|
@@ -2138,7 +2138,7 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2138
2138
|
} catch (n) {
|
2139
2139
|
Ie(n);
|
2140
2140
|
}
|
2141
|
-
}, to = (s, e) => e & 4 ?
|
2141
|
+
}, to = (s, e) => e & 4 ? D : e & 8 ? pt : e & 16 ? D.body : s, no = (s) => Xr ? {
|
2142
2142
|
passive: (s & 1) !== 0,
|
2143
2143
|
capture: (s & 2) !== 0
|
2144
2144
|
} : (s & 2) !== 0, Bn = "http://www.w3.org/1999/xlink", ie = (s, e = "") => () => {
|
@@ -2147,11 +2147,11 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2147
2147
|
Jr && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, tt.set(s, n);
|
2148
2148
|
}, io = (s, e, t, n) => {
|
2149
2149
|
let i = Zs(e, t), r = tt.get(i);
|
2150
|
-
if (s = s.nodeType === 11 ? s :
|
2150
|
+
if (s = s.nodeType === 11 ? s : D, r)
|
2151
2151
|
if (typeof r == "string") {
|
2152
2152
|
s = s.head || s;
|
2153
2153
|
let o = Nn.get(s), a;
|
2154
|
-
o || Nn.set(s, o = /* @__PURE__ */ new Set()), o.has(i) || (a =
|
2154
|
+
o || Nn.set(s, o = /* @__PURE__ */ new Set()), o.has(i) || (a = D.createElement("style"), a.innerHTML = r, s.insertBefore(a, s.querySelector("link")), o && o.add(i));
|
2155
2155
|
} else
|
2156
2156
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2157
2157
|
return i;
|
@@ -2248,11 +2248,11 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2248
2248
|
// slot element does not have fallback content
|
2249
2249
|
1
|
2250
2250
|
))), i.$text$ !== null)
|
2251
|
-
o = i.$elm$ =
|
2251
|
+
o = i.$elm$ = D.createTextNode(i.$text$);
|
2252
2252
|
else if (i.$flags$ & 1)
|
2253
|
-
o = i.$elm$ =
|
2253
|
+
o = i.$elm$ = D.createTextNode("");
|
2254
2254
|
else {
|
2255
|
-
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ =
|
2255
|
+
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = D.createElementNS(T ? ao : lo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Ws(null, i, T), co(ce) && o["s-si"] !== ce && o.classList.add(o["s-si"] = ce), i.$children$)
|
2256
2256
|
for (r = 0; r < i.$children$.length; ++r)
|
2257
2257
|
a = et(s, i, r, o), a && o.appendChild(a);
|
2258
2258
|
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
@@ -2348,7 +2348,7 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2348
2348
|
Xs(r.$elm$);
|
2349
2349
|
let o, a, l, c, h, u, p = 0;
|
2350
2350
|
for (; p < O.length; p++)
|
2351
|
-
o = O[p], a = o.$nodeToRelocate$, a["s-ol"] || (l =
|
2351
|
+
o = O[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = D.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
2352
2352
|
for (p = 0; p < O.length; p++)
|
2353
2353
|
if (o = O[p], a = o.$nodeToRelocate$, o.$slotRefNode$) {
|
2354
2354
|
for (c = o.$slotRefNode$.parentNode, h = o.$slotRefNode$.nextSibling, l = a["s-ol"]; l = l.previousSibling; )
|
@@ -2387,11 +2387,11 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2387
2387
|
ko(s, e, n), r(), i(), _o(s);
|
2388
2388
|
}, ko = (s, e, t) => {
|
2389
2389
|
try {
|
2390
|
-
|
2390
|
+
Dn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (le.hasRenderFn || le.reflect) && (le.vdomRender || le.reflect) && (le.hydrateServerSide || mo(s, e));
|
2391
2391
|
} catch (a) {
|
2392
2392
|
Ie(a, s.$hostElement$);
|
2393
2393
|
}
|
2394
|
-
return
|
2394
|
+
return Dn = null, null;
|
2395
2395
|
}, _o = (s) => {
|
2396
2396
|
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = ie("postUpdate", e), i = t;
|
2397
2397
|
s.$ancestorComponent$, fe(i, "componentDidRender"), s.$flags$ & 64 ? (fe(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, fe(i, "componentDidLoad"), n());
|
@@ -2486,7 +2486,7 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2486
2486
|
}), To(s, e, t)), n();
|
2487
2487
|
}
|
2488
2488
|
}, Po = (s) => {
|
2489
|
-
const e = s["s-cr"] =
|
2489
|
+
const e = s["s-cr"] = D.createComment("");
|
2490
2490
|
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2491
2491
|
}, Ro = (s) => {
|
2492
2492
|
if (!(S.$flags$ & 1)) {
|
@@ -2526,7 +2526,7 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2526
2526
|
};
|
2527
2527
|
return qs(s, t, e.$listeners$), ti.set(s, t);
|
2528
2528
|
}, Kn = (s, e) => e in s, Ie = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(), Mo = [], Gn = [], ni = [], zo = (s, e) => (t) => {
|
2529
|
-
s.push(t), jt || (jt = !0, e && S.$flags$ & 4 ? Uo(
|
2529
|
+
s.push(t), jt || (jt = !0, e && S.$flags$ & 4 ? Uo(Ht) : S.raf(Ht));
|
2530
2530
|
}, Xn = (s) => {
|
2531
2531
|
for (let e = 0; e < s.length; e++)
|
2532
2532
|
try {
|
@@ -2535,9 +2535,9 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2535
2535
|
Ie(t);
|
2536
2536
|
}
|
2537
2537
|
s.length = 0;
|
2538
|
-
},
|
2539
|
-
Xn(Gn), Xn(ni), (jt = Gn.length > 0) && S.raf(
|
2540
|
-
}, Uo = (s) => Vr().then(s), jo = /* @__PURE__ */ zo(ni, !0),
|
2538
|
+
}, Ht = () => {
|
2539
|
+
Xn(Gn), Xn(ni), (jt = Gn.length > 0) && S.raf(Ht);
|
2540
|
+
}, Uo = (s) => Vr().then(s), jo = /* @__PURE__ */ zo(ni, !0), Ho = (s = {}) => {
|
2541
2541
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2542
2542
|
let i = "", r = [
|
2543
2543
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2545,7 +2545,7 @@ const pt = typeof window < "u" ? window : {}, j = pt.document || { head: {} }, F
|
|
2545
2545
|
...n
|
2546
2546
|
];
|
2547
2547
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
2548
|
-
},
|
2548
|
+
}, Do = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2549
2549
|
function Bo(s) {
|
2550
2550
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2551
2551
|
}
|
@@ -2582,15 +2582,15 @@ function si() {
|
|
2582
2582
|
});
|
2583
2583
|
}
|
2584
2584
|
si();
|
2585
|
-
function
|
2585
|
+
function Dt() {
|
2586
2586
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2587
2587
|
}
|
2588
2588
|
function Zo() {
|
2589
|
-
if (typeof
|
2590
|
-
return
|
2589
|
+
if (typeof Dt().vocadsIcons !== void 0)
|
2590
|
+
return Dt().vocadsIcons;
|
2591
2591
|
}
|
2592
2592
|
function Wo() {
|
2593
|
-
return
|
2593
|
+
return Dt().vocadsIconsRegistered;
|
2594
2594
|
}
|
2595
2595
|
const Yo = ".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))}", Qo = /* @__PURE__ */ ei(class extends Fs {
|
2596
2596
|
constructor() {
|
@@ -2616,8 +2616,8 @@ const Yo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2616
2616
|
...e,
|
2617
2617
|
{ name: "aria-hidden", value: "true" }
|
2618
2618
|
];
|
2619
|
-
const t =
|
2620
|
-
content:
|
2619
|
+
const t = Ho({
|
2620
|
+
content: Do(s),
|
2621
2621
|
attributes: e,
|
2622
2622
|
title: this.allyTitle
|
2623
2623
|
});
|
@@ -2793,10 +2793,10 @@ let ri = class extends rn {
|
|
2793
2793
|
* Copyright 2020 Google LLC
|
2794
2794
|
* SPDX-License-Identifier: BSD-3-Clause
|
2795
2795
|
*/
|
2796
|
-
const
|
2796
|
+
const M = () => new na();
|
2797
2797
|
class na {
|
2798
2798
|
}
|
2799
|
-
const At = /* @__PURE__ */ new WeakMap(),
|
2799
|
+
const At = /* @__PURE__ */ new WeakMap(), z = gt(class extends ri {
|
2800
2800
|
render(s) {
|
2801
2801
|
return g;
|
2802
2802
|
}
|
@@ -3124,7 +3124,7 @@ var pa = Object.defineProperty, da = Object.getOwnPropertyDescriptor, Me = (s, e
|
|
3124
3124
|
};
|
3125
3125
|
class G extends k {
|
3126
3126
|
constructor() {
|
3127
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
3127
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = M(), this.widgetActive$ = new U(!1), this.componentIsDestroyed$ = new _();
|
3128
3128
|
}
|
3129
3129
|
async connectedCallback() {
|
3130
3130
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -3181,7 +3181,7 @@ class G extends k {
|
|
3181
3181
|
"trigger-container": !0,
|
3182
3182
|
hidden: !this.triggerVisible
|
3183
3183
|
})}
|
3184
|
-
${
|
3184
|
+
${z(this.containerRef)}
|
3185
3185
|
>
|
3186
3186
|
${!this.active && ((i = (n = (t = (e = this.application) == null ? void 0 : e.settings) == null ? void 0 : t.branding) == null ? void 0 : n.other) != null && i.showButtonLabel) ? m`
|
3187
3187
|
<button
|
@@ -3586,7 +3586,7 @@ var xa = Object.defineProperty, wa = Object.getOwnPropertyDescriptor, ka = (s, e
|
|
3586
3586
|
const _a = "application";
|
3587
3587
|
class ln extends k {
|
3588
3588
|
constructor() {
|
3589
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
3589
|
+
super(...arguments), this.nodes = [], this.wrapperRef = M();
|
3590
3590
|
}
|
3591
3591
|
addChild(e) {
|
3592
3592
|
e.parent = this, this.nodes.push(e);
|
@@ -3609,7 +3609,7 @@ class ln extends k {
|
|
3609
3609
|
this.applyBranding(), this.applyStyles();
|
3610
3610
|
}
|
3611
3611
|
render() {
|
3612
|
-
return this.application.renderStrategy === an.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")), m`<div class="widget-container" ${
|
3612
|
+
return this.application.renderStrategy === an.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")), m`<div class="widget-container" ${z(this.wrapperRef)}>
|
3613
3613
|
${ma(this.nodes, (e) => e)}
|
3614
3614
|
</div>`;
|
3615
3615
|
}
|
@@ -3805,7 +3805,7 @@ class Aa {
|
|
3805
3805
|
}
|
3806
3806
|
class os {
|
3807
3807
|
constructor(e, t, n, i, r) {
|
3808
|
-
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new
|
3808
|
+
this.id = e, this.providerKey = t, this.providerOptions = n, this.component = r, this.provider$ = new U(null), this.entries$ = new U([]), this.removeEntryAction$ = new _(), this.kill$ = new _(), this.isTyping$ = new U(!1), this.data$ = new U({}), this.complete$ = this.provider$.pipe(
|
3809
3809
|
pe((l) => l ? l.onComplete() : Pe)
|
3810
3810
|
);
|
3811
3811
|
const o = this._getProviderFactory(t);
|
@@ -3861,7 +3861,7 @@ class os {
|
|
3861
3861
|
}
|
3862
3862
|
class Ea {
|
3863
3863
|
constructor(e) {
|
3864
|
-
this.component = e, this.currentSession$ = new
|
3864
|
+
this.component = e, this.currentSession$ = new U(null), this.sessions = [], this.storage = null, Ke(e, "handover").subscribe((t) => {
|
3865
3865
|
const n = this._createNewSession(
|
3866
3866
|
t.detail.providerKey,
|
3867
3867
|
t.detail.providerOptions
|
@@ -3959,7 +3959,7 @@ class Ea {
|
|
3959
3959
|
}
|
3960
3960
|
class Ta {
|
3961
3961
|
constructor(e, t) {
|
3962
|
-
this.state$ = e, this.component = t, this.entries$ = new
|
3962
|
+
this.state$ = e, this.component = t, this.entries$ = new U([]), this.session = () => this.session$, this.isTyping = () => this.isTyping$, this.entries = () => this.entries$.asObservable(), this.sessionService = new Ea(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
3963
3963
|
pe((n) => n ? n.provider$.pipe(
|
3964
3964
|
pe((i) => i ? i.isTyping() : It(!1))
|
3965
3965
|
) : It(!1))
|
@@ -4444,16 +4444,16 @@ class Nt extends rn {
|
|
4444
4444
|
}
|
4445
4445
|
}
|
4446
4446
|
Nt.directiveName = "unsafeHTML", Nt.resultType = 1;
|
4447
|
-
const
|
4448
|
-
var
|
4447
|
+
const Ha = gt(Nt);
|
4448
|
+
var Da = Object.defineProperty, Ba = Object.getOwnPropertyDescriptor, Na = (s, e, t, n) => {
|
4449
4449
|
for (var i = n > 1 ? void 0 : n ? Ba(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4450
4450
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4451
|
-
return n && i &&
|
4451
|
+
return n && i && Da(e, t, i), i;
|
4452
4452
|
};
|
4453
4453
|
class pn extends k {
|
4454
4454
|
render() {
|
4455
4455
|
return m`<div class="message-type-html">
|
4456
|
-
${
|
4456
|
+
${Ha(this.message.content)}
|
4457
4457
|
</div>`;
|
4458
4458
|
}
|
4459
4459
|
}
|
@@ -4733,17 +4733,17 @@ class st {
|
|
4733
4733
|
break;
|
4734
4734
|
a = t[0], e = e.substring(a.length);
|
4735
4735
|
let u = t[2].split(`
|
4736
|
-
`, 1)[0].replace(/^\t+/, (
|
4736
|
+
`, 1)[0].replace(/^\t+/, (N) => " ".repeat(3 * N.length)), p = e.split(`
|
4737
4737
|
`, 1)[0], d = 0;
|
4738
4738
|
this.options.pedantic ? (d = 2, l = u.trimStart()) : (d = t[2].search(/[^ ]/), d = d > 4 ? 1 : d, l = u.slice(d), d += t[1].length);
|
4739
4739
|
let b = !1;
|
4740
4740
|
if (!u && /^ *$/.test(p) && (a += p + `
|
4741
4741
|
`, e = e.substring(p.length + 1), h = !0), !h) {
|
4742
|
-
const
|
4742
|
+
const N = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ ][^\\n]*)?(?:\\n|$))`), V = new RegExp(`^ {0,${Math.min(3, d - 1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`), xn = new RegExp(`^ {0,${Math.min(3, d - 1)}}(?:\`\`\`|~~~)`), wn = new RegExp(`^ {0,${Math.min(3, d - 1)}}#`);
|
4743
4743
|
for (; e; ) {
|
4744
4744
|
const yt = e.split(`
|
4745
4745
|
`, 1)[0];
|
4746
|
-
if (p = yt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), xn.test(p) || wn.test(p) ||
|
4746
|
+
if (p = yt, this.options.pedantic && (p = p.replace(/^ {1,4}(?=( {4})*[^ ])/g, " ")), xn.test(p) || wn.test(p) || N.test(p) || V.test(e))
|
4747
4747
|
break;
|
4748
4748
|
if (p.search(/[^ ]/) >= d || !p.trim())
|
4749
4749
|
l += `
|
@@ -5138,7 +5138,7 @@ const Xa = /^(?: *(?:\n|$))+/, Va = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, Ja =
|
|
5138
5138
|
breaks: wl,
|
5139
5139
|
pedantic: xl
|
5140
5140
|
};
|
5141
|
-
class
|
5141
|
+
class j {
|
5142
5142
|
constructor(e) {
|
5143
5143
|
x(this, "tokens");
|
5144
5144
|
x(this, "options");
|
@@ -5169,13 +5169,13 @@ class z {
|
|
5169
5169
|
* Static Lex Method
|
5170
5170
|
*/
|
5171
5171
|
static lex(e, t) {
|
5172
|
-
return new
|
5172
|
+
return new j(t).lex(e);
|
5173
5173
|
}
|
5174
5174
|
/**
|
5175
5175
|
* Static Lex Inline Method
|
5176
5176
|
*/
|
5177
5177
|
static lexInline(e, t) {
|
5178
|
-
return new
|
5178
|
+
return new j(t).inlineTokens(e);
|
5179
5179
|
}
|
5180
5180
|
/**
|
5181
5181
|
* Preprocessing
|
@@ -5492,7 +5492,7 @@ class yn {
|
|
5492
5492
|
return "";
|
5493
5493
|
}
|
5494
5494
|
}
|
5495
|
-
class
|
5495
|
+
class H {
|
5496
5496
|
constructor(e) {
|
5497
5497
|
x(this, "options");
|
5498
5498
|
x(this, "renderer");
|
@@ -5503,13 +5503,13 @@ class U {
|
|
5503
5503
|
* Static Parse Method
|
5504
5504
|
*/
|
5505
5505
|
static parse(e, t) {
|
5506
|
-
return new
|
5506
|
+
return new H(t).parse(e);
|
5507
5507
|
}
|
5508
5508
|
/**
|
5509
5509
|
* Static Parse Inline Method
|
5510
5510
|
*/
|
5511
5511
|
static parseInline(e, t) {
|
5512
|
-
return new
|
5512
|
+
return new H(t).parseInline(e);
|
5513
5513
|
}
|
5514
5514
|
/**
|
5515
5515
|
* Parse Loop
|
@@ -5722,12 +5722,12 @@ class kl {
|
|
5722
5722
|
$t(this, ot);
|
5723
5723
|
x(this, "defaults", dn());
|
5724
5724
|
x(this, "options", this.setOptions);
|
5725
|
-
x(this, "parse",
|
5726
|
-
x(this, "parseInline",
|
5727
|
-
x(this, "Parser",
|
5725
|
+
x(this, "parse", He(this, Le, qt).call(this, j.lex, H.parse));
|
5726
|
+
x(this, "parseInline", He(this, Le, qt).call(this, j.lexInline, H.parseInline));
|
5727
|
+
x(this, "Parser", H);
|
5728
5728
|
x(this, "Renderer", rt);
|
5729
5729
|
x(this, "TextRenderer", yn);
|
5730
|
-
x(this, "Lexer",
|
5730
|
+
x(this, "Lexer", j);
|
5731
5731
|
x(this, "Tokenizer", st);
|
5732
5732
|
x(this, "Hooks", Se);
|
5733
5733
|
this.use(...e);
|
@@ -5849,17 +5849,17 @@ class kl {
|
|
5849
5849
|
return this.defaults = { ...this.defaults, ...e }, this;
|
5850
5850
|
}
|
5851
5851
|
lexer(e, t) {
|
5852
|
-
return
|
5852
|
+
return j.lex(e, t ?? this.defaults);
|
5853
5853
|
}
|
5854
5854
|
parser(e, t) {
|
5855
|
-
return
|
5855
|
+
return H.parse(e, t ?? this.defaults);
|
5856
5856
|
}
|
5857
5857
|
}
|
5858
5858
|
Le = new WeakSet(), qt = function(e, t) {
|
5859
5859
|
return (n, i) => {
|
5860
5860
|
const r = { ...i }, o = { ...this.defaults, ...r };
|
5861
5861
|
this.defaults.async === !0 && r.async === !1 && (o.silent || console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."), o.async = !0);
|
5862
|
-
const a =
|
5862
|
+
const a = He(this, ot, wi).call(this, !!o.silent, !!o.async);
|
5863
5863
|
if (typeof n > "u" || n === null)
|
5864
5864
|
return a(new Error("marked(): input parameter is undefined or null"));
|
5865
5865
|
if (typeof n != "string")
|
@@ -5904,12 +5904,12 @@ v.walkTokens = function(s, e) {
|
|
5904
5904
|
return re.walkTokens(s, e);
|
5905
5905
|
};
|
5906
5906
|
v.parseInline = re.parseInline;
|
5907
|
-
v.Parser =
|
5908
|
-
v.parser =
|
5907
|
+
v.Parser = H;
|
5908
|
+
v.parser = H.parse;
|
5909
5909
|
v.Renderer = rt;
|
5910
5910
|
v.TextRenderer = yn;
|
5911
|
-
v.Lexer =
|
5912
|
-
v.lexer =
|
5911
|
+
v.Lexer = j;
|
5912
|
+
v.lexer = j.lex;
|
5913
5913
|
v.Tokenizer = st;
|
5914
5914
|
v.Hooks = Se;
|
5915
5915
|
v.parse = v;
|
@@ -5918,8 +5918,8 @@ v.setOptions;
|
|
5918
5918
|
v.use;
|
5919
5919
|
v.walkTokens;
|
5920
5920
|
v.parseInline;
|
5921
|
-
|
5922
|
-
|
5921
|
+
H.parse;
|
5922
|
+
j.lex;
|
5923
5923
|
var _l = Object.defineProperty, Sl = Object.getOwnPropertyDescriptor, ki = (s, e, t, n) => {
|
5924
5924
|
for (var i = n > 1 ? void 0 : n ? Sl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
5925
5925
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
@@ -5934,7 +5934,7 @@ v.use({
|
|
5934
5934
|
});
|
5935
5935
|
class bt extends k {
|
5936
5936
|
constructor() {
|
5937
|
-
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef =
|
5937
|
+
super(...arguments), this.showLightbox = !1, this.imageUrl = "", this.altText = "", this.scrollRef = M(), this.contentRef = M(), this.autoScroll = !0, this.buffer = "", this.pointer = 0, this.imageRegexp = new RegExp(/!\[[^[]*\([^)]*\)/gm), this.includesImage = (e) => this.imageRegexp.test(e);
|
5938
5938
|
}
|
5939
5939
|
// Stop autoscroll on user interaction
|
5940
5940
|
handleAutoscroll() {
|
@@ -5983,10 +5983,10 @@ class bt extends k {
|
|
5983
5983
|
}
|
5984
5984
|
render() {
|
5985
5985
|
return m`
|
5986
|
-
<div class="message-type-markdown" ${
|
5986
|
+
<div class="message-type-markdown" ${z(this.contentRef)}>
|
5987
5987
|
<div></div>
|
5988
5988
|
</div>
|
5989
|
-
<div class="scroll" ${
|
5989
|
+
<div class="scroll" ${z(this.scrollRef)}></div>
|
5990
5990
|
${this.showLightbox ? m`<ace-lightbox
|
5991
5991
|
imageUrl="${this.imageUrl}"
|
5992
5992
|
altText="${this.altText}"
|
@@ -6130,12 +6130,12 @@ customElements.get("ace-lightbox") || customElements.define("ace-lightbox", $n);
|
|
6130
6130
|
const _i = ai(k);
|
6131
6131
|
class R extends _i {
|
6132
6132
|
constructor() {
|
6133
|
-
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef =
|
6133
|
+
super(...arguments), this.message = "", this.disabledInput = !1, this.disabledSubmit = !1, this.chatOverlayActive = !1, this.textAreaLength = 0, this.conversationContentRef = M(), this.conversationFeedRef = M(), this.formRef = M(), this.inputRef = M(), this.scrollRef = M(), this.counterRef = M(), this.chatScrollHeight = 0, this.chatCurrentScrollPosition = 0, this.toast = new Aa(this), this.messageMaxLength = 1e3, this.messageMaxLengthLabel = "Maximum character limit reached", this.skipToLatestMessageLabel = "Skip to latest message", this.platform = null, this.entries = [], this.typing = !1, this.conversationState$ = new U("waiting"), this.stateMachine = new Ta(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6134
6134
|
pe((e) => e ? e == null ? void 0 : e.provider$ : It(null))
|
6135
6135
|
), this.userTyping$ = new _();
|
6136
6136
|
}
|
6137
6137
|
async connectedCallback() {
|
6138
|
-
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength, this.skipToLatestMessageLabel = this.properties.skipToLatestMessageLabel ?? this.skipToLatestMessageLabel;
|
6138
|
+
super.connectedCallback(), this.messageMaxLength = this.properties.messageMaxLength ?? this.messageMaxLength, this.messageMaxLengthLabel = this.properties.messageMaxLengthLabel ?? this.messageMaxLengthLabel, this.skipToLatestMessageLabel = this.properties.skipToLatestMessageLabel ?? this.skipToLatestMessageLabel;
|
6139
6139
|
const e = await this.application.container.get(
|
6140
6140
|
"conversation"
|
6141
6141
|
);
|
@@ -6217,11 +6217,11 @@ class R extends _i {
|
|
6217
6217
|
this.toast.message = e;
|
6218
6218
|
}
|
6219
6219
|
async _onSendMessage(e) {
|
6220
|
-
var n;
|
6221
|
-
if (e.preventDefault(), this.message.length <= 0) {
|
6220
|
+
var n, i;
|
6221
|
+
if (e.preventDefault(), this.message.length <= 0 || this.message.length > this.messageMaxLength) {
|
6222
6222
|
(n = this.formRef.value) == null || n.classList.add("shake"), setTimeout(() => {
|
6223
|
-
var
|
6224
|
-
(
|
6223
|
+
var r;
|
6224
|
+
(r = this.formRef.value) == null || r.classList.remove("shake");
|
6225
6225
|
}, 500);
|
6226
6226
|
return;
|
6227
6227
|
}
|
@@ -6229,7 +6229,7 @@ class R extends _i {
|
|
6229
6229
|
const t = new CustomEvent("user-submit", {
|
6230
6230
|
detail: { text: this.message }
|
6231
6231
|
});
|
6232
|
-
this.dispatchEvent(t), this.message = "", this.inputRef.value.style.height = this.style.getPropertyValue(
|
6232
|
+
this.dispatchEvent(t), this.message = "", this.textAreaLength = 0, (i = this.counterRef.value) == null || i.classList.remove("max-char-count-reached"), this.inputRef.value.style.height = this.style.getPropertyValue(
|
6233
6233
|
"--textarea-default-height"
|
6234
6234
|
);
|
6235
6235
|
}
|
@@ -6239,18 +6239,19 @@ class R extends _i {
|
|
6239
6239
|
return;
|
6240
6240
|
const t = this.application.texts, n = t.getOrFallback("conversation.mute", "Mute"), i = t.getOrFallback("conversation.unmute", "Unmute"), r = !!this.application.storage.get("muteAudioNotifications"), o = e.addOption({
|
6241
6241
|
label: r ? i : n,
|
6242
|
-
icon: r ? jn.svg :
|
6242
|
+
icon: r ? jn.svg : Hn.svg,
|
6243
6243
|
closeOnClick: !1,
|
6244
6244
|
datatestid: "options-mute-button",
|
6245
6245
|
onClick: () => {
|
6246
|
-
!!this.application.storage.get("muteAudioNotifications") ? (this.application.unmute(), o.updateLabel(n), o.updateIcon(
|
6246
|
+
!!this.application.storage.get("muteAudioNotifications") ? (this.application.unmute(), o.updateLabel(n), o.updateIcon(Hn.svg)) : (this.application.mute(), o.updateLabel(i), o.updateIcon(jn.svg));
|
6247
6247
|
}
|
6248
6248
|
});
|
6249
6249
|
}
|
6250
6250
|
_inputHandler(e) {
|
6251
|
+
var t, n;
|
6251
6252
|
this.message = e.target.value, e.target.style.height = this.style.getPropertyValue(
|
6252
6253
|
"--textarea-default-height"
|
6253
|
-
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length;
|
6254
|
+
), e.target.style.height = e.target.scrollHeight + "px", this.textAreaLength = e.target.value.length, e.target.value.length > this.messageMaxLength ? (t = this.counterRef.value) == null || t.classList.add("max-char-count-reached") : (n = this.counterRef.value) == null || n.classList.remove("max-char-count-reached");
|
6254
6255
|
}
|
6255
6256
|
_keyDownHandler(e) {
|
6256
6257
|
this.userTyping$.next(e.key), e.key === "Enter" && !e.shiftKey && !this.disabledSubmit && (this._onSendMessage(e), e.preventDefault());
|
@@ -6283,7 +6284,7 @@ class R extends _i {
|
|
6283
6284
|
conversation: !0,
|
6284
6285
|
disabled: this.disabledInput,
|
6285
6286
|
"conversation--has-toast": this.toast.hasMessage(),
|
6286
|
-
"conversation--input-has-text": this.message.length > 0 && !this.disabledSubmit,
|
6287
|
+
"conversation--input-has-valid-text": this.message.length > 0 && this.message.length <= this.messageMaxLength && !this.disabledSubmit,
|
6287
6288
|
"overlay-mode": this.chatOverlayActive
|
6288
6289
|
})}
|
6289
6290
|
>
|
@@ -6302,21 +6303,21 @@ class R extends _i {
|
|
6302
6303
|
})}
|
6303
6304
|
part="scroll-container"
|
6304
6305
|
aria-live="polite"
|
6305
|
-
${
|
6306
|
+
${z(this.conversationContentRef)}
|
6306
6307
|
>
|
6307
6308
|
${this.toast.hasMessage() ? m`<div class="conversation__toast">${this.toast.message}</div>` : g}
|
6308
6309
|
<ace-conversation-feed
|
6309
6310
|
.entries=${this.entries}
|
6310
6311
|
.loading=${this.typing}
|
6311
|
-
${
|
6312
|
+
${z(this.conversationFeedRef)}
|
6312
6313
|
@updated=${this.onSessionUpdated}
|
6313
6314
|
></ace-conversation-feed>
|
6314
|
-
<div class="scroll" ${
|
6315
|
+
<div class="scroll" ${z(this.scrollRef)}></div>
|
6315
6316
|
</div>
|
6316
6317
|
<form
|
6317
6318
|
class="conversation-bottom"
|
6318
6319
|
@submit=${this._onSendMessage}
|
6319
|
-
${
|
6320
|
+
${z(this.formRef)}
|
6320
6321
|
>
|
6321
6322
|
<label for="chat-message-input" class="visually-hidden">
|
6322
6323
|
Chat message
|
@@ -6324,7 +6325,6 @@ class R extends _i {
|
|
6324
6325
|
<textarea
|
6325
6326
|
id="chat-message-input"
|
6326
6327
|
autocomplete="off"
|
6327
|
-
maxlength=${this.messageMaxLength}
|
6328
6328
|
placeholder=${e.getOrFallback(
|
6329
6329
|
"conversation.input-placeholder",
|
6330
6330
|
"Aa"
|
@@ -6334,7 +6334,12 @@ class R extends _i {
|
|
6334
6334
|
?disabled=${this.disabledInput}
|
6335
6335
|
@input=${this._inputHandler}
|
6336
6336
|
@keydown=${this._keyDownHandler}
|
6337
|
-
${
|
6337
|
+
${z(this.inputRef)}
|
6338
|
+
aria-valuenow=${this.textAreaLength}
|
6339
|
+
aria-valuemax=${this.messageMaxLength}
|
6340
|
+
aria-valuemin="0"
|
6341
|
+
role="textbox"
|
6342
|
+
aria-multiline="true"
|
6338
6343
|
></textarea>
|
6339
6344
|
<div class="conversation-actions">
|
6340
6345
|
<button
|
@@ -6346,10 +6351,12 @@ class R extends _i {
|
|
6346
6351
|
>
|
6347
6352
|
<telia-icon svg=${Gr.svg}></telia-icon>
|
6348
6353
|
</button>
|
6349
|
-
|
6350
|
-
|
6351
|
-
|
6352
|
-
|
6354
|
+
<span class="counter" ${z(this.counterRef)}>
|
6355
|
+
${this.textAreaLength} / ${this.messageMaxLength}</span
|
6356
|
+
>
|
6357
|
+
</div>
|
6358
|
+
<div class="sr-only" aria-live="polite">
|
6359
|
+
${this.textAreaLength > this.messageMaxLength ? this.messageMaxLengthLabel : ""}
|
6353
6360
|
</div>
|
6354
6361
|
</form>
|
6355
6362
|
<button
|
@@ -6473,8 +6480,7 @@ R.styles = [
|
|
6473
6480
|
height: 100%;
|
6474
6481
|
background-color: transparent;
|
6475
6482
|
}
|
6476
|
-
.conversation.conversation--input-has-text {
|
6477
|
-
/* --send-icon-color: var(--primary-color); */
|
6483
|
+
.conversation.conversation--input-has-valid-text {
|
6478
6484
|
--send-icon-opacity: 1;
|
6479
6485
|
}
|
6480
6486
|
.conversation.conversation--has-toast .conversation-content {
|
@@ -6520,6 +6526,9 @@ R.styles = [
|
|
6520
6526
|
color: var(--send-icon-color);
|
6521
6527
|
opacity: var(--send-icon-opacity);
|
6522
6528
|
transition: opacity 200ms ease-in-out;
|
6529
|
+
display: flex;
|
6530
|
+
justify-content: right;
|
6531
|
+
margin-bottom: var(--spacing-xs);
|
6523
6532
|
}
|
6524
6533
|
.conversation-send-button:not(:disabled):hover {
|
6525
6534
|
--send-icon-opacity: 1;
|
@@ -6607,6 +6616,35 @@ R.styles = [
|
|
6607
6616
|
border-top-left-radius: 0;
|
6608
6617
|
border-top-right-radius: 0;
|
6609
6618
|
}
|
6619
|
+
|
6620
|
+
.conversation-actions {
|
6621
|
+
display: flex;
|
6622
|
+
flex-direction: column;
|
6623
|
+
}
|
6624
|
+
|
6625
|
+
.counter {
|
6626
|
+
display: flex;
|
6627
|
+
justify-content: right;
|
6628
|
+
bottom: var(--spacing-xs);
|
6629
|
+
padding-top: var(--spacing-sm);
|
6630
|
+
position: absolute;
|
6631
|
+
font-size: 0.6rem;
|
6632
|
+
}
|
6633
|
+
|
6634
|
+
.max-char-count-reached {
|
6635
|
+
color: var(--error-text-color);
|
6636
|
+
}
|
6637
|
+
|
6638
|
+
.sr-only {
|
6639
|
+
position: absolute;
|
6640
|
+
width: 1px;
|
6641
|
+
height: 1px;
|
6642
|
+
margin: -1px;
|
6643
|
+
padding: 0;
|
6644
|
+
overflow: hidden;
|
6645
|
+
clip: rect(0, 0, 0, 0);
|
6646
|
+
border: 0;
|
6647
|
+
}
|
6610
6648
|
`
|
6611
6649
|
];
|
6612
6650
|
X([
|