@telia-ace/widget-components-area-flamingo 1.1.72-rc.10 → 1.1.72-rc.11
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-0debe139.mjs → area-200f5d89.mjs} +353 -330
- package/{area-2533ce4c.js → area-909b0e80.js} +37 -30
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -23,14 +23,14 @@ let Kt = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const ge = (s) => new Kt(typeof s == "string" ? s : s + "", void 0, vt),
|
27
|
-
const e = s.length === 1 ? s[0] : t.reduce((i, r,
|
28
|
-
if (
|
29
|
-
return
|
30
|
-
if (typeof
|
31
|
-
return
|
32
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
33
|
-
})(r) + s[
|
26
|
+
const ge = (s) => new Kt(typeof s == "string" ? s : s + "", void 0, vt), O = (s, ...t) => {
|
27
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, o) => i + ((n) => {
|
28
|
+
if (n._$cssResult$ === !0)
|
29
|
+
return n.cssText;
|
30
|
+
if (typeof n == "number")
|
31
|
+
return n;
|
32
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
33
|
+
})(r) + s[o + 1], s[0]);
|
34
34
|
return new Kt(e, s, vt);
|
35
35
|
}, ve = (s, t) => {
|
36
36
|
if (gt)
|
@@ -51,7 +51,7 @@ const ge = (s) => new Kt(typeof s == "string" ? s : s + "", void 0, vt), P = (s,
|
|
51
51
|
* Copyright 2017 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
const { is: me, defineProperty: ye, getOwnPropertyDescriptor: be, getOwnPropertyNames: $e, getOwnPropertySymbols: _e, getPrototypeOf: we } = Object,
|
54
|
+
const { is: me, defineProperty: ye, getOwnPropertyDescriptor: be, getOwnPropertyNames: $e, getOwnPropertySymbols: _e, getPrototypeOf: we } = Object, _ = globalThis, Et = _.trustedTypes, Ae = Et ? Et.emptyScript : "", et = _.reactiveElementPolyfillSupport, M = (s, t) => s, Z = { toAttribute(s, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
57
|
s = s ? Ae : null;
|
@@ -80,8 +80,8 @@ const { is: me, defineProperty: ye, getOwnPropertyDescriptor: be, getOwnProperty
|
|
80
80
|
}
|
81
81
|
return e;
|
82
82
|
} }, mt = (s, t) => !me(s, t), Pt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt };
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
84
|
-
let
|
83
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
+
let k = class extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
87
87
|
}
|
@@ -95,31 +95,31 @@ let T = class extends HTMLElement {
|
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, i) {
|
98
|
-
const { get: r, set:
|
98
|
+
const { get: r, set: o } = be(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
|
-
}, set(
|
101
|
-
this[e] =
|
100
|
+
}, set(n) {
|
101
|
+
this[e] = n;
|
102
102
|
} };
|
103
103
|
return { get() {
|
104
104
|
return r == null ? void 0 : r.call(this);
|
105
|
-
}, set(
|
105
|
+
}, set(n) {
|
106
106
|
const a = r == null ? void 0 : r.call(this);
|
107
|
-
|
107
|
+
o.call(this, n), this.requestUpdate(t, a, i);
|
108
108
|
}, configurable: !0, enumerable: !0 };
|
109
109
|
}
|
110
110
|
static getPropertyOptions(t) {
|
111
111
|
return this.elementProperties.get(t) ?? Pt;
|
112
112
|
}
|
113
113
|
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(
|
114
|
+
if (this.hasOwnProperty(M("elementProperties")))
|
115
115
|
return;
|
116
116
|
const t = we(this);
|
117
117
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
118
118
|
}
|
119
119
|
static finalize() {
|
120
|
-
if (this.hasOwnProperty(
|
120
|
+
if (this.hasOwnProperty(M("finalized")))
|
121
121
|
return;
|
122
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
122
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(M("properties"))) {
|
123
123
|
const e = this.properties, i = [...$e(e), ..._e(e)];
|
124
124
|
for (const r of i)
|
125
125
|
this.createProperty(r, e[r]);
|
@@ -197,19 +197,19 @@ let T = class extends HTMLElement {
|
|
197
197
|
this._$AK(t, i);
|
198
198
|
}
|
199
199
|
_$EC(t, e) {
|
200
|
-
var
|
200
|
+
var o;
|
201
201
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
202
202
|
if (r !== void 0 && i.reflect === !0) {
|
203
|
-
const
|
204
|
-
this._$Em = t,
|
203
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
|
204
|
+
this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
205
205
|
}
|
206
206
|
}
|
207
207
|
_$AK(t, e) {
|
208
|
-
var
|
208
|
+
var o;
|
209
209
|
const i = this.constructor, r = i._$Eh.get(t);
|
210
210
|
if (r !== void 0 && this._$Em !== r) {
|
211
|
-
const
|
212
|
-
this._$Em = r, this[r] = a.fromAttribute(e,
|
211
|
+
const n = i.getPropertyOptions(r), a = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : Z;
|
212
|
+
this._$Em = r, this[r] = a.fromAttribute(e, n.type), this._$Em = null;
|
213
213
|
}
|
214
214
|
}
|
215
215
|
requestUpdate(t, e, i) {
|
@@ -242,21 +242,21 @@ let T = class extends HTMLElement {
|
|
242
242
|
return;
|
243
243
|
if (!this.hasUpdated) {
|
244
244
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
245
|
-
for (const [
|
246
|
-
this[
|
245
|
+
for (const [o, n] of this._$Ep)
|
246
|
+
this[o] = n;
|
247
247
|
this._$Ep = void 0;
|
248
248
|
}
|
249
249
|
const r = this.constructor.elementProperties;
|
250
250
|
if (r.size > 0)
|
251
|
-
for (const [
|
252
|
-
|
251
|
+
for (const [o, n] of r)
|
252
|
+
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.P(o, this[o], n);
|
253
253
|
}
|
254
254
|
let t = !1;
|
255
255
|
const e = this._$AL;
|
256
256
|
try {
|
257
257
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
258
|
-
var
|
259
|
-
return (
|
258
|
+
var o;
|
259
|
+
return (o = r.hostUpdate) == null ? void 0 : o.call(r);
|
260
260
|
}), this.update(e)) : this._$EU();
|
261
261
|
} catch (r) {
|
262
262
|
throw t = !1, this._$EU(), r;
|
@@ -292,15 +292,15 @@ let T = class extends HTMLElement {
|
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
};
|
295
|
-
|
295
|
+
k.elementStyles = [], k.shadowRootOptions = { mode: "open" }, k[M("elementProperties")] = /* @__PURE__ */ new Map(), k[M("finalized")] = /* @__PURE__ */ new Map(), et == null || et({ ReactiveElement: k }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.4");
|
296
296
|
/**
|
297
297
|
* @license
|
298
298
|
* Copyright 2017 Google LLC
|
299
299
|
* SPDX-License-Identifier: BSD-3-Clause
|
300
300
|
*/
|
301
|
-
const
|
302
|
-
\f\r]`,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
301
|
+
const N = globalThis, K = N.trustedTypes, Ot = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Gt = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Xt = "?" + $, xe = `<${Xt}>`, E = document, H = () => E.createComment(""), I = (s) => s === null || typeof s != "object" && typeof s != "function", Jt = Array.isArray, Ce = (s) => Jt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", it = `[
|
302
|
+
\f\r]`, j = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, kt = />/g, A = RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Ut = /'/g, Rt = /"/g, Qt = /^(?:script|style|textarea|title)$/i, Se = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = Se(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), S = E.createTreeWalker(E, 129);
|
304
304
|
function te(s, t) {
|
305
305
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
@@ -308,68 +308,68 @@ function te(s, t) {
|
|
308
308
|
}
|
309
309
|
const Ee = (s, t) => {
|
310
310
|
const e = s.length - 1, i = [];
|
311
|
-
let r,
|
311
|
+
let r, o = t === 2 ? "<svg>" : "", n = j;
|
312
312
|
for (let a = 0; a < e; a++) {
|
313
313
|
const c = s[a];
|
314
314
|
let h, l, p = -1, d = 0;
|
315
|
-
for (; d < c.length && (
|
316
|
-
d =
|
317
|
-
const f =
|
318
|
-
|
315
|
+
for (; d < c.length && (n.lastIndex = d, l = n.exec(c), l !== null); )
|
316
|
+
d = n.lastIndex, n === j ? l[1] === "!--" ? n = Tt : l[1] !== void 0 ? n = kt : l[2] !== void 0 ? (Qt.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = A) : l[3] !== void 0 && (n = A) : n === A ? l[0] === ">" ? (n = r ?? j, p = -1) : l[1] === void 0 ? p = -2 : (p = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? A : l[3] === '"' ? Rt : Ut) : n === Rt || n === Ut ? n = A : n === Tt || n === kt ? n = j : (n = A, r = void 0);
|
317
|
+
const f = n === A && s[a + 1].startsWith("/>") ? " " : "";
|
318
|
+
o += n === j ? c + xe : p >= 0 ? (i.push(h), c.slice(0, p) + Gt + c.slice(p) + $ + f) : c + $ + (p === -2 ? a : f);
|
319
319
|
}
|
320
|
-
return [te(s,
|
320
|
+
return [te(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
321
321
|
};
|
322
|
-
class
|
322
|
+
class D {
|
323
323
|
constructor({ strings: t, _$litType$: e }, i) {
|
324
324
|
let r;
|
325
325
|
this.parts = [];
|
326
|
-
let
|
326
|
+
let o = 0, n = 0;
|
327
327
|
const a = t.length - 1, c = this.parts, [h, l] = Ee(t, e);
|
328
|
-
if (this.el =
|
328
|
+
if (this.el = D.createElement(h, i), S.currentNode = this.el.content, e === 2) {
|
329
329
|
const p = this.el.content.firstChild;
|
330
330
|
p.replaceWith(...p.childNodes);
|
331
331
|
}
|
332
|
-
for (; (r =
|
332
|
+
for (; (r = S.nextNode()) !== null && c.length < a; ) {
|
333
333
|
if (r.nodeType === 1) {
|
334
334
|
if (r.hasAttributes())
|
335
335
|
for (const p of r.getAttributeNames())
|
336
336
|
if (p.endsWith(Gt)) {
|
337
|
-
const d = l[
|
338
|
-
c.push({ type: 1, index:
|
337
|
+
const d = l[n++], f = r.getAttribute(p).split($), T = /([.?@])?(.*)/.exec(d);
|
338
|
+
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Oe : T[1] === "?" ? Te : T[1] === "@" ? ke : Q }), r.removeAttribute(p);
|
339
339
|
} else
|
340
|
-
p.startsWith(
|
340
|
+
p.startsWith($) && (c.push({ type: 6, index: o }), r.removeAttribute(p));
|
341
341
|
if (Qt.test(r.tagName)) {
|
342
|
-
const p = r.textContent.split(
|
342
|
+
const p = r.textContent.split($), d = p.length - 1;
|
343
343
|
if (d > 0) {
|
344
344
|
r.textContent = K ? K.emptyScript : "";
|
345
345
|
for (let f = 0; f < d; f++)
|
346
|
-
r.append(p[f],
|
347
|
-
r.append(p[d],
|
346
|
+
r.append(p[f], H()), S.nextNode(), c.push({ type: 2, index: ++o });
|
347
|
+
r.append(p[d], H());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (r.nodeType === 8)
|
351
351
|
if (r.data === Xt)
|
352
|
-
c.push({ type: 2, index:
|
352
|
+
c.push({ type: 2, index: o });
|
353
353
|
else {
|
354
354
|
let p = -1;
|
355
|
-
for (; (p = r.data.indexOf(
|
356
|
-
c.push({ type: 7, index:
|
355
|
+
for (; (p = r.data.indexOf($, p + 1)) !== -1; )
|
356
|
+
c.push({ type: 7, index: o }), p += $.length - 1;
|
357
357
|
}
|
358
|
-
|
358
|
+
o++;
|
359
359
|
}
|
360
360
|
}
|
361
361
|
static createElement(t, e) {
|
362
|
-
const i =
|
362
|
+
const i = E.createElement("template");
|
363
363
|
return i.innerHTML = t, i;
|
364
364
|
}
|
365
365
|
}
|
366
366
|
function U(s, t, e = s, i) {
|
367
|
-
var
|
368
|
-
if (t ===
|
367
|
+
var n, a;
|
368
|
+
if (t === P)
|
369
369
|
return t;
|
370
|
-
let r = i !== void 0 ? (
|
371
|
-
const
|
372
|
-
return (r == null ? void 0 : r.constructor) !==
|
370
|
+
let r = i !== void 0 ? (n = e._$Co) == null ? void 0 : n[i] : e._$Cl;
|
371
|
+
const o = I(t) ? void 0 : t._$litDirective$;
|
372
|
+
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = U(s, r._$AS(s, t.values), r, i)), t;
|
373
373
|
}
|
374
374
|
class Pe {
|
375
375
|
constructor(t, e) {
|
@@ -382,17 +382,17 @@ class Pe {
|
|
382
382
|
return this._$AM._$AU;
|
383
383
|
}
|
384
384
|
u(t) {
|
385
|
-
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ??
|
386
|
-
|
387
|
-
let
|
385
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? E).importNode(e, !0);
|
386
|
+
S.currentNode = r;
|
387
|
+
let o = S.nextNode(), n = 0, a = 0, c = i[0];
|
388
388
|
for (; c !== void 0; ) {
|
389
|
-
if (
|
389
|
+
if (n === c.index) {
|
390
390
|
let h;
|
391
|
-
c.type === 2 ? h = new
|
391
|
+
c.type === 2 ? h = new B(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new Ue(o, this, t)), this._$AV.push(h), c = i[++a];
|
392
392
|
}
|
393
|
-
|
393
|
+
n !== (c == null ? void 0 : c.index) && (o = S.nextNode(), n++);
|
394
394
|
}
|
395
|
-
return
|
395
|
+
return S.currentNode = E, r;
|
396
396
|
}
|
397
397
|
p(t) {
|
398
398
|
let e = 0;
|
@@ -400,7 +400,7 @@ class Pe {
|
|
400
400
|
i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
401
401
|
}
|
402
402
|
}
|
403
|
-
class
|
403
|
+
class B {
|
404
404
|
get _$AU() {
|
405
405
|
var t;
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -420,7 +420,7 @@ class D {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = U(this, t, e),
|
423
|
+
t = U(this, t, e), I(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ce(t) ? this.k(t) : this._(t);
|
424
424
|
}
|
425
425
|
S(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,28 +429,28 @@ class D {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.S(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !== u &&
|
432
|
+
this._$AH !== u && I(this._$AH) ? this._$AA.nextSibling.data = t : this.T(E.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
$(t) {
|
435
|
-
var
|
436
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
437
|
-
if (((
|
435
|
+
var o;
|
436
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = D.createElement(te(i.h, i.h[0]), this.options)), i);
|
437
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === r)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
440
|
-
const
|
441
|
-
|
440
|
+
const n = new Pe(r, this), a = n.u(this.options);
|
441
|
+
n.p(e), this.T(a), this._$AH = n;
|
442
442
|
}
|
443
443
|
}
|
444
444
|
_$AC(t) {
|
445
445
|
let e = jt.get(t.strings);
|
446
|
-
return e === void 0 && jt.set(t.strings, e = new
|
446
|
+
return e === void 0 && jt.set(t.strings, e = new D(t)), e;
|
447
447
|
}
|
448
448
|
k(t) {
|
449
449
|
Jt(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
451
|
let i, r = 0;
|
452
|
-
for (const
|
453
|
-
r === e.length ? e.push(i = new
|
452
|
+
for (const o of t)
|
453
|
+
r === e.length ? e.push(i = new B(this.S(H()), this.S(H()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
454
454
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
455
455
|
}
|
456
456
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -472,21 +472,21 @@ class Q {
|
|
472
472
|
get _$AU() {
|
473
473
|
return this._$AM._$AU;
|
474
474
|
}
|
475
|
-
constructor(t, e, i, r,
|
476
|
-
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options =
|
475
|
+
constructor(t, e, i, r, o) {
|
476
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
477
477
|
}
|
478
478
|
_$AI(t, e = this, i, r) {
|
479
|
-
const
|
480
|
-
let
|
481
|
-
if (
|
482
|
-
t = U(this, t, e, 0),
|
479
|
+
const o = this.strings;
|
480
|
+
let n = !1;
|
481
|
+
if (o === void 0)
|
482
|
+
t = U(this, t, e, 0), n = !I(t) || t !== this._$AH && t !== P, n && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const a = t;
|
485
485
|
let c, h;
|
486
|
-
for (t =
|
487
|
-
h = U(this, a[i + c], e, c), h ===
|
486
|
+
for (t = o[0], c = 0; c < o.length - 1; c++)
|
487
|
+
h = U(this, a[i + c], e, c), h === P && (h = this._$AH[c]), n || (n = !I(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + o[c + 1]), this._$AH[c] = h;
|
488
488
|
}
|
489
|
-
|
489
|
+
n && !r && this.j(t);
|
490
490
|
}
|
491
491
|
j(t) {
|
492
492
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
@@ -508,22 +508,22 @@ class Te extends Q {
|
|
508
508
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class
|
512
|
-
constructor(t, e, i, r,
|
513
|
-
super(t, e, i, r,
|
511
|
+
class ke extends Q {
|
512
|
+
constructor(t, e, i, r, o) {
|
513
|
+
super(t, e, i, r, o), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t = U(this, t, e, 0) ?? u) ===
|
516
|
+
if ((t = U(this, t, e, 0) ?? u) === P)
|
517
517
|
return;
|
518
|
-
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive,
|
519
|
-
r && this.element.removeEventListener(this.name, this, i),
|
518
|
+
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || r);
|
519
|
+
r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
520
|
}
|
521
521
|
handleEvent(t) {
|
522
522
|
var e;
|
523
523
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
524
524
|
}
|
525
525
|
}
|
526
|
-
class
|
526
|
+
class Ue {
|
527
527
|
constructor(t, e, i) {
|
528
528
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
529
529
|
}
|
@@ -534,14 +534,14 @@ class ke {
|
|
534
534
|
U(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const st =
|
538
|
-
st == null || st(
|
537
|
+
const st = N.litHtmlPolyfillSupport;
|
538
|
+
st == null || st(D, B), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.1.2");
|
539
539
|
const Re = (s, t, e) => {
|
540
540
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
541
|
let r = i._$litPart$;
|
542
542
|
if (r === void 0) {
|
543
|
-
const
|
544
|
-
i._$litPart$ = r = new
|
543
|
+
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
+
i._$litPart$ = r = new B(t.insertBefore(H(), o), o, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return r._$AI(s), r;
|
547
547
|
};
|
@@ -550,7 +550,7 @@ const Re = (s, t, e) => {
|
|
550
550
|
* Copyright 2017 Google LLC
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
552
552
|
*/
|
553
|
-
let m = class extends
|
553
|
+
let m = class extends k {
|
554
554
|
constructor() {
|
555
555
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
556
556
|
}
|
@@ -572,7 +572,7 @@ let m = class extends T {
|
|
572
572
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
573
|
}
|
574
574
|
render() {
|
575
|
-
return
|
575
|
+
return P;
|
576
576
|
}
|
577
577
|
};
|
578
578
|
var Zt;
|
@@ -600,7 +600,7 @@ var lt = function(s, t) {
|
|
600
600
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
601
601
|
}, lt(s, t);
|
602
602
|
};
|
603
|
-
function
|
603
|
+
function z(s, t) {
|
604
604
|
if (typeof t != "function" && t !== null)
|
605
605
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
606
606
|
lt(s, t);
|
@@ -625,29 +625,29 @@ function G(s, t) {
|
|
625
625
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
626
626
|
if (!e)
|
627
627
|
return s;
|
628
|
-
var i = e.call(s), r,
|
628
|
+
var i = e.call(s), r, o = [], n;
|
629
629
|
try {
|
630
630
|
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; )
|
631
|
-
|
631
|
+
o.push(r.value);
|
632
632
|
} catch (a) {
|
633
|
-
|
633
|
+
n = { error: a };
|
634
634
|
} finally {
|
635
635
|
try {
|
636
636
|
r && !r.done && (e = i.return) && e.call(i);
|
637
637
|
} finally {
|
638
|
-
if (
|
639
|
-
throw
|
638
|
+
if (n)
|
639
|
+
throw n.error;
|
640
640
|
}
|
641
641
|
}
|
642
|
-
return
|
642
|
+
return o;
|
643
643
|
}
|
644
644
|
function X(s, t, e) {
|
645
645
|
if (e || arguments.length === 2)
|
646
|
-
for (var i = 0, r = t.length,
|
647
|
-
(
|
648
|
-
return s.concat(
|
646
|
+
for (var i = 0, r = t.length, o; i < r; i++)
|
647
|
+
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
648
|
+
return s.concat(o || Array.prototype.slice.call(t));
|
649
649
|
}
|
650
|
-
function
|
650
|
+
function b(s) {
|
651
651
|
return typeof s == "function";
|
652
652
|
}
|
653
653
|
function ie(s) {
|
@@ -656,7 +656,7 @@ function ie(s) {
|
|
656
656
|
}, e = s(t);
|
657
657
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
658
658
|
}
|
659
|
-
var
|
659
|
+
var ot = ie(function(s) {
|
660
660
|
return function(e) {
|
661
661
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
662
662
|
` + e.map(function(i, r) {
|
@@ -676,14 +676,14 @@ var tt = function() {
|
|
676
676
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
677
677
|
}
|
678
678
|
return s.prototype.unsubscribe = function() {
|
679
|
-
var t, e, i, r,
|
679
|
+
var t, e, i, r, o;
|
680
680
|
if (!this.closed) {
|
681
681
|
this.closed = !0;
|
682
|
-
var
|
683
|
-
if (
|
684
|
-
if (this._parentage = null, Array.isArray(
|
682
|
+
var n = this._parentage;
|
683
|
+
if (n)
|
684
|
+
if (this._parentage = null, Array.isArray(n))
|
685
685
|
try {
|
686
|
-
for (var a = pt(
|
686
|
+
for (var a = pt(n), c = a.next(); !c.done; c = a.next()) {
|
687
687
|
var h = c.value;
|
688
688
|
h.remove(this);
|
689
689
|
}
|
@@ -698,24 +698,24 @@ var tt = function() {
|
|
698
698
|
}
|
699
699
|
}
|
700
700
|
else
|
701
|
-
|
701
|
+
n.remove(this);
|
702
702
|
var l = this.initialTeardown;
|
703
|
-
if (
|
703
|
+
if (b(l))
|
704
704
|
try {
|
705
705
|
l();
|
706
706
|
} catch (v) {
|
707
|
-
|
707
|
+
o = v instanceof ot ? v.errors : [v];
|
708
708
|
}
|
709
709
|
var p = this._finalizers;
|
710
710
|
if (p) {
|
711
711
|
this._finalizers = null;
|
712
712
|
try {
|
713
713
|
for (var d = pt(p), f = d.next(); !f.done; f = d.next()) {
|
714
|
-
var
|
714
|
+
var T = f.value;
|
715
715
|
try {
|
716
|
-
Mt(
|
716
|
+
Mt(T);
|
717
717
|
} catch (v) {
|
718
|
-
|
718
|
+
o = o ?? [], v instanceof ot ? o = X(X([], G(o)), G(v.errors)) : o.push(v);
|
719
719
|
}
|
720
720
|
}
|
721
721
|
} catch (v) {
|
@@ -729,8 +729,8 @@ var tt = function() {
|
|
729
729
|
}
|
730
730
|
}
|
731
731
|
}
|
732
|
-
if (
|
733
|
-
throw new
|
732
|
+
if (o)
|
733
|
+
throw new ot(o);
|
734
734
|
}
|
735
735
|
}, s.prototype.add = function(t) {
|
736
736
|
var e;
|
@@ -763,12 +763,12 @@ var tt = function() {
|
|
763
763
|
}(), s;
|
764
764
|
}(), se = tt.EMPTY;
|
765
765
|
function re(s) {
|
766
|
-
return s instanceof tt || s && "closed" in s &&
|
766
|
+
return s instanceof tt || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
767
767
|
}
|
768
768
|
function Mt(s) {
|
769
|
-
|
769
|
+
b(s) ? s() : s.unsubscribe();
|
770
770
|
}
|
771
|
-
var
|
771
|
+
var oe = {
|
772
772
|
onUnhandledError: null,
|
773
773
|
onStoppedNotification: null,
|
774
774
|
Promise: void 0,
|
@@ -797,8 +797,8 @@ function Nt() {
|
|
797
797
|
function q(s) {
|
798
798
|
s();
|
799
799
|
}
|
800
|
-
var
|
801
|
-
|
800
|
+
var ne = function(s) {
|
801
|
+
z(t, s);
|
802
802
|
function t(e) {
|
803
803
|
var i = s.call(this) || this;
|
804
804
|
return i.isStopped = !1, e ? (i.destination = e, re(e) && e.add(i)) : i.destination = He, i;
|
@@ -829,7 +829,7 @@ var oe = function(s) {
|
|
829
829
|
}
|
830
830
|
}, t;
|
831
831
|
}(tt), Me = Function.prototype.bind;
|
832
|
-
function
|
832
|
+
function nt(s, t) {
|
833
833
|
return Me.call(s, t);
|
834
834
|
}
|
835
835
|
var Ne = function() {
|
@@ -842,7 +842,7 @@ var Ne = function() {
|
|
842
842
|
try {
|
843
843
|
e.next(t);
|
844
844
|
} catch (i) {
|
845
|
-
|
845
|
+
F(i);
|
846
846
|
}
|
847
847
|
}, s.prototype.error = function(t) {
|
848
848
|
var e = this.partialObserver;
|
@@ -850,44 +850,44 @@ var Ne = function() {
|
|
850
850
|
try {
|
851
851
|
e.error(t);
|
852
852
|
} catch (i) {
|
853
|
-
|
853
|
+
F(i);
|
854
854
|
}
|
855
855
|
else
|
856
|
-
|
856
|
+
F(t);
|
857
857
|
}, s.prototype.complete = function() {
|
858
858
|
var t = this.partialObserver;
|
859
859
|
if (t.complete)
|
860
860
|
try {
|
861
861
|
t.complete();
|
862
862
|
} catch (e) {
|
863
|
-
|
863
|
+
F(e);
|
864
864
|
}
|
865
865
|
}, s;
|
866
866
|
}(), ft = function(s) {
|
867
|
-
|
867
|
+
z(t, s);
|
868
868
|
function t(e, i, r) {
|
869
|
-
var
|
870
|
-
if (
|
871
|
-
|
869
|
+
var o = s.call(this) || this, n;
|
870
|
+
if (b(e) || !e)
|
871
|
+
n = {
|
872
872
|
next: e ?? void 0,
|
873
873
|
error: i ?? void 0,
|
874
874
|
complete: r ?? void 0
|
875
875
|
};
|
876
876
|
else {
|
877
877
|
var a;
|
878
|
-
|
879
|
-
return
|
880
|
-
},
|
881
|
-
next: e.next &&
|
882
|
-
error: e.error &&
|
883
|
-
complete: e.complete &&
|
884
|
-
}) :
|
878
|
+
o && oe.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
879
|
+
return o.unsubscribe();
|
880
|
+
}, n = {
|
881
|
+
next: e.next && nt(e.next, a),
|
882
|
+
error: e.error && nt(e.error, a),
|
883
|
+
complete: e.complete && nt(e.complete, a)
|
884
|
+
}) : n = e;
|
885
885
|
}
|
886
|
-
return
|
886
|
+
return o.destination = new Ne(n), o;
|
887
887
|
}
|
888
888
|
return t;
|
889
|
-
}(
|
890
|
-
function
|
889
|
+
}(ne);
|
890
|
+
function F(s) {
|
891
891
|
je(s);
|
892
892
|
}
|
893
893
|
function Le(s) {
|
@@ -919,11 +919,11 @@ var Lt = function() {
|
|
919
919
|
var e = new s();
|
920
920
|
return e.source = this, e.operator = t, e;
|
921
921
|
}, s.prototype.subscribe = function(t, e, i) {
|
922
|
-
var r = this,
|
922
|
+
var r = this, o = Ve(t) ? t : new ft(t, e, i);
|
923
923
|
return q(function() {
|
924
|
-
var
|
925
|
-
|
926
|
-
}),
|
924
|
+
var n = r, a = n.operator, c = n.source;
|
925
|
+
o.add(a ? a.call(o, c) : c ? r._subscribe(o) : r._trySubscribe(o));
|
926
|
+
}), o;
|
927
927
|
}, s.prototype._trySubscribe = function(t) {
|
928
928
|
try {
|
929
929
|
return this._subscribe(t);
|
@@ -932,19 +932,19 @@ var Lt = function() {
|
|
932
932
|
}
|
933
933
|
}, s.prototype.forEach = function(t, e) {
|
934
934
|
var i = this;
|
935
|
-
return e = Ht(e), new e(function(r,
|
936
|
-
var
|
935
|
+
return e = Ht(e), new e(function(r, o) {
|
936
|
+
var n = new ft({
|
937
937
|
next: function(a) {
|
938
938
|
try {
|
939
939
|
t(a);
|
940
940
|
} catch (c) {
|
941
|
-
|
941
|
+
o(c), n.unsubscribe();
|
942
942
|
}
|
943
943
|
},
|
944
|
-
error:
|
944
|
+
error: o,
|
945
945
|
complete: r
|
946
946
|
});
|
947
|
-
i.subscribe(
|
947
|
+
i.subscribe(n);
|
948
948
|
});
|
949
949
|
}, s.prototype._subscribe = function(t) {
|
950
950
|
var e;
|
@@ -958,13 +958,13 @@ var Lt = function() {
|
|
958
958
|
}, s.prototype.toPromise = function(t) {
|
959
959
|
var e = this;
|
960
960
|
return t = Ht(t), new t(function(i, r) {
|
961
|
-
var
|
962
|
-
e.subscribe(function(
|
963
|
-
return
|
964
|
-
}, function(
|
965
|
-
return r(
|
961
|
+
var o;
|
962
|
+
e.subscribe(function(n) {
|
963
|
+
return o = n;
|
964
|
+
}, function(n) {
|
965
|
+
return r(n);
|
966
966
|
}, function() {
|
967
|
-
return i(
|
967
|
+
return i(o);
|
968
968
|
});
|
969
969
|
});
|
970
970
|
}, s.create = function(t) {
|
@@ -973,20 +973,20 @@ var Lt = function() {
|
|
973
973
|
}();
|
974
974
|
function Ht(s) {
|
975
975
|
var t;
|
976
|
-
return (t = s ??
|
976
|
+
return (t = s ?? oe.Promise) !== null && t !== void 0 ? t : Promise;
|
977
977
|
}
|
978
978
|
function ze(s) {
|
979
|
-
return s &&
|
979
|
+
return s && b(s.next) && b(s.error) && b(s.complete);
|
980
980
|
}
|
981
981
|
function Ve(s) {
|
982
|
-
return s && s instanceof
|
982
|
+
return s && s instanceof ne || ze(s) && re(s);
|
983
983
|
}
|
984
984
|
var We = ie(function(s) {
|
985
985
|
return function() {
|
986
986
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
987
987
|
};
|
988
988
|
}), yt = function(s) {
|
989
|
-
|
989
|
+
z(t, s);
|
990
990
|
function t() {
|
991
991
|
var e = s.call(this) || this;
|
992
992
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
@@ -1000,11 +1000,11 @@ var We = ie(function(s) {
|
|
1000
1000
|
}, t.prototype.next = function(e) {
|
1001
1001
|
var i = this;
|
1002
1002
|
q(function() {
|
1003
|
-
var r,
|
1003
|
+
var r, o;
|
1004
1004
|
if (i._throwIfClosed(), !i.isStopped) {
|
1005
1005
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
1006
1006
|
try {
|
1007
|
-
for (var
|
1007
|
+
for (var n = pt(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
1008
1008
|
var c = a.value;
|
1009
1009
|
c.next(e);
|
1010
1010
|
}
|
@@ -1012,7 +1012,7 @@ var We = ie(function(s) {
|
|
1012
1012
|
r = { error: h };
|
1013
1013
|
} finally {
|
1014
1014
|
try {
|
1015
|
-
a && !a.done && (
|
1015
|
+
a && !a.done && (o = n.return) && o.call(n);
|
1016
1016
|
} finally {
|
1017
1017
|
if (r)
|
1018
1018
|
throw r.error;
|
@@ -1052,13 +1052,13 @@ var We = ie(function(s) {
|
|
1052
1052
|
}, t.prototype._subscribe = function(e) {
|
1053
1053
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
1054
1054
|
}, t.prototype._innerSubscribe = function(e) {
|
1055
|
-
var i = this, r = this,
|
1056
|
-
return
|
1055
|
+
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
1056
|
+
return o || n ? se : (this.currentObservers = null, a.push(e), new tt(function() {
|
1057
1057
|
i.currentObservers = null, ut(a, e);
|
1058
1058
|
}));
|
1059
1059
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
1060
|
-
var i = this, r = i.hasError,
|
1061
|
-
r ? e.error(
|
1060
|
+
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
1061
|
+
r ? e.error(o) : n && e.complete();
|
1062
1062
|
}, t.prototype.asObservable = function() {
|
1063
1063
|
var e = new Lt();
|
1064
1064
|
return e.source = this, e;
|
@@ -1066,7 +1066,7 @@ var We = ie(function(s) {
|
|
1066
1066
|
return new It(e, i);
|
1067
1067
|
}, t;
|
1068
1068
|
}(Lt), It = function(s) {
|
1069
|
-
|
1069
|
+
z(t, s);
|
1070
1070
|
function t(e, i) {
|
1071
1071
|
var r = s.call(this) || this;
|
1072
1072
|
return r.destination = e, r.source = i, r;
|
@@ -1085,7 +1085,7 @@ var We = ie(function(s) {
|
|
1085
1085
|
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : se;
|
1086
1086
|
}, t;
|
1087
1087
|
}(yt), Fe = function(s) {
|
1088
|
-
|
1088
|
+
z(t, s);
|
1089
1089
|
function t(e) {
|
1090
1090
|
var i = s.call(this) || this;
|
1091
1091
|
return i._value = e, i;
|
@@ -1100,10 +1100,10 @@ var We = ie(function(s) {
|
|
1100
1100
|
var i = s.prototype._subscribe.call(this, e);
|
1101
1101
|
return !i.closed && e.next(this._value), i;
|
1102
1102
|
}, t.prototype.getValue = function() {
|
1103
|
-
var e = this, i = e.hasError, r = e.thrownError,
|
1103
|
+
var e = this, i = e.hasError, r = e.thrownError, o = e._value;
|
1104
1104
|
if (i)
|
1105
1105
|
throw r;
|
1106
|
-
return this._throwIfClosed(),
|
1106
|
+
return this._throwIfClosed(), o;
|
1107
1107
|
}, t.prototype.next = function(e) {
|
1108
1108
|
s.prototype.next.call(this, this._value = e);
|
1109
1109
|
}, t;
|
@@ -1115,29 +1115,29 @@ var We = ie(function(s) {
|
|
1115
1115
|
*/
|
1116
1116
|
const Ye = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt }, qe = (s = Ye, t, e) => {
|
1117
1117
|
const { kind: i, metadata: r } = e;
|
1118
|
-
let
|
1119
|
-
if (
|
1120
|
-
const { name:
|
1118
|
+
let o = globalThis.litPropertyMetadata.get(r);
|
1119
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), o.set(e.name, s), i === "accessor") {
|
1120
|
+
const { name: n } = e;
|
1121
1121
|
return { set(a) {
|
1122
1122
|
const c = t.get.call(this);
|
1123
|
-
t.set.call(this, a), this.requestUpdate(
|
1123
|
+
t.set.call(this, a), this.requestUpdate(n, c, s);
|
1124
1124
|
}, init(a) {
|
1125
|
-
return a !== void 0 && this.P(
|
1125
|
+
return a !== void 0 && this.P(n, void 0, s), a;
|
1126
1126
|
} };
|
1127
1127
|
}
|
1128
1128
|
if (i === "setter") {
|
1129
|
-
const { name:
|
1129
|
+
const { name: n } = e;
|
1130
1130
|
return function(a) {
|
1131
|
-
const c = this[
|
1132
|
-
t.call(this, a), this.requestUpdate(
|
1131
|
+
const c = this[n];
|
1132
|
+
t.call(this, a), this.requestUpdate(n, c, s);
|
1133
1133
|
};
|
1134
1134
|
}
|
1135
1135
|
throw Error("Unsupported decorator location: " + i);
|
1136
1136
|
};
|
1137
1137
|
function g(s) {
|
1138
|
-
return (t, e) => typeof e == "object" ? qe(s, t, e) : ((i, r,
|
1139
|
-
const
|
1140
|
-
return r.constructor.createProperty(
|
1138
|
+
return (t, e) => typeof e == "object" ? qe(s, t, e) : ((i, r, o) => {
|
1139
|
+
const n = r.hasOwnProperty(o);
|
1140
|
+
return r.constructor.createProperty(o, n ? { ...i, wrapped: !0 } : i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
1141
1141
|
})(s, t, e);
|
1142
1142
|
}
|
1143
1143
|
/**
|
@@ -1145,12 +1145,12 @@ function g(s) {
|
|
1145
1145
|
* Copyright 2017 Google LLC
|
1146
1146
|
* SPDX-License-Identifier: BSD-3-Clause
|
1147
1147
|
*/
|
1148
|
-
function
|
1148
|
+
function R(s) {
|
1149
1149
|
return g({ ...s, state: !0, attribute: !1 });
|
1150
1150
|
}
|
1151
1151
|
var Ze = Object.defineProperty, Ke = Object.getOwnPropertyDescriptor, Ge = (s, t, e, i) => {
|
1152
|
-
for (var r = i > 1 ? void 0 : i ? Ke(t, e) : t,
|
1153
|
-
(
|
1152
|
+
for (var r = i > 1 ? void 0 : i ? Ke(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1153
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1154
1154
|
return i && r && Ze(t, e, r), r;
|
1155
1155
|
};
|
1156
1156
|
class bt extends m {
|
@@ -1166,7 +1166,7 @@ class bt extends m {
|
|
1166
1166
|
}
|
1167
1167
|
}
|
1168
1168
|
bt.styles = [
|
1169
|
-
|
1169
|
+
O`
|
1170
1170
|
:host {
|
1171
1171
|
position: fixed;
|
1172
1172
|
display: flex;
|
@@ -1220,13 +1220,13 @@ const Xe = (s) => s.strings === void 0;
|
|
1220
1220
|
* Copyright 2017 Google LLC
|
1221
1221
|
* SPDX-License-Identifier: BSD-3-Clause
|
1222
1222
|
*/
|
1223
|
-
const
|
1223
|
+
const L = (s, t) => {
|
1224
1224
|
var i;
|
1225
1225
|
const e = s._$AN;
|
1226
1226
|
if (e === void 0)
|
1227
1227
|
return !1;
|
1228
1228
|
for (const r of e)
|
1229
|
-
(i = r._$AO) == null || i.call(r, t, !1),
|
1229
|
+
(i = r._$AO) == null || i.call(r, t, !1), L(r, t);
|
1230
1230
|
return !0;
|
1231
1231
|
}, J = (s) => {
|
1232
1232
|
let t, e;
|
@@ -1253,12 +1253,12 @@ function Qe(s, t = !1, e = 0) {
|
|
1253
1253
|
if (r !== void 0 && r.size !== 0)
|
1254
1254
|
if (t)
|
1255
1255
|
if (Array.isArray(i))
|
1256
|
-
for (let
|
1257
|
-
|
1256
|
+
for (let o = e; o < i.length; o++)
|
1257
|
+
L(i[o], !1), J(i[o]);
|
1258
1258
|
else
|
1259
|
-
i != null && (
|
1259
|
+
i != null && (L(i, !1), J(i));
|
1260
1260
|
else
|
1261
|
-
|
1261
|
+
L(this, s);
|
1262
1262
|
}
|
1263
1263
|
const ti = (s) => {
|
1264
1264
|
s.type == $t.CHILD && (s._$AP ?? (s._$AP = Qe), s._$AQ ?? (s._$AQ = Je));
|
@@ -1272,7 +1272,7 @@ class he extends ae {
|
|
1272
1272
|
}
|
1273
1273
|
_$AO(t, e = !0) {
|
1274
1274
|
var i, r;
|
1275
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (
|
1275
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (L(this, t), J(this));
|
1276
1276
|
}
|
1277
1277
|
setValue(t) {
|
1278
1278
|
if (Xe(this._$Ct))
|
@@ -1312,7 +1312,7 @@ const at = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new WeakSet(), zt = (
|
|
1312
1312
|
const i = Wt(s, t);
|
1313
1313
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1314
1314
|
} }, si = { duration: 333, easing: "ease-in-out" }, ri = ["left", "top", "width", "height", "opacity", "color", "background"], Ft = /* @__PURE__ */ new WeakMap();
|
1315
|
-
class
|
1315
|
+
class oi extends he {
|
1316
1316
|
constructor(t) {
|
1317
1317
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === $t.CHILD)
|
1318
1318
|
throw Error("The `animate` directive must be used in attribute position.");
|
@@ -1341,7 +1341,7 @@ class ni extends he {
|
|
1341
1341
|
update(t, [e]) {
|
1342
1342
|
var r;
|
1343
1343
|
const i = this.u === void 0;
|
1344
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((
|
1344
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element, Ft.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1345
1345
|
}
|
1346
1346
|
p(t) {
|
1347
1347
|
t = t ?? {};
|
@@ -1351,15 +1351,15 @@ class ni extends he {
|
|
1351
1351
|
m() {
|
1352
1352
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1353
1353
|
return this.options.properties.forEach((r) => {
|
1354
|
-
const
|
1355
|
-
t[r] = isNaN(
|
1354
|
+
const o = e[r] ?? (ct[r] ? void 0 : i[r]), n = Number(o);
|
1355
|
+
t[r] = isNaN(n) ? o + "" : n;
|
1356
1356
|
}), t;
|
1357
1357
|
}
|
1358
1358
|
v() {
|
1359
1359
|
let t, e = !0;
|
1360
1360
|
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
1361
1361
|
if (Array.isArray(i)) {
|
1362
|
-
if (Array.isArray(r) && r.length === i.length && i.every((
|
1362
|
+
if (Array.isArray(r) && r.length === i.length && i.every((o, n) => o === r[n]))
|
1363
1363
|
return !1;
|
1364
1364
|
} else if (r === i)
|
1365
1365
|
return !1;
|
@@ -1376,14 +1376,14 @@ class ni extends he {
|
|
1376
1376
|
this.prepare(), await zt;
|
1377
1377
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1378
1378
|
if (this.A !== void 0) {
|
1379
|
-
const { from:
|
1380
|
-
this.log("measured", [this.A, r,
|
1379
|
+
const { from: o, to: n } = this.N(this.A, r, e);
|
1380
|
+
this.log("measured", [this.A, r, o, n]), t = this.calculateKeyframes(o, n);
|
1381
1381
|
} else {
|
1382
|
-
const
|
1383
|
-
if (
|
1382
|
+
const o = at.get(this.options.inId);
|
1383
|
+
if (o) {
|
1384
1384
|
at.delete(this.options.inId);
|
1385
|
-
const { from:
|
1386
|
-
t = this.calculateKeyframes(
|
1385
|
+
const { from: n, to: a } = this.N(o, r, e);
|
1386
|
+
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Dt++, t.forEach((c) => c.zIndex = Dt);
|
1387
1387
|
} else
|
1388
1388
|
this.options.in && (t = [...this.options.in, {}]);
|
1389
1389
|
}
|
@@ -1407,8 +1407,8 @@ class ni extends he {
|
|
1407
1407
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1408
1408
|
const r = this.m();
|
1409
1409
|
this.log("stabilizing out");
|
1410
|
-
const
|
1411
|
-
getComputedStyle(this.element).position !== "static" ||
|
1410
|
+
const o = this.A.left - r.left, n = this.A.top - r.top;
|
1411
|
+
getComputedStyle(this.element).position !== "static" || o === 0 && n === 0 || (this.element.style.position = "relative"), o !== 0 && (this.element.style.left = o + "px"), n !== 0 && (this.element.style.top = n + "px");
|
1412
1412
|
}
|
1413
1413
|
}
|
1414
1414
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1446,14 +1446,14 @@ class ni extends he {
|
|
1446
1446
|
N(t, e, i) {
|
1447
1447
|
t = { ...t }, e = { ...e };
|
1448
1448
|
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1449
|
-
let
|
1449
|
+
let o = 1, n = 1;
|
1450
1450
|
return r.length > 0 && (r.forEach((a) => {
|
1451
|
-
a.width && (
|
1452
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1451
|
+
a.width && (o /= a.width), a.height && (n /= a.height);
|
1452
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = o * t.left, e.left = o * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = n * t.top, e.top = n * e.top)), { from: t, to: e };
|
1453
1453
|
}
|
1454
1454
|
calculateKeyframes(t, e, i = !1) {
|
1455
|
-
const r = {},
|
1456
|
-
let
|
1455
|
+
const r = {}, o = {};
|
1456
|
+
let n = !1;
|
1457
1457
|
const a = {};
|
1458
1458
|
for (const c in e) {
|
1459
1459
|
const h = t[c], l = e[c];
|
@@ -1462,11 +1462,11 @@ class ni extends he {
|
|
1462
1462
|
if (h === void 0 || l === void 0)
|
1463
1463
|
continue;
|
1464
1464
|
const d = p(h, l);
|
1465
|
-
d.transform !== void 0 && (a[c] = d.value,
|
1465
|
+
d.transform !== void 0 && (a[c] = d.value, n = !0, r.transform = `${r.transform ?? ""} ${d.transform}`, d.overrideFrom !== void 0 && Object.assign(r, d.overrideFrom));
|
1466
1466
|
} else
|
1467
|
-
h !== l && h !== void 0 && l !== void 0 && (
|
1467
|
+
h !== l && h !== void 0 && l !== void 0 && (n = !0, r[c] = h, o[c] = l);
|
1468
1468
|
}
|
1469
|
-
return r.transformOrigin =
|
1469
|
+
return r.transformOrigin = o.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, n ? [r, o] : void 0;
|
1470
1470
|
}
|
1471
1471
|
async animate(t, e = this.options.keyframeOptions) {
|
1472
1472
|
this.start(), this.frames = t;
|
@@ -1491,7 +1491,7 @@ class ni extends he {
|
|
1491
1491
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1492
1492
|
}
|
1493
1493
|
}
|
1494
|
-
const
|
1494
|
+
const ni = _t(oi), ai = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
1495
1495
|
/**
|
1496
1496
|
* @license
|
1497
1497
|
* Copyright 2018 Google LLC
|
@@ -1509,37 +1509,53 @@ const Yt = _t(class extends ae {
|
|
1509
1509
|
update(s, [t]) {
|
1510
1510
|
var i, r;
|
1511
1511
|
if (this.st === void 0) {
|
1512
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
1513
|
-
for (const
|
1514
|
-
t[
|
1512
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
1513
|
+
for (const o in t)
|
1514
|
+
t[o] && !((i = this.nt) != null && i.has(o)) && this.st.add(o);
|
1515
1515
|
return this.render(t);
|
1516
1516
|
}
|
1517
1517
|
const e = s.element.classList;
|
1518
|
-
for (const
|
1519
|
-
|
1520
|
-
for (const
|
1521
|
-
const
|
1522
|
-
|
1518
|
+
for (const o of this.st)
|
1519
|
+
o in t || (e.remove(o), this.st.delete(o));
|
1520
|
+
for (const o in t) {
|
1521
|
+
const n = !!t[o];
|
1522
|
+
n === this.st.has(o) || (r = this.nt) != null && r.has(o) || (n ? (e.add(o), this.st.add(o)) : (e.remove(o), this.st.delete(o)));
|
1523
1523
|
}
|
1524
|
-
return
|
1524
|
+
return P;
|
1525
1525
|
}
|
1526
|
-
}),
|
1526
|
+
}), y = (s, t, e) => {
|
1527
1527
|
s && e.style.setProperty(t, s);
|
1528
1528
|
}, le = (s, t) => {
|
1529
|
-
var e, i, r, n;
|
1530
|
-
|
1529
|
+
var e, i, r, o, n, a, c, h, l;
|
1530
|
+
y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), y(
|
1531
1531
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1532
1532
|
"--text-on-primary-background",
|
1533
1533
|
t
|
1534
|
-
),
|
1534
|
+
), y(
|
1535
1535
|
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
1536
1536
|
"--secondary-background",
|
1537
1537
|
t
|
1538
|
-
),
|
1539
|
-
(
|
1538
|
+
), y(
|
1539
|
+
(o = s.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
1540
1540
|
"--text-on-secondary-background",
|
1541
1541
|
t
|
1542
|
-
)
|
1542
|
+
), y(
|
1543
|
+
(n = s.colors) == null ? void 0 : n.interactiveDestructiveBackground,
|
1544
|
+
"--destructive-color",
|
1545
|
+
t
|
1546
|
+
), y(
|
1547
|
+
(a = s.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
1548
|
+
"--text-on-destructive-color",
|
1549
|
+
t
|
1550
|
+
), y(
|
1551
|
+
(c = s.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
1552
|
+
"--interactive-primary-background",
|
1553
|
+
t
|
1554
|
+
), y(
|
1555
|
+
(h = s.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
1556
|
+
"--interactive-text-on-primary-background",
|
1557
|
+
t
|
1558
|
+
), y((l = s.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
1543
1559
|
};
|
1544
1560
|
/**
|
1545
1561
|
* @license
|
@@ -1577,12 +1593,12 @@ const ht = /* @__PURE__ */ new WeakMap(), ue = _t(class extends he {
|
|
1577
1593
|
this.rt(this.ct);
|
1578
1594
|
}
|
1579
1595
|
});
|
1580
|
-
var hi = Object.defineProperty, li = Object.getOwnPropertyDescriptor,
|
1581
|
-
for (var r = i > 1 ? void 0 : i ? li(t, e) : t,
|
1582
|
-
(
|
1596
|
+
var hi = Object.defineProperty, li = Object.getOwnPropertyDescriptor, V = (s, t, e, i) => {
|
1597
|
+
for (var r = i > 1 ? void 0 : i ? li(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1598
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1583
1599
|
return i && r && hi(t, e, r), r;
|
1584
1600
|
};
|
1585
|
-
class
|
1601
|
+
class w extends m {
|
1586
1602
|
constructor() {
|
1587
1603
|
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = pe(), this.widgetActive$ = new Fe(!1), this.componentIsDestroyed$ = new yt();
|
1588
1604
|
}
|
@@ -1610,15 +1626,15 @@ class _ extends m {
|
|
1610
1626
|
var a, c, h;
|
1611
1627
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1612
1628
|
if (e)
|
1613
|
-
return
|
1629
|
+
return C` <img src=${e} class="trigger-icon" alt="" /> `;
|
1614
1630
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1615
1631
|
if (!i)
|
1616
1632
|
return u;
|
1617
|
-
const r = async (l) => ai, { type:
|
1618
|
-
switch (
|
1633
|
+
const r = async (l) => ai, { type: o, content: n } = i;
|
1634
|
+
switch (o) {
|
1619
1635
|
case "Telia": {
|
1620
1636
|
const l = await r();
|
1621
|
-
return l ?
|
1637
|
+
return l ? C`<telia-icon
|
1622
1638
|
class="trigger-icon"
|
1623
1639
|
svg=${l.svg}
|
1624
1640
|
size="lg"
|
@@ -1636,19 +1652,19 @@ class _ extends m {
|
|
1636
1652
|
}
|
1637
1653
|
render() {
|
1638
1654
|
var t, e, i, r;
|
1639
|
-
return
|
1655
|
+
return C`<div
|
1640
1656
|
class=${Yt({
|
1641
1657
|
"trigger-container": !0,
|
1642
1658
|
hidden: !this.triggerVisible
|
1643
1659
|
})}
|
1644
1660
|
${ue(this.containerRef)}
|
1645
1661
|
>
|
1646
|
-
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ?
|
1662
|
+
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? C`
|
1647
1663
|
<button
|
1648
1664
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1649
1665
|
class="trigger-label"
|
1650
1666
|
@click=${this.toggleActive}
|
1651
|
-
${
|
1667
|
+
${ni({
|
1652
1668
|
keyframeOptions: {},
|
1653
1669
|
in: ii,
|
1654
1670
|
stabilizeOut: !0,
|
@@ -1700,15 +1716,14 @@ class _ extends m {
|
|
1700
1716
|
</div>`;
|
1701
1717
|
}
|
1702
1718
|
}
|
1703
|
-
|
1704
|
-
|
1719
|
+
w.styles = [
|
1720
|
+
O`
|
1705
1721
|
:host {
|
1706
1722
|
--voca-rem-multiplier: 0.625;
|
1707
1723
|
--trigger-label-bg: #f5e0ff;
|
1708
1724
|
--trigger-label-text-color: rgba(0, 0, 0, 0.8);
|
1709
1725
|
display: block;
|
1710
1726
|
box-sizing: border-box;
|
1711
|
-
/* font-family: var(--font-family); */
|
1712
1727
|
font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1713
1728
|
}
|
1714
1729
|
|
@@ -1734,7 +1749,10 @@ _.styles = [
|
|
1734
1749
|
width: 55px;
|
1735
1750
|
border-radius: 55px;
|
1736
1751
|
cursor: pointer;
|
1737
|
-
background-color: var(
|
1752
|
+
background-color: var(
|
1753
|
+
--interactive-primary-background,
|
1754
|
+
var(--primary-background)
|
1755
|
+
);
|
1738
1756
|
font-family: Lato;
|
1739
1757
|
text-decoration: none;
|
1740
1758
|
border: 3px dashed transparent;
|
@@ -1766,7 +1784,10 @@ _.styles = [
|
|
1766
1784
|
opacity: 1;
|
1767
1785
|
transform: rotate(0deg) scale(1);
|
1768
1786
|
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
1769
|
-
color: var(
|
1787
|
+
color: var(
|
1788
|
+
--interactive-text-on-primary-background,
|
1789
|
+
var(--text-on-primary-background)
|
1790
|
+
);
|
1770
1791
|
}
|
1771
1792
|
.trigger-close {
|
1772
1793
|
opacity: 0;
|
@@ -1782,7 +1803,10 @@ _.styles = [
|
|
1782
1803
|
align-items: center;
|
1783
1804
|
}
|
1784
1805
|
.trigger-close svg path {
|
1785
|
-
fill: var(
|
1806
|
+
fill: var(
|
1807
|
+
--interactive-text-on-primary-background,
|
1808
|
+
var(--text-on-primary-background)
|
1809
|
+
);
|
1786
1810
|
}
|
1787
1811
|
|
1788
1812
|
img {
|
@@ -1812,24 +1836,24 @@ _.styles = [
|
|
1812
1836
|
}
|
1813
1837
|
`
|
1814
1838
|
];
|
1815
|
-
|
1839
|
+
V([
|
1816
1840
|
g({ attribute: !1 })
|
1817
|
-
],
|
1818
|
-
|
1819
|
-
|
1820
|
-
],
|
1821
|
-
|
1822
|
-
|
1823
|
-
],
|
1824
|
-
|
1825
|
-
|
1826
|
-
],
|
1827
|
-
|
1828
|
-
|
1829
|
-
],
|
1830
|
-
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor,
|
1831
|
-
for (var r = i > 1 ? void 0 : i ? ui(t, e) : t,
|
1832
|
-
(
|
1841
|
+
], w.prototype, "application", 2);
|
1842
|
+
V([
|
1843
|
+
R()
|
1844
|
+
], w.prototype, "active", 2);
|
1845
|
+
V([
|
1846
|
+
R()
|
1847
|
+
], w.prototype, "triggerVisible", 2);
|
1848
|
+
V([
|
1849
|
+
R()
|
1850
|
+
], w.prototype, "loaded", 2);
|
1851
|
+
V([
|
1852
|
+
R()
|
1853
|
+
], w.prototype, "icon", 2);
|
1854
|
+
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, x = (s, t, e, i) => {
|
1855
|
+
for (var r = i > 1 ? void 0 : i ? ui(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
1856
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
1833
1857
|
return i && r && pi(t, e, r), r;
|
1834
1858
|
};
|
1835
1859
|
const de = (s) => {
|
@@ -1858,7 +1882,7 @@ const de = (s) => {
|
|
1858
1882
|
}
|
1859
1883
|
return t.styles = [
|
1860
1884
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1861
|
-
|
1885
|
+
O`
|
1862
1886
|
:host {
|
1863
1887
|
font-family: var(--font-family);
|
1864
1888
|
grid-column: span var(--width);
|
@@ -1871,29 +1895,29 @@ const de = (s) => {
|
|
1871
1895
|
box-sizing: border-box;
|
1872
1896
|
}
|
1873
1897
|
`
|
1874
|
-
],
|
1898
|
+
], x([
|
1875
1899
|
g()
|
1876
|
-
], t.prototype, "properties", 2),
|
1900
|
+
], t.prototype, "properties", 2), x([
|
1877
1901
|
g()
|
1878
|
-
], t.prototype, "context", 2),
|
1902
|
+
], t.prototype, "context", 2), x([
|
1879
1903
|
g()
|
1880
|
-
], t.prototype, "layout", 2),
|
1904
|
+
], t.prototype, "layout", 2), x([
|
1881
1905
|
g()
|
1882
|
-
], t.prototype, "name", 2),
|
1906
|
+
], t.prototype, "name", 2), x([
|
1883
1907
|
g()
|
1884
|
-
], t.prototype, "type", 2),
|
1908
|
+
], t.prototype, "type", 2), x([
|
1885
1909
|
g({ attribute: !1 })
|
1886
|
-
], t.prototype, "application", 2),
|
1910
|
+
], t.prototype, "application", 2), x([
|
1887
1911
|
g({ attribute: !1 })
|
1888
1912
|
], t.prototype, "parent", 2), t;
|
1889
1913
|
};
|
1890
1914
|
class fe extends de(m) {
|
1891
1915
|
render() {
|
1892
|
-
return
|
1916
|
+
return C`Non resolved component`;
|
1893
1917
|
}
|
1894
1918
|
}
|
1895
1919
|
fe.styles = [
|
1896
|
-
|
1920
|
+
O`
|
1897
1921
|
:host {
|
1898
1922
|
display: block;
|
1899
1923
|
}
|
@@ -1962,19 +1986,19 @@ let gi = class extends Event {
|
|
1962
1986
|
};
|
1963
1987
|
class qt extends fi {
|
1964
1988
|
constructor(t, e, i) {
|
1965
|
-
var r,
|
1966
|
-
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (
|
1967
|
-
const a =
|
1968
|
-
|
1969
|
-
}, this.onProviderRequest = (
|
1970
|
-
const a =
|
1971
|
-
if (
|
1989
|
+
var r, o;
|
1990
|
+
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
1991
|
+
const a = n.composedPath()[0];
|
1992
|
+
n.context === this.context && a !== this.host && (n.stopPropagation(), this.addCallback(n.callback, a, n.subscribe));
|
1993
|
+
}, this.onProviderRequest = (n) => {
|
1994
|
+
const a = n.composedPath()[0];
|
1995
|
+
if (n.context !== this.context || a === this.host)
|
1972
1996
|
return;
|
1973
1997
|
const c = /* @__PURE__ */ new Set();
|
1974
1998
|
for (const [h, { consumerHost: l }] of this.subscriptions)
|
1975
1999
|
c.has(h) || (c.add(h), l.dispatchEvent(new di(this.context, h, !0)));
|
1976
|
-
|
1977
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
2000
|
+
n.stopPropagation();
|
2001
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (r = this.host).addController) == null || o.call(r, this);
|
1978
2002
|
}
|
1979
2003
|
attachListeners() {
|
1980
2004
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
@@ -1997,38 +2021,38 @@ function vi({ context: s }) {
|
|
1997
2021
|
}), { get() {
|
1998
2022
|
return t.get.call(this);
|
1999
2023
|
}, set(r) {
|
2000
|
-
var
|
2001
|
-
return (
|
2024
|
+
var o;
|
2025
|
+
return (o = i.get(this)) == null || o.setValue(r), t.set.call(this, r);
|
2002
2026
|
}, init(r) {
|
2003
|
-
var
|
2004
|
-
return (
|
2027
|
+
var o;
|
2028
|
+
return (o = i.get(this)) == null || o.setValue(r), r;
|
2005
2029
|
} };
|
2006
2030
|
{
|
2007
|
-
t.constructor.addInitializer((
|
2008
|
-
i.set(
|
2031
|
+
t.constructor.addInitializer((n) => {
|
2032
|
+
i.set(n, new qt(n, { context: s }));
|
2009
2033
|
});
|
2010
2034
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
2011
|
-
let
|
2035
|
+
let o;
|
2012
2036
|
if (r === void 0) {
|
2013
|
-
const
|
2014
|
-
|
2015
|
-
return
|
2037
|
+
const n = /* @__PURE__ */ new WeakMap();
|
2038
|
+
o = { get: function() {
|
2039
|
+
return n.get(this);
|
2016
2040
|
}, set: function(a) {
|
2017
|
-
i.get(this).setValue(a),
|
2041
|
+
i.get(this).setValue(a), n.set(this, a);
|
2018
2042
|
}, configurable: !0, enumerable: !0 };
|
2019
2043
|
} else {
|
2020
|
-
const
|
2021
|
-
|
2022
|
-
i.get(this).setValue(a),
|
2044
|
+
const n = r.set;
|
2045
|
+
o = { ...r, set: function(a) {
|
2046
|
+
i.get(this).setValue(a), n == null || n.call(this, a);
|
2023
2047
|
} };
|
2024
2048
|
}
|
2025
|
-
return void Object.defineProperty(t, e,
|
2049
|
+
return void Object.defineProperty(t, e, o);
|
2026
2050
|
}
|
2027
2051
|
};
|
2028
2052
|
}
|
2029
2053
|
var mi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, bi = (s, t, e, i) => {
|
2030
|
-
for (var r = i > 1 ? void 0 : i ? yi(t, e) : t,
|
2031
|
-
(
|
2054
|
+
for (var r = i > 1 ? void 0 : i ? yi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
2055
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
2032
2056
|
return i && r && mi(t, e, r), r;
|
2033
2057
|
};
|
2034
2058
|
const $i = "application";
|
@@ -2059,12 +2083,12 @@ class At extends m {
|
|
2059
2083
|
render() {
|
2060
2084
|
var i, r;
|
2061
2085
|
const t = this.application.settings.components.conversation;
|
2062
|
-
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")),
|
2063
|
-
${ee(this.nodes, (
|
2086
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === wt.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), C`<div class="widget-container" ${ue(this.wrapperRef)}>
|
2087
|
+
${ee(this.nodes, (o) => o)}
|
2064
2088
|
</div>`;
|
2065
2089
|
}
|
2066
2090
|
}
|
2067
|
-
At.styles =
|
2091
|
+
At.styles = O`
|
2068
2092
|
:host {
|
2069
2093
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2070
2094
|
--spacing-xs: 0.2rem;
|
@@ -2080,6 +2104,7 @@ At.styles = P`
|
|
2080
2104
|
--gray-color: #f3f3f8;
|
2081
2105
|
--white-color: #fff;
|
2082
2106
|
--gray-dark-color: #a6a6a6;
|
2107
|
+
--black-border-color: #00000054;
|
2083
2108
|
|
2084
2109
|
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
2085
2110
|
--border-radius: var(--spacing-sm);
|
@@ -2156,8 +2181,6 @@ At.styles = P`
|
|
2156
2181
|
background-color: var(--primary-background);
|
2157
2182
|
padding: var(--spacing-sm);
|
2158
2183
|
border: var(--widget-border, none);
|
2159
|
-
border-left: 1px solid #00000054;
|
2160
|
-
border-right: 1px solid #00000054;
|
2161
2184
|
}
|
2162
2185
|
@keyframes slideDown {
|
2163
2186
|
from {
|
@@ -2194,11 +2217,11 @@ bi([
|
|
2194
2217
|
vi({ context: $i })
|
2195
2218
|
], At.prototype, "application", 2);
|
2196
2219
|
var _i = Object.defineProperty, wi = Object.getOwnPropertyDescriptor, xt = (s, t, e, i) => {
|
2197
|
-
for (var r = i > 1 ? void 0 : i ? wi(t, e) : t,
|
2198
|
-
(
|
2220
|
+
for (var r = i > 1 ? void 0 : i ? wi(t, e) : t, o = s.length - 1, n; o >= 0; o--)
|
2221
|
+
(n = s[o]) && (r = (i ? n(t, e, r) : n(r)) || r);
|
2199
2222
|
return i && r && _i(t, e, r), r;
|
2200
2223
|
};
|
2201
|
-
class
|
2224
|
+
class W extends m {
|
2202
2225
|
constructor() {
|
2203
2226
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2204
2227
|
}
|
@@ -2224,14 +2247,14 @@ class V extends m {
|
|
2224
2247
|
if (!this.widget || this.status !== "activated")
|
2225
2248
|
return u;
|
2226
2249
|
if (this.widget.renderStrategy === wt.Trigger) {
|
2227
|
-
const t = new
|
2250
|
+
const t = new w();
|
2228
2251
|
return t.application = this.widget, t;
|
2229
2252
|
}
|
2230
2253
|
return this.widget.render();
|
2231
2254
|
}
|
2232
2255
|
}
|
2233
|
-
|
2234
|
-
|
2256
|
+
W.styles = [
|
2257
|
+
O`
|
2235
2258
|
:host {
|
2236
2259
|
display: block;
|
2237
2260
|
}
|
@@ -2239,18 +2262,18 @@ V.styles = [
|
|
2239
2262
|
];
|
2240
2263
|
xt([
|
2241
2264
|
g({ attribute: !0 })
|
2242
|
-
],
|
2265
|
+
], W.prototype, "name", 2);
|
2243
2266
|
xt([
|
2244
|
-
|
2245
|
-
],
|
2267
|
+
R()
|
2268
|
+
], W.prototype, "widget", 2);
|
2246
2269
|
xt([
|
2247
|
-
|
2248
|
-
],
|
2270
|
+
R()
|
2271
|
+
], W.prototype, "status", 2);
|
2249
2272
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", bt);
|
2250
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2273
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", w);
|
2251
2274
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", fe);
|
2252
2275
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", At);
|
2253
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2276
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", W);
|
2254
2277
|
const Ai = (s) => {
|
2255
2278
|
const t = {};
|
2256
2279
|
return Object.keys(s).forEach((e) => {
|
@@ -2271,11 +2294,11 @@ class Ci extends de(m) {
|
|
2271
2294
|
return xi(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
2272
2295
|
"--columns",
|
2273
2296
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
2274
|
-
),
|
2297
|
+
), C`${ee(this.nodes, (e) => e)}`;
|
2275
2298
|
}
|
2276
2299
|
}
|
2277
2300
|
Ci.styles = [
|
2278
|
-
|
2301
|
+
O`
|
2279
2302
|
:host {
|
2280
2303
|
height: 100%;
|
2281
2304
|
display: grid;
|