@telia-ace/widget-components-widget-header-flamingo 1.0.14 → 1.0.44

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