@telia-ace/widget-conversation-flamingo 1.1.12-rc.9 → 1.1.13
Sign up to get free protection for your applications and to get access to all the features.
- package/{conversation-a8d146a2.js → conversation-1bf28a6e.js} +32 -32
- package/{conversation-0127d0e4.mjs → conversation-7da6b954.mjs} +221 -223
- package/{index-1b763bfd.mjs → index-217978bc.mjs} +2 -2
- package/{index-29e3c407.js → index-43151bb4.js} +1 -1
- package/{index-23bd49a6.js → index-494250de.js} +1 -1
- package/{index-626bdcb9.mjs → index-4ba82b09.mjs} +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -1,20 +1,20 @@
|
|
1
|
-
import { C as
|
1
|
+
import { C as wt } from "./index-4ba82b09.mjs";
|
2
2
|
/**
|
3
3
|
* @license
|
4
4
|
* Copyright 2019 Google LLC
|
5
5
|
* SPDX-License-Identifier: BSD-3-Clause
|
6
6
|
*/
|
7
|
-
const
|
7
|
+
const it = globalThis, Ht = it.ShadowRoot && (it.ShadyCSS === void 0 || it.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, Rt = Symbol(), Kt = /* @__PURE__ */ new WeakMap();
|
8
8
|
let Se = class {
|
9
9
|
constructor(t, s, i) {
|
10
|
-
if (this._$cssResult$ = !0, i !==
|
10
|
+
if (this._$cssResult$ = !0, i !== Rt)
|
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 (Ht && t === void 0) {
|
18
18
|
const i = s !== void 0 && s.length === 1;
|
19
19
|
i && (t = Kt.get(s)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Kt.set(s, t));
|
20
20
|
}
|
@@ -24,7 +24,7 @@ let Se = class {
|
|
24
24
|
return this.cssText;
|
25
25
|
}
|
26
26
|
};
|
27
|
-
const rs = (e) => new Se(typeof e == "string" ? e : e + "", void 0,
|
27
|
+
const rs = (e) => new Se(typeof e == "string" ? e : e + "", void 0, Rt), w = (e, ...t) => {
|
28
28
|
const s = e.length === 1 ? e[0] : t.reduce((i, n, r) => i + ((o) => {
|
29
29
|
if (o._$cssResult$ === !0)
|
30
30
|
return o.cssText;
|
@@ -32,16 +32,16 @@ const rs = (e) => new Se(typeof e == "string" ? e : e + "", void 0, Mt), 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 Se(s, e,
|
35
|
+
return new Se(s, e, Rt);
|
36
36
|
}, os = (e, t) => {
|
37
|
-
if (
|
37
|
+
if (Ht)
|
38
38
|
e.adoptedStyleSheets = t.map((s) => s instanceof CSSStyleSheet ? s : s.styleSheet);
|
39
39
|
else
|
40
40
|
for (const s of t) {
|
41
|
-
const i = document.createElement("style"), n =
|
41
|
+
const i = document.createElement("style"), n = it.litNonce;
|
42
42
|
n !== void 0 && i.setAttribute("nonce", n), i.textContent = s.cssText, e.appendChild(i);
|
43
43
|
}
|
44
|
-
}, Qt =
|
44
|
+
}, Qt = Ht ? (e) => e : (e) => e instanceof CSSStyleSheet ? ((t) => {
|
45
45
|
let s = "";
|
46
46
|
for (const i of t.cssRules)
|
47
47
|
s += i.cssText;
|
@@ -52,7 +52,7 @@ const rs = (e) => new Se(typeof e == "string" ? e : e + "", void 0, Mt), w = (e,
|
|
52
52
|
* Copyright 2017 Google LLC
|
53
53
|
* SPDX-License-Identifier: BSD-3-Clause
|
54
54
|
*/
|
55
|
-
const { is: as, defineProperty: ls, getOwnPropertyDescriptor: cs, getOwnPropertyNames: ds, getOwnPropertySymbols: hs, getPrototypeOf: ps } = Object,
|
55
|
+
const { is: as, defineProperty: ls, getOwnPropertyDescriptor: cs, getOwnPropertyNames: ds, getOwnPropertySymbols: hs, getPrototypeOf: ps } = Object, E = globalThis, Zt = E.trustedTypes, us = Zt ? Zt.emptyScript : "", At = E.reactiveElementPolyfillSupport, W = (e, t) => e, nt = { toAttribute(e, t) {
|
56
56
|
switch (t) {
|
57
57
|
case Boolean:
|
58
58
|
e = e ? us : null;
|
@@ -80,8 +80,8 @@ const { is: as, defineProperty: ls, getOwnPropertyDescriptor: cs, getOwnProperty
|
|
80
80
|
}
|
81
81
|
}
|
82
82
|
return s;
|
83
|
-
} },
|
84
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
83
|
+
} }, Mt = (e, t) => !as(e, t), Xt = { attribute: !0, type: String, converter: nt, reflect: !1, hasChanged: Mt };
|
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) {
|
87
87
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
@@ -112,15 +112,15 @@ let N = class extends HTMLElement {
|
|
112
112
|
return this.elementProperties.get(t) ?? Xt;
|
113
113
|
}
|
114
114
|
static _$Ei() {
|
115
|
-
if (this.hasOwnProperty(
|
115
|
+
if (this.hasOwnProperty(W("elementProperties")))
|
116
116
|
return;
|
117
117
|
const t = ps(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
|
-
if (this.hasOwnProperty(
|
121
|
+
if (this.hasOwnProperty(W("finalized")))
|
122
122
|
return;
|
123
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
123
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(W("properties"))) {
|
124
124
|
const s = this.properties, i = [...ds(s), ...hs(s)];
|
125
125
|
for (const n of i)
|
126
126
|
this.createProperty(n, s[n]);
|
@@ -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 : nt).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 : nt;
|
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 ?? Mt)(n ? r : this[t], s))
|
219
219
|
return;
|
220
220
|
this.C(t, s, i);
|
221
221
|
}
|
@@ -293,15 +293,15 @@ let N = class extends HTMLElement {
|
|
293
293
|
firstUpdated(t) {
|
294
294
|
}
|
295
295
|
};
|
296
|
-
N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[
|
296
|
+
N.elementStyles = [], N.shadowRootOptions = { mode: "open" }, N[W("elementProperties")] = /* @__PURE__ */ new Map(), N[W("finalized")] = /* @__PURE__ */ new Map(), At == null || At({ ReactiveElement: N }), (E.reactiveElementVersions ?? (E.reactiveElementVersions = [])).push("2.0.1");
|
297
297
|
/**
|
298
298
|
* @license
|
299
299
|
* Copyright 2017 Google LLC
|
300
300
|
* SPDX-License-Identifier: BSD-3-Clause
|
301
301
|
*/
|
302
|
-
const
|
303
|
-
\f\r]`,
|
304
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), ee = /'/g, se = /"/g, Te = /^(?:script|style|textarea|title)$/i, gs = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), $ = gs(1),
|
302
|
+
const G = globalThis, rt = G.trustedTypes, Jt = rt ? rt.createPolicy("lit-html", { createHTML: (e) => e }) : void 0, Ee = "$lit$", S = `lit$${(Math.random() + "").slice(9)}$`, Ce = "?" + S, fs = `<${Ce}>`, P = document, Y = () => P.createComment(""), K = (e) => e === null || typeof e != "object" && typeof e != "function", ke = Array.isArray, $s = (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, Vt = /-->/g, te = />/g, k = RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
|
304
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ee = /'/g, se = /"/g, Te = /^(?:script|style|textarea|title)$/i, gs = (e) => (t, ...s) => ({ _$litType$: e, strings: t, values: s }), $ = gs(1), C = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), ie = /* @__PURE__ */ new WeakMap(), O = P.createTreeWalker(P, 129);
|
305
305
|
function Oe(e, t) {
|
306
306
|
if (!Array.isArray(e) || !e.hasOwnProperty("raw"))
|
307
307
|
throw Error("invalid template strings array");
|
@@ -309,24 +309,24 @@ function Oe(e, t) {
|
|
309
309
|
}
|
310
310
|
const ms = (e, t) => {
|
311
311
|
const s = e.length - 1, i = [];
|
312
|
-
let n, r = t === 2 ? "<svg>" : "", o =
|
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 ===
|
317
|
+
p = o.lastIndex, o === F ? h[1] === "!--" ? o = Vt : h[1] !== void 0 ? o = te : h[2] !== void 0 ? (Te.test(h[2]) && (n = RegExp("</" + h[2], "g")), o = k) : h[3] !== void 0 && (o = k) : o === k ? h[0] === ">" ? (o = n ?? F, d = -1) : h[1] === void 0 ? d = -2 : (d = o.lastIndex - h[2].length, c = h[1], o = h[3] === void 0 ? k : h[3] === '"' ? se : ee) : o === se || o === ee ? o = k : o === Vt || o === te ? o = F : (o = k, n = void 0);
|
318
318
|
const f = o === k && e[a + 1].startsWith("/>") ? " " : "";
|
319
|
-
r += o ===
|
319
|
+
r += o === F ? l + fs : d >= 0 ? (i.push(c), l.slice(0, d) + Ee + l.slice(d) + S + f) : l + S + (d === -2 ? a : f);
|
320
320
|
}
|
321
321
|
return [Oe(e, r + (e[s] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
322
322
|
};
|
323
|
-
class
|
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
328
|
const a = t.length - 1, l = this.parts, [c, h] = ms(t, s);
|
329
|
-
if (this.el =
|
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);
|
332
332
|
}
|
@@ -334,22 +334,22 @@ class Z {
|
|
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] === "." ? ys : _[1] === "?" ? bs : _[1] === "@" ? _s :
|
339
|
+
l.push({ type: 1, index: r, name: _[2], strings: f, ctor: _[1] === "." ? ys : _[1] === "?" ? bs : _[1] === "@" ? _s : ft }), n.removeAttribute(d);
|
340
340
|
} else
|
341
341
|
d.startsWith(S) && (l.push({ type: 6, index: r }), n.removeAttribute(d));
|
342
342
|
if (Te.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 = rt ? rt.emptyScript : "";
|
346
346
|
for (let f = 0; f < p; f++)
|
347
|
-
n.append(d[f],
|
348
|
-
n.append(d[p],
|
347
|
+
n.append(d[f], Y()), O.nextNode(), l.push({ type: 2, index: ++r });
|
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 === Ce)
|
353
353
|
l.push({ type: 2, index: r });
|
354
354
|
else {
|
355
355
|
let d = -1;
|
@@ -366,10 +366,10 @@ class Z {
|
|
366
366
|
}
|
367
367
|
function I(e, t, s = e, i) {
|
368
368
|
var o, a;
|
369
|
-
if (t ===
|
369
|
+
if (t === C)
|
370
370
|
return t;
|
371
371
|
let n = i !== void 0 ? (o = s._$Co) == null ? void 0 : o[i] : s._$Cl;
|
372
|
-
const r =
|
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
375
|
class vs {
|
@@ -389,7 +389,7 @@ class vs {
|
|
389
389
|
for (; l !== void 0; ) {
|
390
390
|
if (o === l.index) {
|
391
391
|
let c;
|
392
|
-
l.type === 2 ? c = new
|
392
|
+
l.type === 2 ? c = new X(r, r.nextSibling, this, t) : l.type === 1 ? c = new l.ctor(r, l.name, l.strings, this, t) : l.type === 6 && (c = new xs(r, this, t)), this._$AV.push(c), l = i[++a];
|
393
393
|
}
|
394
394
|
o !== (l == null ? void 0 : l.index) && (r = O.nextNode(), o++);
|
395
395
|
}
|
@@ -401,7 +401,7 @@ class vs {
|
|
401
401
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, s), s += i.strings.length - 2) : i._$AI(t[s])), s++;
|
402
402
|
}
|
403
403
|
}
|
404
|
-
class
|
404
|
+
class X {
|
405
405
|
get _$AU() {
|
406
406
|
var t;
|
407
407
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -421,7 +421,7 @@ class J {
|
|
421
421
|
return this._$AB;
|
422
422
|
}
|
423
423
|
_$AI(t, s = this) {
|
424
|
-
t = I(this, t, s),
|
424
|
+
t = I(this, t, s), K(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : $s(t) ? this.T(t) : this._(t);
|
425
425
|
}
|
426
426
|
k(t) {
|
427
427
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -430,11 +430,11 @@ class J {
|
|
430
430
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
431
431
|
}
|
432
432
|
_(t) {
|
433
|
-
this._$AH !== u &&
|
433
|
+
this._$AH !== u && K(this._$AH) ? this._$AA.nextSibling.data = t : this.$(P.createTextNode(t)), this._$AH = t;
|
434
434
|
}
|
435
435
|
g(t) {
|
436
436
|
var r;
|
437
|
-
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
437
|
+
const { values: s, _$litType$: i } = t, n = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = Q.createElement(Oe(i.h, i.h[0]), this.options)), i);
|
438
438
|
if (((r = this._$AH) == null ? void 0 : r._$AD) === n)
|
439
439
|
this._$AH.p(s);
|
440
440
|
else {
|
@@ -444,14 +444,14 @@ class J {
|
|
444
444
|
}
|
445
445
|
_$AC(t) {
|
446
446
|
let s = ie.get(t.strings);
|
447
|
-
return s === void 0 && ie.set(t.strings, s = new
|
447
|
+
return s === void 0 && ie.set(t.strings, s = new Q(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)
|
454
|
-
n === s.length ? s.push(i = new
|
454
|
+
n === s.length ? s.push(i = new X(this.k(Y()), this.k(Y()), this, this.options)) : i = s[n], i._$AI(r), n++;
|
455
455
|
n < s.length && (this._$AR(i && i._$AB.nextSibling, n), s.length = n);
|
456
456
|
}
|
457
457
|
_$AR(t = this._$AA.nextSibling, s) {
|
@@ -466,7 +466,7 @@ class J {
|
|
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 ft {
|
470
470
|
get tagName() {
|
471
471
|
return this.element.tagName;
|
472
472
|
}
|
@@ -480,12 +480,12 @@ class $t {
|
|
480
480
|
const r = this.strings;
|
481
481
|
let o = !1;
|
482
482
|
if (r === void 0)
|
483
|
-
t = I(this, t, s, 0), o = !
|
483
|
+
t = I(this, t, s, 0), o = !K(t) || t !== this._$AH && t !== C, o && (this._$AH = t);
|
484
484
|
else {
|
485
485
|
const a = t;
|
486
486
|
let l, c;
|
487
487
|
for (t = r[0], l = 0; l < r.length - 1; l++)
|
488
|
-
c = I(this, a[i + l], s, l), c ===
|
488
|
+
c = I(this, a[i + l], s, l), c === C && (c = this._$AH[l]), o || (o = !K(c) || c !== this._$AH[l]), c === u ? t = u : t !== u && (t += (c ?? "") + r[l + 1]), this._$AH[l] = c;
|
489
489
|
}
|
490
490
|
o && !n && this.O(t);
|
491
491
|
}
|
@@ -493,7 +493,7 @@ class $t {
|
|
493
493
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
494
494
|
}
|
495
495
|
}
|
496
|
-
class ys extends
|
496
|
+
class ys extends ft {
|
497
497
|
constructor() {
|
498
498
|
super(...arguments), this.type = 3;
|
499
499
|
}
|
@@ -501,7 +501,7 @@ class ys extends $t {
|
|
501
501
|
this.element[this.name] = t === u ? void 0 : t;
|
502
502
|
}
|
503
503
|
}
|
504
|
-
let bs = class extends
|
504
|
+
let bs = class extends ft {
|
505
505
|
constructor() {
|
506
506
|
super(...arguments), this.type = 4;
|
507
507
|
}
|
@@ -509,12 +509,12 @@ let bs = class extends $t {
|
|
509
509
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
510
510
|
}
|
511
511
|
};
|
512
|
-
class _s extends
|
512
|
+
class _s extends ft {
|
513
513
|
constructor(t, s, i, n, r) {
|
514
514
|
super(t, s, i, n, r), this.type = 5;
|
515
515
|
}
|
516
516
|
_$AI(t, s = this) {
|
517
|
-
if ((t = I(this, t, s, 0) ?? u) ===
|
517
|
+
if ((t = I(this, t, s, 0) ?? u) === C)
|
518
518
|
return;
|
519
519
|
const i = this._$AH, n = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, r = t !== u && (i === u || n);
|
520
520
|
n && this.element.removeEventListener(this.name, this, i), r && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -535,14 +535,14 @@ class xs {
|
|
535
535
|
I(this, t);
|
536
536
|
}
|
537
537
|
}
|
538
|
-
const Et =
|
539
|
-
Et == null || Et(
|
538
|
+
const Et = G.litHtmlPolyfillSupport;
|
539
|
+
Et == null || Et(Q, X), (G.litHtmlVersions ?? (G.litHtmlVersions = [])).push("3.0.2");
|
540
540
|
const ws = (e, t, s) => {
|
541
541
|
const i = (s == null ? void 0 : s.renderBefore) ?? t;
|
542
542
|
let n = i._$litPart$;
|
543
543
|
if (n === void 0) {
|
544
544
|
const r = (s == null ? void 0 : s.renderBefore) ?? null;
|
545
|
-
i._$litPart$ = n = new
|
545
|
+
i._$litPart$ = n = new X(t.insertBefore(Y(), r), r, void 0, s ?? {});
|
546
546
|
}
|
547
547
|
return n._$AI(e), n;
|
548
548
|
};
|
@@ -573,13 +573,13 @@ let y = class extends N {
|
|
573
573
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
574
574
|
}
|
575
575
|
render() {
|
576
|
-
return
|
576
|
+
return C;
|
577
577
|
}
|
578
578
|
};
|
579
579
|
var Ae;
|
580
580
|
y._$litElement$ = !0, y.finalized = !0, (Ae = globalThis.litElementHydrateSupport) == null || Ae.call(globalThis, { LitElement: y });
|
581
|
-
const
|
582
|
-
|
581
|
+
const Ct = globalThis.litElementPolyfillSupport;
|
582
|
+
Ct == null || Ct({ LitElement: y });
|
583
583
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
584
584
|
const As = { 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,
|
@@ -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, Pe,
|
669
|
-
const
|
668
|
+
let R, Pe, $t, Le = !1, ot = !1, jt = !1, v = !1, ne = null, Pt = !1;
|
669
|
+
const gt = typeof window < "u" ? window : {}, x = gt.document || { head: {} }, Ue = gt.HTMLElement || class {
|
670
670
|
}, m = {
|
671
671
|
$flags$: 0,
|
672
672
|
$resourcesUrl$: "",
|
@@ -686,7 +686,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
686
686
|
} catch {
|
687
687
|
}
|
688
688
|
return e;
|
689
|
-
})(),
|
689
|
+
})(), Es = (e) => Promise.resolve(e), Cs = /* @__PURE__ */ (() => {
|
690
690
|
try {
|
691
691
|
return new CSSStyleSheet(), typeof new CSSStyleSheet().replace == "function";
|
692
692
|
} catch {
|
@@ -701,17 +701,17 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
701
701
|
try {
|
702
702
|
H.lazyLoad || e.$hostElement$[t](s);
|
703
703
|
} catch (i) {
|
704
|
-
|
704
|
+
J(i);
|
705
705
|
}
|
706
|
-
}, Ts = (e, t) => t & 4 ? x : t & 8 ?
|
706
|
+
}, Ts = (e, t) => t & 4 ? x : t & 8 ? gt : t & 16 ? x.body : e, Os = (e) => Ss ? {
|
707
707
|
passive: (e & 1) !== 0,
|
708
708
|
capture: (e & 2) !== 0
|
709
709
|
} : (e & 2) !== 0, re = "http://www.w3.org/1999/xlink", L = (e, t = "") => () => {
|
710
710
|
}, oe = /* @__PURE__ */ new WeakMap(), Ps = (e, t, s) => {
|
711
|
-
let i =
|
712
|
-
|
711
|
+
let i = ct.get(e);
|
712
|
+
Cs && s ? (i = i || new CSSStyleSheet(), i.replace(t)) : i = t, ct.set(e, i);
|
713
713
|
}, Ls = (e, t, s, i) => {
|
714
|
-
let n = He(t, s), r =
|
714
|
+
let n = He(t, s), r = ct.get(n);
|
715
715
|
if (e = e.nodeType === 11 ? e : x, r)
|
716
716
|
if (typeof r == "string") {
|
717
717
|
e = e.head || e;
|
@@ -723,11 +723,11 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
723
723
|
}, Us = (e) => {
|
724
724
|
const t = e.$cmpMeta$, s = e.$hostElement$, i = t.$flags$, n = L("attachStyles", t.$tagName$), r = Ls(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
|
-
}, He = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$), Ns = (e) => li.map((t) => t(e)).find((t) => !!t), ae = {}, Hs = "http://www.w3.org/2000/svg", Rs = "http://www.w3.org/1999/xhtml", Ms = (e) => e != null,
|
726
|
+
}, He = (e, t) => "sc-" + (t && e.$flags$ & 32 ? e.$tagName$ + "-" + t : e.$tagName$), Ns = (e) => li.map((t) => t(e)).find((t) => !!t), ae = {}, Hs = "http://www.w3.org/2000/svg", Rs = "http://www.w3.org/1999/xhtml", Ms = (e) => e != null, Dt = (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" && !Dt(i)) && (i = String(i)), o && a ? l[l.length - 1].$text$ += i : l.push(o ? at(null, i) : i), a = o);
|
731
731
|
};
|
732
732
|
if (c(s), t) {
|
733
733
|
t.key && (n = t.key), t.name && (r = t.name);
|
@@ -738,9 +738,9 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
738
738
|
}
|
739
739
|
if (typeof e == "function")
|
740
740
|
return e(t === null ? {} : t, l, Ds);
|
741
|
-
const h =
|
741
|
+
const h = at(e, null);
|
742
742
|
return h.$attrs$ = t, l.length > 0 && (h.$children$ = l), h.$key$ = n, h.$name$ = r, h;
|
743
|
-
},
|
743
|
+
}, at = (e, t) => {
|
744
744
|
const s = {
|
745
745
|
$flags$: 0,
|
746
746
|
$tag$: e,
|
@@ -749,7 +749,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
749
749
|
$children$: null
|
750
750
|
};
|
751
751
|
return s.$attrs$ = null, s.$key$ = null, s.$name$ = null, s;
|
752
|
-
},
|
752
|
+
}, It = {}, js = (e) => e && e.$tag$ === It, Ds = {
|
753
753
|
forEach: (e, t) => e.map(le).forEach(t),
|
754
754
|
map: (e, t) => e.map(le).map(t).map(Is)
|
755
755
|
}, le = (e) => ({
|
@@ -764,7 +764,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
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 = at(e.vtag, e.vtext);
|
768
768
|
return t.$attrs$ = e.vattrs, t.$children$ = e.vchildren, t.$key$ = e.vkey, t.$name$ = e.vname, t;
|
769
769
|
}, ce = (e, t, s, i, n, r) => {
|
770
770
|
if (s !== i) {
|
@@ -781,9 +781,9 @@ const mt = typeof window < "u" ? window : {}, x = mt.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) : ue(
|
784
|
+
t[2] === "-" ? t = t.slice(3) : ue(gt, 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 = Dt(i);
|
787
787
|
if ((o || l && i !== null) && !n)
|
788
788
|
try {
|
789
789
|
if (e.tagName.includes("-"))
|
@@ -804,9 +804,9 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
804
804
|
i in o || ce(n, i, r[i], void 0, s, t.$flags$);
|
805
805
|
for (i in o)
|
806
806
|
ce(n, i, r[i], o[i], s, t.$flags$);
|
807
|
-
},
|
807
|
+
}, lt = (e, t, s, i) => {
|
808
808
|
let n = t.$children$[s], r = 0, o, a, l;
|
809
|
-
if (Le || (
|
809
|
+
if (Le || (jt = !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
|
) : (
|
@@ -819,27 +819,27 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
819
819
|
else {
|
820
820
|
if (v || (v = n.$tag$ === "svg"), o = n.$elm$ = x.createElementNS(v ? Hs : Rs, n.$flags$ & 2 ? "slot-fb" : n.$tag$), v && n.$tag$ === "foreignObject" && (v = !1), Re(null, n, v), Ms(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 =
|
822
|
+
a = lt(e, n, r, o), a && o.appendChild(a);
|
823
823
|
n.$tag$ === "svg" ? v = !1 : o.tagName === "foreignObject" && (v = !0);
|
824
824
|
}
|
825
|
-
return o["s-hn"] =
|
826
|
-
},
|
825
|
+
return o["s-hn"] = $t, n.$flags$ & 3 && (o["s-sr"] = !0, o["s-cr"] = Pe, o["s-sn"] = n.$name$ || "", l = e && e.$children$ && e.$children$[s], l && l.$tag$ === n.$tag$ && e.$elm$ && Z(e.$elm$, !1)), o;
|
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"] !== $t && n["s-ol"] && (De(n).insertBefore(n, Bt(n)), n["s-ol"].remove(), n["s-ol"] = void 0, jt = !0), t && Z(n, t);
|
832
832
|
}
|
833
833
|
m.$flags$ &= -2;
|
834
834
|
}, Me = (e, t, s, i, n, r) => {
|
835
835
|
let o = e["s-cr"] && e["s-cr"].parentNode || e, a;
|
836
|
-
for (o.shadowRoot && o.tagName ===
|
837
|
-
i[n] && (a =
|
836
|
+
for (o.shadowRoot && o.tagName === $t && (o = o.shadowRoot); n <= r; ++n)
|
837
|
+
i[n] && (a = lt(null, s, n, e), a && (i[n].$elm$ = a, o.insertBefore(a, Bt(t))));
|
838
838
|
}, je = (e, t, s, i, n) => {
|
839
839
|
for (; t <= s; ++t)
|
840
|
-
(i = e[t]) && (n = i.$elm$, ze(i),
|
840
|
+
(i = e[t]) && (n = i.$elm$, ze(i), ot = !0, n["s-ol"] ? n["s-ol"].remove() : Z(n, !0), n.remove());
|
841
841
|
}, zs = (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], _,
|
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], _, tt;
|
843
843
|
for (; n <= l && r <= d; )
|
844
844
|
if (c == null)
|
845
845
|
c = t[++n];
|
@@ -849,24 +849,24 @@ const mt = typeof window < "u" ? window : {}, x = mt.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 (et(c, p))
|
853
853
|
M(c, p), c = t[++n], p = i[++r];
|
854
|
-
else if (
|
854
|
+
else if (et(h, f))
|
855
855
|
M(h, f), h = t[--l], f = i[--d];
|
856
|
-
else if (
|
857
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") &&
|
858
|
-
else if (
|
859
|
-
(c.$tag$ === "slot" || f.$tag$ === "slot") &&
|
856
|
+
else if (et(c, f))
|
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 (et(h, p))
|
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)
|
862
862
|
if (t[a] && t[a].$key$ !== null && t[a].$key$ === p.$key$) {
|
863
863
|
o = a;
|
864
864
|
break;
|
865
865
|
}
|
866
|
-
o >= 0 ? (
|
866
|
+
o >= 0 ? (tt = t[o], tt.$tag$ !== p.$tag$ ? _ = lt(t && t[r], s, o, e) : (M(tt, p), t[o] = void 0, _ = tt.$elm$), p = i[++r]) : (_ = lt(t && t[r], s, r, e), p = i[++r]), _ && De(c.$elm$).insertBefore(_, Bt(c.$elm$));
|
867
867
|
}
|
868
868
|
n > l ? Me(e, i[d + 1] == null ? null : i[d + 1].$elm$, s, i, r, d) : r > d && je(t, n, l);
|
869
|
-
},
|
869
|
+
}, et = (e, t) => e.$tag$ === t.$tag$ ? e.$tag$ === "slot" ? e.$name$ === t.$name$ : e.$key$ === t.$key$ : !1, Bt = (e) => e && e["s-ol"] || e, De = (e) => (e["s-ol"] ? e["s-ol"] : e).parentNode, M = (e, t) => {
|
870
870
|
const s = t.$elm$ = e.$elm$, i = e.$children$, n = t.$children$, r = t.$tag$, o = t.$text$;
|
871
871
|
let a;
|
872
872
|
o === null ? (v = r === "svg" ? !0 : r === "foreignObject" ? !1 : v, r === "slot" || Re(e, t, v), i !== null && n !== null ? zs(s, i, t, n) : n !== null ? (e.$text$ !== null && (s.textContent = ""), Me(s, null, t, n, 0, n.length - 1)) : i !== null && je(i, 0, i.length - 1), v && r === "svg" && (v = !1)) : (a = s["s-cr"]) ? a.parentNode.textContent = o : e.$text$ !== o && (s.data = o);
|
@@ -893,7 +893,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
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"] && (he(s, n) ? (r = b.find((h) => h.$nodeToRelocate$ === s),
|
896
|
+
s = i[o], !s["s-cn"] && !s["s-nr"] && s["s-hn"] !== t["s-hn"] && (he(s, n) ? (r = b.find((h) => h.$nodeToRelocate$ === s), ot = !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) => {
|
@@ -906,10 +906,10 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
906
906
|
}, he = (e, t) => e.nodeType === 1 ? e.getAttribute("slot") === null && t === "" || e.getAttribute("slot") === t : e["s-sn"] === t ? !0 : t === "", ze = (e) => {
|
907
907
|
e.$attrs$ && e.$attrs$.ref && e.$attrs$.ref(null), e.$children$ && e.$children$.map(ze);
|
908
908
|
}, Fs = (e, t) => {
|
909
|
-
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ ||
|
910
|
-
|
909
|
+
const s = e.$hostElement$, i = e.$cmpMeta$, n = e.$vnode$ || at(null, null), r = js(t) ? t : j(null, null, t);
|
910
|
+
$t = s.tagName, i.$attrsToReflect$ && (r.$attrs$ = r.$attrs$ || {}, i.$attrsToReflect$.map(([o, a]) => r.$attrs$[a] = s[o])), r.$tag$ = null, r.$flags$ |= 4, e.$vnode$ = r, r.$elm$ = n.$elm$ = s.shadowRoot || s, R = s["s-sc"], Pe = s["s-cr"], Le = (i.$flags$ & 1) !== 0, ot = !1, M(n, r);
|
911
911
|
{
|
912
|
-
if (m.$flags$ |= 1,
|
912
|
+
if (m.$flags$ |= 1, jt) {
|
913
913
|
Be(r.$elm$);
|
914
914
|
let o, a, l, c, h, d, p = 0;
|
915
915
|
for (; p < b.length; p++)
|
@@ -925,7 +925,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
925
925
|
} else
|
926
926
|
a.nodeType === 1 && (a.hidden = !0);
|
927
927
|
}
|
928
|
-
|
928
|
+
ot && Ie(r.$elm$), m.$flags$ &= -2, b.length = 0;
|
929
929
|
}
|
930
930
|
}, Ws = (e) => e, Gs = (e, t, s) => {
|
931
931
|
const i = Ws(e);
|
@@ -954,7 +954,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
954
954
|
try {
|
955
955
|
ne = t, t = t.render && t.render(), e.$flags$ &= -17, e.$flags$ |= 2, (H.hasRenderFn || H.reflect) && (H.vdomRender || H.reflect) && (H.hydrateServerSide || Fs(e, t));
|
956
956
|
} catch (a) {
|
957
|
-
|
957
|
+
J(a, e.$hostElement$);
|
958
958
|
}
|
959
959
|
return ne = null, null;
|
960
960
|
}, Xs = (e) => {
|
@@ -965,10 +965,10 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
965
965
|
try {
|
966
966
|
return e[t](s);
|
967
967
|
} catch (i) {
|
968
|
-
|
968
|
+
J(i);
|
969
969
|
}
|
970
|
-
}, pe = (e, t) => e && e.then ? e.then(t) : t(), Js = (e, t) => e != null && !
|
971
|
-
const n =
|
970
|
+
}, pe = (e, t) => e && e.then ? e.then(t) : t(), Js = (e, t) => e != null && !Dt(e) ? t & 4 ? e === "false" ? !1 : e === "" || !!e : t & 2 ? parseFloat(e) : t & 1 ? String(e) : e : e, Vs = (e, t) => mt(e).$instanceValues$.get(t), ti = (e, t, s, i) => {
|
971
|
+
const n = mt(e), r = e, o = n.$instanceValues$.get(t), a = n.$flags$, l = r;
|
972
972
|
s = Js(s, i.$members$[t][0]);
|
973
973
|
const c = Number.isNaN(o) && Number.isNaN(s);
|
974
974
|
if (s !== o && !c) {
|
@@ -980,7 +980,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
980
980
|
try {
|
981
981
|
l[p](s, o, t);
|
982
982
|
} catch (f) {
|
983
|
-
|
983
|
+
J(f, r);
|
984
984
|
}
|
985
985
|
});
|
986
986
|
}
|
@@ -1033,7 +1033,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
1033
1033
|
let o = n.style;
|
1034
1034
|
typeof o != "string" && (o = o[t.$modeName$ = Ns(e)]);
|
1035
1035
|
const a = He(s, t.$modeName$);
|
1036
|
-
if (!
|
1036
|
+
if (!ct.has(a)) {
|
1037
1037
|
const l = L("registerStyles", s.$tagName$);
|
1038
1038
|
Ps(a, o, !!(s.$flags$ & 1)), l();
|
1039
1039
|
}
|
@@ -1042,7 +1042,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
1042
1042
|
}, ii = (e) => {
|
1043
1043
|
}, ni = (e) => {
|
1044
1044
|
if (!(m.$flags$ & 1)) {
|
1045
|
-
const t =
|
1045
|
+
const t = mt(e), s = t.$cmpMeta$, i = L("connectedCallback", s.$tagName$);
|
1046
1046
|
t.$flags$ & 1 ? (Ne(e, t, s.$listeners$), ii(t.$lazyInstance$)) : (t.$flags$ |= 1, s.$flags$ & 12 && ri(e), s.$members$ && Object.entries(s.$members$).map(([n, [r]]) => {
|
1047
1047
|
if (r & 31 && e.hasOwnProperty(n)) {
|
1048
1048
|
const o = e[n];
|
@@ -1055,7 +1055,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
1055
1055
|
t["s-cn"] = !0, e.insertBefore(t, e.firstChild);
|
1056
1056
|
}, oi = (e) => {
|
1057
1057
|
if (!(m.$flags$ & 1)) {
|
1058
|
-
const t =
|
1058
|
+
const t = mt(e);
|
1059
1059
|
t.$rmListeners$ && (t.$rmListeners$.map((s) => s()), t.$rmListeners$ = void 0);
|
1060
1060
|
}
|
1061
1061
|
}, We = (e, t) => {
|
@@ -1082,7 +1082,7 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
1082
1082
|
});
|
1083
1083
|
}
|
1084
1084
|
}), e.is = s.$tagName$, ei(e, s);
|
1085
|
-
}, Ge = /* @__PURE__ */ new WeakMap(),
|
1085
|
+
}, Ge = /* @__PURE__ */ new WeakMap(), mt = (e) => Ge.get(e), ai = (e, t) => {
|
1086
1086
|
const s = {
|
1087
1087
|
$flags$: 0,
|
1088
1088
|
$hostElement$: e,
|
@@ -1090,19 +1090,19 @@ const mt = typeof window < "u" ? window : {}, x = mt.document || { head: {} }, U
|
|
1090
1090
|
$instanceValues$: /* @__PURE__ */ new Map()
|
1091
1091
|
};
|
1092
1092
|
return Ne(e, s, t.$listeners$), Ge.set(e, s);
|
1093
|
-
}, ue = (e, t) => t in e,
|
1094
|
-
e.push(s),
|
1093
|
+
}, ue = (e, t) => t in e, J = (e, t) => (0, console.error)(e, t), ct = /* @__PURE__ */ new Map(), li = [], fe = [], qe = [], ci = (e, t) => (s) => {
|
1094
|
+
e.push(s), Pt || (Pt = !0, t && m.$flags$ & 4 ? di(Lt) : m.raf(Lt));
|
1095
1095
|
}, $e = (e) => {
|
1096
1096
|
for (let t = 0; t < e.length; t++)
|
1097
1097
|
try {
|
1098
1098
|
e[t](performance.now());
|
1099
1099
|
} catch (s) {
|
1100
|
-
|
1100
|
+
J(s);
|
1101
1101
|
}
|
1102
1102
|
e.length = 0;
|
1103
|
-
},
|
1104
|
-
$e(fe), $e(qe), (
|
1105
|
-
}, di = (e) =>
|
1103
|
+
}, Lt = () => {
|
1104
|
+
$e(fe), $e(qe), (Pt = fe.length > 0) && m.raf(Lt);
|
1105
|
+
}, di = (e) => Es().then(e), hi = /* @__PURE__ */ ci(qe, !0), pi = (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" },
|
@@ -1127,7 +1127,7 @@ const gi = "telia-vst{display:none}", mi = /* @__PURE__ */ We(class extends Ue {
|
|
1127
1127
|
this.vocaInternalUStats.emit(new $i(this.dataTrackingId));
|
1128
1128
|
}
|
1129
1129
|
render() {
|
1130
|
-
return j(
|
1130
|
+
return j(It, null);
|
1131
1131
|
}
|
1132
1132
|
static get style() {
|
1133
1133
|
return gi;
|
@@ -1147,15 +1147,15 @@ function Ye() {
|
|
1147
1147
|
});
|
1148
1148
|
}
|
1149
1149
|
Ye();
|
1150
|
-
function
|
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
1153
|
function vi() {
|
1154
|
-
if (typeof
|
1155
|
-
return
|
1154
|
+
if (typeof Ut().vocadsIcons !== void 0)
|
1155
|
+
return Ut().vocadsIcons;
|
1156
1156
|
}
|
1157
1157
|
function yi() {
|
1158
|
-
return
|
1158
|
+
return Ut().vocadsIconsRegistered;
|
1159
1159
|
}
|
1160
1160
|
const bi = ".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))}", _i = /* @__PURE__ */ We(class extends Ue {
|
1161
1161
|
constructor() {
|
@@ -1186,7 +1186,7 @@ const bi = ".telia-icon{display:inline-block}.telia-icon__container{display:bloc
|
|
1186
1186
|
attributes: t,
|
1187
1187
|
title: this.allyTitle
|
1188
1188
|
});
|
1189
|
-
return j(
|
1189
|
+
return j(It, { class: `telia-icon telia-icon--${this.size}` }, j("span", { "aria-label": this.allyTitle, class: "telia-icon__container", innerHTML: s }), j("telia-vst", { dataTrackingId: this.dataTrackingId }));
|
1190
1190
|
}
|
1191
1191
|
static get style() {
|
1192
1192
|
return bi;
|
@@ -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 vt = (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 tt = (e) => (t, s) => {
|
|
1228
1228
|
* Copyright 2017 Google LLC
|
1229
1229
|
* SPDX-License-Identifier: BSD-3-Clause
|
1230
1230
|
*/
|
1231
|
-
const wi = { attribute: !0, type: String, converter:
|
1231
|
+
const wi = { attribute: !0, type: String, converter: nt, reflect: !1, hasChanged: Mt }, Ai = (e = wi, t, s) => {
|
1232
1232
|
const { kind: i, metadata: n } = s;
|
1233
1233
|
let r = globalThis.litPropertyMetadata.get(n);
|
1234
1234
|
if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), r.set(s.name, e), i === "accessor") {
|
@@ -1275,7 +1275,7 @@ const Si = (e) => e.strings === void 0;
|
|
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 zt = class {
|
1279
1279
|
constructor(t) {
|
1280
1280
|
}
|
1281
1281
|
get _$AU() {
|
@@ -1296,15 +1296,15 @@ let Ft = class {
|
|
1296
1296
|
* Copyright 2017 Google LLC
|
1297
1297
|
* SPDX-License-Identifier: BSD-3-Clause
|
1298
1298
|
*/
|
1299
|
-
const
|
1299
|
+
const q = (e, t) => {
|
1300
1300
|
var i;
|
1301
1301
|
const s = e._$AN;
|
1302
1302
|
if (s === void 0)
|
1303
1303
|
return !1;
|
1304
1304
|
for (const n of s)
|
1305
|
-
(i = n._$AO) == null || i.call(n, t, !1),
|
1305
|
+
(i = n._$AO) == null || i.call(n, t, !1), q(n, t);
|
1306
1306
|
return !0;
|
1307
|
-
},
|
1307
|
+
}, dt = (e) => {
|
1308
1308
|
let t, s;
|
1309
1309
|
do {
|
1310
1310
|
if ((t = e._$AM) === void 0)
|
@@ -1321,25 +1321,25 @@ const Y = (e, t) => {
|
|
1321
1321
|
s.add(e), ki(t);
|
1322
1322
|
}
|
1323
1323
|
};
|
1324
|
-
function
|
1325
|
-
this._$AN !== void 0 ? (
|
1324
|
+
function Ei(e) {
|
1325
|
+
this._$AN !== void 0 ? (dt(this), this._$AM = e, Ke(this)) : this._$AM = e;
|
1326
1326
|
}
|
1327
|
-
function
|
1327
|
+
function Ci(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
|
-
|
1333
|
+
q(i[r], !1), dt(i[r]);
|
1334
1334
|
else
|
1335
|
-
i != null && (
|
1335
|
+
i != null && (q(i, !1), dt(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 = Ci), e._$AQ ?? (e._$AQ = Ei));
|
1341
1341
|
};
|
1342
|
-
let Qe = class extends
|
1342
|
+
let Qe = class extends zt {
|
1343
1343
|
constructor() {
|
1344
1344
|
super(...arguments), this._$AN = void 0;
|
1345
1345
|
}
|
@@ -1348,7 +1348,7 @@ let Qe = class extends Ft {
|
|
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 && (
|
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), dt(this));
|
1352
1352
|
}
|
1353
1353
|
setValue(t) {
|
1354
1354
|
if (Si(this._$Ct))
|
@@ -1371,7 +1371,7 @@ let Qe = class extends Ft {
|
|
1371
1371
|
const Ze = () => new Ti();
|
1372
1372
|
class Ti {
|
1373
1373
|
}
|
1374
|
-
const
|
1374
|
+
const kt = /* @__PURE__ */ new WeakMap(), Xe = bt(class extends Qe {
|
1375
1375
|
render(e) {
|
1376
1376
|
return u;
|
1377
1377
|
}
|
@@ -1383,14 +1383,14 @@ const Tt = /* @__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 = kt.get(t);
|
1387
|
+
s === void 0 && (s = /* @__PURE__ */ new WeakMap(), kt.set(t, s)), s.get(this.G) !== void 0 && this.G.call(this.ct, void 0), s.set(this.G, e), e !== void 0 && this.G.call(this.ct, e);
|
1388
1388
|
} else
|
1389
1389
|
this.G.value = e;
|
1390
1390
|
}
|
1391
1391
|
get rt() {
|
1392
1392
|
var e, t;
|
1393
|
-
return typeof this.G == "function" ? (e =
|
1393
|
+
return typeof this.G == "function" ? (e = kt.get(this.ct ?? globalThis)) == null ? void 0 : e.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1394
1394
|
}
|
1395
1395
|
disconnected() {
|
1396
1396
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1404,7 +1404,7 @@ const Tt = /* @__PURE__ */ new WeakMap(), 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 Ft = bt(class extends zt {
|
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)
|
@@ -1428,21 +1428,21 @@ const Wt = bt(class extends Ft {
|
|
1428
1428
|
const o = !!t[r];
|
1429
1429
|
o === this.it.has(r) || (n = this.st) != null && n.has(r) || (o ? (s.add(r), this.it.add(r)) : (s.remove(r), this.it.delete(r)));
|
1430
1430
|
}
|
1431
|
-
return
|
1431
|
+
return C;
|
1432
1432
|
}
|
1433
|
-
}),
|
1433
|
+
}), st = (e, t, s) => {
|
1434
1434
|
e && s.style.setProperty(t, e);
|
1435
1435
|
}, Je = (e, t) => {
|
1436
1436
|
var s, i, n, r;
|
1437
|
-
|
1437
|
+
st((s = e.colors) == null ? void 0 : s.primaryBackground, "--primary-background", t), st(
|
1438
1438
|
(i = e.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1439
1439
|
"--text-on-primary-background",
|
1440
1440
|
t
|
1441
|
-
),
|
1441
|
+
), st(
|
1442
1442
|
(n = e.colors) == null ? void 0 : n.secondaryBackground,
|
1443
1443
|
"--secondary-background",
|
1444
1444
|
t
|
1445
|
-
),
|
1445
|
+
), st(
|
1446
1446
|
(r = e.colors) == null ? void 0 : r.textOnSecondaryBackground,
|
1447
1447
|
"--text-on-secondary-background",
|
1448
1448
|
t
|
@@ -1479,7 +1479,7 @@ class U extends y {
|
|
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-217978bc.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=${Ft({
|
1501
1501
|
trigger: !0,
|
1502
1502
|
active: this.active,
|
1503
1503
|
rendered: this.loaded
|
@@ -1702,12 +1702,12 @@ function* Ni(e, t) {
|
|
1702
1702
|
yield t(i, s++);
|
1703
1703
|
}
|
1704
1704
|
}
|
1705
|
-
var
|
1705
|
+
var Wt = /* @__PURE__ */ ((e) => (e.Inline = "inline", e.Trigger = "trigger", e))(Wt || {}), Hi = Object.defineProperty, Ri = Object.getOwnPropertyDescriptor, Mi = (e, t, s, i) => {
|
1706
1706
|
for (var n = i > 1 ? void 0 : i ? Ri(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
1708
|
return i && n && Hi(t, s, n), n;
|
1709
1709
|
};
|
1710
|
-
class
|
1710
|
+
class Gt extends y {
|
1711
1711
|
constructor() {
|
1712
1712
|
super(...arguments), this.nodes = [], this.wrapperRef = Ze();
|
1713
1713
|
}
|
@@ -1724,12 +1724,12 @@ class qt extends y {
|
|
1724
1724
|
this.applyBranding();
|
1725
1725
|
}
|
1726
1726
|
render() {
|
1727
|
-
return this.application.renderStrategy ===
|
1727
|
+
return this.application.renderStrategy === Wt.Trigger && this.renderRoot.host.classList.add("floating"), $`<div class="widget-container" ${Xe(this.wrapperRef)}>
|
1728
1728
|
${Ni(this.nodes, (t) => t)}
|
1729
1729
|
</div>`;
|
1730
1730
|
}
|
1731
1731
|
}
|
1732
|
-
|
1732
|
+
Gt.styles = w`
|
1733
1733
|
:host {
|
1734
1734
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1735
1735
|
--spacing-xs: 0.2rem;
|
@@ -1810,13 +1810,13 @@ qt.styles = w`
|
|
1810
1810
|
`;
|
1811
1811
|
Mi([
|
1812
1812
|
g({ attribute: !1 })
|
1813
|
-
],
|
1814
|
-
var ji = Object.defineProperty, Di = Object.getOwnPropertyDescriptor,
|
1813
|
+
], Gt.prototype, "application", 2);
|
1814
|
+
var ji = Object.defineProperty, Di = Object.getOwnPropertyDescriptor, qt = (e, t, s, i) => {
|
1815
1815
|
for (var n = i > 1 ? void 0 : i ? Di(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
1817
|
return i && n && ji(t, s, n), n;
|
1818
1818
|
};
|
1819
|
-
|
1819
|
+
class V extends y {
|
1820
1820
|
constructor() {
|
1821
1821
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1822
1822
|
}
|
@@ -1826,59 +1826,57 @@ let B = class extends y {
|
|
1826
1826
|
disconnectedCallback() {
|
1827
1827
|
super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
|
1828
1828
|
}
|
1829
|
-
async onEnvironmentCreated(
|
1830
|
-
this.widget =
|
1829
|
+
async onEnvironmentCreated(t) {
|
1830
|
+
this.widget = t.detail.widget, await this.activate(), this.requestUpdate();
|
1831
1831
|
}
|
1832
1832
|
async activate() {
|
1833
1833
|
this.widget && (await this.widget.activate(), this.status = "activated");
|
1834
1834
|
}
|
1835
1835
|
async getGlobalEnvironment() {
|
1836
|
-
const
|
1837
|
-
|
1838
|
-
(
|
1836
|
+
const t = globalThis.widgets;
|
1837
|
+
t && (this.widget = t.applications.find(
|
1838
|
+
(s) => s.name === this.name
|
1839
1839
|
), await this.activate());
|
1840
1840
|
}
|
1841
1841
|
render() {
|
1842
1842
|
if (!this.widget || this.status !== "activated")
|
1843
1843
|
return u;
|
1844
|
-
if (this.widget.renderStrategy ===
|
1845
|
-
const
|
1846
|
-
return
|
1844
|
+
if (this.widget.renderStrategy === Wt.Trigger) {
|
1845
|
+
const t = new U();
|
1846
|
+
return t.application = this.widget, t;
|
1847
1847
|
}
|
1848
1848
|
return this.widget.render();
|
1849
1849
|
}
|
1850
|
-
}
|
1851
|
-
|
1850
|
+
}
|
1851
|
+
V.styles = [
|
1852
1852
|
w`
|
1853
1853
|
:host {
|
1854
1854
|
display: block;
|
1855
1855
|
}
|
1856
1856
|
`
|
1857
1857
|
];
|
1858
|
-
|
1858
|
+
qt([
|
1859
1859
|
g({ attribute: !0 })
|
1860
|
-
],
|
1861
|
-
|
1860
|
+
], V.prototype, "name", 2);
|
1861
|
+
qt([
|
1862
1862
|
A()
|
1863
|
-
],
|
1864
|
-
|
1863
|
+
], V.prototype, "widget", 2);
|
1864
|
+
qt([
|
1865
1865
|
A()
|
1866
|
-
],
|
1867
|
-
B = xt([
|
1868
|
-
tt("ace-widget")
|
1869
|
-
], B);
|
1866
|
+
], V.prototype, "status", 2);
|
1870
1867
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", U);
|
1871
1868
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", ts);
|
1872
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
1869
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", Gt);
|
1870
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", V);
|
1873
1871
|
const Ii = /* @__PURE__ */ new WeakMap();
|
1874
1872
|
let ge = 0;
|
1875
|
-
const
|
1873
|
+
const Tt = /* @__PURE__ */ new Map(), me = /* @__PURE__ */ new WeakSet(), ve = () => new Promise((e) => requestAnimationFrame(e)), Bi = [{ opacity: 0 }], ye = [{ opacity: 0 }, { opacity: 1 }], be = (e, t) => {
|
1876
1874
|
const s = e - t;
|
1877
1875
|
return s === 0 ? void 0 : s;
|
1878
1876
|
}, _e = (e, t) => {
|
1879
1877
|
const s = e / t;
|
1880
1878
|
return s === 1 ? void 0 : s;
|
1881
|
-
},
|
1879
|
+
}, Ot = { left: (e, t) => {
|
1882
1880
|
const s = be(e, t);
|
1883
1881
|
return { value: s, transform: s == null || isNaN(s) ? void 0 : `translateX(${s}px)` };
|
1884
1882
|
}, top: (e, t) => {
|
@@ -1934,7 +1932,7 @@ class Wi extends Qe {
|
|
1934
1932
|
p() {
|
1935
1933
|
const t = {}, s = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1936
1934
|
return this.options.properties.forEach((n) => {
|
1937
|
-
const r = s[n] ?? (
|
1935
|
+
const r = s[n] ?? (Ot[n] ? void 0 : i[n]), o = Number(r);
|
1938
1936
|
t[n] = isNaN(o) ? r + "" : o;
|
1939
1937
|
}), t;
|
1940
1938
|
}
|
@@ -1962,9 +1960,9 @@ class Wi extends Qe {
|
|
1962
1960
|
const { from: r, to: o } = this.O(this.g, n, s);
|
1963
1961
|
this.log("measured", [this.g, n, r, o]), t = this.calculateKeyframes(r, o);
|
1964
1962
|
} else {
|
1965
|
-
const r =
|
1963
|
+
const r = Tt.get(this.options.inId);
|
1966
1964
|
if (r) {
|
1967
|
-
|
1965
|
+
Tt.delete(this.options.inId);
|
1968
1966
|
const { from: o, to: a } = this.O(r, n, s);
|
1969
1967
|
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, ge++, t.forEach((l) => l.zIndex = ge);
|
1970
1968
|
} else
|
@@ -1983,7 +1981,7 @@ class Wi extends Qe {
|
|
1983
1981
|
}
|
1984
1982
|
async disconnected() {
|
1985
1983
|
var s;
|
1986
|
-
if (!this.o || (this.options.id !== void 0 &&
|
1984
|
+
if (!this.o || (this.options.id !== void 0 && Tt.set(this.options.id, this.g), this.options.out === void 0))
|
1987
1985
|
return;
|
1988
1986
|
if (this.prepare(), await ve(), (s = this.t) == null ? void 0 : s.isConnected) {
|
1989
1987
|
const i = this.i && this.i.parentNode === this.t ? this.i : null;
|
@@ -2040,8 +2038,8 @@ class Wi extends Qe {
|
|
2040
2038
|
const a = {};
|
2041
2039
|
for (const l in s) {
|
2042
2040
|
const c = t[l], h = s[l];
|
2043
|
-
if (l in
|
2044
|
-
const d =
|
2041
|
+
if (l in Ot) {
|
2042
|
+
const d = Ot[l];
|
2045
2043
|
if (c === void 0 || h === void 0)
|
2046
2044
|
continue;
|
2047
2045
|
const p = d(c, h);
|
@@ -2075,12 +2073,12 @@ class Wi extends Qe {
|
|
2075
2073
|
}
|
2076
2074
|
}
|
2077
2075
|
const we = bt(Wi);
|
2078
|
-
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor,
|
2076
|
+
var Gi = Object.defineProperty, qi = Object.getOwnPropertyDescriptor, xt = (e, t, s, i) => {
|
2079
2077
|
for (var n = i > 1 ? void 0 : i ? qi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2080
2078
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2081
2079
|
return i && n && Gi(t, s, n), n;
|
2082
2080
|
};
|
2083
|
-
let
|
2081
|
+
let B = class extends y {
|
2084
2082
|
constructor() {
|
2085
2083
|
super(...arguments), this.loading = !1, this.entries = [];
|
2086
2084
|
}
|
@@ -2120,7 +2118,7 @@ let z = class extends y {
|
|
2120
2118
|
</div>`;
|
2121
2119
|
}
|
2122
2120
|
};
|
2123
|
-
|
2121
|
+
B.styles = [
|
2124
2122
|
w`
|
2125
2123
|
:host {
|
2126
2124
|
display: block;
|
@@ -2133,24 +2131,24 @@ z.styles = [
|
|
2133
2131
|
}
|
2134
2132
|
`
|
2135
2133
|
];
|
2136
|
-
|
2134
|
+
xt([
|
2137
2135
|
g({ type: Boolean })
|
2138
|
-
],
|
2139
|
-
|
2136
|
+
], B.prototype, "loading", 2);
|
2137
|
+
xt([
|
2140
2138
|
g({ attribute: !1 })
|
2141
|
-
],
|
2142
|
-
|
2139
|
+
], B.prototype, "session", 2);
|
2140
|
+
xt([
|
2143
2141
|
A()
|
2144
|
-
],
|
2145
|
-
|
2146
|
-
|
2147
|
-
],
|
2142
|
+
], B.prototype, "entries", 2);
|
2143
|
+
B = xt([
|
2144
|
+
vt("ace-conversation-session")
|
2145
|
+
], B);
|
2148
2146
|
var Yi = Object.defineProperty, Ki = Object.getOwnPropertyDescriptor, es = (e, t, s, i) => {
|
2149
2147
|
for (var n = i > 1 ? void 0 : i ? Ki(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2150
2148
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2151
2149
|
return i && n && Yi(t, s, n), n;
|
2152
2150
|
};
|
2153
|
-
let
|
2151
|
+
let ht = class extends y {
|
2154
2152
|
connectedCallback() {
|
2155
2153
|
var e;
|
2156
2154
|
super.connectedCallback(), (e = this.entry.didUpdate) == null || e.subscribe(() => {
|
@@ -2170,11 +2168,11 @@ let pt = class extends y {
|
|
2170
2168
|
render() {
|
2171
2169
|
var e, t;
|
2172
2170
|
switch (this.entry.type) {
|
2173
|
-
case
|
2171
|
+
case wt.System:
|
2174
2172
|
return "";
|
2175
|
-
case
|
2173
|
+
case wt.Agent:
|
2176
2174
|
return $`<div
|
2177
|
-
class=${
|
2175
|
+
class=${Ft({
|
2178
2176
|
"conversation-agent-message": !0,
|
2179
2177
|
"has-avatar": !!((e = this.entry.sender) != null && e.avatar)
|
2180
2178
|
})}
|
@@ -2199,7 +2197,7 @@ let pt = class extends y {
|
|
2199
2197
|
this.entry.timestamp
|
2200
2198
|
)}
|
2201
2199
|
</div>`;
|
2202
|
-
case
|
2200
|
+
case wt.User:
|
2203
2201
|
return $`<div class="conversation-user-message">
|
2204
2202
|
<div class="entry-content">
|
2205
2203
|
${this.entry.messages.map(
|
@@ -2222,7 +2220,7 @@ let pt = class extends y {
|
|
2222
2220
|
}
|
2223
2221
|
}
|
2224
2222
|
};
|
2225
|
-
|
2223
|
+
ht.styles = [
|
2226
2224
|
w`
|
2227
2225
|
:host {
|
2228
2226
|
box-sizing: border-box;
|
@@ -2309,16 +2307,16 @@ pt.styles = [
|
|
2309
2307
|
];
|
2310
2308
|
es([
|
2311
2309
|
g({ attribute: !1 })
|
2312
|
-
],
|
2313
|
-
|
2314
|
-
|
2315
|
-
],
|
2310
|
+
], ht.prototype, "entry", 2);
|
2311
|
+
ht = es([
|
2312
|
+
vt("conversation-entry")
|
2313
|
+
], ht);
|
2316
2314
|
var Qi = Object.defineProperty, Zi = Object.getOwnPropertyDescriptor, ss = (e, t, s, i) => {
|
2317
2315
|
for (var n = i > 1 ? void 0 : i ? Zi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2318
2316
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2319
2317
|
return i && n && Qi(t, s, n), n;
|
2320
2318
|
};
|
2321
|
-
let
|
2319
|
+
let pt = class extends y {
|
2322
2320
|
render() {
|
2323
2321
|
return $`
|
2324
2322
|
<div class="message-group">
|
@@ -2333,7 +2331,7 @@ let ut = class extends y {
|
|
2333
2331
|
`;
|
2334
2332
|
}
|
2335
2333
|
};
|
2336
|
-
|
2334
|
+
pt.styles = [
|
2337
2335
|
w`
|
2338
2336
|
:host {
|
2339
2337
|
box-sizing: border-box;
|
@@ -2351,16 +2349,16 @@ ut.styles = [
|
|
2351
2349
|
];
|
2352
2350
|
ss([
|
2353
2351
|
g({ attribute: !1 })
|
2354
|
-
],
|
2355
|
-
|
2356
|
-
|
2357
|
-
],
|
2352
|
+
], pt.prototype, "group", 2);
|
2353
|
+
pt = ss([
|
2354
|
+
vt("conversation-group")
|
2355
|
+
], pt);
|
2358
2356
|
/**
|
2359
2357
|
* @license
|
2360
2358
|
* Copyright 2017 Google LLC
|
2361
2359
|
* SPDX-License-Identifier: BSD-3-Clause
|
2362
2360
|
*/
|
2363
|
-
class
|
2361
|
+
class Nt extends zt {
|
2364
2362
|
constructor(t) {
|
2365
2363
|
if (super(t), this.et = u, t.type !== yt.CHILD)
|
2366
2364
|
throw Error(this.constructor.directiveName + "() can only be used in child bindings");
|
@@ -2368,7 +2366,7 @@ class Ht extends Ft {
|
|
2368
2366
|
render(t) {
|
2369
2367
|
if (t === u || t == null)
|
2370
2368
|
return this.vt = void 0, this.et = t;
|
2371
|
-
if (t ===
|
2369
|
+
if (t === C)
|
2372
2370
|
return t;
|
2373
2371
|
if (typeof t != "string")
|
2374
2372
|
throw Error(this.constructor.directiveName + "() called with a non-string value");
|
@@ -2379,21 +2377,21 @@ class Ht extends Ft {
|
|
2379
2377
|
return s.raw = s, this.vt = { _$litType$: this.constructor.resultType, strings: s, values: [] };
|
2380
2378
|
}
|
2381
2379
|
}
|
2382
|
-
|
2383
|
-
const Xi = bt(
|
2380
|
+
Nt.directiveName = "unsafeHTML", Nt.resultType = 1;
|
2381
|
+
const Xi = bt(Nt);
|
2384
2382
|
var Ji = Object.defineProperty, Vi = Object.getOwnPropertyDescriptor, is = (e, t, s, i) => {
|
2385
2383
|
for (var n = i > 1 ? void 0 : i ? Vi(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2386
2384
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
2387
2385
|
return i && n && Ji(t, s, n), n;
|
2388
2386
|
};
|
2389
|
-
let
|
2387
|
+
let ut = class extends y {
|
2390
2388
|
render() {
|
2391
2389
|
return $`<div class="message-type-html">
|
2392
2390
|
${Xi(this.message.content)}
|
2393
2391
|
</div>`;
|
2394
2392
|
}
|
2395
2393
|
};
|
2396
|
-
|
2394
|
+
ut.styles = [
|
2397
2395
|
w`
|
2398
2396
|
:host {
|
2399
2397
|
box-sizing: border-box;
|
@@ -2410,10 +2408,10 @@ ft.styles = [
|
|
2410
2408
|
];
|
2411
2409
|
is([
|
2412
2410
|
g({ attribute: !1 })
|
2413
|
-
],
|
2414
|
-
|
2415
|
-
|
2416
|
-
],
|
2411
|
+
], ut.prototype, "message", 2);
|
2412
|
+
ut = is([
|
2413
|
+
vt("message-type-html")
|
2414
|
+
], ut);
|
2417
2415
|
var tn = Object.defineProperty, en = Object.getOwnPropertyDescriptor, Yt = (e, t, s, i) => {
|
2418
2416
|
for (var n = i > 1 ? void 0 : i ? en(t, s) : t, r = e.length - 1, o; r >= 0; r--)
|
2419
2417
|
(o = e[r]) && (n = (i ? o(t, s, n) : o(n)) || n);
|
@@ -2422,7 +2420,7 @@ var tn = Object.defineProperty, en = Object.getOwnPropertyDescriptor, Yt = (e, t
|
|
2422
2420
|
const sn = (e) => {
|
2423
2421
|
e.scrollTo ? e.scrollTo({ top: e.scrollHeight, behavior: "smooth" }) : e.scrollTop = e.scrollHeight;
|
2424
2422
|
}, ns = Ve(y);
|
2425
|
-
class
|
2423
|
+
class z extends ns {
|
2426
2424
|
constructor() {
|
2427
2425
|
super(...arguments), this.message = "", this.platform = null, this.session = null, this.conversationContentRef = Ze(), this.chatScrollHeight = 0;
|
2428
2426
|
}
|
@@ -2455,7 +2453,7 @@ class F extends ns {
|
|
2455
2453
|
render() {
|
2456
2454
|
return $` <div
|
2457
2455
|
@action=${this._actionHandler}
|
2458
|
-
class=${
|
2456
|
+
class=${Ft({
|
2459
2457
|
conversation: !0,
|
2460
2458
|
"input-has-text": this.message.length > 0
|
2461
2459
|
})}
|
@@ -2480,7 +2478,7 @@ class F extends ns {
|
|
2480
2478
|
</div>`;
|
2481
2479
|
}
|
2482
2480
|
}
|
2483
|
-
|
2481
|
+
z.styles = [
|
2484
2482
|
ns.styles || [],
|
2485
2483
|
w`
|
2486
2484
|
:host {
|
@@ -2603,17 +2601,17 @@ F.styles = [
|
|
2603
2601
|
];
|
2604
2602
|
Yt([
|
2605
2603
|
A()
|
2606
|
-
],
|
2604
|
+
], z.prototype, "message", 2);
|
2607
2605
|
Yt([
|
2608
2606
|
A()
|
2609
|
-
],
|
2607
|
+
], z.prototype, "platform", 2);
|
2610
2608
|
Yt([
|
2611
2609
|
A()
|
2612
|
-
],
|
2610
|
+
], z.prototype, "session", 2);
|
2613
2611
|
const hn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
2614
2612
|
__proto__: null,
|
2615
|
-
Conversation:
|
2616
|
-
default:
|
2613
|
+
Conversation: z,
|
2614
|
+
default: z
|
2617
2615
|
}, Symbol.toStringTag, { value: "Module" }));
|
2618
2616
|
export {
|
2619
2617
|
hn as c,
|