@telia-ace/widget-components-area-flamingo 1.1.70-rc.25 → 1.1.70-rc.27
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-06e0fb10.js → area-956d535d.js} +35 -29
- package/{area-0d244496.mjs → area-a991bdf3.mjs} +251 -233
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -4,7 +4,7 @@
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
6
|
const W = globalThis, gt = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, vt = Symbol(), Ct = /* @__PURE__ */ new WeakMap();
|
7
|
-
let
|
7
|
+
let Kt = class {
|
8
8
|
constructor(t, e, i) {
|
9
9
|
if (this._$cssResult$ = !0, i !== vt)
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -23,7 +23,7 @@ let Zt = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const
|
26
|
+
const ge = (s) => new Kt(typeof s == "string" ? s : s + "", void 0, vt), P = (s, ...t) => {
|
27
27
|
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
28
28
|
if (o._$cssResult$ === !0)
|
29
29
|
return o.cssText;
|
@@ -31,8 +31,8 @@ const fe = (s) => new Zt(typeof s == "string" ? s : s + "", void 0, vt), E = (s,
|
|
31
31
|
return o;
|
32
32
|
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.");
|
33
33
|
})(r) + s[n + 1], s[0]);
|
34
|
-
return new
|
35
|
-
},
|
34
|
+
return new Kt(e, s, vt);
|
35
|
+
}, ve = (s, t) => {
|
36
36
|
if (gt)
|
37
37
|
s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
38
38
|
else
|
@@ -44,17 +44,17 @@ const fe = (s) => new Zt(typeof s == "string" ? s : s + "", void 0, vt), E = (s,
|
|
44
44
|
let e = "";
|
45
45
|
for (const i of t.cssRules)
|
46
46
|
e += i.cssText;
|
47
|
-
return
|
47
|
+
return ge(e);
|
48
48
|
})(s) : s;
|
49
49
|
/**
|
50
50
|
* @license
|
51
51
|
* Copyright 2017 Google LLC
|
52
52
|
* SPDX-License-Identifier: BSD-3-Clause
|
53
53
|
*/
|
54
|
-
const { is:
|
54
|
+
const { is: me, defineProperty: ye, getOwnPropertyDescriptor: be, getOwnPropertyNames: $e, getOwnPropertySymbols: _e, getPrototypeOf: we } = Object, $ = globalThis, Et = $.trustedTypes, Ae = Et ? Et.emptyScript : "", et = $.reactiveElementPolyfillSupport, j = (s, t) => s, Z = { toAttribute(s, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
s = s ?
|
57
|
+
s = s ? Ae : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -79,7 +79,7 @@ const { is: ve, defineProperty: me, getOwnPropertyDescriptor: ye, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} }, mt = (s, t) => !
|
82
|
+
} }, mt = (s, t) => !me(s, t), Pt = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt };
|
83
83
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), $.litPropertyMetadata ?? ($.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
84
|
let T = class extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
@@ -91,11 +91,11 @@ let T = class extends HTMLElement {
|
|
91
91
|
static createProperty(t, e = Pt) {
|
92
92
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
93
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
94
|
-
r !== void 0 &&
|
94
|
+
r !== void 0 && ye(this.prototype, t, r);
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, i) {
|
98
|
-
const { get: r, set: n } =
|
98
|
+
const { get: r, set: n } = be(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
100
|
}, set(o) {
|
101
101
|
this[e] = o;
|
@@ -111,16 +111,16 @@ let T = class extends HTMLElement {
|
|
111
111
|
return this.elementProperties.get(t) ?? Pt;
|
112
112
|
}
|
113
113
|
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(
|
114
|
+
if (this.hasOwnProperty(j("elementProperties")))
|
115
115
|
return;
|
116
|
-
const t =
|
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(j("finalized")))
|
121
121
|
return;
|
122
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
123
|
-
const e = this.properties, i = [
|
122
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(j("properties"))) {
|
123
|
+
const e = this.properties, i = [...$e(e), ..._e(e)];
|
124
124
|
for (const r of i)
|
125
125
|
this.createProperty(r, e[r]);
|
126
126
|
}
|
@@ -175,7 +175,7 @@ let T = class extends HTMLElement {
|
|
175
175
|
}
|
176
176
|
createRenderRoot() {
|
177
177
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
-
return
|
178
|
+
return ve(t, this.constructor.elementStyles), t;
|
179
179
|
}
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
@@ -200,7 +200,7 @@ let T = class extends HTMLElement {
|
|
200
200
|
var n;
|
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 o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter :
|
203
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
|
204
204
|
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
205
205
|
}
|
206
206
|
}
|
@@ -208,7 +208,7 @@ let T = class extends HTMLElement {
|
|
208
208
|
var n;
|
209
209
|
const i = this.constructor, r = i._$Eh.get(t);
|
210
210
|
if (r !== void 0 && this._$Em !== r) {
|
211
|
-
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter :
|
211
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : Z;
|
212
212
|
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
213
213
|
}
|
214
214
|
}
|
@@ -292,63 +292,63 @@ let T = class extends HTMLElement {
|
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
};
|
295
|
-
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[
|
295
|
+
T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[j("elementProperties")] = /* @__PURE__ */ new Map(), T[j("finalized")] = /* @__PURE__ */ new Map(), et == null || et({ ReactiveElement: T }), ($.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"), kt = /'/g, Rt = /"/g,
|
304
|
-
function
|
301
|
+
const M = globalThis, K = M.trustedTypes, Ot = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, Gt = "$lit$", b = `lit$${(Math.random() + "").slice(9)}$`, Xt = "?" + b, xe = `<${Xt}>`, S = document, L = () => S.createComment(""), H = (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]`, R = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Tt = /-->/g, Ut = />/g, w = RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), kt = /'/g, Rt = /"/g, Qt = /^(?:script|style|textarea|title)$/i, Se = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), x = Se(1), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), jt = /* @__PURE__ */ new WeakMap(), C = S.createTreeWalker(S, 129);
|
304
|
+
function te(s, t) {
|
305
305
|
if (!Array.isArray(s) || !s.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
307
307
|
return Ot !== void 0 ? Ot.createHTML(t) : t;
|
308
308
|
}
|
309
|
-
const
|
309
|
+
const Ee = (s, t) => {
|
310
310
|
const e = s.length - 1, i = [];
|
311
|
-
let r, n = t === 2 ? "<svg>" : "", o =
|
311
|
+
let r, n = t === 2 ? "<svg>" : "", o = R;
|
312
312
|
for (let a = 0; a < e; a++) {
|
313
313
|
const c = s[a];
|
314
314
|
let l, h, p = -1, d = 0;
|
315
315
|
for (; d < c.length && (o.lastIndex = d, h = o.exec(c), h !== null); )
|
316
|
-
d = o.lastIndex, o ===
|
317
|
-
const f = o ===
|
318
|
-
n += o ===
|
316
|
+
d = o.lastIndex, o === R ? h[1] === "!--" ? o = Tt : h[1] !== void 0 ? o = Ut : h[2] !== void 0 ? (Qt.test(h[2]) && (r = RegExp("</" + h[2], "g")), o = w) : h[3] !== void 0 && (o = w) : o === w ? h[0] === ">" ? (o = r ?? R, p = -1) : h[1] === void 0 ? p = -2 : (p = o.lastIndex - h[2].length, l = h[1], o = h[3] === void 0 ? w : h[3] === '"' ? Rt : kt) : o === Rt || o === kt ? o = w : o === Tt || o === Ut ? o = R : (o = w, r = void 0);
|
317
|
+
const f = o === w && s[a + 1].startsWith("/>") ? " " : "";
|
318
|
+
n += o === R ? c + xe : p >= 0 ? (i.push(l), c.slice(0, p) + Gt + c.slice(p) + b + f) : c + b + (p === -2 ? a : f);
|
319
319
|
}
|
320
|
-
return [
|
320
|
+
return [te(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : "")), i];
|
321
321
|
};
|
322
|
-
class
|
322
|
+
class I {
|
323
323
|
constructor({ strings: t, _$litType$: e }, i) {
|
324
324
|
let r;
|
325
325
|
this.parts = [];
|
326
326
|
let n = 0, o = 0;
|
327
|
-
const a = t.length - 1, c = this.parts, [l, h] =
|
328
|
-
if (this.el =
|
327
|
+
const a = t.length - 1, c = this.parts, [l, h] = Ee(t, e);
|
328
|
+
if (this.el = I.createElement(l, i), C.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 = C.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
|
-
if (p.endsWith(
|
336
|
+
if (p.endsWith(Gt)) {
|
337
337
|
const d = h[o++], f = r.getAttribute(p).split(b), O = /([.?@])?(.*)/.exec(d);
|
338
|
-
c.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ?
|
338
|
+
c.push({ type: 1, index: n, name: O[2], strings: f, ctor: O[1] === "." ? Oe : O[1] === "?" ? Te : O[1] === "@" ? Ue : Q }), r.removeAttribute(p);
|
339
339
|
} else
|
340
340
|
p.startsWith(b) && (c.push({ type: 6, index: n }), r.removeAttribute(p));
|
341
|
-
if (
|
341
|
+
if (Qt.test(r.tagName)) {
|
342
342
|
const p = r.textContent.split(b), d = p.length - 1;
|
343
343
|
if (d > 0) {
|
344
|
-
r.textContent =
|
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], L()), C.nextNode(), c.push({ type: 2, index: ++n });
|
347
|
+
r.append(p[d], L());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (r.nodeType === 8)
|
351
|
-
if (r.data ===
|
351
|
+
if (r.data === Xt)
|
352
352
|
c.push({ type: 2, index: n });
|
353
353
|
else {
|
354
354
|
let p = -1;
|
@@ -359,19 +359,19 @@ class H {
|
|
359
359
|
}
|
360
360
|
}
|
361
361
|
static createElement(t, e) {
|
362
|
-
const i =
|
362
|
+
const i = S.createElement("template");
|
363
363
|
return i.innerHTML = t, i;
|
364
364
|
}
|
365
365
|
}
|
366
366
|
function U(s, t, e = s, i) {
|
367
367
|
var o, a;
|
368
|
-
if (t ===
|
368
|
+
if (t === E)
|
369
369
|
return t;
|
370
370
|
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
371
|
-
const n =
|
371
|
+
const n = H(t) ? void 0 : t._$litDirective$;
|
372
372
|
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(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
|
-
class
|
374
|
+
class Pe {
|
375
375
|
constructor(t, e) {
|
376
376
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
377
|
}
|
@@ -382,17 +382,17 @@ class Ee {
|
|
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 n =
|
385
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
386
|
+
C.currentNode = r;
|
387
|
+
let n = C.nextNode(), o = 0, a = 0, c = i[0];
|
388
388
|
for (; c !== void 0; ) {
|
389
389
|
if (o === c.index) {
|
390
390
|
let l;
|
391
|
-
c.type === 2 ? l = new
|
391
|
+
c.type === 2 ? l = new D(n, n.nextSibling, this, t) : c.type === 1 ? l = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (l = new ke(n, this, t)), this._$AV.push(l), c = i[++a];
|
392
392
|
}
|
393
|
-
o !== (c == null ? void 0 : c.index) && (n =
|
393
|
+
o !== (c == null ? void 0 : c.index) && (n = C.nextNode(), o++);
|
394
394
|
}
|
395
|
-
return
|
395
|
+
return C.currentNode = S, r;
|
396
396
|
}
|
397
397
|
p(t) {
|
398
398
|
let e = 0;
|
@@ -400,7 +400,7 @@ class Ee {
|
|
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 D {
|
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 I {
|
|
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), H(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.$(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 I {
|
|
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 && H(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
$(t) {
|
435
435
|
var n;
|
436
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
436
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = I.createElement(te(i.h, i.h[0]), this.options)), i);
|
437
437
|
if (((n = this._$AH) == null ? void 0 : n._$AD) === r)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
440
|
-
const o = new
|
440
|
+
const o = new Pe(r, this), a = o.u(this.options);
|
441
441
|
o.p(e), this.T(a), this._$AH = o;
|
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 I(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
452
|
for (const n of t)
|
453
|
-
r === e.length ? e.push(i = new
|
453
|
+
r === e.length ? e.push(i = new D(this.S(L()), this.S(L()), this, this.options)) : i = e[r], i._$AI(n), 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) {
|
@@ -465,7 +465,7 @@ class I {
|
|
465
465
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
466
466
|
}
|
467
467
|
}
|
468
|
-
class
|
468
|
+
class Q {
|
469
469
|
get tagName() {
|
470
470
|
return this.element.tagName;
|
471
471
|
}
|
@@ -479,12 +479,12 @@ class J {
|
|
479
479
|
const n = this.strings;
|
480
480
|
let o = !1;
|
481
481
|
if (n === void 0)
|
482
|
-
t = U(this, t, e, 0), o = !
|
482
|
+
t = U(this, t, e, 0), o = !H(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const a = t;
|
485
485
|
let c, l;
|
486
486
|
for (t = n[0], c = 0; c < n.length - 1; c++)
|
487
|
-
l = U(this, a[i + c], e, c), l ===
|
487
|
+
l = U(this, a[i + c], e, c), l === E && (l = this._$AH[c]), o || (o = !H(l) || l !== this._$AH[c]), l === u ? t = u : t !== u && (t += (l ?? "") + n[c + 1]), this._$AH[c] = l;
|
488
488
|
}
|
489
489
|
o && !r && this.j(t);
|
490
490
|
}
|
@@ -492,7 +492,7 @@ class J {
|
|
492
492
|
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class
|
495
|
+
class Oe extends Q {
|
496
496
|
constructor() {
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
@@ -500,7 +500,7 @@ class Pe extends J {
|
|
500
500
|
this.element[this.name] = t === u ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class
|
503
|
+
class Te extends Q {
|
504
504
|
constructor() {
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
@@ -508,12 +508,12 @@ class Oe extends J {
|
|
508
508
|
this.element.toggleAttribute(this.name, !!t && t !== u);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class
|
511
|
+
class Ue extends Q {
|
512
512
|
constructor(t, e, i, r, n) {
|
513
513
|
super(t, e, i, r, n), 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) === E)
|
517
517
|
return;
|
518
518
|
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || r);
|
519
519
|
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -523,7 +523,7 @@ class Te extends J {
|
|
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 ke {
|
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 Ue {
|
|
534
534
|
U(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const st =
|
538
|
-
st == null || st(
|
539
|
-
const
|
537
|
+
const st = M.litHtmlPolyfillSupport;
|
538
|
+
st == null || st(I, D), (M.litHtmlVersions ?? (M.litHtmlVersions = [])).push("3.1.2");
|
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
543
|
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
i._$litPart$ = r = new
|
544
|
+
i._$litPart$ = r = new D(t.insertBefore(L(), n), n, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return r._$AI(s), r;
|
547
547
|
};
|
@@ -561,7 +561,7 @@ let m = class extends T {
|
|
561
561
|
}
|
562
562
|
update(t) {
|
563
563
|
const e = this.render();
|
564
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
564
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Re(e, this.renderRoot, this.renderOptions);
|
565
565
|
}
|
566
566
|
connectedCallback() {
|
567
567
|
var t;
|
@@ -572,11 +572,11 @@ 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 E;
|
576
576
|
}
|
577
577
|
};
|
578
|
-
var
|
579
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
578
|
+
var Zt;
|
579
|
+
m._$litElement$ = !0, m.finalized = !0, (Zt = globalThis.litElementHydrateSupport) == null || Zt.call(globalThis, { LitElement: m });
|
580
580
|
const rt = globalThis.litElementPolyfillSupport;
|
581
581
|
rt == null || rt({ LitElement: m });
|
582
582
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.4");
|
@@ -585,7 +585,7 @@ rt == null || rt({ LitElement: m });
|
|
585
585
|
* Copyright 2021 Google LLC
|
586
586
|
* SPDX-License-Identifier: BSD-3-Clause
|
587
587
|
*/
|
588
|
-
function*
|
588
|
+
function* ee(s, t) {
|
589
589
|
if (s !== void 0) {
|
590
590
|
let e = 0;
|
591
591
|
for (const i of s)
|
@@ -600,7 +600,7 @@ var ht = function(s, t) {
|
|
600
600
|
Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
601
601
|
}, ht(s, t);
|
602
602
|
};
|
603
|
-
function
|
603
|
+
function B(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
|
ht(s, t);
|
@@ -621,7 +621,7 @@ function pt(s) {
|
|
621
621
|
};
|
622
622
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
623
623
|
}
|
624
|
-
function
|
624
|
+
function G(s, t) {
|
625
625
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
626
626
|
if (!e)
|
627
627
|
return s;
|
@@ -641,7 +641,7 @@ function K(s, t) {
|
|
641
641
|
}
|
642
642
|
return n;
|
643
643
|
}
|
644
|
-
function
|
644
|
+
function X(s, t, e) {
|
645
645
|
if (e || arguments.length === 2)
|
646
646
|
for (var i = 0, r = t.length, n; i < r; i++)
|
647
647
|
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
@@ -650,13 +650,13 @@ function G(s, t, e) {
|
|
650
650
|
function y(s) {
|
651
651
|
return typeof s == "function";
|
652
652
|
}
|
653
|
-
function
|
653
|
+
function ie(s) {
|
654
654
|
var t = function(i) {
|
655
655
|
Error.call(i), i.stack = new Error().stack;
|
656
656
|
}, e = s(t);
|
657
657
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
658
658
|
}
|
659
|
-
var nt =
|
659
|
+
var nt = 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) {
|
@@ -671,7 +671,7 @@ function ut(s, t) {
|
|
671
671
|
0 <= e && s.splice(e, 1);
|
672
672
|
}
|
673
673
|
}
|
674
|
-
var
|
674
|
+
var tt = function() {
|
675
675
|
function s(t) {
|
676
676
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
677
677
|
}
|
@@ -715,7 +715,7 @@ var Q = function() {
|
|
715
715
|
try {
|
716
716
|
Mt(O);
|
717
717
|
} catch (v) {
|
718
|
-
n = n ?? [], v instanceof nt ? n =
|
718
|
+
n = n ?? [], v instanceof nt ? n = X(X([], G(n)), G(v.errors)) : n.push(v);
|
719
719
|
}
|
720
720
|
}
|
721
721
|
} catch (v) {
|
@@ -761,14 +761,14 @@ var Q = function() {
|
|
761
761
|
var t = new s();
|
762
762
|
return t.closed = !0, t;
|
763
763
|
}(), s;
|
764
|
-
}(),
|
765
|
-
function
|
766
|
-
return s instanceof
|
764
|
+
}(), se = tt.EMPTY;
|
765
|
+
function re(s) {
|
766
|
+
return s instanceof tt || s && "closed" in s && y(s.remove) && y(s.add) && y(s.unsubscribe);
|
767
767
|
}
|
768
768
|
function Mt(s) {
|
769
769
|
y(s) ? s() : s.unsubscribe();
|
770
770
|
}
|
771
|
-
var
|
771
|
+
var ne = {
|
772
772
|
onUnhandledError: null,
|
773
773
|
onStoppedNotification: null,
|
774
774
|
Promise: void 0,
|
@@ -779,7 +779,7 @@ var re = {
|
|
779
779
|
for (var e = [], i = 2; i < arguments.length; i++)
|
780
780
|
e[i - 2] = arguments[i];
|
781
781
|
var r = dt.delegate;
|
782
|
-
return r != null && r.setTimeout ? r.setTimeout.apply(r,
|
782
|
+
return r != null && r.setTimeout ? r.setTimeout.apply(r, X([s, t], G(e))) : setTimeout.apply(void 0, X([s, t], G(e)));
|
783
783
|
},
|
784
784
|
clearTimeout: function(s) {
|
785
785
|
var t = dt.delegate;
|
@@ -787,21 +787,21 @@ var re = {
|
|
787
787
|
},
|
788
788
|
delegate: void 0
|
789
789
|
};
|
790
|
-
function
|
790
|
+
function je(s) {
|
791
791
|
dt.setTimeout(function() {
|
792
792
|
throw s;
|
793
793
|
});
|
794
794
|
}
|
795
795
|
function Nt() {
|
796
796
|
}
|
797
|
-
function
|
797
|
+
function q(s) {
|
798
798
|
s();
|
799
799
|
}
|
800
|
-
var
|
801
|
-
|
800
|
+
var oe = function(s) {
|
801
|
+
B(t, s);
|
802
802
|
function t(e) {
|
803
803
|
var i = s.call(this) || this;
|
804
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
804
|
+
return i.isStopped = !1, e ? (i.destination = e, re(e) && e.add(i)) : i.destination = He, i;
|
805
805
|
}
|
806
806
|
return t.create = function(e, i, r) {
|
807
807
|
return new ft(e, i, r);
|
@@ -828,11 +828,11 @@ var ne = function(s) {
|
|
828
828
|
this.unsubscribe();
|
829
829
|
}
|
830
830
|
}, t;
|
831
|
-
}(
|
831
|
+
}(tt), Me = Function.prototype.bind;
|
832
832
|
function ot(s, t) {
|
833
|
-
return
|
833
|
+
return Me.call(s, t);
|
834
834
|
}
|
835
|
-
var
|
835
|
+
var Ne = function() {
|
836
836
|
function s(t) {
|
837
837
|
this.partialObserver = t;
|
838
838
|
}
|
@@ -864,7 +864,7 @@ var Me = function() {
|
|
864
864
|
}
|
865
865
|
}, s;
|
866
866
|
}(), ft = function(s) {
|
867
|
-
|
867
|
+
B(t, s);
|
868
868
|
function t(e, i, r) {
|
869
869
|
var n = s.call(this) || this, o;
|
870
870
|
if (y(e) || !e)
|
@@ -875,7 +875,7 @@ var Me = function() {
|
|
875
875
|
};
|
876
876
|
else {
|
877
877
|
var a;
|
878
|
-
n &&
|
878
|
+
n && ne.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
879
879
|
return n.unsubscribe();
|
880
880
|
}, o = {
|
881
881
|
next: e.next && ot(e.next, a),
|
@@ -883,29 +883,29 @@ var Me = function() {
|
|
883
883
|
complete: e.complete && ot(e.complete, a)
|
884
884
|
}) : o = e;
|
885
885
|
}
|
886
|
-
return n.destination = new
|
886
|
+
return n.destination = new Ne(o), n;
|
887
887
|
}
|
888
888
|
return t;
|
889
|
-
}(
|
889
|
+
}(oe);
|
890
890
|
function F(s) {
|
891
|
-
|
891
|
+
je(s);
|
892
892
|
}
|
893
|
-
function
|
893
|
+
function Le(s) {
|
894
894
|
throw s;
|
895
895
|
}
|
896
|
-
var
|
896
|
+
var He = {
|
897
897
|
closed: !0,
|
898
898
|
next: Nt,
|
899
|
-
error:
|
899
|
+
error: Le,
|
900
900
|
complete: Nt
|
901
|
-
},
|
901
|
+
}, Ie = function() {
|
902
902
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
903
903
|
}();
|
904
|
-
function
|
904
|
+
function De(s) {
|
905
905
|
return s;
|
906
906
|
}
|
907
|
-
function
|
908
|
-
return s.length === 0 ?
|
907
|
+
function Be(s) {
|
908
|
+
return s.length === 0 ? De : s.length === 1 ? s[0] : function(e) {
|
909
909
|
return s.reduce(function(i, r) {
|
910
910
|
return r(i);
|
911
911
|
}, e);
|
@@ -919,8 +919,8 @@ 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, n =
|
923
|
-
return
|
922
|
+
var r = this, n = Ve(t) ? t : new ft(t, e, i);
|
923
|
+
return q(function() {
|
924
924
|
var o = r, a = o.operator, c = o.source;
|
925
925
|
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
926
926
|
}), n;
|
@@ -949,12 +949,12 @@ var Lt = function() {
|
|
949
949
|
}, s.prototype._subscribe = function(t) {
|
950
950
|
var e;
|
951
951
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
952
|
-
}, s.prototype[
|
952
|
+
}, s.prototype[Ie] = function() {
|
953
953
|
return this;
|
954
954
|
}, s.prototype.pipe = function() {
|
955
955
|
for (var t = [], e = 0; e < arguments.length; e++)
|
956
956
|
t[e] = arguments[e];
|
957
|
-
return
|
957
|
+
return Be(t)(this);
|
958
958
|
}, s.prototype.toPromise = function(t) {
|
959
959
|
var e = this;
|
960
960
|
return t = Ht(t), new t(function(i, r) {
|
@@ -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 ?? ne.Promise) !== null && t !== void 0 ? t : Promise;
|
977
977
|
}
|
978
|
-
function
|
978
|
+
function ze(s) {
|
979
979
|
return s && y(s.next) && y(s.error) && y(s.complete);
|
980
980
|
}
|
981
|
-
function
|
982
|
-
return s && s instanceof
|
981
|
+
function Ve(s) {
|
982
|
+
return s && s instanceof oe || ze(s) && re(s);
|
983
983
|
}
|
984
|
-
var Fe =
|
984
|
+
var Fe = 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
|
+
B(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;
|
@@ -999,7 +999,7 @@ var Fe = ee(function(s) {
|
|
999
999
|
throw new Fe();
|
1000
1000
|
}, t.prototype.next = function(e) {
|
1001
1001
|
var i = this;
|
1002
|
-
|
1002
|
+
q(function() {
|
1003
1003
|
var r, n;
|
1004
1004
|
if (i._throwIfClosed(), !i.isStopped) {
|
1005
1005
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
@@ -1022,7 +1022,7 @@ var Fe = ee(function(s) {
|
|
1022
1022
|
});
|
1023
1023
|
}, t.prototype.error = function(e) {
|
1024
1024
|
var i = this;
|
1025
|
-
|
1025
|
+
q(function() {
|
1026
1026
|
if (i._throwIfClosed(), !i.isStopped) {
|
1027
1027
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
1028
1028
|
for (var r = i.observers; r.length; )
|
@@ -1031,7 +1031,7 @@ var Fe = ee(function(s) {
|
|
1031
1031
|
});
|
1032
1032
|
}, t.prototype.complete = function() {
|
1033
1033
|
var e = this;
|
1034
|
-
|
1034
|
+
q(function() {
|
1035
1035
|
if (e._throwIfClosed(), !e.isStopped) {
|
1036
1036
|
e.isStopped = !0;
|
1037
1037
|
for (var i = e.observers; i.length; )
|
@@ -1053,7 +1053,7 @@ var Fe = ee(function(s) {
|
|
1053
1053
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
1054
1054
|
}, t.prototype._innerSubscribe = function(e) {
|
1055
1055
|
var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
1056
|
-
return n || o ?
|
1056
|
+
return n || o ? 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) {
|
@@ -1066,7 +1066,7 @@ var Fe = ee(function(s) {
|
|
1066
1066
|
return new It(e, i);
|
1067
1067
|
}, t;
|
1068
1068
|
}(Lt), It = function(s) {
|
1069
|
-
|
1069
|
+
B(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;
|
@@ -1082,10 +1082,10 @@ var Fe = ee(function(s) {
|
|
1082
1082
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
1083
1083
|
}, t.prototype._subscribe = function(e) {
|
1084
1084
|
var i, r;
|
1085
|
-
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r :
|
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), Ye = function(s) {
|
1088
|
-
|
1088
|
+
B(t, s);
|
1089
1089
|
function t(e) {
|
1090
1090
|
var i = s.call(this) || this;
|
1091
1091
|
return i._value = e, i;
|
@@ -1113,7 +1113,7 @@ var Fe = ee(function(s) {
|
|
1113
1113
|
* Copyright 2017 Google LLC
|
1114
1114
|
* SPDX-License-Identifier: BSD-3-Clause
|
1115
1115
|
*/
|
1116
|
-
const We = { attribute: !0, type: String, converter:
|
1116
|
+
const We = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: mt }, qe = (s = We, t, e) => {
|
1117
1117
|
const { kind: i, metadata: r } = e;
|
1118
1118
|
let n = globalThis.litPropertyMetadata.get(r);
|
1119
1119
|
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
@@ -1135,7 +1135,7 @@ const We = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged:
|
|
1135
1135
|
throw Error("Unsupported decorator location: " + i);
|
1136
1136
|
};
|
1137
1137
|
function g(s) {
|
1138
|
-
return (t, e) => typeof e == "object" ?
|
1138
|
+
return (t, e) => typeof e == "object" ? qe(s, t, e) : ((i, r, n) => {
|
1139
1139
|
const o = r.hasOwnProperty(n);
|
1140
1140
|
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
1141
1141
|
})(s, t, e);
|
@@ -1145,13 +1145,13 @@ function g(s) {
|
|
1145
1145
|
* Copyright 2017 Google LLC
|
1146
1146
|
* SPDX-License-Identifier: BSD-3-Clause
|
1147
1147
|
*/
|
1148
|
-
function
|
1148
|
+
function k(s) {
|
1149
1149
|
return g({ ...s, state: !0, attribute: !1 });
|
1150
1150
|
}
|
1151
|
-
var
|
1152
|
-
for (var r = i > 1 ? void 0 : i ?
|
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, n = s.length - 1, o; n >= 0; n--)
|
1153
1153
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1154
|
-
return i && r &&
|
1154
|
+
return i && r && Ze(t, e, r), r;
|
1155
1155
|
};
|
1156
1156
|
class bt extends m {
|
1157
1157
|
constructor() {
|
@@ -1166,7 +1166,7 @@ class bt extends m {
|
|
1166
1166
|
}
|
1167
1167
|
}
|
1168
1168
|
bt.styles = [
|
1169
|
-
|
1169
|
+
P`
|
1170
1170
|
:host {
|
1171
1171
|
position: fixed;
|
1172
1172
|
display: flex;
|
@@ -1184,7 +1184,7 @@ bt.styles = [
|
|
1184
1184
|
}
|
1185
1185
|
`
|
1186
1186
|
];
|
1187
|
-
|
1187
|
+
Ge([
|
1188
1188
|
g({ attribute: !0 })
|
1189
1189
|
], bt.prototype, "anchor", 2);
|
1190
1190
|
/**
|
@@ -1193,7 +1193,7 @@ Ke([
|
|
1193
1193
|
* SPDX-License-Identifier: BSD-3-Clause
|
1194
1194
|
*/
|
1195
1195
|
const $t = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, _t = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1196
|
-
let
|
1196
|
+
let ae = class {
|
1197
1197
|
constructor(t) {
|
1198
1198
|
}
|
1199
1199
|
get _$AU() {
|
@@ -1214,68 +1214,68 @@ let oe = class {
|
|
1214
1214
|
* Copyright 2020 Google LLC
|
1215
1215
|
* SPDX-License-Identifier: BSD-3-Clause
|
1216
1216
|
*/
|
1217
|
-
const
|
1217
|
+
const Xe = (s) => s.strings === void 0;
|
1218
1218
|
/**
|
1219
1219
|
* @license
|
1220
1220
|
* Copyright 2017 Google LLC
|
1221
1221
|
* SPDX-License-Identifier: BSD-3-Clause
|
1222
1222
|
*/
|
1223
|
-
const
|
1223
|
+
const N = (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), N(r, t);
|
1230
1230
|
return !0;
|
1231
|
-
},
|
1231
|
+
}, J = (s) => {
|
1232
1232
|
let t, e;
|
1233
1233
|
do {
|
1234
1234
|
if ((t = s._$AM) === void 0)
|
1235
1235
|
break;
|
1236
1236
|
e = t._$AN, e.delete(s), s = t;
|
1237
1237
|
} while ((e == null ? void 0 : e.size) === 0);
|
1238
|
-
},
|
1238
|
+
}, ce = (s) => {
|
1239
1239
|
for (let t; t = s._$AM; s = t) {
|
1240
1240
|
let e = t._$AN;
|
1241
1241
|
if (e === void 0)
|
1242
1242
|
t._$AN = e = /* @__PURE__ */ new Set();
|
1243
1243
|
else if (e.has(s))
|
1244
1244
|
break;
|
1245
|
-
e.add(s),
|
1245
|
+
e.add(s), ti(t);
|
1246
1246
|
}
|
1247
1247
|
};
|
1248
|
-
function
|
1249
|
-
this._$AN !== void 0 ? (
|
1248
|
+
function Je(s) {
|
1249
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, ce(this)) : this._$AM = s;
|
1250
1250
|
}
|
1251
|
-
function
|
1251
|
+
function Qe(s, t = !1, e = 0) {
|
1252
1252
|
const i = this._$AH, r = this._$AN;
|
1253
1253
|
if (r !== void 0 && r.size !== 0)
|
1254
1254
|
if (t)
|
1255
1255
|
if (Array.isArray(i))
|
1256
1256
|
for (let n = e; n < i.length; n++)
|
1257
|
-
|
1257
|
+
N(i[n], !1), J(i[n]);
|
1258
1258
|
else
|
1259
|
-
i != null && (
|
1259
|
+
i != null && (N(i, !1), J(i));
|
1260
1260
|
else
|
1261
|
-
|
1261
|
+
N(this, s);
|
1262
1262
|
}
|
1263
|
-
const
|
1264
|
-
s.type == $t.CHILD && (s._$AP ?? (s._$AP =
|
1263
|
+
const ti = (s) => {
|
1264
|
+
s.type == $t.CHILD && (s._$AP ?? (s._$AP = Qe), s._$AQ ?? (s._$AQ = Je));
|
1265
1265
|
};
|
1266
|
-
class
|
1266
|
+
class le extends ae {
|
1267
1267
|
constructor() {
|
1268
1268
|
super(...arguments), this._$AN = void 0;
|
1269
1269
|
}
|
1270
1270
|
_$AT(t, e, i) {
|
1271
|
-
super._$AT(t, e, i),
|
1271
|
+
super._$AT(t, e, i), ce(this), this.isConnected = t._$AU;
|
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 && (N(this, t), J(this));
|
1276
1276
|
}
|
1277
1277
|
setValue(t) {
|
1278
|
-
if (
|
1278
|
+
if (Xe(this._$Ct))
|
1279
1279
|
this._$Ct._$AI(t, this);
|
1280
1280
|
else {
|
1281
1281
|
const e = [...this._$Ct._$AH];
|
@@ -1287,32 +1287,32 @@ class ce extends oe {
|
|
1287
1287
|
reconnected() {
|
1288
1288
|
}
|
1289
1289
|
}
|
1290
|
-
const
|
1290
|
+
const ei = /* @__PURE__ */ new WeakMap();
|
1291
1291
|
let Dt = 0;
|
1292
|
-
const at = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new WeakSet(), zt = () => new Promise((s) => requestAnimationFrame(s)),
|
1292
|
+
const at = /* @__PURE__ */ new Map(), Bt = /* @__PURE__ */ new WeakSet(), zt = () => new Promise((s) => requestAnimationFrame(s)), ii = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Vt = (s, t) => {
|
1293
1293
|
const e = s - t;
|
1294
1294
|
return e === 0 ? void 0 : e;
|
1295
|
-
},
|
1295
|
+
}, Ft = (s, t) => {
|
1296
1296
|
const e = s / t;
|
1297
1297
|
return e === 1 ? void 0 : e;
|
1298
1298
|
}, ct = { left: (s, t) => {
|
1299
|
-
const e =
|
1299
|
+
const e = Vt(s, t);
|
1300
1300
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1301
1301
|
}, top: (s, t) => {
|
1302
|
-
const e =
|
1302
|
+
const e = Vt(s, t);
|
1303
1303
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1304
1304
|
}, width: (s, t) => {
|
1305
1305
|
let e;
|
1306
1306
|
t === 0 && (t = 1, e = { width: "1px" });
|
1307
|
-
const i =
|
1307
|
+
const i = Ft(s, t);
|
1308
1308
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1309
1309
|
}, height: (s, t) => {
|
1310
1310
|
let e;
|
1311
1311
|
t === 0 && (t = 1, e = { height: "1px" });
|
1312
|
-
const i =
|
1312
|
+
const i = Ft(s, t);
|
1313
1313
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1314
|
-
} },
|
1315
|
-
class
|
1314
|
+
} }, si = { duration: 333, easing: "ease-in-out" }, ri = ["left", "top", "width", "height", "opacity", "color", "background"], Yt = /* @__PURE__ */ new WeakMap();
|
1315
|
+
class ni extends le {
|
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.");
|
@@ -1332,7 +1332,7 @@ class ri extends ce {
|
|
1332
1332
|
return u;
|
1333
1333
|
}
|
1334
1334
|
getController() {
|
1335
|
-
return
|
1335
|
+
return ei.get(this.u);
|
1336
1336
|
}
|
1337
1337
|
isDisabled() {
|
1338
1338
|
var t;
|
@@ -1341,12 +1341,12 @@ class ri extends ce {
|
|
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((n) => this.t = !0), this.element = t.element,
|
1344
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Yt.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 ?? {};
|
1348
1348
|
const e = this.getController();
|
1349
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1349
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ri), this.options = t;
|
1350
1350
|
}
|
1351
1351
|
m() {
|
1352
1352
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
@@ -1428,7 +1428,7 @@ class ri extends ce {
|
|
1428
1428
|
O() {
|
1429
1429
|
const t = [];
|
1430
1430
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1431
|
-
const i =
|
1431
|
+
const i = Yt.get(e);
|
1432
1432
|
i && !i.isDisabled() && i && t.push(i);
|
1433
1433
|
}
|
1434
1434
|
return t;
|
@@ -1440,7 +1440,7 @@ class ri extends ce {
|
|
1440
1440
|
}), t;
|
1441
1441
|
}
|
1442
1442
|
j(t, e = this.O()) {
|
1443
|
-
const i = { ...
|
1443
|
+
const i = { ...si };
|
1444
1444
|
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
1445
1445
|
}
|
1446
1446
|
N(t, e, i) {
|
@@ -1491,13 +1491,13 @@ class ri extends ce {
|
|
1491
1491
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1492
1492
|
}
|
1493
1493
|
}
|
1494
|
-
const
|
1494
|
+
const oi = _t(ni), 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
|
1498
1498
|
* SPDX-License-Identifier: BSD-3-Clause
|
1499
1499
|
*/
|
1500
|
-
const
|
1500
|
+
const Wt = _t(class extends ae {
|
1501
1501
|
constructor(s) {
|
1502
1502
|
var t;
|
1503
1503
|
if (super(s), s.type !== $t.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2)
|
@@ -1521,11 +1521,11 @@ const ai = _t(class extends oe {
|
|
1521
1521
|
const o = !!t[n];
|
1522
1522
|
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
1523
1523
|
}
|
1524
|
-
return
|
1524
|
+
return E;
|
1525
1525
|
}
|
1526
1526
|
}), Y = (s, t, e) => {
|
1527
1527
|
s && e.style.setProperty(t, s);
|
1528
|
-
},
|
1528
|
+
}, he = (s, t) => {
|
1529
1529
|
var e, i, r, n;
|
1530
1530
|
Y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), Y(
|
1531
1531
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
@@ -1546,10 +1546,10 @@ const ai = _t(class extends oe {
|
|
1546
1546
|
* Copyright 2020 Google LLC
|
1547
1547
|
* SPDX-License-Identifier: BSD-3-Clause
|
1548
1548
|
*/
|
1549
|
-
const
|
1549
|
+
const pe = () => new ci();
|
1550
1550
|
class ci {
|
1551
1551
|
}
|
1552
|
-
const lt = /* @__PURE__ */ new WeakMap(),
|
1552
|
+
const lt = /* @__PURE__ */ new WeakMap(), ue = _t(class extends le {
|
1553
1553
|
render(s) {
|
1554
1554
|
return u;
|
1555
1555
|
}
|
@@ -1577,14 +1577,14 @@ const lt = /* @__PURE__ */ new WeakMap(), pe = _t(class extends ce {
|
|
1577
1577
|
this.rt(this.ct);
|
1578
1578
|
}
|
1579
1579
|
});
|
1580
|
-
var li = Object.defineProperty, hi = Object.getOwnPropertyDescriptor,
|
1580
|
+
var li = Object.defineProperty, hi = Object.getOwnPropertyDescriptor, z = (s, t, e, i) => {
|
1581
1581
|
for (var r = i > 1 ? void 0 : i ? hi(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1582
1582
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1583
1583
|
return i && r && li(t, e, r), r;
|
1584
1584
|
};
|
1585
|
-
class
|
1585
|
+
class _ extends m {
|
1586
1586
|
constructor() {
|
1587
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef =
|
1587
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = pe(), this.widgetActive$ = new Ye(!1), this.componentIsDestroyed$ = new yt();
|
1588
1588
|
}
|
1589
1589
|
async connectedCallback() {
|
1590
1590
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1604,21 +1604,21 @@ class P extends m {
|
|
1604
1604
|
}
|
1605
1605
|
_applyBranding() {
|
1606
1606
|
var t;
|
1607
|
-
(t = this.application) != null && t.settings &&
|
1607
|
+
(t = this.application) != null && t.settings && he(this.application.settings.branding, this);
|
1608
1608
|
}
|
1609
1609
|
async _renderSymbol() {
|
1610
1610
|
var a, c, l;
|
1611
1611
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1612
1612
|
if (e)
|
1613
|
-
return
|
1613
|
+
return x` <img src=${e} class="trigger-icon" alt="" /> `;
|
1614
1614
|
const i = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1615
1615
|
if (!i)
|
1616
1616
|
return u;
|
1617
|
-
const r = async (h) =>
|
1617
|
+
const r = async (h) => ai, { type: n, content: o } = i;
|
1618
1618
|
switch (n) {
|
1619
1619
|
case "Telia": {
|
1620
1620
|
const h = await r();
|
1621
|
-
return h ?
|
1621
|
+
return h ? x`<telia-icon
|
1622
1622
|
class="trigger-icon"
|
1623
1623
|
svg=${h.svg}
|
1624
1624
|
size="lg"
|
@@ -1628,17 +1628,29 @@ class P extends m {
|
|
1628
1628
|
return u;
|
1629
1629
|
}
|
1630
1630
|
}
|
1631
|
+
hideTrigger() {
|
1632
|
+
this.triggerVisible = !1;
|
1633
|
+
}
|
1634
|
+
showTrigger() {
|
1635
|
+
this.triggerVisible = !0;
|
1636
|
+
}
|
1631
1637
|
render() {
|
1632
1638
|
var t, e, i, r;
|
1633
|
-
return
|
1634
|
-
|
1639
|
+
return x`<div
|
1640
|
+
class=${Wt({
|
1641
|
+
"trigger-container": !0,
|
1642
|
+
hidden: !this.triggerVisible
|
1643
|
+
})}
|
1644
|
+
${ue(this.containerRef)}
|
1645
|
+
>
|
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) ? x`
|
1635
1647
|
<button
|
1636
1648
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1637
1649
|
class="trigger-label"
|
1638
1650
|
@click=${this.toggleActive}
|
1639
|
-
${
|
1651
|
+
${oi({
|
1640
1652
|
keyframeOptions: {},
|
1641
|
-
in:
|
1653
|
+
in: ii,
|
1642
1654
|
stabilizeOut: !0,
|
1643
1655
|
skipInitial: !1
|
1644
1656
|
})}
|
@@ -1649,7 +1661,7 @@ class P extends m {
|
|
1649
1661
|
|
1650
1662
|
<button
|
1651
1663
|
label="Widget trigger"
|
1652
|
-
class=${
|
1664
|
+
class=${Wt({
|
1653
1665
|
trigger: !0,
|
1654
1666
|
active: this.active,
|
1655
1667
|
rendered: this.loaded
|
@@ -1688,8 +1700,8 @@ class P extends m {
|
|
1688
1700
|
</div>`;
|
1689
1701
|
}
|
1690
1702
|
}
|
1691
|
-
|
1692
|
-
|
1703
|
+
_.styles = [
|
1704
|
+
P`
|
1693
1705
|
:host {
|
1694
1706
|
--voca-rem-multiplier: 0.625;
|
1695
1707
|
--trigger-label-bg: #f5e0ff;
|
@@ -1705,6 +1717,9 @@ P.styles = [
|
|
1705
1717
|
align-items: center;
|
1706
1718
|
gap: 1rem;
|
1707
1719
|
}
|
1720
|
+
.trigger-container.hidden {
|
1721
|
+
display: none;
|
1722
|
+
}
|
1708
1723
|
|
1709
1724
|
.trigger {
|
1710
1725
|
transform: scale(0);
|
@@ -1797,24 +1812,27 @@ P.styles = [
|
|
1797
1812
|
}
|
1798
1813
|
`
|
1799
1814
|
];
|
1800
|
-
|
1815
|
+
z([
|
1801
1816
|
g({ attribute: !1 })
|
1802
|
-
],
|
1803
|
-
|
1804
|
-
|
1805
|
-
],
|
1806
|
-
|
1807
|
-
|
1808
|
-
],
|
1809
|
-
|
1810
|
-
|
1811
|
-
],
|
1812
|
-
|
1817
|
+
], _.prototype, "application", 2);
|
1818
|
+
z([
|
1819
|
+
k()
|
1820
|
+
], _.prototype, "active", 2);
|
1821
|
+
z([
|
1822
|
+
k()
|
1823
|
+
], _.prototype, "triggerVisible", 2);
|
1824
|
+
z([
|
1825
|
+
k()
|
1826
|
+
], _.prototype, "loaded", 2);
|
1827
|
+
z([
|
1828
|
+
k()
|
1829
|
+
], _.prototype, "icon", 2);
|
1830
|
+
var pi = Object.defineProperty, ui = Object.getOwnPropertyDescriptor, A = (s, t, e, i) => {
|
1813
1831
|
for (var r = i > 1 ? void 0 : i ? ui(t, e) : t, n = s.length - 1, o; n >= 0; n--)
|
1814
1832
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
1815
1833
|
return i && r && pi(t, e, r), r;
|
1816
1834
|
};
|
1817
|
-
const
|
1835
|
+
const de = (s) => {
|
1818
1836
|
class t extends s {
|
1819
1837
|
constructor() {
|
1820
1838
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1840,7 +1858,7 @@ const ue = (s) => {
|
|
1840
1858
|
}
|
1841
1859
|
return t.styles = [
|
1842
1860
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1843
|
-
|
1861
|
+
P`
|
1844
1862
|
:host {
|
1845
1863
|
font-family: var(--font-family);
|
1846
1864
|
grid-column: span var(--width);
|
@@ -1853,29 +1871,29 @@ const ue = (s) => {
|
|
1853
1871
|
box-sizing: border-box;
|
1854
1872
|
}
|
1855
1873
|
`
|
1856
|
-
],
|
1874
|
+
], A([
|
1857
1875
|
g()
|
1858
|
-
], t.prototype, "properties", 2),
|
1876
|
+
], t.prototype, "properties", 2), A([
|
1859
1877
|
g()
|
1860
|
-
], t.prototype, "context", 2),
|
1878
|
+
], t.prototype, "context", 2), A([
|
1861
1879
|
g()
|
1862
|
-
], t.prototype, "layout", 2),
|
1880
|
+
], t.prototype, "layout", 2), A([
|
1863
1881
|
g()
|
1864
|
-
], t.prototype, "name", 2),
|
1882
|
+
], t.prototype, "name", 2), A([
|
1865
1883
|
g()
|
1866
|
-
], t.prototype, "type", 2),
|
1884
|
+
], t.prototype, "type", 2), A([
|
1867
1885
|
g({ attribute: !1 })
|
1868
|
-
], t.prototype, "application", 2),
|
1886
|
+
], t.prototype, "application", 2), A([
|
1869
1887
|
g({ attribute: !1 })
|
1870
1888
|
], t.prototype, "parent", 2), t;
|
1871
1889
|
};
|
1872
|
-
class
|
1890
|
+
class fe extends de(m) {
|
1873
1891
|
render() {
|
1874
|
-
return
|
1892
|
+
return x`Non resolved component`;
|
1875
1893
|
}
|
1876
1894
|
}
|
1877
|
-
|
1878
|
-
|
1895
|
+
fe.styles = [
|
1896
|
+
P`
|
1879
1897
|
:host {
|
1880
1898
|
display: block;
|
1881
1899
|
}
|
@@ -1942,7 +1960,7 @@ let gi = class extends Event {
|
|
1942
1960
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
1943
1961
|
}
|
1944
1962
|
};
|
1945
|
-
class
|
1963
|
+
class qt extends fi {
|
1946
1964
|
constructor(t, e, i) {
|
1947
1965
|
var r, n;
|
1948
1966
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
@@ -1975,7 +1993,7 @@ function vi({ context: s }) {
|
|
1975
1993
|
const i = /* @__PURE__ */ new WeakMap();
|
1976
1994
|
if (typeof e == "object")
|
1977
1995
|
return e.addInitializer(function() {
|
1978
|
-
i.set(this, new
|
1996
|
+
i.set(this, new qt(this, { context: s }));
|
1979
1997
|
}), { get() {
|
1980
1998
|
return t.get.call(this);
|
1981
1999
|
}, set(r) {
|
@@ -1987,7 +2005,7 @@ function vi({ context: s }) {
|
|
1987
2005
|
} };
|
1988
2006
|
{
|
1989
2007
|
t.constructor.addInitializer((o) => {
|
1990
|
-
i.set(o, new
|
2008
|
+
i.set(o, new qt(o, { context: s }));
|
1991
2009
|
});
|
1992
2010
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
1993
2011
|
let n;
|
@@ -2016,7 +2034,7 @@ var mi = Object.defineProperty, yi = Object.getOwnPropertyDescriptor, bi = (s, t
|
|
2016
2034
|
const $i = "application";
|
2017
2035
|
class At extends m {
|
2018
2036
|
constructor() {
|
2019
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2037
|
+
super(...arguments), this.nodes = [], this.wrapperRef = pe();
|
2020
2038
|
}
|
2021
2039
|
addChild(t) {
|
2022
2040
|
t.parent = this, this.nodes.push(t);
|
@@ -2025,7 +2043,7 @@ class At extends m {
|
|
2025
2043
|
if (!this.wrapperRef.value)
|
2026
2044
|
return;
|
2027
2045
|
const t = this.application.settings;
|
2028
|
-
t != null && t.branding &&
|
2046
|
+
t != null && t.branding && he(t.branding, this.wrapperRef.value);
|
2029
2047
|
}
|
2030
2048
|
applyStyles() {
|
2031
2049
|
if (!this.wrapperRef.value)
|
@@ -2039,12 +2057,12 @@ class At extends m {
|
|
2039
2057
|
this.applyBranding(), this.applyStyles();
|
2040
2058
|
}
|
2041
2059
|
render() {
|
2042
|
-
return 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")),
|
2043
|
-
${
|
2060
|
+
return 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")), x`<div class="widget-container" ${ue(this.wrapperRef)}>
|
2061
|
+
${ee(this.nodes, (t) => t)}
|
2044
2062
|
</div>`;
|
2045
2063
|
}
|
2046
2064
|
}
|
2047
|
-
At.styles =
|
2065
|
+
At.styles = P`
|
2048
2066
|
:host {
|
2049
2067
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2050
2068
|
--spacing-xs: 0.2rem;
|
@@ -2164,7 +2182,7 @@ var _i = Object.defineProperty, wi = Object.getOwnPropertyDescriptor, xt = (s, t
|
|
2164
2182
|
(o = s[n]) && (r = (i ? o(t, e, r) : o(r)) || r);
|
2165
2183
|
return i && r && _i(t, e, r), r;
|
2166
2184
|
};
|
2167
|
-
class
|
2185
|
+
class V extends m {
|
2168
2186
|
constructor() {
|
2169
2187
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2170
2188
|
}
|
@@ -2190,14 +2208,14 @@ class z extends m {
|
|
2190
2208
|
if (!this.widget || this.status !== "activated")
|
2191
2209
|
return u;
|
2192
2210
|
if (this.widget.renderStrategy === wt.Trigger) {
|
2193
|
-
const t = new
|
2211
|
+
const t = new _();
|
2194
2212
|
return t.application = this.widget, t;
|
2195
2213
|
}
|
2196
2214
|
return this.widget.render();
|
2197
2215
|
}
|
2198
2216
|
}
|
2199
|
-
|
2200
|
-
|
2217
|
+
V.styles = [
|
2218
|
+
P`
|
2201
2219
|
:host {
|
2202
2220
|
display: block;
|
2203
2221
|
}
|
@@ -2205,18 +2223,18 @@ z.styles = [
|
|
2205
2223
|
];
|
2206
2224
|
xt([
|
2207
2225
|
g({ attribute: !0 })
|
2208
|
-
],
|
2226
|
+
], V.prototype, "name", 2);
|
2209
2227
|
xt([
|
2210
|
-
|
2211
|
-
],
|
2228
|
+
k()
|
2229
|
+
], V.prototype, "widget", 2);
|
2212
2230
|
xt([
|
2213
|
-
|
2214
|
-
],
|
2231
|
+
k()
|
2232
|
+
], V.prototype, "status", 2);
|
2215
2233
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", bt);
|
2216
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
2217
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
2234
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", _);
|
2235
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", fe);
|
2218
2236
|
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", At);
|
2219
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
2237
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", V);
|
2220
2238
|
const Ai = (s) => {
|
2221
2239
|
const t = {};
|
2222
2240
|
return Object.keys(s).forEach((e) => {
|
@@ -2228,7 +2246,7 @@ const Ai = (s) => {
|
|
2228
2246
|
s.style.setProperty(i.replace("css-", ""), r);
|
2229
2247
|
});
|
2230
2248
|
};
|
2231
|
-
class Ci extends
|
2249
|
+
class Ci extends de(m) {
|
2232
2250
|
constructor() {
|
2233
2251
|
super(...arguments), this.nodes = [];
|
2234
2252
|
}
|
@@ -2237,11 +2255,11 @@ class Ci extends ue(m) {
|
|
2237
2255
|
return xi(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
2238
2256
|
"--columns",
|
2239
2257
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
2240
|
-
),
|
2258
|
+
), x`${ee(this.nodes, (e) => e)}`;
|
2241
2259
|
}
|
2242
2260
|
}
|
2243
2261
|
Ci.styles = [
|
2244
|
-
|
2262
|
+
P`
|
2245
2263
|
:host {
|
2246
2264
|
height: 100%;
|
2247
2265
|
display: grid;
|