@illinois-toolkit/ilw-header-megamenu 0.0.1 → 1.0.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/LICENSE +20 -20
- package/README.md +229 -261
- package/builder/ilw-header-megamenu.json +12 -12
- package/builder/versions/ilw-header-megamenu.1.0-alpha.json +70 -70
- package/builder/versions/ilw-header-megamenu.1.0.1.json +70 -0
- package/builder/versions/ilw-header-megamenu.1.0.json +70 -0
- package/builder/versions/ilw-header-megamenu.2.0-alpha.json +76 -0
- package/dist/MegaMenu.d.ts.map +1 -1
- package/dist/MegaMenuSection.d.ts +2 -8
- package/dist/MegaMenuSection.d.ts.map +1 -1
- package/dist/cdn/ilw-header-megamenu.css +1 -1
- package/dist/cdn/ilw-header-megamenu.js +317 -329
- package/dist/ilw-header-megamenu.css +1 -1
- package/dist/ilw-header-megamenu.js +111 -123
- package/package.json +49 -49
- package/src/MegaMenu.css +82 -79
- package/src/MegaMenu.styles.css +37 -36
- package/src/MegaMenu.ts +169 -144
- package/src/MegaMenuSection.css +231 -347
- package/src/MegaMenuSection.styles.css +242 -162
- package/src/MegaMenuSection.ts +220 -284
- package/src/ilw-header-megamenu.ts +1 -1
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
const
|
|
2
|
-
let
|
|
3
|
-
constructor(e, t,
|
|
4
|
-
if (this._$cssResult$ = !0,
|
|
1
|
+
const U = globalThis, I = U.ShadowRoot && (U.ShadyCSS === void 0 || U.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ne = Symbol(), Z = /* @__PURE__ */ new WeakMap();
|
|
2
|
+
let ce = class {
|
|
3
|
+
constructor(e, t, i) {
|
|
4
|
+
if (this._$cssResult$ = !0, i !== ne) throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");
|
|
5
5
|
this.cssText = e, this.t = t;
|
|
6
6
|
}
|
|
7
7
|
get styleSheet() {
|
|
8
8
|
let e = this.o;
|
|
9
9
|
const t = this.t;
|
|
10
|
-
if (
|
|
11
|
-
const
|
|
12
|
-
|
|
10
|
+
if (I && e === void 0) {
|
|
11
|
+
const i = t !== void 0 && t.length === 1;
|
|
12
|
+
i && (e = Z.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), i && Z.set(t, e));
|
|
13
13
|
}
|
|
14
14
|
return e;
|
|
15
15
|
}
|
|
@@ -17,48 +17,48 @@ let de = class {
|
|
|
17
17
|
return this.cssText;
|
|
18
18
|
}
|
|
19
19
|
};
|
|
20
|
-
const
|
|
21
|
-
if (
|
|
20
|
+
const j = (s) => new ce(typeof s == "string" ? s : s + "", void 0, ne), de = (s, e) => {
|
|
21
|
+
if (I) s.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
|
|
22
22
|
else for (const t of e) {
|
|
23
|
-
const
|
|
24
|
-
n !== void 0 &&
|
|
23
|
+
const i = document.createElement("style"), n = U.litNonce;
|
|
24
|
+
n !== void 0 && i.setAttribute("nonce", n), i.textContent = t.cssText, s.appendChild(i);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
26
|
+
}, G = I ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
|
|
27
27
|
let t = "";
|
|
28
|
-
for (const
|
|
29
|
-
return
|
|
30
|
-
})(
|
|
31
|
-
const { is: ue, defineProperty: pe, getOwnPropertyDescriptor: me, getOwnPropertyNames: ge, getOwnPropertySymbols: fe, getPrototypeOf:
|
|
28
|
+
for (const i of e.cssRules) t += i.cssText;
|
|
29
|
+
return j(t);
|
|
30
|
+
})(s) : s;
|
|
31
|
+
const { is: ue, defineProperty: pe, getOwnPropertyDescriptor: me, getOwnPropertyNames: ge, getOwnPropertySymbols: fe, getPrototypeOf: ve } = Object, W = globalThis, J = W.trustedTypes, be = J ? J.emptyScript : "", $e = W.reactiveElementPolyfillSupport, k = (s, e) => s, R = { toAttribute(s, e) {
|
|
32
32
|
switch (e) {
|
|
33
33
|
case Boolean:
|
|
34
|
-
|
|
34
|
+
s = s ? be : null;
|
|
35
35
|
break;
|
|
36
36
|
case Object:
|
|
37
37
|
case Array:
|
|
38
|
-
|
|
38
|
+
s = s == null ? s : JSON.stringify(s);
|
|
39
39
|
}
|
|
40
|
-
return
|
|
41
|
-
}, fromAttribute(
|
|
42
|
-
let t =
|
|
40
|
+
return s;
|
|
41
|
+
}, fromAttribute(s, e) {
|
|
42
|
+
let t = s;
|
|
43
43
|
switch (e) {
|
|
44
44
|
case Boolean:
|
|
45
|
-
t =
|
|
45
|
+
t = s !== null;
|
|
46
46
|
break;
|
|
47
47
|
case Number:
|
|
48
|
-
t =
|
|
48
|
+
t = s === null ? null : Number(s);
|
|
49
49
|
break;
|
|
50
50
|
case Object:
|
|
51
51
|
case Array:
|
|
52
52
|
try {
|
|
53
|
-
t = JSON.parse(
|
|
53
|
+
t = JSON.parse(s);
|
|
54
54
|
} catch {
|
|
55
55
|
t = null;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
return t;
|
|
59
|
-
} },
|
|
60
|
-
Symbol.metadata ??= Symbol("metadata"),
|
|
61
|
-
let
|
|
59
|
+
} }, q = (s, e) => !ue(s, e), Q = { attribute: !0, type: String, converter: R, reflect: !1, useDefault: !1, hasChanged: q };
|
|
60
|
+
Symbol.metadata ??= Symbol("metadata"), W.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
|
|
61
|
+
let $ = class extends HTMLElement {
|
|
62
62
|
static addInitializer(e) {
|
|
63
63
|
this._$Ei(), (this.l ??= []).push(e);
|
|
64
64
|
}
|
|
@@ -67,43 +67,43 @@ let _ = class extends HTMLElement {
|
|
|
67
67
|
}
|
|
68
68
|
static createProperty(e, t = Q) {
|
|
69
69
|
if (t.state && (t.attribute = !1), this._$Ei(), this.prototype.hasOwnProperty(e) && ((t = Object.create(t)).wrapped = !0), this.elementProperties.set(e, t), !t.noAccessor) {
|
|
70
|
-
const
|
|
70
|
+
const i = Symbol(), n = this.getPropertyDescriptor(e, i, t);
|
|
71
71
|
n !== void 0 && pe(this.prototype, e, n);
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
static getPropertyDescriptor(e, t,
|
|
75
|
-
const { get: n, set:
|
|
74
|
+
static getPropertyDescriptor(e, t, i) {
|
|
75
|
+
const { get: n, set: o } = me(this.prototype, e) ?? { get() {
|
|
76
76
|
return this[t];
|
|
77
|
-
}, set(
|
|
78
|
-
this[t] =
|
|
77
|
+
}, set(r) {
|
|
78
|
+
this[t] = r;
|
|
79
79
|
} };
|
|
80
|
-
return { get: n, set(
|
|
80
|
+
return { get: n, set(r) {
|
|
81
81
|
const l = n?.call(this);
|
|
82
|
-
|
|
82
|
+
o?.call(this, r), this.requestUpdate(e, l, i);
|
|
83
83
|
}, configurable: !0, enumerable: !0 };
|
|
84
84
|
}
|
|
85
85
|
static getPropertyOptions(e) {
|
|
86
86
|
return this.elementProperties.get(e) ?? Q;
|
|
87
87
|
}
|
|
88
88
|
static _$Ei() {
|
|
89
|
-
if (this.hasOwnProperty(
|
|
90
|
-
const e =
|
|
89
|
+
if (this.hasOwnProperty(k("elementProperties"))) return;
|
|
90
|
+
const e = ve(this);
|
|
91
91
|
e.finalize(), e.l !== void 0 && (this.l = [...e.l]), this.elementProperties = new Map(e.elementProperties);
|
|
92
92
|
}
|
|
93
93
|
static finalize() {
|
|
94
|
-
if (this.hasOwnProperty(
|
|
95
|
-
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(
|
|
96
|
-
const t = this.properties,
|
|
97
|
-
for (const n of
|
|
94
|
+
if (this.hasOwnProperty(k("finalized"))) return;
|
|
95
|
+
if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(k("properties"))) {
|
|
96
|
+
const t = this.properties, i = [...ge(t), ...fe(t)];
|
|
97
|
+
for (const n of i) this.createProperty(n, t[n]);
|
|
98
98
|
}
|
|
99
99
|
const e = this[Symbol.metadata];
|
|
100
100
|
if (e !== null) {
|
|
101
101
|
const t = litPropertyMetadata.get(e);
|
|
102
|
-
if (t !== void 0) for (const [
|
|
102
|
+
if (t !== void 0) for (const [i, n] of t) this.elementProperties.set(i, n);
|
|
103
103
|
}
|
|
104
104
|
this._$Eh = /* @__PURE__ */ new Map();
|
|
105
|
-
for (const [t,
|
|
106
|
-
const n = this._$Eu(t,
|
|
105
|
+
for (const [t, i] of this.elementProperties) {
|
|
106
|
+
const n = this._$Eu(t, i);
|
|
107
107
|
n !== void 0 && this._$Eh.set(n, t);
|
|
108
108
|
}
|
|
109
109
|
this.elementStyles = this.finalizeStyles(this.styles);
|
|
@@ -111,14 +111,14 @@ let _ = class extends HTMLElement {
|
|
|
111
111
|
static finalizeStyles(e) {
|
|
112
112
|
const t = [];
|
|
113
113
|
if (Array.isArray(e)) {
|
|
114
|
-
const
|
|
115
|
-
for (const n of
|
|
116
|
-
} else e !== void 0 && t.push(
|
|
114
|
+
const i = new Set(e.flat(1 / 0).reverse());
|
|
115
|
+
for (const n of i) t.unshift(G(n));
|
|
116
|
+
} else e !== void 0 && t.push(G(e));
|
|
117
117
|
return t;
|
|
118
118
|
}
|
|
119
119
|
static _$Eu(e, t) {
|
|
120
|
-
const
|
|
121
|
-
return
|
|
120
|
+
const i = t.attribute;
|
|
121
|
+
return i === !1 ? void 0 : typeof i == "string" ? i : typeof e == "string" ? e.toLowerCase() : void 0;
|
|
122
122
|
}
|
|
123
123
|
constructor() {
|
|
124
124
|
super(), this._$Ep = void 0, this.isUpdatePending = !1, this.hasUpdated = !1, this._$Em = null, this._$Ev();
|
|
@@ -134,12 +134,12 @@ let _ = class extends HTMLElement {
|
|
|
134
134
|
}
|
|
135
135
|
_$E_() {
|
|
136
136
|
const e = /* @__PURE__ */ new Map(), t = this.constructor.elementProperties;
|
|
137
|
-
for (const
|
|
137
|
+
for (const i of t.keys()) this.hasOwnProperty(i) && (e.set(i, this[i]), delete this[i]);
|
|
138
138
|
e.size > 0 && (this._$Ep = e);
|
|
139
139
|
}
|
|
140
140
|
createRenderRoot() {
|
|
141
141
|
const e = this.shadowRoot ?? this.attachShadow(this.constructor.shadowRootOptions);
|
|
142
|
-
return
|
|
142
|
+
return de(e, this.constructor.elementStyles), e;
|
|
143
143
|
}
|
|
144
144
|
connectedCallback() {
|
|
145
145
|
this.renderRoot ??= this.createRenderRoot(), this.enableUpdating(!0), this._$EO?.forEach(((e) => e.hostConnected?.()));
|
|
@@ -149,35 +149,35 @@ let _ = class extends HTMLElement {
|
|
|
149
149
|
disconnectedCallback() {
|
|
150
150
|
this._$EO?.forEach(((e) => e.hostDisconnected?.()));
|
|
151
151
|
}
|
|
152
|
-
attributeChangedCallback(e, t,
|
|
153
|
-
this._$AK(e,
|
|
152
|
+
attributeChangedCallback(e, t, i) {
|
|
153
|
+
this._$AK(e, i);
|
|
154
154
|
}
|
|
155
155
|
_$ET(e, t) {
|
|
156
|
-
const
|
|
157
|
-
if (n !== void 0 &&
|
|
158
|
-
const
|
|
159
|
-
this._$Em = e,
|
|
156
|
+
const i = this.constructor.elementProperties.get(e), n = this.constructor._$Eu(e, i);
|
|
157
|
+
if (n !== void 0 && i.reflect === !0) {
|
|
158
|
+
const o = (i.converter?.toAttribute !== void 0 ? i.converter : R).toAttribute(t, i.type);
|
|
159
|
+
this._$Em = e, o == null ? this.removeAttribute(n) : this.setAttribute(n, o), this._$Em = null;
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
_$AK(e, t) {
|
|
163
|
-
const
|
|
163
|
+
const i = this.constructor, n = i._$Eh.get(e);
|
|
164
164
|
if (n !== void 0 && this._$Em !== n) {
|
|
165
|
-
const
|
|
165
|
+
const o = i.getPropertyOptions(n), r = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : R;
|
|
166
166
|
this._$Em = n;
|
|
167
|
-
const l =
|
|
167
|
+
const l = r.fromAttribute(t, o.type);
|
|
168
168
|
this[n] = l ?? this._$Ej?.get(n) ?? l, this._$Em = null;
|
|
169
169
|
}
|
|
170
170
|
}
|
|
171
|
-
requestUpdate(e, t,
|
|
171
|
+
requestUpdate(e, t, i) {
|
|
172
172
|
if (e !== void 0) {
|
|
173
|
-
const n = this.constructor,
|
|
174
|
-
if (
|
|
175
|
-
this.C(e, t,
|
|
173
|
+
const n = this.constructor, o = this[e];
|
|
174
|
+
if (i ??= n.getPropertyOptions(e), !((i.hasChanged ?? q)(o, t) || i.useDefault && i.reflect && o === this._$Ej?.get(e) && !this.hasAttribute(n._$Eu(e, i)))) return;
|
|
175
|
+
this.C(e, t, i);
|
|
176
176
|
}
|
|
177
177
|
this.isUpdatePending === !1 && (this._$ES = this._$EP());
|
|
178
178
|
}
|
|
179
|
-
C(e, t, { useDefault:
|
|
180
|
-
|
|
179
|
+
C(e, t, { useDefault: i, reflect: n, wrapped: o }, r) {
|
|
180
|
+
i && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, r ?? t ?? this[e]), o !== !0 || r !== void 0) || (this._$AL.has(e) || (this.hasUpdated || i || (t = void 0), this._$AL.set(e, t)), n === !0 && this._$Em !== e && (this._$Eq ??= /* @__PURE__ */ new Set()).add(e));
|
|
181
181
|
}
|
|
182
182
|
async _$EP() {
|
|
183
183
|
this.isUpdatePending = !0;
|
|
@@ -196,21 +196,21 @@ let _ = class extends HTMLElement {
|
|
|
196
196
|
if (!this.isUpdatePending) return;
|
|
197
197
|
if (!this.hasUpdated) {
|
|
198
198
|
if (this.renderRoot ??= this.createRenderRoot(), this._$Ep) {
|
|
199
|
-
for (const [n,
|
|
199
|
+
for (const [n, o] of this._$Ep) this[n] = o;
|
|
200
200
|
this._$Ep = void 0;
|
|
201
201
|
}
|
|
202
|
-
const
|
|
203
|
-
if (
|
|
204
|
-
const { wrapped:
|
|
205
|
-
|
|
202
|
+
const i = this.constructor.elementProperties;
|
|
203
|
+
if (i.size > 0) for (const [n, o] of i) {
|
|
204
|
+
const { wrapped: r } = o, l = this[n];
|
|
205
|
+
r !== !0 || this._$AL.has(n) || l === void 0 || this.C(n, void 0, o, l);
|
|
206
206
|
}
|
|
207
207
|
}
|
|
208
208
|
let e = !1;
|
|
209
209
|
const t = this._$AL;
|
|
210
210
|
try {
|
|
211
|
-
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((
|
|
212
|
-
} catch (
|
|
213
|
-
throw e = !1, this._$EM(),
|
|
211
|
+
e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((i) => i.hostUpdate?.())), this.update(t)) : this._$EM();
|
|
212
|
+
} catch (i) {
|
|
213
|
+
throw e = !1, this._$EM(), i;
|
|
214
214
|
}
|
|
215
215
|
e && this._$AE(t);
|
|
216
216
|
}
|
|
@@ -239,70 +239,70 @@ let _ = class extends HTMLElement {
|
|
|
239
239
|
firstUpdated(e) {
|
|
240
240
|
}
|
|
241
241
|
};
|
|
242
|
-
|
|
243
|
-
const
|
|
244
|
-
\f\r]`,
|
|
245
|
-
\f\r"'\`<>=]|("|')|))|$)`, "g"), te = /'/g, ie = /"/g, ae = /^(?:script|style|textarea|title)$/i, _e = (
|
|
246
|
-
function le(
|
|
247
|
-
if (!F(
|
|
242
|
+
$.elementStyles = [], $.shadowRootOptions = { mode: "open" }, $[k("elementProperties")] = /* @__PURE__ */ new Map(), $[k("finalized")] = /* @__PURE__ */ new Map(), $e?.({ ReactiveElement: $ }), (W.reactiveElementVersions ??= []).push("2.1.1");
|
|
243
|
+
const B = globalThis, H = B.trustedTypes, X = H ? H.createPolicy("lit-html", { createHTML: (s) => s }) : void 0, oe = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, re = "?" + g, we = `<${re}>`, b = document, C = () => b.createComment(""), P = (s) => s === null || typeof s != "object" && typeof s != "function", F = Array.isArray, ye = (s) => F(s) || typeof s?.[Symbol.iterator] == "function", D = `[
|
|
244
|
+
\f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y = /-->/g, ee = />/g, f = RegExp(`>|${D}(?:([^\\s"'>=/]+)(${D}*=${D}*(?:[^
|
|
245
|
+
\f\r"'\`<>=]|("|')|))|$)`, "g"), te = /'/g, ie = /"/g, ae = /^(?:script|style|textarea|title)$/i, _e = (s) => (e, ...t) => ({ _$litType$: s, strings: e, values: t }), S = _e(1), y = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), se = /* @__PURE__ */ new WeakMap(), v = b.createTreeWalker(b, 129);
|
|
246
|
+
function le(s, e) {
|
|
247
|
+
if (!F(s) || !s.hasOwnProperty("raw")) throw Error("invalid template strings array");
|
|
248
248
|
return X !== void 0 ? X.createHTML(e) : e;
|
|
249
249
|
}
|
|
250
|
-
const Ae = (
|
|
251
|
-
const t =
|
|
252
|
-
let n,
|
|
250
|
+
const Ae = (s, e) => {
|
|
251
|
+
const t = s.length - 1, i = [];
|
|
252
|
+
let n, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", r = E;
|
|
253
253
|
for (let l = 0; l < t; l++) {
|
|
254
|
-
const a =
|
|
255
|
-
let
|
|
256
|
-
for (; p < a.length && (
|
|
257
|
-
const m =
|
|
258
|
-
|
|
254
|
+
const a = s[l];
|
|
255
|
+
let c, d, h = -1, p = 0;
|
|
256
|
+
for (; p < a.length && (r.lastIndex = p, d = r.exec(a), d !== null); ) p = r.lastIndex, r === E ? d[1] === "!--" ? r = Y : d[1] !== void 0 ? r = ee : d[2] !== void 0 ? (ae.test(d[2]) && (n = RegExp("</" + d[2], "g")), r = f) : d[3] !== void 0 && (r = f) : r === f ? d[0] === ">" ? (r = n ?? E, h = -1) : d[1] === void 0 ? h = -2 : (h = r.lastIndex - d[2].length, c = d[1], r = d[3] === void 0 ? f : d[3] === '"' ? ie : te) : r === ie || r === te ? r = f : r === Y || r === ee ? r = E : (r = f, n = void 0);
|
|
257
|
+
const m = r === f && s[l + 1].startsWith("/>") ? " " : "";
|
|
258
|
+
o += r === E ? a + we : h >= 0 ? (i.push(c), a.slice(0, h) + oe + a.slice(h) + g + m) : a + g + (h === -2 ? l : m);
|
|
259
259
|
}
|
|
260
|
-
return [le(
|
|
260
|
+
return [le(s, o + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
|
|
261
261
|
};
|
|
262
|
-
class
|
|
263
|
-
constructor({ strings: e, _$litType$: t },
|
|
262
|
+
class O {
|
|
263
|
+
constructor({ strings: e, _$litType$: t }, i) {
|
|
264
264
|
let n;
|
|
265
265
|
this.parts = [];
|
|
266
|
-
let
|
|
267
|
-
const l = e.length - 1, a = this.parts, [
|
|
268
|
-
if (this.el =
|
|
266
|
+
let o = 0, r = 0;
|
|
267
|
+
const l = e.length - 1, a = this.parts, [c, d] = Ae(e, t);
|
|
268
|
+
if (this.el = O.createElement(c, i), v.currentNode = this.el.content, t === 2 || t === 3) {
|
|
269
269
|
const h = this.el.content.firstChild;
|
|
270
270
|
h.replaceWith(...h.childNodes);
|
|
271
271
|
}
|
|
272
272
|
for (; (n = v.nextNode()) !== null && a.length < l; ) {
|
|
273
273
|
if (n.nodeType === 1) {
|
|
274
|
-
if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(
|
|
275
|
-
const p =
|
|
276
|
-
a.push({ type: 1, index:
|
|
277
|
-
} else h.startsWith(g) && (a.push({ type: 6, index:
|
|
274
|
+
if (n.hasAttributes()) for (const h of n.getAttributeNames()) if (h.endsWith(oe)) {
|
|
275
|
+
const p = d[r++], m = n.getAttribute(h).split(g), N = /([.?@])?(.*)/.exec(p);
|
|
276
|
+
a.push({ type: 1, index: o, name: N[2], strings: m, ctor: N[1] === "." ? Ee : N[1] === "?" ? Se : N[1] === "@" ? ke : z }), n.removeAttribute(h);
|
|
277
|
+
} else h.startsWith(g) && (a.push({ type: 6, index: o }), n.removeAttribute(h));
|
|
278
278
|
if (ae.test(n.tagName)) {
|
|
279
279
|
const h = n.textContent.split(g), p = h.length - 1;
|
|
280
280
|
if (p > 0) {
|
|
281
|
-
n.textContent =
|
|
282
|
-
for (let m = 0; m < p; m++) n.append(h[m],
|
|
283
|
-
n.append(h[p],
|
|
281
|
+
n.textContent = H ? H.emptyScript : "";
|
|
282
|
+
for (let m = 0; m < p; m++) n.append(h[m], C()), v.nextNode(), a.push({ type: 2, index: ++o });
|
|
283
|
+
n.append(h[p], C());
|
|
284
284
|
}
|
|
285
285
|
}
|
|
286
|
-
} else if (n.nodeType === 8) if (n.data ===
|
|
286
|
+
} else if (n.nodeType === 8) if (n.data === re) a.push({ type: 2, index: o });
|
|
287
287
|
else {
|
|
288
288
|
let h = -1;
|
|
289
|
-
for (; (h = n.data.indexOf(g, h + 1)) !== -1; ) a.push({ type: 7, index:
|
|
289
|
+
for (; (h = n.data.indexOf(g, h + 1)) !== -1; ) a.push({ type: 7, index: o }), h += g.length - 1;
|
|
290
290
|
}
|
|
291
|
-
|
|
291
|
+
o++;
|
|
292
292
|
}
|
|
293
293
|
}
|
|
294
294
|
static createElement(e, t) {
|
|
295
|
-
const
|
|
296
|
-
return
|
|
295
|
+
const i = b.createElement("template");
|
|
296
|
+
return i.innerHTML = e, i;
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
function
|
|
300
|
-
if (e ===
|
|
301
|
-
let n =
|
|
302
|
-
const
|
|
303
|
-
return n?.constructor !==
|
|
299
|
+
function _(s, e, t = s, i) {
|
|
300
|
+
if (e === y) return e;
|
|
301
|
+
let n = i !== void 0 ? t._$Co?.[i] : t._$Cl;
|
|
302
|
+
const o = P(e) ? void 0 : e._$litDirective$;
|
|
303
|
+
return n?.constructor !== o && (n?._$AO?.(!1), o === void 0 ? n = void 0 : (n = new o(s), n._$AT(s, t, i)), i !== void 0 ? (t._$Co ??= [])[i] = n : t._$Cl = n), n !== void 0 && (e = _(s, n._$AS(s, e.values), n, i)), e;
|
|
304
304
|
}
|
|
305
|
-
class
|
|
305
|
+
class xe {
|
|
306
306
|
constructor(e, t) {
|
|
307
307
|
this._$AV = [], this._$AN = void 0, this._$AD = e, this._$AM = t;
|
|
308
308
|
}
|
|
@@ -313,29 +313,29 @@ class Ee {
|
|
|
313
313
|
return this._$AM._$AU;
|
|
314
314
|
}
|
|
315
315
|
u(e) {
|
|
316
|
-
const { el: { content: t }, parts:
|
|
316
|
+
const { el: { content: t }, parts: i } = this._$AD, n = (e?.creationScope ?? b).importNode(t, !0);
|
|
317
317
|
v.currentNode = n;
|
|
318
|
-
let
|
|
318
|
+
let o = v.nextNode(), r = 0, l = 0, a = i[0];
|
|
319
319
|
for (; a !== void 0; ) {
|
|
320
|
-
if (
|
|
321
|
-
let
|
|
322
|
-
a.type === 2 ?
|
|
320
|
+
if (r === a.index) {
|
|
321
|
+
let c;
|
|
322
|
+
a.type === 2 ? c = new M(o, o.nextSibling, this, e) : a.type === 1 ? c = new a.ctor(o, a.name, a.strings, this, e) : a.type === 6 && (c = new Ce(o, this, e)), this._$AV.push(c), a = i[++l];
|
|
323
323
|
}
|
|
324
|
-
|
|
324
|
+
r !== a?.index && (o = v.nextNode(), r++);
|
|
325
325
|
}
|
|
326
|
-
return v.currentNode =
|
|
326
|
+
return v.currentNode = b, n;
|
|
327
327
|
}
|
|
328
328
|
p(e) {
|
|
329
329
|
let t = 0;
|
|
330
|
-
for (const
|
|
330
|
+
for (const i of this._$AV) i !== void 0 && (i.strings !== void 0 ? (i._$AI(e, i, t), t += i.strings.length - 2) : i._$AI(e[t])), t++;
|
|
331
331
|
}
|
|
332
332
|
}
|
|
333
333
|
class M {
|
|
334
334
|
get _$AU() {
|
|
335
335
|
return this._$AM?._$AU ?? this._$Cv;
|
|
336
336
|
}
|
|
337
|
-
constructor(e, t,
|
|
338
|
-
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM =
|
|
337
|
+
constructor(e, t, i, n) {
|
|
338
|
+
this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = i, this.options = n, this._$Cv = n?.isConnected ?? !0;
|
|
339
339
|
}
|
|
340
340
|
get parentNode() {
|
|
341
341
|
let e = this._$AA.parentNode;
|
|
@@ -349,7 +349,7 @@ class M {
|
|
|
349
349
|
return this._$AB;
|
|
350
350
|
}
|
|
351
351
|
_$AI(e, t = this) {
|
|
352
|
-
e =
|
|
352
|
+
e = _(this, e, t), P(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== y && this._(e) : e._$litType$ !== void 0 ? this.$(e) : e.nodeType !== void 0 ? this.T(e) : ye(e) ? this.k(e) : this._(e);
|
|
353
353
|
}
|
|
354
354
|
O(e) {
|
|
355
355
|
return this._$AA.parentNode.insertBefore(e, this._$AB);
|
|
@@ -358,63 +358,63 @@ class M {
|
|
|
358
358
|
this._$AH !== e && (this._$AR(), this._$AH = this.O(e));
|
|
359
359
|
}
|
|
360
360
|
_(e) {
|
|
361
|
-
this._$AH !== u && P(this._$AH) ? this._$AA.nextSibling.data = e : this.T(
|
|
361
|
+
this._$AH !== u && P(this._$AH) ? this._$AA.nextSibling.data = e : this.T(b.createTextNode(e)), this._$AH = e;
|
|
362
362
|
}
|
|
363
363
|
$(e) {
|
|
364
|
-
const { values: t, _$litType$:
|
|
364
|
+
const { values: t, _$litType$: i } = e, n = typeof i == "number" ? this._$AC(e) : (i.el === void 0 && (i.el = O.createElement(le(i.h, i.h[0]), this.options)), i);
|
|
365
365
|
if (this._$AH?._$AD === n) this._$AH.p(t);
|
|
366
366
|
else {
|
|
367
|
-
const
|
|
368
|
-
|
|
367
|
+
const o = new xe(n, this), r = o.u(this.options);
|
|
368
|
+
o.p(t), this.T(r), this._$AH = o;
|
|
369
369
|
}
|
|
370
370
|
}
|
|
371
371
|
_$AC(e) {
|
|
372
372
|
let t = se.get(e.strings);
|
|
373
|
-
return t === void 0 && se.set(e.strings, t = new
|
|
373
|
+
return t === void 0 && se.set(e.strings, t = new O(e)), t;
|
|
374
374
|
}
|
|
375
375
|
k(e) {
|
|
376
376
|
F(this._$AH) || (this._$AH = [], this._$AR());
|
|
377
377
|
const t = this._$AH;
|
|
378
|
-
let
|
|
379
|
-
for (const
|
|
380
|
-
n < t.length && (this._$AR(
|
|
378
|
+
let i, n = 0;
|
|
379
|
+
for (const o of e) n === t.length ? t.push(i = new M(this.O(C()), this.O(C()), this, this.options)) : i = t[n], i._$AI(o), n++;
|
|
380
|
+
n < t.length && (this._$AR(i && i._$AB.nextSibling, n), t.length = n);
|
|
381
381
|
}
|
|
382
382
|
_$AR(e = this._$AA.nextSibling, t) {
|
|
383
383
|
for (this._$AP?.(!1, !0, t); e !== this._$AB; ) {
|
|
384
|
-
const
|
|
385
|
-
e.remove(), e =
|
|
384
|
+
const i = e.nextSibling;
|
|
385
|
+
e.remove(), e = i;
|
|
386
386
|
}
|
|
387
387
|
}
|
|
388
388
|
setConnected(e) {
|
|
389
389
|
this._$AM === void 0 && (this._$Cv = e, this._$AP?.(e));
|
|
390
390
|
}
|
|
391
391
|
}
|
|
392
|
-
class
|
|
392
|
+
class z {
|
|
393
393
|
get tagName() {
|
|
394
394
|
return this.element.tagName;
|
|
395
395
|
}
|
|
396
396
|
get _$AU() {
|
|
397
397
|
return this._$AM._$AU;
|
|
398
398
|
}
|
|
399
|
-
constructor(e, t,
|
|
400
|
-
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = t, this._$AM = n, this.options =
|
|
399
|
+
constructor(e, t, i, n, o) {
|
|
400
|
+
this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = t, this._$AM = n, this.options = o, i.length > 2 || i[0] !== "" || i[1] !== "" ? (this._$AH = Array(i.length - 1).fill(new String()), this.strings = i) : this._$AH = u;
|
|
401
401
|
}
|
|
402
|
-
_$AI(e, t = this,
|
|
403
|
-
const
|
|
404
|
-
let
|
|
405
|
-
if (
|
|
402
|
+
_$AI(e, t = this, i, n) {
|
|
403
|
+
const o = this.strings;
|
|
404
|
+
let r = !1;
|
|
405
|
+
if (o === void 0) e = _(this, e, t, 0), r = !P(e) || e !== this._$AH && e !== y, r && (this._$AH = e);
|
|
406
406
|
else {
|
|
407
407
|
const l = e;
|
|
408
|
-
let a,
|
|
409
|
-
for (e =
|
|
408
|
+
let a, c;
|
|
409
|
+
for (e = o[0], a = 0; a < o.length - 1; a++) c = _(this, l[i + a], t, a), c === y && (c = this._$AH[a]), r ||= !P(c) || c !== this._$AH[a], c === u ? e = u : e !== u && (e += (c ?? "") + o[a + 1]), this._$AH[a] = c;
|
|
410
410
|
}
|
|
411
|
-
|
|
411
|
+
r && !n && this.j(e);
|
|
412
412
|
}
|
|
413
413
|
j(e) {
|
|
414
414
|
e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
|
|
415
415
|
}
|
|
416
416
|
}
|
|
417
|
-
class
|
|
417
|
+
class Ee extends z {
|
|
418
418
|
constructor() {
|
|
419
419
|
super(...arguments), this.type = 3;
|
|
420
420
|
}
|
|
@@ -422,7 +422,7 @@ class xe extends D {
|
|
|
422
422
|
this.element[this.name] = e === u ? void 0 : e;
|
|
423
423
|
}
|
|
424
424
|
}
|
|
425
|
-
class
|
|
425
|
+
class Se extends z {
|
|
426
426
|
constructor() {
|
|
427
427
|
super(...arguments), this.type = 4;
|
|
428
428
|
}
|
|
@@ -430,43 +430,43 @@ class ke extends D {
|
|
|
430
430
|
this.element.toggleAttribute(this.name, !!e && e !== u);
|
|
431
431
|
}
|
|
432
432
|
}
|
|
433
|
-
class
|
|
434
|
-
constructor(e, t,
|
|
435
|
-
super(e, t,
|
|
433
|
+
class ke extends z {
|
|
434
|
+
constructor(e, t, i, n, o) {
|
|
435
|
+
super(e, t, i, n, o), this.type = 5;
|
|
436
436
|
}
|
|
437
437
|
_$AI(e, t = this) {
|
|
438
|
-
if ((e =
|
|
439
|
-
const
|
|
440
|
-
n && this.element.removeEventListener(this.name, this,
|
|
438
|
+
if ((e = _(this, e, t, 0) ?? u) === y) return;
|
|
439
|
+
const i = this._$AH, n = e === u && i !== u || e.capture !== i.capture || e.once !== i.once || e.passive !== i.passive, o = e !== u && (i === u || n);
|
|
440
|
+
n && this.element.removeEventListener(this.name, this, i), o && this.element.addEventListener(this.name, this, e), this._$AH = e;
|
|
441
441
|
}
|
|
442
442
|
handleEvent(e) {
|
|
443
443
|
typeof this._$AH == "function" ? this._$AH.call(this.options?.host ?? this.element, e) : this._$AH.handleEvent(e);
|
|
444
444
|
}
|
|
445
445
|
}
|
|
446
446
|
class Ce {
|
|
447
|
-
constructor(e, t,
|
|
448
|
-
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options =
|
|
447
|
+
constructor(e, t, i) {
|
|
448
|
+
this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
|
|
449
449
|
}
|
|
450
450
|
get _$AU() {
|
|
451
451
|
return this._$AM._$AU;
|
|
452
452
|
}
|
|
453
453
|
_$AI(e) {
|
|
454
|
-
|
|
454
|
+
_(this, e);
|
|
455
455
|
}
|
|
456
456
|
}
|
|
457
|
-
const
|
|
458
|
-
|
|
459
|
-
const
|
|
460
|
-
const
|
|
461
|
-
let n =
|
|
457
|
+
const Pe = B.litHtmlPolyfillSupport;
|
|
458
|
+
Pe?.(O, M), (B.litHtmlVersions ??= []).push("3.3.1");
|
|
459
|
+
const Oe = (s, e, t) => {
|
|
460
|
+
const i = t?.renderBefore ?? e;
|
|
461
|
+
let n = i._$litPart$;
|
|
462
462
|
if (n === void 0) {
|
|
463
|
-
const
|
|
464
|
-
|
|
463
|
+
const o = t?.renderBefore ?? null;
|
|
464
|
+
i._$litPart$ = n = new M(e.insertBefore(C(), o), o, void 0, t ?? {});
|
|
465
465
|
}
|
|
466
|
-
return n._$AI(
|
|
466
|
+
return n._$AI(s), n;
|
|
467
467
|
};
|
|
468
468
|
const V = globalThis;
|
|
469
|
-
class
|
|
469
|
+
class w extends $ {
|
|
470
470
|
constructor() {
|
|
471
471
|
super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
|
|
472
472
|
}
|
|
@@ -476,7 +476,7 @@ class A extends _ {
|
|
|
476
476
|
}
|
|
477
477
|
update(e) {
|
|
478
478
|
const t = this.render();
|
|
479
|
-
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do =
|
|
479
|
+
this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Oe(t, this.renderRoot, this.renderOptions);
|
|
480
480
|
}
|
|
481
481
|
connectedCallback() {
|
|
482
482
|
super.connectedCallback(), this._$Do?.setConnected(!0);
|
|
@@ -485,57 +485,57 @@ class A extends _ {
|
|
|
485
485
|
super.disconnectedCallback(), this._$Do?.setConnected(!1);
|
|
486
486
|
}
|
|
487
487
|
render() {
|
|
488
|
-
return
|
|
488
|
+
return y;
|
|
489
489
|
}
|
|
490
490
|
}
|
|
491
|
-
|
|
492
|
-
const
|
|
493
|
-
|
|
491
|
+
w._$litElement$ = !0, w.finalized = !0, V.litElementHydrateSupport?.({ LitElement: w });
|
|
492
|
+
const Me = V.litElementPolyfillSupport;
|
|
493
|
+
Me?.({ LitElement: w });
|
|
494
494
|
(V.litElementVersions ??= []).push("4.2.1");
|
|
495
|
-
const
|
|
496
|
-
const he = (
|
|
495
|
+
const Te = "@layer base{:host{--ilw-header-megamenu--link-color: var(--il-blue);--ilw-header-megamenu--link-color--hover: var(--il-altgeld);--ilw-header-megamenu--link-background: transparent;--ilw-header-megamenu--link-background--hover: white;--ilw-header-megamenu--link-background--focus: var(--ilw-color--focus--background);--ilw-header-megamenu--link-background--sub--focus: var(--ilw-color--focus--background);--ilw-header-megamenu--link-color--focus: var(--il-blue);--ilw-header-megamenu--link-border-bottom-highlight: 4px solid transparent;--ilw-header-megamenu--link-border-bottom-highlight--hover: 4px solid var(--il-orange);--ilw-header-megamenu--link-border-bottom-highlight--focus: 4px solid var(--il-blue);--ilw-header-megamenu--link-border-left-highlight: none;--ilw-header-megamenu--link-border-left-highlight--focus: none;--ilw-header-megamenu--background: #E8E9EB;--ilw-header-megamenu--flex-direction: row;--ilw-header-megamenu--items--position: absolute;--ilw-header-megamenu--items--border: 1px solid rgb(0, 0, 0, .01);--ilw-header-megamenu--items--box-shadow: 0 0 4px #00000040;--ilw-header-megamenu--items--width: 1270px;--ilw-header-megamenu--items--top: initial;--ilw-header-megamenu--items--left: calc(var(--ilw-margin--side) - 39px);--ilw-header-megamenu--font: 700 16px/22px var(--il-font-sans);--ilw-header-megamenu--grid-template-columns: auto auto;--ilw-header-megamenu-section--grid-template-columns--header: auto 24px;--ilw-header-megamenu-section--anchor--padding: 6px 20px;--ilw-header-megamenu-section--anchor--border: none;--ilw-header-megamenu-section--anchor--text-indent: 0;--ilw-header-megamenu-section--transform: none;--ilw-header-megamenu-section--transform--selected: rotate(180deg)}}div.parent.full{padding-top:6px;margin:0 calc(var(--ilw-margin--side) - 9px)}";
|
|
496
|
+
const he = (s) => (e, t) => {
|
|
497
497
|
t !== void 0 ? t.addInitializer((() => {
|
|
498
|
-
customElements.define(
|
|
499
|
-
})) : customElements.define(
|
|
498
|
+
customElements.define(s, e);
|
|
499
|
+
})) : customElements.define(s, e);
|
|
500
500
|
};
|
|
501
|
-
const
|
|
502
|
-
const { kind:
|
|
503
|
-
let
|
|
504
|
-
if (
|
|
505
|
-
const { name:
|
|
501
|
+
const Ne = { attribute: !0, type: String, converter: R, reflect: !1, hasChanged: q }, Ue = (s = Ne, e, t) => {
|
|
502
|
+
const { kind: i, metadata: n } = t;
|
|
503
|
+
let o = globalThis.litPropertyMetadata.get(n);
|
|
504
|
+
if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), i === "setter" && ((s = Object.create(s)).wrapped = !0), o.set(t.name, s), i === "accessor") {
|
|
505
|
+
const { name: r } = t;
|
|
506
506
|
return { set(l) {
|
|
507
507
|
const a = e.get.call(this);
|
|
508
|
-
e.set.call(this, l), this.requestUpdate(
|
|
508
|
+
e.set.call(this, l), this.requestUpdate(r, a, s);
|
|
509
509
|
}, init(l) {
|
|
510
|
-
return l !== void 0 && this.C(
|
|
510
|
+
return l !== void 0 && this.C(r, void 0, s, l), l;
|
|
511
511
|
} };
|
|
512
512
|
}
|
|
513
|
-
if (
|
|
514
|
-
const { name:
|
|
513
|
+
if (i === "setter") {
|
|
514
|
+
const { name: r } = t;
|
|
515
515
|
return function(l) {
|
|
516
|
-
const a = this[
|
|
517
|
-
e.call(this, l), this.requestUpdate(
|
|
516
|
+
const a = this[r];
|
|
517
|
+
e.call(this, l), this.requestUpdate(r, a, s);
|
|
518
518
|
};
|
|
519
519
|
}
|
|
520
|
-
throw Error("Unsupported decorator location: " +
|
|
520
|
+
throw Error("Unsupported decorator location: " + i);
|
|
521
521
|
};
|
|
522
|
-
function
|
|
523
|
-
return (e, t) => typeof t == "object" ?
|
|
524
|
-
const
|
|
525
|
-
return n.constructor.createProperty(
|
|
526
|
-
})(
|
|
522
|
+
function x(s) {
|
|
523
|
+
return (e, t) => typeof t == "object" ? Ue(s, e, t) : ((i, n, o) => {
|
|
524
|
+
const r = n.hasOwnProperty(o);
|
|
525
|
+
return n.constructor.createProperty(o, i), r ? Object.getOwnPropertyDescriptor(n, o) : void 0;
|
|
526
|
+
})(s, e, t);
|
|
527
527
|
}
|
|
528
|
-
var
|
|
529
|
-
for (var n =
|
|
530
|
-
(
|
|
531
|
-
return
|
|
528
|
+
var Re = Object.defineProperty, He = Object.getOwnPropertyDescriptor, K = (s, e, t, i) => {
|
|
529
|
+
for (var n = i > 1 ? void 0 : i ? He(e, t) : e, o = s.length - 1, r; o >= 0; o--)
|
|
530
|
+
(r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
|
531
|
+
return i && n && Re(e, t, n), n;
|
|
532
532
|
};
|
|
533
|
-
let
|
|
533
|
+
let L = class extends w {
|
|
534
534
|
constructor() {
|
|
535
535
|
super(), this.compact = !1, this.width = 990, this.addEventListener("keydown", this.handleWindowKeydown.bind(this)), this.handleWindowResize = this.handleWindowResize.bind(this), this.handleWindowClick = this.handleWindowClick.bind(this);
|
|
536
536
|
}
|
|
537
537
|
static get styles() {
|
|
538
|
-
return
|
|
538
|
+
return j(Te);
|
|
539
539
|
}
|
|
540
540
|
connectedCallback() {
|
|
541
541
|
super.connectedCallback(), window.addEventListener("click", this.handleWindowClick.bind(this)), window.addEventListener("resize", this.handleWindowResize), this.handleWindowResize();
|
|
@@ -543,131 +543,129 @@ let H = class extends A {
|
|
|
543
543
|
disconnectedCallback() {
|
|
544
544
|
super.disconnectedCallback(), window.removeEventListener("click", this.handleWindowClick.bind(this)), window.removeEventListener("resize", this.handleWindowResize);
|
|
545
545
|
}
|
|
546
|
-
handleWindowClick(
|
|
547
|
-
this.contains(
|
|
546
|
+
handleWindowClick(s) {
|
|
547
|
+
this.contains(s.target) || this.closeAllExceptOneSections(null);
|
|
548
548
|
}
|
|
549
|
-
handleWindowKeydown(
|
|
550
|
-
|
|
549
|
+
handleWindowKeydown(s) {
|
|
550
|
+
s.key === "Escape" && this.closeAllExceptOneSections(null), s.key === "ArrowRight" && (s.preventDefault(), this.closeAllExceptOneSections(null), this.gotoNextSection()), s.key === "ArrowLeft" && (s.preventDefault(), this.closeAllExceptOneSections(null), this.gotoPreviousSection());
|
|
551
551
|
}
|
|
552
|
-
handleNavigationSectionToggleClick(
|
|
553
|
-
this.closeAllExceptOneSections(
|
|
552
|
+
handleNavigationSectionToggleClick(s) {
|
|
553
|
+
this.closeAllExceptOneSections(s.target);
|
|
554
554
|
}
|
|
555
555
|
gotoPreviousSection() {
|
|
556
|
-
|
|
557
|
-
if (
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
556
|
+
const s = document.activeElement;
|
|
557
|
+
if (!s) return;
|
|
558
|
+
const e = s.closest(
|
|
559
|
+
"ilw-header-megamenu-section"
|
|
560
|
+
) || s.closest("li a");
|
|
561
|
+
if (!e) return;
|
|
562
|
+
const i = e.parentElement?.previousElementSibling;
|
|
563
|
+
if (!i) return;
|
|
564
|
+
const n = i.querySelector(
|
|
565
|
+
"ilw-header-megamenu-section"
|
|
566
|
+
) || i.querySelector("a");
|
|
567
|
+
n && ("setFocus" in n ? n.setFocus() : n.focus());
|
|
564
568
|
}
|
|
565
569
|
gotoNextSection() {
|
|
566
|
-
|
|
567
|
-
if (
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
570
|
+
const s = document.activeElement;
|
|
571
|
+
if (!s) return;
|
|
572
|
+
const e = s.closest(
|
|
573
|
+
"ilw-header-megamenu-section"
|
|
574
|
+
) || s.closest("li a");
|
|
575
|
+
if (!e) return;
|
|
576
|
+
const i = e.parentElement?.nextElementSibling;
|
|
577
|
+
if (!i) return;
|
|
578
|
+
const n = i.querySelector(
|
|
579
|
+
"ilw-header-megamenu-section"
|
|
580
|
+
) || i.querySelector("a");
|
|
581
|
+
n && ("setFocus" in n ? n.setFocus() : n.focus());
|
|
574
582
|
}
|
|
575
583
|
handleWindowResize() {
|
|
576
584
|
(this.offsetWidth == 0 ? window.innerWidth : this.offsetWidth) < this.width ? this.compact || this.setCompactTrue() : this.compact && this.setCompactFalse();
|
|
577
585
|
}
|
|
578
586
|
setCompactTrue() {
|
|
579
|
-
this.compact = !0, this.querySelectorAll("ilw-header-megamenu-section").forEach((
|
|
580
|
-
|
|
587
|
+
this.compact = !0, this.querySelectorAll("ilw-header-megamenu-section").forEach((s) => {
|
|
588
|
+
s.compact = !0;
|
|
581
589
|
});
|
|
582
590
|
}
|
|
583
591
|
setCompactFalse() {
|
|
584
|
-
this.compact = !1, this.querySelectorAll("ilw-header-megamenu-section").forEach((
|
|
585
|
-
|
|
592
|
+
this.compact = !1, this.querySelectorAll("ilw-header-megamenu-section").forEach((s) => {
|
|
593
|
+
s.compact = !1;
|
|
586
594
|
});
|
|
587
595
|
}
|
|
588
596
|
getSections() {
|
|
589
597
|
return this.querySelectorAll("ilw-header-megamenu-section");
|
|
590
598
|
}
|
|
591
|
-
closeAllExceptOneSections(
|
|
599
|
+
closeAllExceptOneSections(s) {
|
|
592
600
|
this.getSections().forEach((e) => {
|
|
593
|
-
(
|
|
601
|
+
(s == null || s != e) && (e.expanded = !1);
|
|
594
602
|
});
|
|
595
603
|
}
|
|
596
604
|
render() {
|
|
597
605
|
return S`
|
|
598
606
|
<nav aria-label="Header Menu Navigation" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick}>
|
|
599
|
-
<div class="parent ${this.compact ? "compact" : "full"}"
|
|
607
|
+
<div class="parent ${this.compact ? "compact" : "full"}">
|
|
608
|
+
<slot></slot>
|
|
609
|
+
</div>
|
|
600
610
|
</nav>
|
|
601
611
|
`;
|
|
602
612
|
}
|
|
603
613
|
};
|
|
604
614
|
K([
|
|
605
|
-
|
|
615
|
+
x({
|
|
606
616
|
type: Boolean,
|
|
607
617
|
reflect: !0
|
|
608
618
|
})
|
|
609
|
-
],
|
|
619
|
+
], L.prototype, "compact", 2);
|
|
610
620
|
K([
|
|
611
|
-
|
|
621
|
+
x({
|
|
612
622
|
type: Number
|
|
613
623
|
})
|
|
614
|
-
],
|
|
615
|
-
|
|
624
|
+
], L.prototype, "width", 2);
|
|
625
|
+
L = K([
|
|
616
626
|
he("ilw-header-megamenu")
|
|
617
|
-
],
|
|
618
|
-
const
|
|
619
|
-
var
|
|
620
|
-
for (var n =
|
|
621
|
-
(
|
|
622
|
-
return
|
|
627
|
+
], L);
|
|
628
|
+
const Le = '#items{display:none}#items.expanded{all:initial;box-sizing:border-box;flex-direction:column;border:var(--ilw-header-megamenu--items--border);box-shadow:var(--ilw-header-megamenu--items--box-shadow);width:var(--ilw-header-megamenu--items--width);max-width:100vw + 39px;position:var(--ilw-header-megamenu--items--position);display:grid;left:var(--ilw-header-megamenu--items--left);top:var(--ilw-header-megamenu--items--top);z-index:100;background:#fff}.parent{height:100%}button,.link{all:initial;box-sizing:border-box;display:block;position:relative;padding:var(--ilw-header-megamenu-section--anchor--padding);font:var(--ilw-header-megamenu--font);background:var(--ilw-header-megamenu--link-background);color:var(--ilw-header-megamenu--link-color);fill:var(--ilw-header-megamenu--link-color);border-width:0 0 3px 0;border-style:solid;border-color:transparent;outline:0;cursor:pointer;height:100%;width:100%;border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight);border-left:var(--ilw-header-megamenu--link-border-left-highlight)}:is(button,.link) svg{padding:2px;transform:var(--ilw-header-megamenu-section--transform)}:is(button,.link).current{border-color:var(--il-blue)}:is(button,.link):hover{background:var(--ilw-header-megamenu--link-background--hover);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--hover);color:var(--ilw-header-megamenu--link-color--hover);fill:var(--ilw-header-megamenu--link-color--hover);text-decoration:underline}:is(button,.link):hover svg{outline:2px dotted var(--il-altgeld)}:is(button,.link):focus{background:var(--ilw-header-megamenu--link-background--focus);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--focus);border-left:var(--ilw-header-megamenu--link-border-left-highlight--focus);color:var(--ilw-header-megamenu--link-color--focus);fill:var(--ilw-header-megamenu--link-color--focus);outline:0}:is(button,.link):focus:hover svg{outline:2px dotted var(--il-blue)}button[aria-expanded=true]{text-decoration:underline;color:var(--ilw-header-megamenu--link-color--hover);background:var(--ilw-header-megamenu--link-background--hover)}button[aria-expanded=true]:focus{background:var(--ilw-header-megamenu--link-background--hover);border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--hover)}button[aria-expanded=true] svg{fill:var(--ilw-header-megamenu--link-color--hover);transform:var(--ilw-header-megamenu-section--transform--selected);background:var(--ilw-header-megamenu--link-background--hover)}button[aria-expanded=true] svg:focus{background:var(--ilw-header-megamenu--link-background--hover);color:var(--il-blue)}.header{position:relative;display:grid;grid-template-columns:var(--ilw-header-megamenu-section--grid-template-columns--header);grid-template-areas:"label icon";grid-gap:4px}.header-link.current button{border-color:var(--il-blue)}.header-link{position:relative;display:grid;grid-template-columns:var(--ilw-header-megamenu--grid-template-columns);grid-template-areas:"label icon";align-items:center;height:100%}.header-link.highlighted{background:var(--ilw-header-megamenu--link-background--hover)}.header-link .link{padding:6px 0 6px 20px}.header-link button{padding:6px 20px 6px 6px}.label,.link{box-sizing:border-box;display:block;position:relative;grid-area:label}.icon,.header-link button{align-self:center;align-items:center;justify-content:center;grid-area:icon}.icon{display:flex}.arrow{display:block;height:14px;width:14px}.submenu.parent button:hover .label ::slotted(span[slot="label"]),.submenu.parent button:focus .label ::slotted(span[slot="label"]){text-decoration:underline}.menu.parent .header-link.highlighted button,.menu.parent .header-link.highlighted ::slotted(a[slot="link"]){border-bottom:var(--ilw-header-megamenu--link-border-bottom-highlight--focus)!important}.submenu.parent button.arrow-only:hover,.submenu.parent button.arrow-only:focus{border-left:4px solid transparent!important;color:var(--il-blue)}.menu.parent .compact button.arrow-only:hover,.menu.parent .compact button.arrow-only:focus{border-left:4px solid var(--il-blue)!important;color:var(--il-blue)}:host(.solo-list) ::slotted(ul){display:grid;grid-template-columns:repeat(4,minmax(0,320px));grid-template-rows:repeat(5,34px);grid-auto-flow:column;max-width:100vw}div.list-wrapper{display:grid;grid-template-columns:repeat(4,minmax(0,320px));max-width:100vw;overflow:hidden}:host-context(ilw-header-megamenu[compact]) .list-wrapper{all:unset}::slotted(ul:last-of-type){border:none!important}::slotted([slot="action-right"]){grid-column:4}::slotted([slot="action-right"].span-2){grid-column:3 / span 2;justify-self:auto}::slotted([slot="action-right"].span-3){grid-column:2 / span 3;justify-self:auto}::slotted([slot="action-left"]){grid-column:1}::slotted([slot="action-left"].span-2){grid-column:1 / span 2}::slotted([slot="action-left"].span-3){grid-column:1 / span 3}.hidden{display:none}';
|
|
629
|
+
var We = Object.defineProperty, ze = Object.getOwnPropertyDescriptor, T = (s, e, t, i) => {
|
|
630
|
+
for (var n = i > 1 ? void 0 : i ? ze(e, t) : e, o = s.length - 1, r; o >= 0; o--)
|
|
631
|
+
(r = s[o]) && (n = (i ? r(e, t, n) : r(n)) || n);
|
|
632
|
+
return i && n && We(e, t, n), n;
|
|
623
633
|
};
|
|
624
|
-
let
|
|
634
|
+
let A = class extends w {
|
|
625
635
|
constructor() {
|
|
626
|
-
super(), this.current = !1, this.compact = !1, this.
|
|
636
|
+
super(...arguments), this.current = !1, this.compact = !1, this.expanded = !1, this.mouseover = !1;
|
|
627
637
|
}
|
|
628
638
|
static get styles() {
|
|
629
|
-
return
|
|
630
|
-
}
|
|
631
|
-
connectedCallback() {
|
|
632
|
-
super.connectedCallback();
|
|
639
|
+
return j(Le);
|
|
633
640
|
}
|
|
634
|
-
handleToggleClick(
|
|
641
|
+
handleToggleClick(s) {
|
|
635
642
|
this.expanded = !this.expanded, this.dispatchEvent(new CustomEvent("ilw-header-megamenu-section-expanded", { detail: !this.expanded, bubbles: !0, composed: !0 }));
|
|
636
643
|
}
|
|
637
|
-
handleWindowKeydown(
|
|
638
|
-
|
|
639
|
-
}
|
|
640
|
-
isEmbedded() {
|
|
641
|
-
return this.parentElement && this.parentElement.closest("ilw-header-megamenu-section") != null;
|
|
642
|
-
}
|
|
643
|
-
isOnAnchorInLinked() {
|
|
644
|
-
return this.linked && document.activeElement && document.activeElement.tagName === "A";
|
|
644
|
+
handleWindowKeydown(s) {
|
|
645
|
+
s.key === "ArrowDown" ? (s.stopPropagation(), s.preventDefault(), this.moveToNextItem(), this.closeAllExceptOneSections(s.target)) : s.key === "ArrowUp" ? (s.stopPropagation(), s.preventDefault(), this.moveToPreviousItem(), this.closeAllExceptOneSections(s.target)) : s.key === "Escape" && this.expanded && (s.stopPropagation(), this.setFocus(), this.expanded = !1);
|
|
645
646
|
}
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
setFocus(i = !1) {
|
|
650
|
-
let e = null;
|
|
651
|
-
this.linked && !i ? e = this.querySelector("a") : this.shadowRoot && (e = this.shadowRoot.querySelector("a"), e == null && (e = this.shadowRoot.querySelector("button"))), e?.focus();
|
|
647
|
+
setFocus() {
|
|
648
|
+
const s = this.shadowRoot?.querySelector("button, a");
|
|
649
|
+
s && s.focus();
|
|
652
650
|
}
|
|
653
651
|
moveToNextItem() {
|
|
654
|
-
|
|
655
|
-
const
|
|
656
|
-
if (!
|
|
657
|
-
const e =
|
|
652
|
+
this.expanded || (this.expanded = !0);
|
|
653
|
+
const s = document.activeElement;
|
|
654
|
+
if (!s) return;
|
|
655
|
+
const e = s.closest("ILW-HEADER-MEGAMENU-SECTION");
|
|
658
656
|
if (!e) return;
|
|
659
|
-
const t = Array.from(e.querySelectorAll("a, button")),
|
|
660
|
-
let n =
|
|
661
|
-
|
|
657
|
+
const t = Array.from(e.querySelectorAll("a, button")), i = t.indexOf(s);
|
|
658
|
+
let n = i + 1;
|
|
659
|
+
i === -1 && (n = 0), n >= 0 && n < t.length && t[n].focus();
|
|
662
660
|
}
|
|
663
661
|
moveToPreviousItem() {
|
|
664
|
-
const
|
|
665
|
-
if (!
|
|
666
|
-
const e =
|
|
662
|
+
const s = document.activeElement;
|
|
663
|
+
if (!s) return;
|
|
664
|
+
const e = s.closest("ILW-HEADER-MEGAMENU-SECTION");
|
|
667
665
|
if (!e) return;
|
|
668
|
-
const t = Array.from(e.querySelectorAll("a, button")),
|
|
669
|
-
let n =
|
|
670
|
-
|
|
666
|
+
const t = Array.from(e.querySelectorAll("a, button")), i = t.indexOf(s);
|
|
667
|
+
let n = i - 1;
|
|
668
|
+
i === -1 && (n = t.length - 1), n >= 0 && n < t.length && t[n].focus();
|
|
671
669
|
}
|
|
672
670
|
renderArrow() {
|
|
673
671
|
return S`<svg class="arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40.4 23.82" aria-hidden="true">
|
|
@@ -677,96 +675,86 @@ let f = class extends A {
|
|
|
677
675
|
toggleMouseOver() {
|
|
678
676
|
this.mouseover = !this.mouseover;
|
|
679
677
|
}
|
|
680
|
-
handleNavigationSectionToggleClick(
|
|
681
|
-
|
|
678
|
+
handleNavigationSectionToggleClick(s) {
|
|
679
|
+
s.stopPropagation(), this.closeAllExceptOneSections(s.target);
|
|
682
680
|
}
|
|
683
681
|
getSections() {
|
|
684
682
|
return this.querySelectorAll("ilw-header-megamenu-section");
|
|
685
683
|
}
|
|
686
|
-
closeAllExceptOneSections(
|
|
684
|
+
closeAllExceptOneSections(s) {
|
|
687
685
|
this.getSections().forEach((e) => {
|
|
688
|
-
(
|
|
686
|
+
(s == null || s != e) && (e.expanded = !1);
|
|
689
687
|
});
|
|
690
688
|
}
|
|
689
|
+
hasSlotContent(s) {
|
|
690
|
+
const e = this.shadowRoot.querySelector(`slot[name="${s}"]`);
|
|
691
|
+
return e ? e.assignedNodes({ flatten: !0 }).length > 0 : !1;
|
|
692
|
+
}
|
|
691
693
|
render() {
|
|
692
|
-
const
|
|
694
|
+
const s = this.querySelector('span[slot="action-left"], span[slot="action-right"]');
|
|
693
695
|
let e = null;
|
|
694
|
-
if (
|
|
695
|
-
const
|
|
696
|
-
let l =
|
|
697
|
-
|
|
696
|
+
if (s) {
|
|
697
|
+
const r = s.querySelector("p")?.textContent?.trim() || "";
|
|
698
|
+
let l = s.querySelector("a, button");
|
|
699
|
+
r && (e = `action-${r.replace(/\s+/g, "-")}`, s.id = e), l && e && l.setAttribute("aria-describedby", e);
|
|
698
700
|
}
|
|
699
|
-
document.querySelectorAll("ilw-header-megamenu-section").forEach((
|
|
700
|
-
const l =
|
|
701
|
+
document.querySelectorAll("ilw-header-megamenu-section").forEach((r) => {
|
|
702
|
+
const l = r.querySelectorAll("ilw-header-megamenu-section.solo-list > ul > li"), a = l.length;
|
|
701
703
|
if (a === 5) {
|
|
702
|
-
l.forEach((
|
|
703
|
-
|
|
704
|
+
l.forEach((d, h) => {
|
|
705
|
+
d.style.borderRight = "none";
|
|
704
706
|
});
|
|
705
707
|
return;
|
|
706
708
|
}
|
|
707
|
-
let
|
|
708
|
-
|
|
709
|
-
h + 1 <=
|
|
709
|
+
let c = Math.floor(a / 5) * 5;
|
|
710
|
+
c = Math.min(c, 15), l.forEach((d, h) => {
|
|
711
|
+
h + 1 <= c ? d.style.borderRight = "solid 2px var(--il-storm-85, #d5d3d3)" : d.style.borderRight = "none";
|
|
710
712
|
});
|
|
711
713
|
});
|
|
712
|
-
let
|
|
714
|
+
let i = this.parentElement != null && this.parentElement.closest("ilw-header-megamenu-section") != null;
|
|
713
715
|
this.current = this.current || this.getAttribute("aria-current") != null && (this.getAttribute("aria-current") === "page" || this.getAttribute("aria-current") === "true");
|
|
714
|
-
|
|
715
|
-
<div class="header-link ${this.mouseover ? "highlighted" : ""} ${this.compact ? "compact" : ""} ${this.current ? "current" : ""}" @mouseover="${this.toggleMouseOver.bind(this)}" @mouseout="${this.toggleMouseOver.bind(this)}">
|
|
716
|
-
<slot name="link"></slot>
|
|
717
|
-
<button class="arrow-only" @click=${this.handleToggleClick.bind(this)} aria-expanded=${this.expanded ? "true" : "false"} aria-label=${this.querySelector('a[slot="link"]')?.textContent + " submenu"} aria-controls="items">
|
|
718
|
-
${this.renderArrow()}
|
|
719
|
-
</button>
|
|
720
|
-
</div>
|
|
721
|
-
`, r = S`
|
|
722
|
-
<button class="${this.current ? "current" : ""}" @click=${this.handleToggleClick.bind(this)} aria-expanded=${this.expanded ? "true" : "false"} aria-controls="items">
|
|
723
|
-
<div class="header">
|
|
724
|
-
<div class="label"><slot name="label"></slot> </div>
|
|
725
|
-
<div class="icon">${this.renderArrow()}</div>
|
|
726
|
-
</div>
|
|
727
|
-
</button>
|
|
728
|
-
`;
|
|
716
|
+
const o = !this.classList.contains("solo-list");
|
|
729
717
|
return S`
|
|
730
|
-
<div class="${
|
|
731
|
-
${this.
|
|
732
|
-
|
|
733
|
-
|
|
718
|
+
<div class="${i ? "submenu" : "menu"} parent" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick} @keydown=${this.handleWindowKeydown}>
|
|
719
|
+
<button class="${this.current ? "current" : ""}" @click=${this.handleToggleClick.bind(this)} aria-expanded=${this.expanded ? "true" : "false"} aria-controls="items">
|
|
720
|
+
<div class="header">
|
|
721
|
+
<div class="label"><slot name="label"></slot> </div>
|
|
722
|
+
<div class="icon">${this.renderArrow()}</div>
|
|
723
|
+
</div>
|
|
724
|
+
</button>
|
|
725
|
+
<div id="items" class="${this.expanded ? "expanded" : ""}">
|
|
726
|
+
${o ? S`
|
|
727
|
+
<div class="list-wrapper">
|
|
728
|
+
<slot name="action-left"></slot>
|
|
729
|
+
<slot id="list-slot"></slot>
|
|
730
|
+
<slot name="action-right"></slot>
|
|
731
|
+
</div>
|
|
732
|
+
` : S`<slot id="list-slot"></slot>`}
|
|
734
733
|
</div>
|
|
735
734
|
</div>
|
|
736
735
|
`;
|
|
737
736
|
}
|
|
738
737
|
};
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
type: Boolean
|
|
742
|
-
})
|
|
743
|
-
], f.prototype, "current", 2);
|
|
744
|
-
y([
|
|
745
|
-
$({
|
|
746
|
-
type: Boolean
|
|
747
|
-
})
|
|
748
|
-
], f.prototype, "compact", 2);
|
|
749
|
-
y([
|
|
750
|
-
$({
|
|
738
|
+
T([
|
|
739
|
+
x({
|
|
751
740
|
type: Boolean
|
|
752
741
|
})
|
|
753
|
-
],
|
|
754
|
-
|
|
755
|
-
|
|
742
|
+
], A.prototype, "current", 2);
|
|
743
|
+
T([
|
|
744
|
+
x({
|
|
756
745
|
type: Boolean
|
|
757
746
|
})
|
|
758
|
-
],
|
|
759
|
-
|
|
760
|
-
|
|
747
|
+
], A.prototype, "compact", 2);
|
|
748
|
+
T([
|
|
749
|
+
x({
|
|
761
750
|
type: Boolean
|
|
762
751
|
})
|
|
763
|
-
],
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
reflect: !0,
|
|
752
|
+
], A.prototype, "expanded", 2);
|
|
753
|
+
T([
|
|
754
|
+
x({
|
|
767
755
|
type: Boolean
|
|
768
756
|
})
|
|
769
|
-
],
|
|
770
|
-
|
|
757
|
+
], A.prototype, "mouseover", 2);
|
|
758
|
+
A = T([
|
|
771
759
|
he("ilw-header-megamenu-section")
|
|
772
|
-
],
|
|
760
|
+
], A);
|