@uoguelph/web-components 1.9.0-rc.5 → 1.9.0-rc.6
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.
|
@@ -4,50 +4,50 @@ var Ft = (e) => {
|
|
|
4
4
|
};
|
|
5
5
|
var pe = (e, t, a) => t in e ? he(e, t, { enumerable: !0, configurable: !0, writable: !0, value: a }) : e[t] = a;
|
|
6
6
|
var wt = (e, t, a) => pe(e, typeof t != "symbol" ? t + "" : t, a), Mt = (e, t, a) => t.has(e) || Ft("Cannot " + a);
|
|
7
|
-
var O = (e, t, a) => (Mt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), ct = (e, t, a) => t.has(e) ? Ft("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), Ct = (e, t, a,
|
|
8
|
-
import { Z as ge, _ as Dt, $ as be, a0 as xe, a1 as me, a2 as
|
|
7
|
+
var O = (e, t, a) => (Mt(e, t, "read from private field"), a ? a.call(e) : t.get(e)), ct = (e, t, a) => t.has(e) ? Ft("Cannot add the same private member more than once") : t instanceof WeakSet ? t.add(e) : t.set(e, a), Ct = (e, t, a, l) => (Mt(e, t, "write to private field"), l ? l.call(e, a) : t.set(e, a), a), Pt = (e, t, a) => (Mt(e, t, "access private method"), a);
|
|
8
|
+
import { Z as ge, _ as Dt, $ as be, a0 as xe, a1 as me, a2 as Lt, G as K, H as Rt, a3 as kt, a4 as Kt, a5 as _e, a6 as ye, a7 as we, a8 as Me, a9 as Ce, aa as Ut, ab as zt, ac as Wt, z as Zt, B as gt, ad as ke, ae as $e, af as Se, ag as Le, C as Ne, ah as at, ai as Ae, aj as Bt, ak as qt, al as Ee, am as $t, an as Ve, ao as Ze, u as jt, o as je, c as U, p as Y, a as V, Y as j, b as E, ap as He, d as x, e as tt, h as Z, f as k, j as y, k as W, aq as R, ar as T, s as nt, n as it, D as I, as as X, r as m, at as Te, au as Fe, I as q, l as r, J as rt, K as H, X as st, t as Nt, F as G, av as bt, L as xt, aw as Ht, ax as mt, ay as _t, az as Jt, q as et, w as At, x as ut, m as Pe, aA as Re, aB as Ue, i as ze } from "./font-awesome-icon-BQURLWNp.js";
|
|
9
9
|
import { a as We } from "./window-DSxbAs0w.js";
|
|
10
10
|
import { s as It, i as Tt } from "./legacy-DxV08m0s.js";
|
|
11
11
|
import { t as lt } from "./bundle-mjs-BpzLJ4dA.js";
|
|
12
|
-
function Be(e, t, a,
|
|
12
|
+
function Be(e, t, a, l, d, n) {
|
|
13
13
|
let f = K;
|
|
14
14
|
K && Rt();
|
|
15
|
-
var C, p,
|
|
16
|
-
K && kt.nodeType === 1 && (
|
|
15
|
+
var C, p, s = null;
|
|
16
|
+
K && kt.nodeType === 1 && (s = /** @type {Element} */
|
|
17
17
|
kt, Rt());
|
|
18
|
-
var
|
|
18
|
+
var v = (
|
|
19
19
|
/** @type {TemplateNode} */
|
|
20
20
|
K ? kt : e
|
|
21
21
|
), g;
|
|
22
22
|
ge(() => {
|
|
23
|
-
const
|
|
24
|
-
var h =
|
|
25
|
-
|
|
23
|
+
const u = t() || null;
|
|
24
|
+
var h = u === "svg" ? Kt : null;
|
|
25
|
+
u !== C && (g && (u === null ? _e(g, () => {
|
|
26
26
|
g = null, p = null;
|
|
27
|
-
}) :
|
|
28
|
-
|
|
27
|
+
}) : u === p ? ye(g) : (we(g), Wt(!1))), u && u !== p && (g = be(() => {
|
|
28
|
+
s = K ? (
|
|
29
29
|
/** @type {Element} */
|
|
30
|
-
|
|
31
|
-
) : h ? document.createElementNS(h,
|
|
30
|
+
s
|
|
31
|
+
) : h ? document.createElementNS(h, u) : document.createElement(u), xe(s, s);
|
|
32
32
|
{
|
|
33
|
-
K && Me(
|
|
33
|
+
K && Me(u) && s.append(document.createComment(""));
|
|
34
34
|
var c = (
|
|
35
35
|
/** @type {TemplateNode} */
|
|
36
|
-
K ? Ce(
|
|
36
|
+
K ? Ce(s) : s.appendChild(me())
|
|
37
37
|
);
|
|
38
|
-
K && (c === null ? Ut(!1) : zt(c)), s
|
|
38
|
+
K && (c === null ? Ut(!1) : zt(c)), l(s, c);
|
|
39
39
|
}
|
|
40
|
-
|
|
41
|
-
})), C =
|
|
42
|
-
}, Dt), f && (Ut(!0), zt(
|
|
40
|
+
Lt.nodes_end = s, v.before(s);
|
|
41
|
+
})), C = u, C && (p = C), Wt(!0));
|
|
42
|
+
}, Dt), f && (Ut(!0), zt(v));
|
|
43
43
|
}
|
|
44
44
|
function qe(e, t, a) {
|
|
45
45
|
Zt(() => {
|
|
46
|
-
var
|
|
47
|
-
if (
|
|
46
|
+
var l = gt(() => t(e, a == null ? void 0 : a()) || {});
|
|
47
|
+
if (l != null && l.destroy)
|
|
48
48
|
return () => (
|
|
49
49
|
/** @type {Function} */
|
|
50
|
-
|
|
50
|
+
l.destroy()
|
|
51
51
|
);
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -94,8 +94,8 @@ function Oe(e) {
|
|
|
94
94
|
}
|
|
95
95
|
function Gt(e) {
|
|
96
96
|
const t = {}, a = e.split(";");
|
|
97
|
-
for (const
|
|
98
|
-
const [d, n] =
|
|
97
|
+
for (const l of a) {
|
|
98
|
+
const [d, n] = l.split(":");
|
|
99
99
|
if (!d || n === void 0) break;
|
|
100
100
|
const f = Oe(d.trim());
|
|
101
101
|
t[f] = n.trim();
|
|
@@ -103,13 +103,13 @@ function Gt(e) {
|
|
|
103
103
|
return t;
|
|
104
104
|
}
|
|
105
105
|
const De = (e) => e;
|
|
106
|
-
function Ke(e, t, a,
|
|
107
|
-
var d = (e &
|
|
106
|
+
function Ke(e, t, a, l) {
|
|
107
|
+
var d = (e & Ae) !== 0, n = "both", f, C = t.inert, p = t.style.overflow, s, v;
|
|
108
108
|
function g() {
|
|
109
|
-
var _ = Ee, o =
|
|
109
|
+
var _ = Ee, o = Lt;
|
|
110
110
|
Bt(null), qt(null);
|
|
111
111
|
try {
|
|
112
|
-
return f ?? (f = a()(t, (
|
|
112
|
+
return f ?? (f = a()(t, (l == null ? void 0 : l()) ?? /** @type {P} */
|
|
113
113
|
{}, {
|
|
114
114
|
direction: n
|
|
115
115
|
}));
|
|
@@ -117,49 +117,49 @@ function Ke(e, t, a, s) {
|
|
|
117
117
|
Bt(_), qt(o);
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
var
|
|
120
|
+
var u = {
|
|
121
121
|
is_global: d,
|
|
122
122
|
in() {
|
|
123
|
-
t.inert = C, ft(t, "introstart"),
|
|
124
|
-
ft(t, "introend"),
|
|
123
|
+
t.inert = C, ft(t, "introstart"), s = Et(t, g(), v, 1, () => {
|
|
124
|
+
ft(t, "introend"), s == null || s.abort(), s = f = void 0, t.style.overflow = p;
|
|
125
125
|
});
|
|
126
126
|
},
|
|
127
127
|
out(_) {
|
|
128
|
-
t.inert = !0, ft(t, "outrostart"),
|
|
128
|
+
t.inert = !0, ft(t, "outrostart"), v = Et(t, g(), s, 0, () => {
|
|
129
129
|
ft(t, "outroend"), _ == null || _();
|
|
130
130
|
});
|
|
131
131
|
},
|
|
132
132
|
stop: () => {
|
|
133
|
-
|
|
133
|
+
s == null || s.abort(), v == null || v.abort();
|
|
134
134
|
}
|
|
135
135
|
}, h = (
|
|
136
136
|
/** @type {Effect} */
|
|
137
|
-
|
|
137
|
+
Lt
|
|
138
138
|
);
|
|
139
|
-
if ((h.transitions ?? (h.transitions = [])).push(
|
|
139
|
+
if ((h.transitions ?? (h.transitions = [])).push(u), ke) {
|
|
140
140
|
var c = d;
|
|
141
141
|
if (!c) {
|
|
142
142
|
for (var i = (
|
|
143
143
|
/** @type {Effect | null} */
|
|
144
144
|
h.parent
|
|
145
145
|
); i && i.f & Dt; )
|
|
146
|
-
for (; (i = i.parent) && !(i.f &
|
|
146
|
+
for (; (i = i.parent) && !(i.f & $e); )
|
|
147
147
|
;
|
|
148
|
-
c = !i || (i.f &
|
|
148
|
+
c = !i || (i.f & Se) !== 0;
|
|
149
149
|
}
|
|
150
150
|
c && Zt(() => {
|
|
151
|
-
gt(() =>
|
|
151
|
+
gt(() => u.in());
|
|
152
152
|
});
|
|
153
153
|
}
|
|
154
154
|
}
|
|
155
|
-
function Et(e, t, a,
|
|
156
|
-
var n =
|
|
157
|
-
if (
|
|
155
|
+
function Et(e, t, a, l, d) {
|
|
156
|
+
var n = l === 1;
|
|
157
|
+
if (Le(t)) {
|
|
158
158
|
var f, C = !1;
|
|
159
|
-
return
|
|
159
|
+
return Ne(() => {
|
|
160
160
|
if (!C) {
|
|
161
161
|
var _ = t({ direction: n ? "in" : "out" });
|
|
162
|
-
f = Et(e, _, a,
|
|
162
|
+
f = Et(e, _, a, l, d);
|
|
163
163
|
}
|
|
164
164
|
}), {
|
|
165
165
|
abort: () => {
|
|
@@ -175,44 +175,44 @@ function Et(e, t, a, s, d) {
|
|
|
175
175
|
abort: at,
|
|
176
176
|
deactivate: at,
|
|
177
177
|
reset: at,
|
|
178
|
-
t: () =>
|
|
178
|
+
t: () => l
|
|
179
179
|
};
|
|
180
|
-
const { delay: p = 0, css:
|
|
181
|
-
var
|
|
182
|
-
if (n && a === void 0 && (
|
|
183
|
-
var h = Gt(
|
|
184
|
-
|
|
180
|
+
const { delay: p = 0, css: s, tick: v, easing: g = De } = t;
|
|
181
|
+
var u = [];
|
|
182
|
+
if (n && a === void 0 && (v && v(0, 1), s)) {
|
|
183
|
+
var h = Gt(s(0, 1));
|
|
184
|
+
u.push(h, h);
|
|
185
185
|
}
|
|
186
|
-
var c = () => 1 -
|
|
186
|
+
var c = () => 1 - l, i = e.animate(u, { duration: p });
|
|
187
187
|
return i.onfinish = () => {
|
|
188
|
-
var _ = (a == null ? void 0 : a.t()) ?? 1 -
|
|
188
|
+
var _ = (a == null ? void 0 : a.t()) ?? 1 - l;
|
|
189
189
|
a == null || a.abort();
|
|
190
|
-
var o =
|
|
190
|
+
var o = l - _, S = (
|
|
191
191
|
/** @type {number} */
|
|
192
192
|
t.duration * Math.abs(o)
|
|
193
193
|
), b = [];
|
|
194
|
-
if (
|
|
194
|
+
if (S > 0) {
|
|
195
195
|
var M = !1;
|
|
196
|
-
if (
|
|
197
|
-
for (var
|
|
198
|
-
var
|
|
196
|
+
if (s)
|
|
197
|
+
for (var N = Math.ceil(S / 16.666666666666668), L = 0; L <= N; L += 1) {
|
|
198
|
+
var A = _ + o * g(L / N), w = Gt(s(A, 1 - A));
|
|
199
199
|
b.push(w), M || (M = w.overflow === "hidden");
|
|
200
200
|
}
|
|
201
201
|
M && (e.style.overflow = "hidden"), c = () => {
|
|
202
|
-
var
|
|
202
|
+
var $ = (
|
|
203
203
|
/** @type {number} */
|
|
204
204
|
/** @type {globalThis.Animation} */
|
|
205
205
|
i.currentTime
|
|
206
206
|
);
|
|
207
|
-
return _ + o * g(
|
|
208
|
-
},
|
|
207
|
+
return _ + o * g($ / S);
|
|
208
|
+
}, v && Ge(() => {
|
|
209
209
|
if (i.playState !== "running") return !1;
|
|
210
|
-
var
|
|
211
|
-
return
|
|
210
|
+
var $ = c();
|
|
211
|
+
return v($, 1 - $), !0;
|
|
212
212
|
});
|
|
213
213
|
}
|
|
214
|
-
i = e.animate(b, { duration:
|
|
215
|
-
c = () =>
|
|
214
|
+
i = e.animate(b, { duration: S, fill: "forwards" }), i.onfinish = () => {
|
|
215
|
+
c = () => l, v == null || v(l, 1 - l), d();
|
|
216
216
|
};
|
|
217
217
|
}, {
|
|
218
218
|
abort: () => {
|
|
@@ -222,7 +222,7 @@ function Et(e, t, a, s, d) {
|
|
|
222
222
|
d = at;
|
|
223
223
|
},
|
|
224
224
|
reset: () => {
|
|
225
|
-
|
|
225
|
+
l === 0 && (v == null || v(1, 0));
|
|
226
226
|
},
|
|
227
227
|
t: () => c()
|
|
228
228
|
};
|
|
@@ -245,8 +245,8 @@ const pt = class pt {
|
|
|
245
245
|
* @param {(entry: ResizeObserverEntry) => any} listener
|
|
246
246
|
*/
|
|
247
247
|
observe(t, a) {
|
|
248
|
-
var
|
|
249
|
-
return
|
|
248
|
+
var l = O(this, J).get(t) || /* @__PURE__ */ new Set();
|
|
249
|
+
return l.add(a), O(this, J).set(t, l), Pt(this, ht, Xt).call(this).observe(t, O(this, vt)), () => {
|
|
250
250
|
var d = O(this, J).get(t);
|
|
251
251
|
d.delete(a), d.size === 0 && (O(this, J).delete(t), O(this, ot).unobserve(t));
|
|
252
252
|
};
|
|
@@ -258,8 +258,8 @@ J = new WeakMap(), ot = new WeakMap(), vt = new WeakMap(), ht = new WeakSet(), X
|
|
|
258
258
|
(t) => {
|
|
259
259
|
for (var a of t) {
|
|
260
260
|
pt.entries.set(a.target, a);
|
|
261
|
-
for (var
|
|
262
|
-
|
|
261
|
+
for (var l of O(this, J).get(a.target) || [])
|
|
262
|
+
l(a);
|
|
263
263
|
}
|
|
264
264
|
}
|
|
265
265
|
));
|
|
@@ -270,11 +270,11 @@ var Je = /* @__PURE__ */ new Vt({
|
|
|
270
270
|
box: "border-box"
|
|
271
271
|
});
|
|
272
272
|
function dt(e, t, a) {
|
|
273
|
-
var
|
|
274
|
-
Zt(() => (gt(() => a(e[t])),
|
|
273
|
+
var l = Je.observe(e, () => a(e[t]));
|
|
274
|
+
Zt(() => (gt(() => a(e[t])), l));
|
|
275
275
|
}
|
|
276
276
|
function Qe(e) {
|
|
277
|
-
|
|
277
|
+
$t === null && Ve(), Ze && $t.l !== null ? Xe($t).m.push(e) : jt(() => {
|
|
278
278
|
const t = gt(e);
|
|
279
279
|
if (typeof t == "function") return (
|
|
280
280
|
/** @type {() => void} */
|
|
@@ -293,32 +293,32 @@ function Ye(e) {
|
|
|
293
293
|
const t = e - 1;
|
|
294
294
|
return t * t * t + 1;
|
|
295
295
|
}
|
|
296
|
-
function Ot(e, { delay: t = 0, duration: a = 400, easing:
|
|
297
|
-
const n = getComputedStyle(e), f = +n.opacity, C = d === "y" ? "height" : "width", p = parseFloat(n[C]),
|
|
296
|
+
function Ot(e, { delay: t = 0, duration: a = 400, easing: l = Ye, axis: d = "y" } = {}) {
|
|
297
|
+
const n = getComputedStyle(e), f = +n.opacity, C = d === "y" ? "height" : "width", p = parseFloat(n[C]), s = d === "y" ? ["top", "bottom"] : ["left", "right"], v = s.map(
|
|
298
298
|
(o) => (
|
|
299
299
|
/** @type {'Left' | 'Right' | 'Top' | 'Bottom'} */
|
|
300
300
|
`${o[0].toUpperCase()}${o.slice(1)}`
|
|
301
301
|
)
|
|
302
|
-
), g = parseFloat(n[`padding${
|
|
303
|
-
n[`border${
|
|
302
|
+
), g = parseFloat(n[`padding${v[0]}`]), u = parseFloat(n[`padding${v[1]}`]), h = parseFloat(n[`margin${v[0]}`]), c = parseFloat(n[`margin${v[1]}`]), i = parseFloat(
|
|
303
|
+
n[`border${v[0]}Width`]
|
|
304
304
|
), _ = parseFloat(
|
|
305
|
-
n[`border${
|
|
305
|
+
n[`border${v[1]}Width`]
|
|
306
306
|
);
|
|
307
307
|
return {
|
|
308
308
|
delay: t,
|
|
309
309
|
duration: a,
|
|
310
|
-
easing:
|
|
311
|
-
css: (o) => `overflow: hidden;opacity: ${Math.min(o * 20, 1) * f};${C}: ${o * p}px;padding-${
|
|
310
|
+
easing: l,
|
|
311
|
+
css: (o) => `overflow: hidden;opacity: ${Math.min(o * 20, 1) * f};${C}: ${o * p}px;padding-${s[0]}: ${o * g}px;padding-${s[1]}: ${o * u}px;margin-${s[0]}: ${o * h}px;margin-${s[1]}: ${o * c}px;border-${s[0]}-width: ${o * i}px;border-${s[1]}-width: ${o * _}px;min-${C}: 0`
|
|
312
312
|
};
|
|
313
313
|
}
|
|
314
314
|
function ta(e) {
|
|
315
315
|
return e < 0.5 ? 4 * e * e * e : 0.5 * Math.pow(2 * e - 2, 3) + 1;
|
|
316
316
|
}
|
|
317
|
-
const
|
|
318
|
-
const t = function(
|
|
319
|
-
e.contains(
|
|
320
|
-
}, a = function(
|
|
321
|
-
e.contains(
|
|
317
|
+
const St = (e) => {
|
|
318
|
+
const t = function(l) {
|
|
319
|
+
e.contains(l.relatedTarget) || e.dispatchEvent(new CustomEvent("focusoutside", { bubbles: !1 }));
|
|
320
|
+
}, a = function(l) {
|
|
321
|
+
e.contains(l.relatedTarget) || e.dispatchEvent(new CustomEvent("focusinside", { bubbles: !1 }));
|
|
322
322
|
};
|
|
323
323
|
return e.addEventListener("focusin", a), e.addEventListener("focusout", t), {
|
|
324
324
|
destroy() {
|
|
@@ -331,65 +331,65 @@ var ea = (e, t) => {
|
|
|
331
331
|
}, aa = k('<div tabindex="-1"><button aria-haspopup="true"><!></button> <!></div>');
|
|
332
332
|
function Q(e, t) {
|
|
333
333
|
Y(t, !0);
|
|
334
|
-
let a = V(t, "class", 7),
|
|
335
|
-
var
|
|
336
|
-
h.__click = [ea,
|
|
334
|
+
let a = V(t, "class", 7), l = V(t, "buttonClass", 7, ""), d = V(t, "contentClass", 7, ""), n = V(t, "open", 15, !1), f = V(t, "as", 7, "div"), C = V(t, "transition", 7, Ot), p = V(t, "autoCollapse", 7, !0), s = V(t, "label", 7), v = V(t, "button", 7), g = V(t, "children", 7);
|
|
335
|
+
var u = aa(), h = y(u);
|
|
336
|
+
h.__click = [ea, n];
|
|
337
337
|
var c = y(h);
|
|
338
|
-
It(c, () =>
|
|
338
|
+
It(c, () => v() ?? at), m(h);
|
|
339
339
|
var i = W(h, 2);
|
|
340
340
|
{
|
|
341
341
|
var _ = (o) => {
|
|
342
|
-
var
|
|
343
|
-
Be(b,
|
|
344
|
-
let
|
|
345
|
-
E(() =>
|
|
346
|
-
var
|
|
347
|
-
It(w, () => g() ?? at), x(
|
|
348
|
-
}), x(o,
|
|
342
|
+
var S = R(), b = T(S);
|
|
343
|
+
Be(b, f, !1, (M, N) => {
|
|
344
|
+
let L;
|
|
345
|
+
E(() => L = X(M, L, { class: d() }, void 0, M.namespaceURI === Kt, M.nodeName.includes("-"))), Ke(3, M, C, () => ({ duration: 200, easing: ta }));
|
|
346
|
+
var A = R(), w = T(A);
|
|
347
|
+
It(w, () => g() ?? at), x(N, A);
|
|
348
|
+
}), x(o, S);
|
|
349
349
|
};
|
|
350
350
|
j(i, (o) => {
|
|
351
|
-
|
|
351
|
+
n() && o(_);
|
|
352
352
|
});
|
|
353
353
|
}
|
|
354
|
-
return m(
|
|
355
|
-
nt(
|
|
356
|
-
}), He("focusoutside",
|
|
357
|
-
p() &&
|
|
358
|
-
}), x(e,
|
|
354
|
+
return m(u), qe(u, (o) => St == null ? void 0 : St(o)), E(() => {
|
|
355
|
+
nt(u, it(a())), I(u, "data-expanded", n()), nt(h, it(l())), I(h, "aria-expanded", n()), I(h, "aria-label", s());
|
|
356
|
+
}), He("focusoutside", u, () => {
|
|
357
|
+
p() && n(!1);
|
|
358
|
+
}), x(e, u), tt({
|
|
359
359
|
get class() {
|
|
360
360
|
return a();
|
|
361
361
|
},
|
|
362
362
|
set class(o) {
|
|
363
363
|
a(o), Z();
|
|
364
364
|
},
|
|
365
|
-
get
|
|
366
|
-
return
|
|
365
|
+
get buttonClass() {
|
|
366
|
+
return l();
|
|
367
367
|
},
|
|
368
|
-
set
|
|
369
|
-
|
|
368
|
+
set buttonClass(o = "") {
|
|
369
|
+
l(o), Z();
|
|
370
370
|
},
|
|
371
|
-
get
|
|
371
|
+
get contentClass() {
|
|
372
372
|
return d();
|
|
373
373
|
},
|
|
374
|
-
set
|
|
374
|
+
set contentClass(o = "") {
|
|
375
375
|
d(o), Z();
|
|
376
376
|
},
|
|
377
|
-
get
|
|
377
|
+
get open() {
|
|
378
378
|
return n();
|
|
379
379
|
},
|
|
380
|
-
set
|
|
380
|
+
set open(o = !1) {
|
|
381
381
|
n(o), Z();
|
|
382
382
|
},
|
|
383
|
-
get
|
|
383
|
+
get as() {
|
|
384
384
|
return f();
|
|
385
385
|
},
|
|
386
|
-
set
|
|
386
|
+
set as(o = "div") {
|
|
387
387
|
f(o), Z();
|
|
388
388
|
},
|
|
389
|
-
get
|
|
389
|
+
get transition() {
|
|
390
390
|
return C();
|
|
391
391
|
},
|
|
392
|
-
set
|
|
392
|
+
set transition(o = Ot) {
|
|
393
393
|
C(o), Z();
|
|
394
394
|
},
|
|
395
395
|
get autoCollapse() {
|
|
@@ -398,17 +398,17 @@ function Q(e, t) {
|
|
|
398
398
|
set autoCollapse(o = !0) {
|
|
399
399
|
p(o), Z();
|
|
400
400
|
},
|
|
401
|
-
get
|
|
402
|
-
return
|
|
401
|
+
get label() {
|
|
402
|
+
return s();
|
|
403
403
|
},
|
|
404
|
-
set
|
|
405
|
-
|
|
404
|
+
set label(o) {
|
|
405
|
+
s(o), Z();
|
|
406
406
|
},
|
|
407
407
|
get button() {
|
|
408
|
-
return
|
|
408
|
+
return v();
|
|
409
409
|
},
|
|
410
410
|
set button(o) {
|
|
411
|
-
|
|
411
|
+
v(o), Z();
|
|
412
412
|
},
|
|
413
413
|
get children() {
|
|
414
414
|
return g();
|
|
@@ -423,13 +423,13 @@ U(
|
|
|
423
423
|
Q,
|
|
424
424
|
{
|
|
425
425
|
class: {},
|
|
426
|
+
buttonClass: {},
|
|
427
|
+
contentClass: {},
|
|
426
428
|
open: {},
|
|
427
429
|
as: {},
|
|
428
430
|
transition: {},
|
|
429
|
-
buttonClass: {},
|
|
430
|
-
contentClass: {},
|
|
431
431
|
autoCollapse: {},
|
|
432
|
-
|
|
432
|
+
label: {},
|
|
433
433
|
button: {},
|
|
434
434
|
children: {}
|
|
435
435
|
},
|
|
@@ -534,74 +534,74 @@ const Yt = [
|
|
|
534
534
|
var ra = k("<span> </span> <!>", 1), sa = k('<span class="flex items-center gap-2 [&>svg]:transition-transform"><!></span>'), la = k("<li><a> </a></li>"), oa = k("<a> </a>"), na = k("<li><!></li>"), ia = k('<nav class="flex h-10 justify-end bg-white px-[calc((100%-1320px)/2)] text-lg" aria-label="Secondary"><ul class="flex h-full items-center justify-end [&>li]:contents"></ul></nav>');
|
|
535
535
|
function ee(e, t) {
|
|
536
536
|
Y(t, !1), Tt();
|
|
537
|
-
var a = ia(),
|
|
538
|
-
q(
|
|
537
|
+
var a = ia(), l = y(a);
|
|
538
|
+
q(l, 5, () => te, (d) => d.text || d.title, (d, n) => {
|
|
539
539
|
var f = na(), C = y(f);
|
|
540
540
|
{
|
|
541
|
-
var p = (
|
|
542
|
-
var g = st(() => lt("flex h-full items-center justify-center gap-2 px-2 transition-colors hover:bg-grey-muted aria-expanded:bg-grey-muted hover:text-grey-muted-contrast aria-expanded:text-grey-muted-contrast", r(n).icon && "[&_svg]:aria-expanded:rotate-180)} aspect-square")),
|
|
543
|
-
Q(
|
|
541
|
+
var p = (v) => {
|
|
542
|
+
var g = st(() => lt("flex h-full items-center justify-center gap-2 px-2 transition-colors hover:bg-grey-muted aria-expanded:bg-grey-muted hover:text-grey-muted-contrast aria-expanded:text-grey-muted-contrast", r(n).icon && "[&_svg]:aria-expanded:rotate-180)} aspect-square")), u = st(() => r(n).icon ? r(n).text : void 0);
|
|
543
|
+
Q(v, {
|
|
544
544
|
class: "relative h-full",
|
|
545
545
|
get buttonClass() {
|
|
546
546
|
return r(g);
|
|
547
547
|
},
|
|
548
548
|
contentClass: "absolute right-0 top-full z-50 flex min-w-[20rem] flex-col bg-grey-muted text-grey-muted-contrast [&>li]:contents",
|
|
549
549
|
as: "ul",
|
|
550
|
-
get
|
|
551
|
-
return r(
|
|
550
|
+
get label() {
|
|
551
|
+
return r(u);
|
|
552
552
|
},
|
|
553
553
|
button: (c) => {
|
|
554
554
|
var i = sa(), _ = y(i);
|
|
555
555
|
{
|
|
556
556
|
var o = (b) => {
|
|
557
|
-
|
|
557
|
+
G(b, {
|
|
558
558
|
get icon() {
|
|
559
559
|
return r(n).icon;
|
|
560
560
|
}
|
|
561
561
|
});
|
|
562
|
-
},
|
|
563
|
-
var M = ra(),
|
|
564
|
-
m(
|
|
565
|
-
var
|
|
566
|
-
|
|
562
|
+
}, S = (b) => {
|
|
563
|
+
var M = ra(), N = T(M), L = y(N, !0);
|
|
564
|
+
m(N);
|
|
565
|
+
var A = W(N, 2);
|
|
566
|
+
G(A, { icon: bt }), E(() => H(L, r(n).text)), x(b, M);
|
|
567
567
|
};
|
|
568
568
|
j(_, (b) => {
|
|
569
|
-
r(n).icon ? b(o) : b(
|
|
569
|
+
r(n).icon ? b(o) : b(S, !1);
|
|
570
570
|
});
|
|
571
571
|
}
|
|
572
|
-
m(i), E(() =>
|
|
572
|
+
m(i), E(() => Nt(i, "bg-yellow", r(n).highlight)), x(c, i);
|
|
573
573
|
},
|
|
574
574
|
children: (c, i) => {
|
|
575
575
|
var _ = R(), o = T(_);
|
|
576
|
-
q(o, 1, () => r(n).links, rt, (
|
|
577
|
-
var M = la(),
|
|
578
|
-
let
|
|
579
|
-
var
|
|
580
|
-
m(
|
|
581
|
-
|
|
576
|
+
q(o, 1, () => r(n).links, rt, (S, b) => {
|
|
577
|
+
var M = la(), N = y(M);
|
|
578
|
+
let L;
|
|
579
|
+
var A = y(N, !0);
|
|
580
|
+
m(N), m(M), E(() => {
|
|
581
|
+
L = X(N, L, {
|
|
582
582
|
class: lt("border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-yellow hover:text-yellow-contrast", r(n).highlight && "bg-yellow text-yellow-contrast"),
|
|
583
583
|
href: r(b).href,
|
|
584
584
|
...r(b).attributes
|
|
585
|
-
}), H(
|
|
586
|
-
}), x(
|
|
585
|
+
}), H(A, r(b).text);
|
|
586
|
+
}), x(S, M);
|
|
587
587
|
}), x(c, _);
|
|
588
588
|
},
|
|
589
589
|
$$slots: { button: !0, default: !0 }
|
|
590
590
|
});
|
|
591
|
-
},
|
|
591
|
+
}, s = (v) => {
|
|
592
592
|
var g = oa();
|
|
593
|
-
const
|
|
593
|
+
const u = st(() => it(lt("flex h-full items-center justify-center gap-2 px-2 transition-colors hover:bg-grey-muted hover:text-grey-muted-contrast", r(n).highlight && "bg-yellow text-yellow-contrast")));
|
|
594
594
|
var h = y(g, !0);
|
|
595
595
|
m(g), E(() => {
|
|
596
|
-
nt(g, r(
|
|
597
|
-
}), x(
|
|
596
|
+
nt(g, r(u)), I(g, "href", r(n).href), H(h, r(n).text);
|
|
597
|
+
}), x(v, g);
|
|
598
598
|
};
|
|
599
|
-
j(C, (
|
|
600
|
-
r(n).links ?
|
|
599
|
+
j(C, (v) => {
|
|
600
|
+
r(n).links ? v(p) : v(s, !1);
|
|
601
601
|
});
|
|
602
602
|
}
|
|
603
603
|
m(f), x(d, f);
|
|
604
|
-
}), m(
|
|
604
|
+
}), m(l), m(a), x(e, a), tt();
|
|
605
605
|
}
|
|
606
606
|
U(ee, {}, [], [], !0);
|
|
607
607
|
var ca = xt('<svg viewBox="0 0 68 90" xmlns="http://www.w3.org/2000/svg"><path d="M23.131 0l44.847 90H0V0" fill="#e51937"></path><path d="M23.131 0l16.03 32.044L55.1 0" fill="#ffc429"></path></svg>');
|
|
@@ -645,7 +645,7 @@ U(se, {}, [], [], !0);
|
|
|
645
645
|
var fa = k('<div class="left-0 h-full w-[7.5rem] min-[1320px]:absolute [&>svg]:block [&>svg]:h-full [&>svg]:w-auto"><!></div>'), da = k('<div class="flex w-fit"><!> <a href="https://www.uoguelph.ca" aria-label="University of Guelph Home Page"><!></a></div>');
|
|
646
646
|
function le(e, t) {
|
|
647
647
|
Y(t, !1);
|
|
648
|
-
const [a,
|
|
648
|
+
const [a, l] = mt(), d = () => _t(n, "$headerState", a), n = Ht("header-state");
|
|
649
649
|
Tt();
|
|
650
650
|
var f = da(), C = y(f);
|
|
651
651
|
{
|
|
@@ -658,24 +658,24 @@ function le(e, t) {
|
|
|
658
658
|
((i = d()) == null ? void 0 : i.mode) === "desktop" && c(p);
|
|
659
659
|
});
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
const
|
|
661
|
+
var s = W(C, 2);
|
|
662
|
+
const v = st(() => {
|
|
663
663
|
var c, i;
|
|
664
664
|
return it(lt("flex items-center h-full w-fit transition-opacity focus:opacity-75 hover:opacity-75 min-[1320px]:absolute min-[1320px]:left-[max(calc((100%-1320px)/2),7.5rem)] [&>svg]:block [&>svg]:w-auto", ((c = d()) == null ? void 0 : c.mode) === "desktop" ? "[&>svg]:h-22" : ((i = d()) == null ? void 0 : i.variant) === "dual-brand" ? "[&>svg]:h-[7.5rem] px-2" : "[&>svg]:h-[5rem]"));
|
|
665
665
|
});
|
|
666
|
-
var g = y(
|
|
666
|
+
var g = y(s);
|
|
667
667
|
{
|
|
668
|
-
var
|
|
668
|
+
var u = (c) => {
|
|
669
669
|
se(c);
|
|
670
670
|
}, h = (c) => {
|
|
671
671
|
re(c);
|
|
672
672
|
};
|
|
673
673
|
j(g, (c) => {
|
|
674
674
|
var i;
|
|
675
|
-
((i = d()) == null ? void 0 : i.mode) === "desktop" ? c(
|
|
675
|
+
((i = d()) == null ? void 0 : i.mode) === "desktop" ? c(u) : c(h, !1);
|
|
676
676
|
});
|
|
677
677
|
}
|
|
678
|
-
m(
|
|
678
|
+
m(s), m(f), E(() => nt(s, r(v))), x(e, f), tt(), l();
|
|
679
679
|
}
|
|
680
680
|
U(le, {}, [], [], !0);
|
|
681
681
|
var ha = xt('<svg id="Layer_1" data-name="Layer 1" xmlns="http://www.w3.org/2000/svg" style="height:100%" viewBox="0 0 266.13 110.89"><defs><style>.cls-1,.cls-2{fill:#fff;}.cls-2{stroke:#fff;stroke-linecap:round;stroke-linejoin:round;stroke-width:1.5px;}</style></defs><path class="cls-1" d="M411.7,171.24v7.91c0,2.7.79,4.18,3,4.18s3-1.8,3-4v-8.07h2.48v8.56c0,3.49-2.25,5.46-5.52,5.46-3.74,0-5.69-1.84-5.69-5.6v-8.42Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M435.78,185h-2c-2.64-3.17-5.27-6.32-7.87-9.89h0V185h-2.23V171.24h2c2.64,3.15,5.26,6.28,7.86,9.82h0v-9.82h2.22V185Z" transform="translate(-365.74 -171)"></path><polygon class="cls-1" points="73.7 14.02 73.7 0.24 76.48 0.24 76.48 14.02 73.7 14.02 73.7 14.02"></polygon><path class="cls-1" d="M449.41,185l-5.12-13.59,2.95-.39c1.22,3.5,2.42,7,3.62,11h0c1.26-4,2.54-7.49,3.82-11l2.39.39L451.67,185Z" transform="translate(-365.74 -171)"></path><polygon class="cls-1" points="100.87 2.09 96.25 2.09 96.25 5.87 100.78 5.87 100.78 7.72 96.25 7.72 96.25 12.17 101.72 12.17 101.72 14.02 93.47 14.02 93.47 0.24 100.87 0.24 100.87 2.09 100.87 2.09"></polygon><path class="cls-1" d="M473.05,173.09h1.44a2,2,0,0,1,2.21,2.08,2.39,2.39,0,0,1-2.52,2.49h-1.13v-4.57ZM470.28,185h2.77v-5.51h1.66l2.8,5.75,2.91-.54-3.27-5.88a4.35,4.35,0,0,0,2.32-4c0-2.34-1.77-3.6-4.41-3.6h-4.78V185Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M489.56,173.64a4.12,4.12,0,0,0-2.23-.79c-1.16,0-1.79.65-1.79,1.46s1,1.59,2.58,2.87c1.85,1.48,2.83,2.64,2.83,4.33s-1.65,3.75-4.76,3.75a6.19,6.19,0,0,1-4.06-1.38l1-1.58a4.57,4.57,0,0,0,2.81,1.1,1.92,1.92,0,0,0,2.15-1.91c0-1.51-1.85-2.52-3-3.38-1.33-1.08-2.46-1.93-2.46-3.76s1.87-3.35,4.37-3.35a5.13,5.13,0,0,1,3.49,1.2l-1,1.44Z" transform="translate(-365.74 -171)"></path><polygon class="cls-1" points="128.3 14.02 128.3 0.24 131.08 0.24 131.08 14.02 128.3 14.02 128.3 14.02"></polygon><polygon class="cls-1" points="137.56 14.02 137.56 2.09 133.3 2.09 133.3 0.24 144.59 0.24 144.59 2.09 140.33 2.09 140.33 14.02 137.56 14.02 137.56 14.02"></polygon><path class="cls-1" d="M515.59,185v-5.77l-4.24-7.82,3.11-.39c1,2,1.91,4,2.88,6.36,1.06-2.38,2.14-4.37,3.21-6.36l2.28.39-4.47,7.82V185Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M537.52,183.29c-2.89,0-3.92-2.72-3.92-5.36s1.16-5,3.92-5,3.92,2.42,3.92,5-1,5.36-3.92,5.36Zm0,2c4.23,0,6.87-3.21,6.87-7.33a6.87,6.87,0,1,0-13.74,0c0,4.12,2.64,7.33,6.87,7.33Z" transform="translate(-365.74 -171)"></path><polygon class="cls-1" points="188.95 2.09 184.34 2.09 184.34 6.62 188.87 6.62 188.87 8.47 184.34 8.47 184.34 14.02 181.56 14.02 181.56 0.24 188.95 0.24 188.95 2.09 188.95 2.09"></polygon><path class="cls-1" d="M451,280.31c-3-.43-3-1.21-3-7.24v-21.9c0-6,0-6.81,3-7.24l1.31-.17v-1.41h-16.2v1.41l1.38.17c2.89.43,2.89,1.21,2.89,7.24V260H422.08v-8.87c0-6,0-6.75,2.9-7.18l1.37-.17v-1.41h-16.2v1.41l1.38.17c2.89.43,2.89,1.21,2.89,7.24v22c0,6,0,6.75-2.9,7.18l-1.37.17v1.41h16.2v-1.41l-1.37-.17c-2.9-.43-2.9-1.2-2.9-7.18V262.52h18.33v10.55c0,6,0,6.81-2.89,7.24l-1.38.17v1.41h16.2v-1.41l-1.31-.17Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M494.24,273.13l1.26-.24c1.41-.29,2.09-.63,2.33-3.93l1.65-26.61a10.55,10.55,0,0,1,2.43-.29l13,24.28,12.13-24a8.42,8.42,0,0,1,2.43-.29l1.46,26.46c.19,3.69.82,4.13,2.33,4.37l1.45.24v1.27H521v-1.27l1.6-.24c2.19-.39,2.58-.58,2.48-3.79l-.63-16.7h-.1l-10.14,21.51a8.88,8.88,0,0,1-1.85.49l-11-22h-.1l-.58,16.7c-.14,3.21.3,3.36,2.47,3.79l1.61.24v1.27H494.24v-1.27Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M549.56,244.54a8.41,8.41,0,0,1,2.47-.34c3.74,0,6.31,2.28,6.31,6,0,5.24-3.29,6.26-7,6.26h-1.8V244.54ZM539.8,274.4h12.62c7.24,0,13.79-2,13.79-9.13,0-6-5.19-7.91-8.2-8.35v-.1c2.57-.78,6.65-2.57,6.65-7.76,0-6.71-8.06-6.71-10.39-6.71H539.8v1.27l1.16.14c2.29.44,2.29.3,2.29,5.69v17.76c0,5.49,0,5.29-2.29,5.78l-1.16.14v1.27Zm9.76-16.07h2.09c5.87,0,8.25,3.79,8.25,7.62s-1.94,6.6-6.41,6.6a11,11,0,0,1-3.93-.78V258.33Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M571,273.13l1.16-.14c2.29-.44,2.29-.29,2.29-5.78V249.54c0-5.48,0-5.25-2.29-5.78l-1.16-.14v-1.27h22.38a36,36,0,0,1,.58,7.87l-1.75.24c-1.26-6.17-2.86-6.26-8-6.26h-3.5v12.48h3.3c4.32,0,5-.05,5.29-2.09l.25-1.7h1.25v9.66h-1.25l-.25-1.55c-.34-2.14-1.06-2.14-5.09-2.14h-3.5v13a20.88,20.88,0,0,0,4.9.73c7.28,0,7.82-3.74,8.79-7.38l1.74.34a34.28,34.28,0,0,1-1.6,8.89H571v-1.27Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M611.52,244.54a8.58,8.58,0,0,1,2.53-.34c3.89,0,6.85,2.53,6.85,7,0,2.09-.15,7.47-7,7.47h-2.38V244.54Zm0,16h1.56c3,0,3.15,1.8,4.86,5.05l1.84,3.59c1.07,2.14,3,5.25,7.86,5.25h4.23v-1.27a4.15,4.15,0,0,1-3.11-1.31A77.92,77.92,0,0,1,621,258.76c2.77-1.26,6.22-4,6.22-8.3,0-7.62-7-8.11-11.46-8.11h-14v1.27l1.11.14c2.33.34,2.33.83,2.33,5.73v17.72c0,4.86,0,5.44-2.28,5.78l-1.16.14v1.27H615v-1.27L613.8,273c-2.28-.34-2.28-.92-2.28-5.73v-6.75Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M480.71,242.43v1.44l.92.11.42.05h0c2.13.29,2.51.34,2.55,3.48l.2,12.44a39.67,39.67,0,0,1-.26,5c-.72,5.67-4.68,7.68-8.15,7.68-5.34,0-8.93-3.48-8.93-8.67V249.59c0-4.73,0-5.23,2.16-5.55l1.24-.16v-1.45H457.6v1.45l1.25.17c2.15.31,2.15.81,2.15,5.54v11.83c0,9.17,4.78,13.63,14.62,13.63,7.88,0,12.11-4.35,12.56-12.93l.07-2.24.29-11.76c0-3.25.69-3.56,2-3.92l1-.29v-1.48Z" transform="translate(-365.74 -171)"></path><line class="cls-2" x1="0.75" y1="61.79" x2="264.97" y2="61.79"></line><path class="cls-1" d="M402.13,185.86a.08.08,0,0,1,0,0h0l0,0Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M389.41,210.89v1.42l2.88.41c1.56.28,2.34.47,2.75,1.15s.39,1.73.39,3.86v5.85h-.07a29,29,0,0,1-4.58.43,14.12,14.12,0,0,1-11.22-5c-2.83-3.36-4.33-8.26-4.33-14.16,0-5.29,1.09-9.7,3.14-12.75,2.34-3.45,5.84-5.2,10.42-5.2,4.17,0,7.32,1.26,9.34,3.75a15.88,15.88,0,0,1,2.81,6.56l.07.27,2.2-.29a38.16,38.16,0,0,0-1.31-10.1c-2.42-1.15-5.78-2.32-12.33-2.32-6.2,0-11.81,1.66-15.78,4.69a17.3,17.3,0,0,0-5.2,6.36,21.87,21.87,0,0,0-2,9.51c0,7.09,2.34,12.5,7,16.08,4,3.08,9.67,4.71,16.42,4.71a46.74,46.74,0,0,0,14.8-2.88l.28-.1-.17-1.25h-.07c-.71,0-1.19-.09-1.44-.69a12.19,12.19,0,0,1-.3-3.83c0-3.71.07-4.51,2.17-4.9l1.14-.16v-1.42Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M450.45,224.29l1.17-.14c2.28-.44,2.28-.3,2.28-5.78V200.7c0-5.49,0-5.24-2.28-5.78l-1.17-.14v-1.27h22.38a36,36,0,0,1,.58,7.87l-1.74.24c-1.27-6.16-2.87-6.26-8-6.26h-3.5v12.48h3.3c4.32,0,5-.05,5.29-2.09l.24-1.7h1.27v9.66H469l-.24-1.55c-.34-2.14-1.06-2.14-5.09-2.14h-3.5v13a20.89,20.89,0,0,0,4.91.73c7.27,0,7.81-3.74,8.78-7.38l1.75.34a34.78,34.78,0,0,1-1.6,8.89h-23.6v-1.27Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M481.26,224.29l1.17-.14c2.28-.44,2.28-.25,2.28-5.78V200.55c0-4.71,0-5.29-2.28-5.63l-1.17-.14v-1.27h13.2v1.27l-1.17.14c-2.27.34-2.27.92-2.27,5.63V223a19.72,19.72,0,0,0,4.46.68c6.84,0,6.89-3.3,8.29-7.34l1.76.35a35,35,0,0,1-1.71,8.84H481.26v-1.27Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M509.91,224.29l1.17-.14c2.28-.25,2.28-.93,2.28-5.73V200.7c0-4.76,0-5.49-2.28-5.78l-1.17-.14v-1.27h12.91c6,0,13,1.07,13,8.6,0,8.2-8,10.29-13.06,10.43V210.7c3.6-.49,6.75-2,6.75-7.91,0-5.1-3.35-7.43-7.42-7.43a9.51,9.51,0,0,0-2.39.34v22.72c0,4.8.06,5.48,2.34,5.73l1.84.14v1.27H509.91v-1.27Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M543.57,200.7c0-4.86,0-5.44-2.28-5.78l-1.16-.14v-1.27h13.2v1.27l-1.16.14c-2.29.34-2.29.92-2.29,5.73v7.09h14.66v-7c0-4.86,0-5.44-2.28-5.78l-1.16-.14v-1.27h13.21v1.27l-1.12.14c-2.34.34-2.34.92-2.34,5.78v17.67c0,4.85,0,5.43,2.34,5.78l1.12.14v1.27H561.1v-1.27l1.16-.14c2.28-.35,2.28-.93,2.28-5.78v-8.45H549.88v8.5c0,4.8,0,5.38,2.29,5.73l1.16.14v1.27h-13.2v-1.27l1.16-.14c2.28-.35,2.28-.93,2.28-5.73V200.7Z" transform="translate(-365.74 -171)"></path><path class="cls-1" d="M434.13,193.52V195l1.11.12.23,0h0c2.12.29,2.5.35,2.55,3.48l.19,12.44a38,38,0,0,1-.26,5c-.72,5.67-4.68,7.69-8.15,7.69-5.34,0-8.93-3.49-8.93-8.68V200.69c0-4.74,0-5.23,2.17-5.55l1.24-.16v-1.46H411V195l1.25.16c2.15.32,2.15.81,2.15,5.55v11.83c0,9.16,4.79,13.62,14.63,13.62,7.88,0,12.1-4.35,12.55-12.92l.07-2.25.3-11.76c0-3.25.68-3.56,2-3.92l1-.28v-1.49Z" transform="translate(-365.74 -171)"></path></svg>');
|
|
@@ -687,102 +687,102 @@ U(oe, {}, [], [], !0);
|
|
|
687
687
|
var pa = k('<a class="flex h-full items-center justify-center border-0 border-b-8 border-solid border-transparent p-4 pb-6 pt-8 text-yellow-text transition-colors hover:border-yellow hover:text-white [&>svg]:fill-current"><!></a>'), ga = k('<a class="flex h-full text-center items-center justify-center border-0 border-b-8 border-solid border-transparent p-4 pt-6 transition-colors hover:border-yellow hover:text-yellow-text"> </a>'), ba = k("<li><!></li>"), xa = k('<ul class="flex ml-auto [&>li]:contents text-xl"></ul>');
|
|
688
688
|
function ne(e) {
|
|
689
689
|
var t = xa();
|
|
690
|
-
q(t, 5, () => Yt, rt, (a,
|
|
690
|
+
q(t, 5, () => Yt, rt, (a, l) => {
|
|
691
691
|
var d = ba(), n = y(d);
|
|
692
692
|
{
|
|
693
693
|
var f = (p) => {
|
|
694
|
-
var
|
|
695
|
-
|
|
694
|
+
var s = pa(), v = y(s);
|
|
695
|
+
G(v, {
|
|
696
696
|
get icon() {
|
|
697
|
-
return r(
|
|
697
|
+
return r(l).icon;
|
|
698
698
|
}
|
|
699
|
-
}), m(
|
|
700
|
-
|
|
701
|
-
}), x(p,
|
|
699
|
+
}), m(s), E(() => {
|
|
700
|
+
I(s, "href", r(l).href), I(s, "aria-label", r(l).text);
|
|
701
|
+
}), x(p, s);
|
|
702
702
|
}, C = (p) => {
|
|
703
|
-
var
|
|
704
|
-
m(
|
|
705
|
-
|
|
706
|
-
}), x(p,
|
|
703
|
+
var s = ga(), v = y(s, !0);
|
|
704
|
+
m(s), E(() => {
|
|
705
|
+
I(s, "href", r(l).href), H(v, r(l).text);
|
|
706
|
+
}), x(p, s);
|
|
707
707
|
};
|
|
708
708
|
j(n, (p) => {
|
|
709
|
-
r(
|
|
709
|
+
r(l).icon ? p(f) : p(C, !1);
|
|
710
710
|
});
|
|
711
711
|
}
|
|
712
712
|
m(d), x(a, d);
|
|
713
713
|
}), m(t), x(e, t);
|
|
714
714
|
}
|
|
715
715
|
U(ne, {}, [], [], !0);
|
|
716
|
-
var ma = k('<li class="[&>*]:first:mt-4 [&>*]:last:mb-4"><a> </a></li>'), _a = k('<a class="flex h-full aspect-square items-center justify-center gap-2 px-4 transition-colors hover:bg-white focus:bg-white aria-expanded:bg-white hover:text-black focus:text-black aria-expanded:text-black"><!></a>'), ya = k('<li data-testid="outer-link"><!></li>'), wa = k('<span class="w-full flex items-center gap-2 justify-between [&>svg]:transition-transform"><span class="mr-auto"> </span> <!></span>'), Ma = k("<li><a> </a></li>"), Ca = k('<a class="border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-grey-muted focus:bg-grey-muted"> </a>'), ka = k('<li class="[&>*]:first:mt-4 [&>*]:last:mb-4"><!></li>'),
|
|
716
|
+
var ma = k('<li class="[&>*]:first:mt-4 [&>*]:last:mb-4"><a> </a></li>'), _a = k('<a class="flex h-full aspect-square items-center justify-center gap-2 px-4 transition-colors hover:bg-white focus:bg-white aria-expanded:bg-white hover:text-black focus:text-black aria-expanded:text-black"><!></a>'), ya = k('<li data-testid="outer-link"><!></li>'), wa = k('<span class="w-full flex items-center gap-2 justify-between [&>svg]:transition-transform"><span class="mr-auto"> </span> <!></span>'), Ma = k("<li><a> </a></li>"), Ca = k('<a class="border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-grey-muted focus:bg-grey-muted"> </a>'), ka = k('<li class="[&>*]:first:mt-4 [&>*]:last:mb-4"><!></li>'), $a = k('<ul class="flex h-full [&>li]:contents"><!> <li><!></li></ul>');
|
|
717
717
|
function ie(e) {
|
|
718
|
-
const t = [...Yt, ...te], a = t.filter((p) => !(p != null && p.excludeFromMainMenu)),
|
|
719
|
-
var d =
|
|
720
|
-
q(n, 1, () =>
|
|
721
|
-
var
|
|
718
|
+
const t = [...Yt, ...te], a = t.filter((p) => !(p != null && p.excludeFromMainMenu)), l = t.filter((p) => p == null ? void 0 : p.excludeFromMainMenu);
|
|
719
|
+
var d = $a(), n = y(d);
|
|
720
|
+
q(n, 1, () => l, (p) => p.text || p.title, (p, s) => {
|
|
721
|
+
var v = ya(), g = y(v);
|
|
722
722
|
{
|
|
723
|
-
var
|
|
724
|
-
var i = st(() => r(
|
|
723
|
+
var u = (c) => {
|
|
724
|
+
var i = st(() => r(s).icon ? r(s).text : void 0);
|
|
725
725
|
Q(c, {
|
|
726
726
|
class: "h-full w-fit",
|
|
727
|
-
get
|
|
727
|
+
get label() {
|
|
728
728
|
return r(i);
|
|
729
729
|
},
|
|
730
730
|
buttonClass: "flex h-full aspect-square items-center justify-center gap-2 px-4 transition-colors hover:bg-white focus:bg-white aria-expanded:bg-white hover:text-black focus:text-black aria-expanded:text-black",
|
|
731
731
|
contentClass: "absolute right-0 top-full z-50 flex w-full flex-col bg-white px-4 text-black shadow-md lg:w-[30rem] [&>li]:contents",
|
|
732
732
|
as: "ul",
|
|
733
733
|
button: (o) => {
|
|
734
|
-
|
|
734
|
+
G(o, {
|
|
735
735
|
get icon() {
|
|
736
|
-
return r(
|
|
736
|
+
return r(s).icon;
|
|
737
737
|
}
|
|
738
738
|
});
|
|
739
739
|
},
|
|
740
|
-
children: (o,
|
|
740
|
+
children: (o, S) => {
|
|
741
741
|
var b = R(), M = T(b);
|
|
742
|
-
q(M, 1, () => r(
|
|
743
|
-
var
|
|
744
|
-
let
|
|
742
|
+
q(M, 1, () => r(s).links, rt, (N, L) => {
|
|
743
|
+
var A = ma(), w = y(A);
|
|
744
|
+
let $;
|
|
745
745
|
var F = y(w, !0);
|
|
746
|
-
m(w), m(
|
|
747
|
-
|
|
746
|
+
m(w), m(A), E(() => {
|
|
747
|
+
$ = X(w, $, {
|
|
748
748
|
class: "border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-grey-muted",
|
|
749
|
-
href: r(
|
|
750
|
-
...r(
|
|
751
|
-
}), H(F, r(
|
|
752
|
-
}), x(
|
|
749
|
+
href: r(L).href,
|
|
750
|
+
...r(L).attributes
|
|
751
|
+
}), H(F, r(L).text);
|
|
752
|
+
}), x(N, A);
|
|
753
753
|
}), x(o, b);
|
|
754
754
|
},
|
|
755
755
|
$$slots: { button: !0, default: !0 }
|
|
756
756
|
});
|
|
757
757
|
}, h = (c) => {
|
|
758
758
|
var i = _a(), _ = y(i);
|
|
759
|
-
|
|
759
|
+
G(_, {
|
|
760
760
|
get icon() {
|
|
761
|
-
return r(
|
|
761
|
+
return r(s).icon;
|
|
762
762
|
}
|
|
763
763
|
}), m(i), E(() => {
|
|
764
|
-
|
|
764
|
+
I(i, "href", r(s).href), I(i, "aria-label", r(s).text);
|
|
765
765
|
}), x(c, i);
|
|
766
766
|
};
|
|
767
767
|
j(g, (c) => {
|
|
768
|
-
r(
|
|
768
|
+
r(s).links ? c(u) : c(h, !1);
|
|
769
769
|
});
|
|
770
770
|
}
|
|
771
|
-
m(
|
|
771
|
+
m(v), x(p, v);
|
|
772
772
|
});
|
|
773
773
|
var f = W(n, 2), C = y(f);
|
|
774
774
|
Q(C, {
|
|
775
775
|
class: "h-full w-fit",
|
|
776
|
-
|
|
776
|
+
label: "Main Menu",
|
|
777
777
|
buttonClass: "flex h-full aspect-square items-center justify-center gap-2 px-4 transition-colors hover:bg-white focus:bg-white aria-expanded:bg-white hover:text-black focus:text-black aria-expanded:text-black [&_svg]:aria-expanded:rotate-180",
|
|
778
778
|
contentClass: "absolute right-0 top-full z-50 flex w-full flex-col bg-white px-4 text-black shadow-md lg:w-[30rem] [&>li]:contents max-h-[calc(100vh-5rem)] overflow-y-auto",
|
|
779
779
|
as: "ul",
|
|
780
|
-
button: (
|
|
781
|
-
|
|
780
|
+
button: (s) => {
|
|
781
|
+
G(s, { icon: Jt });
|
|
782
782
|
},
|
|
783
|
-
children: (
|
|
784
|
-
var g = R(),
|
|
785
|
-
q(
|
|
783
|
+
children: (s, v) => {
|
|
784
|
+
var g = R(), u = T(g);
|
|
785
|
+
q(u, 1, () => a, rt, (h, c) => {
|
|
786
786
|
var i = ka(), _ = y(i);
|
|
787
787
|
{
|
|
788
788
|
var o = (b) => {
|
|
@@ -792,17 +792,17 @@ function ie(e) {
|
|
|
792
792
|
contentClass: "flex flex-col w-full flex-col bg-white text-black [&>li]:contents",
|
|
793
793
|
as: "ul",
|
|
794
794
|
autoCollapse: !1,
|
|
795
|
-
button: (
|
|
796
|
-
var
|
|
797
|
-
m(
|
|
798
|
-
var
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
}), x(
|
|
795
|
+
button: (N) => {
|
|
796
|
+
var L = wa(), A = y(L), w = y(A, !0);
|
|
797
|
+
m(A);
|
|
798
|
+
var $ = W(A, 2);
|
|
799
|
+
G($, { icon: bt }), m(L), E(() => {
|
|
800
|
+
Nt(L, "bg-yellow", r(c).highlight), H(w, r(c).text);
|
|
801
|
+
}), x(N, L);
|
|
802
802
|
},
|
|
803
|
-
children: (
|
|
804
|
-
var
|
|
805
|
-
q(w, 1, () => r(c).links, rt, (
|
|
803
|
+
children: (N, L) => {
|
|
804
|
+
var A = R(), w = T(A);
|
|
805
|
+
q(w, 1, () => r(c).links, rt, ($, F) => {
|
|
806
806
|
var B = Ma(), z = y(B);
|
|
807
807
|
let P;
|
|
808
808
|
var yt = y(z, !0);
|
|
@@ -812,46 +812,46 @@ function ie(e) {
|
|
|
812
812
|
href: r(F).href,
|
|
813
813
|
...r(F).attributes
|
|
814
814
|
}), H(yt, r(F).text);
|
|
815
|
-
}), x(
|
|
816
|
-
}), x(
|
|
815
|
+
}), x($, B);
|
|
816
|
+
}), x(N, A);
|
|
817
817
|
},
|
|
818
818
|
$$slots: { button: !0, default: !0 }
|
|
819
819
|
});
|
|
820
|
-
},
|
|
821
|
-
var M = Ca(),
|
|
820
|
+
}, S = (b) => {
|
|
821
|
+
var M = Ca(), N = y(M, !0);
|
|
822
822
|
m(M), E(() => {
|
|
823
|
-
|
|
823
|
+
I(M, "href", r(c).href), Nt(M, "bg-yellow", r(c).highlight), H(N, r(c).text);
|
|
824
824
|
}), x(b, M);
|
|
825
825
|
};
|
|
826
826
|
j(_, (b) => {
|
|
827
|
-
r(c).links ? b(o) : b(
|
|
827
|
+
r(c).links ? b(o) : b(S, !1);
|
|
828
828
|
});
|
|
829
829
|
}
|
|
830
830
|
m(i), x(h, i);
|
|
831
|
-
}), x(
|
|
831
|
+
}), x(s, g);
|
|
832
832
|
},
|
|
833
833
|
$$slots: { button: !0, default: !0 }
|
|
834
834
|
}), m(f), m(d), x(e, d);
|
|
835
835
|
}
|
|
836
836
|
U(ie, {}, [], [], !0);
|
|
837
|
-
var
|
|
837
|
+
var Sa = k('<a href="https://www.guelphhumber.ca" class="w-auto h-full p-4 ml-auto transition-opacity focus:opacity-75 hover:opacity-75"><span class="sr-only">University of Guelph-Humber Homepage</span> <!></a>'), La = k('<nav aria-label="Primary"><!> <!></nav>');
|
|
838
838
|
function ce(e, t) {
|
|
839
839
|
Y(t, !1);
|
|
840
|
-
const [a,
|
|
840
|
+
const [a, l] = mt(), d = () => _t(n, "$headerState", a), n = Ht("header-state");
|
|
841
841
|
Tt();
|
|
842
|
-
var f =
|
|
842
|
+
var f = La();
|
|
843
843
|
const C = st(() => {
|
|
844
|
-
var
|
|
845
|
-
return it(lt("relative w-full justify-between flex lg:h-25 bg-black px-[calc((100%-1320px)/2)] text-lg text-black-contrast", ((
|
|
844
|
+
var u;
|
|
845
|
+
return it(lt("relative w-full justify-between flex lg:h-25 bg-black px-[calc((100%-1320px)/2)] text-lg text-black-contrast", ((u = d()) == null ? void 0 : u.variant) === "dual-brand" ? "h-[7.5rem]" : "h-12.5"));
|
|
846
846
|
});
|
|
847
847
|
var p = y(f);
|
|
848
848
|
le(p, {});
|
|
849
|
-
var
|
|
849
|
+
var s = W(p, 2);
|
|
850
850
|
{
|
|
851
|
-
var
|
|
852
|
-
var h =
|
|
853
|
-
oe(c), m(h), x(
|
|
854
|
-
}, g = (
|
|
851
|
+
var v = (u) => {
|
|
852
|
+
var h = Sa(), c = W(y(h), 2);
|
|
853
|
+
oe(c), m(h), x(u, h);
|
|
854
|
+
}, g = (u) => {
|
|
855
855
|
var h = R(), c = T(h);
|
|
856
856
|
{
|
|
857
857
|
var i = (o) => {
|
|
@@ -862,81 +862,80 @@ function ce(e, t) {
|
|
|
862
862
|
j(
|
|
863
863
|
c,
|
|
864
864
|
(o) => {
|
|
865
|
-
var
|
|
866
|
-
((
|
|
865
|
+
var S;
|
|
866
|
+
((S = d()) == null ? void 0 : S.mode) === "desktop" ? o(i) : o(_, !1);
|
|
867
867
|
},
|
|
868
868
|
!0
|
|
869
869
|
);
|
|
870
870
|
}
|
|
871
|
-
x(
|
|
871
|
+
x(u, h);
|
|
872
872
|
};
|
|
873
|
-
j(
|
|
873
|
+
j(s, (u) => {
|
|
874
874
|
var h;
|
|
875
|
-
((h = d()) == null ? void 0 : h.variant) === "dual-brand" ? v
|
|
875
|
+
((h = d()) == null ? void 0 : h.variant) === "dual-brand" ? u(v) : u(g, !1);
|
|
876
876
|
});
|
|
877
877
|
}
|
|
878
|
-
m(f), E(() => nt(f, r(C))), x(e, f), tt(),
|
|
878
|
+
m(f), E(() => nt(f, r(C))), x(e, f), tt(), l();
|
|
879
879
|
}
|
|
880
880
|
U(ce, {}, [], [], !0);
|
|
881
|
-
var
|
|
881
|
+
var Na = k('<span class="flex items-center gap-2 [&>svg]:transition-transform"><span> </span> <!></span>'), Aa = k("<li><a> </a></li>"), Ea = k("<li><!></li>"), Va = k("<li><a> </a></li>");
|
|
882
882
|
function ue(e, t) {
|
|
883
883
|
Y(t, !0);
|
|
884
884
|
let a = V(t, "items", 7);
|
|
885
|
-
var
|
|
885
|
+
var l = R(), d = T(l);
|
|
886
886
|
return q(d, 17, a, (n) => n.text || n.title, (n, f) => {
|
|
887
887
|
var C = R(), p = T(C);
|
|
888
888
|
{
|
|
889
|
-
var
|
|
890
|
-
var
|
|
889
|
+
var s = (g) => {
|
|
890
|
+
var u = Ea(), h = y(u);
|
|
891
891
|
Q(h, {
|
|
892
892
|
class: "relative h-full",
|
|
893
893
|
buttonClass: "flex h-full items-center justify-center gap-2 px-2 transition-colors hover:bg-yellow focus:bg-yellow aria-expanded:bg-yellow hover:text-yellow-contrast focus:text-yellow-contrast aria-expanded:text-yellow-contrast [&_svg]:aria-expanded:rotate-180",
|
|
894
894
|
contentClass: "absolute right-0 top-full z-50 flex min-w-[20rem] flex-col bg-light-grey [&>li]:contents",
|
|
895
|
-
buttonAriaLabel: void 0,
|
|
896
895
|
as: "ul",
|
|
897
896
|
button: (i) => {
|
|
898
|
-
var _ =
|
|
897
|
+
var _ = Na(), o = y(_), S = y(o, !0);
|
|
899
898
|
m(o);
|
|
900
899
|
var b = W(o, 2);
|
|
901
|
-
|
|
900
|
+
G(b, { icon: bt }), m(_), E(() => H(S, r(f).title)), x(i, _);
|
|
902
901
|
},
|
|
903
902
|
children: (i, _) => {
|
|
904
|
-
var o = R(),
|
|
905
|
-
q(
|
|
906
|
-
var
|
|
907
|
-
let
|
|
908
|
-
var w = y(
|
|
909
|
-
m(
|
|
910
|
-
var
|
|
911
|
-
|
|
903
|
+
var o = R(), S = T(o);
|
|
904
|
+
q(S, 17, () => r(f).links, rt, (b, M) => {
|
|
905
|
+
var N = Aa(), L = y(N);
|
|
906
|
+
let A;
|
|
907
|
+
var w = y(L, !0);
|
|
908
|
+
m(L), m(N), E(() => {
|
|
909
|
+
var $;
|
|
910
|
+
A = X(L, A, {
|
|
912
911
|
...r(M).attributes,
|
|
913
|
-
class: `border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-yellow focus:bg-yellow hover:text-yellow-contrast focus:text-yellow-contrast ${((
|
|
912
|
+
class: `border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-yellow focus:bg-yellow hover:text-yellow-contrast focus:text-yellow-contrast ${(($ = r(M).attributes) == null ? void 0 : $.class) ?? ""}`,
|
|
914
913
|
href: r(M).href
|
|
915
914
|
}), H(w, r(M).text);
|
|
916
|
-
}), x(b,
|
|
915
|
+
}), x(b, N);
|
|
917
916
|
}), x(i, o);
|
|
918
917
|
},
|
|
919
918
|
$$slots: { button: !0, default: !0 }
|
|
920
|
-
}), m(
|
|
921
|
-
},
|
|
922
|
-
var
|
|
919
|
+
}), m(u), x(g, u);
|
|
920
|
+
}, v = (g) => {
|
|
921
|
+
var u = Va(), h = y(u);
|
|
923
922
|
let c;
|
|
924
923
|
var i = y(h, !0);
|
|
925
|
-
m(h), m(
|
|
924
|
+
m(h), m(u), E(() => {
|
|
926
925
|
var _;
|
|
927
926
|
c = X(h, c, {
|
|
928
927
|
...r(f).attributes,
|
|
929
928
|
class: `flex h-full items-center justify-center gap-2 px-2 transition-colors hover:bg-yellow focus:bg-yellow hover:text-yellow-contrast focus:text-yellow-contrast ${((_ = r(f).attributes) == null ? void 0 : _.class) ?? ""}`,
|
|
930
929
|
href: r(f).href
|
|
931
930
|
}), H(i, r(f).text);
|
|
932
|
-
}), x(g,
|
|
931
|
+
}), x(g, u);
|
|
933
932
|
};
|
|
934
933
|
j(p, (g) => {
|
|
935
|
-
r(f).links ? g(
|
|
934
|
+
r(f).links ? g(s) : g(v, !1);
|
|
936
935
|
});
|
|
937
936
|
}
|
|
938
937
|
x(n, C);
|
|
939
|
-
}), x(e,
|
|
938
|
+
}), x(e, l), tt({
|
|
940
939
|
get items() {
|
|
941
940
|
return a();
|
|
942
941
|
},
|
|
@@ -950,28 +949,28 @@ var Za = k("<a> </a>"), ja = k('<span class="w-full flex items-center gap-2 just
|
|
|
950
949
|
function ve(e, t) {
|
|
951
950
|
Y(t, !0);
|
|
952
951
|
let a = V(t, "items", 7);
|
|
953
|
-
var
|
|
952
|
+
var l = Fa(), d = y(l);
|
|
954
953
|
return Q(d, {
|
|
955
954
|
class: "h-full",
|
|
956
955
|
buttonClass: "flex h-full aspect-square items-center justify-center gap-2 px-4 transition-colors hover:bg-yellow focus:bg-yellow aria-expanded:bg-yellow hover:text-yellow-contrast focus:text-yellow-contrast aria-expanded:text-yellow-contrast",
|
|
957
956
|
contentClass: "whitespace-normal absolute right-0 top-full z-50 flex w-full flex-col bg-white px-4 text-black shadow-md lg:w-[30rem] [&>li]:contents max-h-[calc(100vh-5rem)] overflow-y-auto",
|
|
958
|
-
|
|
957
|
+
label: "Sub Navigation Menu",
|
|
959
958
|
as: "ul",
|
|
960
959
|
button: (f) => {
|
|
961
|
-
|
|
960
|
+
G(f, { icon: Jt });
|
|
962
961
|
},
|
|
963
962
|
children: (f, C) => {
|
|
964
|
-
var p = R(),
|
|
965
|
-
q(
|
|
966
|
-
var
|
|
963
|
+
var p = R(), s = T(p);
|
|
964
|
+
q(s, 17, a, (v) => v.text || v.title, (v, g) => {
|
|
965
|
+
var u = Ta(), h = y(u);
|
|
967
966
|
{
|
|
968
967
|
var c = (_) => {
|
|
969
968
|
var o = Za();
|
|
970
|
-
let
|
|
969
|
+
let S;
|
|
971
970
|
var b = y(o, !0);
|
|
972
971
|
m(o), E(() => {
|
|
973
972
|
var M;
|
|
974
|
-
|
|
973
|
+
S = X(o, S, {
|
|
975
974
|
...r(g).attributes,
|
|
976
975
|
class: `border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-grey-muted ${((M = r(g).attributes) == null ? void 0 : M.class) ?? ""}`,
|
|
977
976
|
href: r(g).href
|
|
@@ -984,27 +983,27 @@ function ve(e, t) {
|
|
|
984
983
|
contentClass: "flex flex-col w-full flex-col bg-white text-black [&>li]:contents",
|
|
985
984
|
as: "ul",
|
|
986
985
|
autoCollapse: !1,
|
|
987
|
-
button: (
|
|
988
|
-
var b = ja(), M = y(b),
|
|
986
|
+
button: (S) => {
|
|
987
|
+
var b = ja(), M = y(b), N = y(M, !0);
|
|
989
988
|
m(M);
|
|
990
|
-
var
|
|
991
|
-
|
|
989
|
+
var L = W(M, 2);
|
|
990
|
+
G(L, { icon: bt }), m(b), E(() => H(N, r(g).title)), x(S, b);
|
|
992
991
|
},
|
|
993
|
-
children: (
|
|
994
|
-
var M = R(),
|
|
995
|
-
q(
|
|
996
|
-
var w = Ha(),
|
|
992
|
+
children: (S, b) => {
|
|
993
|
+
var M = R(), N = T(M);
|
|
994
|
+
q(N, 17, () => r(g).links, rt, (L, A) => {
|
|
995
|
+
var w = Ha(), $ = y(w);
|
|
997
996
|
let F;
|
|
998
|
-
var B = y(
|
|
999
|
-
m(
|
|
997
|
+
var B = y($, !0);
|
|
998
|
+
m($), m(w), E(() => {
|
|
1000
999
|
var z;
|
|
1001
|
-
F = X(
|
|
1002
|
-
...r(
|
|
1003
|
-
class: `border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-grey-muted hover:text-grey-muted-contrast ${((z = r(
|
|
1004
|
-
href: r(
|
|
1005
|
-
}), H(B, r(
|
|
1006
|
-
}), x(
|
|
1007
|
-
}), x(
|
|
1000
|
+
F = X($, F, {
|
|
1001
|
+
...r(A).attributes,
|
|
1002
|
+
class: `border-0 border-b border-solid border-grey/50 p-2 transition-colors hover:bg-grey-muted hover:text-grey-muted-contrast ${((z = r(A).attributes) == null ? void 0 : z.class) ?? ""}`,
|
|
1003
|
+
href: r(A).href
|
|
1004
|
+
}), H(B, r(A).text);
|
|
1005
|
+
}), x(L, w);
|
|
1006
|
+
}), x(S, M);
|
|
1008
1007
|
},
|
|
1009
1008
|
$$slots: { button: !0, default: !0 }
|
|
1010
1009
|
});
|
|
@@ -1013,11 +1012,11 @@ function ve(e, t) {
|
|
|
1013
1012
|
r(g).text ? _(c) : _(i, !1);
|
|
1014
1013
|
});
|
|
1015
1014
|
}
|
|
1016
|
-
m(
|
|
1015
|
+
m(u), x(v, u);
|
|
1017
1016
|
}), x(f, p);
|
|
1018
1017
|
},
|
|
1019
1018
|
$$slots: { button: !0, default: !0 }
|
|
1020
|
-
}), m(
|
|
1019
|
+
}), m(l), x(e, l), tt({
|
|
1021
1020
|
get items() {
|
|
1022
1021
|
return a();
|
|
1023
1022
|
},
|
|
@@ -1030,19 +1029,19 @@ U(ve, { items: {} }, [], [], !0);
|
|
|
1030
1029
|
var Pa = k('<a class="mr-auto flex h-full items-center justify-center px-3 font-bold transition-colors hover:bg-yellow hover:text-yellow-contrast"> </a>'), Ra = k('<span class="mr-auto flex h-full items-center justify-center px-3 font-bold"> </span>'), Ua = k('<nav aria-label="Page Specific"><div class="flex h-full min-w-full overflow-y-visible items-center justify-end [&>li]:contents relative"><!> <ul class="[&>li]:contents h-full flex w-fit !static lg:static"><!></ul></div></nav>');
|
|
1031
1030
|
function fe(e, t) {
|
|
1032
1031
|
Y(t, !0);
|
|
1033
|
-
const [a,
|
|
1034
|
-
let f = V(t, "items", 7), C = V(t, "title", 7), p = V(t, "url", 7),
|
|
1032
|
+
const [a, l] = mt(), d = () => _t(n, "$headerState", a), n = Ht("header-state");
|
|
1033
|
+
let f = V(t, "items", 7), C = V(t, "title", 7), p = V(t, "url", 7), s = ut(void 0), v = ut(void 0), g = ut(void 0), u, h = ut(void 0);
|
|
1035
1034
|
jt(() => {
|
|
1036
1035
|
var w;
|
|
1037
|
-
clearTimeout(
|
|
1036
|
+
clearTimeout(u), ((w = d()) == null ? void 0 : w.mode) === "desktop" && r(s) - r(v) < r(g) && (u = setTimeout(
|
|
1038
1037
|
() => {
|
|
1039
|
-
et(h,
|
|
1038
|
+
et(h, At(isNaN(r(h)) ? r(s) : Math.max(r(s), r(h))));
|
|
1040
1039
|
},
|
|
1041
1040
|
50
|
|
1042
1041
|
));
|
|
1043
1042
|
}), Qe(() => {
|
|
1044
1043
|
var w;
|
|
1045
|
-
((w = d()) == null ? void 0 : w.mode) === "desktop" && r(
|
|
1044
|
+
((w = d()) == null ? void 0 : w.mode) === "desktop" && r(s) - r(v) < r(g) && et(h, At(isNaN(r(h)) ? r(s) : Math.max(r(s), r(h))));
|
|
1046
1045
|
});
|
|
1047
1046
|
var c = Ua();
|
|
1048
1047
|
const i = Pe(() => {
|
|
@@ -1051,17 +1050,17 @@ function fe(e, t) {
|
|
|
1051
1050
|
});
|
|
1052
1051
|
var _ = y(c), o = y(_);
|
|
1053
1052
|
{
|
|
1054
|
-
var
|
|
1055
|
-
var
|
|
1056
|
-
m(
|
|
1057
|
-
|
|
1058
|
-
}), dt(
|
|
1053
|
+
var S = (w) => {
|
|
1054
|
+
var $ = Pa(), F = y($, !0);
|
|
1055
|
+
m($), E(() => {
|
|
1056
|
+
I($, "href", p()), H(F, C());
|
|
1057
|
+
}), dt($, "clientWidth", (B) => et(v, B)), x(w, $);
|
|
1059
1058
|
}, b = (w) => {
|
|
1060
|
-
var
|
|
1059
|
+
var $ = R(), F = T($);
|
|
1061
1060
|
{
|
|
1062
1061
|
var B = (z) => {
|
|
1063
1062
|
var P = Ra(), yt = y(P, !0);
|
|
1064
|
-
m(P), E(() => H(yt, C())), dt(P, "clientWidth", (de) => et(
|
|
1063
|
+
m(P), E(() => H(yt, C())), dt(P, "clientWidth", (de) => et(v, de)), x(z, P);
|
|
1065
1064
|
};
|
|
1066
1065
|
j(
|
|
1067
1066
|
F,
|
|
@@ -1071,16 +1070,16 @@ function fe(e, t) {
|
|
|
1071
1070
|
!0
|
|
1072
1071
|
);
|
|
1073
1072
|
}
|
|
1074
|
-
x(w,
|
|
1073
|
+
x(w, $);
|
|
1075
1074
|
};
|
|
1076
1075
|
j(o, (w) => {
|
|
1077
|
-
C() && p() ? w(
|
|
1076
|
+
C() && p() ? w(S) : w(b, !1);
|
|
1078
1077
|
});
|
|
1079
1078
|
}
|
|
1080
|
-
var M = W(o, 2),
|
|
1079
|
+
var M = W(o, 2), N = y(M);
|
|
1081
1080
|
{
|
|
1082
|
-
var
|
|
1083
|
-
var
|
|
1081
|
+
var L = (w) => {
|
|
1082
|
+
var $ = R(), F = T($);
|
|
1084
1083
|
{
|
|
1085
1084
|
var B = (P) => {
|
|
1086
1085
|
ue(P, {
|
|
@@ -1096,18 +1095,18 @@ function fe(e, t) {
|
|
|
1096
1095
|
});
|
|
1097
1096
|
};
|
|
1098
1097
|
j(F, (P) => {
|
|
1099
|
-
d().mode === "desktop" && (isNaN(r(h)) || r(
|
|
1098
|
+
d().mode === "desktop" && (isNaN(r(h)) || r(s) > r(h)) ? P(B) : P(z, !1);
|
|
1100
1099
|
});
|
|
1101
1100
|
}
|
|
1102
|
-
x(w,
|
|
1101
|
+
x(w, $);
|
|
1103
1102
|
};
|
|
1104
|
-
j(
|
|
1105
|
-
var
|
|
1106
|
-
((
|
|
1103
|
+
j(N, (w) => {
|
|
1104
|
+
var $;
|
|
1105
|
+
(($ = f()) == null ? void 0 : $.length) > 0 && w(L);
|
|
1107
1106
|
});
|
|
1108
1107
|
}
|
|
1109
|
-
m(M), m(_), m(c), E(() => nt(c, r(i))), dt(M, "clientWidth", (w) => et(g, w)), dt(_, "clientWidth", (w) => et(
|
|
1110
|
-
var
|
|
1108
|
+
m(M), m(_), m(c), E(() => nt(c, r(i))), dt(M, "clientWidth", (w) => et(g, w)), dt(_, "clientWidth", (w) => et(s, w)), x(e, c);
|
|
1109
|
+
var A = tt({
|
|
1111
1110
|
get items() {
|
|
1112
1111
|
return f();
|
|
1113
1112
|
},
|
|
@@ -1127,23 +1126,23 @@ function fe(e, t) {
|
|
|
1127
1126
|
p(w), Z();
|
|
1128
1127
|
}
|
|
1129
1128
|
});
|
|
1130
|
-
return
|
|
1129
|
+
return l(), A;
|
|
1131
1130
|
}
|
|
1132
1131
|
U(fe, { items: {}, title: {}, url: {} }, [], [], !0);
|
|
1133
1132
|
const za = 35;
|
|
1134
1133
|
var Wa = k('<header class="relative z-10 w-full font-condensed text-black"><!> <!> <!></header>');
|
|
1135
1134
|
function Ba(e, t) {
|
|
1136
1135
|
Y(t, !0);
|
|
1137
|
-
const [a,
|
|
1138
|
-
let n = V(t, "subNavigation", 7), f = V(t, "pageTitle", 7), C = V(t, "pageURL", 7), p = V(t, "variant", 7),
|
|
1139
|
-
const
|
|
1136
|
+
const [a, l] = mt(), d = () => _t(g, "$headerState", a);
|
|
1137
|
+
let n = V(t, "subNavigation", 7), f = V(t, "pageTitle", 7), C = V(t, "pageURL", 7), p = V(t, "variant", 7), s = ut(void 0);
|
|
1138
|
+
const v = 1024, g = Re({ mode: "mobile", variant: p() });
|
|
1140
1139
|
Ue("header-state", g), jt(() => {
|
|
1141
1140
|
g.set({
|
|
1142
|
-
mode: r(
|
|
1141
|
+
mode: r(s) >= v ? "desktop" : "mobile",
|
|
1143
1142
|
variant: p()
|
|
1144
1143
|
});
|
|
1145
1144
|
});
|
|
1146
|
-
var
|
|
1145
|
+
var u = Wa(), h = y(u);
|
|
1147
1146
|
{
|
|
1148
1147
|
var c = (b) => {
|
|
1149
1148
|
ee(b, {});
|
|
@@ -1174,8 +1173,8 @@ function Ba(e, t) {
|
|
|
1174
1173
|
(((M = n()) == null ? void 0 : M.length) > 0 || f()) && b(o);
|
|
1175
1174
|
});
|
|
1176
1175
|
}
|
|
1177
|
-
m(
|
|
1178
|
-
var
|
|
1176
|
+
m(u), We("innerWidth", (b) => et(s, At(b))), x(e, u);
|
|
1177
|
+
var S = tt({
|
|
1179
1178
|
get subNavigation() {
|
|
1180
1179
|
return n();
|
|
1181
1180
|
},
|
|
@@ -1201,7 +1200,7 @@ function Ba(e, t) {
|
|
|
1201
1200
|
p(b), Z();
|
|
1202
1201
|
}
|
|
1203
1202
|
});
|
|
1204
|
-
return
|
|
1203
|
+
return l(), S;
|
|
1205
1204
|
}
|
|
1206
1205
|
customElements.define("uofg-header", U(
|
|
1207
1206
|
Ba,
|
|
@@ -1241,29 +1240,29 @@ customElements.define("uofg-header", U(
|
|
|
1241
1240
|
super.disconnectedCallback(), this.observer.disconnect();
|
|
1242
1241
|
}
|
|
1243
1242
|
updateSubNavigation() {
|
|
1244
|
-
const a = (
|
|
1243
|
+
const a = (l) => {
|
|
1245
1244
|
const d = {};
|
|
1246
|
-
return
|
|
1247
|
-
href:
|
|
1248
|
-
text:
|
|
1245
|
+
return l.getAttributeNames().filter((n) => n !== "href").forEach((n) => d[n] = l.getAttribute(n)), {
|
|
1246
|
+
href: l.getAttribute("href"),
|
|
1247
|
+
text: l.textContent,
|
|
1249
1248
|
attributes: d
|
|
1250
1249
|
};
|
|
1251
1250
|
};
|
|
1252
|
-
this.subNavigation = Array.from(this.children).filter((
|
|
1253
|
-
switch (
|
|
1251
|
+
this.subNavigation = Array.from(this.children).filter((l) => l.tagName === "A" || l.tagName === "UL").map((l) => {
|
|
1252
|
+
switch (l.tagName) {
|
|
1254
1253
|
case "A":
|
|
1255
|
-
return a(
|
|
1254
|
+
return a(l);
|
|
1256
1255
|
case "UL":
|
|
1257
1256
|
const d = {
|
|
1258
|
-
title:
|
|
1259
|
-
links: Array.from(
|
|
1257
|
+
title: l.getAttribute("data-title"),
|
|
1258
|
+
links: Array.from(l.querySelectorAll("a")).map(a)
|
|
1260
1259
|
};
|
|
1261
1260
|
return d.wrapContent = d.links.reduce(
|
|
1262
1261
|
(n, f) => (f.text.length > za && (n = !0), n),
|
|
1263
1262
|
!1
|
|
1264
1263
|
), d;
|
|
1265
1264
|
}
|
|
1266
|
-
}).filter((
|
|
1265
|
+
}).filter((l) => !!l);
|
|
1267
1266
|
}
|
|
1268
1267
|
}
|
|
1269
1268
|
));
|
package/package.json
CHANGED