@telia-ace/widget-conversation-flamingo 1.1.12-rc.6 → 1.1.12-rc.7
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-0e166f89.js → conversation-3c27330e.js} +37 -37
- package/{conversation-24a8adae.mjs → conversation-b97980a4.mjs} +268 -275
- package/{index-cc7faebf.mjs → index-2232f2d4.mjs} +2 -2
- package/{index-a3333a89.js → index-6aff04c6.js} +1 -1
- package/{index-e28f292a.js → index-843053b2.js} +1 -1
- package/{index-8689b351.mjs → index-b246eac8.mjs} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -1,22 +1,22 @@
|
|
1
|
-
import { C as St } from "./index-
|
1
|
+
import { C as St } from "./index-b246eac8.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const nt = globalThis,
|
8
|
-
let
|
7
|
+
const nt = globalThis, Mt = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, jt = Symbol(), Kt = /* @__PURE__ */ new WeakMap();
|
8
|
+
let Se = 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 = Kt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Kt.set(s, t));
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
}
|
@@ -24,7 +24,7 @@ let Ce = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const os = (e) => new
|
27
|
+
const os = (e) => new Se(typeof e == "string" ? e : e + "", void 0, jt), w = (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 Ce(typeof e == "string" ? e : e + "", void 0, Dt), w = (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 Se(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 = nt.litNonce;
|
42
42
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = s.cssText, e.appendChild(i);
|
43
43
|
}
|
44
|
-
},
|
44
|
+
}, Qt = 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 Ce(typeof e == "string" ? e : e + "", void 0, Dt), w = (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, C = globalThis,
|
55
|
+
const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnPropertyNames: hs, getOwnPropertySymbols: ps, getPrototypeOf: us } = Object, C = globalThis, Zt = C.trustedTypes, fs = Zt ? Zt.emptyScript : "", Ct = C.reactiveElementPolyfillSupport, q = (e, t) => e, rt = { toAttribute(e, t) {
|
56
56
|
switch (t) {
|
57
57
|
case Boolean:
|
58
58
|
e = e ? fs : null;
|
@@ -80,16 +80,16 @@ const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return s;
|
83
|
-
} },
|
83
|
+
} }, Dt = (e, t) => !ls(e, t), Xt = { attribute: !0, type: String, converter: rt, reflect: !1, hasChanged: Dt };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
|
-
let
|
85
|
+
let N = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
88
88
|
}
|
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 = Xt) {
|
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 H = 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) ?? Xt;
|
113
113
|
}
|
114
114
|
static _$Ei() {
|
115
115
|
if (this.hasOwnProperty(q("elementProperties")))
|
@@ -144,9 +144,9 @@ let H = 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(Qt(n));
|
148
148
|
} else
|
149
|
-
t !== void 0 && s.push(
|
149
|
+
t !== void 0 && s.push(Qt(t));
|
150
150
|
return s;
|
151
151
|
}
|
152
152
|
static _$Eu(t, s) {
|
@@ -215,7 +215,7 @@ let H = 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
|
}
|
@@ -293,19 +293,19 @@ let H = class extends HTMLElement {
|
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
|
296
|
+
N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[q("elementProperties")] = /* @__PURE__ */ new Map(), N[q("finalized")] = /* @__PURE__ */ new Map(), Ct == null || Ct({ ReactiveElement: N }), (C.reactiveElementVersions ?? (C.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 Y = globalThis, ot = Y.trustedTypes,
|
303
|
-
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
305
|
-
function
|
302
|
+
const Y = globalThis, ot = Y.trustedTypes, Jt = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ce = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Ee = "?" + S, $s = `<${Ee}>`, P = document, Q = () => P.createComment(""), Z = (e) => e === null || typeof e != "object" && typeof e != "function", ke = Array.isArray, gs = (e) => ke(e) || typeof (e == null ? void 0 : e[Symbol.iterator]) == "function", Et = `[
|
303
|
+
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Vt = /-->/g, te = />/g, k = RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ee = /'/g, se = /"/g, Te = /^(?:script|style|textarea|title)$/i, ms = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), $ = ms(1), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ie = /* @__PURE__ */ new WeakMap(), O = P.createTreeWalker(P, 129);
|
305
|
+
function Oe(e, t) {
|
306
306
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
308
|
-
return
|
308
|
+
return Jt !== void 0 ? Jt.createHTML(t) : t;
|
309
309
|
}
|
310
310
|
const vs = (e, t) => {
|
311
311
|
const s = e.length - 1, i = [];
|
@@ -314,11 +314,11 @@ const vs = (e, t) => {
|
|
314
314
|
const l = e[a];
|
315
315
|
let c, h, d = -1, p = 0;
|
316
316
|
for (; p < l.length && (o.lastIndex = p, h = o.exec(l), h !== null); )
|
317
|
-
p = o.lastIndex, o === G ? h[1] === "!--" ? o =
|
318
|
-
const f = o ===
|
319
|
-
r += o === G ? l + $s : d >= 0 ? (i.push(c), l.slice(0, d) +
|
317
|
+
p = o.lastIndex, o === G ? h[1] === "!--" ? o = Vt : h[1] !== void 0 ? o = te : h[2] !== void 0 ? (Te.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = k) : h[3] !== void 0 && (o = k) : o === k ? h[0] === ">" ? (o = n ?? G, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? k : h[3] === '"' ? se : ee) : o === se || o === ee ? o = k : o === Vt || o === te ? o = G : (o = k, n = void 0);
|
318
|
+
const f = o === k && e[a + 1].startsWith("/>") ? " " : "";
|
319
|
+
r += o === G ? l + $s : d >= 0 ? (i.push(c), l.slice(0, d) + Ce + l.slice(d) + S + f) : l + S + (d === -2 ? a : f);
|
320
320
|
}
|
321
|
-
return [
|
321
|
+
return [Oe(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
323
|
class X {
|
324
324
|
constructor({ strings: t, _$litType$: s }, i) {
|
@@ -334,12 +334,12 @@ class X {
|
|
334
334
|
if (n.nodeType === 1) {
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const d of n.getAttributeNames())
|
337
|
-
if (d.endsWith(
|
337
|
+
if (d.endsWith(Ce)) {
|
338
338
|
const p = h[o++], f = n.getAttribute(d).split(S), _ = /([.?@])?(.*)/.exec(p);
|
339
339
|
l.push({ type: 1, index: r, name: _[2], strings: f, ctor: _[1] === "." ? bs : _[1] === "?" ? _s : _[1] === "@" ? xs : gt }), n.removeAttribute(d);
|
340
340
|
} else
|
341
341
|
d.startsWith(S) && (l.push({ type: 6, index: r }), n.removeAttribute(d));
|
342
|
-
if (
|
342
|
+
if (Te.test(n.tagName)) {
|
343
343
|
const d = n.textContent.split(S), p = d.length - 1;
|
344
344
|
if (p > 0) {
|
345
345
|
n.textContent = ot ? ot.emptyScript : "";
|
@@ -349,7 +349,7 @@ class X {
|
|
349
349
|
}
|
350
350
|
}
|
351
351
|
} else if (n.nodeType === 8)
|
352
|
-
if (n.data ===
|
352
|
+
if (n.data === Ee)
|
353
353
|
l.push({ type: 2, index: r });
|
354
354
|
else {
|
355
355
|
let d = -1;
|
@@ -364,13 +364,13 @@ class X {
|
|
364
364
|
return i.innerHTML = t, i;
|
365
365
|
}
|
366
366
|
}
|
367
|
-
function
|
367
|
+
function I(e, t, s = e, i) {
|
368
368
|
var o, a;
|
369
369
|
if (t === E)
|
370
370
|
return t;
|
371
371
|
let n = i !== void 0 ? (o = s._$Co) == null ? void 0 : o[i] : s._$Cl;
|
372
372
|
const r = Z(t) ? void 0 : t._$litDirective$;
|
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 =
|
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 {
|
376
376
|
constructor(t, s) {
|
@@ -421,7 +421,7 @@ class V {
|
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
423
|
_$AI(t, s = this) {
|
424
|
-
t =
|
424
|
+
t = I(this, t, s), Z(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : gs(t) ? this.T(t) : this._(t);
|
425
425
|
}
|
426
426
|
k(t) {
|
427
427
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -434,7 +434,7 @@ class V {
|
|
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 = X.createElement(
|
437
|
+
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = X.createElement(Oe(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 {
|
@@ -443,8 +443,8 @@ class V {
|
|
443
443
|
}
|
444
444
|
}
|
445
445
|
_$AC(t) {
|
446
|
-
let s =
|
447
|
-
return s === void 0 &&
|
446
|
+
let s = ie.get(t.strings);
|
447
|
+
return s === void 0 && ie.set(t.strings, s = new X(t)), s;
|
448
448
|
}
|
449
449
|
T(t) {
|
450
450
|
ke(this._$AH) || (this._$AH = [], this._$AR());
|
@@ -480,12 +480,12 @@ class gt {
|
|
480
480
|
const r = this.strings;
|
481
481
|
let o = !1;
|
482
482
|
if (r === void 0)
|
483
|
-
t =
|
483
|
+
t = I(this, t, s, 0), o = !Z(t) || t !== this._$AH && t !== E, 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 =
|
488
|
+
c = I(this, a[i + l], s, l), c === E && (c = this._$AH[l]), o || (o = !Z(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
|
}
|
@@ -514,7 +514,7 @@ class xs extends gt {
|
|
514
514
|
super(t, s, i, n, r), this.type = 5;
|
515
515
|
}
|
516
516
|
_$AI(t, s = this) {
|
517
|
-
if ((t =
|
517
|
+
if ((t = I(this, t, s, 0) ?? u) === E)
|
518
518
|
return;
|
519
519
|
const i = this._$AH, n = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== u && (i === u || n);
|
520
520
|
n && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -532,11 +532,11 @@ class ws {
|
|
532
532
|
return this._$AM._$AU;
|
533
533
|
}
|
534
534
|
_$AI(t) {
|
535
|
-
|
535
|
+
I(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
|
-
const
|
539
|
-
|
538
|
+
const kt = Y.litHtmlPolyfillSupport;
|
539
|
+
kt == null || kt(X, V), (Y.litHtmlVersions ?? (Y.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$;
|
@@ -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 y = class extends
|
554
|
+
let y = class extends N {
|
555
555
|
constructor() {
|
556
556
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
557
557
|
}
|
@@ -576,12 +576,12 @@ let y = class extends H {
|
|
576
576
|
return E;
|
577
577
|
}
|
578
578
|
};
|
579
|
-
var
|
580
|
-
y._$litElement$ = !0, y.finalized = !0, (
|
581
|
-
const
|
582
|
-
|
579
|
+
var Ae;
|
580
|
+
y._$litElement$ = !0, y.finalized = !0, (Ae = globalThis.litElementHydrateSupport) == null || Ae.call(globalThis, { LitElement: y });
|
581
|
+
const Tt = globalThis.litElementPolyfillSupport;
|
582
|
+
Tt == null || Tt({ LitElement: y });
|
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 : {}, x = vt.document || { head: {} },
|
668
|
+
let R, Pe, mt, Le = !1, at = !1, It = !1, v = !1, ne = null, Ut = !1;
|
669
|
+
const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, Ue = vt.HTMLElement || class {
|
670
670
|
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -686,48 +686,48 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
686
686
|
} catch {
|
687
687
|
}
|
688
688
|
return e;
|
689
|
-
})(), Es = (e) => Promise.resolve(e),
|
689
|
+
})(), Es = (e) => Promise.resolve(e), ks = /* @__PURE__ */ (() => {
|
690
690
|
try {
|
691
691
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
692
692
|
} catch {
|
693
693
|
}
|
694
694
|
return !1;
|
695
|
-
})(),
|
695
|
+
})(), Ne = (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
|
tt(i);
|
705
705
|
}
|
706
706
|
}, Os = (e, t) => t & 4 ? x : t & 8 ? vt : t & 16 ? x.body : e, Ps = (e) => Cs ? {
|
707
707
|
passive: (e & 1) !== 0,
|
708
708
|
capture: (e & 2) !== 0
|
709
|
-
} : (e & 2) !== 0,
|
710
|
-
},
|
709
|
+
} : (e & 2) !== 0, re = "http://www.w3.org/1999/xlink", L = (e, t = "") => () => {
|
710
|
+
}, oe = /* @__PURE__ */ new WeakMap(), Ls = (e, t, s) => {
|
711
711
|
let i = dt.get(e);
|
712
|
-
|
712
|
+
ks && s ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, dt.set(e, i);
|
713
713
|
}, Us = (e, t, s, i) => {
|
714
|
-
let n =
|
714
|
+
let n = He(t, s), r = dt.get(n);
|
715
715
|
if (e = e.nodeType === 11 ? e : x, r)
|
716
716
|
if (typeof r == "string") {
|
717
717
|
e = e.head || e;
|
718
|
-
let o =
|
719
|
-
o ||
|
718
|
+
let o = oe.get(e), a;
|
719
|
+
o || oe.set(e, o = /* @__PURE__ */ new Set()), o.has(n) || (a = x.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
|
}, Ns = (e) => {
|
724
724
|
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n = L("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
|
-
},
|
726
|
+
}, He = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$), Hs = (e) => ci.map((t) => t(e)).find((t) => !!t), ae = {}, Rs = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xhtml", js = (e) => e != null, Bt = (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 = (d) => {
|
729
729
|
for (let p = 0; p < d.length; p++)
|
730
|
-
i = d[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !
|
730
|
+
i = d[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !Bt(i)) && (i = String(i)), o && a ? l[l.length - 1].$text$ += i : l.push(o ? lt(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,10 +749,10 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
749
749
|
$children$: null
|
750
750
|
};
|
751
751
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
752
|
-
},
|
753
|
-
forEach: (e, t) => e.map(
|
754
|
-
map: (e, t) => e.map(
|
755
|
-
},
|
752
|
+
}, zt = {}, Ds = (e) => e && e.$tag$ === zt, Is = {
|
753
|
+
forEach: (e, t) => e.map(le).forEach(t),
|
754
|
+
map: (e, t) => e.map(le).map(t).map(Bs)
|
755
|
+
}, le = (e) => ({
|
756
756
|
vattrs: e.$attrs$,
|
757
757
|
vchildren: e.$children$,
|
758
758
|
vkey: e.$key$,
|
@@ -762,15 +762,15 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
762
762
|
}), Bs = (e) => {
|
763
763
|
if (typeof e.vtag == "function") {
|
764
764
|
const s = Object.assign({}, e.vattrs);
|
765
|
-
return e.vkey && (s.key = e.vkey), e.vname && (s.name = e.vname),
|
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 = lt(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
|
+
}, ce = (e, t, s, i, n, r) => {
|
770
770
|
if (s !== i) {
|
771
|
-
let o =
|
771
|
+
let o = ue(e, t), a = t.toLowerCase();
|
772
772
|
if (t === "class") {
|
773
|
-
const l = e.classList, c =
|
773
|
+
const l = e.classList, c = de(s), h = de(i);
|
774
774
|
l.remove(...c.filter((d) => d && !h.includes(d))), l.add(...h.filter((d) => d && !c.includes(d)));
|
775
775
|
} else if (t === "style") {
|
776
776
|
for (const l in s)
|
@@ -781,9 +781,9 @@ const vt = typeof window < "u" ? window : {}, x = 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) :
|
784
|
+
t[2] === "-" ? t = t.slice(3) : ue(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 = Bt(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 : {}, x = vt.document || { head: {} }, N
|
|
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(re, t) : e.removeAttribute(t)) : (!o || r & 4 || n) && !l && (i = i === !0 ? "" : i, c ? e.setAttributeNS(re, t, i) : e.setAttribute(t, i));
|
799
799
|
}
|
800
800
|
}
|
801
|
-
}, zs = /\s/,
|
802
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ ||
|
801
|
+
}, zs = /\s/, de = (e) => e ? e.split(zs) : [], Re = (e, t, s, i) => {
|
802
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || ae, o = t.$attrs$ || ae;
|
803
803
|
for (i in r)
|
804
|
-
i in o ||
|
804
|
+
i in o || ce(n, i, r[i], void 0, s, t.$flags$);
|
805
805
|
for (i in o)
|
806
|
-
|
806
|
+
ce(n, i, r[i], o[i], s, t.$flags$);
|
807
807
|
}, ct = (e, t, s, i) => {
|
808
808
|
let n = t.$children$[s], r = 0, o, a, l;
|
809
|
-
if (
|
809
|
+
if (Le || (It = !0, n.$tag$ === "slot" && (R && i.classList.add(R + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
@@ -817,27 +817,27 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
817
817
|
else if (n.$flags$ & 1)
|
818
818
|
o = n.$elm$ = x.createTextNode("");
|
819
819
|
else {
|
820
|
-
if (v || (v = n.$tag$ === "svg"), o = n.$elm$ = x.createElementNS(v ? Rs : Ms, n.$flags$ & 2 ? "slot-fb" : n.$tag$), v && n.$tag$ === "foreignObject" && (v = !1),
|
820
|
+
if (v || (v = n.$tag$ === "svg"), o = n.$elm$ = x.createElementNS(v ? Rs : Ms, n.$flags$ & 2 ? "slot-fb" : n.$tag$), v && n.$tag$ === "foreignObject" && (v = !1), Re(null, n, v), js(R) && o["s-si"] !== R && o.classList.add(o["s-si"] = R), n.$children$)
|
821
821
|
for (r = 0; r < n.$children$.length; ++r)
|
822
822
|
a = ct(e, n, r, o), a && o.appendChild(a);
|
823
823
|
n.$tag$ === "svg" ? v = !1 : o.tagName === "foreignObject" && (v = !0);
|
824
824
|
}
|
825
|
-
return o["s-hn"] = mt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] =
|
825
|
+
return o["s-hn"] = mt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Pe, o["s-sn"] = n.$name$ || "", l = e && e.$children$ && e.$children$[s], l && l.$tag$ === n.$tag$ && e.$elm$ && J(e.$elm$, !1)), o;
|
826
826
|
}, J = (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"] && (De(n).insertBefore(n, Ft(n)), n["s-ol"].remove(), n["s-ol"] = void 0, It = !0), t && J(n, t);
|
832
832
|
}
|
833
833
|
m.$flags$ &= -2;
|
834
|
-
},
|
834
|
+
}, Me = (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 = ct(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a,
|
838
|
-
},
|
837
|
+
i[n] && (a = ct(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a, Ft(t))));
|
838
|
+
}, je = (e, t, s, i, n) => {
|
839
839
|
for (; t <= s; ++t)
|
840
|
-
(i = e[t]) && (n = i.$elm$,
|
840
|
+
(i = e[t]) && (n = i.$elm$, ze(i), at = !0, n["s-ol"] ? n["s-ol"].remove() : J(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], h = t[l], d = i.length - 1, p = i[0], f = i[d], _, et;
|
843
843
|
for (; n <= l && r <= d; )
|
@@ -850,27 +850,27 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
850
850
|
else if (f == null)
|
851
851
|
f = i[--d];
|
852
852
|
else if (st(c, p))
|
853
|
-
|
853
|
+
M(c, p), c = t[++n], p = i[++r];
|
854
854
|
else if (st(h, f))
|
855
|
-
|
855
|
+
M(h, f), h = t[--l], f = i[--d];
|
856
856
|
else if (st(c, f))
|
857
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && J(c.$elm$.parentNode, !1),
|
857
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && J(c.$elm$.parentNode, !1), M(c, f), e.insertBefore(c.$elm$, h.$elm$.nextSibling), c = t[++n], f = i[--d];
|
858
858
|
else if (st(h, p))
|
859
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") && J(h.$elm$.parentNode, !1),
|
859
|
+
(c.$tag$ === "slot" || f.$tag$ === "slot") && J(h.$elm$.parentNode, !1), M(h, p), e.insertBefore(h.$elm$, c.$elm$), h = 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 ? (et = t[o], et.$tag$ !== p.$tag$ ? _ = ct(t && t[r], s, o, e) : (
|
866
|
+
o >= 0 ? (et = t[o], et.$tag$ !== p.$tag$ ? _ = ct(t && t[r], s, o, e) : (M(et, p), t[o] = void 0, _ = et.$elm$), p = i[++r]) : (_ = ct(t && t[r], s, r, e), p = i[++r]), _ && De(c.$elm$).insertBefore(_, Ft(c.$elm$));
|
867
867
|
}
|
868
|
-
n > l ?
|
869
|
-
}, st = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1,
|
868
|
+
n > l ? Me(e, i[d + 1] == null ? null : i[d + 1].$elm$, s, i, r, d) : r > d && je(t, n, l);
|
869
|
+
}, st = (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, De = (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 ? (v = r === "svg" ? !0 : r === "foreignObject" ? !1 : v, r === "slot" ||
|
873
|
-
},
|
872
|
+
o === null ? (v = r === "svg" ? !0 : r === "foreignObject" ? !1 : v, r === "slot" || Re(e, t, v), i !== null && n !== null ? Fs(s, i, t, n) : n !== null ? (e.$text$ !== null && (s.textContent = ""), Me(s, null, t, n, 0, n.length - 1)) : i !== null && je(i, 0, i.length - 1), v && r === "svg" && (v = !1)) : (a = s["s-cr"]) ? a.parentNode.textContent = o : e.$text$ !== o && (s.data = o);
|
873
|
+
}, Ie = (e) => {
|
874
874
|
let t = e.childNodes, s, i, n, r, o, a;
|
875
875
|
for (i = 0, n = t.length; i < n; i++)
|
876
876
|
if (s = t[i], s.nodeType === 1) {
|
@@ -886,31 +886,31 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
886
886
|
break;
|
887
887
|
}
|
888
888
|
}
|
889
|
-
|
889
|
+
Ie(s);
|
890
890
|
}
|
891
|
-
}, b = [],
|
891
|
+
}, b = [], Be = (e) => {
|
892
892
|
let t, s, i, n, r, o, a = 0, l = e.childNodes, c = l.length;
|
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"] && (he(s, n) ? (r = b.find((h) => h.$nodeToRelocate$ === s), at = !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((h) => {
|
900
|
-
|
900
|
+
he(h.$nodeToRelocate$, s["s-sn"]) && (r = b.find((d) => d.$nodeToRelocate$ === s), r && !h.$slotRefNode$ && (h.$slotRefNode$ = r.$slotRefNode$));
|
901
901
|
})) : b.some((h) => h.$nodeToRelocate$ === s) || b.push({
|
902
902
|
$nodeToRelocate$: s
|
903
903
|
}));
|
904
|
-
t.nodeType === 1 &&
|
904
|
+
t.nodeType === 1 && Be(t);
|
905
905
|
}
|
906
|
-
},
|
907
|
-
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(
|
906
|
+
}, he = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", ze = (e) => {
|
907
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ze);
|
908
908
|
}, Ws = (e, t) => {
|
909
|
-
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ || lt(null, null), r = Ds(t) ? 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,
|
909
|
+
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ || lt(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, R = s["s-sc"], Pe = s["s-cr"], Le = (i.$flags$ & 1) !== 0, at = !1, M(n, r);
|
911
911
|
{
|
912
|
-
if (m.$flags$ |= 1,
|
913
|
-
|
912
|
+
if (m.$flags$ |= 1, It) {
|
913
|
+
Be(r.$elm$);
|
914
914
|
let o, a, l, c, h, d, p = 0;
|
915
915
|
for (; p < b.length; p++)
|
916
916
|
o = b[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = x.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
@@ -925,7 +925,7 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
at &&
|
928
|
+
at && Ie(r.$elm$), m.$flags$ &= -2, b.length = 0;
|
929
929
|
}
|
930
930
|
}, Gs = (e) => e, qs = (e, t, s) => {
|
931
931
|
const i = Gs(e);
|
@@ -941,10 +941,10 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
941
941
|
const i = m.ce(t, s);
|
942
942
|
return e.dispatchEvent(i), i;
|
943
943
|
}, Ks = (e, t) => {
|
944
|
-
},
|
944
|
+
}, Fe = (e, t) => (e.$flags$ |= 16, Ks(e, e.$ancestorComponent$), pi(() => Qs(e, t))), Qs = (e, t) => {
|
945
945
|
const s = e.$hostElement$, i = L("scheduleUpdate", e.$cmpMeta$.$tagName$), n = s;
|
946
946
|
let r;
|
947
|
-
return t ? r =
|
947
|
+
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = pe(r, () => D(n, "componentWillRender")), i(), pe(r, () => Zs(e, n, t));
|
948
948
|
}, Zs = async (e, t, s) => {
|
949
949
|
const i = e.$hostElement$, n = L("update", e.$cmpMeta$.$tagName$);
|
950
950
|
i["s-rc"], s && Ns(e);
|
@@ -952,22 +952,22 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
952
952
|
Xs(e, t, i), r(), n(), Js(e);
|
953
953
|
}, Xs = (e, t, s) => {
|
954
954
|
try {
|
955
|
-
|
955
|
+
ne = 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
|
tt(a, e.$hostElement$);
|
958
958
|
}
|
959
|
-
return
|
959
|
+
return ne = null, null;
|
960
960
|
}, Js = (e) => {
|
961
961
|
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i = L("postUpdate", t), n = s;
|
962
|
-
e.$ancestorComponent$,
|
963
|
-
},
|
962
|
+
e.$ancestorComponent$, D(n, "componentDidRender"), e.$flags$ & 64 ? (D(n, "componentDidUpdate"), i()) : (e.$flags$ |= 64, D(n, "componentDidLoad"), i());
|
963
|
+
}, D = (e, t, s) => {
|
964
964
|
if (e && e[t])
|
965
965
|
try {
|
966
966
|
return e[t](s);
|
967
967
|
} catch (i) {
|
968
968
|
tt(i);
|
969
969
|
}
|
970
|
-
},
|
970
|
+
}, pe = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !Bt(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);
|
@@ -987,7 +987,7 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
987
987
|
if ((a & 18) === 2) {
|
988
988
|
if (l.componentShouldUpdate && l.componentShouldUpdate(s, o, t) === !1)
|
989
989
|
return;
|
990
|
-
|
990
|
+
Fe(n, !1);
|
991
991
|
}
|
992
992
|
}
|
993
993
|
}
|
@@ -1032,18 +1032,18 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, 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
1034
|
typeof o != "string" && (o = o[t.$modeName$ = Hs(e)]);
|
1035
|
-
const a =
|
1035
|
+
const a = He(s, t.$modeName$);
|
1036
1036
|
if (!dt.has(a)) {
|
1037
1037
|
const l = L("registerStyles", s.$tagName$);
|
1038
1038
|
Ls(a, o, !!(s.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
|
-
t.$ancestorComponent$, (() =>
|
1041
|
+
t.$ancestorComponent$, (() => Fe(t, !0))();
|
1042
1042
|
}, ni = (e) => {
|
1043
1043
|
}, ri = (e) => {
|
1044
1044
|
if (!(m.$flags$ & 1)) {
|
1045
1045
|
const t = yt(e), s = t.$cmpMeta$, i = L("connectedCallback", s.$tagName$);
|
1046
|
-
t.$flags$ & 1 ? (
|
1046
|
+
t.$flags$ & 1 ? (Ne(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];
|
1049
1049
|
delete e[n], e[n] = o;
|
@@ -1058,7 +1058,7 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
1058
1058
|
const t = yt(e);
|
1059
1059
|
t.$rmListeners$ && (t.$rmListeners$.map((s) => s()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
|
-
},
|
1061
|
+
}, We = (e, t) => {
|
1062
1062
|
const s = {
|
1063
1063
|
$flags$: t[0],
|
1064
1064
|
$tagName$: t[1]
|
@@ -1082,17 +1082,17 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
1084
|
}), e.is = s.$tagName$, si(e, s);
|
1085
|
-
},
|
1085
|
+
}, Ge = /* @__PURE__ */ new WeakMap(), yt = (e) => Ge.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
|
1093
|
-
},
|
1092
|
+
return Ne(e, s, t.$listeners$), Ge.set(e, s);
|
1093
|
+
}, ue = (e, t) => t in e, tt = (e, t) => (0, console.error)(e, t), dt = /* @__PURE__ */ new Map(), ci = [], fe = [], qe = [], di = (e, t) => (s) => {
|
1094
1094
|
e.push(s), Ut || (Ut = !0, t && m.$flags$ & 4 ? hi(Nt) : m.raf(Nt));
|
1095
|
-
},
|
1095
|
+
}, $e = (e) => {
|
1096
1096
|
for (let t = 0; t < e.length; t++)
|
1097
1097
|
try {
|
1098
1098
|
e[t](performance.now());
|
@@ -1101,8 +1101,8 @@ const vt = typeof window < "u" ? window : {}, x = vt.document || { head: {} }, N
|
|
1101
1101
|
}
|
1102
1102
|
e.length = 0;
|
1103
1103
|
}, Nt = () => {
|
1104
|
-
|
1105
|
-
}, hi = (e) => Es().then(e), pi = /* @__PURE__ */ di(
|
1104
|
+
$e(fe), $e(qe), (Ut = fe.length > 0) && m.raf(Nt);
|
1105
|
+
}, hi = (e) => Es().then(e), pi = /* @__PURE__ */ di(qe, !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 gi {
|
|
1119
1119
|
this.voca_component = t, this.voca_added = $i(/* @__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__ */ We(class extends Ue {
|
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__ */ Ge(class extends Ne {
|
|
1127
1127
|
this.vocaInternalUStats.emit(new gi(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
|
-
return
|
1130
|
+
return j(zt, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
1133
|
return mi;
|
@@ -1135,7 +1135,7 @@ const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Ge(class extends Ne {
|
|
1135
1135
|
}, [0, "telia-vst", {
|
1136
1136
|
dataTrackingId: [1, "data-tracking-id"]
|
1137
1137
|
}]);
|
1138
|
-
function
|
1138
|
+
function Ye() {
|
1139
1139
|
if (typeof customElements > "u")
|
1140
1140
|
return;
|
1141
1141
|
["telia-vst"].forEach((t) => {
|
@@ -1146,7 +1146,7 @@ function Ke() {
|
|
1146
1146
|
}
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
|
-
|
1149
|
+
Ye();
|
1150
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
|
}
|
@@ -1157,7 +1157,7 @@ function yi() {
|
|
1157
1157
|
function bi() {
|
1158
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__ */ We(class extends Ue {
|
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
|
1189
|
+
return j(zt, { 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) || Ye();
|
1211
1211
|
break;
|
1212
1212
|
}
|
1213
1213
|
});
|
@@ -1218,7 +1218,7 @@ wi();
|
|
1218
1218
|
* Copyright 2017 Google LLC
|
1219
1219
|
* SPDX-License-Identifier: BSD-3-Clause
|
1220
1220
|
*/
|
1221
|
-
const
|
1221
|
+
const W = (e) => (t, s) => {
|
1222
1222
|
s !== void 0 ? s.addInitializer(() => {
|
1223
1223
|
customElements.define(e, t);
|
1224
1224
|
}) : customElements.define(e, t);
|
@@ -1228,7 +1228,7 @@ const U = (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: rt, reflect: !1, hasChanged:
|
1231
|
+
const Ai = { attribute: !0, type: String, converter: rt, 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") {
|
@@ -1275,7 +1275,7 @@ const Ci = (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 K = (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
|
+
}, Ke = (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 Ei(e) {
|
1325
|
-
this._$AN !== void 0 ? (ht(this), this._$AM = e,
|
1325
|
+
this._$AN !== void 0 ? (ht(this), this._$AM = e, Ke(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
|
K(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 = Ei));
|
1341
1341
|
};
|
1342
|
-
let
|
1342
|
+
let Qe = 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), Ke(this), this.isConnected = t._$AU;
|
1348
1348
|
}
|
1349
1349
|
_$AO(t, s = !0) {
|
1350
1350
|
var i, n;
|
@@ -1368,10 +1368,10 @@ let Ze = class extends Gt {
|
|
1368
1368
|
* Copyright 2020 Google LLC
|
1369
1369
|
* SPDX-License-Identifier: BSD-3-Clause
|
1370
1370
|
*/
|
1371
|
-
const
|
1371
|
+
const Ze = () => new Oi();
|
1372
1372
|
class Oi {
|
1373
1373
|
}
|
1374
|
-
const Ot = /* @__PURE__ */ new WeakMap(),
|
1374
|
+
const Ot = /* @__PURE__ */ new WeakMap(), Xe = _t(class extends Qe {
|
1375
1375
|
render(e) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1404,7 +1404,7 @@ const Ot = /* @__PURE__ */ new WeakMap(), Je = _t(class extends Ze {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const
|
1407
|
+
const Gt = _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)
|
@@ -1432,7 +1432,7 @@ const qt = _t(class extends Gt {
|
|
1432
1432
|
}
|
1433
1433
|
}), it = (e, t, s) => {
|
1434
1434
|
e && s.style.setProperty(t, e);
|
1435
|
-
},
|
1435
|
+
}, Je = (e, t) => {
|
1436
1436
|
var s, i, n, r;
|
1437
1437
|
it((s = e.colors) == null ? void 0 : s.primaryBackground, "--primary-background", t), it(
|
1438
1438
|
(i = e.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
@@ -1453,7 +1453,7 @@ var Pi = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, xt = (e, t
|
|
1453
1453
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1454
1454
|
return i && n && Pi(t, s, n), n;
|
1455
1455
|
};
|
1456
|
-
class
|
1456
|
+
class U extends y {
|
1457
1457
|
constructor() {
|
1458
1458
|
super(...arguments), this.active = !1, this.loaded = !1;
|
1459
1459
|
}
|
@@ -1472,14 +1472,14 @@ class N extends y {
|
|
1472
1472
|
}
|
1473
1473
|
_applyBranding() {
|
1474
1474
|
var t;
|
1475
|
-
(t = this.application) != null && t.settings &&
|
1475
|
+
(t = this.application) != null && t.settings && Je(this.application.settings.branding, this);
|
1476
1476
|
}
|
1477
1477
|
async _renderSymbol() {
|
1478
1478
|
var r;
|
1479
1479
|
const t = (r = this.application) == null ? void 0 : r.triggerIcon;
|
1480
1480
|
if (!t)
|
1481
1481
|
return u;
|
1482
|
-
const s = async (o) => await import("./index-
|
1482
|
+
const s = async (o) => await import("./index-2232f2d4.mjs").then(
|
1483
1483
|
(l) => l[o]
|
1484
1484
|
), { type: i, content: n } = t;
|
1485
1485
|
switch (i) {
|
@@ -1497,7 +1497,7 @@ class N extends y {
|
|
1497
1497
|
}
|
1498
1498
|
render() {
|
1499
1499
|
return $`<button
|
1500
|
-
class=${
|
1500
|
+
class=${Gt({
|
1501
1501
|
trigger: !0,
|
1502
1502
|
active: this.active,
|
1503
1503
|
rendered: this.loaded
|
@@ -1535,7 +1535,7 @@ class N extends y {
|
|
1535
1535
|
</button>`;
|
1536
1536
|
}
|
1537
1537
|
}
|
1538
|
-
|
1538
|
+
U.styles = [
|
1539
1539
|
w`
|
1540
1540
|
:host {
|
1541
1541
|
--voca-rem-multiplier: 0.625;
|
@@ -1608,22 +1608,22 @@ N.styles = [
|
|
1608
1608
|
];
|
1609
1609
|
xt([
|
1610
1610
|
g({ attribute: !1 })
|
1611
|
-
],
|
1611
|
+
], U.prototype, "application", 2);
|
1612
1612
|
xt([
|
1613
1613
|
A()
|
1614
|
-
],
|
1614
|
+
], U.prototype, "active", 2);
|
1615
1615
|
xt([
|
1616
1616
|
A()
|
1617
|
-
],
|
1617
|
+
], U.prototype, "loaded", 2);
|
1618
1618
|
xt([
|
1619
1619
|
A()
|
1620
|
-
],
|
1621
|
-
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor,
|
1620
|
+
], U.prototype, "icon", 2);
|
1621
|
+
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, T = (e, t, s, i) => {
|
1622
1622
|
for (var n = i > 1 ? void 0 : i ? Ni(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1623
1623
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1624
1624
|
return i && n && Ui(t, s, n), n;
|
1625
1625
|
};
|
1626
|
-
const
|
1626
|
+
const Ve = (e) => {
|
1627
1627
|
class t extends e {
|
1628
1628
|
constructor() {
|
1629
1629
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1662,62 +1662,54 @@ const ts = (e) => {
|
|
1662
1662
|
box-sizing: border-box;
|
1663
1663
|
}
|
1664
1664
|
`
|
1665
|
-
],
|
1665
|
+
], T([
|
1666
1666
|
g()
|
1667
|
-
], t.prototype, "properties", 2),
|
1667
|
+
], t.prototype, "properties", 2), T([
|
1668
1668
|
g()
|
1669
|
-
], t.prototype, "context", 2),
|
1669
|
+
], t.prototype, "context", 2), T([
|
1670
1670
|
g()
|
1671
|
-
], t.prototype, "layout", 2),
|
1671
|
+
], t.prototype, "layout", 2), T([
|
1672
1672
|
g()
|
1673
|
-
], t.prototype, "name", 2),
|
1673
|
+
], t.prototype, "name", 2), T([
|
1674
1674
|
g()
|
1675
|
-
], t.prototype, "type", 2),
|
1675
|
+
], t.prototype, "type", 2), T([
|
1676
1676
|
g({ attribute: !1 })
|
1677
|
-
], t.prototype, "application", 2),
|
1677
|
+
], t.prototype, "application", 2), T([
|
1678
1678
|
g({ attribute: !1 })
|
1679
1679
|
], t.prototype, "parent", 2), t;
|
1680
1680
|
};
|
1681
|
-
|
1682
|
-
for (var n = i > 1 ? void 0 : i ? Ri(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1683
|
-
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1684
|
-
return i && n && Hi(t, s, n), n;
|
1685
|
-
};
|
1686
|
-
let Rt = class extends ts(y) {
|
1681
|
+
class ts extends Ve(y) {
|
1687
1682
|
render() {
|
1688
1683
|
return $`Non resolved component`;
|
1689
1684
|
}
|
1690
|
-
}
|
1691
|
-
|
1685
|
+
}
|
1686
|
+
ts.styles = [
|
1692
1687
|
w`
|
1693
1688
|
:host {
|
1694
1689
|
display: block;
|
1695
1690
|
}
|
1696
1691
|
`
|
1697
1692
|
];
|
1698
|
-
Rt = Mi([
|
1699
|
-
U("ace-unresolved-component")
|
1700
|
-
], Rt);
|
1701
1693
|
/**
|
1702
1694
|
* @license
|
1703
1695
|
* Copyright 2021 Google LLC
|
1704
1696
|
* SPDX-License-Identifier: BSD-3-Clause
|
1705
1697
|
*/
|
1706
|
-
function*
|
1698
|
+
function* Hi(e, t) {
|
1707
1699
|
if (e !== void 0) {
|
1708
1700
|
let s = 0;
|
1709
1701
|
for (const i of e)
|
1710
1702
|
yield t(i, s++);
|
1711
1703
|
}
|
1712
1704
|
}
|
1713
|
-
var
|
1714
|
-
for (var n = i > 1 ? void 0 : i ?
|
1705
|
+
var qt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(qt || {}), Ri = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, es = (e, t, s, i) => {
|
1706
|
+
for (var n = i > 1 ? void 0 : i ? Mi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1715
1707
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1716
|
-
return i && n &&
|
1708
|
+
return i && n && Ri(t, s, n), n;
|
1717
1709
|
};
|
1718
1710
|
let pt = class extends y {
|
1719
1711
|
constructor() {
|
1720
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1712
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Ze();
|
1721
1713
|
}
|
1722
1714
|
addChild(e) {
|
1723
1715
|
e.parent = this, this.nodes.push(e);
|
@@ -1725,15 +1717,15 @@ let pt = class extends y {
|
|
1725
1717
|
applyBranding() {
|
1726
1718
|
if (this.wrapperRef.value) {
|
1727
1719
|
const e = this.application.settings;
|
1728
|
-
e != null && e.branding &&
|
1720
|
+
e != null && e.branding && Je(e.branding, this.wrapperRef.value);
|
1729
1721
|
}
|
1730
1722
|
}
|
1731
1723
|
firstUpdated(e) {
|
1732
1724
|
this.applyBranding();
|
1733
1725
|
}
|
1734
1726
|
render() {
|
1735
|
-
return this.application.renderStrategy ===
|
1736
|
-
${
|
1727
|
+
return this.application.renderStrategy === qt.Trigger && this.renderRoot.host.classList.add("floating"), $`<div class="widget-container" ${Xe(this.wrapperRef)}>
|
1728
|
+
${Hi(this.nodes, (e) => e)}
|
1737
1729
|
</div>`;
|
1738
1730
|
}
|
1739
1731
|
};
|
@@ -1820,14 +1812,14 @@ es([
|
|
1820
1812
|
g({ attribute: !1 })
|
1821
1813
|
], pt.prototype, "application", 2);
|
1822
1814
|
pt = es([
|
1823
|
-
|
1815
|
+
W("ace-wrapper")
|
1824
1816
|
], pt);
|
1825
|
-
var
|
1826
|
-
for (var n = i > 1 ? void 0 : i ?
|
1817
|
+
var ji = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, wt = (e, t, s, i) => {
|
1818
|
+
for (var n = i > 1 ? void 0 : i ? Di(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1827
1819
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1828
|
-
return i && n &&
|
1820
|
+
return i && n && ji(t, s, n), n;
|
1829
1821
|
};
|
1830
|
-
let
|
1822
|
+
let B = class extends y {
|
1831
1823
|
constructor() {
|
1832
1824
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1833
1825
|
}
|
@@ -1852,14 +1844,14 @@ let z = class extends y {
|
|
1852
1844
|
render() {
|
1853
1845
|
if (!this.widget || this.status !== "activated")
|
1854
1846
|
return u;
|
1855
|
-
if (this.widget.renderStrategy ===
|
1856
|
-
const e = new
|
1847
|
+
if (this.widget.renderStrategy === qt.Trigger) {
|
1848
|
+
const e = new U();
|
1857
1849
|
return e.application = this.widget, e;
|
1858
1850
|
}
|
1859
1851
|
return this.widget.render();
|
1860
1852
|
}
|
1861
1853
|
};
|
1862
|
-
|
1854
|
+
B.styles = [
|
1863
1855
|
w`
|
1864
1856
|
:host {
|
1865
1857
|
display: block;
|
@@ -1868,43 +1860,44 @@ z.styles = [
|
|
1868
1860
|
];
|
1869
1861
|
wt([
|
1870
1862
|
g({ attribute: !0 })
|
1871
|
-
],
|
1863
|
+
], B.prototype, "name", 2);
|
1872
1864
|
wt([
|
1873
1865
|
A()
|
1874
|
-
],
|
1866
|
+
], B.prototype, "widget", 2);
|
1875
1867
|
wt([
|
1876
1868
|
A()
|
1877
|
-
],
|
1878
|
-
|
1879
|
-
|
1880
|
-
],
|
1881
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
1882
|
-
|
1883
|
-
|
1884
|
-
|
1869
|
+
], B.prototype, "status", 2);
|
1870
|
+
B = wt([
|
1871
|
+
W("ace-widget")
|
1872
|
+
], B);
|
1873
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", U);
|
1874
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ts);
|
1875
|
+
const Ii = /* @__PURE__ */ new WeakMap();
|
1876
|
+
let ge = 0;
|
1877
|
+
const Pt = /* @__PURE__ */ new Map(), me = /* @__PURE__ */ new WeakSet(), ve = () => new Promise((e) => requestAnimationFrame(e)), Bi = [{ opacity: 0 }], ye = [{ opacity: 0 }, { opacity: 1 }], be = (e, t) => {
|
1885
1878
|
const s = e - t;
|
1886
1879
|
return s === 0 ? void 0 : s;
|
1887
|
-
},
|
1880
|
+
}, _e = (e, t) => {
|
1888
1881
|
const s = e / t;
|
1889
1882
|
return s === 1 ? void 0 : s;
|
1890
1883
|
}, Lt = { left: (e, t) => {
|
1891
|
-
const s =
|
1884
|
+
const s = be(e, t);
|
1892
1885
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1893
1886
|
}, top: (e, t) => {
|
1894
|
-
const s =
|
1887
|
+
const s = be(e, t);
|
1895
1888
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
1896
1889
|
}, width: (e, t) => {
|
1897
1890
|
let s;
|
1898
1891
|
t === 0 && (t = 1, s = { width: "1px" });
|
1899
|
-
const i =
|
1892
|
+
const i = _e(e, t);
|
1900
1893
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1901
1894
|
}, height: (e, t) => {
|
1902
1895
|
let s;
|
1903
1896
|
t === 0 && (t = 1, s = { height: "1px" });
|
1904
|
-
const i =
|
1897
|
+
const i = _e(e, t);
|
1905
1898
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1906
|
-
} },
|
1907
|
-
class
|
1899
|
+
} }, zi = { duration: 333, easing: "ease-in-out" }, Fi = ["left", "top", "width", "height", "opacity", "color", "background"], xe = /* @__PURE__ */ new WeakMap();
|
1900
|
+
class Wi extends Qe {
|
1908
1901
|
constructor(t) {
|
1909
1902
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === bt.CHILD)
|
1910
1903
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1924,7 +1917,7 @@ class Yi extends Ze {
|
|
1924
1917
|
return u;
|
1925
1918
|
}
|
1926
1919
|
getController() {
|
1927
|
-
return
|
1920
|
+
return Ii.get(this.l);
|
1928
1921
|
}
|
1929
1922
|
isDisabled() {
|
1930
1923
|
var t;
|
@@ -1933,12 +1926,12 @@ class Yi extends Ze {
|
|
1933
1926
|
update(t, [s]) {
|
1934
1927
|
var n;
|
1935
1928
|
const i = this.l === void 0;
|
1936
|
-
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element,
|
1929
|
+
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element, xe.set(this.element, this)), this.optionsOrCallback = s, (i || typeof s != "function") && this.u(s), this.render(s);
|
1937
1930
|
}
|
1938
1931
|
u(t) {
|
1939
1932
|
t = t ?? {};
|
1940
1933
|
const s = this.getController();
|
1941
|
-
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1934
|
+
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Fi), this.options = t;
|
1942
1935
|
}
|
1943
1936
|
p() {
|
1944
1937
|
const t = {}, s = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
@@ -1965,7 +1958,7 @@ class Yi extends Ze {
|
|
1965
1958
|
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1966
1959
|
return;
|
1967
1960
|
let t;
|
1968
|
-
this.prepare(), await
|
1961
|
+
this.prepare(), await ve;
|
1969
1962
|
const s = this._(), i = this.A(this.options.keyframeOptions, s), n = this.p();
|
1970
1963
|
if (this.g !== void 0) {
|
1971
1964
|
const { from: r, to: o } = this.O(this.g, n, s);
|
@@ -1975,7 +1968,7 @@ class Yi extends Ze {
|
|
1975
1968
|
if (r) {
|
1976
1969
|
Pt.delete(this.options.inId);
|
1977
1970
|
const { from: o, to: a } = this.O(r, n, s);
|
1978
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1971
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, ge++, t.forEach((l) => l.zIndex = ge);
|
1979
1972
|
} else
|
1980
1973
|
this.options.in && (t = [...this.options.in, {}]);
|
1981
1974
|
}
|
@@ -1994,7 +1987,7 @@ class Yi extends Ze {
|
|
1994
1987
|
var s;
|
1995
1988
|
if (!this.o || (this.options.id !== void 0 && Pt.set(this.options.id, this.g), this.options.out === void 0))
|
1996
1989
|
return;
|
1997
|
-
if (this.prepare(), await
|
1990
|
+
if (this.prepare(), await ve(), (s = this.t) == null ? void 0 : s.isConnected) {
|
1998
1991
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
1999
1992
|
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
2000
1993
|
const n = this.p();
|
@@ -2020,19 +2013,19 @@ class Yi extends Ze {
|
|
2020
2013
|
_() {
|
2021
2014
|
const t = [];
|
2022
2015
|
for (let s = this.element.parentNode; s; s = s == null ? void 0 : s.parentNode) {
|
2023
|
-
const i =
|
2016
|
+
const i = xe.get(s);
|
2024
2017
|
i && !i.isDisabled() && i && t.push(i);
|
2025
2018
|
}
|
2026
2019
|
return t;
|
2027
2020
|
}
|
2028
2021
|
get isHostRendered() {
|
2029
|
-
const t =
|
2022
|
+
const t = me.has(this.l);
|
2030
2023
|
return t || this.l.updateComplete.then(() => {
|
2031
|
-
|
2024
|
+
me.add(this.l);
|
2032
2025
|
}), t;
|
2033
2026
|
}
|
2034
2027
|
A(t, s = this._()) {
|
2035
|
-
const i = { ...
|
2028
|
+
const i = { ...zi };
|
2036
2029
|
return s.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
2037
2030
|
}
|
2038
2031
|
O(t, s, i) {
|
@@ -2083,13 +2076,13 @@ class Yi extends Ze {
|
|
2083
2076
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
2084
2077
|
}
|
2085
2078
|
}
|
2086
|
-
const
|
2087
|
-
var
|
2088
|
-
for (var n = i > 1 ? void 0 : i ?
|
2079
|
+
const we = _t(Wi);
|
2080
|
+
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, At = (e, t, s, i) => {
|
2081
|
+
for (var n = i > 1 ? void 0 : i ? qi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2089
2082
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2090
|
-
return i && n &&
|
2083
|
+
return i && n && Gi(t, s, n), n;
|
2091
2084
|
};
|
2092
|
-
let
|
2085
|
+
let z = class extends y {
|
2093
2086
|
constructor() {
|
2094
2087
|
super(...arguments), this.loading = !1, this.entries = [];
|
2095
2088
|
}
|
@@ -2104,9 +2097,9 @@ let F = class extends y {
|
|
2104
2097
|
(e) => $`<div class="conversation-entry" tabindex="-1">
|
2105
2098
|
<conversation-entry
|
2106
2099
|
.entry=${e}
|
2107
|
-
${
|
2100
|
+
${we({
|
2108
2101
|
keyframeOptions: {},
|
2109
|
-
in:
|
2102
|
+
in: ye,
|
2110
2103
|
stabilizeOut: !0,
|
2111
2104
|
skipInitial: !1
|
2112
2105
|
})}
|
@@ -2116,9 +2109,9 @@ let F = class extends y {
|
|
2116
2109
|
)}
|
2117
2110
|
${this.loading ? $`<div
|
2118
2111
|
class="loader"
|
2119
|
-
${
|
2120
|
-
in:
|
2121
|
-
out:
|
2112
|
+
${we({
|
2113
|
+
in: ye,
|
2114
|
+
out: Bi,
|
2122
2115
|
skipInitial: !1
|
2123
2116
|
})}
|
2124
2117
|
>
|
@@ -2129,7 +2122,7 @@ let F = class extends y {
|
|
2129
2122
|
</div>`;
|
2130
2123
|
}
|
2131
2124
|
};
|
2132
|
-
|
2125
|
+
z.styles = [
|
2133
2126
|
w`
|
2134
2127
|
:host {
|
2135
2128
|
display: block;
|
@@ -2144,20 +2137,20 @@ F.styles = [
|
|
2144
2137
|
];
|
2145
2138
|
At([
|
2146
2139
|
g({ type: Boolean })
|
2147
|
-
],
|
2140
|
+
], z.prototype, "loading", 2);
|
2148
2141
|
At([
|
2149
2142
|
g({ attribute: !1 })
|
2150
|
-
],
|
2143
|
+
], z.prototype, "session", 2);
|
2151
2144
|
At([
|
2152
2145
|
A()
|
2153
|
-
],
|
2154
|
-
|
2155
|
-
|
2156
|
-
],
|
2157
|
-
var
|
2158
|
-
for (var n = i > 1 ? void 0 : i ?
|
2146
|
+
], z.prototype, "entries", 2);
|
2147
|
+
z = At([
|
2148
|
+
W("ace-conversation-session")
|
2149
|
+
], z);
|
2150
|
+
var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, ss = (e, t, s, i) => {
|
2151
|
+
for (var n = i > 1 ? void 0 : i ? Ki(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2159
2152
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2160
|
-
return i && n &&
|
2153
|
+
return i && n && Yi(t, s, n), n;
|
2161
2154
|
};
|
2162
2155
|
let ut = class extends y {
|
2163
2156
|
connectedCallback() {
|
@@ -2183,7 +2176,7 @@ let ut = class extends y {
|
|
2183
2176
|
return "";
|
2184
2177
|
case St.Agent:
|
2185
2178
|
return $`<div
|
2186
|
-
class=${
|
2179
|
+
class=${Gt({
|
2187
2180
|
"conversation-agent-message": !0,
|
2188
2181
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
2189
2182
|
})}
|
@@ -2320,12 +2313,12 @@ ss([
|
|
2320
2313
|
g({ attribute: !1 })
|
2321
2314
|
], ut.prototype, "entry", 2);
|
2322
2315
|
ut = ss([
|
2323
|
-
|
2316
|
+
W("conversation-entry")
|
2324
2317
|
], ut);
|
2325
|
-
var
|
2326
|
-
for (var n = i > 1 ? void 0 : i ?
|
2318
|
+
var Qi = Object.defineProperty, Zi = Object.getOwnPropertyDescriptor, is = (e, t, s, i) => {
|
2319
|
+
for (var n = i > 1 ? void 0 : i ? Zi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2327
2320
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2328
|
-
return i && n &&
|
2321
|
+
return i && n && Qi(t, s, n), n;
|
2329
2322
|
};
|
2330
2323
|
let ft = class extends y {
|
2331
2324
|
render() {
|
@@ -2362,14 +2355,14 @@ is([
|
|
2362
2355
|
g({ attribute: !1 })
|
2363
2356
|
], ft.prototype, "group", 2);
|
2364
2357
|
ft = is([
|
2365
|
-
|
2358
|
+
W("conversation-group")
|
2366
2359
|
], ft);
|
2367
2360
|
/**
|
2368
2361
|
* @license
|
2369
2362
|
* Copyright 2017 Google LLC
|
2370
2363
|
* SPDX-License-Identifier: BSD-3-Clause
|
2371
2364
|
*/
|
2372
|
-
class
|
2365
|
+
class Rt extends Wt {
|
2373
2366
|
constructor(t) {
|
2374
2367
|
if (super(t), this.et = u, t.type !== bt.CHILD)
|
2375
2368
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2388,17 +2381,17 @@ class Mt extends Gt {
|
|
2388
2381
|
return s.raw = s, this.vt = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
2389
2382
|
}
|
2390
2383
|
}
|
2391
|
-
|
2392
|
-
const
|
2393
|
-
var
|
2394
|
-
for (var n = i > 1 ? void 0 : i ?
|
2384
|
+
Rt.directiveName = "unsafeHTML", Rt.resultType = 1;
|
2385
|
+
const Xi = _t(Rt);
|
2386
|
+
var Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, ns = (e, t, s, i) => {
|
2387
|
+
for (var n = i > 1 ? void 0 : i ? Vi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2395
2388
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2396
|
-
return i && n &&
|
2389
|
+
return i && n && Ji(t, s, n), n;
|
2397
2390
|
};
|
2398
2391
|
let $t = class extends y {
|
2399
2392
|
render() {
|
2400
2393
|
return $`<div class="message-type-html">
|
2401
|
-
${
|
2394
|
+
${Xi(this.message.content)}
|
2402
2395
|
</div>`;
|
2403
2396
|
}
|
2404
2397
|
};
|
@@ -2421,19 +2414,19 @@ ns([
|
|
2421
2414
|
g({ attribute: !1 })
|
2422
2415
|
], $t.prototype, "message", 2);
|
2423
2416
|
$t = ns([
|
2424
|
-
|
2417
|
+
W("message-type-html")
|
2425
2418
|
], $t);
|
2426
|
-
var
|
2427
|
-
for (var n = i > 1 ? void 0 : i ?
|
2419
|
+
var tn = Object.defineProperty, en = Object.getOwnPropertyDescriptor, Yt = (e, t, s, i) => {
|
2420
|
+
for (var n = i > 1 ? void 0 : i ? en(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2428
2421
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2429
|
-
return i && n &&
|
2422
|
+
return i && n && tn(t, s, n), n;
|
2430
2423
|
};
|
2431
|
-
const
|
2424
|
+
const sn = (e) => {
|
2432
2425
|
e.scrollTo ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight;
|
2433
|
-
}, rs =
|
2434
|
-
class
|
2426
|
+
}, rs = Ve(y);
|
2427
|
+
class F extends rs {
|
2435
2428
|
constructor() {
|
2436
|
-
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef =
|
2429
|
+
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = Ze(), this.chatScrollHeight = 0;
|
2437
2430
|
}
|
2438
2431
|
async connectedCallback() {
|
2439
2432
|
super.connectedCallback();
|
@@ -2458,18 +2451,18 @@ class W extends rs {
|
|
2458
2451
|
const s = this.conversationContentRef.value;
|
2459
2452
|
s && setTimeout(() => {
|
2460
2453
|
const i = s.scrollHeight;
|
2461
|
-
i > this.chatScrollHeight && (
|
2454
|
+
i > this.chatScrollHeight && (sn(s), this.chatScrollHeight = i);
|
2462
2455
|
}, 1e3);
|
2463
2456
|
}
|
2464
2457
|
render() {
|
2465
2458
|
return $` <div
|
2466
2459
|
@action=${this._actionHandler}
|
2467
|
-
class=${
|
2460
|
+
class=${Gt({
|
2468
2461
|
conversation: !0,
|
2469
2462
|
"input-has-text": this.message.length > 0
|
2470
2463
|
})}
|
2471
2464
|
>
|
2472
|
-
<div class="conversation-content" ${
|
2465
|
+
<div class="conversation-content" ${Xe(this.conversationContentRef)}>
|
2473
2466
|
${this.session ? $`<ace-conversation-session
|
2474
2467
|
.session=${this.session}
|
2475
2468
|
></ace-conversation-session>` : u}
|
@@ -2489,7 +2482,7 @@ class W extends rs {
|
|
2489
2482
|
</div>`;
|
2490
2483
|
}
|
2491
2484
|
}
|
2492
|
-
|
2485
|
+
F.styles = [
|
2493
2486
|
rs.styles || [],
|
2494
2487
|
w`
|
2495
2488
|
:host {
|
@@ -2610,21 +2603,21 @@ W.styles = [
|
|
2610
2603
|
}
|
2611
2604
|
`
|
2612
2605
|
];
|
2613
|
-
|
2606
|
+
Yt([
|
2614
2607
|
A()
|
2615
|
-
],
|
2616
|
-
|
2608
|
+
], F.prototype, "message", 2);
|
2609
|
+
Yt([
|
2617
2610
|
A()
|
2618
|
-
],
|
2619
|
-
|
2611
|
+
], F.prototype, "platform", 2);
|
2612
|
+
Yt([
|
2620
2613
|
A()
|
2621
|
-
],
|
2622
|
-
const
|
2614
|
+
], F.prototype, "session", 2);
|
2615
|
+
const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2623
2616
|
__proto__: null,
|
2624
|
-
Conversation:
|
2625
|
-
default:
|
2617
|
+
Conversation: F,
|
2618
|
+
default: F
|
2626
2619
|
}, Symbol.toStringTag, { value: "Module" }));
|
2627
2620
|
export {
|
2628
|
-
|
2621
|
+
hn as c,
|
2629
2622
|
Ss as s
|
2630
2623
|
};
|