@telia-ace/widget-components-area-flamingo 1.1.28-rc.1 → 1.1.28-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/area-3e574351.js +330 -0
- package/{area-539bd3a4.mjs → area-e653d58f.mjs} +574 -357
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/area-c9421dd2.js +0 -323
@@ -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, tt = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, et = Symbol(), ht = /* @__PURE__ */ new WeakMap();
|
7
|
+
let Ct = class {
|
8
8
|
constructor(t, e, s) {
|
9
|
-
if (this._$cssResult$ = !0, s !==
|
9
|
+
if (this._$cssResult$ = !0, s !== et)
|
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 (tt && t === void 0) {
|
17
17
|
const s = e !== void 0 && e.length === 1;
|
18
|
-
s && (t =
|
18
|
+
s && (t = ht.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && ht.set(e, t));
|
19
19
|
}
|
20
20
|
return t;
|
21
21
|
}
|
@@ -23,38 +23,38 @@ let ft = 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 zt = (r) => new Ct(typeof r == "string" ? r : r + "", void 0, et), P = (r, ...t) => {
|
27
|
+
const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
|
28
|
+
if (n._$cssResult$ === !0)
|
29
|
+
return n.cssText;
|
30
|
+
if (typeof n == "number")
|
31
|
+
return n;
|
32
|
+
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
33
|
+
})(i) + r[o + 1], r[0]);
|
34
|
+
return new Ct(e, r, et);
|
35
|
+
}, Bt = (r, t) => {
|
36
|
+
if (tt)
|
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
|
+
}, lt = tt ? (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 zt(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: It, defineProperty: Ft, getOwnPropertyDescriptor: Wt, getOwnPropertyNames: Gt, getOwnPropertySymbols: Vt, getPrototypeOf: qt } = Object, y = globalThis, ct = y.trustedTypes, Yt = ct ? ct.emptyScript : "", q = y.reactiveElementPolyfillSupport, k = (r, t) => r, F = { toAttribute(r, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
r = r ?
|
57
|
+
r = r ? Yt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -79,48 +79,48 @@ const { is: kt, defineProperty: Nt, getOwnPropertyDescriptor: Mt, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} },
|
82
|
+
} }, st = (r, t) => !It(r, t), dt = { attribute: !0, type: String, converter: F, reflect: !1, hasChanged: st };
|
83
83
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), y.litPropertyMetadata ?? (y.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
-
class
|
84
|
+
let E = class 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 = dt) {
|
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 && Ft(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: o } = Wt(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
|
-
}, set(
|
101
|
-
this[e] =
|
100
|
+
}, set(n) {
|
101
|
+
this[e] = n;
|
102
102
|
} };
|
103
103
|
return { get() {
|
104
104
|
return i == null ? void 0 : i.call(this);
|
105
|
-
}, set(
|
106
|
-
const
|
107
|
-
|
105
|
+
}, set(n) {
|
106
|
+
const h = i == null ? void 0 : i.call(this);
|
107
|
+
o.call(this, n), this.requestUpdate(t, h, 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) ?? dt;
|
112
112
|
}
|
113
113
|
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(
|
114
|
+
if (this.hasOwnProperty(k("elementProperties")))
|
115
115
|
return;
|
116
|
-
const t =
|
116
|
+
const t = qt(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(k("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(k("properties"))) {
|
123
|
+
const e = this.properties, s = [...Gt(e), ...Vt(e)];
|
124
124
|
for (const i of s)
|
125
125
|
this.createProperty(i, e[i]);
|
126
126
|
}
|
@@ -143,9 +143,9 @@ class C 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(lt(i));
|
147
147
|
} else
|
148
|
-
t !== void 0 && e.push(
|
148
|
+
t !== void 0 && e.push(lt(t));
|
149
149
|
return e;
|
150
150
|
}
|
151
151
|
static _$Eu(t, e) {
|
@@ -175,7 +175,7 @@ class C extends HTMLElement {
|
|
175
175
|
}
|
176
176
|
createRenderRoot() {
|
177
177
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
-
return
|
178
|
+
return Bt(t, this.constructor.elementStyles), t;
|
179
179
|
}
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
@@ -197,24 +197,24 @@ class C extends HTMLElement {
|
|
197
197
|
this._$AK(t, s);
|
198
198
|
}
|
199
199
|
_$EO(t, e) {
|
200
|
-
var
|
200
|
+
var o;
|
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 n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : F).toAttribute(e, s.type);
|
204
|
+
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
205
205
|
}
|
206
206
|
}
|
207
207
|
_$AK(t, e) {
|
208
|
-
var
|
208
|
+
var o;
|
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 n = s.getPropertyOptions(i), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter : F;
|
212
|
+
this._$Em = i, this[i] = h.fromAttribute(e, n.type), this._$Em = null;
|
213
213
|
}
|
214
214
|
}
|
215
|
-
requestUpdate(t, e, s, i = !1,
|
215
|
+
requestUpdate(t, e, s, i = !1, o) {
|
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 ?? st)(i ? o : this[t], e))
|
218
218
|
return;
|
219
219
|
this.C(t, e, s);
|
220
220
|
}
|
@@ -242,21 +242,21 @@ class C extends HTMLElement {
|
|
242
242
|
return;
|
243
243
|
if (!this.hasUpdated) {
|
244
244
|
if (this._$Ep) {
|
245
|
-
for (const [
|
246
|
-
this[
|
245
|
+
for (const [o, n] of this._$Ep)
|
246
|
+
this[o] = n;
|
247
247
|
this._$Ep = void 0;
|
248
248
|
}
|
249
249
|
const i = this.constructor.elementProperties;
|
250
250
|
if (i.size > 0)
|
251
|
-
for (const [
|
252
|
-
|
251
|
+
for (const [o, n] of i)
|
252
|
+
n.wrapped !== !0 || this._$AL.has(o) || this[o] === void 0 || this.C(o, this[o], n);
|
253
253
|
}
|
254
254
|
let t = !1;
|
255
255
|
const e = this._$AL;
|
256
256
|
try {
|
257
257
|
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((i) => {
|
258
|
-
var
|
259
|
-
return (
|
258
|
+
var o;
|
259
|
+
return (o = i.hostUpdate) == null ? void 0 : o.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 @@ class C extends HTMLElement {
|
|
291
291
|
}
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
|
-
}
|
295
|
-
|
294
|
+
};
|
295
|
+
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[k("elementProperties")] = /* @__PURE__ */ new Map(), E[k("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: E }), (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 N = globalThis, W = N.trustedTypes, pt = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, Et = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, St = "?" + $, Kt = `<${St}>`, x = document, R = () => x.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", Pt = Array.isArray, Xt = (r) => Pt(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Y = `[
|
302
|
+
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ut = /-->/g, gt = />/g, _ = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), ft = /'/g, mt = /"/g, Ot = /^(?:script|style|textarea|title)$/i, Jt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), A = Jt(1), C = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), $t = /* @__PURE__ */ new WeakMap(), w = x.createTreeWalker(x, 129);
|
304
|
+
function Tt(r, t) {
|
305
305
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
307
|
-
return
|
307
|
+
return pt !== void 0 ? pt.createHTML(t) : t;
|
308
308
|
}
|
309
|
-
const
|
309
|
+
const Zt = (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, o = t === 2 ? "<svg>" : "", n = T;
|
312
|
+
for (let h = 0; h < e; h++) {
|
313
|
+
const a = r[h];
|
314
|
+
let l, c, d = -1, u = 0;
|
315
|
+
for (; u < a.length && (n.lastIndex = u, c = n.exec(a), c !== null); )
|
316
|
+
u = n.lastIndex, n === T ? c[1] === "!--" ? n = ut : c[1] !== void 0 ? n = gt : c[2] !== void 0 ? (Ot.test(c[2]) && (i = RegExp("</" + c[2], "g")), n = _) : c[3] !== void 0 && (n = _) : n === _ ? c[0] === ">" ? (n = i ?? T, d = -1) : c[1] === void 0 ? d = -2 : (d = n.lastIndex - c[2].length, l = c[1], n = c[3] === void 0 ? _ : c[3] === '"' ? mt : ft) : n === mt || n === ft ? n = _ : n === ut || n === gt ? n = T : (n = _, i = void 0);
|
317
|
+
const m = n === _ && r[h + 1].startsWith("/>") ? " " : "";
|
318
|
+
o += n === T ? a + Kt : d >= 0 ? (s.push(l), a.slice(0, d) + Et + a.slice(d) + $ + m) : a + $ + (d === -2 ? h : m);
|
319
|
+
}
|
320
|
+
return [Tt(r, o + (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 o = 0, n = 0;
|
327
|
+
const h = t.length - 1, a = this.parts, [l, c] = Zt(t, e);
|
328
|
+
if (this.el = H.createElement(l, s), w.currentNode = this.el.content, e === 2) {
|
329
|
+
const d = this.el.content.firstChild;
|
330
|
+
d.replaceWith(...d.childNodes);
|
331
331
|
}
|
332
|
-
for (; (i = w.nextNode()) !== null && a.length <
|
332
|
+
for (; (i = w.nextNode()) !== null && a.length < h; ) {
|
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 d of i.getAttributeNames())
|
336
|
+
if (d.endsWith(Et)) {
|
337
|
+
const u = c[n++], m = i.getAttribute(d).split($), z = /([.?@])?(.*)/.exec(u);
|
338
|
+
a.push({ type: 1, index: o, name: z[2], strings: m, ctor: z[1] === "." ? te : z[1] === "?" ? ee : z[1] === "@" ? se : V }), i.removeAttribute(d);
|
339
339
|
} else
|
340
|
-
|
341
|
-
if (
|
342
|
-
const
|
340
|
+
d.startsWith($) && (a.push({ type: 6, index: o }), i.removeAttribute(d));
|
341
|
+
if (Ot.test(i.tagName)) {
|
342
|
+
const d = i.textContent.split($), u = d.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 m = 0; m < u; m++)
|
346
|
+
i.append(d[m], R()), w.nextNode(), a.push({ type: 2, index: ++o });
|
347
|
+
i.append(d[u], R());
|
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 === St)
|
352
|
+
a.push({ type: 2, index: o });
|
353
353
|
else {
|
354
|
-
let
|
355
|
-
for (; (
|
356
|
-
a.push({ type: 7, index:
|
354
|
+
let d = -1;
|
355
|
+
for (; (d = i.data.indexOf($, d + 1)) !== -1; )
|
356
|
+
a.push({ type: 7, index: o }), d += $.length - 1;
|
357
357
|
}
|
358
|
-
|
358
|
+
o++;
|
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 n, h;
|
368
|
+
if (t === C)
|
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 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
|
371
|
+
const o = M(t) ? void 0 : t._$litDirective$;
|
372
|
+
return (i == null ? void 0 : i.constructor) !== o && ((h = i == null ? void 0 : i._$AO) == null || h.call(i, !1), o === void 0 ? i = void 0 : (i = new o(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 Qt {
|
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 Wt {
|
|
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 o = w.nextNode(), n = 0, h = 0, a = s[0];
|
388
388
|
for (; a !== void 0; ) {
|
389
|
-
if (
|
390
|
-
let
|
391
|
-
a.type === 2 ?
|
389
|
+
if (n === a.index) {
|
390
|
+
let l;
|
391
|
+
a.type === 2 ? l = new j(o, o.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (l = new ie(o, this, t)), this._$AV.push(l), a = s[++h];
|
392
392
|
}
|
393
|
-
|
393
|
+
n !== (a == null ? void 0 : a.index) && (o = w.nextNode(), n++);
|
394
394
|
}
|
395
395
|
return w.currentNode = x, i;
|
396
396
|
}
|
@@ -400,13 +400,13 @@ class Wt {
|
|
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 j {
|
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 = p, 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 L {
|
|
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 === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== C && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Xt(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 L {
|
|
429
429
|
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
430
|
}
|
431
431
|
_(t) {
|
432
|
-
this._$AH !==
|
432
|
+
this._$AH !== p && 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 o;
|
436
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(Tt(s.h, s.h[0]), this.options)), s);
|
437
|
+
if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
440
|
-
const
|
441
|
-
|
440
|
+
const n = new Qt(i, this), h = n.u(this.options);
|
441
|
+
n.p(e), this.$(h), this._$AH = n;
|
442
442
|
}
|
443
443
|
}
|
444
444
|
_$AC(t) {
|
445
|
-
let e =
|
446
|
-
return e === void 0 &&
|
445
|
+
let e = $t.get(t.strings);
|
446
|
+
return e === void 0 && $t.set(t.strings, e = new H(t)), e;
|
447
447
|
}
|
448
448
|
T(t) {
|
449
|
-
|
449
|
+
Pt(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 o of t)
|
453
|
+
i === e.length ? e.push(s = new j(this.k(R()), this.k(R()), this, this.options)) : s = e[i], s._$AI(o), 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 L {
|
|
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 V {
|
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, o) {
|
476
|
+
this.type = 1, this._$AH = p, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = o, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = p;
|
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 o = this.strings;
|
480
|
+
let n = !1;
|
481
|
+
if (o === void 0)
|
482
|
+
t = S(this, t, e, 0), n = !M(t) || t !== this._$AH && t !== C, n && (this._$AH = t);
|
483
483
|
else {
|
484
|
-
const
|
485
|
-
let a,
|
486
|
-
for (t =
|
487
|
-
|
484
|
+
const h = t;
|
485
|
+
let a, l;
|
486
|
+
for (t = o[0], a = 0; a < o.length - 1; a++)
|
487
|
+
l = S(this, h[s + a], e, a), l === C && (l = this._$AH[a]), n || (n = !M(l) || l !== this._$AH[a]), l === p ? t = p : t !== p && (t += (l ?? "") + o[a + 1]), this._$AH[a] = l;
|
488
488
|
}
|
489
|
-
|
489
|
+
n && !i && this.O(t);
|
490
490
|
}
|
491
491
|
O(t) {
|
492
|
-
t ===
|
492
|
+
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class
|
495
|
+
class te extends V {
|
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 === p ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class
|
503
|
+
class ee extends V {
|
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 !== p);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class
|
512
|
-
constructor(t, e, s, i,
|
513
|
-
super(t, e, s, i,
|
511
|
+
class se extends V {
|
512
|
+
constructor(t, e, s, i, o) {
|
513
|
+
super(t, e, s, i, o), 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) ?? p) === C)
|
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 === p && s !== p || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, o = t !== p && (s === p || i);
|
519
|
+
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
520
|
}
|
521
521
|
handleEvent(t) {
|
522
522
|
var e;
|
523
523
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
524
524
|
}
|
525
525
|
}
|
526
|
-
class
|
526
|
+
class ie {
|
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 Jt {
|
|
534
534
|
S(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
|
-
const K =
|
538
|
-
K == null || K(H,
|
539
|
-
const
|
537
|
+
const K = N.litHtmlPolyfillSupport;
|
538
|
+
K == null || K(H, j), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.0.2");
|
539
|
+
const re = (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 o = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
+
s._$litPart$ = i = new j(t.insertBefore(R(), o), o, void 0, e ?? {});
|
545
545
|
}
|
546
546
|
return i._$AI(r), i;
|
547
547
|
};
|
@@ -550,7 +550,7 @@ const Kt = (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 E {
|
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 C {
|
|
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,20 +572,20 @@ let f = class extends C {
|
|
572
572
|
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
573
|
}
|
574
574
|
render() {
|
575
|
-
return
|
575
|
+
return C;
|
576
576
|
}
|
577
577
|
};
|
578
|
-
var
|
579
|
-
f._$litElement$ = !0, f.finalized = !0, (
|
580
|
-
const
|
581
|
-
|
578
|
+
var xt;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, (xt = globalThis.litElementHydrateSupport) == null || xt.call(globalThis, { LitElement: f });
|
580
|
+
const X = globalThis.litElementPolyfillSupport;
|
581
|
+
X == null || X({ 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* kt(r, t) {
|
589
589
|
if (r !== void 0) {
|
590
590
|
let e = 0;
|
591
591
|
for (const s of r)
|
@@ -597,48 +597,8 @@ function* bt(r, t) {
|
|
597
597
|
* Copyright 2017 Google LLC
|
598
598
|
* SPDX-License-Identifier: BSD-3-Clause
|
599
599
|
*/
|
600
|
-
const
|
601
|
-
|
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 {
|
600
|
+
const it = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, rt = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
601
|
+
let Nt = class {
|
642
602
|
constructor(t) {
|
643
603
|
}
|
644
604
|
get _$AU() {
|
@@ -653,123 +613,74 @@ class xt {
|
|
653
613
|
update(t, e) {
|
654
614
|
return this.render(...e);
|
655
615
|
}
|
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
|
-
);
|
705
616
|
};
|
706
617
|
/**
|
707
618
|
* @license
|
708
619
|
* Copyright 2020 Google LLC
|
709
620
|
* SPDX-License-Identifier: BSD-3-Clause
|
710
621
|
*/
|
711
|
-
const
|
622
|
+
const oe = (r) => r.strings === void 0;
|
712
623
|
/**
|
713
624
|
* @license
|
714
625
|
* Copyright 2017 Google LLC
|
715
626
|
* SPDX-License-Identifier: BSD-3-Clause
|
716
627
|
*/
|
717
|
-
const
|
628
|
+
const U = (r, t) => {
|
718
629
|
var s;
|
719
630
|
const e = r._$AN;
|
720
631
|
if (e === void 0)
|
721
632
|
return !1;
|
722
633
|
for (const i of e)
|
723
|
-
(s = i._$AO) == null || s.call(i, t, !1),
|
634
|
+
(s = i._$AO) == null || s.call(i, t, !1), U(i, t);
|
724
635
|
return !0;
|
725
|
-
},
|
636
|
+
}, G = (r) => {
|
726
637
|
let t, e;
|
727
638
|
do {
|
728
639
|
if ((t = r._$AM) === void 0)
|
729
640
|
break;
|
730
641
|
e = t._$AN, e.delete(r), r = t;
|
731
642
|
} while ((e == null ? void 0 : e.size) === 0);
|
732
|
-
},
|
643
|
+
}, Ut = (r) => {
|
733
644
|
for (let t; t = r._$AM; r = t) {
|
734
645
|
let e = t._$AN;
|
735
646
|
if (e === void 0)
|
736
647
|
t._$AN = e = /* @__PURE__ */ new Set();
|
737
648
|
else if (e.has(r))
|
738
649
|
break;
|
739
|
-
e.add(r),
|
650
|
+
e.add(r), he(t);
|
740
651
|
}
|
741
652
|
};
|
742
|
-
function
|
743
|
-
this._$AN !== void 0 ? (
|
653
|
+
function ne(r) {
|
654
|
+
this._$AN !== void 0 ? (G(this), this._$AM = r, Ut(this)) : this._$AM = r;
|
744
655
|
}
|
745
|
-
function
|
656
|
+
function ae(r, t = !1, e = 0) {
|
746
657
|
const s = this._$AH, i = this._$AN;
|
747
658
|
if (i !== void 0 && i.size !== 0)
|
748
659
|
if (t)
|
749
660
|
if (Array.isArray(s))
|
750
|
-
for (let
|
751
|
-
|
661
|
+
for (let o = e; o < s.length; o++)
|
662
|
+
U(s[o], !1), G(s[o]);
|
752
663
|
else
|
753
|
-
s != null && (
|
664
|
+
s != null && (U(s, !1), G(s));
|
754
665
|
else
|
755
|
-
|
666
|
+
U(this, r);
|
756
667
|
}
|
757
|
-
const
|
758
|
-
r.type ==
|
668
|
+
const he = (r) => {
|
669
|
+
r.type == it.CHILD && (r._$AP ?? (r._$AP = ae), r._$AQ ?? (r._$AQ = ne));
|
759
670
|
};
|
760
|
-
class
|
671
|
+
class Rt extends Nt {
|
761
672
|
constructor() {
|
762
673
|
super(...arguments), this._$AN = void 0;
|
763
674
|
}
|
764
675
|
_$AT(t, e, s) {
|
765
|
-
super._$AT(t, e, s),
|
676
|
+
super._$AT(t, e, s), Ut(this), this.isConnected = t._$AU;
|
766
677
|
}
|
767
678
|
_$AO(t, e = !0) {
|
768
679
|
var s, i;
|
769
|
-
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (
|
680
|
+
t !== this.isConnected && (this.isConnected = t, t ? (s = this.reconnected) == null || s.call(this) : (i = this.disconnected) == null || i.call(this)), e && (U(this, t), G(this));
|
770
681
|
}
|
771
682
|
setValue(t) {
|
772
|
-
if (
|
683
|
+
if (oe(this._$Ct))
|
773
684
|
this._$Ct._$AI(t, this);
|
774
685
|
else {
|
775
686
|
const e = [...this._$Ct._$AH];
|
@@ -781,34 +692,328 @@ class ie extends xt {
|
|
781
692
|
reconnected() {
|
782
693
|
}
|
783
694
|
}
|
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
|
+
};
|
784
989
|
/**
|
785
990
|
* @license
|
786
991
|
* Copyright 2020 Google LLC
|
787
992
|
* SPDX-License-Identifier: BSD-3-Clause
|
788
993
|
*/
|
789
|
-
const
|
790
|
-
class
|
994
|
+
const Ht = () => new ye();
|
995
|
+
class ye {
|
791
996
|
}
|
792
|
-
const
|
997
|
+
const Q = /* @__PURE__ */ new WeakMap(), jt = rt(class extends Rt {
|
793
998
|
render(r) {
|
794
|
-
return
|
999
|
+
return p;
|
795
1000
|
}
|
796
1001
|
update(r, [t]) {
|
797
1002
|
var s;
|
798
1003
|
const e = t !== this.G;
|
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)),
|
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)), p;
|
800
1005
|
}
|
801
1006
|
ot(r) {
|
802
1007
|
if (typeof this.G == "function") {
|
803
1008
|
const t = this.ct ?? globalThis;
|
804
|
-
let e =
|
805
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1009
|
+
let e = Q.get(t);
|
1010
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), Q.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);
|
806
1011
|
} else
|
807
1012
|
this.G.value = r;
|
808
1013
|
}
|
809
1014
|
get rt() {
|
810
1015
|
var r, t;
|
811
|
-
return typeof this.G == "function" ? (r =
|
1016
|
+
return typeof this.G == "function" ? (r = Q.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
812
1017
|
}
|
813
1018
|
disconnected() {
|
814
1019
|
this.rt === this.lt && this.ot(void 0);
|
@@ -817,14 +1022,14 @@ const F = /* @__PURE__ */ new WeakMap(), Pt = wt(class extends ie {
|
|
817
1022
|
this.ot(this.lt);
|
818
1023
|
}
|
819
1024
|
});
|
820
|
-
var
|
821
|
-
for (var i = s > 1 ? void 0 : s ?
|
822
|
-
(
|
823
|
-
return s && i &&
|
1025
|
+
var ve = Object.defineProperty, _e = Object.getOwnPropertyDescriptor, L = (r, t, e, s) => {
|
1026
|
+
for (var i = s > 1 ? void 0 : s ? _e(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1027
|
+
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1028
|
+
return s && i && ve(t, e, i), i;
|
824
1029
|
};
|
825
|
-
class
|
1030
|
+
class v extends f {
|
826
1031
|
constructor() {
|
827
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef =
|
1032
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = Ht();
|
828
1033
|
}
|
829
1034
|
async connectedCallback() {
|
830
1035
|
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)`);
|
@@ -841,30 +1046,30 @@ class _ extends f {
|
|
841
1046
|
}
|
842
1047
|
_applyBranding() {
|
843
1048
|
var t;
|
844
|
-
(t = this.application) != null && t.settings &&
|
1049
|
+
(t = this.application) != null && t.settings && Mt(this.application.settings.branding, this);
|
845
1050
|
}
|
846
1051
|
async _renderSymbol() {
|
847
|
-
var
|
848
|
-
const t = (
|
1052
|
+
var h, a, l;
|
1053
|
+
const t = (h = this.application) == null ? void 0 : h.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
|
849
1054
|
if (e)
|
850
1055
|
return A` <img src=${e} class="trigger-icon" alt="" /> `;
|
851
|
-
const s = (
|
1056
|
+
const s = (l = this.application) == null ? void 0 : l.triggerIcon;
|
852
1057
|
if (!s)
|
853
|
-
return
|
854
|
-
const i = async (
|
855
|
-
(u) => u[
|
856
|
-
), { type:
|
857
|
-
switch (
|
1058
|
+
return p;
|
1059
|
+
const i = async (c) => await import("./index-5087564d.mjs").then(
|
1060
|
+
(u) => u[c]
|
1061
|
+
), { type: o, content: n } = s;
|
1062
|
+
switch (o) {
|
858
1063
|
case "Telia": {
|
859
|
-
const
|
860
|
-
return
|
1064
|
+
const c = await i(n);
|
1065
|
+
return c ? A`<telia-icon
|
861
1066
|
class="trigger-icon"
|
862
|
-
svg=${
|
1067
|
+
svg=${c.svg}
|
863
1068
|
size="lg"
|
864
|
-
></telia-icon>` :
|
1069
|
+
></telia-icon>` : p;
|
865
1070
|
}
|
866
1071
|
default:
|
867
|
-
return
|
1072
|
+
return p;
|
868
1073
|
}
|
869
1074
|
}
|
870
1075
|
setOffset(t) {
|
@@ -873,20 +1078,29 @@ class _ extends f {
|
|
873
1078
|
render() {
|
874
1079
|
var t, e, s, i;
|
875
1080
|
return A`<div class="trigger-container">
|
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
|
1081
|
+
${!this.active && ((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`
|
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
|
+
>
|
878
1092
|
${this.application.settings.branding.other.buttonLabelText}
|
879
1093
|
</button>
|
880
|
-
` :
|
1094
|
+
` : p}
|
881
1095
|
|
882
1096
|
<button
|
883
|
-
class=${
|
1097
|
+
class=${$e({
|
884
1098
|
trigger: !0,
|
885
1099
|
active: this.active,
|
886
1100
|
rendered: this.loaded
|
887
1101
|
})}
|
888
1102
|
@click=${this._toggleActive}
|
889
|
-
${
|
1103
|
+
${jt(this.buttonRef)}
|
890
1104
|
>
|
891
1105
|
${this.icon}
|
892
1106
|
<span class="trigger-close">
|
@@ -920,7 +1134,7 @@ class _ extends f {
|
|
920
1134
|
</div>`;
|
921
1135
|
}
|
922
1136
|
}
|
923
|
-
|
1137
|
+
v.styles = [
|
924
1138
|
P`
|
925
1139
|
:host {
|
926
1140
|
--voca-rem-multiplier: 0.625;
|
@@ -961,7 +1175,10 @@ _.styles = [
|
|
961
1175
|
box-sizing: border-box;
|
962
1176
|
transition: transform 200ms ease-out;
|
963
1177
|
}
|
964
|
-
.trigger:
|
1178
|
+
.trigger:active {
|
1179
|
+
transform: scale(0.8) !important;
|
1180
|
+
}
|
1181
|
+
.trigger:hover:not(:active) {
|
965
1182
|
transform: scale(1.1) !important;
|
966
1183
|
}
|
967
1184
|
.trigger.rendered {
|
@@ -1027,27 +1244,27 @@ _.styles = [
|
|
1027
1244
|
}
|
1028
1245
|
`
|
1029
1246
|
];
|
1030
|
-
|
1247
|
+
L([
|
1031
1248
|
g({ attribute: !1 })
|
1032
|
-
],
|
1033
|
-
|
1249
|
+
], v.prototype, "application", 2);
|
1250
|
+
L([
|
1034
1251
|
O()
|
1035
|
-
],
|
1036
|
-
|
1252
|
+
], v.prototype, "active", 2);
|
1253
|
+
L([
|
1037
1254
|
O()
|
1038
|
-
],
|
1039
|
-
|
1255
|
+
], v.prototype, "loaded", 2);
|
1256
|
+
L([
|
1040
1257
|
O()
|
1041
|
-
],
|
1042
|
-
|
1258
|
+
], v.prototype, "icon", 2);
|
1259
|
+
L([
|
1043
1260
|
O()
|
1044
|
-
],
|
1045
|
-
var
|
1046
|
-
for (var i = s > 1 ? void 0 : s ?
|
1047
|
-
(
|
1048
|
-
return s && i &&
|
1261
|
+
], v.prototype, "offset", 2);
|
1262
|
+
var be = Object.defineProperty, Ae = Object.getOwnPropertyDescriptor, b = (r, t, e, s) => {
|
1263
|
+
for (var i = s > 1 ? void 0 : s ? Ae(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1264
|
+
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1265
|
+
return s && i && be(t, e, i), i;
|
1049
1266
|
};
|
1050
|
-
const
|
1267
|
+
const Lt = (r) => {
|
1051
1268
|
class t extends r {
|
1052
1269
|
constructor() {
|
1053
1270
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1102,26 +1319,26 @@ const Ot = (r) => {
|
|
1102
1319
|
g({ attribute: !1 })
|
1103
1320
|
], t.prototype, "parent", 2), t;
|
1104
1321
|
};
|
1105
|
-
class
|
1322
|
+
class Dt extends Lt(f) {
|
1106
1323
|
render() {
|
1107
1324
|
return A`Non resolved component`;
|
1108
1325
|
}
|
1109
1326
|
}
|
1110
|
-
|
1327
|
+
Dt.styles = [
|
1111
1328
|
P`
|
1112
1329
|
:host {
|
1113
1330
|
display: block;
|
1114
1331
|
}
|
1115
1332
|
`
|
1116
1333
|
];
|
1117
|
-
var
|
1118
|
-
for (var i = s > 1 ? void 0 : s ?
|
1119
|
-
(
|
1120
|
-
return s && i &&
|
1334
|
+
var ot = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(ot || {}), we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, Ce = (r, t, e, s) => {
|
1335
|
+
for (var i = s > 1 ? void 0 : s ? xe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1336
|
+
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1337
|
+
return s && i && we(t, e, i), i;
|
1121
1338
|
};
|
1122
|
-
class
|
1339
|
+
class nt extends f {
|
1123
1340
|
constructor() {
|
1124
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1341
|
+
super(...arguments), this.nodes = [], this.wrapperRef = Ht();
|
1125
1342
|
}
|
1126
1343
|
addChild(t) {
|
1127
1344
|
t.parent = this, this.nodes.push(t);
|
@@ -1130,7 +1347,7 @@ class st extends f {
|
|
1130
1347
|
if (!this.wrapperRef.value)
|
1131
1348
|
return;
|
1132
1349
|
const t = this.application.settings;
|
1133
|
-
t != null && t.branding &&
|
1350
|
+
t != null && t.branding && Mt(t.branding, this.wrapperRef.value);
|
1134
1351
|
}
|
1135
1352
|
applyStyles() {
|
1136
1353
|
if (!this.wrapperRef.value)
|
@@ -1144,12 +1361,12 @@ class st extends f {
|
|
1144
1361
|
this.applyBranding(), this.applyStyles();
|
1145
1362
|
}
|
1146
1363
|
render() {
|
1147
|
-
return this.application.renderStrategy ===
|
1148
|
-
${
|
1364
|
+
return this.application.renderStrategy === ot.Trigger && this.renderRoot.host.classList.add("floating"), A`<div class="widget-container" ${jt(this.wrapperRef)}>
|
1365
|
+
${kt(this.nodes, (t) => t)}
|
1149
1366
|
</div>`;
|
1150
1367
|
}
|
1151
1368
|
}
|
1152
|
-
|
1369
|
+
nt.styles = P`
|
1153
1370
|
:host {
|
1154
1371
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1155
1372
|
--spacing-xs: 0.2rem;
|
@@ -1241,15 +1458,15 @@ st.styles = P`
|
|
1241
1458
|
animation: slideDown 0.3s linear;
|
1242
1459
|
}
|
1243
1460
|
`;
|
1244
|
-
|
1461
|
+
Ce([
|
1245
1462
|
g({ attribute: !1 })
|
1246
|
-
],
|
1247
|
-
var
|
1248
|
-
for (var i = s > 1 ? void 0 : s ?
|
1249
|
-
(
|
1250
|
-
return s && i &&
|
1463
|
+
], nt.prototype, "application", 2);
|
1464
|
+
var Ee = Object.defineProperty, Se = Object.getOwnPropertyDescriptor, at = (r, t, e, s) => {
|
1465
|
+
for (var i = s > 1 ? void 0 : s ? Se(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1466
|
+
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1467
|
+
return s && i && Ee(t, e, i), i;
|
1251
1468
|
};
|
1252
|
-
class
|
1469
|
+
class D extends f {
|
1253
1470
|
constructor() {
|
1254
1471
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1255
1472
|
}
|
@@ -1273,58 +1490,58 @@ class z extends f {
|
|
1273
1490
|
}
|
1274
1491
|
render() {
|
1275
1492
|
if (!this.widget || this.status !== "activated")
|
1276
|
-
return
|
1277
|
-
if (this.widget.renderStrategy ===
|
1278
|
-
const t = new
|
1493
|
+
return p;
|
1494
|
+
if (this.widget.renderStrategy === ot.Trigger) {
|
1495
|
+
const t = new v();
|
1279
1496
|
return t.application = this.widget, t;
|
1280
1497
|
}
|
1281
1498
|
return this.widget.render();
|
1282
1499
|
}
|
1283
1500
|
}
|
1284
|
-
|
1501
|
+
D.styles = [
|
1285
1502
|
P`
|
1286
1503
|
:host {
|
1287
1504
|
display: block;
|
1288
1505
|
}
|
1289
1506
|
`
|
1290
1507
|
];
|
1291
|
-
|
1508
|
+
at([
|
1292
1509
|
g({ attribute: !0 })
|
1293
|
-
],
|
1294
|
-
|
1510
|
+
], D.prototype, "name", 2);
|
1511
|
+
at([
|
1295
1512
|
O()
|
1296
|
-
],
|
1297
|
-
|
1513
|
+
], D.prototype, "widget", 2);
|
1514
|
+
at([
|
1298
1515
|
O()
|
1299
|
-
],
|
1300
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
1301
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
1302
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
1303
|
-
customElements.get("ace-widget") || customElements.define("ace-widget",
|
1304
|
-
const
|
1516
|
+
], D.prototype, "status", 2);
|
1517
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", v);
|
1518
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Dt);
|
1519
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", nt);
|
1520
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", D);
|
1521
|
+
const Pe = (r) => {
|
1305
1522
|
const t = {};
|
1306
1523
|
return Object.keys(r).forEach((e) => {
|
1307
1524
|
e.indexOf("css-") > -1 && (t[e] = r[e]);
|
1308
1525
|
}), t;
|
1309
|
-
},
|
1310
|
-
const e =
|
1526
|
+
}, Oe = (r, t) => {
|
1527
|
+
const e = Pe(t);
|
1311
1528
|
Object.entries(e).forEach(([s, i]) => {
|
1312
1529
|
r.style.setProperty(s.replace("css-", ""), i);
|
1313
1530
|
});
|
1314
1531
|
};
|
1315
|
-
class
|
1532
|
+
class Te extends Lt(f) {
|
1316
1533
|
constructor() {
|
1317
1534
|
super(...arguments), this.nodes = [];
|
1318
1535
|
}
|
1319
1536
|
render() {
|
1320
1537
|
var t;
|
1321
|
-
return
|
1538
|
+
return Oe(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1322
1539
|
"--columns",
|
1323
1540
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1324
|
-
), A`${
|
1541
|
+
), A`${kt(this.nodes, (e) => e)}`;
|
1325
1542
|
}
|
1326
1543
|
}
|
1327
|
-
|
1544
|
+
Te.styles = [
|
1328
1545
|
P`
|
1329
1546
|
:host {
|
1330
1547
|
height: 100%;
|
@@ -1338,6 +1555,6 @@ $e.styles = [
|
|
1338
1555
|
`
|
1339
1556
|
];
|
1340
1557
|
export {
|
1341
|
-
|
1342
|
-
|
1558
|
+
Te as Area,
|
1559
|
+
Te as default
|
1343
1560
|
};
|