@telia-ace/widget-conversation-flamingo 1.1.12-rc.3 → 1.1.12-rc.5
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-8e924136.js → conversation-a8bfac8a.js} +29 -29
- package/{conversation-a518bd92.mjs → conversation-cea6b886.mjs} +244 -246
- package/conversation-platform.d.ts +1 -0
- package/{index-231900d1.mjs → index-104d237e.mjs} +4 -7
- package/{index-b34ddf78.js → index-161bd0e8.js} +1 -1
- package/{index-592f145b.js → index-e010cbfc.js} +2 -2
- package/{index-b5ca9962.mjs → index-e96c1436.mjs} +2 -2
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -1,11 +1,11 @@
|
|
1
|
-
import { C as St } from "./index-
|
1
|
+
import { C as St } from "./index-104d237e.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
7
|
const rt = globalThis, jt = rt.ShadowRoot && (rt.ShadyCSS === void 0 || rt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Dt = Symbol(), Qt = /* @__PURE__ */ new WeakMap();
|
8
|
-
let
|
8
|
+
let Ce = class {
|
9
9
|
constructor(t, s, i) {
|
10
10
|
if (this._$cssResult$ = !0, i !== Dt)
|
11
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -24,7 +24,7 @@ let Ee = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const
|
27
|
+
const os = (e) => new Ce(typeof e == "string" ? e : e + "", void 0, Dt), 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,8 +32,8 @@ const as = (e) => new Ee(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
|
36
|
-
},
|
35
|
+
return new Ce(s, e, Dt);
|
36
|
+
}, as = (e, t) => {
|
37
37
|
if (jt)
|
38
38
|
e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
|
39
39
|
else
|
@@ -45,17 +45,17 @@ const as = (e) => new Ee(typeof e == "string" ? e : e + "", void 0, Dt), w = (e,
|
|
45
45
|
let s = "";
|
46
46
|
for (const i of t.cssRules)
|
47
47
|
s += i.cssText;
|
48
|
-
return
|
48
|
+
return os(s);
|
49
49
|
})(e) : e;
|
50
50
|
/**
|
51
51
|
* @license
|
52
52
|
* Copyright 2017 Google LLC
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
54
54
|
*/
|
55
|
-
const { is:
|
55
|
+
const { is: ls, defineProperty: cs, getOwnPropertyDescriptor: ds, getOwnPropertyNames: hs, getOwnPropertySymbols: ps, getPrototypeOf: us } = Object, C = globalThis, Xt = C.trustedTypes, fs = Xt ? Xt.emptyScript : "", Ct = C.reactiveElementPolyfillSupport, q = (e, t) => e, ot = { toAttribute(e, t) {
|
56
56
|
switch (t) {
|
57
57
|
case Boolean:
|
58
|
-
e = e ?
|
58
|
+
e = e ? fs : null;
|
59
59
|
break;
|
60
60
|
case Object:
|
61
61
|
case Array:
|
@@ -80,7 +80,7 @@ const { is: cs, defineProperty: ds, getOwnPropertyDescriptor: hs, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return s;
|
83
|
-
} }, It = (e, t) => !
|
83
|
+
} }, It = (e, t) => !ls(e, t), Jt = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: It };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), C.litPropertyMetadata ?? (C.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
85
|
let H = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
@@ -92,11 +92,11 @@ let H = class extends HTMLElement {
|
|
92
92
|
static createProperty(t, s = Jt) {
|
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
|
-
n !== void 0 &&
|
95
|
+
n !== void 0 && cs(this.prototype, t, n);
|
96
96
|
}
|
97
97
|
}
|
98
98
|
static getPropertyDescriptor(t, s, i) {
|
99
|
-
const { get: n, set: r } =
|
99
|
+
const { get: n, set: r } = ds(this.prototype, t) ?? { get() {
|
100
100
|
return this[s];
|
101
101
|
}, set(o) {
|
102
102
|
this[s] = o;
|
@@ -114,14 +114,14 @@ let H = class extends HTMLElement {
|
|
114
114
|
static _$Ei() {
|
115
115
|
if (this.hasOwnProperty(q("elementProperties")))
|
116
116
|
return;
|
117
|
-
const t =
|
117
|
+
const t = us(this);
|
118
118
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
119
119
|
}
|
120
120
|
static finalize() {
|
121
121
|
if (this.hasOwnProperty(q("finalized")))
|
122
122
|
return;
|
123
123
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(q("properties"))) {
|
124
|
-
const s = this.properties, i = [...
|
124
|
+
const s = this.properties, i = [...hs(s), ...ps(s)];
|
125
125
|
for (const n of i)
|
126
126
|
this.createProperty(n, s[n]);
|
127
127
|
}
|
@@ -176,7 +176,7 @@ let H = class extends HTMLElement {
|
|
176
176
|
}
|
177
177
|
createRenderRoot() {
|
178
178
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
179
|
-
return
|
179
|
+
return as(t, this.constructor.elementStyles), t;
|
180
180
|
}
|
181
181
|
connectedCallback() {
|
182
182
|
var t;
|
@@ -299,33 +299,33 @@ H.elementStyles = [], H.shadowRootOptions = { mode: "open" }, H[q("elementProper
|
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const Y = globalThis, at = Y.trustedTypes, Vt = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0,
|
302
|
+
const Y = globalThis, at = Y.trustedTypes, Vt = at ? at.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ee = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Te = "?" + S, $s = `<${Te}>`, U = document, Q = () => U.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
303
|
\f\r]`, G = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, te = /-->/g, ee = />/g, O = RegExp(`>|${Et}(?:([^\\s"'>=/]+)(${Et}*=${Et}*(?:[^
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), se = /'/g, ie = /"/g,
|
305
|
-
function
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), se = /'/g, ie = /"/g, Oe = /^(?: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"), ne = /* @__PURE__ */ new WeakMap(), L = U.createTreeWalker(U, 129);
|
305
|
+
function Pe(e, t) {
|
306
306
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
308
308
|
return Vt !== void 0 ? Vt.createHTML(t) : t;
|
309
309
|
}
|
310
|
-
const
|
310
|
+
const vs = (e, t) => {
|
311
311
|
const s = e.length - 1, i = [];
|
312
312
|
let n, r = t === 2 ? "<svg>" : "", o = G;
|
313
313
|
for (let a = 0; a < s; a++) {
|
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 = te : h[1] !== void 0 ? o = ee : h[2] !== void 0 ? (
|
317
|
+
p = o.lastIndex, o === G ? h[1] === "!--" ? o = te : h[1] !== void 0 ? o = ee : h[2] !== void 0 ? (Oe.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = O) : h[3] !== void 0 && (o = O) : o === O ? 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 ? O : h[3] === '"' ? ie : se) : o === ie || o === se ? o = O : o === te || o === ee ? o = G : (o = O, n = void 0);
|
318
318
|
const f = o === O && e[a + 1].startsWith("/>") ? " " : "";
|
319
|
-
r += o === G ? l +
|
319
|
+
r += o === G ? l + $s : d >= 0 ? (i.push(c), l.slice(0, d) + Ee + l.slice(d) + S + f) : l + S + (d === -2 ? a : f);
|
320
320
|
}
|
321
|
-
return [
|
321
|
+
return [Pe(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
323
|
class X {
|
324
324
|
constructor({ strings: t, _$litType$: s }, i) {
|
325
325
|
let n;
|
326
326
|
this.parts = [];
|
327
327
|
let r = 0, o = 0;
|
328
|
-
const a = t.length - 1, l = this.parts, [c, h] =
|
328
|
+
const a = t.length - 1, l = this.parts, [c, h] = vs(t, s);
|
329
329
|
if (this.el = X.createElement(c, i), L.currentNode = this.el.content, s === 2) {
|
330
330
|
const d = this.el.content.firstChild;
|
331
331
|
d.replaceWith(...d.childNodes);
|
@@ -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(Ee)) {
|
338
338
|
const p = h[o++], f = n.getAttribute(d).split(S), _ = /([.?@])?(.*)/.exec(p);
|
339
|
-
l.push({ type: 1, index: r, name: _[2], strings: f, ctor: _[1] === "." ?
|
339
|
+
l.push({ type: 1, index: r, name: _[2], strings: f, ctor: _[1] === "." ? bs : _[1] === "?" ? _s : _[1] === "@" ? xs : mt }), n.removeAttribute(d);
|
340
340
|
} else
|
341
341
|
d.startsWith(S) && (l.push({ type: 6, index: r }), n.removeAttribute(d));
|
342
|
-
if (
|
342
|
+
if (Oe.test(n.tagName)) {
|
343
343
|
const d = n.textContent.split(S), p = d.length - 1;
|
344
344
|
if (p > 0) {
|
345
345
|
n.textContent = at ? at.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 === Te)
|
353
353
|
l.push({ type: 2, index: r });
|
354
354
|
else {
|
355
355
|
let d = -1;
|
@@ -372,7 +372,7 @@ function B(e, t, s = e, i) {
|
|
372
372
|
const r = Z(t) ? void 0 : t._$litDirective$;
|
373
373
|
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(e), n._$AT(e, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = n : s._$Cl = n), n !== void 0 && (t = B(e, n._$AS(e, t.values), n, i)), t;
|
374
374
|
}
|
375
|
-
class
|
375
|
+
class ys {
|
376
376
|
constructor(t, s) {
|
377
377
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = s;
|
378
378
|
}
|
@@ -389,7 +389,7 @@ class bs {
|
|
389
389
|
for (; l !== void 0; ) {
|
390
390
|
if (o === l.index) {
|
391
391
|
let c;
|
392
|
-
l.type === 2 ? c = new V(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new
|
392
|
+
l.type === 2 ? c = new V(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new ws(r, this, t)), this._$AV.push(c), l = i[++a];
|
393
393
|
}
|
394
394
|
o !== (l == null ? void 0 : l.index) && (r = L.nextNode(), o++);
|
395
395
|
}
|
@@ -421,7 +421,7 @@ class V {
|
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
423
|
_$AI(t, s = this) {
|
424
|
-
t = B(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) :
|
424
|
+
t = B(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,11 +434,11 @@ 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(Pe(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 {
|
441
|
-
const o = new
|
441
|
+
const o = new ys(n, this), a = o.u(this.options);
|
442
442
|
o.p(s), this.$(a), this._$AH = o;
|
443
443
|
}
|
444
444
|
}
|
@@ -447,7 +447,7 @@ class V {
|
|
447
447
|
return s === void 0 && ne.set(t.strings, s = new X(t)), s;
|
448
448
|
}
|
449
449
|
T(t) {
|
450
|
-
|
450
|
+
ke(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 V {
|
|
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 mt {
|
470
470
|
get tagName() {
|
471
471
|
return this.element.tagName;
|
472
472
|
}
|
@@ -493,7 +493,7 @@ class vt {
|
|
493
493
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
494
494
|
}
|
495
495
|
}
|
496
|
-
class
|
496
|
+
class bs extends mt {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class _s extends vt {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let
|
504
|
+
let _s = class extends mt {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,7 +509,7 @@ let xs = class extends vt {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class
|
512
|
+
class xs extends mt {
|
513
513
|
constructor(t, s, i, n, r) {
|
514
514
|
super(t, s, i, n, r), this.type = 5;
|
515
515
|
}
|
@@ -524,7 +524,7 @@ class ws extends vt {
|
|
524
524
|
typeof this._$AH == "function" ? this._$AH.call(((s = this.options) == null ? void 0 : s.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
525
525
|
}
|
526
526
|
}
|
527
|
-
class
|
527
|
+
class ws {
|
528
528
|
constructor(t, s, i) {
|
529
529
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = s, this.options = i;
|
530
530
|
}
|
@@ -537,7 +537,7 @@ class As {
|
|
537
537
|
}
|
538
538
|
const Tt = Y.litHtmlPolyfillSupport;
|
539
539
|
Tt == null || Tt(X, V), (Y.litHtmlVersions ?? (Y.litHtmlVersions = [])).push("3.0.2");
|
540
|
-
const
|
540
|
+
const As = (e, t, s) => {
|
541
541
|
const i = (s == null ? void 0 : s.renderBefore) ?? t;
|
542
542
|
let n = i._$litPart$;
|
543
543
|
if (n === void 0) {
|
@@ -562,7 +562,7 @@ let y = class extends H {
|
|
562
562
|
}
|
563
563
|
update(t) {
|
564
564
|
const s = this.render();
|
565
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
565
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = As(s, this.renderRoot, this.renderOptions);
|
566
566
|
}
|
567
567
|
connectedCallback() {
|
568
568
|
var t;
|
@@ -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, (
|
579
|
+
var Se;
|
580
|
+
y._$litElement$ = !0, y.finalized = !0, (Se = globalThis.litElementHydrateSupport) == null || Se.call(globalThis, { LitElement: y });
|
581
581
|
const kt = globalThis.litElementPolyfillSupport;
|
582
582
|
kt == null || kt({ LitElement: y });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
|
-
const
|
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>' }, R = {
|
585
585
|
allRenderFn: !1,
|
586
586
|
cmpDidLoad: !0,
|
587
587
|
cmpDidUnload: !1,
|
@@ -665,9 +665,9 @@ const Cs = { 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 M,
|
669
|
-
const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} },
|
670
|
-
},
|
668
|
+
let M, Le, vt, Ue = !1, lt = !1, Bt = !1, v = !1, re = null, Ut = !1;
|
669
|
+
const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, Ne = yt.HTMLElement || class {
|
670
|
+
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
673
673
|
jmp: (e) => e(),
|
@@ -675,7 +675,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
675
675
|
ael: (e, t, s, i) => e.addEventListener(t, s, i),
|
676
676
|
rel: (e, t, s, i) => e.removeEventListener(t, s, i),
|
677
677
|
ce: (e, t) => new CustomEvent(e, t)
|
678
|
-
},
|
678
|
+
}, Cs = /* @__PURE__ */ (() => {
|
679
679
|
let e = !1;
|
680
680
|
try {
|
681
681
|
x.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -686,32 +686,32 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
686
686
|
} catch {
|
687
687
|
}
|
688
688
|
return e;
|
689
|
-
})(),
|
689
|
+
})(), Es = (e) => Promise.resolve(e), Ts = /* @__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
|
+
})(), He = (e, t, s, i) => {
|
696
696
|
s && s.map(([n, r, o]) => {
|
697
|
-
const a =
|
698
|
-
|
697
|
+
const a = Os(e, n), l = ks(t, o), c = Ps(n);
|
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
|
R.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 ? yt : t & 16 ? x.body : e, Ps = (e) => Cs ? {
|
707
707
|
passive: (e & 1) !== 0,
|
708
708
|
capture: (e & 2) !== 0
|
709
709
|
} : (e & 2) !== 0, oe = "http://www.w3.org/1999/xlink", N = (e, t = "") => () => {
|
710
|
-
}, ae = /* @__PURE__ */ new WeakMap(),
|
710
|
+
}, ae = /* @__PURE__ */ new WeakMap(), Ls = (e, t, s) => {
|
711
711
|
let i = ht.get(e);
|
712
|
-
|
713
|
-
},
|
714
|
-
let n =
|
712
|
+
Ts && s ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, ht.set(e, i);
|
713
|
+
}, Us = (e, t, s, i) => {
|
714
|
+
let n = Re(t, s), r = ht.get(n);
|
715
715
|
if (e = e.nodeType === 11 ? e : x, r)
|
716
716
|
if (typeof r == "string") {
|
717
717
|
e = e.head || e;
|
@@ -720,10 +720,10 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
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 = N("attachStyles", t.$tagName$), r =
|
723
|
+
}, Ns = (e) => {
|
724
|
+
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n = N("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
|
+
}, Re = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$), Hs = (e) => ci.map((t) => t(e)).find((t) => !!t), le = {}, Rs = "http://www.w3.org/2000/svg", Ms = "http://www.w3.org/1999/xhtml", js = (e) => e != null, zt = (e) => (e = typeof e, e === "object" || e === "function"), D = (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++)
|
@@ -737,7 +737,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
737
737
|
}
|
738
738
|
}
|
739
739
|
if (typeof e == "function")
|
740
|
-
return e(t === null ? {} : t, l,
|
740
|
+
return e(t === null ? {} : t, l, Is);
|
741
741
|
const h = ct(e, null);
|
742
742
|
return h.$attrs$ = t, l.length > 0 && (h.$children$ = l), h.$key$ = n, h.$name$ = r, h;
|
743
743
|
}, ct = (e, t) => {
|
@@ -749,9 +749,9 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
749
749
|
$children$: null
|
750
750
|
};
|
751
751
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
752
|
-
}, Ft = {},
|
752
|
+
}, Ft = {}, Ds = (e) => e && e.$tag$ === Ft, Is = {
|
753
753
|
forEach: (e, t) => e.map(ce).forEach(t),
|
754
|
-
map: (e, t) => e.map(ce).map(t).map(
|
754
|
+
map: (e, t) => e.map(ce).map(t).map(Bs)
|
755
755
|
}, ce = (e) => ({
|
756
756
|
vattrs: e.$attrs$,
|
757
757
|
vchildren: e.$children$,
|
@@ -759,7 +759,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
759
759
|
vname: e.$name$,
|
760
760
|
vtag: e.$tag$,
|
761
761
|
vtext: e.$text$
|
762
|
-
}),
|
762
|
+
}), Bs = (e) => {
|
763
763
|
if (typeof e.vtag == "function") {
|
764
764
|
const s = Object.assign({}, e.vattrs);
|
765
765
|
return e.vkey && (s.key = e.vkey), e.vname && (s.name = e.vname), D(e.vtag, s, ...e.vchildren || []);
|
@@ -781,7 +781,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
781
781
|
if (t === "ref")
|
782
782
|
i && i(e);
|
783
783
|
else if (!e.__lookupSetter__(t) && t[0] === "o" && t[1] === "n")
|
784
|
-
t[2] === "-" ? t = t.slice(3) : fe(yt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s &&
|
784
|
+
t[2] === "-" ? t = t.slice(3) : fe(yt, 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 = zt(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
@@ -798,7 +798,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
798
798
|
a !== (a = a.replace(/^xlink\:?/, "")) && (t = a, c = !0), i == null || i === !1 ? (i !== !1 || e.getAttribute(t) === "") && (c ? e.removeAttributeNS(oe, t) : e.removeAttribute(t)) : (!o || r & 4 || n) && !l && (i = i === !0 ? "" : i, c ? e.setAttributeNS(oe, t, i) : e.setAttribute(t, i));
|
799
799
|
}
|
800
800
|
}
|
801
|
-
},
|
801
|
+
}, zs = /\s/, he = (e) => e ? e.split(zs) : [], Me = (e, t, s, i) => {
|
802
802
|
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ || le, o = t.$attrs$ || le;
|
803
803
|
for (i in r)
|
804
804
|
i in o || de(n, i, r[i], void 0, s, t.$flags$);
|
@@ -806,7 +806,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
806
806
|
de(n, i, r[i], o[i], s, t.$flags$);
|
807
807
|
}, dt = (e, t, s, i) => {
|
808
808
|
let n = t.$children$[s], r = 0, o, a, l;
|
809
|
-
if (
|
809
|
+
if (Ue || (Bt = !0, n.$tag$ === "slot" && (M && i.classList.add(M + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
@@ -817,28 +817,28 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
817
817
|
else if (n.$flags$ & 1)
|
818
818
|
o = n.$elm$ = x.createTextNode("");
|
819
819
|
else {
|
820
|
-
if (
|
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), Me(null, n, v), js(M) && o["s-si"] !== M && o.classList.add(o["s-si"] = M), n.$children$)
|
821
821
|
for (r = 0; r < n.$children$.length; ++r)
|
822
822
|
a = dt(e, n, r, o), a && o.appendChild(a);
|
823
|
-
n.$tag$ === "svg" ?
|
823
|
+
n.$tag$ === "svg" ? v = !1 : o.tagName === "foreignObject" && (v = !0);
|
824
824
|
}
|
825
|
-
return o["s-hn"] =
|
825
|
+
return o["s-hn"] = vt, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Le, 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"] !==
|
831
|
+
n["s-hn"] !== vt && n["s-ol"] && (Ie(n).insertBefore(n, Wt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, Bt = !0), t && J(n, t);
|
832
832
|
}
|
833
|
-
|
834
|
-
},
|
833
|
+
m.$flags$ &= -2;
|
834
|
+
}, je = (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 ===
|
836
|
+
for (o.shadowRoot && o.tagName === vt && (o = o.shadowRoot); n <= r; ++n)
|
837
837
|
i[n] && (a = dt(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a, Wt(t))));
|
838
|
-
},
|
838
|
+
}, De = (e, t, s, i, n) => {
|
839
839
|
for (; t <= s; ++t)
|
840
|
-
(i = e[t]) && (n = i.$elm$,
|
841
|
-
},
|
840
|
+
(i = e[t]) && (n = i.$elm$, Fe(i), lt = !0, n["s-ol"] ? n["s-ol"].remove() : J(n, !0), n.remove());
|
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], _, st;
|
843
843
|
for (; n <= l && r <= d; )
|
844
844
|
if (c == null)
|
@@ -863,14 +863,14 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
863
863
|
o = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
o >= 0 ? (st = t[o], st.$tag$ !== p.$tag$ ? _ = dt(t && t[r], s, o, e) : (j(st, p), t[o] = void 0, _ = st.$elm$), p = i[++r]) : (_ = dt(t && t[r], s, r, e), p = i[++r]), _ &&
|
866
|
+
o >= 0 ? (st = t[o], st.$tag$ !== p.$tag$ ? _ = dt(t && t[r], s, o, e) : (j(st, p), t[o] = void 0, _ = st.$elm$), p = i[++r]) : (_ = dt(t && t[r], s, r, e), p = i[++r]), _ && Ie(c.$elm$).insertBefore(_, Wt(c.$elm$));
|
867
867
|
}
|
868
|
-
n > l ?
|
869
|
-
}, it = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1, Wt = (e) => e && e["s-ol"] || e,
|
868
|
+
n > l ? je(e, i[d + 1] == null ? null : i[d + 1].$elm$, s, i, r, d) : r > d && De(t, n, l);
|
869
|
+
}, it = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1, Wt = (e) => e && e["s-ol"] || e, Ie = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, j = (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 ? (
|
873
|
-
},
|
872
|
+
o === null ? (v = r === "svg" ? !0 : r === "foreignObject" ? !1 : v, r === "slot" || Me(e, t, v), i !== null && n !== null ? Fs(s, i, t, n) : n !== null ? (e.$text$ !== null && (s.textContent = ""), je(s, null, t, n, 0, n.length - 1)) : i !== null && De(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
|
+
}, Be = (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,9 +886,9 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
886
886
|
break;
|
887
887
|
}
|
888
888
|
}
|
889
|
-
|
889
|
+
Be(s);
|
890
890
|
}
|
891
|
-
}, b = [],
|
891
|
+
}, b = [], ze = (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)
|
@@ -901,16 +901,16 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
901
901
|
})) : b.some((h) => h.$nodeToRelocate$ === s) || b.push({
|
902
902
|
$nodeToRelocate$: s
|
903
903
|
}));
|
904
|
-
t.nodeType === 1 &&
|
904
|
+
t.nodeType === 1 && ze(t);
|
905
905
|
}
|
906
|
-
}, pe = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "",
|
907
|
-
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(
|
908
|
-
},
|
909
|
-
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ || ct(null, null), r =
|
910
|
-
|
906
|
+
}, pe = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", Fe = (e) => {
|
907
|
+
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(Fe);
|
908
|
+
}, Ws = (e, t) => {
|
909
|
+
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ || ct(null, null), r = Ds(t) ? t : D(null, null, t);
|
910
|
+
vt = 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, M = s["s-sc"], Le = s["s-cr"], Ue = (i.$flags$ & 1) !== 0, lt = !1, j(n, r);
|
911
911
|
{
|
912
|
-
if (
|
913
|
-
|
912
|
+
if (m.$flags$ |= 1, Bt) {
|
913
|
+
ze(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,39 +925,39 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
lt &&
|
928
|
+
lt && Be(r.$elm$), m.$flags$ &= -2, b.length = 0;
|
929
929
|
}
|
930
|
-
},
|
931
|
-
const i =
|
930
|
+
}, Gs = (e) => e, qs = (e, t, s) => {
|
931
|
+
const i = Gs(e);
|
932
932
|
return {
|
933
|
-
emit: (n) =>
|
933
|
+
emit: (n) => Ys(i, t, {
|
934
934
|
bubbles: !!(s & 4),
|
935
935
|
composed: !!(s & 2),
|
936
936
|
cancelable: !!(s & 1),
|
937
937
|
detail: n
|
938
938
|
})
|
939
939
|
};
|
940
|
-
},
|
941
|
-
const i =
|
940
|
+
}, Ys = (e, t, s) => {
|
941
|
+
const i = m.ce(t, s);
|
942
942
|
return e.dispatchEvent(i), i;
|
943
|
-
},
|
944
|
-
},
|
943
|
+
}, Ks = (e, t) => {
|
944
|
+
}, We = (e, t) => (e.$flags$ |= 16, Ks(e, e.$ancestorComponent$), pi(() => Qs(e, t))), Qs = (e, t) => {
|
945
945
|
const s = e.$hostElement$, i = N("scheduleUpdate", e.$cmpMeta$.$tagName$), n = s;
|
946
946
|
let r;
|
947
|
-
return t ? r = I(n, "componentWillLoad") : r = I(n, "componentWillUpdate"), r = ue(r, () => I(n, "componentWillRender")), i(), ue(r, () =>
|
948
|
-
},
|
947
|
+
return t ? r = I(n, "componentWillLoad") : r = I(n, "componentWillUpdate"), r = ue(r, () => I(n, "componentWillRender")), i(), ue(r, () => Zs(e, n, t));
|
948
|
+
}, Zs = async (e, t, s) => {
|
949
949
|
const i = e.$hostElement$, n = N("update", e.$cmpMeta$.$tagName$);
|
950
|
-
i["s-rc"], s &&
|
950
|
+
i["s-rc"], s && Ns(e);
|
951
951
|
const r = N("render", e.$cmpMeta$.$tagName$);
|
952
|
-
|
953
|
-
},
|
952
|
+
Xs(e, t, i), r(), n(), Js(e);
|
953
|
+
}, Xs = (e, t, s) => {
|
954
954
|
try {
|
955
|
-
re = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (R.hasRenderFn || R.reflect) && (R.vdomRender || R.reflect) && (R.hydrateServerSide ||
|
955
|
+
re = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (R.hasRenderFn || R.reflect) && (R.vdomRender || R.reflect) && (R.hydrateServerSide || Ws(e, t));
|
956
956
|
} catch (a) {
|
957
957
|
tt(a, e.$hostElement$);
|
958
958
|
}
|
959
959
|
return re = null, null;
|
960
|
-
},
|
960
|
+
}, Js = (e) => {
|
961
961
|
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i = N("postUpdate", t), n = s;
|
962
962
|
e.$ancestorComponent$, I(n, "componentDidRender"), e.$flags$ & 64 ? (I(n, "componentDidUpdate"), i()) : (e.$flags$ |= 64, I(n, "componentDidLoad"), i());
|
963
963
|
}, I = (e, t, s) => {
|
@@ -967,9 +967,9 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
967
967
|
} catch (i) {
|
968
968
|
tt(i);
|
969
969
|
}
|
970
|
-
}, ue = (e, t) => e && e.then ? e.then(t) : t(),
|
970
|
+
}, ue = (e, t) => e && e.then ? e.then(t) : t(), Vs = (e, t) => e != null && !zt(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, ti = (e, t) => bt(e).$instanceValues$.get(t), ei = (e, t, s, i) => {
|
971
971
|
const n = bt(e), r = e, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
|
972
|
-
s =
|
972
|
+
s = Vs(s, i.$members$[t][0]);
|
973
973
|
const c = Number.isNaN(o) && Number.isNaN(s);
|
974
974
|
if (s !== o && !c) {
|
975
975
|
n.$instanceValues$.set(t, s);
|
@@ -987,21 +987,21 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
987
987
|
if ((a & 18) === 2) {
|
988
988
|
if (l.componentShouldUpdate && l.componentShouldUpdate(s, o, t) === !1)
|
989
989
|
return;
|
990
|
-
|
990
|
+
We(n, !1);
|
991
991
|
}
|
992
992
|
}
|
993
993
|
}
|
994
|
-
},
|
994
|
+
}, si = (e, t, s) => {
|
995
995
|
if (t.$members$) {
|
996
996
|
e.watchers && (t.$watchers$ = e.watchers);
|
997
997
|
const i = Object.entries(t.$members$), n = e.prototype;
|
998
998
|
i.map(([r, [o]]) => {
|
999
999
|
(o & 31 || o & 32) && Object.defineProperty(n, r, {
|
1000
1000
|
get() {
|
1001
|
-
return
|
1001
|
+
return ti(this, r);
|
1002
1002
|
},
|
1003
1003
|
set(a) {
|
1004
|
-
|
1004
|
+
ei(this, r, a, t);
|
1005
1005
|
},
|
1006
1006
|
configurable: !0,
|
1007
1007
|
enumerable: !0
|
@@ -1010,7 +1010,7 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
1010
1010
|
{
|
1011
1011
|
const r = /* @__PURE__ */ new Map();
|
1012
1012
|
n.attributeChangedCallback = function(o, a, l) {
|
1013
|
-
|
1013
|
+
m.jmp(() => {
|
1014
1014
|
const c = r.get(o);
|
1015
1015
|
if (this.hasOwnProperty(c))
|
1016
1016
|
l = this[c], delete this[c];
|
@@ -1028,37 +1028,37 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
1028
1028
|
}
|
1029
1029
|
}
|
1030
1030
|
return e;
|
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 =
|
1034
|
+
typeof o != "string" && (o = o[t.$modeName$ = Hs(e)]);
|
1035
|
+
const a = Re(s, t.$modeName$);
|
1036
1036
|
if (!ht.has(a)) {
|
1037
1037
|
const l = N("registerStyles", s.$tagName$);
|
1038
|
-
|
1038
|
+
Ls(a, o, !!(s.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
|
-
t.$ancestorComponent$, (() =>
|
1041
|
+
t.$ancestorComponent$, (() => We(t, !0))();
|
1042
|
+
}, ni = (e) => {
|
1042
1043
|
}, ri = (e) => {
|
1043
|
-
|
1044
|
-
if (!(v.$flags$ & 1)) {
|
1044
|
+
if (!(m.$flags$ & 1)) {
|
1045
1045
|
const t = bt(e), s = t.$cmpMeta$, i = N("connectedCallback", s.$tagName$);
|
1046
|
-
t.$flags$ & 1 ? (
|
1046
|
+
t.$flags$ & 1 ? (He(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;
|
1050
1050
|
}
|
1051
|
-
}),
|
1051
|
+
}), ii(e, t, s)), i();
|
1052
1052
|
}
|
1053
|
-
},
|
1053
|
+
}, oi = (e) => {
|
1054
1054
|
const t = e["s-cr"] = x.createComment("");
|
1055
1055
|
t["s-cn"] = !0, e.insertBefore(t, e.firstChild);
|
1056
|
-
},
|
1057
|
-
if (!(
|
1056
|
+
}, ai = (e) => {
|
1057
|
+
if (!(m.$flags$ & 1)) {
|
1058
1058
|
const t = bt(e);
|
1059
1059
|
t.$rmListeners$ && (t.$rmListeners$.map((s) => s()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
|
-
},
|
1061
|
+
}, Ge = (e, t) => {
|
1062
1062
|
const s = {
|
1063
1063
|
$flags$: t[0],
|
1064
1064
|
$tagName$: t[1]
|
@@ -1067,13 +1067,13 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
1067
1067
|
const i = e.prototype.connectedCallback, n = e.prototype.disconnectedCallback;
|
1068
1068
|
return Object.assign(e.prototype, {
|
1069
1069
|
__registerHost() {
|
1070
|
-
|
1070
|
+
li(this, s);
|
1071
1071
|
},
|
1072
1072
|
connectedCallback() {
|
1073
|
-
|
1073
|
+
ri(this), i && i.call(this);
|
1074
1074
|
},
|
1075
1075
|
disconnectedCallback() {
|
1076
|
-
|
1076
|
+
ai(this), n && n.call(this);
|
1077
1077
|
},
|
1078
1078
|
__attachShadow() {
|
1079
1079
|
this.attachShadow({
|
@@ -1081,17 +1081,17 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
1081
1081
|
delegatesFocus: !!(s.$flags$ & 16)
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
|
-
}), e.is = s.$tagName$,
|
1085
|
-
},
|
1084
|
+
}), e.is = s.$tagName$, si(e, s);
|
1085
|
+
}, qe = /* @__PURE__ */ new WeakMap(), bt = (e) => qe.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
|
-
}, fe = (e, t) => t in e, tt = (e, t) => (0, console.error)(e, t), ht = /* @__PURE__ */ new Map(),
|
1094
|
-
e.push(s), Ut || (Ut = !0, t &&
|
1092
|
+
return He(e, s, t.$listeners$), qe.set(e, s);
|
1093
|
+
}, fe = (e, t) => t in e, tt = (e, t) => (0, console.error)(e, t), ht = /* @__PURE__ */ new Map(), ci = [], $e = [], Ye = [], di = (e, t) => (s) => {
|
1094
|
+
e.push(s), Ut || (Ut = !0, t && m.$flags$ & 4 ? hi(Nt) : m.raf(Nt));
|
1095
1095
|
}, ge = (e) => {
|
1096
1096
|
for (let t = 0; t < e.length; t++)
|
1097
1097
|
try {
|
@@ -1101,8 +1101,8 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
1101
1101
|
}
|
1102
1102
|
e.length = 0;
|
1103
1103
|
}, Nt = () => {
|
1104
|
-
ge($e), ge(
|
1105
|
-
},
|
1104
|
+
ge($e), ge(Ye), (Ut = $e.length > 0) && m.raf(Nt);
|
1105
|
+
}, hi = (e) => Es().then(e), pi = /* @__PURE__ */ di(Ye, !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" },
|
@@ -1110,21 +1110,21 @@ const yt = typeof window < "u" ? window : {}, x = yt.document || { head: {} }, H
|
|
1110
1110
|
...i
|
1111
1111
|
];
|
1112
1112
|
return s && (n = `<title>${s}</title>`), `<svg ${r.map((a) => `${a.name}="${a.value}"`).join(" ")}>${n}${t}</svg>`;
|
1113
|
-
},
|
1114
|
-
function
|
1113
|
+
}, fi = (e) => e.replace(/<(\/?)svg([^>]*)>/g, "").trim();
|
1114
|
+
function $i(e) {
|
1115
1115
|
return `${e.getFullYear()}.${e.getMonth() + 1}`;
|
1116
1116
|
}
|
1117
|
-
class
|
1117
|
+
class gi {
|
1118
1118
|
constructor(t) {
|
1119
|
-
this.voca_component = t, this.voca_added =
|
1119
|
+
this.voca_component = t, this.voca_added = $i(/* @__PURE__ */ new Date());
|
1120
1120
|
}
|
1121
1121
|
}
|
1122
|
-
const mi = "telia-vst{display:none}",
|
1122
|
+
const mi = "telia-vst{display:none}", vi = /* @__PURE__ */ Ge(class extends Ne {
|
1123
1123
|
constructor() {
|
1124
|
-
super(), this.__registerHost(), this.vocaInternalUStats =
|
1124
|
+
super(), this.__registerHost(), this.vocaInternalUStats = qs(this, "vocaInternalUStats", 7);
|
1125
1125
|
}
|
1126
1126
|
connectedCallback() {
|
1127
|
-
this.vocaInternalUStats.emit(new
|
1127
|
+
this.vocaInternalUStats.emit(new gi(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
1130
|
return D(Ft, null);
|
@@ -1135,29 +1135,29 @@ const mi = "telia-vst{display:none}", yi = /* @__PURE__ */ qe(class extends He {
|
|
1135
1135
|
}, [0, "telia-vst", {
|
1136
1136
|
dataTrackingId: [1, "data-tracking-id"]
|
1137
1137
|
}]);
|
1138
|
-
function
|
1138
|
+
function Ke() {
|
1139
1139
|
if (typeof customElements > "u")
|
1140
1140
|
return;
|
1141
1141
|
["telia-vst"].forEach((t) => {
|
1142
1142
|
switch (t) {
|
1143
1143
|
case "telia-vst":
|
1144
|
-
customElements.get(t) || customElements.define(t,
|
1144
|
+
customElements.get(t) || customElements.define(t, vi);
|
1145
1145
|
break;
|
1146
1146
|
}
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
|
-
|
1149
|
+
Ke();
|
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
|
}
|
1153
|
-
function
|
1153
|
+
function yi() {
|
1154
1154
|
if (typeof Ht().vocadsIcons !== void 0)
|
1155
1155
|
return Ht().vocadsIcons;
|
1156
1156
|
}
|
1157
|
-
function
|
1157
|
+
function bi() {
|
1158
1158
|
return Ht().vocadsIconsRegistered;
|
1159
1159
|
}
|
1160
|
-
const
|
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__ */ Ge(class extends Ne {
|
1161
1161
|
constructor() {
|
1162
1162
|
super(), this.__registerHost(), this.size = "md", this.allyTitle = null, this.dataTrackingId = "telia-icon";
|
1163
1163
|
}
|
@@ -1169,8 +1169,8 @@ const xi = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1169
1169
|
getSvgString() {
|
1170
1170
|
if (this.svg)
|
1171
1171
|
return this.svg;
|
1172
|
-
if (
|
1173
|
-
const e =
|
1172
|
+
if (bi() && this.name) {
|
1173
|
+
const e = yi();
|
1174
1174
|
return e[this.name] ? e[this.name].svg : "";
|
1175
1175
|
}
|
1176
1176
|
return this.name && console.warn(this.name, "Icons bundle is not registered and will not be rendered. Check if you have registered icons bundle or use svg property"), "";
|
@@ -1181,15 +1181,15 @@ const xi = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1181
1181
|
...t,
|
1182
1182
|
{ name: "aria-hidden", value: "true" }
|
1183
1183
|
];
|
1184
|
-
const s =
|
1185
|
-
content:
|
1184
|
+
const s = ui({
|
1185
|
+
content: fi(e),
|
1186
1186
|
attributes: t,
|
1187
1187
|
title: this.allyTitle
|
1188
1188
|
});
|
1189
1189
|
return D(Ft, { class: `telia-icon telia-icon--${this.size}` }, D("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: s }), D("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
1190
1190
|
}
|
1191
1191
|
static get style() {
|
1192
|
-
return
|
1192
|
+
return _i;
|
1193
1193
|
}
|
1194
1194
|
}, [0, "telia-icon", {
|
1195
1195
|
name: [1],
|
@@ -1198,21 +1198,21 @@ const xi = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1198
1198
|
allyTitle: [1, "ally-title"],
|
1199
1199
|
dataTestid: [1, "data-testid"]
|
1200
1200
|
}]);
|
1201
|
-
function
|
1201
|
+
function wi() {
|
1202
1202
|
if (typeof customElements > "u")
|
1203
1203
|
return;
|
1204
1204
|
["telia-icon", "telia-vst"].forEach((t) => {
|
1205
1205
|
switch (t) {
|
1206
1206
|
case "telia-icon":
|
1207
|
-
customElements.get(t) || customElements.define(t,
|
1207
|
+
customElements.get(t) || customElements.define(t, xi);
|
1208
1208
|
break;
|
1209
1209
|
case "telia-vst":
|
1210
|
-
customElements.get(t) ||
|
1210
|
+
customElements.get(t) || Ke();
|
1211
1211
|
break;
|
1212
1212
|
}
|
1213
1213
|
});
|
1214
1214
|
}
|
1215
|
-
|
1215
|
+
wi();
|
1216
1216
|
/**
|
1217
1217
|
* @license
|
1218
1218
|
* Copyright 2017 Google LLC
|
@@ -1228,7 +1228,7 @@ const k = (e) => (t, s) => {
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const
|
1231
|
+
const Ai = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged: It }, 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") {
|
@@ -1250,7 +1250,7 @@ const Si = { attribute: !0, type: String, converter: ot, reflect: !1, hasChanged
|
|
1250
1250
|
throw Error("Unsupported decorator location: " + i);
|
1251
1251
|
};
|
1252
1252
|
function g(e) {
|
1253
|
-
return (t, s) => typeof s == "object" ?
|
1253
|
+
return (t, s) => typeof s == "object" ? Si(e, t, s) : ((i, n, r) => {
|
1254
1254
|
const o = n.hasOwnProperty(r);
|
1255
1255
|
return n.constructor.createProperty(r, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
|
1256
1256
|
})(e, t, s);
|
@@ -1268,7 +1268,7 @@ function A(e) {
|
|
1268
1268
|
* Copyright 2020 Google LLC
|
1269
1269
|
* SPDX-License-Identifier: BSD-3-Clause
|
1270
1270
|
*/
|
1271
|
-
const
|
1271
|
+
const Ci = (e) => e.strings === void 0;
|
1272
1272
|
/**
|
1273
1273
|
* @license
|
1274
1274
|
* Copyright 2017 Google LLC
|
@@ -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
|
+
}, Qe = (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), ki(t);
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
|
-
function
|
1325
|
-
this._$AN !== void 0 ? (pt(this), this._$AM = e,
|
1324
|
+
function Ei(e) {
|
1325
|
+
this._$AN !== void 0 ? (pt(this), this._$AM = e, Qe(this)) : this._$AM = e;
|
1326
1326
|
}
|
1327
|
-
function
|
1327
|
+
function Ti(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,22 +1336,22 @@ function ki(e, t = !1, s = 0) {
|
|
1336
1336
|
else
|
1337
1337
|
K(this, e);
|
1338
1338
|
}
|
1339
|
-
const
|
1340
|
-
e.type == _t.CHILD && (e._$AP ?? (e._$AP =
|
1339
|
+
const ki = (e) => {
|
1340
|
+
e.type == _t.CHILD && (e._$AP ?? (e._$AP = Ti), e._$AQ ?? (e._$AQ = Ei));
|
1341
1341
|
};
|
1342
|
-
let
|
1342
|
+
let Ze = class extends Gt {
|
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), Qe(this), this.isConnected = t._$AU;
|
1348
1348
|
}
|
1349
1349
|
_$AO(t, s = !0) {
|
1350
1350
|
var i, n;
|
1351
1351
|
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (n = this.disconnected) == null || n.call(this)), s && (K(this, t), pt(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
|
-
if (
|
1354
|
+
if (Ci(this._$Ct))
|
1355
1355
|
this._$Ct._$AI(t, this);
|
1356
1356
|
else {
|
1357
1357
|
const s = [...this._$Ct._$AH];
|
@@ -1368,10 +1368,10 @@ let Xe = class extends Gt {
|
|
1368
1368
|
* Copyright 2020 Google LLC
|
1369
1369
|
* SPDX-License-Identifier: BSD-3-Clause
|
1370
1370
|
*/
|
1371
|
-
const
|
1372
|
-
class
|
1371
|
+
const Xe = () => new Oi();
|
1372
|
+
class Oi {
|
1373
1373
|
}
|
1374
|
-
const Ot = /* @__PURE__ */ new WeakMap(),
|
1374
|
+
const Ot = /* @__PURE__ */ new WeakMap(), Je = xt(class extends Ze {
|
1375
1375
|
render(e) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1432,7 +1432,7 @@ const qt = xt(class extends Gt {
|
|
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,
|
@@ -1448,10 +1448,10 @@ const qt = xt(class extends Gt {
|
|
1448
1448
|
t
|
1449
1449
|
);
|
1450
1450
|
};
|
1451
|
-
var
|
1452
|
-
for (var n = i > 1 ? void 0 : i ?
|
1451
|
+
var Pi = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, et = (e, t, s, i) => {
|
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
|
-
return i && n &&
|
1454
|
+
return i && n && Pi(t, s, n), n;
|
1455
1455
|
};
|
1456
1456
|
let T = class extends y {
|
1457
1457
|
constructor() {
|
@@ -1472,14 +1472,14 @@ let T = class extends y {
|
|
1472
1472
|
}
|
1473
1473
|
_applyBranding() {
|
1474
1474
|
var e;
|
1475
|
-
(e = this.application) != null && e.settings &&
|
1475
|
+
(e = this.application) != null && e.settings && Ve(this.application.settings.branding, this);
|
1476
1476
|
}
|
1477
1477
|
async _renderSymbol() {
|
1478
1478
|
var n;
|
1479
1479
|
const e = (n = this.application) == null ? void 0 : n.triggerIcon;
|
1480
1480
|
if (!e)
|
1481
1481
|
return u;
|
1482
|
-
const t = async (r) => await import("./index-
|
1482
|
+
const t = async (r) => await import("./index-e96c1436.mjs").then(
|
1483
1483
|
(a) => a[r]
|
1484
1484
|
), { type: s, content: i } = e;
|
1485
1485
|
switch (s) {
|
@@ -1621,12 +1621,12 @@ et([
|
|
1621
1621
|
T = et([
|
1622
1622
|
k("ace-trigger")
|
1623
1623
|
], T);
|
1624
|
-
var
|
1625
|
-
for (var n = i > 1 ? void 0 : i ?
|
1624
|
+
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, P = (e, t, s, i) => {
|
1625
|
+
for (var n = i > 1 ? void 0 : i ? Ni(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1626
1626
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1627
|
-
return i && n &&
|
1627
|
+
return i && n && Ui(t, s, n), n;
|
1628
1628
|
};
|
1629
|
-
const
|
1629
|
+
const ts = (e) => {
|
1630
1630
|
class t extends e {
|
1631
1631
|
constructor() {
|
1632
1632
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1681,12 +1681,12 @@ const es = (e) => {
|
|
1681
1681
|
g({ attribute: !1 })
|
1682
1682
|
], t.prototype, "parent", 2), t;
|
1683
1683
|
};
|
1684
|
-
var
|
1685
|
-
for (var n = i > 1 ? void 0 : i ?
|
1684
|
+
var Hi = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, Mi = (e, t, s, i) => {
|
1685
|
+
for (var n = i > 1 ? void 0 : i ? Ri(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1686
1686
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1687
|
-
return i && n &&
|
1687
|
+
return i && n && Hi(t, s, n), n;
|
1688
1688
|
};
|
1689
|
-
let Rt = class extends
|
1689
|
+
let Rt = class extends ts(y) {
|
1690
1690
|
render() {
|
1691
1691
|
return $`Non resolved component`;
|
1692
1692
|
}
|
@@ -1698,7 +1698,7 @@ Rt.styles = [
|
|
1698
1698
|
}
|
1699
1699
|
`
|
1700
1700
|
];
|
1701
|
-
Rt =
|
1701
|
+
Rt = Mi([
|
1702
1702
|
k("ace-unresolved-component")
|
1703
1703
|
], Rt);
|
1704
1704
|
/**
|
@@ -1706,21 +1706,21 @@ Rt = ji([
|
|
1706
1706
|
* Copyright 2021 Google LLC
|
1707
1707
|
* SPDX-License-Identifier: BSD-3-Clause
|
1708
1708
|
*/
|
1709
|
-
function*
|
1709
|
+
function* ji(e, t) {
|
1710
1710
|
if (e !== void 0) {
|
1711
1711
|
let s = 0;
|
1712
1712
|
for (const i of e)
|
1713
1713
|
yield t(i, s++);
|
1714
1714
|
}
|
1715
1715
|
}
|
1716
|
-
var Yt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Yt || {}),
|
1717
|
-
for (var n = i > 1 ? void 0 : i ?
|
1716
|
+
var Yt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Yt || {}), Di = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, es = (e, t, s, i) => {
|
1717
|
+
for (var n = i > 1 ? void 0 : i ? Ii(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1718
1718
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1719
|
-
return i && n &&
|
1719
|
+
return i && n && Di(t, s, n), n;
|
1720
1720
|
};
|
1721
1721
|
let ut = class extends y {
|
1722
1722
|
constructor() {
|
1723
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1723
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Xe();
|
1724
1724
|
}
|
1725
1725
|
addChild(e) {
|
1726
1726
|
e.parent = this, this.nodes.push(e);
|
@@ -1728,15 +1728,15 @@ let ut = class extends y {
|
|
1728
1728
|
applyBranding() {
|
1729
1729
|
if (this.wrapperRef.value) {
|
1730
1730
|
const e = this.application.settings;
|
1731
|
-
e != null && e.branding &&
|
1731
|
+
e != null && e.branding && Ve(e.branding, this.wrapperRef.value);
|
1732
1732
|
}
|
1733
1733
|
}
|
1734
1734
|
firstUpdated(e) {
|
1735
1735
|
this.applyBranding();
|
1736
1736
|
}
|
1737
1737
|
render() {
|
1738
|
-
return this.application.renderStrategy === Yt.Trigger && this.renderRoot.host.classList.add("floating"), $`<div class="widget-container" ${
|
1739
|
-
${
|
1738
|
+
return this.application.renderStrategy === Yt.Trigger && this.renderRoot.host.classList.add("floating"), $`<div class="widget-container" ${Je(this.wrapperRef)}>
|
1739
|
+
${ji(this.nodes, (e) => e)}
|
1740
1740
|
</div>`;
|
1741
1741
|
}
|
1742
1742
|
};
|
@@ -1819,16 +1819,16 @@ ut.styles = w`
|
|
1819
1819
|
}
|
1820
1820
|
}
|
1821
1821
|
`;
|
1822
|
-
|
1822
|
+
es([
|
1823
1823
|
g({ attribute: !1 })
|
1824
1824
|
], ut.prototype, "application", 2);
|
1825
|
-
ut =
|
1825
|
+
ut = es([
|
1826
1826
|
k("ace-wrapper")
|
1827
1827
|
], ut);
|
1828
|
-
var
|
1829
|
-
for (var n = i > 1 ? void 0 : i ?
|
1828
|
+
var Bi = Object.defineProperty, zi = Object.getOwnPropertyDescriptor, wt = (e, t, s, i) => {
|
1829
|
+
for (var n = i > 1 ? void 0 : i ? zi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1830
1830
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1831
|
-
return i && n &&
|
1831
|
+
return i && n && Bi(t, s, n), n;
|
1832
1832
|
};
|
1833
1833
|
let z = class extends y {
|
1834
1834
|
constructor() {
|
@@ -1881,32 +1881,32 @@ wt([
|
|
1881
1881
|
z = wt([
|
1882
1882
|
k("ace-widget")
|
1883
1883
|
], z);
|
1884
|
-
const
|
1885
|
-
let
|
1886
|
-
const Pt = /* @__PURE__ */ new Map(),
|
1884
|
+
const Fi = /* @__PURE__ */ new WeakMap();
|
1885
|
+
let me = 0;
|
1886
|
+
const Pt = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new WeakSet(), ye = () => new Promise((e) => requestAnimationFrame(e)), Wi = [{ opacity: 0 }], be = [{ opacity: 0 }, { opacity: 1 }], _e = (e, t) => {
|
1887
1887
|
const s = e - t;
|
1888
1888
|
return s === 0 ? void 0 : s;
|
1889
|
-
},
|
1889
|
+
}, xe = (e, t) => {
|
1890
1890
|
const s = e / t;
|
1891
1891
|
return s === 1 ? void 0 : s;
|
1892
1892
|
}, Lt = { left: (e, t) => {
|
1893
|
-
const s =
|
1893
|
+
const s = _e(e, t);
|
1894
1894
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1895
1895
|
}, top: (e, t) => {
|
1896
|
-
const s =
|
1896
|
+
const s = _e(e, t);
|
1897
1897
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
1898
1898
|
}, width: (e, t) => {
|
1899
1899
|
let s;
|
1900
1900
|
t === 0 && (t = 1, s = { width: "1px" });
|
1901
|
-
const i =
|
1901
|
+
const i = xe(e, t);
|
1902
1902
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1903
1903
|
}, height: (e, t) => {
|
1904
1904
|
let s;
|
1905
1905
|
t === 0 && (t = 1, s = { height: "1px" });
|
1906
|
-
const i =
|
1906
|
+
const i = xe(e, t);
|
1907
1907
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1908
|
-
} }, Gi = { duration: 333, easing: "ease-in-out" }, qi = ["left", "top", "width", "height", "opacity", "color", "background"],
|
1909
|
-
class Yi extends
|
1908
|
+
} }, Gi = { duration: 333, easing: "ease-in-out" }, qi = ["left", "top", "width", "height", "opacity", "color", "background"], we = /* @__PURE__ */ new WeakMap();
|
1909
|
+
class Yi extends Ze {
|
1910
1910
|
constructor(t) {
|
1911
1911
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === _t.CHILD)
|
1912
1912
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1926,7 +1926,7 @@ class Yi extends Xe {
|
|
1926
1926
|
return u;
|
1927
1927
|
}
|
1928
1928
|
getController() {
|
1929
|
-
return
|
1929
|
+
return Fi.get(this.l);
|
1930
1930
|
}
|
1931
1931
|
isDisabled() {
|
1932
1932
|
var t;
|
@@ -1935,7 +1935,7 @@ class Yi extends Xe {
|
|
1935
1935
|
update(t, [s]) {
|
1936
1936
|
var n;
|
1937
1937
|
const i = this.l === void 0;
|
1938
|
-
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element,
|
1938
|
+
return i && (this.l = (n = t.options) == null ? void 0 : n.host, this.l.addController(this), this.element = t.element, we.set(this.element, this)), this.optionsOrCallback = s, (i || typeof s != "function") && this.u(s), this.render(s);
|
1939
1939
|
}
|
1940
1940
|
u(t) {
|
1941
1941
|
t = t ?? {};
|
@@ -1977,7 +1977,7 @@ class Yi extends Xe {
|
|
1977
1977
|
if (r) {
|
1978
1978
|
Pt.delete(this.options.inId);
|
1979
1979
|
const { from: o, to: a } = this.O(r, n, s);
|
1980
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1980
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, me++, t.forEach((l) => l.zIndex = me);
|
1981
1981
|
} else
|
1982
1982
|
this.options.in && (t = [...this.options.in, {}]);
|
1983
1983
|
}
|
@@ -2022,15 +2022,15 @@ class Yi extends Xe {
|
|
2022
2022
|
_() {
|
2023
2023
|
const t = [];
|
2024
2024
|
for (let s = this.element.parentNode; s; s = s == null ? void 0 : s.parentNode) {
|
2025
|
-
const i =
|
2025
|
+
const i = we.get(s);
|
2026
2026
|
i && !i.isDisabled() && i && t.push(i);
|
2027
2027
|
}
|
2028
2028
|
return t;
|
2029
2029
|
}
|
2030
2030
|
get isHostRendered() {
|
2031
|
-
const t =
|
2031
|
+
const t = ve.has(this.l);
|
2032
2032
|
return t || this.l.updateComplete.then(() => {
|
2033
|
-
|
2033
|
+
ve.add(this.l);
|
2034
2034
|
}), t;
|
2035
2035
|
}
|
2036
2036
|
A(t, s = this._()) {
|
@@ -2085,7 +2085,7 @@ class Yi extends Xe {
|
|
2085
2085
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
2086
2086
|
}
|
2087
2087
|
}
|
2088
|
-
const
|
2088
|
+
const Ae = xt(Yi);
|
2089
2089
|
var Ki = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, At = (e, t, s, i) => {
|
2090
2090
|
for (var n = i > 1 ? void 0 : i ? Qi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2091
2091
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
@@ -2101,15 +2101,14 @@ let F = class extends y {
|
|
2101
2101
|
});
|
2102
2102
|
}
|
2103
2103
|
render() {
|
2104
|
-
return $`<div class="
|
2104
|
+
return $`<div class="conversation-session">
|
2105
2105
|
${this.entries.map(
|
2106
2106
|
(e) => $`<div class="conversation-entry" tabindex="-1">
|
2107
2107
|
<conversation-entry
|
2108
2108
|
.entry=${e}
|
2109
|
-
${
|
2109
|
+
${Ae({
|
2110
2110
|
keyframeOptions: {},
|
2111
|
-
in:
|
2112
|
-
out: be,
|
2111
|
+
in: be,
|
2113
2112
|
stabilizeOut: !0,
|
2114
2113
|
skipInitial: !1
|
2115
2114
|
})}
|
@@ -2119,9 +2118,9 @@ let F = class extends y {
|
|
2119
2118
|
)}
|
2120
2119
|
${this.loading ? $`<div
|
2121
2120
|
class="loader"
|
2122
|
-
${
|
2123
|
-
in:
|
2124
|
-
out:
|
2121
|
+
${Ae({
|
2122
|
+
in: be,
|
2123
|
+
out: Wi,
|
2125
2124
|
skipInitial: !1
|
2126
2125
|
})}
|
2127
2126
|
>
|
@@ -2157,7 +2156,7 @@ At([
|
|
2157
2156
|
F = At([
|
2158
2157
|
k("ace-conversation-session")
|
2159
2158
|
], F);
|
2160
|
-
var Zi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor,
|
2159
|
+
var Zi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, ss = (e, t, s, i) => {
|
2161
2160
|
for (var n = i > 1 ? void 0 : i ? Xi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2162
2161
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2163
2162
|
return i && n && Zi(t, s, n), n;
|
@@ -2319,13 +2318,13 @@ ft.styles = [
|
|
2319
2318
|
}
|
2320
2319
|
`
|
2321
2320
|
];
|
2322
|
-
|
2321
|
+
ss([
|
2323
2322
|
g({ attribute: !1 })
|
2324
2323
|
], ft.prototype, "entry", 2);
|
2325
|
-
ft =
|
2324
|
+
ft = ss([
|
2326
2325
|
k("conversation-entry")
|
2327
2326
|
], ft);
|
2328
|
-
var Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor,
|
2327
|
+
var Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, is = (e, t, s, i) => {
|
2329
2328
|
for (var n = i > 1 ? void 0 : i ? Vi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2330
2329
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2331
2330
|
return i && n && Ji(t, s, n), n;
|
@@ -2361,10 +2360,10 @@ $t.styles = [
|
|
2361
2360
|
}
|
2362
2361
|
`
|
2363
2362
|
];
|
2364
|
-
|
2363
|
+
is([
|
2365
2364
|
g({ attribute: !1 })
|
2366
2365
|
], $t.prototype, "group", 2);
|
2367
|
-
$t =
|
2366
|
+
$t = is([
|
2368
2367
|
k("conversation-group")
|
2369
2368
|
], $t);
|
2370
2369
|
/**
|
@@ -2393,7 +2392,7 @@ class Mt extends Gt {
|
|
2393
2392
|
}
|
2394
2393
|
Mt.directiveName = "unsafeHTML", Mt.resultType = 1;
|
2395
2394
|
const tn = xt(Mt);
|
2396
|
-
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor,
|
2395
|
+
var en = Object.defineProperty, sn = Object.getOwnPropertyDescriptor, ns = (e, t, s, i) => {
|
2397
2396
|
for (var n = i > 1 ? void 0 : i ? sn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2398
2397
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2399
2398
|
return i && n && en(t, s, n), n;
|
@@ -2420,10 +2419,10 @@ gt.styles = [
|
|
2420
2419
|
}
|
2421
2420
|
`
|
2422
2421
|
];
|
2423
|
-
|
2422
|
+
ns([
|
2424
2423
|
g({ attribute: !1 })
|
2425
2424
|
], gt.prototype, "message", 2);
|
2426
|
-
gt =
|
2425
|
+
gt = ns([
|
2427
2426
|
k("message-type-html")
|
2428
2427
|
], gt);
|
2429
2428
|
var nn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, Kt = (e, t, s, i) => {
|
@@ -2433,18 +2432,17 @@ var nn = Object.defineProperty, rn = Object.getOwnPropertyDescriptor, Kt = (e, t
|
|
2433
2432
|
};
|
2434
2433
|
const on = (e) => {
|
2435
2434
|
e.scrollTo ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight;
|
2436
|
-
},
|
2437
|
-
class W extends
|
2435
|
+
}, rs = ts(y);
|
2436
|
+
class W extends rs {
|
2438
2437
|
constructor() {
|
2439
|
-
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef =
|
2438
|
+
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = Xe(), this.chatScrollHeight = 0;
|
2440
2439
|
}
|
2441
2440
|
async connectedCallback() {
|
2442
|
-
var s;
|
2443
2441
|
super.connectedCallback();
|
2444
|
-
const t = await this.application.container.
|
2442
|
+
const t = await this.application.container.get(
|
2445
2443
|
"conversation"
|
2446
2444
|
);
|
2447
|
-
this.platform = t || null, this.
|
2445
|
+
this.platform = t || null, this.platform && (this.platform.activeSessionId ? this.session = this.platform.sessions.get(this.platform.activeSessionId) || null : this.session = this.platform.createSession(this) || null);
|
2448
2446
|
}
|
2449
2447
|
async _onSendMessage(t) {
|
2450
2448
|
t.preventDefault();
|
@@ -2473,7 +2471,7 @@ class W extends os {
|
|
2473
2471
|
"input-has-text": this.message.length > 0
|
2474
2472
|
})}
|
2475
2473
|
>
|
2476
|
-
<div class="conversation-content" ${
|
2474
|
+
<div class="conversation-content" ${Je(this.conversationContentRef)}>
|
2477
2475
|
${this.session ? $`<ace-conversation-session
|
2478
2476
|
.session=${this.session}
|
2479
2477
|
></ace-conversation-session>` : u}
|
@@ -2486,7 +2484,7 @@ class W extends os {
|
|
2486
2484
|
/>
|
2487
2485
|
<div class="conversation-actions">
|
2488
2486
|
<button class="conversation-send-button" type="submit">
|
2489
|
-
<telia-icon svg=${
|
2487
|
+
<telia-icon svg=${Ss.svg}></telia-icon>
|
2490
2488
|
</button>
|
2491
2489
|
</div>
|
2492
2490
|
</form>
|
@@ -2494,7 +2492,7 @@ class W extends os {
|
|
2494
2492
|
}
|
2495
2493
|
}
|
2496
2494
|
W.styles = [
|
2497
|
-
|
2495
|
+
rs.styles || [],
|
2498
2496
|
w`
|
2499
2497
|
:host {
|
2500
2498
|
font-family: var(--font-family);
|
@@ -2630,5 +2628,5 @@ const fn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
2630
2628
|
}, Symbol.toStringTag, { value: "Module" }));
|
2631
2629
|
export {
|
2632
2630
|
fn as c,
|
2633
|
-
|
2631
|
+
Ss as s
|
2634
2632
|
};
|