@telia-ace/widget-conversation-flamingo 1.1.28-rc.0 → 1.1.28-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-9a7c235d.js → conversation-227d5426.js} +99 -59
- package/{conversation-e5c4f286.mjs → conversation-487024b2.mjs} +178 -137
- package/{index-3d874c26.mjs → index-00412454.mjs} +2 -2
- package/{index-becf5ea8.mjs → index-49b077e3.mjs} +1 -1
- package/{index-dac2e292.js → index-527f9467.js} +1 -1
- package/{index-91f20257.js → index-81ee22ee.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -1,10 +1,10 @@
|
|
1
|
-
import { C as wt } from "./index-
|
1
|
+
import { C as wt } from "./index-49b077e3.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const rt = globalThis,
|
7
|
+
const rt = globalThis, Nt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Mt = Symbol(), Xt = /* @__PURE__ */ new WeakMap();
|
8
8
|
let Te = class {
|
9
9
|
constructor(t, s, i) {
|
10
10
|
if (this._$cssResult$ = !0, i !== Mt)
|
@@ -14,7 +14,7 @@ let Te = class {
|
|
14
14
|
get styleSheet() {
|
15
15
|
let t = this.o;
|
16
16
|
const s = this.t;
|
17
|
-
if (
|
17
|
+
if (Nt && t === void 0) {
|
18
18
|
const i = s !== void 0 && s.length === 1;
|
19
19
|
i && (t = Xt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Xt.set(s, t));
|
20
20
|
}
|
@@ -34,14 +34,14 @@ const os = (e) => new Te(typeof e == "string" ? e : e + "", void 0, Mt), _ = (e,
|
|
34
34
|
})(n) + e[r + 1], e[0]);
|
35
35
|
return new Te(s, e, Mt);
|
36
36
|
}, as = (e, t) => {
|
37
|
-
if (
|
37
|
+
if (Nt)
|
38
38
|
e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
|
39
39
|
else
|
40
40
|
for (const s of t) {
|
41
41
|
const i = document.createElement("style"), n = rt.litNonce;
|
42
42
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = s.cssText, e.appendChild(i);
|
43
43
|
}
|
44
|
-
}, Jt =
|
44
|
+
}, Jt = Nt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
45
45
|
let s = "";
|
46
46
|
for (const i of t.cssRules)
|
47
47
|
s += i.cssText;
|
@@ -299,9 +299,9 @@ R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[W("elementProper
|
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const G = globalThis, at = G.trustedTypes, ee = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ke = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Oe = "?" + S,
|
302
|
+
const G = globalThis, at = G.trustedTypes, ee = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ke = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Oe = "?" + S, gs = `<${Oe}>`, L = document, Y = () => L.createComment(""), K = (e) => e === null || typeof e != "object" && typeof e != "function", Pe = Array.isArray, $s = (e) => Pe(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", St = `[
|
303
303
|
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, se = /-->/g, ie = />/g, k = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ne = /'/g, re = /"/g, Le = /^(?:script|style|textarea|title)$/i, ms = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }),
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ne = /'/g, re = /"/g, Le = /^(?:script|style|textarea|title)$/i, ms = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), f = ms(1), C = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), oe = /* @__PURE__ */ new WeakMap(), P = L.createTreeWalker(L, 129);
|
305
305
|
function Ue(e, t) {
|
306
306
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
@@ -315,8 +315,8 @@ const vs = (e, t) => {
|
|
315
315
|
let c, d, h = -1, p = 0;
|
316
316
|
for (; p < l.length && (o.lastIndex = p, d = o.exec(l), d !== null); )
|
317
317
|
p = o.lastIndex, o === F ? d[1] === "!--" ? o = se : d[1] !== void 0 ? o = ie : d[2] !== void 0 ? (Le.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = k) : d[3] !== void 0 && (o = k) : o === k ? d[0] === ">" ? (o = n ?? F, h = -1) : d[1] === void 0 ? h = -2 : (h = o.lastIndex - d[2].length, c = d[1], o = d[3] === void 0 ? k : d[3] === '"' ? re : ne) : o === re || o === ne ? o = k : o === se || o === ie ? o = F : (o = k, n = void 0);
|
318
|
-
const
|
319
|
-
r += o === F ? l +
|
318
|
+
const g = o === k && e[a + 1].startsWith("/>") ? " " : "";
|
319
|
+
r += o === F ? l + gs : h >= 0 ? (i.push(c), l.slice(0, h) + ke + l.slice(h) + S + g) : l + S + (h === -2 ? a : g);
|
320
320
|
}
|
321
321
|
return [Ue(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
@@ -335,16 +335,16 @@ class Q {
|
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const h of n.getAttributeNames())
|
337
337
|
if (h.endsWith(ke)) {
|
338
|
-
const p = d[o++],
|
339
|
-
l.push({ type: 1, index: r, name: x[2], strings:
|
338
|
+
const p = d[o++], g = n.getAttribute(h).split(S), x = /([.?@])?(.*)/.exec(p);
|
339
|
+
l.push({ type: 1, index: r, name: x[2], strings: g, ctor: x[1] === "." ? bs : x[1] === "?" ? _s : x[1] === "@" ? xs : $t }), n.removeAttribute(h);
|
340
340
|
} else
|
341
341
|
h.startsWith(S) && (l.push({ type: 6, index: r }), n.removeAttribute(h));
|
342
342
|
if (Le.test(n.tagName)) {
|
343
343
|
const h = n.textContent.split(S), p = h.length - 1;
|
344
344
|
if (p > 0) {
|
345
345
|
n.textContent = at ? at.emptyScript : "";
|
346
|
-
for (let
|
347
|
-
n.append(h[
|
346
|
+
for (let g = 0; g < p; g++)
|
347
|
+
n.append(h[g], Y()), P.nextNode(), l.push({ type: 2, index: ++r });
|
348
348
|
n.append(h[p], Y());
|
349
349
|
}
|
350
350
|
}
|
@@ -421,7 +421,7 @@ class X {
|
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
423
|
_$AI(t, s = this) {
|
424
|
-
t = I(this, t, s), K(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) :
|
424
|
+
t = I(this, t, s), K(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : $s(t) ? this.T(t) : this._(t);
|
425
425
|
}
|
426
426
|
k(t) {
|
427
427
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -466,7 +466,7 @@ class X {
|
|
466
466
|
this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
|
467
467
|
}
|
468
468
|
}
|
469
|
-
class
|
469
|
+
class $t {
|
470
470
|
get tagName() {
|
471
471
|
return this.element.tagName;
|
472
472
|
}
|
@@ -493,7 +493,7 @@ class gt {
|
|
493
493
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
494
494
|
}
|
495
495
|
}
|
496
|
-
class bs extends
|
496
|
+
class bs extends $t {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class bs extends gt {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let _s = class extends
|
504
|
+
let _s = class extends $t {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,7 +509,7 @@ let _s = class extends gt {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class xs extends
|
512
|
+
class xs extends $t {
|
513
513
|
constructor(t, s, i, n, r) {
|
514
514
|
super(t, s, i, n, r), this.type = 5;
|
515
515
|
}
|
@@ -581,7 +581,7 @@ v._$litElement$ = !0, v.finalized = !0, (Ce = globalThis.litElementHydrateSuppor
|
|
581
581
|
const Ct = globalThis.litElementPolyfillSupport;
|
582
582
|
Ct == null || Ct({ LitElement: v });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
|
-
const Ss = { 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>' },
|
584
|
+
const Ss = { 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>' }, H = {
|
585
585
|
allRenderFn: !1,
|
586
586
|
cmpDidLoad: !0,
|
587
587
|
cmpDidUnload: !1,
|
@@ -665,8 +665,8 @@ const Ss = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.o
|
|
665
665
|
transformTagName: !1,
|
666
666
|
attachStyles: !0
|
667
667
|
};
|
668
|
-
let
|
669
|
-
const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} },
|
668
|
+
let N, Re, mt, He = !1, lt = !1, Dt = !1, y = !1, ae = null, Pt = !1;
|
669
|
+
const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, Ne = vt.HTMLElement || class {
|
670
670
|
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -699,7 +699,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
699
699
|
});
|
700
700
|
}, ks = (e, t) => (s) => {
|
701
701
|
try {
|
702
|
-
|
702
|
+
H.lazyLoad || e.$hostElement$[t](s);
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
@@ -723,7 +723,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
723
723
|
}, Rs = (e) => {
|
724
724
|
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n = U("attachStyles", t.$tagName$), r = Us(s.shadowRoot ? s.shadowRoot : s.getRootNode(), t, e.$modeName$);
|
725
725
|
i & 10 && (s["s-sc"] = r, s.classList.add(r + "-h"), i & 2 && s.classList.add(r + "-s")), n();
|
726
|
-
}, je = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$),
|
726
|
+
}, je = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$), Hs = (e) => ci.map((t) => t(e)).find((t) => !!t), de = {}, Ns = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xhtml", js = (e) => e != null, It = (e) => (e = typeof e, e === "object" || e === "function"), j = (e, t, ...s) => {
|
727
727
|
let i = null, n = null, r = null, o = !1, a = !1, l = [];
|
728
728
|
const c = (h) => {
|
729
729
|
for (let p = 0; p < h.length; p++)
|
@@ -768,7 +768,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
768
768
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
769
769
|
}, pe = (e, t, s, i, n, r) => {
|
770
770
|
if (s !== i) {
|
771
|
-
let o =
|
771
|
+
let o = $e(e, t), a = t.toLowerCase();
|
772
772
|
if (t === "class") {
|
773
773
|
const l = e.classList, c = ue(s), d = ue(i);
|
774
774
|
l.remove(...c.filter((h) => h && !d.includes(h))), l.add(...d.filter((h) => h && !c.includes(h)));
|
@@ -781,7 +781,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
781
781
|
if (t === "ref")
|
782
782
|
i && i(e);
|
783
783
|
else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
784
|
-
t[2] === "-" ? t = t.slice(3) :
|
784
|
+
t[2] === "-" ? t = t.slice(3) : $e(vt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s && m.rel(e, t, s, !1), i && m.ael(e, t, i, !1);
|
785
785
|
else {
|
786
786
|
const l = It(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
@@ -806,7 +806,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
806
806
|
pe(n, i, r[i], o[i], s, t.$flags$);
|
807
807
|
}, dt = (e, t, s, i) => {
|
808
808
|
let n = t.$children$[s], r = 0, o, a, l;
|
809
|
-
if (
|
809
|
+
if (He || (Dt = !0, n.$tag$ === "slot" && (N && i.classList.add(N + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
@@ -817,7 +817,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
817
817
|
else if (n.$flags$ & 1)
|
818
818
|
o = n.$elm$ = w.createTextNode("");
|
819
819
|
else {
|
820
|
-
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = w.createElementNS(y ?
|
820
|
+
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = w.createElementNS(y ? Ns : Ms, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), De(null, n, y), js(N) && o["s-si"] !== N && o.classList.add(o["s-si"] = N), n.$children$)
|
821
821
|
for (r = 0; r < n.$children$.length; ++r)
|
822
822
|
a = dt(e, n, r, o), a && o.appendChild(a);
|
823
823
|
n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
|
@@ -839,7 +839,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
839
839
|
for (; t <= s; ++t)
|
840
840
|
(i = e[t]) && (n = i.$elm$, Ge(i), lt = !0, n["s-ol"] ? n["s-ol"].remove() : Z(n, !0), n.remove());
|
841
841
|
}, Fs = (e, t, s, i) => {
|
842
|
-
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0],
|
842
|
+
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0], g = i[h], x, st;
|
843
843
|
for (; n <= l && r <= h; )
|
844
844
|
if (c == null)
|
845
845
|
c = t[++n];
|
@@ -847,16 +847,16 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
847
847
|
d = t[--l];
|
848
848
|
else if (p == null)
|
849
849
|
p = i[++r];
|
850
|
-
else if (
|
851
|
-
|
850
|
+
else if (g == null)
|
851
|
+
g = i[--h];
|
852
852
|
else if (it(c, p))
|
853
853
|
M(c, p), c = t[++n], p = i[++r];
|
854
|
-
else if (it(d,
|
855
|
-
M(d,
|
856
|
-
else if (it(c,
|
857
|
-
(c.$tag$ === "slot" ||
|
854
|
+
else if (it(d, g))
|
855
|
+
M(d, g), d = t[--l], g = i[--h];
|
856
|
+
else if (it(c, g))
|
857
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && Z(c.$elm$.parentNode, !1), M(c, g), e.insertBefore(c.$elm$, d.$elm$.nextSibling), c = t[++n], g = i[--h];
|
858
858
|
else if (it(d, p))
|
859
|
-
(c.$tag$ === "slot" ||
|
859
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && Z(d.$elm$.parentNode, !1), M(d, p), e.insertBefore(d.$elm$, c.$elm$), d = t[--l], p = i[++r];
|
860
860
|
else {
|
861
861
|
for (o = -1, a = n; a <= l; ++a)
|
862
862
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === p.$key$) {
|
@@ -907,7 +907,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
907
907
|
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Ge);
|
908
908
|
}, Ws = (e, t) => {
|
909
909
|
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ || ct(null, null), r = Ds(t) ? t : j(null, null, t);
|
910
|
-
mt = s.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = s[o])), r.$tag$ = null, r.$flags$ |= 4, e.$vnode$ = r, r.$elm$ = n.$elm$ = s.shadowRoot || s,
|
910
|
+
mt = s.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = s[o])), r.$tag$ = null, r.$flags$ |= 4, e.$vnode$ = r, r.$elm$ = n.$elm$ = s.shadowRoot || s, N = s["s-sc"], Re = s["s-cr"], He = (i.$flags$ & 1) !== 0, lt = !1, M(n, r);
|
911
911
|
{
|
912
912
|
if (m.$flags$ |= 1, Dt) {
|
913
913
|
We(r.$elm$);
|
@@ -944,7 +944,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
944
944
|
}, qe = (e, t) => (e.$flags$ |= 16, Ks(e, e.$ancestorComponent$), pi(() => Qs(e, t))), Qs = (e, t) => {
|
945
945
|
const s = e.$hostElement$, i = U("scheduleUpdate", e.$cmpMeta$.$tagName$), n = s;
|
946
946
|
let r;
|
947
|
-
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r =
|
947
|
+
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = ge(r, () => D(n, "componentWillRender")), i(), ge(r, () => Zs(e, n, t));
|
948
948
|
}, Zs = async (e, t, s) => {
|
949
949
|
const i = e.$hostElement$, n = U("update", e.$cmpMeta$.$tagName$);
|
950
950
|
i["s-rc"], s && Rs(e);
|
@@ -952,7 +952,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
952
952
|
Xs(e, t, i), r(), n(), Js(e);
|
953
953
|
}, Xs = (e, t, s) => {
|
954
954
|
try {
|
955
|
-
ae = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (
|
955
|
+
ae = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide || Ws(e, t));
|
956
956
|
} catch (a) {
|
957
957
|
J(a, e.$hostElement$);
|
958
958
|
}
|
@@ -967,7 +967,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
967
967
|
} catch (i) {
|
968
968
|
J(i);
|
969
969
|
}
|
970
|
-
},
|
970
|
+
}, ge = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !It(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, ti = (e, t) => yt(e).$instanceValues$.get(t), ei = (e, t, s, i) => {
|
971
971
|
const n = yt(e), r = e, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
|
972
972
|
s = Vs(s, i.$members$[t][0]);
|
973
973
|
const c = Number.isNaN(o) && Number.isNaN(s);
|
@@ -979,8 +979,8 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
979
979
|
h && h.map((p) => {
|
980
980
|
try {
|
981
981
|
l[p](s, o, t);
|
982
|
-
} catch (
|
983
|
-
J(
|
982
|
+
} catch (g) {
|
983
|
+
J(g, r);
|
984
984
|
}
|
985
985
|
});
|
986
986
|
}
|
@@ -1031,7 +1031,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
1031
1031
|
}, ii = async (e, t, s, i, n) => {
|
1032
1032
|
if (!(t.$flags$ & 32) && (n = e.constructor, t.$flags$ |= 32, customElements.whenDefined(s.$tagName$).then(() => t.$flags$ |= 128), n.style)) {
|
1033
1033
|
let o = n.style;
|
1034
|
-
typeof o != "string" && (o = o[t.$modeName$ =
|
1034
|
+
typeof o != "string" && (o = o[t.$modeName$ = Hs(e)]);
|
1035
1035
|
const a = je(s, t.$modeName$);
|
1036
1036
|
if (!ht.has(a)) {
|
1037
1037
|
const l = U("registerStyles", s.$tagName$);
|
@@ -1090,7 +1090,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
1090
1090
|
$instanceValues$: /* @__PURE__ */ new Map()
|
1091
1091
|
};
|
1092
1092
|
return Me(e, s, t.$listeners$), Ke.set(e, s);
|
1093
|
-
},
|
1093
|
+
}, $e = (e, t) => t in e, J = (e, t) => (0, console.error)(e, t), ht = /* @__PURE__ */ new Map(), ci = [], me = [], Qe = [], di = (e, t) => (s) => {
|
1094
1094
|
e.push(s), Pt || (Pt = !0, t && m.$flags$ & 4 ? hi(Lt) : m.raf(Lt));
|
1095
1095
|
}, ve = (e) => {
|
1096
1096
|
for (let t = 0; t < e.length; t++)
|
@@ -1111,20 +1111,20 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
1111
1111
|
];
|
1112
1112
|
return s && (n = `<title>${s}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
1113
1113
|
}, fi = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
1114
|
-
function
|
1114
|
+
function gi(e) {
|
1115
1115
|
return `${e.getFullYear()}.${e.getMonth() + 1}`;
|
1116
1116
|
}
|
1117
|
-
class
|
1117
|
+
class $i {
|
1118
1118
|
constructor(t) {
|
1119
|
-
this.voca_component = t, this.voca_added =
|
1119
|
+
this.voca_component = t, this.voca_added = gi(/* @__PURE__ */ new Date());
|
1120
1120
|
}
|
1121
1121
|
}
|
1122
|
-
const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Ye(class extends
|
1122
|
+
const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Ye(class extends Ne {
|
1123
1123
|
constructor() {
|
1124
1124
|
super(), this.__registerHost(), this.vocaInternalUStats = qs(this, "vocaInternalUStats", 7);
|
1125
1125
|
}
|
1126
1126
|
connectedCallback() {
|
1127
|
-
this.vocaInternalUStats.emit(new
|
1127
|
+
this.vocaInternalUStats.emit(new $i(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
1130
|
return j(Bt, null);
|
@@ -1157,7 +1157,7 @@ function yi() {
|
|
1157
1157
|
function bi() {
|
1158
1158
|
return Ut().vocadsIconsRegistered;
|
1159
1159
|
}
|
1160
|
-
const _i = ".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))}", xi = /* @__PURE__ */ Ye(class extends
|
1160
|
+
const _i = ".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))}", xi = /* @__PURE__ */ Ye(class extends Ne {
|
1161
1161
|
constructor() {
|
1162
1162
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
1163
1163
|
}
|
@@ -1249,7 +1249,7 @@ const Ai = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged
|
|
1249
1249
|
}
|
1250
1250
|
throw Error("Unsupported decorator location: " + i);
|
1251
1251
|
};
|
1252
|
-
function
|
1252
|
+
function $(e) {
|
1253
1253
|
return (t, s) => typeof s == "object" ? Si(e, t, s) : ((i, n, r) => {
|
1254
1254
|
const o = n.hasOwnProperty(r);
|
1255
1255
|
return n.constructor.createProperty(r, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
|
@@ -1261,7 +1261,7 @@ function g(e) {
|
|
1261
1261
|
* SPDX-License-Identifier: BSD-3-Clause
|
1262
1262
|
*/
|
1263
1263
|
function A(e) {
|
1264
|
-
return
|
1264
|
+
return $({ ...e, state: !0, attribute: !1 });
|
1265
1265
|
}
|
1266
1266
|
/**
|
1267
1267
|
* @license
|
@@ -1478,17 +1478,17 @@ class T extends v {
|
|
1478
1478
|
var a, l, c;
|
1479
1479
|
const t = (a = this.application) == null ? void 0 : a.branding(), s = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
|
1480
1480
|
if (s)
|
1481
|
-
return
|
1481
|
+
return f` <img src=${s} class="trigger-icon" alt="" /> `;
|
1482
1482
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1483
1483
|
if (!i)
|
1484
1484
|
return u;
|
1485
|
-
const n = async (d) => await import("./index-
|
1485
|
+
const n = async (d) => await import("./index-00412454.mjs").then(
|
1486
1486
|
(p) => p[d]
|
1487
1487
|
), { type: r, content: o } = i;
|
1488
1488
|
switch (r) {
|
1489
1489
|
case "Telia": {
|
1490
1490
|
const d = await n(o);
|
1491
|
-
return d ?
|
1491
|
+
return d ? f`<telia-icon
|
1492
1492
|
class="trigger-icon"
|
1493
1493
|
svg=${d.svg}
|
1494
1494
|
size="lg"
|
@@ -1502,60 +1502,79 @@ class T extends v {
|
|
1502
1502
|
this.offset = t;
|
1503
1503
|
}
|
1504
1504
|
render() {
|
1505
|
-
|
1506
|
-
|
1505
|
+
var t, s, i, n;
|
1506
|
+
return f`<div class="trigger-container">
|
1507
|
+
${(n = (i = (s = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : s.branding) == null ? void 0 : i.other) != null && n.showButtonLabel ? f`
|
1508
|
+
<button class="trigger-label" @click=${this._toggleActive}>
|
1509
|
+
${this.application.settings.branding.other.buttonLabelText}
|
1510
|
+
</button>
|
1511
|
+
` : u}
|
1512
|
+
|
1513
|
+
<button
|
1514
|
+
class=${qt({
|
1507
1515
|
trigger: !0,
|
1508
1516
|
active: this.active,
|
1509
1517
|
rendered: this.loaded
|
1510
1518
|
})}
|
1511
|
-
|
1512
|
-
|
1513
|
-
|
1514
|
-
|
1515
|
-
|
1516
|
-
|
1517
|
-
|
1518
|
-
|
1519
|
-
|
1520
|
-
fill="none"
|
1521
|
-
xmlns="http://www.w3.org/2000/svg"
|
1522
|
-
>
|
1523
|
-
<path
|
1524
|
-
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
1525
|
-
fill="white"
|
1526
|
-
/>
|
1527
|
-
</svg>
|
1528
|
-
</span>
|
1529
|
-
<span class="trigger-loader">
|
1530
|
-
<svg viewBox="25 25 50 50">
|
1531
|
-
<circle
|
1532
|
-
cx="50"
|
1533
|
-
cy="50"
|
1534
|
-
r="20"
|
1519
|
+
@click=${this._toggleActive}
|
1520
|
+
${Gt(this.buttonRef)}
|
1521
|
+
>
|
1522
|
+
${this.icon}
|
1523
|
+
<span class="trigger-close">
|
1524
|
+
<svg
|
1525
|
+
width="18"
|
1526
|
+
height="9"
|
1527
|
+
viewBox="0 0 18 9"
|
1535
1528
|
fill="none"
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1529
|
+
xmlns="http://www.w3.org/2000/svg"
|
1530
|
+
>
|
1531
|
+
<path
|
1532
|
+
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
1533
|
+
fill="white"
|
1534
|
+
/>
|
1535
|
+
</svg>
|
1536
|
+
</span>
|
1537
|
+
<span class="trigger-loader">
|
1538
|
+
<svg viewBox="25 25 50 50">
|
1539
|
+
<circle
|
1540
|
+
cx="50"
|
1541
|
+
cy="50"
|
1542
|
+
r="20"
|
1543
|
+
fill="none"
|
1544
|
+
stroke="#000"
|
1545
|
+
stroke-width="2"
|
1546
|
+
stroke-miterlimit="10"
|
1547
|
+
/>
|
1548
|
+
</svg>
|
1549
|
+
</span>
|
1550
|
+
</button>
|
1551
|
+
</div>`;
|
1543
1552
|
}
|
1544
1553
|
}
|
1545
1554
|
T.styles = [
|
1546
1555
|
_`
|
1547
1556
|
:host {
|
1548
1557
|
--voca-rem-multiplier: 0.625;
|
1558
|
+
--trigger-label-bg: #f5e0ff;
|
1559
|
+
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
1549
1560
|
display: block;
|
1550
1561
|
box-sizing: border-box;
|
1562
|
+
/* font-family: var(--font-family); */
|
1563
|
+
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1551
1564
|
}
|
1552
1565
|
|
1553
|
-
.trigger {
|
1566
|
+
.trigger-container {
|
1554
1567
|
position: fixed;
|
1555
|
-
transform: scale(0);
|
1556
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1557
1568
|
bottom: 20px;
|
1558
1569
|
right: 20px;
|
1570
|
+
display: flex;
|
1571
|
+
align-items: center;
|
1572
|
+
gap: 1rem;
|
1573
|
+
}
|
1574
|
+
|
1575
|
+
.trigger {
|
1576
|
+
transform: scale(0);
|
1577
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1559
1578
|
z-index: 5;
|
1560
1579
|
display: flex;
|
1561
1580
|
align-items: center;
|
@@ -1615,10 +1634,32 @@ T.styles = [
|
|
1615
1634
|
img {
|
1616
1635
|
max-width: 100%;
|
1617
1636
|
}
|
1637
|
+
|
1638
|
+
.trigger-label {
|
1639
|
+
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
1640
|
+
background-color: var(--trigger-label-bg);
|
1641
|
+
color: var(--trigger-label-text-color);
|
1642
|
+
white-space: nowrap;
|
1643
|
+
padding: 0.7rem 1rem;
|
1644
|
+
border-radius: 0.3rem;
|
1645
|
+
font-weight: 500;
|
1646
|
+
display: flex;
|
1647
|
+
justify-content: center;
|
1648
|
+
align-items: center;
|
1649
|
+
cursor: pointer;
|
1650
|
+
border: none;
|
1651
|
+
font-size: 1rem;
|
1652
|
+
font-family: inherit;
|
1653
|
+
transition: all 300ms ease-in-out;
|
1654
|
+
}
|
1655
|
+
|
1656
|
+
.trigger-label:hover {
|
1657
|
+
opacity: 0.8;
|
1658
|
+
}
|
1618
1659
|
`
|
1619
1660
|
];
|
1620
1661
|
tt([
|
1621
|
-
|
1662
|
+
$({ attribute: !1 })
|
1622
1663
|
], T.prototype, "application", 2);
|
1623
1664
|
tt([
|
1624
1665
|
A()
|
@@ -1677,24 +1718,24 @@ const ts = (e) => {
|
|
1677
1718
|
}
|
1678
1719
|
`
|
1679
1720
|
], O([
|
1680
|
-
|
1721
|
+
$()
|
1681
1722
|
], t.prototype, "properties", 2), O([
|
1682
|
-
|
1723
|
+
$()
|
1683
1724
|
], t.prototype, "context", 2), O([
|
1684
|
-
|
1725
|
+
$()
|
1685
1726
|
], t.prototype, "layout", 2), O([
|
1686
|
-
|
1727
|
+
$()
|
1687
1728
|
], t.prototype, "name", 2), O([
|
1688
|
-
|
1729
|
+
$()
|
1689
1730
|
], t.prototype, "type", 2), O([
|
1690
|
-
|
1731
|
+
$({ attribute: !1 })
|
1691
1732
|
], t.prototype, "application", 2), O([
|
1692
|
-
|
1733
|
+
$({ attribute: !1 })
|
1693
1734
|
], t.prototype, "parent", 2), t;
|
1694
1735
|
};
|
1695
1736
|
class es extends ts(v) {
|
1696
1737
|
render() {
|
1697
|
-
return
|
1738
|
+
return f`Non resolved component`;
|
1698
1739
|
}
|
1699
1740
|
}
|
1700
1741
|
es.styles = [
|
@@ -1709,17 +1750,17 @@ es.styles = [
|
|
1709
1750
|
* Copyright 2021 Google LLC
|
1710
1751
|
* SPDX-License-Identifier: BSD-3-Clause
|
1711
1752
|
*/
|
1712
|
-
function*
|
1753
|
+
function* Hi(e, t) {
|
1713
1754
|
if (e !== void 0) {
|
1714
1755
|
let s = 0;
|
1715
1756
|
for (const i of e)
|
1716
1757
|
yield t(i, s++);
|
1717
1758
|
}
|
1718
1759
|
}
|
1719
|
-
var Yt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Yt || {}),
|
1760
|
+
var Yt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Yt || {}), Ni = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ji = (e, t, s, i) => {
|
1720
1761
|
for (var n = i > 1 ? void 0 : i ? Mi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1721
1762
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1722
|
-
return i && n &&
|
1763
|
+
return i && n && Ni(t, s, n), n;
|
1723
1764
|
};
|
1724
1765
|
class Kt extends v {
|
1725
1766
|
constructor() {
|
@@ -1746,8 +1787,8 @@ class Kt extends v {
|
|
1746
1787
|
this.applyBranding(), this.applyStyles();
|
1747
1788
|
}
|
1748
1789
|
render() {
|
1749
|
-
return this.application.renderStrategy === Yt.Trigger && this.renderRoot.host.classList.add("floating"),
|
1750
|
-
${
|
1790
|
+
return this.application.renderStrategy === Yt.Trigger && this.renderRoot.host.classList.add("floating"), f`<div class="widget-container" ${Gt(this.wrapperRef)}>
|
1791
|
+
${Hi(this.nodes, (t) => t)}
|
1751
1792
|
</div>`;
|
1752
1793
|
}
|
1753
1794
|
}
|
@@ -1844,7 +1885,7 @@ Kt.styles = _`
|
|
1844
1885
|
}
|
1845
1886
|
`;
|
1846
1887
|
ji([
|
1847
|
-
|
1888
|
+
$({ attribute: !1 })
|
1848
1889
|
], Kt.prototype, "application", 2);
|
1849
1890
|
var Di = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Qt = (e, t, s, i) => {
|
1850
1891
|
for (var n = i > 1 ? void 0 : i ? Ii(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
@@ -1891,7 +1932,7 @@ et.styles = [
|
|
1891
1932
|
`
|
1892
1933
|
];
|
1893
1934
|
Qt([
|
1894
|
-
|
1935
|
+
$({ attribute: !0 })
|
1895
1936
|
], et.prototype, "name", 2);
|
1896
1937
|
Qt([
|
1897
1938
|
A()
|
@@ -2129,9 +2170,9 @@ let B = class extends v {
|
|
2129
2170
|
this.dispatchEvent(t);
|
2130
2171
|
}
|
2131
2172
|
render() {
|
2132
|
-
return
|
2173
|
+
return f`<div class="conversation-session">
|
2133
2174
|
${this.entries.map(
|
2134
|
-
(e) =>
|
2175
|
+
(e) => f`<div class="conversation-entry" tabindex="-1">
|
2135
2176
|
<conversation-entry
|
2136
2177
|
.entry=${e}
|
2137
2178
|
${Ee({
|
@@ -2144,7 +2185,7 @@ let B = class extends v {
|
|
2144
2185
|
</conversation-entry>
|
2145
2186
|
</div>`
|
2146
2187
|
)}
|
2147
|
-
${this.loading ?
|
2188
|
+
${this.loading ? f`<ace-typing-state
|
2148
2189
|
${Ee({
|
2149
2190
|
keyframeOptions: {},
|
2150
2191
|
in: xe,
|
@@ -2170,10 +2211,10 @@ B.styles = [
|
|
2170
2211
|
`
|
2171
2212
|
];
|
2172
2213
|
xt([
|
2173
|
-
|
2214
|
+
$({ type: Boolean })
|
2174
2215
|
], B.prototype, "loading", 2);
|
2175
2216
|
xt([
|
2176
|
-
|
2217
|
+
$({ attribute: !1 })
|
2177
2218
|
], B.prototype, "session", 2);
|
2178
2219
|
xt([
|
2179
2220
|
A()
|
@@ -2201,7 +2242,7 @@ let ut = class extends v {
|
|
2201
2242
|
minute: "2-digit"
|
2202
2243
|
});
|
2203
2244
|
let i = "";
|
2204
|
-
return e ? t ? i = `${e}: ${s(t)}` : i = e : t && (i = s(t)),
|
2245
|
+
return e ? t ? i = `${e}: ${s(t)}` : i = e : t && (i = s(t)), f`<p class="conversation-timestamp">${i}</p>`;
|
2205
2246
|
}
|
2206
2247
|
render() {
|
2207
2248
|
var e, t;
|
@@ -2209,19 +2250,19 @@ let ut = class extends v {
|
|
2209
2250
|
case wt.System:
|
2210
2251
|
return "";
|
2211
2252
|
case wt.Agent:
|
2212
|
-
return
|
2253
|
+
return f`<div
|
2213
2254
|
class=${qt({
|
2214
2255
|
"conversation-agent-message": !0,
|
2215
2256
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
2216
2257
|
})}
|
2217
2258
|
>
|
2218
|
-
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ?
|
2259
|
+
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? f`<div class="avatar">
|
2219
2260
|
<img src=${this.entry.sender.avatar} />
|
2220
2261
|
</div>` : u}
|
2221
2262
|
|
2222
2263
|
<div class="entry-content">
|
2223
2264
|
${this.entry.messages.map(
|
2224
|
-
(s) =>
|
2265
|
+
(s) => f`
|
2225
2266
|
<div class="message-container">
|
2226
2267
|
<div class="message-content">
|
2227
2268
|
<conversation-group .group=${s}></conversation-group>
|
@@ -2236,10 +2277,10 @@ let ut = class extends v {
|
|
2236
2277
|
)}
|
2237
2278
|
</div>`;
|
2238
2279
|
case wt.User:
|
2239
|
-
return
|
2280
|
+
return f`<div class="conversation-user-message">
|
2240
2281
|
<div class="entry-content">
|
2241
2282
|
${this.entry.messages.map(
|
2242
|
-
(s) =>
|
2283
|
+
(s) => f`
|
2243
2284
|
<div class="message-container">
|
2244
2285
|
<div class="message-content">
|
2245
2286
|
<conversation-group .group=${s}></conversation-group>
|
@@ -2344,7 +2385,7 @@ ut.styles = [
|
|
2344
2385
|
`
|
2345
2386
|
];
|
2346
2387
|
ss([
|
2347
|
-
|
2388
|
+
$({ attribute: !1 })
|
2348
2389
|
], ut.prototype, "entry", 2);
|
2349
2390
|
ut = ss([
|
2350
2391
|
V("conversation-entry")
|
@@ -2356,11 +2397,11 @@ var Zi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, is = (e, t
|
|
2356
2397
|
};
|
2357
2398
|
let ft = class extends v {
|
2358
2399
|
render() {
|
2359
|
-
return
|
2400
|
+
return f`
|
2360
2401
|
<div class="message-group">
|
2361
2402
|
${this.group.items.map(
|
2362
|
-
([e, t]) =>
|
2363
|
-
${e === "html" ?
|
2403
|
+
([e, t]) => f`
|
2404
|
+
${e === "html" ? f`
|
2364
2405
|
<message-type-html .message=${t}></message-type-html>
|
2365
2406
|
` : u}
|
2366
2407
|
`
|
@@ -2386,7 +2427,7 @@ ft.styles = [
|
|
2386
2427
|
`
|
2387
2428
|
];
|
2388
2429
|
is([
|
2389
|
-
|
2430
|
+
$({ attribute: !1 })
|
2390
2431
|
], ft.prototype, "group", 2);
|
2391
2432
|
ft = is([
|
2392
2433
|
V("conversation-group")
|
@@ -2398,7 +2439,7 @@ var Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, tn = (e, t
|
|
2398
2439
|
};
|
2399
2440
|
let Rt = class extends v {
|
2400
2441
|
render() {
|
2401
|
-
return
|
2442
|
+
return f`<div class="container">
|
2402
2443
|
<div class="dot"></div>
|
2403
2444
|
<div class="dot"></div>
|
2404
2445
|
<div class="dot"></div>
|
@@ -2450,7 +2491,7 @@ Rt = tn([
|
|
2450
2491
|
* Copyright 2017 Google LLC
|
2451
2492
|
* SPDX-License-Identifier: BSD-3-Clause
|
2452
2493
|
*/
|
2453
|
-
class
|
2494
|
+
class Ht extends Ft {
|
2454
2495
|
constructor(t) {
|
2455
2496
|
if (super(t), this.et = u, t.type !== bt.CHILD)
|
2456
2497
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2469,21 +2510,21 @@ class Nt extends Ft {
|
|
2469
2510
|
return s.raw = s, this.vt = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
2470
2511
|
}
|
2471
2512
|
}
|
2472
|
-
|
2473
|
-
const en = _t(
|
2513
|
+
Ht.directiveName = "unsafeHTML", Ht.resultType = 1;
|
2514
|
+
const en = _t(Ht);
|
2474
2515
|
var sn = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, ns = (e, t, s, i) => {
|
2475
2516
|
for (var n = i > 1 ? void 0 : i ? nn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2476
2517
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2477
2518
|
return i && n && sn(t, s, n), n;
|
2478
2519
|
};
|
2479
|
-
let
|
2520
|
+
let gt = class extends v {
|
2480
2521
|
render() {
|
2481
|
-
return
|
2522
|
+
return f`<div class="message-type-html">
|
2482
2523
|
${en(this.message.content)}
|
2483
2524
|
</div>`;
|
2484
2525
|
}
|
2485
2526
|
};
|
2486
|
-
|
2527
|
+
gt.styles = [
|
2487
2528
|
_`
|
2488
2529
|
:host {
|
2489
2530
|
box-sizing: border-box;
|
@@ -2499,11 +2540,11 @@ $t.styles = [
|
|
2499
2540
|
`
|
2500
2541
|
];
|
2501
2542
|
ns([
|
2502
|
-
|
2503
|
-
],
|
2504
|
-
|
2543
|
+
$({ attribute: !1 })
|
2544
|
+
], gt.prototype, "message", 2);
|
2545
|
+
gt = ns([
|
2505
2546
|
V("message-type-html")
|
2506
|
-
],
|
2547
|
+
], gt);
|
2507
2548
|
var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, Zt = (e, t, s, i) => {
|
2508
2549
|
for (var n = i > 1 ? void 0 : i ? on(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2509
2550
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
@@ -2543,7 +2584,7 @@ class z extends rs {
|
|
2543
2584
|
}, 1e3);
|
2544
2585
|
}
|
2545
2586
|
render() {
|
2546
|
-
return
|
2587
|
+
return f` <div
|
2547
2588
|
@action=${this._actionHandler}
|
2548
2589
|
class=${qt({
|
2549
2590
|
conversation: !0,
|
@@ -2551,7 +2592,7 @@ class z extends rs {
|
|
2551
2592
|
})}
|
2552
2593
|
>
|
2553
2594
|
<div class="conversation-content" ${Gt(this.conversationContentRef)}>
|
2554
|
-
${this.session ?
|
2595
|
+
${this.session ? f`<ace-conversation-session
|
2555
2596
|
@updated=${this.onSessionUpdated}
|
2556
2597
|
.session=${this.session}
|
2557
2598
|
></ace-conversation-session>` : u}
|
@@ -2690,12 +2731,12 @@ Zt([
|
|
2690
2731
|
Zt([
|
2691
2732
|
A()
|
2692
2733
|
], z.prototype, "session", 2);
|
2693
|
-
const
|
2734
|
+
const gn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2694
2735
|
__proto__: null,
|
2695
2736
|
Conversation: z,
|
2696
2737
|
default: z
|
2697
2738
|
}, Symbol.toStringTag, { value: "Module" }));
|
2698
2739
|
export {
|
2699
|
-
|
2740
|
+
gn as c,
|
2700
2741
|
Ss as s
|
2701
2742
|
};
|