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

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 (427) hide show
  1. package/dist/cjs/{_commonjsHelpers-dcc4cf71.js → _commonjsHelpers-bcc1208a.js} +0 -16
  2. package/dist/cjs/app-globals-d7bd37fe.js +889 -0
  3. package/dist/cjs/{js.cookie-226c94ed.js → js.cookie-9c263d23.js} +1 -1
  4. package/dist/cjs/loader.cjs.js +2 -2
  5. package/dist/cjs/stzh-actions.cjs.entry.js +3 -1
  6. package/dist/cjs/stzh-actionset.cjs.entry.js +11 -6
  7. package/dist/cjs/stzh-appnav.cjs.entry.js +3 -1
  8. package/dist/cjs/stzh-badge_3.cjs.entry.js +20 -8
  9. package/dist/cjs/stzh-calendar.cjs.entry.js +1 -1
  10. package/dist/cjs/stzh-card_3.cjs.entry.js +36 -29
  11. package/dist/cjs/stzh-carousel.cjs.entry.js +522 -0
  12. package/dist/cjs/stzh-chart.cjs.entry.js +5998 -5171
  13. package/dist/cjs/stzh-checkboxgroup.cjs.entry.js +3 -1
  14. package/dist/cjs/stzh-chip_2.cjs.entry.js +82 -5
  15. package/dist/cjs/stzh-components.cjs.js +2 -2
  16. package/dist/cjs/stzh-cspace.cjs.entry.js +1 -1
  17. package/dist/cjs/stzh-datalist_2.cjs.entry.js +10 -3
  18. package/dist/cjs/stzh-datamessagelist-item.cjs.entry.js +1 -1
  19. package/dist/cjs/stzh-datatable.cjs.entry.js +16 -4
  20. package/dist/cjs/stzh-datepicker_3.cjs.entry.js +3 -1
  21. package/dist/cjs/stzh-dialog.cjs.entry.js +16 -13
  22. package/dist/cjs/stzh-dropdown.cjs.entry.js +2 -2
  23. package/dist/cjs/stzh-footer.cjs.entry.js +3 -1
  24. package/dist/cjs/stzh-ghettobox_2.cjs.entry.js +17 -4
  25. package/dist/cjs/stzh-header.cjs.entry.js +32 -27
  26. package/dist/cjs/stzh-hspace.cjs.entry.js +1 -1
  27. package/dist/cjs/stzh-input.cjs.entry.js +1 -1
  28. package/dist/cjs/stzh-invert.cjs.entry.js +1 -1
  29. package/dist/cjs/stzh-link.cjs.entry.js +15 -4
  30. package/dist/cjs/stzh-loader.cjs.entry.js +1 -1
  31. package/dist/cjs/stzh-menu_2.cjs.entry.js +2 -2
  32. package/dist/cjs/stzh-message.cjs.entry.js +2 -2
  33. package/dist/cjs/stzh-metanav.cjs.entry.js +3 -1
  34. package/dist/cjs/stzh-microsite-teaserlist.cjs.entry.js +1 -1
  35. package/dist/cjs/stzh-olmap.cjs.entry.js +1 -1
  36. package/dist/cjs/stzh-page-skiplinks.cjs.entry.js +3 -1
  37. package/dist/cjs/stzh-pagetitle-hero.cjs.entry.js +4 -2
  38. package/dist/cjs/stzh-pagetitle.cjs.entry.js +3 -1
  39. package/dist/cjs/stzh-popover.cjs.entry.js +1 -1
  40. package/dist/cjs/stzh-portal-mitwirken.cjs.entry.js +1 -1
  41. package/dist/cjs/stzh-readspeaker.cjs.entry.js +3 -1
  42. package/dist/cjs/stzh-sortable.cjs.entry.js +4 -2
  43. package/dist/cjs/stzh-space.cjs.entry.js +1 -1
  44. package/dist/cjs/stzh-sticky.cjs.entry.js +3 -1
  45. package/dist/cjs/stzh-table.cjs.entry.js +14 -4
  46. package/dist/cjs/stzh-upload.cjs.entry.js +1 -1
  47. package/dist/cjs/stzh-vbz-linechip.cjs.entry.js +1 -1
  48. package/dist/cjs/stzh-vbz-ticker.cjs.entry.js +16 -11
  49. package/dist/cjs/stzh-vspace.cjs.entry.js +1 -1
  50. package/dist/collection/assets/i18n/de.json +10 -0
  51. package/dist/collection/assets/i18n/en.json +11 -1
  52. package/dist/collection/collection-manifest.json +1 -0
  53. package/dist/collection/components/stzh-actions/stzh-actions.js +3 -1
  54. package/dist/collection/components/stzh-actionset/stzh-actionset.js +11 -33
  55. package/dist/collection/components/stzh-appnav/stzh-appnav.js +3 -1
  56. package/dist/collection/components/stzh-button/stzh-button.css +16 -1
  57. package/dist/collection/components/stzh-button/stzh-button.js +73 -7
  58. package/dist/collection/components/stzh-calendar/stzh-calendar.css +1 -1
  59. package/dist/collection/components/stzh-card/stzh-card.css +34 -9
  60. package/dist/collection/components/stzh-card/stzh-card.js +52 -54
  61. package/dist/collection/components/stzh-carousel/stzh-carousel.css +253 -0
  62. package/dist/collection/components/stzh-carousel/stzh-carousel.js +966 -0
  63. package/dist/collection/components/stzh-carousel/stzh-carousel.localization.js +1 -0
  64. package/dist/collection/components/stzh-carousel/stzh-carousel.stories.js +138 -0
  65. package/dist/collection/components/stzh-chart/stzh-chart.css +101 -54
  66. package/dist/collection/components/stzh-chart/stzh-chart.stories.js +1 -0
  67. package/dist/collection/components/stzh-checkboxgroup/stzh-checkboxgroup.js +3 -1
  68. package/dist/collection/components/stzh-chip/stzh-chip.css +19 -17
  69. package/dist/collection/components/stzh-chip/stzh-chip.js +2 -1
  70. package/dist/collection/components/stzh-chip-select/stzh-chip-select.css +1 -1
  71. package/dist/collection/components/stzh-clamp/stzh-clamp.css +46 -160
  72. package/dist/collection/components/stzh-clamp/stzh-clamp.js +218 -8
  73. package/dist/collection/components/stzh-clamp/stzh-clamp.localization.js +1 -0
  74. package/dist/collection/components/stzh-clamp/stzh-clamp.stories.js +1 -1
  75. package/dist/collection/components/stzh-cspace/stzh-cspace.css +36 -0
  76. package/dist/collection/components/stzh-datalist/stzh-datalist.js +18 -18
  77. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.css +11 -0
  78. package/dist/collection/components/stzh-datalist-item/stzh-datalist-item.js +28 -1
  79. package/dist/collection/components/stzh-datamessagelist-item/stzh-datamessagelist-item.css +10 -0
  80. package/dist/collection/components/stzh-datatable/stzh-datatable.js +15 -12
  81. package/dist/collection/components/stzh-dialog/stzh-dialog.css +2 -2
  82. package/dist/collection/components/stzh-dialog/stzh-dialog.js +15 -12
  83. package/dist/collection/components/stzh-dropdown/stzh-dropdown.css +1 -1
  84. package/dist/collection/components/stzh-footer/stzh-footer.js +3 -1
  85. package/dist/collection/components/stzh-ghettobox/stzh-ghettobox.js +3 -1
  86. package/dist/collection/components/stzh-header/stzh-header.js +32 -45
  87. package/dist/collection/components/stzh-hspace/stzh-hspace.css +4 -0
  88. package/dist/collection/components/stzh-input/stzh-input.css +1 -1
  89. package/dist/collection/components/stzh-input/stzh-input.stories.js +12 -12
  90. package/dist/collection/components/stzh-invert/stzh-invert.css +4 -4
  91. package/dist/collection/components/stzh-link/stzh-link.css +11 -0
  92. package/dist/collection/components/stzh-link/stzh-link.js +68 -3
  93. package/dist/collection/components/stzh-loader/stzh-loader.css +4 -4
  94. package/dist/collection/components/stzh-menu-item/stzh-menu-item.js +27 -27
  95. package/dist/collection/components/stzh-metanav/stzh-metanav.js +3 -1
  96. package/dist/collection/components/stzh-microsite-teaserlist/stzh-microsite-teaserlist.js +1 -1
  97. package/dist/collection/components/stzh-page-skiplinks/stzh-page-skiplinks.js +3 -1
  98. package/dist/collection/components/stzh-pagetitle/stzh-pagetitle.js +3 -1
  99. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.css +4 -4
  100. package/dist/collection/components/stzh-pagetitle-hero/stzh-pagetitle-hero.js +3 -1
  101. package/dist/collection/components/stzh-popover/stzh-popover.css +3 -3
  102. package/dist/collection/components/stzh-portal-mitwirken/stzh-portal-mitwirken.css +118 -12
  103. package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.js +3 -1
  104. package/dist/collection/components/stzh-readspeaker/stzh-readspeaker.js +3 -1
  105. package/dist/collection/components/stzh-richtext/stzh-richtext.css +14 -3
  106. package/dist/collection/components/stzh-richtext/stzh-richtext.js +32 -0
  107. package/dist/collection/components/stzh-sortable/stzh-sortable.css +1 -1
  108. package/dist/collection/components/stzh-sortable/stzh-sortable.js +3 -1
  109. package/dist/collection/components/stzh-space/stzh-space.css +4 -0
  110. package/dist/collection/components/stzh-sticky/stzh-sticky.js +3 -1
  111. package/dist/collection/components/stzh-table/stzh-table.js +14 -13
  112. package/dist/collection/components/stzh-vbz-ticker/stzh-vbz-ticker.js +16 -11
  113. package/dist/collection/components/stzh-vspace/stzh-vspace.css +4 -0
  114. package/dist/collection/global/js/script.js +2 -0
  115. package/dist/components/_commonjsHelpers.js +1 -16
  116. package/dist/components/index.d.ts +1 -0
  117. package/dist/components/index.js +835 -1
  118. package/dist/components/stzh-actions.js +3 -1
  119. package/dist/components/stzh-actionset2.js +12 -7
  120. package/dist/components/stzh-appnav.js +3 -1
  121. package/dist/components/stzh-button2.js +23 -8
  122. package/dist/components/stzh-calendar2.js +1 -1
  123. package/dist/components/stzh-card2.js +37 -29
  124. package/dist/components/stzh-carousel.d.ts +11 -0
  125. package/dist/components/stzh-carousel.js +568 -0
  126. package/dist/components/stzh-chart.js +5995 -5168
  127. package/dist/components/stzh-checkboxgroup.js +3 -1
  128. package/dist/components/stzh-chip-select2.js +21 -9
  129. package/dist/components/stzh-chip2.js +19 -6
  130. package/dist/components/stzh-clamp2.js +110 -11
  131. package/dist/components/stzh-cspace.js +1 -1
  132. package/dist/components/stzh-datalist-item2.js +10 -2
  133. package/dist/components/stzh-datalist2.js +3 -3
  134. package/dist/components/stzh-datamessagelist-item.js +17 -11
  135. package/dist/components/stzh-datatable.js +16 -4
  136. package/dist/components/stzh-dialog.js +16 -13
  137. package/dist/components/stzh-dropdown2.js +1 -1
  138. package/dist/components/stzh-footer.js +3 -1
  139. package/dist/components/stzh-ghettobox2.js +3 -1
  140. package/dist/components/stzh-header.js +33 -28
  141. package/dist/components/stzh-hspace.js +1 -1
  142. package/dist/components/stzh-input2.js +1 -1
  143. package/dist/components/stzh-invert.js +1 -1
  144. package/dist/components/stzh-link2.js +18 -4
  145. package/dist/components/stzh-loader2.js +1 -1
  146. package/dist/components/stzh-menu-item2.js +4 -4
  147. package/dist/components/stzh-metanav.js +3 -1
  148. package/dist/components/stzh-microsite-teaserlist.js +1 -1
  149. package/dist/components/stzh-page-skiplinks.js +3 -1
  150. package/dist/components/stzh-pagetitle-hero.js +4 -2
  151. package/dist/components/stzh-pagetitle.js +3 -1
  152. package/dist/components/stzh-popover2.js +1 -1
  153. package/dist/components/stzh-portal-mitwirken.js +1 -1
  154. package/dist/components/stzh-radiogroup2.js +3 -1
  155. package/dist/components/stzh-readspeaker.js +3 -1
  156. package/dist/components/stzh-richtext2.js +14 -1
  157. package/dist/components/stzh-sortable2.js +4 -2
  158. package/dist/components/stzh-space.js +1 -1
  159. package/dist/components/stzh-sticky.js +3 -1
  160. package/dist/components/stzh-table.js +15 -5
  161. package/dist/components/stzh-upload.js +1 -1
  162. package/dist/components/stzh-vbz-ticker.js +16 -11
  163. package/dist/components/stzh-vspace.js +1 -1
  164. package/dist/esm/{_commonjsHelpers-f9dc4873.js → _commonjsHelpers-ba3f0406.js} +1 -16
  165. package/dist/esm/app-globals-62e1178d.js +887 -0
  166. package/dist/esm/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
  167. package/dist/esm/loader.js +2 -2
  168. package/dist/esm/stzh-actions.entry.js +3 -1
  169. package/dist/esm/stzh-actionset.entry.js +11 -6
  170. package/dist/esm/stzh-appnav.entry.js +3 -1
  171. package/dist/esm/stzh-badge_3.entry.js +20 -8
  172. package/dist/esm/stzh-calendar.entry.js +1 -1
  173. package/dist/esm/stzh-card_3.entry.js +36 -29
  174. package/dist/esm/stzh-carousel.entry.js +518 -0
  175. package/dist/esm/stzh-chart.entry.js +5995 -5168
  176. package/dist/esm/stzh-checkboxgroup.entry.js +3 -1
  177. package/dist/esm/stzh-chip_2.entry.js +82 -5
  178. package/dist/esm/stzh-components.js +2 -2
  179. package/dist/esm/stzh-cspace.entry.js +1 -1
  180. package/dist/esm/stzh-datalist_2.entry.js +10 -3
  181. package/dist/esm/stzh-datamessagelist-item.entry.js +1 -1
  182. package/dist/esm/stzh-datatable.entry.js +16 -4
  183. package/dist/esm/stzh-datepicker_3.entry.js +3 -1
  184. package/dist/esm/stzh-dialog.entry.js +16 -13
  185. package/dist/esm/stzh-dropdown.entry.js +2 -2
  186. package/dist/esm/stzh-footer.entry.js +3 -1
  187. package/dist/esm/stzh-ghettobox_2.entry.js +17 -4
  188. package/dist/esm/stzh-header.entry.js +32 -27
  189. package/dist/esm/stzh-hspace.entry.js +1 -1
  190. package/dist/esm/stzh-input.entry.js +1 -1
  191. package/dist/esm/stzh-invert.entry.js +1 -1
  192. package/dist/esm/stzh-link.entry.js +15 -4
  193. package/dist/esm/stzh-loader.entry.js +1 -1
  194. package/dist/esm/stzh-menu_2.entry.js +2 -2
  195. package/dist/esm/stzh-message.entry.js +2 -2
  196. package/dist/esm/stzh-metanav.entry.js +3 -1
  197. package/dist/esm/stzh-microsite-teaserlist.entry.js +1 -1
  198. package/dist/esm/stzh-olmap.entry.js +1 -1
  199. package/dist/esm/stzh-page-skiplinks.entry.js +3 -1
  200. package/dist/esm/stzh-pagetitle-hero.entry.js +4 -2
  201. package/dist/esm/stzh-pagetitle.entry.js +3 -1
  202. package/dist/esm/stzh-popover.entry.js +1 -1
  203. package/dist/esm/stzh-portal-mitwirken.entry.js +1 -1
  204. package/dist/esm/stzh-readspeaker.entry.js +3 -1
  205. package/dist/esm/stzh-sortable.entry.js +4 -2
  206. package/dist/esm/stzh-space.entry.js +1 -1
  207. package/dist/esm/stzh-sticky.entry.js +3 -1
  208. package/dist/esm/stzh-table.entry.js +14 -4
  209. package/dist/esm/stzh-upload.entry.js +1 -1
  210. package/dist/esm/stzh-vbz-linechip.entry.js +1 -1
  211. package/dist/esm/stzh-vbz-ticker.entry.js +16 -11
  212. package/dist/esm/stzh-vspace.entry.js +1 -1
  213. package/dist/esm-es5/_commonjsHelpers-ba3f0406.js +1 -0
  214. package/dist/esm-es5/app-globals-62e1178d.js +1 -0
  215. package/dist/esm-es5/{js.cookie-53735b72.js → js.cookie-28a40640.js} +1 -1
  216. package/dist/esm-es5/loader.js +1 -1
  217. package/dist/esm-es5/stzh-actions.entry.js +1 -1
  218. package/dist/esm-es5/stzh-actionset.entry.js +1 -1
  219. package/dist/esm-es5/stzh-appnav.entry.js +1 -1
  220. package/dist/esm-es5/stzh-badge_3.entry.js +1 -1
  221. package/dist/esm-es5/stzh-calendar.entry.js +1 -1
  222. package/dist/esm-es5/stzh-card_3.entry.js +1 -1
  223. package/dist/esm-es5/stzh-carousel.entry.js +1 -0
  224. package/dist/esm-es5/stzh-chart.entry.js +3 -3
  225. package/dist/esm-es5/stzh-checkboxgroup.entry.js +1 -1
  226. package/dist/esm-es5/stzh-chip_2.entry.js +1 -1
  227. package/dist/esm-es5/stzh-components.js +1 -1
  228. package/dist/esm-es5/stzh-cspace.entry.js +1 -1
  229. package/dist/esm-es5/stzh-datalist_2.entry.js +1 -1
  230. package/dist/esm-es5/stzh-datamessagelist-item.entry.js +1 -1
  231. package/dist/esm-es5/stzh-datatable.entry.js +2 -2
  232. package/dist/esm-es5/stzh-datepicker_3.entry.js +1 -1
  233. package/dist/esm-es5/stzh-dialog.entry.js +1 -1
  234. package/dist/esm-es5/stzh-dropdown.entry.js +2 -2
  235. package/dist/esm-es5/stzh-footer.entry.js +1 -1
  236. package/dist/esm-es5/stzh-ghettobox_2.entry.js +1 -1
  237. package/dist/esm-es5/stzh-header.entry.js +1 -1
  238. package/dist/esm-es5/stzh-hspace.entry.js +1 -1
  239. package/dist/esm-es5/stzh-input.entry.js +1 -1
  240. package/dist/esm-es5/stzh-invert.entry.js +1 -1
  241. package/dist/esm-es5/stzh-link.entry.js +1 -1
  242. package/dist/esm-es5/stzh-loader.entry.js +1 -1
  243. package/dist/esm-es5/stzh-menu_2.entry.js +1 -1
  244. package/dist/esm-es5/stzh-message.entry.js +1 -1
  245. package/dist/esm-es5/stzh-metanav.entry.js +1 -1
  246. package/dist/esm-es5/stzh-microsite-teaserlist.entry.js +1 -1
  247. package/dist/esm-es5/stzh-olmap.entry.js +1 -1
  248. package/dist/esm-es5/stzh-page-skiplinks.entry.js +1 -1
  249. package/dist/esm-es5/stzh-pagetitle-hero.entry.js +1 -1
  250. package/dist/esm-es5/stzh-pagetitle.entry.js +1 -1
  251. package/dist/esm-es5/stzh-popover.entry.js +1 -1
  252. package/dist/esm-es5/stzh-portal-mitwirken.entry.js +1 -1
  253. package/dist/esm-es5/stzh-readspeaker.entry.js +1 -1
  254. package/dist/esm-es5/stzh-sortable.entry.js +2 -2
  255. package/dist/esm-es5/stzh-space.entry.js +1 -1
  256. package/dist/esm-es5/stzh-sticky.entry.js +1 -1
  257. package/dist/esm-es5/stzh-table.entry.js +1 -1
  258. package/dist/esm-es5/stzh-upload.entry.js +1 -1
  259. package/dist/esm-es5/stzh-vbz-linechip.entry.js +1 -1
  260. package/dist/esm-es5/stzh-vbz-ticker.entry.js +1 -1
  261. package/dist/esm-es5/stzh-vspace.entry.js +1 -1
  262. package/dist/stzh-components/assets/i18n/de.json +10 -0
  263. package/dist/stzh-components/assets/i18n/en.json +11 -1
  264. package/dist/stzh-components/p-0a408348.entry.js +1 -0
  265. package/dist/stzh-components/{p-ff328114.system.entry.js → p-0c779613.system.entry.js} +1 -1
  266. package/dist/stzh-components/{p-55752bd5.system.entry.js → p-0e690e3e.system.entry.js} +1 -1
  267. package/dist/stzh-components/p-10b4fedd.system.entry.js +1 -0
  268. package/dist/stzh-components/p-14729939.entry.js +1 -0
  269. package/dist/stzh-components/p-1494b502.entry.js +1 -0
  270. package/dist/stzh-components/p-14d5a56d.entry.js +1 -0
  271. package/dist/stzh-components/p-205f5111.system.entry.js +1 -0
  272. package/dist/stzh-components/{p-c8cc2563.system.entry.js → p-263fd0bb.system.entry.js} +1 -1
  273. package/dist/stzh-components/p-2ed20db5.entry.js +1 -0
  274. package/dist/stzh-components/p-322e74e9.system.entry.js +1 -0
  275. package/dist/stzh-components/p-353294ce.entry.js +1 -0
  276. package/dist/stzh-components/p-396697db.system.entry.js +1 -0
  277. package/dist/stzh-components/p-3a73b8b5.system.js +1 -0
  278. package/dist/stzh-components/p-3af95b5d.entry.js +1 -0
  279. package/dist/stzh-components/p-3e8ff66b.js +1 -0
  280. package/dist/stzh-components/p-3f80ce87.entry.js +1 -0
  281. package/dist/stzh-components/{p-c2f909c1.system.entry.js → p-3fc51ad1.system.entry.js} +1 -1
  282. package/dist/stzh-components/p-4453449f.entry.js +1 -0
  283. package/dist/stzh-components/{p-6a94e520.system.entry.js → p-454e50f8.system.entry.js} +1 -1
  284. package/dist/stzh-components/{p-d54ff4d4.system.entry.js → p-47175c6f.system.entry.js} +1 -1
  285. package/dist/stzh-components/p-48d40c7c.system.entry.js +1 -0
  286. package/dist/stzh-components/{p-5c72664e.system.entry.js → p-4acb6752.system.entry.js} +1 -1
  287. package/dist/stzh-components/{p-b1ffc2a9.system.entry.js → p-4b995fe4.system.entry.js} +1 -1
  288. package/dist/stzh-components/{p-be97cb22.entry.js → p-4da7ebff.entry.js} +1 -1
  289. package/dist/stzh-components/p-4f8085e5.entry.js +1 -0
  290. package/dist/stzh-components/{p-2f4448c9.system.entry.js → p-558f336d.system.entry.js} +1 -1
  291. package/dist/stzh-components/p-5a4aef52.entry.js +1 -0
  292. package/dist/stzh-components/{p-484a366f.system.js → p-5db542ae.system.js} +1 -1
  293. package/dist/stzh-components/{p-72a62d0d.system.entry.js → p-6659b6f6.system.entry.js} +1 -1
  294. package/dist/stzh-components/{p-f3276ca5.system.entry.js → p-6a109ce9.system.entry.js} +1 -1
  295. package/dist/stzh-components/{p-1a98470f.system.entry.js → p-6a26c9eb.system.entry.js} +1 -1
  296. package/dist/stzh-components/p-6bc7f44a.entry.js +1 -0
  297. package/dist/stzh-components/{p-02d51685.entry.js → p-6ee87986.entry.js} +1 -1
  298. package/dist/stzh-components/p-7ff1640c.entry.js +1 -0
  299. package/dist/stzh-components/{p-26889a91.entry.js → p-814e5ae7.entry.js} +2 -2
  300. package/dist/stzh-components/p-821ca4af.system.entry.js +1 -0
  301. package/dist/stzh-components/{p-2b67b0b3.system.entry.js → p-884793dd.system.entry.js} +2 -2
  302. package/dist/stzh-components/{p-a32ae73a.system.entry.js → p-88fbb2fc.system.entry.js} +2 -2
  303. package/dist/stzh-components/p-8b16550d.entry.js +1 -0
  304. package/dist/stzh-components/{p-963a7526.system.entry.js → p-8c371d1d.system.entry.js} +1 -1
  305. package/dist/stzh-components/p-8eda017e.entry.js +1 -0
  306. package/dist/stzh-components/p-949f7885.system.js +1 -0
  307. package/dist/stzh-components/{p-6adc5f0c.system.entry.js → p-95bfbf67.system.entry.js} +1 -1
  308. package/dist/stzh-components/p-99d85a97.entry.js +1 -0
  309. package/dist/stzh-components/p-9a94b249.system.entry.js +1 -0
  310. package/dist/stzh-components/{p-32a03d1c.entry.js → p-9ed30a9f.entry.js} +1 -1
  311. package/dist/stzh-components/{p-febba79b.entry.js → p-9f29e6c3.entry.js} +1 -1
  312. package/dist/stzh-components/{p-67816aa4.entry.js → p-a0b2739a.entry.js} +1 -1
  313. package/dist/stzh-components/p-a2121744.system.entry.js +1 -0
  314. package/dist/stzh-components/p-a22ac109.entry.js +1 -0
  315. package/dist/stzh-components/p-a3bf419d.entry.js +1 -0
  316. package/dist/stzh-components/{p-c9c7d88a.entry.js → p-a47e205f.entry.js} +1 -1
  317. package/dist/stzh-components/p-aa2c81e6.system.entry.js +3 -0
  318. package/dist/stzh-components/{p-088b16c6.system.entry.js → p-abf13db9.system.entry.js} +1 -1
  319. package/dist/stzh-components/p-ad96eb50.entry.js +1 -0
  320. package/dist/stzh-components/p-ae7255f6.entry.js +1 -0
  321. package/dist/stzh-components/p-af05718d.system.entry.js +1 -0
  322. package/dist/stzh-components/p-af9aac53.entry.js +3 -0
  323. package/dist/stzh-components/{p-24b8df26.js → p-b10682ee.js} +1 -1
  324. package/dist/stzh-components/p-b4c28bf5.entry.js +1 -0
  325. package/dist/stzh-components/p-b4db3558.js +1 -0
  326. package/dist/stzh-components/p-b61f7404.entry.js +1 -0
  327. package/dist/stzh-components/p-b9adebdc.entry.js +1 -0
  328. package/dist/stzh-components/{p-c4c620fa.system.entry.js → p-b9bd42e6.system.entry.js} +1 -1
  329. package/dist/stzh-components/p-b9f784e4.system.entry.js +1 -0
  330. package/dist/stzh-components/{p-b92734db.entry.js → p-bcfba21f.entry.js} +1 -1
  331. package/dist/stzh-components/p-bd1a5d6d.system.entry.js +1 -0
  332. package/dist/stzh-components/p-c457dad2.system.entry.js +1 -0
  333. package/dist/stzh-components/{p-f8feb07b.entry.js → p-c80a9d50.entry.js} +1 -1
  334. package/dist/stzh-components/p-c9940c35.entry.js +1 -0
  335. package/dist/stzh-components/p-cab1a192.entry.js +1 -0
  336. package/dist/stzh-components/p-cd59cead.system.js +1 -0
  337. package/dist/stzh-components/{p-102e2bcd.system.entry.js → p-cd979ce9.system.entry.js} +1 -1
  338. package/dist/stzh-components/{p-512c38b3.system.entry.js → p-ce5db779.system.entry.js} +1 -1
  339. package/dist/stzh-components/p-d29fd401.entry.js +1 -0
  340. package/dist/stzh-components/{p-7e4261ce.system.entry.js → p-d5514e5b.system.entry.js} +1 -1
  341. package/dist/stzh-components/{p-51b3a560.system.entry.js → p-d585e8fd.system.entry.js} +1 -1
  342. package/dist/stzh-components/p-d5994419.system.entry.js +1 -0
  343. package/dist/stzh-components/p-d6e5f396.system.entry.js +1 -0
  344. package/dist/stzh-components/{p-444b2baf.entry.js → p-e085a0a0.entry.js} +1 -1
  345. package/dist/stzh-components/p-e1501622.system.entry.js +1 -0
  346. package/dist/stzh-components/p-e2d80ee3.entry.js +1 -0
  347. package/dist/stzh-components/p-e4aa12ba.system.entry.js +1 -0
  348. package/dist/stzh-components/p-e54f66ea.system.entry.js +1 -0
  349. package/dist/stzh-components/{p-d9ae09b5.entry.js → p-eb16ad0d.entry.js} +2 -2
  350. package/dist/stzh-components/p-eb1ea7f0.entry.js +1 -0
  351. package/dist/stzh-components/{p-e1b2785b.entry.js → p-ec87506f.entry.js} +1 -1
  352. package/dist/stzh-components/{p-309fc559.system.entry.js → p-ee20b95b.system.entry.js} +1 -1
  353. package/dist/stzh-components/p-f122e15d.system.entry.js +1 -0
  354. package/dist/stzh-components/{p-809ed955.system.entry.js → p-f27d1a06.system.entry.js} +1 -1
  355. package/dist/stzh-components/p-f449f909.entry.js +1 -0
  356. package/dist/stzh-components/{p-af67ea5e.entry.js → p-f4c0d928.entry.js} +1 -1
  357. package/dist/stzh-components/p-f725921a.entry.js +1 -0
  358. package/dist/stzh-components/p-fe1c8047.system.entry.js +1 -0
  359. package/dist/stzh-components/stzh-components.css +1 -1
  360. package/dist/stzh-components/stzh-components.esm.js +1 -1
  361. package/dist/stzh-components/stzh-components.js +1 -1
  362. package/dist/types/components/stzh-carousel/stzh-carousel.localization.d.ts +5 -0
  363. package/dist/types/components/stzh-clamp/stzh-clamp.localization.d.ts +5 -0
  364. package/dist/types/components.d.ts +250 -2
  365. package/dist/types/index.d.ts +20 -0
  366. package/dist/types/utils/translation-utils.d.ts +2 -0
  367. package/dist/vscode-data.json +106 -17
  368. package/package.json +6 -4
  369. package/dist/cjs/app-globals-57922fc2.js +0 -56
  370. package/dist/esm/app-globals-b848652e.js +0 -54
  371. package/dist/esm-es5/_commonjsHelpers-f9dc4873.js +0 -1
  372. package/dist/esm-es5/app-globals-b848652e.js +0 -1
  373. package/dist/stzh-components/p-07dc23a3.system.entry.js +0 -1
  374. package/dist/stzh-components/p-0ba944ab.entry.js +0 -1
  375. package/dist/stzh-components/p-12856e02.system.entry.js +0 -1
  376. package/dist/stzh-components/p-16c0b9ae.entry.js +0 -3
  377. package/dist/stzh-components/p-18e20038.entry.js +0 -1
  378. package/dist/stzh-components/p-1bcda13d.system.entry.js +0 -1
  379. package/dist/stzh-components/p-1d435dd8.system.entry.js +0 -1
  380. package/dist/stzh-components/p-1f74846f.entry.js +0 -1
  381. package/dist/stzh-components/p-29e9ad9f.system.entry.js +0 -1
  382. package/dist/stzh-components/p-30a9de85.system.entry.js +0 -1
  383. package/dist/stzh-components/p-37920e74.system.entry.js +0 -1
  384. package/dist/stzh-components/p-4633b93d.entry.js +0 -1
  385. package/dist/stzh-components/p-4c60da30.entry.js +0 -1
  386. package/dist/stzh-components/p-4eee30ea.system.entry.js +0 -1
  387. package/dist/stzh-components/p-532b4218.entry.js +0 -1
  388. package/dist/stzh-components/p-5d55a672.system.entry.js +0 -1
  389. package/dist/stzh-components/p-64cdef2f.entry.js +0 -1
  390. package/dist/stzh-components/p-65918f6f.system.js +0 -1
  391. package/dist/stzh-components/p-761ee059.entry.js +0 -1
  392. package/dist/stzh-components/p-798ac79c.entry.js +0 -1
  393. package/dist/stzh-components/p-7f857e56.entry.js +0 -1
  394. package/dist/stzh-components/p-84a6e023.system.entry.js +0 -1
  395. package/dist/stzh-components/p-89bd0d46.entry.js +0 -1
  396. package/dist/stzh-components/p-8caafed2.system.entry.js +0 -1
  397. package/dist/stzh-components/p-923dffc7.entry.js +0 -1
  398. package/dist/stzh-components/p-94662bed.system.js +0 -1
  399. package/dist/stzh-components/p-951b04ab.entry.js +0 -1
  400. package/dist/stzh-components/p-990f395b.entry.js +0 -1
  401. package/dist/stzh-components/p-99b82949.entry.js +0 -1
  402. package/dist/stzh-components/p-9be21c72.entry.js +0 -1
  403. package/dist/stzh-components/p-9c35c9cd.entry.js +0 -1
  404. package/dist/stzh-components/p-9c90535a.system.js +0 -1
  405. package/dist/stzh-components/p-9de8b25b.entry.js +0 -1
  406. package/dist/stzh-components/p-a11ef2d6.system.entry.js +0 -1
  407. package/dist/stzh-components/p-a691fe87.js +0 -1
  408. package/dist/stzh-components/p-a6be6aca.system.entry.js +0 -1
  409. package/dist/stzh-components/p-a6d4a8b1.js +0 -1
  410. package/dist/stzh-components/p-a7eb3e02.system.entry.js +0 -1
  411. package/dist/stzh-components/p-ae38f1d2.entry.js +0 -1
  412. package/dist/stzh-components/p-b04a9d0f.system.entry.js +0 -1
  413. package/dist/stzh-components/p-b422041d.entry.js +0 -1
  414. package/dist/stzh-components/p-b9372a2a.entry.js +0 -1
  415. package/dist/stzh-components/p-bb698e26.entry.js +0 -1
  416. package/dist/stzh-components/p-bc545121.entry.js +0 -1
  417. package/dist/stzh-components/p-c2a22eb8.entry.js +0 -1
  418. package/dist/stzh-components/p-cc722b35.system.entry.js +0 -3
  419. package/dist/stzh-components/p-d1cfe06b.entry.js +0 -1
  420. package/dist/stzh-components/p-d943e02c.system.entry.js +0 -1
  421. package/dist/stzh-components/p-db306e24.entry.js +0 -1
  422. package/dist/stzh-components/p-e4a8f1bc.system.entry.js +0 -1
  423. package/dist/stzh-components/p-ed783154.system.entry.js +0 -1
  424. package/dist/stzh-components/p-ee4b939a.entry.js +0 -1
  425. package/dist/stzh-components/p-f0e2a32d.entry.js +0 -1
  426. package/dist/stzh-components/p-fd15cc86.entry.js +0 -1
  427. package/dist/types/components/stzh-clamp/stzh-clamp.d.ts +0 -16
@@ -1,4 +1,4 @@
1
- import{r as t,e as o,h as e,c as r,g as s}from"./p-99a3742a.js";import{h as i}from"./p-5c697491.js";import{f as n}from"./p-25a09313.js";import{S as l}from"./p-7f0fb35c.js";import{c as a,b as d}from"./p-a6d4a8b1.js";var h=a((function(t){t.exports=function(){function t(t,o){t.split(/\s+/).forEach((t=>{o(t)}))}class o{constructor(){this._events=void 0,this._events={}}on(o,e){t(o,(t=>{const o=this._events[t]||[];o.push(e),this._events[t]=o}))}off(o,e){var r=arguments.length;0!==r?t(o,(t=>{if(1===r)return void delete this._events[t];const o=this._events[t];void 0!==o&&(o.splice(o.indexOf(e),1),this._events[t]=o)})):this._events={}}trigger(o,...e){var r=this;t(o,(t=>{const o=r._events[t];void 0!==o&&o.forEach((t=>{t.apply(r,e)}))}))}}
1
+ import{r as t,e as o,h as e,c as r,g as s}from"./p-99a3742a.js";import{h as i}from"./p-5c697491.js";import{f as n}from"./p-25a09313.js";import{S as l}from"./p-7f0fb35c.js";import{c as a,a as d}from"./p-3e8ff66b.js";var h=a((function(t){t.exports=function(){function t(t,o){t.split(/\s+/).forEach((t=>{o(t)}))}class o{constructor(){this._events=void 0,this._events={}}on(o,e){t(o,(t=>{const o=this._events[t]||[];o.push(e),this._events[t]=o}))}off(o,e){var r=arguments.length;0!==r?t(o,(t=>{if(1===r)return void delete this._events[t];const o=this._events[t];void 0!==o&&(o.splice(o.indexOf(e),1),this._events[t]=o)})):this._events={}}trigger(o,...e){var r=this;t(o,(t=>{const o=r._events[t];void 0!==o&&o.forEach((t=>{t.apply(r,e)}))}))}}
2
2
  /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
3
3
  const e=t=>(t=t.filter(Boolean)).length<2?t[0]||"":1==l(t)?"["+t.join("")+"]":"(?:"+t.join("|")+")",r=t=>{if(!i(t))return t.join("");let o="",e=0;const r=()=>{e>1&&(o+="{"+e+"}")};return t.forEach(((s,i)=>{s!==t[i-1]?(r(),o+=s,e=1):e++})),r(),o},s=t=>{let o=d(t);return e(o)},i=t=>new Set(t).size!==t.length,n=t=>(t+"").replace(/([\$\(\)\*\+\.\?\[\]\^\{\|\}\\])/gu,"\\$1"),l=t=>t.reduce(((t,o)=>Math.max(t,a(o))),0),a=t=>d(t).length,d=t=>Array.from(t)
4
4
  /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */,h=t=>{if(1===t.length)return[[t]];let o=[];const e=t.substring(1);return h(e).forEach((function(e){let r=e.slice(0);r[0]=t.charAt(0)+r[0],o.push(r),r=e.slice(0),r.unshift(t.charAt(0)),o.push(r)})),o},p=[[0,65535]];let c,u;const z={},v={"/":"⁄∕",0:"߀",a:"ⱥɐɑ",aa:"ꜳ",ae:"æǽǣ",ao:"ꜵ",au:"ꜷ",av:"ꜹꜻ",ay:"ꜽ",b:"ƀɓƃ",c:"ꜿƈȼↄ",d:"đɗɖᴅƌꮷԁɦ",e:"ɛǝᴇɇ",f:"ꝼƒ",g:"ǥɠꞡᵹꝿɢ",h:"ħⱨⱶɥ",i:"ɨı",j:"ɉȷ",k:"ƙⱪꝁꝃꝅꞣ",l:"łƚɫⱡꝉꝇꞁɭ",m:"ɱɯϻ",n:"ꞥƞɲꞑᴎлԉ",o:"øǿɔɵꝋꝍᴑ",oe:"œ",oi:"ƣ",oo:"ꝏ",ou:"ȣ",p:"ƥᵽꝑꝓꝕρ",q:"ꝗꝙɋ",r:"ɍɽꝛꞧꞃ",s:"ßȿꞩꞅʂ",t:"ŧƭʈⱦꞇ",th:"þ",tz:"ꜩ",u:"ʉ",v:"ʋꝟʌ",vy:"ꝡ",w:"ⱳ",y:"ƴɏỿ",z:"ƶȥɀⱬꝣ",hv:"ƕ"};for(let pt in v){let t=v[pt]||"";for(let o=0;o<t.length;o++){let e=t.substring(o,o+1);z[e]=pt}}const m=new RegExp(Object.keys(z).join("|")+"|[̀-ͯ·ʾʼ]","gu"),w=(t,o="NFKD")=>t.normalize(o),f=t=>d(t).reduce(((t,o)=>t+_(o)),""),_=t=>(t=w(t).toLowerCase().replace(m,(t=>z[t]||"")),w(t,"NFC"));const g=t=>{const o={},e=(t,e)=>{const r=o[t]||new Set,i=new RegExp("^"+s(r)+"$","iu");e.match(i)||(r.add(n(e)),o[t]=r)};for(let r of function*(t){for(const[o,e]of t)for(let t=o;t<=e;t++){let o=String.fromCharCode(t),e=f(o);e!=o.toLowerCase()&&(e.length>3||0!=e.length&&(yield{folded:e,composed:o,code_point:t}))}}(t))e(r.folded,r.folded),e(r.folded,r.composed);return o},b=t=>{const o=g(t),r={};let i=[];for(let e in o){let t=o[e];t&&(r[e]=s(t)),e.length>1&&i.push(n(e))}i.sort(((t,o)=>o.length-t.length));const l=e(i);return u=new RegExp("^"+l,"u"),r},y=(t,o=1)=>(o=Math.max(o,t.length-1),e(h(t).map((t=>((t,o=1)=>{let e=0;return t=t.map((t=>(c[t]&&(e+=t.length),c[t]||t))),e>=o?r(t):""})(t,o))))),x=(t,o=!0)=>{let s=t.length>1?1:0;return e(t.map((t=>{let e=[];const i=o?t.length():t.length()-1;for(let o=0;o<i;o++)e.push(y(t.substrs[o]||"",s));return r(e)})))},k=(t,o)=>{for(const e of o){if(e.start!=t.start||e.end!=t.end)continue;if(e.substrs.join("")!==t.substrs.join(""))continue;let o=t.parts;if(!(e.parts.filter((t=>{for(const e of o){if(e.start===t.start&&e.substr===t.substr)return!1;if(1!=t.length&&1!=e.length){if(t.start<e.start&&t.end>e.start)return!0;if(e.start<t.start&&e.end>t.start)return!0}}return!1})).length>0))return!0}return!1};class O{constructor(){this.parts=[],this.substrs=[],this.start=0,this.end=0}add(t){t&&(this.parts.push(t),this.substrs.push(t.substr),this.start=Math.min(t.start,this.start),this.end=Math.max(t.end,this.end))}last(){return this.parts[this.parts.length-1]}length(){return this.parts.length}clone(t,o){let e=new O,r=JSON.parse(JSON.stringify(this.parts)),s=r.pop();for(const l of r)e.add(l);let i=o.substr.substring(0,t-s.start),n=i.length;return e.add({start:s.start,end:s.start+n,length:n,substr:i}),e}}const S=t=>{var o;void 0===c&&(c=b(o||p)),t=f(t);let e="",r=[new O];for(let s=0;s<t.length;s++){let o=t.substring(s).match(u);const i=t.substring(s,s+1),n=o?o[0]:null;let l=[],a=new Set;for(const t of r){const o=t.last();if(!o||1==o.length||o.end<=s)if(n){const o=n.length;t.add({start:s,end:s+o,length:o,substr:n}),a.add("1")}else t.add({start:s,end:s+1,length:1,substr:i}),a.add("2");else if(n){let e=t.clone(s,o);const r=n.length;e.add({start:s,end:s+r,length:r,substr:n}),l.push(e)}else a.add("3")}if(l.length>0){l=l.sort(((t,o)=>t.length()-o.length()));for(let t of l)k(t,r)||r.push(t)}else if(s>0&&1==a.size&&!a.has("3")){e+=x(r,!1);let t=new O;const o=r[0];o&&t.add(o.last()),r=[t]}}return e+=x(r,!0),e},F=(t,o)=>{if(t)return t[o]},A=(t,o)=>{if(t){for(var e,r=o.split(".");(e=r.shift())&&(t=t[e]););return t}},C=(t,o,e)=>{var r,s;return t?null==o.regex||-1===(s=(t+="").search(o.regex))?0:(r=o.string.length/t.length,0===s&&(r+=.5),r*e):0},I=(t,o)=>{var e=t[o];if("function"==typeof e)return e;e&&!Array.isArray(e)&&(t[o]=[e])},j=(t,o)=>{if(Array.isArray(t))t.forEach(o);else for(var e in t)t.hasOwnProperty(e)&&o(t[e],e)},$=(t,o)=>"number"==typeof t&&"number"==typeof o?t>o?1:t<o?-1:0:(t=f(t+"").toLowerCase())>(o=f(o+"").toLowerCase())?1:o>t?-1:0;
@@ -6,4 +6,4 @@ const e=t=>(t=t.filter(Boolean)).length<2?t[0]||"":1==l(t)?"["+t.join("")+"]":"(
6
6
  /*! sifter.js | https://github.com/orchidjs/sifter.js | Apache License (v2) */
7
7
  class E{constructor(t,o){this.items=void 0,this.settings=void 0,this.items=t,this.settings=o||{diacritics:!0}}tokenize(t,o,e){if(!t||!t.length)return[];const r=[],s=t.split(/\s+/);var i;return e&&(i=new RegExp("^("+Object.keys(e).map(n).join("|")+"):(.*)$")),s.forEach((t=>{let e,s=null,l=null;i&&(e=t.match(i))&&(s=e[1],t=e[2]),t.length>0&&(l=this.settings.diacritics?S(t)||null:n(t),l&&o&&(l="\\b"+l)),r.push({string:t,regex:l?new RegExp(l,"iu"):null,field:s})})),r}getScoreFunction(t,o){var e=this.prepareSearch(t,o);return this._getScoreFunction(e)}_getScoreFunction(t){const o=t.tokens,e=o.length;if(!e)return function(){return 0};const r=t.options.fields,s=t.weights,i=r.length,n=t.getAttrFn;if(!i)return function(){return 1};const l=1===i?function(t,o){const e=r[0].field;return C(n(o,e),t,s[e]||1)}:function(t,o){var e=0;if(t.field){const r=n(o,t.field);e+=!t.regex&&r?1/i:C(r,t,1)}else j(s,((r,s)=>{e+=C(n(o,s),t,r)}));return e/i};return 1===e?function(t){return l(o[0],t)}:"and"===t.options.conjunction?function(t){var r,s=0;for(let e of o){if((r=l(e,t))<=0)return 0;s+=r}return s/e}:function(t){var r=0;return j(o,(o=>{r+=l(o,t)})),r/e}}getSortFunction(t,o){var e=this.prepareSearch(t,o);return this._getSortFunction(e)}_getSortFunction(t){var o,e=[];const r=this,s=t.options,i=!t.query&&s.sort_empty?s.sort_empty:s.sort;if("function"==typeof i)return i.bind(this);const n=function(o,e){return"$score"===o?e.score:t.getAttrFn(r.items[e.id],o)};if(i)for(let l of i)(t.query||"$score"!==l.field)&&e.push(l);if(t.query){o=!0;for(let t of e)if("$score"===t.field){o=!1;break}o&&e.unshift({field:"$score",direction:"desc"})}else e=e.filter((t=>"$score"!==t.field));return e.length?function(t,o){var r,s;for(let i of e)if(r=("desc"===i.direction?-1:1)*$(n(s=i.field,t),n(s,o)))return r;return 0}:null}prepareSearch(t,o){const e={};var r=Object.assign({},o);if(I(r,"sort"),I(r,"sort_empty"),r.fields){I(r,"fields");const t=[];r.fields.forEach((o=>{"string"==typeof o&&(o={field:o,weight:1}),t.push(o),e[o.field]="weight"in o?o.weight:1})),r.fields=t}return{options:r,query:t.toLowerCase().trim(),tokens:this.tokenize(t,r.respect_word_boundaries,e),total:0,items:[],weights:e,getAttrFn:r.nesting?A:F}}search(t,o){var e,r,s=this;t=(r=this.prepareSearch(t,o)).query;const i=(o=r.options).score||s._getScoreFunction(r);j(s.items,t.length?(t,s)=>{e=i(t),(!1===o.filter||e>0)&&r.items.push({score:e,id:s})}:(t,o)=>{r.items.push({score:1,id:o})});const n=s._getSortFunction(r);return n&&r.items.sort(n),r.total=r.items.length,"number"==typeof o.limit&&(r.items=r.items.slice(0,o.limit)),r}}const T=(t,o)=>{if(Array.isArray(t))t.forEach(o);else for(var e in t)t.hasOwnProperty(e)&&o(t[e],e)},L=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(R(t)){var o=document.createElement("template");return o.innerHTML=t.trim(),o.content.firstChild}return document.querySelector(t)},R=t=>"string"==typeof t&&t.indexOf("<")>-1,M=(t,o)=>{var e=document.createEvent("HTMLEvents");e.initEvent(o,!0,!1),t.dispatchEvent(e)},N=(t,o)=>{Object.assign(t.style,o)},W=(t,...o)=>{var e=q(o);(t=P(t)).map((t=>{e.map((o=>{t.classList.add(o)}))}))},D=(t,...o)=>{var e=q(o);(t=P(t)).map((t=>{e.map((o=>{t.classList.remove(o)}))}))},q=t=>{var o=[];return T(t,(t=>{"string"==typeof t&&(t=t.trim().split(/[\11\12\14\15\40]/)),Array.isArray(t)&&(o=o.concat(t))})),o.filter(Boolean)},P=t=>(Array.isArray(t)||(t=[t]),t),V=(t,o,e)=>{if(!e||e.contains(t))for(;t&&t.matches;){if(t.matches(o))return t;t=t.parentNode}},J=(t,o=0)=>o>0?t[t.length-1]:t[0],B=(t,o)=>{if(!t)return-1;o=o||t.nodeName;for(var e=0;t=t.previousElementSibling;)t.matches(o)&&e++;return e},H=(t,o)=>{T(o,((o,e)=>{null==o?t.removeAttribute(e):t.setAttribute(e,""+o)}))},K=(t,o)=>{t.parentNode&&t.parentNode.replaceChild(o,t)},G=(t,o)=>{if(null===o)return;if("string"==typeof o){if(!o.length)return;o=new RegExp(o,"i")}const e=t=>3===t.nodeType?(t=>{var e=t.data.match(o);if(e&&t.data.length>0){var r=document.createElement("span");r.className="highlight";var s=t.splitText(e.index);s.splitText(e[0].length);var i=s.cloneNode(!0);return r.appendChild(i),K(s,r),1}return 0})(t):((t=>{1!==t.nodeType||!t.childNodes||/(script|style)/i.test(t.tagName)||"highlight"===t.className&&"SPAN"===t.tagName||Array.from(t.childNodes).forEach((t=>{e(t)}))})(t),0);e(t)},Y="undefined"!=typeof navigator&&/Mac/.test(navigator.userAgent)?"metaKey":"ctrlKey";var U={options:[],optgroups:[],plugins:[],delimiter:",",splitOn:null,persist:!0,diacritics:!0,create:null,createOnBlur:!1,createFilter:null,highlight:!0,openOnFocus:!0,shouldOpen:null,maxOptions:50,maxItems:null,hideSelected:null,duplicates:!1,addPrecedence:!1,selectOnTab:!1,preload:null,allowEmptyOption:!1,loadThrottle:300,loadingClass:"loading",dataAttr:null,optgroupField:"optgroup",valueField:"value",labelField:"text",disabledField:"disabled",optgroupLabelField:"label",optgroupValueField:"value",lockOptgroupOrder:!1,sortField:"$order",searchField:["text"],searchConjunction:"and",mode:null,wrapperClass:"ts-wrapper",controlClass:"ts-control",dropdownClass:"ts-dropdown",dropdownContentClass:"ts-dropdown-content",itemClass:"item",optionClass:"option",dropdownParent:null,controlInput:'<input type="text" autocomplete="off" size="1" />',copyClassesToDropdown:!1,placeholder:null,hidePlaceholder:null,shouldLoad:function(t){return t.length>0},render:{}};const Q=t=>null==t?null:X(t),X=t=>"boolean"==typeof t?t?"1":"0":t+"",Z=t=>(t+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;"),tt=(t,o)=>{var e;return function(r,s){var i=this;e&&(i.loading=Math.max(i.loading-1,0),clearTimeout(e)),e=setTimeout((function(){e=null,i.loadedSearches[r]=!0,t.call(i,r,s)}),o)}},ot=(t,o,e)=>{var r,s=t.trigger,i={};for(r of(t.trigger=function(){var e=arguments[0];if(-1===o.indexOf(e))return s.apply(t,arguments);i[e]=arguments},e.apply(t,[]),t.trigger=s,o))r in i&&s.apply(t,i[r])},et=(t,o=!1)=>{t&&(t.preventDefault(),o&&t.stopPropagation())},rt=(t,o,e,r)=>{t.addEventListener(o,e,r)},st=(t,o)=>!!o&&!!o[t]&&1==(o.altKey?1:0)+(o.ctrlKey?1:0)+(o.shiftKey?1:0)+(o.metaKey?1:0),it=(t,o)=>t.getAttribute("id")||(t.setAttribute("id",o),o),nt=t=>t.replace(/[\\"']/g,"\\$&"),lt=(t,o)=>{o&&t.append(o)};function at(t,o){var e=Object.assign({},U,o),r=e.dataAttr,s=e.labelField,i=e.valueField,n=e.disabledField,l=e.optgroupField,a=e.optgroupLabelField,d=e.optgroupValueField,h=t.tagName.toLowerCase(),p=t.getAttribute("placeholder")||t.getAttribute("data-placeholder");if(!p&&!e.allowEmptyOption){let o=t.querySelector('option[value=""]');o&&(p=o.textContent)}var c,u,z,v,m,w,f,_={placeholder:p,options:[],optgroups:[],items:[],maxItems:null};return"select"===h?(u=_.options,z={},v=1,m=t=>{var o=Object.assign({},t.dataset),e=r&&o[r];return"string"==typeof e&&e.length&&(o=Object.assign(o,JSON.parse(e))),o},w=(t,o)=>{var r=Q(t.value);if(null!=r&&(r||e.allowEmptyOption)){if(z.hasOwnProperty(r)){if(o){var a=z[r][l];a?Array.isArray(a)?a.push(o):z[r][l]=[a,o]:z[r][l]=o}}else{var d=m(t);d[s]=d[s]||t.textContent,d[i]=d[i]||r,d[n]=d[n]||t.disabled,d[l]=d[l]||o,d.$option=t,z[r]=d,u.push(d)}t.selected&&_.items.push(r)}},f=t=>{var o,e;(e=m(t))[a]=e[a]||t.getAttribute("label")||"",e[d]=e[d]||v++,e[n]=e[n]||t.disabled,_.optgroups.push(e),o=e[d],T(t.children,(t=>{w(t,o)}))},_.maxItems=t.hasAttribute("multiple")?null:1,T(t.children,(t=>{"optgroup"===(c=t.tagName.toLowerCase())?f(t):"option"===c&&w(t)}))):(()=>{const o=t.getAttribute(r);if(o)_.options=JSON.parse(o),T(_.options,(t=>{_.items.push(t[i])}));else{var n=t.value.trim()||"";if(!e.allowEmptyOption&&!n.length)return;const o=n.split(e.delimiter);T(o,(t=>{const o={};o[s]=t,o[i]=t,_.options.push(o)})),_.items=o}})(),Object.assign({},U,_,o)}var dt=0;class ht extends(function(t){return t.plugins={},class extends t{constructor(...t){super(...t),this.plugins={names:[],settings:{},requested:{},loaded:{}}}static define(o,e){t.plugins[o]={name:o,fn:e}}initializePlugins(t){var o,e;const r=this,s=[];if(Array.isArray(t))t.forEach((t=>{"string"==typeof t?s.push(t):(r.plugins.settings[t.name]=t.options,s.push(t.name))}));else if(t)for(o in t)t.hasOwnProperty(o)&&(r.plugins.settings[o]=t[o],s.push(o));for(;e=s.shift();)r.require(e)}loadPlugin(o){var e=this,r=e.plugins,s=t.plugins[o];if(!t.plugins.hasOwnProperty(o))throw new Error('Unable to find "'+o+'" plugin');r.requested[o]=!0,r.loaded[o]=s.fn.apply(e,[e.plugins.settings[o]||{}]),r.names.push(o)}require(t){var o=this,e=o.plugins;if(!o.plugins.loaded.hasOwnProperty(t)){if(e.requested[t])throw new Error('Plugin has circular dependency ("'+t+'")');o.loadPlugin(t)}return e.loaded[t]}}}(o)){constructor(t,o){var e;super(),this.control_input=void 0,this.wrapper=void 0,this.dropdown=void 0,this.control=void 0,this.dropdown_content=void 0,this.focus_node=void 0,this.order=0,this.settings=void 0,this.input=void 0,this.tabIndex=void 0,this.is_select_tag=void 0,this.rtl=void 0,this.inputId=void 0,this._destroy=void 0,this.sifter=void 0,this.isOpen=!1,this.isDisabled=!1,this.isRequired=void 0,this.isInvalid=!1,this.isValid=!0,this.isLocked=!1,this.isFocused=!1,this.isInputHidden=!1,this.isSetup=!1,this.ignoreFocus=!1,this.ignoreHover=!1,this.hasOptions=!1,this.currentResults=void 0,this.lastValue="",this.caretPos=0,this.loading=0,this.loadedSearches={},this.activeOption=null,this.activeItems=[],this.optgroups={},this.options={},this.userOptions={},this.items=[],dt++;var r=L(t);if(r.tomselect)throw new Error("Tom Select already initialized on this element");r.tomselect=this,e=(window.getComputedStyle&&window.getComputedStyle(r,null)).getPropertyValue("direction");const s=at(r,o);this.settings=s,this.input=r,this.tabIndex=r.tabIndex||0,this.is_select_tag="select"===r.tagName.toLowerCase(),this.rtl=/rtl/i.test(e),this.inputId=it(r,"tomselect-"+dt),this.isRequired=r.required,this.sifter=new E(this.options,{diacritics:s.diacritics}),s.mode=s.mode||(1===s.maxItems?"single":"multi"),"boolean"!=typeof s.hideSelected&&(s.hideSelected="multi"===s.mode),"boolean"!=typeof s.hidePlaceholder&&(s.hidePlaceholder="multi"!==s.mode);var i=s.createFilter;"function"!=typeof i&&("string"==typeof i&&(i=new RegExp(i)),s.createFilter=i instanceof RegExp?t=>i.test(t):t=>this.settings.duplicates||!this.options[t]),this.initializePlugins(s.plugins),this.setupCallbacks(),this.setupTemplates();const n=L("<div>"),l=L("<div>"),a=this._render("dropdown"),d=L('<div role="listbox" tabindex="-1">'),h=this.input.getAttribute("class")||"",p=s.mode;var c;W(n,s.wrapperClass,h,p),W(l,s.controlClass),lt(n,l),W(a,s.dropdownClass,p),s.copyClassesToDropdown&&W(a,h),W(d,s.dropdownContentClass),lt(a,d),L(s.dropdownParent||n).appendChild(a),R(s.controlInput)?(c=L(s.controlInput),j(["autocorrect","autocapitalize","autocomplete"],(t=>{r.getAttribute(t)&&H(c,{[t]:r.getAttribute(t)})})),c.tabIndex=-1,l.appendChild(c),this.focus_node=c):s.controlInput?(c=L(s.controlInput),this.focus_node=c):(c=L("<input/>"),this.focus_node=l),this.wrapper=n,this.dropdown=a,this.dropdown_content=d,this.control=l,this.control_input=c,this.setup()}setup(){const t=this,o=t.settings,e=t.control_input,r=t.dropdown,s=t.dropdown_content,i=t.wrapper,l=t.control,a=t.input,d=t.focus_node,h={passive:!0},p=t.inputId+"-ts-dropdown";H(s,{id:p}),H(d,{role:"combobox","aria-haspopup":"listbox","aria-expanded":"false","aria-controls":p});const c=it(d,t.inputId+"-ts-control"),u="label[for='"+(t=>t.replace(/['"\\]/g,"\\$&"))(t.inputId)+"']",z=document.querySelector(u),v=t.focus.bind(t);if(z){rt(z,"click",v),H(z,{for:c});const o=it(z,t.inputId+"-ts-label");H(d,{"aria-labelledby":o}),H(s,{"aria-labelledby":o})}if(i.style.width=a.style.width,t.plugins.names.length){const o="plugin-"+t.plugins.names.join(" plugin-");W([i,r],o)}(null===o.maxItems||o.maxItems>1)&&t.is_select_tag&&H(a,{multiple:"multiple"}),o.placeholder&&H(e,{placeholder:o.placeholder}),!o.splitOn&&o.delimiter&&(o.splitOn=new RegExp("\\s*"+n(o.delimiter)+"+\\s*")),o.load&&o.loadThrottle&&(o.load=tt(o.load,o.loadThrottle)),t.control_input.type=a.type,rt(r,"mousemove",(()=>{t.ignoreHover=!1})),rt(r,"mouseenter",(o=>{var e=V(o.target,"[data-selectable]",r);e&&t.onOptionHover(o,e)}),{capture:!0}),rt(r,"click",(o=>{const e=V(o.target,"[data-selectable]");e&&(t.onOptionSelect(o,e),et(o,!0))})),rt(l,"click",(o=>{var r=V(o.target,"[data-ts-item]",l);r&&t.onItemSelect(o,r)?et(o,!0):""==e.value&&(t.onClick(),et(o,!0))})),rt(d,"keydown",(o=>t.onKeyDown(o))),rt(e,"keypress",(o=>t.onKeyPress(o))),rt(e,"input",(o=>t.onInput(o))),rt(d,"blur",(o=>t.onBlur(o))),rt(d,"focus",(o=>t.onFocus(o))),rt(e,"paste",(o=>t.onPaste(o)));const m=o=>{const s=o.composedPath()[0];if(!i.contains(s)&&!r.contains(s))return t.isFocused&&t.blur(),void t.inputState();s==e&&t.isOpen?o.stopPropagation():et(o,!0)},w=()=>{t.isOpen&&t.positionDropdown()};rt(document,"mousedown",m),rt(window,"scroll",w,h),rt(window,"resize",w,h),this._destroy=()=>{document.removeEventListener("mousedown",m),window.removeEventListener("scroll",w),window.removeEventListener("resize",w),z&&z.removeEventListener("click",v)},this.revertSettings={innerHTML:a.innerHTML,tabIndex:a.tabIndex},a.tabIndex=-1,a.insertAdjacentElement("afterend",t.wrapper),t.sync(!1),o.items=[],delete o.optgroups,delete o.options,rt(a,"invalid",(()=>{t.isValid&&(t.isValid=!1,t.isInvalid=!0,t.refreshState())})),t.updateOriginalInput(),t.refreshItems(),t.close(!1),t.inputState(),t.isSetup=!0,a.disabled?t.disable():t.enable(),t.on("change",this.onChange),W(a,"tomselected","ts-hidden-accessible"),t.trigger("initialize"),!0===o.preload&&t.preload()}setupOptions(t=[],o=[]){this.addOptions(t),j(o,(t=>{this.registerOptionGroup(t)}))}setupTemplates(){var t=this,o=t.settings.labelField,e=t.settings.optgroupLabelField;t.settings.render=Object.assign({},{optgroup:t=>{let o=document.createElement("div");return o.className="optgroup",o.appendChild(t.options),o},optgroup_header:(t,o)=>'<div class="optgroup-header">'+o(t[e])+"</div>",option:(t,e)=>"<div>"+e(t[o])+"</div>",item:(t,e)=>"<div>"+e(t[o])+"</div>",option_create:(t,o)=>'<div class="create">Add <strong>'+o(t.input)+"</strong>&hellip;</div>",no_results:()=>'<div class="no-results">No results found</div>',loading:()=>'<div class="spinner"></div>',not_loading:()=>{},dropdown:()=>"<div></div>"},t.settings.render)}setupCallbacks(){var t,o,e={initialize:"onInitialize",change:"onChange",item_add:"onItemAdd",item_remove:"onItemRemove",item_select:"onItemSelect",clear:"onClear",option_add:"onOptionAdd",option_remove:"onOptionRemove",option_clear:"onOptionClear",optgroup_add:"onOptionGroupAdd",optgroup_remove:"onOptionGroupRemove",optgroup_clear:"onOptionGroupClear",dropdown_open:"onDropdownOpen",dropdown_close:"onDropdownClose",type:"onType",load:"onLoad",focus:"onFocus",blur:"onBlur"};for(t in e)(o=this.settings[e[t]])&&this.on(t,o)}sync(t=!0){const o=this,e=t?at(o.input,{delimiter:o.settings.delimiter}):o.settings;o.setupOptions(e.options,e.optgroups),o.setValue(e.items||[],!0),o.lastQuery=null}onClick(){var t=this;if(t.activeItems.length>0)return t.clearActiveItems(),void t.focus();t.isFocused&&t.isOpen?t.blur():t.focus()}onMouseDown(){}onChange(){M(this.input,"input"),M(this.input,"change")}onPaste(t){var o=this;o.isInputHidden||o.isLocked?et(t):o.settings.splitOn&&setTimeout((()=>{var t=o.inputValue();if(t.match(o.settings.splitOn)){var e=t.trim().split(o.settings.splitOn);j(e,(t=>{Q(t)&&(this.options[t]?o.addItem(t):o.createItem(t))}))}}),0)}onKeyPress(t){var o=this;if(!o.isLocked){var e=String.fromCharCode(t.keyCode||t.which);return o.settings.create&&"multi"===o.settings.mode&&e===o.settings.delimiter?(o.createItem(),void et(t)):void 0}et(t)}onKeyDown(t){var o=this;if(o.ignoreHover=!0,o.isLocked)9!==t.keyCode&&et(t);else{switch(t.keyCode){case 65:if(st(Y,t)&&""==o.control_input.value)return et(t),void o.selectAll();break;case 27:return o.isOpen&&(et(t,!0),o.close()),void o.clearActiveItems();case 40:if(!o.isOpen&&o.hasOptions)o.open();else if(o.activeOption){let t=o.getAdjacent(o.activeOption,1);t&&o.setActiveOption(t)}return void et(t);case 38:if(o.activeOption){let t=o.getAdjacent(o.activeOption,-1);t&&o.setActiveOption(t)}return void et(t);case 13:return void(o.canSelect(o.activeOption)?(o.onOptionSelect(t,o.activeOption),et(t)):(o.settings.create&&o.createItem()||document.activeElement==o.control_input&&o.isOpen)&&et(t));case 37:return void o.advanceSelection(-1,t);case 39:return void o.advanceSelection(1,t);case 9:return void(o.settings.selectOnTab&&(o.canSelect(o.activeOption)&&(o.onOptionSelect(t,o.activeOption),et(t)),o.settings.create&&o.createItem()&&et(t)));case 8:case 46:return void o.deleteSelection(t)}o.isInputHidden&&!st(Y,t)&&et(t)}}onInput(t){var o=this;if(!o.isLocked){var e=o.inputValue();o.lastValue!==e&&(o.lastValue=e,o.settings.shouldLoad.call(o,e)&&o.load(e),o.refreshOptions(),o.trigger("type",e))}}onOptionHover(t,o){this.ignoreHover||this.setActiveOption(o,!1)}onFocus(t){var o=this,e=o.isFocused;if(o.isDisabled)return o.blur(),void et(t);o.ignoreFocus||(o.isFocused=!0,"focus"===o.settings.preload&&o.preload(),e||o.trigger("focus"),o.activeItems.length||(o.showInput(),o.refreshOptions(!!o.settings.openOnFocus)),o.refreshState())}onBlur(t){if(!1!==document.hasFocus()){var o=this;if(o.isFocused){o.isFocused=!1,o.ignoreFocus=!1;var e=()=>{o.close(),o.setActiveItem(),o.setCaret(o.items.length),o.trigger("blur")};o.settings.create&&o.settings.createOnBlur?o.createItem(null,e):e()}}}onOptionSelect(t,o){var e,r=this;o.parentElement&&o.parentElement.matches("[data-disabled]")||(o.classList.contains("create")?r.createItem(null,(()=>{r.settings.closeAfterSelect&&r.close()})):void 0!==(e=o.dataset.value)&&(r.lastQuery=null,r.addItem(e),r.settings.closeAfterSelect&&r.close(),!r.settings.hideSelected&&t.type&&/click/.test(t.type)&&r.setActiveOption(o)))}canSelect(t){return!!(this.isOpen&&t&&this.dropdown_content.contains(t))}onItemSelect(t,o){var e=this;return!e.isLocked&&"multi"===e.settings.mode&&(et(t),e.setActiveItem(o,t),!0)}canLoad(t){return!!this.settings.load&&!this.loadedSearches.hasOwnProperty(t)}load(t){const o=this;if(!o.canLoad(t))return;W(o.wrapper,o.settings.loadingClass),o.loading++;const e=o.loadCallback.bind(o);o.settings.load.call(o,t,e)}loadCallback(t,o){const e=this;e.loading=Math.max(e.loading-1,0),e.lastQuery=null,e.clearActiveOption(),e.setupOptions(t,o),e.refreshOptions(e.isFocused&&!e.isInputHidden),e.loading||D(e.wrapper,e.settings.loadingClass),e.trigger("load",t,o)}preload(){var t=this.wrapper.classList;t.contains("preloaded")||(t.add("preloaded"),this.load(""))}setTextboxValue(t=""){var o=this.control_input;o.value!==t&&(o.value=t,M(o,"update"),this.lastValue=t)}getValue(){return this.is_select_tag&&this.input.hasAttribute("multiple")?this.items:this.items.join(this.settings.delimiter)}setValue(t,o){ot(this,o?[]:["change"],(()=>{this.clear(o),this.addItems(t,o)}))}setMaxItems(t){0===t&&(t=null),this.settings.maxItems=t,this.refreshState()}setActiveItem(t,o){var e,r,s,i,n,l,a=this;if("single"!==a.settings.mode){if(!t)return a.clearActiveItems(),void(a.isFocused&&a.showInput());if("click"===(e=o&&o.type.toLowerCase())&&st("shiftKey",o)&&a.activeItems.length){for(l=a.getLastActive(),(s=Array.prototype.indexOf.call(a.control.children,l))>(i=Array.prototype.indexOf.call(a.control.children,t))&&(n=s,s=i,i=n),r=s;r<=i;r++)-1===a.activeItems.indexOf(t=a.control.children[r])&&a.setActiveItemClass(t);et(o)}else"click"===e&&st(Y,o)||"keydown"===e&&st("shiftKey",o)?t.classList.contains("active")?a.removeActiveItem(t):a.setActiveItemClass(t):(a.clearActiveItems(),a.setActiveItemClass(t));a.hideInput(),a.isFocused||a.focus()}}setActiveItemClass(t){const o=this,e=o.control.querySelector(".last-active");e&&D(e,"last-active"),W(t,"active last-active"),o.trigger("item_select",t),-1==o.activeItems.indexOf(t)&&o.activeItems.push(t)}removeActiveItem(t){var o=this.activeItems.indexOf(t);this.activeItems.splice(o,1),D(t,"active")}clearActiveItems(){D(this.activeItems,"active"),this.activeItems=[]}setActiveOption(t,o=!0){t!==this.activeOption&&(this.clearActiveOption(),t&&(this.activeOption=t,H(this.focus_node,{"aria-activedescendant":t.getAttribute("id")}),H(t,{"aria-selected":"true"}),W(t,"active"),o&&this.scrollToOption(t)))}scrollToOption(t,o){if(!t)return;const e=this.dropdown_content,r=e.clientHeight,s=e.scrollTop||0,i=t.offsetHeight,n=t.getBoundingClientRect().top-e.getBoundingClientRect().top+s;n+i>r+s?this.scroll(n-r+i,o):n<s&&this.scroll(n,o)}scroll(t,o){const e=this.dropdown_content;o&&(e.style.scrollBehavior=o),e.scrollTop=t,e.style.scrollBehavior=""}clearActiveOption(){this.activeOption&&(D(this.activeOption,"active"),H(this.activeOption,{"aria-selected":null})),this.activeOption=null,H(this.focus_node,{"aria-activedescendant":null})}selectAll(){const t=this;if("single"===t.settings.mode)return;const o=t.controlChildren();o.length&&(t.hideInput(),t.close(),t.activeItems=o,j(o,(o=>{t.setActiveItemClass(o)})))}inputState(){var t=this;t.control.contains(t.control_input)&&(H(t.control_input,{placeholder:t.settings.placeholder}),t.activeItems.length>0||!t.isFocused&&t.settings.hidePlaceholder&&t.items.length>0?(t.setTextboxValue(),t.isInputHidden=!0):(t.settings.hidePlaceholder&&t.items.length>0&&H(t.control_input,{placeholder:""}),t.isInputHidden=!1),t.wrapper.classList.toggle("input-hidden",t.isInputHidden))}hideInput(){this.inputState()}showInput(){this.inputState()}inputValue(){return this.control_input.value.trim()}focus(){var t=this;t.isDisabled||(t.ignoreFocus=!0,t.control_input.offsetWidth?t.control_input.focus():t.focus_node.focus(),setTimeout((()=>{t.ignoreFocus=!1,t.onFocus()}),0))}blur(){this.focus_node.blur(),this.onBlur()}getScoreFunction(t){return this.sifter.getScoreFunction(t,this.getSearchOptions())}getSearchOptions(){var t=this.settings,o=t.sortField;return"string"==typeof t.sortField&&(o=[{field:t.sortField}]),{fields:t.searchField,conjunction:t.searchConjunction,sort:o,nesting:t.nesting}}search(t){var o,e,r=this,s=this.getSearchOptions();if(r.settings.score&&"function"!=typeof(e=r.settings.score.call(r,t)))throw new Error('Tom Select "score" setting must be a function that returns a function');return t!==r.lastQuery?(r.lastQuery=t,o=r.sifter.search(t,Object.assign(s,{score:e})),r.currentResults=o):o=Object.assign({},r.currentResults),r.settings.hideSelected&&(o.items=o.items.filter((t=>{let o=Q(t.id);return!(o&&-1!==r.items.indexOf(o))}))),o}refreshOptions(t=!0){var o,e,r,s,i,n,l,a,d,h;const p={},c=[];var u=this,z=u.inputValue();const v=z===u.lastQuery||""==z&&null==u.lastQuery;var m,w=u.search(z),f=null,_=u.settings.shouldOpen||!1,g=u.dropdown_content;for(v&&(f=u.activeOption)&&(d=f.closest("[data-group]")),s=w.items.length,"number"==typeof u.settings.maxOptions&&(s=Math.min(s,u.settings.maxOptions)),s>0&&(_=!0),o=0;o<s;o++){let t=w.items[o];if(!t)continue;let s=t.id,l=u.options[s];if(void 0===l)continue;let a=X(s),h=u.getOption(a,!0);for(u.settings.hideSelected||h.classList.toggle("selected",u.items.includes(a)),i=l[u.settings.optgroupField]||"",e=0,r=(n=Array.isArray(i)?i:[i])&&n.length;e<r;e++){u.optgroups.hasOwnProperty(i=n[e])||(i="");let t=p[i];void 0===t&&(t=document.createDocumentFragment(),c.push(i)),e>0&&(h=h.cloneNode(!0),H(h,{id:l.$id+"-clone-"+e,"aria-selected":null}),h.classList.add("ts-cloned"),D(h,"active"),u.activeOption&&u.activeOption.dataset.value==s&&d&&d.dataset.group===i.toString()&&(f=h)),t.appendChild(h),p[i]=t}}u.settings.lockOptgroupOrder&&c.sort(((t,o)=>{const e=u.optgroups[t],r=u.optgroups[o];return(e&&e.$order||0)-(r&&r.$order||0)})),l=document.createDocumentFragment(),j(c,(t=>{let o=p[t];if(!o||!o.children.length)return;let e=u.optgroups[t];if(void 0!==e){let t=document.createDocumentFragment(),r=u.render("optgroup_header",e);lt(t,r),lt(t,o);let s=u.render("optgroup",{group:e,options:t});lt(l,s)}else lt(l,o)})),g.innerHTML="",lt(g,l),u.settings.highlight&&(m=g.querySelectorAll("span.highlight"),Array.prototype.forEach.call(m,(function(t){var o=t.parentNode;o.replaceChild(t.firstChild,t),o.normalize()})),w.query.length&&w.tokens.length&&j(w.tokens,(t=>{G(g,t.regex)})));var b=t=>{let o=u.render(t,{input:z});return o&&(_=!0,g.insertBefore(o,g.firstChild)),o};if(u.loading?b("loading"):u.settings.shouldLoad.call(u,z)?0===w.items.length&&b("no_results"):b("not_loading"),(a=u.canCreate(z))&&(h=b("option_create")),u.hasOptions=w.items.length>0||a,_){if(w.items.length>0){if(f||"single"!==u.settings.mode||null==u.items[0]||(f=u.getOption(u.items[0])),!g.contains(f)){let t=0;h&&!u.settings.addPrecedence&&(t=1),f=u.selectable()[t]}}else h&&(f=h);t&&!u.isOpen&&(u.open(),u.scrollToOption(f,"auto")),u.setActiveOption(f)}else u.clearActiveOption(),t&&u.isOpen&&u.close(!1)}selectable(){return this.dropdown_content.querySelectorAll("[data-selectable]")}addOption(t,o=!1){const e=this;if(Array.isArray(t))return e.addOptions(t,o),!1;const r=Q(t[e.settings.valueField]);return null!==r&&!e.options.hasOwnProperty(r)&&(t.$order=t.$order||++e.order,t.$id=e.inputId+"-opt-"+t.$order,e.options[r]=t,e.lastQuery=null,o&&(e.userOptions[r]=o,e.trigger("option_add",r,t)),r)}addOptions(t,o=!1){j(t,(t=>{this.addOption(t,o)}))}registerOption(t){return this.addOption(t)}registerOptionGroup(t){var o=Q(t[this.settings.optgroupValueField]);return null!==o&&(t.$order=t.$order||++this.order,this.optgroups[o]=t,o)}addOptionGroup(t,o){var e;o[this.settings.optgroupValueField]=t,(e=this.registerOptionGroup(o))&&this.trigger("optgroup_add",e,o)}removeOptionGroup(t){this.optgroups.hasOwnProperty(t)&&(delete this.optgroups[t],this.clearCache(),this.trigger("optgroup_remove",t))}clearOptionGroups(){this.optgroups={},this.clearCache(),this.trigger("optgroup_clear")}updateOption(t,o){const e=this;var r,s;const i=Q(t),n=Q(o[e.settings.valueField]);if(null===i)return;const l=e.options[i];if(null==l)return;if("string"!=typeof n)throw new Error("Value must be set in option data");const a=e.getOption(i),d=e.getItem(i);if(o.$order=o.$order||l.$order,delete e.options[i],e.uncacheValue(n),e.options[n]=o,a){if(e.dropdown_content.contains(a)){const t=e._render("option",o);K(a,t),e.activeOption===a&&e.setActiveOption(t)}a.remove()}d&&(-1!==(s=e.items.indexOf(i))&&e.items.splice(s,1,n),r=e._render("item",o),d.classList.contains("active")&&W(r,"active"),K(d,r)),e.lastQuery=null}removeOption(t,o){const e=this;t=X(t),e.uncacheValue(t),delete e.userOptions[t],delete e.options[t],e.lastQuery=null,e.trigger("option_remove",t),e.removeItem(t,o)}clearOptions(t){const o=(t||this.clearFilter).bind(this);this.loadedSearches={},this.userOptions={},this.clearCache();const e={};j(this.options,((t,r)=>{o(t,r)&&(e[r]=t)})),this.options=this.sifter.items=e,this.lastQuery=null,this.trigger("option_clear")}clearFilter(t,o){return this.items.indexOf(o)>=0}getOption(t,o=!1){const e=Q(t);if(null===e)return null;const r=this.options[e];if(null!=r){if(r.$div)return r.$div;if(o)return this._render("option",r)}return null}getAdjacent(t,o,e="option"){var r;if(!t)return null;r="item"==e?this.controlChildren():this.dropdown_content.querySelectorAll("[data-selectable]");for(let s=0;s<r.length;s++)if(r[s]==t)return o>0?r[s+1]:r[s-1];return null}getItem(t){if("object"==typeof t)return t;var o=Q(t);return null!==o?this.control.querySelector(`[data-value="${nt(o)}"]`):null}addItems(t,o){var e=this,r=Array.isArray(t)?t:[t];const s=(r=r.filter((t=>-1===e.items.indexOf(t))))[r.length-1];r.forEach((t=>{e.isPending=t!==s,e.addItem(t,o)}))}addItem(t,o){ot(this,o?[]:["change","dropdown_close"],(()=>{var e,r;const s=this,i=s.settings.mode,n=Q(t);if((!n||-1===s.items.indexOf(n)||("single"===i&&s.close(),"single"!==i&&s.settings.duplicates))&&null!==n&&s.options.hasOwnProperty(n)&&("single"===i&&s.clear(o),"multi"!==i||!s.isFull())){if(e=s._render("item",s.options[n]),s.control.contains(e)&&(e=e.cloneNode(!0)),r=s.isFull(),s.items.splice(s.caretPos,0,n),s.insertAtCaret(e),s.isSetup){if(!s.isPending&&s.settings.hideSelected){let t=s.getOption(n),o=s.getAdjacent(t,1);o&&s.setActiveOption(o)}s.isPending||s.settings.closeAfterSelect||s.refreshOptions(s.isFocused&&"single"!==i),0!=s.settings.closeAfterSelect&&s.isFull()?s.close():s.isPending||s.positionDropdown(),s.trigger("item_add",n,e),s.isPending||s.updateOriginalInput({silent:o})}(!s.isPending||!r&&s.isFull())&&(s.inputState(),s.refreshState())}}))}removeItem(t=null,o){const e=this;if(!(t=e.getItem(t)))return;var r,s;const i=t.dataset.value;r=B(t),t.remove(),t.classList.contains("active")&&(s=e.activeItems.indexOf(t),e.activeItems.splice(s,1),D(t,"active")),e.items.splice(r,1),e.lastQuery=null,!e.settings.persist&&e.userOptions.hasOwnProperty(i)&&e.removeOption(i,o),r<e.caretPos&&e.setCaret(e.caretPos-1),e.updateOriginalInput({silent:o}),e.refreshState(),e.positionDropdown(),e.trigger("item_remove",i,t)}createItem(t=null,o=(()=>{})){3===arguments.length&&(o=arguments[2]),"function"!=typeof o&&(o=()=>{});var e,r=this,s=r.caretPos;if(t=t||r.inputValue(),!r.canCreate(t))return o(),!1;r.lock();var i=!1,n=t=>{if(r.unlock(),!t||"object"!=typeof t)return o();var e=Q(t[r.settings.valueField]);if("string"!=typeof e)return o();r.setTextboxValue(),r.addOption(t,!0),r.setCaret(s),r.addItem(e),o(t),i=!0};return e="function"==typeof r.settings.create?r.settings.create.call(this,t,n):{[r.settings.labelField]:t,[r.settings.valueField]:t},i||n(e),!0}refreshItems(){var t=this;t.lastQuery=null,t.isSetup&&t.addItems(t.items),t.updateOriginalInput(),t.refreshState()}refreshState(){const t=this;t.refreshValidityState();const o=t.isFull(),e=t.isLocked;t.wrapper.classList.toggle("rtl",t.rtl);const r=t.wrapper.classList;r.toggle("focus",t.isFocused),r.toggle("disabled",t.isDisabled),r.toggle("required",t.isRequired),r.toggle("invalid",!t.isValid),r.toggle("locked",e),r.toggle("full",o),r.toggle("input-active",t.isFocused&&!t.isInputHidden),r.toggle("dropdown-active",t.isOpen),r.toggle("has-options",0===Object.keys(t.options).length),r.toggle("has-items",t.items.length>0)}refreshValidityState(){var t=this;t.input.validity&&(t.isValid=t.input.validity.valid,t.isInvalid=!t.isValid)}isFull(){return null!==this.settings.maxItems&&this.items.length>=this.settings.maxItems}updateOriginalInput(t={}){const o=this;var e,r;const s=o.input.querySelector('option[value=""]');if(o.is_select_tag){const i=[],n=o.input.querySelectorAll("option:checked").length;function l(t,e,r){return t||(t=L('<option value="'+Z(e)+'">'+Z(r)+"</option>")),t!=s&&o.input.append(t),i.push(t),(t!=s||n>0)&&(t.selected=!0),t}o.input.querySelectorAll("option:checked").forEach((t=>{t.selected=!1})),0==o.items.length&&"single"==o.settings.mode?l(s,"",""):o.items.forEach((t=>{r=(e=o.options[t])[o.settings.labelField]||"",i.includes(e.$option)?l(o.input.querySelector(`option[value="${nt(t)}"]:not(:checked)`),t,r):e.$option=l(e.$option,t,r)}))}else o.input.value=o.getValue();o.isSetup&&(t.silent||o.trigger("change",o.getValue()))}open(){var t=this;t.isLocked||t.isOpen||"multi"===t.settings.mode&&t.isFull()||(t.isOpen=!0,H(t.focus_node,{"aria-expanded":"true"}),t.refreshState(),N(t.dropdown,{visibility:"hidden",display:"block"}),t.positionDropdown(),N(t.dropdown,{visibility:"visible",display:"block"}),t.focus(),t.trigger("dropdown_open",t.dropdown))}close(t=!0){var o=this,e=o.isOpen;t&&(o.setTextboxValue(),"single"===o.settings.mode&&o.items.length&&o.hideInput()),o.isOpen=!1,H(o.focus_node,{"aria-expanded":"false"}),N(o.dropdown,{display:"none"}),o.settings.hideSelected&&o.clearActiveOption(),o.refreshState(),e&&o.trigger("dropdown_close",o.dropdown)}positionDropdown(){if("body"===this.settings.dropdownParent){var t=this.control,o=t.getBoundingClientRect(),e=t.offsetHeight+o.top+window.scrollY,r=o.left+window.scrollX;N(this.dropdown,{width:o.width+"px",top:e+"px",left:r+"px"})}}clear(t){var o=this;if(o.items.length){var e=o.controlChildren();j(e,(t=>{o.removeItem(t,!0)})),o.showInput(),t||o.updateOriginalInput(),o.trigger("clear")}}insertAtCaret(t){const o=this,e=o.caretPos,r=o.control;r.insertBefore(t,r.children[e]||null),o.setCaret(e+1)}deleteSelection(t){var o,e,r,s,i,n=this;o=t&&8===t.keyCode?-1:1,e={start:(i=n.control_input).selectionStart||0,length:(i.selectionEnd||0)-(i.selectionStart||0)};const l=[];if(n.activeItems.length)s=J(n.activeItems,o),r=B(s),o>0&&r++,j(n.activeItems,(t=>l.push(t)));else if((n.isFocused||"single"===n.settings.mode)&&n.items.length){const t=n.controlChildren();let r;o<0&&0===e.start&&0===e.length?r=t[n.caretPos-1]:o>0&&e.start===n.inputValue().length&&(r=t[n.caretPos]),void 0!==r&&l.push(r)}if(!n.shouldDelete(l,t))return!1;for(et(t,!0),void 0!==r&&n.setCaret(r);l.length;)n.removeItem(l.pop());return n.showInput(),n.positionDropdown(),n.refreshOptions(!1),!0}shouldDelete(t,o){const e=t.map((t=>t.dataset.value));return!(!e.length||"function"==typeof this.settings.onDelete&&!1===this.settings.onDelete(e,o))}advanceSelection(t,o){var e,r,s=this;s.rtl&&(t*=-1),s.inputValue().length||(st(Y,o)||st("shiftKey",o)?(r=(e=s.getLastActive(t))?e.classList.contains("active")?s.getAdjacent(e,t,"item"):e:t>0?s.control_input.nextElementSibling:s.control_input.previousElementSibling)&&(r.classList.contains("active")&&s.removeActiveItem(e),s.setActiveItemClass(r)):s.moveCaret(t))}moveCaret(t){}getLastActive(t){let o=this.control.querySelector(".last-active");if(o)return o;var e=this.control.querySelectorAll(".active");return e?J(e,t):void 0}setCaret(t){this.caretPos=this.items.length}controlChildren(){return Array.from(this.control.querySelectorAll("[data-ts-item]"))}lock(){this.isLocked=!0,this.refreshState()}unlock(){this.isLocked=!1,this.refreshState()}disable(){var t=this;t.input.disabled=!0,t.control_input.disabled=!0,t.focus_node.tabIndex=-1,t.isDisabled=!0,this.close(),t.lock()}enable(){var t=this;t.input.disabled=!1,t.control_input.disabled=!1,t.focus_node.tabIndex=t.tabIndex,t.isDisabled=!1,t.unlock()}destroy(){var t=this,o=t.revertSettings;t.trigger("destroy"),t.off(),t.wrapper.remove(),t.dropdown.remove(),t.input.innerHTML=o.innerHTML,t.input.tabIndex=o.tabIndex,D(t.input,"tomselected","ts-hidden-accessible"),t._destroy(),delete t.input.tomselect}render(t,o){var e;const r=this;if("function"!=typeof this.settings.render[t])return null;if(!(e=r.settings.render[t].call(this,o,Z)))return null;if(e=L(e),"option"===t||"option_create"===t?H(e,o[r.settings.disabledField]?{"aria-disabled":"true"}:{"data-selectable":""}):"optgroup"===t&&(H(e,{"data-group":o.group[r.settings.optgroupValueField]}),o.group[r.settings.disabledField]&&H(e,{"data-disabled":""})),"option"===t||"item"===t){const s=X(o[r.settings.valueField]);H(e,{"data-value":s}),"item"===t?(W(e,r.settings.itemClass),H(e,{"data-ts-item":""})):(W(e,r.settings.optionClass),H(e,{role:"option",id:o.$id}),o.$div=e,r.options[s]=o)}return e}_render(t,o){const e=this.render(t,o);if(null==e)throw"HTMLElement expected";return e}clearCache(){j(this.options,(t=>{t.$div&&(t.$div.remove(),delete t.$div)}))}uncacheValue(t){const o=this.getOption(t);o&&o.remove()}canCreate(t){return this.settings.create&&t.length>0&&this.settings.createFilter.call(this,t)}hook(t,o,e){var r=this,s=r[o];r[o]=function(){var o,i;return"after"===t&&(o=s.apply(r,arguments)),i=e.apply(r,arguments),"instead"===t?i:("before"===t&&(o=s.apply(r,arguments)),o)}}}return ht}()})),p=a((function(t){t.exports=function(){
8
8
  /*! @orchidjs/unicode-variants | https://github.com/orchidjs/unicode-variants | Apache License (v2) */
9
- const t={},o={"/":"⁄∕",0:"߀",a:"ⱥɐɑ",aa:"ꜳ",ae:"æǽǣ",ao:"ꜵ",au:"ꜷ",av:"ꜹꜻ",ay:"ꜽ",b:"ƀɓƃ",c:"ꜿƈȼↄ",d:"đɗɖᴅƌꮷԁɦ",e:"ɛǝᴇɇ",f:"ꝼƒ",g:"ǥɠꞡᵹꝿɢ",h:"ħⱨⱶɥ",i:"ɨı",j:"ɉȷ",k:"ƙⱪꝁꝃꝅꞣ",l:"łƚɫⱡꝉꝇꞁɭ",m:"ɱɯϻ",n:"ꞥƞɲꞑᴎлԉ",o:"øǿɔɵꝋꝍᴑ",oe:"œ",oi:"ƣ",oo:"ꝏ",ou:"ȣ",p:"ƥᵽꝑꝓꝕρ",q:"ꝗꝙɋ",r:"ɍɽꝛꞧꞃ",s:"ßȿꞩꞅʂ",t:"ŧƭʈⱦꞇ",th:"þ",tz:"ꜩ",u:"ʉ",v:"ʋꝟʌ",vy:"ꝡ",w:"ⱳ",y:"ƴɏỿ",z:"ƶȥɀⱬꝣ",hv:"ƕ"};for(let n in o){let e=o[n]||"";for(let o=0;o<e.length;o++)t[e.substring(o,o+1)]=n}new RegExp(Object.keys(t).join("|")+"|[̀-ͯ·ʾʼ]","gu");const e=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(r(t)){var o=document.createElement("template");return o.innerHTML=t.trim(),o.content.firstChild}return document.querySelector(t)},r=t=>"string"==typeof t&&t.indexOf("<")>-1,s=(t,o=!1)=>{t&&(t.preventDefault(),o&&t.stopPropagation())},i=(t,o,e,r)=>{t.addEventListener(o,e,r)};return function(t){const o=Object.assign({label:"&times;",title:"Remove",className:"remove",append:!0},t);var r=this;if(o.append){var n='<a href="javascript:void(0)" class="'+o.className+'" tabindex="-1" title="'+((o.title+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")+'">')+o.label+"</a>";r.hook("after","setupTemplates",(()=>{var t=r.settings.render.item;r.settings.render.item=(o,l)=>{var a=e(t.call(r,o,l)),d=e(n);return a.appendChild(d),i(d,"mousedown",(t=>{s(t,!0)})),i(d,"click",(t=>{s(t,!0),r.isLocked||r.shouldDelete([a],t)&&(r.removeItem(a),r.refreshOptions(!1),r.inputState())})),a}}))}}}()})),c=a((function(t){t.exports=function(){const t=t=>"boolean"==typeof t?t?"1":"0":t+"",o=(t,o=!1)=>{t&&(t.preventDefault(),o&&t.stopPropagation())},e={},r={"/":"⁄∕",0:"߀",a:"ⱥɐɑ",aa:"ꜳ",ae:"æǽǣ",ao:"ꜵ",au:"ꜷ",av:"ꜹꜻ",ay:"ꜽ",b:"ƀɓƃ",c:"ꜿƈȼↄ",d:"đɗɖᴅƌꮷԁɦ",e:"ɛǝᴇɇ",f:"ꝼƒ",g:"ǥɠꞡᵹꝿɢ",h:"ħⱨⱶɥ",i:"ɨı",j:"ɉȷ",k:"ƙⱪꝁꝃꝅꞣ",l:"łƚɫⱡꝉꝇꞁɭ",m:"ɱɯϻ",n:"ꞥƞɲꞑᴎлԉ",o:"øǿɔɵꝋꝍᴑ",oe:"œ",oi:"ƣ",oo:"ꝏ",ou:"ȣ",p:"ƥᵽꝑꝓꝕρ",q:"ꝗꝙɋ",r:"ɍɽꝛꞧꞃ",s:"ßȿꞩꞅʂ",t:"ŧƭʈⱦꞇ",th:"þ",tz:"ꜩ",u:"ʉ",v:"ʋꝟʌ",vy:"ꝡ",w:"ⱳ",y:"ƴɏỿ",z:"ƶȥɀⱬꝣ",hv:"ƕ"};for(let i in r){let t=r[i]||"";for(let o=0;o<t.length;o++)e[t.substring(o,o+1)]=i}new RegExp(Object.keys(e).join("|")+"|[̀-ͯ·ʾʼ]","gu");const s=t=>"string"==typeof t&&t.indexOf("<")>-1;return function(){var e=this,r=e.onOptionSelect;e.settings.hideSelected=!1;var i=function(t){setTimeout((()=>{var o=t.querySelector("input");o instanceof HTMLInputElement&&(o.checked=!!t.classList.contains("selected"))}),1)};e.hook("after","setupTemplates",(()=>{var r=e.settings.render.option;e.settings.render.option=(i,n)=>{var l=(t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(s(t)){var o=document.createElement("template");return o.innerHTML=t.trim(),o.content.firstChild}return document.querySelector(t)})(r.call(e,i,n)),a=document.createElement("input");a.addEventListener("click",(function(t){o(t)})),a.type="checkbox";const d=null==(h=i[e.settings.valueField])?null:t(h);var h;return d&&e.items.indexOf(d)>-1&&(a.checked=!0),l.prepend(a),l}})),e.on("item_remove",(t=>{var o=e.getOption(t);o&&(o.classList.remove("selected"),i(o))})),e.on("item_add",(t=>{var o=e.getOption(t);o&&i(o)})),e.hook("instead","onOptionSelect",((t,s)=>{if(s.classList.contains("selected"))return s.classList.remove("selected"),e.removeItem(s.dataset.value),e.refreshOptions(),void o(t,!0);r.call(e,t,s),i(s)}))}}()})),u=a((function(t){t.exports=function(){const t=(t,o,e,r)=>{t.addEventListener(o,e,r)};return function(){var o=this;o.on("initialize",(()=>{var e=document.createElement("span"),r=o.control_input;e.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",o.wrapper.appendChild(e);for(const t of["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"])e.style[t]=r.style[t];var s=()=>{e.textContent=r.value,r.style.width=e.clientWidth+"px"};s(),o.on("update item_add item_remove",s),t(r,"input",s),t(r,"keyup",s),t(r,"blur",s),t(r,"update",s)}))}}()})),z=a((function(t){t.exports=function(){var t=this,o=t.deleteSelection;this.hook("instead","deleteSelection",(e=>!!t.activeItems.length&&o.call(t,e)))}}));const v="stzh-dropdown--is-filled",m="stzh-dropdown--has-focus";h.define("remove_button",p),h.define("checkbox_options",c),h.define("input_autogrow",u),h.define("no_backspace_delete",z),h.define("input_readonly",(function(){const t=this;t.on("initialize",(()=>{const o=t.control_input;o&&(o.readOnly=!0)}))}));let w=0;const f=class{constructor(e){t(this,e),this.stzhChange=o(this,"stzhChange",7),this.stzhItemAdd=o(this,"stzhItemAdd",7),this.stzhItemRemove=o(this,"stzhItemRemove",7),this.stzhOptionAdd=o(this,"stzhOptionAdd",7),this.stzhOptionRemove=o(this,"stzhOptionRemove",7),this.stzhOpen=o(this,"stzhOpen",7),this.stzhClose=o(this,"stzhClose",7),this.stzhFocus=o(this,"stzhFocus",7),this.stzhBlur=o(this,"stzhBlur",7),this.stzhInit=o(this,"stzhInit",7),this.options=void 0,this.optgroups=void 0,this.items=void 0,this.searchField=["text"],this.multiple=!1,this.inline=!1,this.maxOptions=50,this.searchConjunction="and",this.allowEmptyOption=!1,this.openOnFocus=!0,this.closeAfterSelect=null,this.load=null,this.minCharacters=3,this.loadThrottle=300,this.preload=!1,this.labelField="text",this.valueField="value",this.optgroupField="optgroup",this.optgroupLabelField="label",this.optgroupValueField="value",this.lockOptgroupOrder=void 0,this.name="",this.variant="default",this.size="default",this.disabled=!1,this.popoverPlacement="bottom",this.label="",this.icon="",this.noSearch=!1,this.noBackspaceDelete=!1,this.invalid=!1,this.required=!1,this.showMarker=!1,this.description=void 0,this.descriptionLong=void 0,this.error=void 0,this.localization=void 0,this.a11yDescribedby=""}optionsWatcher(t){this._options="string"==typeof t?JSON.parse(t):t}itemsWatcher(t){this._items="string"==typeof t?JSON.parse(t):t}searchFieldWatcher(t){this._searchField="string"==typeof t?JSON.parse(t):t}optgroupsWatcher(t){this._optgroups="string"==typeof t?JSON.parse(t):t}errorWatcher(t){if("string"==typeof t)try{this._error=JSON.parse(t)}catch(o){this._error=t?[t]:[]}else this._error=t||[];this.invalid=this._error.length>0}async getValue(){return this.tomSelect.getValue()}async setValue(t,o=!1){this.tomSelect.setValue(t,o)}async setFocus(){this.tomSelect.focus()}async resetLoadedSearches(){this.tomSelect.loadedSearches={}}async getLoadedSearches(){return this.tomSelect.loadedSearches}async getItems(){return this.tomSelect.items}async loadItems(t){return this.tomSelect.load(t)}updateFilled(){this._items.length>0?this.rootElement.classList.add(v):this.rootElement.classList.remove(v)}async componentWillLoad(){this.dropdownId="stzh-dropdown-"+w++,this.optionsWatcher(this.options),this.optgroupsWatcher(this.optgroups),this.itemsWatcher(this.items),this.searchFieldWatcher(this.searchField),this.errorWatcher(this.error),this.localization||(this.localization=await n(this.element,"dropdown"))}async componentWillUpdate(){this.tomSelect&&(this.tomSelect.destroy(),this.tomSelect=null)}async componentDidRender(){if(this.tomSelect)return;const t={};this.noSearch?t.input_readonly={}:t.input_autogrow={},this.noBackspaceDelete&&(t.no_backspace_delete={}),this.multiple&&(t.checkbox_options={},t.remove_button={title:this.localization.removeButtonTitle,label:'<stzh-icon name="close" class="stzh-dropdown__remove-icon"></stzh-icon>'});const o={plugins:t,maxItems:this.multiple?null:1,maxOptions:this.maxOptions,items:this._items,optgroups:this._optgroups,searchField:this._searchField,searchConjunction:this.searchConjunction,allowEmptyOption:this.allowEmptyOption,closeAfterSelect:null!==this.closeAfterSelect?this.closeAfterSelect:!this.multiple,labelField:this.labelField,valueField:this.valueField,optgroupField:this.optgroupField,optgroupLabelField:this.optgroupLabelField,optgroupValueField:this.optgroupValueField,lockOptgroupOrder:this.lockOptgroupOrder,load:this.load,shouldLoad:t=>t.length>=this.minCharacters,loadThrottle:this.loadThrottle,preload:this.preload,openOnFocus:this.openOnFocus,loadingClass:"is-loading",hideSelected:!1,duplicates:!1,delimiter:",",copyClassesToDropdown:!1,hidePlaceholder:null,render:{option:(t,o)=>`\n <div class="stzh-dropdown__option" title="${o(t[this.labelField])}">\n <stzh-icon name="checkmark" class="stzh-dropdown__option-check"></stzh-icon>\n <span class="stzh-dropdown__option-title">\n ${o(t[this.labelField])}\n </span>\n </div>\n `,item:(t,o)=>`\n <div class="stzh-dropdown__item">\n ${o(t[this.labelField])}\n </div>\n `,option_create:(t,o)=>`\n <div class="stzh-dropdown__create">\n ${this.localization.create.replace(/{x}/gi,o(t.input))}&hellip;\n </div>\n `,no_results:(t,o)=>`\n <div class="stzh-dropdown__no-results">\n ${this.localization.noResults.replace(/{x}/gi,o(t.input))}\n </div>`,not_loading:null===this.load?null:(t,o)=>`\n <div class="stzh-dropdown__not-loading">\n ${this.localization.notLoading.replace(/{x}/gi,o(this.minCharacters.toString()))}\n </div>\n `,optgroup:t=>{let o=document.createElement("div");return o.className="stzh-dropdown__optgroup",o.appendChild(t.options),o},optgroup_header:(t,o)=>`\n <div class="stzh-dropdown__optgroup-header">\n ${o(t.label)}\n </div>\n `,loading:()=>'\n <div class="stzh-dropdown__loader">\n <stzh-loader></stzh-loader>\n </div>\n ',dropdown:()=>'<div class="stzh-dropdown__dropdown"></div>'},onChange:t=>{this._items=this.tomSelect.items,this.updateFilled(),this.stzhChange.emit({component:"stzh-dropdown",value:t})},onItemAdd:t=>{this._items=this.tomSelect.items,this.stzhItemAdd.emit({component:"stzh-dropdown",value:t})},onItemRemove:t=>{this._items=this.tomSelect.items,this.stzhItemRemove.emit({component:"stzh-dropdown",value:t})},onOptionAdd:t=>{this._options=this.tomSelect.options,this.updateFilled(),this.stzhOptionAdd.emit({component:"stzh-dropdown",value:t})},onOptionRemove:t=>{this._options=this.tomSelect.options,this.updateFilled(),this.stzhOptionRemove.emit({component:"stzh-dropdown",value:t})},onDropdownOpen:()=>{this.stzhOpen.emit({component:"stzh-dropdown"})},onDropdownClose:()=>{this.stzhClose.emit({component:"stzh-dropdown"})},onFocus:()=>{this.tomSelect.load&&"focus"===this.preload&&(this.resetLoadedSearches(),this.tomSelect.wrapper.classList.contains("preloaded")&&this.tomSelect.load("")),this.rootElement.classList.add(m);const t=new FocusEvent("focus",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(t),this.stzhFocus.emit({component:"stzh-dropdown"})},onBlur:()=>{this.rootElement.classList.remove(m);const t=new FocusEvent("blur",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(t),this.stzhBlur.emit({component:"stzh-dropdown"})},onInitialize:()=>{this.stzhInit.emit({component:"stzh-dropdown"})},onLoad:()=>{this._options=this.tomSelect.options}};this._options&&(o.options=this._options),this._optgroups&&(o.optgroups=this._optgroups),this._items&&(o.items=this._items),this.tomSelect=new h(this.select,o),this.openOnFocus||this.tomSelect.control.addEventListener("click",(()=>{this.tomSelect.open()}))}disconnectedCallback(){this.tomSelect&&(this.tomSelect.destroy(),this.tomSelect=null)}render(){var t;const o=i(this.element,"icon")||!!this.icon,s=i(this.element,"description")||!!this.description,n=i(this.element,"description-long")||!!this.descriptionLong,a=i(this.element,"error")||!!this.error,d={"stzh-dropdown":!0,"stzh-dropdown--is-inline":this.inline,"stzh-dropdown--is-multiple":this.multiple,"stzh-dropdown--is-disabled":this.disabled,"stzh-dropdown--is-required":this.required,"stzh-dropdown--is-invalid":this.invalid,[v]:this._items&&this._items.length>0,"stzh-dropdown--has-icon":o,"stzh-dropdown--has-description":s,"stzh-dropdown--has-description-long":n,"stzh-dropdown--has-error":a,"stzh-dropdown--has-fixed-label":"fixed"===(null===(t=null===window||void 0===window?void 0:window.stzhComponents)||void 0===t?void 0:t.labels),[`stzh-dropdown--popover-placement-${this.popoverPlacement}`]:!!this.popoverPlacement,[`stzh-dropdown--size-${this.size}`]:!!this.size,[`stzh-dropdown--${this.variant}`]:!!this.variant};return e(r,null,e("div",{class:d,ref:t=>this.rootElement=t},e("div",{class:"stzh-dropdown__field-wrapper"},e("select",{id:this.dropdownId,class:"stzh-dropdown__select",ref:t=>this.select=t,multiple:this.multiple,name:this.name,disabled:this.disabled,"aria-invalid":this.invalid?"true":"false","aria-describedby":`${this.dropdownId}-description ${this.a11yDescribedby}`,"aria-required":this.required?"true":"false"},e("slot",null)),e("stzh-icon",{name:"angle-down",class:"stzh-dropdown__angle-icon"}),e("div",{class:"stzh-dropdown__icon-wrapper"},this.icon?e("stzh-icon",{class:"stzh-dropdown__icon",name:this.icon}):e("slot",{name:"icon"})),e("label",{class:"stzh-dropdown__label",htmlFor:this.dropdownId},this.label?this.label:e("slot",{name:"label"}),this.showMarker&&e("span",{class:"stzh-dropdown__marker"},e("span",{class:"stzh-dropdown__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),e("span",{class:"stzh-dropdown__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),e(l,{classPrefix:"stzh-dropdown",id:`${this.dropdownId}-description`,error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:n,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel})))}get element(){return s(this)}static get watchers(){return{options:["optionsWatcher"],items:["itemsWatcher"],searchField:["searchFieldWatcher"],optgroups:["optgroupsWatcher"],error:["errorWatcher"]}}};f.style=':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-dropdown{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;--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-grey61);--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-white);--label-background:var(--stzh-color-white);--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--hover-color);--popover-width:100%;--popover-min-width:var(--stzh-popover-min-width);--popover-max-width:var(--stzh-popover-min-width);--popover-max-height:calc(6.5 * var(--stzh-menu-item-height));width:100%;border-radius:var(--stzh-form-input-border-radius);}stzh-dropdown[hidden]{display:none}stzh-dropdown *,stzh-dropdown *::before,stzh-dropdown *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-dropdown[variant=plain]{--background-color:transparent}stzh-dropdown[inline]:not([inline=false]){--popover-width:auto;width:auto}stzh-dropdown[invalid]:not([invalid=false]){--color:var(--stzh-color-error);--border-color:var(--stzh-color-error);--label-color:var(--stzh-color-error);--placeholder-color:var(--stzh-color-error);--hover-color:var(--stzh-color-error);--hover-border-color:var(--stzh-color-error)}stzh-dropdown[disabled]:not([disabled=false]){--color:var(--stzh-color-grey61);--border-color:transparent;--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-black8);--label-background:transparent;--hover-color:var(--stzh-color-grey61);--hover-border-color:transparent}stzh-dropdown[disabled]:not([disabled=false])[variant=plain]{--background-color:transparent}.stzh-dropdown__icon-wrapper stzh-icon,.stzh-dropdown__icon{--size:var(--icon-size)}.stzh-dropdown{}.stzh-dropdown__marker-symbol{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-dropdown__marker-text{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-dropdown__description-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-dropdown__error,.stzh-dropdown__description{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-dropdown__error{color:var(--stzh-color-error)}.stzh-dropdown__error-list{list-style:none;margin:0;padding:0}.stzh-dropdown__description{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-dropdown__description-long{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-dropdown__description-long-popover{--width:auto;--max-width:27.3125rem}.stzh-dropdown__description-long-popover[open]:not([open=false]) .stzh-dropdown__description-long-button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__description-long-button{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-dropdown__description-long-button:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown stzh-icon.stzh-dropdown__description-long-icon{--size:var(--stzh-icon-size-xsmall)}.stzh-dropdown--has-error .stzh-dropdown__error,.stzh-dropdown--has-description .stzh-dropdown__description{margin-top:var(--stzh-space-xxsmall)}.stzh-dropdown .ts-hidden-accessible{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-dropdown .ts-dropdown-content{max-height:var(--popover-max-height);overflow-y:auto;overflow-x:hidden;overflow-scrolling:touch;scroll-behavior:smooth}.stzh-dropdown .ts-control{overflow:hidden;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:var(--stzh-form-input-border-radius);background-color:var(--background-color);-webkit-transition-property:color, border-color;transition-property:color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown .ts-control:hover,.stzh-dropdown .ts-control:focus-within{border-color:var(--hover-border-color);outline:none}.stzh-dropdown .ts-control>*{vertical-align:baseline;display:inline-block}.stzh-dropdown .ts-control,.stzh-dropdown__sizer{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);font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;width:100%;min-height:var(--stzh-form-input-height);border:0.0625rem solid var(--border-color)}.stzh-dropdown .ts-control>input{font-size:inherit;line-height:inherit;-ms-flex:1 1 auto;flex:1 1 auto;display:inline-block;padding:0;min-height:0;max-height:none;max-width:100%;margin:0;text-indent:0;border:0 none;background:none;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.stzh-dropdown .ts-control>input::-webkit-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-ms-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-ms-clear{display:none}.stzh-dropdown .ts-control>input:focus{outline:none}.stzh-dropdown .ts-control>input:-moz-placeholder-shown{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:-ms-input-placeholder{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:placeholder-shown{text-overflow:ellipsis}.stzh-dropdown__field-wrapper,.stzh-dropdown__select{position:relative}.stzh-dropdown__icon-wrapper{position:absolute}.stzh-dropdown__select .ts-control>input,.stzh-dropdown__select.single .stzh-dropdown__item,.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-dropdown__select.multi .stzh-dropdown__item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__select:hover .ts-control>input,.stzh-dropdown__select:focus-within .ts-control>input,.stzh-dropdown__select.single:hover .stzh-dropdown__item,.stzh-dropdown__select.single:focus-within .stzh-dropdown__item,.stzh-dropdown__select:hover~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:focus-within~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:hover~.stzh-dropdown__angle-icon,.stzh-dropdown__select:focus-within~.stzh-dropdown__angle-icon,.stzh-dropdown__select:hover~.stzh-dropdown__label,.stzh-dropdown__select:focus-within~.stzh-dropdown__label{color:var(--hover-color)}.stzh-dropdown__sizer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-top:calc(var(--stzh-form-input-height) / -1);pointer-events:none;visibility:hidden}.stzh-dropdown__select.has-items~.stzh-dropdown__sizer{display:none}.stzh-dropdown__select.plugin-input_hide~.stzh-dropdown__sizer{visibility:visible}.stzh-dropdown__select.input-active .ts-control,.stzh-dropdown__select.input-active .ts-control>input{cursor:text}.stzh-dropdown__select.input-hidden .ts-control>input,.stzh-dropdown__select.plugin-input_hide .ts-control>input{opacity:0;position:absolute;left:-625rem}.stzh-dropdown__select.single .ts-control,.stzh-dropdown__select.multi .ts-control,.stzh-dropdown__sizer{padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.stzh-dropdown__icon-wrapper{display:-ms-flexbox;display:flex;left:var(--stzh-space-medium)}.stzh-dropdown stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-medium)}.stzh-dropdown__angle-icon{right:var(--stzh-space-medium)}.stzh-dropdown__label{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);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--label-color);display:block;width:auto;position:absolute;top:calc(var(--stzh-form-input-height) / 2);left:calc(var(--stzh-space-medium) + 0.0625rem);max-width:calc(100% - var(--stzh-space-medium) * 2);-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);pointer-events:none}.stzh-dropdown__label:empty{display:none}.stzh-dropdown__label::before{content:"";display:none;background:var(--label-background);position:absolute;width:100%;z-index:-1;left:0;top:50%;height:0.125rem;margin-top:-0.03125rem}.stzh-dropdown__option,.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;text-decoration:none;outline:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--stzh-color-grey70);height:var(--stzh-menu-item-height);line-height:var(--stzh-menu-item-height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown__option:hover,.stzh-dropdown__option.active,.stzh-dropdown__create:hover,.stzh-dropdown__create.active{background-color:var(--stzh-color-grey5)}.stzh-dropdown__option.selected,.stzh-dropdown__create.selected{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover,.stzh-dropdown__option.selected.active,.stzh-dropdown__create.selected:hover,.stzh-dropdown__create.selected.active{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown__option input,.stzh-dropdown__create input{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-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:block}.stzh-dropdown__option-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-dropdown__option[data-selectable] .highlight{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-dropdown__select .stzh-dropdown__option-check{display:none;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover .stzh-dropdown__option-check,.stzh-dropdown__option.selected.active .stzh-dropdown__option-check{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-dropdown__no-results{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.stzh-dropdown__no-results,.stzh-dropdown__not-loading{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large)}.stzh-dropdown__optgroup-header{cursor:default}.stzh-dropdown__loader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.375rem}.stzh-dropdown__dropdown{position:absolute;top:100%;left:0;width:var(--popover-width);margin-top:var(--stzh-space-xsmall);background-color:var(--stzh-color-white);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);z-index:var(--stzh-z-index-popover);border-radius:var(--stzh-popover-border-radius);overflow:hidden}@media screen and (min-width: 600px){.stzh-dropdown__dropdown{min-width:var(--popover-min-width);max-width:var(--popover-max-width)}}.stzh-dropdown__select.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.stzh-dropdown__select.plugin-input_autogrow.has-items.focus .ts-control>input{-ms-flex:none;flex:none;min-width:0.25rem}.stzh-dropdown__select.has-items .ts-control>input{margin:0 0.25rem}.stzh-dropdown__select.has-items .ts-control>input::-webkit-input-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input::-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-ms-input-placeholder{color:transparent}.stzh-dropdown--is-multiple .stzh-dropdown__option-check{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);margin-right:var(--stzh-space-xsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__option{padding-left:var(--stzh-space-small)}.stzh-dropdown--is-multiple .stzh-dropdown__option.selected .stzh-dropdown__option-check{opacity:1}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control{padding-top:calc(var(--stzh-space-xsmall) - 0.0625rem);padding-bottom:calc(var(--stzh-space-xsmall) - 0.0625rem)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);position:relative;height:1.5rem;line-height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border-radius:0.75rem;padding:0 var(--stzh-space-medium);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:0.0625rem solid transparent;background-color:var(--stzh-color-grey5);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);margin:var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) 0;cursor:pointer}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item.active{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-right:calc(1.5rem + var(--stzh-space-xxsmall))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{position:absolute;top:50%;right:-0.0625rem;-webkit-transform:translateY(-50%);transform:translateY(-50%);text-decoration:none;width:1.5rem;height:1.5rem;border-radius:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-left:var(--stzh-space-xxsmall);color:var(--stzh-base-lead-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__remove-icon{--size:var(--stzh-icon-size-xxsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item.active .stzh-dropdown__remove-icon{color:var(--stzh-color-white)}.stzh-dropdown--popover-placement-top .stzh-dropdown__dropdown{margin-top:0;top:auto;bottom:100%;margin-bottom:var(--stzh-space-xsmall)}.stzh-dropdown--popover-placement-top.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-bottom:0}.stzh-dropdown--size-small .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-dropdown--size-small .ts-control{min-height:var(--stzh-form-input-small-height)}.stzh-dropdown--size-small .stzh-dropdown__sizer{min-height:initial;height:var(--stzh-form-input-small-height);margin-top:calc(var(--stzh-form-input-small-height) / -1)}.stzh-dropdown--size-small .stzh-dropdown__label{top:calc(var(--stzh-form-input-small-height) / 2)}.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{padding:var(--stzh-space-xxsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--size-small stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-small)}.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--plain .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain .stzh-dropdown__sizer{border:none;padding-left:0;padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--plain .stzh-dropdown__icon-wrapper{left:0}.stzh-dropdown--plain .stzh-dropdown__angle-icon{right:0}.stzh-dropdown--plain .stzh-dropdown__label{left:0;max-width:100%;padding:0}.stzh-dropdown--plain .stzh-dropdown__label::before{content:none}.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-top:0}.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__sizer{padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--has-focus .stzh-dropdown__label{top:0;left:calc(var(--stzh-space-medium) - var(--stzh-space-xxsmall));height:1.25rem;line-height:1.25rem;padding:0 var(--stzh-space-xxsmall);max-width:calc(100% - (var(--stzh-space-medium) - var(--stzh-space-xxsmall)) * 2);pointer-events:all}.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before{display:block}.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label{left:0;padding:0;max-width:100%}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{cursor:not-allowed}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-grey25);background-color:var(--stzh-color-white);border-color:var(--stzh-base-border-color)}.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-grey13);background-color:transparent}';export{f as stzh_dropdown}
9
+ const t={},o={"/":"⁄∕",0:"߀",a:"ⱥɐɑ",aa:"ꜳ",ae:"æǽǣ",ao:"ꜵ",au:"ꜷ",av:"ꜹꜻ",ay:"ꜽ",b:"ƀɓƃ",c:"ꜿƈȼↄ",d:"đɗɖᴅƌꮷԁɦ",e:"ɛǝᴇɇ",f:"ꝼƒ",g:"ǥɠꞡᵹꝿɢ",h:"ħⱨⱶɥ",i:"ɨı",j:"ɉȷ",k:"ƙⱪꝁꝃꝅꞣ",l:"łƚɫⱡꝉꝇꞁɭ",m:"ɱɯϻ",n:"ꞥƞɲꞑᴎлԉ",o:"øǿɔɵꝋꝍᴑ",oe:"œ",oi:"ƣ",oo:"ꝏ",ou:"ȣ",p:"ƥᵽꝑꝓꝕρ",q:"ꝗꝙɋ",r:"ɍɽꝛꞧꞃ",s:"ßȿꞩꞅʂ",t:"ŧƭʈⱦꞇ",th:"þ",tz:"ꜩ",u:"ʉ",v:"ʋꝟʌ",vy:"ꝡ",w:"ⱳ",y:"ƴɏỿ",z:"ƶȥɀⱬꝣ",hv:"ƕ"};for(let n in o){let e=o[n]||"";for(let o=0;o<e.length;o++)t[e.substring(o,o+1)]=n}new RegExp(Object.keys(t).join("|")+"|[̀-ͯ·ʾʼ]","gu");const e=t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(r(t)){var o=document.createElement("template");return o.innerHTML=t.trim(),o.content.firstChild}return document.querySelector(t)},r=t=>"string"==typeof t&&t.indexOf("<")>-1,s=(t,o=!1)=>{t&&(t.preventDefault(),o&&t.stopPropagation())},i=(t,o,e,r)=>{t.addEventListener(o,e,r)};return function(t){const o=Object.assign({label:"&times;",title:"Remove",className:"remove",append:!0},t);var r=this;if(o.append){var n='<a href="javascript:void(0)" class="'+o.className+'" tabindex="-1" title="'+((o.title+"").replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;")+'">')+o.label+"</a>";r.hook("after","setupTemplates",(()=>{var t=r.settings.render.item;r.settings.render.item=(o,l)=>{var a=e(t.call(r,o,l)),d=e(n);return a.appendChild(d),i(d,"mousedown",(t=>{s(t,!0)})),i(d,"click",(t=>{s(t,!0),r.isLocked||r.shouldDelete([a],t)&&(r.removeItem(a),r.refreshOptions(!1),r.inputState())})),a}}))}}}()})),c=a((function(t){t.exports=function(){const t=t=>"boolean"==typeof t?t?"1":"0":t+"",o=(t,o=!1)=>{t&&(t.preventDefault(),o&&t.stopPropagation())},e={},r={"/":"⁄∕",0:"߀",a:"ⱥɐɑ",aa:"ꜳ",ae:"æǽǣ",ao:"ꜵ",au:"ꜷ",av:"ꜹꜻ",ay:"ꜽ",b:"ƀɓƃ",c:"ꜿƈȼↄ",d:"đɗɖᴅƌꮷԁɦ",e:"ɛǝᴇɇ",f:"ꝼƒ",g:"ǥɠꞡᵹꝿɢ",h:"ħⱨⱶɥ",i:"ɨı",j:"ɉȷ",k:"ƙⱪꝁꝃꝅꞣ",l:"łƚɫⱡꝉꝇꞁɭ",m:"ɱɯϻ",n:"ꞥƞɲꞑᴎлԉ",o:"øǿɔɵꝋꝍᴑ",oe:"œ",oi:"ƣ",oo:"ꝏ",ou:"ȣ",p:"ƥᵽꝑꝓꝕρ",q:"ꝗꝙɋ",r:"ɍɽꝛꞧꞃ",s:"ßȿꞩꞅʂ",t:"ŧƭʈⱦꞇ",th:"þ",tz:"ꜩ",u:"ʉ",v:"ʋꝟʌ",vy:"ꝡ",w:"ⱳ",y:"ƴɏỿ",z:"ƶȥɀⱬꝣ",hv:"ƕ"};for(let i in r){let t=r[i]||"";for(let o=0;o<t.length;o++)e[t.substring(o,o+1)]=i}new RegExp(Object.keys(e).join("|")+"|[̀-ͯ·ʾʼ]","gu");const s=t=>"string"==typeof t&&t.indexOf("<")>-1;return function(){var e=this,r=e.onOptionSelect;e.settings.hideSelected=!1;var i=function(t){setTimeout((()=>{var o=t.querySelector("input");o instanceof HTMLInputElement&&(o.checked=!!t.classList.contains("selected"))}),1)};e.hook("after","setupTemplates",(()=>{var r=e.settings.render.option;e.settings.render.option=(i,n)=>{var l=(t=>{if(t.jquery)return t[0];if(t instanceof HTMLElement)return t;if(s(t)){var o=document.createElement("template");return o.innerHTML=t.trim(),o.content.firstChild}return document.querySelector(t)})(r.call(e,i,n)),a=document.createElement("input");a.addEventListener("click",(function(t){o(t)})),a.type="checkbox";const d=null==(h=i[e.settings.valueField])?null:t(h);var h;return d&&e.items.indexOf(d)>-1&&(a.checked=!0),l.prepend(a),l}})),e.on("item_remove",(t=>{var o=e.getOption(t);o&&(o.classList.remove("selected"),i(o))})),e.on("item_add",(t=>{var o=e.getOption(t);o&&i(o)})),e.hook("instead","onOptionSelect",((t,s)=>{if(s.classList.contains("selected"))return s.classList.remove("selected"),e.removeItem(s.dataset.value),e.refreshOptions(),void o(t,!0);r.call(e,t,s),i(s)}))}}()})),u=a((function(t){t.exports=function(){const t=(t,o,e,r)=>{t.addEventListener(o,e,r)};return function(){var o=this;o.on("initialize",(()=>{var e=document.createElement("span"),r=o.control_input;e.style.cssText="position:absolute; top:-99999px; left:-99999px; width:auto; padding:0; white-space:pre; ",o.wrapper.appendChild(e);for(const t of["letterSpacing","fontSize","fontFamily","fontWeight","textTransform"])e.style[t]=r.style[t];var s=()=>{e.textContent=r.value,r.style.width=e.clientWidth+"px"};s(),o.on("update item_add item_remove",s),t(r,"input",s),t(r,"keyup",s),t(r,"blur",s),t(r,"update",s)}))}}()})),z=a((function(t){t.exports=function(){var t=this,o=t.deleteSelection;this.hook("instead","deleteSelection",(e=>!!t.activeItems.length&&o.call(t,e)))}}));const v="stzh-dropdown--is-filled",m="stzh-dropdown--has-focus";h.define("remove_button",p),h.define("checkbox_options",c),h.define("input_autogrow",u),h.define("no_backspace_delete",z),h.define("input_readonly",(function(){const t=this;t.on("initialize",(()=>{const o=t.control_input;o&&(o.readOnly=!0)}))}));let w=0;const f=class{constructor(e){t(this,e),this.stzhChange=o(this,"stzhChange",7),this.stzhItemAdd=o(this,"stzhItemAdd",7),this.stzhItemRemove=o(this,"stzhItemRemove",7),this.stzhOptionAdd=o(this,"stzhOptionAdd",7),this.stzhOptionRemove=o(this,"stzhOptionRemove",7),this.stzhOpen=o(this,"stzhOpen",7),this.stzhClose=o(this,"stzhClose",7),this.stzhFocus=o(this,"stzhFocus",7),this.stzhBlur=o(this,"stzhBlur",7),this.stzhInit=o(this,"stzhInit",7),this.options=void 0,this.optgroups=void 0,this.items=void 0,this.searchField=["text"],this.multiple=!1,this.inline=!1,this.maxOptions=50,this.searchConjunction="and",this.allowEmptyOption=!1,this.openOnFocus=!0,this.closeAfterSelect=null,this.load=null,this.minCharacters=3,this.loadThrottle=300,this.preload=!1,this.labelField="text",this.valueField="value",this.optgroupField="optgroup",this.optgroupLabelField="label",this.optgroupValueField="value",this.lockOptgroupOrder=void 0,this.name="",this.variant="default",this.size="default",this.disabled=!1,this.popoverPlacement="bottom",this.label="",this.icon="",this.noSearch=!1,this.noBackspaceDelete=!1,this.invalid=!1,this.required=!1,this.showMarker=!1,this.description=void 0,this.descriptionLong=void 0,this.error=void 0,this.localization=void 0,this.a11yDescribedby=""}optionsWatcher(t){this._options="string"==typeof t?JSON.parse(t):t}itemsWatcher(t){this._items="string"==typeof t?JSON.parse(t):t}searchFieldWatcher(t){this._searchField="string"==typeof t?JSON.parse(t):t}optgroupsWatcher(t){this._optgroups="string"==typeof t?JSON.parse(t):t}errorWatcher(t){if("string"==typeof t)try{this._error=JSON.parse(t)}catch(o){this._error=t?[t]:[]}else this._error=t||[];this.invalid=this._error.length>0}async getValue(){return this.tomSelect.getValue()}async setValue(t,o=!1){this.tomSelect.setValue(t,o)}async setFocus(){this.tomSelect.focus()}async resetLoadedSearches(){this.tomSelect.loadedSearches={}}async getLoadedSearches(){return this.tomSelect.loadedSearches}async getItems(){return this.tomSelect.items}async loadItems(t){return this.tomSelect.load(t)}updateFilled(){this._items.length>0?this.rootElement.classList.add(v):this.rootElement.classList.remove(v)}async componentWillLoad(){this.dropdownId="stzh-dropdown-"+w++,this.optionsWatcher(this.options),this.optgroupsWatcher(this.optgroups),this.itemsWatcher(this.items),this.searchFieldWatcher(this.searchField),this.errorWatcher(this.error),this.localization||(this.localization=await n(this.element,"dropdown"))}async componentWillUpdate(){this.tomSelect&&(this.tomSelect.destroy(),this.tomSelect=null)}async componentDidRender(){if(this.tomSelect)return;const t={};this.noSearch?t.input_readonly={}:t.input_autogrow={},this.noBackspaceDelete&&(t.no_backspace_delete={}),this.multiple&&(t.checkbox_options={},t.remove_button={title:this.localization.removeButtonTitle,label:'<stzh-icon name="close" class="stzh-dropdown__remove-icon"></stzh-icon>'});const o={plugins:t,maxItems:this.multiple?null:1,maxOptions:this.maxOptions,items:this._items,optgroups:this._optgroups,searchField:this._searchField,searchConjunction:this.searchConjunction,allowEmptyOption:this.allowEmptyOption,closeAfterSelect:null!==this.closeAfterSelect?this.closeAfterSelect:!this.multiple,labelField:this.labelField,valueField:this.valueField,optgroupField:this.optgroupField,optgroupLabelField:this.optgroupLabelField,optgroupValueField:this.optgroupValueField,lockOptgroupOrder:this.lockOptgroupOrder,load:this.load,shouldLoad:t=>t.length>=this.minCharacters,loadThrottle:this.loadThrottle,preload:this.preload,openOnFocus:this.openOnFocus,loadingClass:"is-loading",hideSelected:!1,duplicates:!1,delimiter:",",copyClassesToDropdown:!1,hidePlaceholder:null,render:{option:(t,o)=>`\n <div class="stzh-dropdown__option" title="${o(t[this.labelField])}">\n <stzh-icon name="checkmark" class="stzh-dropdown__option-check"></stzh-icon>\n <span class="stzh-dropdown__option-title">\n ${o(t[this.labelField])}\n </span>\n </div>\n `,item:(t,o)=>`\n <div class="stzh-dropdown__item">\n ${o(t[this.labelField])}\n </div>\n `,option_create:(t,o)=>`\n <div class="stzh-dropdown__create">\n ${this.localization.create.replace(/{x}/gi,o(t.input))}&hellip;\n </div>\n `,no_results:(t,o)=>`\n <div class="stzh-dropdown__no-results">\n ${this.localization.noResults.replace(/{x}/gi,o(t.input))}\n </div>`,not_loading:null===this.load?null:(t,o)=>`\n <div class="stzh-dropdown__not-loading">\n ${this.localization.notLoading.replace(/{x}/gi,o(this.minCharacters.toString()))}\n </div>\n `,optgroup:t=>{let o=document.createElement("div");return o.className="stzh-dropdown__optgroup",o.appendChild(t.options),o},optgroup_header:(t,o)=>`\n <div class="stzh-dropdown__optgroup-header">\n ${o(t.label)}\n </div>\n `,loading:()=>'\n <div class="stzh-dropdown__loader">\n <stzh-loader></stzh-loader>\n </div>\n ',dropdown:()=>'<div class="stzh-dropdown__dropdown"></div>'},onChange:t=>{this._items=this.tomSelect.items,this.updateFilled(),this.stzhChange.emit({component:"stzh-dropdown",value:t})},onItemAdd:t=>{this._items=this.tomSelect.items,this.stzhItemAdd.emit({component:"stzh-dropdown",value:t})},onItemRemove:t=>{this._items=this.tomSelect.items,this.stzhItemRemove.emit({component:"stzh-dropdown",value:t})},onOptionAdd:t=>{this._options=this.tomSelect.options,this.updateFilled(),this.stzhOptionAdd.emit({component:"stzh-dropdown",value:t})},onOptionRemove:t=>{this._options=this.tomSelect.options,this.updateFilled(),this.stzhOptionRemove.emit({component:"stzh-dropdown",value:t})},onDropdownOpen:()=>{this.stzhOpen.emit({component:"stzh-dropdown"})},onDropdownClose:()=>{this.stzhClose.emit({component:"stzh-dropdown"})},onFocus:()=>{this.tomSelect.load&&"focus"===this.preload&&(this.resetLoadedSearches(),this.tomSelect.wrapper.classList.contains("preloaded")&&this.tomSelect.load("")),this.rootElement.classList.add(m);const t=new FocusEvent("focus",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(t),this.stzhFocus.emit({component:"stzh-dropdown"})},onBlur:()=>{this.rootElement.classList.remove(m);const t=new FocusEvent("blur",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(t),this.stzhBlur.emit({component:"stzh-dropdown"})},onInitialize:()=>{this.stzhInit.emit({component:"stzh-dropdown"})},onLoad:()=>{this._options=this.tomSelect.options}};this._options&&(o.options=this._options),this._optgroups&&(o.optgroups=this._optgroups),this._items&&(o.items=this._items),this.tomSelect=new h(this.select,o),this.openOnFocus||this.tomSelect.control.addEventListener("click",(()=>{this.tomSelect.open()}))}disconnectedCallback(){this.tomSelect&&(this.tomSelect.destroy(),this.tomSelect=null)}render(){var t;const o=i(this.element,"icon")||!!this.icon,s=i(this.element,"description")||!!this.description,n=i(this.element,"description-long")||!!this.descriptionLong,a=i(this.element,"error")||!!this.error,d={"stzh-dropdown":!0,"stzh-dropdown--is-inline":this.inline,"stzh-dropdown--is-multiple":this.multiple,"stzh-dropdown--is-disabled":this.disabled,"stzh-dropdown--is-required":this.required,"stzh-dropdown--is-invalid":this.invalid,[v]:this._items&&this._items.length>0,"stzh-dropdown--has-icon":o,"stzh-dropdown--has-description":s,"stzh-dropdown--has-description-long":n,"stzh-dropdown--has-error":a,"stzh-dropdown--has-fixed-label":"fixed"===(null===(t=null===window||void 0===window?void 0:window.stzhComponents)||void 0===t?void 0:t.labels),[`stzh-dropdown--popover-placement-${this.popoverPlacement}`]:!!this.popoverPlacement,[`stzh-dropdown--size-${this.size}`]:!!this.size,[`stzh-dropdown--${this.variant}`]:!!this.variant};return e(r,null,e("div",{class:d,ref:t=>this.rootElement=t},e("div",{class:"stzh-dropdown__field-wrapper"},e("select",{id:this.dropdownId,class:"stzh-dropdown__select",ref:t=>this.select=t,multiple:this.multiple,name:this.name,disabled:this.disabled,"aria-invalid":this.invalid?"true":"false","aria-describedby":`${this.dropdownId}-description ${this.a11yDescribedby}`,"aria-required":this.required?"true":"false"},e("slot",null)),e("stzh-icon",{name:"angle-down",class:"stzh-dropdown__angle-icon"}),e("div",{class:"stzh-dropdown__icon-wrapper"},this.icon?e("stzh-icon",{class:"stzh-dropdown__icon",name:this.icon}):e("slot",{name:"icon"})),e("label",{class:"stzh-dropdown__label",htmlFor:this.dropdownId},this.label?this.label:e("slot",{name:"label"}),this.showMarker&&e("span",{class:"stzh-dropdown__marker"},e("span",{class:"stzh-dropdown__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),e("span",{class:"stzh-dropdown__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),e(l,{classPrefix:"stzh-dropdown",id:`${this.dropdownId}-description`,error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:n,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel})))}get element(){return s(this)}static get watchers(){return{options:["optionsWatcher"],items:["itemsWatcher"],searchField:["searchFieldWatcher"],optgroups:["optgroupsWatcher"],error:["errorWatcher"]}}};f.style=':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-dropdown{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;--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-color:var(--stzh-color-grey61);--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-white);--label-background:var(--stzh-color-white);--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--hover-color);--popover-width:100%;--popover-min-width:var(--stzh-popover-min-width);--popover-max-width:var(--stzh-popover-min-width);--popover-max-height:calc(6.5 * var(--stzh-menu-item-height));width:100%;border-radius:var(--stzh-form-input-border-radius);}stzh-dropdown[hidden]{display:none}stzh-dropdown *,stzh-dropdown *::before,stzh-dropdown *::after{-webkit-box-sizing:border-box;box-sizing:border-box}stzh-dropdown[variant=plain]{--background-color:transparent}stzh-dropdown[inline]:not([inline=false]){--popover-width:auto;width:auto}stzh-dropdown[invalid]:not([invalid=false]){--color:var(--stzh-color-error);--border-color:var(--stzh-color-error);--label-color:var(--stzh-color-error);--placeholder-color:var(--stzh-color-error);--hover-color:var(--stzh-color-error);--hover-border-color:var(--stzh-color-error)}stzh-dropdown[disabled]:not([disabled=false]){--color:var(--stzh-color-grey61);--border-color:transparent;--label-color:var(--stzh-color-grey61);--placeholder-color:var(--stzh-color-grey61);--background-color:var(--stzh-color-black8);--label-background:transparent;--hover-color:var(--stzh-color-grey61);--hover-border-color:transparent}stzh-dropdown[disabled]:not([disabled=false])[variant=plain]{--background-color:transparent}.stzh-dropdown__icon-wrapper stzh-icon,.stzh-dropdown__icon{--size:var(--icon-size)}.stzh-dropdown{}.stzh-dropdown__marker-symbol{font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal}.stzh-dropdown__marker-text{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-dropdown__description-wrapper{display:-ms-flexbox;display:flex;-ms-flex-direction:column-reverse;flex-direction:column-reverse}.stzh-dropdown__error,.stzh-dropdown__description{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);color:var(--stzh-base-color)}.stzh-dropdown__error{color:var(--stzh-color-error)}.stzh-dropdown__error-list{list-style:none;margin:0;padding:0}.stzh-dropdown__description{display:-ms-flexbox;display:flex;-ms-flex-align:start;align-items:flex-start}.stzh-dropdown__description-long{margin-left:var(--stzh-space-xxsmall);margin-top:0.1875rem}.stzh-dropdown__description-long-popover{--width:auto;--max-width:27.3125rem}.stzh-dropdown__description-long-popover[open]:not([open=false]) .stzh-dropdown__description-long-button{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__description-long-button{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-dropdown__description-long-button:hover{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown stzh-icon.stzh-dropdown__description-long-icon{--size:var(--stzh-icon-size-xsmall)}.stzh-dropdown--has-error .stzh-dropdown__error,.stzh-dropdown--has-description .stzh-dropdown__description{margin-top:var(--stzh-space-xxsmall)}.stzh-dropdown .ts-hidden-accessible{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-dropdown .ts-dropdown-content{max-height:var(--popover-max-height);overflow-y:auto;overflow-x:hidden;overflow-scrolling:touch;scroll-behavior:smooth}.stzh-dropdown .ts-control{overflow:hidden;position:relative;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-wrap:wrap;flex-wrap:wrap;border-radius:var(--stzh-form-input-border-radius);background-color:var(--background-color);-webkit-transition-property:color, border-color;transition-property:color, border-color;-webkit-transition-duration:var(--stzh-base-transition-animation-speed);transition-duration:var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown .ts-control:hover,.stzh-dropdown .ts-control:focus-within{border-color:var(--hover-border-color);outline:none}.stzh-dropdown .ts-control>*{vertical-align:baseline;display:inline-block}.stzh-dropdown .ts-control,.stzh-dropdown__sizer{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);font-family:var(--stzh-font-family-regular);font-weight:var(--stzh-font-weight-regular);font-style:normal;width:100%;min-height:var(--stzh-form-input-height);border:0.0625rem solid var(--border-color)}.stzh-dropdown .ts-control>input{font-size:inherit;line-height:inherit;-ms-flex:1 1 auto;flex:1 1 auto;display:inline-block;padding:0;min-height:0;max-height:none;max-width:100%;margin:0;text-indent:0;border:0 none;background:none;-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto;-webkit-box-shadow:none;box-shadow:none;cursor:pointer}.stzh-dropdown .ts-control>input::-webkit-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-moz-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input:-ms-input-placeholder{color:var(--placeholder-color)}.stzh-dropdown .ts-control>input::-ms-clear{display:none}.stzh-dropdown .ts-control>input:focus{outline:none}.stzh-dropdown .ts-control>input:-moz-placeholder-shown{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:-ms-input-placeholder{text-overflow:ellipsis}.stzh-dropdown .ts-control>input:placeholder-shown{text-overflow:ellipsis}.stzh-dropdown__field-wrapper,.stzh-dropdown__select{position:relative}.stzh-dropdown__icon-wrapper{position:absolute}.stzh-dropdown__select .ts-control>input,.stzh-dropdown__select.single .stzh-dropdown__item,.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{color:var(--color);-webkit-transition:color var(--stzh-base-transition-animation-speed);transition:color var(--stzh-base-transition-animation-speed)}.stzh-dropdown__select.multi .stzh-dropdown__item{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__select:hover .ts-control>input,.stzh-dropdown__select:focus-within .ts-control>input,.stzh-dropdown__select.single:hover .stzh-dropdown__item,.stzh-dropdown__select.single:focus-within .stzh-dropdown__item,.stzh-dropdown__select:hover~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:focus-within~.stzh-dropdown__icon-wrapper,.stzh-dropdown__select:hover~.stzh-dropdown__angle-icon,.stzh-dropdown__select:focus-within~.stzh-dropdown__angle-icon,.stzh-dropdown__select:hover~.stzh-dropdown__label,.stzh-dropdown__select:focus-within~.stzh-dropdown__label{color:var(--hover-color)}.stzh-dropdown__sizer{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;margin-top:calc(var(--stzh-form-input-height) / -1);pointer-events:none;visibility:hidden}.stzh-dropdown__select.has-items~.stzh-dropdown__sizer{display:none}.stzh-dropdown__select.plugin-input_hide~.stzh-dropdown__sizer{visibility:visible}.stzh-dropdown__select.input-active .ts-control,.stzh-dropdown__select.input-active .ts-control>input{cursor:text}.stzh-dropdown__select.input-hidden .ts-control>input,.stzh-dropdown__select.plugin-input_hide .ts-control>input{opacity:0;position:absolute;left:-625rem}.stzh-dropdown__select.single .ts-control,.stzh-dropdown__select.multi .ts-control,.stzh-dropdown__sizer{padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown__icon-wrapper,.stzh-dropdown__angle-icon{position:absolute;top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%);pointer-events:none}.stzh-dropdown__icon-wrapper{display:-ms-flexbox;display:flex;left:var(--stzh-space-medium)}.stzh-dropdown stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-medium)}.stzh-dropdown__angle-icon{right:var(--stzh-space-medium)}.stzh-dropdown__label{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);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--label-color);display:block;width:auto;position:absolute;top:calc(var(--stzh-form-input-height) / 2);left:calc(var(--stzh-space-medium) + 0.0625rem);max-width:calc(100% - var(--stzh-space-medium) * 2);-webkit-transform:translateY(-50%);transform:translateY(-50%);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);pointer-events:none}.stzh-dropdown__label:empty{display:none}.stzh-dropdown__label::before{content:"";display:none;background:var(--label-background);position:absolute;width:100%;z-index:-1;left:0;top:50%;height:0.125rem;margin-top:-0.5px}.stzh-dropdown__option,.stzh-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;text-decoration:none;outline:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--stzh-color-grey70);height:var(--stzh-menu-item-height);line-height:var(--stzh-menu-item-height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-dropdown__option:hover,.stzh-dropdown__option.active,.stzh-dropdown__create:hover,.stzh-dropdown__create.active{background-color:var(--stzh-color-grey5)}.stzh-dropdown__option.selected,.stzh-dropdown__create.selected{color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover,.stzh-dropdown__option.selected.active,.stzh-dropdown__create.selected:hover,.stzh-dropdown__create.selected.active{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown__option input,.stzh-dropdown__create input{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-dropdown__create{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);display:block}.stzh-dropdown__option-title{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-dropdown__option[data-selectable] .highlight{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal}.stzh-dropdown__select .stzh-dropdown__option-check{display:none;color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown__option.selected:hover .stzh-dropdown__option-check,.stzh-dropdown__option.selected.active .stzh-dropdown__option-check{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-dropdown__no-results{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.stzh-dropdown__no-results,.stzh-dropdown__not-loading{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large)}.stzh-dropdown__optgroup-header{cursor:default}.stzh-dropdown__loader{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;height:2.375rem}.stzh-dropdown__dropdown{position:absolute;top:100%;left:0;width:var(--popover-width);margin-top:var(--stzh-space-xsmall);background-color:var(--stzh-color-white);-webkit-box-shadow:var(--stzh-box-shadow-popover);box-shadow:var(--stzh-box-shadow-popover);z-index:var(--stzh-z-index-popover);border-radius:var(--stzh-popover-border-radius);overflow:hidden}@media screen and (min-width: 600px){.stzh-dropdown__dropdown{min-width:var(--popover-min-width);max-width:var(--popover-max-width)}}.stzh-dropdown__select.plugin-input_autogrow.has-items .ts-control>input{min-width:0}.stzh-dropdown__select.plugin-input_autogrow.has-items.focus .ts-control>input{-ms-flex:none;flex:none;min-width:0.25rem}.stzh-dropdown__select.has-items .ts-control>input{margin:0 0.25rem}.stzh-dropdown__select.has-items .ts-control>input::-webkit-input-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input::-moz-placeholder{color:transparent}.stzh-dropdown__select.has-items .ts-control>input:-ms-input-placeholder{color:transparent}.stzh-dropdown--is-multiple .stzh-dropdown__option-check{display:-ms-inline-flexbox;display:inline-flex;opacity:0;-webkit-transition:opacity var(--stzh-base-transition-animation-speed);transition:opacity var(--stzh-base-transition-animation-speed);margin-right:var(--stzh-space-xsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__option{padding-left:var(--stzh-space-small)}.stzh-dropdown--is-multiple .stzh-dropdown__option.selected .stzh-dropdown__option-check{opacity:1}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi.has-items .ts-control{padding-top:calc(var(--stzh-space-xsmall) - 0.0625rem);padding-bottom:calc(var(--stzh-space-xsmall) - 0.0625rem)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);position:relative;height:1.5rem;line-height:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-align:center;align-items:center;border-radius:0.75rem;padding:0 var(--stzh-space-medium);-webkit-appearance:none;-moz-appearance:none;appearance:none;font-family:inherit;border:0.0625rem solid transparent;background-color:var(--stzh-color-grey5);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);margin:var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) var(--stzh-space-xxsmall) 0;cursor:pointer}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.multi .stzh-dropdown__item.active{color:var(--stzh-color-white);background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;padding-right:calc(1.5rem + var(--stzh-space-xxsmall))}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{position:absolute;top:50%;right:-0.0625rem;-webkit-transform:translateY(-50%);transform:translateY(-50%);text-decoration:none;width:1.5rem;height:1.5rem;border-radius:1.5rem;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;margin-left:var(--stzh-space-xxsmall);color:var(--stzh-base-lead-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));background-color:var(--stzh-color-primary8)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__remove-icon{--size:var(--stzh-icon-size-xxsmall)}.stzh-dropdown--is-multiple .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item.active .stzh-dropdown__remove-icon{color:var(--stzh-color-white)}.stzh-dropdown--popover-placement-top .stzh-dropdown__dropdown{margin-top:0;top:auto;bottom:100%;margin-bottom:var(--stzh-space-xsmall)}.stzh-dropdown--popover-placement-top.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-bottom:0}.stzh-dropdown--size-small .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-dropdown--size-small .ts-control{min-height:var(--stzh-form-input-small-height)}.stzh-dropdown--size-small .stzh-dropdown__sizer{min-height:initial;height:var(--stzh-form-input-small-height);margin-top:calc(var(--stzh-form-input-small-height) / -1)}.stzh-dropdown--size-small .stzh-dropdown__label{top:calc(var(--stzh-form-input-small-height) / 2)}.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--size-small .stzh-dropdown__sizer{padding:var(--stzh-space-xxsmall) var(--stzh-space-medium);padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--size-small stzh-icon.stzh-dropdown__angle-icon{--size:var(--stzh-icon-size-small)}.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-medium) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--plain .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain .stzh-dropdown__sizer{border:none;padding-left:0;padding-right:calc(var(--stzh-icon-size-medium) + var(--stzh-space-xsmall))}.stzh-dropdown--plain .stzh-dropdown__icon-wrapper{left:0}.stzh-dropdown--plain .stzh-dropdown__angle-icon{right:0}.stzh-dropdown--plain .stzh-dropdown__label{left:0;max-width:100%;padding:0}.stzh-dropdown--plain .stzh-dropdown__label::before{content:none}.stzh-dropdown--plain .stzh-dropdown__dropdown{margin-top:0}.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--size-small .stzh-dropdown__sizer{padding-right:calc(var(--stzh-icon-size-small) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.single .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__select.multi .ts-control,.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__sizer{padding-left:calc(var(--icon-size) + var(--stzh-space-xsmall))}.stzh-dropdown--plain.stzh-dropdown--has-icon .stzh-dropdown__label{left:calc(var(--icon-size) + var(--stzh-space-xsmall) + 0.0625rem)}.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--has-focus .stzh-dropdown__label{top:0;left:calc(var(--stzh-space-medium) - var(--stzh-space-xxsmall));height:1.25rem;line-height:1.25rem;padding:0 var(--stzh-space-xxsmall);max-width:calc(100% - (var(--stzh-space-medium) - var(--stzh-space-xxsmall)) * 2);pointer-events:all}.stzh-dropdown--has-fixed-label .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-filled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-disabled .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--is-invalid .stzh-dropdown__label:not(:empty)::before,.stzh-dropdown--has-focus .stzh-dropdown__label:not(:empty)::before{display:block}.stzh-dropdown--plain.stzh-dropdown--has-fixed-label .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-filled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-disabled .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--is-invalid .stzh-dropdown__label,.stzh-dropdown--plain.stzh-dropdown--has-focus .stzh-dropdown__label{left:0;padding:0;max-width:100%}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove{cursor:not-allowed}.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item,.stzh-dropdown--is-disabled .stzh-dropdown__select.multi .stzh-dropdown__item:hover{color:var(--stzh-color-grey25);background-color:var(--stzh-color-white);border-color:var(--stzh-base-border-color)}.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove,.stzh-dropdown--is-disabled .stzh-dropdown__select.plugin-remove_button .stzh-dropdown__item .remove:hover{color:var(--stzh-color-grey13);background-color:transparent}';export{f as stzh_dropdown}
@@ -0,0 +1 @@
1
+ import{r as t,h as s,c as o,e as r,F as e,g as n}from"./p-99a3742a.js";import{h as i}from"./p-5c697491.js";import{f as h}from"./p-25a09313.js";const a=class{constructor(s){t(this,s),this.label="",this.type="default"}render(){return s(o,null,s("div",{class:{"stzh-badge":!0,[`stzh-badge--type-${this.type}`]:!!this.type}},this.label))}};a.style=".sc-stzh-badge-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-badge-h{display:none}.sc-stzh-badge-h *.sc-stzh-badge,.sc-stzh-badge-h *.sc-stzh-badge::before,.sc-stzh-badge-h *.sc-stzh-badge::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-badge-h{--color:var(--stzh-color-white);--background-color:var(--stzh-base-color);display:-ms-inline-flexbox;display:inline-flex}[type=success].sc-stzh-badge-h{--background-color:var(--stzh-color-truegreen)}[type=warning].sc-stzh-badge-h{--color:var(--stzh-color-grey87);--background-color:var(--stzh-color-warning)}[type=error].sc-stzh-badge-h{--background-color:var(--stzh-color-error)}[type=info].sc-stzh-badge-h{--background-color:var(--stzh-color-zueriblue)}.stzh-badge.sc-stzh-badge{font-family:var(--stzh-font-family-heavy);font-weight:var(--stzh-font-weight-heavy);font-style:normal;-webkit-box-sizing:content-box;box-sizing:content-box;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;min-width:0.625rem;font-size:0.625rem;line-height:1.4;-webkit-box-shadow:0 0 0 0.0625rem #fff;box-shadow:0 0 0 0.0625rem #fff;border-radius:0.875rem;padding:0.0625rem 0.375rem;background-color:var(--background-color);color:var(--color);text-transform:uppercase}.stzh-badge.sc-stzh-badge:empty{width:0.875rem;height:0.875rem;padding:0}";const c=class{constructor(s){t(this,s),this.stzhFocus=r(this,"stzhFocus",7),this.stzhBlur=r(this,"stzhBlur",7),this.stzhChange=r(this,"stzhChange",7),this.onInput=t=>{this.checked=this.input.checked,this.stzhChange.emit({component:"stzh-button",originalEvent:t,value:this.value,checked:this.checked})},this.onFocus=t=>{const s=new FocusEvent("focus",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(s),this.stzhFocus.emit({component:"stzh-button",originalEvent:t})},this.onBlur=t=>{const s=new FocusEvent("blur",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(s),this.stzhBlur.emit({component:"stzh-button",originalEvent:t})},this.onClick=t=>{this.disabled&&(t.stopPropagation(),t.preventDefault())},this.localization=void 0,this.badge="",this.badgeType="default",this.badgePosition="button",this.badgeEmpty=!1,this.fullwidth=!1,this.rounded=!1,this.floating=!1,this.size="default",this.textAlign="default",this.variant="default",this.icon="",this.iconPosition="left",this.checked=!1,this.name="",this.value="",this.href="",this.rel=void 0,this.target="",this.download=void 0,this.type="button",this.disabled=!1,this.active=!1,this.label="",this.effect="default",this.iconOnly=!1,this.linkAccesskey=void 0,this.a11yLabel=void 0,this.a11yDescribedby="",this.a11yExpanded=void 0,this.a11yDisabled=void 0,this.a11yControls=void 0,this.a11yTabindex=void 0}async setFocus(){this.button.focus()}renderIcon(t){return s("div",{class:"stzh-button__icon-wrapper"},this.icon?s("stzh-icon",{class:"stzh-button__icon",name:this.icon}):s("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&"icon"===this.badgePosition&&t&&s("stzh-badge",{class:"stzh-button__badge",label:this.badge,type:this.badgeType}))}renderContent(){return s("div",{class:"stzh-button__text"},this.rel&&this.rel.includes("external")&&s("div",{class:"stzh-button__vhidden"},this.localization.$globals.externalLinkLabel),this.download&&s("div",{class:"stzh-button__vhidden"},this.localization.$globals.downloadLinkLabel),this.label?this.label:s("slot",null))}renderInner(t){return s(e,null,s("div",{class:"stzh-button__inner",onClick:this.onClick},"radio"===this.type&&s("div",{class:"stzh-button__mark"},s("div",{class:"stzh-button__check"})),"left"===this.iconPosition&&this.renderIcon(t),this.renderContent(),"right"===this.iconPosition&&this.renderIcon(t)),(this.badge||this.badgeEmpty)&&("button"===this.badgePosition||!t)&&s("stzh-badge",{class:"stzh-button__badge",label:this.badge,type:this.badgeType,onClick:this.onClick}))}async componentWillLoad(){this.localization||(this.localization=await h(this.element,"button"))}render(){const t=i(this.element,"icon")||!!this.icon,r={"stzh-button":!0,"stzh-button--has-icon":t,"stzh-button--has-icon-only":this.iconOnly,"stzh-button--has-badge":!!this.badge,"stzh-button--is-floating":this.floating,"stzh-button--is-rounded":this.rounded,"stzh-button--is-fullwidth":this.fullwidth,"stzh-button--is-disabled":this.disabled,"stzh-button--is-active":this.active,[`stzh-button--effect-${this.effect}`]:!!this.effect,[`stzh-button--badge-position-${this.badgePosition}`]:!!this.badgePosition,[`stzh-button--align-${this.textAlign}`]:!!this.textAlign,[`stzh-button--size-${this.size}`]:!!this.size,[`stzh-button--type-${this.type}`]:!!this.type,[`stzh-button--${this.variant}`]:!!this.variant};return s(o,null,this.href?s("a",{ref:t=>this.button=t,href:this.disabled?null:this.href,rel:this.rel,download:this.download,target:this.target,class:r,"aria-label":this.a11yLabel,"aria-describedby":this.a11yDescribedby,"aria-disabled":void 0!==this.a11yDisabled?this.a11yDisabled?"true":"false":null,"aria-expanded":void 0!==this.a11yExpanded?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick},this.renderInner(t)):"radio"===this.type?s("label",{ref:t=>this.button=t,class:r,onClick:this.onClick},s("input",{ref:t=>this.input=t,type:"radio",class:"stzh-button__input",name:this.name,value:this.value,checked:this.checked,disabled:this.disabled,"aria-label":this.a11yLabel,"aria-describedby":this.a11yDescribedby,"aria-disabled":void 0!==this.a11yDisabled?this.a11yDisabled?"true":"false":null,"aria-expanded":void 0!==this.a11yExpanded?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick,onInput:this.onInput}),this.renderInner(t)):s("button",{ref:t=>this.button=t,class:r,type:this.type,disabled:this.disabled,"aria-label":this.a11yLabel,"aria-describedby":this.a11yDescribedby,"aria-disabled":void 0!==this.a11yDisabled?this.a11yDisabled?"true":"false":null,"aria-expanded":void 0!==this.a11yExpanded?this.a11yExpanded?"true":"false":null,"aria-controls":this.a11yControls,accessKey:this.linkAccesskey,tabindex:this.a11yTabindex,onFocus:this.onFocus,onBlur:this.onBlur,onClick:this.onClick},this.renderInner(t)))}get element(){return n(this)}};c.style='@charset "UTF-8";.sc-stzh-button-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-button-h{display:none}.sc-stzh-button-h *.sc-stzh-button,.sc-stzh-button-h *.sc-stzh-button::before,.sc-stzh-button-h *.sc-stzh-button::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-button-h{--color:var(--stzh-color-white);--background-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-width:0.0625rem;--border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--border-radius:var(--stzh-button-border-radius);--height:var(--stzh-form-input-height);--icon-size:var(--stzh-icon-size-small);--icon-text-margin:var(--stzh-space-small);--badge-icon-text-margin:calc(var(--icon-text-margin) + var(--stzh-space-xxsmall));--padding:calc(var(--stzh-space-xsmall) - 0.0625rem) var(--stzh-space-xlarge);--white-space:normal;--border-radius:var(--stzh-button-border-radius);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--floating-position:sticky;--floating-float:right;--floating-bottom:var(--stzh-space-medium);--floating-right:var(--stzh-space-medium);display:inline-block;border-radius:var(--border-radius)}@media screen and (min-width: 600px){.sc-stzh-button-h{--floating-bottom:var(--stzh-space-xlarge);--floating-right:var(--stzh-space-xlarge)}}[fullwidth].sc-stzh-button-h:not([fullwidth=false]){width:100%;display:block}[rounded].sc-stzh-button-h:not([rounded=false]){--border-radius:var(--height)}[floating].sc-stzh-button-h:not([floating=false]){position:var(--floating-position);bottom:var(--floating-bottom);right:var(--floating-right);float:var(--floating-float)}[size=small].sc-stzh-button-h{--height:var(--stzh-form-input-small-height)}[size=tiny].sc-stzh-button-h{--height:var(--stzh-form-input-tiny-height);--icon-text-margin:var(--stzh-space-xsmall);--padding:calc(var(--stzh-space-xxsmall) - 0.0625rem) var(--stzh-space-medium)}[variant=secondary].sc-stzh-button-h{--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:var(--stzh-color-white)}[variant=input].sc-stzh-button-h{--color:var(--stzh-color-grey61);--background-color:transparent;--border-color:var(--stzh-color-grey61);--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:transparent;--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}[variant=tertiary].sc-stzh-button-h{--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--background-color:transparent;--border-color:transparent;--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-button-text-hover-background);--hover-border-color:transparent}[active].sc-stzh-button-h:not([active=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}[disabled].sc-stzh-button-h:not([disabled=false]){--border-color:var(--stzh-color-grey13);--background-color:var(--stzh-color-grey13);--hover-border-color:var(--stzh-color-grey13);--hover-background-color:var(--stzh-color-grey13)}[disabled].sc-stzh-button-h:not([disabled=false])[variant=secondary],[disabled].sc-stzh-button-h:not([disabled=false])[variant=input],[disabled].sc-stzh-button-h:not([disabled=false])[variant=tertiary]{--color:var(--stzh-color-grey25);--border-color:var(--stzh-color-grey13);--background-color:transparent;--hover-color:var(--stzh-color-grey25);--hover-border-color:var(--stzh-color-grey13);--hover-background-color:transparent}@-webkit-keyframes stzh-button-effect-cta{0%,20%,50%,80%,100%{-webkit-transform:translateX(0);transform:translateX(0)}40%{-webkit-transform:translateX(-0.5rem);transform:translateX(-0.5rem)}60%{-webkit-transform:translateX(-0.25rem);transform:translateX(-0.25rem)}}@keyframes stzh-button-effect-cta{0%,20%,50%,80%,100%{-webkit-transform:translateX(0);transform:translateX(0)}40%{-webkit-transform:translateX(-0.5rem);transform:translateX(-0.5rem)}60%{-webkit-transform:translateX(-0.25rem);transform:translateX(-0.25rem)}}.sc-stzh-button-h .sc-stzh-button-s>stzh-icon,.stzh-button__icon.sc-stzh-button{--size:var(--icon-size)}.stzh-button.sc-stzh-button{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);line-height:1.25;font-family:inherit;position:relative;z-index:0;overflow:visible;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;color:var(--color);padding:var(--padding);background-color:var(--background-color);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);border-style:solid;border-width:var(--border-width);border-color:var(--border-color);cursor:pointer;text-decoration:none;width:100%;min-width:var(--height);min-height:var(--height);border-radius:var(--border-radius);text-align:left}.stzh-button.sc-stzh-button:hover{border-color:var(--hover-border-color);background-color:var(--hover-background-color);color:var(--hover-color)}.stzh-button__vhidden.sc-stzh-button{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-button__inner.sc-stzh-button{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1}.stzh-button__icon-wrapper.sc-stzh-button{display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:1em}.stzh-button__text.sc-stzh-button{overflow-wrap:break-word;word-wrap:break-word;word-break:break-word;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;white-space:var(--white-space);text-align:center}.stzh-button__icon-wrapper.sc-stzh-button:not(:empty)+.stzh-button__text.sc-stzh-button:not(:empty),.stzh-button__text.sc-stzh-button:not(:empty)+.stzh-button__icon-wrapper.sc-stzh-button:not(:empty){margin-left:var(--icon-text-margin)}.stzh-button__badge.sc-stzh-button{position:absolute;z-index:1;top:0;right:0}.stzh-button__input.sc-stzh-button{position:absolute;top:0;left:0;width:100%;height:100%;margin:0;z-index:-1;opacity:0;pointer-events:none}.stzh-button__mark.sc-stzh-button{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);width:1.25rem;height:1.25rem;margin-right:var(--stzh-space-xsmall);border-color:currentColor}.stzh-button__mark.sc-stzh-button::before{content:""}.stzh-button__check.sc-stzh-button{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-button__check.sc-stzh-button{background-color:ButtonText}}.stzh-button__input.sc-stzh-button:checked:hover~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked:focus~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button{color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-button.sc-stzh-button:hover .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:focus:hover~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked:hover~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked:focus~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button{border-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark))}.stzh-button__input.sc-stzh-button:focus~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button,.stzh-button__input.sc-stzh-button:checked~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button{border-color:var(--stzh-color-primary, var(--stzh-color-zueriblue))}.stzh-button__input.sc-stzh-button:checked~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button{opacity:1}.stzh-button--is-disabled.sc-stzh-button .stzh-button__input.sc-stzh-button~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button .stzh-button__check.sc-stzh-button{color:var(--stzh-color-grey61)}.stzh-button--is-disabled.sc-stzh-button .stzh-button__input.sc-stzh-button~.stzh-button__inner.sc-stzh-button .stzh-button__mark.sc-stzh-button{border-color:transparent}.stzh-button--is-disabled.sc-stzh-button .stzh-button__mark.sc-stzh-button{background-color:var(--stzh-color-black8)}.stzh-button--size-small.sc-stzh-button,.stzh-button--size-tiny.sc-stzh-button{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height)}.stzh-button--is-floating.sc-stzh-button{-webkit-box-shadow:var(--stzh-box-shadow-overlay);box-shadow:var(--stzh-box-shadow-overlay)}.stzh-button--badge-position-button.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button{position:static}.stzh-button__badge.sc-stzh-button,.stzh-button--badge-position-button.sc-stzh-button .stzh-button__badge.sc-stzh-button{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-button--badge-position-icon.stzh-button--has-icon.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button{position:relative}.stzh-button--badge-position-icon.stzh-button--has-icon.sc-stzh-button .stzh-button__badge.sc-stzh-button{top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-small) * -1)}.stzh-button--badge-position-icon.stzh-button--has-icon.stzh-button--has-badge.sc-stzh-button .stzh-button__icon-wrapper.sc-stzh-button:not(:empty)+.stzh-button__text.sc-stzh-button:not(:empty),.stzh-button--badge-position-icon.stzh-button--has-icon.stzh-button--has-badge.sc-stzh-button .stzh-button__text.sc-stzh-button:not(:empty)+.stzh-button__icon-wrapper.sc-stzh-button:not(:empty){margin-left:var(--badge-icon-text-margin)}.stzh-button--has-icon-only.sc-stzh-button{width:var(--height);height:var(--height);padding:0}.stzh-button--has-icon-only.sc-stzh-button .stzh-button__text.sc-stzh-button{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-button--effect-cta.sc-stzh-button:hover .stzh-button__icon-wrapper.sc-stzh-button{-webkit-animation:stzh-button-effect-cta 1s;animation:stzh-button-effect-cta 1s}.stzh-button--align-left.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:start;justify-content:flex-start}.stzh-button--align-right.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:end;justify-content:flex-end}.stzh-button--align-center.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:center;justify-content:center}.stzh-button--align-space-between.sc-stzh-button .stzh-button__inner.sc-stzh-button{-ms-flex-pack:justify;justify-content:space-between}.stzh-button--is-disabled.sc-stzh-button{cursor:not-allowed}';let l=0;const b=class{constructor(s){t(this,s),this.name="",this.a11yTitle=""}componentWillLoad(){this.iconId="stzh-icon-"+l++}render(){return s(o,null,this.name&&s("svg",{class:"stzh-icon",role:this.a11yTitle?"img":"presentation","aria-hidden":this.a11yTitle?null:"true",focusable:this.a11yTitle?"true":"false","aria-labelledby":this.a11yTitle?`${this.iconId}-title`:null},this.a11yTitle&&s("title",{id:`${this.iconId}-title`},this.a11yTitle),s("use",{href:`#stzh-icon-${this.name}`})))}};b.style=".sc-stzh-icon-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-icon-h{display:none}.sc-stzh-icon-h *.sc-stzh-icon,.sc-stzh-icon-h *.sc-stzh-icon::before,.sc-stzh-icon-h *.sc-stzh-icon::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-icon-h{--size:var(--stzh-icon-size-default);display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;color:currentColor;vertical-align:text-top}.stzh-icon.sc-stzh-icon{width:var(--size);height:var(--size)}";export{a as stzh_badge,c as stzh_button,b as stzh_icon}
@@ -1 +1 @@
1
- import{r as t,h as e,c as s,e as i,F as o,g as n}from"./p-99a3742a.js";import{h as r}from"./p-5c697491.js";const h=class{constructor(e){t(this,e)}render(){return e(s,{role:"menu"},e("div",{class:"stzh-menu"},e("slot",null)))}};h.style=".sc-stzh-menu-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-menu-h{display:none}.sc-stzh-menu-h *.sc-stzh-menu,.sc-stzh-menu-h *.sc-stzh-menu::before,.sc-stzh-menu-h *.sc-stzh-menu::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-h .sc-stzh-menu-s>stzh-hr{margin-top:var(--stzh-space-xsmall);margin-bottom:var(--stzh-space-xsmall)}.stzh-menu.sc-stzh-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";const a=class{constructor(e){t(this,e),this.stzhFocus=i(this,"stzhFocus",7),this.stzhBlur=i(this,"stzhBlur",7),this.onFocus=t=>{const e=new FocusEvent("focus",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(e),this.stzhFocus.emit({component:"stzh-menu-item",originalEvent:t})},this.onBlur=t=>{const e=new FocusEvent("blur",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(e),this.stzhBlur.emit({component:"stzh-menu-item",originalEvent:t})},this.badge="",this.badgeType="default",this.badgeEmpty=!1,this.icon="",this.active=!1,this.label="",this.href="",this.target="",this.disabled=!1,this.a11yLabel=void 0}async setFocus(){this.menuItem.focus()}renderInner(t){return e(o,null,t&&e("div",{class:"stzh-menu-item__icon-wrapper"},this.icon?e("stzh-icon",{class:"stzh-menu-item__icon",name:this.icon}):e("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&e("stzh-badge",{class:"stzh-menu-item__badge",label:this.badge,type:this.badgeType})),e("div",{class:"stzh-menu-item__text"},this.label?this.label:e("slot",null)))}render(){const t=r(this.element,"icon")||!!this.icon,i={"stzh-menu-item":!0,"stzh-menu-item--has-icon":t,"stzh-menu-item--has-badge":!!this.badge,"stzh-menu-item--is-disabled":this.disabled,"stzh-menu-item--is-active":this.active};return e(s,{role:"menuitem"},this.href?e("a",{ref:t=>this.menuItem=t,href:this.disabled?null:this.href,target:this.target,class:i,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)):e("button",{ref:t=>this.menuItem=t,class:i,type:"button",disabled:this.disabled,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)))}get element(){return n(this)}};a.style=".sc-stzh-menu-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-menu-item-h{display:none}.sc-stzh-menu-item-h *.sc-stzh-menu-item,.sc-stzh-menu-item-h *.sc-stzh-menu-item::before,.sc-stzh-menu-item-h *.sc-stzh-menu-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-item-h{--height:var(--stzh-menu-item-height);--color:var(--stzh-color-grey70);--background-color:transparent;--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-grey70);--hover-background-color:var(--stzh-color-grey5)}[active].sc-stzh-menu-item-h:not([active=false]){--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary8)}[disabled].sc-stzh-menu-item-h:not([disabled=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-grey13);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-grey13)}.sc-stzh-menu-item-h .sc-stzh-menu-item-s>stzh-icon,.stzh-menu-item__icon.sc-stzh-menu-item{--size:var(--icon-size)}.stzh-menu-item.sc-stzh-menu-item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);font-family:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-decoration:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--color);background-color:var(--background-color);width:100%;height:var(--height);line-height:var(--height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-menu-item.sc-stzh-menu-item:hover{color:var(--hover-color);background-color:var(--hover-background-color)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:1em}.stzh-menu-item__badge.sc-stzh-menu-item{position:absolute;z-index:1;top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item+.stzh-menu-item__text.sc-stzh-menu-item:not(:empty){margin-left:var(--stzh-space-xsmall)}.stzh-menu-item__text.sc-stzh-menu-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-menu-item--is-disabled.sc-stzh-menu-item{cursor:not-allowed}";export{h as stzh_menu,a as stzh_menu_item}
1
+ import{r as t,h as e,c as s,e as i,F as o,g as n}from"./p-99a3742a.js";import{h as r}from"./p-5c697491.js";const h=class{constructor(e){t(this,e)}render(){return e(s,{role:"menu"},e("div",{class:"stzh-menu"},e("slot",null)))}};h.style=".sc-stzh-menu-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-menu-h{display:none}.sc-stzh-menu-h *.sc-stzh-menu,.sc-stzh-menu-h *.sc-stzh-menu::before,.sc-stzh-menu-h *.sc-stzh-menu::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-h .sc-stzh-menu-s>stzh-hr{margin-top:var(--stzh-space-xsmall);margin-bottom:var(--stzh-space-xsmall)}.stzh-menu.sc-stzh-menu{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}";const a=class{constructor(e){t(this,e),this.stzhFocus=i(this,"stzhFocus",7),this.stzhBlur=i(this,"stzhBlur",7),this.onFocus=t=>{const e=new FocusEvent("focus",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(e),this.stzhFocus.emit({component:"stzh-menu-item",originalEvent:t})},this.onBlur=t=>{const e=new FocusEvent("blur",{view:window,bubbles:!1,cancelable:!1});this.element.dispatchEvent(e),this.stzhBlur.emit({component:"stzh-menu-item",originalEvent:t})},this.badge="",this.badgeType="default",this.badgeEmpty=!1,this.disabled=!1,this.active=!1,this.icon="",this.label="",this.href="",this.target="",this.a11yLabel=void 0}async setFocus(){this.menuItem.focus()}renderInner(t){return e(o,null,t&&e("div",{class:"stzh-menu-item__icon-wrapper"},this.icon?e("stzh-icon",{class:"stzh-menu-item__icon",name:this.icon}):e("slot",{name:"icon"}),(this.badge||this.badgeEmpty)&&e("stzh-badge",{class:"stzh-menu-item__badge",label:this.badge,type:this.badgeType})),e("div",{class:"stzh-menu-item__text"},this.label?this.label:e("slot",null)))}render(){const t=r(this.element,"icon")||!!this.icon,i={"stzh-menu-item":!0,"stzh-menu-item--has-icon":t,"stzh-menu-item--has-badge":!!this.badge,"stzh-menu-item--is-disabled":this.disabled,"stzh-menu-item--is-active":this.active};return e(s,{role:"menuitem"},this.href?e("a",{ref:t=>this.menuItem=t,href:this.disabled?null:this.href,target:this.target,class:i,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)):e("button",{ref:t=>this.menuItem=t,class:i,type:"button",disabled:this.disabled,"aria-label":this.a11yLabel,onFocus:this.onFocus,onBlur:this.onBlur},this.renderInner(t)))}get element(){return n(this)}};a.style=".sc-stzh-menu-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-menu-item-h{display:none}.sc-stzh-menu-item-h *.sc-stzh-menu-item,.sc-stzh-menu-item-h *.sc-stzh-menu-item::before,.sc-stzh-menu-item-h *.sc-stzh-menu-item::after{-webkit-box-sizing:border-box;box-sizing:border-box}.sc-stzh-menu-item-h{--height:var(--stzh-menu-item-height);--color:var(--stzh-color-grey70);--background-color:transparent;--icon-size:var(--stzh-icon-size-small);--hover-color:var(--stzh-color-grey70);--hover-background-color:var(--stzh-color-grey5)}[active].sc-stzh-menu-item-h:not([active=false]){--color:var(--stzh-color-primary, var(--stzh-color-zueriblue));--hover-color:var(--stzh-color-primary-hover, var(--stzh-color-zueribluedark));--hover-background-color:var(--stzh-color-primary8)}[disabled].sc-stzh-menu-item-h:not([disabled=false]){--color:var(--stzh-color-white);--background-color:var(--stzh-color-grey13);--hover-color:var(--stzh-color-white);--hover-background-color:var(--stzh-color-grey13)}.sc-stzh-menu-item-h .sc-stzh-menu-item-s>stzh-icon,.stzh-menu-item__icon.sc-stzh-menu-item{--size:var(--icon-size)}.stzh-menu-item.sc-stzh-menu-item{font-size:var(--stzh-font-micro-font-size);line-height:var(--stzh-font-micro-text-line-height);font-family:inherit;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:stretch;justify-content:stretch;-webkit-appearance:none;-moz-appearance:none;appearance:none;text-decoration:none;border:none;padding:var(--stzh-space-xsmall) var(--stzh-space-medium);padding-left:var(--stzh-space-large);color:var(--color);background-color:var(--background-color);width:100%;height:var(--height);line-height:var(--height);-webkit-transition:all var(--stzh-base-transition-animation-speed);transition:all var(--stzh-base-transition-animation-speed);cursor:pointer}.stzh-menu-item.sc-stzh-menu-item:hover{color:var(--hover-color);background-color:var(--hover-background-color)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-negative:0;flex-shrink:0;width:auto;height:1em}.stzh-menu-item__badge.sc-stzh-menu-item{position:absolute;z-index:1;top:calc(var(--stzh-space-xsmall) * -1);right:calc(var(--stzh-space-xsmall) * -1)}.stzh-menu-item__icon-wrapper.sc-stzh-menu-item+.stzh-menu-item__text.sc-stzh-menu-item:not(:empty){margin-left:var(--stzh-space-xsmall)}.stzh-menu-item__text.sc-stzh-menu-item{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.stzh-menu-item--is-disabled.sc-stzh-menu-item{cursor:not-allowed}";export{h as stzh_menu,a as stzh_menu_item}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,r,e,i){function o(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,s){function a(t){try{h(i.next(t))}catch(r){s(r)}}function n(t){try{h(i["throw"](t))}catch(r){s(r)}}function h(t){t.done?e(t.value):o(t.value).then(a,n)}h((i=i.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={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(r){return h([t,r])}}function h(n){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,n[0]&&(e=0)),e)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:e.label++;return{value:n[1],done:false};case 5:e.label++;o=n[1];n=[0];continue;case 7:n=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){e=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){e.label=n[1];break}if(n[0]===6&&e.label<s[1]){e.label=s[1];s=n;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(n);break}if(s[2])e.ops.pop();e.trys.pop();continue}n=r.call(t,e)}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}}};System.register(["./p-36e72c1d.system.js","./p-a408bfba.system.js","./p-11816251.system.js","./p-309d2b66.system.js","./p-d4b7a303.system.js","./p-db339680.system.js","./p-f58c28ad.system.js"],(function(t){"use strict";var r,e,i,o,s,a,n,h,d,c,l,p,u;return{setters:[function(t){r=t.r;e=t.e;i=t.h;o=t.F;s=t.c;a=t.g},function(t){n=t.f},function(t){h=t.a;d=t.p},function(t){c=t.c},function(t){l=t.h},function(t){p=t.S},function(t){u=t.c}],execute:function(){var z=".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 f=t("stzh_datepicker",function(){function t(t){var i=this;r(this,t);this.stzhChange=e(this,"stzhChange",7);this.onInputChange=function(){var t=i.dateAdapter.parse(i.input.value,"inputdate");if(i.input.value===""||t){var r=h(t);if(i.calendar){i.calendar.value=r}i.value=r;i.stzhChange.emit({component:"stzh-datepicker",value:i.value,valueAsDate:t})}};this.onCalendarChange=function(t){i.value=t.detail.value;i.stzhChange.emit({component:"stzh-datepicker",value:i.value,valueAsDate:t.detail.valueAsDate});if(i.input){i.input.value=t.detail.valueAsDate&&i.dateAdapter.format(t.detail.valueAsDate,"inputdate")}if(i.popover){i.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 r=d(t);if(this.calendar){this.calendar.value=t}if(this.input){this.input.value=this.dateAdapter.format(r,"inputdate")}this.updateButtonAccessibleLabel()};t.prototype.setDate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.value=h(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=d(this.value);this.buttonLabel="".concat(this.localization.buttonLabel,", ").concat(this.localization.selectedDateMessage," ").concat(this.dateFormatLong.format(t))}catch(r){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(r){switch(r.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"datepicker")];case 1:t.localization=r.sent();r.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=c(this.localization.$formats,this.localization.$globals)}return[2]}}))}))};t.prototype.componentDidLoad=function(){this.valueWatcher(this.value)};t.prototype.render=function(){var t=this;var r={"stzh-datepicker":true,"stzh-datepicker--inline":this.inline};return i(s,null,i("div",{class:r},i("input",{type:"hidden",name:this.name,value:this.value}),this.inline&&i(o,null,i("stzh-calendar",{ref:function(r){return t.calendar=r},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),i("div",{class:"stzh-datepicker__actions"},i("slot",{name:"action"}))),!this.inline&&i("stzh-input",{label:this.label,ref:function(r){return t.input=r},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},i("stzh-popover",{ref:function(r){return t.popover=r},class:"stzh-datepicker__popover",slot:"button-right",placement:"bottom-end",label:this.label},i("stzh-button",{variant:"input","icon-only":true,icon:"calendar",disabled:this.disabled,a11yLabel:this.buttonLabel}),i("div",{slot:"content"},i("stzh-calendar",{ref:function(r){return t.calendar=r},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),i("div",{class:"stzh-datepicker__actions"},i("slot",{name:"action"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{localization:["createDateFormatters"],value:["valueWatcher"]}},enumerable:false,configurable:true});return t}());f.style=z;var g='.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 b=0;var v=t("stzh_radio",function(){function t(t){var i=this;r(this,t);this.stzhChange=e(this,"stzhChange",7);this.stzhFocus=e(this,"stzhFocus",7);this.stzhBlur=e(this,"stzhBlur",7);this.onInput=function(t){i.checked=i.input.checked;i.stzhChange.emit({component:"stzh-radio",originalEvent:t,value:i.value,checked:i.checked})};this.onFocus=function(t){var r=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});i.element.dispatchEvent(r);i.stzhFocus.emit({component:"stzh-radio",originalEvent:t})};this.onBlur=function(t){var r=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});i.element.dispatchEvent(r);i.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(r){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(r){switch(r.label){case 0:this.inputId="stzh-radio-".concat(b++);this.errorWatcher(this.error);if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"radio")];case 1:t.localization=r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.render=function(){var t=this;var r=l(this.element,"description")||!!this.description;var e=l(this.element,"description-long")||!!this.descriptionLong;var o=l(this.element,"error")||!!this.error;var s={"stzh-radio":true,"stzh-radio--has-description":r,"stzh-radio--has-description-long":e,"stzh-radio--has-error":o,"stzh-radio--is-required":this.required,"stzh-radio--is-invalid":this.invalid,"stzh-radio--is-disabled":this.disabled};return i("div",{class:s},i("label",{class:"stzh-radio__field-wrapper"},i("input",{class:"stzh-radio__input",ref:function(r){return t.input=r},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}),i("div",{class:"stzh-radio__mark"},i("div",{class:"stzh-radio__check"})),i("div",{class:"stzh-radio__label"},this.label?this.label:i("slot",null),this.showMarker&&i("span",{class:"stzh-radio__marker"},i("span",{class:"stzh-radio__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),i("span",{class:"stzh-radio__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),i(p,{classPrefix:"stzh-radio",id:"".concat(this.inputId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:e,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{error:["errorWatcher"]}},enumerable:false,configurable:true});return t}());v.style=g;var m=".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 _="stzh-radio, stzh-button[type=radio], stzh-card";var y=0;var k=t("stzh_radiogroup",function(){function t(t){var e=this;r(this,t);this._preventUpdateProperties=[];this.init=function(){e.radios=Array.from(e.element.querySelectorAll(_));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(r){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,r){var e=this;this.radios.forEach((function(i){if(t==="name"||e._preventUpdateProperties.indexOf(t)===-1){i[u(t)]=r}}))};t.prototype.updateCheckedRadioByValue=function(t){this.checkedRadio=this.radios.find((function(r){return r.value===t}));if(this.checkedRadio){this.checkedRadio.checked=true}this.uncheckRadios()};t.prototype.uncheckRadios=function(){var t=this;this.radios.forEach((function(r){if(!t.checkedRadio||r!==t.checkedRadio){r.checked=false}}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:this.radiogroupId="stzh-radiogroup-".concat(y++);this.errorWatcher(this.error);this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"radiogroup")];case 1:t.localization=r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.componentShouldUpdate=function(t,r,e){return e!=="checkedRadio"};t.prototype.componentDidRender=function(){this.init()};t.prototype.connectedCallback=function(){if(!this.value){this.radios=Array.from(this.element.querySelectorAll(_));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 r=l(this.element,"description")||!!this.description;var e=l(this.element,"description-long")||!!this.descriptionLong;var o=l(this.element,"error")||!!this.error;var s=(t={"stzh-radiogroup":true,"stzh-radiogroup--has-description":r,"stzh-radiogroup--has-description-long":e,"stzh-radiogroup--has-error":o,"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 i("fieldset",{class:s},this.legend&&i("legend",{class:"stzh-radiogroup__legend"},this.legend,this.showMarker&&i("span",{class:"stzh-radiogroup__marker"},i("span",{class:"stzh-radiogroup__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),i("span",{class:"stzh-radiogroup__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText))),i("div",{class:"stzh-radiogroup__fields"},i("slot",null)),i(p,{classPrefix:"stzh-radiogroup",id:"".concat(this.radiogroupId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:e,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(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}());k.style=m}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,r,e,i){function o(t){return t instanceof e?t:new e((function(r){r(t)}))}return new(e||(e=Promise))((function(e,s){function a(t){try{h(i.next(t))}catch(r){s(r)}}function n(t){try{h(i["throw"](t))}catch(r){s(r)}}function h(t){t.done?e(t.value):o(t.value).then(a,n)}h((i=i.apply(t,r||[])).next())}))};var __generator=this&&this.__generator||function(t,r){var e={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(r){return h([t,r])}}function h(n){if(i)throw new TypeError("Generator is already executing.");while(a&&(a=0,n[0]&&(e=0)),e)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:e.label++;return{value:n[1],done:false};case 5:e.label++;o=n[1];n=[0];continue;case 7:n=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(n[0]===6||n[0]===2)){e=0;continue}if(n[0]===3&&(!s||n[1]>s[0]&&n[1]<s[3])){e.label=n[1];break}if(n[0]===6&&e.label<s[1]){e.label=s[1];s=n;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(n);break}if(s[2])e.ops.pop();e.trys.pop();continue}n=r.call(t,e)}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}}};System.register(["./p-36e72c1d.system.js","./p-a408bfba.system.js","./p-11816251.system.js","./p-309d2b66.system.js","./p-d4b7a303.system.js","./p-db339680.system.js","./p-f58c28ad.system.js"],(function(t){"use strict";var r,e,i,o,s,a,n,h,d,c,l,p,u;return{setters:[function(t){r=t.r;e=t.e;i=t.h;o=t.F;s=t.c;a=t.g},function(t){n=t.f},function(t){h=t.a;d=t.p},function(t){c=t.c},function(t){l=t.h},function(t){p=t.S},function(t){u=t.c}],execute:function(){var z=".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 f=t("stzh_datepicker",function(){function t(t){var i=this;r(this,t);this.stzhChange=e(this,"stzhChange",7);this.onInputChange=function(){var t=i.dateAdapter.parse(i.input.value,"inputdate");if(i.input.value===""||t){var r=h(t);if(i.calendar){i.calendar.value=r}i.value=r;i.stzhChange.emit({component:"stzh-datepicker",value:i.value,valueAsDate:t})}};this.onCalendarChange=function(t){i.value=t.detail.value;i.stzhChange.emit({component:"stzh-datepicker",value:i.value,valueAsDate:t.detail.valueAsDate});if(i.input){i.input.value=t.detail.valueAsDate&&i.dateAdapter.format(t.detail.valueAsDate,"inputdate")}if(i.popover){i.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 r=d(t);if(this.calendar){this.calendar.value=t}if(this.input){this.input.value=this.dateAdapter.format(r,"inputdate")}this.updateButtonAccessibleLabel()};t.prototype.setDate=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){this.value=h(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=d(this.value);this.buttonLabel="".concat(this.localization.buttonLabel,", ").concat(this.localization.selectedDateMessage," ").concat(this.dateFormatLong.format(t))}catch(r){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(r){switch(r.label){case 0:if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"datepicker")];case 1:t.localization=r.sent();r.label=2;case 2:if(!this.dateAdapter){this.dateAdapter=c(this.localization.$formats,this.localization.$globals)}return[2]}}))}))};t.prototype.componentDidLoad=function(){this.valueWatcher(this.value)};t.prototype.render=function(){var t=this;var r={"stzh-datepicker":true,"stzh-datepicker--inline":this.inline};return i(s,null,i("div",{class:r},i("input",{type:"hidden",name:this.name,value:this.value}),this.inline&&i(o,null,i("stzh-calendar",{ref:function(r){return t.calendar=r},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),i("div",{class:"stzh-datepicker__actions"},i("slot",{name:"action"}))),!this.inline&&i("stzh-input",{label:this.label,ref:function(r){return t.input=r},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},i("stzh-popover",{ref:function(r){return t.popover=r},class:"stzh-datepicker__popover",slot:"button-right",placement:"bottom-end",label:this.label},i("stzh-button",{variant:"input","icon-only":true,icon:"calendar",disabled:this.disabled,a11yLabel:this.buttonLabel}),i("div",{slot:"content"},i("stzh-calendar",{ref:function(r){return t.calendar=r},isDateDisabled:this.calendarIsDateDisabled,min:this.calendarMin,max:this.calendarMax,onStzhChange:this.onCalendarChange}),i("div",{class:"stzh-datepicker__actions"},i("slot",{name:"action"})))))))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{localization:["createDateFormatters"],value:["valueWatcher"]}},enumerable:false,configurable:true});return t}());f.style=z;var g='.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 b=0;var v=t("stzh_radio",function(){function t(t){var i=this;r(this,t);this.stzhChange=e(this,"stzhChange",7);this.stzhFocus=e(this,"stzhFocus",7);this.stzhBlur=e(this,"stzhBlur",7);this.onInput=function(t){i.checked=i.input.checked;i.stzhChange.emit({component:"stzh-radio",originalEvent:t,value:i.value,checked:i.checked})};this.onFocus=function(t){var r=new FocusEvent("focus",{view:window,bubbles:false,cancelable:false});i.element.dispatchEvent(r);i.stzhFocus.emit({component:"stzh-radio",originalEvent:t})};this.onBlur=function(t){var r=new FocusEvent("blur",{view:window,bubbles:false,cancelable:false});i.element.dispatchEvent(r);i.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(r){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(r){switch(r.label){case 0:this.inputId="stzh-radio-".concat(b++);this.errorWatcher(this.error);if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"radio")];case 1:t.localization=r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.render=function(){var t=this;var r=l(this.element,"description")||!!this.description;var e=l(this.element,"description-long")||!!this.descriptionLong;var o=l(this.element,"error")||!!this.error;var s={"stzh-radio":true,"stzh-radio--has-description":r,"stzh-radio--has-description-long":e,"stzh-radio--has-error":o,"stzh-radio--is-required":this.required,"stzh-radio--is-invalid":this.invalid,"stzh-radio--is-disabled":this.disabled};return i("div",{class:s},i("label",{class:"stzh-radio__field-wrapper"},i("input",{class:"stzh-radio__input",ref:function(r){return t.input=r},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}),i("div",{class:"stzh-radio__mark"},i("div",{class:"stzh-radio__check"})),i("div",{class:"stzh-radio__label"},this.label?this.label:i("slot",null),this.showMarker&&i("span",{class:"stzh-radio__marker"},i("span",{class:"stzh-radio__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),i("span",{class:"stzh-radio__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText)))),i(p,{classPrefix:"stzh-radio",id:"".concat(this.inputId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:e,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{error:["errorWatcher"]}},enumerable:false,configurable:true});return t}());v.style=g;var m=".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 _="stzh-radio, stzh-button[type=radio], stzh-card";var y=0;var k=t("stzh_radiogroup",function(){function t(t){var e=this;r(this,t);this._preventUpdateProperties=[];this.init=function(){e.radios=Array.from(e.element.querySelectorAll(_));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(r){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,r){var e=this;this.radios.forEach((function(i){if(t==="name"||e._preventUpdateProperties.indexOf(t)===-1){i[u(t)]=r}}))};t.prototype.updateCheckedRadioByValue=function(t){this.checkedRadio=this.radios.find((function(r){return r.value===t}));if(this.checkedRadio){this.checkedRadio.checked=true}this.uncheckRadios()};t.prototype.uncheckRadios=function(){var t=this;this.radios.forEach((function(r){if(!t.checkedRadio||r!==t.checkedRadio){r.checked=false}}))};t.prototype.componentWillLoad=function(){return __awaiter(this,void 0,void 0,(function(){var t;return __generator(this,(function(r){switch(r.label){case 0:this.radiogroupId="stzh-radiogroup-".concat(y++);this.errorWatcher(this.error);this.preventUpdatePropertiesWatcher(this.preventUpdateProperties);if(!!this.localization)return[3,2];t=this;return[4,n(this.element,"radiogroup")];case 1:t.localization=r.sent();r.label=2;case 2:return[2]}}))}))};t.prototype.componentShouldUpdate=function(t,r,e){return e!=="checkedRadio"};t.prototype.componentDidRender=function(){this.init()};t.prototype.connectedCallback=function(){if(!this.value){this.radios=Array.from(this.element.querySelectorAll(_));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(){if(this.observer){this.observer.disconnect()}};t.prototype.render=function(){var t;var r=l(this.element,"description")||!!this.description;var e=l(this.element,"description-long")||!!this.descriptionLong;var o=l(this.element,"error")||!!this.error;var s=(t={"stzh-radiogroup":true,"stzh-radiogroup--has-description":r,"stzh-radiogroup--has-description-long":e,"stzh-radiogroup--has-error":o,"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 i("fieldset",{class:s},this.legend&&i("legend",{class:"stzh-radiogroup__legend"},this.legend,this.showMarker&&i("span",{class:"stzh-radiogroup__marker"},i("span",{class:"stzh-radiogroup__marker-symbol","aria-hidden":"true"},this.required?this.localization.$globals.requiredFieldMarker:this.localization.$globals.optionalFieldMarker),i("span",{class:"stzh-radiogroup__marker-text"},this.required?this.localization.$globals.requiredFieldText:this.localization.$globals.optionalFieldText))),i("div",{class:"stzh-radiogroup__fields"},i("slot",null)),i(p,{classPrefix:"stzh-radiogroup",id:"".concat(this.radiogroupId,"-description"),error:this._error,description:this.description,descriptionLong:this.descriptionLong,descriptionLongUsed:e,moreInfoButtonLabel:this.localization.$globals.moreInfoButtonLabel}))};Object.defineProperty(t.prototype,"element",{get:function(){return a(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}());k.style=m}}}));