@baloise/ds-core 19.1.0 → 19.2.0-nightly.20250623

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 (268) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/bal-app.js +1 -93
  4. package/components/bal-app2.js +95 -0
  5. package/components/bal-carousel-item.js +23 -2
  6. package/components/bal-doc-app.d.ts +11 -0
  7. package/components/bal-doc-app.js +262 -0
  8. package/components/bal-icon2.js +1 -1350
  9. package/components/bal-input.js +20 -2
  10. package/components/bal-list-item-accordion-body2.js +6 -4
  11. package/components/bal-list-item-accordion-head2.js +10 -5
  12. package/components/bal-list-item2.js +4 -2
  13. package/components/bal-nav-menu-flyout2.js +10 -3
  14. package/components/bal-nav-meta-bar2.js +4 -2
  15. package/components/bal-nav.js +155 -33
  16. package/components/bal-popup2.js +5 -10
  17. package/components/bal-radio-group.js +1 -0
  18. package/components/bal-steps.js +1 -1
  19. package/components/bal-tab-item.js +4 -2
  20. package/components/bal-tabs2.js +4 -1
  21. package/components/focus-visible.js +1 -2
  22. package/components/index.js +7 -314
  23. package/components/initialize.js +312 -0
  24. package/components/overlays.js +2 -2
  25. package/components/purify.js +1353 -0
  26. package/components/tokens.esm.js +1 -1
  27. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  28. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  29. package/dist/baloise-design-system/index.esm.js +1 -1
  30. package/dist/baloise-design-system/{p-42b2e62411.system.entry.js → p-00dc0f84cc.system.entry.js} +1 -1
  31. package/dist/baloise-design-system/{p-14c507db.system.js → p-01493e9f.system.js} +1 -1
  32. package/dist/baloise-design-system/{p-68d7e929.system.js → p-02d76532.system.js} +1 -1
  33. package/dist/baloise-design-system/p-0c381481f3.system.entry.js +1 -0
  34. package/dist/baloise-design-system/p-12ec7e6d69.system.entry.js +1 -0
  35. package/dist/baloise-design-system/{p-df9bc850dc.system.entry.js → p-12f7a6a381.system.entry.js} +1 -1
  36. package/dist/baloise-design-system/p-16395ece.system.js +1 -0
  37. package/dist/baloise-design-system/{p-1e0a2263fb.entry.js → p-191cb463ef.entry.js} +1 -1
  38. package/dist/baloise-design-system/p-1e142b10.system.js +1 -0
  39. package/dist/baloise-design-system/p-24fe64c5.js +1 -0
  40. package/dist/baloise-design-system/p-294f38c2.js +1 -0
  41. package/dist/baloise-design-system/{p-290dfd0212.system.entry.js → p-31baba8382.system.entry.js} +1 -1
  42. package/dist/baloise-design-system/{p-8a9fb4619a.entry.js → p-32db85222c.entry.js} +1 -1
  43. package/dist/baloise-design-system/p-343cc097d4.entry.js +1 -0
  44. package/dist/baloise-design-system/p-3913c6ae.js +1 -1
  45. package/dist/baloise-design-system/{p-47eaccc384.system.entry.js → p-42238a1e1a.system.entry.js} +1 -1
  46. package/dist/baloise-design-system/p-42e66219.system.js +1 -0
  47. package/dist/baloise-design-system/p-47f0669a.js +1 -0
  48. package/dist/baloise-design-system/{p-7467605b28.entry.js → p-4b3b969747.entry.js} +1 -1
  49. package/dist/baloise-design-system/p-55591d77a6.entry.js +1 -0
  50. package/dist/baloise-design-system/p-56376785c2.entry.js +1 -0
  51. package/dist/baloise-design-system/{p-ac25ede4f4.entry.js → p-5638fe223b.entry.js} +1 -1
  52. package/dist/baloise-design-system/p-58e51d6a.js +1 -0
  53. package/dist/baloise-design-system/{p-63297f8b3b.system.entry.js → p-5b20afcac4.system.entry.js} +1 -1
  54. package/dist/baloise-design-system/p-5d80cd4f25.system.entry.js +1 -0
  55. package/dist/baloise-design-system/{p-b96e5a6c.js → p-5dc505fc.js} +1 -1
  56. package/dist/baloise-design-system/{p-390b2af6a5.system.entry.js → p-6149950bb1.system.entry.js} +1 -1
  57. package/dist/baloise-design-system/p-659ecadc.system.js +1 -1
  58. package/dist/baloise-design-system/p-65d4a9afab.entry.js +1 -0
  59. package/dist/baloise-design-system/{p-83d19315e3.entry.js → p-6700e35d71.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-363a7f7760.entry.js → p-673d489362.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-022af4f2.js → p-6b284c70.js} +1 -1
  62. package/dist/baloise-design-system/p-6bb4e22ace.system.entry.js +1 -0
  63. package/dist/baloise-design-system/{p-16ebe71517.entry.js → p-72a1dc6052.entry.js} +1 -1
  64. package/dist/baloise-design-system/p-7625d0abde.system.entry.js +1 -0
  65. package/dist/baloise-design-system/{p-702abad387.entry.js → p-7db52d587f.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-456114b8.system.js → p-83512f21.system.js} +1 -1
  67. package/dist/baloise-design-system/{p-8bd42bba68.entry.js → p-84a5fe83b0.entry.js} +1 -1
  68. package/dist/baloise-design-system/{p-24336e0fca.system.entry.js → p-8ebf048b7b.system.entry.js} +1 -1
  69. package/dist/baloise-design-system/p-96301206d3.system.entry.js +1 -0
  70. package/dist/baloise-design-system/{p-32bf71aa6c.entry.js → p-9b355b09ba.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-b9a4f3580b.entry.js → p-9c3f458e6c.entry.js} +1 -1
  72. package/dist/baloise-design-system/{p-99c12a1d83.system.entry.js → p-9df176a81a.system.entry.js} +1 -1
  73. package/dist/baloise-design-system/{p-e43b61e151.system.entry.js → p-a19a336dda.system.entry.js} +1 -1
  74. package/dist/baloise-design-system/p-a35a951800.entry.js +1 -0
  75. package/dist/baloise-design-system/p-a397da94.system.js +1 -0
  76. package/dist/baloise-design-system/p-a86c09c64f.system.entry.js +1 -0
  77. package/dist/baloise-design-system/{p-13ea819488.entry.js → p-ac238676b6.entry.js} +1 -1
  78. package/dist/baloise-design-system/{p-e453a2de.system.js → p-ad89304c.system.js} +1 -1
  79. package/dist/baloise-design-system/p-ade92c8b.js +2 -0
  80. package/dist/baloise-design-system/p-b3a9499f8e.entry.js +1 -0
  81. package/dist/baloise-design-system/p-b94e6946fc.entry.js +1 -0
  82. package/dist/baloise-design-system/{p-2367556371.system.entry.js → p-b9b086adc8.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-c89750c825.system.entry.js → p-ba30929ac8.system.entry.js} +1 -1
  84. package/dist/baloise-design-system/p-d0cee779.system.js +2 -0
  85. package/dist/baloise-design-system/{p-9d3935fbbc.entry.js → p-d18794e22b.entry.js} +1 -1
  86. package/dist/baloise-design-system/p-d4e5093b.js +1 -0
  87. package/dist/baloise-design-system/{p-35fde87c2a.system.entry.js → p-dfd6d34303.system.entry.js} +1 -1
  88. package/dist/baloise-design-system/p-e2c982954d.entry.js +1 -0
  89. package/dist/baloise-design-system/{p-39c2321045.system.entry.js → p-e3fb1f185f.system.entry.js} +1 -1
  90. package/dist/baloise-design-system/{p-490383ab.system.js → p-eaec547b.system.js} +1 -1
  91. package/dist/baloise-design-system/{p-131fd635ef.entry.js → p-f0506e5102.entry.js} +1 -1
  92. package/dist/baloise-design-system/{p-c5ac7b5d30.system.entry.js → p-f2784fb721.system.entry.js} +1 -1
  93. package/dist/baloise-design-system/p-f3c6e132ea.system.entry.js +1 -0
  94. package/dist/cjs/app-globals-f63c33e7.js +7 -0
  95. package/dist/cjs/bal-app.cjs.entry.js +1 -1
  96. package/dist/cjs/bal-carousel_2.cjs.entry.js +23 -5
  97. package/dist/cjs/bal-checkbox_2.cjs.entry.js +1 -1
  98. package/dist/cjs/bal-date.cjs.entry.js +1 -1
  99. package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
  100. package/dist/cjs/bal-dropdown.cjs.entry.js +1 -1
  101. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  102. package/dist/cjs/bal-icon.cjs.entry.js +2 -1351
  103. package/dist/cjs/bal-input.cjs.entry.js +20 -2
  104. package/dist/cjs/bal-list_8.cjs.entry.js +21 -12
  105. package/dist/cjs/bal-logo.cjs.entry.js +3 -3
  106. package/dist/cjs/bal-modal_3.cjs.entry.js +1 -1
  107. package/dist/cjs/bal-nav_8.cjs.entry.js +167 -38
  108. package/dist/cjs/bal-navbar_5.cjs.entry.js +3 -3
  109. package/dist/cjs/bal-pagination.cjs.entry.js +3 -3
  110. package/dist/cjs/bal-popup.cjs.entry.js +5 -10
  111. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  112. package/dist/cjs/bal-radio_2.cjs.entry.js +2 -1
  113. package/dist/cjs/bal-segment_2.cjs.entry.js +5 -5
  114. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  115. package/dist/cjs/bal-steps.cjs.entry.js +4 -4
  116. package/dist/cjs/bal-tab-item_2.cjs.entry.js +11 -6
  117. package/dist/cjs/baloise-design-system.cjs.js +3 -2
  118. package/dist/cjs/{breakpoints.decorator-5086ec90.js → breakpoints.decorator-266b25a2.js} +1 -1
  119. package/dist/cjs/{breakpoints.subject-a1180187.js → breakpoints.subject-03f75770.js} +1 -1
  120. package/dist/cjs/{focus-visible-264bd9b8.js → focus-visible-a434c91f.js} +0 -2
  121. package/dist/cjs/{app-globals-0d8db19e.js → global-2a76769b.js} +2 -4
  122. package/dist/cjs/index.cjs.js +3 -3
  123. package/dist/cjs/initialize-2e8978a4.js +1 -1
  124. package/dist/cjs/loader.cjs.js +3 -2
  125. package/dist/cjs/{overlays-47b231bc.js → overlays-94ebb271.js} +2 -2
  126. package/dist/cjs/purify-b01229e2.js +1355 -0
  127. package/dist/cjs/{tokens.esm-263be70d.js → tokens.esm-c3cc508d.js} +1 -1
  128. package/dist/cjs/{window-resize.decorator-9a06680f.js → window-resize.decorator-9494cf0b.js} +1 -1
  129. package/dist/collection/collection-manifest.json +2 -1
  130. package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +44 -3
  131. package/dist/collection/components/bal-input/bal-input-util.js +1 -0
  132. package/dist/collection/components/bal-input/bal-input.js +22 -5
  133. package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +4 -2
  134. package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +7 -5
  135. package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +13 -8
  136. package/dist/collection/components/bal-nav/bal-nav-focus.util.js +87 -0
  137. package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +40 -2
  138. package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.css +1 -1
  139. package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +22 -1
  140. package/dist/collection/components/bal-nav/bal-nav.css +1 -1
  141. package/dist/collection/components/bal-nav/bal-nav.js +43 -8
  142. package/dist/collection/components/bal-nav/models/bal-nav-menu-link-item.js +6 -5
  143. package/dist/collection/components/bal-popup/bal-popup.js +8 -13
  144. package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +1 -0
  145. package/dist/collection/components/bal-steps/bal-steps.css +1 -1
  146. package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +23 -2
  147. package/dist/collection/components/bal-tabs/components/tab-button.js +6 -3
  148. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  149. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
  150. package/dist/collection/utils/constants/version.constant.js +1 -1
  151. package/dist/collection/utils/overlays/focus-trap.js +2 -2
  152. package/dist/esm/app-globals-1ecf000f.js +5 -0
  153. package/dist/esm/bal-app.entry.js +1 -1
  154. package/dist/esm/bal-carousel_2.entry.js +23 -5
  155. package/dist/esm/bal-checkbox_2.entry.js +1 -1
  156. package/dist/esm/bal-date.entry.js +1 -1
  157. package/dist/esm/bal-doc-app.entry.js +229 -0
  158. package/dist/esm/bal-dropdown.entry.js +1 -1
  159. package/dist/esm/bal-hint_5.entry.js +3 -3
  160. package/dist/esm/bal-icon.entry.js +1 -1350
  161. package/dist/esm/bal-input.entry.js +20 -2
  162. package/dist/esm/bal-list_8.entry.js +22 -13
  163. package/dist/esm/bal-logo.entry.js +3 -3
  164. package/dist/esm/bal-modal_3.entry.js +1 -1
  165. package/dist/esm/bal-nav_8.entry.js +168 -39
  166. package/dist/esm/bal-navbar_5.entry.js +3 -3
  167. package/dist/esm/bal-pagination.entry.js +3 -3
  168. package/dist/esm/bal-popup.entry.js +5 -10
  169. package/dist/esm/bal-progress-bar.entry.js +4 -4
  170. package/dist/esm/bal-radio_2.entry.js +2 -1
  171. package/dist/esm/bal-segment_2.entry.js +5 -5
  172. package/dist/esm/bal-shape.entry.js +1 -1
  173. package/dist/esm/bal-steps.entry.js +4 -4
  174. package/dist/esm/bal-tab-item_2.entry.js +11 -6
  175. package/dist/esm/baloise-design-system.js +3 -2
  176. package/dist/esm/{breakpoints.decorator-3666716a.js → breakpoints.decorator-ecda98cb.js} +1 -1
  177. package/dist/esm/{breakpoints.subject-1aa7be9a.js → breakpoints.subject-2897cae5.js} +1 -1
  178. package/dist/esm/{focus-visible-f0cdd043.js → focus-visible-c1d6b5b8.js} +1 -2
  179. package/dist/esm/{app-globals-5dd5fe6b.js → global-6e86728b.js} +2 -4
  180. package/dist/esm/index.js +4 -4
  181. package/dist/esm/initialize-be160cc4.js +1 -1
  182. package/dist/esm/loader.js +3 -2
  183. package/dist/esm/{overlays-4cc504b6.js → overlays-3f81f45d.js} +2 -2
  184. package/dist/esm/purify-8cb49f16.js +1353 -0
  185. package/dist/esm/{tokens.esm-a3abda33.js → tokens.esm-17500c90.js} +1 -1
  186. package/dist/esm/{window-resize.decorator-ef52bf33.js → window-resize.decorator-b914e5b9.js} +1 -1
  187. package/dist/esm-es5/app-globals-1ecf000f.js +1 -0
  188. package/dist/esm-es5/bal-app.entry.js +1 -1
  189. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  190. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  191. package/dist/esm-es5/bal-date.entry.js +1 -1
  192. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  193. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  194. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  195. package/dist/esm-es5/bal-icon.entry.js +1 -2
  196. package/dist/esm-es5/bal-input.entry.js +1 -1
  197. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  198. package/dist/esm-es5/bal-logo.entry.js +1 -1
  199. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  200. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  201. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  202. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  203. package/dist/esm-es5/bal-popup.entry.js +1 -1
  204. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  205. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  206. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  207. package/dist/esm-es5/bal-shape.entry.js +1 -1
  208. package/dist/esm-es5/bal-steps.entry.js +1 -1
  209. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  210. package/dist/esm-es5/baloise-design-system.js +1 -1
  211. package/dist/esm-es5/breakpoints.decorator-ecda98cb.js +1 -0
  212. package/dist/esm-es5/{breakpoints.subject-1aa7be9a.js → breakpoints.subject-2897cae5.js} +1 -1
  213. package/dist/esm-es5/focus-visible-c1d6b5b8.js +1 -0
  214. package/dist/esm-es5/global-6e86728b.js +1 -0
  215. package/dist/esm-es5/index.js +1 -1
  216. package/dist/esm-es5/initialize-be160cc4.js +1 -1
  217. package/dist/esm-es5/loader.js +1 -1
  218. package/dist/esm-es5/overlays-3f81f45d.js +1 -0
  219. package/dist/esm-es5/purify-8cb49f16.js +2 -0
  220. package/dist/esm-es5/{window-resize.decorator-ef52bf33.js → window-resize.decorator-b914e5b9.js} +1 -1
  221. package/dist/html.html-data.json +12 -1
  222. package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +8 -0
  223. package/dist/types/components/bal-input/bal-input-util.d.ts +1 -0
  224. package/dist/types/components/bal-input/bal-input.d.ts +1 -0
  225. package/dist/types/components/bal-input/bal-input.interfaces.d.ts +1 -1
  226. package/dist/types/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.d.ts +1 -1
  227. package/dist/types/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.d.ts +3 -2
  228. package/dist/types/components/bal-nav/bal-nav-focus.util.d.ts +33 -0
  229. package/dist/types/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.d.ts +6 -1
  230. package/dist/types/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.d.ts +4 -0
  231. package/dist/types/components/bal-nav/bal-nav.interfaces.d.ts +7 -1
  232. package/dist/types/components/bal-nav/models/bal-nav-menu-link-item.d.ts +1 -0
  233. package/dist/types/components/bal-popup/bal-popup.d.ts +1 -1
  234. package/dist/types/components/bal-tabs/bal-tab-item/bal-tab-item.d.ts +5 -0
  235. package/dist/types/components/bal-tabs/bal-tab.type.d.ts +1 -0
  236. package/dist/types/components/bal-tabs/bal-tabs.interfaces.d.ts +2 -0
  237. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  238. package/dist/types/components.d.ts +79 -2
  239. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  240. package/package.json +6 -6
  241. package/dist/baloise-design-system/p-002d7bb9.js +0 -1
  242. package/dist/baloise-design-system/p-0f8973edc6.entry.js +0 -1
  243. package/dist/baloise-design-system/p-130b37bc.js +0 -1
  244. package/dist/baloise-design-system/p-1693fa7649.system.entry.js +0 -1
  245. package/dist/baloise-design-system/p-2fffe828ac.system.entry.js +0 -1
  246. package/dist/baloise-design-system/p-345aa92d.system.js +0 -1
  247. package/dist/baloise-design-system/p-53b2b718c5.entry.js +0 -1
  248. package/dist/baloise-design-system/p-58b1d6fa96.system.entry.js +0 -1
  249. package/dist/baloise-design-system/p-64916e34a4.entry.js +0 -1
  250. package/dist/baloise-design-system/p-967bdfab.js +0 -1
  251. package/dist/baloise-design-system/p-98cf514345.system.entry.js +0 -1
  252. package/dist/baloise-design-system/p-aa16fc7aa2.system.entry.js +0 -2
  253. package/dist/baloise-design-system/p-b52ad8d5.system.js +0 -1
  254. package/dist/baloise-design-system/p-c2f253d9fd.entry.js +0 -2
  255. package/dist/baloise-design-system/p-c917a3bc.system.js +0 -1
  256. package/dist/baloise-design-system/p-ca119357.js +0 -1
  257. package/dist/baloise-design-system/p-d09026edb1.system.entry.js +0 -1
  258. package/dist/baloise-design-system/p-dd2a76bd7c.system.entry.js +0 -1
  259. package/dist/baloise-design-system/p-f04cab5af1.entry.js +0 -1
  260. package/dist/baloise-design-system/p-f2cc4e63d4.entry.js +0 -1
  261. package/dist/baloise-design-system/p-f6b1d87619.entry.js +0 -1
  262. package/dist/esm-es5/app-globals-5dd5fe6b.js +0 -1
  263. package/dist/esm-es5/breakpoints.decorator-3666716a.js +0 -1
  264. package/dist/esm-es5/focus-visible-f0cdd043.js +0 -1
  265. package/dist/esm-es5/overlays-4cc504b6.js +0 -1
  266. /package/dist/baloise-design-system/{p-bccc3d48.system.js → p-d3480bd3.system.js} +0 -0
  267. /package/dist/baloise-design-system/{p-928bbc47.js → p-f9808768.js} +0 -0
  268. /package/dist/esm-es5/{tokens.esm-a3abda33.js → tokens.esm-17500c90.js} +0 -0
@@ -1 +1 @@
1
- import{r,h as a,H as e,g as o}from"./p-2ccbe55a.js";import{_ as s,a as b}from"./p-43c9f5e9.js";import{B as l}from"./p-ae86d0a0.js";import{o as n}from"./p-a255c9b3.js";import{b as i}from"./p-967bdfab.js";import{L as t}from"./p-022af4f2.js";import{L as g}from"./p-b96e5a6c.js";import"./p-a65354df.js";import"./p-a7be57b6.js";import"./p-96216bd1.js";import"./p-acf222fd.js";import"./p-928bbc47.js";const p=class{constructor(a){r(this,a),this.animated=!0,this.isTouch=i.isTouch,this.value=0,this.background="white",this.color="primary"}componentDidRender(){this.updateProgress()}breakpointListener(r){this.updateProgress()}windowResizeListener(){this.updateProgress()}async configChanged(r){this.animated=r.animated}updateProgress(){this.lineEl&&n((()=>{const r=this.el.clientWidth,a=Math.max(0,Math.min(100,this.value));this.lineEl.style.width=r/100*a+"px",100===a?this.lineEl.classList.add("bal-progress-bar__line--full"):this.lineEl.classList.remove("bal-progress-bar__line--full")}))}render(){const r=l.block("progress-bar"),o=r.element("line");return a(e,{key:"d024ab4ad15f9a04b2db9b5923785cc9eecbae74","aria-hidden":"true",class:Object.assign(Object.assign({},r.class()),r.modifier(`background-${this.background}-of-${this.color}`).class())},a("div",{key:"8ed29c4d19bc1e5e57990b5c91d95134a7fc482d",class:Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(`color-${this.color}`).class()),o.modifier("animated").class(this.animated)),ref:r=>this.lineEl=r}))}get el(){return o(this)}};s([t(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],p.prototype,"breakpointListener",null),s([g(),b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",void 0)],p.prototype,"windowResizeListener",null),p.style=":root{--bal-progress-bar-background-white:var(--bal-color-white);--bal-progress-bar-background-grey:var(--bal-color-grey-3);--bal-progress-bar-background-purple:var(--bal-color-purple-2);--bal-progress-bar-background-yellow:var(--bal-color-yellow-2);--bal-progress-bar-background-red:var(--bal-color-red-2);--bal-progress-bar-background-green:var(--bal-color-green-2);--bal-progress-bar-line-color-primary:var(--bal-color-primary);--bal-progress-bar-line-color-purple:var(--bal-color-purple-6);--bal-progress-bar-line-color-yellow:var(--bal-color-yellow-6);--bal-progress-bar-line-color-red:var(--bal-color-red-6);--bal-progress-bar-line-color-green:var(--bal-color-green-6);--bal-progress-bar-line-radius:var(--bal-radius-rounded)}.bal-progress-bar{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;min-width:0;height:.25rem}.bal-progress-bar--background-white-of-primary,.bal-progress-bar--background-white-of-purple,.bal-progress-bar--background-white-of-red,.bal-progress-bar--background-white-of-green,.bal-progress-bar--background-white-of-yellow{background:var(--bal-progress-bar-background-white)}.bal-progress-bar--background-grey-of-primary{background:var(--bal-progress-bar-background-grey)}.bal-progress-bar--background-grey-of-purple{background:var(--bal-progress-bar-background-purple)}.bal-progress-bar--background-grey-of-red{background:var(--bal-progress-bar-background-red)}.bal-progress-bar--background-grey-of-green{background:var(--bal-progress-bar-background-green)}.bal-progress-bar--background-grey-of-yellow{background:var(--bal-progress-bar-background-yellow)}.bal-progress-bar__line{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;height:.25rem;width:0;background:var(--bal-progress-bar-line-color-primary);border-top-right-radius:var(--bal-progress-bar-line-radius);border-bottom-right-radius:var(--bal-progress-bar-line-radius)}.bal-progress-bar__line--animated{will-change:width;-webkit-transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-progress-bar__line--full{border-top-right-radius:0;border-bottom-right-radius:0}.bal-progress-bar__line--color-purple{background:var(--bal-progress-bar-line-color-purple)}.bal-progress-bar__line--color-yellow{background:var(--bal-progress-bar-line-color-yellow)}.bal-progress-bar__line--color-red{background:var(--bal-progress-bar-line-color-red)}.bal-progress-bar__line--color-green{background:var(--bal-progress-bar-line-color-green)}";export{p as bal_progress_bar}
1
+ import{r,h as a,H as e,g as o}from"./p-2ccbe55a.js";import{_ as s,a as b}from"./p-43c9f5e9.js";import{B as l}from"./p-ae86d0a0.js";import{o as n}from"./p-a255c9b3.js";import{b as i}from"./p-58e51d6a.js";import{L as t}from"./p-6b284c70.js";import{L as g}from"./p-5dc505fc.js";import"./p-a65354df.js";import"./p-a7be57b6.js";import"./p-96216bd1.js";import"./p-acf222fd.js";import"./p-f9808768.js";const p=class{constructor(a){r(this,a),this.animated=!0,this.isTouch=i.isTouch,this.value=0,this.background="white",this.color="primary"}componentDidRender(){this.updateProgress()}breakpointListener(r){this.updateProgress()}windowResizeListener(){this.updateProgress()}async configChanged(r){this.animated=r.animated}updateProgress(){this.lineEl&&n((()=>{const r=this.el.clientWidth,a=Math.max(0,Math.min(100,this.value));this.lineEl.style.width=r/100*a+"px",100===a?this.lineEl.classList.add("bal-progress-bar__line--full"):this.lineEl.classList.remove("bal-progress-bar__line--full")}))}render(){const r=l.block("progress-bar"),o=r.element("line");return a(e,{key:"d024ab4ad15f9a04b2db9b5923785cc9eecbae74","aria-hidden":"true",class:Object.assign(Object.assign({},r.class()),r.modifier(`background-${this.background}-of-${this.color}`).class())},a("div",{key:"8ed29c4d19bc1e5e57990b5c91d95134a7fc482d",class:Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(`color-${this.color}`).class()),o.modifier("animated").class(this.animated)),ref:r=>this.lineEl=r}))}get el(){return o(this)}};s([t(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],p.prototype,"breakpointListener",null),s([g(),b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",void 0)],p.prototype,"windowResizeListener",null),p.style=":root{--bal-progress-bar-background-white:var(--bal-color-white);--bal-progress-bar-background-grey:var(--bal-color-grey-3);--bal-progress-bar-background-purple:var(--bal-color-purple-2);--bal-progress-bar-background-yellow:var(--bal-color-yellow-2);--bal-progress-bar-background-red:var(--bal-color-red-2);--bal-progress-bar-background-green:var(--bal-color-green-2);--bal-progress-bar-line-color-primary:var(--bal-color-primary);--bal-progress-bar-line-color-purple:var(--bal-color-purple-6);--bal-progress-bar-line-color-yellow:var(--bal-color-yellow-6);--bal-progress-bar-line-color-red:var(--bal-color-red-6);--bal-progress-bar-line-color-green:var(--bal-color-green-6);--bal-progress-bar-line-radius:var(--bal-radius-rounded)}.bal-progress-bar{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;min-width:0;height:.25rem}.bal-progress-bar--background-white-of-primary,.bal-progress-bar--background-white-of-purple,.bal-progress-bar--background-white-of-red,.bal-progress-bar--background-white-of-green,.bal-progress-bar--background-white-of-yellow{background:var(--bal-progress-bar-background-white)}.bal-progress-bar--background-grey-of-primary{background:var(--bal-progress-bar-background-grey)}.bal-progress-bar--background-grey-of-purple{background:var(--bal-progress-bar-background-purple)}.bal-progress-bar--background-grey-of-red{background:var(--bal-progress-bar-background-red)}.bal-progress-bar--background-grey-of-green{background:var(--bal-progress-bar-background-green)}.bal-progress-bar--background-grey-of-yellow{background:var(--bal-progress-bar-background-yellow)}.bal-progress-bar__line{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;height:.25rem;width:0;background:var(--bal-progress-bar-line-color-primary);border-top-right-radius:var(--bal-progress-bar-line-radius);border-bottom-right-radius:var(--bal-progress-bar-line-radius)}.bal-progress-bar__line--animated{will-change:width;-webkit-transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-progress-bar__line--full{border-top-right-radius:0;border-bottom-right-radius:0}.bal-progress-bar__line--color-purple{background:var(--bal-progress-bar-line-color-purple)}.bal-progress-bar__line--color-yellow{background:var(--bal-progress-bar-line-color-yellow)}.bal-progress-bar__line--color-red{background:var(--bal-progress-bar-line-color-red)}.bal-progress-bar__line--color-green{background:var(--bal-progress-bar-line-color-green)}";export{p as bal_progress_bar}
@@ -1 +1 @@
1
- import{r as a,c as t,w as i,h as e,H as s,g as o}from"./p-2ccbe55a.js";import{p as l,d,e as n,F as r}from"./p-130b37bc.js";import{c as m,h as c,i as h}from"./p-a255c9b3.js";import{B as b}from"./p-b2f7e364.js";import{b as _}from"./p-a65354df.js";import"./p-a7be57b6.js";const p=a=>{const t={};return f(a).forEach((a=>t[a]=!0)),t},f=a=>void 0!==a?(Array.isArray(a)?a:a.split(" ")).filter((a=>null!=a)).map((a=>a.trim())).filter((a=>""!==a)):[],g=class{constructor(i){a(this,i),this.didPresent=t(this,"balModalDidPresent",7),this.willPresent=t(this,"balModalWillPresent",7),this.willDismiss=t(this,"balModalWillDismiss",7),this.didDismiss=t(this,"balModalDidDismiss",7),this.isClickedOutsideOnMouseDown=!1,this.isClickedOutsideOnMouseUp=!1,this.bodyScrollHandler=new b,this.presented=!1,this.overlayIndex=void 0,this.delegate=void 0,this.dataTestId=void 0,this.modalWidth=640,this.space="",this.hasBackdrop=!0,this.isClosable=!0,this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.focusTrap=!0,this.demo=!1}connectedCallback(){this.bodyScrollHandler.connect(),l(this),_.hasDocument&&this.demo&&this.open()}disconnectedCallback(){this.bodyScrollHandler.disconnect()}async open(){await c(this.usersElement),this.setModalActiveOnBody(),i((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.add("fadeIn"),this.modalContentElement&&this.modalContentElement.classList.add("fadeInDown")})),this.presented||(this.willPresent.emit(),this.presented=!0,await h(150),i((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.remove("fadeIn"),this.modalContentElement&&this.modalContentElement.classList.remove("fadeInDown")})),this.didPresent.emit())}async close(){this.willDismiss.emit(),this.unsetModalActiveOnBody(),this.presented=!1,this.didDismiss.emit()}async present(){if(this.setModalActiveOnBody(),this.presented)return;const a=this.el.querySelector(".bal-modal__content");if(!a)throw new Error("container is undefined");const t=Object.assign(Object.assign({},this.componentProps),{modal:this.el});this.usersElement=await(async(a,t,i,e,s)=>{if(a)return a.attachViewToDom(t,i,s,e);if("string"!=typeof i&&!(i instanceof HTMLElement))throw new Error("framework delegate is missing");const o="string"==typeof i?t.ownerDocument&&t.ownerDocument.createElement(i):i;return e&&e.forEach((a=>o.classList.add(a))),s&&Object.assign(o,s),t.appendChild(o),await new Promise((a=>m(o,a))),o})(this.delegate,a,this.component,[],t),await this.open()}async dismiss(a,t){if(this.unsetModalActiveOnBody(),void 0===this.delegate)return await this.close(),!0;const e=await d(this,a,t,(async()=>{i((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.add("fadeOut"),this.modalContentElement&&this.modalContentElement.classList.add("fadeOutUp")})),await h(140)}));return e&&await((a,t)=>{if(t){if(a)return a.removeViewFromDom(t.parentElement,t);t.remove()}return Promise.resolve()})(this.delegate,this.usersElement),e}onDidDismiss(){return n(this.el,"balModalDidDismiss")}onWillDismiss(){return n(this.el,"balModalWillDismiss")}async onClickCloseButton(a){if(this.isClosable&&this.presented&&a&&a.target){const t=a.target.closest("bal-button");t&&t.hasAttribute("modal-close")&&await this.dismiss(void 0,"model-close"),this.backdropDismiss&&this.isClickedOutsideOnMouseUp&&this.isClickedOutsideOnMouseDown&&await this.dismiss(void 0,"model-close")}}async onMouseDown(a){this.isClickedOutsideOnMouseDown=this.isClickedOutside(a)}async onMouseUp(a){this.isClickedOutsideOnMouseUp=this.isClickedOutside(a)}async handleKeyUp(a){const t=Array.from(document.querySelectorAll("bal-modal")).filter((a=>a.hasAttribute("aria-presented"))).map((a=>a.overlayIndex)).map((a=>parseInt(a))).filter((a=>!Number.isNaN(a))),i=Math.max(...t);this.overlayIndex===i&&(a.preventDefault(),a.stopPropagation(),this.presented&&this.isClosable&&("Escape"!==a.key&&"Esc"!==a.key||(this.delegate?await this.dismiss(void 0,"model-escape"):await this.close())))}setModalActiveOnBody(){this.demo||this.bodyScrollHandler.disable()}unsetModalActiveOnBody(){this.bodyScrollHandler.enable()}isClickedOutside(a){return!!(this.isClosable&&this.presented&&a&&a.target&&this.backdropDismiss)&&a.target.classList.contains("bal-modal__container")}render(){return e(s,{key:"1d9ab99326366d164adf6fbd5fc9d6af27a8ba58","aria-modal":"true","aria-presented":this.presented?"true":null,"data-testid":this.dataTestId,tabindex:"-1",class:Object.assign({"bal-modal":!0,"bal-modal--is-closable":this.isClosable,"bal-modal--is-active":this.presented,[r]:!1===this.focusTrap},p(this.cssClass)),style:{"--bal-width":`${this.modalWidth}px`}},e("div",{key:"057c4355168926825f04f51300478a1393b31563",class:{"bal-modal__background":!0,"is-hidden":!this.hasBackdrop},ref:a=>this.modalBackgroundElement=a}),e("div",{key:"ffa93ee6d43b8ded4a2851e4c2578fce427de8c2",class:{"bal-modal__container":!0},ref:a=>this.modalContainerElement=a},e("div",{key:"37ee9d19563be8e0a22b75d44b0cde5890342e1c",class:{"bal-modal__content":!0,[`bal-modal__content--has-spacing-${this.space}`]:!0},ref:a=>this.modalContentElement=a},e("slot",{key:"0bdfc5b5e268ec2ade1b70753cd64517fa635290"}))))}get el(){return o(this)}};g.style=".bal-modal,.bal-modal__background{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-modal-background:var(--bal-color-white);--bal-modal-backdrop-background:var(--bal-color-primary-6);--bal-modal-backdrop-opacity:.6;--bal-modal-radius:var(--bal-radius-large)}.bal-modal{-ms-flex-align:center;align-items:center;display:none;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden;position:fixed;z-index:var(--bal-z-index-modal)}.bal-modal--is-active{display:-ms-flexbox;display:flex}.bal-modal__background{background:var(--bal-modal-backdrop-background);opacity:var(--bal-modal-backdrop-opacity)}.bal-modal__header__title{padding-right:2.5rem;line-height:2rem}.bal-modal__header__close{position:absolute !important;display:-ms-flexbox !important;display:flex !important;right:1.25rem !important;top:1.5rem !important;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:2rem;max-width:2rem;min-height:2rem;max-height:2rem}.bal-modal__container{position:fixed;top:0;bottom:0;left:0;right:0;overflow-x:none;overflow-y:auto;-ms-overflow-y:visible;padding:.5rem}@media screen and (min-width: 769px),print{.bal-modal__container{padding:0}}.bal-modal__content{overflow:none;position:relative;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background:var(--bal-modal-background);border-radius:var(--bal-modal-radius);padding:1rem}@media screen and (min-width: 769px),print{.bal-modal__content{margin:3rem auto;width:var(--bal-modal-width, var(--bal-width, 40rem))}}.bal-modal__content .bal-modal__header{padding-bottom:1rem}.bal-modal__content .bal-modal__header__close{right:1.2rem !important;top:.7rem !important}@media screen and (min-width: 769px),print{.bal-modal__content{padding:1.5rem}.bal-modal__content .bal-modal__header{padding-bottom:1.5rem}.bal-modal__content .bal-modal__header__close{right:1.6rem !important;top:1.2rem !important}}@media screen and (min-width: 1024px){.bal-modal__content{padding:2.5rem}.bal-modal__content .bal-modal__header{padding-bottom:2.5rem}.bal-modal__content .bal-modal__header__close{right:2.7rem !important;top:2.2rem !important}}@media screen and (min-width: 769px),print{.bal-modal__content--has-spacing-small{padding:1rem}.bal-modal__content--has-spacing-small .bal-modal__header{padding-bottom:1rem}.bal-modal__content--has-spacing-small .bal-modal__header__close{right:1.1rem !important;top:.7rem !important}}@media screen and (min-width: 1024px){.bal-modal__content--has-spacing-small{padding:1rem}.bal-modal__content--has-spacing-small .bal-modal__header{padding-bottom:1rem}.bal-modal__content--has-spacing-small .bal-modal__header__close{right:1.1rem !important;top:.7rem !important}}@media screen and (min-width: 769px),print{.bal-modal__content--has-spacing-medium{padding:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header{padding-bottom:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header__close{right:1.6rem !important;top:1.2rem !important}}@media screen and (min-width: 1024px){.bal-modal__content--has-spacing-medium{padding:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header{padding-bottom:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header__close{right:1.6rem !important;top:1.2rem !important}}.bal-modal__body>bal-button-group{padding-top:1rem}";const u=class{constructor(t){a(this,t)}render(){return e(s,{key:"2bef5892f7f6e90bb4c893f4c5ca5027dece343a",class:"bal-modal__body"},e("slot",{key:"45b45f4141bd105c11f57628e6ea2ba989ef1a55"}))}},y=class{constructor(t){a(this,t),this.closeHandler=()=>{this.parentModal&&this.parentModal.dismiss(void 0,"model-close")}}get parentModal(){return this.el.closest("bal-modal")}render(){var a;return e(s,{key:"abcecb921453f0ec9ff5b989517ca1b1406daab0",class:"bal-modal__header"},e("div",{key:"6e4606402740673c455e98c4f4160e17f82d0435",class:"bal-modal__header__title"},e("bal-heading",{key:"bf7df5c6677354f5c53b75d77fb8b7f23859f267",level:"h2",space:"none"},e("slot",{key:"78648da85f2751f9aac04544083d62ba088beeae"}))),(null===(a=this.parentModal)||void 0===a?void 0:a.isClosable)?e("bal-close",{class:"bal-modal__header__close data-test-modal-close",onClick:this.closeHandler}):"")}get el(){return o(this)}};export{g as bal_modal,u as bal_modal_body,y as bal_modal_header}
1
+ import{r as a,c as t,w as i,h as e,H as s,g as o}from"./p-2ccbe55a.js";import{p as l,d,e as n,F as r}from"./p-24fe64c5.js";import{c as m,h as c,i as h}from"./p-a255c9b3.js";import{B as b}from"./p-b2f7e364.js";import{b as _}from"./p-a65354df.js";import"./p-a7be57b6.js";const p=a=>{const t={};return f(a).forEach((a=>t[a]=!0)),t},f=a=>void 0!==a?(Array.isArray(a)?a:a.split(" ")).filter((a=>null!=a)).map((a=>a.trim())).filter((a=>""!==a)):[],g=class{constructor(i){a(this,i),this.didPresent=t(this,"balModalDidPresent",7),this.willPresent=t(this,"balModalWillPresent",7),this.willDismiss=t(this,"balModalWillDismiss",7),this.didDismiss=t(this,"balModalDidDismiss",7),this.isClickedOutsideOnMouseDown=!1,this.isClickedOutsideOnMouseUp=!1,this.bodyScrollHandler=new b,this.presented=!1,this.overlayIndex=void 0,this.delegate=void 0,this.dataTestId=void 0,this.modalWidth=640,this.space="",this.hasBackdrop=!0,this.isClosable=!0,this.component=void 0,this.componentProps=void 0,this.cssClass=void 0,this.backdropDismiss=!0,this.focusTrap=!0,this.demo=!1}connectedCallback(){this.bodyScrollHandler.connect(),l(this),_.hasDocument&&this.demo&&this.open()}disconnectedCallback(){this.bodyScrollHandler.disconnect()}async open(){await c(this.usersElement),this.setModalActiveOnBody(),i((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.add("fadeIn"),this.modalContentElement&&this.modalContentElement.classList.add("fadeInDown")})),this.presented||(this.willPresent.emit(),this.presented=!0,await h(150),i((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.remove("fadeIn"),this.modalContentElement&&this.modalContentElement.classList.remove("fadeInDown")})),this.didPresent.emit())}async close(){this.willDismiss.emit(),this.unsetModalActiveOnBody(),this.presented=!1,this.didDismiss.emit()}async present(){if(this.setModalActiveOnBody(),this.presented)return;const a=this.el.querySelector(".bal-modal__content");if(!a)throw new Error("container is undefined");const t=Object.assign(Object.assign({},this.componentProps),{modal:this.el});this.usersElement=await(async(a,t,i,e,s)=>{if(a)return a.attachViewToDom(t,i,s,e);if("string"!=typeof i&&!(i instanceof HTMLElement))throw new Error("framework delegate is missing");const o="string"==typeof i?t.ownerDocument&&t.ownerDocument.createElement(i):i;return e&&e.forEach((a=>o.classList.add(a))),s&&Object.assign(o,s),t.appendChild(o),await new Promise((a=>m(o,a))),o})(this.delegate,a,this.component,[],t),await this.open()}async dismiss(a,t){if(this.unsetModalActiveOnBody(),void 0===this.delegate)return await this.close(),!0;const e=await d(this,a,t,(async()=>{i((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.add("fadeOut"),this.modalContentElement&&this.modalContentElement.classList.add("fadeOutUp")})),await h(140)}));return e&&await((a,t)=>{if(t){if(a)return a.removeViewFromDom(t.parentElement,t);t.remove()}return Promise.resolve()})(this.delegate,this.usersElement),e}onDidDismiss(){return n(this.el,"balModalDidDismiss")}onWillDismiss(){return n(this.el,"balModalWillDismiss")}async onClickCloseButton(a){if(this.isClosable&&this.presented&&a&&a.target){const t=a.target.closest("bal-button");t&&t.hasAttribute("modal-close")&&await this.dismiss(void 0,"model-close"),this.backdropDismiss&&this.isClickedOutsideOnMouseUp&&this.isClickedOutsideOnMouseDown&&await this.dismiss(void 0,"model-close")}}async onMouseDown(a){this.isClickedOutsideOnMouseDown=this.isClickedOutside(a)}async onMouseUp(a){this.isClickedOutsideOnMouseUp=this.isClickedOutside(a)}async handleKeyUp(a){const t=Array.from(document.querySelectorAll("bal-modal")).filter((a=>a.hasAttribute("aria-presented"))).map((a=>a.overlayIndex)).map((a=>parseInt(a))).filter((a=>!Number.isNaN(a))),i=Math.max(...t);this.overlayIndex===i&&(a.preventDefault(),a.stopPropagation(),this.presented&&this.isClosable&&("Escape"!==a.key&&"Esc"!==a.key||(this.delegate?await this.dismiss(void 0,"model-escape"):await this.close())))}setModalActiveOnBody(){this.demo||this.bodyScrollHandler.disable()}unsetModalActiveOnBody(){this.bodyScrollHandler.enable()}isClickedOutside(a){return!!(this.isClosable&&this.presented&&a&&a.target&&this.backdropDismiss)&&a.target.classList.contains("bal-modal__container")}render(){return e(s,{key:"1d9ab99326366d164adf6fbd5fc9d6af27a8ba58","aria-modal":"true","aria-presented":this.presented?"true":null,"data-testid":this.dataTestId,tabindex:"-1",class:Object.assign({"bal-modal":!0,"bal-modal--is-closable":this.isClosable,"bal-modal--is-active":this.presented,[r]:!1===this.focusTrap},p(this.cssClass)),style:{"--bal-width":`${this.modalWidth}px`}},e("div",{key:"057c4355168926825f04f51300478a1393b31563",class:{"bal-modal__background":!0,"is-hidden":!this.hasBackdrop},ref:a=>this.modalBackgroundElement=a}),e("div",{key:"ffa93ee6d43b8ded4a2851e4c2578fce427de8c2",class:{"bal-modal__container":!0},ref:a=>this.modalContainerElement=a},e("div",{key:"37ee9d19563be8e0a22b75d44b0cde5890342e1c",class:{"bal-modal__content":!0,[`bal-modal__content--has-spacing-${this.space}`]:!0},ref:a=>this.modalContentElement=a},e("slot",{key:"0bdfc5b5e268ec2ade1b70753cd64517fa635290"}))))}get el(){return o(this)}};g.style=".bal-modal,.bal-modal__background{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-modal-background:var(--bal-color-white);--bal-modal-backdrop-background:var(--bal-color-primary-6);--bal-modal-backdrop-opacity:.6;--bal-modal-radius:var(--bal-radius-large)}.bal-modal{-ms-flex-align:center;align-items:center;display:none;-ms-flex-direction:column;flex-direction:column;-ms-flex-pack:start;justify-content:flex-start;overflow:hidden;position:fixed;z-index:var(--bal-z-index-modal)}.bal-modal--is-active{display:-ms-flexbox;display:flex}.bal-modal__background{background:var(--bal-modal-backdrop-background);opacity:var(--bal-modal-backdrop-opacity)}.bal-modal__header__title{padding-right:2.5rem;line-height:2rem}.bal-modal__header__close{position:absolute !important;display:-ms-flexbox !important;display:flex !important;right:1.25rem !important;top:1.5rem !important;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;min-width:2rem;max-width:2rem;min-height:2rem;max-height:2rem}.bal-modal__container{position:fixed;top:0;bottom:0;left:0;right:0;overflow-x:none;overflow-y:auto;-ms-overflow-y:visible;padding:.5rem}@media screen and (min-width: 769px),print{.bal-modal__container{padding:0}}.bal-modal__content{overflow:none;position:relative;width:100%;display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column;background:var(--bal-modal-background);border-radius:var(--bal-modal-radius);padding:1rem}@media screen and (min-width: 769px),print{.bal-modal__content{margin:3rem auto;width:var(--bal-modal-width, var(--bal-width, 40rem))}}.bal-modal__content .bal-modal__header{padding-bottom:1rem}.bal-modal__content .bal-modal__header__close{right:1.2rem !important;top:.7rem !important}@media screen and (min-width: 769px),print{.bal-modal__content{padding:1.5rem}.bal-modal__content .bal-modal__header{padding-bottom:1.5rem}.bal-modal__content .bal-modal__header__close{right:1.6rem !important;top:1.2rem !important}}@media screen and (min-width: 1024px){.bal-modal__content{padding:2.5rem}.bal-modal__content .bal-modal__header{padding-bottom:2.5rem}.bal-modal__content .bal-modal__header__close{right:2.7rem !important;top:2.2rem !important}}@media screen and (min-width: 769px),print{.bal-modal__content--has-spacing-small{padding:1rem}.bal-modal__content--has-spacing-small .bal-modal__header{padding-bottom:1rem}.bal-modal__content--has-spacing-small .bal-modal__header__close{right:1.1rem !important;top:.7rem !important}}@media screen and (min-width: 1024px){.bal-modal__content--has-spacing-small{padding:1rem}.bal-modal__content--has-spacing-small .bal-modal__header{padding-bottom:1rem}.bal-modal__content--has-spacing-small .bal-modal__header__close{right:1.1rem !important;top:.7rem !important}}@media screen and (min-width: 769px),print{.bal-modal__content--has-spacing-medium{padding:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header{padding-bottom:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header__close{right:1.6rem !important;top:1.2rem !important}}@media screen and (min-width: 1024px){.bal-modal__content--has-spacing-medium{padding:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header{padding-bottom:1.5rem}.bal-modal__content--has-spacing-medium .bal-modal__header__close{right:1.6rem !important;top:1.2rem !important}}.bal-modal__body>bal-button-group{padding-top:1rem}";const u=class{constructor(t){a(this,t)}render(){return e(s,{key:"2bef5892f7f6e90bb4c893f4c5ca5027dece343a",class:"bal-modal__body"},e("slot",{key:"45b45f4141bd105c11f57628e6ea2ba989ef1a55"}))}},y=class{constructor(t){a(this,t),this.closeHandler=()=>{this.parentModal&&this.parentModal.dismiss(void 0,"model-close")}}get parentModal(){return this.el.closest("bal-modal")}render(){var a;return e(s,{key:"abcecb921453f0ec9ff5b989517ca1b1406daab0",class:"bal-modal__header"},e("div",{key:"6e4606402740673c455e98c4f4160e17f82d0435",class:"bal-modal__header__title"},e("bal-heading",{key:"bf7df5c6677354f5c53b75d77fb8b7f23859f267",level:"h2",space:"none"},e("slot",{key:"78648da85f2751f9aac04544083d62ba088beeae"}))),(null===(a=this.parentModal)||void 0===a?void 0:a.isClosable)?e("bal-close",{class:"bal-modal__header__close data-test-modal-close",onClick:this.closeHandler}):"")}get el(){return o(this)}};export{g as bal_modal,u as bal_modal_body,y as bal_modal_header}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(e,c,o,a){function b(e){return e instanceof o?e:new o((function(c){c(e)}))}return new(o||(o=Promise))((function(o,l){function t(e){try{i(a.next(e))}catch(e){l(e)}}function r(e){try{i(a["throw"](e))}catch(e){l(e)}}function i(e){e.done?o(e.value):b(e.value).then(t,r)}i((a=a.apply(e,c||[])).next())}))};var __generator=this&&this.__generator||function(e,c){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,b,l,t;return t={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(t[Symbol.iterator]=function(){return this}),t;function r(e){return function(c){return i([e,c])}}function i(r){if(a)throw new TypeError("Generator is already executing.");while(t&&(t=0,r[0]&&(o=0)),o)try{if(a=1,b&&(l=r[0]&2?b["return"]:r[0]?b["throw"]||((l=b["return"])&&l.call(b),0):b.next)&&!(l=l.call(b,r[1])).done)return l;if(b=0,l)r=[r[0]&2,l.value];switch(r[0]){case 0:case 1:l=r;break;case 4:o.label++;return{value:r[1],done:false};case 5:o.label++;b=r[1];r=[0];continue;case 7:r=o.ops.pop();o.trys.pop();continue;default:if(!(l=o.trys,l=l.length>0&&l[l.length-1])&&(r[0]===6||r[0]===2)){o=0;continue}if(r[0]===3&&(!l||r[1]>l[0]&&r[1]<l[3])){o.label=r[1];break}if(r[0]===6&&o.label<l[1]){o.label=l[1];l=r;break}if(l&&o.label<l[2]){o.label=l[2];o.ops.push(r);break}if(l[2])o.ops.pop();o.trys.pop();continue}r=c.call(e,o)}catch(e){r=[6,e];b=0}finally{a=l=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,c,o){if(o||arguments.length===2)for(var a=0,b=c.length,l;a<b;a++){if(l||!(a in c)){if(!l)l=Array.prototype.slice.call(c,0,a);l[a]=c[a]}}return e.concat(l||Array.prototype.slice.call(c))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-2da669b4.system.js","./p-7720b262.system.js","./p-db0895e2.system.js","./p-b52ad8d5.system.js","./p-907368ff.system.js","./p-c43a56b7.system.js","./p-863f4e4e.system.js","./p-23bdd8dc.system.js","./p-abd6896e.system.js","./p-4e642b63.system.js","./p-1c41de53.system.js","./p-237de03b.system.js","./p-5298de0e.system.js","./p-a1f6e944.system.js","./p-ade9437f.system.js","./p-eecefb0a.system.js","./p-6913b916.system.js","./p-df907af8.system.js","./p-2880433e.system.js"],(function(e){"use strict";var c,o,a,b,l,t,r,i,n,h,d,s,x,k,u,v,f,p,g,m,_,y,w;return{setters:[function(e){c=e.r;o=e.c;a=e.h;b=e.H;l=e.g},function(e){t=e._;r=e.a},function(e){i=e.a},function(e){n=e.i},function(e){h=e.B},function(e){d=e.F},function(e){s=e.d},function(e){x=e.s;k=e.c;u=e.d},function(e){v=e.j;f=e.v},function(e){p=e.L},function(e){g=e.L},function(e){m=e.d},function(e){_=e.a},function(e){y=e.L},function(e){w=e.L},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j="@media (hover: hover)and (pointer: fine){.bal-checkbox.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-checkbox-symbol-size:1.5rem;--bal-checkbox-symbol-border-width:2px;--bal-checkbox-symbol-background:transparent;--bal-checkbox-label-min-height:1.5rem;--bal-checkbox-button-background-hover:var(--bal-color-grey-2);--bal-checkbox-button-background-active:var(--bal-color-grey-2);--bal-checkbox-button-background-checked:var(--bal-color-primary);--bal-checkbox-button-background-checked-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-background-checked-active:var(--bal-color-primary-6);--bal-checkbox-button-background-invalid:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-background-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-background-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-background-disabled-hover-active:var(--bal-color-grey-2);--bal-checkbox-button-background-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-background:transparent;--bal-checkbox-button-background-checked-green:var(--bal-color-green-1);--bal-checkbox-button-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-button-background-checked-red:var(--bal-color-red-1);--bal-checkbox-button-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-button-background-disabled:var(--bal-color-grey-1);--bal-checkbox-button-background-hover:var(--bal-color-grey-1);--bal-checkbox-button-border-color:var(--bal-color-primary);--bal-checkbox-button-border-color-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-border-color-active:var(--bal-color-primary-6);--bal-checkbox-button-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-disabled-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-border-color-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-tile-background:transparent;--bal-checkbox-tile-background-hover:var(--bal-color-grey-1);--bal-checkbox-tile-background-disabled:var(--bal-color-grey-1);--bal-checkbox-tile-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-tile-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-tile-background-checked-green:var(--bal-color-green-1);--bal-checkbox-tile-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-tile-background-checked-red:var(--bal-color-red-1);--bal-checkbox-tile-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-tile-border-style:var(--bal-form-field-control-border-style);--bal-checkbox-tile-border-radius:var(--bal-form-field-control-radius);--bal-checkbox-tile-border-width:var(--bal-form-field-control-border-width);--bal-checkbox-tile-padding:var(--bal-text-size-medium);--bal-checkbox-tile-border-color:var(--bal-color-border);--bal-checkbox-tile-border-color-hover:var(--bal-color-border-primary-hovered);--bal-checkbox-tile-border-color-active:var(--bal-color-border-primary-pressed);--bal-checkbox-tile-border-color-invalid-hover:var(--bal-color-border-danger-hovered);--bal-checkbox-tile-border-color-invalid-active:var(--bal-color-border-danger-pressed);--bal-checkbox-tile-border-color-checked:var(--bal-color-border-primary);--bal-checkbox-tile-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-tile-border-color-disabled:var(--bal-color-border-grey-dark)}.bal-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;outline:none;min-width:var(--bal-checkbox-symbol-size);border-radius:var(--bal-radius-normal);cursor:pointer}.bal-checkbox .bal-checkbox__label{cursor:pointer}.bal-checkbox--invisible{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}.bal-checkbox.bal-checkbox--flat{min-height:var(--bal-checkbox-symbol-size)}.bal-checkbox:not(.bal-checkbox--flat){min-height:3rem}.bal-checkbox--invalid{color:var(--bal-form-field-label-danger-color)}.bal-checkbox--disabled,.bal-checkbox--disabled .bal-checkbox__label{color:var(--bal-form-field-label-disabled-color);cursor:default}.bal-checkbox__input{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden;width:100%;height:100%}.bal-checkbox__label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-direction:row;flex-direction:row}.bal-checkbox__label__text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:left;contain:layout style;font-family:var(--bal-font-family-text);padding-top:.25rem;padding-bottom:.25rem;width:100%}.bal-checkbox__label__text--hidden{display:none}.bal-checkbox__label__icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}@media (hover: hover)and (pointer: fine){.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__icon{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__icon{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__icon{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__icon{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-x-small);-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;padding-left:.75rem;padding-right:.75rem;min-width:3rem;border-width:2px;border-style:var(--bal-form-field-control-border-style);border-radius:var(--bal-form-field-control-radius);border-color:var(--bal-checkbox-button-border-color)}.bal-checkbox--button.bal-checkbox--checked{background:var(--bal-checkbox-button-background-checked);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--invalid{border-color:var(--bal-color-border-danger);color:var(--bal-color-text-danger-hovered);background:var(--bal-color-danger-1)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked{color:var(--bal-color-white);background:var(--bal-color-border-danger)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled{border-color:var(--bal-color-grey-4);background:var(--bal-color-grey-2)}.bal-checkbox--button.bal-checkbox--disabled .bal-checkbox__label__text{color:var(--bal-color-text-grey)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked{background:var(--bal-color-grey-4);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-border-primary-hovered);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-border-primary-pressed);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover{background:var(--bal-color-border-danger-hovered);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active{background:var(--bal-color-border-danger-pressed);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-white)}.bal-checkbox--tile{display:block;-ms-flex:0 0 100%;flex:0 0 100%;background:var(--bal-checkbox-tile-background);border-style:var(--bal-checkbox-tile-border-style);border-radius:var(--bal-checkbox-tile-border-radius);border-width:var(--bal-checkbox-tile-border-width);border-color:var(--bal-checkbox-tile-border-color);padding:var(--bal-checkbox-tile-padding)}.bal-checkbox--tile .bal-checkbox__label{height:100%;-ms-flex-align:stretch;align-items:stretch}.bal-checkbox--tile.bal-checkbox--checked{border-color:var(--bal-checkbox-tile-border-color-checked)}.bal-checkbox--tile.bal-checkbox--invalid{border-color:var(--bal-checkbox-tile-border-color-invalid)}.bal-checkbox--tile.bal-checkbox--disabled{background:var(--bal-checkbox-tile-background-disabled);border-color:var(--bal-checkbox-tile-border-color-disabled);cursor:default}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-hover)}}.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-active)}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-checkbox-tile-background-invalid-hover);border-color:var(--bal-checkbox-tile-border-color-invalid-hover)}}.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-checkbox-tile-background-invalid-active);border-color:var(--bal-checkbox-tile-border-color-invalid-active)}.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-green)}.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-red)}.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-purple)}.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-yellow)}@media screen and (min-width: 769px),print{.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (max-width: 768px){.bal-checkbox--column-mobile-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-mobile-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-mobile-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 769px),print{.bal-checkbox--column-tablet-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-tablet-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-tablet-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 1024px){.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}";var O=j;var C=e("bal_checkbox",function(){function e(e){var a=this;c(this,e);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.balChange=o(this,"balChange",7);this.inputId="bal-cb-".concat(F++);this.inheritedAttributes={};this.keyboardMode=true;this.outerElementState={hovered:false,pressed:false};this.innerElementState={hovered:false,pressed:false};this.initialValue=false;this.setChecked=function(e){a.checked=e;a.balChange.emit(a.checked)};this.toggleChecked=function(e){e.preventDefault();a.setFocus();a.setChecked(!a.checked)};this.onClick=function(e){if(a.disabled){return}var c=e.target;if(c&&c.href){return}if(a.wasFocused){a.focused=true}a.toggleChecked(e)};this.onFocus=function(e){if(a.disabled||a.readonly){a.focused=false;return x(e)}a.balFocus.emit(e);if(a.keyboardMode){a.focused=true;a.wasFocused=true}};this.onBlur=function(e){if(a.disabled||a.readonly){return x(e)}a.balBlur.emit(e);a.focused=false};this.onPointerDown=function(){return a.keyboardMode=false};this.onKeydown=function(e){if(!m(e)){a.wasFocused=false}a.keyboardMode=d.includes(e.key)};this.hasLabel=true;this.focused=false;this.buttonTabindex=undefined;this.ariaForm=s;this.wasFocused=false;this.mergedElementState={hovered:false,pressed:false};this.name=this.inputId;this.label="";this.labelHidden=false;this.flat=false;this.interface="checkbox";this.value="on";this.checked=false;this.disabled=false;this.readonly=false;this.required=false;this.autoInvalidOff=false;this.nonSubmit=false;this.invalid=false;this.hovered=false;this.pressed=false;this.color=undefined;this.colSize=1;this.colSizeTablet=1;this.colSizeMobile=1}e.prototype.createLogger=function(e){this.log=e};e.prototype.hoveredChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.pressedChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.connectedCallback=function(){var e=this;this.hoveredChanged();if(this.group){this.updateState();this.group.addEventListener("balChange",(function(){return e.updateState()}))}this.initialValue=this.checked;this.el.addEventListener("keydown",this.onKeydown);this.el.addEventListener("touchstart",this.onPointerDown);this.el.addEventListener("mousedown",this.onPointerDown)};e.prototype.componentWillLoad=function(){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"])};e.prototype.componentWillRender=function(){var e=this;this.interactionChildElements.forEach((function(c){c.disabled=e.disabled||e.readonly;c.invalid=e.invalid;c.checked=e.checked}))};e.prototype.disconnectedCallback=function(){var e=this;if(this.group){this.group.removeEventListener("balChange",(function(){return e.updateState()}))}this.el.removeEventListener("keydown",this.onKeydown);this.el.removeEventListener("touchstart",this.onPointerDown);this.el.removeEventListener("mousedown",this.onPointerDown)};e.prototype.listenOnClick=function(e){if((this.disabled||this.readonly)&&e.target&&(e.target===this.el||v(this.el,e.target))){x(e)}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){this.checked=this.initialValue}};e.prototype.elementStateListener=function(e){this.outerElementState=e;this.mergeElementState()};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){k(this);return[2]}))}))};e.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){u(this);return[2]}))}))};e.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};e.prototype.getOption=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.option]}))}))};e.prototype.updateState=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(c){if(this.group&&this.group.control&&Array.isArray(this.group.value)){e=this.group.value.includes(this.value);if(e!==this.checked){this.checked=e}}return[2]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};Object.defineProperty(e.prototype,"group",{get:function(){return this.el.closest("bal-checkbox-group")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"interactionChildElements",{get:function(){return Array.from(this.el.querySelectorAll("bal-check, bal-switch, bal-icon"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"option",{get:function(){return{name:this.name,value:this.value,checked:this.checked,label:this.label,labelHidden:this.labelHidden,flat:this.flat,interface:this.interface,disabled:this.disabled,readonly:this.readonly,required:this.required,nonSubmit:this.nonSubmit,invalid:this.invalid}},enumerable:false,configurable:true});e.prototype.mergeElementState=function(){var e=this;this.mergedElementState={hovered:this.outerElementState.hovered||this.innerElementState.hovered,pressed:this.outerElementState.pressed||this.innerElementState.pressed};this.interactionChildElements.forEach((function(c){c.hovered=e.mergedElementState.hovered;c.pressed=e.mergedElementState.pressed}))};e.prototype.render=function(){var e=this;var c=h.block("checkbox");var o=c.element("input");var l=c.element("label");var t=l.element("text");var r=l.element("icon");var n=this.focused&&this.buttonTabindex!==-1;var d=this.inheritedAttributes;if(this.buttonTabindex!==undefined){d.tabIndex=this.buttonTabindex}var s=!this.nonSubmit;var x=this.ariaForm.controlId||this.inputId;var k=this.ariaForm.labelId||null;var u=s?"label":"span";var v=this.interface==="switch"?"bal-switch":"bal-check";return a(b,{key:"eaa9cf2ba9de2a203b98515939ff117c89dc16cf","aria-checked":"".concat(this.checked),"aria-disabled":i(this.disabled),"aria-invalid":this.invalid===true?"true":"false","aria-hidden":i(this.disabled||this.nonSubmit),"aria-focused":n?"true":null,"aria-labelledby":k,"aria-describedby":this.ariaForm.messageId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"bal-focused":n},c.class()),c.modifier("checkbox").class()),c.modifier("button").class(this.interface==="button")),c.modifier("switch").class(this.interface==="switch")),c.modifier("tile").class(this.interface==="tile")),c.modifier("tile-color-".concat(this.color)).class(this.interface==="tile"&&!!this.color)),c.modifier("focused").class(this.focused)),c.modifier("invalid").class(this.invalid)),c.modifier("checked").class(this.checked)),c.modifier("flat").class(this.flat)),c.modifier("disabled").class(this.disabled||this.readonly)),c.modifier("hovered").class(this.mergedElementState.hovered)),c.modifier("pressed").class(this.mergedElementState.pressed)),c.modifier("column-".concat(this.colSize)).class(this.interface==="tile"&&this.colSize>1)),c.modifier("column-tablet-".concat(this.colSizeTablet)).class(this.interface==="tile"&&this.colSizeTablet>1)),c.modifier("column-mobile-".concat(this.colSizeMobile)).class(this.interface==="tile"&&this.colSizeMobile>1)),onClick:this.onClick},a(u,{key:"6fd849f4768bc7155eb5db297713bc82aeab6dfe",class:Object.assign({},l.class()),"data-testid":"bal-checkbox-label"},s?a("input",Object.assign({id:x,type:"checkbox","data-testid":"bal-checkbox-input",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled||this.nonSubmit,readonly:this.readonly,class:Object.assign({},o.class()),"aria-hidden":i(this.nonSubmit),"aria-invalid":this.invalid===true?"true":"false","aria-describedby":this.ariaForm.messageId,onChange:function(c){return e.toggleChecked(c)},onFocus:function(c){return e.onFocus(c)},onBlur:function(c){return e.onBlur(c)},ref:function(c){return e.nativeInput=c}},d)):"",this.interface!=="tile"?a("div",{class:Object.assign({},r.class())},a(v,{checked:this.checked,disabled:this.disabled||this.readonly,invalid:this.invalid,inverted:this.interface==="button"&&this.checked,hovered:this.mergedElementState.hovered,pressed:this.mergedElementState.pressed})):"",a("div",{key:"ca1ec209d9211082db1d0905e599eea5e6803244",class:Object.assign(Object.assign({},t.class()),t.modifier("hidden").class(this.labelHidden))},a("slot",{key:"a2a3c8124d7d47bf300b229fe01e62fa198961c0"}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{hovered:["hoveredChanged"],pressed:["pressedChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],C.prototype,"createLogger",null);t([g(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],C.prototype,"elementStateListener",null);var F=0;C.style=O;var A=".bal-checkbox-group{display:inline-block;position:relative;width:100%}.bal-checkbox-group__inner{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-normal)}.bal-checkbox-group__inner--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex:1;flex:1;gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--button{-ms-flex-direction:row;flex-direction:row}}.bal-checkbox-group__inner--expanded{-ms-flex-align:stretch;align-items:stretch}.bal-checkbox-group__inner--expanded .bal-checkbox{-ms-flex:1;flex:1}@media screen and (max-width: 768px){.bal-checkbox-group__inner--expanded .bal-checkbox{width:100%}}.bal-checkbox-group__inner--button.bal-checkbox-group__inner--vertical{gap:var(--bal-space-x-small)}.bal-checkbox-group__inner--vertical{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--vertical{-ms-flex-align:start;align-items:flex-start}}@media screen and (max-width: 768px){.bal-checkbox-group__inner--vertical-mobile{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}}";var L=A;var z=e("bal_checkbox_group",function(){function e(e){var a=this;c(this,e);this.balChange=o(this,"balChange",7);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.inputId="bal-cg-".concat(S++);this.inheritedAttributes={};this.hasFocus=false;this.mutationObserverActive=true;this.onClick=function(e){if(!a.control){return}var c=e.target;if(c.href){return}var o=e.target&&e.target.closest("bal-checkbox");if(o){if(o.disabled||o.readonly){return e.stopPropagation()}}a.updateValues()};this.onOptionChange=function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){this.sync();return[2]}))}))};this.ariaForm=s;this.options=undefined;this.interface=undefined;this.control=false;this.name=this.inputId;this.vertical=false;this.verticalOnMobile=false;this.expanded=false;this.invalid=undefined;this.disabled=undefined;this.readonly=undefined;this.value=[];this.columns=1;this.columnsTablet=1;this.columnsMobile=1;this.autoInvalidOff=false}e.prototype.createLogger=function(e){this.log=e};e.prototype.optionChanged=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.control){this.onOptionChange();this.mutationObserverActive=this.options===undefined}return[2]}))}))};e.prototype.invalidChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.invalid=e}))}}};e.prototype.disabledChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.disabled=e}))}}};e.prototype.readonlyChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.readonly=e}))}}};e.prototype.valueChanged=function(e,c){if(this.control){if(!_(this.value,c)){this.onOptionChange()}}else{this.onOptionChange()}};e.prototype.columnsChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSize=e}))};e.prototype.columnsTabletChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeTablet=e}))};e.prototype.columnsMobileChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeMobile=e}))};e.prototype.connectedCallback=function(){if(this.control){this.mutationObserverActive=this.options===undefined;this.valueChanged(this.value,[])}};e.prototype.componentWillLoad=function(){if(this.control){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"]);this.disabledChanged(this.disabled);this.invalidChanged(this.invalid);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.focusInListener=function(e){this.balFocus.emit(e)};e.prototype.focusOutListener=function(e){this.balBlur.emit(e)};e.prototype.mutationListener=function(){if(this.control){this.disabledChanged(this.disabled);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.listenOnCheckboxChange=function(e){if(this.control){if(v(this.el,e.target)){x(e);this.updateValues()}}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){if(this.control){this.value=[]}this.onOptionChange()}};e.prototype.checkboxFocusListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.checkboxBlurListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.setValue=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){if(this.control){this.value=e}return[2]}))}))};e.prototype.getOptionByValue=function(e){return __awaiter(this,void 0,void 0,(function(){var c;return __generator(this,(function(o){c=this.options;if(c){return[2,c.find((function(c){return c.value===e}))]}return[2,undefined]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};e.prototype.sync=function(){var e=this;if(this.control){var c=function(c){for(var o=0;o<e.value.length;o++){var a=e.value[o];if(a!==undefined&&a.toString()===c.value.toString()){return true}}return false};this.getCheckboxes().forEach((function(e){e.checked=c(e)}))}this.getCheckboxes().forEach((function(c){if(e.interface){c.interface=e.interface}}))};e.prototype.getCheckboxes=function(){return Array.from(this.el.querySelectorAll("bal-checkbox"))};e.prototype.updateValues=function(){var e=[];this.getCheckboxes().forEach((function(c){if(c.checked){e.push(c.value)}}));if(!_(this.value,e)){this.value=__spreadArray([],e,true);this.balChange.emit(this.value)}};e.prototype.render=function(){var e=h.block("checkbox-group");var c=e.element("inner");var o=this.options||[];var l=o.map((function(e){if(typeof e.html==="function"){return Object.assign(Object.assign({},e),{html:e.html()})}return e}));return a(b,Object.assign({class:Object.assign({},e.class()),role:"group","aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-disabled":i(this.disabled),"aria-invalid":i(this.invalid),onClick:this.onClick},this.inheritedAttributes),a("div",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c.class()),c.modifier("vertical-mobile").class(this.verticalOnMobile)),c.modifier("vertical").class(this.vertical)),c.modifier("expanded").class(this.expanded)),c.modifier("button").class(this.interface==="button"))},a("slot",null),l.map((function(e){return a("bal-checkbox",{key:e.value,name:e.name,value:e.value,labelHidden:e.labelHidden,flat:e.flat,interface:e.interface,disabled:e.disabled,readonly:e.readonly,required:e.required,nonSubmit:!!e.nonSubmit,invalid:e.invalid,innerHTML:e.html})}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{options:["optionChanged"],invalid:["invalidChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"],value:["valueChanged"],columns:["columnsChanged"],columnsTablet:["columnsTabletChanged"],columnsMobile:["columnsMobileChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox-group"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],z.prototype,"createLogger",null);t([y(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],z.prototype,"focusInListener",null);t([y(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],z.prototype,"focusOutListener",null);t([w({tags:["bal-checkbox-group","bal-checkbox"],attributes:false,characterData:false}),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],z.prototype,"mutationListener",null);var S=0;z.style=L}}}));
1
+ var __awaiter=this&&this.__awaiter||function(e,c,o,a){function b(e){return e instanceof o?e:new o((function(c){c(e)}))}return new(o||(o=Promise))((function(o,l){function t(e){try{i(a.next(e))}catch(e){l(e)}}function r(e){try{i(a["throw"](e))}catch(e){l(e)}}function i(e){e.done?o(e.value):b(e.value).then(t,r)}i((a=a.apply(e,c||[])).next())}))};var __generator=this&&this.__generator||function(e,c){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},a,b,l,t;return t={next:r(0),throw:r(1),return:r(2)},typeof Symbol==="function"&&(t[Symbol.iterator]=function(){return this}),t;function r(e){return function(c){return i([e,c])}}function i(r){if(a)throw new TypeError("Generator is already executing.");while(t&&(t=0,r[0]&&(o=0)),o)try{if(a=1,b&&(l=r[0]&2?b["return"]:r[0]?b["throw"]||((l=b["return"])&&l.call(b),0):b.next)&&!(l=l.call(b,r[1])).done)return l;if(b=0,l)r=[r[0]&2,l.value];switch(r[0]){case 0:case 1:l=r;break;case 4:o.label++;return{value:r[1],done:false};case 5:o.label++;b=r[1];r=[0];continue;case 7:r=o.ops.pop();o.trys.pop();continue;default:if(!(l=o.trys,l=l.length>0&&l[l.length-1])&&(r[0]===6||r[0]===2)){o=0;continue}if(r[0]===3&&(!l||r[1]>l[0]&&r[1]<l[3])){o.label=r[1];break}if(r[0]===6&&o.label<l[1]){o.label=l[1];l=r;break}if(l&&o.label<l[2]){o.label=l[2];o.ops.push(r);break}if(l[2])o.ops.pop();o.trys.pop();continue}r=c.call(e,o)}catch(e){r=[6,e];b=0}finally{a=l=0}if(r[0]&5)throw r[1];return{value:r[0]?r[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(e,c,o){if(o||arguments.length===2)for(var a=0,b=c.length,l;a<b;a++){if(l||!(a in c)){if(!l)l=Array.prototype.slice.call(c,0,a);l[a]=c[a]}}return e.concat(l||Array.prototype.slice.call(c))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-2da669b4.system.js","./p-7720b262.system.js","./p-db0895e2.system.js","./p-16395ece.system.js","./p-907368ff.system.js","./p-c43a56b7.system.js","./p-863f4e4e.system.js","./p-23bdd8dc.system.js","./p-abd6896e.system.js","./p-4e642b63.system.js","./p-1c41de53.system.js","./p-237de03b.system.js","./p-5298de0e.system.js","./p-a1f6e944.system.js","./p-ade9437f.system.js","./p-eecefb0a.system.js","./p-6913b916.system.js","./p-df907af8.system.js","./p-2880433e.system.js"],(function(e){"use strict";var c,o,a,b,l,t,r,i,n,h,d,s,x,k,u,v,f,p,g,m,_,y,w;return{setters:[function(e){c=e.r;o=e.c;a=e.h;b=e.H;l=e.g},function(e){t=e._;r=e.a},function(e){i=e.a},function(e){n=e.i},function(e){h=e.B},function(e){d=e.F},function(e){s=e.d},function(e){x=e.s;k=e.c;u=e.d},function(e){v=e.j;f=e.v},function(e){p=e.L},function(e){g=e.L},function(e){m=e.d},function(e){_=e.a},function(e){y=e.L},function(e){w=e.L},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var j="@media (hover: hover)and (pointer: fine){.bal-checkbox.bal-focused{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-checkbox-symbol-size:1.5rem;--bal-checkbox-symbol-border-width:2px;--bal-checkbox-symbol-background:transparent;--bal-checkbox-label-min-height:1.5rem;--bal-checkbox-button-background-hover:var(--bal-color-grey-2);--bal-checkbox-button-background-active:var(--bal-color-grey-2);--bal-checkbox-button-background-checked:var(--bal-color-primary);--bal-checkbox-button-background-checked-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-background-checked-active:var(--bal-color-primary-6);--bal-checkbox-button-background-invalid:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-button-background-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-background-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-background-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-background-disabled-hover-active:var(--bal-color-grey-2);--bal-checkbox-button-background-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-background:transparent;--bal-checkbox-button-background-checked-green:var(--bal-color-green-1);--bal-checkbox-button-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-button-background-checked-red:var(--bal-color-red-1);--bal-checkbox-button-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-button-background-disabled:var(--bal-color-grey-1);--bal-checkbox-button-background-hover:var(--bal-color-grey-1);--bal-checkbox-button-border-color:var(--bal-color-primary);--bal-checkbox-button-border-color-hover:var(--bal-color-light-blue-5);--bal-checkbox-button-border-color-active:var(--bal-color-primary-6);--bal-checkbox-button-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-invalid-checked:var(--bal-color-border-danger);--bal-checkbox-button-border-color-invalid-checked-hover:var(--bal-color-danger-5);--bal-checkbox-button-border-color-invalid-checked-active:var(--bal-color-danger-6);--bal-checkbox-button-border-color-disabled-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-button-border-color-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-checkbox-tile-background:transparent;--bal-checkbox-tile-background-hover:var(--bal-color-grey-1);--bal-checkbox-tile-background-disabled:var(--bal-color-grey-1);--bal-checkbox-tile-background-invalid-hover:var(--bal-color-danger-1);--bal-checkbox-tile-background-invalid-active:var(--bal-color-danger-1);--bal-checkbox-tile-background-checked-green:var(--bal-color-green-1);--bal-checkbox-tile-background-checked-purple:var(--bal-color-purple-1);--bal-checkbox-tile-background-checked-red:var(--bal-color-red-1);--bal-checkbox-tile-background-checked-yellow:var(--bal-color-yellow-1);--bal-checkbox-tile-border-style:var(--bal-form-field-control-border-style);--bal-checkbox-tile-border-radius:var(--bal-form-field-control-radius);--bal-checkbox-tile-border-width:var(--bal-form-field-control-border-width);--bal-checkbox-tile-padding:var(--bal-text-size-medium);--bal-checkbox-tile-border-color:var(--bal-color-border);--bal-checkbox-tile-border-color-hover:var(--bal-color-border-primary-hovered);--bal-checkbox-tile-border-color-active:var(--bal-color-border-primary-pressed);--bal-checkbox-tile-border-color-invalid-hover:var(--bal-color-border-danger-hovered);--bal-checkbox-tile-border-color-invalid-active:var(--bal-color-border-danger-pressed);--bal-checkbox-tile-border-color-checked:var(--bal-color-border-primary);--bal-checkbox-tile-border-color-invalid:var(--bal-color-border-danger);--bal-checkbox-tile-border-color-disabled:var(--bal-color-border-grey-dark)}.bal-checkbox{position:relative;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;outline:none;min-width:var(--bal-checkbox-symbol-size);border-radius:var(--bal-radius-normal);cursor:pointer}.bal-checkbox .bal-checkbox__label{cursor:pointer}.bal-checkbox--invisible{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden}.bal-checkbox.bal-checkbox--flat{min-height:var(--bal-checkbox-symbol-size)}.bal-checkbox:not(.bal-checkbox--flat){min-height:3rem}.bal-checkbox--invalid{color:var(--bal-form-field-label-danger-color)}.bal-checkbox--disabled,.bal-checkbox--disabled .bal-checkbox__label{color:var(--bal-form-field-label-disabled-color);cursor:default}.bal-checkbox__input{position:absolute !important;left:0;top:0;margin:0;padding:0;opacity:0;outline:0;border:none;width:1px;height:1px;clip:rect(1px, 1px, 1px, 1px);overflow:hidden;width:100%;height:100%}.bal-checkbox__label{display:-ms-flexbox;display:flex;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center;gap:.5rem;-ms-flex-direction:row;flex-direction:row}.bal-checkbox__label__text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;text-align:left;contain:layout style;font-family:var(--bal-font-family-text);padding-top:.25rem;padding-bottom:.25rem;width:100%}.bal-checkbox__label__text--hidden{display:none}.bal-checkbox__label__icon{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}@media (hover: hover)and (pointer: fine){.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__icon{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox:not(.bal-checkbox--button):not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__icon{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):hover .bal-checkbox__label__icon{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__icon,.bal-checkbox--invalid:not(.bal-checkbox--button):not(.bal-checkbox--disabled):active .bal-checkbox__label__icon{color:var(--bal-color-text-danger-pressed)}.bal-checkbox--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-x-small);-ms-flex-pack:center;justify-content:center;-ms-flex-align:start;align-items:flex-start;padding-left:.75rem;padding-right:.75rem;min-width:3rem;border-width:2px;border-style:var(--bal-form-field-control-border-style);border-radius:var(--bal-form-field-control-radius);border-color:var(--bal-checkbox-button-border-color)}.bal-checkbox--button.bal-checkbox--checked{background:var(--bal-checkbox-button-background-checked);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--invalid{border-color:var(--bal-color-border-danger);color:var(--bal-color-text-danger-hovered);background:var(--bal-color-danger-1)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked{color:var(--bal-color-white);background:var(--bal-color-border-danger)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled{border-color:var(--bal-color-grey-4);background:var(--bal-color-grey-2)}.bal-checkbox--button.bal-checkbox--disabled .bal-checkbox__label__text{color:var(--bal-color-text-grey)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked{background:var(--bal-color-grey-4);color:var(--bal-color-white)}.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--disabled.bal-checkbox--checked .bal-checkbox__label__text .link{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-text-primary-hovered)}}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-grey-2);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-text-primary-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-color-border-primary-hovered);border-color:var(--bal-color-border-primary-hovered)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-color-border-primary-pressed);border-color:var(--bal-color-border-primary-pressed)}.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--checked:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active .bal-checkbox__label__text{color:var(--bal-color-white)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-text-danger-hovered)}}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-color-danger-1);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-text-danger-pressed)}@media (hover: hover)and (pointer: fine){.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover{background:var(--bal-color-border-danger-hovered);border-color:var(--bal-color-border-danger-hovered)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--hovered .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):hover .bal-checkbox__label__text{color:var(--bal-color-white)}}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active{background:var(--bal-color-border-danger-pressed);border-color:var(--bal-color-border-danger-pressed)}.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled).bal-checkbox--pressed .bal-checkbox__label__text,.bal-checkbox--button.bal-checkbox--invalid.bal-checkbox--checked:not(.bal-checkbox--disabled):active .bal-checkbox__label__text{color:var(--bal-color-white)}.bal-checkbox--tile{display:block;-ms-flex:0 0 100%;flex:0 0 100%;background:var(--bal-checkbox-tile-background);border-style:var(--bal-checkbox-tile-border-style);border-radius:var(--bal-checkbox-tile-border-radius);border-width:var(--bal-checkbox-tile-border-width);border-color:var(--bal-checkbox-tile-border-color);padding:var(--bal-checkbox-tile-padding)}.bal-checkbox--tile .bal-checkbox__label{height:100%;-ms-flex-align:stretch;align-items:stretch}.bal-checkbox--tile.bal-checkbox--checked{border-color:var(--bal-checkbox-tile-border-color-checked)}.bal-checkbox--tile.bal-checkbox--invalid{border-color:var(--bal-checkbox-tile-border-color-invalid)}.bal-checkbox--tile.bal-checkbox--disabled{background:var(--bal-checkbox-tile-background-disabled);border-color:var(--bal-checkbox-tile-border-color-disabled);cursor:default}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--hovered,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):hover{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-hover)}}.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid).bal-checkbox--pressed,.bal-checkbox--tile:not(.bal-checkbox--disabled):not(.bal-checkbox--invalid):active{background:var(--bal-checkbox-tile-background-hover);border-color:var(--bal-checkbox-tile-border-color-active)}@media (hover: hover)and (pointer: fine){.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--hovered,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):hover{background:var(--bal-checkbox-tile-background-invalid-hover);border-color:var(--bal-checkbox-tile-border-color-invalid-hover)}}.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled).bal-checkbox--pressed,.bal-checkbox--tile.bal-checkbox--invalid:not(.bal-checkbox--disabled):active{background:var(--bal-checkbox-tile-background-invalid-active);border-color:var(--bal-checkbox-tile-border-color-invalid-active)}.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-green:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-green)}.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-red:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-red)}.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-purple:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-purple)}.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked.bal-checkbox--hovered,.bal-checkbox--tile-color-yellow:not(.bal-checkbox--disabled).bal-checkbox--checked:hover{background:var(--bal-checkbox-tile-background-checked-yellow)}@media screen and (min-width: 769px),print{.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (max-width: 768px){.bal-checkbox--column-mobile-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-mobile-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-mobile-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 769px),print{.bal-checkbox--column-tablet-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-tablet-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-tablet-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 1024px){.bal-checkbox--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}";var O=j;var C=e("bal_checkbox",function(){function e(e){var a=this;c(this,e);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.balChange=o(this,"balChange",7);this.inputId="bal-cb-".concat(F++);this.inheritedAttributes={};this.keyboardMode=true;this.outerElementState={hovered:false,pressed:false};this.innerElementState={hovered:false,pressed:false};this.initialValue=false;this.setChecked=function(e){a.checked=e;a.balChange.emit(a.checked)};this.toggleChecked=function(e){e.preventDefault();a.setFocus();a.setChecked(!a.checked)};this.onClick=function(e){if(a.disabled){return}var c=e.target;if(c&&c.href){return}if(a.wasFocused){a.focused=true}a.toggleChecked(e)};this.onFocus=function(e){if(a.disabled||a.readonly){a.focused=false;return x(e)}a.balFocus.emit(e);if(a.keyboardMode){a.focused=true;a.wasFocused=true}};this.onBlur=function(e){if(a.disabled||a.readonly){return x(e)}a.balBlur.emit(e);a.focused=false};this.onPointerDown=function(){return a.keyboardMode=false};this.onKeydown=function(e){if(!m(e)){a.wasFocused=false}a.keyboardMode=d.includes(e.key)};this.hasLabel=true;this.focused=false;this.buttonTabindex=undefined;this.ariaForm=s;this.wasFocused=false;this.mergedElementState={hovered:false,pressed:false};this.name=this.inputId;this.label="";this.labelHidden=false;this.flat=false;this.interface="checkbox";this.value="on";this.checked=false;this.disabled=false;this.readonly=false;this.required=false;this.autoInvalidOff=false;this.nonSubmit=false;this.invalid=false;this.hovered=false;this.pressed=false;this.color=undefined;this.colSize=1;this.colSizeTablet=1;this.colSizeMobile=1}e.prototype.createLogger=function(e){this.log=e};e.prototype.hoveredChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.pressedChanged=function(){this.innerElementState={hovered:this.hovered,pressed:this.pressed};this.mergeElementState()};e.prototype.connectedCallback=function(){var e=this;this.hoveredChanged();if(this.group){this.updateState();this.group.addEventListener("balChange",(function(){return e.updateState()}))}this.initialValue=this.checked;this.el.addEventListener("keydown",this.onKeydown);this.el.addEventListener("touchstart",this.onPointerDown);this.el.addEventListener("mousedown",this.onPointerDown)};e.prototype.componentWillLoad=function(){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"])};e.prototype.componentWillRender=function(){var e=this;this.interactionChildElements.forEach((function(c){c.disabled=e.disabled||e.readonly;c.invalid=e.invalid;c.checked=e.checked}))};e.prototype.disconnectedCallback=function(){var e=this;if(this.group){this.group.removeEventListener("balChange",(function(){return e.updateState()}))}this.el.removeEventListener("keydown",this.onKeydown);this.el.removeEventListener("touchstart",this.onPointerDown);this.el.removeEventListener("mousedown",this.onPointerDown)};e.prototype.listenOnClick=function(e){if((this.disabled||this.readonly)&&e.target&&(e.target===this.el||v(this.el,e.target))){x(e)}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){this.checked=this.initialValue}};e.prototype.elementStateListener=function(e){this.outerElementState=e;this.mergeElementState()};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){k(this);return[2]}))}))};e.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){u(this);return[2]}))}))};e.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};e.prototype.getOption=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){return[2,this.option]}))}))};e.prototype.updateState=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(c){if(this.group&&this.group.control&&Array.isArray(this.group.value)){e=this.group.value.includes(this.value);if(e!==this.checked){this.checked=e}}return[2]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};Object.defineProperty(e.prototype,"group",{get:function(){return this.el.closest("bal-checkbox-group")},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"interactionChildElements",{get:function(){return Array.from(this.el.querySelectorAll("bal-check, bal-switch, bal-icon"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"option",{get:function(){return{name:this.name,value:this.value,checked:this.checked,label:this.label,labelHidden:this.labelHidden,flat:this.flat,interface:this.interface,disabled:this.disabled,readonly:this.readonly,required:this.required,nonSubmit:this.nonSubmit,invalid:this.invalid}},enumerable:false,configurable:true});e.prototype.mergeElementState=function(){var e=this;this.mergedElementState={hovered:this.outerElementState.hovered||this.innerElementState.hovered,pressed:this.outerElementState.pressed||this.innerElementState.pressed};this.interactionChildElements.forEach((function(c){c.hovered=e.mergedElementState.hovered;c.pressed=e.mergedElementState.pressed}))};e.prototype.render=function(){var e=this;var c=h.block("checkbox");var o=c.element("input");var l=c.element("label");var t=l.element("text");var r=l.element("icon");var n=this.focused&&this.buttonTabindex!==-1;var d=this.inheritedAttributes;if(this.buttonTabindex!==undefined){d.tabIndex=this.buttonTabindex}var s=!this.nonSubmit;var x=this.ariaForm.controlId||this.inputId;var k=this.ariaForm.labelId||null;var u=s?"label":"span";var v=this.interface==="switch"?"bal-switch":"bal-check";return a(b,{key:"eaa9cf2ba9de2a203b98515939ff117c89dc16cf","aria-checked":"".concat(this.checked),"aria-disabled":i(this.disabled),"aria-invalid":this.invalid===true?"true":"false","aria-hidden":i(this.disabled||this.nonSubmit),"aria-focused":n?"true":null,"aria-labelledby":k,"aria-describedby":this.ariaForm.messageId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"bal-focused":n},c.class()),c.modifier("checkbox").class()),c.modifier("button").class(this.interface==="button")),c.modifier("switch").class(this.interface==="switch")),c.modifier("tile").class(this.interface==="tile")),c.modifier("tile-color-".concat(this.color)).class(this.interface==="tile"&&!!this.color)),c.modifier("focused").class(this.focused)),c.modifier("invalid").class(this.invalid)),c.modifier("checked").class(this.checked)),c.modifier("flat").class(this.flat)),c.modifier("disabled").class(this.disabled||this.readonly)),c.modifier("hovered").class(this.mergedElementState.hovered)),c.modifier("pressed").class(this.mergedElementState.pressed)),c.modifier("column-".concat(this.colSize)).class(this.interface==="tile"&&this.colSize>1)),c.modifier("column-tablet-".concat(this.colSizeTablet)).class(this.interface==="tile"&&this.colSizeTablet>1)),c.modifier("column-mobile-".concat(this.colSizeMobile)).class(this.interface==="tile"&&this.colSizeMobile>1)),onClick:this.onClick},a(u,{key:"6fd849f4768bc7155eb5db297713bc82aeab6dfe",class:Object.assign({},l.class()),"data-testid":"bal-checkbox-label"},s?a("input",Object.assign({id:x,type:"checkbox","data-testid":"bal-checkbox-input",name:this.name,value:this.value,checked:this.checked,required:this.required,disabled:this.disabled||this.nonSubmit,readonly:this.readonly,class:Object.assign({},o.class()),"aria-hidden":i(this.nonSubmit),"aria-invalid":this.invalid===true?"true":"false","aria-describedby":this.ariaForm.messageId,onChange:function(c){return e.toggleChecked(c)},onFocus:function(c){return e.onFocus(c)},onBlur:function(c){return e.onBlur(c)},ref:function(c){return e.nativeInput=c}},d)):"",this.interface!=="tile"?a("div",{class:Object.assign({},r.class())},a(v,{checked:this.checked,disabled:this.disabled||this.readonly,invalid:this.invalid,inverted:this.interface==="button"&&this.checked,hovered:this.mergedElementState.hovered,pressed:this.mergedElementState.pressed})):"",a("div",{key:"ca1ec209d9211082db1d0905e599eea5e6803244",class:Object.assign(Object.assign({},t.class()),t.modifier("hidden").class(this.labelHidden))},a("slot",{key:"a2a3c8124d7d47bf300b229fe01e62fa198961c0"}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{hovered:["hoveredChanged"],pressed:["pressedChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],C.prototype,"createLogger",null);t([g(),r("design:type",Function),r("design:paramtypes",[Object]),r("design:returntype",void 0)],C.prototype,"elementStateListener",null);var F=0;C.style=O;var A=".bal-checkbox-group{display:inline-block;position:relative;width:100%}.bal-checkbox-group__inner{display:-ms-flexbox;display:flex;-ms-flex-direction:row;flex-direction:row;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:stretch;align-items:stretch;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-normal)}.bal-checkbox-group__inner--button{-ms-flex-direction:column;flex-direction:column;-ms-flex-wrap:wrap;flex-wrap:wrap;-ms-flex:1;flex:1;gap:var(--bal-space-x-small)}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--button{-ms-flex-direction:row;flex-direction:row}}.bal-checkbox-group__inner--expanded{-ms-flex-align:stretch;align-items:stretch}.bal-checkbox-group__inner--expanded .bal-checkbox{-ms-flex:1;flex:1}@media screen and (max-width: 768px){.bal-checkbox-group__inner--expanded .bal-checkbox{width:100%}}.bal-checkbox-group__inner--button.bal-checkbox-group__inner--vertical{gap:var(--bal-space-x-small)}.bal-checkbox-group__inner--vertical{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}@media screen and (min-width: 769px),print{.bal-checkbox-group__inner--vertical{-ms-flex-align:start;align-items:flex-start}}@media screen and (max-width: 768px){.bal-checkbox-group__inner--vertical-mobile{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}}";var L=A;var z=e("bal_checkbox_group",function(){function e(e){var a=this;c(this,e);this.balChange=o(this,"balChange",7);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.inputId="bal-cg-".concat(S++);this.inheritedAttributes={};this.hasFocus=false;this.mutationObserverActive=true;this.onClick=function(e){if(!a.control){return}var c=e.target;if(c.href){return}var o=e.target&&e.target.closest("bal-checkbox");if(o){if(o.disabled||o.readonly){return e.stopPropagation()}}a.updateValues()};this.onOptionChange=function(){return __awaiter(a,void 0,void 0,(function(){return __generator(this,(function(e){this.sync();return[2]}))}))};this.ariaForm=s;this.options=undefined;this.interface=undefined;this.control=false;this.name=this.inputId;this.vertical=false;this.verticalOnMobile=false;this.expanded=false;this.invalid=undefined;this.disabled=undefined;this.readonly=undefined;this.value=[];this.columns=1;this.columnsTablet=1;this.columnsMobile=1;this.autoInvalidOff=false}e.prototype.createLogger=function(e){this.log=e};e.prototype.optionChanged=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.control){this.onOptionChange();this.mutationObserverActive=this.options===undefined}return[2]}))}))};e.prototype.invalidChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.invalid=e}))}}};e.prototype.disabledChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.disabled=e}))}}};e.prototype.readonlyChanged=function(e){if(this.control){if(e!==undefined){this.getCheckboxes().forEach((function(c){c.readonly=e}))}}};e.prototype.valueChanged=function(e,c){if(this.control){if(!_(this.value,c)){this.onOptionChange()}}else{this.onOptionChange()}};e.prototype.columnsChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSize=e}))};e.prototype.columnsTabletChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeTablet=e}))};e.prototype.columnsMobileChanged=function(e){this.getCheckboxes().forEach((function(c){return c.colSizeMobile=e}))};e.prototype.connectedCallback=function(){if(this.control){this.mutationObserverActive=this.options===undefined;this.valueChanged(this.value,[])}};e.prototype.componentWillLoad=function(){if(this.control){this.inheritedAttributes=n(this.el,["aria-label","tabindex","title"]);this.disabledChanged(this.disabled);this.invalidChanged(this.invalid);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.focusInListener=function(e){this.balFocus.emit(e)};e.prototype.focusOutListener=function(e){this.balBlur.emit(e)};e.prototype.mutationListener=function(){if(this.control){this.disabledChanged(this.disabled);this.readonlyChanged(this.readonly)}this.columnsChanged(this.columns);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};e.prototype.listenOnCheckboxChange=function(e){if(this.control){if(v(this.el,e.target)){x(e);this.updateValues()}}};e.prototype.resetHandler=function(e){var c=e.target;if(c===null||c===void 0?void 0:c.contains(this.el)){if(this.control){this.value=[]}this.onOptionChange()}};e.prototype.checkboxFocusListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.checkboxBlurListener=function(e){var c=e.target;if(c&&v(this.el,c)&&f(c,"bal-checkbox")){x(e)}};e.prototype.setValue=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){if(this.control){this.value=e}return[2]}))}))};e.prototype.getOptionByValue=function(e){return __awaiter(this,void 0,void 0,(function(){var c;return __generator(this,(function(o){c=this.options;if(c){return[2,c.find((function(c){return c.value===e}))]}return[2,undefined]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(c){this.ariaForm=Object.assign({},e);return[2]}))}))};e.prototype.sync=function(){var e=this;if(this.control){var c=function(c){for(var o=0;o<e.value.length;o++){var a=e.value[o];if(a!==undefined&&a.toString()===c.value.toString()){return true}}return false};this.getCheckboxes().forEach((function(e){e.checked=c(e)}))}this.getCheckboxes().forEach((function(c){if(e.interface){c.interface=e.interface}}))};e.prototype.getCheckboxes=function(){return Array.from(this.el.querySelectorAll("bal-checkbox"))};e.prototype.updateValues=function(){var e=[];this.getCheckboxes().forEach((function(c){if(c.checked){e.push(c.value)}}));if(!_(this.value,e)){this.value=__spreadArray([],e,true);this.balChange.emit(this.value)}};e.prototype.render=function(){var e=h.block("checkbox-group");var c=e.element("inner");var o=this.options||[];var l=o.map((function(e){if(typeof e.html==="function"){return Object.assign(Object.assign({},e),{html:e.html()})}return e}));return a(b,Object.assign({class:Object.assign({},e.class()),role:"group","aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-disabled":i(this.disabled),"aria-invalid":i(this.invalid),onClick:this.onClick},this.inheritedAttributes),a("div",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},c.class()),c.modifier("vertical-mobile").class(this.verticalOnMobile)),c.modifier("vertical").class(this.vertical)),c.modifier("expanded").class(this.expanded)),c.modifier("button").class(this.interface==="button"))},a("slot",null),l.map((function(e){return a("bal-checkbox",{key:e.value,name:e.name,value:e.value,labelHidden:e.labelHidden,flat:e.flat,interface:e.interface,disabled:e.disabled,readonly:e.readonly,required:e.required,nonSubmit:!!e.nonSubmit,invalid:e.invalid,innerHTML:e.html})}))))};Object.defineProperty(e.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{options:["optionChanged"],invalid:["invalidChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"],value:["valueChanged"],columns:["columnsChanged"],columnsTablet:["columnsTabletChanged"],columnsMobile:["columnsMobileChanged"]}},enumerable:false,configurable:true});return e}());t([p("bal-checkbox-group"),r("design:type",Function),r("design:paramtypes",[Function]),r("design:returntype",void 0)],z.prototype,"createLogger",null);t([y(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],z.prototype,"focusInListener",null);t([y(),r("design:type",Function),r("design:paramtypes",[FocusEvent]),r("design:returntype",void 0)],z.prototype,"focusOutListener",null);t([w({tags:["bal-checkbox-group","bal-checkbox"],attributes:false,characterData:false}),r("design:type",Function),r("design:paramtypes",[]),r("design:returntype",void 0)],z.prototype,"mutationListener",null);var S=0;z.style=L}}}));
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function o(t){try{u(n.next(t))}catch(t){a(t)}}function s(t){try{u(n["throw"](t))}catch(t){a(t)}}function u(t){t.done?r(t.value):i(t.value).then(o,s)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(r=0)),r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-db0895e2.system.js","./p-b79d8942.system.js","./p-9f7a1215.system.js","./p-490383ab.system.js","./p-14c507db.system.js","./p-fa5198a0.system.js","./p-4e642b63.system.js","./p-a1f6e944.system.js","./p-23bdd8dc.system.js","./p-6913b916.system.js","./p-863f4e4e.system.js","./p-ade9437f.system.js","./p-ec9a7cf5.system.js","./p-eecefb0a.system.js","./p-bccc3d48.system.js"],(function(t){"use strict";var e,r,n,i,a,o,s,u,c,f,l,v,p,d,b,h,_;return{setters:[function(t){e=t.r;r=t.h;n=t.H;i=t.g;a=t.c},function(t){o=t._;s=t.a},function(t){u=t.B},function(t){c=t.p},function(t){f=t.B},function(t){l=t.b},function(t){v=t.L},function(t){p=t.L},function(t){d=t.b;b=t.d},function(t){h=t.b},function(t){_=t.L},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var m="@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-color-light-blue-5)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background);width:auto;max-width:30rem;min-width:16.25rem}.bal-hint__content{background:var(--bal-hint-content-background);display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";var g=m;var y=t("bal_hint",function(){function t(t){var r=this;e(this,t);this.bodyScrollHandler=new f;this.componentId="bal-hint-".concat(w++);this.onPopupChange=function(t){r.isActive=t.detail;c(t)};this.isActive=false;this.innerCloseLabel="Close";this.isMobile=l.isMobile;this.closeLabel=undefined;this.small=false}t.prototype.connectedCallback=function(){this.bodyScrollHandler.connect()};t.prototype.componentDidRender=function(){this.updateContent()};t.prototype.disconnectedCallback=function(){this.bodyScrollHandler.disconnect()};t.prototype.breakpointListener=function(t){var e=t.mobile;if(e!==this.isMobile){this.isActive=false}this.isMobile=e};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.closeLabel){switch(t.language){case"de":this.innerCloseLabel="Schliessen";break;case"fr":this.innerCloseLabel="Fermer";break;case"it":this.innerCloseLabel="Chiudere";break;case"nl":this.innerCloseLabel="Sluiten";break;default:this.innerCloseLabel="Close";break}}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.isActive){this.dismiss()}else{this.present()}return[2]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.present()}if(this.isMobile){this.bodyScrollHandler.disable()}this.isActive=true;return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.dismiss()}if(this.isMobile){this.bodyScrollHandler.enable()}this.isActive=false;return[2]}))}))};t.prototype.updateContent=function(){if(this.hintContentEl&&this.slotWrapperEl){this.hintContentEl.innerHTML=this.slotWrapperEl.innerHTML}};t.prototype.render=function(){var t=this;var e=u.block("hint");var i=e.element("icon");var a=e.element("content");var o=a.element("buttons");var s=function(){return r("bal-icon",{class:Object.assign({},i.class()),"bal-popup":t.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:function(e){if(d(e)||b(e)){e.preventDefault();t.toggle()}}})};var c=function(){return r("div",{class:Object.assign({},a.class()),"data-testid":"bal-hint-content"},r("div",{ref:function(e){return t.hintContentEl=e}}),r("bal-button-group",{class:Object.assign(Object.assign({},o.class()),o.modifier("is-hidden-desktop").class(t.small))},r("bal-button",{"data-testid":"bal-hint-close",color:"info",onClick:function(){return t.dismiss()}},t.closeLabel?t.closeLabel:t.innerCloseLabel)))};var f=function(){return r("div",{class:Object.assign({},e.element("popup").class())},r(s,null),r("bal-popup",{id:t.componentId,placement:"right",ref:function(e){return t.popupElement=e},onBalChange:t.onPopupChange,variant:t.isMobile?"fullscreen":"popover",offset:t.isMobile?0:16},r("bal-popup-content",null,r(c,null))))};return r(n,{class:Object.assign({},e.class())},r(f,null),r("div",{ref:function(e){return t.slotWrapperEl=e},style:{display:"none"}},r("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],y.prototype,"breakpointListener",null);o([p(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",Promise)],y.prototype,"configChanged",null);var w=0;y.style=g;var x=t("bal_hint_text",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=u.block("hint");var e=t.element("content");var i=e.element("text");var a=i.element("field");return r(n,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},i.class())},r("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},a.class())},r("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))};return t}());var j=t("bal_hint_title",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=u.block("hint");var e=t.element("content");var i=e.element("title");var a=i.element("heading");return r(n,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},i.class())},r("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},a.class())},r("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},r("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))};return t}());var O="top";var k="bottom";var z="right";var A="left";var E="auto";var M=[O,k,z,A];var S="start";var P="end";var L="clippingParents";var C="viewport";var T="popper";var B="reference";var F=M.reduce((function(t,e){return t.concat([e+"-"+S,e+"-"+P])}),[]);var q=[].concat(M,[E]).reduce((function(t,e){return t.concat([e,e+"-"+S,e+"-"+P])}),[]);var W="beforeRead";var R="read";var I="afterRead";var H="beforeMain";var D="main";var G="afterMain";var K="beforeWrite";var N="write";var U="afterWrite";var V=[W,R,I,H,D,G,K,N,U];function J(t){return t?(t.nodeName||"").toLowerCase():null}function Q(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function X(t){var e=Q(t).Element;return t instanceof e||t instanceof Element}function Y(t){var e=Q(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Z(t){if(typeof ShadowRoot==="undefined"){return false}var e=Q(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{};var n=e.attributes[t]||{};var i=e.elements[t];if(!Y(i)||!J(i)){return}Object.assign(i.style,r);Object.keys(n).forEach((function(t){var e=n[t];if(e===false){i.removeAttribute(t)}else{i.setAttribute(t,e===true?"":e)}}))}))}function tt(t){var e=t.state;var r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,r.popper);e.styles=r;if(e.elements.arrow){Object.assign(e.elements.arrow.style,r.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t];var i=e.attributes[t]||{};var a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]);var o=a.reduce((function(t,e){t[e]="";return t}),{});if(!Y(n)||!J(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}var et={name:"applyStyles",enabled:true,phase:"write",fn:$,effect:tt,requires:["computeStyles"]};function rt(t){return t.split("-")[0]}var nt=Math.max;var it=Math.min;var at=Math.round;function ot(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function st(){return!/^((?!chrome|android).)*safari/i.test(ot())}function ut(t,e,r){if(e===void 0){e=false}if(r===void 0){r=false}var n=t.getBoundingClientRect();var i=1;var a=1;if(e&&Y(t)){i=t.offsetWidth>0?at(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?at(n.height)/t.offsetHeight||1:1}var o=X(t)?Q(t):window,s=o.visualViewport;var u=!st()&&r;var c=(n.left+(u&&s?s.offsetLeft:0))/i;var f=(n.top+(u&&s?s.offsetTop:0))/a;var l=n.width/i;var v=n.height/a;return{width:l,height:v,top:f,right:c+l,bottom:f+v,left:c,x:c,y:f}}function ct(t){var e=ut(t);var r=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(e.width-r)<=1){r=e.width}if(Math.abs(e.height-n)<=1){n=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function ft(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(r&&Z(r)){var n=e;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function lt(t){return Q(t).getComputedStyle(t)}function vt(t){return["table","td","th"].indexOf(J(t))>=0}function pt(t){return((X(t)?t.ownerDocument:t.document)||window.document).documentElement}function dt(t){if(J(t)==="html"){return t}return t.assignedSlot||t.parentNode||(Z(t)?t.host:null)||pt(t)}function bt(t){if(!Y(t)||lt(t).position==="fixed"){return null}return t.offsetParent}function ht(t){var e=/firefox/i.test(ot());var r=/Trident/i.test(ot());if(r&&Y(t)){var n=lt(t);if(n.position==="fixed"){return null}}var i=dt(t);if(Z(i)){i=i.host}while(Y(i)&&["html","body"].indexOf(J(i))<0){var a=lt(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function _t(t){var e=Q(t);var r=bt(t);while(r&&vt(r)&&lt(r).position==="static"){r=bt(r)}if(r&&(J(r)==="html"||J(r)==="body"&&lt(r).position==="static")){return e}return r||ht(t)||e}function mt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function gt(t,e,r){return nt(t,it(e,r))}function yt(t,e,r){var n=gt(t,e,r);return n>r?r:n}function wt(){return{top:0,right:0,bottom:0,left:0}}function xt(t){return Object.assign({},wt(),t)}function jt(t,e){return e.reduce((function(e,r){e[r]=t;return e}),{})}var Ot=function t(e,r){e=typeof e==="function"?e(Object.assign({},r.rects,{placement:r.placement})):e;return xt(typeof e!=="number"?e:jt(e,M))};function kt(t){var e;var r=t.state,n=t.name,i=t.options;var a=r.elements.arrow;var o=r.modifiersData.popperOffsets;var s=rt(r.placement);var u=mt(s);var c=[A,z].indexOf(s)>=0;var f=c?"height":"width";if(!a||!o){return}var l=Ot(i.padding,r);var v=ct(a);var p=u==="y"?O:A;var d=u==="y"?k:z;var b=r.rects.reference[f]+r.rects.reference[u]-o[u]-r.rects.popper[f];var h=o[u]-r.rects.reference[u];var _=_t(a);var m=_?u==="y"?_.clientHeight||0:_.clientWidth||0:0;var g=b/2-h/2;var y=l[p];var w=m-v[f]-l[d];var x=m/2-v[f]/2+g;var j=gt(y,x,w);var E=u;r.modifiersData[n]=(e={},e[E]=j,e.centerOffset=j-x,e)}function zt(t){var e=t.state,r=t.options;var n=r.element,i=n===void 0?"[data-popper-arrow]":n;if(i==null){return}if(typeof i==="string"){i=e.elements.popper.querySelector(i);if(!i){return}}if(!ft(e.elements.popper,i)){return}e.elements.arrow=i}var At={name:"arrow",enabled:true,phase:"main",fn:kt,effect:zt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Mt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function St(t,e){var r=t.x,n=t.y;var i=e.devicePixelRatio||1;return{x:at(r*i)/i||0,y:at(n*i)/i||0}}function Pt(t){var e;var r=t.popper,n=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,u=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,l=t.isFixed;var v=o.x,p=v===void 0?0:v,d=o.y,b=d===void 0?0:d;var h=typeof f==="function"?f({x:p,y:b}):{x:p,y:b};p=h.x;b=h.y;var _=o.hasOwnProperty("x");var m=o.hasOwnProperty("y");var g=A;var y=O;var w=window;if(c){var x=_t(r);var j="clientHeight";var E="clientWidth";if(x===Q(r)){x=pt(r);if(lt(x).position!=="static"&&s==="absolute"){j="scrollHeight";E="scrollWidth"}}x=x;if(i===O||(i===A||i===z)&&a===P){y=k;var M=l&&x===w&&w.visualViewport?w.visualViewport.height:x[j];b-=M-n.height;b*=u?1:-1}if(i===A||(i===O||i===k)&&a===P){g=z;var S=l&&x===w&&w.visualViewport?w.visualViewport.width:x[E];p-=S-n.width;p*=u?1:-1}}var L=Object.assign({position:s},c&&Mt);var C=f===true?St({x:p,y:b},Q(r)):{x:p,y:b};p=C.x;b=C.y;if(u){var T;return Object.assign({},L,(T={},T[y]=m?"0":"",T[g]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",T))}return Object.assign({},L,(e={},e[y]=m?b+"px":"",e[g]=_?p+"px":"",e.transform="",e))}function Lt(t){var e=t.state,r=t.options;var n=r.gpuAcceleration,i=n===void 0?true:n,a=r.adaptive,o=a===void 0?true:a,s=r.roundOffsets,u=s===void 0?true:s;var c={placement:rt(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,Pt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Pt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Ct={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Lt,data:{}};var Tt={passive:true};function Bt(t){var e=t.state,r=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,s=o===void 0?true:o;var u=Q(e.elements.popper);var c=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){c.forEach((function(t){t.addEventListener("scroll",r.update,Tt)}))}if(s){u.addEventListener("resize",r.update,Tt)}return function(){if(a){c.forEach((function(t){t.removeEventListener("scroll",r.update,Tt)}))}if(s){u.removeEventListener("resize",r.update,Tt)}}}var Ft={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:Bt,data:{}};var qt={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,(function(t){return qt[t]}))}var Rt={start:"end",end:"start"};function It(t){return t.replace(/start|end/g,(function(t){return Rt[t]}))}function Ht(t){var e=Q(t);var r=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Dt(t){return ut(pt(t)).left+Ht(t).scrollLeft}function Gt(t,e){var r=Q(t);var n=pt(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var s=0;var u=0;if(i){a=i.width;o=i.height;var c=st();if(c||!c&&e==="fixed"){s=i.offsetLeft;u=i.offsetTop}}return{width:a,height:o,x:s+Dt(t),y:u}}function Kt(t){var e;var r=pt(t);var n=Ht(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=nt(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=nt(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-n.scrollLeft+Dt(t);var u=-n.scrollTop;if(lt(i||r).direction==="rtl"){s+=nt(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:u}}function Nt(t){var e=lt(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ut(t){if(["html","body","#document"].indexOf(J(t))>=0){return t.ownerDocument.body}if(Y(t)&&Nt(t)){return t}return Ut(dt(t))}function Vt(t,e){var r;if(e===void 0){e=[]}var n=Ut(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=Q(n);var o=i?[a].concat(a.visualViewport||[],Nt(n)?n:[]):n;var s=e.concat(o);return i?s:s.concat(Vt(dt(o)))}function Jt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Qt(t,e){var r=ut(t,false,e==="fixed");r.top=r.top+t.clientTop;r.left=r.left+t.clientLeft;r.bottom=r.top+t.clientHeight;r.right=r.left+t.clientWidth;r.width=t.clientWidth;r.height=t.clientHeight;r.x=r.left;r.y=r.top;return r}function Xt(t,e,r){return e===C?Jt(Gt(t,r)):X(e)?Qt(e,r):Jt(Kt(pt(t)))}function Yt(t){var e=Vt(dt(t));var r=["absolute","fixed"].indexOf(lt(t).position)>=0;var n=r&&Y(t)?_t(t):t;if(!X(n)){return[]}return e.filter((function(t){return X(t)&&ft(t,n)&&J(t)!=="body"}))}function Zt(t,e,r,n){var i=e==="clippingParents"?Yt(t):[].concat(e);var a=[].concat(i,[r]);var o=a[0];var s=a.reduce((function(e,r){var i=Xt(t,r,n);e.top=nt(i.top,e.top);e.right=it(i.right,e.right);e.bottom=it(i.bottom,e.bottom);e.left=nt(i.left,e.left);return e}),Xt(t,o,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function $t(t){var e=t.reference,r=t.element,n=t.placement;var i=n?rt(n):null;var a=n?Et(n):null;var o=e.x+e.width/2-r.width/2;var s=e.y+e.height/2-r.height/2;var u;switch(i){case O:u={x:o,y:e.y-r.height};break;case k:u={x:o,y:e.y+e.height};break;case z:u={x:e.x+e.width,y:s};break;case A:u={x:e.x-r.width,y:s};break;default:u={x:e.x,y:e.y}}var c=i?mt(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case S:u[c]=u[c]-(e[f]/2-r[f]/2);break;case P:u[c]=u[c]+(e[f]/2-r[f]/2);break}}return u}function te(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=n===void 0?t.placement:n,a=r.strategy,o=a===void 0?t.strategy:a,s=r.boundary,u=s===void 0?L:s,c=r.rootBoundary,f=c===void 0?C:c,l=r.elementContext,v=l===void 0?T:l,p=r.altBoundary,d=p===void 0?false:p,b=r.padding,h=b===void 0?0:b;var _=xt(typeof h!=="number"?h:jt(h,M));var m=v===T?B:T;var g=t.rects.popper;var y=t.elements[d?m:v];var w=Zt(X(y)?y:y.contextElement||pt(t.elements.popper),u,f,o);var x=ut(t.elements.reference);var j=$t({reference:x,element:g,strategy:"absolute",placement:i});var A=Jt(Object.assign({},g,j));var E=v===T?A:x;var S={top:w.top-E.top+_.top,bottom:E.bottom-w.bottom+_.bottom,left:w.left-E.left+_.left,right:E.right-w.right+_.right};var P=t.modifiersData.offset;if(v===T&&P){var F=P[i];Object.keys(S).forEach((function(t){var e=[z,k].indexOf(t)>=0?1:-1;var r=[O,k].indexOf(t)>=0?"y":"x";S[t]+=F[r]*e}))}return S}function ee(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?q:u;var f=Et(n);var l=f?s?F:F.filter((function(t){return Et(t)===f})):M;var v=l.filter((function(t){return c.indexOf(t)>=0}));if(v.length===0){v=l}var p=v.reduce((function(e,r){e[r]=te(t,{placement:r,boundary:i,rootBoundary:a,padding:o})[rt(r)];return e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function re(t){if(rt(t)===E){return[]}var e=Wt(t);return[It(t),e,It(e)]}function ne(t){var e=t.state,r=t.options,n=t.name;if(e.modifiersData[n]._skip){return}var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,s=o===void 0?true:o,u=r.fallbackPlacements,c=r.padding,f=r.boundary,l=r.rootBoundary,v=r.altBoundary,p=r.flipVariations,d=p===void 0?true:p,b=r.allowedAutoPlacements;var h=e.options.placement;var _=rt(h);var m=_===h;var g=u||(m||!d?[Wt(h)]:re(h));var y=[h].concat(g).reduce((function(t,r){return t.concat(rt(r)===E?ee(e,{placement:r,boundary:f,rootBoundary:l,padding:c,flipVariations:d,allowedAutoPlacements:b}):r)}),[]);var w=e.rects.reference;var x=e.rects.popper;var j=new Map;var M=true;var P=y[0];for(var L=0;L<y.length;L++){var C=y[L];var T=rt(C);var B=Et(C)===S;var F=[O,k].indexOf(T)>=0;var q=F?"width":"height";var W=te(e,{placement:C,boundary:f,rootBoundary:l,altBoundary:v,padding:c});var R=F?B?z:A:B?k:O;if(w[q]>x[q]){R=Wt(R)}var I=Wt(R);var H=[];if(a){H.push(W[T]<=0)}if(s){H.push(W[R]<=0,W[I]<=0)}if(H.every((function(t){return t}))){P=C;M=false;break}j.set(C,H)}if(M){var D=d?3:1;var G=function t(e){var r=y.find((function(t){var r=j.get(t);if(r){return r.slice(0,e).every((function(t){return t}))}}));if(r){P=r;return"break"}};for(var K=D;K>0;K--){var N=G(K);if(N==="break")break}}if(e.placement!==P){e.modifiersData[n]._skip=true;e.placement=P;e.reset=true}}var ie={name:"flip",enabled:true,phase:"main",fn:ne,requiresIfExists:["offset"],data:{_skip:false}};function ae(t,e,r){if(r===void 0){r={x:0,y:0}}return{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function oe(t){return[O,z,k,A].some((function(e){return t[e]>=0}))}function se(t){var e=t.state,r=t.name;var n=e.rects.reference;var i=e.rects.popper;var a=e.modifiersData.preventOverflow;var o=te(e,{elementContext:"reference"});var s=te(e,{altBoundary:true});var u=ae(o,n);var c=ae(s,i,a);var f=oe(u);var l=oe(c);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:l};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}var ue={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:se};function ce(t,e,r){var n=rt(t);var i=[A,O].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},e,{placement:t})):r,o=a[0],s=a[1];o=o||0;s=(s||0)*i;return[A,z].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function fe(t){var e=t.state,r=t.options,n=t.name;var i=r.offset,a=i===void 0?[0,0]:i;var o=q.reduce((function(t,r){t[r]=ce(r,e.rects,a);return t}),{});var s=o[e.placement],u=s.x,c=s.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=u;e.modifiersData.popperOffsets.y+=c}e.modifiersData[n]=o}var le={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:fe};function ve(t){var e=t.state,r=t.name;e.modifiersData[r]=$t({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var pe={name:"popperOffsets",enabled:true,phase:"read",fn:ve,data:{}};function de(t){return t==="x"?"y":"x"}function be(t){var e=t.state,r=t.options,n=t.name;var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,s=o===void 0?false:o,u=r.boundary,c=r.rootBoundary,f=r.altBoundary,l=r.padding,v=r.tether,p=v===void 0?true:v,d=r.tetherOffset,b=d===void 0?0:d;var h=te(e,{boundary:u,rootBoundary:c,padding:l,altBoundary:f});var _=rt(e.placement);var m=Et(e.placement);var g=!m;var y=mt(_);var w=de(y);var x=e.modifiersData.popperOffsets;var j=e.rects.reference;var E=e.rects.popper;var M=typeof b==="function"?b(Object.assign({},e.rects,{placement:e.placement})):b;var P=typeof M==="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M);var L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var C={x:0,y:0};if(!x){return}if(a){var T;var B=y==="y"?O:A;var F=y==="y"?k:z;var q=y==="y"?"height":"width";var W=x[y];var R=W+h[B];var I=W-h[F];var H=p?-E[q]/2:0;var D=m===S?j[q]:E[q];var G=m===S?-E[q]:-j[q];var K=e.elements.arrow;var N=p&&K?ct(K):{width:0,height:0};var U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:wt();var V=U[B];var J=U[F];var Q=gt(0,j[q],N[q]);var X=g?j[q]/2-H-Q-V-P.mainAxis:D-Q-V-P.mainAxis;var Y=g?-j[q]/2+H+Q+J+P.mainAxis:G+Q+J+P.mainAxis;var Z=e.elements.arrow&&_t(e.elements.arrow);var $=Z?y==="y"?Z.clientTop||0:Z.clientLeft||0:0;var tt=(T=L==null?void 0:L[y])!=null?T:0;var et=W+X-tt-$;var at=W+Y-tt;var ot=gt(p?it(R,et):R,W,p?nt(I,at):I);x[y]=ot;C[y]=ot-W}if(s){var st;var ut=y==="x"?O:A;var ft=y==="x"?k:z;var lt=x[w];var vt=w==="y"?"height":"width";var pt=lt+h[ut];var dt=lt-h[ft];var bt=[O,A].indexOf(_)!==-1;var ht=(st=L==null?void 0:L[w])!=null?st:0;var xt=bt?pt:lt-j[vt]-E[vt]-ht+P.altAxis;var jt=bt?lt+j[vt]+E[vt]-ht-P.altAxis:dt;var Ot=p&&bt?yt(xt,lt,jt):gt(p?xt:pt,lt,p?jt:dt);x[w]=Ot;C[w]=Ot-lt}e.modifiersData[n]=C}var he={name:"preventOverflow",enabled:true,phase:"main",fn:be,requiresIfExists:["offset"]};function _e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function me(t){if(t===Q(t)||!Y(t)){return Ht(t)}else{return _e(t)}}function ge(t){var e=t.getBoundingClientRect();var r=at(e.width)/t.offsetWidth||1;var n=at(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ye(t,e,r){if(r===void 0){r=false}var n=Y(e);var i=Y(e)&&ge(e);var a=pt(e);var o=ut(t,i,r);var s={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(n||!n&&!r){if(J(e)!=="body"||Nt(a)){s=me(e)}if(Y(e)){u=ut(e,true);u.x+=e.clientLeft;u.y+=e.clientTop}else if(a){u.x=Dt(a)}}return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function we(t){var e=new Map;var r=new Set;var n=[];t.forEach((function(t){e.set(t.name,t)}));function i(t){r.add(t.name);var a=[].concat(t.requires||[],t.requiresIfExists||[]);a.forEach((function(t){if(!r.has(t)){var n=e.get(t);if(n){i(n)}}}));n.push(t)}t.forEach((function(t){if(!r.has(t.name)){i(t)}}));return n}function xe(t){var e=we(t);return V.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}function je(t){var e;return function(){if(!e){e=new Promise((function(r){Promise.resolve().then((function(){e=undefined;r(t())}))}))}return e}}function Oe(t){var e=t.reduce((function(t,e){var r=t[e.name];t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var ke={placement:"bottom",modifiers:[],strategy:"absolute"};function ze(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++){e[r]=arguments[r]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function Ae(t){if(t===void 0){t={}}var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?ke:i;return function t(e,r,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ke,a),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}};var s=[];var u=false;var c={state:o,setOptions:function t(i){var s=typeof i==="function"?i(o.options):i;l();o.options=Object.assign({},a,o.options,s);o.scrollParents={reference:X(e)?Vt(e):e.contextElement?Vt(e.contextElement):[],popper:Vt(r)};var u=xe(Oe([].concat(n,o.options.modifiers)));o.orderedModifiers=u.filter((function(t){return t.enabled}));f();return c.update()},forceUpdate:function t(){if(u){return}var e=o.elements,r=e.reference,n=e.popper;if(!ze(r,n)){return}o.rects={reference:ye(r,_t(n),o.options.strategy==="fixed"),popper:ct(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<o.orderedModifiers.length;i++){if(o.reset===true){o.reset=false;i=-1;continue}var a=o.orderedModifiers[i],s=a.fn,f=a.options,l=f===void 0?{}:f,v=a.name;if(typeof s==="function"){o=s({state:o,options:l,name:v,instance:c})||o}}},update:je((function(){return new Promise((function(t){c.forceUpdate();t(o)}))})),destroy:function t(){l();u=true}};if(!ze(e,r)){return c}c.setOptions(i).then((function(t){if(!u&&i.onFirstUpdate){i.onFirstUpdate(t)}}));function f(){o.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,n=r===void 0?{}:r,i=t.effect;if(typeof i==="function"){var a=i({state:o,name:e,instance:c,options:n});var u=function t(){};s.push(a||u)}}))}function l(){s.forEach((function(t){return t()}));s=[]}return c}}var Ee=[Ft,pe,Ct,et,le,ie,he,At,ue];var Me=Ae({defaultModifiers:Ee});var Se='.bal-popover__backdrop{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-popover-backdrop-height:100vh;--bal-popover-content-height-top-nav:100vh;--bal-popover-backdrop-background:var(--bal-color-primary-6);--bal-popover-backdrop-opacity:.8;--bal-popover-content-shadow:var(--bal-shadow-normal);--bal-popover-content-background:var(--bal-color-white);--bal-popover-content-background-grey:var(--bal-color-grey-2);--bal-popover-tooltip-background:var(--bal-color-primary-6);--bal-popover-tooltip-color:var(--bal-color-white);--bal-popover-tooltip-font-family:var(--bal-font-family-text);--bal-popover-tooltip-font-size:var(--bal-text-size-small)}.bal-popover{display:block}@media screen and (max-width: 768px){.bal-popover .bal-popover__content{min-width:100vw !important}.bal-popover .bal-select__popover{min-width:100% !important}}.bal-popover--active .bal-popover__content{display:block}.bal-popover--backdrop [bal-popover-trigger]{z-index:calc(var(--bal-z-index-popup) - 1);position:relative}@media screen and (max-width: 768px){.bal-popover--hint .bal-popover__content{min-height:100vh}.bal-popover--hint .bal-popover__content .bal-popover__content__inner{min-height:100vh}}@media screen and (min-width: 769px),print{.bal-popover--hint .bal-popover__content{max-width:20rem}}@media screen and (min-width: 1024px){.bal-popover--hint .bal-popover__content{max-width:30rem}}.bal-popover__backdrop{z-index:calc(var(--bal-z-index-popup) - 2);position:fixed;background:var(--bal-popover-backdrop-background);opacity:var(--bal-popover-backdrop-opacity);height:var(--bal-popover-backdrop-height);width:100vw}.bal-popover__content{display:none;z-index:var(--bal-z-index-popup);-webkit-box-shadow:var(--bal-popover-content-shadow);box-shadow:var(--bal-popover-content-shadow);background:var(--bal-popover-content-background);min-width:16.25rem}.bal-popover__content[data-show]{display:block}.bal-popover__content--expanded{min-width:100%}.bal-popover__content--no-shadow{-webkit-box-shadow:none;box-shadow:none}.bal-popover__content--radius-normal{border-radius:var(--bal-radius-normal)}.bal-popover__content--radius-large{border-radius:var(--bal-radius-large)}.bal-popover__content--radius-none{border-radius:0}.bal-popover__content--radius-normal-bottom-none{border-radius:var(--bal-radius-normal);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-normal-top-none{border-radius:var(--bal-radius-normal);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--radius-large-bottom-none{border-radius:var(--bal-radius-large);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-large-top-none{border-radius:var(--bal-radius-large);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--on-top{border-top:1px solid var(--bal-color-grey-2);height:var(--bal-popover-content-height-top-nav);overflow-y:auto}.bal-popover__content--color-grey{background:var(--bal-popover-content-background-grey)}.bal-popover__content__inner{max-height:calc(100vh - 4.5rem);overflow:auto;padding:1rem}@media screen and (min-width: 769px),print{.bal-popover__content__inner{padding:1.5rem}}@media screen and (min-width: 1024px){.bal-popover__content__inner{max-height:calc(100vh - 8rem)}}.bal-popover__content--spaceless .bal-popover__content__inner{padding:0}.bal-popover__content [data-popper-arrow]{display:none}.bal-popover__content__arrow{visibility:hidden}.bal-popover__content__arrow [data-popper-arrow]{display:block}.bal-popover__content__arrow,.bal-popover__content__arrow:before{position:absolute;width:.5rem;height:.5rem;background:inherit}.bal-popover__content__arrow:before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-popover__content[data-popper-placement^=top]>.bal-popover__content__arrow{bottom:-0.25rem}.bal-popover__content[data-popper-placement^=bottom]>.bal-popover__content__arrow{top:-0.25rem}.bal-popover__content[data-popper-placement^=left]>.bal-popover__content__arrow{right:-0.25rem}.bal-popover__content[data-popper-placement^=right]>.bal-popover__content__arrow{left:-0.25rem}.bal-popover--arrow .bal-popover__content__arrow{display:block}.bal-popover--tooltip .bal-popover__content{min-width:unset;background:var(--bal-popover-tooltip-background)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner{padding:var(--bal-space-x-small)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner,.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner p{color:var(--bal-popover-tooltip-color);font-family:var(--bal-popover-tooltip-font-family);font-size:var(--bal-popover-tooltip-font-size)}';var Pe=Se;var Le=t("bal_popover",function(){function t(t){e(this,t);this.balChange=a(this,"balChange",7);this.balWillAnimate=a(this,"balWillAnimate",7);this.balDidAnimate=a(this,"balDidAnimate",7);this.balPopoverPrepare=a(this,"balPopoverPrepare",7);this.popoverId="bal-po-".concat(Ce++);this.isTouch=l.isTouch;this.isInMainNav=false;this.backdropHeight=0;this.autoTrigger=false;this.hint=false;this.hover=false;this.arrow=false;this.backdrop=false;this.tooltip=false;this.offsetX=0;this.offsetY=0;this.padding=0;this.position="bottom-start";this.active=false;this.mobileTop=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.activeChanged=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(t===true&&t!==e){this.present({force:true})}else{this.dismiss({force:true})}return[2]}))}))};t.prototype.componentWillLoad=function(){this.backdropHeight=this.getBackdropHeight();this.triggerElement.setAttribute("aria-haspopup","true")};t.prototype.componentDidLoad=function(){var t=this;this.isInMainNav=this.footMobileNav!==null;if(this.triggerElement&&this.menuElement){this.popperInstance=Me(this.triggerElement,this.menuElement,{placement:this.tooltip?"bottom":this.position,modifiers:[this.modifierOffset,this.modifierPreventOverflow]});var e=[];var r=[];if(this.autoTrigger){e=["click"]}if(this.tooltip){e=["mouseenter","focus"];r=["mouseleave","blur"]}e.forEach((function(e){if(t.triggerElement){if(e==="click"){t.triggerElement.addEventListener(e,(function(){return t.toggle()}))}else{t.triggerElement.addEventListener(e,(function(){return t.present()}))}}}));r.forEach((function(e){if(t.triggerElement){t.triggerElement.addEventListener(e,(function(){return t.dismiss()}))}}))}};t.prototype.componentDidRender=function(){var t=this;if(this.popperInstance){this.popperInstance.setOptions((function(e){return Object.assign(Object.assign({},e),{placement:t.tooltip?"bottom":t.position,modifiers:__spreadArray(__spreadArray([],e.modifiers.filter((function(t){return t.name!=="offset"&&t.name!=="preventOverflow"})),true),[t.modifierOffset,t.modifierPreventOverflow],false)})}));this.updatePopper()}if(h.isSafari&&!this.isTouch){clearTimeout(this.componentDidRenderTimer);this.componentDidRenderTimer=setTimeout((function(){var e;var r=(e=t.el)===null||e===void 0?void 0:e.clientWidth;if(r){t.el.style.maxWidth="".concat(r,"px")}else{t.el.style.maxWidth="initial"}}))}};t.prototype.handlePopoverPrepare=function(t){var e=t.detail;if(this.popoverId!==e){this.dismiss()}};t.prototype.clickOnOutside=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){if(this.active){if(!this.el.contains(t.target)){this.active=false}if((e=this.backdropElement)===null||e===void 0?void 0:e.isEqualNode(t.target)){this.active=false}}return[2]}))}))};t.prototype.handleKeyUp=function(t){if(this.active&&(t.key==="Escape"||t.key==="Esc")){t.preventDefault();this.dismiss()}};t.prototype.tabOutside=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t.key==="Tab"&&!this.el.contains(document.activeElement)&&this.active))return[3,2];return[4,this.toggle()];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.breakpointListener=function(t){this.isTouch=t.touch;this.isInMainNav=this.footMobileNav!==null;this.backdropHeight=this.getBackdropHeight()};t.prototype.present=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(!this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.setAttribute("data-show","");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","false");if(this.menuInnerElement){this.menuInnerElement.scrollTo(0,0)}this.balPopoverPrepare.emit(this.popoverId);this.balWillAnimate.emit(this.active);this.active=true;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.removeAttribute("data-show");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","true");this.balWillAnimate.emit(this.active);this.active=false;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t={force:false}}return __generator(this,(function(e){switch(e.label){case 0:if(!this.active)return[3,2];return[4,this.dismiss(t)];case 1:e.sent();return[3,4];case 2:return[4,this.present(t)];case 3:e.sent();e.label=4;case 4:return[2]}}))}))};Object.defineProperty(t.prototype,"footMobileNav",{get:function(){return this.el.closest('[slot="meta-mobile-foot"]')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierOffset",{get:function(){return{name:"offset",options:{offset:[this.offsetX,this.offsetY+(this.tooltip||this.arrow?8:0)]}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierPreventOverflow",{get:function(){return{name:"preventOverflow",options:{padding:this.arrow||this.tooltip?8:this.padding,altAxis:true}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"triggerElement",{get:function(){return this.el.querySelector("[bal-popover-trigger]")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuElement",{get:function(){return this.el.querySelector("bal-popover-content")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuInnerElement",{get:function(){return this.el.querySelector(".bal-popover__content__inner")},enumerable:false,configurable:true});t.prototype.getBackdropHeight=function(){if(h.hasWindow){return this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16}return 0};t.prototype.updatePopper=function(){this.popperInstance.update()};t.prototype.render=function(){var t=this;var e=u.block("popover");return r(n,{key:"68021af74493241e20669b502f69896b1f02c610","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.class()),e.modifier("active").class(this.active)),e.modifier("tooltip").class(this.tooltip)),e.modifier("arrow").class(this.arrow)),e.modifier("hint").class(this.hint)),e.modifier("backdrop").class(this.backdrop))},!this.mobileTop&&r("div",{key:"1b92881a9b0808761b20f9f445f5a43b8cc9f1bb",ref:function(e){t.backdropElement=e},class:Object.assign({},e.element("backdrop").class(this.backdrop&&this.active)),style:{"--bal-popover-backdrop-height":"".concat(this.backdropHeight,"rem")}}),r("slot",{key:"f8aa58598f2d8a0ca7f836bd77aa0e80a1cb6b30"}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeChanged"]}},enumerable:false,configurable:true});return t}());o([_("bal-popover"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],Le.prototype,"createLogger",null);o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Le.prototype,"breakpointListener",null);var Ce=0;Le.style=Pe;var Te=t("bal_popover_content",function(){function t(t){e(this,t);this.isTouch=l.isTouch;this.spaceless=false;this.scrollable=0;this.contentWidth=0;this.contentMinWidth=0;this.color="white";this.expanded=false;this.radius="normal";this.noShadow=false;this.mobileTop=false;this.contentHeightOnTop=0}t.prototype.breakpointListener=function(t){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};Object.defineProperty(t.prototype,"innerStyle",{get:function(){var t={};if(this.scrollable>0){t={"max-height":"".concat(this.scrollable,"px"),overflow:"auto"}}return Object.assign({},t)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"contentStyle",{get:function(){var t={};var e={};var r={"--bal-popover-content-height-top-nav":"".concat(this.contentHeightOnTop/16,"rem")};if(this.contentWidth>0){t={"max-width":"".concat(this.contentWidth,"px")}}if(this.contentMinWidth>0){e={"min-width":"".concat(this.contentMinWidth,"px")}}return Object.assign(Object.assign(Object.assign({},t),e),r)},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};t.prototype.render=function(){var t=u.block("popover").element("content");return r(n,{key:"a9fcd1ea22fd05ad6be18b080c4dd4e88dc08d71",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("expanded").class(this.expanded)),t.modifier("spaceless").class(this.spaceless)),t.modifier("no-shadow").class(this.noShadow)),t.modifier("radius-".concat(this.radius)).class()),t.modifier("color-".concat(this.color)).class()),t.modifier("on-top").class(this.mobileTop)),"data-testid":"bal-popover-content",role:"tooltip",style:this.contentStyle},r("div",{key:"43cb910ae76b5dea745959c0eb84d1cf666f0bc6",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},r("slot",{key:"60d532af90339403cd863bebd249ae2134f8ce0d"})),r("div",{key:"d913a7220d213326381e703f7db8ea327e747dc0",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":true}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Te.prototype,"breakpointListener",null)}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,e,r,n){function i(t){return t instanceof r?t:new r((function(e){e(t)}))}return new(r||(r=Promise))((function(r,a){function o(t){try{u(n.next(t))}catch(t){a(t)}}function s(t){try{u(n["throw"](t))}catch(t){a(t)}}function u(t){t.done?r(t.value):i(t.value).then(o,s)}u((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var r={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,i,a,o;return o={next:s(0),throw:s(1),return:s(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function s(t){return function(e){return u([t,e])}}function u(s){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,s[0]&&(r=0)),r)try{if(n=1,i&&(a=s[0]&2?i["return"]:s[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,s[1])).done)return a;if(i=0,a)s=[s[0]&2,a.value];switch(s[0]){case 0:case 1:a=s;break;case 4:r.label++;return{value:s[1],done:false};case 5:r.label++;i=s[1];s=[0];continue;case 7:s=r.ops.pop();r.trys.pop();continue;default:if(!(a=r.trys,a=a.length>0&&a[a.length-1])&&(s[0]===6||s[0]===2)){r=0;continue}if(s[0]===3&&(!a||s[1]>a[0]&&s[1]<a[3])){r.label=s[1];break}if(s[0]===6&&r.label<a[1]){r.label=a[1];a=s;break}if(a&&r.label<a[2]){r.label=a[2];r.ops.push(s);break}if(a[2])r.ops.pop();r.trys.pop();continue}s=e.call(t,r)}catch(t){s=[6,t];i=0}finally{n=a=0}if(s[0]&5)throw s[1];return{value:s[0]?s[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,r){if(r||arguments.length===2)for(var n=0,i=e.length,a;n<i;n++){if(a||!(n in e)){if(!a)a=Array.prototype.slice.call(e,0,n);a[n]=e[n]}}return t.concat(a||Array.prototype.slice.call(e))};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-db0895e2.system.js","./p-b79d8942.system.js","./p-9f7a1215.system.js","./p-eaec547b.system.js","./p-01493e9f.system.js","./p-fa5198a0.system.js","./p-4e642b63.system.js","./p-a1f6e944.system.js","./p-23bdd8dc.system.js","./p-6913b916.system.js","./p-863f4e4e.system.js","./p-ade9437f.system.js","./p-ec9a7cf5.system.js","./p-eecefb0a.system.js","./p-d3480bd3.system.js"],(function(t){"use strict";var e,r,n,i,a,o,s,u,c,f,l,v,p,d,b,h,_;return{setters:[function(t){e=t.r;r=t.h;n=t.H;i=t.g;a=t.c},function(t){o=t._;s=t.a},function(t){u=t.B},function(t){c=t.p},function(t){f=t.B},function(t){l=t.b},function(t){v=t.L},function(t){p=t.L},function(t){d=t.b;b=t.d},function(t){h=t.b},function(t){_=t.L},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var m="@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-color-light-blue-5)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background);width:auto;max-width:30rem;min-width:16.25rem}.bal-hint__content{background:var(--bal-hint-content-background);display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";var g=m;var y=t("bal_hint",function(){function t(t){var r=this;e(this,t);this.bodyScrollHandler=new f;this.componentId="bal-hint-".concat(w++);this.onPopupChange=function(t){r.isActive=t.detail;c(t)};this.isActive=false;this.innerCloseLabel="Close";this.isMobile=l.isMobile;this.closeLabel=undefined;this.small=false}t.prototype.connectedCallback=function(){this.bodyScrollHandler.connect()};t.prototype.componentDidRender=function(){this.updateContent()};t.prototype.disconnectedCallback=function(){this.bodyScrollHandler.disconnect()};t.prototype.breakpointListener=function(t){var e=t.mobile;if(e!==this.isMobile){this.isActive=false}this.isMobile=e};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.closeLabel){switch(t.language){case"de":this.innerCloseLabel="Schliessen";break;case"fr":this.innerCloseLabel="Fermer";break;case"it":this.innerCloseLabel="Chiudere";break;case"nl":this.innerCloseLabel="Sluiten";break;default:this.innerCloseLabel="Close";break}}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.isActive){this.dismiss()}else{this.present()}return[2]}))}))};t.prototype.present=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.present()}if(this.isMobile){this.bodyScrollHandler.disable()}this.isActive=true;return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(this.popupElement){this.popupElement.dismiss()}if(this.isMobile){this.bodyScrollHandler.enable()}this.isActive=false;return[2]}))}))};t.prototype.updateContent=function(){if(this.hintContentEl&&this.slotWrapperEl){this.hintContentEl.innerHTML=this.slotWrapperEl.innerHTML}};t.prototype.render=function(){var t=this;var e=u.block("hint");var i=e.element("icon");var a=e.element("content");var o=a.element("buttons");var s=function(){return r("bal-icon",{class:Object.assign({},i.class()),"bal-popup":t.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:function(e){if(d(e)||b(e)){e.preventDefault();t.toggle()}}})};var c=function(){return r("div",{class:Object.assign({},a.class()),"data-testid":"bal-hint-content"},r("div",{ref:function(e){return t.hintContentEl=e}}),r("bal-button-group",{class:Object.assign(Object.assign({},o.class()),o.modifier("is-hidden-desktop").class(t.small))},r("bal-button",{"data-testid":"bal-hint-close",color:"info",onClick:function(){return t.dismiss()}},t.closeLabel?t.closeLabel:t.innerCloseLabel)))};var f=function(){return r("div",{class:Object.assign({},e.element("popup").class())},r(s,null),r("bal-popup",{id:t.componentId,placement:"right",ref:function(e){return t.popupElement=e},onBalChange:t.onPopupChange,variant:t.isMobile?"fullscreen":"popover",offset:t.isMobile?0:16},r("bal-popup-content",null,r(c,null))))};return r(n,{class:Object.assign({},e.class())},r(f,null),r("div",{ref:function(e){return t.slotWrapperEl=e},style:{display:"none"}},r("slot",null)))};Object.defineProperty(t.prototype,"element",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],y.prototype,"breakpointListener",null);o([p(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",Promise)],y.prototype,"configChanged",null);var w=0;y.style=g;var x=t("bal_hint_text",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=u.block("hint");var e=t.element("content");var i=e.element("text");var a=i.element("field");return r(n,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},i.class())},r("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},a.class())},r("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))};return t}());var j=t("bal_hint_title",function(){function t(t){e(this,t)}t.prototype.render=function(){var t=u.block("hint");var e=t.element("content");var i=e.element("title");var a=i.element("heading");return r(n,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},i.class())},r("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},a.class())},r("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},r("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))};return t}());var O="top";var k="bottom";var z="right";var A="left";var E="auto";var M=[O,k,z,A];var S="start";var P="end";var L="clippingParents";var C="viewport";var T="popper";var B="reference";var F=M.reduce((function(t,e){return t.concat([e+"-"+S,e+"-"+P])}),[]);var q=[].concat(M,[E]).reduce((function(t,e){return t.concat([e,e+"-"+S,e+"-"+P])}),[]);var W="beforeRead";var R="read";var I="afterRead";var H="beforeMain";var D="main";var G="afterMain";var K="beforeWrite";var N="write";var U="afterWrite";var V=[W,R,I,H,D,G,K,N,U];function J(t){return t?(t.nodeName||"").toLowerCase():null}function Q(t){if(t==null){return window}if(t.toString()!=="[object Window]"){var e=t.ownerDocument;return e?e.defaultView||window:window}return t}function X(t){var e=Q(t).Element;return t instanceof e||t instanceof Element}function Y(t){var e=Q(t).HTMLElement;return t instanceof e||t instanceof HTMLElement}function Z(t){if(typeof ShadowRoot==="undefined"){return false}var e=Q(t).ShadowRoot;return t instanceof e||t instanceof ShadowRoot}function $(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var r=e.styles[t]||{};var n=e.attributes[t]||{};var i=e.elements[t];if(!Y(i)||!J(i)){return}Object.assign(i.style,r);Object.keys(n).forEach((function(t){var e=n[t];if(e===false){i.removeAttribute(t)}else{i.setAttribute(t,e===true?"":e)}}))}))}function tt(t){var e=t.state;var r={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,r.popper);e.styles=r;if(e.elements.arrow){Object.assign(e.elements.arrow.style,r.arrow)}return function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t];var i=e.attributes[t]||{};var a=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:r[t]);var o=a.reduce((function(t,e){t[e]="";return t}),{});if(!Y(n)||!J(n)){return}Object.assign(n.style,o);Object.keys(i).forEach((function(t){n.removeAttribute(t)}))}))}}var et={name:"applyStyles",enabled:true,phase:"write",fn:$,effect:tt,requires:["computeStyles"]};function rt(t){return t.split("-")[0]}var nt=Math.max;var it=Math.min;var at=Math.round;function ot(){var t=navigator.userAgentData;if(t!=null&&t.brands&&Array.isArray(t.brands)){return t.brands.map((function(t){return t.brand+"/"+t.version})).join(" ")}return navigator.userAgent}function st(){return!/^((?!chrome|android).)*safari/i.test(ot())}function ut(t,e,r){if(e===void 0){e=false}if(r===void 0){r=false}var n=t.getBoundingClientRect();var i=1;var a=1;if(e&&Y(t)){i=t.offsetWidth>0?at(n.width)/t.offsetWidth||1:1;a=t.offsetHeight>0?at(n.height)/t.offsetHeight||1:1}var o=X(t)?Q(t):window,s=o.visualViewport;var u=!st()&&r;var c=(n.left+(u&&s?s.offsetLeft:0))/i;var f=(n.top+(u&&s?s.offsetTop:0))/a;var l=n.width/i;var v=n.height/a;return{width:l,height:v,top:f,right:c+l,bottom:f+v,left:c,x:c,y:f}}function ct(t){var e=ut(t);var r=t.offsetWidth;var n=t.offsetHeight;if(Math.abs(e.width-r)<=1){r=e.width}if(Math.abs(e.height-n)<=1){n=e.height}return{x:t.offsetLeft,y:t.offsetTop,width:r,height:n}}function ft(t,e){var r=e.getRootNode&&e.getRootNode();if(t.contains(e)){return true}else if(r&&Z(r)){var n=e;do{if(n&&t.isSameNode(n)){return true}n=n.parentNode||n.host}while(n)}return false}function lt(t){return Q(t).getComputedStyle(t)}function vt(t){return["table","td","th"].indexOf(J(t))>=0}function pt(t){return((X(t)?t.ownerDocument:t.document)||window.document).documentElement}function dt(t){if(J(t)==="html"){return t}return t.assignedSlot||t.parentNode||(Z(t)?t.host:null)||pt(t)}function bt(t){if(!Y(t)||lt(t).position==="fixed"){return null}return t.offsetParent}function ht(t){var e=/firefox/i.test(ot());var r=/Trident/i.test(ot());if(r&&Y(t)){var n=lt(t);if(n.position==="fixed"){return null}}var i=dt(t);if(Z(i)){i=i.host}while(Y(i)&&["html","body"].indexOf(J(i))<0){var a=lt(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none"){return i}else{i=i.parentNode}}return null}function _t(t){var e=Q(t);var r=bt(t);while(r&&vt(r)&&lt(r).position==="static"){r=bt(r)}if(r&&(J(r)==="html"||J(r)==="body"&&lt(r).position==="static")){return e}return r||ht(t)||e}function mt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function gt(t,e,r){return nt(t,it(e,r))}function yt(t,e,r){var n=gt(t,e,r);return n>r?r:n}function wt(){return{top:0,right:0,bottom:0,left:0}}function xt(t){return Object.assign({},wt(),t)}function jt(t,e){return e.reduce((function(e,r){e[r]=t;return e}),{})}var Ot=function t(e,r){e=typeof e==="function"?e(Object.assign({},r.rects,{placement:r.placement})):e;return xt(typeof e!=="number"?e:jt(e,M))};function kt(t){var e;var r=t.state,n=t.name,i=t.options;var a=r.elements.arrow;var o=r.modifiersData.popperOffsets;var s=rt(r.placement);var u=mt(s);var c=[A,z].indexOf(s)>=0;var f=c?"height":"width";if(!a||!o){return}var l=Ot(i.padding,r);var v=ct(a);var p=u==="y"?O:A;var d=u==="y"?k:z;var b=r.rects.reference[f]+r.rects.reference[u]-o[u]-r.rects.popper[f];var h=o[u]-r.rects.reference[u];var _=_t(a);var m=_?u==="y"?_.clientHeight||0:_.clientWidth||0:0;var g=b/2-h/2;var y=l[p];var w=m-v[f]-l[d];var x=m/2-v[f]/2+g;var j=gt(y,x,w);var E=u;r.modifiersData[n]=(e={},e[E]=j,e.centerOffset=j-x,e)}function zt(t){var e=t.state,r=t.options;var n=r.element,i=n===void 0?"[data-popper-arrow]":n;if(i==null){return}if(typeof i==="string"){i=e.elements.popper.querySelector(i);if(!i){return}}if(!ft(e.elements.popper,i)){return}e.elements.arrow=i}var At={name:"arrow",enabled:true,phase:"main",fn:kt,effect:zt,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Et(t){return t.split("-")[1]}var Mt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function St(t,e){var r=t.x,n=t.y;var i=e.devicePixelRatio||1;return{x:at(r*i)/i||0,y:at(n*i)/i||0}}function Pt(t){var e;var r=t.popper,n=t.popperRect,i=t.placement,a=t.variation,o=t.offsets,s=t.position,u=t.gpuAcceleration,c=t.adaptive,f=t.roundOffsets,l=t.isFixed;var v=o.x,p=v===void 0?0:v,d=o.y,b=d===void 0?0:d;var h=typeof f==="function"?f({x:p,y:b}):{x:p,y:b};p=h.x;b=h.y;var _=o.hasOwnProperty("x");var m=o.hasOwnProperty("y");var g=A;var y=O;var w=window;if(c){var x=_t(r);var j="clientHeight";var E="clientWidth";if(x===Q(r)){x=pt(r);if(lt(x).position!=="static"&&s==="absolute"){j="scrollHeight";E="scrollWidth"}}x=x;if(i===O||(i===A||i===z)&&a===P){y=k;var M=l&&x===w&&w.visualViewport?w.visualViewport.height:x[j];b-=M-n.height;b*=u?1:-1}if(i===A||(i===O||i===k)&&a===P){g=z;var S=l&&x===w&&w.visualViewport?w.visualViewport.width:x[E];p-=S-n.width;p*=u?1:-1}}var L=Object.assign({position:s},c&&Mt);var C=f===true?St({x:p,y:b},Q(r)):{x:p,y:b};p=C.x;b=C.y;if(u){var T;return Object.assign({},L,(T={},T[y]=m?"0":"",T[g]=_?"0":"",T.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+b+"px)":"translate3d("+p+"px, "+b+"px, 0)",T))}return Object.assign({},L,(e={},e[y]=m?b+"px":"",e[g]=_?p+"px":"",e.transform="",e))}function Lt(t){var e=t.state,r=t.options;var n=r.gpuAcceleration,i=n===void 0?true:n,a=r.adaptive,o=a===void 0?true:a,s=r.roundOffsets,u=s===void 0?true:s;var c={placement:rt(e.placement),variation:Et(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:e.options.strategy==="fixed"};if(e.modifiersData.popperOffsets!=null){e.styles.popper=Object.assign({},e.styles.popper,Pt(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:o,roundOffsets:u})))}if(e.modifiersData.arrow!=null){e.styles.arrow=Object.assign({},e.styles.arrow,Pt(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:false,roundOffsets:u})))}e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var Ct={name:"computeStyles",enabled:true,phase:"beforeWrite",fn:Lt,data:{}};var Tt={passive:true};function Bt(t){var e=t.state,r=t.instance,n=t.options;var i=n.scroll,a=i===void 0?true:i,o=n.resize,s=o===void 0?true:o;var u=Q(e.elements.popper);var c=[].concat(e.scrollParents.reference,e.scrollParents.popper);if(a){c.forEach((function(t){t.addEventListener("scroll",r.update,Tt)}))}if(s){u.addEventListener("resize",r.update,Tt)}return function(){if(a){c.forEach((function(t){t.removeEventListener("scroll",r.update,Tt)}))}if(s){u.removeEventListener("resize",r.update,Tt)}}}var Ft={name:"eventListeners",enabled:true,phase:"write",fn:function t(){},effect:Bt,data:{}};var qt={left:"right",right:"left",bottom:"top",top:"bottom"};function Wt(t){return t.replace(/left|right|bottom|top/g,(function(t){return qt[t]}))}var Rt={start:"end",end:"start"};function It(t){return t.replace(/start|end/g,(function(t){return Rt[t]}))}function Ht(t){var e=Q(t);var r=e.pageXOffset;var n=e.pageYOffset;return{scrollLeft:r,scrollTop:n}}function Dt(t){return ut(pt(t)).left+Ht(t).scrollLeft}function Gt(t,e){var r=Q(t);var n=pt(t);var i=r.visualViewport;var a=n.clientWidth;var o=n.clientHeight;var s=0;var u=0;if(i){a=i.width;o=i.height;var c=st();if(c||!c&&e==="fixed"){s=i.offsetLeft;u=i.offsetTop}}return{width:a,height:o,x:s+Dt(t),y:u}}function Kt(t){var e;var r=pt(t);var n=Ht(t);var i=(e=t.ownerDocument)==null?void 0:e.body;var a=nt(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0);var o=nt(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);var s=-n.scrollLeft+Dt(t);var u=-n.scrollTop;if(lt(i||r).direction==="rtl"){s+=nt(r.clientWidth,i?i.clientWidth:0)-a}return{width:a,height:o,x:s,y:u}}function Nt(t){var e=lt(t),r=e.overflow,n=e.overflowX,i=e.overflowY;return/auto|scroll|overlay|hidden/.test(r+i+n)}function Ut(t){if(["html","body","#document"].indexOf(J(t))>=0){return t.ownerDocument.body}if(Y(t)&&Nt(t)){return t}return Ut(dt(t))}function Vt(t,e){var r;if(e===void 0){e=[]}var n=Ut(t);var i=n===((r=t.ownerDocument)==null?void 0:r.body);var a=Q(n);var o=i?[a].concat(a.visualViewport||[],Nt(n)?n:[]):n;var s=e.concat(o);return i?s:s.concat(Vt(dt(o)))}function Jt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Qt(t,e){var r=ut(t,false,e==="fixed");r.top=r.top+t.clientTop;r.left=r.left+t.clientLeft;r.bottom=r.top+t.clientHeight;r.right=r.left+t.clientWidth;r.width=t.clientWidth;r.height=t.clientHeight;r.x=r.left;r.y=r.top;return r}function Xt(t,e,r){return e===C?Jt(Gt(t,r)):X(e)?Qt(e,r):Jt(Kt(pt(t)))}function Yt(t){var e=Vt(dt(t));var r=["absolute","fixed"].indexOf(lt(t).position)>=0;var n=r&&Y(t)?_t(t):t;if(!X(n)){return[]}return e.filter((function(t){return X(t)&&ft(t,n)&&J(t)!=="body"}))}function Zt(t,e,r,n){var i=e==="clippingParents"?Yt(t):[].concat(e);var a=[].concat(i,[r]);var o=a[0];var s=a.reduce((function(e,r){var i=Xt(t,r,n);e.top=nt(i.top,e.top);e.right=it(i.right,e.right);e.bottom=it(i.bottom,e.bottom);e.left=nt(i.left,e.left);return e}),Xt(t,o,n));s.width=s.right-s.left;s.height=s.bottom-s.top;s.x=s.left;s.y=s.top;return s}function $t(t){var e=t.reference,r=t.element,n=t.placement;var i=n?rt(n):null;var a=n?Et(n):null;var o=e.x+e.width/2-r.width/2;var s=e.y+e.height/2-r.height/2;var u;switch(i){case O:u={x:o,y:e.y-r.height};break;case k:u={x:o,y:e.y+e.height};break;case z:u={x:e.x+e.width,y:s};break;case A:u={x:e.x-r.width,y:s};break;default:u={x:e.x,y:e.y}}var c=i?mt(i):null;if(c!=null){var f=c==="y"?"height":"width";switch(a){case S:u[c]=u[c]-(e[f]/2-r[f]/2);break;case P:u[c]=u[c]+(e[f]/2-r[f]/2);break}}return u}function te(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=n===void 0?t.placement:n,a=r.strategy,o=a===void 0?t.strategy:a,s=r.boundary,u=s===void 0?L:s,c=r.rootBoundary,f=c===void 0?C:c,l=r.elementContext,v=l===void 0?T:l,p=r.altBoundary,d=p===void 0?false:p,b=r.padding,h=b===void 0?0:b;var _=xt(typeof h!=="number"?h:jt(h,M));var m=v===T?B:T;var g=t.rects.popper;var y=t.elements[d?m:v];var w=Zt(X(y)?y:y.contextElement||pt(t.elements.popper),u,f,o);var x=ut(t.elements.reference);var j=$t({reference:x,element:g,strategy:"absolute",placement:i});var A=Jt(Object.assign({},g,j));var E=v===T?A:x;var S={top:w.top-E.top+_.top,bottom:E.bottom-w.bottom+_.bottom,left:w.left-E.left+_.left,right:E.right-w.right+_.right};var P=t.modifiersData.offset;if(v===T&&P){var F=P[i];Object.keys(S).forEach((function(t){var e=[z,k].indexOf(t)>=0?1:-1;var r=[O,k].indexOf(t)>=0?"y":"x";S[t]+=F[r]*e}))}return S}function ee(t,e){if(e===void 0){e={}}var r=e,n=r.placement,i=r.boundary,a=r.rootBoundary,o=r.padding,s=r.flipVariations,u=r.allowedAutoPlacements,c=u===void 0?q:u;var f=Et(n);var l=f?s?F:F.filter((function(t){return Et(t)===f})):M;var v=l.filter((function(t){return c.indexOf(t)>=0}));if(v.length===0){v=l}var p=v.reduce((function(e,r){e[r]=te(t,{placement:r,boundary:i,rootBoundary:a,padding:o})[rt(r)];return e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}function re(t){if(rt(t)===E){return[]}var e=Wt(t);return[It(t),e,It(e)]}function ne(t){var e=t.state,r=t.options,n=t.name;if(e.modifiersData[n]._skip){return}var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,s=o===void 0?true:o,u=r.fallbackPlacements,c=r.padding,f=r.boundary,l=r.rootBoundary,v=r.altBoundary,p=r.flipVariations,d=p===void 0?true:p,b=r.allowedAutoPlacements;var h=e.options.placement;var _=rt(h);var m=_===h;var g=u||(m||!d?[Wt(h)]:re(h));var y=[h].concat(g).reduce((function(t,r){return t.concat(rt(r)===E?ee(e,{placement:r,boundary:f,rootBoundary:l,padding:c,flipVariations:d,allowedAutoPlacements:b}):r)}),[]);var w=e.rects.reference;var x=e.rects.popper;var j=new Map;var M=true;var P=y[0];for(var L=0;L<y.length;L++){var C=y[L];var T=rt(C);var B=Et(C)===S;var F=[O,k].indexOf(T)>=0;var q=F?"width":"height";var W=te(e,{placement:C,boundary:f,rootBoundary:l,altBoundary:v,padding:c});var R=F?B?z:A:B?k:O;if(w[q]>x[q]){R=Wt(R)}var I=Wt(R);var H=[];if(a){H.push(W[T]<=0)}if(s){H.push(W[R]<=0,W[I]<=0)}if(H.every((function(t){return t}))){P=C;M=false;break}j.set(C,H)}if(M){var D=d?3:1;var G=function t(e){var r=y.find((function(t){var r=j.get(t);if(r){return r.slice(0,e).every((function(t){return t}))}}));if(r){P=r;return"break"}};for(var K=D;K>0;K--){var N=G(K);if(N==="break")break}}if(e.placement!==P){e.modifiersData[n]._skip=true;e.placement=P;e.reset=true}}var ie={name:"flip",enabled:true,phase:"main",fn:ne,requiresIfExists:["offset"],data:{_skip:false}};function ae(t,e,r){if(r===void 0){r={x:0,y:0}}return{top:t.top-e.height-r.y,right:t.right-e.width+r.x,bottom:t.bottom-e.height+r.y,left:t.left-e.width-r.x}}function oe(t){return[O,z,k,A].some((function(e){return t[e]>=0}))}function se(t){var e=t.state,r=t.name;var n=e.rects.reference;var i=e.rects.popper;var a=e.modifiersData.preventOverflow;var o=te(e,{elementContext:"reference"});var s=te(e,{altBoundary:true});var u=ae(o,n);var c=ae(s,i,a);var f=oe(u);var l=oe(c);e.modifiersData[r]={referenceClippingOffsets:u,popperEscapeOffsets:c,isReferenceHidden:f,hasPopperEscaped:l};e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":l})}var ue={name:"hide",enabled:true,phase:"main",requiresIfExists:["preventOverflow"],fn:se};function ce(t,e,r){var n=rt(t);var i=[A,O].indexOf(n)>=0?-1:1;var a=typeof r==="function"?r(Object.assign({},e,{placement:t})):r,o=a[0],s=a[1];o=o||0;s=(s||0)*i;return[A,z].indexOf(n)>=0?{x:s,y:o}:{x:o,y:s}}function fe(t){var e=t.state,r=t.options,n=t.name;var i=r.offset,a=i===void 0?[0,0]:i;var o=q.reduce((function(t,r){t[r]=ce(r,e.rects,a);return t}),{});var s=o[e.placement],u=s.x,c=s.y;if(e.modifiersData.popperOffsets!=null){e.modifiersData.popperOffsets.x+=u;e.modifiersData.popperOffsets.y+=c}e.modifiersData[n]=o}var le={name:"offset",enabled:true,phase:"main",requires:["popperOffsets"],fn:fe};function ve(t){var e=t.state,r=t.name;e.modifiersData[r]=$t({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var pe={name:"popperOffsets",enabled:true,phase:"read",fn:ve,data:{}};function de(t){return t==="x"?"y":"x"}function be(t){var e=t.state,r=t.options,n=t.name;var i=r.mainAxis,a=i===void 0?true:i,o=r.altAxis,s=o===void 0?false:o,u=r.boundary,c=r.rootBoundary,f=r.altBoundary,l=r.padding,v=r.tether,p=v===void 0?true:v,d=r.tetherOffset,b=d===void 0?0:d;var h=te(e,{boundary:u,rootBoundary:c,padding:l,altBoundary:f});var _=rt(e.placement);var m=Et(e.placement);var g=!m;var y=mt(_);var w=de(y);var x=e.modifiersData.popperOffsets;var j=e.rects.reference;var E=e.rects.popper;var M=typeof b==="function"?b(Object.assign({},e.rects,{placement:e.placement})):b;var P=typeof M==="number"?{mainAxis:M,altAxis:M}:Object.assign({mainAxis:0,altAxis:0},M);var L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null;var C={x:0,y:0};if(!x){return}if(a){var T;var B=y==="y"?O:A;var F=y==="y"?k:z;var q=y==="y"?"height":"width";var W=x[y];var R=W+h[B];var I=W-h[F];var H=p?-E[q]/2:0;var D=m===S?j[q]:E[q];var G=m===S?-E[q]:-j[q];var K=e.elements.arrow;var N=p&&K?ct(K):{width:0,height:0};var U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:wt();var V=U[B];var J=U[F];var Q=gt(0,j[q],N[q]);var X=g?j[q]/2-H-Q-V-P.mainAxis:D-Q-V-P.mainAxis;var Y=g?-j[q]/2+H+Q+J+P.mainAxis:G+Q+J+P.mainAxis;var Z=e.elements.arrow&&_t(e.elements.arrow);var $=Z?y==="y"?Z.clientTop||0:Z.clientLeft||0:0;var tt=(T=L==null?void 0:L[y])!=null?T:0;var et=W+X-tt-$;var at=W+Y-tt;var ot=gt(p?it(R,et):R,W,p?nt(I,at):I);x[y]=ot;C[y]=ot-W}if(s){var st;var ut=y==="x"?O:A;var ft=y==="x"?k:z;var lt=x[w];var vt=w==="y"?"height":"width";var pt=lt+h[ut];var dt=lt-h[ft];var bt=[O,A].indexOf(_)!==-1;var ht=(st=L==null?void 0:L[w])!=null?st:0;var xt=bt?pt:lt-j[vt]-E[vt]-ht+P.altAxis;var jt=bt?lt+j[vt]+E[vt]-ht-P.altAxis:dt;var Ot=p&&bt?yt(xt,lt,jt):gt(p?xt:pt,lt,p?jt:dt);x[w]=Ot;C[w]=Ot-lt}e.modifiersData[n]=C}var he={name:"preventOverflow",enabled:true,phase:"main",fn:be,requiresIfExists:["offset"]};function _e(t){return{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}}function me(t){if(t===Q(t)||!Y(t)){return Ht(t)}else{return _e(t)}}function ge(t){var e=t.getBoundingClientRect();var r=at(e.width)/t.offsetWidth||1;var n=at(e.height)/t.offsetHeight||1;return r!==1||n!==1}function ye(t,e,r){if(r===void 0){r=false}var n=Y(e);var i=Y(e)&&ge(e);var a=pt(e);var o=ut(t,i,r);var s={scrollLeft:0,scrollTop:0};var u={x:0,y:0};if(n||!n&&!r){if(J(e)!=="body"||Nt(a)){s=me(e)}if(Y(e)){u=ut(e,true);u.x+=e.clientLeft;u.y+=e.clientTop}else if(a){u.x=Dt(a)}}return{x:o.left+s.scrollLeft-u.x,y:o.top+s.scrollTop-u.y,width:o.width,height:o.height}}function we(t){var e=new Map;var r=new Set;var n=[];t.forEach((function(t){e.set(t.name,t)}));function i(t){r.add(t.name);var a=[].concat(t.requires||[],t.requiresIfExists||[]);a.forEach((function(t){if(!r.has(t)){var n=e.get(t);if(n){i(n)}}}));n.push(t)}t.forEach((function(t){if(!r.has(t.name)){i(t)}}));return n}function xe(t){var e=we(t);return V.reduce((function(t,r){return t.concat(e.filter((function(t){return t.phase===r})))}),[])}function je(t){var e;return function(){if(!e){e=new Promise((function(r){Promise.resolve().then((function(){e=undefined;r(t())}))}))}return e}}function Oe(t){var e=t.reduce((function(t,e){var r=t[e.name];t[e.name]=r?Object.assign({},r,e,{options:Object.assign({},r.options,e.options),data:Object.assign({},r.data,e.data)}):e;return t}),{});return Object.keys(e).map((function(t){return e[t]}))}var ke={placement:"bottom",modifiers:[],strategy:"absolute"};function ze(){for(var t=arguments.length,e=new Array(t),r=0;r<t;r++){e[r]=arguments[r]}return!e.some((function(t){return!(t&&typeof t.getBoundingClientRect==="function")}))}function Ae(t){if(t===void 0){t={}}var e=t,r=e.defaultModifiers,n=r===void 0?[]:r,i=e.defaultOptions,a=i===void 0?ke:i;return function t(e,r,i){if(i===void 0){i=a}var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},ke,a),modifiersData:{},elements:{reference:e,popper:r},attributes:{},styles:{}};var s=[];var u=false;var c={state:o,setOptions:function t(i){var s=typeof i==="function"?i(o.options):i;l();o.options=Object.assign({},a,o.options,s);o.scrollParents={reference:X(e)?Vt(e):e.contextElement?Vt(e.contextElement):[],popper:Vt(r)};var u=xe(Oe([].concat(n,o.options.modifiers)));o.orderedModifiers=u.filter((function(t){return t.enabled}));f();return c.update()},forceUpdate:function t(){if(u){return}var e=o.elements,r=e.reference,n=e.popper;if(!ze(r,n)){return}o.rects={reference:ye(r,_t(n),o.options.strategy==="fixed"),popper:ct(n)};o.reset=false;o.placement=o.options.placement;o.orderedModifiers.forEach((function(t){return o.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<o.orderedModifiers.length;i++){if(o.reset===true){o.reset=false;i=-1;continue}var a=o.orderedModifiers[i],s=a.fn,f=a.options,l=f===void 0?{}:f,v=a.name;if(typeof s==="function"){o=s({state:o,options:l,name:v,instance:c})||o}}},update:je((function(){return new Promise((function(t){c.forceUpdate();t(o)}))})),destroy:function t(){l();u=true}};if(!ze(e,r)){return c}c.setOptions(i).then((function(t){if(!u&&i.onFirstUpdate){i.onFirstUpdate(t)}}));function f(){o.orderedModifiers.forEach((function(t){var e=t.name,r=t.options,n=r===void 0?{}:r,i=t.effect;if(typeof i==="function"){var a=i({state:o,name:e,instance:c,options:n});var u=function t(){};s.push(a||u)}}))}function l(){s.forEach((function(t){return t()}));s=[]}return c}}var Ee=[Ft,pe,Ct,et,le,ie,he,At,ue];var Me=Ae({defaultModifiers:Ee});var Se='.bal-popover__backdrop{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-popover-backdrop-height:100vh;--bal-popover-content-height-top-nav:100vh;--bal-popover-backdrop-background:var(--bal-color-primary-6);--bal-popover-backdrop-opacity:.8;--bal-popover-content-shadow:var(--bal-shadow-normal);--bal-popover-content-background:var(--bal-color-white);--bal-popover-content-background-grey:var(--bal-color-grey-2);--bal-popover-tooltip-background:var(--bal-color-primary-6);--bal-popover-tooltip-color:var(--bal-color-white);--bal-popover-tooltip-font-family:var(--bal-font-family-text);--bal-popover-tooltip-font-size:var(--bal-text-size-small)}.bal-popover{display:block}@media screen and (max-width: 768px){.bal-popover .bal-popover__content{min-width:100vw !important}.bal-popover .bal-select__popover{min-width:100% !important}}.bal-popover--active .bal-popover__content{display:block}.bal-popover--backdrop [bal-popover-trigger]{z-index:calc(var(--bal-z-index-popup) - 1);position:relative}@media screen and (max-width: 768px){.bal-popover--hint .bal-popover__content{min-height:100vh}.bal-popover--hint .bal-popover__content .bal-popover__content__inner{min-height:100vh}}@media screen and (min-width: 769px),print{.bal-popover--hint .bal-popover__content{max-width:20rem}}@media screen and (min-width: 1024px){.bal-popover--hint .bal-popover__content{max-width:30rem}}.bal-popover__backdrop{z-index:calc(var(--bal-z-index-popup) - 2);position:fixed;background:var(--bal-popover-backdrop-background);opacity:var(--bal-popover-backdrop-opacity);height:var(--bal-popover-backdrop-height);width:100vw}.bal-popover__content{display:none;z-index:var(--bal-z-index-popup);-webkit-box-shadow:var(--bal-popover-content-shadow);box-shadow:var(--bal-popover-content-shadow);background:var(--bal-popover-content-background);min-width:16.25rem}.bal-popover__content[data-show]{display:block}.bal-popover__content--expanded{min-width:100%}.bal-popover__content--no-shadow{-webkit-box-shadow:none;box-shadow:none}.bal-popover__content--radius-normal{border-radius:var(--bal-radius-normal)}.bal-popover__content--radius-large{border-radius:var(--bal-radius-large)}.bal-popover__content--radius-none{border-radius:0}.bal-popover__content--radius-normal-bottom-none{border-radius:var(--bal-radius-normal);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-normal-top-none{border-radius:var(--bal-radius-normal);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--radius-large-bottom-none{border-radius:var(--bal-radius-large);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-large-top-none{border-radius:var(--bal-radius-large);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--on-top{border-top:1px solid var(--bal-color-grey-2);height:var(--bal-popover-content-height-top-nav);overflow-y:auto}.bal-popover__content--color-grey{background:var(--bal-popover-content-background-grey)}.bal-popover__content__inner{max-height:calc(100vh - 4.5rem);overflow:auto;padding:1rem}@media screen and (min-width: 769px),print{.bal-popover__content__inner{padding:1.5rem}}@media screen and (min-width: 1024px){.bal-popover__content__inner{max-height:calc(100vh - 8rem)}}.bal-popover__content--spaceless .bal-popover__content__inner{padding:0}.bal-popover__content [data-popper-arrow]{display:none}.bal-popover__content__arrow{visibility:hidden}.bal-popover__content__arrow [data-popper-arrow]{display:block}.bal-popover__content__arrow,.bal-popover__content__arrow:before{position:absolute;width:.5rem;height:.5rem;background:inherit}.bal-popover__content__arrow:before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-popover__content[data-popper-placement^=top]>.bal-popover__content__arrow{bottom:-0.25rem}.bal-popover__content[data-popper-placement^=bottom]>.bal-popover__content__arrow{top:-0.25rem}.bal-popover__content[data-popper-placement^=left]>.bal-popover__content__arrow{right:-0.25rem}.bal-popover__content[data-popper-placement^=right]>.bal-popover__content__arrow{left:-0.25rem}.bal-popover--arrow .bal-popover__content__arrow{display:block}.bal-popover--tooltip .bal-popover__content{min-width:unset;background:var(--bal-popover-tooltip-background)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner{padding:var(--bal-space-x-small)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner,.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner p{color:var(--bal-popover-tooltip-color);font-family:var(--bal-popover-tooltip-font-family);font-size:var(--bal-popover-tooltip-font-size)}';var Pe=Se;var Le=t("bal_popover",function(){function t(t){e(this,t);this.balChange=a(this,"balChange",7);this.balWillAnimate=a(this,"balWillAnimate",7);this.balDidAnimate=a(this,"balDidAnimate",7);this.balPopoverPrepare=a(this,"balPopoverPrepare",7);this.popoverId="bal-po-".concat(Ce++);this.isTouch=l.isTouch;this.isInMainNav=false;this.backdropHeight=0;this.autoTrigger=false;this.hint=false;this.hover=false;this.arrow=false;this.backdrop=false;this.tooltip=false;this.offsetX=0;this.offsetY=0;this.padding=0;this.position="bottom-start";this.active=false;this.mobileTop=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.activeChanged=function(t,e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(r){if(t===true&&t!==e){this.present({force:true})}else{this.dismiss({force:true})}return[2]}))}))};t.prototype.componentWillLoad=function(){this.backdropHeight=this.getBackdropHeight();this.triggerElement.setAttribute("aria-haspopup","true")};t.prototype.componentDidLoad=function(){var t=this;this.isInMainNav=this.footMobileNav!==null;if(this.triggerElement&&this.menuElement){this.popperInstance=Me(this.triggerElement,this.menuElement,{placement:this.tooltip?"bottom":this.position,modifiers:[this.modifierOffset,this.modifierPreventOverflow]});var e=[];var r=[];if(this.autoTrigger){e=["click"]}if(this.tooltip){e=["mouseenter","focus"];r=["mouseleave","blur"]}e.forEach((function(e){if(t.triggerElement){if(e==="click"){t.triggerElement.addEventListener(e,(function(){return t.toggle()}))}else{t.triggerElement.addEventListener(e,(function(){return t.present()}))}}}));r.forEach((function(e){if(t.triggerElement){t.triggerElement.addEventListener(e,(function(){return t.dismiss()}))}}))}};t.prototype.componentDidRender=function(){var t=this;if(this.popperInstance){this.popperInstance.setOptions((function(e){return Object.assign(Object.assign({},e),{placement:t.tooltip?"bottom":t.position,modifiers:__spreadArray(__spreadArray([],e.modifiers.filter((function(t){return t.name!=="offset"&&t.name!=="preventOverflow"})),true),[t.modifierOffset,t.modifierPreventOverflow],false)})}));this.updatePopper()}if(h.isSafari&&!this.isTouch){clearTimeout(this.componentDidRenderTimer);this.componentDidRenderTimer=setTimeout((function(){var e;var r=(e=t.el)===null||e===void 0?void 0:e.clientWidth;if(r){t.el.style.maxWidth="".concat(r,"px")}else{t.el.style.maxWidth="initial"}}))}};t.prototype.handlePopoverPrepare=function(t){var e=t.detail;if(this.popoverId!==e){this.dismiss()}};t.prototype.clickOnOutside=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(r){if(this.active){if(!this.el.contains(t.target)){this.active=false}if((e=this.backdropElement)===null||e===void 0?void 0:e.isEqualNode(t.target)){this.active=false}}return[2]}))}))};t.prototype.handleKeyUp=function(t){if(this.active&&(t.key==="Escape"||t.key==="Esc")){t.preventDefault();this.dismiss()}};t.prototype.tabOutside=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(t.key==="Tab"&&!this.el.contains(document.activeElement)&&this.active))return[3,2];return[4,this.toggle()];case 1:e.sent();e.label=2;case 2:return[2]}}))}))};t.prototype.breakpointListener=function(t){this.isTouch=t.touch;this.isInMainNav=this.footMobileNav!==null;this.backdropHeight=this.getBackdropHeight()};t.prototype.present=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(!this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.setAttribute("data-show","");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","false");if(this.menuInnerElement){this.menuInnerElement.scrollTo(0,0)}this.balPopoverPrepare.emit(this.popoverId);this.balWillAnimate.emit(this.active);this.active=true;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:true}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.dismiss=function(){return __awaiter(this,arguments,void 0,(function(t){var e,r;if(t===void 0){t={force:false}}return __generator(this,(function(n){if(this.active||t.force){(e=this.menuElement)===null||e===void 0?void 0:e.removeAttribute("data-show");(r=this.menuElement)===null||r===void 0?void 0:r.setAttribute("aria-hidden","true");this.balWillAnimate.emit(this.active);this.active=false;this.popperInstance.setOptions((function(t){return Object.assign(Object.assign({},t),{modifiers:__spreadArray(__spreadArray([],t.modifiers,true),[{name:"eventListeners",enabled:false}],false)})}));this.updatePopper();this.balChange.emit(this.active);this.balDidAnimate.emit(this.active)}return[2]}))}))};t.prototype.toggle=function(){return __awaiter(this,arguments,void 0,(function(t){if(t===void 0){t={force:false}}return __generator(this,(function(e){switch(e.label){case 0:if(!this.active)return[3,2];return[4,this.dismiss(t)];case 1:e.sent();return[3,4];case 2:return[4,this.present(t)];case 3:e.sent();e.label=4;case 4:return[2]}}))}))};Object.defineProperty(t.prototype,"footMobileNav",{get:function(){return this.el.closest('[slot="meta-mobile-foot"]')},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierOffset",{get:function(){return{name:"offset",options:{offset:[this.offsetX,this.offsetY+(this.tooltip||this.arrow?8:0)]}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"modifierPreventOverflow",{get:function(){return{name:"preventOverflow",options:{padding:this.arrow||this.tooltip?8:this.padding,altAxis:true}}},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"triggerElement",{get:function(){return this.el.querySelector("[bal-popover-trigger]")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuElement",{get:function(){return this.el.querySelector("bal-popover-content")},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"menuInnerElement",{get:function(){return this.el.querySelector(".bal-popover__content__inner")},enumerable:false,configurable:true});t.prototype.getBackdropHeight=function(){if(h.hasWindow){return this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16}return 0};t.prototype.updatePopper=function(){this.popperInstance.update()};t.prototype.render=function(){var t=this;var e=u.block("popover");return r(n,{key:"68021af74493241e20669b502f69896b1f02c610","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.class()),e.modifier("active").class(this.active)),e.modifier("tooltip").class(this.tooltip)),e.modifier("arrow").class(this.arrow)),e.modifier("hint").class(this.hint)),e.modifier("backdrop").class(this.backdrop))},!this.mobileTop&&r("div",{key:"1b92881a9b0808761b20f9f445f5a43b8cc9f1bb",ref:function(e){t.backdropElement=e},class:Object.assign({},e.element("backdrop").class(this.backdrop&&this.active)),style:{"--bal-popover-backdrop-height":"".concat(this.backdropHeight,"rem")}}),r("slot",{key:"f8aa58598f2d8a0ca7f836bd77aa0e80a1cb6b30"}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{active:["activeChanged"]}},enumerable:false,configurable:true});return t}());o([_("bal-popover"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],Le.prototype,"createLogger",null);o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Le.prototype,"breakpointListener",null);var Ce=0;Le.style=Pe;var Te=t("bal_popover_content",function(){function t(t){e(this,t);this.isTouch=l.isTouch;this.spaceless=false;this.scrollable=0;this.contentWidth=0;this.contentMinWidth=0;this.color="white";this.expanded=false;this.radius="normal";this.noShadow=false;this.mobileTop=false;this.contentHeightOnTop=0}t.prototype.breakpointListener=function(t){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};Object.defineProperty(t.prototype,"innerStyle",{get:function(){var t={};if(this.scrollable>0){t={"max-height":"".concat(this.scrollable,"px"),overflow:"auto"}}return Object.assign({},t)},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"contentStyle",{get:function(){var t={};var e={};var r={"--bal-popover-content-height-top-nav":"".concat(this.contentHeightOnTop/16,"rem")};if(this.contentWidth>0){t={"max-width":"".concat(this.contentWidth,"px")}}if(this.contentMinWidth>0){e={"min-width":"".concat(this.contentMinWidth,"px")}}return Object.assign(Object.assign(Object.assign({},t),e),r)},enumerable:false,configurable:true});t.prototype.componentWillLoad=function(){if(h.hasWindow){this.contentHeightOnTop=window.innerHeight-64}};t.prototype.render=function(){var t=u.block("popover").element("content");return r(n,{key:"a9fcd1ea22fd05ad6be18b080c4dd4e88dc08d71",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("expanded").class(this.expanded)),t.modifier("spaceless").class(this.spaceless)),t.modifier("no-shadow").class(this.noShadow)),t.modifier("radius-".concat(this.radius)).class()),t.modifier("color-".concat(this.color)).class()),t.modifier("on-top").class(this.mobileTop)),"data-testid":"bal-popover-content",role:"tooltip",style:this.contentStyle},r("div",{key:"43cb910ae76b5dea745959c0eb84d1cf666f0bc6",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},r("slot",{key:"60d532af90339403cd863bebd249ae2134f8ce0d"})),r("div",{key:"d913a7220d213326381e703f7db8ea327e747dc0",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":true}))};Object.defineProperty(t.prototype,"el",{get:function(){return i(this)},enumerable:false,configurable:true});return t}());o([v(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],Te.prototype,"breakpointListener",null)}}}));
@@ -0,0 +1 @@
1
+ import{r as t,c as i,h as s,H as a,g as e}from"./p-2ccbe55a.js";import{_ as o,a as n}from"./p-43c9f5e9.js";import{B as p}from"./p-ae86d0a0.js";import{b as r}from"./p-a65354df.js";import{s as h}from"./p-79f6f58b.js";import{k as l}from"./p-a255c9b3.js";import{L as c}from"./p-b77e3348.js";import{b as d}from"./p-301a6b23.js";import{c as b}from"./p-dc98854c.js";import"./p-a7be57b6.js";class u{showContainerElement(t){t.containerEl&&this.showElement(t.containerEl)}hideContainerElement(t){t.containerEl&&this.hideElement(t.containerEl)}showArrowElement(t,i=t.arrow){i&&t.arrowEl&&this.showElement(t.arrowEl)}hideArrowElement(t){t.arrowEl&&Object.assign(t.arrowEl.style,{left:"",top:"",display:"none",visibility:"hidden"})}showBackdropElement(t,i=t.backdrop){i&&t.backdropEl&&this.showElement(t.backdropEl)}hideBackdropElement(t){t.backdropEl&&this.hideElement(t.backdropEl)}showElement(t){t&&(t.style.setProperty("display","block"),t.style.setProperty("visibility","visible"))}hideElement(t){t&&(t.style.removeProperty("display"),t.style.removeProperty("visibility"))}}class v extends u{constructor(){super(...arguments),this.backdrop=!1,this.offset=0}async present(t){return!!(t.containerEl&&t.trigger&&t.backdropEl)&&(this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop),this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset),t.containerEl.style.setProperty("inset","auto 0px 0px 0px"),t.containerEl.style.setProperty("bottom",`${this.offset}px`),t.backdropEl.style.setProperty("bottom",`${this.offset}px`),this.showBackdropElement(t,this.backdrop),this.showContainerElement(t),!0)}async update(t){return!1}async dismiss(t){return!(!t.containerEl||!t.backdropEl||(t.balWillAnimate.emit(),this.hideBackdropElement(t),this.hideContainerElement(t),t.containerEl.style.removeProperty("inset"),t.containerEl.style.removeProperty("bottom"),t.backdropEl.style.removeProperty("bottom"),0))}}class m extends u{constructor(){super(...arguments),this.offset=0}async present(t){return!(!t.containerEl||!t.trigger||(this.offset=t.getValue(t.trigger,"bal-popup-offset",t.offset),t.containerEl.style.setProperty("inset",`${this.offset}px auto auto 0px`),this.offset>0&&t.containerEl.style.setProperty("box-shadow","inset var(--bal-nav-meta-bar-variant-white-shadow)"),this.showBackdropElement(t),this.showContainerElement(t),this.hideArrowElement(t),0))}async update(t){return!1}async dismiss(t){return!!t.containerEl&&(this.hideBackdropElement(t),this.hideContainerElement(t),this.hideArrowElement(t),t.containerEl.style.removeProperty("box-shadow"),t.containerEl.style.removeProperty("inset"),!0)}}class w extends u{constructor(){super(...arguments),this.placement="bottom",this.offset=0,this.arrow=!1,this.backdrop=!1,this.reference=void 0,this.triggerEl=null}async present(t){const i=await d.load();if(!t.trigger&&r.hasDocument){const i=Array.from(document.querySelectorAll(`[bal-popup="${t.el.id}"]`))[0];t.trigger=i}if(t.trigger&&t.containerEl&&t.arrowEl){if(this.placement=t.getValue(t.trigger,"bal-popup-placement",t.placement),this.arrow=t.getBooleanValue(t.trigger,"bal-popup-arrow",t.arrow),this.backdrop=t.getBooleanValue(t.trigger,"bal-popup-backdrop",t.backdrop),this.reference=t.getValue(t.trigger,"bal-popup-reference",t.reference),this.offset=t.getNumberValue(t.trigger,"bal-popup-offset",t.offset),this.triggerEl=t.trigger,this.reference&&r.hasDocument){const i=document.getElementById(this.reference);this.triggerEl=i||t.trigger}if(this.triggerEl)return this.showContainerElement(t),this.showBackdropElement(t,this.backdrop),this.showArrowElement(t,this.arrow),this.triggerEl.classList.add("bal-popup-variant-popover-trigger"),"bottom-end"===this.placement&&this.triggerEl!==t.trigger&&t.setMinWidth(this.triggerEl.clientWidth),this.cleanup=i.autoUpdate(this.triggerEl,t.containerEl,(()=>{this.update(t)}),{ancestorScroll:!0,ancestorResize:!0,elementResize:!1,layoutShift:!0,animationFrame:!0}),!0}return!1}async update(t){var i,s;if(this.triggerEl&&t.trigger&&t.containerEl&&t.arrowEl){const a=await d.load(),e="bottom-end"===this.placement&&this.triggerEl!==t.trigger,o=null===(i=this.triggerEl)||void 0===i?void 0:i.getBoundingClientRect(),n=null===(s=t.trigger)||void 0===s?void 0:s.getBoundingClientRect();let p=!1;return r.hasWindow&&(p=!!window.frameElement),a.computePosition(this.triggerEl,t.containerEl,{placement:this.placement,middleware:[p?void 0:a.shift(),a.flip(),a.offset(this.arrow?16:this.offset),a.arrow({element:t.arrowEl,padding:4})]}).then((({x:i,y:s,middlewareData:a,placement:p})=>{if(t.containerEl){Object.assign(t.containerEl.style,{left:`${i}px`,top:`${s}px`});const r={top:"bottom",right:"left",bottom:"top",left:"right"}[p.split("-")[0]];if(a.arrow&&t.arrowEl){const p=a.arrow;Object.assign(t.arrowEl.style,e?{right:o.right-n.right-4+n.width/2+"px",left:"",top:null!=s&&null!=p.y?`${p.y}px`:"",bottom:"",[r]:"-4px"}:{left:null!=i&&null!=p.x?`${p.x}px`:"",top:null!=s&&null!=p.y?`${p.y}px`:"",right:"",bottom:"",[r]:"-4px"})}}})),!0}return!1}async dismiss(t){return!!(t.containerEl&&t.arrowEl&&this.triggerEl)&&(this.cleanup&&this.cleanup(),this.triggerEl.classList.remove("bal-popup-variant-popover-trigger"),this.hideBackdropElement(t),this.hideContainerElement(t),this.hideArrowElement(t),!0)}}class g{constructor(t){this.renderer=t}async present(t){t.balWillAnimate.emit();const i=await this.renderer.present(t);return i&&(t.presented=!0,t.balDidAnimate.emit()),i}async update(t){t.balWillAnimate.emit();const i=await this.renderer.update(t);return i&&t.balDidAnimate.emit(),i}async dismiss(t){t.balWillAnimate.emit();const i=await this.renderer.dismiss(t);return i&&(t.presented=!1,t.balDidAnimate.emit()),i}}const f=class{constructor(s){t(this,s),this.balChange=i(this,"balChange",7),this.balWillAnimate=i(this,"balWillAnimate",7),this.balDidAnimate=i(this,"balDidAnimate",7),this.popupId="bal-pu-"+y++,this.isClickedOutsideOnMouseDown=!1,this.isClickedOutsideOnMouseUp=!1,this.popoverVariantRenderer=new g(new w),this.fullscreenVariantRenderer=new g(new m),this.drawerVariantRenderer=new g(new v),this.lastVariant="popover",this.initialActive=this.active,this.debouncedGlobalClick=l((t=>this.notifyGlobalClick(t)),10),this.onBackdropClick=t=>!!(this.activeBackdropDismiss&&this.presented&&t&&t.target)&&t.target.classList.contains("bal-popup__backdrop"),this.onCloseClick=()=>{this.activeClosable&&this.dismiss()},this.activeClosable=!1,this.activeBackdropDismiss=!1,this.activeVariant="popover",this.trigger=void 0,this.lastTrigger=void 0,this.minContainerWidth="16.25rem",this.label="",this.reference=void 0,this.variant="popover",this.placement="bottom",this.arrow=!1,this.backdrop=!1,this.offset=0,this.closable=!1,this.backdropDismiss=!1,this.active=!1,this.presented=!1,this.contentWidth=void 0,this.demo=!1}createLogger(t){this.log=t}async variantChanged(t,i){t!==i&&(await this.getVariantRenderer(i).dismiss(this),this.activeVariant!==t&&(this.lastVariant=this.activeVariant,this.activeVariant=t,await this.getVariantRenderer(this.lastVariant).dismiss(this)),this.presented&&await this.getVariantRenderer(t).present(this))}async activeChanged(t,i){t!==i&&t!==this.presented&&(t?this.present():this.dismiss())}contentWidthChanged(t,i){t!==i&&(void 0===t?this.el.style.removeProperty("--bal-popup-variant-popover-max-width"):this.el.style.setProperty("--bal-popup-variant-popover-max-width",`${this.contentWidth}px`))}componentDidLoad(){this.contentWidthChanged(this.contentWidth,0),!0===this.initialActive&&!0!==this.presented&&this.present(),this.demo&&this.present()}async listenOnGlobalClick(t){var i;const s=t.target.closest("[bal-popup]");if(s&&r.hasWindow){const t=(null===(i=s.attributes.getNamedItem("bal-popup"))||void 0===i?void 0:i.nodeValue)||"";this.el.id===t&&this.debouncedGlobalClick(s)}}async listenOnKeyDown(t){this.activeClosable&&this.presented&&b(t)&&(h(t),this.dismiss())}async listenOnMouseDown(t){this.isClickedOutsideOnMouseDown=this.onBackdropClick(t)}async listenOnMouseUp(t){this.isClickedOutsideOnMouseUp=this.onBackdropClick(t)}async listenOnComponentClick(){this.presented&&this.activeBackdropDismiss&&this.isClickedOutsideOnMouseUp&&this.isClickedOutsideOnMouseDown&&await this.dismiss()}async present(){await this.resetAllVariants(),await this._present()&&(this.lastTrigger=this.trigger,this.balChange.emit(this.presented))}async dismiss(){await this.resetAllVariants(),await this._dismiss()&&(this.lastTrigger=this.trigger,this.balChange.emit(this.presented))}async toggle(){return this.presented?this.dismiss():this.present()}async setMinWidth(t){this.containerEl&&(this.containerEl.style.minWidth=`${t}px`,this.minContainerWidth=`${t}px`)}async _emitChange(){this.balChange.emit(this.presented)}async _present(){r.hasDocument&&(this.lastFocus=document.activeElement||void 0),this.lastVariantRenderer&&(await this.lastVariantRenderer.dismiss(this),this.presented=!0),this.lastVariantRenderer=this.getVariantRenderer();const t=await this.lastVariantRenderer.present(this);return this.focusFirstDescendant(),t}async _dismiss(){var t;const i=await this.getVariantRenderer().dismiss(this);return this.lastVariantRenderer=void 0,this.lastFocus&&this.lastFocus.focus&&(null===(t=this.lastFocus)||void 0===t||t.focus({preventScroll:!0})),i}getVariantRenderer(t=this.activeVariant){switch(t){case"fullscreen":return this.fullscreenVariantRenderer;case"drawer":return this.drawerVariantRenderer;default:return this.popoverVariantRenderer}}getValue(t,i,s){const a=t.attributes.getNamedItem(i);return a?a.value:s}getNumberValue(t,i,s){const a=t.attributes.getNamedItem(i);return a&&parseInt(a.value,10)||s}getBooleanValue(t,i,s){const a=t.attributes.getNamedItem(i);return a&&a?""===a.value||"true"===a.value:s}notifyGlobalClick(t){this.trigger=t,this.lastTrigger=void 0===this.lastTrigger?this.trigger:this.lastTrigger,this.activeVariant=this.getValue(t,"bal-popup-variant",this.variant),this.activeClosable=this.getBooleanValue(t,"bal-popup-closable",this.closable),this.activeBackdropDismiss=this.getBooleanValue(t,"bal-popup-backdrop-dismiss",this.backdropDismiss),this.presented&&this.lastTrigger!==this.trigger?(this._present(),this.lastTrigger=this.trigger):this.toggle()}async resetAllVariants(){if(await this.dismissAllOtherPopups(),this.lastVariant!==this.activeVariant){const t=this.getVariantRenderer(this.lastVariant);await t.dismiss(this)}this.lastVariant=this.activeVariant}async dismissAllOtherPopups(){if(r.hasDocument){const t=Array.from(document.getElementsByTagName("bal-popup")).filter((t=>t.id!==this.el.id&&"true"!==t.ariaHidden));for(let i=0;i<t.length;i++){const s=t[i];await s._dismiss(),await s._emitChange()}}}focusFirstDescendant(){const t=this.contentEl;t&&t.focus({preventScroll:!0})}render(){const t=p.block("popup"),i=t.element("container"),e=t.element("arrow"),o=t.element("backdrop"),n=t.element("inner"),r=n.element("head"),h=n.element("content");return s(a,{key:"4ad1ef7a26405280b668dc964e36e45b12523830",class:Object.assign({},t.class()),role:"dialog","aria-hidden":`${!0!==this.presented}`,"aria-modal":`${!0===this.presented}`,"aria-presented":`${!0===this.presented}`,"aria-labelledby":`${this.popupId}-heading`},s("div",{key:"d9c7aa58b64ba58bdd73195b4c988698ddac0141",class:Object.assign({},o.class()),ref:t=>this.backdropEl=t}),s("div",{key:"e1aa90db041a2960e23aae4b4d49c89ebfaa777b",class:Object.assign(Object.assign({},i.class()),i.modifier(`variant-${this.activeVariant}`).class()),ref:t=>this.containerEl=t,style:{minWidth:this.minContainerWidth}},s("div",{key:"b2bccd97aad258a0a3246293a8250be6207f0368",class:Object.assign({},e.class()),ref:t=>this.arrowEl=t}),s("bal-stack",{key:"f44ec75a2d463fd81f46c0c1d2175907747c4346",layout:"vertical",px:"popover"===this.activeVariant?"medium":"none",py:"medium",class:Object.assign({},n.class())},this.label?s("bal-stack",{space:"auto",class:Object.assign({},r.class())},s("bal-heading",{"data-test":"bal-popup-label",level:"span","visual-level":"large",id:`${this.popupId}-heading`},this.label),this.activeClosable?s("bal-close",{"data-test":"bal-popup-close",tabindex:-1,onClick:()=>this.onCloseClick()}):""):"",s("div",{key:"bebd41411dcc4960ee1e0ab9e08a6494ede835bd",class:Object.assign({},h.class()),ref:t=>this.contentEl=t,"data-test":"bal-popup-content",tabindex:"-1"},s("slot",{key:"3f06f9d1303b4a785c358954fe79744f4daa019c"})))))}get el(){return e(this)}static get watchers(){return{variant:["variantChanged"],active:["activeChanged"],contentWidth:["contentWidthChanged"]}}};o([c("bal-popup"),n("design:type",Function),n("design:paramtypes",[Function]),n("design:returntype",void 0)],f.prototype,"createLogger",null);let y=0;f.style=":root{--bal-popup-backdrop-background:rgba(0,7,57,.8);--bal-popup-container-padding-top:0;--bal-popup-container-padding-bottom:0;--bal-popup-container-background:var(--bal-color-white);--bal-popup-variant-popover-max-width:auto;--bal-popup-variant-popover-radius:var(--bal-radius-large);--bal-popup-variant-popover-shadow:var(--bal-shadow-normal);--bal-popup-variant-drawer-radius:var(--bal-radius-large);--bal-popup-arrow-background:var(--bal-color-white)}.bal-popup{position:static;display:inline;z-index:var(--bal-z-index-popup)}.bal-popup__container{background:var(--bal-popup-container-background);display:none;visibility:hidden;padding-top:var(--bal-popup-container-padding-top);padding-bottom:var(--bal-popup-container-padding-bottom);-ms-flex-positive:1;flex-grow:1;margin:0 auto;position:relative;width:auto}.bal-popup__container--variant-popover{border-radius:var(--bal-popup-variant-popover-radius);-webkit-box-shadow:var(--bal-popup-variant-popover-shadow);box-shadow:var(--bal-popup-variant-popover-shadow);width:var(--bal-popup-variant-popover-max-width);position:absolute;top:0;left:0}.bal-popup__container--variant-fullscreen{position:fixed;margin:0;width:100%;min-width:100%;max-width:100% !important;min-height:var(--bal-app-height, 100%)}.bal-popup__container--variant-fullscreen .bal-popup__inner{padding-left:var(--bal-container-space);padding-right:var(--bal-container-space)}.bal-popup__container--variant-drawer{position:fixed;border-top-left-radius:var(--bal-popup-variant-drawer-radius);border-top-right-radius:var(--bal-popup-variant-drawer-radius);padding-left:var(--bal-container-space);padding-right:var(--bal-container-space);width:100%}.bal-popup__inner{overflow-y:auto;max-height:calc(var(--bal-app-height, 100%) - 4rem)}.bal-popup__inner__head{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bal-popup__inner__content{width:100%}.bal-popup__arrow{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:absolute;width:8px;height:8px;background:var(--bal-popup-arrow-background);-webkit-transform:rotate(45deg);transform:rotate(45deg);display:none;visibility:hidden}.bal-popup__backdrop{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:fixed;bottom:0;left:0;right:0;top:0;background-color:var(--bal-popup-backdrop-background);width:100vw;height:100vh;display:none;visibility:hidden}.bal-popup-variant-popover-trigger,.bal-popup-permanent-trigger{z-index:calc(var(--bal-z-index-popup) + 1) !important;position:relative !important}";export{f as bal_popup}
@@ -0,0 +1 @@
1
+ var __awaiter=this&&this.__awaiter||function(n,e,t,r){function i(n){return n instanceof t?n:new t((function(e){e(n)}))}return new(t||(t=Promise))((function(t,a){function o(n){try{f(r.next(n))}catch(n){a(n)}}function u(n){try{f(r["throw"](n))}catch(n){a(n)}}function f(n){n.done?t(n.value):i(n.value).then(o,u)}f((r=r.apply(n,e||[])).next())}))};var __generator=this&&this.__generator||function(n,e){var t={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},r,i,a,o;return o={next:u(0),throw:u(1),return:u(2)},typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function u(n){return function(e){return f([n,e])}}function f(u){if(r)throw new TypeError("Generator is already executing.");while(o&&(o=0,u[0]&&(t=0)),t)try{if(r=1,i&&(a=u[0]&2?i["return"]:u[0]?i["throw"]||((a=i["return"])&&a.call(i),0):i.next)&&!(a=a.call(i,u[1])).done)return a;if(i=0,a)u=[u[0]&2,a.value];switch(u[0]){case 0:case 1:a=u;break;case 4:t.label++;return{value:u[1],done:false};case 5:t.label++;i=u[1];u=[0];continue;case 7:u=t.ops.pop();t.trys.pop();continue;default:if(!(a=t.trys,a=a.length>0&&a[a.length-1])&&(u[0]===6||u[0]===2)){t=0;continue}if(u[0]===3&&(!a||u[1]>a[0]&&u[1]<a[3])){t.label=u[1];break}if(u[0]===6&&t.label<a[1]){t.label=a[1];a=u;break}if(a&&t.label<a[2]){t.label=a[2];t.ops.push(u);break}if(a[2])t.ops.pop();t.trys.pop();continue}u=e.call(n,t)}catch(n){u=[6,n];i=0}finally{r=a=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:true}}};System.register(["./p-a1f6e944.system.js","./p-863f4e4e.system.js"],(function(n){"use strict";var e,t,r;return{setters:[function(n){e=n.b},function(n){t=n.l;r=n.r}],execute:function(){var i=this;var a='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .bal-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .bal-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])';var o=function(n,e){var t=n.querySelector(a);f(t,e!==null&&e!==void 0?e:n)};var u=function(n,e){var t=Array.from(n.querySelectorAll(a));var r=t.length>0?t[t.length-1]:null;f(r,e!==null&&e!==void 0?e:n)};var f=function(n,e){var t=n;var r=n===null||n===void 0?void 0:n.shadowRoot;if(r){t=r.querySelector(a)||n}if(t){c(t)}else{e.focus({preventScroll:true})}};var c=function(n){n.focus({preventScroll:true});if(n.classList.contains("bal-focusable")){var e=n.closest("bal-app");if(e){e.setFocus([n])}}};var d=0;var l="backdrop";var s=n("p",(function(n){if(e.hasDocument){h(document)}var t=d++;n.overlayIndex=t;if(!n.el.hasAttribute("id")){n.el.id="bal-overlay-".concat(t)}}));var v=n("g",(function(n,e){if(e===undefined){e="bal-modal,bal-snackbar,bal-toast"}return Array.from(n.querySelectorAll(e)).filter((function(n){return n.overlayIndex>0}))}));var b=n("a",(function(n,e,t){var r=v(n,e);return t===undefined?r[r.length-1]:r.find((function(n){return n.id===t}))}));var h=function(n){if(d===0){d=1;n.addEventListener("focus",(function(e){m(e,n)}),true);n.addEventListener("keyup",(function(e){if(e.key==="Escape"){var t=b(n);if(t){t.dismiss(undefined,l)}}}))}};var y=function(n,e,t){var r=p(n,e);return t===undefined?r[r.length-1]:r.find((function(n){return n.id===t}))};var p=function(n,e){return v(n,e).filter((function(n){return!w(n)}))};var w=function(n){return n.classList.contains("is-hidden")};var m=function(n,e){var t=y(e,"bal-modal");var r=n.target;if(!t||!r){return}var i=function(){if(t===r){t.lastFocus=undefined}else{var n=t;var i=n.querySelector(".bal-modal__container");if(!i){return}if(i.contains(r)||r===n.querySelector("bal-modal__background")){t.lastFocus=r}else{var a=t.lastFocus;o(i,t);if(a===e.activeElement){u(i,t)}t.lastFocus=e.activeElement}}};var a=function(){if(t.contains(r)){t.lastFocus=r}else if(r.tagName==="BAL-TOAST"){S(t.lastFocus,t)}else{var n=t.lastFocus;o(t);if(n===e.activeElement){u(t)}t.lastFocus=e.activeElement}};if(t.shadowRoot){a()}else{i()}};var x=n("d",(function(n,e,t,r){return __awaiter(i,void 0,void 0,(function(){var i;return __generator(this,(function(a){switch(a.label){case 0:if(!n.presented){return[2,false]}a.label=1;case 1:a.trys.push([1,3,,4]);n.el.style.setProperty("pointer-events","none");n.willDismiss.emit({data:e,role:t});return[4,r()];case 2:a.sent();n.presented=false;n.didDismiss.emit({data:e,role:t});return[3,4];case 3:i=a.sent();n.presented=false;console.error(i);return[3,4];case 4:n.el.remove();return[2,true]}}))}))}));var _=n("e",(function(n,e){var t;var r=new Promise((function(n){return t=n}));k(n,e,(function(n){t(n.detail)}));return r}));var k=function(n,e,i){var a=function(t){r(n,e,a);i(t)};t(n,e,a)};var S=function(n,e){var t=n;var r=n===null||n===void 0?void 0:n.shadowRoot;if(r){t=r.querySelector(a)||n}if(t){c(t)}else{e.focus()}};var g=n("F","bal-disable-focus-trap")}}}));