@telia-ace/widget-conversation-flamingo 1.1.35 → 1.1.36-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-3d26c066.js → conversation-a2cc9348.js} +22 -23
- package/{conversation-16392b4c.mjs → conversation-a9a10348.mjs} +66 -63
- package/{index-127a80a4.mjs → index-a3854c05.mjs} +1 -1
- package/{index-fe488435.js → index-ea30c4f7.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -82,7 +82,7 @@ const { is: hs, defineProperty: ps, getOwnPropertyDescriptor: us, getOwnProperty
|
|
82
82
|
return e;
|
83
83
|
} }, zt = (s, t) => !hs(s, t), se = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), S.litPropertyMetadata ?? (S.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
|
-
let
|
85
|
+
let M = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
88
88
|
}
|
@@ -293,15 +293,15 @@ let H = class extends HTMLElement {
|
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
|
296
|
+
M.elementStyles = [], M.shadowRootOptions = { mode: "open" }, M[W("elementProperties")] = /* @__PURE__ */ new Map(), M[W("finalized")] = /* @__PURE__ */ new Map(), Et == null || Et({ ReactiveElement: M }), (S.reactiveElementVersions ?? (S.reactiveElementVersions = [])).push("2.0.1");
|
297
297
|
/**
|
298
298
|
* @license
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const G = globalThis, rt = G.trustedTypes, ie = rt ? rt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Le = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, Re = "?" + A, vs = `<${Re}>`, P = document, Z = () => P.createComment(""), X = (s) => s === null || typeof s != "object" && typeof s != "function",
|
303
|
-
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ne = /-->/g, oe = />/g,
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, ae = /"/g,
|
302
|
+
const G = globalThis, rt = G.trustedTypes, ie = rt ? rt.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Le = "$lit$", A = `lit$${(Math.random() + "").slice(9)}$`, Re = "?" + A, vs = `<${Re}>`, P = document, Z = () => P.createComment(""), X = (s) => s === null || typeof s != "object" && typeof s != "function", He = Array.isArray, ys = (s) => He(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", kt = `[
|
303
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ne = /-->/g, oe = />/g, k = RegExp(`>|${kt}(?:([^\\s"'>=/]+)(${kt}*=${kt}*(?:[^
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, ae = /"/g, Me = /^(?:script|style|textarea|title)$/i, bs = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), f = bs(1), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), le = /* @__PURE__ */ new WeakMap(), O = P.createTreeWalker(P, 129);
|
305
305
|
function Ue(s, t) {
|
306
306
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
@@ -314,8 +314,8 @@ const _s = (s, t) => {
|
|
314
314
|
const l = s[a];
|
315
315
|
let c, d, h = -1, p = 0;
|
316
316
|
for (; p < l.length && (r.lastIndex = p, d = r.exec(l), d !== null); )
|
317
|
-
p = r.lastIndex, r === F ? d[1] === "!--" ? r = ne : d[1] !== void 0 ? r = oe : d[2] !== void 0 ? (
|
318
|
-
const g = r ===
|
317
|
+
p = r.lastIndex, r === F ? d[1] === "!--" ? r = ne : d[1] !== void 0 ? r = oe : d[2] !== void 0 ? (Me.test(d[2]) && (n = RegExp("</" + d[2], "g")), r = k) : d[3] !== void 0 && (r = k) : r === k ? d[0] === ">" ? (r = n ?? F, h = -1) : d[1] === void 0 ? h = -2 : (h = r.lastIndex - d[2].length, c = d[1], r = d[3] === void 0 ? k : d[3] === '"' ? ae : re) : r === ae || r === re ? r = k : r === ne || r === oe ? r = F : (r = k, n = void 0);
|
318
|
+
const g = r === k && s[a + 1].startsWith("/>") ? " " : "";
|
319
319
|
o += r === F ? l + vs : h >= 0 ? (i.push(c), l.slice(0, h) + Le + l.slice(h) + A + g) : l + A + (h === -2 ? a : g);
|
320
320
|
}
|
321
321
|
return [Ue(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
@@ -339,7 +339,7 @@ class Y {
|
|
339
339
|
l.push({ type: 1, index: o, name: x[2], strings: g, ctor: x[1] === "." ? ws : x[1] === "?" ? Cs : x[1] === "@" ? As : mt }), n.removeAttribute(h);
|
340
340
|
} else
|
341
341
|
h.startsWith(A) && (l.push({ type: 6, index: o }), n.removeAttribute(h));
|
342
|
-
if (
|
342
|
+
if (Me.test(n.tagName)) {
|
343
343
|
const h = n.textContent.split(A), p = h.length - 1;
|
344
344
|
if (p > 0) {
|
345
345
|
n.textContent = rt ? rt.emptyScript : "";
|
@@ -447,7 +447,7 @@ class Q {
|
|
447
447
|
return e === void 0 && le.set(t.strings, e = new Y(t)), e;
|
448
448
|
}
|
449
449
|
T(t) {
|
450
|
-
|
450
|
+
He(this._$AH) || (this._$AH = [], this._$AR());
|
451
451
|
const e = this._$AH;
|
452
452
|
let i, n = 0;
|
453
453
|
for (const o of t)
|
@@ -535,8 +535,8 @@ class Ss {
|
|
535
535
|
B(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
|
-
const
|
539
|
-
|
538
|
+
const Tt = G.litHtmlPolyfillSupport;
|
539
|
+
Tt == null || Tt(Y, Q), (G.litHtmlVersions ?? (G.litHtmlVersions = [])).push("3.0.2");
|
540
540
|
const Es = (s, t, e) => {
|
541
541
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
542
542
|
let n = i._$litPart$;
|
@@ -551,7 +551,7 @@ const Es = (s, t, e) => {
|
|
551
551
|
* Copyright 2017 Google LLC
|
552
552
|
* SPDX-License-Identifier: BSD-3-Clause
|
553
553
|
*/
|
554
|
-
let m = class extends
|
554
|
+
let m = class extends M {
|
555
555
|
constructor() {
|
556
556
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
557
557
|
}
|
@@ -581,7 +581,7 @@ m._$litElement$ = !0, m.finalized = !0, (Oe = globalThis.litElementHydrateSuppor
|
|
581
581
|
const Ot = globalThis.litElementPolyfillSupport;
|
582
582
|
Ot == null || Ot({ LitElement: m });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
|
-
const ce = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' },
|
584
|
+
const ce = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M51.4283 11.6761L53.1768 9.53891C53.9347 8.61282 53.7982 7.24774 52.8722 6.48993C51.9461 5.73211 50.581 5.86852 49.8232 6.79461L36.3333 23.2822V13.3972C36.3332 11.6447 35.2774 10.0648 33.6583 9.39418C32.0391 8.72356 30.1755 9.09425 28.9362 10.3334L18.1029 21.1668H14.6667C9.88247 21.1722 6.00547 25.0492 6 29.8334V34.1668C6.00547 38.951 9.88247 42.828 14.6667 42.8334H18.1029L19.3315 44.0621L10.8232 54.4613C10.0653 55.3874 10.2018 56.7525 11.1279 57.5103C12.0539 58.2681 13.419 58.1317 14.1768 57.2056L22.411 47.1416L28.9362 53.6668C30.1755 54.9059 32.0391 55.2766 33.6583 54.606C35.2774 53.9354 36.3332 52.3555 36.3333 50.603V30.1254L42.6092 22.4549C44.2201 25.3756 45.044 28.6649 45 32.0001C45.1184 36.1899 43.7698 40.2896 41.1872 43.5909C40.409 44.5001 40.5152 45.8679 41.4243 46.6461C42.3334 47.4243 43.7012 47.3183 44.4795 46.4093C47.7313 42.3208 49.4486 37.2227 49.3333 32.0001C49.403 27.3538 48.067 22.7949 45.5005 18.9211L48.6119 15.1182C52.019 20.0793 53.7867 25.9829 53.6667 32.0001C53.6667 39.0587 51.4873 45.6518 47.6872 50.0909C46.909 51.0001 47.0152 52.3679 47.9243 53.1461C48.8334 53.9243 50.2012 53.8183 50.9795 52.9093C55.4408 47.6968 58 40.0764 58 32.0001C58 24.21 55.6006 16.8662 51.4283 11.6761ZM19.8971 38.5H14.6667C12.2744 38.4977 10.3357 36.559 10.3333 34.1667V29.8334C10.3357 27.4411 12.2744 25.5024 14.6667 25.5H19.8971L32 13.3972V28.5784L22.089 40.6919L19.8971 38.5ZM31.9997 50.603L25.1682 43.7715L31.9997 35.4218V50.603Z"/></svg>' }, ks = { name: "send", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.41642 6.29292C5.99705 5.18016 3.38612 7.41823 4.12858 9.96847L10.5427 32L4.12858 54.0315C3.38612 56.5818 5.99704 58.8198 8.41642 57.7071L58.1942 34.8125C60.6019 33.7051 60.6019 30.2949 58.1942 29.1875L8.41642 6.29292ZM14.2569 29.9351L8.74174 10.9913L49.9295 29.9351H14.2569ZM14.2568 34.0651L8.74174 53.0087L49.9291 34.0651H14.2568Z"/></svg>' }, de = { name: "volume", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M33.6578 9.3322C32.0391 8.65799 30.1735 9.02919 28.9362 10.2717L18.1029 21.105H14.6667C9.88247 21.1105 6.00547 24.9875 6 29.7717V34.105C6.00547 38.8892 9.88247 42.7662 14.6667 42.7717H18.1029L28.9362 53.605C30.1755 54.8442 32.0391 55.2149 33.6583 54.5442C35.2774 53.8736 36.3332 52.2937 36.3333 50.5412V13.3355C36.3365 11.5817 35.2794 10.0001 33.6578 9.3322ZM32 50.5411L19.8971 38.4382H14.6667C12.2744 38.4358 10.3357 36.4971 10.3333 34.1049V29.7716C10.3357 27.3793 12.2744 25.4406 14.6667 25.4382H19.8971L32 13.3353V50.5411ZM49.3334 31.9383C49.4487 37.161 47.7314 42.2591 44.4796 46.3475C43.7013 47.2565 42.3335 47.3625 41.4244 46.5843C40.5153 45.8061 40.4092 44.4383 41.1873 43.5291C43.7699 40.2278 45.1185 36.1282 45.0001 31.9383C45.1185 27.7485 43.7699 23.6488 41.1873 20.3475C40.4092 19.4383 40.5153 18.0705 41.4244 17.2923C42.3335 16.5141 43.7013 16.6201 44.4796 17.5291C47.7314 21.6176 49.4487 26.7157 49.3334 31.9383ZM58.0001 31.9383C58.0001 40.0147 55.441 47.635 50.9796 52.8475C50.2013 53.7565 48.8335 53.8625 47.9244 53.0843C47.0153 52.3061 46.9092 50.9383 47.6873 50.0291C51.4874 45.59 53.6668 38.9969 53.6668 31.9383C53.6668 24.8797 51.4874 18.2866 47.6873 13.8475C46.9092 12.9383 47.0153 11.5705 47.9244 10.7923C48.8335 10.0141 50.2013 10.1201 50.9796 11.0291C55.441 16.2416 58.0001 23.862 58.0001 31.9383Z"/></svg>' }, U = {
|
585
585
|
allRenderFn: !1,
|
586
586
|
cmpDidLoad: !0,
|
587
587
|
cmpDidUnload: !1,
|
@@ -665,7 +665,7 @@ const ce = { name: "mute", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.o
|
|
665
665
|
transformTagName: !1,
|
666
666
|
attachStyles: !0
|
667
667
|
};
|
668
|
-
let N, Ne, vt, je = !1, at = !1, Ft = !1, y = !1, he = null,
|
668
|
+
let N, Ne, vt, je = !1, at = !1, Ft = !1, y = !1, he = null, Ht = !1;
|
669
669
|
const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, Ie = yt.HTMLElement || class {
|
670
670
|
}, v = {
|
671
671
|
$flags$: 0,
|
@@ -675,7 +675,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
675
675
|
ael: (s, t, e, i) => s.addEventListener(t, e, i),
|
676
676
|
rel: (s, t, e, i) => s.removeEventListener(t, e, i),
|
677
677
|
ce: (s, t) => new CustomEvent(s, t)
|
678
|
-
},
|
678
|
+
}, Ts = /* @__PURE__ */ (() => {
|
679
679
|
let s = !1;
|
680
680
|
try {
|
681
681
|
w.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -694,7 +694,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
694
694
|
return !1;
|
695
695
|
})(), De = (s, t, e, i) => {
|
696
696
|
e && e.map(([n, o, r]) => {
|
697
|
-
const a = Rs(s, n), l = Ls(t, r), c =
|
697
|
+
const a = Rs(s, n), l = Ls(t, r), c = Hs(n);
|
698
698
|
v.ael(a, o, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => v.rel(a, o, l, c));
|
699
699
|
});
|
700
700
|
}, Ls = (s, t) => (e) => {
|
@@ -703,11 +703,11 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
706
|
-
}, Rs = (s, t) => t & 4 ? w : t & 8 ? yt : t & 16 ? w.body : s,
|
706
|
+
}, Rs = (s, t) => t & 4 ? w : t & 8 ? yt : t & 16 ? w.body : s, Hs = (s) => Ts ? {
|
707
707
|
passive: (s & 1) !== 0,
|
708
708
|
capture: (s & 2) !== 0
|
709
709
|
} : (s & 2) !== 0, pe = "http://www.w3.org/1999/xlink", L = (s, t = "") => () => {
|
710
|
-
}, ue = /* @__PURE__ */ new WeakMap(),
|
710
|
+
}, ue = /* @__PURE__ */ new WeakMap(), Ms = (s, t, e) => {
|
711
711
|
let i = dt.get(s);
|
712
712
|
Ps && e ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, dt.set(s, i);
|
713
713
|
}, Us = (s, t, e, i) => {
|
@@ -1035,7 +1035,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1035
1035
|
const a = Be(e, t.$modeName$);
|
1036
1036
|
if (!dt.has(a)) {
|
1037
1037
|
const l = L("registerStyles", e.$tagName$);
|
1038
|
-
|
1038
|
+
Ms(a, r, !!(e.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
1041
|
t.$ancestorComponent$, (() => Ye(t, !0))();
|
@@ -1091,7 +1091,7 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1091
1091
|
};
|
1092
1092
|
return De(s, e, t.$listeners$), Qe.set(s, e);
|
1093
1093
|
}, be = (s, t) => t in s, J = (s, t) => (0, console.error)(s, t), dt = /* @__PURE__ */ new Map(), pi = [], _e = [], Je = [], ui = (s, t) => (e) => {
|
1094
|
-
s.push(e),
|
1094
|
+
s.push(e), Ht || (Ht = !0, t && v.$flags$ & 4 ? fi(Mt) : v.raf(Mt));
|
1095
1095
|
}, xe = (s) => {
|
1096
1096
|
for (let t = 0; t < s.length; t++)
|
1097
1097
|
try {
|
@@ -1100,8 +1100,8 @@ const yt = typeof window < "u" ? window : {}, w = yt.document || { head: {} }, I
|
|
1100
1100
|
J(e);
|
1101
1101
|
}
|
1102
1102
|
s.length = 0;
|
1103
|
-
},
|
1104
|
-
xe(_e), xe(Je), (
|
1103
|
+
}, Mt = () => {
|
1104
|
+
xe(_e), xe(Je), (Ht = _e.length > 0) && v.raf(Mt);
|
1105
1105
|
}, fi = (s) => Os().then(s), gi = /* @__PURE__ */ ui(Je, !0), $i = (s = {}) => {
|
1106
1106
|
const { content: t = "", title: e, attributes: i = [] } = s;
|
1107
1107
|
let n = "", o = [
|
@@ -1228,7 +1228,7 @@ const V = (s) => (t, e) => {
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const Ei = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt },
|
1231
|
+
const Ei = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt }, ki = (s = Ei, t, e) => {
|
1232
1232
|
const { kind: i, metadata: n } = e;
|
1233
1233
|
let o = globalThis.litPropertyMetadata.get(n);
|
1234
1234
|
if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
@@ -1250,7 +1250,7 @@ const Ei = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged
|
|
1250
1250
|
throw Error("Unsupported decorator location: " + i);
|
1251
1251
|
};
|
1252
1252
|
function $(s) {
|
1253
|
-
return (t, e) => typeof e == "object" ?
|
1253
|
+
return (t, e) => typeof e == "object" ? ki(s, t, e) : ((i, n, o) => {
|
1254
1254
|
const r = n.hasOwnProperty(o);
|
1255
1255
|
return n.constructor.createProperty(o, r ? { ...i, wrapped: !0 } : i), r ? Object.getOwnPropertyDescriptor(n, o) : void 0;
|
1256
1256
|
})(s, t, e);
|
@@ -1268,7 +1268,7 @@ function C(s) {
|
|
1268
1268
|
* Copyright 2020 Google LLC
|
1269
1269
|
* SPDX-License-Identifier: BSD-3-Clause
|
1270
1270
|
*/
|
1271
|
-
const
|
1271
|
+
const Ti = (s) => s.strings === void 0;
|
1272
1272
|
/**
|
1273
1273
|
* @license
|
1274
1274
|
* Copyright 2017 Google LLC
|
@@ -1351,7 +1351,7 @@ let es = class extends Zt {
|
|
1351
1351
|
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), e && (q(this, t), ht(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
|
-
if (
|
1354
|
+
if (Ti(this._$Ct))
|
1355
1355
|
this._$Ct._$AI(t, this);
|
1356
1356
|
else {
|
1357
1357
|
const e = [...this._$Ct._$AH];
|
@@ -1431,10 +1431,10 @@ const Xt = xt(class extends Zt {
|
|
1431
1431
|
return E;
|
1432
1432
|
}
|
1433
1433
|
});
|
1434
|
-
var
|
1435
|
-
for (var n = i > 1 ? void 0 : i ?
|
1434
|
+
var Hi = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, Ui = (s, t, e, i) => {
|
1435
|
+
for (var n = i > 1 ? void 0 : i ? Mi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1436
1436
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1437
|
-
return i && n &&
|
1437
|
+
return i && n && Hi(t, e, n), n;
|
1438
1438
|
};
|
1439
1439
|
class Yt extends m {
|
1440
1440
|
constructor() {
|
@@ -1475,7 +1475,7 @@ let we = 0;
|
|
1475
1475
|
const Lt = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new WeakSet(), Ae = () => new Promise((s) => requestAnimationFrame(s)), ji = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ii = [{ opacity: 0 }], Se = [{ opacity: 0 }, { opacity: 1 }], Ee = (s, t) => {
|
1476
1476
|
const e = s - t;
|
1477
1477
|
return e === 0 ? void 0 : e;
|
1478
|
-
},
|
1478
|
+
}, ke = (s, t) => {
|
1479
1479
|
const e = s / t;
|
1480
1480
|
return e === 1 ? void 0 : e;
|
1481
1481
|
}, Rt = { left: (s, t) => {
|
@@ -1487,14 +1487,14 @@ const Lt = /* @__PURE__ */ new Map(), Ce = /* @__PURE__ */ new WeakSet(), Ae = (
|
|
1487
1487
|
}, width: (s, t) => {
|
1488
1488
|
let e;
|
1489
1489
|
t === 0 && (t = 1, e = { width: "1px" });
|
1490
|
-
const i =
|
1490
|
+
const i = ke(s, t);
|
1491
1491
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1492
1492
|
}, height: (s, t) => {
|
1493
1493
|
let e;
|
1494
1494
|
t === 0 && (t = 1, e = { height: "1px" });
|
1495
|
-
const i =
|
1495
|
+
const i = ke(s, t);
|
1496
1496
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1497
|
-
} }, Di = { duration: 333, easing: "ease-in-out" }, Bi = ["left", "top", "width", "height", "opacity", "color", "background"],
|
1497
|
+
} }, Di = { duration: 333, easing: "ease-in-out" }, Bi = ["left", "top", "width", "height", "opacity", "color", "background"], Te = /* @__PURE__ */ new WeakMap();
|
1498
1498
|
class zi extends es {
|
1499
1499
|
constructor(t) {
|
1500
1500
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === _t.CHILD)
|
@@ -1524,7 +1524,7 @@ class zi extends es {
|
|
1524
1524
|
update(t, [e]) {
|
1525
1525
|
var n;
|
1526
1526
|
const i = this.l === void 0;
|
1527
|
-
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element,
|
1527
|
+
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element, Te.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.u(e), this.render(e);
|
1528
1528
|
}
|
1529
1529
|
u(t) {
|
1530
1530
|
t = t ?? {};
|
@@ -1611,7 +1611,7 @@ class zi extends es {
|
|
1611
1611
|
_() {
|
1612
1612
|
const t = [];
|
1613
1613
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1614
|
-
const i =
|
1614
|
+
const i = Te.get(e);
|
1615
1615
|
i && !i.isDisabled() && i && t.push(i);
|
1616
1616
|
}
|
1617
1617
|
return t;
|
@@ -1697,7 +1697,7 @@ var Fi = Object.defineProperty, Wi = Object.getOwnPropertyDescriptor, wt = (s, t
|
|
1697
1697
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1698
1698
|
return i && n && Fi(t, e, n), n;
|
1699
1699
|
};
|
1700
|
-
class
|
1700
|
+
class H extends m {
|
1701
1701
|
constructor() {
|
1702
1702
|
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = pt();
|
1703
1703
|
}
|
@@ -1726,7 +1726,7 @@ class M extends m {
|
|
1726
1726
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1727
1727
|
if (!i)
|
1728
1728
|
return u;
|
1729
|
-
const n = async (d) => await import("./index-
|
1729
|
+
const n = async (d) => await import("./index-a3854c05.mjs").then(
|
1730
1730
|
(p) => p[d]
|
1731
1731
|
), { type: o, content: r } = i;
|
1732
1732
|
switch (o) {
|
@@ -1800,7 +1800,7 @@ class M extends m {
|
|
1800
1800
|
</div>`;
|
1801
1801
|
}
|
1802
1802
|
}
|
1803
|
-
|
1803
|
+
H.styles = [
|
1804
1804
|
b`
|
1805
1805
|
:host {
|
1806
1806
|
--voca-rem-multiplier: 0.625;
|
@@ -1909,17 +1909,17 @@ M.styles = [
|
|
1909
1909
|
];
|
1910
1910
|
wt([
|
1911
1911
|
$({ attribute: !1 })
|
1912
|
-
],
|
1912
|
+
], H.prototype, "application", 2);
|
1913
1913
|
wt([
|
1914
1914
|
C()
|
1915
|
-
],
|
1915
|
+
], H.prototype, "active", 2);
|
1916
1916
|
wt([
|
1917
1917
|
C()
|
1918
|
-
],
|
1918
|
+
], H.prototype, "loaded", 2);
|
1919
1919
|
wt([
|
1920
1920
|
C()
|
1921
|
-
],
|
1922
|
-
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor,
|
1921
|
+
], H.prototype, "icon", 2);
|
1922
|
+
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, T = (s, t, e, i) => {
|
1923
1923
|
for (var n = i > 1 ? void 0 : i ? qi(t, e) : t, o = s.length - 1, r; o >= 0; o--)
|
1924
1924
|
(r = s[o]) && (n = (i ? r(t, e, n) : r(n)) || n);
|
1925
1925
|
return i && n && Gi(t, e, n), n;
|
@@ -1963,19 +1963,19 @@ const is = (s) => {
|
|
1963
1963
|
box-sizing: border-box;
|
1964
1964
|
}
|
1965
1965
|
`
|
1966
|
-
],
|
1966
|
+
], T([
|
1967
1967
|
$()
|
1968
|
-
], t.prototype, "properties", 2),
|
1968
|
+
], t.prototype, "properties", 2), T([
|
1969
1969
|
$()
|
1970
|
-
], t.prototype, "context", 2),
|
1970
|
+
], t.prototype, "context", 2), T([
|
1971
1971
|
$()
|
1972
|
-
], t.prototype, "layout", 2),
|
1972
|
+
], t.prototype, "layout", 2), T([
|
1973
1973
|
$()
|
1974
|
-
], t.prototype, "name", 2),
|
1974
|
+
], t.prototype, "name", 2), T([
|
1975
1975
|
$()
|
1976
|
-
], t.prototype, "type", 2),
|
1976
|
+
], t.prototype, "type", 2), T([
|
1977
1977
|
$({ attribute: !1 })
|
1978
|
-
], t.prototype, "application", 2),
|
1978
|
+
], t.prototype, "application", 2), T([
|
1979
1979
|
$({ attribute: !1 })
|
1980
1980
|
], t.prototype, "parent", 2), t;
|
1981
1981
|
};
|
@@ -2170,7 +2170,7 @@ class tt extends m {
|
|
2170
2170
|
if (!this.widget || this.status !== "activated")
|
2171
2171
|
return u;
|
2172
2172
|
if (this.widget.renderStrategy === Kt.Trigger) {
|
2173
|
-
const t = new
|
2173
|
+
const t = new H();
|
2174
2174
|
return t.application = this.widget, t;
|
2175
2175
|
}
|
2176
2176
|
return this.widget.render();
|
@@ -2193,7 +2193,7 @@ Jt([
|
|
2193
2193
|
C()
|
2194
2194
|
], tt.prototype, "status", 2);
|
2195
2195
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", Yt);
|
2196
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2196
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", H);
|
2197
2197
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ns);
|
2198
2198
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Qt);
|
2199
2199
|
customElements.get("ace-widget") || customElements.define("ace-widget", tt);
|
@@ -2704,11 +2704,11 @@ class R extends ls {
|
|
2704
2704
|
const t = this.application.getComponent("widget-header");
|
2705
2705
|
if (!t)
|
2706
2706
|
return;
|
2707
|
-
const i = !!this.application.branding().other.disableSound,
|
2708
|
-
label:
|
2709
|
-
icon:
|
2707
|
+
const e = this.application.texts, i = e.getOrFallback("conversation.mute", "Mute"), n = e.getOrFallback("conversation.unmute", "Unmute"), r = !!this.application.branding().other.disableSound, a = t.addOption({
|
2708
|
+
label: r ? n : i,
|
2709
|
+
icon: r ? de.svg : ce.svg,
|
2710
2710
|
onClick: () => {
|
2711
|
-
!!this.application.branding().other.disableSound ? (this.application.unmute(),
|
2711
|
+
!!this.application.branding().other.disableSound ? (this.application.unmute(), a.updateLabel(i), a.updateIcon(de.svg)) : (this.application.mute(), a.updateLabel(n), a.updateIcon(ce.svg));
|
2712
2712
|
}
|
2713
2713
|
});
|
2714
2714
|
}
|
@@ -2734,6 +2734,7 @@ class R extends ls {
|
|
2734
2734
|
this.toast.message = t;
|
2735
2735
|
}
|
2736
2736
|
render() {
|
2737
|
+
const t = this.application.texts;
|
2737
2738
|
return f` <div
|
2738
2739
|
@action=${this._actionHandler}
|
2739
2740
|
class=${Xt({
|
@@ -2756,18 +2757,20 @@ class R extends ls {
|
|
2756
2757
|
${ut(this.formRef)}
|
2757
2758
|
>
|
2758
2759
|
<input
|
2759
|
-
|
2760
|
-
|
2761
|
-
|
2762
|
-
|
2763
|
-
|
2760
|
+
placeholder=${t.getOrFallback(
|
2761
|
+
"conversation.input-placeholder",
|
2762
|
+
"Aa"
|
2763
|
+
)}
|
2764
|
+
'Type your message here...'} .value=${this.message}
|
2765
|
+
?disabled=${this.disabled} @input=${this._inputHandler} />
|
2764
2766
|
<div class="conversation-actions">
|
2765
2767
|
<button
|
2766
2768
|
class="conversation-send-button"
|
2767
2769
|
type="submit"
|
2770
|
+
title=${t.getOrFallback("conversation.send-alt", "Send")}
|
2768
2771
|
?disabled=${this.disabled}
|
2769
2772
|
>
|
2770
|
-
<telia-icon svg=${
|
2773
|
+
<telia-icon svg=${ks.svg}></telia-icon>
|
2771
2774
|
</button>
|
2772
2775
|
</div>
|
2773
2776
|
</form>
|
@@ -2951,6 +2954,6 @@ const Cn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2951
2954
|
export {
|
2952
2955
|
Cn as c,
|
2953
2956
|
ce as m,
|
2954
|
-
|
2957
|
+
ks as s,
|
2955
2958
|
de as v
|
2956
2959
|
};
|