@telia-ace/widget-components-area-flamingo 1.1.28-rc.2 → 1.1.28
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-e653d58f.mjs → area-539bd3a4.mjs} +357 -574
- package/area-c9421dd2.js +323 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/area-3e574351.js +0 -330
@@ -3,19 +3,19 @@
|
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
|
-
const I = globalThis,
|
7
|
-
let
|
6
|
+
const I = globalThis, Q = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, X = Symbol(), rt = /* @__PURE__ */ new WeakMap();
|
7
|
+
let ft = class {
|
8
8
|
constructor(t, e, s) {
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
9
|
+
if (this._$cssResult$ = !0, s !== X)
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
11
11
|
this.cssText = t, this.t = e;
|
12
12
|
}
|
13
13
|
get styleSheet() {
|
14
14
|
let t = this.o;
|
15
15
|
const e = this.t;
|
16
|
-
if (
|
16
|
+
if (Q && t === void 0) {
|
17
17
|
const s = e !== void 0 && e.length === 1;
|
18
|
-
s && (t =
|
18
|
+
s && (t = rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && rt.set(e, t));
|
19
19
|
}
|
20
20
|
return t;
|
21
21
|
}
|
@@ -23,38 +23,38 @@ let Ct = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const
|
27
|
-
const e = r.length === 1 ? r[0] : t.reduce((s, i,
|
28
|
-
if (
|
29
|
-
return
|
30
|
-
if (typeof
|
31
|
-
return
|
32
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " +
|
33
|
-
})(i) + r[
|
34
|
-
return new
|
35
|
-
},
|
36
|
-
if (
|
26
|
+
const Ut = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r, ...t) => {
|
27
|
+
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
28
|
+
if (o._$cssResult$ === !0)
|
29
|
+
return o.cssText;
|
30
|
+
if (typeof o == "number")
|
31
|
+
return o;
|
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
|
+
})(i) + r[n + 1], r[0]);
|
34
|
+
return new ft(e, r, X);
|
35
|
+
}, Rt = (r, t) => {
|
36
|
+
if (Q)
|
37
37
|
r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
38
38
|
else
|
39
39
|
for (const e of t) {
|
40
40
|
const s = document.createElement("style"), i = I.litNonce;
|
41
41
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
42
42
|
}
|
43
|
-
},
|
43
|
+
}, nt = Q ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
44
44
|
let e = "";
|
45
45
|
for (const s of t.cssRules)
|
46
46
|
e += s.cssText;
|
47
|
-
return
|
47
|
+
return Ut(e);
|
48
48
|
})(r) : r;
|
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: kt, defineProperty: Nt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Lt, getPrototypeOf: jt } = Object, y = globalThis, ot = y.trustedTypes, zt = ot ? ot.emptyScript : "", Y = y.reactiveElementPolyfillSupport, U = (r, t) => r, G = { toAttribute(r, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
r = r ?
|
57
|
+
r = r ? zt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -79,48 +79,48 @@ const { is: It, defineProperty: Ft, getOwnPropertyDescriptor: Wt, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} },
|
82
|
+
} }, tt = (r, t) => !kt(r, t), at = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: tt };
|
83
83
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), y.litPropertyMetadata ?? (y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
-
|
84
|
+
class C extends HTMLElement {
|
85
85
|
static addInitializer(t) {
|
86
86
|
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
87
87
|
}
|
88
88
|
static get observedAttributes() {
|
89
89
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
90
90
|
}
|
91
|
-
static createProperty(t, e =
|
91
|
+
static createProperty(t, e = at) {
|
92
92
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
93
|
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
94
|
-
i !== void 0 &&
|
94
|
+
i !== void 0 && Nt(this.prototype, t, i);
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, s) {
|
98
|
-
const { get: i, set:
|
98
|
+
const { get: i, set: n } = Mt(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
|
-
}, set(
|
101
|
-
this[e] =
|
100
|
+
}, set(o) {
|
101
|
+
this[e] = o;
|
102
102
|
} };
|
103
103
|
return { get() {
|
104
104
|
return i == null ? void 0 : i.call(this);
|
105
|
-
}, set(
|
106
|
-
const
|
107
|
-
|
105
|
+
}, set(o) {
|
106
|
+
const c = i == null ? void 0 : i.call(this);
|
107
|
+
n.call(this, o), this.requestUpdate(t, c, s);
|
108
108
|
}, configurable: !0, enumerable: !0 };
|
109
109
|
}
|
110
110
|
static getPropertyOptions(t) {
|
111
|
-
return this.elementProperties.get(t) ??
|
111
|
+
return this.elementProperties.get(t) ?? at;
|
112
112
|
}
|
113
113
|
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(
|
114
|
+
if (this.hasOwnProperty(U("elementProperties")))
|
115
115
|
return;
|
116
|
-
const t =
|
116
|
+
const t = jt(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(U("finalized")))
|
121
121
|
return;
|
122
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
123
|
-
const e = this.properties, s = [...
|
122
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
|
123
|
+
const e = this.properties, s = [...Ht(e), ...Lt(e)];
|
124
124
|
for (const i of s)
|
125
125
|
this.createProperty(i, e[i]);
|
126
126
|
}
|
@@ -143,9 +143,9 @@ let E = class extends HTMLElement {
|
|
143
143
|
if (Array.isArray(t)) {
|
144
144
|
const s = new Set(t.flat(1 / 0).reverse());
|
145
145
|
for (const i of s)
|
146
|
-
e.unshift(
|
146
|
+
e.unshift(nt(i));
|
147
147
|
} else
|
148
|
-
t !== void 0 && e.push(
|
148
|
+
t !== void 0 && e.push(nt(t));
|
149
149
|
return e;
|
150
150
|
}
|
151
151
|
static _$Eu(t, e) {
|
@@ -175,7 +175,7 @@ let E = class extends HTMLElement {
|
|
175
175
|
}
|
176
176
|
createRenderRoot() {
|
177
177
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
-
return
|
178
|
+
return Rt(t, this.constructor.elementStyles), t;
|
179
179
|
}
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
@@ -197,24 +197,24 @@ let E = class extends HTMLElement {
|
|
197
197
|
this._$AK(t, s);
|
198
198
|
}
|
199
199
|
_$EO(t, e) {
|
200
|
-
var
|
200
|
+
var n;
|
201
201
|
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
202
202
|
if (i !== void 0 && s.reflect === !0) {
|
203
|
-
const
|
204
|
-
this._$Em = t,
|
203
|
+
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : G).toAttribute(e, s.type);
|
204
|
+
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
205
205
|
}
|
206
206
|
}
|
207
207
|
_$AK(t, e) {
|
208
|
-
var
|
208
|
+
var n;
|
209
209
|
const s = this.constructor, i = s._$Eh.get(t);
|
210
210
|
if (i !== void 0 && this._$Em !== i) {
|
211
|
-
const
|
212
|
-
this._$Em = i, this[i] =
|
211
|
+
const o = s.getPropertyOptions(i), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : G;
|
212
|
+
this._$Em = i, this[i] = c.fromAttribute(e, o.type), this._$Em = null;
|
213
213
|
}
|
214
214
|
}
|
215
|
-
requestUpdate(t, e, s, i = !1,
|
215
|
+
requestUpdate(t, e, s, i = !1, n) {
|
216
216
|
if (t !== void 0) {
|
217
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ??
|
217
|
+
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? tt)(i ? n : this[t], e))
|
218
218
|
return;
|
219
219
|
this.C(t, e, s);
|
220
220
|
}
|
@@ -242,21 +242,21 @@ let E = class extends HTMLElement {
|
|
242
242
|
return;
|
243
243
|
if (!this.hasUpdated) {
|
244
244
|
if (this._$Ep) {
|
245
|
-
for (const [
|
246
|
-
this[
|
245
|
+
for (const [n, o] of this._$Ep)
|
246
|
+
this[n] = o;
|
247
247
|
this._$Ep = void 0;
|
248
248
|
}
|
249
249
|
const i = this.constructor.elementProperties;
|
250
250
|
if (i.size > 0)
|
251
|
-
for (const [
|
252
|
-
|
251
|
+
for (const [n, o] of i)
|
252
|
+
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
|
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), (s = this._$ES) == null || s.forEach((i) => {
|
258
|
-
var
|
259
|
-
return (
|
258
|
+
var n;
|
259
|
+
return (n = i.hostUpdate) == null ? void 0 : n.call(i);
|
260
260
|
}), this.update(e)) : this._$ET();
|
261
261
|
} catch (i) {
|
262
262
|
throw t = !1, this._$ET(), i;
|
@@ -291,71 +291,71 @@ let E = class extends HTMLElement {
|
|
291
291
|
}
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
|
-
}
|
295
|
-
|
294
|
+
}
|
295
|
+
C.elementStyles = [], C.shadowRootOptions = { mode: "open" }, C[U("elementProperties")] = /* @__PURE__ */ new Map(), C[U("finalized")] = /* @__PURE__ */ new Map(), Y == null || Y({ ReactiveElement: C }), (y.reactiveElementVersions ?? (y.reactiveElementVersions = [])).push("2.0.1");
|
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]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
304
|
-
function
|
301
|
+
const R = globalThis, W = R.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, Bt = `<${mt}>`, x = document, N = () => x.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", yt = Array.isArray, Dt = (r) => yt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
|
302
|
+
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, lt = /-->/g, ht = />/g, v = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, _t = /^(?:script|style|textarea|title)$/i, It = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = It(1), E = Symbol.for("lit-noChange"), h = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), w = x.createTreeWalker(x, 129);
|
304
|
+
function vt(r, t) {
|
305
305
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
307
|
-
return
|
307
|
+
return ct !== void 0 ? ct.createHTML(t) : t;
|
308
308
|
}
|
309
|
-
const
|
309
|
+
const Gt = (r, t) => {
|
310
310
|
const e = r.length - 1, s = [];
|
311
|
-
let i,
|
312
|
-
for (let
|
313
|
-
const a = r[
|
314
|
-
let
|
315
|
-
for (; u < a.length && (
|
316
|
-
u =
|
317
|
-
const
|
318
|
-
|
319
|
-
}
|
320
|
-
return [
|
311
|
+
let i, n = t === 2 ? "<svg>" : "", o = T;
|
312
|
+
for (let c = 0; c < e; c++) {
|
313
|
+
const a = r[c];
|
314
|
+
let d, p, l = -1, u = 0;
|
315
|
+
for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
|
316
|
+
u = o.lastIndex, o === T ? p[1] === "!--" ? o = lt : p[1] !== void 0 ? o = ht : p[2] !== void 0 ? (_t.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = i ?? T, l = -1) : p[1] === void 0 ? l = -2 : (l = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = v : o === lt || o === ht ? o = T : (o = v, i = void 0);
|
317
|
+
const $ = o === v && r[c + 1].startsWith("/>") ? " " : "";
|
318
|
+
n += o === T ? a + Bt : l >= 0 ? (s.push(d), a.slice(0, l) + $t + a.slice(l) + m + $) : a + m + (l === -2 ? c : $);
|
319
|
+
}
|
320
|
+
return [vt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
322
322
|
class H {
|
323
323
|
constructor({ strings: t, _$litType$: e }, s) {
|
324
324
|
let i;
|
325
325
|
this.parts = [];
|
326
|
-
let
|
327
|
-
const
|
328
|
-
if (this.el = H.createElement(
|
329
|
-
const
|
330
|
-
|
326
|
+
let n = 0, o = 0;
|
327
|
+
const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
|
328
|
+
if (this.el = H.createElement(d, s), w.currentNode = this.el.content, e === 2) {
|
329
|
+
const l = this.el.content.firstChild;
|
330
|
+
l.replaceWith(...l.childNodes);
|
331
331
|
}
|
332
|
-
for (; (i = w.nextNode()) !== null && a.length <
|
332
|
+
for (; (i = w.nextNode()) !== null && a.length < c; ) {
|
333
333
|
if (i.nodeType === 1) {
|
334
334
|
if (i.hasAttributes())
|
335
|
-
for (const
|
336
|
-
if (
|
337
|
-
const u =
|
338
|
-
a.push({ type: 1, index:
|
335
|
+
for (const l of i.getAttributeNames())
|
336
|
+
if (l.endsWith($t)) {
|
337
|
+
const u = p[o++], $ = i.getAttribute(l).split(m), B = /([.?@])?(.*)/.exec(u);
|
338
|
+
a.push({ type: 1, index: n, name: B[2], strings: $, ctor: B[1] === "." ? Vt : B[1] === "?" ? qt : B[1] === "@" ? Yt : q }), i.removeAttribute(l);
|
339
339
|
} else
|
340
|
-
|
341
|
-
if (
|
342
|
-
const
|
340
|
+
l.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(l));
|
341
|
+
if (_t.test(i.tagName)) {
|
342
|
+
const l = i.textContent.split(m), u = l.length - 1;
|
343
343
|
if (u > 0) {
|
344
344
|
i.textContent = W ? W.emptyScript : "";
|
345
|
-
for (let
|
346
|
-
i.append(
|
347
|
-
i.append(
|
345
|
+
for (let $ = 0; $ < u; $++)
|
346
|
+
i.append(l[$], N()), w.nextNode(), a.push({ type: 2, index: ++n });
|
347
|
+
i.append(l[u], N());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (i.nodeType === 8)
|
351
|
-
if (i.data ===
|
352
|
-
a.push({ type: 2, index:
|
351
|
+
if (i.data === mt)
|
352
|
+
a.push({ type: 2, index: n });
|
353
353
|
else {
|
354
|
-
let
|
355
|
-
for (; (
|
356
|
-
a.push({ type: 7, index:
|
354
|
+
let l = -1;
|
355
|
+
for (; (l = i.data.indexOf(m, l + 1)) !== -1; )
|
356
|
+
a.push({ type: 7, index: n }), l += m.length - 1;
|
357
357
|
}
|
358
|
-
|
358
|
+
n++;
|
359
359
|
}
|
360
360
|
}
|
361
361
|
static createElement(t, e) {
|
@@ -364,14 +364,14 @@ class H {
|
|
364
364
|
}
|
365
365
|
}
|
366
366
|
function S(r, t, e = r, s) {
|
367
|
-
var
|
368
|
-
if (t ===
|
367
|
+
var o, c;
|
368
|
+
if (t === E)
|
369
369
|
return t;
|
370
|
-
let i = s !== void 0 ? (
|
371
|
-
const
|
372
|
-
return (i == null ? void 0 : i.constructor) !==
|
370
|
+
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
371
|
+
const n = M(t) ? void 0 : t._$litDirective$;
|
372
|
+
return (i == null ? void 0 : i.constructor) !== n && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
|
373
373
|
}
|
374
|
-
class
|
374
|
+
class Wt {
|
375
375
|
constructor(t, e) {
|
376
376
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
377
|
}
|
@@ -384,13 +384,13 @@ class Qt {
|
|
384
384
|
u(t) {
|
385
385
|
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? x).importNode(e, !0);
|
386
386
|
w.currentNode = i;
|
387
|
-
let
|
387
|
+
let n = w.nextNode(), o = 0, c = 0, a = s[0];
|
388
388
|
for (; a !== void 0; ) {
|
389
|
-
if (
|
390
|
-
let
|
391
|
-
a.type === 2 ?
|
389
|
+
if (o === a.index) {
|
390
|
+
let d;
|
391
|
+
a.type === 2 ? d = new L(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Jt(n, this, t)), this._$AV.push(d), a = s[++c];
|
392
392
|
}
|
393
|
-
|
393
|
+
o !== (a == null ? void 0 : a.index) && (n = w.nextNode(), o++);
|
394
394
|
}
|
395
395
|
return w.currentNode = x, i;
|
396
396
|
}
|
@@ -400,13 +400,13 @@ class Qt {
|
|
400
400
|
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
401
401
|
}
|
402
402
|
}
|
403
|
-
class
|
403
|
+
class L {
|
404
404
|
get _$AU() {
|
405
405
|
var t;
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
407
|
}
|
408
408
|
constructor(t, e, s, i) {
|
409
|
-
this.type = 2, this._$AH =
|
409
|
+
this.type = 2, this._$AH = h, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cv = (i == null ? void 0 : i.isConnected) ?? !0;
|
410
410
|
}
|
411
411
|
get parentNode() {
|
412
412
|
let t = this._$AA.parentNode;
|
@@ -420,7 +420,7 @@ class j {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t = S(this, t, e), M(t) ? t ===
|
423
|
+
t = S(this, t, e), M(t) ? t === h || t == null || t === "" ? (this._$AH !== h && this._$AR(), this._$AH = h) : t !== this._$AH && t !== E && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Dt(t) ? this.T(t) : this._(t);
|
424
424
|
}
|
425
425
|
k(t) {
|
426
426
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -429,28 +429,28 @@ class j {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !==
|
432
|
+
this._$AH !== h && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(x.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
g(t) {
|
435
|
-
var
|
436
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(
|
437
|
-
if (((
|
435
|
+
var n;
|
436
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(vt(s.h, s.h[0]), this.options)), s);
|
437
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
440
|
-
const
|
441
|
-
|
440
|
+
const o = new Wt(i, this), c = o.u(this.options);
|
441
|
+
o.p(e), this.$(c), this._$AH = o;
|
442
442
|
}
|
443
443
|
}
|
444
444
|
_$AC(t) {
|
445
|
-
let e =
|
446
|
-
return e === void 0 &&
|
445
|
+
let e = ut.get(t.strings);
|
446
|
+
return e === void 0 && ut.set(t.strings, e = new H(t)), e;
|
447
447
|
}
|
448
448
|
T(t) {
|
449
|
-
|
449
|
+
yt(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
451
|
let s, i = 0;
|
452
|
-
for (const
|
453
|
-
i === e.length ? e.push(s = new
|
452
|
+
for (const n of t)
|
453
|
+
i === e.length ? e.push(s = new L(this.k(N()), this.k(N()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
454
454
|
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
455
455
|
}
|
456
456
|
_$AR(t = this._$AA.nextSibling, e) {
|
@@ -465,65 +465,65 @@ class j {
|
|
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
|
}
|
472
472
|
get _$AU() {
|
473
473
|
return this._$AM._$AU;
|
474
474
|
}
|
475
|
-
constructor(t, e, s, i,
|
476
|
-
this.type = 1, this._$AH =
|
475
|
+
constructor(t, e, s, i, n) {
|
476
|
+
this.type = 1, this._$AH = h, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = h;
|
477
477
|
}
|
478
478
|
_$AI(t, e = this, s, i) {
|
479
|
-
const
|
480
|
-
let
|
481
|
-
if (
|
482
|
-
t = S(this, t, e, 0),
|
479
|
+
const n = this.strings;
|
480
|
+
let o = !1;
|
481
|
+
if (n === void 0)
|
482
|
+
t = S(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== E, o && (this._$AH = t);
|
483
483
|
else {
|
484
|
-
const
|
485
|
-
let a,
|
486
|
-
for (t =
|
487
|
-
|
484
|
+
const c = t;
|
485
|
+
let a, d;
|
486
|
+
for (t = n[0], a = 0; a < n.length - 1; a++)
|
487
|
+
d = S(this, c[s + a], e, a), d === E && (d = this._$AH[a]), o || (o = !M(d) || d !== this._$AH[a]), d === h ? t = h : t !== h && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
|
488
488
|
}
|
489
|
-
|
489
|
+
o && !i && this.O(t);
|
490
490
|
}
|
491
491
|
O(t) {
|
492
|
-
t ===
|
492
|
+
t === h ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class
|
495
|
+
class Vt extends q {
|
496
496
|
constructor() {
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
499
499
|
O(t) {
|
500
|
-
this.element[this.name] = t ===
|
500
|
+
this.element[this.name] = t === h ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class
|
503
|
+
class qt extends q {
|
504
504
|
constructor() {
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
507
507
|
O(t) {
|
508
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
508
|
+
this.element.toggleAttribute(this.name, !!t && t !== h);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class
|
512
|
-
constructor(t, e, s, i,
|
513
|
-
super(t, e, s, i,
|
511
|
+
class Yt extends q {
|
512
|
+
constructor(t, e, s, i, n) {
|
513
|
+
super(t, e, s, i, n), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t = S(this, t, e, 0) ??
|
516
|
+
if ((t = S(this, t, e, 0) ?? h) === E)
|
517
517
|
return;
|
518
|
-
const s = this._$AH, i = t ===
|
519
|
-
i && this.element.removeEventListener(this.name, this, s),
|
518
|
+
const s = this._$AH, i = t === h && s !== h || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== h && (s === h || i);
|
519
|
+
i && this.element.removeEventListener(this.name, this, s), n && 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 Jt {
|
527
527
|
constructor(t, e, s) {
|
528
528
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
529
529
|
}
|
@@ -534,14 +534,14 @@ class ie {
|
|
534
534
|
S(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const K =
|
538
|
-
K == null || K(H,
|
539
|
-
const
|
537
|
+
const K = R.litHtmlPolyfillSupport;
|
538
|
+
K == null || K(H, L), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.0.2");
|
539
|
+
const Kt = (r, t, e) => {
|
540
540
|
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
541
|
let i = s._$litPart$;
|
542
542
|
if (i === void 0) {
|
543
|
-
const
|
544
|
-
s._$litPart$ = i = new
|
543
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
+
s._$litPart$ = i = new L(t.insertBefore(N(), n), n, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return i._$AI(r), i;
|
547
547
|
};
|
@@ -550,7 +550,7 @@ const re = (r, t, e) => {
|
|
550
550
|
* Copyright 2017 Google LLC
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
552
552
|
*/
|
553
|
-
let f = class extends
|
553
|
+
let f = class extends C {
|
554
554
|
constructor() {
|
555
555
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
556
556
|
}
|
@@ -561,7 +561,7 @@ let f = class extends E {
|
|
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 = Kt(e, this.renderRoot, this.renderOptions);
|
565
565
|
}
|
566
566
|
connectedCallback() {
|
567
567
|
var t;
|
@@ -572,20 +572,20 @@ let f = class extends E {
|
|
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
|
-
f._$litElement$ = !0, f.finalized = !0, (
|
580
|
-
const
|
581
|
-
|
578
|
+
var gt;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: f });
|
580
|
+
const Z = globalThis.litElementPolyfillSupport;
|
581
|
+
Z == null || Z({ LitElement: f });
|
582
582
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
583
583
|
/**
|
584
584
|
* @license
|
585
585
|
* Copyright 2021 Google LLC
|
586
586
|
* SPDX-License-Identifier: BSD-3-Clause
|
587
587
|
*/
|
588
|
-
function*
|
588
|
+
function* bt(r, t) {
|
589
589
|
if (r !== void 0) {
|
590
590
|
let e = 0;
|
591
591
|
for (const s of r)
|
@@ -597,8 +597,48 @@ function* kt(r, t) {
|
|
597
597
|
* Copyright 2017 Google LLC
|
598
598
|
* SPDX-License-Identifier: BSD-3-Clause
|
599
599
|
*/
|
600
|
-
const
|
601
|
-
|
600
|
+
const Zt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: tt }, Ft = (r = Zt, t, e) => {
|
601
|
+
const { kind: s, metadata: i } = e;
|
602
|
+
let n = globalThis.litPropertyMetadata.get(i);
|
603
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
|
604
|
+
const { name: o } = e;
|
605
|
+
return { set(c) {
|
606
|
+
const a = t.get.call(this);
|
607
|
+
t.set.call(this, c), this.requestUpdate(o, a, r);
|
608
|
+
}, init(c) {
|
609
|
+
return c !== void 0 && this.C(o, void 0, r), c;
|
610
|
+
} };
|
611
|
+
}
|
612
|
+
if (s === "setter") {
|
613
|
+
const { name: o } = e;
|
614
|
+
return function(c) {
|
615
|
+
const a = this[o];
|
616
|
+
t.call(this, c), this.requestUpdate(o, a, r);
|
617
|
+
};
|
618
|
+
}
|
619
|
+
throw Error("Unsupported decorator location: " + s);
|
620
|
+
};
|
621
|
+
function g(r) {
|
622
|
+
return (t, e) => typeof e == "object" ? Ft(r, t, e) : ((s, i, n) => {
|
623
|
+
const o = i.hasOwnProperty(n);
|
624
|
+
return i.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
625
|
+
})(r, t, e);
|
626
|
+
}
|
627
|
+
/**
|
628
|
+
* @license
|
629
|
+
* Copyright 2017 Google LLC
|
630
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
631
|
+
*/
|
632
|
+
function O(r) {
|
633
|
+
return g({ ...r, state: !0, attribute: !1 });
|
634
|
+
}
|
635
|
+
/**
|
636
|
+
* @license
|
637
|
+
* Copyright 2017 Google LLC
|
638
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
639
|
+
*/
|
640
|
+
const At = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
641
|
+
class xt {
|
602
642
|
constructor(t) {
|
603
643
|
}
|
604
644
|
get _$AU() {
|
@@ -613,74 +653,123 @@ let Nt = class {
|
|
613
653
|
update(t, e) {
|
614
654
|
return this.render(...e);
|
615
655
|
}
|
656
|
+
}
|
657
|
+
/**
|
658
|
+
* @license
|
659
|
+
* Copyright 2018 Google LLC
|
660
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
661
|
+
*/
|
662
|
+
const Qt = wt(class extends xt {
|
663
|
+
constructor(r) {
|
664
|
+
var t;
|
665
|
+
if (super(r), r.type !== At.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
666
|
+
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
667
|
+
}
|
668
|
+
render(r) {
|
669
|
+
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
670
|
+
}
|
671
|
+
update(r, [t]) {
|
672
|
+
var s, i;
|
673
|
+
if (this.it === void 0) {
|
674
|
+
this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
675
|
+
for (const n in t)
|
676
|
+
t[n] && !((s = this.st) != null && s.has(n)) && this.it.add(n);
|
677
|
+
return this.render(t);
|
678
|
+
}
|
679
|
+
const e = r.element.classList;
|
680
|
+
for (const n of this.it)
|
681
|
+
n in t || (e.remove(n), this.it.delete(n));
|
682
|
+
for (const n in t) {
|
683
|
+
const o = !!t[n];
|
684
|
+
o === this.it.has(n) || (i = this.st) != null && i.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
|
685
|
+
}
|
686
|
+
return E;
|
687
|
+
}
|
688
|
+
}), D = (r, t, e) => {
|
689
|
+
r && e.style.setProperty(t, r);
|
690
|
+
}, Et = (r, t) => {
|
691
|
+
var e, s, i, n;
|
692
|
+
D((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), D(
|
693
|
+
(s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
694
|
+
"--text-on-primary-background",
|
695
|
+
t
|
696
|
+
), D(
|
697
|
+
(i = r.colors) == null ? void 0 : i.secondaryBackground,
|
698
|
+
"--secondary-background",
|
699
|
+
t
|
700
|
+
), D(
|
701
|
+
(n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
702
|
+
"--text-on-secondary-background",
|
703
|
+
t
|
704
|
+
);
|
616
705
|
};
|
617
706
|
/**
|
618
707
|
* @license
|
619
708
|
* Copyright 2020 Google LLC
|
620
709
|
* SPDX-License-Identifier: BSD-3-Clause
|
621
710
|
*/
|
622
|
-
const
|
711
|
+
const Xt = (r) => r.strings === void 0;
|
623
712
|
/**
|
624
713
|
* @license
|
625
714
|
* Copyright 2017 Google LLC
|
626
715
|
* SPDX-License-Identifier: BSD-3-Clause
|
627
716
|
*/
|
628
|
-
const
|
717
|
+
const k = (r, t) => {
|
629
718
|
var s;
|
630
719
|
const e = r._$AN;
|
631
720
|
if (e === void 0)
|
632
721
|
return !1;
|
633
722
|
for (const i of e)
|
634
|
-
(s = i._$AO) == null || s.call(i, t, !1),
|
723
|
+
(s = i._$AO) == null || s.call(i, t, !1), k(i, t);
|
635
724
|
return !0;
|
636
|
-
},
|
725
|
+
}, V = (r) => {
|
637
726
|
let t, e;
|
638
727
|
do {
|
639
728
|
if ((t = r._$AM) === void 0)
|
640
729
|
break;
|
641
730
|
e = t._$AN, e.delete(r), r = t;
|
642
731
|
} while ((e == null ? void 0 : e.size) === 0);
|
643
|
-
},
|
732
|
+
}, Ct = (r) => {
|
644
733
|
for (let t; t = r._$AM; r = t) {
|
645
734
|
let e = t._$AN;
|
646
735
|
if (e === void 0)
|
647
736
|
t._$AN = e = /* @__PURE__ */ new Set();
|
648
737
|
else if (e.has(r))
|
649
738
|
break;
|
650
|
-
e.add(r),
|
739
|
+
e.add(r), se(t);
|
651
740
|
}
|
652
741
|
};
|
653
|
-
function
|
654
|
-
this._$AN !== void 0 ? (
|
742
|
+
function te(r) {
|
743
|
+
this._$AN !== void 0 ? (V(this), this._$AM = r, Ct(this)) : this._$AM = r;
|
655
744
|
}
|
656
|
-
function
|
745
|
+
function ee(r, t = !1, e = 0) {
|
657
746
|
const s = this._$AH, i = this._$AN;
|
658
747
|
if (i !== void 0 && i.size !== 0)
|
659
748
|
if (t)
|
660
749
|
if (Array.isArray(s))
|
661
|
-
for (let
|
662
|
-
|
750
|
+
for (let n = e; n < s.length; n++)
|
751
|
+
k(s[n], !1), V(s[n]);
|
663
752
|
else
|
664
|
-
s != null && (
|
753
|
+
s != null && (k(s, !1), V(s));
|
665
754
|
else
|
666
|
-
|
755
|
+
k(this, r);
|
667
756
|
}
|
668
|
-
const
|
669
|
-
r.type ==
|
757
|
+
const se = (r) => {
|
758
|
+
r.type == At.CHILD && (r._$AP ?? (r._$AP = ee), r._$AQ ?? (r._$AQ = te));
|
670
759
|
};
|
671
|
-
class
|
760
|
+
class ie extends xt {
|
672
761
|
constructor() {
|
673
762
|
super(...arguments), this._$AN = void 0;
|
674
763
|
}
|
675
764
|
_$AT(t, e, s) {
|
676
|
-
super._$AT(t, e, s),
|
765
|
+
super._$AT(t, e, s), Ct(this), this.isConnected = t._$AU;
|
677
766
|
}
|
678
767
|
_$AO(t, e = !0) {
|
679
768
|
var s, i;
|
680
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (
|
769
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (k(this, t), V(this));
|
681
770
|
}
|
682
771
|
setValue(t) {
|
683
|
-
if (
|
772
|
+
if (Xt(this._$Ct))
|
684
773
|
this._$Ct._$AI(t, this);
|
685
774
|
else {
|
686
775
|
const e = [...this._$Ct._$AH];
|
@@ -692,328 +781,34 @@ class Rt extends Nt {
|
|
692
781
|
reconnected() {
|
693
782
|
}
|
694
783
|
}
|
695
|
-
const le = /* @__PURE__ */ new WeakMap();
|
696
|
-
let yt = 0;
|
697
|
-
const J = /* @__PURE__ */ new Map(), vt = /* @__PURE__ */ new WeakSet(), _t = () => new Promise((r) => requestAnimationFrame(r)), ce = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], bt = (r, t) => {
|
698
|
-
const e = r - t;
|
699
|
-
return e === 0 ? void 0 : e;
|
700
|
-
}, At = (r, t) => {
|
701
|
-
const e = r / t;
|
702
|
-
return e === 1 ? void 0 : e;
|
703
|
-
}, Z = { left: (r, t) => {
|
704
|
-
const e = bt(r, t);
|
705
|
-
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
706
|
-
}, top: (r, t) => {
|
707
|
-
const e = bt(r, t);
|
708
|
-
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
709
|
-
}, width: (r, t) => {
|
710
|
-
let e;
|
711
|
-
t === 0 && (t = 1, e = { width: "1px" });
|
712
|
-
const s = At(r, t);
|
713
|
-
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
|
714
|
-
}, height: (r, t) => {
|
715
|
-
let e;
|
716
|
-
t === 0 && (t = 1, e = { height: "1px" });
|
717
|
-
const s = At(r, t);
|
718
|
-
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
719
|
-
} }, de = { duration: 333, easing: "ease-in-out" }, pe = ["left", "top", "width", "height", "opacity", "color", "background"], wt = /* @__PURE__ */ new WeakMap();
|
720
|
-
class ue extends Rt {
|
721
|
-
constructor(t) {
|
722
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === it.CHILD)
|
723
|
-
throw Error("The `animate` directive must be used in attribute position.");
|
724
|
-
this.createFinished();
|
725
|
-
}
|
726
|
-
createFinished() {
|
727
|
-
var t;
|
728
|
-
(t = this.resolveFinished) == null || t.call(this), this.finished = new Promise((e) => {
|
729
|
-
this.h = e;
|
730
|
-
});
|
731
|
-
}
|
732
|
-
async resolveFinished() {
|
733
|
-
var t;
|
734
|
-
(t = this.h) == null || t.call(this), this.h = void 0;
|
735
|
-
}
|
736
|
-
render(t) {
|
737
|
-
return p;
|
738
|
-
}
|
739
|
-
getController() {
|
740
|
-
return le.get(this.l);
|
741
|
-
}
|
742
|
-
isDisabled() {
|
743
|
-
var t;
|
744
|
-
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
745
|
-
}
|
746
|
-
update(t, [e]) {
|
747
|
-
var i;
|
748
|
-
const s = this.l === void 0;
|
749
|
-
return s && (this.l = (i = t.options) == null ? void 0 : i.host, this.l.addController(this), this.element = t.element, wt.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.u(e), this.render(e);
|
750
|
-
}
|
751
|
-
u(t) {
|
752
|
-
t = t ?? {};
|
753
|
-
const e = this.getController();
|
754
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = pe), this.options = t;
|
755
|
-
}
|
756
|
-
p() {
|
757
|
-
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
758
|
-
return this.options.properties.forEach((i) => {
|
759
|
-
const o = e[i] ?? (Z[i] ? void 0 : s[i]), n = Number(o);
|
760
|
-
t[i] = isNaN(n) ? o + "" : n;
|
761
|
-
}), t;
|
762
|
-
}
|
763
|
-
m() {
|
764
|
-
let t, e = !0;
|
765
|
-
return this.options.guard && (t = this.options.guard(), e = ((s, i) => {
|
766
|
-
if (Array.isArray(s)) {
|
767
|
-
if (Array.isArray(i) && i.length === s.length && s.every((o, n) => o === i[n]))
|
768
|
-
return !1;
|
769
|
-
} else if (i === s)
|
770
|
-
return !1;
|
771
|
-
return !0;
|
772
|
-
})(t, this.v)), this.o = this.l.hasUpdated && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.o && (this.v = Array.isArray(t) ? Array.from(t) : t), this.o;
|
773
|
-
}
|
774
|
-
hostUpdate() {
|
775
|
-
typeof this.optionsOrCallback == "function" && this.u(this.optionsOrCallback()), this.m() && (this.g = this.p(), this.t = this.t ?? this.element.parentNode, this.i = this.element.nextSibling);
|
776
|
-
}
|
777
|
-
async hostUpdated() {
|
778
|
-
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
779
|
-
return;
|
780
|
-
let t;
|
781
|
-
this.prepare(), await _t;
|
782
|
-
const e = this._(), s = this.A(this.options.keyframeOptions, e), i = this.p();
|
783
|
-
if (this.g !== void 0) {
|
784
|
-
const { from: o, to: n } = this.O(this.g, i, e);
|
785
|
-
this.log("measured", [this.g, i, o, n]), t = this.calculateKeyframes(o, n);
|
786
|
-
} else {
|
787
|
-
const o = J.get(this.options.inId);
|
788
|
-
if (o) {
|
789
|
-
J.delete(this.options.inId);
|
790
|
-
const { from: n, to: h } = this.O(o, i, e);
|
791
|
-
t = this.calculateKeyframes(n, h), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, yt++, t.forEach((a) => a.zIndex = yt);
|
792
|
-
} else
|
793
|
-
this.options.in && (t = [...this.options.in, {}]);
|
794
|
-
}
|
795
|
-
this.animate(t, s);
|
796
|
-
}
|
797
|
-
resetStyles() {
|
798
|
-
this.j !== void 0 && (this.element.setAttribute("style", this.j ?? ""), this.j = void 0);
|
799
|
-
}
|
800
|
-
commitStyles() {
|
801
|
-
var t, e;
|
802
|
-
this.j = this.element.getAttribute("style"), (t = this.webAnimation) == null || t.commitStyles(), (e = this.webAnimation) == null || e.cancel();
|
803
|
-
}
|
804
|
-
reconnected() {
|
805
|
-
}
|
806
|
-
async disconnected() {
|
807
|
-
var e;
|
808
|
-
if (!this.o || (this.options.id !== void 0 && J.set(this.options.id, this.g), this.options.out === void 0))
|
809
|
-
return;
|
810
|
-
if (this.prepare(), await _t(), (e = this.t) == null ? void 0 : e.isConnected) {
|
811
|
-
const s = this.i && this.i.parentNode === this.t ? this.i : null;
|
812
|
-
if (this.t.insertBefore(this.element, s), this.options.stabilizeOut) {
|
813
|
-
const i = this.p();
|
814
|
-
this.log("stabilizing out");
|
815
|
-
const o = this.g.left - i.left, n = this.g.top - i.top;
|
816
|
-
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");
|
817
|
-
}
|
818
|
-
}
|
819
|
-
const t = this.A(this.options.keyframeOptions);
|
820
|
-
await this.animate(this.options.out, t), this.element.remove();
|
821
|
-
}
|
822
|
-
prepare() {
|
823
|
-
this.createFinished();
|
824
|
-
}
|
825
|
-
start() {
|
826
|
-
var t, e;
|
827
|
-
(e = (t = this.options).onStart) == null || e.call(t, this);
|
828
|
-
}
|
829
|
-
didFinish(t) {
|
830
|
-
var e, s;
|
831
|
-
t && ((s = (e = this.options).onComplete) == null || s.call(e, this)), this.g = void 0, this.animatingProperties = void 0, this.frames = void 0, this.resolveFinished();
|
832
|
-
}
|
833
|
-
_() {
|
834
|
-
const t = [];
|
835
|
-
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
836
|
-
const s = wt.get(e);
|
837
|
-
s && !s.isDisabled() && s && t.push(s);
|
838
|
-
}
|
839
|
-
return t;
|
840
|
-
}
|
841
|
-
get isHostRendered() {
|
842
|
-
const t = vt.has(this.l);
|
843
|
-
return t || this.l.updateComplete.then(() => {
|
844
|
-
vt.add(this.l);
|
845
|
-
}), t;
|
846
|
-
}
|
847
|
-
A(t, e = this._()) {
|
848
|
-
const s = { ...de };
|
849
|
-
return e.forEach((i) => Object.assign(s, i.options.keyframeOptions)), Object.assign(s, t), s;
|
850
|
-
}
|
851
|
-
O(t, e, s) {
|
852
|
-
t = { ...t }, e = { ...e };
|
853
|
-
const i = s.map((h) => h.animatingProperties).filter((h) => h !== void 0);
|
854
|
-
let o = 1, n = 1;
|
855
|
-
return i !== void 0 && (i.forEach((h) => {
|
856
|
-
h.width && (o /= h.width), h.height && (n /= h.height);
|
857
|
-
}), 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 };
|
858
|
-
}
|
859
|
-
calculateKeyframes(t, e, s = !1) {
|
860
|
-
const i = {}, o = {};
|
861
|
-
let n = !1;
|
862
|
-
const h = {};
|
863
|
-
for (const a in e) {
|
864
|
-
const l = t[a], c = e[a];
|
865
|
-
if (a in Z) {
|
866
|
-
const d = Z[a];
|
867
|
-
if (l === void 0 || c === void 0)
|
868
|
-
continue;
|
869
|
-
const u = d(l, c);
|
870
|
-
u.transform !== void 0 && (h[a] = u.value, n = !0, i.transform = `${i.transform ?? ""} ${u.transform}`, u.overrideFrom !== void 0 && Object.assign(i, u.overrideFrom));
|
871
|
-
} else
|
872
|
-
l !== c && l !== void 0 && c !== void 0 && (n = !0, i[a] = l, o[a] = c);
|
873
|
-
}
|
874
|
-
return i.transformOrigin = o.transformOrigin = s ? "center center" : "top left", this.animatingProperties = h, n ? [i, o] : void 0;
|
875
|
-
}
|
876
|
-
async animate(t, e = this.options.keyframeOptions) {
|
877
|
-
this.start(), this.frames = t;
|
878
|
-
let s = !1;
|
879
|
-
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
880
|
-
this.log("animate", [t, e]), s = !0, this.webAnimation = this.element.animate(t, e);
|
881
|
-
const i = this.getController();
|
882
|
-
i == null || i.add(this);
|
883
|
-
try {
|
884
|
-
await this.webAnimation.finished;
|
885
|
-
} catch {
|
886
|
-
}
|
887
|
-
i == null || i.remove(this);
|
888
|
-
}
|
889
|
-
return this.didFinish(s), s;
|
890
|
-
}
|
891
|
-
isAnimating() {
|
892
|
-
var t, e;
|
893
|
-
return ((t = this.webAnimation) == null ? void 0 : t.playState) === "running" || ((e = this.webAnimation) == null ? void 0 : e.pending);
|
894
|
-
}
|
895
|
-
log(t, e) {
|
896
|
-
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
897
|
-
}
|
898
|
-
}
|
899
|
-
const ge = rt(ue);
|
900
|
-
/**
|
901
|
-
* @license
|
902
|
-
* Copyright 2017 Google LLC
|
903
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
904
|
-
*/
|
905
|
-
const fe = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: st }, me = (r = fe, t, e) => {
|
906
|
-
const { kind: s, metadata: i } = e;
|
907
|
-
let o = globalThis.litPropertyMetadata.get(i);
|
908
|
-
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
|
909
|
-
const { name: n } = e;
|
910
|
-
return { set(h) {
|
911
|
-
const a = t.get.call(this);
|
912
|
-
t.set.call(this, h), this.requestUpdate(n, a, r);
|
913
|
-
}, init(h) {
|
914
|
-
return h !== void 0 && this.C(n, void 0, r), h;
|
915
|
-
} };
|
916
|
-
}
|
917
|
-
if (s === "setter") {
|
918
|
-
const { name: n } = e;
|
919
|
-
return function(h) {
|
920
|
-
const a = this[n];
|
921
|
-
t.call(this, h), this.requestUpdate(n, a, r);
|
922
|
-
};
|
923
|
-
}
|
924
|
-
throw Error("Unsupported decorator location: " + s);
|
925
|
-
};
|
926
|
-
function g(r) {
|
927
|
-
return (t, e) => typeof e == "object" ? me(r, t, e) : ((s, i, o) => {
|
928
|
-
const n = i.hasOwnProperty(o);
|
929
|
-
return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : void 0;
|
930
|
-
})(r, t, e);
|
931
|
-
}
|
932
|
-
/**
|
933
|
-
* @license
|
934
|
-
* Copyright 2017 Google LLC
|
935
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
936
|
-
*/
|
937
|
-
function O(r) {
|
938
|
-
return g({ ...r, state: !0, attribute: !1 });
|
939
|
-
}
|
940
|
-
/**
|
941
|
-
* @license
|
942
|
-
* Copyright 2018 Google LLC
|
943
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
944
|
-
*/
|
945
|
-
const $e = rt(class extends Nt {
|
946
|
-
constructor(r) {
|
947
|
-
var t;
|
948
|
-
if (super(r), r.type !== it.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
949
|
-
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
950
|
-
}
|
951
|
-
render(r) {
|
952
|
-
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
953
|
-
}
|
954
|
-
update(r, [t]) {
|
955
|
-
var s, i;
|
956
|
-
if (this.it === void 0) {
|
957
|
-
this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((o) => o !== "")));
|
958
|
-
for (const o in t)
|
959
|
-
t[o] && !((s = this.st) != null && s.has(o)) && this.it.add(o);
|
960
|
-
return this.render(t);
|
961
|
-
}
|
962
|
-
const e = r.element.classList;
|
963
|
-
for (const o of this.it)
|
964
|
-
o in t || (e.remove(o), this.it.delete(o));
|
965
|
-
for (const o in t) {
|
966
|
-
const n = !!t[o];
|
967
|
-
n === this.it.has(o) || (i = this.st) != null && i.has(o) || (n ? (e.add(o), this.it.add(o)) : (e.remove(o), this.it.delete(o)));
|
968
|
-
}
|
969
|
-
return C;
|
970
|
-
}
|
971
|
-
}), B = (r, t, e) => {
|
972
|
-
r && e.style.setProperty(t, r);
|
973
|
-
}, Mt = (r, t) => {
|
974
|
-
var e, s, i, o;
|
975
|
-
B((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
|
976
|
-
(s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
977
|
-
"--text-on-primary-background",
|
978
|
-
t
|
979
|
-
), B(
|
980
|
-
(i = r.colors) == null ? void 0 : i.secondaryBackground,
|
981
|
-
"--secondary-background",
|
982
|
-
t
|
983
|
-
), B(
|
984
|
-
(o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
985
|
-
"--text-on-secondary-background",
|
986
|
-
t
|
987
|
-
);
|
988
|
-
};
|
989
784
|
/**
|
990
785
|
* @license
|
991
786
|
* Copyright 2020 Google LLC
|
992
787
|
* SPDX-License-Identifier: BSD-3-Clause
|
993
788
|
*/
|
994
|
-
const
|
995
|
-
class
|
789
|
+
const St = () => new re();
|
790
|
+
class re {
|
996
791
|
}
|
997
|
-
const
|
792
|
+
const F = /* @__PURE__ */ new WeakMap(), Pt = wt(class extends ie {
|
998
793
|
render(r) {
|
999
|
-
return
|
794
|
+
return h;
|
1000
795
|
}
|
1001
796
|
update(r, [t]) {
|
1002
797
|
var s;
|
1003
798
|
const e = t !== this.G;
|
1004
|
-
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)),
|
799
|
+
return e && this.G !== void 0 && this.ot(void 0), (e || this.rt !== this.lt) && (this.G = t, this.ct = (s = r.options) == null ? void 0 : s.host, this.ot(this.lt = r.element)), h;
|
1005
800
|
}
|
1006
801
|
ot(r) {
|
1007
802
|
if (typeof this.G == "function") {
|
1008
803
|
const t = this.ct ?? globalThis;
|
1009
|
-
let e =
|
1010
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
804
|
+
let e = F.get(t);
|
805
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), F.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
|
1011
806
|
} else
|
1012
807
|
this.G.value = r;
|
1013
808
|
}
|
1014
809
|
get rt() {
|
1015
810
|
var r, t;
|
1016
|
-
return typeof this.G == "function" ? (r =
|
811
|
+
return typeof this.G == "function" ? (r = F.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
1017
812
|
}
|
1018
813
|
disconnected() {
|
1019
814
|
this.rt === this.lt && this.ot(void 0);
|
@@ -1022,14 +817,14 @@ const Q = /* @__PURE__ */ new WeakMap(), jt = rt(class extends Rt {
|
|
1022
817
|
this.ot(this.lt);
|
1023
818
|
}
|
1024
819
|
});
|
1025
|
-
var
|
1026
|
-
for (var i = s > 1 ? void 0 : s ?
|
1027
|
-
(
|
1028
|
-
return s && i &&
|
820
|
+
var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, j = (r, t, e, s) => {
|
821
|
+
for (var i = s > 1 ? void 0 : s ? oe(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
822
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
823
|
+
return s && i && ne(t, e, i), i;
|
1029
824
|
};
|
1030
|
-
class
|
825
|
+
class _ extends f {
|
1031
826
|
constructor() {
|
1032
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef =
|
827
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = St();
|
1033
828
|
}
|
1034
829
|
async connectedCallback() {
|
1035
830
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding(), this.offset > 0 && this.buttonRef.value && (this.buttonRef.value.style.right = `calc(${this.offset}px + 20px)`);
|
@@ -1046,30 +841,30 @@ class v extends f {
|
|
1046
841
|
}
|
1047
842
|
_applyBranding() {
|
1048
843
|
var t;
|
1049
|
-
(t = this.application) != null && t.settings &&
|
844
|
+
(t = this.application) != null && t.settings && Et(this.application.settings.branding, this);
|
1050
845
|
}
|
1051
846
|
async _renderSymbol() {
|
1052
|
-
var
|
1053
|
-
const t = (
|
847
|
+
var c, a, d;
|
848
|
+
const t = (c = this.application) == null ? void 0 : c.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
|
1054
849
|
if (e)
|
1055
850
|
return A` <img src=${e} class="trigger-icon" alt="" /> `;
|
1056
|
-
const s = (
|
851
|
+
const s = (d = this.application) == null ? void 0 : d.triggerIcon;
|
1057
852
|
if (!s)
|
1058
|
-
return
|
1059
|
-
const i = async (
|
1060
|
-
(u) => u[
|
1061
|
-
), { type:
|
1062
|
-
switch (
|
853
|
+
return h;
|
854
|
+
const i = async (p) => await import("./index-5087564d.mjs").then(
|
855
|
+
(u) => u[p]
|
856
|
+
), { type: n, content: o } = s;
|
857
|
+
switch (n) {
|
1063
858
|
case "Telia": {
|
1064
|
-
const
|
1065
|
-
return
|
859
|
+
const p = await i(o);
|
860
|
+
return p ? A`<telia-icon
|
1066
861
|
class="trigger-icon"
|
1067
|
-
svg=${
|
862
|
+
svg=${p.svg}
|
1068
863
|
size="lg"
|
1069
|
-
></telia-icon>` :
|
864
|
+
></telia-icon>` : h;
|
1070
865
|
}
|
1071
866
|
default:
|
1072
|
-
return
|
867
|
+
return h;
|
1073
868
|
}
|
1074
869
|
}
|
1075
870
|
setOffset(t) {
|
@@ -1078,29 +873,20 @@ class v extends f {
|
|
1078
873
|
render() {
|
1079
874
|
var t, e, s, i;
|
1080
875
|
return A`<div class="trigger-container">
|
1081
|
-
${
|
1082
|
-
<button
|
1083
|
-
class="trigger-label"
|
1084
|
-
@click=${this._toggleActive}
|
1085
|
-
${ge({
|
1086
|
-
keyframeOptions: {},
|
1087
|
-
in: ce,
|
1088
|
-
stabilizeOut: !0,
|
1089
|
-
skipInitial: !1
|
1090
|
-
})}
|
1091
|
-
>
|
876
|
+
${(i = (s = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : s.other) != null && i.showButtonLabel ? A`
|
877
|
+
<button class="trigger-label" @click=${this._toggleActive}>
|
1092
878
|
${this.application.settings.branding.other.buttonLabelText}
|
1093
879
|
</button>
|
1094
|
-
` :
|
880
|
+
` : h}
|
1095
881
|
|
1096
882
|
<button
|
1097
|
-
class=${
|
883
|
+
class=${Qt({
|
1098
884
|
trigger: !0,
|
1099
885
|
active: this.active,
|
1100
886
|
rendered: this.loaded
|
1101
887
|
})}
|
1102
888
|
@click=${this._toggleActive}
|
1103
|
-
${
|
889
|
+
${Pt(this.buttonRef)}
|
1104
890
|
>
|
1105
891
|
${this.icon}
|
1106
892
|
<span class="trigger-close">
|
@@ -1134,7 +920,7 @@ class v extends f {
|
|
1134
920
|
</div>`;
|
1135
921
|
}
|
1136
922
|
}
|
1137
|
-
|
923
|
+
_.styles = [
|
1138
924
|
P`
|
1139
925
|
:host {
|
1140
926
|
--voca-rem-multiplier: 0.625;
|
@@ -1175,10 +961,7 @@ v.styles = [
|
|
1175
961
|
box-sizing: border-box;
|
1176
962
|
transition: transform 200ms ease-out;
|
1177
963
|
}
|
1178
|
-
.trigger:
|
1179
|
-
transform: scale(0.8) !important;
|
1180
|
-
}
|
1181
|
-
.trigger:hover:not(:active) {
|
964
|
+
.trigger:hover {
|
1182
965
|
transform: scale(1.1) !important;
|
1183
966
|
}
|
1184
967
|
.trigger.rendered {
|
@@ -1244,27 +1027,27 @@ v.styles = [
|
|
1244
1027
|
}
|
1245
1028
|
`
|
1246
1029
|
];
|
1247
|
-
|
1030
|
+
j([
|
1248
1031
|
g({ attribute: !1 })
|
1249
|
-
],
|
1250
|
-
|
1032
|
+
], _.prototype, "application", 2);
|
1033
|
+
j([
|
1251
1034
|
O()
|
1252
|
-
],
|
1253
|
-
|
1035
|
+
], _.prototype, "active", 2);
|
1036
|
+
j([
|
1254
1037
|
O()
|
1255
|
-
],
|
1256
|
-
|
1038
|
+
], _.prototype, "loaded", 2);
|
1039
|
+
j([
|
1257
1040
|
O()
|
1258
|
-
],
|
1259
|
-
|
1041
|
+
], _.prototype, "icon", 2);
|
1042
|
+
j([
|
1260
1043
|
O()
|
1261
|
-
],
|
1262
|
-
var
|
1263
|
-
for (var i = s > 1 ? void 0 : s ?
|
1264
|
-
(
|
1265
|
-
return s && i &&
|
1044
|
+
], _.prototype, "offset", 2);
|
1045
|
+
var ae = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, b = (r, t, e, s) => {
|
1046
|
+
for (var i = s > 1 ? void 0 : s ? ce(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1047
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1048
|
+
return s && i && ae(t, e, i), i;
|
1266
1049
|
};
|
1267
|
-
const
|
1050
|
+
const Ot = (r) => {
|
1268
1051
|
class t extends r {
|
1269
1052
|
constructor() {
|
1270
1053
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1319,26 +1102,26 @@ const Lt = (r) => {
|
|
1319
1102
|
g({ attribute: !1 })
|
1320
1103
|
], t.prototype, "parent", 2), t;
|
1321
1104
|
};
|
1322
|
-
class
|
1105
|
+
class Tt extends Ot(f) {
|
1323
1106
|
render() {
|
1324
1107
|
return A`Non resolved component`;
|
1325
1108
|
}
|
1326
1109
|
}
|
1327
|
-
|
1110
|
+
Tt.styles = [
|
1328
1111
|
P`
|
1329
1112
|
:host {
|
1330
1113
|
display: block;
|
1331
1114
|
}
|
1332
1115
|
`
|
1333
1116
|
];
|
1334
|
-
var
|
1335
|
-
for (var i = s > 1 ? void 0 : s ?
|
1336
|
-
(
|
1337
|
-
return s && i &&
|
1117
|
+
var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(et || {}), le = Object.defineProperty, he = Object.getOwnPropertyDescriptor, de = (r, t, e, s) => {
|
1118
|
+
for (var i = s > 1 ? void 0 : s ? he(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1119
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1120
|
+
return s && i && le(t, e, i), i;
|
1338
1121
|
};
|
1339
|
-
class
|
1122
|
+
class st extends f {
|
1340
1123
|
constructor() {
|
1341
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1124
|
+
super(...arguments), this.nodes = [], this.wrapperRef = St();
|
1342
1125
|
}
|
1343
1126
|
addChild(t) {
|
1344
1127
|
t.parent = this, this.nodes.push(t);
|
@@ -1347,7 +1130,7 @@ class nt extends f {
|
|
1347
1130
|
if (!this.wrapperRef.value)
|
1348
1131
|
return;
|
1349
1132
|
const t = this.application.settings;
|
1350
|
-
t != null && t.branding &&
|
1133
|
+
t != null && t.branding && Et(t.branding, this.wrapperRef.value);
|
1351
1134
|
}
|
1352
1135
|
applyStyles() {
|
1353
1136
|
if (!this.wrapperRef.value)
|
@@ -1361,12 +1144,12 @@ class nt extends f {
|
|
1361
1144
|
this.applyBranding(), this.applyStyles();
|
1362
1145
|
}
|
1363
1146
|
render() {
|
1364
|
-
return this.application.renderStrategy ===
|
1365
|
-
${
|
1147
|
+
return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), A`<div class="widget-container" ${Pt(this.wrapperRef)}>
|
1148
|
+
${bt(this.nodes, (t) => t)}
|
1366
1149
|
</div>`;
|
1367
1150
|
}
|
1368
1151
|
}
|
1369
|
-
|
1152
|
+
st.styles = P`
|
1370
1153
|
:host {
|
1371
1154
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1372
1155
|
--spacing-xs: 0.2rem;
|
@@ -1458,15 +1241,15 @@ nt.styles = P`
|
|
1458
1241
|
animation: slideDown 0.3s linear;
|
1459
1242
|
}
|
1460
1243
|
`;
|
1461
|
-
|
1244
|
+
de([
|
1462
1245
|
g({ attribute: !1 })
|
1463
|
-
],
|
1464
|
-
var
|
1465
|
-
for (var i = s > 1 ? void 0 : s ?
|
1466
|
-
(
|
1467
|
-
return s && i &&
|
1246
|
+
], st.prototype, "application", 2);
|
1247
|
+
var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, it = (r, t, e, s) => {
|
1248
|
+
for (var i = s > 1 ? void 0 : s ? ue(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1249
|
+
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1250
|
+
return s && i && pe(t, e, i), i;
|
1468
1251
|
};
|
1469
|
-
class
|
1252
|
+
class z extends f {
|
1470
1253
|
constructor() {
|
1471
1254
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1472
1255
|
}
|
@@ -1490,58 +1273,58 @@ class D extends f {
|
|
1490
1273
|
}
|
1491
1274
|
render() {
|
1492
1275
|
if (!this.widget || this.status !== "activated")
|
1493
|
-
return
|
1494
|
-
if (this.widget.renderStrategy ===
|
1495
|
-
const t = new
|
1276
|
+
return h;
|
1277
|
+
if (this.widget.renderStrategy === et.Trigger) {
|
1278
|
+
const t = new _();
|
1496
1279
|
return t.application = this.widget, t;
|
1497
1280
|
}
|
1498
1281
|
return this.widget.render();
|
1499
1282
|
}
|
1500
1283
|
}
|
1501
|
-
|
1284
|
+
z.styles = [
|
1502
1285
|
P`
|
1503
1286
|
:host {
|
1504
1287
|
display: block;
|
1505
1288
|
}
|
1506
1289
|
`
|
1507
1290
|
];
|
1508
|
-
|
1291
|
+
it([
|
1509
1292
|
g({ attribute: !0 })
|
1510
|
-
],
|
1511
|
-
|
1293
|
+
], z.prototype, "name", 2);
|
1294
|
+
it([
|
1512
1295
|
O()
|
1513
|
-
],
|
1514
|
-
|
1296
|
+
], z.prototype, "widget", 2);
|
1297
|
+
it([
|
1515
1298
|
O()
|
1516
|
-
],
|
1517
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
1518
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
1519
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
1520
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
1521
|
-
const
|
1299
|
+
], z.prototype, "status", 2);
|
1300
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", _);
|
1301
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Tt);
|
1302
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
|
1303
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", z);
|
1304
|
+
const ge = (r) => {
|
1522
1305
|
const t = {};
|
1523
1306
|
return Object.keys(r).forEach((e) => {
|
1524
1307
|
e.indexOf("css-") > -1 && (t[e] = r[e]);
|
1525
1308
|
}), t;
|
1526
|
-
},
|
1527
|
-
const e =
|
1309
|
+
}, fe = (r, t) => {
|
1310
|
+
const e = ge(t);
|
1528
1311
|
Object.entries(e).forEach(([s, i]) => {
|
1529
1312
|
r.style.setProperty(s.replace("css-", ""), i);
|
1530
1313
|
});
|
1531
1314
|
};
|
1532
|
-
class
|
1315
|
+
class $e extends Ot(f) {
|
1533
1316
|
constructor() {
|
1534
1317
|
super(...arguments), this.nodes = [];
|
1535
1318
|
}
|
1536
1319
|
render() {
|
1537
1320
|
var t;
|
1538
|
-
return
|
1321
|
+
return fe(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1539
1322
|
"--columns",
|
1540
1323
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1541
|
-
), A`${
|
1324
|
+
), A`${bt(this.nodes, (e) => e)}`;
|
1542
1325
|
}
|
1543
1326
|
}
|
1544
|
-
|
1327
|
+
$e.styles = [
|
1545
1328
|
P`
|
1546
1329
|
:host {
|
1547
1330
|
height: 100%;
|
@@ -1555,6 +1338,6 @@ Te.styles = [
|
|
1555
1338
|
`
|
1556
1339
|
];
|
1557
1340
|
export {
|
1558
|
-
|
1559
|
-
|
1341
|
+
$e as Area,
|
1342
|
+
$e as default
|
1560
1343
|
};
|