@telia-ace/widget-components-area-flamingo 1.1.120-rc.30 → 1.1.120-rc.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{area-BI13O6JC.mjs → area-C9GQ0si4.mjs} +294 -331
- package/{area-BLhMGjy7.js → area-DyeEuDGW.js} +33 -33
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/package.json +2 -2
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
5
|
*/
|
|
6
|
-
const
|
|
7
|
-
let
|
|
6
|
+
const W = globalThis, mt = W.ShadowRoot && (W.ShadyCSS === void 0 || W.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, yt = Symbol(), Rt = /* @__PURE__ */ new WeakMap();
|
|
7
|
+
let se = class {
|
|
8
8
|
constructor(t, e, i) {
|
|
9
|
-
if (this._$cssResult$ = !0, i !==
|
|
9
|
+
if (this._$cssResult$ = !0, i !== yt) 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() {
|
|
13
13
|
let t = this.o;
|
|
14
14
|
const e = this.t;
|
|
15
|
-
if (
|
|
15
|
+
if (mt && 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 oe = class {
|
|
|
22
22
|
return this.cssText;
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const
|
|
25
|
+
const xe = (s) => new se(typeof s == "string" ? s : s + "", void 0, yt), k = (s, ...t) => {
|
|
26
26
|
const e = s.length === 1 ? s[0] : t.reduce((i, r, o) => i + ((n) => {
|
|
27
27
|
if (n._$cssResult$ === !0) return n.cssText;
|
|
28
28
|
if (typeof n == "number") return n;
|
|
29
29
|
throw Error("Value passed to 'css' function must be a 'css' function result: " + n + ". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.");
|
|
30
30
|
})(r) + s[o + 1], s[0]);
|
|
31
|
-
return new
|
|
32
|
-
},
|
|
33
|
-
if (
|
|
31
|
+
return new se(e, s, yt);
|
|
32
|
+
}, Ae = (s, t) => {
|
|
33
|
+
if (mt) 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"), r =
|
|
35
|
+
const i = document.createElement("style"), r = W.litNonce;
|
|
36
36
|
r !== void 0 && i.setAttribute("nonce", r), i.textContent = e.cssText, s.appendChild(i);
|
|
37
37
|
}
|
|
38
|
-
},
|
|
38
|
+
}, Mt = mt ? (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: Ee, getOwnPropertyDescriptor: Se, getOwnPropertyNames: Pe, getOwnPropertySymbols: Oe, getPrototypeOf: ke } = Object, w = globalThis, Ut = w.trustedTypes, Te = Ut ? Ut.emptyScript : "", et = w.reactiveElementPolyfillSupport, L = (s, t) => s, Z = { 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
|
+
} }, bt = (s, t) => !Ce(s, t), jt = { attribute: !0, type: String, converter: Z, reflect: !1, useDefault: !1, hasChanged: bt };
|
|
77
77
|
Symbol.metadata ?? (Symbol.metadata = Symbol("metadata")), w.litPropertyMetadata ?? (w.litPropertyMetadata = /* @__PURE__ */ new WeakMap());
|
|
78
78
|
let R = class extends HTMLElement {
|
|
79
79
|
static addInitializer(t) {
|
|
@@ -82,14 +82,14 @@ let R = 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 = jt) {
|
|
86
86
|
if (e.state && (e.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(t) && ((e = Object.create(e)).wrapped = !0), this.elementProperties.set(t, e), !e.noAccessor) {
|
|
87
87
|
const i = Symbol(), r = this.getPropertyDescriptor(t, i, e);
|
|
88
|
-
r !== void 0 &&
|
|
88
|
+
r !== void 0 && Ee(this.prototype, t, r);
|
|
89
89
|
}
|
|
90
90
|
}
|
|
91
91
|
static getPropertyDescriptor(t, e, i) {
|
|
92
|
-
const { get: r, set: o } =
|
|
92
|
+
const { get: r, set: o } = Se(this.prototype, t) ?? { get() {
|
|
93
93
|
return this[e];
|
|
94
94
|
}, set(n) {
|
|
95
95
|
this[e] = n;
|
|
@@ -100,17 +100,17 @@ let R = class extends HTMLElement {
|
|
|
100
100
|
}, configurable: !0, enumerable: !0 };
|
|
101
101
|
}
|
|
102
102
|
static getPropertyOptions(t) {
|
|
103
|
-
return this.elementProperties.get(t) ??
|
|
103
|
+
return this.elementProperties.get(t) ?? jt;
|
|
104
104
|
}
|
|
105
105
|
static _$Ei() {
|
|
106
106
|
if (this.hasOwnProperty(L("elementProperties"))) return;
|
|
107
|
-
const t =
|
|
107
|
+
const t = ke(this);
|
|
108
108
|
t.finalize(), t.l !== void 0 && (this.l = [...t.l]), this.elementProperties = new Map(t.elementProperties);
|
|
109
109
|
}
|
|
110
110
|
static finalize() {
|
|
111
111
|
if (this.hasOwnProperty(L("finalized"))) return;
|
|
112
112
|
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(L("properties"))) {
|
|
113
|
-
const e = this.properties, i = [...
|
|
113
|
+
const e = this.properties, i = [...Pe(e), ...Oe(e)];
|
|
114
114
|
for (const r of i) this.createProperty(r, e[r]);
|
|
115
115
|
}
|
|
116
116
|
const t = this[Symbol.metadata];
|
|
@@ -129,8 +129,8 @@ let R = class extends HTMLElement {
|
|
|
129
129
|
const e = [];
|
|
130
130
|
if (Array.isArray(t)) {
|
|
131
131
|
const i = new Set(t.flat(1 / 0).reverse());
|
|
132
|
-
for (const r of i) e.unshift(
|
|
133
|
-
} else t !== void 0 && e.push(
|
|
132
|
+
for (const r of i) e.unshift(Mt(r));
|
|
133
|
+
} else t !== void 0 && e.push(Mt(t));
|
|
134
134
|
return e;
|
|
135
135
|
}
|
|
136
136
|
static _$Eu(t, e) {
|
|
@@ -159,7 +159,7 @@ let R = class extends HTMLElement {
|
|
|
159
159
|
}
|
|
160
160
|
createRenderRoot() {
|
|
161
161
|
const t = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
162
|
-
return
|
|
162
|
+
return Ae(t, this.constructor.elementStyles), t;
|
|
163
163
|
}
|
|
164
164
|
connectedCallback() {
|
|
165
165
|
var t;
|
|
@@ -184,7 +184,7 @@ let R = class extends HTMLElement {
|
|
|
184
184
|
var o;
|
|
185
185
|
const i = this.constructor.elementProperties.get(t), r = this.constructor._$Eu(t, i);
|
|
186
186
|
if (r !== void 0 && i.reflect === !0) {
|
|
187
|
-
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter :
|
|
187
|
+
const n = (((o = i.converter) == null ? void 0 : o.toAttribute) !== void 0 ? i.converter : Z).toAttribute(e, i.type);
|
|
188
188
|
this._$Em = t, n == null ? this.removeAttribute(r) : this.setAttribute(r, n), this._$Em = null;
|
|
189
189
|
}
|
|
190
190
|
}
|
|
@@ -192,15 +192,17 @@ let R = class extends HTMLElement {
|
|
|
192
192
|
var o, n;
|
|
193
193
|
const i = this.constructor, r = i._$Eh.get(t);
|
|
194
194
|
if (r !== void 0 && this._$Em !== r) {
|
|
195
|
-
const a = i.getPropertyOptions(r), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter :
|
|
196
|
-
this._$Em = r
|
|
195
|
+
const a = i.getPropertyOptions(r), c = typeof a.converter == "function" ? { fromAttribute: a.converter } : ((o = a.converter) == null ? void 0 : o.fromAttribute) !== void 0 ? a.converter : Z;
|
|
196
|
+
this._$Em = r;
|
|
197
|
+
const h = c.fromAttribute(e, a.type);
|
|
198
|
+
this[r] = h ?? ((n = this._$Ej) == null ? void 0 : n.get(r)) ?? h, this._$Em = null;
|
|
197
199
|
}
|
|
198
200
|
}
|
|
199
201
|
requestUpdate(t, e, i) {
|
|
200
202
|
var r;
|
|
201
203
|
if (t !== void 0) {
|
|
202
204
|
const o = this.constructor, n = this[t];
|
|
203
|
-
if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ??
|
|
205
|
+
if (i ?? (i = o.getPropertyOptions(t)), !((i.hasChanged ?? bt)(n, e) || i.useDefault && i.reflect && n === ((r = this._$Ej) == null ? void 0 : r.get(t)) && !this.hasAttribute(o._$Eu(t, i)))) return;
|
|
204
206
|
this.C(t, e, i);
|
|
205
207
|
}
|
|
206
208
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
@@ -276,56 +278,56 @@ let R = class extends HTMLElement {
|
|
|
276
278
|
firstUpdated(t) {
|
|
277
279
|
}
|
|
278
280
|
};
|
|
279
|
-
R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[L("elementProperties")] = /* @__PURE__ */ new Map(), R[L("finalized")] = /* @__PURE__ */ new Map(),
|
|
281
|
+
R.elementStyles = [], R.shadowRootOptions = { mode: "open" }, R[L("elementProperties")] = /* @__PURE__ */ new Map(), R[L("finalized")] = /* @__PURE__ */ new Map(), et == null || et({ ReactiveElement: R }), (w.reactiveElementVersions ?? (w.reactiveElementVersions = [])).push("2.1.1");
|
|
280
282
|
/**
|
|
281
283
|
* @license
|
|
282
284
|
* Copyright 2017 Google LLC
|
|
283
285
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
284
286
|
*/
|
|
285
|
-
const
|
|
286
|
-
\f\r]`, N = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,
|
|
287
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"),
|
|
288
|
-
function
|
|
289
|
-
if (
|
|
290
|
-
return
|
|
287
|
+
const H = globalThis, K = H.trustedTypes, Nt = K ? K.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, re = "$lit$", _ = `lit$${Math.random().toFixed(9).slice(2)}$`, oe = "?" + _, Re = `<${oe}>`, P = document, B = () => P.createComment(""), F = (s) => s === null || typeof s != "object" && typeof s != "function", $t = Array.isArray, Me = (s) => $t(s) || typeof (s == null ? void 0 : s[Symbol.iterator]) == "function", it = `[
|
|
288
|
+
\f\r]`, N = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Lt = /-->/g, Ht = />/g, x = RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
|
|
289
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), It = /'/g, Bt = /"/g, ne = /^(?:script|style|textarea|title)$/i, Ue = (s) => (t, ...e) => ({ _$litType$: s, strings: t, values: e }), C = Ue(1), O = Symbol.for("lit-noChange"), d = Symbol.for("lit-nothing"), Ft = /* @__PURE__ */ new WeakMap(), E = P.createTreeWalker(P, 129);
|
|
290
|
+
function ae(s, t) {
|
|
291
|
+
if (!$t(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
292
|
+
return Nt !== void 0 ? Nt.createHTML(t) : t;
|
|
291
293
|
}
|
|
292
|
-
const
|
|
294
|
+
const je = (s, t) => {
|
|
293
295
|
const e = s.length - 1, i = [];
|
|
294
296
|
let r, o = t === 2 ? "<svg>" : t === 3 ? "<math>" : "", n = N;
|
|
295
297
|
for (let a = 0; a < e; a++) {
|
|
296
298
|
const c = s[a];
|
|
297
299
|
let h, l, u = -1, p = 0;
|
|
298
|
-
for (; p < c.length && (n.lastIndex = p, l = n.exec(c), l !== null); ) p = n.lastIndex, n === N ? l[1] === "!--" ? n =
|
|
300
|
+
for (; p < c.length && (n.lastIndex = p, l = n.exec(c), l !== null); ) p = n.lastIndex, n === N ? l[1] === "!--" ? n = Lt : l[1] !== void 0 ? n = Ht : l[2] !== void 0 ? (ne.test(l[2]) && (r = RegExp("</" + l[2], "g")), n = x) : l[3] !== void 0 && (n = x) : n === x ? l[0] === ">" ? (n = r ?? N, u = -1) : l[1] === void 0 ? u = -2 : (u = n.lastIndex - l[2].length, h = l[1], n = l[3] === void 0 ? x : l[3] === '"' ? Bt : It) : n === Bt || n === It ? n = x : n === Lt || n === Ht ? n = N : (n = x, r = void 0);
|
|
299
301
|
const f = n === x && s[a + 1].startsWith("/>") ? " " : "";
|
|
300
|
-
o += n === N ? c +
|
|
302
|
+
o += n === N ? c + Re : u >= 0 ? (i.push(h), c.slice(0, u) + re + c.slice(u) + _ + f) : c + _ + (u === -2 ? a : f);
|
|
301
303
|
}
|
|
302
|
-
return [
|
|
304
|
+
return [ae(s, o + (s[e] || "<?>") + (t === 2 ? "</svg>" : t === 3 ? "</math>" : "")), i];
|
|
303
305
|
};
|
|
304
|
-
let
|
|
306
|
+
let ht = class ce {
|
|
305
307
|
constructor({ strings: t, _$litType$: e }, i) {
|
|
306
308
|
let r;
|
|
307
309
|
this.parts = [];
|
|
308
310
|
let o = 0, n = 0;
|
|
309
|
-
const a = t.length - 1, c = this.parts, [h, l] =
|
|
310
|
-
if (this.el =
|
|
311
|
+
const a = t.length - 1, c = this.parts, [h, l] = je(t, e);
|
|
312
|
+
if (this.el = ce.createElement(h, i), E.currentNode = this.el.content, e === 2 || e === 3) {
|
|
311
313
|
const u = this.el.content.firstChild;
|
|
312
314
|
u.replaceWith(...u.childNodes);
|
|
313
315
|
}
|
|
314
316
|
for (; (r = E.nextNode()) !== null && c.length < a; ) {
|
|
315
317
|
if (r.nodeType === 1) {
|
|
316
|
-
if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(
|
|
318
|
+
if (r.hasAttributes()) for (const u of r.getAttributeNames()) if (u.endsWith(re)) {
|
|
317
319
|
const p = l[n++], f = r.getAttribute(u).split(_), T = /([.?@])?(.*)/.exec(p);
|
|
318
|
-
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ?
|
|
320
|
+
c.push({ type: 1, index: o, name: T[2], strings: f, ctor: T[1] === "." ? Le : T[1] === "?" ? He : T[1] === "@" ? Ie : Q }), r.removeAttribute(u);
|
|
319
321
|
} else u.startsWith(_) && (c.push({ type: 6, index: o }), r.removeAttribute(u));
|
|
320
|
-
if (
|
|
322
|
+
if (ne.test(r.tagName)) {
|
|
321
323
|
const u = r.textContent.split(_), p = u.length - 1;
|
|
322
324
|
if (p > 0) {
|
|
323
|
-
r.textContent =
|
|
325
|
+
r.textContent = K ? K.emptyScript : "";
|
|
324
326
|
for (let f = 0; f < p; f++) r.append(u[f], B()), E.nextNode(), c.push({ type: 2, index: ++o });
|
|
325
327
|
r.append(u[p], B());
|
|
326
328
|
}
|
|
327
329
|
}
|
|
328
|
-
} else if (r.nodeType === 8) if (r.data ===
|
|
330
|
+
} else if (r.nodeType === 8) if (r.data === oe) c.push({ type: 2, index: o });
|
|
329
331
|
else {
|
|
330
332
|
let u = -1;
|
|
331
333
|
for (; (u = r.data.indexOf(_, u + 1)) !== -1; ) c.push({ type: 7, index: o }), u += _.length - 1;
|
|
@@ -345,7 +347,7 @@ function M(s, t, e = s, i) {
|
|
|
345
347
|
const o = F(t) ? void 0 : t._$litDirective$;
|
|
346
348
|
return (r == null ? void 0 : r.constructor) !== o && ((a = r == null ? void 0 : r._$AO) == null || a.call(r, !1), o === void 0 ? r = void 0 : (r = new o(s), r._$AT(s, e, i)), i !== void 0 ? (e._$Co ?? (e._$Co = []))[i] = r : e._$Cl = r), r !== void 0 && (t = M(s, r._$AS(s, t.values), r, i)), t;
|
|
347
349
|
}
|
|
348
|
-
class
|
|
350
|
+
class Ne {
|
|
349
351
|
constructor(t, e) {
|
|
350
352
|
this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
|
|
351
353
|
}
|
|
@@ -362,7 +364,7 @@ class Ie {
|
|
|
362
364
|
for (; c !== void 0; ) {
|
|
363
365
|
if (n === c.index) {
|
|
364
366
|
let h;
|
|
365
|
-
c.type === 2 ? h = new
|
|
367
|
+
c.type === 2 ? h = new z(o, o.nextSibling, this, t) : c.type === 1 ? h = new c.ctor(o, c.name, c.strings, this, t) : c.type === 6 && (h = new Be(o, this, t)), this._$AV.push(h), c = i[++a];
|
|
366
368
|
}
|
|
367
369
|
n !== (c == null ? void 0 : c.index) && (o = E.nextNode(), n++);
|
|
368
370
|
}
|
|
@@ -373,7 +375,7 @@ class Ie {
|
|
|
373
375
|
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(t, i, e), e += i.strings.length - 2) : i._$AI(t[e])), e++;
|
|
374
376
|
}
|
|
375
377
|
}
|
|
376
|
-
class
|
|
378
|
+
class z {
|
|
377
379
|
get _$AU() {
|
|
378
380
|
var t;
|
|
379
381
|
return ((t = this._$AM) == null ? void 0 : t._$AU) ?? this._$Cv;
|
|
@@ -393,7 +395,7 @@ class V {
|
|
|
393
395
|
return this._$AB;
|
|
394
396
|
}
|
|
395
397
|
_$AI(t, e = this) {
|
|
396
|
-
t = M(this, t, e), F(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) :
|
|
398
|
+
t = M(this, t, e), F(t) ? t === d || t == null || t === "" ? (this._$AH !== d && this._$AR(), this._$AH = d) : t !== this._$AH && t !== O && this._(t) : t._$litType$ !== void 0 ? this.$(t) : t.nodeType !== void 0 ? this.T(t) : Me(t) ? this.k(t) : this._(t);
|
|
397
399
|
}
|
|
398
400
|
O(t) {
|
|
399
401
|
return this._$AA.parentNode.insertBefore(t, this._$AB);
|
|
@@ -406,27 +408,27 @@ class V {
|
|
|
406
408
|
}
|
|
407
409
|
$(t) {
|
|
408
410
|
var o;
|
|
409
|
-
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el =
|
|
411
|
+
const { values: e, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = ht.createElement(ae(i.h, i.h[0]), this.options)), i);
|
|
410
412
|
if (((o = this._$AH) == null ? void 0 : o._$AD) === r) this._$AH.p(e);
|
|
411
413
|
else {
|
|
412
|
-
const n = new
|
|
414
|
+
const n = new Ne(r, this), a = n.u(this.options);
|
|
413
415
|
n.p(e), this.T(a), this._$AH = n;
|
|
414
416
|
}
|
|
415
417
|
}
|
|
416
418
|
_$AC(t) {
|
|
417
|
-
let e =
|
|
418
|
-
return e === void 0 &&
|
|
419
|
+
let e = Ft.get(t.strings);
|
|
420
|
+
return e === void 0 && Ft.set(t.strings, e = new ht(t)), e;
|
|
419
421
|
}
|
|
420
422
|
k(t) {
|
|
421
|
-
|
|
423
|
+
$t(this._$AH) || (this._$AH = [], this._$AR());
|
|
422
424
|
const e = this._$AH;
|
|
423
425
|
let i, r = 0;
|
|
424
|
-
for (const o of t) r === e.length ? e.push(i = new
|
|
426
|
+
for (const o of t) r === e.length ? e.push(i = new z(this.O(B()), this.O(B()), this, this.options)) : i = e[r], i._$AI(o), r++;
|
|
425
427
|
r < e.length && (this._$AR(i && i._$AB.nextSibling, r), e.length = r);
|
|
426
428
|
}
|
|
427
429
|
_$AR(t = this._$AA.nextSibling, e) {
|
|
428
430
|
var i;
|
|
429
|
-
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t
|
|
431
|
+
for ((i = this._$AP) == null ? void 0 : i.call(this, !1, !0, e); t !== this._$AB; ) {
|
|
430
432
|
const r = t.nextSibling;
|
|
431
433
|
t.remove(), t = r;
|
|
432
434
|
}
|
|
@@ -436,7 +438,7 @@ class V {
|
|
|
436
438
|
this._$AM === void 0 && (this._$Cv = t, (e = this._$AP) == null || e.call(this, t));
|
|
437
439
|
}
|
|
438
440
|
}
|
|
439
|
-
class
|
|
441
|
+
class Q {
|
|
440
442
|
get tagName() {
|
|
441
443
|
return this.element.tagName;
|
|
442
444
|
}
|
|
@@ -461,7 +463,7 @@ class et {
|
|
|
461
463
|
t === d ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t ?? "");
|
|
462
464
|
}
|
|
463
465
|
}
|
|
464
|
-
class
|
|
466
|
+
class Le extends Q {
|
|
465
467
|
constructor() {
|
|
466
468
|
super(...arguments), this.type = 3;
|
|
467
469
|
}
|
|
@@ -469,7 +471,7 @@ class He extends et {
|
|
|
469
471
|
this.element[this.name] = t === d ? void 0 : t;
|
|
470
472
|
}
|
|
471
473
|
}
|
|
472
|
-
class
|
|
474
|
+
class He extends Q {
|
|
473
475
|
constructor() {
|
|
474
476
|
super(...arguments), this.type = 4;
|
|
475
477
|
}
|
|
@@ -477,7 +479,7 @@ class Be extends et {
|
|
|
477
479
|
this.element.toggleAttribute(this.name, !!t && t !== d);
|
|
478
480
|
}
|
|
479
481
|
}
|
|
480
|
-
class
|
|
482
|
+
class Ie extends Q {
|
|
481
483
|
constructor(t, e, i, r, o) {
|
|
482
484
|
super(t, e, i, r, o), this.type = 5;
|
|
483
485
|
}
|
|
@@ -491,7 +493,7 @@ class Fe extends et {
|
|
|
491
493
|
typeof this._$AH == "function" ? this._$AH.call(((e = this.options) == null ? void 0 : e.host) ?? this.element, t) : this._$AH.handleEvent(t);
|
|
492
494
|
}
|
|
493
495
|
}
|
|
494
|
-
class
|
|
496
|
+
class Be {
|
|
495
497
|
constructor(t, e, i) {
|
|
496
498
|
this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = i;
|
|
497
499
|
}
|
|
@@ -502,14 +504,14 @@ class De {
|
|
|
502
504
|
M(this, t);
|
|
503
505
|
}
|
|
504
506
|
}
|
|
505
|
-
const
|
|
506
|
-
|
|
507
|
-
const
|
|
507
|
+
const st = H.litHtmlPolyfillSupport;
|
|
508
|
+
st == null || st(ht, z), (H.litHtmlVersions ?? (H.litHtmlVersions = [])).push("3.3.1");
|
|
509
|
+
const Fe = (s, t, e) => {
|
|
508
510
|
const i = (e == null ? void 0 : e.renderBefore) ?? t;
|
|
509
511
|
let r = i._$litPart$;
|
|
510
512
|
if (r === void 0) {
|
|
511
513
|
const o = (e == null ? void 0 : e.renderBefore) ?? null;
|
|
512
|
-
i._$litPart$ = r = new
|
|
514
|
+
i._$litPart$ = r = new z(t.insertBefore(B(), o), o, void 0, e ?? {});
|
|
513
515
|
}
|
|
514
516
|
return r._$AI(s), r;
|
|
515
517
|
};
|
|
@@ -530,7 +532,7 @@ let m = class extends R {
|
|
|
530
532
|
}
|
|
531
533
|
update(t) {
|
|
532
534
|
const e = this.render();
|
|
533
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do =
|
|
535
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Fe(e, this.renderRoot, this.renderOptions);
|
|
534
536
|
}
|
|
535
537
|
connectedCallback() {
|
|
536
538
|
var t;
|
|
@@ -544,39 +546,39 @@ let m = class extends R {
|
|
|
544
546
|
return O;
|
|
545
547
|
}
|
|
546
548
|
};
|
|
547
|
-
var
|
|
548
|
-
m._$litElement$ = !0, m.finalized = !0, (
|
|
549
|
-
const
|
|
550
|
-
|
|
551
|
-
(S.litElementVersions ?? (S.litElementVersions = [])).push("4.2.
|
|
549
|
+
var ie;
|
|
550
|
+
m._$litElement$ = !0, m.finalized = !0, (ie = S.litElementHydrateSupport) == null || ie.call(S, { LitElement: m });
|
|
551
|
+
const rt = S.litElementPolyfillSupport;
|
|
552
|
+
rt == null || rt({ LitElement: m });
|
|
553
|
+
(S.litElementVersions ?? (S.litElementVersions = [])).push("4.2.1");
|
|
552
554
|
/**
|
|
553
555
|
* @license
|
|
554
556
|
* Copyright 2021 Google LLC
|
|
555
557
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
556
558
|
*/
|
|
557
|
-
function*
|
|
559
|
+
function* he(s, t) {
|
|
558
560
|
if (s !== void 0) {
|
|
559
561
|
let e = 0;
|
|
560
562
|
for (const i of s) yield t(i, e++);
|
|
561
563
|
}
|
|
562
564
|
}
|
|
563
|
-
var
|
|
564
|
-
return
|
|
565
|
+
var lt = function(s, t) {
|
|
566
|
+
return lt = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(e, i) {
|
|
565
567
|
e.__proto__ = i;
|
|
566
568
|
} || function(e, i) {
|
|
567
569
|
for (var r in i) Object.prototype.hasOwnProperty.call(i, r) && (e[r] = i[r]);
|
|
568
|
-
},
|
|
570
|
+
}, lt(s, t);
|
|
569
571
|
};
|
|
570
|
-
function
|
|
572
|
+
function V(s, t) {
|
|
571
573
|
if (typeof t != "function" && t !== null)
|
|
572
574
|
throw new TypeError("Class extends value " + String(t) + " is not a constructor or null");
|
|
573
|
-
|
|
575
|
+
lt(s, t);
|
|
574
576
|
function e() {
|
|
575
577
|
this.constructor = s;
|
|
576
578
|
}
|
|
577
579
|
s.prototype = t === null ? Object.create(t) : (e.prototype = t.prototype, new e());
|
|
578
580
|
}
|
|
579
|
-
function
|
|
581
|
+
function ut(s) {
|
|
580
582
|
var t = typeof Symbol == "function" && Symbol.iterator, e = t && s[t], i = 0;
|
|
581
583
|
if (e) return e.call(s);
|
|
582
584
|
if (s && typeof s.length == "number") return {
|
|
@@ -586,7 +588,7 @@ function pt(s) {
|
|
|
586
588
|
};
|
|
587
589
|
throw new TypeError(t ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
588
590
|
}
|
|
589
|
-
function
|
|
591
|
+
function dt(s, t) {
|
|
590
592
|
var e = typeof Symbol == "function" && s[Symbol.iterator];
|
|
591
593
|
if (!e) return s;
|
|
592
594
|
var i = e.call(s), r, o = [], n;
|
|
@@ -603,7 +605,7 @@ function ft(s, t) {
|
|
|
603
605
|
}
|
|
604
606
|
return o;
|
|
605
607
|
}
|
|
606
|
-
function
|
|
608
|
+
function pt(s, t, e) {
|
|
607
609
|
if (e || arguments.length === 2) for (var i = 0, r = t.length, o; i < r; i++)
|
|
608
610
|
(o || !(i in t)) && (o || (o = Array.prototype.slice.call(t, 0, i)), o[i] = t[i]);
|
|
609
611
|
return s.concat(o || Array.prototype.slice.call(t));
|
|
@@ -611,13 +613,13 @@ function gt(s, t, e) {
|
|
|
611
613
|
function b(s) {
|
|
612
614
|
return typeof s == "function";
|
|
613
615
|
}
|
|
614
|
-
function
|
|
616
|
+
function le(s) {
|
|
615
617
|
var t = function(i) {
|
|
616
618
|
Error.call(i), i.stack = new Error().stack;
|
|
617
619
|
}, e = s(t);
|
|
618
620
|
return e.prototype = Object.create(Error.prototype), e.prototype.constructor = e, e;
|
|
619
621
|
}
|
|
620
|
-
var
|
|
622
|
+
var ot = le(function(s) {
|
|
621
623
|
return function(e) {
|
|
622
624
|
s(this), this.message = e ? e.length + ` errors occurred during unsubscription:
|
|
623
625
|
` + e.map(function(i, r) {
|
|
@@ -626,13 +628,13 @@ var at = de(function(s) {
|
|
|
626
628
|
`) : "", this.name = "UnsubscriptionError", this.errors = e;
|
|
627
629
|
};
|
|
628
630
|
});
|
|
629
|
-
function
|
|
631
|
+
function ft(s, t) {
|
|
630
632
|
if (s) {
|
|
631
633
|
var e = s.indexOf(t);
|
|
632
634
|
0 <= e && s.splice(e, 1);
|
|
633
635
|
}
|
|
634
636
|
}
|
|
635
|
-
var
|
|
637
|
+
var tt = function() {
|
|
636
638
|
function s(t) {
|
|
637
639
|
this.initialTeardown = t, this.closed = !1, this._parentage = null, this._finalizers = null;
|
|
638
640
|
}
|
|
@@ -644,7 +646,7 @@ var it = function() {
|
|
|
644
646
|
if (n)
|
|
645
647
|
if (this._parentage = null, Array.isArray(n))
|
|
646
648
|
try {
|
|
647
|
-
for (var a =
|
|
649
|
+
for (var a = ut(n), c = a.next(); !c.done; c = a.next()) {
|
|
648
650
|
var h = c.value;
|
|
649
651
|
h.remove(this);
|
|
650
652
|
}
|
|
@@ -664,18 +666,18 @@ var it = function() {
|
|
|
664
666
|
try {
|
|
665
667
|
l();
|
|
666
668
|
} catch (v) {
|
|
667
|
-
o = v instanceof
|
|
669
|
+
o = v instanceof ot ? v.errors : [v];
|
|
668
670
|
}
|
|
669
671
|
var u = this._finalizers;
|
|
670
672
|
if (u) {
|
|
671
673
|
this._finalizers = null;
|
|
672
674
|
try {
|
|
673
|
-
for (var p =
|
|
675
|
+
for (var p = ut(u), f = p.next(); !f.done; f = p.next()) {
|
|
674
676
|
var T = f.value;
|
|
675
677
|
try {
|
|
676
|
-
|
|
678
|
+
Dt(T);
|
|
677
679
|
} catch (v) {
|
|
678
|
-
o = o ?? [], v instanceof
|
|
680
|
+
o = o ?? [], v instanceof ot ? o = pt(pt([], dt(o)), dt(v.errors)) : o.push(v);
|
|
679
681
|
}
|
|
680
682
|
}
|
|
681
683
|
} catch (v) {
|
|
@@ -689,13 +691,13 @@ var it = function() {
|
|
|
689
691
|
}
|
|
690
692
|
}
|
|
691
693
|
if (o)
|
|
692
|
-
throw new
|
|
694
|
+
throw new ot(o);
|
|
693
695
|
}
|
|
694
696
|
}, s.prototype.add = function(t) {
|
|
695
697
|
var e;
|
|
696
698
|
if (t && t !== this)
|
|
697
699
|
if (this.closed)
|
|
698
|
-
|
|
700
|
+
Dt(t);
|
|
699
701
|
else {
|
|
700
702
|
if (t instanceof s) {
|
|
701
703
|
if (t.closed || t._hasParent(this))
|
|
@@ -712,52 +714,52 @@ var it = function() {
|
|
|
712
714
|
this._parentage = Array.isArray(e) ? (e.push(t), e) : e ? [e, t] : t;
|
|
713
715
|
}, s.prototype._removeParent = function(t) {
|
|
714
716
|
var e = this._parentage;
|
|
715
|
-
e === t ? this._parentage = null : Array.isArray(e) &&
|
|
717
|
+
e === t ? this._parentage = null : Array.isArray(e) && ft(e, t);
|
|
716
718
|
}, s.prototype.remove = function(t) {
|
|
717
719
|
var e = this._finalizers;
|
|
718
|
-
e &&
|
|
720
|
+
e && ft(e, t), t instanceof s && t._removeParent(this);
|
|
719
721
|
}, s.EMPTY = function() {
|
|
720
722
|
var t = new s();
|
|
721
723
|
return t.closed = !0, t;
|
|
722
724
|
}(), s;
|
|
723
|
-
}(),
|
|
724
|
-
function
|
|
725
|
-
return s instanceof
|
|
725
|
+
}(), ue = tt.EMPTY;
|
|
726
|
+
function de(s) {
|
|
727
|
+
return s instanceof tt || s && "closed" in s && b(s.remove) && b(s.add) && b(s.unsubscribe);
|
|
726
728
|
}
|
|
727
|
-
function
|
|
729
|
+
function Dt(s) {
|
|
728
730
|
b(s) ? s() : s.unsubscribe();
|
|
729
731
|
}
|
|
730
|
-
var
|
|
732
|
+
var De = {
|
|
731
733
|
Promise: void 0
|
|
732
|
-
},
|
|
734
|
+
}, ze = {
|
|
733
735
|
setTimeout: function(s, t) {
|
|
734
736
|
for (var e = [], i = 2; i < arguments.length; i++)
|
|
735
737
|
e[i - 2] = arguments[i];
|
|
736
|
-
return setTimeout.apply(void 0,
|
|
738
|
+
return setTimeout.apply(void 0, pt([s, t], dt(e)));
|
|
737
739
|
},
|
|
738
740
|
clearTimeout: function(s) {
|
|
739
741
|
return clearTimeout(s);
|
|
740
742
|
},
|
|
741
743
|
delegate: void 0
|
|
742
744
|
};
|
|
743
|
-
function
|
|
744
|
-
|
|
745
|
+
function Ve(s) {
|
|
746
|
+
ze.setTimeout(function() {
|
|
745
747
|
throw s;
|
|
746
748
|
});
|
|
747
749
|
}
|
|
748
|
-
function
|
|
750
|
+
function zt() {
|
|
749
751
|
}
|
|
750
|
-
function
|
|
752
|
+
function Y(s) {
|
|
751
753
|
s();
|
|
752
754
|
}
|
|
753
|
-
var
|
|
754
|
-
|
|
755
|
+
var pe = function(s) {
|
|
756
|
+
V(t, s);
|
|
755
757
|
function t(e) {
|
|
756
758
|
var i = s.call(this) || this;
|
|
757
|
-
return i.isStopped = !1, e ? (i.destination = e,
|
|
759
|
+
return i.isStopped = !1, e ? (i.destination = e, de(e) && e.add(i)) : i.destination = We, i;
|
|
758
760
|
}
|
|
759
761
|
return t.create = function(e, i, r) {
|
|
760
|
-
return new
|
|
762
|
+
return new gt(e, i, r);
|
|
761
763
|
}, t.prototype.next = function(e) {
|
|
762
764
|
this.isStopped || this._next(e);
|
|
763
765
|
}, t.prototype.error = function(e) {
|
|
@@ -781,7 +783,7 @@ var ge = function(s) {
|
|
|
781
783
|
this.unsubscribe();
|
|
782
784
|
}
|
|
783
785
|
}, t;
|
|
784
|
-
}(
|
|
786
|
+
}(tt), qe = function() {
|
|
785
787
|
function s(t) {
|
|
786
788
|
this.partialObserver = t;
|
|
787
789
|
}
|
|
@@ -812,43 +814,43 @@ var ge = function(s) {
|
|
|
812
814
|
G(e);
|
|
813
815
|
}
|
|
814
816
|
}, s;
|
|
815
|
-
}(),
|
|
816
|
-
|
|
817
|
+
}(), gt = function(s) {
|
|
818
|
+
V(t, s);
|
|
817
819
|
function t(e, i, r) {
|
|
818
820
|
var o = s.call(this) || this, n;
|
|
819
821
|
return b(e) || !e ? n = {
|
|
820
822
|
next: e ?? void 0,
|
|
821
823
|
error: i ?? void 0,
|
|
822
824
|
complete: r ?? void 0
|
|
823
|
-
} : n = e, o.destination = new
|
|
825
|
+
} : n = e, o.destination = new qe(n), o;
|
|
824
826
|
}
|
|
825
827
|
return t;
|
|
826
|
-
}(
|
|
828
|
+
}(pe);
|
|
827
829
|
function G(s) {
|
|
828
|
-
|
|
830
|
+
Ve(s);
|
|
829
831
|
}
|
|
830
|
-
function
|
|
832
|
+
function Ge(s) {
|
|
831
833
|
throw s;
|
|
832
834
|
}
|
|
833
|
-
var
|
|
835
|
+
var We = {
|
|
834
836
|
closed: !0,
|
|
835
|
-
next:
|
|
836
|
-
error:
|
|
837
|
-
complete:
|
|
838
|
-
},
|
|
837
|
+
next: zt,
|
|
838
|
+
error: Ge,
|
|
839
|
+
complete: zt
|
|
840
|
+
}, Ye = function() {
|
|
839
841
|
return typeof Symbol == "function" && Symbol.observable || "@@observable";
|
|
840
842
|
}();
|
|
841
|
-
function
|
|
843
|
+
function Ze(s) {
|
|
842
844
|
return s;
|
|
843
845
|
}
|
|
844
|
-
function
|
|
845
|
-
return s.length === 0 ?
|
|
846
|
+
function Ke(s) {
|
|
847
|
+
return s.length === 0 ? Ze : s.length === 1 ? s[0] : function(e) {
|
|
846
848
|
return s.reduce(function(i, r) {
|
|
847
849
|
return r(i);
|
|
848
850
|
}, e);
|
|
849
851
|
};
|
|
850
852
|
}
|
|
851
|
-
var
|
|
853
|
+
var Vt = function() {
|
|
852
854
|
function s(t) {
|
|
853
855
|
t && (this._subscribe = t);
|
|
854
856
|
}
|
|
@@ -856,8 +858,8 @@ var qt = function() {
|
|
|
856
858
|
var e = new s();
|
|
857
859
|
return e.source = this, e.operator = t, e;
|
|
858
860
|
}, s.prototype.subscribe = function(t, e, i) {
|
|
859
|
-
var r = this, o =
|
|
860
|
-
return
|
|
861
|
+
var r = this, o = Je(t) ? t : new gt(t, e, i);
|
|
862
|
+
return Y(function() {
|
|
861
863
|
var n = r, a = n.operator, c = n.source;
|
|
862
864
|
o.add(a ? a.call(o, c) : c ? r._subscribe(o) : r._trySubscribe(o));
|
|
863
865
|
}), o;
|
|
@@ -869,8 +871,8 @@ var qt = function() {
|
|
|
869
871
|
}
|
|
870
872
|
}, s.prototype.forEach = function(t, e) {
|
|
871
873
|
var i = this;
|
|
872
|
-
return e =
|
|
873
|
-
var n = new
|
|
874
|
+
return e = qt(e), new e(function(r, o) {
|
|
875
|
+
var n = new gt({
|
|
874
876
|
next: function(a) {
|
|
875
877
|
try {
|
|
876
878
|
t(a);
|
|
@@ -886,15 +888,15 @@ var qt = function() {
|
|
|
886
888
|
}, s.prototype._subscribe = function(t) {
|
|
887
889
|
var e;
|
|
888
890
|
return (e = this.source) === null || e === void 0 ? void 0 : e.subscribe(t);
|
|
889
|
-
}, s.prototype[
|
|
891
|
+
}, s.prototype[Ye] = function() {
|
|
890
892
|
return this;
|
|
891
893
|
}, s.prototype.pipe = function() {
|
|
892
894
|
for (var t = [], e = 0; e < arguments.length; e++)
|
|
893
895
|
t[e] = arguments[e];
|
|
894
|
-
return
|
|
896
|
+
return Ke(t)(this);
|
|
895
897
|
}, s.prototype.toPromise = function(t) {
|
|
896
898
|
var e = this;
|
|
897
|
-
return t =
|
|
899
|
+
return t = qt(t), new t(function(i, r) {
|
|
898
900
|
var o;
|
|
899
901
|
e.subscribe(function(n) {
|
|
900
902
|
return o = n;
|
|
@@ -908,22 +910,22 @@ var qt = function() {
|
|
|
908
910
|
return new s(t);
|
|
909
911
|
}, s;
|
|
910
912
|
}();
|
|
911
|
-
function
|
|
913
|
+
function qt(s) {
|
|
912
914
|
var t;
|
|
913
|
-
return (t = s ??
|
|
915
|
+
return (t = s ?? De.Promise) !== null && t !== void 0 ? t : Promise;
|
|
914
916
|
}
|
|
915
|
-
function
|
|
917
|
+
function Xe(s) {
|
|
916
918
|
return s && b(s.next) && b(s.error) && b(s.complete);
|
|
917
919
|
}
|
|
918
|
-
function
|
|
919
|
-
return s && s instanceof
|
|
920
|
+
function Je(s) {
|
|
921
|
+
return s && s instanceof pe || Xe(s) && de(s);
|
|
920
922
|
}
|
|
921
|
-
var
|
|
923
|
+
var Qe = le(function(s) {
|
|
922
924
|
return function() {
|
|
923
925
|
s(this), this.name = "ObjectUnsubscribedError", this.message = "object unsubscribed";
|
|
924
926
|
};
|
|
925
|
-
}),
|
|
926
|
-
|
|
927
|
+
}), _t = function(s) {
|
|
928
|
+
V(t, s);
|
|
927
929
|
function t() {
|
|
928
930
|
var e = s.call(this) || this;
|
|
929
931
|
return e.closed = !1, e.currentObservers = null, e.observers = [], e.isStopped = !1, e.hasError = !1, e.thrownError = null, e;
|
|
@@ -933,15 +935,15 @@ var ei = de(function(s) {
|
|
|
933
935
|
return i.operator = e, i;
|
|
934
936
|
}, t.prototype._throwIfClosed = function() {
|
|
935
937
|
if (this.closed)
|
|
936
|
-
throw new
|
|
938
|
+
throw new Qe();
|
|
937
939
|
}, t.prototype.next = function(e) {
|
|
938
940
|
var i = this;
|
|
939
|
-
|
|
941
|
+
Y(function() {
|
|
940
942
|
var r, o;
|
|
941
943
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
942
944
|
i.currentObservers || (i.currentObservers = Array.from(i.observers));
|
|
943
945
|
try {
|
|
944
|
-
for (var n =
|
|
946
|
+
for (var n = ut(i.currentObservers), a = n.next(); !a.done; a = n.next()) {
|
|
945
947
|
var c = a.value;
|
|
946
948
|
c.next(e);
|
|
947
949
|
}
|
|
@@ -958,7 +960,7 @@ var ei = de(function(s) {
|
|
|
958
960
|
});
|
|
959
961
|
}, t.prototype.error = function(e) {
|
|
960
962
|
var i = this;
|
|
961
|
-
|
|
963
|
+
Y(function() {
|
|
962
964
|
if (i._throwIfClosed(), !i.isStopped) {
|
|
963
965
|
i.hasError = i.isStopped = !0, i.thrownError = e;
|
|
964
966
|
for (var r = i.observers; r.length; )
|
|
@@ -967,7 +969,7 @@ var ei = de(function(s) {
|
|
|
967
969
|
});
|
|
968
970
|
}, t.prototype.complete = function() {
|
|
969
971
|
var e = this;
|
|
970
|
-
|
|
972
|
+
Y(function() {
|
|
971
973
|
if (e._throwIfClosed(), !e.isStopped) {
|
|
972
974
|
e.isStopped = !0;
|
|
973
975
|
for (var i = e.observers; i.length; )
|
|
@@ -989,20 +991,20 @@ var ei = de(function(s) {
|
|
|
989
991
|
return this._throwIfClosed(), this._checkFinalizedStatuses(e), this._innerSubscribe(e);
|
|
990
992
|
}, t.prototype._innerSubscribe = function(e) {
|
|
991
993
|
var i = this, r = this, o = r.hasError, n = r.isStopped, a = r.observers;
|
|
992
|
-
return o || n ?
|
|
993
|
-
i.currentObservers = null,
|
|
994
|
+
return o || n ? ue : (this.currentObservers = null, a.push(e), new tt(function() {
|
|
995
|
+
i.currentObservers = null, ft(a, e);
|
|
994
996
|
}));
|
|
995
997
|
}, t.prototype._checkFinalizedStatuses = function(e) {
|
|
996
998
|
var i = this, r = i.hasError, o = i.thrownError, n = i.isStopped;
|
|
997
999
|
r ? e.error(o) : n && e.complete();
|
|
998
1000
|
}, t.prototype.asObservable = function() {
|
|
999
|
-
var e = new
|
|
1001
|
+
var e = new Vt();
|
|
1000
1002
|
return e.source = this, e;
|
|
1001
1003
|
}, t.create = function(e, i) {
|
|
1002
1004
|
return new Gt(e, i);
|
|
1003
1005
|
}, t;
|
|
1004
|
-
}(
|
|
1005
|
-
|
|
1006
|
+
}(Vt), Gt = function(s) {
|
|
1007
|
+
V(t, s);
|
|
1006
1008
|
function t(e, i) {
|
|
1007
1009
|
var r = s.call(this) || this;
|
|
1008
1010
|
return r.destination = e, r.source = i, r;
|
|
@@ -1018,10 +1020,10 @@ var ei = de(function(s) {
|
|
|
1018
1020
|
(i = (e = this.destination) === null || e === void 0 ? void 0 : e.complete) === null || i === void 0 || i.call(e);
|
|
1019
1021
|
}, t.prototype._subscribe = function(e) {
|
|
1020
1022
|
var i, r;
|
|
1021
|
-
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r :
|
|
1023
|
+
return (r = (i = this.source) === null || i === void 0 ? void 0 : i.subscribe(e)) !== null && r !== void 0 ? r : ue;
|
|
1022
1024
|
}, t;
|
|
1023
|
-
}(
|
|
1024
|
-
|
|
1025
|
+
}(_t), fe = function(s) {
|
|
1026
|
+
V(t, s);
|
|
1025
1027
|
function t(e) {
|
|
1026
1028
|
var i = s.call(this) || this;
|
|
1027
1029
|
return i._value = e, i;
|
|
@@ -1043,13 +1045,13 @@ var ei = de(function(s) {
|
|
|
1043
1045
|
}, t.prototype.next = function(e) {
|
|
1044
1046
|
s.prototype.next.call(this, this._value = e);
|
|
1045
1047
|
}, t;
|
|
1046
|
-
}(
|
|
1048
|
+
}(_t);
|
|
1047
1049
|
/**
|
|
1048
1050
|
* @license
|
|
1049
1051
|
* Copyright 2017 Google LLC
|
|
1050
1052
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1051
1053
|
*/
|
|
1052
|
-
const
|
|
1054
|
+
const ti = { attribute: !0, type: String, converter: Z, reflect: !1, hasChanged: bt }, ei = (s = ti, t, e) => {
|
|
1053
1055
|
const { kind: i, metadata: r } = e;
|
|
1054
1056
|
let o = globalThis.litPropertyMetadata.get(r);
|
|
1055
1057
|
if (o === void 0 && globalThis.litPropertyMetadata.set(r, o = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), o.set(e.name, s), i === "accessor") {
|
|
@@ -1071,7 +1073,7 @@ const ii = { attribute: !0, type: String, converter: K, reflect: !1, hasChanged:
|
|
|
1071
1073
|
throw Error("Unsupported decorator location: " + i);
|
|
1072
1074
|
};
|
|
1073
1075
|
function g(s) {
|
|
1074
|
-
return (t, e) => typeof e == "object" ?
|
|
1076
|
+
return (t, e) => typeof e == "object" ? ei(s, t, e) : ((i, r, o) => {
|
|
1075
1077
|
const n = r.hasOwnProperty(o);
|
|
1076
1078
|
return r.constructor.createProperty(o, i), n ? Object.getOwnPropertyDescriptor(r, o) : void 0;
|
|
1077
1079
|
})(s, t, e);
|
|
@@ -1084,12 +1086,12 @@ function g(s) {
|
|
|
1084
1086
|
function j(s) {
|
|
1085
1087
|
return g({ ...s, state: !0, attribute: !1 });
|
|
1086
1088
|
}
|
|
1087
|
-
var
|
|
1089
|
+
var ii = Object.defineProperty, si = (s, t, e, i) => {
|
|
1088
1090
|
for (var r = void 0, o = s.length - 1, n; o >= 0; o--)
|
|
1089
1091
|
(n = s[o]) && (r = n(t, e, r) || r);
|
|
1090
|
-
return r &&
|
|
1092
|
+
return r && ii(t, e, r), r;
|
|
1091
1093
|
};
|
|
1092
|
-
const
|
|
1094
|
+
const Et = class Et extends m {
|
|
1093
1095
|
constructor() {
|
|
1094
1096
|
super(...arguments), this.anchor = "BottomRight";
|
|
1095
1097
|
}
|
|
@@ -1101,7 +1103,7 @@ const St = class St extends m {
|
|
|
1101
1103
|
return this.anchor === "BottomLeft" ? this.renderRoot.host.classList.add("bottom-left") : this.anchor === "BottomRight" && this.renderRoot.host.classList.add("bottom-right"), d;
|
|
1102
1104
|
}
|
|
1103
1105
|
};
|
|
1104
|
-
|
|
1106
|
+
Et.styles = [
|
|
1105
1107
|
k`
|
|
1106
1108
|
:host {
|
|
1107
1109
|
position: fixed;
|
|
@@ -1120,17 +1122,17 @@ St.styles = [
|
|
|
1120
1122
|
}
|
|
1121
1123
|
`
|
|
1122
1124
|
];
|
|
1123
|
-
let
|
|
1124
|
-
|
|
1125
|
+
let X = Et;
|
|
1126
|
+
si([
|
|
1125
1127
|
g({ attribute: !0 })
|
|
1126
|
-
],
|
|
1128
|
+
], X.prototype, "anchor");
|
|
1127
1129
|
/**
|
|
1128
1130
|
* @license
|
|
1129
1131
|
* Copyright 2017 Google LLC
|
|
1130
1132
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1131
1133
|
*/
|
|
1132
|
-
const
|
|
1133
|
-
let
|
|
1134
|
+
const wt = { ATTRIBUTE: 1, CHILD: 2 }, xt = (s) => (...t) => ({ _$litDirective$: s, values: t });
|
|
1135
|
+
let ge = class {
|
|
1134
1136
|
constructor(t) {
|
|
1135
1137
|
}
|
|
1136
1138
|
get _$AU() {
|
|
@@ -1151,57 +1153,57 @@ let me = class {
|
|
|
1151
1153
|
* Copyright 2020 Google LLC
|
|
1152
1154
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1153
1155
|
*/
|
|
1154
|
-
const
|
|
1156
|
+
const ri = (s) => s.strings === void 0;
|
|
1155
1157
|
/**
|
|
1156
1158
|
* @license
|
|
1157
1159
|
* Copyright 2017 Google LLC
|
|
1158
1160
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1159
1161
|
*/
|
|
1160
|
-
const
|
|
1162
|
+
const I = (s, t) => {
|
|
1161
1163
|
var i;
|
|
1162
1164
|
const e = s._$AN;
|
|
1163
1165
|
if (e === void 0) return !1;
|
|
1164
|
-
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1),
|
|
1166
|
+
for (const r of e) (i = r._$AO) == null || i.call(r, t, !1), I(r, t);
|
|
1165
1167
|
return !0;
|
|
1166
|
-
},
|
|
1168
|
+
}, J = (s) => {
|
|
1167
1169
|
let t, e;
|
|
1168
1170
|
do {
|
|
1169
1171
|
if ((t = s._$AM) === void 0) break;
|
|
1170
1172
|
e = t._$AN, e.delete(s), s = t;
|
|
1171
1173
|
} while ((e == null ? void 0 : e.size) === 0);
|
|
1172
|
-
},
|
|
1174
|
+
}, ve = (s) => {
|
|
1173
1175
|
for (let t; t = s._$AM; s = t) {
|
|
1174
1176
|
let e = t._$AN;
|
|
1175
1177
|
if (e === void 0) t._$AN = e = /* @__PURE__ */ new Set();
|
|
1176
1178
|
else if (e.has(s)) break;
|
|
1177
|
-
e.add(s),
|
|
1179
|
+
e.add(s), ai(t);
|
|
1178
1180
|
}
|
|
1179
1181
|
};
|
|
1180
|
-
function
|
|
1181
|
-
this._$AN !== void 0 ? (
|
|
1182
|
+
function oi(s) {
|
|
1183
|
+
this._$AN !== void 0 ? (J(this), this._$AM = s, ve(this)) : this._$AM = s;
|
|
1182
1184
|
}
|
|
1183
|
-
function
|
|
1185
|
+
function ni(s, t = !1, e = 0) {
|
|
1184
1186
|
const i = this._$AH, r = this._$AN;
|
|
1185
|
-
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++)
|
|
1186
|
-
else i != null && (
|
|
1187
|
-
else
|
|
1187
|
+
if (r !== void 0 && r.size !== 0) if (t) if (Array.isArray(i)) for (let o = e; o < i.length; o++) I(i[o], !1), J(i[o]);
|
|
1188
|
+
else i != null && (I(i, !1), J(i));
|
|
1189
|
+
else I(this, s);
|
|
1188
1190
|
}
|
|
1189
|
-
const
|
|
1190
|
-
s.type ==
|
|
1191
|
+
const ai = (s) => {
|
|
1192
|
+
s.type == wt.CHILD && (s._$AP ?? (s._$AP = ni), s._$AQ ?? (s._$AQ = oi));
|
|
1191
1193
|
};
|
|
1192
|
-
class
|
|
1194
|
+
class me extends ge {
|
|
1193
1195
|
constructor() {
|
|
1194
1196
|
super(...arguments), this._$AN = void 0;
|
|
1195
1197
|
}
|
|
1196
1198
|
_$AT(t, e, i) {
|
|
1197
|
-
super._$AT(t, e, i),
|
|
1199
|
+
super._$AT(t, e, i), ve(this), this.isConnected = t._$AU;
|
|
1198
1200
|
}
|
|
1199
1201
|
_$AO(t, e = !0) {
|
|
1200
1202
|
var i, r;
|
|
1201
|
-
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (
|
|
1203
|
+
t !== this.isConnected && (this.isConnected = t, t ? (i = this.reconnected) == null || i.call(this) : (r = this.disconnected) == null || r.call(this)), e && (I(this, t), J(this));
|
|
1202
1204
|
}
|
|
1203
1205
|
setValue(t) {
|
|
1204
|
-
if (
|
|
1206
|
+
if (ri(this._$Ct)) this._$Ct._$AI(t, this);
|
|
1205
1207
|
else {
|
|
1206
1208
|
const e = [...this._$Ct._$AH];
|
|
1207
1209
|
e[this._$Ci] = t, this._$Ct._$AI(e, this, 0);
|
|
@@ -1212,34 +1214,34 @@ class be extends me {
|
|
|
1212
1214
|
reconnected() {
|
|
1213
1215
|
}
|
|
1214
1216
|
}
|
|
1215
|
-
const
|
|
1216
|
-
let
|
|
1217
|
-
const
|
|
1217
|
+
const ci = /* @__PURE__ */ new WeakMap();
|
|
1218
|
+
let Wt = 0;
|
|
1219
|
+
const nt = /* @__PURE__ */ new Map(), Yt = /* @__PURE__ */ new WeakSet(), Zt = () => new Promise((s) => requestAnimationFrame(s)), hi = [{ transform: "translateX(100%) scale(0)", opacity: 0 }], Kt = (s, t) => {
|
|
1218
1220
|
const e = s - t;
|
|
1219
1221
|
return e === 0 ? void 0 : e;
|
|
1220
|
-
},
|
|
1222
|
+
}, Xt = (s, t) => {
|
|
1221
1223
|
const e = s / t;
|
|
1222
1224
|
return e === 1 ? void 0 : e;
|
|
1223
|
-
},
|
|
1224
|
-
const e =
|
|
1225
|
+
}, at = { left: (s, t) => {
|
|
1226
|
+
const e = Kt(s, t);
|
|
1225
1227
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateX(${e}px)` };
|
|
1226
1228
|
}, top: (s, t) => {
|
|
1227
|
-
const e =
|
|
1229
|
+
const e = Kt(s, t);
|
|
1228
1230
|
return { value: e, transform: e == null || isNaN(e) ? void 0 : `translateY(${e}px)` };
|
|
1229
1231
|
}, width: (s, t) => {
|
|
1230
1232
|
let e;
|
|
1231
1233
|
t === 0 && (t = 1, e = { width: "1px" });
|
|
1232
|
-
const i =
|
|
1234
|
+
const i = Xt(s, t);
|
|
1233
1235
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleX(${i})` };
|
|
1234
1236
|
}, height: (s, t) => {
|
|
1235
1237
|
let e;
|
|
1236
1238
|
t === 0 && (t = 1, e = { height: "1px" });
|
|
1237
|
-
const i =
|
|
1239
|
+
const i = Xt(s, t);
|
|
1238
1240
|
return { value: i, overrideFrom: e, transform: i == null || isNaN(i) ? void 0 : `scaleY(${i})` };
|
|
1239
|
-
} },
|
|
1240
|
-
class
|
|
1241
|
+
} }, li = { duration: 333, easing: "ease-in-out" }, ui = ["left", "top", "width", "height", "opacity", "color", "background"], Jt = /* @__PURE__ */ new WeakMap();
|
|
1242
|
+
class di extends me {
|
|
1241
1243
|
constructor(t) {
|
|
1242
|
-
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type ===
|
|
1244
|
+
if (super(t), this.t = !1, this.i = null, this.o = null, this.h = !0, this.shouldLog = !1, t.type === wt.CHILD) throw Error("The `animate` directive must be used in attribute position.");
|
|
1243
1245
|
this.createFinished();
|
|
1244
1246
|
}
|
|
1245
1247
|
createFinished() {
|
|
@@ -1256,7 +1258,7 @@ class fi extends be {
|
|
|
1256
1258
|
return d;
|
|
1257
1259
|
}
|
|
1258
1260
|
getController() {
|
|
1259
|
-
return
|
|
1261
|
+
return ci.get(this.u);
|
|
1260
1262
|
}
|
|
1261
1263
|
isDisabled() {
|
|
1262
1264
|
var t;
|
|
@@ -1265,17 +1267,17 @@ class fi extends be {
|
|
|
1265
1267
|
update(t, [e]) {
|
|
1266
1268
|
var r;
|
|
1267
1269
|
const i = this.u === void 0;
|
|
1268
|
-
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((o) => this.t = !0), this.element = t.element,
|
|
1270
|
+
return i && (this.u = (r = t.options) == null ? void 0 : r.host, this.u.addController(this), this.u.updateComplete.then((o) => 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);
|
|
1269
1271
|
}
|
|
1270
1272
|
p(t) {
|
|
1271
1273
|
t = t ?? {};
|
|
1272
1274
|
const e = this.getController();
|
|
1273
|
-
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties =
|
|
1275
|
+
e !== void 0 && ((t = { ...e.defaultOptions, ...t }).keyframeOptions = { ...e.defaultOptions.keyframeOptions, ...t.keyframeOptions }), t.properties ?? (t.properties = ui), this.options = t;
|
|
1274
1276
|
}
|
|
1275
1277
|
m() {
|
|
1276
1278
|
const t = {}, e = this.element.getBoundingClientRect(), i = getComputedStyle(this.element);
|
|
1277
1279
|
return this.options.properties.forEach((r) => {
|
|
1278
|
-
const o = e[r] ?? (
|
|
1280
|
+
const o = e[r] ?? (at[r] ? void 0 : i[r]), n = Number(o);
|
|
1279
1281
|
t[r] = isNaN(n) ? o + "" : n;
|
|
1280
1282
|
}), t;
|
|
1281
1283
|
}
|
|
@@ -1294,17 +1296,17 @@ class fi extends be {
|
|
|
1294
1296
|
async hostUpdated() {
|
|
1295
1297
|
if (!this.h || !this.element.isConnected || this.options.skipInitial && !this.isHostRendered) return;
|
|
1296
1298
|
let t;
|
|
1297
|
-
this.prepare(), await
|
|
1299
|
+
this.prepare(), await Zt;
|
|
1298
1300
|
const e = this.O(), i = this.j(this.options.keyframeOptions, e), r = this.m();
|
|
1299
1301
|
if (this.A !== void 0) {
|
|
1300
1302
|
const { from: o, to: n } = this.N(this.A, r, e);
|
|
1301
1303
|
this.log("measured", [this.A, r, o, n]), t = this.calculateKeyframes(o, n);
|
|
1302
1304
|
} else {
|
|
1303
|
-
const o =
|
|
1305
|
+
const o = nt.get(this.options.inId);
|
|
1304
1306
|
if (o) {
|
|
1305
|
-
|
|
1307
|
+
nt.delete(this.options.inId);
|
|
1306
1308
|
const { from: n, to: a } = this.N(o, r, e);
|
|
1307
|
-
t = this.calculateKeyframes(n, a), t = this.options.in ? [{ ...this.options.in[0], ...t[0] }, ...this.options.in.slice(1), t[1]] : t,
|
|
1309
|
+
t = this.calculateKeyframes(n, 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);
|
|
1308
1310
|
} else this.options.in && (t = [...this.options.in, {}]);
|
|
1309
1311
|
}
|
|
1310
1312
|
this.animate(t, i);
|
|
@@ -1320,8 +1322,8 @@ class fi extends be {
|
|
|
1320
1322
|
}
|
|
1321
1323
|
async disconnected() {
|
|
1322
1324
|
var e;
|
|
1323
|
-
if (!this.h || (this.options.id !== void 0 &&
|
|
1324
|
-
if (this.prepare(), await
|
|
1325
|
+
if (!this.h || (this.options.id !== void 0 && nt.set(this.options.id, this.A), this.options.out === void 0)) return;
|
|
1326
|
+
if (this.prepare(), await Zt(), (e = this.i) == null ? void 0 : e.isConnected) {
|
|
1325
1327
|
const i = this.o && this.o.parentNode === this.i ? this.o : null;
|
|
1326
1328
|
if (this.i.insertBefore(this.element, i), this.options.stabilizeOut) {
|
|
1327
1329
|
const r = this.m();
|
|
@@ -1347,19 +1349,19 @@ class fi extends be {
|
|
|
1347
1349
|
O() {
|
|
1348
1350
|
const t = [];
|
|
1349
1351
|
for (let e = this.element.parentNode; e; e = e == null ? void 0 : e.parentNode) {
|
|
1350
|
-
const i =
|
|
1352
|
+
const i = Jt.get(e);
|
|
1351
1353
|
i && !i.isDisabled() && i && t.push(i);
|
|
1352
1354
|
}
|
|
1353
1355
|
return t;
|
|
1354
1356
|
}
|
|
1355
1357
|
get isHostRendered() {
|
|
1356
|
-
const t =
|
|
1358
|
+
const t = Yt.has(this.u);
|
|
1357
1359
|
return t || this.u.updateComplete.then(() => {
|
|
1358
|
-
|
|
1360
|
+
Yt.add(this.u);
|
|
1359
1361
|
}), t;
|
|
1360
1362
|
}
|
|
1361
1363
|
j(t, e = this.O()) {
|
|
1362
|
-
const i = { ...
|
|
1364
|
+
const i = { ...li };
|
|
1363
1365
|
return e.forEach((r) => Object.assign(i, r.options.keyframeOptions)), Object.assign(i, t), i;
|
|
1364
1366
|
}
|
|
1365
1367
|
N(t, e, i) {
|
|
@@ -1376,8 +1378,8 @@ class fi extends be {
|
|
|
1376
1378
|
const a = {};
|
|
1377
1379
|
for (const c in e) {
|
|
1378
1380
|
const h = t[c], l = e[c];
|
|
1379
|
-
if (c in
|
|
1380
|
-
const u =
|
|
1381
|
+
if (c in at) {
|
|
1382
|
+
const u = at[c];
|
|
1381
1383
|
if (h === void 0 || l === void 0) continue;
|
|
1382
1384
|
const p = u(h, l);
|
|
1383
1385
|
p.transform !== void 0 && (a[c] = p.value, n = !0, r.transform = `${r.transform ?? ""} ${p.transform}`, p.overrideFrom !== void 0 && Object.assign(r, p.overrideFrom));
|
|
@@ -1408,16 +1410,16 @@ class fi extends be {
|
|
|
1408
1410
|
this.shouldLog && !this.isDisabled() && console.log(t, this.options.id, e);
|
|
1409
1411
|
}
|
|
1410
1412
|
}
|
|
1411
|
-
const
|
|
1413
|
+
const pi = xt(di), fi = { 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>' };
|
|
1412
1414
|
/**
|
|
1413
1415
|
* @license
|
|
1414
1416
|
* Copyright 2018 Google LLC
|
|
1415
1417
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1416
1418
|
*/
|
|
1417
|
-
const
|
|
1419
|
+
const Qt = xt(class extends ge {
|
|
1418
1420
|
constructor(s) {
|
|
1419
1421
|
var t;
|
|
1420
|
-
if (super(s), s.type !==
|
|
1422
|
+
if (super(s), s.type !== wt.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.");
|
|
1421
1423
|
}
|
|
1422
1424
|
render(s) {
|
|
1423
1425
|
return " " + Object.keys(s).filter((t) => s[t]).join(" ") + " ";
|
|
@@ -1439,7 +1441,7 @@ const te = Ct(class extends me {
|
|
|
1439
1441
|
}
|
|
1440
1442
|
}), y = (s, t, e) => {
|
|
1441
1443
|
s && e.style.setProperty(t, s);
|
|
1442
|
-
},
|
|
1444
|
+
}, ye = (s, t) => {
|
|
1443
1445
|
var e, i, r, o, n, a, c, h, l;
|
|
1444
1446
|
y((e = s.colors) == null ? void 0 : e.primaryBackground, "--primary-background", t), y(
|
|
1445
1447
|
(i = s.colors) == null ? void 0 : i.textOnPrimaryBackground,
|
|
@@ -1476,10 +1478,10 @@ const te = Ct(class extends me {
|
|
|
1476
1478
|
* Copyright 2020 Google LLC
|
|
1477
1479
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1478
1480
|
*/
|
|
1479
|
-
const
|
|
1480
|
-
class
|
|
1481
|
+
const be = () => new gi();
|
|
1482
|
+
class gi {
|
|
1481
1483
|
}
|
|
1482
|
-
const
|
|
1484
|
+
const ct = /* @__PURE__ */ new WeakMap(), $e = xt(class extends me {
|
|
1483
1485
|
render(s) {
|
|
1484
1486
|
return d;
|
|
1485
1487
|
}
|
|
@@ -1491,13 +1493,13 @@ const lt = /* @__PURE__ */ new WeakMap(), we = Ct(class extends be {
|
|
|
1491
1493
|
rt(s) {
|
|
1492
1494
|
if (this.isConnected || (s = void 0), typeof this.G == "function") {
|
|
1493
1495
|
const t = this.ht ?? globalThis;
|
|
1494
|
-
let e =
|
|
1495
|
-
e === void 0 && (e = /* @__PURE__ */ new WeakMap(),
|
|
1496
|
+
let e = ct.get(t);
|
|
1497
|
+
e === void 0 && (e = /* @__PURE__ */ new WeakMap(), ct.set(t, e)), e.get(this.G) !== void 0 && this.G.call(this.ht, void 0), e.set(this.G, s), s !== void 0 && this.G.call(this.ht, s);
|
|
1496
1498
|
} else this.G.value = s;
|
|
1497
1499
|
}
|
|
1498
1500
|
get lt() {
|
|
1499
1501
|
var s, t;
|
|
1500
|
-
return typeof this.G == "function" ? (s =
|
|
1502
|
+
return typeof this.G == "function" ? (s = ct.get(this.ht ?? globalThis)) == null ? void 0 : s.get(this.G) : (t = this.G) == null ? void 0 : t.value;
|
|
1501
1503
|
}
|
|
1502
1504
|
disconnected() {
|
|
1503
1505
|
this.lt === this.ct && this.rt(void 0);
|
|
@@ -1506,14 +1508,14 @@ const lt = /* @__PURE__ */ new WeakMap(), we = Ct(class extends be {
|
|
|
1506
1508
|
this.rt(this.ct);
|
|
1507
1509
|
}
|
|
1508
1510
|
});
|
|
1509
|
-
var
|
|
1511
|
+
var vi = Object.defineProperty, q = (s, t, e, i) => {
|
|
1510
1512
|
for (var r = void 0, o = s.length - 1, n; o >= 0; o--)
|
|
1511
1513
|
(n = s[o]) && (r = n(t, e, r) || r);
|
|
1512
|
-
return r &&
|
|
1514
|
+
return r && vi(t, e, r), r;
|
|
1513
1515
|
};
|
|
1514
|
-
const
|
|
1516
|
+
const St = class St extends m {
|
|
1515
1517
|
constructor() {
|
|
1516
|
-
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef =
|
|
1518
|
+
super(...arguments), this.active = !1, this.triggerVisible = !0, this.loaded = !1, this.containerRef = be(), this.widgetActive$ = new fe(!1), this.componentIsDestroyed$ = new _t();
|
|
1517
1519
|
}
|
|
1518
1520
|
async connectedCallback() {
|
|
1519
1521
|
super.connectedCallback(), this.icon = await this._renderSymbol(), this.loaded = !0, this._applyBranding();
|
|
@@ -1548,7 +1550,7 @@ const Pt = class Pt extends m {
|
|
|
1548
1550
|
}
|
|
1549
1551
|
_applyBranding() {
|
|
1550
1552
|
var t;
|
|
1551
|
-
(t = this.application) != null && t.settings &&
|
|
1553
|
+
(t = this.application) != null && t.settings && ye(this.application.settings.branding, this);
|
|
1552
1554
|
}
|
|
1553
1555
|
async _renderSymbol() {
|
|
1554
1556
|
var a, c, h;
|
|
@@ -1558,7 +1560,7 @@ const Pt = class Pt extends m {
|
|
|
1558
1560
|
const i = (h = this.application) == null ? void 0 : h.triggerIcon;
|
|
1559
1561
|
if (!i)
|
|
1560
1562
|
return d;
|
|
1561
|
-
const r = async (l) =>
|
|
1563
|
+
const r = async (l) => fi, { type: o, content: n } = i;
|
|
1562
1564
|
switch (o) {
|
|
1563
1565
|
case "Telia": {
|
|
1564
1566
|
const l = await r();
|
|
@@ -1588,11 +1590,11 @@ const Pt = class Pt extends m {
|
|
|
1588
1590
|
render() {
|
|
1589
1591
|
var t, e, i, r, o, n, a;
|
|
1590
1592
|
return C`<div
|
|
1591
|
-
class=${
|
|
1593
|
+
class=${Qt({
|
|
1592
1594
|
"trigger-container": !0,
|
|
1593
1595
|
hidden: !this.triggerVisible
|
|
1594
1596
|
})}
|
|
1595
|
-
${
|
|
1597
|
+
${$e(this.containerRef)}
|
|
1596
1598
|
>
|
|
1597
1599
|
${!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) ? C`
|
|
1598
1600
|
<button
|
|
@@ -1600,9 +1602,9 @@ const Pt = class Pt extends m {
|
|
|
1600
1602
|
aria-label="${this.application.settings.branding.other.buttonLabelText ?? "Widget trigger"}"
|
|
1601
1603
|
class="trigger-label"
|
|
1602
1604
|
@click=${this.toggleActive}
|
|
1603
|
-
${
|
|
1605
|
+
${pi({
|
|
1604
1606
|
keyframeOptions: {},
|
|
1605
|
-
in:
|
|
1607
|
+
in: hi,
|
|
1606
1608
|
stabilizeOut: !0,
|
|
1607
1609
|
skipInitial: !1
|
|
1608
1610
|
})}
|
|
@@ -1614,7 +1616,7 @@ const Pt = class Pt extends m {
|
|
|
1614
1616
|
<button
|
|
1615
1617
|
type="button"
|
|
1616
1618
|
aria-label="${((a = (n = (o = this.application) == null ? void 0 : o.settings) == null ? void 0 : n.branding.other) == null ? void 0 : a.buttonLabelText) ?? "Widget trigger"}"
|
|
1617
|
-
class=${
|
|
1619
|
+
class=${Qt({
|
|
1618
1620
|
trigger: !0,
|
|
1619
1621
|
active: this.active,
|
|
1620
1622
|
rendered: this.loaded
|
|
@@ -1653,7 +1655,7 @@ const Pt = class Pt extends m {
|
|
|
1653
1655
|
</div>`;
|
|
1654
1656
|
}
|
|
1655
1657
|
};
|
|
1656
|
-
|
|
1658
|
+
St.styles = [
|
|
1657
1659
|
k`
|
|
1658
1660
|
:host {
|
|
1659
1661
|
--voca-rem-multiplier: 0.625;
|
|
@@ -1785,28 +1787,28 @@ Pt.styles = [
|
|
|
1785
1787
|
}
|
|
1786
1788
|
`
|
|
1787
1789
|
];
|
|
1788
|
-
let $ =
|
|
1789
|
-
|
|
1790
|
+
let $ = St;
|
|
1791
|
+
q([
|
|
1790
1792
|
g({ attribute: !1 })
|
|
1791
1793
|
], $.prototype, "application");
|
|
1792
|
-
|
|
1794
|
+
q([
|
|
1793
1795
|
j()
|
|
1794
1796
|
], $.prototype, "active");
|
|
1795
|
-
|
|
1797
|
+
q([
|
|
1796
1798
|
j()
|
|
1797
1799
|
], $.prototype, "triggerVisible");
|
|
1798
|
-
|
|
1800
|
+
q([
|
|
1799
1801
|
j()
|
|
1800
1802
|
], $.prototype, "loaded");
|
|
1801
|
-
|
|
1803
|
+
q([
|
|
1802
1804
|
j()
|
|
1803
1805
|
], $.prototype, "icon");
|
|
1804
|
-
var
|
|
1806
|
+
var mi = Object.defineProperty, A = (s, t, e, i) => {
|
|
1805
1807
|
for (var r = void 0, o = s.length - 1, n; o >= 0; o--)
|
|
1806
1808
|
(n = s[o]) && (r = n(t, e, r) || r);
|
|
1807
|
-
return r &&
|
|
1809
|
+
return r && mi(t, e, r), r;
|
|
1808
1810
|
};
|
|
1809
|
-
const
|
|
1811
|
+
const _e = (s) => {
|
|
1810
1812
|
const e = class e extends s {
|
|
1811
1813
|
constructor() {
|
|
1812
1814
|
super(...arguments), this.properties = {}, this.context = {}, this.layout = {}, this.nodes = [];
|
|
@@ -1862,26 +1864,26 @@ const xe = (s) => {
|
|
|
1862
1864
|
], t.prototype, "application"), A([
|
|
1863
1865
|
g({ attribute: !1 })
|
|
1864
1866
|
], t.prototype, "parent"), t;
|
|
1865
|
-
},
|
|
1867
|
+
}, Pt = class Pt extends _e(m) {
|
|
1866
1868
|
render() {
|
|
1867
1869
|
return C`Non resolved component`;
|
|
1868
1870
|
}
|
|
1869
1871
|
};
|
|
1870
|
-
|
|
1872
|
+
Pt.styles = [
|
|
1871
1873
|
k`
|
|
1872
1874
|
:host {
|
|
1873
1875
|
display: block;
|
|
1874
1876
|
}
|
|
1875
1877
|
`
|
|
1876
1878
|
];
|
|
1877
|
-
let
|
|
1878
|
-
var
|
|
1879
|
+
let vt = Pt;
|
|
1880
|
+
var At = /* @__PURE__ */ ((s) => (s.Inline = "inline", s.Trigger = "trigger", s))(At || {});
|
|
1879
1881
|
/**
|
|
1880
1882
|
* @license
|
|
1881
1883
|
* Copyright 2021 Google LLC
|
|
1882
1884
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1883
1885
|
*/
|
|
1884
|
-
let
|
|
1886
|
+
let yi = class extends Event {
|
|
1885
1887
|
constructor(t, e, i, r) {
|
|
1886
1888
|
super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e, this.callback = i, this.subscribe = r ?? !1;
|
|
1887
1889
|
}
|
|
@@ -1896,7 +1898,7 @@ let $i = class extends Event {
|
|
|
1896
1898
|
* Copyright 2021 Google LLC
|
|
1897
1899
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1898
1900
|
*/
|
|
1899
|
-
class
|
|
1901
|
+
class bi {
|
|
1900
1902
|
get value() {
|
|
1901
1903
|
return this.o;
|
|
1902
1904
|
}
|
|
@@ -1929,12 +1931,12 @@ class _i {
|
|
|
1929
1931
|
* Copyright 2021 Google LLC
|
|
1930
1932
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1931
1933
|
*/
|
|
1932
|
-
let
|
|
1934
|
+
let $i = class extends Event {
|
|
1933
1935
|
constructor(t, e) {
|
|
1934
1936
|
super("context-provider", { bubbles: !0, composed: !0 }), this.context = t, this.contextTarget = e;
|
|
1935
1937
|
}
|
|
1936
1938
|
};
|
|
1937
|
-
class
|
|
1939
|
+
class te extends bi {
|
|
1938
1940
|
constructor(t, e, i) {
|
|
1939
1941
|
var r, o;
|
|
1940
1942
|
super(e.context !== void 0 ? e.initialValue : i), this.onContextRequest = (n) => {
|
|
@@ -1944,7 +1946,7 @@ class ee extends _i {
|
|
|
1944
1946
|
}, this.onProviderRequest = (n) => {
|
|
1945
1947
|
if (n.context !== this.context || (n.contextTarget ?? n.composedPath()[0]) === this.host) return;
|
|
1946
1948
|
const a = /* @__PURE__ */ new Set();
|
|
1947
|
-
for (const [c, { consumerHost: h }] of this.subscriptions) a.has(c) || (a.add(c), h.dispatchEvent(new
|
|
1949
|
+
for (const [c, { consumerHost: h }] of this.subscriptions) a.has(c) || (a.add(c), h.dispatchEvent(new yi(this.context, h, c, !0)));
|
|
1948
1950
|
n.stopPropagation();
|
|
1949
1951
|
}, this.host = t, e.context !== void 0 ? this.context = e.context : this.context = e, this.attachListeners(), (o = (r = this.host).addController) == null || o.call(r, this);
|
|
1950
1952
|
}
|
|
@@ -1952,7 +1954,7 @@ class ee extends _i {
|
|
|
1952
1954
|
this.host.addEventListener("context-request", this.onContextRequest), this.host.addEventListener("context-provider", this.onProviderRequest);
|
|
1953
1955
|
}
|
|
1954
1956
|
hostConnected() {
|
|
1955
|
-
this.host.dispatchEvent(new
|
|
1957
|
+
this.host.dispatchEvent(new $i(this.context, this.host));
|
|
1956
1958
|
}
|
|
1957
1959
|
}
|
|
1958
1960
|
/**
|
|
@@ -1960,7 +1962,7 @@ class ee extends _i {
|
|
|
1960
1962
|
* Copyright 2017 Google LLC
|
|
1961
1963
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
1962
1964
|
*/
|
|
1963
|
-
function
|
|
1965
|
+
function _i({ context: s }) {
|
|
1964
1966
|
return (t, e) => {
|
|
1965
1967
|
const i = /* @__PURE__ */ new WeakMap();
|
|
1966
1968
|
if (typeof e == "object") return { get() {
|
|
@@ -1968,11 +1970,11 @@ function xi({ context: s }) {
|
|
|
1968
1970
|
}, set(r) {
|
|
1969
1971
|
return i.get(this).setValue(r), t.set.call(this, r);
|
|
1970
1972
|
}, init(r) {
|
|
1971
|
-
return i.set(this, new
|
|
1973
|
+
return i.set(this, new te(this, { context: s, initialValue: r })), r;
|
|
1972
1974
|
} };
|
|
1973
1975
|
{
|
|
1974
1976
|
t.constructor.addInitializer((n) => {
|
|
1975
|
-
i.set(n, new
|
|
1977
|
+
i.set(n, new te(n, { context: s }));
|
|
1976
1978
|
});
|
|
1977
1979
|
const r = Object.getOwnPropertyDescriptor(t, e);
|
|
1978
1980
|
let o;
|
|
@@ -1993,14 +1995,14 @@ function xi({ context: s }) {
|
|
|
1993
1995
|
}
|
|
1994
1996
|
};
|
|
1995
1997
|
}
|
|
1996
|
-
var
|
|
1998
|
+
var wi = Object.defineProperty, we = (s, t, e, i) => {
|
|
1997
1999
|
for (var r = void 0, o = s.length - 1, n; o >= 0; o--)
|
|
1998
2000
|
(n = s[o]) && (r = n(t, e, r) || r);
|
|
1999
|
-
return r &&
|
|
2001
|
+
return r && wi(t, e, r), r;
|
|
2000
2002
|
};
|
|
2001
|
-
const
|
|
2003
|
+
const xi = "application", Ot = class Ot extends m {
|
|
2002
2004
|
constructor() {
|
|
2003
|
-
super(...arguments), this.nodes = [], this.wrapperRef =
|
|
2005
|
+
super(...arguments), this.nodes = [], this.wrapperRef = be(), this.fullscreen = !1, this.isReady = new fe(!1);
|
|
2004
2006
|
}
|
|
2005
2007
|
addChild(t) {
|
|
2006
2008
|
t.parent = this, this.nodes.push(t);
|
|
@@ -2009,7 +2011,7 @@ const Ci = "application", kt = class kt extends m {
|
|
|
2009
2011
|
if (!this.wrapperRef.value)
|
|
2010
2012
|
return;
|
|
2011
2013
|
const t = this.application.settings;
|
|
2012
|
-
t != null && t.branding &&
|
|
2014
|
+
t != null && t.branding && ye(t.branding, this.wrapperRef.value);
|
|
2013
2015
|
}
|
|
2014
2016
|
applyStyles() {
|
|
2015
2017
|
if (!this.wrapperRef.value)
|
|
@@ -2025,12 +2027,12 @@ const Ci = "application", kt = class kt extends m {
|
|
|
2025
2027
|
render() {
|
|
2026
2028
|
var i, r;
|
|
2027
2029
|
const t = this.application.settings.components.conversation;
|
|
2028
|
-
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 ===
|
|
2029
|
-
${
|
|
2030
|
+
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 === At.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)}>
|
|
2031
|
+
${he(this.nodes, (o) => o)}
|
|
2030
2032
|
</div>`;
|
|
2031
2033
|
}
|
|
2032
2034
|
};
|
|
2033
|
-
|
|
2035
|
+
Ot.styles = k`
|
|
2034
2036
|
:host {
|
|
2035
2037
|
--font-family: TeliaSans, Helvetica, Arial, Lucida Grande, sans-serif;
|
|
2036
2038
|
--spacing-xs: 0.2rem;
|
|
@@ -2196,59 +2198,20 @@ kt.styles = k`
|
|
|
2196
2198
|
animation: none;
|
|
2197
2199
|
}
|
|
2198
2200
|
`;
|
|
2199
|
-
let
|
|
2200
|
-
|
|
2201
|
+
let D = Ot;
|
|
2202
|
+
we([
|
|
2201
2203
|
g({ attribute: !0 })
|
|
2202
|
-
],
|
|
2203
|
-
|
|
2204
|
+
], D.prototype, "fullscreen");
|
|
2205
|
+
we([
|
|
2204
2206
|
g({ attribute: !1 }),
|
|
2205
|
-
|
|
2206
|
-
],
|
|
2207
|
-
|
|
2208
|
-
// TODO:
|
|
2209
|
-
// private static endpoint = 'http://localhost:5299/api'; // TODO:
|
|
2210
|
-
constructor(t = tt.endpoint) {
|
|
2211
|
-
this._endpoint = t;
|
|
2212
|
-
}
|
|
2213
|
-
async getSite(t) {
|
|
2214
|
-
const i = await (await fetch(t)).json();
|
|
2215
|
-
return i ? {
|
|
2216
|
-
id: i.id,
|
|
2217
|
-
triggers: i.triggers || [],
|
|
2218
|
-
apps: (i.widgets || []).map((r) => {
|
|
2219
|
-
let o = D.Trigger;
|
|
2220
|
-
r.renderStrategy.toLowerCase() === "inline" && (o = D.Inline);
|
|
2221
|
-
const n = 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";
|
|
2222
|
-
return {
|
|
2223
|
-
id: n,
|
|
2224
|
-
widgetId: n,
|
|
2225
|
-
renderStrategy: o,
|
|
2226
|
-
autoActivate: a,
|
|
2227
|
-
anchor: c,
|
|
2228
|
-
triggerIcon: {
|
|
2229
|
-
type: "Telia",
|
|
2230
|
-
content: h
|
|
2231
|
-
}
|
|
2232
|
-
};
|
|
2233
|
-
})
|
|
2234
|
-
} : null;
|
|
2235
|
-
}
|
|
2236
|
-
async getWidget(t) {
|
|
2237
|
-
const i = await (await fetch(`${this._endpoint}/widget/${t}`)).json();
|
|
2238
|
-
return i ? {
|
|
2239
|
-
name: i.name,
|
|
2240
|
-
config: JSON.parse(i.configuration)
|
|
2241
|
-
} : null;
|
|
2242
|
-
}
|
|
2243
|
-
};
|
|
2244
|
-
tt.endpoint = "https://widgets.ace.teliacompany.net/api";
|
|
2245
|
-
let ie = tt;
|
|
2246
|
-
var Ei = Object.defineProperty, Et = (s, t, e, i) => {
|
|
2207
|
+
_i({ context: xi })
|
|
2208
|
+
], D.prototype, "application");
|
|
2209
|
+
var Ai = Object.defineProperty, Ct = (s, t, e, i) => {
|
|
2247
2210
|
for (var r = void 0, o = s.length - 1, n; o >= 0; o--)
|
|
2248
2211
|
(n = s[o]) && (r = n(t, e, r) || r);
|
|
2249
|
-
return r &&
|
|
2212
|
+
return r && Ai(t, e, r), r;
|
|
2250
2213
|
};
|
|
2251
|
-
const
|
|
2214
|
+
const kt = class kt extends m {
|
|
2252
2215
|
constructor() {
|
|
2253
2216
|
super(), this.status = "deactivated", this.addEventListener("environment-created", this.onEnvironmentCreated);
|
|
2254
2217
|
}
|
|
@@ -2273,58 +2236,58 @@ const Tt = class Tt extends m {
|
|
|
2273
2236
|
render() {
|
|
2274
2237
|
if (!this.widget || this.status !== "activated")
|
|
2275
2238
|
return d;
|
|
2276
|
-
if (this.widget.renderStrategy ===
|
|
2239
|
+
if (this.widget.renderStrategy === At.Trigger) {
|
|
2277
2240
|
const t = new $();
|
|
2278
2241
|
return t.application = this.widget, t;
|
|
2279
2242
|
}
|
|
2280
2243
|
return this.widget.render();
|
|
2281
2244
|
}
|
|
2282
2245
|
};
|
|
2283
|
-
|
|
2246
|
+
kt.styles = [
|
|
2284
2247
|
k`
|
|
2285
2248
|
:host {
|
|
2286
2249
|
display: block;
|
|
2287
2250
|
}
|
|
2288
2251
|
`
|
|
2289
2252
|
];
|
|
2290
|
-
let U =
|
|
2291
|
-
|
|
2253
|
+
let U = kt;
|
|
2254
|
+
Ct([
|
|
2292
2255
|
g({ attribute: !0 })
|
|
2293
2256
|
], U.prototype, "name");
|
|
2294
|
-
|
|
2257
|
+
Ct([
|
|
2295
2258
|
j()
|
|
2296
2259
|
], U.prototype, "widget");
|
|
2297
|
-
|
|
2260
|
+
Ct([
|
|
2298
2261
|
j()
|
|
2299
2262
|
], U.prototype, "status");
|
|
2300
|
-
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot",
|
|
2263
|
+
customElements.get("ace-trigger-slot") || customElements.define("ace-trigger-slot", X);
|
|
2301
2264
|
customElements.get("ace-trigger") || customElements.define("ace-trigger", $);
|
|
2302
|
-
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component",
|
|
2303
|
-
customElements.get("ace-wrapper") || customElements.define("ace-wrapper",
|
|
2265
|
+
customElements.get("ace-unresolved-component") || customElements.define("ace-unresolved-component", vt);
|
|
2266
|
+
customElements.get("ace-wrapper") || customElements.define("ace-wrapper", D);
|
|
2304
2267
|
customElements.get("ace-widget") || customElements.define("ace-widget", U);
|
|
2305
|
-
const
|
|
2268
|
+
const Ci = (s) => {
|
|
2306
2269
|
const t = {};
|
|
2307
2270
|
return Object.keys(s).forEach((e) => {
|
|
2308
2271
|
e.indexOf("css-") > -1 && (t[e] = s[e]);
|
|
2309
2272
|
}), t;
|
|
2310
|
-
},
|
|
2311
|
-
const e =
|
|
2273
|
+
}, Ei = (s, t) => {
|
|
2274
|
+
const e = Ci(t);
|
|
2312
2275
|
Object.entries(e).forEach(([i, r]) => {
|
|
2313
2276
|
s.style.setProperty(i.replace("css-", ""), r);
|
|
2314
2277
|
});
|
|
2315
|
-
},
|
|
2278
|
+
}, Tt = class Tt extends _e(m) {
|
|
2316
2279
|
constructor() {
|
|
2317
2280
|
super(...arguments), this.nodes = [];
|
|
2318
2281
|
}
|
|
2319
2282
|
render() {
|
|
2320
2283
|
var t;
|
|
2321
|
-
return
|
|
2284
|
+
return Ei(this.renderRoot.host, this.properties), this.renderRoot.host.style.setProperty(
|
|
2322
2285
|
"--columns",
|
|
2323
2286
|
((t = this.properties.columns) == null ? void 0 : t.toString()) || "1"
|
|
2324
|
-
), C`${
|
|
2287
|
+
), C`${he(this.nodes, (e) => e)}`;
|
|
2325
2288
|
}
|
|
2326
2289
|
};
|
|
2327
|
-
|
|
2290
|
+
Tt.styles = [
|
|
2328
2291
|
k`
|
|
2329
2292
|
:host {
|
|
2330
2293
|
height: 100%;
|
|
@@ -2337,8 +2300,8 @@ Rt.styles = [
|
|
|
2337
2300
|
}
|
|
2338
2301
|
`
|
|
2339
2302
|
];
|
|
2340
|
-
let
|
|
2303
|
+
let ee = Tt;
|
|
2341
2304
|
export {
|
|
2342
|
-
|
|
2343
|
-
|
|
2305
|
+
ee as Area,
|
|
2306
|
+
ee as default
|
|
2344
2307
|
};
|