@oiz/stzh-components 2.2.0 → 2.3.0-alpha2

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 (828) hide show
  1. package/dist/cjs/{app-globals-b6d82414.js → app-globals-03f189c4.js} +1 -1
  2. package/dist/cjs/{arrow-3c3b0ae5.js → arrow-cd521f34.js} +468 -478
  3. package/dist/cjs/axios-7ec96df7.js +3167 -0
  4. package/dist/cjs/{dom-9deb26c8.js → dom-be1edfde.js} +1 -1
  5. package/dist/cjs/{focus-trap.esm-1cb6bb2e.js → focus-trap.esm-34a1a0d0.js} +188 -278
  6. package/dist/cjs/{index-9fcb4305.js → index-83d427ee.js} +113 -3
  7. package/dist/cjs/loader.cjs.js +5 -4
  8. package/dist/cjs/{shadow-css-bf3843d2.js → shadow-css-54f5c2d9.js} +1 -1
  9. package/dist/cjs/stzh-accordion-item.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-accordion.cjs.entry.js +1 -1
  11. package/dist/cjs/stzh-actions.cjs.entry.js +2 -2
  12. package/dist/cjs/stzh-actionset.cjs.entry.js +15 -5
  13. package/dist/cjs/stzh-anchornav.cjs.entry.js +2 -2
  14. package/dist/cjs/stzh-appnav.cjs.entry.js +2 -2
  15. package/dist/cjs/stzh-appointments.cjs.entry.js +1 -1
  16. package/dist/cjs/stzh-audio.cjs.entry.js +2 -2
  17. package/dist/cjs/stzh-badge_3.cjs.entry.js +7 -3
  18. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-card_3.cjs.entry.js +23 -17
  20. package/dist/cjs/stzh-cell.cjs.entry.js +2 -2
  21. package/dist/cjs/stzh-chart.cjs.entry.js +1 -1
  22. package/dist/cjs/stzh-checkbox.cjs.entry.js +3 -3
  23. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -3
  24. package/dist/cjs/stzh-chip_2.cjs.entry.js +132 -0
  25. package/dist/cjs/stzh-components.cjs.js +27 -5
  26. package/dist/cjs/stzh-contact.cjs.entry.js +91 -0
  27. package/dist/cjs/stzh-container.cjs.entry.js +3 -2
  28. package/dist/cjs/stzh-cspace.cjs.entry.js +2 -2
  29. package/dist/cjs/stzh-datalist_2.cjs.entry.js +48 -15
  30. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-datamessagelist.cjs.entry.js +1 -1
  32. package/dist/cjs/stzh-datatable.cjs.entry.js +32 -31
  33. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +3 -3
  34. package/dist/cjs/stzh-details.cjs.entry.js +2 -2
  35. package/dist/cjs/stzh-dialog.cjs.entry.js +3 -3
  36. package/dist/cjs/stzh-dropdown.cjs.entry.js +1062 -427
  37. package/dist/cjs/stzh-fieldset.cjs.entry.js +2 -2
  38. package/dist/cjs/stzh-figure.cjs.entry.js +6 -4
  39. package/dist/cjs/stzh-flyingfocus.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-footer.cjs.entry.js +3 -3
  41. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +4 -4
  42. package/dist/cjs/stzh-header.cjs.entry.js +7 -6
  43. package/dist/cjs/stzh-heading.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-hr.cjs.entry.js +1 -1
  45. package/dist/cjs/stzh-hspace.cjs.entry.js +4 -3
  46. package/dist/cjs/stzh-icon-sprite.cjs.entry.js +2 -2
  47. package/dist/cjs/{stzh-input-description-4326b0d9.js → stzh-input-description-2edc5cac.js} +1 -1
  48. package/dist/cjs/stzh-input.cjs.entry.js +3 -3
  49. package/dist/cjs/stzh-invert.cjs.entry.js +23 -0
  50. package/dist/cjs/stzh-langnav.cjs.entry.js +1 -1
  51. package/dist/cjs/stzh-link.cjs.entry.js +2 -2
  52. package/dist/cjs/stzh-list-item.cjs.entry.js +1 -1
  53. package/dist/cjs/stzh-list.cjs.entry.js +1 -1
  54. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  55. package/dist/cjs/stzh-loadingbar.cjs.entry.js +1 -1
  56. package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
  57. package/dist/cjs/stzh-message.cjs.entry.js +1 -1
  58. package/dist/cjs/stzh-metanav.cjs.entry.js +1 -1
  59. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +3 -3
  60. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  61. package/dist/cjs/stzh-overlay.cjs.entry.js +2 -2
  62. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +1 -1
  63. package/dist/cjs/stzh-pagebottom.cjs.entry.js +5 -2
  64. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +3 -3
  65. package/dist/cjs/stzh-pagetitle.cjs.entry.js +10 -2
  66. package/dist/cjs/stzh-popover.cjs.entry.js +6 -6
  67. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +2 -2
  68. package/dist/cjs/stzh-progressbar-item.cjs.entry.js +6 -4
  69. package/dist/cjs/stzh-progressbar.cjs.entry.js +2 -2
  70. package/dist/cjs/stzh-ratio.cjs.entry.js +26 -0
  71. package/dist/cjs/stzh-readspeaker.cjs.entry.js +2 -2
  72. package/dist/cjs/stzh-row.cjs.entry.js +2 -2
  73. package/dist/cjs/stzh-saptcha.cjs.entry.js +1 -1
  74. package/dist/cjs/stzh-section.cjs.entry.js +2 -2
  75. package/dist/cjs/stzh-share.cjs.entry.js +1 -1
  76. package/dist/cjs/stzh-show.cjs.entry.js +41 -0
  77. package/dist/cjs/stzh-sitemap.cjs.entry.js +2 -2
  78. package/dist/cjs/stzh-skiplink.cjs.entry.js +1 -1
  79. package/dist/cjs/stzh-sortable.cjs.entry.js +12 -68
  80. package/dist/cjs/stzh-space.cjs.entry.js +34 -0
  81. package/dist/cjs/stzh-status.cjs.entry.js +2 -2
  82. package/dist/cjs/stzh-sticky.cjs.entry.js +5 -3
  83. package/dist/cjs/stzh-table.cjs.entry.js +4 -3
  84. package/dist/cjs/stzh-text.cjs.entry.js +2 -2
  85. package/dist/cjs/stzh-textandimage.cjs.entry.js +2 -2
  86. package/dist/cjs/stzh-toggle.cjs.entry.js +3 -3
  87. package/dist/cjs/stzh-tooltip.cjs.entry.js +6 -6
  88. package/dist/cjs/stzh-upload.cjs.entry.js +7 -4
  89. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +782 -690
  90. package/dist/cjs/stzh-vbz-majorticker.cjs.entry.js +7 -7
  91. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +3 -3
  92. package/dist/cjs/stzh-visuallyhidden.cjs.entry.js +1 -1
  93. package/dist/cjs/stzh-vspace.cjs.entry.js +4 -3
  94. package/dist/cjs/{utils-ff153309.js → utils-a2ff9f84.js} +39 -11
  95. package/dist/collection/assets/i18n/de.json +4 -4
  96. package/dist/collection/assets/i18n/en.json +1 -1
  97. package/dist/collection/assets/icons/mono/calculator.svg +10 -0
  98. package/dist/collection/collection-manifest.json +7 -3
  99. package/dist/collection/components/stzh-actionset/stzh-actionset.css +11 -0
  100. package/dist/collection/components/stzh-actionset/stzh-actionset.js +18 -8
  101. package/dist/collection/components/stzh-actionset/stzh-actionset.stories.js +5 -5
  102. package/dist/collection/components/stzh-anchornav/stzh-anchornav.css +1 -3
  103. package/dist/collection/components/stzh-button/stzh-button.css +38 -6
  104. package/dist/collection/components/stzh-button/stzh-button.js +40 -0
  105. package/dist/collection/components/stzh-button/stzh-button.stories.js +19 -6
  106. package/dist/collection/components/stzh-card/stzh-card.css +3 -18
  107. package/dist/collection/components/stzh-card/stzh-card.stories.js +1 -1
  108. package/dist/collection/components/stzh-card-list/stzh-card-list.js +2 -2
  109. package/dist/collection/components/stzh-cell/stzh-cell.css +5 -0
  110. package/dist/collection/components/stzh-chip/stzh-chip.css +23 -5
  111. package/dist/collection/components/stzh-chip/stzh-chip.js +34 -5
  112. package/dist/collection/components/stzh-chip/stzh-chip.stories.js +7 -0
  113. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +6 -0
  114. package/dist/collection/components/stzh-chip-select/stzh-chip-select.js +22 -11
  115. package/dist/collection/components/stzh-clamp/stzh-clamp.css +5 -0
  116. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.css → stzh-contact/stzh-contact.css} +22 -22
  117. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.js → stzh-contact/stzh-contact.js} +25 -25
  118. package/dist/collection/components/{stzh-contactaddress/stzh-contactaddress.stories.js → stzh-contact/stzh-contact.stories.js} +10 -9
  119. package/dist/collection/components/stzh-container/stzh-container.css +19 -1
  120. package/dist/collection/components/stzh-container/stzh-container.js +26 -1
  121. package/dist/collection/components/stzh-container/stzh-container.stories.js +6 -1
  122. package/dist/collection/components/stzh-cspace/stzh-cspace.css +142 -47
  123. package/dist/collection/components/stzh-datalist/stzh-datalist.css +14 -2
  124. package/dist/collection/components/stzh-datalist/stzh-datalist.js +20 -1
  125. package/dist/collection/components/stzh-datalist/stzh-datalist.stories.js +19 -6
  126. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +79 -25
  127. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +103 -15
  128. package/dist/collection/components/stzh-datatable/stzh-datatable.css +3 -0
  129. package/dist/collection/components/stzh-datatable/stzh-datatable.js +20 -1
  130. package/dist/collection/components/stzh-dropdown/stzh-dropdown.js +31 -10
  131. package/dist/collection/components/stzh-fieldset/stzh-fieldset.css +1 -0
  132. package/dist/collection/components/stzh-figure/stzh-figure.css +8 -5
  133. package/dist/collection/components/stzh-figure/stzh-figure.js +21 -1
  134. package/dist/collection/components/stzh-footer/stzh-footer.css +1 -0
  135. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.css +12 -1
  136. package/dist/collection/components/stzh-header/stzh-header.css +5 -1
  137. package/dist/collection/components/stzh-header/stzh-header.js +4 -3
  138. package/dist/collection/components/stzh-header/stzh-header.stories.js +46 -38
  139. package/dist/collection/components/stzh-hspace/stzh-hspace.css +163 -129
  140. package/dist/collection/components/stzh-hspace/stzh-hspace.js +30 -6
  141. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/sprite.symbol.html +47 -34
  142. package/dist/collection/components/stzh-icon-sprite/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  143. package/dist/collection/components/stzh-invert/stzh-invert.css +158 -0
  144. package/dist/collection/components/stzh-invert/stzh-invert.js +25 -0
  145. package/dist/collection/components/stzh-invert/stzh-invert.stories.js +55 -0
  146. package/dist/collection/components/stzh-link/stzh-link.stories.js +11 -19
  147. package/dist/collection/components/stzh-pagebottom/stzh-pagebottom.js +4 -1
  148. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +8 -0
  149. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.stories.js +6 -6
  150. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +14 -1
  151. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.stories.js +4 -6
  152. package/dist/collection/components/stzh-popover/stzh-popover.css +1 -1
  153. package/dist/collection/components/stzh-popover/stzh-popover.js +1 -1
  154. package/dist/collection/components/stzh-popover/stzh-popover.stories.js +5 -7
  155. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +34 -9
  156. package/dist/collection/components/stzh-progressbar/stzh-progressbar.js +2 -2
  157. package/dist/collection/components/stzh-progressbar/stzh-progressbar.stories.js +2 -1
  158. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.css +37 -4
  159. package/dist/collection/components/stzh-progressbar-item/stzh-progressbar-item.js +22 -2
  160. package/dist/collection/components/stzh-ratio/stzh-ratio.css +172 -0
  161. package/dist/collection/components/stzh-ratio/stzh-ratio.js +88 -0
  162. package/dist/collection/components/stzh-ratio/stzh-ratio.stories.js +35 -0
  163. package/dist/collection/components/stzh-richtext/stzh-richtext.css +10 -5
  164. package/dist/collection/components/stzh-row/stzh-row.css +5 -0
  165. package/dist/collection/components/stzh-section/stzh-section.css +6 -0
  166. package/dist/collection/components/stzh-show/stzh-show.css +165 -0
  167. package/dist/collection/components/stzh-show/stzh-show.js +158 -0
  168. package/dist/collection/components/stzh-show/stzh-show.stories.js +52 -0
  169. package/dist/collection/components/stzh-sitemap/stzh-sitemap.css +1 -1
  170. package/dist/collection/components/stzh-sortable/stzh-sortable.js +9 -6
  171. package/dist/collection/components/stzh-space/stzh-space.css +848 -0
  172. package/dist/collection/components/stzh-space/stzh-space.js +262 -0
  173. package/dist/collection/components/stzh-space/stzh-space.stories.js +76 -0
  174. package/dist/collection/components/stzh-status/stzh-status.css +5 -1
  175. package/dist/collection/components/stzh-status/stzh-status.js +1 -1
  176. package/dist/collection/components/stzh-sticky/stzh-sticky.css +9 -0
  177. package/dist/collection/components/stzh-sticky/stzh-sticky.js +21 -1
  178. package/dist/collection/components/stzh-sticky/stzh-sticky.stories.js +3 -1
  179. package/dist/collection/components/stzh-table/stzh-table.css +3 -0
  180. package/dist/collection/components/stzh-table/stzh-table.js +19 -0
  181. package/dist/collection/components/stzh-text/stzh-text.css +2 -2
  182. package/dist/collection/components/stzh-tooltip/stzh-tooltip.js +2 -2
  183. package/dist/collection/components/stzh-upload/stzh-upload.js +4 -1
  184. package/dist/collection/components/stzh-vspace/stzh-vspace.css +163 -129
  185. package/dist/collection/components/stzh-vspace/stzh-vspace.js +30 -6
  186. package/dist/collection/pages/egov.stories.js +190 -182
  187. package/dist/collection/pages/meinkonto.stories.js +367 -511
  188. package/dist/collection/pages/microsite.stories.js +235 -0
  189. package/dist/collection/pages/website.stories.js +142 -0
  190. package/dist/collection/patterns/appointments.stories.js +2 -2
  191. package/dist/collection/patterns/contact.stories.js +20 -20
  192. package/dist/collection/patterns/contactform.stories.js +2 -2
  193. package/dist/collection/patterns/jobdetails.stories.js +151 -0
  194. package/dist/collection/patterns/subpages.stories.js +1 -1
  195. package/dist/collection/patterns/twocolumns.stories.js +46 -0
  196. package/dist/collection/utils/utils.js +41 -20
  197. package/dist/components/arrow.js +468 -478
  198. package/dist/components/axios.js +3165 -0
  199. package/dist/components/date-utils.js +159 -0
  200. package/dist/components/focus-trap.esm.js +188 -278
  201. package/dist/components/index.d.ts +14 -1
  202. package/dist/components/index.js +7 -3
  203. package/dist/components/stzh-actionset2.js +16 -6
  204. package/dist/components/stzh-anchornav.js +1 -1
  205. package/dist/components/stzh-appointments.js +2 -1
  206. package/dist/components/stzh-button2.js +7 -1
  207. package/dist/components/stzh-calendar2.js +2 -159
  208. package/dist/components/stzh-card-list2.js +2 -2
  209. package/dist/components/stzh-card2.js +1 -1
  210. package/dist/components/stzh-cell.js +1 -1
  211. package/dist/components/stzh-chip-select2.js +28 -15
  212. package/dist/components/stzh-chip2.js +23 -5
  213. package/dist/components/stzh-clamp2.js +1 -1
  214. package/dist/components/{stzh-contactaddress.d.ts → stzh-contact.d.ts} +4 -4
  215. package/dist/components/stzh-contact.js +163 -0
  216. package/dist/components/stzh-container.js +5 -2
  217. package/dist/components/stzh-cspace.js +1 -1
  218. package/dist/components/stzh-datalist-item2.js +60 -19
  219. package/dist/components/stzh-datalist2.js +17 -9
  220. package/dist/components/stzh-datatable.js +32 -30
  221. package/dist/components/stzh-datepicker2.js +2 -1
  222. package/dist/components/stzh-dropdown2.js +1060 -424
  223. package/dist/components/stzh-fieldset.js +1 -1
  224. package/dist/components/stzh-figure.js +6 -3
  225. package/dist/components/stzh-footer.js +1 -1
  226. package/dist/components/stzh-ghettobox2.js +1 -1
  227. package/dist/components/stzh-header.js +5 -4
  228. package/dist/components/stzh-hspace.js +8 -5
  229. package/dist/components/stzh-icon-sprite.js +1 -1
  230. package/dist/components/stzh-invert.d.ts +11 -0
  231. package/dist/components/stzh-invert.js +36 -0
  232. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  233. package/dist/components/stzh-pagebottom.js +4 -1
  234. package/dist/components/stzh-pagetitle-hero.js +1 -1
  235. package/dist/components/stzh-pagetitle.js +8 -0
  236. package/dist/components/stzh-popover2.js +2 -2
  237. package/dist/components/stzh-portal-mitwirken.js +1 -1
  238. package/dist/components/stzh-progressbar-item2.js +6 -3
  239. package/dist/components/stzh-progressbar.js +1 -1
  240. package/dist/components/stzh-ratio.d.ts +11 -0
  241. package/dist/components/stzh-ratio.js +43 -0
  242. package/dist/components/stzh-richtext2.js +1 -1
  243. package/dist/components/stzh-row.js +1 -1
  244. package/dist/components/stzh-section.js +1 -1
  245. package/dist/components/stzh-show.d.ts +11 -0
  246. package/dist/components/stzh-show.js +62 -0
  247. package/dist/components/stzh-sitemap.js +17 -11
  248. package/dist/components/stzh-sortable2.js +11 -67
  249. package/dist/components/stzh-space.d.ts +11 -0
  250. package/dist/components/stzh-space.js +59 -0
  251. package/dist/components/stzh-status2.js +2 -2
  252. package/dist/components/stzh-sticky.js +5 -2
  253. package/dist/components/stzh-table.js +3 -1
  254. package/dist/components/stzh-text2.js +1 -1
  255. package/dist/components/stzh-tooltip2.js +2 -2
  256. package/dist/components/stzh-upload.js +4 -1
  257. package/dist/components/stzh-vbz-linechip2.js +772 -680
  258. package/dist/components/stzh-vbz-majorticker.js +1 -1
  259. package/dist/components/stzh-vbz-ticker.js +1 -1
  260. package/dist/components/stzh-vspace.js +8 -5
  261. package/dist/components/utils.js +39 -11
  262. package/dist/esm/{app-globals-ff581b69.js → app-globals-02f560cd.js} +1 -1
  263. package/dist/esm/{arrow-86a679c7.js → arrow-480bc86f.js} +468 -478
  264. package/dist/esm/axios-e2b39666.js +3165 -0
  265. package/dist/esm/{dom-6be6f662.js → dom-c525f6e4.js} +1 -1
  266. package/dist/esm/{focus-trap.esm-074705a3.js → focus-trap.esm-82634dec.js} +188 -278
  267. package/dist/esm/{index-011c84fe.js → index-319b7c49.js} +112 -4
  268. package/dist/esm/loader.js +5 -4
  269. package/dist/esm/polyfills/css-shim.js +1 -1
  270. package/dist/esm/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +1 -1
  271. package/dist/esm/stzh-accordion-item.entry.js +1 -1
  272. package/dist/esm/stzh-accordion.entry.js +1 -1
  273. package/dist/esm/stzh-actions.entry.js +2 -2
  274. package/dist/esm/stzh-actionset.entry.js +16 -6
  275. package/dist/esm/stzh-anchornav.entry.js +2 -2
  276. package/dist/esm/stzh-appnav.entry.js +2 -2
  277. package/dist/esm/stzh-appointments.entry.js +1 -1
  278. package/dist/esm/stzh-audio.entry.js +2 -2
  279. package/dist/esm/stzh-badge_3.entry.js +7 -3
  280. package/dist/esm/stzh-calendar.entry.js +1 -1
  281. package/dist/esm/stzh-card_3.entry.js +23 -17
  282. package/dist/esm/stzh-cell.entry.js +2 -2
  283. package/dist/esm/stzh-chart.entry.js +1 -1
  284. package/dist/esm/stzh-checkbox.entry.js +3 -3
  285. package/dist/esm/stzh-checkboxgroup.entry.js +3 -3
  286. package/dist/esm/stzh-chip_2.entry.js +127 -0
  287. package/dist/esm/stzh-components.js +24 -5
  288. package/dist/esm/stzh-contact.entry.js +87 -0
  289. package/dist/esm/stzh-container.entry.js +3 -2
  290. package/dist/esm/stzh-cspace.entry.js +2 -2
  291. package/dist/esm/stzh-datalist_2.entry.js +48 -15
  292. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  293. package/dist/esm/stzh-datamessagelist.entry.js +1 -1
  294. package/dist/esm/stzh-datatable.entry.js +32 -31
  295. package/dist/esm/stzh-datepicker_3.entry.js +3 -3
  296. package/dist/esm/stzh-details.entry.js +2 -2
  297. package/dist/esm/stzh-dialog.entry.js +3 -3
  298. package/dist/esm/stzh-dropdown.entry.js +1062 -427
  299. package/dist/esm/stzh-fieldset.entry.js +2 -2
  300. package/dist/esm/stzh-figure.entry.js +6 -4
  301. package/dist/esm/stzh-flyingfocus.entry.js +1 -1
  302. package/dist/esm/stzh-footer.entry.js +3 -3
  303. package/dist/esm/stzh-ghettobox_2.entry.js +4 -4
  304. package/dist/esm/stzh-header.entry.js +7 -6
  305. package/dist/esm/stzh-heading.entry.js +1 -1
  306. package/dist/esm/stzh-hr.entry.js +1 -1
  307. package/dist/esm/stzh-hspace.entry.js +4 -3
  308. package/dist/esm/stzh-icon-sprite.entry.js +2 -2
  309. package/dist/esm/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  310. package/dist/esm/stzh-input.entry.js +3 -3
  311. package/dist/esm/stzh-invert.entry.js +19 -0
  312. package/dist/esm/stzh-langnav.entry.js +1 -1
  313. package/dist/esm/stzh-link.entry.js +2 -2
  314. package/dist/esm/stzh-list-item.entry.js +1 -1
  315. package/dist/esm/stzh-list.entry.js +1 -1
  316. package/dist/esm/stzh-loader.entry.js +1 -1
  317. package/dist/esm/stzh-loadingbar.entry.js +1 -1
  318. package/dist/esm/stzh-menu_2.entry.js +2 -2
  319. package/dist/esm/stzh-message.entry.js +1 -1
  320. package/dist/esm/stzh-metanav.entry.js +1 -1
  321. package/dist/esm/stzh-microsite-teaserlist.entry.js +2 -2
  322. package/dist/esm/stzh-olmap.entry.js +1 -1
  323. package/dist/esm/stzh-overlay.entry.js +2 -2
  324. package/dist/esm/stzh-page-skiplinks.entry.js +1 -1
  325. package/dist/esm/stzh-pagebottom.entry.js +5 -2
  326. package/dist/esm/stzh-pagetitle-hero.entry.js +3 -3
  327. package/dist/esm/stzh-pagetitle.entry.js +10 -2
  328. package/dist/esm/stzh-popover.entry.js +6 -6
  329. package/dist/esm/stzh-portal-mitwirken.entry.js +2 -2
  330. package/dist/esm/stzh-progressbar-item.entry.js +6 -4
  331. package/dist/esm/stzh-progressbar.entry.js +2 -2
  332. package/dist/esm/stzh-ratio.entry.js +22 -0
  333. package/dist/esm/stzh-readspeaker.entry.js +2 -2
  334. package/dist/esm/stzh-row.entry.js +2 -2
  335. package/dist/esm/stzh-saptcha.entry.js +1 -1
  336. package/dist/esm/stzh-section.entry.js +2 -2
  337. package/dist/esm/stzh-share.entry.js +1 -1
  338. package/dist/esm/stzh-show.entry.js +37 -0
  339. package/dist/esm/stzh-sitemap.entry.js +2 -2
  340. package/dist/esm/stzh-skiplink.entry.js +1 -1
  341. package/dist/esm/stzh-sortable.entry.js +12 -68
  342. package/dist/esm/stzh-space.entry.js +30 -0
  343. package/dist/esm/stzh-status.entry.js +2 -2
  344. package/dist/esm/stzh-sticky.entry.js +5 -3
  345. package/dist/esm/stzh-table.entry.js +4 -3
  346. package/dist/esm/stzh-text.entry.js +2 -2
  347. package/dist/esm/stzh-textandimage.entry.js +2 -2
  348. package/dist/esm/stzh-toggle.entry.js +3 -3
  349. package/dist/esm/stzh-tooltip.entry.js +6 -6
  350. package/dist/esm/stzh-upload.entry.js +7 -4
  351. package/dist/esm/stzh-vbz-linechip.entry.js +783 -691
  352. package/dist/esm/stzh-vbz-majorticker.entry.js +2 -2
  353. package/dist/esm/stzh-vbz-ticker.entry.js +2 -2
  354. package/dist/esm/stzh-visuallyhidden.entry.js +1 -1
  355. package/dist/esm/stzh-vspace.entry.js +4 -3
  356. package/dist/esm/{utils-92a77db5.js → utils-51148d9a.js} +39 -11
  357. package/dist/esm-es5/app-globals-02f560cd.js +1 -0
  358. package/dist/esm-es5/arrow-480bc86f.js +1 -0
  359. package/dist/esm-es5/axios-e2b39666.js +1 -0
  360. package/dist/esm-es5/{dom-6be6f662.js → dom-c525f6e4.js} +0 -0
  361. package/dist/esm-es5/focus-trap.esm-82634dec.js +9 -0
  362. package/dist/esm-es5/index-319b7c49.js +2 -0
  363. package/dist/esm-es5/loader.js +1 -1
  364. package/dist/esm-es5/{shadow-css-ed4599f8.js → shadow-css-abbdeef8.js} +0 -0
  365. package/dist/esm-es5/stzh-accordion-item.entry.js +1 -1
  366. package/dist/esm-es5/stzh-accordion.entry.js +1 -1
  367. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  368. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  369. package/dist/esm-es5/stzh-anchornav.entry.js +1 -1
  370. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  371. package/dist/esm-es5/stzh-appointments.entry.js +1 -1
  372. package/dist/esm-es5/stzh-audio.entry.js +1 -1
  373. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  374. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  375. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  376. package/dist/esm-es5/stzh-cell.entry.js +1 -1
  377. package/dist/esm-es5/stzh-chart.entry.js +1 -1
  378. package/dist/esm-es5/stzh-checkbox.entry.js +1 -1
  379. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  380. package/dist/esm-es5/stzh-chip_2.entry.js +1 -0
  381. package/dist/esm-es5/stzh-components.js +1 -1
  382. package/dist/esm-es5/stzh-contact.entry.js +1 -0
  383. package/dist/esm-es5/stzh-container.entry.js +1 -1
  384. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  385. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  386. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  387. package/dist/esm-es5/stzh-datamessagelist.entry.js +1 -1
  388. package/dist/esm-es5/stzh-datatable.entry.js +4 -4
  389. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  390. package/dist/esm-es5/stzh-details.entry.js +1 -1
  391. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  392. package/dist/esm-es5/stzh-dropdown.entry.js +9 -1
  393. package/dist/esm-es5/stzh-fieldset.entry.js +1 -1
  394. package/dist/esm-es5/stzh-figure.entry.js +1 -1
  395. package/dist/esm-es5/stzh-flyingfocus.entry.js +1 -1
  396. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  397. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  398. package/dist/esm-es5/stzh-header.entry.js +1 -1
  399. package/dist/esm-es5/stzh-heading.entry.js +1 -1
  400. package/dist/esm-es5/stzh-hr.entry.js +1 -1
  401. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  402. package/dist/esm-es5/stzh-icon-sprite.entry.js +1 -1
  403. package/dist/esm-es5/{stzh-input-description-bdd1e340.js → stzh-input-description-cc38e214.js} +1 -1
  404. package/dist/esm-es5/stzh-input.entry.js +1 -1
  405. package/dist/esm-es5/stzh-invert.entry.js +1 -0
  406. package/dist/esm-es5/stzh-langnav.entry.js +1 -1
  407. package/dist/esm-es5/stzh-link.entry.js +1 -1
  408. package/dist/esm-es5/stzh-list-item.entry.js +1 -1
  409. package/dist/esm-es5/stzh-list.entry.js +1 -1
  410. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  411. package/dist/esm-es5/stzh-loadingbar.entry.js +1 -1
  412. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  413. package/dist/esm-es5/stzh-message.entry.js +1 -1
  414. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  415. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  416. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  417. package/dist/esm-es5/stzh-overlay.entry.js +1 -1
  418. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  419. package/dist/esm-es5/stzh-pagebottom.entry.js +1 -1
  420. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  421. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  422. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  423. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  424. package/dist/esm-es5/stzh-progressbar-item.entry.js +1 -1
  425. package/dist/esm-es5/stzh-progressbar.entry.js +1 -1
  426. package/dist/esm-es5/stzh-ratio.entry.js +1 -0
  427. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  428. package/dist/esm-es5/stzh-row.entry.js +1 -1
  429. package/dist/esm-es5/stzh-saptcha.entry.js +1 -1
  430. package/dist/esm-es5/stzh-section.entry.js +1 -1
  431. package/dist/esm-es5/stzh-share.entry.js +1 -1
  432. package/dist/esm-es5/stzh-show.entry.js +1 -0
  433. package/dist/esm-es5/stzh-sitemap.entry.js +1 -1
  434. package/dist/esm-es5/stzh-skiplink.entry.js +1 -1
  435. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  436. package/dist/esm-es5/stzh-space.entry.js +1 -0
  437. package/dist/esm-es5/stzh-status.entry.js +1 -1
  438. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  439. package/dist/esm-es5/stzh-table.entry.js +1 -1
  440. package/dist/esm-es5/stzh-text.entry.js +1 -1
  441. package/dist/esm-es5/stzh-textandimage.entry.js +1 -1
  442. package/dist/esm-es5/stzh-toggle.entry.js +1 -1
  443. package/dist/esm-es5/stzh-tooltip.entry.js +1 -1
  444. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  445. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  446. package/dist/esm-es5/stzh-vbz-majorticker.entry.js +1 -1
  447. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  448. package/dist/esm-es5/stzh-visuallyhidden.entry.js +1 -1
  449. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  450. package/dist/esm-es5/translation-utils-2623783f.js +1 -1
  451. package/dist/esm-es5/utils-51148d9a.js +1 -0
  452. package/dist/stzh-components/assets/i18n/de.json +4 -4
  453. package/dist/stzh-components/assets/i18n/en.json +1 -1
  454. package/dist/stzh-components/assets/icons/mono/calculator.svg +10 -0
  455. package/dist/stzh-components/assets/svgsprites/symbol/sprite.symbol.html +47 -34
  456. package/dist/stzh-components/assets/svgsprites/symbol/svg/sprite.symbol.svg +1 -1
  457. package/dist/stzh-components/p-013d269a.system.entry.js +1 -0
  458. package/dist/stzh-components/p-02d51685.entry.js +1 -0
  459. package/dist/stzh-components/p-0759cd7e.entry.js +1 -0
  460. package/dist/stzh-components/p-07dc23a3.system.entry.js +1 -0
  461. package/dist/stzh-components/p-088b16c6.system.entry.js +1 -0
  462. package/dist/stzh-components/{p-9176246f.entry.js → p-0930004d.entry.js} +1 -1
  463. package/dist/stzh-components/p-0a2de4e8.entry.js +1 -0
  464. package/dist/stzh-components/p-0ba944ab.entry.js +1 -0
  465. package/dist/stzh-components/p-0ce8b383.system.js +1 -0
  466. package/dist/stzh-components/p-0f882e26.system.entry.js +1 -0
  467. package/dist/stzh-components/p-0ffd0de8.system.entry.js +1 -0
  468. package/dist/stzh-components/{p-60274e67.system.entry.js → p-102e2bcd.system.entry.js} +1 -1
  469. package/dist/stzh-components/{p-cff8376e.entry.js → p-12564ee4.entry.js} +1 -1
  470. package/dist/stzh-components/p-12856e02.system.entry.js +1 -0
  471. package/dist/stzh-components/p-12e03b78.system.entry.js +1 -0
  472. package/dist/stzh-components/{p-57a0f895.entry.js → p-155ecf6c.entry.js} +1 -1
  473. package/dist/stzh-components/{p-30ae5c00.system.entry.js → p-16b3d4ee.system.entry.js} +1 -1
  474. package/dist/stzh-components/p-16c0b9ae.entry.js +3 -0
  475. package/dist/stzh-components/p-1783b15a.js +12 -0
  476. package/dist/stzh-components/p-18e20038.entry.js +1 -0
  477. package/dist/stzh-components/p-1a98470f.system.entry.js +1 -0
  478. package/dist/stzh-components/p-1bcda13d.system.entry.js +1 -0
  479. package/dist/stzh-components/p-1d435dd8.system.entry.js +1 -0
  480. package/dist/stzh-components/p-1f74846f.entry.js +1 -0
  481. package/dist/stzh-components/p-20bd79d0.entry.js +1 -0
  482. package/dist/stzh-components/p-215d2cf6.system.entry.js +1 -0
  483. package/dist/stzh-components/p-246cd179.js +1 -0
  484. package/dist/stzh-components/p-25d8a9c0.system.entry.js +1 -0
  485. package/dist/stzh-components/p-2674dc69.system.entry.js +1 -0
  486. package/dist/stzh-components/p-26889a91.entry.js +9 -0
  487. package/dist/stzh-components/p-29e9ad9f.system.entry.js +1 -0
  488. package/dist/stzh-components/p-2b67b0b3.system.entry.js +9 -0
  489. package/dist/stzh-components/p-2c42ae68.entry.js +1 -0
  490. package/dist/stzh-components/{p-912706bb.entry.js → p-2e6ef670.entry.js} +1 -1
  491. package/dist/stzh-components/p-2f4448c9.system.entry.js +1 -0
  492. package/dist/stzh-components/p-309fc559.system.entry.js +1 -0
  493. package/dist/stzh-components/p-30a9de85.system.entry.js +1 -0
  494. package/dist/stzh-components/p-31b995e8.entry.js +1 -0
  495. package/dist/stzh-components/p-326fcb23.js +1 -0
  496. package/dist/stzh-components/{p-ef3da23b.entry.js → p-32a03d1c.entry.js} +1 -1
  497. package/dist/stzh-components/p-36e72c1d.system.js +2 -0
  498. package/dist/stzh-components/p-37920e74.system.entry.js +1 -0
  499. package/dist/stzh-components/{p-ed6adb96.entry.js → p-3b00d8b8.entry.js} +1 -1
  500. package/dist/stzh-components/p-3f676d99.system.entry.js +1 -0
  501. package/dist/stzh-components/{p-0c8427bc.entry.js → p-40798ed2.entry.js} +1 -1
  502. package/dist/stzh-components/p-418e04f7.system.entry.js +1 -0
  503. package/dist/stzh-components/p-444b2baf.entry.js +1 -0
  504. package/dist/stzh-components/p-44b03dbb.js +10 -0
  505. package/dist/stzh-components/{p-2577ca1e.system.entry.js → p-44d10402.system.entry.js} +1 -1
  506. package/dist/stzh-components/p-4633b93d.entry.js +1 -0
  507. package/dist/stzh-components/{p-ed0d51b6.entry.js → p-46d07ed7.entry.js} +1 -1
  508. package/dist/stzh-components/p-470182bb.system.entry.js +1 -0
  509. package/dist/stzh-components/{p-669896ec.entry.js → p-48dee587.entry.js} +1 -1
  510. package/dist/stzh-components/p-48e79dc0.system.entry.js +1 -0
  511. package/dist/stzh-components/p-48e835cf.system.js +1 -0
  512. package/dist/stzh-components/p-4a60b27f.entry.js +1 -0
  513. package/dist/stzh-components/p-4c60da30.entry.js +1 -0
  514. package/dist/stzh-components/p-4eee30ea.system.entry.js +1 -0
  515. package/dist/stzh-components/{p-f027e569.system.entry.js → p-512c38b3.system.entry.js} +1 -1
  516. package/dist/stzh-components/p-51b3a560.system.entry.js +1 -0
  517. package/dist/stzh-components/{p-7704b10b.entry.js → p-532b4218.entry.js} +1 -1
  518. package/dist/stzh-components/{p-13051e1c.js → p-538882c8.js} +0 -0
  519. package/dist/stzh-components/p-552d0e82.system.entry.js +1 -0
  520. package/dist/stzh-components/p-55752bd5.system.entry.js +1 -0
  521. package/dist/stzh-components/p-57235597.system.entry.js +1 -0
  522. package/dist/stzh-components/p-59793ef8.system.entry.js +1 -0
  523. package/dist/stzh-components/{p-6a0a76b3.entry.js → p-5b162e4f.entry.js} +1 -1
  524. package/dist/stzh-components/p-5c697491.js +1 -0
  525. package/dist/stzh-components/{p-94830f96.system.entry.js → p-5c72664e.system.entry.js} +1 -1
  526. package/dist/stzh-components/p-5d55a672.system.entry.js +1 -0
  527. package/dist/stzh-components/{p-e7cf6c45.system.entry.js → p-617ece76.system.entry.js} +1 -1
  528. package/dist/stzh-components/p-63bb1d5e.system.js +1 -0
  529. package/dist/stzh-components/p-64cdef2f.entry.js +1 -0
  530. package/dist/stzh-components/p-655e3c46.system.entry.js +1 -0
  531. package/dist/stzh-components/p-6606e17e.system.entry.js +1 -0
  532. package/dist/stzh-components/p-66692130.entry.js +1 -0
  533. package/dist/stzh-components/{p-f03ce92d.system.entry.js → p-6722e89a.system.entry.js} +1 -1
  534. package/dist/stzh-components/{p-557f07b5.system.entry.js → p-6769b9a8.system.entry.js} +1 -1
  535. package/dist/stzh-components/{p-2bec3c77.entry.js → p-67816aa4.entry.js} +1 -1
  536. package/dist/stzh-components/p-67ae4994.entry.js +1 -0
  537. package/dist/stzh-components/{p-f39f347c.system.js → p-6845b6ac.system.js} +0 -0
  538. package/dist/stzh-components/{p-58af0855.system.entry.js → p-6a94e520.system.entry.js} +1 -1
  539. package/dist/stzh-components/p-6adc5f0c.system.entry.js +1 -0
  540. package/dist/stzh-components/p-6dbf976b.entry.js +1 -0
  541. package/dist/stzh-components/p-6deb516e.entry.js +1 -0
  542. package/dist/stzh-components/{p-eade9f77.entry.js → p-6e3231ce.entry.js} +1 -1
  543. package/dist/stzh-components/{p-288ee536.system.entry.js → p-70f85be3.system.entry.js} +1 -1
  544. package/dist/stzh-components/p-72a62d0d.system.entry.js +1 -0
  545. package/dist/stzh-components/p-761ee059.entry.js +1 -0
  546. package/dist/stzh-components/{p-ea9ca52b.entry.js → p-77320d20.entry.js} +1 -1
  547. package/dist/stzh-components/p-77d0a54b.system.entry.js +1 -0
  548. package/dist/stzh-components/p-798ac79c.entry.js +1 -0
  549. package/dist/stzh-components/{p-0cc8bbd7.system.entry.js → p-7e4261ce.system.entry.js} +1 -1
  550. package/dist/stzh-components/{p-df5f49b4.js → p-7f0fb35c.js} +1 -1
  551. package/dist/stzh-components/{p-44e0b101.system.entry.js → p-7f1b7b44.system.entry.js} +1 -1
  552. package/dist/stzh-components/{p-62a2684d.entry.js → p-7f857e56.entry.js} +1 -1
  553. package/dist/stzh-components/{p-33f80cd2.system.entry.js → p-809ed955.system.entry.js} +1 -1
  554. package/dist/stzh-components/{p-97e16665.system.entry.js → p-80f497d8.system.entry.js} +1 -1
  555. package/dist/stzh-components/{p-8cc119d3.system.entry.js → p-8361c9d8.system.entry.js} +1 -1
  556. package/dist/stzh-components/{p-cc720d2d.entry.js → p-838b0542.entry.js} +1 -1
  557. package/dist/stzh-components/p-84a6e023.system.entry.js +1 -0
  558. package/dist/stzh-components/p-862e7723.system.entry.js +1 -0
  559. package/dist/stzh-components/{p-49b292df.entry.js → p-86336227.entry.js} +1 -1
  560. package/dist/stzh-components/p-89bd0d46.entry.js +1 -0
  561. package/dist/stzh-components/p-8caafed2.system.entry.js +1 -0
  562. package/dist/stzh-components/{p-0409bf6b.system.entry.js → p-8f577bc6.system.entry.js} +1 -1
  563. package/dist/stzh-components/p-919cf183.entry.js +1 -0
  564. package/dist/stzh-components/{p-9e4e0cc9.entry.js → p-923dffc7.entry.js} +1 -1
  565. package/dist/stzh-components/p-94918f2a.system.entry.js +1 -0
  566. package/dist/stzh-components/p-951b04ab.entry.js +1 -0
  567. package/dist/stzh-components/p-963a7526.system.entry.js +7 -0
  568. package/dist/stzh-components/p-990f395b.entry.js +1 -0
  569. package/dist/stzh-components/p-99a3742a.js +2 -0
  570. package/dist/stzh-components/p-99b82949.entry.js +1 -0
  571. package/dist/stzh-components/{p-bee6eef5.entry.js → p-9be21c72.entry.js} +1 -1
  572. package/dist/stzh-components/{p-eb6d3e6c.entry.js → p-9c35c9cd.entry.js} +1 -1
  573. package/dist/stzh-components/p-9de8b25b.entry.js +1 -0
  574. package/dist/stzh-components/p-9e30ee4a.system.js +10 -0
  575. package/dist/stzh-components/{p-d5cb80ad.system.entry.js → p-a11ef2d6.system.entry.js} +1 -1
  576. package/dist/stzh-components/p-a1727d35.entry.js +1 -0
  577. package/dist/stzh-components/{p-fee6a938.entry.js → p-a2df0ea1.entry.js} +1 -1
  578. package/dist/stzh-components/p-a32ae73a.system.entry.js +9 -0
  579. package/dist/stzh-components/p-a408bfba.system.js +1 -1
  580. package/dist/stzh-components/{p-4b0f473e.entry.js → p-a693ab41.entry.js} +1 -1
  581. package/dist/stzh-components/p-a6be6aca.system.entry.js +1 -0
  582. package/dist/stzh-components/p-a7eb3e02.system.entry.js +1 -0
  583. package/dist/stzh-components/p-acf59d10.entry.js +1 -0
  584. package/dist/stzh-components/p-ad62a793.system.entry.js +1 -0
  585. package/dist/stzh-components/{p-72389069.entry.js → p-ad816fd9.entry.js} +1 -1
  586. package/dist/stzh-components/p-ae38f1d2.entry.js +1 -0
  587. package/dist/stzh-components/p-af67ea5e.entry.js +7 -0
  588. package/dist/stzh-components/p-b04a9d0f.system.entry.js +1 -0
  589. package/dist/stzh-components/{p-be79497f.system.entry.js → p-b1ffc2a9.system.entry.js} +1 -1
  590. package/dist/stzh-components/p-b395bed5.system.entry.js +1 -0
  591. package/dist/stzh-components/p-b422041d.entry.js +1 -0
  592. package/dist/stzh-components/p-b92734db.entry.js +1 -0
  593. package/dist/stzh-components/p-b9372a2a.entry.js +1 -0
  594. package/dist/stzh-components/p-bada7caa.system.entry.js +1 -0
  595. package/dist/stzh-components/p-bb698e26.entry.js +1 -0
  596. package/dist/stzh-components/{p-f5fdc88c.entry.js → p-bc2af057.entry.js} +3 -3
  597. package/dist/stzh-components/p-bc545121.entry.js +1 -0
  598. package/dist/stzh-components/{p-1d8272a5.entry.js → p-be68b323.entry.js} +1 -1
  599. package/dist/stzh-components/p-be97cb22.entry.js +8 -0
  600. package/dist/stzh-components/{p-b3dc4913.entry.js → p-c2a22eb8.entry.js} +1 -1
  601. package/dist/stzh-components/p-c2f909c1.system.entry.js +1 -0
  602. package/dist/stzh-components/p-c4c620fa.system.entry.js +1 -0
  603. package/dist/stzh-components/p-c87e9b71.entry.js +1 -0
  604. package/dist/stzh-components/p-c8cc2563.system.entry.js +1 -0
  605. package/dist/stzh-components/p-c9c7d88a.entry.js +1 -0
  606. package/dist/stzh-components/{p-2732d8c8.system.js → p-cbfae706.system.js} +0 -0
  607. package/dist/stzh-components/{p-aacf685b.system.entry.js → p-cc722b35.system.entry.js} +1 -1
  608. package/dist/stzh-components/p-d04bbc19.js +1 -0
  609. package/dist/stzh-components/{p-fd265f3a.entry.js → p-d1cfe06b.entry.js} +1 -1
  610. package/dist/stzh-components/p-d4b7a303.system.js +1 -0
  611. package/dist/stzh-components/p-d4c006e8.entry.js +1 -0
  612. package/dist/stzh-components/p-d54ff4d4.system.entry.js +1 -0
  613. package/dist/stzh-components/p-d943e02c.system.entry.js +1 -0
  614. package/dist/stzh-components/p-d9ae09b5.entry.js +9 -0
  615. package/dist/stzh-components/p-db306e24.entry.js +1 -0
  616. package/dist/stzh-components/{p-d2f6fb1b.system.js → p-db339680.system.js} +1 -1
  617. package/dist/stzh-components/p-db6aa108.system.js +1 -0
  618. package/dist/stzh-components/p-dd1bb919.entry.js +1 -0
  619. package/dist/stzh-components/{p-586a8b3f.entry.js → p-de76e01b.entry.js} +1 -1
  620. package/dist/stzh-components/{p-aae4655f.entry.js → p-e1b2785b.entry.js} +1 -1
  621. package/dist/stzh-components/p-e3afc8f7.entry.js +1 -0
  622. package/dist/stzh-components/p-e4a8f1bc.system.entry.js +1 -0
  623. package/dist/stzh-components/p-e54ef44f.system.entry.js +1 -0
  624. package/dist/stzh-components/p-e59c2adc.system.entry.js +1 -0
  625. package/dist/stzh-components/{p-60d9bf98.system.entry.js → p-e7909de9.system.entry.js} +1 -1
  626. package/dist/stzh-components/p-e8feb92e.system.entry.js +1 -0
  627. package/dist/stzh-components/p-e9994d05.system.entry.js +1 -0
  628. package/dist/stzh-components/p-eb7773f3.entry.js +1 -0
  629. package/dist/stzh-components/p-ed783154.system.entry.js +1 -0
  630. package/dist/stzh-components/p-ee4b939a.entry.js +1 -0
  631. package/dist/stzh-components/p-eed126cf.system.entry.js +1 -0
  632. package/dist/stzh-components/{p-28d8aa31.entry.js → p-f0e2a32d.entry.js} +1 -1
  633. package/dist/stzh-components/{p-0cff4e01.entry.js → p-f2deda0a.entry.js} +1 -1
  634. package/dist/stzh-components/p-f3276ca5.system.entry.js +1 -0
  635. package/dist/stzh-components/p-f4deacf4.system.entry.js +1 -0
  636. package/dist/stzh-components/{p-4226dec6.system.entry.js → p-f7bb76d8.system.entry.js} +1 -1
  637. package/dist/stzh-components/p-f7e18135.entry.js +1 -0
  638. package/dist/stzh-components/{p-e0f063ac.entry.js → p-f8feb07b.entry.js} +1 -1
  639. package/dist/stzh-components/p-f9ab0433.entry.js +1 -0
  640. package/dist/stzh-components/{p-e016ceb9.entry.js → p-fd15cc86.entry.js} +1 -1
  641. package/dist/stzh-components/p-febba79b.entry.js +1 -0
  642. package/dist/stzh-components/p-ff328114.system.entry.js +1 -0
  643. package/dist/stzh-components/stzh-components.css +1 -1
  644. package/dist/stzh-components/stzh-components.esm.js +1 -1
  645. package/dist/stzh-components/stzh-components.js +1 -1
  646. package/dist/types/components/stzh-actionset/stzh-actionset.localization.d.ts +1 -1
  647. package/dist/types/components/stzh-appointments/stzh-appointments.localization.d.ts +1 -1
  648. package/dist/types/components/stzh-audio/stzh-audio.localization.d.ts +1 -1
  649. package/dist/types/components/stzh-calendar/stzh-calendar-day.d.ts +1 -1
  650. package/dist/types/components/stzh-calendar/stzh-calendar-month.d.ts +1 -1
  651. package/dist/types/components/stzh-calendar/stzh-calendar.localization.d.ts +1 -1
  652. package/dist/types/components/stzh-card/stzh-card.localization.d.ts +1 -1
  653. package/dist/types/components/stzh-card-list/stzh-card-list.localization.d.ts +1 -1
  654. package/dist/types/components/stzh-container/stzh-container.d.ts +2 -0
  655. package/dist/types/components/stzh-datamessagelist-item/stzh-datamessagelist-item.localization.d.ts +1 -1
  656. package/dist/types/components/stzh-datatable/stzh-datatable.localization.d.ts +1 -1
  657. package/dist/types/components/stzh-datepicker/stzh-datepicker.localization.d.ts +1 -1
  658. package/dist/types/components/stzh-dialog/stzh-dialog.localization.d.ts +1 -1
  659. package/dist/types/components/stzh-dropdown/stzh-dropdown.localization.d.ts +1 -1
  660. package/dist/types/components/stzh-footer/stzh-footer.localization.d.ts +1 -1
  661. package/dist/types/components/stzh-ghettobox/stzh-ghettobox.localization.d.ts +1 -1
  662. package/dist/types/components/stzh-hspace/stzh-hspace.d.ts +3 -1
  663. package/dist/types/components/stzh-input/stzh-input-description.d.ts +1 -1
  664. package/dist/types/components/stzh-message/stzh-message.localization.d.ts +1 -1
  665. package/dist/types/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.localization.d.ts +1 -1
  666. package/dist/types/components/stzh-olmap/stzh-olmap.localization.d.ts +1 -1
  667. package/dist/types/components/stzh-popover/stzh-popover.localization.d.ts +1 -1
  668. package/dist/types/components/stzh-progressbar-item/stzh-progressbar-item.d.ts +1 -0
  669. package/dist/types/components/stzh-saptcha/stzh-saptcha.localization.d.ts +1 -1
  670. package/dist/types/components/stzh-share/stzh-share.localization.d.ts +1 -1
  671. package/dist/types/components/stzh-sortable/stzh-sortable.localization.d.ts +1 -1
  672. package/dist/types/components/stzh-space/stzh-space.d.ts +27 -0
  673. package/dist/types/components/stzh-tooltip/stzh-tooltip.localization.d.ts +1 -1
  674. package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +1 -1
  675. package/dist/types/components/stzh-vbz-majorticker/stzh-vbz-majorticker.localization.d.ts +1 -1
  676. package/dist/types/components/stzh-vbz-ticker/stzh-vbz-ticker.localization.d.ts +1 -1
  677. package/dist/types/components/stzh-vspace/stzh-vspace.d.ts +3 -1
  678. package/dist/types/components.d.ts +440 -26
  679. package/dist/types/index.d.ts +135 -133
  680. package/dist/types/stencil-public-runtime.d.ts +59 -3
  681. package/dist/types/utils/date-adapter.d.ts +2 -2
  682. package/dist/types/utils/h.d.ts +3 -3
  683. package/dist/types/utils/test-utils.d.ts +2 -2
  684. package/dist/types/utils/translation-utils.d.ts +5 -5
  685. package/dist/types/utils/utils.d.ts +4 -2
  686. package/dist/vscode-data.json +695 -96
  687. package/loader/index.d.ts +9 -0
  688. package/package.json +10 -10
  689. package/dist/cjs/index-8bd1552a.js +0 -2019
  690. package/dist/cjs/stzh-chip.cjs.entry.js +0 -100
  691. package/dist/cjs/stzh-clamp.cjs.entry.js +0 -27
  692. package/dist/cjs/stzh-contactaddress.cjs.entry.js +0 -91
  693. package/dist/collection/pages/example.stories.js +0 -170
  694. package/dist/components/index3.js +0 -2017
  695. package/dist/components/stzh-contactaddress.js +0 -157
  696. package/dist/esm/index-545902f4.js +0 -2017
  697. package/dist/esm/stzh-chip.entry.js +0 -96
  698. package/dist/esm/stzh-clamp.entry.js +0 -23
  699. package/dist/esm/stzh-contactaddress.entry.js +0 -87
  700. package/dist/esm-es5/app-globals-ff581b69.js +0 -1
  701. package/dist/esm-es5/arrow-86a679c7.js +0 -1
  702. package/dist/esm-es5/focus-trap.esm-074705a3.js +0 -9
  703. package/dist/esm-es5/index-011c84fe.js +0 -2
  704. package/dist/esm-es5/index-545902f4.js +0 -1
  705. package/dist/esm-es5/stzh-chip.entry.js +0 -1
  706. package/dist/esm-es5/stzh-clamp.entry.js +0 -1
  707. package/dist/esm-es5/stzh-contactaddress.entry.js +0 -1
  708. package/dist/esm-es5/utils-92a77db5.js +0 -1
  709. package/dist/stzh-components/p-006751fc.system.entry.js +0 -1
  710. package/dist/stzh-components/p-025c9c5b.entry.js +0 -1
  711. package/dist/stzh-components/p-06d9b884.system.entry.js +0 -1
  712. package/dist/stzh-components/p-0743d7fa.entry.js +0 -1
  713. package/dist/stzh-components/p-0850a2e1.system.entry.js +0 -1
  714. package/dist/stzh-components/p-09da70d8.entry.js +0 -1
  715. package/dist/stzh-components/p-0a647396.entry.js +0 -1
  716. package/dist/stzh-components/p-104df3a8.system.entry.js +0 -1
  717. package/dist/stzh-components/p-10c046fc.system.entry.js +0 -1
  718. package/dist/stzh-components/p-11d7b426.system.entry.js +0 -1
  719. package/dist/stzh-components/p-12a2afe9.entry.js +0 -1
  720. package/dist/stzh-components/p-17645237.entry.js +0 -1
  721. package/dist/stzh-components/p-18cb06e2.entry.js +0 -1
  722. package/dist/stzh-components/p-19ab7e34.system.entry.js +0 -1
  723. package/dist/stzh-components/p-1ae4d600.system.entry.js +0 -1
  724. package/dist/stzh-components/p-1e4b4d71.system.js +0 -1
  725. package/dist/stzh-components/p-21cad060.system.entry.js +0 -1
  726. package/dist/stzh-components/p-22b06793.entry.js +0 -1
  727. package/dist/stzh-components/p-23829f75.system.entry.js +0 -1
  728. package/dist/stzh-components/p-2bdc71ae.system.entry.js +0 -1
  729. package/dist/stzh-components/p-2d340222.system.entry.js +0 -1
  730. package/dist/stzh-components/p-30ba96a3.entry.js +0 -1
  731. package/dist/stzh-components/p-31c3469c.entry.js +0 -1
  732. package/dist/stzh-components/p-3200f52a.system.entry.js +0 -1
  733. package/dist/stzh-components/p-376946bc.entry.js +0 -1
  734. package/dist/stzh-components/p-385dda6c.system.entry.js +0 -1
  735. package/dist/stzh-components/p-391e6b90.entry.js +0 -1
  736. package/dist/stzh-components/p-3a1ff759.entry.js +0 -1
  737. package/dist/stzh-components/p-3ad67331.entry.js +0 -1
  738. package/dist/stzh-components/p-3e850dce.entry.js +0 -1
  739. package/dist/stzh-components/p-40a19ce6.js +0 -10
  740. package/dist/stzh-components/p-441ea784.entry.js +0 -1
  741. package/dist/stzh-components/p-4704588f.system.entry.js +0 -1
  742. package/dist/stzh-components/p-49bb09a5.entry.js +0 -1
  743. package/dist/stzh-components/p-4b369bac.entry.js +0 -1
  744. package/dist/stzh-components/p-51be647d.entry.js +0 -1
  745. package/dist/stzh-components/p-53934cfd.js +0 -1
  746. package/dist/stzh-components/p-55b7cda7.system.entry.js +0 -1
  747. package/dist/stzh-components/p-57237509.system.entry.js +0 -1
  748. package/dist/stzh-components/p-576e1345.entry.js +0 -1
  749. package/dist/stzh-components/p-5790eb4f.system.entry.js +0 -1
  750. package/dist/stzh-components/p-57f8596f.system.entry.js +0 -1
  751. package/dist/stzh-components/p-5b1c1cf7.entry.js +0 -1
  752. package/dist/stzh-components/p-5ddf8258.system.entry.js +0 -1
  753. package/dist/stzh-components/p-5fd9ae99.system.entry.js +0 -1
  754. package/dist/stzh-components/p-60ec90b2.system.entry.js +0 -1
  755. package/dist/stzh-components/p-63d94a57.system.entry.js +0 -1
  756. package/dist/stzh-components/p-64422176.entry.js +0 -9
  757. package/dist/stzh-components/p-661831da.entry.js +0 -1
  758. package/dist/stzh-components/p-67c6f0f2.entry.js +0 -1
  759. package/dist/stzh-components/p-6d009f56.system.entry.js +0 -1
  760. package/dist/stzh-components/p-71c07419.system.entry.js +0 -1
  761. package/dist/stzh-components/p-75068cd7.system.entry.js +0 -1
  762. package/dist/stzh-components/p-76165227.entry.js +0 -1
  763. package/dist/stzh-components/p-791bc813.system.js +0 -1
  764. package/dist/stzh-components/p-7941cf38.js +0 -1
  765. package/dist/stzh-components/p-7adc28a4.system.entry.js +0 -7
  766. package/dist/stzh-components/p-7b86c022.entry.js +0 -1
  767. package/dist/stzh-components/p-7c26f80f.system.entry.js +0 -1
  768. package/dist/stzh-components/p-7ce59988.system.entry.js +0 -1
  769. package/dist/stzh-components/p-7e94dde2.entry.js +0 -1
  770. package/dist/stzh-components/p-812ea5e9.system.entry.js +0 -1
  771. package/dist/stzh-components/p-8364475f.js +0 -12
  772. package/dist/stzh-components/p-84965eac.entry.js +0 -1
  773. package/dist/stzh-components/p-84b9f66f.system.entry.js +0 -1
  774. package/dist/stzh-components/p-853a1f92.entry.js +0 -1
  775. package/dist/stzh-components/p-86a29c35.js +0 -1
  776. package/dist/stzh-components/p-88a31179.system.entry.js +0 -1
  777. package/dist/stzh-components/p-8991d3bc.entry.js +0 -1
  778. package/dist/stzh-components/p-8a1d00fe.entry.js +0 -3
  779. package/dist/stzh-components/p-8bbaed3a.entry.js +0 -1
  780. package/dist/stzh-components/p-8fa2fb95.system.entry.js +0 -1
  781. package/dist/stzh-components/p-9072a490.system.entry.js +0 -1
  782. package/dist/stzh-components/p-92afa8df.entry.js +0 -1
  783. package/dist/stzh-components/p-95b490ec.system.entry.js +0 -1
  784. package/dist/stzh-components/p-9743f558.system.entry.js +0 -1
  785. package/dist/stzh-components/p-996579d0.entry.js +0 -1
  786. package/dist/stzh-components/p-9a5ebb1f.js +0 -2
  787. package/dist/stzh-components/p-9dac46e2.system.entry.js +0 -1
  788. package/dist/stzh-components/p-9e38b823.system.entry.js +0 -1
  789. package/dist/stzh-components/p-a16dc363.entry.js +0 -1
  790. package/dist/stzh-components/p-a474826c.system.entry.js +0 -1
  791. package/dist/stzh-components/p-a53c0a98.entry.js +0 -1
  792. package/dist/stzh-components/p-a8101552.entry.js +0 -8
  793. package/dist/stzh-components/p-a934dd4d.entry.js +0 -1
  794. package/dist/stzh-components/p-ac1a6085.system.entry.js +0 -1
  795. package/dist/stzh-components/p-ac3aa560.system.entry.js +0 -1
  796. package/dist/stzh-components/p-afedafa6.system.entry.js +0 -1
  797. package/dist/stzh-components/p-b0d8866d.entry.js +0 -1
  798. package/dist/stzh-components/p-b2145753.system.entry.js +0 -1
  799. package/dist/stzh-components/p-b436a18d.system.entry.js +0 -1
  800. package/dist/stzh-components/p-b908d228.system.entry.js +0 -1
  801. package/dist/stzh-components/p-b937ae70.system.js +0 -1
  802. package/dist/stzh-components/p-ba0b93c4.system.entry.js +0 -9
  803. package/dist/stzh-components/p-bfcfbfbb.system.entry.js +0 -1
  804. package/dist/stzh-components/p-c0fef3d1.entry.js +0 -1
  805. package/dist/stzh-components/p-c30600d0.system.entry.js +0 -1
  806. package/dist/stzh-components/p-c3a543a6.entry.js +0 -1
  807. package/dist/stzh-components/p-c63aecaa.system.entry.js +0 -1
  808. package/dist/stzh-components/p-c87e12de.system.entry.js +0 -1
  809. package/dist/stzh-components/p-cf6003d6.js +0 -1
  810. package/dist/stzh-components/p-cfd22a5e.system.entry.js +0 -1
  811. package/dist/stzh-components/p-d240494d.entry.js +0 -1
  812. package/dist/stzh-components/p-d5c0801b.entry.js +0 -1
  813. package/dist/stzh-components/p-d6ec20c8.system.entry.js +0 -1
  814. package/dist/stzh-components/p-d9bf09b1.system.entry.js +0 -1
  815. package/dist/stzh-components/p-db1692fb.entry.js +0 -1
  816. package/dist/stzh-components/p-dbdc01c7.system.js +0 -2
  817. package/dist/stzh-components/p-ded16c0e.system.js +0 -1
  818. package/dist/stzh-components/p-e20369c8.system.js +0 -10
  819. package/dist/stzh-components/p-e32bc982.system.js +0 -1
  820. package/dist/stzh-components/p-e46d82b9.system.entry.js +0 -1
  821. package/dist/stzh-components/p-e76a3647.entry.js +0 -1
  822. package/dist/stzh-components/p-ec3a472a.system.entry.js +0 -1
  823. package/dist/stzh-components/p-ec7b6ce8.entry.js +0 -7
  824. package/dist/stzh-components/p-f133eba2.entry.js +0 -1
  825. package/dist/stzh-components/p-f3107fc7.system.entry.js +0 -1
  826. package/dist/stzh-components/p-fbf2f4ed.system.entry.js +0 -1
  827. package/dist/stzh-components/p-fcec6003.system.entry.js +0 -1
  828. package/dist/stzh-components/p-fdb906b9.system.entry.js +0 -1
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,s,a){function i(t){return t instanceof s?t:new s((function(e){e(t)}))}return new(s||(s=Promise))((function(s,n){function l(t){try{h(a.next(t))}catch(e){n(e)}}function m(t){try{h(a["throw"](t))}catch(e){n(e)}}function h(t){t.done?s(t.value):i(t.value).then(l,m)}h((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var s={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,l;return l={next:m(0),throw:m(1),return:m(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function m(t){return function(e){return h([t,e])}}function h(l){if(a)throw new TypeError("Generator is already executing.");while(s)try{if(a=1,i&&(n=l[0]&2?i["return"]:l[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,l[1])).done)return n;if(i=0,n)l=[l[0]&2,n.value];switch(l[0]){case 0:case 1:n=l;break;case 4:s.label++;return{value:l[1],done:false};case 5:s.label++;i=l[1];l=[0];continue;case 7:l=s.ops.pop();s.trys.pop();continue;default:if(!(n=s.trys,n=n.length>0&&n[n.length-1])&&(l[0]===6||l[0]===2)){s=0;continue}if(l[0]===3&&(!n||l[1]>n[0]&&l[1]<n[3])){s.label=l[1];break}if(l[0]===6&&s.label<n[1]){s.label=n[1];n=l;break}if(n&&s.label<n[2]){s.label=n[2];s.ops.push(l);break}if(n[2])s.ops.pop();s.trys.pop();continue}l=e.call(t,s)}catch(m){l=[6,m];i=0}finally{a=n=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-011c84fe.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var stzhDatamessagelistItemCss='.sc-stzh-datamessagelist-item-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-datamessagelist-item-h{display:none}.sc-stzh-datamessagelist-item-h *.sc-stzh-datamessagelist-item,.sc-stzh-datamessagelist-item-h *.sc-stzh-datamessagelist-item::before,.sc-stzh-datamessagelist-item-h *.sc-stzh-datamessagelist-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-medium);display:-ms-flexbox;display:flex;position:relative;padding:var(--stzh-space-medium);background-color:var(--stzh-color-white)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-left:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-left:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-right:var(--stzh-space-xlarge)}}.stzh-datamessagelist-item__vhidden.sc-stzh-datamessagelist-item{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-datamessagelist-item__content.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__content.sc-stzh-datamessagelist-item{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}.stzh-datamessagelist-item__text.sc-stzh-datamessagelist-item{-ms-flex-positive:1;flex-grow:1}.stzh-datamessagelist-item__heading.sc-stzh-datamessagelist-item{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h4-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-h4-default-heading-line-height, var(--stzh-font-milli-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-default-heading-letter-spacing);color:var(--stzh-base-lead-color);margin:0}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__heading.sc-stzh-datamessagelist-item{font-size:var(--stzh-font-curve-h4-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h4-medium-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-medium-heading-letter-spacing)}}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item{color:inherit;text-decoration:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover,.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::before{-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::before,.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::after{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover::before,.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus::before{background-color:var(--stzh-color-primary4)}.stzh-datamessagelist-item__description.sc-stzh-datamessagelist-item{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);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__description.sc-stzh-datamessagelist-item{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)}}.stzh-datamessagelist-item__meta-wrapper.sc-stzh-datamessagelist-item{margin-top:var(--stzh-space-small)}@media screen and (min-width: 600px){.stzh-datamessagelist-item__meta-wrapper.sc-stzh-datamessagelist-item{margin-top:var(--stzh-space-xxsmall)}}.stzh-datamessagelist-item__meta.sc-stzh-datamessagelist-item{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));display:table;list-style:none;margin:0;padding:0}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__meta.sc-stzh-datamessagelist-item{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-datamessagelist-item__meta.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 calc(var(--stzh-space-xsmall) / -1)}}.stzh-datamessagelist-item__meta-item.sc-stzh-datamessagelist-item{display:table-row}@media screen and (min-width: 600px){.stzh-datamessagelist-item__meta-item.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;margin:0 var(--stzh-space-xsmall)}}.stzh-datamessagelist-item__meta-item-label.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__meta-item-value.sc-stzh-datamessagelist-item{display:table-cell}@media screen and (min-width: 600px){.stzh-datamessagelist-item__meta-item-label.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__meta-item-value.sc-stzh-datamessagelist-item{display:inline-block}}.stzh-datamessagelist-item__meta-item-label.sc-stzh-datamessagelist-item{padding-right:var(--stzh-space-xsmall)}.stzh-datamessagelist-item__meta-item-value.sc-stzh-datamessagelist-item{color:var(--stzh-color-black)}.stzh-datamessagelist-item__status.sc-stzh-datamessagelist-item{width:10rem}.stzh-datamessagelist-item__status.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__tags-wrapper.sc-stzh-datamessagelist-item{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__status.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__tags-wrapper.sc-stzh-datamessagelist-item{margin-top:0;margin-left:var(--stzh-space-xxlarge)}}.stzh-datamessagelist-item__tags.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(var(--stzh-space-xxsmall) / -1)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__tags.sc-stzh-datamessagelist-item{-ms-flex-wrap:nowrap;flex-wrap:nowrap}}.stzh-datamessagelist-item__tag.sc-stzh-datamessagelist-item{margin:var(--stzh-space-xxsmall)}.stzh-datamessagelist-item__actions.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.stzh-datamessagelist-item__actions.sc-stzh-datamessagelist-item:not(:empty){margin-left:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__actions.sc-stzh-datamessagelist-item:not(:empty){margin-left:var(--stzh-space-xxlarge);-ms-flex-pack:center;justify-content:center}}.stzh-datamessagelist-item__action-popover.sc-stzh-datamessagelist-item{--width:auto;--min-width:12.5rem}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover,.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::before{border-left:0.3125rem solid var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover::before,.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus::before{border-left-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}';var StzhDatamessagelistItem=function(){function t(t){var e=this;registerInstance(this,t);this.stzhClick=createEvent(this,"stzhClick",7);this.stzhActionClick=createEvent(this,"stzhActionClick",7);this.actionClick=function(t,s){e.stzhActionClick.emit({component:"stzh-datamessagelist-item",action:t,originalEvent:s})};this.itemClick=function(t){e.stzhClick.emit({component:"stzh-datamessagelist-item",originalEvent:t})};this.localization=undefined;this.heading="";this.unread=false;this.href="";this.description="";this.externalHref="";this.loadingStatus=undefined;this.meta=undefined;this.actions=undefined;this.tags=undefined}t.prototype.loadingStatusWatcher=function(t){if(typeof t==="string"){this._loadingStatus=JSON.parse(t)}else{this._loadingStatus=t}};t.prototype.metaWatcher=function(t){if(typeof t==="string"){this._meta=JSON.parse(t)}else{this._meta=t}};t.prototype.actionsWatcher=function(t){if(typeof t==="string"){this._actions=JSON.parse(t)}else{this._actions=t}};t.prototype.tagsWatcher=function(t){if(typeof t==="string"){this._tags=JSON.parse(t)}else{this._tags=t}};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.loadingStatusWatcher(this.loadingStatus);this.metaWatcher(this.meta);this.actionsWatcher(this.actions);this.tagsWatcher(this.tags);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datamessagelist-item")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.render=function(){var t=this;var e={"stzh-datamessagelist-item":true,"stzh-datamessagelist-item--is-unread":this.unread};return h(Host,{role:"listitem"},h("article",{class:e},h("div",{class:"stzh-datamessagelist-item__content"},h("div",{class:"stzh-datamessagelist-item__text"},h("h3",{class:"stzh-datamessagelist-item__heading"},h("a",{class:"stzh-datamessagelist-item__heading-link",href:this.href,onClick:this.itemClick},this.unread&&h("span",{class:"stzh-datamessagelist-item__vhidden"},this.localization.unread,","),this.heading)),this.description&&h("div",{class:"stzh-datamessagelist-item__description"},h("stzh-clamp",{lines:2,linesMedium:1},this.description)),this._meta&&this._meta.length>0&&h("div",{class:"stzh-datamessagelist-item__meta-wrapper"},h("ul",{class:"stzh-datamessagelist-item__meta"},this._meta.map((function(t){return h("li",{class:"stzh-datamessagelist-item__meta-item"},h("span",{class:"stzh-datamessagelist-item__meta-item-label"},t.label),h("span",{class:"stzh-datamessagelist-item__meta-item-value"},t.value))}))))),this._loadingStatus&&h("stzh-status",{class:"stzh-datamessagelist-item__status",label:this._loadingStatus.label,percent:this._loadingStatus.percent,type:this._loadingStatus.type,withLoadingbar:true}),this._tags&&this._tags.length>0&&h("div",{class:"stzh-datamessagelist-item__tags-wrapper"},h("div",{class:"stzh-datamessagelist-item__tags"},this._tags.map((function(t){return h("stzh-chip",{class:"stzh-datamessagelist-item__tag",variant:"tag",size:"small",type:t.type,icon:t.icon,label:t.label})}))))),h("div",{class:"stzh-datamessagelist-item__actions"},this.externalHref&&h("stzh-button",{href:this.externalHref,variant:"tertiary",icon:"external-link",size:"tiny",iconOnly:true}),this._actions&&this._actions.length>0&&h("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:"stzh-datamessagelist-item__action-popover"},h("stzh-button",{variant:"tertiary",size:"tiny",icon:"more-horizontal",iconOnly:true}),h("stzh-menu",{slot:"content"},this._actions.map((function(e){return h("stzh-menu-item",{icon:e.icon,badge:e.badge,onClick:function(s){t.actionClick(e,s)}},e.label)})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{loadingStatus:["loadingStatusWatcher"],meta:["metaWatcher"],actions:["actionsWatcher"],tags:["tagsWatcher"]}},enumerable:false,configurable:true});return t}();StzhDatamessagelistItem.style=stzhDatamessagelistItemCss;export{StzhDatamessagelistItem as stzh_datamessagelist_item};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,s,a){function i(t){return t instanceof s?t:new s((function(e){e(t)}))}return new(s||(s=Promise))((function(s,n){function l(t){try{h(a.next(t))}catch(e){n(e)}}function m(t){try{h(a["throw"](t))}catch(e){n(e)}}function h(t){t.done?s(t.value):i(t.value).then(l,m)}h((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var s={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},a,i,n,l;return l={next:m(0),throw:m(1),return:m(2)},typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function m(t){return function(e){return h([t,e])}}function h(m){if(a)throw new TypeError("Generator is already executing.");while(l&&(l=0,m[0]&&(s=0)),s)try{if(a=1,i&&(n=m[0]&2?i["return"]:m[0]?i["throw"]||((n=i["return"])&&n.call(i),0):i.next)&&!(n=n.call(i,m[1])).done)return n;if(i=0,n)m=[m[0]&2,n.value];switch(m[0]){case 0:case 1:n=m;break;case 4:s.label++;return{value:m[1],done:false};case 5:s.label++;i=m[1];m=[0];continue;case 7:m=s.ops.pop();s.trys.pop();continue;default:if(!(n=s.trys,n=n.length>0&&n[n.length-1])&&(m[0]===6||m[0]===2)){s=0;continue}if(m[0]===3&&(!n||m[1]>n[0]&&m[1]<n[3])){s.label=m[1];break}if(m[0]===6&&s.label<n[1]){s.label=n[1];n=m;break}if(n&&s.label<n[2]){s.label=n[2];s.ops.push(m);break}if(n[2])s.ops.pop();s.trys.pop();continue}m=e.call(t,s)}catch(h){m=[6,h];i=0}finally{a=n=0}if(m[0]&5)throw m[1];return{value:m[0]?m[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var stzhDatamessagelistItemCss='.sc-stzh-datamessagelist-item-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-datamessagelist-item-h{display:none}.sc-stzh-datamessagelist-item-h *.sc-stzh-datamessagelist-item,.sc-stzh-datamessagelist-item-h *.sc-stzh-datamessagelist-item::before,.sc-stzh-datamessagelist-item-h *.sc-stzh-datamessagelist-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-left:var(--stzh-space-xlarge);padding-right:var(--stzh-space-medium);display:-ms-flexbox;display:flex;position:relative;padding:var(--stzh-space-medium);background-color:var(--stzh-color-white)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-left:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-left:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-datamessagelist-item.sc-stzh-datamessagelist-item{padding-right:var(--stzh-space-xlarge)}}.stzh-datamessagelist-item__vhidden.sc-stzh-datamessagelist-item{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-datamessagelist-item__content.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__content.sc-stzh-datamessagelist-item{-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center}}.stzh-datamessagelist-item__text.sc-stzh-datamessagelist-item{-ms-flex-positive:1;flex-grow:1}.stzh-datamessagelist-item__heading.sc-stzh-datamessagelist-item{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-curve-h4-default-font-size, var(--stzh-font-milli-font-size));line-height:var(--stzh-font-curve-h4-default-heading-line-height, var(--stzh-font-milli-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-default-heading-letter-spacing);color:var(--stzh-base-lead-color);margin:0}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__heading.sc-stzh-datamessagelist-item{font-size:var(--stzh-font-curve-h4-medium-font-size, var(--stzh-font-centi-font-size));line-height:var(--stzh-font-curve-h4-medium-heading-line-height, var(--stzh-font-centi-heading-line-height));letter-spacing:var(--stzh-font-curve-h4-medium-heading-letter-spacing)}}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item{color:inherit;text-decoration:none;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover,.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::before{-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::before,.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::after{content:"";display:block;position:absolute;top:0;left:0;width:100%;height:100%}.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover::before,.stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus::before{background-color:var(--stzh-color-primary4)}.stzh-datamessagelist-item__description.sc-stzh-datamessagelist-item{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);color:var(--stzh-base-lead-color)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__description.sc-stzh-datamessagelist-item{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)}}.stzh-datamessagelist-item__meta-wrapper.sc-stzh-datamessagelist-item{margin-top:var(--stzh-space-small)}@media screen and (min-width: 600px){.stzh-datamessagelist-item__meta-wrapper.sc-stzh-datamessagelist-item{margin-top:var(--stzh-space-xxsmall)}}.stzh-datamessagelist-item__meta.sc-stzh-datamessagelist-item{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));display:table;list-style:none;margin:0;padding:0}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__meta.sc-stzh-datamessagelist-item{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-datamessagelist-item__meta.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:0 calc(var(--stzh-space-xsmall) / -1)}}.stzh-datamessagelist-item__meta-item.sc-stzh-datamessagelist-item{display:table-row}@media screen and (min-width: 600px){.stzh-datamessagelist-item__meta-item.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;margin:0 var(--stzh-space-xsmall)}}.stzh-datamessagelist-item__meta-item-label.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__meta-item-value.sc-stzh-datamessagelist-item{display:table-cell}@media screen and (min-width: 600px){.stzh-datamessagelist-item__meta-item-label.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__meta-item-value.sc-stzh-datamessagelist-item{display:inline-block}}.stzh-datamessagelist-item__meta-item-label.sc-stzh-datamessagelist-item{padding-right:var(--stzh-space-xsmall)}.stzh-datamessagelist-item__meta-item-value.sc-stzh-datamessagelist-item{color:var(--stzh-color-black)}.stzh-datamessagelist-item__status.sc-stzh-datamessagelist-item{width:10rem}.stzh-datamessagelist-item__status.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__tags-wrapper.sc-stzh-datamessagelist-item{margin-top:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__status.sc-stzh-datamessagelist-item,.stzh-datamessagelist-item__tags-wrapper.sc-stzh-datamessagelist-item{margin-top:0;margin-left:var(--stzh-space-xxlarge)}}.stzh-datamessagelist-item__tags.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;margin:calc(var(--stzh-space-xxsmall) / -1)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__tags.sc-stzh-datamessagelist-item{-ms-flex-wrap:nowrap;flex-wrap:nowrap}}.stzh-datamessagelist-item__tag.sc-stzh-datamessagelist-item{margin:var(--stzh-space-xxsmall)}.stzh-datamessagelist-item__actions.sc-stzh-datamessagelist-item{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.stzh-datamessagelist-item__actions.sc-stzh-datamessagelist-item:not(:empty){margin-left:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datamessagelist-item__actions.sc-stzh-datamessagelist-item:not(:empty){margin-left:var(--stzh-space-xxlarge);-ms-flex-pack:center;justify-content:center}}.stzh-datamessagelist-item__action-popover.sc-stzh-datamessagelist-item{--width:auto;--min-width:12.5rem}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover,.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item::before{border-left:0.3125rem solid var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:hover::before,.stzh-datamessagelist-item--is-unread.sc-stzh-datamessagelist-item .stzh-datamessagelist-item__heading-link.sc-stzh-datamessagelist-item:focus::before{border-left-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}';var StzhDatamessagelistItem=function(){function t(t){var e=this;registerInstance(this,t);this.stzhClick=createEvent(this,"stzhClick",7);this.stzhActionClick=createEvent(this,"stzhActionClick",7);this.actionClick=function(t,s){e.stzhActionClick.emit({component:"stzh-datamessagelist-item",action:t,originalEvent:s})};this.itemClick=function(t){e.stzhClick.emit({component:"stzh-datamessagelist-item",originalEvent:t})};this.localization=undefined;this.heading="";this.unread=false;this.href="";this.description="";this.externalHref="";this.loadingStatus=undefined;this.meta=undefined;this.actions=undefined;this.tags=undefined}t.prototype.loadingStatusWatcher=function(t){if(typeof t==="string"){this._loadingStatus=JSON.parse(t)}else{this._loadingStatus=t}};t.prototype.metaWatcher=function(t){if(typeof t==="string"){this._meta=JSON.parse(t)}else{this._meta=t}};t.prototype.actionsWatcher=function(t){if(typeof t==="string"){this._actions=JSON.parse(t)}else{this._actions=t}};t.prototype.tagsWatcher=function(t){if(typeof t==="string"){this._tags=JSON.parse(t)}else{this._tags=t}};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.loadingStatusWatcher(this.loadingStatus);this.metaWatcher(this.meta);this.actionsWatcher(this.actions);this.tagsWatcher(this.tags);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datamessagelist-item")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.render=function(){var t=this;var e={"stzh-datamessagelist-item":true,"stzh-datamessagelist-item--is-unread":this.unread};return h(Host,{role:"listitem"},h("article",{class:e},h("div",{class:"stzh-datamessagelist-item__content"},h("div",{class:"stzh-datamessagelist-item__text"},h("h3",{class:"stzh-datamessagelist-item__heading"},h("a",{class:"stzh-datamessagelist-item__heading-link",href:this.href,onClick:this.itemClick},this.unread&&h("span",{class:"stzh-datamessagelist-item__vhidden"},this.localization.unread,","),this.heading)),this.description&&h("div",{class:"stzh-datamessagelist-item__description"},h("stzh-clamp",{lines:2,linesMedium:1},this.description)),this._meta&&this._meta.length>0&&h("div",{class:"stzh-datamessagelist-item__meta-wrapper"},h("ul",{class:"stzh-datamessagelist-item__meta"},this._meta.map((function(t){return h("li",{class:"stzh-datamessagelist-item__meta-item"},h("span",{class:"stzh-datamessagelist-item__meta-item-label"},t.label),h("span",{class:"stzh-datamessagelist-item__meta-item-value"},t.value))}))))),this._loadingStatus&&h("stzh-status",{class:"stzh-datamessagelist-item__status",label:this._loadingStatus.label,percent:this._loadingStatus.percent,type:this._loadingStatus.type,withLoadingbar:true}),this._tags&&this._tags.length>0&&h("div",{class:"stzh-datamessagelist-item__tags-wrapper"},h("div",{class:"stzh-datamessagelist-item__tags"},this._tags.map((function(t){return h("stzh-chip",{class:"stzh-datamessagelist-item__tag",variant:"tag",size:"small",type:t.type,icon:t.icon,label:t.label})}))))),h("div",{class:"stzh-datamessagelist-item__actions"},this.externalHref&&h("stzh-button",{href:this.externalHref,variant:"tertiary",icon:"external-link",size:"tiny",iconOnly:true}),this._actions&&this._actions.length>0&&h("stzh-popover",{label:this.localization.actionsPopoverLabel,placement:"bottom-end",class:"stzh-datamessagelist-item__action-popover"},h("stzh-button",{variant:"tertiary",size:"tiny",icon:"more-horizontal",iconOnly:true}),h("stzh-menu",{slot:"content"},this._actions.map((function(e){return h("stzh-menu-item",{icon:e.icon,badge:e.badge,onClick:function(s){t.actionClick(e,s)}},e.label)})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{loadingStatus:["loadingStatusWatcher"],meta:["metaWatcher"],actions:["actionsWatcher"],tags:["tagsWatcher"]}},enumerable:false,configurable:true});return t}();StzhDatamessagelistItem.style=stzhDatamessagelistItemCss;export{StzhDatamessagelistItem as stzh_datamessagelist_item};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as Host,g as getElement}from"./index-011c84fe.js";var stzhDatamessagelistCss=".sc-stzh-datamessagelist-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-datamessagelist-h{display:none}.sc-stzh-datamessagelist-h *.sc-stzh-datamessagelist,.sc-stzh-datamessagelist-h *.sc-stzh-datamessagelist::before,.sc-stzh-datamessagelist-h *.sc-stzh-datamessagelist::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-datamessagelist-h .sc-stzh-datamessagelist-s>*:not(:last-child){border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (max-width: 599px){.stzh-datamessagelist.sc-stzh-datamessagelist{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: 600px){.stzh-datamessagelist.sc-stzh-datamessagelist{border:0.0625rem solid var(--stzh-base-border-color)}}";var StzhDatamessagelist=function(){function s(s){registerInstance(this,s)}s.prototype.render=function(){var s={"stzh-datamessagelist":true};return h(Host,null,h("div",{class:s},h("div",{class:"stzh-datamessagelist__list",role:"list"},h("slot",null))))};Object.defineProperty(s.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return s}();StzhDatamessagelist.style=stzhDatamessagelistCss;export{StzhDatamessagelist as stzh_datamessagelist};
1
+ import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";var stzhDatamessagelistCss=".sc-stzh-datamessagelist-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-datamessagelist-h{display:none}.sc-stzh-datamessagelist-h *.sc-stzh-datamessagelist,.sc-stzh-datamessagelist-h *.sc-stzh-datamessagelist::before,.sc-stzh-datamessagelist-h *.sc-stzh-datamessagelist::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-datamessagelist-h .sc-stzh-datamessagelist-s>*:not(:last-child){border-bottom:0.0625rem solid var(--stzh-base-border-color)}@media screen and (max-width: 599px){.stzh-datamessagelist.sc-stzh-datamessagelist{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: 600px){.stzh-datamessagelist.sc-stzh-datamessagelist{border:0.0625rem solid var(--stzh-base-border-color)}}";var StzhDatamessagelist=function(){function s(s){registerInstance(this,s)}s.prototype.render=function(){var s={"stzh-datamessagelist":true};return h(Host,null,h("div",{class:s},h("div",{class:"stzh-datamessagelist__list",role:"list"},h("slot",null))))};Object.defineProperty(s.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return s}();StzhDatamessagelist.style=stzhDatamessagelistCss;export{StzhDatamessagelist as stzh_datamessagelist};
@@ -1,9 +1,9 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,a,r){function i(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,s){function n(t){try{h(r.next(t))}catch(e){s(e)}}function o(t){try{h(r["throw"](t))}catch(e){s(e)}}function h(t){t.done?a(t.value):i(t.value).then(n,o)}h((r=r.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},r,i,s,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return h([t,e])}}function h(n){if(r)throw new TypeError("Generator is already executing.");while(a)try{if(r=1,i&&(s=n[0]&2?i["return"]:n[0]?i["throw"]||((s=i["return"])&&s.call(i),0):i.next)&&!(s=s.call(i,n[1])).done)return s;if(i=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:a.label++;return{value:n[1],done:false};case 5:a.label++;i=n[1];n=[0];continue;case 7:n=a.ops.pop();a.trys.pop();continue;default:if(!(s=a.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){a=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){a.label=n[1];break}if(n[0]===6&&a.label<s[1]){a.label=s[1];s=n;break}if(s&&a.label<s[2]){a.label=s[2];a.ops.push(n);break}if(s[2])a.ops.pop();a.trys.pop();continue}n=e.call(t,a)}catch(o){n=[6,o];i=0}finally{r=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var r=0,i=e.length,s;r<i;r++){if(s||!(r in e)){if(!s)s=Array.prototype.slice.call(e,0,r);s[r]=e[r]}}return t.concat(s||Array.prototype.slice.call(e))};import{r as registerInstance,h,a as Host,g as getElement}from"./index-011c84fe.js";import{c as createCommonjsModule,b as commonjsGlobal}from"./_commonjsHelpers-f9dc4873.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var flexsearch_bundle=createCommonjsModule((function(module){
1
+ var __awaiter=this&&this.__awaiter||function(t,e,a,i){function r(t){return t instanceof a?t:new a((function(e){e(t)}))}return new(a||(a=Promise))((function(a,s){function n(t){try{h(i.next(t))}catch(e){s(e)}}function o(t){try{h(i["throw"](t))}catch(e){s(e)}}function h(t){t.done?a(t.value):r(t.value).then(n,o)}h((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var a={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,r,s,n;return n={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function o(t){return function(e){return h([t,e])}}function h(o){if(i)throw new TypeError("Generator is already executing.");while(n&&(n=0,o[0]&&(a=0)),a)try{if(i=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:a.label++;return{value:o[1],done:false};case 5:a.label++;r=o[1];o=[0];continue;case 7:o=a.ops.pop();a.trys.pop();continue;default:if(!(s=a.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){a=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){a.label=o[1];break}if(o[0]===6&&a.label<s[1]){a.label=s[1];s=o;break}if(s&&a.label<s[2]){a.label=s[2];a.ops.push(o);break}if(s[2])a.ops.pop();a.trys.pop();continue}o=e.call(t,a)}catch(h){o=[6,h];r=0}finally{i=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,a){if(a||arguments.length===2)for(var i=0,r=e.length,s;i<r;i++){if(s||!(i in e)){if(!s)s=Array.prototype.slice.call(e,0,i);s[i]=e[i]}}return t.concat(s||Array.prototype.slice.call(e))};import{r as registerInstance,h,c as Host,g as getElement}from"./index-319b7c49.js";import{c as createCommonjsModule,b as commonjsGlobal}from"./_commonjsHelpers-f9dc4873.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";var flexsearch_bundle=createCommonjsModule((function(module){
2
2
  /**!
3
- * FlexSearch.js v0.7.21 (Bundle)
4
- * Copyright 2018-2021 Nextapps GmbH
3
+ * FlexSearch.js v0.7.31 (Bundle)
4
+ * Copyright 2018-2022 Nextapps GmbH
5
5
  * Author: Thomas Wilkerling
6
6
  * Licence: Apache-2.0
7
7
  * https://github.com/nextapps-de/flexsearch
8
8
  */
9
- (function _f(self){try{if(module)self=module}catch(e){}self._factory=_f;var t;function u(t){return"undefined"!==typeof t?t:!0}function aa(t){var e=Array(t);for(var a=0;a<t;a++)e[a]=v();return e}function v(){return Object.create(null)}function ba(t,e){return e.length-t.length}function x(t){return"string"===typeof t}function C(t){return"object"===typeof t}function D(t){return"function"===typeof t}function ca(t,e){var a=da;if(t&&(e&&(t=E(t,e)),this.H&&(t=E(t,this.H)),this.J&&1<t.length&&(t=E(t,this.J)),a||""===a)){t=t.split(a);if(this.filter){e=this.filter;a=t.length;var r=[];for(var i=0,s=0;i<a;i++){var n=t[i];n&&!e[n]&&(r[s++]=n)}t=r}return t}return t}var da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(t,e){var a=Object.keys(t),r=a.length,i=[];var s="",n=0;for(var o=0,h=void 0,l=void 0;o<r;o++)h=a[o],(l=t[h])?(i[n++]=F(e?"(?!\\b)"+h+"(\\b|_)":h),i[n++]=l):s+=(s?"|":"")+h;s&&(i[n++]=F(e?"(?!\\b)("+s+")(\\b|_)":"("+s+")"),i[n]="");return i}function E(t,e){for(var a=0,r=e.length;a<r&&(t=t.replace(e[a],e[a+1]),t);a+=2);return t}function F(t){return new RegExp(t,"g")}function ha(t){var e="",a="";for(var r=0,i=t.length,s=void 0;r<i;r++)(s=t[r])!==a&&(e+=a=s);return e}var ja={encode:ia,F:!1,G:""};function ia(t){return ca.call(this,(""+t).toLowerCase(),!1)}var ka={},G={};function la(t){I(t,"add");I(t,"append");I(t,"search");I(t,"update");I(t,"remove")}function I(t,e){t[e+"Async"]=function(){var t=this,a=arguments;var r=a[a.length-1];var i;D(r)&&(i=r,delete a[a.length-1]);r=new Promise((function(r){setTimeout((function(){t.async=!0;var i=t[e].apply(t,a);t.async=!1;r(i)}))}));return i?(r.then(i),this):r}}function ma(t,e,a,r){var i=t.length;var s=[],n,o,h=0;r&&(r=[]);for(var l=i-1;0<=l;l--){var c=t[l],f=c.length,d=v();var u=!n;for(var g=0;g<f;g++){var p=c[g],b=p.length;if(b)for(var m=0,_=void 0,y=void 0;m<b;m++)if(y=p[m],n){if(n[y]){if(!l)if(a)a--;else if(s[h++]=y,h===e)return s;if(l||r)d[y]=1;u=!0}if(r&&(o[y]=(_=o[y])?++_:_=1,_<i)){var z=r[_-2]||(r[_-2]=[]);z[z.length]=y}}else d[y]=1}if(r)n||(o=d);else if(!u)return[];n=d}if(r)for(var l=r.length-1,c=void 0,f=void 0;0<=l;l--){c=r[l];f=c.length;for(var d=0,u=void 0;d<f;d++)if(u=c[d],!n[u]){if(a)a--;else if(s[h++]=u,h===e)return s;n[u]=1}}return s}function na(t,e){var a=v(),r=v(),i=[];for(var s=0;s<t.length;s++)a[t[s]]=1;for(var s=0,n=void 0;s<e.length;s++){n=e[s];for(var o=0,h=void 0;o<n.length;o++)h=n[o],a[h]&&!r[h]&&(r[h]=1,i[i.length]=h)}return i}function J(t){this.l=!0!==t&&t;this.cache=v();this.h=[]}function oa(t,e,a){C(t)&&(t=t.query);var r=this.cache.get(t);r||(r=this.search(t,e,a),this.cache.set(t,r));return r}J.prototype.set=function(t,e){if(!this.cache[t]){var a=this.h.length;a===this.l?delete this.cache[this.h[a-1]]:a++;for(--a;0<a;a--)this.h[a]=this.h[a-1];this.h[0]=t}this.cache[t]=e};J.prototype.get=function(t){var e=this.cache[t];if(this.l&&e&&(t=this.h.indexOf(t))){var a=this.h[t-1];this.h[t-1]=this.h[t];this.h[t]=a}return e};var qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(t,e,a,r,i,s){setTimeout((function(){var n=t(a,JSON.stringify(s));n&&n.then?n.then((function(){e.export(t,e,a,r,i+1)})):e.export(t,e,a,r,i+1)}))}function K(t,e){if(!(this instanceof K))return new K(t);var a;if(t){x(t)?t=qa[t]:(a=t.preset)&&(t=Object.assign({},a[a],t));a=t.charset;var r=t.lang;x(a)&&(-1===a.indexOf(":")&&(a+=":default"),a=G[a]);x(r)&&(r=ka[r])}else t={};var i,s,n=t.context||{};this.encode=t.encode||a&&a.encode||ia;this.register=e||v();this.D=i=t.resolution||9;this.G=e=a&&a.G||t.tokenize||"strict";this.depth="strict"===e&&n.depth;this.l=u(n.bidirectional);this.s=s=u(t.optimize);this.m=u(t.fastupdate);this.B=t.minlength||1;this.C=t.boost;this.map=s?aa(i):v();this.A=i=n.resolution||1;this.h=s?aa(i):v();this.F=a&&a.F||t.rtl;this.H=(e=t.matcher||r&&r.H)&&fa(e,!1);this.J=(e=t.stemmer||r&&r.J)&&fa(e,!0);if(a=e=t.filter||r&&r.filter){a=e;r=v();for(var o=0,h=a.length;o<h;o++)r[a[o]]=1;a=r}this.filter=a;this.cache=(e=t.cache)&&new J(e)}t=K.prototype;t.append=function(t,e){return this.add(t,e,!0)};t.add=function(t,e,a,r){if(e&&(t||0===t)){if(!r&&!a&&this.register[t])return this.update(t,e);e=this.encode(e);if(r=e.length){var i=v(),s=v(),n=this.depth,o=this.D;for(var h=0;h<r;h++){var l=e[this.F?r-1-h:h];var c=l.length;if(l&&c>=this.B&&(n||!s[l])){var f=L(o,r,h),d="";switch(this.G){case"full":if(3<c){for(f=0;f<c;f++)for(var u=c;u>f;u--)if(u-f>=this.B){var g=L(o,r,h,c,f);d=l.substring(f,u);M(this,s,d,g,t,a)}break}case"reverse":if(2<c){for(u=c-1;0<u;u--)d=l[u]+d,d.length>=this.B&&M(this,s,d,L(o,r,h,c,u),t,a);d=""}case"forward":if(1<c){for(u=0;u<c;u++)d+=l[u],d.length>=this.B&&M(this,s,d,f,t,a);break}default:if(this.C&&(f=Math.min(f/this.C(e,l,h)|0,o-1)),M(this,s,l,f,t,a),n&&1<r&&h<r-1)for(c=v(),d=this.A,f=l,u=Math.min(n+1,r-h),c[f]=1,g=1;g<u;g++)if((l=e[this.F?r-1-h-g:h+g])&&l.length>=this.B&&!c[l]){c[l]=1;var p=this.l&&l>f;M(this,i,p?f:l,L(d+(r/2>d?0:1),r,h,u-1,g-1),t,a,p?l:f)}}}}this.m||(this.register[t]=1)}}return this};function L(t,e,a,r,i){return a&&1<t?e+(r||0)<=t?a+(i||0):(t-1)/(e+(r||0))*(a+(i||0))+1|0:0}function M(t,e,a,r,i,s,n){var o=n?t.h:t.map;if(!e[a]||n&&!e[a][n])t.s&&(o=o[r]),n?(e=e[a]||(e[a]=v()),e[n]=1,o=o[n]||(o[n]=v())):e[a]=1,o=o[a]||(o[a]=[]),t.s||(o=o[r]||(o[r]=[])),s&&-1!==o.indexOf(i)||(o[o.length]=i,t.m&&(t=t.register[i]||(t.register[i]=[]),t[t.length]=o))}t.search=function(t,e,a){a||(!e&&C(t)?(a=t,t=a.query):C(e)&&(a=e));var r=[],i;var s,n=0;if(a){e=a.limit;n=a.offset||0;var o=a.context;s=a.suggest}if(t&&(t=this.encode(t),i=t.length,1<i)){a=v();var h=[];for(var l=0,c=0,f=void 0;l<i;l++)if((f=t[l])&&f.length>=this.B&&!a[f])if(this.s||s||this.map[f])h[c++]=f,a[f]=1;else return r;t=h;i=t.length}if(!i)return r;e||(e=100);o=this.depth&&1<i&&!1!==o;a=0;var d;o?(d=t[0],a=1):1<i&&t.sort(ba);for(var l=void 0,c=void 0;a<i;a++){c=t[a];o?(l=sa(this,r,s,e,n,2===i,c,d),s&&!1===l&&r.length||(d=c)):l=sa(this,r,s,e,n,1===i,c);if(l)return l;if(s&&a===i-1){h=r.length;if(!h){if(o){o=0;a=-1;continue}return r}if(1===h)return ta(r[0],e,n)}}return ma(r,e,n,s)};function sa(t,e,a,r,i,s,n,o){var h=[],l=o?t.h:t.map;t.s||(l=ua(l,n,o,t.l));if(l){var c=0;var f=Math.min(l.length,o?t.A:t.D);for(var d=0,u=0,v=void 0,g=void 0;d<f;d++)if(v=l[d])if(t.s&&(v=ua(v,n,o,t.l)),i&&v&&s&&(g=v.length,g<=i?(i-=g,v=null):(v=v.slice(i),i=0)),v&&(h[c++]=v,s&&(u+=v.length,u>=r)))break;if(c){if(s)return ta(h,r,0);e[e.length]=h;return}}return!a&&h}function ta(t,e,a){t=1===t.length?t[0]:[].concat.apply([],t);return a||t.length>e?t.slice(a,a+e):t}function ua(t,e,a,r){a?(r=r&&e>a,t=(t=t[r?e:a])&&t[r?a:e]):t=t[e];return t}t.contain=function(t){return!!this.register[t]};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t,e){var a=this.register[t];if(a){if(this.m)for(var r=0,i=void 0;r<a.length;r++)i=a[r],i.splice(i.indexOf(t),1);else N(this.map,t,this.D,this.s),this.depth&&N(this.h,t,this.A,this.s);e||delete this.register[t];if(this.cache){e=this.cache;for(var r=0,i=void 0,s=void 0;r<e.h.length;r++)s=e.h[r],i=e.cache[s],-1!==i.indexOf(t)&&(e.h.splice(r--,1),delete e.cache[s])}}return this};function N(t,e,a,r,i){var s=0;if(t.constructor===Array)if(i)e=t.indexOf(e),-1!==e?1<t.length&&(t.splice(e,1),s++):s++;else{i=Math.min(t.length,a);for(var n=0,o;n<i;n++)if(o=t[n])s=N(o,e,a,r,i),r||s||delete t[n]}else for(var n in t)(s=N(t[n],e,a,r,i))||delete t[n];return s}t.searchCache=oa;t.export=function(t,e,a,r,i){var s,n;switch(i||(i=0)){case 0:s="reg";if(this.m){n=v();for(var o in this.register)n[o]=1}else n=this.register;break;case 1:s="cfg";n={doc:0,opt:this.s?1:0};break;case 2:s="map";n=this.map;break;case 3:s="ctx";n=this.h;break;default:return}ra(t,e||this,a?a+"."+s:s,r,i,n);return!0};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"cfg":this.s=!!e.opt;break;case"reg":this.m=!1;this.register=e;break;case"map":this.map=e;break;case"ctx":this.h=e}};la(K.prototype);function va(t){t=t.data;var e=self._index;var a=t.args;var r=t.task;switch(r){case"init":r=t.options||{};t=t.factory;e=r.encode;r.cache=!1;e&&0===e.indexOf("function")&&(r.encode=Function("return "+e)());t?(Function("return "+t)()(self),self._index=new self.FlexSearch.Index(r),delete self.FlexSearch):self._index=new K(r);break;default:t=t.id,e=e[r].apply(e,a),postMessage("search"===r?{id:t,msg:e}:{id:t})}}var wa=0;function O(t){if(!(this instanceof O))return new O(t);var e;t?D(e=t.encode)&&(t.encode=e.toString()):t={};(e=(self||window)._factory)&&(e=e.toString());var a=self.exports,r=this;this.o=xa(e,a,t.worker);this.h=v();if(this.o){if(a)this.o.on("message",(function(t){r.h[t.id](t.msg);delete r.h[t.id]}));else this.o.onmessage=function(t){t=t.data;r.h[t.id](t.msg);delete r.h[t.id]};this.o.postMessage({task:"init",factory:e,options:t})}}P("add");P("append");P("search");P("update");P("remove");function P(t){O.prototype[t]=O.prototype[t+"Async"]=function(){var e=this,a=[].slice.call(arguments);var r=a[a.length-1];var i;D(r)&&(i=r,a.splice(a.length-1,1));r=new Promise((function(r){setTimeout((function(){e.h[++wa]=r;e.o.postMessage({task:t,id:wa,args:a})}))}));return i?(r.then(i),this):r}}function xa(a,b,c){var d;try{d=b?eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")'):a?new Worker(URL.createObjectURL(new Blob(["onmessage="+va.toString()],{type:"text/javascript"}))):new Worker(x(c)?c:"worker/worker.js",{type:"module"})}catch(e){}return d}function Q(t){if(!(this instanceof Q))return new Q(t);var e=t.document||t.doc||t,a;this.K=[];this.h=[];this.A=[];this.register=v();this.key=(a=e.key||e.id)&&S(a,this.A)||"id";this.m=u(t.fastupdate);this.C=(a=e.store)&&!0!==a&&[];this.store=a&&v();this.I=(a=e.tag)&&S(a,this.A);this.l=a&&v();this.cache=(a=t.cache)&&new J(a);t.cache=!1;this.o=t.worker;this.async=!1;a=v();var r=e.index||e.field||e;x(r)&&(r=[r]);for(var i=0,s=void 0,n=void 0;i<r.length;i++)s=r[i],x(s)||(n=s,s=s.field),n=C(n)?Object.assign({},t,n):t,this.o&&(a[s]=new O(n),a[s].o||(this.o=!1)),this.o||(a[s]=new K(n,this.register)),this.K[i]=S(s,this.A),this.h[i]=s;if(this.C)for(t=e.store,x(t)&&(t=[t]),e=0;e<t.length;e++)this.C[e]=S(t[e],this.A);this.index=a}function S(t,e){var a=t.split(":");var r=0;for(var i=0;i<a.length;i++)t=a[i],0<=t.indexOf("[]")&&(t=t.substring(0,t.length-2))&&(e[r]=!0),t&&(a[r++]=t);r<a.length&&(a.length=r);return 1<r?a:a[0]}function T(t,e){if(x(e))t=t[e];else for(var a=0;t&&a<e.length;a++)t=t[e[a]];return t}function U(t,e,a,r,i){t=t[i];if(r===a.length-1)e[i]=t;else if(t)if(t.constructor===Array)for(e=e[i]=Array(t.length),i=0;i<t.length;i++)U(t,e,a,r,i);else e=e[i]||(e[i]=v()),i=a[++r],U(t,e,a,r,i)}function V(t,e,a,r,i,s,n,o){if(t=t[n])if(r===e.length-1){if(t.constructor===Array){if(a[r]){for(e=0;e<t.length;e++)i.add(s,t[e],!0,!0);return}t=t.join(" ")}i.add(s,t,o,!0)}else if(t.constructor===Array)for(n=0;n<t.length;n++)V(t,e,a,r,i,s,n,o);else n=e[++r],V(t,e,a,r,i,s,n,o)}t=Q.prototype;t.add=function(t,e,a){C(t)&&(e=t,t=T(e,this.key));if(e&&(t||0===t)){if(!a&&this.register[t])return this.update(t,e);for(var r=0,i=void 0,s=void 0;r<this.h.length;r++)s=this.h[r],i=this.K[r],x(i)&&(i=[i]),V(e,i,this.A,0,this.index[s],t,i[0],a);if(this.I){var r=T(e,this.I),i=v();x(r)&&(r=[r]);for(var s=0,n=void 0,o;s<r.length;s++)if(n=r[s],!i[n]&&(i[n]=1,o=this.l[n]||(this.l[n]=[]),!a||-1===o.indexOf(t)))if(o[o.length]=t,this.m){var h=this.register[t]||(this.register[t]=[]);h[h.length]=o}}if(this.store&&(!a||!this.store[t])){var r=void 0;if(this.C){r=v();for(var i=0,s=void 0;i<this.C.length;i++)s=this.C[i],x(s)?r[s]=e[s]:U(e,r,s,0,s[0])}this.store[t]=r||e}}return this};t.append=function(t,e){return this.add(t,e,!0)};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t){C(t)&&(t=T(t,this.key));if(this.register[t]){for(var e=0;e<this.h.length&&(this.index[this.h[e]].remove(t,!this.o),!this.m);e++);if(this.I&&!this.m)for(var a in this.l){e=this.l[a];var r=e.indexOf(t);-1!==r&&(1<e.length?e.splice(r,1):delete this.l[a])}this.store&&delete this.store[t];delete this.register[t]}return this};t.search=function(t,e,a,r){a||(!e&&C(t)?(a=t,t=a.query):C(e)&&(a=e,e=0));var i=[],s=[],n,o,h,l,c,f,d=0;if(a)if(a.constructor===Array)h=a,a=null;else{h=(n=a.pluck)||a.index||a.field;l=a.tag;o=this.store&&a.enrich;c="and"===a.bool;e=a.limit||100;f=a.offset||0;if(l&&(x(l)&&(l=[l]),!t)){for(var u=0,v=void 0;u<l.length;u++)if(v=ya.call(this,l[u],e,f,o))i[i.length]=v,d++;return d?i:[]}x(h)&&(h=[h])}h||(h=this.h);c=c&&(1<h.length||l&&1<l.length);var g=!r&&(this.o||this.async)&&[];for(var u=0,v=void 0,p=void 0,b=void 0;u<h.length;u++){var m=void 0;p=h[u];x(p)||(m=p,p=p.field);if(g)g[u]=this.index[p].searchAsync(t,e,m||a);else{r?v=r[u]:v=this.index[p].search(t,e,m||a);b=v&&v.length;if(l&&b){var _=[];var y=0;c&&(_[0]=[v]);for(var z=0,w=void 0,k=void 0;z<l.length;z++)if(w=l[z],b=(k=this.l[w])&&k.length)y++,_[_.length]=c?[k]:k;y&&(v=c?ma(_,e||100,f||0):na(v,_),b=v.length)}if(b)s[d]=p,i[d++]=v;else if(c)return[]}}if(g){var S=this;return new Promise((function(r){Promise.all(g).then((function(i){r(S.search(t,e,a,i))}))}))}if(!d)return[];if(n&&(!o||!this.store))return i[0];for(var u=0,v=void 0;u<s.length;u++){v=i[u];v.length&&o&&(v=za.call(this,v));if(n)return v;i[u]={field:s[u],result:v}}return i};function ya(t,e,a,r){var i=this.l[t],s=i&&i.length-a;if(s&&0<s){if(s>e||a)i=i.slice(a,a+e);r&&(i=za.call(this,i));return{tag:t,result:i}}}function za(t){var e=Array(t.length);for(var a=0,r=void 0;a<t.length;a++)r=t[a],e[a]={id:r,doc:this.store[r]};return e}t.contain=function(t){return!!this.register[t]};t.get=function(t){return this.store[t]};t.set=function(t,e){this.store[t]=e;return this};t.searchCache=oa;t.export=function(t,e,a,r,i){i||(i=0);r||(r=0);if(r<this.h.length){var s=this.h[r],n=this.index[s];e=this;setTimeout((function(){n.export(t,e,i?s.replace(":","-"):"",r,i++)||(r++,i=1,e.export(t,e,s,r,i))}))}else{var o=void 0;switch(i){case 1:a="tag";o=this.l;break;case 2:a="store";o=this.store;break;default:return}ra(t,this,a,r,i,o)}};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"tag":this.l=e;break;case"reg":this.m=!1;this.register=e;for(var a=0,r=void 0;a<this.h.length;a++)r=this.index[this.h[a]],r.register=e,r.m=!1;break;case"store":this.store=e;break;default:t=t.split(".");var i=t[0];t=t[1];i&&t&&this.index[i].import(t,e)}};la(Q.prototype);var Ba={encode:Aa,F:!1,G:""};var Ca=[F("[àáâãäå]"),"a",F("[èéêë]"),"e",F("[ìíîï]"),"i",F("[òóôõöő]"),"o",F("[ùúûüű]"),"u",F("[ýŷÿ]"),"y",F("ñ"),"n",F("[çc]"),"k",F("ß"),"s",F(" & ")," and "];function Aa(t){var e=t;e.normalize&&(e=e.normalize("NFD").replace(ea,""));return ca.call(this,e.toLowerCase(),!t.normalize&&Ca)}var Ea={encode:Da,F:!1,G:"strict"};var Fa=/[^a-z0-9]+/,Ga={b:"p",v:"f",w:"f",z:"s",x:"s","ß":"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Da(t){t=Aa.call(this,t).join(" ");var e=[];if(t){var a=t.split(Fa),r=a.length;for(var i=0,s=void 0,n=0;i<r;i++)if((t=a[i])&&(!this.filter||!this.filter[t])){s=t[0];var o=Ga[s]||s,h=o;for(var l=1;l<t.length;l++){s=t[l];var c=Ga[s]||s;c&&c!==h&&(o+=c,h=c)}e[n++]=o}}return e}var Ia={encode:Ha,F:!1,G:""};var Ja=[F("ae"),"a",F("oe"),"o",F("sh"),"s",F("th"),"t",F("ph"),"f",F("pf"),"f",F("(?![aeo])h(?![aeo])"),"",F("(?!^[aeo])h(?!^[aeo])"),""];function Ha(t,e){t&&(t=Da.call(this,t).join(" "),2<t.length&&(t=E(t,Ja)),e||(1<t.length&&(t=ha(t)),t&&(t=t.split(" "))));return t}var La={encode:Ka,F:!1,G:""};var Ma=F("(?!\\b)[aeo]");function Ka(t){t&&(t=Ha.call(this,t,!0),1<t.length&&(t=t.replace(Ma,"")),1<t.length&&(t=ha(t)),t&&(t=t.split(" ")));return t}G["latin:default"]=ja;G["latin:simple"]=Ba;G["latin:balance"]=Ea;G["latin:advanced"]=Ia;G["latin:extra"]=La;var W=self;var Y;var Z={Index:K,Document:Q,Worker:O,registerCharset:function(t,e){G[t]=e},registerLanguage:function(t,e){ka[t]=e}};(Y=W.define)&&Y.amd?Y([],(function(){return Z})):W.exports?W.exports=Z:W.FlexSearch=Z})(commonjsGlobal)}));var stzhDatatableCss=':host{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}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-datatable{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;--max-height:var(--stzh-table-max-height);--min-width:var(--stzh-table-min-width);--cell-padding:var(--stzh-table-cell-padding);--input-width:var(--stzh-table-input-width)}stzh-datatable[hidden]{display:none}stzh-datatable *,stzh-datatable *::before,stzh-datatable *::after{-webkit-box-sizing:border-box;box-sizing:border-box}.stzh-datatable{}.stzh-datatable__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-bottom:0.0625rem solid var(--stzh-base-border-color);padding-bottom:var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datatable__header{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-datatable__header{padding-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-datatable__header{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-datatable__header{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-datatable__header{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}.stzh-datatable__heading{margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-datatable__heading{margin-bottom:0}}.stzh-datatable__header .stzh-datatable__search{width:var(--stzh-table-input-width)}@media screen and (min-width: 1024px){.stzh-datatable__header .stzh-datatable__search{margin-left:var(--stzh-space-large)}}.stzh-datatable__outer-wrapper{position:relative}.stzh-datatable__outer-wrapper::before,.stzh-datatable__outer-wrapper::after{z-index:4;background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);opacity:0}.stzh-datatable__outer-wrapper::before{left:0}.stzh-datatable__outer-wrapper::after{right:0;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.stzh-datatable__wrapper{overflow-x:auto;max-height:var(--max-height)}.stzh-datatable__sort-button{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:inherit;line-height:inherit;color:inherit;padding:var(--cell-padding)}.stzh-datatable__sort-button:hover,.stzh-datatable__sort-button:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datatable__sort-icon{opacity:0}.stzh-datatable__table{width:100%;border-spacing:0;min-width:var(--min-width)}.stzh-datatable__thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.stzh-datatable__row:hover .stzh-datatable__cell{background-color:var(--stzh-color-grey5)}.stzh-datatable__cell{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding);}.stzh-datatable__cell a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-datatable__cell a:hover,.stzh-datatable__cell a:focus{color:var(--stzh-link-hover-color)}.stzh-datatable__cell b,.stzh-datatable__cell strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-datatable__cell i,.stzh-datatable__cell em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-datatable__cell.align-left{text-align:left}.stzh-datatable__cell.align-right{text-align:right}.stzh-datatable__cell.align-center{text-align:center}.stzh-datatable__cell.valign-auto{vertical-align:auto}.stzh-datatable__cell.valign-middle{vertical-align:middle}.stzh-datatable__cell.valign-bottom{vertical-align:bottom}.stzh-datatable__cell.nowrap{white-space:nowrap}.stzh-datatable__cell.is-sticky-left,.stzh-datatable__cell.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.stzh-datatable__cell.has-sticked{z-index:2}.stzh-datatable__cell.is-sticky-left{left:0}.stzh-datatable__cell.is-sticky-right{right:0}.stzh-datatable__cell.is-sticky-left::after,.stzh-datatable__cell.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-datatable__cell.is-sticky-left::after{right:0}.stzh-datatable__cell.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.stzh-datatable__cell.has-sticked.is-sticky-left::after,.stzh-datatable__cell.has-sticked.is-sticky-right::after{opacity:1}.stzh-datatable__cell--head{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datatable__cell--head.is-sortable{padding:0}.stzh-datatable__cell.has-sorted .stzh-datatable__sort-icon{opacity:1}.stzh-datatable__cell.has-sorted-desc .stzh-datatable__sort-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.stzh-datatable.has-scroll-left-shadow .stzh-datatable__outer-wrapper::before,.stzh-datatable.has-scroll-right-shadow .stzh-datatable__outer-wrapper::after{opacity:1}';var StzhDatatable=function(){function t(t){var e=this;registerInstance(this,t);this.updateScrollStates=function(){if(!e.tableWrapper){return}var t=e.tableWrapper.scrollLeft;var a=e.tableWrapper.scrollWidth;var r=e.tableWrapper.clientWidth;e.isScrollable=a>r;e.hasScrollLeft=t>0;e.hasScrollRight=t<a-r;var i=Array.from(e.tableWrapper.querySelectorAll("tr"));var s=i[0];if(!s){return}e.cellsStickyLeft=[];e.cellsStickyRight=[];var n=Array.from(s.children);n.forEach((function(a,i){var s=a.offsetLeft;var n=s+a.offsetWidth;if(e.hasScrollLeft&&e._columns[i].fixed==="left"&&Math.ceil(t)>=s){e.cellsStickyLeft.push(i)}if(e.hasScrollRight&&e._columns[i].fixed==="right"&&Math.ceil(t)+r<=n){e.cellsStickyRight.push(i)}}))};this.handleScroll=function(){if(e.debounceScroll){window.cancelAnimationFrame(e.debounceScroll)}e.debounceScroll=requestAnimationFrame(e.updateScrollStates)};this.onInputChange=function(){e.query=e.input.value};this.localization=undefined;this.label="";this.sortBy="";this.sortDirection="asc";this.tokenize="forward";this.idField="id";this.rows=[];this.columns=[];this.query="";this.hasScrollLeft=false;this.hasScrollRight=false;this.isScrollable=false;this.cellsStickyLeft=[];this.cellsStickyRight=[]}t.prototype.toggleSort=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(t===this.sortBy){this.sortDirection=this.sortDirection==="asc"?"desc":"asc"}else{this.sortDirection="asc";this.sortBy=t}return[2]}))}))};t.prototype.rowsWatcher=function(t){if(typeof t==="string"){this._rows=JSON.parse(t)}else{this._rows=t}this.buildSearchIndex()};t.prototype.columnsWatcher=function(t){if(typeof t==="string"){this._columns=JSON.parse(t)}else{this._columns=t}this.buildSearchIndex()};t.prototype.handleResize=function(){this.updateScrollStates()};t.prototype.buildSearchIndex=function(){var t=this;if(!this._rows||this._rows.length===0||!this._columns||this._columns.length===0){return}this.searchIndex=new flexsearch_bundle.Document({tokenize:this.tokenize,matcher:{"[äà]":"a","[öó]":"o","[üûúù]":"u","[éè]":"e"},document:{id:this.idField,index:this._columns.map((function(t){return t.key}))}});this._rows.forEach((function(e){t.searchIndex.add(e)}))};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.columnsWatcher(this.columns);this.rowsWatcher(this.rows);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datatable")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateScrollStates()};t.prototype.componentWillRender=function(){var t=this;this._rowsManaged=[];if(this.query){var e=[];this.searchIndex.search(this.query).forEach((function(t){e=__spreadArray(__spreadArray([],e,true),t.result,true)}));e=e.filter((function(t,a){return e.indexOf(t)===a}));this._rows.forEach((function(a){if(e.indexOf(a[t.idField])>-1){t._rowsManaged.push(a)}}))}else{this._rowsManaged=__spreadArray([],this._rows,true)}if(this.sortBy){this._rowsManaged.sort((function(e,a){var r=e[t.sortBy].localeCompare(a[t.sortBy]);return t.sortDirection==="asc"?r:r/-1}))}};t.prototype.render=function(){var t=this;var e={"stzh-datatable":true,"is-scrollable":this.isScrollable,"has-scroll-left":this.hasScrollLeft,"has-scroll-right":this.hasScrollRight,"has-scroll-left-shadow":this.hasScrollLeft&&this.cellsStickyLeft.length===0,"has-scroll-right-shadow":this.hasScrollRight&&this.cellsStickyRight.length===0};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-datatable__header"},h("div",{class:"stzh-datatable__heading"},h("slot",{name:"heading"})),h("stzh-input",{ref:function(e){return t.input=e},class:"stzh-datatable__search",size:"small",name:"stzh-datatable-search",onStzhChange:this.onInputChange,label:this.localization.searchLabel})),h("div",{class:"stzh-datatable__outer-wrapper"},h("div",{ref:function(e){return t.tableWrapper=e},class:"stzh-datatable__wrapper",onScroll:this.handleScroll},h("table",{class:"stzh-datatable__table"},h("thead",{class:"stzh-datatable__thead"},h("tr",{class:"stzh-datatable__row stzh-datatable__row--head"},this._columns.map((function(e,a){var r;return h("th",{class:(r={"stzh-datatable__cell stzh-datatable__cell--head":true,"is-sticky-left":e.fixed==="left","is-sticky-right":e.fixed==="right","is-sortable":e.sort,"has-sticked":t.cellsStickyLeft.indexOf(a)>-1||t.cellsStickyRight.indexOf(a)>-1,"has-sorted":e.key===t.sortBy,"has-sorted-asc":e.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":e.key===t.sortBy&&t.sortDirection==="desc"},r["align-".concat(e.align)]=e.align,r["valign-".concat(e.valign)]=e.valign,r)},e.sort?h("button",{class:"stzh-datatable__sort-button",type:"button",onClick:function(){return t.toggleSort(e.key)}},h("span",null,e.text),h("stzh-icon",{name:"arrow-up",class:"stzh-datatable__sort-icon"})):h("span",null,e.text))})))),h("tbody",null,this._rowsManaged.map((function(e){return h("tr",{class:"stzh-datatable__row stzh-datatable__row--body"},t._columns.map((function(a,r){var i;var s,n,o,l,c;return h("td",{innerHTML:((s=e[a.key])===null||s===void 0?void 0:s.text)||e[a.key]||"",class:(i={"stzh-datatable__cell stzh-datatable__cell--body":true,"is-sticky-left":a.fixed==="left","is-sticky-right":a.fixed==="right","is-sortable":a.sort,"has-sticked":t.cellsStickyLeft.indexOf(r)>-1||t.cellsStickyRight.indexOf(r)>-1,"has-sorted":a.key===t.sortBy,"has-sorted-asc":a.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":a.key===t.sortBy&&t.sortDirection==="desc"},i["align-".concat(((n=e[a.key])===null||n===void 0?void 0:n.align)||a.align)]=((o=e[a.key])===null||o===void 0?void 0:o.align)||a.align,i["valign-".concat(((l=e[a.key])===null||l===void 0?void 0:l.valign)||a.valign)]=((c=e[a.key])===null||c===void 0?void 0:c.valign)||a.valign,i)})})))}))))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{rows:["rowsWatcher"],columns:["columnsWatcher"]}},enumerable:false,configurable:true});return t}();StzhDatatable.style=stzhDatatableCss;export{StzhDatatable as stzh_datatable};
9
+ (function _f(self){try{if(module)self=module}catch(e){}self._factory=_f;var t;function u(t){return"undefined"!==typeof t?t:!0}function aa(t){var e=Array(t);for(var a=0;a<t;a++)e[a]=v();return e}function v(){return Object.create(null)}function ba(t,e){return e.length-t.length}function x(t){return"string"===typeof t}function C(t){return"object"===typeof t}function D(t){return"function"===typeof t}function ca(t,e){var a=da;if(t&&(e&&(t=E(t,e)),this.H&&(t=E(t,this.H)),this.J&&1<t.length&&(t=E(t,this.J)),a||""===a)){t=t.split(a);if(this.filter){e=this.filter;a=t.length;var i=[];for(var r=0,s=0;r<a;r++){var n=t[r];n&&!e[n]&&(i[s++]=n)}t=i}return t}return t}var da=/[\p{Z}\p{S}\p{P}\p{C}]+/u,ea=/[\u0300-\u036f]/g;function fa(t,e){var a=Object.keys(t),i=a.length,r=[];var s="",n=0;for(var o=0,h=void 0,l=void 0;o<i;o++)h=a[o],(l=t[h])?(r[n++]=F(e?"(?!\\b)"+h+"(\\b|_)":h),r[n++]=l):s+=(s?"|":"")+h;s&&(r[n++]=F(e?"(?!\\b)("+s+")(\\b|_)":"("+s+")"),r[n]="");return r}function E(t,e){for(var a=0,i=e.length;a<i&&(t=t.replace(e[a],e[a+1]),t);a+=2);return t}function F(t){return new RegExp(t,"g")}function ha(t){var e="",a="";for(var i=0,r=t.length,s=void 0;i<r;i++)(s=t[i])!==a&&(e+=a=s);return e}var ja={encode:ia,F:!1,G:""};function ia(t){return ca.call(this,(""+t).toLowerCase(),!1)}var ka={},G={};function la(t){I(t,"add");I(t,"append");I(t,"search");I(t,"update");I(t,"remove")}function I(t,e){t[e+"Async"]=function(){var t=this,a=arguments;var i=a[a.length-1];var r;D(i)&&(r=i,delete a[a.length-1]);i=new Promise((function(i){setTimeout((function(){t.async=!0;var r=t[e].apply(t,a);t.async=!1;i(r)}))}));return r?(i.then(r),this):i}}function ma(t,e,a,i){var r=t.length;var s=[],n,o,h=0;i&&(i=[]);for(var l=r-1;0<=l;l--){var c=t[l],d=c.length,f=v();var u=!n;for(var g=0;g<d;g++){var b=c[g],p=b.length;if(p)for(var m=0,_=void 0,y=void 0;m<p;m++)if(y=b[m],n){if(n[y]){if(!l)if(a)a--;else if(s[h++]=y,h===e)return s;if(l||i)f[y]=1;u=!0}if(i&&(_=(o[y]||0)+1,o[y]=_,_<r)){var z=i[_-2]||(i[_-2]=[]);z[z.length]=y}}else f[y]=1}if(i)n||(o=f);else if(!u)return[];n=f}if(i)for(var l=i.length-1,c=void 0,d=void 0;0<=l;l--){c=i[l];d=c.length;for(var f=0,u=void 0;f<d;f++)if(u=c[f],!n[u]){if(a)a--;else if(s[h++]=u,h===e)return s;n[u]=1}}return s}function na(t,e){var a=v(),i=v(),r=[];for(var s=0;s<t.length;s++)a[t[s]]=1;for(var s=0,n=void 0;s<e.length;s++){n=e[s];for(var o=0,h=void 0;o<n.length;o++)h=n[o],a[h]&&!i[h]&&(i[h]=1,r[r.length]=h)}return r}function J(t){this.l=!0!==t&&t;this.cache=v();this.h=[]}function oa(t,e,a){C(t)&&(t=t.query);var i=this.cache.get(t);i||(i=this.search(t,e,a),this.cache.set(t,i));return i}J.prototype.set=function(t,e){if(!this.cache[t]){var a=this.h.length;a===this.l?delete this.cache[this.h[a-1]]:a++;for(--a;0<a;a--)this.h[a]=this.h[a-1];this.h[0]=t}this.cache[t]=e};J.prototype.get=function(t){var e=this.cache[t];if(this.l&&e&&(t=this.h.indexOf(t))){var a=this.h[t-1];this.h[t-1]=this.h[t];this.h[t]=a}return e};var qa={memory:{charset:"latin:extra",D:3,B:4,m:!1},performance:{D:3,B:3,s:!1,context:{depth:2,D:1}},match:{charset:"latin:extra",G:"reverse"},score:{charset:"latin:advanced",D:20,B:3,context:{depth:3,D:9}},default:{}};function ra(t,e,a,i,r,s,n){setTimeout((function(){var o=t(a?a+"."+i:i,JSON.stringify(n));o&&o.then?o.then((function(){e.export(t,e,a,r,s+1)})):e.export(t,e,a,r,s+1)}))}function K(t,e){if(!(this instanceof K))return new K(t);var a;if(t){x(t)?t=qa[t]:(a=t.preset)&&(t=Object.assign({},a[a],t));a=t.charset;var i=t.lang;x(a)&&(-1===a.indexOf(":")&&(a+=":default"),a=G[a]);x(i)&&(i=ka[i])}else t={};var r,s,n=t.context||{};this.encode=t.encode||a&&a.encode||ia;this.register=e||v();this.D=r=t.resolution||9;this.G=e=a&&a.G||t.tokenize||"strict";this.depth="strict"===e&&n.depth;this.l=u(n.bidirectional);this.s=s=u(t.optimize);this.m=u(t.fastupdate);this.B=t.minlength||1;this.C=t.boost;this.map=s?aa(r):v();this.A=r=n.resolution||1;this.h=s?aa(r):v();this.F=a&&a.F||t.rtl;this.H=(e=t.matcher||i&&i.H)&&fa(e,!1);this.J=(e=t.stemmer||i&&i.J)&&fa(e,!0);if(a=e=t.filter||i&&i.filter){a=e;i=v();for(var o=0,h=a.length;o<h;o++)i[a[o]]=1;a=i}this.filter=a;this.cache=(e=t.cache)&&new J(e)}t=K.prototype;t.append=function(t,e){return this.add(t,e,!0)};t.add=function(t,e,a,i){if(e&&(t||0===t)){if(!i&&!a&&this.register[t])return this.update(t,e);e=this.encode(e);if(i=e.length){var r=v(),s=v(),n=this.depth,o=this.D;for(var h=0;h<i;h++){var l=e[this.F?i-1-h:h];var c=l.length;if(l&&c>=this.B&&(n||!s[l])){var d=L(o,i,h),f="";switch(this.G){case"full":if(2<c){for(d=0;d<c;d++)for(var u=c;u>d;u--)if(u-d>=this.B){var g=L(o,i,h,c,d);f=l.substring(d,u);M(this,s,f,g,t,a)}break}case"reverse":if(1<c){for(u=c-1;0<u;u--)f=l[u]+f,f.length>=this.B&&M(this,s,f,L(o,i,h,c,u),t,a);f=""}case"forward":if(1<c){for(u=0;u<c;u++)f+=l[u],f.length>=this.B&&M(this,s,f,d,t,a);break}default:if(this.C&&(d=Math.min(d/this.C(e,l,h)|0,o-1)),M(this,s,l,d,t,a),n&&1<i&&h<i-1)for(c=v(),f=this.A,d=l,u=Math.min(n+1,i-h),c[d]=1,g=1;g<u;g++)if((l=e[this.F?i-1-h-g:h+g])&&l.length>=this.B&&!c[l]){c[l]=1;var b=this.l&&l>d;M(this,r,b?d:l,L(f+(i/2>f?0:1),i,h,u-1,g-1),t,a,b?l:d)}}}}this.m||(this.register[t]=1)}}return this};function L(t,e,a,i,r){return a&&1<t?e+(i||0)<=t?a+(r||0):(t-1)/(e+(i||0))*(a+(r||0))+1|0:0}function M(t,e,a,i,r,s,n){var o=n?t.h:t.map;if(!e[a]||n&&!e[a][n])t.s&&(o=o[i]),n?(e=e[a]||(e[a]=v()),e[n]=1,o=o[n]||(o[n]=v())):e[a]=1,o=o[a]||(o[a]=[]),t.s||(o=o[i]||(o[i]=[])),s&&o.includes(r)||(o[o.length]=r,t.m&&(t=t.register[r]||(t.register[r]=[]),t[t.length]=o))}t.search=function(t,e,a){a||(!e&&C(t)?(a=t,t=a.query):C(e)&&(a=e));var i=[],r;var s,n=0;if(a){t=a.query||t;e=a.limit;n=a.offset||0;var o=a.context;s=a.suggest}if(t&&(t=this.encode(""+t),r=t.length,1<r)){a=v();var h=[];for(var l=0,c=0,d=void 0;l<r;l++)if((d=t[l])&&d.length>=this.B&&!a[d])if(this.s||s||this.map[d])h[c++]=d,a[d]=1;else return i;t=h;r=t.length}if(!r)return i;e||(e=100);o=this.depth&&1<r&&!1!==o;a=0;var f;o?(f=t[0],a=1):1<r&&t.sort(ba);for(var l=void 0,c=void 0;a<r;a++){c=t[a];o?(l=sa(this,i,s,e,n,2===r,c,f),s&&!1===l&&i.length||(f=c)):l=sa(this,i,s,e,n,1===r,c);if(l)return l;if(s&&a===r-1){h=i.length;if(!h){if(o){o=0;a=-1;continue}return i}if(1===h)return ta(i[0],e,n)}}return ma(i,e,n,s)};function sa(t,e,a,i,r,s,n,o){var h=[],l=o?t.h:t.map;t.s||(l=ua(l,n,o,t.l));if(l){var c=0;var d=Math.min(l.length,o?t.A:t.D);for(var f=0,u=0,v=void 0,g=void 0;f<d;f++)if(v=l[f])if(t.s&&(v=ua(v,n,o,t.l)),r&&v&&s&&(g=v.length,g<=r?(r-=g,v=null):(v=v.slice(r),r=0)),v&&(h[c++]=v,s&&(u+=v.length,u>=i)))break;if(c){if(s)return ta(h,i,0);e[e.length]=h;return}}return!a&&h}function ta(t,e,a){t=1===t.length?t[0]:[].concat.apply([],t);return a||t.length>e?t.slice(a,a+e):t}function ua(t,e,a,i){a?(i=i&&e>a,t=(t=t[i?e:a])&&t[i?a:e]):t=t[e];return t}t.contain=function(t){return!!this.register[t]};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t,e){var a=this.register[t];if(a){if(this.m)for(var i=0,r=void 0;i<a.length;i++)r=a[i],r.splice(r.indexOf(t),1);else N(this.map,t,this.D,this.s),this.depth&&N(this.h,t,this.A,this.s);e||delete this.register[t];if(this.cache){e=this.cache;for(var i=0,r=void 0,s=void 0;i<e.h.length;i++)s=e.h[i],r=e.cache[s],r.includes(t)&&(e.h.splice(i--,1),delete e.cache[s])}}return this};function N(t,e,a,i,r){var s=0;if(t.constructor===Array)if(r)e=t.indexOf(e),-1!==e?1<t.length&&(t.splice(e,1),s++):s++;else{r=Math.min(t.length,a);for(var n=0,o;n<r;n++)if(o=t[n])s=N(o,e,a,i,r),i||s||delete t[n]}else for(var n in t)(s=N(t[n],e,a,i,r))||delete t[n];return s}t.searchCache=oa;t.export=function(t,e,a,i,r){var s,n;switch(r||(r=0)){case 0:s="reg";if(this.m){n=v();for(var o in this.register)n[o]=1}else n=this.register;break;case 1:s="cfg";n={doc:0,opt:this.s?1:0};break;case 2:s="map";n=this.map;break;case 3:s="ctx";n=this.h;break;default:return}ra(t,e||this,a,s,i,r,n);return!0};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"cfg":this.s=!!e.opt;break;case"reg":this.m=!1;this.register=e;break;case"map":this.map=e;break;case"ctx":this.h=e}};la(K.prototype);function va(t){t=t.data;var e=self._index;var a=t.args;var i=t.task;switch(i){case"init":i=t.options||{};t=t.factory;e=i.encode;i.cache=!1;e&&0===e.indexOf("function")&&(i.encode=Function("return "+e)());t?(Function("return "+t)()(self),self._index=new self.FlexSearch.Index(i),delete self.FlexSearch):self._index=new K(i);break;default:t=t.id,e=e[i].apply(e,a),postMessage("search"===i?{id:t,msg:e}:{id:t})}}var wa=0;function O(t){if(!(this instanceof O))return new O(t);var e;t?D(e=t.encode)&&(t.encode=e.toString()):t={};(e=(self||window)._factory)&&(e=e.toString());var a="undefined"===typeof window&&self.exports,i=this;this.o=xa(e,a,t.worker);this.h=v();if(this.o){if(a)this.o.on("message",(function(t){i.h[t.id](t.msg);delete i.h[t.id]}));else this.o.onmessage=function(t){t=t.data;i.h[t.id](t.msg);delete i.h[t.id]};this.o.postMessage({task:"init",factory:e,options:t})}}P("add");P("append");P("search");P("update");P("remove");function P(t){O.prototype[t]=O.prototype[t+"Async"]=function(){var e=this,a=[].slice.call(arguments);var i=a[a.length-1];var r;D(i)&&(r=i,a.splice(a.length-1,1));i=new Promise((function(i){setTimeout((function(){e.h[++wa]=i;e.o.postMessage({task:t,id:wa,args:a})}))}));return r?(i.then(r),this):i}}function xa(a,b,c){var d;try{d=b?eval('new (require("worker_threads")["Worker"])("../dist/node/node.js")'):a?new Worker(URL.createObjectURL(new Blob(["onmessage="+va.toString()],{type:"text/javascript"}))):new Worker(x(c)?c:"worker/worker.js",{type:"module"})}catch(e){}return d}function Q(t){if(!(this instanceof Q))return new Q(t);var e=t.document||t.doc||t,a;this.K=[];this.h=[];this.A=[];this.register=v();this.key=(a=e.key||e.id)&&S(a,this.A)||"id";this.m=u(t.fastupdate);this.C=(a=e.store)&&!0!==a&&[];this.store=a&&v();this.I=(a=e.tag)&&S(a,this.A);this.l=a&&v();this.cache=(a=t.cache)&&new J(a);t.cache=!1;this.o=t.worker;this.async=!1;a=v();var i=e.index||e.field||e;x(i)&&(i=[i]);for(var r=0,s=void 0,n=void 0;r<i.length;r++)s=i[r],x(s)||(n=s,s=s.field),n=C(n)?Object.assign({},t,n):t,this.o&&(a[s]=new O(n),a[s].o||(this.o=!1)),this.o||(a[s]=new K(n,this.register)),this.K[r]=S(s,this.A),this.h[r]=s;if(this.C)for(t=e.store,x(t)&&(t=[t]),e=0;e<t.length;e++)this.C[e]=S(t[e],this.A);this.index=a}function S(t,e){var a=t.split(":");var i=0;for(var r=0;r<a.length;r++)t=a[r],0<=t.indexOf("[]")&&(t=t.substring(0,t.length-2))&&(e[i]=!0),t&&(a[i++]=t);i<a.length&&(a.length=i);return 1<i?a:a[0]}function T(t,e){if(x(e))t=t[e];else for(var a=0;t&&a<e.length;a++)t=t[e[a]];return t}function U(t,e,a,i,r){t=t[r];if(i===a.length-1)e[r]=t;else if(t)if(t.constructor===Array)for(e=e[r]=Array(t.length),r=0;r<t.length;r++)U(t,e,a,i,r);else e=e[r]||(e[r]=v()),r=a[++i],U(t,e,a,i,r)}function V(t,e,a,i,r,s,n,o){if(t=t[n])if(i===e.length-1){if(t.constructor===Array){if(a[i]){for(e=0;e<t.length;e++)r.add(s,t[e],!0,!0);return}t=t.join(" ")}r.add(s,t,o,!0)}else if(t.constructor===Array)for(n=0;n<t.length;n++)V(t,e,a,i,r,s,n,o);else n=e[++i],V(t,e,a,i,r,s,n,o)}t=Q.prototype;t.add=function(t,e,a){C(t)&&(e=t,t=T(e,this.key));if(e&&(t||0===t)){if(!a&&this.register[t])return this.update(t,e);for(var i=0,r=void 0,s=void 0;i<this.h.length;i++)s=this.h[i],r=this.K[i],x(r)&&(r=[r]),V(e,r,this.A,0,this.index[s],t,r[0],a);if(this.I){var i=T(e,this.I),r=v();x(i)&&(i=[i]);for(var s=0,n=void 0,o;s<i.length;s++)if(n=i[s],!r[n]&&(r[n]=1,o=this.l[n]||(this.l[n]=[]),!a||!o.includes(t)))if(o[o.length]=t,this.m){var h=this.register[t]||(this.register[t]=[]);h[h.length]=o}}if(this.store&&(!a||!this.store[t])){var i=void 0;if(this.C){i=v();for(var r=0,s=void 0;r<this.C.length;r++)s=this.C[r],x(s)?i[s]=e[s]:U(e,i,s,0,s[0])}this.store[t]=i||e}}return this};t.append=function(t,e){return this.add(t,e,!0)};t.update=function(t,e){return this.remove(t).add(t,e)};t.remove=function(t){C(t)&&(t=T(t,this.key));if(this.register[t]){for(var e=0;e<this.h.length&&(this.index[this.h[e]].remove(t,!this.o),!this.m);e++);if(this.I&&!this.m)for(var a in this.l){e=this.l[a];var i=e.indexOf(t);-1!==i&&(1<e.length?e.splice(i,1):delete this.l[a])}this.store&&delete this.store[t];delete this.register[t]}return this};t.search=function(t,e,a,i){a||(!e&&C(t)?(a=t,t=""):C(e)&&(a=e,e=0));var r=[],s=[],n,o,h,l,c,d,f=0;if(a)if(a.constructor===Array)h=a,a=null;else{t=a.query||t;h=(n=a.pluck)||a.index||a.field;l=a.tag;o=this.store&&a.enrich;c="and"===a.bool;e=a.limit||e||100;d=a.offset||0;if(l&&(x(l)&&(l=[l]),!t)){for(var u=0,v=void 0;u<l.length;u++)if(v=ya.call(this,l[u],e,d,o))r[r.length]=v,f++;return f?r:[]}x(h)&&(h=[h])}h||(h=this.h);c=c&&(1<h.length||l&&1<l.length);var g=!i&&(this.o||this.async)&&[];for(var u=0,v=void 0,b=void 0,p=void 0;u<h.length;u++){var m=void 0;b=h[u];x(b)||(m=b,b=m.field,t=m.query||t,e=m.limit||e);if(g)g[u]=this.index[b].searchAsync(t,e,m||a);else{i?v=i[u]:v=this.index[b].search(t,e,m||a);p=v&&v.length;if(l&&p){var _=[];var y=0;c&&(_[0]=[v]);for(var z=0,w=void 0,k=void 0;z<l.length;z++)if(w=l[z],p=(k=this.l[w])&&k.length)y++,_[_.length]=c?[k]:k;y&&(v=c?ma(_,e||100,d||0):na(v,_),p=v.length)}if(p)s[f]=b,r[f++]=v;else if(c)return[]}}if(g){var S=this;return new Promise((function(i){Promise.all(g).then((function(r){i(S.search(t,e,a,r))}))}))}if(!f)return[];if(n&&(!o||!this.store))return r[0];for(var u=0,v=void 0;u<s.length;u++){v=r[u];v.length&&o&&(v=za.call(this,v));if(n)return v;r[u]={field:s[u],result:v}}return r};function ya(t,e,a,i){var r=this.l[t],s=r&&r.length-a;if(s&&0<s){if(s>e||a)r=r.slice(a,a+e);i&&(r=za.call(this,r));return{tag:t,result:r}}}function za(t){var e=Array(t.length);for(var a=0,i=void 0;a<t.length;a++)i=t[a],e[a]={id:i,doc:this.store[i]};return e}t.contain=function(t){return!!this.register[t]};t.get=function(t){return this.store[t]};t.set=function(t,e){this.store[t]=e;return this};t.searchCache=oa;t.export=function(t,e,a,i,r){r||(r=0);i||(i=0);if(i<this.h.length){var s=this.h[i],n=this.index[s];e=this;setTimeout((function(){n.export(t,e,r?s:"",i,r++)||(i++,r=1,e.export(t,e,s,i,r))}))}else{var o=void 0,h=void 0;switch(r){case 1:o="tag";h=this.l;break;case 2:o="store";h=this.store;break;default:return}ra(t,this,a,o,i,r,h)}};t.import=function(t,e){if(e)switch(x(e)&&(e=JSON.parse(e)),t){case"tag":this.l=e;break;case"reg":this.m=!1;this.register=e;for(var a=0,i=void 0;a<this.h.length;a++)i=this.index[this.h[a]],i.register=e,i.m=!1;break;case"store":this.store=e;break;default:t=t.split(".");var r=t[0];t=t[1];r&&t&&this.index[r].import(t,e)}};la(Q.prototype);var Ba={encode:Aa,F:!1,G:""};var Ca=[F("[àáâãäå]"),"a",F("[èéêë]"),"e",F("[ìíîï]"),"i",F("[òóôõöő]"),"o",F("[ùúûüű]"),"u",F("[ýŷÿ]"),"y",F("ñ"),"n",F("[çc]"),"k",F("ß"),"s",F(" & ")," and "];function Aa(t){var e=t=""+t;e.normalize&&(e=e.normalize("NFD").replace(ea,""));return ca.call(this,e.toLowerCase(),!t.normalize&&Ca)}var Ea={encode:Da,F:!1,G:"strict"};var Fa=/[^a-z0-9]+/,Ga={b:"p",v:"f",w:"f",z:"s",x:"s","ß":"s",d:"t",n:"m",c:"k",g:"k",j:"k",q:"k",i:"e",y:"e",u:"o"};function Da(t){t=Aa.call(this,t).join(" ");var e=[];if(t){var a=t.split(Fa),i=a.length;for(var r=0,s=void 0,n=0;r<i;r++)if((t=a[r])&&(!this.filter||!this.filter[t])){s=t[0];var o=Ga[s]||s,h=o;for(var l=1;l<t.length;l++){s=t[l];var c=Ga[s]||s;c&&c!==h&&(o+=c,h=c)}e[n++]=o}}return e}var Ia={encode:Ha,F:!1,G:""};var Ja=[F("ae"),"a",F("oe"),"o",F("sh"),"s",F("th"),"t",F("ph"),"f",F("pf"),"f",F("(?![aeo])h(?![aeo])"),"",F("(?!^[aeo])h(?!^[aeo])"),""];function Ha(t,e){t&&(t=Da.call(this,t).join(" "),2<t.length&&(t=E(t,Ja)),e||(1<t.length&&(t=ha(t)),t&&(t=t.split(" "))));return t||[]}var La={encode:Ka,F:!1,G:""};var Ma=F("(?!\\b)[aeo]");function Ka(t){t&&(t=Ha.call(this,t,!0),1<t.length&&(t=t.replace(Ma,"")),1<t.length&&(t=ha(t)),t&&(t=t.split(" ")));return t||[]}G["latin:default"]=ja;G["latin:simple"]=Ba;G["latin:balance"]=Ea;G["latin:advanced"]=Ia;G["latin:extra"]=La;var W=self;var Y;var Z={Index:K,Document:Q,Worker:O,registerCharset:function(t,e){G[t]=e},registerLanguage:function(t,e){ka[t]=e}};(Y=W.define)&&Y.amd?Y([],(function(){return Z})):W.exports?W.exports=Z:W.FlexSearch=Z})(commonjsGlobal)}));var stzhDatatableCss=':host{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}:host[hidden]{display:none}:host *,:host *::before,:host *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-datatable{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;--max-height:var(--stzh-table-max-height);--min-width:var(--stzh-table-min-width);--cell-padding:var(--stzh-table-cell-padding);--input-width:var(--stzh-table-input-width)}stzh-datatable[hidden]{display:none}stzh-datatable *,stzh-datatable *::before,stzh-datatable *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-datatable[disable-min-width]:not([disable-min-width=false]){--min-width:none}.stzh-datatable{}.stzh-datatable__header{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;border-bottom:0.0625rem solid var(--stzh-base-border-color);padding-bottom:var(--stzh-space-small);margin-bottom:var(--stzh-space-medium)}@media screen and (min-width: 1024px){.stzh-datatable__header{padding-bottom:var(--stzh-space-medium)}}@media screen and (min-width: 1260px){.stzh-datatable__header{padding-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1024px){.stzh-datatable__header{margin-bottom:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-datatable__header{margin-bottom:var(--stzh-space-xlarge)}}@media screen and (min-width: 1024px){.stzh-datatable__header{-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:justify;justify-content:space-between}}.stzh-datatable__heading{margin-bottom:var(--stzh-space-small)}@media screen and (min-width: 1024px){.stzh-datatable__heading{margin-bottom:0}}.stzh-datatable__header .stzh-datatable__search{width:var(--stzh-table-input-width)}@media screen and (min-width: 1024px){.stzh-datatable__header .stzh-datatable__search{margin-left:var(--stzh-space-large)}}.stzh-datatable__outer-wrapper{position:relative}.stzh-datatable__outer-wrapper::before,.stzh-datatable__outer-wrapper::after{z-index:4;background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);opacity:0}.stzh-datatable__outer-wrapper::before{left:0}.stzh-datatable__outer-wrapper::after{right:0;-webkit-transform:rotate(-180deg);transform:rotate(-180deg)}.stzh-datatable__wrapper{overflow-x:auto;max-height:var(--max-height)}.stzh-datatable__sort-button{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;cursor:pointer;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:none;border:none;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;font-size:inherit;line-height:inherit;color:inherit;padding:var(--cell-padding)}.stzh-datatable__sort-button:hover,.stzh-datatable__sort-button:focus{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-datatable__sort-icon{opacity:0}.stzh-datatable__table{width:100%;border-spacing:0;min-width:var(--min-width)}.stzh-datatable__thead{position:-webkit-sticky;position:sticky;top:0;z-index:3}.stzh-datatable__row:hover .stzh-datatable__cell{background-color:var(--stzh-color-grey5)}.stzh-datatable__cell{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);text-align:left;border:none;vertical-align:top;border:none;border-bottom:0.0625rem solid var(--stzh-base-border-color);background-color:var(--stzh-color-white);-webkit-transition:background-color var(--stzh-base-transition-animation-speed);transition:background-color var(--stzh-base-transition-animation-speed);padding:var(--cell-padding);}.stzh-datatable__cell a{color:var(--stzh-link-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);border-radius:var(--stzh-button-border-radius)}.stzh-datatable__cell a:hover,.stzh-datatable__cell a:focus{color:var(--stzh-link-hover-color)}.stzh-datatable__cell b,.stzh-datatable__cell strong{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-datatable__cell i,.stzh-datatable__cell em{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-datatable__cell.align-left{text-align:left}.stzh-datatable__cell.align-right{text-align:right}.stzh-datatable__cell.align-center{text-align:center}.stzh-datatable__cell.valign-auto{vertical-align:auto}.stzh-datatable__cell.valign-middle{vertical-align:middle}.stzh-datatable__cell.valign-bottom{vertical-align:bottom}.stzh-datatable__cell.nowrap{white-space:nowrap}.stzh-datatable__cell.is-sticky-left,.stzh-datatable__cell.is-sticky-right{position:-webkit-sticky;position:sticky;z-index:1}.stzh-datatable__cell.has-sticked{z-index:2}.stzh-datatable__cell.is-sticky-left{left:0}.stzh-datatable__cell.is-sticky-right{right:0}.stzh-datatable__cell.is-sticky-left::after,.stzh-datatable__cell.is-sticky-right::after{background:-webkit-gradient(linear, left top, right top, from(rgba(0, 0, 0, 0.16)), to(rgba(0, 0, 0, 0)));background:linear-gradient(90deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0) 100%);content:"";pointer-events:none;position:absolute;top:0;height:100%;width:0.375rem;-webkit-transform:translate(100%);transform:translate(100%);opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed)}.stzh-datatable__cell.is-sticky-left::after{right:0}.stzh-datatable__cell.is-sticky-right::after{left:0;-webkit-transform:rotate(-180deg) translate(100%);transform:rotate(-180deg) translate(100%)}.stzh-datatable__cell.has-sticked.is-sticky-left::after,.stzh-datatable__cell.has-sticked.is-sticky-right::after{opacity:1}.stzh-datatable__cell--head{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-datatable__cell--head.is-sortable{padding:0}.stzh-datatable__cell.has-sorted .stzh-datatable__sort-icon{opacity:1}.stzh-datatable__cell.has-sorted-desc .stzh-datatable__sort-icon{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.stzh-datatable.has-scroll-left-shadow .stzh-datatable__outer-wrapper::before,.stzh-datatable.has-scroll-right-shadow .stzh-datatable__outer-wrapper::after{opacity:1}';var StzhDatatable=function(){function t(t){var e=this;registerInstance(this,t);this.updateScrollStates=function(){if(!e.tableWrapper){return}var t=e.tableWrapper.scrollLeft;var a=e.tableWrapper.scrollWidth;var i=e.tableWrapper.clientWidth;e.isScrollable=a>i;e.hasScrollLeft=t>0;e.hasScrollRight=t<a-i;var r=Array.from(e.tableWrapper.querySelectorAll("tr"));var s=r[0];if(!s){return}e.cellsStickyLeft=[];e.cellsStickyRight=[];var n=Array.from(s.children);n.forEach((function(a,r){var s=a.offsetLeft;var n=s+a.offsetWidth;if(e.hasScrollLeft&&e._columns[r].fixed==="left"&&Math.ceil(t)>=s){e.cellsStickyLeft.push(r)}if(e.hasScrollRight&&e._columns[r].fixed==="right"&&Math.ceil(t)+i<=n){e.cellsStickyRight.push(r)}}))};this.handleScroll=function(){if(e.debounceScroll){window.cancelAnimationFrame(e.debounceScroll)}e.debounceScroll=requestAnimationFrame(e.updateScrollStates)};this.onInputChange=function(){e.query=e.input.value};this.localization=undefined;this.label="";this.sortBy="";this.sortDirection="asc";this.tokenize="forward";this.idField="id";this.disableMinWidth=false;this.rows=[];this.columns=[];this.query="";this.hasScrollLeft=false;this.hasScrollRight=false;this.isScrollable=false;this.cellsStickyLeft=[];this.cellsStickyRight=[]}t.prototype.toggleSort=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(t===this.sortBy){this.sortDirection=this.sortDirection==="asc"?"desc":"asc"}else{this.sortDirection="asc";this.sortBy=t}return[2]}))}))};t.prototype.rowsWatcher=function(t){if(typeof t==="string"){this._rows=JSON.parse(t)}else{this._rows=t}this.buildSearchIndex()};t.prototype.columnsWatcher=function(t){if(typeof t==="string"){this._columns=JSON.parse(t)}else{this._columns=t}this.buildSearchIndex()};t.prototype.handleResize=function(){this.updateScrollStates()};t.prototype.buildSearchIndex=function(){var t=this;if(!this._rows||this._rows.length===0||!this._columns||this._columns.length===0){return}this.searchIndex=new flexsearch_bundle.Document({tokenize:this.tokenize,matcher:{"[äà]":"a","[öó]":"o","[üûúù]":"u","[éè]":"e"},document:{id:this.idField,index:this._columns.map((function(t){return t.key}))}});this._rows.forEach((function(e){t.searchIndex.add(e)}))};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.columnsWatcher(this.columns);this.rowsWatcher(this.rows);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datatable")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentDidLoad=function(){this.updateScrollStates()};t.prototype.componentWillRender=function(){var t=this;this._rowsManaged=[];if(this.query){var e=[];this.searchIndex.search(this.query).forEach((function(t){e=__spreadArray(__spreadArray([],e,true),t.result,true)}));e=e.filter((function(t,a){return e.indexOf(t)===a}));this._rows.forEach((function(a){if(e.indexOf(a[t.idField])>-1){t._rowsManaged.push(a)}}))}else{this._rowsManaged=__spreadArray([],this._rows,true)}if(this.sortBy){this._rowsManaged.sort((function(e,a){var i=e[t.sortBy].localeCompare(a[t.sortBy]);return t.sortDirection==="asc"?i:i/-1}))}};t.prototype.render=function(){var t=this;var e={"stzh-datatable":true,"is-scrollable":this.isScrollable,"has-scroll-left":this.hasScrollLeft,"has-scroll-right":this.hasScrollRight,"has-scroll-left-shadow":this.hasScrollLeft&&this.cellsStickyLeft.length===0,"has-scroll-right-shadow":this.hasScrollRight&&this.cellsStickyRight.length===0};return h(Host,null,h("div",{class:e},h("div",{class:"stzh-datatable__header"},h("div",{class:"stzh-datatable__heading"},h("slot",{name:"heading"})),h("stzh-input",{ref:function(e){return t.input=e},class:"stzh-datatable__search",size:"small",name:"stzh-datatable-search",onStzhChange:this.onInputChange,label:this.localization.searchLabel})),h("div",{class:"stzh-datatable__outer-wrapper"},h("div",{ref:function(e){return t.tableWrapper=e},class:"stzh-datatable__wrapper",onScroll:this.handleScroll},h("table",{class:"stzh-datatable__table"},h("thead",{class:"stzh-datatable__thead"},h("tr",{class:"stzh-datatable__row stzh-datatable__row--head"},this._columns.map((function(e,a){var i;return h("th",{class:(i={"stzh-datatable__cell stzh-datatable__cell--head":true,"is-sticky-left":e.fixed==="left","is-sticky-right":e.fixed==="right","is-sortable":e.sort,"has-sticked":t.cellsStickyLeft.indexOf(a)>-1||t.cellsStickyRight.indexOf(a)>-1,"has-sorted":e.key===t.sortBy,"has-sorted-asc":e.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":e.key===t.sortBy&&t.sortDirection==="desc"},i["align-".concat(e.align)]=e.align,i["valign-".concat(e.valign)]=e.valign,i)},e.sort?h("button",{class:"stzh-datatable__sort-button",type:"button",onClick:function(){return t.toggleSort(e.key)}},h("span",null,e.text),h("stzh-icon",{name:"arrow-up",class:"stzh-datatable__sort-icon"})):h("span",null,e.text))})))),h("tbody",null,this._rowsManaged.map((function(e){return h("tr",{class:"stzh-datatable__row stzh-datatable__row--body"},t._columns.map((function(a,i){var r;var s,n,o,l,c;return h("td",{innerHTML:((s=e[a.key])===null||s===void 0?void 0:s.text)||e[a.key]||"",class:(r={"stzh-datatable__cell stzh-datatable__cell--body":true,"is-sticky-left":a.fixed==="left","is-sticky-right":a.fixed==="right","is-sortable":a.sort,"has-sticked":t.cellsStickyLeft.indexOf(i)>-1||t.cellsStickyRight.indexOf(i)>-1,"has-sorted":a.key===t.sortBy,"has-sorted-asc":a.key===t.sortBy&&t.sortDirection==="asc","has-sorted-desc":a.key===t.sortBy&&t.sortDirection==="desc"},r["align-".concat(((n=e[a.key])===null||n===void 0?void 0:n.align)||a.align)]=((o=e[a.key])===null||o===void 0?void 0:o.align)||a.align,r["valign-".concat(((l=e[a.key])===null||l===void 0?void 0:l.valign)||a.valign)]=((c=e[a.key])===null||c===void 0?void 0:c.valign)||a.valign,r)})})))}))))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{rows:["rowsWatcher"],columns:["columnsWatcher"]}},enumerable:false,configurable:true});return t}();StzhDatatable.style=stzhDatatableCss;export{StzhDatatable as stzh_datatable};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,i){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,s){function a(t){try{h(i.next(t))}catch(e){s(e)}}function n(t){try{h(i["throw"](t))}catch(e){s(e)}}function h(t){t.done?r(t.value):o(t.value).then(a,n)}h((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,a;return a={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function n(t){return function(e){return h([t,e])}}function h(a){if(i)throw new TypeError("Generator is already executing.");while(r)try{if(i=1,o&&(s=a[0]&2?o["return"]:a[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,a[1])).done)return s;if(o=0,s)a=[a[0]&2,s.value];switch(a[0]){case 0:case 1:s=a;break;case 4:r.label++;return{value:a[1],done:false};case 5:r.label++;o=a[1];a=[0];continue;case 7:a=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(a[0]===6||a[0]===2)){r=0;continue}if(a[0]===3&&(!s||a[1]>s[0]&&a[1]<s[3])){r.label=a[1];break}if(a[0]===6&&r.label<s[1]){r.label=s[1];s=a;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(a);break}if(s[2])r.ops.pop();r.trys.pop();continue}a=e.call(t,r)}catch(n){a=[6,n];o=0}finally{i=s=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,F as Fragment,a as Host,g as getElement}from"./index-011c84fe.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{a as printISODate,p as parseISODate}from"./date-utils-be83fff1.js";import{c as createGlobalAdapter}from"./date-adapter-cbc340fa.js";import{h as hasSlot}from"./utils-92a77db5.js";import{S as StzhInputDescription}from"./stzh-input-description-bdd1e340.js";import{c as camelCase}from"./string-utils-f98ee4e8.js";var stzhDatepickerCss=".sc-stzh-datepicker-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-datepicker-h{display:none}.sc-stzh-datepicker-h *.sc-stzh-datepicker,.sc-stzh-datepicker-h *.sc-stzh-datepicker::before,.sc-stzh-datepicker-h *.sc-stzh-datepicker::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-datepicker-h{width:100%}.stzh-datepicker__popover.sc-stzh-datepicker{--padding:var(--stzh-space-medium);--width:auto}.stzh-datepicker__actions.sc-stzh-datepicker{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.stzh-datepicker__actions.sc-stzh-datepicker:not(:empty){margin-top:var(--stzh-space-xsmall)}";var StzhDatepicker=function(){function t(t){var e=this;registerInstance(this,t);this.stzhChange=createEvent(this,"stzhChange",7);this.onInputChange=function(){var t=e.dateAdapter.parse(e.input.value,"inputdate");if(e.input.value===""||t){var r=printISODate(t);if(e.calendar){e.calendar.value=r}e.value=r;e.stzhChange.emit({component:"stzh-datepicker",value:e.value,valueAsDate:t})}};this.onCalendarChange=function(t){e.value=t.detail.value;e.stzhChange.emit({component:"stzh-datepicker",value:e.value,valueAsDate:t.detail.valueAsDate});if(e.input){e.input.value=t.detail.valueAsDate&&e.dateAdapter.format(t.detail.valueAsDate,"inputdate")}if(e.popover){e.popover.hide()}};this.calendarMin="";this.calendarMax="";this.calendarIsDateDisabled=function(){return false};this.name="";this.value="";this.label="";this.readonly=false;this.disabled=false;this.description=undefined;this.descriptionLong=undefined;this.error=undefined;this.invalid=false;this.required=false;this.showMarker=false;this.size="default";this.inline=false;this.dateAdapter=undefined;this.localization=undefined;this.buttonLabel=undefined}t.prototype.createDateFormatters=function(){if(this.localization){this.dateFormatLong=new Intl.DateTimeFormat(this.localization.$locale,{day:"numeric",month:"long",year:"numeric"})}};t.prototype.valueWatcher=function(t){var e=parseISODate(t);if(this.calendar){this.calendar.value=t}if(this.input){this.input.value=this.dateAdapter.format(e,"inputdate")}this.updateButtonAccessibleLabel()};t.prototype.setDate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.value=printISODate(t);return[2]}))}))};t.prototype.getPopover=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.popover]}))}))};t.prototype.updateButtonAccessibleLabel=function(){if(!this.localization){return}try{var t=parseISODate(this.value);this.buttonLabel="".concat(this.localization.buttonLabel,", ").concat(this.localization.selectedDateMessage," ").concat(this.dateFormatLong.format(t))}catch(e){this.buttonLabel=this.localization.buttonLabel}};t.prototype.connectedCallback=function(){this.createDateFormatters()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datepicker")];case 1:t.localization=e.sent();e.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=createGlobalAdapter(this.localization.$formats,this.localization.$globals)}return[2]}}))}))};t.prototype.componentDidLoad=function(){this.valueWatcher(this.value)};t.prototype.render=function(){var t=this;var e={"stzh-datepicker":true,"stzh-datepicker--inline":this.inline};return h(Host,null,h("div",{class:e},h("input",{type:"hidden",name:this.name,value:this.value}),this.inline&&h(Fragment,null,h("stzh-calendar",{ref:function(e){return t.calendar=e},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),h("div",{class:"stzh-datepicker__actions"},h("slot",{name:"action"}))),!this.inline&&h("stzh-input",{label:this.label,ref:function(e){return t.input=e},noAutocomplete:true,onStzhChange:this.onInputChange,readonly:this.readonly,disabled:this.disabled,description:this.description,descriptionLong:this.descriptionLong,error:this.error,invalid:this.invalid,required:this.required,showMarker:this.showMarker,size:this.size},h("stzh-popover",{ref:function(e){return t.popover=e},class:"stzh-datepicker__popover",slot:"button-right",placement:"bottom-end",label:this.label},h("stzh-button",{variant:"input","icon-only":true,icon:"calendar",disabled:this.disabled,a11yLabel:this.buttonLabel}),h("div",{slot:"content"},h("stzh-calendar",{ref:function(e){return t.calendar=e},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),h("div",{class:"stzh-datepicker__actions"},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{localization:["createDateFormatters"],value:["valueWatcher"]}},enumerable:false,configurable:true});return t}();StzhDatepicker.style=stzhDatepickerCss;var stzhRadioCss='.sc-stzh-radio-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-radio-h{display:none}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-radio-h{display:inline-block;border-radius:var(--stzh-form-input-border-radius)}.sc-stzh-radio-h .sc-stzh-radio-s>stzh-text{--color:inherit}.stzh-radio__marker-symbol.sc-stzh-radio{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radio__marker-text.sc-stzh-radio{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-radio__description-wrapper.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radio__error.sc-stzh-radio,.stzh-radio__description.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radio__error.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio__error-list.sc-stzh-radio{list-style:none;margin:0;padding:0}.stzh-radio__description.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radio__description-long.sc-stzh-radio{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radio__description-long-popover.sc-stzh-radio{--width:auto;--max-width:27.3125rem}.stzh-radio__description-long-popover[open].sc-stzh-radio:not([open=false]) .stzh-radio__description-long-button.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__description-long-button.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radio__description-long-button.sc-stzh-radio:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio stzh-icon.stzh-radio__description-long-icon.sc-stzh-radio{--size:var(--stzh-icon-size-xsmall)}.stzh-radio--has-error.sc-stzh-radio .stzh-radio__error.sc-stzh-radio,.stzh-radio--has-description.sc-stzh-radio .stzh-radio__description.sc-stzh-radio{margin-top:var(--stzh-space-xxsmall)}.stzh-radio__field-wrapper.sc-stzh-radio{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.stzh-radio__input.sc-stzh-radio{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none}.stzh-radio__mark.sc-stzh-radio{border:0.0625rem solid var(--stzh-color-grey61);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;-ms-flex-negative:0;flex-shrink:0;border-radius:50%;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:border-color var(--stzh-base-transition-animation-speed);transition:border-color var(--stzh-base-transition-animation-speed)}.stzh-radio__mark.sc-stzh-radio::before{content:""}.stzh-radio__check.sc-stzh-radio{background-color:currentColor;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));width:0.5rem;height:0.5rem;border-radius:50%;opacity:0}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-radio__check.sc-stzh-radio{background-color:ButtonText}}.stzh-radio__label.sc-stzh-radio{display:inline-block;color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-radio__label.sc-stzh-radio:empty{display:none}.stzh-radio__marker-symbol.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-radio.sc-stzh-radio:hover .stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio:hover .stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:focus:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:focus~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{opacity:1}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-error)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__field-wrapper.sc-stzh-radio{cursor:not-allowed}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-grey61)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:transparent}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__mark.sc-stzh-radio{background-color:var(--stzh-color-black8)}';var radioCounter=0;var StzhRadio=function(){function t(t){var e=this;registerInstance(this,t);this.stzhChange=createEvent(this,"stzhChange",7);this.stzhFocus=createEvent(this,"stzhFocus",7);this.stzhBlur=createEvent(this,"stzhBlur",7);this.onInput=function(t){e.checked=e.input.checked;e.stzhChange.emit({component:"stzh-radio",originalEvent:t,value:e.value,checked:e.checked})};this.onFocus=function(t){var r=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});e.element.dispatchEvent(r);e.stzhFocus.emit({component:"stzh-radio",originalEvent:t})};this.onBlur=function(t){var r=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});e.element.dispatchEvent(r);e.stzhBlur.emit({component:"stzh-radio",originalEvent:t})};this.localization=undefined;this.disabled=false;this.name="";this.value="";this.invalid=false;this.required=false;this.showMarker=false;this.checked=false;this.label="";this.description=undefined;this.descriptionLong=undefined;this.error=undefined;this.a11yDescribedby=""}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.input.focus();return[2]}))}))};t.prototype.errorWatcher=function(t){if(typeof t==="string"){try{this._error=JSON.parse(t)}catch(e){if(t){this._error=[t]}else{this._error=[]}}}else if(t){this._error=t}else{this._error=[]}this.invalid=this._error.length>0};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.inputId="stzh-radio-".concat(radioCounter++);this.errorWatcher(this.error);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"radio")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.render=function(){var t=this;var e=hasSlot(this.element,"description")||!!this.description;var r=hasSlot(this.element,"description-long")||!!this.descriptionLong;var i=hasSlot(this.element,"error")||!!this.error;var o={"stzh-radio":true,"stzh-radio--has-description":e,"stzh-radio--has-description-long":r,"stzh-radio--has-error":i,"stzh-radio--is-required":this.required,"stzh-radio--is-invalid":this.invalid,"stzh-radio--is-disabled":this.disabled};return h("div",{class:o},h("label",{class:"stzh-radio__field-wrapper"},h("input",{class:"stzh-radio__input",ref:function(e){return t.input=e},type:"radio",id:this.inputId,name:this.name,value:this.value,disabled:this.disabled,"aria-describedby":"".concat(this.inputId,"-description ").concat(this.a11yDescribedby),"aria-required":this.required?"true":"false","aria-invalid":this.invalid?"true":"false",checked:this.checked,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),h("div",{class:"stzh-radio__mark"},h("div",{class:"stzh-radio__check"})),h("div",{class:"stzh-radio__label"},this.label?this.label:h("slot",null),this.showMarker&&h("span",{class:"stzh-radio__marker"},h("span",{class:"stzh-radio__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),h("span",{class:"stzh-radio__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),h(StzhInputDescription,{classPrefix:"stzh-radio",id:"".concat(this.inputId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:r,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{error:["errorWatcher"]}},enumerable:false,configurable:true});return t}();StzhRadio.style=stzhRadioCss;var stzhRadiogroupCss=".sc-stzh-radiogroup-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-radiogroup-h{display:none}.sc-stzh-radiogroup-h *.sc-stzh-radiogroup,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::before,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-radiogroup-h[direction=vertical] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-bottom:var(--stzh-space-medium)}.sc-stzh-radiogroup-h[direction=horizontal] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-radiogroup.sc-stzh-radiogroup{margin:0;padding:0;border:none}.stzh-radiogroup__marker-symbol.sc-stzh-radiogroup{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radiogroup__marker-text.sc-stzh-radiogroup{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-radiogroup__description-wrapper.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup__description.sc-stzh-radiogroup{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radiogroup__error.sc-stzh-radiogroup{color:var(--stzh-color-error)}.stzh-radiogroup__error-list.sc-stzh-radiogroup{list-style:none;margin:0;padding:0}.stzh-radiogroup__description.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radiogroup__description-long.sc-stzh-radiogroup{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radiogroup__description-long-popover.sc-stzh-radiogroup{--width:auto;--max-width:27.3125rem}.stzh-radiogroup__description-long-popover[open].sc-stzh-radiogroup:not([open=false]) .stzh-radiogroup__description-long-button.sc-stzh-radiogroup{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup.sc-stzh-radiogroup stzh-icon.stzh-radiogroup__description-long-icon.sc-stzh-radiogroup{--size:var(--stzh-icon-size-xsmall)}.stzh-radiogroup--has-error.sc-stzh-radiogroup .stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup--has-description.sc-stzh-radiogroup .stzh-radiogroup__description.sc-stzh-radiogroup{margin-top:var(--stzh-space-xxsmall)}.stzh-radiogroup__fields.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}.stzh-radiogroup__legend.sc-stzh-radiogroup{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);padding:0;margin-bottom:var(--stzh-space-xsmall)}.stzh-radiogroup--hide-legend.sc-stzh-radiogroup .stzh-radiogroup__legend.sc-stzh-radiogroup{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-radiogroup--direction-horizontal.sc-stzh-radiogroup .stzh-radiogroup__fields.sc-stzh-radiogroup{-ms-flex-direction:row;flex-direction:row}";var SELECTOR_RADIO="stzh-radio, stzh-button[type=radio], stzh-card";var radiogroupCounter=0;var StzhRadiogroup=function(){function t(t){var e=this;registerInstance(this,t);this._preventUpdateProperties=[];this.init=function(){e.radios=Array.from(e.element.querySelectorAll(SELECTOR_RADIO));e.updateRadiosProperty("show-marker",false);e.updateRadiosProperty("a11y-describedby","".concat(e.radiogroupId,"-description"));e.watchValue(e.value);e.watchName(e.name);e.watchDisabled(e.disabled);e.watchInvalid(e.invalid);e.watchRequired(e.required)};this.localization=undefined;this.disabled=false;this.name=undefined;this.legend=undefined;this.hideLegend=false;this.invalid=false;this.required=false;this.showMarker=false;this.value="";this.direction="vertical";this.description=undefined;this.descriptionLong=undefined;this.error=undefined;this.checkedRadio=null;this.preventUpdateProperties=[]}t.prototype.watchName=function(t){this.updateRadiosProperty("name",t)};t.prototype.watchDisabled=function(t){this.updateRadiosProperty("disabled",t)};t.prototype.watchInvalid=function(t){this.updateRadiosProperty("invalid",t)};t.prototype.watchRequired=function(t){this.updateRadiosProperty("required",t)};t.prototype.watchValue=function(t){this.updateCheckedRadioByValue(t)};t.prototype.errorWatcher=function(t){if(typeof t==="string"){try{this._error=JSON.parse(t)}catch(e){if(t){this._error=[t]}else{this._error=[]}}}else if(t){this._error=t}else{this._error=[]}this.invalid=this._error.length>0};t.prototype.preventUpdatePropertiesWatcher=function(t){if(typeof t==="string"){this._preventUpdateProperties=JSON.parse(t)}else{this._preventUpdateProperties=t}};t.prototype.onChange=function(t){this.value=t.detail.value};t.prototype.updateRadiosProperty=function(t,e){var r=this;this.radios.forEach((function(i){if(t==="name"||r._preventUpdateProperties.indexOf(t)===-1){i[camelCase(t)]=e}}))};t.prototype.updateCheckedRadioByValue=function(t){this.checkedRadio=this.radios.find((function(e){return e.value===t}));if(this.checkedRadio){this.checkedRadio.checked=true}this.uncheckRadios()};t.prototype.uncheckRadios=function(){var t=this;this.radios.forEach((function(e){if(!t.checkedRadio||e!==t.checkedRadio){e.checked=false}}))};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.radiogroupId="stzh-radiogroup-".concat(radiogroupCounter++);this.errorWatcher(this.error);this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"radiogroup")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentShouldUpdate=function(t,e,r){return r!=="checkedRadio"};t.prototype.componentDidRender=function(){this.init()};t.prototype.connectedCallback=function(){if(!this.value){this.radios=Array.from(this.element.querySelectorAll(SELECTOR_RADIO));var t=this.radios.find((function(t){return t.checked}));if(t){this.value=t.value}}this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.render=function(){var t;var e=hasSlot(this.element,"description")||!!this.description;var r=hasSlot(this.element,"description-long")||!!this.descriptionLong;var i=hasSlot(this.element,"error")||!!this.error;var o=(t={"stzh-radiogroup":true,"stzh-radiogroup--has-description":e,"stzh-radiogroup--has-description-long":r,"stzh-radiogroup--has-error":i,"stzh-radiogroup--is-required":this.required,"stzh-radiogroup--is-disabled":this.disabled,"stzh-radiogroup--is-invalid":this.invalid,"stzh-radiogroup--hide-legend":this.hideLegend},t["stzh-radiogroup--direction-".concat(this.direction)]=!!this.direction,t);return h("fieldset",{class:o},this.legend&&h("legend",{class:"stzh-radiogroup__legend"},this.legend,this.showMarker&&h("span",{class:"stzh-radiogroup__marker"},h("span",{class:"stzh-radiogroup__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),h("span",{class:"stzh-radiogroup__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText))),h("div",{class:"stzh-radiogroup__fields"},h("slot",null)),h(StzhInputDescription,{classPrefix:"stzh-radiogroup",id:"".concat(this.radiogroupId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:r,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:["watchName"],disabled:["watchDisabled"],invalid:["watchInvalid"],required:["watchRequired"],value:["watchValue"],error:["errorWatcher"],preventUpdateProperties:["preventUpdatePropertiesWatcher"]}},enumerable:false,configurable:true});return t}();StzhRadiogroup.style=stzhRadiogroupCss;export{StzhDatepicker as stzh_datepicker,StzhRadio as stzh_radio,StzhRadiogroup as stzh_radiogroup};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,i){function o(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,s){function a(t){try{h(i.next(t))}catch(e){s(e)}}function n(t){try{h(i["throw"](t))}catch(e){s(e)}}function h(t){t.done?r(t.value):o(t.value).then(a,n)}h((i=i.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},i,o,s,a;return a={next:n(0),throw:n(1),return:n(2)},typeof Symbol==="function"&&(a[Symbol.iterator]=function(){return this}),a;function n(t){return function(e){return h([t,e])}}function h(n){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,n[0]&&(r=0)),r)try{if(i=1,o&&(s=n[0]&2?o["return"]:n[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,n[1])).done)return s;if(o=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:r.label++;return{value:n[1],done:false};case 5:r.label++;o=n[1];n=[0];continue;case 7:n=r.ops.pop();r.trys.pop();continue;default:if(!(s=r.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){r=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){r.label=n[1];break}if(n[0]===6&&r.label<s[1]){r.label=s[1];s=n;break}if(s&&r.label<s[2]){r.label=s[2];r.ops.push(n);break}if(s[2])r.ops.pop();r.trys.pop();continue}n=e.call(t,r)}catch(h){n=[6,h];o=0}finally{i=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,F as Fragment,c as Host,g as getElement}from"./index-319b7c49.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{a as printISODate,p as parseISODate}from"./date-utils-be83fff1.js";import{c as createGlobalAdapter}from"./date-adapter-cbc340fa.js";import{h as hasSlot}from"./utils-51148d9a.js";import{S as StzhInputDescription}from"./stzh-input-description-cc38e214.js";import{c as camelCase}from"./string-utils-f98ee4e8.js";var stzhDatepickerCss=".sc-stzh-datepicker-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-datepicker-h{display:none}.sc-stzh-datepicker-h *.sc-stzh-datepicker,.sc-stzh-datepicker-h *.sc-stzh-datepicker::before,.sc-stzh-datepicker-h *.sc-stzh-datepicker::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-datepicker-h{width:100%}.stzh-datepicker__popover.sc-stzh-datepicker{--padding:var(--stzh-space-medium);--width:auto}.stzh-datepicker__actions.sc-stzh-datepicker{display:-ms-flexbox;display:flex;-ms-flex-pack:end;justify-content:flex-end}.stzh-datepicker__actions.sc-stzh-datepicker:not(:empty){margin-top:var(--stzh-space-xsmall)}";var StzhDatepicker=function(){function t(t){var e=this;registerInstance(this,t);this.stzhChange=createEvent(this,"stzhChange",7);this.onInputChange=function(){var t=e.dateAdapter.parse(e.input.value,"inputdate");if(e.input.value===""||t){var r=printISODate(t);if(e.calendar){e.calendar.value=r}e.value=r;e.stzhChange.emit({component:"stzh-datepicker",value:e.value,valueAsDate:t})}};this.onCalendarChange=function(t){e.value=t.detail.value;e.stzhChange.emit({component:"stzh-datepicker",value:e.value,valueAsDate:t.detail.valueAsDate});if(e.input){e.input.value=t.detail.valueAsDate&&e.dateAdapter.format(t.detail.valueAsDate,"inputdate")}if(e.popover){e.popover.hide()}};this.calendarMin="";this.calendarMax="";this.calendarIsDateDisabled=function(){return false};this.name="";this.value="";this.label="";this.readonly=false;this.disabled=false;this.description=undefined;this.descriptionLong=undefined;this.error=undefined;this.invalid=false;this.required=false;this.showMarker=false;this.size="default";this.inline=false;this.dateAdapter=undefined;this.localization=undefined;this.buttonLabel=undefined}t.prototype.createDateFormatters=function(){if(this.localization){this.dateFormatLong=new Intl.DateTimeFormat(this.localization.$locale,{day:"numeric",month:"long",year:"numeric"})}};t.prototype.valueWatcher=function(t){var e=parseISODate(t);if(this.calendar){this.calendar.value=t}if(this.input){this.input.value=this.dateAdapter.format(e,"inputdate")}this.updateButtonAccessibleLabel()};t.prototype.setDate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.value=printISODate(t);return[2]}))}))};t.prototype.getPopover=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.popover]}))}))};t.prototype.updateButtonAccessibleLabel=function(){if(!this.localization){return}try{var t=parseISODate(this.value);this.buttonLabel="".concat(this.localization.buttonLabel,", ").concat(this.localization.selectedDateMessage," ").concat(this.dateFormatLong.format(t))}catch(e){this.buttonLabel=this.localization.buttonLabel}};t.prototype.connectedCallback=function(){this.createDateFormatters()};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(e){switch(e.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"datepicker")];case 1:t.localization=e.sent();e.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=createGlobalAdapter(this.localization.$formats,this.localization.$globals)}return[2]}}))}))};t.prototype.componentDidLoad=function(){this.valueWatcher(this.value)};t.prototype.render=function(){var t=this;var e={"stzh-datepicker":true,"stzh-datepicker--inline":this.inline};return h(Host,null,h("div",{class:e},h("input",{type:"hidden",name:this.name,value:this.value}),this.inline&&h(Fragment,null,h("stzh-calendar",{ref:function(e){return t.calendar=e},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),h("div",{class:"stzh-datepicker__actions"},h("slot",{name:"action"}))),!this.inline&&h("stzh-input",{label:this.label,ref:function(e){return t.input=e},noAutocomplete:true,onStzhChange:this.onInputChange,readonly:this.readonly,disabled:this.disabled,description:this.description,descriptionLong:this.descriptionLong,error:this.error,invalid:this.invalid,required:this.required,showMarker:this.showMarker,size:this.size},h("stzh-popover",{ref:function(e){return t.popover=e},class:"stzh-datepicker__popover",slot:"button-right",placement:"bottom-end",label:this.label},h("stzh-button",{variant:"input","icon-only":true,icon:"calendar",disabled:this.disabled,a11yLabel:this.buttonLabel}),h("div",{slot:"content"},h("stzh-calendar",{ref:function(e){return t.calendar=e},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),h("div",{class:"stzh-datepicker__actions"},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{localization:["createDateFormatters"],value:["valueWatcher"]}},enumerable:false,configurable:true});return t}();StzhDatepicker.style=stzhDatepickerCss;var stzhRadioCss='.sc-stzh-radio-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-radio-h{display:none}.sc-stzh-radio-h *.sc-stzh-radio,.sc-stzh-radio-h *.sc-stzh-radio::before,.sc-stzh-radio-h *.sc-stzh-radio::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-radio-h{display:inline-block;border-radius:var(--stzh-form-input-border-radius)}.sc-stzh-radio-h .sc-stzh-radio-s>stzh-text{--color:inherit}.stzh-radio__marker-symbol.sc-stzh-radio{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radio__marker-text.sc-stzh-radio{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-radio__description-wrapper.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radio__error.sc-stzh-radio,.stzh-radio__description.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radio__error.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio__error-list.sc-stzh-radio{list-style:none;margin:0;padding:0}.stzh-radio__description.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radio__description-long.sc-stzh-radio{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radio__description-long-popover.sc-stzh-radio{--width:auto;--max-width:27.3125rem}.stzh-radio__description-long-popover[open].sc-stzh-radio:not([open=false]) .stzh-radio__description-long-button.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__description-long-button.sc-stzh-radio{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radio__description-long-button.sc-stzh-radio:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio stzh-icon.stzh-radio__description-long-icon.sc-stzh-radio{--size:var(--stzh-icon-size-xsmall)}.stzh-radio--has-error.sc-stzh-radio .stzh-radio__error.sc-stzh-radio,.stzh-radio--has-description.sc-stzh-radio .stzh-radio__description.sc-stzh-radio{margin-top:var(--stzh-space-xxsmall)}.stzh-radio__field-wrapper.sc-stzh-radio{font-size:var(--stzh-font-milli-font-size);line-height:var(--stzh-font-milli-text-line-height);letter-spacing:var(--stzh-font-curve---text-letter-spacing);position:relative;display:-ms-flexbox;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.stzh-radio__input.sc-stzh-radio{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none}.stzh-radio__mark.sc-stzh-radio{border:0.0625rem solid var(--stzh-color-grey61);background-color:var(--stzh-color-white);width:1.5rem;height:1.5rem;-ms-flex-negative:0;flex-shrink:0;border-radius:50%;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-transition:border-color var(--stzh-base-transition-animation-speed);transition:border-color var(--stzh-base-transition-animation-speed)}.stzh-radio__mark.sc-stzh-radio::before{content:""}.stzh-radio__check.sc-stzh-radio{background-color:currentColor;color:var(--stzh-color-primary, var(--stzh-color-zueriblue));width:0.5rem;height:0.5rem;border-radius:50%;opacity:0}@media (forced-colors: active), (-ms-high-contrast: active){.stzh-radio__check.sc-stzh-radio{background-color:ButtonText}}.stzh-radio__label.sc-stzh-radio{display:inline-block;color:var(--stzh-base-color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);margin-left:var(--stzh-space-small);line-height:1.5rem}.stzh-radio__label.sc-stzh-radio:empty{display:none}.stzh-radio__marker-symbol.sc-stzh-radio{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-radio.sc-stzh-radio:hover .stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__label.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__label.sc-stzh-radio{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio.sc-stzh-radio:hover .stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:focus:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:hover~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked:focus~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-radio__input.sc-stzh-radio:focus~.stzh-radio__mark.sc-stzh-radio,.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radio__input.sc-stzh-radio:checked~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{opacity:1}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-error)}.stzh-radio--is-invalid.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:var(--stzh-color-error)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__field-wrapper.sc-stzh-radio{cursor:not-allowed}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__label.sc-stzh-radio,.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio .stzh-radio__check.sc-stzh-radio{color:var(--stzh-color-grey61)}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__input.sc-stzh-radio~.stzh-radio__mark.sc-stzh-radio{border-color:transparent}.stzh-radio--is-disabled.sc-stzh-radio .stzh-radio__mark.sc-stzh-radio{background-color:var(--stzh-color-black8)}';var radioCounter=0;var StzhRadio=function(){function t(t){var e=this;registerInstance(this,t);this.stzhChange=createEvent(this,"stzhChange",7);this.stzhFocus=createEvent(this,"stzhFocus",7);this.stzhBlur=createEvent(this,"stzhBlur",7);this.onInput=function(t){e.checked=e.input.checked;e.stzhChange.emit({component:"stzh-radio",originalEvent:t,value:e.value,checked:e.checked})};this.onFocus=function(t){var r=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});e.element.dispatchEvent(r);e.stzhFocus.emit({component:"stzh-radio",originalEvent:t})};this.onBlur=function(t){var r=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});e.element.dispatchEvent(r);e.stzhBlur.emit({component:"stzh-radio",originalEvent:t})};this.localization=undefined;this.disabled=false;this.name="";this.value="";this.invalid=false;this.required=false;this.showMarker=false;this.checked=false;this.label="";this.description=undefined;this.descriptionLong=undefined;this.error=undefined;this.a11yDescribedby=""}t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.input.focus();return[2]}))}))};t.prototype.errorWatcher=function(t){if(typeof t==="string"){try{this._error=JSON.parse(t)}catch(e){if(t){this._error=[t]}else{this._error=[]}}}else if(t){this._error=t}else{this._error=[]}this.invalid=this._error.length>0};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.inputId="stzh-radio-".concat(radioCounter++);this.errorWatcher(this.error);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"radio")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.render=function(){var t=this;var e=hasSlot(this.element,"description")||!!this.description;var r=hasSlot(this.element,"description-long")||!!this.descriptionLong;var i=hasSlot(this.element,"error")||!!this.error;var o={"stzh-radio":true,"stzh-radio--has-description":e,"stzh-radio--has-description-long":r,"stzh-radio--has-error":i,"stzh-radio--is-required":this.required,"stzh-radio--is-invalid":this.invalid,"stzh-radio--is-disabled":this.disabled};return h("div",{class:o},h("label",{class:"stzh-radio__field-wrapper"},h("input",{class:"stzh-radio__input",ref:function(e){return t.input=e},type:"radio",id:this.inputId,name:this.name,value:this.value,disabled:this.disabled,"aria-describedby":"".concat(this.inputId,"-description ").concat(this.a11yDescribedby),"aria-required":this.required?"true":"false","aria-invalid":this.invalid?"true":"false",checked:this.checked,onInput:this.onInput,onFocus:this.onFocus,onBlur:this.onBlur}),h("div",{class:"stzh-radio__mark"},h("div",{class:"stzh-radio__check"})),h("div",{class:"stzh-radio__label"},this.label?this.label:h("slot",null),this.showMarker&&h("span",{class:"stzh-radio__marker"},h("span",{class:"stzh-radio__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),h("span",{class:"stzh-radio__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),h(StzhInputDescription,{classPrefix:"stzh-radio",id:"".concat(this.inputId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:r,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{error:["errorWatcher"]}},enumerable:false,configurable:true});return t}();StzhRadio.style=stzhRadioCss;var stzhRadiogroupCss=".sc-stzh-radiogroup-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-radiogroup-h{display:none}.sc-stzh-radiogroup-h *.sc-stzh-radiogroup,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::before,.sc-stzh-radiogroup-h *.sc-stzh-radiogroup::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-radiogroup-h[direction=vertical] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-bottom:var(--stzh-space-medium)}.sc-stzh-radiogroup-h[direction=horizontal] .sc-stzh-radiogroup-s>stzh-radio:not(:last-child){margin-right:var(--stzh-space-large)}.stzh-radiogroup.sc-stzh-radiogroup{margin:0;padding:0;border:none}.stzh-radiogroup__marker-symbol.sc-stzh-radiogroup{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-radiogroup__marker-text.sc-stzh-radiogroup{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-radiogroup__description-wrapper.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup__description.sc-stzh-radiogroup{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-radiogroup__error.sc-stzh-radiogroup{color:var(--stzh-color-error)}.stzh-radiogroup__error-list.sc-stzh-radiogroup{list-style:none;margin:0;padding:0}.stzh-radiogroup__description.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-radiogroup__description-long.sc-stzh-radiogroup{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-radiogroup__description-long-popover.sc-stzh-radiogroup{--width:auto;--max-width:27.3125rem}.stzh-radiogroup__description-long-popover[open].sc-stzh-radiogroup:not([open=false]) .stzh-radiogroup__description-long-button.sc-stzh-radiogroup{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;padding:0;border:none;background-color:transparent;border-radius:0.5rem;cursor:pointer;-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed);color:var(--stzh-base-lead-color)}.stzh-radiogroup__description-long-button.sc-stzh-radiogroup:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-radiogroup.sc-stzh-radiogroup stzh-icon.stzh-radiogroup__description-long-icon.sc-stzh-radiogroup{--size:var(--stzh-icon-size-xsmall)}.stzh-radiogroup--has-error.sc-stzh-radiogroup .stzh-radiogroup__error.sc-stzh-radiogroup,.stzh-radiogroup--has-description.sc-stzh-radiogroup .stzh-radiogroup__description.sc-stzh-radiogroup{margin-top:var(--stzh-space-xxsmall)}.stzh-radiogroup__fields.sc-stzh-radiogroup{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start;-ms-flex-direction:column;flex-direction:column}.stzh-radiogroup__legend.sc-stzh-radiogroup{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;font-size:var(--stzh-font-nano-font-size);line-height:var(--stzh-font-nano-text-line-height);padding:0;margin-bottom:var(--stzh-space-xsmall)}.stzh-radiogroup--hide-legend.sc-stzh-radiogroup .stzh-radiogroup__legend.sc-stzh-radiogroup{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-radiogroup--direction-horizontal.sc-stzh-radiogroup .stzh-radiogroup__fields.sc-stzh-radiogroup{-ms-flex-direction:row;flex-direction:row}";var SELECTOR_RADIO="stzh-radio, stzh-button[type=radio], stzh-card";var radiogroupCounter=0;var StzhRadiogroup=function(){function t(t){var e=this;registerInstance(this,t);this._preventUpdateProperties=[];this.init=function(){e.radios=Array.from(e.element.querySelectorAll(SELECTOR_RADIO));e.updateRadiosProperty("show-marker",false);e.updateRadiosProperty("a11y-describedby","".concat(e.radiogroupId,"-description"));e.watchValue(e.value);e.watchName(e.name);e.watchDisabled(e.disabled);e.watchInvalid(e.invalid);e.watchRequired(e.required)};this.localization=undefined;this.disabled=false;this.name=undefined;this.legend=undefined;this.hideLegend=false;this.invalid=false;this.required=false;this.showMarker=false;this.value="";this.direction="vertical";this.description=undefined;this.descriptionLong=undefined;this.error=undefined;this.checkedRadio=null;this.preventUpdateProperties=[]}t.prototype.watchName=function(t){this.updateRadiosProperty("name",t)};t.prototype.watchDisabled=function(t){this.updateRadiosProperty("disabled",t)};t.prototype.watchInvalid=function(t){this.updateRadiosProperty("invalid",t)};t.prototype.watchRequired=function(t){this.updateRadiosProperty("required",t)};t.prototype.watchValue=function(t){this.updateCheckedRadioByValue(t)};t.prototype.errorWatcher=function(t){if(typeof t==="string"){try{this._error=JSON.parse(t)}catch(e){if(t){this._error=[t]}else{this._error=[]}}}else if(t){this._error=t}else{this._error=[]}this.invalid=this._error.length>0};t.prototype.preventUpdatePropertiesWatcher=function(t){if(typeof t==="string"){this._preventUpdateProperties=JSON.parse(t)}else{this._preventUpdateProperties=t}};t.prototype.onChange=function(t){this.value=t.detail.value};t.prototype.updateRadiosProperty=function(t,e){var r=this;this.radios.forEach((function(i){if(t==="name"||r._preventUpdateProperties.indexOf(t)===-1){i[camelCase(t)]=e}}))};t.prototype.updateCheckedRadioByValue=function(t){this.checkedRadio=this.radios.find((function(e){return e.value===t}));if(this.checkedRadio){this.checkedRadio.checked=true}this.uncheckRadios()};t.prototype.uncheckRadios=function(){var t=this;this.radios.forEach((function(e){if(!t.checkedRadio||e!==t.checkedRadio){e.checked=false}}))};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.radiogroupId="stzh-radiogroup-".concat(radiogroupCounter++);this.errorWatcher(this.error);this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"radiogroup")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.componentShouldUpdate=function(t,e,r){return r!=="checkedRadio"};t.prototype.componentDidRender=function(){this.init()};t.prototype.connectedCallback=function(){if(!this.value){this.radios=Array.from(this.element.querySelectorAll(SELECTOR_RADIO));var t=this.radios.find((function(t){return t.checked}));if(t){this.value=t.value}}this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};t.prototype.disconnectedCallback=function(){this.observer.disconnect()};t.prototype.render=function(){var t;var e=hasSlot(this.element,"description")||!!this.description;var r=hasSlot(this.element,"description-long")||!!this.descriptionLong;var i=hasSlot(this.element,"error")||!!this.error;var o=(t={"stzh-radiogroup":true,"stzh-radiogroup--has-description":e,"stzh-radiogroup--has-description-long":r,"stzh-radiogroup--has-error":i,"stzh-radiogroup--is-required":this.required,"stzh-radiogroup--is-disabled":this.disabled,"stzh-radiogroup--is-invalid":this.invalid,"stzh-radiogroup--hide-legend":this.hideLegend},t["stzh-radiogroup--direction-".concat(this.direction)]=!!this.direction,t);return h("fieldset",{class:o},this.legend&&h("legend",{class:"stzh-radiogroup__legend"},this.legend,this.showMarker&&h("span",{class:"stzh-radiogroup__marker"},h("span",{class:"stzh-radiogroup__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),h("span",{class:"stzh-radiogroup__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText))),h("div",{class:"stzh-radiogroup__fields"},h("slot",null)),h(StzhInputDescription,{classPrefix:"stzh-radiogroup",id:"".concat(this.radiogroupId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:r,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{name:["watchName"],disabled:["watchDisabled"],invalid:["watchInvalid"],required:["watchRequired"],value:["watchValue"],error:["errorWatcher"],preventUpdateProperties:["preventUpdatePropertiesWatcher"]}},enumerable:false,configurable:true});return t}();StzhRadiogroup.style=stzhRadiogroupCss;export{StzhDatepicker as stzh_datepicker,StzhRadio as stzh_radio,StzhRadiogroup as stzh_radiogroup};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n["throw"](t))}catch(e){r(e)}}function l(t){t.done?i(t.value):s(t.value).then(o,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return l([t,e])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(i)try{if(n=1,s&&(r=o[0]&2?s["return"]:o[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,o[1])).done)return r;if(s=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;s=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=e.call(t,i)}catch(a){o=[6,a];s=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-011c84fe.js";import{i as isStzhElement}from"./utils-92a77db5.js";import{w as waitForEvent}from"./event-utils-7a709e21.js";import{s as stopAnimations,a as animateTo,b as shimKeyframesHeightAuto}from"./animation-utils-e234a5f8.js";var stzhDetailsCss=".sc-stzh-details-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-details-h{display:none}.sc-stzh-details-h *.sc-stzh-details,.sc-stzh-details-h *.sc-stzh-details::before,.sc-stzh-details-h *.sc-stzh-details::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-details-h{display:contents;--content-padding:0;--content-background:transparent;--content-grid-column:inherit;--content-border-bottom:none}.stzh-details.sc-stzh-details,.stzh-details__trigger.sc-stzh-details{display:contents}.stzh-details__content.sc-stzh-details{overflow:hidden;background-color:var(--content-background);grid-column:var(--content-grid-column);border-bottom:var(--content-border-bottom)}.stzh-details__content-inner.sc-stzh-details{padding:var(--content-padding)}";var ANIMATION_SHOW={keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"linear"}};var ANIMATION_HIDE={keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"linear"}};var detailsCounter=0;var StzhDetails=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.toggledByMethod=false;this.onClickTrigger=function(){e.toggle()};this.open=false}t.prototype.openWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!this.triggerElement){return[2]}if(this.triggerElement.firstElementChild){e=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(e?"a11y-expanded":"aria-expanded",t?"true":"false")}if(!t)return[3,3];if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-accordion-item"})}return[4,stopAnimations(this.bodyElement)];case 1:i.sent();this.bodyElement.hidden=false;return[4,animateTo(this.bodyElement,shimKeyframesHeightAuto(ANIMATION_SHOW.keyframes,this.bodyElement.scrollHeight),ANIMATION_SHOW.options)];case 2:i.sent();this.bodyElement.style.height="auto";this.bodyElement.style.overflow="visible";if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-accordion-item"})}return[3,6];case 3:if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-accordion-item"})}return[4,stopAnimations(this.bodyElement)];case 4:i.sent();this.bodyElement.style.overflow="hidden";return[4,animateTo(this.bodyElement,shimKeyframesHeightAuto(ANIMATION_HIDE.keyframes,this.bodyElement.scrollHeight),ANIMATION_HIDE.options)];case 5:i.sent();this.bodyElement.hidden=true;this.bodyElement.style.height="0px";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-accordion-item"})}i.label=6;case 6:this.toggledByMethod=false;return[2]}}))}))};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.componentWillLoad=function(){this.detailsId="stzh-details-".concat(detailsCounter++)};t.prototype.componentDidLoad=function(){this.bodyElement.hidden=!this.open;this.bodyElement.style.height=this.open?"auto":"0px";this.bodyElement.style.overflow=this.open?"visible":"hidden";if(this.triggerElement.firstElementChild){var t=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-controls":"aria-controls","".concat(this.detailsId,"-content"));this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded",this.open?"true":"false")}};t.prototype.connectedCallback=function(){var t;var e=(t=this.triggerElement)===null||t===void 0?void 0:t.firstElementChild;if(!e){var i=Array.from(this.element.children).find((function(t){return!t.hasAttribute("slot")}));e=i}if(e){e.addEventListener("click",this.onClickTrigger)}};t.prototype.disconnectedCallback=function(){if(this.triggerElement&&this.triggerElement.firstElementChild){this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger)}};t.prototype.render=function(){var t=this;var e={"stzh-details":true,"stzh-details--is-open":this.open};return h(Host,null,h("div",{class:e},h("div",{ref:function(e){return t.triggerElement=e},class:"stzh-details__trigger"},h("slot",null)),h("div",{id:"".concat(this.detailsId,"-content"),ref:function(e){return t.bodyElement=e},class:"stzh-details__content","aria-labelledby":"".concat(this.detailsId,"-header")},h("div",{class:"stzh-details__content-inner"},h("slot",{name:"content"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openWatcher"]}},enumerable:false,configurable:true});return t}();StzhDetails.style=stzhDetailsCss;export{StzhDetails as stzh_details};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,n){function s(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function o(t){try{l(n.next(t))}catch(e){r(e)}}function a(t){try{l(n["throw"](t))}catch(e){r(e)}}function l(t){t.done?i(t.value):s(t.value).then(o,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,s,r,o;return o={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function a(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,a[0]&&(i=0)),i)try{if(n=1,s&&(r=a[0]&2?s["return"]:a[0]?s["throw"]||((r=s["return"])&&r.call(s),0):s.next)&&!(r=r.call(s,a[1])).done)return r;if(s=0,r)a=[a[0]&2,r.value];switch(a[0]){case 0:case 1:r=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;s=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!r||a[1]>r[0]&&a[1]<r[3])){i.label=a[1];break}if(a[0]===6&&i.label<r[1]){i.label=r[1];r=a;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(a);break}if(r[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(l){a=[6,l];s=0}finally{n=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{i as isStzhElement}from"./utils-51148d9a.js";import{w as waitForEvent}from"./event-utils-7a709e21.js";import{s as stopAnimations,a as animateTo,b as shimKeyframesHeightAuto}from"./animation-utils-e234a5f8.js";var stzhDetailsCss=".sc-stzh-details-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-details-h{display:none}.sc-stzh-details-h *.sc-stzh-details,.sc-stzh-details-h *.sc-stzh-details::before,.sc-stzh-details-h *.sc-stzh-details::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-details-h{display:contents;--content-padding:0;--content-background:transparent;--content-grid-column:inherit;--content-border-bottom:none}.stzh-details.sc-stzh-details,.stzh-details__trigger.sc-stzh-details{display:contents}.stzh-details__content.sc-stzh-details{overflow:hidden;background-color:var(--content-background);grid-column:var(--content-grid-column);border-bottom:var(--content-border-bottom)}.stzh-details__content-inner.sc-stzh-details{padding:var(--content-padding)}";var ANIMATION_SHOW={keyframes:[{height:"0",opacity:"0"},{height:"auto",opacity:"1"}],options:{duration:300,easing:"linear"}};var ANIMATION_HIDE={keyframes:[{height:"auto",opacity:"1"},{height:"0",opacity:"0"}],options:{duration:300,easing:"linear"}};var detailsCounter=0;var StzhDetails=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.toggledByMethod=false;this.onClickTrigger=function(){e.toggle()};this.open=false}t.prototype.openWatcher=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!this.triggerElement){return[2]}if(this.triggerElement.firstElementChild){e=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(e?"a11y-expanded":"aria-expanded",t?"true":"false")}if(!t)return[3,3];if(this.toggledByMethod){this.stzhOpen.emit({component:"stzh-accordion-item"})}return[4,stopAnimations(this.bodyElement)];case 1:i.sent();this.bodyElement.hidden=false;return[4,animateTo(this.bodyElement,shimKeyframesHeightAuto(ANIMATION_SHOW.keyframes,this.bodyElement.scrollHeight),ANIMATION_SHOW.options)];case 2:i.sent();this.bodyElement.style.height="auto";this.bodyElement.style.overflow="visible";if(this.toggledByMethod){this.stzhOpened.emit({component:"stzh-accordion-item"})}return[3,6];case 3:if(this.toggledByMethod){this.stzhClose.emit({component:"stzh-accordion-item"})}return[4,stopAnimations(this.bodyElement)];case 4:i.sent();this.bodyElement.style.overflow="hidden";return[4,animateTo(this.bodyElement,shimKeyframesHeightAuto(ANIMATION_HIDE.keyframes,this.bodyElement.scrollHeight),ANIMATION_HIDE.options)];case 5:i.sent();this.bodyElement.hidden=true;this.bodyElement.style.height="0px";if(this.toggledByMethod){this.stzhClosed.emit({component:"stzh-accordion-item"})}i.label=6;case 6:this.toggledByMethod=false;return[2]}}))}))};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.componentWillLoad=function(){this.detailsId="stzh-details-".concat(detailsCounter++)};t.prototype.componentDidLoad=function(){this.bodyElement.hidden=!this.open;this.bodyElement.style.height=this.open?"auto":"0px";this.bodyElement.style.overflow=this.open?"visible":"hidden";if(this.triggerElement.firstElementChild){var t=isStzhElement(this.triggerElement.firstElementChild);this.triggerElement.firstElementChild.setAttribute(t?"a11y-controls":"aria-controls","".concat(this.detailsId,"-content"));this.triggerElement.firstElementChild.setAttribute(t?"a11y-expanded":"aria-expanded",this.open?"true":"false")}};t.prototype.connectedCallback=function(){var t;var e=(t=this.triggerElement)===null||t===void 0?void 0:t.firstElementChild;if(!e){var i=Array.from(this.element.children).find((function(t){return!t.hasAttribute("slot")}));e=i}if(e){e.addEventListener("click",this.onClickTrigger)}};t.prototype.disconnectedCallback=function(){if(this.triggerElement&&this.triggerElement.firstElementChild){this.triggerElement.firstElementChild.removeEventListener("click",this.onClickTrigger)}};t.prototype.render=function(){var t=this;var e={"stzh-details":true,"stzh-details--is-open":this.open};return h(Host,null,h("div",{class:e},h("div",{ref:function(e){return t.triggerElement=e},class:"stzh-details__trigger"},h("slot",null)),h("div",{id:"".concat(this.detailsId,"-content"),ref:function(e){return t.bodyElement=e},class:"stzh-details__content","aria-labelledby":"".concat(this.detailsId,"-header")},h("div",{class:"stzh-details__content-inner"},h("slot",{name:"content"})))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{open:["openWatcher"]}},enumerable:false,configurable:true});return t}();StzhDetails.style=stzhDetailsCss;export{StzhDetails as stzh_details};
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,a){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function n(t){try{r(a.next(t))}catch(e){s(e)}}function l(t){try{r(a["throw"](t))}catch(e){s(e)}}function r(t){t.done?i(t.value):o(t.value).then(n,l)}r((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){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:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(t){return function(e){return r([t,e])}}function r(n){if(a)throw new TypeError("Generator is already executing.");while(i)try{if(a=1,o&&(s=n[0]&2?o["return"]:n[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,n[1])).done)return s;if(o=0,s)n=[n[0]&2,s.value];switch(n[0]){case 0:case 1:s=n;break;case 4:i.label++;return{value:n[1],done:false};case 5:i.label++;o=n[1];n=[0];continue;case 7:n=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){i=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){i.label=n[1];break}if(n[0]===6&&i.label<s[1]){i.label=s[1];s=n;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(n);break}if(s[2])i.ops.pop();i.trys.pop();continue}n=e.call(t,i)}catch(l){n=[6,l];o=0}finally{a=s=0}if(n[0]&5)throw n[1];return{value:n[0]?n[1]:void 0,done:true}}};import{r as registerInstance,c as createEvent,h,a as Host,g as getElement}from"./index-011c84fe.js";import{s as setPropsIfNull}from"./utils-92a77db5.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{c as createFocusTrap}from"./focus-trap.esm-074705a3.js";var stzhDialogCss=".sc-stzh-dialog-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-dialog-h{display:none}.sc-stzh-dialog-h *.sc-stzh-dialog,.sc-stzh-dialog-h *.sc-stzh-dialog::before,.sc-stzh-dialog-h *.sc-stzh-dialog::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-dialog-h{--width:100%;--padding:var(--stzh-space-xxlarge);--close-color:var(--stzh-base-lead-color);--backdrop-opacity:0.8}@media screen and (min-width: 600px){.sc-stzh-dialog-h{--width:33.5rem;}}@media screen and (min-width: 1024px){.sc-stzh-dialog-h{--width:48.875rem;--padding:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-dialog-h{--width:52rem;--padding:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 600px){[size=small].sc-stzh-dialog-h{--width:24.6875rem}}@media screen and (min-width: 1024px){[size=small].sc-stzh-dialog-h{--width:28.75rem}}@media screen and (min-width: 1260px){[size=small].sc-stzh-dialog-h{--width:32rem}}.stzh-dialog.sc-stzh-dialog{z-index:var(--stzh-z-index-dialog);display:none;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}.stzh-dialog__content.sc-stzh-dialog{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-dialog__dialog.sc-stzh-dialog{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:auto;border:none;background-color:var(--stzh-color-white);width:var(--width);max-width:100%;-webkit-box-shadow:var(--stzh-box-shadow-overlay);box-shadow:var(--stzh-box-shadow-overlay);height:100vh;max-height:100vh;overflow:hidden;outline:none}@media screen and (min-width: 600px){.stzh-dialog__dialog.sc-stzh-dialog{height:auto}}.stzh-dialog__backdrop.sc-stzh-dialog{z-index:1;position:absolute;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;text-align:center;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));opacity:var(--backdrop-opacity)}.stzh-dialog__heading.sc-stzh-dialog{padding:var(--padding);padding-bottom:0}.stzh-dialog__dialog-content.sc-stzh-dialog{padding:var(--padding);padding-top:var(--stzh-space-xlarge);padding-bottom:var(--stzh-space-xlarge);overflow:auto;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 1024px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-bottom:var(--stzh-space-xxxlarge)}}.stzh-dialog__actions.sc-stzh-dialog{padding:var(--padding);padding-top:0}.stzh-dialog__close-button.sc-stzh-dialog{position:absolute;top:var(--stzh-space-xsmall);right:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background:none;padding:var(--stzh-space-xsmall);margin:calc(var(--stzh-space-xsmall) * -1);border-radius:var(--stzh-button-border-radius);cursor:pointer}@media screen and (min-width: 600px){.stzh-dialog__close-button.sc-stzh-dialog{top:var(--stzh-space-small);right:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-dialog__close-button.sc-stzh-dialog{top:var(--stzh-space-large);right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-dialog__close-button.sc-stzh-dialog{top:calc(var(--stzh-space-xxlarge) + var(--stzh-space-xxsmall));right:calc(var(--stzh-space-xxlarge) + var(--stzh-space-xxsmall))}}.stzh-dialog__close-icon.sc-stzh-dialog{--size:var(--stzh-icon-size-medium);color:var(--close-color)}.stzh-dialog--is-open.sc-stzh-dialog{display:-ms-flexbox;display:flex}";var keyCode={ESC:27};var CLASS_BODY_OPEN="stzh-dialog-open";var activeDialog=null;var dialogCounter=0;var StzhDialog=function(){function t(t){var e=this;registerInstance(this,t);this.stzhOpen=createEvent(this,"stzhOpen",7);this.stzhClose=createEvent(this,"stzhClose",7);this.handleDialogClick=function(t){var i=t.target;if(i.dataset.stzhDialogClose){e.hide()}else{var a=i.closest("[data-stzh-dialog-close]");if(a){e.hide()}}};this.handleCloseButtonClick=function(){e.hide()};this.init=function(){var t=e.element.querySelector('stzh-actions[slot="actions"]');if(t){setPropsIfNull(t,{variant:"dialog",withBorder:true})}};this.localization=undefined;this.closeOnEscapeKey=false;this.closeOnBackdropClick=false;this.open=false;this.stay=true;this.size="default";this.hideClose=false;this.heading="";this.a11yRole="alertdialog";this.a11yLabel=""}t.prototype.handleOutsideClick=function(t){if(!this.open||!this.closeOnBackdropClick){return}var e=t.target!==this.dialogElement&&this.dialogElement.contains(t.target)===false;if(e){this.hide()}};t.prototype.handleKeydown=function(t){if(t.keyCode===keyCode.ESC&&activeDialog===this&&this.closeOnEscapeKey){this.hide()}};t.prototype.handleOpenTriggerClick=function(t){var e=t.target;if(e.dataset.stzhDialogTrigger===this.element.id){this.show()}else{var i=e.closest("[data-stzh-dialog-trigger]");if(i&&i.dataset.stzhDialogTrigger===this.element.id){this.show()}}};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-dialog"});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-dialog"});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(){activeDialog=this;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()}activeDialog=null};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-dialog-".concat(dialogCounter);dialogCounter++;if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"dialog")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.connectedCallback=function(){if(!this.stay&&this.element.parentElement!==document.body){document.body.appendChild(this.element)}this.parentElement=this.element.parentElement;this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};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;var e=this;return h(Host,null,h("div",{class:(t={"stzh-dialog":true,"stzh-dialog--is-open":this.open,"stzh-dialog--has-heading":!!this.heading,"stzh-dialog--has-close-hidden":this.hideClose},t["stzh-dialog--size-".concat(this.size)]=!!this.size,t)},h("div",{class:"stzh-dialog__backdrop"}),h("div",{class:"stzh-dialog__content"},h("div",{class:"stzh-dialog__dialog",ref:function(t){return e.dialogElement=t},tabindex:"-1",role:this.a11yRole,"aria-label":this.a11yLabel,"aria-labelledby":this.heading?"".concat(this.id,"-heading"):null,"aria-hidden":this.open?"false":"true",onClick:this.handleDialogClick},this.heading&&h("stzh-heading",{id:"".concat(this.id,"-heading"),class:"stzh-dialog__heading",level:"2","with-border":true},this.heading),h("div",{class:"stzh-dialog__dialog-content"},h("slot",null)),h("div",{class:"stzh-dialog__actions"},h("slot",{name:"actions"})),!this.hideClose&&h("button",{class:"stzh-dialog__close-button",onClick:this.handleCloseButtonClick,"aria-label":this.localization.close,type:"button"},h("stzh-icon",{class:"stzh-dialog__close-icon",name:"close"}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhDialog.style=stzhDialogCss;export{StzhDialog as stzh_dialog};
1
+ var __awaiter=this&&this.__awaiter||function(t,e,i,a){function o(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,s){function n(t){try{r(a.next(t))}catch(e){s(e)}}function l(t){try{r(a["throw"](t))}catch(e){s(e)}}function r(t){t.done?i(t.value):o(t.value).then(n,l)}r((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){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:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(n[Symbol.iterator]=function(){return this}),n;function l(t){return function(e){return r([t,e])}}function r(l){if(a)throw new TypeError("Generator is already executing.");while(n&&(n=0,l[0]&&(i=0)),i)try{if(a=1,o&&(s=l[0]&2?o["return"]:l[0]?o["throw"]||((s=o["return"])&&s.call(o),0):o.next)&&!(s=s.call(o,l[1])).done)return s;if(o=0,s)l=[l[0]&2,s.value];switch(l[0]){case 0:case 1:s=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;o=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(s=i.trys,s=s.length>0&&s[s.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!s||l[1]>s[0]&&l[1]<s[3])){i.label=l[1];break}if(l[0]===6&&i.label<s[1]){i.label=s[1];s=l;break}if(s&&i.label<s[2]){i.label=s[2];i.ops.push(l);break}if(s[2])i.ops.pop();i.trys.pop();continue}l=e.call(t,i)}catch(r){l=[6,r];o=0}finally{a=s=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};import{r as registerInstance,e as createEvent,h,c as Host,g as getElement}from"./index-319b7c49.js";import{s as setPropsIfNull}from"./utils-51148d9a.js";import{f as fetchTranslations}from"./translation-utils-2623783f.js";import{c as createFocusTrap}from"./focus-trap.esm-82634dec.js";var stzhDialogCss=".sc-stzh-dialog-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-dialog-h{display:none}.sc-stzh-dialog-h *.sc-stzh-dialog,.sc-stzh-dialog-h *.sc-stzh-dialog::before,.sc-stzh-dialog-h *.sc-stzh-dialog::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-dialog-h{--width:100%;--padding:var(--stzh-space-xxlarge);--close-color:var(--stzh-base-lead-color);--backdrop-opacity:0.8}@media screen and (min-width: 600px){.sc-stzh-dialog-h{--width:33.5rem;}}@media screen and (min-width: 1024px){.sc-stzh-dialog-h{--width:48.875rem;--padding:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1260px){.sc-stzh-dialog-h{--width:52rem;--padding:var(--stzh-space-xxxxlarge)}}@media screen and (min-width: 600px){[size=small].sc-stzh-dialog-h{--width:24.6875rem}}@media screen and (min-width: 1024px){[size=small].sc-stzh-dialog-h{--width:28.75rem}}@media screen and (min-width: 1260px){[size=small].sc-stzh-dialog-h{--width:32rem}}.stzh-dialog.sc-stzh-dialog{z-index:var(--stzh-z-index-dialog);display:none;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}.stzh-dialog__content.sc-stzh-dialog{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-dialog__dialog.sc-stzh-dialog{position:relative;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;margin:auto;border:none;background-color:var(--stzh-color-white);width:var(--width);max-width:100%;-webkit-box-shadow:var(--stzh-box-shadow-overlay);box-shadow:var(--stzh-box-shadow-overlay);height:100vh;max-height:100vh;overflow:hidden;outline:none}@media screen and (min-width: 600px){.stzh-dialog__dialog.sc-stzh-dialog{height:auto}}.stzh-dialog__backdrop.sc-stzh-dialog{z-index:1;position:absolute;top:0;left:0;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;text-align:center;background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));opacity:var(--backdrop-opacity)}.stzh-dialog__heading.sc-stzh-dialog{padding:var(--padding);padding-bottom:0}.stzh-dialog__dialog-content.sc-stzh-dialog{padding:var(--padding);padding-top:var(--stzh-space-xlarge);padding-bottom:var(--stzh-space-xlarge);overflow:auto;-ms-flex-positive:1;flex-grow:1}@media screen and (min-width: 1024px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-top:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-top:var(--stzh-space-xxxlarge)}}@media screen and (min-width: 1024px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-bottom:var(--stzh-space-xxlarge)}}@media screen and (min-width: 1260px){.stzh-dialog__dialog-content.sc-stzh-dialog{padding-bottom:var(--stzh-space-xxxlarge)}}.stzh-dialog__actions.sc-stzh-dialog{padding:var(--padding);padding-top:0}.stzh-dialog__close-button.sc-stzh-dialog{position:absolute;top:var(--stzh-space-xsmall);right:var(--stzh-space-xsmall);display:-ms-flexbox;display:flex;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:none;background:none;padding:var(--stzh-space-xsmall);margin:calc(var(--stzh-space-xsmall) * -1);border-radius:var(--stzh-button-border-radius);cursor:pointer}@media screen and (min-width: 600px){.stzh-dialog__close-button.sc-stzh-dialog{top:var(--stzh-space-small);right:var(--stzh-space-small)}}@media screen and (min-width: 1024px){.stzh-dialog__close-button.sc-stzh-dialog{top:var(--stzh-space-large);right:var(--stzh-space-large)}}@media screen and (min-width: 1260px){.stzh-dialog__close-button.sc-stzh-dialog{top:calc(var(--stzh-space-xxlarge) + var(--stzh-space-xxsmall));right:calc(var(--stzh-space-xxlarge) + var(--stzh-space-xxsmall))}}.stzh-dialog__close-icon.sc-stzh-dialog{--size:var(--stzh-icon-size-medium);color:var(--close-color)}.stzh-dialog--is-open.sc-stzh-dialog{display:-ms-flexbox;display:flex}";var keyCode={ESC:27};var CLASS_BODY_OPEN="stzh-dialog-open";var activeDialog=null;var dialogCounter=0;var StzhDialog=function(){function t(t){var e=this;registerInstance(this,t);this.stzhOpen=createEvent(this,"stzhOpen",7);this.stzhClose=createEvent(this,"stzhClose",7);this.handleDialogClick=function(t){var i=t.target;if(i.dataset.stzhDialogClose){e.hide()}else{var a=i.closest("[data-stzh-dialog-close]");if(a){e.hide()}}};this.handleCloseButtonClick=function(){e.hide()};this.init=function(){var t=e.element.querySelector('stzh-actions[slot="actions"]');if(t){setPropsIfNull(t,{variant:"dialog",withBorder:true})}};this.localization=undefined;this.closeOnEscapeKey=false;this.closeOnBackdropClick=false;this.open=false;this.stay=true;this.size="default";this.hideClose=false;this.heading="";this.a11yRole="alertdialog";this.a11yLabel=""}t.prototype.handleOutsideClick=function(t){if(!this.open||!this.closeOnBackdropClick){return}var e=t.target!==this.dialogElement&&this.dialogElement.contains(t.target)===false;if(e){this.hide()}};t.prototype.handleKeydown=function(t){if(t.keyCode===keyCode.ESC&&activeDialog===this&&this.closeOnEscapeKey){this.hide()}};t.prototype.handleOpenTriggerClick=function(t){var e=t.target;if(e.dataset.stzhDialogTrigger===this.element.id){this.show()}else{var i=e.closest("[data-stzh-dialog-trigger]");if(i&&i.dataset.stzhDialogTrigger===this.element.id){this.show()}}};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-dialog"});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-dialog"});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(){activeDialog=this;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()}activeDialog=null};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-dialog-".concat(dialogCounter);dialogCounter++;if(!!this.localization)return[3,2];t=this;return[4,fetchTranslations(this.element,"dialog")];case 1:t.localization=e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.connectedCallback=function(){if(!this.stay&&this.element.parentElement!==document.body){document.body.appendChild(this.element)}this.parentElement=this.element.parentElement;this.init();this.observer=new MutationObserver(this.init);this.observer.observe(this.element,{childList:true,subtree:true})};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;var e=this;return h(Host,null,h("div",{class:(t={"stzh-dialog":true,"stzh-dialog--is-open":this.open,"stzh-dialog--has-heading":!!this.heading,"stzh-dialog--has-close-hidden":this.hideClose},t["stzh-dialog--size-".concat(this.size)]=!!this.size,t)},h("div",{class:"stzh-dialog__backdrop"}),h("div",{class:"stzh-dialog__content"},h("div",{class:"stzh-dialog__dialog",ref:function(t){return e.dialogElement=t},tabindex:"-1",role:this.a11yRole,"aria-label":this.a11yLabel,"aria-labelledby":this.heading?"".concat(this.id,"-heading"):null,"aria-hidden":this.open?"false":"true",onClick:this.handleDialogClick},this.heading&&h("stzh-heading",{id:"".concat(this.id,"-heading"),class:"stzh-dialog__heading",level:"2","with-border":true},this.heading),h("div",{class:"stzh-dialog__dialog-content"},h("slot",null)),h("div",{class:"stzh-dialog__actions"},h("slot",{name:"actions"})),!this.hideClose&&h("button",{class:"stzh-dialog__close-button",onClick:this.handleCloseButtonClick,"aria-label":this.localization.close,type:"button"},h("stzh-icon",{class:"stzh-dialog__close-icon",name:"close"}))))))};Object.defineProperty(t.prototype,"element",{get:function(){return getElement(this)},enumerable:false,configurable:true});return t}();StzhDialog.style=stzhDialogCss;export{StzhDialog as stzh_dialog};