@oiz/stzh-components 2.5.0-alpha-carousel → 2.5.0-alpha

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 (847) hide show
  1. package/dist/cjs/{app-globals-d7bd37fe.js → app-globals-0c3558c0.js} +1 -1
  2. package/dist/cjs/loader.cjs.js +2 -2
  3. package/dist/cjs/overlay-utils-00d640c8.js +19 -0
  4. package/dist/cjs/stzh-accordion-item.cjs.entry.js +36 -2
  5. package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
  6. package/dist/cjs/stzh-actions.cjs.entry.js +1 -1
  7. package/dist/cjs/stzh-actionset.cjs.entry.js +1 -1
  8. package/dist/cjs/stzh-anchornav.cjs.entry.js +1 -1
  9. package/dist/cjs/stzh-appnav.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-audio.cjs.entry.js +1 -1
  12. package/dist/cjs/stzh-badge_3.cjs.entry.js +12 -4
  13. package/dist/cjs/stzh-buttongroup.cjs.entry.js +23 -0
  14. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  15. package/dist/cjs/stzh-card_3.cjs.entry.js +12 -10
  16. package/dist/cjs/stzh-carousel.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-cell.cjs.entry.js +1 -1
  18. package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-checkbox.cjs.entry.js +11 -3
  20. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +1 -1
  21. package/dist/cjs/stzh-chip_2.cjs.entry.js +11 -3
  22. package/dist/cjs/stzh-components.cjs.js +2 -2
  23. package/dist/cjs/stzh-contact.cjs.entry.js +1 -1
  24. package/dist/cjs/stzh-container.cjs.entry.js +1 -1
  25. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  26. package/dist/cjs/stzh-datalist_2.cjs.entry.js +25 -9
  27. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +15 -6
  28. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-datatable.cjs.entry.js +1 -1
  30. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +19 -6
  31. package/dist/cjs/stzh-details.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-dialog.cjs.entry.js +3 -5
  33. package/dist/cjs/stzh-dropdown.cjs.entry.js +14 -3
  34. package/dist/cjs/stzh-fieldset.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-figure.cjs.entry.js +1 -1
  36. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +4 -2
  37. package/dist/cjs/stzh-footer.cjs.entry.js +1 -1
  38. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +3 -3
  39. package/dist/cjs/stzh-header.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  42. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  43. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +2 -2
  44. package/dist/cjs/stzh-input.cjs.entry.js +10 -3
  45. package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
  46. package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-link.cjs.entry.js +10 -2
  48. package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
  49. package/dist/cjs/stzh-list.cjs.entry.js +1 -1
  50. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  51. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
  52. package/dist/cjs/stzh-menu_2.cjs.entry.js +11 -3
  53. package/dist/cjs/stzh-message.cjs.entry.js +2 -2
  54. package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-olmap.cjs.entry.js +53 -7
  57. package/dist/cjs/stzh-overlay.cjs.entry.js +3 -5
  58. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-pagebottom.cjs.entry.js +1 -1
  60. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-pagetitle.cjs.entry.js +1 -1
  62. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  64. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +1 -1
  65. package/dist/cjs/stzh-progressbar.cjs.entry.js +1 -1
  66. package/dist/cjs/stzh-ratio.cjs.entry.js +1 -1
  67. package/dist/cjs/stzh-readspeaker.cjs.entry.js +1 -1
  68. package/dist/cjs/stzh-row.cjs.entry.js +1 -1
  69. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  70. package/dist/cjs/stzh-section.cjs.entry.js +1 -1
  71. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  72. package/dist/cjs/stzh-show.cjs.entry.js +1 -1
  73. package/dist/cjs/stzh-sitemap.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  75. package/dist/cjs/stzh-sortable.cjs.entry.js +1 -1
  76. package/dist/cjs/stzh-space.cjs.entry.js +1 -1
  77. package/dist/cjs/stzh-status.cjs.entry.js +1 -1
  78. package/dist/cjs/stzh-sticky.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-table.cjs.entry.js +1 -1
  80. package/dist/cjs/stzh-text.cjs.entry.js +1 -1
  81. package/dist/cjs/stzh-textandimage.cjs.entry.js +1 -1
  82. package/dist/cjs/stzh-toggle.cjs.entry.js +11 -3
  83. package/dist/cjs/stzh-tooltip.cjs.entry.js +1 -1
  84. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  85. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +11 -2
  86. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +1 -1
  87. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +1 -1
  88. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  89. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  90. package/dist/collection/assets/i18n/de.json +1 -0
  91. package/dist/collection/assets/i18n/en.json +1 -0
  92. package/dist/collection/assets/icons/mono/mail.svg +1 -1
  93. package/dist/collection/assets/media/olmap/marker-active.png +0 -0
  94. package/dist/collection/assets/media/olmap/marker-position.png +0 -0
  95. package/dist/collection/assets/media/olmap/marker.png +0 -0
  96. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles-Basic.css +881 -881
  97. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles-Button.css +75 -75
  98. package/dist/collection/assets/vendors/readspeaker/ReadSpeaker.Styles.css +977 -977
  99. package/dist/collection/assets/vendors/readspeaker/ReadSpeakerClassic.css +2 -2
  100. package/dist/collection/collection-manifest.json +1 -0
  101. package/dist/collection/components/stzh-accordion/stzh-accordion.css +2 -0
  102. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.css +2 -0
  103. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.js +73 -1
  104. package/dist/collection/components/stzh-accordion-item/stzh-accordion-item.stories.js +1 -1
  105. package/dist/collection/components/stzh-actions/stzh-actions.css +2 -0
  106. package/dist/collection/components/stzh-actionset/stzh-actionset.css +2 -0
  107. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +4 -2
  108. package/dist/collection/components/stzh-appnav/stzh-appnav.css +6 -3
  109. package/dist/collection/components/stzh-appointments/stzh-appointments.css +2 -0
  110. package/dist/collection/components/stzh-audio/stzh-audio.css +2 -0
  111. package/dist/collection/components/stzh-badge/stzh-badge.css +4 -2
  112. package/dist/collection/components/stzh-button/stzh-button.css +9 -3
  113. package/dist/collection/components/stzh-button/stzh-button.js +9 -1
  114. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.css +123 -0
  115. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.js +25 -0
  116. package/dist/collection/components/stzh-buttongroup/stzh-buttongroup.stories.js +57 -0
  117. package/dist/collection/components/stzh-calendar/stzh-calendar.css +8 -3
  118. package/dist/collection/components/stzh-card/stzh-card.css +12 -7
  119. package/dist/collection/components/stzh-card-list/stzh-card-list.css +2 -0
  120. package/dist/collection/components/stzh-carousel/stzh-carousel.css +2 -7
  121. package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +20 -18
  122. package/dist/collection/components/stzh-cell/stzh-cell.css +2 -0
  123. package/dist/collection/components/stzh-chart/stzh-chart.css +4 -0
  124. package/dist/collection/components/stzh-checkbox/stzh-checkbox.css +6 -1
  125. package/dist/collection/components/stzh-checkbox/stzh-checkbox.js +11 -3
  126. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.css +2 -0
  127. package/dist/collection/components/stzh-chip/stzh-chip.css +10 -6
  128. package/dist/collection/components/stzh-chip/stzh-chip.js +9 -1
  129. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +2 -0
  130. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +9 -7
  131. package/dist/collection/components/stzh-clamp/stzh-clamp.css +4 -0
  132. package/dist/collection/components/stzh-contact/stzh-contact.css +2 -0
  133. package/dist/collection/components/stzh-container/stzh-container.css +2 -0
  134. package/dist/collection/components/stzh-cspace/stzh-cspace.css +2 -0
  135. package/dist/collection/components/stzh-datalist/stzh-datalist.css +2 -0
  136. package/dist/collection/components/stzh-datalist/stzh-datalist.js +1 -1
  137. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +4 -1
  138. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +8 -13
  139. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +65 -7
  140. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.css +2 -0
  141. package/dist/collection/components/stzh-datamessagelist/stzh-datamessagelist.stories.js +2 -1
  142. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +28 -4
  143. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.js +59 -10
  144. package/dist/collection/components/stzh-datatable/stzh-datatable.css +4 -0
  145. package/dist/collection/components/stzh-datepicker/stzh-datepicker.css +2 -0
  146. package/dist/collection/components/stzh-datepicker/stzh-datepicker.js +6 -1
  147. package/dist/collection/components/stzh-details/stzh-details.css +2 -0
  148. package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -0
  149. package/dist/collection/components/stzh-dialog/stzh-dialog.js +2 -4
  150. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +8 -3
  151. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +14 -3
  152. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +2 -0
  153. package/dist/collection/components/stzh-figure/stzh-figure.css +2 -0
  154. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.css +2 -0
  155. package/dist/collection/components/stzh-flyingfocus/stzh-flyingfocus.js +9 -1
  156. package/dist/collection/components/stzh-footer/stzh-footer.css +5 -1
  157. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +91 -51
  158. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +1 -1
  159. package/dist/collection/components/stzh-header/stzh-header.css +2 -0
  160. package/dist/collection/components/stzh-heading/stzh-heading.css +2 -0
  161. package/dist/collection/components/stzh-hr/stzh-hr.css +2 -0
  162. package/dist/collection/components/stzh-hspace/stzh-hspace.css +2 -0
  163. package/dist/collection/components/stzh-icon/stzh-icon.css +2 -0
  164. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +1 -1
  165. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  166. package/dist/collection/components/stzh-icon-sprite/stzh-icon-sprite.css +2 -0
  167. package/dist/collection/components/stzh-input/stzh-input.css +2 -1
  168. package/dist/collection/components/stzh-input/stzh-input.js +9 -2
  169. package/dist/collection/components/stzh-invert/stzh-invert.css +79 -18
  170. package/dist/collection/components/stzh-invert/stzh-invert.stories.js +31 -7
  171. package/dist/collection/components/stzh-langnav/stzh-langnav.css +2 -0
  172. package/dist/collection/components/stzh-link/stzh-link.css +10 -8
  173. package/dist/collection/components/stzh-link/stzh-link.js +9 -1
  174. package/dist/collection/components/stzh-list/stzh-list.css +2 -0
  175. package/dist/collection/components/stzh-list-item/stzh-list-item.css +2 -0
  176. package/dist/collection/components/stzh-loader/stzh-loader.css +2 -0
  177. package/dist/collection/components/stzh-loadingbar/stzh-loadingbar.css +2 -0
  178. package/dist/collection/components/stzh-menu/stzh-menu.css +2 -0
  179. package/dist/collection/components/stzh-menu-item/stzh-menu-item.css +6 -2
  180. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +9 -1
  181. package/dist/collection/components/stzh-message/stzh-message.css +8 -54
  182. package/dist/collection/components/stzh-message/stzh-message.js +1 -1
  183. package/dist/collection/components/stzh-metanav/stzh-metanav.css +6 -10
  184. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.css +2 -0
  185. package/dist/collection/components/stzh-olmap/assets/compass.svg +6 -0
  186. package/dist/collection/components/stzh-olmap/stzh-olmap.css +106 -46
  187. package/dist/collection/components/stzh-olmap/stzh-olmap.js +91 -10
  188. package/dist/collection/components/stzh-overlay/stzh-overlay.css +2 -0
  189. package/dist/collection/components/stzh-overlay/stzh-overlay.js +2 -4
  190. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.css +2 -0
  191. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.css +2 -0
  192. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.css +2 -0
  193. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +40 -14
  194. package/dist/collection/components/stzh-popover/stzh-popover.css +2 -0
  195. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +39 -13
  196. package/dist/collection/components/stzh-progressbar/stzh-progressbar.css +2 -0
  197. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +4 -1
  198. package/dist/collection/components/stzh-radio/stzh-radio.css +6 -1
  199. package/dist/collection/components/stzh-radio/stzh-radio.js +11 -3
  200. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +2 -0
  201. package/dist/collection/components/stzh-ratio/stzh-ratio.css +2 -0
  202. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.css +4 -0
  203. package/dist/collection/components/stzh-richtext/stzh-richtext.css +5 -1
  204. package/dist/collection/components/stzh-row/stzh-row.css +2 -0
  205. package/dist/collection/components/stzh-saptcha/stzh-saptcha.css +2 -0
  206. package/dist/collection/components/stzh-section/stzh-section.css +2 -0
  207. package/dist/collection/components/stzh-share/stzh-share.css +2 -0
  208. package/dist/collection/components/stzh-show/stzh-show.css +2 -0
  209. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +2 -0
  210. package/dist/collection/components/stzh-skiplink/stzh-skiplink.css +4 -1
  211. package/dist/collection/components/stzh-skiplink/stzh-skiplink.stories.js +3 -8
  212. package/dist/collection/components/stzh-sortable/stzh-sortable.css +2 -0
  213. package/dist/collection/components/stzh-space/stzh-space.css +2 -0
  214. package/dist/collection/components/stzh-status/stzh-status.css +2 -0
  215. package/dist/collection/components/stzh-sticky/stzh-sticky.css +2 -0
  216. package/dist/collection/components/stzh-table/stzh-table.css +4 -0
  217. package/dist/collection/components/stzh-text/stzh-text.css +17 -0
  218. package/dist/collection/components/stzh-text/stzh-text.stories.js +10 -0
  219. package/dist/collection/components/stzh-textandimage/stzh-textandimage.css +2 -0
  220. package/dist/collection/components/stzh-toggle/stzh-toggle.css +6 -1
  221. package/dist/collection/components/stzh-toggle/stzh-toggle.js +11 -3
  222. package/dist/collection/components/stzh-tooltip/stzh-tooltip.css +2 -0
  223. package/dist/collection/components/stzh-upload/stzh-upload.css +4 -0
  224. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.css +3 -1
  225. package/dist/collection/components/stzh-vbz-linechip/stzh-vbz-linechip.js +28 -1
  226. package/dist/collection/components/stzh-vbz-majorticker/stzh-vbz-majorticker.css +2 -0
  227. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.css +2 -0
  228. package/dist/collection/components/stzh-visuallyhidden/stzh-visuallyhidden.css +2 -0
  229. package/dist/collection/components/stzh-vspace/stzh-vspace.css +2 -0
  230. package/dist/collection/pages/egov.stories.js +69 -56
  231. package/dist/collection/pages/meinkonto.stories.js +71 -69
  232. package/dist/collection/pages/microsite.stories.js +13 -11
  233. package/dist/collection/pages/website.stories.js +14 -12
  234. package/dist/collection/utils/overlay-utils.js +15 -0
  235. package/dist/components/index.d.ts +1 -0
  236. package/dist/components/index.js +2 -1
  237. package/dist/components/overlay-utils.js +17 -0
  238. package/dist/components/stzh-accordion-item.js +36 -2
  239. package/dist/components/stzh-accordion.js +1 -1
  240. package/dist/components/stzh-actions.js +1 -1
  241. package/dist/components/stzh-actionset2.js +1 -1
  242. package/dist/components/stzh-anchornav.js +1 -1
  243. package/dist/components/stzh-appnav.js +1 -1
  244. package/dist/components/stzh-appointments.js +1 -1
  245. package/dist/components/stzh-audio.js +1 -1
  246. package/dist/components/stzh-badge2.js +1 -1
  247. package/dist/components/stzh-button2.js +10 -2
  248. package/dist/components/stzh-buttongroup.d.ts +11 -0
  249. package/dist/components/stzh-buttongroup.js +36 -0
  250. package/dist/components/stzh-calendar2.js +1 -1
  251. package/dist/components/stzh-card-list2.js +1 -1
  252. package/dist/components/stzh-card2.js +1 -1
  253. package/dist/components/stzh-carousel.js +1 -1
  254. package/dist/components/stzh-cell.js +1 -1
  255. package/dist/components/stzh-chart.js +1 -1
  256. package/dist/components/stzh-checkbox.js +12 -4
  257. package/dist/components/stzh-checkboxgroup.js +1 -1
  258. package/dist/components/stzh-chip-select2.js +10 -8
  259. package/dist/components/stzh-chip2.js +10 -2
  260. package/dist/components/stzh-clamp2.js +1 -1
  261. package/dist/components/stzh-contact.js +21 -15
  262. package/dist/components/stzh-container.js +1 -1
  263. package/dist/components/stzh-cspace.js +1 -1
  264. package/dist/components/stzh-datalist-item2.js +42 -17
  265. package/dist/components/stzh-datalist2.js +17 -11
  266. package/dist/components/stzh-datamessagelist-item.js +20 -8
  267. package/dist/components/stzh-datamessagelist.js +1 -1
  268. package/dist/components/stzh-datatable.js +1 -1
  269. package/dist/components/stzh-datepicker2.js +7 -2
  270. package/dist/components/stzh-details.js +1 -1
  271. package/dist/components/stzh-dialog.js +3 -5
  272. package/dist/components/stzh-dropdown2.js +14 -3
  273. package/dist/components/stzh-fieldset.js +1 -1
  274. package/dist/components/stzh-figure.js +1 -1
  275. package/dist/components/stzh-flyingfocus.js +5 -3
  276. package/dist/components/stzh-footer.js +1 -1
  277. package/dist/components/stzh-ghettobox2.js +15 -3
  278. package/dist/components/stzh-header.js +1 -1
  279. package/dist/components/stzh-heading2.js +1 -1
  280. package/dist/components/stzh-hr.js +1 -1
  281. package/dist/components/stzh-hspace.js +1 -1
  282. package/dist/components/stzh-icon-sprite.js +2 -2
  283. package/dist/components/stzh-icon2.js +1 -1
  284. package/dist/components/stzh-input2.js +10 -3
  285. package/dist/components/stzh-invert.js +1 -1
  286. package/dist/components/stzh-langnav.js +1 -1
  287. package/dist/components/stzh-link2.js +10 -2
  288. package/dist/components/stzh-list-item.js +1 -1
  289. package/dist/components/stzh-list.js +1 -1
  290. package/dist/components/stzh-loader2.js +1 -1
  291. package/dist/components/stzh-loadingbar.js +1 -1
  292. package/dist/components/stzh-menu-item2.js +10 -2
  293. package/dist/components/stzh-menu2.js +1 -1
  294. package/dist/components/stzh-message.js +15 -3
  295. package/dist/components/stzh-metanav.js +1 -1
  296. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  297. package/dist/components/stzh-olmap.js +55 -8
  298. package/dist/components/stzh-overlay.js +3 -5
  299. package/dist/components/stzh-page-skiplinks.js +1 -1
  300. package/dist/components/stzh-pagebottom.js +1 -1
  301. package/dist/components/stzh-pagetitle-hero.js +1 -1
  302. package/dist/components/stzh-pagetitle.js +1 -1
  303. package/dist/components/stzh-popover2.js +1 -1
  304. package/dist/components/stzh-portal-mitwirken.js +1 -1
  305. package/dist/components/stzh-progressbar-item2.js +1 -1
  306. package/dist/components/stzh-progressbar.js +1 -1
  307. package/dist/components/stzh-radio2.js +12 -4
  308. package/dist/components/stzh-radiogroup2.js +1 -1
  309. package/dist/components/stzh-ratio.js +1 -1
  310. package/dist/components/stzh-readspeaker.js +1 -1
  311. package/dist/components/stzh-richtext2.js +1 -1
  312. package/dist/components/stzh-row.js +1 -1
  313. package/dist/components/stzh-saptcha.js +1 -1
  314. package/dist/components/stzh-section.js +1 -1
  315. package/dist/components/stzh-share2.js +1 -1
  316. package/dist/components/stzh-show.js +1 -1
  317. package/dist/components/stzh-sitemap.js +19 -13
  318. package/dist/components/stzh-skiplink.js +1 -1
  319. package/dist/components/stzh-sortable2.js +1 -1
  320. package/dist/components/stzh-space.js +1 -1
  321. package/dist/components/stzh-status2.js +1 -1
  322. package/dist/components/stzh-sticky.js +1 -1
  323. package/dist/components/stzh-table.js +1 -1
  324. package/dist/components/stzh-text2.js +1 -1
  325. package/dist/components/stzh-textandimage.js +1 -1
  326. package/dist/components/stzh-toggle.js +12 -4
  327. package/dist/components/stzh-tooltip2.js +1 -1
  328. package/dist/components/stzh-upload.js +1 -1
  329. package/dist/components/stzh-vbz-linechip2.js +12 -2
  330. package/dist/components/stzh-vbz-majorticker.js +1 -1
  331. package/dist/components/stzh-vbz-ticker.js +1 -1
  332. package/dist/components/stzh-visuallyhidden.js +1 -1
  333. package/dist/components/stzh-vspace.js +1 -1
  334. package/dist/esm/{app-globals-62e1178d.js → app-globals-a58b5d2d.js} +1 -1
  335. package/dist/esm/loader.js +2 -2
  336. package/dist/esm/overlay-utils-33021971.js +17 -0
  337. package/dist/esm/stzh-accordion-item.entry.js +36 -2
  338. package/dist/esm/stzh-accordion.entry.js +1 -1
  339. package/dist/esm/stzh-actions.entry.js +1 -1
  340. package/dist/esm/stzh-actionset.entry.js +1 -1
  341. package/dist/esm/stzh-anchornav.entry.js +1 -1
  342. package/dist/esm/stzh-appnav.entry.js +1 -1
  343. package/dist/esm/stzh-appointments.entry.js +1 -1
  344. package/dist/esm/stzh-audio.entry.js +1 -1
  345. package/dist/esm/stzh-badge_3.entry.js +12 -4
  346. package/dist/esm/stzh-buttongroup.entry.js +19 -0
  347. package/dist/esm/stzh-calendar.entry.js +1 -1
  348. package/dist/esm/stzh-card_3.entry.js +12 -10
  349. package/dist/esm/stzh-carousel.entry.js +1 -1
  350. package/dist/esm/stzh-cell.entry.js +1 -1
  351. package/dist/esm/stzh-chart.entry.js +1 -1
  352. package/dist/esm/stzh-checkbox.entry.js +12 -4
  353. package/dist/esm/stzh-checkboxgroup.entry.js +1 -1
  354. package/dist/esm/stzh-chip_2.entry.js +11 -3
  355. package/dist/esm/stzh-components.js +2 -2
  356. package/dist/esm/stzh-contact.entry.js +1 -1
  357. package/dist/esm/stzh-container.entry.js +1 -1
  358. package/dist/esm/stzh-cspace.entry.js +1 -1
  359. package/dist/esm/stzh-datalist_2.entry.js +25 -9
  360. package/dist/esm/stzh-datamessagelist-item.entry.js +15 -6
  361. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  362. package/dist/esm/stzh-datatable.entry.js +1 -1
  363. package/dist/esm/stzh-datepicker_3.entry.js +19 -6
  364. package/dist/esm/stzh-details.entry.js +1 -1
  365. package/dist/esm/stzh-dialog.entry.js +3 -5
  366. package/dist/esm/stzh-dropdown.entry.js +14 -3
  367. package/dist/esm/stzh-fieldset.entry.js +1 -1
  368. package/dist/esm/stzh-figure.entry.js +1 -1
  369. package/dist/esm/stzh-flyingfocus.entry.js +4 -2
  370. package/dist/esm/stzh-footer.entry.js +1 -1
  371. package/dist/esm/stzh-ghettobox_2.entry.js +3 -3
  372. package/dist/esm/stzh-header.entry.js +1 -1
  373. package/dist/esm/stzh-heading.entry.js +1 -1
  374. package/dist/esm/stzh-hr.entry.js +1 -1
  375. package/dist/esm/stzh-hspace.entry.js +1 -1
  376. package/dist/esm/stzh-icon-sprite.entry.js +2 -2
  377. package/dist/esm/stzh-input.entry.js +10 -3
  378. package/dist/esm/stzh-invert.entry.js +1 -1
  379. package/dist/esm/stzh-langnav.entry.js +1 -1
  380. package/dist/esm/stzh-link.entry.js +10 -2
  381. package/dist/esm/stzh-list-item.entry.js +1 -1
  382. package/dist/esm/stzh-list.entry.js +1 -1
  383. package/dist/esm/stzh-loader.entry.js +1 -1
  384. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  385. package/dist/esm/stzh-menu_2.entry.js +11 -3
  386. package/dist/esm/stzh-message.entry.js +2 -2
  387. package/dist/esm/stzh-metanav.entry.js +1 -1
  388. package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
  389. package/dist/esm/stzh-olmap.entry.js +53 -7
  390. package/dist/esm/stzh-overlay.entry.js +3 -5
  391. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  392. package/dist/esm/stzh-pagebottom.entry.js +1 -1
  393. package/dist/esm/stzh-pagetitle-hero.entry.js +1 -1
  394. package/dist/esm/stzh-pagetitle.entry.js +1 -1
  395. package/dist/esm/stzh-popover.entry.js +1 -1
  396. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  397. package/dist/esm/stzh-progressbar-item.entry.js +1 -1
  398. package/dist/esm/stzh-progressbar.entry.js +1 -1
  399. package/dist/esm/stzh-ratio.entry.js +1 -1
  400. package/dist/esm/stzh-readspeaker.entry.js +1 -1
  401. package/dist/esm/stzh-row.entry.js +1 -1
  402. package/dist/esm/stzh-saptcha.entry.js +1 -1
  403. package/dist/esm/stzh-section.entry.js +1 -1
  404. package/dist/esm/stzh-share.entry.js +1 -1
  405. package/dist/esm/stzh-show.entry.js +1 -1
  406. package/dist/esm/stzh-sitemap.entry.js +1 -1
  407. package/dist/esm/stzh-skiplink.entry.js +1 -1
  408. package/dist/esm/stzh-sortable.entry.js +1 -1
  409. package/dist/esm/stzh-space.entry.js +1 -1
  410. package/dist/esm/stzh-status.entry.js +1 -1
  411. package/dist/esm/stzh-sticky.entry.js +1 -1
  412. package/dist/esm/stzh-table.entry.js +1 -1
  413. package/dist/esm/stzh-text.entry.js +1 -1
  414. package/dist/esm/stzh-textandimage.entry.js +1 -1
  415. package/dist/esm/stzh-toggle.entry.js +12 -4
  416. package/dist/esm/stzh-tooltip.entry.js +1 -1
  417. package/dist/esm/stzh-upload.entry.js +1 -1
  418. package/dist/esm/stzh-vbz-linechip.entry.js +11 -2
  419. package/dist/esm/stzh-vbz-majorticker.entry.js +1 -1
  420. package/dist/esm/stzh-vbz-ticker.entry.js +1 -1
  421. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  422. package/dist/esm/stzh-vspace.entry.js +1 -1
  423. package/dist/esm-es5/{app-globals-62e1178d.js → app-globals-a58b5d2d.js} +1 -1
  424. package/dist/esm-es5/loader.js +1 -1
  425. package/dist/esm-es5/overlay-utils-33021971.js +1 -0
  426. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  427. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  428. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  429. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  430. package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
  431. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  432. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  433. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  434. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  435. package/dist/esm-es5/stzh-buttongroup.entry.js +1 -0
  436. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  437. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  438. package/dist/esm-es5/stzh-carousel.entry.js +1 -1
  439. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  440. package/dist/esm-es5/stzh-chart.entry.js +1 -1
  441. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  442. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  443. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  444. package/dist/esm-es5/stzh-components.js +1 -1
  445. package/dist/esm-es5/stzh-contact.entry.js +1 -1
  446. package/dist/esm-es5/stzh-container.entry.js +1 -1
  447. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  448. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  449. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  450. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  451. package/dist/esm-es5/stzh-datatable.entry.js +1 -1
  452. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  453. package/dist/esm-es5/stzh-details.entry.js +1 -1
  454. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  455. package/dist/esm-es5/stzh-dropdown.entry.js +1 -1
  456. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  457. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  458. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  459. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  460. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  461. package/dist/esm-es5/stzh-header.entry.js +1 -1
  462. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  463. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  464. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  465. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  466. package/dist/esm-es5/stzh-input.entry.js +1 -1
  467. package/dist/esm-es5/stzh-invert.entry.js +1 -1
  468. package/dist/esm-es5/stzh-langnav.entry.js +1 -1
  469. package/dist/esm-es5/stzh-link.entry.js +1 -1
  470. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  471. package/dist/esm-es5/stzh-list.entry.js +1 -1
  472. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  473. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  474. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  475. package/dist/esm-es5/stzh-message.entry.js +1 -1
  476. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  477. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  478. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  479. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  480. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  481. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  482. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  483. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  484. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  485. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  486. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  487. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  488. package/dist/esm-es5/stzh-ratio.entry.js +1 -1
  489. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  490. package/dist/esm-es5/stzh-row.entry.js +1 -1
  491. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  492. package/dist/esm-es5/stzh-section.entry.js +1 -1
  493. package/dist/esm-es5/stzh-share.entry.js +1 -1
  494. package/dist/esm-es5/stzh-show.entry.js +1 -1
  495. package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
  496. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  497. package/dist/esm-es5/stzh-sortable.entry.js +1 -1
  498. package/dist/esm-es5/stzh-space.entry.js +1 -1
  499. package/dist/esm-es5/stzh-status.entry.js +1 -1
  500. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  501. package/dist/esm-es5/stzh-table.entry.js +1 -1
  502. package/dist/esm-es5/stzh-text.entry.js +1 -1
  503. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  504. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  505. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  506. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  507. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  508. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  509. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  510. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  511. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  512. package/dist/stzh-components/assets/i18n/de.json +1 -0
  513. package/dist/stzh-components/assets/i18n/en.json +1 -0
  514. package/dist/stzh-components/assets/icons/mono/mail.svg +1 -1
  515. package/dist/stzh-components/assets/media/olmap/marker-active.png +0 -0
  516. package/dist/stzh-components/assets/media/olmap/marker-position.png +0 -0
  517. package/dist/stzh-components/assets/media/olmap/marker.png +0 -0
  518. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +1 -1
  519. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  520. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles-Basic.css +881 -881
  521. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles-Button.css +75 -75
  522. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeaker.Styles.css +977 -977
  523. package/dist/stzh-components/assets/vendors/readspeaker/ReadSpeakerClassic.css +2 -2
  524. package/dist/stzh-components/p-00d91505.entry.js +1 -0
  525. package/dist/stzh-components/p-00e99280.entry.js +1 -0
  526. package/dist/stzh-components/p-035a0f82.system.entry.js +1 -0
  527. package/dist/stzh-components/{p-8f577bc6.system.entry.js → p-0688fe3a.system.entry.js} +1 -1
  528. package/dist/stzh-components/p-06e2b01d.system.entry.js +1 -0
  529. package/dist/stzh-components/p-077a1368.entry.js +1 -0
  530. package/dist/stzh-components/{p-6e3231ce.entry.js → p-0aeaba03.entry.js} +1 -1
  531. package/dist/stzh-components/{p-f4c0d928.entry.js → p-0b5226e2.entry.js} +2 -2
  532. package/dist/stzh-components/p-0bebedd4.entry.js +1 -0
  533. package/dist/stzh-components/p-0ecd29c5.system.entry.js +1 -0
  534. package/dist/stzh-components/p-10041557.entry.js +1 -0
  535. package/dist/stzh-components/p-12bebf6e.entry.js +1 -0
  536. package/dist/stzh-components/p-13017524.system.entry.js +1 -0
  537. package/dist/stzh-components/p-13f024e3.system.entry.js +1 -0
  538. package/dist/stzh-components/p-1434d4f7.system.entry.js +1 -0
  539. package/dist/stzh-components/p-1457ac31.system.entry.js +1 -0
  540. package/dist/stzh-components/p-17761054.system.entry.js +1 -0
  541. package/dist/stzh-components/p-17b3570a.entry.js +1 -0
  542. package/dist/stzh-components/p-180e8516.system.entry.js +1 -0
  543. package/dist/stzh-components/p-18c9a3e1.system.entry.js +1 -0
  544. package/dist/stzh-components/p-198b8305.system.entry.js +1 -0
  545. package/dist/stzh-components/p-1abd7bf8.entry.js +1 -0
  546. package/dist/stzh-components/{p-e54ef44f.system.entry.js → p-1b197c5e.system.entry.js} +1 -1
  547. package/dist/stzh-components/p-1ed06318.entry.js +1 -0
  548. package/dist/stzh-components/p-1fc11b81.entry.js +1 -0
  549. package/dist/stzh-components/p-206f5f74.system.entry.js +1 -0
  550. package/dist/stzh-components/p-222d9dd1.system.entry.js +1 -0
  551. package/dist/stzh-components/p-25496f49.system.entry.js +1 -0
  552. package/dist/stzh-components/p-25d95c73.entry.js +1 -0
  553. package/dist/stzh-components/p-294acb66.system.entry.js +1 -0
  554. package/dist/stzh-components/p-2a9e7099.system.entry.js +1 -0
  555. package/dist/stzh-components/{p-12564ee4.entry.js → p-2b1b9b7f.entry.js} +1 -1
  556. package/dist/stzh-components/p-309b73e1.entry.js +1 -0
  557. package/dist/stzh-components/{p-6dbf976b.entry.js → p-318ebb9e.entry.js} +1 -1
  558. package/dist/stzh-components/p-320273c3.system.entry.js +1 -0
  559. package/dist/stzh-components/{p-af9aac53.entry.js → p-3680ed9c.entry.js} +1 -1
  560. package/dist/stzh-components/p-36fbc15e.system.entry.js +1 -0
  561. package/dist/stzh-components/p-373e5bb9.system.entry.js +1 -0
  562. package/dist/stzh-components/{p-77320d20.entry.js → p-39871486.entry.js} +1 -1
  563. package/dist/stzh-components/{p-8c371d1d.system.entry.js → p-39f6243c.system.entry.js} +2 -2
  564. package/dist/stzh-components/p-3a3d196e.system.entry.js +1 -0
  565. package/dist/stzh-components/p-3a57e4ab.entry.js +1 -0
  566. package/dist/stzh-components/{p-6ee87986.entry.js → p-3b2d7678.entry.js} +1 -1
  567. package/dist/stzh-components/{p-884793dd.system.entry.js → p-3c75c708.system.entry.js} +1 -1
  568. package/dist/stzh-components/p-3cdbb1ed.js +1 -0
  569. package/dist/stzh-components/p-3d00dad8.entry.js +1 -0
  570. package/dist/stzh-components/p-3e8bba03.system.entry.js +1 -0
  571. package/dist/stzh-components/p-406c9413.entry.js +9 -0
  572. package/dist/stzh-components/{p-f725921a.entry.js → p-40f7ceb9.entry.js} +1 -1
  573. package/dist/stzh-components/p-42b69706.system.entry.js +1 -0
  574. package/dist/stzh-components/p-444af671.system.entry.js +1 -0
  575. package/dist/stzh-components/p-47bf4999.system.entry.js +1 -0
  576. package/dist/stzh-components/p-47c70501.system.entry.js +1 -0
  577. package/dist/stzh-components/p-4909551f.system.entry.js +1 -0
  578. package/dist/stzh-components/p-509c7218.system.entry.js +1 -0
  579. package/dist/stzh-components/p-526144dc.entry.js +1 -0
  580. package/dist/stzh-components/p-529951e9.system.entry.js +1 -0
  581. package/dist/stzh-components/p-5373c40e.system.entry.js +1 -0
  582. package/dist/stzh-components/p-5538ecd9.entry.js +1 -0
  583. package/dist/stzh-components/p-57f2b7d4.entry.js +1 -0
  584. package/dist/stzh-components/p-5859f81f.system.entry.js +1 -0
  585. package/dist/stzh-components/p-595f202a.entry.js +1 -0
  586. package/dist/stzh-components/p-5ab2ae81.system.entry.js +1 -0
  587. package/dist/stzh-components/{p-b9adebdc.entry.js → p-5efd5a1d.entry.js} +1 -1
  588. package/dist/stzh-components/p-5f33f681.entry.js +1 -0
  589. package/dist/stzh-components/p-6022d291.entry.js +1 -0
  590. package/dist/stzh-components/{p-4f8085e5.entry.js → p-61d68434.entry.js} +1 -1
  591. package/dist/stzh-components/p-61e701ce.system.entry.js +1 -0
  592. package/dist/stzh-components/p-65833306.system.entry.js +1 -0
  593. package/dist/stzh-components/p-663287a8.entry.js +1 -0
  594. package/dist/stzh-components/p-66ea8863.system.js +1 -0
  595. package/dist/stzh-components/{p-3fc51ad1.system.entry.js → p-670495df.system.entry.js} +1 -1
  596. package/dist/stzh-components/p-673d68e7.system.entry.js +1 -0
  597. package/dist/stzh-components/p-6a7152dd.system.entry.js +1 -0
  598. package/dist/stzh-components/p-6a911d9c.system.entry.js +1 -0
  599. package/dist/stzh-components/p-6b05235b.system.entry.js +1 -0
  600. package/dist/stzh-components/p-6bdbad44.entry.js +1 -0
  601. package/dist/stzh-components/p-6c6380a8.entry.js +1 -0
  602. package/dist/stzh-components/p-6ef3c304.system.entry.js +1 -0
  603. package/dist/stzh-components/{p-6a109ce9.system.entry.js → p-6f4d7926.system.entry.js} +1 -1
  604. package/dist/stzh-components/p-7142e816.system.entry.js +1 -0
  605. package/dist/stzh-components/p-72a71f30.system.entry.js +1 -0
  606. package/dist/stzh-components/{p-cd59cead.system.js → p-72f050c1.system.js} +1 -1
  607. package/dist/stzh-components/{p-88fbb2fc.system.entry.js → p-73ce3c9b.system.entry.js} +8 -8
  608. package/dist/stzh-components/{p-bc2af057.entry.js → p-73d779a3.entry.js} +1 -1
  609. package/dist/stzh-components/p-7413b79d.entry.js +1 -0
  610. package/dist/stzh-components/p-74831964.entry.js +1 -0
  611. package/dist/stzh-components/{p-155ecf6c.entry.js → p-75693b7f.entry.js} +1 -1
  612. package/dist/stzh-components/p-770a5d07.system.entry.js +1 -0
  613. package/dist/stzh-components/p-788e2455.system.entry.js +1 -0
  614. package/dist/stzh-components/p-7a95f89c.system.entry.js +1 -0
  615. package/dist/stzh-components/p-7b887b10.system.entry.js +1 -0
  616. package/dist/stzh-components/p-7bc49298.system.entry.js +1 -0
  617. package/dist/stzh-components/p-7c1e4ff7.system.entry.js +1 -0
  618. package/dist/stzh-components/{p-0a408348.entry.js → p-7f442c8f.entry.js} +1 -1
  619. package/dist/stzh-components/{p-b4db3558.js → p-8276a3a5.js} +1 -1
  620. package/dist/stzh-components/p-843301ca.entry.js +1 -0
  621. package/dist/stzh-components/p-84ee50a5.system.entry.js +1 -0
  622. package/dist/stzh-components/p-87eb2a8d.entry.js +1 -0
  623. package/dist/stzh-components/p-8aaef773.entry.js +1 -0
  624. package/dist/stzh-components/p-8b02b816.entry.js +1 -0
  625. package/dist/stzh-components/p-8d5fd36f.entry.js +1 -0
  626. package/dist/stzh-components/p-8f996d7e.system.entry.js +1 -0
  627. package/dist/stzh-components/p-90053b06.system.entry.js +1 -0
  628. package/dist/stzh-components/p-90a3867e.entry.js +1 -0
  629. package/dist/stzh-components/p-91ea8f3b.entry.js +1 -0
  630. package/dist/stzh-components/p-92332dae.entry.js +1 -0
  631. package/dist/stzh-components/p-929a0532.entry.js +1 -0
  632. package/dist/stzh-components/p-9443ef45.system.entry.js +1 -0
  633. package/dist/stzh-components/p-9522b7c7.entry.js +1 -0
  634. package/dist/stzh-components/p-9a990d3c.entry.js +1 -0
  635. package/dist/stzh-components/{p-5b162e4f.entry.js → p-9b9b579b.entry.js} +1 -1
  636. package/dist/stzh-components/{p-4da7ebff.entry.js → p-9d996db9.entry.js} +1 -1
  637. package/dist/stzh-components/p-a0aeb3d6.system.entry.js +1 -0
  638. package/dist/stzh-components/p-a26d3e2d.entry.js +1 -0
  639. package/dist/stzh-components/p-a3781fae.entry.js +1 -0
  640. package/dist/stzh-components/p-a3d99e8f.entry.js +1 -0
  641. package/dist/stzh-components/{p-8eda017e.entry.js → p-a51184fb.entry.js} +1 -1
  642. package/dist/stzh-components/p-a63df129.system.entry.js +1 -0
  643. package/dist/stzh-components/p-a6c76983.system.entry.js +1 -0
  644. package/dist/stzh-components/p-a70423e5.system.entry.js +1 -0
  645. package/dist/stzh-components/{p-d5514e5b.system.entry.js → p-a8205b50.system.entry.js} +2 -2
  646. package/dist/stzh-components/p-a89d05d3.entry.js +1 -0
  647. package/dist/stzh-components/p-a89e510c.entry.js +1 -0
  648. package/dist/stzh-components/p-ab66cdf8.entry.js +1 -0
  649. package/dist/stzh-components/p-ac6df3e4.system.entry.js +1 -0
  650. package/dist/stzh-components/p-ad85c5c6.entry.js +1 -0
  651. package/dist/stzh-components/p-b0d74781.entry.js +1 -0
  652. package/dist/stzh-components/p-b42a99f2.entry.js +1 -0
  653. package/dist/stzh-components/p-b7509be8.system.entry.js +1 -0
  654. package/dist/stzh-components/p-b7e7b956.entry.js +1 -0
  655. package/dist/stzh-components/p-b9a687f5.system.entry.js +1 -0
  656. package/dist/stzh-components/p-bbacd4b6.system.entry.js +1 -0
  657. package/dist/stzh-components/p-bd275bc1.system.entry.js +1 -0
  658. package/dist/stzh-components/p-bfeae490.entry.js +1 -0
  659. package/dist/stzh-components/p-bfece369.system.entry.js +1 -0
  660. package/dist/stzh-components/p-c164e020.system.entry.js +1 -0
  661. package/dist/stzh-components/p-c28d19c7.entry.js +1 -0
  662. package/dist/stzh-components/p-c4619b1f.entry.js +9 -0
  663. package/dist/stzh-components/p-c7263e0f.system.entry.js +1 -0
  664. package/dist/stzh-components/p-ca7ec43f.system.entry.js +1 -0
  665. package/dist/stzh-components/p-cb8d0d64.system.entry.js +1 -0
  666. package/dist/stzh-components/p-cd3c2a3a.system.entry.js +1 -0
  667. package/dist/stzh-components/p-cd7d91be.system.entry.js +1 -0
  668. package/dist/stzh-components/p-cfe82456.entry.js +1 -0
  669. package/dist/stzh-components/p-d0236fd5.entry.js +1 -0
  670. package/dist/stzh-components/{p-8b16550d.entry.js → p-d332af6f.entry.js} +1 -1
  671. package/dist/stzh-components/{p-48dee587.entry.js → p-d34653bd.entry.js} +1 -1
  672. package/dist/stzh-components/p-d46116ce.system.entry.js +1 -0
  673. package/dist/stzh-components/p-d7d424bc.entry.js +1 -0
  674. package/dist/stzh-components/{p-ae7255f6.entry.js → p-d9be7a41.entry.js} +1 -1
  675. package/dist/stzh-components/p-d9f5bb65.system.entry.js +1 -0
  676. package/dist/stzh-components/p-dbe89e81.system.entry.js +1 -0
  677. package/dist/stzh-components/p-dc970ea6.system.entry.js +1 -0
  678. package/dist/stzh-components/p-dde56464.system.js +1 -0
  679. package/dist/stzh-components/p-de151e4f.system.entry.js +1 -0
  680. package/dist/stzh-components/p-df617d8e.system.entry.js +1 -0
  681. package/dist/stzh-components/p-dfeb38f7.entry.js +1 -0
  682. package/dist/stzh-components/p-e18f5e43.system.entry.js +1 -0
  683. package/dist/stzh-components/p-e3576ccb.entry.js +1 -0
  684. package/dist/stzh-components/p-e5318901.system.entry.js +1 -0
  685. package/dist/stzh-components/p-e5e7548f.entry.js +1 -0
  686. package/dist/stzh-components/p-e993dfe4.entry.js +1 -0
  687. package/dist/stzh-components/p-ea1b0a82.entry.js +1 -0
  688. package/dist/stzh-components/{p-59793ef8.system.entry.js → p-ea5b9340.entry.js} +1 -1
  689. package/dist/stzh-components/p-ebc2b991.system.entry.js +1 -0
  690. package/dist/stzh-components/{p-aa2c81e6.system.entry.js → p-ec7f15c8.system.entry.js} +1 -1
  691. package/dist/stzh-components/p-ecd1ca5a.entry.js +1 -0
  692. package/dist/stzh-components/p-ee8becb5.entry.js +1 -0
  693. package/dist/stzh-components/p-f202e06c.entry.js +1 -0
  694. package/dist/stzh-components/p-f41788fc.entry.js +1 -0
  695. package/dist/stzh-components/p-f683c9d0.entry.js +1 -0
  696. package/dist/stzh-components/p-f867f814.entry.js +1 -0
  697. package/dist/stzh-components/p-fb6952f1.system.entry.js +1 -0
  698. package/dist/stzh-components/p-fb71ade8.entry.js +1 -0
  699. package/dist/stzh-components/stzh-components.css +1 -1
  700. package/dist/stzh-components/stzh-components.esm.js +1 -1
  701. package/dist/stzh-components/stzh-components.js +1 -1
  702. package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -0
  703. package/dist/types/components.d.ts +83 -14
  704. package/dist/types/index.d.ts +14 -0
  705. package/dist/types/utils/overlay-utils.d.ts +5 -0
  706. package/dist/vscode-data.json +39 -7
  707. package/package.json +1 -1
  708. package/dist/stzh-components/p-013d269a.system.entry.js +0 -1
  709. package/dist/stzh-components/p-0759cd7e.entry.js +0 -1
  710. package/dist/stzh-components/p-0930004d.entry.js +0 -1
  711. package/dist/stzh-components/p-0a2de4e8.entry.js +0 -1
  712. package/dist/stzh-components/p-0c779613.system.entry.js +0 -1
  713. package/dist/stzh-components/p-0e690e3e.system.entry.js +0 -1
  714. package/dist/stzh-components/p-0f882e26.system.entry.js +0 -1
  715. package/dist/stzh-components/p-0ffd0de8.system.entry.js +0 -1
  716. package/dist/stzh-components/p-10b4fedd.system.entry.js +0 -1
  717. package/dist/stzh-components/p-12e03b78.system.entry.js +0 -1
  718. package/dist/stzh-components/p-14729939.entry.js +0 -1
  719. package/dist/stzh-components/p-1494b502.entry.js +0 -1
  720. package/dist/stzh-components/p-14d5a56d.entry.js +0 -1
  721. package/dist/stzh-components/p-16b3d4ee.system.entry.js +0 -1
  722. package/dist/stzh-components/p-205f5111.system.entry.js +0 -1
  723. package/dist/stzh-components/p-20bd79d0.entry.js +0 -1
  724. package/dist/stzh-components/p-215d2cf6.system.entry.js +0 -1
  725. package/dist/stzh-components/p-25d8a9c0.system.entry.js +0 -1
  726. package/dist/stzh-components/p-263fd0bb.system.entry.js +0 -1
  727. package/dist/stzh-components/p-2674dc69.system.entry.js +0 -1
  728. package/dist/stzh-components/p-2c42ae68.entry.js +0 -1
  729. package/dist/stzh-components/p-2e6ef670.entry.js +0 -1
  730. package/dist/stzh-components/p-2ed20db5.entry.js +0 -1
  731. package/dist/stzh-components/p-31b995e8.entry.js +0 -1
  732. package/dist/stzh-components/p-322e74e9.system.entry.js +0 -1
  733. package/dist/stzh-components/p-353294ce.entry.js +0 -1
  734. package/dist/stzh-components/p-396697db.system.entry.js +0 -1
  735. package/dist/stzh-components/p-3af95b5d.entry.js +0 -1
  736. package/dist/stzh-components/p-3b00d8b8.entry.js +0 -1
  737. package/dist/stzh-components/p-3f676d99.system.entry.js +0 -1
  738. package/dist/stzh-components/p-3f80ce87.entry.js +0 -1
  739. package/dist/stzh-components/p-40798ed2.entry.js +0 -1
  740. package/dist/stzh-components/p-418e04f7.system.entry.js +0 -1
  741. package/dist/stzh-components/p-4453449f.entry.js +0 -1
  742. package/dist/stzh-components/p-44d10402.system.entry.js +0 -1
  743. package/dist/stzh-components/p-454e50f8.system.entry.js +0 -1
  744. package/dist/stzh-components/p-46d07ed7.entry.js +0 -1
  745. package/dist/stzh-components/p-470182bb.system.entry.js +0 -1
  746. package/dist/stzh-components/p-47175c6f.system.entry.js +0 -1
  747. package/dist/stzh-components/p-48d40c7c.system.entry.js +0 -1
  748. package/dist/stzh-components/p-48e79dc0.system.entry.js +0 -1
  749. package/dist/stzh-components/p-4a60b27f.entry.js +0 -1
  750. package/dist/stzh-components/p-4acb6752.system.entry.js +0 -1
  751. package/dist/stzh-components/p-4b995fe4.system.entry.js +0 -1
  752. package/dist/stzh-components/p-51b53e68.entry.js +0 -1
  753. package/dist/stzh-components/p-552d0e82.system.entry.js +0 -1
  754. package/dist/stzh-components/p-558f336d.system.entry.js +0 -1
  755. package/dist/stzh-components/p-57235597.system.entry.js +0 -1
  756. package/dist/stzh-components/p-5a4aef52.entry.js +0 -1
  757. package/dist/stzh-components/p-617ece76.system.entry.js +0 -1
  758. package/dist/stzh-components/p-655e3c46.system.entry.js +0 -1
  759. package/dist/stzh-components/p-6606e17e.system.entry.js +0 -1
  760. package/dist/stzh-components/p-6659b6f6.system.entry.js +0 -1
  761. package/dist/stzh-components/p-66692130.entry.js +0 -1
  762. package/dist/stzh-components/p-6722e89a.system.entry.js +0 -1
  763. package/dist/stzh-components/p-6769b9a8.system.entry.js +0 -1
  764. package/dist/stzh-components/p-67ae4994.entry.js +0 -1
  765. package/dist/stzh-components/p-6a26c9eb.system.entry.js +0 -1
  766. package/dist/stzh-components/p-6bc7f44a.entry.js +0 -1
  767. package/dist/stzh-components/p-6deb516e.entry.js +0 -1
  768. package/dist/stzh-components/p-70f85be3.system.entry.js +0 -1
  769. package/dist/stzh-components/p-77d0a54b.system.entry.js +0 -1
  770. package/dist/stzh-components/p-7f1b7b44.system.entry.js +0 -1
  771. package/dist/stzh-components/p-7ff1640c.entry.js +0 -1
  772. package/dist/stzh-components/p-80f497d8.system.entry.js +0 -1
  773. package/dist/stzh-components/p-814e5ae7.entry.js +0 -9
  774. package/dist/stzh-components/p-821ca4af.system.entry.js +0 -1
  775. package/dist/stzh-components/p-8361c9d8.system.entry.js +0 -1
  776. package/dist/stzh-components/p-838b0542.entry.js +0 -1
  777. package/dist/stzh-components/p-862e7723.system.entry.js +0 -1
  778. package/dist/stzh-components/p-86336227.entry.js +0 -1
  779. package/dist/stzh-components/p-919cf183.entry.js +0 -1
  780. package/dist/stzh-components/p-94918f2a.system.entry.js +0 -1
  781. package/dist/stzh-components/p-949f7885.system.js +0 -1
  782. package/dist/stzh-components/p-95bfbf67.system.entry.js +0 -1
  783. package/dist/stzh-components/p-99d85a97.entry.js +0 -1
  784. package/dist/stzh-components/p-9a94b249.system.entry.js +0 -1
  785. package/dist/stzh-components/p-9ed30a9f.entry.js +0 -1
  786. package/dist/stzh-components/p-9f29e6c3.entry.js +0 -1
  787. package/dist/stzh-components/p-a0b2739a.entry.js +0 -1
  788. package/dist/stzh-components/p-a1727d35.entry.js +0 -1
  789. package/dist/stzh-components/p-a2121744.system.entry.js +0 -1
  790. package/dist/stzh-components/p-a22ac109.entry.js +0 -1
  791. package/dist/stzh-components/p-a2df0ea1.entry.js +0 -1
  792. package/dist/stzh-components/p-a3bf419d.entry.js +0 -1
  793. package/dist/stzh-components/p-a47e205f.entry.js +0 -1
  794. package/dist/stzh-components/p-a693ab41.entry.js +0 -1
  795. package/dist/stzh-components/p-abf13db9.system.entry.js +0 -1
  796. package/dist/stzh-components/p-acf59d10.entry.js +0 -1
  797. package/dist/stzh-components/p-ad62a793.system.entry.js +0 -1
  798. package/dist/stzh-components/p-ad816fd9.entry.js +0 -1
  799. package/dist/stzh-components/p-ad96eb50.entry.js +0 -1
  800. package/dist/stzh-components/p-ae673b30.system.entry.js +0 -1
  801. package/dist/stzh-components/p-af05718d.system.entry.js +0 -1
  802. package/dist/stzh-components/p-b395bed5.system.entry.js +0 -1
  803. package/dist/stzh-components/p-b4c28bf5.entry.js +0 -1
  804. package/dist/stzh-components/p-b61f7404.entry.js +0 -1
  805. package/dist/stzh-components/p-b9bd42e6.system.entry.js +0 -1
  806. package/dist/stzh-components/p-b9f784e4.system.entry.js +0 -1
  807. package/dist/stzh-components/p-bada7caa.system.entry.js +0 -1
  808. package/dist/stzh-components/p-bcfba21f.entry.js +0 -1
  809. package/dist/stzh-components/p-bd1a5d6d.system.entry.js +0 -1
  810. package/dist/stzh-components/p-be68b323.entry.js +0 -1
  811. package/dist/stzh-components/p-c457dad2.system.entry.js +0 -1
  812. package/dist/stzh-components/p-c80a9d50.entry.js +0 -1
  813. package/dist/stzh-components/p-c87e9b71.entry.js +0 -1
  814. package/dist/stzh-components/p-c9940c35.entry.js +0 -1
  815. package/dist/stzh-components/p-cab1a192.entry.js +0 -1
  816. package/dist/stzh-components/p-cd979ce9.system.entry.js +0 -1
  817. package/dist/stzh-components/p-ce5db779.system.entry.js +0 -1
  818. package/dist/stzh-components/p-d29fd401.entry.js +0 -1
  819. package/dist/stzh-components/p-d585e8fd.system.entry.js +0 -1
  820. package/dist/stzh-components/p-d5994419.system.entry.js +0 -1
  821. package/dist/stzh-components/p-d6e5f396.system.entry.js +0 -1
  822. package/dist/stzh-components/p-dd1bb919.entry.js +0 -1
  823. package/dist/stzh-components/p-de76e01b.entry.js +0 -1
  824. package/dist/stzh-components/p-e085a0a0.entry.js +0 -1
  825. package/dist/stzh-components/p-e1501622.system.entry.js +0 -1
  826. package/dist/stzh-components/p-e2d80ee3.entry.js +0 -1
  827. package/dist/stzh-components/p-e3afc8f7.entry.js +0 -1
  828. package/dist/stzh-components/p-e4aa12ba.system.entry.js +0 -1
  829. package/dist/stzh-components/p-e54f66ea.system.entry.js +0 -1
  830. package/dist/stzh-components/p-e59c2adc.system.entry.js +0 -1
  831. package/dist/stzh-components/p-e7909de9.system.entry.js +0 -1
  832. package/dist/stzh-components/p-e8feb92e.system.entry.js +0 -1
  833. package/dist/stzh-components/p-e9994d05.system.entry.js +0 -1
  834. package/dist/stzh-components/p-eb16ad0d.entry.js +0 -9
  835. package/dist/stzh-components/p-eb1ea7f0.entry.js +0 -1
  836. package/dist/stzh-components/p-eb7773f3.entry.js +0 -1
  837. package/dist/stzh-components/p-ec87506f.entry.js +0 -1
  838. package/dist/stzh-components/p-ee20b95b.system.entry.js +0 -1
  839. package/dist/stzh-components/p-eed126cf.system.entry.js +0 -1
  840. package/dist/stzh-components/p-f122e15d.system.entry.js +0 -1
  841. package/dist/stzh-components/p-f27d1a06.system.entry.js +0 -1
  842. package/dist/stzh-components/p-f2deda0a.entry.js +0 -1
  843. package/dist/stzh-components/p-f449f909.entry.js +0 -1
  844. package/dist/stzh-components/p-f7bb76d8.system.entry.js +0 -1
  845. package/dist/stzh-components/p-f7e18135.entry.js +0 -1
  846. package/dist/stzh-components/p-f9ab0433.entry.js +0 -1
  847. package/dist/stzh-components/p-fe1c8047.system.entry.js +0 -1
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{l(o.next(t))}catch(e){r(e)}}function a(t){try{l(o["throw"](t))}catch(e){r(e)}}function l(t){t.done?n(t.value):i(t.value).then(s,a)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(a){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(l){a=[6,l];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{c as createFocusTrap}from"./focus-trap.esm-82634dec.js";var stzhOverlayCss=".sc-stzh-overlay-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-overlay-h{display:none}.sc-stzh-overlay-h *.sc-stzh-overlay,.sc-stzh-overlay-h *.sc-stzh-overlay::before,.sc-stzh-overlay-h *.sc-stzh-overlay::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-overlay-h{--backdrop-opacity:0.8}.stzh-overlay.sc-stzh-overlay{display:none;z-index:var(--stzh-z-index-overlay);position:fixed;top:0;left:0;width:100%;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:stretch;justify-content:stretch;-ms-flex-align:stretch;align-items:stretch}.stzh-overlay__backdrop.sc-stzh-overlay{z-index:1;background-color:var(--stzh-color-white);opacity:var(--backdrop-opacity);position:absolute;top:0;left:0;width:100%;height:100%}.stzh-overlay__content.sc-stzh-overlay{z-index:2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;position:relative;-ms-flex-positive:1;flex-grow:1;overflow:auto}.stzh-overlay__content-inner.sc-stzh-overlay{margin-top:auto;margin-bottom:auto;outline:none}.stzh-overlay--is-open.sc-stzh-overlay{display:-ms-flexbox;display:flex}";var CLASS_BODY_OPEN="stzh-overlay-open";var StzhOverlay=function(){function t(t){registerInstance(this,t);this.stzhOpen=createEvent(this,"stzhOpen",7);this.stzhClose=createEvent(this,"stzhClose",7);this.open=false;this.stay=true;this.a11yLabel=""}t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=true;this.stzhOpen.emit({component:"stzh-overlay"});return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;this.stzhClose.emit({component:"stzh-overlay"});return[2]}))}))};t.prototype.getSiblings=function(){var t=this;if(!this.parentElement){return[]}return Array.from(this.parentElement.children).filter((function(e){return e!==t.element}))};t.prototype.disableSiblings=function(){this.getSiblings().forEach((function(t){t.setAttribute("aria-hidden","true")}))};t.prototype.enableSiblings=function(){this.getSiblings().forEach((function(t){t.removeAttribute("aria-hidden")}))};t.prototype.dialogShown=function(){document.body.classList.add(CLASS_BODY_OPEN);this.disableSiblings();if(this.trap){this.trap.activate()}};t.prototype.dialogHidden=function(){document.body.classList.remove(CLASS_BODY_OPEN);this.enableSiblings();if(this.trap){this.trap.deactivate()}};t.prototype.connectedCallback=function(){if(!this.stay&&this.element.parentElement!==document.body){document.body.appendChild(this.element)}this.parentElement=this.element.parentElement};t.prototype.componentDidRender=function(){this.open?this.dialogShown():this.dialogHidden()};t.prototype.componentDidUpdate=function(){this.trap.updateContainerElements(this.element)};t.prototype.componentDidLoad=function(){this.trap=createFocusTrap(this.element,{fallbackFocus:this.dialogElement,returnFocusOnDeactivate:true});if(this.open){this.dialogShown()}};t.prototype.disconnectedCallback=function(){this.dialogHidden()};t.prototype.render=function(){var t=this;var e={"stzh-overlay":true,"stzh-overlay--is-open":this.open};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-overlay__backdrop"}),h("div",{class:"stzh-overlay__content"},h("div",{class:"stzh-overlay__content-inner",ref:function(e){return t.dialogElement=e},tabindex:"-1",role:"dialog","aria-label":this.a11yLabel,"aria-hidden":this.open?"false":"true"},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhOverlay.style=stzhOverlayCss;export{StzhOverlay as stzh_overlay};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,n,o){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function s(t){try{l(o.next(t))}catch(e){r(e)}}function a(t){try{l(o["throw"](t))}catch(e){r(e)}}function l(t){t.done?n(t.value):i(t.value).then(s,a)}l((o=o.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},o,i,r,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(a){if(o)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(n=0)),n)try{if(o=1,i&&(r=a[0]&2?i["return"]:a[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,a[1])).done)return r;if(i=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:n.label++;return{value:a[1],done:false};case 5:n.label++;i=a[1];a=[0];continue;case 7:a=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){n=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){n.label=a[1];break}if(a[0]===6&&n.label<r[1]){n.label=r[1];r=a;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(a);break}if(r[2])n.ops.pop();n.trys.pop();continue}a=e.call(t,n)}catch(l){a=[6,l];i=0}finally{o=r=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{c as createBaseFocusTrapOptions}from"./overlay-utils-33021971.js";import{c as createFocusTrap}from"./focus-trap.esm-82634dec.js";var stzhOverlayCss=".sc-stzh-overlay-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-overlay-h{display:none}.sc-stzh-overlay-h *.sc-stzh-overlay,.sc-stzh-overlay-h *.sc-stzh-overlay::before,.sc-stzh-overlay-h *.sc-stzh-overlay::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-overlay-h{--backdrop-opacity:0.8}.stzh-overlay.sc-stzh-overlay{display:none;z-index:var(--stzh-z-index-overlay);position:fixed;top:0;left:0;width:100%;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:stretch;justify-content:stretch;-ms-flex-align:stretch;align-items:stretch}.stzh-overlay__backdrop.sc-stzh-overlay{z-index:1;background-color:var(--stzh-color-white);opacity:var(--backdrop-opacity);position:absolute;top:0;left:0;width:100%;height:100%}.stzh-overlay__content.sc-stzh-overlay{z-index:2;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;position:relative;-ms-flex-positive:1;flex-grow:1;overflow:auto}.stzh-overlay__content-inner.sc-stzh-overlay{margin-top:auto;margin-bottom:auto;outline:none}.stzh-overlay--is-open.sc-stzh-overlay{display:-ms-flexbox;display:flex}";var CLASS_BODY_OPEN="stzh-overlay-open";var StzhOverlay=function(){function t(t){registerInstance(this,t);this.stzhOpen=createEvent(this,"stzhOpen",7);this.stzhClose=createEvent(this,"stzhClose",7);this.open=false;this.stay=true;this.a11yLabel=""}t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=true;this.stzhOpen.emit({component:"stzh-overlay"});return[2]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.open=false;this.stzhClose.emit({component:"stzh-overlay"});return[2]}))}))};t.prototype.getSiblings=function(){var t=this;if(!this.parentElement){return[]}return Array.from(this.parentElement.children).filter((function(e){return e!==t.element}))};t.prototype.disableSiblings=function(){this.getSiblings().forEach((function(t){t.setAttribute("aria-hidden","true")}))};t.prototype.enableSiblings=function(){this.getSiblings().forEach((function(t){t.removeAttribute("aria-hidden")}))};t.prototype.dialogShown=function(){document.body.classList.add(CLASS_BODY_OPEN);this.disableSiblings();if(this.trap){this.trap.activate()}};t.prototype.dialogHidden=function(){document.body.classList.remove(CLASS_BODY_OPEN);this.enableSiblings();if(this.trap){this.trap.deactivate()}};t.prototype.connectedCallback=function(){if(!this.stay&&this.element.parentElement!==document.body){document.body.appendChild(this.element)}this.parentElement=this.element.parentElement};t.prototype.componentDidRender=function(){this.open?this.dialogShown():this.dialogHidden()};t.prototype.componentDidUpdate=function(){this.trap.updateContainerElements(this.element)};t.prototype.componentDidLoad=function(){this.trap=createFocusTrap(this.element,Object.assign({fallbackFocus:this.dialogElement},createBaseFocusTrapOptions()));if(this.open){this.dialogShown()}};t.prototype.disconnectedCallback=function(){this.dialogHidden()};t.prototype.render=function(){var t=this;var e={"stzh-overlay":true,"stzh-overlay--is-open":this.open};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-overlay__backdrop"}),h("div",{class:"stzh-overlay__content"},h("div",{class:"stzh-overlay__content-inner",ref:function(e){return t.dialogElement=e},tabindex:"-1",role:"dialog","aria-label":this.a11yLabel,"aria-hidden":this.open?"false":"true"},h("slot",null)))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhOverlay.style=stzhOverlayCss;export{StzhOverlay as stzh_overlay};
@@ -1 +1 @@
1
- import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";var stzhPageSkiplinksCss=".sc-stzh-page-skiplinks-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-page-skiplinks-h{display:none}.sc-stzh-page-skiplinks-h *.sc-stzh-page-skiplinks,.sc-stzh-page-skiplinks-h *.sc-stzh-page-skiplinks::before,.sc-stzh-page-skiplinks-h *.sc-stzh-page-skiplinks::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-page-skiplinks-h{z-index:var(--stzh-z-index-popup);position:absolute;top:var(--stzh-space-medium);right:var(--stzh-grid-gutter-small)}@media screen and (min-width: 800px){.sc-stzh-page-skiplinks-h{right:50%}}@media screen and (min-width: 1260px){.sc-stzh-page-skiplinks-h{top:var(--stzh-space-xlarge);right:60%}}";var StzhPageSkiplinks=function(){function s(s){var e=this;registerInstance(this,s);this.init=function(){var s=e.element.querySelectorAll("stzh-skiplink");s.forEach((function(s){s.setAttribute("role","listitem")}))}}s.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};s.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};s.prototype.render=function(){return h(Host,null,h("div",{class:"stzh-page-skiplinks",role:"list"},h("slot",null)))};Object.defineProperty(s.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return s}();StzhPageSkiplinks.style=stzhPageSkiplinksCss;export{StzhPageSkiplinks as stzh_page_skiplinks};
1
+ import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";var stzhPageSkiplinksCss=".sc-stzh-page-skiplinks-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-page-skiplinks-h{display:none}.sc-stzh-page-skiplinks-h *.sc-stzh-page-skiplinks,.sc-stzh-page-skiplinks-h *.sc-stzh-page-skiplinks::before,.sc-stzh-page-skiplinks-h *.sc-stzh-page-skiplinks::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-page-skiplinks-h{z-index:var(--stzh-z-index-popup);position:absolute;top:var(--stzh-space-medium);right:var(--stzh-grid-gutter-small)}@media screen and (min-width: 800px){.sc-stzh-page-skiplinks-h{right:50%}}@media screen and (min-width: 1260px){.sc-stzh-page-skiplinks-h{top:var(--stzh-space-xlarge);right:60%}}";var StzhPageSkiplinks=function(){function e(e){var t=this;registerInstance(this,e);this.init=function(){var e=t.element.querySelectorAll("stzh-skiplink");e.forEach((function(e){e.setAttribute("role","listitem")}))}}e.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};e.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};e.prototype.render=function(){return h(Host,null,h("div",{class:"stzh-page-skiplinks",role:"list"},h("slot",null)))};Object.defineProperty(e.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return e}();StzhPageSkiplinks.style=stzhPageSkiplinksCss;export{StzhPageSkiplinks as stzh_page_skiplinks};
@@ -1 +1 @@
1
- import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";import{h as hasSlot}from"./utils-51148d9a.js";var stzhPagebottomCss=".sc-stzh-pagebottom-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagebottom-h{display:none}.sc-stzh-pagebottom-h *.sc-stzh-pagebottom,.sc-stzh-pagebottom-h *.sc-stzh-pagebottom::before,.sc-stzh-pagebottom-h *.sc-stzh-pagebottom::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-pagebottom-h .sc-stzh-pagebottom-s>[slot=logo]{height:2.375rem}.stzh-pagebottom.sc-stzh-pagebottom{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 600px){.stzh-pagebottom.sc-stzh-pagebottom{-ms-flex-direction:row;flex-direction:row}}.stzh-pagebottom__share-title.sc-stzh-pagebottom{font-size:var(--stzh-font-curve-caption-default-font-size, var(--stzh-font-nano-font-size));line-height:var(--stzh-font-curve-caption-default-text-line-height, var(--stzh-font-nano-text-line-height));margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagebottom__share-title.sc-stzh-pagebottom{font-size:var(--stzh-font-curve-caption-medium-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-caption-medium-text-line-height, var(--stzh-font-micro-text-line-height))}}@media screen and (min-width: 600px){.stzh-pagebottom__logo.sc-stzh-pagebottom{margin-left:auto}}.stzh-pagebottom__logo-link.sc-stzh-pagebottom:not(:empty){display:block;margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 600px){.stzh-pagebottom__logo-link.sc-stzh-pagebottom:not(:empty){margin-top:0;margin-left:var(--stzh-space-xlarge)}}.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xlarge);border-top:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xxxlarge)}}";var StzhPagebottom=function(){function t(t){registerInstance(this,t);this.shareTitle="";this.shareUrl=undefined;this.shareServices=undefined;this.shareDisabled=false;this.logoHref="https://www.stadt-zuerich.ch";this.withBorder=false}t.prototype.render=function(){var t=hasSlot(this.element,"logo");var e={"stzh-pagebottom":true,"stzh-pagebottom--has-border":this.withBorder};return h(Host,null,h("div",{class:e},!this.shareDisabled&&h("div",{class:"stzh-pagebottom__share-wrapper"},this.shareTitle&&h("div",{class:"stzh-pagebottom__share-title"},this.shareTitle),h("stzh-share",{url:this.shareUrl,services:this.shareServices})),t&&h("div",{class:"stzh-pagebottom__logo"},h("a",{href:this.logoHref,class:"stzh-pagebottom__logo-link"},h("slot",{name:"logo"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhPagebottom.style=stzhPagebottomCss;export{StzhPagebottom as stzh_pagebottom};
1
+ import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";import{h as hasSlot}from"./utils-51148d9a.js";var stzhPagebottomCss=".sc-stzh-pagebottom-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagebottom-h{display:none}.sc-stzh-pagebottom-h *.sc-stzh-pagebottom,.sc-stzh-pagebottom-h *.sc-stzh-pagebottom::before,.sc-stzh-pagebottom-h *.sc-stzh-pagebottom::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-pagebottom-h .sc-stzh-pagebottom-s>[slot=logo]{height:2.375rem}.stzh-pagebottom.sc-stzh-pagebottom{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}@media screen and (min-width: 600px){.stzh-pagebottom.sc-stzh-pagebottom{-ms-flex-direction:row;flex-direction:row}}.stzh-pagebottom__share-title.sc-stzh-pagebottom{font-size:var(--stzh-font-curve-caption-default-font-size, var(--stzh-font-nano-font-size));line-height:var(--stzh-font-curve-caption-default-text-line-height, var(--stzh-font-nano-text-line-height));margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagebottom__share-title.sc-stzh-pagebottom{font-size:var(--stzh-font-curve-caption-medium-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-caption-medium-text-line-height, var(--stzh-font-micro-text-line-height))}}@media screen and (min-width: 600px){.stzh-pagebottom__logo.sc-stzh-pagebottom{margin-left:auto}}.stzh-pagebottom__logo-link.sc-stzh-pagebottom:not(:empty){display:block;margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 600px){.stzh-pagebottom__logo-link.sc-stzh-pagebottom:not(:empty){margin-top:0;margin-left:var(--stzh-space-xlarge)}}.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xlarge);border-top:0.0625rem solid var(--stzh-base-border-color)}@media screen and (min-width: 1024px){.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagebottom--has-border.sc-stzh-pagebottom{padding-top:var(--stzh-space-xxxlarge)}}";var StzhPagebottom=function(){function t(t){registerInstance(this,t);this.shareTitle="";this.shareUrl=undefined;this.shareServices=undefined;this.shareDisabled=false;this.logoHref="https://www.stadt-zuerich.ch";this.withBorder=false}t.prototype.render=function(){var t=hasSlot(this.element,"logo");var e={"stzh-pagebottom":true,"stzh-pagebottom--has-border":this.withBorder};return h(Host,null,h("div",{class:e},!this.shareDisabled&&h("div",{class:"stzh-pagebottom__share-wrapper"},this.shareTitle&&h("div",{class:"stzh-pagebottom__share-title"},this.shareTitle),h("stzh-share",{url:this.shareUrl,services:this.shareServices})),t&&h("div",{class:"stzh-pagebottom__logo"},h("a",{href:this.logoHref,class:"stzh-pagebottom__logo-link"},h("slot",{name:"logo"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhPagebottom.style=stzhPagebottomCss;export{StzhPagebottom as stzh_pagebottom};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,r,i,a){function o(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function n(t){try{l(a.next(t))}catch(e){s(e)}}function h(t){try{l(a["throw"](t))}catch(e){s(e)}}function l(e){e.done?i(e.value):o(e.value).then(n,h)}l((a=a.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},a,o,s,n;return n={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function h(e){return function(t){return l([e,t])}}function l(h){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,h[0]&&(i=0)),i)try{if(a=1,o&&(s=h[0]&2?o["return"]:h[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,h[1])).done)return s;if(o=0,s)h=[h[0]&2,s.value];switch(h[0]){case 0:case 1:s=h;break;case 4:i.label++;return{value:h[1],done:false};case 5:i.label++;o=h[1];h=[0];continue;case 7:h=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){i.label=h[1];break}if(h[0]===6&&i.label<s[1]){i.label=s[1];s=h;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(h);break}if(s[2])i.ops.pop();i.trys.pop();continue}h=r.call(t,i)}catch(e){h=[6,e];o=0}finally{a=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";import{s as setPropsIfNull,h as hasSlot}from"./utils-51148d9a.js";import{a as addMediaChangeListener,r as removeMediaChangeListener,m as media}from"./media-utils-9b041ceb.js";var e=function(e){if(e){var t=function(e){return[].slice.call(e)},r=0,i=1,a=2,o=3,s=[],n=null,h="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(n),n=e.requestAnimationFrame((function(){return c(s.filter((function(e){return e.dirty&&e.active})))}))}:function(){},l=function(e){return function(){s.forEach((function(t){return t.dirty=e})),h()}},c=function(e){e.filter((function(e){return!e.styleComputed})).forEach((function(e){e.styleComputed=z(e)})),e.filter(m).forEach(u);var t=e.filter(d);t.forEach(g),t.forEach((function(e){u(e),p(e)})),t.forEach(v)},p=function(e){return e.dirty=r},g=function(e){e.availableWidth=e.element.parentNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.currentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.currentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFontSize===e.minSize?"normal":"nowrap"},d=function(e){return e.dirty!==a||e.dirty===a&&e.element.parentNode.clientWidth!==e.availableWidth},z=function(t){var r=e.getComputedStyle(t.element,null);return t.currentFontSize=parseFloat(r.getPropertyValue("font-size")),t.display=r.getPropertyValue("display"),t.whiteSpace=r.getPropertyValue("white-space"),!0},m=function(e){var t=!1;return!e.preStyleTestCompleted&&(/inline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace&&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},u=function(e){e.element.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element.style.fontSize=e.currentFontSize+"px"},v=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSize,scaleFactor:e.currentFontSize/e.previousFontSize}}))},f=function(e,t){return function(){e.dirty=t,e.active&&h()}},b=function(e){return function(){s=s.filter((function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disconnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.display=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize}},x=function(e){return function(){e.active||(e.active=!0,h())}},w=function(e){return function(){return e.active=!1}},_=function(e){e.observeMutations&&(e.observer=new MutationObserver(f(e,i)),e.observer.observe(e.element,e.observeMutations))},y={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},k=null,S=function(){e.clearTimeout(k),k=e.setTimeout(l(a),P.observeWindowDelay)},F=["resize","orientationchange"];return Object.defineProperty(P,"observeWindow",{set:function(t){var r="".concat(t?"add":"remove","EventListener");F.forEach((function(t){e[r](t,S)}))}}),P.observeWindow=!0,P.observeWindowDelay=100,P.fitAll=l(o),P}function E(e,t){var r=Object.assign({},y,t),i=e.map((function(e){var t=Object.assign({},r,{element:e,active:!0});return function(e){e.originalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display,fontSize:e.element.style.fontSize},_(e),e.newbie=!0,e.dirty=!0,s.push(e)}(t),{element:e,fit:f(t,o),unfreeze:x(t),freeze:w(t),unsubscribe:b(t)}}));return h(),i}function P(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?E(t(document.querySelectorAll(e)),r):E([e],r)[0]}}("undefined"==typeof window?null:window);var stzhPagetitleHeroCss=".sc-stzh-pagetitle-hero-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-hero-h{display:none}.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::before,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>img[slot=image],.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>[slot=image] img{display:block;position:absolute;width:100%;height:100%;top:0;left:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter]:not([disabled]){--color:var(--stzh-color-white);--border-color:var(--stzh-color-white);--remove-color:var(--stzh-color-white);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--counter-color:var(--stzh-color-white56);--icon-color:var(--stzh-color-white);--hover-color:var(--stzh-color-white);--hover-border:0.0625rem solid transparent;--hover-background-color:var(--stzh-color-white16);--hover-remove-color:var(--stzh-color-white);--hover-remove-background-color:var(--stzh-color-white16);--hover-counter-color:var(--stzh-color-white);--hover-icon-color:var(--stzh-color-white)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter][non-interactive]:not([non-interactive=false]):not([disabled]){--hover-color:var(--color);--hover-border-color:var(--border-color);--hover-background-color:var(--background-color);--hover-icon-color:var(--icon-color);--hover-counter-color:var(--counter-color)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter][active]:not([active=false]):not([disabled]){--border-color:transparent;--background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-remove-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag]:not(:last-child){margin-right:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero.sc-stzh-pagetitle-hero{padding-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero{list-style:none;padding:0;margin:0;display:-ms-flexbox;display:flex}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero:not(:empty){margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{position:absolute;left:0;top:0}}@media screen and (max-width: 1023px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero:not(:empty){margin:var(--stzh-space-xlarge) 0}}.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{--stzh-flyingfocus-color:var(--stzh-base-invert-color);--stzh-base-color:var(--stzh-base-invert-color);--stzh-base-lead-color:var(--stzh-base-invert-color);--stzh-base-border-color:var(--stzh-base-invert-color);--stzh-heading-color:var(--stzh-base-invert-color);--stzh-link-color:var(--stzh-base-invert-color);--stzh-link-hover-color:var(--stzh-base-invert-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:1;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding:var(--stzh-space-xxxlarge) var(--stzh-space-xlarge);margin-top:calc(var(--stzh-space-xxxlarge) * -1)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xxxxlarge) var(--stzh-space-xxlarge);margin-top:calc(var(--stzh-space-big) * -1)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin:var(--stzh-space-big) 0;width:50%;margin-left:-8.3333333333%}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xbig)}}.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-white);margin:0;font-size:1.875rem;line-height:1.107;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:normal;word-break:normal;word-break:break-word}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-size:2.8125rem}}.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h3-default-text-letter-spacing);margin-top:var(--stzh-space-xlarge);color:var(--stzh-color-white)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-text-line-height, var(--stzh-font-deci-text-line-height));letter-spacing:var(--stzh-font-curve-h3-small-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-text-line-height, var(--stzh-font-regular-text-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxxlarge);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 600px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row;flex-direction:row}}.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{position:relative;-ms-flex-negative:0;flex-shrink:0;background-color:var(--stzh-color-grey5);margin-left:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2);margin-right:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{width:58.3333333333%;margin-left:0;margin-right:0}}.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{position:relative;width:100%;height:0;padding-bottom:75%}@media screen and (min-width: 600px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:56.25%}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:75%}}.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin:0 auto;margin-bottom:var(--stzh-space-large)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge);max-width:66.6666666667%}}.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin-right:-8.3333333333%}}.stzh-pagetitle-hero--has-no-lead.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:column;flex-direction:column;margin-top:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{width:100%;margin:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xlarge);margin-bottom:var(--stzh-space-xlarge);position:static}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxlarge)}}";var StzhPagetitleHero=function(){function t(t){var r=this;registerInstance(this,t);this.init=function(){var e=r.element.querySelector('stzh-link[slot="back-link"], [slot="back-link"] stzh-link');var t=r.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text');var i=r.element.querySelectorAll('stzh-chip[slot="tag"], [slot="tag"] stzh-chip');if(e){setPropsIfNull(e,{icon:"arrow-left-circle"})}t.forEach((function(e){setPropsIfNull(e,{lead:true})}));i.forEach((function(e){setPropsIfNull(e,{role:"listitem"})}))};this.reinitFitty=function(){r.destroyFitty();var t=media("small").matches;r.fitty=e(r.mainTitleElement,{minSize:t?45:32,maxSize:t?96:64})};this.heading="";this.leadAuthor="";this.subtitle=""}t.prototype.destroyFitty=function(){if(this.fitty){this.fitty.unsubscribe();this.fitty=null}};t.prototype.componentWillUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.destroyFitty();return[2]}))}))};t.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.fitty){return[2]}this.reinitFitty();return[2]}))}))};t.prototype.connectedCallback=function(){this.init();addMediaChangeListener(this.reinitFitty);this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}removeMediaChangeListener(this.reinitFitty);this.destroyFitty()};t.prototype.render=function(){var e=this;var t=hasSlot(this.element,"image");var r=hasSlot(this.element,"lead");var i=hasSlot(this.element,"back-link");var a={"stzh-pagetitle-hero":true,"stzh-pagetitle-hero--has-no-image":!t,"stzh-pagetitle-hero--has-no-lead":!r,"stzh-pagetitle-hero--has-back-link":i};return h(Host,null,h("div",{class:a},h("div",{class:"stzh-pagetitle-hero__header"},h("div",{class:"stzh-pagetitle-hero__back-link"},h("slot",{name:"back-link"})),h("div",{class:"stzh-pagetitle-hero__image-wrapper"},h("div",{class:"stzh-pagetitle-hero__image-ratio"}),h("slot",{name:"image"})),h("div",{class:"stzh-pagetitle-hero__title-wrapper"},h("div",{class:"stzh-pagetitle-hero__tags",role:"list"},h("slot",{name:"tag"})),h("div",{class:"stzh-pagetitle-hero__title-parent"},h("h1",{ref:function(t){return e.mainTitleElement=t},class:"stzh-pagetitle-hero__title"},this.heading)),this.subtitle&&h("div",{class:"stzh-pagetitle-hero__subtitle"},this.subtitle))),h("div",{class:"stzh-pagetitle-hero__lead"},h("slot",{name:"lead"}),h("div",{class:"stzh-pagetitle-hero__lead-author"},this.leadAuthor))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhPagetitleHero.style=stzhPagetitleHeroCss;export{StzhPagetitleHero as stzh_pagetitle_hero};
1
+ var __awaiter=this&&this.__awaiter||function(t,r,i,o){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,s){function n(t){try{l(o.next(t))}catch(e){s(e)}}function h(t){try{l(o["throw"](t))}catch(e){s(e)}}function l(e){e.done?i(e.value):a(e.value).then(n,h)}l((o=o.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var i={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},o,a,s,n;return n={next:h(0),throw:h(1),return:h(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function h(e){return function(t){return l([e,t])}}function l(h){if(o)throw new TypeError("Generator is already executing.");while(n&&(n=0,h[0]&&(i=0)),i)try{if(o=1,a&&(s=h[0]&2?a["return"]:h[0]?a["throw"]||((s=a["return"])&&s.call(a),0):a.next)&&!(s=s.call(a,h[1])).done)return s;if(a=0,s)h=[h[0]&2,s.value];switch(h[0]){case 0:case 1:s=h;break;case 4:i.label++;return{value:h[1],done:false};case 5:i.label++;a=h[1];h=[0];continue;case 7:h=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(h[0]===6||h[0]===2)){i=0;continue}if(h[0]===3&&(!s||h[1]>s[0]&&h[1]<s[3])){i.label=h[1];break}if(h[0]===6&&i.label<s[1]){i.label=s[1];s=h;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(h);break}if(s[2])i.ops.pop();i.trys.pop();continue}h=r.call(t,i)}catch(e){h=[6,e];a=0}finally{o=s=0}if(h[0]&5)throw h[1];return{value:h[0]?h[1]:void 0,done:true}}};import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";import{s as setPropsIfNull,h as hasSlot}from"./utils-51148d9a.js";import{a as addMediaChangeListener,r as removeMediaChangeListener,m as media}from"./media-utils-9b041ceb.js";var e=function(e){if(e){var t=function(e){return[].slice.call(e)},r=0,i=1,o=2,a=3,s=[],n=null,h="requestAnimationFrame"in e?function(){e.cancelAnimationFrame(n),n=e.requestAnimationFrame((function(){return c(s.filter((function(e){return e.dirty&&e.active})))}))}:function(){},l=function(e){return function(){s.forEach((function(t){return t.dirty=e})),h()}},c=function(e){e.filter((function(e){return!e.styleComputed})).forEach((function(e){e.styleComputed=d(e)})),e.filter(v).forEach(u);var t=e.filter(z);t.forEach(g),t.forEach((function(e){u(e),p(e)})),t.forEach(m)},p=function(e){return e.dirty=r},g=function(e){e.availableWidth=e.element.parentNode.clientWidth,e.currentWidth=e.element.scrollWidth,e.previousFontSize=e.currentFontSize,e.currentFontSize=Math.min(Math.max(e.minSize,e.availableWidth/e.currentWidth*e.previousFontSize),e.maxSize),e.whiteSpace=e.multiLine&&e.currentFontSize===e.minSize?"normal":"nowrap"},z=function(e){return e.dirty!==o||e.dirty===o&&e.element.parentNode.clientWidth!==e.availableWidth},d=function(t){var r=e.getComputedStyle(t.element,null);return t.currentFontSize=parseFloat(r.getPropertyValue("font-size")),t.display=r.getPropertyValue("display"),t.whiteSpace=r.getPropertyValue("white-space"),!0},v=function(e){var t=!1;return!e.preStyleTestCompleted&&(/inline-/.test(e.display)||(t=!0,e.display="inline-block"),"nowrap"!==e.whiteSpace&&(t=!0,e.whiteSpace="nowrap"),e.preStyleTestCompleted=!0,t)},u=function(e){e.element.style.whiteSpace=e.whiteSpace,e.element.style.display=e.display,e.element.style.fontSize=e.currentFontSize+"px"},m=function(e){e.element.dispatchEvent(new CustomEvent("fit",{detail:{oldValue:e.previousFontSize,newValue:e.currentFontSize,scaleFactor:e.currentFontSize/e.previousFontSize}}))},f=function(e,t){return function(){e.dirty=t,e.active&&h()}},b=function(e){return function(){s=s.filter((function(t){return t.element!==e.element})),e.observeMutations&&e.observer.disconnect(),e.element.style.whiteSpace=e.originalStyle.whiteSpace,e.element.style.display=e.originalStyle.display,e.element.style.fontSize=e.originalStyle.fontSize}},x=function(e){return function(){e.active||(e.active=!0,h())}},w=function(e){return function(){return e.active=!1}},_=function(e){e.observeMutations&&(e.observer=new MutationObserver(f(e,i)),e.observer.observe(e.element,e.observeMutations))},y={minSize:16,maxSize:512,multiLine:!0,observeMutations:"MutationObserver"in e&&{subtree:!0,childList:!0,characterData:!0}},k=null,S=function(){e.clearTimeout(k),k=e.setTimeout(l(o),P.observeWindowDelay)},F=["resize","orientationchange"];return Object.defineProperty(P,"observeWindow",{set:function(t){var r="".concat(t?"add":"remove","EventListener");F.forEach((function(t){e[r](t,S)}))}}),P.observeWindow=!0,P.observeWindowDelay=100,P.fitAll=l(a),P}function E(e,t){var r=Object.assign({},y,t),i=e.map((function(e){var t=Object.assign({},r,{element:e,active:!0});return function(e){e.originalStyle={whiteSpace:e.element.style.whiteSpace,display:e.element.style.display,fontSize:e.element.style.fontSize},_(e),e.newbie=!0,e.dirty=!0,s.push(e)}(t),{element:e,fit:f(t,a),unfreeze:x(t),freeze:w(t),unsubscribe:b(t)}}));return h(),i}function P(e){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"string"==typeof e?E(t(document.querySelectorAll(e)),r):E([e],r)[0]}}("undefined"==typeof window?null:window);var stzhPagetitleHeroCss=".sc-stzh-pagetitle-hero-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-hero-h{display:none}.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::before,.sc-stzh-pagetitle-hero-h *.sc-stzh-pagetitle-hero::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>img[slot=image],.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>[slot=image] img{display:block;position:absolute;width:100%;height:100%;top:0;left:0;-o-object-fit:cover;object-fit:cover;-o-object-position:center;object-position:center}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter]{--color:var(--stzh-base-invert-color);--border-color:var(--stzh-base-invert-color);--remove-color:var(--stzh-base-invert-color);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--counter-color:var(--stzh-color-white56);--icon-color:var(--stzh-base-invert-color);--hover-color:var(--stzh-base-invert-color);--hover-border:0.0625rem solid transparent;--hover-background-color:var(--stzh-color-white16);--hover-remove-color:var(--stzh-base-invert-color);--hover-remove-background-color:var(--stzh-color-white16);--hover-counter-color:var(--stzh-base-invert-color);--hover-icon-color:var(--stzh-base-invert-color)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][variant=filter][non-interactive]:not([non-interactive=false]){--hover-color:var(--color);--hover-border-color:var(--border-color);--hover-background-color:var(--background-color);--hover-icon-color:var(--icon-color);--hover-counter-color:var(--counter-color)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][active]:not([active=false]){--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:transparent;--remove-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:var(--stzh-base-invert-color);--icon-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--counter-color:var(--stzh-color-primary60op);--hover-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-border-color:transparent;--hover-background-color:var(--stzh-color-white72);--hover-remove-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-remove-background-color:var(--stzh-color-white16);--hover-icon-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-counter-color:var(--stzh-color-primary60op)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag][disabled]:not([disabled=false]){--color:var(--stzh-color-white32);--border-color:var(--stzh-color-white32);--remove-color:var(--stzh-color-white32);--background-color:transparent;--icon-color:var(--stzh-color-white32);--counter-color:var(--stzh-color-white16);--hover-color:var(--stzh-color-white32);--hover-border-color:var(--stzh-color-white32);--hover-background-color:transparent;--hover-remove-color:var(--stzh-color-white32);--hover-remove-background-color:transparent;--hover-icon-color:var(--stzh-color-white32);--hover-counter-color:var(--stzh-color-white16)}.sc-stzh-pagetitle-hero-h .sc-stzh-pagetitle-hero-s>stzh-chip[slot=tag]:not(:last-child){margin-right:var(--stzh-space-xsmall)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero.sc-stzh-pagetitle-hero{padding-top:var(--stzh-space-xxlarge)}}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero{list-style:none;padding:0;margin:0;display:-ms-flexbox;display:flex}.stzh-pagetitle-hero__tags.sc-stzh-pagetitle-hero:not(:empty){margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{position:absolute;left:0;top:0}}@media screen and (max-width: 1023px){.stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero:not(:empty){margin:var(--stzh-space-xlarge) 0}}.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{--stzh-flyingfocus-color:var(--stzh-base-invert-color);--stzh-base-color:var(--stzh-base-invert-color);--stzh-base-lead-color:var(--stzh-base-invert-color);--stzh-base-border-color:var(--stzh-base-invert-color);--stzh-heading-color:var(--stzh-base-invert-color);--stzh-link-color:var(--stzh-base-invert-color);--stzh-link-hover-color:var(--stzh-base-invert-color);display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-direction:column;flex-direction:column;-ms-flex-negative:0;flex-shrink:0;position:relative;z-index:1;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));padding:var(--stzh-space-xxxlarge) var(--stzh-space-xlarge);margin-top:calc(var(--stzh-space-xxxlarge) * -1)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xxxxlarge) var(--stzh-space-xxlarge);margin-top:calc(var(--stzh-space-big) * -1)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin:var(--stzh-space-big) 0;width:50%;margin-left:-8.3333333333%}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{padding:var(--stzh-space-xbig)}}.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-white);margin:0;font-size:1.875rem;line-height:1.107;overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:normal;word-break:normal;word-break:break-word}@media screen and (min-width: 600px){.stzh-pagetitle-hero__title.sc-stzh-pagetitle-hero{font-size:2.8125rem}}.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-default-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h3-default-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-h3-default-text-letter-spacing);margin-top:var(--stzh-space-xlarge);color:var(--stzh-color-white)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-small-font-size, var(--stzh-font-deci-font-size));line-height:var(--stzh-font-curve-h3-small-text-line-height, var(--stzh-font-deci-text-line-height));letter-spacing:var(--stzh-font-curve-h3-small-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-h3-medium-font-size, var(--stzh-font-regular-font-size));line-height:var(--stzh-font-curve-h3-medium-text-line-height, var(--stzh-font-regular-text-line-height));letter-spacing:var(--stzh-font-curve-h3-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__subtitle.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxxlarge);display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;position:relative}@media screen and (min-width: 600px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-big)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xbig)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row;flex-direction:row}}.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{position:relative;-ms-flex-negative:0;flex-shrink:0;background-color:var(--stzh-color-grey5);margin-left:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2);margin-right:calc((100vw - 100% - var(--stzh-scrollbar-width, 0px)) / -2)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{width:58.3333333333%;margin-left:0;margin-right:0}}.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{position:relative;width:100%;height:0;padding-bottom:75%}@media screen and (min-width: 600px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:56.25%}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__image-ratio.sc-stzh-pagetitle-hero{padding-bottom:75%}}.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin:0 auto;margin-bottom:var(--stzh-space-large)}@media screen and (min-width: 600px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-huge);max-width:66.6666666667%}}.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p1-default-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p1-default-text-letter-spacing);margin-top:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{font-size:var(--stzh-font-curve-p1-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-p1-medium-text-line-height, var(--stzh-font-centi-text-line-height));letter-spacing:var(--stzh-font-curve-p1-medium-text-letter-spacing)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero__lead-author.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:row-reverse;flex-direction:row-reverse}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-back-link.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{margin-right:-8.3333333333%}}.stzh-pagetitle-hero--has-no-lead.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__lead.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__image-wrapper.sc-stzh-pagetitle-hero{display:none}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__header.sc-stzh-pagetitle-hero{-ms-flex-direction:column;flex-direction:column;margin-top:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__title-wrapper.sc-stzh-pagetitle-hero{width:100%;margin:0}.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xlarge);margin-bottom:var(--stzh-space-xlarge);position:static}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-pagetitle-hero--has-no-image.sc-stzh-pagetitle-hero .stzh-pagetitle-hero__back-link.sc-stzh-pagetitle-hero{margin-bottom:var(--stzh-space-xxxlarge)}}";var StzhPagetitleHero=function(){function t(t){var r=this;registerInstance(this,t);this.init=function(){var e=r.element.querySelector('stzh-link[slot="back-link"], [slot="back-link"] stzh-link');var t=r.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text');var i=r.element.querySelectorAll('stzh-chip[slot="tag"], [slot="tag"] stzh-chip');if(e){setPropsIfNull(e,{icon:"arrow-left-circle"})}t.forEach((function(e){setPropsIfNull(e,{lead:true})}));i.forEach((function(e){setPropsIfNull(e,{role:"listitem"})}))};this.reinitFitty=function(){r.destroyFitty();var t=media("small").matches;r.fitty=e(r.mainTitleElement,{minSize:t?45:32,maxSize:t?96:64})};this.heading="";this.leadAuthor="";this.subtitle=""}t.prototype.destroyFitty=function(){if(this.fitty){this.fitty.unsubscribe();this.fitty=null}};t.prototype.componentWillUpdate=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.destroyFitty();return[2]}))}))};t.prototype.componentDidRender=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.fitty){return[2]}this.reinitFitty();return[2]}))}))};t.prototype.connectedCallback=function(){this.init();addMediaChangeListener(this.reinitFitty);this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}removeMediaChangeListener(this.reinitFitty);this.destroyFitty()};t.prototype.render=function(){var e=this;var t=hasSlot(this.element,"image");var r=hasSlot(this.element,"lead");var i=hasSlot(this.element,"back-link");var o={"stzh-pagetitle-hero":true,"stzh-pagetitle-hero--has-no-image":!t,"stzh-pagetitle-hero--has-no-lead":!r,"stzh-pagetitle-hero--has-back-link":i};return h(Host,null,h("div",{class:o},h("div",{class:"stzh-pagetitle-hero__header"},h("div",{class:"stzh-pagetitle-hero__back-link"},h("slot",{name:"back-link"})),h("div",{class:"stzh-pagetitle-hero__image-wrapper"},h("div",{class:"stzh-pagetitle-hero__image-ratio"}),h("slot",{name:"image"})),h("div",{class:"stzh-pagetitle-hero__title-wrapper"},h("div",{class:"stzh-pagetitle-hero__tags",role:"list"},h("slot",{name:"tag"})),h("div",{class:"stzh-pagetitle-hero__title-parent"},h("h1",{ref:function(t){return e.mainTitleElement=t},class:"stzh-pagetitle-hero__title"},this.heading)),this.subtitle&&h("div",{class:"stzh-pagetitle-hero__subtitle"},this.subtitle))),h("div",{class:"stzh-pagetitle-hero__lead"},h("slot",{name:"lead"}),h("div",{class:"stzh-pagetitle-hero__lead-author"},this.leadAuthor))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhPagetitleHero.style=stzhPagetitleHeroCss;export{StzhPagetitleHero as stzh_pagetitle_hero};
@@ -1 +1 @@
1
- import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";import{s as setPropsIfNull,h as hasSlot}from"./utils-51148d9a.js";var stzhPagetitleCss=".sc-stzh-pagetitle-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-h{display:none}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-xlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__actions.sc-stzh-pagetitle{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";var StzhPagetitle=function(){function t(t){var e=this;registerInstance(this,t);this.init=function(){var t=e.element.querySelectorAll('stzh-heading[slot="heading"], [slot="heading"] stzh-heading');var s=e.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text');var a=e.element.querySelectorAll('stzh-link[slot="action-left"], stzh-link[slot="action-right"], [slot="action-left"] stzh-link, [slot="action-right"] stzh-link');var i=e.element.querySelectorAll('stzh-link[slot="action-right"], [slot="action-right"] stzh-link');t.forEach((function(t){setPropsIfNull(t,{withBorder:true})}));s.forEach((function(t){setPropsIfNull(t,{lead:true})}));i.forEach((function(t){setPropsIfNull(t,{icon:"web-link"})}));a.forEach((function(t){setPropsIfNull(t,{size:"small"})}))}}t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};t.prototype.render=function(){var t=hasSlot(this.element,"heading");var e=hasSlot(this.element,"image");var s=hasSlot(this.element,"lead");var a=hasSlot(this.element,"action-left");var i=hasSlot(this.element,"action-right");var l={"stzh-pagetitle":true,"stzh-pagetitle--has-heading":t,"stzh-pagetitle--has-image":e,"stzh-pagetitle--has-lead":s,"stzh-pagetitle--has-action":a||i,"stzh-pagetitle--has-action-left":a,"stzh-pagetitle--has-action-right":i};return h(Host,null,h("div",{class:l},h("slot",{name:"heading"}),h("div",{class:"stzh-pagetitle__actions"},h("slot",{name:"action-left"}),h("slot",{name:"action-right"})),h("slot",{name:"image"}),h("slot",{name:"lead"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhPagetitle.style=stzhPagetitleCss;export{StzhPagetitle as stzh_pagetitle};
1
+ import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";import{s as setPropsIfNull,h as hasSlot}from"./utils-51148d9a.js";var stzhPagetitleCss=".sc-stzh-pagetitle-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-pagetitle-h{display:none}.sc-stzh-pagetitle-h *.sc-stzh-pagetitle,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::before,.sc-stzh-pagetitle-h *.sc-stzh-pagetitle::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=heading]{margin-bottom:var(--stzh-space-xxxlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=image]{margin-top:var(--stzh-space-xlarge)}}.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xlarge)}@media screen and (min-width: 1024px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-pagetitle-h .sc-stzh-pagetitle-s>[slot=lead]{margin-top:var(--stzh-space-xxxlarge)}}.stzh-pagetitle__actions.sc-stzh-pagetitle{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}";var StzhPagetitle=function(){function t(t){var e=this;registerInstance(this,t);this.init=function(){var t=e.element.querySelectorAll('stzh-heading[slot="heading"], [slot="heading"] stzh-heading');var s=e.element.querySelectorAll('stzh-text[slot="lead"], [slot="lead"] stzh-text');var a=e.element.querySelectorAll('stzh-link[slot="action-left"], stzh-link[slot="action-right"], [slot="action-left"] stzh-link, [slot="action-right"] stzh-link');var i=e.element.querySelectorAll('stzh-link[slot="action-right"], [slot="action-right"] stzh-link');t.forEach((function(t){setPropsIfNull(t,{withBorder:true})}));s.forEach((function(t){setPropsIfNull(t,{lead:true})}));i.forEach((function(t){setPropsIfNull(t,{icon:"web-link"})}));a.forEach((function(t){setPropsIfNull(t,{size:"small"})}))}}t.prototype.connectedCallback=function(){this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){if(this.observer){this.observer.disconnect()}};t.prototype.render=function(){var t=hasSlot(this.element,"heading");var e=hasSlot(this.element,"image");var s=hasSlot(this.element,"lead");var a=hasSlot(this.element,"action-left");var i=hasSlot(this.element,"action-right");var l={"stzh-pagetitle":true,"stzh-pagetitle--has-heading":t,"stzh-pagetitle--has-image":e,"stzh-pagetitle--has-lead":s,"stzh-pagetitle--has-action":a||i,"stzh-pagetitle--has-action-left":a,"stzh-pagetitle--has-action-right":i};return h(Host,null,h("div",{class:l},h("slot",{name:"heading"}),h("div",{class:"stzh-pagetitle__actions"},h("slot",{name:"action-left"}),h("slot",{name:"action-right"})),h("slot",{name:"image"}),h("slot",{name:"lead"})))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhPagetitle.style=stzhPagetitleCss;export{StzhPagetitle as stzh_pagetitle};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,o,r){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,s){function n(t){try{p(r.next(t))}catch(e){s(e)}}function a(t){try{p(r["throw"](t))}catch(e){s(e)}}function p(t){t.done?o(t.value):i(t.value).then(n,a)}p((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,n;return n={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(t){return function(e){return p([t,e])}}function p(a){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,a[0]&&(o=0)),o)try{if(r=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;i=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){o.label=a[1];break}if(a[0]===6&&o.label<s[1]){o.label=s[1];s=a;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(a);break}if(s[2])o.ops.pop();o.trys.pop();continue}a=e.call(t,o)}catch(p){a=[6,p];i=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{c as computePosition,a as autoUpdate,A as Arrow,o as offset,f as flip,s as shift,b as arrow}from"./arrow-480bc86f.js";import{c as createFocusTrap}from"./focus-trap.esm-82634dec.js";import{i as isStzhElement}from"./utils-51148d9a.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{m as media}from"./media-utils-9b041ceb.js";import{w as waitForEvent}from"./event-utils-7a709e21.js";import{s as stopAnimations,a as animateTo}from"./animation-utils-e234a5f8.js";var stzhPopoverCss=".sc-stzh-popover-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-popover-h{display:none}.sc-stzh-popover-h *.sc-stzh-popover,.sc-stzh-popover-h *.sc-stzh-popover::before,.sc-stzh-popover-h *.sc-stzh-popover::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-popover-h{--width:var(--stzh-popover-width);--min-width:var(--stzh-popover-min-width);--max-width:var(--stzh-popover-max-width);--padding:0px;--border-radius:var(--stzh-popover-border-radius)}[variant=tooltip].sc-stzh-popover-h{--width:var(--stzh-tooltip-width);--min-width:var(--stzh-tooltip-min-width);--max-width:var(--stzh-tooltip-max-width);--padding:var(--stzh-space-small) var(--stzh-space-large);--border-radius:var(--stzh-tooltip-border-radius)}@media screen and (min-width: 600px){[variant=tooltip].sc-stzh-popover-h{--padding:var(--stzh-tooltip-padding)}}.stzh-popover__arrow.sc-stzh-popover{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-popover--placement-bottom.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-bottom-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-bottom-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{top:0;-webkit-transform:translateY(-0.5rem);transform:translateY(-0.5rem)}.stzh-popover--placement-top.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-top-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-top-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{bottom:0;-webkit-transform:translateY(0.5rem) rotate(180deg);transform:translateY(0.5rem) rotate(180deg)}.stzh-popover--placement-left.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-left-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-left-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{right:0;-webkit-transform:translateX(0.75rem) rotate(90deg);transform:translateX(0.75rem) rotate(90deg)}.stzh-popover--placement-right.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-right-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-right-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{left:0;-webkit-transform:translateX(-0.75rem) rotate(-90deg);transform:translateX(-0.75rem) rotate(-90deg)}@media screen and (max-width: 599px){.stzh-popover__content-wrapper.sc-stzh-popover{z-index:var(--stzh-z-index-dialog);display:-ms-flexbox;display:flex;position:fixed;top:0;left:0;width:100%;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:stretch;justify-content:stretch}}@media screen and (max-width: 599px){.stzh-popover__backdrop.sc-stzh-popover{z-index:1;position:absolute;top:0px;left:0px;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;text-align:center;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));opacity:0.8}}@media screen and (max-width: 599px){.stzh-popover__content.sc-stzh-popover{z-index:2;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-positive:1;flex-grow:1;overflow:auto}}.stzh-popover__dialog.sc-stzh-popover{margin-top:auto;width:100%;overflow:visible;border-top-left-radius:0.125rem;border-top-right-radius:0.125rem;background-color:var(--stzh-color-white);-ms-touch-action:none;touch-action:none;outline:none;border-bottom:0.125rem solid var(--stzh-color-grey13)}@media screen and (min-width: 600px){.stzh-popover__dialog.sc-stzh-popover{z-index:var(--stzh-z-index-popover);position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);left:auto;right:auto;bottom:auto;border-radius:var(--border-radius);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border:none}}.stzh-popover__content-inner.sc-stzh-popover{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-popover__content-slot.sc-stzh-popover{padding:var(--padding)}.stzh-popover__action-slot.sc-stzh-popover{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-popover__action-slot.sc-stzh-popover:not(:empty){margin:var(--stzh-space-xsmall) var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}.stzh-popover__label-wrapper.sc-stzh-popover{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-small) var(--stzh-space-large);padding-right:var(--stzh-space-medium);border-bottom:0.0625rem solid var(--stzh-base-border-color);color:var(--stzh-color-grey70)}@media screen and (min-width: 600px){.stzh-popover__label-wrapper.sc-stzh-popover{padding:0;border-bottom:0}}.stzh-popover__label.sc-stzh-popover{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-p2-default-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-p2-default-text-line-height, var(--stzh-font-micro-text-line-height));margin:0;margin-right:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-popover__label.sc-stzh-popover{font-size:var(--stzh-font-curve-p2-medium-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p2-medium-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p2-medium-text-letter-spacing)}}@media screen and (min-width: 600px){.stzh-popover__label.sc-stzh-popover{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}}.stzh-popover__close.sc-stzh-popover{cursor:pointer;display:-ms-flexbox;display:flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background-color:transparent;padding:0;margin-left:auto;border-radius:50%;color:var(--stzh-base-lead-color);padding:var(--stzh-space-xxsmall)}.stzh-popover__icon.sc-stzh-popover{--size:var(--stzh-icon-size-xsmall)}.stzh-popover__arrow.sc-stzh-popover{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-popover__vhidden.sc-stzh-popover{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-popover--default.sc-stzh-popover .stzh-popover__close.sc-stzh-popover:focus{-webkit-box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue))}@media screen and (min-width: 600px){.stzh-popover--default.sc-stzh-popover .stzh-popover__close.sc-stzh-popover{position:absolute;top:0;right:0;-webkit-transform:translate(30%, -30%);transform:translate(30%, -30%);background-color:var(--stzh-color-grey5)}.stzh-popover--default.sc-stzh-popover .stzh-popover__close.sc-stzh-popover:not(:focus):not(:active){border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}}@media screen and (min-width: 600px){.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__close.sc-stzh-popover{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background-color:transparent;padding:0;position:absolute;top:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-xxsmall);padding-bottom:var(--stzh-space-xxxsmall);color:var(--stzh-base-lead-color);border-radius:var(--stzh-button-border-radius)}}@media screen and (min-width: 600px){.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__icon.sc-stzh-popover{--size:var(--stzh-icon-size-xxsmall)}}@media screen and (min-width: 600px){@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__dialog.sc-stzh-popover{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}}.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__content-slot.sc-stzh-popover{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}";var ANIMATION_SHOW_DURATION=200;var ANIMATION_HIDE_DURATION=300;var ANIMATION_SHOW_DURATION_SMALL=100;var ANIMATION_HIDE_DURATION_SMALL=200;function animationContentWrapperShow(){var t=media("small").matches;return{keyframes:[{opacity:"0"},{opacity:"1"}],options:{duration:t?ANIMATION_SHOW_DURATION_SMALL:ANIMATION_SHOW_DURATION,easing:"linear"}}}function animationContentWrapperHide(){var t=media("small").matches;return{keyframes:[{opacity:"1"},{opacity:"0"}],options:{duration:t?ANIMATION_HIDE_DURATION_SMALL:ANIMATION_HIDE_DURATION,easing:"linear"}}}function animationDialogShow(){var t=media("small").matches;return{keyframes:[{transform:t?"translateY(-8px)":"translateY(100%)"},{transform:"translateY(0px)"}],options:{duration:t?ANIMATION_SHOW_DURATION_SMALL:ANIMATION_SHOW_DURATION,easing:"linear"}}}function animationDialogHide(){var t=media("small").matches;return{keyframes:[{transform:"translateY(0px)"},{transform:t?"translateY(-8px)":"translateY(100%)"}],options:{duration:t?ANIMATION_HIDE_DURATION_SMALL:ANIMATION_HIDE_DURATION,easing:"linear"}}}var keyCode={ESC:27};var CLASS_BODY_OPEN="stzh-popover-open";var popoverCounter=0;var StzhPopover=function(){function t(t){var e=this;registerInstance(this,t);this.stzhOpen=createEvent(this,"stzhOpen",7);this.stzhOpened=createEvent(this,"stzhOpened",7);this.stzhClose=createEvent(this,"stzhClose",7);this.stzhClosed=createEvent(this,"stzhClosed",7);this.initialTouchX=null;this.initialTouchY=null;this.handleKeydown=function(t){if(t.keyCode===keyCode.ESC){e.hide()}};this.onClickTrigger=function(){e.toggle()};this.computePosition=function(){return __awaiter(e,void 0,void 0,(function(){var t,e,o,r,i,s,n,a,p,l;return __generator(this,(function(h){switch(h.label){case 0:if(!media("small").matches)return[3,2];t=[offset({mainAxis:this.distance,crossAxis:this.skidding}),flip({padding:5}),shift({padding:5})];if(this.variant==="tooltip"){t.push(arrow({element:this.arrowElement,padding:5}))}return[4,computePosition(this.element,this.dialogElement,{strategy:this.strategy,placement:this.placement,middleware:t})];case 1:e=h.sent(),o=e.x,r=o===void 0?0:o,i=e.y,s=i===void 0?0:i,n=e.strategy,a=n===void 0?"absolute":n,p=e.placement,l=e.middlewareData;this.computedPlacement=p;Object.assign(this.dialogElement.style,{position:a,left:"".concat(r,"px"),top:"".concat(s,"px")});if(this.variant==="tooltip"){Object.assign(this.arrowElement.style,{left:r!=null?"".concat(l.arrow.x,"px"):"",top:s!=null?"".concat(l.arrow.y,"px"):""})}return[3,3];case 2:Object.assign(this.dialogElement.style,{position:null,left:null,top:null});if(this.variant==="tooltip"){Object.assign(this.arrowElement.style,{left:null,top:null})}h.label=3;case 3:return[2]}}))}))};this.handleTouchStart=function(t){var o=t.changedTouches[0];e.initialTouchX=o.pageX;e.initialTouchY=o.pageY};this.handleTouchEnd=function(t){var o=t.changedTouches[0];var r=o.pageX-e.initialTouchX;var i=o.pageY-e.initialTouchY;var s=70;var n=Math.abs(i)>=s&&Math.abs(r)<=s;if(n){e.hide()}e.initialTouchY=null;e.initialTouchX=null};this.open=false;this.placement="bottom";this.variant="default";this.skidding=0;this.distance=undefined;this.label="";this.strategy="absolute";this.localization=undefined;this.computedPlacement=undefined}t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open){return[2]}this.toggledByMethod=true;this.open=true;return[2,waitForEvent(this.element,"stzhOpened")]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open){return[2]}this.toggledByMethod=true;this.open=false;return[2,waitForEvent(this.element,"stzhClosed")]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.open)return[3,2];return[4,this.hide()];case 1:return[2,t.sent()];case 2:return[4,this.show()];case 3:return[2,t.sent()]}}))}))};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.computePosition()];case 1:return[2,t.sent()]}}))}))};t.prototype.handleOutsideClick=function(t){if(!this.open){return}var e=t.target!==this.dialogElement&&this.dialogElement.contains(t.target)===false;var o=t.target===this.triggerElement||this.triggerElement.contains(t.target);if(e&&!o){this.hide()}};t.prototype.openWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,o,r,i;return __generator(this,(function(s){switch(s.label){case 0:if(!this.dialogElement){return[2]}if(!t)return[3,3];if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-popover"})}e=animationContentWrapperShow();o=animationDialogShow();return[4,Promise.all([stopAnimations(this.contentWrapperElement),stopAnimations(this.contentElement),stopAnimations(this.dialogElement)])];case 1:s.sent();this.dialogElement.style.willChange="transform, opacity, position, top, left, bottom, right";this.contentWrapperElement.hidden=false;return[4,Promise.all([animateTo(this.contentWrapperElement,e.keyframes,e.options),animateTo(media("small").matches?this.dialogElement:this.contentElement,o.keyframes,o.options)])];case 2:s.sent();if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-popover"})}return[3,6];case 3:if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-popover"})}r=animationContentWrapperHide();i=animationDialogHide();return[4,Promise.all([stopAnimations(this.contentWrapperElement),stopAnimations(this.contentElement),stopAnimations(this.dialogElement)])];case 4:s.sent();return[4,Promise.all([animateTo(this.contentWrapperElement,r.keyframes,r.options),animateTo(media("small").matches?this.dialogElement:this.contentElement,i.keyframes,i.options)])];case 5:s.sent();this.contentWrapperElement.hidden=true;this.dialogElement.style.willChange="auto";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-popover"})}s.label=6;case 6:this.toggledByMethod=false;return[2]}}))}))};t.prototype.distanceWatcher=function(t){if(typeof t==="number"){this.distance=t}else{this.distance=this.variant==="tooltip"?16:8}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.id="stzh-popover-".concat(popoverCounter++);this.distanceWatcher(this.distance);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"popover")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.popoverShown=function(){document.body.classList.add(CLASS_BODY_OPEN);var t=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded","true");if(this.trap){this.trap.activate()}};t.prototype.popoverHidden=function(){document.body.classList.remove(CLASS_BODY_OPEN);var t=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded","false");if(this.trap){this.trap.deactivate()}};t.prototype.componentDidRender=function(){this.computePosition();this.open?this.popoverShown():this.popoverHidden();var t=isStzhElement(this.triggerElement.firstElementChild);if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby","".concat(this.id,"-trigger-description"))}if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-label")||this.triggerElement.firstElementChild.getAttribute("aria-label")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-label":"aria-label",this.label)}};t.prototype.componentDidUpdate=function(){this.trap.updateContainerElements(this.dialogElement)};t.prototype.componentDidLoad=function(){this.autoUpdateCleanup=autoUpdate(this.element,this.dialogElement,this.computePosition);this.contentWrapperElement.hidden=!this.open;this.trap=createFocusTrap(this.dialogElement,{fallbackFocus:this.dialogElement,clickOutsideDeactivates:true,returnFocusOnDeactivate:true});if(this.open){this.popoverShown()}};t.prototype.connectedCallback=function(){var t;var e=(t=this.triggerElement)===null||t===void 0?void 0:t.firstElementChild;if(!e){var o=Array.from(this.element.children).find((function(t){return!t.hasAttribute("slot")}));e=o}if(e){e.addEventListener("click",this.onClickTrigger)}};t.prototype.disconnectedCallback=function(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.triggerElement&&this.triggerElement.firstElementChild){this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger)}};t.prototype.render=function(){var t;var e=this;var o=(t={"stzh-popover":true},t["stzh-popover--open"]=this.open,t["stzh-popover--placement-".concat(this.computedPlacement)]=!!this.computedPlacement,t["stzh-popover--".concat(this.variant)]=!!this.variant,t);return h(Host,null,h("div",{class:o,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},h("div",{ref:function(t){return e.triggerElement=t},class:"stzh-popover__trigger"},h("slot",null)),h("div",{class:"stzh-popover__vhidden",id:"".concat(this.id,"-trigger-description")},this.localization.open),h("div",{ref:function(t){return e.contentWrapperElement=t},class:"stzh-popover__content-wrapper"},h("div",{class:"stzh-popover__backdrop"}),h("div",{ref:function(t){return e.contentElement=t},class:"stzh-popover__content"},h("div",{ref:function(t){return e.dialogElement=t},class:"stzh-popover__dialog",role:"dialog",tabindex:"-1","aria-modal":"true","aria-labelledby":this.label?"".concat(this.id,"-label"):null,"aria-hidden":this.open?"false":"true",onKeyDown:this.handleKeydown},this.variant==="tooltip"&&h("div",{class:"stzh-popover__arrow",ref:function(t){return e.arrowElement=t},innerHTML:Arrow}),h("div",{class:"stzh-popover__content-inner"},h("div",{class:"stzh-popover__label-wrapper"},h("h2",{id:"".concat(this.id,"-label"),class:"stzh-popover__label"},this.label?this.label:h("slot",{name:"label"})),h("button",{class:"stzh-popover__close",onClick:function(){return e.hide()},type:"button"},h("stzh-icon",{name:"close",class:"stzh-popover__icon"}),h("span",{class:"stzh-popover__vhidden"},this.localization.close))),h("div",{class:"stzh-popover__content-slot"},h("slot",{name:"content"}),h("div",{class:"stzh-popover__action-slot"},h("slot",{name:"action"})))))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openWatcher"],distance:["distanceWatcher"]}},enumerable:false,configurable:true});return t}();StzhPopover.style=stzhPopoverCss;export{StzhPopover as stzh_popover};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,o,r){function i(t){return t instanceof o?t:new o((function(e){e(t)}))}return new(o||(o=Promise))((function(o,s){function n(t){try{p(r.next(t))}catch(e){s(e)}}function a(t){try{p(r["throw"](t))}catch(e){s(e)}}function p(t){t.done?o(t.value):i(t.value).then(n,a)}p((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var o={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,n;return n={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function a(t){return function(e){return p([t,e])}}function p(a){if(r)throw new TypeError("Generator is already executing.");while(n&&(n=0,a[0]&&(o=0)),o)try{if(r=1,i&&(s=a[0]&2?i["return"]:a[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,a[1])).done)return s;if(i=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:o.label++;return{value:a[1],done:false};case 5:o.label++;i=a[1];a=[0];continue;case 7:a=o.ops.pop();o.trys.pop();continue;default:if(!(s=o.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){o=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){o.label=a[1];break}if(a[0]===6&&o.label<s[1]){o.label=s[1];s=a;break}if(s&&o.label<s[2]){o.label=s[2];o.ops.push(a);break}if(s[2])o.ops.pop();o.trys.pop();continue}a=e.call(t,o)}catch(p){a=[6,p];i=0}finally{r=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{c as computePosition,a as autoUpdate,A as Arrow,o as offset,f as flip,s as shift,b as arrow}from"./arrow-480bc86f.js";import{c as createFocusTrap}from"./focus-trap.esm-82634dec.js";import{i as isStzhElement}from"./utils-51148d9a.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{m as media}from"./media-utils-9b041ceb.js";import{w as waitForEvent}from"./event-utils-7a709e21.js";import{s as stopAnimations,a as animateTo}from"./animation-utils-e234a5f8.js";var stzhPopoverCss=".sc-stzh-popover-h{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;color:var(--stzh-base-color);-webkit-box-sizing:border-box;box-sizing:border-box;display:block}[hidden].sc-stzh-popover-h{display:none}.sc-stzh-popover-h *.sc-stzh-popover,.sc-stzh-popover-h *.sc-stzh-popover::before,.sc-stzh-popover-h *.sc-stzh-popover::after{-webkit-box-sizing:border-box;box-sizing:border-box;text-underline-offset:var(--stzh-link-text-underline-offset);text-decoration-thickness:var(--stzh-link-text-decoration-thickness)}.sc-stzh-popover-h{--width:var(--stzh-popover-width);--min-width:var(--stzh-popover-min-width);--max-width:var(--stzh-popover-max-width);--padding:0px;--border-radius:var(--stzh-popover-border-radius)}[variant=tooltip].sc-stzh-popover-h{--width:var(--stzh-tooltip-width);--min-width:var(--stzh-tooltip-min-width);--max-width:var(--stzh-tooltip-max-width);--padding:var(--stzh-space-small) var(--stzh-space-large);--border-radius:var(--stzh-tooltip-border-radius)}@media screen and (min-width: 600px){[variant=tooltip].sc-stzh-popover-h{--padding:var(--stzh-tooltip-padding)}}.stzh-popover__arrow.sc-stzh-popover{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-popover--placement-bottom.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-bottom-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-bottom-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{top:0;-webkit-transform:translateY(-0.5rem);transform:translateY(-0.5rem)}.stzh-popover--placement-top.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-top-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-top-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{bottom:0;-webkit-transform:translateY(0.5rem) rotate(180deg);transform:translateY(0.5rem) rotate(180deg)}.stzh-popover--placement-left.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-left-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-left-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{right:0;-webkit-transform:translateX(0.75rem) rotate(90deg);transform:translateX(0.75rem) rotate(90deg)}.stzh-popover--placement-right.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-right-start.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover,.stzh-popover--placement-right-end.sc-stzh-popover .stzh-popover__arrow.sc-stzh-popover{left:0;-webkit-transform:translateX(-0.75rem) rotate(-90deg);transform:translateX(-0.75rem) rotate(-90deg)}@media screen and (max-width: 599px){.stzh-popover__content-wrapper.sc-stzh-popover{z-index:var(--stzh-z-index-dialog);display:-ms-flexbox;display:flex;position:fixed;top:0;left:0;width:100%;height:100%;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:stretch;align-items:stretch;-ms-flex-pack:stretch;justify-content:stretch}}@media screen and (max-width: 599px){.stzh-popover__backdrop.sc-stzh-popover{z-index:1;position:absolute;top:0px;left:0px;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;text-align:center;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));opacity:0.8}}@media screen and (max-width: 599px){.stzh-popover__content.sc-stzh-popover{z-index:2;position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-align:center;align-items:center;-ms-flex-positive:1;flex-grow:1;overflow:auto}}.stzh-popover__dialog.sc-stzh-popover{margin-top:auto;width:100%;overflow:visible;border-top-left-radius:0.125rem;border-top-right-radius:0.125rem;background-color:var(--stzh-color-white);-ms-touch-action:none;touch-action:none;outline:none;border-bottom:0.125rem solid var(--stzh-color-grey13)}@media screen and (min-width: 600px){.stzh-popover__dialog.sc-stzh-popover{z-index:var(--stzh-z-index-popover);position:absolute;width:var(--width);min-width:var(--min-width);max-width:var(--max-width);left:auto;right:auto;bottom:auto;border-radius:var(--border-radius);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);border:none}}.stzh-popover__content-inner.sc-stzh-popover{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-popover__content-slot.sc-stzh-popover{padding:var(--padding)}.stzh-popover__action-slot.sc-stzh-popover{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}.stzh-popover__action-slot.sc-stzh-popover:not(:empty){margin:var(--stzh-space-xsmall) var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}.stzh-popover__label-wrapper.sc-stzh-popover{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-small) var(--stzh-space-large);padding-right:var(--stzh-space-medium);border-bottom:0.0625rem solid var(--stzh-base-border-color);color:var(--stzh-color-grey70)}@media screen and (min-width: 600px){.stzh-popover__label-wrapper.sc-stzh-popover{padding:0;border-bottom:0}}.stzh-popover__label.sc-stzh-popover{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-p2-default-font-size, var(--stzh-font-micro-font-size));line-height:var(--stzh-font-curve-p2-default-text-line-height, var(--stzh-font-micro-text-line-height));margin:0;margin-right:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-popover__label.sc-stzh-popover{font-size:var(--stzh-font-curve-p2-medium-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-p2-medium-text-line-height, var(--stzh-font-milli-text-line-height));letter-spacing:var(--stzh-font-curve-p2-medium-text-letter-spacing)}}@media screen and (min-width: 600px){.stzh-popover__label.sc-stzh-popover{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}}.stzh-popover__close.sc-stzh-popover{cursor:pointer;display:-ms-flexbox;display:flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background-color:transparent;padding:0;margin-left:auto;border-radius:50%;color:var(--stzh-base-lead-color);padding:var(--stzh-space-xxsmall)}.stzh-popover__icon.sc-stzh-popover{--size:var(--stzh-icon-size-xsmall)}.stzh-popover__arrow.sc-stzh-popover{position:absolute;display:-ms-flexbox;display:flex;color:var(--stzh-color-white)}.stzh-popover__vhidden.sc-stzh-popover{border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}.stzh-popover--default.sc-stzh-popover .stzh-popover__close.sc-stzh-popover:focus{-webkit-box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue));box-shadow:0 0 0 0.0625rem var(--stzh-color-primary, var(--stzh-color-zueriblue))}@media screen and (min-width: 600px){.stzh-popover--default.sc-stzh-popover .stzh-popover__close.sc-stzh-popover{position:absolute;top:0;right:0;-webkit-transform:translate(30%, -30%);transform:translate(30%, -30%);background-color:var(--stzh-color-grey5)}.stzh-popover--default.sc-stzh-popover .stzh-popover__close.sc-stzh-popover:not(:focus):not(:active){border:0;clip:rect(0 0 0 0);-webkit-clip-path:inset(100%);clip-path:inset(100%);width:0.0625rem;height:0.0625rem;overflow:hidden;padding:0;position:absolute}}@media screen and (min-width: 600px){.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__close.sc-stzh-popover{cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background-color:transparent;padding:0;position:absolute;top:0;right:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;padding:var(--stzh-space-xxsmall);padding-bottom:var(--stzh-space-xxxsmall);color:var(--stzh-base-lead-color);border-radius:var(--stzh-button-border-radius)}}@media screen and (min-width: 600px){.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__icon.sc-stzh-popover{--size:var(--stzh-icon-size-xxsmall)}}@media screen and (min-width: 600px){@supports ((-webkit-filter: var(--stzh-tooltip-drop-shadow)) or (filter: var(--stzh-tooltip-drop-shadow))){.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__dialog.sc-stzh-popover{-webkit-box-shadow:none;box-shadow:none;-webkit-filter:var(--stzh-tooltip-drop-shadow);filter:var(--stzh-tooltip-drop-shadow)}}}.stzh-popover--tooltip.sc-stzh-popover .stzh-popover__content-slot.sc-stzh-popover{font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height)}";var ANIMATION_SHOW_DURATION=200;var ANIMATION_HIDE_DURATION=300;var ANIMATION_SHOW_DURATION_SMALL=100;var ANIMATION_HIDE_DURATION_SMALL=200;function animationContentWrapperShow(){var t=media("small").matches;return{keyframes:[{opacity:"0"},{opacity:"1"}],options:{duration:t?ANIMATION_SHOW_DURATION_SMALL:ANIMATION_SHOW_DURATION,easing:"linear"}}}function animationContentWrapperHide(){var t=media("small").matches;return{keyframes:[{opacity:"1"},{opacity:"0"}],options:{duration:t?ANIMATION_HIDE_DURATION_SMALL:ANIMATION_HIDE_DURATION,easing:"linear"}}}function animationDialogShow(){var t=media("small").matches;return{keyframes:[{transform:t?"translateY(-8px)":"translateY(100%)"},{transform:"translateY(0px)"}],options:{duration:t?ANIMATION_SHOW_DURATION_SMALL:ANIMATION_SHOW_DURATION,easing:"linear"}}}function animationDialogHide(){var t=media("small").matches;return{keyframes:[{transform:"translateY(0px)"},{transform:t?"translateY(-8px)":"translateY(100%)"}],options:{duration:t?ANIMATION_HIDE_DURATION_SMALL:ANIMATION_HIDE_DURATION,easing:"linear"}}}var keyCode={ESC:27};var CLASS_BODY_OPEN="stzh-popover-open";var popoverCounter=0;var StzhPopover=function(){function t(t){var e=this;registerInstance(this,t);this.stzhOpen=createEvent(this,"stzhOpen",7);this.stzhOpened=createEvent(this,"stzhOpened",7);this.stzhClose=createEvent(this,"stzhClose",7);this.stzhClosed=createEvent(this,"stzhClosed",7);this.initialTouchX=null;this.initialTouchY=null;this.handleKeydown=function(t){if(t.keyCode===keyCode.ESC){e.hide()}};this.onClickTrigger=function(){e.toggle()};this.computePosition=function(){return __awaiter(e,void 0,void 0,(function(){var t,e,o,r,i,s,n,a,p,l;return __generator(this,(function(h){switch(h.label){case 0:if(!media("small").matches)return[3,2];t=[offset({mainAxis:this.distance,crossAxis:this.skidding}),flip({padding:5}),shift({padding:5})];if(this.variant==="tooltip"){t.push(arrow({element:this.arrowElement,padding:5}))}return[4,computePosition(this.element,this.dialogElement,{strategy:this.strategy,placement:this.placement,middleware:t})];case 1:e=h.sent(),o=e.x,r=o===void 0?0:o,i=e.y,s=i===void 0?0:i,n=e.strategy,a=n===void 0?"absolute":n,p=e.placement,l=e.middlewareData;this.computedPlacement=p;Object.assign(this.dialogElement.style,{position:a,left:"".concat(r,"px"),top:"".concat(s,"px")});if(this.variant==="tooltip"){Object.assign(this.arrowElement.style,{left:r!=null?"".concat(l.arrow.x,"px"):"",top:s!=null?"".concat(l.arrow.y,"px"):""})}return[3,3];case 2:Object.assign(this.dialogElement.style,{position:null,left:null,top:null});if(this.variant==="tooltip"){Object.assign(this.arrowElement.style,{left:null,top:null})}h.label=3;case 3:return[2]}}))}))};this.handleTouchStart=function(t){var o=t.changedTouches[0];e.initialTouchX=o.pageX;e.initialTouchY=o.pageY};this.handleTouchEnd=function(t){var o=t.changedTouches[0];var r=o.pageX-e.initialTouchX;var i=o.pageY-e.initialTouchY;var s=70;var n=Math.abs(i)>=s&&Math.abs(r)<=s;if(n){e.hide()}e.initialTouchY=null;e.initialTouchX=null};this.open=false;this.placement="bottom";this.variant="default";this.skidding=0;this.distance=undefined;this.label="";this.strategy="absolute";this.localization=undefined;this.computedPlacement=undefined}t.prototype.show=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.open){return[2]}this.toggledByMethod=true;this.open=true;return[2,waitForEvent(this.element,"stzhOpened")]}))}))};t.prototype.hide=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.open){return[2]}this.toggledByMethod=true;this.open=false;return[2,waitForEvent(this.element,"stzhClosed")]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!this.open)return[3,2];return[4,this.hide()];case 1:return[2,t.sent()];case 2:return[4,this.show()];case 3:return[2,t.sent()]}}))}))};t.prototype.update=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:return[4,this.computePosition()];case 1:return[2,t.sent()]}}))}))};t.prototype.handleOutsideClick=function(t){if(!this.open){return}var e=t.target!==this.dialogElement&&this.dialogElement.contains(t.target)===false;var o=t.target===this.triggerElement||this.triggerElement.contains(t.target);if(e&&!o){this.hide()}};t.prototype.openWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e,o,r,i;return __generator(this,(function(s){switch(s.label){case 0:if(!this.dialogElement){return[2]}if(!t)return[3,3];if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-popover"})}e=animationContentWrapperShow();o=animationDialogShow();return[4,Promise.all([stopAnimations(this.contentWrapperElement),stopAnimations(this.contentElement),stopAnimations(this.dialogElement)])];case 1:s.sent();this.dialogElement.style.willChange="transform, opacity, position, top, left, bottom, right";this.contentWrapperElement.hidden=false;return[4,Promise.all([animateTo(this.contentWrapperElement,e.keyframes,e.options),animateTo(media("small").matches?this.dialogElement:this.contentElement,o.keyframes,o.options)])];case 2:s.sent();if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-popover"})}return[3,6];case 3:if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-popover"})}r=animationContentWrapperHide();i=animationDialogHide();return[4,Promise.all([stopAnimations(this.contentWrapperElement),stopAnimations(this.contentElement),stopAnimations(this.dialogElement)])];case 4:s.sent();return[4,Promise.all([animateTo(this.contentWrapperElement,r.keyframes,r.options),animateTo(media("small").matches?this.dialogElement:this.contentElement,i.keyframes,i.options)])];case 5:s.sent();this.contentWrapperElement.hidden=true;this.dialogElement.style.willChange="auto";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-popover"})}s.label=6;case 6:this.toggledByMethod=false;return[2]}}))}))};t.prototype.distanceWatcher=function(t){if(typeof t==="number"){this.distance=t}else{this.distance=this.variant==="tooltip"?16:8}};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:this.id="stzh-popover-".concat(popoverCounter++);this.distanceWatcher(this.distance);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"popover")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.popoverShown=function(){document.body.classList.add(CLASS_BODY_OPEN);var t=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded","true");if(this.trap){this.trap.activate()}};t.prototype.popoverHidden=function(){document.body.classList.remove(CLASS_BODY_OPEN);var t=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded","false");if(this.trap){this.trap.deactivate()}};t.prototype.componentDidRender=function(){this.computePosition();this.open?this.popoverShown():this.popoverHidden();var t=isStzhElement(this.triggerElement.firstElementChild);if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-describedby")||this.triggerElement.firstElementChild.getAttribute("aria-describedby")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-describedby":"aria-describedby","".concat(this.id,"-trigger-description"))}if(t&&!this.triggerElement.firstElementChild.getAttribute("a11y-label")||this.triggerElement.firstElementChild.getAttribute("aria-label")){this.triggerElement.firstElementChild.setAttribute(t?"a11y-label":"aria-label",this.label)}};t.prototype.componentDidUpdate=function(){this.trap.updateContainerElements(this.dialogElement)};t.prototype.componentDidLoad=function(){this.autoUpdateCleanup=autoUpdate(this.element,this.dialogElement,this.computePosition);this.contentWrapperElement.hidden=!this.open;this.trap=createFocusTrap(this.dialogElement,{fallbackFocus:this.dialogElement,clickOutsideDeactivates:true,returnFocusOnDeactivate:true});if(this.open){this.popoverShown()}};t.prototype.connectedCallback=function(){var t;var e=(t=this.triggerElement)===null||t===void 0?void 0:t.firstElementChild;if(!e){var o=Array.from(this.element.children).find((function(t){return!t.hasAttribute("slot")}));e=o}if(e){e.addEventListener("click",this.onClickTrigger)}};t.prototype.disconnectedCallback=function(){if(this.autoUpdateCleanup){this.autoUpdateCleanup()}if(this.triggerElement&&this.triggerElement.firstElementChild){this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger)}};t.prototype.render=function(){var t;var e=this;var o=(t={"stzh-popover":true},t["stzh-popover--open"]=this.open,t["stzh-popover--placement-".concat(this.computedPlacement)]=!!this.computedPlacement,t["stzh-popover--".concat(this.variant)]=!!this.variant,t);return h(Host,null,h("div",{class:o,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd},h("div",{ref:function(t){return e.triggerElement=t},class:"stzh-popover__trigger"},h("slot",null)),h("div",{class:"stzh-popover__vhidden",id:"".concat(this.id,"-trigger-description")},this.localization.open),h("div",{ref:function(t){return e.contentWrapperElement=t},class:"stzh-popover__content-wrapper"},h("div",{class:"stzh-popover__backdrop"}),h("div",{ref:function(t){return e.contentElement=t},class:"stzh-popover__content"},h("div",{ref:function(t){return e.dialogElement=t},class:"stzh-popover__dialog",role:"dialog",tabindex:"-1","aria-modal":"true","aria-labelledby":this.label?"".concat(this.id,"-label"):null,"aria-hidden":this.open?"false":"true",onKeyDown:this.handleKeydown},this.variant==="tooltip"&&h("div",{class:"stzh-popover__arrow",ref:function(t){return e.arrowElement=t},innerHTML:Arrow}),h("div",{class:"stzh-popover__content-inner"},h("div",{class:"stzh-popover__label-wrapper"},h("h2",{id:"".concat(this.id,"-label"),class:"stzh-popover__label"},this.label?this.label:h("slot",{name:"label"})),h("button",{class:"stzh-popover__close",onClick:function(){return e.hide()},type:"button"},h("stzh-icon",{name:"close",class:"stzh-popover__icon"}),h("span",{class:"stzh-popover__vhidden"},this.localization.close))),h("div",{class:"stzh-popover__content-slot"},h("slot",{name:"content"}),h("div",{class:"stzh-popover__action-slot"},h("slot",{name:"action"})))))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openWatcher"],distance:["distanceWatcher"]}},enumerable:false,configurable:true});return t}();StzhPopover.style=stzhPopoverCss;export{StzhPopover as stzh_popover};