@telia-ace/widget-conversation-flamingo 1.1.76-rc.22 → 1.1.76-rc.24
Sign up to get free protection for your applications and to get access to all the features.
- package/conversation-utilities.d.ts +1 -1
- package/index.js +46 -46
- package/index.mjs +265 -262
- package/package.json +2 -2
package/index.mjs
CHANGED
@@ -10,8 +10,8 @@ var $t = (s, e, t) => {
|
|
10
10
|
e instanceof WeakSet ? e.add(s) : e.set(s, t);
|
11
11
|
};
|
12
12
|
var He = (s, e, t) => (Ti(s, e, "access private method"), t);
|
13
|
-
const
|
14
|
-
s.registerComponent("conversation", Promise.resolve().then(() =>
|
13
|
+
const jl = async (s) => {
|
14
|
+
s.registerComponent("conversation", Promise.resolve().then(() => zl));
|
15
15
|
};
|
16
16
|
class fs {
|
17
17
|
constructor() {
|
@@ -1278,8 +1278,11 @@ function Ut() {
|
|
1278
1278
|
});
|
1279
1279
|
}
|
1280
1280
|
var W = /* @__PURE__ */ ((s) => (s.User = "user", s.Agent = "agent", s.System = "system", s))(W || {});
|
1281
|
-
const
|
1282
|
-
|
1281
|
+
const _r = () => "10000000-1000-4000-8000-100000000000".replace(
|
1282
|
+
/[018]/g,
|
1283
|
+
(s) => (+s ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> +s / 4).toString(16)
|
1284
|
+
), Ms = () => typeof crypto.randomUUID == "function" ? crypto.randomUUID() : _r();
|
1285
|
+
function Dl(s) {
|
1283
1286
|
let e = s;
|
1284
1287
|
const t = /https?:\/\/[^\s<]+/gi, n = /<a [^>]*href="([^"]*)"[^>]*>[^<]*<\/a>/g, i = s.match(t) || [], r = [];
|
1285
1288
|
let o;
|
@@ -1299,9 +1302,9 @@ function jl(s) {
|
|
1299
1302
|
);
|
1300
1303
|
}), e;
|
1301
1304
|
}
|
1302
|
-
function
|
1305
|
+
function Sr(s) {
|
1303
1306
|
if (s.includes("aceChatGuideTitle"))
|
1304
|
-
return
|
1307
|
+
return Cr(s);
|
1305
1308
|
const e = /<a [^>]*>https?:\/\/[^<]*<\/a>/gim;
|
1306
1309
|
return s.replace(e, (t) => {
|
1307
1310
|
const n = zs(t);
|
@@ -1335,7 +1338,7 @@ function zs(s) {
|
|
1335
1338
|
function jt(s, e) {
|
1336
1339
|
return s.replace(/>[^<]*<\/a>/, `>${e}</a>`);
|
1337
1340
|
}
|
1338
|
-
function
|
1341
|
+
function Cr(s) {
|
1339
1342
|
const e = /<a [^>]*aceChatGuideTitle[^>]*>[^<]*<\/a>/gm;
|
1340
1343
|
return s.replace(e, (t) => {
|
1341
1344
|
const n = zs(t);
|
@@ -1363,7 +1366,7 @@ class ct {
|
|
1363
1366
|
this.remove$.next();
|
1364
1367
|
}
|
1365
1368
|
}
|
1366
|
-
class
|
1369
|
+
class Ar {
|
1367
1370
|
constructor(e) {
|
1368
1371
|
this.name = e, this.print$ = new _();
|
1369
1372
|
}
|
@@ -1383,7 +1386,7 @@ class Cr {
|
|
1383
1386
|
return this.print$.asObservable();
|
1384
1387
|
}
|
1385
1388
|
}
|
1386
|
-
class
|
1389
|
+
class Er {
|
1387
1390
|
constructor(e) {
|
1388
1391
|
this.name = e, this.print$ = new _();
|
1389
1392
|
}
|
@@ -1403,7 +1406,7 @@ class Ar {
|
|
1403
1406
|
return this.print$.asObservable();
|
1404
1407
|
}
|
1405
1408
|
}
|
1406
|
-
class
|
1409
|
+
class Tr {
|
1407
1410
|
constructor() {
|
1408
1411
|
this.print$ = new _(), this.name = "system";
|
1409
1412
|
}
|
@@ -1423,7 +1426,7 @@ class Er {
|
|
1423
1426
|
return this.print$.asObservable();
|
1424
1427
|
}
|
1425
1428
|
}
|
1426
|
-
class
|
1429
|
+
class Hl {
|
1427
1430
|
constructor(e, t) {
|
1428
1431
|
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();
|
1429
1432
|
}
|
@@ -1457,19 +1460,19 @@ class Dl {
|
|
1457
1460
|
return this.print$.next(e), e;
|
1458
1461
|
}
|
1459
1462
|
createAgent(e) {
|
1460
|
-
const t = new
|
1463
|
+
const t = new Ar(e);
|
1461
1464
|
return t.subscribe().subscribe((n) => {
|
1462
1465
|
this.playNotification(), this.printEntry(n);
|
1463
1466
|
}), t;
|
1464
1467
|
}
|
1465
1468
|
createUser(e) {
|
1466
|
-
const t = new
|
1469
|
+
const t = new Er(e);
|
1467
1470
|
return t.subscribe().subscribe((n) => {
|
1468
1471
|
this.printEntry(n);
|
1469
1472
|
}), t;
|
1470
1473
|
}
|
1471
1474
|
createSystem() {
|
1472
|
-
const e = new
|
1475
|
+
const e = new Tr();
|
1473
1476
|
return e.subscribe().subscribe((t) => {
|
1474
1477
|
this.printEntry(t);
|
1475
1478
|
}), e;
|
@@ -1525,7 +1528,7 @@ let Us = class {
|
|
1525
1528
|
return this.cssText;
|
1526
1529
|
}
|
1527
1530
|
};
|
1528
|
-
const
|
1531
|
+
const Lr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s, ...e) => {
|
1529
1532
|
const t = s.length === 1 ? s[0] : e.reduce((n, i, r) => n + ((o) => {
|
1530
1533
|
if (o._$cssResult$ === !0)
|
1531
1534
|
return o.cssText;
|
@@ -1534,7 +1537,7 @@ const Tr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s,
|
|
1534
1537
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
1535
1538
|
})(i) + s[r + 1], s[0]);
|
1536
1539
|
return new Us(t, s, Jt);
|
1537
|
-
},
|
1540
|
+
}, Or = (s, e) => {
|
1538
1541
|
if (Vt)
|
1539
1542
|
s.adoptedStyleSheets = e.map((t) => t instanceof CSSStyleSheet ? t : t.styleSheet);
|
1540
1543
|
else
|
@@ -1546,17 +1549,17 @@ const Tr = (s) => new Us(typeof s == "string" ? s : s + "", void 0, Jt), E = (s,
|
|
1546
1549
|
let t = "";
|
1547
1550
|
for (const n of e.cssRules)
|
1548
1551
|
t += n.cssText;
|
1549
|
-
return
|
1552
|
+
return Lr(t);
|
1550
1553
|
})(s) : s;
|
1551
1554
|
/**
|
1552
1555
|
* @license
|
1553
1556
|
* Copyright 2017 Google LLC
|
1554
1557
|
* SPDX-License-Identifier: BSD-3-Clause
|
1555
1558
|
*/
|
1556
|
-
const { is:
|
1559
|
+
const { is: Pr, defineProperty: Rr, getOwnPropertyDescriptor: Ir, getOwnPropertyNames: Mr, getOwnPropertySymbols: zr, getPrototypeOf: Ur } = Object, Y = globalThis, On = Y.trustedTypes, jr = On ? On.emptyScript : "", kt = Y.reactiveElementPolyfillSupport, we = (s, e) => s, Ke = { toAttribute(s, e) {
|
1557
1560
|
switch (e) {
|
1558
1561
|
case Boolean:
|
1559
|
-
s = s ?
|
1562
|
+
s = s ? jr : null;
|
1560
1563
|
break;
|
1561
1564
|
case Object:
|
1562
1565
|
case Array:
|
@@ -1581,7 +1584,7 @@ const { is: Or, defineProperty: Pr, getOwnPropertyDescriptor: Rr, getOwnProperty
|
|
1581
1584
|
}
|
1582
1585
|
}
|
1583
1586
|
return t;
|
1584
|
-
} }, en = (s, e) => !
|
1587
|
+
} }, en = (s, e) => !Pr(s, e), Pn = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: en };
|
1585
1588
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), Y.litPropertyMetadata ?? (Y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
1586
1589
|
let le = class extends HTMLElement {
|
1587
1590
|
static addInitializer(e) {
|
@@ -1593,11 +1596,11 @@ let le = class extends HTMLElement {
|
|
1593
1596
|
static createProperty(e, t = Pn) {
|
1594
1597
|
if (t.state && (t.attribute = !1), this._$Ei(), this.elementProperties.set(e, t), !t.noAccessor) {
|
1595
1598
|
const n = Symbol(), i = this.getPropertyDescriptor(e, n, t);
|
1596
|
-
i !== void 0 &&
|
1599
|
+
i !== void 0 && Rr(this.prototype, e, i);
|
1597
1600
|
}
|
1598
1601
|
}
|
1599
1602
|
static getPropertyDescriptor(e, t, n) {
|
1600
|
-
const { get: i, set: r } =
|
1603
|
+
const { get: i, set: r } = Ir(this.prototype, e) ?? { get() {
|
1601
1604
|
return this[t];
|
1602
1605
|
}, set(o) {
|
1603
1606
|
this[t] = o;
|
@@ -1615,14 +1618,14 @@ let le = class extends HTMLElement {
|
|
1615
1618
|
static _$Ei() {
|
1616
1619
|
if (this.hasOwnProperty(we("elementProperties")))
|
1617
1620
|
return;
|
1618
|
-
const e =
|
1621
|
+
const e = Ur(this);
|
1619
1622
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
1620
1623
|
}
|
1621
1624
|
static finalize() {
|
1622
1625
|
if (this.hasOwnProperty(we("finalized")))
|
1623
1626
|
return;
|
1624
1627
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(we("properties"))) {
|
1625
|
-
const t = this.properties, n = [...
|
1628
|
+
const t = this.properties, n = [...Mr(t), ...zr(t)];
|
1626
1629
|
for (const i of n)
|
1627
1630
|
this.createProperty(i, t[i]);
|
1628
1631
|
}
|
@@ -1677,7 +1680,7 @@ let le = class extends HTMLElement {
|
|
1677
1680
|
}
|
1678
1681
|
createRenderRoot() {
|
1679
1682
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
1680
|
-
return
|
1683
|
+
return Or(e, this.constructor.elementStyles), e;
|
1681
1684
|
}
|
1682
1685
|
connectedCallback() {
|
1683
1686
|
var e;
|
@@ -1800,15 +1803,15 @@ le.elementStyles = [], le.shadowRootOptions = { mode: "open" }, le[we("elementPr
|
|
1800
1803
|
* Copyright 2017 Google LLC
|
1801
1804
|
* SPDX-License-Identifier: BSD-3-Clause
|
1802
1805
|
*/
|
1803
|
-
const ke = globalThis, Xe = ke.trustedTypes, Rn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, js = "$lit$", Z = `lit$${(Math.random() + "").slice(9)}$`, Ds = "?" + Z,
|
1806
|
+
const ke = globalThis, Xe = ke.trustedTypes, Rn = Xe ? Xe.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, js = "$lit$", Z = `lit$${(Math.random() + "").slice(9)}$`, Ds = "?" + Z, Dr = `<${Ds}>`, ie = document, Ae = () => ie.createComment(""), Ee = (s) => s === null || typeof s != "object" && typeof s != "function", Hs = Array.isArray, Hr = (s) => Hs(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", _t = `[
|
1804
1807
|
\f\r]`, $e = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, In = /-->/g, Mn = />/g, ee = RegExp(`>|${_t}(?:([^\\s"'>=/]+)(${_t}*=${_t}*(?:[^
|
1805
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), zn = /'/g, Un = /"/g, Bs = /^(?:script|style|textarea|title)$/i,
|
1808
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), zn = /'/g, Un = /"/g, Bs = /^(?:script|style|textarea|title)$/i, Br = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), m = Br(1), G = Symbol.for("lit-noChange"), g = Symbol.for("lit-nothing"), jn = /* @__PURE__ */ new WeakMap(), ne = ie.createTreeWalker(ie, 129);
|
1806
1809
|
function Ns(s, e) {
|
1807
1810
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
1808
1811
|
throw Error("invalid template strings array");
|
1809
1812
|
return Rn !== void 0 ? Rn.createHTML(e) : e;
|
1810
1813
|
}
|
1811
|
-
const
|
1814
|
+
const Nr = (s, e) => {
|
1812
1815
|
const t = s.length - 1, n = [];
|
1813
1816
|
let i, r = e === 2 ? "<svg>" : "", o = $e;
|
1814
1817
|
for (let a = 0; a < t; a++) {
|
@@ -1817,7 +1820,7 @@ const Br = (s, e) => {
|
|
1817
1820
|
for (; d < l.length && (o.lastIndex = d, h = o.exec(l), h !== null); )
|
1818
1821
|
d = o.lastIndex, o === $e ? h[1] === "!--" ? o = In : h[1] !== void 0 ? o = Mn : h[2] !== void 0 ? (Bs.test(h[2]) && (i = RegExp("</" + h[2], "g")), o = ee) : h[3] !== void 0 && (o = ee) : o === ee ? h[0] === ">" ? (o = i ?? $e, u = -1) : h[1] === void 0 ? u = -2 : (u = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? ee : h[3] === '"' ? Un : zn) : o === Un || o === zn ? o = ee : o === In || o === Mn ? o = $e : (o = ee, i = void 0);
|
1819
1822
|
const p = o === ee && s[a + 1].startsWith("/>") ? " " : "";
|
1820
|
-
r += o === $e ? l +
|
1823
|
+
r += o === $e ? l + Dr : u >= 0 ? (n.push(c), l.slice(0, u) + js + l.slice(u) + Z + p) : l + Z + (u === -2 ? a : p);
|
1821
1824
|
}
|
1822
1825
|
return [Ns(s, r + (s[t] || "<?>") + (e === 2 ? "</svg>" : "")), n];
|
1823
1826
|
};
|
@@ -1826,7 +1829,7 @@ class Te {
|
|
1826
1829
|
let i;
|
1827
1830
|
this.parts = [];
|
1828
1831
|
let r = 0, o = 0;
|
1829
|
-
const a = e.length - 1, l = this.parts, [c, h] =
|
1832
|
+
const a = e.length - 1, l = this.parts, [c, h] = Nr(e, t);
|
1830
1833
|
if (this.el = Te.createElement(c, n), ne.currentNode = this.el.content, t === 2) {
|
1831
1834
|
const u = this.el.content.firstChild;
|
1832
1835
|
u.replaceWith(...u.childNodes);
|
@@ -1837,7 +1840,7 @@ class Te {
|
|
1837
1840
|
for (const u of i.getAttributeNames())
|
1838
1841
|
if (u.endsWith(js)) {
|
1839
1842
|
const d = h[o++], p = i.getAttribute(u).split(Z), b = /([.?@])?(.*)/.exec(d);
|
1840
|
-
l.push({ type: 1, index: r, name: b[2], strings: p, ctor: b[1] === "." ?
|
1843
|
+
l.push({ type: 1, index: r, name: b[2], strings: p, ctor: b[1] === "." ? qr : b[1] === "?" ? Zr : b[1] === "@" ? Wr : ht }), i.removeAttribute(u);
|
1841
1844
|
} else
|
1842
1845
|
u.startsWith(Z) && (l.push({ type: 6, index: r }), i.removeAttribute(u));
|
1843
1846
|
if (Bs.test(i.tagName)) {
|
@@ -1873,7 +1876,7 @@ function ve(s, e, t = s, n) {
|
|
1873
1876
|
const r = Ee(e) ? void 0 : e._$litDirective$;
|
1874
1877
|
return (i == null ? void 0 : i.constructor) !== r && ((a = i == null ? void 0 : i._$AO) == null || a.call(i, !1), r === void 0 ? i = void 0 : (i = new r(s), i._$AT(s, t, n)), n !== void 0 ? (t._$Co ?? (t._$Co = []))[n] = i : t._$Cl = i), i !== void 0 && (e = ve(s, i._$AS(s, e.values), i, n)), e;
|
1875
1878
|
}
|
1876
|
-
class
|
1879
|
+
class Fr {
|
1877
1880
|
constructor(e, t) {
|
1878
1881
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
1879
1882
|
}
|
@@ -1890,7 +1893,7 @@ class Nr {
|
|
1890
1893
|
for (; l !== void 0; ) {
|
1891
1894
|
if (o === l.index) {
|
1892
1895
|
let c;
|
1893
|
-
l.type === 2 ? c = new Ie(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new
|
1896
|
+
l.type === 2 ? c = new Ie(r, r.nextSibling, this, e) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, e) : l.type === 6 && (c = new Yr(r, this, e)), this._$AV.push(c), l = n[++a];
|
1894
1897
|
}
|
1895
1898
|
o !== (l == null ? void 0 : l.index) && (r = ne.nextNode(), o++);
|
1896
1899
|
}
|
@@ -1922,7 +1925,7 @@ class Ie {
|
|
1922
1925
|
return this._$AB;
|
1923
1926
|
}
|
1924
1927
|
_$AI(e, t = this) {
|
1925
|
-
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) :
|
1928
|
+
e = ve(this, e, t), Ee(e) ? e === g || e == null || e === "" ? (this._$AH !== g && this._$AR(), this._$AH = g) : e !== this._$AH && e !== G && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : Hr(e) ? this.k(e) : this._(e);
|
1926
1929
|
}
|
1927
1930
|
S(e) {
|
1928
1931
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
@@ -1939,7 +1942,7 @@ class Ie {
|
|
1939
1942
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === i)
|
1940
1943
|
this._$AH.p(t);
|
1941
1944
|
else {
|
1942
|
-
const o = new
|
1945
|
+
const o = new Fr(i, this), a = o.u(this.options);
|
1943
1946
|
o.p(t), this.T(a), this._$AH = o;
|
1944
1947
|
}
|
1945
1948
|
}
|
@@ -1994,7 +1997,7 @@ class ht {
|
|
1994
1997
|
e === g ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
1995
1998
|
}
|
1996
1999
|
}
|
1997
|
-
class
|
2000
|
+
class qr extends ht {
|
1998
2001
|
constructor() {
|
1999
2002
|
super(...arguments), this.type = 3;
|
2000
2003
|
}
|
@@ -2002,7 +2005,7 @@ class Fr extends ht {
|
|
2002
2005
|
this.element[this.name] = e === g ? void 0 : e;
|
2003
2006
|
}
|
2004
2007
|
}
|
2005
|
-
let
|
2008
|
+
let Zr = class extends ht {
|
2006
2009
|
constructor() {
|
2007
2010
|
super(...arguments), this.type = 4;
|
2008
2011
|
}
|
@@ -2010,7 +2013,7 @@ let qr = class extends ht {
|
|
2010
2013
|
this.element.toggleAttribute(this.name, !!e && e !== g);
|
2011
2014
|
}
|
2012
2015
|
};
|
2013
|
-
class
|
2016
|
+
class Wr extends ht {
|
2014
2017
|
constructor(e, t, n, i, r) {
|
2015
2018
|
super(e, t, n, i, r), this.type = 5;
|
2016
2019
|
}
|
@@ -2025,7 +2028,7 @@ class Zr extends ht {
|
|
2025
2028
|
typeof this._$AH == "function" ? this._$AH.call(((t = this.options) == null ? void 0 : t.host) ?? this.element, e) : this._$AH.handleEvent(e);
|
2026
2029
|
}
|
2027
2030
|
}
|
2028
|
-
class
|
2031
|
+
class Yr {
|
2029
2032
|
constructor(e, t, n) {
|
2030
2033
|
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = n;
|
2031
2034
|
}
|
@@ -2038,7 +2041,7 @@ class Wr {
|
|
2038
2041
|
}
|
2039
2042
|
const St = ke.litHtmlPolyfillSupport;
|
2040
2043
|
St == null || St(Te, Ie), (ke.litHtmlVersions ?? (ke.litHtmlVersions = [])).push("3.1.2");
|
2041
|
-
const
|
2044
|
+
const Qr = (s, e, t) => {
|
2042
2045
|
const n = (t == null ? void 0 : t.renderBefore) ?? e;
|
2043
2046
|
let i = n._$litPart$;
|
2044
2047
|
if (i === void 0) {
|
@@ -2063,7 +2066,7 @@ let k = class extends le {
|
|
2063
2066
|
}
|
2064
2067
|
update(e) {
|
2065
2068
|
const t = this.render();
|
2066
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
2069
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Qr(t, this.renderRoot, this.renderOptions);
|
2067
2070
|
}
|
2068
2071
|
connectedCallback() {
|
2069
2072
|
var e;
|
@@ -2082,7 +2085,7 @@ k._$litElement$ = !0, k.finalized = !0, (ps = globalThis.litElementHydrateSuppor
|
|
2082
2085
|
const Ct = globalThis.litElementPolyfillSupport;
|
2083
2086
|
Ct == null || Ct({ LitElement: k });
|
2084
2087
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
2085
|
-
const
|
2088
|
+
const Gr = { 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>' }, Kr = { 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>' }, Xr = { 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>' }, Vr = { 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>' }, Jr = { 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>' }, Dn = { 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>' }, eo = { 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>' }, to = { 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>' }, ce = {
|
2086
2089
|
allRenderFn: !1,
|
2087
2090
|
cmpDidLoad: !0,
|
2088
2091
|
cmpDidUnload: !1,
|
@@ -2176,7 +2179,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2176
2179
|
ael: (s, e, t, n) => s.addEventListener(e, t, n),
|
2177
2180
|
rel: (s, e, t, n) => s.removeEventListener(e, t, n),
|
2178
2181
|
ce: (s, e) => new CustomEvent(s, e)
|
2179
|
-
},
|
2182
|
+
}, no = /* @__PURE__ */ (() => {
|
2180
2183
|
let s = !1;
|
2181
2184
|
try {
|
2182
2185
|
H.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -2187,7 +2190,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2187
2190
|
} catch {
|
2188
2191
|
}
|
2189
2192
|
return s;
|
2190
|
-
})(),
|
2193
|
+
})(), so = (s) => Promise.resolve(s), io = /* @__PURE__ */ (() => {
|
2191
2194
|
try {
|
2192
2195
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
2193
2196
|
} catch {
|
@@ -2195,23 +2198,23 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2195
2198
|
return !1;
|
2196
2199
|
})(), Ws = (s, e, t, n) => {
|
2197
2200
|
t && t.map(([i, r, o]) => {
|
2198
|
-
const a =
|
2201
|
+
const a = oo(s, i), l = ro(e, o), c = ao(i);
|
2199
2202
|
S.ael(a, r, l, c), (e.$rmListeners$ = e.$rmListeners$ || []).push(() => S.rel(a, r, l, c));
|
2200
2203
|
});
|
2201
|
-
},
|
2204
|
+
}, ro = (s, e) => (t) => {
|
2202
2205
|
try {
|
2203
2206
|
ce.lazyLoad || s.$hostElement$[e](t);
|
2204
2207
|
} catch (n) {
|
2205
2208
|
Me(n);
|
2206
2209
|
}
|
2207
|
-
},
|
2210
|
+
}, oo = (s, e) => e & 4 ? H : e & 8 ? dt : e & 16 ? H.body : s, ao = (s) => no ? {
|
2208
2211
|
passive: (s & 1) !== 0,
|
2209
2212
|
capture: (s & 2) !== 0
|
2210
2213
|
} : (s & 2) !== 0, Nn = "http://www.w3.org/1999/xlink", re = (s, e = "") => () => {
|
2211
|
-
}, Fn = /* @__PURE__ */ new WeakMap(),
|
2214
|
+
}, Fn = /* @__PURE__ */ new WeakMap(), lo = (s, e, t) => {
|
2212
2215
|
let n = tt.get(s);
|
2213
|
-
|
2214
|
-
},
|
2216
|
+
io && t ? (n = n || new CSSStyleSheet(), n.replace(e)) : n = e, tt.set(s, n);
|
2217
|
+
}, co = (s, e, t, n) => {
|
2215
2218
|
let i = Ys(e, t), r = tt.get(i);
|
2216
2219
|
if (s = s.nodeType === 11 ? s : H, r)
|
2217
2220
|
if (typeof r == "string") {
|
@@ -2221,10 +2224,10 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2221
2224
|
} else
|
2222
2225
|
s.adoptedStyleSheets.includes(r) || (s.adoptedStyleSheets = [...s.adoptedStyleSheets, r]);
|
2223
2226
|
return i;
|
2224
|
-
},
|
2225
|
-
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r =
|
2227
|
+
}, ho = (s) => {
|
2228
|
+
const e = s.$cmpMeta$, t = s.$hostElement$, n = e.$flags$, i = re("attachStyles", e.$tagName$), r = co(t.shadowRoot ? t.shadowRoot : t.getRootNode(), e, s.$modeName$);
|
2226
2229
|
n & 10 && (t["s-sc"] = r, t.classList.add(r + "-h"), n & 2 && t.classList.add(r + "-s")), i();
|
2227
|
-
}, Ys = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$),
|
2230
|
+
}, Ys = (s, e) => "sc-" + (e && s.$flags$ & 32 ? s.$tagName$ + "-" + e : s.$tagName$), uo = (s) => Ho.map((e) => e(s)).find((e) => !!e), qn = {}, po = "http://www.w3.org/2000/svg", fo = "http://www.w3.org/1999/xhtml", go = (s) => s != null, nn = (s) => (s = typeof s, s === "object" || s === "function"), fe = (s, e, ...t) => {
|
2228
2231
|
let n = null, i = null, r = null, o = !1, a = !1, l = [];
|
2229
2232
|
const c = (u) => {
|
2230
2233
|
for (let d = 0; d < u.length; d++)
|
@@ -2238,7 +2241,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2238
2241
|
}
|
2239
2242
|
}
|
2240
2243
|
if (typeof s == "function")
|
2241
|
-
return s(e === null ? {} : e, l,
|
2244
|
+
return s(e === null ? {} : e, l, vo);
|
2242
2245
|
const h = Je(s, null);
|
2243
2246
|
return h.$attrs$ = e, l.length > 0 && (h.$children$ = l), h.$key$ = i, h.$name$ = r, h;
|
2244
2247
|
}, Je = (s, e) => {
|
@@ -2250,9 +2253,9 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2250
2253
|
$children$: null
|
2251
2254
|
};
|
2252
2255
|
return t.$attrs$ = null, t.$key$ = null, t.$name$ = null, t;
|
2253
|
-
}, sn = {},
|
2256
|
+
}, sn = {}, mo = (s) => s && s.$tag$ === sn, vo = {
|
2254
2257
|
forEach: (s, e) => s.map(Zn).forEach(e),
|
2255
|
-
map: (s, e) => s.map(Zn).map(e).map(
|
2258
|
+
map: (s, e) => s.map(Zn).map(e).map(bo)
|
2256
2259
|
}, Zn = (s) => ({
|
2257
2260
|
vattrs: s.$attrs$,
|
2258
2261
|
vchildren: s.$children$,
|
@@ -2260,7 +2263,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2260
2263
|
vname: s.$name$,
|
2261
2264
|
vtag: s.$tag$,
|
2262
2265
|
vtext: s.$text$
|
2263
|
-
}),
|
2266
|
+
}), bo = (s) => {
|
2264
2267
|
if (typeof s.vtag == "function") {
|
2265
2268
|
const t = Object.assign({}, s.vattrs);
|
2266
2269
|
return s.vkey && (t.key = s.vkey), s.vname && (t.name = s.vname), fe(s.vtag, t, ...s.vchildren || []);
|
@@ -2299,7 +2302,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2299
2302
|
a !== (a = a.replace(/^xlink\:?/, "")) && (e = a, c = !0), n == null || n === !1 ? (n !== !1 || s.getAttribute(e) === "") && (c ? s.removeAttributeNS(Nn, e) : s.removeAttribute(e)) : (!o || r & 4 || i) && !l && (n = n === !0 ? "" : n, c ? s.setAttributeNS(Nn, e, n) : s.setAttribute(e, n));
|
2300
2303
|
}
|
2301
2304
|
}
|
2302
|
-
},
|
2305
|
+
}, yo = /\s/, Yn = (s) => s ? s.split(yo) : [], Qs = (s, e, t, n) => {
|
2303
2306
|
const i = e.$elm$.nodeType === 11 && e.$elm$.host ? e.$elm$.host : e.$elm$, r = s && s.$attrs$ || qn, o = e.$attrs$ || qn;
|
2304
2307
|
for (n in r)
|
2305
2308
|
n in o || Wn(i, n, r[n], void 0, t, e.$flags$);
|
@@ -2318,7 +2321,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2318
2321
|
else if (i.$flags$ & 1)
|
2319
2322
|
o = i.$elm$ = H.createTextNode("");
|
2320
2323
|
else {
|
2321
|
-
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = H.createElementNS(T ?
|
2324
|
+
if (T || (T = i.$tag$ === "svg"), o = i.$elm$ = H.createElementNS(T ? po : fo, i.$flags$ & 2 ? "slot-fb" : i.$tag$), T && i.$tag$ === "foreignObject" && (T = !1), Qs(null, i, T), go(he) && o["s-si"] !== he && o.classList.add(o["s-si"] = he), i.$children$)
|
2322
2325
|
for (r = 0; r < i.$children$.length; ++r)
|
2323
2326
|
a = et(s, i, r, o), a && o.appendChild(a);
|
2324
2327
|
i.$tag$ === "svg" ? T = !1 : o.tagName === "foreignObject" && (T = !0);
|
@@ -2339,7 +2342,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2339
2342
|
}, Ks = (s, e, t, n, i) => {
|
2340
2343
|
for (; e <= t; ++e)
|
2341
2344
|
(n = s[e]) && (i = n.$elm$, ei(n), Ve = !0, i["s-ol"] ? i["s-ol"].remove() : Le(i, !0), i.remove());
|
2342
|
-
},
|
2345
|
+
}, $o = (s, e, t, n) => {
|
2343
2346
|
let i = 0, r = 0, o = 0, a = 0, l = e.length - 1, c = e[0], h = e[l], u = n.length - 1, d = n[0], p = n[u], b, f;
|
2344
2347
|
for (; i <= l && r <= u; )
|
2345
2348
|
if (c == null)
|
@@ -2370,7 +2373,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2370
2373
|
}, Ne = (s, e) => s.$tag$ === e.$tag$ ? s.$tag$ === "slot" ? s.$name$ === e.$name$ : s.$key$ === e.$key$ : !1, rn = (s) => s && s["s-ol"] || s, Xs = (s) => (s["s-ol"] ? s["s-ol"] : s).parentNode, ue = (s, e) => {
|
2371
2374
|
const t = e.$elm$ = s.$elm$, n = s.$children$, i = e.$children$, r = e.$tag$, o = e.$text$;
|
2372
2375
|
let a;
|
2373
|
-
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Qs(s, e, T), n !== null && i !== null ?
|
2376
|
+
o === null ? (T = r === "svg" ? !0 : r === "foreignObject" ? !1 : T, r === "slot" || Qs(s, e, T), n !== null && i !== null ? $o(t, n, e, i) : i !== null ? (s.$text$ !== null && (t.textContent = ""), Gs(t, null, e, i, 0, i.length - 1)) : n !== null && Ks(n, 0, n.length - 1), T && r === "svg" && (T = !1)) : (a = t["s-cr"]) ? a.parentNode.textContent = o : s.$text$ !== o && (t.data = o);
|
2374
2377
|
}, Vs = (s) => {
|
2375
2378
|
let e = s.childNodes, t, n, i, r, o, a;
|
2376
2379
|
for (n = 0, i = e.length; n < i; n++)
|
@@ -2406,8 +2409,8 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2406
2409
|
}
|
2407
2410
|
}, Qn = (s, e) => s.nodeType === 1 ? s.getAttribute("slot") === null && e === "" || s.getAttribute("slot") === e : s["s-sn"] === e ? !0 : e === "", ei = (s) => {
|
2408
2411
|
s.$attrs$ && s.$attrs$.ref && s.$attrs$.ref(null), s.$children$ && s.$children$.map(ei);
|
2409
|
-
},
|
2410
|
-
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r =
|
2412
|
+
}, xo = (s, e) => {
|
2413
|
+
const t = s.$hostElement$, n = s.$cmpMeta$, i = s.$vnode$ || Je(null, null), r = mo(e) ? e : fe(null, null, e);
|
2411
2414
|
ut = t.tagName, n.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, n.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = t[o])), r.$tag$ = null, r.$flags$ |= 4, s.$vnode$ = r, r.$elm$ = i.$elm$ = t.shadowRoot || t, he = t["s-sc"], Fs = t["s-cr"], qs = (n.$flags$ & 1) !== 0, Ve = !1, ue(i, r);
|
2412
2415
|
{
|
2413
2416
|
if (S.$flags$ |= 1, tn) {
|
@@ -2428,37 +2431,37 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2428
2431
|
}
|
2429
2432
|
Ve && Vs(r.$elm$), S.$flags$ &= -2, O.length = 0;
|
2430
2433
|
}
|
2431
|
-
},
|
2432
|
-
const n =
|
2434
|
+
}, wo = (s) => s, ko = (s, e, t) => {
|
2435
|
+
const n = wo(s);
|
2433
2436
|
return {
|
2434
|
-
emit: (i) =>
|
2437
|
+
emit: (i) => _o(n, e, {
|
2435
2438
|
bubbles: !!(t & 4),
|
2436
2439
|
composed: !!(t & 2),
|
2437
2440
|
cancelable: !!(t & 1),
|
2438
2441
|
detail: i
|
2439
2442
|
})
|
2440
2443
|
};
|
2441
|
-
},
|
2444
|
+
}, _o = (s, e, t) => {
|
2442
2445
|
const n = S.ce(e, t);
|
2443
2446
|
return s.dispatchEvent(n), n;
|
2444
|
-
},
|
2445
|
-
}, ti = (s, e) => (s.$flags$ |= 16,
|
2447
|
+
}, So = (s, e) => {
|
2448
|
+
}, ti = (s, e) => (s.$flags$ |= 16, So(s, s.$ancestorComponent$), Fo(() => Co(s, e))), Co = (s, e) => {
|
2446
2449
|
const t = s.$hostElement$, n = re("scheduleUpdate", s.$cmpMeta$.$tagName$), i = t;
|
2447
2450
|
let r;
|
2448
|
-
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = Gn(r, () => ge(i, "componentWillRender")), n(), Gn(r, () =>
|
2449
|
-
},
|
2451
|
+
return e ? r = ge(i, "componentWillLoad") : r = ge(i, "componentWillUpdate"), r = Gn(r, () => ge(i, "componentWillRender")), n(), Gn(r, () => Ao(s, i, e));
|
2452
|
+
}, Ao = async (s, e, t) => {
|
2450
2453
|
const n = s.$hostElement$, i = re("update", s.$cmpMeta$.$tagName$);
|
2451
|
-
n["s-rc"], t &&
|
2454
|
+
n["s-rc"], t && ho(s);
|
2452
2455
|
const r = re("render", s.$cmpMeta$.$tagName$);
|
2453
|
-
|
2454
|
-
},
|
2456
|
+
Eo(s, e, n), r(), i(), To(s);
|
2457
|
+
}, Eo = (s, e, t) => {
|
2455
2458
|
try {
|
2456
|
-
Bn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide ||
|
2459
|
+
Bn = e, e = e.render && e.render(), s.$flags$ &= -17, s.$flags$ |= 2, (ce.hasRenderFn || ce.reflect) && (ce.vdomRender || ce.reflect) && (ce.hydrateServerSide || xo(s, e));
|
2457
2460
|
} catch (a) {
|
2458
2461
|
Me(a, s.$hostElement$);
|
2459
2462
|
}
|
2460
2463
|
return Bn = null, null;
|
2461
|
-
},
|
2464
|
+
}, To = (s) => {
|
2462
2465
|
const e = s.$cmpMeta$.$tagName$, t = s.$hostElement$, n = re("postUpdate", e), i = t;
|
2463
2466
|
s.$ancestorComponent$, ge(i, "componentDidRender"), s.$flags$ & 64 ? (ge(i, "componentDidUpdate"), n()) : (s.$flags$ |= 64, ge(i, "componentDidLoad"), n());
|
2464
2467
|
}, ge = (s, e, t) => {
|
@@ -2468,9 +2471,9 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2468
2471
|
} catch (n) {
|
2469
2472
|
Me(n);
|
2470
2473
|
}
|
2471
|
-
}, Gn = (s, e) => s && s.then ? s.then(e) : e(),
|
2474
|
+
}, Gn = (s, e) => s && s.then ? s.then(e) : e(), Lo = (s, e) => s != null && !nn(s) ? e & 4 ? s === "false" ? !1 : s === "" || !!s : e & 2 ? parseFloat(s) : e & 1 ? String(s) : s : s, Oo = (s, e) => pt(s).$instanceValues$.get(e), Po = (s, e, t, n) => {
|
2472
2475
|
const i = pt(s), r = s, o = i.$instanceValues$.get(e), a = i.$flags$, l = r;
|
2473
|
-
t =
|
2476
|
+
t = Lo(t, n.$members$[e][0]);
|
2474
2477
|
const c = Number.isNaN(o) && Number.isNaN(t);
|
2475
2478
|
if (t !== o && !c) {
|
2476
2479
|
i.$instanceValues$.set(e, t);
|
@@ -2492,17 +2495,17 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2492
2495
|
}
|
2493
2496
|
}
|
2494
2497
|
}
|
2495
|
-
},
|
2498
|
+
}, Ro = (s, e, t) => {
|
2496
2499
|
if (e.$members$) {
|
2497
2500
|
s.watchers && (e.$watchers$ = s.watchers);
|
2498
2501
|
const n = Object.entries(e.$members$), i = s.prototype;
|
2499
2502
|
n.map(([r, [o]]) => {
|
2500
2503
|
(o & 31 || o & 32) && Object.defineProperty(i, r, {
|
2501
2504
|
get() {
|
2502
|
-
return
|
2505
|
+
return Oo(this, r);
|
2503
2506
|
},
|
2504
2507
|
set(a) {
|
2505
|
-
|
2508
|
+
Po(this, r, a, e);
|
2506
2509
|
},
|
2507
2510
|
configurable: !0,
|
2508
2511
|
enumerable: !0
|
@@ -2529,32 +2532,32 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2529
2532
|
}
|
2530
2533
|
}
|
2531
2534
|
return s;
|
2532
|
-
},
|
2535
|
+
}, Io = async (s, e, t, n, i) => {
|
2533
2536
|
if (!(e.$flags$ & 32) && (i = s.constructor, e.$flags$ |= 32, customElements.whenDefined(t.$tagName$).then(() => e.$flags$ |= 128), i.style)) {
|
2534
2537
|
let o = i.style;
|
2535
|
-
typeof o != "string" && (o = o[e.$modeName$ =
|
2538
|
+
typeof o != "string" && (o = o[e.$modeName$ = uo(s)]);
|
2536
2539
|
const a = Ys(t, e.$modeName$);
|
2537
2540
|
if (!tt.has(a)) {
|
2538
2541
|
const l = re("registerStyles", t.$tagName$);
|
2539
|
-
|
2542
|
+
lo(a, o, !!(t.$flags$ & 1)), l();
|
2540
2543
|
}
|
2541
2544
|
}
|
2542
2545
|
e.$ancestorComponent$, (() => ti(e, !0))();
|
2543
|
-
}, Io = (s) => {
|
2544
2546
|
}, Mo = (s) => {
|
2547
|
+
}, zo = (s) => {
|
2545
2548
|
if (!(S.$flags$ & 1)) {
|
2546
2549
|
const e = pt(s), t = e.$cmpMeta$, n = re("connectedCallback", t.$tagName$);
|
2547
|
-
e.$flags$ & 1 ? (Ws(s, e, t.$listeners$),
|
2550
|
+
e.$flags$ & 1 ? (Ws(s, e, t.$listeners$), Mo(e.$lazyInstance$)) : (e.$flags$ |= 1, t.$flags$ & 12 && Uo(s), t.$members$ && Object.entries(t.$members$).map(([i, [r]]) => {
|
2548
2551
|
if (r & 31 && s.hasOwnProperty(i)) {
|
2549
2552
|
const o = s[i];
|
2550
2553
|
delete s[i], s[i] = o;
|
2551
2554
|
}
|
2552
|
-
}),
|
2555
|
+
}), Io(s, e, t)), n();
|
2553
2556
|
}
|
2554
|
-
},
|
2557
|
+
}, Uo = (s) => {
|
2555
2558
|
const e = s["s-cr"] = H.createComment("");
|
2556
2559
|
e["s-cn"] = !0, s.insertBefore(e, s.firstChild);
|
2557
|
-
},
|
2560
|
+
}, jo = (s) => {
|
2558
2561
|
if (!(S.$flags$ & 1)) {
|
2559
2562
|
const e = pt(s);
|
2560
2563
|
e.$rmListeners$ && (e.$rmListeners$.map((t) => t()), e.$rmListeners$ = void 0);
|
@@ -2568,13 +2571,13 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2568
2571
|
const n = s.prototype.connectedCallback, i = s.prototype.disconnectedCallback;
|
2569
2572
|
return Object.assign(s.prototype, {
|
2570
2573
|
__registerHost() {
|
2571
|
-
|
2574
|
+
Do(this, t);
|
2572
2575
|
},
|
2573
2576
|
connectedCallback() {
|
2574
|
-
|
2577
|
+
zo(this), n && n.call(this);
|
2575
2578
|
},
|
2576
2579
|
disconnectedCallback() {
|
2577
|
-
|
2580
|
+
jo(this), i && i.call(this);
|
2578
2581
|
},
|
2579
2582
|
__attachShadow() {
|
2580
2583
|
this.attachShadow({
|
@@ -2582,8 +2585,8 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2582
2585
|
delegatesFocus: !!(t.$flags$ & 16)
|
2583
2586
|
});
|
2584
2587
|
}
|
2585
|
-
}), s.is = t.$tagName$,
|
2586
|
-
}, si = /* @__PURE__ */ new WeakMap(), pt = (s) => si.get(s),
|
2588
|
+
}), s.is = t.$tagName$, Ro(s, t);
|
2589
|
+
}, si = /* @__PURE__ */ new WeakMap(), pt = (s) => si.get(s), Do = (s, e) => {
|
2587
2590
|
const t = {
|
2588
2591
|
$flags$: 0,
|
2589
2592
|
$hostElement$: s,
|
@@ -2591,8 +2594,8 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2591
2594
|
$instanceValues$: /* @__PURE__ */ new Map()
|
2592
2595
|
};
|
2593
2596
|
return Ws(s, t, e.$listeners$), si.set(s, t);
|
2594
|
-
}, Kn = (s, e) => e in s, Me = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(),
|
2595
|
-
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ?
|
2597
|
+
}, Kn = (s, e) => e in s, Me = (s, e) => (0, console.error)(s, e), tt = /* @__PURE__ */ new Map(), Ho = [], Xn = [], ii = [], Bo = (s, e) => (t) => {
|
2598
|
+
s.push(t), Dt || (Dt = !0, e && S.$flags$ & 4 ? No(Ht) : S.raf(Ht));
|
2596
2599
|
}, Vn = (s) => {
|
2597
2600
|
for (let e = 0; e < s.length; e++)
|
2598
2601
|
try {
|
@@ -2603,7 +2606,7 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2603
2606
|
s.length = 0;
|
2604
2607
|
}, Ht = () => {
|
2605
2608
|
Vn(Xn), Vn(ii), (Dt = Xn.length > 0) && S.raf(Ht);
|
2606
|
-
},
|
2609
|
+
}, No = (s) => so().then(s), Fo = /* @__PURE__ */ Bo(ii, !0), qo = (s = {}) => {
|
2607
2610
|
const { content: e = "", title: t, attributes: n = [] } = s;
|
2608
2611
|
let i = "", r = [
|
2609
2612
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -2611,27 +2614,27 @@ const dt = typeof window < "u" ? window : {}, H = dt.document || { head: {} }, Z
|
|
2611
2614
|
...n
|
2612
2615
|
];
|
2613
2616
|
return t && (i = `<title>${t}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${i}${e}</svg>`;
|
2614
|
-
},
|
2615
|
-
function
|
2617
|
+
}, Zo = (s) => s.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
2618
|
+
function Wo(s) {
|
2616
2619
|
return `${s.getFullYear()}.${s.getMonth() + 1}`;
|
2617
2620
|
}
|
2618
|
-
class
|
2621
|
+
class Yo {
|
2619
2622
|
constructor(e) {
|
2620
|
-
this.voca_component = e, this.voca_added =
|
2623
|
+
this.voca_component = e, this.voca_added = Wo(/* @__PURE__ */ new Date());
|
2621
2624
|
}
|
2622
2625
|
}
|
2623
|
-
const
|
2626
|
+
const Qo = "telia-vst{display:none}", Go = /* @__PURE__ */ ni(class extends Zs {
|
2624
2627
|
constructor() {
|
2625
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
2628
|
+
super(), this.__registerHost(), this.vocaInternalUStats = ko(this, "vocaInternalUStats", 7);
|
2626
2629
|
}
|
2627
2630
|
connectedCallback() {
|
2628
|
-
this.vocaInternalUStats.emit(new
|
2631
|
+
this.vocaInternalUStats.emit(new Yo(this.dataTrackingId));
|
2629
2632
|
}
|
2630
2633
|
render() {
|
2631
2634
|
return fe(sn, null);
|
2632
2635
|
}
|
2633
2636
|
static get style() {
|
2634
|
-
return
|
2637
|
+
return Qo;
|
2635
2638
|
}
|
2636
2639
|
}, [0, "telia-vst", {
|
2637
2640
|
dataTrackingId: [1, "data-tracking-id"]
|
@@ -2642,7 +2645,7 @@ function ri() {
|
|
2642
2645
|
["telia-vst"].forEach((e) => {
|
2643
2646
|
switch (e) {
|
2644
2647
|
case "telia-vst":
|
2645
|
-
customElements.get(e) || customElements.define(e,
|
2648
|
+
customElements.get(e) || customElements.define(e, Go);
|
2646
2649
|
break;
|
2647
2650
|
}
|
2648
2651
|
});
|
@@ -2651,14 +2654,14 @@ ri();
|
|
2651
2654
|
function Bt() {
|
2652
2655
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
2653
2656
|
}
|
2654
|
-
function
|
2657
|
+
function Ko() {
|
2655
2658
|
if (typeof Bt().vocadsIcons !== void 0)
|
2656
2659
|
return Bt().vocadsIcons;
|
2657
2660
|
}
|
2658
|
-
function
|
2661
|
+
function Xo() {
|
2659
2662
|
return Bt().vocadsIconsRegistered;
|
2660
2663
|
}
|
2661
|
-
const
|
2664
|
+
const Vo = ".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))}", Jo = /* @__PURE__ */ ni(class extends Zs {
|
2662
2665
|
constructor() {
|
2663
2666
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
2664
2667
|
}
|
@@ -2670,8 +2673,8 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2670
2673
|
getSvgString() {
|
2671
2674
|
if (this.svg)
|
2672
2675
|
return this.svg;
|
2673
|
-
if (
|
2674
|
-
const s =
|
2676
|
+
if (Xo() && this.name) {
|
2677
|
+
const s = Ko();
|
2675
2678
|
return s[this.name] ? s[this.name].svg : "";
|
2676
2679
|
}
|
2677
2680
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
@@ -2682,15 +2685,15 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2682
2685
|
...e,
|
2683
2686
|
{ name: "aria-hidden", value: "true" }
|
2684
2687
|
];
|
2685
|
-
const t =
|
2686
|
-
content:
|
2688
|
+
const t = qo({
|
2689
|
+
content: Zo(s),
|
2687
2690
|
attributes: e,
|
2688
2691
|
title: this.allyTitle
|
2689
2692
|
});
|
2690
2693
|
return fe(sn, { class: `telia-icon telia-icon--${this.size}` }, fe("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: t }), fe("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
2691
2694
|
}
|
2692
2695
|
static get style() {
|
2693
|
-
return
|
2696
|
+
return Vo;
|
2694
2697
|
}
|
2695
2698
|
}, [0, "telia-icon", {
|
2696
2699
|
name: [1],
|
@@ -2699,13 +2702,13 @@ const Xo = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
2699
2702
|
allyTitle: [1, "ally-title"],
|
2700
2703
|
dataTestid: [1, "data-testid"]
|
2701
2704
|
}]);
|
2702
|
-
function
|
2705
|
+
function ea() {
|
2703
2706
|
if (typeof customElements > "u")
|
2704
2707
|
return;
|
2705
2708
|
["telia-icon", "telia-vst"].forEach((e) => {
|
2706
2709
|
switch (e) {
|
2707
2710
|
case "telia-icon":
|
2708
|
-
customElements.get(e) || customElements.define(e,
|
2711
|
+
customElements.get(e) || customElements.define(e, Jo);
|
2709
2712
|
break;
|
2710
2713
|
case "telia-vst":
|
2711
2714
|
customElements.get(e) || ri();
|
@@ -2713,13 +2716,13 @@ function Jo() {
|
|
2713
2716
|
}
|
2714
2717
|
});
|
2715
2718
|
}
|
2716
|
-
|
2719
|
+
ea();
|
2717
2720
|
/**
|
2718
2721
|
* @license
|
2719
2722
|
* Copyright 2017 Google LLC
|
2720
2723
|
* SPDX-License-Identifier: BSD-3-Clause
|
2721
2724
|
*/
|
2722
|
-
const
|
2725
|
+
const ta = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged: en }, na = (s = ta, e, t) => {
|
2723
2726
|
const { kind: n, metadata: i } = t;
|
2724
2727
|
let r = globalThis.litPropertyMetadata.get(i);
|
2725
2728
|
if (r === void 0 && globalThis.litPropertyMetadata.set(i, r = /* @__PURE__ */ new Map()), r.set(t.name, s), n === "accessor") {
|
@@ -2741,7 +2744,7 @@ const ea = { attribute: !0, type: String, converter: Ke, reflect: !1, hasChanged
|
|
2741
2744
|
throw Error("Unsupported decorator location: " + n);
|
2742
2745
|
};
|
2743
2746
|
function w(s) {
|
2744
|
-
return (e, t) => typeof t == "object" ?
|
2747
|
+
return (e, t) => typeof t == "object" ? na(s, e, t) : ((n, i, r) => {
|
2745
2748
|
const o = i.hasOwnProperty(r);
|
2746
2749
|
return i.constructor.createProperty(r, o ? { ...n, wrapped: !0 } : n), o ? Object.getOwnPropertyDescriptor(i, r) : void 0;
|
2747
2750
|
})(s, e, t);
|
@@ -2759,7 +2762,7 @@ function C(s) {
|
|
2759
2762
|
* Copyright 2020 Google LLC
|
2760
2763
|
* SPDX-License-Identifier: BSD-3-Clause
|
2761
2764
|
*/
|
2762
|
-
const
|
2765
|
+
const sa = (s) => s.strings === void 0;
|
2763
2766
|
/**
|
2764
2767
|
* @license
|
2765
2768
|
* Copyright 2017 Google LLC
|
@@ -2809,13 +2812,13 @@ const _e = (s, e) => {
|
|
2809
2812
|
e._$AN = t = /* @__PURE__ */ new Set();
|
2810
2813
|
else if (t.has(s))
|
2811
2814
|
break;
|
2812
|
-
t.add(s),
|
2815
|
+
t.add(s), oa(e);
|
2813
2816
|
}
|
2814
2817
|
};
|
2815
|
-
function
|
2818
|
+
function ia(s) {
|
2816
2819
|
this._$AN !== void 0 ? (nt(this), this._$AM = s, oi(this)) : this._$AM = s;
|
2817
2820
|
}
|
2818
|
-
function
|
2821
|
+
function ra(s, e = !1, t = 0) {
|
2819
2822
|
const n = this._$AH, i = this._$AN;
|
2820
2823
|
if (i !== void 0 && i.size !== 0)
|
2821
2824
|
if (e)
|
@@ -2827,8 +2830,8 @@ function ia(s, e = !1, t = 0) {
|
|
2827
2830
|
else
|
2828
2831
|
_e(this, s);
|
2829
2832
|
}
|
2830
|
-
const
|
2831
|
-
s.type == ft.CHILD && (s._$AP ?? (s._$AP =
|
2833
|
+
const oa = (s) => {
|
2834
|
+
s.type == ft.CHILD && (s._$AP ?? (s._$AP = ra), s._$AQ ?? (s._$AQ = ia));
|
2832
2835
|
};
|
2833
2836
|
let ai = class extends on {
|
2834
2837
|
constructor() {
|
@@ -2842,7 +2845,7 @@ let ai = class extends on {
|
|
2842
2845
|
e !== this.isConnected && (this.isConnected = e, e ? (n = this.reconnected) == null || n.call(this) : (i = this.disconnected) == null || i.call(this)), t && (_e(this, e), nt(this));
|
2843
2846
|
}
|
2844
2847
|
setValue(e) {
|
2845
|
-
if (
|
2848
|
+
if (sa(this._$Ct))
|
2846
2849
|
this._$Ct._$AI(e, this);
|
2847
2850
|
else {
|
2848
2851
|
const t = [...this._$Ct._$AH];
|
@@ -2859,8 +2862,8 @@ let ai = class extends on {
|
|
2859
2862
|
* Copyright 2020 Google LLC
|
2860
2863
|
* SPDX-License-Identifier: BSD-3-Clause
|
2861
2864
|
*/
|
2862
|
-
const M = () => new
|
2863
|
-
class
|
2865
|
+
const M = () => new aa();
|
2866
|
+
class aa {
|
2864
2867
|
}
|
2865
2868
|
const At = /* @__PURE__ */ new WeakMap(), z = gt(class extends ai {
|
2866
2869
|
render(s) {
|
@@ -2922,10 +2925,10 @@ const be = gt(class extends on {
|
|
2922
2925
|
return G;
|
2923
2926
|
}
|
2924
2927
|
});
|
2925
|
-
var
|
2926
|
-
for (var i = n > 1 ? void 0 : n ?
|
2928
|
+
var la = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, ha = (s, e, t, n) => {
|
2929
|
+
for (var i = n > 1 ? void 0 : n ? ca(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
2927
2930
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
2928
|
-
return n && i &&
|
2931
|
+
return n && i && la(e, t, i), i;
|
2929
2932
|
};
|
2930
2933
|
class an extends k {
|
2931
2934
|
constructor() {
|
@@ -2958,12 +2961,12 @@ an.styles = [
|
|
2958
2961
|
}
|
2959
2962
|
`
|
2960
2963
|
];
|
2961
|
-
|
2964
|
+
ha([
|
2962
2965
|
w({ attribute: !0 })
|
2963
2966
|
], an.prototype, "anchor", 2);
|
2964
|
-
const
|
2967
|
+
const ua = /* @__PURE__ */ new WeakMap();
|
2965
2968
|
let Jn = 0;
|
2966
|
-
const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = () => new Promise((s) => requestAnimationFrame(s)),
|
2969
|
+
const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = () => new Promise((s) => requestAnimationFrame(s)), da = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], pa = [{ opacity: 0 }], ns = [{ opacity: 0 }, { opacity: 1 }], ss = (s, e) => {
|
2967
2970
|
const t = s - e;
|
2968
2971
|
return t === 0 ? void 0 : t;
|
2969
2972
|
}, is = (s, e) => {
|
@@ -2985,8 +2988,8 @@ const Et = /* @__PURE__ */ new Map(), es = /* @__PURE__ */ new WeakSet(), ts = (
|
|
2985
2988
|
e === 0 && (e = 1, t = { height: "1px" });
|
2986
2989
|
const n = is(s, e);
|
2987
2990
|
return { value: n, overrideFrom: t, transform: n == null || isNaN(n) ? void 0 : `scaleY(${n})` };
|
2988
|
-
} },
|
2989
|
-
class
|
2991
|
+
} }, fa = { duration: 333, easing: "ease-in-out" }, ga = ["left", "top", "width", "height", "opacity", "color", "background"], rs = /* @__PURE__ */ new WeakMap();
|
2992
|
+
class ma extends ai {
|
2990
2993
|
constructor(e) {
|
2991
2994
|
if (super(e), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, e.type === ft.CHILD)
|
2992
2995
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -3006,7 +3009,7 @@ class ga extends ai {
|
|
3006
3009
|
return g;
|
3007
3010
|
}
|
3008
3011
|
getController() {
|
3009
|
-
return
|
3012
|
+
return ua.get(this.u);
|
3010
3013
|
}
|
3011
3014
|
isDisabled() {
|
3012
3015
|
var e;
|
@@ -3020,7 +3023,7 @@ class ga extends ai {
|
|
3020
3023
|
p(e) {
|
3021
3024
|
e = e ?? {};
|
3022
3025
|
const t = this.getController();
|
3023
|
-
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties =
|
3026
|
+
t !== void 0 && ((e = { ...t.defaultOptions, ...e }).keyframeOptions = { ...t.defaultOptions.keyframeOptions, ...e.keyframeOptions }), e.properties ?? (e.properties = ga), this.options = e;
|
3024
3027
|
}
|
3025
3028
|
m() {
|
3026
3029
|
const e = {}, t = this.element.getBoundingClientRect(), n = getComputedStyle(this.element);
|
@@ -3114,7 +3117,7 @@ class ga extends ai {
|
|
3114
3117
|
}), e;
|
3115
3118
|
}
|
3116
3119
|
j(e, t = this.O()) {
|
3117
|
-
const n = { ...
|
3120
|
+
const n = { ...fa };
|
3118
3121
|
return t.forEach((i) => Object.assign(n, i.options.keyframeOptions)), Object.assign(n, e), n;
|
3119
3122
|
}
|
3120
3123
|
N(e, t, n) {
|
@@ -3165,7 +3168,7 @@ class ga extends ai {
|
|
3165
3168
|
this.shouldLog && !this.isDisabled() && console.log(e, this.options.id, t);
|
3166
3169
|
}
|
3167
3170
|
}
|
3168
|
-
const Nt = gt(
|
3171
|
+
const Nt = gt(ma), F = (s, e, t) => {
|
3169
3172
|
s && t.style.setProperty(e, s);
|
3170
3173
|
}, li = (s, e) => {
|
3171
3174
|
var t, n, i, r, o, a, l, c, h;
|
@@ -3199,10 +3202,10 @@ const Nt = gt(ga), F = (s, e, t) => {
|
|
3199
3202
|
e
|
3200
3203
|
), F((h = s.colors) == null ? void 0 : h.focusColor, "--focus-color", e);
|
3201
3204
|
};
|
3202
|
-
var
|
3203
|
-
for (var i = n > 1 ? void 0 : n ?
|
3205
|
+
var va = Object.defineProperty, ba = Object.getOwnPropertyDescriptor, ze = (s, e, t, n) => {
|
3206
|
+
for (var i = n > 1 ? void 0 : n ? ba(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3204
3207
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3205
|
-
return n && i &&
|
3208
|
+
return n && i && va(e, t, i), i;
|
3206
3209
|
};
|
3207
3210
|
class X extends k {
|
3208
3211
|
constructor() {
|
@@ -3251,7 +3254,7 @@ class X extends k {
|
|
3251
3254
|
const n = (c = this.application) == null ? void 0 : c.triggerIcon;
|
3252
3255
|
if (!n)
|
3253
3256
|
return g;
|
3254
|
-
const i = async (h) =>
|
3257
|
+
const i = async (h) => eo, { type: r, content: o } = n;
|
3255
3258
|
switch (r) {
|
3256
3259
|
case "Telia": {
|
3257
3260
|
const h = await i();
|
@@ -3287,7 +3290,7 @@ class X extends k {
|
|
3287
3290
|
@click=${this.toggleActive}
|
3288
3291
|
${Nt({
|
3289
3292
|
keyframeOptions: {},
|
3290
|
-
in:
|
3293
|
+
in: da,
|
3291
3294
|
stabilizeOut: !0,
|
3292
3295
|
skipInitial: !1
|
3293
3296
|
})}
|
@@ -3484,10 +3487,10 @@ ze([
|
|
3484
3487
|
ze([
|
3485
3488
|
C()
|
3486
3489
|
], X.prototype, "icon", 2);
|
3487
|
-
var
|
3488
|
-
for (var i = n > 1 ? void 0 : n ?
|
3490
|
+
var ya = Object.defineProperty, $a = Object.getOwnPropertyDescriptor, te = (s, e, t, n) => {
|
3491
|
+
for (var i = n > 1 ? void 0 : n ? $a(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3489
3492
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3490
|
-
return n && i &&
|
3493
|
+
return n && i && ya(e, t, i), i;
|
3491
3494
|
};
|
3492
3495
|
const ci = (s) => {
|
3493
3496
|
class e extends s {
|
@@ -3561,7 +3564,7 @@ hi.styles = [
|
|
3561
3564
|
* Copyright 2021 Google LLC
|
3562
3565
|
* SPDX-License-Identifier: BSD-3-Clause
|
3563
3566
|
*/
|
3564
|
-
function*
|
3567
|
+
function* xa(s, e) {
|
3565
3568
|
if (s !== void 0) {
|
3566
3569
|
let t = 0;
|
3567
3570
|
for (const n of s)
|
@@ -3574,7 +3577,7 @@ var ln = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s)
|
|
3574
3577
|
* Copyright 2021 Google LLC
|
3575
3578
|
* SPDX-License-Identifier: BSD-3-Clause
|
3576
3579
|
*/
|
3577
|
-
let
|
3580
|
+
let wa = class extends Event {
|
3578
3581
|
constructor(e, t, n) {
|
3579
3582
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = e, this.callback = t, this.subscribe = n ?? !1;
|
3580
3583
|
}
|
@@ -3589,7 +3592,7 @@ let xa = class extends Event {
|
|
3589
3592
|
* Copyright 2021 Google LLC
|
3590
3593
|
* SPDX-License-Identifier: BSD-3-Clause
|
3591
3594
|
*/
|
3592
|
-
class
|
3595
|
+
class ka {
|
3593
3596
|
get value() {
|
3594
3597
|
return this.o;
|
3595
3598
|
}
|
@@ -3624,12 +3627,12 @@ class wa {
|
|
3624
3627
|
* Copyright 2021 Google LLC
|
3625
3628
|
* SPDX-License-Identifier: BSD-3-Clause
|
3626
3629
|
*/
|
3627
|
-
let
|
3630
|
+
let _a = class extends Event {
|
3628
3631
|
constructor(e) {
|
3629
3632
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = e;
|
3630
3633
|
}
|
3631
3634
|
};
|
3632
|
-
class os extends
|
3635
|
+
class os extends ka {
|
3633
3636
|
constructor(e, t, n) {
|
3634
3637
|
var i, r;
|
3635
3638
|
super(t.context !== void 0 ? t.initialValue : n), this.onContextRequest = (o) => {
|
@@ -3641,7 +3644,7 @@ class os extends wa {
|
|
3641
3644
|
return;
|
3642
3645
|
const l = /* @__PURE__ */ new Set();
|
3643
3646
|
for (const [c, { consumerHost: h }] of this.subscriptions)
|
3644
|
-
l.has(c) || (l.add(c), h.dispatchEvent(new
|
3647
|
+
l.has(c) || (l.add(c), h.dispatchEvent(new wa(this.context, c, !0)));
|
3645
3648
|
o.stopPropagation();
|
3646
3649
|
}, this.host = e, t.context !== void 0 ? this.context = t.context : this.context = t, this.attachListeners(), (r = (i = this.host).addController) == null || r.call(i, this);
|
3647
3650
|
}
|
@@ -3649,7 +3652,7 @@ class os extends wa {
|
|
3649
3652
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
3650
3653
|
}
|
3651
3654
|
hostConnected() {
|
3652
|
-
this.host.dispatchEvent(new
|
3655
|
+
this.host.dispatchEvent(new _a(this.context));
|
3653
3656
|
}
|
3654
3657
|
}
|
3655
3658
|
/**
|
@@ -3657,7 +3660,7 @@ class os extends wa {
|
|
3657
3660
|
* Copyright 2017 Google LLC
|
3658
3661
|
* SPDX-License-Identifier: BSD-3-Clause
|
3659
3662
|
*/
|
3660
|
-
function
|
3663
|
+
function Sa({ context: s }) {
|
3661
3664
|
return (e, t) => {
|
3662
3665
|
const n = /* @__PURE__ */ new WeakMap();
|
3663
3666
|
if (typeof t == "object")
|
@@ -3695,12 +3698,12 @@ function _a({ context: s }) {
|
|
3695
3698
|
}
|
3696
3699
|
};
|
3697
3700
|
}
|
3698
|
-
var
|
3699
|
-
for (var i = n > 1 ? void 0 : n ?
|
3701
|
+
var Ca = Object.defineProperty, Aa = Object.getOwnPropertyDescriptor, Ea = (s, e, t, n) => {
|
3702
|
+
for (var i = n > 1 ? void 0 : n ? Aa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3700
3703
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3701
|
-
return n && i &&
|
3704
|
+
return n && i && Ca(e, t, i), i;
|
3702
3705
|
};
|
3703
|
-
const
|
3706
|
+
const Ta = "application";
|
3704
3707
|
class cn extends k {
|
3705
3708
|
constructor() {
|
3706
3709
|
super(...arguments), this.nodes = [], this.wrapperRef = M();
|
@@ -3729,7 +3732,7 @@ class cn extends k {
|
|
3729
3732
|
var n, i;
|
3730
3733
|
const e = this.application.settings.components.conversation;
|
3731
3734
|
return ((i = (n = e == null ? void 0 : e.properties) == null ? void 0 : n.chat) == null ? void 0 : i.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === ln.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")), window.self !== window.top ? (console.log("This page is embedded in an iframe."), this.renderRoot.host.classList.add("embedded")) : console.log("This page is not embedded in an iframe."), m`<div class="widget-container" ${z(this.wrapperRef)}>
|
3732
|
-
${
|
3735
|
+
${xa(this.nodes, (r) => r)}
|
3733
3736
|
</div>`;
|
3734
3737
|
}
|
3735
3738
|
}
|
@@ -3886,14 +3889,14 @@ cn.styles = E`
|
|
3886
3889
|
pointer-events: none;
|
3887
3890
|
}
|
3888
3891
|
`;
|
3889
|
-
|
3892
|
+
Ea([
|
3890
3893
|
w({ attribute: !1 }),
|
3891
|
-
|
3894
|
+
Sa({ context: Ta })
|
3892
3895
|
], cn.prototype, "application", 2);
|
3893
|
-
var ui = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(ui || {}),
|
3894
|
-
for (var i = n > 1 ? void 0 : n ?
|
3896
|
+
var ui = /* @__PURE__ */ ((s) => (s.Necessary = "necessary", s.Functional = "functional", s.Analytics = "analytics", s))(ui || {}), La = Object.defineProperty, Oa = Object.getOwnPropertyDescriptor, hn = (s, e, t, n) => {
|
3897
|
+
for (var i = n > 1 ? void 0 : n ? Oa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
3895
3898
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
3896
|
-
return n && i &&
|
3899
|
+
return n && i && La(e, t, i), i;
|
3897
3900
|
};
|
3898
3901
|
class Ue extends k {
|
3899
3902
|
constructor() {
|
@@ -3948,7 +3951,7 @@ customElements.get("ace-trigger") || customElements.define("ace-trigger", X);
|
|
3948
3951
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", hi);
|
3949
3952
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", cn);
|
3950
3953
|
customElements.get("ace-widget") || customElements.define("ace-widget", Ue);
|
3951
|
-
class
|
3954
|
+
class Pa {
|
3952
3955
|
constructor(e) {
|
3953
3956
|
this._message = null, this._host = e, e.addController(this);
|
3954
3957
|
}
|
@@ -4020,7 +4023,7 @@ class as {
|
|
4020
4023
|
return this.component.platform.registeredProviders.get(e);
|
4021
4024
|
}
|
4022
4025
|
}
|
4023
|
-
class
|
4026
|
+
class Ra {
|
4024
4027
|
constructor(e) {
|
4025
4028
|
this.component = e, this.currentSession$ = new U(null), this.sessions = [], this.storage = null, Ge(e, "handover").subscribe((t) => {
|
4026
4029
|
const n = this._createNewSession(
|
@@ -4118,9 +4121,9 @@ class Pa {
|
|
4118
4121
|
return this.component.properties.providers[0];
|
4119
4122
|
}
|
4120
4123
|
}
|
4121
|
-
class
|
4124
|
+
class Ia {
|
4122
4125
|
constructor(e, t) {
|
4123
|
-
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
|
4126
|
+
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 Ra(this.component), this.session$ = this.sessionService.currentSession(), this.isTyping$ = this.session$.pipe(
|
4124
4127
|
pe((n) => n ? n.provider$.pipe(
|
4125
4128
|
pe((i) => i ? i.isTyping() : It(!1))
|
4126
4129
|
) : It(!1))
|
@@ -4169,10 +4172,10 @@ class Ra {
|
|
4169
4172
|
(e = this.sessionService) == null || e.startSession();
|
4170
4173
|
}
|
4171
4174
|
}
|
4172
|
-
var
|
4173
|
-
for (var i = n > 1 ? void 0 : n ?
|
4175
|
+
var Ma = Object.defineProperty, za = Object.getOwnPropertyDescriptor, Ua = (s, e, t, n) => {
|
4176
|
+
for (var i = n > 1 ? void 0 : n ? za(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4174
4177
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4175
|
-
return n && i &&
|
4178
|
+
return n && i && Ma(e, t, i), i;
|
4176
4179
|
};
|
4177
4180
|
class un extends k {
|
4178
4181
|
connectedCallback() {
|
@@ -4196,13 +4199,13 @@ class un extends k {
|
|
4196
4199
|
}
|
4197
4200
|
_renderDeliveryStatus(e) {
|
4198
4201
|
return e === "delivered" ? m`<telia-icon
|
4199
|
-
svg=${
|
4202
|
+
svg=${Kr.svg}
|
4200
4203
|
size="sm"
|
4201
4204
|
></telia-icon>` : e === "failed" ? m`<telia-icon
|
4202
|
-
svg=${
|
4205
|
+
svg=${Gr.svg}
|
4203
4206
|
size="sm"
|
4204
4207
|
title="Message could not be delivered"
|
4205
|
-
></telia-icon>` : m`<telia-icon svg=${
|
4208
|
+
></telia-icon>` : m`<telia-icon svg=${Xr.svg} size="sm"></telia-icon>`;
|
4206
4209
|
}
|
4207
4210
|
_dispatchEntryAction(e) {
|
4208
4211
|
this.entry.actions$.next(e.detail);
|
@@ -4406,13 +4409,13 @@ un.styles = [
|
|
4406
4409
|
}
|
4407
4410
|
`
|
4408
4411
|
];
|
4409
|
-
|
4412
|
+
Ua([
|
4410
4413
|
w({ attribute: !1 })
|
4411
4414
|
], un.prototype, "entry", 2);
|
4412
|
-
var
|
4413
|
-
for (var i = n > 1 ? void 0 : n ?
|
4415
|
+
var ja = Object.defineProperty, Da = Object.getOwnPropertyDescriptor, di = (s, e, t, n) => {
|
4416
|
+
for (var i = n > 1 ? void 0 : n ? Da(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4414
4417
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4415
|
-
return n && i &&
|
4418
|
+
return n && i && ja(e, t, i), i;
|
4416
4419
|
};
|
4417
4420
|
class mt extends k {
|
4418
4421
|
constructor() {
|
@@ -4442,7 +4445,7 @@ class mt extends k {
|
|
4442
4445
|
${Nt({
|
4443
4446
|
keyframeOptions: {},
|
4444
4447
|
in: ns,
|
4445
|
-
out:
|
4448
|
+
out: pa,
|
4446
4449
|
stabilizeOut: !0,
|
4447
4450
|
skipInitial: !1
|
4448
4451
|
})}
|
@@ -4480,16 +4483,16 @@ di([
|
|
4480
4483
|
* Copyright 2021 Google LLC
|
4481
4484
|
* SPDX-License-Identifier: BSD-3-Clause
|
4482
4485
|
*/
|
4483
|
-
const
|
4486
|
+
const Ha = (s, e, t) => {
|
4484
4487
|
for (const n of e)
|
4485
4488
|
if (n[0] === s)
|
4486
4489
|
return (0, n[1])();
|
4487
4490
|
return t == null ? void 0 : t();
|
4488
4491
|
};
|
4489
|
-
var
|
4490
|
-
for (var i = n > 1 ? void 0 : n ?
|
4492
|
+
var Ba = Object.defineProperty, Na = Object.getOwnPropertyDescriptor, Fa = (s, e, t, n) => {
|
4493
|
+
for (var i = n > 1 ? void 0 : n ? Na(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4491
4494
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4492
|
-
return n && i &&
|
4495
|
+
return n && i && Ba(e, t, i), i;
|
4493
4496
|
};
|
4494
4497
|
class dn extends k {
|
4495
4498
|
render() {
|
@@ -4497,7 +4500,7 @@ class dn extends k {
|
|
4497
4500
|
<div class="message-group">
|
4498
4501
|
${this.group.items.map(
|
4499
4502
|
([e, t, n]) => m`
|
4500
|
-
${
|
4503
|
+
${Ha(
|
4501
4504
|
e,
|
4502
4505
|
[
|
4503
4506
|
["html", () => m`<message-type-html .message=${t} />`],
|
@@ -4536,7 +4539,7 @@ dn.styles = [
|
|
4536
4539
|
}
|
4537
4540
|
`
|
4538
4541
|
];
|
4539
|
-
|
4542
|
+
Fa([
|
4540
4543
|
w({ attribute: !1 })
|
4541
4544
|
], dn.prototype, "group", 2);
|
4542
4545
|
class pi extends k {
|
@@ -4610,16 +4613,16 @@ class Ft extends on {
|
|
4610
4613
|
}
|
4611
4614
|
}
|
4612
4615
|
Ft.directiveName = "unsafeHTML", Ft.resultType = 1;
|
4613
|
-
const
|
4614
|
-
var
|
4615
|
-
for (var i = n > 1 ? void 0 : n ?
|
4616
|
+
const qa = gt(Ft);
|
4617
|
+
var Za = Object.defineProperty, Wa = Object.getOwnPropertyDescriptor, Ya = (s, e, t, n) => {
|
4618
|
+
for (var i = n > 1 ? void 0 : n ? Wa(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
4616
4619
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
4617
|
-
return n && i &&
|
4620
|
+
return n && i && Za(e, t, i), i;
|
4618
4621
|
};
|
4619
4622
|
class pn extends k {
|
4620
4623
|
render() {
|
4621
4624
|
return m`<div class="message-type-html">
|
4622
|
-
${
|
4625
|
+
${qa(this.message.content)}
|
4623
4626
|
</div>`;
|
4624
4627
|
}
|
4625
4628
|
}
|
@@ -4660,7 +4663,7 @@ pn.styles = [
|
|
4660
4663
|
}
|
4661
4664
|
`
|
4662
4665
|
];
|
4663
|
-
|
4666
|
+
Ya([
|
4664
4667
|
w({ attribute: !1 })
|
4665
4668
|
], pn.prototype, "message", 2);
|
4666
4669
|
function fn() {
|
@@ -4681,33 +4684,33 @@ let ae = fn();
|
|
4681
4684
|
function fi(s) {
|
4682
4685
|
ae = s;
|
4683
4686
|
}
|
4684
|
-
const gi = /[&<>"']/,
|
4687
|
+
const gi = /[&<>"']/, Qa = new RegExp(gi.source, "g"), mi = /[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/, Ga = new RegExp(mi.source, "g"), Ka = {
|
4685
4688
|
"&": "&",
|
4686
4689
|
"<": "<",
|
4687
4690
|
">": ">",
|
4688
4691
|
'"': """,
|
4689
4692
|
"'": "'"
|
4690
|
-
}, ls = (s) =>
|
4693
|
+
}, ls = (s) => Ka[s];
|
4691
4694
|
function L(s, e) {
|
4692
4695
|
if (e) {
|
4693
4696
|
if (gi.test(s))
|
4694
|
-
return s.replace(
|
4697
|
+
return s.replace(Qa, ls);
|
4695
4698
|
} else if (mi.test(s))
|
4696
|
-
return s.replace(
|
4699
|
+
return s.replace(Ga, ls);
|
4697
4700
|
return s;
|
4698
4701
|
}
|
4699
|
-
const
|
4700
|
-
function
|
4701
|
-
return s.replace(
|
4702
|
+
const Xa = /&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/ig;
|
4703
|
+
function Va(s) {
|
4704
|
+
return s.replace(Xa, (e, t) => (t = t.toLowerCase(), t === "colon" ? ":" : t.charAt(0) === "#" ? t.charAt(1) === "x" ? String.fromCharCode(parseInt(t.substring(2), 16)) : String.fromCharCode(+t.substring(1)) : ""));
|
4702
4705
|
}
|
4703
|
-
const
|
4706
|
+
const Ja = /(^|[^\[])\^/g;
|
4704
4707
|
function y(s, e) {
|
4705
4708
|
let t = typeof s == "string" ? s : s.source;
|
4706
4709
|
e = e || "";
|
4707
4710
|
const n = {
|
4708
4711
|
replace: (i, r) => {
|
4709
4712
|
let o = typeof r == "string" ? r : r.source;
|
4710
|
-
return o = o.replace(
|
4713
|
+
return o = o.replace(Ja, "$1"), t = t.replace(i, o), n;
|
4711
4714
|
},
|
4712
4715
|
getRegex: () => new RegExp(t, e)
|
4713
4716
|
};
|
@@ -4756,7 +4759,7 @@ function Fe(s, e, t) {
|
|
4756
4759
|
}
|
4757
4760
|
return s.slice(0, n - i);
|
4758
4761
|
}
|
4759
|
-
function
|
4762
|
+
function el(s, e) {
|
4760
4763
|
if (s.indexOf(e[1]) === -1)
|
4761
4764
|
return -1;
|
4762
4765
|
let t = 0;
|
@@ -4791,7 +4794,7 @@ function us(s, e, t, n) {
|
|
4791
4794
|
text: L(o)
|
4792
4795
|
};
|
4793
4796
|
}
|
4794
|
-
function
|
4797
|
+
function tl(s, e) {
|
4795
4798
|
const t = s.match(/^(\s+)(?:```)/);
|
4796
4799
|
if (t === null)
|
4797
4800
|
return e;
|
@@ -4839,7 +4842,7 @@ class st {
|
|
4839
4842
|
fences(e) {
|
4840
4843
|
const t = this.rules.block.fences.exec(e);
|
4841
4844
|
if (t) {
|
4842
|
-
const n = t[0], i =
|
4845
|
+
const n = t[0], i = tl(n, t[3] || "");
|
4843
4846
|
return {
|
4844
4847
|
type: "code",
|
4845
4848
|
raw: n,
|
@@ -5079,7 +5082,7 @@ class st {
|
|
5079
5082
|
if ((n.length - o.length) % 2 === 0)
|
5080
5083
|
return;
|
5081
5084
|
} else {
|
5082
|
-
const o =
|
5085
|
+
const o = el(t[2], "()");
|
5083
5086
|
if (o > -1) {
|
5084
5087
|
const l = (t[0].indexOf("!") === 0 ? 5 : 4) + t[1].length + o;
|
5085
5088
|
t[2] = t[2].substring(0, o), t[0] = t[0].substring(0, l).trim(), t[3] = "";
|
@@ -5243,25 +5246,25 @@ class st {
|
|
5243
5246
|
}
|
5244
5247
|
}
|
5245
5248
|
}
|
5246
|
-
const
|
5247
|
-
blockquote:
|
5248
|
-
code:
|
5249
|
-
def:
|
5250
|
-
fences:
|
5251
|
-
heading:
|
5249
|
+
const nl = /^(?: *(?:\n|$))+/, sl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, il = /^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/, je = /^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/, rl = /^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/, vi = /(?:[*+-]|\d{1,9}[.)])/, bi = y(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g, vi).replace(/blockCode/g, / {4}/).replace(/fences/g, / {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g, / {0,3}>/).replace(/heading/g, / {0,3}#{1,6}/).replace(/html/g, / {0,3}<[^\n>]+>\n/).getRegex(), gn = /^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/, ol = /^[^\n]+/, mn = /(?!\s*\])(?:\\.|[^\[\]\\])+/, al = y(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label", mn).replace("title", /(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(), ll = y(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g, vi).getRegex(), vt = "address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul", vn = /<!--(?:-?>|[\s\S]*?(?:-->|$))/, cl = y("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:</\\1>[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|<![A-Z][\\s\\S]*?(?:>\\n*|$)|<!\\[CDATA\\[[\\s\\S]*?(?:\\]\\]>\\n*|$)|</?(tag)(?: +|\\n|/?>)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|</(?!script|pre|style|textarea)[a-z][\\w-]*\\s*>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))", "i").replace("comment", vn).replace("tag", vt).replace("attribute", / +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(), yi = y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("|table", "").replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), hl = y(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph", yi).getRegex(), bn = {
|
5250
|
+
blockquote: hl,
|
5251
|
+
code: sl,
|
5252
|
+
def: al,
|
5253
|
+
fences: il,
|
5254
|
+
heading: rl,
|
5252
5255
|
hr: je,
|
5253
|
-
html:
|
5256
|
+
html: cl,
|
5254
5257
|
lheading: bi,
|
5255
|
-
list:
|
5256
|
-
newline:
|
5258
|
+
list: ll,
|
5259
|
+
newline: nl,
|
5257
5260
|
paragraph: yi,
|
5258
5261
|
table: Se,
|
5259
|
-
text:
|
5260
|
-
}, ds = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(),
|
5262
|
+
text: ol
|
5263
|
+
}, ds = y("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("blockquote", " {0,3}>").replace("code", " {4}[^\\n]").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex(), ul = {
|
5261
5264
|
...bn,
|
5262
5265
|
table: ds,
|
5263
5266
|
paragraph: y(gn).replace("hr", je).replace("heading", " {0,3}#{1,6}(?:\\s|$)").replace("|lheading", "").replace("table", ds).replace("blockquote", " {0,3}>").replace("fences", " {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list", " {0,3}(?:[*+-]|1[.)]) ").replace("html", "</?(?:tag)(?: +|\\n|/?>)|<(?:script|pre|style|textarea|!--)").replace("tag", vt).getRegex()
|
5264
|
-
},
|
5267
|
+
}, dl = {
|
5265
5268
|
...bn,
|
5266
5269
|
html: y(`^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+?</\\1> *(?:\\n{2,}|\\s*$)|<tag(?:"[^"]*"|'[^']*'|\\s[^'"/>\\s]*)*?/?> *(?:\\n{2,}|\\s*$))`).replace("comment", vn).replace(/tag/g, "(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),
|
5267
5270
|
def: /^ *\[([^\]]+)\]: *<?([^\s>]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,
|
@@ -5271,28 +5274,28 @@ const tl = /^(?: *(?:\n|$))+/, nl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sl =
|
|
5271
5274
|
lheading: /^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,
|
5272
5275
|
paragraph: y(gn).replace("hr", je).replace("heading", ` *#{1,6} *[^
|
5273
5276
|
]`).replace("lheading", bi).replace("|table", "").replace("blockquote", " {0,3}>").replace("|fences", "").replace("|list", "").replace("|html", "").replace("|tag", "").getRegex()
|
5274
|
-
}, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,
|
5277
|
+
}, $i = /^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/, pl = /^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/, xi = /^( {2,}|\\)\n(?!\s*$)/, fl = /^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\<!\[`*_]|\b_|$)|[^ ](?= {2,}\n)))/, De = "\\p{P}\\p{S}", gl = y(/^((?![*_])[\spunctuation])/, "u").replace(/punctuation/g, De).getRegex(), ml = /\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g, vl = y(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/, "u").replace(/punct/g, De).getRegex(), bl = y("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])", "gu").replace(/punct/g, De).getRegex(), yl = y("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])", "gu").replace(/punct/g, De).getRegex(), $l = y(/\\([punct])/, "gu").replace(/punct/g, De).getRegex(), xl = y(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme", /[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email", /[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(), wl = y(vn).replace("(?:-->|$)", "-->").getRegex(), kl = y("^comment|^</[a-zA-Z][\\w:-]*\\s*>|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^<![a-zA-Z]+\\s[\\s\\S]*?>|^<!\\[CDATA\\[[\\s\\S]*?\\]\\]>").replace("comment", wl).replace("attribute", /\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(), it = /(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/, _l = y(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label", it).replace("href", /<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title", /"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(), wi = y(/^!?\[(label)\]\[(ref)\]/).replace("label", it).replace("ref", mn).getRegex(), ki = y(/^!?\[(ref)\](?:\[\])?/).replace("ref", mn).getRegex(), Sl = y("reflink|nolink(?!\\()", "g").replace("reflink", wi).replace("nolink", ki).getRegex(), yn = {
|
5275
5278
|
_backpedal: Se,
|
5276
5279
|
// only used for GFM url
|
5277
|
-
anyPunctuation:
|
5278
|
-
autolink:
|
5279
|
-
blockSkip:
|
5280
|
+
anyPunctuation: $l,
|
5281
|
+
autolink: xl,
|
5282
|
+
blockSkip: ml,
|
5280
5283
|
br: xi,
|
5281
|
-
code:
|
5284
|
+
code: pl,
|
5282
5285
|
del: Se,
|
5283
|
-
emStrongLDelim:
|
5284
|
-
emStrongRDelimAst:
|
5285
|
-
emStrongRDelimUnd:
|
5286
|
+
emStrongLDelim: vl,
|
5287
|
+
emStrongRDelimAst: bl,
|
5288
|
+
emStrongRDelimUnd: yl,
|
5286
5289
|
escape: $i,
|
5287
|
-
link:
|
5290
|
+
link: _l,
|
5288
5291
|
nolink: ki,
|
5289
|
-
punctuation:
|
5292
|
+
punctuation: gl,
|
5290
5293
|
reflink: wi,
|
5291
|
-
reflinkSearch:
|
5292
|
-
tag:
|
5293
|
-
text:
|
5294
|
+
reflinkSearch: Sl,
|
5295
|
+
tag: kl,
|
5296
|
+
text: fl,
|
5294
5297
|
url: Se
|
5295
|
-
},
|
5298
|
+
}, Cl = {
|
5296
5299
|
...yn,
|
5297
5300
|
link: y(/^!?\[(label)\]\((.*?)\)/).replace("label", it).getRegex(),
|
5298
5301
|
reflink: y(/^!?\[(label)\]\s*\[([^\]]*)\]/).replace("label", it).getRegex()
|
@@ -5303,19 +5306,19 @@ const tl = /^(?: *(?:\n|$))+/, nl = /^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/, sl =
|
|
5303
5306
|
_backpedal: /(?:[^?!.,:;*_'"~()&]+|\([^)]*\)|&(?![a-zA-Z0-9]+;$)|[?!.,:;*_'"~)]+(?!$))+/,
|
5304
5307
|
del: /^(~~?)(?=[^\s~])([\s\S]*?[^\s~])\1(?=[^~]|$)/,
|
5305
5308
|
text: /^([`~]+|[^`~])(?:(?= {2,}\n)|(?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)|[\s\S]*?(?:(?=[\\<!\[`*~_]|\b_|https?:\/\/|ftp:\/\/|www\.|$)|[^ ](?= {2,}\n)|[^a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-](?=[a-zA-Z0-9.!#$%&'*+\/=?_`{\|}~-]+@)))/
|
5306
|
-
},
|
5309
|
+
}, Al = {
|
5307
5310
|
...qt,
|
5308
5311
|
br: y(xi).replace("{2,}", "*").getRegex(),
|
5309
5312
|
text: y(qt.text).replace("\\b_", "\\b_| {2,}\\n").replace(/\{2,\}/g, "*").getRegex()
|
5310
5313
|
}, qe = {
|
5311
5314
|
normal: bn,
|
5312
|
-
gfm:
|
5313
|
-
pedantic:
|
5315
|
+
gfm: ul,
|
5316
|
+
pedantic: dl
|
5314
5317
|
}, xe = {
|
5315
5318
|
normal: yn,
|
5316
5319
|
gfm: qt,
|
5317
|
-
breaks:
|
5318
|
-
pedantic:
|
5320
|
+
breaks: Al,
|
5321
|
+
pedantic: Cl
|
5319
5322
|
};
|
5320
5323
|
class j {
|
5321
5324
|
constructor(e) {
|
@@ -5713,7 +5716,7 @@ class D {
|
|
5713
5716
|
}
|
5714
5717
|
case "heading": {
|
5715
5718
|
const o = r;
|
5716
|
-
n += this.renderer.heading(this.parseInline(o.tokens), o.depth,
|
5719
|
+
n += this.renderer.heading(this.parseInline(o.tokens), o.depth, Va(this.parseInline(o.tokens, this.textRenderer)));
|
5717
5720
|
continue;
|
5718
5721
|
}
|
5719
5722
|
case "code": {
|
@@ -5895,7 +5898,7 @@ x(Ce, "passThroughHooks", /* @__PURE__ */ new Set([
|
|
5895
5898
|
"processAllTokens"
|
5896
5899
|
]));
|
5897
5900
|
var Oe, Zt, ot, _i;
|
5898
|
-
class
|
5901
|
+
class El {
|
5899
5902
|
constructor(...e) {
|
5900
5903
|
$t(this, Oe);
|
5901
5904
|
$t(this, ot);
|
@@ -6067,7 +6070,7 @@ Please report this to https://github.com/markedjs/marked.`, e) {
|
|
6067
6070
|
throw n;
|
6068
6071
|
};
|
6069
6072
|
};
|
6070
|
-
const oe = new
|
6073
|
+
const oe = new El();
|
6071
6074
|
function v(s, e) {
|
6072
6075
|
return oe.parse(s, e);
|
6073
6076
|
}
|
@@ -6099,10 +6102,10 @@ v.walkTokens;
|
|
6099
6102
|
v.parseInline;
|
6100
6103
|
D.parse;
|
6101
6104
|
j.lex;
|
6102
|
-
var
|
6103
|
-
for (var i = n > 1 ? void 0 : n ?
|
6105
|
+
var Tl = Object.defineProperty, Ll = Object.getOwnPropertyDescriptor, Si = (s, e, t, n) => {
|
6106
|
+
for (var i = n > 1 ? void 0 : n ? Ll(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6104
6107
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6105
|
-
return n && i &&
|
6108
|
+
return n && i && Tl(e, t, i), i;
|
6106
6109
|
};
|
6107
6110
|
v.use({
|
6108
6111
|
renderer: {
|
@@ -6162,7 +6165,7 @@ class bt extends k {
|
|
6162
6165
|
(r = this.contentRef.value) == null || r.appendChild(document.createElement("div")), this.buffer = "";
|
6163
6166
|
else if (this.buffer.includes("!["))
|
6164
6167
|
return;
|
6165
|
-
n.innerHTML =
|
6168
|
+
n.innerHTML = Sr(t), this.applyCodeStyles(n), this.autoScroll && this.scrollRef.value.scrollIntoView();
|
6166
6169
|
}
|
6167
6170
|
// Apply white-space: pre-wrap to <code> elements
|
6168
6171
|
applyCodeStyles(e) {
|
@@ -6232,10 +6235,10 @@ Si([
|
|
6232
6235
|
Si([
|
6233
6236
|
C()
|
6234
6237
|
], bt.prototype, "showLightbox", 2);
|
6235
|
-
var
|
6236
|
-
for (var i = n > 1 ? void 0 : n ?
|
6238
|
+
var Ol = Object.defineProperty, Pl = Object.getOwnPropertyDescriptor, Rl = (s, e, t, n) => {
|
6239
|
+
for (var i = n > 1 ? void 0 : n ? Pl(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6237
6240
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6238
|
-
return n && i &&
|
6241
|
+
return n && i && Ol(e, t, i), i;
|
6239
6242
|
};
|
6240
6243
|
class xn extends k {
|
6241
6244
|
constructor() {
|
@@ -6274,7 +6277,7 @@ class xn extends k {
|
|
6274
6277
|
@keydown=${this.handleKeyDown}
|
6275
6278
|
>
|
6276
6279
|
<button class="close" @click=${this.closeLightbox}>
|
6277
|
-
<telia-icon svg=${
|
6280
|
+
<telia-icon svg=${Jr.svg} size="lg"></telia-icon>
|
6278
6281
|
</button>
|
6279
6282
|
<img src="${this.imageUrl}" alt="${this.altText ?? ""}" />
|
6280
6283
|
</div> `;
|
@@ -6321,13 +6324,13 @@ xn.styles = [
|
|
6321
6324
|
}
|
6322
6325
|
`
|
6323
6326
|
];
|
6324
|
-
|
6327
|
+
Rl([
|
6325
6328
|
w({ attribute: !0 })
|
6326
6329
|
], xn.prototype, "imageUrl", 2);
|
6327
|
-
var
|
6328
|
-
for (var i = n > 1 ? void 0 : n ?
|
6330
|
+
var Il = Object.defineProperty, Ml = Object.getOwnPropertyDescriptor, V = (s, e, t, n) => {
|
6331
|
+
for (var i = n > 1 ? void 0 : n ? Ml(e, t) : e, r = s.length - 1, o; r >= 0; r--)
|
6329
6332
|
(o = s[r]) && (i = (n ? o(e, t, i) : o(i)) || i);
|
6330
|
-
return n && i &&
|
6333
|
+
return n && i && Il(e, t, i), i;
|
6331
6334
|
};
|
6332
6335
|
customElements.get("conversation-entry") || customElements.define("conversation-entry", un);
|
6333
6336
|
customElements.get("ace-conversation-feed") || customElements.define("ace-conversation-feed", mt);
|
@@ -6339,7 +6342,7 @@ customElements.get("ace-lightbox") || customElements.define("ace-lightbox", xn);
|
|
6339
6342
|
const Ci = ci(k);
|
6340
6343
|
class R extends Ci {
|
6341
6344
|
constructor() {
|
6342
|
-
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
|
6345
|
+
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 Pa(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 Ia(this.conversationState$, this), this.provider$ = this.stateMachine.session().pipe(
|
6343
6346
|
pe((e) => e ? e == null ? void 0 : e.provider$ : It(null))
|
6344
6347
|
), this.userTyping$ = new _();
|
6345
6348
|
}
|
@@ -6504,7 +6507,7 @@ class R extends Ci {
|
|
6504
6507
|
class="overlay-button"
|
6505
6508
|
@click=${() => this.chatOverlayActive = !1}
|
6506
6509
|
>
|
6507
|
-
<telia-icon svg=${
|
6510
|
+
<telia-icon svg=${Vr.svg}></telia-icon>
|
6508
6511
|
</button>
|
6509
6512
|
</div>` : g}
|
6510
6513
|
<div
|
@@ -6560,7 +6563,7 @@ class R extends Ci {
|
|
6560
6563
|
title=${e.getOrFallback("conversation.send-alt", "Send")}
|
6561
6564
|
?disabled=${this.disabledSubmit}
|
6562
6565
|
>
|
6563
|
-
<telia-icon svg=${
|
6566
|
+
<telia-icon svg=${to.svg}></telia-icon>
|
6564
6567
|
</button>
|
6565
6568
|
<span class="counter" ${z(this.counterRef)}>
|
6566
6569
|
${this.textAreaLength} / ${this.messageMaxLength}</span
|
@@ -6889,20 +6892,20 @@ V([
|
|
6889
6892
|
V([
|
6890
6893
|
C()
|
6891
6894
|
], R.prototype, "typing", 2);
|
6892
|
-
const
|
6895
|
+
const zl = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
6893
6896
|
__proto__: null,
|
6894
6897
|
Conversation: R,
|
6895
6898
|
default: R
|
6896
6899
|
}, Symbol.toStringTag, { value: "Module" }));
|
6897
6900
|
export {
|
6898
|
-
|
6901
|
+
Ar as Agent,
|
6899
6902
|
R as Conversation,
|
6900
|
-
|
6903
|
+
jl as ConversationComponent,
|
6901
6904
|
ct as ConversationEntry,
|
6902
6905
|
W as ConversationMessageType,
|
6903
6906
|
fs as ConversationPlatform,
|
6904
|
-
|
6905
|
-
|
6906
|
-
|
6907
|
-
|
6907
|
+
Hl as ConversationProvider,
|
6908
|
+
Er as User,
|
6909
|
+
Dl as findPlainTextLinks,
|
6910
|
+
Sr as truncateLongLinks
|
6908
6911
|
};
|