@telia-ace/widget-components-area-flamingo 1.1.111-rc.0 → 1.1.111-rc.2
Sign up to get free protection for your applications and to get access to all the features.
- package/{area-D3J311k5.mjs → area-Dkz7tXKP.mjs} +537 -517
- package/area-oI6y1krI.js +455 -0
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
- package/area-hi1yRfU6.js +0 -455
@@ -3,10 +3,10 @@
|
|
3
3
|
* Copyright 2019 Google LLC
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
5
5
|
*/
|
6
|
-
const W = globalThis, bt = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype,
|
6
|
+
const W = globalThis, bt = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, $t = Symbol(), Ut = /* @__PURE__ */ new WeakMap();
|
7
7
|
let ne = class {
|
8
8
|
constructor(t, e, i) {
|
9
|
-
if (this._$cssResult$ = !0, i !==
|
9
|
+
if (this._$cssResult$ = !0, i !== $t) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
10
10
|
this.cssText = t, this.t = e;
|
11
11
|
}
|
12
12
|
get styleSheet() {
|
@@ -14,7 +14,7 @@ let ne = class {
|
|
14
14
|
const e = this.t;
|
15
15
|
if (bt && t === void 0) {
|
16
16
|
const i = e !== void 0 && e.length === 1;
|
17
|
-
i && (t =
|
17
|
+
i && (t = Ut.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), i && Ut.set(e, t));
|
18
18
|
}
|
19
19
|
return t;
|
20
20
|
}
|
@@ -22,33 +22,33 @@ let ne = class {
|
|
22
22
|
return this.cssText;
|
23
23
|
}
|
24
24
|
};
|
25
|
-
const
|
26
|
-
const e = s.length === 1 ? s[0] : t.reduce((i,
|
25
|
+
const Ce = (s) => new ne(typeof s == "string" ? s : s + "", void 0, $t), O = (s, ...t) => {
|
26
|
+
const e = s.length === 1 ? s[0] : t.reduce((i, r, n) => i + ((o) => {
|
27
27
|
if (o._$cssResult$ === !0) return o.cssText;
|
28
28
|
if (typeof o == "number") return o;
|
29
29
|
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.");
|
30
|
-
})(
|
31
|
-
return new ne(e, s,
|
32
|
-
},
|
30
|
+
})(r) + s[n + 1], s[0]);
|
31
|
+
return new ne(e, s, $t);
|
32
|
+
}, Se = (s, t) => {
|
33
33
|
if (bt) s.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet);
|
34
34
|
else for (const e of t) {
|
35
|
-
const i = document.createElement("style"),
|
36
|
-
|
35
|
+
const i = document.createElement("style"), r = W.litNonce;
|
36
|
+
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
37
37
|
}
|
38
|
-
},
|
38
|
+
}, jt = bt ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((t) => {
|
39
39
|
let e = "";
|
40
40
|
for (const i of t.cssRules) e += i.cssText;
|
41
|
-
return
|
41
|
+
return Ce(e);
|
42
42
|
})(s) : s;
|
43
43
|
/**
|
44
44
|
* @license
|
45
45
|
* Copyright 2017 Google LLC
|
46
46
|
* SPDX-License-Identifier: BSD-3-Clause
|
47
47
|
*/
|
48
|
-
const { is:
|
48
|
+
const { is: Pe, defineProperty: Oe, getOwnPropertyDescriptor: ke, getOwnPropertyNames: Te, getOwnPropertySymbols: Re, getPrototypeOf: Ue } = Object, w = globalThis, Mt = w.trustedTypes, je = Mt ? Mt.emptyScript : "", it = w.reactiveElementPolyfillSupport, N = (s, t) => s, K = { toAttribute(s, t) {
|
49
49
|
switch (t) {
|
50
50
|
case Boolean:
|
51
|
-
s = s ?
|
51
|
+
s = s ? je : null;
|
52
52
|
break;
|
53
53
|
case Object:
|
54
54
|
case Array:
|
@@ -73,7 +73,7 @@ const { is: Ce, defineProperty: Se, getOwnPropertyDescriptor: Ee, getOwnProperty
|
|
73
73
|
}
|
74
74
|
}
|
75
75
|
return e;
|
76
|
-
} },
|
76
|
+
} }, _t = (s, t) => !Pe(s, t), Nt = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t };
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
78
78
|
let T = class extends HTMLElement {
|
79
79
|
static addInitializer(t) {
|
@@ -82,48 +82,48 @@ let T = class extends HTMLElement {
|
|
82
82
|
static get observedAttributes() {
|
83
83
|
return this.finalize(), this._$Eh && [...this._$Eh.keys()];
|
84
84
|
}
|
85
|
-
static createProperty(t, e =
|
85
|
+
static createProperty(t, e = Nt) {
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.elementProperties.set(t, e), !e.noAccessor) {
|
87
|
-
const i = Symbol(),
|
88
|
-
|
87
|
+
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
88
|
+
r !== void 0 && Oe(this.prototype, t, r);
|
89
89
|
}
|
90
90
|
}
|
91
91
|
static getPropertyDescriptor(t, e, i) {
|
92
|
-
const { get:
|
92
|
+
const { get: r, set: n } = ke(this.prototype, t) ?? { get() {
|
93
93
|
return this[e];
|
94
94
|
}, set(o) {
|
95
95
|
this[e] = o;
|
96
96
|
} };
|
97
97
|
return { get() {
|
98
|
-
return
|
98
|
+
return r == null ? void 0 : r.call(this);
|
99
99
|
}, set(o) {
|
100
|
-
const a =
|
101
|
-
|
100
|
+
const a = r == null ? void 0 : r.call(this);
|
101
|
+
n.call(this, o), this.requestUpdate(t, a, i);
|
102
102
|
}, configurable: !0, enumerable: !0 };
|
103
103
|
}
|
104
104
|
static getPropertyOptions(t) {
|
105
|
-
return this.elementProperties.get(t) ??
|
105
|
+
return this.elementProperties.get(t) ?? Nt;
|
106
106
|
}
|
107
107
|
static _$Ei() {
|
108
108
|
if (this.hasOwnProperty(N("elementProperties"))) return;
|
109
|
-
const t =
|
109
|
+
const t = Ue(this);
|
110
110
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
111
111
|
}
|
112
112
|
static finalize() {
|
113
113
|
if (this.hasOwnProperty(N("finalized"))) return;
|
114
114
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(N("properties"))) {
|
115
|
-
const e = this.properties, i = [...
|
116
|
-
for (const
|
115
|
+
const e = this.properties, i = [...Te(e), ...Re(e)];
|
116
|
+
for (const r of i) this.createProperty(r, e[r]);
|
117
117
|
}
|
118
118
|
const t = this[Symbol.metadata];
|
119
119
|
if (t !== null) {
|
120
120
|
const e = litPropertyMetadata.get(t);
|
121
|
-
if (e !== void 0) for (const [i,
|
121
|
+
if (e !== void 0) for (const [i, r] of e) this.elementProperties.set(i, r);
|
122
122
|
}
|
123
123
|
this._$Eh = /* @__PURE__ */ new Map();
|
124
124
|
for (const [e, i] of this.elementProperties) {
|
125
|
-
const
|
126
|
-
|
125
|
+
const r = this._$Eu(e, i);
|
126
|
+
r !== void 0 && this._$Eh.set(r, e);
|
127
127
|
}
|
128
128
|
this.elementStyles = this.finalizeStyles(this.styles);
|
129
129
|
}
|
@@ -131,8 +131,8 @@ let T = class extends HTMLElement {
|
|
131
131
|
const e = [];
|
132
132
|
if (Array.isArray(t)) {
|
133
133
|
const i = new Set(t.flat(1 / 0).reverse());
|
134
|
-
for (const
|
135
|
-
} else t !== void 0 && e.push(
|
134
|
+
for (const r of i) e.unshift(jt(r));
|
135
|
+
} else t !== void 0 && e.push(jt(t));
|
136
136
|
return e;
|
137
137
|
}
|
138
138
|
static _$Eu(t, e) {
|
@@ -161,7 +161,7 @@ let T = class extends HTMLElement {
|
|
161
161
|
}
|
162
162
|
createRenderRoot() {
|
163
163
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
164
|
-
return
|
164
|
+
return Se(t, this.constructor.elementStyles), t;
|
165
165
|
}
|
166
166
|
connectedCallback() {
|
167
167
|
var t;
|
@@ -183,24 +183,24 @@ let T = class extends HTMLElement {
|
|
183
183
|
this._$AK(t, i);
|
184
184
|
}
|
185
185
|
_$EC(t, e) {
|
186
|
-
var
|
187
|
-
const i = this.constructor.elementProperties.get(t),
|
188
|
-
if (
|
189
|
-
const o = (((
|
190
|
-
this._$Em = t, o == null ? this.removeAttribute(
|
186
|
+
var n;
|
187
|
+
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
188
|
+
if (r !== void 0 && i.reflect === !0) {
|
189
|
+
const o = (((n = i.converter) == null ? void 0 : n.toAttribute) !== void 0 ? i.converter : K).toAttribute(e, i.type);
|
190
|
+
this._$Em = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$Em = null;
|
191
191
|
}
|
192
192
|
}
|
193
193
|
_$AK(t, e) {
|
194
|
-
var
|
195
|
-
const i = this.constructor,
|
196
|
-
if (
|
197
|
-
const o = i.getPropertyOptions(
|
198
|
-
this._$Em =
|
194
|
+
var n;
|
195
|
+
const i = this.constructor, r = i._$Eh.get(t);
|
196
|
+
if (r !== void 0 && this._$Em !== r) {
|
197
|
+
const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((n = o.converter) == null ? void 0 : n.fromAttribute) !== void 0 ? o.converter : K;
|
198
|
+
this._$Em = r, this[r] = a.fromAttribute(e, o.type), this._$Em = null;
|
199
199
|
}
|
200
200
|
}
|
201
201
|
requestUpdate(t, e, i) {
|
202
202
|
if (t !== void 0) {
|
203
|
-
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ??
|
203
|
+
if (i ?? (i = this.constructor.getPropertyOptions(t)), !(i.hasChanged ?? _t)(this[t], e)) return;
|
204
204
|
this.P(t, e, i);
|
205
205
|
}
|
206
206
|
this.isUpdatePending === !1 && (this._$ES = this._$ET());
|
@@ -226,21 +226,21 @@ let T = class extends HTMLElement {
|
|
226
226
|
if (!this.isUpdatePending) return;
|
227
227
|
if (!this.hasUpdated) {
|
228
228
|
if (this.renderRoot ?? (this.renderRoot = this.createRenderRoot()), this._$Ep) {
|
229
|
-
for (const [
|
229
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
230
230
|
this._$Ep = void 0;
|
231
231
|
}
|
232
|
-
const
|
233
|
-
if (
|
232
|
+
const r = this.constructor.elementProperties;
|
233
|
+
if (r.size > 0) for (const [n, o] of r) o.wrapped !== !0 || this._$AL.has(n) || this[n] === void 0 || this.P(n, this[n], o);
|
234
234
|
}
|
235
235
|
let t = !1;
|
236
236
|
const e = this._$AL;
|
237
237
|
try {
|
238
|
-
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((
|
239
|
-
var
|
240
|
-
return (
|
238
|
+
t = this.shouldUpdate(e), t ? (this.willUpdate(e), (i = this._$EO) == null || i.forEach((r) => {
|
239
|
+
var n;
|
240
|
+
return (n = r.hostUpdate) == null ? void 0 : n.call(r);
|
241
241
|
}), this.update(e)) : this._$EU();
|
242
|
-
} catch (
|
243
|
-
throw t = !1, this._$EU(),
|
242
|
+
} catch (r) {
|
243
|
+
throw t = !1, this._$EU(), r;
|
244
244
|
}
|
245
245
|
t && this._$AE(e);
|
246
246
|
}
|
@@ -249,8 +249,8 @@ let T = class extends HTMLElement {
|
|
249
249
|
_$AE(t) {
|
250
250
|
var e;
|
251
251
|
(e = this._$EO) == null || e.forEach((i) => {
|
252
|
-
var
|
253
|
-
return (
|
252
|
+
var r;
|
253
|
+
return (r = i.hostUpdated) == null ? void 0 : r.call(i);
|
254
254
|
}), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
|
255
255
|
}
|
256
256
|
_$EU() {
|
@@ -279,70 +279,70 @@ T.elementStyles = [], T.shadowRootOptions = { mode: "open" }, T[N("elementProper
|
|
279
279
|
* Copyright 2017 Google LLC
|
280
280
|
* SPDX-License-Identifier: BSD-3-Clause
|
281
281
|
*/
|
282
|
-
const I = globalThis, G = I.trustedTypes,
|
283
|
-
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
284
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
285
|
-
function
|
286
|
-
if (!
|
287
|
-
return
|
282
|
+
const I = globalThis, G = I.trustedTypes, It = G ? G.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, oe = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, ae = "?" + _, Me = `<${ae}>`, S = document, H = () => S.createComment(""), B = (s) => s === null || typeof s != "object" && typeof s != "function", wt = Array.isArray, Ne = (s) => wt(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", st = `[
|
283
|
+
\f\r]`, M = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Ht = />/g, A = RegExp(`>|${st}(?:([^\\s"'>=/]+)(${st}*=${st}*(?:[^
|
284
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), Bt = /'/g, Dt = /"/g, ce = /^(?:script|style|textarea|title)$/i, Ie = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), E = Ie(1), P = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), zt = /* @__PURE__ */ new WeakMap(), C = S.createTreeWalker(S, 129);
|
285
|
+
function he(s, t) {
|
286
|
+
if (!wt(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
287
|
+
return It !== void 0 ? It.createHTML(t) : t;
|
288
288
|
}
|
289
|
-
const
|
289
|
+
const Le = (s, t) => {
|
290
290
|
const e = s.length - 1, i = [];
|
291
|
-
let
|
291
|
+
let r, n = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", o = M;
|
292
292
|
for (let a = 0; a < e; a++) {
|
293
293
|
const c = s[a];
|
294
|
-
let h, l,
|
295
|
-
for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); ) p = o.lastIndex, o === M ? l[1] === "!--" ? o =
|
296
|
-
const f = o ===
|
297
|
-
|
294
|
+
let h, l, d = -1, p = 0;
|
295
|
+
for (; p < c.length && (o.lastIndex = p, l = o.exec(c), l !== null); ) p = o.lastIndex, o === M ? l[1] === "!--" ? o = Lt : l[1] !== void 0 ? o = Ht : l[2] !== void 0 ? (ce.test(l[2]) && (r = RegExp("</" + l[2], "g")), o = A) : l[3] !== void 0 && (o = A) : o === A ? l[0] === ">" ? (o = r ?? M, d = -1) : l[1] === void 0 ? d = -2 : (d = o.lastIndex - l[2].length, h = l[1], o = l[3] === void 0 ? A : l[3] === '"' ? Dt : Bt) : o === Dt || o === Bt ? o = A : o === Lt || o === Ht ? o = M : (o = A, r = void 0);
|
296
|
+
const f = o === A && s[a + 1].startsWith("/>") ? " " : "";
|
297
|
+
n += o === M ? c + Me : d >= 0 ? (i.push(h), c.slice(0, d) + oe + c.slice(d) + _ + f) : c + _ + (d === -2 ? a : f);
|
298
298
|
}
|
299
|
-
return [
|
299
|
+
return [he(s, n + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
300
300
|
};
|
301
|
-
let
|
301
|
+
let dt = class le {
|
302
302
|
constructor({ strings: t, _$litType$: e }, i) {
|
303
|
-
let
|
303
|
+
let r;
|
304
304
|
this.parts = [];
|
305
|
-
let
|
306
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
307
|
-
if (this.el =
|
308
|
-
const
|
309
|
-
|
305
|
+
let n = 0, o = 0;
|
306
|
+
const a = t.length - 1, c = this.parts, [h, l] = Le(t, e);
|
307
|
+
if (this.el = le.createElement(h, i), C.currentNode = this.el.content, e === 2 || e === 3) {
|
308
|
+
const d = this.el.content.firstChild;
|
309
|
+
d.replaceWith(...d.childNodes);
|
310
310
|
}
|
311
|
-
for (; (
|
312
|
-
if (
|
313
|
-
if (
|
314
|
-
const p = l[o++], f =
|
315
|
-
c.push({ type: 1, index:
|
316
|
-
} else
|
317
|
-
if (
|
318
|
-
const
|
311
|
+
for (; (r = C.nextNode()) !== null && c.length < a; ) {
|
312
|
+
if (r.nodeType === 1) {
|
313
|
+
if (r.hasAttributes()) for (const d of r.getAttributeNames()) if (d.endsWith(oe)) {
|
314
|
+
const p = l[o++], f = r.getAttribute(d).split(_), k = /([.?@])?(.*)/.exec(p);
|
315
|
+
c.push({ type: 1, index: n, name: k[2], strings: f, ctor: k[1] === "." ? Be : k[1] === "?" ? De : k[1] === "@" ? ze : tt }), r.removeAttribute(d);
|
316
|
+
} else d.startsWith(_) && (c.push({ type: 6, index: n }), r.removeAttribute(d));
|
317
|
+
if (ce.test(r.tagName)) {
|
318
|
+
const d = r.textContent.split(_), p = d.length - 1;
|
319
319
|
if (p > 0) {
|
320
|
-
|
321
|
-
for (let f = 0; f < p; f++)
|
322
|
-
|
320
|
+
r.textContent = G ? G.emptyScript : "";
|
321
|
+
for (let f = 0; f < p; f++) r.append(d[f], H()), C.nextNode(), c.push({ type: 2, index: ++n });
|
322
|
+
r.append(d[p], H());
|
323
323
|
}
|
324
324
|
}
|
325
|
-
} else if (
|
325
|
+
} else if (r.nodeType === 8) if (r.data === ae) c.push({ type: 2, index: n });
|
326
326
|
else {
|
327
|
-
let
|
328
|
-
for (; (
|
327
|
+
let d = -1;
|
328
|
+
for (; (d = r.data.indexOf(_, d + 1)) !== -1; ) c.push({ type: 7, index: n }), d += _.length - 1;
|
329
329
|
}
|
330
|
-
|
330
|
+
n++;
|
331
331
|
}
|
332
332
|
}
|
333
333
|
static createElement(t, e) {
|
334
|
-
const i =
|
334
|
+
const i = S.createElement("template");
|
335
335
|
return i.innerHTML = t, i;
|
336
336
|
}
|
337
337
|
};
|
338
338
|
function R(s, t, e = s, i) {
|
339
339
|
var o, a;
|
340
340
|
if (t === P) return t;
|
341
|
-
let
|
342
|
-
const
|
343
|
-
return (
|
341
|
+
let r = i !== void 0 ? (o = e._$Co) == null ? void 0 : o[i] : e._$Cl;
|
342
|
+
const n = B(t) ? void 0 : t._$litDirective$;
|
343
|
+
return (r == null ? void 0 : r.constructor) !== n && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), n === void 0 ? r = void 0 : (r = new n(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = R(s, r._$AS(s, t.values), r, i)), t;
|
344
344
|
}
|
345
|
-
class
|
345
|
+
class He {
|
346
346
|
constructor(t, e) {
|
347
347
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
348
348
|
}
|
@@ -353,17 +353,17 @@ class Ne {
|
|
353
353
|
return this._$AM._$AU;
|
354
354
|
}
|
355
355
|
u(t) {
|
356
|
-
const { el: { content: e }, parts: i } = this._$AD,
|
357
|
-
|
358
|
-
let
|
356
|
+
const { el: { content: e }, parts: i } = this._$AD, r = ((t == null ? void 0 : t.creationScope) ?? S).importNode(e, !0);
|
357
|
+
C.currentNode = r;
|
358
|
+
let n = C.nextNode(), o = 0, a = 0, c = i[0];
|
359
359
|
for (; c !== void 0; ) {
|
360
360
|
if (o === c.index) {
|
361
361
|
let h;
|
362
|
-
c.type === 2 ? h = new V(
|
362
|
+
c.type === 2 ? h = new V(n, n.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(n, c.name, c.strings, this, t) : c.type === 6 && (h = new Ve(n, this, t)), this._$AV.push(h), c = i[++a];
|
363
363
|
}
|
364
|
-
o !== (c == null ? void 0 : c.index) && (
|
364
|
+
o !== (c == null ? void 0 : c.index) && (n = C.nextNode(), o++);
|
365
365
|
}
|
366
|
-
return
|
366
|
+
return C.currentNode = S, r;
|
367
367
|
}
|
368
368
|
p(t) {
|
369
369
|
let e = 0;
|
@@ -375,8 +375,8 @@ class V {
|
|
375
375
|
var t;
|
376
376
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
377
377
|
}
|
378
|
-
constructor(t, e, i,
|
379
|
-
this.type = 2, this._$AH =
|
378
|
+
constructor(t, e, i, r) {
|
379
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = i, this.options = r, this._$Cv = (r == null ? void 0 : r.isConnected) ?? !0;
|
380
380
|
}
|
381
381
|
get parentNode() {
|
382
382
|
let t = this._$AA.parentNode;
|
@@ -390,7 +390,7 @@ class V {
|
|
390
390
|
return this._$AB;
|
391
391
|
}
|
392
392
|
_$AI(t, e = this) {
|
393
|
-
t = R(this, t, e), B(t) ? t ===
|
393
|
+
t = R(this, t, e), B(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== P && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Ne(t) ? this.k(t) : this._(t);
|
394
394
|
}
|
395
395
|
O(t) {
|
396
396
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
@@ -399,33 +399,33 @@ class V {
|
|
399
399
|
this._$AH !== t && (this._$AR(), this._$AH = this.O(t));
|
400
400
|
}
|
401
401
|
_(t) {
|
402
|
-
this._$AH !==
|
402
|
+
this._$AH !== u && B(this._$AH) ? this._$AA.nextSibling.data = t : this.T(S.createTextNode(t)), this._$AH = t;
|
403
403
|
}
|
404
404
|
$(t) {
|
405
|
-
var
|
406
|
-
const { values: e, _$litType$: i } = t,
|
407
|
-
if (((
|
405
|
+
var n;
|
406
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = dt.createElement(he(i.h, i.h[0]), this.options)), i);
|
407
|
+
if (((n = this._$AH) == null ? void 0 : n._$AD) === r) this._$AH.p(e);
|
408
408
|
else {
|
409
|
-
const o = new
|
409
|
+
const o = new He(r, this), a = o.u(this.options);
|
410
410
|
o.p(e), this.T(a), this._$AH = o;
|
411
411
|
}
|
412
412
|
}
|
413
413
|
_$AC(t) {
|
414
414
|
let e = zt.get(t.strings);
|
415
|
-
return e === void 0 && zt.set(t.strings, e = new
|
415
|
+
return e === void 0 && zt.set(t.strings, e = new dt(t)), e;
|
416
416
|
}
|
417
417
|
k(t) {
|
418
|
-
|
418
|
+
wt(this._$AH) || (this._$AH = [], this._$AR());
|
419
419
|
const e = this._$AH;
|
420
|
-
let i,
|
421
|
-
for (const
|
422
|
-
|
420
|
+
let i, r = 0;
|
421
|
+
for (const n of t) r === e.length ? e.push(i = new V(this.O(H()), this.O(H()), this, this.options)) : i = e[r], i._$AI(n), r++;
|
422
|
+
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
423
423
|
}
|
424
424
|
_$AR(t = this._$AA.nextSibling, e) {
|
425
425
|
var i;
|
426
426
|
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t && t !== this._$AB; ) {
|
427
|
-
const
|
428
|
-
t.remove(), t =
|
427
|
+
const r = t.nextSibling;
|
428
|
+
t.remove(), t = r;
|
429
429
|
}
|
430
430
|
}
|
431
431
|
setConnected(t) {
|
@@ -440,55 +440,55 @@ class tt {
|
|
440
440
|
get _$AU() {
|
441
441
|
return this._$AM._$AU;
|
442
442
|
}
|
443
|
-
constructor(t, e, i,
|
444
|
-
this.type = 1, this._$AH =
|
443
|
+
constructor(t, e, i, r, n) {
|
444
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = r, this.options = n, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
445
445
|
}
|
446
|
-
_$AI(t, e = this, i,
|
447
|
-
const
|
446
|
+
_$AI(t, e = this, i, r) {
|
447
|
+
const n = this.strings;
|
448
448
|
let o = !1;
|
449
|
-
if (
|
449
|
+
if (n === void 0) t = R(this, t, e, 0), o = !B(t) || t !== this._$AH && t !== P, o && (this._$AH = t);
|
450
450
|
else {
|
451
451
|
const a = t;
|
452
452
|
let c, h;
|
453
|
-
for (t =
|
453
|
+
for (t = n[0], c = 0; c < n.length - 1; c++) h = R(this, a[i + c], e, c), h === P && (h = this._$AH[c]), o || (o = !B(h) || h !== this._$AH[c]), h === u ? t = u : t !== u && (t += (h ?? "") + n[c + 1]), this._$AH[c] = h;
|
454
454
|
}
|
455
|
-
o && !
|
455
|
+
o && !r && this.j(t);
|
456
456
|
}
|
457
457
|
j(t) {
|
458
|
-
t ===
|
458
|
+
t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
459
459
|
}
|
460
460
|
}
|
461
|
-
class
|
461
|
+
class Be extends tt {
|
462
462
|
constructor() {
|
463
463
|
super(...arguments), this.type = 3;
|
464
464
|
}
|
465
465
|
j(t) {
|
466
|
-
this.element[this.name] = t ===
|
466
|
+
this.element[this.name] = t === u ? void 0 : t;
|
467
467
|
}
|
468
468
|
}
|
469
|
-
class
|
469
|
+
class De extends tt {
|
470
470
|
constructor() {
|
471
471
|
super(...arguments), this.type = 4;
|
472
472
|
}
|
473
473
|
j(t) {
|
474
|
-
this.element.toggleAttribute(this.name, !!t && t !==
|
474
|
+
this.element.toggleAttribute(this.name, !!t && t !== u);
|
475
475
|
}
|
476
476
|
}
|
477
|
-
class
|
478
|
-
constructor(t, e, i,
|
479
|
-
super(t, e, i,
|
477
|
+
class ze extends tt {
|
478
|
+
constructor(t, e, i, r, n) {
|
479
|
+
super(t, e, i, r, n), this.type = 5;
|
480
480
|
}
|
481
481
|
_$AI(t, e = this) {
|
482
|
-
if ((t = R(this, t, e, 0) ??
|
483
|
-
const i = this._$AH,
|
484
|
-
|
482
|
+
if ((t = R(this, t, e, 0) ?? u) === P) return;
|
483
|
+
const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, n = t !== u && (i === u || r);
|
484
|
+
r && this.element.removeEventListener(this.name, this, i), n && this.element.addEventListener(this.name, this, t), this._$AH = t;
|
485
485
|
}
|
486
486
|
handleEvent(t) {
|
487
487
|
var e;
|
488
488
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
489
489
|
}
|
490
490
|
}
|
491
|
-
class
|
491
|
+
class Ve {
|
492
492
|
constructor(t, e, i) {
|
493
493
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
494
494
|
}
|
@@ -499,23 +499,23 @@ class Be {
|
|
499
499
|
R(this, t);
|
500
500
|
}
|
501
501
|
}
|
502
|
-
const
|
503
|
-
|
504
|
-
const
|
502
|
+
const rt = I.litHtmlPolyfillSupport;
|
503
|
+
rt == null || rt(dt, V), (I.litHtmlVersions ?? (I.litHtmlVersions = [])).push("3.2.1");
|
504
|
+
const Fe = (s, t, e) => {
|
505
505
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
506
|
-
let
|
507
|
-
if (
|
508
|
-
const
|
509
|
-
i._$litPart$ =
|
506
|
+
let r = i._$litPart$;
|
507
|
+
if (r === void 0) {
|
508
|
+
const n = (e == null ? void 0 : e.renderBefore) ?? null;
|
509
|
+
i._$litPart$ = r = new V(t.insertBefore(H(), n), n, void 0, e ?? {});
|
510
510
|
}
|
511
|
-
return
|
511
|
+
return r._$AI(s), r;
|
512
512
|
};
|
513
513
|
/**
|
514
514
|
* @license
|
515
515
|
* Copyright 2017 Google LLC
|
516
516
|
* SPDX-License-Identifier: BSD-3-Clause
|
517
517
|
*/
|
518
|
-
let
|
518
|
+
let m = class extends T {
|
519
519
|
constructor() {
|
520
520
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
521
521
|
}
|
@@ -526,7 +526,7 @@ let y = class extends T {
|
|
526
526
|
}
|
527
527
|
update(t) {
|
528
528
|
const e = this.render();
|
529
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
529
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Fe(e, this.renderRoot, this.renderOptions);
|
530
530
|
}
|
531
531
|
connectedCallback() {
|
532
532
|
var t;
|
@@ -540,17 +540,17 @@ let y = class extends T {
|
|
540
540
|
return P;
|
541
541
|
}
|
542
542
|
};
|
543
|
-
var
|
544
|
-
|
545
|
-
const
|
546
|
-
|
543
|
+
var re;
|
544
|
+
m._$litElement$ = !0, m.finalized = !0, (re = globalThis.litElementHydrateSupport) == null || re.call(globalThis, { LitElement: m });
|
545
|
+
const nt = globalThis.litElementPolyfillSupport;
|
546
|
+
nt == null || nt({ LitElement: m });
|
547
547
|
(globalThis.litElementVersions ?? (globalThis.litElementVersions = [])).push("4.1.1");
|
548
548
|
/**
|
549
549
|
* @license
|
550
550
|
* Copyright 2021 Google LLC
|
551
551
|
* SPDX-License-Identifier: BSD-3-Clause
|
552
552
|
*/
|
553
|
-
function*
|
553
|
+
function* de(s, t) {
|
554
554
|
if (s !== void 0) {
|
555
555
|
let e = 0;
|
556
556
|
for (const i of s) yield t(i, e++);
|
@@ -560,7 +560,7 @@ var ut = function(s, t) {
|
|
560
560
|
return ut = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
561
561
|
e.__proto__ = i;
|
562
562
|
} || function(e, i) {
|
563
|
-
for (var
|
563
|
+
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
564
564
|
}, ut(s, t);
|
565
565
|
};
|
566
566
|
function F(s, t) {
|
@@ -572,7 +572,7 @@ function F(s, t) {
|
|
572
572
|
}
|
573
573
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
574
574
|
}
|
575
|
-
function
|
575
|
+
function pt(s) {
|
576
576
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
577
577
|
if (e) return e.call(s);
|
578
578
|
if (s && typeof s.length == "number") return {
|
@@ -582,29 +582,29 @@ function dt(s) {
|
|
582
582
|
};
|
583
583
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
584
584
|
}
|
585
|
-
function
|
585
|
+
function ft(s, t) {
|
586
586
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
587
587
|
if (!e) return s;
|
588
|
-
var i = e.call(s),
|
588
|
+
var i = e.call(s), r, n = [], o;
|
589
589
|
try {
|
590
|
-
for (; (t === void 0 || t-- > 0) && !(
|
590
|
+
for (; (t === void 0 || t-- > 0) && !(r = i.next()).done; ) n.push(r.value);
|
591
591
|
} catch (a) {
|
592
592
|
o = { error: a };
|
593
593
|
} finally {
|
594
594
|
try {
|
595
|
-
|
595
|
+
r && !r.done && (e = i.return) && e.call(i);
|
596
596
|
} finally {
|
597
597
|
if (o) throw o.error;
|
598
598
|
}
|
599
599
|
}
|
600
|
-
return
|
600
|
+
return n;
|
601
601
|
}
|
602
|
-
function
|
603
|
-
if (e || arguments.length === 2) for (var i = 0,
|
604
|
-
(
|
605
|
-
return s.concat(
|
602
|
+
function gt(s, t, e) {
|
603
|
+
if (e || arguments.length === 2) for (var i = 0, r = t.length, n; i < r; i++)
|
604
|
+
(n || !(i in t)) && (n || (n = Array.prototype.slice.call(t, 0, i)), n[i] = t[i]);
|
605
|
+
return s.concat(n || Array.prototype.slice.call(t));
|
606
606
|
}
|
607
|
-
function
|
607
|
+
function b(s) {
|
608
608
|
return typeof s == "function";
|
609
609
|
}
|
610
610
|
function ue(s) {
|
@@ -616,13 +616,13 @@ function ue(s) {
|
|
616
616
|
var ot = ue(function(s) {
|
617
617
|
return function(e) {
|
618
618
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
619
|
-
` + e.map(function(i,
|
620
|
-
return
|
619
|
+
` + e.map(function(i, r) {
|
620
|
+
return r + 1 + ") " + i.toString();
|
621
621
|
}).join(`
|
622
622
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
623
623
|
};
|
624
624
|
});
|
625
|
-
function
|
625
|
+
function vt(s, t) {
|
626
626
|
if (s) {
|
627
627
|
var e = s.indexOf(t);
|
628
628
|
0 <= e && s.splice(e, 1);
|
@@ -633,19 +633,19 @@ var et = function() {
|
|
633
633
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
634
634
|
}
|
635
635
|
return s.prototype.unsubscribe = function() {
|
636
|
-
var t, e, i,
|
636
|
+
var t, e, i, r, n;
|
637
637
|
if (!this.closed) {
|
638
638
|
this.closed = !0;
|
639
639
|
var o = this._parentage;
|
640
640
|
if (o)
|
641
641
|
if (this._parentage = null, Array.isArray(o))
|
642
642
|
try {
|
643
|
-
for (var a =
|
643
|
+
for (var a = pt(o), c = a.next(); !c.done; c = a.next()) {
|
644
644
|
var h = c.value;
|
645
645
|
h.remove(this);
|
646
646
|
}
|
647
|
-
} catch (
|
648
|
-
t = { error:
|
647
|
+
} catch (v) {
|
648
|
+
t = { error: v };
|
649
649
|
} finally {
|
650
650
|
try {
|
651
651
|
c && !c.done && (e = a.return) && e.call(a);
|
@@ -656,42 +656,42 @@ var et = function() {
|
|
656
656
|
else
|
657
657
|
o.remove(this);
|
658
658
|
var l = this.initialTeardown;
|
659
|
-
if (
|
659
|
+
if (b(l))
|
660
660
|
try {
|
661
661
|
l();
|
662
|
-
} catch (
|
663
|
-
|
662
|
+
} catch (v) {
|
663
|
+
n = v instanceof ot ? v.errors : [v];
|
664
664
|
}
|
665
|
-
var
|
666
|
-
if (
|
665
|
+
var d = this._finalizers;
|
666
|
+
if (d) {
|
667
667
|
this._finalizers = null;
|
668
668
|
try {
|
669
|
-
for (var p =
|
669
|
+
for (var p = pt(d), f = p.next(); !f.done; f = p.next()) {
|
670
670
|
var k = f.value;
|
671
671
|
try {
|
672
|
-
|
673
|
-
} catch (
|
674
|
-
|
672
|
+
Vt(k);
|
673
|
+
} catch (v) {
|
674
|
+
n = n ?? [], v instanceof ot ? n = gt(gt([], ft(n)), ft(v.errors)) : n.push(v);
|
675
675
|
}
|
676
676
|
}
|
677
|
-
} catch (
|
678
|
-
i = { error:
|
677
|
+
} catch (v) {
|
678
|
+
i = { error: v };
|
679
679
|
} finally {
|
680
680
|
try {
|
681
|
-
f && !f.done && (
|
681
|
+
f && !f.done && (r = p.return) && r.call(p);
|
682
682
|
} finally {
|
683
683
|
if (i) throw i.error;
|
684
684
|
}
|
685
685
|
}
|
686
686
|
}
|
687
|
-
if (
|
688
|
-
throw new ot(
|
687
|
+
if (n)
|
688
|
+
throw new ot(n);
|
689
689
|
}
|
690
690
|
}, s.prototype.add = function(t) {
|
691
691
|
var e;
|
692
692
|
if (t && t !== this)
|
693
693
|
if (this.closed)
|
694
|
-
|
694
|
+
Vt(t);
|
695
695
|
else {
|
696
696
|
if (t instanceof s) {
|
697
697
|
if (t.closed || t._hasParent(this))
|
@@ -708,52 +708,56 @@ var et = function() {
|
|
708
708
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
709
709
|
}, s.prototype._removeParent = function(t) {
|
710
710
|
var e = this._parentage;
|
711
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
711
|
+
e === t ? this._parentage = null : Array.isArray(e) && vt(e, t);
|
712
712
|
}, s.prototype.remove = function(t) {
|
713
713
|
var e = this._finalizers;
|
714
|
-
e &&
|
714
|
+
e && vt(e, t), t instanceof s && t._removeParent(this);
|
715
715
|
}, s.EMPTY = function() {
|
716
716
|
var t = new s();
|
717
717
|
return t.closed = !0, t;
|
718
718
|
}(), s;
|
719
|
-
}(),
|
720
|
-
function
|
721
|
-
return s instanceof et || s && "closed" in s &&
|
719
|
+
}(), pe = et.EMPTY;
|
720
|
+
function fe(s) {
|
721
|
+
return s instanceof et || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
722
722
|
}
|
723
|
-
function
|
724
|
-
|
723
|
+
function Vt(s) {
|
724
|
+
b(s) ? s() : s.unsubscribe();
|
725
725
|
}
|
726
|
-
var
|
727
|
-
|
728
|
-
|
726
|
+
var ge = {
|
727
|
+
onUnhandledError: null,
|
728
|
+
onStoppedNotification: null,
|
729
|
+
Promise: void 0,
|
730
|
+
useDeprecatedSynchronousErrorHandling: !1,
|
731
|
+
useDeprecatedNextContext: !1
|
732
|
+
}, Ye = {
|
729
733
|
setTimeout: function(s, t) {
|
730
734
|
for (var e = [], i = 2; i < arguments.length; i++)
|
731
735
|
e[i - 2] = arguments[i];
|
732
|
-
return setTimeout.apply(void 0,
|
736
|
+
return setTimeout.apply(void 0, gt([s, t], ft(e)));
|
733
737
|
},
|
734
738
|
clearTimeout: function(s) {
|
735
739
|
return clearTimeout(s);
|
736
740
|
},
|
737
741
|
delegate: void 0
|
738
742
|
};
|
739
|
-
function
|
740
|
-
|
743
|
+
function qe(s) {
|
744
|
+
Ye.setTimeout(function() {
|
741
745
|
throw s;
|
742
746
|
});
|
743
747
|
}
|
744
|
-
function
|
748
|
+
function Ft() {
|
745
749
|
}
|
746
750
|
function Z(s) {
|
747
751
|
s();
|
748
752
|
}
|
749
|
-
var
|
753
|
+
var ve = function(s) {
|
750
754
|
F(t, s);
|
751
755
|
function t(e) {
|
752
756
|
var i = s.call(this) || this;
|
753
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
757
|
+
return i.isStopped = !1, e ? (i.destination = e, fe(e) && e.add(i)) : i.destination = Ge, i;
|
754
758
|
}
|
755
|
-
return t.create = function(e, i,
|
756
|
-
return new mt(e, i,
|
759
|
+
return t.create = function(e, i, r) {
|
760
|
+
return new mt(e, i, r);
|
757
761
|
}, t.prototype.next = function(e) {
|
758
762
|
this.isStopped || this._next(e);
|
759
763
|
}, t.prototype.error = function(e) {
|
@@ -777,7 +781,11 @@ var fe = function(s) {
|
|
777
781
|
this.unsubscribe();
|
778
782
|
}
|
779
783
|
}, t;
|
780
|
-
}(et),
|
784
|
+
}(et), We = Function.prototype.bind;
|
785
|
+
function at(s, t) {
|
786
|
+
return We.call(s, t);
|
787
|
+
}
|
788
|
+
var Ze = function() {
|
781
789
|
function s(t) {
|
782
790
|
this.partialObserver = t;
|
783
791
|
}
|
@@ -810,41 +818,53 @@ var fe = function(s) {
|
|
810
818
|
}, s;
|
811
819
|
}(), mt = function(s) {
|
812
820
|
F(t, s);
|
813
|
-
function t(e, i,
|
814
|
-
var
|
815
|
-
|
816
|
-
|
817
|
-
|
818
|
-
|
819
|
-
|
821
|
+
function t(e, i, r) {
|
822
|
+
var n = s.call(this) || this, o;
|
823
|
+
if (b(e) || !e)
|
824
|
+
o = {
|
825
|
+
next: e ?? void 0,
|
826
|
+
error: i ?? void 0,
|
827
|
+
complete: r ?? void 0
|
828
|
+
};
|
829
|
+
else {
|
830
|
+
var a;
|
831
|
+
n && ge.useDeprecatedNextContext ? (a = Object.create(e), a.unsubscribe = function() {
|
832
|
+
return n.unsubscribe();
|
833
|
+
}, o = {
|
834
|
+
next: e.next && at(e.next, a),
|
835
|
+
error: e.error && at(e.error, a),
|
836
|
+
complete: e.complete && at(e.complete, a)
|
837
|
+
}) : o = e;
|
838
|
+
}
|
839
|
+
return n.destination = new Ze(o), n;
|
820
840
|
}
|
821
841
|
return t;
|
822
|
-
}(
|
842
|
+
}(ve);
|
823
843
|
function q(s) {
|
824
|
-
|
844
|
+
qe(s);
|
825
845
|
}
|
826
|
-
function
|
846
|
+
function Ke(s) {
|
827
847
|
throw s;
|
828
848
|
}
|
829
|
-
var
|
849
|
+
var Ge = {
|
830
850
|
closed: !0,
|
831
|
-
next:
|
832
|
-
error:
|
833
|
-
complete:
|
834
|
-
},
|
851
|
+
next: Ft,
|
852
|
+
error: Ke,
|
853
|
+
complete: Ft
|
854
|
+
}, Xe = function() {
|
835
855
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
836
856
|
}();
|
837
|
-
function
|
857
|
+
function Je(s) {
|
838
858
|
return s;
|
839
859
|
}
|
840
|
-
function
|
841
|
-
return s.length === 0 ?
|
842
|
-
return s.reduce(function(i,
|
843
|
-
return
|
860
|
+
function Qe(s) {
|
861
|
+
return s.length === 0 ? Je : s.length === 1 ? s[0] : function(e) {
|
862
|
+
return s.reduce(function(i, r) {
|
863
|
+
return r(i);
|
844
864
|
}, e);
|
845
865
|
};
|
846
866
|
}
|
847
|
-
var
|
867
|
+
var Yt = function() {
|
848
868
|
function s(t) {
|
849
869
|
t && (this._subscribe = t);
|
850
870
|
}
|
@@ -852,11 +872,11 @@ var Ft = function() {
|
|
852
872
|
var e = new s();
|
853
873
|
return e.source = this, e.operator = t, e;
|
854
874
|
}, s.prototype.subscribe = function(t, e, i) {
|
855
|
-
var
|
875
|
+
var r = this, n = ei(t) ? t : new mt(t, e, i);
|
856
876
|
return Z(function() {
|
857
|
-
var o =
|
858
|
-
|
859
|
-
}),
|
877
|
+
var o = r, a = o.operator, c = o.source;
|
878
|
+
n.add(a ? a.call(n, c) : c ? r._subscribe(n) : r._trySubscribe(n));
|
879
|
+
}), n;
|
860
880
|
}, s.prototype._trySubscribe = function(t) {
|
861
881
|
try {
|
862
882
|
return this._subscribe(t);
|
@@ -865,89 +885,89 @@ var Ft = function() {
|
|
865
885
|
}
|
866
886
|
}, s.prototype.forEach = function(t, e) {
|
867
887
|
var i = this;
|
868
|
-
return e =
|
888
|
+
return e = qt(e), new e(function(r, n) {
|
869
889
|
var o = new mt({
|
870
890
|
next: function(a) {
|
871
891
|
try {
|
872
892
|
t(a);
|
873
893
|
} catch (c) {
|
874
|
-
|
894
|
+
n(c), o.unsubscribe();
|
875
895
|
}
|
876
896
|
},
|
877
|
-
error:
|
878
|
-
complete:
|
897
|
+
error: n,
|
898
|
+
complete: r
|
879
899
|
});
|
880
900
|
i.subscribe(o);
|
881
901
|
});
|
882
902
|
}, s.prototype._subscribe = function(t) {
|
883
903
|
var e;
|
884
904
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
885
|
-
}, s.prototype[
|
905
|
+
}, s.prototype[Xe] = function() {
|
886
906
|
return this;
|
887
907
|
}, s.prototype.pipe = function() {
|
888
908
|
for (var t = [], e = 0; e < arguments.length; e++)
|
889
909
|
t[e] = arguments[e];
|
890
|
-
return
|
910
|
+
return Qe(t)(this);
|
891
911
|
}, s.prototype.toPromise = function(t) {
|
892
912
|
var e = this;
|
893
|
-
return t =
|
894
|
-
var
|
913
|
+
return t = qt(t), new t(function(i, r) {
|
914
|
+
var n;
|
895
915
|
e.subscribe(function(o) {
|
896
|
-
return
|
916
|
+
return n = o;
|
897
917
|
}, function(o) {
|
898
|
-
return
|
918
|
+
return r(o);
|
899
919
|
}, function() {
|
900
|
-
return i(
|
920
|
+
return i(n);
|
901
921
|
});
|
902
922
|
});
|
903
923
|
}, s.create = function(t) {
|
904
924
|
return new s(t);
|
905
925
|
}, s;
|
906
926
|
}();
|
907
|
-
function
|
927
|
+
function qt(s) {
|
908
928
|
var t;
|
909
|
-
return (t = s ??
|
929
|
+
return (t = s ?? ge.Promise) !== null && t !== void 0 ? t : Promise;
|
910
930
|
}
|
911
|
-
function
|
912
|
-
return s &&
|
931
|
+
function ti(s) {
|
932
|
+
return s && b(s.next) && b(s.error) && b(s.complete);
|
913
933
|
}
|
914
|
-
function
|
915
|
-
return s && s instanceof
|
934
|
+
function ei(s) {
|
935
|
+
return s && s instanceof ve || ti(s) && fe(s);
|
916
936
|
}
|
917
|
-
var
|
937
|
+
var ii = ue(function(s) {
|
918
938
|
return function() {
|
919
939
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
920
940
|
};
|
921
|
-
}),
|
941
|
+
}), At = function(s) {
|
922
942
|
F(t, s);
|
923
943
|
function t() {
|
924
944
|
var e = s.call(this) || this;
|
925
945
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
926
946
|
}
|
927
947
|
return t.prototype.lift = function(e) {
|
928
|
-
var i = new
|
948
|
+
var i = new Wt(this, this);
|
929
949
|
return i.operator = e, i;
|
930
950
|
}, t.prototype._throwIfClosed = function() {
|
931
951
|
if (this.closed)
|
932
|
-
throw new
|
952
|
+
throw new ii();
|
933
953
|
}, t.prototype.next = function(e) {
|
934
954
|
var i = this;
|
935
955
|
Z(function() {
|
936
|
-
var
|
956
|
+
var r, n;
|
937
957
|
if (i._throwIfClosed(), !i.isStopped) {
|
938
958
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
939
959
|
try {
|
940
|
-
for (var o =
|
960
|
+
for (var o = pt(i.currentObservers), a = o.next(); !a.done; a = o.next()) {
|
941
961
|
var c = a.value;
|
942
962
|
c.next(e);
|
943
963
|
}
|
944
964
|
} catch (h) {
|
945
|
-
|
965
|
+
r = { error: h };
|
946
966
|
} finally {
|
947
967
|
try {
|
948
|
-
a && !a.done && (
|
968
|
+
a && !a.done && (n = o.return) && n.call(o);
|
949
969
|
} finally {
|
950
|
-
if (
|
970
|
+
if (r) throw r.error;
|
951
971
|
}
|
952
972
|
}
|
953
973
|
}
|
@@ -957,8 +977,8 @@ var Qe = ue(function(s) {
|
|
957
977
|
Z(function() {
|
958
978
|
if (i._throwIfClosed(), !i.isStopped) {
|
959
979
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
960
|
-
for (var
|
961
|
-
|
980
|
+
for (var r = i.observers; r.length; )
|
981
|
+
r.shift().error(e);
|
962
982
|
}
|
963
983
|
});
|
964
984
|
}, t.prototype.complete = function() {
|
@@ -984,39 +1004,39 @@ var Qe = ue(function(s) {
|
|
984
1004
|
}, t.prototype._subscribe = function(e) {
|
985
1005
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
986
1006
|
}, t.prototype._innerSubscribe = function(e) {
|
987
|
-
var i = this,
|
988
|
-
return
|
989
|
-
i.currentObservers = null,
|
1007
|
+
var i = this, r = this, n = r.hasError, o = r.isStopped, a = r.observers;
|
1008
|
+
return n || o ? pe : (this.currentObservers = null, a.push(e), new et(function() {
|
1009
|
+
i.currentObservers = null, vt(a, e);
|
990
1010
|
}));
|
991
1011
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
992
|
-
var i = this,
|
993
|
-
|
1012
|
+
var i = this, r = i.hasError, n = i.thrownError, o = i.isStopped;
|
1013
|
+
r ? e.error(n) : o && e.complete();
|
994
1014
|
}, t.prototype.asObservable = function() {
|
995
|
-
var e = new
|
1015
|
+
var e = new Yt();
|
996
1016
|
return e.source = this, e;
|
997
1017
|
}, t.create = function(e, i) {
|
998
|
-
return new
|
1018
|
+
return new Wt(e, i);
|
999
1019
|
}, t;
|
1000
|
-
}(
|
1020
|
+
}(Yt), Wt = function(s) {
|
1001
1021
|
F(t, s);
|
1002
1022
|
function t(e, i) {
|
1003
|
-
var
|
1004
|
-
return
|
1023
|
+
var r = s.call(this) || this;
|
1024
|
+
return r.destination = e, r.source = i, r;
|
1005
1025
|
}
|
1006
1026
|
return t.prototype.next = function(e) {
|
1007
|
-
var i,
|
1008
|
-
(
|
1027
|
+
var i, r;
|
1028
|
+
(r = (i = this.destination) === null || i === void 0 ? void 0 : i.next) === null || r === void 0 || r.call(i, e);
|
1009
1029
|
}, t.prototype.error = function(e) {
|
1010
|
-
var i,
|
1011
|
-
(
|
1030
|
+
var i, r;
|
1031
|
+
(r = (i = this.destination) === null || i === void 0 ? void 0 : i.error) === null || r === void 0 || r.call(i, e);
|
1012
1032
|
}, t.prototype.complete = function() {
|
1013
1033
|
var e, i;
|
1014
1034
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
1015
1035
|
}, t.prototype._subscribe = function(e) {
|
1016
|
-
var i,
|
1017
|
-
return (
|
1036
|
+
var i, r;
|
1037
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : pe;
|
1018
1038
|
}, t;
|
1019
|
-
}(
|
1039
|
+
}(At), me = function(s) {
|
1020
1040
|
F(t, s);
|
1021
1041
|
function t(e) {
|
1022
1042
|
var i = s.call(this) || this;
|
@@ -1032,23 +1052,23 @@ var Qe = ue(function(s) {
|
|
1032
1052
|
var i = s.prototype._subscribe.call(this, e);
|
1033
1053
|
return !i.closed && e.next(this._value), i;
|
1034
1054
|
}, t.prototype.getValue = function() {
|
1035
|
-
var e = this, i = e.hasError,
|
1055
|
+
var e = this, i = e.hasError, r = e.thrownError, n = e._value;
|
1036
1056
|
if (i)
|
1037
|
-
throw
|
1038
|
-
return this._throwIfClosed(),
|
1057
|
+
throw r;
|
1058
|
+
return this._throwIfClosed(), n;
|
1039
1059
|
}, t.prototype.next = function(e) {
|
1040
1060
|
s.prototype.next.call(this, this._value = e);
|
1041
1061
|
}, t;
|
1042
|
-
}(
|
1062
|
+
}(At);
|
1043
1063
|
/**
|
1044
1064
|
* @license
|
1045
1065
|
* Copyright 2017 Google LLC
|
1046
1066
|
* SPDX-License-Identifier: BSD-3-Clause
|
1047
1067
|
*/
|
1048
|
-
const
|
1049
|
-
const { kind: i, metadata:
|
1050
|
-
let
|
1051
|
-
if (
|
1068
|
+
const si = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged: _t }, ri = (s = si, t, e) => {
|
1069
|
+
const { kind: i, metadata: r } = e;
|
1070
|
+
let n = globalThis.litPropertyMetadata.get(r);
|
1071
|
+
if (n === void 0 && globalThis.litPropertyMetadata.set(r, n = /* @__PURE__ */ new Map()), n.set(e.name, s), i === "accessor") {
|
1052
1072
|
const { name: o } = e;
|
1053
1073
|
return { set(a) {
|
1054
1074
|
const c = t.get.call(this);
|
@@ -1067,9 +1087,9 @@ const ei = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged:
|
|
1067
1087
|
throw Error("Unsupported decorator location: " + i);
|
1068
1088
|
};
|
1069
1089
|
function g(s) {
|
1070
|
-
return (t, e) => typeof e == "object" ?
|
1071
|
-
const o =
|
1072
|
-
return
|
1090
|
+
return (t, e) => typeof e == "object" ? ri(s, t, e) : ((i, r, n) => {
|
1091
|
+
const o = r.hasOwnProperty(n);
|
1092
|
+
return r.constructor.createProperty(n, o ? { ...i, wrapped: !0 } : i), o ? Object.getOwnPropertyDescriptor(r, n) : void 0;
|
1073
1093
|
})(s, t, e);
|
1074
1094
|
}
|
1075
1095
|
/**
|
@@ -1080,12 +1100,12 @@ function g(s) {
|
|
1080
1100
|
function j(s) {
|
1081
1101
|
return g({ ...s, state: !0, attribute: !1 });
|
1082
1102
|
}
|
1083
|
-
var
|
1084
|
-
for (var
|
1085
|
-
(o = s[
|
1086
|
-
return
|
1103
|
+
var ni = Object.defineProperty, oi = (s, t, e, i) => {
|
1104
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
1105
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
1106
|
+
return r && ni(t, e, r), r;
|
1087
1107
|
};
|
1088
|
-
const St = class St extends
|
1108
|
+
const St = class St extends m {
|
1089
1109
|
constructor() {
|
1090
1110
|
super(...arguments), this.anchor = "BottomRight";
|
1091
1111
|
}
|
@@ -1094,7 +1114,7 @@ const St = class St extends y {
|
|
1094
1114
|
return (e = this.shadowRoot) == null || e.appendChild(t), t;
|
1095
1115
|
}
|
1096
1116
|
render() {
|
1097
|
-
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"),
|
1117
|
+
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), u;
|
1098
1118
|
}
|
1099
1119
|
};
|
1100
1120
|
St.styles = [
|
@@ -1117,7 +1137,7 @@ St.styles = [
|
|
1117
1137
|
`
|
1118
1138
|
];
|
1119
1139
|
let X = St;
|
1120
|
-
|
1140
|
+
oi([
|
1121
1141
|
g({ attribute: !0 })
|
1122
1142
|
], X.prototype, "anchor");
|
1123
1143
|
/**
|
@@ -1125,8 +1145,8 @@ ni([
|
|
1125
1145
|
* Copyright 2017 Google LLC
|
1126
1146
|
* SPDX-License-Identifier: BSD-3-Clause
|
1127
1147
|
*/
|
1128
|
-
const xt = { ATTRIBUTE: 1, CHILD: 2 },
|
1129
|
-
let
|
1148
|
+
const xt = { ATTRIBUTE: 1, CHILD: 2, PROPERTY: 3, BOOLEAN_ATTRIBUTE: 4, EVENT: 5, ELEMENT: 6 }, Et = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
1149
|
+
let ye = class {
|
1130
1150
|
constructor(t) {
|
1131
1151
|
}
|
1132
1152
|
get _$AU() {
|
@@ -1147,7 +1167,7 @@ let ge = class {
|
|
1147
1167
|
* Copyright 2020 Google LLC
|
1148
1168
|
* SPDX-License-Identifier: BSD-3-Clause
|
1149
1169
|
*/
|
1150
|
-
const
|
1170
|
+
const ai = (s) => s.strings === void 0;
|
1151
1171
|
/**
|
1152
1172
|
* @license
|
1153
1173
|
* Copyright 2017 Google LLC
|
@@ -1157,7 +1177,7 @@ const L = (s, t) => {
|
|
1157
1177
|
var i;
|
1158
1178
|
const e = s._$AN;
|
1159
1179
|
if (e === void 0) return !1;
|
1160
|
-
for (const
|
1180
|
+
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), L(r, t);
|
1161
1181
|
return !0;
|
1162
1182
|
}, J = (s) => {
|
1163
1183
|
let t, e;
|
@@ -1165,39 +1185,39 @@ const L = (s, t) => {
|
|
1165
1185
|
if ((t = s._$AM) === void 0) break;
|
1166
1186
|
e = t._$AN, e.delete(s), s = t;
|
1167
1187
|
} while ((e == null ? void 0 : e.size) === 0);
|
1168
|
-
},
|
1188
|
+
}, be = (s) => {
|
1169
1189
|
for (let t; t = s._$AM; s = t) {
|
1170
1190
|
let e = t._$AN;
|
1171
1191
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
1172
1192
|
else if (e.has(s)) break;
|
1173
|
-
e.add(s),
|
1193
|
+
e.add(s), li(t);
|
1174
1194
|
}
|
1175
1195
|
};
|
1176
|
-
function
|
1177
|
-
this._$AN !== void 0 ? (J(this), this._$AM = s,
|
1196
|
+
function ci(s) {
|
1197
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, be(this)) : this._$AM = s;
|
1178
1198
|
}
|
1179
|
-
function
|
1180
|
-
const i = this._$AH,
|
1181
|
-
if (
|
1199
|
+
function hi(s, t = !1, e = 0) {
|
1200
|
+
const i = this._$AH, r = this._$AN;
|
1201
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let n = e; n < i.length; n++) L(i[n], !1), J(i[n]);
|
1182
1202
|
else i != null && (L(i, !1), J(i));
|
1183
1203
|
else L(this, s);
|
1184
1204
|
}
|
1185
|
-
const
|
1186
|
-
s.type == xt.CHILD && (s._$AP ?? (s._$AP =
|
1205
|
+
const li = (s) => {
|
1206
|
+
s.type == xt.CHILD && (s._$AP ?? (s._$AP = hi), s._$AQ ?? (s._$AQ = ci));
|
1187
1207
|
};
|
1188
|
-
class
|
1208
|
+
class $e extends ye {
|
1189
1209
|
constructor() {
|
1190
1210
|
super(...arguments), this._$AN = void 0;
|
1191
1211
|
}
|
1192
1212
|
_$AT(t, e, i) {
|
1193
|
-
super._$AT(t, e, i),
|
1213
|
+
super._$AT(t, e, i), be(this), this.isConnected = t._$AU;
|
1194
1214
|
}
|
1195
1215
|
_$AO(t, e = !0) {
|
1196
|
-
var i,
|
1197
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (
|
1216
|
+
var i, r;
|
1217
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (L(this, t), J(this));
|
1198
1218
|
}
|
1199
1219
|
setValue(t) {
|
1200
|
-
if (
|
1220
|
+
if (ai(this._$Ct)) this._$Ct._$AI(t, this);
|
1201
1221
|
else {
|
1202
1222
|
const e = [...this._$Ct._$AH];
|
1203
1223
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
@@ -1208,32 +1228,32 @@ class ye extends ge {
|
|
1208
1228
|
reconnected() {
|
1209
1229
|
}
|
1210
1230
|
}
|
1211
|
-
const
|
1212
|
-
let
|
1213
|
-
const
|
1231
|
+
const di = /* @__PURE__ */ new WeakMap();
|
1232
|
+
let Zt = 0;
|
1233
|
+
const ct = /* @__PURE__ */ new Map(), Kt = /* @__PURE__ */ new WeakSet(), Gt = () => new Promise((s) => requestAnimationFrame(s)), ui = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Xt = (s, t) => {
|
1214
1234
|
const e = s - t;
|
1215
1235
|
return e === 0 ? void 0 : e;
|
1216
|
-
},
|
1236
|
+
}, Jt = (s, t) => {
|
1217
1237
|
const e = s / t;
|
1218
1238
|
return e === 1 ? void 0 : e;
|
1219
|
-
},
|
1220
|
-
const e =
|
1239
|
+
}, ht = { left: (s, t) => {
|
1240
|
+
const e = Xt(s, t);
|
1221
1241
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
1222
1242
|
}, top: (s, t) => {
|
1223
|
-
const e =
|
1243
|
+
const e = Xt(s, t);
|
1224
1244
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
1225
1245
|
}, width: (s, t) => {
|
1226
1246
|
let e;
|
1227
1247
|
t === 0 && (t = 1, e = { width: "1px" });
|
1228
|
-
const i =
|
1248
|
+
const i = Jt(s, t);
|
1229
1249
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
1230
1250
|
}, height: (s, t) => {
|
1231
1251
|
let e;
|
1232
1252
|
t === 0 && (t = 1, e = { height: "1px" });
|
1233
|
-
const i =
|
1253
|
+
const i = Jt(s, t);
|
1234
1254
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
1235
|
-
} },
|
1236
|
-
class
|
1255
|
+
} }, pi = { duration: 333, easing: "ease-in-out" }, fi = ["left", "top", "width", "height", "opacity", "color", "background"], Qt = /* @__PURE__ */ new WeakMap();
|
1256
|
+
class gi extends $e {
|
1237
1257
|
constructor(t) {
|
1238
1258
|
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === xt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
1239
1259
|
this.createFinished();
|
@@ -1249,38 +1269,38 @@ class pi extends ye {
|
|
1249
1269
|
(t = this.l) == null || t.call(this), this.l = void 0;
|
1250
1270
|
}
|
1251
1271
|
render(t) {
|
1252
|
-
return
|
1272
|
+
return u;
|
1253
1273
|
}
|
1254
1274
|
getController() {
|
1255
|
-
return
|
1275
|
+
return di.get(this.u);
|
1256
1276
|
}
|
1257
1277
|
isDisabled() {
|
1258
1278
|
var t;
|
1259
1279
|
return this.options.disabled || ((t = this.getController()) == null ? void 0 : t.disabled);
|
1260
1280
|
}
|
1261
1281
|
update(t, [e]) {
|
1262
|
-
var
|
1282
|
+
var r;
|
1263
1283
|
const i = this.u === void 0;
|
1264
|
-
return i && (this.u = (
|
1284
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((n) => this.t = !0), this.element = t.element, Qt.set(this.element, this)), this.optionsOrCallback = e, (i || typeof e != "function") && this.p(e), this.render(e);
|
1265
1285
|
}
|
1266
1286
|
p(t) {
|
1267
1287
|
t = t ?? {};
|
1268
1288
|
const e = this.getController();
|
1269
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
1289
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = fi), this.options = t;
|
1270
1290
|
}
|
1271
1291
|
m() {
|
1272
1292
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
1273
|
-
return this.options.properties.forEach((
|
1274
|
-
const
|
1275
|
-
t[
|
1293
|
+
return this.options.properties.forEach((r) => {
|
1294
|
+
const n = e[r] ?? (ht[r] ? void 0 : i[r]), o = Number(n);
|
1295
|
+
t[r] = isNaN(o) ? n + "" : o;
|
1276
1296
|
}), t;
|
1277
1297
|
}
|
1278
1298
|
v() {
|
1279
1299
|
let t, e = !0;
|
1280
|
-
return this.options.guard && (t = this.options.guard(), e = ((i,
|
1300
|
+
return this.options.guard && (t = this.options.guard(), e = ((i, r) => {
|
1281
1301
|
if (Array.isArray(i)) {
|
1282
|
-
if (Array.isArray(
|
1283
|
-
} else if (
|
1302
|
+
if (Array.isArray(r) && r.length === i.length && i.every((n, o) => n === r[o])) return !1;
|
1303
|
+
} else if (r === i) return !1;
|
1284
1304
|
return !0;
|
1285
1305
|
})(t, this._)), this.h = this.t && !this.isDisabled() && !this.isAnimating() && e && this.element.isConnected, this.h && (this._ = Array.isArray(t) ? Array.from(t) : t), this.h;
|
1286
1306
|
}
|
@@ -1290,17 +1310,17 @@ class pi extends ye {
|
|
1290
1310
|
async hostUpdated() {
|
1291
1311
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
1292
1312
|
let t;
|
1293
|
-
this.prepare(), await
|
1294
|
-
const e = this.O(), i = this.j(this.options.keyframeOptions, e),
|
1313
|
+
this.prepare(), await Gt;
|
1314
|
+
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
1295
1315
|
if (this.A !== void 0) {
|
1296
|
-
const { from:
|
1297
|
-
this.log("measured", [this.A,
|
1316
|
+
const { from: n, to: o } = this.N(this.A, r, e);
|
1317
|
+
this.log("measured", [this.A, r, n, o]), t = this.calculateKeyframes(n, o);
|
1298
1318
|
} else {
|
1299
|
-
const
|
1300
|
-
if (
|
1301
|
-
|
1302
|
-
const { from: o, to: a } = this.N(
|
1303
|
-
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
1319
|
+
const n = ct.get(this.options.inId);
|
1320
|
+
if (n) {
|
1321
|
+
ct.delete(this.options.inId);
|
1322
|
+
const { from: o, to: a } = this.N(n, r, e);
|
1323
|
+
t = this.calculateKeyframes(o, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t, Zt++, t.forEach((c) => c.zIndex = Zt);
|
1304
1324
|
} else this.options.in && (t = [...this.options.in, {}]);
|
1305
1325
|
}
|
1306
1326
|
this.animate(t, i);
|
@@ -1316,14 +1336,14 @@ class pi extends ye {
|
|
1316
1336
|
}
|
1317
1337
|
async disconnected() {
|
1318
1338
|
var e;
|
1319
|
-
if (!this.h || (this.options.id !== void 0 &&
|
1320
|
-
if (this.prepare(), await
|
1339
|
+
if (!this.h || (this.options.id !== void 0 && ct.set(this.options.id, this.A), this.options.out === void 0)) return;
|
1340
|
+
if (this.prepare(), await Gt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
1321
1341
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
1322
1342
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
1323
|
-
const
|
1343
|
+
const r = this.m();
|
1324
1344
|
this.log("stabilizing out");
|
1325
|
-
const
|
1326
|
-
getComputedStyle(this.element).position !== "static" ||
|
1345
|
+
const n = this.A.left - r.left, o = this.A.top - r.top;
|
1346
|
+
getComputedStyle(this.element).position !== "static" || n === 0 && o === 0 || (this.element.style.position = "relative"), n !== 0 && (this.element.style.left = n + "px"), o !== 0 && (this.element.style.top = o + "px");
|
1327
1347
|
}
|
1328
1348
|
}
|
1329
1349
|
const t = this.j(this.options.keyframeOptions);
|
@@ -1343,56 +1363,56 @@ class pi extends ye {
|
|
1343
1363
|
O() {
|
1344
1364
|
const t = [];
|
1345
1365
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
1346
|
-
const i =
|
1366
|
+
const i = Qt.get(e);
|
1347
1367
|
i && !i.isDisabled() && i && t.push(i);
|
1348
1368
|
}
|
1349
1369
|
return t;
|
1350
1370
|
}
|
1351
1371
|
get isHostRendered() {
|
1352
|
-
const t =
|
1372
|
+
const t = Kt.has(this.u);
|
1353
1373
|
return t || this.u.updateComplete.then(() => {
|
1354
|
-
|
1374
|
+
Kt.add(this.u);
|
1355
1375
|
}), t;
|
1356
1376
|
}
|
1357
1377
|
j(t, e = this.O()) {
|
1358
|
-
const i = { ...
|
1359
|
-
return e.forEach((
|
1378
|
+
const i = { ...pi };
|
1379
|
+
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
1360
1380
|
}
|
1361
1381
|
N(t, e, i) {
|
1362
1382
|
t = { ...t }, e = { ...e };
|
1363
|
-
const
|
1364
|
-
let
|
1365
|
-
return
|
1366
|
-
a.width && (
|
1367
|
-
}), t.left !== void 0 && e.left !== void 0 && (t.left =
|
1383
|
+
const r = i.map((a) => a.animatingProperties).filter((a) => a !== void 0);
|
1384
|
+
let n = 1, o = 1;
|
1385
|
+
return r.length > 0 && (r.forEach((a) => {
|
1386
|
+
a.width && (n /= a.width), a.height && (o /= a.height);
|
1387
|
+
}), t.left !== void 0 && e.left !== void 0 && (t.left = n * t.left, e.left = n * e.left), t.top !== void 0 && e.top !== void 0 && (t.top = o * t.top, e.top = o * e.top)), { from: t, to: e };
|
1368
1388
|
}
|
1369
1389
|
calculateKeyframes(t, e, i = !1) {
|
1370
|
-
const
|
1390
|
+
const r = {}, n = {};
|
1371
1391
|
let o = !1;
|
1372
1392
|
const a = {};
|
1373
1393
|
for (const c in e) {
|
1374
1394
|
const h = t[c], l = e[c];
|
1375
|
-
if (c in
|
1376
|
-
const
|
1395
|
+
if (c in ht) {
|
1396
|
+
const d = ht[c];
|
1377
1397
|
if (h === void 0 || l === void 0) continue;
|
1378
|
-
const p =
|
1379
|
-
p.transform !== void 0 && (a[c] = p.value, o = !0,
|
1380
|
-
} else h !== l && h !== void 0 && l !== void 0 && (o = !0,
|
1398
|
+
const p = d(h, l);
|
1399
|
+
p.transform !== void 0 && (a[c] = p.value, o = !0, r.transform = `${r.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(r, p.overrideFrom));
|
1400
|
+
} else h !== l && h !== void 0 && l !== void 0 && (o = !0, r[c] = h, n[c] = l);
|
1381
1401
|
}
|
1382
|
-
return
|
1402
|
+
return r.transformOrigin = n.transformOrigin = i ? "center center" : "top left", this.animatingProperties = a, o ? [r, n] : void 0;
|
1383
1403
|
}
|
1384
1404
|
async animate(t, e = this.options.keyframeOptions) {
|
1385
1405
|
this.start(), this.frames = t;
|
1386
1406
|
let i = !1;
|
1387
1407
|
if (!this.isAnimating() && !this.isDisabled() && (this.options.onFrames && (this.frames = t = this.options.onFrames(this), this.log("modified frames", t)), t !== void 0)) {
|
1388
1408
|
this.log("animate", [t, e]), i = !0, this.webAnimation = this.element.animate(t, e);
|
1389
|
-
const
|
1390
|
-
|
1409
|
+
const r = this.getController();
|
1410
|
+
r == null || r.add(this);
|
1391
1411
|
try {
|
1392
1412
|
await this.webAnimation.finished;
|
1393
1413
|
} catch {
|
1394
1414
|
}
|
1395
|
-
|
1415
|
+
r == null || r.remove(this);
|
1396
1416
|
}
|
1397
1417
|
return this.didFinish(i), i;
|
1398
1418
|
}
|
@@ -1404,13 +1424,13 @@ class pi extends ye {
|
|
1404
1424
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
1405
1425
|
}
|
1406
1426
|
}
|
1407
|
-
const
|
1427
|
+
const vi = Et(gi), mi = { name: "question", svg: '<svg viewBox="0 0 64 64" xmlns="http://www.w3.org/2000/svg" fill="currentColor"><path fill-rule="evenodd" clip-rule="evenodd" d="M32 4C16.536 4 4 16.536 4 32C4 47.464 16.536 60 32 60C47.464 60 60 47.464 60 32C59.9827 16.5432 47.4568 4.01731 32 4ZM32 55.6923C18.9151 55.6923 8.30769 45.0849 8.30769 32C8.30769 18.9151 18.9151 8.30769 32 8.30769C45.0849 8.30769 55.6923 18.9151 55.6923 32C55.6775 45.0788 45.0788 55.6775 32 55.6923Z"/><path fill-rule="evenodd" clip-rule="evenodd" d="M31.9423 37.5723L36.311 32.9068L36.7354 32.4448C39.7555 29.1161 40.7645 27.0647 40.7645 24.5087C40.7645 23.1091 40.4251 21.7942 39.7041 20.6491C38.3044 18.3587 35.6323 16.9166 32.2816 16.9166C28.7565 16.9166 25.3125 18.7414 23.2581 21.6772L23.1201 21.8791C22.8232 22.3032 22.696 22.6849 22.696 22.9818C22.696 23.7029 23.926 25.9932 25.2833 25.9932C25.5378 25.9932 25.7922 25.9084 26.0467 25.7388C26.2588 25.5691 26.5981 25.2298 27.0647 24.7208C28.8885 22.6849 30.1185 21.9215 31.7726 21.9215C33.6813 21.9215 35.081 23.1939 35.081 24.8905C35.081 26.375 34.2751 27.7746 32.3664 29.8529L28.2523 34.2216C27.9554 34.6033 27.7857 34.9426 27.7857 35.282C27.7857 35.6213 27.9978 36.1726 28.4219 36.8937C29.0581 37.8692 29.7368 38.3782 30.4578 38.3782C30.9244 38.3782 31.3909 38.1237 31.9423 37.5723ZM30.882 47.4972C29.2278 47.4972 27.6585 44.7403 27.6585 43.6799C27.6585 42.1954 30.0761 40.6261 32.4089 40.6261C33.6389 40.6261 34.2751 41.1775 34.2751 42.3227C34.2751 44.0616 33.4692 45.843 32.4513 46.7761C31.9423 47.2427 31.4334 47.4972 30.882 47.4972Z"/></svg>' };
|
1408
1428
|
/**
|
1409
1429
|
* @license
|
1410
1430
|
* Copyright 2018 Google LLC
|
1411
1431
|
* SPDX-License-Identifier: BSD-3-Clause
|
1412
1432
|
*/
|
1413
|
-
const
|
1433
|
+
const te = Et(class extends ye {
|
1414
1434
|
constructor(s) {
|
1415
1435
|
var t;
|
1416
1436
|
if (super(s), s.type !== xt.ATTRIBUTE || s.name !== "class" || ((t = s.strings) == null ? void 0 : t.length) > 2) throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.");
|
@@ -1419,81 +1439,81 @@ const Qt = At(class extends ge {
|
|
1419
1439
|
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
1420
1440
|
}
|
1421
1441
|
update(s, [t]) {
|
1422
|
-
var i,
|
1442
|
+
var i, r;
|
1423
1443
|
if (this.st === void 0) {
|
1424
|
-
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((
|
1425
|
-
for (const
|
1444
|
+
this.st = /* @__PURE__ */ new Set(), s.strings !== void 0 && (this.nt = new Set(s.strings.join(" ").split(/\s/).filter((n) => n !== "")));
|
1445
|
+
for (const n in t) t[n] && !((i = this.nt) != null && i.has(n)) && this.st.add(n);
|
1426
1446
|
return this.render(t);
|
1427
1447
|
}
|
1428
1448
|
const e = s.element.classList;
|
1429
|
-
for (const
|
1430
|
-
for (const
|
1431
|
-
const o = !!t[
|
1432
|
-
o === this.st.has(
|
1449
|
+
for (const n of this.st) n in t || (e.remove(n), this.st.delete(n));
|
1450
|
+
for (const n in t) {
|
1451
|
+
const o = !!t[n];
|
1452
|
+
o === this.st.has(n) || (r = this.nt) != null && r.has(n) || (o ? (e.add(n), this.st.add(n)) : (e.remove(n), this.st.delete(n)));
|
1433
1453
|
}
|
1434
1454
|
return P;
|
1435
1455
|
}
|
1436
|
-
}),
|
1456
|
+
}), y = (s, t, e) => {
|
1437
1457
|
s && e.style.setProperty(t, s);
|
1438
|
-
},
|
1439
|
-
var e, i,
|
1440
|
-
|
1458
|
+
}, _e = (s, t) => {
|
1459
|
+
var e, i, r, n, o, a, c, h, l;
|
1460
|
+
y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), y(
|
1441
1461
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
1442
1462
|
"--text-on-primary-background",
|
1443
1463
|
t
|
1444
|
-
),
|
1445
|
-
(
|
1464
|
+
), y(
|
1465
|
+
(r = s.colors) == null ? void 0 : r.secondaryBackground,
|
1446
1466
|
"--secondary-background",
|
1447
1467
|
t
|
1448
|
-
),
|
1449
|
-
(
|
1468
|
+
), y(
|
1469
|
+
(n = s.colors) == null ? void 0 : n.textOnSecondaryBackground,
|
1450
1470
|
"--text-on-secondary-background",
|
1451
1471
|
t
|
1452
|
-
),
|
1472
|
+
), y(
|
1453
1473
|
(o = s.colors) == null ? void 0 : o.interactiveDestructiveBackground,
|
1454
1474
|
"--destructive-color",
|
1455
1475
|
t
|
1456
|
-
),
|
1476
|
+
), y(
|
1457
1477
|
(a = s.colors) == null ? void 0 : a.interactiveTextOnDestructiveBackground,
|
1458
1478
|
"--text-on-destructive-color",
|
1459
1479
|
t
|
1460
|
-
),
|
1480
|
+
), y(
|
1461
1481
|
(c = s.colors) == null ? void 0 : c.interactivePrimaryBackground,
|
1462
1482
|
"--interactive-primary-background",
|
1463
1483
|
t
|
1464
|
-
),
|
1484
|
+
), y(
|
1465
1485
|
(h = s.colors) == null ? void 0 : h.interactiveTextOnPrimaryBackground,
|
1466
1486
|
"--interactive-text-on-primary-background",
|
1467
1487
|
t
|
1468
|
-
),
|
1488
|
+
), y((l = s.colors) == null ? void 0 : l.focusColor, "--focus-color", t);
|
1469
1489
|
};
|
1470
1490
|
/**
|
1471
1491
|
* @license
|
1472
1492
|
* Copyright 2020 Google LLC
|
1473
1493
|
* SPDX-License-Identifier: BSD-3-Clause
|
1474
1494
|
*/
|
1475
|
-
const
|
1476
|
-
class
|
1495
|
+
const we = () => new yi();
|
1496
|
+
class yi {
|
1477
1497
|
}
|
1478
|
-
const
|
1498
|
+
const lt = /* @__PURE__ */ new WeakMap(), Ae = Et(class extends $e {
|
1479
1499
|
render(s) {
|
1480
|
-
return
|
1500
|
+
return u;
|
1481
1501
|
}
|
1482
1502
|
update(s, [t]) {
|
1483
1503
|
var i;
|
1484
1504
|
const e = t !== this.Y;
|
1485
|
-
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)),
|
1505
|
+
return e && this.Y !== void 0 && this.rt(void 0), (e || this.lt !== this.ct) && (this.Y = t, this.ht = (i = s.options) == null ? void 0 : i.host, this.rt(this.ct = s.element)), u;
|
1486
1506
|
}
|
1487
1507
|
rt(s) {
|
1488
1508
|
if (this.isConnected || (s = void 0), typeof this.Y == "function") {
|
1489
1509
|
const t = this.ht ?? globalThis;
|
1490
|
-
let e =
|
1491
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
1510
|
+
let e = lt.get(t);
|
1511
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), lt.set(t, e)), e.get(this.Y) !== void 0 && this.Y.call(this.ht, void 0), e.set(this.Y, s), s !== void 0 && this.Y.call(this.ht, s);
|
1492
1512
|
} else this.Y.value = s;
|
1493
1513
|
}
|
1494
1514
|
get lt() {
|
1495
1515
|
var s, t;
|
1496
|
-
return typeof this.Y == "function" ? (s =
|
1516
|
+
return typeof this.Y == "function" ? (s = lt.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.Y) : (t = this.Y) == null ? void 0 : t.value;
|
1497
1517
|
}
|
1498
1518
|
disconnected() {
|
1499
1519
|
this.lt === this.ct && this.rt(void 0);
|
@@ -1502,14 +1522,14 @@ const ht = /* @__PURE__ */ new WeakMap(), $e = At(class extends ye {
|
|
1502
1522
|
this.rt(this.ct);
|
1503
1523
|
}
|
1504
1524
|
});
|
1505
|
-
var
|
1506
|
-
for (var
|
1507
|
-
(o = s[
|
1508
|
-
return
|
1525
|
+
var bi = Object.defineProperty, Y = (s, t, e, i) => {
|
1526
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
1527
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
1528
|
+
return r && bi(t, e, r), r;
|
1509
1529
|
};
|
1510
|
-
const
|
1530
|
+
const Pt = class Pt extends m {
|
1511
1531
|
constructor() {
|
1512
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
1532
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = we(), this.widgetActive$ = new me(!1), this.componentIsDestroyed$ = new At();
|
1513
1533
|
}
|
1514
1534
|
async connectedCallback() {
|
1515
1535
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
@@ -1544,28 +1564,28 @@ const Et = class Et extends y {
|
|
1544
1564
|
}
|
1545
1565
|
_applyBranding() {
|
1546
1566
|
var t;
|
1547
|
-
(t = this.application) != null && t.settings &&
|
1567
|
+
(t = this.application) != null && t.settings && _e(this.application.settings.branding, this);
|
1548
1568
|
}
|
1549
1569
|
async _renderSymbol() {
|
1550
1570
|
var a, c, h;
|
1551
1571
|
const t = (a = this.application) == null ? void 0 : a.branding(), e = (c = t == null ? void 0 : t.graphics) == null ? void 0 : c.trigger;
|
1552
1572
|
if (e)
|
1553
|
-
return
|
1573
|
+
return E` <img src=${e} class="trigger-icon" alt="" /> `;
|
1554
1574
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
1555
1575
|
if (!i)
|
1556
|
-
return
|
1557
|
-
const
|
1558
|
-
switch (
|
1576
|
+
return u;
|
1577
|
+
const r = async (l) => mi, { type: n, content: o } = i;
|
1578
|
+
switch (n) {
|
1559
1579
|
case "Telia": {
|
1560
|
-
const l = await
|
1561
|
-
return l ?
|
1580
|
+
const l = await r();
|
1581
|
+
return l ? E`<telia-icon
|
1562
1582
|
class="trigger-icon"
|
1563
1583
|
svg=${l.svg}
|
1564
1584
|
size="lg"
|
1565
|
-
></telia-icon>` :
|
1585
|
+
></telia-icon>` : u;
|
1566
1586
|
}
|
1567
1587
|
default:
|
1568
|
-
return
|
1588
|
+
return u;
|
1569
1589
|
}
|
1570
1590
|
}
|
1571
1591
|
hideTrigger() {
|
@@ -1575,33 +1595,33 @@ const Et = class Et extends y {
|
|
1575
1595
|
this.triggerVisible = !0;
|
1576
1596
|
}
|
1577
1597
|
render() {
|
1578
|
-
var t, e, i,
|
1579
|
-
return
|
1580
|
-
class=${
|
1598
|
+
var t, e, i, r;
|
1599
|
+
return E`<div
|
1600
|
+
class=${te({
|
1581
1601
|
"trigger-container": !0,
|
1582
1602
|
hidden: !this.triggerVisible
|
1583
1603
|
})}
|
1584
|
-
${
|
1604
|
+
${Ae(this.containerRef)}
|
1585
1605
|
>
|
1586
|
-
${!this.active && ((
|
1606
|
+
${!this.active && ((r = (i = (e = (t = this.application) == null ? void 0 : t.settings) == null ? void 0 : e.branding) == null ? void 0 : i.other) != null && r.showButtonLabel) ? E`
|
1587
1607
|
<button
|
1588
1608
|
label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
1589
1609
|
class="trigger-label"
|
1590
1610
|
@click=${this.toggleActive}
|
1591
|
-
${
|
1611
|
+
${vi({
|
1592
1612
|
keyframeOptions: {},
|
1593
|
-
in:
|
1613
|
+
in: ui,
|
1594
1614
|
stabilizeOut: !0,
|
1595
1615
|
skipInitial: !1
|
1596
1616
|
})}
|
1597
1617
|
>
|
1598
1618
|
${this.application.settings.branding.other.buttonLabelText}
|
1599
1619
|
</button>
|
1600
|
-
` :
|
1620
|
+
` : u}
|
1601
1621
|
|
1602
1622
|
<button
|
1603
1623
|
label="Widget trigger"
|
1604
|
-
class=${
|
1624
|
+
class=${te({
|
1605
1625
|
trigger: !0,
|
1606
1626
|
active: this.active,
|
1607
1627
|
rendered: this.loaded
|
@@ -1640,7 +1660,7 @@ const Et = class Et extends y {
|
|
1640
1660
|
</div>`;
|
1641
1661
|
}
|
1642
1662
|
};
|
1643
|
-
|
1663
|
+
Pt.styles = [
|
1644
1664
|
O`
|
1645
1665
|
:host {
|
1646
1666
|
--voca-rem-multiplier: 0.625;
|
@@ -1772,7 +1792,7 @@ Et.styles = [
|
|
1772
1792
|
}
|
1773
1793
|
`
|
1774
1794
|
];
|
1775
|
-
let $ =
|
1795
|
+
let $ = Pt;
|
1776
1796
|
Y([
|
1777
1797
|
g({ attribute: !1 })
|
1778
1798
|
], $.prototype, "application");
|
@@ -1788,27 +1808,27 @@ Y([
|
|
1788
1808
|
Y([
|
1789
1809
|
j()
|
1790
1810
|
], $.prototype, "icon");
|
1791
|
-
var
|
1792
|
-
for (var
|
1793
|
-
(o = s[
|
1794
|
-
return
|
1811
|
+
var $i = Object.defineProperty, x = (s, t, e, i) => {
|
1812
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
1813
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
1814
|
+
return r && $i(t, e, r), r;
|
1795
1815
|
};
|
1796
|
-
const
|
1816
|
+
const xe = (s) => {
|
1797
1817
|
const e = class e extends s {
|
1798
1818
|
constructor() {
|
1799
1819
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
1800
1820
|
}
|
1801
|
-
writeProperties(
|
1802
|
-
this.properties =
|
1821
|
+
writeProperties(r) {
|
1822
|
+
this.properties = r;
|
1803
1823
|
}
|
1804
|
-
writeLayout(
|
1805
|
-
this.layout =
|
1824
|
+
writeLayout(r) {
|
1825
|
+
this.layout = r;
|
1806
1826
|
}
|
1807
|
-
writeContext(
|
1808
|
-
this.context =
|
1827
|
+
writeContext(r) {
|
1828
|
+
this.context = r;
|
1809
1829
|
}
|
1810
|
-
addChild(
|
1811
|
-
|
1830
|
+
addChild(r) {
|
1831
|
+
r.parent = this, this.nodes.push(r);
|
1812
1832
|
}
|
1813
1833
|
connectedCallback() {
|
1814
1834
|
super.connectedCallback(), this.renderRoot.host.style.setProperty(
|
@@ -1834,41 +1854,41 @@ const _e = (s) => {
|
|
1834
1854
|
`
|
1835
1855
|
];
|
1836
1856
|
let t = e;
|
1837
|
-
return
|
1857
|
+
return x([
|
1838
1858
|
g()
|
1839
|
-
], t.prototype, "properties"),
|
1859
|
+
], t.prototype, "properties"), x([
|
1840
1860
|
g()
|
1841
|
-
], t.prototype, "context"),
|
1861
|
+
], t.prototype, "context"), x([
|
1842
1862
|
g()
|
1843
|
-
], t.prototype, "layout"),
|
1863
|
+
], t.prototype, "layout"), x([
|
1844
1864
|
g()
|
1845
|
-
], t.prototype, "name"),
|
1865
|
+
], t.prototype, "name"), x([
|
1846
1866
|
g()
|
1847
|
-
], t.prototype, "type"),
|
1867
|
+
], t.prototype, "type"), x([
|
1848
1868
|
g({ attribute: !1 })
|
1849
|
-
], t.prototype, "application"),
|
1869
|
+
], t.prototype, "application"), x([
|
1850
1870
|
g({ attribute: !1 })
|
1851
1871
|
], t.prototype, "parent"), t;
|
1852
|
-
},
|
1872
|
+
}, Ot = class Ot extends xe(m) {
|
1853
1873
|
render() {
|
1854
|
-
return
|
1874
|
+
return E`Non resolved component`;
|
1855
1875
|
}
|
1856
1876
|
};
|
1857
|
-
|
1877
|
+
Ot.styles = [
|
1858
1878
|
O`
|
1859
1879
|
:host {
|
1860
1880
|
display: block;
|
1861
1881
|
}
|
1862
1882
|
`
|
1863
1883
|
];
|
1864
|
-
let yt =
|
1865
|
-
var
|
1884
|
+
let yt = Ot;
|
1885
|
+
var D = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(D || {});
|
1866
1886
|
/**
|
1867
1887
|
* @license
|
1868
1888
|
* Copyright 2021 Google LLC
|
1869
1889
|
* SPDX-License-Identifier: BSD-3-Clause
|
1870
1890
|
*/
|
1871
|
-
let
|
1891
|
+
let _i = class extends Event {
|
1872
1892
|
constructor(t, e, i) {
|
1873
1893
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = i ?? !1;
|
1874
1894
|
}
|
@@ -1883,7 +1903,7 @@ let vi = class extends Event {
|
|
1883
1903
|
* Copyright 2021 Google LLC
|
1884
1904
|
* SPDX-License-Identifier: BSD-3-Clause
|
1885
1905
|
*/
|
1886
|
-
class
|
1906
|
+
class wi {
|
1887
1907
|
get value() {
|
1888
1908
|
return this.o;
|
1889
1909
|
}
|
@@ -1904,8 +1924,8 @@ class $i {
|
|
1904
1924
|
this.subscriptions.has(t) || this.subscriptions.set(t, { disposer: () => {
|
1905
1925
|
this.subscriptions.delete(t);
|
1906
1926
|
}, consumerHost: e });
|
1907
|
-
const { disposer:
|
1908
|
-
t(this.value,
|
1927
|
+
const { disposer: r } = this.subscriptions.get(t);
|
1928
|
+
t(this.value, r);
|
1909
1929
|
}
|
1910
1930
|
clearCallbacks() {
|
1911
1931
|
this.subscriptions.clear();
|
@@ -1916,14 +1936,14 @@ class $i {
|
|
1916
1936
|
* Copyright 2021 Google LLC
|
1917
1937
|
* SPDX-License-Identifier: BSD-3-Clause
|
1918
1938
|
*/
|
1919
|
-
let
|
1939
|
+
let Ai = class extends Event {
|
1920
1940
|
constructor(t) {
|
1921
1941
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t;
|
1922
1942
|
}
|
1923
1943
|
};
|
1924
|
-
class
|
1944
|
+
class ee extends wi {
|
1925
1945
|
constructor(t, e, i) {
|
1926
|
-
var
|
1946
|
+
var r, n;
|
1927
1947
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (o) => {
|
1928
1948
|
const a = o.composedPath()[0];
|
1929
1949
|
o.context === this.context && a !== this.host && (o.stopPropagation(), this.addCallback(o.callback, a, o.subscribe));
|
@@ -1931,15 +1951,15 @@ class te extends $i {
|
|
1931
1951
|
const a = o.composedPath()[0];
|
1932
1952
|
if (o.context !== this.context || a === this.host) return;
|
1933
1953
|
const c = /* @__PURE__ */ new Set();
|
1934
|
-
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new
|
1954
|
+
for (const [h, { consumerHost: l }] of this.subscriptions) c.has(h) || (c.add(h), l.dispatchEvent(new _i(this.context, h, !0)));
|
1935
1955
|
o.stopPropagation();
|
1936
|
-
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (
|
1956
|
+
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (n = (r = this.host).addController) == null || n.call(r, this);
|
1937
1957
|
}
|
1938
1958
|
attachListeners() {
|
1939
1959
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
1940
1960
|
}
|
1941
1961
|
hostConnected() {
|
1942
|
-
this.host.dispatchEvent(new
|
1962
|
+
this.host.dispatchEvent(new Ai(this.context));
|
1943
1963
|
}
|
1944
1964
|
}
|
1945
1965
|
/**
|
@@ -1947,51 +1967,51 @@ class te extends $i {
|
|
1947
1967
|
* Copyright 2017 Google LLC
|
1948
1968
|
* SPDX-License-Identifier: BSD-3-Clause
|
1949
1969
|
*/
|
1950
|
-
function
|
1970
|
+
function xi({ context: s }) {
|
1951
1971
|
return (t, e) => {
|
1952
1972
|
const i = /* @__PURE__ */ new WeakMap();
|
1953
1973
|
if (typeof e == "object") return e.addInitializer(function() {
|
1954
|
-
i.set(this, new
|
1974
|
+
i.set(this, new ee(this, { context: s }));
|
1955
1975
|
}), { get() {
|
1956
1976
|
return t.get.call(this);
|
1957
|
-
}, set(
|
1958
|
-
var
|
1959
|
-
return (
|
1960
|
-
}, init(
|
1961
|
-
var
|
1962
|
-
return (
|
1977
|
+
}, set(r) {
|
1978
|
+
var n;
|
1979
|
+
return (n = i.get(this)) == null || n.setValue(r), t.set.call(this, r);
|
1980
|
+
}, init(r) {
|
1981
|
+
var n;
|
1982
|
+
return (n = i.get(this)) == null || n.setValue(r), r;
|
1963
1983
|
} };
|
1964
1984
|
{
|
1965
1985
|
t.constructor.addInitializer((o) => {
|
1966
|
-
i.set(o, new
|
1986
|
+
i.set(o, new ee(o, { context: s }));
|
1967
1987
|
});
|
1968
|
-
const
|
1969
|
-
let
|
1970
|
-
if (
|
1988
|
+
const r = Object.getOwnPropertyDescriptor(t, e);
|
1989
|
+
let n;
|
1990
|
+
if (r === void 0) {
|
1971
1991
|
const o = /* @__PURE__ */ new WeakMap();
|
1972
|
-
|
1992
|
+
n = { get() {
|
1973
1993
|
return o.get(this);
|
1974
1994
|
}, set(a) {
|
1975
1995
|
i.get(this).setValue(a), o.set(this, a);
|
1976
1996
|
}, configurable: !0, enumerable: !0 };
|
1977
1997
|
} else {
|
1978
|
-
const o =
|
1979
|
-
|
1998
|
+
const o = r.set;
|
1999
|
+
n = { ...r, set(a) {
|
1980
2000
|
i.get(this).setValue(a), o == null || o.call(this, a);
|
1981
2001
|
} };
|
1982
2002
|
}
|
1983
|
-
return void Object.defineProperty(t, e,
|
2003
|
+
return void Object.defineProperty(t, e, n);
|
1984
2004
|
}
|
1985
2005
|
};
|
1986
2006
|
}
|
1987
|
-
var
|
1988
|
-
for (var
|
1989
|
-
(o = s[
|
1990
|
-
return
|
2007
|
+
var Ei = Object.defineProperty, Ee = (s, t, e, i) => {
|
2008
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
2009
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
2010
|
+
return r && Ei(t, e, r), r;
|
1991
2011
|
};
|
1992
|
-
const
|
2012
|
+
const Ci = "application", kt = class kt extends m {
|
1993
2013
|
constructor() {
|
1994
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
2014
|
+
super(...arguments), this.nodes = [], this.wrapperRef = we(), this.fullscreen = !1, this.isReady = new me(!1);
|
1995
2015
|
}
|
1996
2016
|
addChild(t) {
|
1997
2017
|
t.parent = this, this.nodes.push(t);
|
@@ -2000,28 +2020,28 @@ const Ai = "application", Ot = class Ot extends y {
|
|
2000
2020
|
if (!this.wrapperRef.value)
|
2001
2021
|
return;
|
2002
2022
|
const t = this.application.settings;
|
2003
|
-
t != null && t.branding &&
|
2023
|
+
t != null && t.branding && _e(t.branding, this.wrapperRef.value);
|
2004
2024
|
}
|
2005
2025
|
applyStyles() {
|
2006
2026
|
if (!this.wrapperRef.value)
|
2007
2027
|
return;
|
2008
2028
|
const t = this.application.styles(), e = this.wrapperRef.value;
|
2009
|
-
Object.entries(t).forEach(([i,
|
2010
|
-
e.style.setProperty(`--${i}`,
|
2029
|
+
Object.entries(t).forEach(([i, r]) => {
|
2030
|
+
e.style.setProperty(`--${i}`, r);
|
2011
2031
|
});
|
2012
2032
|
}
|
2013
2033
|
firstUpdated(t) {
|
2014
2034
|
this.applyBranding(), this.applyStyles();
|
2015
2035
|
}
|
2016
2036
|
render() {
|
2017
|
-
var i,
|
2037
|
+
var i, r;
|
2018
2038
|
const t = this.application.settings.components.conversation;
|
2019
|
-
return ((
|
2020
|
-
${
|
2039
|
+
return ((r = (i = t == null ? void 0 : t.properties) == null ? void 0 : i.chat) == null ? void 0 : r.isThirdPartyWidget) ? this.renderRoot.host.classList.add("third-party") : this.application.renderStrategy === D.Trigger && (this.renderRoot.host.classList.add("floating"), this.application.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.application.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right")), this.application.fullscreen && this.renderRoot.host.classList.add("fullscreen"), window.self !== window.top && this.renderRoot.host.classList.add("embedded"), E`<div class="widget-container" ${Ae(this.wrapperRef)}>
|
2040
|
+
${de(this.nodes, (n) => n)}
|
2021
2041
|
</div>`;
|
2022
2042
|
}
|
2023
2043
|
};
|
2024
|
-
|
2044
|
+
kt.styles = O`
|
2025
2045
|
:host {
|
2026
2046
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
2027
2047
|
--spacing-xs: 0.2rem;
|
@@ -2174,14 +2194,14 @@ Ot.styles = O`
|
|
2174
2194
|
animation: none;
|
2175
2195
|
}
|
2176
2196
|
`;
|
2177
|
-
let
|
2178
|
-
|
2197
|
+
let z = kt;
|
2198
|
+
Ee([
|
2179
2199
|
g({ attribute: !0 })
|
2180
|
-
],
|
2181
|
-
|
2200
|
+
], z.prototype, "fullscreen");
|
2201
|
+
Ee([
|
2182
2202
|
g({ attribute: !1 }),
|
2183
|
-
|
2184
|
-
],
|
2203
|
+
xi({ context: Ci })
|
2204
|
+
], z.prototype, "application");
|
2185
2205
|
const Q = class Q {
|
2186
2206
|
// TODO:
|
2187
2207
|
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
@@ -2193,14 +2213,14 @@ const Q = class Q {
|
|
2193
2213
|
return i ? {
|
2194
2214
|
id: i.id,
|
2195
2215
|
triggers: i.triggers || [],
|
2196
|
-
apps: (i.widgets || []).map((
|
2197
|
-
let
|
2198
|
-
|
2199
|
-
const o =
|
2216
|
+
apps: (i.widgets || []).map((r) => {
|
2217
|
+
let n = D.Trigger;
|
2218
|
+
r.renderStrategy.toLowerCase() === "inline" && (n = D.Inline);
|
2219
|
+
const o = r.widgetId ? r.widgetId : r.id, a = typeof r.autoActivate == "boolean" ? r.autoActivate : !1, c = typeof r.anchor == "string" ? r.anchor : "BottomRight", h = typeof r.triggerIcon == "string" ? r.triggerIcon : "question";
|
2200
2220
|
return {
|
2201
2221
|
id: o,
|
2202
2222
|
widgetId: o,
|
2203
|
-
renderStrategy:
|
2223
|
+
renderStrategy: n,
|
2204
2224
|
autoActivate: a,
|
2205
2225
|
anchor: c,
|
2206
2226
|
triggerIcon: {
|
@@ -2220,13 +2240,13 @@ const Q = class Q {
|
|
2220
2240
|
}
|
2221
2241
|
};
|
2222
2242
|
Q.endpoint = "https://widgets.ace.teliacompany.net/api";
|
2223
|
-
let
|
2224
|
-
var
|
2225
|
-
for (var
|
2226
|
-
(o = s[
|
2227
|
-
return
|
2243
|
+
let ie = Q;
|
2244
|
+
var Si = Object.defineProperty, Ct = (s, t, e, i) => {
|
2245
|
+
for (var r = void 0, n = s.length - 1, o; n >= 0; n--)
|
2246
|
+
(o = s[n]) && (r = o(t, e, r) || r);
|
2247
|
+
return r && Si(t, e, r), r;
|
2228
2248
|
};
|
2229
|
-
const
|
2249
|
+
const Tt = class Tt extends m {
|
2230
2250
|
constructor() {
|
2231
2251
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
2232
2252
|
}
|
@@ -2250,22 +2270,22 @@ const kt = class kt extends y {
|
|
2250
2270
|
}
|
2251
2271
|
render() {
|
2252
2272
|
if (!this.widget || this.status !== "activated")
|
2253
|
-
return
|
2254
|
-
if (this.widget.renderStrategy ===
|
2273
|
+
return u;
|
2274
|
+
if (this.widget.renderStrategy === D.Trigger) {
|
2255
2275
|
const t = new $();
|
2256
2276
|
return t.application = this.widget, t;
|
2257
2277
|
}
|
2258
2278
|
return this.widget.render();
|
2259
2279
|
}
|
2260
2280
|
};
|
2261
|
-
|
2281
|
+
Tt.styles = [
|
2262
2282
|
O`
|
2263
2283
|
:host {
|
2264
2284
|
display: block;
|
2265
2285
|
}
|
2266
2286
|
`
|
2267
2287
|
];
|
2268
|
-
let U =
|
2288
|
+
let U = Tt;
|
2269
2289
|
Ct([
|
2270
2290
|
g({ attribute: !0 })
|
2271
2291
|
], U.prototype, "name");
|
@@ -2278,31 +2298,31 @@ Ct([
|
|
2278
2298
|
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", X);
|
2279
2299
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
|
2280
2300
|
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", yt);
|
2281
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
2301
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", z);
|
2282
2302
|
customElements.get("ace-widget") || customElements.define("ace-widget", U);
|
2283
|
-
const
|
2303
|
+
const Pi = (s) => {
|
2284
2304
|
const t = {};
|
2285
2305
|
return Object.keys(s).forEach((e) => {
|
2286
2306
|
e.indexOf("css-") > -1 && (t[e] = s[e]);
|
2287
2307
|
}), t;
|
2288
|
-
},
|
2289
|
-
const e =
|
2290
|
-
Object.entries(e).forEach(([i,
|
2291
|
-
s.style.setProperty(i.replace("css-", ""),
|
2308
|
+
}, Oi = (s, t) => {
|
2309
|
+
const e = Pi(t);
|
2310
|
+
Object.entries(e).forEach(([i, r]) => {
|
2311
|
+
s.style.setProperty(i.replace("css-", ""), r);
|
2292
2312
|
});
|
2293
|
-
},
|
2313
|
+
}, Rt = class Rt extends xe(m) {
|
2294
2314
|
constructor() {
|
2295
2315
|
super(...arguments), this.nodes = [];
|
2296
2316
|
}
|
2297
2317
|
render() {
|
2298
2318
|
var t;
|
2299
|
-
return
|
2319
|
+
return Oi(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
2300
2320
|
"--columns",
|
2301
2321
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
2302
|
-
),
|
2322
|
+
), E`${de(this.nodes, (e) => e)}`;
|
2303
2323
|
}
|
2304
2324
|
};
|
2305
|
-
|
2325
|
+
Rt.styles = [
|
2306
2326
|
O`
|
2307
2327
|
:host {
|
2308
2328
|
height: 100%;
|
@@ -2315,8 +2335,8 @@ Tt.styles = [
|
|
2315
2335
|
}
|
2316
2336
|
`
|
2317
2337
|
];
|
2318
|
-
let
|
2338
|
+
let se = Rt;
|
2319
2339
|
export {
|
2320
|
-
|
2321
|
-
|
2340
|
+
se as Area,
|
2341
|
+
se as default
|
2322
2342
|
};
|