@telia-ace/widget-components-area-flamingo 1.1.28-rc.0 → 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-e653d58f.mjs +1560 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/area-a7a242d5.js +0 -283
- package/area-f93cd792.mjs +0 -1302
package/area-f93cd792.mjs
DELETED
@@ -1,1302 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @license
|
3
|
-
* Copyright 2019 Google LLC
|
4
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
5
|
-
*/
|
6
|
-
const I = globalThis, Q = I.ShadowRoot && (I.ShadyCSS === void 0 || I.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, X = Symbol(), rt = /* @__PURE__ */ new WeakMap();
|
7
|
-
let ft = class {
|
8
|
-
constructor(t, e, s) {
|
9
|
-
if (this._$cssResult$ = !0, s !== X)
|
10
|
-
throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
11
|
-
this.cssText = t, this.t = e;
|
12
|
-
}
|
13
|
-
get styleSheet() {
|
14
|
-
let t = this.o;
|
15
|
-
const e = this.t;
|
16
|
-
if (Q && t === void 0) {
|
17
|
-
const s = e !== void 0 && e.length === 1;
|
18
|
-
s && (t = rt.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && rt.set(e, t));
|
19
|
-
}
|
20
|
-
return t;
|
21
|
-
}
|
22
|
-
toString() {
|
23
|
-
return this.cssText;
|
24
|
-
}
|
25
|
-
};
|
26
|
-
const Ut = (r) => new ft(typeof r == "string" ? r : r + "", void 0, X), P = (r, ...t) => {
|
27
|
-
const e = r.length === 1 ? r[0] : t.reduce((s, i, n) => s + ((o) => {
|
28
|
-
if (o._$cssResult$ === !0)
|
29
|
-
return o.cssText;
|
30
|
-
if (typeof o == "number")
|
31
|
-
return o;
|
32
|
-
throw Error("Value passed to 'css' function must be a 'css' function result: " + o + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
33
|
-
})(i) + r[n + 1], r[0]);
|
34
|
-
return new ft(e, r, X);
|
35
|
-
}, Rt = (r, t) => {
|
36
|
-
if (Q)
|
37
|
-
r.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
38
|
-
else
|
39
|
-
for (const e of t) {
|
40
|
-
const s = document.createElement("style"), i = I.litNonce;
|
41
|
-
i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, r.appendChild(s);
|
42
|
-
}
|
43
|
-
}, nt = Q ? (r) => r : (r) => r instanceof CSSStyleSheet ? ((t) => {
|
44
|
-
let e = "";
|
45
|
-
for (const s of t.cssRules)
|
46
|
-
e += s.cssText;
|
47
|
-
return Ut(e);
|
48
|
-
})(r) : r;
|
49
|
-
/**
|
50
|
-
* @license
|
51
|
-
* Copyright 2017 Google LLC
|
52
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
53
|
-
*/
|
54
|
-
const { is: Nt, defineProperty: kt, getOwnPropertyDescriptor: Mt, getOwnPropertyNames: Ht, getOwnPropertySymbols: Lt, getPrototypeOf: jt } = Object, _ = globalThis, ot = _.trustedTypes, Dt = ot ? ot.emptyScript : "", Y = _.reactiveElementPolyfillSupport, U = (r, t) => r, G = { toAttribute(r, t) {
|
55
|
-
switch (t) {
|
56
|
-
case Boolean:
|
57
|
-
r = r ? Dt : null;
|
58
|
-
break;
|
59
|
-
case Object:
|
60
|
-
case Array:
|
61
|
-
r = r == null ? r : JSON.stringify(r);
|
62
|
-
}
|
63
|
-
return r;
|
64
|
-
}, fromAttribute(r, t) {
|
65
|
-
let e = r;
|
66
|
-
switch (t) {
|
67
|
-
case Boolean:
|
68
|
-
e = r !== null;
|
69
|
-
break;
|
70
|
-
case Number:
|
71
|
-
e = r === null ? null : Number(r);
|
72
|
-
break;
|
73
|
-
case Object:
|
74
|
-
case Array:
|
75
|
-
try {
|
76
|
-
e = JSON.parse(r);
|
77
|
-
} catch {
|
78
|
-
e = null;
|
79
|
-
}
|
80
|
-
}
|
81
|
-
return e;
|
82
|
-
} }, tt = (r, t) => !Nt(r, t), at = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: tt };
|
83
|
-
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), _.litPropertyMetadata ?? (_.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
84
|
-
class E extends HTMLElement {
|
85
|
-
static addInitializer(t) {
|
86
|
-
this._$Ei(), (this.l ?? (this.l = [])).push(t);
|
87
|
-
}
|
88
|
-
static get observedAttributes() {
|
89
|
-
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
90
|
-
}
|
91
|
-
static createProperty(t, e = at) {
|
92
|
-
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
93
|
-
const s = Symbol(), i = this.getPropertyDescriptor(t, s, e);
|
94
|
-
i !== void 0 && kt(this.prototype, t, i);
|
95
|
-
}
|
96
|
-
}
|
97
|
-
static getPropertyDescriptor(t, e, s) {
|
98
|
-
const { get: i, set: n } = Mt(this.prototype, t) ?? { get() {
|
99
|
-
return this[e];
|
100
|
-
}, set(o) {
|
101
|
-
this[e] = o;
|
102
|
-
} };
|
103
|
-
return { get() {
|
104
|
-
return i == null ? void 0 : i.call(this);
|
105
|
-
}, set(o) {
|
106
|
-
const c = i == null ? void 0 : i.call(this);
|
107
|
-
n.call(this, o), this.requestUpdate(t, c, s);
|
108
|
-
}, configurable: !0, enumerable: !0 };
|
109
|
-
}
|
110
|
-
static getPropertyOptions(t) {
|
111
|
-
return this.elementProperties.get(t) ?? at;
|
112
|
-
}
|
113
|
-
static _$Ei() {
|
114
|
-
if (this.hasOwnProperty(U("elementProperties")))
|
115
|
-
return;
|
116
|
-
const t = jt(this);
|
117
|
-
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
118
|
-
}
|
119
|
-
static finalize() {
|
120
|
-
if (this.hasOwnProperty(U("finalized")))
|
121
|
-
return;
|
122
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(U("properties"))) {
|
123
|
-
const e = this.properties, s = [...Ht(e), ...Lt(e)];
|
124
|
-
for (const i of s)
|
125
|
-
this.createProperty(i, e[i]);
|
126
|
-
}
|
127
|
-
const t = this[Symbol.metadata];
|
128
|
-
if (t !== null) {
|
129
|
-
const e = litPropertyMetadata.get(t);
|
130
|
-
if (e !== void 0)
|
131
|
-
for (const [s, i] of e)
|
132
|
-
this.elementProperties.set(s, i);
|
133
|
-
}
|
134
|
-
this._$Eh = /* @__PURE__ */ new Map();
|
135
|
-
for (const [e, s] of this.elementProperties) {
|
136
|
-
const i = this._$Eu(e, s);
|
137
|
-
i !== void 0 && this._$Eh.set(i, e);
|
138
|
-
}
|
139
|
-
this.elementStyles = this.finalizeStyles(this.styles);
|
140
|
-
}
|
141
|
-
static finalizeStyles(t) {
|
142
|
-
const e = [];
|
143
|
-
if (Array.isArray(t)) {
|
144
|
-
const s = new Set(t.flat(1 / 0).reverse());
|
145
|
-
for (const i of s)
|
146
|
-
e.unshift(nt(i));
|
147
|
-
} else
|
148
|
-
t !== void 0 && e.push(nt(t));
|
149
|
-
return e;
|
150
|
-
}
|
151
|
-
static _$Eu(t, e) {
|
152
|
-
const s = e.attribute;
|
153
|
-
return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
|
154
|
-
}
|
155
|
-
constructor() {
|
156
|
-
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
157
|
-
}
|
158
|
-
_$Ev() {
|
159
|
-
var t;
|
160
|
-
this._$Eg = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$E_(), this.requestUpdate(), (t = this.constructor.l) == null || t.forEach((e) => e(this));
|
161
|
-
}
|
162
|
-
addController(t) {
|
163
|
-
var e;
|
164
|
-
(this._$ES ?? (this._$ES = [])).push(t), this.renderRoot !== void 0 && this.isConnected && ((e = t.hostConnected) == null || e.call(t));
|
165
|
-
}
|
166
|
-
removeController(t) {
|
167
|
-
var e;
|
168
|
-
(e = this._$ES) == null || e.splice(this._$ES.indexOf(t) >>> 0, 1);
|
169
|
-
}
|
170
|
-
_$E_() {
|
171
|
-
const t = /* @__PURE__ */ new Map(), e = this.constructor.elementProperties;
|
172
|
-
for (const s of e.keys())
|
173
|
-
this.hasOwnProperty(s) && (t.set(s, this[s]), delete this[s]);
|
174
|
-
t.size > 0 && (this._$Ep = t);
|
175
|
-
}
|
176
|
-
createRenderRoot() {
|
177
|
-
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
178
|
-
return Rt(t, this.constructor.elementStyles), t;
|
179
|
-
}
|
180
|
-
connectedCallback() {
|
181
|
-
var t;
|
182
|
-
this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) == null || t.forEach((e) => {
|
183
|
-
var s;
|
184
|
-
return (s = e.hostConnected) == null ? void 0 : s.call(e);
|
185
|
-
});
|
186
|
-
}
|
187
|
-
enableUpdating(t) {
|
188
|
-
}
|
189
|
-
disconnectedCallback() {
|
190
|
-
var t;
|
191
|
-
(t = this._$ES) == null || t.forEach((e) => {
|
192
|
-
var s;
|
193
|
-
return (s = e.hostDisconnected) == null ? void 0 : s.call(e);
|
194
|
-
});
|
195
|
-
}
|
196
|
-
attributeChangedCallback(t, e, s) {
|
197
|
-
this._$AK(t, s);
|
198
|
-
}
|
199
|
-
_$EO(t, e) {
|
200
|
-
var n;
|
201
|
-
const s = this.constructor.elementProperties.get(t), i = this.constructor._$Eu(t, s);
|
202
|
-
if (i !== void 0 && s.reflect === !0) {
|
203
|
-
const o = (((n = s.converter) == null ? void 0 : n.toAttribute) !== void 0 ? s.converter : G).toAttribute(e, s.type);
|
204
|
-
this._$Em = t, o == null ? this.removeAttribute(i) : this.setAttribute(i, o), this._$Em = null;
|
205
|
-
}
|
206
|
-
}
|
207
|
-
_$AK(t, e) {
|
208
|
-
var n;
|
209
|
-
const s = this.constructor, i = s._$Eh.get(t);
|
210
|
-
if (i !== void 0 && this._$Em !== i) {
|
211
|
-
const o = s.getPropertyOptions(i), c = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : G;
|
212
|
-
this._$Em = i, this[i] = c.fromAttribute(e, o.type), this._$Em = null;
|
213
|
-
}
|
214
|
-
}
|
215
|
-
requestUpdate(t, e, s, i = !1, n) {
|
216
|
-
if (t !== void 0) {
|
217
|
-
if (s ?? (s = this.constructor.getPropertyOptions(t)), !(s.hasChanged ?? tt)(i ? n : this[t], e))
|
218
|
-
return;
|
219
|
-
this.C(t, e, s);
|
220
|
-
}
|
221
|
-
this.isUpdatePending === !1 && (this._$Eg = this._$EP());
|
222
|
-
}
|
223
|
-
C(t, e, s) {
|
224
|
-
this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$Em !== t && (this._$Ej ?? (this._$Ej = /* @__PURE__ */ new Set())).add(t);
|
225
|
-
}
|
226
|
-
async _$EP() {
|
227
|
-
this.isUpdatePending = !0;
|
228
|
-
try {
|
229
|
-
await this._$Eg;
|
230
|
-
} catch (e) {
|
231
|
-
Promise.reject(e);
|
232
|
-
}
|
233
|
-
const t = this.scheduleUpdate();
|
234
|
-
return t != null && await t, !this.isUpdatePending;
|
235
|
-
}
|
236
|
-
scheduleUpdate() {
|
237
|
-
return this.performUpdate();
|
238
|
-
}
|
239
|
-
performUpdate() {
|
240
|
-
var s;
|
241
|
-
if (!this.isUpdatePending)
|
242
|
-
return;
|
243
|
-
if (!this.hasUpdated) {
|
244
|
-
if (this._$Ep) {
|
245
|
-
for (const [n, o] of this._$Ep)
|
246
|
-
this[n] = o;
|
247
|
-
this._$Ep = void 0;
|
248
|
-
}
|
249
|
-
const i = this.constructor.elementProperties;
|
250
|
-
if (i.size > 0)
|
251
|
-
for (const [n, o] of i)
|
252
|
-
o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.C(n, this[n], o);
|
253
|
-
}
|
254
|
-
let t = !1;
|
255
|
-
const e = this._$AL;
|
256
|
-
try {
|
257
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (s = this._$ES) == null || s.forEach((i) => {
|
258
|
-
var n;
|
259
|
-
return (n = i.hostUpdate) == null ? void 0 : n.call(i);
|
260
|
-
}), this.update(e)) : this._$ET();
|
261
|
-
} catch (i) {
|
262
|
-
throw t = !1, this._$ET(), i;
|
263
|
-
}
|
264
|
-
t && this._$AE(e);
|
265
|
-
}
|
266
|
-
willUpdate(t) {
|
267
|
-
}
|
268
|
-
_$AE(t) {
|
269
|
-
var e;
|
270
|
-
(e = this._$ES) == null || e.forEach((s) => {
|
271
|
-
var i;
|
272
|
-
return (i = s.hostUpdated) == null ? void 0 : i.call(s);
|
273
|
-
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
274
|
-
}
|
275
|
-
_$ET() {
|
276
|
-
this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
|
277
|
-
}
|
278
|
-
get updateComplete() {
|
279
|
-
return this.getUpdateComplete();
|
280
|
-
}
|
281
|
-
getUpdateComplete() {
|
282
|
-
return this._$Eg;
|
283
|
-
}
|
284
|
-
shouldUpdate(t) {
|
285
|
-
return !0;
|
286
|
-
}
|
287
|
-
update(t) {
|
288
|
-
this._$Ej && (this._$Ej = this._$Ej.forEach((e) => this._$EO(e, this[e]))), this._$ET();
|
289
|
-
}
|
290
|
-
updated(t) {
|
291
|
-
}
|
292
|
-
firstUpdated(t) {
|
293
|
-
}
|
294
|
-
}
|
295
|
-
E.elementStyles = [], E.shadowRootOptions = { mode: "open" }, E[U("elementProperties")] = /* @__PURE__ */ new Map(), E[U("finalized")] = /* @__PURE__ */ new Map(), Y == null || Y({ ReactiveElement: E }), (_.reactiveElementVersions ?? (_.reactiveElementVersions = [])).push("2.0.1");
|
296
|
-
/**
|
297
|
-
* @license
|
298
|
-
* Copyright 2017 Google LLC
|
299
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
300
|
-
*/
|
301
|
-
const R = globalThis, W = R.trustedTypes, ct = W ? W.createPolicy("lit-html", { createHTML: (r) => r }) : void 0, $t = "$lit$", m = `lit$${(Math.random() + "").slice(9)}$`, mt = "?" + m, zt = `<${mt}>`, w = document, k = () => w.createComment(""), M = (r) => r === null || typeof r != "object" && typeof r != "function", _t = Array.isArray, Bt = (r) => _t(r) || typeof (r == null ? void 0 : r[Symbol.iterator]) == "function", J = `[
|
302
|
-
\f\r]`, T = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, ht = /-->/g, lt = />/g, v = RegExp(`>|${J}(?:([^\\s"'>=/]+)(${J}*=${J}*(?:[^
|
303
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), dt = /'/g, pt = /"/g, yt = /^(?:script|style|textarea|title)$/i, It = (r) => (t, ...e) => ({ _$litType$: r, strings: t, values: e }), C = It(1), x = Symbol.for("lit-noChange"), l = Symbol.for("lit-nothing"), ut = /* @__PURE__ */ new WeakMap(), A = w.createTreeWalker(w, 129);
|
304
|
-
function vt(r, t) {
|
305
|
-
if (!Array.isArray(r) || !r.hasOwnProperty("raw"))
|
306
|
-
throw Error("invalid template strings array");
|
307
|
-
return ct !== void 0 ? ct.createHTML(t) : t;
|
308
|
-
}
|
309
|
-
const Gt = (r, t) => {
|
310
|
-
const e = r.length - 1, s = [];
|
311
|
-
let i, n = t === 2 ? "<svg>" : "", o = T;
|
312
|
-
for (let c = 0; c < e; c++) {
|
313
|
-
const a = r[c];
|
314
|
-
let d, p, h = -1, u = 0;
|
315
|
-
for (; u < a.length && (o.lastIndex = u, p = o.exec(a), p !== null); )
|
316
|
-
u = o.lastIndex, o === T ? p[1] === "!--" ? o = ht : p[1] !== void 0 ? o = lt : p[2] !== void 0 ? (yt.test(p[2]) && (i = RegExp("</" + p[2], "g")), o = v) : p[3] !== void 0 && (o = v) : o === v ? p[0] === ">" ? (o = i ?? T, h = -1) : p[1] === void 0 ? h = -2 : (h = o.lastIndex - p[2].length, d = p[1], o = p[3] === void 0 ? v : p[3] === '"' ? pt : dt) : o === pt || o === dt ? o = v : o === ht || o === lt ? o = T : (o = v, i = void 0);
|
317
|
-
const $ = o === v && r[c + 1].startsWith("/>") ? " " : "";
|
318
|
-
n += o === T ? a + zt : h >= 0 ? (s.push(d), a.slice(0, h) + $t + a.slice(h) + m + $) : a + m + (h === -2 ? c : $);
|
319
|
-
}
|
320
|
-
return [vt(r, n + (r[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
|
321
|
-
};
|
322
|
-
class H {
|
323
|
-
constructor({ strings: t, _$litType$: e }, s) {
|
324
|
-
let i;
|
325
|
-
this.parts = [];
|
326
|
-
let n = 0, o = 0;
|
327
|
-
const c = t.length - 1, a = this.parts, [d, p] = Gt(t, e);
|
328
|
-
if (this.el = H.createElement(d, s), A.currentNode = this.el.content, e === 2) {
|
329
|
-
const h = this.el.content.firstChild;
|
330
|
-
h.replaceWith(...h.childNodes);
|
331
|
-
}
|
332
|
-
for (; (i = A.nextNode()) !== null && a.length < c; ) {
|
333
|
-
if (i.nodeType === 1) {
|
334
|
-
if (i.hasAttributes())
|
335
|
-
for (const h of i.getAttributeNames())
|
336
|
-
if (h.endsWith($t)) {
|
337
|
-
const u = p[o++], $ = i.getAttribute(h).split(m), z = /([.?@])?(.*)/.exec(u);
|
338
|
-
a.push({ type: 1, index: n, name: z[2], strings: $, ctor: z[1] === "." ? Vt : z[1] === "?" ? qt : z[1] === "@" ? Yt : q }), i.removeAttribute(h);
|
339
|
-
} else
|
340
|
-
h.startsWith(m) && (a.push({ type: 6, index: n }), i.removeAttribute(h));
|
341
|
-
if (yt.test(i.tagName)) {
|
342
|
-
const h = i.textContent.split(m), u = h.length - 1;
|
343
|
-
if (u > 0) {
|
344
|
-
i.textContent = W ? W.emptyScript : "";
|
345
|
-
for (let $ = 0; $ < u; $++)
|
346
|
-
i.append(h[$], k()), A.nextNode(), a.push({ type: 2, index: ++n });
|
347
|
-
i.append(h[u], k());
|
348
|
-
}
|
349
|
-
}
|
350
|
-
} else if (i.nodeType === 8)
|
351
|
-
if (i.data === mt)
|
352
|
-
a.push({ type: 2, index: n });
|
353
|
-
else {
|
354
|
-
let h = -1;
|
355
|
-
for (; (h = i.data.indexOf(m, h + 1)) !== -1; )
|
356
|
-
a.push({ type: 7, index: n }), h += m.length - 1;
|
357
|
-
}
|
358
|
-
n++;
|
359
|
-
}
|
360
|
-
}
|
361
|
-
static createElement(t, e) {
|
362
|
-
const s = w.createElement("template");
|
363
|
-
return s.innerHTML = t, s;
|
364
|
-
}
|
365
|
-
}
|
366
|
-
function S(r, t, e = r, s) {
|
367
|
-
var o, c;
|
368
|
-
if (t === x)
|
369
|
-
return t;
|
370
|
-
let i = s !== void 0 ? (o = e._$Co) == null ? void 0 : o[s] : e._$Cl;
|
371
|
-
const n = M(t) ? void 0 : t._$litDirective$;
|
372
|
-
return (i == null ? void 0 : i.constructor) !== n && ((c = i == null ? void 0 : i._$AO) == null || c.call(i, !1), n === void 0 ? i = void 0 : (i = new n(r), i._$AT(r, e, s)), s !== void 0 ? (e._$Co ?? (e._$Co = []))[s] = i : e._$Cl = i), i !== void 0 && (t = S(r, i._$AS(r, t.values), i, s)), t;
|
373
|
-
}
|
374
|
-
class Wt {
|
375
|
-
constructor(t, e) {
|
376
|
-
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
377
|
-
}
|
378
|
-
get parentNode() {
|
379
|
-
return this._$AM.parentNode;
|
380
|
-
}
|
381
|
-
get _$AU() {
|
382
|
-
return this._$AM._$AU;
|
383
|
-
}
|
384
|
-
u(t) {
|
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 n = A.nextNode(), o = 0, c = 0, a = s[0];
|
388
|
-
for (; a !== void 0; ) {
|
389
|
-
if (o === a.index) {
|
390
|
-
let d;
|
391
|
-
a.type === 2 ? d = new L(n, n.nextSibling, this, t) : a.type === 1 ? d = new a.ctor(n, a.name, a.strings, this, t) : a.type === 6 && (d = new Jt(n, this, t)), this._$AV.push(d), a = s[++c];
|
392
|
-
}
|
393
|
-
o !== (a == null ? void 0 : a.index) && (n = A.nextNode(), o++);
|
394
|
-
}
|
395
|
-
return A.currentNode = w, i;
|
396
|
-
}
|
397
|
-
p(t) {
|
398
|
-
let e = 0;
|
399
|
-
for (const s of this._$AV)
|
400
|
-
s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
|
401
|
-
}
|
402
|
-
}
|
403
|
-
class L {
|
404
|
-
get _$AU() {
|
405
|
-
var t;
|
406
|
-
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
407
|
-
}
|
408
|
-
constructor(t, e, s, i) {
|
409
|
-
this.type = 2, this._$AH = l, 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
|
-
}
|
411
|
-
get parentNode() {
|
412
|
-
let t = this._$AA.parentNode;
|
413
|
-
const e = this._$AM;
|
414
|
-
return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
|
415
|
-
}
|
416
|
-
get startNode() {
|
417
|
-
return this._$AA;
|
418
|
-
}
|
419
|
-
get endNode() {
|
420
|
-
return this._$AB;
|
421
|
-
}
|
422
|
-
_$AI(t, e = this) {
|
423
|
-
t = S(this, t, e), M(t) ? t === l || t == null || t === "" ? (this._$AH !== l && this._$AR(), this._$AH = l) : t !== this._$AH && t !== x && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Bt(t) ? this.T(t) : this._(t);
|
424
|
-
}
|
425
|
-
k(t) {
|
426
|
-
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
427
|
-
}
|
428
|
-
$(t) {
|
429
|
-
this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
|
430
|
-
}
|
431
|
-
_(t) {
|
432
|
-
this._$AH !== l && M(this._$AH) ? this._$AA.nextSibling.data = t : this.$(w.createTextNode(t)), this._$AH = t;
|
433
|
-
}
|
434
|
-
g(t) {
|
435
|
-
var n;
|
436
|
-
const { values: e, _$litType$: s } = t, i = typeof s == "number" ? this._$AC(t) : (s.el === void 0 && (s.el = H.createElement(vt(s.h, s.h[0]), this.options)), s);
|
437
|
-
if (((n = this._$AH) == null ? void 0 : n._$AD) === i)
|
438
|
-
this._$AH.p(e);
|
439
|
-
else {
|
440
|
-
const o = new Wt(i, this), c = o.u(this.options);
|
441
|
-
o.p(e), this.$(c), this._$AH = o;
|
442
|
-
}
|
443
|
-
}
|
444
|
-
_$AC(t) {
|
445
|
-
let e = ut.get(t.strings);
|
446
|
-
return e === void 0 && ut.set(t.strings, e = new H(t)), e;
|
447
|
-
}
|
448
|
-
T(t) {
|
449
|
-
_t(this._$AH) || (this._$AH = [], this._$AR());
|
450
|
-
const e = this._$AH;
|
451
|
-
let s, i = 0;
|
452
|
-
for (const n of t)
|
453
|
-
i === e.length ? e.push(s = new L(this.k(k()), this.k(k()), this, this.options)) : s = e[i], s._$AI(n), i++;
|
454
|
-
i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
|
455
|
-
}
|
456
|
-
_$AR(t = this._$AA.nextSibling, e) {
|
457
|
-
var s;
|
458
|
-
for ((s = this._$AP) == null ? void 0 : s.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
459
|
-
const i = t.nextSibling;
|
460
|
-
t.remove(), t = i;
|
461
|
-
}
|
462
|
-
}
|
463
|
-
setConnected(t) {
|
464
|
-
var e;
|
465
|
-
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
466
|
-
}
|
467
|
-
}
|
468
|
-
class q {
|
469
|
-
get tagName() {
|
470
|
-
return this.element.tagName;
|
471
|
-
}
|
472
|
-
get _$AU() {
|
473
|
-
return this._$AM._$AU;
|
474
|
-
}
|
475
|
-
constructor(t, e, s, i, n) {
|
476
|
-
this.type = 1, this._$AH = l, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = n, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = l;
|
477
|
-
}
|
478
|
-
_$AI(t, e = this, s, i) {
|
479
|
-
const n = this.strings;
|
480
|
-
let o = !1;
|
481
|
-
if (n === void 0)
|
482
|
-
t = S(this, t, e, 0), o = !M(t) || t !== this._$AH && t !== x, o && (this._$AH = t);
|
483
|
-
else {
|
484
|
-
const c = t;
|
485
|
-
let a, d;
|
486
|
-
for (t = n[0], a = 0; a < n.length - 1; a++)
|
487
|
-
d = S(this, c[s + a], e, a), d === x && (d = this._$AH[a]), o || (o = !M(d) || d !== this._$AH[a]), d === l ? t = l : t !== l && (t += (d ?? "") + n[a + 1]), this._$AH[a] = d;
|
488
|
-
}
|
489
|
-
o && !i && this.O(t);
|
490
|
-
}
|
491
|
-
O(t) {
|
492
|
-
t === l ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
493
|
-
}
|
494
|
-
}
|
495
|
-
class Vt extends q {
|
496
|
-
constructor() {
|
497
|
-
super(...arguments), this.type = 3;
|
498
|
-
}
|
499
|
-
O(t) {
|
500
|
-
this.element[this.name] = t === l ? void 0 : t;
|
501
|
-
}
|
502
|
-
}
|
503
|
-
class qt extends q {
|
504
|
-
constructor() {
|
505
|
-
super(...arguments), this.type = 4;
|
506
|
-
}
|
507
|
-
O(t) {
|
508
|
-
this.element.toggleAttribute(this.name, !!t && t !== l);
|
509
|
-
}
|
510
|
-
}
|
511
|
-
class Yt extends q {
|
512
|
-
constructor(t, e, s, i, n) {
|
513
|
-
super(t, e, s, i, n), this.type = 5;
|
514
|
-
}
|
515
|
-
_$AI(t, e = this) {
|
516
|
-
if ((t = S(this, t, e, 0) ?? l) === x)
|
517
|
-
return;
|
518
|
-
const s = this._$AH, i = t === l && s !== l || t.capture !== s.capture || t.once !== s.once || t.passive !== s.passive, n = t !== l && (s === l || i);
|
519
|
-
i && this.element.removeEventListener(this.name, this, s), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
520
|
-
}
|
521
|
-
handleEvent(t) {
|
522
|
-
var e;
|
523
|
-
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
524
|
-
}
|
525
|
-
}
|
526
|
-
class Jt {
|
527
|
-
constructor(t, e, s) {
|
528
|
-
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
|
529
|
-
}
|
530
|
-
get _$AU() {
|
531
|
-
return this._$AM._$AU;
|
532
|
-
}
|
533
|
-
_$AI(t) {
|
534
|
-
S(this, t);
|
535
|
-
}
|
536
|
-
}
|
537
|
-
const K = R.litHtmlPolyfillSupport;
|
538
|
-
K == null || K(H, L), (R.litHtmlVersions ?? (R.litHtmlVersions = [])).push("3.0.2");
|
539
|
-
const Kt = (r, t, e) => {
|
540
|
-
const s = (e == null ? void 0 : e.renderBefore) ?? t;
|
541
|
-
let i = s._$litPart$;
|
542
|
-
if (i === void 0) {
|
543
|
-
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
544
|
-
s._$litPart$ = i = new L(t.insertBefore(k(), n), n, void 0, e ?? {});
|
545
|
-
}
|
546
|
-
return i._$AI(r), i;
|
547
|
-
};
|
548
|
-
/**
|
549
|
-
* @license
|
550
|
-
* Copyright 2017 Google LLC
|
551
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
552
|
-
*/
|
553
|
-
let f = class extends E {
|
554
|
-
constructor() {
|
555
|
-
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
556
|
-
}
|
557
|
-
createRenderRoot() {
|
558
|
-
var e;
|
559
|
-
const t = super.createRenderRoot();
|
560
|
-
return (e = this.renderOptions).renderBefore ?? (e.renderBefore = t.firstChild), t;
|
561
|
-
}
|
562
|
-
update(t) {
|
563
|
-
const e = this.render();
|
564
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Kt(e, this.renderRoot, this.renderOptions);
|
565
|
-
}
|
566
|
-
connectedCallback() {
|
567
|
-
var t;
|
568
|
-
super.connectedCallback(), (t = this._$Do) == null || t.setConnected(!0);
|
569
|
-
}
|
570
|
-
disconnectedCallback() {
|
571
|
-
var t;
|
572
|
-
super.disconnectedCallback(), (t = this._$Do) == null || t.setConnected(!1);
|
573
|
-
}
|
574
|
-
render() {
|
575
|
-
return x;
|
576
|
-
}
|
577
|
-
};
|
578
|
-
var gt;
|
579
|
-
f._$litElement$ = !0, f.finalized = !0, (gt = globalThis.litElementHydrateSupport) == null || gt.call(globalThis, { LitElement: f });
|
580
|
-
const Z = globalThis.litElementPolyfillSupport;
|
581
|
-
Z == null || Z({ LitElement: f });
|
582
|
-
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.0.1");
|
583
|
-
/**
|
584
|
-
* @license
|
585
|
-
* Copyright 2021 Google LLC
|
586
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
587
|
-
*/
|
588
|
-
function* bt(r, t) {
|
589
|
-
if (r !== void 0) {
|
590
|
-
let e = 0;
|
591
|
-
for (const s of r)
|
592
|
-
yield t(s, e++);
|
593
|
-
}
|
594
|
-
}
|
595
|
-
/**
|
596
|
-
* @license
|
597
|
-
* Copyright 2017 Google LLC
|
598
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
599
|
-
*/
|
600
|
-
const Zt = { attribute: !0, type: String, converter: G, reflect: !1, hasChanged: tt }, Ft = (r = Zt, t, e) => {
|
601
|
-
const { kind: s, metadata: i } = e;
|
602
|
-
let n = globalThis.litPropertyMetadata.get(i);
|
603
|
-
if (n === void 0 && globalThis.litPropertyMetadata.set(i, n = /* @__PURE__ */ new Map()), n.set(e.name, r), s === "accessor") {
|
604
|
-
const { name: o } = e;
|
605
|
-
return { set(c) {
|
606
|
-
const a = t.get.call(this);
|
607
|
-
t.set.call(this, c), this.requestUpdate(o, a, r);
|
608
|
-
}, init(c) {
|
609
|
-
return c !== void 0 && this.C(o, void 0, r), c;
|
610
|
-
} };
|
611
|
-
}
|
612
|
-
if (s === "setter") {
|
613
|
-
const { name: o } = e;
|
614
|
-
return function(c) {
|
615
|
-
const a = this[o];
|
616
|
-
t.call(this, c), this.requestUpdate(o, a, r);
|
617
|
-
};
|
618
|
-
}
|
619
|
-
throw Error("Unsupported decorator location: " + s);
|
620
|
-
};
|
621
|
-
function g(r) {
|
622
|
-
return (t, e) => typeof e == "object" ? Ft(r, t, e) : ((s, i, n) => {
|
623
|
-
const o = i.hasOwnProperty(n);
|
624
|
-
return i.constructor.createProperty(n, o ? { ...s, wrapped: !0 } : s), o ? Object.getOwnPropertyDescriptor(i, n) : void 0;
|
625
|
-
})(r, t, e);
|
626
|
-
}
|
627
|
-
/**
|
628
|
-
* @license
|
629
|
-
* Copyright 2017 Google LLC
|
630
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
631
|
-
*/
|
632
|
-
function O(r) {
|
633
|
-
return g({ ...r, state: !0, attribute: !1 });
|
634
|
-
}
|
635
|
-
/**
|
636
|
-
* @license
|
637
|
-
* Copyright 2017 Google LLC
|
638
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
639
|
-
*/
|
640
|
-
const At = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, wt = (r) => (...t) => ({ _$litDirective$: r, values: t });
|
641
|
-
class xt {
|
642
|
-
constructor(t) {
|
643
|
-
}
|
644
|
-
get _$AU() {
|
645
|
-
return this._$AM._$AU;
|
646
|
-
}
|
647
|
-
_$AT(t, e, s) {
|
648
|
-
this._$Ct = t, this._$AM = e, this._$Ci = s;
|
649
|
-
}
|
650
|
-
_$AS(t, e) {
|
651
|
-
return this.update(t, e);
|
652
|
-
}
|
653
|
-
update(t, e) {
|
654
|
-
return this.render(...e);
|
655
|
-
}
|
656
|
-
}
|
657
|
-
/**
|
658
|
-
* @license
|
659
|
-
* Copyright 2018 Google LLC
|
660
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
661
|
-
*/
|
662
|
-
const Qt = wt(class extends xt {
|
663
|
-
constructor(r) {
|
664
|
-
var t;
|
665
|
-
if (super(r), r.type !== At.ATTRIBUTE || r.name !== "class" || ((t = r.strings) == null ? void 0 : t.length) > 2)
|
666
|
-
throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
667
|
-
}
|
668
|
-
render(r) {
|
669
|
-
return " " + Object.keys(r).filter((t) => r[t]).join(" ") + " ";
|
670
|
-
}
|
671
|
-
update(r, [t]) {
|
672
|
-
var s, i;
|
673
|
-
if (this.it === void 0) {
|
674
|
-
this.it = /* @__PURE__ */ new Set(), r.strings !== void 0 && (this.st = new Set(r.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
675
|
-
for (const n in t)
|
676
|
-
t[n] && !((s = this.st) != null && s.has(n)) && this.it.add(n);
|
677
|
-
return this.render(t);
|
678
|
-
}
|
679
|
-
const e = r.element.classList;
|
680
|
-
for (const n of this.it)
|
681
|
-
n in t || (e.remove(n), this.it.delete(n));
|
682
|
-
for (const n in t) {
|
683
|
-
const o = !!t[n];
|
684
|
-
o === this.it.has(n) || (i = this.st) != null && i.has(n) || (o ? (e.add(n), this.it.add(n)) : (e.remove(n), this.it.delete(n)));
|
685
|
-
}
|
686
|
-
return x;
|
687
|
-
}
|
688
|
-
}), B = (r, t, e) => {
|
689
|
-
r && e.style.setProperty(t, r);
|
690
|
-
}, Et = (r, t) => {
|
691
|
-
var e, s, i, n;
|
692
|
-
B((e = r.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), B(
|
693
|
-
(s = r.colors) == null ? void 0 : s.textOnPrimaryBackground,
|
694
|
-
"--text-on-primary-background",
|
695
|
-
t
|
696
|
-
), B(
|
697
|
-
(i = r.colors) == null ? void 0 : i.secondaryBackground,
|
698
|
-
"--secondary-background",
|
699
|
-
t
|
700
|
-
), B(
|
701
|
-
(n = r.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
702
|
-
"--text-on-secondary-background",
|
703
|
-
t
|
704
|
-
);
|
705
|
-
};
|
706
|
-
/**
|
707
|
-
* @license
|
708
|
-
* Copyright 2020 Google LLC
|
709
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
710
|
-
*/
|
711
|
-
const Xt = (r) => r.strings === void 0;
|
712
|
-
/**
|
713
|
-
* @license
|
714
|
-
* Copyright 2017 Google LLC
|
715
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
716
|
-
*/
|
717
|
-
const N = (r, t) => {
|
718
|
-
var s;
|
719
|
-
const e = r._$AN;
|
720
|
-
if (e === void 0)
|
721
|
-
return !1;
|
722
|
-
for (const i of e)
|
723
|
-
(s = i._$AO) == null || s.call(i, t, !1), N(i, t);
|
724
|
-
return !0;
|
725
|
-
}, V = (r) => {
|
726
|
-
let t, e;
|
727
|
-
do {
|
728
|
-
if ((t = r._$AM) === void 0)
|
729
|
-
break;
|
730
|
-
e = t._$AN, e.delete(r), r = t;
|
731
|
-
} while ((e == null ? void 0 : e.size) === 0);
|
732
|
-
}, Ct = (r) => {
|
733
|
-
for (let t; t = r._$AM; r = t) {
|
734
|
-
let e = t._$AN;
|
735
|
-
if (e === void 0)
|
736
|
-
t._$AN = e = /* @__PURE__ */ new Set();
|
737
|
-
else if (e.has(r))
|
738
|
-
break;
|
739
|
-
e.add(r), se(t);
|
740
|
-
}
|
741
|
-
};
|
742
|
-
function te(r) {
|
743
|
-
this._$AN !== void 0 ? (V(this), this._$AM = r, Ct(this)) : this._$AM = r;
|
744
|
-
}
|
745
|
-
function ee(r, t = !1, e = 0) {
|
746
|
-
const s = this._$AH, i = this._$AN;
|
747
|
-
if (i !== void 0 && i.size !== 0)
|
748
|
-
if (t)
|
749
|
-
if (Array.isArray(s))
|
750
|
-
for (let n = e; n < s.length; n++)
|
751
|
-
N(s[n], !1), V(s[n]);
|
752
|
-
else
|
753
|
-
s != null && (N(s, !1), V(s));
|
754
|
-
else
|
755
|
-
N(this, r);
|
756
|
-
}
|
757
|
-
const se = (r) => {
|
758
|
-
r.type == At.CHILD && (r._$AP ?? (r._$AP = ee), r._$AQ ?? (r._$AQ = te));
|
759
|
-
};
|
760
|
-
class ie extends xt {
|
761
|
-
constructor() {
|
762
|
-
super(...arguments), this._$AN = void 0;
|
763
|
-
}
|
764
|
-
_$AT(t, e, s) {
|
765
|
-
super._$AT(t, e, s), Ct(this), this.isConnected = t._$AU;
|
766
|
-
}
|
767
|
-
_$AO(t, e = !0) {
|
768
|
-
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 && (N(this, t), V(this));
|
770
|
-
}
|
771
|
-
setValue(t) {
|
772
|
-
if (Xt(this._$Ct))
|
773
|
-
this._$Ct._$AI(t, this);
|
774
|
-
else {
|
775
|
-
const e = [...this._$Ct._$AH];
|
776
|
-
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
777
|
-
}
|
778
|
-
}
|
779
|
-
disconnected() {
|
780
|
-
}
|
781
|
-
reconnected() {
|
782
|
-
}
|
783
|
-
}
|
784
|
-
/**
|
785
|
-
* @license
|
786
|
-
* Copyright 2020 Google LLC
|
787
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
788
|
-
*/
|
789
|
-
const St = () => new re();
|
790
|
-
class re {
|
791
|
-
}
|
792
|
-
const F = /* @__PURE__ */ new WeakMap(), Pt = wt(class extends ie {
|
793
|
-
render(r) {
|
794
|
-
return l;
|
795
|
-
}
|
796
|
-
update(r, [t]) {
|
797
|
-
var s;
|
798
|
-
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)), l;
|
800
|
-
}
|
801
|
-
ot(r) {
|
802
|
-
if (typeof this.G == "function") {
|
803
|
-
const t = this.ct ?? globalThis;
|
804
|
-
let e = F.get(t);
|
805
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), F.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ct, void 0), e.set(this.G, r), r !== void 0 && this.G.call(this.ct, r);
|
806
|
-
} else
|
807
|
-
this.G.value = r;
|
808
|
-
}
|
809
|
-
get rt() {
|
810
|
-
var r, t;
|
811
|
-
return typeof this.G == "function" ? (r = F.get(this.ct ?? globalThis)) == null ? void 0 : r.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
812
|
-
}
|
813
|
-
disconnected() {
|
814
|
-
this.rt === this.lt && this.ot(void 0);
|
815
|
-
}
|
816
|
-
reconnected() {
|
817
|
-
this.ot(this.lt);
|
818
|
-
}
|
819
|
-
});
|
820
|
-
var ne = Object.defineProperty, oe = Object.getOwnPropertyDescriptor, j = (r, t, e, s) => {
|
821
|
-
for (var i = s > 1 ? void 0 : s ? oe(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
822
|
-
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
823
|
-
return s && i && ne(t, e, i), i;
|
824
|
-
};
|
825
|
-
class y extends f {
|
826
|
-
constructor() {
|
827
|
-
super(...arguments), this.active = !1, this.loaded = !1, this.offset = 0, this.buttonRef = St();
|
828
|
-
}
|
829
|
-
async connectedCallback() {
|
830
|
-
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding(), this.offset > 0 && this.buttonRef.value && (this.buttonRef.value.style.right = `calc(${this.offset}px + 20px)`);
|
831
|
-
}
|
832
|
-
_toggleActive() {
|
833
|
-
var t;
|
834
|
-
if (!((t = this.application) != null && t.root)) {
|
835
|
-
console.warn(
|
836
|
-
"Could not activate widget. No root element assigned to widget."
|
837
|
-
);
|
838
|
-
return;
|
839
|
-
}
|
840
|
-
this.active = !this.active, this.active ? this.application.appendToDOM() : this.application.hide();
|
841
|
-
}
|
842
|
-
_applyBranding() {
|
843
|
-
var t;
|
844
|
-
(t = this.application) != null && t.settings && Et(this.application.settings.branding, this);
|
845
|
-
}
|
846
|
-
async _renderSymbol() {
|
847
|
-
var c, a, d;
|
848
|
-
const t = (c = this.application) == null ? void 0 : c.branding(), e = (a = t == null ? void 0 : t.graphics) == null ? void 0 : a.trigger;
|
849
|
-
if (e)
|
850
|
-
return C` <img src=${e} class="trigger-icon" alt="" /> `;
|
851
|
-
const s = (d = this.application) == null ? void 0 : d.triggerIcon;
|
852
|
-
if (!s)
|
853
|
-
return l;
|
854
|
-
const i = async (p) => await import("./index-5087564d.mjs").then(
|
855
|
-
(u) => u[p]
|
856
|
-
), { type: n, content: o } = s;
|
857
|
-
switch (n) {
|
858
|
-
case "Telia": {
|
859
|
-
const p = await i(o);
|
860
|
-
return p ? C`<telia-icon
|
861
|
-
class="trigger-icon"
|
862
|
-
svg=${p.svg}
|
863
|
-
size="lg"
|
864
|
-
></telia-icon>` : l;
|
865
|
-
}
|
866
|
-
default:
|
867
|
-
return l;
|
868
|
-
}
|
869
|
-
}
|
870
|
-
setOffset(t) {
|
871
|
-
this.offset = t;
|
872
|
-
}
|
873
|
-
render() {
|
874
|
-
return C`<button
|
875
|
-
class=${Qt({
|
876
|
-
trigger: !0,
|
877
|
-
active: this.active,
|
878
|
-
rendered: this.loaded
|
879
|
-
})}
|
880
|
-
@click=${this._toggleActive}
|
881
|
-
${Pt(this.buttonRef)}
|
882
|
-
>
|
883
|
-
${this.icon}
|
884
|
-
<span class="trigger-close">
|
885
|
-
<svg
|
886
|
-
width="18"
|
887
|
-
height="9"
|
888
|
-
viewBox="0 0 18 9"
|
889
|
-
fill="none"
|
890
|
-
xmlns="http://www.w3.org/2000/svg"
|
891
|
-
>
|
892
|
-
<path
|
893
|
-
d="M9 9C8.81794 9.00045 8.63759 8.96634 8.46939 8.89965C8.3012 8.83295 8.14851 8.735 8.02015 8.61145L0.194523 1.12367C0.068294 0.99862 -0.00155266 0.831133 2.61958e-05 0.657285C0.00160506 0.483436 0.0744832 0.317136 0.202964 0.194202C0.331445 0.0712675 0.505249 0.00153576 0.686941 2.50649e-05C0.868634 -0.00148563 1.04368 0.0653456 1.17437 0.186125L9 7.6739L16.8256 0.186125C16.9563 0.0653456 17.1314 -0.00148563 17.3131 2.50649e-05C17.4948 0.00153576 17.6686 0.0712675 17.797 0.194202C17.9255 0.317136 17.9984 0.483436 18 0.657285C18.0016 0.831133 17.9317 0.99862 17.8055 1.12367L9.97985 8.61145C9.85149 8.735 9.6988 8.83295 9.53061 8.89965C9.36241 8.96634 9.18206 9.00045 9 9Z"
|
894
|
-
fill="white"
|
895
|
-
/>
|
896
|
-
</svg>
|
897
|
-
</span>
|
898
|
-
<span class="trigger-loader">
|
899
|
-
<svg viewBox="25 25 50 50">
|
900
|
-
<circle
|
901
|
-
cx="50"
|
902
|
-
cy="50"
|
903
|
-
r="20"
|
904
|
-
fill="none"
|
905
|
-
stroke="#000"
|
906
|
-
stroke-width="2"
|
907
|
-
stroke-miterlimit="10"
|
908
|
-
/>
|
909
|
-
</svg>
|
910
|
-
</span>
|
911
|
-
</button>`;
|
912
|
-
}
|
913
|
-
}
|
914
|
-
y.styles = [
|
915
|
-
P`
|
916
|
-
:host {
|
917
|
-
--voca-rem-multiplier: 0.625;
|
918
|
-
display: block;
|
919
|
-
box-sizing: border-box;
|
920
|
-
}
|
921
|
-
|
922
|
-
.trigger {
|
923
|
-
position: fixed;
|
924
|
-
transform: scale(0);
|
925
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
926
|
-
bottom: 20px;
|
927
|
-
right: 20px;
|
928
|
-
z-index: 5;
|
929
|
-
display: flex;
|
930
|
-
align-items: center;
|
931
|
-
justify-content: center;
|
932
|
-
border: none;
|
933
|
-
line-height: 55px;
|
934
|
-
height: 55px;
|
935
|
-
width: 55px;
|
936
|
-
border-radius: 55px;
|
937
|
-
cursor: pointer;
|
938
|
-
background-color: var(--trigger-bg, var(--primary-background));
|
939
|
-
font-family: Lato;
|
940
|
-
text-decoration: none;
|
941
|
-
border: 3px dashed transparent;
|
942
|
-
box-sizing: border-box;
|
943
|
-
transition: transform 200ms ease-out;
|
944
|
-
}
|
945
|
-
.trigger:hover {
|
946
|
-
transform: scale(1.1) !important;
|
947
|
-
}
|
948
|
-
.trigger.rendered {
|
949
|
-
transform: scale(1);
|
950
|
-
}
|
951
|
-
.trigger.active .trigger-icon {
|
952
|
-
opacity: 0;
|
953
|
-
transform: rotate(-180deg) scale(0);
|
954
|
-
}
|
955
|
-
.trigger.active .trigger-close {
|
956
|
-
opacity: 1;
|
957
|
-
transform: rotate(0deg) scale(1);
|
958
|
-
}
|
959
|
-
|
960
|
-
.trigger-icon {
|
961
|
-
display: inline-block;
|
962
|
-
line-height: inherit;
|
963
|
-
text-align: center;
|
964
|
-
opacity: 1;
|
965
|
-
transform: rotate(0deg) scale(1);
|
966
|
-
transition: opacity 200ms ease-out, transform 200ms ease-out;
|
967
|
-
color: var(--trigger-text-color, var(--text-on-primary-background));
|
968
|
-
}
|
969
|
-
.trigger-close {
|
970
|
-
opacity: 0;
|
971
|
-
transition: transform 200ms ease-out;
|
972
|
-
transform: rotate(180deg) scale(0);
|
973
|
-
position: absolute;
|
974
|
-
top: 0;
|
975
|
-
bottom: 0;
|
976
|
-
left: 0;
|
977
|
-
right: 0;
|
978
|
-
display: flex;
|
979
|
-
justify-content: center;
|
980
|
-
align-items: center;
|
981
|
-
fill: var(--trigger-text-color, var(--text-on-primary-background));
|
982
|
-
}
|
983
|
-
|
984
|
-
img {
|
985
|
-
max-width: 100%;
|
986
|
-
}
|
987
|
-
`
|
988
|
-
];
|
989
|
-
j([
|
990
|
-
g({ attribute: !1 })
|
991
|
-
], y.prototype, "application", 2);
|
992
|
-
j([
|
993
|
-
O()
|
994
|
-
], y.prototype, "active", 2);
|
995
|
-
j([
|
996
|
-
O()
|
997
|
-
], y.prototype, "loaded", 2);
|
998
|
-
j([
|
999
|
-
O()
|
1000
|
-
], y.prototype, "icon", 2);
|
1001
|
-
j([
|
1002
|
-
O()
|
1003
|
-
], y.prototype, "offset", 2);
|
1004
|
-
var ae = Object.defineProperty, ce = Object.getOwnPropertyDescriptor, b = (r, t, e, s) => {
|
1005
|
-
for (var i = s > 1 ? void 0 : s ? ce(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1006
|
-
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1007
|
-
return s && i && ae(t, e, i), i;
|
1008
|
-
};
|
1009
|
-
const Ot = (r) => {
|
1010
|
-
class t extends r {
|
1011
|
-
constructor() {
|
1012
|
-
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1013
|
-
}
|
1014
|
-
writeProperties(s) {
|
1015
|
-
this.properties = s;
|
1016
|
-
}
|
1017
|
-
writeLayout(s) {
|
1018
|
-
this.layout = s;
|
1019
|
-
}
|
1020
|
-
writeContext(s) {
|
1021
|
-
this.context = s;
|
1022
|
-
}
|
1023
|
-
addChild(s) {
|
1024
|
-
s.parent = this, this.nodes.push(s);
|
1025
|
-
}
|
1026
|
-
connectedCallback() {
|
1027
|
-
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
1028
|
-
"--width",
|
1029
|
-
this.layout.size === "full" ? "var(--columns, 1)" : `min(${this.layout.size || "var(--columns)"}, var(--columns))`
|
1030
|
-
);
|
1031
|
-
}
|
1032
|
-
}
|
1033
|
-
return t.styles = [
|
1034
|
-
// (superClass as unknown as typeof LitElement).styles ?? [],
|
1035
|
-
P`
|
1036
|
-
:host {
|
1037
|
-
font-family: var(--font-family);
|
1038
|
-
grid-column: span var(--width);
|
1039
|
-
max-width: 100%;
|
1040
|
-
overflow: hidden;
|
1041
|
-
box-sizing: border-box;
|
1042
|
-
display: block;
|
1043
|
-
}
|
1044
|
-
* {
|
1045
|
-
box-sizing: border-box;
|
1046
|
-
}
|
1047
|
-
`
|
1048
|
-
], b([
|
1049
|
-
g()
|
1050
|
-
], t.prototype, "properties", 2), b([
|
1051
|
-
g()
|
1052
|
-
], t.prototype, "context", 2), b([
|
1053
|
-
g()
|
1054
|
-
], t.prototype, "layout", 2), b([
|
1055
|
-
g()
|
1056
|
-
], t.prototype, "name", 2), b([
|
1057
|
-
g()
|
1058
|
-
], t.prototype, "type", 2), b([
|
1059
|
-
g({ attribute: !1 })
|
1060
|
-
], t.prototype, "application", 2), b([
|
1061
|
-
g({ attribute: !1 })
|
1062
|
-
], t.prototype, "parent", 2), t;
|
1063
|
-
};
|
1064
|
-
class Tt extends Ot(f) {
|
1065
|
-
render() {
|
1066
|
-
return C`Non resolved component`;
|
1067
|
-
}
|
1068
|
-
}
|
1069
|
-
Tt.styles = [
|
1070
|
-
P`
|
1071
|
-
:host {
|
1072
|
-
display: block;
|
1073
|
-
}
|
1074
|
-
`
|
1075
|
-
];
|
1076
|
-
var et = /* @__PURE__ */ ((r) => (r.Inline = "inline", r.Trigger = "trigger", r))(et || {}), he = Object.defineProperty, le = Object.getOwnPropertyDescriptor, de = (r, t, e, s) => {
|
1077
|
-
for (var i = s > 1 ? void 0 : s ? le(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1078
|
-
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1079
|
-
return s && i && he(t, e, i), i;
|
1080
|
-
};
|
1081
|
-
class st extends f {
|
1082
|
-
constructor() {
|
1083
|
-
super(...arguments), this.nodes = [], this.wrapperRef = St();
|
1084
|
-
}
|
1085
|
-
addChild(t) {
|
1086
|
-
t.parent = this, this.nodes.push(t);
|
1087
|
-
}
|
1088
|
-
applyBranding() {
|
1089
|
-
if (!this.wrapperRef.value)
|
1090
|
-
return;
|
1091
|
-
const t = this.application.settings;
|
1092
|
-
t != null && t.branding && Et(t.branding, this.wrapperRef.value);
|
1093
|
-
}
|
1094
|
-
applyStyles() {
|
1095
|
-
if (!this.wrapperRef.value)
|
1096
|
-
return;
|
1097
|
-
const t = this.application.styles(), e = this.wrapperRef.value;
|
1098
|
-
Object.entries(t).forEach(([s, i]) => {
|
1099
|
-
e.style.setProperty(`--${s}`, i);
|
1100
|
-
});
|
1101
|
-
}
|
1102
|
-
firstUpdated(t) {
|
1103
|
-
this.applyBranding(), this.applyStyles();
|
1104
|
-
}
|
1105
|
-
render() {
|
1106
|
-
return this.application.renderStrategy === et.Trigger && this.renderRoot.host.classList.add("floating"), C`<div class="widget-container" ${Pt(this.wrapperRef)}>
|
1107
|
-
${bt(this.nodes, (t) => t)}
|
1108
|
-
</div>`;
|
1109
|
-
}
|
1110
|
-
}
|
1111
|
-
st.styles = P`
|
1112
|
-
:host {
|
1113
|
-
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
1114
|
-
--spacing-xs: 0.2rem;
|
1115
|
-
--spacing-sm: 0.5rem;
|
1116
|
-
--spacing-md: 1rem;
|
1117
|
-
--spacing-lg: 1.2rem;
|
1118
|
-
--spacing-xl: 1.8rem;
|
1119
|
-
|
1120
|
-
--text-color: #222222;
|
1121
|
-
--link-color: #990ae3;
|
1122
|
-
--gray-color: #f3f3f8;
|
1123
|
-
--gray-dark-color: #a6a6a6;
|
1124
|
-
|
1125
|
-
--box-shadow: rgba(149, 157, 165, 0.2) 0px 8px 24px;
|
1126
|
-
--border-radius: var(--spacing-sm);
|
1127
|
-
--border-radius-sm: var(--spacing-sm);
|
1128
|
-
--gap: var(--spacing-sm);
|
1129
|
-
}
|
1130
|
-
:host {
|
1131
|
-
--voca-rem-multiplier: 0.625;
|
1132
|
-
box-sizing: border-box;
|
1133
|
-
display: block;
|
1134
|
-
}
|
1135
|
-
|
1136
|
-
:host(.inline) {
|
1137
|
-
height: 100%;
|
1138
|
-
position: fixed;
|
1139
|
-
inset: 0 0 0 0;
|
1140
|
-
}
|
1141
|
-
|
1142
|
-
:host(.floating) {
|
1143
|
-
z-index: 6;
|
1144
|
-
position: fixed;
|
1145
|
-
}
|
1146
|
-
@media screen and (max-width: 800px) {
|
1147
|
-
:host(.floating) {
|
1148
|
-
inset: 0 0 95px 0;
|
1149
|
-
}
|
1150
|
-
}
|
1151
|
-
@media screen and (min-width: 801px) {
|
1152
|
-
:host(.floating) {
|
1153
|
-
inset: auto 20px 95px auto;
|
1154
|
-
max-height: calc(100vh - 120px);
|
1155
|
-
width: 400px;
|
1156
|
-
height: 700px;
|
1157
|
-
}
|
1158
|
-
}
|
1159
|
-
|
1160
|
-
:host(.floating) .widget-container {
|
1161
|
-
box-shadow: rgba(0, 0, 0, 0.16) 0px 5px 40px;
|
1162
|
-
border-radius: 0.7rem;
|
1163
|
-
}
|
1164
|
-
|
1165
|
-
* {
|
1166
|
-
box-sizing: border-box;
|
1167
|
-
}
|
1168
|
-
.widget-container {
|
1169
|
-
height: 100%;
|
1170
|
-
background-color: var(--primary-background);
|
1171
|
-
padding: var(--spacing-sm);
|
1172
|
-
border: var(--widget-border, none);
|
1173
|
-
}
|
1174
|
-
@keyframes slideDown {
|
1175
|
-
from {
|
1176
|
-
transform: translateY(0);
|
1177
|
-
opacity: 1;
|
1178
|
-
}
|
1179
|
-
to {
|
1180
|
-
transform: translateY(100%);
|
1181
|
-
opacity: 0;
|
1182
|
-
}
|
1183
|
-
}
|
1184
|
-
@keyframes slideUp {
|
1185
|
-
from {
|
1186
|
-
transform: translateY(100%);
|
1187
|
-
opacity: 0;
|
1188
|
-
}
|
1189
|
-
to {
|
1190
|
-
transform: translateY(0);
|
1191
|
-
opacity: 1;
|
1192
|
-
}
|
1193
|
-
}
|
1194
|
-
:host(.expanded) {
|
1195
|
-
opacity: 1;
|
1196
|
-
animation: slideUp 0.3s linear;
|
1197
|
-
}
|
1198
|
-
:host(.hidden) {
|
1199
|
-
opacity: 0;
|
1200
|
-
animation: slideDown 0.3s linear;
|
1201
|
-
}
|
1202
|
-
`;
|
1203
|
-
de([
|
1204
|
-
g({ attribute: !1 })
|
1205
|
-
], st.prototype, "application", 2);
|
1206
|
-
var pe = Object.defineProperty, ue = Object.getOwnPropertyDescriptor, it = (r, t, e, s) => {
|
1207
|
-
for (var i = s > 1 ? void 0 : s ? ue(t, e) : t, n = r.length - 1, o; n >= 0; n--)
|
1208
|
-
(o = r[n]) && (i = (s ? o(t, e, i) : o(i)) || i);
|
1209
|
-
return s && i && pe(t, e, i), i;
|
1210
|
-
};
|
1211
|
-
class D extends f {
|
1212
|
-
constructor() {
|
1213
|
-
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
1214
|
-
}
|
1215
|
-
async connectedCallback() {
|
1216
|
-
super.connectedCallback(), await this.getGlobalEnvironment();
|
1217
|
-
}
|
1218
|
-
disconnectedCallback() {
|
1219
|
-
super.disconnectedCallback(), this.removeEventListener("environment-created", this.onEnvironmentCreated);
|
1220
|
-
}
|
1221
|
-
async onEnvironmentCreated(t) {
|
1222
|
-
this.widget = t.detail.widget, await this.activate(), this.requestUpdate();
|
1223
|
-
}
|
1224
|
-
async activate() {
|
1225
|
-
this.widget && (await this.widget.activate(), this.status = "activated");
|
1226
|
-
}
|
1227
|
-
async getGlobalEnvironment() {
|
1228
|
-
const t = globalThis.widgets;
|
1229
|
-
t && (this.widget = t.applications.find(
|
1230
|
-
(e) => e.name === this.name
|
1231
|
-
), await this.activate());
|
1232
|
-
}
|
1233
|
-
render() {
|
1234
|
-
if (!this.widget || this.status !== "activated")
|
1235
|
-
return l;
|
1236
|
-
if (this.widget.renderStrategy === et.Trigger) {
|
1237
|
-
const t = new y();
|
1238
|
-
return t.application = this.widget, t;
|
1239
|
-
}
|
1240
|
-
return this.widget.render();
|
1241
|
-
}
|
1242
|
-
}
|
1243
|
-
D.styles = [
|
1244
|
-
P`
|
1245
|
-
:host {
|
1246
|
-
display: block;
|
1247
|
-
}
|
1248
|
-
`
|
1249
|
-
];
|
1250
|
-
it([
|
1251
|
-
g({ attribute: !0 })
|
1252
|
-
], D.prototype, "name", 2);
|
1253
|
-
it([
|
1254
|
-
O()
|
1255
|
-
], D.prototype, "widget", 2);
|
1256
|
-
it([
|
1257
|
-
O()
|
1258
|
-
], D.prototype, "status", 2);
|
1259
|
-
customElements.get("ace-trigger") || customElements.define("ace-trigger", y);
|
1260
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", Tt);
|
1261
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", st);
|
1262
|
-
customElements.get("ace-widget") || customElements.define("ace-widget", D);
|
1263
|
-
const ge = (r) => {
|
1264
|
-
const t = {};
|
1265
|
-
return Object.keys(r).forEach((e) => {
|
1266
|
-
e.indexOf("css-") > -1 && (t[e] = r[e]);
|
1267
|
-
}), t;
|
1268
|
-
}, fe = (r, t) => {
|
1269
|
-
const e = ge(t);
|
1270
|
-
Object.entries(e).forEach(([s, i]) => {
|
1271
|
-
r.style.setProperty(s.replace("css-", ""), i);
|
1272
|
-
});
|
1273
|
-
};
|
1274
|
-
class $e extends Ot(f) {
|
1275
|
-
constructor() {
|
1276
|
-
super(...arguments), this.nodes = [];
|
1277
|
-
}
|
1278
|
-
render() {
|
1279
|
-
var t;
|
1280
|
-
return fe(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
1281
|
-
"--columns",
|
1282
|
-
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
1283
|
-
), C`${bt(this.nodes, (e) => e)}`;
|
1284
|
-
}
|
1285
|
-
}
|
1286
|
-
$e.styles = [
|
1287
|
-
P`
|
1288
|
-
:host {
|
1289
|
-
height: 100%;
|
1290
|
-
display: grid;
|
1291
|
-
justify-content: center;
|
1292
|
-
grid-auto-rows: max-content;
|
1293
|
-
grid-template-rows: auto;
|
1294
|
-
grid-template-columns: repeat(var(--columns), 1fr);
|
1295
|
-
gap: var(--gap);
|
1296
|
-
}
|
1297
|
-
`
|
1298
|
-
];
|
1299
|
-
export {
|
1300
|
-
$e as Area,
|
1301
|
-
$e as default
|
1302
|
-
};
|