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