@uvalib/web-components 1.0.1 → 1.1.0

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.
Files changed (229) hide show
  1. package/CHANGELOG.md +72 -0
  2. package/README.md +723 -32
  3. package/dist/base/analytics-state.d.ts +36 -0
  4. package/dist/base/analytics-state.js +44 -0
  5. package/dist/base/analytics-state.js.map +1 -0
  6. package/dist/base/analytics.d.ts +31 -27
  7. package/dist/base/analytics.js +48 -37
  8. package/dist/base/analytics.js.map +1 -1
  9. package/dist/base/inline-copy.d.ts +16 -0
  10. package/dist/base/inline-copy.js +92 -0
  11. package/dist/base/inline-copy.js.map +1 -0
  12. package/dist/base/source-children.d.ts +46 -0
  13. package/dist/base/source-children.js +116 -0
  14. package/dist/base/source-children.js.map +1 -0
  15. package/dist/base.css +199 -0
  16. package/dist/base.d.ts +2 -2
  17. package/dist/base.js +1 -1
  18. package/dist/base.js.map +1 -1
  19. package/dist/components/bento-box/BentoSection.d.ts +1 -1
  20. package/dist/components/bento-box/BentoSection.js +7 -2
  21. package/dist/components/bento-box/BentoSection.js.map +1 -1
  22. package/dist/components/events-section/EventsSection.d.ts +3 -0
  23. package/dist/components/events-section/EventsSection.js +12 -1
  24. package/dist/components/events-section/EventsSection.js.map +1 -1
  25. package/dist/components/library-weekly-hours/LibraryWeeklyHours.d.ts +1 -0
  26. package/dist/components/library-weekly-hours/LibraryWeeklyHours.js +5 -0
  27. package/dist/components/library-weekly-hours/LibraryWeeklyHours.js.map +1 -1
  28. package/dist/components/site-alerts/SiteAlerts.d.ts +109 -0
  29. package/dist/components/site-alerts/SiteAlerts.js +542 -0
  30. package/dist/components/site-alerts/SiteAlerts.js.map +1 -0
  31. package/dist/components/site-alerts/alerts-source.d.ts +36 -0
  32. package/dist/components/site-alerts/alerts-source.js +115 -0
  33. package/dist/components/site-alerts/alerts-source.js.map +1 -0
  34. package/dist/components/{site-page → site-alerts}/alerts.js +8 -3
  35. package/dist/components/site-alerts/alerts.js.map +1 -0
  36. package/dist/components/site-alerts/body.d.ts +10 -0
  37. package/dist/components/site-alerts/body.js +48 -0
  38. package/dist/components/site-alerts/body.js.map +1 -0
  39. package/dist/components/site-alerts/dismissed.d.ts +12 -0
  40. package/dist/components/site-alerts/dismissed.js +72 -0
  41. package/dist/components/site-alerts/dismissed.js.map +1 -0
  42. package/dist/components/site-alerts/icons.d.ts +8 -0
  43. package/dist/components/site-alerts/icons.js +15 -0
  44. package/dist/components/site-alerts/icons.js.map +1 -0
  45. package/dist/components/site-alerts/site-alerts.d.ts +1 -0
  46. package/dist/components/site-alerts/site-alerts.js +4 -0
  47. package/dist/components/site-alerts/site-alerts.js.map +1 -0
  48. package/dist/components/site-analytics/SiteAnalytics.d.ts +26 -2
  49. package/dist/components/site-analytics/SiteAnalytics.js +140 -4
  50. package/dist/components/site-analytics/SiteAnalytics.js.map +1 -1
  51. package/dist/components/site-footer/SiteFooter.d.ts +4 -0
  52. package/dist/components/site-footer/SiteFooter.js +28 -4
  53. package/dist/components/site-footer/SiteFooter.js.map +1 -1
  54. package/dist/components/site-header/SiteHeader.d.ts +47 -3
  55. package/dist/components/site-header/SiteHeader.js +198 -21
  56. package/dist/components/site-header/SiteHeader.js.map +1 -1
  57. package/dist/components/site-hours-section/SiteHoursSection.d.ts +4 -1
  58. package/dist/components/site-hours-section/SiteHoursSection.js +18 -3
  59. package/dist/components/site-hours-section/SiteHoursSection.js.map +1 -1
  60. package/dist/components/site-main-nav/SiteMainNav.d.ts +1 -1
  61. package/dist/components/site-main-nav/SiteMainNav.js +11 -1
  62. package/dist/components/site-main-nav/SiteMainNav.js.map +1 -1
  63. package/dist/components/site-page/SitePage.d.ts +43 -15
  64. package/dist/components/site-page/SitePage.js +161 -34
  65. package/dist/components/site-page/SitePage.js.map +1 -1
  66. package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.d.ts +91 -0
  67. package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.js +310 -0
  68. package/dist/components/uvalib-breadcrumbs/UvalibBreadcrumbs.js.map +1 -0
  69. package/dist/components/uvalib-breadcrumbs/uvalib-breadcrumbs.d.ts +1 -0
  70. package/dist/components/uvalib-breadcrumbs/uvalib-breadcrumbs.js +4 -0
  71. package/dist/components/uvalib-breadcrumbs/uvalib-breadcrumbs.js.map +1 -0
  72. package/dist/components/uvalib-card/UvalibCard.d.ts +113 -0
  73. package/dist/components/uvalib-card/UvalibCard.js +643 -0
  74. package/dist/components/uvalib-card/UvalibCard.js.map +1 -0
  75. package/dist/components/uvalib-card/uvalib-card.d.ts +1 -0
  76. package/dist/components/uvalib-card/uvalib-card.js +4 -0
  77. package/dist/components/uvalib-card/uvalib-card.js.map +1 -0
  78. package/dist/components/uvalib-card-grid/UvalibCardGrid.d.ts +60 -0
  79. package/dist/components/uvalib-card-grid/UvalibCardGrid.js +305 -0
  80. package/dist/components/uvalib-card-grid/UvalibCardGrid.js.map +1 -0
  81. package/dist/components/uvalib-card-grid/uvalib-card-grid.d.ts +1 -0
  82. package/dist/components/uvalib-card-grid/uvalib-card-grid.js +4 -0
  83. package/dist/components/uvalib-card-grid/uvalib-card-grid.js.map +1 -0
  84. package/dist/components/uvalib-contents/UvalibContents.d.ts +134 -0
  85. package/dist/components/uvalib-contents/UvalibContents.js +613 -0
  86. package/dist/components/uvalib-contents/UvalibContents.js.map +1 -0
  87. package/dist/components/uvalib-contents/uvalib-contents.d.ts +1 -0
  88. package/dist/components/uvalib-contents/uvalib-contents.js +4 -0
  89. package/dist/components/uvalib-contents/uvalib-contents.js.map +1 -0
  90. package/dist/components/uvalib-date-range/UvalibDateRange.d.ts +10 -0
  91. package/dist/components/uvalib-date-range/UvalibDateRange.js +21 -0
  92. package/dist/components/uvalib-date-range/UvalibDateRange.js.map +1 -1
  93. package/dist/components/uvalib-filter/UvalibFilter.d.ts +1 -0
  94. package/dist/components/uvalib-filter/UvalibFilter.js +11 -1
  95. package/dist/components/uvalib-filter/UvalibFilter.js.map +1 -1
  96. package/dist/components/uvalib-lightbox/UvalibLightbox.d.ts +204 -0
  97. package/dist/components/uvalib-lightbox/UvalibLightbox.js +1115 -0
  98. package/dist/components/uvalib-lightbox/UvalibLightbox.js.map +1 -0
  99. package/dist/components/uvalib-lightbox/media.d.ts +51 -0
  100. package/dist/components/uvalib-lightbox/media.js +127 -0
  101. package/dist/components/uvalib-lightbox/media.js.map +1 -0
  102. package/dist/components/uvalib-lightbox/uvalib-lightbox.d.ts +1 -0
  103. package/dist/components/uvalib-lightbox/uvalib-lightbox.js +4 -0
  104. package/dist/components/uvalib-lightbox/uvalib-lightbox.js.map +1 -0
  105. package/dist/components/uvalib-metadata/UvalibMetadata.d.ts +124 -0
  106. package/dist/components/uvalib-metadata/UvalibMetadata.js +443 -0
  107. package/dist/components/uvalib-metadata/UvalibMetadata.js.map +1 -0
  108. package/dist/components/uvalib-metadata/rights.d.ts +8 -0
  109. package/dist/components/uvalib-metadata/rights.js +47 -0
  110. package/dist/components/uvalib-metadata/rights.js.map +1 -0
  111. package/dist/components/uvalib-metadata/uvalib-metadata.d.ts +1 -0
  112. package/dist/components/uvalib-metadata/uvalib-metadata.js +4 -0
  113. package/dist/components/uvalib-metadata/uvalib-metadata.js.map +1 -0
  114. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.d.ts +103 -0
  115. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js +410 -0
  116. package/dist/components/uvalib-pagefind-search/UvalibPagefindSearch.js.map +1 -0
  117. package/dist/components/uvalib-pagefind-search/uvalib-pagefind-search.d.ts +1 -0
  118. package/dist/components/uvalib-pagefind-search/uvalib-pagefind-search.js +7 -0
  119. package/dist/components/uvalib-pagefind-search/uvalib-pagefind-search.js.map +1 -0
  120. package/dist/components/uvalib-pager/UvalibPager.d.ts +94 -0
  121. package/dist/components/uvalib-pager/UvalibPager.js +390 -0
  122. package/dist/components/uvalib-pager/UvalibPager.js.map +1 -0
  123. package/dist/components/uvalib-pager/uvalib-pager.d.ts +1 -0
  124. package/dist/components/uvalib-pager/uvalib-pager.js +4 -0
  125. package/dist/components/uvalib-pager/uvalib-pager.js.map +1 -0
  126. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.d.ts +59 -0
  127. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js +350 -0
  128. package/dist/components/uvalib-photo-grid/UvalibPhotoGrid.js.map +1 -0
  129. package/dist/components/uvalib-photo-grid/uvalib-photo-grid.d.ts +1 -0
  130. package/dist/components/uvalib-photo-grid/uvalib-photo-grid.js +4 -0
  131. package/dist/components/uvalib-photo-grid/uvalib-photo-grid.js.map +1 -0
  132. package/dist/custom-elements.json +10916 -3049
  133. package/dist/index.d.ts +16 -0
  134. package/dist/index.js +11 -0
  135. package/dist/index.js.map +1 -1
  136. package/dist/pagefind.css +388 -0
  137. package/dist/styles/base.js +11 -0
  138. package/dist/styles/base.js.map +1 -1
  139. package/dist/styles/color-scheme.js +24 -11
  140. package/dist/styles/color-scheme.js.map +1 -1
  141. package/dist/styles/controls.d.ts +2 -0
  142. package/dist/styles/controls.js +200 -0
  143. package/dist/styles/controls.js.map +1 -0
  144. package/dist/styles/pagefind.d.ts +1 -0
  145. package/dist/styles/pagefind.js +395 -0
  146. package/dist/styles/pagefind.js.map +1 -0
  147. package/dist/tokens.css +23 -20
  148. package/dist-cdn/base.css +199 -0
  149. package/dist-cdn/bento-box.js +103 -95
  150. package/dist-cdn/bento-box.js.map +1 -1
  151. package/dist-cdn/chunks/SiteAnalytics-Cm-FyhYS.js +243 -0
  152. package/dist-cdn/chunks/SiteAnalytics-Cm-FyhYS.js.map +1 -0
  153. package/dist-cdn/chunks/alerts-C5vkeb-f.js +39 -0
  154. package/dist-cdn/chunks/alerts-C5vkeb-f.js.map +1 -0
  155. package/dist-cdn/chunks/analytics-DTTihuBD.js +43 -0
  156. package/dist-cdn/chunks/analytics-DTTihuBD.js.map +1 -0
  157. package/dist-cdn/chunks/analytics-state-Ce8DKe4F.js +39 -0
  158. package/dist-cdn/chunks/analytics-state-Ce8DKe4F.js.map +1 -0
  159. package/dist-cdn/chunks/{base-DCGd2Oii.js → base-CAFQWnZG.js} +12 -1
  160. package/dist-cdn/chunks/{base-DCGd2Oii.js.map → base-CAFQWnZG.js.map} +1 -1
  161. package/dist-cdn/chunks/{library-weekly-hours-ByQ8ugxh.js → library-weekly-hours-COE7Vv6V.js} +47 -38
  162. package/dist-cdn/chunks/library-weekly-hours-COE7Vv6V.js.map +1 -0
  163. package/dist-cdn/chunks/{site-header-BwDkZ2LL.js → site-header-C9V7Wuw2.js} +169 -49
  164. package/dist-cdn/chunks/site-header-C9V7Wuw2.js.map +1 -0
  165. package/dist-cdn/chunks/{site-main-nav-BLAAunnr.js → site-main-nav-AaxZ9rQf.js} +11 -2
  166. package/dist-cdn/chunks/site-main-nav-AaxZ9rQf.js.map +1 -0
  167. package/dist-cdn/chunks/source-children-RuAec527.js +119 -0
  168. package/dist-cdn/chunks/source-children-RuAec527.js.map +1 -0
  169. package/dist-cdn/custom-elements.json +10916 -3049
  170. package/dist-cdn/events-section.js +78 -66
  171. package/dist-cdn/events-section.js.map +1 -1
  172. package/dist-cdn/library-hours-setup.js +1 -1
  173. package/dist-cdn/library-weekly-hours.js +1 -1
  174. package/dist-cdn/manifest.json +13 -2
  175. package/dist-cdn/pagefind.css +388 -0
  176. package/dist-cdn/site-alerts.js +516 -0
  177. package/dist-cdn/site-alerts.js.map +1 -0
  178. package/dist-cdn/site-analytics.js +1 -1
  179. package/dist-cdn/site-footer.js +33 -18
  180. package/dist-cdn/site-footer.js.map +1 -1
  181. package/dist-cdn/site-header.js +1 -1
  182. package/dist-cdn/site-hours-section.js +33 -21
  183. package/dist-cdn/site-hours-section.js.map +1 -1
  184. package/dist-cdn/site-main-nav.js +1 -1
  185. package/dist-cdn/site-page.js +116 -81
  186. package/dist-cdn/site-page.js.map +1 -1
  187. package/dist-cdn/site-style.js +1 -1
  188. package/dist-cdn/skills/uvalib-web-components/SKILL.md +367 -11
  189. package/dist-cdn/skills/uvalib-web-components/reference/accessibility-testing.md +170 -0
  190. package/dist-cdn/skills/uvalib-web-components/reference/components.md +414 -12
  191. package/dist-cdn/skills/uvalib-web-components/reference/migration.md +15 -0
  192. package/dist-cdn/tokens.css +23 -20
  193. package/dist-cdn/uvalib-analytics.js +1 -1
  194. package/dist-cdn/uvalib-breadcrumbs.js +176 -0
  195. package/dist-cdn/uvalib-breadcrumbs.js.map +1 -0
  196. package/dist-cdn/uvalib-card-grid.js +163 -0
  197. package/dist-cdn/uvalib-card-grid.js.map +1 -0
  198. package/dist-cdn/uvalib-card.js +424 -0
  199. package/dist-cdn/uvalib-card.js.map +1 -0
  200. package/dist-cdn/uvalib-contents.js +381 -0
  201. package/dist-cdn/uvalib-contents.js.map +1 -0
  202. package/dist-cdn/uvalib-date-range.js +33 -18
  203. package/dist-cdn/uvalib-date-range.js.map +1 -1
  204. package/dist-cdn/uvalib-filter.js +32 -11
  205. package/dist-cdn/uvalib-filter.js.map +1 -1
  206. package/dist-cdn/uvalib-lightbox.js +662 -0
  207. package/dist-cdn/uvalib-lightbox.js.map +1 -0
  208. package/dist-cdn/uvalib-metadata.js +313 -0
  209. package/dist-cdn/uvalib-metadata.js.map +1 -0
  210. package/dist-cdn/uvalib-pagefind-search.js +207 -0
  211. package/dist-cdn/uvalib-pagefind-search.js.map +1 -0
  212. package/dist-cdn/uvalib-pager.js +278 -0
  213. package/dist-cdn/uvalib-pager.js.map +1 -0
  214. package/dist-cdn/uvalib-photo-grid.js +202 -0
  215. package/dist-cdn/uvalib-photo-grid.js.map +1 -0
  216. package/package.json +43 -1
  217. package/skills/uvalib-web-components/SKILL.md +367 -11
  218. package/skills/uvalib-web-components/reference/accessibility-testing.md +170 -0
  219. package/skills/uvalib-web-components/reference/components.md +414 -12
  220. package/skills/uvalib-web-components/reference/migration.md +15 -0
  221. package/dist/components/site-page/alerts.js.map +0 -1
  222. package/dist-cdn/chunks/SiteAnalytics-T1Wx3lsb.js +0 -174
  223. package/dist-cdn/chunks/SiteAnalytics-T1Wx3lsb.js.map +0 -1
  224. package/dist-cdn/chunks/analytics-C8D8n_wt.js +0 -55
  225. package/dist-cdn/chunks/analytics-C8D8n_wt.js.map +0 -1
  226. package/dist-cdn/chunks/library-weekly-hours-ByQ8ugxh.js.map +0 -1
  227. package/dist-cdn/chunks/site-header-BwDkZ2LL.js.map +0 -1
  228. package/dist-cdn/chunks/site-main-nav-BLAAunnr.js.map +0 -1
  229. /package/dist/components/{site-page → site-alerts}/alerts.d.ts +0 -0
@@ -1,8 +1,9 @@
1
1
  import { a as e, d as t, f as n, l as r, m as i, n as a, t as o } from "./chunks/UvalibElement-BnI-eRRR.js";
2
- import { t as s } from "./chunks/link-DbJSwj16.js";
3
- import { t as c } from "./chunks/accessible-GqhVn5_H.js";
2
+ import { a as s } from "./chunks/analytics-DTTihuBD.js";
3
+ import { t as c } from "./chunks/link-DbJSwj16.js";
4
+ import { t as l } from "./chunks/accessible-GqhVn5_H.js";
4
5
  // src/components/site-footer/icons.ts
5
- var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true" focusable="false"><path d="M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"></path></svg>`, u = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true" focusable="false"><path d="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"></path></svg>`, d = t`<svg xmlns="http://www.w3.org/2000/svg" width="35" viewBox="0 0 76 69" aria-hidden="true" focusable="false"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-1164.000000, -2888.000000)"><g transform="translate(-1.000000, 2650.000000)"><g transform="translate(1164.778054, 238.000000)"><path d="M13.4360945,28.2205532 L2.35993899,28.2205532 C2.35993899,28.2205532 0.577055368,28.0392271 0.575613488,27.3131932 C0.565880804,19.4366373 0.594718388,19.7671834 0.594718388,19.7671834 C0.594718388,19.7671834 1.50598604,20.7522545 2.71824597,20.806251 C3.74774771,20.852221 14.3304201,20.806251 14.3304201,20.806251 C14.3304201,20.806251 17.2444579,21.0645585 16.6543688,23.3356948 C16.1432227,25.2930677 15.6944378,26.5462971 15.601797,29.8915257 L15.5808898,29.870365 C15.0560458,28.2511999 13.4360945,28.2205532 13.4360945,28.2205532" fill="#FFFFFF"></path><path d="M1.62277825,39.3398174 C2.12094751,40.9224984 3.90130785,40.1742092 3.90130785,40.1742092 C3.90130785,40.1742092 11.6283384,38.3894062 13.4169896,38.0493742 C15.2002337,37.7104368 16.4759363,38.5907985 16.4759363,38.5907985 C16.4759363,38.5907985 15.6695654,34.9529673 15.4013758,32.8952631 C15.1353491,30.8415721 12.2973704,30.5923856 12.2973704,30.5923856 C12.2973704,30.5923856 3.62230422,30.6022363 2.29649631,30.5923856 C0.89462926,30.579981 0.575613488,29.5058886 0.575613488,29.5058886 C0.575613488,29.5058886 0.610218589,36.0956498 1.62277825,39.3398174" fill="#FFFFFF"></path><path d="M18.1340974,26.4142246 C17.2916794,29.9969648 17.5137288,33.4023923 18.5035789,36.8924629 C21.4493381,47.2524927 32.2774904,53.7878925 42.599543,51.7210673 C42.3299116,52.3256091 41.8209283,52.7958894 41.5931114,53.3745275 C39.8444724,57.8595199 38.9851124,61.8942984 37.3824637,66.4445974 C37.1232859,67.1815766 36.5533831,67.7992527 36.0101551,68.372783 C35.8958862,68.4928157 36.0386322,68.6832628 36.166599,68.6894651 C41.1508149,68.9962966 46.0993443,68.2421699 50.8027542,66.5128227 C51.713301,66.181547 52.5816727,65.8626758 53.443556,65.4314335 C66.739845,58.8000805 75.3929225,45.3604264 75.5760411,31.4727474 C75.7259966,20.4629355 71.0557499,10.1277149 63.027727,2.29931795 C62.7069089,1.98117645 63.2814977,1.39816027 63.1081117,0.928609688 C63.027727,0.710799511 62.7872936,0.433520224 62.6009307,0.433520224 C57.3337461,0.421115624 52.153795,0.512325916 46.8916569,0.495908063 C46.5769668,0.495908063 46.2071248,0.933717464 46.0337388,1.30074768 C45.9461447,1.48937056 45.8617947,1.92316671 46.1764849,1.94907043 C47.4514665,2.05998215 47.9752291,3.2825649 49.0443826,3.57115426 C50.161118,3.86777013 51.0370596,3.0592821 52.0827825,2.78820512 C52.834362,2.59119089 53.6749776,2.54777479 54.3537422,2.96770697 C55.078647,3.41938034 54.9149937,4.68428466 54.1785539,5.00643941 C51.8037789,6.03930476 49.2321873,5.20454817 47.1652535,3.54889895 C46.8628193,3.31065767 46.3268008,2.8571601 45.8340385,3.1256832 C43.7883724,4.23334098 40.4972832,3.97722248 39.8307745,6.34431197 C39.3571172,8.02659459 40.4388871,9.90881018 41.1688384,11.5841608 C42.0548732,10.3079464 43.554788,10.1040002 44.9126777,10.5217433 C47.3476512,11.2663842 49.337805,12.5889334 51.0900487,14.381398 C53.2845888,16.6288196 54.3587888,19.5789253 54.6049897,22.6246194 C55.2826729,30.9032303 52.9735034,43.1640826 43.6823943,44.6551884 C28.0538657,47.1689441 24.0681512,37.5520957 24.0681512,32.7489618 C24.0681512,30.8696649 24.0184064,29.1041985 24.4819705,27.343475 C25.4361341,23.716589 27.4194389,20.6249249 30.6925047,18.7511007 C32.025522,17.9893123 33.5950075,17.6262954 34.4947401,16.2435474 C35.1781908,15.1949938 35.0603172,13.9800728 34.6821844,12.8720501 C34.3328892,11.8483058 33.3632254,10.9113937 32.413027,10.9113937 C21.7449233,10.9113937 9.9078161,10.9095695 0.621393153,10.9095695 C0.621393153,13.6221636 0.594718388,14.9177146 0.621393153,17.1443402 C0.632207247,18.1943531 1.28501805,18.7521952 2.40860241,18.7521952 L21.6551664,18.7521952 C20.4173131,21.3301629 18.8207923,23.4929414 18.1340974,26.4142246 Z" fill="#FFFFFF"></path><path d="M11.3828585,54.9313047 C12.5742112,54.515021 21.0726472,49.1828673 21.7878192,48.9209113 C22.4258508,48.6888724 22.9550204,48.6111612 23.8875558,49.2802799 C26.3931814,51.080771 29.0235295,52.8995043 30.3186975,52.8995043 C30.3186975,52.8995043 29.9146108,53.2154567 29.1107632,53.9827177 C28.3512533,54.7098461 20.9396338,62.70607 20.9396338,62.70607 C20.9396338,62.70607 19.600849,64.1081546 18.1705048,63.1599324 C18.1705048,63.1599324 13.3016392,59.7238583 9.37323939,55.293592 C9.37323939,55.293592 10.0894929,55.3848023 11.3828585,54.9313047" fill="#FFFFFF"></path><path d="M21.3422786,64.9199262 C21.3422786,64.9199262 22.5033518,64.8765101 23.1298483,64.2905752 C23.7545425,63.7020864 31.5673649,54.432202 31.5673649,54.432202 C31.5673649,54.432202 31.8672757,53.4431176 33.3996329,53.7988377 C35.3198555,54.2541595 38.4029537,54.390975 39.0265664,54.3431808 C39.0265664,54.3431808 38.6232007,54.7098461 38.1769391,55.9258617 C37.9166799,56.6376669 35.1421439,66.5026072 34.6057648,67.2705978 C34.0697462,68.0415072 33.9810706,68.7186524 32.1913381,68.4016055 C28.8014801,67.8010769 26.0694795,66.9685093 21.3422786,64.9199262" fill="#FFFFFF"></path><path d="M2.46159147,42.2184143 C2.46159147,42.2184143 3.39989436,42.4891264 4.33891818,42.3081652 C6.18308167,41.9528099 13.275325,40.0829989 14.6097841,39.9593177 C16.5307277,39.7765323 16.1738626,40.048339 17.1983178,41.0447202 C18.0803874,41.8940705 19.8340729,45.6968099 20.2817764,45.9693463 C20.7258752,46.2385991 20.9933438,46.7369721 21.754656,46.8756118 C21.754656,46.8756118 11.0227492,52.9334345 10.1868197,53.0220909 C9.29645932,53.1129363 8.42340147,53.9973113 7.50888959,52.661263 C4.33891818,48.0055248 4.25168449,47.3247312 2.86387577,43.4384431 L2.46159147,42.2184143" fill="#FFFFFF"></path><polygon fill="#C11E42" points="30.9895318 38.5240326 46.0903326 38.5240326 46.0903326 24.2594726 30.9895318 24.2594726"></polygon><path d="M38.5792234,23.2010684 C38.5792234,23.2010684 36.2116577,19.9455907 32.2828974,20.1283761 L32.2828974,22.7964596 L29.7372597,22.7964596 L29.7372597,39.8356366 L36.5238246,39.8356366 C36.5238246,39.8356366 36.8395961,38.750599 37.4181502,38.5240326 L31.0774864,38.5240326 L31.0774864,24.329887 L32.1913381,24.329887 L32.1913381,35.5418209 C32.1913381,35.5418209 35.7390818,35.4586371 37.7501428,38.5316943 L38.8928321,38.5316943" fill="#FFFFFF"></path><path d="M38.5792234,23.2010684 C38.5792234,23.2010684 40.9568822,19.9455907 44.8842006,20.1283761 L44.8842006,22.7964596 L47.4276755,22.7964596 L47.4276755,39.8356366 L40.6414711,39.8356366 C40.6414711,39.8356366 40.3303857,38.750599 39.7482269,38.5240326 L46.0903326,38.5240326 L46.0903326,24.329887 L44.9710738,24.329887 L44.9710738,35.5418209 C44.9710738,35.5418209 41.4290976,35.4586371 39.4201994,38.5316943 L38.7609002,38.5316943" fill="#FFFFFF"></path><path d="M37.8903656,24.329887 C37.8903656,24.329887 36.4823706,21.619482 33.5326462,21.619482 L33.5326462,34.5001994 C33.5326462,34.5001994 35.9016537,34.7716412 37.5500821,36.0832452 L37.9094705,36.3991976 L37.8903656,24.329887" fill="#C11E42"></path><path d="M39.30557,24.329887 C39.30557,24.329887 40.6854484,21.619482 43.6326495,21.619482 L43.6326495,34.5001994 C43.6326495,34.5001994 40.7535772,34.92378 39.735971,35.879299 C39.5377126,36.0660977 39.30557,36.4232772 39.30557,36.4232772 L39.30557,24.329887" fill="#C11E42"></path></g></g></g></g></svg>`, f = [
6
+ var u = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true" focusable="false"><path d="M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z"></path></svg>`, d = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hidden="true" focusable="false"><path d="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"></path></svg>`, f = t`<svg xmlns="http://www.w3.org/2000/svg" width="35" viewBox="0 0 76 69" aria-hidden="true" focusable="false"><g stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"><g transform="translate(-1164.000000, -2888.000000)"><g transform="translate(-1.000000, 2650.000000)"><g transform="translate(1164.778054, 238.000000)"><path d="M13.4360945,28.2205532 L2.35993899,28.2205532 C2.35993899,28.2205532 0.577055368,28.0392271 0.575613488,27.3131932 C0.565880804,19.4366373 0.594718388,19.7671834 0.594718388,19.7671834 C0.594718388,19.7671834 1.50598604,20.7522545 2.71824597,20.806251 C3.74774771,20.852221 14.3304201,20.806251 14.3304201,20.806251 C14.3304201,20.806251 17.2444579,21.0645585 16.6543688,23.3356948 C16.1432227,25.2930677 15.6944378,26.5462971 15.601797,29.8915257 L15.5808898,29.870365 C15.0560458,28.2511999 13.4360945,28.2205532 13.4360945,28.2205532" fill="#FFFFFF"></path><path d="M1.62277825,39.3398174 C2.12094751,40.9224984 3.90130785,40.1742092 3.90130785,40.1742092 C3.90130785,40.1742092 11.6283384,38.3894062 13.4169896,38.0493742 C15.2002337,37.7104368 16.4759363,38.5907985 16.4759363,38.5907985 C16.4759363,38.5907985 15.6695654,34.9529673 15.4013758,32.8952631 C15.1353491,30.8415721 12.2973704,30.5923856 12.2973704,30.5923856 C12.2973704,30.5923856 3.62230422,30.6022363 2.29649631,30.5923856 C0.89462926,30.579981 0.575613488,29.5058886 0.575613488,29.5058886 C0.575613488,29.5058886 0.610218589,36.0956498 1.62277825,39.3398174" fill="#FFFFFF"></path><path d="M18.1340974,26.4142246 C17.2916794,29.9969648 17.5137288,33.4023923 18.5035789,36.8924629 C21.4493381,47.2524927 32.2774904,53.7878925 42.599543,51.7210673 C42.3299116,52.3256091 41.8209283,52.7958894 41.5931114,53.3745275 C39.8444724,57.8595199 38.9851124,61.8942984 37.3824637,66.4445974 C37.1232859,67.1815766 36.5533831,67.7992527 36.0101551,68.372783 C35.8958862,68.4928157 36.0386322,68.6832628 36.166599,68.6894651 C41.1508149,68.9962966 46.0993443,68.2421699 50.8027542,66.5128227 C51.713301,66.181547 52.5816727,65.8626758 53.443556,65.4314335 C66.739845,58.8000805 75.3929225,45.3604264 75.5760411,31.4727474 C75.7259966,20.4629355 71.0557499,10.1277149 63.027727,2.29931795 C62.7069089,1.98117645 63.2814977,1.39816027 63.1081117,0.928609688 C63.027727,0.710799511 62.7872936,0.433520224 62.6009307,0.433520224 C57.3337461,0.421115624 52.153795,0.512325916 46.8916569,0.495908063 C46.5769668,0.495908063 46.2071248,0.933717464 46.0337388,1.30074768 C45.9461447,1.48937056 45.8617947,1.92316671 46.1764849,1.94907043 C47.4514665,2.05998215 47.9752291,3.2825649 49.0443826,3.57115426 C50.161118,3.86777013 51.0370596,3.0592821 52.0827825,2.78820512 C52.834362,2.59119089 53.6749776,2.54777479 54.3537422,2.96770697 C55.078647,3.41938034 54.9149937,4.68428466 54.1785539,5.00643941 C51.8037789,6.03930476 49.2321873,5.20454817 47.1652535,3.54889895 C46.8628193,3.31065767 46.3268008,2.8571601 45.8340385,3.1256832 C43.7883724,4.23334098 40.4972832,3.97722248 39.8307745,6.34431197 C39.3571172,8.02659459 40.4388871,9.90881018 41.1688384,11.5841608 C42.0548732,10.3079464 43.554788,10.1040002 44.9126777,10.5217433 C47.3476512,11.2663842 49.337805,12.5889334 51.0900487,14.381398 C53.2845888,16.6288196 54.3587888,19.5789253 54.6049897,22.6246194 C55.2826729,30.9032303 52.9735034,43.1640826 43.6823943,44.6551884 C28.0538657,47.1689441 24.0681512,37.5520957 24.0681512,32.7489618 C24.0681512,30.8696649 24.0184064,29.1041985 24.4819705,27.343475 C25.4361341,23.716589 27.4194389,20.6249249 30.6925047,18.7511007 C32.025522,17.9893123 33.5950075,17.6262954 34.4947401,16.2435474 C35.1781908,15.1949938 35.0603172,13.9800728 34.6821844,12.8720501 C34.3328892,11.8483058 33.3632254,10.9113937 32.413027,10.9113937 C21.7449233,10.9113937 9.9078161,10.9095695 0.621393153,10.9095695 C0.621393153,13.6221636 0.594718388,14.9177146 0.621393153,17.1443402 C0.632207247,18.1943531 1.28501805,18.7521952 2.40860241,18.7521952 L21.6551664,18.7521952 C20.4173131,21.3301629 18.8207923,23.4929414 18.1340974,26.4142246 Z" fill="#FFFFFF"></path><path d="M11.3828585,54.9313047 C12.5742112,54.515021 21.0726472,49.1828673 21.7878192,48.9209113 C22.4258508,48.6888724 22.9550204,48.6111612 23.8875558,49.2802799 C26.3931814,51.080771 29.0235295,52.8995043 30.3186975,52.8995043 C30.3186975,52.8995043 29.9146108,53.2154567 29.1107632,53.9827177 C28.3512533,54.7098461 20.9396338,62.70607 20.9396338,62.70607 C20.9396338,62.70607 19.600849,64.1081546 18.1705048,63.1599324 C18.1705048,63.1599324 13.3016392,59.7238583 9.37323939,55.293592 C9.37323939,55.293592 10.0894929,55.3848023 11.3828585,54.9313047" fill="#FFFFFF"></path><path d="M21.3422786,64.9199262 C21.3422786,64.9199262 22.5033518,64.8765101 23.1298483,64.2905752 C23.7545425,63.7020864 31.5673649,54.432202 31.5673649,54.432202 C31.5673649,54.432202 31.8672757,53.4431176 33.3996329,53.7988377 C35.3198555,54.2541595 38.4029537,54.390975 39.0265664,54.3431808 C39.0265664,54.3431808 38.6232007,54.7098461 38.1769391,55.9258617 C37.9166799,56.6376669 35.1421439,66.5026072 34.6057648,67.2705978 C34.0697462,68.0415072 33.9810706,68.7186524 32.1913381,68.4016055 C28.8014801,67.8010769 26.0694795,66.9685093 21.3422786,64.9199262" fill="#FFFFFF"></path><path d="M2.46159147,42.2184143 C2.46159147,42.2184143 3.39989436,42.4891264 4.33891818,42.3081652 C6.18308167,41.9528099 13.275325,40.0829989 14.6097841,39.9593177 C16.5307277,39.7765323 16.1738626,40.048339 17.1983178,41.0447202 C18.0803874,41.8940705 19.8340729,45.6968099 20.2817764,45.9693463 C20.7258752,46.2385991 20.9933438,46.7369721 21.754656,46.8756118 C21.754656,46.8756118 11.0227492,52.9334345 10.1868197,53.0220909 C9.29645932,53.1129363 8.42340147,53.9973113 7.50888959,52.661263 C4.33891818,48.0055248 4.25168449,47.3247312 2.86387577,43.4384431 L2.46159147,42.2184143" fill="#FFFFFF"></path><polygon fill="#C11E42" points="30.9895318 38.5240326 46.0903326 38.5240326 46.0903326 24.2594726 30.9895318 24.2594726"></polygon><path d="M38.5792234,23.2010684 C38.5792234,23.2010684 36.2116577,19.9455907 32.2828974,20.1283761 L32.2828974,22.7964596 L29.7372597,22.7964596 L29.7372597,39.8356366 L36.5238246,39.8356366 C36.5238246,39.8356366 36.8395961,38.750599 37.4181502,38.5240326 L31.0774864,38.5240326 L31.0774864,24.329887 L32.1913381,24.329887 L32.1913381,35.5418209 C32.1913381,35.5418209 35.7390818,35.4586371 37.7501428,38.5316943 L38.8928321,38.5316943" fill="#FFFFFF"></path><path d="M38.5792234,23.2010684 C38.5792234,23.2010684 40.9568822,19.9455907 44.8842006,20.1283761 L44.8842006,22.7964596 L47.4276755,22.7964596 L47.4276755,39.8356366 L40.6414711,39.8356366 C40.6414711,39.8356366 40.3303857,38.750599 39.7482269,38.5240326 L46.0903326,38.5240326 L46.0903326,24.329887 L44.9710738,24.329887 L44.9710738,35.5418209 C44.9710738,35.5418209 41.4290976,35.4586371 39.4201994,38.5316943 L38.7609002,38.5316943" fill="#FFFFFF"></path><path d="M37.8903656,24.329887 C37.8903656,24.329887 36.4823706,21.619482 33.5326462,21.619482 L33.5326462,34.5001994 C33.5326462,34.5001994 35.9016537,34.7716412 37.5500821,36.0832452 L37.9094705,36.3991976 L37.8903656,24.329887" fill="#C11E42"></path><path d="M39.30557,24.329887 C39.30557,24.329887 40.6854484,21.619482 43.6326495,21.619482 L43.6326495,34.5001994 C43.6326495,34.5001994 40.7535772,34.92378 39.735971,35.879299 C39.5377126,36.0660977 39.30557,36.4232772 39.30557,36.4232772 L39.30557,24.329887" fill="#C11E42"></path></g></g></g></g></svg>`, p = [
6
7
  {
7
8
  label: "Search, borrow, request",
8
9
  path: "/services"
@@ -23,7 +24,7 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
23
24
  label: "Get help",
24
25
  path: "/help"
25
26
  }
26
- ], p = [
27
+ ], m = [
27
28
  {
28
29
  label: "About UVA Library",
29
30
  path: "/about-uva-library"
@@ -44,15 +45,12 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
44
45
  label: "Status dashboard",
45
46
  path: "/status"
46
47
  }
47
- ], m = class extends o {
48
- constructor(...e) {
49
- super(...e), this.rootLinkDomain = "https://www.library.virginia.edu";
50
- }
48
+ ], h = class extends o {
51
49
  static {
52
50
  this.hostColorScheme = !1;
53
51
  }
54
52
  static {
55
- this.styles = [c, n`
53
+ this.styles = [l, n`
56
54
  :host {
57
55
  display: block;
58
56
  width: 100%;
@@ -104,6 +102,11 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
104
102
  list-style-type: none;
105
103
  padding-left: 0;
106
104
  }
105
+ /* Its own line height (as the page's base styles give it), so stacked links stay 24px
106
+ apart (WCAG 2.2 target size) even on a page with line-height: normal. */
107
+ .footer--main .block-content {
108
+ line-height: 1.5;
109
+ }
107
110
  .footer--main address {
108
111
  font-style: italic;
109
112
  }
@@ -168,6 +171,18 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
168
171
  let t = [...this.children].filter((t) => t.getAttribute("slot") === "pre-footer" && !e.contains(t));
169
172
  e.append(...t), t.length && e.classList.add("has-content");
170
173
  }
174
+ constructor() {
175
+ super(), this.rootLinkDomain = "https://www.library.virginia.edu", this.trackClick = (e) => {
176
+ let t = e.composedPath().find((e) => e instanceof HTMLAnchorElement);
177
+ if (!t || !this.renderRoot.contains(t) || t.closest(".footer--pre")) return;
178
+ let n = t.getAttribute("href"), r = t.getAttribute("aria-label") ?? t.textContent.trim(), i = n.startsWith("tel:") ? "Contact us: Phone" : n.startsWith("mailto:") ? "Contact us: Email" : t.closest(".social-media") ? `Social: ${r.replace("UVA Library on ", "")}` : `${t.closest(".block-content")?.querySelector("h2")?.textContent ?? "Footer"}: ${r}`;
179
+ s(this, [
180
+ "site-footer",
181
+ "link-click",
182
+ i
183
+ ]);
184
+ }, this.addEventListener("click", this.trackClick);
185
+ }
171
186
  observe() {
172
187
  this.observer ??= new MutationObserver(() => this.adoptPreFooterChildren()), this.observer.observe(this, { childList: !0 });
173
188
  }
@@ -186,7 +201,7 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
186
201
  }
187
202
  links(e) {
188
203
  return r`<ul>
189
- ${e.map((e) => r`<li><a href=${s(this.rootLinkDomain, e.path)}>${e.label}</a></li>`)}
204
+ ${e.map((e) => r`<li><a href=${c(this.rootLinkDomain, e.path)}>${e.label}</a></li>`)}
190
205
  </ul>`;
191
206
  }
192
207
  render() {
@@ -200,13 +215,13 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
200
215
  <div class="block">
201
216
  <div class="block-content">
202
217
  <h2>Using the Library</h2>
203
- ${this.links(f)}
218
+ ${this.links(p)}
204
219
  </div>
205
220
  </div>
206
221
  <div class="block">
207
222
  <div class="block-content">
208
223
  <h2>About</h2>
209
- ${this.links(p)}
224
+ ${this.links(m)}
210
225
  </div>
211
226
  </div>
212
227
  <div class="block">
@@ -221,20 +236,20 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
221
236
  Charlottesville, VA 22904
222
237
  </address>
223
238
  <ul>
224
- <li><a href=${s(e, "/askalibrarian")}>Ask a Librarian</a></li>
225
- <li><a href=${s(e, "/site-feedback")}>Site feedback</a></li>
239
+ <li><a href=${c(e, "/askalibrarian")}>Ask a Librarian</a></li>
240
+ <li><a href=${c(e, "/site-feedback")}>Site feedback</a></li>
226
241
  </ul>
227
242
  <ul class="social-media">
228
243
  <li>
229
244
  <a
230
245
  href="https://www.facebook.com/UVALibrary/"
231
246
  aria-label="UVA Library on Facebook"
232
- >${l}</a
247
+ >${u}</a
233
248
  >
234
249
  </li>
235
250
  <li>
236
251
  <a href="https://instagram.com/uvalibrary" aria-label="UVA Library on Instagram"
237
- >${u}</a
252
+ >${d}</a
238
253
  >
239
254
  </li>
240
255
  </ul>
@@ -250,7 +265,7 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
250
265
  <a
251
266
  href="https://guides.lib.virginia.edu/findinggovinfo"
252
267
  aria-label="Federal Depository Library Program"
253
- >${d}</a
268
+ >${f}</a
254
269
  >
255
270
  </div>
256
271
  </div>
@@ -262,6 +277,6 @@ var l = t`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512" aria-hid
262
277
  a([e({
263
278
  type: String,
264
279
  attribute: "root-link-domain"
265
- })], m.prototype, "rootLinkDomain", void 0), i("site-footer", m);
280
+ })], h.prototype, "rootLinkDomain", void 0), i("site-footer", h);
266
281
 
267
282
  //# sourceMappingURL=site-footer.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"site-footer.js","names":["_decorate","property","n","w","i","b","define","__decorate","UvalibElement","siteLink","accessible","facebookIcon","instagramIcon","fdlpLogo","USING","ABOUT","SiteFooter","_args","wrapper","moved","c","has","links","l","root"],"sources":["../src/components/site-footer/icons.ts","../src/components/site-footer/SiteFooter.ts","../src/components/site-footer/site-footer.ts"],"sourcesContent":["import { svg } from 'lit';\n\n// Font Awesome Pro 6.2.0 (c) 2022 Fonticons, Inc. https://fontawesome.com (Commercial License)\nexport const facebookIcon = svg`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z\"></path></svg>`;\n\nexport const instagramIcon = svg`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" aria-hidden=\"true\" focusable=\"false\"><path d=\"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\"></path></svg>`;\n\n/** Federal Depository Library Program emblem. Decorative: the wrapping link carries the accessible name. */\nexport const fdlpLogo = svg`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" viewBox=\"0 0 76 69\" aria-hidden=\"true\" focusable=\"false\"><g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g transform=\"translate(-1164.000000, -2888.000000)\"><g transform=\"translate(-1.000000, 2650.000000)\"><g transform=\"translate(1164.778054, 238.000000)\"><path d=\"M13.4360945,28.2205532 L2.35993899,28.2205532 C2.35993899,28.2205532 0.577055368,28.0392271 0.575613488,27.3131932 C0.565880804,19.4366373 0.594718388,19.7671834 0.594718388,19.7671834 C0.594718388,19.7671834 1.50598604,20.7522545 2.71824597,20.806251 C3.74774771,20.852221 14.3304201,20.806251 14.3304201,20.806251 C14.3304201,20.806251 17.2444579,21.0645585 16.6543688,23.3356948 C16.1432227,25.2930677 15.6944378,26.5462971 15.601797,29.8915257 L15.5808898,29.870365 C15.0560458,28.2511999 13.4360945,28.2205532 13.4360945,28.2205532\" fill=\"#FFFFFF\"></path><path d=\"M1.62277825,39.3398174 C2.12094751,40.9224984 3.90130785,40.1742092 3.90130785,40.1742092 C3.90130785,40.1742092 11.6283384,38.3894062 13.4169896,38.0493742 C15.2002337,37.7104368 16.4759363,38.5907985 16.4759363,38.5907985 C16.4759363,38.5907985 15.6695654,34.9529673 15.4013758,32.8952631 C15.1353491,30.8415721 12.2973704,30.5923856 12.2973704,30.5923856 C12.2973704,30.5923856 3.62230422,30.6022363 2.29649631,30.5923856 C0.89462926,30.579981 0.575613488,29.5058886 0.575613488,29.5058886 C0.575613488,29.5058886 0.610218589,36.0956498 1.62277825,39.3398174\" fill=\"#FFFFFF\"></path><path d=\"M18.1340974,26.4142246 C17.2916794,29.9969648 17.5137288,33.4023923 18.5035789,36.8924629 C21.4493381,47.2524927 32.2774904,53.7878925 42.599543,51.7210673 C42.3299116,52.3256091 41.8209283,52.7958894 41.5931114,53.3745275 C39.8444724,57.8595199 38.9851124,61.8942984 37.3824637,66.4445974 C37.1232859,67.1815766 36.5533831,67.7992527 36.0101551,68.372783 C35.8958862,68.4928157 36.0386322,68.6832628 36.166599,68.6894651 C41.1508149,68.9962966 46.0993443,68.2421699 50.8027542,66.5128227 C51.713301,66.181547 52.5816727,65.8626758 53.443556,65.4314335 C66.739845,58.8000805 75.3929225,45.3604264 75.5760411,31.4727474 C75.7259966,20.4629355 71.0557499,10.1277149 63.027727,2.29931795 C62.7069089,1.98117645 63.2814977,1.39816027 63.1081117,0.928609688 C63.027727,0.710799511 62.7872936,0.433520224 62.6009307,0.433520224 C57.3337461,0.421115624 52.153795,0.512325916 46.8916569,0.495908063 C46.5769668,0.495908063 46.2071248,0.933717464 46.0337388,1.30074768 C45.9461447,1.48937056 45.8617947,1.92316671 46.1764849,1.94907043 C47.4514665,2.05998215 47.9752291,3.2825649 49.0443826,3.57115426 C50.161118,3.86777013 51.0370596,3.0592821 52.0827825,2.78820512 C52.834362,2.59119089 53.6749776,2.54777479 54.3537422,2.96770697 C55.078647,3.41938034 54.9149937,4.68428466 54.1785539,5.00643941 C51.8037789,6.03930476 49.2321873,5.20454817 47.1652535,3.54889895 C46.8628193,3.31065767 46.3268008,2.8571601 45.8340385,3.1256832 C43.7883724,4.23334098 40.4972832,3.97722248 39.8307745,6.34431197 C39.3571172,8.02659459 40.4388871,9.90881018 41.1688384,11.5841608 C42.0548732,10.3079464 43.554788,10.1040002 44.9126777,10.5217433 C47.3476512,11.2663842 49.337805,12.5889334 51.0900487,14.381398 C53.2845888,16.6288196 54.3587888,19.5789253 54.6049897,22.6246194 C55.2826729,30.9032303 52.9735034,43.1640826 43.6823943,44.6551884 C28.0538657,47.1689441 24.0681512,37.5520957 24.0681512,32.7489618 C24.0681512,30.8696649 24.0184064,29.1041985 24.4819705,27.343475 C25.4361341,23.716589 27.4194389,20.6249249 30.6925047,18.7511007 C32.025522,17.9893123 33.5950075,17.6262954 34.4947401,16.2435474 C35.1781908,15.1949938 35.0603172,13.9800728 34.6821844,12.8720501 C34.3328892,11.8483058 33.3632254,10.9113937 32.413027,10.9113937 C21.7449233,10.9113937 9.9078161,10.9095695 0.621393153,10.9095695 C0.621393153,13.6221636 0.594718388,14.9177146 0.621393153,17.1443402 C0.632207247,18.1943531 1.28501805,18.7521952 2.40860241,18.7521952 L21.6551664,18.7521952 C20.4173131,21.3301629 18.8207923,23.4929414 18.1340974,26.4142246 Z\" fill=\"#FFFFFF\"></path><path d=\"M11.3828585,54.9313047 C12.5742112,54.515021 21.0726472,49.1828673 21.7878192,48.9209113 C22.4258508,48.6888724 22.9550204,48.6111612 23.8875558,49.2802799 C26.3931814,51.080771 29.0235295,52.8995043 30.3186975,52.8995043 C30.3186975,52.8995043 29.9146108,53.2154567 29.1107632,53.9827177 C28.3512533,54.7098461 20.9396338,62.70607 20.9396338,62.70607 C20.9396338,62.70607 19.600849,64.1081546 18.1705048,63.1599324 C18.1705048,63.1599324 13.3016392,59.7238583 9.37323939,55.293592 C9.37323939,55.293592 10.0894929,55.3848023 11.3828585,54.9313047\" fill=\"#FFFFFF\"></path><path d=\"M21.3422786,64.9199262 C21.3422786,64.9199262 22.5033518,64.8765101 23.1298483,64.2905752 C23.7545425,63.7020864 31.5673649,54.432202 31.5673649,54.432202 C31.5673649,54.432202 31.8672757,53.4431176 33.3996329,53.7988377 C35.3198555,54.2541595 38.4029537,54.390975 39.0265664,54.3431808 C39.0265664,54.3431808 38.6232007,54.7098461 38.1769391,55.9258617 C37.9166799,56.6376669 35.1421439,66.5026072 34.6057648,67.2705978 C34.0697462,68.0415072 33.9810706,68.7186524 32.1913381,68.4016055 C28.8014801,67.8010769 26.0694795,66.9685093 21.3422786,64.9199262\" fill=\"#FFFFFF\"></path><path d=\"M2.46159147,42.2184143 C2.46159147,42.2184143 3.39989436,42.4891264 4.33891818,42.3081652 C6.18308167,41.9528099 13.275325,40.0829989 14.6097841,39.9593177 C16.5307277,39.7765323 16.1738626,40.048339 17.1983178,41.0447202 C18.0803874,41.8940705 19.8340729,45.6968099 20.2817764,45.9693463 C20.7258752,46.2385991 20.9933438,46.7369721 21.754656,46.8756118 C21.754656,46.8756118 11.0227492,52.9334345 10.1868197,53.0220909 C9.29645932,53.1129363 8.42340147,53.9973113 7.50888959,52.661263 C4.33891818,48.0055248 4.25168449,47.3247312 2.86387577,43.4384431 L2.46159147,42.2184143\" fill=\"#FFFFFF\"></path><polygon fill=\"#C11E42\" points=\"30.9895318 38.5240326 46.0903326 38.5240326 46.0903326 24.2594726 30.9895318 24.2594726\"></polygon><path d=\"M38.5792234,23.2010684 C38.5792234,23.2010684 36.2116577,19.9455907 32.2828974,20.1283761 L32.2828974,22.7964596 L29.7372597,22.7964596 L29.7372597,39.8356366 L36.5238246,39.8356366 C36.5238246,39.8356366 36.8395961,38.750599 37.4181502,38.5240326 L31.0774864,38.5240326 L31.0774864,24.329887 L32.1913381,24.329887 L32.1913381,35.5418209 C32.1913381,35.5418209 35.7390818,35.4586371 37.7501428,38.5316943 L38.8928321,38.5316943\" fill=\"#FFFFFF\"></path><path d=\"M38.5792234,23.2010684 C38.5792234,23.2010684 40.9568822,19.9455907 44.8842006,20.1283761 L44.8842006,22.7964596 L47.4276755,22.7964596 L47.4276755,39.8356366 L40.6414711,39.8356366 C40.6414711,39.8356366 40.3303857,38.750599 39.7482269,38.5240326 L46.0903326,38.5240326 L46.0903326,24.329887 L44.9710738,24.329887 L44.9710738,35.5418209 C44.9710738,35.5418209 41.4290976,35.4586371 39.4201994,38.5316943 L38.7609002,38.5316943\" fill=\"#FFFFFF\"></path><path d=\"M37.8903656,24.329887 C37.8903656,24.329887 36.4823706,21.619482 33.5326462,21.619482 L33.5326462,34.5001994 C33.5326462,34.5001994 35.9016537,34.7716412 37.5500821,36.0832452 L37.9094705,36.3991976 L37.8903656,24.329887\" fill=\"#C11E42\"></path><path d=\"M39.30557,24.329887 C39.30557,24.329887 40.6854484,21.619482 43.6326495,21.619482 L43.6326495,34.5001994 C43.6326495,34.5001994 40.7535772,34.92378 39.735971,35.879299 C39.5377126,36.0660977 39.30557,36.4232772 39.30557,36.4232772 L39.30557,24.329887\" fill=\"#C11E42\"></path></g></g></g></g></svg>`;\n","import { html, css } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { UvalibElement } from '../../base/UvalibElement.js';\nimport { siteLink } from '../link.js';\nimport { accessible } from '../../styles/accessible.js';\nimport { facebookIcon, instagramIcon, fdlpLogo } from './icons.js';\n\ntype FooterLink = { label: string; path: string };\n\nconst USING: FooterLink[] = [\n { label: 'Search, borrow, request', path: '/services' },\n { label: 'Research & teaching', path: '/research-and-teaching' },\n { label: 'Library spaces', path: '/spaces' },\n { label: 'Equipment & technology', path: '/equipment-and-tech' },\n { label: 'Get help', path: '/help' },\n];\n\nconst ABOUT: FooterLink[] = [\n { label: 'About UVA Library', path: '/about-uva-library' },\n { label: 'Jobs and fellowships', path: '/jobs/' },\n { label: 'Staff directory', path: '/staff/' },\n { label: 'Library policies', path: '/policies' },\n { label: 'Status dashboard', path: '/status' },\n];\n\n/**\n * UVA Library site footer: link columns, contact details and copyright.\n *\n * @tagname site-footer\n * @slot pre-footer - Optional content shown in a band above the footer links.\n * @csspart footer - The `<footer>` element.\n * @cssprop [--uva-brand-blue=#232d4b] - Main footer background (also the skip-link background in the shared accessibility sheet, which the footer does not render).\n * @cssprop [--uva-blue-alt-300=#bfe7f7] - Pre-footer band background.\n * @cssprop [--uva-blue-alt-darkest=#141e3c] - Copyright bar background.\n * @cssprop [--uva-brand-orange=#e57200] - Social icon hover colour and focus-visible outline. Footer link and text colours are fixed white.\n * @cssprop --uva-color-pre-footer-bg - Dark-mode role token: pre-footer band background (else `--uva-blue-alt-300`).\n * @cssprop --uva-color-pre-footer-text - Dark-mode role token: pre-footer band text (else inherited). The footer itself is the same in both schemes.\n */\nexport class SiteFooter extends UvalibElement {\n /**\n * Only the footer's own blocks follow the library's scheme (below): the pre-footer band\n * holds the site's content, which keeps the page's scheme.\n */\n protected static override hostColorScheme = false;\n @property({ type: String, attribute: 'root-link-domain' }) rootLinkDomain =\n 'https://www.library.virginia.edu';\n\n static styles = [\n accessible, // focus rings on the dark background\n css`\n :host {\n display: block;\n width: 100%;\n }\n footer {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n .footer--pre {\n display: none;\n background-color: var(--uva-color-pre-footer-bg, var(--uva-blue-alt-300, #bfe7f7));\n /* No fallback: without dark mode the band inherits the page's text colour, as before. */\n color: var(--uva-color-pre-footer-text);\n }\n .footer--pre.has-content {\n display: block;\n }\n .footer--pre ::slotted([slot='pre-footer']),\n .footer--pre [slot='pre-footer'] {\n text-align: center;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n .footer--main {\n background-color: var(--uva-brand-blue, #232d4b);\n color: #fff;\n /* Already dark: unchanged in dark mode, focus ring included. */\n --uva-color-focus: initial;\n color-scheme: var(--uva-color-scheme, light);\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n padding-top: 2rem;\n }\n /* Old layout: each column's content is centred within its 300px block. */\n .footer--main > .block {\n display: flex;\n justify-content: space-around;\n width: 300px;\n box-sizing: border-box;\n }\n .footer--main h2,\n .footer--main a,\n .footer--main address {\n color: #fff;\n }\n .footer--main ul {\n list-style-type: none;\n padding-left: 0;\n }\n .footer--main address {\n font-style: italic;\n }\n /* Old shared sheet sized every inline svg at 17px, nudged by the same offsets. */\n .footer--main svg,\n .footer--post svg {\n display: inline-block;\n width: 17px;\n height: 17px;\n position: relative;\n top: 4px;\n left: -5px;\n }\n .footer--main .social-media {\n display: flex;\n }\n .footer--main .social-media a {\n display: inline-block;\n height: 2rem;\n width: 2rem;\n margin-right: 1rem;\n fill: #fff;\n }\n .footer--main .social-media a:hover,\n .footer--main .social-media a:focus {\n fill: var(--uva-brand-orange, #e57200);\n }\n .footer--post {\n background-color: var(--uva-blue-alt-darkest, #141e3c);\n color: #fff;\n --uva-color-focus: initial;\n color-scheme: var(--uva-color-scheme, light);\n padding: 1rem 2rem;\n }\n .footer--post .post-footer {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1.5rem;\n margin: 0 auto;\n }\n .footer--post p {\n margin: 0;\n }\n .footer--post a {\n display: inline-flex;\n }\n @media screen and (max-width: 767px) {\n .footer--main > .block {\n justify-content: flex-start;\n padding: 1rem;\n }\n }\n `,\n ];\n\n private get preFooter(): HTMLElement | null {\n return this.renderRoot.querySelector('.footer--pre');\n }\n\n private observer?: MutationObserver;\n\n /** Light DOM has no slots: move host children marked slot=\"pre-footer\" into the wrapper. */\n private adoptPreFooterChildren(): void {\n const wrapper = this.preFooter;\n if (!wrapper) return;\n const moved = [...this.children].filter(\n (c) => c.getAttribute('slot') === 'pre-footer' && !wrapper.contains(c),\n );\n wrapper.append(...moved);\n if (moved.length) wrapper.classList.add('has-content');\n }\n\n private observe(): void {\n this.observer ??= new MutationObserver(() => this.adoptPreFooterChildren());\n this.observer.observe(this, { childList: true });\n }\n\n protected override firstUpdated(): void {\n if (!this.lightDom) return;\n this.adoptPreFooterChildren();\n this.observe();\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n // Reconnect after a disconnect; the first connect starts observing in firstUpdated.\n if (this.lightDom && this.hasUpdated) this.observe();\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n this.observer?.disconnect();\n }\n\n private onPreSlotChange(e: Event): void {\n const slot = e.target as HTMLSlotElement;\n // flatten: a forwarded <slot> with nothing assigned must not count as content.\n const has = slot.assignedElements({ flatten: true }).length > 0;\n this.preFooter?.classList.toggle('has-content', has);\n }\n\n private links(links: FooterLink[]) {\n return html`<ul>\n ${links.map((l) => html`<li><a href=${siteLink(this.rootLinkDomain, l.path)}>${l.label}</a></li>`)}\n </ul>`;\n }\n\n protected override render() {\n const root = this.rootLinkDomain;\n return html`\n <footer part=\"footer\">\n <div class=\"footer--pre\">\n ${this.lightDom ? null : html`<slot name=\"pre-footer\" @slotchange=${this.onPreSlotChange}></slot>`}\n </div>\n <div class=\"footer--main\">\n <div class=\"block\">\n <div class=\"block-content\">\n <h2>Using the Library</h2>\n ${this.links(USING)}\n </div>\n </div>\n <div class=\"block\">\n <div class=\"block-content\">\n <h2>About</h2>\n ${this.links(ABOUT)}\n </div>\n </div>\n <div class=\"block\">\n <div class=\"block-content\">\n <h2>Contact us</h2>\n <address>\n <a href=\"tel:+14349243021\">(434) 924-3021</a><br />\n <a href=\"mailto:library@virginia.edu\">library@virginia.edu</a><br />\n UVA Shannon Library<br />\n P.O. Box 400113<br />\n 160 McCormick Road<br />\n Charlottesville, VA 22904\n </address>\n <ul>\n <li><a href=${siteLink(root, '/askalibrarian')}>Ask a Librarian</a></li>\n <li><a href=${siteLink(root, '/site-feedback')}>Site feedback</a></li>\n </ul>\n <ul class=\"social-media\">\n <li>\n <a\n href=\"https://www.facebook.com/UVALibrary/\"\n aria-label=\"UVA Library on Facebook\"\n >${facebookIcon}</a\n >\n </li>\n <li>\n <a href=\"https://instagram.com/uvalibrary\" aria-label=\"UVA Library on Instagram\"\n >${instagramIcon}</a\n >\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class=\"footer--post\">\n <div class=\"post-footer\">\n <p>\n Copyright ${new Date().getFullYear()} by the Rector and Visitors of the University of\n Virginia\n </p>\n <a\n href=\"https://guides.lib.virginia.edu/findinggovinfo\"\n aria-label=\"Federal Depository Library Program\"\n >${fdlpLogo}</a\n >\n </div>\n </div>\n </footer>\n `;\n }\n}\n","import { define } from '../../base/define.js';\nimport { SiteFooter } from './SiteFooter.js';\n\ndefine('site-footer', SiteFooter);\n"],"mappings":";;;;AAGA,IAAaW,IAAe,CAAG,iYAElBC,IAAgB,CAAG,yhCAGnBC,IAAW,CAAG,kwOCCrBC,IAAsB;CAC1B;EAAE,OAAO;EAA2B,MAAM;CAAY;CACtD;EAAE,OAAO;EAAuB,MAAM;CAAyB;CAC/D;EAAE,OAAO;EAAkB,MAAM;CAAU;CAC3C;EAAE,OAAO;EAA0B,MAAM;CAAsB;CAC/D;EAAE,OAAO;EAAY,MAAM;CAAQ;AACrC,GAEMC,IAAsB;CAC1B;EAAE,OAAO;EAAqB,MAAM;CAAqB;CACzD;EAAE,OAAO;EAAwB,MAAM;CAAS;CAChD;EAAE,OAAO;EAAmB,MAAM;CAAU;CAC5C;EAAE,OAAO;EAAoB,MAAM;CAAY;CAC/C;EAAE,OAAO;EAAoB,MAAM;CAAU;AAC/C,GAeaC,IAAb,cAAgCR,EAAc;;EAO1C,A,aAAA,KAAA,iBAAA;;;EAF0C,KAAA,kBAAA;;;EAI5B,KAAA,SAAA,CACdE,GACA,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA0GL;;CAEA,IAAY,YAAgC;EAC1C,OAAO,KAAK,WAAW,cAAc,cAAc;CACrD;CAKA,yBAAuC;EACrC,IAAMQ,IAAU,KAAK;EACrB,IAAI,CAACA,GAAS;EACd,IAAMC,IAAQ,CAAC,GAAG,KAAK,QAAQ,CAAC,CAAC,QAC9B,MAAMC,EAAE,aAAa,MAAM,MAAM,gBAAgB,CAACF,EAAQ,SAASE,CAAC,CACvE;EAEA,AADAF,EAAQ,OAAO,GAAGC,CAAK,GACnBA,EAAM,UAAQD,EAA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A,KAAA,CAAA,GCzC3DV,EAAO,eAAeU,CAAU"}
1
+ {"version":3,"file":"site-footer.js","names":["_decorate","property","n","w","i","b","define","__decorate","UvalibElement","trackEvent","siteLink","accessible","facebookIcon","instagramIcon","fdlpLogo","USING","ABOUT","SiteFooter","wrapper","moved","c","a","href","label","name","has","links","l","root"],"sources":["../src/components/site-footer/icons.ts","../src/components/site-footer/SiteFooter.ts","../src/components/site-footer/site-footer.ts"],"sourcesContent":["import { svg } from 'lit';\n\n// Font Awesome Pro 6.2.0 (c) 2022 Fonticons, Inc. https://fontawesome.com (Commercial License)\nexport const facebookIcon = svg`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M400 32H48A48 48 0 0 0 0 80v352a48 48 0 0 0 48 48h137.25V327.69h-63V256h63v-54.64c0-62.15 37-96.48 93.67-96.48 27.14 0 55.52 4.84 55.52 4.84v61h-31.27c-30.81 0-40.42 19.12-40.42 38.73V256h68.78l-11 71.69h-57.78V480H400a48 48 0 0 0 48-48V80a48 48 0 0 0-48-48z\"></path></svg>`;\n\nexport const instagramIcon = svg`<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\" aria-hidden=\"true\" focusable=\"false\"><path d=\"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\"></path></svg>`;\n\n/** Federal Depository Library Program emblem. Decorative: the wrapping link carries the accessible name. */\nexport const fdlpLogo = svg`<svg xmlns=\"http://www.w3.org/2000/svg\" width=\"35\" viewBox=\"0 0 76 69\" aria-hidden=\"true\" focusable=\"false\"><g stroke=\"none\" stroke-width=\"1\" fill=\"none\" fill-rule=\"evenodd\"><g transform=\"translate(-1164.000000, -2888.000000)\"><g transform=\"translate(-1.000000, 2650.000000)\"><g transform=\"translate(1164.778054, 238.000000)\"><path d=\"M13.4360945,28.2205532 L2.35993899,28.2205532 C2.35993899,28.2205532 0.577055368,28.0392271 0.575613488,27.3131932 C0.565880804,19.4366373 0.594718388,19.7671834 0.594718388,19.7671834 C0.594718388,19.7671834 1.50598604,20.7522545 2.71824597,20.806251 C3.74774771,20.852221 14.3304201,20.806251 14.3304201,20.806251 C14.3304201,20.806251 17.2444579,21.0645585 16.6543688,23.3356948 C16.1432227,25.2930677 15.6944378,26.5462971 15.601797,29.8915257 L15.5808898,29.870365 C15.0560458,28.2511999 13.4360945,28.2205532 13.4360945,28.2205532\" fill=\"#FFFFFF\"></path><path d=\"M1.62277825,39.3398174 C2.12094751,40.9224984 3.90130785,40.1742092 3.90130785,40.1742092 C3.90130785,40.1742092 11.6283384,38.3894062 13.4169896,38.0493742 C15.2002337,37.7104368 16.4759363,38.5907985 16.4759363,38.5907985 C16.4759363,38.5907985 15.6695654,34.9529673 15.4013758,32.8952631 C15.1353491,30.8415721 12.2973704,30.5923856 12.2973704,30.5923856 C12.2973704,30.5923856 3.62230422,30.6022363 2.29649631,30.5923856 C0.89462926,30.579981 0.575613488,29.5058886 0.575613488,29.5058886 C0.575613488,29.5058886 0.610218589,36.0956498 1.62277825,39.3398174\" fill=\"#FFFFFF\"></path><path d=\"M18.1340974,26.4142246 C17.2916794,29.9969648 17.5137288,33.4023923 18.5035789,36.8924629 C21.4493381,47.2524927 32.2774904,53.7878925 42.599543,51.7210673 C42.3299116,52.3256091 41.8209283,52.7958894 41.5931114,53.3745275 C39.8444724,57.8595199 38.9851124,61.8942984 37.3824637,66.4445974 C37.1232859,67.1815766 36.5533831,67.7992527 36.0101551,68.372783 C35.8958862,68.4928157 36.0386322,68.6832628 36.166599,68.6894651 C41.1508149,68.9962966 46.0993443,68.2421699 50.8027542,66.5128227 C51.713301,66.181547 52.5816727,65.8626758 53.443556,65.4314335 C66.739845,58.8000805 75.3929225,45.3604264 75.5760411,31.4727474 C75.7259966,20.4629355 71.0557499,10.1277149 63.027727,2.29931795 C62.7069089,1.98117645 63.2814977,1.39816027 63.1081117,0.928609688 C63.027727,0.710799511 62.7872936,0.433520224 62.6009307,0.433520224 C57.3337461,0.421115624 52.153795,0.512325916 46.8916569,0.495908063 C46.5769668,0.495908063 46.2071248,0.933717464 46.0337388,1.30074768 C45.9461447,1.48937056 45.8617947,1.92316671 46.1764849,1.94907043 C47.4514665,2.05998215 47.9752291,3.2825649 49.0443826,3.57115426 C50.161118,3.86777013 51.0370596,3.0592821 52.0827825,2.78820512 C52.834362,2.59119089 53.6749776,2.54777479 54.3537422,2.96770697 C55.078647,3.41938034 54.9149937,4.68428466 54.1785539,5.00643941 C51.8037789,6.03930476 49.2321873,5.20454817 47.1652535,3.54889895 C46.8628193,3.31065767 46.3268008,2.8571601 45.8340385,3.1256832 C43.7883724,4.23334098 40.4972832,3.97722248 39.8307745,6.34431197 C39.3571172,8.02659459 40.4388871,9.90881018 41.1688384,11.5841608 C42.0548732,10.3079464 43.554788,10.1040002 44.9126777,10.5217433 C47.3476512,11.2663842 49.337805,12.5889334 51.0900487,14.381398 C53.2845888,16.6288196 54.3587888,19.5789253 54.6049897,22.6246194 C55.2826729,30.9032303 52.9735034,43.1640826 43.6823943,44.6551884 C28.0538657,47.1689441 24.0681512,37.5520957 24.0681512,32.7489618 C24.0681512,30.8696649 24.0184064,29.1041985 24.4819705,27.343475 C25.4361341,23.716589 27.4194389,20.6249249 30.6925047,18.7511007 C32.025522,17.9893123 33.5950075,17.6262954 34.4947401,16.2435474 C35.1781908,15.1949938 35.0603172,13.9800728 34.6821844,12.8720501 C34.3328892,11.8483058 33.3632254,10.9113937 32.413027,10.9113937 C21.7449233,10.9113937 9.9078161,10.9095695 0.621393153,10.9095695 C0.621393153,13.6221636 0.594718388,14.9177146 0.621393153,17.1443402 C0.632207247,18.1943531 1.28501805,18.7521952 2.40860241,18.7521952 L21.6551664,18.7521952 C20.4173131,21.3301629 18.8207923,23.4929414 18.1340974,26.4142246 Z\" fill=\"#FFFFFF\"></path><path d=\"M11.3828585,54.9313047 C12.5742112,54.515021 21.0726472,49.1828673 21.7878192,48.9209113 C22.4258508,48.6888724 22.9550204,48.6111612 23.8875558,49.2802799 C26.3931814,51.080771 29.0235295,52.8995043 30.3186975,52.8995043 C30.3186975,52.8995043 29.9146108,53.2154567 29.1107632,53.9827177 C28.3512533,54.7098461 20.9396338,62.70607 20.9396338,62.70607 C20.9396338,62.70607 19.600849,64.1081546 18.1705048,63.1599324 C18.1705048,63.1599324 13.3016392,59.7238583 9.37323939,55.293592 C9.37323939,55.293592 10.0894929,55.3848023 11.3828585,54.9313047\" fill=\"#FFFFFF\"></path><path d=\"M21.3422786,64.9199262 C21.3422786,64.9199262 22.5033518,64.8765101 23.1298483,64.2905752 C23.7545425,63.7020864 31.5673649,54.432202 31.5673649,54.432202 C31.5673649,54.432202 31.8672757,53.4431176 33.3996329,53.7988377 C35.3198555,54.2541595 38.4029537,54.390975 39.0265664,54.3431808 C39.0265664,54.3431808 38.6232007,54.7098461 38.1769391,55.9258617 C37.9166799,56.6376669 35.1421439,66.5026072 34.6057648,67.2705978 C34.0697462,68.0415072 33.9810706,68.7186524 32.1913381,68.4016055 C28.8014801,67.8010769 26.0694795,66.9685093 21.3422786,64.9199262\" fill=\"#FFFFFF\"></path><path d=\"M2.46159147,42.2184143 C2.46159147,42.2184143 3.39989436,42.4891264 4.33891818,42.3081652 C6.18308167,41.9528099 13.275325,40.0829989 14.6097841,39.9593177 C16.5307277,39.7765323 16.1738626,40.048339 17.1983178,41.0447202 C18.0803874,41.8940705 19.8340729,45.6968099 20.2817764,45.9693463 C20.7258752,46.2385991 20.9933438,46.7369721 21.754656,46.8756118 C21.754656,46.8756118 11.0227492,52.9334345 10.1868197,53.0220909 C9.29645932,53.1129363 8.42340147,53.9973113 7.50888959,52.661263 C4.33891818,48.0055248 4.25168449,47.3247312 2.86387577,43.4384431 L2.46159147,42.2184143\" fill=\"#FFFFFF\"></path><polygon fill=\"#C11E42\" points=\"30.9895318 38.5240326 46.0903326 38.5240326 46.0903326 24.2594726 30.9895318 24.2594726\"></polygon><path d=\"M38.5792234,23.2010684 C38.5792234,23.2010684 36.2116577,19.9455907 32.2828974,20.1283761 L32.2828974,22.7964596 L29.7372597,22.7964596 L29.7372597,39.8356366 L36.5238246,39.8356366 C36.5238246,39.8356366 36.8395961,38.750599 37.4181502,38.5240326 L31.0774864,38.5240326 L31.0774864,24.329887 L32.1913381,24.329887 L32.1913381,35.5418209 C32.1913381,35.5418209 35.7390818,35.4586371 37.7501428,38.5316943 L38.8928321,38.5316943\" fill=\"#FFFFFF\"></path><path d=\"M38.5792234,23.2010684 C38.5792234,23.2010684 40.9568822,19.9455907 44.8842006,20.1283761 L44.8842006,22.7964596 L47.4276755,22.7964596 L47.4276755,39.8356366 L40.6414711,39.8356366 C40.6414711,39.8356366 40.3303857,38.750599 39.7482269,38.5240326 L46.0903326,38.5240326 L46.0903326,24.329887 L44.9710738,24.329887 L44.9710738,35.5418209 C44.9710738,35.5418209 41.4290976,35.4586371 39.4201994,38.5316943 L38.7609002,38.5316943\" fill=\"#FFFFFF\"></path><path d=\"M37.8903656,24.329887 C37.8903656,24.329887 36.4823706,21.619482 33.5326462,21.619482 L33.5326462,34.5001994 C33.5326462,34.5001994 35.9016537,34.7716412 37.5500821,36.0832452 L37.9094705,36.3991976 L37.8903656,24.329887\" fill=\"#C11E42\"></path><path d=\"M39.30557,24.329887 C39.30557,24.329887 40.6854484,21.619482 43.6326495,21.619482 L43.6326495,34.5001994 C43.6326495,34.5001994 40.7535772,34.92378 39.735971,35.879299 C39.5377126,36.0660977 39.30557,36.4232772 39.30557,36.4232772 L39.30557,24.329887\" fill=\"#C11E42\"></path></g></g></g></g></svg>`;\n","import { html, css } from 'lit';\nimport { property } from 'lit/decorators.js';\nimport { trackEvent } from '../../base/analytics.js';\nimport { UvalibElement } from '../../base/UvalibElement.js';\nimport { siteLink } from '../link.js';\nimport { accessible } from '../../styles/accessible.js';\nimport { facebookIcon, instagramIcon, fdlpLogo } from './icons.js';\n\ntype FooterLink = { label: string; path: string };\n\nconst USING: FooterLink[] = [\n { label: 'Search, borrow, request', path: '/services' },\n { label: 'Research & teaching', path: '/research-and-teaching' },\n { label: 'Library spaces', path: '/spaces' },\n { label: 'Equipment & technology', path: '/equipment-and-tech' },\n { label: 'Get help', path: '/help' },\n];\n\nconst ABOUT: FooterLink[] = [\n { label: 'About UVA Library', path: '/about-uva-library' },\n { label: 'Jobs and fellowships', path: '/jobs/' },\n { label: 'Staff directory', path: '/staff/' },\n { label: 'Library policies', path: '/policies' },\n { label: 'Status dashboard', path: '/status' },\n];\n\n/**\n * UVA Library site footer: link columns, contact details and copyright.\n *\n * @tagname site-footer\n * @slot pre-footer - Optional content shown in a band above the footer links.\n * @fires uvalib-analytics-event - For `<site-analytics>`: a click on one of the footer's own links (not the pre-footer's), `['site-footer', 'link-click', '<Column>: <Link>']`, for example `Using the Library: Get help`; the phone and email links are `Contact us: Phone` and `Contact us: Email`, the social links `Social: Facebook` and `Social: Instagram`. Never a URL. Bubbles and is composed.\n * @csspart footer - The `<footer>` element.\n * @cssprop [--uva-brand-blue=#232d4b] - Main footer background (also the skip-link background in the shared accessibility sheet, which the footer does not render).\n * @cssprop [--uva-blue-alt-300=#bfe7f7] - Pre-footer band background.\n * @cssprop [--uva-blue-alt-darkest=#141e3c] - Copyright bar background.\n * @cssprop [--uva-brand-orange=#e57200] - Social icon hover colour and focus-visible outline. Footer link and text colours are fixed white.\n * @cssprop --uva-color-pre-footer-bg - Dark-mode role token: pre-footer band background (else `--uva-blue-alt-300`).\n * @cssprop --uva-color-pre-footer-text - Dark-mode role token: pre-footer band text (else inherited). The footer itself is the same in both schemes.\n */\nexport class SiteFooter extends UvalibElement {\n /**\n * Only the footer's own blocks follow the library's scheme (below): the pre-footer band\n * holds the site's content, which keeps the page's scheme.\n */\n protected static override hostColorScheme = false;\n @property({ type: String, attribute: 'root-link-domain' }) rootLinkDomain =\n 'https://www.library.virginia.edu';\n\n static styles = [\n accessible, // focus rings on the dark background\n css`\n :host {\n display: block;\n width: 100%;\n }\n footer {\n display: flex;\n flex-direction: column;\n width: 100%;\n }\n .footer--pre {\n display: none;\n background-color: var(--uva-color-pre-footer-bg, var(--uva-blue-alt-300, #bfe7f7));\n /* No fallback: without dark mode the band inherits the page's text colour, as before. */\n color: var(--uva-color-pre-footer-text);\n }\n .footer--pre.has-content {\n display: block;\n }\n .footer--pre ::slotted([slot='pre-footer']),\n .footer--pre [slot='pre-footer'] {\n text-align: center;\n padding-top: 0.5rem;\n padding-bottom: 0.5rem;\n }\n .footer--main {\n background-color: var(--uva-brand-blue, #232d4b);\n color: #fff;\n /* Already dark: unchanged in dark mode, focus ring included. */\n --uva-color-focus: initial;\n color-scheme: var(--uva-color-scheme, light);\n display: flex;\n flex-wrap: wrap;\n justify-content: center;\n padding-top: 2rem;\n }\n /* Old layout: each column's content is centred within its 300px block. */\n .footer--main > .block {\n display: flex;\n justify-content: space-around;\n width: 300px;\n box-sizing: border-box;\n }\n .footer--main h2,\n .footer--main a,\n .footer--main address {\n color: #fff;\n }\n .footer--main ul {\n list-style-type: none;\n padding-left: 0;\n }\n /* Its own line height (as the page's base styles give it), so stacked links stay 24px\n apart (WCAG 2.2 target size) even on a page with line-height: normal. */\n .footer--main .block-content {\n line-height: 1.5;\n }\n .footer--main address {\n font-style: italic;\n }\n /* Old shared sheet sized every inline svg at 17px, nudged by the same offsets. */\n .footer--main svg,\n .footer--post svg {\n display: inline-block;\n width: 17px;\n height: 17px;\n position: relative;\n top: 4px;\n left: -5px;\n }\n .footer--main .social-media {\n display: flex;\n }\n .footer--main .social-media a {\n display: inline-block;\n height: 2rem;\n width: 2rem;\n margin-right: 1rem;\n fill: #fff;\n }\n .footer--main .social-media a:hover,\n .footer--main .social-media a:focus {\n fill: var(--uva-brand-orange, #e57200);\n }\n .footer--post {\n background-color: var(--uva-blue-alt-darkest, #141e3c);\n color: #fff;\n --uva-color-focus: initial;\n color-scheme: var(--uva-color-scheme, light);\n padding: 1rem 2rem;\n }\n .footer--post .post-footer {\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 1.5rem;\n margin: 0 auto;\n }\n .footer--post p {\n margin: 0;\n }\n .footer--post a {\n display: inline-flex;\n }\n @media screen and (max-width: 767px) {\n .footer--main > .block {\n justify-content: flex-start;\n padding: 1rem;\n }\n }\n `,\n ];\n\n private get preFooter(): HTMLElement | null {\n return this.renderRoot.querySelector('.footer--pre');\n }\n\n private observer?: MutationObserver;\n\n /** Light DOM has no slots: move host children marked slot=\"pre-footer\" into the wrapper. */\n private adoptPreFooterChildren(): void {\n const wrapper = this.preFooter;\n if (!wrapper) return;\n const moved = [...this.children].filter(\n (c) => c.getAttribute('slot') === 'pre-footer' && !wrapper.contains(c),\n );\n wrapper.append(...moved);\n if (moved.length) wrapper.classList.add('has-content');\n }\n\n constructor() {\n super();\n this.addEventListener('click', this.trackClick);\n }\n\n /** Analytics: which of the footer's own links, by column and label (never contact details). */\n private trackClick = (e: Event): void => {\n const a = e.composedPath().find((n): n is HTMLAnchorElement => n instanceof HTMLAnchorElement);\n if (!a || !this.renderRoot.contains(a) || a.closest('.footer--pre')) return;\n const href = a.getAttribute('href')!;\n const label = a.getAttribute('aria-label') ?? a.textContent!.trim();\n const name = href.startsWith('tel:')\n ? 'Contact us: Phone'\n : href.startsWith('mailto:')\n ? 'Contact us: Email'\n : a.closest('.social-media')\n ? `Social: ${label.replace('UVA Library on ', '')}`\n : `${a.closest('.block-content')?.querySelector('h2')?.textContent ?? 'Footer'}: ${label}`;\n trackEvent(this, ['site-footer', 'link-click', name]);\n };\n\n private observe(): void {\n this.observer ??= new MutationObserver(() => this.adoptPreFooterChildren());\n this.observer.observe(this, { childList: true });\n }\n\n protected override firstUpdated(): void {\n if (!this.lightDom) return;\n this.adoptPreFooterChildren();\n this.observe();\n }\n\n override connectedCallback(): void {\n super.connectedCallback();\n // Reconnect after a disconnect; the first connect starts observing in firstUpdated.\n if (this.lightDom && this.hasUpdated) this.observe();\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n this.observer?.disconnect();\n }\n\n private onPreSlotChange(e: Event): void {\n const slot = e.target as HTMLSlotElement;\n // flatten: a forwarded <slot> with nothing assigned must not count as content.\n const has = slot.assignedElements({ flatten: true }).length > 0;\n this.preFooter?.classList.toggle('has-content', has);\n }\n\n private links(links: FooterLink[]) {\n return html`<ul>\n ${links.map((l) => html`<li><a href=${siteLink(this.rootLinkDomain, l.path)}>${l.label}</a></li>`)}\n </ul>`;\n }\n\n protected override render() {\n const root = this.rootLinkDomain;\n return html`\n <footer part=\"footer\">\n <div class=\"footer--pre\">\n ${this.lightDom ? null : html`<slot name=\"pre-footer\" @slotchange=${this.onPreSlotChange}></slot>`}\n </div>\n <div class=\"footer--main\">\n <div class=\"block\">\n <div class=\"block-content\">\n <h2>Using the Library</h2>\n ${this.links(USING)}\n </div>\n </div>\n <div class=\"block\">\n <div class=\"block-content\">\n <h2>About</h2>\n ${this.links(ABOUT)}\n </div>\n </div>\n <div class=\"block\">\n <div class=\"block-content\">\n <h2>Contact us</h2>\n <address>\n <a href=\"tel:+14349243021\">(434) 924-3021</a><br />\n <a href=\"mailto:library@virginia.edu\">library@virginia.edu</a><br />\n UVA Shannon Library<br />\n P.O. Box 400113<br />\n 160 McCormick Road<br />\n Charlottesville, VA 22904\n </address>\n <ul>\n <li><a href=${siteLink(root, '/askalibrarian')}>Ask a Librarian</a></li>\n <li><a href=${siteLink(root, '/site-feedback')}>Site feedback</a></li>\n </ul>\n <ul class=\"social-media\">\n <li>\n <a\n href=\"https://www.facebook.com/UVALibrary/\"\n aria-label=\"UVA Library on Facebook\"\n >${facebookIcon}</a\n >\n </li>\n <li>\n <a href=\"https://instagram.com/uvalibrary\" aria-label=\"UVA Library on Instagram\"\n >${instagramIcon}</a\n >\n </li>\n </ul>\n </div>\n </div>\n </div>\n <div class=\"footer--post\">\n <div class=\"post-footer\">\n <p>\n Copyright ${new Date().getFullYear()} by the Rector and Visitors of the University of\n Virginia\n </p>\n <a\n href=\"https://guides.lib.virginia.edu/findinggovinfo\"\n aria-label=\"Federal Depository Library Program\"\n >${fdlpLogo}</a\n >\n </div>\n </div>\n </footer>\n `;\n }\n}\n","import { define } from '../../base/define.js';\nimport { SiteFooter } from './SiteFooter.js';\n\ndefine('site-footer', SiteFooter);\n"],"mappings":";;;;;AAGA,IAAaY,IAAe,CAAG,iYAElBC,IAAgB,CAAG,yhCAGnBC,IAAW,CAAG,kwOCErBC,IAAsB;CAC1B;EAAE,OAAO;EAA2B,MAAM;CAAY;CACtD;EAAE,OAAO;EAAuB,MAAM;CAAyB;CAC/D;EAAE,OAAO;EAAkB,MAAM;CAAU;CAC3C;EAAE,OAAO;EAA0B,MAAM;CAAsB;CAC/D;EAAE,OAAO;EAAY,MAA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AOxChB,EAAa;;;;;uBAKbC,EAAc;;;;;;;;;;2CAUX,IAAI,KAAK,EAAA,CAAE,YAAY,EAAE;;;;;;iBAMlCC,EAAS;;;;;;CAMxB;AACF;;AAnQGd,EAAA,CAAAC,EAAS;CAAE,MAAM;CAAQ,WAAW;AAAmB,CAAC,CAAA,GAAAgB,EAAA,WAAA,kBAAA,KAAA,CAAA,GC3C3DX,EAAO,eAAeW,CAAU"}
@@ -1 +1 @@
1
- import "./chunks/site-header-BwDkZ2LL.js";
1
+ import "./chunks/site-header-C9V7Wuw2.js";
@@ -1,16 +1,17 @@
1
1
  import { a as e, f as t, i as n, m as r, n as i, o as a, t as o } from "./chunks/UvalibElement-BnI-eRRR.js";
2
2
  import { n as s, t as c } from "./chunks/static-html-1mTAG6nS.js";
3
3
  import { t as l } from "./chunks/repeat-CIFUYkyh.js";
4
- import { t as u } from "./chunks/accessible-GqhVn5_H.js";
5
- import { r as d } from "./chunks/new-york-DkcnqvJ4.js";
6
- import { a as f, i as p, l as m, n as h, o as g, p as _, r as v, s as y, u as b } from "./chunks/hours-data-Bw6vkIw7.js";
4
+ import { a as u, i as d } from "./chunks/analytics-DTTihuBD.js";
5
+ import { t as f } from "./chunks/accessible-GqhVn5_H.js";
6
+ import { r as p } from "./chunks/new-york-DkcnqvJ4.js";
7
+ import { a as m, i as h, l as g, n as _, o as v, p as y, r as b, s as x, u as S } from "./chunks/hours-data-Bw6vkIw7.js";
7
8
  // src/components/site-hours-section/SiteHoursSection.ts
8
- var x = class extends o {
9
+ var C = class extends o {
9
10
  constructor(...e) {
10
11
  super(...e), this.limited = !1, this.headingLevel = 3, this.placeType = null, this._state = "loading", this.today = "", this.libraries = [], this.hoursDate = "", this.loadId = 0, this.infoNodes = /* @__PURE__ */ new Map();
11
12
  }
12
13
  static {
13
- this.styles = [u, t`
14
+ this.styles = [f, t`
14
15
  :host {
15
16
  display: block;
16
17
  }
@@ -46,19 +47,19 @@ var x = class extends o {
46
47
  `];
47
48
  }
48
49
  static get endpoints() {
49
- return p;
50
+ return h;
50
51
  }
51
52
  static set endpoints(e) {
52
- b(e);
53
+ S(e);
53
54
  }
54
55
  get state() {
55
56
  return this._state;
56
57
  }
57
58
  connectedCallback() {
58
- super.connectedCallback(), this.today = d(), clearInterval(this.tickTimer), this.tickTimer = setInterval(() => {
59
- let e = d();
59
+ super.connectedCallback(), this.today = p(), clearInterval(this.tickTimer), this.tickTimer = setInterval(() => {
60
+ let e = p();
60
61
  e === this.today ? (this._state === "error" || this._state === "ready" && !this.hours) && this.load() : this.today = e;
61
- }, f.tick);
62
+ }, m.tick);
62
63
  }
63
64
  disconnectedCallback() {
64
65
  super.disconnectedCallback(), clearInterval(this.tickTimer), this.tickTimer = void 0;
@@ -71,17 +72,18 @@ var x = class extends o {
71
72
  !this.libraries.length && this._state !== "error" && (this._state = "loading");
72
73
  let n;
73
74
  try {
74
- n = _(await y());
75
+ n = y(await x());
75
76
  } catch {
76
- e === this.loadId && (this._state = "error");
77
+ if (e !== this.loadId) return;
78
+ this._state = "error", d(this, "site-hours-section", "hours-load");
77
79
  return;
78
80
  }
79
81
  let r;
80
82
  try {
81
83
  let e = n.map((e) => e.calId).filter((e) => e !== void 0);
82
- r = await g(e, t, t);
84
+ r = await v(e, t, t);
83
85
  } catch {
84
- r = void 0;
86
+ r = void 0, e === this.loadId && d(this, "site-hours-section", "hours-load");
85
87
  }
86
88
  if (e !== this.loadId) return;
87
89
  this.libraries = n, this.hours = r, this.hoursDate = t, this._state = "ready";
@@ -104,12 +106,19 @@ var x = class extends o {
104
106
  let n = this.infoNodes.get(e.id);
105
107
  return n?.source !== t && (n = {
106
108
  source: t,
107
- nodes: [...m(t, this.ownerDocument).childNodes]
109
+ nodes: [...g(t, this.ownerDocument).childNodes]
108
110
  }, this.infoNodes.set(e.id, n)), n.nodes;
109
111
  }
110
112
  renderHours(e) {
111
113
  let t = s`Hours unavailable. <a href="/hours">See all hours</a>`;
112
- return e.calId === void 0 ? e.siteLink ? s`<a href=${e.siteLink}>See site</a>` : e.hoursInformation ? this.info(e, e.hoursInformation) : t : h(this.hours?.get(e.calId)?.[this.hoursDate]) || t;
114
+ return e.calId === void 0 ? e.siteLink ? s`<a href=${e.siteLink}>See site</a>` : e.hoursInformation ? this.info(e, e.hoursInformation) : t : _(this.hours?.get(e.calId)?.[this.hoursDate]) || t;
115
+ }
116
+ onClick(e) {
117
+ e.target.closest("a")?.textContent.startsWith("See all hours") && u(this, [
118
+ "site-hours-section",
119
+ "link-click",
120
+ "See all hours"
121
+ ]);
113
122
  }
114
123
  renderStatus() {
115
124
  return this._state === "loading" ? "Loading hours…" : this._state === "error" || !this.libraries.length ? "Hours are unavailable right now." : a;
@@ -118,9 +127,12 @@ var x = class extends o {
118
127
  if (!this.today) return a;
119
128
  let e = Math.min(6, Math.max(2, Math.trunc(this.headingLevel) || 3)), t = c(`h${e}`);
120
129
  return s`
121
- <div class="home-hours-block${this._state === "loading" ? " is-loading" : ""}">
130
+ <div
131
+ class="home-hours-block${this._state === "loading" ? " is-loading" : ""}"
132
+ @click=${this.onClick}
133
+ >
122
134
  <div id="homehoursdate" class="home-hour-date">
123
- ${v(this.hoursDate || this.today)}
135
+ ${b(this.hoursDate || this.today)}
124
136
  </div>
125
137
  <${t} class="hour-head">Today's hours</${t}>
126
138
  <dl class="dl--inline hours-locations">
@@ -134,12 +146,12 @@ var x = class extends o {
134
146
  }
135
147
  };
136
148
  // src/components/site-hours-section/site-hours-section.ts
137
- i([e({ type: Boolean })], x.prototype, "limited", void 0), i([e({
149
+ i([e({ type: Boolean })], C.prototype, "limited", void 0), i([e({
138
150
  type: Number,
139
151
  attribute: "heading-level"
140
- })], x.prototype, "headingLevel", void 0), i([e({
152
+ })], C.prototype, "headingLevel", void 0), i([e({
141
153
  type: String,
142
154
  attribute: "place-type"
143
- })], x.prototype, "placeType", void 0), i([n()], x.prototype, "_state", void 0), i([n()], x.prototype, "today", void 0), i([n()], x.prototype, "libraries", void 0), i([n()], x.prototype, "hours", void 0), i([n()], x.prototype, "hoursDate", void 0), r("site-hours-section", x);
155
+ })], C.prototype, "placeType", void 0), i([n()], C.prototype, "_state", void 0), i([n()], C.prototype, "today", void 0), i([n()], C.prototype, "libraries", void 0), i([n()], C.prototype, "hours", void 0), i([n()], C.prototype, "hoursDate", void 0), r("site-hours-section", C);
144
156
 
145
157
  //# sourceMappingURL=site-hours-section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"site-hours-section.js","names":["nothing","unsafeStatic","repeat","_decorate","property","state","n","i","r","define","__decorate","A","UvalibElement","u","s","c","accessible","todayInNewYork","hoursTiming","hoursEndpoints","sanitizeHoursHtml","formatDay","loadHours","sortLibraries","fullDate","loadLibraries","setHoursEndpoints","SiteHoursSection","_args","value","today","changed","id","libraries","hours","ids","l","init","entry","lib","source","unavailable","level","h"],"sources":["../src/components/site-hours-section/SiteHoursSection.ts","../src/components/site-hours-section/site-hours-section.ts"],"sourcesContent":["import { css, nothing } from 'lit';\nimport { html, unsafeStatic } from 'lit/static-html.js';\nimport { property, state } from 'lit/decorators.js';\nimport { repeat } from 'lit/directives/repeat.js';\nimport { UvalibElement } from '../../base/UvalibElement.js';\nimport { accessible } from '../../styles/accessible.js';\nimport {\n formatDay,\n fullDate,\n hoursEndpoints,\n hoursTiming,\n setHoursEndpoints,\n loadHours,\n loadLibraries,\n sanitizeHoursHtml,\n sortLibraries,\n todayInNewYork,\n type HoursByCalendar,\n type HoursEndpoints,\n type LibraryInfo,\n} from '../library-hours/hours-data.js';\nimport type { HoursState } from '../library-weekly-hours/LibraryWeeklyHours.js';\n\n/**\n * Today's hours for the UVA libraries, as on the library.virginia.edu home page: the date\n * (in America/New_York), a \"Today's hours\" heading, a list of library and hours pairs and a\n * link to /hours. Data comes from the library website's JSON:API (same origin) and LibCal,\n * shared between all hours elements on a page. The date and hours update when the date\n * changes in New York.\n *\n * @tagname site-hours-section\n * @fires got-library-hours - The hours were loaded. `detail` is `{ message }`. Bubbles and is composed.\n * @fires got-libraries - The libraries were loaded (fired after `got-library-hours`). `detail` is `{ message }`. Bubbles and is composed.\n * @cssprop [--uva-brand-blue=#232d4b] - Heading and link colour.\n * @cssprop [--uva-brand-orange=#e57200] - Focus ring colour.\n * @cssprop [--site-hours-list-min-height=0] - Height the list keeps while the hours load, so the link and content below do not jump when they arrive (seven `limited` libraries take about 12.75rem).\n * @cssprop --uva-color-link - Dark-mode role token: heading and link colour (else `--uva-brand-blue`).\n * @cssprop --uva-color-focus - Dark-mode role token: focus ring (else `--uva-brand-orange`).\n */\nexport class SiteHoursSection extends UvalibElement {\n static styles = [\n accessible,\n css`\n :host {\n display: block;\n }\n .home-hour-date {\n font-size: 0.875rem;\n }\n .hour-head {\n margin: 0.25rem 0 0.75rem;\n color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));\n }\n .hours-locations {\n display: grid;\n grid-template-columns: auto auto;\n gap: 0.25rem 1rem;\n margin: 0;\n }\n .is-loading .hours-locations {\n min-height: var(--site-hours-list-min-height, 0);\n }\n .hours-locations dt {\n font-weight: bold;\n }\n .hours-locations dd {\n margin: 0;\n text-align: end;\n }\n .hours-locations dd p {\n margin: 0;\n }\n a {\n color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));\n }\n `,\n ];\n\n /**\n * The data endpoints shared by all hours elements: `libraries` (the Drupal JSON:API URL,\n * relative by default) and `hours` (LibCal, with `{ids}`). Assigning an object (or setting\n * a key) changes them for every hours element from the next load on. To repoint before\n * elements already in the HTML start fetching, set `window.uvalibHoursEndpoints` before\n * the define script runs.\n */\n static get endpoints(): HoursEndpoints {\n return hoursEndpoints;\n }\n static set endpoints(value: Partial<HoursEndpoints>) {\n setHoursEndpoints(value);\n }\n\n /** Only libraries with a priority placement (the home page's short list). */\n @property({ type: Boolean })\n limited = false;\n\n /**\n * The level of the \"Today's hours\" heading, 2 to 6. The default, 3, fits the home page,\n * where the section sits under an h2; use 2 when it sits directly under the page's h1.\n */\n @property({ type: Number, attribute: 'heading-level' })\n headingLevel = 3;\n\n /** Only libraries of this type (`Library`, `space` or `other-professional`). */\n @property({ type: String, attribute: 'place-type' })\n placeType: string | null = null;\n\n /** `loading` (the default, until data arrives), `ready` or `error`. Read-only. */\n get state(): HoursState {\n return this._state;\n }\n\n @state() private _state: HoursState = 'loading';\n @state() private today = '';\n @state() private libraries: LibraryInfo[] = [];\n @state() private hours?: HoursByCalendar;\n /** The date `hours` belong to: shown (with the hours) until the next day's hours arrive. */\n @state() private hoursDate = '';\n\n private loadId = 0;\n private tickTimer?: ReturnType<typeof setInterval>;\n /** Sanitised hours information per library, so re-renders keep the same nodes. */\n private infoNodes = new Map<string, { source: string; nodes: Node[] }>();\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.today = todayInNewYork();\n clearInterval(this.tickTimer);\n this.tickTimer = setInterval(() => {\n const today = todayInNewYork();\n if (today !== this.today) this.today = today;\n // Retry quietly while the list or the hours could not be loaded.\n else if (this._state === 'error' || (this._state === 'ready' && !this.hours))\n void this.load();\n }, hoursTiming.tick);\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n clearInterval(this.tickTimer);\n this.tickTimer = undefined;\n }\n\n // A plain map: `today` is private, which PropertyValues<this> does not cover.\n protected override willUpdate(changed: Map<PropertyKey, unknown>) {\n if (this.isConnected && this.today && changed.has('today')) void this.load();\n }\n\n private async load() {\n const id = ++this.loadId;\n const today = this.today;\n // Only the first load shows \"Loading hours…\"; later ones keep the list until data lands.\n if (!this.libraries.length && this._state !== 'error') this._state = 'loading';\n let libraries: LibraryInfo[];\n try {\n libraries = sortLibraries(await loadLibraries());\n } catch {\n if (id === this.loadId) this._state = 'error';\n return;\n }\n let hours: HoursByCalendar | undefined;\n try {\n const ids = libraries.map((l) => l.calId).filter((n): n is number => n !== undefined);\n hours = await loadHours(ids, today, today);\n } catch {\n hours = undefined; // libraries with a calendar show \"Hours unavailable\"\n }\n if (id !== this.loadId) return;\n this.libraries = libraries;\n this.hours = hours;\n this.hoursDate = today;\n this._state = 'ready';\n const init = { bubbles: true, composed: true };\n this.dispatchEvent(\n new CustomEvent('got-library-hours', {\n ...init,\n detail: { message: 'fetched hours for libraries' },\n }),\n );\n this.dispatchEvent(\n new CustomEvent('got-libraries', { ...init, detail: { message: 'fetched libraries' } }),\n );\n }\n\n private get shown(): LibraryInfo[] {\n return this.libraries\n .filter((l) => !this.placeType || l.placeType === this.placeType)\n .filter((l) => !this.limited || (l.priorityPlacement ?? 0) > 0);\n }\n\n /** A library's sanitised hours information: its own nodes (a node can be in one place only). */\n private info(lib: LibraryInfo, source: string): Node[] {\n let entry = this.infoNodes.get(lib.id);\n if (entry?.source !== source) {\n entry = { source, nodes: [...sanitizeHoursHtml(source, this.ownerDocument).childNodes] };\n this.infoNodes.set(lib.id, entry);\n }\n return entry.nodes;\n }\n\n private renderHours(lib: LibraryInfo) {\n const unavailable = html`Hours unavailable. <a href=\"/hours\">See all hours</a>`;\n if (lib.calId !== undefined) {\n const text = formatDay(this.hours?.get(lib.calId)?.[this.hoursDate]);\n return text || unavailable;\n }\n if (lib.siteLink) return html`<a href=${lib.siteLink}>See site</a>`;\n if (lib.hoursInformation) return this.info(lib, lib.hoursInformation);\n return unavailable;\n }\n\n private renderStatus() {\n if (this._state === 'loading') return 'Loading hours…';\n // The \"See all hours and locations\" link is right above.\n if (this._state === 'error' || !this.libraries.length)\n return 'Hours are unavailable right now.';\n return nothing;\n }\n\n render() {\n if (!this.today) return nothing;\n const level = Math.min(6, Math.max(2, Math.trunc(this.headingLevel) || 3));\n const h = unsafeStatic(`h${level}`);\n return html`\n <div class=\"home-hours-block${this._state === 'loading' ? ' is-loading' : ''}\">\n <div id=\"homehoursdate\" class=\"home-hour-date\">\n ${fullDate(this.hoursDate || this.today)}\n </div>\n <${h} class=\"hour-head\">Today's hours</${h}>\n <dl class=\"dl--inline hours-locations\">\n ${repeat(\n this._state === 'ready' ? this.shown : [],\n (lib) => lib.id,\n (lib) =>\n html`<dt class=\"location\">${lib.shortTitle || lib.title}</dt>\n <dd class=\"hours\">${this.renderHours(lib)}</dd>`,\n )}\n </dl>\n <p class=\"hours-see-all\"><a href=\"/hours\">See all hours and locations</a></p>\n <div class=\"hours-status\" role=\"status\">${this.renderStatus()}</div>\n </div>\n `;\n }\n}\n","import { define } from '../../base/define.js';\nimport { SiteHoursSection } from './SiteHoursSection.js';\n\ndefine('site-hours-section', SiteHoursSection);\n"],"mappings":";;;;;;;AAuCA,IAAa2B,IAAb,cAAsCf,EAAc;;EAmF9B,A,aA5BV,KAAA,UAAA,IAOK,KAAA,eAAA,GAIY,KAAA,YAAA,MAOW,KAAA,SAAA,WACb,KAAA,QAAA,IACmB,KAAA,YAAA,CAAC,GAGhB,KAAA,YAAA,IAEZ,KAAA,SAAA,GAGG,KAAA,4BAAA,IAAI,IAA+C;;;EAlFvD,KAAA,SAAA,CACdI,GACA,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkCL;;CASA,WAAW,YAA4B;EACrC,OAAOG;CACT;CACA,WAAW,UAAU,GAAgC;EACnD,EAAkBU,CAAK;CACzB;CAkBA,IAAI,QAAoB;EACtB,OAAO,KAAK;CACd;CAcA,oBAAmC;EAIjC,AAHA,MAAM,kBAAkB,GACxB,KAAK,QAAQZ,EAAe,GAC5B,cAAc,KAAK,SAAS,GAC5B,KAAK,YAAY,kBAAkB;GACjC,IAAMa,IAAQb,EAAe;GAC7B,AAAIa,MAAU,KAAK,SAEV,KAAK,WAAW,WAAY,KAAK,WAAW,WAAW,CAAC,KAAK,UACpE,KAAU,KAAK,IAHS,KAAK,QAAQA;EAIzC,GAAGZ,EAAY,IAAI;CACrB;CAEA,uBAAsC;EAGpC,AAFA,MAAM,qBAAqB,GAC3B,cAAc,KAAK,SAAS,GAC5B,KAAK,YAAY,KAAA;CACnB;CAGA,WAA8B,GAAoC;EAChE,AAAI,KAAK,eAAe,KAAK,SAASa,EAAQ,IAAI,OAAO,KAAG,KAAU,KAAK;CAC7E;CAEA,MAAc,OAAO;EACnB,IAAMC,IAAK,EAAE,KA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AA,KAAA,CAAA,GAQlDxB,EAAA,CAAAE,EAAM,CAAA,GAAAsB,EAAA,WAAA,UAAA,KAAA,CAAA,GACNxB,EAAA,CAAAE,EAAM,CAAA,GAAAsB,EAAA,WAAA,SAAA,KAAA,CAAA,GACNxB,EAAA,CAAAE,EAAM,CAAA,GAAAsB,EAAA,WAAA,aAAA,KAAA,CAAA,GACNxB,EAAA,CAAAE,EAAM,CAAA,GAAAsB,EAAA,WAAA,SAAA,KAAA,CAAA,GAENxB,EAAA,CAAAE,EAAM,CAAA,GAAAsB,EAAA,WAAA,aAAA,KAAA,CAAA,GClHTlB,EAAO,sBAAsBkB,CAAgB"}
1
+ {"version":3,"file":"site-hours-section.js","names":["nothing","unsafeStatic","repeat","_decorate","property","state","n","i","r","define","__decorate","A","UvalibElement","u","s","c","trackEvent","trackError","accessible","todayInNewYork","hoursTiming","hoursEndpoints","sanitizeHoursHtml","formatDay","loadHours","sortLibraries","fullDate","loadLibraries","setHoursEndpoints","SiteHoursSection","_args","value","today","changed","id","libraries","hours","ids","l","init","entry","lib","source","unavailable","level","h"],"sources":["../src/components/site-hours-section/SiteHoursSection.ts","../src/components/site-hours-section/site-hours-section.ts"],"sourcesContent":["import { css, nothing } from 'lit';\nimport { html, unsafeStatic } from 'lit/static-html.js';\nimport { property, state } from 'lit/decorators.js';\nimport { repeat } from 'lit/directives/repeat.js';\nimport { trackError, trackEvent } from '../../base/analytics.js';\nimport { UvalibElement } from '../../base/UvalibElement.js';\nimport { accessible } from '../../styles/accessible.js';\nimport {\n formatDay,\n fullDate,\n hoursEndpoints,\n hoursTiming,\n setHoursEndpoints,\n loadHours,\n loadLibraries,\n sanitizeHoursHtml,\n sortLibraries,\n todayInNewYork,\n type HoursByCalendar,\n type HoursEndpoints,\n type LibraryInfo,\n} from '../library-hours/hours-data.js';\nimport type { HoursState } from '../library-weekly-hours/LibraryWeeklyHours.js';\n\n/**\n * Today's hours for the UVA libraries, as on the library.virginia.edu home page: the date\n * (in America/New_York), a \"Today's hours\" heading, a list of library and hours pairs and a\n * link to /hours. Data comes from the library website's JSON:API (same origin) and LibCal,\n * shared between all hours elements on a page. The date and hours update when the date\n * changes in New York.\n *\n * @tagname site-hours-section\n * @fires uvalib-analytics-event - For `<site-analytics>`: `['site-hours-section', 'link-click', 'See all hours']` for a \"See all hours\" link, and `['site-hours-section', 'error', 'hours-load']` once when the libraries or their hours cannot be loaded. Bubbles and is composed.\n * @fires got-library-hours - The hours were loaded. `detail` is `{ message }`. Bubbles and is composed.\n * @fires got-libraries - The libraries were loaded (fired after `got-library-hours`). `detail` is `{ message }`. Bubbles and is composed.\n * @cssprop [--uva-brand-blue=#232d4b] - Heading and link colour.\n * @cssprop [--uva-brand-orange=#e57200] - Focus ring colour.\n * @cssprop [--site-hours-list-min-height=0] - Height the list keeps while the hours load, so the link and content below do not jump when they arrive (seven `limited` libraries take about 12.75rem).\n * @cssprop --uva-color-link - Dark-mode role token: heading and link colour (else `--uva-brand-blue`).\n * @cssprop --uva-color-focus - Dark-mode role token: focus ring (else `--uva-brand-orange`).\n */\nexport class SiteHoursSection extends UvalibElement {\n static styles = [\n accessible,\n css`\n :host {\n display: block;\n }\n .home-hour-date {\n font-size: 0.875rem;\n }\n .hour-head {\n margin: 0.25rem 0 0.75rem;\n color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));\n }\n .hours-locations {\n display: grid;\n grid-template-columns: auto auto;\n gap: 0.25rem 1rem;\n margin: 0;\n }\n .is-loading .hours-locations {\n min-height: var(--site-hours-list-min-height, 0);\n }\n .hours-locations dt {\n font-weight: bold;\n }\n .hours-locations dd {\n margin: 0;\n text-align: end;\n }\n .hours-locations dd p {\n margin: 0;\n }\n a {\n color: var(--uva-color-link, var(--uva-brand-blue, #232d4b));\n }\n `,\n ];\n\n /**\n * The data endpoints shared by all hours elements: `libraries` (the Drupal JSON:API URL,\n * relative by default) and `hours` (LibCal, with `{ids}`). Assigning an object (or setting\n * a key) changes them for every hours element from the next load on. To repoint before\n * elements already in the HTML start fetching, set `window.uvalibHoursEndpoints` before\n * the define script runs.\n */\n static get endpoints(): HoursEndpoints {\n return hoursEndpoints;\n }\n static set endpoints(value: Partial<HoursEndpoints>) {\n setHoursEndpoints(value);\n }\n\n /** Only libraries with a priority placement (the home page's short list). */\n @property({ type: Boolean })\n limited = false;\n\n /**\n * The level of the \"Today's hours\" heading, 2 to 6. The default, 3, fits the home page,\n * where the section sits under an h2; use 2 when it sits directly under the page's h1.\n */\n @property({ type: Number, attribute: 'heading-level' })\n headingLevel = 3;\n\n /** Only libraries of this type (`Library`, `space` or `other-professional`). */\n @property({ type: String, attribute: 'place-type' })\n placeType: string | null = null;\n\n /** `loading` (the default, until data arrives), `ready` or `error`. Read-only. */\n get state(): HoursState {\n return this._state;\n }\n\n @state() private _state: HoursState = 'loading';\n @state() private today = '';\n @state() private libraries: LibraryInfo[] = [];\n @state() private hours?: HoursByCalendar;\n /** The date `hours` belong to: shown (with the hours) until the next day's hours arrive. */\n @state() private hoursDate = '';\n\n private loadId = 0;\n private tickTimer?: ReturnType<typeof setInterval>;\n /** Sanitised hours information per library, so re-renders keep the same nodes. */\n private infoNodes = new Map<string, { source: string; nodes: Node[] }>();\n\n override connectedCallback(): void {\n super.connectedCallback();\n this.today = todayInNewYork();\n clearInterval(this.tickTimer);\n this.tickTimer = setInterval(() => {\n const today = todayInNewYork();\n if (today !== this.today) this.today = today;\n // Retry quietly while the list or the hours could not be loaded.\n else if (this._state === 'error' || (this._state === 'ready' && !this.hours))\n void this.load();\n }, hoursTiming.tick);\n }\n\n override disconnectedCallback(): void {\n super.disconnectedCallback();\n clearInterval(this.tickTimer);\n this.tickTimer = undefined;\n }\n\n // A plain map: `today` is private, which PropertyValues<this> does not cover.\n protected override willUpdate(changed: Map<PropertyKey, unknown>) {\n if (this.isConnected && this.today && changed.has('today')) void this.load();\n }\n\n private async load() {\n const id = ++this.loadId;\n const today = this.today;\n // Only the first load shows \"Loading hours…\"; later ones keep the list until data lands.\n if (!this.libraries.length && this._state !== 'error') this._state = 'loading';\n let libraries: LibraryInfo[];\n try {\n libraries = sortLibraries(await loadLibraries());\n } catch {\n if (id !== this.loadId) return;\n this._state = 'error';\n trackError(this, 'site-hours-section', 'hours-load');\n return;\n }\n let hours: HoursByCalendar | undefined;\n try {\n const ids = libraries.map((l) => l.calId).filter((n): n is number => n !== undefined);\n hours = await loadHours(ids, today, today);\n } catch {\n hours = undefined; // libraries with a calendar show \"Hours unavailable\"\n if (id === this.loadId) trackError(this, 'site-hours-section', 'hours-load');\n }\n if (id !== this.loadId) return;\n this.libraries = libraries;\n this.hours = hours;\n this.hoursDate = today;\n this._state = 'ready';\n const init = { bubbles: true, composed: true };\n this.dispatchEvent(\n new CustomEvent('got-library-hours', {\n ...init,\n detail: { message: 'fetched hours for libraries' },\n }),\n );\n this.dispatchEvent(\n new CustomEvent('got-libraries', { ...init, detail: { message: 'fetched libraries' } }),\n );\n }\n\n private get shown(): LibraryInfo[] {\n return this.libraries\n .filter((l) => !this.placeType || l.placeType === this.placeType)\n .filter((l) => !this.limited || (l.priorityPlacement ?? 0) > 0);\n }\n\n /** A library's sanitised hours information: its own nodes (a node can be in one place only). */\n private info(lib: LibraryInfo, source: string): Node[] {\n let entry = this.infoNodes.get(lib.id);\n if (entry?.source !== source) {\n entry = { source, nodes: [...sanitizeHoursHtml(source, this.ownerDocument).childNodes] };\n this.infoNodes.set(lib.id, entry);\n }\n return entry.nodes;\n }\n\n private renderHours(lib: LibraryInfo) {\n const unavailable = html`Hours unavailable. <a href=\"/hours\">See all hours</a>`;\n if (lib.calId !== undefined) {\n const text = formatDay(this.hours?.get(lib.calId)?.[this.hoursDate]);\n return text || unavailable;\n }\n if (lib.siteLink) return html`<a href=${lib.siteLink}>See site</a>`;\n if (lib.hoursInformation) return this.info(lib, lib.hoursInformation);\n return unavailable;\n }\n\n /** Analytics: the \"See all hours\" links (not the libraries' own). */\n private onClick(e: Event) {\n const a = (e.target as Element).closest('a');\n if (a?.textContent!.startsWith('See all hours'))\n trackEvent(this, ['site-hours-section', 'link-click', 'See all hours']);\n }\n\n private renderStatus() {\n if (this._state === 'loading') return 'Loading hours…';\n // The \"See all hours and locations\" link is right above.\n if (this._state === 'error' || !this.libraries.length)\n return 'Hours are unavailable right now.';\n return nothing;\n }\n\n render() {\n if (!this.today) return nothing;\n const level = Math.min(6, Math.max(2, Math.trunc(this.headingLevel) || 3));\n const h = unsafeStatic(`h${level}`);\n return html`\n <div\n class=\"home-hours-block${this._state === 'loading' ? ' is-loading' : ''}\"\n @click=${this.onClick}\n >\n <div id=\"homehoursdate\" class=\"home-hour-date\">\n ${fullDate(this.hoursDate || this.today)}\n </div>\n <${h} class=\"hour-head\">Today's hours</${h}>\n <dl class=\"dl--inline hours-locations\">\n ${repeat(\n this._state === 'ready' ? this.shown : [],\n (lib) => lib.id,\n (lib) =>\n html`<dt class=\"location\">${lib.shortTitle || lib.title}</dt>\n <dd class=\"hours\">${this.renderHours(lib)}</dd>`,\n )}\n </dl>\n <p class=\"hours-see-all\"><a href=\"/hours\">See all hours and locations</a></p>\n <div class=\"hours-status\" role=\"status\">${this.renderStatus()}</div>\n </div>\n `;\n }\n}\n","import { define } from '../../base/define.js';\nimport { SiteHoursSection } from './SiteHoursSection.js';\n\ndefine('site-hours-section', SiteHoursSection);\n"],"mappings":";;;;;;;;AAyCA,IAAa6B,IAAb,cAAsCjB,EAAc;;EAmF9B,A,aA5BV,KAAA,UAAA,IAOK,KAAA,eAAA,GAIY,KAAA,YAAA,MAOW,KAAA,SAAA,WACb,KAAA,QAAA,IACmB,KAAA,YAAA,CAAC,GAGhB,KAAA,YAAA,IAEZ,KAAA,SAAA,GAGG,KAAA,4BAAA,IAAI,IAA+C;;;EAlFvD,KAAA,SAAA,CACdM,GACA,CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAkCL;;CASA,WAAW,YAA4B;EACrC,OAAOG;CACT;CACA,WAAW,UAAU,GAAgC;EACnD,EAAkBU,CAAK;CACzB;CAkBA,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