@telia-ace/widget-conversation-flamingo 1.1.14-rc.1 → 1.1.14-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-c7b20faa.js → conversation-2e20f9c4.js} +82 -85
- package/{conversation-863ede7a.mjs → conversation-d58bd503.mjs} +444 -427
- package/index-23b605ae.js +3 -0
- package/{index-b8394e84.js → index-6e5d6521.js} +1 -1
- package/{index-94b25fbe.mjs → index-cc3fb480.mjs} +2 -2
- package/index-ccbeb601.mjs +1218 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/models/conversation-provider.d.ts +3 -0
- package/models/conversation-session-state.d.ts +3 -2
- package/package.json +2 -2
- package/typing.d.ts +5 -0
- package/index-7ce12d5a.mjs +0 -773
- package/index-cec07deb.js +0 -3
@@ -1,22 +1,22 @@
|
|
1
|
-
import { C as
|
1
|
+
import { C as xt } from "./index-ccbeb601.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 nt = globalThis, Rt = nt.ShadowRoot && (nt.ShadyCSS === void 0 || nt.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Mt = Symbol(), Qt = /* @__PURE__ */ new WeakMap();
|
8
|
+
let Ee = class {
|
9
9
|
constructor(t, s, i) {
|
10
|
-
if (this._$cssResult$ = !0, i !==
|
10
|
+
if (this._$cssResult$ = !0, i !== Mt)
|
11
11
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
12
12
|
this.cssText = t, this.t = s;
|
13
13
|
}
|
14
14
|
get styleSheet() {
|
15
15
|
let t = this.o;
|
16
16
|
const s = this.t;
|
17
|
-
if (
|
17
|
+
if (Rt && t === void 0) {
|
18
18
|
const i = s !== void 0 && s.length === 1;
|
19
|
-
i && (t =
|
19
|
+
i && (t = Qt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Qt.set(s, t));
|
20
20
|
}
|
21
21
|
return t;
|
22
22
|
}
|
@@ -24,7 +24,7 @@ let Se = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const
|
27
|
+
const os = (e) => new Ee(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,30 +32,30 @@ const rs = (e) => new Se(typeof e == "string" ? e : e + "", void 0, Rt), 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
|
-
},
|
37
|
-
if (
|
35
|
+
return new Ee(s, e, Mt);
|
36
|
+
}, as = (e, t) => {
|
37
|
+
if (Rt)
|
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 = nt.litNonce;
|
42
42
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = s.cssText, e.appendChild(i);
|
43
43
|
}
|
44
|
-
},
|
44
|
+
}, Zt = Rt ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
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, E = globalThis, Xt = E.trustedTypes, fs = Xt ? Xt.emptyScript : "", At = E.reactiveElementPolyfillSupport, W = (e, t) => e, rt = { 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: as, defineProperty: ls, getOwnPropertyDescriptor: cs, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return s;
|
83
|
-
} },
|
83
|
+
} }, jt = (e, t) => !ls(e, t), Jt = { attribute: !0, type: String, converter: rt, reflect: !1, hasChanged: jt };
|
84
84
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), E.litPropertyMetadata ?? (E.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
85
85
|
let N = class extends HTMLElement {
|
86
86
|
static addInitializer(t) {
|
@@ -89,14 +89,14 @@ let N = class extends HTMLElement {
|
|
89
89
|
static get observedAttributes() {
|
90
90
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
91
91
|
}
|
92
|
-
static createProperty(t, s =
|
92
|
+
static createProperty(t, s = 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;
|
@@ -109,19 +109,19 @@ 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) ?? Jt;
|
113
113
|
}
|
114
114
|
static _$Ei() {
|
115
115
|
if (this.hasOwnProperty(W("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(W("finalized")))
|
122
122
|
return;
|
123
123
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("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
|
}
|
@@ -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(Zt(n));
|
148
148
|
} else
|
149
|
-
t !== void 0 && s.push(
|
149
|
+
t !== void 0 && s.push(Zt(t));
|
150
150
|
return s;
|
151
151
|
}
|
152
152
|
static _$Eu(t, s) {
|
@@ -176,7 +176,7 @@ let N = 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;
|
@@ -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 : rt).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,13 +209,13 @@ 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 : rt;
|
213
213
|
this._$Em = n, this[n] = a.fromAttribute(s, o.type), this._$Em = null;
|
214
214
|
}
|
215
215
|
}
|
216
216
|
requestUpdate(t, s, i, n = !1, r) {
|
217
217
|
if (t !== void 0) {
|
218
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
218
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? jt)(n ? r : this[t], s))
|
219
219
|
return;
|
220
220
|
this.C(t, s, i);
|
221
221
|
}
|
@@ -299,33 +299,33 @@ N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[W("elementProper
|
|
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, ot = G.trustedTypes, Vt = ot ? ot.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ce = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Te = "?" + S, $s = `<${Te}>`, P = document, Y = () => P.createComment(""), K = (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", St = `[
|
303
|
+
\f\r]`, F = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, te = /-->/g, ee = />/g, T = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
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), C = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ne = /* @__PURE__ */ new WeakMap(), O = P.createTreeWalker(P, 129);
|
305
|
+
function Pe(e, t) {
|
306
306
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
308
|
-
return
|
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 = F;
|
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 === F ? h[1] === "!--" ? o =
|
318
|
-
const f = o ===
|
319
|
-
r += o === F ? l +
|
317
|
+
p = o.lastIndex, o === F ? h[1] === "!--" ? o = te : h[1] !== void 0 ? o = ee : h[2] !== void 0 ? (Oe.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = T) : h[3] !== void 0 && (o = T) : o === T ? h[0] === ">" ? (o = n ?? F, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? T : h[3] === '"' ? ie : se) : o === ie || o === se ? o = T : o === te || o === ee ? o = F : (o = T, n = void 0);
|
318
|
+
const f = o === T && e[a + 1].startsWith("/>") ? " " : "";
|
319
|
+
r += o === F ? l + $s : d >= 0 ? (i.push(c), l.slice(0, d) + Ce + l.slice(d) + S + f) : l + S + (d === -2 ? a : f);
|
320
320
|
}
|
321
|
-
return [
|
321
|
+
return [Pe(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
323
|
class Q {
|
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 = Q.createElement(c, i), O.currentNode = this.el.content, s === 2) {
|
330
330
|
const d = this.el.content.firstChild;
|
331
331
|
d.replaceWith(...d.childNodes);
|
@@ -334,22 +334,22 @@ class Q {
|
|
334
334
|
if (n.nodeType === 1) {
|
335
335
|
if (n.hasAttributes())
|
336
336
|
for (const d of n.getAttributeNames())
|
337
|
-
if (d.endsWith(
|
338
|
-
const p = h[o++], f = n.getAttribute(d).split(S),
|
339
|
-
l.push({ type: 1, index: r, name:
|
337
|
+
if (d.endsWith(Ce)) {
|
338
|
+
const p = h[o++], f = n.getAttribute(d).split(S), w = /([.?@])?(.*)/.exec(p);
|
339
|
+
l.push({ type: 1, index: r, name: w[2], strings: f, ctor: w[1] === "." ? bs : w[1] === "?" ? _s : w[1] === "@" ? ws : $t }), 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
|
-
n.textContent =
|
345
|
+
n.textContent = ot ? ot.emptyScript : "";
|
346
346
|
for (let f = 0; f < p; f++)
|
347
347
|
n.append(d[f], Y()), O.nextNode(), l.push({ type: 2, index: ++r });
|
348
348
|
n.append(d[p], Y());
|
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 I(e, t, s = e, i) {
|
|
372
372
|
const r = K(t) ? void 0 : t._$litDirective$;
|
373
373
|
return (n == null ? void 0 : n.constructor) !== r && ((a = n == null ? void 0 : n._$AO) == null || a.call(n, !1), r === void 0 ? n = void 0 : (n = new r(e), n._$AT(e, s, i)), i !== void 0 ? (s._$Co ?? (s._$Co = []))[i] = n : s._$Cl = n), n !== void 0 && (t = I(e, n._$AS(e, t.values), n, i)), t;
|
374
374
|
}
|
375
|
-
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
|
}
|
@@ -421,7 +421,7 @@ class X {
|
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
423
|
_$AI(t, s = this) {
|
424
|
-
t = I(this, t, s), K(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) :
|
424
|
+
t = I(this, t, s), K(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : gs(t) ? this.T(t) : this._(t);
|
425
425
|
}
|
426
426
|
k(t) {
|
427
427
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -434,17 +434,17 @@ class X {
|
|
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(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
|
}
|
445
445
|
_$AC(t) {
|
446
|
-
let s =
|
447
|
-
return s === void 0 &&
|
446
|
+
let s = ne.get(t.strings);
|
447
|
+
return s === void 0 && ne.set(t.strings, s = new Q(t)), s;
|
448
448
|
}
|
449
449
|
T(t) {
|
450
450
|
ke(this._$AH) || (this._$AH = [], this._$AR());
|
@@ -466,7 +466,7 @@ class X {
|
|
466
466
|
this._$AM === void 0 && (this._$Cv = t, (s = this._$AP) == null || s.call(this, t));
|
467
467
|
}
|
468
468
|
}
|
469
|
-
class
|
469
|
+
class $t {
|
470
470
|
get tagName() {
|
471
471
|
return this.element.tagName;
|
472
472
|
}
|
@@ -493,7 +493,7 @@ class ft {
|
|
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 $t {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class ys extends ft {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let
|
504
|
+
let _s = class extends $t {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,7 +509,7 @@ let bs = class extends ft {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class
|
512
|
+
class ws extends $t {
|
513
513
|
constructor(t, s, i, n, r) {
|
514
514
|
super(t, s, i, n, r), this.type = 5;
|
515
515
|
}
|
@@ -537,7 +537,7 @@ class xs {
|
|
537
537
|
}
|
538
538
|
const Et = G.litHtmlPolyfillSupport;
|
539
539
|
Et == null || Et(Q, X), (G.litHtmlVersions ?? (G.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) {
|
@@ -551,7 +551,7 @@ const ws = (e, t, s) => {
|
|
551
551
|
* Copyright 2017 Google LLC
|
552
552
|
* SPDX-License-Identifier: BSD-3-Clause
|
553
553
|
*/
|
554
|
-
let
|
554
|
+
let v = class extends N {
|
555
555
|
constructor() {
|
556
556
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
557
557
|
}
|
@@ -562,7 +562,7 @@ let y = class extends N {
|
|
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 N {
|
|
576
576
|
return C;
|
577
577
|
}
|
578
578
|
};
|
579
|
-
var
|
580
|
-
|
579
|
+
var Se;
|
580
|
+
v._$litElement$ = !0, v.finalized = !0, (Se = globalThis.litElementHydrateSupport) == null || Se.call(globalThis, { LitElement: v });
|
581
581
|
const Ct = globalThis.litElementPolyfillSupport;
|
582
|
-
Ct == null || Ct({ LitElement:
|
582
|
+
Ct == null || Ct({ LitElement: v });
|
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>' }, H = {
|
585
585
|
allRenderFn: !1,
|
586
586
|
cmpDidLoad: !0,
|
587
587
|
cmpDidUnload: !1,
|
@@ -665,8 +665,8 @@ const As = { 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 R,
|
669
|
-
const
|
668
|
+
let R, Le, gt, Ue = !1, at = !1, Dt = !1, y = !1, re = null, Pt = !1;
|
669
|
+
const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, Ne = mt.HTMLElement || class {
|
670
670
|
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -675,7 +675,7 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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
|
+
}, Es = /* @__PURE__ */ (() => {
|
679
679
|
let e = !1;
|
680
680
|
try {
|
681
681
|
x.addEventListener("e", null, Object.defineProperty({}, "passive", {
|
@@ -686,15 +686,15 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
686
686
|
} catch {
|
687
687
|
}
|
688
688
|
return e;
|
689
|
-
})(),
|
689
|
+
})(), Cs = (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 =
|
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) => {
|
@@ -703,31 +703,31 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
703
703
|
} catch (i) {
|
704
704
|
J(i);
|
705
705
|
}
|
706
|
-
},
|
706
|
+
}, Os = (e, t) => t & 4 ? x : t & 8 ? mt : t & 16 ? x.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
|
-
|
713
|
-
},
|
714
|
-
let n =
|
709
|
+
} : (e & 2) !== 0, oe = "http://www.w3.org/1999/xlink", L = (e, t = "") => () => {
|
710
|
+
}, ae = /* @__PURE__ */ new WeakMap(), Ls = (e, t, s) => {
|
711
|
+
let i = dt.get(e);
|
712
|
+
Ts && s ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, dt.set(e, i);
|
713
|
+
}, Us = (e, t, s, i) => {
|
714
|
+
let n = Re(t, s), r = dt.get(n);
|
715
715
|
if (e = e.nodeType === 11 ? e : x, r)
|
716
716
|
if (typeof r == "string") {
|
717
717
|
e = e.head || e;
|
718
|
-
let o =
|
719
|
-
o ||
|
718
|
+
let o = ae.get(e), a;
|
719
|
+
o || ae.set(e, o = /* @__PURE__ */ new Set()), o.has(n) || (a = x.createElement("style"), a.innerHTML = r, e.insertBefore(a, e.querySelector("link")), o && o.add(n));
|
720
720
|
} else
|
721
721
|
e.adoptedStyleSheets.includes(r) || (e.adoptedStyleSheets = [...e.adoptedStyleSheets, r]);
|
722
722
|
return n;
|
723
|
-
},
|
724
|
-
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n = L("attachStyles", t.$tagName$), r =
|
723
|
+
}, Ns = (e) => {
|
724
|
+
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n = L("attachStyles", t.$tagName$), r = Us(s.shadowRoot ? s.shadowRoot : s.getRootNode(), t, e.$modeName$);
|
725
725
|
i & 10 && (s["s-sc"] = r, s.classList.add(r + "-h"), i & 2 && s.classList.add(r + "-s")), n();
|
726
|
-
},
|
726
|
+
}, 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, 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 = (d) => {
|
729
729
|
for (let p = 0; p < d.length; p++)
|
730
|
-
i = d[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !
|
730
|
+
i = d[p], Array.isArray(i) ? c(i) : i != null && typeof i != "boolean" && ((o = typeof e != "function" && !It(i)) && (i = String(i)), o && a ? l[l.length - 1].$text$ += i : l.push(o ? lt(null, i) : i), a = o);
|
731
731
|
};
|
732
732
|
if (c(s), t) {
|
733
733
|
t.key && (n = t.key), t.name && (r = t.name);
|
@@ -737,10 +737,10 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
737
737
|
}
|
738
738
|
}
|
739
739
|
if (typeof e == "function")
|
740
|
-
return e(t === null ? {} : t, l,
|
741
|
-
const h =
|
740
|
+
return e(t === null ? {} : t, l, Is);
|
741
|
+
const h = lt(e, null);
|
742
742
|
return h.$attrs$ = t, l.length > 0 && (h.$children$ = l), h.$key$ = n, h.$name$ = r, h;
|
743
|
-
},
|
743
|
+
}, lt = (e, t) => {
|
744
744
|
const s = {
|
745
745
|
$flags$: 0,
|
746
746
|
$tag$: e,
|
@@ -749,28 +749,28 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
749
749
|
$children$: null
|
750
750
|
};
|
751
751
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
752
|
-
},
|
753
|
-
forEach: (e, t) => e.map(
|
754
|
-
map: (e, t) => e.map(
|
755
|
-
},
|
752
|
+
}, Bt = {}, Ds = (e) => e && e.$tag$ === Bt, Is = {
|
753
|
+
forEach: (e, t) => e.map(ce).forEach(t),
|
754
|
+
map: (e, t) => e.map(ce).map(t).map(Bs)
|
755
|
+
}, ce = (e) => ({
|
756
756
|
vattrs: e.$attrs$,
|
757
757
|
vchildren: e.$children$,
|
758
758
|
vkey: e.$key$,
|
759
759
|
vname: e.$name$,
|
760
760
|
vtag: e.$tag$,
|
761
761
|
vtext: e.$text$
|
762
|
-
}),
|
762
|
+
}), 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), j(e.vtag, s, ...e.vchildren || []);
|
766
766
|
}
|
767
|
-
const t =
|
767
|
+
const t = lt(e.vtag, e.vtext);
|
768
768
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
769
|
-
},
|
769
|
+
}, de = (e, t, s, i, n, r) => {
|
770
770
|
if (s !== i) {
|
771
|
-
let o =
|
771
|
+
let o = fe(e, t), a = t.toLowerCase();
|
772
772
|
if (t === "class") {
|
773
|
-
const l = e.classList, c =
|
773
|
+
const l = e.classList, c = he(s), h = he(i);
|
774
774
|
l.remove(...c.filter((d) => d && !h.includes(d))), l.add(...h.filter((d) => d && !c.includes(d)));
|
775
775
|
} else if (t === "style") {
|
776
776
|
for (const l in s)
|
@@ -781,9 +781,9 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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) : fe(mt, a) ? t = a.slice(2) : t = a[2] + t.slice(3), s && m.rel(e, t, s, !1), i && m.ael(e, t, i, !1);
|
785
785
|
else {
|
786
|
-
const l =
|
786
|
+
const l = It(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
788
788
|
try {
|
789
789
|
if (e.tagName.includes("-"))
|
@@ -795,18 +795,18 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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(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
|
-
},
|
802
|
-
const n = t.$elm$.nodeType === 11 && t.$elm$.host ? t.$elm$.host : t.$elm$, r = e && e.$attrs$ ||
|
801
|
+
}, zs = /\s/, he = (e) => e ? e.split(zs) : [], Me = (e, t, s, i) => {
|
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
|
-
i in o ||
|
804
|
+
i in o || de(n, i, r[i], void 0, s, t.$flags$);
|
805
805
|
for (i in o)
|
806
|
-
|
807
|
-
},
|
806
|
+
de(n, i, r[i], o[i], s, t.$flags$);
|
807
|
+
}, ct = (e, t, s, i) => {
|
808
808
|
let n = t.$children$[s], r = 0, o, a, l;
|
809
|
-
if (
|
809
|
+
if (Ue || (Dt = !0, n.$tag$ === "slot" && (R && i.classList.add(R + "-s"), n.$flags$ |= n.$children$ ? (
|
810
810
|
// slot element has fallback content
|
811
811
|
2
|
812
812
|
) : (
|
@@ -817,29 +817,29 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
817
817
|
else if (n.$flags$ & 1)
|
818
818
|
o = n.$elm$ = x.createTextNode("");
|
819
819
|
else {
|
820
|
-
if (
|
820
|
+
if (y || (y = n.$tag$ === "svg"), o = n.$elm$ = x.createElementNS(y ? Rs : Ms, n.$flags$ & 2 ? "slot-fb" : n.$tag$), y && n.$tag$ === "foreignObject" && (y = !1), Me(null, n, y), js(R) && o["s-si"] !== R && o.classList.add(o["s-si"] = R), n.$children$)
|
821
821
|
for (r = 0; r < n.$children$.length; ++r)
|
822
|
-
a =
|
823
|
-
n.$tag$ === "svg" ?
|
822
|
+
a = ct(e, n, r, o), a && o.appendChild(a);
|
823
|
+
n.$tag$ === "svg" ? y = !1 : o.tagName === "foreignObject" && (y = !0);
|
824
824
|
}
|
825
|
-
return o["s-hn"] =
|
825
|
+
return o["s-hn"] = gt, 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$ && 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"] !== gt && n["s-ol"] && (Ie(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
|
+
}, 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 ===
|
837
|
-
i[n] && (a =
|
838
|
-
},
|
836
|
+
for (o.shadowRoot && o.tagName === gt && (o = o.shadowRoot); n <= r; ++n)
|
837
|
+
i[n] && (a = ct(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a, zt(t))));
|
838
|
+
}, De = (e, t, s, i, n) => {
|
839
839
|
for (; t <= s; ++t)
|
840
|
-
(i = e[t]) && (n = i.$elm$,
|
841
|
-
},
|
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],
|
840
|
+
(i = e[t]) && (n = i.$elm$, Fe(i), at = !0, n["s-ol"] ? n["s-ol"].remove() : Z(n, !0), n.remove());
|
841
|
+
}, Fs = (e, t, s, i) => {
|
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], w, et;
|
843
843
|
for (; n <= l && r <= d; )
|
844
844
|
if (c == null)
|
845
845
|
c = t[++n];
|
@@ -849,13 +849,13 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
849
849
|
p = i[++r];
|
850
850
|
else if (f == null)
|
851
851
|
f = i[--d];
|
852
|
-
else if (
|
852
|
+
else if (st(c, p))
|
853
853
|
M(c, p), c = t[++n], p = i[++r];
|
854
|
-
else if (
|
854
|
+
else if (st(h, f))
|
855
855
|
M(h, f), h = t[--l], f = i[--d];
|
856
|
-
else if (
|
856
|
+
else if (st(c, f))
|
857
857
|
(c.$tag$ === "slot" || f.$tag$ === "slot") && Z(c.$elm$.parentNode, !1), M(c, f), e.insertBefore(c.$elm$, h.$elm$.nextSibling), c = t[++n], f = i[--d];
|
858
|
-
else if (
|
858
|
+
else if (st(h, p))
|
859
859
|
(c.$tag$ === "slot" || f.$tag$ === "slot") && Z(h.$elm$.parentNode, !1), M(h, p), e.insertBefore(h.$elm$, c.$elm$), h = t[--l], p = i[++r];
|
860
860
|
else {
|
861
861
|
for (o = -1, a = n; a <= l; ++a)
|
@@ -863,14 +863,14 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
863
863
|
o = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
o >= 0 ? (
|
866
|
+
o >= 0 ? (et = t[o], et.$tag$ !== p.$tag$ ? w = ct(t && t[r], s, o, e) : (M(et, p), t[o] = void 0, w = et.$elm$), p = i[++r]) : (w = ct(t && t[r], s, r, e), p = i[++r]), w && Ie(c.$elm$).insertBefore(w, zt(c.$elm$));
|
867
867
|
}
|
868
|
-
n > l ?
|
869
|
-
},
|
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
|
+
}, st = (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, Ie = (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 ? (
|
873
|
-
},
|
872
|
+
o === null ? (y = r === "svg" ? !0 : r === "foreignObject" ? !1 : y, r === "slot" || Me(e, t, y), 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), y && r === "svg" && (y = !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,31 +886,31 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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)
|
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"] && (pe(s, n) ? (r = b.find((h) => h.$nodeToRelocate$ === s), at = !0, s["s-sn"] = s["s-sn"] || n, r ? r.$slotRefNode$ = t : b.push({
|
897
897
|
$slotRefNode$: t,
|
898
898
|
$nodeToRelocate$: s
|
899
899
|
}), s["s-sr"] && b.map((h) => {
|
900
|
-
|
900
|
+
pe(h.$nodeToRelocate$, s["s-sn"]) && (r = b.find((d) => d.$nodeToRelocate$ === s), r && !h.$slotRefNode$ && (h.$slotRefNode$ = r.$slotRefNode$));
|
901
901
|
})) : b.some((h) => h.$nodeToRelocate$ === s) || b.push({
|
902
902
|
$nodeToRelocate$: s
|
903
903
|
}));
|
904
|
-
t.nodeType === 1 &&
|
904
|
+
t.nodeType === 1 && ze(t);
|
905
905
|
}
|
906
|
-
},
|
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$ ||
|
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$ || lt(null, null), r = Ds(t) ? t : j(null, null, t);
|
910
|
+
gt = s.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = s[o])), r.$tag$ = null, r.$flags$ |= 4, e.$vnode$ = r, r.$elm$ = n.$elm$ = s.shadowRoot || s, R = s["s-sc"], Le = s["s-cr"], Ue = (i.$flags$ & 1) !== 0, at = !1, M(n, r);
|
911
911
|
{
|
912
|
-
if (m.$flags$ |= 1,
|
913
|
-
|
912
|
+
if (m.$flags$ |= 1, Dt) {
|
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 gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
|
928
|
+
at && 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
|
-
},
|
940
|
+
}, Ys = (e, t, s) => {
|
941
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 = L("scheduleUpdate", e.$cmpMeta$.$tagName$), n = s;
|
946
946
|
let r;
|
947
|
-
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r =
|
948
|
-
},
|
947
|
+
return t ? r = D(n, "componentWillLoad") : r = D(n, "componentWillUpdate"), r = ue(r, () => D(n, "componentWillRender")), i(), ue(r, () => Zs(e, n, t));
|
948
|
+
}, Zs = async (e, t, s) => {
|
949
949
|
const i = e.$hostElement$, n = L("update", e.$cmpMeta$.$tagName$);
|
950
|
-
i["s-rc"], s &&
|
950
|
+
i["s-rc"], s && Ns(e);
|
951
951
|
const r = L("render", e.$cmpMeta$.$tagName$);
|
952
|
-
|
953
|
-
},
|
952
|
+
Xs(e, t, i), r(), n(), Js(e);
|
953
|
+
}, Xs = (e, t, s) => {
|
954
954
|
try {
|
955
|
-
|
955
|
+
re = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide || Ws(e, t));
|
956
956
|
} catch (a) {
|
957
957
|
J(a, e.$hostElement$);
|
958
958
|
}
|
959
|
-
return
|
960
|
-
},
|
959
|
+
return re = null, null;
|
960
|
+
}, Js = (e) => {
|
961
961
|
const t = e.$cmpMeta$.$tagName$, s = e.$hostElement$, i = L("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) => {
|
@@ -967,9 +967,9 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
967
967
|
} catch (i) {
|
968
968
|
J(i);
|
969
969
|
}
|
970
|
-
},
|
971
|
-
const n =
|
972
|
-
s =
|
970
|
+
}, ue = (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) => vt(e).$instanceValues$.get(t), ei = (e, t, s, i) => {
|
971
|
+
const n = vt(e), r = e, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
|
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 gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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
|
@@ -1028,37 +1028,37 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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 =
|
1036
|
-
if (!
|
1034
|
+
typeof o != "string" && (o = o[t.$modeName$ = Hs(e)]);
|
1035
|
+
const a = Re(s, t.$modeName$);
|
1036
|
+
if (!dt.has(a)) {
|
1037
1037
|
const l = L("registerStyles", s.$tagName$);
|
1038
|
-
|
1038
|
+
Ls(a, o, !!(s.$flags$ & 1)), l();
|
1039
1039
|
}
|
1040
1040
|
}
|
1041
|
-
t.$ancestorComponent$, (() =>
|
1042
|
-
}, ii = (e) => {
|
1041
|
+
t.$ancestorComponent$, (() => We(t, !0))();
|
1043
1042
|
}, ni = (e) => {
|
1043
|
+
}, ri = (e) => {
|
1044
1044
|
if (!(m.$flags$ & 1)) {
|
1045
|
-
const t =
|
1046
|
-
t.$flags$ & 1 ? (
|
1045
|
+
const t = vt(e), s = t.$cmpMeta$, i = L("connectedCallback", s.$tagName$);
|
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
|
-
},
|
1056
|
+
}, ai = (e) => {
|
1057
1057
|
if (!(m.$flags$ & 1)) {
|
1058
|
-
const t =
|
1058
|
+
const t = vt(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 gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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,18 +1081,18 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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(), vt = (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
|
-
},
|
1094
|
-
e.push(s), Pt || (Pt = !0, t && m.$flags$ & 4 ?
|
1095
|
-
},
|
1092
|
+
return He(e, s, t.$listeners$), qe.set(e, s);
|
1093
|
+
}, fe = (e, t) => t in e, J = (e, t) => (0, console.error)(e, t), dt = /* @__PURE__ */ new Map(), ci = [], $e = [], Ye = [], di = (e, t) => (s) => {
|
1094
|
+
e.push(s), Pt || (Pt = !0, t && m.$flags$ & 4 ? hi(Lt) : m.raf(Lt));
|
1095
|
+
}, ge = (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 gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
1101
1101
|
}
|
1102
1102
|
e.length = 0;
|
1103
1103
|
}, Lt = () => {
|
1104
|
-
$e
|
1105
|
-
},
|
1104
|
+
ge($e), ge(Ye), (Pt = $e.length > 0) && m.raf(Lt);
|
1105
|
+
}, hi = (e) => Cs().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,54 +1110,54 @@ const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, U
|
|
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
|
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
|
-
return j(
|
1130
|
+
return j(Bt, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
|
-
return
|
1133
|
+
return mi;
|
1134
1134
|
}
|
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 Ut() {
|
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 Ut().vocadsIcons !== void 0)
|
1155
1155
|
return Ut().vocadsIcons;
|
1156
1156
|
}
|
1157
|
-
function
|
1157
|
+
function bi() {
|
1158
1158
|
return Ut().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))}", wi = /* @__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 bi = ".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 bi = ".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
|
-
return j(
|
1189
|
+
return j(Bt, { class: `telia-icon telia-icon--${this.size}` }, j("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: s }), j("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
1190
1190
|
}
|
1191
1191
|
static get style() {
|
1192
|
-
return
|
1192
|
+
return _i;
|
1193
1193
|
}
|
1194
1194
|
}, [0, "telia-icon", {
|
1195
1195
|
name: [1],
|
@@ -1204,10 +1204,10 @@ function xi() {
|
|
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, wi);
|
1208
1208
|
break;
|
1209
1209
|
case "telia-vst":
|
1210
|
-
customElements.get(t) ||
|
1210
|
+
customElements.get(t) || Ke();
|
1211
1211
|
break;
|
1212
1212
|
}
|
1213
1213
|
});
|
@@ -1218,7 +1218,7 @@ xi();
|
|
1218
1218
|
* Copyright 2017 Google LLC
|
1219
1219
|
* SPDX-License-Identifier: BSD-3-Clause
|
1220
1220
|
*/
|
1221
|
-
const
|
1221
|
+
const V = (e) => (t, s) => {
|
1222
1222
|
s !== void 0 ? s.addInitializer(() => {
|
1223
1223
|
customElements.define(e, t);
|
1224
1224
|
}) : customElements.define(e, t);
|
@@ -1228,7 +1228,7 @@ const vt = (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: rt, 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") {
|
@@ -1250,7 +1250,7 @@ const wi = { attribute: !0, type: String, converter: nt, 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,14 +1268,14 @@ function A(e) {
|
|
1268
1268
|
* Copyright 2020 Google LLC
|
1269
1269
|
* SPDX-License-Identifier: BSD-3-Clause
|
1270
1270
|
*/
|
1271
|
-
const
|
1271
|
+
const Ei = (e) => e.strings === void 0;
|
1272
1272
|
/**
|
1273
1273
|
* @license
|
1274
1274
|
* Copyright 2017 Google LLC
|
1275
1275
|
* SPDX-License-Identifier: BSD-3-Clause
|
1276
1276
|
*/
|
1277
1277
|
const yt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, bt = (e) => (...t) => ({ _$litDirective$: e, values: t });
|
1278
|
-
let
|
1278
|
+
let Ft = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
1281
1281
|
get _$AU() {
|
@@ -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
|
+
}, ht = (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
|
+
}, Qe = (e) => {
|
1315
1315
|
for (let t; t = e._$AM; e = t) {
|
1316
1316
|
let s = t._$AN;
|
1317
1317
|
if (s === void 0)
|
@@ -1321,37 +1321,37 @@ const q = (e, t) => {
|
|
1321
1321
|
s.add(e), ki(t);
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
|
-
function
|
1325
|
-
this._$AN !== void 0 ? (
|
1324
|
+
function Ci(e) {
|
1325
|
+
this._$AN !== void 0 ? (ht(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)
|
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), ht(i[r]);
|
1334
1334
|
else
|
1335
|
-
i != null && (q(i, !1),
|
1335
|
+
i != null && (q(i, !1), ht(i));
|
1336
1336
|
else
|
1337
1337
|
q(this, e);
|
1338
1338
|
}
|
1339
1339
|
const ki = (e) => {
|
1340
|
-
e.type == yt.CHILD && (e._$AP ?? (e._$AP =
|
1340
|
+
e.type == yt.CHILD && (e._$AP ?? (e._$AP = Ti), e._$AQ ?? (e._$AQ = Ci));
|
1341
1341
|
};
|
1342
|
-
let
|
1342
|
+
let Ze = 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), Qe(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), ht(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
|
-
if (
|
1354
|
+
if (Ei(this._$Ct))
|
1355
1355
|
this._$Ct._$AI(t, this);
|
1356
1356
|
else {
|
1357
1357
|
const s = [...this._$Ct._$AH];
|
@@ -1368,10 +1368,10 @@ let Qe = class extends zt {
|
|
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
|
1374
|
+
const Tt = /* @__PURE__ */ new WeakMap(), Je = bt(class extends Ze {
|
1375
1375
|
render(e) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1383,14 +1383,14 @@ const kt = /* @__PURE__ */ new WeakMap(), Xe = bt(class extends Qe {
|
|
1383
1383
|
ot(e) {
|
1384
1384
|
if (typeof this.G == "function") {
|
1385
1385
|
const t = this.ct ?? globalThis;
|
1386
|
-
let s =
|
1387
|
-
s === void 0 && (s = /* @__PURE__ */ new WeakMap(),
|
1386
|
+
let s = Tt.get(t);
|
1387
|
+
s === void 0 && (s = /* @__PURE__ */ new WeakMap(), Tt.set(t, s)), s.get(this.G) !== void 0 && this.G.call(this.ct, void 0), s.set(this.G, e), e !== void 0 && this.G.call(this.ct, e);
|
1388
1388
|
} else
|
1389
1389
|
this.G.value = e;
|
1390
1390
|
}
|
1391
1391
|
get rt() {
|
1392
1392
|
var e, t;
|
1393
|
-
return typeof this.G == "function" ? (e =
|
1393
|
+
return typeof this.G == "function" ? (e = Tt.get(this.ct ?? globalThis)) == null ? void 0 : e.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1394
1394
|
}
|
1395
1395
|
disconnected() {
|
1396
1396
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1404,7 +1404,7 @@ const kt = /* @__PURE__ */ new WeakMap(), Xe = bt(class extends Qe {
|
|
1404
1404
|
* Copyright 2018 Google LLC
|
1405
1405
|
* SPDX-License-Identifier: BSD-3-Clause
|
1406
1406
|
*/
|
1407
|
-
const
|
1407
|
+
const Wt = bt(class extends Ft {
|
1408
1408
|
constructor(e) {
|
1409
1409
|
var t;
|
1410
1410
|
if (super(e), e.type !== yt.ATTRIBUTE || e.name !== "class" || ((t = e.strings) == null ? void 0 : t.length) > 2)
|
@@ -1430,30 +1430,30 @@ const Ft = bt(class extends zt {
|
|
1430
1430
|
}
|
1431
1431
|
return C;
|
1432
1432
|
}
|
1433
|
-
}),
|
1433
|
+
}), it = (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
|
+
it((s = e.colors) == null ? void 0 : s.primaryBackground, "--primary-background", t), it(
|
1438
1438
|
(i = e.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1439
1439
|
"--text-on-primary-background",
|
1440
1440
|
t
|
1441
|
-
),
|
1441
|
+
), it(
|
1442
1442
|
(n = e.colors) == null ? void 0 : n.secondaryBackground,
|
1443
1443
|
"--secondary-background",
|
1444
1444
|
t
|
1445
|
-
),
|
1445
|
+
), it(
|
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
|
1452
|
-
for (var n = i > 1 ? void 0 : i ?
|
1451
|
+
var Pi = Object.defineProperty, Li = Object.getOwnPropertyDescriptor, _t = (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
|
-
class U extends
|
1456
|
+
class U extends v {
|
1457
1457
|
constructor() {
|
1458
1458
|
super(...arguments), this.active = !1, this.loaded = !1;
|
1459
1459
|
}
|
@@ -1472,14 +1472,14 @@ class U extends y {
|
|
1472
1472
|
}
|
1473
1473
|
_applyBranding() {
|
1474
1474
|
var t;
|
1475
|
-
(t = this.application) != null && t.settings &&
|
1475
|
+
(t = this.application) != null && t.settings && Ve(this.application.settings.branding, this);
|
1476
1476
|
}
|
1477
1477
|
async _renderSymbol() {
|
1478
1478
|
var r;
|
1479
1479
|
const t = (r = this.application) == null ? void 0 : r.triggerIcon;
|
1480
1480
|
if (!t)
|
1481
1481
|
return u;
|
1482
|
-
const s = async (o) => await import("./index-
|
1482
|
+
const s = async (o) => await import("./index-cc3fb480.mjs").then(
|
1483
1483
|
(l) => l[o]
|
1484
1484
|
), { type: i, content: n } = t;
|
1485
1485
|
switch (i) {
|
@@ -1497,7 +1497,7 @@ class U extends y {
|
|
1497
1497
|
}
|
1498
1498
|
render() {
|
1499
1499
|
return $`<button
|
1500
|
-
class=${
|
1500
|
+
class=${Wt({
|
1501
1501
|
trigger: !0,
|
1502
1502
|
active: this.active,
|
1503
1503
|
rendered: this.loaded
|
@@ -1536,7 +1536,7 @@ class U extends y {
|
|
1536
1536
|
}
|
1537
1537
|
}
|
1538
1538
|
U.styles = [
|
1539
|
-
|
1539
|
+
_`
|
1540
1540
|
:host {
|
1541
1541
|
--voca-rem-multiplier: 0.625;
|
1542
1542
|
display: block;
|
@@ -1618,12 +1618,12 @@ _t([
|
|
1618
1618
|
_t([
|
1619
1619
|
A()
|
1620
1620
|
], U.prototype, "icon", 2);
|
1621
|
-
var
|
1622
|
-
for (var n = i > 1 ? void 0 : i ?
|
1621
|
+
var Ui = Object.defineProperty, Ni = Object.getOwnPropertyDescriptor, k = (e, t, s, i) => {
|
1622
|
+
for (var n = i > 1 ? void 0 : i ? Ni(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1623
1623
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1624
|
-
return i && n &&
|
1624
|
+
return i && n && Ui(t, s, n), n;
|
1625
1625
|
};
|
1626
|
-
const
|
1626
|
+
const ts = (e) => {
|
1627
1627
|
class t extends e {
|
1628
1628
|
constructor() {
|
1629
1629
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1649,7 +1649,7 @@ const Ve = (e) => {
|
|
1649
1649
|
}
|
1650
1650
|
return t.styles = [
|
1651
1651
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1652
|
-
|
1652
|
+
_`
|
1653
1653
|
:host {
|
1654
1654
|
font-family: var(--font-family);
|
1655
1655
|
grid-column: span var(--width);
|
@@ -1662,29 +1662,29 @@ const Ve = (e) => {
|
|
1662
1662
|
box-sizing: border-box;
|
1663
1663
|
}
|
1664
1664
|
`
|
1665
|
-
],
|
1665
|
+
], k([
|
1666
1666
|
g()
|
1667
|
-
], t.prototype, "properties", 2),
|
1667
|
+
], t.prototype, "properties", 2), k([
|
1668
1668
|
g()
|
1669
|
-
], t.prototype, "context", 2),
|
1669
|
+
], t.prototype, "context", 2), k([
|
1670
1670
|
g()
|
1671
|
-
], t.prototype, "layout", 2),
|
1671
|
+
], t.prototype, "layout", 2), k([
|
1672
1672
|
g()
|
1673
|
-
], t.prototype, "name", 2),
|
1673
|
+
], t.prototype, "name", 2), k([
|
1674
1674
|
g()
|
1675
|
-
], t.prototype, "type", 2),
|
1675
|
+
], t.prototype, "type", 2), k([
|
1676
1676
|
g({ attribute: !1 })
|
1677
|
-
], t.prototype, "application", 2),
|
1677
|
+
], t.prototype, "application", 2), k([
|
1678
1678
|
g({ attribute: !1 })
|
1679
1679
|
], t.prototype, "parent", 2), t;
|
1680
1680
|
};
|
1681
|
-
class
|
1681
|
+
class es extends ts(v) {
|
1682
1682
|
render() {
|
1683
1683
|
return $`Non resolved component`;
|
1684
1684
|
}
|
1685
1685
|
}
|
1686
|
-
|
1687
|
-
|
1686
|
+
es.styles = [
|
1687
|
+
_`
|
1688
1688
|
:host {
|
1689
1689
|
display: block;
|
1690
1690
|
}
|
@@ -1695,21 +1695,21 @@ ts.styles = [
|
|
1695
1695
|
* Copyright 2021 Google LLC
|
1696
1696
|
* SPDX-License-Identifier: BSD-3-Clause
|
1697
1697
|
*/
|
1698
|
-
function*
|
1698
|
+
function* Hi(e, t) {
|
1699
1699
|
if (e !== void 0) {
|
1700
1700
|
let s = 0;
|
1701
1701
|
for (const i of e)
|
1702
1702
|
yield t(i, s++);
|
1703
1703
|
}
|
1704
1704
|
}
|
1705
|
-
var
|
1706
|
-
for (var n = i > 1 ? void 0 : i ?
|
1705
|
+
var Gt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Gt || {}), Ri = Object.defineProperty, Mi = Object.getOwnPropertyDescriptor, ji = (e, t, s, i) => {
|
1706
|
+
for (var n = i > 1 ? void 0 : i ? Mi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1707
1707
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1708
|
-
return i && n &&
|
1708
|
+
return i && n && Ri(t, s, n), n;
|
1709
1709
|
};
|
1710
|
-
class
|
1710
|
+
class qt extends v {
|
1711
1711
|
constructor() {
|
1712
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1712
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Xe();
|
1713
1713
|
}
|
1714
1714
|
addChild(t) {
|
1715
1715
|
t.parent = this, this.nodes.push(t);
|
@@ -1717,19 +1717,19 @@ class Gt extends y {
|
|
1717
1717
|
applyBranding() {
|
1718
1718
|
if (this.wrapperRef.value) {
|
1719
1719
|
const t = this.application.settings;
|
1720
|
-
t != null && t.branding &&
|
1720
|
+
t != null && t.branding && Ve(t.branding, this.wrapperRef.value);
|
1721
1721
|
}
|
1722
1722
|
}
|
1723
1723
|
firstUpdated(t) {
|
1724
1724
|
this.applyBranding();
|
1725
1725
|
}
|
1726
1726
|
render() {
|
1727
|
-
return this.application.renderStrategy ===
|
1728
|
-
${
|
1727
|
+
return this.application.renderStrategy === Gt.Trigger && this.renderRoot.host.classList.add("floating"), $`<div class="widget-container" ${Je(this.wrapperRef)}>
|
1728
|
+
${Hi(this.nodes, (t) => t)}
|
1729
1729
|
</div>`;
|
1730
1730
|
}
|
1731
1731
|
}
|
1732
|
-
|
1732
|
+
qt.styles = _`
|
1733
1733
|
:host {
|
1734
1734
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1735
1735
|
--spacing-xs: 0.2rem;
|
@@ -1808,15 +1808,15 @@ Gt.styles = w`
|
|
1808
1808
|
}
|
1809
1809
|
}
|
1810
1810
|
`;
|
1811
|
-
|
1811
|
+
ji([
|
1812
1812
|
g({ attribute: !1 })
|
1813
|
-
],
|
1814
|
-
var
|
1815
|
-
for (var n = i > 1 ? void 0 : i ?
|
1813
|
+
], qt.prototype, "application", 2);
|
1814
|
+
var Di = Object.defineProperty, Ii = Object.getOwnPropertyDescriptor, Yt = (e, t, s, i) => {
|
1815
|
+
for (var n = i > 1 ? void 0 : i ? Ii(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
1816
1816
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
1817
|
-
return i && n &&
|
1817
|
+
return i && n && Di(t, s, n), n;
|
1818
1818
|
};
|
1819
|
-
class
|
1819
|
+
class tt extends v {
|
1820
1820
|
constructor() {
|
1821
1821
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1822
1822
|
}
|
@@ -1841,59 +1841,59 @@ class V extends y {
|
|
1841
1841
|
render() {
|
1842
1842
|
if (!this.widget || this.status !== "activated")
|
1843
1843
|
return u;
|
1844
|
-
if (this.widget.renderStrategy ===
|
1844
|
+
if (this.widget.renderStrategy === Gt.Trigger) {
|
1845
1845
|
const t = new U();
|
1846
1846
|
return t.application = this.widget, t;
|
1847
1847
|
}
|
1848
1848
|
return this.widget.render();
|
1849
1849
|
}
|
1850
1850
|
}
|
1851
|
-
|
1852
|
-
|
1851
|
+
tt.styles = [
|
1852
|
+
_`
|
1853
1853
|
:host {
|
1854
1854
|
display: block;
|
1855
1855
|
}
|
1856
1856
|
`
|
1857
1857
|
];
|
1858
|
-
|
1858
|
+
Yt([
|
1859
1859
|
g({ attribute: !0 })
|
1860
|
-
],
|
1861
|
-
|
1860
|
+
], tt.prototype, "name", 2);
|
1861
|
+
Yt([
|
1862
1862
|
A()
|
1863
|
-
],
|
1864
|
-
|
1863
|
+
], tt.prototype, "widget", 2);
|
1864
|
+
Yt([
|
1865
1865
|
A()
|
1866
|
-
],
|
1866
|
+
], tt.prototype, "status", 2);
|
1867
1867
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", U);
|
1868
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
1869
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
1870
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
1871
|
-
const
|
1872
|
-
let
|
1873
|
-
const
|
1868
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", es);
|
1869
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", qt);
|
1870
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", tt);
|
1871
|
+
const Bi = /* @__PURE__ */ new WeakMap();
|
1872
|
+
let me = 0;
|
1873
|
+
const kt = /* @__PURE__ */ new Map(), ve = /* @__PURE__ */ new WeakSet(), ye = () => new Promise((e) => requestAnimationFrame(e)), zi = [{ opacity: 0 }], be = [{ opacity: 0 }, { opacity: 1 }], _e = (e, t) => {
|
1874
1874
|
const s = e - t;
|
1875
1875
|
return s === 0 ? void 0 : s;
|
1876
|
-
},
|
1876
|
+
}, we = (e, t) => {
|
1877
1877
|
const s = e / t;
|
1878
1878
|
return s === 1 ? void 0 : s;
|
1879
1879
|
}, Ot = { left: (e, t) => {
|
1880
|
-
const s =
|
1880
|
+
const s = _e(e, t);
|
1881
1881
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1882
1882
|
}, top: (e, t) => {
|
1883
|
-
const s =
|
1883
|
+
const s = _e(e, t);
|
1884
1884
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateY(${s}px)` };
|
1885
1885
|
}, width: (e, t) => {
|
1886
1886
|
let s;
|
1887
1887
|
t === 0 && (t = 1, s = { width: "1px" });
|
1888
|
-
const i =
|
1888
|
+
const i = we(e, t);
|
1889
1889
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1890
1890
|
}, height: (e, t) => {
|
1891
1891
|
let s;
|
1892
1892
|
t === 0 && (t = 1, s = { height: "1px" });
|
1893
|
-
const i =
|
1893
|
+
const i = we(e, t);
|
1894
1894
|
return { value: i, overrideFrom: s, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1895
|
-
} },
|
1896
|
-
class
|
1895
|
+
} }, Fi = { duration: 333, easing: "ease-in-out" }, Wi = ["left", "top", "width", "height", "opacity", "color", "background"], xe = /* @__PURE__ */ new WeakMap();
|
1896
|
+
class Gi extends Ze {
|
1897
1897
|
constructor(t) {
|
1898
1898
|
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === yt.CHILD)
|
1899
1899
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1913,7 +1913,7 @@ class Wi extends Qe {
|
|
1913
1913
|
return u;
|
1914
1914
|
}
|
1915
1915
|
getController() {
|
1916
|
-
return
|
1916
|
+
return Bi.get(this.l);
|
1917
1917
|
}
|
1918
1918
|
isDisabled() {
|
1919
1919
|
var t;
|
@@ -1927,7 +1927,7 @@ class Wi extends Qe {
|
|
1927
1927
|
u(t) {
|
1928
1928
|
t = t ?? {};
|
1929
1929
|
const s = this.getController();
|
1930
|
-
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1930
|
+
s !== void 0 && ((t = { ...s.defaultOptions, ...t }).keyframeOptions = { ...s.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = Wi), this.options = t;
|
1931
1931
|
}
|
1932
1932
|
p() {
|
1933
1933
|
const t = {}, s = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
@@ -1954,17 +1954,17 @@ class Wi extends Qe {
|
|
1954
1954
|
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
1955
1955
|
return;
|
1956
1956
|
let t;
|
1957
|
-
this.prepare(), await
|
1957
|
+
this.prepare(), await ye;
|
1958
1958
|
const s = this._(), i = this.A(this.options.keyframeOptions, s), n = this.p();
|
1959
1959
|
if (this.g !== void 0) {
|
1960
1960
|
const { from: r, to: o } = this.O(this.g, n, s);
|
1961
1961
|
this.log("measured", [this.g, n, r, o]), t = this.calculateKeyframes(r, o);
|
1962
1962
|
} else {
|
1963
|
-
const r =
|
1963
|
+
const r = kt.get(this.options.inId);
|
1964
1964
|
if (r) {
|
1965
|
-
|
1965
|
+
kt.delete(this.options.inId);
|
1966
1966
|
const { from: o, to: a } = this.O(r, n, s);
|
1967
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1967
|
+
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);
|
1968
1968
|
} else
|
1969
1969
|
this.options.in && (t = [...this.options.in, {}]);
|
1970
1970
|
}
|
@@ -1981,9 +1981,9 @@ class Wi extends Qe {
|
|
1981
1981
|
}
|
1982
1982
|
async disconnected() {
|
1983
1983
|
var s;
|
1984
|
-
if (!this.o || (this.options.id !== void 0 &&
|
1984
|
+
if (!this.o || (this.options.id !== void 0 && kt.set(this.options.id, this.g), this.options.out === void 0))
|
1985
1985
|
return;
|
1986
|
-
if (this.prepare(), await
|
1986
|
+
if (this.prepare(), await ye(), (s = this.t) == null ? void 0 : s.isConnected) {
|
1987
1987
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
1988
1988
|
if (this.t.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1989
1989
|
const n = this.p();
|
@@ -2015,13 +2015,13 @@ class Wi extends Qe {
|
|
2015
2015
|
return t;
|
2016
2016
|
}
|
2017
2017
|
get isHostRendered() {
|
2018
|
-
const t =
|
2018
|
+
const t = ve.has(this.l);
|
2019
2019
|
return t || this.l.updateComplete.then(() => {
|
2020
|
-
|
2020
|
+
ve.add(this.l);
|
2021
2021
|
}), t;
|
2022
2022
|
}
|
2023
2023
|
A(t, s = this._()) {
|
2024
|
-
const i = { ...
|
2024
|
+
const i = { ...Fi };
|
2025
2025
|
return s.forEach((n) => Object.assign(i, n.options.keyframeOptions)), Object.assign(i, t), i;
|
2026
2026
|
}
|
2027
2027
|
O(t, s, i) {
|
@@ -2072,19 +2072,21 @@ class Wi extends Qe {
|
|
2072
2072
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, s);
|
2073
2073
|
}
|
2074
2074
|
}
|
2075
|
-
const
|
2076
|
-
var
|
2077
|
-
for (var n = i > 1 ? void 0 : i ?
|
2075
|
+
const Ae = bt(Gi);
|
2076
|
+
var qi = Object.defineProperty, Yi = Object.getOwnPropertyDescriptor, wt = (e, t, s, i) => {
|
2077
|
+
for (var n = i > 1 ? void 0 : i ? Yi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2078
2078
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2079
|
-
return i && n &&
|
2079
|
+
return i && n && qi(t, s, n), n;
|
2080
2080
|
};
|
2081
|
-
let B = class extends
|
2081
|
+
let B = class extends v {
|
2082
2082
|
constructor() {
|
2083
|
-
super(...arguments), this.loading = !
|
2083
|
+
super(...arguments), this.loading = !0, this.entries = [];
|
2084
2084
|
}
|
2085
2085
|
connectedCallback() {
|
2086
2086
|
super.connectedCallback(), this.session.entries().subscribe((e) => {
|
2087
2087
|
this.entries = e;
|
2088
|
+
}), this.session.isTyping().subscribe((e) => {
|
2089
|
+
this.loading = e;
|
2088
2090
|
});
|
2089
2091
|
}
|
2090
2092
|
render() {
|
@@ -2093,9 +2095,9 @@ let B = class extends y {
|
|
2093
2095
|
(e) => $`<div class="conversation-entry" tabindex="-1">
|
2094
2096
|
<conversation-entry
|
2095
2097
|
.entry=${e}
|
2096
|
-
${
|
2098
|
+
${Ae({
|
2097
2099
|
keyframeOptions: {},
|
2098
|
-
in:
|
2100
|
+
in: be,
|
2099
2101
|
stabilizeOut: !0,
|
2100
2102
|
skipInitial: !1
|
2101
2103
|
})}
|
@@ -2103,23 +2105,20 @@ let B = class extends y {
|
|
2103
2105
|
</conversation-entry>
|
2104
2106
|
</div>`
|
2105
2107
|
)}
|
2106
|
-
${this.loading ? $`<
|
2107
|
-
|
2108
|
-
|
2109
|
-
in:
|
2110
|
-
out:
|
2108
|
+
${this.loading ? $`<ace-typing-state
|
2109
|
+
${Ae({
|
2110
|
+
keyframeOptions: {},
|
2111
|
+
in: be,
|
2112
|
+
out: zi,
|
2113
|
+
stabilizeOut: !0,
|
2111
2114
|
skipInitial: !1
|
2112
2115
|
})}
|
2113
|
-
|
2114
|
-
|
2115
|
-
<div></div>
|
2116
|
-
<div></div>
|
2117
|
-
</div>` : u}
|
2118
|
-
</div>`;
|
2116
|
+
></ace-typing-state>` : u}
|
2117
|
+
</div> `;
|
2119
2118
|
}
|
2120
2119
|
};
|
2121
2120
|
B.styles = [
|
2122
|
-
|
2121
|
+
_`
|
2123
2122
|
:host {
|
2124
2123
|
display: block;
|
2125
2124
|
}
|
@@ -2131,24 +2130,24 @@ B.styles = [
|
|
2131
2130
|
}
|
2132
2131
|
`
|
2133
2132
|
];
|
2134
|
-
|
2133
|
+
wt([
|
2135
2134
|
g({ type: Boolean })
|
2136
2135
|
], B.prototype, "loading", 2);
|
2137
|
-
|
2136
|
+
wt([
|
2138
2137
|
g({ attribute: !1 })
|
2139
2138
|
], B.prototype, "session", 2);
|
2140
|
-
|
2139
|
+
wt([
|
2141
2140
|
A()
|
2142
2141
|
], B.prototype, "entries", 2);
|
2143
|
-
B =
|
2144
|
-
|
2142
|
+
B = wt([
|
2143
|
+
V("ace-conversation-session")
|
2145
2144
|
], B);
|
2146
|
-
var
|
2147
|
-
for (var n = i > 1 ? void 0 : i ?
|
2145
|
+
var Ki = Object.defineProperty, Qi = Object.getOwnPropertyDescriptor, ss = (e, t, s, i) => {
|
2146
|
+
for (var n = i > 1 ? void 0 : i ? Qi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2148
2147
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2149
|
-
return i && n &&
|
2148
|
+
return i && n && Ki(t, s, n), n;
|
2150
2149
|
};
|
2151
|
-
let
|
2150
|
+
let pt = class extends v {
|
2152
2151
|
connectedCallback() {
|
2153
2152
|
var e;
|
2154
2153
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -2168,11 +2167,11 @@ let ht = class extends y {
|
|
2168
2167
|
render() {
|
2169
2168
|
var e, t;
|
2170
2169
|
switch (this.entry.type) {
|
2171
|
-
case
|
2170
|
+
case xt.System:
|
2172
2171
|
return "";
|
2173
|
-
case
|
2172
|
+
case xt.Agent:
|
2174
2173
|
return $`<div
|
2175
|
-
class=${
|
2174
|
+
class=${Wt({
|
2176
2175
|
"conversation-agent-message": !0,
|
2177
2176
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
2178
2177
|
})}
|
@@ -2197,7 +2196,7 @@ let ht = class extends y {
|
|
2197
2196
|
this.entry.timestamp
|
2198
2197
|
)}
|
2199
2198
|
</div>`;
|
2200
|
-
case
|
2199
|
+
case xt.User:
|
2201
2200
|
return $`<div class="conversation-user-message">
|
2202
2201
|
<div class="entry-content">
|
2203
2202
|
${this.entry.messages.map(
|
@@ -2220,8 +2219,8 @@ let ht = class extends y {
|
|
2220
2219
|
}
|
2221
2220
|
}
|
2222
2221
|
};
|
2223
|
-
|
2224
|
-
|
2222
|
+
pt.styles = [
|
2223
|
+
_`
|
2225
2224
|
:host {
|
2226
2225
|
box-sizing: border-box;
|
2227
2226
|
display: block;
|
@@ -2305,18 +2304,18 @@ ht.styles = [
|
|
2305
2304
|
}
|
2306
2305
|
`
|
2307
2306
|
];
|
2308
|
-
|
2307
|
+
ss([
|
2309
2308
|
g({ attribute: !1 })
|
2310
|
-
],
|
2311
|
-
|
2312
|
-
|
2313
|
-
],
|
2314
|
-
var
|
2315
|
-
for (var n = i > 1 ? void 0 : i ?
|
2309
|
+
], pt.prototype, "entry", 2);
|
2310
|
+
pt = ss([
|
2311
|
+
V("conversation-entry")
|
2312
|
+
], pt);
|
2313
|
+
var Zi = Object.defineProperty, Xi = Object.getOwnPropertyDescriptor, is = (e, t, s, i) => {
|
2314
|
+
for (var n = i > 1 ? void 0 : i ? Xi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2316
2315
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2317
|
-
return i && n &&
|
2316
|
+
return i && n && Zi(t, s, n), n;
|
2318
2317
|
};
|
2319
|
-
let
|
2318
|
+
let ut = class extends v {
|
2320
2319
|
render() {
|
2321
2320
|
return $`
|
2322
2321
|
<div class="message-group">
|
@@ -2331,8 +2330,8 @@ let pt = class extends y {
|
|
2331
2330
|
`;
|
2332
2331
|
}
|
2333
2332
|
};
|
2334
|
-
|
2335
|
-
|
2333
|
+
ut.styles = [
|
2334
|
+
_`
|
2336
2335
|
:host {
|
2337
2336
|
box-sizing: border-box;
|
2338
2337
|
display: block;
|
@@ -2347,18 +2346,72 @@ pt.styles = [
|
|
2347
2346
|
}
|
2348
2347
|
`
|
2349
2348
|
];
|
2350
|
-
|
2349
|
+
is([
|
2351
2350
|
g({ attribute: !1 })
|
2352
|
-
],
|
2353
|
-
|
2354
|
-
|
2355
|
-
],
|
2351
|
+
], ut.prototype, "group", 2);
|
2352
|
+
ut = is([
|
2353
|
+
V("conversation-group")
|
2354
|
+
], ut);
|
2355
|
+
var Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, tn = (e, t, s, i) => {
|
2356
|
+
for (var n = i > 1 ? void 0 : i ? Vi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2357
|
+
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2358
|
+
return i && n && Ji(t, s, n), n;
|
2359
|
+
};
|
2360
|
+
let Nt = class extends v {
|
2361
|
+
render() {
|
2362
|
+
return $`<div class="container">
|
2363
|
+
<div class="dot"></div>
|
2364
|
+
<div class="dot"></div>
|
2365
|
+
<div class="dot"></div>
|
2366
|
+
</div>`;
|
2367
|
+
}
|
2368
|
+
};
|
2369
|
+
Nt.styles = [
|
2370
|
+
_`
|
2371
|
+
:host {
|
2372
|
+
display: block;
|
2373
|
+
}
|
2374
|
+
.container {
|
2375
|
+
align-items: center;
|
2376
|
+
display: flex;
|
2377
|
+
justify-content: center;
|
2378
|
+
gap: var(--spacing-sm);
|
2379
|
+
padding: var(--spacing-md);
|
2380
|
+
}
|
2381
|
+
.dot {
|
2382
|
+
border-radius: 9999px;
|
2383
|
+
height: var(--spacing-sm);
|
2384
|
+
width: var(--spacing-sm);
|
2385
|
+
background: var(--primary-background);
|
2386
|
+
opacity: 0;
|
2387
|
+
animation: blink 1s infinite;
|
2388
|
+
}
|
2389
|
+
.dot:nth-child(1) {
|
2390
|
+
animation-delay: 0.3333s;
|
2391
|
+
}
|
2392
|
+
.dot:nth-child(2) {
|
2393
|
+
animation-delay: 0.6666s;
|
2394
|
+
}
|
2395
|
+
.dot:nth-child(3) {
|
2396
|
+
animation-delay: 0.9999s;
|
2397
|
+
}
|
2398
|
+
|
2399
|
+
@keyframes blink {
|
2400
|
+
50% {
|
2401
|
+
opacity: 1;
|
2402
|
+
}
|
2403
|
+
}
|
2404
|
+
`
|
2405
|
+
];
|
2406
|
+
Nt = tn([
|
2407
|
+
V("ace-typing-state")
|
2408
|
+
], Nt);
|
2356
2409
|
/**
|
2357
2410
|
* @license
|
2358
2411
|
* Copyright 2017 Google LLC
|
2359
2412
|
* SPDX-License-Identifier: BSD-3-Clause
|
2360
2413
|
*/
|
2361
|
-
class
|
2414
|
+
class Ht extends Ft {
|
2362
2415
|
constructor(t) {
|
2363
2416
|
if (super(t), this.et = u, t.type !== yt.CHILD)
|
2364
2417
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2377,22 +2430,22 @@ class Nt extends zt {
|
|
2377
2430
|
return s.raw = s, this.vt = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
2378
2431
|
}
|
2379
2432
|
}
|
2380
|
-
|
2381
|
-
const
|
2382
|
-
var
|
2383
|
-
for (var n = i > 1 ? void 0 : i ?
|
2433
|
+
Ht.directiveName = "unsafeHTML", Ht.resultType = 1;
|
2434
|
+
const en = bt(Ht);
|
2435
|
+
var sn = Object.defineProperty, nn = Object.getOwnPropertyDescriptor, ns = (e, t, s, i) => {
|
2436
|
+
for (var n = i > 1 ? void 0 : i ? nn(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2384
2437
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2385
|
-
return i && n &&
|
2438
|
+
return i && n && sn(t, s, n), n;
|
2386
2439
|
};
|
2387
|
-
let
|
2440
|
+
let ft = class extends v {
|
2388
2441
|
render() {
|
2389
2442
|
return $`<div class="message-type-html">
|
2390
|
-
${
|
2443
|
+
${en(this.message.content)}
|
2391
2444
|
</div>`;
|
2392
2445
|
}
|
2393
2446
|
};
|
2394
|
-
|
2395
|
-
|
2447
|
+
ft.styles = [
|
2448
|
+
_`
|
2396
2449
|
:host {
|
2397
2450
|
box-sizing: border-box;
|
2398
2451
|
}
|
@@ -2406,23 +2459,23 @@ ut.styles = [
|
|
2406
2459
|
}
|
2407
2460
|
`
|
2408
2461
|
];
|
2409
|
-
|
2462
|
+
ns([
|
2410
2463
|
g({ attribute: !1 })
|
2411
|
-
],
|
2412
|
-
|
2413
|
-
|
2414
|
-
],
|
2415
|
-
var
|
2416
|
-
for (var n = i > 1 ? void 0 : i ?
|
2464
|
+
], ft.prototype, "message", 2);
|
2465
|
+
ft = ns([
|
2466
|
+
V("message-type-html")
|
2467
|
+
], ft);
|
2468
|
+
var rn = Object.defineProperty, on = Object.getOwnPropertyDescriptor, Kt = (e, t, s, i) => {
|
2469
|
+
for (var n = i > 1 ? void 0 : i ? on(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2417
2470
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2418
|
-
return i && n &&
|
2471
|
+
return i && n && rn(t, s, n), n;
|
2419
2472
|
};
|
2420
|
-
const
|
2473
|
+
const an = (e) => {
|
2421
2474
|
e.scrollTo ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight;
|
2422
|
-
},
|
2423
|
-
class z extends
|
2475
|
+
}, rs = ts(v);
|
2476
|
+
class z extends rs {
|
2424
2477
|
constructor() {
|
2425
|
-
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef =
|
2478
|
+
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = Xe(), this.chatScrollHeight = 0;
|
2426
2479
|
}
|
2427
2480
|
async connectedCallback() {
|
2428
2481
|
super.connectedCallback();
|
@@ -2447,18 +2500,18 @@ class z extends ns {
|
|
2447
2500
|
const s = this.conversationContentRef.value;
|
2448
2501
|
s && setTimeout(() => {
|
2449
2502
|
const i = s.scrollHeight;
|
2450
|
-
i > this.chatScrollHeight && (
|
2503
|
+
i > this.chatScrollHeight && (an(s), this.chatScrollHeight = i);
|
2451
2504
|
}, 1e3);
|
2452
2505
|
}
|
2453
2506
|
render() {
|
2454
2507
|
return $` <div
|
2455
2508
|
@action=${this._actionHandler}
|
2456
|
-
class=${
|
2509
|
+
class=${Wt({
|
2457
2510
|
conversation: !0,
|
2458
2511
|
"input-has-text": this.message.length > 0
|
2459
2512
|
})}
|
2460
2513
|
>
|
2461
|
-
<div class="conversation-content" ${
|
2514
|
+
<div class="conversation-content" ${Je(this.conversationContentRef)}>
|
2462
2515
|
${this.session ? $`<ace-conversation-session
|
2463
2516
|
.session=${this.session}
|
2464
2517
|
></ace-conversation-session>` : u}
|
@@ -2471,7 +2524,7 @@ class z extends ns {
|
|
2471
2524
|
/>
|
2472
2525
|
<div class="conversation-actions">
|
2473
2526
|
<button class="conversation-send-button" type="submit">
|
2474
|
-
<telia-icon svg=${
|
2527
|
+
<telia-icon svg=${Ss.svg}></telia-icon>
|
2475
2528
|
</button>
|
2476
2529
|
</div>
|
2477
2530
|
</form>
|
@@ -2479,8 +2532,8 @@ class z extends ns {
|
|
2479
2532
|
}
|
2480
2533
|
}
|
2481
2534
|
z.styles = [
|
2482
|
-
|
2483
|
-
|
2535
|
+
rs.styles || [],
|
2536
|
+
_`
|
2484
2537
|
:host {
|
2485
2538
|
font-family: var(--font-family);
|
2486
2539
|
/* --send-icon-color: var(--gray-dark-color, #a6a6a6); */
|
@@ -2561,59 +2614,23 @@ z.styles = [
|
|
2561
2614
|
height: 2.5rem;
|
2562
2615
|
outline: none;
|
2563
2616
|
}
|
2564
|
-
|
2565
|
-
@keyframes loaderanim {
|
2566
|
-
0% {
|
2567
|
-
opacity: 0;
|
2568
|
-
}
|
2569
|
-
75% {
|
2570
|
-
opacity: 1;
|
2571
|
-
}
|
2572
|
-
100% {
|
2573
|
-
opacity: 0;
|
2574
|
-
}
|
2575
|
-
}
|
2576
|
-
|
2577
|
-
.loader {
|
2578
|
-
display: flex;
|
2579
|
-
justify-content: center;
|
2580
|
-
}
|
2581
|
-
|
2582
|
-
.loader > div {
|
2583
|
-
height: 10px;
|
2584
|
-
width: 10px;
|
2585
|
-
border-radius: 50%;
|
2586
|
-
margin: 5px;
|
2587
|
-
background-color: var(--text-color);
|
2588
|
-
animation-name: loaderanim;
|
2589
|
-
animation-duration: 1s;
|
2590
|
-
animation-iteration-count: infinite;
|
2591
|
-
}
|
2592
|
-
|
2593
|
-
.loader > div:nth-of-type(2) {
|
2594
|
-
animation-delay: 100ms;
|
2595
|
-
}
|
2596
|
-
|
2597
|
-
.loader > div:nth-of-type(3) {
|
2598
|
-
animation-delay: 200ms;
|
2599
|
-
}
|
2600
2617
|
`
|
2601
2618
|
];
|
2602
|
-
|
2619
|
+
Kt([
|
2603
2620
|
A()
|
2604
2621
|
], z.prototype, "message", 2);
|
2605
|
-
|
2622
|
+
Kt([
|
2606
2623
|
A()
|
2607
2624
|
], z.prototype, "platform", 2);
|
2608
|
-
|
2625
|
+
Kt([
|
2609
2626
|
A()
|
2610
2627
|
], z.prototype, "session", 2);
|
2611
|
-
const
|
2628
|
+
const $n = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2612
2629
|
__proto__: null,
|
2613
2630
|
Conversation: z,
|
2614
2631
|
default: z
|
2615
2632
|
}, Symbol.toStringTag, { value: "Module" }));
|
2616
2633
|
export {
|
2617
|
-
|
2618
|
-
|
2634
|
+
$n as c,
|
2635
|
+
Ss as s
|
2619
2636
|
};
|