@telia-ace/widget-components-area-flamingo 1.1.33-rc.0 → 1.1.33-rc.1
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-998184df.mjs → area-46ce2a2c.mjs} +309 -273
- package/{area-47c9685c.js → area-9cf79f8a.js} +51 -33
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
@@ -3,8 +3,8 @@
|
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
|
-
const
|
7
|
-
let
|
6
|
+
const B = globalThis, tt = B.ShadowRoot && (B.ShadyCSS === void 0 || B.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, et = Symbol(), lt = /* @__PURE__ */ new WeakMap();
|
7
|
+
let Et = class {
|
8
8
|
constructor(t, e, s) {
|
9
9
|
if (this._$cssResult$ = !0, s !== et)
|
10
10
|
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
@@ -15,7 +15,7 @@ let Ct = class {
|
|
15
15
|
const e = this.t;
|
16
16
|
if (tt && t === void 0) {
|
17
17
|
const s = e !== void 0 && e.length === 1;
|
18
|
-
s && (t =
|
18
|
+
s && (t = lt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && lt.set(e, t));
|
19
19
|
}
|
20
20
|
return t;
|
21
21
|
}
|
@@ -23,7 +23,7 @@ let Ct = class {
|
|
23
23
|
return this.cssText;
|
24
24
|
}
|
25
25
|
};
|
26
|
-
const
|
26
|
+
const Bt = (r) => new Et(typeof r == "string" ? r : r + "", void 0, et), C = (r, ...t) => {
|
27
27
|
const e = r.length === 1 ? r[0] : t.reduce((s, i, o) => s + ((n) => {
|
28
28
|
if (n._$cssResult$ === !0)
|
29
29
|
return n.cssText;
|
@@ -31,30 +31,30 @@ const zt = (r) => new Ct(typeof r == "string" ? r : r + "", void 0, et), P = (r,
|
|
31
31
|
return n;
|
32
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
33
|
})(i) + r[o + 1], r[0]);
|
34
|
-
return new
|
35
|
-
},
|
34
|
+
return new Et(e, r, et);
|
35
|
+
}, It = (r, t) => {
|
36
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
|
-
const s = document.createElement("style"), i =
|
40
|
+
const s = document.createElement("style"), i = B.litNonce;
|
41
41
|
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
42
42
|
}
|
43
|
-
},
|
43
|
+
}, ct = 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 Bt(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: Ft, defineProperty: Wt, getOwnPropertyDescriptor: Gt, getOwnPropertyNames: Vt, getOwnPropertySymbols: qt, getPrototypeOf: Yt } = Object, v = globalThis, dt = v.trustedTypes, Kt = dt ? dt.emptyScript : "", q = v.reactiveElementPolyfillSupport, T = (r, t) => r, I = { toAttribute(r, t) {
|
55
55
|
switch (t) {
|
56
56
|
case Boolean:
|
57
|
-
r = r ?
|
57
|
+
r = r ? Kt : null;
|
58
58
|
break;
|
59
59
|
case Object:
|
60
60
|
case Array:
|
@@ -79,23 +79,23 @@ const { is: It, defineProperty: Ft, getOwnPropertyDescriptor: Wt, getOwnProperty
|
|
79
79
|
}
|
80
80
|
}
|
81
81
|
return e;
|
82
|
-
} }, st = (r, t) => !
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")),
|
84
|
-
let
|
82
|
+
} }, st = (r, t) => !Ft(r, t), pt = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: st };
|
83
|
+
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), v.litPropertyMetadata ?? (v.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
+
let S = 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 = pt) {
|
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 && Wt(this.prototype, t, i);
|
95
95
|
}
|
96
96
|
}
|
97
97
|
static getPropertyDescriptor(t, e, s) {
|
98
|
-
const { get: i, set: o } =
|
98
|
+
const { get: i, set: o } = Gt(this.prototype, t) ?? { get() {
|
99
99
|
return this[e];
|
100
100
|
}, set(n) {
|
101
101
|
this[e] = n;
|
@@ -108,19 +108,19 @@ let E = class extends HTMLElement {
|
|
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) ?? pt;
|
112
112
|
}
|
113
113
|
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(
|
114
|
+
if (this.hasOwnProperty(T("elementProperties")))
|
115
115
|
return;
|
116
|
-
const t =
|
116
|
+
const t = Yt(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(T("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(T("properties"))) {
|
123
|
+
const e = this.properties, s = [...Vt(e), ...qt(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(ct(i));
|
147
147
|
} else
|
148
|
-
t !== void 0 && e.push(
|
148
|
+
t !== void 0 && e.push(ct(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 It(t, this.constructor.elementStyles), t;
|
179
179
|
}
|
180
180
|
connectedCallback() {
|
181
181
|
var t;
|
@@ -200,7 +200,7 @@ let E = class extends HTMLElement {
|
|
200
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 n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter :
|
203
|
+
const n = (((o = s.converter) == null ? void 0 : o.toAttribute) !== void 0 ? s.converter : I).toAttribute(e, s.type);
|
204
204
|
this._$Em = t, n == null ? this.removeAttribute(i) : this.setAttribute(i, n), this._$Em = null;
|
205
205
|
}
|
206
206
|
}
|
@@ -208,7 +208,7 @@ let E = class extends HTMLElement {
|
|
208
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 n = s.getPropertyOptions(i), h = typeof n.converter == "function" ? { fromAttribute: n.converter } : ((o = n.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? n.converter :
|
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 : I;
|
212
212
|
this._$Em = i, this[i] = h.fromAttribute(e, n.type), this._$Em = null;
|
213
213
|
}
|
214
214
|
}
|
@@ -292,63 +292,63 @@ let E = class extends HTMLElement {
|
|
292
292
|
firstUpdated(t) {
|
293
293
|
}
|
294
294
|
};
|
295
|
-
|
295
|
+
S.elementStyles = [], S.shadowRootOptions = { mode: "open" }, S[T("elementProperties")] = /* @__PURE__ */ new Map(), S[T("finalized")] = /* @__PURE__ */ new Map(), q == null || q({ ReactiveElement: S }), (v.reactiveElementVersions ?? (v.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 N = globalThis,
|
302
|
-
\f\r]`,
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
304
|
-
function
|
301
|
+
const N = globalThis, F = N.trustedTypes, ut = F ? F.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, St = "$lit$", $ = `lit$${(Math.random() + "").slice(9)}$`, Pt = "?" + $, Xt = `<${Pt}>`, w = document, k = () => w.createComment(""), R = (r) => r === null || typeof r != "object" && typeof r != "function", Ot = Array.isArray, Jt = (r) => Ot(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", Y = `[
|
302
|
+
\f\r]`, O = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, gt = /-->/g, ft = />/g, y = RegExp(`>|${Y}(?:([^\\s"'>=/]+)(${Y}*=${Y}*(?:[^
|
303
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), mt = /'/g, $t = /"/g, Tt = /^(?:script|style|textarea|title)$/i, Zt = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), b = Zt(1), x = Symbol.for("lit-noChange"), p = Symbol.for("lit-nothing"), vt = /* @__PURE__ */ new WeakMap(), A = w.createTreeWalker(w, 129);
|
304
|
+
function Nt(r, t) {
|
305
305
|
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
306
306
|
throw Error("invalid template strings array");
|
307
|
-
return
|
307
|
+
return ut !== void 0 ? ut.createHTML(t) : t;
|
308
308
|
}
|
309
|
-
const
|
309
|
+
const Qt = (r, t) => {
|
310
310
|
const e = r.length - 1, s = [];
|
311
|
-
let i, o = t === 2 ? "<svg>" : "", n =
|
311
|
+
let i, o = t === 2 ? "<svg>" : "", n = O;
|
312
312
|
for (let h = 0; h < e; h++) {
|
313
313
|
const a = r[h];
|
314
314
|
let l, c, d = -1, u = 0;
|
315
315
|
for (; u < a.length && (n.lastIndex = u, c = n.exec(a), c !== null); )
|
316
|
-
u = n.lastIndex, n ===
|
317
|
-
const m = n ===
|
318
|
-
o += n ===
|
316
|
+
u = n.lastIndex, n === O ? c[1] === "!--" ? n = gt : c[1] !== void 0 ? n = ft : c[2] !== void 0 ? (Tt.test(c[2]) && (i = RegExp("</" + c[2], "g")), n = y) : c[3] !== void 0 && (n = y) : n === y ? c[0] === ">" ? (n = i ?? O, d = -1) : c[1] === void 0 ? d = -2 : (d = n.lastIndex - c[2].length, l = c[1], n = c[3] === void 0 ? y : c[3] === '"' ? $t : mt) : n === $t || n === mt ? n = y : n === gt || n === ft ? n = O : (n = y, i = void 0);
|
317
|
+
const m = n === y && r[h + 1].startsWith("/>") ? " " : "";
|
318
|
+
o += n === O ? a + Xt : d >= 0 ? (s.push(l), a.slice(0, d) + St + a.slice(d) + $ + m) : a + $ + (d === -2 ? h : m);
|
319
319
|
}
|
320
|
-
return [
|
320
|
+
return [Nt(r, o + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
321
|
};
|
322
|
-
class
|
322
|
+
class M {
|
323
323
|
constructor({ strings: t, _$litType$: e }, s) {
|
324
324
|
let i;
|
325
325
|
this.parts = [];
|
326
326
|
let o = 0, n = 0;
|
327
|
-
const h = t.length - 1, a = this.parts, [l, c] =
|
328
|
-
if (this.el =
|
327
|
+
const h = t.length - 1, a = this.parts, [l, c] = Qt(t, e);
|
328
|
+
if (this.el = M.createElement(l, s), A.currentNode = this.el.content, e === 2) {
|
329
329
|
const d = this.el.content.firstChild;
|
330
330
|
d.replaceWith(...d.childNodes);
|
331
331
|
}
|
332
|
-
for (; (i =
|
332
|
+
for (; (i = A.nextNode()) !== null && a.length < h; ) {
|
333
333
|
if (i.nodeType === 1) {
|
334
334
|
if (i.hasAttributes())
|
335
335
|
for (const d of i.getAttributeNames())
|
336
|
-
if (d.endsWith(
|
337
|
-
const u = c[n++], m = i.getAttribute(d).split($),
|
338
|
-
a.push({ type: 1, index: o, name:
|
336
|
+
if (d.endsWith(St)) {
|
337
|
+
const u = c[n++], m = i.getAttribute(d).split($), D = /([.?@])?(.*)/.exec(u);
|
338
|
+
a.push({ type: 1, index: o, name: D[2], strings: m, ctor: D[1] === "." ? ee : D[1] === "?" ? se : D[1] === "@" ? ie : G }), i.removeAttribute(d);
|
339
339
|
} else
|
340
340
|
d.startsWith($) && (a.push({ type: 6, index: o }), i.removeAttribute(d));
|
341
|
-
if (
|
341
|
+
if (Tt.test(i.tagName)) {
|
342
342
|
const d = i.textContent.split($), u = d.length - 1;
|
343
343
|
if (u > 0) {
|
344
|
-
i.textContent =
|
344
|
+
i.textContent = F ? F.emptyScript : "";
|
345
345
|
for (let m = 0; m < u; m++)
|
346
|
-
i.append(d[m],
|
347
|
-
i.append(d[u],
|
346
|
+
i.append(d[m], k()), A.nextNode(), a.push({ type: 2, index: ++o });
|
347
|
+
i.append(d[u], k());
|
348
348
|
}
|
349
349
|
}
|
350
350
|
} else if (i.nodeType === 8)
|
351
|
-
if (i.data ===
|
351
|
+
if (i.data === Pt)
|
352
352
|
a.push({ type: 2, index: o });
|
353
353
|
else {
|
354
354
|
let d = -1;
|
@@ -359,19 +359,19 @@ class H {
|
|
359
359
|
}
|
360
360
|
}
|
361
361
|
static createElement(t, e) {
|
362
|
-
const s =
|
362
|
+
const s = w.createElement("template");
|
363
363
|
return s.innerHTML = t, s;
|
364
364
|
}
|
365
365
|
}
|
366
|
-
function
|
366
|
+
function P(r, t, e = r, s) {
|
367
367
|
var n, h;
|
368
|
-
if (t ===
|
368
|
+
if (t === x)
|
369
369
|
return t;
|
370
370
|
let i = s !== void 0 ? (n = e._$Co) == null ? void 0 : n[s] : e._$Cl;
|
371
|
-
const o =
|
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 =
|
371
|
+
const o = R(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 = P(r, i._$AS(r, t.values), i, s)), t;
|
373
373
|
}
|
374
|
-
class
|
374
|
+
class te {
|
375
375
|
constructor(t, e) {
|
376
376
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
377
|
}
|
@@ -382,17 +382,17 @@ class Qt {
|
|
382
382
|
return this._$AM._$AU;
|
383
383
|
}
|
384
384
|
u(t) {
|
385
|
-
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ??
|
386
|
-
|
387
|
-
let o =
|
385
|
+
const { el: { content: e }, parts: s } = this._$AD, i = ((t == null ? void 0 : t.creationScope) ?? w).importNode(e, !0);
|
386
|
+
A.currentNode = i;
|
387
|
+
let o = A.nextNode(), n = 0, h = 0, a = s[0];
|
388
388
|
for (; a !== void 0; ) {
|
389
389
|
if (n === a.index) {
|
390
390
|
let l;
|
391
|
-
a.type === 2 ? l = new
|
391
|
+
a.type === 2 ? l = new H(o, o.nextSibling, this, t) : a.type === 1 ? l = new a.ctor(o, a.name, a.strings, this, t) : a.type === 6 && (l = new re(o, this, t)), this._$AV.push(l), a = s[++h];
|
392
392
|
}
|
393
|
-
n !== (a == null ? void 0 : a.index) && (o =
|
393
|
+
n !== (a == null ? void 0 : a.index) && (o = A.nextNode(), n++);
|
394
394
|
}
|
395
|
-
return
|
395
|
+
return A.currentNode = w, i;
|
396
396
|
}
|
397
397
|
p(t) {
|
398
398
|
let e = 0;
|
@@ -400,7 +400,7 @@ 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 H {
|
404
404
|
get _$AU() {
|
405
405
|
var t;
|
406
406
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
@@ -420,7 +420,7 @@ class j {
|
|
420
420
|
return this._$AB;
|
421
421
|
}
|
422
422
|
_$AI(t, e = this) {
|
423
|
-
t =
|
423
|
+
t = P(this, t, e), R(t) ? t === p || t == null || t === "" ? (this._$AH !== p && this._$AR(), this._$AH = p) : t !== this._$AH && t !== x && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Jt(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 !== p &&
|
432
|
+
this._$AH !== p && R(this._$AH) ? this._$AA.nextSibling.data = t : this.$(w.createTextNode(t)), this._$AH = t;
|
433
433
|
}
|
434
434
|
g(t) {
|
435
435
|
var o;
|
436
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el =
|
436
|
+
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = M.createElement(Nt(s.h, s.h[0]), this.options)), s);
|
437
437
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === i)
|
438
438
|
this._$AH.p(e);
|
439
439
|
else {
|
440
|
-
const n = new
|
440
|
+
const n = new te(i, this), h = n.u(this.options);
|
441
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 = vt.get(t.strings);
|
446
|
+
return e === void 0 && vt.set(t.strings, e = new M(t)), e;
|
447
447
|
}
|
448
448
|
T(t) {
|
449
|
-
|
449
|
+
Ot(this._$AH) || (this._$AH = [], this._$AR());
|
450
450
|
const e = this._$AH;
|
451
451
|
let s, i = 0;
|
452
452
|
for (const o of t)
|
453
|
-
i === e.length ? e.push(s = new
|
453
|
+
i === e.length ? e.push(s = new H(this.k(k()), this.k(k()), 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,7 +465,7 @@ 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 G {
|
469
469
|
get tagName() {
|
470
470
|
return this.element.tagName;
|
471
471
|
}
|
@@ -479,12 +479,12 @@ class V {
|
|
479
479
|
const o = this.strings;
|
480
480
|
let n = !1;
|
481
481
|
if (o === void 0)
|
482
|
-
t =
|
482
|
+
t = P(this, t, e, 0), n = !R(t) || t !== this._$AH && t !== x, n && (this._$AH = t);
|
483
483
|
else {
|
484
484
|
const h = t;
|
485
485
|
let a, l;
|
486
486
|
for (t = o[0], a = 0; a < o.length - 1; a++)
|
487
|
-
l =
|
487
|
+
l = P(this, h[s + a], e, a), l === x && (l = this._$AH[a]), n || (n = !R(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
|
}
|
@@ -492,7 +492,7 @@ class V {
|
|
492
492
|
t === p ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
493
|
}
|
494
494
|
}
|
495
|
-
class
|
495
|
+
class ee extends G {
|
496
496
|
constructor() {
|
497
497
|
super(...arguments), this.type = 3;
|
498
498
|
}
|
@@ -500,7 +500,7 @@ class te extends V {
|
|
500
500
|
this.element[this.name] = t === p ? void 0 : t;
|
501
501
|
}
|
502
502
|
}
|
503
|
-
class
|
503
|
+
class se extends G {
|
504
504
|
constructor() {
|
505
505
|
super(...arguments), this.type = 4;
|
506
506
|
}
|
@@ -508,12 +508,12 @@ class ee extends V {
|
|
508
508
|
this.element.toggleAttribute(this.name, !!t && t !== p);
|
509
509
|
}
|
510
510
|
}
|
511
|
-
class
|
511
|
+
class ie extends G {
|
512
512
|
constructor(t, e, s, i, o) {
|
513
513
|
super(t, e, s, i, o), this.type = 5;
|
514
514
|
}
|
515
515
|
_$AI(t, e = this) {
|
516
|
-
if ((t =
|
516
|
+
if ((t = P(this, t, e, 0) ?? p) === x)
|
517
517
|
return;
|
518
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
519
|
i && this.element.removeEventListener(this.name, this, s), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
@@ -523,7 +523,7 @@ class se extends V {
|
|
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 re {
|
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
|
}
|
@@ -531,17 +531,17 @@ class ie {
|
|
531
531
|
return this._$AM._$AU;
|
532
532
|
}
|
533
533
|
_$AI(t) {
|
534
|
-
|
534
|
+
P(this, t);
|
535
535
|
}
|
536
536
|
}
|
537
537
|
const K = N.litHtmlPolyfillSupport;
|
538
|
-
K == null || K(
|
539
|
-
const
|
538
|
+
K == null || K(M, H), (N.litHtmlVersions ?? (N.litHtmlVersions = [])).push("3.0.2");
|
539
|
+
const oe = (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
543
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
s._$litPart$ = i = new
|
544
|
+
s._$litPart$ = i = new H(t.insertBefore(k(), o), o, 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 S {
|
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 = oe(e, this.renderRoot, this.renderOptions);
|
565
565
|
}
|
566
566
|
connectedCallback() {
|
567
567
|
var t;
|
@@ -572,11 +572,11 @@ 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 x;
|
576
576
|
}
|
577
577
|
};
|
578
|
-
var
|
579
|
-
f._$litElement$ = !0, f.finalized = !0, (
|
578
|
+
var Ct;
|
579
|
+
f._$litElement$ = !0, f.finalized = !0, (Ct = globalThis.litElementHydrateSupport) == null || Ct.call(globalThis, { LitElement: f });
|
580
580
|
const X = globalThis.litElementPolyfillSupport;
|
581
581
|
X == null || X({ LitElement: f });
|
582
582
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
@@ -585,7 +585,7 @@ X == null || X({ LitElement: f });
|
|
585
585
|
* Copyright 2021 Google LLC
|
586
586
|
* SPDX-License-Identifier: BSD-3-Clause
|
587
587
|
*/
|
588
|
-
function*
|
588
|
+
function* Ut(r, t) {
|
589
589
|
if (r !== void 0) {
|
590
590
|
let e = 0;
|
591
591
|
for (const s of r)
|
@@ -597,8 +597,87 @@ 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 ne = { attribute: !0, type: String, converter: I, reflect: !1, hasChanged: st }, ae = (r = ne, t, e) => {
|
601
|
+
const { kind: s, metadata: i } = e;
|
602
|
+
let o = globalThis.litPropertyMetadata.get(i);
|
603
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(i, o = /* @__PURE__ */ new Map()), o.set(e.name, r), s === "accessor") {
|
604
|
+
const { name: n } = e;
|
605
|
+
return { set(h) {
|
606
|
+
const a = t.get.call(this);
|
607
|
+
t.set.call(this, h), this.requestUpdate(n, a, r);
|
608
|
+
}, init(h) {
|
609
|
+
return h !== void 0 && this.C(n, void 0, r), h;
|
610
|
+
} };
|
611
|
+
}
|
612
|
+
if (s === "setter") {
|
613
|
+
const { name: n } = e;
|
614
|
+
return function(h) {
|
615
|
+
const a = this[n];
|
616
|
+
t.call(this, h), this.requestUpdate(n, a, r);
|
617
|
+
};
|
618
|
+
}
|
619
|
+
throw Error("Unsupported decorator location: " + s);
|
620
|
+
};
|
621
|
+
function g(r) {
|
622
|
+
return (t, e) => typeof e == "object" ? ae(r, t, e) : ((s, i, o) => {
|
623
|
+
const n = i.hasOwnProperty(o);
|
624
|
+
return i.constructor.createProperty(o, n ? { ...s, wrapped: !0 } : s), n ? Object.getOwnPropertyDescriptor(i, o) : 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 j(r) {
|
633
|
+
return g({ ...r, state: !0, attribute: !1 });
|
634
|
+
}
|
635
|
+
var he = Object.defineProperty, le = Object.getOwnPropertyDescriptor, ce = (r, t, e, s) => {
|
636
|
+
for (var i = s > 1 ? void 0 : s ? le(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
637
|
+
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
638
|
+
return s && i && he(t, e, i), i;
|
639
|
+
};
|
640
|
+
class it extends f {
|
641
|
+
constructor() {
|
642
|
+
super(...arguments), this.anchor = "bottom-right";
|
643
|
+
}
|
644
|
+
appendChild(t) {
|
645
|
+
var e;
|
646
|
+
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
647
|
+
}
|
648
|
+
render() {
|
649
|
+
return this.renderRoot.host.classList.add(this.anchor), p;
|
650
|
+
}
|
651
|
+
}
|
652
|
+
it.styles = [
|
653
|
+
C`
|
654
|
+
:host {
|
655
|
+
position: fixed;
|
656
|
+
display: flex;
|
657
|
+
align-items: center;
|
658
|
+
gap: 1rem;
|
659
|
+
}
|
660
|
+
|
661
|
+
:host(.bottom-right) {
|
662
|
+
bottom: 20px;
|
663
|
+
right: 20px;
|
664
|
+
}
|
665
|
+
:host(.bottom-left) {
|
666
|
+
bottom: 20px;
|
667
|
+
left: 20px;
|
668
|
+
}
|
669
|
+
`
|
670
|
+
];
|
671
|
+
ce([
|
672
|
+
g({ attribute: !0 })
|
673
|
+
], it.prototype, "anchor", 2);
|
674
|
+
/**
|
675
|
+
* @license
|
676
|
+
* Copyright 2017 Google LLC
|
677
|
+
* SPDX-License-Identifier: BSD-3-Clause
|
678
|
+
*/
|
679
|
+
const rt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, ot = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
680
|
+
let kt = class {
|
602
681
|
constructor(t) {
|
603
682
|
}
|
604
683
|
get _$AU() {
|
@@ -619,7 +698,7 @@ let Nt = class {
|
|
619
698
|
* Copyright 2020 Google LLC
|
620
699
|
* SPDX-License-Identifier: BSD-3-Clause
|
621
700
|
*/
|
622
|
-
const
|
701
|
+
const de = (r) => r.strings === void 0;
|
623
702
|
/**
|
624
703
|
* @license
|
625
704
|
* Copyright 2017 Google LLC
|
@@ -633,54 +712,54 @@ const U = (r, t) => {
|
|
633
712
|
for (const i of e)
|
634
713
|
(s = i._$AO) == null || s.call(i, t, !1), U(i, t);
|
635
714
|
return !0;
|
636
|
-
},
|
715
|
+
}, W = (r) => {
|
637
716
|
let t, e;
|
638
717
|
do {
|
639
718
|
if ((t = r._$AM) === void 0)
|
640
719
|
break;
|
641
720
|
e = t._$AN, e.delete(r), r = t;
|
642
721
|
} while ((e == null ? void 0 : e.size) === 0);
|
643
|
-
},
|
722
|
+
}, Rt = (r) => {
|
644
723
|
for (let t; t = r._$AM; r = t) {
|
645
724
|
let e = t._$AN;
|
646
725
|
if (e === void 0)
|
647
726
|
t._$AN = e = /* @__PURE__ */ new Set();
|
648
727
|
else if (e.has(r))
|
649
728
|
break;
|
650
|
-
e.add(r),
|
729
|
+
e.add(r), ge(t);
|
651
730
|
}
|
652
731
|
};
|
653
|
-
function
|
654
|
-
this._$AN !== void 0 ? (
|
732
|
+
function pe(r) {
|
733
|
+
this._$AN !== void 0 ? (W(this), this._$AM = r, Rt(this)) : this._$AM = r;
|
655
734
|
}
|
656
|
-
function
|
735
|
+
function ue(r, t = !1, e = 0) {
|
657
736
|
const s = this._$AH, i = this._$AN;
|
658
737
|
if (i !== void 0 && i.size !== 0)
|
659
738
|
if (t)
|
660
739
|
if (Array.isArray(s))
|
661
740
|
for (let o = e; o < s.length; o++)
|
662
|
-
U(s[o], !1),
|
741
|
+
U(s[o], !1), W(s[o]);
|
663
742
|
else
|
664
|
-
s != null && (U(s, !1),
|
743
|
+
s != null && (U(s, !1), W(s));
|
665
744
|
else
|
666
745
|
U(this, r);
|
667
746
|
}
|
668
|
-
const
|
669
|
-
r.type ==
|
747
|
+
const ge = (r) => {
|
748
|
+
r.type == rt.CHILD && (r._$AP ?? (r._$AP = ue), r._$AQ ?? (r._$AQ = pe));
|
670
749
|
};
|
671
|
-
class
|
750
|
+
class Mt extends kt {
|
672
751
|
constructor() {
|
673
752
|
super(...arguments), this._$AN = void 0;
|
674
753
|
}
|
675
754
|
_$AT(t, e, s) {
|
676
|
-
super._$AT(t, e, s),
|
755
|
+
super._$AT(t, e, s), Rt(this), this.isConnected = t._$AU;
|
677
756
|
}
|
678
757
|
_$AO(t, e = !0) {
|
679
758
|
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 && (U(this, t),
|
759
|
+
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), W(this));
|
681
760
|
}
|
682
761
|
setValue(t) {
|
683
|
-
if (
|
762
|
+
if (de(this._$Ct))
|
684
763
|
this._$Ct._$AI(t, this);
|
685
764
|
else {
|
686
765
|
const e = [...this._$Ct._$AH];
|
@@ -692,34 +771,34 @@ class Rt extends Nt {
|
|
692
771
|
reconnected() {
|
693
772
|
}
|
694
773
|
}
|
695
|
-
const
|
774
|
+
const fe = /* @__PURE__ */ new WeakMap();
|
696
775
|
let yt = 0;
|
697
|
-
const J = /* @__PURE__ */ new Map(),
|
776
|
+
const J = /* @__PURE__ */ new Map(), _t = /* @__PURE__ */ new WeakSet(), bt = () => new Promise((r) => requestAnimationFrame(r)), me = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], At = (r, t) => {
|
698
777
|
const e = r - t;
|
699
778
|
return e === 0 ? void 0 : e;
|
700
|
-
},
|
779
|
+
}, wt = (r, t) => {
|
701
780
|
const e = r / t;
|
702
781
|
return e === 1 ? void 0 : e;
|
703
782
|
}, Z = { left: (r, t) => {
|
704
|
-
const e =
|
783
|
+
const e = At(r, t);
|
705
784
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
706
785
|
}, top: (r, t) => {
|
707
|
-
const e =
|
786
|
+
const e = At(r, t);
|
708
787
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
709
788
|
}, width: (r, t) => {
|
710
789
|
let e;
|
711
790
|
t === 0 && (t = 1, e = { width: "1px" });
|
712
|
-
const s =
|
791
|
+
const s = wt(r, t);
|
713
792
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleX(${s})` };
|
714
793
|
}, height: (r, t) => {
|
715
794
|
let e;
|
716
795
|
t === 0 && (t = 1, e = { height: "1px" });
|
717
|
-
const s =
|
796
|
+
const s = wt(r, t);
|
718
797
|
return { value: s, overrideFrom: e, transform: s == null || isNaN(s) ? void 0 : `scaleY(${s})` };
|
719
|
-
} },
|
720
|
-
class
|
798
|
+
} }, $e = { duration: 333, easing: "ease-in-out" }, ve = ["left", "top", "width", "height", "opacity", "color", "background"], xt = /* @__PURE__ */ new WeakMap();
|
799
|
+
class ye extends Mt {
|
721
800
|
constructor(t) {
|
722
|
-
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type ===
|
801
|
+
if (super(t), this.t = null, this.i = null, this.o = !0, this.shouldLog = !1, t.type === rt.CHILD)
|
723
802
|
throw Error("The `animate` directive must be used in attribute position.");
|
724
803
|
this.createFinished();
|
725
804
|
}
|
@@ -737,7 +816,7 @@ class ue extends Rt {
|
|
737
816
|
return p;
|
738
817
|
}
|
739
818
|
getController() {
|
740
|
-
return
|
819
|
+
return fe.get(this.l);
|
741
820
|
}
|
742
821
|
isDisabled() {
|
743
822
|
var t;
|
@@ -746,12 +825,12 @@ class ue extends Rt {
|
|
746
825
|
update(t, [e]) {
|
747
826
|
var i;
|
748
827
|
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,
|
828
|
+
return s && (this.l = (i = t.options) == null ? void 0 : i.host, this.l.addController(this), this.element = t.element, xt.set(this.element, this)), this.optionsOrCallback = e, (s || typeof e != "function") && this.u(e), this.render(e);
|
750
829
|
}
|
751
830
|
u(t) {
|
752
831
|
t = t ?? {};
|
753
832
|
const e = this.getController();
|
754
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
833
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ve), this.options = t;
|
755
834
|
}
|
756
835
|
p() {
|
757
836
|
const t = {}, e = this.element.getBoundingClientRect(), s = getComputedStyle(this.element);
|
@@ -778,7 +857,7 @@ class ue extends Rt {
|
|
778
857
|
if (!this.o || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered)
|
779
858
|
return;
|
780
859
|
let t;
|
781
|
-
this.prepare(), await
|
860
|
+
this.prepare(), await bt;
|
782
861
|
const e = this._(), s = this.A(this.options.keyframeOptions, e), i = this.p();
|
783
862
|
if (this.g !== void 0) {
|
784
863
|
const { from: o, to: n } = this.O(this.g, i, e);
|
@@ -807,7 +886,7 @@ class ue extends Rt {
|
|
807
886
|
var e;
|
808
887
|
if (!this.o || (this.options.id !== void 0 && J.set(this.options.id, this.g), this.options.out === void 0))
|
809
888
|
return;
|
810
|
-
if (this.prepare(), await
|
889
|
+
if (this.prepare(), await bt(), (e = this.t) == null ? void 0 : e.isConnected) {
|
811
890
|
const s = this.i && this.i.parentNode === this.t ? this.i : null;
|
812
891
|
if (this.t.insertBefore(this.element, s), this.options.stabilizeOut) {
|
813
892
|
const i = this.p();
|
@@ -833,19 +912,19 @@ class ue extends Rt {
|
|
833
912
|
_() {
|
834
913
|
const t = [];
|
835
914
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
836
|
-
const s =
|
915
|
+
const s = xt.get(e);
|
837
916
|
s && !s.isDisabled() && s && t.push(s);
|
838
917
|
}
|
839
918
|
return t;
|
840
919
|
}
|
841
920
|
get isHostRendered() {
|
842
|
-
const t =
|
921
|
+
const t = _t.has(this.l);
|
843
922
|
return t || this.l.updateComplete.then(() => {
|
844
|
-
|
923
|
+
_t.add(this.l);
|
845
924
|
}), t;
|
846
925
|
}
|
847
926
|
A(t, e = this._()) {
|
848
|
-
const s = {
|
927
|
+
const s = { ...$e };
|
849
928
|
return e.forEach((i) => Object.assign(s, i.options.keyframeOptions)), Object.assign(s, t), s;
|
850
929
|
}
|
851
930
|
O(t, e, s) {
|
@@ -896,56 +975,16 @@ class ue extends Rt {
|
|
896
975
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
897
976
|
}
|
898
977
|
}
|
899
|
-
const
|
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
|
-
}
|
978
|
+
const _e = ot(ye);
|
940
979
|
/**
|
941
980
|
* @license
|
942
981
|
* Copyright 2018 Google LLC
|
943
982
|
* SPDX-License-Identifier: BSD-3-Clause
|
944
983
|
*/
|
945
|
-
const
|
984
|
+
const be = ot(class extends kt {
|
946
985
|
constructor(r) {
|
947
986
|
var t;
|
948
|
-
if (super(r), r.type !==
|
987
|
+
if (super(r), r.type !== rt.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
949
988
|
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
950
989
|
}
|
951
990
|
render(r) {
|
@@ -966,21 +1005,21 @@ const $e = rt(class extends Nt {
|
|
966
1005
|
const n = !!t[o];
|
967
1006
|
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
1007
|
}
|
969
|
-
return
|
1008
|
+
return x;
|
970
1009
|
}
|
971
|
-
}),
|
1010
|
+
}), z = (r, t, e) => {
|
972
1011
|
r && e.style.setProperty(t, r);
|
973
|
-
},
|
1012
|
+
}, Ht = (r, t) => {
|
974
1013
|
var e, s, i, o;
|
975
|
-
|
1014
|
+
z((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), z(
|
976
1015
|
(s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
977
1016
|
"--text-on-primary-background",
|
978
1017
|
t
|
979
|
-
),
|
1018
|
+
), z(
|
980
1019
|
(i = r.colors) == null ? void 0 : i.secondaryBackground,
|
981
1020
|
"--secondary-background",
|
982
1021
|
t
|
983
|
-
),
|
1022
|
+
), z(
|
984
1023
|
(o = r.colors) == null ? void 0 : o.textOnSecondaryBackground,
|
985
1024
|
"--text-on-secondary-background",
|
986
1025
|
t
|
@@ -991,10 +1030,10 @@ const $e = rt(class extends Nt {
|
|
991
1030
|
* Copyright 2020 Google LLC
|
992
1031
|
* SPDX-License-Identifier: BSD-3-Clause
|
993
1032
|
*/
|
994
|
-
const
|
995
|
-
class
|
1033
|
+
const jt = () => new Ae();
|
1034
|
+
class Ae {
|
996
1035
|
}
|
997
|
-
const Q = /* @__PURE__ */ new WeakMap(),
|
1036
|
+
const Q = /* @__PURE__ */ new WeakMap(), Lt = ot(class extends Mt {
|
998
1037
|
render(r) {
|
999
1038
|
return p;
|
1000
1039
|
}
|
@@ -1022,17 +1061,17 @@ const Q = /* @__PURE__ */ new WeakMap(), jt = rt(class extends Rt {
|
|
1022
1061
|
this.ot(this.lt);
|
1023
1062
|
}
|
1024
1063
|
});
|
1025
|
-
var
|
1026
|
-
for (var i = s > 1 ? void 0 : s ?
|
1064
|
+
var we = Object.defineProperty, xe = Object.getOwnPropertyDescriptor, V = (r, t, e, s) => {
|
1065
|
+
for (var i = s > 1 ? void 0 : s ? xe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1027
1066
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1028
|
-
return s && i &&
|
1067
|
+
return s && i && we(t, e, i), i;
|
1029
1068
|
};
|
1030
|
-
class
|
1069
|
+
class E extends f {
|
1031
1070
|
constructor() {
|
1032
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.
|
1071
|
+
super(...arguments), this.active = !1, this.loaded = !1, this.containerRef = jt();
|
1033
1072
|
}
|
1034
1073
|
async connectedCallback() {
|
1035
|
-
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding()
|
1074
|
+
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
1036
1075
|
}
|
1037
1076
|
_toggleActive() {
|
1038
1077
|
var t;
|
@@ -1046,13 +1085,13 @@ class v extends f {
|
|
1046
1085
|
}
|
1047
1086
|
_applyBranding() {
|
1048
1087
|
var t;
|
1049
|
-
(t = this.application) != null && t.settings &&
|
1088
|
+
(t = this.application) != null && t.settings && Ht(this.application.settings.branding, this);
|
1050
1089
|
}
|
1051
1090
|
async _renderSymbol() {
|
1052
1091
|
var h, a, l;
|
1053
1092
|
const t = (h = this.application) == null ? void 0 : h.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
|
1054
1093
|
if (e)
|
1055
|
-
return
|
1094
|
+
return b` <img src=${e} class="trigger-icon" alt="" /> `;
|
1056
1095
|
const s = (l = this.application) == null ? void 0 : l.triggerIcon;
|
1057
1096
|
if (!s)
|
1058
1097
|
return p;
|
@@ -1062,7 +1101,7 @@ class v extends f {
|
|
1062
1101
|
switch (o) {
|
1063
1102
|
case "Telia": {
|
1064
1103
|
const c = await i(n);
|
1065
|
-
return c ?
|
1104
|
+
return c ? b`<telia-icon
|
1066
1105
|
class="trigger-icon"
|
1067
1106
|
svg=${c.svg}
|
1068
1107
|
size="lg"
|
@@ -1072,19 +1111,16 @@ class v extends f {
|
|
1072
1111
|
return p;
|
1073
1112
|
}
|
1074
1113
|
}
|
1075
|
-
setOffset(t) {
|
1076
|
-
this.offset = t;
|
1077
|
-
}
|
1078
1114
|
render() {
|
1079
1115
|
var t, e, s, i;
|
1080
|
-
return
|
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) ?
|
1116
|
+
return b`<div class="trigger-container" ${Lt(this.containerRef)}>
|
1117
|
+
${!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) ? b`
|
1082
1118
|
<button
|
1083
1119
|
class="trigger-label"
|
1084
1120
|
@click=${this._toggleActive}
|
1085
|
-
${
|
1121
|
+
${_e({
|
1086
1122
|
keyframeOptions: {},
|
1087
|
-
in:
|
1123
|
+
in: me,
|
1088
1124
|
stabilizeOut: !0,
|
1089
1125
|
skipInitial: !1
|
1090
1126
|
})}
|
@@ -1094,13 +1130,12 @@ class v extends f {
|
|
1094
1130
|
` : p}
|
1095
1131
|
|
1096
1132
|
<button
|
1097
|
-
class=${
|
1133
|
+
class=${be({
|
1098
1134
|
trigger: !0,
|
1099
1135
|
active: this.active,
|
1100
1136
|
rendered: this.loaded
|
1101
1137
|
})}
|
1102
1138
|
@click=${this._toggleActive}
|
1103
|
-
${jt(this.buttonRef)}
|
1104
1139
|
>
|
1105
1140
|
${this.icon}
|
1106
1141
|
<span class="trigger-close">
|
@@ -1134,8 +1169,8 @@ class v extends f {
|
|
1134
1169
|
</div>`;
|
1135
1170
|
}
|
1136
1171
|
}
|
1137
|
-
|
1138
|
-
|
1172
|
+
E.styles = [
|
1173
|
+
C`
|
1139
1174
|
:host {
|
1140
1175
|
--voca-rem-multiplier: 0.625;
|
1141
1176
|
--trigger-label-bg: #f5e0ff;
|
@@ -1147,9 +1182,6 @@ v.styles = [
|
|
1147
1182
|
}
|
1148
1183
|
|
1149
1184
|
.trigger-container {
|
1150
|
-
position: fixed;
|
1151
|
-
bottom: 20px;
|
1152
|
-
right: 20px;
|
1153
1185
|
display: flex;
|
1154
1186
|
align-items: center;
|
1155
1187
|
gap: 1rem;
|
@@ -1244,27 +1276,24 @@ v.styles = [
|
|
1244
1276
|
}
|
1245
1277
|
`
|
1246
1278
|
];
|
1247
|
-
|
1279
|
+
V([
|
1248
1280
|
g({ attribute: !1 })
|
1249
|
-
],
|
1250
|
-
|
1251
|
-
|
1252
|
-
],
|
1253
|
-
|
1254
|
-
|
1255
|
-
],
|
1256
|
-
|
1257
|
-
|
1258
|
-
],
|
1259
|
-
|
1260
|
-
|
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--)
|
1281
|
+
], E.prototype, "application", 2);
|
1282
|
+
V([
|
1283
|
+
j()
|
1284
|
+
], E.prototype, "active", 2);
|
1285
|
+
V([
|
1286
|
+
j()
|
1287
|
+
], E.prototype, "loaded", 2);
|
1288
|
+
V([
|
1289
|
+
j()
|
1290
|
+
], E.prototype, "icon", 2);
|
1291
|
+
var Ce = Object.defineProperty, Ee = Object.getOwnPropertyDescriptor, _ = (r, t, e, s) => {
|
1292
|
+
for (var i = s > 1 ? void 0 : s ? Ee(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1264
1293
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1265
|
-
return s && i &&
|
1294
|
+
return s && i && Ce(t, e, i), i;
|
1266
1295
|
};
|
1267
|
-
const
|
1296
|
+
const Dt = (r) => {
|
1268
1297
|
class t extends r {
|
1269
1298
|
constructor() {
|
1270
1299
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
@@ -1290,7 +1319,7 @@ const Lt = (r) => {
|
|
1290
1319
|
}
|
1291
1320
|
return t.styles = [
|
1292
1321
|
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1293
|
-
|
1322
|
+
C`
|
1294
1323
|
:host {
|
1295
1324
|
font-family: var(--font-family);
|
1296
1325
|
grid-column: span var(--width);
|
@@ -1303,42 +1332,42 @@ const Lt = (r) => {
|
|
1303
1332
|
box-sizing: border-box;
|
1304
1333
|
}
|
1305
1334
|
`
|
1306
|
-
],
|
1335
|
+
], _([
|
1307
1336
|
g()
|
1308
|
-
], t.prototype, "properties", 2),
|
1337
|
+
], t.prototype, "properties", 2), _([
|
1309
1338
|
g()
|
1310
|
-
], t.prototype, "context", 2),
|
1339
|
+
], t.prototype, "context", 2), _([
|
1311
1340
|
g()
|
1312
|
-
], t.prototype, "layout", 2),
|
1341
|
+
], t.prototype, "layout", 2), _([
|
1313
1342
|
g()
|
1314
|
-
], t.prototype, "name", 2),
|
1343
|
+
], t.prototype, "name", 2), _([
|
1315
1344
|
g()
|
1316
|
-
], t.prototype, "type", 2),
|
1345
|
+
], t.prototype, "type", 2), _([
|
1317
1346
|
g({ attribute: !1 })
|
1318
|
-
], t.prototype, "application", 2),
|
1347
|
+
], t.prototype, "application", 2), _([
|
1319
1348
|
g({ attribute: !1 })
|
1320
1349
|
], t.prototype, "parent", 2), t;
|
1321
1350
|
};
|
1322
|
-
class
|
1351
|
+
class zt extends Dt(f) {
|
1323
1352
|
render() {
|
1324
|
-
return
|
1353
|
+
return b`Non resolved component`;
|
1325
1354
|
}
|
1326
1355
|
}
|
1327
|
-
|
1328
|
-
|
1356
|
+
zt.styles = [
|
1357
|
+
C`
|
1329
1358
|
:host {
|
1330
1359
|
display: block;
|
1331
1360
|
}
|
1332
1361
|
`
|
1333
1362
|
];
|
1334
|
-
var
|
1335
|
-
for (var i = s > 1 ? void 0 : s ?
|
1363
|
+
var nt = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(nt || {}), Se = Object.defineProperty, Pe = Object.getOwnPropertyDescriptor, Oe = (r, t, e, s) => {
|
1364
|
+
for (var i = s > 1 ? void 0 : s ? Pe(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1336
1365
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1337
|
-
return s && i &&
|
1366
|
+
return s && i && Se(t, e, i), i;
|
1338
1367
|
};
|
1339
|
-
class
|
1368
|
+
class at extends f {
|
1340
1369
|
constructor() {
|
1341
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
1370
|
+
super(...arguments), this.nodes = [], this.wrapperRef = jt();
|
1342
1371
|
}
|
1343
1372
|
addChild(t) {
|
1344
1373
|
t.parent = this, this.nodes.push(t);
|
@@ -1347,7 +1376,7 @@ class nt extends f {
|
|
1347
1376
|
if (!this.wrapperRef.value)
|
1348
1377
|
return;
|
1349
1378
|
const t = this.application.settings;
|
1350
|
-
t != null && t.branding &&
|
1379
|
+
t != null && t.branding && Ht(t.branding, this.wrapperRef.value);
|
1351
1380
|
}
|
1352
1381
|
applyStyles() {
|
1353
1382
|
if (!this.wrapperRef.value)
|
@@ -1361,12 +1390,12 @@ class nt extends f {
|
|
1361
1390
|
this.applyBranding(), this.applyStyles();
|
1362
1391
|
}
|
1363
1392
|
render() {
|
1364
|
-
return this.application.renderStrategy ===
|
1365
|
-
${
|
1393
|
+
return this.application.renderStrategy === nt.Trigger && (this.renderRoot.host.classList.add("floating"), this.renderRoot.host.classList.add(this.application.anchor)), b`<div class="widget-container" ${Lt(this.wrapperRef)}>
|
1394
|
+
${Ut(this.nodes, (t) => t)}
|
1366
1395
|
</div>`;
|
1367
1396
|
}
|
1368
1397
|
}
|
1369
|
-
|
1398
|
+
at.styles = C`
|
1370
1399
|
:host {
|
1371
1400
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1372
1401
|
--spacing-xs: 0.2rem;
|
@@ -1413,6 +1442,12 @@ nt.styles = P`
|
|
1413
1442
|
width: 400px;
|
1414
1443
|
height: 700px;
|
1415
1444
|
}
|
1445
|
+
:host(.floating.bottom-right) {
|
1446
|
+
inset: auto 20px 95px auto;
|
1447
|
+
}
|
1448
|
+
:host(.floating.bottom-left) {
|
1449
|
+
inset: auto auto 95px 20px;
|
1450
|
+
}
|
1416
1451
|
}
|
1417
1452
|
|
1418
1453
|
:host(.floating) .widget-container {
|
@@ -1458,15 +1493,15 @@ nt.styles = P`
|
|
1458
1493
|
animation: slideDown 0.3s linear;
|
1459
1494
|
}
|
1460
1495
|
`;
|
1461
|
-
|
1496
|
+
Oe([
|
1462
1497
|
g({ attribute: !1 })
|
1463
|
-
],
|
1464
|
-
var
|
1465
|
-
for (var i = s > 1 ? void 0 : s ?
|
1498
|
+
], at.prototype, "application", 2);
|
1499
|
+
var Te = Object.defineProperty, Ne = Object.getOwnPropertyDescriptor, ht = (r, t, e, s) => {
|
1500
|
+
for (var i = s > 1 ? void 0 : s ? Ne(t, e) : t, o = r.length - 1, n; o >= 0; o--)
|
1466
1501
|
(n = r[o]) && (i = (s ? n(t, e, i) : n(i)) || i);
|
1467
|
-
return s && i &&
|
1502
|
+
return s && i && Te(t, e, i), i;
|
1468
1503
|
};
|
1469
|
-
class
|
1504
|
+
class L extends f {
|
1470
1505
|
constructor() {
|
1471
1506
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1472
1507
|
}
|
@@ -1491,58 +1526,59 @@ class D extends f {
|
|
1491
1526
|
render() {
|
1492
1527
|
if (!this.widget || this.status !== "activated")
|
1493
1528
|
return p;
|
1494
|
-
if (this.widget.renderStrategy ===
|
1495
|
-
const t = new
|
1529
|
+
if (this.widget.renderStrategy === nt.Trigger) {
|
1530
|
+
const t = new E();
|
1496
1531
|
return t.application = this.widget, t;
|
1497
1532
|
}
|
1498
1533
|
return this.widget.render();
|
1499
1534
|
}
|
1500
1535
|
}
|
1501
|
-
|
1502
|
-
|
1536
|
+
L.styles = [
|
1537
|
+
C`
|
1503
1538
|
:host {
|
1504
1539
|
display: block;
|
1505
1540
|
}
|
1506
1541
|
`
|
1507
1542
|
];
|
1508
|
-
|
1543
|
+
ht([
|
1509
1544
|
g({ attribute: !0 })
|
1510
|
-
],
|
1511
|
-
|
1512
|
-
|
1513
|
-
],
|
1514
|
-
|
1515
|
-
|
1516
|
-
],
|
1517
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger",
|
1518
|
-
customElements.get("ace-
|
1519
|
-
customElements.get("ace-
|
1520
|
-
customElements.get("ace-
|
1521
|
-
|
1545
|
+
], L.prototype, "name", 2);
|
1546
|
+
ht([
|
1547
|
+
j()
|
1548
|
+
], L.prototype, "widget", 2);
|
1549
|
+
ht([
|
1550
|
+
j()
|
1551
|
+
], L.prototype, "status", 2);
|
1552
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", it);
|
1553
|
+
customElements.get("ace-trigger") || customElements.define("ace-trigger", E);
|
1554
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", zt);
|
1555
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", at);
|
1556
|
+
customElements.get("ace-widget") || customElements.define("ace-widget", L);
|
1557
|
+
const Ue = (r) => {
|
1522
1558
|
const t = {};
|
1523
1559
|
return Object.keys(r).forEach((e) => {
|
1524
1560
|
e.indexOf("css-") > -1 && (t[e] = r[e]);
|
1525
1561
|
}), t;
|
1526
|
-
},
|
1527
|
-
const e =
|
1562
|
+
}, ke = (r, t) => {
|
1563
|
+
const e = Ue(t);
|
1528
1564
|
Object.entries(e).forEach(([s, i]) => {
|
1529
1565
|
r.style.setProperty(s.replace("css-", ""), i);
|
1530
1566
|
});
|
1531
1567
|
};
|
1532
|
-
class
|
1568
|
+
class Re extends Dt(f) {
|
1533
1569
|
constructor() {
|
1534
1570
|
super(...arguments), this.nodes = [];
|
1535
1571
|
}
|
1536
1572
|
render() {
|
1537
1573
|
var t;
|
1538
|
-
return
|
1574
|
+
return ke(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1539
1575
|
"--columns",
|
1540
1576
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1541
|
-
),
|
1577
|
+
), b`${Ut(this.nodes, (e) => e)}`;
|
1542
1578
|
}
|
1543
1579
|
}
|
1544
|
-
|
1545
|
-
|
1580
|
+
Re.styles = [
|
1581
|
+
C`
|
1546
1582
|
:host {
|
1547
1583
|
height: 100%;
|
1548
1584
|
display: grid;
|
@@ -1555,6 +1591,6 @@ Te.styles = [
|
|
1555
1591
|
`
|
1556
1592
|
];
|
1557
1593
|
export {
|
1558
|
-
|
1559
|
-
|
1594
|
+
Re as Area,
|
1595
|
+
Re as default
|
1560
1596
|
};
|