@telia-ace/widget-components-area-flamingo 1.0.13 → 1.1.12-rc.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,752 +0,0 @@
1
- var gt = Object.defineProperty, bt = Object.defineProperties;
2
- var Et = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var St = Object.prototype.hasOwnProperty, wt = Object.prototype.propertyIsEnumerable;
5
- var G = (n, t, e) => t in n ? gt(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, R = (n, t) => {
6
- for (var e in t || (t = {}))
7
- St.call(t, e) && G(n, e, t[e]);
8
- if (F)
9
- for (var e of F(t))
10
- wt.call(t, e) && G(n, e, t[e]);
11
- return n;
12
- }, M = (n, t) => bt(n, Et(t));
13
- var Q = (n, t, e) => new Promise((s, i) => {
14
- var r = (l) => {
15
- try {
16
- a(e.next(l));
17
- } catch (h) {
18
- i(h);
19
- }
20
- }, o = (l) => {
21
- try {
22
- a(e.throw(l));
23
- } catch (h) {
24
- i(h);
25
- }
26
- }, a = (l) => l.done ? s(l.value) : Promise.resolve(l.value).then(r, o);
27
- a((e = e.apply(n, t)).next());
28
- });
29
- import { K as Ct, X as xt } from "./index-dccce6e5.js";
30
- /**
31
- * @license
32
- * Copyright 2021 Google LLC
33
- * SPDX-License-Identifier: BSD-3-Clause
34
- */
35
- let Pt = class extends Event {
36
- constructor(t, e, s) {
37
- super("context-request", { bubbles: !0, composed: !0 }), this.context = t, this.callback = e, this.subscribe = s != null && s;
38
- }
39
- };
40
- /**
41
- * @license
42
- * Copyright 2021 Google LLC
43
- * SPDX-License-Identifier: BSD-3-Clause
44
- */
45
- let Ut = class {
46
- constructor(t, e, s, i) {
47
- var r;
48
- if (this.subscribe = !1, this.provided = !1, this.value = void 0, this.t = (o, a) => {
49
- this.unsubscribe && (this.unsubscribe !== a && (this.provided = !1, this.unsubscribe()), this.subscribe || this.unsubscribe()), this.value = o, this.host.requestUpdate(), this.provided && !this.subscribe || (this.provided = !0, this.callback && this.callback(o, a)), this.unsubscribe = a;
50
- }, this.host = t, e.context !== void 0) {
51
- const o = e;
52
- this.context = o.context, this.callback = o.callback, this.subscribe = (r = o.subscribe) !== null && r !== void 0 && r;
53
- } else
54
- this.context = e, this.callback = s, this.subscribe = i != null && i;
55
- this.host.addController(this);
56
- }
57
- hostConnected() {
58
- this.dispatchRequest();
59
- }
60
- hostDisconnected() {
61
- this.unsubscribe && (this.unsubscribe(), this.unsubscribe = void 0);
62
- }
63
- dispatchRequest() {
64
- this.host.dispatchEvent(new Pt(this.context, this.t, this.subscribe));
65
- }
66
- };
67
- /**
68
- * @license
69
- * Copyright 2017 Google LLC
70
- * SPDX-License-Identifier: BSD-3-Clause
71
- */
72
- const kt = ({ finisher: n, descriptor: t }) => (e, s) => {
73
- var i;
74
- if (s === void 0) {
75
- const r = (i = e.originalKey) !== null && i !== void 0 ? i : e.key, o = t != null ? { kind: "method", placement: "prototype", key: r, descriptor: t(e.key) } : M(R({}, e), { key: r });
76
- return n != null && (o.finisher = function(a) {
77
- n(a, r);
78
- }), o;
79
- }
80
- {
81
- const r = e.constructor;
82
- t !== void 0 && Object.defineProperty(e, s, t(s)), n == null || n(r, s);
83
- }
84
- };
85
- /**
86
- * @license
87
- * Copyright 2022 Google LLC
88
- * SPDX-License-Identifier: BSD-3-Clause
89
- */
90
- function ut({ context: n, subscribe: t }) {
91
- return kt({ finisher: (e, s) => {
92
- e.addInitializer((i) => {
93
- new Ut(i, { context: n, callback: (r) => {
94
- i[s] = r;
95
- }, subscribe: t });
96
- });
97
- } });
98
- }
99
- /**
100
- * @license
101
- * Copyright 2019 Google LLC
102
- * SPDX-License-Identifier: BSD-3-Clause
103
- */
104
- const H = window, Z = H.ShadowRoot && (H.ShadyCSS === void 0 || H.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, J = Symbol(), Y = /* @__PURE__ */ new WeakMap();
105
- let pt = class {
106
- constructor(t, e, s) {
107
- if (this._$cssResult$ = !0, s !== J)
108
- throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
109
- this.cssText = t, this.t = e;
110
- }
111
- get styleSheet() {
112
- let t = this.o;
113
- const e = this.t;
114
- if (Z && t === void 0) {
115
- const s = e !== void 0 && e.length === 1;
116
- s && (t = Y.get(e)), t === void 0 && ((this.o = t = new CSSStyleSheet()).replaceSync(this.cssText), s && Y.set(e, t));
117
- }
118
- return t;
119
- }
120
- toString() {
121
- return this.cssText;
122
- }
123
- };
124
- const Ht = (n) => new pt(typeof n == "string" ? n : n + "", void 0, J), Nt = (n, ...t) => {
125
- const e = n.length === 1 ? n[0] : t.reduce((s, i, r) => s + ((o) => {
126
- if (o._$cssResult$ === !0)
127
- return o.cssText;
128
- if (typeof o == "number")
129
- return o;
130
- 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.");
131
- })(i) + n[r + 1], n[0]);
132
- return new pt(e, n, J);
133
- }, Ot = (n, t) => {
134
- Z ? n.adoptedStyleSheets = t.map((e) => e instanceof CSSStyleSheet ? e : e.styleSheet) : t.forEach((e) => {
135
- const s = document.createElement("style"), i = H.litNonce;
136
- i !== void 0 && s.setAttribute("nonce", i), s.textContent = e.cssText, n.appendChild(s);
137
- });
138
- }, tt = Z ? (n) => n : (n) => n instanceof CSSStyleSheet ? ((t) => {
139
- let e = "";
140
- for (const s of t.cssRules)
141
- e += s.cssText;
142
- return Ht(e);
143
- })(n) : n;
144
- /**
145
- * @license
146
- * Copyright 2017 Google LLC
147
- * SPDX-License-Identifier: BSD-3-Clause
148
- */
149
- var z;
150
- const N = window, et = N.trustedTypes, Tt = et ? et.emptyScript : "", st = N.reactiveElementPolyfillSupport, q = { toAttribute(n, t) {
151
- switch (t) {
152
- case Boolean:
153
- n = n ? Tt : null;
154
- break;
155
- case Object:
156
- case Array:
157
- n = n == null ? n : JSON.stringify(n);
158
- }
159
- return n;
160
- }, fromAttribute(n, t) {
161
- let e = n;
162
- switch (t) {
163
- case Boolean:
164
- e = n !== null;
165
- break;
166
- case Number:
167
- e = n === null ? null : Number(n);
168
- break;
169
- case Object:
170
- case Array:
171
- try {
172
- e = JSON.parse(n);
173
- } catch (s) {
174
- e = null;
175
- }
176
- }
177
- return e;
178
- } }, $t = (n, t) => t !== n && (t == t || n == n), j = { attribute: !0, type: String, converter: q, reflect: !1, hasChanged: $t }, K = "finalized";
179
- let y = class extends HTMLElement {
180
- constructor() {
181
- super(), this._$Ei = /* @__PURE__ */ new Map(), this.isUpdatePending = !1, this.hasUpdated = !1, this._$El = null, this._$Eu();
182
- }
183
- static addInitializer(t) {
184
- var e;
185
- this.finalize(), ((e = this.h) !== null && e !== void 0 ? e : this.h = []).push(t);
186
- }
187
- static get observedAttributes() {
188
- this.finalize();
189
- const t = [];
190
- return this.elementProperties.forEach((e, s) => {
191
- const i = this._$Ep(s, e);
192
- i !== void 0 && (this._$Ev.set(i, s), t.push(i));
193
- }), t;
194
- }
195
- static createProperty(t, e = j) {
196
- if (e.state && (e.attribute = !1), this.finalize(), this.elementProperties.set(t, e), !e.noAccessor && !this.prototype.hasOwnProperty(t)) {
197
- const s = typeof t == "symbol" ? Symbol() : "__" + t, i = this.getPropertyDescriptor(t, s, e);
198
- i !== void 0 && Object.defineProperty(this.prototype, t, i);
199
- }
200
- }
201
- static getPropertyDescriptor(t, e, s) {
202
- return { get() {
203
- return this[e];
204
- }, set(i) {
205
- const r = this[t];
206
- this[e] = i, this.requestUpdate(t, r, s);
207
- }, configurable: !0, enumerable: !0 };
208
- }
209
- static getPropertyOptions(t) {
210
- return this.elementProperties.get(t) || j;
211
- }
212
- static finalize() {
213
- if (this.hasOwnProperty(K))
214
- return !1;
215
- this[K] = !0;
216
- const t = Object.getPrototypeOf(this);
217
- if (t.finalize(), t.h !== void 0 && (this.h = [...t.h]), this.elementProperties = new Map(t.elementProperties), this._$Ev = /* @__PURE__ */ new Map(), this.hasOwnProperty("properties")) {
218
- const e = this.properties, s = [...Object.getOwnPropertyNames(e), ...Object.getOwnPropertySymbols(e)];
219
- for (const i of s)
220
- this.createProperty(i, e[i]);
221
- }
222
- return this.elementStyles = this.finalizeStyles(this.styles), !0;
223
- }
224
- static finalizeStyles(t) {
225
- const e = [];
226
- if (Array.isArray(t)) {
227
- const s = new Set(t.flat(1 / 0).reverse());
228
- for (const i of s)
229
- e.unshift(tt(i));
230
- } else
231
- t !== void 0 && e.push(tt(t));
232
- return e;
233
- }
234
- static _$Ep(t, e) {
235
- const s = e.attribute;
236
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof t == "string" ? t.toLowerCase() : void 0;
237
- }
238
- _$Eu() {
239
- var t;
240
- this._$E_ = new Promise((e) => this.enableUpdating = e), this._$AL = /* @__PURE__ */ new Map(), this._$Eg(), this.requestUpdate(), (t = this.constructor.h) === null || t === void 0 || t.forEach((e) => e(this));
241
- }
242
- addController(t) {
243
- var e, s;
244
- ((e = this._$ES) !== null && e !== void 0 ? e : this._$ES = []).push(t), this.renderRoot !== void 0 && this.isConnected && ((s = t.hostConnected) === null || s === void 0 || s.call(t));
245
- }
246
- removeController(t) {
247
- var e;
248
- (e = this._$ES) === null || e === void 0 || e.splice(this._$ES.indexOf(t) >>> 0, 1);
249
- }
250
- _$Eg() {
251
- this.constructor.elementProperties.forEach((t, e) => {
252
- this.hasOwnProperty(e) && (this._$Ei.set(e, this[e]), delete this[e]);
253
- });
254
- }
255
- createRenderRoot() {
256
- var t;
257
- const e = (t = this.shadowRoot) !== null && t !== void 0 ? t : this.attachShadow(this.constructor.shadowRootOptions);
258
- return Ot(e, this.constructor.elementStyles), e;
259
- }
260
- connectedCallback() {
261
- var t;
262
- this.renderRoot === void 0 && (this.renderRoot = this.createRenderRoot()), this.enableUpdating(!0), (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
263
- var s;
264
- return (s = e.hostConnected) === null || s === void 0 ? void 0 : s.call(e);
265
- });
266
- }
267
- enableUpdating(t) {
268
- }
269
- disconnectedCallback() {
270
- var t;
271
- (t = this._$ES) === null || t === void 0 || t.forEach((e) => {
272
- var s;
273
- return (s = e.hostDisconnected) === null || s === void 0 ? void 0 : s.call(e);
274
- });
275
- }
276
- attributeChangedCallback(t, e, s) {
277
- this._$AK(t, s);
278
- }
279
- _$EO(t, e, s = j) {
280
- var i;
281
- const r = this.constructor._$Ep(t, s);
282
- if (r !== void 0 && s.reflect === !0) {
283
- const o = (((i = s.converter) === null || i === void 0 ? void 0 : i.toAttribute) !== void 0 ? s.converter : q).toAttribute(e, s.type);
284
- this._$El = t, o == null ? this.removeAttribute(r) : this.setAttribute(r, o), this._$El = null;
285
- }
286
- }
287
- _$AK(t, e) {
288
- var s;
289
- const i = this.constructor, r = i._$Ev.get(t);
290
- if (r !== void 0 && this._$El !== r) {
291
- const o = i.getPropertyOptions(r), a = typeof o.converter == "function" ? { fromAttribute: o.converter } : ((s = o.converter) === null || s === void 0 ? void 0 : s.fromAttribute) !== void 0 ? o.converter : q;
292
- this._$El = r, this[r] = a.fromAttribute(e, o.type), this._$El = null;
293
- }
294
- }
295
- requestUpdate(t, e, s) {
296
- let i = !0;
297
- t !== void 0 && (((s = s || this.constructor.getPropertyOptions(t)).hasChanged || $t)(this[t], e) ? (this._$AL.has(t) || this._$AL.set(t, e), s.reflect === !0 && this._$El !== t && (this._$EC === void 0 && (this._$EC = /* @__PURE__ */ new Map()), this._$EC.set(t, s))) : i = !1), !this.isUpdatePending && i && (this._$E_ = this._$Ej());
298
- }
299
- _$Ej() {
300
- return Q(this, null, function* () {
301
- this.isUpdatePending = !0;
302
- try {
303
- yield this._$E_;
304
- } catch (e) {
305
- Promise.reject(e);
306
- }
307
- const t = this.scheduleUpdate();
308
- return t != null && (yield t), !this.isUpdatePending;
309
- });
310
- }
311
- scheduleUpdate() {
312
- return this.performUpdate();
313
- }
314
- performUpdate() {
315
- var t;
316
- if (!this.isUpdatePending)
317
- return;
318
- this.hasUpdated, this._$Ei && (this._$Ei.forEach((i, r) => this[r] = i), this._$Ei = void 0);
319
- let e = !1;
320
- const s = this._$AL;
321
- try {
322
- e = this.shouldUpdate(s), e ? (this.willUpdate(s), (t = this._$ES) === null || t === void 0 || t.forEach((i) => {
323
- var r;
324
- return (r = i.hostUpdate) === null || r === void 0 ? void 0 : r.call(i);
325
- }), this.update(s)) : this._$Ek();
326
- } catch (i) {
327
- throw e = !1, this._$Ek(), i;
328
- }
329
- e && this._$AE(s);
330
- }
331
- willUpdate(t) {
332
- }
333
- _$AE(t) {
334
- var e;
335
- (e = this._$ES) === null || e === void 0 || e.forEach((s) => {
336
- var i;
337
- return (i = s.hostUpdated) === null || i === void 0 ? void 0 : i.call(s);
338
- }), this.hasUpdated || (this.hasUpdated = !0, this.firstUpdated(t)), this.updated(t);
339
- }
340
- _$Ek() {
341
- this._$AL = /* @__PURE__ */ new Map(), this.isUpdatePending = !1;
342
- }
343
- get updateComplete() {
344
- return this.getUpdateComplete();
345
- }
346
- getUpdateComplete() {
347
- return this._$E_;
348
- }
349
- shouldUpdate(t) {
350
- return !0;
351
- }
352
- update(t) {
353
- this._$EC !== void 0 && (this._$EC.forEach((e, s) => this._$EO(s, this[s], e)), this._$EC = void 0), this._$Ek();
354
- }
355
- updated(t) {
356
- }
357
- firstUpdated(t) {
358
- }
359
- };
360
- y[K] = !0, y.elementProperties = /* @__PURE__ */ new Map(), y.elementStyles = [], y.shadowRootOptions = { mode: "open" }, st == null || st({ ReactiveElement: y }), ((z = N.reactiveElementVersions) !== null && z !== void 0 ? z : N.reactiveElementVersions = []).push("1.6.3");
361
- /**
362
- * @license
363
- * Copyright 2017 Google LLC
364
- * SPDX-License-Identifier: BSD-3-Clause
365
- */
366
- var L;
367
- const O = window, A = O.trustedTypes, it = A ? A.createPolicy("lit-html", { createHTML: (n) => n }) : void 0, W = "$lit$", v = `lit$${(Math.random() + "").slice(9)}$`, vt = "?" + v, Rt = `<${vt}>`, m = document, C = () => m.createComment(""), x = (n) => n === null || typeof n != "object" && typeof n != "function", _t = Array.isArray, Mt = (n) => _t(n) || typeof (n == null ? void 0 : n[Symbol.iterator]) == "function", D = `[
368
- \f\r]`, S = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, nt = /-->/g, ot = />/g, _ = RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
369
- \f\r"'\`<>=]|("|')|))|$)`, "g"), rt = /'/g, lt = /"/g, ft = /^(?:script|style|textarea|title)$/i, zt = (n) => (t, ...e) => ({ _$litType$: n, strings: t, values: e }), ht = zt(1), g = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), at = /* @__PURE__ */ new WeakMap(), f = m.createTreeWalker(m, 129, null, !1);
370
- function mt(n, t) {
371
- if (!Array.isArray(n) || !n.hasOwnProperty("raw"))
372
- throw Error("invalid template strings array");
373
- return it !== void 0 ? it.createHTML(t) : t;
374
- }
375
- const jt = (n, t) => {
376
- const e = n.length - 1, s = [];
377
- let i, r = t === 2 ? "<svg>" : "", o = S;
378
- for (let a = 0; a < e; a++) {
379
- const l = n[a];
380
- let h, c, d = -1, p = 0;
381
- for (; p < l.length && (o.lastIndex = p, c = o.exec(l), c !== null); )
382
- p = o.lastIndex, o === S ? c[1] === "!--" ? o = nt : c[1] !== void 0 ? o = ot : c[2] !== void 0 ? (ft.test(c[2]) && (i = RegExp("</" + c[2], "g")), o = _) : c[3] !== void 0 && (o = _) : o === _ ? c[0] === ">" ? (o = i != null ? i : S, d = -1) : c[1] === void 0 ? d = -2 : (d = o.lastIndex - c[2].length, h = c[1], o = c[3] === void 0 ? _ : c[3] === '"' ? lt : rt) : o === lt || o === rt ? o = _ : o === nt || o === ot ? o = S : (o = _, i = void 0);
383
- const $ = o === _ && n[a + 1].startsWith("/>") ? " " : "";
384
- r += o === S ? l + Rt : d >= 0 ? (s.push(h), l.slice(0, d) + W + l.slice(d) + v + $) : l + v + (d === -2 ? (s.push(void 0), a) : $);
385
- }
386
- return [mt(n, r + (n[e] || "<?>") + (t === 2 ? "</svg>" : "")), s];
387
- };
388
- class P {
389
- constructor({ strings: t, _$litType$: e }, s) {
390
- let i;
391
- this.parts = [];
392
- let r = 0, o = 0;
393
- const a = t.length - 1, l = this.parts, [h, c] = jt(t, e);
394
- if (this.el = P.createElement(h, s), f.currentNode = this.el.content, e === 2) {
395
- const d = this.el.content, p = d.firstChild;
396
- p.remove(), d.append(...p.childNodes);
397
- }
398
- for (; (i = f.nextNode()) !== null && l.length < a; ) {
399
- if (i.nodeType === 1) {
400
- if (i.hasAttributes()) {
401
- const d = [];
402
- for (const p of i.getAttributeNames())
403
- if (p.endsWith(W) || p.startsWith(v)) {
404
- const $ = c[o++];
405
- if (d.push(p), $ !== void 0) {
406
- const At = i.getAttribute($.toLowerCase() + W).split(v), k = /([.?@])?(.*)/.exec($);
407
- l.push({ type: 1, index: r, name: k[2], strings: At, ctor: k[1] === "." ? Dt : k[1] === "?" ? It : k[1] === "@" ? Vt : T });
408
- } else
409
- l.push({ type: 6, index: r });
410
- }
411
- for (const p of d)
412
- i.removeAttribute(p);
413
- }
414
- if (ft.test(i.tagName)) {
415
- const d = i.textContent.split(v), p = d.length - 1;
416
- if (p > 0) {
417
- i.textContent = A ? A.emptyScript : "";
418
- for (let $ = 0; $ < p; $++)
419
- i.append(d[$], C()), f.nextNode(), l.push({ type: 2, index: ++r });
420
- i.append(d[p], C());
421
- }
422
- }
423
- } else if (i.nodeType === 8)
424
- if (i.data === vt)
425
- l.push({ type: 2, index: r });
426
- else {
427
- let d = -1;
428
- for (; (d = i.data.indexOf(v, d + 1)) !== -1; )
429
- l.push({ type: 7, index: r }), d += v.length - 1;
430
- }
431
- r++;
432
- }
433
- }
434
- static createElement(t, e) {
435
- const s = m.createElement("template");
436
- return s.innerHTML = t, s;
437
- }
438
- }
439
- function b(n, t, e = n, s) {
440
- var i, r, o, a;
441
- if (t === g)
442
- return t;
443
- let l = s !== void 0 ? (i = e._$Co) === null || i === void 0 ? void 0 : i[s] : e._$Cl;
444
- const h = x(t) ? void 0 : t._$litDirective$;
445
- return (l == null ? void 0 : l.constructor) !== h && ((r = l == null ? void 0 : l._$AO) === null || r === void 0 || r.call(l, !1), h === void 0 ? l = void 0 : (l = new h(n), l._$AT(n, e, s)), s !== void 0 ? ((o = (a = e)._$Co) !== null && o !== void 0 ? o : a._$Co = [])[s] = l : e._$Cl = l), l !== void 0 && (t = b(n, l._$AS(n, t.values), l, s)), t;
446
- }
447
- class Lt {
448
- constructor(t, e) {
449
- this._$AV = [], this._$AN = void 0, this._$AD = t, this._$AM = e;
450
- }
451
- get parentNode() {
452
- return this._$AM.parentNode;
453
- }
454
- get _$AU() {
455
- return this._$AM._$AU;
456
- }
457
- u(t) {
458
- var e;
459
- const { el: { content: s }, parts: i } = this._$AD, r = ((e = t == null ? void 0 : t.creationScope) !== null && e !== void 0 ? e : m).importNode(s, !0);
460
- f.currentNode = r;
461
- let o = f.nextNode(), a = 0, l = 0, h = i[0];
462
- for (; h !== void 0; ) {
463
- if (a === h.index) {
464
- let c;
465
- h.type === 2 ? c = new U(o, o.nextSibling, this, t) : h.type === 1 ? c = new h.ctor(o, h.name, h.strings, this, t) : h.type === 6 && (c = new qt(o, this, t)), this._$AV.push(c), h = i[++l];
466
- }
467
- a !== (h == null ? void 0 : h.index) && (o = f.nextNode(), a++);
468
- }
469
- return f.currentNode = m, r;
470
- }
471
- v(t) {
472
- let e = 0;
473
- for (const s of this._$AV)
474
- s !== void 0 && (s.strings !== void 0 ? (s._$AI(t, s, e), e += s.strings.length - 2) : s._$AI(t[e])), e++;
475
- }
476
- }
477
- class U {
478
- constructor(t, e, s, i) {
479
- var r;
480
- this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = t, this._$AB = e, this._$AM = s, this.options = i, this._$Cp = (r = i == null ? void 0 : i.isConnected) === null || r === void 0 || r;
481
- }
482
- get _$AU() {
483
- var t, e;
484
- return (e = (t = this._$AM) === null || t === void 0 ? void 0 : t._$AU) !== null && e !== void 0 ? e : this._$Cp;
485
- }
486
- get parentNode() {
487
- let t = this._$AA.parentNode;
488
- const e = this._$AM;
489
- return e !== void 0 && (t == null ? void 0 : t.nodeType) === 11 && (t = e.parentNode), t;
490
- }
491
- get startNode() {
492
- return this._$AA;
493
- }
494
- get endNode() {
495
- return this._$AB;
496
- }
497
- _$AI(t, e = this) {
498
- t = b(this, t, e), x(t) ? t === u || t == null || t === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : t !== this._$AH && t !== g && this._(t) : t._$litType$ !== void 0 ? this.g(t) : t.nodeType !== void 0 ? this.$(t) : Mt(t) ? this.T(t) : this._(t);
499
- }
500
- k(t) {
501
- return this._$AA.parentNode.insertBefore(t, this._$AB);
502
- }
503
- $(t) {
504
- this._$AH !== t && (this._$AR(), this._$AH = this.k(t));
505
- }
506
- _(t) {
507
- this._$AH !== u && x(this._$AH) ? this._$AA.nextSibling.data = t : this.$(m.createTextNode(t)), this._$AH = t;
508
- }
509
- g(t) {
510
- var e;
511
- const { values: s, _$litType$: i } = t, r = typeof i == "number" ? this._$AC(t) : (i.el === void 0 && (i.el = P.createElement(mt(i.h, i.h[0]), this.options)), i);
512
- if (((e = this._$AH) === null || e === void 0 ? void 0 : e._$AD) === r)
513
- this._$AH.v(s);
514
- else {
515
- const o = new Lt(r, this), a = o.u(this.options);
516
- o.v(s), this.$(a), this._$AH = o;
517
- }
518
- }
519
- _$AC(t) {
520
- let e = at.get(t.strings);
521
- return e === void 0 && at.set(t.strings, e = new P(t)), e;
522
- }
523
- T(t) {
524
- _t(this._$AH) || (this._$AH = [], this._$AR());
525
- const e = this._$AH;
526
- let s, i = 0;
527
- for (const r of t)
528
- i === e.length ? e.push(s = new U(this.k(C()), this.k(C()), this, this.options)) : s = e[i], s._$AI(r), i++;
529
- i < e.length && (this._$AR(s && s._$AB.nextSibling, i), e.length = i);
530
- }
531
- _$AR(t = this._$AA.nextSibling, e) {
532
- var s;
533
- for ((s = this._$AP) === null || s === void 0 || s.call(this, !1, !0, e); t && t !== this._$AB; ) {
534
- const i = t.nextSibling;
535
- t.remove(), t = i;
536
- }
537
- }
538
- setConnected(t) {
539
- var e;
540
- this._$AM === void 0 && (this._$Cp = t, (e = this._$AP) === null || e === void 0 || e.call(this, t));
541
- }
542
- }
543
- class T {
544
- constructor(t, e, s, i, r) {
545
- this.type = 1, this._$AH = u, this._$AN = void 0, this.element = t, this.name = e, this._$AM = i, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = u;
546
- }
547
- get tagName() {
548
- return this.element.tagName;
549
- }
550
- get _$AU() {
551
- return this._$AM._$AU;
552
- }
553
- _$AI(t, e = this, s, i) {
554
- const r = this.strings;
555
- let o = !1;
556
- if (r === void 0)
557
- t = b(this, t, e, 0), o = !x(t) || t !== this._$AH && t !== g, o && (this._$AH = t);
558
- else {
559
- const a = t;
560
- let l, h;
561
- for (t = r[0], l = 0; l < r.length - 1; l++)
562
- h = b(this, a[s + l], e, l), h === g && (h = this._$AH[l]), o || (o = !x(h) || h !== this._$AH[l]), h === u ? t = u : t !== u && (t += (h != null ? h : "") + r[l + 1]), this._$AH[l] = h;
563
- }
564
- o && !i && this.j(t);
565
- }
566
- j(t) {
567
- t === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, t != null ? t : "");
568
- }
569
- }
570
- class Dt extends T {
571
- constructor() {
572
- super(...arguments), this.type = 3;
573
- }
574
- j(t) {
575
- this.element[this.name] = t === u ? void 0 : t;
576
- }
577
- }
578
- const Bt = A ? A.emptyScript : "";
579
- class It extends T {
580
- constructor() {
581
- super(...arguments), this.type = 4;
582
- }
583
- j(t) {
584
- t && t !== u ? this.element.setAttribute(this.name, Bt) : this.element.removeAttribute(this.name);
585
- }
586
- }
587
- class Vt extends T {
588
- constructor(t, e, s, i, r) {
589
- super(t, e, s, i, r), this.type = 5;
590
- }
591
- _$AI(t, e = this) {
592
- var s;
593
- if ((t = (s = b(this, t, e, 0)) !== null && s !== void 0 ? s : u) === g)
594
- return;
595
- const i = this._$AH, r = t === u && i !== u || t.capture !== i.capture || t.once !== i.once || t.passive !== i.passive, o = t !== u && (i === u || r);
596
- r && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, t), this._$AH = t;
597
- }
598
- handleEvent(t) {
599
- var e, s;
600
- typeof this._$AH == "function" ? this._$AH.call((s = (e = this.options) === null || e === void 0 ? void 0 : e.host) !== null && s !== void 0 ? s : this.element, t) : this._$AH.handleEvent(t);
601
- }
602
- }
603
- class qt {
604
- constructor(t, e, s) {
605
- this.element = t, this.type = 6, this._$AN = void 0, this._$AM = e, this.options = s;
606
- }
607
- get _$AU() {
608
- return this._$AM._$AU;
609
- }
610
- _$AI(t) {
611
- b(this, t);
612
- }
613
- }
614
- const ct = O.litHtmlPolyfillSupport;
615
- ct == null || ct(P, U), ((L = O.litHtmlVersions) !== null && L !== void 0 ? L : O.litHtmlVersions = []).push("2.8.0");
616
- const Kt = (n, t, e) => {
617
- var s, i;
618
- const r = (s = e == null ? void 0 : e.renderBefore) !== null && s !== void 0 ? s : t;
619
- let o = r._$litPart$;
620
- if (o === void 0) {
621
- const a = (i = e == null ? void 0 : e.renderBefore) !== null && i !== void 0 ? i : null;
622
- r._$litPart$ = o = new U(t.insertBefore(C(), a), a, void 0, e != null ? e : {});
623
- }
624
- return o._$AI(n), o;
625
- };
626
- /**
627
- * @license
628
- * Copyright 2017 Google LLC
629
- * SPDX-License-Identifier: BSD-3-Clause
630
- */
631
- var B, I;
632
- class w extends y {
633
- constructor() {
634
- super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
635
- }
636
- createRenderRoot() {
637
- var t, e;
638
- const s = super.createRenderRoot();
639
- return (t = (e = this.renderOptions).renderBefore) !== null && t !== void 0 || (e.renderBefore = s.firstChild), s;
640
- }
641
- update(t) {
642
- const e = this.render();
643
- this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(t), this._$Do = Kt(e, this.renderRoot, this.renderOptions);
644
- }
645
- connectedCallback() {
646
- var t;
647
- super.connectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!0);
648
- }
649
- disconnectedCallback() {
650
- var t;
651
- super.disconnectedCallback(), (t = this._$Do) === null || t === void 0 || t.setConnected(!1);
652
- }
653
- render() {
654
- return g;
655
- }
656
- }
657
- w.finalized = !0, w._$litElement$ = !0, (B = globalThis.litElementHydrateSupport) === null || B === void 0 || B.call(globalThis, { LitElement: w });
658
- const dt = globalThis.litElementPolyfillSupport;
659
- dt == null || dt({ LitElement: w });
660
- ((I = globalThis.litElementVersions) !== null && I !== void 0 ? I : globalThis.litElementVersions = []).push("3.3.3");
661
- /**
662
- * @license
663
- * Copyright 2017 Google LLC
664
- * SPDX-License-Identifier: BSD-3-Clause
665
- */
666
- const Wt = (n) => (t) => typeof t == "function" ? ((e, s) => (customElements.define(e, s), s))(n, t) : ((e, s) => {
667
- const { kind: i, elements: r } = s;
668
- return { kind: i, elements: r, finisher(o) {
669
- customElements.define(e, o);
670
- } };
671
- })(n, t);
672
- /**
673
- * @license
674
- * Copyright 2017 Google LLC
675
- * SPDX-License-Identifier: BSD-3-Clause
676
- */
677
- const Zt = (n, t) => t.kind === "method" && t.descriptor && !("value" in t.descriptor) ? M(R({}, t), { finisher(e) {
678
- e.createProperty(t.key, n);
679
- } }) : { kind: "field", key: Symbol(), placement: "own", descriptor: {}, originalKey: t.key, initializer() {
680
- typeof t.initializer == "function" && (this[t.key] = t.initializer.call(this));
681
- }, finisher(e) {
682
- e.createProperty(t.key, n);
683
- } }, Jt = (n, t, e) => {
684
- t.constructor.createProperty(e, n);
685
- };
686
- function yt(n) {
687
- return (t, e) => e !== void 0 ? Jt(n, t, e) : Zt(n, t);
688
- }
689
- /**
690
- * @license
691
- * Copyright 2021 Google LLC
692
- * SPDX-License-Identifier: BSD-3-Clause
693
- */
694
- var V;
695
- ((V = window.HTMLSlotElement) === null || V === void 0 ? void 0 : V.prototype.assignedElements) != null;
696
- var Xt = Object.defineProperty, Ft = Object.getOwnPropertyDescriptor, X = (n, t, e, s) => {
697
- for (var i = s > 1 ? void 0 : s ? Ft(t, e) : t, r = n.length - 1, o; r >= 0; r--)
698
- (o = n[r]) && (i = (s ? o(t, e, i) : o(i)) || i);
699
- return s && i && Xt(t, e, i), i;
700
- };
701
- let E = class extends w {
702
- constructor() {
703
- super(...arguments), this.componentChildren = [], this.properties = {};
704
- }
705
- render() {
706
- var n;
707
- return ht` <div
708
- class="grid"
709
- style=${`--columns: ${((n = this.properties.columns) == null ? void 0 : n.toString()) || "1"};`}
710
- >
711
- ${this.componentChildren.map(
712
- (t) => ht`
713
- <widget-component entry=${t.id}></widget-component>
714
- `
715
- )}
716
- </div>`;
717
- }
718
- };
719
- E.styles = Nt`
720
- :host {
721
- box-sizing: border-box;
722
- height: 100%;
723
- }
724
- * {
725
- box-sizing: border-box;
726
- }
727
- .grid {
728
- height: 100%;
729
- display: grid;
730
- justify-content: center;
731
- grid-auto-rows: max-content;
732
- grid-template-rows: auto;
733
- grid-template-columns: repeat(var(--columns), 1fr);
734
- }
735
- `;
736
- X([
737
- ut({ context: Ct }),
738
- yt({ attribute: !1 })
739
- ], E.prototype, "componentChildren", 2);
740
- X([
741
- ut({ context: xt }),
742
- yt({ attribute: !1 })
743
- ], E.prototype, "properties", 2);
744
- E = X([
745
- Wt("area-component")
746
- ], E);
747
- const ie = E;
748
- export {
749
- E as AreaComponent,
750
- ie as default
751
- };
752
- //# sourceMappingURL=area-3c634387.js.map