@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.
@@ -1,15 +1,15 @@
1
- const R = globalThis, z = R.ShadowRoot && (R.ShadyCSS === void 0 || R.ShadyCSS.nativeShadow) && "adoptedStyleSheets" in Document.prototype && "replace" in CSSStyleSheet.prototype, ne = 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.");
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 (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));
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 B = (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));
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 s = document.createElement("style"), n = R.litNonce;
24
- n !== void 0 && s.setAttribute("nonce", n), s.textContent = t.cssText, i.appendChild(s);
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
- }, Z = z ? (i) => i : (i) => i instanceof CSSStyleSheet ? ((e) => {
26
+ }, G = I ? (s) => s : (s) => s instanceof CSSStyleSheet ? ((e) => {
27
27
  let t = "";
28
- for (const s of e.cssRules) t += s.cssText;
29
- return B(t);
30
- })(i) : i;
31
- const { is: ue, defineProperty: pe, getOwnPropertyDescriptor: me, getOwnPropertyNames: ge, getOwnPropertySymbols: fe, getPrototypeOf: $e } = Object, I = globalThis, J = I.trustedTypes, be = J ? J.emptyScript : "", ve = I.reactiveElementPolyfillSupport, C = (i, e) => i, U = { toAttribute(i, e) {
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
- i = i ? be : null;
34
+ s = s ? be : null;
35
35
  break;
36
36
  case Object:
37
37
  case Array:
38
- i = i == null ? i : JSON.stringify(i);
38
+ s = s == null ? s : JSON.stringify(s);
39
39
  }
40
- return i;
41
- }, fromAttribute(i, e) {
42
- let t = i;
40
+ return s;
41
+ }, fromAttribute(s, e) {
42
+ let t = s;
43
43
  switch (e) {
44
44
  case Boolean:
45
- t = i !== null;
45
+ t = s !== null;
46
46
  break;
47
47
  case Number:
48
- t = i === null ? null : Number(i);
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(i);
53
+ t = JSON.parse(s);
54
54
  } catch {
55
55
  t = null;
56
56
  }
57
57
  }
58
58
  return t;
59
- } }, j = (i, e) => !ue(i, e), Q = { attribute: !0, type: String, converter: U, reflect: !1, useDefault: !1, hasChanged: j };
60
- Symbol.metadata ??= Symbol("metadata"), I.litPropertyMetadata ??= /* @__PURE__ */ new WeakMap();
61
- let _ = class extends HTMLElement {
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 s = Symbol(), n = this.getPropertyDescriptor(e, s, t);
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, s) {
75
- const { get: n, set: r } = me(this.prototype, e) ?? { get() {
74
+ static getPropertyDescriptor(e, t, i) {
75
+ const { get: n, set: o } = me(this.prototype, e) ?? { get() {
76
76
  return this[t];
77
- }, set(o) {
78
- this[t] = o;
77
+ }, set(r) {
78
+ this[t] = r;
79
79
  } };
80
- return { get: n, set(o) {
80
+ return { get: n, set(r) {
81
81
  const l = n?.call(this);
82
- r?.call(this, o), this.requestUpdate(e, l, s);
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(C("elementProperties"))) return;
90
- const e = $e(this);
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(C("finalized"))) return;
95
- if (this.finalized = !0, this._$Ei(), this.hasOwnProperty(C("properties"))) {
96
- const t = this.properties, s = [...ge(t), ...fe(t)];
97
- for (const n of s) this.createProperty(n, t[n]);
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 [s, n] of t) this.elementProperties.set(s, n);
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, s] of this.elementProperties) {
106
- const n = this._$Eu(t, s);
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 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));
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 s = t.attribute;
121
- return s === !1 ? void 0 : typeof s == "string" ? s : typeof e == "string" ? e.toLowerCase() : void 0;
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 s of t.keys()) this.hasOwnProperty(s) && (e.set(s, this[s]), delete this[s]);
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 ce(e, this.constructor.elementStyles), e;
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, s) {
153
- this._$AK(e, s);
152
+ attributeChangedCallback(e, t, i) {
153
+ this._$AK(e, i);
154
154
  }
155
155
  _$ET(e, t) {
156
- const s = this.constructor.elementProperties.get(e), n = this.constructor._$Eu(e, s);
157
- if (n !== void 0 && s.reflect === !0) {
158
- const r = (s.converter?.toAttribute !== void 0 ? s.converter : U).toAttribute(t, s.type);
159
- this._$Em = e, r == null ? this.removeAttribute(n) : this.setAttribute(n, r), this._$Em = null;
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 s = this.constructor, n = s._$Eh.get(e);
163
+ const i = this.constructor, n = i._$Eh.get(e);
164
164
  if (n !== void 0 && this._$Em !== n) {
165
- const r = s.getPropertyOptions(n), o = typeof r.converter == "function" ? { fromAttribute: r.converter } : r.converter?.fromAttribute !== void 0 ? r.converter : U;
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 = o.fromAttribute(t, r.type);
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, s) {
171
+ requestUpdate(e, t, i) {
172
172
  if (e !== void 0) {
173
- const n = this.constructor, r = this[e];
174
- if (s ??= n.getPropertyOptions(e), !((s.hasChanged ?? j)(r, t) || s.useDefault && s.reflect && r === this._$Ej?.get(e) && !this.hasAttribute(n._$Eu(e, s)))) return;
175
- this.C(e, t, s);
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: s, reflect: n, wrapped: r }, o) {
180
- s && !(this._$Ej ??= /* @__PURE__ */ new Map()).has(e) && (this._$Ej.set(e, o ?? t ?? this[e]), r !== !0 || o !== 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));
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, r] of this._$Ep) this[n] = r;
199
+ for (const [n, o] of this._$Ep) this[n] = o;
200
200
  this._$Ep = void 0;
201
201
  }
202
- const s = this.constructor.elementProperties;
203
- if (s.size > 0) for (const [n, r] of s) {
204
- const { wrapped: o } = r, l = this[n];
205
- o !== !0 || this._$AL.has(n) || l === void 0 || this.C(n, void 0, r, l);
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(((s) => s.hostUpdate?.())), this.update(t)) : this._$EM();
212
- } catch (s) {
213
- throw e = !1, this._$EM(), s;
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
- _.elementStyles = [], _.shadowRootOptions = { mode: "open" }, _[C("elementProperties")] = /* @__PURE__ */ new Map(), _[C("finalized")] = /* @__PURE__ */ new Map(), ve?.({ ReactiveElement: _ }), (I.reactiveElementVersions ??= []).push("2.1.1");
243
- const q = globalThis, L = q.trustedTypes, X = L ? L.createPolicy("lit-html", { createHTML: (i) => i }) : void 0, re = "$lit$", g = `lit$${Math.random().toFixed(9).slice(2)}$`, oe = "?" + g, we = `<${oe}>`, w = document, O = () => w.createComment(""), P = (i) => i === null || typeof i != "object" && typeof i != "function", F = Array.isArray, ye = (i) => F(i) || typeof i?.[Symbol.iterator] == "function", W = `[
244
- \f\r]`, k = /<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g, Y = /-->/g, ee = />/g, b = RegExp(`>|${W}(?:([^\\s"'>=/]+)(${W}*=${W}*(?:[^
245
- \f\r"'\`<>=]|("|')|))|$)`, "g"), te = /'/g, ie = /"/g, ae = /^(?:script|style|textarea|title)$/i, _e = (i) => (e, ...t) => ({ _$litType$: i, strings: e, values: t }), S = _e(1), E = Symbol.for("lit-noChange"), u = Symbol.for("lit-nothing"), se = /* @__PURE__ */ new WeakMap(), v = w.createTreeWalker(w, 129);
246
- function le(i, e) {
247
- if (!F(i) || !i.hasOwnProperty("raw")) throw Error("invalid template strings array");
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 = (i, e) => {
251
- const t = i.length - 1, s = [];
252
- let n, r = e === 2 ? "<svg>" : e === 3 ? "<math>" : "", o = k;
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 = i[l];
255
- let d, c, h = -1, p = 0;
256
- for (; p < a.length && (o.lastIndex = p, c = o.exec(a), c !== null); ) p = o.lastIndex, o === k ? c[1] === "!--" ? o = Y : c[1] !== void 0 ? o = ee : c[2] !== void 0 ? (ae.test(c[2]) && (n = RegExp("</" + c[2], "g")), o = b) : c[3] !== void 0 && (o = b) : o === b ? c[0] === ">" ? (o = n ?? k, h = -1) : c[1] === void 0 ? h = -2 : (h = o.lastIndex - c[2].length, d = c[1], o = c[3] === void 0 ? b : c[3] === '"' ? ie : te) : o === ie || o === te ? o = b : o === Y || o === ee ? o = k : (o = b, n = void 0);
257
- const m = o === b && i[l + 1].startsWith("/>") ? " " : "";
258
- r += o === k ? a + we : h >= 0 ? (s.push(d), a.slice(0, h) + re + a.slice(h) + g + m) : a + g + (h === -2 ? l : m);
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(i, r + (i[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), s];
260
+ return [le(s, o + (s[t] || "<?>") + (e === 2 ? "</svg>" : e === 3 ? "</math>" : "")), i];
261
261
  };
262
- class N {
263
- constructor({ strings: e, _$litType$: t }, s) {
262
+ class O {
263
+ constructor({ strings: e, _$litType$: t }, i) {
264
264
  let n;
265
265
  this.parts = [];
266
- let r = 0, o = 0;
267
- const l = e.length - 1, a = this.parts, [d, c] = Ae(e, t);
268
- if (this.el = N.createElement(d, s), v.currentNode = this.el.content, t === 2 || t === 3) {
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(re)) {
275
- const p = c[o++], m = n.getAttribute(h).split(g), T = /([.?@])?(.*)/.exec(p);
276
- a.push({ type: 1, index: r, name: T[2], strings: m, ctor: T[1] === "." ? xe : T[1] === "?" ? ke : T[1] === "@" ? Se : D }), n.removeAttribute(h);
277
- } else h.startsWith(g) && (a.push({ type: 6, index: r }), n.removeAttribute(h));
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 = L ? L.emptyScript : "";
282
- for (let m = 0; m < p; m++) n.append(h[m], O()), v.nextNode(), a.push({ type: 2, index: ++r });
283
- n.append(h[p], O());
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 === oe) a.push({ type: 2, index: r });
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: r }), h += g.length - 1;
289
+ for (; (h = n.data.indexOf(g, h + 1)) !== -1; ) a.push({ type: 7, index: o }), h += g.length - 1;
290
290
  }
291
- r++;
291
+ o++;
292
292
  }
293
293
  }
294
294
  static createElement(e, t) {
295
- const s = w.createElement("template");
296
- return s.innerHTML = e, s;
295
+ const i = b.createElement("template");
296
+ return i.innerHTML = e, i;
297
297
  }
298
298
  }
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 r = P(e) ? void 0 : e._$litDirective$;
303
- return n?.constructor !== r && (n?._$AO?.(!1), r === void 0 ? n = void 0 : (n = new r(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;
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 Ee {
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: s } = this._$AD, n = (e?.creationScope ?? w).importNode(t, !0);
316
+ const { el: { content: t }, parts: i } = this._$AD, n = (e?.creationScope ?? b).importNode(t, !0);
317
317
  v.currentNode = n;
318
- let r = v.nextNode(), o = 0, l = 0, a = s[0];
318
+ let o = v.nextNode(), r = 0, l = 0, a = i[0];
319
319
  for (; a !== void 0; ) {
320
- if (o === a.index) {
321
- let d;
322
- a.type === 2 ? d = new M(r, r.nextSibling, this, e) : a.type === 1 ? d = new a.ctor(r, a.name, a.strings, this, e) : a.type === 6 && (d = new Ce(r, this, e)), this._$AV.push(d), a = s[++l];
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
- o !== a?.index && (r = v.nextNode(), o++);
324
+ r !== a?.index && (o = v.nextNode(), r++);
325
325
  }
326
- return v.currentNode = w, n;
326
+ return v.currentNode = b, n;
327
327
  }
328
328
  p(e) {
329
329
  let t = 0;
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++;
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, 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;
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 = x(this, e, t), P(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);
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(w.createTextNode(e)), this._$AH = e;
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$: s } = e, n = typeof s == "number" ? this._$AC(e) : (s.el === void 0 && (s.el = N.createElement(le(s.h, s.h[0]), this.options)), s);
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 r = new Ee(n, this), o = r.u(this.options);
368
- r.p(t), this.T(o), this._$AH = r;
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 N(e)), t;
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 s, n = 0;
379
- for (const r of e) n === t.length ? t.push(s = new M(this.O(O()), this.O(O()), this, this.options)) : s = t[n], s._$AI(r), n++;
380
- n < t.length && (this._$AR(s && s._$AB.nextSibling, n), t.length = n);
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 s = e.nextSibling;
385
- e.remove(), e = s;
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 D {
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, s, n, r) {
400
- this.type = 1, this._$AH = u, this._$AN = void 0, this.element = e, this.name = t, this._$AM = n, this.options = r, s.length > 2 || s[0] !== "" || s[1] !== "" ? (this._$AH = Array(s.length - 1).fill(new String()), this.strings = s) : this._$AH = u;
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, s, n) {
403
- const r = this.strings;
404
- let o = !1;
405
- if (r === void 0) e = x(this, e, t, 0), o = !P(e) || e !== this._$AH && e !== E, o && (this._$AH = e);
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, d;
409
- for (e = r[0], a = 0; a < r.length - 1; a++) d = x(this, l[s + a], t, a), d === E && (d = this._$AH[a]), o ||= !P(d) || d !== this._$AH[a], d === u ? e = u : e !== u && (e += (d ?? "") + r[a + 1]), this._$AH[a] = d;
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
- o && !n && this.j(e);
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 xe extends D {
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 ke extends D {
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 Se extends D {
434
- constructor(e, t, s, n, r) {
435
- super(e, t, s, n, r), this.type = 5;
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 = 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, r = e !== u && (s === u || n);
440
- n && this.element.removeEventListener(this.name, this, s), r && this.element.addEventListener(this.name, this, e), this._$AH = e;
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, s) {
448
- this.element = e, this.type = 6, this._$AN = void 0, this._$AM = t, this.options = s;
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
- x(this, e);
454
+ _(this, e);
455
455
  }
456
456
  }
457
- const Oe = q.litHtmlPolyfillSupport;
458
- Oe?.(N, M), (q.litHtmlVersions ??= []).push("3.3.1");
459
- const Pe = (i, e, t) => {
460
- const s = t?.renderBefore ?? e;
461
- let n = s._$litPart$;
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 r = t?.renderBefore ?? null;
464
- s._$litPart$ = n = new M(e.insertBefore(O(), r), r, void 0, t ?? {});
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(i), n;
466
+ return n._$AI(s), n;
467
467
  };
468
468
  const V = globalThis;
469
- class A extends _ {
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 = Pe(t, this.renderRoot, this.renderOptions);
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 E;
488
+ return y;
489
489
  }
490
490
  }
491
- A._$litElement$ = !0, A.finalized = !0, V.litElementHydrateSupport?.({ LitElement: A });
492
- const Ne = V.litElementPolyfillSupport;
493
- Ne?.({ LitElement: A });
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 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(--il-industrial-lighter-4);--ilw-header-megamenu--link-background--sub--focus: var(--il-industrial-lighter-4);--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 = (i) => (e, t) => {
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(i, e);
499
- })) : customElements.define(i, e);
498
+ customElements.define(s, e);
499
+ })) : customElements.define(s, e);
500
500
  };
501
- const Te = { attribute: !0, type: String, converter: U, reflect: !1, hasChanged: j }, Re = (i = Te, e, t) => {
502
- const { kind: s, metadata: n } = t;
503
- let r = globalThis.litPropertyMetadata.get(n);
504
- if (r === void 0 && globalThis.litPropertyMetadata.set(n, r = /* @__PURE__ */ new Map()), s === "setter" && ((i = Object.create(i)).wrapped = !0), r.set(t.name, i), s === "accessor") {
505
- const { name: o } = t;
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(o, a, i);
508
+ e.set.call(this, l), this.requestUpdate(r, a, s);
509
509
  }, init(l) {
510
- return l !== void 0 && this.C(o, void 0, i, l), l;
510
+ return l !== void 0 && this.C(r, void 0, s, l), l;
511
511
  } };
512
512
  }
513
- if (s === "setter") {
514
- const { name: o } = t;
513
+ if (i === "setter") {
514
+ const { name: r } = t;
515
515
  return function(l) {
516
- const a = this[o];
517
- e.call(this, l), this.requestUpdate(o, a, i);
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: " + s);
520
+ throw Error("Unsupported decorator location: " + i);
521
521
  };
522
- function $(i) {
523
- return (e, t) => typeof t == "object" ? Re(i, e, t) : ((s, n, r) => {
524
- const o = n.hasOwnProperty(r);
525
- return n.constructor.createProperty(r, s), o ? Object.getOwnPropertyDescriptor(n, r) : void 0;
526
- })(i, e, t);
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 Ue = Object.defineProperty, Le = Object.getOwnPropertyDescriptor, K = (i, e, t, s) => {
529
- for (var n = s > 1 ? void 0 : s ? Le(e, t) : e, r = i.length - 1, o; r >= 0; r--)
530
- (o = i[r]) && (n = (s ? o(e, t, n) : o(n)) || n);
531
- return s && n && Ue(e, t, n), n;
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 H = class extends A {
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 B(Me);
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(i) {
547
- this.contains(i.target) || this.closeAllExceptOneSections(null);
546
+ handleWindowClick(s) {
547
+ this.contains(s.target) || this.closeAllExceptOneSections(null);
548
548
  }
549
- handleWindowKeydown(i) {
550
- 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());
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(i) {
553
- this.closeAllExceptOneSections(i.target);
552
+ handleNavigationSectionToggleClick(s) {
553
+ this.closeAllExceptOneSections(s.target);
554
554
  }
555
555
  gotoPreviousSection() {
556
- let i = null, e = document.activeElement;
557
- if (e != null) {
558
- if (e.closest("li") && e.closest("li").previousElementSibling) {
559
- const t = e.closest("li").previousElementSibling;
560
- t && t.children.length > 0 && (i = t.children[0]);
561
- }
562
- i && i.tagName === "ILW-HEADER-MEGAMENU-SECTION" ? i.setFocus(!0) : i.focus();
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
- let i = null, e = document.activeElement;
567
- if (e != null) {
568
- if (e.closest("li") && e.closest("li").nextElementSibling) {
569
- const t = e.closest("li").nextElementSibling;
570
- t && t.children.length > 0 && (i = t.children[0]);
571
- }
572
- i && i.tagName === "ILW-HEADER-MEGAMENU-SECTION" ? i.setFocus() : i.focus();
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((i) => {
580
- i.compact = !0;
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((i) => {
585
- i.compact = !1;
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(i) {
599
+ closeAllExceptOneSections(s) {
592
600
  this.getSections().forEach((e) => {
593
- (i == null || i != e) && (e.expanded = !1);
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"}"><slot></slot></div>
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
- ], H.prototype, "compact", 2);
619
+ ], L.prototype, "compact", 2);
610
620
  K([
611
- $({
621
+ x({
612
622
  type: Number
613
623
  })
614
- ], H.prototype, "width", 2);
615
- H = K([
624
+ ], L.prototype, "width", 2);
625
+ L = K([
616
626
  he("ilw-header-megamenu")
617
- ], H);
618
- 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)}: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)}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)}.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 8px}.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}.menu.parent .compact button.arrow-only:hover,.menu.parent .compact button.arrow-only:focus{border-left:4px solid transparent!important}';
619
- var Ie = Object.defineProperty, De = Object.getOwnPropertyDescriptor, y = (i, e, t, s) => {
620
- for (var n = s > 1 ? void 0 : s ? De(e, t) : e, r = i.length - 1, o; r >= 0; r--)
621
- (o = i[r]) && (n = (s ? o(e, t, n) : o(n)) || n);
622
- return s && n && Ie(e, t, n), n;
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 f = class extends A {
634
+ let A = class extends w {
625
635
  constructor() {
626
- super(), this.current = !1, this.compact = !1, this.right = !1, this.expanded = !1, this.mouseover = !1, this.linked = !1, this.addEventListener("keydown", this.handleWindowKeydown.bind(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 B(He);
630
- }
631
- connectedCallback() {
632
- super.connectedCallback();
639
+ return j(Le);
633
640
  }
634
- handleToggleClick(i) {
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(i) {
638
- 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);
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
- isOnButtonInLinked() {
647
- return this.linked && document.activeElement && document.activeElement.tagName === "ILW-HEADER-MEGAMENU-SECTION";
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
- !this.expanded && !this.isEmbedded() && (this.expanded = !0);
655
- const i = document.activeElement;
656
- if (!i) return;
657
- const e = i.closest("ILW-HEADER-MEGAMENU-SECTION");
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")), s = t.indexOf(i);
660
- let n = s + 1;
661
- s === -1 && (n = 0), n >= 0 && n < t.length && t[n].focus();
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 i = document.activeElement;
665
- if (!i) return;
666
- const e = i.closest("ILW-HEADER-MEGAMENU-SECTION");
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")), s = t.indexOf(i);
669
- let n = s - 1;
670
- s === -1 && (n = t.length - 1), n >= 0 && n < t.length && t[n].focus();
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(i) {
681
- i.stopPropagation(), this.closeAllExceptOneSections(i.target);
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(i) {
684
+ closeAllExceptOneSections(s) {
687
685
  this.getSections().forEach((e) => {
688
- (i == null || i != e) && (e.expanded = !1);
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 i = this.querySelector('span[slot="action"]');
694
+ const s = this.querySelector('span[slot="action-left"], span[slot="action-right"]');
693
695
  let e = null;
694
- if (i) {
695
- const o = i.querySelector("p")?.textContent?.trim() || "";
696
- let l = i.querySelector("a, button");
697
- o && (e = `action-${o.replace(/\s+/g, "-")}`, i.id = e), l && e && l.setAttribute("aria-labelledby", e);
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((o) => {
700
- const l = o.querySelectorAll("ilw-header-megamenu-section > ul > li"), a = l.length;
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((c, h) => {
703
- c.style.borderRight = "none";
704
+ l.forEach((d, h) => {
705
+ d.style.borderRight = "none";
704
706
  });
705
707
  return;
706
708
  }
707
- let d = Math.floor(a / 5) * 5;
708
- d = Math.min(d, 15), l.forEach((c, h) => {
709
- h + 1 <= d ? c.style.borderRight = "solid 2px var(--il-storm-85, #d5d3d3)" : c.style.borderRight = "none";
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 s = this.parentElement != null && this.parentElement.closest("ilw-header-megamenu-section") != null;
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
- var n = S`
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="${s ? "submenu" : "menu"} parent" @ilw-header-megamenu-section-expanded=${this.handleNavigationSectionToggleClick}>
731
- ${this.linked ? n : r}
732
- <div id="items" class="${this.expanded ? "expanded" : ""} ${this.right ? "right" : ""}">
733
- <slot></slot>
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
- y([
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
- ], f.prototype, "right", 2);
754
- y([
755
- $({
742
+ ], A.prototype, "current", 2);
743
+ T([
744
+ x({
756
745
  type: Boolean
757
746
  })
758
- ], f.prototype, "expanded", 2);
759
- y([
760
- $({
747
+ ], A.prototype, "compact", 2);
748
+ T([
749
+ x({
761
750
  type: Boolean
762
751
  })
763
- ], f.prototype, "mouseover", 2);
764
- y([
765
- $({
766
- reflect: !0,
752
+ ], A.prototype, "expanded", 2);
753
+ T([
754
+ x({
767
755
  type: Boolean
768
756
  })
769
- ], f.prototype, "linked", 2);
770
- f = y([
757
+ ], A.prototype, "mouseover", 2);
758
+ A = T([
771
759
  he("ilw-header-megamenu-section")
772
- ], f);
760
+ ], A);