@uoguelph/web-components 1.2.0-rc.6 → 1.2.0-rc.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +0 -63
- package/dist/uofg-web-components/index-CSn7dBx6.js +981 -0
- package/dist/uofg-web-components/uofg-alert.esm.js +154 -0
- package/dist/uofg-web-components/uofg-footer.esm.js +403 -0
- package/dist/uofg-web-components/uofg-header.esm.js +2306 -0
- package/dist/uofg-web-components/uofg-modal.esm.js +329 -0
- package/dist/uofg-web-components/uofg-web-components.css +1 -1
- package/dist/uofg-web-components/uofg-web-components.esm.js +8 -1
- package/package.json +21 -35
- package/dist/cjs/app-globals-3a1e7e63.js +0 -5
- package/dist/cjs/index-06b58d35.js +0 -32
- package/dist/cjs/index-cdb046b4.js +0 -2092
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader.cjs.js +0 -15
- package/dist/cjs/uofg-alert.cjs.entry.js +0 -21
- package/dist/cjs/uofg-back-to-top_5.cjs.entry.js +0 -1387
- package/dist/cjs/uofg-modal.cjs.entry.js +0 -172
- package/dist/cjs/uofg-web-components.cjs.js +0 -25
- package/dist/cjs/utils-3d4b7e2e.js +0 -16
- package/dist/collection/collection-manifest.json +0 -18
- package/dist/collection/components/uofg-alert/uofg-alert.css +0 -1
- package/dist/collection/components/uofg-alert/uofg-alert.js +0 -20
- package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.css +0 -1
- package/dist/collection/components/uofg-back-to-top/uofg-back-to-top.js +0 -71
- package/dist/collection/components/uofg-card/uofg-card.css +0 -1
- package/dist/collection/components/uofg-card/uofg-card.js +0 -45
- package/dist/collection/components/uofg-footer/uofg-footer.css +0 -1
- package/dist/collection/components/uofg-footer/uofg-footer.js +0 -153
- package/dist/collection/components/uofg-header/uofg-header.css +0 -1
- package/dist/collection/components/uofg-header/uofg-header.js +0 -266
- package/dist/collection/components/uofg-menu/uofg-menu.js +0 -438
- package/dist/collection/components/uofg-modal/uofg-modal.css +0 -1
- package/dist/collection/components/uofg-modal/uofg-modal.js +0 -417
- package/dist/collection/index.js +0 -1
- package/dist/collection/utils/font-awesome-icon.js +0 -7
- package/dist/collection/utils/utils.js +0 -13
- package/dist/components/font-awesome-icon.js +0 -10
- package/dist/components/index.d.ts +0 -50
- package/dist/components/index.js +0 -8
- package/dist/components/index2.js +0 -18
- package/dist/components/uofg-alert.d.ts +0 -11
- package/dist/components/uofg-alert.js +0 -36
- package/dist/components/uofg-back-to-top.d.ts +0 -11
- package/dist/components/uofg-back-to-top.js +0 -52
- package/dist/components/uofg-card.d.ts +0 -11
- package/dist/components/uofg-card.js +0 -40
- package/dist/components/uofg-footer.d.ts +0 -11
- package/dist/components/uofg-footer.js +0 -751
- package/dist/components/uofg-header.d.ts +0 -11
- package/dist/components/uofg-header.js +0 -398
- package/dist/components/uofg-menu.d.ts +0 -11
- package/dist/components/uofg-menu.js +0 -6
- package/dist/components/uofg-menu2.js +0 -268
- package/dist/components/uofg-modal.d.ts +0 -11
- package/dist/components/uofg-modal.js +0 -201
- package/dist/components/utils.js +0 -12
- package/dist/esm/app-globals-0f993ce5.js +0 -3
- package/dist/esm/index-0b0002d2.js +0 -2062
- package/dist/esm/index-e685921a.js +0 -27
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -11
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/uofg-alert.entry.js +0 -17
- package/dist/esm/uofg-back-to-top_5.entry.js +0 -1379
- package/dist/esm/uofg-modal.entry.js +0 -168
- package/dist/esm/uofg-web-components.js +0 -20
- package/dist/esm/utils-379bb71a.js +0 -12
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/types/components/uofg-alert/uofg-alert.d.ts +0 -3
- package/dist/types/components/uofg-back-to-top/uofg-back-to-top.d.ts +0 -10
- package/dist/types/components/uofg-card/uofg-card.d.ts +0 -7
- package/dist/types/components/uofg-footer/uofg-footer.d.ts +0 -8
- package/dist/types/components/uofg-header/uofg-header.d.ts +0 -37
- package/dist/types/components/uofg-menu/uofg-menu.d.ts +0 -68
- package/dist/types/components/uofg-modal/uofg-modal.d.ts +0 -77
- package/dist/types/components.d.ts +0 -303
- package/dist/types/index.d.ts +0 -1
- package/dist/types/stencil-public-runtime.d.ts +0 -1681
- package/dist/types/utils/font-awesome-icon.d.ts +0 -5
- package/dist/types/utils/utils.d.ts +0 -4
- package/dist/uofg-web-components/index.esm.js +0 -0
- package/dist/uofg-web-components/p-6fa0f8f6.js +0 -1
- package/dist/uofg-web-components/p-7569d8f2.entry.js +0 -1
- package/dist/uofg-web-components/p-976982f6.entry.js +0 -1
- package/dist/uofg-web-components/p-e1255160.js +0 -1
- package/dist/uofg-web-components/p-ee27db22.js +0 -2
- package/dist/uofg-web-components/p-fde6370b.entry.js +0 -1
- package/dist/uofg-web-components/p-fec87f9d.js +0 -1
- package/loader/cdn.js +0 -3
- package/loader/index.cjs.js +0 -3
- package/loader/index.d.ts +0 -21
- package/loader/index.es2017.js +0 -3
- package/loader/index.js +0 -4
- package/loader/package.json +0 -11
- /package/dist/{collection/components/uofg-header/decoration.svg → uofg-web-components/decorative.svg} +0 -0
- /package/dist/{collection/components/uofg-footer → uofg-web-components}/improve-life.svg +0 -0
- /package/dist/{collection/components/uofg-header/logo-reduced.svg → uofg-web-components/logo-small.svg} +0 -0
- /package/dist/{collection/components/uofg-header/logo-full.svg → uofg-web-components/logo.svg} +0 -0
|
@@ -0,0 +1,2306 @@
|
|
|
1
|
+
import { c as Me, S as Re, i as qe, s as te, r as R, b as ze, e as g, g as y, h as _, j as k, k as h, N as ee, O as De, u as Be, l as We, n as Ie, t as p, o as m, x as E, p as w, P as Qe, Q as B, C as F, R as G, T as se, U as Oe, V as ie, a as Ye, v as C, W as le, X as Ke, Y as Ve, Z as Xe, _ as ne, $ as Pe, F as z, d as j, m as A, q as U, y as H, B as x, a0 as Ge, z as T, A as Y, a1 as K, a2 as q, a3 as V, a4 as X } from "./index-CSn7dBx6.js";
|
|
2
|
+
const Ze = typeof window < "u" ? window : typeof globalThis < "u" ? globalThis : (
|
|
3
|
+
// @ts-ignore Node typings have this
|
|
4
|
+
global
|
|
5
|
+
);
|
|
6
|
+
function D(i, e) {
|
|
7
|
+
const n = {}, t = {}, l = { $$scope: 1 };
|
|
8
|
+
let s = i.length;
|
|
9
|
+
for (; s--; ) {
|
|
10
|
+
const o = i[s], a = e[s];
|
|
11
|
+
if (a) {
|
|
12
|
+
for (const r in o)
|
|
13
|
+
r in a || (t[r] = 1);
|
|
14
|
+
for (const r in a)
|
|
15
|
+
l[r] || (n[r] = a[r], l[r] = 1);
|
|
16
|
+
i[s] = a;
|
|
17
|
+
} else
|
|
18
|
+
for (const r in o)
|
|
19
|
+
l[r] = 1;
|
|
20
|
+
}
|
|
21
|
+
for (const o in t)
|
|
22
|
+
o in n || (n[o] = void 0);
|
|
23
|
+
return n;
|
|
24
|
+
}
|
|
25
|
+
function ae(i) {
|
|
26
|
+
return i < 0.5 ? 4 * i * i * i : 0.5 * Math.pow(2 * i - 2, 3) + 1;
|
|
27
|
+
}
|
|
28
|
+
function Je(i) {
|
|
29
|
+
const e = i - 1;
|
|
30
|
+
return e * e * e + 1;
|
|
31
|
+
}
|
|
32
|
+
function et(i, { delay: e = 0, duration: n = 400, easing: t = Je, axis: l = "y" } = {}) {
|
|
33
|
+
const s = getComputedStyle(i), o = +s.opacity, a = l === "y" ? "height" : "width", r = parseFloat(s[a]), f = l === "y" ? ["top", "bottom"] : ["left", "right"], u = f.map(
|
|
34
|
+
(S) => `${S[0].toUpperCase()}${S.slice(1)}`
|
|
35
|
+
), c = parseFloat(s[`padding${u[0]}`]), d = parseFloat(s[`padding${u[1]}`]), N = parseFloat(s[`margin${u[0]}`]), b = parseFloat(s[`margin${u[1]}`]), v = parseFloat(
|
|
36
|
+
s[`border${u[0]}Width`]
|
|
37
|
+
), Q = parseFloat(
|
|
38
|
+
s[`border${u[1]}Width`]
|
|
39
|
+
);
|
|
40
|
+
return {
|
|
41
|
+
delay: e,
|
|
42
|
+
duration: n,
|
|
43
|
+
easing: t,
|
|
44
|
+
css: (S) => `overflow: hidden;opacity: ${Math.min(S * 20, 1) * o};${a}: ${S * r}px;padding-${f[0]}: ${S * c}px;padding-${f[1]}: ${S * d}px;margin-${f[0]}: ${S * N}px;margin-${f[1]}: ${S * b}px;border-${f[0]}-width: ${S * v}px;border-${f[1]}-width: ${S * Q}px;`
|
|
45
|
+
};
|
|
46
|
+
}
|
|
47
|
+
const tt = (i) => {
|
|
48
|
+
const e = function(t) {
|
|
49
|
+
i.contains(t.relatedTarget) || i.dispatchEvent(new CustomEvent("focusoutside", { bubbles: !1 }));
|
|
50
|
+
}, n = function(t) {
|
|
51
|
+
i.contains(t.relatedTarget) || i.dispatchEvent(new CustomEvent("focusinside", { bubbles: !1 }));
|
|
52
|
+
};
|
|
53
|
+
return i.addEventListener("focusin", n), i.addEventListener("focusout", e), {
|
|
54
|
+
destroy() {
|
|
55
|
+
i.removeEventListener("focusin", n), i.removeEventListener("focusout", e);
|
|
56
|
+
}
|
|
57
|
+
};
|
|
58
|
+
}, lt = (i) => ({}), fe = (i) => ({});
|
|
59
|
+
function ue(i) {
|
|
60
|
+
let e = (
|
|
61
|
+
/*as*/
|
|
62
|
+
i[2]
|
|
63
|
+
), n, t = !1, l, s = (
|
|
64
|
+
/*as*/
|
|
65
|
+
i[2] && J(i)
|
|
66
|
+
);
|
|
67
|
+
return {
|
|
68
|
+
c() {
|
|
69
|
+
s && s.c(), n = B();
|
|
70
|
+
},
|
|
71
|
+
m(o, a) {
|
|
72
|
+
s && s.m(o, a), k(o, n, a), l = !0;
|
|
73
|
+
},
|
|
74
|
+
p(o, a) {
|
|
75
|
+
/*as*/
|
|
76
|
+
o[2] ? e ? te(
|
|
77
|
+
e,
|
|
78
|
+
/*as*/
|
|
79
|
+
o[2]
|
|
80
|
+
) ? (s.d(1), s = J(o), e = /*as*/
|
|
81
|
+
o[2], s.c(), t && (t = !1, p(s)), s.m(n.parentNode, n)) : (t && (t = !1, p(s)), s.p(o, a)) : (s = J(o), e = /*as*/
|
|
82
|
+
o[2], s.c(), p(s), s.m(n.parentNode, n)) : e && (t = !0, F(), m(s, 1, 1, () => {
|
|
83
|
+
s = null, e = /*as*/
|
|
84
|
+
o[2], t = !1;
|
|
85
|
+
}), E());
|
|
86
|
+
},
|
|
87
|
+
i(o) {
|
|
88
|
+
l || (p(s, o), l = !0);
|
|
89
|
+
},
|
|
90
|
+
o(o) {
|
|
91
|
+
m(s, o), l = !1;
|
|
92
|
+
},
|
|
93
|
+
d(o) {
|
|
94
|
+
o && w(n), s && s.d(o);
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
function J(i) {
|
|
99
|
+
let e, n, t;
|
|
100
|
+
const l = (
|
|
101
|
+
/*#slots*/
|
|
102
|
+
i[8].default
|
|
103
|
+
), s = ze(
|
|
104
|
+
l,
|
|
105
|
+
i,
|
|
106
|
+
/*$$scope*/
|
|
107
|
+
i[7],
|
|
108
|
+
null
|
|
109
|
+
);
|
|
110
|
+
let o = [{ class: (
|
|
111
|
+
/*contentClass*/
|
|
112
|
+
i[5]
|
|
113
|
+
) }], a = {};
|
|
114
|
+
for (let r = 0; r < o.length; r += 1)
|
|
115
|
+
a = G(a, o[r]);
|
|
116
|
+
return {
|
|
117
|
+
c() {
|
|
118
|
+
e = g(
|
|
119
|
+
/*as*/
|
|
120
|
+
i[2]
|
|
121
|
+
), s && s.c(), se(
|
|
122
|
+
/*as*/
|
|
123
|
+
i[2]
|
|
124
|
+
)(e, a);
|
|
125
|
+
},
|
|
126
|
+
m(r, f) {
|
|
127
|
+
k(r, e, f), s && s.m(e, null), t = !0;
|
|
128
|
+
},
|
|
129
|
+
p(r, f) {
|
|
130
|
+
s && s.p && (!t || f & /*$$scope*/
|
|
131
|
+
128) && Be(
|
|
132
|
+
s,
|
|
133
|
+
l,
|
|
134
|
+
r,
|
|
135
|
+
/*$$scope*/
|
|
136
|
+
r[7],
|
|
137
|
+
t ? Ie(
|
|
138
|
+
l,
|
|
139
|
+
/*$$scope*/
|
|
140
|
+
r[7],
|
|
141
|
+
f,
|
|
142
|
+
null
|
|
143
|
+
) : We(
|
|
144
|
+
/*$$scope*/
|
|
145
|
+
r[7]
|
|
146
|
+
),
|
|
147
|
+
null
|
|
148
|
+
), se(
|
|
149
|
+
/*as*/
|
|
150
|
+
r[2]
|
|
151
|
+
)(e, a = D(o, [
|
|
152
|
+
(!t || f & /*contentClass*/
|
|
153
|
+
32) && { class: (
|
|
154
|
+
/*contentClass*/
|
|
155
|
+
r[5]
|
|
156
|
+
) }
|
|
157
|
+
]));
|
|
158
|
+
},
|
|
159
|
+
i(r) {
|
|
160
|
+
t || (p(s, r), r && Oe(() => {
|
|
161
|
+
t && (n || (n = ie(
|
|
162
|
+
e,
|
|
163
|
+
/*transition*/
|
|
164
|
+
i[3],
|
|
165
|
+
{ duration: 200, easing: ae },
|
|
166
|
+
!0
|
|
167
|
+
)), n.run(1));
|
|
168
|
+
}), t = !0);
|
|
169
|
+
},
|
|
170
|
+
o(r) {
|
|
171
|
+
m(s, r), r && (n || (n = ie(
|
|
172
|
+
e,
|
|
173
|
+
/*transition*/
|
|
174
|
+
i[3],
|
|
175
|
+
{ duration: 200, easing: ae },
|
|
176
|
+
!1
|
|
177
|
+
)), n.run(0)), t = !1;
|
|
178
|
+
},
|
|
179
|
+
d(r) {
|
|
180
|
+
r && w(e), s && s.d(r), r && n && n.end();
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
}
|
|
184
|
+
function nt(i) {
|
|
185
|
+
let e, n, t, l, s, o;
|
|
186
|
+
const a = (
|
|
187
|
+
/*#slots*/
|
|
188
|
+
i[8].button
|
|
189
|
+
), r = ze(
|
|
190
|
+
a,
|
|
191
|
+
i,
|
|
192
|
+
/*$$scope*/
|
|
193
|
+
i[7],
|
|
194
|
+
fe
|
|
195
|
+
);
|
|
196
|
+
let f = (
|
|
197
|
+
/*open*/
|
|
198
|
+
i[0] && ue(i)
|
|
199
|
+
);
|
|
200
|
+
return {
|
|
201
|
+
c() {
|
|
202
|
+
e = g("div"), n = g("button"), r && r.c(), t = y(), f && f.c(), _(
|
|
203
|
+
n,
|
|
204
|
+
"class",
|
|
205
|
+
/*buttonClass*/
|
|
206
|
+
i[4]
|
|
207
|
+
), _(n, "aria-haspopup", "true"), _(
|
|
208
|
+
n,
|
|
209
|
+
"aria-expanded",
|
|
210
|
+
/*open*/
|
|
211
|
+
i[0]
|
|
212
|
+
), _(
|
|
213
|
+
e,
|
|
214
|
+
"class",
|
|
215
|
+
/*className*/
|
|
216
|
+
i[1]
|
|
217
|
+
), _(e, "tabindex", "-1");
|
|
218
|
+
},
|
|
219
|
+
m(u, c) {
|
|
220
|
+
k(u, e, c), h(e, n), r && r.m(n, null), h(e, t), f && f.m(e, null), l = !0, s || (o = [
|
|
221
|
+
ee(
|
|
222
|
+
n,
|
|
223
|
+
"click",
|
|
224
|
+
/*click_handler*/
|
|
225
|
+
i[9]
|
|
226
|
+
),
|
|
227
|
+
ee(
|
|
228
|
+
e,
|
|
229
|
+
"focusoutside",
|
|
230
|
+
/*focusoutside_handler*/
|
|
231
|
+
i[10]
|
|
232
|
+
),
|
|
233
|
+
De(tt.call(null, e))
|
|
234
|
+
], s = !0);
|
|
235
|
+
},
|
|
236
|
+
p(u, [c]) {
|
|
237
|
+
r && r.p && (!l || c & /*$$scope*/
|
|
238
|
+
128) && Be(
|
|
239
|
+
r,
|
|
240
|
+
a,
|
|
241
|
+
u,
|
|
242
|
+
/*$$scope*/
|
|
243
|
+
u[7],
|
|
244
|
+
l ? Ie(
|
|
245
|
+
a,
|
|
246
|
+
/*$$scope*/
|
|
247
|
+
u[7],
|
|
248
|
+
c,
|
|
249
|
+
lt
|
|
250
|
+
) : We(
|
|
251
|
+
/*$$scope*/
|
|
252
|
+
u[7]
|
|
253
|
+
),
|
|
254
|
+
fe
|
|
255
|
+
), (!l || c & /*buttonClass*/
|
|
256
|
+
16) && _(
|
|
257
|
+
n,
|
|
258
|
+
"class",
|
|
259
|
+
/*buttonClass*/
|
|
260
|
+
u[4]
|
|
261
|
+
), (!l || c & /*open*/
|
|
262
|
+
1) && _(
|
|
263
|
+
n,
|
|
264
|
+
"aria-expanded",
|
|
265
|
+
/*open*/
|
|
266
|
+
u[0]
|
|
267
|
+
), /*open*/
|
|
268
|
+
u[0] ? f ? (f.p(u, c), c & /*open*/
|
|
269
|
+
1 && p(f, 1)) : (f = ue(u), f.c(), p(f, 1), f.m(e, null)) : f && (F(), m(f, 1, 1, () => {
|
|
270
|
+
f = null;
|
|
271
|
+
}), E()), (!l || c & /*className*/
|
|
272
|
+
2) && _(
|
|
273
|
+
e,
|
|
274
|
+
"class",
|
|
275
|
+
/*className*/
|
|
276
|
+
u[1]
|
|
277
|
+
);
|
|
278
|
+
},
|
|
279
|
+
i(u) {
|
|
280
|
+
l || (p(r, u), p(f), l = !0);
|
|
281
|
+
},
|
|
282
|
+
o(u) {
|
|
283
|
+
m(r, u), m(f), l = !1;
|
|
284
|
+
},
|
|
285
|
+
d(u) {
|
|
286
|
+
u && w(e), r && r.d(u), f && f.d(), s = !1, Qe(o);
|
|
287
|
+
}
|
|
288
|
+
};
|
|
289
|
+
}
|
|
290
|
+
function rt(i, e, n) {
|
|
291
|
+
let { $$slots: t = {}, $$scope: l } = e, { class: s } = e, { open: o = !1 } = e, { as: a = "div" } = e, { transition: r = et } = e, { buttonClass: f = "" } = e, { contentClass: u = "" } = e, { autoCollapse: c = !0 } = e;
|
|
292
|
+
const d = (b) => {
|
|
293
|
+
n(0, o = !o), b.target.focus();
|
|
294
|
+
}, N = () => {
|
|
295
|
+
c && n(0, o = !1);
|
|
296
|
+
};
|
|
297
|
+
return i.$$set = (b) => {
|
|
298
|
+
"class" in b && n(1, s = b.class), "open" in b && n(0, o = b.open), "as" in b && n(2, a = b.as), "transition" in b && n(3, r = b.transition), "buttonClass" in b && n(4, f = b.buttonClass), "contentClass" in b && n(5, u = b.contentClass), "autoCollapse" in b && n(6, c = b.autoCollapse), "$$scope" in b && n(7, l = b.$$scope);
|
|
299
|
+
}, [
|
|
300
|
+
o,
|
|
301
|
+
s,
|
|
302
|
+
a,
|
|
303
|
+
r,
|
|
304
|
+
f,
|
|
305
|
+
u,
|
|
306
|
+
c,
|
|
307
|
+
l,
|
|
308
|
+
t,
|
|
309
|
+
d,
|
|
310
|
+
N
|
|
311
|
+
];
|
|
312
|
+
}
|
|
313
|
+
class P extends Re {
|
|
314
|
+
constructor(e) {
|
|
315
|
+
super(), qe(this, e, rt, nt, te, {
|
|
316
|
+
class: 1,
|
|
317
|
+
open: 0,
|
|
318
|
+
as: 2,
|
|
319
|
+
transition: 3,
|
|
320
|
+
buttonClass: 4,
|
|
321
|
+
contentClass: 5,
|
|
322
|
+
autoCollapse: 6
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
get class() {
|
|
326
|
+
return this.$$.ctx[1];
|
|
327
|
+
}
|
|
328
|
+
set class(e) {
|
|
329
|
+
this.$$set({ class: e }), R();
|
|
330
|
+
}
|
|
331
|
+
get open() {
|
|
332
|
+
return this.$$.ctx[0];
|
|
333
|
+
}
|
|
334
|
+
set open(e) {
|
|
335
|
+
this.$$set({ open: e }), R();
|
|
336
|
+
}
|
|
337
|
+
get as() {
|
|
338
|
+
return this.$$.ctx[2];
|
|
339
|
+
}
|
|
340
|
+
set as(e) {
|
|
341
|
+
this.$$set({ as: e }), R();
|
|
342
|
+
}
|
|
343
|
+
get transition() {
|
|
344
|
+
return this.$$.ctx[3];
|
|
345
|
+
}
|
|
346
|
+
set transition(e) {
|
|
347
|
+
this.$$set({ transition: e }), R();
|
|
348
|
+
}
|
|
349
|
+
get buttonClass() {
|
|
350
|
+
return this.$$.ctx[4];
|
|
351
|
+
}
|
|
352
|
+
set buttonClass(e) {
|
|
353
|
+
this.$$set({ buttonClass: e }), R();
|
|
354
|
+
}
|
|
355
|
+
get contentClass() {
|
|
356
|
+
return this.$$.ctx[5];
|
|
357
|
+
}
|
|
358
|
+
set contentClass(e) {
|
|
359
|
+
this.$$set({ contentClass: e }), R();
|
|
360
|
+
}
|
|
361
|
+
get autoCollapse() {
|
|
362
|
+
return this.$$.ctx[6];
|
|
363
|
+
}
|
|
364
|
+
set autoCollapse(e) {
|
|
365
|
+
this.$$set({ autoCollapse: e }), R();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
Me(P, { class: {}, open: { type: "Boolean" }, as: {}, transition: {}, buttonClass: {}, contentClass: {}, autoCollapse: { type: "Boolean" } }, ["button", "default"], [], !0);
|
|
369
|
+
const { window: He } = Ze;
|
|
370
|
+
function ce(i, e, n) {
|
|
371
|
+
const t = i.slice();
|
|
372
|
+
return t[13] = e[n], t;
|
|
373
|
+
}
|
|
374
|
+
function _e(i, e, n) {
|
|
375
|
+
const t = i.slice();
|
|
376
|
+
return t[16] = e[n], t;
|
|
377
|
+
}
|
|
378
|
+
function he(i, e, n) {
|
|
379
|
+
const t = i.slice();
|
|
380
|
+
return t[13] = e[n], t;
|
|
381
|
+
}
|
|
382
|
+
function ge(i, e, n) {
|
|
383
|
+
const t = i.slice();
|
|
384
|
+
return t[16] = e[n], t;
|
|
385
|
+
}
|
|
386
|
+
function pe(i, e, n) {
|
|
387
|
+
const t = i.slice();
|
|
388
|
+
return t[13] = e[n], t;
|
|
389
|
+
}
|
|
390
|
+
function be(i, e, n) {
|
|
391
|
+
const t = i.slice();
|
|
392
|
+
return t[16] = e[n], t;
|
|
393
|
+
}
|
|
394
|
+
function de(i, e, n) {
|
|
395
|
+
const t = i.slice();
|
|
396
|
+
return t[16] = e[n], t;
|
|
397
|
+
}
|
|
398
|
+
function me(i, e, n) {
|
|
399
|
+
const t = i.slice();
|
|
400
|
+
return t[13] = e[n], t;
|
|
401
|
+
}
|
|
402
|
+
function ke(i, e, n) {
|
|
403
|
+
const t = i.slice();
|
|
404
|
+
return t[13] = e[n], t;
|
|
405
|
+
}
|
|
406
|
+
function we(i, e, n) {
|
|
407
|
+
const t = i.slice();
|
|
408
|
+
return t[16] = e[n], t;
|
|
409
|
+
}
|
|
410
|
+
function ve(i) {
|
|
411
|
+
let e, n, t = [], l = /* @__PURE__ */ new Map(), s, o = C([
|
|
412
|
+
.../*topLinks*/
|
|
413
|
+
i[6],
|
|
414
|
+
/*account*/
|
|
415
|
+
i[9]
|
|
416
|
+
]);
|
|
417
|
+
const a = (r) => (
|
|
418
|
+
/*item*/
|
|
419
|
+
r[13].text || /*item*/
|
|
420
|
+
r[13].title
|
|
421
|
+
);
|
|
422
|
+
for (let r = 0; r < o.length; r += 1) {
|
|
423
|
+
let f = ke(i, o, r), u = a(f);
|
|
424
|
+
l.set(u, t[r] = ye(u, f));
|
|
425
|
+
}
|
|
426
|
+
return {
|
|
427
|
+
c() {
|
|
428
|
+
e = g("nav"), n = g("ul");
|
|
429
|
+
for (let r = 0; r < t.length; r += 1)
|
|
430
|
+
t[r].c();
|
|
431
|
+
_(n, "class", "flex h-full items-center justify-end [&>li]:contents"), _(e, "class", "flex h-16 justify-end bg-white px-[calc((100%-1320px)/2)] text-3xl"), _(e, "aria-label", "Secondary");
|
|
432
|
+
},
|
|
433
|
+
m(r, f) {
|
|
434
|
+
k(r, e, f), h(e, n);
|
|
435
|
+
for (let u = 0; u < t.length; u += 1)
|
|
436
|
+
t[u] && t[u].m(n, null);
|
|
437
|
+
s = !0;
|
|
438
|
+
},
|
|
439
|
+
p(r, f) {
|
|
440
|
+
f[0] & /*topLinks, account*/
|
|
441
|
+
576 && (o = C([
|
|
442
|
+
.../*topLinks*/
|
|
443
|
+
r[6],
|
|
444
|
+
/*account*/
|
|
445
|
+
r[9]
|
|
446
|
+
]), F(), t = le(t, f, a, 1, r, o, l, n, ne, ye, null, ke), E());
|
|
447
|
+
},
|
|
448
|
+
i(r) {
|
|
449
|
+
if (!s) {
|
|
450
|
+
for (let f = 0; f < o.length; f += 1)
|
|
451
|
+
p(t[f]);
|
|
452
|
+
s = !0;
|
|
453
|
+
}
|
|
454
|
+
},
|
|
455
|
+
o(r) {
|
|
456
|
+
for (let f = 0; f < t.length; f += 1)
|
|
457
|
+
m(t[f]);
|
|
458
|
+
s = !1;
|
|
459
|
+
},
|
|
460
|
+
d(r) {
|
|
461
|
+
r && w(e);
|
|
462
|
+
for (let f = 0; f < t.length; f += 1)
|
|
463
|
+
t[f].d();
|
|
464
|
+
}
|
|
465
|
+
};
|
|
466
|
+
}
|
|
467
|
+
function ot(i) {
|
|
468
|
+
let e, n = (
|
|
469
|
+
/*item*/
|
|
470
|
+
i[13].text.toUpperCase() + ""
|
|
471
|
+
), t;
|
|
472
|
+
return {
|
|
473
|
+
c() {
|
|
474
|
+
e = g("a"), t = T(n), _(e, "class", "flex h-full items-center justify-center gap-2 px-4 transition-colors hover:bg-uofg-grey"), _(
|
|
475
|
+
e,
|
|
476
|
+
"href",
|
|
477
|
+
/*item*/
|
|
478
|
+
i[13].href
|
|
479
|
+
), K(
|
|
480
|
+
e,
|
|
481
|
+
"bg-uofg-yellow",
|
|
482
|
+
/*item*/
|
|
483
|
+
i[13].highlight
|
|
484
|
+
);
|
|
485
|
+
},
|
|
486
|
+
m(l, s) {
|
|
487
|
+
k(l, e, s), h(e, t);
|
|
488
|
+
},
|
|
489
|
+
p: x,
|
|
490
|
+
i: x,
|
|
491
|
+
o: x,
|
|
492
|
+
d(l) {
|
|
493
|
+
l && w(e);
|
|
494
|
+
}
|
|
495
|
+
};
|
|
496
|
+
}
|
|
497
|
+
function st(i) {
|
|
498
|
+
let e, n;
|
|
499
|
+
return e = new P({
|
|
500
|
+
props: {
|
|
501
|
+
class: "relative h-full",
|
|
502
|
+
buttonClass: `flex h-full items-center justify-center gap-2 px-4 transition-colors hover:bg-uofg-grey aria-expanded:bg-uofg-grey ${/*item*/
|
|
503
|
+
i[13].icon ? "" : "[&_svg]:aria-expanded:rotate-180"}`,
|
|
504
|
+
contentClass: "absolute right-0 top-full z-50 flex min-w-[20rem] flex-col bg-uofg-grey [&>li]:contents",
|
|
505
|
+
as: "ul",
|
|
506
|
+
$$slots: {
|
|
507
|
+
button: [ut],
|
|
508
|
+
default: [it]
|
|
509
|
+
},
|
|
510
|
+
$$scope: { ctx: i }
|
|
511
|
+
}
|
|
512
|
+
}), {
|
|
513
|
+
c() {
|
|
514
|
+
j(e.$$.fragment);
|
|
515
|
+
},
|
|
516
|
+
m(t, l) {
|
|
517
|
+
A(e, t, l), n = !0;
|
|
518
|
+
},
|
|
519
|
+
p(t, l) {
|
|
520
|
+
const s = {};
|
|
521
|
+
l[1] & /*$$scope*/
|
|
522
|
+
16 && (s.$$scope = { dirty: l, ctx: t }), e.$set(s);
|
|
523
|
+
},
|
|
524
|
+
i(t) {
|
|
525
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
526
|
+
},
|
|
527
|
+
o(t) {
|
|
528
|
+
m(e.$$.fragment, t), n = !1;
|
|
529
|
+
},
|
|
530
|
+
d(t) {
|
|
531
|
+
U(e, t);
|
|
532
|
+
}
|
|
533
|
+
};
|
|
534
|
+
}
|
|
535
|
+
function $e(i) {
|
|
536
|
+
let e, n, t = (
|
|
537
|
+
/*link*/
|
|
538
|
+
i[16].text + ""
|
|
539
|
+
), l, s, o = [
|
|
540
|
+
{
|
|
541
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-yellow"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
href: (
|
|
545
|
+
/*link*/
|
|
546
|
+
i[16].href
|
|
547
|
+
)
|
|
548
|
+
},
|
|
549
|
+
/*link*/
|
|
550
|
+
i[16].attributes
|
|
551
|
+
], a = {};
|
|
552
|
+
for (let r = 0; r < o.length; r += 1)
|
|
553
|
+
a = G(a, o[r]);
|
|
554
|
+
return {
|
|
555
|
+
c() {
|
|
556
|
+
e = g("li"), n = g("a"), l = T(t), s = y(), q(n, a);
|
|
557
|
+
},
|
|
558
|
+
m(r, f) {
|
|
559
|
+
k(r, e, f), h(e, n), h(n, l), h(e, s);
|
|
560
|
+
},
|
|
561
|
+
p: x,
|
|
562
|
+
d(r) {
|
|
563
|
+
r && w(e);
|
|
564
|
+
}
|
|
565
|
+
};
|
|
566
|
+
}
|
|
567
|
+
function it(i) {
|
|
568
|
+
let e, n = C(
|
|
569
|
+
/*item*/
|
|
570
|
+
i[13].links
|
|
571
|
+
), t = [];
|
|
572
|
+
for (let l = 0; l < n.length; l += 1)
|
|
573
|
+
t[l] = $e(we(i, n, l));
|
|
574
|
+
return {
|
|
575
|
+
c() {
|
|
576
|
+
for (let l = 0; l < t.length; l += 1)
|
|
577
|
+
t[l].c();
|
|
578
|
+
e = B();
|
|
579
|
+
},
|
|
580
|
+
m(l, s) {
|
|
581
|
+
for (let o = 0; o < t.length; o += 1)
|
|
582
|
+
t[o] && t[o].m(l, s);
|
|
583
|
+
k(l, e, s);
|
|
584
|
+
},
|
|
585
|
+
p(l, s) {
|
|
586
|
+
if (s[0] & /*topLinks, account*/
|
|
587
|
+
576) {
|
|
588
|
+
n = C(
|
|
589
|
+
/*item*/
|
|
590
|
+
l[13].links
|
|
591
|
+
);
|
|
592
|
+
let o;
|
|
593
|
+
for (o = 0; o < n.length; o += 1) {
|
|
594
|
+
const a = we(l, n, o);
|
|
595
|
+
t[o] ? t[o].p(a, s) : (t[o] = $e(a), t[o].c(), t[o].m(e.parentNode, e));
|
|
596
|
+
}
|
|
597
|
+
for (; o < t.length; o += 1)
|
|
598
|
+
t[o].d(1);
|
|
599
|
+
t.length = n.length;
|
|
600
|
+
}
|
|
601
|
+
},
|
|
602
|
+
d(l) {
|
|
603
|
+
l && w(e), H(t, l);
|
|
604
|
+
}
|
|
605
|
+
};
|
|
606
|
+
}
|
|
607
|
+
function at(i) {
|
|
608
|
+
let e, n, t, l;
|
|
609
|
+
return t = new z({ props: { icon: X } }), {
|
|
610
|
+
c() {
|
|
611
|
+
e = g("span"), e.textContent = `${/*item*/
|
|
612
|
+
i[13].text.toUpperCase()}`, n = y(), j(t.$$.fragment);
|
|
613
|
+
},
|
|
614
|
+
m(s, o) {
|
|
615
|
+
k(s, e, o), k(s, n, o), A(t, s, o), l = !0;
|
|
616
|
+
},
|
|
617
|
+
p: x,
|
|
618
|
+
i(s) {
|
|
619
|
+
l || (p(t.$$.fragment, s), l = !0);
|
|
620
|
+
},
|
|
621
|
+
o(s) {
|
|
622
|
+
m(t.$$.fragment, s), l = !1;
|
|
623
|
+
},
|
|
624
|
+
d(s) {
|
|
625
|
+
s && (w(e), w(n)), U(t, s);
|
|
626
|
+
}
|
|
627
|
+
};
|
|
628
|
+
}
|
|
629
|
+
function ft(i) {
|
|
630
|
+
let e, n;
|
|
631
|
+
return e = new z({ props: { icon: (
|
|
632
|
+
/*item*/
|
|
633
|
+
i[13].icon
|
|
634
|
+
) } }), {
|
|
635
|
+
c() {
|
|
636
|
+
j(e.$$.fragment);
|
|
637
|
+
},
|
|
638
|
+
m(t, l) {
|
|
639
|
+
A(e, t, l), n = !0;
|
|
640
|
+
},
|
|
641
|
+
p: x,
|
|
642
|
+
i(t) {
|
|
643
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
644
|
+
},
|
|
645
|
+
o(t) {
|
|
646
|
+
m(e.$$.fragment, t), n = !1;
|
|
647
|
+
},
|
|
648
|
+
d(t) {
|
|
649
|
+
U(e, t);
|
|
650
|
+
}
|
|
651
|
+
};
|
|
652
|
+
}
|
|
653
|
+
function ut(i) {
|
|
654
|
+
let e, n, t, l;
|
|
655
|
+
const s = [ft, at], o = [];
|
|
656
|
+
function a(r, f) {
|
|
657
|
+
return (
|
|
658
|
+
/*item*/
|
|
659
|
+
r[13].icon ? 0 : 1
|
|
660
|
+
);
|
|
661
|
+
}
|
|
662
|
+
return n = a(i), t = o[n] = s[n](i), {
|
|
663
|
+
c() {
|
|
664
|
+
e = g("span"), t.c(), _(e, "class", "flex gap-2 [&>svg]:transition-transform"), _(e, "slot", "button"), _(
|
|
665
|
+
e,
|
|
666
|
+
"aria-label",
|
|
667
|
+
/*item*/
|
|
668
|
+
i[13].icon ? (
|
|
669
|
+
/*item*/
|
|
670
|
+
i[13].text
|
|
671
|
+
) : void 0
|
|
672
|
+
), K(
|
|
673
|
+
e,
|
|
674
|
+
"bg-uofg-yellow",
|
|
675
|
+
/*item*/
|
|
676
|
+
i[13].highlight
|
|
677
|
+
);
|
|
678
|
+
},
|
|
679
|
+
m(r, f) {
|
|
680
|
+
k(r, e, f), o[n].m(e, null), l = !0;
|
|
681
|
+
},
|
|
682
|
+
p(r, f) {
|
|
683
|
+
t.p(r, f);
|
|
684
|
+
},
|
|
685
|
+
i(r) {
|
|
686
|
+
l || (p(t), l = !0);
|
|
687
|
+
},
|
|
688
|
+
o(r) {
|
|
689
|
+
m(t), l = !1;
|
|
690
|
+
},
|
|
691
|
+
d(r) {
|
|
692
|
+
r && w(e), o[n].d();
|
|
693
|
+
}
|
|
694
|
+
};
|
|
695
|
+
}
|
|
696
|
+
function ye(i, e) {
|
|
697
|
+
let n, t, l, s, o;
|
|
698
|
+
const a = [st, ot], r = [];
|
|
699
|
+
function f(u, c) {
|
|
700
|
+
return (
|
|
701
|
+
/*item*/
|
|
702
|
+
u[13].links ? 0 : 1
|
|
703
|
+
);
|
|
704
|
+
}
|
|
705
|
+
return t = f(e), l = r[t] = a[t](e), {
|
|
706
|
+
key: i,
|
|
707
|
+
first: null,
|
|
708
|
+
c() {
|
|
709
|
+
n = g("li"), l.c(), s = y(), this.first = n;
|
|
710
|
+
},
|
|
711
|
+
m(u, c) {
|
|
712
|
+
k(u, n, c), r[t].m(n, null), h(n, s), o = !0;
|
|
713
|
+
},
|
|
714
|
+
p(u, c) {
|
|
715
|
+
e = u, l.p(e, c);
|
|
716
|
+
},
|
|
717
|
+
i(u) {
|
|
718
|
+
o || (p(l), o = !0);
|
|
719
|
+
},
|
|
720
|
+
o(u) {
|
|
721
|
+
m(l), o = !1;
|
|
722
|
+
},
|
|
723
|
+
d(u) {
|
|
724
|
+
u && w(n), r[t].d();
|
|
725
|
+
}
|
|
726
|
+
};
|
|
727
|
+
}
|
|
728
|
+
function xe(i) {
|
|
729
|
+
let e;
|
|
730
|
+
return {
|
|
731
|
+
c() {
|
|
732
|
+
e = g("div"), e.innerHTML = '<img class="block h-full w-auto" src="decorative.svg" aria-hidden="true" alt="" width="75"/>', _(e, "class", "left-0 h-full w-[7.5rem] min-[1320px]:absolute");
|
|
733
|
+
},
|
|
734
|
+
m(n, t) {
|
|
735
|
+
k(n, e, t);
|
|
736
|
+
},
|
|
737
|
+
d(n) {
|
|
738
|
+
n && w(e);
|
|
739
|
+
}
|
|
740
|
+
};
|
|
741
|
+
}
|
|
742
|
+
function ct(i) {
|
|
743
|
+
let e, n;
|
|
744
|
+
return {
|
|
745
|
+
c() {
|
|
746
|
+
e = g("img"), _(e, "class", "block h-full w-[5rem]"), Pe(e.src, n = "logo-small.svg") || _(e, "src", n), _(e, "width", 50), _(e, "alt", "University of Guelph Logo");
|
|
747
|
+
},
|
|
748
|
+
m(t, l) {
|
|
749
|
+
k(t, e, l);
|
|
750
|
+
},
|
|
751
|
+
d(t) {
|
|
752
|
+
t && w(e);
|
|
753
|
+
}
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
function _t(i) {
|
|
757
|
+
let e, n;
|
|
758
|
+
return {
|
|
759
|
+
c() {
|
|
760
|
+
e = g("img"), _(e, "class", "block h-full w-[18.4rem]"), Pe(e.src, n = "logo.svg") || _(e, "src", n), _(e, "width", 184), _(e, "alt", "University of Guelph Logo");
|
|
761
|
+
},
|
|
762
|
+
m(t, l) {
|
|
763
|
+
k(t, e, l);
|
|
764
|
+
},
|
|
765
|
+
d(t) {
|
|
766
|
+
t && w(e);
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
}
|
|
770
|
+
function ht(i) {
|
|
771
|
+
let e, n, t, l, s, o, a, r, f, u, c;
|
|
772
|
+
return l = new z({ props: { icon: (
|
|
773
|
+
/*search*/
|
|
774
|
+
i[8].icon
|
|
775
|
+
) } }), a = new P({
|
|
776
|
+
props: {
|
|
777
|
+
class: "h-full",
|
|
778
|
+
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",
|
|
779
|
+
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",
|
|
780
|
+
as: "ul",
|
|
781
|
+
$$slots: {
|
|
782
|
+
button: [bt],
|
|
783
|
+
default: [pt]
|
|
784
|
+
},
|
|
785
|
+
$$scope: { ctx: i }
|
|
786
|
+
}
|
|
787
|
+
}), u = new P({
|
|
788
|
+
props: {
|
|
789
|
+
class: "h-full",
|
|
790
|
+
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",
|
|
791
|
+
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",
|
|
792
|
+
as: "ul",
|
|
793
|
+
$$slots: {
|
|
794
|
+
button: [$t],
|
|
795
|
+
default: [vt]
|
|
796
|
+
},
|
|
797
|
+
$$scope: { ctx: i }
|
|
798
|
+
}
|
|
799
|
+
}), {
|
|
800
|
+
c() {
|
|
801
|
+
e = g("ul"), n = g("li"), t = g("a"), j(l.$$.fragment), s = y(), o = g("li"), j(a.$$.fragment), r = y(), f = g("li"), j(u.$$.fragment), _(t, "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"), _(
|
|
802
|
+
t,
|
|
803
|
+
"href",
|
|
804
|
+
/*search*/
|
|
805
|
+
i[8].href
|
|
806
|
+
), _(
|
|
807
|
+
t,
|
|
808
|
+
"aria-label",
|
|
809
|
+
/*search*/
|
|
810
|
+
i[8].text
|
|
811
|
+
), _(e, "class", "flex h-full [&>li]:contents");
|
|
812
|
+
},
|
|
813
|
+
m(d, N) {
|
|
814
|
+
k(d, e, N), h(e, n), h(n, t), A(l, t, null), h(e, s), h(e, o), A(a, o, null), h(e, r), h(e, f), A(u, f, null), c = !0;
|
|
815
|
+
},
|
|
816
|
+
p(d, N) {
|
|
817
|
+
const b = {};
|
|
818
|
+
N[1] & /*$$scope*/
|
|
819
|
+
16 && (b.$$scope = { dirty: N, ctx: d }), a.$set(b);
|
|
820
|
+
const v = {};
|
|
821
|
+
N[1] & /*$$scope*/
|
|
822
|
+
16 && (v.$$scope = { dirty: N, ctx: d }), u.$set(v);
|
|
823
|
+
},
|
|
824
|
+
i(d) {
|
|
825
|
+
c || (p(l.$$.fragment, d), p(a.$$.fragment, d), p(u.$$.fragment, d), c = !0);
|
|
826
|
+
},
|
|
827
|
+
o(d) {
|
|
828
|
+
m(l.$$.fragment, d), m(a.$$.fragment, d), m(u.$$.fragment, d), c = !1;
|
|
829
|
+
},
|
|
830
|
+
d(d) {
|
|
831
|
+
d && w(e), U(l), U(a), U(u);
|
|
832
|
+
}
|
|
833
|
+
};
|
|
834
|
+
}
|
|
835
|
+
function gt(i) {
|
|
836
|
+
let e, n, t, l, s, o, a = C(
|
|
837
|
+
/*mainLinks*/
|
|
838
|
+
i[7]
|
|
839
|
+
), r = [];
|
|
840
|
+
for (let f = 0; f < a.length; f += 1)
|
|
841
|
+
r[f] = je(me(i, a, f));
|
|
842
|
+
return s = new z({ props: { icon: (
|
|
843
|
+
/*search*/
|
|
844
|
+
i[8].icon
|
|
845
|
+
) } }), {
|
|
846
|
+
c() {
|
|
847
|
+
e = g("ul");
|
|
848
|
+
for (let f = 0; f < r.length; f += 1)
|
|
849
|
+
r[f].c();
|
|
850
|
+
n = y(), t = g("li"), l = g("a"), j(s.$$.fragment), _(l, "class", "flex h-full items-center justify-center border-0 border-b-8 border-solid border-transparent p-4 pb-6 pt-8 text-uofg-yellow transition-colors hover:border-uofg-yellow hover:text-white [&>svg]:fill-current"), _(
|
|
851
|
+
l,
|
|
852
|
+
"href",
|
|
853
|
+
/*search*/
|
|
854
|
+
i[8].href
|
|
855
|
+
), _(
|
|
856
|
+
l,
|
|
857
|
+
"aria-label",
|
|
858
|
+
/*search*/
|
|
859
|
+
i[8].text
|
|
860
|
+
), _(e, "class", "flex ml-auto [&>li]:contents text-4xl");
|
|
861
|
+
},
|
|
862
|
+
m(f, u) {
|
|
863
|
+
k(f, e, u);
|
|
864
|
+
for (let c = 0; c < r.length; c += 1)
|
|
865
|
+
r[c] && r[c].m(e, null);
|
|
866
|
+
h(e, n), h(e, t), h(t, l), A(s, l, null), o = !0;
|
|
867
|
+
},
|
|
868
|
+
p(f, u) {
|
|
869
|
+
if (u[0] & /*mainLinks*/
|
|
870
|
+
128) {
|
|
871
|
+
a = C(
|
|
872
|
+
/*mainLinks*/
|
|
873
|
+
f[7]
|
|
874
|
+
);
|
|
875
|
+
let c;
|
|
876
|
+
for (c = 0; c < a.length; c += 1) {
|
|
877
|
+
const d = me(f, a, c);
|
|
878
|
+
r[c] ? r[c].p(d, u) : (r[c] = je(d), r[c].c(), r[c].m(e, n));
|
|
879
|
+
}
|
|
880
|
+
for (; c < r.length; c += 1)
|
|
881
|
+
r[c].d(1);
|
|
882
|
+
r.length = a.length;
|
|
883
|
+
}
|
|
884
|
+
},
|
|
885
|
+
i(f) {
|
|
886
|
+
o || (p(s.$$.fragment, f), o = !0);
|
|
887
|
+
},
|
|
888
|
+
o(f) {
|
|
889
|
+
m(s.$$.fragment, f), o = !1;
|
|
890
|
+
},
|
|
891
|
+
d(f) {
|
|
892
|
+
f && w(e), H(r, f), U(s);
|
|
893
|
+
}
|
|
894
|
+
};
|
|
895
|
+
}
|
|
896
|
+
function Ce(i) {
|
|
897
|
+
let e, n, t = (
|
|
898
|
+
/*link*/
|
|
899
|
+
i[16].text + ""
|
|
900
|
+
), l, s;
|
|
901
|
+
return {
|
|
902
|
+
c() {
|
|
903
|
+
e = g("li"), n = g("a"), l = T(t), s = y(), _(n, "class", "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-yellow"), _(
|
|
904
|
+
n,
|
|
905
|
+
"href",
|
|
906
|
+
/*link*/
|
|
907
|
+
i[16].href
|
|
908
|
+
), _(e, "class", "[&>*]:first:mt-4 [&>*]:last:mb-4");
|
|
909
|
+
},
|
|
910
|
+
m(o, a) {
|
|
911
|
+
k(o, e, a), h(e, n), h(n, l), h(e, s);
|
|
912
|
+
},
|
|
913
|
+
p: x,
|
|
914
|
+
d(o) {
|
|
915
|
+
o && w(e);
|
|
916
|
+
}
|
|
917
|
+
};
|
|
918
|
+
}
|
|
919
|
+
function pt(i) {
|
|
920
|
+
let e, n = C(
|
|
921
|
+
/*account*/
|
|
922
|
+
i[9].links
|
|
923
|
+
), t = [];
|
|
924
|
+
for (let l = 0; l < n.length; l += 1)
|
|
925
|
+
t[l] = Ce(de(i, n, l));
|
|
926
|
+
return {
|
|
927
|
+
c() {
|
|
928
|
+
for (let l = 0; l < t.length; l += 1)
|
|
929
|
+
t[l].c();
|
|
930
|
+
e = B();
|
|
931
|
+
},
|
|
932
|
+
m(l, s) {
|
|
933
|
+
for (let o = 0; o < t.length; o += 1)
|
|
934
|
+
t[o] && t[o].m(l, s);
|
|
935
|
+
k(l, e, s);
|
|
936
|
+
},
|
|
937
|
+
p(l, s) {
|
|
938
|
+
if (s[0] & /*account*/
|
|
939
|
+
512) {
|
|
940
|
+
n = C(
|
|
941
|
+
/*account*/
|
|
942
|
+
l[9].links
|
|
943
|
+
);
|
|
944
|
+
let o;
|
|
945
|
+
for (o = 0; o < n.length; o += 1) {
|
|
946
|
+
const a = de(l, n, o);
|
|
947
|
+
t[o] ? t[o].p(a, s) : (t[o] = Ce(a), t[o].c(), t[o].m(e.parentNode, e));
|
|
948
|
+
}
|
|
949
|
+
for (; o < t.length; o += 1)
|
|
950
|
+
t[o].d(1);
|
|
951
|
+
t.length = n.length;
|
|
952
|
+
}
|
|
953
|
+
},
|
|
954
|
+
d(l) {
|
|
955
|
+
l && w(e), H(t, l);
|
|
956
|
+
}
|
|
957
|
+
};
|
|
958
|
+
}
|
|
959
|
+
function bt(i) {
|
|
960
|
+
let e, n;
|
|
961
|
+
return e = new z({
|
|
962
|
+
props: {
|
|
963
|
+
slot: "button",
|
|
964
|
+
icon: (
|
|
965
|
+
/*account*/
|
|
966
|
+
i[9].icon
|
|
967
|
+
)
|
|
968
|
+
}
|
|
969
|
+
}), {
|
|
970
|
+
c() {
|
|
971
|
+
j(e.$$.fragment);
|
|
972
|
+
},
|
|
973
|
+
m(t, l) {
|
|
974
|
+
A(e, t, l), n = !0;
|
|
975
|
+
},
|
|
976
|
+
p: x,
|
|
977
|
+
i(t) {
|
|
978
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
979
|
+
},
|
|
980
|
+
o(t) {
|
|
981
|
+
m(e.$$.fragment, t), n = !1;
|
|
982
|
+
},
|
|
983
|
+
d(t) {
|
|
984
|
+
U(e, t);
|
|
985
|
+
}
|
|
986
|
+
};
|
|
987
|
+
}
|
|
988
|
+
function dt(i) {
|
|
989
|
+
let e, n = (
|
|
990
|
+
/*item*/
|
|
991
|
+
i[13].text + ""
|
|
992
|
+
), t;
|
|
993
|
+
return {
|
|
994
|
+
c() {
|
|
995
|
+
e = g("a"), t = T(n), _(e, "class", "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-grey focus:bg-uofg-grey"), _(
|
|
996
|
+
e,
|
|
997
|
+
"href",
|
|
998
|
+
/*item*/
|
|
999
|
+
i[13].href
|
|
1000
|
+
), K(
|
|
1001
|
+
e,
|
|
1002
|
+
"bg-uofg-yellow",
|
|
1003
|
+
/*item*/
|
|
1004
|
+
i[13].highlight
|
|
1005
|
+
);
|
|
1006
|
+
},
|
|
1007
|
+
m(l, s) {
|
|
1008
|
+
k(l, e, s), h(e, t);
|
|
1009
|
+
},
|
|
1010
|
+
p: x,
|
|
1011
|
+
i: x,
|
|
1012
|
+
o: x,
|
|
1013
|
+
d(l) {
|
|
1014
|
+
l && w(e);
|
|
1015
|
+
}
|
|
1016
|
+
};
|
|
1017
|
+
}
|
|
1018
|
+
function mt(i) {
|
|
1019
|
+
let e, n;
|
|
1020
|
+
return e = new P({
|
|
1021
|
+
props: {
|
|
1022
|
+
class: "relative w-full",
|
|
1023
|
+
buttonClass: "flex border-0 border-b border-solid border-uofg-grey-500 w-full items-center justify-between gap-2 p-4 transition-colors hover:bg-uofg-grey focus:bg-uofg-grey aria-expanded:bg-uofg-grey [&_svg]:aria-expanded:rotate-180",
|
|
1024
|
+
contentClass: "flex flex-col w-full flex-col bg-white text-black [&>li]:contents",
|
|
1025
|
+
as: "ul",
|
|
1026
|
+
autoCollapse: !1,
|
|
1027
|
+
$$slots: {
|
|
1028
|
+
button: [wt],
|
|
1029
|
+
default: [kt]
|
|
1030
|
+
},
|
|
1031
|
+
$$scope: { ctx: i }
|
|
1032
|
+
}
|
|
1033
|
+
}), {
|
|
1034
|
+
c() {
|
|
1035
|
+
j(e.$$.fragment);
|
|
1036
|
+
},
|
|
1037
|
+
m(t, l) {
|
|
1038
|
+
A(e, t, l), n = !0;
|
|
1039
|
+
},
|
|
1040
|
+
p(t, l) {
|
|
1041
|
+
const s = {};
|
|
1042
|
+
l[1] & /*$$scope*/
|
|
1043
|
+
16 && (s.$$scope = { dirty: l, ctx: t }), e.$set(s);
|
|
1044
|
+
},
|
|
1045
|
+
i(t) {
|
|
1046
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
1047
|
+
},
|
|
1048
|
+
o(t) {
|
|
1049
|
+
m(e.$$.fragment, t), n = !1;
|
|
1050
|
+
},
|
|
1051
|
+
d(t) {
|
|
1052
|
+
U(e, t);
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
}
|
|
1056
|
+
function Ne(i) {
|
|
1057
|
+
let e, n, t = (
|
|
1058
|
+
/*link*/
|
|
1059
|
+
i[16].text + ""
|
|
1060
|
+
), l, s, o = [
|
|
1061
|
+
{
|
|
1062
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-grey"
|
|
1063
|
+
},
|
|
1064
|
+
{
|
|
1065
|
+
href: (
|
|
1066
|
+
/*link*/
|
|
1067
|
+
i[16].href
|
|
1068
|
+
)
|
|
1069
|
+
},
|
|
1070
|
+
/*link*/
|
|
1071
|
+
i[16].attributes
|
|
1072
|
+
], a = {};
|
|
1073
|
+
for (let r = 0; r < o.length; r += 1)
|
|
1074
|
+
a = G(a, o[r]);
|
|
1075
|
+
return {
|
|
1076
|
+
c() {
|
|
1077
|
+
e = g("li"), n = g("a"), l = T(t), s = y(), q(n, a);
|
|
1078
|
+
},
|
|
1079
|
+
m(r, f) {
|
|
1080
|
+
k(r, e, f), h(e, n), h(n, l), h(e, s);
|
|
1081
|
+
},
|
|
1082
|
+
p: x,
|
|
1083
|
+
d(r) {
|
|
1084
|
+
r && w(e);
|
|
1085
|
+
}
|
|
1086
|
+
};
|
|
1087
|
+
}
|
|
1088
|
+
function kt(i) {
|
|
1089
|
+
let e, n = C(
|
|
1090
|
+
/*item*/
|
|
1091
|
+
i[13].links
|
|
1092
|
+
), t = [];
|
|
1093
|
+
for (let l = 0; l < n.length; l += 1)
|
|
1094
|
+
t[l] = Ne(be(i, n, l));
|
|
1095
|
+
return {
|
|
1096
|
+
c() {
|
|
1097
|
+
for (let l = 0; l < t.length; l += 1)
|
|
1098
|
+
t[l].c();
|
|
1099
|
+
e = B();
|
|
1100
|
+
},
|
|
1101
|
+
m(l, s) {
|
|
1102
|
+
for (let o = 0; o < t.length; o += 1)
|
|
1103
|
+
t[o] && t[o].m(l, s);
|
|
1104
|
+
k(l, e, s);
|
|
1105
|
+
},
|
|
1106
|
+
p(l, s) {
|
|
1107
|
+
if (s[0] & /*mainLinks, topLinks*/
|
|
1108
|
+
192) {
|
|
1109
|
+
n = C(
|
|
1110
|
+
/*item*/
|
|
1111
|
+
l[13].links
|
|
1112
|
+
);
|
|
1113
|
+
let o;
|
|
1114
|
+
for (o = 0; o < n.length; o += 1) {
|
|
1115
|
+
const a = be(l, n, o);
|
|
1116
|
+
t[o] ? t[o].p(a, s) : (t[o] = Ne(a), t[o].c(), t[o].m(e.parentNode, e));
|
|
1117
|
+
}
|
|
1118
|
+
for (; o < t.length; o += 1)
|
|
1119
|
+
t[o].d(1);
|
|
1120
|
+
t.length = n.length;
|
|
1121
|
+
}
|
|
1122
|
+
},
|
|
1123
|
+
d(l) {
|
|
1124
|
+
l && w(e), H(t, l);
|
|
1125
|
+
}
|
|
1126
|
+
};
|
|
1127
|
+
}
|
|
1128
|
+
function wt(i) {
|
|
1129
|
+
let e, n, t, l, s;
|
|
1130
|
+
return l = new z({ props: { icon: X } }), {
|
|
1131
|
+
c() {
|
|
1132
|
+
e = g("span"), n = g("span"), n.textContent = `${/*item*/
|
|
1133
|
+
i[13].text}`, t = y(), j(l.$$.fragment), _(n, "class", "mr-auto"), _(e, "class", "w-full flex gap-2 justify-between [&>svg]:transition-transform"), _(e, "slot", "button"), K(
|
|
1134
|
+
e,
|
|
1135
|
+
"bg-uofg-yellow",
|
|
1136
|
+
/*item*/
|
|
1137
|
+
i[13].highlight
|
|
1138
|
+
);
|
|
1139
|
+
},
|
|
1140
|
+
m(o, a) {
|
|
1141
|
+
k(o, e, a), h(e, n), h(e, t), A(l, e, null), s = !0;
|
|
1142
|
+
},
|
|
1143
|
+
p: x,
|
|
1144
|
+
i(o) {
|
|
1145
|
+
s || (p(l.$$.fragment, o), s = !0);
|
|
1146
|
+
},
|
|
1147
|
+
o(o) {
|
|
1148
|
+
m(l.$$.fragment, o), s = !1;
|
|
1149
|
+
},
|
|
1150
|
+
d(o) {
|
|
1151
|
+
o && w(e), U(l);
|
|
1152
|
+
}
|
|
1153
|
+
};
|
|
1154
|
+
}
|
|
1155
|
+
function Le(i) {
|
|
1156
|
+
let e, n, t, l, s;
|
|
1157
|
+
const o = [mt, dt], a = [];
|
|
1158
|
+
function r(f, u) {
|
|
1159
|
+
return (
|
|
1160
|
+
/*item*/
|
|
1161
|
+
f[13].links ? 0 : 1
|
|
1162
|
+
);
|
|
1163
|
+
}
|
|
1164
|
+
return n = r(i), t = a[n] = o[n](i), {
|
|
1165
|
+
c() {
|
|
1166
|
+
e = g("li"), t.c(), l = y(), _(e, "class", "[&>*]:first:mt-4 [&>*]:last:mb-4");
|
|
1167
|
+
},
|
|
1168
|
+
m(f, u) {
|
|
1169
|
+
k(f, e, u), a[n].m(e, null), h(e, l), s = !0;
|
|
1170
|
+
},
|
|
1171
|
+
p(f, u) {
|
|
1172
|
+
t.p(f, u);
|
|
1173
|
+
},
|
|
1174
|
+
i(f) {
|
|
1175
|
+
s || (p(t), s = !0);
|
|
1176
|
+
},
|
|
1177
|
+
o(f) {
|
|
1178
|
+
m(t), s = !1;
|
|
1179
|
+
},
|
|
1180
|
+
d(f) {
|
|
1181
|
+
f && w(e), a[n].d();
|
|
1182
|
+
}
|
|
1183
|
+
};
|
|
1184
|
+
}
|
|
1185
|
+
function vt(i) {
|
|
1186
|
+
let e, n, t = C([.../*mainLinks*/
|
|
1187
|
+
i[7], .../*topLinks*/
|
|
1188
|
+
i[6]]), l = [];
|
|
1189
|
+
for (let o = 0; o < t.length; o += 1)
|
|
1190
|
+
l[o] = Le(pe(i, t, o));
|
|
1191
|
+
const s = (o) => m(l[o], 1, 1, () => {
|
|
1192
|
+
l[o] = null;
|
|
1193
|
+
});
|
|
1194
|
+
return {
|
|
1195
|
+
c() {
|
|
1196
|
+
for (let o = 0; o < l.length; o += 1)
|
|
1197
|
+
l[o].c();
|
|
1198
|
+
e = B();
|
|
1199
|
+
},
|
|
1200
|
+
m(o, a) {
|
|
1201
|
+
for (let r = 0; r < l.length; r += 1)
|
|
1202
|
+
l[r] && l[r].m(o, a);
|
|
1203
|
+
k(o, e, a), n = !0;
|
|
1204
|
+
},
|
|
1205
|
+
p(o, a) {
|
|
1206
|
+
if (a[0] & /*mainLinks, topLinks*/
|
|
1207
|
+
192) {
|
|
1208
|
+
t = C([.../*mainLinks*/
|
|
1209
|
+
o[7], .../*topLinks*/
|
|
1210
|
+
o[6]]);
|
|
1211
|
+
let r;
|
|
1212
|
+
for (r = 0; r < t.length; r += 1) {
|
|
1213
|
+
const f = pe(o, t, r);
|
|
1214
|
+
l[r] ? (l[r].p(f, a), p(l[r], 1)) : (l[r] = Le(f), l[r].c(), p(l[r], 1), l[r].m(e.parentNode, e));
|
|
1215
|
+
}
|
|
1216
|
+
for (F(), r = t.length; r < l.length; r += 1)
|
|
1217
|
+
s(r);
|
|
1218
|
+
E();
|
|
1219
|
+
}
|
|
1220
|
+
},
|
|
1221
|
+
i(o) {
|
|
1222
|
+
if (!n) {
|
|
1223
|
+
for (let a = 0; a < t.length; a += 1)
|
|
1224
|
+
p(l[a]);
|
|
1225
|
+
n = !0;
|
|
1226
|
+
}
|
|
1227
|
+
},
|
|
1228
|
+
o(o) {
|
|
1229
|
+
l = l.filter(Boolean);
|
|
1230
|
+
for (let a = 0; a < l.length; a += 1)
|
|
1231
|
+
m(l[a]);
|
|
1232
|
+
n = !1;
|
|
1233
|
+
},
|
|
1234
|
+
d(o) {
|
|
1235
|
+
o && w(e), H(l, o);
|
|
1236
|
+
}
|
|
1237
|
+
};
|
|
1238
|
+
}
|
|
1239
|
+
function $t(i) {
|
|
1240
|
+
let e, n;
|
|
1241
|
+
return e = new z({ props: { slot: "button", icon: Ge } }), {
|
|
1242
|
+
c() {
|
|
1243
|
+
j(e.$$.fragment);
|
|
1244
|
+
},
|
|
1245
|
+
m(t, l) {
|
|
1246
|
+
A(e, t, l), n = !0;
|
|
1247
|
+
},
|
|
1248
|
+
p: x,
|
|
1249
|
+
i(t) {
|
|
1250
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
1251
|
+
},
|
|
1252
|
+
o(t) {
|
|
1253
|
+
m(e.$$.fragment, t), n = !1;
|
|
1254
|
+
},
|
|
1255
|
+
d(t) {
|
|
1256
|
+
U(e, t);
|
|
1257
|
+
}
|
|
1258
|
+
};
|
|
1259
|
+
}
|
|
1260
|
+
function je(i) {
|
|
1261
|
+
let e, n, t = (
|
|
1262
|
+
/*item*/
|
|
1263
|
+
i[13].text + ""
|
|
1264
|
+
), l, s;
|
|
1265
|
+
return {
|
|
1266
|
+
c() {
|
|
1267
|
+
e = g("li"), n = g("a"), l = T(t), s = y(), _(n, "class", "flex h-full items-center justify-center border-0 border-b-8 border-solid border-transparent p-6 pt-8 transition-colors hover:border-uofg-yellow hover:text-uofg-yellow"), _(
|
|
1268
|
+
n,
|
|
1269
|
+
"href",
|
|
1270
|
+
/*item*/
|
|
1271
|
+
i[13].href
|
|
1272
|
+
);
|
|
1273
|
+
},
|
|
1274
|
+
m(o, a) {
|
|
1275
|
+
k(o, e, a), h(e, n), h(n, l), h(e, s);
|
|
1276
|
+
},
|
|
1277
|
+
p: x,
|
|
1278
|
+
d(o) {
|
|
1279
|
+
o && w(e);
|
|
1280
|
+
}
|
|
1281
|
+
};
|
|
1282
|
+
}
|
|
1283
|
+
function Ae(i) {
|
|
1284
|
+
let e, n, t, l, s, o, a = (
|
|
1285
|
+
/*pageTitle*/
|
|
1286
|
+
i[1] && Ue(i)
|
|
1287
|
+
);
|
|
1288
|
+
const r = [Nt, Ct], f = [];
|
|
1289
|
+
function u(c, d) {
|
|
1290
|
+
return (
|
|
1291
|
+
/*windowWidth*/
|
|
1292
|
+
c[3] >= O && !/*subNavigationIsOverflowing*/
|
|
1293
|
+
c[5] ? 0 : 1
|
|
1294
|
+
);
|
|
1295
|
+
}
|
|
1296
|
+
return l = u(i), s = f[l] = r[l](i), {
|
|
1297
|
+
c() {
|
|
1298
|
+
e = g("nav"), n = g("ul"), a && a.c(), t = y(), s.c(), _(n, "class", "flex h-full w-fit min-w-full overflow-y-visible items-center justify-end [&>li]:contents relative"), _(e, "class", "block align-items relative h-[5rem] justify-end bg-uofg-grey px-[calc((100%-1320px)/2)] text-3xl lg:h-16 lg:whitespace-nowrap"), _(e, "aria-label", "Page Specific");
|
|
1299
|
+
},
|
|
1300
|
+
m(c, d) {
|
|
1301
|
+
k(c, e, d), h(e, n), a && a.m(n, null), h(n, t), f[l].m(n, null), i[11](n), o = !0;
|
|
1302
|
+
},
|
|
1303
|
+
p(c, d) {
|
|
1304
|
+
/*pageTitle*/
|
|
1305
|
+
c[1] ? a ? a.p(c, d) : (a = Ue(c), a.c(), a.m(n, t)) : a && (a.d(1), a = null);
|
|
1306
|
+
let N = l;
|
|
1307
|
+
l = u(c), l === N ? f[l].p(c, d) : (F(), m(f[N], 1, 1, () => {
|
|
1308
|
+
f[N] = null;
|
|
1309
|
+
}), E(), s = f[l], s ? s.p(c, d) : (s = f[l] = r[l](c), s.c()), p(s, 1), s.m(n, null));
|
|
1310
|
+
},
|
|
1311
|
+
i(c) {
|
|
1312
|
+
o || (p(s), o = !0);
|
|
1313
|
+
},
|
|
1314
|
+
o(c) {
|
|
1315
|
+
m(s), o = !1;
|
|
1316
|
+
},
|
|
1317
|
+
d(c) {
|
|
1318
|
+
c && w(e), a && a.d(), f[l].d(), i[11](null);
|
|
1319
|
+
}
|
|
1320
|
+
};
|
|
1321
|
+
}
|
|
1322
|
+
function Ue(i) {
|
|
1323
|
+
let e;
|
|
1324
|
+
function n(s, o) {
|
|
1325
|
+
return (
|
|
1326
|
+
/*pageURL*/
|
|
1327
|
+
s[2] ? xt : yt
|
|
1328
|
+
);
|
|
1329
|
+
}
|
|
1330
|
+
let t = n(i), l = t(i);
|
|
1331
|
+
return {
|
|
1332
|
+
c() {
|
|
1333
|
+
e = g("li"), l.c();
|
|
1334
|
+
},
|
|
1335
|
+
m(s, o) {
|
|
1336
|
+
k(s, e, o), l.m(e, null);
|
|
1337
|
+
},
|
|
1338
|
+
p(s, o) {
|
|
1339
|
+
t === (t = n(s)) && l ? l.p(s, o) : (l.d(1), l = t(s), l && (l.c(), l.m(e, null)));
|
|
1340
|
+
},
|
|
1341
|
+
d(s) {
|
|
1342
|
+
s && w(e), l.d();
|
|
1343
|
+
}
|
|
1344
|
+
};
|
|
1345
|
+
}
|
|
1346
|
+
function yt(i) {
|
|
1347
|
+
let e, n;
|
|
1348
|
+
return {
|
|
1349
|
+
c() {
|
|
1350
|
+
e = g("span"), n = T(
|
|
1351
|
+
/*pageTitle*/
|
|
1352
|
+
i[1]
|
|
1353
|
+
), _(e, "class", "mr-auto flex h-full items-center justify-center px-4 font-bold");
|
|
1354
|
+
},
|
|
1355
|
+
m(t, l) {
|
|
1356
|
+
k(t, e, l), h(e, n);
|
|
1357
|
+
},
|
|
1358
|
+
p(t, l) {
|
|
1359
|
+
l[0] & /*pageTitle*/
|
|
1360
|
+
2 && Y(
|
|
1361
|
+
n,
|
|
1362
|
+
/*pageTitle*/
|
|
1363
|
+
t[1]
|
|
1364
|
+
);
|
|
1365
|
+
},
|
|
1366
|
+
d(t) {
|
|
1367
|
+
t && w(e);
|
|
1368
|
+
}
|
|
1369
|
+
};
|
|
1370
|
+
}
|
|
1371
|
+
function xt(i) {
|
|
1372
|
+
let e, n;
|
|
1373
|
+
return {
|
|
1374
|
+
c() {
|
|
1375
|
+
e = g("a"), n = T(
|
|
1376
|
+
/*pageTitle*/
|
|
1377
|
+
i[1]
|
|
1378
|
+
), _(e, "class", "mr-auto flex h-full items-center justify-center px-4 font-bold transition-colors hover:bg-uofg-yellow"), _(
|
|
1379
|
+
e,
|
|
1380
|
+
"href",
|
|
1381
|
+
/*pageURL*/
|
|
1382
|
+
i[2]
|
|
1383
|
+
);
|
|
1384
|
+
},
|
|
1385
|
+
m(t, l) {
|
|
1386
|
+
k(t, e, l), h(e, n);
|
|
1387
|
+
},
|
|
1388
|
+
p(t, l) {
|
|
1389
|
+
l[0] & /*pageTitle*/
|
|
1390
|
+
2 && Y(
|
|
1391
|
+
n,
|
|
1392
|
+
/*pageTitle*/
|
|
1393
|
+
t[1]
|
|
1394
|
+
), l[0] & /*pageURL*/
|
|
1395
|
+
4 && _(
|
|
1396
|
+
e,
|
|
1397
|
+
"href",
|
|
1398
|
+
/*pageURL*/
|
|
1399
|
+
t[2]
|
|
1400
|
+
);
|
|
1401
|
+
},
|
|
1402
|
+
d(t) {
|
|
1403
|
+
t && w(e);
|
|
1404
|
+
}
|
|
1405
|
+
};
|
|
1406
|
+
}
|
|
1407
|
+
function Ct(i) {
|
|
1408
|
+
let e, n;
|
|
1409
|
+
return e = new P({
|
|
1410
|
+
props: {
|
|
1411
|
+
class: "h-full",
|
|
1412
|
+
buttonClass: "flex h-full aspect-square items-center justify-center gap-2 px-4 transition-colors hover:bg-uofg-yellow aria-expanded:bg-uofg-yellow",
|
|
1413
|
+
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",
|
|
1414
|
+
as: "ul",
|
|
1415
|
+
$$slots: {
|
|
1416
|
+
button: [Tt],
|
|
1417
|
+
default: [St]
|
|
1418
|
+
},
|
|
1419
|
+
$$scope: { ctx: i }
|
|
1420
|
+
}
|
|
1421
|
+
}), {
|
|
1422
|
+
c() {
|
|
1423
|
+
j(e.$$.fragment);
|
|
1424
|
+
},
|
|
1425
|
+
m(t, l) {
|
|
1426
|
+
A(e, t, l), n = !0;
|
|
1427
|
+
},
|
|
1428
|
+
p(t, l) {
|
|
1429
|
+
const s = {};
|
|
1430
|
+
l[0] & /*subNavigation*/
|
|
1431
|
+
1 | l[1] & /*$$scope*/
|
|
1432
|
+
16 && (s.$$scope = { dirty: l, ctx: t }), e.$set(s);
|
|
1433
|
+
},
|
|
1434
|
+
i(t) {
|
|
1435
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
1436
|
+
},
|
|
1437
|
+
o(t) {
|
|
1438
|
+
m(e.$$.fragment, t), n = !1;
|
|
1439
|
+
},
|
|
1440
|
+
d(t) {
|
|
1441
|
+
U(e, t);
|
|
1442
|
+
}
|
|
1443
|
+
};
|
|
1444
|
+
}
|
|
1445
|
+
function Nt(i) {
|
|
1446
|
+
let e, n = [], t = /* @__PURE__ */ new Map(), l, s = C(
|
|
1447
|
+
/*subNavigation*/
|
|
1448
|
+
i[0]
|
|
1449
|
+
);
|
|
1450
|
+
const o = (a) => (
|
|
1451
|
+
/*item*/
|
|
1452
|
+
a[13].text || /*item*/
|
|
1453
|
+
a[13].title
|
|
1454
|
+
);
|
|
1455
|
+
for (let a = 0; a < s.length; a += 1) {
|
|
1456
|
+
let r = he(i, s, a), f = o(r);
|
|
1457
|
+
t.set(f, n[a] = Fe(f, r));
|
|
1458
|
+
}
|
|
1459
|
+
return {
|
|
1460
|
+
c() {
|
|
1461
|
+
e = g("li");
|
|
1462
|
+
for (let a = 0; a < n.length; a += 1)
|
|
1463
|
+
n[a].c();
|
|
1464
|
+
},
|
|
1465
|
+
m(a, r) {
|
|
1466
|
+
k(a, e, r);
|
|
1467
|
+
for (let f = 0; f < n.length; f += 1)
|
|
1468
|
+
n[f] && n[f].m(e, null);
|
|
1469
|
+
l = !0;
|
|
1470
|
+
},
|
|
1471
|
+
p(a, r) {
|
|
1472
|
+
r[0] & /*subNavigation*/
|
|
1473
|
+
1 && (s = C(
|
|
1474
|
+
/*subNavigation*/
|
|
1475
|
+
a[0]
|
|
1476
|
+
), F(), n = le(n, r, o, 1, a, s, t, e, ne, Fe, null, he), E());
|
|
1477
|
+
},
|
|
1478
|
+
i(a) {
|
|
1479
|
+
if (!l) {
|
|
1480
|
+
for (let r = 0; r < s.length; r += 1)
|
|
1481
|
+
p(n[r]);
|
|
1482
|
+
l = !0;
|
|
1483
|
+
}
|
|
1484
|
+
},
|
|
1485
|
+
o(a) {
|
|
1486
|
+
for (let r = 0; r < n.length; r += 1)
|
|
1487
|
+
m(n[r]);
|
|
1488
|
+
l = !1;
|
|
1489
|
+
},
|
|
1490
|
+
d(a) {
|
|
1491
|
+
a && w(e);
|
|
1492
|
+
for (let r = 0; r < n.length; r += 1)
|
|
1493
|
+
n[r].d();
|
|
1494
|
+
}
|
|
1495
|
+
};
|
|
1496
|
+
}
|
|
1497
|
+
function Lt(i) {
|
|
1498
|
+
let e, n;
|
|
1499
|
+
return e = new P({
|
|
1500
|
+
props: {
|
|
1501
|
+
class: "relative w-full",
|
|
1502
|
+
buttonClass: "flex border-0 border-b border-solid border-uofg-grey-500 w-full items-center justify-between gap-2 p-4 transition-colors hover:bg-uofg-grey focus:bg-uofg-grey aria-expanded:bg-uofg-grey [&_svg]:aria-expanded:rotate-180",
|
|
1503
|
+
contentClass: "flex flex-col w-full flex-col bg-white text-black [&>li]:contents",
|
|
1504
|
+
as: "ul",
|
|
1505
|
+
autoCollapse: !1,
|
|
1506
|
+
$$slots: {
|
|
1507
|
+
button: [Ut],
|
|
1508
|
+
default: [At]
|
|
1509
|
+
},
|
|
1510
|
+
$$scope: { ctx: i }
|
|
1511
|
+
}
|
|
1512
|
+
}), {
|
|
1513
|
+
c() {
|
|
1514
|
+
j(e.$$.fragment);
|
|
1515
|
+
},
|
|
1516
|
+
m(t, l) {
|
|
1517
|
+
A(e, t, l), n = !0;
|
|
1518
|
+
},
|
|
1519
|
+
p(t, l) {
|
|
1520
|
+
const s = {};
|
|
1521
|
+
l[0] & /*subNavigation*/
|
|
1522
|
+
1 | l[1] & /*$$scope*/
|
|
1523
|
+
16 && (s.$$scope = { dirty: l, ctx: t }), e.$set(s);
|
|
1524
|
+
},
|
|
1525
|
+
i(t) {
|
|
1526
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
1527
|
+
},
|
|
1528
|
+
o(t) {
|
|
1529
|
+
m(e.$$.fragment, t), n = !1;
|
|
1530
|
+
},
|
|
1531
|
+
d(t) {
|
|
1532
|
+
U(e, t);
|
|
1533
|
+
}
|
|
1534
|
+
};
|
|
1535
|
+
}
|
|
1536
|
+
function jt(i) {
|
|
1537
|
+
let e, n = (
|
|
1538
|
+
/*item*/
|
|
1539
|
+
i[13].text + ""
|
|
1540
|
+
), t, l, s = [
|
|
1541
|
+
{
|
|
1542
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-grey"
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
href: l = /*item*/
|
|
1546
|
+
i[13].href
|
|
1547
|
+
},
|
|
1548
|
+
/*item*/
|
|
1549
|
+
i[13].attributes
|
|
1550
|
+
], o = {};
|
|
1551
|
+
for (let a = 0; a < s.length; a += 1)
|
|
1552
|
+
o = G(o, s[a]);
|
|
1553
|
+
return {
|
|
1554
|
+
c() {
|
|
1555
|
+
e = g("a"), t = T(n), q(e, o);
|
|
1556
|
+
},
|
|
1557
|
+
m(a, r) {
|
|
1558
|
+
k(a, e, r), h(e, t);
|
|
1559
|
+
},
|
|
1560
|
+
p(a, r) {
|
|
1561
|
+
r[0] & /*subNavigation*/
|
|
1562
|
+
1 && n !== (n = /*item*/
|
|
1563
|
+
a[13].text + "") && V(t, n, o.contenteditable), q(e, o = D(s, [
|
|
1564
|
+
{
|
|
1565
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-grey"
|
|
1566
|
+
},
|
|
1567
|
+
r[0] & /*subNavigation*/
|
|
1568
|
+
1 && l !== (l = /*item*/
|
|
1569
|
+
a[13].href) && { href: l },
|
|
1570
|
+
r[0] & /*subNavigation*/
|
|
1571
|
+
1 && /*item*/
|
|
1572
|
+
a[13].attributes
|
|
1573
|
+
]));
|
|
1574
|
+
},
|
|
1575
|
+
i: x,
|
|
1576
|
+
o: x,
|
|
1577
|
+
d(a) {
|
|
1578
|
+
a && w(e);
|
|
1579
|
+
}
|
|
1580
|
+
};
|
|
1581
|
+
}
|
|
1582
|
+
function Se(i) {
|
|
1583
|
+
let e, n, t = (
|
|
1584
|
+
/*link*/
|
|
1585
|
+
i[16].text + ""
|
|
1586
|
+
), l, s, o, a = [
|
|
1587
|
+
{
|
|
1588
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-grey"
|
|
1589
|
+
},
|
|
1590
|
+
{
|
|
1591
|
+
href: s = /*link*/
|
|
1592
|
+
i[16].href
|
|
1593
|
+
},
|
|
1594
|
+
/*link*/
|
|
1595
|
+
i[16].attributes
|
|
1596
|
+
], r = {};
|
|
1597
|
+
for (let f = 0; f < a.length; f += 1)
|
|
1598
|
+
r = G(r, a[f]);
|
|
1599
|
+
return {
|
|
1600
|
+
c() {
|
|
1601
|
+
e = g("li"), n = g("a"), l = T(t), o = y(), q(n, r);
|
|
1602
|
+
},
|
|
1603
|
+
m(f, u) {
|
|
1604
|
+
k(f, e, u), h(e, n), h(n, l), h(e, o);
|
|
1605
|
+
},
|
|
1606
|
+
p(f, u) {
|
|
1607
|
+
u[0] & /*subNavigation*/
|
|
1608
|
+
1 && t !== (t = /*link*/
|
|
1609
|
+
f[16].text + "") && V(l, t, r.contenteditable), q(n, r = D(a, [
|
|
1610
|
+
{
|
|
1611
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-grey"
|
|
1612
|
+
},
|
|
1613
|
+
u[0] & /*subNavigation*/
|
|
1614
|
+
1 && s !== (s = /*link*/
|
|
1615
|
+
f[16].href) && { href: s },
|
|
1616
|
+
u[0] & /*subNavigation*/
|
|
1617
|
+
1 && /*link*/
|
|
1618
|
+
f[16].attributes
|
|
1619
|
+
]));
|
|
1620
|
+
},
|
|
1621
|
+
d(f) {
|
|
1622
|
+
f && w(e);
|
|
1623
|
+
}
|
|
1624
|
+
};
|
|
1625
|
+
}
|
|
1626
|
+
function At(i) {
|
|
1627
|
+
let e, n = C(
|
|
1628
|
+
/*item*/
|
|
1629
|
+
i[13].links
|
|
1630
|
+
), t = [];
|
|
1631
|
+
for (let l = 0; l < n.length; l += 1)
|
|
1632
|
+
t[l] = Se(_e(i, n, l));
|
|
1633
|
+
return {
|
|
1634
|
+
c() {
|
|
1635
|
+
for (let l = 0; l < t.length; l += 1)
|
|
1636
|
+
t[l].c();
|
|
1637
|
+
e = B();
|
|
1638
|
+
},
|
|
1639
|
+
m(l, s) {
|
|
1640
|
+
for (let o = 0; o < t.length; o += 1)
|
|
1641
|
+
t[o] && t[o].m(l, s);
|
|
1642
|
+
k(l, e, s);
|
|
1643
|
+
},
|
|
1644
|
+
p(l, s) {
|
|
1645
|
+
if (s[0] & /*subNavigation*/
|
|
1646
|
+
1) {
|
|
1647
|
+
n = C(
|
|
1648
|
+
/*item*/
|
|
1649
|
+
l[13].links
|
|
1650
|
+
);
|
|
1651
|
+
let o;
|
|
1652
|
+
for (o = 0; o < n.length; o += 1) {
|
|
1653
|
+
const a = _e(l, n, o);
|
|
1654
|
+
t[o] ? t[o].p(a, s) : (t[o] = Se(a), t[o].c(), t[o].m(e.parentNode, e));
|
|
1655
|
+
}
|
|
1656
|
+
for (; o < t.length; o += 1)
|
|
1657
|
+
t[o].d(1);
|
|
1658
|
+
t.length = n.length;
|
|
1659
|
+
}
|
|
1660
|
+
},
|
|
1661
|
+
d(l) {
|
|
1662
|
+
l && w(e), H(t, l);
|
|
1663
|
+
}
|
|
1664
|
+
};
|
|
1665
|
+
}
|
|
1666
|
+
function Ut(i) {
|
|
1667
|
+
let e, n, t = (
|
|
1668
|
+
/*item*/
|
|
1669
|
+
i[13].title + ""
|
|
1670
|
+
), l, s, o, a;
|
|
1671
|
+
return o = new z({ props: { icon: X } }), {
|
|
1672
|
+
c() {
|
|
1673
|
+
e = g("span"), n = g("span"), l = T(t), s = y(), j(o.$$.fragment), _(n, "class", "mr-auto"), _(e, "class", "w-full flex gap-2 justify-between [&>svg]:transition-transform"), _(e, "slot", "button");
|
|
1674
|
+
},
|
|
1675
|
+
m(r, f) {
|
|
1676
|
+
k(r, e, f), h(e, n), h(n, l), h(e, s), A(o, e, null), a = !0;
|
|
1677
|
+
},
|
|
1678
|
+
p(r, f) {
|
|
1679
|
+
(!a || f[0] & /*subNavigation*/
|
|
1680
|
+
1) && t !== (t = /*item*/
|
|
1681
|
+
r[13].title + "") && Y(l, t);
|
|
1682
|
+
},
|
|
1683
|
+
i(r) {
|
|
1684
|
+
a || (p(o.$$.fragment, r), a = !0);
|
|
1685
|
+
},
|
|
1686
|
+
o(r) {
|
|
1687
|
+
m(o.$$.fragment, r), a = !1;
|
|
1688
|
+
},
|
|
1689
|
+
d(r) {
|
|
1690
|
+
r && w(e), U(o);
|
|
1691
|
+
}
|
|
1692
|
+
};
|
|
1693
|
+
}
|
|
1694
|
+
function Te(i, e) {
|
|
1695
|
+
let n, t, l, s, o;
|
|
1696
|
+
const a = [jt, Lt], r = [];
|
|
1697
|
+
function f(u, c) {
|
|
1698
|
+
return (
|
|
1699
|
+
/*item*/
|
|
1700
|
+
u[13].text ? 0 : 1
|
|
1701
|
+
);
|
|
1702
|
+
}
|
|
1703
|
+
return t = f(e), l = r[t] = a[t](e), {
|
|
1704
|
+
key: i,
|
|
1705
|
+
first: null,
|
|
1706
|
+
c() {
|
|
1707
|
+
n = g("li"), l.c(), s = y(), _(n, "class", "[&>*]:last:mb-4 [&>*]:first:mt-4"), this.first = n;
|
|
1708
|
+
},
|
|
1709
|
+
m(u, c) {
|
|
1710
|
+
k(u, n, c), r[t].m(n, null), h(n, s), o = !0;
|
|
1711
|
+
},
|
|
1712
|
+
p(u, c) {
|
|
1713
|
+
e = u;
|
|
1714
|
+
let d = t;
|
|
1715
|
+
t = f(e), t === d ? r[t].p(e, c) : (F(), m(r[d], 1, 1, () => {
|
|
1716
|
+
r[d] = null;
|
|
1717
|
+
}), E(), l = r[t], l ? l.p(e, c) : (l = r[t] = a[t](e), l.c()), p(l, 1), l.m(n, s));
|
|
1718
|
+
},
|
|
1719
|
+
i(u) {
|
|
1720
|
+
o || (p(l), o = !0);
|
|
1721
|
+
},
|
|
1722
|
+
o(u) {
|
|
1723
|
+
m(l), o = !1;
|
|
1724
|
+
},
|
|
1725
|
+
d(u) {
|
|
1726
|
+
u && w(n), r[t].d();
|
|
1727
|
+
}
|
|
1728
|
+
};
|
|
1729
|
+
}
|
|
1730
|
+
function St(i) {
|
|
1731
|
+
let e = [], n = /* @__PURE__ */ new Map(), t, l, s = C(
|
|
1732
|
+
/*subNavigation*/
|
|
1733
|
+
i[0]
|
|
1734
|
+
);
|
|
1735
|
+
const o = (a) => (
|
|
1736
|
+
/*item*/
|
|
1737
|
+
a[13].text || /*item*/
|
|
1738
|
+
a[13].title
|
|
1739
|
+
);
|
|
1740
|
+
for (let a = 0; a < s.length; a += 1) {
|
|
1741
|
+
let r = ce(i, s, a), f = o(r);
|
|
1742
|
+
n.set(f, e[a] = Te(f, r));
|
|
1743
|
+
}
|
|
1744
|
+
return {
|
|
1745
|
+
c() {
|
|
1746
|
+
for (let a = 0; a < e.length; a += 1)
|
|
1747
|
+
e[a].c();
|
|
1748
|
+
t = B();
|
|
1749
|
+
},
|
|
1750
|
+
m(a, r) {
|
|
1751
|
+
for (let f = 0; f < e.length; f += 1)
|
|
1752
|
+
e[f] && e[f].m(a, r);
|
|
1753
|
+
k(a, t, r), l = !0;
|
|
1754
|
+
},
|
|
1755
|
+
p(a, r) {
|
|
1756
|
+
r[0] & /*subNavigation*/
|
|
1757
|
+
1 && (s = C(
|
|
1758
|
+
/*subNavigation*/
|
|
1759
|
+
a[0]
|
|
1760
|
+
), F(), e = le(e, r, o, 1, a, s, n, t.parentNode, ne, Te, t, ce), E());
|
|
1761
|
+
},
|
|
1762
|
+
i(a) {
|
|
1763
|
+
if (!l) {
|
|
1764
|
+
for (let r = 0; r < s.length; r += 1)
|
|
1765
|
+
p(e[r]);
|
|
1766
|
+
l = !0;
|
|
1767
|
+
}
|
|
1768
|
+
},
|
|
1769
|
+
o(a) {
|
|
1770
|
+
for (let r = 0; r < e.length; r += 1)
|
|
1771
|
+
m(e[r]);
|
|
1772
|
+
l = !1;
|
|
1773
|
+
},
|
|
1774
|
+
d(a) {
|
|
1775
|
+
a && w(t);
|
|
1776
|
+
for (let r = 0; r < e.length; r += 1)
|
|
1777
|
+
e[r].d(a);
|
|
1778
|
+
}
|
|
1779
|
+
};
|
|
1780
|
+
}
|
|
1781
|
+
function Tt(i) {
|
|
1782
|
+
let e, n;
|
|
1783
|
+
return e = new z({ props: { slot: "button", icon: Ge } }), {
|
|
1784
|
+
c() {
|
|
1785
|
+
j(e.$$.fragment);
|
|
1786
|
+
},
|
|
1787
|
+
m(t, l) {
|
|
1788
|
+
A(e, t, l), n = !0;
|
|
1789
|
+
},
|
|
1790
|
+
p: x,
|
|
1791
|
+
i(t) {
|
|
1792
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
1793
|
+
},
|
|
1794
|
+
o(t) {
|
|
1795
|
+
m(e.$$.fragment, t), n = !1;
|
|
1796
|
+
},
|
|
1797
|
+
d(t) {
|
|
1798
|
+
U(e, t);
|
|
1799
|
+
}
|
|
1800
|
+
};
|
|
1801
|
+
}
|
|
1802
|
+
function Et(i) {
|
|
1803
|
+
let e, n;
|
|
1804
|
+
return e = new P({
|
|
1805
|
+
props: {
|
|
1806
|
+
class: "relative h-full",
|
|
1807
|
+
buttonClass: "flex h-full items-center justify-center gap-2 px-4 transition-colors hover:bg-uofg-yellow aria-expanded:bg-uofg-yellow [&_svg]:aria-expanded:rotate-180",
|
|
1808
|
+
contentClass: "absolute right-0 top-full z-50 flex min-w-[20rem] flex-col bg-uofg-grey [&>li]:contents",
|
|
1809
|
+
as: "ul",
|
|
1810
|
+
$$slots: {
|
|
1811
|
+
button: [Rt],
|
|
1812
|
+
default: [Mt]
|
|
1813
|
+
},
|
|
1814
|
+
$$scope: { ctx: i }
|
|
1815
|
+
}
|
|
1816
|
+
}), {
|
|
1817
|
+
c() {
|
|
1818
|
+
j(e.$$.fragment);
|
|
1819
|
+
},
|
|
1820
|
+
m(t, l) {
|
|
1821
|
+
A(e, t, l), n = !0;
|
|
1822
|
+
},
|
|
1823
|
+
p(t, l) {
|
|
1824
|
+
const s = {};
|
|
1825
|
+
l[0] & /*subNavigation*/
|
|
1826
|
+
1 | l[1] & /*$$scope*/
|
|
1827
|
+
16 && (s.$$scope = { dirty: l, ctx: t }), e.$set(s);
|
|
1828
|
+
},
|
|
1829
|
+
i(t) {
|
|
1830
|
+
n || (p(e.$$.fragment, t), n = !0);
|
|
1831
|
+
},
|
|
1832
|
+
o(t) {
|
|
1833
|
+
m(e.$$.fragment, t), n = !1;
|
|
1834
|
+
},
|
|
1835
|
+
d(t) {
|
|
1836
|
+
U(e, t);
|
|
1837
|
+
}
|
|
1838
|
+
};
|
|
1839
|
+
}
|
|
1840
|
+
function Ft(i) {
|
|
1841
|
+
let e, n = (
|
|
1842
|
+
/*item*/
|
|
1843
|
+
i[13].text + ""
|
|
1844
|
+
), t, l, s, o = [
|
|
1845
|
+
{
|
|
1846
|
+
class: "flex h-full items-center justify-center gap-2 px-4 transition-colors hover:bg-uofg-yellow"
|
|
1847
|
+
},
|
|
1848
|
+
{
|
|
1849
|
+
href: s = /*item*/
|
|
1850
|
+
i[13].href
|
|
1851
|
+
},
|
|
1852
|
+
/*item*/
|
|
1853
|
+
i[13].attributes
|
|
1854
|
+
], a = {};
|
|
1855
|
+
for (let r = 0; r < o.length; r += 1)
|
|
1856
|
+
a = G(a, o[r]);
|
|
1857
|
+
return {
|
|
1858
|
+
c() {
|
|
1859
|
+
e = g("a"), t = T(n), l = y(), q(e, a);
|
|
1860
|
+
},
|
|
1861
|
+
m(r, f) {
|
|
1862
|
+
k(r, e, f), h(e, t), h(e, l);
|
|
1863
|
+
},
|
|
1864
|
+
p(r, f) {
|
|
1865
|
+
f[0] & /*subNavigation*/
|
|
1866
|
+
1 && n !== (n = /*item*/
|
|
1867
|
+
r[13].text + "") && V(t, n, a.contenteditable), q(e, a = D(o, [
|
|
1868
|
+
{
|
|
1869
|
+
class: "flex h-full items-center justify-center gap-2 px-4 transition-colors hover:bg-uofg-yellow"
|
|
1870
|
+
},
|
|
1871
|
+
f[0] & /*subNavigation*/
|
|
1872
|
+
1 && s !== (s = /*item*/
|
|
1873
|
+
r[13].href) && { href: s },
|
|
1874
|
+
f[0] & /*subNavigation*/
|
|
1875
|
+
1 && /*item*/
|
|
1876
|
+
r[13].attributes
|
|
1877
|
+
]));
|
|
1878
|
+
},
|
|
1879
|
+
i: x,
|
|
1880
|
+
o: x,
|
|
1881
|
+
d(r) {
|
|
1882
|
+
r && w(e);
|
|
1883
|
+
}
|
|
1884
|
+
};
|
|
1885
|
+
}
|
|
1886
|
+
function Ee(i) {
|
|
1887
|
+
let e, n, t = (
|
|
1888
|
+
/*link*/
|
|
1889
|
+
i[16].text + ""
|
|
1890
|
+
), l, s, o = [
|
|
1891
|
+
{
|
|
1892
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-yellow"
|
|
1893
|
+
},
|
|
1894
|
+
{
|
|
1895
|
+
href: s = /*link*/
|
|
1896
|
+
i[16].href
|
|
1897
|
+
},
|
|
1898
|
+
/*link*/
|
|
1899
|
+
i[16].attributes
|
|
1900
|
+
], a = {};
|
|
1901
|
+
for (let r = 0; r < o.length; r += 1)
|
|
1902
|
+
a = G(a, o[r]);
|
|
1903
|
+
return {
|
|
1904
|
+
c() {
|
|
1905
|
+
e = g("li"), n = g("a"), l = T(t), q(n, a);
|
|
1906
|
+
},
|
|
1907
|
+
m(r, f) {
|
|
1908
|
+
k(r, e, f), h(e, n), h(n, l);
|
|
1909
|
+
},
|
|
1910
|
+
p(r, f) {
|
|
1911
|
+
f[0] & /*subNavigation*/
|
|
1912
|
+
1 && t !== (t = /*link*/
|
|
1913
|
+
r[16].text + "") && V(l, t, a.contenteditable), q(n, a = D(o, [
|
|
1914
|
+
{
|
|
1915
|
+
class: "border-0 border-b border-solid border-uofg-grey-500 p-4 transition-colors hover:bg-uofg-yellow"
|
|
1916
|
+
},
|
|
1917
|
+
f[0] & /*subNavigation*/
|
|
1918
|
+
1 && s !== (s = /*link*/
|
|
1919
|
+
r[16].href) && { href: s },
|
|
1920
|
+
f[0] & /*subNavigation*/
|
|
1921
|
+
1 && /*link*/
|
|
1922
|
+
r[16].attributes
|
|
1923
|
+
]));
|
|
1924
|
+
},
|
|
1925
|
+
d(r) {
|
|
1926
|
+
r && w(e);
|
|
1927
|
+
}
|
|
1928
|
+
};
|
|
1929
|
+
}
|
|
1930
|
+
function Mt(i) {
|
|
1931
|
+
let e, n = C(
|
|
1932
|
+
/*item*/
|
|
1933
|
+
i[13].links
|
|
1934
|
+
), t = [];
|
|
1935
|
+
for (let l = 0; l < n.length; l += 1)
|
|
1936
|
+
t[l] = Ee(ge(i, n, l));
|
|
1937
|
+
return {
|
|
1938
|
+
c() {
|
|
1939
|
+
for (let l = 0; l < t.length; l += 1)
|
|
1940
|
+
t[l].c();
|
|
1941
|
+
e = y();
|
|
1942
|
+
},
|
|
1943
|
+
m(l, s) {
|
|
1944
|
+
for (let o = 0; o < t.length; o += 1)
|
|
1945
|
+
t[o] && t[o].m(l, s);
|
|
1946
|
+
k(l, e, s);
|
|
1947
|
+
},
|
|
1948
|
+
p(l, s) {
|
|
1949
|
+
if (s[0] & /*subNavigation*/
|
|
1950
|
+
1) {
|
|
1951
|
+
n = C(
|
|
1952
|
+
/*item*/
|
|
1953
|
+
l[13].links
|
|
1954
|
+
);
|
|
1955
|
+
let o;
|
|
1956
|
+
for (o = 0; o < n.length; o += 1) {
|
|
1957
|
+
const a = ge(l, n, o);
|
|
1958
|
+
t[o] ? t[o].p(a, s) : (t[o] = Ee(a), t[o].c(), t[o].m(e.parentNode, e));
|
|
1959
|
+
}
|
|
1960
|
+
for (; o < t.length; o += 1)
|
|
1961
|
+
t[o].d(1);
|
|
1962
|
+
t.length = n.length;
|
|
1963
|
+
}
|
|
1964
|
+
},
|
|
1965
|
+
d(l) {
|
|
1966
|
+
l && w(e), H(t, l);
|
|
1967
|
+
}
|
|
1968
|
+
};
|
|
1969
|
+
}
|
|
1970
|
+
function Rt(i) {
|
|
1971
|
+
let e, n, t = (
|
|
1972
|
+
/*item*/
|
|
1973
|
+
i[13].title + ""
|
|
1974
|
+
), l, s, o, a, r;
|
|
1975
|
+
return o = new z({ props: { icon: X } }), {
|
|
1976
|
+
c() {
|
|
1977
|
+
e = g("span"), n = g("span"), l = T(t), s = y(), j(o.$$.fragment), a = y(), _(e, "class", "flex gap-2 [&>svg]:transition-transform"), _(e, "slot", "button");
|
|
1978
|
+
},
|
|
1979
|
+
m(f, u) {
|
|
1980
|
+
k(f, e, u), h(e, n), h(n, l), h(e, s), A(o, e, null), h(e, a), r = !0;
|
|
1981
|
+
},
|
|
1982
|
+
p(f, u) {
|
|
1983
|
+
(!r || u[0] & /*subNavigation*/
|
|
1984
|
+
1) && t !== (t = /*item*/
|
|
1985
|
+
f[13].title + "") && Y(l, t);
|
|
1986
|
+
},
|
|
1987
|
+
i(f) {
|
|
1988
|
+
r || (p(o.$$.fragment, f), r = !0);
|
|
1989
|
+
},
|
|
1990
|
+
o(f) {
|
|
1991
|
+
m(o.$$.fragment, f), r = !1;
|
|
1992
|
+
},
|
|
1993
|
+
d(f) {
|
|
1994
|
+
f && w(e), U(o);
|
|
1995
|
+
}
|
|
1996
|
+
};
|
|
1997
|
+
}
|
|
1998
|
+
function Fe(i, e) {
|
|
1999
|
+
let n, t, l, s, o;
|
|
2000
|
+
const a = [Ft, Et], r = [];
|
|
2001
|
+
function f(u, c) {
|
|
2002
|
+
return (
|
|
2003
|
+
/*item*/
|
|
2004
|
+
u[13].text ? 0 : 1
|
|
2005
|
+
);
|
|
2006
|
+
}
|
|
2007
|
+
return t = f(e), l = r[t] = a[t](e), {
|
|
2008
|
+
key: i,
|
|
2009
|
+
first: null,
|
|
2010
|
+
c() {
|
|
2011
|
+
n = B(), l.c(), s = B(), this.first = n;
|
|
2012
|
+
},
|
|
2013
|
+
m(u, c) {
|
|
2014
|
+
k(u, n, c), r[t].m(u, c), k(u, s, c), o = !0;
|
|
2015
|
+
},
|
|
2016
|
+
p(u, c) {
|
|
2017
|
+
e = u;
|
|
2018
|
+
let d = t;
|
|
2019
|
+
t = f(e), t === d ? r[t].p(e, c) : (F(), m(r[d], 1, 1, () => {
|
|
2020
|
+
r[d] = null;
|
|
2021
|
+
}), E(), l = r[t], l ? l.p(e, c) : (l = r[t] = a[t](e), l.c()), p(l, 1), l.m(s.parentNode, s));
|
|
2022
|
+
},
|
|
2023
|
+
i(u) {
|
|
2024
|
+
o || (p(l), o = !0);
|
|
2025
|
+
},
|
|
2026
|
+
o(u) {
|
|
2027
|
+
m(l), o = !1;
|
|
2028
|
+
},
|
|
2029
|
+
d(u) {
|
|
2030
|
+
u && (w(n), w(s)), r[t].d(u);
|
|
2031
|
+
}
|
|
2032
|
+
};
|
|
2033
|
+
}
|
|
2034
|
+
function qt(i) {
|
|
2035
|
+
let e, n, t, l, s, o, a, r, f, u, c, d, N;
|
|
2036
|
+
Oe(
|
|
2037
|
+
/*onwindowresize*/
|
|
2038
|
+
i[10]
|
|
2039
|
+
);
|
|
2040
|
+
let b = (
|
|
2041
|
+
/*windowWidth*/
|
|
2042
|
+
i[3] >= O && ve(i)
|
|
2043
|
+
), v = (
|
|
2044
|
+
/*windowWidth*/
|
|
2045
|
+
i[3] >= O && xe()
|
|
2046
|
+
);
|
|
2047
|
+
function Q($, M) {
|
|
2048
|
+
return (
|
|
2049
|
+
/*windowWidth*/
|
|
2050
|
+
$[3] >= O ? _t : ct
|
|
2051
|
+
);
|
|
2052
|
+
}
|
|
2053
|
+
let S = Q(i), W = S(i);
|
|
2054
|
+
const re = [gt, ht], I = [];
|
|
2055
|
+
function oe($, M) {
|
|
2056
|
+
return (
|
|
2057
|
+
/*windowWidth*/
|
|
2058
|
+
$[3] >= O ? 0 : 1
|
|
2059
|
+
);
|
|
2060
|
+
}
|
|
2061
|
+
r = oe(i), f = I[r] = re[r](i);
|
|
2062
|
+
let L = (
|
|
2063
|
+
/*subNavigation*/
|
|
2064
|
+
(i[0].length > 0 || /*pageTitle*/
|
|
2065
|
+
i[1]) && Ae(i)
|
|
2066
|
+
);
|
|
2067
|
+
return {
|
|
2068
|
+
c() {
|
|
2069
|
+
e = g("header"), b && b.c(), n = y(), t = g("nav"), l = g("div"), v && v.c(), s = y(), o = g("a"), W.c(), a = y(), f.c(), u = y(), L && L.c(), _(o, "class", "flex 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)]"), _(o, "href", "https://www.uoguelph.ca"), _(o, "aria-label", "University of Guelph Home Page"), _(l, "class", "flex w-fit"), _(t, "class", "relative w-full justify-between flex h-[5rem] lg:h-[10rem] bg-black px-[calc((100%-1320px)/2)] text-3xl text-white"), _(t, "aria-label", "Primary"), _(e, "class", "relative w-full font-condensed text-3xl text-black");
|
|
2070
|
+
},
|
|
2071
|
+
m($, M) {
|
|
2072
|
+
k($, e, M), b && b.m(e, null), h(e, n), h(e, t), h(t, l), v && v.m(l, null), h(l, s), h(l, o), W.m(o, null), h(t, a), I[r].m(t, null), h(e, u), L && L.m(e, null), c = !0, d || (N = ee(
|
|
2073
|
+
He,
|
|
2074
|
+
"resize",
|
|
2075
|
+
/*onwindowresize*/
|
|
2076
|
+
i[10]
|
|
2077
|
+
), d = !0);
|
|
2078
|
+
},
|
|
2079
|
+
p($, M) {
|
|
2080
|
+
/*windowWidth*/
|
|
2081
|
+
$[3] >= O ? b ? (b.p($, M), M[0] & /*windowWidth*/
|
|
2082
|
+
8 && p(b, 1)) : (b = ve($), b.c(), p(b, 1), b.m(e, n)) : b && (F(), m(b, 1, 1, () => {
|
|
2083
|
+
b = null;
|
|
2084
|
+
}), E()), /*windowWidth*/
|
|
2085
|
+
$[3] >= O ? v || (v = xe(), v.c(), v.m(l, s)) : v && (v.d(1), v = null), S !== (S = Q($)) && (W.d(1), W = S($), W && (W.c(), W.m(o, null)));
|
|
2086
|
+
let Z = r;
|
|
2087
|
+
r = oe($), r === Z ? I[r].p($, M) : (F(), m(I[Z], 1, 1, () => {
|
|
2088
|
+
I[Z] = null;
|
|
2089
|
+
}), E(), f = I[r], f ? f.p($, M) : (f = I[r] = re[r]($), f.c()), p(f, 1), f.m(t, null)), /*subNavigation*/
|
|
2090
|
+
$[0].length > 0 || /*pageTitle*/
|
|
2091
|
+
$[1] ? L ? (L.p($, M), M[0] & /*subNavigation, pageTitle*/
|
|
2092
|
+
3 && p(L, 1)) : (L = Ae($), L.c(), p(L, 1), L.m(e, null)) : L && (F(), m(L, 1, 1, () => {
|
|
2093
|
+
L = null;
|
|
2094
|
+
}), E());
|
|
2095
|
+
},
|
|
2096
|
+
i($) {
|
|
2097
|
+
c || (p(b), p(f), p(L), c = !0);
|
|
2098
|
+
},
|
|
2099
|
+
o($) {
|
|
2100
|
+
m(b), m(f), m(L), c = !1;
|
|
2101
|
+
},
|
|
2102
|
+
d($) {
|
|
2103
|
+
$ && w(e), b && b.d(), v && v.d(), W.d(), I[r].d(), L && L.d(), d = !1, N();
|
|
2104
|
+
}
|
|
2105
|
+
};
|
|
2106
|
+
}
|
|
2107
|
+
const O = 1024, zt = 35;
|
|
2108
|
+
function Bt(i, e, n) {
|
|
2109
|
+
const t = [
|
|
2110
|
+
{
|
|
2111
|
+
text: "Give",
|
|
2112
|
+
href: "https://bbis.alumni.uoguelph.ca/BBIS_Cannon/give/uofg"
|
|
2113
|
+
},
|
|
2114
|
+
{
|
|
2115
|
+
text: "News",
|
|
2116
|
+
href: "https://news.uoguelph.ca/"
|
|
2117
|
+
},
|
|
2118
|
+
{
|
|
2119
|
+
text: "Quick Links",
|
|
2120
|
+
links: [
|
|
2121
|
+
{
|
|
2122
|
+
text: "Future Students",
|
|
2123
|
+
href: "https://uoguelph.ca/future-ready"
|
|
2124
|
+
},
|
|
2125
|
+
{
|
|
2126
|
+
text: "Current Students",
|
|
2127
|
+
href: "https://www.uoguelph.ca/students"
|
|
2128
|
+
},
|
|
2129
|
+
{
|
|
2130
|
+
text: "Alumni & Donors",
|
|
2131
|
+
href: "https://alumni.uoguelph.ca/"
|
|
2132
|
+
},
|
|
2133
|
+
{
|
|
2134
|
+
text: "Faculty & Staff",
|
|
2135
|
+
href: "https://www.uoguelph.ca/faculty"
|
|
2136
|
+
},
|
|
2137
|
+
{
|
|
2138
|
+
text: "Employers & Partners",
|
|
2139
|
+
href: "https://cecs.uoguelph.ca/employers-institutions"
|
|
2140
|
+
}
|
|
2141
|
+
]
|
|
2142
|
+
},
|
|
2143
|
+
{
|
|
2144
|
+
text: "APPLY NOW",
|
|
2145
|
+
href: "https://uoguelph.ca/apply/",
|
|
2146
|
+
highlight: !0
|
|
2147
|
+
}
|
|
2148
|
+
], l = [
|
|
2149
|
+
{
|
|
2150
|
+
text: "About",
|
|
2151
|
+
href: "https://uoguelph.ca/about"
|
|
2152
|
+
},
|
|
2153
|
+
{
|
|
2154
|
+
text: "Academics",
|
|
2155
|
+
href: "https://www.uoguelph.ca/explore-all-programs/"
|
|
2156
|
+
},
|
|
2157
|
+
{
|
|
2158
|
+
text: "Admission",
|
|
2159
|
+
href: "https://uoguelph.ca/admissions"
|
|
2160
|
+
},
|
|
2161
|
+
{
|
|
2162
|
+
text: "Research",
|
|
2163
|
+
href: "https://uoguelph.ca/research"
|
|
2164
|
+
},
|
|
2165
|
+
{
|
|
2166
|
+
text: "Student Life",
|
|
2167
|
+
href: "https://www.uoguelph.ca/studentexperience/"
|
|
2168
|
+
}
|
|
2169
|
+
], s = {
|
|
2170
|
+
text: "Search the University of Guelph",
|
|
2171
|
+
href: "https://uoguelph.ca/search",
|
|
2172
|
+
icon: Ke
|
|
2173
|
+
}, o = {
|
|
2174
|
+
text: "Account Menu",
|
|
2175
|
+
links: [
|
|
2176
|
+
{
|
|
2177
|
+
text: "Intranet",
|
|
2178
|
+
href: "https://intranet.uoguelph.ca/"
|
|
2179
|
+
},
|
|
2180
|
+
{
|
|
2181
|
+
text: "WebAdvisor",
|
|
2182
|
+
href: "https://www.uoguelph.ca/webadvisor/"
|
|
2183
|
+
},
|
|
2184
|
+
{
|
|
2185
|
+
text: "GryphMail",
|
|
2186
|
+
href: "https://mail.uoguelph.ca/"
|
|
2187
|
+
},
|
|
2188
|
+
{
|
|
2189
|
+
text: "CourseLink",
|
|
2190
|
+
href: "https://courselink.uoguelph.ca/"
|
|
2191
|
+
},
|
|
2192
|
+
{
|
|
2193
|
+
text: "GryphLife",
|
|
2194
|
+
href: "https://gryphlife.uoguelph.ca/"
|
|
2195
|
+
}
|
|
2196
|
+
],
|
|
2197
|
+
icon: Ve
|
|
2198
|
+
};
|
|
2199
|
+
let a, r, f = !1, { subNavigation: u } = e, { pageTitle: c } = e, { pageURL: d } = e;
|
|
2200
|
+
function N() {
|
|
2201
|
+
n(3, a = He.innerWidth);
|
|
2202
|
+
}
|
|
2203
|
+
function b(v) {
|
|
2204
|
+
Xe[v ? "unshift" : "push"](() => {
|
|
2205
|
+
r = v, n(4, r);
|
|
2206
|
+
});
|
|
2207
|
+
}
|
|
2208
|
+
return i.$$set = (v) => {
|
|
2209
|
+
"subNavigation" in v && n(0, u = v.subNavigation), "pageTitle" in v && n(1, c = v.pageTitle), "pageURL" in v && n(2, d = v.pageURL);
|
|
2210
|
+
}, i.$$.update = () => {
|
|
2211
|
+
i.$$.dirty[0] & /*windowWidth, subNavigationElement, subNavigationIsOverflowing*/
|
|
2212
|
+
56 && window.requestAnimationFrame(() => {
|
|
2213
|
+
a >= O && r && !f && n(5, f = r.offsetWidth > r.parentElement.offsetWidth);
|
|
2214
|
+
});
|
|
2215
|
+
}, [
|
|
2216
|
+
u,
|
|
2217
|
+
c,
|
|
2218
|
+
d,
|
|
2219
|
+
a,
|
|
2220
|
+
r,
|
|
2221
|
+
f,
|
|
2222
|
+
t,
|
|
2223
|
+
l,
|
|
2224
|
+
s,
|
|
2225
|
+
o,
|
|
2226
|
+
N,
|
|
2227
|
+
b
|
|
2228
|
+
];
|
|
2229
|
+
}
|
|
2230
|
+
class Wt extends Re {
|
|
2231
|
+
constructor(e) {
|
|
2232
|
+
super(), qe(
|
|
2233
|
+
this,
|
|
2234
|
+
e,
|
|
2235
|
+
Bt,
|
|
2236
|
+
qt,
|
|
2237
|
+
te,
|
|
2238
|
+
{
|
|
2239
|
+
subNavigation: 0,
|
|
2240
|
+
pageTitle: 1,
|
|
2241
|
+
pageURL: 2
|
|
2242
|
+
},
|
|
2243
|
+
null,
|
|
2244
|
+
[-1, -1]
|
|
2245
|
+
);
|
|
2246
|
+
}
|
|
2247
|
+
get subNavigation() {
|
|
2248
|
+
return this.$$.ctx[0];
|
|
2249
|
+
}
|
|
2250
|
+
set subNavigation(e) {
|
|
2251
|
+
this.$$set({ subNavigation: e }), R();
|
|
2252
|
+
}
|
|
2253
|
+
get pageTitle() {
|
|
2254
|
+
return this.$$.ctx[1];
|
|
2255
|
+
}
|
|
2256
|
+
set pageTitle(e) {
|
|
2257
|
+
this.$$set({ pageTitle: e }), R();
|
|
2258
|
+
}
|
|
2259
|
+
get pageURL() {
|
|
2260
|
+
return this.$$.ctx[2];
|
|
2261
|
+
}
|
|
2262
|
+
set pageURL(e) {
|
|
2263
|
+
this.$$set({ pageURL: e }), R();
|
|
2264
|
+
}
|
|
2265
|
+
}
|
|
2266
|
+
customElements.define("uofg-header", Me(Wt, { subNavigation: {}, pageTitle: { reflect: !0, type: "String", attribute: "page-title" }, pageURL: { reflect: !0, type: "String", attribute: "page-url" } }, [], [], !0, (i) => class extends i {
|
|
2267
|
+
constructor() {
|
|
2268
|
+
super(), Ye(this.shadowRoot);
|
|
2269
|
+
}
|
|
2270
|
+
connectedCallback() {
|
|
2271
|
+
super.connectedCallback(), this.updateSubNavigation(), this.observer ?? (this.observer = new MutationObserver(() => {
|
|
2272
|
+
this.updateSubNavigation();
|
|
2273
|
+
})), this.observer.observe(this, { childList: !0, subtree: !0 });
|
|
2274
|
+
}
|
|
2275
|
+
disconnectedCallback() {
|
|
2276
|
+
super.disconnectedCallback(), this.observer.disconnect();
|
|
2277
|
+
}
|
|
2278
|
+
updateSubNavigation() {
|
|
2279
|
+
const e = (n) => {
|
|
2280
|
+
const t = {};
|
|
2281
|
+
return n.getAttributeNames().filter((l) => l !== "href").forEach((l) => t[l] = n.getAttribute(l)), {
|
|
2282
|
+
href: n.getAttribute("href"),
|
|
2283
|
+
text: n.textContent,
|
|
2284
|
+
attributes: t
|
|
2285
|
+
};
|
|
2286
|
+
};
|
|
2287
|
+
this.subNavigation = Array.from(this.children).filter((n) => n.tagName === "A" || n.tagName === "UL").map((n) => {
|
|
2288
|
+
switch (n.tagName) {
|
|
2289
|
+
case "A":
|
|
2290
|
+
return e(n);
|
|
2291
|
+
case "UL":
|
|
2292
|
+
const t = {
|
|
2293
|
+
title: n.getAttribute("data-title"),
|
|
2294
|
+
links: Array.from(n.querySelectorAll("a")).map(e)
|
|
2295
|
+
};
|
|
2296
|
+
return t.wrapContent = t.links.reduce(
|
|
2297
|
+
(l, s) => (s.text.length > zt && (l = !0), l),
|
|
2298
|
+
!1
|
|
2299
|
+
), t;
|
|
2300
|
+
}
|
|
2301
|
+
}).filter((n) => !!n);
|
|
2302
|
+
}
|
|
2303
|
+
}));
|
|
2304
|
+
export {
|
|
2305
|
+
Wt as default
|
|
2306
|
+
};
|