@telia-ace/widget-components-widget-header-flamingo 1.0.7 → 1.0.9

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