@telia-ace/widget-conversation-flamingo 1.1.27-rc.0 → 1.1.27-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-635c3b95.js → conversation-9a7c235d.js} +40 -39
- package/{conversation-d33093b4.mjs → conversation-e5c4f286.mjs} +277 -270
- package/{index-0aab3f70.mjs → index-3d874c26.mjs} +2 -2
- package/{index-0d2bc806.js → index-91f20257.js} +1 -1
- package/{index-afac30e6.mjs → index-becf5ea8.mjs} +1 -1
- package/{index-84d3f2f7.js → index-dac2e292.js} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -1,11 +1,11 @@
|
|
1
|
-
import { C as wt } from "./index-
|
1
|
+
import { C as wt } from "./index-becf5ea8.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const
|
8
|
-
let
|
7
|
+
const rt = globalThis, Ht = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Mt = Symbol(), Xt = /* @__PURE__ */ new WeakMap();
|
8
|
+
let Te = class {
|
9
9
|
constructor(t, s, i) {
|
10
10
|
if (this._$cssResult$ = !0, i !== Mt)
|
11
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -14,9 +14,9 @@ let Ee = class {
|
|
14
14
|
get styleSheet() {
|
15
15
|
let t = this.o;
|
16
16
|
const s = this.t;
|
17
|
-
if (
|
17
|
+
if (Ht && t === void 0) {
|
18
18
|
const i = s !== void 0 && s.length === 1;
|
19
|
-
i && (t =
|
19
|
+
i && (t = Xt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Xt.set(s, t));
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
}
|
@@ -24,7 +24,7 @@ let Ee = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const os = (e) => new
|
27
|
+
const os = (e) => new Te(typeof e == "string" ? e : e + "", void 0, Mt), _ = (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 Ee(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 Te(s, e, Mt);
|
36
36
|
}, as = (e, t) => {
|
37
|
-
if (
|
37
|
+
if (Ht)
|
38
38
|
e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
|
39
39
|
else
|
40
40
|
for (const s of t) {
|
41
|
-
const i = document.createElement("style"), n =
|
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
|
+
}, Jt = Ht ? (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 Ee(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, Vt = E.trustedTypes, fs = Vt ? Vt.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,16 +80,16 @@ const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return s;
|
83
|
-
} }, jt = (e, t) => !ls(e, t),
|
83
|
+
} }, jt = (e, t) => !ls(e, t), te = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: jt };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
|
-
let
|
85
|
+
let R = 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 = te) {
|
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 N = 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) ?? te;
|
113
113
|
}
|
114
114
|
static _$Ei() {
|
115
115
|
if (this.hasOwnProperty(W("elementProperties")))
|
@@ -144,9 +144,9 @@ let N = 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(Jt(n));
|
148
148
|
} else
|
149
|
-
t !== void 0 && s.push(
|
149
|
+
t !== void 0 && s.push(Jt(t));
|
150
150
|
return s;
|
151
151
|
}
|
152
152
|
static _$Eu(t, s) {
|
@@ -201,7 +201,7 @@ let N = class extends HTMLElement {
|
|
201
201
|
var r;
|
202
202
|
const i = this.constructor.elementProperties.get(t), n = this.constructor._$Eu(t, i);
|
203
203
|
if (n !== void 0 && i.reflect === !0) {
|
204
|
-
const o = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter :
|
204
|
+
const o = (((r = i.converter) == null ? void 0 : r.toAttribute) !== void 0 ? i.converter : ot).toAttribute(s, i.type);
|
205
205
|
this._$Em = t, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
206
206
|
}
|
207
207
|
}
|
@@ -209,7 +209,7 @@ let N = class extends HTMLElement {
|
|
209
209
|
var r;
|
210
210
|
const i = this.constructor, n = i._$Eh.get(t);
|
211
211
|
if (n !== void 0 && this._$Em !== n) {
|
212
|
-
const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter :
|
212
|
+
const o = i.getPropertyOptions(n), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((r = o.converter) == null ? void 0 : r.fromAttribute) !== void 0 ? o.converter : ot;
|
213
213
|
this._$Em = n, this[n] = a.fromAttribute(s, o.type), this._$Em = null;
|
214
214
|
}
|
215
215
|
}
|
@@ -293,19 +293,19 @@ let N = class extends HTMLElement {
|
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
|
296
|
+
R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[W("elementProperties")] = /* @__PURE__ */ new Map(), R[W("finalized")] = /* @__PURE__ */ new Map(), At == null || At({ ReactiveElement: R }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.1");
|
297
297
|
/**
|
298
298
|
* @license
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const G = globalThis,
|
303
|
-
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
305
|
-
function
|
302
|
+
const G = globalThis, at = G.trustedTypes, ee = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, ke = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Oe = "?" + S, $s = `<${Oe}>`, L = document, Y = () => L.createComment(""), K = (e) => e === null || typeof e != "object" && typeof e != "function", Pe = Array.isArray, gs = (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, se = /-->/g, ie = />/g, k = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ne = /'/g, re = /"/g, Le = /^(?:script|style|textarea|title)$/i, ms = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), $ = ms(1), C = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), oe = /* @__PURE__ */ new WeakMap(), P = L.createTreeWalker(L, 129);
|
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 ee !== void 0 ? ee.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, 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 f = o ===
|
319
|
-
r += o === F ? l + $s : h >= 0 ? (i.push(c), l.slice(0, h) +
|
317
|
+
p = o.lastIndex, o === F ? d[1] === "!--" ? o = se : d[1] !== void 0 ? o = ie : d[2] !== void 0 ? (Le.test(d[2]) && (n = RegExp("</" + d[2], "g")), o = k) : d[3] !== void 0 && (o = k) : o === k ? d[0] === ">" ? (o = n ?? F, h = -1) : d[1] === void 0 ? h = -2 : (h = o.lastIndex - d[2].length, c = d[1], o = d[3] === void 0 ? k : d[3] === '"' ? re : ne) : o === re || o === ne ? o = k : o === se || o === ie ? o = F : (o = k, n = void 0);
|
318
|
+
const f = o === k && e[a + 1].startsWith("/>") ? " " : "";
|
319
|
+
r += o === F ? l + $s : h >= 0 ? (i.push(c), l.slice(0, h) + ke + l.slice(h) + S + f) : l + S + (h === -2 ? a : f);
|
320
320
|
}
|
321
|
-
return [
|
321
|
+
return [Ue(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
323
|
class Q {
|
324
324
|
constructor({ strings: t, _$litType$: s }, i) {
|
@@ -326,30 +326,30 @@ class Q {
|
|
326
326
|
this.parts = [];
|
327
327
|
let r = 0, o = 0;
|
328
328
|
const a = t.length - 1, l = this.parts, [c, d] = vs(t, s);
|
329
|
-
if (this.el = Q.createElement(c, i),
|
329
|
+
if (this.el = Q.createElement(c, i), P.currentNode = this.el.content, s === 2) {
|
330
330
|
const h = this.el.content.firstChild;
|
331
331
|
h.replaceWith(...h.childNodes);
|
332
332
|
}
|
333
|
-
for (; (n =
|
333
|
+
for (; (n = P.nextNode()) !== null && l.length < a; ) {
|
334
334
|
if (n.nodeType === 1) {
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const h of n.getAttributeNames())
|
337
|
-
if (h.endsWith(
|
337
|
+
if (h.endsWith(ke)) {
|
338
338
|
const p = d[o++], f = n.getAttribute(h).split(S), x = /([.?@])?(.*)/.exec(p);
|
339
|
-
l.push({ type: 1, index: r, name: x[2], strings: f, ctor: x[1] === "." ? bs : x[1] === "?" ? _s : x[1] === "@" ? xs :
|
339
|
+
l.push({ type: 1, index: r, name: x[2], strings: f, ctor: x[1] === "." ? bs : x[1] === "?" ? _s : x[1] === "@" ? xs : gt }), n.removeAttribute(h);
|
340
340
|
} else
|
341
341
|
h.startsWith(S) && (l.push({ type: 6, index: r }), n.removeAttribute(h));
|
342
|
-
if (
|
342
|
+
if (Le.test(n.tagName)) {
|
343
343
|
const h = n.textContent.split(S), p = h.length - 1;
|
344
344
|
if (p > 0) {
|
345
|
-
n.textContent =
|
345
|
+
n.textContent = at ? at.emptyScript : "";
|
346
346
|
for (let f = 0; f < p; f++)
|
347
|
-
n.append(h[f], Y()),
|
347
|
+
n.append(h[f], Y()), P.nextNode(), l.push({ type: 2, index: ++r });
|
348
348
|
n.append(h[p], Y());
|
349
349
|
}
|
350
350
|
}
|
351
351
|
} else if (n.nodeType === 8)
|
352
|
-
if (n.data ===
|
352
|
+
if (n.data === Oe)
|
353
353
|
l.push({ type: 2, index: r });
|
354
354
|
else {
|
355
355
|
let h = -1;
|
@@ -360,7 +360,7 @@ class Q {
|
|
360
360
|
}
|
361
361
|
}
|
362
362
|
static createElement(t, s) {
|
363
|
-
const i =
|
363
|
+
const i = L.createElement("template");
|
364
364
|
return i.innerHTML = t, i;
|
365
365
|
}
|
366
366
|
}
|
@@ -383,17 +383,17 @@ class ys {
|
|
383
383
|
return this._$AM._$AU;
|
384
384
|
}
|
385
385
|
u(t) {
|
386
|
-
const { el: { content: s }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ??
|
387
|
-
|
388
|
-
let r =
|
386
|
+
const { el: { content: s }, parts: i } = this._$AD, n = ((t == null ? void 0 : t.creationScope) ?? L).importNode(s, !0);
|
387
|
+
P.currentNode = n;
|
388
|
+
let r = P.nextNode(), o = 0, a = 0, l = i[0];
|
389
389
|
for (; l !== void 0; ) {
|
390
390
|
if (o === l.index) {
|
391
391
|
let c;
|
392
392
|
l.type === 2 ? c = new X(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
|
-
o !== (l == null ? void 0 : l.index) && (r =
|
394
|
+
o !== (l == null ? void 0 : l.index) && (r = P.nextNode(), o++);
|
395
395
|
}
|
396
|
-
return
|
396
|
+
return P.currentNode = L, n;
|
397
397
|
}
|
398
398
|
p(t) {
|
399
399
|
let s = 0;
|
@@ -430,11 +430,11 @@ class X {
|
|
430
430
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
431
431
|
}
|
432
432
|
_(t) {
|
433
|
-
this._$AH !== u && K(this._$AH) ? this._$AA.nextSibling.data = t : this.$(
|
433
|
+
this._$AH !== u && K(this._$AH) ? this._$AA.nextSibling.data = t : this.$(L.createTextNode(t)), this._$AH = t;
|
434
434
|
}
|
435
435
|
g(t) {
|
436
436
|
var r;
|
437
|
-
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Q.createElement(
|
437
|
+
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Q.createElement(Ue(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,11 +443,11 @@ class X {
|
|
443
443
|
}
|
444
444
|
}
|
445
445
|
_$AC(t) {
|
446
|
-
let s =
|
447
|
-
return s === void 0 &&
|
446
|
+
let s = oe.get(t.strings);
|
447
|
+
return s === void 0 && oe.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)
|
@@ -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 gt {
|
470
470
|
get tagName() {
|
471
471
|
return this.element.tagName;
|
472
472
|
}
|
@@ -493,7 +493,7 @@ class $t {
|
|
493
493
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
494
494
|
}
|
495
495
|
}
|
496
|
-
class bs extends
|
496
|
+
class bs extends gt {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class bs extends $t {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let _s = class extends
|
504
|
+
let _s = class extends gt {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,7 +509,7 @@ let _s = class extends $t {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class xs extends
|
512
|
+
class xs extends gt {
|
513
513
|
constructor(t, s, i, n, r) {
|
514
514
|
super(t, s, i, n, r), this.type = 5;
|
515
515
|
}
|
@@ -551,7 +551,7 @@ const As = (e, t, s) => {
|
|
551
551
|
* Copyright 2017 Google LLC
|
552
552
|
* SPDX-License-Identifier: BSD-3-Clause
|
553
553
|
*/
|
554
|
-
let v = class extends
|
554
|
+
let v = class extends R {
|
555
555
|
constructor() {
|
556
556
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
557
557
|
}
|
@@ -576,12 +576,12 @@ let v = class extends N {
|
|
576
576
|
return C;
|
577
577
|
}
|
578
578
|
};
|
579
|
-
var
|
580
|
-
v._$litElement$ = !0, v.finalized = !0, (
|
579
|
+
var Ce;
|
580
|
+
v._$litElement$ = !0, v.finalized = !0, (Ce = globalThis.litElementHydrateSupport) == null || Ce.call(globalThis, { LitElement: v });
|
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>' }, N = {
|
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
|
668
|
+
let H, Re, mt, Ne = !1, lt = !1, Dt = !1, y = !1, ae = null, Pt = !1;
|
669
|
+
const vt = typeof window < "u" ? window : {}, w = vt.document || { head: {} }, He = vt.HTMLElement || class {
|
670
670
|
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -692,42 +692,42 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
692
692
|
} catch {
|
693
693
|
}
|
694
694
|
return !1;
|
695
|
-
})(),
|
695
|
+
})(), Me = (e, t, s, i) => {
|
696
696
|
s && s.map(([n, r, o]) => {
|
697
697
|
const a = Os(e, n), l = ks(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
|
}, ks = (e, t) => (s) => {
|
701
701
|
try {
|
702
|
-
|
702
|
+
N.lazyLoad || e.$hostElement$[t](s);
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
706
|
-
}, Os = (e, t) => t & 4 ? w : t & 8 ?
|
706
|
+
}, Os = (e, t) => t & 4 ? w : t & 8 ? 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
|
-
},
|
711
|
-
let i =
|
712
|
-
Ts && s ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t,
|
709
|
+
} : (e & 2) !== 0, le = "http://www.w3.org/1999/xlink", U = (e, t = "") => () => {
|
710
|
+
}, ce = /* @__PURE__ */ new WeakMap(), Ls = (e, t, s) => {
|
711
|
+
let i = ht.get(e);
|
712
|
+
Ts && s ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, ht.set(e, i);
|
713
713
|
}, Us = (e, t, s, i) => {
|
714
|
-
let n =
|
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 = ce.get(e), a;
|
719
|
+
o || ce.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
|
-
},
|
724
|
-
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n =
|
723
|
+
}, Rs = (e) => {
|
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
|
-
},
|
726
|
+
}, je = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$), Ns = (e) => ci.map((t) => t(e)).find((t) => !!t), de = {}, Hs = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xhtml", js = (e) => e != null, It = (e) => (e = typeof e, e === "object" || e === "function"), j = (e, t, ...s) => {
|
727
727
|
let i = null, n = null, r = null, o = !1, a = !1, l = [];
|
728
728
|
const c = (h) => {
|
729
729
|
for (let p = 0; p < h.length; p++)
|
730
|
-
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !It(i)) && (i = String(i)), o && a ? l[l.length - 1].$text$ += i : l.push(o ?
|
730
|
+
i = h[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !It(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);
|
@@ -738,9 +738,9 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
738
738
|
}
|
739
739
|
if (typeof e == "function")
|
740
740
|
return e(t === null ? {} : t, l, Is);
|
741
|
-
const d =
|
741
|
+
const d = ct(e, null);
|
742
742
|
return d.$attrs$ = t, l.length > 0 && (d.$children$ = l), d.$key$ = n, d.$name$ = r, d;
|
743
|
-
},
|
743
|
+
}, ct = (e, t) => {
|
744
744
|
const s = {
|
745
745
|
$flags$: 0,
|
746
746
|
$tag$: e,
|
@@ -750,9 +750,9 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
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(he).forEach(t),
|
754
|
+
map: (e, t) => e.map(he).map(t).map(Bs)
|
755
|
+
}, he = (e) => ({
|
756
756
|
vattrs: e.$attrs$,
|
757
757
|
vchildren: e.$children$,
|
758
758
|
vkey: e.$key$,
|
@@ -764,13 +764,13 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
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
|
-
const t =
|
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
|
+
}, pe = (e, t, s, i, n, r) => {
|
770
770
|
if (s !== i) {
|
771
|
-
let o =
|
771
|
+
let o = ge(e, t), a = t.toLowerCase();
|
772
772
|
if (t === "class") {
|
773
|
-
const l = e.classList, c =
|
773
|
+
const l = e.classList, c = ue(s), d = ue(i);
|
774
774
|
l.remove(...c.filter((h) => h && !d.includes(h))), l.add(...d.filter((h) => h && !c.includes(h)));
|
775
775
|
} else if (t === "style") {
|
776
776
|
for (const l in s)
|
@@ -781,7 +781,7 @@ const mt = typeof window < "u" ? window : {}, w = mt.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) : ge(vt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s && m.rel(e, t, s, !1), i && m.ael(e, t, i, !1);
|
785
785
|
else {
|
786
786
|
const l = It(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
@@ -795,18 +795,18 @@ const mt = typeof window < "u" ? window : {}, w = mt.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(le, t) : e.removeAttribute(t)) : (!o || r & 4 || n) && !l && (i = i === !0 ? "" : i, c ? e.setAttributeNS(le, 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/, ue = (e) => e ? e.split(zs) : [], De = (e, t, s, i) => {
|
802
|
+
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || de, o = t.$attrs$ || de;
|
803
803
|
for (i in r)
|
804
|
-
i in o ||
|
804
|
+
i in o || pe(n, i, r[i], void 0, s, t.$flags$);
|
805
805
|
for (i in o)
|
806
|
-
|
807
|
-
},
|
806
|
+
pe(n, i, r[i], o[i], s, t.$flags$);
|
807
|
+
}, dt = (e, t, s, i) => {
|
808
808
|
let n = t.$children$[s], r = 0, o, a, l;
|
809
|
-
if (
|
809
|
+
if (Ne || (Dt = !0, n.$tag$ === "slot" && (H && i.classList.add(H + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
@@ -817,29 +817,29 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
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 ? Hs : Ms, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), De(null, n, y), js(H) && o["s-si"] !== H && o.classList.add(o["s-si"] = H), n.$children$)
|
821
821
|
for (r = 0; r < n.$children$.length; ++r)
|
822
|
-
a =
|
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"] =
|
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$ && Z(e.$elm$, !1)), o;
|
826
826
|
}, Z = (e, t) => {
|
827
827
|
m.$flags$ |= 1;
|
828
828
|
const s = e.childNodes;
|
829
829
|
for (let i = s.length - 1; i >= 0; i--) {
|
830
830
|
const n = s[i];
|
831
|
-
n["s-hn"] !==
|
831
|
+
n["s-hn"] !== mt && n["s-ol"] && (ze(n).insertBefore(n, zt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Dt = !0), t && Z(n, t);
|
832
832
|
}
|
833
833
|
m.$flags$ &= -2;
|
834
|
-
},
|
834
|
+
}, Ie = (e, t, s, i, n, r) => {
|
835
835
|
let o = e["s-cr"] && e["s-cr"].parentNode || e, a;
|
836
|
-
for (o.shadowRoot && o.tagName ===
|
837
|
-
i[n] && (a =
|
838
|
-
},
|
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, zt(t))));
|
838
|
+
}, Be = (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$, Ge(i), lt = !0, n["s-ol"] ? n["s-ol"].remove() : Z(n, !0), n.remove());
|
841
841
|
}, Fs = (e, t, s, i) => {
|
842
|
-
let n = 0, r = 0, o = 0, a = 0, l = t.length - 1, c = t[0], d = t[l], h = i.length - 1, p = i[0], f = i[h], x,
|
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], f = i[h], x, st;
|
843
843
|
for (; n <= l && r <= h; )
|
844
844
|
if (c == null)
|
845
845
|
c = t[++n];
|
@@ -849,13 +849,13 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
849
849
|
p = i[++r];
|
850
850
|
else if (f == null)
|
851
851
|
f = i[--h];
|
852
|
-
else if (
|
852
|
+
else if (it(c, p))
|
853
853
|
M(c, p), c = t[++n], p = i[++r];
|
854
|
-
else if (
|
854
|
+
else if (it(d, f))
|
855
855
|
M(d, f), d = t[--l], f = i[--h];
|
856
|
-
else if (
|
856
|
+
else if (it(c, f))
|
857
857
|
(c.$tag$ === "slot" || f.$tag$ === "slot") && Z(c.$elm$.parentNode, !1), M(c, f), e.insertBefore(c.$elm$, d.$elm$.nextSibling), c = t[++n], f = i[--h];
|
858
|
-
else if (
|
858
|
+
else if (it(d, p))
|
859
859
|
(c.$tag$ === "slot" || f.$tag$ === "slot") && Z(d.$elm$.parentNode, !1), M(d, p), e.insertBefore(d.$elm$, c.$elm$), d = t[--l], p = i[++r];
|
860
860
|
else {
|
861
861
|
for (o = -1, a = n; a <= l; ++a)
|
@@ -863,14 +863,14 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
863
863
|
o = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
o >= 0 ? (
|
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 && ze(c.$elm$).insertBefore(x, zt(c.$elm$));
|
867
867
|
}
|
868
|
-
n > l ?
|
869
|
-
},
|
868
|
+
n > l ? Ie(e, i[h + 1] == null ? null : i[h + 1].$elm$, s, i, r, h) : r > h && Be(t, n, l);
|
869
|
+
}, it = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1, zt = (e) => e && e["s-ol"] || e, ze = (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" ||
|
873
|
-
},
|
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 && Be(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
|
+
}, 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++)
|
876
876
|
if (s = t[i], s.nodeType === 1) {
|
@@ -886,31 +886,31 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
886
886
|
break;
|
887
887
|
}
|
888
888
|
}
|
889
|
-
|
889
|
+
Fe(s);
|
890
890
|
}
|
891
|
-
}, b = [],
|
891
|
+
}, b = [], We = (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"] && (fe(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
|
+
fe(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
|
-
t.nodeType === 1 &&
|
904
|
+
t.nodeType === 1 && We(t);
|
905
905
|
}
|
906
|
-
},
|
907
|
-
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(
|
906
|
+
}, fe = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Ge = (e) => {
|
907
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Ge);
|
908
908
|
}, Ws = (e, t) => {
|
909
|
-
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ ||
|
910
|
-
|
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, H = s["s-sc"], Re = s["s-cr"], Ne = (i.$flags$ & 1) !== 0, lt = !1, M(n, r);
|
911
911
|
{
|
912
912
|
if (m.$flags$ |= 1, Dt) {
|
913
|
-
|
913
|
+
We(r.$elm$);
|
914
914
|
let o, a, l, c, d, h, p = 0;
|
915
915
|
for (; p < b.length; p++)
|
916
916
|
o = b[p], a = o.$nodeToRelocate$, a["s-ol"] || (l = w.createTextNode(""), l["s-nr"] = a, a.parentNode.insertBefore(a["s-ol"] = l, a));
|
@@ -925,7 +925,7 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
|
928
|
+
lt && Fe(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,24 +941,24 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
941
941
|
const i = m.ce(t, s);
|
942
942
|
return e.dispatchEvent(i), i;
|
943
943
|
}, Ks = (e, t) => {
|
944
|
-
},
|
945
|
-
const s = e.$hostElement$, i =
|
944
|
+
}, qe = (e, t) => (e.$flags$ |= 16, Ks(e, e.$ancestorComponent$), pi(() => Qs(e, t))), Qs = (e, t) => {
|
945
|
+
const s = e.$hostElement$, i = U("scheduleUpdate", e.$cmpMeta$.$tagName$), n = s;
|
946
946
|
let r;
|
947
|
-
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r =
|
947
|
+
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = $e(r, () => D(n, "componentWillRender")), i(), $e(r, () => Zs(e, n, t));
|
948
948
|
}, Zs = async (e, t, s) => {
|
949
|
-
const i = e.$hostElement$, n =
|
950
|
-
i["s-rc"], s &&
|
951
|
-
const r =
|
949
|
+
const i = e.$hostElement$, n = U("update", e.$cmpMeta$.$tagName$);
|
950
|
+
i["s-rc"], s && Rs(e);
|
951
|
+
const r = U("render", e.$cmpMeta$.$tagName$);
|
952
952
|
Xs(e, t, i), r(), n(), Js(e);
|
953
953
|
}, Xs = (e, t, s) => {
|
954
954
|
try {
|
955
|
-
|
955
|
+
ae = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (N.hasRenderFn || N.reflect) && (N.vdomRender || N.reflect) && (N.hydrateServerSide || Ws(e, t));
|
956
956
|
} catch (a) {
|
957
957
|
J(a, e.$hostElement$);
|
958
958
|
}
|
959
|
-
return
|
959
|
+
return ae = null, null;
|
960
960
|
}, Js = (e) => {
|
961
|
-
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i =
|
961
|
+
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i = 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());
|
963
963
|
}, D = (e, t, s) => {
|
964
964
|
if (e && e[t])
|
@@ -967,8 +967,8 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
967
967
|
} catch (i) {
|
968
968
|
J(i);
|
969
969
|
}
|
970
|
-
},
|
971
|
-
const n =
|
970
|
+
}, $e = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !It(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, ti = (e, t) => yt(e).$instanceValues$.get(t), ei = (e, t, s, i) => {
|
971
|
+
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);
|
974
974
|
if (s !== o && !c) {
|
@@ -987,7 +987,7 @@ const mt = typeof window < "u" ? window : {}, w = mt.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
|
+
qe(n, !1);
|
991
991
|
}
|
992
992
|
}
|
993
993
|
}
|
@@ -1031,19 +1031,19 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
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$ =
|
1035
|
-
const a =
|
1036
|
-
if (!
|
1037
|
-
const l =
|
1034
|
+
typeof o != "string" && (o = o[t.$modeName$ = Ns(e)]);
|
1035
|
+
const a = je(s, t.$modeName$);
|
1036
|
+
if (!ht.has(a)) {
|
1037
|
+
const l = U("registerStyles", s.$tagName$);
|
1038
1038
|
Ls(a, o, !!(s.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
|
-
t.$ancestorComponent$, (() =>
|
1041
|
+
t.$ancestorComponent$, (() => qe(t, !0))();
|
1042
1042
|
}, ni = (e) => {
|
1043
1043
|
}, ri = (e) => {
|
1044
1044
|
if (!(m.$flags$ & 1)) {
|
1045
|
-
const t =
|
1046
|
-
t.$flags$ & 1 ? (
|
1045
|
+
const t = yt(e), s = t.$cmpMeta$, i = U("connectedCallback", s.$tagName$);
|
1046
|
+
t.$flags$ & 1 ? (Me(e, t, s.$listeners$), ni(t.$lazyInstance$)) : (t.$flags$ |= 1, s.$flags$ & 12 && oi(e), s.$members$ && Object.entries(s.$members$).map(([n, [r]]) => {
|
1047
1047
|
if (r & 31 && e.hasOwnProperty(n)) {
|
1048
1048
|
const o = e[n];
|
1049
1049
|
delete e[n], e[n] = o;
|
@@ -1055,10 +1055,10 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
1055
1055
|
t["s-cn"] = !0, e.insertBefore(t, e.firstChild);
|
1056
1056
|
}, ai = (e) => {
|
1057
1057
|
if (!(m.$flags$ & 1)) {
|
1058
|
-
const t =
|
1058
|
+
const t = yt(e);
|
1059
1059
|
t.$rmListeners$ && (t.$rmListeners$.map((s) => s()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
|
-
},
|
1061
|
+
}, Ye = (e, t) => {
|
1062
1062
|
const s = {
|
1063
1063
|
$flags$: t[0],
|
1064
1064
|
$tagName$: t[1]
|
@@ -1082,17 +1082,17 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
1084
|
}), e.is = s.$tagName$, si(e, s);
|
1085
|
-
},
|
1085
|
+
}, Ke = /* @__PURE__ */ new WeakMap(), yt = (e) => Ke.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 Me(e, s, t.$listeners$), Ke.set(e, s);
|
1093
|
+
}, ge = (e, t) => t in e, J = (e, t) => (0, console.error)(e, t), ht = /* @__PURE__ */ new Map(), ci = [], me = [], Qe = [], di = (e, t) => (s) => {
|
1094
1094
|
e.push(s), Pt || (Pt = !0, t && m.$flags$ & 4 ? hi(Lt) : m.raf(Lt));
|
1095
|
-
},
|
1095
|
+
}, ve = (e) => {
|
1096
1096
|
for (let t = 0; t < e.length; t++)
|
1097
1097
|
try {
|
1098
1098
|
e[t](performance.now());
|
@@ -1101,8 +1101,8 @@ const mt = typeof window < "u" ? window : {}, w = mt.document || { head: {} }, N
|
|
1101
1101
|
}
|
1102
1102
|
e.length = 0;
|
1103
1103
|
}, Lt = () => {
|
1104
|
-
|
1105
|
-
}, hi = (e) => Cs().then(e), pi = /* @__PURE__ */ di(
|
1104
|
+
ve(me), ve(Qe), (Pt = me.length > 0) && m.raf(Lt);
|
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 = [
|
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__ */ Ye(class extends He {
|
1123
1123
|
constructor() {
|
1124
1124
|
super(), this.__registerHost(), this.vocaInternalUStats = qs(this, "vocaInternalUStats", 7);
|
1125
1125
|
}
|
@@ -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 Ze() {
|
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
|
+
Ze();
|
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__ */
|
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 He {
|
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) || Ze();
|
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:
|
1231
|
+
const Ai = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: jt }, Si = (e = Ai, t, s) => {
|
1232
1232
|
const { kind: i, metadata: n } = s;
|
1233
1233
|
let r = globalThis.litPropertyMetadata.get(n);
|
1234
1234
|
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(s.name, e), i === "accessor") {
|
@@ -1274,7 +1274,7 @@ const Ei = (e) => e.strings === void 0;
|
|
1274
1274
|
* Copyright 2017 Google LLC
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
|
-
const
|
1277
|
+
const bt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, _t = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
1278
1278
|
let Ft = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
@@ -1304,14 +1304,14 @@ const q = (e, t) => {
|
|
1304
1304
|
for (const n of s)
|
1305
1305
|
(i = n._$AO) == null || i.call(n, t, !1), q(n, t);
|
1306
1306
|
return !0;
|
1307
|
-
},
|
1307
|
+
}, pt = (e) => {
|
1308
1308
|
let t, s;
|
1309
1309
|
do {
|
1310
1310
|
if ((t = e._$AM) === void 0)
|
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
|
+
}, Xe = (e) => {
|
1315
1315
|
for (let t; t = e._$AM; e = t) {
|
1316
1316
|
let s = t._$AN;
|
1317
1317
|
if (s === void 0)
|
@@ -1322,7 +1322,7 @@ const q = (e, t) => {
|
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
1324
|
function Ci(e) {
|
1325
|
-
this._$AN !== void 0 ? (
|
1325
|
+
this._$AN !== void 0 ? (pt(this), this._$AM = e, Xe(this)) : this._$AM = e;
|
1326
1326
|
}
|
1327
1327
|
function Ti(e, t = !1, s = 0) {
|
1328
1328
|
const i = this._$AH, n = this._$AN;
|
@@ -1330,25 +1330,25 @@ function Ti(e, t = !1, s = 0) {
|
|
1330
1330
|
if (t)
|
1331
1331
|
if (Array.isArray(i))
|
1332
1332
|
for (let r = s; r < i.length; r++)
|
1333
|
-
q(i[r], !1),
|
1333
|
+
q(i[r], !1), pt(i[r]);
|
1334
1334
|
else
|
1335
|
-
i != null && (q(i, !1),
|
1335
|
+
i != null && (q(i, !1), pt(i));
|
1336
1336
|
else
|
1337
1337
|
q(this, e);
|
1338
1338
|
}
|
1339
1339
|
const ki = (e) => {
|
1340
|
-
e.type ==
|
1340
|
+
e.type == bt.CHILD && (e._$AP ?? (e._$AP = Ti), e._$AQ ?? (e._$AQ = Ci));
|
1341
1341
|
};
|
1342
|
-
let
|
1342
|
+
let Je = class extends Ft {
|
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), Xe(this), this.isConnected = t._$AU;
|
1348
1348
|
}
|
1349
1349
|
_$AO(t, s = !0) {
|
1350
1350
|
var i, n;
|
1351
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), s && (q(this, t),
|
1351
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), s && (q(this, t), pt(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
1354
|
if (Ei(this._$Ct))
|
@@ -1368,10 +1368,10 @@ let Ze = class extends Ft {
|
|
1368
1368
|
* Copyright 2020 Google LLC
|
1369
1369
|
* SPDX-License-Identifier: BSD-3-Clause
|
1370
1370
|
*/
|
1371
|
-
const
|
1371
|
+
const Wt = () => new Oi();
|
1372
1372
|
class Oi {
|
1373
1373
|
}
|
1374
|
-
const Tt = /* @__PURE__ */ new WeakMap(),
|
1374
|
+
const Tt = /* @__PURE__ */ new WeakMap(), Gt = _t(class extends Je {
|
1375
1375
|
render(e) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1404,10 +1404,10 @@ const Tt = /* @__PURE__ */ new WeakMap(), Je = bt(class extends Ze {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const
|
1407
|
+
const qt = _t(class extends Ft {
|
1408
1408
|
constructor(e) {
|
1409
1409
|
var t;
|
1410
|
-
if (super(e), e.type !==
|
1410
|
+
if (super(e), e.type !== bt.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2)
|
1411
1411
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
1412
1412
|
}
|
1413
1413
|
render(e) {
|
@@ -1430,35 +1430,35 @@ const Wt = bt(class extends Ft {
|
|
1430
1430
|
}
|
1431
1431
|
return C;
|
1432
1432
|
}
|
1433
|
-
}),
|
1433
|
+
}), nt = (e, t, s) => {
|
1434
1434
|
e && s.style.setProperty(t, e);
|
1435
1435
|
}, Ve = (e, t) => {
|
1436
1436
|
var s, i, n, r;
|
1437
|
-
|
1437
|
+
nt((s = e.colors) == null ? void 0 : s.primaryBackground, "--primary-background", t), nt(
|
1438
1438
|
(i = e.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1439
1439
|
"--text-on-primary-background",
|
1440
1440
|
t
|
1441
|
-
),
|
1441
|
+
), nt(
|
1442
1442
|
(n = e.colors) == null ? void 0 : n.secondaryBackground,
|
1443
1443
|
"--secondary-background",
|
1444
1444
|
t
|
1445
|
-
),
|
1445
|
+
), nt(
|
1446
1446
|
(r = e.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
1447
1447
|
"--text-on-secondary-background",
|
1448
1448
|
t
|
1449
1449
|
);
|
1450
1450
|
};
|
1451
|
-
var Pi = Object.defineProperty, Li = Object.getOwnPropertyDescriptor,
|
1451
|
+
var Pi = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, tt = (e, t, s, i) => {
|
1452
1452
|
for (var n = i > 1 ? void 0 : i ? Li(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
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 T extends v {
|
1457
1457
|
constructor() {
|
1458
|
-
super(...arguments), this.active = !1, this.loaded = !1;
|
1458
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = Wt();
|
1459
1459
|
}
|
1460
1460
|
async connectedCallback() {
|
1461
|
-
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
1461
|
+
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)`);
|
1462
1462
|
}
|
1463
1463
|
_toggleActive() {
|
1464
1464
|
var t;
|
@@ -1482,7 +1482,7 @@ class U extends v {
|
|
1482
1482
|
const i = (c = this.application) == null ? void 0 : c.triggerIcon;
|
1483
1483
|
if (!i)
|
1484
1484
|
return u;
|
1485
|
-
const n = async (d) => await import("./index-
|
1485
|
+
const n = async (d) => await import("./index-3d874c26.mjs").then(
|
1486
1486
|
(p) => p[d]
|
1487
1487
|
), { type: r, content: o } = i;
|
1488
1488
|
switch (r) {
|
@@ -1498,14 +1498,18 @@ class U extends v {
|
|
1498
1498
|
return u;
|
1499
1499
|
}
|
1500
1500
|
}
|
1501
|
+
setOffset(t) {
|
1502
|
+
this.offset = t;
|
1503
|
+
}
|
1501
1504
|
render() {
|
1502
1505
|
return $`<button
|
1503
|
-
class=${
|
1506
|
+
class=${qt({
|
1504
1507
|
trigger: !0,
|
1505
1508
|
active: this.active,
|
1506
1509
|
rendered: this.loaded
|
1507
1510
|
})}
|
1508
1511
|
@click=${this._toggleActive}
|
1512
|
+
${Gt(this.buttonRef)}
|
1509
1513
|
>
|
1510
1514
|
${this.icon}
|
1511
1515
|
<span class="trigger-close">
|
@@ -1538,7 +1542,7 @@ class U extends v {
|
|
1538
1542
|
</button>`;
|
1539
1543
|
}
|
1540
1544
|
}
|
1541
|
-
|
1545
|
+
T.styles = [
|
1542
1546
|
_`
|
1543
1547
|
:host {
|
1544
1548
|
--voca-rem-multiplier: 0.625;
|
@@ -1613,20 +1617,23 @@ U.styles = [
|
|
1613
1617
|
}
|
1614
1618
|
`
|
1615
1619
|
];
|
1616
|
-
|
1620
|
+
tt([
|
1617
1621
|
g({ attribute: !1 })
|
1618
|
-
],
|
1619
|
-
|
1622
|
+
], T.prototype, "application", 2);
|
1623
|
+
tt([
|
1624
|
+
A()
|
1625
|
+
], T.prototype, "active", 2);
|
1626
|
+
tt([
|
1620
1627
|
A()
|
1621
|
-
],
|
1622
|
-
|
1628
|
+
], T.prototype, "loaded", 2);
|
1629
|
+
tt([
|
1623
1630
|
A()
|
1624
|
-
],
|
1625
|
-
|
1631
|
+
], T.prototype, "icon", 2);
|
1632
|
+
tt([
|
1626
1633
|
A()
|
1627
|
-
],
|
1628
|
-
var Ui = Object.defineProperty,
|
1629
|
-
for (var n = i > 1 ? void 0 : i ?
|
1634
|
+
], T.prototype, "offset", 2);
|
1635
|
+
var Ui = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, O = (e, t, s, i) => {
|
1636
|
+
for (var n = i > 1 ? void 0 : i ? Ri(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1630
1637
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1631
1638
|
return i && n && Ui(t, s, n), n;
|
1632
1639
|
};
|
@@ -1669,19 +1676,19 @@ const ts = (e) => {
|
|
1669
1676
|
box-sizing: border-box;
|
1670
1677
|
}
|
1671
1678
|
`
|
1672
|
-
],
|
1679
|
+
], O([
|
1673
1680
|
g()
|
1674
|
-
], t.prototype, "properties", 2),
|
1681
|
+
], t.prototype, "properties", 2), O([
|
1675
1682
|
g()
|
1676
|
-
], t.prototype, "context", 2),
|
1683
|
+
], t.prototype, "context", 2), O([
|
1677
1684
|
g()
|
1678
|
-
], t.prototype, "layout", 2),
|
1685
|
+
], t.prototype, "layout", 2), O([
|
1679
1686
|
g()
|
1680
|
-
], t.prototype, "name", 2),
|
1687
|
+
], t.prototype, "name", 2), O([
|
1681
1688
|
g()
|
1682
|
-
], t.prototype, "type", 2),
|
1689
|
+
], t.prototype, "type", 2), O([
|
1683
1690
|
g({ attribute: !1 })
|
1684
|
-
], t.prototype, "application", 2),
|
1691
|
+
], t.prototype, "application", 2), O([
|
1685
1692
|
g({ attribute: !1 })
|
1686
1693
|
], t.prototype, "parent", 2), t;
|
1687
1694
|
};
|
@@ -1702,21 +1709,21 @@ es.styles = [
|
|
1702
1709
|
* Copyright 2021 Google LLC
|
1703
1710
|
* SPDX-License-Identifier: BSD-3-Clause
|
1704
1711
|
*/
|
1705
|
-
function*
|
1712
|
+
function* Ni(e, t) {
|
1706
1713
|
if (e !== void 0) {
|
1707
1714
|
let s = 0;
|
1708
1715
|
for (const i of e)
|
1709
1716
|
yield t(i, s++);
|
1710
1717
|
}
|
1711
1718
|
}
|
1712
|
-
var
|
1719
|
+
var Yt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Yt || {}), Hi = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ji = (e, t, s, i) => {
|
1713
1720
|
for (var n = i > 1 ? void 0 : i ? Mi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1714
1721
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1715
|
-
return i && n &&
|
1722
|
+
return i && n && Hi(t, s, n), n;
|
1716
1723
|
};
|
1717
|
-
class
|
1724
|
+
class Kt extends v {
|
1718
1725
|
constructor() {
|
1719
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1726
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Wt();
|
1720
1727
|
}
|
1721
1728
|
addChild(t) {
|
1722
1729
|
t.parent = this, this.nodes.push(t);
|
@@ -1739,12 +1746,12 @@ class qt extends v {
|
|
1739
1746
|
this.applyBranding(), this.applyStyles();
|
1740
1747
|
}
|
1741
1748
|
render() {
|
1742
|
-
return this.application.renderStrategy ===
|
1743
|
-
${
|
1749
|
+
return this.application.renderStrategy === Yt.Trigger && this.renderRoot.host.classList.add("floating"), $`<div class="widget-container" ${Gt(this.wrapperRef)}>
|
1750
|
+
${Ni(this.nodes, (t) => t)}
|
1744
1751
|
</div>`;
|
1745
1752
|
}
|
1746
1753
|
}
|
1747
|
-
|
1754
|
+
Kt.styles = _`
|
1748
1755
|
:host {
|
1749
1756
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1750
1757
|
--spacing-xs: 0.2rem;
|
@@ -1838,13 +1845,13 @@ qt.styles = _`
|
|
1838
1845
|
`;
|
1839
1846
|
ji([
|
1840
1847
|
g({ attribute: !1 })
|
1841
|
-
],
|
1842
|
-
var Di = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor,
|
1848
|
+
], Kt.prototype, "application", 2);
|
1849
|
+
var Di = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Qt = (e, t, s, i) => {
|
1843
1850
|
for (var n = i > 1 ? void 0 : i ? Ii(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1844
1851
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1845
1852
|
return i && n && Di(t, s, n), n;
|
1846
1853
|
};
|
1847
|
-
class
|
1854
|
+
class et extends v {
|
1848
1855
|
constructor() {
|
1849
1856
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1850
1857
|
}
|
@@ -1869,61 +1876,61 @@ class tt extends v {
|
|
1869
1876
|
render() {
|
1870
1877
|
if (!this.widget || this.status !== "activated")
|
1871
1878
|
return u;
|
1872
|
-
if (this.widget.renderStrategy ===
|
1873
|
-
const t = new
|
1879
|
+
if (this.widget.renderStrategy === Yt.Trigger) {
|
1880
|
+
const t = new T();
|
1874
1881
|
return t.application = this.widget, t;
|
1875
1882
|
}
|
1876
1883
|
return this.widget.render();
|
1877
1884
|
}
|
1878
1885
|
}
|
1879
|
-
|
1886
|
+
et.styles = [
|
1880
1887
|
_`
|
1881
1888
|
:host {
|
1882
1889
|
display: block;
|
1883
1890
|
}
|
1884
1891
|
`
|
1885
1892
|
];
|
1886
|
-
|
1893
|
+
Qt([
|
1887
1894
|
g({ attribute: !0 })
|
1888
|
-
],
|
1889
|
-
|
1895
|
+
], et.prototype, "name", 2);
|
1896
|
+
Qt([
|
1890
1897
|
A()
|
1891
|
-
],
|
1892
|
-
|
1898
|
+
], et.prototype, "widget", 2);
|
1899
|
+
Qt([
|
1893
1900
|
A()
|
1894
|
-
],
|
1895
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
1901
|
+
], et.prototype, "status", 2);
|
1902
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", T);
|
1896
1903
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", es);
|
1897
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
1898
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
1904
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Kt);
|
1905
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", et);
|
1899
1906
|
const Bi = /* @__PURE__ */ new WeakMap();
|
1900
|
-
let
|
1901
|
-
const kt = /* @__PURE__ */ new Map(),
|
1907
|
+
let ye = 0;
|
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) => {
|
1902
1909
|
const s = e - t;
|
1903
1910
|
return s === 0 ? void 0 : s;
|
1904
|
-
},
|
1911
|
+
}, Ae = (e, t) => {
|
1905
1912
|
const s = e / t;
|
1906
1913
|
return s === 1 ? void 0 : s;
|
1907
1914
|
}, Ot = { left: (e, t) => {
|
1908
|
-
const s =
|
1915
|
+
const s = we(e, t);
|
1909
1916
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1910
1917
|
}, top: (e, t) => {
|
1911
|
-
const s =
|
1918
|
+
const s = we(e, t);
|
1912
1919
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
1913
1920
|
}, width: (e, t) => {
|
1914
1921
|
let s;
|
1915
1922
|
t === 0 && (t = 1, s = { width: "1px" });
|
1916
|
-
const i =
|
1923
|
+
const i = Ae(e, t);
|
1917
1924
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1918
1925
|
}, height: (e, t) => {
|
1919
1926
|
let s;
|
1920
1927
|
t === 0 && (t = 1, s = { height: "1px" });
|
1921
|
-
const i =
|
1928
|
+
const i = Ae(e, t);
|
1922
1929
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1923
|
-
} }, Fi = { duration: 333, easing: "ease-in-out" }, Wi = ["left", "top", "width", "height", "opacity", "color", "background"],
|
1924
|
-
class Gi extends
|
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 {
|
1925
1932
|
constructor(t) {
|
1926
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type ===
|
1933
|
+
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === bt.CHILD)
|
1927
1934
|
throw Error("The `animate` directive must be used in attribute position.");
|
1928
1935
|
this.createFinished();
|
1929
1936
|
}
|
@@ -1950,7 +1957,7 @@ class Gi extends Ze {
|
|
1950
1957
|
update(t, [s]) {
|
1951
1958
|
var n;
|
1952
1959
|
const i = this.l === void 0;
|
1953
|
-
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element,
|
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);
|
1954
1961
|
}
|
1955
1962
|
u(t) {
|
1956
1963
|
t = t ?? {};
|
@@ -1982,7 +1989,7 @@ class Gi extends Ze {
|
|
1982
1989
|
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1983
1990
|
return;
|
1984
1991
|
let t;
|
1985
|
-
this.prepare(), await
|
1992
|
+
this.prepare(), await _e;
|
1986
1993
|
const s = this._(), i = this.A(this.options.keyframeOptions, s), n = this.p();
|
1987
1994
|
if (this.g !== void 0) {
|
1988
1995
|
const { from: r, to: o } = this.O(this.g, n, s);
|
@@ -1992,7 +1999,7 @@ class Gi extends Ze {
|
|
1992
1999
|
if (r) {
|
1993
2000
|
kt.delete(this.options.inId);
|
1994
2001
|
const { from: o, to: a } = this.O(r, n, s);
|
1995
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
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);
|
1996
2003
|
} else
|
1997
2004
|
this.options.in && (t = [...this.options.in, {}]);
|
1998
2005
|
}
|
@@ -2011,7 +2018,7 @@ class Gi extends Ze {
|
|
2011
2018
|
var s;
|
2012
2019
|
if (!this.o || (this.options.id !== void 0 && kt.set(this.options.id, this.g), this.options.out === void 0))
|
2013
2020
|
return;
|
2014
|
-
if (this.prepare(), await
|
2021
|
+
if (this.prepare(), await _e(), (s = this.t) == null ? void 0 : s.isConnected) {
|
2015
2022
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
2016
2023
|
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
2017
2024
|
const n = this.p();
|
@@ -2037,15 +2044,15 @@ class Gi extends Ze {
|
|
2037
2044
|
_() {
|
2038
2045
|
const t = [];
|
2039
2046
|
for (let s = this.element.parentNode; s; s = s == null ? void 0 : s.parentNode) {
|
2040
|
-
const i =
|
2047
|
+
const i = Se.get(s);
|
2041
2048
|
i && !i.isDisabled() && i && t.push(i);
|
2042
2049
|
}
|
2043
2050
|
return t;
|
2044
2051
|
}
|
2045
2052
|
get isHostRendered() {
|
2046
|
-
const t =
|
2053
|
+
const t = be.has(this.l);
|
2047
2054
|
return t || this.l.updateComplete.then(() => {
|
2048
|
-
|
2055
|
+
be.add(this.l);
|
2049
2056
|
}), t;
|
2050
2057
|
}
|
2051
2058
|
A(t, s = this._()) {
|
@@ -2100,7 +2107,7 @@ class Gi extends Ze {
|
|
2100
2107
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
2101
2108
|
}
|
2102
2109
|
}
|
2103
|
-
const
|
2110
|
+
const Ee = _t(Gi);
|
2104
2111
|
var qi = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, xt = (e, t, s, i) => {
|
2105
2112
|
for (var n = i > 1 ? void 0 : i ? Yi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2106
2113
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
@@ -2127,9 +2134,9 @@ let B = class extends v {
|
|
2127
2134
|
(e) => $`<div class="conversation-entry" tabindex="-1">
|
2128
2135
|
<conversation-entry
|
2129
2136
|
.entry=${e}
|
2130
|
-
${
|
2137
|
+
${Ee({
|
2131
2138
|
keyframeOptions: {},
|
2132
|
-
in:
|
2139
|
+
in: xe,
|
2133
2140
|
stabilizeOut: !0,
|
2134
2141
|
skipInitial: !1
|
2135
2142
|
})}
|
@@ -2138,9 +2145,9 @@ let B = class extends v {
|
|
2138
2145
|
</div>`
|
2139
2146
|
)}
|
2140
2147
|
${this.loading ? $`<ace-typing-state
|
2141
|
-
${
|
2148
|
+
${Ee({
|
2142
2149
|
keyframeOptions: {},
|
2143
|
-
in:
|
2150
|
+
in: xe,
|
2144
2151
|
out: zi,
|
2145
2152
|
stabilizeOut: !0,
|
2146
2153
|
skipInitial: !1
|
@@ -2179,7 +2186,7 @@ var Ki = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, ss = (e, t
|
|
2179
2186
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2180
2187
|
return i && n && Ki(t, s, n), n;
|
2181
2188
|
};
|
2182
|
-
let
|
2189
|
+
let ut = class extends v {
|
2183
2190
|
connectedCallback() {
|
2184
2191
|
var e;
|
2185
2192
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -2203,7 +2210,7 @@ let pt = class extends v {
|
|
2203
2210
|
return "";
|
2204
2211
|
case wt.Agent:
|
2205
2212
|
return $`<div
|
2206
|
-
class=${
|
2213
|
+
class=${qt({
|
2207
2214
|
"conversation-agent-message": !0,
|
2208
2215
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
2209
2216
|
})}
|
@@ -2251,7 +2258,7 @@ let pt = class extends v {
|
|
2251
2258
|
}
|
2252
2259
|
}
|
2253
2260
|
};
|
2254
|
-
|
2261
|
+
ut.styles = [
|
2255
2262
|
_`
|
2256
2263
|
:host {
|
2257
2264
|
box-sizing: border-box;
|
@@ -2338,16 +2345,16 @@ pt.styles = [
|
|
2338
2345
|
];
|
2339
2346
|
ss([
|
2340
2347
|
g({ attribute: !1 })
|
2341
|
-
],
|
2342
|
-
|
2348
|
+
], ut.prototype, "entry", 2);
|
2349
|
+
ut = ss([
|
2343
2350
|
V("conversation-entry")
|
2344
|
-
],
|
2351
|
+
], ut);
|
2345
2352
|
var Zi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, is = (e, t, s, i) => {
|
2346
2353
|
for (var n = i > 1 ? void 0 : i ? Xi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2347
2354
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2348
2355
|
return i && n && Zi(t, s, n), n;
|
2349
2356
|
};
|
2350
|
-
let
|
2357
|
+
let ft = class extends v {
|
2351
2358
|
render() {
|
2352
2359
|
return $`
|
2353
2360
|
<div class="message-group">
|
@@ -2362,7 +2369,7 @@ let ut = class extends v {
|
|
2362
2369
|
`;
|
2363
2370
|
}
|
2364
2371
|
};
|
2365
|
-
|
2372
|
+
ft.styles = [
|
2366
2373
|
_`
|
2367
2374
|
:host {
|
2368
2375
|
box-sizing: border-box;
|
@@ -2380,16 +2387,16 @@ ut.styles = [
|
|
2380
2387
|
];
|
2381
2388
|
is([
|
2382
2389
|
g({ attribute: !1 })
|
2383
|
-
],
|
2384
|
-
|
2390
|
+
], ft.prototype, "group", 2);
|
2391
|
+
ft = is([
|
2385
2392
|
V("conversation-group")
|
2386
|
-
],
|
2393
|
+
], ft);
|
2387
2394
|
var Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, tn = (e, t, s, i) => {
|
2388
2395
|
for (var n = i > 1 ? void 0 : i ? Vi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2389
2396
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2390
2397
|
return i && n && Ji(t, s, n), n;
|
2391
2398
|
};
|
2392
|
-
let
|
2399
|
+
let Rt = class extends v {
|
2393
2400
|
render() {
|
2394
2401
|
return $`<div class="container">
|
2395
2402
|
<div class="dot"></div>
|
@@ -2398,7 +2405,7 @@ let Nt = class extends v {
|
|
2398
2405
|
</div>`;
|
2399
2406
|
}
|
2400
2407
|
};
|
2401
|
-
|
2408
|
+
Rt.styles = [
|
2402
2409
|
_`
|
2403
2410
|
:host {
|
2404
2411
|
display: block;
|
@@ -2435,17 +2442,17 @@ Nt.styles = [
|
|
2435
2442
|
}
|
2436
2443
|
`
|
2437
2444
|
];
|
2438
|
-
|
2445
|
+
Rt = tn([
|
2439
2446
|
V("ace-typing-state")
|
2440
|
-
],
|
2447
|
+
], Rt);
|
2441
2448
|
/**
|
2442
2449
|
* @license
|
2443
2450
|
* Copyright 2017 Google LLC
|
2444
2451
|
* SPDX-License-Identifier: BSD-3-Clause
|
2445
2452
|
*/
|
2446
|
-
class
|
2453
|
+
class Nt extends Ft {
|
2447
2454
|
constructor(t) {
|
2448
|
-
if (super(t), this.et = u, t.type !==
|
2455
|
+
if (super(t), this.et = u, t.type !== bt.CHILD)
|
2449
2456
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
2450
2457
|
}
|
2451
2458
|
render(t) {
|
@@ -2462,21 +2469,21 @@ class Ht extends Ft {
|
|
2462
2469
|
return s.raw = s, this.vt = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
2463
2470
|
}
|
2464
2471
|
}
|
2465
|
-
|
2466
|
-
const en =
|
2472
|
+
Nt.directiveName = "unsafeHTML", Nt.resultType = 1;
|
2473
|
+
const en = _t(Nt);
|
2467
2474
|
var sn = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, ns = (e, t, s, i) => {
|
2468
2475
|
for (var n = i > 1 ? void 0 : i ? nn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2469
2476
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2470
2477
|
return i && n && sn(t, s, n), n;
|
2471
2478
|
};
|
2472
|
-
let
|
2479
|
+
let $t = class extends v {
|
2473
2480
|
render() {
|
2474
2481
|
return $`<div class="message-type-html">
|
2475
2482
|
${en(this.message.content)}
|
2476
2483
|
</div>`;
|
2477
2484
|
}
|
2478
2485
|
};
|
2479
|
-
|
2486
|
+
$t.styles = [
|
2480
2487
|
_`
|
2481
2488
|
:host {
|
2482
2489
|
box-sizing: border-box;
|
@@ -2493,11 +2500,11 @@ ft.styles = [
|
|
2493
2500
|
];
|
2494
2501
|
ns([
|
2495
2502
|
g({ attribute: !1 })
|
2496
|
-
],
|
2497
|
-
|
2503
|
+
], $t.prototype, "message", 2);
|
2504
|
+
$t = ns([
|
2498
2505
|
V("message-type-html")
|
2499
|
-
],
|
2500
|
-
var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor,
|
2506
|
+
], $t);
|
2507
|
+
var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, Zt = (e, t, s, i) => {
|
2501
2508
|
for (var n = i > 1 ? void 0 : i ? on(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2502
2509
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2503
2510
|
return i && n && rn(t, s, n), n;
|
@@ -2507,7 +2514,7 @@ const an = (e) => {
|
|
2507
2514
|
}, rs = ts(v);
|
2508
2515
|
class z extends rs {
|
2509
2516
|
constructor() {
|
2510
|
-
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef =
|
2517
|
+
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = Wt(), this.chatScrollHeight = 0;
|
2511
2518
|
}
|
2512
2519
|
async connectedCallback() {
|
2513
2520
|
super.connectedCallback();
|
@@ -2538,12 +2545,12 @@ class z extends rs {
|
|
2538
2545
|
render() {
|
2539
2546
|
return $` <div
|
2540
2547
|
@action=${this._actionHandler}
|
2541
|
-
class=${
|
2548
|
+
class=${qt({
|
2542
2549
|
conversation: !0,
|
2543
2550
|
"input-has-text": this.message.length > 0
|
2544
2551
|
})}
|
2545
2552
|
>
|
2546
|
-
<div class="conversation-content" ${
|
2553
|
+
<div class="conversation-content" ${Gt(this.conversationContentRef)}>
|
2547
2554
|
${this.session ? $`<ace-conversation-session
|
2548
2555
|
@updated=${this.onSessionUpdated}
|
2549
2556
|
.session=${this.session}
|
@@ -2674,13 +2681,13 @@ z.styles = [
|
|
2674
2681
|
}
|
2675
2682
|
`
|
2676
2683
|
];
|
2677
|
-
|
2684
|
+
Zt([
|
2678
2685
|
A()
|
2679
2686
|
], z.prototype, "message", 2);
|
2680
|
-
|
2687
|
+
Zt([
|
2681
2688
|
A()
|
2682
2689
|
], z.prototype, "platform", 2);
|
2683
|
-
|
2690
|
+
Zt([
|
2684
2691
|
A()
|
2685
2692
|
], z.prototype, "session", 2);
|
2686
2693
|
const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|