@baloise/ds-core 19.3.0 → 19.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1113) hide show
  1. package/components/_commonjsHelpers.js +5 -1
  2. package/components/animation.decorator.js +1 -1
  3. package/components/array.js +3 -3
  4. package/components/attributes.js +0 -3
  5. package/components/bal-accordion-details.js +16 -5
  6. package/components/bal-accordion-summary.js +17 -6
  7. package/components/bal-accordion-trigger.js +49 -17
  8. package/components/bal-accordion.js +43 -15
  9. package/components/bal-app.js +11 -6
  10. package/components/bal-badge2.js +10 -3
  11. package/components/bal-button-group2.js +10 -0
  12. package/components/bal-button2.js +106 -32
  13. package/components/bal-card-actions.js +3 -0
  14. package/components/bal-card-button.js +19 -1
  15. package/components/bal-card-subtitle.js +13 -8
  16. package/components/bal-card-title.js +3 -0
  17. package/components/bal-card2.js +30 -4
  18. package/components/bal-carousel-item.js +36 -18
  19. package/components/bal-carousel.js +59 -10
  20. package/components/bal-check2.js +23 -2
  21. package/components/bal-checkbox-group.js +61 -21
  22. package/components/bal-checkbox2.js +93 -32
  23. package/components/bal-close2.js +9 -4
  24. package/components/bal-content2.js +24 -2
  25. package/components/bal-data-item.js +6 -0
  26. package/components/bal-data-label.js +3 -0
  27. package/components/bal-data-value.js +14 -5
  28. package/components/bal-data.js +8 -3
  29. package/components/bal-date-calendar-cell2.js +3 -8
  30. package/components/bal-date-calendar2.js +27 -31
  31. package/components/bal-date.js +72 -34
  32. package/components/bal-divider.js +18 -2
  33. package/components/bal-dropdown.js +107 -43
  34. package/components/bal-field-control.js +14 -0
  35. package/components/bal-field-hint.js +9 -0
  36. package/components/bal-field-label.js +32 -0
  37. package/components/bal-field-message.js +15 -0
  38. package/components/bal-field.js +31 -10
  39. package/components/bal-file-upload.js +103 -52
  40. package/components/bal-footer.js +22 -7
  41. package/components/bal-form-grid.js +1 -2
  42. package/components/bal-form.js +10 -2
  43. package/components/bal-heading2.js +25 -6
  44. package/components/bal-hint2.js +13 -12
  45. package/components/bal-icon2.js +965 -906
  46. package/components/bal-input-date2.js +45 -11
  47. package/components/bal-input-group2.js +10 -2
  48. package/components/bal-input-slider.js +57 -19
  49. package/components/bal-input-stepper.js +1105 -1081
  50. package/components/bal-input.js +135 -42
  51. package/components/bal-label2.js +52 -4
  52. package/components/bal-list-item-accordion-body2.js +13 -7
  53. package/components/bal-list-item-accordion-head2.js +17 -7
  54. package/components/bal-list-item-content2.js +0 -1
  55. package/components/bal-list-item-icon2.js +3 -0
  56. package/components/bal-list-item-title2.js +3 -1
  57. package/components/bal-list-item2.js +34 -11
  58. package/components/bal-list2.js +16 -2
  59. package/components/bal-logo.animation.js +2 -2
  60. package/components/bal-logo2.js +15 -3
  61. package/components/bal-modal.js +37 -9
  62. package/components/bal-nav-link-grid-col2.js +8 -2
  63. package/components/bal-nav-link-grid2.js +1 -2
  64. package/components/bal-nav-link-group.js +8 -2
  65. package/components/bal-nav-link2.js +18 -4
  66. package/components/bal-nav-menu-bar2.js +11 -2
  67. package/components/bal-nav-menu-flyout2.js +10 -3
  68. package/components/bal-nav-meta-bar2.js +20 -2
  69. package/components/bal-nav.js +33 -49
  70. package/components/bal-navbar-brand.js +28 -5
  71. package/components/bal-navbar-menu-end.js +6 -0
  72. package/components/bal-navbar-menu-start.js +6 -0
  73. package/components/bal-navbar-menu.js +6 -0
  74. package/components/bal-navbar.js +12 -2
  75. package/components/bal-notices.js +10 -2
  76. package/components/bal-notification.js +11 -2
  77. package/components/bal-number-input.js +66 -150
  78. package/components/bal-option-list.js +27 -7
  79. package/components/bal-option.js +40 -13
  80. package/components/bal-pagination.js +84 -64
  81. package/components/bal-popover-content2.js +28 -1
  82. package/components/bal-popover2.js +50 -13
  83. package/components/bal-popup2.js +58 -26
  84. package/components/bal-progress-bar.js +17 -4
  85. package/components/bal-radio-group.js +57 -21
  86. package/components/bal-radio-icon2.js +23 -2
  87. package/components/bal-radio2.js +78 -29
  88. package/components/bal-segment-item.js +35 -16
  89. package/components/bal-segment.js +42 -21
  90. package/components/bal-select-option2.js +7 -2
  91. package/components/bal-select2.js +107 -50
  92. package/components/bal-shape2.js +13 -5
  93. package/components/bal-sheet.js +4 -2
  94. package/components/bal-snackbar.js +35 -9
  95. package/components/bal-spinner.animation.js +1927 -1917
  96. package/components/bal-spinner2.js +27 -9
  97. package/components/bal-stack2.js +37 -4
  98. package/components/bal-stage-back-link.js +6 -2
  99. package/components/bal-stage-image.js +1 -3
  100. package/components/bal-stage.js +17 -8
  101. package/components/bal-step-item.js +31 -1
  102. package/components/bal-steps.js +30 -12
  103. package/components/bal-switch.js +20 -2
  104. package/components/bal-tab-item.js +48 -6
  105. package/components/bal-table.js +4 -2
  106. package/components/bal-tabs2.js +103 -45
  107. package/components/bal-tag2.js +26 -2
  108. package/components/bal-text.js +136 -1
  109. package/components/bal-textarea.js +52 -24
  110. package/components/bal-time-input.js +42 -19
  111. package/components/bal-toast.js +18 -3
  112. package/components/bal-tooltip.js +21 -4
  113. package/components/breakpoints.subject.js +5 -79
  114. package/components/config.default.js +2 -1
  115. package/components/config.utils.js +1 -1
  116. package/components/date.js +3212 -3825
  117. package/components/element-states.decorator.js +1 -1
  118. package/components/floating-ui.js +2 -2
  119. package/components/focus-visible.js +2 -2
  120. package/components/focus.decorator.js +1 -1
  121. package/components/form-input.js +1 -5
  122. package/components/helpers.js +2 -2
  123. package/components/index.esm.js +122 -118
  124. package/components/index.js +171 -21
  125. package/components/index2.js +44 -588
  126. package/components/index3.js +561 -27
  127. package/components/index4.js +591 -1849
  128. package/components/index5.js +1814 -506
  129. package/components/index6.js +125 -0
  130. package/components/keyboard.helpers.js +1 -1
  131. package/components/lottie_light_html.js +11694 -11684
  132. package/components/mutation.decorator.js +1 -1
  133. package/components/overlays.js +2 -2
  134. package/components/purify.es.js +1328 -0
  135. package/components/resize.decorator.js +1 -1
  136. package/components/swipe.subject.js +1 -1
  137. package/components/swiper.util.js +2 -2
  138. package/components/tokens.esm.js +3 -2
  139. package/components/tslib.es6.js +2 -0
  140. package/components/utils.js +6 -6
  141. package/components/visibility.decorator.js +1 -1
  142. package/components/window-resize.decorator.js +1 -24
  143. package/components/window-resize.listener.js +80 -0
  144. package/components/window-resize.subject.js +26 -0
  145. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  146. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  147. package/dist/baloise-design-system/index.esm.js +1 -1
  148. package/dist/baloise-design-system/p-017e7f7adf.entry.js +1 -0
  149. package/dist/baloise-design-system/{p-00e75d0c35.system.entry.js → p-040a6174c7.system.entry.js} +1 -1
  150. package/dist/baloise-design-system/{p-6077b576a9.system.entry.js → p-05e8130a9a.system.entry.js} +1 -1
  151. package/dist/baloise-design-system/p-08bc0ab24d.system.entry.js +1 -0
  152. package/dist/baloise-design-system/p-0b9e84e4dd.system.entry.js +1 -0
  153. package/dist/baloise-design-system/p-0da4fe3026.entry.js +1 -0
  154. package/dist/baloise-design-system/p-0f679514b0.entry.js +1 -0
  155. package/dist/baloise-design-system/p-1112428fc6.entry.js +1 -0
  156. package/dist/baloise-design-system/p-152e669d59.system.entry.js +1 -0
  157. package/dist/baloise-design-system/p-166fa22c35.entry.js +1 -0
  158. package/dist/baloise-design-system/p-1799d59644.entry.js +1 -0
  159. package/dist/baloise-design-system/{p-1a99fea403.system.entry.js → p-19eda34a35.system.entry.js} +1 -1
  160. package/dist/baloise-design-system/p-1a101b475e.system.entry.js +1 -0
  161. package/dist/baloise-design-system/p-1c13d69ca1.system.entry.js +1 -0
  162. package/dist/baloise-design-system/p-1ecb79b6b5.system.entry.js +1 -0
  163. package/dist/baloise-design-system/{p-de8600efe8.system.entry.js → p-1f7d71e0f6.system.entry.js} +1 -1
  164. package/dist/baloise-design-system/p-22026f3f57.system.entry.js +1 -0
  165. package/dist/baloise-design-system/p-2384eefce1.entry.js +1 -0
  166. package/dist/baloise-design-system/p-247b0b800a.system.entry.js +1 -0
  167. package/dist/baloise-design-system/p-2690f97b41.system.entry.js +1 -0
  168. package/dist/baloise-design-system/p-29cae69b8c.entry.js +1 -0
  169. package/dist/baloise-design-system/p-2f62e8007d.entry.js +1 -0
  170. package/dist/baloise-design-system/p-3125929936.entry.js +1 -0
  171. package/dist/baloise-design-system/p-3b5c4a42c4.system.entry.js +1 -0
  172. package/dist/baloise-design-system/p-417b6e0a0b.system.entry.js +1 -0
  173. package/dist/baloise-design-system/p-426a8d1128.entry.js +1 -0
  174. package/dist/baloise-design-system/p-4360835610.entry.js +1 -0
  175. package/dist/baloise-design-system/p-448a8ba385.entry.js +1 -0
  176. package/dist/baloise-design-system/p-46092a4585.entry.js +1 -0
  177. package/dist/baloise-design-system/{p-1e517d518d.system.entry.js → p-469d7c593e.system.entry.js} +1 -1
  178. package/dist/baloise-design-system/p-4856c78a64.entry.js +1 -0
  179. package/dist/baloise-design-system/p-4b3fd230c6.system.entry.js +1 -0
  180. package/dist/baloise-design-system/p-503b4ce7d0.entry.js +1 -0
  181. package/dist/baloise-design-system/p-52fa3d7015.system.entry.js +1 -0
  182. package/dist/baloise-design-system/{p-05a5de36af.entry.js → p-5391a66037.entry.js} +1 -1
  183. package/dist/baloise-design-system/p-558adf45a6.system.entry.js +1 -0
  184. package/dist/baloise-design-system/p-56951b4bb7.system.entry.js +1 -0
  185. package/dist/baloise-design-system/p-571b32fead.system.entry.js +1 -0
  186. package/dist/baloise-design-system/p-5792932f82.system.entry.js +1 -0
  187. package/dist/baloise-design-system/p-5aa8ca5691.entry.js +1 -0
  188. package/dist/baloise-design-system/p-5bc0576341.entry.js +1 -0
  189. package/dist/baloise-design-system/p-5da1420f1a.system.entry.js +1 -0
  190. package/dist/baloise-design-system/p-5ea15c8fda.entry.js +1 -0
  191. package/dist/baloise-design-system/{p-240e3621c6.entry.js → p-5ea5a9b3fa.entry.js} +1 -1
  192. package/dist/baloise-design-system/p-605048a7e8.system.entry.js +1 -0
  193. package/dist/baloise-design-system/{p-d112488f3c.system.entry.js → p-605b22e87a.system.entry.js} +1 -1
  194. package/dist/baloise-design-system/p-619670d086.system.entry.js +1 -0
  195. package/dist/baloise-design-system/p-61d215dcc5.entry.js +1 -0
  196. package/dist/baloise-design-system/p-653f4e4238.entry.js +1 -0
  197. package/dist/baloise-design-system/p-6542d12863.entry.js +1 -0
  198. package/dist/baloise-design-system/p-680fe70c1a.entry.js +1 -0
  199. package/dist/baloise-design-system/p-68162ab75a.entry.js +1 -0
  200. package/dist/baloise-design-system/p-6d511d8e8e.system.entry.js +1 -0
  201. package/dist/baloise-design-system/p-6d5bbdc67a.entry.js +1 -0
  202. package/dist/baloise-design-system/p-6d716224a8.entry.js +1 -0
  203. package/dist/baloise-design-system/p-6e463dc74b.system.entry.js +1 -0
  204. package/dist/baloise-design-system/{p-7632019f26.system.entry.js → p-6eeb094b9d.system.entry.js} +1 -1
  205. package/dist/baloise-design-system/p-6efb9d0430.system.entry.js +1 -0
  206. package/dist/baloise-design-system/p-6f40242a5d.entry.js +1 -0
  207. package/dist/baloise-design-system/p-74dd1a8023.entry.js +1 -0
  208. package/dist/baloise-design-system/p-750daedf10.system.entry.js +1 -0
  209. package/dist/baloise-design-system/p-7778560b6f.entry.js +1 -0
  210. package/dist/baloise-design-system/p-7b1dff4795.entry.js +1 -0
  211. package/dist/baloise-design-system/p-7cb21d670b.system.entry.js +1 -0
  212. package/dist/baloise-design-system/p-7e5c62d014.entry.js +1 -0
  213. package/dist/baloise-design-system/p-7e88d10258.system.entry.js +1 -0
  214. package/dist/baloise-design-system/p-833e1e02aa.entry.js +1 -0
  215. package/dist/baloise-design-system/p-83a6310bc0.entry.js +1 -0
  216. package/dist/baloise-design-system/{p-160c193287.entry.js → p-84f3cdac9b.entry.js} +1 -1
  217. package/dist/baloise-design-system/p-8c5aac149f.entry.js +1 -0
  218. package/dist/baloise-design-system/p-8f8bef4656.system.entry.js +1 -0
  219. package/dist/baloise-design-system/p-909bc3558a.system.entry.js +1 -0
  220. package/dist/baloise-design-system/p-925b31dca9.entry.js +1 -0
  221. package/dist/baloise-design-system/p-9276e4e5ca.system.entry.js +1 -0
  222. package/dist/baloise-design-system/{p-0d07e6caf8.entry.js → p-9417181fc3.entry.js} +1 -1
  223. package/dist/baloise-design-system/p-96fbe5e737.entry.js +1 -0
  224. package/dist/baloise-design-system/p-99d1051abd.system.entry.js +1 -0
  225. package/dist/baloise-design-system/p-9bed353090.system.entry.js +1 -0
  226. package/dist/baloise-design-system/p-9f221cd147.system.entry.js +1 -0
  227. package/dist/baloise-design-system/p-B1TzZiNl.js +1 -0
  228. package/dist/baloise-design-system/p-B1a79Kak.system.js +1 -0
  229. package/dist/baloise-design-system/p-B23n0-TV.js +1 -0
  230. package/dist/baloise-design-system/p-B3Q-Lii3.js +2 -0
  231. package/dist/baloise-design-system/p-B4Kne3kP.system.js +1 -0
  232. package/dist/baloise-design-system/p-B71F7E77.js +1 -0
  233. package/dist/baloise-design-system/p-B7wsjSwt.system.js +1 -0
  234. package/dist/baloise-design-system/p-BANVEd3P.js +1 -0
  235. package/dist/baloise-design-system/p-BAaDJIzy.js +1 -0
  236. package/dist/baloise-design-system/p-BC9JH89x.js +1 -0
  237. package/dist/baloise-design-system/p-BFTU3MAI.js +1 -0
  238. package/dist/baloise-design-system/{p-c0c91eb1.js → p-BG4j3FEv.js} +1 -1
  239. package/dist/baloise-design-system/{p-53e09ecb.js → p-BHFw3KrT.js} +1 -1
  240. package/dist/baloise-design-system/{p-acf222fd.js → p-BHYxMhaq.js} +1 -1
  241. package/dist/baloise-design-system/p-BJQK_KjT.js +1 -0
  242. package/dist/baloise-design-system/{p-bb3d79e0.js → p-BLUHPuPg.js} +1 -1
  243. package/dist/baloise-design-system/{p-1c41de53.system.js → p-BPUKeAhO.system.js} +1 -1
  244. package/dist/baloise-design-system/{p-ec9a7cf5.system.js → p-BQvgbY93.system.js} +1 -1
  245. package/dist/baloise-design-system/p-BnVL_HEz.js +1 -0
  246. package/dist/baloise-design-system/{p-6c080ebc.system.js → p-Bnn4iNSc.system.js} +1 -1
  247. package/dist/baloise-design-system/{p-55ebd30d.js → p-Bp0dpjer.js} +1 -1
  248. package/dist/baloise-design-system/{p-5b163efa.js → p-BsGkq7do.js} +1 -1
  249. package/dist/baloise-design-system/p-BvmIi0Pf.js +1 -0
  250. package/dist/baloise-design-system/p-BzYBOtnf.js +1 -0
  251. package/dist/baloise-design-system/p-Bzy18UgU.system.js +1 -0
  252. package/dist/baloise-design-system/p-C2YKdNW7.system.js +1 -0
  253. package/dist/baloise-design-system/{p-924b576e.system.js → p-C4hsvc4v.system.js} +1 -1
  254. package/dist/baloise-design-system/{p-063808d7.js → p-C4sZQbkT.js} +1 -1
  255. package/dist/baloise-design-system/p-C78VTo3I.js +1 -0
  256. package/dist/baloise-design-system/p-C8S5XlJl.js +1 -0
  257. package/dist/baloise-design-system/p-CEOTg0oT.system.js +1 -0
  258. package/dist/baloise-design-system/p-CFSqydrN.system.js +1 -0
  259. package/dist/baloise-design-system/p-CKLuFkEh.js +1 -0
  260. package/dist/baloise-design-system/p-CbvOgU0G.js +1 -0
  261. package/dist/baloise-design-system/p-Ch5Ar_Aw.system.js +1 -0
  262. package/dist/baloise-design-system/p-CiWErrXI.system.js +1 -0
  263. package/dist/baloise-design-system/p-Cj6DXhmQ.js +1 -0
  264. package/dist/baloise-design-system/{p-96216bd1.js → p-Ck3aT69N.js} +1 -1
  265. package/dist/baloise-design-system/p-Clmofeob.js +1 -0
  266. package/dist/baloise-design-system/{p-fbce8119.system.js → p-Cm94K4OH.system.js} +1 -1
  267. package/dist/baloise-design-system/p-CoTulE_f.js +1 -0
  268. package/dist/baloise-design-system/p-CpWDVANq.system.js +1 -0
  269. package/dist/baloise-design-system/{p-d0537382.system.js → p-Cu1ebAbd.system.js} +1 -1
  270. package/dist/baloise-design-system/{p-b2f7e364.js → p-Cwb5cm_s.js} +1 -1
  271. package/dist/baloise-design-system/p-CwvovJM0.system.js +3 -0
  272. package/dist/baloise-design-system/{p-2509cd53.system.js → p-CyfydXgM.system.js} +1 -1
  273. package/dist/baloise-design-system/p-Czl2AFQD.system.js +1 -0
  274. package/dist/baloise-design-system/p-D-yL3ygS.system.js +1 -0
  275. package/dist/baloise-design-system/p-D0Jo39A5.system.js +1 -0
  276. package/dist/baloise-design-system/p-DA4RmE59.system.js +1 -0
  277. package/dist/baloise-design-system/{p-2908a4b8.system.js → p-DJopuiVl.system.js} +1 -1
  278. package/dist/baloise-design-system/{p-50f3b012.js → p-DKxvaA1I.js} +1 -1
  279. package/dist/baloise-design-system/p-DMUz15_s.system.js +1 -0
  280. package/dist/baloise-design-system/p-DPBQ5EN8.system.js +1 -0
  281. package/dist/baloise-design-system/p-DTDY1hlV.js +1 -0
  282. package/dist/baloise-design-system/p-DV-El3D9.js +1 -0
  283. package/dist/baloise-design-system/p-DWQYzEm7.system.js +1 -0
  284. package/dist/baloise-design-system/p-DY72UdN1.system.js +1 -0
  285. package/dist/baloise-design-system/p-DfEhX0m_.system.js +1 -0
  286. package/dist/baloise-design-system/p-DhSS4q-R.system.js +1 -0
  287. package/dist/baloise-design-system/{p-9f7a1215.system.js → p-DndeZqk_.system.js} +1 -1
  288. package/dist/baloise-design-system/{p-aae6003e.js → p-Do4k83YR.js} +1 -1
  289. package/dist/baloise-design-system/{p-b79d8942.system.js → p-Dou6adza.system.js} +1 -1
  290. package/dist/baloise-design-system/p-DpQhsHDk.system.js +9 -0
  291. package/dist/baloise-design-system/p-DqCbGYzv.js +1 -0
  292. package/dist/baloise-design-system/p-Dxz8zGB7.system.js +1 -0
  293. package/dist/baloise-design-system/p-MVgFPFA5.js +1 -0
  294. package/dist/baloise-design-system/p-RzJv7e7Y.system.js +1 -0
  295. package/dist/baloise-design-system/p-S5-HQnxq.js +1 -0
  296. package/dist/baloise-design-system/p-WkcLp-K_.system.js +1 -0
  297. package/dist/baloise-design-system/p-WmWy2rJ-.system.js +2 -0
  298. package/dist/baloise-design-system/{p-4a0012fa.js → p-XiJ1YYc9.js} +1 -1
  299. package/dist/baloise-design-system/p-a34dc82fd9.system.entry.js +1 -0
  300. package/dist/baloise-design-system/p-a5802e97d8.system.entry.js +1 -0
  301. package/dist/baloise-design-system/p-a913a946ea.entry.js +1 -0
  302. package/dist/baloise-design-system/p-aa9f1d22cd.system.entry.js +1 -0
  303. package/dist/baloise-design-system/p-aac9ec6687.system.entry.js +1 -0
  304. package/dist/baloise-design-system/p-ab6db026de.entry.js +1 -0
  305. package/dist/baloise-design-system/p-adcdd7eb63.entry.js +1 -0
  306. package/dist/baloise-design-system/p-b050e8a82d.entry.js +1 -0
  307. package/dist/baloise-design-system/p-b0d0cb1167.system.entry.js +1 -0
  308. package/dist/baloise-design-system/p-b0d2fd44ef.system.entry.js +1 -0
  309. package/dist/baloise-design-system/p-b5712e673a.entry.js +1 -0
  310. package/dist/baloise-design-system/p-be07e385c5.entry.js +1 -0
  311. package/dist/baloise-design-system/p-bf46f70999.entry.js +1 -0
  312. package/dist/baloise-design-system/p-c2a5d480b6.entry.js +1 -0
  313. package/dist/baloise-design-system/p-c4239a6ebb.entry.js +1 -0
  314. package/dist/baloise-design-system/{p-a06f682955.entry.js → p-c6a6f41844.entry.js} +1 -1
  315. package/dist/baloise-design-system/p-c819c5feef.system.entry.js +1 -0
  316. package/dist/baloise-design-system/p-c92ac7c2e0.system.entry.js +1 -0
  317. package/dist/baloise-design-system/p-cca697bd26.system.entry.js +1 -0
  318. package/dist/baloise-design-system/{p-5420740f.system.js → p-cfEgJ3Y7.system.js} +1 -1
  319. package/dist/baloise-design-system/p-d4c44cc24e.entry.js +1 -0
  320. package/dist/baloise-design-system/{p-0b39e3fc7f.system.entry.js → p-d575fb9113.system.entry.js} +1 -1
  321. package/dist/baloise-design-system/p-d5b648b0fc.system.entry.js +1 -0
  322. package/dist/baloise-design-system/p-d78505b4e8.entry.js +1 -0
  323. package/dist/baloise-design-system/p-d7a09b758f.entry.js +1 -0
  324. package/dist/baloise-design-system/p-dbcb876d25.entry.js +1 -0
  325. package/dist/baloise-design-system/p-dc3a6cd2e6.system.entry.js +1 -0
  326. package/dist/baloise-design-system/p-dd5aae489e.entry.js +1 -0
  327. package/dist/baloise-design-system/{p-eecefb0a.system.js → p-drmuT566.system.js} +1 -1
  328. package/dist/baloise-design-system/p-e016efc91a.entry.js +1 -0
  329. package/dist/baloise-design-system/p-e0c4414dd8.system.entry.js +1 -0
  330. package/dist/baloise-design-system/p-e15a90b22c.system.entry.js +1 -0
  331. package/dist/baloise-design-system/p-e57bc8a630.system.entry.js +1 -0
  332. package/dist/baloise-design-system/p-e92ad3fae1.system.entry.js +1 -0
  333. package/dist/baloise-design-system/{p-a82d082286.system.entry.js → p-eb68793baa.system.entry.js} +1 -1
  334. package/dist/baloise-design-system/p-ee43ce93b7.system.entry.js +1 -0
  335. package/dist/baloise-design-system/p-ee5156fb85.system.entry.js +1 -0
  336. package/dist/baloise-design-system/p-ee604e4bcc.system.entry.js +1 -0
  337. package/dist/baloise-design-system/p-f0957640f5.entry.js +1 -0
  338. package/dist/baloise-design-system/p-fa3aa15442.entry.js +1 -0
  339. package/dist/baloise-design-system/p-fd73720dcb.entry.js +1 -0
  340. package/dist/baloise-design-system/p-ft8ZtF1G.system.js +1 -0
  341. package/dist/baloise-design-system/{p-a7894ace.js → p-gnUWqxps.js} +1 -1
  342. package/dist/baloise-design-system/p-jv0tWyso.js +1 -0
  343. package/dist/baloise-design-system/p-lFDHYLJ4.system.js +1 -0
  344. package/dist/baloise-design-system/p-m5GX4h3i.system.js +1 -0
  345. package/dist/baloise-design-system/p-pkPHUz5e.js +2 -0
  346. package/dist/baloise-design-system/p-xbSOW78W.js +1 -0
  347. package/dist/cjs/{_commonjsHelpers-68cdf74f.js → _commonjsHelpers-BJu3ubxk.js} +5 -0
  348. package/dist/cjs/{animation.decorator-40bdfb52.js → animation.decorator-BeUy1FNI.js} +9 -9
  349. package/dist/cjs/{array-ae164ca3.js → array-Db63Hhl1.js} +3 -3
  350. package/dist/cjs/{attributes-11acd153.js → attributes-Cp0kpySW.js} +0 -3
  351. package/dist/cjs/bal-accordion_4.cjs.entry.js +142 -67
  352. package/dist/cjs/bal-app.cjs.entry.js +23 -24
  353. package/dist/cjs/bal-badge.cjs.entry.js +12 -7
  354. package/dist/cjs/bal-button_2.cjs.entry.js +121 -45
  355. package/dist/cjs/bal-card_6.cjs.entry.js +69 -10
  356. package/dist/cjs/bal-carousel_2.cjs.entry.js +113 -54
  357. package/dist/cjs/bal-check.cjs.entry.js +25 -6
  358. package/dist/cjs/bal-checkbox_2.cjs.entry.js +178 -83
  359. package/dist/cjs/bal-close.cjs.entry.js +14 -15
  360. package/dist/cjs/bal-content.cjs.entry.js +28 -10
  361. package/dist/cjs/bal-data_4.cjs.entry.js +37 -15
  362. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +8 -18
  363. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +90 -67
  364. package/dist/cjs/bal-date.cjs.entry.js +109 -76
  365. package/dist/cjs/bal-divider.cjs.entry.js +22 -10
  366. package/dist/cjs/bal-dropdown.cjs.entry.js +139 -82
  367. package/dist/cjs/bal-field_5.cjs.entry.js +109 -23
  368. package/dist/cjs/bal-file-upload.cjs.entry.js +120 -76
  369. package/dist/cjs/bal-footer.cjs.entry.js +34 -24
  370. package/dist/cjs/bal-form-col_2.cjs.entry.js +2 -5
  371. package/dist/cjs/bal-form.cjs.entry.js +14 -11
  372. package/dist/cjs/bal-heading_2.cjs.entry.js +74 -14
  373. package/dist/cjs/bal-hint_5.cjs.entry.js +110 -50
  374. package/dist/cjs/bal-icon.cjs.entry.js +969 -916
  375. package/dist/cjs/bal-input-group.cjs.entry.js +12 -6
  376. package/dist/cjs/bal-input-slider.cjs.entry.js +68 -34
  377. package/dist/cjs/bal-input-stepper.cjs.entry.js +1112 -1089
  378. package/dist/cjs/bal-input.cjs.entry.js +146 -58
  379. package/dist/cjs/bal-label.cjs.entry.js +59 -17
  380. package/dist/cjs/bal-list_8.cjs.entry.js +109 -59
  381. package/dist/cjs/{bal-logo.animation-9704970d.js → bal-logo.animation-q2TTdoP3.js} +4 -3
  382. package/dist/cjs/bal-logo.cjs.entry.js +26 -20
  383. package/dist/cjs/bal-modal_3.cjs.entry.js +48 -25
  384. package/dist/cjs/bal-nav_8.cjs.entry.js +138 -102
  385. package/dist/cjs/bal-navbar_5.cjs.entry.js +74 -30
  386. package/dist/cjs/bal-notices_3.cjs.entry.js +65 -18
  387. package/dist/cjs/bal-notification.cjs.entry.js +13 -6
  388. package/dist/cjs/bal-number-input.cjs.entry.js +83 -174
  389. package/dist/cjs/bal-option_2.cjs.entry.js +91 -49
  390. package/dist/cjs/bal-pagination.cjs.entry.js +87 -68
  391. package/dist/cjs/bal-popup.cjs.entry.js +72 -46
  392. package/dist/cjs/bal-progress-bar.cjs.entry.js +25 -17
  393. package/dist/cjs/bal-radio-icon.cjs.entry.js +25 -6
  394. package/dist/cjs/bal-radio_2.cjs.entry.js +161 -80
  395. package/dist/cjs/bal-segment_2.cjs.entry.js +98 -65
  396. package/dist/cjs/bal-select_2.cjs.entry.js +137 -81
  397. package/dist/cjs/bal-shape.cjs.entry.js +16 -10
  398. package/dist/cjs/bal-sheet.cjs.entry.js +6 -6
  399. package/dist/cjs/{bal-spinner.animation-a81cf10f.js → bal-spinner.animation-BL6PkxOx.js} +1929 -1919
  400. package/dist/cjs/bal-spinner.cjs.entry.js +34 -23
  401. package/dist/cjs/bal-stack.cjs.entry.js +41 -12
  402. package/dist/cjs/bal-stage_6.cjs.entry.js +27 -21
  403. package/dist/cjs/bal-step-item.cjs.entry.js +34 -6
  404. package/dist/cjs/bal-steps.cjs.entry.js +45 -33
  405. package/dist/cjs/bal-switch.cjs.entry.js +22 -6
  406. package/dist/cjs/bal-tab-item_2.cjs.entry.js +183 -90
  407. package/dist/cjs/bal-table.cjs.entry.js +6 -6
  408. package/dist/cjs/bal-tag_2.cjs.entry.js +31 -9
  409. package/dist/cjs/bal-textarea.cjs.entry.js +63 -40
  410. package/dist/cjs/bal-time-input.cjs.entry.js +58 -41
  411. package/dist/cjs/bal-tooltip.cjs.entry.js +31 -20
  412. package/dist/cjs/baloise-design-system.cjs.js +7 -14
  413. package/dist/cjs/{breakpoints.decorator-881dd92d.js → breakpoints.decorator-DLXGwQpP.js} +1 -1
  414. package/dist/cjs/{breakpoints.subject-485cf660.js → breakpoints.subject-CidQD5zH.js} +16 -17
  415. package/dist/cjs/{config.decorator-de244188.js → config.decorator-CDkNZ1Fo.js} +3 -3
  416. package/dist/cjs/{date-ce9c7f3f.js → date-C9_0qSTi.js} +3217 -3830
  417. package/dist/cjs/{device-9f97a845.js → device-CoI0V6AY.js} +5 -5
  418. package/dist/cjs/{element-states.decorator-aa5126e2.js → element-states.decorator-DGQNhvD6.js} +12 -13
  419. package/dist/cjs/{floating-ui-4a4a1aed.js → floating-ui-BEMfzblh.js} +3 -3
  420. package/dist/cjs/{focus-visible-a434c91f.js → focus-visible-DFZa8IIA.js} +2 -2
  421. package/dist/cjs/{focus.decorator-14a4a576.js → focus.decorator-DFy3pFaT.js} +9 -10
  422. package/dist/cjs/{form-input-e9974433.js → form-input-BUGd2Bkz.js} +2 -7
  423. package/dist/cjs/index-BZ67Dcnb.js +50 -0
  424. package/dist/cjs/index-BobQkZjn.js +1868 -0
  425. package/dist/cjs/index-C413E-IK.js +571 -0
  426. package/dist/cjs/index-COfbtsc7.js +3035 -0
  427. package/dist/cjs/index-CuY5w2n4.js +602 -0
  428. package/dist/cjs/index-ifu9fMyU.js +127 -0
  429. package/dist/cjs/index.cjs.js +65 -74
  430. package/dist/cjs/index.esm-CKDqUwIC.js +216 -0
  431. package/dist/cjs/{listener-52d2e5fd.js → listener-t3ifJtK5.js} +2 -2
  432. package/dist/cjs/loader.cjs.js +3 -12
  433. package/dist/cjs/lottie_light_html-OP40Exqq.js +11704 -0
  434. package/dist/cjs/{mutation.decorator-485e250e.js → mutation.decorator-DyFafPfX.js} +5 -5
  435. package/dist/cjs/{number-24bf265b.js → number-CYeUjdPM.js} +3 -4
  436. package/dist/cjs/{overlays-94ebb271.js → overlays-CZHV6VH9.js} +5 -6
  437. package/dist/cjs/purify.es-CJTp6uKN.js +1330 -0
  438. package/dist/cjs/{resize.decorator-e4a92322.js → resize.decorator-B_NiBCMZ.js} +5 -6
  439. package/dist/cjs/{scroll-dc37ea84.js → scroll-DY4kxt0j.js} +5 -5
  440. package/dist/cjs/{swipe.decorator-9c105f90.js → swipe.decorator-CNDcaR9i.js} +1 -1
  441. package/dist/cjs/{swipe.subject-191f7d8a.js → swipe.subject-DtAxEK8t.js} +5 -5
  442. package/dist/cjs/{swiper.util-d23b8eb0.js → swiper.util-nyFqwHcs.js} +15 -16
  443. package/dist/cjs/{tokens.esm-e14cedac.js → tokens.esm-DU04pfsc.js} +2 -1
  444. package/dist/cjs/{tslib.es6-a680968e.js → tslib.es6-DrfCPgT9.js} +2 -0
  445. package/dist/cjs/{utils-9ea175af.js → utils-Bl0u6rg1.js} +6 -6
  446. package/dist/cjs/{visibility.decorator-a218aab9.js → visibility.decorator-C7uDX3Z3.js} +5 -5
  447. package/dist/cjs/window-resize.decorator-4PWq713L.js +25 -0
  448. package/dist/cjs/window-resize.subject-GSXXkOcC.js +28 -0
  449. package/dist/collection/collection-manifest.json +1 -1
  450. package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +18 -6
  451. package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +19 -7
  452. package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +57 -24
  453. package/dist/collection/components/bal-accordion/bal-accordion.js +47 -18
  454. package/dist/collection/components/bal-app/bal-app.js +10 -4
  455. package/dist/collection/components/bal-badge/bal-badge.js +13 -5
  456. package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +13 -3
  457. package/dist/collection/components/bal-button/bal-button.js +192 -63
  458. package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +4 -1
  459. package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +26 -8
  460. package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +16 -5
  461. package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +4 -1
  462. package/dist/collection/components/bal-card/bal-card.css +1 -1
  463. package/dist/collection/components/bal-card/bal-card.js +36 -9
  464. package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +45 -27
  465. package/dist/collection/components/bal-carousel/bal-carousel.js +64 -15
  466. package/dist/collection/components/bal-checkbox/bal-check/bal-check.js +28 -6
  467. package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +72 -29
  468. package/dist/collection/components/bal-checkbox/bal-checkbox.js +109 -47
  469. package/dist/collection/components/bal-checkbox/bal-switch/bal-switch.js +24 -5
  470. package/dist/collection/components/bal-close/bal-close.js +8 -2
  471. package/dist/collection/components/bal-content/bal-content.js +28 -5
  472. package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +8 -2
  473. package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +4 -1
  474. package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +15 -6
  475. package/dist/collection/components/bal-data/bal-data.js +9 -3
  476. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +24 -26
  477. package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +11 -16
  478. package/dist/collection/components/bal-date/bal-date.js +85 -45
  479. package/dist/collection/components/bal-divider/bal-divider.js +21 -4
  480. package/dist/collection/components/bal-dropdown/bal-dropdown.js +118 -52
  481. package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +18 -4
  482. package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +12 -3
  483. package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +40 -8
  484. package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +20 -5
  485. package/dist/collection/components/bal-field/bal-field.js +36 -14
  486. package/dist/collection/components/bal-file-upload/bal-file-upload.js +67 -33
  487. package/dist/collection/components/bal-footer/bal-footer.js +20 -3
  488. package/dist/collection/components/bal-form/bal-form.js +12 -3
  489. package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +1 -1
  490. package/dist/collection/components/bal-heading/bal-heading.js +33 -13
  491. package/dist/collection/components/bal-hint/bal-hint.css +1 -1
  492. package/dist/collection/components/bal-hint/bal-hint.js +9 -7
  493. package/dist/collection/components/bal-icon/bal-icon.js +82 -36
  494. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +54 -19
  495. package/dist/collection/components/bal-input/bal-input-util.js +29 -0
  496. package/dist/collection/components/bal-input/bal-input.js +134 -69
  497. package/dist/collection/components/bal-input-group/bal-input-group.js +12 -3
  498. package/dist/collection/components/bal-input-slider/bal-input-slider.js +66 -27
  499. package/dist/collection/components/bal-input-stepper/bal-input-stepper.css +1 -1
  500. package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +62 -40
  501. package/dist/collection/components/bal-label/bal-label.js +62 -13
  502. package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +42 -19
  503. package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +12 -7
  504. package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +16 -6
  505. package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +1 -4
  506. package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +4 -1
  507. package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +5 -3
  508. package/dist/collection/components/bal-list/bal-list.js +20 -5
  509. package/dist/collection/components/bal-logo/bal-logo.js +16 -3
  510. package/dist/collection/components/bal-modal/bal-modal.js +48 -17
  511. package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +23 -8
  512. package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +8 -1
  513. package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +8 -1
  514. package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +12 -2
  515. package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +8 -1
  516. package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +24 -5
  517. package/dist/collection/components/bal-nav/bal-nav.js +18 -12
  518. package/dist/collection/components/bal-nav/models/bal-nav-menu-link-item.js +2 -2
  519. package/dist/collection/components/bal-nav/models/bal-nav-meta-button.js +7 -25
  520. package/dist/collection/components/bal-nav/models/bal-nav-meta-link-item.js +2 -2
  521. package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +36 -13
  522. package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +7 -1
  523. package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +7 -1
  524. package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +7 -1
  525. package/dist/collection/components/bal-navbar/bal-navbar.js +14 -3
  526. package/dist/collection/components/bal-notices/bal-notices.js +12 -3
  527. package/dist/collection/components/bal-notification/bal-notification.js +13 -3
  528. package/dist/collection/components/bal-number-input/bal-number-input.js +65 -36
  529. package/dist/collection/components/bal-option/bal-option.js +46 -18
  530. package/dist/collection/components/bal-option-list/bal-option-list.js +29 -8
  531. package/dist/collection/components/bal-pagination/bal-pagination.css +1 -1
  532. package/dist/collection/components/bal-pagination/bal-pagination.js +42 -15
  533. package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +36 -9
  534. package/dist/collection/components/bal-popover/bal-popover.js +52 -12
  535. package/dist/collection/components/bal-popup/bal-popup.js +64 -31
  536. package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +16 -3
  537. package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +68 -30
  538. package/dist/collection/components/bal-radio/bal-radio-icon/bal-radio-icon.js +28 -6
  539. package/dist/collection/components/bal-radio/bal-radio.js +93 -43
  540. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +39 -19
  541. package/dist/collection/components/bal-segment/bal-segment.js +40 -20
  542. package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +11 -6
  543. package/dist/collection/components/bal-select/bal-select.js +109 -51
  544. package/dist/collection/components/bal-shape/bal-shape.js +15 -6
  545. package/dist/collection/components/bal-sheet/bal-sheet.js +4 -1
  546. package/dist/collection/components/bal-snackbar/bal-snackbar.js +42 -13
  547. package/dist/collection/components/bal-spinner/bal-spinner.js +30 -11
  548. package/dist/collection/components/bal-stack/bal-stack.js +47 -13
  549. package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +10 -6
  550. package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +2 -4
  551. package/dist/collection/components/bal-stage/bal-stage.js +22 -12
  552. package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +42 -12
  553. package/dist/collection/components/bal-steps/bal-steps.js +31 -11
  554. package/dist/collection/components/bal-table/bal-table.js +4 -1
  555. package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +69 -30
  556. package/dist/collection/components/bal-tabs/bal-tabs.js +111 -52
  557. package/dist/collection/components/bal-tag/bal-tag.js +33 -8
  558. package/dist/collection/components/bal-text/bal-text.js +58 -13
  559. package/dist/collection/components/bal-textarea/bal-textarea.js +69 -40
  560. package/dist/collection/components/bal-time-input/bal-time-input.js +44 -20
  561. package/dist/collection/components/bal-toast/bal-toast.js +21 -4
  562. package/dist/collection/components/bal-tooltip/bal-tooltip.js +24 -6
  563. package/dist/collection/index.js +0 -4
  564. package/dist/collection/initialize.js +33 -2
  565. package/dist/collection/tags-all.js +119 -0
  566. package/dist/collection/utils/config/config.default.js +1 -0
  567. package/dist/collection/utils/constants/version.constant.js +1 -1
  568. package/dist/esm/_commonjsHelpers-BFTU3MAI.js +7 -0
  569. package/dist/esm/{animation.decorator-7fca988f.js → animation.decorator-DtxbEYY8.js} +2 -2
  570. package/dist/esm/{array-4c09dfe3.js → array-CDfSqLEo.js} +3 -3
  571. package/dist/esm/{attributes-a3e70948.js → attributes-C4sZQbkT.js} +0 -3
  572. package/dist/esm/bal-accordion_4.entry.js +130 -53
  573. package/dist/esm/bal-app.entry.js +13 -12
  574. package/dist/esm/bal-badge.entry.js +12 -5
  575. package/dist/esm/bal-button_2.entry.js +120 -42
  576. package/dist/esm/bal-card_6.entry.js +69 -8
  577. package/dist/esm/bal-carousel_2.entry.js +110 -49
  578. package/dist/esm/bal-check.entry.js +25 -4
  579. package/dist/esm/bal-checkbox_2.entry.js +172 -75
  580. package/dist/esm/bal-close.entry.js +12 -11
  581. package/dist/esm/bal-content.entry.js +27 -7
  582. package/dist/esm/bal-data_4.entry.js +37 -13
  583. package/dist/esm/bal-date-calendar-cell.entry.js +8 -16
  584. package/dist/esm/bal-date-calendar_2.entry.js +86 -61
  585. package/dist/esm/bal-date.entry.js +92 -57
  586. package/dist/esm/bal-divider.entry.js +21 -7
  587. package/dist/esm/bal-dropdown.entry.js +120 -61
  588. package/dist/esm/bal-field_5.entry.js +107 -19
  589. package/dist/esm/bal-file-upload.entry.js +119 -73
  590. package/dist/esm/bal-footer.entry.js +27 -15
  591. package/dist/esm/bal-form-col_2.entry.js +2 -3
  592. package/dist/esm/bal-form.entry.js +12 -7
  593. package/dist/esm/bal-heading_2.entry.js +73 -11
  594. package/dist/esm/bal-hint_5.entry.js +105 -43
  595. package/dist/esm/bal-icon.entry.js +969 -914
  596. package/dist/esm/bal-input-group.entry.js +12 -4
  597. package/dist/esm/bal-input-slider.entry.js +67 -31
  598. package/dist/esm/bal-input-stepper.entry.js +1108 -1083
  599. package/dist/esm/bal-input.entry.js +144 -54
  600. package/dist/esm/bal-label.entry.js +56 -12
  601. package/dist/esm/bal-list_8.entry.js +97 -45
  602. package/dist/esm/{bal-logo.animation-560601c6.js → bal-logo.animation-Bm-_mal3.js} +4 -3
  603. package/dist/esm/bal-logo.entry.js +24 -16
  604. package/dist/esm/bal-modal_3.entry.js +43 -18
  605. package/dist/esm/bal-nav_8.entry.js +117 -79
  606. package/dist/esm/bal-navbar_5.entry.js +69 -23
  607. package/dist/esm/bal-notices_3.entry.js +65 -16
  608. package/dist/esm/bal-notification.entry.js +13 -4
  609. package/dist/esm/bal-number-input.entry.js +78 -167
  610. package/dist/esm/bal-option_2.entry.js +77 -33
  611. package/dist/esm/bal-pagination.entry.js +87 -66
  612. package/dist/esm/bal-popup.entry.js +64 -36
  613. package/dist/esm/bal-progress-bar.entry.js +24 -14
  614. package/dist/esm/bal-radio-icon.entry.js +25 -4
  615. package/dist/esm/bal-radio_2.entry.js +155 -72
  616. package/dist/esm/bal-segment_2.entry.js +91 -56
  617. package/dist/esm/bal-select_2.entry.js +130 -72
  618. package/dist/esm/bal-shape.entry.js +16 -8
  619. package/dist/esm/bal-sheet.entry.js +6 -4
  620. package/dist/esm/{bal-spinner.animation-81d4326e.js → bal-spinner.animation-Bv2Ow6xu.js} +1929 -1919
  621. package/dist/esm/bal-spinner.entry.js +31 -18
  622. package/dist/esm/bal-stack.entry.js +40 -9
  623. package/dist/esm/bal-stage_6.entry.js +26 -18
  624. package/dist/esm/bal-step-item.entry.js +34 -4
  625. package/dist/esm/bal-steps.entry.js +43 -29
  626. package/dist/esm/bal-switch.entry.js +22 -4
  627. package/dist/esm/bal-tab-item_2.entry.js +170 -75
  628. package/dist/esm/bal-table.entry.js +6 -4
  629. package/dist/esm/bal-tag_2.entry.js +31 -7
  630. package/dist/esm/bal-textarea.entry.js +62 -37
  631. package/dist/esm/bal-time-input.entry.js +56 -37
  632. package/dist/esm/bal-tooltip.entry.js +28 -15
  633. package/dist/esm/baloise-design-system.js +5 -11
  634. package/dist/esm/{breakpoints.decorator-4de4315f.js → breakpoints.decorator-SHkWCW_Y.js} +1 -1
  635. package/dist/esm/{breakpoints.subject-2f68e834.js → breakpoints.subject-C7fjILif.js} +4 -5
  636. package/dist/esm/{config.decorator-6795d1fe.js → config.decorator-T4wBa62Z.js} +1 -1
  637. package/dist/esm/{date-87bdb1d1.js → date-B9gcRx4E.js} +3213 -3826
  638. package/dist/esm/{device-8c6d2881.js → device-ClkcmLoi.js} +1 -1
  639. package/dist/esm/{element-states.decorator-d99dc83c.js → element-states.decorator-DH5waKVu.js} +2 -3
  640. package/dist/esm/{floating-ui-8ffbc979.js → floating-ui-CTp1F0dK.js} +2 -2
  641. package/dist/esm/{focus-visible-c1d6b5b8.js → focus-visible-DqCbGYzv.js} +2 -2
  642. package/dist/esm/{focus.decorator-988245d7.js → focus.decorator-DQpbKYaT.js} +2 -3
  643. package/dist/esm/{form-input-1ebdb905.js → form-input-CGW38ndP.js} +2 -6
  644. package/dist/esm/index-B4k_dH6V.js +1866 -0
  645. package/dist/esm/index-BU7FUSdu.js +569 -0
  646. package/dist/esm/index-D6JOtC1P.js +125 -0
  647. package/dist/esm/index-dYcsHLfj.js +600 -0
  648. package/dist/esm/index-pkPHUz5e.js +2980 -0
  649. package/dist/esm/index-zWZxKBfo.js +48 -0
  650. package/dist/esm/index.esm-Btc0yydR.js +210 -0
  651. package/dist/esm/index.js +24 -30
  652. package/dist/esm/{listener-04842ae9.js → listener-tzACU3qe.js} +1 -1
  653. package/dist/esm/loader.js +3 -10
  654. package/dist/esm/lottie_light_html-DuyI5RA6.js +11702 -0
  655. package/dist/esm/{mutation.decorator-6a69cedb.js → mutation.decorator-x6OeVGO1.js} +2 -2
  656. package/dist/esm/{number-ccf3fbd0.js → number-DZNVPmrJ.js} +1 -2
  657. package/dist/esm/{overlays-cee3838b.js → overlays-HStjSmzT.js} +2 -3
  658. package/dist/esm/purify.es-B3Q-Lii3.js +1328 -0
  659. package/dist/esm/{resize.decorator-3c8e5ee2.js → resize.decorator-D8jUH-n3.js} +2 -3
  660. package/dist/esm/{scroll-521224a9.js → scroll-CGUsHi6i.js} +1 -1
  661. package/dist/esm/{swipe.decorator-3d3585e7.js → swipe.decorator-CLIW6A6V.js} +1 -1
  662. package/dist/esm/{swipe.subject-26a9e5a5.js → swipe.subject-CgHMG_X7.js} +4 -4
  663. package/dist/esm/{swiper.util-8e17b8c4.js → swiper.util-lTWgy2NS.js} +4 -5
  664. package/dist/esm/{tokens.esm-4409ffbb.js → tokens.esm-BvmIi0Pf.js} +3 -2
  665. package/dist/esm/{tslib.es6-654e2c24.js → tslib.es6-dfXERft2.js} +2 -0
  666. package/dist/esm/{utils-9fbab1d3.js → utils-C_qktPg7.js} +6 -6
  667. package/dist/esm/{visibility.decorator-5db91610.js → visibility.decorator-DOE3Mnqt.js} +2 -2
  668. package/dist/esm/{window-resize.decorator-03b1ed50.js → window-resize.decorator-C4aZFmLU.js} +1 -24
  669. package/dist/esm/window-resize.subject-DTS_9rk_.js +26 -0
  670. package/dist/esm-es5/_commonjsHelpers-BFTU3MAI.js +1 -0
  671. package/dist/esm-es5/animation.decorator-DtxbEYY8.js +1 -0
  672. package/dist/esm-es5/array-CDfSqLEo.js +1 -0
  673. package/dist/esm-es5/{attributes-a3e70948.js → attributes-C4sZQbkT.js} +1 -1
  674. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  675. package/dist/esm-es5/bal-app.entry.js +1 -1
  676. package/dist/esm-es5/bal-badge.entry.js +1 -1
  677. package/dist/esm-es5/bal-button_2.entry.js +1 -1
  678. package/dist/esm-es5/bal-card_6.entry.js +1 -1
  679. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  680. package/dist/esm-es5/bal-check.entry.js +1 -1
  681. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  682. package/dist/esm-es5/bal-close.entry.js +1 -1
  683. package/dist/esm-es5/bal-content.entry.js +1 -1
  684. package/dist/esm-es5/bal-data_4.entry.js +1 -1
  685. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  686. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  687. package/dist/esm-es5/bal-date.entry.js +1 -1
  688. package/dist/esm-es5/bal-divider.entry.js +1 -1
  689. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  690. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  691. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  692. package/dist/esm-es5/bal-footer.entry.js +1 -1
  693. package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
  694. package/dist/esm-es5/bal-form.entry.js +1 -1
  695. package/dist/esm-es5/bal-heading_2.entry.js +1 -1
  696. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  697. package/dist/esm-es5/bal-icon.entry.js +1 -1
  698. package/dist/esm-es5/bal-input-group.entry.js +1 -1
  699. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  700. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  701. package/dist/esm-es5/bal-input.entry.js +1 -1
  702. package/dist/esm-es5/bal-label.entry.js +1 -1
  703. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  704. package/dist/esm-es5/bal-logo.animation-Bm-_mal3.js +1 -0
  705. package/dist/esm-es5/bal-logo.entry.js +1 -1
  706. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  707. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  708. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  709. package/dist/esm-es5/bal-notices_3.entry.js +1 -1
  710. package/dist/esm-es5/bal-notification.entry.js +1 -1
  711. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  712. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  713. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  714. package/dist/esm-es5/bal-popup.entry.js +1 -1
  715. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  716. package/dist/esm-es5/bal-radio-icon.entry.js +1 -1
  717. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  718. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  719. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  720. package/dist/esm-es5/bal-shape.entry.js +1 -1
  721. package/dist/esm-es5/bal-sheet.entry.js +1 -1
  722. package/dist/esm-es5/{bal-spinner.animation-81d4326e.js → bal-spinner.animation-Bv2Ow6xu.js} +1 -1
  723. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  724. package/dist/esm-es5/bal-stack.entry.js +1 -1
  725. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  726. package/dist/esm-es5/bal-step-item.entry.js +1 -1
  727. package/dist/esm-es5/bal-steps.entry.js +1 -1
  728. package/dist/esm-es5/bal-switch.entry.js +1 -1
  729. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  730. package/dist/esm-es5/bal-table.entry.js +1 -1
  731. package/dist/esm-es5/bal-tag_2.entry.js +1 -1
  732. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  733. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  734. package/dist/esm-es5/bal-tooltip.entry.js +1 -1
  735. package/dist/esm-es5/baloise-design-system.js +1 -1
  736. package/dist/esm-es5/breakpoints.decorator-SHkWCW_Y.js +1 -0
  737. package/dist/esm-es5/breakpoints.subject-C7fjILif.js +1 -0
  738. package/dist/esm-es5/config.decorator-T4wBa62Z.js +1 -0
  739. package/dist/esm-es5/date-B9gcRx4E.js +1 -0
  740. package/dist/esm-es5/device-ClkcmLoi.js +1 -0
  741. package/dist/esm-es5/element-states.decorator-DH5waKVu.js +1 -0
  742. package/dist/esm-es5/floating-ui-CTp1F0dK.js +1 -0
  743. package/dist/esm-es5/focus-visible-DqCbGYzv.js +1 -0
  744. package/dist/esm-es5/focus.decorator-DQpbKYaT.js +1 -0
  745. package/dist/esm-es5/form-input-CGW38ndP.js +1 -0
  746. package/dist/esm-es5/index-B4k_dH6V.js +1 -0
  747. package/dist/esm-es5/index-BU7FUSdu.js +1 -0
  748. package/dist/esm-es5/index-D6JOtC1P.js +1 -0
  749. package/dist/esm-es5/index-dYcsHLfj.js +1 -0
  750. package/dist/esm-es5/index-pkPHUz5e.js +2 -0
  751. package/dist/esm-es5/index-zWZxKBfo.js +1 -0
  752. package/dist/esm-es5/index.esm-Btc0yydR.js +1 -0
  753. package/dist/esm-es5/index.js +1 -1
  754. package/dist/esm-es5/listener-tzACU3qe.js +1 -0
  755. package/dist/esm-es5/loader.js +1 -1
  756. package/dist/esm-es5/lottie_light_html-DuyI5RA6.js +9 -0
  757. package/dist/esm-es5/mutation.decorator-x6OeVGO1.js +1 -0
  758. package/dist/esm-es5/number-DZNVPmrJ.js +1 -0
  759. package/dist/esm-es5/overlays-HStjSmzT.js +1 -0
  760. package/dist/esm-es5/purify.es-B3Q-Lii3.js +2 -0
  761. package/dist/esm-es5/resize.decorator-D8jUH-n3.js +1 -0
  762. package/dist/esm-es5/scroll-CGUsHi6i.js +1 -0
  763. package/dist/esm-es5/{swipe.decorator-3d3585e7.js → swipe.decorator-CLIW6A6V.js} +1 -1
  764. package/dist/esm-es5/swipe.subject-CgHMG_X7.js +1 -0
  765. package/dist/esm-es5/swiper.util-lTWgy2NS.js +1 -0
  766. package/dist/esm-es5/{tokens.esm-4409ffbb.js → tokens.esm-BvmIi0Pf.js} +1 -1
  767. package/dist/esm-es5/utils-C_qktPg7.js +1 -0
  768. package/dist/esm-es5/visibility.decorator-DOE3Mnqt.js +1 -0
  769. package/dist/esm-es5/window-resize.decorator-C4aZFmLU.js +1 -0
  770. package/dist/esm-es5/window-resize.subject-DTS_9rk_.js +1 -0
  771. package/dist/html.html-data.json +85 -1
  772. package/dist/types/components/bal-button/bal-button.d.ts +13 -1
  773. package/dist/types/components/bal-input/bal-input-util.d.ts +8 -0
  774. package/dist/types/components/bal-input/bal-input.d.ts +1 -1
  775. package/dist/types/components/bal-input/bal-input.interfaces.d.ts +1 -1
  776. package/dist/types/components/bal-input-stepper/bal-input-stepper.d.ts +1 -1
  777. package/dist/types/components/bal-nav/models/bal-nav-meta-button.d.ts +1 -1
  778. package/dist/types/components/bal-pagination/bal-pagination.d.ts +1 -1
  779. package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +3 -3
  780. package/dist/types/components.d.ts +1444 -10
  781. package/dist/types/index.d.ts +1 -1
  782. package/dist/types/stencil-public-runtime.d.ts +23 -1
  783. package/dist/types/tags-all.d.ts +1 -0
  784. package/dist/types/utils/config/config.types.d.ts +2 -0
  785. package/package.json +7 -7
  786. package/components/bal-text2.js +0 -94
  787. package/components/purify.js +0 -1353
  788. package/dist/baloise-design-system/p-00b37ea2.js +0 -1
  789. package/dist/baloise-design-system/p-00d6cf9a.system.js +0 -1
  790. package/dist/baloise-design-system/p-0193364e31.entry.js +0 -1
  791. package/dist/baloise-design-system/p-01cd830b.system.js +0 -1
  792. package/dist/baloise-design-system/p-02509f2aa1.system.entry.js +0 -1
  793. package/dist/baloise-design-system/p-04515987c7.system.entry.js +0 -1
  794. package/dist/baloise-design-system/p-056b22a7.system.js +0 -1
  795. package/dist/baloise-design-system/p-0783dc98dd.system.entry.js +0 -1
  796. package/dist/baloise-design-system/p-0833e523b1.entry.js +0 -1
  797. package/dist/baloise-design-system/p-0aa6f3518b.system.entry.js +0 -1
  798. package/dist/baloise-design-system/p-0ae449ae.system.js +0 -1
  799. package/dist/baloise-design-system/p-0b2b3dbe1b.entry.js +0 -1
  800. package/dist/baloise-design-system/p-0c336d76f5.entry.js +0 -1
  801. package/dist/baloise-design-system/p-0c34ba75.system.js +0 -1
  802. package/dist/baloise-design-system/p-11230944ba.system.entry.js +0 -1
  803. package/dist/baloise-design-system/p-1272e3f9c5.system.entry.js +0 -1
  804. package/dist/baloise-design-system/p-12b975fee6.system.entry.js +0 -1
  805. package/dist/baloise-design-system/p-13d44256.system.js +0 -1
  806. package/dist/baloise-design-system/p-14df54b760.entry.js +0 -1
  807. package/dist/baloise-design-system/p-15f86fd2.js +0 -1
  808. package/dist/baloise-design-system/p-16395ece.system.js +0 -1
  809. package/dist/baloise-design-system/p-166d571e.js +0 -1
  810. package/dist/baloise-design-system/p-16f5c678f5.entry.js +0 -1
  811. package/dist/baloise-design-system/p-1846561401.system.entry.js +0 -1
  812. package/dist/baloise-design-system/p-18675e20.js +0 -1
  813. package/dist/baloise-design-system/p-18c6b14c.system.js +0 -1
  814. package/dist/baloise-design-system/p-18cab6ff5b.entry.js +0 -1
  815. package/dist/baloise-design-system/p-1cfbf3093b.entry.js +0 -1
  816. package/dist/baloise-design-system/p-1f7d1eb48e.entry.js +0 -1
  817. package/dist/baloise-design-system/p-1fa4cbaca6.system.entry.js +0 -1
  818. package/dist/baloise-design-system/p-210cd438.system.js +0 -9
  819. package/dist/baloise-design-system/p-211fd73b2d.entry.js +0 -1
  820. package/dist/baloise-design-system/p-21b2d5d33b.system.entry.js +0 -1
  821. package/dist/baloise-design-system/p-23bdd8dc.system.js +0 -1
  822. package/dist/baloise-design-system/p-242625df10.system.entry.js +0 -1
  823. package/dist/baloise-design-system/p-24486c2cd6.entry.js +0 -1
  824. package/dist/baloise-design-system/p-2725c79107.system.entry.js +0 -1
  825. package/dist/baloise-design-system/p-27b9d8e173.entry.js +0 -1
  826. package/dist/baloise-design-system/p-2880433e.system.js +0 -1
  827. package/dist/baloise-design-system/p-28d0b9c851.system.entry.js +0 -1
  828. package/dist/baloise-design-system/p-2ccbe55a.js +0 -2
  829. package/dist/baloise-design-system/p-2d3770e7.system.js +0 -1
  830. package/dist/baloise-design-system/p-3131f323.system.js +0 -1
  831. package/dist/baloise-design-system/p-3153f3e507.system.entry.js +0 -1
  832. package/dist/baloise-design-system/p-3156541849.system.entry.js +0 -1
  833. package/dist/baloise-design-system/p-350a85a9.js +0 -1
  834. package/dist/baloise-design-system/p-36c605b7ed.entry.js +0 -1
  835. package/dist/baloise-design-system/p-371f93bd95.system.entry.js +0 -1
  836. package/dist/baloise-design-system/p-39cbb5b4.system.js +0 -1
  837. package/dist/baloise-design-system/p-3b6395d90b.system.entry.js +0 -1
  838. package/dist/baloise-design-system/p-3d3aa421.js +0 -1
  839. package/dist/baloise-design-system/p-3f01fc8b.js +0 -1
  840. package/dist/baloise-design-system/p-3f6fcc1a25.system.entry.js +0 -1
  841. package/dist/baloise-design-system/p-3fcfe14a45.system.entry.js +0 -1
  842. package/dist/baloise-design-system/p-4191bdf0.js +0 -1
  843. package/dist/baloise-design-system/p-41c8319b5f.entry.js +0 -1
  844. package/dist/baloise-design-system/p-422f347380.entry.js +0 -1
  845. package/dist/baloise-design-system/p-42d1374d6f.system.entry.js +0 -1
  846. package/dist/baloise-design-system/p-4573c419.js +0 -1
  847. package/dist/baloise-design-system/p-45d69189d4.system.entry.js +0 -1
  848. package/dist/baloise-design-system/p-472a8efc29.entry.js +0 -1
  849. package/dist/baloise-design-system/p-4743791e3f.entry.js +0 -1
  850. package/dist/baloise-design-system/p-4936cce309.entry.js +0 -1
  851. package/dist/baloise-design-system/p-4a1237e8.js +0 -1
  852. package/dist/baloise-design-system/p-4ad57bd1ee.entry.js +0 -1
  853. package/dist/baloise-design-system/p-4af5f1f9.js +0 -1
  854. package/dist/baloise-design-system/p-4ca4dff6.js +0 -1
  855. package/dist/baloise-design-system/p-4d4dd885fc.entry.js +0 -1
  856. package/dist/baloise-design-system/p-4d5477db.js +0 -1
  857. package/dist/baloise-design-system/p-4e8633942b.entry.js +0 -1
  858. package/dist/baloise-design-system/p-4f1232cf16.system.entry.js +0 -1
  859. package/dist/baloise-design-system/p-537189e0.js +0 -1
  860. package/dist/baloise-design-system/p-548ca0b3.js +0 -1
  861. package/dist/baloise-design-system/p-5569e7774f.entry.js +0 -1
  862. package/dist/baloise-design-system/p-56f686f295.system.entry.js +0 -1
  863. package/dist/baloise-design-system/p-576fea8fe0.system.entry.js +0 -1
  864. package/dist/baloise-design-system/p-584601ed8d.entry.js +0 -1
  865. package/dist/baloise-design-system/p-599fe1aecd.system.entry.js +0 -1
  866. package/dist/baloise-design-system/p-5b81a72518.system.entry.js +0 -1
  867. package/dist/baloise-design-system/p-5c391c5415.system.entry.js +0 -1
  868. package/dist/baloise-design-system/p-5d26868b4c.system.entry.js +0 -1
  869. package/dist/baloise-design-system/p-5d94ecd9.system.js +0 -1
  870. package/dist/baloise-design-system/p-5e506fea89.entry.js +0 -1
  871. package/dist/baloise-design-system/p-5e7b2f7fa5.system.entry.js +0 -1
  872. package/dist/baloise-design-system/p-5fbe1e715b.entry.js +0 -1
  873. package/dist/baloise-design-system/p-6461e0dc8c.entry.js +0 -1
  874. package/dist/baloise-design-system/p-659270e6.system.js +0 -1
  875. package/dist/baloise-design-system/p-65a3f66bb1.entry.js +0 -1
  876. package/dist/baloise-design-system/p-6780a7ed.system.js +0 -1
  877. package/dist/baloise-design-system/p-68f3a1d5de.entry.js +0 -1
  878. package/dist/baloise-design-system/p-6913b916.system.js +0 -1
  879. package/dist/baloise-design-system/p-694808374d.system.entry.js +0 -1
  880. package/dist/baloise-design-system/p-6ca25be56c.entry.js +0 -1
  881. package/dist/baloise-design-system/p-6df2900b29.system.entry.js +0 -1
  882. package/dist/baloise-design-system/p-6e3ed83858.entry.js +0 -1
  883. package/dist/baloise-design-system/p-70a29a3cf9.system.entry.js +0 -1
  884. package/dist/baloise-design-system/p-7187bc892e.system.entry.js +0 -1
  885. package/dist/baloise-design-system/p-7720b262.system.js +0 -1
  886. package/dist/baloise-design-system/p-77c7a0b0.js +0 -1
  887. package/dist/baloise-design-system/p-7961e095.system.js +0 -2
  888. package/dist/baloise-design-system/p-7ace6bb2b2.system.entry.js +0 -1
  889. package/dist/baloise-design-system/p-7d4fac85.js +0 -1
  890. package/dist/baloise-design-system/p-7ee8e43a78.entry.js +0 -1
  891. package/dist/baloise-design-system/p-835cf9d5.system.js +0 -1
  892. package/dist/baloise-design-system/p-86621bd1a3.system.entry.js +0 -1
  893. package/dist/baloise-design-system/p-8de1cbc123.system.entry.js +0 -1
  894. package/dist/baloise-design-system/p-975f69e2.js +0 -1
  895. package/dist/baloise-design-system/p-9a3d9e17.js +0 -1
  896. package/dist/baloise-design-system/p-9bea0924af.entry.js +0 -1
  897. package/dist/baloise-design-system/p-9fe6f3f427.system.entry.js +0 -1
  898. package/dist/baloise-design-system/p-a1449d0827.system.entry.js +0 -1
  899. package/dist/baloise-design-system/p-a1f6e944.system.js +0 -1
  900. package/dist/baloise-design-system/p-a65354df.js +0 -1
  901. package/dist/baloise-design-system/p-a6f19c8102.entry.js +0 -1
  902. package/dist/baloise-design-system/p-a7f480e29e.entry.js +0 -1
  903. package/dist/baloise-design-system/p-a8161761.js +0 -1
  904. package/dist/baloise-design-system/p-a8f4c51f7d.entry.js +0 -1
  905. package/dist/baloise-design-system/p-abaa6b209d.entry.js +0 -1
  906. package/dist/baloise-design-system/p-ad848b32cc.entry.js +0 -1
  907. package/dist/baloise-design-system/p-ade92c8b.js +0 -2
  908. package/dist/baloise-design-system/p-b0471793.system.js +0 -1
  909. package/dist/baloise-design-system/p-b0cf4731.js +0 -1
  910. package/dist/baloise-design-system/p-b31ef16307.system.entry.js +0 -1
  911. package/dist/baloise-design-system/p-b3720a73.system.js +0 -1
  912. package/dist/baloise-design-system/p-b53635762a.entry.js +0 -1
  913. package/dist/baloise-design-system/p-b651c3be06.system.entry.js +0 -1
  914. package/dist/baloise-design-system/p-b77e3348.js +0 -1
  915. package/dist/baloise-design-system/p-ba04f59382.entry.js +0 -1
  916. package/dist/baloise-design-system/p-bb0bea1a12.entry.js +0 -1
  917. package/dist/baloise-design-system/p-bdf651c552.system.entry.js +0 -1
  918. package/dist/baloise-design-system/p-be4404d14f.entry.js +0 -1
  919. package/dist/baloise-design-system/p-c018e14208.system.entry.js +0 -1
  920. package/dist/baloise-design-system/p-c1df952485.entry.js +0 -1
  921. package/dist/baloise-design-system/p-c75b737789.system.entry.js +0 -1
  922. package/dist/baloise-design-system/p-c90cd86f85.entry.js +0 -1
  923. package/dist/baloise-design-system/p-c942d04f.system.js +0 -1
  924. package/dist/baloise-design-system/p-caf7e785da.system.entry.js +0 -1
  925. package/dist/baloise-design-system/p-cb9a61cf9f.entry.js +0 -1
  926. package/dist/baloise-design-system/p-ce0bb62f88.system.entry.js +0 -1
  927. package/dist/baloise-design-system/p-ce4f5a6a.js +0 -1
  928. package/dist/baloise-design-system/p-cec9dcd5f0.system.entry.js +0 -1
  929. package/dist/baloise-design-system/p-d0cee779.system.js +0 -2
  930. package/dist/baloise-design-system/p-d41614f898.entry.js +0 -1
  931. package/dist/baloise-design-system/p-d4e5093b.js +0 -1
  932. package/dist/baloise-design-system/p-d96b1ee9.js +0 -1
  933. package/dist/baloise-design-system/p-dac493c4.system.js +0 -1
  934. package/dist/baloise-design-system/p-dc1f26ed82.entry.js +0 -1
  935. package/dist/baloise-design-system/p-ddfc39d563.system.entry.js +0 -1
  936. package/dist/baloise-design-system/p-de214c5ded.entry.js +0 -1
  937. package/dist/baloise-design-system/p-df907af8.system.js +0 -1
  938. package/dist/baloise-design-system/p-e004afb272.entry.js +0 -1
  939. package/dist/baloise-design-system/p-e0248dd3.js +0 -1
  940. package/dist/baloise-design-system/p-e1daa037f5.entry.js +0 -1
  941. package/dist/baloise-design-system/p-e442bfd948.entry.js +0 -1
  942. package/dist/baloise-design-system/p-e53cf246d6.system.entry.js +0 -1
  943. package/dist/baloise-design-system/p-e581de20.js +0 -1
  944. package/dist/baloise-design-system/p-e75452d8.system.js +0 -1
  945. package/dist/baloise-design-system/p-e88286bed3.system.entry.js +0 -1
  946. package/dist/baloise-design-system/p-ea96959c66.system.entry.js +0 -1
  947. package/dist/baloise-design-system/p-ec1863d2.js +0 -1
  948. package/dist/baloise-design-system/p-edb1f50e6a.entry.js +0 -1
  949. package/dist/baloise-design-system/p-eec38fbd.system.js +0 -1
  950. package/dist/baloise-design-system/p-eed5aa27.system.js +0 -1
  951. package/dist/baloise-design-system/p-f19930db.js +0 -1
  952. package/dist/baloise-design-system/p-f8db562aa1.entry.js +0 -1
  953. package/dist/baloise-design-system/p-fa2ea8a4.system.js +0 -1
  954. package/dist/baloise-design-system/p-fa6b5cde.system.js +0 -1
  955. package/dist/baloise-design-system/p-fd273f8f1e.entry.js +0 -1
  956. package/dist/baloise-design-system/p-fe2ef334.system.js +0 -1
  957. package/dist/baloise-design-system/p-ff36efab94.entry.js +0 -1
  958. package/dist/cjs/app-globals-0d8db19e.js +0 -11
  959. package/dist/cjs/browser-1d542d0f.js +0 -64
  960. package/dist/cjs/config.default-7e96eb95.js +0 -48
  961. package/dist/cjs/config.utils-df30e424.js +0 -140
  962. package/dist/cjs/helpers-debb881a.js +0 -331
  963. package/dist/cjs/index-24d802b4.js +0 -594
  964. package/dist/cjs/index-3b7f8988.js +0 -1860
  965. package/dist/cjs/index-758765f7.js +0 -560
  966. package/dist/cjs/index-84f42282.js +0 -1810
  967. package/dist/cjs/index-e6a233be.js +0 -37
  968. package/dist/cjs/index.esm-a38eebac.js +0 -212
  969. package/dist/cjs/initialize-2e8978a4.js +0 -319
  970. package/dist/cjs/log-33398c2a.js +0 -80
  971. package/dist/cjs/lottie_light_html-cbfdf82e.js +0 -11694
  972. package/dist/cjs/purify-b01229e2.js +0 -1355
  973. package/dist/cjs/window-resize.decorator-56853e4c.js +0 -48
  974. package/dist/esm/_commonjsHelpers-1c8beb5f.js +0 -3
  975. package/dist/esm/app-globals-07bd529a.js +0 -9
  976. package/dist/esm/browser-a8073d92.js +0 -62
  977. package/dist/esm/config.default-53a04699.js +0 -45
  978. package/dist/esm/config.utils-f3793464.js +0 -101
  979. package/dist/esm/helpers-51d51cc5.js +0 -307
  980. package/dist/esm/index-82aff103.js +0 -35
  981. package/dist/esm/index-8d2a7ce7.js +0 -1779
  982. package/dist/esm/index-95ee0c4b.js +0 -1858
  983. package/dist/esm/index-bba06972.js +0 -558
  984. package/dist/esm/index-db06fb0e.js +0 -592
  985. package/dist/esm/index.esm-9079680d.js +0 -206
  986. package/dist/esm/initialize-c00194b2.js +0 -312
  987. package/dist/esm/log-dfd1c19f.js +0 -77
  988. package/dist/esm/lottie_light_html-ab90e4a2.js +0 -11692
  989. package/dist/esm/purify-8cb49f16.js +0 -1353
  990. package/dist/esm-es5/_commonjsHelpers-1c8beb5f.js +0 -1
  991. package/dist/esm-es5/animation.decorator-7fca988f.js +0 -1
  992. package/dist/esm-es5/app-globals-07bd529a.js +0 -1
  993. package/dist/esm-es5/array-4c09dfe3.js +0 -1
  994. package/dist/esm-es5/bal-logo.animation-560601c6.js +0 -1
  995. package/dist/esm-es5/breakpoints.decorator-4de4315f.js +0 -1
  996. package/dist/esm-es5/breakpoints.subject-2f68e834.js +0 -1
  997. package/dist/esm-es5/browser-a8073d92.js +0 -1
  998. package/dist/esm-es5/config.decorator-6795d1fe.js +0 -1
  999. package/dist/esm-es5/config.default-53a04699.js +0 -1
  1000. package/dist/esm-es5/config.utils-f3793464.js +0 -1
  1001. package/dist/esm-es5/date-87bdb1d1.js +0 -1
  1002. package/dist/esm-es5/device-8c6d2881.js +0 -1
  1003. package/dist/esm-es5/element-states.decorator-d99dc83c.js +0 -1
  1004. package/dist/esm-es5/floating-ui-8ffbc979.js +0 -1
  1005. package/dist/esm-es5/focus-visible-c1d6b5b8.js +0 -1
  1006. package/dist/esm-es5/focus.decorator-988245d7.js +0 -1
  1007. package/dist/esm-es5/form-input-1ebdb905.js +0 -1
  1008. package/dist/esm-es5/helpers-51d51cc5.js +0 -1
  1009. package/dist/esm-es5/index-82aff103.js +0 -1
  1010. package/dist/esm-es5/index-8d2a7ce7.js +0 -2
  1011. package/dist/esm-es5/index-95ee0c4b.js +0 -1
  1012. package/dist/esm-es5/index-bba06972.js +0 -1
  1013. package/dist/esm-es5/index-db06fb0e.js +0 -1
  1014. package/dist/esm-es5/index.esm-9079680d.js +0 -1
  1015. package/dist/esm-es5/initialize-c00194b2.js +0 -1
  1016. package/dist/esm-es5/listener-04842ae9.js +0 -1
  1017. package/dist/esm-es5/log-dfd1c19f.js +0 -1
  1018. package/dist/esm-es5/lottie_light_html-ab90e4a2.js +0 -9
  1019. package/dist/esm-es5/mutation.decorator-6a69cedb.js +0 -1
  1020. package/dist/esm-es5/number-ccf3fbd0.js +0 -1
  1021. package/dist/esm-es5/overlays-cee3838b.js +0 -1
  1022. package/dist/esm-es5/purify-8cb49f16.js +0 -2
  1023. package/dist/esm-es5/resize.decorator-3c8e5ee2.js +0 -1
  1024. package/dist/esm-es5/scroll-521224a9.js +0 -1
  1025. package/dist/esm-es5/swipe.subject-26a9e5a5.js +0 -1
  1026. package/dist/esm-es5/swiper.util-8e17b8c4.js +0 -1
  1027. package/dist/esm-es5/utils-9fbab1d3.js +0 -1
  1028. package/dist/esm-es5/visibility.decorator-5db91610.js +0 -1
  1029. package/dist/esm-es5/window-resize.decorator-03b1ed50.js +0 -1
  1030. package/loader/package.json +0 -11
  1031. /package/components/{floating-ui.dom.esm.js → floating-ui.dom.js} +0 -0
  1032. /package/dist/baloise-design-system/{p-8dc7ee30.js → p-B4aDEwd8.js} +0 -0
  1033. /package/dist/baloise-design-system/{p-5ed239cc.js → p-BLp4ll3i.js} +0 -0
  1034. /package/dist/baloise-design-system/{p-db0895e2.system.js → p-BbAtjg9Y.system.js} +0 -0
  1035. /package/dist/baloise-design-system/{p-11f970ba.js → p-BkEdlCZJ.js} +0 -0
  1036. /package/dist/baloise-design-system/{p-4c0bad70.system.js → p-BktTDSq4.system.js} +0 -0
  1037. /package/dist/baloise-design-system/{p-f3f5ce4f.js → p-BmVI6cLw.js} +0 -0
  1038. /package/dist/baloise-design-system/{p-ae86d0a0.js → p-ByiN-QjD.js} +0 -0
  1039. /package/dist/baloise-design-system/{p-3ecc7d9a.system.js → p-CDt5sRVY.system.js} +0 -0
  1040. /package/dist/baloise-design-system/{p-5f26e92f.system.js → p-CGJ8YYiA.system.js} +0 -0
  1041. /package/dist/baloise-design-system/{p-907368ff.system.js → p-CLfE_o7e.system.js} +0 -0
  1042. /package/dist/baloise-design-system/{p-8a2bab70.system.js → p-CTl0uAFp.system.js} +0 -0
  1043. /package/dist/baloise-design-system/{p-6dbef894.system.js → p-Cjiw70Dk.system.js} +0 -0
  1044. /package/dist/baloise-design-system/{p-a0fe8d65.js → p-Ct27z6g9.js} +0 -0
  1045. /package/dist/baloise-design-system/{p-dc98854c.js → p-D1VPLQ5z.js} +0 -0
  1046. /package/dist/baloise-design-system/{p-e7d72d7c.system.js → p-D5Gy6WbU.system.js} +0 -0
  1047. /package/dist/baloise-design-system/{p-6b45db53.system.js → p-DAOAbG5Y.system.js} +0 -0
  1048. /package/dist/baloise-design-system/{p-8f2e9a7f.js → p-DBsOHTWj.js} +0 -0
  1049. /package/dist/baloise-design-system/{p-ad81b8ea.js → p-DEb5iNGc.js} +0 -0
  1050. /package/dist/baloise-design-system/{p-06ecf846.js → p-DIC_sxLd.js} +0 -0
  1051. /package/dist/baloise-design-system/{p-2da669b4.system.js → p-DKjTFqnu.system.js} +0 -0
  1052. /package/dist/baloise-design-system/{p-14d0c5f3.system.js → p-DPYRyPTD.system.js} +0 -0
  1053. /package/dist/baloise-design-system/{p-278aed95.system.js → p-DWgCJRpS.system.js} +0 -0
  1054. /package/dist/baloise-design-system/{p-ba579059.system.js → p-Dd7xQwRJ.system.js} +0 -0
  1055. /package/dist/baloise-design-system/{p-fe76780d.system.js → p-DkfWaTsH.system.js} +0 -0
  1056. /package/dist/baloise-design-system/{p-1a158488.js → p-DuObDTix.js} +0 -0
  1057. /package/dist/baloise-design-system/{p-59d9918c.system.js → p-Dz-E2PRm.system.js} +0 -0
  1058. /package/dist/baloise-design-system/{p-5eb3fbb9.js → p-FCLKfv6B.js} +0 -0
  1059. /package/dist/baloise-design-system/{p-09ab29d6.js → p-JHAE10yr.js} +0 -0
  1060. /package/dist/baloise-design-system/{p-4e642b63.system.js → p-SdtgSPca.system.js} +0 -0
  1061. /package/dist/baloise-design-system/{p-43c9f5e9.js → p-dfXERft2.js} +0 -0
  1062. /package/dist/baloise-design-system/{p-a65bc5e2.js → p-rBUN7c88.js} +0 -0
  1063. /package/dist/baloise-design-system/{p-99cfab9c.system.js → p-wTePExHL.system.js} +0 -0
  1064. /package/dist/baloise-design-system/{p-ec1efe3d.js → p-xVPGsAdF.js} +0 -0
  1065. /package/dist/cjs/{aria-7672033f.js → aria-BzkqcV7W.js} +0 -0
  1066. /package/dist/cjs/{bal-close.i18n-56dddd35.js → bal-close.i18n-B3X5xlkl.js} +0 -0
  1067. /package/dist/cjs/{bal-file-upload.type-616d69d9.js → bal-file-upload.type-BzNkF3YQ.js} +0 -0
  1068. /package/dist/cjs/{bal-input-stepper.i18n-dbcd32ab.js → bal-input-stepper.i18n-D57DHpYR.js} +0 -0
  1069. /package/dist/cjs/{bal-label.i18n-a25878af.js → bal-label.i18n-BcNNm9Es.js} +0 -0
  1070. /package/dist/cjs/{bal-step.util-3c009db9.js → bal-step.util-DQcaqybX.js} +0 -0
  1071. /package/dist/cjs/{bal-tab.util-d0785ef4.js → bal-tab.util-DFGwGbfr.js} +0 -0
  1072. /package/dist/cjs/{bal-time-input.i18n-b2bb9182.js → bal-time-input.i18n-Bfr3EMVD.js} +0 -0
  1073. /package/dist/cjs/{bem-81bc6a2d.js → bem-p0PWVN8n.js} +0 -0
  1074. /package/dist/cjs/{contact-61b41246.js → contact-qHJM5IBh.js} +0 -0
  1075. /package/dist/cjs/{floating-ui.dom.esm-13e3f667.js → floating-ui.dom-BPU3HWKX.js} +0 -0
  1076. /package/dist/cjs/{form-17c98ac2.js → form-BSlIiqcR.js} +0 -0
  1077. /package/dist/cjs/{keyboard.helpers-2093e793.js → keyboard.helpers-BkZpVT-9.js} +0 -0
  1078. /package/dist/cjs/{keys.constant-b53da545.js → keys.constant-LnwxHAZo.js} +0 -0
  1079. /package/dist/cjs/{mask-util-19c28b4a.js → mask-util-B8hrxmqO.js} +0 -0
  1080. /package/dist/cjs/{option-85af0921.js → option-kGk4eTdA.js} +0 -0
  1081. /package/dist/esm/{aria-ea150568.js → aria-DBsOHTWj.js} +0 -0
  1082. /package/dist/esm/{bal-close.i18n-f2daa707.js → bal-close.i18n-Ct27z6g9.js} +0 -0
  1083. /package/dist/esm/{bal-file-upload.type-2a70f4ec.js → bal-file-upload.type-rBUN7c88.js} +0 -0
  1084. /package/dist/esm/{bal-input-stepper.i18n-aaa4a009.js → bal-input-stepper.i18n-DEb5iNGc.js} +0 -0
  1085. /package/dist/esm/{bal-label.i18n-4212be56.js → bal-label.i18n-JHAE10yr.js} +0 -0
  1086. /package/dist/esm/{bal-step.util-3905ad56.js → bal-step.util-DIC_sxLd.js} +0 -0
  1087. /package/dist/esm/{bal-tab.util-933315fe.js → bal-tab.util-BmVI6cLw.js} +0 -0
  1088. /package/dist/esm/{bal-time-input.i18n-157c7092.js → bal-time-input.i18n-B4aDEwd8.js} +0 -0
  1089. /package/dist/esm/{bem-8c7d2eb0.js → bem-ByiN-QjD.js} +0 -0
  1090. /package/dist/esm/{contact-91a44c8c.js → contact-BkEdlCZJ.js} +0 -0
  1091. /package/dist/esm/{floating-ui.dom.esm-efb93616.js → floating-ui.dom-DKxvaA1I.js} +0 -0
  1092. /package/dist/esm/{form-841232ff.js → form-FCLKfv6B.js} +0 -0
  1093. /package/dist/esm/{keyboard.helpers-159e517d.js → keyboard.helpers-D1VPLQ5z.js} +0 -0
  1094. /package/dist/esm/{keys.constant-0eb059e0.js → keys.constant-xVPGsAdF.js} +0 -0
  1095. /package/dist/esm/{mask-util-71edc2b8.js → mask-util-DuObDTix.js} +0 -0
  1096. /package/dist/esm/{option-367a5341.js → option-BLp4ll3i.js} +0 -0
  1097. /package/dist/esm-es5/{aria-ea150568.js → aria-DBsOHTWj.js} +0 -0
  1098. /package/dist/esm-es5/{bal-close.i18n-f2daa707.js → bal-close.i18n-Ct27z6g9.js} +0 -0
  1099. /package/dist/esm-es5/{bal-file-upload.type-2a70f4ec.js → bal-file-upload.type-rBUN7c88.js} +0 -0
  1100. /package/dist/esm-es5/{bal-input-stepper.i18n-aaa4a009.js → bal-input-stepper.i18n-DEb5iNGc.js} +0 -0
  1101. /package/dist/esm-es5/{bal-label.i18n-4212be56.js → bal-label.i18n-JHAE10yr.js} +0 -0
  1102. /package/dist/esm-es5/{bal-step.util-3905ad56.js → bal-step.util-DIC_sxLd.js} +0 -0
  1103. /package/dist/esm-es5/{bal-tab.util-933315fe.js → bal-tab.util-BmVI6cLw.js} +0 -0
  1104. /package/dist/esm-es5/{bal-time-input.i18n-157c7092.js → bal-time-input.i18n-B4aDEwd8.js} +0 -0
  1105. /package/dist/esm-es5/{bem-8c7d2eb0.js → bem-ByiN-QjD.js} +0 -0
  1106. /package/dist/esm-es5/{contact-91a44c8c.js → contact-BkEdlCZJ.js} +0 -0
  1107. /package/dist/esm-es5/{floating-ui.dom.esm-efb93616.js → floating-ui.dom-DKxvaA1I.js} +0 -0
  1108. /package/dist/esm-es5/{form-841232ff.js → form-FCLKfv6B.js} +0 -0
  1109. /package/dist/esm-es5/{keyboard.helpers-159e517d.js → keyboard.helpers-D1VPLQ5z.js} +0 -0
  1110. /package/dist/esm-es5/{keys.constant-0eb059e0.js → keys.constant-xVPGsAdF.js} +0 -0
  1111. /package/dist/esm-es5/{mask-util-71edc2b8.js → mask-util-DuObDTix.js} +0 -0
  1112. /package/dist/esm-es5/{option-367a5341.js → option-BLp4ll3i.js} +0 -0
  1113. /package/dist/esm-es5/{tslib.es6-654e2c24.js → tslib.es6-dfXERft2.js} +0 -0
@@ -0,0 +1,2980 @@
1
+ const NAMESPACE = 'baloise-design-system';
2
+ const BUILD = /* baloise-design-system */ { hydratedSelectorName: "hydrated", lazyLoad: true, slotRelocation: true, updatable: true};
3
+
4
+ const tags = [
5
+ "bal-accordion",
6
+ "bal-accordion-details",
7
+ "bal-accordion-summary",
8
+ "bal-accordion-trigger",
9
+ "bal-app",
10
+ "bal-badge",
11
+ "bal-button",
12
+ "bal-button-group",
13
+ "bal-card",
14
+ "bal-card-actions",
15
+ "bal-card-button",
16
+ "bal-card-content",
17
+ "bal-card-subtitle",
18
+ "bal-card-title",
19
+ "bal-carousel",
20
+ "bal-carousel-item",
21
+ "bal-check",
22
+ "bal-checkbox",
23
+ "bal-checkbox-group",
24
+ "bal-close",
25
+ "bal-content",
26
+ "bal-data",
27
+ "bal-data-item",
28
+ "bal-data-label",
29
+ "bal-data-value",
30
+ "bal-date",
31
+ "bal-date-calendar",
32
+ "bal-date-calendar-cell",
33
+ "bal-divider",
34
+ "bal-dropdown",
35
+ "bal-field",
36
+ "bal-field-control",
37
+ "bal-field-hint",
38
+ "bal-field-label",
39
+ "bal-field-message",
40
+ "bal-file-upload",
41
+ "bal-footer",
42
+ "bal-form",
43
+ "bal-form-col",
44
+ "bal-form-grid",
45
+ "bal-heading",
46
+ "bal-hint",
47
+ "bal-hint-text",
48
+ "bal-hint-title",
49
+ "bal-icon",
50
+ "bal-input",
51
+ "bal-input-date",
52
+ "bal-input-group",
53
+ "bal-input-slider",
54
+ "bal-input-stepper",
55
+ "bal-label",
56
+ "bal-list",
57
+ "bal-list-item",
58
+ "bal-list-item-accordion-body",
59
+ "bal-list-item-accordion-head",
60
+ "bal-list-item-content",
61
+ "bal-list-item-icon",
62
+ "bal-list-item-subtitle",
63
+ "bal-list-item-title",
64
+ "bal-logo",
65
+ "bal-modal",
66
+ "bal-modal-body",
67
+ "bal-modal-header",
68
+ "bal-nav",
69
+ "bal-nav-link",
70
+ "bal-nav-link-grid",
71
+ "bal-nav-link-grid-col",
72
+ "bal-nav-link-group",
73
+ "bal-nav-menu-bar",
74
+ "bal-nav-menu-flyout",
75
+ "bal-nav-meta-bar",
76
+ "bal-navbar",
77
+ "bal-navbar-brand",
78
+ "bal-navbar-menu",
79
+ "bal-navbar-menu-end",
80
+ "bal-navbar-menu-start",
81
+ "bal-notices",
82
+ "bal-notification",
83
+ "bal-number-input",
84
+ "bal-option",
85
+ "bal-option-list",
86
+ "bal-pagination",
87
+ "bal-popover",
88
+ "bal-popover-content",
89
+ "bal-popup",
90
+ "bal-progress-bar",
91
+ "bal-radio",
92
+ "bal-radio-group",
93
+ "bal-radio-icon",
94
+ "bal-segment",
95
+ "bal-segment-item",
96
+ "bal-select",
97
+ "bal-select-option",
98
+ "bal-shape",
99
+ "bal-sheet",
100
+ "bal-snackbar",
101
+ "bal-spinner",
102
+ "bal-stack",
103
+ "bal-stage",
104
+ "bal-stage-back-link",
105
+ "bal-stage-body",
106
+ "bal-stage-foot",
107
+ "bal-stage-head",
108
+ "bal-stage-image",
109
+ "bal-step-item",
110
+ "bal-steps",
111
+ "bal-switch",
112
+ "bal-tab-item",
113
+ "bal-table",
114
+ "bal-tabs",
115
+ "bal-tag",
116
+ "bal-tag-group",
117
+ "bal-text",
118
+ "bal-textarea",
119
+ "bal-time-input",
120
+ "bal-toast",
121
+ "bal-tooltip"
122
+ ];
123
+
124
+ class BrowserWindow {
125
+ /**
126
+ * Returns the width of the window
127
+ */
128
+ get width() {
129
+ if (balBrowser.hasWindow) {
130
+ return window.innerWidth;
131
+ }
132
+ return 0;
133
+ }
134
+ /**
135
+ * Returns the height of the window
136
+ */
137
+ get height() {
138
+ if (balBrowser.hasWindow) {
139
+ return window.innerHeight;
140
+ }
141
+ return 0;
142
+ }
143
+ }
144
+ class Browser {
145
+ constructor() {
146
+ this.window = new BrowserWindow();
147
+ }
148
+ /**
149
+ * Is true when it is a Safari browser
150
+ */
151
+ get isSafari() {
152
+ return /^((?!chrome|android).)*safari/i.test(this.userAgent);
153
+ }
154
+ /**
155
+ * Is true when the window object is defined
156
+ */
157
+ get hasWindow() {
158
+ return typeof window !== 'undefined';
159
+ }
160
+ /**
161
+ * Is true when the navigator object is defined
162
+ */
163
+ get hasNavigator() {
164
+ return typeof navigator !== 'undefined';
165
+ }
166
+ /**
167
+ * Is true when the document object is defined
168
+ */
169
+ get hasDocument() {
170
+ return typeof document !== 'undefined';
171
+ }
172
+ /**
173
+ * Returns a string with the user agents
174
+ */
175
+ get userAgent() {
176
+ var _a;
177
+ if (this.hasWindow && this.hasNavigator) {
178
+ return (_a = navigator.userAgent) !== null && _a !== void 0 ? _a : '';
179
+ }
180
+ return '';
181
+ }
182
+ }
183
+ const balBrowser = new Browser();
184
+
185
+ const BALOISE_SESSION_KEY = 'baloise-persist-config';
186
+ const BALOISE_ANIMATION_KEY = 'baloise-animated';
187
+
188
+ const defaultLoggerConfig = {
189
+ components: [],
190
+ event: false,
191
+ lifecycle: false,
192
+ render: false,
193
+ custom: false,
194
+ };
195
+ const getConfig = () => {
196
+ let loggerConfig = defaultLoggerConfig;
197
+ if (balBrowser.hasWindow &&
198
+ window.BaloiseDesignSystem &&
199
+ window.BaloiseDesignSystem.config &&
200
+ window.BaloiseDesignSystem.config.logger) {
201
+ loggerConfig = window.BaloiseDesignSystem.config.logger;
202
+ }
203
+ return loggerConfig;
204
+ };
205
+ const buildLogger = (tag) => {
206
+ const l = (type, message, ...optionalParams) => {
207
+ const config = getConfig();
208
+ if (config.components.includes(tag) && config[type]) {
209
+ console.log(message, ...optionalParams);
210
+ }
211
+ };
212
+ return {
213
+ custom: (message, ...optionalParams) => l('custom', ` ➡️ [${tag}] - ${message}`, ...optionalParams),
214
+ lifecycle: (lifecycleName, ...optionalParams) => l('lifecycle', `${lifecycleName === 'connectedCallback'
215
+ ? '🟢'
216
+ : lifecycleName === 'disconnectedCallback'
217
+ ? '🔴'
218
+ : lifecycleName === 'componentDidLoad'
219
+ ? '🏁'
220
+ : ' ➡️'} [${tag}] - (${lifecycleName})`, ...optionalParams),
221
+ event: (eventName, ...optionalParams) => l('event', `🔥 [${tag}] - (${eventName})`, ...optionalParams),
222
+ render: (...optionalParams) => l('render', `🖌️ [${tag}] - (render)`, ...optionalParams),
223
+ };
224
+ };
225
+ function Logger(tag = 'unknown') {
226
+ return function (target, _propertyKey, _descriptor) {
227
+ const { connectedCallback, disconnectedCallback, render, componentDidLoad, createLogger } = target;
228
+ const log = buildLogger(tag);
229
+ target.connectedCallback = function () {
230
+ log.lifecycle(`connectedCallback`, this);
231
+ const events = Object.keys(this)
232
+ .filter(n => n.startsWith('bal'))
233
+ .filter(n => typeof this[n] === 'object');
234
+ for (let index = 0; index < events.length; index++) {
235
+ const event = events[index];
236
+ const emitter = this[event];
237
+ this[event] = {
238
+ emit: (...args) => {
239
+ log.event(event, this, ...args);
240
+ return emitter.emit.call(this, ...args);
241
+ },
242
+ };
243
+ }
244
+ createLogger.call(this, log.custom);
245
+ return connectedCallback && connectedCallback.call(this);
246
+ };
247
+ target.disconnectedCallback = function () {
248
+ log.lifecycle(`disconnectedCallback`, this);
249
+ return disconnectedCallback && disconnectedCallback.call(this);
250
+ };
251
+ target.componentDidLoad = function () {
252
+ log.lifecycle(`componentDidLoad`, this);
253
+ return componentDidLoad && componentDidLoad.call(this);
254
+ };
255
+ target.render = function () {
256
+ log.render(this);
257
+ return render.call(this);
258
+ };
259
+ };
260
+ }
261
+
262
+ // generated file
263
+ const balIconYoutube = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0 4C0 2.61929 1.11929 1.5 2.5 1.5H11.5C12.8807 1.5 14 2.61929 14 4V10C14 11.3807 12.8807 12.5 11.5 12.5H2.5C1.11929 12.5 0 11.3807 0 10V4ZM5.30998 5.11998V9.31998C5.30935 9.3905 5.32737 9.45993 5.36222 9.52124C5.39707 9.58255 5.4475 9.63356 5.50842 9.66909C5.56933 9.70462 5.63856 9.72342 5.70908 9.72358C5.7796 9.72374 5.84891 9.70524 5.90998 9.66998L9.50998 7.56998C9.57013 7.53469 9.62001 7.48428 9.65467 7.42377C9.68933 7.36325 9.70756 7.29472 9.70756 7.22498C9.70756 7.15524 9.68933 7.08671 9.65467 7.0262C9.62001 6.96568 9.57013 6.91527 9.50998 6.87998L5.90998 4.77998C5.85023 4.74175 5.78117 4.72055 5.71026 4.71865C5.63935 4.71675 5.56926 4.73422 5.50754 4.7692C5.44582 4.80417 5.39481 4.85532 5.36 4.91713C5.32519 4.97894 5.3079 5.04907 5.30998 5.11998Z" clip-rule="evenodd"/></svg>';
264
+ const balIconXing = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M13.0056 0C13.385 0 13.6262 0.406033 13.4447 0.739215L9.3722 8.21397C9.28942 8.3659 9.29108 8.54984 9.37658 8.70026L11.9644 13.2529C12.1539 13.5862 11.9131 14 11.5297 14H8.88832C8.70848 14 8.5425 13.9034 8.45363 13.7471L5.58749 8.70478C5.50059 8.55191 5.50038 8.36464 5.58694 8.21157L10.0872 0.253872C10.1759 0.0969935 10.3422 0 10.5224 0H13.0056ZM5.60519 5.58358C5.68784 5.73855 5.68312 5.92552 5.59276 6.07613L3.43406 9.67396C3.3437 9.82456 3.18095 9.91671 3.00532 9.91671H0.500779C0.111209 9.91671 -0.128712 9.49091 0.0730986 9.15769L1.97318 6.02035C2.06519 5.86842 2.0697 5.67908 1.98502 5.52295L0.655558 3.07176C0.474862 2.7386 0.716068 2.33337 1.09507 2.33337H3.57175C3.7564 2.33337 3.92603 2.43515 4.01292 2.59808L5.60519 5.58358Z"/></svg>';
265
+ const balIconX = '<svg viewBox="0 0 14 15" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.3608 1.15369C13.4169 1.2059 13.4622 1.26865 13.494 1.33837C13.5259 1.40808 13.5436 1.48339 13.5464 1.55999C13.5491 1.63659 13.5367 1.71297 13.5098 1.78477C13.483 1.85656 13.4423 1.92236 13.39 1.97841L8.64428 7.06727L13.8824 14.0198C13.9477 14.1064 13.9876 14.2095 13.9975 14.3176C14.0075 14.4256 13.9871 14.5343 13.9386 14.6313C13.8902 14.7284 13.8156 14.81 13.7233 14.8671C13.631 14.9241 13.5246 14.9542 13.4161 14.9541H10.2207C10.1303 14.9542 10.0412 14.9333 9.96026 14.893C9.87935 14.8528 9.8089 14.7943 9.75447 14.7222L6.06784 9.8299L1.46336 14.7684C1.41113 14.8245 1.34837 14.8696 1.27867 14.9014C1.20897 14.9332 1.13369 14.9509 1.05714 14.9536C0.980585 14.9563 0.904251 14.9439 0.832496 14.9171C0.760741 14.8903 0.69497 14.8496 0.63894 14.7973C0.582909 14.7451 0.537715 14.6823 0.505938 14.6126C0.474162 14.5429 0.456425 14.4677 0.45374 14.3911C0.451056 14.3146 0.463476 14.2382 0.490292 14.1665C0.517108 14.0947 0.557794 14.029 0.610028 13.9729L5.35572 8.88407L0.117626 1.93154C0.0523114 1.84497 0.0124314 1.74191 0.00246702 1.63393C-0.00749732 1.52595 0.0128489 1.41733 0.0612194 1.32027C0.10959 1.22322 0.184068 1.14157 0.276285 1.08451C0.368503 1.02746 0.474805 0.997244 0.583248 0.997273H3.7793C3.86956 0.997249 3.9586 1.01818 4.0394 1.05842C4.1202 1.09866 4.19055 1.15711 4.24492 1.22917L7.93155 6.12144L12.5354 1.18291C12.5876 1.12679 12.6504 1.08151 12.7201 1.04966C12.7898 1.01782 12.8651 1.00003 12.9417 0.997314C13.0183 0.9946 13.0947 1.00702 13.1665 1.03385C13.2383 1.06068 13.3047 1.10141 13.3608 1.15369ZM7.44036 7.40872C7.42386 7.38964 7.40861 7.36951 7.39471 7.34846L3.48836 2.16343H1.75308L10.511 13.7885H12.2463L7.43975 7.40933L7.44036 7.40872Z"/></svg>';
266
+ const balIconWeb = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M5.04883 0.275541C2.32493 1.06453 0.285118 3.46373 0.0275269 6.375H3.22773C3.41606 4.22626 4.03911 2.14922 5.04883 0.275541ZM3.22773 7.625H0.0275269C0.285118 10.5363 2.32493 12.9355 5.04883 13.7245C4.0391 11.8508 3.41606 9.77374 3.22773 7.625ZM6.6522 13.9915C5.44618 12.0855 4.69968 9.90183 4.48294 7.625H9.51704C9.30031 9.90183 8.5538 12.0855 7.34777 13.9915C7.23256 13.9971 7.11661 14 7.00001 14C6.88338 14 6.76743 13.9971 6.6522 13.9915ZM8.95115 13.7245C11.6751 12.9355 13.7149 10.5363 13.9725 7.625H10.7722C10.5839 9.77375 9.96087 11.8508 8.95115 13.7245ZM10.7722 6.375H13.9725C13.7149 3.46372 11.6751 1.06451 8.95114 0.275533C9.96087 2.14921 10.5839 4.22625 10.7722 6.375ZM6.65221 0.00848953C6.76743 0.00285182 6.88339 0 7.00001 0C7.11661 0 7.23256 0.0028513 7.34777 0.008488C8.5538 1.91446 9.3003 4.09817 9.51704 6.375H4.48294C4.69968 4.09817 5.44618 1.91446 6.65221 0.00848953Z" clip-rule="evenodd"/></svg>';
267
+ const balIconUpload = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M8.99999 4C9.2883 4 9.55108 3.83474 9.67597 3.57489C9.80086 3.31504 9.76575 3.00661 9.58564 2.78148L7.58564 0.281479C7.44331 0.103567 7.22783 0 6.99999 0C6.77215 0 6.55667 0.103567 6.41434 0.281479L4.41434 2.78148C4.23424 3.00661 4.19912 3.31504 4.32401 3.57489C4.4489 3.83474 4.71169 4 4.99999 4H6L6 9.5C6 10.0523 6.44772 10.5 7 10.5C7.55228 10.5 8 10.0523 8 9.5L8 4H8.99999ZM3 12V5.99998C3.55228 5.99998 4 5.55227 4 4.99998C4 4.4477 3.55228 3.99998 3 3.99998H2.5C2.10217 3.99998 1.72064 4.15802 1.43934 4.43932C1.15804 4.72062 1 5.10216 1 5.49998V12.5C1 12.8979 1.15804 13.2794 1.43934 13.5607C1.72065 13.842 2.10218 14 2.5 14L11.5 14.0001C11.8978 14.0001 12.2794 13.842 12.5607 13.5607C12.842 13.2794 13 12.8979 13 12.5001V5.5C13 5.10218 12.842 4.72065 12.5607 4.43934C12.2794 4.15804 11.8978 4 11.5 4H11C10.4477 4 10 4.44772 10 5C10 5.55228 10.4477 6 11 6V12.0001L3 12Z" clip-rule="evenodd"/></svg>';
268
+ const balIconTwitter = '<svg viewBox="0 0 14 15" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path fill-rule="evenodd" clip-rule="evenodd" d="M13.3608 1.15369C13.4169 1.2059 13.4622 1.26865 13.494 1.33837C13.5259 1.40808 13.5436 1.48339 13.5464 1.55999C13.5491 1.63659 13.5367 1.71297 13.5098 1.78477C13.483 1.85656 13.4423 1.92236 13.39 1.97841L8.64428 7.06727L13.8824 14.0198C13.9477 14.1064 13.9876 14.2095 13.9975 14.3176C14.0075 14.4256 13.9871 14.5343 13.9386 14.6313C13.8902 14.7284 13.8156 14.81 13.7233 14.8671C13.631 14.9241 13.5246 14.9542 13.4161 14.9541H10.2207C10.1303 14.9542 10.0412 14.9333 9.96026 14.893C9.87935 14.8528 9.8089 14.7943 9.75447 14.7222L6.06784 9.8299L1.46336 14.7684C1.41113 14.8245 1.34837 14.8696 1.27867 14.9014C1.20897 14.9332 1.13369 14.9509 1.05714 14.9536C0.980585 14.9563 0.904251 14.9439 0.832496 14.9171C0.760741 14.8903 0.69497 14.8496 0.63894 14.7973C0.582909 14.7451 0.537715 14.6823 0.505938 14.6126C0.474162 14.5429 0.456425 14.4677 0.45374 14.3911C0.451056 14.3146 0.463476 14.2382 0.490292 14.1665C0.517108 14.0947 0.557794 14.029 0.610028 13.9729L5.35572 8.88407L0.117626 1.93154C0.0523114 1.84497 0.0124314 1.74191 0.00246702 1.63393C-0.00749732 1.52595 0.0128489 1.41733 0.0612194 1.32027C0.10959 1.22322 0.184068 1.14157 0.276285 1.08451C0.368503 1.02746 0.474805 0.997244 0.583248 0.997273H3.7793C3.86956 0.997249 3.9586 1.01818 4.0394 1.05842C4.1202 1.09866 4.19055 1.15711 4.24492 1.22917L7.93155 6.12144L12.5354 1.18291C12.5876 1.12679 12.6504 1.08151 12.7201 1.04966C12.7898 1.01782 12.8651 1.00003 12.9417 0.997314C13.0183 0.9946 13.0947 1.00702 13.1665 1.03385C13.2383 1.06068 13.3047 1.10141 13.3608 1.15369ZM7.44036 7.40872C7.42386 7.38964 7.40861 7.36951 7.39471 7.34846L3.48836 2.16343H1.75308L10.511 13.7885H12.2463L7.43975 7.40933L7.44036 7.40872Z"/></svg>';
269
+ const balIconTrash = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M5.76256 2.01256C6.09075 1.68437 6.53587 1.5 7 1.5C7.46413 1.5 7.90925 1.68437 8.23744 2.01256C8.4448 2.21993 8.59475 2.47397 8.67705 2.75H5.32295C5.40525 2.47397 5.5552 2.21993 5.76256 2.01256ZM3.78868 2.75C3.89405 2.07321 4.21153 1.44227 4.7019 0.951903C5.3114 0.34241 6.13805 0 7 0C7.86195 0 8.6886 0.34241 9.2981 0.951903C9.78847 1.44227 10.106 2.07321 10.2113 2.75H13C13.4142 2.75 13.75 3.08579 13.75 3.5C13.75 3.91422 13.4142 4.25 13 4.25H12V12.5C12 12.8978 11.842 13.2794 11.5607 13.5607C11.2794 13.842 10.8978 14 10.5 14H3.5C3.10217 14 2.72064 13.842 2.43934 13.5607C2.15804 13.2794 2 12.8978 2 12.5V4.25H1C0.585786 4.25 0.25 3.91422 0.25 3.5C0.25 3.08579 0.585786 2.75 1 2.75H3.78868ZM5 5.87646C5.34518 5.87646 5.625 6.15629 5.625 6.50146V10.503C5.625 10.8481 5.34518 11.128 5 11.128C4.65482 11.128 4.375 10.8481 4.375 10.503V6.50146C4.375 6.15629 4.65482 5.87646 5 5.87646ZM9.625 6.50146C9.625 6.15629 9.34518 5.87646 9 5.87646C8.65482 5.87646 8.375 6.15629 8.375 6.50146V10.503C8.375 10.8481 8.65482 11.128 9 11.128C9.34518 11.128 9.625 10.8481 9.625 10.503V6.50146Z" clip-rule="evenodd"/></svg>';
270
+ const balIconPlus = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M8 1C8 0.447715 7.55228 0 7 0C6.44772 0 6 0.447715 6 1V6H1C0.447715 6 0 6.44772 0 7C0 7.55228 0.447715 8 1 8H6V13C6 13.5523 6.44772 14 7 14C7.55228 14 8 13.5523 8 13V8H13C13.5523 8 14 7.55228 14 7C14 6.44772 13.5523 6 13 6H8V1Z" clip-rule="evenodd"/></svg>';
271
+ const balIconNavGoUp = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M9.794,6.607,5.884,2.49A1.255,1.255,0,0,0,4.1,2.5l-3.9,4.1A.75.75,0,1,0,1.294,7.641L4.819,3.928a.249.249,0,0,1,.362,0L8.706,7.641A.75.75,0,1,0,9.794,6.607Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
272
+ const balIconNavGoRight = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.5,4.1l-4.1-3.9A.75.75,0,1,0,2.36,1.294L6.072,4.819a.249.249,0,0,1,0,.362L2.36,8.706A.75.75,0,0,0,3.393,9.794L7.51,5.884A1.256,1.256,0,0,0,7.5,4.1Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
273
+ const balIconNavGoLeft = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.124,10a.749.749,0,0,1-.517-.206L2.5,5.9A1.257,1.257,0,0,1,2.49,4.116L6.607.206A.75.75,0,1,1,7.64,1.294L3.928,4.819a.249.249,0,0,0,0,.362L7.64,8.706A.75.75,0,0,1,7.124,10Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
274
+ const balIconNavGoDown = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M5,7.874a1.238,1.238,0,0,1-.879-.364L.206,3.393A.75.75,0,1,1,1.294,2.36L4.819,6.072a.249.249,0,0,0,.362,0L8.706,2.36A.75.75,0,1,1,9.794,3.393L5.9,7.5A1.269,1.269,0,0,1,5,7.874Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
275
+ const balIconMinus = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0 7C0 6.44772 0.447715 6 1 6H13C13.5523 6 14 6.44772 14 7C14 7.55228 13.5523 8 13 8H1C0.447715 8 0 7.55228 0 7Z" clip-rule="evenodd"/></svg>';
276
+ const balIconMenuBars = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0 2a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1zm0 5a1 1 0 0 1 1-1h12a1 1 0 1 1 0 2H1a1 1 0 0 1-1-1zm1 4a1 1 0 1 0 0 2h12a1 1 0 1 0 0-2H1z" clip-rule="evenodd"/></svg>';
277
+ const balIconLinkedin = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M3.31334 1.36381C3.31624 1.73602 3.17257 2.09441 2.9134 2.36157C2.65422 2.62872 2.30034 2.78317 1.92822 2.79156C1.55687 2.77793 1.20495 2.62217 0.945182 2.35645C0.685414 2.09073 0.537655 1.73538 0.53244 1.36381C0.548583 1.0018 0.701774 0.659474 0.96096 0.406224C1.22015 0.152974 1.56593 0.00775305 1.92822 0C2.28945 0.00789779 2.63402 0.153479 2.89148 0.40698C3.14894 0.66048 3.29985 1.00275 3.31334 1.36381ZM0.681607 5.3274C0.681607 4.50698 1.20369 4.63484 1.92822 4.63484C2.65275 4.63484 3.16418 4.50698 3.16418 5.3274V13.3185C3.16418 14.1496 2.64209 13.9791 1.92822 13.9791C1.21435 13.9791 0.681607 14.1496 0.681607 13.3185V5.3274Z"/><path d="M5.31647 5.32741C5.31647 4.86926 5.48694 4.69878 5.75331 4.64551C6.01968 4.59223 6.936 4.64551 7.25564 4.64551C7.57528 4.64551 7.70314 5.16759 7.69249 5.56182C7.96591 5.19486 8.32892 4.9042 8.7468 4.71765C9.16467 4.5311 9.62342 4.4549 10.0792 4.49634C10.5267 4.46898 10.975 4.53608 11.3949 4.69327C11.8148 4.85046 12.1969 5.09424 12.5165 5.40876C12.836 5.72328 13.0858 6.1015 13.2496 6.51887C13.4135 6.93623 13.4877 7.38339 13.4674 7.83129V13.2865C13.4674 14.1176 12.956 13.9471 12.2314 13.9471C11.5069 13.9471 10.9955 14.1176 10.9955 13.2865V9.02463C11.0142 8.80528 10.9855 8.58447 10.9114 8.3772C10.8372 8.16992 10.7193 7.98103 10.5657 7.82335C10.412 7.66568 10.2263 7.54291 10.021 7.46339C9.8157 7.38387 9.59571 7.34945 9.37595 7.36248C9.1572 7.35692 8.93978 7.3979 8.73806 7.48268C8.53635 7.56747 8.35494 7.69414 8.20586 7.85431C8.05677 8.01447 7.94341 8.20447 7.87328 8.41174C7.80314 8.61901 7.77784 8.83881 7.79904 9.05659V13.3185C7.79904 14.1496 7.27695 13.9791 6.55242 13.9791C5.8279 13.9791 5.31647 14.1496 5.31647 13.3185V5.32741Z"/></svg>';
278
+ const balIconInstagram = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M0.786499 3.39046C0.786499 1.95243 1.95225 0.786682 3.39027 0.786682H10.3337C11.7717 0.786682 12.9374 1.95243 12.9374 3.39046V10.3339C12.9374 11.7719 11.7717 12.9376 10.3337 12.9376H3.39027C1.95225 12.9376 0.786499 11.7719 0.786499 10.3339V3.39046ZM6.8621 4.78204C5.71332 4.78204 4.78204 5.71332 4.78204 6.8621C4.78204 8.01088 5.71332 8.94216 6.8621 8.94216C8.01088 8.94216 8.94216 8.01088 8.94216 6.8621C8.94216 5.71332 8.01088 4.78204 6.8621 4.78204ZM3.78204 6.8621C3.78204 5.16103 5.16103 3.78204 6.8621 3.78204C8.56317 3.78204 9.94216 5.16103 9.94216 6.8621C9.94216 8.56317 8.56317 9.94216 6.8621 9.94216C5.16103 9.94216 3.78204 8.56317 3.78204 6.8621ZM10.3349 3.98516C10.6842 3.98516 10.9673 3.70199 10.9673 3.35269C10.9673 3.00338 10.6842 2.72021 10.3349 2.72021C9.98556 2.72021 9.70239 3.00338 9.70239 3.35269C9.70239 3.70199 9.98556 3.98516 10.3349 3.98516Z" clip-rule="evenodd"/></svg>';
279
+ const balIconInfoCircle = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M7 14C10.866 14 14 10.866 14 7C14 3.13401 10.866 0 7 0C3.13401 0 0 3.13401 0 7C0 10.866 3.13401 14 7 14ZM5.5 9.375C5.15482 9.375 4.875 9.65482 4.875 10C4.875 10.3452 5.15482 10.625 5.5 10.625H7H8.5C8.84518 10.625 9.125 10.3452 9.125 10C9.125 9.65482 8.84518 9.375 8.5 9.375H7.625V6.5C7.625 6.15482 7.34518 5.875 7 5.875H6C5.65482 5.875 5.375 6.15482 5.375 6.5C5.375 6.84518 5.65482 7.125 6 7.125H6.375V9.375H5.5ZM8 4C8 4.55228 7.55228 5 7 5C6.44772 5 6 4.55228 6 4C6 3.44772 6.44772 3 7 3C7.55228 3 8 3.44772 8 4Z" clip-rule="evenodd"/></svg>';
280
+ const balIconFacebook = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M8.06356 3.75515C8.06356 2.67675 8.60345 2.67675 9.14334 2.67675H9.79121C9.89938 2.6782 10.0067 2.65799 10.107 2.61732C10.2072 2.57664 10.2982 2.51633 10.3747 2.43993C10.4512 2.36353 10.5116 2.2726 10.5523 2.17251C10.5931 2.07242 10.6133 1.96519 10.6118 1.85716V0.84346C10.6119 0.734917 10.5903 0.627453 10.5484 0.527307C10.5064 0.42716 10.445 0.336327 10.3677 0.260078C10.2903 0.18383 10.1986 0.123686 10.0978 0.0831375C9.99696 0.0425893 9.88909 0.0224446 9.78041 0.0238728L8.24712 0.00230466C7.80066 -0.0149417 7.35577 0.0647696 6.94316 0.235937C6.53054 0.407104 6.16003 0.665651 5.8572 0.993733C5.55436 1.32181 5.32641 1.71162 5.18908 2.13624C5.05175 2.56086 5.00831 3.01018 5.06176 3.4532V5.01689H4.20873C3.99108 5.01689 3.78235 5.10324 3.62845 5.25694C3.47455 5.41064 3.38809 5.61911 3.38809 5.83648V6.85018C3.38809 7.06754 3.47455 7.27601 3.62845 7.42971C3.78235 7.58341 3.99108 7.66976 4.20873 7.66976H5.06176V13.4608C5.06176 13.6038 5.11864 13.741 5.21989 13.8421C5.32114 13.9432 5.45846 14 5.60165 14H7.55606C7.69356 13.9917 7.8227 13.9313 7.91705 13.8311C8.01139 13.7308 8.0638 13.5984 8.06356 13.4608V7.66976H9.01377C9.23141 7.66976 9.44014 7.58341 9.59404 7.42971C9.74794 7.27601 9.8344 7.06754 9.8344 6.85018V5.83648C9.8344 5.61911 9.74794 5.41064 9.59404 5.25694C9.44014 5.10324 9.23141 5.01689 9.01377 5.01689H8.06356V3.75515Z"/></svg>';
281
+ const balIconEdit = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path d="M10.715 -0.000976562C10.5152 -0.000976562 10.3174 0.0389464 10.1332 0.116448C9.95019 0.193468 9.78428 0.306058 9.64512 0.447676L1.40732 8.64549C1.34616 8.70635 1.30179 8.782 1.27853 8.86508L0.0185299 13.3651C-0.0301752 13.539 0.0187291 13.7257 0.146458 13.8535C0.274188 13.9812 0.46088 14.0301 0.634827 13.9814L5.13483 12.7214C5.21791 12.6981 5.29356 12.6537 5.35442 12.5926L13.5521 4.3549L13.5535 4.35355C13.6934 4.21438 13.8045 4.04896 13.8804 3.86676C13.9566 3.68398 13.9958 3.48792 13.9958 3.2899C13.9958 3.09188 13.9566 2.89582 13.8804 2.71303C13.8045 2.53083 13.6934 2.3654 13.5535 2.22624L13.5521 2.2249L11.7859 0.448721C11.6466 0.306611 11.4803 0.193657 11.2968 0.116448C11.1126 0.0389464 10.9148 -0.000976562 10.715 -0.000976562Z"/></svg>';
282
+ const balIconDocument = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M1.43934 0.43934C1.72064 0.158035 2.10218 0 2.5 0H7.5C7.63261 0 7.75979 0.0526784 7.85355 0.146447L12.8536 5.14645C12.9473 5.24021 13 5.36739 13 5.5V12.5C13 12.8978 12.842 13.2794 12.5607 13.5607C12.2794 13.842 11.8978 14 11.5 14H2.5C2.10217 14 1.72064 13.842 1.43934 13.5607C1.15804 13.2794 1 12.8978 1 12.5V1.5C1 1.10218 1.15804 0.720644 1.43934 0.43934ZM4.5 3.875C4.15482 3.875 3.875 4.15482 3.875 4.5C3.875 4.84518 4.15482 5.125 4.5 5.125H6.5C6.84518 5.125 7.125 4.84518 7.125 4.5C7.125 4.15482 6.84518 3.875 6.5 3.875H4.5ZM3.875 7.5C3.875 7.15482 4.15482 6.875 4.5 6.875H9.5C9.84518 6.875 10.125 7.15482 10.125 7.5C10.125 7.84518 9.84518 8.125 9.5 8.125H4.5C4.15482 8.125 3.875 7.84518 3.875 7.5ZM4.5 9.875C4.15482 9.875 3.875 10.1548 3.875 10.5C3.875 10.8452 4.15482 11.125 4.5 11.125H9.5C9.84518 11.125 10.125 10.8452 10.125 10.5C10.125 10.1548 9.84518 9.875 9.5 9.875H4.5Z" clip-rule="evenodd"/></svg>';
283
+ const balIconDate = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M10 0a.75.75 0 0 1 .75.75v.75h1.5c.966 0 1.75.784 1.75 1.75v9A1.75 1.75 0 0 1 12.25 14H1.75A1.75 1.75 0 0 1 0 12.25v-9C0 2.284.784 1.5 1.75 1.5h1.5V.75a.75.75 0 0 1 1.5 0v.75h4.5V.75A.75.75 0 0 1 10 0zM3.25 3v.75a.75.75 0 0 0 1.5 0V3h4.5v.75a.75.75 0 0 0 1.5 0V3h1.5a.25.25 0 0 1 .25.25v2.282a1.002 1.002 0 0 0-.25-.032H1.75c-.086 0-.17.01-.25.032V3.25A.25.25 0 0 1 1.75 3h1.5z" clip-rule="evenodd"/></svg>';
284
+ const balIconClose = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M1.70711 0.292893C1.31658 -0.0976311 0.683417 -0.0976311 0.292893 0.292893C-0.0976311 0.683417 -0.0976311 1.31658 0.292893 1.70711L5.58579 7L0.292893 12.2929C-0.0976311 12.6834 -0.0976311 13.3166 0.292893 13.7071C0.683417 14.0976 1.31658 14.0976 1.70711 13.7071L7 8.41421L12.2929 13.7071C12.6834 14.0976 13.3166 14.0976 13.7071 13.7071C14.0976 13.3166 14.0976 12.6834 13.7071 12.2929L8.41421 7L13.7071 1.70711C14.0976 1.31658 14.0976 0.683417 13.7071 0.292893C13.3166 -0.0976311 12.6834 -0.0976311 12.2929 0.292893L7 5.58579L1.70711 0.292893Z" clip-rule="evenodd"/></svg>';
285
+ const balIconCheck = '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" focusable="false" aria-hidden="true"><path fill-rule="evenodd" d="M13.637 1.19792C14.0627 1.54974 14.1227 2.18006 13.7708 2.60579L5.73084 12.335L5.72842 12.3379C5.54554 12.5575 5.31602 12.7336 5.05655 12.8534C4.79707 12.9731 4.51417 13.0336 4.22842 13.0302L4.22752 13.0302C3.93709 13.0266 3.65125 12.9573 3.39146 12.8274C3.13254 12.6979 2.9062 12.5117 2.72931 12.2826C2.72871 12.2818 2.72812 12.281 2.72752 12.2802L0.210633 9.04426C-0.128437 8.60831 -0.0499029 7.98003 0.386044 7.64096C0.821992 7.30189 1.45027 7.38043 1.78934 7.81638L4.25291 10.9838L12.2291 1.33176C12.5809 0.906034 13.2113 0.846112 13.637 1.19792Z" clip-rule="evenodd"/></svg>';
286
+ const balIconCaretUp = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M9.794,6.607,5.884,2.49A1.255,1.255,0,0,0,4.1,2.5l-3.9,4.1A.75.75,0,1,0,1.294,7.641L4.819,3.928a.249.249,0,0,1,.362,0L8.706,7.641A.75.75,0,1,0,9.794,6.607Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
287
+ const balIconCaretRight = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.5,4.1l-4.1-3.9A.75.75,0,1,0,2.36,1.294L6.072,4.819a.249.249,0,0,1,0,.362L2.36,8.706A.75.75,0,0,0,3.393,9.794L7.51,5.884A1.256,1.256,0,0,0,7.5,4.1Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
288
+ const balIconCaretLeft = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M7.124,10a.749.749,0,0,1-.517-.206L2.5,5.9A1.257,1.257,0,0,1,2.49,4.116L6.607.206A.75.75,0,1,1,7.64,1.294L3.928,4.819a.249.249,0,0,0,0,.362L7.64,8.706A.75.75,0,0,1,7.124,10Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
289
+ const balIconCaretDown = '<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg" focusable="false" aria-hidden="true"><path d="M5,7.874a1.238,1.238,0,0,1-.879-.364L.206,3.393A.75.75,0,1,1,1.294,2.36L4.819,6.072a.249.249,0,0,0,.362,0L8.706,2.36A.75.75,0,1,1,9.794,3.393L5.9,7.5A1.269,1.269,0,0,1,5,7.874Z" stroke-linecap="round" stroke-linejoin="round" stroke-width="0"/></svg>';
290
+
291
+ const defaultIcons = {
292
+ balIconClose,
293
+ balIconInfoCircle,
294
+ balIconPlus,
295
+ balIconMinus,
296
+ balIconEdit,
297
+ balIconTrash,
298
+ balIconNavGoLeft,
299
+ balIconNavGoRight,
300
+ balIconNavGoDown,
301
+ balIconNavGoUp,
302
+ balIconCheck,
303
+ balIconDate,
304
+ balIconDocument,
305
+ balIconUpload,
306
+ balIconMenuBars,
307
+ balIconFacebook,
308
+ balIconInstagram,
309
+ balIconLinkedin,
310
+ balIconTwitter,
311
+ balIconX,
312
+ balIconXing,
313
+ balIconYoutube,
314
+ balIconWeb,
315
+ balIconCaretDown,
316
+ balIconCaretLeft,
317
+ balIconCaretRight,
318
+ balIconCaretUp,
319
+ };
320
+ const defaultConfig = {
321
+ region: 'CH',
322
+ language: 'de',
323
+ allowedLanguages: ['de', 'fr', 'it', 'en'],
324
+ icons: defaultIcons,
325
+ fallbackLanguage: 'de',
326
+ logger: defaultLoggerConfig,
327
+ animated: true,
328
+ httpFormSubmit: true,
329
+ _generateHydrateForCustomElementsOutput: false,
330
+ };
331
+ const defaultLocale = `${defaultConfig.language}-${defaultConfig.region}`;
332
+
333
+ class Config {
334
+ constructor() {
335
+ this._componentObservers = [];
336
+ this._observers = [];
337
+ this._config = defaultConfig;
338
+ }
339
+ get locale() {
340
+ return `${this._config.language}-${this._config.region}`;
341
+ }
342
+ get region() {
343
+ return this._config.region;
344
+ }
345
+ set region(region) {
346
+ if (region !== this._config.region) {
347
+ this._config.region = region;
348
+ this._notify();
349
+ }
350
+ }
351
+ get language() {
352
+ return this._config.language;
353
+ }
354
+ set language(language) {
355
+ if (language !== this._config.language) {
356
+ if (this._config.allowedLanguages.includes(language)) {
357
+ this._config.language = language;
358
+ }
359
+ else {
360
+ this._config.language = this._config.fallbackLanguage;
361
+ }
362
+ this._notify();
363
+ }
364
+ }
365
+ get allowedLanguages() {
366
+ return this._config.allowedLanguages;
367
+ }
368
+ set allowedLanguages(allowedLanguages) {
369
+ if (allowedLanguages !== this._config.allowedLanguages) {
370
+ this._config.allowedLanguages = allowedLanguages;
371
+ this._notify();
372
+ }
373
+ }
374
+ get icons() {
375
+ return this._config.icons;
376
+ }
377
+ set icons(icons) {
378
+ this._config.icons = Object.assign(Object.assign({}, this._config.icons), icons);
379
+ this._notify();
380
+ }
381
+ get logger() {
382
+ return this._config.logger;
383
+ }
384
+ set logger(logger) {
385
+ this._config.logger = Object.assign({}, logger);
386
+ this._notify();
387
+ }
388
+ get animated() {
389
+ return this._config.animated;
390
+ }
391
+ set animated(animated) {
392
+ this._config.animated = animated;
393
+ this._notify();
394
+ }
395
+ get httpFormSubmit() {
396
+ return this._config.httpFormSubmit;
397
+ }
398
+ set httpFormSubmit(httpFormSubmit) {
399
+ this._config.httpFormSubmit = httpFormSubmit;
400
+ this._notify();
401
+ }
402
+ attach(observer) {
403
+ const isExist = this._observers.includes(observer);
404
+ if (isExist) {
405
+ return console.log('Subject: Observer has been attached already.');
406
+ }
407
+ this._observers.push(observer);
408
+ observer.configChanged(this._config);
409
+ }
410
+ detach(observer) {
411
+ const observerIndex = this._observers.indexOf(observer);
412
+ if (observerIndex === -1) {
413
+ return console.log('Subject: Nonexistent observer.');
414
+ }
415
+ this._observers.splice(observerIndex, 1);
416
+ }
417
+ attachComponent(observer) {
418
+ const isExist = this._componentObservers.includes(observer);
419
+ if (isExist) {
420
+ return console.log('Subject: Observer has been attached already.');
421
+ }
422
+ this._componentObservers.push(observer);
423
+ observer.configChanged(this._config);
424
+ }
425
+ detachComponent(observer) {
426
+ const observerIndex = this._componentObservers.indexOf(observer);
427
+ if (observerIndex === -1) {
428
+ return console.log('Subject: Nonexistent observer.');
429
+ }
430
+ this._componentObservers.splice(observerIndex, 1);
431
+ }
432
+ toString() {
433
+ return JSON.stringify(this._config);
434
+ }
435
+ reset(config) {
436
+ this._config = Object.assign(Object.assign(Object.assign({}, this._config), config), { icons: Object.assign(Object.assign({}, this._config.icons), config.icons) });
437
+ this._notify(false);
438
+ }
439
+ _notify(all = true) {
440
+ for (const observer of this._componentObservers) {
441
+ observer.configChanged(this._config);
442
+ }
443
+ if (all) {
444
+ for (const observer of this._observers) {
445
+ observer.configChanged(this._config);
446
+ }
447
+ }
448
+ if (balBrowser.hasWindow) {
449
+ saveConfig(window, this._config);
450
+ }
451
+ }
452
+ }
453
+ const config = /*@__PURE__*/ new Config();
454
+ const configFromSession = (win) => {
455
+ try {
456
+ const configStr = win.sessionStorage.getItem(BALOISE_SESSION_KEY);
457
+ return configStr !== null ? JSON.parse(configStr) : {};
458
+ }
459
+ catch (e) {
460
+ return {};
461
+ }
462
+ };
463
+ const configFromLocalStorage = (win) => {
464
+ try {
465
+ const animated = JSON.parse(win.localStorage.getItem(BALOISE_ANIMATION_KEY));
466
+ if (animated !== null) {
467
+ return {
468
+ animated,
469
+ };
470
+ }
471
+ return {};
472
+ }
473
+ catch (e) {
474
+ return {};
475
+ }
476
+ };
477
+ const saveConfig = (win, c) => {
478
+ try {
479
+ win.sessionStorage.setItem(BALOISE_SESSION_KEY, JSON.stringify(c));
480
+ }
481
+ catch (e) {
482
+ return;
483
+ }
484
+ };
485
+
486
+ const setupConfig = (userConfig = {}, win = {}) => {
487
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
488
+ win = window;
489
+ }
490
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
491
+ config.reset(Object.assign(Object.assign(Object.assign(Object.assign({}, configFromSession(win)), configFromLocalStorage(win)), userConfig), { icons: Object.assign(Object.assign({}, configFromSession(win).icons), userConfig.icons) }));
492
+ win.BaloiseDesignSystem.config = config;
493
+ };
494
+
495
+ const onBalConfigChange = (callback) => {
496
+ attachToConfig({
497
+ configChanged(state) {
498
+ callback(state);
499
+ },
500
+ });
501
+ };
502
+ const useBalConfig = () => {
503
+ if (!balBrowser.hasWindow) {
504
+ return;
505
+ }
506
+ const win = window;
507
+ return win && win.BaloiseDesignSystem && win.BaloiseDesignSystem.config;
508
+ };
509
+ const attachToConfig = (observer) => {
510
+ const config = useBalConfig();
511
+ if (config) {
512
+ config.attach(observer);
513
+ }
514
+ };
515
+ const detachFromConfig = (observer) => {
516
+ const config = useBalConfig();
517
+ if (config) {
518
+ config.detach(observer);
519
+ }
520
+ };
521
+ const attachComponentToConfig = (observer) => {
522
+ const config = useBalConfig();
523
+ if (config) {
524
+ config.attachComponent(observer);
525
+ }
526
+ };
527
+ const detachComponentFromConfig = (observer) => {
528
+ const config = useBalConfig();
529
+ if (config) {
530
+ config.detachComponent(observer);
531
+ }
532
+ };
533
+ const updateBalLanguage = (language) => {
534
+ const config = useBalConfig();
535
+ if (config) {
536
+ config.language = language;
537
+ }
538
+ };
539
+ const updateBalRegion = (region) => {
540
+ const config = useBalConfig();
541
+ if (config) {
542
+ config.region = region;
543
+ }
544
+ };
545
+ const updateBalAllowedLanguages = (allowedLanguages) => {
546
+ const config = useBalConfig();
547
+ if (config) {
548
+ config.allowedLanguages = allowedLanguages;
549
+ }
550
+ };
551
+ const updateBalIcons = (icons) => {
552
+ const config = useBalConfig();
553
+ if (config) {
554
+ config.icons = Object.assign(Object.assign({}, config.icons), icons);
555
+ }
556
+ };
557
+ const updateBalAnimated = (animated) => {
558
+ const config = useBalConfig();
559
+ if (config) {
560
+ config.animated = animated;
561
+ }
562
+ };
563
+
564
+ /**
565
+ * Request Largest Contentful Paint (LCP) callback
566
+ */
567
+ const rLCP = (callback, timeout = 3000) => {
568
+ let isLargestContentPatinDone = false;
569
+ if (!balBrowser.isSafari && balBrowser.hasWindow && 'PerformanceObserver' in window) {
570
+ const observer = new PerformanceObserver(entryList => {
571
+ const entries = entryList.getEntries();
572
+ const lcpEntry = entries[entries.length - 1]; // Get the last (largest) entry
573
+ if (lcpEntry) {
574
+ // Disconnect the observer as we only need the LCP
575
+ observer.disconnect();
576
+ // Load the script after LCP
577
+ isLargestContentPatinDone = true;
578
+ rIC(() => callback());
579
+ }
580
+ });
581
+ // Start observing for Largest Contentful Paint (LCP) entries
582
+ observer.observe({ type: 'largest-contentful-paint', buffered: true });
583
+ setTimeout(() => {
584
+ if (!isLargestContentPatinDone) {
585
+ observer.disconnect();
586
+ callback();
587
+ }
588
+ }, timeout);
589
+ }
590
+ else {
591
+ return setTimeout(callback, 32);
592
+ }
593
+ };
594
+ const rOnLoad = (callback, timeout = 32) => {
595
+ let called = false;
596
+ const callOnce = () => {
597
+ if (!called) {
598
+ called = true;
599
+ callback();
600
+ }
601
+ };
602
+ if (balBrowser.hasWindow) {
603
+ const timer = setTimeout(callOnce, timeout);
604
+ window.addEventListener('load', () => {
605
+ clearTimeout(timer);
606
+ callOnce();
607
+ });
608
+ }
609
+ else {
610
+ setTimeout(callOnce, 32);
611
+ }
612
+ };
613
+ const rIC = (callback, timeout = 5000) => {
614
+ if (balBrowser.hasWindow && 'requestIdleCallback' in window) {
615
+ window.requestIdleCallback(callback, { timeout });
616
+ }
617
+ else {
618
+ setTimeout(callback, 32);
619
+ }
620
+ };
621
+ const wait = (ms = 0) => {
622
+ return new Promise(resolve => {
623
+ setTimeout(() => resolve(), ms);
624
+ });
625
+ };
626
+ const debounceEvent = (ev, wait) => {
627
+ const original = ev._original || ev;
628
+ return {
629
+ _original: ev,
630
+ emit: debounce(original.emit.bind(original), wait),
631
+ };
632
+ };
633
+ const debounce = (func, wait = 0) => {
634
+ let timer;
635
+ return (...args) => {
636
+ clearTimeout(timer);
637
+ timer = setTimeout(func, wait, ...args);
638
+ };
639
+ };
640
+ const hasTagName = (element, tag) => {
641
+ return element && element.tagName && element.tagName === tag.toUpperCase();
642
+ };
643
+ const isDescendant = (parent, child) => {
644
+ let node = child.parentNode;
645
+ while (node != null) {
646
+ if (node == parent) {
647
+ return true;
648
+ }
649
+ node = node.parentNode;
650
+ }
651
+ return false;
652
+ };
653
+ const hasParent = (parentTag, child) => {
654
+ let node = child.parentNode;
655
+ while (node != null) {
656
+ if (node.tagName === parentTag.toUpperCase()) {
657
+ return true;
658
+ }
659
+ node = node.parentNode;
660
+ }
661
+ return false;
662
+ };
663
+ const getAppRoot = (doc) => {
664
+ return doc.querySelector('bal-app') || doc.body;
665
+ };
666
+ /**
667
+ * Waits for a component to be ready for
668
+ * both custom element and non-custom element builds.
669
+ * If non-custom element build, el.componentOnReady
670
+ * will be used.
671
+ * For custom element builds, we wait a frame
672
+ * so that the inner contents of the component
673
+ * have a chance to render.
674
+ *
675
+ * Use this utility rather than calling
676
+ * el.componentOnReady yourself.
677
+ */
678
+ const componentOnReady = (el, callback) => {
679
+ if (el.componentOnReady !== null && el.componentOnReady !== undefined) {
680
+ el.componentOnReady().then((resolvedEl) => callback(resolvedEl));
681
+ }
682
+ else {
683
+ raf(() => callback(el));
684
+ }
685
+ };
686
+ /**
687
+ * Patched version of requestAnimationFrame that avoids ngzone
688
+ * Use only when you know ngzone should not run
689
+ */
690
+ const raf = (h) => {
691
+ if (typeof __zone_symbol__requestAnimationFrame === 'function') {
692
+ return __zone_symbol__requestAnimationFrame(h);
693
+ }
694
+ if (typeof requestAnimationFrame === 'function') {
695
+ return requestAnimationFrame(h);
696
+ }
697
+ return setTimeout(h);
698
+ };
699
+ const transitionEndAsync = (el, expectedDuration = 0) => {
700
+ return new Promise(resolve => {
701
+ transitionEnd(el, expectedDuration, resolve);
702
+ });
703
+ };
704
+ /**
705
+ * Allows developer to wait for a transition
706
+ * to finish and fallback to a timer if the
707
+ * transition is cancelled or otherwise
708
+ * never finishes. Also see transitionEndAsync
709
+ * which is an await-able version of this.
710
+ */
711
+ const transitionEnd = (el, expectedDuration = 0, callback) => {
712
+ let unRegTrans;
713
+ let animationTimeout;
714
+ const opts = { passive: true };
715
+ const ANIMATION_FALLBACK_TIMEOUT = 500;
716
+ const unregister = () => {
717
+ if (unRegTrans) {
718
+ unRegTrans();
719
+ }
720
+ };
721
+ const onTransitionEnd = (ev) => {
722
+ if (ev === undefined || el === ev.target) {
723
+ unregister();
724
+ callback(ev);
725
+ }
726
+ };
727
+ if (el) {
728
+ el.addEventListener('webkitTransitionEnd', onTransitionEnd, opts);
729
+ el.addEventListener('transitionend', onTransitionEnd, opts);
730
+ animationTimeout = setTimeout(onTransitionEnd, expectedDuration + ANIMATION_FALLBACK_TIMEOUT);
731
+ unRegTrans = () => {
732
+ if (animationTimeout) {
733
+ clearTimeout(animationTimeout);
734
+ animationTimeout = undefined;
735
+ }
736
+ el.removeEventListener('webkitTransitionEnd', onTransitionEnd, opts);
737
+ el.removeEventListener('transitionend', onTransitionEnd, opts);
738
+ };
739
+ }
740
+ return unregister;
741
+ };
742
+ const addEventListener = (el, eventName, callback, opts) => {
743
+ if (balBrowser.hasWindow) {
744
+ const config = useBalConfig();
745
+ if (config) {
746
+ const ael = config._ael;
747
+ if (ael) {
748
+ return ael(el, eventName, callback, opts);
749
+ }
750
+ else if (config._ael) {
751
+ return config._ael(el, eventName, callback, opts);
752
+ }
753
+ }
754
+ }
755
+ return el.addEventListener(eventName, callback, opts);
756
+ };
757
+ const removeEventListener = (el, eventName, callback, opts) => {
758
+ if (balBrowser.hasWindow) {
759
+ const config = useBalConfig();
760
+ if (config) {
761
+ const rel = config._rel;
762
+ if (rel) {
763
+ return rel(el, eventName, callback, opts);
764
+ }
765
+ else if (config._rel) {
766
+ return config._rel(el, eventName, callback, opts);
767
+ }
768
+ }
769
+ }
770
+ return el.removeEventListener(eventName, callback, opts);
771
+ };
772
+ const shallowReady = (el) => {
773
+ if (el) {
774
+ return new Promise(resolve => componentOnReady(el, resolve));
775
+ }
776
+ return Promise.resolve();
777
+ };
778
+ const deepReady = async (el, full = false) => {
779
+ const element = el;
780
+ if (element) {
781
+ if (element.componentOnReady !== null && element.componentOnReady !== undefined) {
782
+ const stencilEl = await element.componentOnReady();
783
+ if (!full && stencilEl !== null && stencilEl !== undefined) {
784
+ return;
785
+ }
786
+ }
787
+ await Promise.all(Array.from(element.children).map(child => deepReady(child, full)));
788
+ }
789
+ };
790
+ const waitForComponent = async (el) => {
791
+ await deepReady(el, true);
792
+ await waitAfterFramePaint();
793
+ await waitAfterIdleCallback();
794
+ };
795
+ const isChildOfEventTarget = async (ev, el, callback) => {
796
+ if (ev && ev.target && el && el !== ev.target) {
797
+ let target = ev.target;
798
+ // special case for the navbar case
799
+ const isNavbarBrand = ev.target.nodeName === 'BAL-NAVBAR-BRAND';
800
+ if (isNavbarBrand) {
801
+ target = target.closest('bal-navbar');
802
+ }
803
+ if (target && isDescendant(target, el)) {
804
+ callback(target);
805
+ }
806
+ }
807
+ };
808
+ const waitForDesignSystem = async (el, _config) => {
809
+ const config = Object.assign({ animated: false, icons: {
810
+ balIconClose,
811
+ balIconInfoCircle,
812
+ balIconPlus,
813
+ balIconMinus,
814
+ balIconEdit,
815
+ balIconTrash,
816
+ balIconNavGoLeft,
817
+ balIconNavGoRight,
818
+ balIconNavGoDown,
819
+ balIconNavGoUp,
820
+ balIconCaretUp,
821
+ balIconCaretDown,
822
+ balIconCaretLeft,
823
+ balIconCaretRight,
824
+ balIconCheck,
825
+ balIconDate,
826
+ balIconDocument,
827
+ balIconUpload,
828
+ balIconMenuBars,
829
+ } }, _config);
830
+ const element = el;
831
+ if (element !== null && element !== undefined) {
832
+ await deepReady(element, true);
833
+ const webComponents = Array.prototype.slice
834
+ .call(element.querySelectorAll('*'))
835
+ .filter(el => el.tagName.match(/^bal/i));
836
+ await Promise.all(webComponents.map(c => {
837
+ if (c.configChanged !== null && c.configChanged !== undefined) {
838
+ return c.configChanged(config);
839
+ }
840
+ }));
841
+ }
842
+ await Promise.all([waitAfterFramePaint(), waitAfterLargestContentfulPaintCallback(), waitAfterIdleCallback()]);
843
+ };
844
+ const waitAfterFramePaint = () => {
845
+ return new Promise(resolve => raf(() => runHighPrioritizedTask(resolve)));
846
+ };
847
+ const waitAfterIdleCallback = () => {
848
+ return new Promise(resolve => rIC(() => runHighPrioritizedTask(resolve)));
849
+ };
850
+ const waitAfterLargestContentfulPaintCallback = () => {
851
+ return new Promise(resolve => rLCP(() => runHighPrioritizedTask(resolve)));
852
+ };
853
+ const waitOnLoadEventCallback = () => {
854
+ return new Promise(resolve => rOnLoad(() => runHighPrioritizedTask(resolve)));
855
+ };
856
+ const runHighPrioritizedTask = (callback) => {
857
+ if (balBrowser.hasWindow && 'MessageChannel' in window) {
858
+ const messageChannel = new window.MessageChannel();
859
+ messageChannel.port1.onmessage = callback;
860
+ messageChannel.port2.postMessage(undefined);
861
+ }
862
+ else {
863
+ setTimeout(callback, 32);
864
+ }
865
+ };
866
+
867
+ class BalNoticeController {
868
+ constructor(options) {
869
+ this.options = options;
870
+ this.container = null;
871
+ this.queue = [];
872
+ this.preQueue = [];
873
+ this.queueLimit = 5;
874
+ }
875
+ create(options) {
876
+ if (balBrowser.hasDocument) {
877
+ this.setupContainer(options);
878
+ const clone = this.findClone(options);
879
+ if (clone === undefined) {
880
+ const el = document.createElement(this.options.tag);
881
+ Object.assign(el, options);
882
+ el.addEventListener('balClose', ev => {
883
+ this.removeFromQueue(ev.detail);
884
+ });
885
+ this.preQueue.push(el);
886
+ this.updateQueue();
887
+ return el;
888
+ }
889
+ return clone;
890
+ }
891
+ }
892
+ setQueue(queueLimit) {
893
+ this.queueLimit = queueLimit;
894
+ }
895
+ async dismissAll() {
896
+ var _a;
897
+ const elements = (_a = this.container) === null || _a === void 0 ? void 0 : _a.querySelectorAll(this.options.tag);
898
+ if (elements) {
899
+ const closingQueue = [];
900
+ for (let index = 0; index < elements.length; index++) {
901
+ const el = elements[index];
902
+ if (el.close) {
903
+ closingQueue.push(el.close());
904
+ }
905
+ }
906
+ await Promise.all(closingQueue);
907
+ }
908
+ }
909
+ /**
910
+ * @deprecated use dismissAll instead
911
+ */
912
+ async clearAll() {
913
+ console.warn('[DEPRECATED] - use dismissAll() instead');
914
+ return this.dismissAll();
915
+ }
916
+ findClone(options) {
917
+ for (let index = 0; index < this.queue.length; index++) {
918
+ const el = this.queue[index];
919
+ if (el.message === options.message && el.color === options.color) {
920
+ return el;
921
+ }
922
+ }
923
+ return undefined;
924
+ }
925
+ setupContainer(options) {
926
+ if (balBrowser.hasDocument) {
927
+ const containerId = `${this.options.tag}-container`;
928
+ this.container = document.getElementById(containerId);
929
+ if (this.container)
930
+ return;
931
+ if (!this.container) {
932
+ this.container = document.createElement('bal-notices');
933
+ this.container.setAttribute('interface', this.options.tag.replace('bal-', ''));
934
+ this.container.setAttribute('animated', options.animated ? 'true' : 'false');
935
+ if (options.container !== undefined) {
936
+ this.container.setAttribute('container', options.container === true ? '' : options.container);
937
+ }
938
+ this.container.id = containerId;
939
+ }
940
+ document.body.appendChild(this.container);
941
+ }
942
+ }
943
+ async updateQueue() {
944
+ var _a;
945
+ if (this.queue.length < this.queueLimit) {
946
+ const el = this.preQueue.shift();
947
+ if (el && this.container) {
948
+ await waitForComponent(this.container);
949
+ const innerEl = this.container.querySelector('.bal-notices__inner');
950
+ if (innerEl) {
951
+ this.queue.push(el);
952
+ innerEl.insertAdjacentElement('beforeend', el);
953
+ }
954
+ }
955
+ }
956
+ if (this.queue.length === 0) {
957
+ (_a = this.container) === null || _a === void 0 ? void 0 : _a.remove();
958
+ }
959
+ }
960
+ removeFromQueue(toastId) {
961
+ this.queue = this.queue.filter(el => el.id !== toastId);
962
+ setTimeout(() => this.updateQueue(), 0);
963
+ }
964
+ }
965
+
966
+ class BalSnackbarController extends BalNoticeController {
967
+ constructor() {
968
+ super({
969
+ tag: 'bal-snackbar',
970
+ });
971
+ }
972
+ create(options) {
973
+ return super.create(options);
974
+ }
975
+ }
976
+ const balSnackbarController = new BalSnackbarController();
977
+
978
+ class BalToastController extends BalNoticeController {
979
+ constructor() {
980
+ super({
981
+ tag: 'bal-toast',
982
+ });
983
+ }
984
+ create(options) {
985
+ return super.create(options);
986
+ }
987
+ }
988
+ const balToastController = new BalToastController();
989
+
990
+ // generated by .build/version.js
991
+ const VERSION = '19.4.0';
992
+
993
+ const initializeBaloiseDesignSystem = (userConfig = {}, platformConfig = undefined, win = {}) => {
994
+ if (Object.keys(win).length === 0 && balBrowser.hasWindow) {
995
+ win = window;
996
+ }
997
+ win.BaloiseDesignSystem = win.BaloiseDesignSystem || {};
998
+ if (platformConfig) {
999
+ setPlatformHelpers(platformConfig);
1000
+ }
1001
+ setupConfig(Object.assign(Object.assign({}, userConfig), platformConfig), win);
1002
+ win.BaloiseDesignSystem.toastController = balToastController;
1003
+ win.BaloiseDesignSystem.snackbarController = balSnackbarController;
1004
+ win.BaloiseDesignSystem.initialize = () => setupConfig(win.BaloiseDesignSystem.config, win);
1005
+ win.BaloiseDesignSystem.version = VERSION;
1006
+ if (userConfig._generateHydrateForCustomElementsOutput) {
1007
+ generateHydrateForCustomElementsOutput(tags);
1008
+ }
1009
+ };
1010
+ /**
1011
+ * This function generates the CSS needed for custom elements hydration and inserts it into the document head.
1012
+ * The CSS rules include styles for slot fallback and the hydrated class.
1013
+ *
1014
+ * This is copied from the Stencil core library.
1015
+ * src/runtime/bootstrap-lazy.ts
1016
+ */
1017
+ const generateHydrateForCustomElementsOutput = (cmpTags = []) => {
1018
+ const SLOT_FB_CSS = 'slot-fb{display:contents}slot-fb[hidden]{display:none}';
1019
+ const HYDRATED_CSS = '{visibility:hidden}.hydrated{visibility:inherit}';
1020
+ const win = typeof window !== 'undefined' ? window : {};
1021
+ if (!win.document) {
1022
+ console.warn('Stencil: No document found. Skipping bootstrapping lazy components.');
1023
+ return;
1024
+ }
1025
+ const head = win.document.head;
1026
+ const metaCharset = /* @__PURE__ */ head.querySelector('meta[charset]');
1027
+ const dataStyles = /* @__PURE__ */ win.document.createElement('style');
1028
+ if (cmpTags.length > 0) {
1029
+ dataStyles.textContent += SLOT_FB_CSS;
1030
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
1031
+ if (dataStyles.innerHTML.length) {
1032
+ dataStyles.setAttribute('data-styles', '');
1033
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
1034
+ }
1035
+ }
1036
+ };
1037
+
1038
+ function appGlobalScript () {
1039
+ initializeBaloiseDesignSystem();
1040
+ }
1041
+
1042
+ const globalScripts = appGlobalScript;
1043
+ const globalStyles = "";
1044
+
1045
+ /*
1046
+ Stencil Client Platform v4.35.1 | MIT Licensed | https://stenciljs.com
1047
+ */
1048
+ var __defProp = Object.defineProperty;
1049
+ var __export = (target, all) => {
1050
+ for (var name in all)
1051
+ __defProp(target, name, { get: all[name], enumerable: true });
1052
+ };
1053
+
1054
+ // src/utils/constants.ts
1055
+ var SVG_NS = "http://www.w3.org/2000/svg";
1056
+ var HTML_NS = "http://www.w3.org/1999/xhtml";
1057
+
1058
+ // src/client/client-host-ref.ts
1059
+ var getHostRef = (ref) => {
1060
+ if (ref.__stencil__getHostRef) {
1061
+ return ref.__stencil__getHostRef();
1062
+ }
1063
+ return void 0;
1064
+ };
1065
+ var registerInstance = (lazyInstance, hostRef) => {
1066
+ lazyInstance.__stencil__getHostRef = () => hostRef;
1067
+ hostRef.$lazyInstance$ = lazyInstance;
1068
+ };
1069
+ var registerHost = (hostElement, cmpMeta) => {
1070
+ const hostRef = {
1071
+ $flags$: 0,
1072
+ $hostElement$: hostElement,
1073
+ $cmpMeta$: cmpMeta,
1074
+ $instanceValues$: /* @__PURE__ */ new Map()
1075
+ };
1076
+ {
1077
+ hostRef.$onInstancePromise$ = new Promise((r) => hostRef.$onInstanceResolve$ = r);
1078
+ }
1079
+ {
1080
+ hostRef.$onReadyPromise$ = new Promise((r) => hostRef.$onReadyResolve$ = r);
1081
+ hostElement["s-p"] = [];
1082
+ hostElement["s-rc"] = [];
1083
+ }
1084
+ const ref = hostRef;
1085
+ hostElement.__stencil__getHostRef = () => ref;
1086
+ return ref;
1087
+ };
1088
+ var isMemberInElement = (elm, memberName) => memberName in elm;
1089
+ var consoleError = (e, el) => (0, console.error)(e, el);
1090
+
1091
+ // src/client/client-load-module.ts
1092
+ var cmpModules = /* @__PURE__ */ new Map();
1093
+ var loadModule = (cmpMeta, hostRef, hmrVersionId) => {
1094
+ const exportName = cmpMeta.$tagName$.replace(/-/g, "_");
1095
+ const bundleId = cmpMeta.$lazyBundleId$;
1096
+ if (!bundleId) {
1097
+ return void 0;
1098
+ }
1099
+ const module = cmpModules.get(bundleId) ;
1100
+ if (module) {
1101
+ return module[exportName];
1102
+ }
1103
+ /*!__STENCIL_STATIC_IMPORT_SWITCH__*/
1104
+ return import(
1105
+ /* @vite-ignore */
1106
+ /* webpackInclude: /\.entry\.js$/ */
1107
+ /* webpackExclude: /\.system\.entry\.js$/ */
1108
+ /* webpackMode: "lazy" */
1109
+ `./${bundleId}.entry.js${""}`
1110
+ ).then(
1111
+ (importedModule) => {
1112
+ {
1113
+ cmpModules.set(bundleId, importedModule);
1114
+ }
1115
+ return importedModule[exportName];
1116
+ },
1117
+ (e) => {
1118
+ consoleError(e, hostRef.$hostElement$);
1119
+ }
1120
+ );
1121
+ };
1122
+
1123
+ // src/client/client-style.ts
1124
+ var styles = /* @__PURE__ */ new Map();
1125
+ var HYDRATED_CSS = "{visibility:hidden}.hydrated{visibility:inherit}";
1126
+ var SLOT_FB_CSS = "slot-fb{display:contents}slot-fb[hidden]{display:none}";
1127
+ var XLINK_NS = "http://www.w3.org/1999/xlink";
1128
+ var win = typeof window !== "undefined" ? window : {};
1129
+ var plt = {
1130
+ $flags$: 0,
1131
+ $resourcesUrl$: "",
1132
+ jmp: (h2) => h2(),
1133
+ raf: (h2) => requestAnimationFrame(h2),
1134
+ ael: (el, eventName, listener, opts) => el.addEventListener(eventName, listener, opts),
1135
+ rel: (el, eventName, listener, opts) => el.removeEventListener(eventName, listener, opts),
1136
+ ce: (eventName, opts) => new CustomEvent(eventName, opts)
1137
+ };
1138
+ var setPlatformHelpers = (helpers) => {
1139
+ Object.assign(plt, helpers);
1140
+ };
1141
+ var supportsListenerOptions = /* @__PURE__ */ (() => {
1142
+ var _a;
1143
+ let supportsListenerOptions2 = false;
1144
+ try {
1145
+ (_a = win.document) == null ? void 0 : _a.addEventListener(
1146
+ "e",
1147
+ null,
1148
+ Object.defineProperty({}, "passive", {
1149
+ get() {
1150
+ supportsListenerOptions2 = true;
1151
+ }
1152
+ })
1153
+ );
1154
+ } catch (e) {
1155
+ }
1156
+ return supportsListenerOptions2;
1157
+ })();
1158
+ var promiseResolve = (v) => Promise.resolve(v);
1159
+ var supportsConstructableStylesheets = /* @__PURE__ */ (() => {
1160
+ try {
1161
+ new CSSStyleSheet();
1162
+ return typeof new CSSStyleSheet().replaceSync === "function";
1163
+ } catch (e) {
1164
+ }
1165
+ return false;
1166
+ })() ;
1167
+ var queuePending = false;
1168
+ var queueDomReads = [];
1169
+ var queueDomWrites = [];
1170
+ var queueTask = (queue, write) => (cb) => {
1171
+ queue.push(cb);
1172
+ if (!queuePending) {
1173
+ queuePending = true;
1174
+ if (write && plt.$flags$ & 4 /* queueSync */) {
1175
+ nextTick(flush);
1176
+ } else {
1177
+ plt.raf(flush);
1178
+ }
1179
+ }
1180
+ };
1181
+ var consume = (queue) => {
1182
+ for (let i2 = 0; i2 < queue.length; i2++) {
1183
+ try {
1184
+ queue[i2](performance.now());
1185
+ } catch (e) {
1186
+ consoleError(e);
1187
+ }
1188
+ }
1189
+ queue.length = 0;
1190
+ };
1191
+ var flush = () => {
1192
+ consume(queueDomReads);
1193
+ {
1194
+ consume(queueDomWrites);
1195
+ if (queuePending = queueDomReads.length > 0) {
1196
+ plt.raf(flush);
1197
+ }
1198
+ }
1199
+ };
1200
+ var nextTick = (cb) => promiseResolve().then(cb);
1201
+ var writeTask = /* @__PURE__ */ queueTask(queueDomWrites, true);
1202
+
1203
+ // src/utils/helpers.ts
1204
+ var isDef = (v) => v != null && v !== void 0;
1205
+ var isComplexType = (o) => {
1206
+ o = typeof o;
1207
+ return o === "object" || o === "function";
1208
+ };
1209
+
1210
+ // src/utils/query-nonce-meta-tag-content.ts
1211
+ function queryNonceMetaTagContent(doc) {
1212
+ var _a, _b, _c;
1213
+ return (_c = (_b = (_a = doc.head) == null ? void 0 : _a.querySelector('meta[name="csp-nonce"]')) == null ? void 0 : _b.getAttribute("content")) != null ? _c : void 0;
1214
+ }
1215
+
1216
+ // src/utils/regular-expression.ts
1217
+ var escapeRegExpSpecialCharacters = (text) => {
1218
+ return text.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
1219
+ };
1220
+
1221
+ // src/utils/result.ts
1222
+ var result_exports = {};
1223
+ __export(result_exports, {
1224
+ err: () => err,
1225
+ map: () => map,
1226
+ ok: () => ok,
1227
+ unwrap: () => unwrap,
1228
+ unwrapErr: () => unwrapErr
1229
+ });
1230
+ var ok = (value) => ({
1231
+ isOk: true,
1232
+ isErr: false,
1233
+ value
1234
+ });
1235
+ var err = (value) => ({
1236
+ isOk: false,
1237
+ isErr: true,
1238
+ value
1239
+ });
1240
+ function map(result, fn) {
1241
+ if (result.isOk) {
1242
+ const val = fn(result.value);
1243
+ if (val instanceof Promise) {
1244
+ return val.then((newVal) => ok(newVal));
1245
+ } else {
1246
+ return ok(val);
1247
+ }
1248
+ }
1249
+ if (result.isErr) {
1250
+ const value = result.value;
1251
+ return err(value);
1252
+ }
1253
+ throw "should never get here";
1254
+ }
1255
+ var unwrap = (result) => {
1256
+ if (result.isOk) {
1257
+ return result.value;
1258
+ } else {
1259
+ throw result.value;
1260
+ }
1261
+ };
1262
+ var unwrapErr = (result) => {
1263
+ if (result.isErr) {
1264
+ return result.value;
1265
+ } else {
1266
+ throw result.value;
1267
+ }
1268
+ };
1269
+ function createShadowRoot(cmpMeta) {
1270
+ const shadowRoot = this.attachShadow({ mode: "open" });
1271
+ if (supportsConstructableStylesheets) {
1272
+ const sheet = new CSSStyleSheet();
1273
+ sheet.replaceSync(globalStyles);
1274
+ shadowRoot.adoptedStyleSheets.push(sheet);
1275
+ }
1276
+ }
1277
+ var updateFallbackSlotVisibility = (elm) => {
1278
+ const childNodes = internalCall(elm, "childNodes");
1279
+ if (elm.tagName && elm.tagName.includes("-") && elm["s-cr"] && elm.tagName !== "SLOT-FB") {
1280
+ getHostSlotNodes(childNodes, elm.tagName).forEach((slotNode) => {
1281
+ if (slotNode.nodeType === 1 /* ElementNode */ && slotNode.tagName === "SLOT-FB") {
1282
+ if (getSlotChildSiblings(slotNode, getSlotName(slotNode), false).length) {
1283
+ slotNode.hidden = true;
1284
+ } else {
1285
+ slotNode.hidden = false;
1286
+ }
1287
+ }
1288
+ });
1289
+ }
1290
+ let i2 = 0;
1291
+ for (i2 = 0; i2 < childNodes.length; i2++) {
1292
+ const childNode = childNodes[i2];
1293
+ if (childNode.nodeType === 1 /* ElementNode */ && internalCall(childNode, "childNodes").length) {
1294
+ updateFallbackSlotVisibility(childNode);
1295
+ }
1296
+ }
1297
+ };
1298
+ var getSlottedChildNodes = (childNodes) => {
1299
+ const result = [];
1300
+ for (let i2 = 0; i2 < childNodes.length; i2++) {
1301
+ const slottedNode = childNodes[i2]["s-nr"] || void 0;
1302
+ if (slottedNode && slottedNode.isConnected) {
1303
+ result.push(slottedNode);
1304
+ }
1305
+ }
1306
+ return result;
1307
+ };
1308
+ function getHostSlotNodes(childNodes, hostName, slotName) {
1309
+ let i2 = 0;
1310
+ let slottedNodes = [];
1311
+ let childNode;
1312
+ for (; i2 < childNodes.length; i2++) {
1313
+ childNode = childNodes[i2];
1314
+ if (childNode["s-sr"] && (!hostName || childNode["s-hn"] === hostName) && (slotName === void 0)) {
1315
+ slottedNodes.push(childNode);
1316
+ }
1317
+ slottedNodes = [...slottedNodes, ...getHostSlotNodes(childNode.childNodes, hostName, slotName)];
1318
+ }
1319
+ return slottedNodes;
1320
+ }
1321
+ var getSlotChildSiblings = (slot, slotName, includeSlot = true) => {
1322
+ const childNodes = [];
1323
+ if (includeSlot && slot["s-sr"] || !slot["s-sr"]) childNodes.push(slot);
1324
+ let node = slot;
1325
+ while (node = node.nextSibling) {
1326
+ if (getSlotName(node) === slotName && (includeSlot || !node["s-sr"])) childNodes.push(node);
1327
+ }
1328
+ return childNodes;
1329
+ };
1330
+ var isNodeLocatedInSlot = (nodeToRelocate, slotName) => {
1331
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
1332
+ if (nodeToRelocate.getAttribute("slot") === null && slotName === "") {
1333
+ return true;
1334
+ }
1335
+ if (nodeToRelocate.getAttribute("slot") === slotName) {
1336
+ return true;
1337
+ }
1338
+ return false;
1339
+ }
1340
+ if (nodeToRelocate["s-sn"] === slotName) {
1341
+ return true;
1342
+ }
1343
+ return slotName === "";
1344
+ };
1345
+ var getSlotName = (node) => typeof node["s-sn"] === "string" ? node["s-sn"] : node.nodeType === 1 && node.getAttribute("slot") || void 0;
1346
+ function patchSlotNode(node) {
1347
+ if (node.assignedElements || node.assignedNodes || !node["s-sr"]) return;
1348
+ const assignedFactory = (elementsOnly) => (function(opts) {
1349
+ const toReturn = [];
1350
+ const slotName = this["s-sn"];
1351
+ if (opts == null ? void 0 : opts.flatten) {
1352
+ console.error(`
1353
+ Flattening is not supported for Stencil non-shadow slots.
1354
+ You can use \`.childNodes\` to nested slot fallback content.
1355
+ If you have a particular use case, please open an issue on the Stencil repo.
1356
+ `);
1357
+ }
1358
+ const parent = this["s-cr"].parentElement;
1359
+ const slottedNodes = parent.__childNodes ? parent.childNodes : getSlottedChildNodes(parent.childNodes);
1360
+ slottedNodes.forEach((n) => {
1361
+ if (slotName === getSlotName(n)) {
1362
+ toReturn.push(n);
1363
+ }
1364
+ });
1365
+ if (elementsOnly) {
1366
+ return toReturn.filter((n) => n.nodeType === 1 /* ElementNode */);
1367
+ }
1368
+ return toReturn;
1369
+ }).bind(node);
1370
+ node.assignedElements = assignedFactory(true);
1371
+ node.assignedNodes = assignedFactory(false);
1372
+ }
1373
+ function internalCall(node, method) {
1374
+ if ("__" + method in node) {
1375
+ const toReturn = node["__" + method];
1376
+ if (typeof toReturn !== "function") return toReturn;
1377
+ return toReturn.bind(node);
1378
+ } else {
1379
+ if (typeof node[method] !== "function") return node[method];
1380
+ return node[method].bind(node);
1381
+ }
1382
+ }
1383
+ var createTime = (fnName, tagName = "") => {
1384
+ {
1385
+ return () => {
1386
+ return;
1387
+ };
1388
+ }
1389
+ };
1390
+ var uniqueTime = (key, measureText) => {
1391
+ {
1392
+ return () => {
1393
+ return;
1394
+ };
1395
+ }
1396
+ };
1397
+ var h = (nodeName, vnodeData, ...children) => {
1398
+ let child = null;
1399
+ let key = null;
1400
+ let slotName = null;
1401
+ let simple = false;
1402
+ let lastSimple = false;
1403
+ const vNodeChildren = [];
1404
+ const walk = (c) => {
1405
+ for (let i2 = 0; i2 < c.length; i2++) {
1406
+ child = c[i2];
1407
+ if (Array.isArray(child)) {
1408
+ walk(child);
1409
+ } else if (child != null && typeof child !== "boolean") {
1410
+ if (simple = typeof nodeName !== "function" && !isComplexType(child)) {
1411
+ child = String(child);
1412
+ }
1413
+ if (simple && lastSimple) {
1414
+ vNodeChildren[vNodeChildren.length - 1].$text$ += child;
1415
+ } else {
1416
+ vNodeChildren.push(simple ? newVNode(null, child) : child);
1417
+ }
1418
+ lastSimple = simple;
1419
+ }
1420
+ }
1421
+ };
1422
+ walk(children);
1423
+ if (vnodeData) {
1424
+ if (vnodeData.key) {
1425
+ key = vnodeData.key;
1426
+ }
1427
+ if (vnodeData.name) {
1428
+ slotName = vnodeData.name;
1429
+ }
1430
+ {
1431
+ const classData = vnodeData.className || vnodeData.class;
1432
+ if (classData) {
1433
+ vnodeData.class = typeof classData !== "object" ? classData : Object.keys(classData).filter((k) => classData[k]).join(" ");
1434
+ }
1435
+ }
1436
+ }
1437
+ if (typeof nodeName === "function") {
1438
+ return nodeName(
1439
+ vnodeData === null ? {} : vnodeData,
1440
+ vNodeChildren,
1441
+ vdomFnUtils
1442
+ );
1443
+ }
1444
+ const vnode = newVNode(nodeName, null);
1445
+ vnode.$attrs$ = vnodeData;
1446
+ if (vNodeChildren.length > 0) {
1447
+ vnode.$children$ = vNodeChildren;
1448
+ }
1449
+ {
1450
+ vnode.$key$ = key;
1451
+ }
1452
+ {
1453
+ vnode.$name$ = slotName;
1454
+ }
1455
+ return vnode;
1456
+ };
1457
+ var newVNode = (tag, text) => {
1458
+ const vnode = {
1459
+ $flags$: 0,
1460
+ $tag$: tag,
1461
+ $text$: text,
1462
+ $elm$: null,
1463
+ $children$: null
1464
+ };
1465
+ {
1466
+ vnode.$attrs$ = null;
1467
+ }
1468
+ {
1469
+ vnode.$key$ = null;
1470
+ }
1471
+ {
1472
+ vnode.$name$ = null;
1473
+ }
1474
+ return vnode;
1475
+ };
1476
+ var Host = {};
1477
+ var isHost = (node) => node && node.$tag$ === Host;
1478
+ var vdomFnUtils = {
1479
+ forEach: (children, cb) => children.map(convertToPublic).forEach(cb),
1480
+ map: (children, cb) => children.map(convertToPublic).map(cb).map(convertToPrivate)
1481
+ };
1482
+ var convertToPublic = (node) => ({
1483
+ vattrs: node.$attrs$,
1484
+ vchildren: node.$children$,
1485
+ vkey: node.$key$,
1486
+ vname: node.$name$,
1487
+ vtag: node.$tag$,
1488
+ vtext: node.$text$
1489
+ });
1490
+ var convertToPrivate = (node) => {
1491
+ if (typeof node.vtag === "function") {
1492
+ const vnodeData = { ...node.vattrs };
1493
+ if (node.vkey) {
1494
+ vnodeData.key = node.vkey;
1495
+ }
1496
+ if (node.vname) {
1497
+ vnodeData.name = node.vname;
1498
+ }
1499
+ return h(node.vtag, vnodeData, ...node.vchildren || []);
1500
+ }
1501
+ const vnode = newVNode(node.vtag, node.vtext);
1502
+ vnode.$attrs$ = node.vattrs;
1503
+ vnode.$children$ = node.vchildren;
1504
+ vnode.$key$ = node.vkey;
1505
+ vnode.$name$ = node.vname;
1506
+ return vnode;
1507
+ };
1508
+ var createSupportsRuleRe = (selector) => {
1509
+ const safeSelector2 = escapeRegExpSpecialCharacters(selector);
1510
+ return new RegExp(
1511
+ // First capture group: match any context before the selector that's not inside @supports selector()
1512
+ // Using negative lookahead to avoid matching inside @supports selector(...) condition
1513
+ `(^|[^@]|@(?!supports\\s+selector\\s*\\([^{]*?${safeSelector2}))(${safeSelector2}\\b)`,
1514
+ "g"
1515
+ );
1516
+ };
1517
+ createSupportsRuleRe("::slotted");
1518
+ createSupportsRuleRe(":host");
1519
+ createSupportsRuleRe(":host-context");
1520
+ var parsePropertyValue = (propValue, propType, isFormAssociated) => {
1521
+ if (propValue != null && !isComplexType(propValue)) {
1522
+ if (propType & 4 /* Boolean */) {
1523
+ {
1524
+ return propValue === "false" ? false : propValue === "" || !!propValue;
1525
+ }
1526
+ }
1527
+ if (propType & 2 /* Number */) {
1528
+ return typeof propValue === "string" ? parseFloat(propValue) : typeof propValue === "number" ? propValue : NaN;
1529
+ }
1530
+ if (propType & 1 /* String */) {
1531
+ return String(propValue);
1532
+ }
1533
+ return propValue;
1534
+ }
1535
+ return propValue;
1536
+ };
1537
+ var getElement = (ref) => getHostRef(ref).$hostElement$ ;
1538
+
1539
+ // src/runtime/event-emitter.ts
1540
+ var createEvent = (ref, name, flags) => {
1541
+ const elm = getElement(ref);
1542
+ return {
1543
+ emit: (detail) => {
1544
+ return emitEvent(elm, name, {
1545
+ bubbles: true,
1546
+ composed: true,
1547
+ cancelable: true,
1548
+ detail
1549
+ });
1550
+ }
1551
+ };
1552
+ };
1553
+ var emitEvent = (elm, name, opts) => {
1554
+ const ev = plt.ce(name, opts);
1555
+ elm.dispatchEvent(ev);
1556
+ return ev;
1557
+ };
1558
+ var rootAppliedStyles = /* @__PURE__ */ new WeakMap();
1559
+ var registerStyle = (scopeId2, cssText, allowCS) => {
1560
+ let style = styles.get(scopeId2);
1561
+ if (supportsConstructableStylesheets && allowCS) {
1562
+ style = style || new CSSStyleSheet();
1563
+ if (typeof style === "string") {
1564
+ style = cssText;
1565
+ } else {
1566
+ style.replaceSync(cssText);
1567
+ }
1568
+ } else {
1569
+ style = cssText;
1570
+ }
1571
+ styles.set(scopeId2, style);
1572
+ };
1573
+ var addStyle = (styleContainerNode, cmpMeta, mode) => {
1574
+ var _a;
1575
+ const scopeId2 = getScopeId(cmpMeta);
1576
+ const style = styles.get(scopeId2);
1577
+ if (!win.document) {
1578
+ return scopeId2;
1579
+ }
1580
+ styleContainerNode = styleContainerNode.nodeType === 11 /* DocumentFragment */ ? styleContainerNode : win.document;
1581
+ if (style) {
1582
+ if (typeof style === "string") {
1583
+ styleContainerNode = styleContainerNode.head || styleContainerNode;
1584
+ let appliedStyles = rootAppliedStyles.get(styleContainerNode);
1585
+ let styleElm;
1586
+ if (!appliedStyles) {
1587
+ rootAppliedStyles.set(styleContainerNode, appliedStyles = /* @__PURE__ */ new Set());
1588
+ }
1589
+ if (!appliedStyles.has(scopeId2)) {
1590
+ {
1591
+ styleElm = win.document.createElement("style");
1592
+ styleElm.innerHTML = style;
1593
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
1594
+ if (nonce != null) {
1595
+ styleElm.setAttribute("nonce", nonce);
1596
+ }
1597
+ if (!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */)) {
1598
+ if (styleContainerNode.nodeName === "HEAD") {
1599
+ const preconnectLinks = styleContainerNode.querySelectorAll("link[rel=preconnect]");
1600
+ const referenceNode2 = preconnectLinks.length > 0 ? preconnectLinks[preconnectLinks.length - 1].nextSibling : styleContainerNode.querySelector("style");
1601
+ styleContainerNode.insertBefore(
1602
+ styleElm,
1603
+ (referenceNode2 == null ? void 0 : referenceNode2.parentNode) === styleContainerNode ? referenceNode2 : null
1604
+ );
1605
+ } else if ("host" in styleContainerNode) {
1606
+ if (supportsConstructableStylesheets) {
1607
+ const stylesheet = new CSSStyleSheet();
1608
+ stylesheet.replaceSync(style);
1609
+ styleContainerNode.adoptedStyleSheets = [stylesheet, ...styleContainerNode.adoptedStyleSheets];
1610
+ } else {
1611
+ const existingStyleContainer = styleContainerNode.querySelector("style");
1612
+ if (existingStyleContainer) {
1613
+ existingStyleContainer.innerHTML = style + existingStyleContainer.innerHTML;
1614
+ } else {
1615
+ styleContainerNode.prepend(styleElm);
1616
+ }
1617
+ }
1618
+ } else {
1619
+ styleContainerNode.append(styleElm);
1620
+ }
1621
+ }
1622
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
1623
+ styleContainerNode.insertBefore(styleElm, null);
1624
+ }
1625
+ }
1626
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
1627
+ styleElm.innerHTML += SLOT_FB_CSS;
1628
+ }
1629
+ if (appliedStyles) {
1630
+ appliedStyles.add(scopeId2);
1631
+ }
1632
+ }
1633
+ } else if (!styleContainerNode.adoptedStyleSheets.includes(style)) {
1634
+ styleContainerNode.adoptedStyleSheets = [...styleContainerNode.adoptedStyleSheets, style];
1635
+ }
1636
+ }
1637
+ return scopeId2;
1638
+ };
1639
+ var attachStyles = (hostRef) => {
1640
+ const cmpMeta = hostRef.$cmpMeta$;
1641
+ const elm = hostRef.$hostElement$;
1642
+ const flags = cmpMeta.$flags$;
1643
+ const endAttachStyles = createTime("attachStyles", cmpMeta.$tagName$);
1644
+ const scopeId2 = addStyle(
1645
+ elm.shadowRoot ? elm.shadowRoot : elm.getRootNode(),
1646
+ cmpMeta);
1647
+ if (flags & 10 /* needsScopedEncapsulation */) {
1648
+ elm["s-sc"] = scopeId2;
1649
+ elm.classList.add(scopeId2 + "-h");
1650
+ }
1651
+ endAttachStyles();
1652
+ };
1653
+ var getScopeId = (cmp, mode) => "sc-" + (cmp.$tagName$);
1654
+ var setAccessor = (elm, memberName, oldValue, newValue, isSvg, flags, initialRender) => {
1655
+ if (oldValue === newValue) {
1656
+ return;
1657
+ }
1658
+ let isProp = isMemberInElement(elm, memberName);
1659
+ let ln = memberName.toLowerCase();
1660
+ if (memberName === "class") {
1661
+ const classList = elm.classList;
1662
+ const oldClasses = parseClassList(oldValue);
1663
+ let newClasses = parseClassList(newValue);
1664
+ {
1665
+ classList.remove(...oldClasses.filter((c) => c && !newClasses.includes(c)));
1666
+ classList.add(...newClasses.filter((c) => c && !oldClasses.includes(c)));
1667
+ }
1668
+ } else if (memberName === "style") {
1669
+ {
1670
+ for (const prop in oldValue) {
1671
+ if (!newValue || newValue[prop] == null) {
1672
+ if (prop.includes("-")) {
1673
+ elm.style.removeProperty(prop);
1674
+ } else {
1675
+ elm.style[prop] = "";
1676
+ }
1677
+ }
1678
+ }
1679
+ }
1680
+ for (const prop in newValue) {
1681
+ if (!oldValue || newValue[prop] !== oldValue[prop]) {
1682
+ if (prop.includes("-")) {
1683
+ elm.style.setProperty(prop, newValue[prop]);
1684
+ } else {
1685
+ elm.style[prop] = newValue[prop];
1686
+ }
1687
+ }
1688
+ }
1689
+ } else if (memberName === "key") ; else if (memberName === "ref") {
1690
+ if (newValue) {
1691
+ newValue(elm);
1692
+ }
1693
+ } else if ((!isProp ) && memberName[0] === "o" && memberName[1] === "n") {
1694
+ if (memberName[2] === "-") {
1695
+ memberName = memberName.slice(3);
1696
+ } else if (isMemberInElement(win, ln)) {
1697
+ memberName = ln.slice(2);
1698
+ } else {
1699
+ memberName = ln[2] + memberName.slice(3);
1700
+ }
1701
+ if (oldValue || newValue) {
1702
+ const capture = memberName.endsWith(CAPTURE_EVENT_SUFFIX);
1703
+ memberName = memberName.replace(CAPTURE_EVENT_REGEX, "");
1704
+ if (oldValue) {
1705
+ plt.rel(elm, memberName, oldValue, capture);
1706
+ }
1707
+ if (newValue) {
1708
+ plt.ael(elm, memberName, newValue, capture);
1709
+ }
1710
+ }
1711
+ } else {
1712
+ const isComplex = isComplexType(newValue);
1713
+ if ((isProp || isComplex && newValue !== null) && !isSvg) {
1714
+ try {
1715
+ if (!elm.tagName.includes("-")) {
1716
+ const n = newValue == null ? "" : newValue;
1717
+ if (memberName === "list") {
1718
+ isProp = false;
1719
+ } else if (oldValue == null || elm[memberName] != n) {
1720
+ if (typeof elm.__lookupSetter__(memberName) === "function") {
1721
+ elm[memberName] = n;
1722
+ } else {
1723
+ elm.setAttribute(memberName, n);
1724
+ }
1725
+ }
1726
+ } else if (elm[memberName] !== newValue) {
1727
+ elm[memberName] = newValue;
1728
+ }
1729
+ } catch (e) {
1730
+ }
1731
+ }
1732
+ let xlink = false;
1733
+ {
1734
+ if (ln !== (ln = ln.replace(/^xlink\:?/, ""))) {
1735
+ memberName = ln;
1736
+ xlink = true;
1737
+ }
1738
+ }
1739
+ if (newValue == null || newValue === false) {
1740
+ if (newValue !== false || elm.getAttribute(memberName) === "") {
1741
+ if (xlink) {
1742
+ elm.removeAttributeNS(XLINK_NS, memberName);
1743
+ } else {
1744
+ elm.removeAttribute(memberName);
1745
+ }
1746
+ }
1747
+ } else if ((!isProp || flags & 4 /* isHost */ || isSvg) && !isComplex && elm.nodeType === 1 /* ElementNode */) {
1748
+ newValue = newValue === true ? "" : newValue;
1749
+ if (xlink) {
1750
+ elm.setAttributeNS(XLINK_NS, memberName, newValue);
1751
+ } else {
1752
+ elm.setAttribute(memberName, newValue);
1753
+ }
1754
+ }
1755
+ }
1756
+ };
1757
+ var parseClassListRegex = /\s/;
1758
+ var parseClassList = (value) => {
1759
+ if (typeof value === "object" && value && "baseVal" in value) {
1760
+ value = value.baseVal;
1761
+ }
1762
+ if (!value || typeof value !== "string") {
1763
+ return [];
1764
+ }
1765
+ return value.split(parseClassListRegex);
1766
+ };
1767
+ var CAPTURE_EVENT_SUFFIX = "Capture";
1768
+ var CAPTURE_EVENT_REGEX = new RegExp(CAPTURE_EVENT_SUFFIX + "$");
1769
+
1770
+ // src/runtime/vdom/update-element.ts
1771
+ var updateElement = (oldVnode, newVnode, isSvgMode2, isInitialRender) => {
1772
+ const elm = newVnode.$elm$.nodeType === 11 /* DocumentFragment */ && newVnode.$elm$.host ? newVnode.$elm$.host : newVnode.$elm$;
1773
+ const oldVnodeAttrs = oldVnode && oldVnode.$attrs$ || {};
1774
+ const newVnodeAttrs = newVnode.$attrs$ || {};
1775
+ {
1776
+ for (const memberName of sortedAttrNames(Object.keys(oldVnodeAttrs))) {
1777
+ if (!(memberName in newVnodeAttrs)) {
1778
+ setAccessor(
1779
+ elm,
1780
+ memberName,
1781
+ oldVnodeAttrs[memberName],
1782
+ void 0,
1783
+ isSvgMode2,
1784
+ newVnode.$flags$);
1785
+ }
1786
+ }
1787
+ }
1788
+ for (const memberName of sortedAttrNames(Object.keys(newVnodeAttrs))) {
1789
+ setAccessor(
1790
+ elm,
1791
+ memberName,
1792
+ oldVnodeAttrs[memberName],
1793
+ newVnodeAttrs[memberName],
1794
+ isSvgMode2,
1795
+ newVnode.$flags$);
1796
+ }
1797
+ };
1798
+ function sortedAttrNames(attrNames) {
1799
+ return attrNames.includes("ref") ? (
1800
+ // we need to sort these to ensure that `'ref'` is the last attr
1801
+ [...attrNames.filter((attr) => attr !== "ref"), "ref"]
1802
+ ) : (
1803
+ // no need to sort, return the original array
1804
+ attrNames
1805
+ );
1806
+ }
1807
+
1808
+ // src/runtime/vdom/vdom-render.ts
1809
+ var scopeId;
1810
+ var contentRef;
1811
+ var hostTagName;
1812
+ var useNativeShadowDom = false;
1813
+ var checkSlotFallbackVisibility = false;
1814
+ var checkSlotRelocate = false;
1815
+ var isSvgMode = false;
1816
+ var createElm = (oldParentVNode, newParentVNode, childIndex) => {
1817
+ var _a;
1818
+ const newVNode2 = newParentVNode.$children$[childIndex];
1819
+ let i2 = 0;
1820
+ let elm;
1821
+ let childNode;
1822
+ let oldVNode;
1823
+ if (!useNativeShadowDom) {
1824
+ checkSlotRelocate = true;
1825
+ if (newVNode2.$tag$ === "slot") {
1826
+ newVNode2.$flags$ |= newVNode2.$children$ ? (
1827
+ // slot element has fallback content
1828
+ // still create an element that "mocks" the slot element
1829
+ 2 /* isSlotFallback */
1830
+ ) : (
1831
+ // slot element does not have fallback content
1832
+ // create an html comment we'll use to always reference
1833
+ // where actual slot content should sit next to
1834
+ 1 /* isSlotReference */
1835
+ );
1836
+ }
1837
+ }
1838
+ if (newVNode2.$text$ !== null) {
1839
+ elm = newVNode2.$elm$ = win.document.createTextNode(newVNode2.$text$);
1840
+ } else if (newVNode2.$flags$ & 1 /* isSlotReference */) {
1841
+ elm = newVNode2.$elm$ = win.document.createTextNode("");
1842
+ {
1843
+ updateElement(null, newVNode2, isSvgMode);
1844
+ }
1845
+ } else {
1846
+ if (!isSvgMode) {
1847
+ isSvgMode = newVNode2.$tag$ === "svg";
1848
+ }
1849
+ if (!win.document) {
1850
+ throw new Error(
1851
+ "You are trying to render a Stencil component in an environment that doesn't support the DOM. Make sure to populate the [`window`](https://developer.mozilla.org/en-US/docs/Web/API/Window/window) object before rendering a component."
1852
+ );
1853
+ }
1854
+ elm = newVNode2.$elm$ = win.document.createElementNS(
1855
+ isSvgMode ? SVG_NS : HTML_NS,
1856
+ !useNativeShadowDom && BUILD.slotRelocation && newVNode2.$flags$ & 2 /* isSlotFallback */ ? "slot-fb" : newVNode2.$tag$
1857
+ ) ;
1858
+ if (isSvgMode && newVNode2.$tag$ === "foreignObject") {
1859
+ isSvgMode = false;
1860
+ }
1861
+ {
1862
+ updateElement(null, newVNode2, isSvgMode);
1863
+ }
1864
+ if (isDef(scopeId) && elm["s-si"] !== scopeId) {
1865
+ elm.classList.add(elm["s-si"] = scopeId);
1866
+ }
1867
+ if (newVNode2.$children$) {
1868
+ for (i2 = 0; i2 < newVNode2.$children$.length; ++i2) {
1869
+ childNode = createElm(oldParentVNode, newVNode2, i2);
1870
+ if (childNode) {
1871
+ elm.appendChild(childNode);
1872
+ }
1873
+ }
1874
+ }
1875
+ {
1876
+ if (newVNode2.$tag$ === "svg") {
1877
+ isSvgMode = false;
1878
+ } else if (elm.tagName === "foreignObject") {
1879
+ isSvgMode = true;
1880
+ }
1881
+ }
1882
+ }
1883
+ elm["s-hn"] = hostTagName;
1884
+ {
1885
+ if (newVNode2.$flags$ & (2 /* isSlotFallback */ | 1 /* isSlotReference */)) {
1886
+ elm["s-sr"] = true;
1887
+ elm["s-cr"] = contentRef;
1888
+ elm["s-sn"] = newVNode2.$name$ || "";
1889
+ elm["s-rf"] = (_a = newVNode2.$attrs$) == null ? void 0 : _a.ref;
1890
+ patchSlotNode(elm);
1891
+ oldVNode = oldParentVNode && oldParentVNode.$children$ && oldParentVNode.$children$[childIndex];
1892
+ if (oldVNode && oldVNode.$tag$ === newVNode2.$tag$ && oldParentVNode.$elm$) {
1893
+ {
1894
+ putBackInOriginalLocation(oldParentVNode.$elm$, false);
1895
+ }
1896
+ }
1897
+ {
1898
+ addRemoveSlotScopedClass(contentRef, elm, newParentVNode.$elm$, oldParentVNode == null ? void 0 : oldParentVNode.$elm$);
1899
+ }
1900
+ }
1901
+ }
1902
+ return elm;
1903
+ };
1904
+ var putBackInOriginalLocation = (parentElm, recursive) => {
1905
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
1906
+ const oldSlotChildNodes = Array.from(parentElm.__childNodes || parentElm.childNodes);
1907
+ for (let i2 = oldSlotChildNodes.length - 1; i2 >= 0; i2--) {
1908
+ const childNode = oldSlotChildNodes[i2];
1909
+ if (childNode["s-hn"] !== hostTagName && childNode["s-ol"]) {
1910
+ insertBefore(referenceNode(childNode).parentNode, childNode, referenceNode(childNode));
1911
+ childNode["s-ol"].remove();
1912
+ childNode["s-ol"] = void 0;
1913
+ childNode["s-sh"] = void 0;
1914
+ checkSlotRelocate = true;
1915
+ }
1916
+ if (recursive) {
1917
+ putBackInOriginalLocation(childNode, recursive);
1918
+ }
1919
+ }
1920
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
1921
+ };
1922
+ var addVnodes = (parentElm, before, parentVNode, vnodes, startIdx, endIdx) => {
1923
+ let containerElm = parentElm["s-cr"] && parentElm["s-cr"].parentNode || parentElm;
1924
+ let childNode;
1925
+ if (containerElm.shadowRoot && containerElm.tagName === hostTagName) {
1926
+ containerElm = containerElm.shadowRoot;
1927
+ }
1928
+ for (; startIdx <= endIdx; ++startIdx) {
1929
+ if (vnodes[startIdx]) {
1930
+ childNode = createElm(null, parentVNode, startIdx);
1931
+ if (childNode) {
1932
+ vnodes[startIdx].$elm$ = childNode;
1933
+ insertBefore(containerElm, childNode, referenceNode(before) );
1934
+ }
1935
+ }
1936
+ }
1937
+ };
1938
+ var removeVnodes = (vnodes, startIdx, endIdx) => {
1939
+ for (let index = startIdx; index <= endIdx; ++index) {
1940
+ const vnode = vnodes[index];
1941
+ if (vnode) {
1942
+ const elm = vnode.$elm$;
1943
+ nullifyVNodeRefs(vnode);
1944
+ if (elm) {
1945
+ {
1946
+ checkSlotFallbackVisibility = true;
1947
+ if (elm["s-ol"]) {
1948
+ elm["s-ol"].remove();
1949
+ } else {
1950
+ putBackInOriginalLocation(elm, true);
1951
+ }
1952
+ }
1953
+ elm.remove();
1954
+ }
1955
+ }
1956
+ }
1957
+ };
1958
+ var updateChildren = (parentElm, oldCh, newVNode2, newCh, isInitialRender = false) => {
1959
+ let oldStartIdx = 0;
1960
+ let newStartIdx = 0;
1961
+ let idxInOld = 0;
1962
+ let i2 = 0;
1963
+ let oldEndIdx = oldCh.length - 1;
1964
+ let oldStartVnode = oldCh[0];
1965
+ let oldEndVnode = oldCh[oldEndIdx];
1966
+ let newEndIdx = newCh.length - 1;
1967
+ let newStartVnode = newCh[0];
1968
+ let newEndVnode = newCh[newEndIdx];
1969
+ let node;
1970
+ let elmToMove;
1971
+ while (oldStartIdx <= oldEndIdx && newStartIdx <= newEndIdx) {
1972
+ if (oldStartVnode == null) {
1973
+ oldStartVnode = oldCh[++oldStartIdx];
1974
+ } else if (oldEndVnode == null) {
1975
+ oldEndVnode = oldCh[--oldEndIdx];
1976
+ } else if (newStartVnode == null) {
1977
+ newStartVnode = newCh[++newStartIdx];
1978
+ } else if (newEndVnode == null) {
1979
+ newEndVnode = newCh[--newEndIdx];
1980
+ } else if (isSameVnode(oldStartVnode, newStartVnode, isInitialRender)) {
1981
+ patch(oldStartVnode, newStartVnode, isInitialRender);
1982
+ oldStartVnode = oldCh[++oldStartIdx];
1983
+ newStartVnode = newCh[++newStartIdx];
1984
+ } else if (isSameVnode(oldEndVnode, newEndVnode, isInitialRender)) {
1985
+ patch(oldEndVnode, newEndVnode, isInitialRender);
1986
+ oldEndVnode = oldCh[--oldEndIdx];
1987
+ newEndVnode = newCh[--newEndIdx];
1988
+ } else if (isSameVnode(oldStartVnode, newEndVnode, isInitialRender)) {
1989
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1990
+ putBackInOriginalLocation(oldStartVnode.$elm$.parentNode, false);
1991
+ }
1992
+ patch(oldStartVnode, newEndVnode, isInitialRender);
1993
+ insertBefore(parentElm, oldStartVnode.$elm$, oldEndVnode.$elm$.nextSibling);
1994
+ oldStartVnode = oldCh[++oldStartIdx];
1995
+ newEndVnode = newCh[--newEndIdx];
1996
+ } else if (isSameVnode(oldEndVnode, newStartVnode, isInitialRender)) {
1997
+ if ((oldStartVnode.$tag$ === "slot" || newEndVnode.$tag$ === "slot")) {
1998
+ putBackInOriginalLocation(oldEndVnode.$elm$.parentNode, false);
1999
+ }
2000
+ patch(oldEndVnode, newStartVnode, isInitialRender);
2001
+ insertBefore(parentElm, oldEndVnode.$elm$, oldStartVnode.$elm$);
2002
+ oldEndVnode = oldCh[--oldEndIdx];
2003
+ newStartVnode = newCh[++newStartIdx];
2004
+ } else {
2005
+ idxInOld = -1;
2006
+ {
2007
+ for (i2 = oldStartIdx; i2 <= oldEndIdx; ++i2) {
2008
+ if (oldCh[i2] && oldCh[i2].$key$ !== null && oldCh[i2].$key$ === newStartVnode.$key$) {
2009
+ idxInOld = i2;
2010
+ break;
2011
+ }
2012
+ }
2013
+ }
2014
+ if (idxInOld >= 0) {
2015
+ elmToMove = oldCh[idxInOld];
2016
+ if (elmToMove.$tag$ !== newStartVnode.$tag$) {
2017
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, idxInOld);
2018
+ } else {
2019
+ patch(elmToMove, newStartVnode, isInitialRender);
2020
+ oldCh[idxInOld] = void 0;
2021
+ node = elmToMove.$elm$;
2022
+ }
2023
+ newStartVnode = newCh[++newStartIdx];
2024
+ } else {
2025
+ node = createElm(oldCh && oldCh[newStartIdx], newVNode2, newStartIdx);
2026
+ newStartVnode = newCh[++newStartIdx];
2027
+ }
2028
+ if (node) {
2029
+ {
2030
+ insertBefore(
2031
+ referenceNode(oldStartVnode.$elm$).parentNode,
2032
+ node,
2033
+ referenceNode(oldStartVnode.$elm$)
2034
+ );
2035
+ }
2036
+ }
2037
+ }
2038
+ }
2039
+ if (oldStartIdx > oldEndIdx) {
2040
+ addVnodes(
2041
+ parentElm,
2042
+ newCh[newEndIdx + 1] == null ? null : newCh[newEndIdx + 1].$elm$,
2043
+ newVNode2,
2044
+ newCh,
2045
+ newStartIdx,
2046
+ newEndIdx
2047
+ );
2048
+ } else if (newStartIdx > newEndIdx) {
2049
+ removeVnodes(oldCh, oldStartIdx, oldEndIdx);
2050
+ }
2051
+ };
2052
+ var isSameVnode = (leftVNode, rightVNode, isInitialRender = false) => {
2053
+ if (leftVNode.$tag$ === rightVNode.$tag$) {
2054
+ if (leftVNode.$tag$ === "slot") {
2055
+ return leftVNode.$name$ === rightVNode.$name$;
2056
+ }
2057
+ if (!isInitialRender) {
2058
+ return leftVNode.$key$ === rightVNode.$key$;
2059
+ }
2060
+ if (isInitialRender && !leftVNode.$key$ && rightVNode.$key$) {
2061
+ leftVNode.$key$ = rightVNode.$key$;
2062
+ }
2063
+ return true;
2064
+ }
2065
+ return false;
2066
+ };
2067
+ var referenceNode = (node) => node && node["s-ol"] || node;
2068
+ var patch = (oldVNode, newVNode2, isInitialRender = false) => {
2069
+ const elm = newVNode2.$elm$ = oldVNode.$elm$;
2070
+ const oldChildren = oldVNode.$children$;
2071
+ const newChildren = newVNode2.$children$;
2072
+ const tag = newVNode2.$tag$;
2073
+ const text = newVNode2.$text$;
2074
+ let defaultHolder;
2075
+ if (text === null) {
2076
+ {
2077
+ isSvgMode = tag === "svg" ? true : tag === "foreignObject" ? false : isSvgMode;
2078
+ }
2079
+ {
2080
+ updateElement(oldVNode, newVNode2, isSvgMode);
2081
+ }
2082
+ if (oldChildren !== null && newChildren !== null) {
2083
+ updateChildren(elm, oldChildren, newVNode2, newChildren, isInitialRender);
2084
+ } else if (newChildren !== null) {
2085
+ if (oldVNode.$text$ !== null) {
2086
+ elm.textContent = "";
2087
+ }
2088
+ addVnodes(elm, null, newVNode2, newChildren, 0, newChildren.length - 1);
2089
+ } else if (
2090
+ // don't do this on initial render as it can cause non-hydrated content to be removed
2091
+ !isInitialRender && BUILD.updatable && oldChildren !== null
2092
+ ) {
2093
+ removeVnodes(oldChildren, 0, oldChildren.length - 1);
2094
+ }
2095
+ if (isSvgMode && tag === "svg") {
2096
+ isSvgMode = false;
2097
+ }
2098
+ } else if ((defaultHolder = elm["s-cr"])) {
2099
+ defaultHolder.parentNode.textContent = text;
2100
+ } else if (oldVNode.$text$ !== text) {
2101
+ elm.data = text;
2102
+ }
2103
+ };
2104
+ var relocateNodes = [];
2105
+ var markSlotContentForRelocation = (elm) => {
2106
+ let node;
2107
+ let hostContentNodes;
2108
+ let j;
2109
+ const children = elm.__childNodes || elm.childNodes;
2110
+ for (const childNode of children) {
2111
+ if (childNode["s-sr"] && (node = childNode["s-cr"]) && node.parentNode) {
2112
+ hostContentNodes = node.parentNode.__childNodes || node.parentNode.childNodes;
2113
+ const slotName = childNode["s-sn"];
2114
+ for (j = hostContentNodes.length - 1; j >= 0; j--) {
2115
+ node = hostContentNodes[j];
2116
+ if (!node["s-cn"] && !node["s-nr"] && node["s-hn"] !== childNode["s-hn"] && (true)) {
2117
+ if (isNodeLocatedInSlot(node, slotName)) {
2118
+ let relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2119
+ checkSlotFallbackVisibility = true;
2120
+ node["s-sn"] = node["s-sn"] || slotName;
2121
+ if (relocateNodeData) {
2122
+ relocateNodeData.$nodeToRelocate$["s-sh"] = childNode["s-hn"];
2123
+ relocateNodeData.$slotRefNode$ = childNode;
2124
+ } else {
2125
+ node["s-sh"] = childNode["s-hn"];
2126
+ relocateNodes.push({
2127
+ $slotRefNode$: childNode,
2128
+ $nodeToRelocate$: node
2129
+ });
2130
+ }
2131
+ if (node["s-sr"]) {
2132
+ relocateNodes.map((relocateNode) => {
2133
+ if (isNodeLocatedInSlot(relocateNode.$nodeToRelocate$, node["s-sn"])) {
2134
+ relocateNodeData = relocateNodes.find((r) => r.$nodeToRelocate$ === node);
2135
+ if (relocateNodeData && !relocateNode.$slotRefNode$) {
2136
+ relocateNode.$slotRefNode$ = relocateNodeData.$slotRefNode$;
2137
+ }
2138
+ }
2139
+ });
2140
+ }
2141
+ } else if (!relocateNodes.some((r) => r.$nodeToRelocate$ === node)) {
2142
+ relocateNodes.push({
2143
+ $nodeToRelocate$: node
2144
+ });
2145
+ }
2146
+ }
2147
+ }
2148
+ }
2149
+ if (childNode.nodeType === 1 /* ElementNode */) {
2150
+ markSlotContentForRelocation(childNode);
2151
+ }
2152
+ }
2153
+ };
2154
+ var nullifyVNodeRefs = (vNode) => {
2155
+ {
2156
+ vNode.$attrs$ && vNode.$attrs$.ref && vNode.$attrs$.ref(null);
2157
+ vNode.$children$ && vNode.$children$.map(nullifyVNodeRefs);
2158
+ }
2159
+ };
2160
+ var insertBefore = (parent, newNode, reference) => {
2161
+ if (typeof newNode["s-sn"] === "string" && !!newNode["s-sr"] && !!newNode["s-cr"]) {
2162
+ addRemoveSlotScopedClass(newNode["s-cr"], newNode, parent, newNode.parentElement);
2163
+ }
2164
+ {
2165
+ return parent == null ? void 0 : parent.insertBefore(newNode, reference);
2166
+ }
2167
+ };
2168
+ function addRemoveSlotScopedClass(reference, slotNode, newParent, oldParent) {
2169
+ var _a, _b;
2170
+ let scopeId2;
2171
+ if (reference && typeof slotNode["s-sn"] === "string" && !!slotNode["s-sr"] && reference.parentNode && reference.parentNode["s-sc"] && (scopeId2 = slotNode["s-si"] || reference.parentNode["s-sc"])) {
2172
+ const scopeName = slotNode["s-sn"];
2173
+ const hostName = slotNode["s-hn"];
2174
+ (_a = newParent.classList) == null ? void 0 : _a.add(scopeId2 + "-s");
2175
+ if (oldParent && ((_b = oldParent.classList) == null ? void 0 : _b.contains(scopeId2 + "-s"))) {
2176
+ let child = (oldParent.__childNodes || oldParent.childNodes)[0];
2177
+ let found = false;
2178
+ while (child) {
2179
+ if (child["s-sn"] !== scopeName && child["s-hn"] === hostName && !!child["s-sr"]) {
2180
+ found = true;
2181
+ break;
2182
+ }
2183
+ child = child.nextSibling;
2184
+ }
2185
+ if (!found) oldParent.classList.remove(scopeId2 + "-s");
2186
+ }
2187
+ }
2188
+ }
2189
+ var renderVdom = (hostRef, renderFnResults, isInitialLoad = false) => {
2190
+ var _a, _b, _c, _d;
2191
+ const hostElm = hostRef.$hostElement$;
2192
+ const cmpMeta = hostRef.$cmpMeta$;
2193
+ const oldVNode = hostRef.$vnode$ || newVNode(null, null);
2194
+ const isHostElement = isHost(renderFnResults);
2195
+ const rootVnode = isHostElement ? renderFnResults : h(null, null, renderFnResults);
2196
+ hostTagName = hostElm.tagName;
2197
+ if (cmpMeta.$attrsToReflect$) {
2198
+ rootVnode.$attrs$ = rootVnode.$attrs$ || {};
2199
+ cmpMeta.$attrsToReflect$.map(
2200
+ ([propName, attribute]) => rootVnode.$attrs$[attribute] = hostElm[propName]
2201
+ );
2202
+ }
2203
+ if (isInitialLoad && rootVnode.$attrs$) {
2204
+ for (const key of Object.keys(rootVnode.$attrs$)) {
2205
+ if (hostElm.hasAttribute(key) && !["key", "ref", "style", "class"].includes(key)) {
2206
+ rootVnode.$attrs$[key] = hostElm[key];
2207
+ }
2208
+ }
2209
+ }
2210
+ rootVnode.$tag$ = null;
2211
+ rootVnode.$flags$ |= 4 /* isHost */;
2212
+ hostRef.$vnode$ = rootVnode;
2213
+ rootVnode.$elm$ = oldVNode.$elm$ = hostElm.shadowRoot || hostElm ;
2214
+ {
2215
+ scopeId = hostElm["s-sc"];
2216
+ }
2217
+ useNativeShadowDom = !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) && !(cmpMeta.$flags$ & 128 /* shadowNeedsScopedCss */);
2218
+ {
2219
+ contentRef = hostElm["s-cr"];
2220
+ checkSlotFallbackVisibility = false;
2221
+ }
2222
+ patch(oldVNode, rootVnode, isInitialLoad);
2223
+ {
2224
+ plt.$flags$ |= 1 /* isTmpDisconnected */;
2225
+ if (checkSlotRelocate) {
2226
+ markSlotContentForRelocation(rootVnode.$elm$);
2227
+ for (const relocateData of relocateNodes) {
2228
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
2229
+ if (!nodeToRelocate["s-ol"] && win.document) {
2230
+ const orgLocationNode = win.document.createTextNode("");
2231
+ orgLocationNode["s-nr"] = nodeToRelocate;
2232
+ insertBefore(nodeToRelocate.parentNode, nodeToRelocate["s-ol"] = orgLocationNode, nodeToRelocate);
2233
+ }
2234
+ }
2235
+ for (const relocateData of relocateNodes) {
2236
+ const nodeToRelocate = relocateData.$nodeToRelocate$;
2237
+ const slotRefNode = relocateData.$slotRefNode$;
2238
+ if (slotRefNode) {
2239
+ const parentNodeRef = slotRefNode.parentNode;
2240
+ let insertBeforeNode = slotRefNode.nextSibling;
2241
+ {
2242
+ let orgLocationNode = (_a = nodeToRelocate["s-ol"]) == null ? void 0 : _a.previousSibling;
2243
+ while (orgLocationNode) {
2244
+ let refNode = (_b = orgLocationNode["s-nr"]) != null ? _b : null;
2245
+ if (refNode && refNode["s-sn"] === nodeToRelocate["s-sn"] && parentNodeRef === (refNode.__parentNode || refNode.parentNode)) {
2246
+ refNode = refNode.nextSibling;
2247
+ while (refNode === nodeToRelocate || (refNode == null ? void 0 : refNode["s-sr"])) {
2248
+ refNode = refNode == null ? void 0 : refNode.nextSibling;
2249
+ }
2250
+ if (!refNode || !refNode["s-nr"]) {
2251
+ insertBeforeNode = refNode;
2252
+ break;
2253
+ }
2254
+ }
2255
+ orgLocationNode = orgLocationNode.previousSibling;
2256
+ }
2257
+ }
2258
+ const parent = nodeToRelocate.__parentNode || nodeToRelocate.parentNode;
2259
+ const nextSibling = nodeToRelocate.__nextSibling || nodeToRelocate.nextSibling;
2260
+ if (!insertBeforeNode && parentNodeRef !== parent || nextSibling !== insertBeforeNode) {
2261
+ if (nodeToRelocate !== insertBeforeNode) {
2262
+ if (!nodeToRelocate["s-hn"] && nodeToRelocate["s-ol"]) {
2263
+ nodeToRelocate["s-hn"] = nodeToRelocate["s-ol"].parentNode.nodeName;
2264
+ }
2265
+ insertBefore(parentNodeRef, nodeToRelocate, insertBeforeNode);
2266
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */ && nodeToRelocate.tagName !== "SLOT-FB") {
2267
+ nodeToRelocate.hidden = (_c = nodeToRelocate["s-ih"]) != null ? _c : false;
2268
+ }
2269
+ }
2270
+ }
2271
+ nodeToRelocate && typeof slotRefNode["s-rf"] === "function" && slotRefNode["s-rf"](slotRefNode);
2272
+ } else {
2273
+ if (nodeToRelocate.nodeType === 1 /* ElementNode */) {
2274
+ if (isInitialLoad) {
2275
+ nodeToRelocate["s-ih"] = (_d = nodeToRelocate.hidden) != null ? _d : false;
2276
+ }
2277
+ nodeToRelocate.hidden = true;
2278
+ }
2279
+ }
2280
+ }
2281
+ }
2282
+ if (checkSlotFallbackVisibility) {
2283
+ updateFallbackSlotVisibility(rootVnode.$elm$);
2284
+ }
2285
+ plt.$flags$ &= -2 /* isTmpDisconnected */;
2286
+ relocateNodes.length = 0;
2287
+ }
2288
+ contentRef = void 0;
2289
+ };
2290
+
2291
+ // src/runtime/update-component.ts
2292
+ var attachToAncestor = (hostRef, ancestorComponent) => {
2293
+ if (ancestorComponent && !hostRef.$onRenderResolve$ && ancestorComponent["s-p"]) {
2294
+ const index = ancestorComponent["s-p"].push(
2295
+ new Promise(
2296
+ (r) => hostRef.$onRenderResolve$ = () => {
2297
+ ancestorComponent["s-p"].splice(index - 1, 1);
2298
+ r();
2299
+ }
2300
+ )
2301
+ );
2302
+ }
2303
+ };
2304
+ var scheduleUpdate = (hostRef, isInitialLoad) => {
2305
+ {
2306
+ hostRef.$flags$ |= 16 /* isQueuedForUpdate */;
2307
+ }
2308
+ if (hostRef.$flags$ & 4 /* isWaitingForChildren */) {
2309
+ hostRef.$flags$ |= 512 /* needsRerender */;
2310
+ return;
2311
+ }
2312
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$);
2313
+ const dispatch = () => dispatchHooks(hostRef, isInitialLoad);
2314
+ return writeTask(dispatch) ;
2315
+ };
2316
+ var dispatchHooks = (hostRef, isInitialLoad) => {
2317
+ const elm = hostRef.$hostElement$;
2318
+ const endSchedule = createTime("scheduleUpdate", hostRef.$cmpMeta$.$tagName$);
2319
+ const instance = hostRef.$lazyInstance$ ;
2320
+ if (!instance) {
2321
+ throw new Error(
2322
+ `Can't render component <${elm.tagName.toLowerCase()} /> with invalid Stencil runtime! Make sure this imported component is compiled with a \`externalRuntime: true\` flag. For more information, please refer to https://stenciljs.com/docs/custom-elements#externalruntime`
2323
+ );
2324
+ }
2325
+ let maybePromise;
2326
+ if (isInitialLoad) {
2327
+ {
2328
+ hostRef.$flags$ |= 256 /* isListenReady */;
2329
+ if (hostRef.$queuedListeners$) {
2330
+ hostRef.$queuedListeners$.map(([methodName, event]) => safeCall(instance, methodName, event, elm));
2331
+ hostRef.$queuedListeners$ = void 0;
2332
+ }
2333
+ }
2334
+ maybePromise = safeCall(instance, "componentWillLoad", void 0, elm);
2335
+ } else {
2336
+ maybePromise = safeCall(instance, "componentWillUpdate", void 0, elm);
2337
+ }
2338
+ maybePromise = enqueue(maybePromise, () => safeCall(instance, "componentWillRender", void 0, elm));
2339
+ endSchedule();
2340
+ return enqueue(maybePromise, () => updateComponent(hostRef, instance, isInitialLoad));
2341
+ };
2342
+ var enqueue = (maybePromise, fn) => isPromisey(maybePromise) ? maybePromise.then(fn).catch((err2) => {
2343
+ console.error(err2);
2344
+ fn();
2345
+ }) : fn();
2346
+ var isPromisey = (maybePromise) => maybePromise instanceof Promise || maybePromise && maybePromise.then && typeof maybePromise.then === "function";
2347
+ var updateComponent = async (hostRef, instance, isInitialLoad) => {
2348
+ var _a;
2349
+ const elm = hostRef.$hostElement$;
2350
+ const endUpdate = createTime("update", hostRef.$cmpMeta$.$tagName$);
2351
+ const rc = elm["s-rc"];
2352
+ if (isInitialLoad) {
2353
+ attachStyles(hostRef);
2354
+ }
2355
+ const endRender = createTime("render", hostRef.$cmpMeta$.$tagName$);
2356
+ {
2357
+ callRender(hostRef, instance, elm, isInitialLoad);
2358
+ }
2359
+ if (rc) {
2360
+ rc.map((cb) => cb());
2361
+ elm["s-rc"] = void 0;
2362
+ }
2363
+ endRender();
2364
+ endUpdate();
2365
+ {
2366
+ const childrenPromises = (_a = elm["s-p"]) != null ? _a : [];
2367
+ const postUpdate = () => postUpdateComponent(hostRef);
2368
+ if (childrenPromises.length === 0) {
2369
+ postUpdate();
2370
+ } else {
2371
+ Promise.all(childrenPromises).then(postUpdate);
2372
+ hostRef.$flags$ |= 4 /* isWaitingForChildren */;
2373
+ childrenPromises.length = 0;
2374
+ }
2375
+ }
2376
+ };
2377
+ var callRender = (hostRef, instance, elm, isInitialLoad) => {
2378
+ try {
2379
+ instance = instance.render() ;
2380
+ {
2381
+ hostRef.$flags$ &= -17 /* isQueuedForUpdate */;
2382
+ }
2383
+ {
2384
+ hostRef.$flags$ |= 2 /* hasRendered */;
2385
+ }
2386
+ {
2387
+ {
2388
+ {
2389
+ renderVdom(hostRef, instance, isInitialLoad);
2390
+ }
2391
+ }
2392
+ }
2393
+ } catch (e) {
2394
+ consoleError(e, hostRef.$hostElement$);
2395
+ }
2396
+ return null;
2397
+ };
2398
+ var postUpdateComponent = (hostRef) => {
2399
+ const tagName = hostRef.$cmpMeta$.$tagName$;
2400
+ const elm = hostRef.$hostElement$;
2401
+ const endPostUpdate = createTime("postUpdate", tagName);
2402
+ const instance = hostRef.$lazyInstance$ ;
2403
+ const ancestorComponent = hostRef.$ancestorComponent$;
2404
+ safeCall(instance, "componentDidRender", void 0, elm);
2405
+ if (!(hostRef.$flags$ & 64 /* hasLoadedComponent */)) {
2406
+ hostRef.$flags$ |= 64 /* hasLoadedComponent */;
2407
+ {
2408
+ addHydratedFlag(elm);
2409
+ }
2410
+ safeCall(instance, "componentDidLoad", void 0, elm);
2411
+ endPostUpdate();
2412
+ {
2413
+ hostRef.$onReadyResolve$(elm);
2414
+ if (!ancestorComponent) {
2415
+ appDidLoad();
2416
+ }
2417
+ }
2418
+ } else {
2419
+ safeCall(instance, "componentDidUpdate", void 0, elm);
2420
+ endPostUpdate();
2421
+ }
2422
+ {
2423
+ hostRef.$onInstanceResolve$(elm);
2424
+ }
2425
+ {
2426
+ if (hostRef.$onRenderResolve$) {
2427
+ hostRef.$onRenderResolve$();
2428
+ hostRef.$onRenderResolve$ = void 0;
2429
+ }
2430
+ if (hostRef.$flags$ & 512 /* needsRerender */) {
2431
+ nextTick(() => scheduleUpdate(hostRef, false));
2432
+ }
2433
+ hostRef.$flags$ &= -517;
2434
+ }
2435
+ };
2436
+ var appDidLoad = (who) => {
2437
+ nextTick(() => emitEvent(win, "appload", { detail: { namespace: NAMESPACE } }));
2438
+ };
2439
+ var safeCall = (instance, method, arg, elm) => {
2440
+ if (instance && instance[method]) {
2441
+ try {
2442
+ return instance[method](arg);
2443
+ } catch (e) {
2444
+ consoleError(e, elm);
2445
+ }
2446
+ }
2447
+ return void 0;
2448
+ };
2449
+ var addHydratedFlag = (elm) => {
2450
+ var _a;
2451
+ return elm.classList.add((_a = BUILD.hydratedSelectorName) != null ? _a : "hydrated") ;
2452
+ };
2453
+
2454
+ // src/runtime/set-value.ts
2455
+ var getValue = (ref, propName) => getHostRef(ref).$instanceValues$.get(propName);
2456
+ var setValue = (ref, propName, newVal, cmpMeta) => {
2457
+ const hostRef = getHostRef(ref);
2458
+ if (!hostRef) {
2459
+ throw new Error(
2460
+ `Couldn't find host element for "${cmpMeta.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/stenciljs/core/issues/5457).`
2461
+ );
2462
+ }
2463
+ const elm = hostRef.$hostElement$ ;
2464
+ const oldVal = hostRef.$instanceValues$.get(propName);
2465
+ const flags = hostRef.$flags$;
2466
+ const instance = hostRef.$lazyInstance$ ;
2467
+ newVal = parsePropertyValue(
2468
+ newVal,
2469
+ cmpMeta.$members$[propName][0]);
2470
+ const areBothNaN = Number.isNaN(oldVal) && Number.isNaN(newVal);
2471
+ const didValueChange = newVal !== oldVal && !areBothNaN;
2472
+ if ((!(flags & 8 /* isConstructingInstance */) || oldVal === void 0) && didValueChange) {
2473
+ hostRef.$instanceValues$.set(propName, newVal);
2474
+ if (instance) {
2475
+ if (cmpMeta.$watchers$ && flags & 128 /* isWatchReady */) {
2476
+ const watchMethods = cmpMeta.$watchers$[propName];
2477
+ if (watchMethods) {
2478
+ watchMethods.map((watchMethodName) => {
2479
+ try {
2480
+ instance[watchMethodName](newVal, oldVal, propName);
2481
+ } catch (e) {
2482
+ consoleError(e, elm);
2483
+ }
2484
+ });
2485
+ }
2486
+ }
2487
+ if ((flags & (2 /* hasRendered */ | 16 /* isQueuedForUpdate */)) === 2 /* hasRendered */) {
2488
+ if (instance.componentShouldUpdate) {
2489
+ if (instance.componentShouldUpdate(newVal, oldVal, propName) === false) {
2490
+ return;
2491
+ }
2492
+ }
2493
+ scheduleUpdate(hostRef, false);
2494
+ }
2495
+ }
2496
+ }
2497
+ };
2498
+
2499
+ // src/runtime/proxy-component.ts
2500
+ var proxyComponent = (Cstr, cmpMeta, flags) => {
2501
+ var _a, _b;
2502
+ const prototype = Cstr.prototype;
2503
+ if (cmpMeta.$members$ || (cmpMeta.$watchers$ || Cstr.watchers)) {
2504
+ if (Cstr.watchers && !cmpMeta.$watchers$) {
2505
+ cmpMeta.$watchers$ = Cstr.watchers;
2506
+ }
2507
+ const members = Object.entries((_a = cmpMeta.$members$) != null ? _a : {});
2508
+ members.map(([memberName, [memberFlags]]) => {
2509
+ if ((memberFlags & 31 /* Prop */ || (flags & 2 /* proxyState */) && memberFlags & 32 /* State */)) {
2510
+ const { get: origGetter, set: origSetter } = Object.getOwnPropertyDescriptor(prototype, memberName) || {};
2511
+ if (origGetter) cmpMeta.$members$[memberName][0] |= 2048 /* Getter */;
2512
+ if (origSetter) cmpMeta.$members$[memberName][0] |= 4096 /* Setter */;
2513
+ if (flags & 1 /* isElementConstructor */ || !origGetter) {
2514
+ Object.defineProperty(prototype, memberName, {
2515
+ get() {
2516
+ {
2517
+ if ((cmpMeta.$members$[memberName][0] & 2048 /* Getter */) === 0) {
2518
+ return getValue(this, memberName);
2519
+ }
2520
+ const ref = getHostRef(this);
2521
+ const instance = ref ? ref.$lazyInstance$ : prototype;
2522
+ if (!instance) return;
2523
+ return instance[memberName];
2524
+ }
2525
+ },
2526
+ configurable: true,
2527
+ enumerable: true
2528
+ });
2529
+ }
2530
+ Object.defineProperty(prototype, memberName, {
2531
+ set(newValue) {
2532
+ const ref = getHostRef(this);
2533
+ if (origSetter) {
2534
+ const currentValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2535
+ if (typeof currentValue === "undefined" && ref.$instanceValues$.get(memberName)) {
2536
+ newValue = ref.$instanceValues$.get(memberName);
2537
+ } else if (!ref.$instanceValues$.get(memberName) && currentValue) {
2538
+ ref.$instanceValues$.set(memberName, currentValue);
2539
+ }
2540
+ origSetter.apply(this, [
2541
+ parsePropertyValue(
2542
+ newValue,
2543
+ memberFlags)
2544
+ ]);
2545
+ newValue = memberFlags & 32 /* State */ ? this[memberName] : ref.$hostElement$[memberName];
2546
+ setValue(this, memberName, newValue, cmpMeta);
2547
+ return;
2548
+ }
2549
+ {
2550
+ if ((flags & 1 /* isElementConstructor */) === 0 || (cmpMeta.$members$[memberName][0] & 4096 /* Setter */) === 0) {
2551
+ setValue(this, memberName, newValue, cmpMeta);
2552
+ if (flags & 1 /* isElementConstructor */ && !ref.$lazyInstance$) {
2553
+ ref.$onReadyPromise$.then(() => {
2554
+ if (cmpMeta.$members$[memberName][0] & 4096 /* Setter */ && ref.$lazyInstance$[memberName] !== ref.$instanceValues$.get(memberName)) {
2555
+ ref.$lazyInstance$[memberName] = newValue;
2556
+ }
2557
+ });
2558
+ }
2559
+ return;
2560
+ }
2561
+ const setterSetVal = () => {
2562
+ const currentValue = ref.$lazyInstance$[memberName];
2563
+ if (!ref.$instanceValues$.get(memberName) && currentValue) {
2564
+ ref.$instanceValues$.set(memberName, currentValue);
2565
+ }
2566
+ ref.$lazyInstance$[memberName] = parsePropertyValue(
2567
+ newValue,
2568
+ memberFlags);
2569
+ setValue(this, memberName, ref.$lazyInstance$[memberName], cmpMeta);
2570
+ };
2571
+ if (ref.$lazyInstance$) {
2572
+ setterSetVal();
2573
+ } else {
2574
+ ref.$onReadyPromise$.then(() => setterSetVal());
2575
+ }
2576
+ }
2577
+ }
2578
+ });
2579
+ } else if (flags & 1 /* isElementConstructor */ && memberFlags & 64 /* Method */) {
2580
+ Object.defineProperty(prototype, memberName, {
2581
+ value(...args) {
2582
+ var _a2;
2583
+ const ref = getHostRef(this);
2584
+ return (_a2 = ref == null ? void 0 : ref.$onInstancePromise$) == null ? void 0 : _a2.then(() => {
2585
+ var _a3;
2586
+ return (_a3 = ref.$lazyInstance$) == null ? void 0 : _a3[memberName](...args);
2587
+ });
2588
+ }
2589
+ });
2590
+ }
2591
+ });
2592
+ if ((flags & 1 /* isElementConstructor */)) {
2593
+ const attrNameToPropName = /* @__PURE__ */ new Map();
2594
+ prototype.attributeChangedCallback = function(attrName, oldValue, newValue) {
2595
+ plt.jmp(() => {
2596
+ var _a2;
2597
+ const propName = attrNameToPropName.get(attrName);
2598
+ if (this.hasOwnProperty(propName) && BUILD.lazyLoad) {
2599
+ newValue = this[propName];
2600
+ delete this[propName];
2601
+ } else if (prototype.hasOwnProperty(propName) && typeof this[propName] === "number" && // cast type to number to avoid TS compiler issues
2602
+ this[propName] == newValue) {
2603
+ return;
2604
+ } else if (propName == null) {
2605
+ const hostRef = getHostRef(this);
2606
+ const flags2 = hostRef == null ? void 0 : hostRef.$flags$;
2607
+ if (flags2 && !(flags2 & 8 /* isConstructingInstance */) && flags2 & 128 /* isWatchReady */ && newValue !== oldValue) {
2608
+ const instance = hostRef.$lazyInstance$ ;
2609
+ const entry = (_a2 = cmpMeta.$watchers$) == null ? void 0 : _a2[attrName];
2610
+ entry == null ? void 0 : entry.forEach((callbackName) => {
2611
+ if (instance[callbackName] != null) {
2612
+ instance[callbackName].call(instance, newValue, oldValue, attrName);
2613
+ }
2614
+ });
2615
+ }
2616
+ return;
2617
+ }
2618
+ const propDesc = Object.getOwnPropertyDescriptor(prototype, propName);
2619
+ newValue = newValue === null && typeof this[propName] === "boolean" ? false : newValue;
2620
+ if (newValue !== this[propName] && (!propDesc.get || !!propDesc.set)) {
2621
+ this[propName] = newValue;
2622
+ }
2623
+ });
2624
+ };
2625
+ Cstr.observedAttributes = Array.from(
2626
+ /* @__PURE__ */ new Set([
2627
+ ...Object.keys((_b = cmpMeta.$watchers$) != null ? _b : {}),
2628
+ ...members.filter(([_, m]) => m[0] & 15 /* HasAttribute */).map(([propName, m]) => {
2629
+ var _a2;
2630
+ const attrName = m[1] || propName;
2631
+ attrNameToPropName.set(attrName, propName);
2632
+ if (m[0] & 512 /* ReflectAttr */) {
2633
+ (_a2 = cmpMeta.$attrsToReflect$) == null ? void 0 : _a2.push([propName, attrName]);
2634
+ }
2635
+ return attrName;
2636
+ })
2637
+ ])
2638
+ );
2639
+ }
2640
+ }
2641
+ return Cstr;
2642
+ };
2643
+
2644
+ // src/runtime/initialize-component.ts
2645
+ var initializeComponent = async (elm, hostRef, cmpMeta, hmrVersionId) => {
2646
+ let Cstr;
2647
+ if ((hostRef.$flags$ & 32 /* hasInitializedComponent */) === 0) {
2648
+ hostRef.$flags$ |= 32 /* hasInitializedComponent */;
2649
+ const bundleId = cmpMeta.$lazyBundleId$;
2650
+ if (bundleId) {
2651
+ const CstrImport = loadModule(cmpMeta, hostRef);
2652
+ if (CstrImport && "then" in CstrImport) {
2653
+ const endLoad = uniqueTime();
2654
+ Cstr = await CstrImport;
2655
+ endLoad();
2656
+ } else {
2657
+ Cstr = CstrImport;
2658
+ }
2659
+ if (!Cstr) {
2660
+ throw new Error(`Constructor for "${cmpMeta.$tagName$}#${hostRef.$modeName$}" was not found`);
2661
+ }
2662
+ if (!Cstr.isProxied) {
2663
+ {
2664
+ cmpMeta.$watchers$ = Cstr.watchers;
2665
+ }
2666
+ proxyComponent(Cstr, cmpMeta, 2 /* proxyState */);
2667
+ Cstr.isProxied = true;
2668
+ }
2669
+ const endNewInstance = createTime("createInstance", cmpMeta.$tagName$);
2670
+ {
2671
+ hostRef.$flags$ |= 8 /* isConstructingInstance */;
2672
+ }
2673
+ try {
2674
+ new Cstr(hostRef);
2675
+ } catch (e) {
2676
+ consoleError(e, elm);
2677
+ }
2678
+ {
2679
+ hostRef.$flags$ &= -9 /* isConstructingInstance */;
2680
+ }
2681
+ {
2682
+ hostRef.$flags$ |= 128 /* isWatchReady */;
2683
+ }
2684
+ endNewInstance();
2685
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2686
+ } else {
2687
+ Cstr = elm.constructor;
2688
+ const cmpTag = elm.localName;
2689
+ customElements.whenDefined(cmpTag).then(() => hostRef.$flags$ |= 128 /* isWatchReady */);
2690
+ }
2691
+ if (Cstr && Cstr.style) {
2692
+ let style;
2693
+ if (typeof Cstr.style === "string") {
2694
+ style = Cstr.style;
2695
+ }
2696
+ const scopeId2 = getScopeId(cmpMeta);
2697
+ if (!styles.has(scopeId2)) {
2698
+ const endRegisterStyles = createTime("registerStyles", cmpMeta.$tagName$);
2699
+ registerStyle(scopeId2, style, !!(cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */));
2700
+ endRegisterStyles();
2701
+ }
2702
+ }
2703
+ }
2704
+ const ancestorComponent = hostRef.$ancestorComponent$;
2705
+ const schedule = () => scheduleUpdate(hostRef, true);
2706
+ if (ancestorComponent && ancestorComponent["s-rc"]) {
2707
+ ancestorComponent["s-rc"].push(schedule);
2708
+ } else {
2709
+ schedule();
2710
+ }
2711
+ };
2712
+ var fireConnectedCallback = (instance, elm) => {
2713
+ {
2714
+ safeCall(instance, "connectedCallback", void 0, elm);
2715
+ }
2716
+ };
2717
+
2718
+ // src/runtime/connected-callback.ts
2719
+ var connectedCallback = (elm) => {
2720
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2721
+ const hostRef = getHostRef(elm);
2722
+ const cmpMeta = hostRef.$cmpMeta$;
2723
+ const endConnected = createTime("connectedCallback", cmpMeta.$tagName$);
2724
+ if (!(hostRef.$flags$ & 1 /* hasConnected */)) {
2725
+ hostRef.$flags$ |= 1 /* hasConnected */;
2726
+ {
2727
+ if (// TODO(STENCIL-854): Remove code related to legacy shadowDomShim field
2728
+ cmpMeta.$flags$ & (4 /* hasSlotRelocation */ | 8 /* needsShadowDomShim */)) {
2729
+ setContentReference(elm);
2730
+ }
2731
+ }
2732
+ {
2733
+ let ancestorComponent = elm;
2734
+ while (ancestorComponent = ancestorComponent.parentNode || ancestorComponent.host) {
2735
+ if (ancestorComponent["s-p"]) {
2736
+ attachToAncestor(hostRef, hostRef.$ancestorComponent$ = ancestorComponent);
2737
+ break;
2738
+ }
2739
+ }
2740
+ }
2741
+ if (cmpMeta.$members$) {
2742
+ Object.entries(cmpMeta.$members$).map(([memberName, [memberFlags]]) => {
2743
+ if (memberFlags & 31 /* Prop */ && elm.hasOwnProperty(memberName)) {
2744
+ const value = elm[memberName];
2745
+ delete elm[memberName];
2746
+ elm[memberName] = value;
2747
+ }
2748
+ });
2749
+ }
2750
+ {
2751
+ nextTick(() => initializeComponent(elm, hostRef, cmpMeta));
2752
+ }
2753
+ } else {
2754
+ addHostEventListeners(elm, hostRef, cmpMeta.$listeners$);
2755
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2756
+ fireConnectedCallback(hostRef.$lazyInstance$, elm);
2757
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2758
+ hostRef.$onReadyPromise$.then(() => fireConnectedCallback(hostRef.$lazyInstance$, elm));
2759
+ }
2760
+ }
2761
+ endConnected();
2762
+ }
2763
+ };
2764
+ var setContentReference = (elm) => {
2765
+ if (!win.document) {
2766
+ return;
2767
+ }
2768
+ const contentRefElm = elm["s-cr"] = win.document.createComment(
2769
+ ""
2770
+ );
2771
+ contentRefElm["s-cn"] = true;
2772
+ insertBefore(elm, contentRefElm, elm.firstChild);
2773
+ };
2774
+ var disconnectInstance = (instance, elm) => {
2775
+ {
2776
+ safeCall(instance, "disconnectedCallback", void 0, elm || instance);
2777
+ }
2778
+ };
2779
+ var disconnectedCallback = async (elm) => {
2780
+ if ((plt.$flags$ & 1 /* isTmpDisconnected */) === 0) {
2781
+ const hostRef = getHostRef(elm);
2782
+ {
2783
+ if (hostRef.$rmListeners$) {
2784
+ hostRef.$rmListeners$.map((rmListener) => rmListener());
2785
+ hostRef.$rmListeners$ = void 0;
2786
+ }
2787
+ }
2788
+ if (hostRef == null ? void 0 : hostRef.$lazyInstance$) {
2789
+ disconnectInstance(hostRef.$lazyInstance$, elm);
2790
+ } else if (hostRef == null ? void 0 : hostRef.$onReadyPromise$) {
2791
+ hostRef.$onReadyPromise$.then(() => disconnectInstance(hostRef.$lazyInstance$, elm));
2792
+ }
2793
+ }
2794
+ if (rootAppliedStyles.has(elm)) {
2795
+ rootAppliedStyles.delete(elm);
2796
+ }
2797
+ if (elm.shadowRoot && rootAppliedStyles.has(elm.shadowRoot)) {
2798
+ rootAppliedStyles.delete(elm.shadowRoot);
2799
+ }
2800
+ };
2801
+
2802
+ // src/runtime/bootstrap-lazy.ts
2803
+ var bootstrapLazy = (lazyBundles, options = {}) => {
2804
+ var _a;
2805
+ if (!win.document) {
2806
+ console.warn("Stencil: No document found. Skipping bootstrapping lazy components.");
2807
+ return;
2808
+ }
2809
+ const endBootstrap = createTime();
2810
+ const cmpTags = [];
2811
+ const exclude = options.exclude || [];
2812
+ const customElements2 = win.customElements;
2813
+ const head = win.document.head;
2814
+ const metaCharset = /* @__PURE__ */ head.querySelector("meta[charset]");
2815
+ const dataStyles = /* @__PURE__ */ win.document.createElement("style");
2816
+ const deferredConnectedCallbacks = [];
2817
+ let appLoadFallback;
2818
+ let isBootstrapping = true;
2819
+ Object.assign(plt, options);
2820
+ plt.$resourcesUrl$ = new URL(options.resourcesUrl || "./", win.document.baseURI).href;
2821
+ let hasSlotRelocation = false;
2822
+ lazyBundles.map((lazyBundle) => {
2823
+ lazyBundle[1].map((compactMeta) => {
2824
+ var _a2;
2825
+ const cmpMeta = {
2826
+ $flags$: compactMeta[0],
2827
+ $tagName$: compactMeta[1],
2828
+ $members$: compactMeta[2],
2829
+ $listeners$: compactMeta[3]
2830
+ };
2831
+ if (cmpMeta.$flags$ & 4 /* hasSlotRelocation */) {
2832
+ hasSlotRelocation = true;
2833
+ }
2834
+ {
2835
+ cmpMeta.$members$ = compactMeta[2];
2836
+ }
2837
+ {
2838
+ cmpMeta.$listeners$ = compactMeta[3];
2839
+ }
2840
+ {
2841
+ cmpMeta.$attrsToReflect$ = [];
2842
+ }
2843
+ {
2844
+ cmpMeta.$watchers$ = (_a2 = compactMeta[4]) != null ? _a2 : {};
2845
+ }
2846
+ const tagName = cmpMeta.$tagName$;
2847
+ const HostElement = class extends HTMLElement {
2848
+ // StencilLazyHost
2849
+ constructor(self) {
2850
+ super(self);
2851
+ this.hasRegisteredEventListeners = false;
2852
+ self = this;
2853
+ registerHost(self, cmpMeta);
2854
+ if (cmpMeta.$flags$ & 1 /* shadowDomEncapsulation */) {
2855
+ {
2856
+ if (!self.shadowRoot) {
2857
+ createShadowRoot.call(self, cmpMeta);
2858
+ } else {
2859
+ if (self.shadowRoot.mode !== "open") {
2860
+ throw new Error(
2861
+ `Unable to re-use existing shadow root for ${cmpMeta.$tagName$}! Mode is set to ${self.shadowRoot.mode} but Stencil only supports open shadow roots.`
2862
+ );
2863
+ }
2864
+ }
2865
+ }
2866
+ }
2867
+ }
2868
+ connectedCallback() {
2869
+ const hostRef = getHostRef(this);
2870
+ if (!this.hasRegisteredEventListeners) {
2871
+ this.hasRegisteredEventListeners = true;
2872
+ addHostEventListeners(this, hostRef, cmpMeta.$listeners$);
2873
+ }
2874
+ if (appLoadFallback) {
2875
+ clearTimeout(appLoadFallback);
2876
+ appLoadFallback = null;
2877
+ }
2878
+ if (isBootstrapping) {
2879
+ deferredConnectedCallbacks.push(this);
2880
+ } else {
2881
+ plt.jmp(() => connectedCallback(this));
2882
+ }
2883
+ }
2884
+ disconnectedCallback() {
2885
+ plt.jmp(() => disconnectedCallback(this));
2886
+ plt.raf(() => {
2887
+ var _a3;
2888
+ const hostRef = getHostRef(this);
2889
+ const i2 = deferredConnectedCallbacks.findIndex((host) => host === this);
2890
+ if (i2 > -1) {
2891
+ deferredConnectedCallbacks.splice(i2, 1);
2892
+ }
2893
+ if (((_a3 = hostRef == null ? void 0 : hostRef.$vnode$) == null ? void 0 : _a3.$elm$) instanceof Node && !hostRef.$vnode$.$elm$.isConnected) {
2894
+ delete hostRef.$vnode$.$elm$;
2895
+ }
2896
+ });
2897
+ }
2898
+ componentOnReady() {
2899
+ return getHostRef(this).$onReadyPromise$;
2900
+ }
2901
+ };
2902
+ cmpMeta.$lazyBundleId$ = lazyBundle[0];
2903
+ if (!exclude.includes(tagName) && !customElements2.get(tagName)) {
2904
+ cmpTags.push(tagName);
2905
+ customElements2.define(
2906
+ tagName,
2907
+ proxyComponent(HostElement, cmpMeta, 1 /* isElementConstructor */)
2908
+ );
2909
+ }
2910
+ });
2911
+ });
2912
+ if (cmpTags.length > 0) {
2913
+ if (hasSlotRelocation) {
2914
+ dataStyles.textContent += SLOT_FB_CSS;
2915
+ }
2916
+ {
2917
+ dataStyles.textContent += cmpTags.sort() + HYDRATED_CSS;
2918
+ }
2919
+ if (dataStyles.innerHTML.length) {
2920
+ dataStyles.setAttribute("data-styles", "");
2921
+ const nonce = (_a = plt.$nonce$) != null ? _a : queryNonceMetaTagContent(win.document);
2922
+ if (nonce != null) {
2923
+ dataStyles.setAttribute("nonce", nonce);
2924
+ }
2925
+ head.insertBefore(dataStyles, metaCharset ? metaCharset.nextSibling : head.firstChild);
2926
+ }
2927
+ }
2928
+ isBootstrapping = false;
2929
+ if (deferredConnectedCallbacks.length) {
2930
+ deferredConnectedCallbacks.map((host) => host.connectedCallback());
2931
+ } else {
2932
+ {
2933
+ plt.jmp(() => appLoadFallback = setTimeout(appDidLoad, 30));
2934
+ }
2935
+ }
2936
+ endBootstrap();
2937
+ };
2938
+ var addHostEventListeners = (elm, hostRef, listeners, attachParentListeners) => {
2939
+ if (listeners && win.document) {
2940
+ listeners.map(([flags, name, method]) => {
2941
+ const target = getHostListenerTarget(win.document, elm, flags) ;
2942
+ const handler = hostListenerProxy(hostRef, method);
2943
+ const opts = hostListenerOpts(flags);
2944
+ plt.ael(target, name, handler, opts);
2945
+ (hostRef.$rmListeners$ = hostRef.$rmListeners$ || []).push(() => plt.rel(target, name, handler, opts));
2946
+ });
2947
+ }
2948
+ };
2949
+ var hostListenerProxy = (hostRef, methodName) => (ev) => {
2950
+ var _a;
2951
+ try {
2952
+ {
2953
+ if (hostRef.$flags$ & 256 /* isListenReady */) {
2954
+ (_a = hostRef.$lazyInstance$) == null ? void 0 : _a[methodName](ev);
2955
+ } else {
2956
+ (hostRef.$queuedListeners$ = hostRef.$queuedListeners$ || []).push([methodName, ev]);
2957
+ }
2958
+ }
2959
+ } catch (e) {
2960
+ consoleError(e, hostRef.$hostElement$);
2961
+ }
2962
+ };
2963
+ var getHostListenerTarget = (doc, elm, flags) => {
2964
+ if (flags & 4 /* TargetDocument */) {
2965
+ return doc;
2966
+ }
2967
+ if (flags & 8 /* TargetWindow */) {
2968
+ return win;
2969
+ }
2970
+ return elm;
2971
+ };
2972
+ var hostListenerOpts = (flags) => supportsListenerOptions ? {
2973
+ passive: (flags & 1 /* Passive */) !== 0,
2974
+ capture: (flags & 2 /* Capture */) !== 0
2975
+ } : (flags & 2 /* Capture */) !== 0;
2976
+
2977
+ // src/runtime/nonce.ts
2978
+ var setNonce = (nonce) => plt.$nonce$ = nonce;
2979
+
2980
+ export { detachComponentFromConfig as $, waitForComponent as A, waitForDesignSystem as B, waitOnLoadEventCallback as C, BalSnackbarController as D, balSnackbarController as E, BalToastController as F, balToastController as G, registerInstance as H, debounce as I, rIC as J, rOnLoad as K, Logger as L, h as M, Host as N, getElement as O, createEvent as P, raf as Q, addEventListener as R, removeEventListener as S, debounceEvent as T, defaultLocale as U, writeTask as V, transitionEndAsync as W, hasParent as X, isChildOfEventTarget as Y, hasTagName as Z, attachComponentToConfig as _, balBrowser as a, bootstrapLazy as b, getAppRoot as c, componentOnReady as d, attachToConfig as e, defaultConfig as f, globalScripts as g, detachFromConfig as h, setupConfig as i, updateBalAnimated as j, updateBalIcons as k, updateBalLanguage as l, updateBalRegion as m, useBalConfig as n, onBalConfigChange as o, promiseResolve as p, initializeBaloiseDesignSystem as q, deepReady as r, setNonce as s, isDescendant as t, updateBalAllowedLanguages as u, shallowReady as v, wait as w, waitAfterFramePaint as x, waitAfterIdleCallback as y, waitAfterLargestContentfulPaintCallback as z };