@itcenteratunihelsinki/huds-lib 0.12.2 → 0.12.3

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 (589) hide show
  1. package/components/hy-menu-main-group2.js +68 -56
  2. package/components/hy-site-header.js +34 -62
  3. package/components/index3.js +13 -2
  4. package/components/menu-language-item.js +2 -3
  5. package/components/menu-language.js +58 -40
  6. package/dist/cjs/{app-globals-6389091b.js → app-globals-96f3dbe1.js} +1 -1
  7. package/dist/cjs/{globalScript-c309d309.js → globalScript-d9a25ed2.js} +1 -1
  8. package/dist/cjs/huds-lib.cjs.js +4 -4
  9. package/dist/cjs/hy-accordion-container_2.cjs.entry.js +1 -1
  10. package/dist/cjs/hy-adjacent-image-text.cjs.entry.js +2 -2
  11. package/dist/cjs/hy-anchor-link-list.cjs.entry.js +2 -2
  12. package/dist/cjs/hy-badge.cjs.entry.js +1 -1
  13. package/dist/cjs/hy-banner.cjs.entry.js +1 -1
  14. package/dist/cjs/hy-box.cjs.entry.js +1 -1
  15. package/dist/cjs/hy-breadcrumbs_15.cjs.entry.js +92 -100
  16. package/dist/cjs/hy-checkbox.cjs.entry.js +1 -1
  17. package/dist/cjs/hy-collaboration.cjs.entry.js +1 -1
  18. package/dist/cjs/hy-content-list_2.cjs.entry.js +2 -2
  19. package/dist/cjs/hy-crisis-banner.cjs.entry.js +1 -1
  20. package/dist/cjs/hy-cta-button.cjs.entry.js +1 -1
  21. package/dist/cjs/hy-cta-link.cjs.entry.js +1 -1
  22. package/dist/cjs/hy-dropdown.cjs.entry.js +2 -2
  23. package/dist/cjs/hy-event-item.cjs.entry.js +1 -1
  24. package/dist/cjs/hy-events.cjs.entry.js +1 -1
  25. package/dist/cjs/hy-filter-group_6.cjs.entry.js +1 -1
  26. package/dist/cjs/hy-general-list_2.cjs.entry.js +2 -2
  27. package/dist/cjs/hy-hero-carousel.cjs.entry.js +2 -2
  28. package/dist/cjs/hy-hero.cjs.entry.js +2 -2
  29. package/dist/cjs/hy-icon-add-to-todo-list.cjs.entry.js +1 -1
  30. package/dist/cjs/hy-icon-alert.cjs.entry.js +1 -1
  31. package/dist/cjs/hy-icon-archive.cjs.entry.js +1 -1
  32. package/dist/cjs/hy-icon-arrow-down.cjs.entry.js +1 -1
  33. package/dist/cjs/hy-icon-arrow-left.cjs.entry.js +1 -1
  34. package/dist/cjs/hy-icon-arrow-right.cjs.entry.js +1 -1
  35. package/dist/cjs/hy-icon-arrow-to-right.cjs.entry.js +1 -1
  36. package/dist/cjs/hy-icon-arrow-up.cjs.entry.js +1 -1
  37. package/dist/cjs/hy-icon-avatar-group.cjs.entry.js +1 -1
  38. package/dist/cjs/hy-icon-avatar.cjs.entry.js +1 -1
  39. package/dist/cjs/hy-icon-bachelor.cjs.entry.js +1 -1
  40. package/dist/cjs/hy-icon-bullet-list.cjs.entry.js +1 -1
  41. package/dist/cjs/hy-icon-camera.cjs.entry.js +1 -1
  42. package/dist/cjs/hy-icon-caret-down.cjs.entry.js +1 -1
  43. package/dist/cjs/hy-icon-caret-left.cjs.entry.js +1 -1
  44. package/dist/cjs/hy-icon-caret-right.cjs.entry.js +1 -1
  45. package/dist/cjs/hy-icon-caret-up.cjs.entry.js +1 -1
  46. package/dist/cjs/hy-icon-chat.cjs.entry.js +1 -1
  47. package/dist/cjs/hy-icon-code-fork.cjs.entry.js +1 -1
  48. package/dist/cjs/hy-icon-cogs.cjs.entry.js +1 -1
  49. package/dist/cjs/hy-icon-contentlink.cjs.entry.js +1 -1
  50. package/dist/cjs/hy-icon-customlink.cjs.entry.js +1 -1
  51. package/dist/cjs/hy-icon-date.cjs.entry.js +1 -1
  52. package/dist/cjs/hy-icon-discover.cjs.entry.js +1 -1
  53. package/dist/cjs/hy-icon-done.cjs.entry.js +1 -1
  54. package/dist/cjs/hy-icon-dot-arrow-right.cjs.entry.js +1 -1
  55. package/dist/cjs/hy-icon-dot.cjs.entry.js +1 -1
  56. package/dist/cjs/hy-icon-download.cjs.entry.js +1 -1
  57. package/dist/cjs/hy-icon-drag.cjs.entry.js +1 -1
  58. package/dist/cjs/hy-icon-dragbutton.cjs.entry.js +1 -1
  59. package/dist/cjs/hy-icon-drop-down.cjs.entry.js +1 -1
  60. package/dist/cjs/hy-icon-edit-event.cjs.entry.js +1 -1
  61. package/dist/cjs/hy-icon-edit.cjs.entry.js +1 -1
  62. package/dist/cjs/hy-icon-embed.cjs.entry.js +1 -1
  63. package/dist/cjs/hy-icon-euro.cjs.entry.js +1 -1
  64. package/dist/cjs/hy-icon-events.cjs.entry.js +1 -1
  65. package/dist/cjs/hy-icon-external-link.cjs.entry.js +1 -1
  66. package/dist/cjs/hy-icon-eye-slash.cjs.entry.js +1 -1
  67. package/dist/cjs/hy-icon-facebook.cjs.entry.js +1 -1
  68. package/dist/cjs/hy-icon-favorites.cjs.entry.js +1 -1
  69. package/dist/cjs/hy-icon-feed.cjs.entry.js +1 -1
  70. package/dist/cjs/hy-icon-file-text.cjs.entry.js +1 -1
  71. package/dist/cjs/hy-icon-full-screen.cjs.entry.js +1 -1
  72. package/dist/cjs/hy-icon-globe.cjs.entry.js +1 -1
  73. package/dist/cjs/hy-icon-google-plus.cjs.entry.js +1 -1
  74. package/dist/cjs/hy-icon-grid.cjs.entry.js +1 -1
  75. package/dist/cjs/hy-icon-hamburger.cjs.entry.js +1 -1
  76. package/dist/cjs/hy-icon-heart-support.cjs.entry.js +1 -1
  77. package/dist/cjs/hy-icon-heart.cjs.entry.js +1 -1
  78. package/dist/cjs/hy-icon-helsinginyliopisto.cjs.entry.js +1 -1
  79. package/dist/cjs/hy-icon-home.cjs.entry.js +1 -1
  80. package/dist/cjs/hy-icon-horizontal-resize.cjs.entry.js +1 -1
  81. package/dist/cjs/hy-icon-hy-logo.cjs.entry.js +1 -1
  82. package/dist/cjs/hy-icon-id-number.cjs.entry.js +1 -1
  83. package/dist/cjs/hy-icon-image-gallery.cjs.entry.js +1 -1
  84. package/dist/cjs/hy-icon-image.cjs.entry.js +1 -1
  85. package/dist/cjs/hy-icon-images.cjs.entry.js +1 -1
  86. package/dist/cjs/hy-icon-info-stroke.cjs.entry.js +1 -1
  87. package/dist/cjs/hy-icon-info.cjs.entry.js +1 -1
  88. package/dist/cjs/hy-icon-instagram.cjs.entry.js +1 -1
  89. package/dist/cjs/hy-icon-leiki-list.cjs.entry.js +1 -1
  90. package/dist/cjs/hy-icon-link-arrow-down.cjs.entry.js +1 -1
  91. package/dist/cjs/hy-icon-link-arrow-left.cjs.entry.js +1 -1
  92. package/dist/cjs/hy-icon-link-arrow-offsite.cjs.entry.js +1 -1
  93. package/dist/cjs/hy-icon-link-arrow-up.cjs.entry.js +1 -1
  94. package/dist/cjs/hy-icon-link-arrow.cjs.entry.js +1 -1
  95. package/dist/cjs/hy-icon-link-arrow1.cjs.entry.js +1 -1
  96. package/dist/cjs/hy-icon-linkedin.cjs.entry.js +1 -1
  97. package/dist/cjs/hy-icon-list-as-blocks.cjs.entry.js +1 -1
  98. package/dist/cjs/hy-icon-list-style-grid.cjs.entry.js +1 -1
  99. package/dist/cjs/hy-icon-list-style-list.cjs.entry.js +1 -1
  100. package/dist/cjs/hy-icon-list.cjs.entry.js +1 -1
  101. package/dist/cjs/hy-icon-listoflinks.cjs.entry.js +1 -1
  102. package/dist/cjs/hy-icon-location.cjs.entry.js +1 -1
  103. package/dist/cjs/hy-icon-log.cjs.entry.js +1 -1
  104. package/dist/cjs/hy-icon-login.cjs.entry.js +1 -1
  105. package/dist/cjs/hy-icon-logout.cjs.entry.js +1 -1
  106. package/dist/cjs/hy-icon-magnify-minus.cjs.entry.js +1 -1
  107. package/dist/cjs/hy-icon-magnify-plus.cjs.entry.js +1 -1
  108. package/dist/cjs/hy-icon-mail.cjs.entry.js +1 -1
  109. package/dist/cjs/hy-icon-master.cjs.entry.js +1 -1
  110. package/dist/cjs/hy-icon-minus.cjs.entry.js +1 -1
  111. package/dist/cjs/hy-icon-mobile.cjs.entry.js +1 -1
  112. package/dist/cjs/hy-icon-modify.cjs.entry.js +1 -1
  113. package/dist/cjs/hy-icon-navi-triangle.cjs.entry.js +1 -1
  114. package/dist/cjs/hy-icon-new-group.cjs.entry.js +1 -1
  115. package/dist/cjs/hy-icon-new-person.cjs.entry.js +1 -1
  116. package/dist/cjs/hy-icon-notification.cjs.entry.js +1 -1
  117. package/dist/cjs/hy-icon-opinder-logo-new.cjs.entry.js +1 -1
  118. package/dist/cjs/hy-icon-opinder-logo.cjs.entry.js +1 -1
  119. package/dist/cjs/hy-icon-pdf.cjs.entry.js +1 -1
  120. package/dist/cjs/hy-icon-people.cjs.entry.js +1 -1
  121. package/dist/cjs/hy-icon-permission-all.cjs.entry.js +1 -1
  122. package/dist/cjs/hy-icon-permission-group.cjs.entry.js +1 -1
  123. package/dist/cjs/hy-icon-permission-private.cjs.entry.js +1 -1
  124. package/dist/cjs/hy-icon-person-outline.cjs.entry.js +1 -1
  125. package/dist/cjs/hy-icon-person.cjs.entry.js +1 -1
  126. package/dist/cjs/hy-icon-phone.cjs.entry.js +1 -1
  127. package/dist/cjs/hy-icon-play.cjs.entry.js +1 -1
  128. package/dist/cjs/hy-icon-plus.cjs.entry.js +1 -1
  129. package/dist/cjs/hy-icon-preview.cjs.entry.js +1 -1
  130. package/dist/cjs/hy-icon-profile.cjs.entry.js +1 -1
  131. package/dist/cjs/hy-icon-question.cjs.entry.js +1 -1
  132. package/dist/cjs/hy-icon-quote.cjs.entry.js +1 -1
  133. package/dist/cjs/hy-icon-remove.cjs.entry.js +1 -1
  134. package/dist/cjs/hy-icon-retweet.cjs.entry.js +1 -1
  135. package/dist/cjs/hy-icon-rotate-left.cjs.entry.js +1 -1
  136. package/dist/cjs/hy-icon-rotate-right.cjs.entry.js +1 -1
  137. package/dist/cjs/hy-icon-search.cjs.entry.js +1 -1
  138. package/dist/cjs/hy-icon-share.cjs.entry.js +1 -1
  139. package/dist/cjs/hy-icon-slim-hamburger-menu.cjs.entry.js +1 -1
  140. package/dist/cjs/hy-icon-social-media.cjs.entry.js +1 -1
  141. package/dist/cjs/hy-icon-some-facebook.cjs.entry.js +1 -1
  142. package/dist/cjs/hy-icon-some-instagram.cjs.entry.js +1 -1
  143. package/dist/cjs/hy-icon-some-linkedin.cjs.entry.js +1 -1
  144. package/dist/cjs/hy-icon-some-tiktok.cjs.entry.js +1 -1
  145. package/dist/cjs/hy-icon-some-twitter.cjs.entry.js +1 -1
  146. package/dist/cjs/hy-icon-some-youtube.cjs.entry.js +1 -1
  147. package/dist/cjs/hy-icon-spinner.cjs.entry.js +1 -1
  148. package/dist/cjs/hy-icon-square-checked.cjs.entry.js +1 -1
  149. package/dist/cjs/hy-icon-square.cjs.entry.js +1 -1
  150. package/dist/cjs/hy-icon-time.cjs.entry.js +1 -1
  151. package/dist/cjs/hy-icon-todo-list.cjs.entry.js +1 -1
  152. package/dist/cjs/hy-icon-tour.cjs.entry.js +1 -1
  153. package/dist/cjs/hy-icon-twitter-like.cjs.entry.js +1 -1
  154. package/dist/cjs/hy-icon-units-and-faculties.cjs.entry.js +1 -1
  155. package/dist/cjs/hy-icon-url.cjs.entry.js +1 -1
  156. package/dist/cjs/hy-icon-video.cjs.entry.js +1 -1
  157. package/dist/cjs/hy-icon-warning.cjs.entry.js +1 -1
  158. package/dist/cjs/hy-icon-wrench.cjs.entry.js +1 -1
  159. package/dist/cjs/hy-icon-youtube.cjs.entry.js +1 -1
  160. package/dist/cjs/hy-icon.cjs.entry.js +1 -1
  161. package/dist/cjs/hy-iconicons.cjs.entry.js +1 -1
  162. package/dist/cjs/hy-image.cjs.entry.js +1 -1
  163. package/dist/cjs/hy-introduction.cjs.entry.js +1 -1
  164. package/dist/cjs/hy-key-figure_2.cjs.entry.js +2 -2
  165. package/dist/cjs/hy-key-highlight_2.cjs.entry.js +2 -2
  166. package/dist/cjs/hy-large-process-flow_2.cjs.entry.js +2 -2
  167. package/dist/cjs/hy-link-box_2.cjs.entry.js +2 -2
  168. package/dist/cjs/hy-link-list.cjs.entry.js +2 -2
  169. package/dist/cjs/hy-link.cjs.entry.js +1 -1
  170. package/dist/cjs/hy-list-item.cjs.entry.js +1 -1
  171. package/dist/cjs/hy-logo-grid_2.cjs.entry.js +1 -1
  172. package/dist/cjs/hy-main.cjs.entry.js +1 -1
  173. package/dist/cjs/hy-menu-main-group.cjs.entry.js +69 -57
  174. package/dist/cjs/hy-opening-hours_2.cjs.entry.js +1 -1
  175. package/dist/cjs/hy-pager_2.cjs.entry.js +1 -1
  176. package/dist/cjs/hy-paragraph-text.cjs.entry.js +1 -1
  177. package/dist/cjs/hy-person-card.cjs.entry.js +1 -1
  178. package/dist/cjs/hy-person-profile-listing.cjs.entry.js +1 -1
  179. package/dist/cjs/hy-person-profile.cjs.entry.js +1 -1
  180. package/dist/cjs/hy-process_2.cjs.entry.js +2 -2
  181. package/dist/cjs/hy-prominent-image.cjs.entry.js +1 -1
  182. package/dist/cjs/hy-quote.cjs.entry.js +1 -1
  183. package/dist/cjs/hy-row.cjs.entry.js +1 -1
  184. package/dist/cjs/hy-section-container.cjs.entry.js +1 -1
  185. package/dist/cjs/hy-shortcuts.cjs.entry.js +1 -1
  186. package/dist/cjs/hy-table-container.cjs.entry.js +1 -1
  187. package/dist/cjs/hy-tabs_2.cjs.entry.js +1 -1
  188. package/dist/cjs/hy-tag.cjs.entry.js +1 -1
  189. package/dist/cjs/hy-tiny-text.cjs.entry.js +1 -1
  190. package/dist/cjs/hy-twitter-feed.cjs.entry.js +1 -1
  191. package/dist/cjs/hy-two-columns.cjs.entry.js +1 -1
  192. package/dist/cjs/hy-user-login-form.cjs.entry.js +1 -1
  193. package/dist/cjs/hy-video.cjs.entry.js +1 -1
  194. package/dist/cjs/{index-701b1b84.js → index-362c147c.js} +13 -2
  195. package/dist/cjs/loader.cjs.js +4 -4
  196. package/dist/collection/components/hy-navigation/hy-menu-main-group/hy-menu-main-group.css +42 -36
  197. package/dist/collection/components/hy-navigation/hy-menu-main-group/hy-menu-main-group.js +68 -62
  198. package/dist/collection/components/hy-navigation/menu-language/menu-language.css +4 -4
  199. package/dist/collection/components/hy-navigation/menu-language/menu-language.js +82 -45
  200. package/dist/collection/components/hy-navigation/menu-language-item/menu-language-item.js +1 -2
  201. package/dist/collection/components/hy-site-header/site-header.css +7 -14
  202. package/dist/collection/components/hy-site-header/site-header.js +38 -61
  203. package/dist/esm/{app-globals-1b021639.js → app-globals-a069cf15.js} +1 -1
  204. package/dist/esm/{globalScript-3f479486.js → globalScript-326c6753.js} +1 -1
  205. package/dist/esm/huds-lib.js +5 -5
  206. package/dist/esm/hy-accordion-container_2.entry.js +1 -1
  207. package/dist/esm/hy-adjacent-image-text.entry.js +2 -2
  208. package/dist/esm/hy-anchor-link-list.entry.js +2 -2
  209. package/dist/esm/hy-badge.entry.js +1 -1
  210. package/dist/esm/hy-banner.entry.js +1 -1
  211. package/dist/esm/hy-box.entry.js +1 -1
  212. package/dist/esm/hy-breadcrumbs_15.entry.js +92 -100
  213. package/dist/esm/hy-checkbox.entry.js +1 -1
  214. package/dist/esm/hy-collaboration.entry.js +1 -1
  215. package/dist/esm/hy-content-list_2.entry.js +2 -2
  216. package/dist/esm/hy-crisis-banner.entry.js +1 -1
  217. package/dist/esm/hy-cta-button.entry.js +1 -1
  218. package/dist/esm/hy-cta-link.entry.js +1 -1
  219. package/dist/esm/hy-dropdown.entry.js +2 -2
  220. package/dist/esm/hy-event-item.entry.js +1 -1
  221. package/dist/esm/hy-events.entry.js +1 -1
  222. package/dist/esm/hy-filter-group_6.entry.js +1 -1
  223. package/dist/esm/hy-general-list_2.entry.js +2 -2
  224. package/dist/esm/hy-hero-carousel.entry.js +2 -2
  225. package/dist/esm/hy-hero.entry.js +2 -2
  226. package/dist/esm/hy-icon-add-to-todo-list.entry.js +1 -1
  227. package/dist/esm/hy-icon-alert.entry.js +1 -1
  228. package/dist/esm/hy-icon-archive.entry.js +1 -1
  229. package/dist/esm/hy-icon-arrow-down.entry.js +1 -1
  230. package/dist/esm/hy-icon-arrow-left.entry.js +1 -1
  231. package/dist/esm/hy-icon-arrow-right.entry.js +1 -1
  232. package/dist/esm/hy-icon-arrow-to-right.entry.js +1 -1
  233. package/dist/esm/hy-icon-arrow-up.entry.js +1 -1
  234. package/dist/esm/hy-icon-avatar-group.entry.js +1 -1
  235. package/dist/esm/hy-icon-avatar.entry.js +1 -1
  236. package/dist/esm/hy-icon-bachelor.entry.js +1 -1
  237. package/dist/esm/hy-icon-bullet-list.entry.js +1 -1
  238. package/dist/esm/hy-icon-camera.entry.js +1 -1
  239. package/dist/esm/hy-icon-caret-down.entry.js +1 -1
  240. package/dist/esm/hy-icon-caret-left.entry.js +1 -1
  241. package/dist/esm/hy-icon-caret-right.entry.js +1 -1
  242. package/dist/esm/hy-icon-caret-up.entry.js +1 -1
  243. package/dist/esm/hy-icon-chat.entry.js +1 -1
  244. package/dist/esm/hy-icon-code-fork.entry.js +1 -1
  245. package/dist/esm/hy-icon-cogs.entry.js +1 -1
  246. package/dist/esm/hy-icon-contentlink.entry.js +1 -1
  247. package/dist/esm/hy-icon-customlink.entry.js +1 -1
  248. package/dist/esm/hy-icon-date.entry.js +1 -1
  249. package/dist/esm/hy-icon-discover.entry.js +1 -1
  250. package/dist/esm/hy-icon-done.entry.js +1 -1
  251. package/dist/esm/hy-icon-dot-arrow-right.entry.js +1 -1
  252. package/dist/esm/hy-icon-dot.entry.js +1 -1
  253. package/dist/esm/hy-icon-download.entry.js +1 -1
  254. package/dist/esm/hy-icon-drag.entry.js +1 -1
  255. package/dist/esm/hy-icon-dragbutton.entry.js +1 -1
  256. package/dist/esm/hy-icon-drop-down.entry.js +1 -1
  257. package/dist/esm/hy-icon-edit-event.entry.js +1 -1
  258. package/dist/esm/hy-icon-edit.entry.js +1 -1
  259. package/dist/esm/hy-icon-embed.entry.js +1 -1
  260. package/dist/esm/hy-icon-euro.entry.js +1 -1
  261. package/dist/esm/hy-icon-events.entry.js +1 -1
  262. package/dist/esm/hy-icon-external-link.entry.js +1 -1
  263. package/dist/esm/hy-icon-eye-slash.entry.js +1 -1
  264. package/dist/esm/hy-icon-facebook.entry.js +1 -1
  265. package/dist/esm/hy-icon-favorites.entry.js +1 -1
  266. package/dist/esm/hy-icon-feed.entry.js +1 -1
  267. package/dist/esm/hy-icon-file-text.entry.js +1 -1
  268. package/dist/esm/hy-icon-full-screen.entry.js +1 -1
  269. package/dist/esm/hy-icon-globe.entry.js +1 -1
  270. package/dist/esm/hy-icon-google-plus.entry.js +1 -1
  271. package/dist/esm/hy-icon-grid.entry.js +1 -1
  272. package/dist/esm/hy-icon-hamburger.entry.js +1 -1
  273. package/dist/esm/hy-icon-heart-support.entry.js +1 -1
  274. package/dist/esm/hy-icon-heart.entry.js +1 -1
  275. package/dist/esm/hy-icon-helsinginyliopisto.entry.js +1 -1
  276. package/dist/esm/hy-icon-home.entry.js +1 -1
  277. package/dist/esm/hy-icon-horizontal-resize.entry.js +1 -1
  278. package/dist/esm/hy-icon-hy-logo.entry.js +1 -1
  279. package/dist/esm/hy-icon-id-number.entry.js +1 -1
  280. package/dist/esm/hy-icon-image-gallery.entry.js +1 -1
  281. package/dist/esm/hy-icon-image.entry.js +1 -1
  282. package/dist/esm/hy-icon-images.entry.js +1 -1
  283. package/dist/esm/hy-icon-info-stroke.entry.js +1 -1
  284. package/dist/esm/hy-icon-info.entry.js +1 -1
  285. package/dist/esm/hy-icon-instagram.entry.js +1 -1
  286. package/dist/esm/hy-icon-leiki-list.entry.js +1 -1
  287. package/dist/esm/hy-icon-link-arrow-down.entry.js +1 -1
  288. package/dist/esm/hy-icon-link-arrow-left.entry.js +1 -1
  289. package/dist/esm/hy-icon-link-arrow-offsite.entry.js +1 -1
  290. package/dist/esm/hy-icon-link-arrow-up.entry.js +1 -1
  291. package/dist/esm/hy-icon-link-arrow.entry.js +1 -1
  292. package/dist/esm/hy-icon-link-arrow1.entry.js +1 -1
  293. package/dist/esm/hy-icon-linkedin.entry.js +1 -1
  294. package/dist/esm/hy-icon-list-as-blocks.entry.js +1 -1
  295. package/dist/esm/hy-icon-list-style-grid.entry.js +1 -1
  296. package/dist/esm/hy-icon-list-style-list.entry.js +1 -1
  297. package/dist/esm/hy-icon-list.entry.js +1 -1
  298. package/dist/esm/hy-icon-listoflinks.entry.js +1 -1
  299. package/dist/esm/hy-icon-location.entry.js +1 -1
  300. package/dist/esm/hy-icon-log.entry.js +1 -1
  301. package/dist/esm/hy-icon-login.entry.js +1 -1
  302. package/dist/esm/hy-icon-logout.entry.js +1 -1
  303. package/dist/esm/hy-icon-magnify-minus.entry.js +1 -1
  304. package/dist/esm/hy-icon-magnify-plus.entry.js +1 -1
  305. package/dist/esm/hy-icon-mail.entry.js +1 -1
  306. package/dist/esm/hy-icon-master.entry.js +1 -1
  307. package/dist/esm/hy-icon-minus.entry.js +1 -1
  308. package/dist/esm/hy-icon-mobile.entry.js +1 -1
  309. package/dist/esm/hy-icon-modify.entry.js +1 -1
  310. package/dist/esm/hy-icon-navi-triangle.entry.js +1 -1
  311. package/dist/esm/hy-icon-new-group.entry.js +1 -1
  312. package/dist/esm/hy-icon-new-person.entry.js +1 -1
  313. package/dist/esm/hy-icon-notification.entry.js +1 -1
  314. package/dist/esm/hy-icon-opinder-logo-new.entry.js +1 -1
  315. package/dist/esm/hy-icon-opinder-logo.entry.js +1 -1
  316. package/dist/esm/hy-icon-pdf.entry.js +1 -1
  317. package/dist/esm/hy-icon-people.entry.js +1 -1
  318. package/dist/esm/hy-icon-permission-all.entry.js +1 -1
  319. package/dist/esm/hy-icon-permission-group.entry.js +1 -1
  320. package/dist/esm/hy-icon-permission-private.entry.js +1 -1
  321. package/dist/esm/hy-icon-person-outline.entry.js +1 -1
  322. package/dist/esm/hy-icon-person.entry.js +1 -1
  323. package/dist/esm/hy-icon-phone.entry.js +1 -1
  324. package/dist/esm/hy-icon-play.entry.js +1 -1
  325. package/dist/esm/hy-icon-plus.entry.js +1 -1
  326. package/dist/esm/hy-icon-preview.entry.js +1 -1
  327. package/dist/esm/hy-icon-profile.entry.js +1 -1
  328. package/dist/esm/hy-icon-question.entry.js +1 -1
  329. package/dist/esm/hy-icon-quote.entry.js +1 -1
  330. package/dist/esm/hy-icon-remove.entry.js +1 -1
  331. package/dist/esm/hy-icon-retweet.entry.js +1 -1
  332. package/dist/esm/hy-icon-rotate-left.entry.js +1 -1
  333. package/dist/esm/hy-icon-rotate-right.entry.js +1 -1
  334. package/dist/esm/hy-icon-search.entry.js +1 -1
  335. package/dist/esm/hy-icon-share.entry.js +1 -1
  336. package/dist/esm/hy-icon-slim-hamburger-menu.entry.js +1 -1
  337. package/dist/esm/hy-icon-social-media.entry.js +1 -1
  338. package/dist/esm/hy-icon-some-facebook.entry.js +1 -1
  339. package/dist/esm/hy-icon-some-instagram.entry.js +1 -1
  340. package/dist/esm/hy-icon-some-linkedin.entry.js +1 -1
  341. package/dist/esm/hy-icon-some-tiktok.entry.js +1 -1
  342. package/dist/esm/hy-icon-some-twitter.entry.js +1 -1
  343. package/dist/esm/hy-icon-some-youtube.entry.js +1 -1
  344. package/dist/esm/hy-icon-spinner.entry.js +1 -1
  345. package/dist/esm/hy-icon-square-checked.entry.js +1 -1
  346. package/dist/esm/hy-icon-square.entry.js +1 -1
  347. package/dist/esm/hy-icon-time.entry.js +1 -1
  348. package/dist/esm/hy-icon-todo-list.entry.js +1 -1
  349. package/dist/esm/hy-icon-tour.entry.js +1 -1
  350. package/dist/esm/hy-icon-twitter-like.entry.js +1 -1
  351. package/dist/esm/hy-icon-units-and-faculties.entry.js +1 -1
  352. package/dist/esm/hy-icon-url.entry.js +1 -1
  353. package/dist/esm/hy-icon-video.entry.js +1 -1
  354. package/dist/esm/hy-icon-warning.entry.js +1 -1
  355. package/dist/esm/hy-icon-wrench.entry.js +1 -1
  356. package/dist/esm/hy-icon-youtube.entry.js +1 -1
  357. package/dist/esm/hy-icon.entry.js +1 -1
  358. package/dist/esm/hy-iconicons.entry.js +1 -1
  359. package/dist/esm/hy-image.entry.js +1 -1
  360. package/dist/esm/hy-introduction.entry.js +1 -1
  361. package/dist/esm/hy-key-figure_2.entry.js +2 -2
  362. package/dist/esm/hy-key-highlight_2.entry.js +2 -2
  363. package/dist/esm/hy-large-process-flow_2.entry.js +2 -2
  364. package/dist/esm/hy-link-box_2.entry.js +2 -2
  365. package/dist/esm/hy-link-list.entry.js +2 -2
  366. package/dist/esm/hy-link.entry.js +1 -1
  367. package/dist/esm/hy-list-item.entry.js +1 -1
  368. package/dist/esm/hy-logo-grid_2.entry.js +1 -1
  369. package/dist/esm/hy-main.entry.js +1 -1
  370. package/dist/esm/hy-menu-main-group.entry.js +69 -57
  371. package/dist/esm/hy-opening-hours_2.entry.js +1 -1
  372. package/dist/esm/hy-pager_2.entry.js +1 -1
  373. package/dist/esm/hy-paragraph-text.entry.js +1 -1
  374. package/dist/esm/hy-person-card.entry.js +1 -1
  375. package/dist/esm/hy-person-profile-listing.entry.js +1 -1
  376. package/dist/esm/hy-person-profile.entry.js +1 -1
  377. package/dist/esm/hy-process_2.entry.js +2 -2
  378. package/dist/esm/hy-prominent-image.entry.js +1 -1
  379. package/dist/esm/hy-quote.entry.js +1 -1
  380. package/dist/esm/hy-row.entry.js +1 -1
  381. package/dist/esm/hy-section-container.entry.js +1 -1
  382. package/dist/esm/hy-shortcuts.entry.js +1 -1
  383. package/dist/esm/hy-table-container.entry.js +1 -1
  384. package/dist/esm/hy-tabs_2.entry.js +1 -1
  385. package/dist/esm/hy-tag.entry.js +1 -1
  386. package/dist/esm/hy-tiny-text.entry.js +1 -1
  387. package/dist/esm/hy-twitter-feed.entry.js +1 -1
  388. package/dist/esm/hy-two-columns.entry.js +1 -1
  389. package/dist/esm/hy-user-login-form.entry.js +1 -1
  390. package/dist/esm/hy-video.entry.js +1 -1
  391. package/dist/esm/{index-2ffe17c9.js → index-61e707b7.js} +13 -2
  392. package/dist/esm/loader.js +5 -5
  393. package/dist/huds-lib/app-globals-a069cf15.js +1 -0
  394. package/dist/huds-lib/{globalScript-3f479486.js → globalScript-326c6753.js} +1 -1
  395. package/dist/huds-lib/huds-lib.esm.js +1 -1
  396. package/dist/huds-lib/hy-accordion-container_2.entry.js +1 -1
  397. package/dist/huds-lib/hy-adjacent-image-text.entry.js +1 -1
  398. package/dist/huds-lib/hy-anchor-link-list.entry.js +1 -1
  399. package/dist/huds-lib/hy-badge.entry.js +1 -1
  400. package/dist/huds-lib/hy-banner.entry.js +1 -1
  401. package/dist/huds-lib/hy-box.entry.js +1 -1
  402. package/dist/huds-lib/hy-breadcrumbs_15.entry.js +1 -1
  403. package/dist/huds-lib/hy-checkbox.entry.js +1 -1
  404. package/dist/huds-lib/hy-collaboration.entry.js +1 -1
  405. package/dist/huds-lib/hy-content-list_2.entry.js +1 -1
  406. package/dist/huds-lib/hy-crisis-banner.entry.js +1 -1
  407. package/dist/huds-lib/hy-cta-button.entry.js +1 -1
  408. package/dist/huds-lib/hy-cta-link.entry.js +1 -1
  409. package/dist/huds-lib/hy-dropdown.entry.js +1 -1
  410. package/dist/huds-lib/hy-event-item.entry.js +1 -1
  411. package/dist/huds-lib/hy-events.entry.js +1 -1
  412. package/dist/huds-lib/hy-filter-group_6.entry.js +1 -1
  413. package/dist/huds-lib/hy-general-list_2.entry.js +1 -1
  414. package/dist/huds-lib/hy-hero-carousel.entry.js +1 -1
  415. package/dist/huds-lib/hy-hero.entry.js +1 -1
  416. package/dist/huds-lib/hy-icon-add-to-todo-list.entry.js +1 -1
  417. package/dist/huds-lib/hy-icon-alert.entry.js +1 -1
  418. package/dist/huds-lib/hy-icon-archive.entry.js +1 -1
  419. package/dist/huds-lib/hy-icon-arrow-down.entry.js +1 -1
  420. package/dist/huds-lib/hy-icon-arrow-left.entry.js +1 -1
  421. package/dist/huds-lib/hy-icon-arrow-right.entry.js +1 -1
  422. package/dist/huds-lib/hy-icon-arrow-to-right.entry.js +1 -1
  423. package/dist/huds-lib/hy-icon-arrow-up.entry.js +1 -1
  424. package/dist/huds-lib/hy-icon-avatar-group.entry.js +1 -1
  425. package/dist/huds-lib/hy-icon-avatar.entry.js +1 -1
  426. package/dist/huds-lib/hy-icon-bachelor.entry.js +1 -1
  427. package/dist/huds-lib/hy-icon-bullet-list.entry.js +1 -1
  428. package/dist/huds-lib/hy-icon-camera.entry.js +1 -1
  429. package/dist/huds-lib/hy-icon-caret-down.entry.js +1 -1
  430. package/dist/huds-lib/hy-icon-caret-left.entry.js +1 -1
  431. package/dist/huds-lib/hy-icon-caret-right.entry.js +1 -1
  432. package/dist/huds-lib/hy-icon-caret-up.entry.js +1 -1
  433. package/dist/huds-lib/hy-icon-chat.entry.js +1 -1
  434. package/dist/huds-lib/hy-icon-code-fork.entry.js +1 -1
  435. package/dist/huds-lib/hy-icon-cogs.entry.js +1 -1
  436. package/dist/huds-lib/hy-icon-contentlink.entry.js +1 -1
  437. package/dist/huds-lib/hy-icon-customlink.entry.js +1 -1
  438. package/dist/huds-lib/hy-icon-date.entry.js +1 -1
  439. package/dist/huds-lib/hy-icon-discover.entry.js +1 -1
  440. package/dist/huds-lib/hy-icon-done.entry.js +1 -1
  441. package/dist/huds-lib/hy-icon-dot-arrow-right.entry.js +1 -1
  442. package/dist/huds-lib/hy-icon-dot.entry.js +1 -1
  443. package/dist/huds-lib/hy-icon-download.entry.js +1 -1
  444. package/dist/huds-lib/hy-icon-drag.entry.js +1 -1
  445. package/dist/huds-lib/hy-icon-dragbutton.entry.js +1 -1
  446. package/dist/huds-lib/hy-icon-drop-down.entry.js +1 -1
  447. package/dist/huds-lib/hy-icon-edit-event.entry.js +1 -1
  448. package/dist/huds-lib/hy-icon-edit.entry.js +1 -1
  449. package/dist/huds-lib/hy-icon-embed.entry.js +1 -1
  450. package/dist/huds-lib/hy-icon-euro.entry.js +1 -1
  451. package/dist/huds-lib/hy-icon-events.entry.js +1 -1
  452. package/dist/huds-lib/hy-icon-external-link.entry.js +1 -1
  453. package/dist/huds-lib/hy-icon-eye-slash.entry.js +1 -1
  454. package/dist/huds-lib/hy-icon-facebook.entry.js +1 -1
  455. package/dist/huds-lib/hy-icon-favorites.entry.js +1 -1
  456. package/dist/huds-lib/hy-icon-feed.entry.js +1 -1
  457. package/dist/huds-lib/hy-icon-file-text.entry.js +1 -1
  458. package/dist/huds-lib/hy-icon-full-screen.entry.js +1 -1
  459. package/dist/huds-lib/hy-icon-globe.entry.js +1 -1
  460. package/dist/huds-lib/hy-icon-google-plus.entry.js +1 -1
  461. package/dist/huds-lib/hy-icon-grid.entry.js +1 -1
  462. package/dist/huds-lib/hy-icon-hamburger.entry.js +1 -1
  463. package/dist/huds-lib/hy-icon-heart-support.entry.js +1 -1
  464. package/dist/huds-lib/hy-icon-heart.entry.js +1 -1
  465. package/dist/huds-lib/hy-icon-helsinginyliopisto.entry.js +1 -1
  466. package/dist/huds-lib/hy-icon-home.entry.js +1 -1
  467. package/dist/huds-lib/hy-icon-horizontal-resize.entry.js +1 -1
  468. package/dist/huds-lib/hy-icon-hy-logo.entry.js +1 -1
  469. package/dist/huds-lib/hy-icon-id-number.entry.js +1 -1
  470. package/dist/huds-lib/hy-icon-image-gallery.entry.js +1 -1
  471. package/dist/huds-lib/hy-icon-image.entry.js +1 -1
  472. package/dist/huds-lib/hy-icon-images.entry.js +1 -1
  473. package/dist/huds-lib/hy-icon-info-stroke.entry.js +1 -1
  474. package/dist/huds-lib/hy-icon-info.entry.js +1 -1
  475. package/dist/huds-lib/hy-icon-instagram.entry.js +1 -1
  476. package/dist/huds-lib/hy-icon-leiki-list.entry.js +1 -1
  477. package/dist/huds-lib/hy-icon-link-arrow-down.entry.js +1 -1
  478. package/dist/huds-lib/hy-icon-link-arrow-left.entry.js +1 -1
  479. package/dist/huds-lib/hy-icon-link-arrow-offsite.entry.js +1 -1
  480. package/dist/huds-lib/hy-icon-link-arrow-up.entry.js +1 -1
  481. package/dist/huds-lib/hy-icon-link-arrow.entry.js +1 -1
  482. package/dist/huds-lib/hy-icon-link-arrow1.entry.js +1 -1
  483. package/dist/huds-lib/hy-icon-linkedin.entry.js +1 -1
  484. package/dist/huds-lib/hy-icon-list-as-blocks.entry.js +1 -1
  485. package/dist/huds-lib/hy-icon-list-style-grid.entry.js +1 -1
  486. package/dist/huds-lib/hy-icon-list-style-list.entry.js +1 -1
  487. package/dist/huds-lib/hy-icon-list.entry.js +1 -1
  488. package/dist/huds-lib/hy-icon-listoflinks.entry.js +1 -1
  489. package/dist/huds-lib/hy-icon-location.entry.js +1 -1
  490. package/dist/huds-lib/hy-icon-log.entry.js +1 -1
  491. package/dist/huds-lib/hy-icon-login.entry.js +1 -1
  492. package/dist/huds-lib/hy-icon-logout.entry.js +1 -1
  493. package/dist/huds-lib/hy-icon-magnify-minus.entry.js +1 -1
  494. package/dist/huds-lib/hy-icon-magnify-plus.entry.js +1 -1
  495. package/dist/huds-lib/hy-icon-mail.entry.js +1 -1
  496. package/dist/huds-lib/hy-icon-master.entry.js +1 -1
  497. package/dist/huds-lib/hy-icon-minus.entry.js +1 -1
  498. package/dist/huds-lib/hy-icon-mobile.entry.js +1 -1
  499. package/dist/huds-lib/hy-icon-modify.entry.js +1 -1
  500. package/dist/huds-lib/hy-icon-navi-triangle.entry.js +1 -1
  501. package/dist/huds-lib/hy-icon-new-group.entry.js +1 -1
  502. package/dist/huds-lib/hy-icon-new-person.entry.js +1 -1
  503. package/dist/huds-lib/hy-icon-notification.entry.js +1 -1
  504. package/dist/huds-lib/hy-icon-opinder-logo-new.entry.js +1 -1
  505. package/dist/huds-lib/hy-icon-opinder-logo.entry.js +1 -1
  506. package/dist/huds-lib/hy-icon-pdf.entry.js +1 -1
  507. package/dist/huds-lib/hy-icon-people.entry.js +1 -1
  508. package/dist/huds-lib/hy-icon-permission-all.entry.js +1 -1
  509. package/dist/huds-lib/hy-icon-permission-group.entry.js +1 -1
  510. package/dist/huds-lib/hy-icon-permission-private.entry.js +1 -1
  511. package/dist/huds-lib/hy-icon-person-outline.entry.js +1 -1
  512. package/dist/huds-lib/hy-icon-person.entry.js +1 -1
  513. package/dist/huds-lib/hy-icon-phone.entry.js +1 -1
  514. package/dist/huds-lib/hy-icon-play.entry.js +1 -1
  515. package/dist/huds-lib/hy-icon-plus.entry.js +1 -1
  516. package/dist/huds-lib/hy-icon-preview.entry.js +1 -1
  517. package/dist/huds-lib/hy-icon-profile.entry.js +1 -1
  518. package/dist/huds-lib/hy-icon-question.entry.js +1 -1
  519. package/dist/huds-lib/hy-icon-quote.entry.js +1 -1
  520. package/dist/huds-lib/hy-icon-remove.entry.js +1 -1
  521. package/dist/huds-lib/hy-icon-retweet.entry.js +1 -1
  522. package/dist/huds-lib/hy-icon-rotate-left.entry.js +1 -1
  523. package/dist/huds-lib/hy-icon-rotate-right.entry.js +1 -1
  524. package/dist/huds-lib/hy-icon-search.entry.js +1 -1
  525. package/dist/huds-lib/hy-icon-share.entry.js +1 -1
  526. package/dist/huds-lib/hy-icon-slim-hamburger-menu.entry.js +1 -1
  527. package/dist/huds-lib/hy-icon-social-media.entry.js +1 -1
  528. package/dist/huds-lib/hy-icon-some-facebook.entry.js +1 -1
  529. package/dist/huds-lib/hy-icon-some-instagram.entry.js +1 -1
  530. package/dist/huds-lib/hy-icon-some-linkedin.entry.js +1 -1
  531. package/dist/huds-lib/hy-icon-some-tiktok.entry.js +1 -1
  532. package/dist/huds-lib/hy-icon-some-twitter.entry.js +1 -1
  533. package/dist/huds-lib/hy-icon-some-youtube.entry.js +1 -1
  534. package/dist/huds-lib/hy-icon-spinner.entry.js +1 -1
  535. package/dist/huds-lib/hy-icon-square-checked.entry.js +1 -1
  536. package/dist/huds-lib/hy-icon-square.entry.js +1 -1
  537. package/dist/huds-lib/hy-icon-time.entry.js +1 -1
  538. package/dist/huds-lib/hy-icon-todo-list.entry.js +1 -1
  539. package/dist/huds-lib/hy-icon-tour.entry.js +1 -1
  540. package/dist/huds-lib/hy-icon-twitter-like.entry.js +1 -1
  541. package/dist/huds-lib/hy-icon-units-and-faculties.entry.js +1 -1
  542. package/dist/huds-lib/hy-icon-url.entry.js +1 -1
  543. package/dist/huds-lib/hy-icon-video.entry.js +1 -1
  544. package/dist/huds-lib/hy-icon-warning.entry.js +1 -1
  545. package/dist/huds-lib/hy-icon-wrench.entry.js +1 -1
  546. package/dist/huds-lib/hy-icon-youtube.entry.js +1 -1
  547. package/dist/huds-lib/hy-icon.entry.js +1 -1
  548. package/dist/huds-lib/hy-iconicons.entry.js +1 -1
  549. package/dist/huds-lib/hy-image.entry.js +1 -1
  550. package/dist/huds-lib/hy-introduction.entry.js +1 -1
  551. package/dist/huds-lib/hy-key-figure_2.entry.js +1 -1
  552. package/dist/huds-lib/hy-key-highlight_2.entry.js +1 -1
  553. package/dist/huds-lib/hy-large-process-flow_2.entry.js +1 -1
  554. package/dist/huds-lib/hy-link-box_2.entry.js +1 -1
  555. package/dist/huds-lib/hy-link-list.entry.js +1 -1
  556. package/dist/huds-lib/hy-link.entry.js +1 -1
  557. package/dist/huds-lib/hy-list-item.entry.js +1 -1
  558. package/dist/huds-lib/hy-logo-grid_2.entry.js +1 -1
  559. package/dist/huds-lib/hy-main.entry.js +1 -1
  560. package/dist/huds-lib/hy-menu-main-group.entry.js +1 -1
  561. package/dist/huds-lib/hy-opening-hours_2.entry.js +1 -1
  562. package/dist/huds-lib/hy-pager_2.entry.js +1 -1
  563. package/dist/huds-lib/hy-paragraph-text.entry.js +1 -1
  564. package/dist/huds-lib/hy-person-card.entry.js +1 -1
  565. package/dist/huds-lib/hy-person-profile-listing.entry.js +1 -1
  566. package/dist/huds-lib/hy-person-profile.entry.js +1 -1
  567. package/dist/huds-lib/hy-process_2.entry.js +1 -1
  568. package/dist/huds-lib/hy-prominent-image.entry.js +1 -1
  569. package/dist/huds-lib/hy-quote.entry.js +1 -1
  570. package/dist/huds-lib/hy-row.entry.js +4 -4
  571. package/dist/huds-lib/hy-section-container.entry.js +1 -1
  572. package/dist/huds-lib/hy-shortcuts.entry.js +1 -1
  573. package/dist/huds-lib/hy-table-container.entry.js +1 -1
  574. package/dist/huds-lib/hy-tabs_2.entry.js +1 -1
  575. package/dist/huds-lib/hy-tag.entry.js +1 -1
  576. package/dist/huds-lib/hy-tiny-text.entry.js +1 -1
  577. package/dist/huds-lib/hy-twitter-feed.entry.js +1 -1
  578. package/dist/huds-lib/hy-two-columns.entry.js +1 -1
  579. package/dist/huds-lib/hy-user-login-form.entry.js +1 -1
  580. package/dist/huds-lib/hy-video.entry.js +1 -1
  581. package/dist/huds-lib/index-61e707b7.js +2 -0
  582. package/dist/types/components/hy-navigation/hy-menu-main-group/hy-menu-main-group.d.ts +12 -6
  583. package/dist/types/components/hy-navigation/menu-language/menu-language.d.ts +8 -7
  584. package/dist/types/components/hy-site-header/site-header.d.ts +5 -3
  585. package/dist/types/components.d.ts +2 -2
  586. package/package.json +2 -2
  587. package/readme.md +5 -3
  588. package/dist/huds-lib/app-globals-1b021639.js +0 -1
  589. package/dist/huds-lib/index-2ffe17c9.js +0 -2
@@ -1 +1 @@
1
- import{r as t,h as i,H as e,g as n}from"./index-2ffe17c9.js";import{j as a,k as o}from"./utils-1e7f5184.js";import{j as r}from"./globalScript-3f479486.js";const l=class{constructor(i){t(this,i),this.variant=a.default,this.linkLabel="Go to course page",this.noResultLabel="No courses scheduled at the moment",this.creditsLabel="cr",this.cancelledLabel="Cancelled",this.dataItems=void 0,this.headerstyle="common",this.courseStateVariant=o.default,this.courseRealisations=[]}dataWatcher(t){this._dataItems="string"==typeof t?JSON.parse(t):t}componentWillLoad(){this.dataWatcher(this.dataItems)}handleCardClick(t,i){t.preventDefault();let e=this.el.querySelector(`#${i}`);e&&window.open(e.dataset.location,"_blank")}async componentDidLoad(){let t=this.el.closest(".hy-main");t&&(t.classList.contains("with-sidebar")||(this.headerstyle="large"))}renderItems(){let t=[];return this._dataItems&&this._dataItems.length>0&&this._dataItems.forEach((e=>{const n=JSON.parse(JSON.stringify(e));this.variant="list"==n.courseListType?a.row:a.grid;const o=n.code,r=n.credits;if(n.realisations){const e=JSON.parse(JSON.stringify(n.realisations));for(const n in e){const a=e[n],l=a.name+", "+r+" "+this.creditsLabel,s=a.studyFormat,d=a.cancelled,c=a.startDate,m=a.endDate,h=a.formattedTimeRange,b=a.enrolmentLink,p=a.teachingLanguage,x=a.organisation;let y=[];if(a.tags){let t=JSON.parse(JSON.stringify(a.tags));for(let i in t)y.push({name:t[i]})}const g=JSON.stringify(y),f=["item",this.variant].join(" ");t.push(i("hy-content-list-item",{id:n,class:f,variant:this.variant,"state-variant":this.courseStateVariant,"course-code":o,"course-name":l,"is-cancelled":d,"cancelled-label":this.cancelledLabel,"course-credits":r,"course-tags":g,"course-start-date":c,"course-end-date":m,"formatted-time-range":h,"course-study-format":s,"course-organisation":x,"course-enrollment-link":b,"course-teaching-language":p,"course-link-label":this.linkLabel,"data-location":b,onClick:t=>this.handleCardClick(t,n)}))}}})),t}render(){const t=[this.variant,"hy-content-list"].join(" "),n=["hy-content-list--alert",`hy-content-list--alert--${this.headerstyle}`].join(" "),a=["hy-content-list--alert-label",`hy-content-list--alert-label--${this.headerstyle}`].join(" ");return this.courseRealisations=this.renderItems(),i(e,null,i("div",{class:t},this.courseRealisations&&this.courseRealisations.length>0?this.courseRealisations:i("div",{class:"hy-content-list--no-result"},i("span",{class:n},i("hy-icon",{icon:"hy-icon-info",size:16})),i("span",{class:a},this.noResultLabel))))}get el(){return n(this)}static get watchers(){return{dataItems:["dataWatcher"]}}};l.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-content-list{display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-ms-flex-wrap:wrap;flex-wrap:wrap}.hy-content-list--no-result{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.hy-content-list--alert{margin-right:6px}.hy-content-list--alert svg{fill:var(--grayscale-dark)}@media (min-width: 1601px){.hy-content-list--alert svg{height:18px;width:18px}}@media (min-width: 87.5rem){.hy-content-list--alert--large svg{height:18px;width:18px}}.hy-content-list--alert-label{font-family:var(--main-font-family);font-size:0.9375rem;line-height:22px;color:var(--grayscale-dark);font-style:italic;letter-spacing:0}@media (min-width: 30rem){.hy-content-list--alert-label{font-size:1rem;line-height:24px}}@media (min-width: 1601px){.hy-content-list--alert-label{font-size:1.0625rem;line-height:26px}}@media (min-width: 87.5rem){.hy-content-list--alert-label--large{font-size:1.0625rem;line-height:26px}}.hy-content-list.row{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-content-list.grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}";const s=class{constructor(i){t(this,i),this.variant=a.default,this.stateVariant=o.default,this.courseCode=void 0,this.courseName=void 0,this.isCancelled=void 0,this.cancelledLabel="Cancelled",this.courseCredits=void 0,this.courseTags=void 0,this.courseStartDate=void 0,this.courseEndDate=void 0,this.formattedTimeRange=void 0,this.courseStudyFormat=void 0,this.courseOrganisation=void 0,this.courseEnrollmentLink=void 0,this.courseTeachingLanguage=void 0,this.courseLinkLabel=void 0}async componentWillLoad(){this._courseTags=await r(this.courseTags)}handleKeyDown(t){"Enter"==t.code&&window.open(this.el.dataset.location,"_blank","noopener")}render(){const t=[this.variant,"hy-content-list-item"].join(" "),e=["hy-content-list-item--item-name",`hy-content-list-item--item-name--${this.stateVariant}`].join(" "),n=["cancelled",`cancelled--${this.stateVariant}`].join(" ");return[i("div",{key:"c168c469066896d82a742d2b41757ef358abab1f",class:t,tabindex:"0"},i("div",{key:"413af19dd1cb731436cb978cc21592f193995b24",class:e},this.courseName),i("div",{key:"c248fd0d9320d692a1bfe731d2a6d87ee61fd31d",class:"hy-content-list-item--metadata"},this.isCancelled&&i("div",{key:"0e501f73f8686fc58e6884dd23a0e62c4bc1fd9b",class:n},i("span",{key:"7f901eed6ccf8e596db3239384ec6e07c11303da"},this.cancelledLabel)),i("div",{key:"90b7ebf618c9157f588368b980a7be00048e03f6",class:"hy-content-list-item--metadata--item hy-content-list-item--metadata--item--first"},i("span",{key:"1c7a3004f02c93f3e3af52238afe2ccb8abd6cdc"},this.formattedTimeRange)),this.courseOrganisation?[i("div",{class:"hy-content-list-item--metadata--item"},i("span",null,this.courseStudyFormat)),i("div",{class:"hy-content-list-item--metadata--item hy-content-list-item--metadata--item--last"},i("span",null,this.courseOrganisation))]:[i("div",{class:"hy-content-list-item--metadata--item hy-content-list-item--metadata--item--last"},i("span",null,this.courseStudyFormat))]),this._courseTags&&this._courseTags.length>0&&i("div",{key:"dc0b9db667e3522626cfad8b00860ca47b13581b",class:"hy-content-list-item--tags"},this._courseTags.map((t=>i("hy-tag",null,t.name)))),this.isCancelled&&i("div",{key:"cfd0e329da0b4edfc3a798471abf2fdcd25f680c",class:"cancelled mobile"},i("span",{key:"25a4557562260d23fa3f152e6c281f25c35a08da"},this.cancelledLabel)),i("div",{key:"e4ddeb0e46c40e030318f94e0d54e97c177dc005",class:"hy-content-list-item--link"},i("a",{key:"0d961b9ea7eb6d0b7779e8d2238bd8b799c18ad6",href:this.courseEnrollmentLink,target:"_blank","aria-label":"Link points outside the current website.",class:"hy-content-list-item--link--link",tabindex:"-1"},i("span",{key:"6bea55ccb5c176b89736cdd6bf09befa6e865623",class:"label"},this.courseLinkLabel),i("span",{key:"508af5bd51514290206054fc086313c1c6754f79",class:"icon-wrapper"},i("div",{key:"211b7d1607b403d360dbcb2ac3d1b775738ec2ec",class:"icon"},i("hy-icon",{key:"61a3254e5f9046365ff527ca4d978ed428adab25",icon:"hy-icon-arrow-to-right",size:40}))))))]}get el(){return n(this)}};s.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}hy-content-list-item{background:radial-gradient(circle, #f8f8f8 0%, #f5f5f5 100%);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:16px;position:relative}hy-content-list-item:focus-within{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}@media (min-width: 30rem){hy-content-list-item{margin-bottom:24px}}hy-content-list-item[variant=row],hy-content-list-item.row{max-width:100%;padding:21px 0 60px 12px;width:100%}@media (min-width: 30rem){hy-content-list-item[variant=row],hy-content-list-item.row{padding:21px 0 12px 24px}}@media (min-width: 60rem){hy-content-list-item[variant=row],hy-content-list-item.row{margin-bottom:16px}}hy-content-list-item.grid{max-width:100%;padding:21px 0 60px 12px;width:100%}@media (min-width: 30rem){hy-content-list-item.grid{margin-right:var(--gutter-medium);max-width:calc(((100% - var(--gutter-medium) * 11) / 12) * 6 + var(--gutter-medium) * 5);padding:21px 0 60px 12px;width:calc(((100% - var(--gutter-medium) * 11) / 12) * 6 + var(--gutter-medium) * 5)}}@media (min-width: 60rem){hy-content-list-item.grid{margin-bottom:27px;margin-right:var(--gutter-wide);max-width:calc(((100% - var(--gutter-wide) * 11) / 12) * 4 + var(--gutter-wide) * 3);width:calc(((100% - var(--gutter-wide) * 11) / 12) * 4 + var(--gutter-wide) * 3)}}@media (min-width: 75.0625rem){hy-content-list-item.grid{margin-bottom:32px;margin-right:var(--gutter-extrawide);max-width:calc(((100% - var(--gutter-extrawide) * 11) / 12) * 4 + var(--gutter-extrawide) * 3);width:calc(((100% - var(--gutter-extrawide) * 11) / 12) * 4 + var(--gutter-extrawide) * 3)}}@media (min-width: 30rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:0}}@media (min-width: 60rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:var(--gutter-wide)}}@media (min-width: 75.0625rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:var(--gutter-extrawide)}}@media (min-width: 60rem){hy-content-list-item.grid:nth-of-type(3n+0){margin-right:0}}.hy-content-list-item{font-family:var(--main-font-family);position:relative;width:100%}.hy-content-list-item a{text-decoration:none}.hy-content-list-item--container{cursor:pointer}.hy-content-list-item--item-name{color:var(--link-blue);font-size:1.25rem;line-height:24px;font-weight:700;letter-spacing:-0.6px;margin-bottom:16px;word-break:break-word}.hy-content-list-item--item-name--past-courses{color:var(--grayscale-dark)}.hy-content-list-item--metadata{font-size:0.875rem;line-height:16px;font-weight:600;color:var(--grayscale-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;letter-spacing:-0.44px;line-height:16px;margin-bottom:19px;padding-bottom:0}.hy-content-list-item--metadata--item{padding-bottom:6px}@media (min-width: 30rem){.hy-content-list-item--metadata{padding-bottom:1rem}}@media (min-width: 75.0625rem){.hy-content-list-item--metadata{padding-bottom:0}}.hy-content-list-item--metadata--item:after{content:"|";padding:0 8px}.hy-content-list-item--metadata--item--last:after{content:" "}.hy-content-list-item .cancelled span{font-size:0.75rem;line-height:12px;font-weight:700;background-color:var(--additional-red-light);color:var(--grayscale-white);letter-spacing:-0.5px;padding:6px 8px;text-transform:uppercase}.hy-content-list-item .cancelled--past-courses span{background-color:var(--grayscale-dark)}.hy-content-list-item .cancelled:not(.mobile){display:none}.hy-content-list-item .cancelled.mobile{bottom:-50px;display:block;margin:0;padding-bottom:12px;position:absolute}@media (min-width: 30rem){.hy-content-list-item .cancelled{margin-right:8px}.hy-content-list-item .cancelled.mobile{display:none}.hy-content-list-item .cancelled:not(.mobile){display:block}}.hy-content-list-item--link{position:absolute;right:-6px}.hy-content-list-item--link a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;text-decoration:none}.hy-content-list-item--link a .label{font-size:1rem;line-height:16px;font-weight:700;color:var(--link-blue);letter-spacing:-0.5px;line-height:16px;margin-right:8px;text-align:right}.hy-content-list-item--link a .icon-wrapper{background-color:var(--brand-main-light);z-index:10}.hy-content-list-item--link a .icon-wrapper .icon{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);position:relative;overflow:hidden}.hy-content-list-item--link a .icon-wrapper .icon svg{background-color:transparent;-webkit-box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);fill:var(--grayscale-white);padding:10.29px}.hy-content-list-item.row .hy-content-list-item--link{bottom:-60px;padding-bottom:12px}@media (min-width: 30rem){.hy-content-list-item.row .hy-content-list-item--link{bottom:0;padding-bottom:0}}.hy-content-list-item.row .hy-content-list-item--tags{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (min-width: 60rem){.hy-content-list-item.row .hy-content-list-item--tags{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-right:200px}}.hy-content-list-item.grid .hy-content-list-item--link{bottom:-60px;padding-bottom:12px}.hy-content-list-item.grid .hy-content-list-item--tags{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}';export{l as hy_content_list,s as hy_content_list_item}
1
+ import{r as t,h as i,H as e,g as n}from"./index-61e707b7.js";import{j as a,k as o}from"./utils-1e7f5184.js";import{j as r}from"./globalScript-326c6753.js";const l=class{constructor(i){t(this,i),this.variant=a.default,this.linkLabel="Go to course page",this.noResultLabel="No courses scheduled at the moment",this.creditsLabel="cr",this.cancelledLabel="Cancelled",this.dataItems=void 0,this.headerstyle="common",this.courseStateVariant=o.default,this.courseRealisations=[]}dataWatcher(t){this._dataItems="string"==typeof t?JSON.parse(t):t}componentWillLoad(){this.dataWatcher(this.dataItems)}handleCardClick(t,i){t.preventDefault();let e=this.el.querySelector(`#${i}`);e&&window.open(e.dataset.location,"_blank")}async componentDidLoad(){let t=this.el.closest(".hy-main");t&&(t.classList.contains("with-sidebar")||(this.headerstyle="large"))}renderItems(){let t=[];return this._dataItems&&this._dataItems.length>0&&this._dataItems.forEach((e=>{const n=JSON.parse(JSON.stringify(e));this.variant="list"==n.courseListType?a.row:a.grid;const o=n.code,r=n.credits;if(n.realisations){const e=JSON.parse(JSON.stringify(n.realisations));for(const n in e){const a=e[n],l=a.name+", "+r+" "+this.creditsLabel,s=a.studyFormat,d=a.cancelled,c=a.startDate,m=a.endDate,h=a.formattedTimeRange,b=a.enrolmentLink,p=a.teachingLanguage,x=a.organisation;let y=[];if(a.tags){let t=JSON.parse(JSON.stringify(a.tags));for(let i in t)y.push({name:t[i]})}const g=JSON.stringify(y),w=["item",this.variant].join(" ");t.push(i("hy-content-list-item",{id:n,class:w,variant:this.variant,"state-variant":this.courseStateVariant,"course-code":o,"course-name":l,"is-cancelled":d,"cancelled-label":this.cancelledLabel,"course-credits":r,"course-tags":g,"course-start-date":c,"course-end-date":m,"formatted-time-range":h,"course-study-format":s,"course-organisation":x,"course-enrollment-link":b,"course-teaching-language":p,"course-link-label":this.linkLabel,"data-location":b,onClick:t=>this.handleCardClick(t,n)}))}}})),t}render(){const t=[this.variant,"hy-content-list"].join(" "),n=["hy-content-list--alert",`hy-content-list--alert--${this.headerstyle}`].join(" "),a=["hy-content-list--alert-label",`hy-content-list--alert-label--${this.headerstyle}`].join(" ");return this.courseRealisations=this.renderItems(),i(e,null,i("div",{class:t},this.courseRealisations&&this.courseRealisations.length>0?this.courseRealisations:i("div",{class:"hy-content-list--no-result"},i("span",{class:n},i("hy-icon",{icon:"hy-icon-info",size:16})),i("span",{class:a},this.noResultLabel))))}get el(){return n(this)}static get watchers(){return{dataItems:["dataWatcher"]}}};l.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-content-list{display:-webkit-box;display:-ms-flexbox;display:flex;font-family:var(--main-font-family);-ms-flex-wrap:wrap;flex-wrap:wrap}.hy-content-list--no-result{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex}.hy-content-list--alert{margin-right:6px}.hy-content-list--alert svg{fill:var(--grayscale-dark)}@media (min-width: 1601px){.hy-content-list--alert svg{height:18px;width:18px}}@media (min-width: 87.5rem){.hy-content-list--alert--large svg{height:18px;width:18px}}.hy-content-list--alert-label{font-family:var(--main-font-family);font-size:0.9375rem;line-height:22px;color:var(--grayscale-dark);font-style:italic;letter-spacing:0}@media (min-width: 30rem){.hy-content-list--alert-label{font-size:1rem;line-height:24px}}@media (min-width: 1601px){.hy-content-list--alert-label{font-size:1.0625rem;line-height:26px}}@media (min-width: 87.5rem){.hy-content-list--alert-label--large{font-size:1.0625rem;line-height:26px}}.hy-content-list.row{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-content-list.grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}";const s=class{constructor(i){t(this,i),this.variant=a.default,this.stateVariant=o.default,this.courseCode=void 0,this.courseName=void 0,this.isCancelled=void 0,this.cancelledLabel="Cancelled",this.courseCredits=void 0,this.courseTags=void 0,this.courseStartDate=void 0,this.courseEndDate=void 0,this.formattedTimeRange=void 0,this.courseStudyFormat=void 0,this.courseOrganisation=void 0,this.courseEnrollmentLink=void 0,this.courseTeachingLanguage=void 0,this.courseLinkLabel=void 0}async componentWillLoad(){this._courseTags=await r(this.courseTags)}handleKeyDown(t){"Enter"==t.code&&window.open(this.el.dataset.location,"_blank","noopener")}render(){const t=[this.variant,"hy-content-list-item"].join(" "),e=["hy-content-list-item--item-name",`hy-content-list-item--item-name--${this.stateVariant}`].join(" "),n=["cancelled",`cancelled--${this.stateVariant}`].join(" ");return[i("div",{key:"c168c469066896d82a742d2b41757ef358abab1f",class:t,tabindex:"0"},i("div",{key:"413af19dd1cb731436cb978cc21592f193995b24",class:e},this.courseName),i("div",{key:"c248fd0d9320d692a1bfe731d2a6d87ee61fd31d",class:"hy-content-list-item--metadata"},this.isCancelled&&i("div",{key:"0e501f73f8686fc58e6884dd23a0e62c4bc1fd9b",class:n},i("span",{key:"7f901eed6ccf8e596db3239384ec6e07c11303da"},this.cancelledLabel)),i("div",{key:"90b7ebf618c9157f588368b980a7be00048e03f6",class:"hy-content-list-item--metadata--item hy-content-list-item--metadata--item--first"},i("span",{key:"1c7a3004f02c93f3e3af52238afe2ccb8abd6cdc"},this.formattedTimeRange)),this.courseOrganisation?[i("div",{class:"hy-content-list-item--metadata--item"},i("span",null,this.courseStudyFormat)),i("div",{class:"hy-content-list-item--metadata--item hy-content-list-item--metadata--item--last"},i("span",null,this.courseOrganisation))]:[i("div",{class:"hy-content-list-item--metadata--item hy-content-list-item--metadata--item--last"},i("span",null,this.courseStudyFormat))]),this._courseTags&&this._courseTags.length>0&&i("div",{key:"dc0b9db667e3522626cfad8b00860ca47b13581b",class:"hy-content-list-item--tags"},this._courseTags.map((t=>i("hy-tag",null,t.name)))),this.isCancelled&&i("div",{key:"cfd0e329da0b4edfc3a798471abf2fdcd25f680c",class:"cancelled mobile"},i("span",{key:"25a4557562260d23fa3f152e6c281f25c35a08da"},this.cancelledLabel)),i("div",{key:"e4ddeb0e46c40e030318f94e0d54e97c177dc005",class:"hy-content-list-item--link"},i("a",{key:"0d961b9ea7eb6d0b7779e8d2238bd8b799c18ad6",href:this.courseEnrollmentLink,target:"_blank","aria-label":"Link points outside the current website.",class:"hy-content-list-item--link--link",tabindex:"-1"},i("span",{key:"6bea55ccb5c176b89736cdd6bf09befa6e865623",class:"label"},this.courseLinkLabel),i("span",{key:"508af5bd51514290206054fc086313c1c6754f79",class:"icon-wrapper"},i("div",{key:"211b7d1607b403d360dbcb2ac3d1b775738ec2ec",class:"icon"},i("hy-icon",{key:"61a3254e5f9046365ff527ca4d978ed428adab25",icon:"hy-icon-arrow-to-right",size:40}))))))]}get el(){return n(this)}};s.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}hy-content-list-item{background:radial-gradient(circle, #f8f8f8 0%, #f5f5f5 100%);cursor:pointer;display:-webkit-box;display:-ms-flexbox;display:flex;margin-bottom:16px;position:relative}hy-content-list-item:focus-within{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}@media (min-width: 30rem){hy-content-list-item{margin-bottom:24px}}hy-content-list-item[variant=row],hy-content-list-item.row{max-width:100%;padding:21px 0 60px 12px;width:100%}@media (min-width: 30rem){hy-content-list-item[variant=row],hy-content-list-item.row{padding:21px 0 12px 24px}}@media (min-width: 60rem){hy-content-list-item[variant=row],hy-content-list-item.row{margin-bottom:16px}}hy-content-list-item.grid{max-width:100%;padding:21px 0 60px 12px;width:100%}@media (min-width: 30rem){hy-content-list-item.grid{margin-right:var(--gutter-medium);max-width:calc(((100% - var(--gutter-medium) * 11) / 12) * 6 + var(--gutter-medium) * 5);padding:21px 0 60px 12px;width:calc(((100% - var(--gutter-medium) * 11) / 12) * 6 + var(--gutter-medium) * 5)}}@media (min-width: 60rem){hy-content-list-item.grid{margin-bottom:27px;margin-right:var(--gutter-wide);max-width:calc(((100% - var(--gutter-wide) * 11) / 12) * 4 + var(--gutter-wide) * 3);width:calc(((100% - var(--gutter-wide) * 11) / 12) * 4 + var(--gutter-wide) * 3)}}@media (min-width: 75.0625rem){hy-content-list-item.grid{margin-bottom:32px;margin-right:var(--gutter-extrawide);max-width:calc(((100% - var(--gutter-extrawide) * 11) / 12) * 4 + var(--gutter-extrawide) * 3);width:calc(((100% - var(--gutter-extrawide) * 11) / 12) * 4 + var(--gutter-extrawide) * 3)}}@media (min-width: 30rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:0}}@media (min-width: 60rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:var(--gutter-wide)}}@media (min-width: 75.0625rem){hy-content-list-item.grid:nth-of-type(2n+0){margin-right:var(--gutter-extrawide)}}@media (min-width: 60rem){hy-content-list-item.grid:nth-of-type(3n+0){margin-right:0}}.hy-content-list-item{font-family:var(--main-font-family);position:relative;width:100%}.hy-content-list-item a{text-decoration:none}.hy-content-list-item--container{cursor:pointer}.hy-content-list-item--item-name{color:var(--link-blue);font-size:1.25rem;line-height:24px;font-weight:700;letter-spacing:-0.6px;margin-bottom:16px;word-break:break-word}.hy-content-list-item--item-name--past-courses{color:var(--grayscale-dark)}.hy-content-list-item--metadata{font-size:0.875rem;line-height:16px;font-weight:600;color:var(--grayscale-black);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-ms-flex-wrap:wrap;flex-wrap:wrap;letter-spacing:-0.44px;line-height:16px;margin-bottom:19px;padding-bottom:0}.hy-content-list-item--metadata--item{padding-bottom:6px}@media (min-width: 30rem){.hy-content-list-item--metadata{padding-bottom:1rem}}@media (min-width: 75.0625rem){.hy-content-list-item--metadata{padding-bottom:0}}.hy-content-list-item--metadata--item:after{content:"|";padding:0 8px}.hy-content-list-item--metadata--item--last:after{content:" "}.hy-content-list-item .cancelled span{font-size:0.75rem;line-height:12px;font-weight:700;background-color:var(--additional-red-light);color:var(--grayscale-white);letter-spacing:-0.5px;padding:6px 8px;text-transform:uppercase}.hy-content-list-item .cancelled--past-courses span{background-color:var(--grayscale-dark)}.hy-content-list-item .cancelled:not(.mobile){display:none}.hy-content-list-item .cancelled.mobile{bottom:-50px;display:block;margin:0;padding-bottom:12px;position:absolute}@media (min-width: 30rem){.hy-content-list-item .cancelled{margin-right:8px}.hy-content-list-item .cancelled.mobile{display:none}.hy-content-list-item .cancelled:not(.mobile){display:block}}.hy-content-list-item--link{position:absolute;right:-6px}.hy-content-list-item--link a{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;text-decoration:none}.hy-content-list-item--link a .label{font-size:1rem;line-height:16px;font-weight:700;color:var(--link-blue);letter-spacing:-0.5px;line-height:16px;margin-right:8px;text-align:right}.hy-content-list-item--link a .icon-wrapper{background-color:var(--brand-main-light);z-index:10}.hy-content-list-item--link a .icon-wrapper .icon{-webkit-transform:rotate(-45deg);transform:rotate(-45deg);position:relative;overflow:hidden}.hy-content-list-item--link a .icon-wrapper .icon svg{background-color:transparent;-webkit-box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);box-shadow:0 2px 8px 0 rgba(0, 0, 0, 0.1);fill:var(--grayscale-white);padding:10.29px}.hy-content-list-item.row .hy-content-list-item--link{bottom:-60px;padding-bottom:12px}@media (min-width: 30rem){.hy-content-list-item.row .hy-content-list-item--link{bottom:0;padding-bottom:0}}.hy-content-list-item.row .hy-content-list-item--tags{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}@media (min-width: 60rem){.hy-content-list-item.row .hy-content-list-item--tags{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding-right:200px}}.hy-content-list-item.grid .hy-content-list-item--link{bottom:-60px;padding-bottom:12px}.hy-content-list-item.grid .hy-content-list-item--tags{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap}';export{l as hy_content_list,s as hy_content_list_item}
@@ -1 +1 @@
1
- import{r as i,h as n,H as e}from"./index-2ffe17c9.js";const r=class{constructor(n){i(this,n),this.bannerTitle=void 0,this.bannerDescription=void 0,this.linkTitle=void 0,this.linkUrl=void 0}render(){return n(e,{key:"34699d5669e7fbec70090d1cdd995601b7165af5",class:"hy-crisis-banner",role:"alert"},n("div",{key:"cc45aaef7f13db005eae43b422497b2cfe417f1c",class:"hy-crisis-banner__container"},n("div",{key:"44dcd345b24f0c1720606a961dcefbbbbac8a6cd",class:"hy-crisis-banner__indicator"},n("hy-icon",{key:"f15c99788fbc60b30cd435f9ab570ae1bfd9a899",class:"hy-crisis-banner__indicator-icon",icon:"hy-icon-alert"})),n("div",{key:"e9f245d336e407408ee84fa99bd5e5db13081865",class:"hy-crisis-banner__content-wrapper"},n("div",{key:"c5ebb71c42c286eaa8d42088cdb0312836beb26a",class:"hy-crisis-banner__content"},n("h3",{key:"4d9dbb0d09debb114b32060538c271612de4f184",class:"hy-crisis-banner__title"},this.bannerTitle),this.bannerDescription&&n("div",{key:"12b9af3faacb4dd8d5b381efa1e98419199738d3",class:"hy-crisis-banner__description",innerHTML:this.bannerDescription})),this.linkUrl&&n("a",{key:"c728d5f91ba107b174d9b4b7b5814f936dc4db16",class:"hy-crisis-banner__link",href:this.linkUrl},this.linkTitle,n("hy-icon",{key:"bce58eea1dcbfe3f9aec1a4da4eaaa71a4556394",class:"hy-crisis-banner__link-icon",icon:"hy-icon-arrow-to-right"})))))}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-crisis-banner{-webkit-box-shadow:inset 0 -20px 20px -20px rgba(14, 104, 139, 0.1);box-shadow:inset 0 -20px 20px -20px rgba(14, 104, 139, 0.1);display:block}.hy-crisis-banner__container{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 auto;max-width:1216px}.hy-crisis-banner__indicator{background-color:var(--brand-main);-ms-flex-negative:0;flex-shrink:0}@media (min-width: 30rem){.hy-crisis-banner__indicator{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.hy-crisis-banner__indicator-icon{margin-left:8px;margin-right:8px;margin-top:10px}@media (min-width: 30rem){.hy-crisis-banner__indicator-icon{margin-left:10px;margin-right:10px;margin-top:0}}.hy-crisis-banner__indicator-icon svg{height:22px;width:22px}.hy-crisis-banner__indicator-icon svg circle{fill:var(--grayscale-white)}.hy-crisis-banner__indicator-icon svg path{fill:var(--brand-main)}.hy-crisis-banner__content-wrapper{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:12px 0 12px 12px}@media (min-width: 30rem){.hy-crisis-banner__content-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:14px 0 14px 14px}}@media (min-width: 60rem){.hy-crisis-banner__content-wrapper{padding:20px 0 20px 20px}}@media (min-width: 30rem){.hy-crisis-banner__content{max-width:61.22%;width:100%}}@media (min-width: 60rem){.hy-crisis-banner__content{max-width:65.83%}}@media (min-width: 75.0625rem){.hy-crisis-banner__content{max-width:65.79%}}.hy-crisis-banner__title{font-size:0.875rem;line-height:16px;font-weight:700;color:var(--grayscale-black);font-family:var(--main-font-family);letter-spacing:-0.35px;margin:0 0 2px 0}@media (min-width: 1601px){.hy-crisis-banner__title{font-size:1rem;line-height:18px;letter-spacing:-0.4px}}.hy-crisis-banner__description{font-size:0.75rem;line-height:14px;color:var(--grayscale-dark);font-family:var(--main-font-family);letter-spacing:-0.35px;margin:0}@media (min-width: 30rem){.hy-crisis-banner__description{font-size:0.875rem;line-height:16px}}.hy-crisis-banner__description p{margin-top:0}.hy-crisis-banner__description p:last-of-type{margin-bottom:0}.hy-crisis-banner__link{font-size:0.875rem;line-height:16px;font-weight:600;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--brand-main-light);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);letter-spacing:-0.5px;margin:12px 0 0;overflow:hidden;text-decoration:none}@media (min-width: 30rem){.hy-crisis-banner__link{-ms-flex-negative:0;flex-shrink:0;margin-left:24px;margin-right:32px;margin-top:0;text-align:right}}@media (min-width: 75.0625rem){.hy-crisis-banner__link{margin-left:32px}}@media (min-width: 1601px){.hy-crisis-banner__link{font-size:1rem;line-height:18px}}.hy-crisis-banner__link:hover,.hy-crisis-banner__link:focus-visible{color:var(--brand-main);text-decoration:underline}.hy-crisis-banner__link:hover .hy-crisis-banner__link-icon svg,.hy-crisis-banner__link:focus-visible .hy-crisis-banner__link-icon svg{fill:var(--brand-main)}.hy-crisis-banner__link-icon{margin-left:4px}@media (min-width: 30rem){.hy-crisis-banner__link-icon{margin-left:8px}}@media (min-width: 75.0625rem){.hy-crisis-banner__link-icon{margin-left:12px}}.hy-crisis-banner__link-icon svg{fill:var(--brand-main-light);height:12px;width:12px}@media (min-width: 30rem){.hy-crisis-banner__link-icon svg{height:14px;width:14px}}@media (min-width: 1601px){.hy-crisis-banner__link-icon svg{height:16px;width:16px}}";export{r as hy_crisis_banner}
1
+ import{r as i,h as n,H as e}from"./index-61e707b7.js";const r=class{constructor(n){i(this,n),this.bannerTitle=void 0,this.bannerDescription=void 0,this.linkTitle=void 0,this.linkUrl=void 0}render(){return n(e,{key:"34699d5669e7fbec70090d1cdd995601b7165af5",class:"hy-crisis-banner",role:"alert"},n("div",{key:"cc45aaef7f13db005eae43b422497b2cfe417f1c",class:"hy-crisis-banner__container"},n("div",{key:"44dcd345b24f0c1720606a961dcefbbbbac8a6cd",class:"hy-crisis-banner__indicator"},n("hy-icon",{key:"f15c99788fbc60b30cd435f9ab570ae1bfd9a899",class:"hy-crisis-banner__indicator-icon",icon:"hy-icon-alert"})),n("div",{key:"e9f245d336e407408ee84fa99bd5e5db13081865",class:"hy-crisis-banner__content-wrapper"},n("div",{key:"c5ebb71c42c286eaa8d42088cdb0312836beb26a",class:"hy-crisis-banner__content"},n("h3",{key:"4d9dbb0d09debb114b32060538c271612de4f184",class:"hy-crisis-banner__title"},this.bannerTitle),this.bannerDescription&&n("div",{key:"12b9af3faacb4dd8d5b381efa1e98419199738d3",class:"hy-crisis-banner__description",innerHTML:this.bannerDescription})),this.linkUrl&&n("a",{key:"c728d5f91ba107b174d9b4b7b5814f936dc4db16",class:"hy-crisis-banner__link",href:this.linkUrl},this.linkTitle,n("hy-icon",{key:"bce58eea1dcbfe3f9aec1a4da4eaaa71a4556394",class:"hy-crisis-banner__link-icon",icon:"hy-icon-arrow-to-right"})))))}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-crisis-banner{-webkit-box-shadow:inset 0 -20px 20px -20px rgba(14, 104, 139, 0.1);box-shadow:inset 0 -20px 20px -20px rgba(14, 104, 139, 0.1);display:block}.hy-crisis-banner__container{display:-webkit-box;display:-ms-flexbox;display:flex;margin:0 auto;max-width:1216px}.hy-crisis-banner__indicator{background-color:var(--brand-main);-ms-flex-negative:0;flex-shrink:0}@media (min-width: 30rem){.hy-crisis-banner__indicator{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center}}.hy-crisis-banner__indicator-icon{margin-left:8px;margin-right:8px;margin-top:10px}@media (min-width: 30rem){.hy-crisis-banner__indicator-icon{margin-left:10px;margin-right:10px;margin-top:0}}.hy-crisis-banner__indicator-icon svg{height:22px;width:22px}.hy-crisis-banner__indicator-icon svg circle{fill:var(--grayscale-white)}.hy-crisis-banner__indicator-icon svg path{fill:var(--brand-main)}.hy-crisis-banner__content-wrapper{-webkit-box-align:baseline;-ms-flex-align:baseline;align-items:baseline;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:12px 0 12px 12px}@media (min-width: 30rem){.hy-crisis-banner__content-wrapper{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;padding:14px 0 14px 14px}}@media (min-width: 60rem){.hy-crisis-banner__content-wrapper{padding:20px 0 20px 20px}}@media (min-width: 30rem){.hy-crisis-banner__content{max-width:61.22%;width:100%}}@media (min-width: 60rem){.hy-crisis-banner__content{max-width:65.83%}}@media (min-width: 75.0625rem){.hy-crisis-banner__content{max-width:65.79%}}.hy-crisis-banner__title{font-size:0.875rem;line-height:16px;font-weight:700;color:var(--grayscale-black);font-family:var(--main-font-family);letter-spacing:-0.35px;margin:0 0 2px 0}@media (min-width: 1601px){.hy-crisis-banner__title{font-size:1rem;line-height:18px;letter-spacing:-0.4px}}.hy-crisis-banner__description{font-size:0.75rem;line-height:14px;color:var(--grayscale-dark);font-family:var(--main-font-family);letter-spacing:-0.35px;margin:0}@media (min-width: 30rem){.hy-crisis-banner__description{font-size:0.875rem;line-height:16px}}.hy-crisis-banner__description p{margin-top:0}.hy-crisis-banner__description p:last-of-type{margin-bottom:0}.hy-crisis-banner__link{font-size:0.875rem;line-height:16px;font-weight:600;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--brand-main-light);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);letter-spacing:-0.5px;margin:12px 0 0;overflow:hidden;text-decoration:none}@media (min-width: 30rem){.hy-crisis-banner__link{-ms-flex-negative:0;flex-shrink:0;margin-left:24px;margin-right:32px;margin-top:0;text-align:right}}@media (min-width: 75.0625rem){.hy-crisis-banner__link{margin-left:32px}}@media (min-width: 1601px){.hy-crisis-banner__link{font-size:1rem;line-height:18px}}.hy-crisis-banner__link:hover,.hy-crisis-banner__link:focus-visible{color:var(--brand-main);text-decoration:underline}.hy-crisis-banner__link:hover .hy-crisis-banner__link-icon svg,.hy-crisis-banner__link:focus-visible .hy-crisis-banner__link-icon svg{fill:var(--brand-main)}.hy-crisis-banner__link-icon{margin-left:4px}@media (min-width: 30rem){.hy-crisis-banner__link-icon{margin-left:8px}}@media (min-width: 75.0625rem){.hy-crisis-banner__link-icon{margin-left:12px}}.hy-crisis-banner__link-icon svg{fill:var(--brand-main-light);height:12px;width:12px}@media (min-width: 30rem){.hy-crisis-banner__link-icon svg{height:14px;width:14px}}@media (min-width: 1601px){.hy-crisis-banner__link-icon svg{height:16px;width:16px}}";export{r as hy_crisis_banner}
@@ -1 +1 @@
1
- import{r as o,h as r,g as a}from"./index-2ffe17c9.js";import{d as t}from"./utils-1e7f5184.js";const n=class{constructor(r){o(this,r),this.variant=t.onBlueBkgd,this.linkContent="",this.typeButton=!1,this.url=void 0,this.scLabel=void 0,this.isExternal=!1,this.headerstyle="common"}render(){const o=["hy-cta-button",this.variant,this.headerstyle].join(" "),a=["hy-cta-button-container"].join(" "),t=["text"].join(" "),n=["link-icon"].join(" "),b=this.isExternal?"_blank":"_self";return r("span",{key:"8ff5a2773cf8e8e232afaab01f8b4e37c371b62f",class:a},this.typeButton?r("button",{"aria-label":this.scLabel,class:o},r("span",{class:t},0===this.linkContent.length?r("slot",null):this.linkContent),r("span",{class:n},r("hy-icon",{icon:"hy-icon-arrow-right",size:48}))):r("a",{"aria-label":this.scLabel,class:o,href:this.url,target:b},r("span",{class:t},0===this.linkContent.length?r("slot",null):this.linkContent),r("span",{class:n},r("hy-icon",{icon:"hy-icon-arrow-right",size:48}))))}get el(){return a(this)}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-cta-button-container{display:-webkit-box;display:-ms-flexbox;display:flex}.hy-cta-button{cursor:pointer;font-family:var(--main-font-family);font-weight:700;position:relative;text-decoration:none}.hy-cta-button.transparent-background,.hy-cta-button.black-background,.hy-cta-button.blue-background,.hy-cta-button.white-background,.hy-cta-button.hero-white,.hy-cta-button.hero-blue,.hy-cta-button.hero-black,.hy-cta-button.dark-blue-background{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-width:328px;padding:13px 16px}.hy-cta-button.transparent-background .text,.hy-cta-button.black-background .text,.hy-cta-button.blue-background .text,.hy-cta-button.white-background .text,.hy-cta-button.hero-white .text,.hy-cta-button.hero-blue .text,.hy-cta-button.hero-black .text,.hy-cta-button.dark-blue-background .text{font-size:1rem;line-height:18px;letter-spacing:-0.3px}.hy-cta-button.transparent-background .link-icon,.hy-cta-button.black-background .link-icon,.hy-cta-button.blue-background .link-icon,.hy-cta-button.white-background .link-icon,.hy-cta-button.hero-white .link-icon,.hy-cta-button.hero-blue .link-icon,.hy-cta-button.hero-black .link-icon,.hy-cta-button.dark-blue-background .link-icon{margin-left:8px}.hy-cta-button.transparent-background .link-icon svg,.hy-cta-button.black-background .link-icon svg,.hy-cta-button.blue-background .link-icon svg,.hy-cta-button.white-background .link-icon svg,.hy-cta-button.hero-white .link-icon svg,.hy-cta-button.hero-blue .link-icon svg,.hy-cta-button.hero-black .link-icon svg,.hy-cta-button.dark-blue-background .link-icon svg{height:16px;width:16px}.hy-cta-button.dark-blue-background{background-color:var(--brand-main-dark);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.dark-blue-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.dark-blue-background .link-icon svg{background-color:var(--brand-main-dark);fill:var(--grayscale-white)}.hy-cta-button.dark-blue-background .text{color:var(--grayscale-white)}.hy-cta-button.transparent-background{background-color:var(--grayscale-white);border:4px solid var(--grayscale-black);color:var(--grayscale-black)}.hy-cta-button.transparent-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.transparent-background .link-icon svg{background-color:var(--grayscale-white);fill:var(--grayscale-black)}.hy-cta-button.transparent-background .text{color:var(--grayscale-black)}.hy-cta-button.black-background{background-color:var(--grayscale-black);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.black-background .link-icon svg{background-color:var(--grayscale-black);fill:var(--grayscale-white)}.hy-cta-button.black-background .text{color:var(--grayscale-white)}.hy-cta-button.black-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.black-background:hover{background-color:var(--brand-main-active)}.hy-cta-button.black-background:hover .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.black-background:focus-visible{background-color:var(--brand-main)}.hy-cta-button.black-background:focus-visible .link-icon svg{background-color:var(--brand-main)}.hy-cta-button.blue-background{background-color:var(--brand-main-light);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.blue-background .link-icon svg{background-color:var(--brand-main-light);fill:var(--grayscale-white)}.hy-cta-button.blue-background .text{color:var(--grayscale-white)}.hy-cta-button.blue-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.blue-background:hover{background-color:var(--brand-main)}.hy-cta-button.blue-background:hover .link-icon svg{background-color:var(--brand-main)}.hy-cta-button.blue-background:focus-visible{background-color:var(--brand-main-active)}.hy-cta-button.blue-background:focus-visible .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.white-background{background-color:var(--grayscale-white);border:4px solid var(--brand-main-light);color:var(--brand-main-light)}.hy-cta-button.white-background .link-icon svg{background-color:var(--grayscale-white);fill:var(--brand-main-light)}.hy-cta-button.white-background .text{color:var(--brand-main-light)}.hy-cta-button.white-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.white-background:hover{border-color:var(--brand-main-active)}.hy-cta-button.white-background:hover .text{color:var(--brand-main-active)}.hy-cta-button.white-background:hover .link-icon svg{fill:var(--brand-main-active)}.hy-cta-button.white-background:focus-visible{border-color:var(--brand-main-active)}.hy-cta-button.white-background:focus-visible .text{color:var(--brand-main-active)}.hy-cta-button.white-background:focus-visible .link-icon svg{fill:var(--brand-main-active)}.hy-cta-button.hero-white{background-color:var(--brand-main-light);color:var(--grayscale-white)}.hy-cta-button.hero-white .link-icon svg{background-color:var(--brand-main-light);fill:var(--grayscale-white)}.hy-cta-button.hero-white .text{color:var(--grayscale-white)}.hy-cta-button.hero-white:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.hero-white:hover{background-color:var(--brand-main-active)}.hy-cta-button.hero-white:hover .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.hero-white:focus-visible{background-color:var(--brand-main-active)}.hy-cta-button.hero-white:focus-visible .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.hero-black{background-color:var(--grayscale-black);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.hero-black .link-icon svg{background-color:var(--grayscale-black);fill:var(--grayscale-white)}.hy-cta-button.hero-black .text{color:var(--grayscale-white)}.hy-cta-button.hero-black:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.hero-black:hover{border-color:var(--brand-main-soft)}.hy-cta-button.hero-black:hover .text{color:var(--brand-main-soft)}.hy-cta-button.hero-black:hover .link-icon svg{fill:var(--brand-main-soft)}.hy-cta-button.hero-black:focus-visible{border-color:var(--brand-main-soft)}.hy-cta-button.hero-black:focus-visible .text{color:var(--brand-main-soft)}.hy-cta-button.hero-black:focus-visible .link-icon svg{fill:var(--brand-main-soft)}.hy-cta-button.hero-blue{background-color:var(--brand-main);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.hero-blue .link-icon svg{background-color:var(--brand-main);fill:var(--grayscale-white)}.hy-cta-button.hero-blue .text{color:var(--grayscale-white)}.hy-cta-button.hero-blue:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.hero-blue:hover{border-color:var(--brand-main-soft)}.hy-cta-button.hero-blue:hover .text{color:var(--brand-main-soft)}.hy-cta-button.hero-blue:hover .link-icon svg{fill:var(--brand-main-soft)}.hy-cta-button.hero-blue:focus-visible{border-color:var(--brand-main-soft)}.hy-cta-button.hero-blue:focus-visible .text{color:var(--brand-main-soft)}.hy-cta-button.hero-blue:focus-visible .link-icon svg{fill:var(--brand-main-soft)}";export{n as hy_cta_button}
1
+ import{r as o,h as r,g as a}from"./index-61e707b7.js";import{d as t}from"./utils-1e7f5184.js";const n=class{constructor(r){o(this,r),this.variant=t.onBlueBkgd,this.linkContent="",this.typeButton=!1,this.url=void 0,this.scLabel=void 0,this.isExternal=!1,this.headerstyle="common"}render(){const o=["hy-cta-button",this.variant,this.headerstyle].join(" "),a=["hy-cta-button-container"].join(" "),t=["text"].join(" "),n=["link-icon"].join(" "),b=this.isExternal?"_blank":"_self";return r("span",{key:"8ff5a2773cf8e8e232afaab01f8b4e37c371b62f",class:a},this.typeButton?r("button",{"aria-label":this.scLabel,class:o},r("span",{class:t},0===this.linkContent.length?r("slot",null):this.linkContent),r("span",{class:n},r("hy-icon",{icon:"hy-icon-arrow-right",size:48}))):r("a",{"aria-label":this.scLabel,class:o,href:this.url,target:b},r("span",{class:t},0===this.linkContent.length?r("slot",null):this.linkContent),r("span",{class:n},r("hy-icon",{icon:"hy-icon-arrow-right",size:48}))))}get el(){return a(this)}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-cta-button-container{display:-webkit-box;display:-ms-flexbox;display:flex}.hy-cta-button{cursor:pointer;font-family:var(--main-font-family);font-weight:700;position:relative;text-decoration:none}.hy-cta-button.transparent-background,.hy-cta-button.black-background,.hy-cta-button.blue-background,.hy-cta-button.white-background,.hy-cta-button.hero-white,.hy-cta-button.hero-blue,.hy-cta-button.hero-black,.hy-cta-button.dark-blue-background{-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-sizing:border-box;box-sizing:border-box;display:-webkit-box;display:-ms-flexbox;display:flex;height:100%;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;max-width:328px;padding:13px 16px}.hy-cta-button.transparent-background .text,.hy-cta-button.black-background .text,.hy-cta-button.blue-background .text,.hy-cta-button.white-background .text,.hy-cta-button.hero-white .text,.hy-cta-button.hero-blue .text,.hy-cta-button.hero-black .text,.hy-cta-button.dark-blue-background .text{font-size:1rem;line-height:18px;letter-spacing:-0.3px}.hy-cta-button.transparent-background .link-icon,.hy-cta-button.black-background .link-icon,.hy-cta-button.blue-background .link-icon,.hy-cta-button.white-background .link-icon,.hy-cta-button.hero-white .link-icon,.hy-cta-button.hero-blue .link-icon,.hy-cta-button.hero-black .link-icon,.hy-cta-button.dark-blue-background .link-icon{margin-left:8px}.hy-cta-button.transparent-background .link-icon svg,.hy-cta-button.black-background .link-icon svg,.hy-cta-button.blue-background .link-icon svg,.hy-cta-button.white-background .link-icon svg,.hy-cta-button.hero-white .link-icon svg,.hy-cta-button.hero-blue .link-icon svg,.hy-cta-button.hero-black .link-icon svg,.hy-cta-button.dark-blue-background .link-icon svg{height:16px;width:16px}.hy-cta-button.dark-blue-background{background-color:var(--brand-main-dark);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.dark-blue-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.dark-blue-background .link-icon svg{background-color:var(--brand-main-dark);fill:var(--grayscale-white)}.hy-cta-button.dark-blue-background .text{color:var(--grayscale-white)}.hy-cta-button.transparent-background{background-color:var(--grayscale-white);border:4px solid var(--grayscale-black);color:var(--grayscale-black)}.hy-cta-button.transparent-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.transparent-background .link-icon svg{background-color:var(--grayscale-white);fill:var(--grayscale-black)}.hy-cta-button.transparent-background .text{color:var(--grayscale-black)}.hy-cta-button.black-background{background-color:var(--grayscale-black);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.black-background .link-icon svg{background-color:var(--grayscale-black);fill:var(--grayscale-white)}.hy-cta-button.black-background .text{color:var(--grayscale-white)}.hy-cta-button.black-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.black-background:hover{background-color:var(--brand-main-active)}.hy-cta-button.black-background:hover .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.black-background:focus-visible{background-color:var(--brand-main)}.hy-cta-button.black-background:focus-visible .link-icon svg{background-color:var(--brand-main)}.hy-cta-button.blue-background{background-color:var(--brand-main-light);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.blue-background .link-icon svg{background-color:var(--brand-main-light);fill:var(--grayscale-white)}.hy-cta-button.blue-background .text{color:var(--grayscale-white)}.hy-cta-button.blue-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.blue-background:hover{background-color:var(--brand-main)}.hy-cta-button.blue-background:hover .link-icon svg{background-color:var(--brand-main)}.hy-cta-button.blue-background:focus-visible{background-color:var(--brand-main-active)}.hy-cta-button.blue-background:focus-visible .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.white-background{background-color:var(--grayscale-white);border:4px solid var(--brand-main-light);color:var(--brand-main-light)}.hy-cta-button.white-background .link-icon svg{background-color:var(--grayscale-white);fill:var(--brand-main-light)}.hy-cta-button.white-background .text{color:var(--brand-main-light)}.hy-cta-button.white-background:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.white-background:hover{border-color:var(--brand-main-active)}.hy-cta-button.white-background:hover .text{color:var(--brand-main-active)}.hy-cta-button.white-background:hover .link-icon svg{fill:var(--brand-main-active)}.hy-cta-button.white-background:focus-visible{border-color:var(--brand-main-active)}.hy-cta-button.white-background:focus-visible .text{color:var(--brand-main-active)}.hy-cta-button.white-background:focus-visible .link-icon svg{fill:var(--brand-main-active)}.hy-cta-button.hero-white{background-color:var(--brand-main-light);color:var(--grayscale-white)}.hy-cta-button.hero-white .link-icon svg{background-color:var(--brand-main-light);fill:var(--grayscale-white)}.hy-cta-button.hero-white .text{color:var(--grayscale-white)}.hy-cta-button.hero-white:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.hero-white:hover{background-color:var(--brand-main-active)}.hy-cta-button.hero-white:hover .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.hero-white:focus-visible{background-color:var(--brand-main-active)}.hy-cta-button.hero-white:focus-visible .link-icon svg{background-color:var(--brand-main-active)}.hy-cta-button.hero-black{background-color:var(--grayscale-black);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.hero-black .link-icon svg{background-color:var(--grayscale-black);fill:var(--grayscale-white)}.hy-cta-button.hero-black .text{color:var(--grayscale-white)}.hy-cta-button.hero-black:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.hero-black:hover{border-color:var(--brand-main-soft)}.hy-cta-button.hero-black:hover .text{color:var(--brand-main-soft)}.hy-cta-button.hero-black:hover .link-icon svg{fill:var(--brand-main-soft)}.hy-cta-button.hero-black:focus-visible{border-color:var(--brand-main-soft)}.hy-cta-button.hero-black:focus-visible .text{color:var(--brand-main-soft)}.hy-cta-button.hero-black:focus-visible .link-icon svg{fill:var(--brand-main-soft)}.hy-cta-button.hero-blue{background-color:var(--brand-main);border:4px solid var(--grayscale-white);color:var(--grayscale-white)}.hy-cta-button.hero-blue .link-icon svg{background-color:var(--brand-main);fill:var(--grayscale-white)}.hy-cta-button.hero-blue .text{color:var(--grayscale-white)}.hy-cta-button.hero-blue:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-black);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-white);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-button.hero-blue:hover{border-color:var(--brand-main-soft)}.hy-cta-button.hero-blue:hover .text{color:var(--brand-main-soft)}.hy-cta-button.hero-blue:hover .link-icon svg{fill:var(--brand-main-soft)}.hy-cta-button.hero-blue:focus-visible{border-color:var(--brand-main-soft)}.hy-cta-button.hero-blue:focus-visible .text{color:var(--brand-main-soft)}.hy-cta-button.hero-blue:focus-visible .link-icon svg{fill:var(--brand-main-soft)}";export{n as hy_cta_button}
@@ -1 +1 @@
1
- import{r as i,h as e,g as t}from"./index-2ffe17c9.js";import{h as a}from"./utils-1e7f5184.js";const n=class{constructor(e){i(this,e),this.variant=a.default,this.linkContent="",this.url=void 0,this.scLabel=void 0,this.isExternal=!1}render(){const i=["hy-cta-link__icon",this.isExternal&&"hy-cta-link__icon--external"].join(" ");return e("a",{key:"1c234de3ded35da24eee00c2e098bf92d06bb7df","aria-label":this.scLabel,href:this.url,target:this.isExternal?"_blank":"_self",class:`hy-cta-link hy-cta-link--${this.variant}`},this.variant==a.linkList&&e("span",{key:"921238d0487ff659b59617007fa301d28a690a21",class:i},e("hy-icon",{key:"b6ef593967faa486796811cf6f7e43440a439beb",icon:"hy-icon-arrow-to-right",size:24})),e("span",{key:"f7e9989246c469cfaab6f8a5ad81238c2daad223"},this.linkContent),this.variant==a.default&&e("span",{key:"4f772fd09063c4826bd0ff94f58afbe1117fd49d",class:i},e("hy-icon",{key:"cc02779797392ae69743147865faafbf200f9aaf",icon:"hy-icon-arrow-to-right",size:24})))}get el(){return t(this)}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-cta-link{font-weight:600;font-size:1rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--brand-main);display:inline-grid;font-family:var(--main-font-family);gap:16px;grid-auto-flow:column;letter-spacing:-0.5px;overflow:hidden;text-decoration:none}.hy-cta-link:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-link:hover,.hy-cta-link:focus-visible{text-decoration:underline}.hy-cta-link:hover .hy-cta-link__icon,.hy-cta-link:focus-visible .hy-cta-link__icon{background-color:var(--brand-main-active)}.hy-cta-link__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--brand-main-light);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px}.hy-cta-link__icon svg{fill:var(--grayscale-white)}.hy-cta-link__icon--external svg{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}";export{n as hy_cta_link}
1
+ import{r as i,h as e,g as t}from"./index-61e707b7.js";import{h as a}from"./utils-1e7f5184.js";const n=class{constructor(e){i(this,e),this.variant=a.default,this.linkContent="",this.url=void 0,this.scLabel=void 0,this.isExternal=!1}render(){const i=["hy-cta-link__icon",this.isExternal&&"hy-cta-link__icon--external"].join(" ");return e("a",{key:"1c234de3ded35da24eee00c2e098bf92d06bb7df","aria-label":this.scLabel,href:this.url,target:this.isExternal?"_blank":"_self",class:`hy-cta-link hy-cta-link--${this.variant}`},this.variant==a.linkList&&e("span",{key:"921238d0487ff659b59617007fa301d28a690a21",class:i},e("hy-icon",{key:"b6ef593967faa486796811cf6f7e43440a439beb",icon:"hy-icon-arrow-to-right",size:24})),e("span",{key:"f7e9989246c469cfaab6f8a5ad81238c2daad223"},this.linkContent),this.variant==a.default&&e("span",{key:"4f772fd09063c4826bd0ff94f58afbe1117fd49d",class:i},e("hy-icon",{key:"cc02779797392ae69743147865faafbf200f9aaf",icon:"hy-icon-arrow-to-right",size:24})))}get el(){return t(this)}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-cta-link{font-weight:600;font-size:1rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;color:var(--brand-main);display:inline-grid;font-family:var(--main-font-family);gap:16px;grid-auto-flow:column;letter-spacing:-0.5px;overflow:hidden;text-decoration:none}.hy-cta-link:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-cta-link:hover,.hy-cta-link:focus-visible{text-decoration:underline}.hy-cta-link:hover .hy-cta-link__icon,.hy-cta-link:focus-visible .hy-cta-link__icon{background-color:var(--brand-main-active)}.hy-cta-link__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--brand-main-light);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;width:40px}.hy-cta-link__icon svg{fill:var(--grayscale-white)}.hy-cta-link__icon--external svg{-webkit-transform:rotate(-45deg);transform:rotate(-45deg)}";export{n as hy_cta_link}
@@ -1 +1 @@
1
- import{r as i,c as e,h as t,H as o,g as n}from"./index-2ffe17c9.js";import{j as d}from"./globalScript-3f479486.js";const a=class{constructor(t){i(this,t),this.dropdownPanelToggled=e(this,"dropdownPanelToggled",7),this.dropdropValueChange=e(this,"dropdownValueChanged",7),this.dropdropMultiValueChange=e(this,"dropdownMultiValueChanged",7),this.dropdownKeyPress=e(this,"dropdownKeyPress",7),this.single=!1,this.dropdownLabel=null,this.dropdownId="dropdownToggle",this.dropdownOptions=void 0,this.defaultLabel="All",this.type=null,this.defaultOption=null,this.isPanelOpen=!1,this.isChecked=!1,this.currentSingle=[{id:0,label:this.defaultLabel,value:0}],this.currentMulti=void 0,this.focusedOptionIndex=0}async componentWillLoad(){this._dropdownOptions=await d(this.dropdownOptions)}componentWillUpdate(){const i=this.el.querySelectorAll(".hy-dropdown__checkbox");i&&(this.isChecked=!![...i].some((i=>1==i.checked)))}watchPropHandler(i,e){if(this.single&&i!==e){const e=this.el.getElementsByClassName("hy-dropdown__checkbox");Array.from(e).filter((e=>e.id==i?(e.checked=!0,void(this.currentSingle=this._dropdownOptions.filter((e=>e.id==i)))):null))}}panelListener(i){this.isPanelOpen&&i.detail.dropdownId!==this.dropdownId&&(this.isPanelOpen=!1)}handleMultiClick(i,e){i.stopPropagation();const t=this.el.getElementsByClassName("hy-dropdown__checkbox");Array.from(t).filter((i=>{const t=i.closest("li");if(t.dataset.id==e.id&&!t.hasAttribute("aria-selected"))return t.setAttribute("aria-selected","true"),void(this.currentMulti=this.currentMulti&&this.currentMulti.length>0?[...this.currentMulti,e]:[e]);if(t.dataset.id!==e.id||!t.hasAttribute("aria-selected"))return null;if(t.removeAttribute("aria-selected"),this.currentMulti.length>0){const i=this.currentMulti.indexOf(e);this.currentMulti=this.currentMulti.splice(i,1)}}))}handleSingleClick(i,e){if(!this.single||!this.isPanelOpen)return;const t=this.el.getElementsByClassName("hy-dropdown__checkbox");i.stopPropagation(),Array.from(t).filter((i=>{const t=i.closest("li");return t.dataset.id==e.id?t.hasAttribute("aria-selected")?(t.removeAttribute("aria-selected"),void(this.currentSingle=[{id:null,label:this.defaultLabel,value:null}])):(t.setAttribute("aria-selected","true"),void(this.currentSingle=this._dropdownOptions.filter((i=>i.id==e.id)))):t.dataset.id!==e.id&&t.hasAttribute("aria-selected")?void t.removeAttribute("aria-selected"):null}))}handleKeyDown(i){switch(i.stopPropagation(),i.key){case"ArrowDown":if(i.preventDefault(),!this.isPanelOpen)return void this.handlePanelToggle(i);this.focusedOptionIndex=(this.focusedOptionIndex+1)%this._dropdownOptions.length;break;case"ArrowUp":this.focusedOptionIndex=(this.focusedOptionIndex-1+this._dropdownOptions.length)%this._dropdownOptions.length,i.preventDefault();break;case"Enter":case" ":if(!this.isPanelOpen)return i.preventDefault(),void this.handlePanelToggle(i);this.single?this.handleOptionSingleClick(i,this._dropdownOptions[this.focusedOptionIndex]):this.handleMultiOptionClick(i,this._dropdownOptions[this.focusedOptionIndex]),this.dropdownKeyPress.emit({id:this.dropdownId,type:this.type,data:this._dropdownOptions[this.focusedOptionIndex]}),i.preventDefault();break;case"Escape":case"Tab":this.isPanelOpen=!1}}handlePanelToggle(i){i.stopPropagation(),this.isPanelOpen=!this.isPanelOpen,this.dropdownPanelToggled.emit({dropdownId:this.dropdownId,panelOpen:this.isPanelOpen})}handlePanelClickOutside(i){i.stopPropagation();const e=this.el.querySelector(`#${this.dropdownId}`),t=this.el.querySelector(".hy-dropdown__panel"),o=this.el.querySelectorAll(".hy-dropdown__panel-item"),n=this.el.querySelectorAll(".hy-dropdown__checkbox"),d=this.el.querySelectorAll(".hy-dropdown__icon"),{target:a}=i,s=[this.el,e,t,...n,d,...o];this.isPanelOpen&&!s.includes(a)&&(this.isPanelOpen=!1)}handleOptionSingleClick(i,e){i.stopPropagation(),this.handleSingleClick(i,e),this.dropdropValueChange.emit({id:this.dropdownId,type:this.type,data:e})}handleMultiOptionClick(i,e){i.stopPropagation(),this.handleMultiClick(i,e),this.dropdropMultiValueChange.emit({id:this.dropdownId,type:this.type,data:this.currentMulti})}handleOptionHover(i){this.focusedOptionIndex=i}render(){const{label:i,id:e,value:n}=this.currentSingle[0],d=["hy-dropdown",this.single?"hy-dropdown--single":""].join(" ");return this.single?t(o,{class:d},this.dropdownLabel&&t("label",{class:"hy-dropdown__button-label",htmlFor:this.dropdownId},this.dropdownLabel),t("div",{id:this.dropdownId,class:"hy-dropdown__toggle "+(this.isPanelOpen?"is-open":""),"aria-expanded":`${this.isPanelOpen||!1}`,"aria-controls":"dropdownPanel","aria-haspopup":"listbox",role:"combobox",onClick:i=>this.handlePanelToggle(i),onKeyDown:i=>this.handleKeyDown(i),"aria-label":this.dropdownLabel,"data-current-id":e,"data-current-value":n,"data-value":e,tabIndex:0},t("input",{"aria-hidden":"true",class:"hy-dropdown__hidden-input",type:"hidden",value:e}),i,t("hy-icon",{class:"hy-dropdown__icon",icon:"hy-icon-caret-down",size:14,"aria-hidden":"true"})),t("ul",{"checkbox-checked":this.isChecked?"true":"false",id:"dropdownPanel",class:"hy-dropdown__panel "+(this.isPanelOpen?"":"is-hidden"),"aria-expanded":`${!this.isPanelOpen||!1}`,role:"listbox","aria-labelledby":"dropdownToggle"},this._dropdownOptions.map((({id:i,label:e,value:o},n,d)=>t("li",{key:i,"data-id":`${i}`,role:"option",class:`hy-dropdown__panel-item ${this._dropdownOptions.length-1===n?"is-last":""}\n ${this.focusedOptionIndex===n?"hy-dropdown__panel-item--focused":""}`,onClick:i=>this.handleOptionSingleClick(i,d[n]),onMouseEnter:()=>this.handleOptionHover(n)},t("span",{"data-id":`${i}`,class:"hy-dropdown__checkbox","data-value":`${o}`},e,t("hy-icon",{class:"hy-dropdown__label-icon",icon:"hy-icon-done",size:14,"aria-hidden":"true"}))))))):t(o,{class:d},t("button",{id:this.dropdownId,class:"hy-dropdown__toggle "+(this.isPanelOpen?"is-open":""),"aria-expanded":`${this.isPanelOpen||!1}`,"aria-controls":"dropdownPanel","aria-haspopup":"listbox",role:"combobox",onClick:i=>this.handlePanelToggle(i),"aria-label":this.dropdownLabel,type:"button"},this.dropdownLabel&&this.dropdownLabel,t("hy-icon",{class:"hy-dropdown__icon",icon:"hy-icon-caret-down",size:14,"aria-hidden":"true"})),t("ul",{"checkbox-checked":this.isChecked?"true":"false",id:"dropdownPanel",class:"hy-dropdown__panel "+(this.isPanelOpen?"":"is-hidden"),"aria-expanded":`${!this.isPanelOpen||!1}`,role:"listbox","aria-labelledby":"dropdownToggle"},this._dropdownOptions.map((({id:i,label:e,value:o},n,d)=>t("li",{key:i,"data-id":`${i}`,role:"option",class:`hy-dropdown__panel-item ${this._dropdownOptions.length-1===n?"is-last":""}\n ${this.focusedOptionIndex===n?"hy-dropdown__panel-item--focused":""}`,onClick:i=>this.handleMultiOptionClick(i,d[n]),onMouseEnter:()=>this.handleOptionHover(n)},t("span",{"data-id":`${i}`,class:"hy-dropdown__checkbox","data-value":`${o}`},e,t("hy-icon",{class:"hy-dropdown__label-icon",icon:"hy-icon-done",size:14,"aria-hidden":"true"})))))))}get el(){return n(this)}static get watchers(){return{defaultOption:["watchPropHandler"]}}};a.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-dropdown{display:inline-block;min-width:100%;position:relative}@media (min-width: 30rem){.hy-dropdown{min-width:48.3%}}@media (min-width: 75.0625rem){.hy-dropdown{min-width:23.03%}}.hy-dropdown label.hy-dropdown__button-label{font-size:1rem;line-height:20px;font-weight:700;display:block;font-family:var(--main-font-family);letter-spacing:-0.32px;margin-bottom:8px}.hy-dropdown--single .hy-dropdown__panel{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:330px;min-width:100%}.hy-dropdown .hy-dropdown__hidden-input{display:none;height:0;font-size:0}.hy-dropdown__toggle{font-size:0.875rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-white);border-radius:0;border:1px solid var(--grayscale-medium-dark);color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;min-height:40px;height:auto;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;letter-spacing:normal;padding:0 0 0 16px;text-align:left;max-width:280px;width:100%}@media (min-width: 30rem){.hy-dropdown__toggle{font-size:1rem;line-height:24px;min-height:44px}}@media (min-width: 75.0625rem){.hy-dropdown__toggle{min-height:48px}}.hy-dropdown__toggle:hover{border-color:var(--brand-main-light);cursor:pointer}.hy-dropdown__toggle:focus-visible{border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}.hy-dropdown__toggle svg{pointer-events:none}.hy-dropdown__toggle.is-open .hy-dropdown__icon{background-color:var(--brand-main-light);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hy-dropdown__toggle.is-open .hy-dropdown__icon::before{display:none}.hy-dropdown__toggle.is-open .hy-dropdown__icon svg{fill:var(--grayscale-white)}.hy-dropdown__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 0 0 16px;position:relative;width:40px}.hy-dropdown__icon::before{border-left:0.5px solid var(--grayscale-medium-dark);content:"";display:inline-block;height:65%;left:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 30rem){.hy-dropdown__icon{height:44px;width:44px}}@media (min-width: 75.0625rem){.hy-dropdown__icon{height:48px;width:48px}}.hy-dropdown__icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-dropdown__icon svg{height:16px;width:16px}}.hy-dropdown__panel{background-color:var(--grayscale-white);-webkit-box-shadow:0 10px 20px 0 rgba(0, 49, 70, 0.2);box-shadow:0 10px 20px 0 rgba(0, 49, 70, 0.2);list-style:none;margin:0;padding:6px;position:absolute;width:100%;z-index:11}.hy-dropdown__panel.is-hidden{display:none;visibility:hidden}.hy-dropdown__panel-item{font-size:0.875rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-white);border-radius:0;border:1px solid var(--grayscale-medium-dark);color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;min-height:40px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;letter-spacing:normal;position:relative;padding:0;text-align:left;width:100%}@media (min-width: 30rem){.hy-dropdown__panel-item{font-size:1rem;line-height:24px}}.hy-dropdown__panel-item:not(.is-last){margin-bottom:6px}.hy-dropdown__panel-item[aria-selected=true] .hy-dropdown__checkbox{border-color:var(--grayscale-black);border-style:solid inset solid solid;border-width:2px;color:var(--grayscale-black);outline:0;text-indent:-1px}.hy-dropdown__panel-item[aria-selected=true] .hy-dropdown__checkbox .hy-dropdown__label-icon{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important;visibility:visible}.hy-dropdown__panel-item--focused{cursor:pointer;border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}.hy-dropdown__label-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none !important;-ms-flex-negative:0;flex-shrink:0;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;visibility:hidden;width:40px}.hy-dropdown__checkbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:40px;height:100%;margin:0;padding:0 16px;width:100%;z-index:10}.hy-dropdown__checkbox:hover{cursor:pointer;border-color:var(--brand-main-active)}.hy-dropdown__checkbox:focus-within{border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}';export{a as hy_dropdown}
1
+ import{r as i,c as e,h as t,H as o,g as n}from"./index-61e707b7.js";import{j as d}from"./globalScript-326c6753.js";const a=class{constructor(t){i(this,t),this.dropdownPanelToggled=e(this,"dropdownPanelToggled",7),this.dropdropValueChange=e(this,"dropdownValueChanged",7),this.dropdropMultiValueChange=e(this,"dropdownMultiValueChanged",7),this.dropdownKeyPress=e(this,"dropdownKeyPress",7),this.single=!1,this.dropdownLabel=null,this.dropdownId="dropdownToggle",this.dropdownOptions=void 0,this.defaultLabel="All",this.type=null,this.defaultOption=null,this.isPanelOpen=!1,this.isChecked=!1,this.currentSingle=[{id:0,label:this.defaultLabel,value:0}],this.currentMulti=void 0,this.focusedOptionIndex=0}async componentWillLoad(){this._dropdownOptions=await d(this.dropdownOptions)}componentWillUpdate(){const i=this.el.querySelectorAll(".hy-dropdown__checkbox");i&&(this.isChecked=!![...i].some((i=>1==i.checked)))}watchPropHandler(i,e){if(this.single&&i!==e){const e=this.el.getElementsByClassName("hy-dropdown__checkbox");Array.from(e).filter((e=>e.id==i?(e.checked=!0,void(this.currentSingle=this._dropdownOptions.filter((e=>e.id==i)))):null))}}panelListener(i){this.isPanelOpen&&i.detail.dropdownId!==this.dropdownId&&(this.isPanelOpen=!1)}handleMultiClick(i,e){i.stopPropagation();const t=this.el.getElementsByClassName("hy-dropdown__checkbox");Array.from(t).filter((i=>{const t=i.closest("li");if(t.dataset.id==e.id&&!t.hasAttribute("aria-selected"))return t.setAttribute("aria-selected","true"),void(this.currentMulti=this.currentMulti&&this.currentMulti.length>0?[...this.currentMulti,e]:[e]);if(t.dataset.id!==e.id||!t.hasAttribute("aria-selected"))return null;if(t.removeAttribute("aria-selected"),this.currentMulti.length>0){const i=this.currentMulti.indexOf(e);this.currentMulti=this.currentMulti.splice(i,1)}}))}handleSingleClick(i,e){if(!this.single||!this.isPanelOpen)return;const t=this.el.getElementsByClassName("hy-dropdown__checkbox");i.stopPropagation(),Array.from(t).filter((i=>{const t=i.closest("li");return t.dataset.id==e.id?t.hasAttribute("aria-selected")?(t.removeAttribute("aria-selected"),void(this.currentSingle=[{id:null,label:this.defaultLabel,value:null}])):(t.setAttribute("aria-selected","true"),void(this.currentSingle=this._dropdownOptions.filter((i=>i.id==e.id)))):t.dataset.id!==e.id&&t.hasAttribute("aria-selected")?void t.removeAttribute("aria-selected"):null}))}handleKeyDown(i){switch(i.stopPropagation(),i.key){case"ArrowDown":if(i.preventDefault(),!this.isPanelOpen)return void this.handlePanelToggle(i);this.focusedOptionIndex=(this.focusedOptionIndex+1)%this._dropdownOptions.length;break;case"ArrowUp":this.focusedOptionIndex=(this.focusedOptionIndex-1+this._dropdownOptions.length)%this._dropdownOptions.length,i.preventDefault();break;case"Enter":case" ":if(!this.isPanelOpen)return i.preventDefault(),void this.handlePanelToggle(i);this.single?this.handleOptionSingleClick(i,this._dropdownOptions[this.focusedOptionIndex]):this.handleMultiOptionClick(i,this._dropdownOptions[this.focusedOptionIndex]),this.dropdownKeyPress.emit({id:this.dropdownId,type:this.type,data:this._dropdownOptions[this.focusedOptionIndex]}),i.preventDefault();break;case"Escape":case"Tab":this.isPanelOpen=!1}}handlePanelToggle(i){i.stopPropagation(),this.isPanelOpen=!this.isPanelOpen,this.dropdownPanelToggled.emit({dropdownId:this.dropdownId,panelOpen:this.isPanelOpen})}handlePanelClickOutside(i){i.stopPropagation();const e=this.el.querySelector(`#${this.dropdownId}`),t=this.el.querySelector(".hy-dropdown__panel"),o=this.el.querySelectorAll(".hy-dropdown__panel-item"),n=this.el.querySelectorAll(".hy-dropdown__checkbox"),d=this.el.querySelectorAll(".hy-dropdown__icon"),{target:a}=i,s=[this.el,e,t,...n,d,...o];this.isPanelOpen&&!s.includes(a)&&(this.isPanelOpen=!1)}handleOptionSingleClick(i,e){i.stopPropagation(),this.handleSingleClick(i,e),this.dropdropValueChange.emit({id:this.dropdownId,type:this.type,data:e})}handleMultiOptionClick(i,e){i.stopPropagation(),this.handleMultiClick(i,e),this.dropdropMultiValueChange.emit({id:this.dropdownId,type:this.type,data:this.currentMulti})}handleOptionHover(i){this.focusedOptionIndex=i}render(){const{label:i,id:e,value:n}=this.currentSingle[0],d=["hy-dropdown",this.single?"hy-dropdown--single":""].join(" ");return this.single?t(o,{class:d},this.dropdownLabel&&t("label",{class:"hy-dropdown__button-label",htmlFor:this.dropdownId},this.dropdownLabel),t("div",{id:this.dropdownId,class:"hy-dropdown__toggle "+(this.isPanelOpen?"is-open":""),"aria-expanded":`${this.isPanelOpen||!1}`,"aria-controls":"dropdownPanel","aria-haspopup":"listbox",role:"combobox",onClick:i=>this.handlePanelToggle(i),onKeyDown:i=>this.handleKeyDown(i),"aria-label":this.dropdownLabel,"data-current-id":e,"data-current-value":n,"data-value":e,tabIndex:0},t("input",{"aria-hidden":"true",class:"hy-dropdown__hidden-input",type:"hidden",value:e}),i,t("hy-icon",{class:"hy-dropdown__icon",icon:"hy-icon-caret-down",size:14,"aria-hidden":"true"})),t("ul",{"checkbox-checked":this.isChecked?"true":"false",id:"dropdownPanel",class:"hy-dropdown__panel "+(this.isPanelOpen?"":"is-hidden"),"aria-expanded":`${!this.isPanelOpen||!1}`,role:"listbox","aria-labelledby":"dropdownToggle"},this._dropdownOptions.map((({id:i,label:e,value:o},n,d)=>t("li",{key:i,"data-id":`${i}`,role:"option",class:`hy-dropdown__panel-item ${this._dropdownOptions.length-1===n?"is-last":""}\n ${this.focusedOptionIndex===n?"hy-dropdown__panel-item--focused":""}`,onClick:i=>this.handleOptionSingleClick(i,d[n]),onMouseEnter:()=>this.handleOptionHover(n)},t("span",{"data-id":`${i}`,class:"hy-dropdown__checkbox","data-value":`${o}`},e,t("hy-icon",{class:"hy-dropdown__label-icon",icon:"hy-icon-done",size:14,"aria-hidden":"true"}))))))):t(o,{class:d},t("button",{id:this.dropdownId,class:"hy-dropdown__toggle "+(this.isPanelOpen?"is-open":""),"aria-expanded":`${this.isPanelOpen||!1}`,"aria-controls":"dropdownPanel","aria-haspopup":"listbox",role:"combobox",onClick:i=>this.handlePanelToggle(i),"aria-label":this.dropdownLabel,type:"button"},this.dropdownLabel&&this.dropdownLabel,t("hy-icon",{class:"hy-dropdown__icon",icon:"hy-icon-caret-down",size:14,"aria-hidden":"true"})),t("ul",{"checkbox-checked":this.isChecked?"true":"false",id:"dropdownPanel",class:"hy-dropdown__panel "+(this.isPanelOpen?"":"is-hidden"),"aria-expanded":`${!this.isPanelOpen||!1}`,role:"listbox","aria-labelledby":"dropdownToggle"},this._dropdownOptions.map((({id:i,label:e,value:o},n,d)=>t("li",{key:i,"data-id":`${i}`,role:"option",class:`hy-dropdown__panel-item ${this._dropdownOptions.length-1===n?"is-last":""}\n ${this.focusedOptionIndex===n?"hy-dropdown__panel-item--focused":""}`,onClick:i=>this.handleMultiOptionClick(i,d[n]),onMouseEnter:()=>this.handleOptionHover(n)},t("span",{"data-id":`${i}`,class:"hy-dropdown__checkbox","data-value":`${o}`},e,t("hy-icon",{class:"hy-dropdown__label-icon",icon:"hy-icon-done",size:14,"aria-hidden":"true"})))))))}get el(){return n(this)}static get watchers(){return{defaultOption:["watchPropHandler"]}}};a.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-dropdown{display:inline-block;min-width:100%;position:relative}@media (min-width: 30rem){.hy-dropdown{min-width:48.3%}}@media (min-width: 75.0625rem){.hy-dropdown{min-width:23.03%}}.hy-dropdown label.hy-dropdown__button-label{font-size:1rem;line-height:20px;font-weight:700;display:block;font-family:var(--main-font-family);letter-spacing:-0.32px;margin-bottom:8px}.hy-dropdown--single .hy-dropdown__panel{width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:330px;min-width:100%}.hy-dropdown .hy-dropdown__hidden-input{display:none;height:0;font-size:0}.hy-dropdown__toggle{font-size:0.875rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-white);border-radius:0;border:1px solid var(--grayscale-medium-dark);color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;min-height:40px;height:auto;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;letter-spacing:normal;padding:0 0 0 16px;text-align:left;max-width:280px;width:100%}@media (min-width: 30rem){.hy-dropdown__toggle{font-size:1rem;line-height:24px;min-height:44px}}@media (min-width: 75.0625rem){.hy-dropdown__toggle{min-height:48px}}.hy-dropdown__toggle:hover{border-color:var(--brand-main-light);cursor:pointer}.hy-dropdown__toggle:focus-visible{border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}.hy-dropdown__toggle svg{pointer-events:none}.hy-dropdown__toggle.is-open .hy-dropdown__icon{background-color:var(--brand-main-light);-webkit-transform:rotate(180deg);transform:rotate(180deg)}.hy-dropdown__toggle.is-open .hy-dropdown__icon::before{display:none}.hy-dropdown__toggle.is-open .hy-dropdown__icon svg{fill:var(--grayscale-white)}.hy-dropdown__icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-negative:0;flex-shrink:0;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;margin:0 0 0 16px;position:relative;width:40px}.hy-dropdown__icon::before{border-left:0.5px solid var(--grayscale-medium-dark);content:"";display:inline-block;height:65%;left:0;position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}@media (min-width: 30rem){.hy-dropdown__icon{height:44px;width:44px}}@media (min-width: 75.0625rem){.hy-dropdown__icon{height:48px;width:48px}}.hy-dropdown__icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-dropdown__icon svg{height:16px;width:16px}}.hy-dropdown__panel{background-color:var(--grayscale-white);-webkit-box-shadow:0 10px 20px 0 rgba(0, 49, 70, 0.2);box-shadow:0 10px 20px 0 rgba(0, 49, 70, 0.2);list-style:none;margin:0;padding:6px;position:absolute;width:100%;z-index:11}.hy-dropdown__panel.is-hidden{display:none;visibility:hidden}.hy-dropdown__panel-item{font-size:0.875rem;line-height:24px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-white);border-radius:0;border:1px solid var(--grayscale-medium-dark);color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;min-height:40px;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;letter-spacing:normal;position:relative;padding:0;text-align:left;width:100%}@media (min-width: 30rem){.hy-dropdown__panel-item{font-size:1rem;line-height:24px}}.hy-dropdown__panel-item:not(.is-last){margin-bottom:6px}.hy-dropdown__panel-item[aria-selected=true] .hy-dropdown__checkbox{border-color:var(--grayscale-black);border-style:solid inset solid solid;border-width:2px;color:var(--grayscale-black);outline:0;text-indent:-1px}.hy-dropdown__panel-item[aria-selected=true] .hy-dropdown__checkbox .hy-dropdown__label-icon{display:-webkit-inline-box !important;display:-ms-inline-flexbox !important;display:inline-flex !important;visibility:visible}.hy-dropdown__panel-item--focused{cursor:pointer;border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}.hy-dropdown__label-icon{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:none !important;-ms-flex-negative:0;flex-shrink:0;height:40px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:relative;visibility:hidden;width:40px}.hy-dropdown__checkbox{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;min-height:40px;height:100%;margin:0;padding:0 16px;width:100%;z-index:10}.hy-dropdown__checkbox:hover{cursor:pointer;border-color:var(--brand-main-active)}.hy-dropdown__checkbox:focus-within{border-color:var(--brand-main-light);border-style:solid inset solid solid;border-width:2px;outline:0;text-indent:-1px}';export{a as hy_dropdown}
@@ -1 +1 @@
1
- import{r as e,h as i,g as t}from"./index-2ffe17c9.js";const n=class{constructor(i){e(this,i),this.eventTitle=void 0,this.eventDescription="",this.dateShort="",this.dateLong="",this.location="",this.type=void 0,this.url=void 0,this.styleGrid=!1,this.readMoreLabel="Read more",this.isLong=!1}componentDidLoad(){this.styleGrid&&this.el.clientHeight>255&&(this.isLong=!0)}render(){const e=["hy-events__item",this.styleGrid?"hy-events__item--grid":"hy-events__item--list",this.isLong?"is-long":""].join(" ");return i("a",{key:"27855d59db1c516895b1e8e1126b299841d6bf30",href:this.url,class:e,target:"_blank"},i("div",{key:"0180826effa6544695c93d15132c8ed7abd129d1",class:"hy-events__item--container"},i("div",{key:"1c4e7129fba84f378f3e134e696c7d111be29664",class:"hy-events__item__top-container"},i("span",{key:"cf70d25654f16a0a89275c52208deef2cea716fb",class:"hy-events__item__date--short"},this.dateShort),this.isLong&&i("span",{key:"fa2ec45cab1b3656d4b55cef16103ae33727bcb6",class:"hy-events__item--toggle"},i("hy-icon",{key:"33c256daad8d9f6c1cc0609886819a7233ac0db5",icon:"hy-icon-caret-down",size:10}))),i("div",{key:"b018914a912ad18b6e275cf13e1ee3eb3b47e6ce",class:"hy-events__item__details"},i("div",{key:"21cfce58bdeefcd83cb1c196cb134c0b642d6d3d",class:"hy-events__item__title"},this.eventTitle),i("div",{key:"545d9ebf8a88558160fa83cd28b5532fabbce0db",class:"hy-events__item__meta"},this.dateLong&&i("div",{key:"2974c7acfc79b5ee951943136cd517e3dfc4ec76",class:"hy-events__item__meta--item hy-events__item__date--long"},i("hy-icon",{key:"c6f2554796051a507b43d5efaa9acc1409fa195f",icon:"hy-icon-events",size:18}),this.dateLong),this.location&&i("div",{key:"9890f7bed90305e5b6995744c938923f8d937b0a",class:"hy-events__item__meta--item hy-events__item__location"},i("hy-icon",{key:"548db99571870cea330663b624dd17f6f1bb0bc1",icon:"hy-icon-location",size:18}),this.location),this.type&&i("div",{key:"0deb9de0cd071f63451de96fbfccbd9171f7b476",class:"hy-events__item__meta--item hy-events__item__type"},i("hy-icon",{key:"9670dd3dabb475ecd514fa5d7fb4f2281aeb4d50",icon:"hy-icon-people",size:18}),this.type),i("span",{key:"eede93b4f5fa00cb2c75510d6c21c164f98cfde4",class:"hy-events__item__read-more"},this.readMoreLabel))),i("span",{key:"defe0a8aa40631f4dba9d74c54aaf370b2bec4e8",class:"hy-events__item__url-icon","aria-hidden":"true"},i("hy-icon",{key:"9ac0b9bf3667ac0885f68ba22028c513f5598909",icon:"hy-icon-arrow-right",size:18}))))}get el(){return t(this)}};n.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-events__item{display:-webkit-box;display:-ms-flexbox;display:flex;border:1px solid var(--grayscale-light);padding:13px 16px;position:relative;text-decoration:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;white-space:initial;margin-bottom:1rem}@media (min-width: 48rem){.hy-events__item{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding:47px;margin-bottom:1.75rem}}@media (min-width: 48rem){.hy-events__item:not(.hy-events__item--grid) .hy-events__item--container{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events__item:hover .hy-events__item__title{color:var(--brand-main);text-decoration:underline}.hy-events__item:hover .hy-events__item__date--short,.hy-events__item:hover .hy-events__item__url-icon{background-color:var(--brand-main-active)}.hy-events__item__title{font-size:1.125rem;line-height:24px;-webkit-box-orient:vertical;-webkit-line-clamp:6;color:var(--grayscale-black);display:-webkit-box;font-family:var(--main-font-family);font-weight:700;letter-spacing:-0.36px;line-clamp:6;margin-bottom:16px;overflow:hidden;text-overflow:ellipsis}@media (min-width: 48rem){.hy-events__item__title{font-size:1.375rem;line-height:28px;font-weight:700;font-size:22px;line-height:28px;letter-spacing:-0.44px;margin-bottom:14px}}.hy-events__item__details{font-family:var(--main-font-family);font-style:normal;font-weight:400;font-size:17px;line-height:26px;color:var(--grayscale-black)}.hy-events__item__meta{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 48rem){.hy-events__item__meta{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-events__item__meta--item{font-size:0.9375rem;line-height:22px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-right:0px;margin-bottom:9px;font-family:var(--main-font-family);font-weight:400;word-break:break-word}@media (min-width: 48rem){.hy-events__item__meta--item{font-size:1.0625rem;line-height:26px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin-right:35px;margin-bottom:0;font-weight:400}}.hy-events__item__meta--item svg{width:20px;height:20px;margin-right:9px;margin-top:2px}@media (min-width: 48rem){.hy-events__item__meta--item svg{margin-top:1px}}.hy-events__item__date--short{font-size:0.9375rem;line-height:18px;display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--grayscale-white);background:var(--brand-main-light);font-family:var(--main-font-family);font-style:normal;font-weight:700;padding:6px 8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-align:center;letter-spacing:-0.28125px;text-decoration:none;margin-bottom:20px;margin-right:0}@media (min-width: 48rem){.hy-events__item__date--short{font-size:1.0625rem;line-height:20px;letter-spacing:-0.31875px;padding:0;height:68px;width:68px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:47px;margin-bottom:0}}.hy-events__item__url-icon{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;background:var(--brand-main-light);color:var(--grayscale-white);width:32px;height:32px;bottom:16px;right:-9px;z-index:1}@media (min-width: 48rem){.hy-events__item__url-icon{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events__item__url-icon svg{fill:currentColor}.hy-events__item__read-more{font-size:0.9375rem;line-height:18px;color:var(--brand-main-light);font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;letter-spacing:-0.28125px;margin-top:10px}@media (min-width: 48rem){.hy-events__item__read-more{display:none}}.hy-events__item--grid{padding:1rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-width:280px;max-width:100%;min-height:255px;position:relative;margin-bottom:0}@media (min-width: 48rem){.hy-events__item--grid{max-width:280px;padding:1rem 1rem 0 1rem}}.hy-events__item--grid.is-long{max-height:100%}@media (min-width: 48rem){.hy-events__item--grid.is-long{max-height:255px}}.hy-events__item--grid.is-long::after{display:none;content:"";background:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(#ffffff));background:linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);position:absolute;bottom:0;left:0;width:100%;height:36px}@media (min-width: 48rem){.hy-events__item--grid.is-long::after{display:block}}.hy-events__item--grid.is-long .hy-events__item--container{overflow:visible}@media (min-width: 48rem){.hy-events__item--grid.is-long .hy-events__item--container{overflow:hidden}}@media (min-width: 48rem){.hy-events__item--grid.is-long:hover,.hy-events__item--grid.is-long:focus-visible{border:0}}.hy-events__item--grid.is-long:hover::after,.hy-events__item--grid.is-long:hover .hy-events__item--toggle,.hy-events__item--grid.is-long:focus-visible::after,.hy-events__item--grid.is-long:focus-visible .hy-events__item--toggle{display:none}@media (min-width: 48rem){.hy-events__item--grid.is-long:hover .hy-events__item--container,.hy-events__item--grid.is-long:focus-visible .hy-events__item--container{background-color:var(--grayscale-white);border:1px solid var(--grayscale-light);padding:16px 16px;position:absolute;top:0;left:0;min-height:255px;overflow:visible}}.hy-events__item--grid .hy-events__item__title{font-size:1.125rem;line-height:24px;letter-spacing:-0.36px}.hy-events__item--grid .hy-events__item--toggle{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:var(--grayscale-light);border-radius:50%;position:absolute;top:16px;right:16px;width:24px;height:24px}@media (min-width: 48rem){.hy-events__item--grid .hy-events__item--toggle{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events__item--grid .hy-events__item__meta{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:9px}.hy-events__item--grid .hy-events__item__meta--item{font-size:0.9375rem;line-height:22px}.hy-events__item--grid .hy-events__item__date--short{padding:6px}@media (min-width: 48rem){.hy-events__item--grid .hy-events__item__date--short{font-size:0.9375rem;line-height:18px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:auto;font-weight:700;letter-spacing:-0.28125px;margin-bottom:18px}}';export{n as hy_event_item}
1
+ import{r as e,h as i,g as t}from"./index-61e707b7.js";const n=class{constructor(i){e(this,i),this.eventTitle=void 0,this.eventDescription="",this.dateShort="",this.dateLong="",this.location="",this.type=void 0,this.url=void 0,this.styleGrid=!1,this.readMoreLabel="Read more",this.isLong=!1}componentDidLoad(){this.styleGrid&&this.el.clientHeight>255&&(this.isLong=!0)}render(){const e=["hy-events__item",this.styleGrid?"hy-events__item--grid":"hy-events__item--list",this.isLong?"is-long":""].join(" ");return i("a",{key:"27855d59db1c516895b1e8e1126b299841d6bf30",href:this.url,class:e,target:"_blank"},i("div",{key:"0180826effa6544695c93d15132c8ed7abd129d1",class:"hy-events__item--container"},i("div",{key:"1c4e7129fba84f378f3e134e696c7d111be29664",class:"hy-events__item__top-container"},i("span",{key:"cf70d25654f16a0a89275c52208deef2cea716fb",class:"hy-events__item__date--short"},this.dateShort),this.isLong&&i("span",{key:"fa2ec45cab1b3656d4b55cef16103ae33727bcb6",class:"hy-events__item--toggle"},i("hy-icon",{key:"33c256daad8d9f6c1cc0609886819a7233ac0db5",icon:"hy-icon-caret-down",size:10}))),i("div",{key:"b018914a912ad18b6e275cf13e1ee3eb3b47e6ce",class:"hy-events__item__details"},i("div",{key:"21cfce58bdeefcd83cb1c196cb134c0b642d6d3d",class:"hy-events__item__title"},this.eventTitle),i("div",{key:"545d9ebf8a88558160fa83cd28b5532fabbce0db",class:"hy-events__item__meta"},this.dateLong&&i("div",{key:"2974c7acfc79b5ee951943136cd517e3dfc4ec76",class:"hy-events__item__meta--item hy-events__item__date--long"},i("hy-icon",{key:"c6f2554796051a507b43d5efaa9acc1409fa195f",icon:"hy-icon-events",size:18}),this.dateLong),this.location&&i("div",{key:"9890f7bed90305e5b6995744c938923f8d937b0a",class:"hy-events__item__meta--item hy-events__item__location"},i("hy-icon",{key:"548db99571870cea330663b624dd17f6f1bb0bc1",icon:"hy-icon-location",size:18}),this.location),this.type&&i("div",{key:"0deb9de0cd071f63451de96fbfccbd9171f7b476",class:"hy-events__item__meta--item hy-events__item__type"},i("hy-icon",{key:"9670dd3dabb475ecd514fa5d7fb4f2281aeb4d50",icon:"hy-icon-people",size:18}),this.type),i("span",{key:"eede93b4f5fa00cb2c75510d6c21c164f98cfde4",class:"hy-events__item__read-more"},this.readMoreLabel))),i("span",{key:"defe0a8aa40631f4dba9d74c54aaf370b2bec4e8",class:"hy-events__item__url-icon","aria-hidden":"true"},i("hy-icon",{key:"9ac0b9bf3667ac0885f68ba22028c513f5598909",icon:"hy-icon-arrow-right",size:18}))))}get el(){return t(this)}};n.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-events__item{display:-webkit-box;display:-ms-flexbox;display:flex;border:1px solid var(--grayscale-light);padding:13px 16px;position:relative;text-decoration:none;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;white-space:initial;margin-bottom:1rem}@media (min-width: 48rem){.hy-events__item{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;padding:47px;margin-bottom:1.75rem}}@media (min-width: 48rem){.hy-events__item:not(.hy-events__item--grid) .hy-events__item--container{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events__item:hover .hy-events__item__title{color:var(--brand-main);text-decoration:underline}.hy-events__item:hover .hy-events__item__date--short,.hy-events__item:hover .hy-events__item__url-icon{background-color:var(--brand-main-active)}.hy-events__item__title{font-size:1.125rem;line-height:24px;-webkit-box-orient:vertical;-webkit-line-clamp:6;color:var(--grayscale-black);display:-webkit-box;font-family:var(--main-font-family);font-weight:700;letter-spacing:-0.36px;line-clamp:6;margin-bottom:16px;overflow:hidden;text-overflow:ellipsis}@media (min-width: 48rem){.hy-events__item__title{font-size:1.375rem;line-height:28px;font-weight:700;font-size:22px;line-height:28px;letter-spacing:-0.44px;margin-bottom:14px}}.hy-events__item__details{font-family:var(--main-font-family);font-style:normal;font-weight:400;font-size:17px;line-height:26px;color:var(--grayscale-black)}.hy-events__item__meta{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}@media (min-width: 48rem){.hy-events__item__meta{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-events__item__meta--item{font-size:0.9375rem;line-height:22px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-right:0px;margin-bottom:9px;font-family:var(--main-font-family);font-weight:400;word-break:break-word}@media (min-width: 48rem){.hy-events__item__meta--item{font-size:1.0625rem;line-height:26px;-webkit-box-align:start;-ms-flex-align:start;align-items:flex-start;margin-right:35px;margin-bottom:0;font-weight:400}}.hy-events__item__meta--item svg{width:20px;height:20px;margin-right:9px;margin-top:2px}@media (min-width: 48rem){.hy-events__item__meta--item svg{margin-top:1px}}.hy-events__item__date--short{font-size:0.9375rem;line-height:18px;display:-webkit-box;display:-ms-flexbox;display:flex;color:var(--grayscale-white);background:var(--brand-main-light);font-family:var(--main-font-family);font-style:normal;font-weight:700;padding:6px 8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;text-align:center;letter-spacing:-0.28125px;text-decoration:none;margin-bottom:20px;margin-right:0}@media (min-width: 48rem){.hy-events__item__date--short{font-size:1.0625rem;line-height:20px;letter-spacing:-0.31875px;padding:0;height:68px;width:68px;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-right:47px;margin-bottom:0}}.hy-events__item__url-icon{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;position:absolute;background:var(--brand-main-light);color:var(--grayscale-white);width:32px;height:32px;bottom:16px;right:-9px;z-index:1}@media (min-width: 48rem){.hy-events__item__url-icon{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events__item__url-icon svg{fill:currentColor}.hy-events__item__read-more{font-size:0.9375rem;line-height:18px;color:var(--brand-main-light);font-weight:700;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;letter-spacing:-0.28125px;margin-top:10px}@media (min-width: 48rem){.hy-events__item__read-more{display:none}}.hy-events__item--grid{padding:1rem;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;min-width:280px;max-width:100%;min-height:255px;position:relative;margin-bottom:0}@media (min-width: 48rem){.hy-events__item--grid{max-width:280px;padding:1rem 1rem 0 1rem}}.hy-events__item--grid.is-long{max-height:100%}@media (min-width: 48rem){.hy-events__item--grid.is-long{max-height:255px}}.hy-events__item--grid.is-long::after{display:none;content:"";background:-webkit-gradient(linear, left top, left bottom, from(rgba(255, 255, 255, 0)), to(#ffffff));background:linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, #ffffff 100%);position:absolute;bottom:0;left:0;width:100%;height:36px}@media (min-width: 48rem){.hy-events__item--grid.is-long::after{display:block}}.hy-events__item--grid.is-long .hy-events__item--container{overflow:visible}@media (min-width: 48rem){.hy-events__item--grid.is-long .hy-events__item--container{overflow:hidden}}@media (min-width: 48rem){.hy-events__item--grid.is-long:hover,.hy-events__item--grid.is-long:focus-visible{border:0}}.hy-events__item--grid.is-long:hover::after,.hy-events__item--grid.is-long:hover .hy-events__item--toggle,.hy-events__item--grid.is-long:focus-visible::after,.hy-events__item--grid.is-long:focus-visible .hy-events__item--toggle{display:none}@media (min-width: 48rem){.hy-events__item--grid.is-long:hover .hy-events__item--container,.hy-events__item--grid.is-long:focus-visible .hy-events__item--container{background-color:var(--grayscale-white);border:1px solid var(--grayscale-light);padding:16px 16px;position:absolute;top:0;left:0;min-height:255px;overflow:visible}}.hy-events__item--grid .hy-events__item__title{font-size:1.125rem;line-height:24px;letter-spacing:-0.36px}.hy-events__item--grid .hy-events__item--toggle{display:none;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;background:var(--grayscale-light);border-radius:50%;position:absolute;top:16px;right:16px;width:24px;height:24px}@media (min-width: 48rem){.hy-events__item--grid .hy-events__item--toggle{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events__item--grid .hy-events__item__meta{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:9px}.hy-events__item--grid .hy-events__item__meta--item{font-size:0.9375rem;line-height:22px}.hy-events__item--grid .hy-events__item__date--short{padding:6px}@media (min-width: 48rem){.hy-events__item--grid .hy-events__item__date--short{font-size:0.9375rem;line-height:18px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;height:auto;font-weight:700;letter-spacing:-0.28125px;margin-bottom:18px}}';export{n as hy_event_item}
@@ -1 +1 @@
1
- import{r as e,h as t,g as i}from"./index-2ffe17c9.js";import{h as o}from"./utils-1e7f5184.js";let n=null,s=null;const r=class{constructor(t){e(this,t),this.styleGrid=!1,this.showMore=!1,this.viewAllUrl=void 0,this.viewAllLabel=void 0,this.scrollLeftLabel="Scroll list to left",this.scrollRightLabel="Scroll list to right",this.scrollable=!0}componentDidLoad(){const e=this.el,t=document.querySelector(".hy-events"),i=e.querySelector(".hy-events__scroll-left"),o=e.querySelector(".hy-events__scroll-right");this.styleGrid&&(t.addEventListener("scroll",(()=>{n=setTimeout((()=>{window.clearTimeout(n)}),250)}),!1),i.addEventListener("click",(e=>{e.preventDefault(),i.classList.add("is-disabled"),t.scrollBy({top:0,left:-304,behavior:"smooth"}),s=window.setTimeout((()=>{window.clearTimeout(s),i.classList.remove("is-disabled")}),250)})),o.addEventListener("click",(e=>{e.preventDefault(),o.classList.add("is-disabled"),t.scrollBy({top:0,left:304,behavior:"smooth"}),s=window.setTimeout((()=>{window.clearTimeout(s),o.classList.remove("is-disabled")}),250)})))}watchUrlHandler(e,t){t!==e&&(this.viewAllUrl=e)}checkScrollHidden(e,t,i){const o=e.querySelector(".hy-events__content");0===e.scrollLeft?t.classList.add("is-hidden"):t.classList.remove("is-hidden"),e.scrollLeft+e.clientWidth>=o.scrollWidth-1?i.classList.add("is-hidden"):i.classList.remove("is-hidden")}render(){const e=["hy-events",this.styleGrid?"hy-events--grid":""].join(" "),i=["hy-events__footer",this.styleGrid?"hy-events__footer--grid":""].join(" ");return t("div",{key:"e8bb63a5aaab6c005a89614eef8babf67043da62",class:"hy-events--wrapper"},t("div",{key:"8494025a4ce17f12f4ae409d4de97e85d5a37d61",class:e},t("slot",{key:"85517652e0cf83655744305b4f8bea218ef57542"})),t("div",{key:"75d19ac8c4c4be2f3fbd80538be5d2c7bfc903d7",class:i},this.scrollable&&this.styleGrid&&t("div",{key:"190e4c0d18b9dcf34de83069534c7fb408ea420b",class:"hy-events__scroll-buttons"},t("button",{key:"392de6a4361cb0f9cb946012b51eafad8f0e2247",type:"button",class:"hy-events__scroll-left","aria-label":this.scrollLeftLabel},t("hy-icon",{key:"043a8664e79786f4579dcb2f9e11c90b5067fb5c",icon:"hy-icon-caret-left",size:16})),t("button",{key:"33b9f282fba0ddffb77e1590174e3cdd4ed9e2ac",type:"button",class:"hy-events__scroll-right","aria-label":this.scrollRightLabel},t("hy-icon",{key:"af69bc715ccb8146f2b84dff79531bf59a471eb5",icon:"hy-icon-caret-right",size:16}))),this.showMore&&this.viewAllLabel&&this.viewAllUrl&&t("hy-cta-link",{key:"bb744cbee635dd7d25827ec0f1b752709a824ebc","link-content":this.viewAllLabel,"sc-label":this.viewAllLabel,url:this.viewAllUrl,variant:o.linkList})))}get el(){return i(this)}static get watchers(){return{viewAllUrl:["watchUrlHandler"]}}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}hy-events.no-events .hy-events__no-result-container{font-family:var(--main-font-family)}hy-events.no-events .hy-events--wrapper .hy-events--grid{padding-bottom:0}hy-events.no-events .hy-events__footer{display:none}.hy-events--wrapper .hy-events{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-events--wrapper .hy-events--grid{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:1.5rem;overflow-x:hidden;white-space:nowrap;scrollbar-width:none}@media (min-width: 48rem){.hy-events--wrapper .hy-events--grid{padding-bottom:14rem}}.hy-events--wrapper .hy-events--grid .hy-events__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:24px;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}@media (min-width: 48rem){.hy-events--wrapper .hy-events--grid .hy-events__content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-events--wrapper .hy-events__footer{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:2rem}.hy-events--wrapper .hy-events__footer--grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-top:1.5rem}@media (min-width: 48rem){.hy-events--wrapper .hy-events__footer--grid{margin-top:-9.5rem}}.hy-events--wrapper .hy-events__scroll-buttons{display:none;margin-top:2rem}@media (min-width: 48rem){.hy-events--wrapper .hy-events__scroll-buttons{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events--wrapper .hy-events__scroll-buttons button{border:none;background:none;padding:0.5rem}.hy-events--wrapper .hy-events__scroll-buttons button:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-events--wrapper .hy-events__scroll-buttons button:hover{cursor:pointer}.hy-events--wrapper .hy-events__scroll-buttons button:hover svg{scale:1.1}.hy-events--wrapper .hy-events__scroll-buttons button.is-hidden{display:none}.hy-events--wrapper .hy-events__scroll-buttons button.is-disabled{pointer-events:none}.hy-events--wrapper .hy-events__scroll-buttons button.is-disabled svg{fill:var(--link-disabled)}";export{r as hy_events}
1
+ import{r as e,h as t,g as i}from"./index-61e707b7.js";import{h as o}from"./utils-1e7f5184.js";let n=null,s=null;const r=class{constructor(t){e(this,t),this.styleGrid=!1,this.showMore=!1,this.viewAllUrl=void 0,this.viewAllLabel=void 0,this.scrollLeftLabel="Scroll list to left",this.scrollRightLabel="Scroll list to right",this.scrollable=!0}componentDidLoad(){const e=this.el,t=document.querySelector(".hy-events"),i=e.querySelector(".hy-events__scroll-left"),o=e.querySelector(".hy-events__scroll-right");this.styleGrid&&(t.addEventListener("scroll",(()=>{n=setTimeout((()=>{window.clearTimeout(n)}),250)}),!1),i.addEventListener("click",(e=>{e.preventDefault(),i.classList.add("is-disabled"),t.scrollBy({top:0,left:-304,behavior:"smooth"}),s=window.setTimeout((()=>{window.clearTimeout(s),i.classList.remove("is-disabled")}),250)})),o.addEventListener("click",(e=>{e.preventDefault(),o.classList.add("is-disabled"),t.scrollBy({top:0,left:304,behavior:"smooth"}),s=window.setTimeout((()=>{window.clearTimeout(s),o.classList.remove("is-disabled")}),250)})))}watchUrlHandler(e,t){t!==e&&(this.viewAllUrl=e)}checkScrollHidden(e,t,i){const o=e.querySelector(".hy-events__content");0===e.scrollLeft?t.classList.add("is-hidden"):t.classList.remove("is-hidden"),e.scrollLeft+e.clientWidth>=o.scrollWidth-1?i.classList.add("is-hidden"):i.classList.remove("is-hidden")}render(){const e=["hy-events",this.styleGrid?"hy-events--grid":""].join(" "),i=["hy-events__footer",this.styleGrid?"hy-events__footer--grid":""].join(" ");return t("div",{key:"e8bb63a5aaab6c005a89614eef8babf67043da62",class:"hy-events--wrapper"},t("div",{key:"8494025a4ce17f12f4ae409d4de97e85d5a37d61",class:e},t("slot",{key:"85517652e0cf83655744305b4f8bea218ef57542"})),t("div",{key:"75d19ac8c4c4be2f3fbd80538be5d2c7bfc903d7",class:i},this.scrollable&&this.styleGrid&&t("div",{key:"190e4c0d18b9dcf34de83069534c7fb408ea420b",class:"hy-events__scroll-buttons"},t("button",{key:"392de6a4361cb0f9cb946012b51eafad8f0e2247",type:"button",class:"hy-events__scroll-left","aria-label":this.scrollLeftLabel},t("hy-icon",{key:"043a8664e79786f4579dcb2f9e11c90b5067fb5c",icon:"hy-icon-caret-left",size:16})),t("button",{key:"33b9f282fba0ddffb77e1590174e3cdd4ed9e2ac",type:"button",class:"hy-events__scroll-right","aria-label":this.scrollRightLabel},t("hy-icon",{key:"af69bc715ccb8146f2b84dff79531bf59a471eb5",icon:"hy-icon-caret-right",size:16}))),this.showMore&&this.viewAllLabel&&this.viewAllUrl&&t("hy-cta-link",{key:"bb744cbee635dd7d25827ec0f1b752709a824ebc","link-content":this.viewAllLabel,"sc-label":this.viewAllLabel,url:this.viewAllUrl,variant:o.linkList})))}get el(){return i(this)}static get watchers(){return{viewAllUrl:["watchUrlHandler"]}}};r.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}hy-events.no-events .hy-events__no-result-container{font-family:var(--main-font-family)}hy-events.no-events .hy-events--wrapper .hy-events--grid{padding-bottom:0}hy-events.no-events .hy-events__footer{display:none}.hy-events--wrapper .hy-events{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}.hy-events--wrapper .hy-events--grid{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:1.5rem;overflow-x:hidden;white-space:nowrap;scrollbar-width:none}@media (min-width: 48rem){.hy-events--wrapper .hy-events--grid{padding-bottom:14rem}}.hy-events--wrapper .hy-events--grid .hy-events__content{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;gap:24px;-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}@media (min-width: 48rem){.hy-events--wrapper .hy-events--grid .hy-events__content{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-events--wrapper .hy-events__footer{-webkit-box-align:end;-ms-flex-align:end;align-items:flex-end;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:reverse;-ms-flex-direction:row-reverse;flex-direction:row-reverse;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;margin-bottom:2rem}.hy-events--wrapper .hy-events__footer--grid{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;margin-top:1.5rem}@media (min-width: 48rem){.hy-events--wrapper .hy-events__footer--grid{margin-top:-9.5rem}}.hy-events--wrapper .hy-events__scroll-buttons{display:none;margin-top:2rem}@media (min-width: 48rem){.hy-events--wrapper .hy-events__scroll-buttons{display:-webkit-box;display:-ms-flexbox;display:flex}}.hy-events--wrapper .hy-events__scroll-buttons button{border:none;background:none;padding:0.5rem}.hy-events--wrapper .hy-events__scroll-buttons button:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-events--wrapper .hy-events__scroll-buttons button:hover{cursor:pointer}.hy-events--wrapper .hy-events__scroll-buttons button:hover svg{scale:1.1}.hy-events--wrapper .hy-events__scroll-buttons button.is-hidden{display:none}.hy-events--wrapper .hy-events__scroll-buttons button.is-disabled{pointer-events:none}.hy-events--wrapper .hy-events__scroll-buttons button.is-disabled svg{fill:var(--link-disabled)}";export{r as hy_events}
@@ -1 +1 @@
1
- import{r as i,h as e,H as t}from"./index-2ffe17c9.js";import{C as r,n as l}from"./utils-1e7f5184.js";const o=class{constructor(e){i(this,e),this.filterGroupLabel=void 0,this.filterGroupFilters=void 0}arrayDataWatcher(i){this._filterGroupFilters="string"==typeof i?JSON.parse(i):i}componentWillLoad(){this.arrayDataWatcher(this.filterGroupFilters)}handleFilterDeselect(i){console.log(i)}render(){return e(t,{key:"03dbf4276196b64739ac42eadb2f35a6f9c6ccf0",class:"hy-filter-group"},e("ul",{key:"502d490d785d68b20e3c29e9914fca3c973c5c2d",class:"hy-filter-group__listing"},e("li",{key:"b397706f6a5f9ea123b558da8cd58d38a02ddbf9"},e("h3",{key:"27bb68af8077433df63e9466a32028a7186b461c",class:"hy-filter-group__label"},this.filterGroupLabel)),this._filterGroupFilters.map((({id:i,label:t})=>e("hy-filter-group-item",{"filter-group-item-id":i,"filter-group-item-label":t,onClick:()=>this.handleFilterDeselect(i)})))))}static get watchers(){return{filterGroupFilters:["arrayDataWatcher"]}}};o.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-filter-group{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.hy-filter-group__listing{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:0}.hy-filter-group__label{font-size:0.75rem;line-height:16px;border-radius:2px;color:var(--grayscale-dark);font-family:var(--main-font-family);font-weight:normal;letter-spacing:-0.2px;margin:8px 4px 8px 0;padding:4px 0}@media (min-width: 30rem){.hy-filter-group__label{font-size:0.875rem;line-height:16px;letter-spacing:-0.3px;padding:6px 0}}.hy-filter-group__button{font-size:0.75rem;line-height:16px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-background-box);border-radius:2px;border:0;color:var(--grayscale-dark);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:normal;letter-spacing:-0.2px;margin:8px 4px;padding:4px 6px}@media (min-width: 30rem){.hy-filter-group__button{font-size:0.875rem;line-height:16px;letter-spacing:-0.3px;padding:6px 8px}}.hy-filter-group__button:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter-group__button:hover{cursor:pointer}.hy-filter-group__button-icon{margin-left:6px}@media (min-width: 30rem){.hy-filter-group__button-icon{margin-left:8px}}.hy-filter-group__button-icon svg{pointer-events:none}@media (min-width: 30rem){.hy-filter-group__button-icon svg{height:12px;width:12px}}.hy-filter-group__divider{font-size:0.75rem;line-height:16px;color:var(--grayscale-dark);font-family:var(--main-font-family);margin:4px 6px}@media (min-width: 30rem){.hy-filter-group__divider{font-size:0.875rem;line-height:16px;letter-spacing:-0.3px}}";const a=class{constructor(e){i(this,e),this.filterGroupItemId=void 0,this.filterGroupItemLabel=void 0}render(){return e("li",{key:"8efb678b72cc7f9d304fcc4e282cfa2dea1c079a",class:"hy-filter-group__filter"},e("button",{key:"4120a9ca3bddf0916be95cd12c6cb963cb64512f",type:"button",class:"hy-filter-group__button","aria-label":`Deselect ${this.filterGroupItemLabel}`},this.filterGroupItemLabel,e("hy-icon",{key:"dc929c3c175eb2dfc18172525892831e58dfa5e5",class:"hy-filter-group__button-icon",icon:"hy-icon-remove",size:10,"aria-hidden":"true",fill:r.grey_dark})),e("slot",{key:"49cb39bc4553657839a9396e057bd85b7eab71fb"}))}},s=class{constructor(e){i(this,e),this.filterLabel=void 0,this.filterValue=void 0}render(){return e("div",{key:"f5d3ce9299a2e8f052c4660da4d62ecaa00eb561",class:"hy-filter__list-type"},e("span",{key:"e21896583c2790cc8799576ddf3fed60f1f19b43"},this.filterLabel),e("button",{key:"ab90f473319a0bb8f120d4f6abbe4ba387c83574",type:"button",class:{"hy-filter-item":!0,"hy-filter__list-type__list":!0,"is-active":this.filterValue==l.list},"aria-label":`${this.filterLabel}--list`},e("hy-icon",{key:"33d51e7f2837c4de3217d2776546b130594f24fd",class:"hy-filter-group__button-icon",icon:"hy-icon-list-style-list",size:16,"aria-hidden":"true"})),e("button",{key:"dcb3a2c3eab482b6bec2f6fae4d3823ba25309aa",type:"button",class:{"hy-filter-item":!0,"hy-filter__list-type__grid":!0,"is-active":this.filterValue==l.grid},"aria-label":`${this.filterLabel}--grid`},e("hy-icon",{key:"e785c5218d09771d8d064ac8c96dc2a17cb1c173",class:"hy-filter-group__button-icon",icon:"hy-icon-list-style-grid",size:16,"aria-hidden":"true"})))}};s.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-filter__list-type{display:none}@media (min-width: 60rem){.hy-filter__list-type{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-family:var(--main-font-family)}}@media (min-width: 60rem){.hy-filter__list-type span{font-size:0.875rem;line-height:18px;font-weight:600;color:var(--grayscale-black);letter-spacing:-0.5px;text-align:right}}@media (min-width: 1601px){.hy-filter__list-type span{font-size:1rem;line-height:20px}}.hy-filter__list-type__list{background:var(--grayscale-background-box);border:none;margin:0 8px;padding:10px}.hy-filter__list-type__list:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter__list-type__list svg{background-color:var(--grayscale-background-box);fill:var(--brand-main-light)}.hy-filter__list-type__list.is-active{background:white;border:black 1px solid}.hy-filter__list-type__list.is-active svg{background-color:var(--grayscale-white);fill:var(--grayscale-black)}.hy-filter__list-type__list:hover{cursor:pointer}.hy-filter__list-type__grid{background:var(--grayscale-background-box);border:none;padding:10px}.hy-filter__list-type__grid:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter__list-type__grid svg{background-color:var(--grayscale-background-box);fill:var(--brand-main-light)}.hy-filter__list-type__grid.is-active{background:white;border:black 1px solid}.hy-filter__list-type__grid.is-active svg{background-color:var(--grayscale-white);fill:var(--grayscale-black)}.hy-filter__list-type__grid:hover{cursor:pointer}";const n=class{constructor(e){i(this,e),this.filterVisibilityToolType=void 0}render(){switch(this.filterVisibilityToolType){case"toggle":return e(t,null,e("hy-filter-visibility-tool-toggle",null));case"reset":return e(t,null,e("hy-filter-visibility-tool-reset",null))}}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-filter-visibility-tool{font-size:0.875rem;line-height:20px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;border:0;color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;letter-spacing:-0.35px;padding:0;margin-right:1rem}@media (min-width: 30rem){.hy-filter-visibility-tool{font-size:1rem;line-height:20px;letter-spacing:-0.5px}}.hy-filter-visibility-tool:hover{color:var(--brand-main);cursor:pointer}.hy-filter-visibility-tool:hover svg{fill:var(--brand-main)}.hy-filter-visibility-tool:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter-visibility-tool:focus-visible{color:var(--brand-main)}.hy-filter-visibility-tool:focus-visible svg{fill:var(--brand-main)}.hy-filter-visibility-tool__icon{-ms-flex-negative:0;flex-shrink:0;margin-right:6px}.hy-filter-visibility-tool__icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-filter-visibility-tool__icon svg{height:16px;width:16px}}";const d=class{constructor(e){i(this,e)}render(){return e("button",{key:"481af1d3c9d57834e18cb21a98c5d2bf0bd194dc",class:"hy-filter-visibility-tool hy-filter-visibility-tool--reset",type:"button"},e("hy-icon",{key:"fba525d765c19ac420feac55117667d7307ea65b",class:"hy-filter-visibility-tool__icon",icon:"hy-icon-remove",size:14,"aria-hidden":"true"}),"Reset filters")}},b=class{constructor(e){i(this,e)}render(){return e(t,{key:"3e4b20a877a0ce588499fabc68c0054515f6da98"},e("button",{key:"181b801252d5de0b0cfa1657f9713ddabc2711c3",class:"hy-filter-visibility-tool hy-filter-visibility-tool--show-more",type:"button"},e("hy-icon",{key:"acb47e0b0a613b743ca3eeab7dda03f07079d756",class:"hy-filter-visibility-tool__icon",icon:"hy-icon-plus",size:12,"aria-hidden":"true"}),"Show more filters"),e("button",{key:"b8d2cd7c969718604af0c8ac4f1b626143e5cca1",class:"hy-filter-visibility-tool hy-filter-visibility-tool--show-less",type:"button"},e("hy-icon",{key:"d0f0b4b9d9965d7d1d8a92fc1fda60a2607e803e",class:"hy-filter-visibility-tool__icon",icon:"hy-icon-minus",size:12,"aria-hidden":"true"}),"Show less filters"))}};export{o as hy_filter_group,a as hy_filter_group_item,s as hy_filter_list_type,n as hy_filter_visibility_tool,d as hy_filter_visibility_tool_reset,b as hy_filter_visibility_tool_toggle}
1
+ import{r as i,h as e,H as t}from"./index-61e707b7.js";import{C as r,n as l}from"./utils-1e7f5184.js";const o=class{constructor(e){i(this,e),this.filterGroupLabel=void 0,this.filterGroupFilters=void 0}arrayDataWatcher(i){this._filterGroupFilters="string"==typeof i?JSON.parse(i):i}componentWillLoad(){this.arrayDataWatcher(this.filterGroupFilters)}handleFilterDeselect(i){console.log(i)}render(){return e(t,{key:"03dbf4276196b64739ac42eadb2f35a6f9c6ccf0",class:"hy-filter-group"},e("ul",{key:"502d490d785d68b20e3c29e9914fca3c973c5c2d",class:"hy-filter-group__listing"},e("li",{key:"b397706f6a5f9ea123b558da8cd58d38a02ddbf9"},e("h3",{key:"27bb68af8077433df63e9466a32028a7186b461c",class:"hy-filter-group__label"},this.filterGroupLabel)),this._filterGroupFilters.map((({id:i,label:t})=>e("hy-filter-group-item",{"filter-group-item-id":i,"filter-group-item-label":t,onClick:()=>this.handleFilterDeselect(i)})))))}static get watchers(){return{filterGroupFilters:["arrayDataWatcher"]}}};o.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-filter-group{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin-right:16px}.hy-filter-group__listing{-webkit-box-align:center;-ms-flex-align:center;align-items:center;display:-webkit-box;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;list-style:none;margin:0;padding:0}.hy-filter-group__label{font-size:0.75rem;line-height:16px;border-radius:2px;color:var(--grayscale-dark);font-family:var(--main-font-family);font-weight:normal;letter-spacing:-0.2px;margin:8px 4px 8px 0;padding:4px 0}@media (min-width: 30rem){.hy-filter-group__label{font-size:0.875rem;line-height:16px;letter-spacing:-0.3px;padding:6px 0}}.hy-filter-group__button{font-size:0.75rem;line-height:16px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:var(--grayscale-background-box);border-radius:2px;border:0;color:var(--grayscale-dark);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:normal;letter-spacing:-0.2px;margin:8px 4px;padding:4px 6px}@media (min-width: 30rem){.hy-filter-group__button{font-size:0.875rem;line-height:16px;letter-spacing:-0.3px;padding:6px 8px}}.hy-filter-group__button:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter-group__button:hover{cursor:pointer}.hy-filter-group__button-icon{margin-left:6px}@media (min-width: 30rem){.hy-filter-group__button-icon{margin-left:8px}}.hy-filter-group__button-icon svg{pointer-events:none}@media (min-width: 30rem){.hy-filter-group__button-icon svg{height:12px;width:12px}}.hy-filter-group__divider{font-size:0.75rem;line-height:16px;color:var(--grayscale-dark);font-family:var(--main-font-family);margin:4px 6px}@media (min-width: 30rem){.hy-filter-group__divider{font-size:0.875rem;line-height:16px;letter-spacing:-0.3px}}";const a=class{constructor(e){i(this,e),this.filterGroupItemId=void 0,this.filterGroupItemLabel=void 0}render(){return e("li",{key:"8efb678b72cc7f9d304fcc4e282cfa2dea1c079a",class:"hy-filter-group__filter"},e("button",{key:"4120a9ca3bddf0916be95cd12c6cb963cb64512f",type:"button",class:"hy-filter-group__button","aria-label":`Deselect ${this.filterGroupItemLabel}`},this.filterGroupItemLabel,e("hy-icon",{key:"dc929c3c175eb2dfc18172525892831e58dfa5e5",class:"hy-filter-group__button-icon",icon:"hy-icon-remove",size:10,"aria-hidden":"true",fill:r.grey_dark})),e("slot",{key:"49cb39bc4553657839a9396e057bd85b7eab71fb"}))}},s=class{constructor(e){i(this,e),this.filterLabel=void 0,this.filterValue=void 0}render(){return e("div",{key:"f5d3ce9299a2e8f052c4660da4d62ecaa00eb561",class:"hy-filter__list-type"},e("span",{key:"e21896583c2790cc8799576ddf3fed60f1f19b43"},this.filterLabel),e("button",{key:"ab90f473319a0bb8f120d4f6abbe4ba387c83574",type:"button",class:{"hy-filter-item":!0,"hy-filter__list-type__list":!0,"is-active":this.filterValue==l.list},"aria-label":`${this.filterLabel}--list`},e("hy-icon",{key:"33d51e7f2837c4de3217d2776546b130594f24fd",class:"hy-filter-group__button-icon",icon:"hy-icon-list-style-list",size:16,"aria-hidden":"true"})),e("button",{key:"dcb3a2c3eab482b6bec2f6fae4d3823ba25309aa",type:"button",class:{"hy-filter-item":!0,"hy-filter__list-type__grid":!0,"is-active":this.filterValue==l.grid},"aria-label":`${this.filterLabel}--grid`},e("hy-icon",{key:"e785c5218d09771d8d064ac8c96dc2a17cb1c173",class:"hy-filter-group__button-icon",icon:"hy-icon-list-style-grid",size:16,"aria-hidden":"true"})))}};s.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-filter__list-type{display:none}@media (min-width: 60rem){.hy-filter__list-type{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;font-family:var(--main-font-family)}}@media (min-width: 60rem){.hy-filter__list-type span{font-size:0.875rem;line-height:18px;font-weight:600;color:var(--grayscale-black);letter-spacing:-0.5px;text-align:right}}@media (min-width: 1601px){.hy-filter__list-type span{font-size:1rem;line-height:20px}}.hy-filter__list-type__list{background:var(--grayscale-background-box);border:none;margin:0 8px;padding:10px}.hy-filter__list-type__list:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter__list-type__list svg{background-color:var(--grayscale-background-box);fill:var(--brand-main-light)}.hy-filter__list-type__list.is-active{background:white;border:black 1px solid}.hy-filter__list-type__list.is-active svg{background-color:var(--grayscale-white);fill:var(--grayscale-black)}.hy-filter__list-type__list:hover{cursor:pointer}.hy-filter__list-type__grid{background:var(--grayscale-background-box);border:none;padding:10px}.hy-filter__list-type__grid:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter__list-type__grid svg{background-color:var(--grayscale-background-box);fill:var(--brand-main-light)}.hy-filter__list-type__grid.is-active{background:white;border:black 1px solid}.hy-filter__list-type__grid.is-active svg{background-color:var(--grayscale-white);fill:var(--grayscale-black)}.hy-filter__list-type__grid:hover{cursor:pointer}";const n=class{constructor(e){i(this,e),this.filterVisibilityToolType=void 0}render(){switch(this.filterVisibilityToolType){case"toggle":return e(t,null,e("hy-filter-visibility-tool-toggle",null));case"reset":return e(t,null,e("hy-filter-visibility-tool-reset",null))}}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}.hy-filter-visibility-tool{font-size:0.875rem;line-height:20px;-webkit-box-align:center;-ms-flex-align:center;align-items:center;background-color:transparent;border:0;color:var(--link-blue);display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;font-family:var(--main-font-family);font-weight:600;letter-spacing:-0.35px;padding:0;margin-right:1rem}@media (min-width: 30rem){.hy-filter-visibility-tool{font-size:1rem;line-height:20px;letter-spacing:-0.5px}}.hy-filter-visibility-tool:hover{color:var(--brand-main);cursor:pointer}.hy-filter-visibility-tool:hover svg{fill:var(--brand-main)}.hy-filter-visibility-tool:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}.hy-filter-visibility-tool:focus-visible{color:var(--brand-main)}.hy-filter-visibility-tool:focus-visible svg{fill:var(--brand-main)}.hy-filter-visibility-tool__icon{-ms-flex-negative:0;flex-shrink:0;margin-right:6px}.hy-filter-visibility-tool__icon svg{fill:var(--link-blue)}@media (min-width: 30rem){.hy-filter-visibility-tool__icon svg{height:16px;width:16px}}";const d=class{constructor(e){i(this,e)}render(){return e("button",{key:"481af1d3c9d57834e18cb21a98c5d2bf0bd194dc",class:"hy-filter-visibility-tool hy-filter-visibility-tool--reset",type:"button"},e("hy-icon",{key:"fba525d765c19ac420feac55117667d7307ea65b",class:"hy-filter-visibility-tool__icon",icon:"hy-icon-remove",size:14,"aria-hidden":"true"}),"Reset filters")}},b=class{constructor(e){i(this,e)}render(){return e(t,{key:"3e4b20a877a0ce588499fabc68c0054515f6da98"},e("button",{key:"181b801252d5de0b0cfa1657f9713ddabc2711c3",class:"hy-filter-visibility-tool hy-filter-visibility-tool--show-more",type:"button"},e("hy-icon",{key:"acb47e0b0a613b743ca3eeab7dda03f07079d756",class:"hy-filter-visibility-tool__icon",icon:"hy-icon-plus",size:12,"aria-hidden":"true"}),"Show more filters"),e("button",{key:"b8d2cd7c969718604af0c8ac4f1b626143e5cca1",class:"hy-filter-visibility-tool hy-filter-visibility-tool--show-less",type:"button"},e("hy-icon",{key:"d0f0b4b9d9965d7d1d8a92fc1fda60a2607e803e",class:"hy-filter-visibility-tool__icon",icon:"hy-icon-minus",size:12,"aria-hidden":"true"}),"Show less filters"))}};export{o as hy_filter_group,a as hy_filter_group_item,s as hy_filter_list_type,n as hy_filter_visibility_tool,d as hy_filter_visibility_tool_reset,b as hy_filter_visibility_tool_toggle}
@@ -1 +1 @@
1
- import{r as e,h as i,H as t,g as a}from"./index-2ffe17c9.js";import{G as l}from"./utils-1e7f5184.js";import{j as r}from"./globalScript-3f479486.js";const n=class{constructor(i){e(this,i),this.type=l.list,this.blank=!0,this.dataItems=void 0,this.truncateDescription=!0,this.truncateLimit=140,this.hasSidebar=!1}async componentWillLoad(){this._dataItems=await r(this.dataItems);const e=this.el.closest(".hy-main");e&&e.classList.contains("with-sidebar")&&(this.hasSidebar=!0)}async watchPropHandler(e,i){e!==i&&(this._dataItems=await r(this.dataItems))}render(){const e=["hy-general-list",this.hasSidebar?"hy-general-list--with-sidebar":"",`hy-general-list--style-${this.type}`].join(" ");let a=this._dataItems;return"object"==typeof this._dataItems&&(a=Object.values(this._dataItems)),i(t,null,i("ul",{class:e},a&&a.map((e=>{return i("li",null,i("hy-general-list-item",{"has-sidebar":this.hasSidebar,target:this.blank,"data-location":e.url,description:this.truncateDescription?(t=e.description,a=this.truncateLimit,t&&t.length>a?t.substr(0,a-1)+"...":t):e.description,id:e.id,imageAlt:e.imageAlt,imageUrl:e.imageUrl,"item-title":e.title,label:e.label,"sub-label":e.subLabel,tag:e.tag,date:e.date,type:e.type,url:e.url,"list-style":this.type}));var t,a}))),i("hy-box",{mb:"1.75, 1.75, 2, 2.5"}))}get el(){return a(this)}static get watchers(){return{dataItems:["watchPropHandler"]}}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-general-list{list-style:none;margin:0;padding:0}.hy-general-list--style-grid{display:-webkit-box;display:-ms-flexbox;display:flex;display:grid;gap:32px 0}@media screen and (min-width: 768px){.hy-general-list--style-grid{grid-template-columns:repeat(2, 1fr);gap:32px 24px}}@media screen and (min-width: 1024px){.hy-general-list--style-grid{grid-template-columns:repeat(3, 1fr)}}@media screen and (min-width: 1920px){.hy-general-list--style-grid{gap:32px}}.hy-general-list--style-grid li{background-color:var(--grayscale-background-box);width:100%;height:auto}";const s=class{constructor(i){e(this,i),this.hasSidebar=!0,this.description=void 0,this.imageAlt="",this.imageUrl=null,this.disableLazy=!1,this.itemTitle=void 0,this.label=void 0,this.subLabel="",this.date="",this.tag="",this.type=void 0,this.url=void 0,this.listStyle=void 0,this.target=!0}render(){const e=["hy-general-list-item",`hy-general-list-item--style-${this.listStyle}`].join(" "),t=["hy-general-list-item__text-container"].join(" "),a=["hy-general-list-item__image-container"].join(" "),l=this.hasSidebar?"common":"large",r=["hy-general-list-item__title",`hy-general-list-item__title__${l}`].join(" "),n=["hy-general-list-item__description",`hy-general-list-item__description__${l}`].join(" ");return i("article",{key:"999af76d95db5284c7d255dfa56f0cb57d162863",class:e},i("a",{key:"9ae2d5879a9fe4a9931af79456d91a34fa886efc",class:"hy-general-list-item__link",href:this.url,target:this.target?"_blank":"_self"},this.type&&i("div",{key:"c945d8bf1ce1baa35235827a7072ad75cd1842d0",class:"hy-general-list-item__type"},i("span",{key:"008ee7fce6e14b9b9307cbb58284183eca9c59a3",class:"hy-general-list-item__type__major"},this.label),i("span",{key:"cc78e8b22bd2fb7d642ffab7c2f08d8046a8fa45",class:"hy-general-list-item__type__sub"},this.subLabel)),this.imageUrl&&i("figure",{key:"30af192f233c4a5de78f9e85c02ce83e1844f026",class:a,style:{"--aspectRatio":"62.5%"}},i("img",{key:"0e47919ea85a36137af51598bd6b7044f49a916d",loading:this.disableLazy?"eager":"lazy",alt:this.imageAlt,class:"hy-general-list-item__image",src:this.imageUrl})),i("div",{key:"ff1ff0b21dc466d160cd2690a146beb9e6e491af",class:t},(this.tag||this.date)&&i("span",{key:"f7a7ccba65ebe8923a3c1b96996d43f266ddd780",class:"hy-genenral-list-item__meta"},this.tag,i("span",{key:"ebe2215d552a5d8f298f3497666a1d3dc645cbaa",class:"hy-genenral-list-item__meta__date"},this.tag&&"|"," ",this.date)),i("h3",{key:"59e9357acb67485262561e6517defb568af9b4a2",class:r,innerHTML:this.itemTitle}),i("p",{key:"fa6ca0b4653a9f32e5ab8336617eb2f2510af353",class:n,innerHTML:this.description}))))}get el(){return a(this)}};s.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block;height:100%}.hy-general-list-item{font-family:var(--main-font-family);margin-bottom:1rem;height:100%}.hy-general-list-item--style-grid .hy-general-list-item__link{height:100%}@media (min-width: 30rem){.hy-general-list-item--style-grid .hy-general-list-item__link{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.hy-general-list-item--style-grid .hy-general-list-item__image-container{border:1px solid var(--grayscale-light);max-width:100%}@media (max-width: 479px){.hy-general-list-item--style-grid .hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex}}@media (min-width: 60rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}@media (min-width: 75.0625rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}.hy-genenral-list-item__meta{font-size:0.75rem;line-height:14px;font-weight:600;color:var(--grayscale-dark);font-family:var(--main-font-family);letter-spacing:-0.1px;text-transform:uppercase;margin:9px 0}.hy-genenral-list-item__meta__date{font-weight:400;margin-left:4px}.hy-general-list-item__link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;text-decoration:none}.hy-general-list-item__link:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}@media (min-width: 30rem){.hy-general-list-item__link{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-general-list-item__link:hover{cursor:pointer}.hy-general-list-item__link:hover .hy-general-list-item__type span,.hy-general-list-item__link:focus-visible .hy-general-list-item__type span{background-color:var(--brand-main)}.hy-general-list-item__link:hover .hy-general-list-item__title,.hy-general-list-item__link:focus-visible .hy-general-list-item__title{color:var(--brand-main);text-decoration:underline}.hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin:0;position:relative;width:100%}@media (max-width: 479px){.hy-general-list-item__image-container{display:none}}@media (min-width: 30rem){.hy-general-list-item__image-container{max-width:35.7%}}@media (min-width: 60rem){.hy-general-list-item__image-container{max-width:23.13%}}@media (min-width: 75.0625rem){.hy-general-list-item__image-container{max-width:23.03%}}.hy-general-list-item__image-container:before{content:"";display:block;padding-top:var(--aspectRatio)}.hy-general-list-item__image-container img{bottom:0;height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:0;width:100%}.hy-general-list-item__image{background-color:var(--grayscale-light);width:100%;height:100%}.hy-general-list-item__type{background-color:var(--grayscale-background-box);padding-top:16px;z-index:10}@media (min-width: 30rem){.hy-general-list-item__type{background-color:transparent;left:-8px;padding-top:0;position:absolute;top:16px}}.hy-general-list-item__type__major{font-size:0.75rem;line-height:14px;font-weight:700;background-color:var(--grayscale-black);color:var(--grayscale-white);letter-spacing:-0.1px;padding:5px 8px;text-transform:uppercase;-ms-flex-item-align:baseline;align-self:baseline;margin-left:-8px}@media (min-width: 30rem){.hy-general-list-item__type__major{margin-left:0}}.hy-general-list-item__type__sub{font-size:0.75rem;line-height:14px;background-color:var(--grayscale-black);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.1px;padding:5px 8px;margin-left:-8px}.hy-general-list-item__text-container{background-color:var(--grayscale-background-box);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:16px 12px}@media (min-width: 60rem){.hy-general-list-item__text-container{padding:14px 32px 24px 24px}}@media (min-width: 75.0625rem){.hy-general-list-item__text-container{padding:20px 104px 32px 32px}}.hy-general-list-item__title{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-heading);font-size:var(--ds-fontSize-20);font-weight:var(--ds-fontWeight-semiboldPlus);letter-spacing:var(--ds-letterSpacing-normal);line-height:28px;-ms-hyphens:auto;hyphens:auto;text-transform:none;text-wrap:balance;margin-bottom:8px;margin-top:0;text-wrap:balance}@media (min-width: 60rem){.hy-general-list-item__title{font-size:var(--ds-fontSize-24);line-height:24px}}@media (min-width: 75.0625rem){.hy-general-list-item__title__large{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-heading);font-size:var(--ds-fontSize-20);font-weight:var(--ds-fontWeight-semiboldPlus);letter-spacing:var(--ds-letterSpacing-normal);line-height:28px;-ms-hyphens:auto;hyphens:auto;text-transform:none;text-wrap:balance}}@media (min-width: 75.0625rem) and (min-width: 60rem){.hy-general-list-item__title__large{font-size:var(--ds-fontSize-24);line-height:24px}}.hy-general-list-item__description{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-body);font-size:var(--ds-fontSize-14);font-weight:var(--ds-fontWeight-regular);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large);-ms-hyphens:auto;hyphens:auto;text-wrap:pretty;display:none;margin:0}@media (min-width: 60rem){.hy-general-list-item__description{font-size:var(--ds-fontSize-16)}}@media (min-width: 30rem){.hy-general-list-item__description{display:block}}@media (min-width: 75.0625rem){.hy-general-list-item__description__large{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-body);font-size:var(--ds-fontSize-14);font-weight:var(--ds-fontWeight-regular);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large);-ms-hyphens:auto;hyphens:auto;text-wrap:pretty}}@media (min-width: 75.0625rem) and (min-width: 60rem){.hy-general-list-item__description__large{font-size:var(--ds-fontSize-16)}}';export{n as hy_general_list,s as hy_general_list_item}
1
+ import{r as e,h as i,H as t,g as a}from"./index-61e707b7.js";import{G as l}from"./utils-1e7f5184.js";import{j as r}from"./globalScript-326c6753.js";const n=class{constructor(i){e(this,i),this.type=l.list,this.blank=!0,this.dataItems=void 0,this.truncateDescription=!0,this.truncateLimit=140,this.hasSidebar=!1}async componentWillLoad(){this._dataItems=await r(this.dataItems);const e=this.el.closest(".hy-main");e&&e.classList.contains("with-sidebar")&&(this.hasSidebar=!0)}async watchPropHandler(e,i){e!==i&&(this._dataItems=await r(this.dataItems))}render(){const e=["hy-general-list",this.hasSidebar?"hy-general-list--with-sidebar":"",`hy-general-list--style-${this.type}`].join(" ");let a=this._dataItems;return"object"==typeof this._dataItems&&(a=Object.values(this._dataItems)),i(t,null,i("ul",{class:e},a&&a.map((e=>{return i("li",null,i("hy-general-list-item",{"has-sidebar":this.hasSidebar,target:this.blank,"data-location":e.url,description:this.truncateDescription?(t=e.description,a=this.truncateLimit,t&&t.length>a?t.substr(0,a-1)+"...":t):e.description,id:e.id,imageAlt:e.imageAlt,imageUrl:e.imageUrl,"item-title":e.title,label:e.label,"sub-label":e.subLabel,tag:e.tag,date:e.date,type:e.type,url:e.url,"list-style":this.type}));var t,a}))),i("hy-box",{mb:"1.75, 1.75, 2, 2.5"}))}get el(){return a(this)}static get watchers(){return{dataItems:["watchPropHandler"]}}};n.style="*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block}.hy-general-list{list-style:none;margin:0;padding:0}.hy-general-list--style-grid{display:-webkit-box;display:-ms-flexbox;display:flex;display:grid;gap:32px 0}@media screen and (min-width: 768px){.hy-general-list--style-grid{grid-template-columns:repeat(2, 1fr);gap:32px 24px}}@media screen and (min-width: 1024px){.hy-general-list--style-grid{grid-template-columns:repeat(3, 1fr)}}@media screen and (min-width: 1920px){.hy-general-list--style-grid{gap:32px}}.hy-general-list--style-grid li{background-color:var(--grayscale-background-box);width:100%;height:auto}";const s=class{constructor(i){e(this,i),this.hasSidebar=!0,this.description=void 0,this.imageAlt="",this.imageUrl=null,this.disableLazy=!1,this.itemTitle=void 0,this.label=void 0,this.subLabel="",this.date="",this.tag="",this.type=void 0,this.url=void 0,this.listStyle=void 0,this.target=!0}render(){const e=["hy-general-list-item",`hy-general-list-item--style-${this.listStyle}`].join(" "),t=["hy-general-list-item__text-container"].join(" "),a=["hy-general-list-item__image-container"].join(" "),l=this.hasSidebar?"common":"large",r=["hy-general-list-item__title",`hy-general-list-item__title__${l}`].join(" "),n=["hy-general-list-item__description",`hy-general-list-item__description__${l}`].join(" ");return i("article",{key:"999af76d95db5284c7d255dfa56f0cb57d162863",class:e},i("a",{key:"9ae2d5879a9fe4a9931af79456d91a34fa886efc",class:"hy-general-list-item__link",href:this.url,target:this.target?"_blank":"_self"},this.type&&i("div",{key:"c945d8bf1ce1baa35235827a7072ad75cd1842d0",class:"hy-general-list-item__type"},i("span",{key:"008ee7fce6e14b9b9307cbb58284183eca9c59a3",class:"hy-general-list-item__type__major"},this.label),i("span",{key:"cc78e8b22bd2fb7d642ffab7c2f08d8046a8fa45",class:"hy-general-list-item__type__sub"},this.subLabel)),this.imageUrl&&i("figure",{key:"30af192f233c4a5de78f9e85c02ce83e1844f026",class:a,style:{"--aspectRatio":"62.5%"}},i("img",{key:"0e47919ea85a36137af51598bd6b7044f49a916d",loading:this.disableLazy?"eager":"lazy",alt:this.imageAlt,class:"hy-general-list-item__image",src:this.imageUrl})),i("div",{key:"ff1ff0b21dc466d160cd2690a146beb9e6e491af",class:t},(this.tag||this.date)&&i("span",{key:"f7a7ccba65ebe8923a3c1b96996d43f266ddd780",class:"hy-genenral-list-item__meta"},this.tag,i("span",{key:"ebe2215d552a5d8f298f3497666a1d3dc645cbaa",class:"hy-genenral-list-item__meta__date"},this.tag&&"|"," ",this.date)),i("h3",{key:"59e9357acb67485262561e6517defb568af9b4a2",class:r,innerHTML:this.itemTitle}),i("p",{key:"fa6ca0b4653a9f32e5ab8336617eb2f2510af353",class:n,innerHTML:this.description}))))}get el(){return a(this)}};s.style='*{-webkit-box-sizing:border-box;box-sizing:border-box}:host{display:block;height:100%}.hy-general-list-item{font-family:var(--main-font-family);margin-bottom:1rem;height:100%}.hy-general-list-item--style-grid .hy-general-list-item__link{height:100%}@media (min-width: 30rem){.hy-general-list-item--style-grid .hy-general-list-item__link{-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column}}.hy-general-list-item--style-grid .hy-general-list-item__image-container{border:1px solid var(--grayscale-light);max-width:100%}@media (max-width: 479px){.hy-general-list-item--style-grid .hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex}}@media (min-width: 60rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}@media (min-width: 75.0625rem){.hy-general-list-item--style-grid .hy-general-list-item__text-container{padding:12px 12px 32px 12px}}.hy-genenral-list-item__meta{font-size:0.75rem;line-height:14px;font-weight:600;color:var(--grayscale-dark);font-family:var(--main-font-family);letter-spacing:-0.1px;text-transform:uppercase;margin:9px 0}.hy-genenral-list-item__meta__date{font-weight:400;margin-left:4px}.hy-general-list-item__link{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;text-decoration:none}.hy-general-list-item__link:focus-visible{-webkit-box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);box-shadow:0 0 0 var(--ds-borderWidth-thin) var(--ds-borderColor-white);outline:var(--ds-borderWidth-thin) solid var(--ds-borderColor-black);outline-offset:calc(var(--ds-borderWidth-thin) * 1)}@media (min-width: 30rem){.hy-general-list-item__link{-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row}}.hy-general-list-item__link:hover{cursor:pointer}.hy-general-list-item__link:hover .hy-general-list-item__type span,.hy-general-list-item__link:focus-visible .hy-general-list-item__type span{background-color:var(--brand-main)}.hy-general-list-item__link:hover .hy-general-list-item__title,.hy-general-list-item__link:focus-visible .hy-general-list-item__title{color:var(--brand-main);text-decoration:underline}.hy-general-list-item__image-container{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:stretch;-ms-flex-pack:stretch;justify-content:stretch;margin:0;position:relative;width:100%}@media (max-width: 479px){.hy-general-list-item__image-container{display:none}}@media (min-width: 30rem){.hy-general-list-item__image-container{max-width:35.7%}}@media (min-width: 60rem){.hy-general-list-item__image-container{max-width:23.13%}}@media (min-width: 75.0625rem){.hy-general-list-item__image-container{max-width:23.03%}}.hy-general-list-item__image-container:before{content:"";display:block;padding-top:var(--aspectRatio)}.hy-general-list-item__image-container img{bottom:0;height:100%;left:0;-o-object-fit:cover;object-fit:cover;position:absolute;right:0;top:0;width:100%}.hy-general-list-item__image{background-color:var(--grayscale-light);width:100%;height:100%}.hy-general-list-item__type{background-color:var(--grayscale-background-box);padding-top:16px;z-index:10}@media (min-width: 30rem){.hy-general-list-item__type{background-color:transparent;left:-8px;padding-top:0;position:absolute;top:16px}}.hy-general-list-item__type__major{font-size:0.75rem;line-height:14px;font-weight:700;background-color:var(--grayscale-black);color:var(--grayscale-white);letter-spacing:-0.1px;padding:5px 8px;text-transform:uppercase;-ms-flex-item-align:baseline;align-self:baseline;margin-left:-8px}@media (min-width: 30rem){.hy-general-list-item__type__major{margin-left:0}}.hy-general-list-item__type__sub{font-size:0.75rem;line-height:14px;background-color:var(--grayscale-black);color:var(--grayscale-white);font-family:var(--main-font-family);letter-spacing:-0.1px;padding:5px 8px;margin-left:-8px}.hy-general-list-item__text-container{background-color:var(--grayscale-background-box);display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;padding:16px 12px}@media (min-width: 60rem){.hy-general-list-item__text-container{padding:14px 32px 24px 24px}}@media (min-width: 75.0625rem){.hy-general-list-item__text-container{padding:20px 104px 32px 32px}}.hy-general-list-item__title{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-heading);font-size:var(--ds-fontSize-20);font-weight:var(--ds-fontWeight-semiboldPlus);letter-spacing:var(--ds-letterSpacing-normal);line-height:28px;-ms-hyphens:auto;hyphens:auto;text-transform:none;text-wrap:balance;margin-bottom:8px;margin-top:0;text-wrap:balance}@media (min-width: 60rem){.hy-general-list-item__title{font-size:var(--ds-fontSize-24);line-height:24px}}@media (min-width: 75.0625rem){.hy-general-list-item__title__large{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-heading);font-size:var(--ds-fontSize-20);font-weight:var(--ds-fontWeight-semiboldPlus);letter-spacing:var(--ds-letterSpacing-normal);line-height:28px;-ms-hyphens:auto;hyphens:auto;text-transform:none;text-wrap:balance}}@media (min-width: 75.0625rem) and (min-width: 60rem){.hy-general-list-item__title__large{font-size:var(--ds-fontSize-24);line-height:24px}}.hy-general-list-item__description{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-body);font-size:var(--ds-fontSize-14);font-weight:var(--ds-fontWeight-regular);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large);-ms-hyphens:auto;hyphens:auto;text-wrap:pretty;display:none;margin:0}@media (min-width: 60rem){.hy-general-list-item__description{font-size:var(--ds-fontSize-16)}}@media (min-width: 30rem){.hy-general-list-item__description{display:block}}@media (min-width: 75.0625rem){.hy-general-list-item__description__large{color:var(--ds-palette-black-95);font-family:var(--ds-fontFamily-body);font-size:var(--ds-fontSize-14);font-weight:var(--ds-fontWeight-regular);letter-spacing:var(--ds-letterSpacing-wide);line-height:var(--ds-lineHeight-large);-ms-hyphens:auto;hyphens:auto;text-wrap:pretty}}@media (min-width: 75.0625rem) and (min-width: 60rem){.hy-general-list-item__description__large{font-size:var(--ds-fontSize-16)}}';export{n as hy_general_list,s as hy_general_list_item}