@uoguelph/web-components 1.9.1-rc.0 → 1.9.1-rc.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,27 +1,42 @@
1
- import { c as m, e as z, p as M, t as x, H as P, b as h, d as N, k as L, r as s, h as n, a as _, C as F, o as g, I as w, J as I, K as q, L as B, M as J, N as K, O as Z, P as Q, Q as ee, R as T, T as te, U as ae, F as re, V as U, i as se, s as oe, j as ie, x as H, W as A, g as v, X as le, l as ne } from "./bundle-mjs-BTgoI2Ah.js";
2
- import { i as $, s as ce } from "./legacy-BVWTAdcf.js";
3
- var ue = x('<li class="p-3"><a class="text-blue decoration-transparent transition-all hover:text-blue-focus hover:underline hover:decoration-current focus:text-blue-focus focus:underline focus:decoration-current"> </a></li>'), fe = x('<ul class="flex flex-wrap items-center justify-center bg-white p-3 px-[max(calc((100%-1320px)/2),2rem)]"></ul>');
4
- function O(i, e) {
5
- z(e, !0);
6
- let t = M(e, "links", 7);
7
- var o = fe();
8
- return P(o, 21, t, I, (r, c) => {
9
- let l = () => g(c).text, f = () => g(c).href;
10
- var a = ue(), u = n(a), d = n(u, !0);
11
- s(u), s(a), _(() => {
12
- F(u, "href", f()), w(d, l());
13
- }), h(r, a);
14
- }), s(o), h(i, o), N({
1
+ import { c as z, p as I, a as T, t as $, H as D, e as y, g as V, h as N, i as u, j as S, k as U, r as n, d as g, C as X, m as h, I as L, J as E, K as ue, L as fe, M as he, N as de, O as pe, P as ve, Q as ge, R as B, T as xe, U as we, V as A, F as me, W as te, X as be, Y as _e, Z as W, s as M, _ as J, $ as Z, a0 as K, w as O, a1 as R, v as ke, u as Q, q as ye, b as Me } from "./index-C4pxMwQ8.js";
2
+ import { o as $e } from "./index-client-CXlOM-p3.js";
3
+ import { c as Y } from "./index-O5kp37c8.js";
4
+ import { i as j, s as Ce } from "./legacy-Dg274yvM.js";
5
+ var Le = $("<li><a> </a></li>"), Ve = $("<ul></ul>");
6
+ function se(d, e) {
7
+ I(e, !0);
8
+ let i = T(e, "links", 7);
9
+ const l = Y({
10
+ slots: {
11
+ base: "flex flex-wrap items-center justify-center bg-white p-3 px-[max(calc((100%-1320px)/2),2rem)]",
12
+ item: "p-3",
13
+ links: "text-blue decoration-transparent transition-all hover:text-blue-focus hover:underline hover:decoration-current focus:text-blue-focus focus:underline focus:decoration-current"
14
+ }
15
+ }), { base: m, item: c, links: f } = l();
16
+ var s = Ve();
17
+ return D(s, 21, i, E, (r, t) => {
18
+ let v = () => h(t).text, o = () => h(t).href;
19
+ var x = Le(), w = g(x), b = g(w, !0);
20
+ n(w), n(x), y(
21
+ (p, C) => {
22
+ N(x, 1, p), N(w, 1, C), X(w, "href", o()), L(b, v());
23
+ },
24
+ [
25
+ () => V(c()),
26
+ () => V(f())
27
+ ]
28
+ ), u(r, x);
29
+ }), n(s), y((r) => N(s, 1, r), [() => V(m())]), u(d, s), S({
15
30
  get links() {
16
- return t();
31
+ return i();
17
32
  },
18
33
  set links(r) {
19
- t(r), L();
34
+ i(r), U();
20
35
  }
21
36
  });
22
37
  }
23
- m(O, { links: {} }, [], [], !0);
24
- var he = q(`<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 718.9 79.5"><defs><style>.st0 {
38
+ z(se, { links: {} }, [], [], !0);
39
+ var Ne = ue(`<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 718.9 79.5"><defs><style>.st0 {
25
40
  fill: #fff;
26
41
  font-family: MyriadPro-Regular, 'Myriad Pro';
27
42
  font-size: 44.3px;
@@ -38,339 +53,436 @@ var he = q(`<svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" version="1.1" v
38
53
  .st3 {
39
54
  fill: #e51937;
40
55
  }</style></defs><g><rect class="st2" x="1.5" y="1.5" width="715.9" height="76.5"></rect><path class="st3" d="M715.9,3v73.5H3V3h712.9M718.9,0H0v79.5h718.9V0h0Z"></path></g><g class="st1"><text class="st0" transform="translate(107.3 54.3)"><tspan x="0" y="0">IMP</tspan></text><text class="st0" transform="translate(177 54.3)"><tspan x="0" y="0">R</tspan></text><text class="st0" transform="translate(201 54.3)"><tspan x="0" y="0">OVE LIFE NO PADDING</tspan></text></g></svg>`);
41
- function R(i) {
42
- var e = he();
43
- h(i, e);
56
+ function ae(d) {
57
+ var e = Ne();
58
+ u(d, e);
44
59
  }
45
- m(R, {}, [], [], !0);
46
- var de = x('<a href="https://www.uoguelph.ca/improve-life" aria-label="Improve Life" class="flex transition-opacity hover:opacity-75 focus:opacity-75 md:h-[3.5em] [&amp;>svg]:block [&amp;>svg]:w-full"><!></a>');
47
- function D(i) {
48
- var e = de(), t = n(e);
49
- R(t), s(e), h(i, e);
60
+ z(ae, {}, [], [], !0);
61
+ var ze = $('<a href="https://www.uoguelph.ca/improve-life" aria-label="Improve Life" class="row-span-2 flex h-[4.8rem] w-full overflow-hidden transition-opacity hover:opacity-75 focus:opacity-75 md:h-[3.5em] [&amp;>svg]:block [&amp;>svg]:h-full [&amp;>svg]:w-full"><!></a>');
62
+ function re(d) {
63
+ var e = ze(), i = g(e);
64
+ ae(i), n(e), u(d, e);
50
65
  }
51
- m(D, {}, [], [], !0);
66
+ z(re, {}, [], [], !0);
52
67
  /*!
53
68
  * Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
54
69
  * License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
55
70
  * Copyright 2024 Fonticons, Inc.
56
71
  */
57
- const pe = {
72
+ const He = {
58
73
  prefix: "fab",
59
74
  iconName: "linkedin-in",
60
75
  icon: [448, 512, [], "f0e1", "M100.28 448H7.4V148.9h92.88zM53.79 108.1C24.09 108.1 0 83.5 0 53.8a53.79 53.79 0 0 1 107.58 0c0 29.7-24.1 54.3-53.79 54.3zM447.9 448h-92.68V302.4c0-34.7-.7-79.2-48.29-79.2-48.29 0-55.69 37.7-55.69 76.7V448h-92.78V148.9h89.08v40.8h1.3c12.4-23.5 42.69-48.3 87.88-48.3 94 0 111.28 61.9 111.28 142.3V448z"]
61
- }, ve = {
76
+ }, Ae = {
62
77
  prefix: "fab",
63
78
  iconName: "facebook-f",
64
79
  icon: [320, 512, [], "f39e", "M80 299.3V512H196V299.3h86.5l18-97.8H196V166.9c0-51.7 20.3-71.5 72.7-71.5c16.3 0 29.4 .4 37 1.2V7.9C291.4 4 256.4 0 236.2 0C129.3 0 80 50.5 80 159.4v42.1H14v97.8H80z"]
65
- }, ge = {
80
+ }, Pe = {
66
81
  prefix: "fab",
67
82
  iconName: "x-twitter",
68
83
  icon: [512, 512, [], "e61b", "M389.2 48h70.6L305.6 224.2 487 464H345L233.7 318.6 106.5 464H35.8L200.7 275.5 26.8 48H172.4L272.9 180.9 389.2 48zM364.4 421.8h39.1L151.1 88h-42L364.4 421.8z"]
69
- }, xe = {
84
+ }, Ie = {
70
85
  prefix: "fab",
71
86
  iconName: "tiktok",
72
87
  icon: [448, 512, [], "e07b", "M448,209.91a210.06,210.06,0,0,1-122.77-39.25V349.38A162.55,162.55,0,1,1,185,188.31V278.2a74.62,74.62,0,1,0,52.23,71.18V0l88,0a121.18,121.18,0,0,0,1.86,22.17h0A122.18,122.18,0,0,0,381,102.39a121.43,121.43,0,0,0,67,20.14Z"]
73
- }, be = {
88
+ }, Se = {
74
89
  prefix: "fab",
75
90
  iconName: "instagram",
76
91
  icon: [448, 512, [], "f16d", "M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"]
77
- }, we = {
92
+ }, Fe = {
78
93
  prefix: "fab",
79
94
  iconName: "youtube",
80
95
  icon: [576, 512, [61802], "f167", "M549.655 124.083c-6.281-23.65-24.787-42.276-48.284-48.597C458.781 64 288 64 288 64S117.22 64 74.629 75.486c-23.497 6.322-42.003 24.947-48.284 48.597-11.412 42.867-11.412 132.305-11.412 132.305s0 89.438 11.412 132.305c6.281 23.65 24.787 41.5 48.284 47.821C117.22 448 288 448 288 448s170.78 0 213.371-11.486c23.497-6.321 42.003-24.171 48.284-47.821 11.412-42.867 11.412-132.305 11.412-132.305s0-89.438-11.412-132.305zm-317.51 213.508V175.185l142.739 81.205-142.739 81.201z"]
81
- }, E = {
96
+ }, oe = {
82
97
  directory: "https://www.uoguelph.ca/web/socialmedia/",
83
98
  links: [
84
99
  {
85
100
  text: "X",
86
- icon: ge,
101
+ icon: Pe,
87
102
  href: "https://twitter.com/uofg",
88
103
  classes: "focus:text-black hover:text-black focus:bg-white hover:bg-white"
89
104
  },
90
105
  {
91
106
  text: "Facebook",
92
- icon: ve,
107
+ icon: Ae,
93
108
  href: "https://www.facebook.com/uofguelph",
94
109
  classes: "focus:text-white hover:text-white focus:bg-[#0866ff] hover:bg-[#0866ff]"
95
110
  },
96
111
  {
97
112
  text: "Instagram",
98
- icon: be,
113
+ icon: Se,
99
114
  href: "https://www.instagram.com/uofguelph/",
100
115
  classes: "focus:text-white hover:text-white focus:bg-[#d62976] hover:bg-[#d62976]"
101
116
  },
102
117
  {
103
118
  text: "Youtube",
104
- icon: we,
119
+ icon: Fe,
105
120
  href: "https://www.youtube.com/user/uofguelph",
106
121
  classes: "focus:text-white hover:text-white focus:bg-[#ff0000] hover:bg-[#ff0000]"
107
122
  },
108
123
  {
109
124
  text: "LinkedIn",
110
- icon: pe,
125
+ icon: He,
111
126
  href: "https://www.linkedin.com/school/university-of-guelph/",
112
127
  classes: "focus:text-white hover:text-white focus:bg-[#0a66c2] hover:bg-[#0a66c2]"
113
128
  },
114
129
  {
115
130
  text: "TikTok",
116
- icon: xe,
131
+ icon: Ie,
117
132
  href: "https://www.tiktok.com/@uofguelph",
118
133
  classes: "focus:text-black hover:text-black focus:bg-white hover:bg-white"
119
134
  }
120
135
  ]
121
- }, me = [
136
+ }, ee = [
122
137
  {
123
138
  text: "Accessibility",
124
- icon: B,
139
+ icon: fe,
125
140
  href: "https://www.uoguelph.ca/diversity-human-rights/accessibility-u-g"
126
141
  },
127
142
  {
128
143
  text: "Privacy",
129
- icon: J,
144
+ icon: he,
130
145
  href: "https://www.uoguelph.ca/web/privacy/"
131
146
  },
132
147
  {
133
148
  text: "Site Map",
134
- icon: K,
149
+ icon: de,
135
150
  href: "https://www.uoguelph.ca/sitemap"
136
151
  },
137
152
  {
138
153
  text: "Status Page",
139
- icon: Z,
154
+ icon: pe,
140
155
  href: "https://uoguelph.statuspage.io/"
141
156
  },
142
157
  {
143
158
  text: "Land Acknowledgement",
144
- icon: Q,
159
+ icon: ve,
145
160
  href: "https://www.uoguelph.ca/land-acknowledgement/",
146
- title: "The University of Guelph resides on the treaty lands and territory of the Mississaugas of the Credit. We recognize that today this gathering place is home to many First Nations, Inuit and Métis peoples and acknowledging them reminds us of our collective responsibility to the land where we learn and work."
161
+ attributes: {
162
+ title: "The University of Guelph resides on the treaty lands and territory of the Mississaugas of the Credit. We recognize that today this gathering place is home to many First Nations, Inuit and Métis peoples and acknowledging them reminds us of our collective responsibility to the land where we learn and work."
163
+ }
147
164
  },
148
165
  {
149
166
  text: "Careers",
150
- icon: ee,
167
+ icon: ge,
151
168
  href: "https://careers.uoguelph.ca/"
152
169
  },
153
170
  {
154
171
  text: "Undergraduate Calendar",
155
- icon: T,
172
+ icon: B,
156
173
  href: "https://www.uoguelph.ca/registrar/calendars/undergraduate/current/"
157
174
  },
158
175
  {
159
176
  text: "Graduate Calendar",
160
- icon: T,
177
+ icon: B,
161
178
  href: "https://www.uoguelph.ca/registrar/calendars/graduate/current/"
162
179
  },
163
180
  {
164
181
  text: "Admission",
165
- icon: te,
182
+ icon: xe,
166
183
  href: "https://uoguelph.ca/admission"
167
184
  },
168
185
  {
169
186
  text: "Give to U of G",
170
- icon: ae,
187
+ icon: we,
171
188
  href: "https://www.alumni.uoguelph.ca/give-to-guelph/how-to-give"
172
189
  }
173
- ], C = {
190
+ ], H = {
174
191
  title: "University of Guelph",
175
192
  street: "50 Stone Road East",
176
193
  city: "Guelph",
177
194
  postalCode: "N1G 2W1",
178
195
  phoneNumber: "519-824-4120"
179
196
  };
180
- var ke = x("<li><a><!></a></li>"), ye = x('<ul class="flex gap-2 text-xl [&amp;>li]:contents"></ul>');
181
- function j(i, e) {
182
- z(e, !1), $();
183
- var t = ye();
184
- P(t, 5, () => E.links, I, (o, r) => {
185
- let c = () => g(r).href, l = () => g(r).text, f = () => g(r).icon, a = () => g(r).classes;
186
- var u = ke(), d = n(u), k = n(d);
187
- re(k, {
197
+ var Ge = $("<li><a><!></a></li>"), Te = $("<ul></ul>");
198
+ function ne(d, e) {
199
+ I(e, !1);
200
+ const i = Y({
201
+ slots: {
202
+ base: "flex gap-2 text-lg [&>li]:contents",
203
+ links: "border border-current p-0.5 transition-colors hover:border-transparent focus:border-transparent [&>*]:aspect-square"
204
+ }
205
+ }), { base: l, links: m } = i();
206
+ j();
207
+ var c = Te();
208
+ D(c, 5, () => oe.links, E, (f, s, r, t) => {
209
+ let v = () => h(s).href, o = () => h(s).text, x = () => h(s).icon, w = () => h(s).classes;
210
+ var b = Ge(), p = g(b), C = g(p);
211
+ me(C, {
188
212
  get icon() {
189
- return f();
213
+ return x();
190
214
  }
191
- }), s(d), s(u), _(
192
- (b) => {
193
- F(d, "href", c()), F(d, "aria-label", l()), oe(d, 1, ie(b));
215
+ }), n(p), n(b), y(
216
+ (a) => {
217
+ X(p, "href", v()), X(p, "aria-label", o()), N(p, 1, a);
194
218
  },
195
219
  [
196
- () => se("border border-current p-1 transition-colors hover:border-transparent focus:border-transparent [&>*]:aspect-square", a())
220
+ () => V(te(m(), w()))
197
221
  ],
198
- U
199
- ), h(o, u);
200
- }), s(t), h(i, t), N();
222
+ A
223
+ ), u(f, b);
224
+ }), n(c), y((f) => N(c, 1, f), [() => V(l())], A), u(d, c), S();
201
225
  }
202
- m(j, {}, [], [], !0);
203
- var _e = x('<a class="w-fit underline decoration-transparent transition-colors hover:decoration-black-contrast focus:decoration-black-contrast"><!></a>');
204
- function V(i, e) {
205
- z(e, !0);
206
- let t = M(e, "href", 7), o = M(e, "label", 7), r = M(e, "title", 7), c = M(e, "children", 7);
207
- var l = _e(), f = n(l);
208
- return ce(f, c), s(l), _(() => {
209
- F(l, "href", t()), F(l, "title", r() ?? void 0), F(l, "aria-label", o() ?? void 0);
210
- }), h(i, l), N({
226
+ z(ne, {}, [], [], !0);
227
+ var Ue = $("<a><!></a>");
228
+ function P(d, e) {
229
+ I(e, !0);
230
+ let i = T(e, "href", 7), l = T(e, "label", 7), m = T(e, "children", 7), c = T(e, "class", 7), f = _e(e, [
231
+ "$$slots",
232
+ "$$events",
233
+ "$$legacy",
234
+ "$$host",
235
+ "href",
236
+ "label",
237
+ "children",
238
+ "class"
239
+ ]);
240
+ const s = te("w-fit underline decoration-transparent transition-colors hover:decoration-black-contrast focus:decoration-black-contrast", c());
241
+ var r = Ue();
242
+ let t;
243
+ var v = g(r);
244
+ return Ce(v, m), n(r), y(() => t = be(r, t, {
245
+ ...f,
246
+ class: s,
247
+ href: i(),
248
+ "aria-label": l() ?? void 0
249
+ })), u(d, r), S({
211
250
  get href() {
212
- return t();
251
+ return i();
213
252
  },
214
- set href(a) {
215
- t(a), L();
253
+ set href(o) {
254
+ i(o), U();
216
255
  },
217
256
  get label() {
218
- return o();
257
+ return l();
219
258
  },
220
- set label(a) {
221
- o(a), L();
259
+ set label(o) {
260
+ l(o), U();
222
261
  },
223
- get title() {
224
- return r();
262
+ get children() {
263
+ return m();
225
264
  },
226
- set title(a) {
227
- r(a), L();
265
+ set children(o) {
266
+ m(o), U();
228
267
  },
229
- get children() {
268
+ get class() {
230
269
  return c();
231
270
  },
232
- set children(a) {
233
- c(a), L();
271
+ set class(o) {
272
+ c(o), U();
234
273
  }
235
274
  });
236
275
  }
237
- m(
238
- V,
276
+ z(
277
+ P,
239
278
  {
240
279
  href: {},
241
280
  label: {},
242
- title: {},
243
- children: {}
281
+ children: {},
282
+ class: {}
244
283
  },
245
284
  [],
246
285
  [],
247
286
  !0
248
287
  );
249
- var Ce = x("<li><!></li>"), Me = x('<div class="flex justify-center md:col-span-2 md:row-start-2 lg:row-auto"><ul class="flex w-full flex-col gap-x-6 gap-y-1 md:grid md:grid-cols-2 [&amp;>li]:contents"></ul></div>');
250
- function W(i) {
251
- var e = Me(), t = n(e);
252
- P(t, 5, () => me, I, (o, r) => {
253
- let c = () => g(r).href, l = () => g(r).title, f = () => g(r).text;
254
- var a = Ce(), u = n(a);
255
- V(u, {
256
- get href() {
257
- return c();
258
- },
259
- get title() {
260
- return l();
261
- },
262
- children: (d, k) => {
263
- H();
264
- var b = A();
265
- _(() => w(b, f())), h(d, b);
266
- },
267
- $$slots: { default: !0 }
268
- }), s(a), h(o, a);
269
- }), s(t), s(e), h(i, e);
288
+ var Oe = $("<li><!></li>"), Re = $("<li><!></li>"), De = $("<ul></ul> <ul></ul>", 1);
289
+ function ie(d, e) {
290
+ I(e, !1);
291
+ const i = Y({
292
+ slots: {
293
+ list: "grid grid-rows-5 items-center gap-0 not-italic",
294
+ link: "flex h-full items-center"
295
+ }
296
+ }), { list: l, link: m } = i();
297
+ j();
298
+ var c = De(), f = W(c);
299
+ D(f, 5, () => ee, E, (r, t, v) => {
300
+ let o = () => h(t).href, x = () => h(t).attributes, w = () => h(t).text;
301
+ var b = J(), p = W(b);
302
+ {
303
+ var C = (a) => {
304
+ var _ = Oe(), k = g(_);
305
+ const F = A(m);
306
+ P(k, K(
307
+ {
308
+ get class() {
309
+ return h(F);
310
+ },
311
+ get href() {
312
+ return o();
313
+ }
314
+ },
315
+ x,
316
+ {
317
+ children: (q, ce) => {
318
+ O();
319
+ var G = R();
320
+ y(() => L(G, w())), u(q, G);
321
+ },
322
+ $$slots: { default: !0 }
323
+ }
324
+ )), n(_), u(a, _);
325
+ };
326
+ Z(p, (a) => {
327
+ v % 2 === 0 && a(C);
328
+ });
329
+ }
330
+ u(r, b);
331
+ }), n(f);
332
+ var s = M(f, 2);
333
+ D(s, 5, () => ee, E, (r, t, v) => {
334
+ let o = () => h(t).href, x = () => h(t).attributes, w = () => h(t).text;
335
+ var b = J(), p = W(b);
336
+ {
337
+ var C = (a) => {
338
+ var _ = Re(), k = g(_);
339
+ const F = A(m);
340
+ P(k, K(
341
+ {
342
+ get class() {
343
+ return h(F);
344
+ },
345
+ get href() {
346
+ return o();
347
+ }
348
+ },
349
+ x,
350
+ {
351
+ children: (q, ce) => {
352
+ O();
353
+ var G = R();
354
+ y(() => L(G, w())), u(q, G);
355
+ },
356
+ $$slots: { default: !0 }
357
+ }
358
+ )), n(_), u(a, _);
359
+ };
360
+ Z(p, (a) => {
361
+ v % 2 !== 0 && a(C);
362
+ });
363
+ }
364
+ u(r, b);
365
+ }), n(s), y(
366
+ (r, t) => {
367
+ N(f, 1, r), N(s, 1, t);
368
+ },
369
+ [
370
+ () => V(l()),
371
+ () => V(l())
372
+ ],
373
+ A
374
+ ), u(d, c), S();
270
375
  }
271
- m(W, {}, [], [], !0);
272
- var Le = x('<address class="flex flex-col gap-1 not-italic"><strong class="flex-1"> </strong> <span class="flex-1"> </span> <span class="flex-1"> </span> <span class="flex-1"> </span> <div class="flex h-full flex-1 items-center"><!></div></address>');
273
- function X(i, e) {
274
- z(e, !1), $();
275
- var t = Le(), o = n(t), r = n(o, !0);
276
- s(o);
277
- var c = v(o, 2), l = n(c);
278
- s(c);
279
- var f = v(c, 2), a = n(f);
280
- s(f);
281
- var u = v(f, 2), d = n(u, !0);
282
- s(u);
283
- var k = v(u, 2), b = n(k);
284
- const S = U(() => `tel:${C.phoneNumber}`);
285
- V(b, {
376
+ z(ie, {}, [], [], !0);
377
+ var Ee = $('<address class="mt-6 grid grid-rows-5 items-center gap-0 not-italic md:col-[2] md:row-[1] md:mt-0 lg:col-[4] lg:row-[1]"><strong> </strong> <span> </span> <span> </span> <span> </span> <!></address>');
378
+ function le(d, e) {
379
+ I(e, !1), j();
380
+ var i = Ee(), l = g(i), m = g(l, !0);
381
+ n(l);
382
+ var c = M(l, 2), f = g(c);
383
+ n(c);
384
+ var s = M(c, 2), r = g(s);
385
+ n(s);
386
+ var t = M(s, 2), v = g(t, !0);
387
+ n(t);
388
+ var o = M(t, 2);
389
+ const x = A(() => `tel:${H.phoneNumber}`);
390
+ P(o, {
286
391
  get href() {
287
- return g(S);
392
+ return h(x);
288
393
  },
289
- children: (p, G) => {
290
- H();
291
- var y = A();
292
- _(() => w(y, C.phoneNumber)), h(p, y);
394
+ children: (w, b) => {
395
+ O();
396
+ var p = R();
397
+ y(() => L(p, H.phoneNumber)), u(w, p);
293
398
  },
294
399
  $$slots: { default: !0 }
295
- }), s(k), s(t), _(() => {
296
- w(r, C.title), w(l, `${C.street},`), w(a, `${C.city}, Ontario, Canada`), w(d, C.postalCode);
297
- }), h(i, t), N();
400
+ }), n(i), y(() => {
401
+ L(m, H.title), L(f, `${H.street},`), L(r, `${H.city}, Ontario, Canada`), L(v, H.postalCode);
402
+ }), u(d, i), S();
298
403
  }
299
- m(X, {}, [], [], !0);
300
- var Fe = x('<footer><!> <div class="flex flex-col content-center gap-6 bg-black px-[max(calc((100%-1320px)/2),2rem)] py-12 text-black-contrast md:grid md:grid-cols-2 lg:grid-cols-4"><div class="mb-1 flex flex-col gap-1"><!> <!> <!> <!></div> <!> <!></div></footer>');
301
- function Ve(i, e) {
302
- z(e, !0);
303
- let t = M(e, "subFooter", 7);
304
- var o = Fe(), r = n(o);
404
+ z(le, {}, [], [], !0);
405
+ var Ye = $("<footer><!> <div><div><!> <!> <!> <!></div> <!> <!></div></footer>");
406
+ function qe(d, e) {
407
+ I(e, !0);
408
+ const i = Y({
409
+ slots: {
410
+ footer: "flex flex-col content-center gap-0 bg-black px-[max(calc((100%-1320px)/2),2rem)] py-12 text-black-contrast md:grid md:grid-cols-2 md:gap-6 lg:grid-cols-4",
411
+ wrapper: "mb-6 grid grid-rows-5 items-center gap-0 not-italic md:mb-0"
412
+ }
413
+ });
414
+ let l = ke(Q([]));
415
+ $e(() => {
416
+ const a = () => {
417
+ ye(l, Q(Array.from(e.$$host.children).filter((k) => k.tagName === "A").map((k) => ({
418
+ text: k.textContent ?? "",
419
+ href: k.getAttribute("href") ?? ""
420
+ }))));
421
+ };
422
+ a();
423
+ const _ = new MutationObserver(a);
424
+ return _.observe(e.$$host, { childList: !0, subtree: !0 }), () => {
425
+ _.disconnect();
426
+ };
427
+ });
428
+ const { footer: m, wrapper: c } = i();
429
+ var f = Ye(), s = g(f);
305
430
  {
306
- var c = (p) => {
307
- O(p, {
431
+ var r = (a) => {
432
+ se(a, {
308
433
  get links() {
309
- return t();
434
+ return h(l);
310
435
  }
311
436
  });
312
437
  };
313
- le(r, (p) => {
314
- Array.isArray(t()) && t().length > 0 && p(c);
438
+ Z(s, (a) => {
439
+ Array.isArray(h(l)) && h(l).length > 0 && a(r);
315
440
  });
316
441
  }
317
- var l = v(r, 2), f = n(l), a = n(f);
318
- D(a);
319
- var u = v(a, 2);
320
- j(u, {});
321
- var d = v(u, 2);
322
- V(d, {
442
+ var t = M(s, 2), v = g(t), o = g(v);
443
+ re(o);
444
+ var x = M(o, 2);
445
+ ne(x, {});
446
+ var w = M(x, 2);
447
+ P(w, {
323
448
  get href() {
324
- return E.directory;
449
+ return oe.directory;
325
450
  },
326
- children: (p, G) => {
327
- H();
328
- var y = A("Social Media Directory");
329
- h(p, y);
451
+ children: (a, _) => {
452
+ O();
453
+ var k = R("Social Media Directory");
454
+ u(a, k);
330
455
  },
331
456
  $$slots: { default: !0 }
332
457
  });
333
- var k = v(d, 2);
334
- V(k, {
458
+ var b = M(w, 2);
459
+ P(b, {
335
460
  href: "https://www.uoguelph.ca/web/",
336
- children: (p, G) => {
337
- H();
338
- var y = A();
339
- _((Y) => w(y, `© ${Y ?? ""} University of Guelph`), [() => (/* @__PURE__ */ new Date()).getFullYear()]), h(p, y);
461
+ children: (a, _) => {
462
+ O();
463
+ var k = R();
464
+ y((F) => L(k, `© ${F ?? ""} University of Guelph`), [() => (/* @__PURE__ */ new Date()).getFullYear()]), u(a, k);
340
465
  },
341
466
  $$slots: { default: !0 }
342
- }), s(f);
343
- var b = v(f, 2);
344
- W(b);
345
- var S = v(b, 2);
346
- return X(S, {}), s(l), s(o), h(i, o), N({
347
- get subFooter() {
348
- return t();
467
+ }), n(v);
468
+ var p = M(v, 2);
469
+ ie(p, {});
470
+ var C = M(p, 2);
471
+ le(C, {}), n(t), n(f), y(
472
+ (a, _) => {
473
+ N(t, 1, a), N(v, 1, _);
349
474
  },
350
- set subFooter(p) {
351
- t(p), L();
352
- }
353
- });
475
+ [
476
+ () => V(m()),
477
+ () => V(c())
478
+ ]
479
+ ), u(d, f), S();
354
480
  }
355
- customElements.define("uofg-footer", m(Ve, { subFooter: {} }, [], [], !0, (i) => class extends i {
481
+ customElements.define("uofg-footer", z(qe, {}, [], [], !0, (d) => class extends d {
356
482
  constructor() {
357
- super(), ne(this.shadowRoot);
358
- }
359
- connectedCallback() {
360
- super.connectedCallback(), this.updateSubFooter(), this.observer ?? (this.observer = new MutationObserver(() => {
361
- this.updateSubFooter();
362
- })), this.observer.observe(this, { childList: !0, subtree: !0 });
363
- }
364
- disconnectedCallback() {
365
- super.disconnectedCallback(), this.observer.disconnect();
366
- }
367
- updateSubFooter() {
368
- this.subFooter = Array.from(this.children).filter((e) => e.tagName === "A").map((e) => ({
369
- text: e.textContent,
370
- href: e.getAttribute("href")
371
- }));
483
+ super(), Me(this.shadowRoot);
372
484
  }
373
485
  }));
374
486
  export {
375
- Ve as default
487
+ qe as default
376
488
  };