@telia-ace/widget-conversation-flamingo 1.1.30-rc.0 → 1.1.30-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-61c3428d.mjs → conversation-721b2b72.mjs} +221 -186
- package/{conversation-b67f7f61.js → conversation-db0448e6.js} +68 -40
- package/conversation.d.ts +1 -0
- package/{index-6f7ce259.mjs → index-1e1cabae.mjs} +25 -21
- package/{index-7612a1fb.mjs → index-217f3c39.mjs} +2 -2
- package/{index-364c669e.js → index-528d2acc.js} +1 -1
- package/{index-3cb7e10e.js → index-a8c06b78.js} +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/models/conversation-provider.d.ts +1 -0
- package/package.json +2 -2
@@ -1,20 +1,20 @@
|
|
1
|
-
import { C as
|
1
|
+
import { C as St } from "./index-1e1cabae.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, Dt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, It = Symbol(), Jt = /* @__PURE__ */ new WeakMap();
|
8
8
|
let ke = class {
|
9
9
|
constructor(t, s, i) {
|
10
|
-
if (this._$cssResult$ = !0, i !==
|
10
|
+
if (this._$cssResult$ = !0, i !== It)
|
11
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
12
12
|
this.cssText = t, this.t = s;
|
13
13
|
}
|
14
14
|
get styleSheet() {
|
15
15
|
let t = this.o;
|
16
16
|
const s = this.t;
|
17
|
-
if (
|
17
|
+
if (Dt && t === void 0) {
|
18
18
|
const i = s !== void 0 && s.length === 1;
|
19
19
|
i && (t = Jt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Jt.set(s, t));
|
20
20
|
}
|
@@ -24,7 +24,7 @@ let ke = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const os = (e) => new ke(typeof e == "string" ? e : e + "", void 0,
|
27
|
+
const os = (e) => new ke(typeof e == "string" ? e : e + "", void 0, It), _ = (e, ...t) => {
|
28
28
|
const s = e.length === 1 ? e[0] : t.reduce((i, n, r) => i + ((o) => {
|
29
29
|
if (o._$cssResult$ === !0)
|
30
30
|
return o.cssText;
|
@@ -32,16 +32,16 @@ const os = (e) => new ke(typeof e == "string" ? e : e + "", void 0, jt), _ = (e,
|
|
32
32
|
return o;
|
33
33
|
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.");
|
34
34
|
})(n) + e[r + 1], e[0]);
|
35
|
-
return new ke(s, e,
|
35
|
+
return new ke(s, e, It);
|
36
36
|
}, as = (e, t) => {
|
37
|
-
if (
|
37
|
+
if (Dt)
|
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
|
-
}, Vt =
|
44
|
+
}, Vt = Dt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
45
45
|
let s = "";
|
46
46
|
for (const i of t.cssRules)
|
47
47
|
s += i.cssText;
|
@@ -52,7 +52,7 @@ const os = (e) => new ke(typeof e == "string" ? e : e + "", void 0, jt), _ = (e,
|
|
52
52
|
* Copyright 2017 Google LLC
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
54
54
|
*/
|
55
|
-
const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnPropertyNames: hs, getOwnPropertySymbols: ps, getPrototypeOf: us } = Object, E = globalThis, te = E.trustedTypes, fs = te ? te.emptyScript : "",
|
55
|
+
const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnPropertyNames: hs, getOwnPropertySymbols: ps, getPrototypeOf: us } = Object, E = globalThis, te = E.trustedTypes, fs = te ? te.emptyScript : "", Et = E.reactiveElementPolyfillSupport, W = (e, t) => e, ot = { toAttribute(e, t) {
|
56
56
|
switch (t) {
|
57
57
|
case Boolean:
|
58
58
|
e = e ? fs : null;
|
@@ -80,9 +80,9 @@ const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return s;
|
83
|
-
} },
|
83
|
+
} }, zt = (e, t) => !ls(e, t), ee = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
|
-
let
|
85
|
+
let U = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
88
88
|
}
|
@@ -215,7 +215,7 @@ let R = class extends HTMLElement {
|
|
215
215
|
}
|
216
216
|
requestUpdate(t, s, i, n = !1, r) {
|
217
217
|
if (t !== void 0) {
|
218
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
218
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? zt)(n ? r : this[t], s))
|
219
219
|
return;
|
220
220
|
this.C(t, s, i);
|
221
221
|
}
|
@@ -293,16 +293,16 @@ let R = class extends HTMLElement {
|
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
|
296
|
+
U.elementStyles = [], U.shadowRootOptions = { mode: "open" }, U[W("elementProperties")] = /* @__PURE__ */ new Map(), U[W("finalized")] = /* @__PURE__ */ new Map(), Et == null || Et({ ReactiveElement: U }), (E.reactiveElementVersions ?? (E.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, at = G.trustedTypes, se = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Te = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Oe = "?" + S, gs = `<${Oe}>`, L = document,
|
303
|
-
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ne = />/g, T = RegExp(`>|${
|
302
|
+
const G = globalThis, at = G.trustedTypes, se = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Te = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Oe = "?" + S, gs = `<${Oe}>`, L = document, X = () => L.createComment(""), Y = (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", Ct = `[
|
303
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ne = />/g, T = RegExp(`>|${Ct}(?:([^\\s"'>=/]+)(${Ct}*=${Ct}*(?:[^
|
304
304
|
\f\r"'\`<>=]|("|')|))|$)`, "g"), re = /'/g, oe = /"/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"), ae = /* @__PURE__ */ new WeakMap(), P = L.createTreeWalker(L, 129);
|
305
|
-
function
|
305
|
+
function Re(e, t) {
|
306
306
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
308
308
|
return se !== void 0 ? se.createHTML(t) : t;
|
@@ -318,15 +318,15 @@ const vs = (e, t) => {
|
|
318
318
|
const g = o === T && e[a + 1].startsWith("/>") ? " " : "";
|
319
319
|
r += o === F ? l + gs : h >= 0 ? (i.push(c), l.slice(0, h) + Te + l.slice(h) + S + g) : l + S + (h === -2 ? a : g);
|
320
320
|
}
|
321
|
-
return [
|
321
|
+
return [Re(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
|
-
class
|
323
|
+
class K {
|
324
324
|
constructor({ strings: t, _$litType$: s }, i) {
|
325
325
|
let n;
|
326
326
|
this.parts = [];
|
327
327
|
let r = 0, o = 0;
|
328
328
|
const a = t.length - 1, l = this.parts, [c, d] = vs(t, s);
|
329
|
-
if (this.el =
|
329
|
+
if (this.el = K.createElement(c, i), P.currentNode = this.el.content, s === 2) {
|
330
330
|
const h = this.el.content.firstChild;
|
331
331
|
h.replaceWith(...h.childNodes);
|
332
332
|
}
|
@@ -336,7 +336,7 @@ class Q {
|
|
336
336
|
for (const h of n.getAttributeNames())
|
337
337
|
if (h.endsWith(Te)) {
|
338
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 :
|
339
|
+
l.push({ type: 1, index: r, name: x[2], strings: g, ctor: x[1] === "." ? bs : x[1] === "?" ? _s : x[1] === "@" ? xs : vt }), 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)) {
|
@@ -344,8 +344,8 @@ class Q {
|
|
344
344
|
if (p > 0) {
|
345
345
|
n.textContent = at ? at.emptyScript : "";
|
346
346
|
for (let g = 0; g < p; g++)
|
347
|
-
n.append(h[g],
|
348
|
-
n.append(h[p],
|
347
|
+
n.append(h[g], X()), P.nextNode(), l.push({ type: 2, index: ++r });
|
348
|
+
n.append(h[p], X());
|
349
349
|
}
|
350
350
|
}
|
351
351
|
} else if (n.nodeType === 8)
|
@@ -369,7 +369,7 @@ function I(e, t, s = e, i) {
|
|
369
369
|
if (t === C)
|
370
370
|
return t;
|
371
371
|
let n = i !== void 0 ? (o = s._$Co) == null ? void 0 : o[i] : s._$Cl;
|
372
|
-
const r =
|
372
|
+
const r = Y(t) ? void 0 : t._$litDirective$;
|
373
373
|
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(e), n._$AT(e, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = n : s._$Cl = n), n !== void 0 && (t = I(e, n._$AS(e, t.values), n, i)), t;
|
374
374
|
}
|
375
375
|
class ys {
|
@@ -421,7 +421,7 @@ class Z {
|
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
423
|
_$AI(t, s = this) {
|
424
|
-
t = I(this, t, s),
|
424
|
+
t = I(this, t, s), Y(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);
|
@@ -430,11 +430,11 @@ class Z {
|
|
430
430
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
431
431
|
}
|
432
432
|
_(t) {
|
433
|
-
this._$AH !== u &&
|
433
|
+
this._$AH !== u && Y(this._$AH) ? this._$AA.nextSibling.data = t : this.$(L.createTextNode(t)), this._$AH = t;
|
434
434
|
}
|
435
435
|
g(t) {
|
436
436
|
var r;
|
437
|
-
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
437
|
+
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = K.createElement(Re(i.h, i.h[0]), this.options)), i);
|
438
438
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === n)
|
439
439
|
this._$AH.p(s);
|
440
440
|
else {
|
@@ -444,14 +444,14 @@ class Z {
|
|
444
444
|
}
|
445
445
|
_$AC(t) {
|
446
446
|
let s = ae.get(t.strings);
|
447
|
-
return s === void 0 && ae.set(t.strings, s = new
|
447
|
+
return s === void 0 && ae.set(t.strings, s = new K(t)), s;
|
448
448
|
}
|
449
449
|
T(t) {
|
450
450
|
Pe(this._$AH) || (this._$AH = [], this._$AR());
|
451
451
|
const s = this._$AH;
|
452
452
|
let i, n = 0;
|
453
453
|
for (const r of t)
|
454
|
-
n === s.length ? s.push(i = new Z(this.k(
|
454
|
+
n === s.length ? s.push(i = new Z(this.k(X()), this.k(X()), this, this.options)) : i = s[n], i._$AI(r), n++;
|
455
455
|
n < s.length && (this._$AR(i && i._$AB.nextSibling, n), s.length = n);
|
456
456
|
}
|
457
457
|
_$AR(t = this._$AA.nextSibling, s) {
|
@@ -466,7 +466,7 @@ class Z {
|
|
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 vt {
|
470
470
|
get tagName() {
|
471
471
|
return this.element.tagName;
|
472
472
|
}
|
@@ -480,12 +480,12 @@ class $t {
|
|
480
480
|
const r = this.strings;
|
481
481
|
let o = !1;
|
482
482
|
if (r === void 0)
|
483
|
-
t = I(this, t, s, 0), o = !
|
483
|
+
t = I(this, t, s, 0), o = !Y(t) || t !== this._$AH && t !== C, o && (this._$AH = t);
|
484
484
|
else {
|
485
485
|
const a = t;
|
486
486
|
let l, c;
|
487
487
|
for (t = r[0], l = 0; l < r.length - 1; l++)
|
488
|
-
c = I(this, a[i + l], s, l), c === C && (c = this._$AH[l]), o || (o = !
|
488
|
+
c = I(this, a[i + l], s, l), c === C && (c = this._$AH[l]), o || (o = !Y(c) || c !== this._$AH[l]), c === u ? t = u : t !== u && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
489
489
|
}
|
490
490
|
o && !n && this.O(t);
|
491
491
|
}
|
@@ -493,7 +493,7 @@ class $t {
|
|
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 vt {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class bs extends $t {
|
|
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 vt {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,7 +509,7 @@ let _s = class extends $t {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class xs extends
|
512
|
+
class xs extends vt {
|
513
513
|
constructor(t, s, i, n, r) {
|
514
514
|
super(t, s, i, n, r), this.type = 5;
|
515
515
|
}
|
@@ -535,14 +535,14 @@ class ws {
|
|
535
535
|
I(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
|
-
const
|
539
|
-
|
538
|
+
const kt = G.litHtmlPolyfillSupport;
|
539
|
+
kt == null || kt(K, Z), (G.litHtmlVersions ?? (G.litHtmlVersions = [])).push("3.0.2");
|
540
540
|
const As = (e, t, s) => {
|
541
541
|
const i = (s == null ? void 0 : s.renderBefore) ?? t;
|
542
542
|
let n = i._$litPart$;
|
543
543
|
if (n === void 0) {
|
544
544
|
const r = (s == null ? void 0 : s.renderBefore) ?? null;
|
545
|
-
i._$litPart$ = n = new Z(t.insertBefore(
|
545
|
+
i._$litPart$ = n = new Z(t.insertBefore(X(), r), r, void 0, s ?? {});
|
546
546
|
}
|
547
547
|
return n._$AI(e), n;
|
548
548
|
};
|
@@ -551,7 +551,7 @@ const As = (e, t, s) => {
|
|
551
551
|
* Copyright 2017 Google LLC
|
552
552
|
* SPDX-License-Identifier: BSD-3-Clause
|
553
553
|
*/
|
554
|
-
let v = class extends
|
554
|
+
let v = class extends U {
|
555
555
|
constructor() {
|
556
556
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
557
557
|
}
|
@@ -578,8 +578,8 @@ let v = class extends R {
|
|
578
578
|
};
|
579
579
|
var Ce;
|
580
580
|
v._$litElement$ = !0, v.finalized = !0, (Ce = globalThis.litElementHydrateSupport) == null || Ce.call(globalThis, { LitElement: v });
|
581
|
-
const
|
582
|
-
|
581
|
+
const Tt = globalThis.litElementPolyfillSupport;
|
582
|
+
Tt == null || Tt({ LitElement: v });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
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,
|
@@ -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 N,
|
669
|
-
const
|
668
|
+
let N, Ue, yt, He = !1, lt = !1, Bt = !1, y = !1, le = null, Rt = !1;
|
669
|
+
const bt = typeof window < "u" ? window : {}, w = bt.document || { head: {} }, Ne = bt.HTMLElement || class {
|
670
670
|
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -703,14 +703,14 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
706
|
-
}, Os = (e, t) => t & 4 ? w : t & 8 ?
|
706
|
+
}, Os = (e, t) => t & 4 ? w : t & 8 ? bt : t & 16 ? w.body : e, Ps = (e) => Es ? {
|
707
707
|
passive: (e & 1) !== 0,
|
708
708
|
capture: (e & 2) !== 0
|
709
|
-
} : (e & 2) !== 0, ce = "http://www.w3.org/1999/xlink",
|
709
|
+
} : (e & 2) !== 0, ce = "http://www.w3.org/1999/xlink", R = (e, t = "") => () => {
|
710
710
|
}, de = /* @__PURE__ */ new WeakMap(), Ls = (e, t, s) => {
|
711
711
|
let i = ht.get(e);
|
712
712
|
ks && s ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, ht.set(e, i);
|
713
|
-
},
|
713
|
+
}, Rs = (e, t, s, i) => {
|
714
714
|
let n = je(t, s), r = ht.get(n);
|
715
715
|
if (e = e.nodeType === 11 ? e : w, r)
|
716
716
|
if (typeof r == "string") {
|
@@ -720,14 +720,14 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
720
720
|
} else
|
721
721
|
e.adoptedStyleSheets.includes(r) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, r]);
|
722
722
|
return n;
|
723
|
-
},
|
724
|
-
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n =
|
723
|
+
}, Us = (e) => {
|
724
|
+
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n = R("attachStyles", t.$tagName$), r = Rs(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$), Hs = (e) => ci.map((t) => t(e)).find((t) => !!t), he = {}, Ns = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xhtml", js = (e) => e != null,
|
726
|
+
}, je = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$), Hs = (e) => ci.map((t) => t(e)).find((t) => !!t), he = {}, Ns = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xhtml", js = (e) => e != null, Ft = (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++)
|
730
|
-
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !
|
730
|
+
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !Ft(i)) && (i = String(i)), o && a ? l[l.length - 1].$text$ += i : l.push(o ? ct(null, i) : i), a = o);
|
731
731
|
};
|
732
732
|
if (c(s), t) {
|
733
733
|
t.key && (n = t.key), t.name && (r = t.name);
|
@@ -749,7 +749,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
749
749
|
$children$: null
|
750
750
|
};
|
751
751
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
752
|
-
},
|
752
|
+
}, Wt = {}, Ds = (e) => e && e.$tag$ === Wt, Is = {
|
753
753
|
forEach: (e, t) => e.map(pe).forEach(t),
|
754
754
|
map: (e, t) => e.map(pe).map(t).map(zs)
|
755
755
|
}, pe = (e) => ({
|
@@ -781,9 +781,9 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
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) : me(
|
784
|
+
t[2] === "-" ? t = t.slice(3) : me(bt, 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
|
-
const l =
|
786
|
+
const l = Ft(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
788
788
|
try {
|
789
789
|
if (e.tagName.includes("-"))
|
@@ -806,7 +806,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
806
806
|
ue(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 (He || (
|
809
|
+
if (He || (Bt = !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
|
) : (
|
@@ -822,22 +822,22 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
822
822
|
a = dt(e, n, r, o), a && o.appendChild(a);
|
823
823
|
n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
|
824
824
|
}
|
825
|
-
return o["s-hn"] =
|
826
|
-
},
|
825
|
+
return o["s-hn"] = yt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Ue, o["s-sn"] = n.$name$ || "", l = e && e.$children$ && e.$children$[s], l && l.$tag$ === n.$tag$ && e.$elm$ && Q(e.$elm$, !1)), o;
|
826
|
+
}, Q = (e, t) => {
|
827
827
|
m.$flags$ |= 1;
|
828
828
|
const s = e.childNodes;
|
829
829
|
for (let i = s.length - 1; i >= 0; i--) {
|
830
830
|
const n = s[i];
|
831
|
-
n["s-hn"] !==
|
831
|
+
n["s-hn"] !== yt && n["s-ol"] && (Be(n).insertBefore(n, Gt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Bt = !0), t && Q(n, t);
|
832
832
|
}
|
833
833
|
m.$flags$ &= -2;
|
834
834
|
}, Ie = (e, t, s, i, n, r) => {
|
835
835
|
let o = e["s-cr"] && e["s-cr"].parentNode || e, a;
|
836
|
-
for (o.shadowRoot && o.tagName ===
|
837
|
-
i[n] && (a = dt(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a,
|
836
|
+
for (o.shadowRoot && o.tagName === yt && (o = o.shadowRoot); n <= r; ++n)
|
837
|
+
i[n] && (a = dt(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a, Gt(t))));
|
838
838
|
}, ze = (e, t, s, i, n) => {
|
839
839
|
for (; t <= s; ++t)
|
840
|
-
(i = e[t]) && (n = i.$elm$, Ge(i), lt = !0, n["s-ol"] ? n["s-ol"].remove() :
|
840
|
+
(i = e[t]) && (n = i.$elm$, Ge(i), lt = !0, n["s-ol"] ? n["s-ol"].remove() : Q(n, !0), n.remove());
|
841
841
|
}, Fs = (e, t, s, i) => {
|
842
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; )
|
@@ -854,19 +854,19 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
854
854
|
else if (it(d, g))
|
855
855
|
M(d, g), d = t[--l], g = i[--h];
|
856
856
|
else if (it(c, g))
|
857
|
-
(c.$tag$ === "slot" || g.$tag$ === "slot") &&
|
857
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && Q(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" || g.$tag$ === "slot") &&
|
859
|
+
(c.$tag$ === "slot" || g.$tag$ === "slot") && Q(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$) {
|
863
863
|
o = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
o >= 0 ? (st = t[o], st.$tag$ !== p.$tag$ ? x = dt(t && t[r], s, o, e) : (M(st, p), t[o] = void 0, x = st.$elm$), p = i[++r]) : (x = dt(t && t[r], s, r, e), p = i[++r]), x && Be(c.$elm$).insertBefore(x,
|
866
|
+
o >= 0 ? (st = t[o], st.$tag$ !== p.$tag$ ? x = dt(t && t[r], s, o, e) : (M(st, p), t[o] = void 0, x = st.$elm$), p = i[++r]) : (x = dt(t && t[r], s, r, e), p = i[++r]), x && Be(c.$elm$).insertBefore(x, Gt(c.$elm$));
|
867
867
|
}
|
868
868
|
n > l ? Ie(e, i[h + 1] == null ? null : i[h + 1].$elm$, s, i, r, h) : r > h && ze(t, n, l);
|
869
|
-
}, it = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1,
|
869
|
+
}, it = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1, Gt = (e) => e && e["s-ol"] || e, Be = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, M = (e, t) => {
|
870
870
|
const s = t.$elm$ = e.$elm$, i = e.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
871
871
|
let a;
|
872
872
|
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" || De(e, t, y), i !== null && n !== null ? Fs(s, i, t, n) : n !== null ? (e.$text$ !== null && (s.textContent = ""), Ie(s, null, t, n, 0, n.length - 1)) : i !== null && ze(i, 0, i.length - 1), y && r === "svg" && (y = !1)) : (a = s["s-cr"]) ? a.parentNode.textContent = o : e.$text$ !== o && (s.data = o);
|
@@ -907,9 +907,9 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
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
|
-
|
910
|
+
yt = 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"], Ue = s["s-cr"], He = (i.$flags$ & 1) !== 0, lt = !1, M(n, r);
|
911
911
|
{
|
912
|
-
if (m.$flags$ |= 1,
|
912
|
+
if (m.$flags$ |= 1, Bt) {
|
913
913
|
We(r.$elm$);
|
914
914
|
let o, a, l, c, d, h, p = 0;
|
915
915
|
for (; p < b.length; p++)
|
@@ -930,25 +930,25 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
930
930
|
}, Gs = (e) => e, qs = (e, t, s) => {
|
931
931
|
const i = Gs(e);
|
932
932
|
return {
|
933
|
-
emit: (n) =>
|
933
|
+
emit: (n) => Xs(i, t, {
|
934
934
|
bubbles: !!(s & 4),
|
935
935
|
composed: !!(s & 2),
|
936
936
|
cancelable: !!(s & 1),
|
937
937
|
detail: n
|
938
938
|
})
|
939
939
|
};
|
940
|
-
},
|
940
|
+
}, Xs = (e, t, s) => {
|
941
941
|
const i = m.ce(t, s);
|
942
942
|
return e.dispatchEvent(i), i;
|
943
|
-
},
|
944
|
-
}, qe = (e, t) => (e.$flags$ |= 16,
|
945
|
-
const s = e.$hostElement$, i =
|
943
|
+
}, Ys = (e, t) => {
|
944
|
+
}, qe = (e, t) => (e.$flags$ |= 16, Ys(e, e.$ancestorComponent$), pi(() => Ks(e, t))), Ks = (e, t) => {
|
945
|
+
const s = e.$hostElement$, i = R("scheduleUpdate", e.$cmpMeta$.$tagName$), n = s;
|
946
946
|
let r;
|
947
|
-
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = $e(r, () => D(n, "componentWillRender")), i(), $e(r, () =>
|
948
|
-
},
|
949
|
-
const i = e.$hostElement$, n =
|
950
|
-
i["s-rc"], s &&
|
951
|
-
const r =
|
947
|
+
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = $e(r, () => D(n, "componentWillRender")), i(), $e(r, () => Qs(e, n, t));
|
948
|
+
}, Qs = async (e, t, s) => {
|
949
|
+
const i = e.$hostElement$, n = R("update", e.$cmpMeta$.$tagName$);
|
950
|
+
i["s-rc"], s && Us(e);
|
951
|
+
const r = R("render", e.$cmpMeta$.$tagName$);
|
952
952
|
Zs(e, t, i), r(), n(), Js(e);
|
953
953
|
}, Zs = (e, t, s) => {
|
954
954
|
try {
|
@@ -958,7 +958,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
958
958
|
}
|
959
959
|
return le = null, null;
|
960
960
|
}, Js = (e) => {
|
961
|
-
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i =
|
961
|
+
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i = R("postUpdate", t), n = s;
|
962
962
|
e.$ancestorComponent$, D(n, "componentDidRender"), e.$flags$ & 64 ? (D(n, "componentDidUpdate"), i()) : (e.$flags$ |= 64, D(n, "componentDidLoad"), i());
|
963
963
|
}, D = (e, t, s) => {
|
964
964
|
if (e && e[t])
|
@@ -967,8 +967,8 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
967
967
|
} catch (i) {
|
968
968
|
J(i);
|
969
969
|
}
|
970
|
-
}, $e = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !
|
971
|
-
const n =
|
970
|
+
}, $e = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !Ft(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, ti = (e, t) => _t(e).$instanceValues$.get(t), ei = (e, t, s, i) => {
|
971
|
+
const n = _t(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);
|
974
974
|
if (s !== o && !c) {
|
@@ -1034,7 +1034,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
1034
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
|
-
const l =
|
1037
|
+
const l = R("registerStyles", s.$tagName$);
|
1038
1038
|
Ls(a, o, !!(s.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
@@ -1042,7 +1042,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
1042
1042
|
}, ni = (e) => {
|
1043
1043
|
}, ri = (e) => {
|
1044
1044
|
if (!(m.$flags$ & 1)) {
|
1045
|
-
const t =
|
1045
|
+
const t = _t(e), s = t.$cmpMeta$, i = R("connectedCallback", s.$tagName$);
|
1046
1046
|
t.$flags$ & 1 ? (Me(e, t, s.$listeners$), ni(t.$lazyInstance$)) : (t.$flags$ |= 1, s.$flags$ & 12 && oi(e), s.$members$ && Object.entries(s.$members$).map(([n, [r]]) => {
|
1047
1047
|
if (r & 31 && e.hasOwnProperty(n)) {
|
1048
1048
|
const o = e[n];
|
@@ -1055,10 +1055,10 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
1055
1055
|
t["s-cn"] = !0, e.insertBefore(t, e.firstChild);
|
1056
1056
|
}, ai = (e) => {
|
1057
1057
|
if (!(m.$flags$ & 1)) {
|
1058
|
-
const t =
|
1058
|
+
const t = _t(e);
|
1059
1059
|
t.$rmListeners$ && (t.$rmListeners$.map((s) => s()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
|
-
},
|
1061
|
+
}, Xe = (e, t) => {
|
1062
1062
|
const s = {
|
1063
1063
|
$flags$: t[0],
|
1064
1064
|
$tagName$: t[1]
|
@@ -1082,16 +1082,16 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
1084
|
}), e.is = s.$tagName$, si(e, s);
|
1085
|
-
},
|
1085
|
+
}, Ye = /* @__PURE__ */ new WeakMap(), _t = (e) => Ye.get(e), li = (e, t) => {
|
1086
1086
|
const s = {
|
1087
1087
|
$flags$: 0,
|
1088
1088
|
$hostElement$: e,
|
1089
1089
|
$cmpMeta$: t,
|
1090
1090
|
$instanceValues$: /* @__PURE__ */ new Map()
|
1091
1091
|
};
|
1092
|
-
return Me(e, s, t.$listeners$),
|
1093
|
-
}, me = (e, t) => t in e, J = (e, t) => (0, console.error)(e, t), ht = /* @__PURE__ */ new Map(), ci = [], ve = [],
|
1094
|
-
e.push(s),
|
1092
|
+
return Me(e, s, t.$listeners$), Ye.set(e, s);
|
1093
|
+
}, me = (e, t) => t in e, J = (e, t) => (0, console.error)(e, t), ht = /* @__PURE__ */ new Map(), ci = [], ve = [], Ke = [], di = (e, t) => (s) => {
|
1094
|
+
e.push(s), Rt || (Rt = !0, t && m.$flags$ & 4 ? hi(Ut) : m.raf(Ut));
|
1095
1095
|
}, ye = (e) => {
|
1096
1096
|
for (let t = 0; t < e.length; t++)
|
1097
1097
|
try {
|
@@ -1100,9 +1100,9 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, N
|
|
1100
1100
|
J(s);
|
1101
1101
|
}
|
1102
1102
|
e.length = 0;
|
1103
|
-
},
|
1104
|
-
ye(ve), ye(
|
1105
|
-
}, hi = (e) => Cs().then(e), pi = /* @__PURE__ */ di(
|
1103
|
+
}, Ut = () => {
|
1104
|
+
ye(ve), ye(Ke), (Rt = ve.length > 0) && m.raf(Ut);
|
1105
|
+
}, hi = (e) => Cs().then(e), pi = /* @__PURE__ */ di(Ke, !0), ui = (e = {}) => {
|
1106
1106
|
const { content: t = "", title: s, attributes: i = [] } = e;
|
1107
1107
|
let n = "", r = [
|
1108
1108
|
{ name: "xmlns", value: "http://www.w3.org/2000/svg" },
|
@@ -1119,7 +1119,7 @@ class $i {
|
|
1119
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__ */
|
1122
|
+
const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Xe(class extends Ne {
|
1123
1123
|
constructor() {
|
1124
1124
|
super(), this.__registerHost(), this.vocaInternalUStats = qs(this, "vocaInternalUStats", 7);
|
1125
1125
|
}
|
@@ -1127,7 +1127,7 @@ const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Ye(class extends Ne {
|
|
1127
1127
|
this.vocaInternalUStats.emit(new $i(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
|
-
return j(
|
1130
|
+
return j(Wt, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
1133
|
return mi;
|
@@ -1135,7 +1135,7 @@ const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Ye(class extends Ne {
|
|
1135
1135
|
}, [0, "telia-vst", {
|
1136
1136
|
dataTrackingId: [1, "data-tracking-id"]
|
1137
1137
|
}]);
|
1138
|
-
function
|
1138
|
+
function Qe() {
|
1139
1139
|
if (typeof customElements > "u")
|
1140
1140
|
return;
|
1141
1141
|
["telia-vst"].forEach((t) => {
|
@@ -1146,18 +1146,18 @@ function Xe() {
|
|
1146
1146
|
}
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
|
-
|
1150
|
-
function
|
1149
|
+
Qe();
|
1150
|
+
function Ht() {
|
1151
1151
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
1152
1152
|
}
|
1153
1153
|
function yi() {
|
1154
|
-
if (typeof
|
1155
|
-
return
|
1154
|
+
if (typeof Ht().vocadsIcons !== void 0)
|
1155
|
+
return Ht().vocadsIcons;
|
1156
1156
|
}
|
1157
1157
|
function bi() {
|
1158
|
-
return
|
1158
|
+
return Ht().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__ */
|
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__ */ Xe(class extends Ne {
|
1161
1161
|
constructor() {
|
1162
1162
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
1163
1163
|
}
|
@@ -1186,7 +1186,7 @@ const _i = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1186
1186
|
attributes: t,
|
1187
1187
|
title: this.allyTitle
|
1188
1188
|
});
|
1189
|
-
return j(
|
1189
|
+
return j(Wt, { class: `telia-icon telia-icon--${this.size}` }, j("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: s }), j("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
1190
1190
|
}
|
1191
1191
|
static get style() {
|
1192
1192
|
return _i;
|
@@ -1207,7 +1207,7 @@ function wi() {
|
|
1207
1207
|
customElements.get(t) || customElements.define(t, xi);
|
1208
1208
|
break;
|
1209
1209
|
case "telia-vst":
|
1210
|
-
customElements.get(t) ||
|
1210
|
+
customElements.get(t) || Qe();
|
1211
1211
|
break;
|
1212
1212
|
}
|
1213
1213
|
});
|
@@ -1228,7 +1228,7 @@ const V = (e) => (t, s) => {
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const Ai = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged:
|
1231
|
+
const Ai = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: zt }, Si = (e = Ai, t, s) => {
|
1232
1232
|
const { kind: i, metadata: n } = s;
|
1233
1233
|
let r = globalThis.litPropertyMetadata.get(n);
|
1234
1234
|
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(s.name, e), i === "accessor") {
|
@@ -1274,8 +1274,8 @@ const Ei = (e) => e.strings === void 0;
|
|
1274
1274
|
* Copyright 2017 Google LLC
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
|
-
const
|
1278
|
-
let
|
1277
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
1278
|
+
let qt = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
1281
1281
|
get _$AU() {
|
@@ -1337,9 +1337,9 @@ function ki(e, t = !1, s = 0) {
|
|
1337
1337
|
q(this, e);
|
1338
1338
|
}
|
1339
1339
|
const Ti = (e) => {
|
1340
|
-
e.type ==
|
1340
|
+
e.type == xt.CHILD && (e._$AP ?? (e._$AP = ki), e._$AQ ?? (e._$AQ = Ci));
|
1341
1341
|
};
|
1342
|
-
let Je = class extends
|
1342
|
+
let Je = class extends qt {
|
1343
1343
|
constructor() {
|
1344
1344
|
super(...arguments), this._$AN = void 0;
|
1345
1345
|
}
|
@@ -1368,10 +1368,10 @@ let Je = class extends Wt {
|
|
1368
1368
|
* Copyright 2020 Google LLC
|
1369
1369
|
* SPDX-License-Identifier: BSD-3-Clause
|
1370
1370
|
*/
|
1371
|
-
const
|
1371
|
+
const ut = () => new Oi();
|
1372
1372
|
class Oi {
|
1373
1373
|
}
|
1374
|
-
const
|
1374
|
+
const Ot = /* @__PURE__ */ new WeakMap(), ft = wt(class extends Je {
|
1375
1375
|
render(e) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1383,14 +1383,14 @@ const kt = /* @__PURE__ */ new WeakMap(), qt = _t(class extends Je {
|
|
1383
1383
|
ot(e) {
|
1384
1384
|
if (typeof this.G == "function") {
|
1385
1385
|
const t = this.ct ?? globalThis;
|
1386
|
-
let s =
|
1387
|
-
s === void 0 && (s = /* @__PURE__ */ new WeakMap(),
|
1386
|
+
let s = Ot.get(t);
|
1387
|
+
s === void 0 && (s = /* @__PURE__ */ new WeakMap(), Ot.set(t, s)), s.get(this.G) !== void 0 && this.G.call(this.ct, void 0), s.set(this.G, e), e !== void 0 && this.G.call(this.ct, e);
|
1388
1388
|
} else
|
1389
1389
|
this.G.value = e;
|
1390
1390
|
}
|
1391
1391
|
get rt() {
|
1392
1392
|
var e, t;
|
1393
|
-
return typeof this.G == "function" ? (e =
|
1393
|
+
return typeof this.G == "function" ? (e = Ot.get(this.ct ?? globalThis)) == null ? void 0 : e.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1394
1394
|
}
|
1395
1395
|
disconnected() {
|
1396
1396
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1404,10 +1404,10 @@ const kt = /* @__PURE__ */ new WeakMap(), qt = _t(class extends Je {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const
|
1407
|
+
const Xt = wt(class extends qt {
|
1408
1408
|
constructor(e) {
|
1409
1409
|
var t;
|
1410
|
-
if (super(e), e.type !==
|
1410
|
+
if (super(e), e.type !== xt.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2)
|
1411
1411
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1412
1412
|
}
|
1413
1413
|
render(e) {
|
@@ -1432,13 +1432,13 @@ const Yt = _t(class extends Wt {
|
|
1432
1432
|
}
|
1433
1433
|
}), Pi = /* @__PURE__ */ new WeakMap();
|
1434
1434
|
let be = 0;
|
1435
|
-
const
|
1435
|
+
const Pt = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new WeakSet(), xe = () => new Promise((e) => requestAnimationFrame(e)), Li = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ri = [{ opacity: 0 }], we = [{ opacity: 0 }, { opacity: 1 }], Ae = (e, t) => {
|
1436
1436
|
const s = e - t;
|
1437
1437
|
return s === 0 ? void 0 : s;
|
1438
1438
|
}, Se = (e, t) => {
|
1439
1439
|
const s = e / t;
|
1440
1440
|
return s === 1 ? void 0 : s;
|
1441
|
-
},
|
1441
|
+
}, Lt = { left: (e, t) => {
|
1442
1442
|
const s = Ae(e, t);
|
1443
1443
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1444
1444
|
}, top: (e, t) => {
|
@@ -1454,10 +1454,10 @@ const Tt = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new WeakSet(), xe = (
|
|
1454
1454
|
t === 0 && (t = 1, s = { height: "1px" });
|
1455
1455
|
const i = Se(e, t);
|
1456
1456
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1457
|
-
} },
|
1457
|
+
} }, Ui = { duration: 333, easing: "ease-in-out" }, Hi = ["left", "top", "width", "height", "opacity", "color", "background"], Ee = /* @__PURE__ */ new WeakMap();
|
1458
1458
|
class Ni extends Je {
|
1459
1459
|
constructor(t) {
|
1460
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type ===
|
1460
|
+
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === xt.CHILD)
|
1461
1461
|
throw Error("The `animate` directive must be used in attribute position.");
|
1462
1462
|
this.createFinished();
|
1463
1463
|
}
|
@@ -1494,7 +1494,7 @@ class Ni extends Je {
|
|
1494
1494
|
p() {
|
1495
1495
|
const t = {}, s = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1496
1496
|
return this.options.properties.forEach((n) => {
|
1497
|
-
const r = s[n] ?? (
|
1497
|
+
const r = s[n] ?? (Lt[n] ? void 0 : i[n]), o = Number(r);
|
1498
1498
|
t[n] = isNaN(o) ? r + "" : o;
|
1499
1499
|
}), t;
|
1500
1500
|
}
|
@@ -1522,9 +1522,9 @@ class Ni extends Je {
|
|
1522
1522
|
const { from: r, to: o } = this.O(this.g, n, s);
|
1523
1523
|
this.log("measured", [this.g, n, r, o]), t = this.calculateKeyframes(r, o);
|
1524
1524
|
} else {
|
1525
|
-
const r =
|
1525
|
+
const r = Pt.get(this.options.inId);
|
1526
1526
|
if (r) {
|
1527
|
-
|
1527
|
+
Pt.delete(this.options.inId);
|
1528
1528
|
const { from: o, to: a } = this.O(r, n, s);
|
1529
1529
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, be++, t.forEach((l) => l.zIndex = be);
|
1530
1530
|
} else
|
@@ -1543,7 +1543,7 @@ class Ni extends Je {
|
|
1543
1543
|
}
|
1544
1544
|
async disconnected() {
|
1545
1545
|
var s;
|
1546
|
-
if (!this.o || (this.options.id !== void 0 &&
|
1546
|
+
if (!this.o || (this.options.id !== void 0 && Pt.set(this.options.id, this.g), this.options.out === void 0))
|
1547
1547
|
return;
|
1548
1548
|
if (this.prepare(), await xe(), (s = this.t) == null ? void 0 : s.isConnected) {
|
1549
1549
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
@@ -1583,7 +1583,7 @@ class Ni extends Je {
|
|
1583
1583
|
}), t;
|
1584
1584
|
}
|
1585
1585
|
A(t, s = this._()) {
|
1586
|
-
const i = { ...
|
1586
|
+
const i = { ...Ui };
|
1587
1587
|
return s.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
1588
1588
|
}
|
1589
1589
|
O(t, s, i) {
|
@@ -1600,8 +1600,8 @@ class Ni extends Je {
|
|
1600
1600
|
const a = {};
|
1601
1601
|
for (const l in s) {
|
1602
1602
|
const c = t[l], d = s[l];
|
1603
|
-
if (l in
|
1604
|
-
const h =
|
1603
|
+
if (l in Lt) {
|
1604
|
+
const h = Lt[l];
|
1605
1605
|
if (c === void 0 || d === void 0)
|
1606
1606
|
continue;
|
1607
1607
|
const p = h(c, d);
|
@@ -1634,7 +1634,7 @@ class Ni extends Je {
|
|
1634
1634
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
1635
1635
|
}
|
1636
1636
|
}
|
1637
|
-
const
|
1637
|
+
const Nt = wt(Ni), nt = (e, t, s) => {
|
1638
1638
|
e && s.style.setProperty(t, e);
|
1639
1639
|
}, Ve = (e, t) => {
|
1640
1640
|
var s, i, n, r;
|
@@ -1659,7 +1659,7 @@ var Mi = Object.defineProperty, ji = Object.getOwnPropertyDescriptor, tt = (e, t
|
|
1659
1659
|
};
|
1660
1660
|
class k extends v {
|
1661
1661
|
constructor() {
|
1662
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef =
|
1662
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = ut();
|
1663
1663
|
}
|
1664
1664
|
async connectedCallback() {
|
1665
1665
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding(), this.offset > 0 && this.buttonRef.value && (this.buttonRef.value.style.right = `calc(${this.offset}px + 20px)`);
|
@@ -1686,7 +1686,7 @@ class k extends v {
|
|
1686
1686
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1687
1687
|
if (!i)
|
1688
1688
|
return u;
|
1689
|
-
const n = async (d) => await import("./index-
|
1689
|
+
const n = async (d) => await import("./index-217f3c39.mjs").then(
|
1690
1690
|
(p) => p[d]
|
1691
1691
|
), { type: r, content: o } = i;
|
1692
1692
|
switch (r) {
|
@@ -1712,7 +1712,7 @@ class k extends v {
|
|
1712
1712
|
<button
|
1713
1713
|
class="trigger-label"
|
1714
1714
|
@click=${this._toggleActive}
|
1715
|
-
${
|
1715
|
+
${Nt({
|
1716
1716
|
keyframeOptions: {},
|
1717
1717
|
in: Li,
|
1718
1718
|
stabilizeOut: !0,
|
@@ -1724,13 +1724,13 @@ class k extends v {
|
|
1724
1724
|
` : u}
|
1725
1725
|
|
1726
1726
|
<button
|
1727
|
-
class=${
|
1727
|
+
class=${Xt({
|
1728
1728
|
trigger: !0,
|
1729
1729
|
active: this.active,
|
1730
1730
|
rendered: this.loaded
|
1731
1731
|
})}
|
1732
1732
|
@click=${this._toggleActive}
|
1733
|
-
${
|
1733
|
+
${ft(this.buttonRef)}
|
1734
1734
|
>
|
1735
1735
|
${this.icon}
|
1736
1736
|
<span class="trigger-close">
|
@@ -1973,14 +1973,14 @@ function* zi(e, t) {
|
|
1973
1973
|
yield t(i, s++);
|
1974
1974
|
}
|
1975
1975
|
}
|
1976
|
-
var
|
1976
|
+
var Yt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Yt || {}), Bi = Object.defineProperty, Fi = Object.getOwnPropertyDescriptor, Wi = (e, t, s, i) => {
|
1977
1977
|
for (var n = i > 1 ? void 0 : i ? Fi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1978
1978
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1979
1979
|
return i && n && Bi(t, s, n), n;
|
1980
1980
|
};
|
1981
|
-
class
|
1981
|
+
class Kt extends v {
|
1982
1982
|
constructor() {
|
1983
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1983
|
+
super(...arguments), this.nodes = [], this.wrapperRef = ut();
|
1984
1984
|
}
|
1985
1985
|
addChild(t) {
|
1986
1986
|
t.parent = this, this.nodes.push(t);
|
@@ -2003,12 +2003,12 @@ class Qt extends v {
|
|
2003
2003
|
this.applyBranding(), this.applyStyles();
|
2004
2004
|
}
|
2005
2005
|
render() {
|
2006
|
-
return this.application.renderStrategy ===
|
2006
|
+
return this.application.renderStrategy === Yt.Trigger && this.renderRoot.host.classList.add("floating"), f`<div class="widget-container" ${ft(this.wrapperRef)}>
|
2007
2007
|
${zi(this.nodes, (t) => t)}
|
2008
2008
|
</div>`;
|
2009
2009
|
}
|
2010
2010
|
}
|
2011
|
-
|
2011
|
+
Kt.styles = _`
|
2012
2012
|
:host {
|
2013
2013
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2014
2014
|
--spacing-xs: 0.2rem;
|
@@ -2102,8 +2102,8 @@ Qt.styles = _`
|
|
2102
2102
|
`;
|
2103
2103
|
Wi([
|
2104
2104
|
$({ attribute: !1 })
|
2105
|
-
],
|
2106
|
-
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor,
|
2105
|
+
], Kt.prototype, "application", 2);
|
2106
|
+
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, Qt = (e, t, s, i) => {
|
2107
2107
|
for (var n = i > 1 ? void 0 : i ? qi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2108
2108
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2109
2109
|
return i && n && Gi(t, s, n), n;
|
@@ -2133,7 +2133,7 @@ class et extends v {
|
|
2133
2133
|
render() {
|
2134
2134
|
if (!this.widget || this.status !== "activated")
|
2135
2135
|
return u;
|
2136
|
-
if (this.widget.renderStrategy ===
|
2136
|
+
if (this.widget.renderStrategy === Yt.Trigger) {
|
2137
2137
|
const t = new k();
|
2138
2138
|
return t.application = this.widget, t;
|
2139
2139
|
}
|
@@ -2147,23 +2147,23 @@ et.styles = [
|
|
2147
2147
|
}
|
2148
2148
|
`
|
2149
2149
|
];
|
2150
|
-
|
2150
|
+
Qt([
|
2151
2151
|
$({ attribute: !0 })
|
2152
2152
|
], et.prototype, "name", 2);
|
2153
|
-
|
2153
|
+
Qt([
|
2154
2154
|
A()
|
2155
2155
|
], et.prototype, "widget", 2);
|
2156
|
-
|
2156
|
+
Qt([
|
2157
2157
|
A()
|
2158
2158
|
], et.prototype, "status", 2);
|
2159
2159
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", k);
|
2160
2160
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", es);
|
2161
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2161
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Kt);
|
2162
2162
|
customElements.get("ace-widget") || customElements.define("ace-widget", et);
|
2163
|
-
var
|
2164
|
-
for (var n = i > 1 ? void 0 : i ?
|
2163
|
+
var Xi = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, At = (e, t, s, i) => {
|
2164
|
+
for (var n = i > 1 ? void 0 : i ? Yi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2165
2165
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2166
|
-
return i && n &&
|
2166
|
+
return i && n && Xi(t, s, n), n;
|
2167
2167
|
};
|
2168
2168
|
let z = class extends v {
|
2169
2169
|
constructor() {
|
@@ -2186,7 +2186,7 @@ let z = class extends v {
|
|
2186
2186
|
(e) => f`<div class="conversation-entry" tabindex="-1">
|
2187
2187
|
<conversation-entry
|
2188
2188
|
.entry=${e}
|
2189
|
-
${
|
2189
|
+
${Nt({
|
2190
2190
|
keyframeOptions: {},
|
2191
2191
|
in: we,
|
2192
2192
|
stabilizeOut: !0,
|
@@ -2197,10 +2197,10 @@ let z = class extends v {
|
|
2197
2197
|
</div>`
|
2198
2198
|
)}
|
2199
2199
|
${this.loading ? f`<ace-typing-state
|
2200
|
-
${
|
2200
|
+
${Nt({
|
2201
2201
|
keyframeOptions: {},
|
2202
2202
|
in: we,
|
2203
|
-
out:
|
2203
|
+
out: Ri,
|
2204
2204
|
stabilizeOut: !0,
|
2205
2205
|
skipInitial: !1
|
2206
2206
|
})}
|
@@ -2221,24 +2221,24 @@ z.styles = [
|
|
2221
2221
|
}
|
2222
2222
|
`
|
2223
2223
|
];
|
2224
|
-
|
2224
|
+
At([
|
2225
2225
|
$({ type: Boolean })
|
2226
2226
|
], z.prototype, "loading", 2);
|
2227
|
-
|
2227
|
+
At([
|
2228
2228
|
$({ attribute: !1 })
|
2229
2229
|
], z.prototype, "session", 2);
|
2230
|
-
|
2230
|
+
At([
|
2231
2231
|
A()
|
2232
2232
|
], z.prototype, "entries", 2);
|
2233
|
-
z =
|
2233
|
+
z = At([
|
2234
2234
|
V("ace-conversation-session")
|
2235
2235
|
], z);
|
2236
|
-
var
|
2237
|
-
for (var n = i > 1 ? void 0 : i ?
|
2236
|
+
var Ki = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, ss = (e, t, s, i) => {
|
2237
|
+
for (var n = i > 1 ? void 0 : i ? Qi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2238
2238
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2239
|
-
return i && n &&
|
2239
|
+
return i && n && Ki(t, s, n), n;
|
2240
2240
|
};
|
2241
|
-
let
|
2241
|
+
let gt = class extends v {
|
2242
2242
|
connectedCallback() {
|
2243
2243
|
var e;
|
2244
2244
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -2258,11 +2258,11 @@ let ut = class extends v {
|
|
2258
2258
|
render() {
|
2259
2259
|
var e, t;
|
2260
2260
|
switch (this.entry.type) {
|
2261
|
-
case
|
2261
|
+
case St.System:
|
2262
2262
|
return "";
|
2263
|
-
case
|
2263
|
+
case St.Agent:
|
2264
2264
|
return f`<div
|
2265
|
-
class=${
|
2265
|
+
class=${Xt({
|
2266
2266
|
"conversation-agent-message": !0,
|
2267
2267
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
2268
2268
|
})}
|
@@ -2287,7 +2287,7 @@ let ut = class extends v {
|
|
2287
2287
|
this.entry.timestamp
|
2288
2288
|
)}
|
2289
2289
|
</div>`;
|
2290
|
-
case
|
2290
|
+
case St.User:
|
2291
2291
|
return f`<div class="conversation-user-message">
|
2292
2292
|
<div class="entry-content">
|
2293
2293
|
${this.entry.messages.map(
|
@@ -2310,7 +2310,7 @@ let ut = class extends v {
|
|
2310
2310
|
}
|
2311
2311
|
}
|
2312
2312
|
};
|
2313
|
-
|
2313
|
+
gt.styles = [
|
2314
2314
|
_`
|
2315
2315
|
:host {
|
2316
2316
|
box-sizing: border-box;
|
@@ -2397,16 +2397,16 @@ ut.styles = [
|
|
2397
2397
|
];
|
2398
2398
|
ss([
|
2399
2399
|
$({ attribute: !1 })
|
2400
|
-
],
|
2401
|
-
|
2400
|
+
], gt.prototype, "entry", 2);
|
2401
|
+
gt = ss([
|
2402
2402
|
V("conversation-entry")
|
2403
|
-
],
|
2403
|
+
], gt);
|
2404
2404
|
var Zi = Object.defineProperty, Ji = Object.getOwnPropertyDescriptor, is = (e, t, s, i) => {
|
2405
2405
|
for (var n = i > 1 ? void 0 : i ? Ji(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2406
2406
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2407
2407
|
return i && n && Zi(t, s, n), n;
|
2408
2408
|
};
|
2409
|
-
let
|
2409
|
+
let $t = class extends v {
|
2410
2410
|
render() {
|
2411
2411
|
return f`
|
2412
2412
|
<div class="message-group">
|
@@ -2421,7 +2421,7 @@ let ft = class extends v {
|
|
2421
2421
|
`;
|
2422
2422
|
}
|
2423
2423
|
};
|
2424
|
-
|
2424
|
+
$t.styles = [
|
2425
2425
|
_`
|
2426
2426
|
:host {
|
2427
2427
|
box-sizing: border-box;
|
@@ -2439,16 +2439,16 @@ ft.styles = [
|
|
2439
2439
|
];
|
2440
2440
|
is([
|
2441
2441
|
$({ attribute: !1 })
|
2442
|
-
],
|
2443
|
-
|
2442
|
+
], $t.prototype, "group", 2);
|
2443
|
+
$t = is([
|
2444
2444
|
V("conversation-group")
|
2445
|
-
],
|
2445
|
+
], $t);
|
2446
2446
|
var Vi = Object.defineProperty, tn = Object.getOwnPropertyDescriptor, en = (e, t, s, i) => {
|
2447
2447
|
for (var n = i > 1 ? void 0 : i ? tn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2448
2448
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2449
2449
|
return i && n && Vi(t, s, n), n;
|
2450
2450
|
};
|
2451
|
-
let
|
2451
|
+
let Mt = class extends v {
|
2452
2452
|
render() {
|
2453
2453
|
return f`<div class="container">
|
2454
2454
|
<div class="dot"></div>
|
@@ -2457,7 +2457,7 @@ let Ht = class extends v {
|
|
2457
2457
|
</div>`;
|
2458
2458
|
}
|
2459
2459
|
};
|
2460
|
-
|
2460
|
+
Mt.styles = [
|
2461
2461
|
_`
|
2462
2462
|
:host {
|
2463
2463
|
display: block;
|
@@ -2494,17 +2494,17 @@ Ht.styles = [
|
|
2494
2494
|
}
|
2495
2495
|
`
|
2496
2496
|
];
|
2497
|
-
|
2497
|
+
Mt = en([
|
2498
2498
|
V("ace-typing-state")
|
2499
|
-
],
|
2499
|
+
], Mt);
|
2500
2500
|
/**
|
2501
2501
|
* @license
|
2502
2502
|
* Copyright 2017 Google LLC
|
2503
2503
|
* SPDX-License-Identifier: BSD-3-Clause
|
2504
2504
|
*/
|
2505
|
-
class
|
2505
|
+
class jt extends qt {
|
2506
2506
|
constructor(t) {
|
2507
|
-
if (super(t), this.et = u, t.type !==
|
2507
|
+
if (super(t), this.et = u, t.type !== xt.CHILD)
|
2508
2508
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
2509
2509
|
}
|
2510
2510
|
render(t) {
|
@@ -2521,21 +2521,21 @@ class Nt extends Wt {
|
|
2521
2521
|
return s.raw = s, this.vt = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
2522
2522
|
}
|
2523
2523
|
}
|
2524
|
-
|
2525
|
-
const sn =
|
2524
|
+
jt.directiveName = "unsafeHTML", jt.resultType = 1;
|
2525
|
+
const sn = wt(jt);
|
2526
2526
|
var nn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, ns = (e, t, s, i) => {
|
2527
2527
|
for (var n = i > 1 ? void 0 : i ? rn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2528
2528
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2529
2529
|
return i && n && nn(t, s, n), n;
|
2530
2530
|
};
|
2531
|
-
let
|
2531
|
+
let mt = class extends v {
|
2532
2532
|
render() {
|
2533
2533
|
return f`<div class="message-type-html">
|
2534
2534
|
${sn(this.message.content)}
|
2535
2535
|
</div>`;
|
2536
2536
|
}
|
2537
2537
|
};
|
2538
|
-
|
2538
|
+
mt.styles = [
|
2539
2539
|
_`
|
2540
2540
|
:host {
|
2541
2541
|
box-sizing: border-box;
|
@@ -2552,10 +2552,10 @@ gt.styles = [
|
|
2552
2552
|
];
|
2553
2553
|
ns([
|
2554
2554
|
$({ attribute: !1 })
|
2555
|
-
],
|
2556
|
-
|
2555
|
+
], mt.prototype, "message", 2);
|
2556
|
+
mt = ns([
|
2557
2557
|
V("message-type-html")
|
2558
|
-
],
|
2558
|
+
], mt);
|
2559
2559
|
var on = Object.defineProperty, an = Object.getOwnPropertyDescriptor, Zt = (e, t, s, i) => {
|
2560
2560
|
for (var n = i > 1 ? void 0 : i ? an(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2561
2561
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
@@ -2566,7 +2566,7 @@ const ln = (e) => {
|
|
2566
2566
|
}, rs = ts(v);
|
2567
2567
|
class B extends rs {
|
2568
2568
|
constructor() {
|
2569
|
-
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef =
|
2569
|
+
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = ut(), this.formRef = ut(), this.chatScrollHeight = 0;
|
2570
2570
|
}
|
2571
2571
|
async connectedCallback() {
|
2572
2572
|
super.connectedCallback();
|
@@ -2576,7 +2576,14 @@ class B extends rs {
|
|
2576
2576
|
this.platform = t || null, this.platform && (this.platform.activeSessionId ? this.session = this.platform.sessions.get(this.platform.activeSessionId) || null : this.session = this.platform.createSession(this) || null);
|
2577
2577
|
}
|
2578
2578
|
async _onSendMessage(t) {
|
2579
|
-
|
2579
|
+
var i;
|
2580
|
+
if (t.preventDefault(), this.message.length <= 0) {
|
2581
|
+
(i = this.formRef.value) == null || i.classList.add("shake"), setTimeout(() => {
|
2582
|
+
var n;
|
2583
|
+
(n = this.formRef.value) == null || n.classList.remove("shake");
|
2584
|
+
}, 500);
|
2585
|
+
return;
|
2586
|
+
}
|
2580
2587
|
const s = new CustomEvent("user-submit", {
|
2581
2588
|
detail: { text: this.message }
|
2582
2589
|
});
|
@@ -2597,18 +2604,22 @@ class B extends rs {
|
|
2597
2604
|
render() {
|
2598
2605
|
return f` <div
|
2599
2606
|
@action=${this._actionHandler}
|
2600
|
-
class=${
|
2607
|
+
class=${Xt({
|
2601
2608
|
conversation: !0,
|
2602
2609
|
"input-has-text": this.message.length > 0
|
2603
2610
|
})}
|
2604
2611
|
>
|
2605
|
-
<div class="conversation-content" ${
|
2612
|
+
<div class="conversation-content" ${ft(this.conversationContentRef)}>
|
2606
2613
|
${this.session ? f`<ace-conversation-session
|
2607
2614
|
@updated=${this.onSessionUpdated}
|
2608
2615
|
.session=${this.session}
|
2609
2616
|
></ace-conversation-session>` : u}
|
2610
2617
|
</div>
|
2611
|
-
<form
|
2618
|
+
<form
|
2619
|
+
class="conversation-bottom"
|
2620
|
+
@submit=${this._onSendMessage}
|
2621
|
+
${ft(this.formRef)}
|
2622
|
+
>
|
2612
2623
|
<input
|
2613
2624
|
placeholder=${this.properties.inputPlaceholder || "Type your message here..."}
|
2614
2625
|
.value=${this.message}
|
@@ -2675,6 +2686,26 @@ B.styles = [
|
|
2675
2686
|
background-color: transparent;
|
2676
2687
|
}
|
2677
2688
|
|
2689
|
+
@keyframes shake {
|
2690
|
+
10%,
|
2691
|
+
90% {
|
2692
|
+
transform: translateX(1px);
|
2693
|
+
}
|
2694
|
+
20%,
|
2695
|
+
80% {
|
2696
|
+
transform: translateX(-1px);
|
2697
|
+
}
|
2698
|
+
30%,
|
2699
|
+
50%,
|
2700
|
+
70% {
|
2701
|
+
transform: translateX(2px);
|
2702
|
+
}
|
2703
|
+
40%,
|
2704
|
+
60% {
|
2705
|
+
transform: translateX(-2px);
|
2706
|
+
}
|
2707
|
+
}
|
2708
|
+
|
2678
2709
|
.conversation {
|
2679
2710
|
display: grid;
|
2680
2711
|
grid-template-rows: 1fr auto;
|
@@ -2706,6 +2737,10 @@ B.styles = [
|
|
2706
2737
|
padding: 0 var(--spacing-md);
|
2707
2738
|
margin: 0;
|
2708
2739
|
}
|
2740
|
+
.conversation-bottom.shake {
|
2741
|
+
animation: 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0s 1 normal both
|
2742
|
+
running shake;
|
2743
|
+
}
|
2709
2744
|
.conversation-bottom-left {
|
2710
2745
|
border-right: 1px solid var(--gray-color);
|
2711
2746
|
padding-right: var(--spacing-md);
|