@illinois-toolkit/ilw-header-megamenu 1.0.2 → 1.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,15 +1,15 @@
1
- const N = globalThis, D = N.ShadowRoot && (N.ShadyCSS === void 0 || N.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ne = /* @__PURE__ */ 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.");
1
+ const R = globalThis, z = R.ShadowRoot && (R.ShadyCSS === void 0 || R.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ne = /* @__PURE__ */ Symbol(), G = /* @__PURE__ */ new WeakMap();
2
+ let de = class {
3
+ constructor(e, t, s) {
4
+ if (this._$cssResult$ = !0, s !== 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 (D && 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));
10
+ if (z && e === void 0) {
11
+ const s = t !== void 0 && t.length === 1;
12
+ s && (e = G.get(t)), e === void 0 && ((this.o = e = new CSSStyleSheet()).replaceSync(this.cssText), s && G.set(t, e));
13
13
  }
14
14
  return e;
15
15
  }
@@ -17,48 +17,48 @@ let ce = class {
17
17
  return this.cssText;
18
18
  }
19
19
  };
20
- const j = (s) => new ce(typeof s == "string" ? s : s + "", void 0, ne), de = (s, e) => {
21
- if (D) s.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
20
+ const j = (i) => new de(typeof i == "string" ? i : i + "", void 0, ne), ce = (i, e) => {
21
+ if (z) i.adoptedStyleSheets = e.map(((t) => t instanceof CSSStyleSheet ? t : t.styleSheet));
22
22
  else for (const t of e) {
23
- const i = document.createElement("style"), n = N.litNonce;
24
- n !== void 0 && i.setAttribute("nonce", n), i.textContent = t.cssText, s.appendChild(i);
23
+ const s = document.createElement("style"), n = R.litNonce;
24
+ n !== void 0 && s.setAttribute("nonce", n), s.textContent = t.cssText, i.appendChild(s);
25
25
  }
26
- }, G = D ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
26
+ }, Z = z ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((e) => {
27
27
  let t = "";
28
- for (const i of e.cssRules) t += i.cssText;
28
+ for (const s of e.cssRules) t += s.cssText;
29
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, L = { toAttribute(s, e) {
30
+ })(i) : i;
31
+ const { is: ue, defineProperty: pe, getOwnPropertyDescriptor: me, getOwnPropertyNames: ge, getOwnPropertySymbols: fe, getPrototypeOf: be } = Object, I = globalThis, J = I.trustedTypes, ve = J ? J.emptyScript : "", $e = I.reactiveElementPolyfillSupport, O = (i, e) => i, U = { toAttribute(i, e) {
32
32
  switch (e) {
33
33
  case Boolean:
34
- s = s ? be : null;
34
+ i = i ? ve : null;
35
35
  break;
36
36
  case Object:
37
37
  case Array:
38
- s = s == null ? s : JSON.stringify(s);
38
+ i = i == null ? i : JSON.stringify(i);
39
39
  }
40
- return s;
41
- }, fromAttribute(s, e) {
42
- let t = s;
40
+ return i;
41
+ }, fromAttribute(i, e) {
42
+ let t = i;
43
43
  switch (e) {
44
44
  case Boolean:
45
- t = s !== null;
45
+ t = i !== null;
46
46
  break;
47
47
  case Number:
48
- t = s === null ? null : Number(s);
48
+ t = i === null ? null : Number(i);
49
49
  break;
50
50
  case Object:
51
51
  case Array:
52
52
  try {
53
- t = JSON.parse(s);
53
+ t = JSON.parse(i);
54
54
  } catch {
55
55
  t = null;
56
56
  }
57
57
  }
58
58
  return t;
59
- } }, q = (s, e) => !ue(s, e), Q = { attribute: !0, type: String, converter: L, reflect: !1, useDefault: !1, hasChanged: q };
60
- Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), W.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
61
- let $ = class extends HTMLElement {
59
+ } }, q = (i, e) => !ue(i, e), Q = { attribute: !0, type: String, converter: U, reflect: !1, useDefault: !1, hasChanged: q };
60
+ Symbol.metadata ??= /* @__PURE__ */ Symbol("metadata"), I.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 i = /* @__PURE__ */ Symbol(), n = this.getPropertyDescriptor(e, i, t);
70
+ const s = /* @__PURE__ */ Symbol(), n = this.getPropertyDescriptor(e, s, t);
71
71
  n !== void 0 && pe(this.prototype, e, n);
72
72
  }
73
73
  }
74
- static getPropertyDescriptor(e, t, i) {
74
+ static getPropertyDescriptor(e, t, s) {
75
75
  const { get: n, set: o } = me(this.prototype, e) ?? { get() {
76
76
  return this[t];
77
77
  }, set(r) {
78
78
  this[t] = r;
79
79
  } };
80
80
  return { get: n, set(r) {
81
- const l = n?.call(this);
82
- o?.call(this, r), this.requestUpdate(e, l, i);
81
+ const a = n?.call(this);
82
+ o?.call(this, r), this.requestUpdate(e, a, s);
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(k("elementProperties"))) return;
90
- const e = ve(this);
89
+ if (this.hasOwnProperty(O("elementProperties"))) return;
90
+ const e = be(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(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]);
94
+ if (this.hasOwnProperty(O("finalized"))) return;
95
+ if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(O("properties"))) {
96
+ const t = this.properties, s = [...ge(t), ...fe(t)];
97
+ for (const n of s) 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 [i, n] of t) this.elementProperties.set(i, n);
102
+ if (t !== void 0) for (const [s, n] of t) this.elementProperties.set(s, n);
103
103
  }
104
104
  this._$Eh = /* @__PURE__ */ new Map();
105
- for (const [t, i] of this.elementProperties) {
106
- const n = this._$Eu(t, i);
105
+ for (const [t, s] of this.elementProperties) {
106
+ const n = this._$Eu(t, s);
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 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));
114
+ const s = new Set(e.flat(1 / 0).reverse());
115
+ for (const n of s) t.unshift(Z(n));
116
+ } else e !== void 0 && t.push(Z(e));
117
117
  return t;
118
118
  }
119
119
  static _$Eu(e, t) {
120
- const i = t.attribute;
121
- return i === !1 ? void 0 : typeof i == "string" ? i : typeof e == "string" ? e.toLowerCase() : void 0;
120
+ const s = t.attribute;
121
+ return s === !1 ? void 0 : typeof s == "string" ? s : 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 i of t.keys()) this.hasOwnProperty(i) && (e.set(i, this[i]), delete this[i]);
137
+ for (const s of t.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
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 de(e, this.constructor.elementStyles), e;
142
+ return ce(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, i) {
153
- this._$AK(e, i);
152
+ attributeChangedCallback(e, t, s) {
153
+ this._$AK(e, s);
154
154
  }
155
155
  _$ET(e, t) {
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 : L).toAttribute(t, i.type);
156
+ const s = this.constructor.elementProperties.get(e), n = this.constructor._$Eu(e, s);
157
+ if (n !== void 0 && s.reflect === !0) {
158
+ const o = (s.converter?.toAttribute !== void 0 ? s.converter : U).toAttribute(t, s.type);
159
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 i = this.constructor, n = i._$Eh.get(e);
163
+ const s = this.constructor, n = s._$Eh.get(e);
164
164
  if (n !== void 0 && this._$Em !== n) {
165
- const o = i.getPropertyOptions(n), r = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : L;
165
+ const o = s.getPropertyOptions(n), r = typeof o.converter == "function" ? { fromAttribute: o.converter } : o.converter?.fromAttribute !== void 0 ? o.converter : U;
166
166
  this._$Em = n;
167
- const l = r.fromAttribute(t, o.type);
168
- this[n] = l ?? this._$Ej?.get(n) ?? l, this._$Em = null;
167
+ const a = r.fromAttribute(t, o.type);
168
+ this[n] = a ?? this._$Ej?.get(n) ?? a, this._$Em = null;
169
169
  }
170
170
  }
171
- requestUpdate(e, t, i) {
171
+ requestUpdate(e, t, s) {
172
172
  if (e !== void 0) {
173
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);
174
+ if (s ??= n.getPropertyOptions(e), !((s.hasChanged ?? q)(o, t) || s.useDefault && s.reflect && o === this._$Ej?.get(e) && !this.hasAttribute(n._$Eu(e, s)))) return;
175
+ this.C(e, t, s);
176
176
  }
177
177
  this.isUpdatePending === !1 && (this._$ES = this._$EP());
178
178
  }
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));
179
+ C(e, t, { useDefault: s, reflect: n, wrapped: o }, r) {
180
+ s && !(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 || s || (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;
@@ -199,18 +199,18 @@ let $ = class extends HTMLElement {
199
199
  for (const [n, o] of this._$Ep) this[n] = o;
200
200
  this._$Ep = void 0;
201
201
  }
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);
202
+ const s = this.constructor.elementProperties;
203
+ if (s.size > 0) for (const [n, o] of s) {
204
+ const { wrapped: r } = o, a = this[n];
205
+ r !== !0 || this._$AL.has(n) || a === void 0 || this.C(n, void 0, o, a);
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(((i) => i.hostUpdate?.())), this.update(t)) : this._$EM();
212
- } catch (i) {
213
- throw e = !1, this._$EM(), i;
211
+ e = this.shouldUpdate(t), e ? (this.willUpdate(t), this._$EO?.forEach(((s) => s.hostUpdate?.())), this.update(t)) : this._$EM();
212
+ } catch (s) {
213
+ throw e = !1, this._$EM(), s;
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
- $.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, R = B.trustedTypes, X = R ? R.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", z = `[
244
- \f\r]`, E = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y = /-->/g, ee = />/g, f = RegExp(`>|${z}(?:([^\\s"'>=/]+)(${z}*=${z}*(?:[^
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 = /* @__PURE__ */ Symbol.for("lit-noChange"), u = /* @__PURE__ */ 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");
242
+ _.elementStyles = [], _.shadowRootOptions = { mode: "open" }, _[O("elementProperties")] = /* @__PURE__ */ new Map(), _[O("finalized")] = /* @__PURE__ */ new Map(), $e?.({ ReactiveElement: _ }), (I.reactiveElementVersions ??= []).push("2.1.1");
243
+ const B = globalThis, L = B.trustedTypes, X = L ? L.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, oe = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, re = "?" + g, we = `<${re}>`, $ = document, P = () => $.createComment(""), N = (i) => i === null || typeof i != "object" && typeof i != "function", F = Array.isArray, ye = (i) => F(i) || typeof i?.[Symbol.iterator] == "function", D = `[
244
+ \f\r]`, C = /<(?:(!--|\/[^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, le = /^(?:script|style|textarea|title)$/i, _e = (i) => (e, ...t) => ({ _$litType$: i, strings: e, values: t }), b = _e(1), E = /* @__PURE__ */ Symbol.for("lit-noChange"), u = /* @__PURE__ */ Symbol.for("lit-nothing"), se = /* @__PURE__ */ new WeakMap(), v = $.createTreeWalker($, 129);
246
+ function ae(i, e) {
247
+ if (!F(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
248
248
  return X !== void 0 ? X.createHTML(e) : e;
249
249
  }
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
- for (let l = 0; l < t; l++) {
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
- }
260
- return [le(s, o + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
250
+ const Ae = (i, e) => {
251
+ const t = i.length - 1, s = [];
252
+ let n, o = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", r = C;
253
+ for (let a = 0; a < t; a++) {
254
+ const l = i[a];
255
+ let d, c, h = -1, p = 0;
256
+ for (; p < l.length && (r.lastIndex = p, c = r.exec(l), c !== null); ) p = r.lastIndex, r === C ? c[1] === "!--" ? r = Y : c[1] !== void 0 ? r = ee : c[2] !== void 0 ? (le.test(c[2]) && (n = RegExp("</" + c[2], "g")), r = f) : c[3] !== void 0 && (r = f) : r === f ? c[0] === ">" ? (r = n ?? C, h = -1) : c[1] === void 0 ? h = -2 : (h = r.lastIndex - c[2].length, d = c[1], r = c[3] === void 0 ? f : c[3] === '"' ? ie : te) : r === ie || r === te ? r = f : r === Y || r === ee ? r = C : (r = f, n = void 0);
257
+ const m = r === f && i[a + 1].startsWith("/>") ? " " : "";
258
+ o += r === C ? l + we : h >= 0 ? (s.push(d), l.slice(0, h) + oe + l.slice(h) + g + m) : l + g + (h === -2 ? a : m);
259
+ }
260
+ return [ae(i, o + (i[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
261
261
  };
262
- class O {
263
- constructor({ strings: e, _$litType$: t }, i) {
262
+ class M {
263
+ constructor({ strings: e, _$litType$: t }, s) {
264
264
  let n;
265
265
  this.parts = [];
266
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) {
267
+ const a = e.length - 1, l = this.parts, [d, c] = Ae(e, t);
268
+ if (this.el = M.createElement(d, s), 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
- for (; (n = v.nextNode()) !== null && a.length < l; ) {
272
+ for (; (n = v.nextNode()) !== null && l.length < a; ) {
273
273
  if (n.nodeType === 1) {
274
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), U = /([.?@])?(.*)/.exec(p);
276
- a.push({ type: 1, index: o, name: U[2], strings: m, ctor: U[1] === "." ? Ee : U[1] === "?" ? Se : U[1] === "@" ? ke : I }), n.removeAttribute(h);
277
- } else h.startsWith(g) && (a.push({ type: 6, index: o }), n.removeAttribute(h));
278
- if (ae.test(n.tagName)) {
275
+ const p = c[r++], m = n.getAttribute(h).split(g), S = /([.?@])?(.*)/.exec(p);
276
+ l.push({ type: 1, index: o, name: S[2], strings: m, ctor: S[1] === "." ? xe : S[1] === "?" ? ke : S[1] === "@" ? Se : W }), n.removeAttribute(h);
277
+ } else h.startsWith(g) && (l.push({ type: 6, index: o }), n.removeAttribute(h));
278
+ if (le.test(n.tagName)) {
279
279
  const h = n.textContent.split(g), p = h.length - 1;
280
280
  if (p > 0) {
281
- n.textContent = R ? R.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());
281
+ n.textContent = L ? L.emptyScript : "";
282
+ for (let m = 0; m < p; m++) n.append(h[m], P()), v.nextNode(), l.push({ type: 2, index: ++o });
283
+ n.append(h[p], P());
284
284
  }
285
285
  }
286
- } else if (n.nodeType === 8) if (n.data === re) a.push({ type: 2, index: o });
286
+ } else if (n.nodeType === 8) if (n.data === re) l.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: o }), h += g.length - 1;
289
+ for (; (h = n.data.indexOf(g, h + 1)) !== -1; ) l.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 i = b.createElement("template");
296
- return i.innerHTML = e, i;
295
+ const s = $.createElement("template");
296
+ return s.innerHTML = e, s;
297
297
  }
298
298
  }
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;
299
+ function x(i, e, t = i, s) {
300
+ if (e === E) return e;
301
+ let n = s !== void 0 ? t._$Co?.[s] : t._$Cl;
302
+ const o = N(e) ? void 0 : e._$litDirective$;
303
+ return n?.constructor !== o && (n?._$AO?.(!1), o === void 0 ? n = void 0 : (n = new o(i), n._$AT(i, t, s)), s !== void 0 ? (t._$Co ??= [])[s] = n : t._$Cl = n), n !== void 0 && (e = x(i, n._$AS(i, e.values), n, s)), e;
304
304
  }
305
- class xe {
305
+ class Ee {
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 xe {
313
313
  return this._$AM._$AU;
314
314
  }
315
315
  u(e) {
316
- const { el: { content: t }, parts: i } = this._$AD, n = (e?.creationScope ?? b).importNode(t, !0);
316
+ const { el: { content: t }, parts: s } = this._$AD, n = (e?.creationScope ?? $).importNode(t, !0);
317
317
  v.currentNode = n;
318
- let o = v.nextNode(), r = 0, l = 0, a = i[0];
319
- for (; a !== void 0; ) {
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];
318
+ let o = v.nextNode(), r = 0, a = 0, l = s[0];
319
+ for (; l !== void 0; ) {
320
+ if (r === l.index) {
321
+ let d;
322
+ l.type === 2 ? d = new T(o, o.nextSibling, this, e) : l.type === 1 ? d = new l.ctor(o, l.name, l.strings, this, e) : l.type === 6 && (d = new Ce(o, this, e)), this._$AV.push(d), l = s[++a];
323
323
  }
324
- r !== a?.index && (o = v.nextNode(), r++);
324
+ r !== l?.index && (o = v.nextNode(), r++);
325
325
  }
326
- return v.currentNode = b, n;
326
+ return v.currentNode = $, n;
327
327
  }
328
328
  p(e) {
329
329
  let t = 0;
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++;
330
+ for (const s of this._$AV) s !== void 0 && (s.strings !== void 0 ? (s._$AI(e, s, t), t += s.strings.length - 2) : s._$AI(e[t])), t++;
331
331
  }
332
332
  }
333
- class M {
333
+ class T {
334
334
  get _$AU() {
335
335
  return this._$AM?._$AU ?? this._$Cv;
336
336
  }
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;
337
+ constructor(e, t, s, n) {
338
+ this.type = 2, this._$AH = u, this._$AN = void 0, this._$AA = e, this._$AB = t, this._$AM = s, 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 = _(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);
352
+ e = x(this, e, t), N(e) ? e === u || e == null || e === "" ? (this._$AH !== u && this._$AR(), this._$AH = u) : e !== this._$AH && e !== E && 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,55 +358,55 @@ 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(b.createTextNode(e)), this._$AH = e;
361
+ this._$AH !== u && N(this._$AH) ? this._$AA.nextSibling.data = e : this.T($.createTextNode(e)), this._$AH = e;
362
362
  }
363
363
  $(e) {
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);
364
+ const { values: t, _$litType$: s } = e, n = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = M.createElement(ae(s.h, s.h[0]), this.options)), s);
365
365
  if (this._$AH?._$AD === n) this._$AH.p(t);
366
366
  else {
367
- const o = new xe(n, this), r = o.u(this.options);
367
+ const o = new Ee(n, this), r = o.u(this.options);
368
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 O(e)), t;
373
+ return t === void 0 && se.set(e.strings, t = new M(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 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);
378
+ let s, n = 0;
379
+ for (const o of e) n === t.length ? t.push(s = new T(this.O(P()), this.O(P()), this, this.options)) : s = t[n], s._$AI(o), n++;
380
+ n < t.length && (this._$AR(s && s._$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 i = e.nextSibling;
385
- e.remove(), e = i;
384
+ const s = e.nextSibling;
385
+ e.remove(), e = s;
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 I {
392
+ class W {
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, 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;
399
+ constructor(e, t, s, 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, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = u;
401
401
  }
402
- _$AI(e, t = this, i, n) {
402
+ _$AI(e, t = this, s, n) {
403
403
  const o = this.strings;
404
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);
405
+ if (o === void 0) e = x(this, e, t, 0), r = !N(e) || e !== this._$AH && e !== E, r && (this._$AH = e);
406
406
  else {
407
- const l = 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;
407
+ const a = e;
408
+ let l, d;
409
+ for (e = o[0], l = 0; l < o.length - 1; l++) d = x(this, a[s + l], t, l), d === E && (d = this._$AH[l]), r ||= !N(d) || d !== this._$AH[l], d === u ? e = u : e !== u && (e += (d ?? "") + o[l + 1]), this._$AH[l] = d;
410
410
  }
411
411
  r && !n && this.j(e);
412
412
  }
@@ -414,7 +414,7 @@ class I {
414
414
  e === u ? this.element.removeAttribute(this.name) : this.element.setAttribute(this.name, e ?? "");
415
415
  }
416
416
  }
417
- class Ee extends I {
417
+ class xe extends W {
418
418
  constructor() {
419
419
  super(...arguments), this.type = 3;
420
420
  }
@@ -422,7 +422,7 @@ class Ee extends I {
422
422
  this.element[this.name] = e === u ? void 0 : e;
423
423
  }
424
424
  }
425
- class Se extends I {
425
+ class ke extends W {
426
426
  constructor() {
427
427
  super(...arguments), this.type = 4;
428
428
  }
@@ -430,43 +430,43 @@ class Se extends I {
430
430
  this.element.toggleAttribute(this.name, !!e && e !== u);
431
431
  }
432
432
  }
433
- class ke extends I {
434
- constructor(e, t, i, n, o) {
435
- super(e, t, i, n, o), this.type = 5;
433
+ class Se extends W {
434
+ constructor(e, t, s, n, o) {
435
+ super(e, t, s, n, o), this.type = 5;
436
436
  }
437
437
  _$AI(e, t = 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;
438
+ if ((e = x(this, e, t, 0) ?? u) === E) return;
439
+ const s = this._$AH, n = e === u && s !== u || e.capture !== s.capture || e.once !== s.once || e.passive !== s.passive, o = e !== u && (s === u || n);
440
+ n && this.element.removeEventListener(this.name, this, s), 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, i) {
448
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = i;
447
+ constructor(e, t, s) {
448
+ this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = s;
449
449
  }
450
450
  get _$AU() {
451
451
  return this._$AM._$AU;
452
452
  }
453
453
  _$AI(e) {
454
- _(this, e);
454
+ x(this, e);
455
455
  }
456
456
  }
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$;
457
+ const Oe = B.litHtmlPolyfillSupport;
458
+ Oe?.(M, T), (B.litHtmlVersions ??= []).push("3.3.1");
459
+ const Pe = (i, e, t) => {
460
+ const s = t?.renderBefore ?? e;
461
+ let n = s._$litPart$;
462
462
  if (n === void 0) {
463
463
  const o = t?.renderBefore ?? null;
464
- i._$litPart$ = n = new M(e.insertBefore(C(), o), o, void 0, t ?? {});
464
+ s._$litPart$ = n = new T(e.insertBefore(P(), o), o, void 0, t ?? {});
465
465
  }
466
- return n._$AI(s), n;
466
+ return n._$AI(i), n;
467
467
  };
468
- const V = globalThis;
469
- class w extends $ {
468
+ const K = globalThis;
469
+ class A extends _ {
470
470
  constructor() {
471
471
  super(...arguments), this.renderOptions = { host: this }, this._$Do = void 0;
472
472
  }
@@ -476,7 +476,7 @@ class w 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 = Oe(t, this.renderRoot, this.renderOptions);
479
+ this.hasUpdated || (this.renderOptions.isConnected = this.isConnected), super.update(e), this._$Do = Pe(t, this.renderRoot, this.renderOptions);
480
480
  }
481
481
  connectedCallback() {
482
482
  super.connectedCallback(), this._$Do?.setConnected(!0);
@@ -485,57 +485,57 @@ class w extends $ {
485
485
  super.disconnectedCallback(), this._$Do?.setConnected(!1);
486
486
  }
487
487
  render() {
488
- return y;
488
+ return E;
489
489
  }
490
490
  }
491
- w._$litElement$ = !0, w.finalized = !0, V.litElementHydrateSupport?.({ LitElement: w });
492
- const Me = V.litElementPolyfillSupport;
493
- Me?.({ LitElement: w });
494
- (V.litElementVersions ??= []).push("4.2.1");
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) => {
491
+ A._$litElement$ = !0, A.finalized = !0, K.litElementHydrateSupport?.({ LitElement: A });
492
+ const Ne = K.litElementPolyfillSupport;
493
+ Ne?.({ LitElement: A });
494
+ (K.litElementVersions ??= []).push("4.2.1");
495
+ const Me = "@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: 1220px;--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 = (i) => (e, t) => {
497
497
  t !== void 0 ? t.addInitializer((() => {
498
- customElements.define(s, e);
499
- })) : customElements.define(s, e);
498
+ customElements.define(i, e);
499
+ })) : customElements.define(i, e);
500
500
  };
501
- const Ue = { attribute: !0, type: String, converter: L, reflect: !1, hasChanged: q }, Ne = (s = Ue, e, t) => {
502
- const { kind: i, metadata: n } = t;
501
+ const Te = { attribute: !0, type: String, converter: U, reflect: !1, hasChanged: q }, Re = (i = Te, e, t) => {
502
+ const { kind: s, metadata: n } = t;
503
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") {
504
+ if (o === void 0 && globalThis.litPropertyMetadata.set(n, o = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), o.set(t.name, i), s === "accessor") {
505
505
  const { name: r } = t;
506
- return { set(l) {
507
- const a = e.get.call(this);
508
- e.set.call(this, l), this.requestUpdate(r, a, s);
509
- }, init(l) {
510
- return l !== void 0 && this.C(r, void 0, s, l), l;
506
+ return { set(a) {
507
+ const l = e.get.call(this);
508
+ e.set.call(this, a), this.requestUpdate(r, l, i);
509
+ }, init(a) {
510
+ return a !== void 0 && this.C(r, void 0, i, a), a;
511
511
  } };
512
512
  }
513
- if (i === "setter") {
513
+ if (s === "setter") {
514
514
  const { name: r } = t;
515
- return function(l) {
516
- const a = this[r];
517
- e.call(this, l), this.requestUpdate(r, a, s);
515
+ return function(a) {
516
+ const l = this[r];
517
+ e.call(this, a), this.requestUpdate(r, l, i);
518
518
  };
519
519
  }
520
- throw Error("Unsupported decorator location: " + i);
520
+ throw Error("Unsupported decorator location: " + s);
521
521
  };
522
- function x(s) {
523
- return (e, t) => typeof t == "object" ? Ne(s, e, t) : ((i, n, o) => {
522
+ function y(i) {
523
+ return (e, t) => typeof t == "object" ? Re(i, e, t) : ((s, n, o) => {
524
524
  const r = n.hasOwnProperty(o);
525
- return n.constructor.createProperty(o, i), r ? Object.getOwnPropertyDescriptor(n, o) : void 0;
526
- })(s, e, t);
525
+ return n.constructor.createProperty(o, s), r ? Object.getOwnPropertyDescriptor(n, o) : void 0;
526
+ })(i, e, t);
527
527
  }
528
- var Le = Object.defineProperty, Re = Object.getOwnPropertyDescriptor, K = (s, e, t, i) => {
529
- for (var n = i > 1 ? void 0 : i ? Re(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 && Le(e, t, n), n;
528
+ var Ue = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, V = (i, e, t, s) => {
529
+ for (var n = s > 1 ? void 0 : s ? Le(e, t) : e, o = i.length - 1, r; o >= 0; o--)
530
+ (r = i[o]) && (n = (s ? r(e, t, n) : r(n)) || n);
531
+ return s && n && Ue(e, t, n), n;
532
532
  };
533
- let H = class extends w {
533
+ let H = class extends A {
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 j(Te);
538
+ return j(Me);
539
539
  }
540
540
  connectedCallback() {
541
541
  super.connectedCallback(), window.addEventListener("click", this.handleWindowClick.bind(this)), window.addEventListener("resize", this.handleWindowResize), this.handleWindowResize();
@@ -543,66 +543,68 @@ let H = class extends w {
543
543
  disconnectedCallback() {
544
544
  super.disconnectedCallback(), window.removeEventListener("click", this.handleWindowClick.bind(this)), window.removeEventListener("resize", this.handleWindowResize);
545
545
  }
546
- handleWindowClick(s) {
547
- this.contains(s.target) || this.closeAllExceptOneSections(null);
546
+ handleWindowClick(i) {
547
+ this.contains(i.target) || this.closeAllExceptOneSections(null);
548
548
  }
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());
549
+ handleWindowKeydown(i) {
550
+ if (i.key === "Escape" && this.closeAllExceptOneSections(null), i.key === "ArrowRight" && (i.preventDefault(), this.closeAllExceptOneSections(null), this.gotoNextSection()), i.key === "ArrowLeft" && (i.preventDefault(), this.closeAllExceptOneSections(null), this.gotoPreviousSection()), i.key !== "Tab" || i.shiftKey) return;
551
+ const e = document.activeElement;
552
+ if (!e) return;
553
+ const t = e.closest(
554
+ "ilw-header-megamenu-section"
555
+ );
556
+ if (!t || !t.expanded) return;
557
+ const s = t.querySelectorAll(
558
+ 'a[href], button, input, select, textarea, [tabindex]:not([tabindex="-1"])'
559
+ ), n = s[s.length - 1];
560
+ e === n && (t.expanded = !1);
551
561
  }
552
- handleNavigationSectionToggleClick(s) {
553
- this.closeAllExceptOneSections(s.target);
562
+ handleNavigationSectionToggleClick(i) {
563
+ this.closeAllExceptOneSections(i.target);
554
564
  }
555
565
  gotoPreviousSection() {
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());
566
+ let i = null, e = document.activeElement;
567
+ if (e != null) {
568
+ if (e.closest("li") && e.closest("li").previousElementSibling) {
569
+ const t = e.closest("li").previousElementSibling;
570
+ t && t.children.length > 0 && (i = t.children[0]);
571
+ }
572
+ i && i.tagName === "ILW-HEADER-MEGAMENU-SECTION" ? i.setFocus(!0) : i.focus();
573
+ }
568
574
  }
569
575
  gotoNextSection() {
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());
576
+ let i = null, e = document.activeElement;
577
+ if (e != null) {
578
+ if (e.closest("li") && e.closest("li").nextElementSibling) {
579
+ const t = e.closest("li").nextElementSibling;
580
+ t && t.children.length > 0 && (i = t.children[0]);
581
+ }
582
+ i && i.tagName === "ILW-HEADER-MEGAMENU-SECTION" ? i.setFocus() : i.focus();
583
+ }
582
584
  }
583
585
  handleWindowResize() {
584
586
  (this.offsetWidth == 0 ? window.innerWidth : this.offsetWidth) < this.width ? this.compact || this.setCompactTrue() : this.compact && this.setCompactFalse();
585
587
  }
586
588
  setCompactTrue() {
587
- this.compact = !0, this.querySelectorAll("ilw-header-megamenu-section").forEach((s) => {
588
- s.compact = !0;
589
+ this.compact = !0, this.querySelectorAll("ilw-header-megamenu-section").forEach((i) => {
590
+ i.compact = !0;
589
591
  });
590
592
  }
591
593
  setCompactFalse() {
592
- this.compact = !1, this.querySelectorAll("ilw-header-megamenu-section").forEach((s) => {
593
- s.compact = !1;
594
+ this.compact = !1, this.querySelectorAll("ilw-header-megamenu-section").forEach((i) => {
595
+ i.compact = !1;
594
596
  });
595
597
  }
596
598
  getSections() {
597
599
  return this.querySelectorAll("ilw-header-megamenu-section");
598
600
  }
599
- closeAllExceptOneSections(s) {
601
+ closeAllExceptOneSections(i) {
600
602
  this.getSections().forEach((e) => {
601
- (s == null || s != e) && (e.expanded = !1);
603
+ (i == null || i != e) && (e.expanded = !1);
602
604
  });
603
605
  }
604
606
  render() {
605
- return S`
607
+ return b`
606
608
  <nav aria-label="Header Menu Navigation" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick}>
607
609
  <div class="parent ${this.compact ? "compact" : "full"}">
608
610
  <slot></slot>
@@ -611,154 +613,178 @@ let H = class extends w {
611
613
  `;
612
614
  }
613
615
  };
614
- K([
615
- x({
616
+ V([
617
+ y({
616
618
  type: Boolean,
617
619
  reflect: !0
618
620
  })
619
621
  ], H.prototype, "compact", 2);
620
- K([
621
- x({
622
+ V([
623
+ y({
622
624
  type: Number
623
625
  })
624
626
  ], H.prototype, "width", 2);
625
- H = K([
627
+ H = V([
626
628
  he("ilw-header-megamenu")
627
629
  ], H);
628
- const He = '#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){columns:4;break-inside:avoid;max-width:100vw}div.list-wrapper{display:grid;grid-template-columns:repeat(4,minmax(0,320px));max-width:100vw;overflow:hidden}@media(max-width:989px){div.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, Ie = Object.getOwnPropertyDescriptor, T = (s, e, t, i) => {
630
- for (var n = i > 1 ? void 0 : i ? Ie(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;
630
+ const He = '#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){columns:4;break-inside:avoid;max-width:100vw}div.list-wrapper{display:grid;grid-template-columns:repeat(4,1fr);overflow:hidden;max-width:100vw}@media(max-width:989px){div.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}';
631
+ var Ie = Object.defineProperty, We = Object.getOwnPropertyDescriptor, k = (i, e, t, s) => {
632
+ for (var n = s > 1 ? void 0 : s ? We(e, t) : e, o = i.length - 1, r; o >= 0; o--)
633
+ (r = i[o]) && (n = (s ? r(e, t, n) : r(n)) || n);
634
+ return s && n && Ie(e, t, n), n;
633
635
  };
634
- let A = class extends w {
636
+ let w = class extends A {
635
637
  constructor() {
636
- super(...arguments), this.current = !1, this.compact = !1, this.expanded = !1, this.mouseover = !1, this.limitSoloListItems = (s) => {
637
- s.currentTarget.assignedElements({ flatten: !0 }).filter((i) => i instanceof HTMLUListElement).flatMap((i) => Array.from(i.children).filter((n) => n instanceof HTMLLIElement)).slice(20).forEach((i) => {
638
- i.hidden = !0;
639
- });
640
- };
638
+ super(), this.current = !1, this.compact = !1, this.expanded = !1, this.mouseover = !1, this.linked = !1, this.addEventListener("keydown", this.handleWindowKeydown.bind(this));
641
639
  }
642
640
  static get styles() {
643
641
  return j(He);
644
642
  }
645
- handleToggleClick(s) {
643
+ connectedCallback() {
644
+ super.connectedCallback();
645
+ }
646
+ handleToggleClick(i) {
646
647
  this.expanded = !this.expanded, this.dispatchEvent(new CustomEvent("ilw-header-megamenu-section-expanded", { detail: !this.expanded, bubbles: !0, composed: !0 }));
647
648
  }
648
- handleWindowKeydown(s) {
649
- 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);
649
+ handleWindowKeydown(i) {
650
+ i.key === "ArrowDown" ? (i.stopPropagation(), i.preventDefault(), this.moveToNextItem(), this.closeAllExceptOneSections(i.target)) : i.key === "ArrowRight" || i.key === "ArrowLeft" ? this.isOnAnchorInLinked() && i.key === "ArrowRight" ? (i.stopPropagation(), i.preventDefault(), this.expanded = !1, this.setFocus(!0)) : this.isOnButtonInLinked() && i.key === "ArrowLeft" ? (i.stopPropagation(), i.preventDefault(), this.expanded = !1, this.setFocus()) : this.isOnButtonInLinked() && i.key === "ArrowRight" ? this.expanded = !1 : this.isOnAnchorInLinked() && i.key === "ArrowLeft" ? this.expanded = !1 : (this.expanded = !1, this.setFocus()) : i.key === "ArrowUp" ? (i.stopPropagation(), i.preventDefault(), this.moveToPreviousItem(), this.closeAllExceptOneSections(i.target)) : i.key === "Escape" && this.expanded && (i.stopPropagation(), this.setFocus(), this.expanded = !1);
650
651
  }
651
- setFocus() {
652
- const s = this.shadowRoot?.querySelector("button, a");
653
- s && s.focus();
652
+ isEmbedded() {
653
+ return this.parentElement && this.parentElement.closest("ilw-header-megamenu-section") != null;
654
+ }
655
+ isOnAnchorInLinked() {
656
+ return this.linked && document.activeElement && document.activeElement.tagName === "A";
657
+ }
658
+ isOnButtonInLinked() {
659
+ return this.linked && document.activeElement && document.activeElement.tagName === "ILW-HEADER-MEGAMENU-SECTION";
660
+ }
661
+ setFocus(i = !1) {
662
+ let e = null;
663
+ this.linked && !i ? e = this.querySelector("a") : this.shadowRoot && (e = this.shadowRoot.querySelector("a"), e == null && (e = this.shadowRoot.querySelector("button"))), e?.focus();
654
664
  }
655
665
  moveToNextItem() {
656
- this.expanded || (this.expanded = !0);
657
- const s = document.activeElement;
658
- if (!s) return;
659
- const e = s.closest("ILW-HEADER-MEGAMENU-SECTION");
666
+ !this.expanded && !this.isEmbedded() && (this.expanded = !0);
667
+ const i = document.activeElement;
668
+ if (!i) return;
669
+ const e = i.closest("ILW-HEADER-MEGAMENU-SECTION");
660
670
  if (!e) return;
661
- const t = Array.from(e.querySelectorAll("a, button")), i = t.indexOf(s);
662
- let n = i + 1;
663
- i === -1 && (n = 0), n >= 0 && n < t.length && t[n].focus();
671
+ const t = Array.from(e.querySelectorAll("a, button")), s = t.indexOf(i);
672
+ let n = s + 1;
673
+ s === -1 && (n = 0), n >= 0 && n < t.length && t[n].focus();
664
674
  }
665
675
  moveToPreviousItem() {
666
- const s = document.activeElement;
667
- if (!s) return;
668
- const e = s.closest("ILW-HEADER-MEGAMENU-SECTION");
676
+ const i = document.activeElement;
677
+ if (!i) return;
678
+ const e = i.closest("ILW-HEADER-MEGAMENU-SECTION");
669
679
  if (!e) return;
670
- const t = Array.from(e.querySelectorAll("a, button")), i = t.indexOf(s);
671
- let n = i - 1;
672
- i === -1 && (n = t.length - 1), n >= 0 && n < t.length && t[n].focus();
680
+ const t = Array.from(e.querySelectorAll("a, button")), s = t.indexOf(i);
681
+ let n = s - 1;
682
+ s === -1 && (n = t.length - 1), n >= 0 && n < t.length && t[n].focus();
673
683
  }
674
684
  renderArrow() {
675
- return S`<svg class="arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40.4 23.82" aria-hidden="true">
685
+ return b`<svg class="arrow" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40.4 23.82" aria-hidden="true">
676
686
  <path id="chevron" d="m39.34,1.06c-1.41-1.41-3.7-1.41-5.12,0l-14.02,14.02L6.18,1.06C4.76-.35,2.47-.35,1.06,1.06s-1.41,3.7,0,5.12l16.58,16.58c1.41,1.41,3.7,1.41,5.12,0L39.34,6.18c1.41-1.41,1.41-3.7,0-5.12Z"/>
677
687
  </svg>`;
678
688
  }
679
689
  toggleMouseOver() {
680
690
  this.mouseover = !this.mouseover;
681
691
  }
682
- handleNavigationSectionToggleClick(s) {
683
- s.stopPropagation(), this.closeAllExceptOneSections(s.target);
692
+ handleNavigationSectionToggleClick(i) {
693
+ i.stopPropagation(), this.closeAllExceptOneSections(i.target);
684
694
  }
685
695
  getSections() {
686
696
  return this.querySelectorAll("ilw-header-megamenu-section");
687
697
  }
688
- closeAllExceptOneSections(s) {
698
+ closeAllExceptOneSections(i) {
689
699
  this.getSections().forEach((e) => {
690
- (s == null || s != e) && (e.expanded = !1);
700
+ (i == null || i != e) && (e.expanded = !1);
691
701
  });
692
702
  }
693
- hasSlotContent(s) {
694
- const e = this.shadowRoot.querySelector(`slot[name="${s}"]`);
703
+ hasSlotContent(i) {
704
+ const e = this.shadowRoot.querySelector(`slot[name="${i}"]`);
695
705
  return e ? e.assignedNodes({ flatten: !0 }).length > 0 : !1;
696
706
  }
697
707
  render() {
698
- const s = this.querySelector('span[slot="action-left"], span[slot="action-right"]');
708
+ const i = this.querySelector('span[slot="action-left"], span[slot="action-right"]');
699
709
  let e = null;
700
- if (s) {
701
- const r = s.querySelector("p")?.textContent?.trim() || "";
702
- let l = s.querySelector("a, button");
703
- r && (e = `action-${r.replace(/\s+/g, "-")}`, s.id = e), l && e && l.setAttribute("aria-describedby", e);
710
+ if (i) {
711
+ const l = i.querySelector("p")?.textContent?.trim() || "";
712
+ let d = i.querySelector("a, button");
713
+ l && (e = `action-${l.replace(/\s+/g, "-")}`, i.id = e), d && e && d.setAttribute("aria-describedby", e);
704
714
  }
705
- document.querySelectorAll("ilw-header-megamenu-section").forEach((r) => {
706
- const l = r.querySelectorAll("ilw-header-megamenu-section.solo-list > ul > li"), a = l.length;
707
- if (a === 5) {
708
- l.forEach((d, h) => {
709
- d.style.borderRight = "none";
715
+ document.querySelectorAll("ilw-header-megamenu-section").forEach((l) => {
716
+ const d = l.querySelectorAll("ilw-header-megamenu-section.solo-list > ul > li"), c = d.length;
717
+ if (c === 5) {
718
+ d.forEach((p, m) => {
719
+ p.style.borderRight = "none";
710
720
  });
711
721
  return;
712
722
  }
713
- let c = Math.floor(a / 5) * 5;
714
- c = Math.min(c, 15), l.forEach((d, h) => {
715
- h + 1 <= c ? d.style.borderRight = "solid 2px var(--il-storm-85, #d5d3d3)" : d.style.borderRight = "none";
723
+ let h = Math.floor(c / 5) * 5;
724
+ h = Math.min(h, 15), d.forEach((p, m) => {
725
+ m <= h ? p.style.borderRight = "solid 2px var(--il-storm-85, #d5d3d3)" : p.style.borderRight = "none";
716
726
  });
717
727
  });
718
- let i = this.parentElement != null && this.parentElement.closest("ilw-header-megamenu-section") != null;
719
- this.current = this.current || this.getAttribute("aria-current") != null && (this.getAttribute("aria-current") === "page" || this.getAttribute("aria-current") === "true");
720
- const o = !this.classList.contains("solo-list");
721
- return S`
722
- <div class="${i ? "submenu" : "menu"} parent" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick} @keydown=${this.handleWindowKeydown}>
723
- <button class="${this.current ? "current" : ""}" @click=${this.handleToggleClick.bind(this)} aria-expanded=${this.expanded ? "true" : "false"} aria-controls="items">
724
- <div class="header">
725
- <div class="label"><slot name="label"></slot> </div>
726
- <div class="icon">${this.renderArrow()}</div>
727
- </div>
728
+ let s = this.parentElement != null && this.parentElement.closest("ilw-header-megamenu-section") != null;
729
+ this.parentElement != null && this.parentElement.closest("ilw-header-megamenu-section") != null, this.current = this.current || this.getAttribute("aria-current") != null && (this.getAttribute("aria-current") === "page" || this.getAttribute("aria-current") === "true");
730
+ var n = b`
731
+ <div class="header-link ${this.mouseover ? "highlighted" : ""} ${this.compact ? "compact" : ""} ${this.current ? "current" : ""}" @mouseover="${this.toggleMouseOver.bind(this)}" @mouseout="${this.toggleMouseOver.bind(this)}">
732
+ <slot name="link"></slot>
733
+ <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">
734
+ ${this.renderArrow()}
728
735
  </button>
736
+ </div>
737
+ `, o = b`
738
+ <button class="${this.current ? "current" : ""}" @click=${this.handleToggleClick.bind(this)} aria-expanded=${this.expanded ? "true" : "false"} aria-controls="items">
739
+ <div class="header">
740
+ <div class="label"><slot name="label"></slot> </div>
741
+ <div class="icon">${this.renderArrow()}</div>
742
+ </div>
743
+ </button>
744
+ `;
745
+ const a = !this.classList.contains("solo-list");
746
+ return b`
747
+ <div class="${s ? "submenu" : "menu"} parent" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick}>
748
+ ${this.linked ? n : o}
729
749
  <div id="items" class="${this.expanded ? "expanded" : ""}">
730
- ${o ? S`
750
+ ${a ? b`
731
751
  <div class="list-wrapper">
732
752
  <slot name="action-left"></slot>
733
753
  <slot id="list-slot"></slot>
734
754
  <slot name="action-right"></slot>
735
755
  </div>
736
- ` : S`<slot id="list-slot" @slotchange=${this.limitSoloListItems}></slot>`}
756
+ ` : b`<slot id="list-slot"></slot>`}
737
757
  </div>
738
758
  </div>
739
759
  `;
740
760
  }
741
761
  };
742
- T([
743
- x({
762
+ k([
763
+ y({
764
+ type: Boolean
765
+ })
766
+ ], w.prototype, "current", 2);
767
+ k([
768
+ y({
744
769
  type: Boolean
745
770
  })
746
- ], A.prototype, "current", 2);
747
- T([
748
- x({
771
+ ], w.prototype, "compact", 2);
772
+ k([
773
+ y({
749
774
  type: Boolean
750
775
  })
751
- ], A.prototype, "compact", 2);
752
- T([
753
- x({
776
+ ], w.prototype, "expanded", 2);
777
+ k([
778
+ y({
754
779
  type: Boolean
755
780
  })
756
- ], A.prototype, "expanded", 2);
757
- T([
758
- x({
781
+ ], w.prototype, "mouseover", 2);
782
+ k([
783
+ y({
784
+ reflect: !0,
759
785
  type: Boolean
760
786
  })
761
- ], A.prototype, "mouseover", 2);
762
- A = T([
787
+ ], w.prototype, "linked", 2);
788
+ w = k([
763
789
  he("ilw-header-megamenu-section")
764
- ], A);
790
+ ], w);