@illinois-toolkit/ilw-hero 1.0.1-beta → 1.1.1

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