@telia-ace/widget-conversation-flamingo 1.1.28-rc.0 → 1.1.28-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-e5c4f286.mjs → conversation-61c3428d.mjs} +553 -501
- package/{conversation-9a7c235d.js → conversation-b67f7f61.js} +128 -81
- package/{index-91f20257.js → index-364c669e.js} +1 -1
- package/{index-dac2e292.js → index-3cb7e10e.js} +1 -1
- package/{index-becf5ea8.mjs → index-6f7ce259.mjs} +1 -1
- package/{index-3d874c26.mjs → index-7612a1fb.mjs} +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -1,22 +1,22 @@
|
|
1
|
-
import { C as wt } from "./index-
|
1
|
+
import { C as wt } from "./index-6f7ce259.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,
|
8
|
-
let
|
7
|
+
const rt = globalThis, Mt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, jt = Symbol(), Jt = /* @__PURE__ */ new WeakMap();
|
8
|
+
let ke = class {
|
9
9
|
constructor(t, s, i) {
|
10
|
-
if (this._$cssResult$ = !0, i !==
|
10
|
+
if (this._$cssResult$ = !0, i !== jt)
|
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 (Mt && t === void 0) {
|
18
18
|
const i = s !== void 0 && s.length === 1;
|
19
|
-
i && (t =
|
19
|
+
i && (t = Jt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Jt.set(s, t));
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
}
|
@@ -24,7 +24,7 @@ let Te = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const os = (e) => new
|
27
|
+
const os = (e) => new ke(typeof e == "string" ? e : e + "", void 0, jt), _ = (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 Te(typeof e == "string" ? e : e + "", void 0, Mt), _ = (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
|
35
|
+
return new ke(s, e, jt);
|
36
36
|
}, as = (e, t) => {
|
37
|
-
if (
|
37
|
+
if (Mt)
|
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
|
-
},
|
44
|
+
}, Vt = Mt ? (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 Te(typeof e == "string" ? e : e + "", void 0, Mt), _ = (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,
|
55
|
+
const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnPropertyNames: hs, getOwnPropertySymbols: ps, getPrototypeOf: us } = Object, E = globalThis, te = E.trustedTypes, fs = te ? te.emptyScript : "", At = 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,7 +80,7 @@ const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return s;
|
83
|
-
} },
|
83
|
+
} }, Dt = (e, t) => !ls(e, t), ee = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: Dt };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
85
|
let R = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
@@ -89,7 +89,7 @@ let R = class extends HTMLElement {
|
|
89
89
|
static get observedAttributes() {
|
90
90
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
91
91
|
}
|
92
|
-
static createProperty(t, s =
|
92
|
+
static createProperty(t, s = ee) {
|
93
93
|
if (s.state && (s.attribute = !1), this._$Ei(), this.elementProperties.set(t, s), !s.noAccessor) {
|
94
94
|
const i = Symbol(), n = this.getPropertyDescriptor(t, i, s);
|
95
95
|
n !== void 0 && cs(this.prototype, t, n);
|
@@ -109,7 +109,7 @@ let R = class extends HTMLElement {
|
|
109
109
|
}, configurable: !0, enumerable: !0 };
|
110
110
|
}
|
111
111
|
static getPropertyOptions(t) {
|
112
|
-
return this.elementProperties.get(t) ??
|
112
|
+
return this.elementProperties.get(t) ?? ee;
|
113
113
|
}
|
114
114
|
static _$Ei() {
|
115
115
|
if (this.hasOwnProperty(W("elementProperties")))
|
@@ -144,9 +144,9 @@ let R = class extends HTMLElement {
|
|
144
144
|
if (Array.isArray(t)) {
|
145
145
|
const i = new Set(t.flat(1 / 0).reverse());
|
146
146
|
for (const n of i)
|
147
|
-
s.unshift(
|
147
|
+
s.unshift(Vt(n));
|
148
148
|
} else
|
149
|
-
t !== void 0 && s.push(
|
149
|
+
t !== void 0 && s.push(Vt(t));
|
150
150
|
return s;
|
151
151
|
}
|
152
152
|
static _$Eu(t, s) {
|
@@ -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 ?? Dt)(n ? r : this[t], s))
|
219
219
|
return;
|
220
220
|
this.C(t, s, i);
|
221
221
|
}
|
@@ -299,13 +299,13 @@ 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,
|
303
|
-
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
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, 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
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ie = /-->/g, ne = />/g, T = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
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
305
|
function Ue(e, t) {
|
306
306
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
308
|
-
return
|
308
|
+
return se !== void 0 ? se.createHTML(t) : t;
|
309
309
|
}
|
310
310
|
const vs = (e, t) => {
|
311
311
|
const s = e.length - 1, i = [];
|
@@ -314,9 +314,9 @@ const vs = (e, t) => {
|
|
314
314
|
const l = e[a];
|
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
|
-
p = o.lastIndex, o === F ? d[1] === "!--" ? o =
|
318
|
-
const
|
319
|
-
r += o === F ? l +
|
317
|
+
p = o.lastIndex, o === F ? d[1] === "!--" ? o = ie : d[1] !== void 0 ? o = ne : d[2] !== void 0 ? (Le.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = T) : d[3] !== void 0 && (o = T) : o === T ? 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 ? T : d[3] === '"' ? oe : re) : o === oe || o === re ? o = T : o === ie || o === ne ? o = F : (o = T, n = void 0);
|
318
|
+
const g = o === T && e[a + 1].startsWith("/>") ? " " : "";
|
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
321
|
return [Ue(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
@@ -334,17 +334,17 @@ class Q {
|
|
334
334
|
if (n.nodeType === 1) {
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const h of n.getAttributeNames())
|
337
|
-
if (h.endsWith(
|
338
|
-
const p = d[o++],
|
339
|
-
l.push({ type: 1, index: r, name: x[2], strings:
|
337
|
+
if (h.endsWith(Te)) {
|
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
|
}
|
@@ -389,7 +389,7 @@ class ys {
|
|
389
389
|
for (; l !== void 0; ) {
|
390
390
|
if (o === l.index) {
|
391
391
|
let c;
|
392
|
-
l.type === 2 ? c = new
|
392
|
+
l.type === 2 ? c = new Z(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new ws(r, this, t)), this._$AV.push(c), l = i[++a];
|
393
393
|
}
|
394
394
|
o !== (l == null ? void 0 : l.index) && (r = P.nextNode(), o++);
|
395
395
|
}
|
@@ -401,7 +401,7 @@ class ys {
|
|
401
401
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
|
402
402
|
}
|
403
403
|
}
|
404
|
-
class
|
404
|
+
class Z {
|
405
405
|
get _$AU() {
|
406
406
|
var t;
|
407
407
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -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);
|
@@ -443,15 +443,15 @@ class X {
|
|
443
443
|
}
|
444
444
|
}
|
445
445
|
_$AC(t) {
|
446
|
-
let s =
|
447
|
-
return s === void 0 &&
|
446
|
+
let s = ae.get(t.strings);
|
447
|
+
return s === void 0 && ae.set(t.strings, s = new Q(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
|
454
|
+
n === s.length ? s.push(i = new Z(this.k(Y()), this.k(Y()), 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 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
|
}
|
@@ -536,13 +536,13 @@ class ws {
|
|
536
536
|
}
|
537
537
|
}
|
538
538
|
const Et = G.litHtmlPolyfillSupport;
|
539
|
-
Et == null || Et(Q,
|
539
|
+
Et == null || Et(Q, 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
|
545
|
+
i._$litPart$ = n = new Z(t.insertBefore(Y(), r), r, void 0, s ?? {});
|
546
546
|
}
|
547
547
|
return n._$AI(e), n;
|
548
548
|
};
|
@@ -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, It = !1, y = !1, le = 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$: "",
|
@@ -686,7 +686,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
686
686
|
} catch {
|
687
687
|
}
|
688
688
|
return e;
|
689
|
-
})(), Cs = (e) => Promise.resolve(e),
|
689
|
+
})(), Cs = (e) => Promise.resolve(e), ks = /* @__PURE__ */ (() => {
|
690
690
|
try {
|
691
691
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
692
692
|
} catch {
|
@@ -694,40 +694,40 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
694
694
|
return !1;
|
695
695
|
})(), Me = (e, t, s, i) => {
|
696
696
|
s && s.map(([n, r, o]) => {
|
697
|
-
const a = Os(e, n), l =
|
697
|
+
const a = Os(e, n), l = Ts(t, o), c = Ps(n);
|
698
698
|
m.ael(a, r, l, c), (t.$rmListeners$ = t.$rmListeners$ || []).push(() => m.rel(a, r, l, c));
|
699
699
|
});
|
700
|
-
},
|
700
|
+
}, Ts = (e, t) => (s) => {
|
701
701
|
try {
|
702
|
-
|
702
|
+
H.lazyLoad || e.$hostElement$[t](s);
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
706
706
|
}, Os = (e, t) => t & 4 ? w : t & 8 ? vt : t & 16 ? w.body : e, Ps = (e) => Es ? {
|
707
707
|
passive: (e & 1) !== 0,
|
708
708
|
capture: (e & 2) !== 0
|
709
|
-
} : (e & 2) !== 0,
|
710
|
-
},
|
709
|
+
} : (e & 2) !== 0, ce = "http://www.w3.org/1999/xlink", U = (e, t = "") => () => {
|
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
|
}, Us = (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") {
|
717
717
|
e = e.head || e;
|
718
|
-
let o =
|
719
|
-
o ||
|
718
|
+
let o = de.get(e), a;
|
719
|
+
o || de.set(e, o = /* @__PURE__ */ new Set()), o.has(n) || (a = w.createElement("style"), a.innerHTML = r, e.insertBefore(a, e.querySelector("link")), o && o.add(n));
|
720
720
|
} else
|
721
721
|
e.adoptedStyleSheets.includes(r) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, r]);
|
722
722
|
return n;
|
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), he = {}, Ns = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xhtml", js = (e) => e != null, zt = (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" && !zt(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);
|
@@ -750,27 +750,27 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
750
750
|
};
|
751
751
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
752
752
|
}, Bt = {}, Ds = (e) => e && e.$tag$ === Bt, Is = {
|
753
|
-
forEach: (e, t) => e.map(
|
754
|
-
map: (e, t) => e.map(
|
755
|
-
},
|
753
|
+
forEach: (e, t) => e.map(pe).forEach(t),
|
754
|
+
map: (e, t) => e.map(pe).map(t).map(zs)
|
755
|
+
}, pe = (e) => ({
|
756
756
|
vattrs: e.$attrs$,
|
757
757
|
vchildren: e.$children$,
|
758
758
|
vkey: e.$key$,
|
759
759
|
vname: e.$name$,
|
760
760
|
vtag: e.$tag$,
|
761
761
|
vtext: e.$text$
|
762
|
-
}),
|
762
|
+
}), zs = (e) => {
|
763
763
|
if (typeof e.vtag == "function") {
|
764
764
|
const s = Object.assign({}, e.vattrs);
|
765
765
|
return e.vkey && (s.key = e.vkey), e.vname && (s.name = e.vname), j(e.vtag, s, ...e.vchildren || []);
|
766
766
|
}
|
767
767
|
const t = ct(e.vtag, e.vtext);
|
768
768
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
769
|
-
},
|
769
|
+
}, ue = (e, t, s, i, n, r) => {
|
770
770
|
if (s !== i) {
|
771
|
-
let o =
|
771
|
+
let o = me(e, t), a = t.toLowerCase();
|
772
772
|
if (t === "class") {
|
773
|
-
const l = e.classList, c =
|
773
|
+
const l = e.classList, c = fe(s), d = fe(i);
|
774
774
|
l.remove(...c.filter((h) => h && !d.includes(h))), l.add(...d.filter((h) => h && !c.includes(h)));
|
775
775
|
} else if (t === "style") {
|
776
776
|
for (const l in s)
|
@@ -781,9 +781,9 @@ 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) : me(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
|
-
const l =
|
786
|
+
const l = zt(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
788
788
|
try {
|
789
789
|
if (e.tagName.includes("-"))
|
@@ -795,18 +795,18 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
795
795
|
} catch {
|
796
796
|
}
|
797
797
|
let c = !1;
|
798
|
-
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 || e.getAttribute(t) === "") && (c ? e.removeAttributeNS(
|
798
|
+
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 || e.getAttribute(t) === "") && (c ? e.removeAttributeNS(ce, t) : e.removeAttribute(t)) : (!o || r & 4 || n) && !l && (i = i === !0 ? "" : i, c ? e.setAttributeNS(ce, t, i) : e.setAttribute(t, i));
|
799
799
|
}
|
800
800
|
}
|
801
|
-
},
|
802
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ ||
|
801
|
+
}, Bs = /\s/, fe = (e) => e ? e.split(Bs) : [], De = (e, t, s, i) => {
|
802
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || he, o = t.$attrs$ || he;
|
803
803
|
for (i in r)
|
804
|
-
i in o ||
|
804
|
+
i in o || ue(n, i, r[i], void 0, s, t.$flags$);
|
805
805
|
for (i in o)
|
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 (
|
809
|
+
if (He || (It = !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,29 +817,29 @@ 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);
|
824
824
|
}
|
825
|
-
return o["s-hn"] = mt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Re, o["s-sn"] = n.$name$ || "", l = e && e.$children$ && e.$children$[s], l && l.$tag$ === n.$tag$ && e.$elm$ &&
|
826
|
-
},
|
825
|
+
return o["s-hn"] = mt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Re, o["s-sn"] = n.$name$ || "", l = e && e.$children$ && e.$children$[s], l && l.$tag$ === n.$tag$ && e.$elm$ && X(e.$elm$, !1)), o;
|
826
|
+
}, X = (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"] !== mt && n["s-ol"] && (
|
831
|
+
n["s-hn"] !== mt && n["s-ol"] && (Be(n).insertBefore(n, Ft(n)), n["s-ol"].remove(), n["s-ol"] = void 0, It = !0), t && X(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
836
|
for (o.shadowRoot && o.tagName === mt && (o = o.shadowRoot); n <= r; ++n)
|
837
|
-
i[n] && (a = dt(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a,
|
838
|
-
},
|
837
|
+
i[n] && (a = dt(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a, Ft(t))));
|
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() : X(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,29 +847,29 @@ 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") && X(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") && X(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 &&
|
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, Ft(c.$elm$));
|
867
867
|
}
|
868
|
-
n > l ? Ie(e, i[h + 1] == null ? null : i[h + 1].$elm$, s, i, r, h) : r > h &&
|
869
|
-
}, it = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1,
|
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, Ft = (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
|
-
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 &&
|
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);
|
873
873
|
}, Fe = (e) => {
|
874
874
|
let t = e.childNodes, s, i, n, r, o, a;
|
875
875
|
for (i = 0, n = t.length; i < n; i++)
|
@@ -893,23 +893,23 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
893
893
|
for (; a < c; a++) {
|
894
894
|
if (t = l[a], t["s-sr"] && (s = t["s-cr"]) && s.parentNode)
|
895
895
|
for (i = s.parentNode.childNodes, n = t["s-sn"], o = i.length - 1; o >= 0; o--)
|
896
|
-
s = i[o], !s["s-cn"] && !s["s-nr"] && s["s-hn"] !== t["s-hn"] && (
|
896
|
+
s = i[o], !s["s-cn"] && !s["s-nr"] && s["s-hn"] !== t["s-hn"] && (ge(s, n) ? (r = b.find((d) => d.$nodeToRelocate$ === s), lt = !0, s["s-sn"] = s["s-sn"] || n, r ? r.$slotRefNode$ = t : b.push({
|
897
897
|
$slotRefNode$: t,
|
898
898
|
$nodeToRelocate$: s
|
899
899
|
}), s["s-sr"] && b.map((d) => {
|
900
|
-
|
900
|
+
ge(d.$nodeToRelocate$, s["s-sn"]) && (r = b.find((h) => h.$nodeToRelocate$ === s), r && !d.$slotRefNode$ && (d.$slotRefNode$ = r.$slotRefNode$));
|
901
901
|
})) : b.some((d) => d.$nodeToRelocate$ === s) || b.push({
|
902
902
|
$nodeToRelocate$: s
|
903
903
|
}));
|
904
904
|
t.nodeType === 1 && We(t);
|
905
905
|
}
|
906
|
-
},
|
906
|
+
}, ge = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ge = (e) => {
|
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
|
-
if (m.$flags$ |= 1,
|
912
|
+
if (m.$flags$ |= 1, It) {
|
913
913
|
We(r.$elm$);
|
914
914
|
let o, a, l, c, d, h, p = 0;
|
915
915
|
for (; p < b.length; p++)
|
@@ -944,19 +944,19 @@ 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 = $e(r, () => D(n, "componentWillRender")), i(), $e(r, () =>
|
948
|
-
},
|
947
|
+
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = $e(r, () => D(n, "componentWillRender")), i(), $e(r, () => Xs(e, n, t));
|
948
|
+
}, Xs = async (e, t, s) => {
|
949
949
|
const i = e.$hostElement$, n = U("update", e.$cmpMeta$.$tagName$);
|
950
950
|
i["s-rc"], s && Rs(e);
|
951
951
|
const r = U("render", e.$cmpMeta$.$tagName$);
|
952
|
-
|
953
|
-
},
|
952
|
+
Zs(e, t, i), r(), n(), Js(e);
|
953
|
+
}, Zs = (e, t, s) => {
|
954
954
|
try {
|
955
|
-
|
955
|
+
le = 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
|
}
|
959
|
-
return
|
959
|
+
return le = null, null;
|
960
960
|
}, Js = (e) => {
|
961
961
|
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i = U("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());
|
@@ -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
|
-
}, $e = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !
|
970
|
+
}, $e = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !zt(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,9 +1090,9 @@ 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
|
+
}, me = (e, t) => t in e, J = (e, t) => (0, console.error)(e, t), ht = /* @__PURE__ */ new Map(), ci = [], ve = [], Qe = [], di = (e, t) => (s) => {
|
1094
1094
|
e.push(s), Pt || (Pt = !0, t && m.$flags$ & 4 ? hi(Lt) : m.raf(Lt));
|
1095
|
-
},
|
1095
|
+
}, ye = (e) => {
|
1096
1096
|
for (let t = 0; t < e.length; t++)
|
1097
1097
|
try {
|
1098
1098
|
e[t](performance.now());
|
@@ -1101,7 +1101,7 @@ const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, H
|
|
1101
1101
|
}
|
1102
1102
|
e.length = 0;
|
1103
1103
|
}, Lt = () => {
|
1104
|
-
ve
|
1104
|
+
ye(ve), ye(Qe), (Pt = ve.length > 0) && m.raf(Lt);
|
1105
1105
|
}, hi = (e) => Cs().then(e), pi = /* @__PURE__ */ di(Qe, !0), ui = (e = {}) => {
|
1106
1106
|
const { content: t = "", title: s, attributes: i = [] } = e;
|
1107
1107
|
let n = "", r = [
|
@@ -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);
|
@@ -1135,7 +1135,7 @@ const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Ye(class extends He {
|
|
1135
1135
|
}, [0, "telia-vst", {
|
1136
1136
|
dataTrackingId: [1, "data-tracking-id"]
|
1137
1137
|
}]);
|
1138
|
-
function
|
1138
|
+
function Xe() {
|
1139
1139
|
if (typeof customElements > "u")
|
1140
1140
|
return;
|
1141
1141
|
["telia-vst"].forEach((t) => {
|
@@ -1146,7 +1146,7 @@ function Ze() {
|
|
1146
1146
|
}
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
|
-
|
1149
|
+
Xe();
|
1150
1150
|
function Ut() {
|
1151
1151
|
return typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : { vocadsIcons: void 0, vocadsIconsRegistered: !1 };
|
1152
1152
|
}
|
@@ -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
|
}
|
@@ -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) || Xe();
|
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: Dt }, 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") {
|
@@ -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
|
@@ -1275,7 +1275,7 @@ const Ei = (e) => e.strings === void 0;
|
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
1277
|
const bt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, _t = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
1278
|
-
let
|
1278
|
+
let Wt = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
1281
1281
|
get _$AU() {
|
@@ -1311,20 +1311,20 @@ const q = (e, t) => {
|
|
1311
1311
|
break;
|
1312
1312
|
s = t._$AN, s.delete(e), e = t;
|
1313
1313
|
} while ((s == null ? void 0 : s.size) === 0);
|
1314
|
-
},
|
1314
|
+
}, Ze = (e) => {
|
1315
1315
|
for (let t; t = e._$AM; e = t) {
|
1316
1316
|
let s = t._$AN;
|
1317
1317
|
if (s === void 0)
|
1318
1318
|
t._$AN = s = /* @__PURE__ */ new Set();
|
1319
1319
|
else if (s.has(e))
|
1320
1320
|
break;
|
1321
|
-
s.add(e),
|
1321
|
+
s.add(e), Ti(t);
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
1324
|
function Ci(e) {
|
1325
|
-
this._$AN !== void 0 ? (pt(this), this._$AM = e,
|
1325
|
+
this._$AN !== void 0 ? (pt(this), this._$AM = e, Ze(this)) : this._$AM = e;
|
1326
1326
|
}
|
1327
|
-
function
|
1327
|
+
function ki(e, t = !1, s = 0) {
|
1328
1328
|
const i = this._$AH, n = this._$AN;
|
1329
1329
|
if (n !== void 0 && n.size !== 0)
|
1330
1330
|
if (t)
|
@@ -1336,15 +1336,15 @@ function Ti(e, t = !1, s = 0) {
|
|
1336
1336
|
else
|
1337
1337
|
q(this, e);
|
1338
1338
|
}
|
1339
|
-
const
|
1340
|
-
e.type == bt.CHILD && (e._$AP ?? (e._$AP =
|
1339
|
+
const Ti = (e) => {
|
1340
|
+
e.type == bt.CHILD && (e._$AP ?? (e._$AP = ki), e._$AQ ?? (e._$AQ = Ci));
|
1341
1341
|
};
|
1342
|
-
let Je = class extends
|
1342
|
+
let Je = class extends Wt {
|
1343
1343
|
constructor() {
|
1344
1344
|
super(...arguments), this._$AN = void 0;
|
1345
1345
|
}
|
1346
1346
|
_$AT(t, s, i) {
|
1347
|
-
super._$AT(t, s, i),
|
1347
|
+
super._$AT(t, s, i), Ze(this), this.isConnected = t._$AU;
|
1348
1348
|
}
|
1349
1349
|
_$AO(t, s = !0) {
|
1350
1350
|
var i, n;
|
@@ -1368,10 +1368,10 @@ let Je = class extends Ft {
|
|
1368
1368
|
* Copyright 2020 Google LLC
|
1369
1369
|
* SPDX-License-Identifier: BSD-3-Clause
|
1370
1370
|
*/
|
1371
|
-
const
|
1371
|
+
const Gt = () => new Oi();
|
1372
1372
|
class Oi {
|
1373
1373
|
}
|
1374
|
-
const
|
1374
|
+
const kt = /* @__PURE__ */ new WeakMap(), qt = _t(class extends Je {
|
1375
1375
|
render(e) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1383,14 +1383,14 @@ const Tt = /* @__PURE__ */ new WeakMap(), Gt = _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 = kt.get(t);
|
1387
|
+
s === void 0 && (s = /* @__PURE__ */ new WeakMap(), kt.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 = kt.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,7 +1404,7 @@ const Tt = /* @__PURE__ */ new WeakMap(), Gt = _t(class extends Je {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const
|
1407
|
+
const Yt = _t(class extends Wt {
|
1408
1408
|
constructor(e) {
|
1409
1409
|
var t;
|
1410
1410
|
if (super(e), e.type !== bt.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2)
|
@@ -1430,7 +1430,211 @@ const qt = _t(class extends Ft {
|
|
1430
1430
|
}
|
1431
1431
|
return C;
|
1432
1432
|
}
|
1433
|
-
}),
|
1433
|
+
}), Pi = /* @__PURE__ */ new WeakMap();
|
1434
|
+
let be = 0;
|
1435
|
+
const Tt = /* @__PURE__ */ new Map(), _e = /* @__PURE__ */ new WeakSet(), xe = () => new Promise((e) => requestAnimationFrame(e)), Li = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Ui = [{ opacity: 0 }], we = [{ opacity: 0 }, { opacity: 1 }], Ae = (e, t) => {
|
1436
|
+
const s = e - t;
|
1437
|
+
return s === 0 ? void 0 : s;
|
1438
|
+
}, Se = (e, t) => {
|
1439
|
+
const s = e / t;
|
1440
|
+
return s === 1 ? void 0 : s;
|
1441
|
+
}, Ot = { left: (e, t) => {
|
1442
|
+
const s = Ae(e, t);
|
1443
|
+
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1444
|
+
}, top: (e, t) => {
|
1445
|
+
const s = Ae(e, t);
|
1446
|
+
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
1447
|
+
}, width: (e, t) => {
|
1448
|
+
let s;
|
1449
|
+
t === 0 && (t = 1, s = { width: "1px" });
|
1450
|
+
const i = Se(e, t);
|
1451
|
+
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1452
|
+
}, height: (e, t) => {
|
1453
|
+
let s;
|
1454
|
+
t === 0 && (t = 1, s = { height: "1px" });
|
1455
|
+
const i = Se(e, t);
|
1456
|
+
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1457
|
+
} }, Ri = { duration: 333, easing: "ease-in-out" }, Hi = ["left", "top", "width", "height", "opacity", "color", "background"], Ee = /* @__PURE__ */ new WeakMap();
|
1458
|
+
class Ni extends Je {
|
1459
|
+
constructor(t) {
|
1460
|
+
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === bt.CHILD)
|
1461
|
+
throw Error("The `animate` directive must be used in attribute position.");
|
1462
|
+
this.createFinished();
|
1463
|
+
}
|
1464
|
+
createFinished() {
|
1465
|
+
var t;
|
1466
|
+
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((s) => {
|
1467
|
+
this.h = s;
|
1468
|
+
});
|
1469
|
+
}
|
1470
|
+
async resolveFinished() {
|
1471
|
+
var t;
|
1472
|
+
(t = this.h) == null || t.call(this), this.h = void 0;
|
1473
|
+
}
|
1474
|
+
render(t) {
|
1475
|
+
return u;
|
1476
|
+
}
|
1477
|
+
getController() {
|
1478
|
+
return Pi.get(this.l);
|
1479
|
+
}
|
1480
|
+
isDisabled() {
|
1481
|
+
var t;
|
1482
|
+
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1483
|
+
}
|
1484
|
+
update(t, [s]) {
|
1485
|
+
var n;
|
1486
|
+
const i = this.l === void 0;
|
1487
|
+
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element, Ee.set(this.element, this)), this.optionsOrCallback = s, (i || typeof s != "function") && this.u(s), this.render(s);
|
1488
|
+
}
|
1489
|
+
u(t) {
|
1490
|
+
t = t ?? {};
|
1491
|
+
const s = this.getController();
|
1492
|
+
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Hi), this.options = t;
|
1493
|
+
}
|
1494
|
+
p() {
|
1495
|
+
const t = {}, s = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1496
|
+
return this.options.properties.forEach((n) => {
|
1497
|
+
const r = s[n] ?? (Ot[n] ? void 0 : i[n]), o = Number(r);
|
1498
|
+
t[n] = isNaN(o) ? r + "" : o;
|
1499
|
+
}), t;
|
1500
|
+
}
|
1501
|
+
m() {
|
1502
|
+
let t, s = !0;
|
1503
|
+
return this.options.guard && (t = this.options.guard(), s = ((i, n) => {
|
1504
|
+
if (Array.isArray(i)) {
|
1505
|
+
if (Array.isArray(n) && n.length === i.length && i.every((r, o) => r === n[o]))
|
1506
|
+
return !1;
|
1507
|
+
} else if (n === i)
|
1508
|
+
return !1;
|
1509
|
+
return !0;
|
1510
|
+
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() && s && this.element.isConnected, this.o && (this.v = Array.isArray(t) ? Array.from(t) : t), this.o;
|
1511
|
+
}
|
1512
|
+
hostUpdate() {
|
1513
|
+
typeof this.optionsOrCallback == "function" && this.u(this.optionsOrCallback()), this.m() && (this.g = this.p(), this.t = this.t ?? this.element.parentNode, this.i = this.element.nextSibling);
|
1514
|
+
}
|
1515
|
+
async hostUpdated() {
|
1516
|
+
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1517
|
+
return;
|
1518
|
+
let t;
|
1519
|
+
this.prepare(), await xe;
|
1520
|
+
const s = this._(), i = this.A(this.options.keyframeOptions, s), n = this.p();
|
1521
|
+
if (this.g !== void 0) {
|
1522
|
+
const { from: r, to: o } = this.O(this.g, n, s);
|
1523
|
+
this.log("measured", [this.g, n, r, o]), t = this.calculateKeyframes(r, o);
|
1524
|
+
} else {
|
1525
|
+
const r = Tt.get(this.options.inId);
|
1526
|
+
if (r) {
|
1527
|
+
Tt.delete(this.options.inId);
|
1528
|
+
const { from: o, to: a } = this.O(r, n, s);
|
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
|
+
} else
|
1531
|
+
this.options.in && (t = [...this.options.in, {}]);
|
1532
|
+
}
|
1533
|
+
this.animate(t, i);
|
1534
|
+
}
|
1535
|
+
resetStyles() {
|
1536
|
+
this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
|
1537
|
+
}
|
1538
|
+
commitStyles() {
|
1539
|
+
var t, s;
|
1540
|
+
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (s = this.webAnimation) == null || s.cancel();
|
1541
|
+
}
|
1542
|
+
reconnected() {
|
1543
|
+
}
|
1544
|
+
async disconnected() {
|
1545
|
+
var s;
|
1546
|
+
if (!this.o || (this.options.id !== void 0 && Tt.set(this.options.id, this.g), this.options.out === void 0))
|
1547
|
+
return;
|
1548
|
+
if (this.prepare(), await xe(), (s = this.t) == null ? void 0 : s.isConnected) {
|
1549
|
+
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
1550
|
+
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1551
|
+
const n = this.p();
|
1552
|
+
this.log("stabilizing out");
|
1553
|
+
const r = this.g.left - n.left, o = this.g.top - n.top;
|
1554
|
+
getComputedStyle(this.element).position !== "static" || r === 0 && o === 0 || (this.element.style.position = "relative"), r !== 0 && (this.element.style.left = r + "px"), o !== 0 && (this.element.style.top = o + "px");
|
1555
|
+
}
|
1556
|
+
}
|
1557
|
+
const t = this.A(this.options.keyframeOptions);
|
1558
|
+
await this.animate(this.options.out, t), this.element.remove();
|
1559
|
+
}
|
1560
|
+
prepare() {
|
1561
|
+
this.createFinished();
|
1562
|
+
}
|
1563
|
+
start() {
|
1564
|
+
var t, s;
|
1565
|
+
(s = (t = this.options).onStart) == null || s.call(t, this);
|
1566
|
+
}
|
1567
|
+
didFinish(t) {
|
1568
|
+
var s, i;
|
1569
|
+
t && ((i = (s = this.options).onComplete) == null || i.call(s, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
1570
|
+
}
|
1571
|
+
_() {
|
1572
|
+
const t = [];
|
1573
|
+
for (let s = this.element.parentNode; s; s = s == null ? void 0 : s.parentNode) {
|
1574
|
+
const i = Ee.get(s);
|
1575
|
+
i && !i.isDisabled() && i && t.push(i);
|
1576
|
+
}
|
1577
|
+
return t;
|
1578
|
+
}
|
1579
|
+
get isHostRendered() {
|
1580
|
+
const t = _e.has(this.l);
|
1581
|
+
return t || this.l.updateComplete.then(() => {
|
1582
|
+
_e.add(this.l);
|
1583
|
+
}), t;
|
1584
|
+
}
|
1585
|
+
A(t, s = this._()) {
|
1586
|
+
const i = { ...Ri };
|
1587
|
+
return s.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
1588
|
+
}
|
1589
|
+
O(t, s, i) {
|
1590
|
+
t = { ...t }, s = { ...s };
|
1591
|
+
const n = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1592
|
+
let r = 1, o = 1;
|
1593
|
+
return n !== void 0 && (n.forEach((a) => {
|
1594
|
+
a.width && (r /= a.width), a.height && (o /= a.height);
|
1595
|
+
}), t.left !== void 0 && s.left !== void 0 && (t.left = r * t.left, s.left = r * s.left), t.top !== void 0 && s.top !== void 0 && (t.top = o * t.top, s.top = o * s.top)), { from: t, to: s };
|
1596
|
+
}
|
1597
|
+
calculateKeyframes(t, s, i = !1) {
|
1598
|
+
const n = {}, r = {};
|
1599
|
+
let o = !1;
|
1600
|
+
const a = {};
|
1601
|
+
for (const l in s) {
|
1602
|
+
const c = t[l], d = s[l];
|
1603
|
+
if (l in Ot) {
|
1604
|
+
const h = Ot[l];
|
1605
|
+
if (c === void 0 || d === void 0)
|
1606
|
+
continue;
|
1607
|
+
const p = h(c, d);
|
1608
|
+
p.transform !== void 0 && (a[l] = p.value, o = !0, n.transform = `${n.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(n, p.overrideFrom));
|
1609
|
+
} else
|
1610
|
+
c !== d && c !== void 0 && d !== void 0 && (o = !0, n[l] = c, r[l] = d);
|
1611
|
+
}
|
1612
|
+
return n.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [n, r] : void 0;
|
1613
|
+
}
|
1614
|
+
async animate(t, s = this.options.keyframeOptions) {
|
1615
|
+
this.start(), this.frames = t;
|
1616
|
+
let i = !1;
|
1617
|
+
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
1618
|
+
this.log("animate", [t, s]), i = !0, this.webAnimation = this.element.animate(t, s);
|
1619
|
+
const n = this.getController();
|
1620
|
+
n == null || n.add(this);
|
1621
|
+
try {
|
1622
|
+
await this.webAnimation.finished;
|
1623
|
+
} catch {
|
1624
|
+
}
|
1625
|
+
n == null || n.remove(this);
|
1626
|
+
}
|
1627
|
+
return this.didFinish(i), i;
|
1628
|
+
}
|
1629
|
+
isAnimating() {
|
1630
|
+
var t, s;
|
1631
|
+
return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((s = this.webAnimation) == null ? void 0 : s.pending);
|
1632
|
+
}
|
1633
|
+
log(t, s) {
|
1634
|
+
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
1635
|
+
}
|
1636
|
+
}
|
1637
|
+
const Rt = _t(Ni), nt = (e, t, s) => {
|
1434
1638
|
e && s.style.setProperty(t, e);
|
1435
1639
|
}, Ve = (e, t) => {
|
1436
1640
|
var s, i, n, r;
|
@@ -1448,14 +1652,14 @@ const qt = _t(class extends Ft {
|
|
1448
1652
|
t
|
1449
1653
|
);
|
1450
1654
|
};
|
1451
|
-
var
|
1452
|
-
for (var n = i > 1 ? void 0 : i ?
|
1655
|
+
var Mi = Object.defineProperty, ji = Object.getOwnPropertyDescriptor, tt = (e, t, s, i) => {
|
1656
|
+
for (var n = i > 1 ? void 0 : i ? ji(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1453
1657
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1454
|
-
return i && n &&
|
1658
|
+
return i && n && Mi(t, s, n), n;
|
1455
1659
|
};
|
1456
|
-
class
|
1660
|
+
class k extends v {
|
1457
1661
|
constructor() {
|
1458
|
-
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 = Gt();
|
1459
1663
|
}
|
1460
1664
|
async connectedCallback() {
|
1461
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)`);
|
@@ -1478,17 +1682,17 @@ class T extends v {
|
|
1478
1682
|
var a, l, c;
|
1479
1683
|
const t = (a = this.application) == null ? void 0 : a.branding(), s = (l = t == null ? void 0 : t.graphics) == null ? void 0 : l.trigger;
|
1480
1684
|
if (s)
|
1481
|
-
return
|
1685
|
+
return f` <img src=${s} class="trigger-icon" alt="" /> `;
|
1482
1686
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1483
1687
|
if (!i)
|
1484
1688
|
return u;
|
1485
|
-
const n = async (d) => await import("./index-
|
1689
|
+
const n = async (d) => await import("./index-7612a1fb.mjs").then(
|
1486
1690
|
(p) => p[d]
|
1487
1691
|
), { type: r, content: o } = i;
|
1488
1692
|
switch (r) {
|
1489
1693
|
case "Telia": {
|
1490
1694
|
const d = await n(o);
|
1491
|
-
return d ?
|
1695
|
+
return d ? f`<telia-icon
|
1492
1696
|
class="trigger-icon"
|
1493
1697
|
svg=${d.svg}
|
1494
1698
|
size="lg"
|
@@ -1502,60 +1706,88 @@ class T extends v {
|
|
1502
1706
|
this.offset = t;
|
1503
1707
|
}
|
1504
1708
|
render() {
|
1505
|
-
|
1506
|
-
|
1709
|
+
var t, s, i, n;
|
1710
|
+
return f`<div class="trigger-container">
|
1711
|
+
${!this.active && ((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`
|
1712
|
+
<button
|
1713
|
+
class="trigger-label"
|
1714
|
+
@click=${this._toggleActive}
|
1715
|
+
${Rt({
|
1716
|
+
keyframeOptions: {},
|
1717
|
+
in: Li,
|
1718
|
+
stabilizeOut: !0,
|
1719
|
+
skipInitial: !1
|
1720
|
+
})}
|
1721
|
+
>
|
1722
|
+
${this.application.settings.branding.other.buttonLabelText}
|
1723
|
+
</button>
|
1724
|
+
` : u}
|
1725
|
+
|
1726
|
+
<button
|
1727
|
+
class=${Yt({
|
1507
1728
|
trigger: !0,
|
1508
1729
|
active: this.active,
|
1509
1730
|
rendered: this.loaded
|
1510
1731
|
})}
|
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"
|
1732
|
+
@click=${this._toggleActive}
|
1733
|
+
${qt(this.buttonRef)}
|
1734
|
+
>
|
1735
|
+
${this.icon}
|
1736
|
+
<span class="trigger-close">
|
1737
|
+
<svg
|
1738
|
+
width="18"
|
1739
|
+
height="9"
|
1740
|
+
viewBox="0 0 18 9"
|
1535
1741
|
fill="none"
|
1536
|
-
|
1537
|
-
|
1538
|
-
|
1539
|
-
|
1540
|
-
|
1541
|
-
|
1542
|
-
|
1742
|
+
xmlns="http://www.w3.org/2000/svg"
|
1743
|
+
>
|
1744
|
+
<path
|
1745
|
+
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"
|
1746
|
+
fill="white"
|
1747
|
+
/>
|
1748
|
+
</svg>
|
1749
|
+
</span>
|
1750
|
+
<span class="trigger-loader">
|
1751
|
+
<svg viewBox="25 25 50 50">
|
1752
|
+
<circle
|
1753
|
+
cx="50"
|
1754
|
+
cy="50"
|
1755
|
+
r="20"
|
1756
|
+
fill="none"
|
1757
|
+
stroke="#000"
|
1758
|
+
stroke-width="2"
|
1759
|
+
stroke-miterlimit="10"
|
1760
|
+
/>
|
1761
|
+
</svg>
|
1762
|
+
</span>
|
1763
|
+
</button>
|
1764
|
+
</div>`;
|
1543
1765
|
}
|
1544
1766
|
}
|
1545
|
-
|
1767
|
+
k.styles = [
|
1546
1768
|
_`
|
1547
1769
|
:host {
|
1548
1770
|
--voca-rem-multiplier: 0.625;
|
1771
|
+
--trigger-label-bg: #f5e0ff;
|
1772
|
+
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
1549
1773
|
display: block;
|
1550
1774
|
box-sizing: border-box;
|
1775
|
+
/* font-family: var(--font-family); */
|
1776
|
+
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1551
1777
|
}
|
1552
1778
|
|
1553
|
-
.trigger {
|
1779
|
+
.trigger-container {
|
1554
1780
|
position: fixed;
|
1555
|
-
transform: scale(0);
|
1556
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1557
1781
|
bottom: 20px;
|
1558
1782
|
right: 20px;
|
1783
|
+
display: flex;
|
1784
|
+
align-items: center;
|
1785
|
+
gap: 1rem;
|
1786
|
+
}
|
1787
|
+
|
1788
|
+
.trigger {
|
1789
|
+
transform: scale(0);
|
1790
|
+
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1559
1791
|
z-index: 5;
|
1560
1792
|
display: flex;
|
1561
1793
|
align-items: center;
|
@@ -1573,7 +1805,10 @@ T.styles = [
|
|
1573
1805
|
box-sizing: border-box;
|
1574
1806
|
transition: transform 200ms ease-out;
|
1575
1807
|
}
|
1576
|
-
.trigger:
|
1808
|
+
.trigger:active {
|
1809
|
+
transform: scale(0.8) !important;
|
1810
|
+
}
|
1811
|
+
.trigger:hover:not(:active) {
|
1577
1812
|
transform: scale(1.1) !important;
|
1578
1813
|
}
|
1579
1814
|
.trigger.rendered {
|
@@ -1615,27 +1850,49 @@ T.styles = [
|
|
1615
1850
|
img {
|
1616
1851
|
max-width: 100%;
|
1617
1852
|
}
|
1853
|
+
|
1854
|
+
.trigger-label {
|
1855
|
+
box-shadow: 0px 1px 4px 0px rgba(0, 0, 0, 0.1);
|
1856
|
+
background-color: var(--trigger-label-bg);
|
1857
|
+
color: var(--trigger-label-text-color);
|
1858
|
+
white-space: nowrap;
|
1859
|
+
padding: 0.7rem 1rem;
|
1860
|
+
border-radius: 0.3rem;
|
1861
|
+
font-weight: 500;
|
1862
|
+
display: flex;
|
1863
|
+
justify-content: center;
|
1864
|
+
align-items: center;
|
1865
|
+
cursor: pointer;
|
1866
|
+
border: none;
|
1867
|
+
font-size: 1rem;
|
1868
|
+
font-family: inherit;
|
1869
|
+
transition: all 300ms ease-in-out;
|
1870
|
+
}
|
1871
|
+
|
1872
|
+
.trigger-label:hover {
|
1873
|
+
opacity: 0.8;
|
1874
|
+
}
|
1618
1875
|
`
|
1619
1876
|
];
|
1620
1877
|
tt([
|
1621
|
-
|
1622
|
-
],
|
1878
|
+
$({ attribute: !1 })
|
1879
|
+
], k.prototype, "application", 2);
|
1623
1880
|
tt([
|
1624
1881
|
A()
|
1625
|
-
],
|
1882
|
+
], k.prototype, "active", 2);
|
1626
1883
|
tt([
|
1627
1884
|
A()
|
1628
|
-
],
|
1885
|
+
], k.prototype, "loaded", 2);
|
1629
1886
|
tt([
|
1630
1887
|
A()
|
1631
|
-
],
|
1888
|
+
], k.prototype, "icon", 2);
|
1632
1889
|
tt([
|
1633
1890
|
A()
|
1634
|
-
],
|
1635
|
-
var
|
1636
|
-
for (var n = i > 1 ? void 0 : i ?
|
1891
|
+
], k.prototype, "offset", 2);
|
1892
|
+
var Di = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, O = (e, t, s, i) => {
|
1893
|
+
for (var n = i > 1 ? void 0 : i ? Ii(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1637
1894
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1638
|
-
return i && n &&
|
1895
|
+
return i && n && Di(t, s, n), n;
|
1639
1896
|
};
|
1640
1897
|
const ts = (e) => {
|
1641
1898
|
class t extends e {
|
@@ -1677,24 +1934,24 @@ const ts = (e) => {
|
|
1677
1934
|
}
|
1678
1935
|
`
|
1679
1936
|
], O([
|
1680
|
-
|
1937
|
+
$()
|
1681
1938
|
], t.prototype, "properties", 2), O([
|
1682
|
-
|
1939
|
+
$()
|
1683
1940
|
], t.prototype, "context", 2), O([
|
1684
|
-
|
1941
|
+
$()
|
1685
1942
|
], t.prototype, "layout", 2), O([
|
1686
|
-
|
1943
|
+
$()
|
1687
1944
|
], t.prototype, "name", 2), O([
|
1688
|
-
|
1945
|
+
$()
|
1689
1946
|
], t.prototype, "type", 2), O([
|
1690
|
-
|
1947
|
+
$({ attribute: !1 })
|
1691
1948
|
], t.prototype, "application", 2), O([
|
1692
|
-
|
1949
|
+
$({ attribute: !1 })
|
1693
1950
|
], t.prototype, "parent", 2), t;
|
1694
1951
|
};
|
1695
1952
|
class es extends ts(v) {
|
1696
1953
|
render() {
|
1697
|
-
return
|
1954
|
+
return f`Non resolved component`;
|
1698
1955
|
}
|
1699
1956
|
}
|
1700
1957
|
es.styles = [
|
@@ -1709,21 +1966,21 @@ es.styles = [
|
|
1709
1966
|
* Copyright 2021 Google LLC
|
1710
1967
|
* SPDX-License-Identifier: BSD-3-Clause
|
1711
1968
|
*/
|
1712
|
-
function*
|
1969
|
+
function* zi(e, t) {
|
1713
1970
|
if (e !== void 0) {
|
1714
1971
|
let s = 0;
|
1715
1972
|
for (const i of e)
|
1716
1973
|
yield t(i, s++);
|
1717
1974
|
}
|
1718
1975
|
}
|
1719
|
-
var
|
1720
|
-
for (var n = i > 1 ? void 0 : i ?
|
1976
|
+
var Kt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Kt || {}), Bi = Object.defineProperty, Fi = Object.getOwnPropertyDescriptor, Wi = (e, t, s, i) => {
|
1977
|
+
for (var n = i > 1 ? void 0 : i ? Fi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1721
1978
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1722
|
-
return i && n &&
|
1979
|
+
return i && n && Bi(t, s, n), n;
|
1723
1980
|
};
|
1724
|
-
class
|
1981
|
+
class Qt extends v {
|
1725
1982
|
constructor() {
|
1726
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1983
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Gt();
|
1727
1984
|
}
|
1728
1985
|
addChild(t) {
|
1729
1986
|
t.parent = this, this.nodes.push(t);
|
@@ -1746,12 +2003,12 @@ class Kt extends v {
|
|
1746
2003
|
this.applyBranding(), this.applyStyles();
|
1747
2004
|
}
|
1748
2005
|
render() {
|
1749
|
-
return this.application.renderStrategy ===
|
1750
|
-
${
|
2006
|
+
return this.application.renderStrategy === Kt.Trigger && this.renderRoot.host.classList.add("floating"), f`<div class="widget-container" ${qt(this.wrapperRef)}>
|
2007
|
+
${zi(this.nodes, (t) => t)}
|
1751
2008
|
</div>`;
|
1752
2009
|
}
|
1753
2010
|
}
|
1754
|
-
|
2011
|
+
Qt.styles = _`
|
1755
2012
|
:host {
|
1756
2013
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1757
2014
|
--spacing-xs: 0.2rem;
|
@@ -1843,13 +2100,13 @@ Kt.styles = _`
|
|
1843
2100
|
animation: slideDown 0.3s linear;
|
1844
2101
|
}
|
1845
2102
|
`;
|
1846
|
-
|
1847
|
-
|
1848
|
-
],
|
1849
|
-
var
|
1850
|
-
for (var n = i > 1 ? void 0 : i ?
|
2103
|
+
Wi([
|
2104
|
+
$({ attribute: !1 })
|
2105
|
+
], Qt.prototype, "application", 2);
|
2106
|
+
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, Xt = (e, t, s, i) => {
|
2107
|
+
for (var n = i > 1 ? void 0 : i ? qi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1851
2108
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1852
|
-
return i && n &&
|
2109
|
+
return i && n && Gi(t, s, n), n;
|
1853
2110
|
};
|
1854
2111
|
class et extends v {
|
1855
2112
|
constructor() {
|
@@ -1876,8 +2133,8 @@ class et extends v {
|
|
1876
2133
|
render() {
|
1877
2134
|
if (!this.widget || this.status !== "activated")
|
1878
2135
|
return u;
|
1879
|
-
if (this.widget.renderStrategy ===
|
1880
|
-
const t = new
|
2136
|
+
if (this.widget.renderStrategy === Kt.Trigger) {
|
2137
|
+
const t = new k();
|
1881
2138
|
return t.application = this.widget, t;
|
1882
2139
|
}
|
1883
2140
|
return this.widget.render();
|
@@ -1890,230 +2147,25 @@ et.styles = [
|
|
1890
2147
|
}
|
1891
2148
|
`
|
1892
2149
|
];
|
1893
|
-
|
1894
|
-
|
2150
|
+
Xt([
|
2151
|
+
$({ attribute: !0 })
|
1895
2152
|
], et.prototype, "name", 2);
|
1896
|
-
|
2153
|
+
Xt([
|
1897
2154
|
A()
|
1898
2155
|
], et.prototype, "widget", 2);
|
1899
|
-
|
2156
|
+
Xt([
|
1900
2157
|
A()
|
1901
2158
|
], et.prototype, "status", 2);
|
1902
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2159
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", k);
|
1903
2160
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", es);
|
1904
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2161
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Qt);
|
1905
2162
|
customElements.get("ace-widget") || customElements.define("ace-widget", et);
|
1906
|
-
|
1907
|
-
|
1908
|
-
const kt = /* @__PURE__ */ new Map(), be = /* @__PURE__ */ new WeakSet(), _e = () => new Promise((e) => requestAnimationFrame(e)), zi = [{ opacity: 0 }], xe = [{ opacity: 0 }, { opacity: 1 }], we = (e, t) => {
|
1909
|
-
const s = e - t;
|
1910
|
-
return s === 0 ? void 0 : s;
|
1911
|
-
}, Ae = (e, t) => {
|
1912
|
-
const s = e / t;
|
1913
|
-
return s === 1 ? void 0 : s;
|
1914
|
-
}, Ot = { left: (e, t) => {
|
1915
|
-
const s = we(e, t);
|
1916
|
-
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1917
|
-
}, top: (e, t) => {
|
1918
|
-
const s = we(e, t);
|
1919
|
-
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
1920
|
-
}, width: (e, t) => {
|
1921
|
-
let s;
|
1922
|
-
t === 0 && (t = 1, s = { width: "1px" });
|
1923
|
-
const i = Ae(e, t);
|
1924
|
-
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1925
|
-
}, height: (e, t) => {
|
1926
|
-
let s;
|
1927
|
-
t === 0 && (t = 1, s = { height: "1px" });
|
1928
|
-
const i = Ae(e, t);
|
1929
|
-
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1930
|
-
} }, Fi = { duration: 333, easing: "ease-in-out" }, Wi = ["left", "top", "width", "height", "opacity", "color", "background"], Se = /* @__PURE__ */ new WeakMap();
|
1931
|
-
class Gi extends Je {
|
1932
|
-
constructor(t) {
|
1933
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === bt.CHILD)
|
1934
|
-
throw Error("The `animate` directive must be used in attribute position.");
|
1935
|
-
this.createFinished();
|
1936
|
-
}
|
1937
|
-
createFinished() {
|
1938
|
-
var t;
|
1939
|
-
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((s) => {
|
1940
|
-
this.h = s;
|
1941
|
-
});
|
1942
|
-
}
|
1943
|
-
async resolveFinished() {
|
1944
|
-
var t;
|
1945
|
-
(t = this.h) == null || t.call(this), this.h = void 0;
|
1946
|
-
}
|
1947
|
-
render(t) {
|
1948
|
-
return u;
|
1949
|
-
}
|
1950
|
-
getController() {
|
1951
|
-
return Bi.get(this.l);
|
1952
|
-
}
|
1953
|
-
isDisabled() {
|
1954
|
-
var t;
|
1955
|
-
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1956
|
-
}
|
1957
|
-
update(t, [s]) {
|
1958
|
-
var n;
|
1959
|
-
const i = this.l === void 0;
|
1960
|
-
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element, Se.set(this.element, this)), this.optionsOrCallback = s, (i || typeof s != "function") && this.u(s), this.render(s);
|
1961
|
-
}
|
1962
|
-
u(t) {
|
1963
|
-
t = t ?? {};
|
1964
|
-
const s = this.getController();
|
1965
|
-
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Wi), this.options = t;
|
1966
|
-
}
|
1967
|
-
p() {
|
1968
|
-
const t = {}, s = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1969
|
-
return this.options.properties.forEach((n) => {
|
1970
|
-
const r = s[n] ?? (Ot[n] ? void 0 : i[n]), o = Number(r);
|
1971
|
-
t[n] = isNaN(o) ? r + "" : o;
|
1972
|
-
}), t;
|
1973
|
-
}
|
1974
|
-
m() {
|
1975
|
-
let t, s = !0;
|
1976
|
-
return this.options.guard && (t = this.options.guard(), s = ((i, n) => {
|
1977
|
-
if (Array.isArray(i)) {
|
1978
|
-
if (Array.isArray(n) && n.length === i.length && i.every((r, o) => r === n[o]))
|
1979
|
-
return !1;
|
1980
|
-
} else if (n === i)
|
1981
|
-
return !1;
|
1982
|
-
return !0;
|
1983
|
-
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() && s && this.element.isConnected, this.o && (this.v = Array.isArray(t) ? Array.from(t) : t), this.o;
|
1984
|
-
}
|
1985
|
-
hostUpdate() {
|
1986
|
-
typeof this.optionsOrCallback == "function" && this.u(this.optionsOrCallback()), this.m() && (this.g = this.p(), this.t = this.t ?? this.element.parentNode, this.i = this.element.nextSibling);
|
1987
|
-
}
|
1988
|
-
async hostUpdated() {
|
1989
|
-
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1990
|
-
return;
|
1991
|
-
let t;
|
1992
|
-
this.prepare(), await _e;
|
1993
|
-
const s = this._(), i = this.A(this.options.keyframeOptions, s), n = this.p();
|
1994
|
-
if (this.g !== void 0) {
|
1995
|
-
const { from: r, to: o } = this.O(this.g, n, s);
|
1996
|
-
this.log("measured", [this.g, n, r, o]), t = this.calculateKeyframes(r, o);
|
1997
|
-
} else {
|
1998
|
-
const r = kt.get(this.options.inId);
|
1999
|
-
if (r) {
|
2000
|
-
kt.delete(this.options.inId);
|
2001
|
-
const { from: o, to: a } = this.O(r, n, s);
|
2002
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, ye++, t.forEach((l) => l.zIndex = ye);
|
2003
|
-
} else
|
2004
|
-
this.options.in && (t = [...this.options.in, {}]);
|
2005
|
-
}
|
2006
|
-
this.animate(t, i);
|
2007
|
-
}
|
2008
|
-
resetStyles() {
|
2009
|
-
this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
|
2010
|
-
}
|
2011
|
-
commitStyles() {
|
2012
|
-
var t, s;
|
2013
|
-
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (s = this.webAnimation) == null || s.cancel();
|
2014
|
-
}
|
2015
|
-
reconnected() {
|
2016
|
-
}
|
2017
|
-
async disconnected() {
|
2018
|
-
var s;
|
2019
|
-
if (!this.o || (this.options.id !== void 0 && kt.set(this.options.id, this.g), this.options.out === void 0))
|
2020
|
-
return;
|
2021
|
-
if (this.prepare(), await _e(), (s = this.t) == null ? void 0 : s.isConnected) {
|
2022
|
-
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
2023
|
-
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
2024
|
-
const n = this.p();
|
2025
|
-
this.log("stabilizing out");
|
2026
|
-
const r = this.g.left - n.left, o = this.g.top - n.top;
|
2027
|
-
getComputedStyle(this.element).position !== "static" || r === 0 && o === 0 || (this.element.style.position = "relative"), r !== 0 && (this.element.style.left = r + "px"), o !== 0 && (this.element.style.top = o + "px");
|
2028
|
-
}
|
2029
|
-
}
|
2030
|
-
const t = this.A(this.options.keyframeOptions);
|
2031
|
-
await this.animate(this.options.out, t), this.element.remove();
|
2032
|
-
}
|
2033
|
-
prepare() {
|
2034
|
-
this.createFinished();
|
2035
|
-
}
|
2036
|
-
start() {
|
2037
|
-
var t, s;
|
2038
|
-
(s = (t = this.options).onStart) == null || s.call(t, this);
|
2039
|
-
}
|
2040
|
-
didFinish(t) {
|
2041
|
-
var s, i;
|
2042
|
-
t && ((i = (s = this.options).onComplete) == null || i.call(s, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
2043
|
-
}
|
2044
|
-
_() {
|
2045
|
-
const t = [];
|
2046
|
-
for (let s = this.element.parentNode; s; s = s == null ? void 0 : s.parentNode) {
|
2047
|
-
const i = Se.get(s);
|
2048
|
-
i && !i.isDisabled() && i && t.push(i);
|
2049
|
-
}
|
2050
|
-
return t;
|
2051
|
-
}
|
2052
|
-
get isHostRendered() {
|
2053
|
-
const t = be.has(this.l);
|
2054
|
-
return t || this.l.updateComplete.then(() => {
|
2055
|
-
be.add(this.l);
|
2056
|
-
}), t;
|
2057
|
-
}
|
2058
|
-
A(t, s = this._()) {
|
2059
|
-
const i = { ...Fi };
|
2060
|
-
return s.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
2061
|
-
}
|
2062
|
-
O(t, s, i) {
|
2063
|
-
t = { ...t }, s = { ...s };
|
2064
|
-
const n = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
2065
|
-
let r = 1, o = 1;
|
2066
|
-
return n !== void 0 && (n.forEach((a) => {
|
2067
|
-
a.width && (r /= a.width), a.height && (o /= a.height);
|
2068
|
-
}), t.left !== void 0 && s.left !== void 0 && (t.left = r * t.left, s.left = r * s.left), t.top !== void 0 && s.top !== void 0 && (t.top = o * t.top, s.top = o * s.top)), { from: t, to: s };
|
2069
|
-
}
|
2070
|
-
calculateKeyframes(t, s, i = !1) {
|
2071
|
-
const n = {}, r = {};
|
2072
|
-
let o = !1;
|
2073
|
-
const a = {};
|
2074
|
-
for (const l in s) {
|
2075
|
-
const c = t[l], d = s[l];
|
2076
|
-
if (l in Ot) {
|
2077
|
-
const h = Ot[l];
|
2078
|
-
if (c === void 0 || d === void 0)
|
2079
|
-
continue;
|
2080
|
-
const p = h(c, d);
|
2081
|
-
p.transform !== void 0 && (a[l] = p.value, o = !0, n.transform = `${n.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(n, p.overrideFrom));
|
2082
|
-
} else
|
2083
|
-
c !== d && c !== void 0 && d !== void 0 && (o = !0, n[l] = c, r[l] = d);
|
2084
|
-
}
|
2085
|
-
return n.transformOrigin = r.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [n, r] : void 0;
|
2086
|
-
}
|
2087
|
-
async animate(t, s = this.options.keyframeOptions) {
|
2088
|
-
this.start(), this.frames = t;
|
2089
|
-
let i = !1;
|
2090
|
-
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
2091
|
-
this.log("animate", [t, s]), i = !0, this.webAnimation = this.element.animate(t, s);
|
2092
|
-
const n = this.getController();
|
2093
|
-
n == null || n.add(this);
|
2094
|
-
try {
|
2095
|
-
await this.webAnimation.finished;
|
2096
|
-
} catch {
|
2097
|
-
}
|
2098
|
-
n == null || n.remove(this);
|
2099
|
-
}
|
2100
|
-
return this.didFinish(i), i;
|
2101
|
-
}
|
2102
|
-
isAnimating() {
|
2103
|
-
var t, s;
|
2104
|
-
return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((s = this.webAnimation) == null ? void 0 : s.pending);
|
2105
|
-
}
|
2106
|
-
log(t, s) {
|
2107
|
-
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
2108
|
-
}
|
2109
|
-
}
|
2110
|
-
const Ee = _t(Gi);
|
2111
|
-
var qi = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, xt = (e, t, s, i) => {
|
2112
|
-
for (var n = i > 1 ? void 0 : i ? Yi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2163
|
+
var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, xt = (e, t, s, i) => {
|
2164
|
+
for (var n = i > 1 ? void 0 : i ? Ki(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2113
2165
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2114
|
-
return i && n &&
|
2166
|
+
return i && n && Yi(t, s, n), n;
|
2115
2167
|
};
|
2116
|
-
let
|
2168
|
+
let z = class extends v {
|
2117
2169
|
constructor() {
|
2118
2170
|
super(...arguments), this.loading = !0, this.entries = [];
|
2119
2171
|
}
|
@@ -2129,14 +2181,14 @@ let B = class extends v {
|
|
2129
2181
|
this.dispatchEvent(t);
|
2130
2182
|
}
|
2131
2183
|
render() {
|
2132
|
-
return
|
2184
|
+
return f`<div class="conversation-session">
|
2133
2185
|
${this.entries.map(
|
2134
|
-
(e) =>
|
2186
|
+
(e) => f`<div class="conversation-entry" tabindex="-1">
|
2135
2187
|
<conversation-entry
|
2136
2188
|
.entry=${e}
|
2137
|
-
${
|
2189
|
+
${Rt({
|
2138
2190
|
keyframeOptions: {},
|
2139
|
-
in:
|
2191
|
+
in: we,
|
2140
2192
|
stabilizeOut: !0,
|
2141
2193
|
skipInitial: !1
|
2142
2194
|
})}
|
@@ -2144,11 +2196,11 @@ let B = class extends v {
|
|
2144
2196
|
</conversation-entry>
|
2145
2197
|
</div>`
|
2146
2198
|
)}
|
2147
|
-
${this.loading ?
|
2148
|
-
${
|
2199
|
+
${this.loading ? f`<ace-typing-state
|
2200
|
+
${Rt({
|
2149
2201
|
keyframeOptions: {},
|
2150
|
-
in:
|
2151
|
-
out:
|
2202
|
+
in: we,
|
2203
|
+
out: Ui,
|
2152
2204
|
stabilizeOut: !0,
|
2153
2205
|
skipInitial: !1
|
2154
2206
|
})}
|
@@ -2156,7 +2208,7 @@ let B = class extends v {
|
|
2156
2208
|
</div> `;
|
2157
2209
|
}
|
2158
2210
|
};
|
2159
|
-
|
2211
|
+
z.styles = [
|
2160
2212
|
_`
|
2161
2213
|
:host {
|
2162
2214
|
display: block;
|
@@ -2170,21 +2222,21 @@ B.styles = [
|
|
2170
2222
|
`
|
2171
2223
|
];
|
2172
2224
|
xt([
|
2173
|
-
|
2174
|
-
],
|
2225
|
+
$({ type: Boolean })
|
2226
|
+
], z.prototype, "loading", 2);
|
2175
2227
|
xt([
|
2176
|
-
|
2177
|
-
],
|
2228
|
+
$({ attribute: !1 })
|
2229
|
+
], z.prototype, "session", 2);
|
2178
2230
|
xt([
|
2179
2231
|
A()
|
2180
|
-
],
|
2181
|
-
|
2232
|
+
], z.prototype, "entries", 2);
|
2233
|
+
z = xt([
|
2182
2234
|
V("ace-conversation-session")
|
2183
|
-
],
|
2184
|
-
var
|
2185
|
-
for (var n = i > 1 ? void 0 : i ?
|
2235
|
+
], z);
|
2236
|
+
var Qi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, ss = (e, t, s, i) => {
|
2237
|
+
for (var n = i > 1 ? void 0 : i ? Xi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2186
2238
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2187
|
-
return i && n &&
|
2239
|
+
return i && n && Qi(t, s, n), n;
|
2188
2240
|
};
|
2189
2241
|
let ut = class extends v {
|
2190
2242
|
connectedCallback() {
|
@@ -2201,7 +2253,7 @@ let ut = class extends v {
|
|
2201
2253
|
minute: "2-digit"
|
2202
2254
|
});
|
2203
2255
|
let i = "";
|
2204
|
-
return e ? t ? i = `${e}: ${s(t)}` : i = e : t && (i = s(t)),
|
2256
|
+
return e ? t ? i = `${e}: ${s(t)}` : i = e : t && (i = s(t)), f`<p class="conversation-timestamp">${i}</p>`;
|
2205
2257
|
}
|
2206
2258
|
render() {
|
2207
2259
|
var e, t;
|
@@ -2209,19 +2261,19 @@ let ut = class extends v {
|
|
2209
2261
|
case wt.System:
|
2210
2262
|
return "";
|
2211
2263
|
case wt.Agent:
|
2212
|
-
return
|
2213
|
-
class=${
|
2264
|
+
return f`<div
|
2265
|
+
class=${Yt({
|
2214
2266
|
"conversation-agent-message": !0,
|
2215
2267
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
2216
2268
|
})}
|
2217
2269
|
>
|
2218
|
-
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ?
|
2270
|
+
${typeof ((t = this.entry.sender) == null ? void 0 : t.avatar) == "string" ? f`<div class="avatar">
|
2219
2271
|
<img src=${this.entry.sender.avatar} />
|
2220
2272
|
</div>` : u}
|
2221
2273
|
|
2222
2274
|
<div class="entry-content">
|
2223
2275
|
${this.entry.messages.map(
|
2224
|
-
(s) =>
|
2276
|
+
(s) => f`
|
2225
2277
|
<div class="message-container">
|
2226
2278
|
<div class="message-content">
|
2227
2279
|
<conversation-group .group=${s}></conversation-group>
|
@@ -2236,10 +2288,10 @@ let ut = class extends v {
|
|
2236
2288
|
)}
|
2237
2289
|
</div>`;
|
2238
2290
|
case wt.User:
|
2239
|
-
return
|
2291
|
+
return f`<div class="conversation-user-message">
|
2240
2292
|
<div class="entry-content">
|
2241
2293
|
${this.entry.messages.map(
|
2242
|
-
(s) =>
|
2294
|
+
(s) => f`
|
2243
2295
|
<div class="message-container">
|
2244
2296
|
<div class="message-content">
|
2245
2297
|
<conversation-group .group=${s}></conversation-group>
|
@@ -2344,23 +2396,23 @@ ut.styles = [
|
|
2344
2396
|
`
|
2345
2397
|
];
|
2346
2398
|
ss([
|
2347
|
-
|
2399
|
+
$({ attribute: !1 })
|
2348
2400
|
], ut.prototype, "entry", 2);
|
2349
2401
|
ut = ss([
|
2350
2402
|
V("conversation-entry")
|
2351
2403
|
], ut);
|
2352
|
-
var Zi = Object.defineProperty,
|
2353
|
-
for (var n = i > 1 ? void 0 : i ?
|
2404
|
+
var Zi = Object.defineProperty, Ji = Object.getOwnPropertyDescriptor, is = (e, t, s, i) => {
|
2405
|
+
for (var n = i > 1 ? void 0 : i ? Ji(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2354
2406
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2355
2407
|
return i && n && Zi(t, s, n), n;
|
2356
2408
|
};
|
2357
2409
|
let ft = class extends v {
|
2358
2410
|
render() {
|
2359
|
-
return
|
2411
|
+
return f`
|
2360
2412
|
<div class="message-group">
|
2361
2413
|
${this.group.items.map(
|
2362
|
-
([e, t]) =>
|
2363
|
-
${e === "html" ?
|
2414
|
+
([e, t]) => f`
|
2415
|
+
${e === "html" ? f`
|
2364
2416
|
<message-type-html .message=${t}></message-type-html>
|
2365
2417
|
` : u}
|
2366
2418
|
`
|
@@ -2386,26 +2438,26 @@ ft.styles = [
|
|
2386
2438
|
`
|
2387
2439
|
];
|
2388
2440
|
is([
|
2389
|
-
|
2441
|
+
$({ attribute: !1 })
|
2390
2442
|
], ft.prototype, "group", 2);
|
2391
2443
|
ft = is([
|
2392
2444
|
V("conversation-group")
|
2393
2445
|
], ft);
|
2394
|
-
var
|
2395
|
-
for (var n = i > 1 ? void 0 : i ?
|
2446
|
+
var Vi = Object.defineProperty, tn = Object.getOwnPropertyDescriptor, en = (e, t, s, i) => {
|
2447
|
+
for (var n = i > 1 ? void 0 : i ? tn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2396
2448
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2397
|
-
return i && n &&
|
2449
|
+
return i && n && Vi(t, s, n), n;
|
2398
2450
|
};
|
2399
|
-
let
|
2451
|
+
let Ht = class extends v {
|
2400
2452
|
render() {
|
2401
|
-
return
|
2453
|
+
return f`<div class="container">
|
2402
2454
|
<div class="dot"></div>
|
2403
2455
|
<div class="dot"></div>
|
2404
2456
|
<div class="dot"></div>
|
2405
2457
|
</div>`;
|
2406
2458
|
}
|
2407
2459
|
};
|
2408
|
-
|
2460
|
+
Ht.styles = [
|
2409
2461
|
_`
|
2410
2462
|
:host {
|
2411
2463
|
display: block;
|
@@ -2442,15 +2494,15 @@ Rt.styles = [
|
|
2442
2494
|
}
|
2443
2495
|
`
|
2444
2496
|
];
|
2445
|
-
|
2497
|
+
Ht = en([
|
2446
2498
|
V("ace-typing-state")
|
2447
|
-
],
|
2499
|
+
], Ht);
|
2448
2500
|
/**
|
2449
2501
|
* @license
|
2450
2502
|
* Copyright 2017 Google LLC
|
2451
2503
|
* SPDX-License-Identifier: BSD-3-Clause
|
2452
2504
|
*/
|
2453
|
-
class Nt extends
|
2505
|
+
class Nt extends Wt {
|
2454
2506
|
constructor(t) {
|
2455
2507
|
if (super(t), this.et = u, t.type !== bt.CHILD)
|
2456
2508
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2470,20 +2522,20 @@ class Nt extends Ft {
|
|
2470
2522
|
}
|
2471
2523
|
}
|
2472
2524
|
Nt.directiveName = "unsafeHTML", Nt.resultType = 1;
|
2473
|
-
const
|
2474
|
-
var
|
2475
|
-
for (var n = i > 1 ? void 0 : i ?
|
2525
|
+
const sn = _t(Nt);
|
2526
|
+
var nn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, ns = (e, t, s, i) => {
|
2527
|
+
for (var n = i > 1 ? void 0 : i ? rn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2476
2528
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2477
|
-
return i && n &&
|
2529
|
+
return i && n && nn(t, s, n), n;
|
2478
2530
|
};
|
2479
|
-
let
|
2531
|
+
let gt = class extends v {
|
2480
2532
|
render() {
|
2481
|
-
return
|
2482
|
-
${
|
2533
|
+
return f`<div class="message-type-html">
|
2534
|
+
${sn(this.message.content)}
|
2483
2535
|
</div>`;
|
2484
2536
|
}
|
2485
2537
|
};
|
2486
|
-
|
2538
|
+
gt.styles = [
|
2487
2539
|
_`
|
2488
2540
|
:host {
|
2489
2541
|
box-sizing: border-box;
|
@@ -2499,22 +2551,22 @@ $t.styles = [
|
|
2499
2551
|
`
|
2500
2552
|
];
|
2501
2553
|
ns([
|
2502
|
-
|
2503
|
-
],
|
2504
|
-
|
2554
|
+
$({ attribute: !1 })
|
2555
|
+
], gt.prototype, "message", 2);
|
2556
|
+
gt = ns([
|
2505
2557
|
V("message-type-html")
|
2506
|
-
],
|
2507
|
-
var
|
2508
|
-
for (var n = i > 1 ? void 0 : i ?
|
2558
|
+
], gt);
|
2559
|
+
var on = Object.defineProperty, an = Object.getOwnPropertyDescriptor, Zt = (e, t, s, i) => {
|
2560
|
+
for (var n = i > 1 ? void 0 : i ? an(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2509
2561
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2510
|
-
return i && n &&
|
2562
|
+
return i && n && on(t, s, n), n;
|
2511
2563
|
};
|
2512
|
-
const
|
2564
|
+
const ln = (e) => {
|
2513
2565
|
e.scrollTo ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight;
|
2514
2566
|
}, rs = ts(v);
|
2515
|
-
class
|
2567
|
+
class B extends rs {
|
2516
2568
|
constructor() {
|
2517
|
-
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 = Gt(), this.chatScrollHeight = 0;
|
2518
2570
|
}
|
2519
2571
|
async connectedCallback() {
|
2520
2572
|
super.connectedCallback();
|
@@ -2539,19 +2591,19 @@ class z extends rs {
|
|
2539
2591
|
const t = this.conversationContentRef.value;
|
2540
2592
|
t && setTimeout(() => {
|
2541
2593
|
const s = t.scrollHeight;
|
2542
|
-
s > this.chatScrollHeight && (
|
2594
|
+
s > this.chatScrollHeight && (ln(t), this.chatScrollHeight = s);
|
2543
2595
|
}, 1e3);
|
2544
2596
|
}
|
2545
2597
|
render() {
|
2546
|
-
return
|
2598
|
+
return f` <div
|
2547
2599
|
@action=${this._actionHandler}
|
2548
|
-
class=${
|
2600
|
+
class=${Yt({
|
2549
2601
|
conversation: !0,
|
2550
2602
|
"input-has-text": this.message.length > 0
|
2551
2603
|
})}
|
2552
2604
|
>
|
2553
|
-
<div class="conversation-content" ${
|
2554
|
-
${this.session ?
|
2605
|
+
<div class="conversation-content" ${qt(this.conversationContentRef)}>
|
2606
|
+
${this.session ? f`<ace-conversation-session
|
2555
2607
|
@updated=${this.onSessionUpdated}
|
2556
2608
|
.session=${this.session}
|
2557
2609
|
></ace-conversation-session>` : u}
|
@@ -2571,7 +2623,7 @@ class z extends rs {
|
|
2571
2623
|
</div>`;
|
2572
2624
|
}
|
2573
2625
|
}
|
2574
|
-
|
2626
|
+
B.styles = [
|
2575
2627
|
rs.styles || [],
|
2576
2628
|
_`
|
2577
2629
|
:host {
|
@@ -2683,17 +2735,17 @@ z.styles = [
|
|
2683
2735
|
];
|
2684
2736
|
Zt([
|
2685
2737
|
A()
|
2686
|
-
],
|
2738
|
+
], B.prototype, "message", 2);
|
2687
2739
|
Zt([
|
2688
2740
|
A()
|
2689
|
-
],
|
2741
|
+
], B.prototype, "platform", 2);
|
2690
2742
|
Zt([
|
2691
2743
|
A()
|
2692
|
-
],
|
2744
|
+
], B.prototype, "session", 2);
|
2693
2745
|
const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2694
2746
|
__proto__: null,
|
2695
|
-
Conversation:
|
2696
|
-
default:
|
2747
|
+
Conversation: B,
|
2748
|
+
default: B
|
2697
2749
|
}, Symbol.toStringTag, { value: "Module" }));
|
2698
2750
|
export {
|
2699
2751
|
$n as c,
|