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