@baloise/ds-core 17.2.1 → 17.2.2-nightly.20250109

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 (790) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/bal-accordion.js +1 -1
  4. package/components/bal-app.js +1 -93
  5. package/components/bal-app2.js +95 -0
  6. package/components/bal-button2.js +3 -11
  7. package/components/bal-carousel-item.js +117 -1
  8. package/components/bal-carousel.js +261 -1
  9. package/components/bal-checkbox-button.js +1 -1
  10. package/components/bal-checkbox-group.js +2 -27
  11. package/components/bal-checkbox2.js +3 -16
  12. package/components/bal-date.js +3 -28
  13. package/components/bal-doc-app.d.ts +11 -0
  14. package/components/bal-doc-app.js +262 -0
  15. package/components/bal-dropdown2.js +2 -2
  16. package/components/bal-field.js +1 -1
  17. package/components/bal-file-upload.js +5 -12
  18. package/components/bal-footer.js +1 -1
  19. package/components/bal-icon2.js +1 -13
  20. package/components/bal-input-date2.js +4 -17
  21. package/components/bal-input-group2.js +1 -1
  22. package/components/bal-input-slider.js +5 -19
  23. package/components/bal-input-stepper.js +5 -18
  24. package/components/bal-input.js +3 -16
  25. package/components/bal-label2.js +1 -1
  26. package/components/bal-list-item-accordion-body2.js +4 -4
  27. package/components/bal-list-item-accordion-head2.js +2 -2
  28. package/components/bal-list-item-content2.js +2 -2
  29. package/components/bal-list-item-icon2.js +2 -2
  30. package/components/bal-list-item-subtitle2.js +1 -1
  31. package/components/bal-list-item-title2.js +1 -1
  32. package/components/bal-list-item2.js +1 -1
  33. package/components/bal-list2.js +1 -1
  34. package/components/bal-logo2.js +2 -2
  35. package/components/bal-modal-body.js +1 -1
  36. package/components/bal-modal-header.js +1 -1
  37. package/components/bal-modal.js +7 -33
  38. package/components/bal-nav-link-grid-col2.js +1 -1
  39. package/components/bal-nav-link-grid2.js +1 -1
  40. package/components/bal-nav-link-group.js +1 -1
  41. package/components/bal-nav-link2.js +2 -2
  42. package/components/bal-nav-menu-bar2.js +1 -1
  43. package/components/bal-nav-menu-flyout2.js +1 -1
  44. package/components/bal-nav-meta-bar2.js +2 -9
  45. package/components/bal-nav.js +52 -125
  46. package/components/bal-navbar-brand.js +5 -1
  47. package/components/bal-navbar-menu-end.js +1 -1
  48. package/components/bal-navbar-menu-start.js +1 -1
  49. package/components/bal-navbar-menu.js +2 -2
  50. package/components/bal-navbar.js +1 -1
  51. package/components/bal-notices.js +2 -2
  52. package/components/bal-notification.js +1 -1
  53. package/components/bal-number-input.js +3 -16
  54. package/components/bal-option-list.js +3 -16
  55. package/components/bal-option2.js +2 -9
  56. package/components/bal-pagination.js +311 -1
  57. package/components/bal-popover-content2.js +1 -1
  58. package/components/bal-popover2.js +4 -29
  59. package/components/bal-popup.js +4 -35
  60. package/components/bal-progress-bar.js +2 -2
  61. package/components/bal-radio-button.js +2 -2
  62. package/components/bal-radio-group.js +2 -33
  63. package/components/bal-radio2.js +3 -10
  64. package/components/bal-segment-item.js +2 -2
  65. package/components/bal-segment.js +4 -23
  66. package/components/bal-select-option.js +45 -1
  67. package/components/bal-select.js +847 -1
  68. package/components/bal-shape2.js +4 -4
  69. package/components/bal-sheet.js +1 -1
  70. package/components/bal-snackbar.js +1 -1
  71. package/components/bal-spinner2.js +3 -3
  72. package/components/bal-stack2.js +1 -1
  73. package/components/bal-stage-back-link.js +2 -2
  74. package/components/bal-stage-body.js +1 -1
  75. package/components/bal-stage-foot.js +1 -1
  76. package/components/bal-stage-head.js +1 -1
  77. package/components/bal-stage-image.js +3 -3
  78. package/components/bal-stage.js +1 -1
  79. package/components/bal-step-item.js +2 -2
  80. package/components/bal-steps.js +12 -56
  81. package/components/bal-tab-item.js +2 -2
  82. package/components/bal-table.js +1 -1
  83. package/components/bal-tabs2.js +179 -230
  84. package/components/bal-tag-group.js +1 -1
  85. package/components/bal-tag2.js +1 -1
  86. package/components/bal-text2.js +2 -2
  87. package/components/bal-textarea.js +3 -17
  88. package/components/bal-time-input.js +3 -16
  89. package/components/bal-toast.js +1 -1
  90. package/components/bal-tooltip.js +1 -1
  91. package/components/breakpoints.subject.js +1 -1
  92. package/components/element-states.decorator.js +1 -1
  93. package/components/floating-ui.js +2 -2
  94. package/components/focus.decorator.js +1 -1
  95. package/components/helpers.js +33 -3
  96. package/components/index.js +6 -305
  97. package/components/initialize.js +303 -0
  98. package/components/keyboard.helpers.js +7 -1
  99. package/components/mutation.decorator.js +17 -14
  100. package/components/overlays.js +1 -1
  101. package/components/resize.decorator.js +21 -5
  102. package/components/string.js +12 -0
  103. package/components/swipe.subject.js +2 -2
  104. package/components/swiper.util.js +434 -0
  105. package/components/tokens.esm.js +1 -1
  106. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  107. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  108. package/dist/baloise-design-system/index.esm.js +1 -1
  109. package/dist/baloise-design-system/p-0346712795.entry.js +1 -0
  110. package/dist/baloise-design-system/{p-af747e55e6.entry.js → p-05986dc964.entry.js} +1 -1
  111. package/dist/baloise-design-system/p-079850e6.system.js +1 -0
  112. package/dist/baloise-design-system/{p-9d3f19c6af.system.entry.js → p-0933f23da2.system.entry.js} +1 -1
  113. package/dist/baloise-design-system/p-09c77507f1.entry.js +1 -0
  114. package/dist/baloise-design-system/{p-1cb1fb71d4.system.entry.js → p-0a22b25b5b.system.entry.js} +1 -1
  115. package/dist/baloise-design-system/p-0b8169c8.js +1 -0
  116. package/dist/baloise-design-system/{p-65b542bd.system.js → p-0e323fe0.system.js} +1 -1
  117. package/dist/baloise-design-system/p-0f87b93ca2.system.entry.js +1 -0
  118. package/dist/baloise-design-system/p-1050501432.entry.js +1 -0
  119. package/dist/baloise-design-system/p-10ebc871f4.system.entry.js +1 -0
  120. package/dist/baloise-design-system/p-1334e37be0.system.entry.js +1 -0
  121. package/dist/baloise-design-system/p-16baa62182.system.entry.js +1 -0
  122. package/dist/baloise-design-system/p-18267b1371.system.entry.js +1 -0
  123. package/dist/baloise-design-system/p-19162db1a6.system.entry.js +1 -0
  124. package/dist/baloise-design-system/{p-1e344a8c28.system.entry.js → p-1ae4dca673.system.entry.js} +1 -1
  125. package/dist/baloise-design-system/p-1c191e7d.js +1 -0
  126. package/dist/baloise-design-system/{p-17c73b8f48.system.entry.js → p-1e726ce985.system.entry.js} +1 -1
  127. package/dist/baloise-design-system/{p-e2ba4d18bc.system.entry.js → p-1f762ec5aa.system.entry.js} +1 -1
  128. package/dist/baloise-design-system/{p-9e2730c56b.system.entry.js → p-1f9d38cf0a.system.entry.js} +1 -1
  129. package/dist/baloise-design-system/{p-61b87619ac.system.entry.js → p-212b2ed471.system.entry.js} +1 -1
  130. package/dist/baloise-design-system/p-21f87590.js +1 -0
  131. package/dist/baloise-design-system/p-24e594cd49.entry.js +1 -0
  132. package/dist/baloise-design-system/p-27a8f7d1e4.system.entry.js +1 -0
  133. package/dist/baloise-design-system/p-28d415e4.js +1 -0
  134. package/dist/baloise-design-system/p-296c7825b7.entry.js +1 -0
  135. package/dist/baloise-design-system/p-2a8e0e7149.entry.js +1 -0
  136. package/dist/baloise-design-system/p-2ccbe55a.js +2 -0
  137. package/dist/baloise-design-system/{p-dfcca29bc9.system.entry.js → p-2d4ebe6538.system.entry.js} +1 -1
  138. package/dist/baloise-design-system/{p-54c8a63b7c.system.entry.js → p-2db0f14a2d.system.entry.js} +1 -1
  139. package/dist/baloise-design-system/{p-a898208e.system.js → p-2e830170.system.js} +1 -1
  140. package/dist/baloise-design-system/{p-b136739bec.entry.js → p-2f23758d56.entry.js} +1 -1
  141. package/dist/baloise-design-system/{p-353ce7cb84.system.entry.js → p-31b6055d92.system.entry.js} +1 -1
  142. package/dist/baloise-design-system/p-345ec2f4.system.js +1 -0
  143. package/dist/baloise-design-system/{p-802c6111.js → p-3541dd16.js} +1 -1
  144. package/dist/baloise-design-system/p-356f75fd58.system.entry.js +1 -0
  145. package/dist/baloise-design-system/p-38bbf5f58f.entry.js +1 -0
  146. package/dist/baloise-design-system/{p-c486a8a8ed.entry.js → p-3928dcab54.entry.js} +1 -1
  147. package/dist/baloise-design-system/p-39d3eeef8e.entry.js +1 -0
  148. package/dist/baloise-design-system/p-3a3ee1eb.js +1 -0
  149. package/dist/baloise-design-system/{p-7d63b70a40.system.entry.js → p-3a93f5710e.system.entry.js} +1 -1
  150. package/dist/baloise-design-system/{p-1c09c9b0.js → p-3df52a1f.js} +1 -1
  151. package/dist/baloise-design-system/p-42f532a0a8.entry.js +1 -0
  152. package/dist/baloise-design-system/p-4427a9954a.system.entry.js +1 -0
  153. package/dist/baloise-design-system/{p-d8420ad3d5.system.entry.js → p-465c1ecafb.system.entry.js} +1 -1
  154. package/dist/baloise-design-system/{p-4b6481e692.entry.js → p-4a746f645b.entry.js} +1 -1
  155. package/dist/baloise-design-system/{p-bf139fe5.system.js → p-4a80e2c1.system.js} +1 -1
  156. package/dist/baloise-design-system/{p-39ad885d73.entry.js → p-4ba2983131.entry.js} +1 -1
  157. package/dist/baloise-design-system/p-4d67c12e48.system.entry.js +1 -0
  158. package/dist/baloise-design-system/p-4e642b63.system.js +1 -0
  159. package/dist/baloise-design-system/{p-35120ab6.system.js → p-4eb199b5.system.js} +1 -1
  160. package/dist/baloise-design-system/p-524edfe610.system.entry.js +1 -0
  161. package/dist/baloise-design-system/p-52cad6cf9f.entry.js +1 -0
  162. package/dist/baloise-design-system/{p-7eaff7954d.entry.js → p-54b7eb9ee0.entry.js} +1 -1
  163. package/dist/baloise-design-system/p-54d9711a77.system.entry.js +1 -0
  164. package/dist/baloise-design-system/{p-d1ec4d6e.system.js → p-56cf1ab1.system.js} +1 -1
  165. package/dist/baloise-design-system/{p-8096d040b2.system.entry.js → p-56d4310416.system.entry.js} +1 -1
  166. package/dist/baloise-design-system/p-58a0e8df48.entry.js +1 -0
  167. package/dist/baloise-design-system/p-58d2a0b5.system.js +1 -0
  168. package/dist/baloise-design-system/{p-30f41bab1a.system.entry.js → p-5b6ee3b824.system.entry.js} +1 -1
  169. package/dist/baloise-design-system/{p-374ce10b98.system.entry.js → p-5b85dec39b.system.entry.js} +1 -1
  170. package/dist/baloise-design-system/{p-c589d05bc6.system.entry.js → p-5d0768fd46.system.entry.js} +1 -1
  171. package/dist/baloise-design-system/p-5de6427ec7.entry.js +1 -0
  172. package/dist/baloise-design-system/{p-9e103abfe5.entry.js → p-60f5e5faa6.entry.js} +1 -1
  173. package/dist/baloise-design-system/{p-7684efd8.js → p-63215f4c.js} +1 -1
  174. package/dist/baloise-design-system/p-66d49670b0.system.entry.js +1 -0
  175. package/dist/baloise-design-system/{p-6fb26bd060.system.entry.js → p-66f6b46fd4.system.entry.js} +1 -1
  176. package/dist/baloise-design-system/p-67d61a81.js +1 -0
  177. package/dist/baloise-design-system/p-68e05bd5.js +1 -0
  178. package/dist/baloise-design-system/{p-63793834ec.entry.js → p-6933b37a08.entry.js} +1 -1
  179. package/dist/baloise-design-system/{p-06d357bd.js → p-6b79e568.js} +1 -1
  180. package/dist/baloise-design-system/{p-85b6c500d8.entry.js → p-6c85b9106b.entry.js} +1 -1
  181. package/dist/baloise-design-system/p-6cdd068206.system.entry.js +1 -0
  182. package/dist/baloise-design-system/p-6e23b41e95.system.entry.js +1 -0
  183. package/dist/baloise-design-system/p-6f28d506.system.js +1 -0
  184. package/dist/baloise-design-system/{p-f8d828383b.system.entry.js → p-713640e3ac.system.entry.js} +1 -1
  185. package/dist/baloise-design-system/{p-063f4fc96f.system.entry.js → p-72312d33a3.system.entry.js} +1 -1
  186. package/dist/baloise-design-system/p-7256aa5d97.entry.js +1 -0
  187. package/dist/baloise-design-system/p-72570f9637.entry.js +1 -0
  188. package/dist/baloise-design-system/p-75f78ed4fd.entry.js +1 -0
  189. package/dist/baloise-design-system/p-761cb0e801.system.entry.js +1 -0
  190. package/dist/baloise-design-system/p-770f4365f6.system.entry.js +1 -0
  191. package/dist/baloise-design-system/p-7961e095.system.js +2 -0
  192. package/dist/baloise-design-system/{p-b8658ffb85.system.entry.js → p-79f753d617.system.entry.js} +1 -1
  193. package/dist/baloise-design-system/p-80befc3988.system.entry.js +1 -0
  194. package/dist/baloise-design-system/{p-63b52c0f.js → p-81894fe8.js} +1 -1
  195. package/dist/baloise-design-system/p-81a3bee001.entry.js +1 -0
  196. package/dist/baloise-design-system/p-8227e41299.entry.js +1 -0
  197. package/dist/baloise-design-system/p-82bf42f789.entry.js +1 -0
  198. package/dist/baloise-design-system/p-8360204072.entry.js +1 -0
  199. package/dist/baloise-design-system/{p-8b8d19171d.entry.js → p-86244838e4.entry.js} +1 -1
  200. package/dist/baloise-design-system/{p-3508444fc8.entry.js → p-878cb7914d.entry.js} +1 -1
  201. package/dist/baloise-design-system/p-8c24fdcf6c.system.entry.js +1 -0
  202. package/dist/baloise-design-system/{p-6c3a60ddf6.entry.js → p-8f1c2e77b6.entry.js} +1 -1
  203. package/dist/baloise-design-system/{p-b0fd473a.system.js → p-8f217b03.system.js} +1 -1
  204. package/dist/baloise-design-system/{p-682a1550e1.system.entry.js → p-900a22d5c3.system.entry.js} +1 -1
  205. package/dist/baloise-design-system/p-90a51218.js +1 -0
  206. package/dist/baloise-design-system/{p-8ac5772a60.system.entry.js → p-90a9f56d71.system.entry.js} +1 -1
  207. package/dist/baloise-design-system/{p-29273a2be9.entry.js → p-92e27ad87b.entry.js} +1 -1
  208. package/dist/baloise-design-system/p-932a19ea57.entry.js +1 -0
  209. package/dist/baloise-design-system/{p-c72bd76c.system.js → p-936070bf.system.js} +1 -1
  210. package/dist/baloise-design-system/{p-16ff8c81bf.entry.js → p-95bf3ca0ae.entry.js} +1 -1
  211. package/dist/baloise-design-system/p-9618956a56.system.entry.js +1 -0
  212. package/dist/baloise-design-system/{p-c472c7cf16.system.entry.js → p-97cd0b900d.system.entry.js} +1 -1
  213. package/dist/baloise-design-system/p-97f3a682.system.js +1 -0
  214. package/dist/baloise-design-system/{p-51fa7a76.js → p-9db35d91.js} +1 -1
  215. package/dist/baloise-design-system/{p-dafb9ede.system.js → p-a06fe6d4.system.js} +1 -1
  216. package/dist/baloise-design-system/p-a2090a9d.system.js +1 -0
  217. package/dist/baloise-design-system/{p-6d27c4949f.system.entry.js → p-a33f51bca5.system.entry.js} +1 -1
  218. package/dist/baloise-design-system/p-a5ea24121d.entry.js +1 -0
  219. package/dist/baloise-design-system/{p-296b12e3a9.entry.js → p-a6447b4840.entry.js} +1 -1
  220. package/dist/baloise-design-system/{p-98267a7765.entry.js → p-a679bf1c24.entry.js} +1 -1
  221. package/dist/baloise-design-system/{p-9b8ca7ead8.entry.js → p-a71cc6d652.entry.js} +1 -1
  222. package/dist/baloise-design-system/{p-5b78557886.entry.js → p-a7bbafcf3c.entry.js} +1 -1
  223. package/dist/baloise-design-system/{p-98a58cff41.system.entry.js → p-aa101747b4.system.entry.js} +1 -1
  224. package/dist/baloise-design-system/{p-678ebde2de.entry.js → p-aeca345ebb.entry.js} +1 -1
  225. package/dist/baloise-design-system/p-b1d0256f19.system.entry.js +1 -0
  226. package/dist/baloise-design-system/{p-c2157cabd4.entry.js → p-b2198343bf.entry.js} +1 -1
  227. package/dist/baloise-design-system/p-b57110dfe6.system.entry.js +1 -0
  228. package/dist/baloise-design-system/p-b77d63ca25.entry.js +1 -0
  229. package/dist/baloise-design-system/{p-a4b4b9c642.system.entry.js → p-b7f9f79521.system.entry.js} +1 -1
  230. package/dist/baloise-design-system/{p-579855c6.system.js → p-b96fd49d.system.js} +1 -1
  231. package/dist/baloise-design-system/p-bb0a588d09.system.entry.js +1 -0
  232. package/dist/baloise-design-system/p-bb7183cd00.entry.js +1 -0
  233. package/dist/baloise-design-system/p-bfc1c220e9.system.entry.js +1 -0
  234. package/dist/baloise-design-system/{p-486eb96d.system.js → p-c1db8468.system.js} +1 -1
  235. package/dist/baloise-design-system/p-c1fcce934b.entry.js +1 -0
  236. package/dist/baloise-design-system/p-c353a1861c.system.entry.js +1 -0
  237. package/dist/baloise-design-system/p-c642582c09.system.entry.js +1 -0
  238. package/dist/baloise-design-system/p-c9b8e360.system.js +1 -0
  239. package/dist/baloise-design-system/{p-7607c59d.js → p-cad154ad.js} +1 -1
  240. package/dist/baloise-design-system/p-ccba7183e2.entry.js +1 -0
  241. package/dist/baloise-design-system/p-ccd2ef1106.entry.js +1 -0
  242. package/dist/baloise-design-system/{p-ac2b4a256d.entry.js → p-cd31234898.entry.js} +1 -1
  243. package/dist/baloise-design-system/p-cd9be615a4.entry.js +1 -0
  244. package/dist/baloise-design-system/{p-cd5cbb0462.system.entry.js → p-cf550b5f9c.system.entry.js} +1 -1
  245. package/dist/baloise-design-system/p-d5268a76fb.system.entry.js +1 -0
  246. package/dist/baloise-design-system/{p-e0e123ffec.system.entry.js → p-d56a7e63df.system.entry.js} +1 -1
  247. package/dist/baloise-design-system/{p-70ff6660e5.system.entry.js → p-d67d2979ad.system.entry.js} +1 -1
  248. package/dist/baloise-design-system/p-dc98854c.js +1 -0
  249. package/dist/baloise-design-system/p-e0377a6d84.entry.js +1 -0
  250. package/dist/baloise-design-system/{p-2af8b73858.entry.js → p-e099fd9574.entry.js} +1 -1
  251. package/dist/baloise-design-system/{p-c7e93ad3c1.entry.js → p-e21ccd9856.entry.js} +1 -1
  252. package/dist/baloise-design-system/p-e430294632.entry.js +1 -0
  253. package/dist/baloise-design-system/p-e470e06a36.entry.js +1 -0
  254. package/dist/baloise-design-system/{p-4e75ee3c87.system.entry.js → p-e4c30a31a7.system.entry.js} +1 -1
  255. package/dist/baloise-design-system/{p-e3167218.js → p-e53217f8.js} +1 -1
  256. package/dist/baloise-design-system/p-e6bf225a89.entry.js +1 -0
  257. package/dist/baloise-design-system/{p-f1c41da029.entry.js → p-e8382bd4a9.entry.js} +1 -1
  258. package/dist/baloise-design-system/p-e9445f4362.entry.js +1 -0
  259. package/dist/baloise-design-system/{p-af3fb420b3.system.entry.js → p-ea27183b2a.system.entry.js} +1 -1
  260. package/dist/baloise-design-system/{p-533956b7.system.js → p-ed32b0b9.system.js} +1 -1
  261. package/dist/baloise-design-system/p-f2c398a3.system.js +1 -0
  262. package/dist/baloise-design-system/{p-4d84f90534.entry.js → p-f39958528f.entry.js} +1 -1
  263. package/dist/baloise-design-system/p-fabb559661.entry.js +1 -0
  264. package/dist/baloise-design-system/{p-c416afcd52.entry.js → p-fd357a0c70.entry.js} +1 -1
  265. package/dist/baloise-design-system/p-ff46a92a47.system.entry.js +1 -0
  266. package/dist/baloise-design-system/p-ff7903eb.js +1 -0
  267. package/dist/cjs/app-globals-25e25924.js +7 -0
  268. package/dist/cjs/bal-accordion_4.cjs.entry.js +4 -4
  269. package/dist/cjs/bal-app.cjs.entry.js +5 -5
  270. package/dist/cjs/bal-badge.cjs.entry.js +1 -1
  271. package/dist/cjs/bal-button_2.cjs.entry.js +3 -11
  272. package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
  273. package/dist/cjs/bal-carousel_2.cjs.entry.js +88 -307
  274. package/dist/cjs/bal-checkbox-button.cjs.entry.js +4 -4
  275. package/dist/cjs/bal-checkbox_2.cjs.entry.js +7 -44
  276. package/dist/cjs/bal-close.cjs.entry.js +1 -1
  277. package/dist/cjs/bal-content.cjs.entry.js +1 -1
  278. package/dist/cjs/bal-data_4.cjs.entry.js +1 -1
  279. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +3 -3
  280. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +7 -20
  281. package/dist/cjs/bal-date.cjs.entry.js +6 -31
  282. package/dist/cjs/bal-divider.cjs.entry.js +1 -1
  283. package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
  284. package/dist/cjs/bal-dropdown.cjs.entry.js +5 -5
  285. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  286. package/dist/cjs/bal-file-upload.cjs.entry.js +7 -14
  287. package/dist/cjs/bal-footer.cjs.entry.js +3 -3
  288. package/dist/cjs/bal-form-col_2.cjs.entry.js +1 -1
  289. package/dist/cjs/bal-form.cjs.entry.js +2 -2
  290. package/dist/cjs/bal-heading_2.cjs.entry.js +3 -3
  291. package/dist/cjs/bal-hint_5.cjs.entry.js +8 -33
  292. package/dist/cjs/bal-icon.cjs.entry.js +3 -14
  293. package/dist/cjs/bal-input-group.cjs.entry.js +2 -2
  294. package/dist/cjs/bal-input-slider.cjs.entry.js +6 -20
  295. package/dist/cjs/bal-input-stepper.cjs.entry.js +6 -19
  296. package/dist/cjs/bal-input.cjs.entry.js +4 -17
  297. package/dist/cjs/bal-label.cjs.entry.js +2 -2
  298. package/dist/cjs/bal-list_8.cjs.entry.js +19 -19
  299. package/dist/cjs/bal-logo.cjs.entry.js +6 -6
  300. package/dist/cjs/bal-modal_3.cjs.entry.js +10 -36
  301. package/dist/cjs/bal-nav_8.cjs.entry.js +18 -37
  302. package/dist/cjs/bal-navbar_5.cjs.entry.js +13 -10
  303. package/dist/cjs/bal-notices_3.cjs.entry.js +5 -5
  304. package/dist/cjs/bal-notification.cjs.entry.js +2 -2
  305. package/dist/cjs/bal-number-input.cjs.entry.js +4 -17
  306. package/dist/cjs/bal-option_2.cjs.entry.js +6 -25
  307. package/dist/cjs/bal-pagination.cjs.entry.js +9 -9
  308. package/dist/cjs/bal-popup.cjs.entry.js +6 -37
  309. package/dist/cjs/bal-progress-bar.cjs.entry.js +7 -7
  310. package/dist/cjs/bal-radio-button.cjs.entry.js +5 -5
  311. package/dist/cjs/bal-radio_2.cjs.entry.js +7 -44
  312. package/dist/cjs/bal-segment_2.cjs.entry.js +11 -30
  313. package/dist/cjs/bal-select_2.cjs.entry.js +10 -29
  314. package/dist/cjs/bal-shape.cjs.entry.js +6 -6
  315. package/dist/cjs/bal-sheet.cjs.entry.js +2 -2
  316. package/dist/cjs/bal-spinner.cjs.entry.js +4 -4
  317. package/dist/cjs/bal-stack.cjs.entry.js +2 -2
  318. package/dist/cjs/bal-stage_6.cjs.entry.js +10 -10
  319. package/dist/cjs/bal-step-item.cjs.entry.js +3 -3
  320. package/dist/cjs/bal-steps.cjs.entry.js +15 -11
  321. package/dist/cjs/bal-tab-item_2.cjs.entry.js +172 -162
  322. package/dist/cjs/bal-table.cjs.entry.js +2 -2
  323. package/dist/cjs/bal-tag_2.cjs.entry.js +3 -3
  324. package/dist/cjs/bal-textarea.cjs.entry.js +4 -18
  325. package/dist/cjs/bal-time-input.cjs.entry.js +4 -17
  326. package/dist/cjs/bal-tooltip.cjs.entry.js +4 -4
  327. package/dist/cjs/baloise-design-system.cjs.js +6 -5
  328. package/dist/cjs/{breakpoints.decorator-2c97bb36.js → breakpoints.decorator-3d4613cc.js} +1 -1
  329. package/dist/cjs/{breakpoints.subject-f3104eb9.js → breakpoints.subject-45f33be0.js} +2 -2
  330. package/dist/cjs/{element-states.decorator-5aa9bf46.js → element-states.decorator-e2bc15ed.js} +1 -1
  331. package/dist/cjs/{floating-ui-9f03e1cf.js → floating-ui-24577c09.js} +2 -2
  332. package/dist/cjs/{focus.decorator-ec3a858c.js → focus.decorator-b93456af.js} +1 -1
  333. package/dist/cjs/{form-input-35653e8f.js → form-input-e4fdf58e.js} +1 -1
  334. package/dist/cjs/global-85ebe098.js +9 -0
  335. package/dist/cjs/{helpers-393c2183.js → helpers-94660ab2.js} +34 -3
  336. package/dist/cjs/{index-96c178a6.js → index-84f42282.js} +284 -163
  337. package/dist/cjs/index.cjs.js +8 -7
  338. package/dist/cjs/{initialize-6421e1c1.js → initialize-367b85e5.js} +2 -2
  339. package/dist/cjs/{keyboard.helpers-3c105b0c.js → keyboard.helpers-2093e793.js} +7 -0
  340. package/dist/cjs/loader.cjs.js +5 -4
  341. package/dist/cjs/{mutation.decorator-5ac1e198.js → mutation.decorator-a000b7ef.js} +17 -14
  342. package/dist/cjs/{overlays-e6d14274.js → overlays-4c465543.js} +1 -1
  343. package/dist/cjs/{resize.decorator-981b6817.js → resize.decorator-62d31afa.js} +21 -5
  344. package/dist/cjs/{swipe.decorator-391a0941.js → swipe.decorator-447ae00e.js} +1 -1
  345. package/dist/cjs/{swipe.subject-48bf62a1.js → swipe.subject-6deb82da.js} +2 -2
  346. package/dist/cjs/swiper.util-2c1a9dd3.js +450 -0
  347. package/dist/cjs/{tokens.esm-dbef942e.js → tokens.esm-ef47f2db.js} +1 -1
  348. package/dist/cjs/{window-resize.decorator-69ff6e4c.js → window-resize.decorator-b13d8403.js} +1 -1
  349. package/dist/collection/collection-manifest.json +3 -2
  350. package/dist/collection/components/bal-accordion/bal-accordion-details/bal-accordion-details.js +6 -0
  351. package/dist/collection/components/bal-accordion/bal-accordion-summary/bal-accordion-summary.js +6 -0
  352. package/dist/collection/components/bal-accordion/bal-accordion-trigger/bal-accordion-trigger.js +20 -0
  353. package/dist/collection/components/bal-accordion/bal-accordion.js +16 -0
  354. package/dist/collection/components/bal-app/bal-app.js +8 -4
  355. package/dist/collection/components/bal-badge/bal-badge.js +8 -0
  356. package/dist/collection/components/bal-button/bal-button-group/bal-button-group.js +6 -0
  357. package/dist/collection/components/bal-button/bal-button.js +60 -11
  358. package/dist/collection/components/bal-card/bal-card-actions/bal-card-actions.js +2 -0
  359. package/dist/collection/components/bal-card/bal-card-button/bal-card-button.js +14 -0
  360. package/dist/collection/components/bal-card/bal-card-subtitle/bal-card-subtitle.js +6 -0
  361. package/dist/collection/components/bal-card/bal-card-title/bal-card-title.js +2 -0
  362. package/dist/collection/components/bal-card/bal-card.js +18 -0
  363. package/dist/collection/components/bal-carousel/bal-carousel-item/bal-carousel-item.js +47 -39
  364. package/dist/collection/components/bal-carousel/bal-carousel.css +1 -1
  365. package/dist/collection/components/bal-carousel/bal-carousel.js +132 -228
  366. package/dist/collection/components/bal-carousel/controls/tab-control.js +8 -1
  367. package/dist/collection/components/bal-checkbox/bal-checkbox-button/bal-checkbox-button.js +14 -0
  368. package/dist/collection/components/bal-checkbox/bal-checkbox-group/bal-checkbox-group.js +58 -26
  369. package/dist/collection/components/bal-checkbox/bal-checkbox.js +50 -14
  370. package/dist/collection/components/bal-close/bal-close.js +4 -0
  371. package/dist/collection/components/bal-content/bal-content.js +10 -0
  372. package/dist/collection/components/bal-data/bal-data-item/bal-data-item.js +4 -0
  373. package/dist/collection/components/bal-data/bal-data-label/bal-data-label.js +2 -0
  374. package/dist/collection/components/bal-data/bal-data-value/bal-data-value.js +6 -0
  375. package/dist/collection/components/bal-data/bal-data.js +4 -0
  376. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.js +14 -0
  377. package/dist/collection/components/bal-date/bal-date-calendar-cell/bal-date-calendar-cell.js +16 -0
  378. package/dist/collection/components/bal-date/bal-date.js +68 -26
  379. package/dist/collection/components/bal-divider/bal-divider.js +8 -0
  380. package/dist/collection/components/bal-dropdown/bal-dropdown.js +40 -0
  381. package/dist/collection/components/bal-field/bal-field-control/bal-field-control.js +8 -0
  382. package/dist/collection/components/bal-field/bal-field-hint/bal-field-hint.js +6 -0
  383. package/dist/collection/components/bal-field/bal-field-label/bal-field-label.js +16 -0
  384. package/dist/collection/components/bal-field/bal-field-message/bal-field-message.js +10 -0
  385. package/dist/collection/components/bal-field/bal-field.js +14 -0
  386. package/dist/collection/components/bal-file-upload/bal-file-upload.js +46 -12
  387. package/dist/collection/components/bal-footer/bal-footer.js +8 -0
  388. package/dist/collection/components/bal-form/bal-form.js +6 -0
  389. package/dist/collection/components/bal-form-grid/bal-form-col/bal-form-col.js +2 -0
  390. package/dist/collection/components/bal-heading/bal-heading.js +18 -0
  391. package/dist/collection/components/bal-hint/bal-hint.js +4 -0
  392. package/dist/collection/components/bal-icon/bal-icon.js +26 -14
  393. package/dist/collection/components/bal-input/bal-input-date/bal-input-date.js +45 -15
  394. package/dist/collection/components/bal-input/bal-input.js +74 -14
  395. package/dist/collection/components/bal-input-group/bal-input-group.js +7 -1
  396. package/dist/collection/components/bal-input-slider/bal-input-slider.js +44 -17
  397. package/dist/collection/components/bal-input-stepper/bal-input-stepper.js +38 -16
  398. package/dist/collection/components/bal-label/bal-label.js +27 -1
  399. package/dist/collection/components/bal-list/bal-list-item/bal-list-item.js +16 -0
  400. package/dist/collection/components/bal-list/bal-list-item-accordion-body/bal-list-item-accordion-body.js +9 -3
  401. package/dist/collection/components/bal-list/bal-list-item-accordion-head/bal-list-item-accordion-head.js +6 -2
  402. package/dist/collection/components/bal-list/bal-list-item-content/bal-list-item-content.js +4 -2
  403. package/dist/collection/components/bal-list/bal-list-item-icon/bal-list-item-icon.js +4 -2
  404. package/dist/collection/components/bal-list/bal-list-item-subtitle/bal-list-item-subtitle.js +1 -1
  405. package/dist/collection/components/bal-list/bal-list-item-title/bal-list-item-title.js +5 -1
  406. package/dist/collection/components/bal-list/bal-list.js +11 -1
  407. package/dist/collection/components/bal-logo/bal-logo.js +8 -2
  408. package/dist/collection/components/bal-modal/bal-modal-body/bal-modal-body.js +1 -1
  409. package/dist/collection/components/bal-modal/bal-modal-header/bal-modal-header.js +1 -1
  410. package/dist/collection/components/bal-modal/bal-modal.js +58 -33
  411. package/dist/collection/components/bal-nav/bal-nav-link/bal-nav-link.js +12 -2
  412. package/dist/collection/components/bal-nav/bal-nav-link-grid/bal-nav-link-grid.js +1 -1
  413. package/dist/collection/components/bal-nav/bal-nav-link-grid-col/bal-nav-link-grid-col.js +3 -1
  414. package/dist/collection/components/bal-nav/bal-nav-link-group/bal-nav-link-group.js +3 -1
  415. package/dist/collection/components/bal-nav/bal-nav-menu-bar/bal-nav-menu-bar.js +5 -1
  416. package/dist/collection/components/bal-nav/bal-nav-menu-flyout/bal-nav-menu-flyout.js +3 -1
  417. package/dist/collection/components/bal-nav/bal-nav-meta-bar/bal-nav-meta-bar.js +18 -8
  418. package/dist/collection/components/bal-nav/bal-nav.css +1 -1
  419. package/dist/collection/components/bal-nav/bal-nav.js +24 -16
  420. package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +19 -1
  421. package/dist/collection/components/bal-navbar/bal-navbar-menu/bal-navbar-menu.js +3 -1
  422. package/dist/collection/components/bal-navbar/bal-navbar-menu-end/bal-navbar-menu-end.js +3 -1
  423. package/dist/collection/components/bal-navbar/bal-navbar-menu-start/bal-navbar-menu-start.js +3 -1
  424. package/dist/collection/components/bal-navbar/bal-navbar.js +7 -1
  425. package/dist/collection/components/bal-notices/bal-notices.js +4 -2
  426. package/dist/collection/components/bal-notification/bal-notification.js +3 -1
  427. package/dist/collection/components/bal-number-input/bal-number-input.js +46 -14
  428. package/dist/collection/components/bal-option/bal-option.js +26 -8
  429. package/dist/collection/components/bal-option-list/bal-option-list.js +30 -14
  430. package/dist/collection/components/bal-pagination/bal-pagination.js +22 -4
  431. package/dist/collection/components/bal-popover/bal-popover-content/bal-popover-content.js +19 -1
  432. package/dist/collection/components/bal-popover/bal-popover.js +53 -27
  433. package/dist/collection/components/bal-popup/bal-popup.js +58 -32
  434. package/dist/collection/components/bal-progress-bar/bal-progress-bar.js +7 -1
  435. package/dist/collection/components/bal-radio/bal-radio-button/bal-radio-button.js +15 -1
  436. package/dist/collection/components/bal-radio/bal-radio-group/bal-radio-group.js +64 -32
  437. package/dist/collection/components/bal-radio/bal-radio.js +38 -8
  438. package/dist/collection/components/bal-segment/bal-segment-item/bal-segment-item.js +13 -1
  439. package/dist/collection/components/bal-segment/bal-segment.js +34 -20
  440. package/dist/collection/components/bal-select/bal-select-option/bal-select-option.js +9 -1
  441. package/dist/collection/components/bal-select/bal-select.js +68 -24
  442. package/dist/collection/components/bal-shape/bal-shape.js +10 -4
  443. package/dist/collection/components/bal-sheet/bal-sheet.js +3 -1
  444. package/dist/collection/components/bal-snackbar/bal-snackbar.js +21 -1
  445. package/dist/collection/components/bal-spinner/bal-spinner.js +13 -3
  446. package/dist/collection/components/bal-stack/bal-stack.js +23 -1
  447. package/dist/collection/components/bal-stage/bal-stage-back-link/bal-stage-back-link.js +8 -2
  448. package/dist/collection/components/bal-stage/bal-stage-body/bal-stage-body.js +1 -1
  449. package/dist/collection/components/bal-stage/bal-stage-foot/bal-stage-foot.js +1 -1
  450. package/dist/collection/components/bal-stage/bal-stage-head/bal-stage-head.js +1 -1
  451. package/dist/collection/components/bal-stage/bal-stage-image/bal-stage-image.js +7 -3
  452. package/dist/collection/components/bal-stage/bal-stage.js +13 -1
  453. package/dist/collection/components/bal-steps/bal-step-item/bal-step-item.js +22 -2
  454. package/dist/collection/components/bal-steps/bal-steps.css +1 -1
  455. package/dist/collection/components/bal-steps/bal-steps.js +19 -5
  456. package/dist/collection/components/bal-table/bal-table.js +3 -1
  457. package/dist/collection/components/bal-tabs/bal-tab-item/bal-tab-item.js +30 -2
  458. package/dist/collection/components/bal-tabs/bal-tabs.css +1 -1
  459. package/dist/collection/components/bal-tabs/bal-tabs.js +206 -125
  460. package/dist/collection/components/bal-tabs/components/tab-button.js +2 -2
  461. package/dist/collection/components/bal-tabs/components/tab-label.js +2 -2
  462. package/dist/collection/components/bal-tabs/components/tab-nav.js +7 -4
  463. package/dist/collection/components/bal-tabs/components/tab-select.js +2 -2
  464. package/dist/collection/components/bal-tag/bal-tag-group/bal-tag-group.js +1 -1
  465. package/dist/collection/components/bal-tag/bal-tag.js +17 -1
  466. package/dist/collection/components/bal-text/bal-text.js +28 -2
  467. package/dist/collection/components/bal-textarea/bal-textarea.js +54 -15
  468. package/dist/collection/components/bal-time-input/bal-time-input.js +32 -14
  469. package/dist/collection/components/bal-toast/bal-toast.js +9 -1
  470. package/dist/collection/components/bal-tooltip/bal-tooltip.js +11 -1
  471. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  472. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
  473. package/dist/collection/index.js +1 -1
  474. package/dist/collection/utils/constants/version.constant.js +1 -1
  475. package/dist/collection/utils/floating-ui.js +2 -2
  476. package/dist/collection/utils/helpers.js +32 -2
  477. package/dist/collection/utils/keyboard/keyboard.helpers.js +6 -0
  478. package/dist/collection/utils/mutation/mutation.listener.js +16 -13
  479. package/dist/collection/utils/resize/resize.listener.js +19 -3
  480. package/dist/collection/utils/resize/resize.subject.js +2 -2
  481. package/dist/collection/utils/style.js +16 -3
  482. package/dist/collection/utils/swipe/swipe.listener.js +2 -2
  483. package/dist/collection/{components/bal-carousel → utils/swiper}/controls/dot-control.js +1 -1
  484. package/dist/collection/utils/swiper/controls/index.js +3 -0
  485. package/dist/collection/{components/bal-carousel → utils/swiper}/controls/large-control.js +2 -2
  486. package/dist/collection/{components/bal-carousel → utils/swiper}/controls/small-control.js +2 -2
  487. package/dist/collection/utils/swiper/index.js +1 -0
  488. package/dist/collection/{components/bal-carousel/bal-carousel.i18n.js → utils/swiper/swiper.i18n.js} +1 -1
  489. package/dist/collection/utils/swiper/swiper.util.js +322 -0
  490. package/dist/esm/app-globals-83570026.js +5 -0
  491. package/dist/esm/bal-accordion_4.entry.js +4 -4
  492. package/dist/esm/bal-app.entry.js +5 -5
  493. package/dist/esm/bal-badge.entry.js +1 -1
  494. package/dist/esm/bal-button_2.entry.js +3 -11
  495. package/dist/esm/bal-card_6.entry.js +1 -1
  496. package/dist/esm/bal-carousel_2.entry.js +88 -307
  497. package/dist/esm/bal-checkbox-button.entry.js +4 -4
  498. package/dist/esm/bal-checkbox_2.entry.js +7 -44
  499. package/dist/esm/bal-close.entry.js +1 -1
  500. package/dist/esm/bal-content.entry.js +1 -1
  501. package/dist/esm/bal-data_4.entry.js +1 -1
  502. package/dist/esm/bal-date-calendar-cell.entry.js +3 -3
  503. package/dist/esm/bal-date-calendar_2.entry.js +7 -20
  504. package/dist/esm/bal-date.entry.js +6 -31
  505. package/dist/esm/bal-divider.entry.js +1 -1
  506. package/dist/esm/bal-doc-app.entry.js +229 -0
  507. package/dist/esm/bal-dropdown.entry.js +5 -5
  508. package/dist/esm/bal-field_5.entry.js +3 -3
  509. package/dist/esm/bal-file-upload.entry.js +7 -14
  510. package/dist/esm/bal-footer.entry.js +3 -3
  511. package/dist/esm/bal-form-col_2.entry.js +1 -1
  512. package/dist/esm/bal-form.entry.js +2 -2
  513. package/dist/esm/bal-heading_2.entry.js +3 -3
  514. package/dist/esm/bal-hint_5.entry.js +8 -33
  515. package/dist/esm/bal-icon.entry.js +3 -14
  516. package/dist/esm/bal-input-group.entry.js +2 -2
  517. package/dist/esm/bal-input-slider.entry.js +6 -20
  518. package/dist/esm/bal-input-stepper.entry.js +6 -19
  519. package/dist/esm/bal-input.entry.js +4 -17
  520. package/dist/esm/bal-label.entry.js +2 -2
  521. package/dist/esm/bal-list_8.entry.js +19 -19
  522. package/dist/esm/bal-logo.entry.js +6 -6
  523. package/dist/esm/bal-modal_3.entry.js +10 -36
  524. package/dist/esm/bal-nav_8.entry.js +18 -37
  525. package/dist/esm/bal-navbar_5.entry.js +13 -10
  526. package/dist/esm/bal-notices_3.entry.js +5 -5
  527. package/dist/esm/bal-notification.entry.js +2 -2
  528. package/dist/esm/bal-number-input.entry.js +4 -17
  529. package/dist/esm/bal-option_2.entry.js +6 -25
  530. package/dist/esm/bal-pagination.entry.js +9 -9
  531. package/dist/esm/bal-popup.entry.js +6 -37
  532. package/dist/esm/bal-progress-bar.entry.js +7 -7
  533. package/dist/esm/bal-radio-button.entry.js +5 -5
  534. package/dist/esm/bal-radio_2.entry.js +7 -44
  535. package/dist/esm/bal-segment_2.entry.js +11 -30
  536. package/dist/esm/bal-select_2.entry.js +10 -29
  537. package/dist/esm/bal-shape.entry.js +6 -6
  538. package/dist/esm/bal-sheet.entry.js +2 -2
  539. package/dist/esm/bal-spinner.entry.js +4 -4
  540. package/dist/esm/bal-stack.entry.js +2 -2
  541. package/dist/esm/bal-stage_6.entry.js +10 -10
  542. package/dist/esm/bal-step-item.entry.js +3 -3
  543. package/dist/esm/bal-steps.entry.js +15 -11
  544. package/dist/esm/bal-tab-item_2.entry.js +170 -160
  545. package/dist/esm/bal-table.entry.js +2 -2
  546. package/dist/esm/bal-tag_2.entry.js +3 -3
  547. package/dist/esm/bal-textarea.entry.js +4 -18
  548. package/dist/esm/bal-time-input.entry.js +4 -17
  549. package/dist/esm/bal-tooltip.entry.js +4 -4
  550. package/dist/esm/baloise-design-system.js +7 -6
  551. package/dist/esm/{breakpoints.decorator-a8efc52b.js → breakpoints.decorator-d489f428.js} +1 -1
  552. package/dist/esm/{breakpoints.subject-0764e6ff.js → breakpoints.subject-d0b34510.js} +2 -2
  553. package/dist/esm/{element-states.decorator-0f2107d8.js → element-states.decorator-4cf6af31.js} +1 -1
  554. package/dist/esm/{floating-ui-82413f23.js → floating-ui-922202fe.js} +2 -2
  555. package/dist/esm/{focus.decorator-dc333802.js → focus.decorator-c2c05d01.js} +1 -1
  556. package/dist/esm/{form-input-264ad739.js → form-input-1f3d8337.js} +1 -1
  557. package/dist/esm/global-88c7b04e.js +7 -0
  558. package/dist/esm/{helpers-72ae7307.js → helpers-32d9e1cc.js} +33 -3
  559. package/dist/esm/{index-5b1faf93.js → index-8d2a7ce7.js} +284 -163
  560. package/dist/esm/index.js +9 -9
  561. package/dist/esm/{initialize-b9912138.js → initialize-22c1bebc.js} +2 -2
  562. package/dist/esm/{keyboard.helpers-b2dd6393.js → keyboard.helpers-159e517d.js} +7 -1
  563. package/dist/esm/loader.js +6 -5
  564. package/dist/esm/{mutation.decorator-74831883.js → mutation.decorator-0c202bed.js} +17 -14
  565. package/dist/esm/{overlays-73dcc4a8.js → overlays-fa0ccf81.js} +1 -1
  566. package/dist/esm/{resize.decorator-f2d8461d.js → resize.decorator-bd416c47.js} +21 -5
  567. package/dist/esm/{swipe.decorator-56b6d574.js → swipe.decorator-20f4a0cb.js} +1 -1
  568. package/dist/esm/{swipe.subject-683f7c7b.js → swipe.subject-e3db5994.js} +2 -2
  569. package/dist/esm/swiper.util-3e090584.js +445 -0
  570. package/dist/esm/{tokens.esm-69df759d.js → tokens.esm-28388bbc.js} +1 -1
  571. package/dist/esm/{window-resize.decorator-53d6279e.js → window-resize.decorator-ab7c4574.js} +1 -1
  572. package/dist/esm-es5/app-globals-83570026.js +1 -0
  573. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  574. package/dist/esm-es5/bal-app.entry.js +1 -1
  575. package/dist/esm-es5/bal-badge.entry.js +1 -1
  576. package/dist/esm-es5/bal-button_2.entry.js +1 -1
  577. package/dist/esm-es5/bal-card_6.entry.js +1 -1
  578. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  579. package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
  580. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  581. package/dist/esm-es5/bal-close.entry.js +1 -1
  582. package/dist/esm-es5/bal-content.entry.js +1 -1
  583. package/dist/esm-es5/bal-data_4.entry.js +1 -1
  584. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  585. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  586. package/dist/esm-es5/bal-date.entry.js +1 -1
  587. package/dist/esm-es5/bal-divider.entry.js +1 -1
  588. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  589. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  590. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  591. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  592. package/dist/esm-es5/bal-footer.entry.js +1 -1
  593. package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
  594. package/dist/esm-es5/bal-form.entry.js +1 -1
  595. package/dist/esm-es5/bal-heading_2.entry.js +1 -1
  596. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  597. package/dist/esm-es5/bal-icon.entry.js +1 -1
  598. package/dist/esm-es5/bal-input-group.entry.js +1 -1
  599. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  600. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  601. package/dist/esm-es5/bal-input.entry.js +1 -1
  602. package/dist/esm-es5/bal-label.entry.js +1 -1
  603. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  604. package/dist/esm-es5/bal-logo.entry.js +1 -1
  605. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  606. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  607. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  608. package/dist/esm-es5/bal-notices_3.entry.js +1 -1
  609. package/dist/esm-es5/bal-notification.entry.js +1 -1
  610. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  611. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  612. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  613. package/dist/esm-es5/bal-popup.entry.js +1 -1
  614. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  615. package/dist/esm-es5/bal-radio-button.entry.js +1 -1
  616. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  617. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  618. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  619. package/dist/esm-es5/bal-shape.entry.js +1 -1
  620. package/dist/esm-es5/bal-sheet.entry.js +1 -1
  621. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  622. package/dist/esm-es5/bal-stack.entry.js +1 -1
  623. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  624. package/dist/esm-es5/bal-step-item.entry.js +1 -1
  625. package/dist/esm-es5/bal-steps.entry.js +1 -1
  626. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  627. package/dist/esm-es5/bal-table.entry.js +1 -1
  628. package/dist/esm-es5/bal-tag_2.entry.js +1 -1
  629. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  630. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  631. package/dist/esm-es5/bal-tooltip.entry.js +1 -1
  632. package/dist/esm-es5/baloise-design-system.js +1 -1
  633. package/dist/esm-es5/breakpoints.decorator-d489f428.js +1 -0
  634. package/dist/esm-es5/{breakpoints.subject-0764e6ff.js → breakpoints.subject-d0b34510.js} +1 -1
  635. package/dist/esm-es5/{element-states.decorator-0f2107d8.js → element-states.decorator-4cf6af31.js} +1 -1
  636. package/dist/esm-es5/floating-ui-922202fe.js +1 -0
  637. package/dist/esm-es5/{focus.decorator-dc333802.js → focus.decorator-c2c05d01.js} +1 -1
  638. package/dist/esm-es5/{form-input-264ad739.js → form-input-1f3d8337.js} +1 -1
  639. package/dist/esm-es5/global-88c7b04e.js +1 -0
  640. package/dist/esm-es5/helpers-32d9e1cc.js +1 -0
  641. package/dist/esm-es5/index-8d2a7ce7.js +2 -0
  642. package/dist/esm-es5/index.js +1 -1
  643. package/dist/esm-es5/{initialize-b9912138.js → initialize-22c1bebc.js} +1 -1
  644. package/dist/esm-es5/keyboard.helpers-159e517d.js +1 -0
  645. package/dist/esm-es5/loader.js +1 -1
  646. package/dist/esm-es5/mutation.decorator-0c202bed.js +1 -0
  647. package/dist/esm-es5/{overlays-73dcc4a8.js → overlays-fa0ccf81.js} +1 -1
  648. package/dist/esm-es5/resize.decorator-bd416c47.js +1 -0
  649. package/dist/esm-es5/{swipe.decorator-56b6d574.js → swipe.decorator-20f4a0cb.js} +1 -1
  650. package/dist/esm-es5/swipe.subject-e3db5994.js +1 -0
  651. package/dist/esm-es5/swiper.util-3e090584.js +1 -0
  652. package/dist/esm-es5/{window-resize.decorator-53d6279e.js → window-resize.decorator-ab7c4574.js} +1 -1
  653. package/dist/html.html-data.json +2 -2
  654. package/dist/types/components/bal-carousel/bal-carousel-item/bal-carousel-item.d.ts +3 -2
  655. package/dist/types/components/bal-carousel/bal-carousel.d.ts +20 -33
  656. package/dist/types/components/bal-icon/bal-icon.d.ts +0 -6
  657. package/dist/types/components/bal-steps/bal-steps.d.ts +2 -1
  658. package/dist/types/components/bal-tabs/bal-tabs.d.ts +30 -13
  659. package/dist/types/components/bal-tabs/components/tab-button.d.ts +1 -1
  660. package/dist/types/components/bal-tabs/components/tab-label.d.ts +1 -0
  661. package/dist/types/components/bal-tabs/components/tab-nav.d.ts +4 -1
  662. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  663. package/dist/types/components.d.ts +44 -9
  664. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  665. package/dist/types/index.d.ts +1 -1
  666. package/dist/types/utils/helpers.d.ts +2 -0
  667. package/dist/types/utils/keyboard/keyboard.helpers.d.ts +4 -0
  668. package/dist/types/utils/resize/resize.interfaces.d.ts +4 -1
  669. package/dist/types/utils/resize/resize.listener.d.ts +2 -0
  670. package/dist/types/utils/style.d.ts +1 -0
  671. package/dist/types/utils/swiper/controls/index.d.ts +3 -0
  672. package/dist/types/utils/swiper/index.d.ts +2 -0
  673. package/dist/types/utils/swiper/swiper.i18n.d.ts +7 -0
  674. package/dist/types/utils/swiper/swiper.type.d.ts +31 -0
  675. package/dist/types/utils/swiper/swiper.util.d.ts +92 -0
  676. package/package.json +8 -8
  677. package/components/bal-carousel-item2.js +0 -115
  678. package/components/bal-carousel2.js +0 -530
  679. package/components/bal-pagination2.js +0 -313
  680. package/components/bal-select-option2.js +0 -47
  681. package/components/bal-select2.js +0 -868
  682. package/components/listen.js +0 -58
  683. package/dist/baloise-design-system/p-00281d6b.js +0 -1
  684. package/dist/baloise-design-system/p-04979ee232.entry.js +0 -1
  685. package/dist/baloise-design-system/p-075bcd8c56.system.entry.js +0 -1
  686. package/dist/baloise-design-system/p-0935940ea0.system.entry.js +0 -1
  687. package/dist/baloise-design-system/p-0aa1d6a4.system.js +0 -1
  688. package/dist/baloise-design-system/p-0c51c999.js +0 -1
  689. package/dist/baloise-design-system/p-0e361394.js +0 -1
  690. package/dist/baloise-design-system/p-0fd1b4ed34.entry.js +0 -1
  691. package/dist/baloise-design-system/p-116b65a6.system.js +0 -1
  692. package/dist/baloise-design-system/p-12701030b2.system.entry.js +0 -1
  693. package/dist/baloise-design-system/p-1400a7e9cc.entry.js +0 -1
  694. package/dist/baloise-design-system/p-18fbeec32d.system.entry.js +0 -1
  695. package/dist/baloise-design-system/p-19abec97c4.entry.js +0 -1
  696. package/dist/baloise-design-system/p-1c118a88.system.js +0 -1
  697. package/dist/baloise-design-system/p-20d7a74311.system.entry.js +0 -1
  698. package/dist/baloise-design-system/p-218f416b89.entry.js +0 -1
  699. package/dist/baloise-design-system/p-2539ba43.js +0 -2
  700. package/dist/baloise-design-system/p-25e640839d.system.entry.js +0 -1
  701. package/dist/baloise-design-system/p-2767b62167.system.entry.js +0 -1
  702. package/dist/baloise-design-system/p-27d3f5d35a.system.entry.js +0 -1
  703. package/dist/baloise-design-system/p-2ad664ad93.entry.js +0 -1
  704. package/dist/baloise-design-system/p-33101c54.js +0 -1
  705. package/dist/baloise-design-system/p-3814316946.entry.js +0 -1
  706. package/dist/baloise-design-system/p-3a0a84fbcc.system.entry.js +0 -1
  707. package/dist/baloise-design-system/p-3d1747bc.system.js +0 -1
  708. package/dist/baloise-design-system/p-47ae469120.entry.js +0 -1
  709. package/dist/baloise-design-system/p-4d807f18.system.js +0 -1
  710. package/dist/baloise-design-system/p-50927d70.js +0 -1
  711. package/dist/baloise-design-system/p-51380295.system.js +0 -1
  712. package/dist/baloise-design-system/p-53b859d3c4.entry.js +0 -1
  713. package/dist/baloise-design-system/p-562c360455.entry.js +0 -1
  714. package/dist/baloise-design-system/p-58f7826179.entry.js +0 -1
  715. package/dist/baloise-design-system/p-5bbc6e33c0.entry.js +0 -1
  716. package/dist/baloise-design-system/p-62936f4a8b.entry.js +0 -1
  717. package/dist/baloise-design-system/p-68392bc0e8.system.entry.js +0 -1
  718. package/dist/baloise-design-system/p-6d6a2f64f2.entry.js +0 -1
  719. package/dist/baloise-design-system/p-6e79b03ef3.entry.js +0 -1
  720. package/dist/baloise-design-system/p-77a1d547e2.system.entry.js +0 -1
  721. package/dist/baloise-design-system/p-7a883fd6ed.system.entry.js +0 -1
  722. package/dist/baloise-design-system/p-7e50273c21.entry.js +0 -1
  723. package/dist/baloise-design-system/p-85d9ea863b.system.entry.js +0 -1
  724. package/dist/baloise-design-system/p-8669493951.system.entry.js +0 -1
  725. package/dist/baloise-design-system/p-8a1bb350f1.system.entry.js +0 -1
  726. package/dist/baloise-design-system/p-9311066eb2.system.entry.js +0 -1
  727. package/dist/baloise-design-system/p-95a4f1be.js +0 -1
  728. package/dist/baloise-design-system/p-9d29364f13.entry.js +0 -1
  729. package/dist/baloise-design-system/p-9d3f7645.system.js +0 -1
  730. package/dist/baloise-design-system/p-9eb4e04e90.system.entry.js +0 -1
  731. package/dist/baloise-design-system/p-9f54cfc70b.entry.js +0 -1
  732. package/dist/baloise-design-system/p-a33ee4ca30.entry.js +0 -1
  733. package/dist/baloise-design-system/p-a5a8da4e09.entry.js +0 -1
  734. package/dist/baloise-design-system/p-a6556b9bd0.entry.js +0 -1
  735. package/dist/baloise-design-system/p-a76969fe16.entry.js +0 -1
  736. package/dist/baloise-design-system/p-aa08fe2376.entry.js +0 -1
  737. package/dist/baloise-design-system/p-ab64213bd1.system.entry.js +0 -1
  738. package/dist/baloise-design-system/p-ad58876e8c.entry.js +0 -1
  739. package/dist/baloise-design-system/p-ae2292f251.system.entry.js +0 -1
  740. package/dist/baloise-design-system/p-af4c6af2.js +0 -1
  741. package/dist/baloise-design-system/p-b0120babb2.entry.js +0 -1
  742. package/dist/baloise-design-system/p-b5c538994b.system.entry.js +0 -1
  743. package/dist/baloise-design-system/p-ba9c735428.entry.js +0 -1
  744. package/dist/baloise-design-system/p-be61baa681.entry.js +0 -1
  745. package/dist/baloise-design-system/p-c6ee7ff820.system.entry.js +0 -1
  746. package/dist/baloise-design-system/p-c9dce0f3ea.system.entry.js +0 -1
  747. package/dist/baloise-design-system/p-ca0e100fe8.entry.js +0 -1
  748. package/dist/baloise-design-system/p-ce3173af38.system.entry.js +0 -1
  749. package/dist/baloise-design-system/p-ce674dca.js +0 -1
  750. package/dist/baloise-design-system/p-d21e99c2da.system.entry.js +0 -1
  751. package/dist/baloise-design-system/p-d532d41212.system.entry.js +0 -1
  752. package/dist/baloise-design-system/p-d67f7321.system.js +0 -2
  753. package/dist/baloise-design-system/p-d88acac29e.system.entry.js +0 -1
  754. package/dist/baloise-design-system/p-d97dc6a8.system.js +0 -1
  755. package/dist/baloise-design-system/p-dc032a0d49.entry.js +0 -1
  756. package/dist/baloise-design-system/p-e563e447.js +0 -1
  757. package/dist/baloise-design-system/p-e5724f1013.system.entry.js +0 -1
  758. package/dist/baloise-design-system/p-ec4cf5cec6.entry.js +0 -1
  759. package/dist/baloise-design-system/p-edbd880ce1.entry.js +0 -1
  760. package/dist/baloise-design-system/p-ee3c7a38.system.js +0 -1
  761. package/dist/baloise-design-system/p-fc915218bf.entry.js +0 -1
  762. package/dist/baloise-design-system/p-fe30593a.js +0 -1
  763. package/dist/cjs/app-globals-661b320a.js +0 -11
  764. package/dist/cjs/listen-b42a4134.js +0 -60
  765. package/dist/cjs/style-799e9253.js +0 -27
  766. package/dist/collection/utils/listen.js +0 -55
  767. package/dist/esm/app-globals-665b5c71.js +0 -9
  768. package/dist/esm/listen-d1712e70.js +0 -58
  769. package/dist/esm/style-ca1bd202.js +0 -24
  770. package/dist/esm-es5/app-globals-665b5c71.js +0 -1
  771. package/dist/esm-es5/breakpoints.decorator-a8efc52b.js +0 -1
  772. package/dist/esm-es5/floating-ui-82413f23.js +0 -1
  773. package/dist/esm-es5/helpers-72ae7307.js +0 -1
  774. package/dist/esm-es5/index-5b1faf93.js +0 -2
  775. package/dist/esm-es5/keyboard.helpers-b2dd6393.js +0 -1
  776. package/dist/esm-es5/listen-d1712e70.js +0 -1
  777. package/dist/esm-es5/mutation.decorator-74831883.js +0 -1
  778. package/dist/esm-es5/resize.decorator-f2d8461d.js +0 -1
  779. package/dist/esm-es5/style-ca1bd202.js +0 -1
  780. package/dist/esm-es5/swipe.subject-683f7c7b.js +0 -1
  781. package/dist/types/components/bal-carousel/bal-carousel.i18n.d.ts +0 -7
  782. package/dist/types/components/bal-carousel/bal-carousel.type.d.ts +0 -18
  783. package/dist/types/utils/listen.d.ts +0 -12
  784. /package/dist/baloise-design-system/{p-0521dc23.js → p-37aeaf8b.js} +0 -0
  785. /package/dist/baloise-design-system/{p-342d34ac.system.js → p-88489cf7.system.js} +0 -0
  786. /package/dist/collection/{components/bal-carousel/bal-carousel.type.js → utils/swiper/swiper.type.js} +0 -0
  787. /package/dist/esm-es5/{tokens.esm-69df759d.js → tokens.esm-28388bbc.js} +0 -0
  788. /package/dist/types/{components/bal-carousel → utils/swiper}/controls/dot-control.d.ts +0 -0
  789. /package/dist/types/{components/bal-carousel → utils/swiper}/controls/large-control.d.ts +0 -0
  790. /package/dist/types/{components/bal-carousel → utils/swiper}/controls/small-control.d.ts +0 -0
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(a,e,o,c){function b(a){return a instanceof o?a:new o((function(e){e(a)}))}return new(o||(o=Promise))((function(o,l){function r(a){try{d(c.next(a))}catch(a){l(a)}}function i(a){try{d(c["throw"](a))}catch(a){l(a)}}function d(a){a.done?o(a.value):b(a.value).then(r,i)}d((c=c.apply(a,e||[])).next())}))};var __generator=this&&this.__generator||function(a,e){var o={label:0,sent:function(){if(l[0]&1)throw l[1];return l[1]},trys:[],ops:[]},c,b,l,r;return r={next:i(0),throw:i(1),return:i(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function i(a){return function(e){return d([a,e])}}function d(i){if(c)throw new TypeError("Generator is already executing.");while(r&&(r=0,i[0]&&(o=0)),o)try{if(c=1,b&&(l=i[0]&2?b["return"]:i[0]?b["throw"]||((l=b["return"])&&l.call(b),0):b.next)&&!(l=l.call(b,i[1])).done)return l;if(b=0,l)i=[i[0]&2,l.value];switch(i[0]){case 0:case 1:l=i;break;case 4:o.label++;return{value:i[1],done:false};case 5:o.label++;b=i[1];i=[0];continue;case 7:i=o.ops.pop();o.trys.pop();continue;default:if(!(l=o.trys,l=l.length>0&&l[l.length-1])&&(i[0]===6||i[0]===2)){o=0;continue}if(i[0]===3&&(!l||i[1]>l[0]&&i[1]<l[3])){o.label=i[1];break}if(i[0]===6&&o.label<l[1]){o.label=l[1];l=i;break}if(l&&o.label<l[2]){o.label=l[2];o.ops.push(i);break}if(l[2])o.ops.pop();o.trys.pop();continue}i=e.call(a,o)}catch(a){i=[6,a];b=0}finally{c=l=0}if(i[0]&5)throw i[1];return{value:i[0]?i[1]:void 0,done:true}}};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-4d807f18.system.js","./p-db0895e2.system.js","./p-b52ad8d5.system.js","./p-23bdd8dc.system.js","./p-8949aa8b.system.js","./p-bf139fe5.system.js","./p-6e5745c8.system.js","./p-ee3c7a38.system.js","./p-d97dc6a8.system.js","./p-c72bd76c.system.js","./p-3d1747bc.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js","./p-eecefb0a.system.js"],(function(a){"use strict";var e,o,c,b,l,r,i,d,t,h,n,k,s,x,_,u,v,f,g;return{setters:[function(a){e=a.r;o=a.c;c=a.h;b=a.H;l=a.g},function(a){r=a._;i=a.a},function(a){d=a.i;t=a.u},function(a){h=a.B},function(a){n=a.F},function(a){k=a.L},function(a){s=a.i},function(a){x=a.s},function(a){_=a.d},function(a){u=a.L},function(a){v=a.d},function(a){f=a.L},function(a){g=a.L},function(){},function(){},function(){},function(){}],execute:function(){var w='@media (hover: hover)and (pointer: fine){.bal-radio-checkbox.bal-focused .bal-radio-checkbox__input:not(.bal-radio-checkbox__input--select-button)+.bal-radio-checkbox__label::before,.bal-radio-checkbox.bal-focused.bal-radio-checkbox--select-button{-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-radio-checkbox-symbol-size:1.5rem;--bal-radio-checkbox-symbol-width:calc(0.5rem - 1px);--bal-radio-checkbox-symbol-height:calc(0.875rem - 1px);--bal-radio-checkbox-symbol-left:calc(0.5rem + 1px);--bal-radio-checkbox-symbol-margin-top:0.25rem;--bal-radio-checkbox-label-min-height:1.5rem;--bal-radio-checkbox-select-button-background-hover:var(--bal-color-grey-2);--bal-radio-checkbox-select-button-background-active:var(--bal-color-grey-2);--bal-radio-checkbox-select-button-background-checked:var(--bal-color-primary);--bal-radio-checkbox-select-button-background-checked-hover:var(--bal-color-light-blue-5);--bal-radio-checkbox-select-button-background-checked-active:var(--bal-color-primary-6);--bal-radio-checkbox-select-button-background-invalid:var(--bal-color-danger-1);--bal-radio-checkbox-select-button-background-invalid-hover:var(--bal-color-danger-1);--bal-radio-checkbox-select-button-background-invalid-active:var(--bal-color-danger-1);--bal-radio-checkbox-select-button-background-invalid-checked:var(--bal-color-border-danger);--bal-radio-checkbox-select-button-background-invalid-checked-hover:var(--bal-color-danger-5);--bal-radio-checkbox-select-button-background-invalid-checked-active:var(--bal-color-danger-6);--bal-radio-checkbox-select-button-background-disabled-hover-active:var(--bal-color-grey-2);--bal-radio-checkbox-select-button-background-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-radio-checkbox-switch-label-background-before:var(--bal-color-primary-1);--bal-radio-checkbox-switch-label-background-after:var(--bal-color-primary);--bal-radio-checkbox-switch-label-background-hover-after:var(--bal-color-light-blue-5);--bal-radio-checkbox-switch-label-background-active-after:var(--bal-color-primary-6);--bal-radio-checkbox-switch-label-background-checked-before:var(--bal-color-success-4);--bal-radio-checkbox-switch-label-background-checked-after:var(--bal-color-white);--bal-radio-checkbox-switch-label-background-checked-hover-before:var(--bal-color-success-5);--bal-radio-checkbox-switch-label-background-checked-active-before:var(--bal-color-success-6);--bal-radio-checkbox-switch-label-background-invalid-before:var(--bal-color-danger-1);--bal-radio-checkbox-switch-label-background-invalid-after:var(--bal-color-border-danger);--bal-radio-checkbox-switch-label-background-invalid-hover-after:var(--bal-color-danger-6);--bal-radio-checkbox-switch-label-background-invalid-active-after:var(--bal-color-border-danger);--bal-radio-checkbox-switch-label-background-invalid-checked-before:var(--bal-color-danger-4);--bal-radio-checkbox-switch-label-background-invalid-checked-after:var(--bal-color-white);--bal-radio-checkbox-switch-label-background-invalid-checked-hover-before:var(--bal-color-danger-5);--bal-radio-checkbox-switch-label-background-invalid-checked-active-before:var(--bal-color-danger-6);--bal-radio-checkbox-switch-label-background-disabled-hover-active-before:var(--bal-color-grey-3);--bal-radio-checkbox-switch-label-background-disabled-hover-active-after:var(--bal-color-border-grey-dark);--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-before:var(--bal-color-border-grey-dark);--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-after:var(--bal-color-white);--bal-radio-checkbox-button-background:transparent;--bal-radio-checkbox-button-background-checked-green:var(--bal-color-green-1);--bal-radio-checkbox-button-background-checked-purple:var(--bal-color-purple-1);--bal-radio-checkbox-button-background-checked-red:var(--bal-color-red-1);--bal-radio-checkbox-button-background-checked-yellow:var(--bal-color-yellow-1);--bal-radio-checkbox-button-background-disabled:var(--bal-color-grey-1);--bal-radio-checkbox-button-background-hover:var(--bal-color-grey-1);--bal-radio-checkbox-select-button-border-color:var(--bal-color-primary);--bal-radio-checkbox-select-button-border-color-hover:var(--bal-color-light-blue-5);--bal-radio-checkbox-select-button-border-color-active:var(--bal-color-primary-6);--bal-radio-checkbox-select-button-border-color-invalid:var(--bal-color-border-danger);--bal-radio-checkbox-select-button-border-color-invalid-hover:var(--bal-color-danger-5);--bal-radio-checkbox-select-button-border-color-invalid-active:var(--bal-color-danger-6);--bal-radio-checkbox-select-button-border-color-invalid-checked:var(--bal-color-border-danger);--bal-radio-checkbox-select-button-border-color-invalid-checked-hover:var(--bal-color-danger-5);--bal-radio-checkbox-select-button-border-color-invalid-checked-active:var(--bal-color-danger-6);--bal-radio-checkbox-select-button-border-color-disabled-hover-active:var(--bal-color-border-grey-dark);--bal-radio-checkbox-select-button-border-color-disabled-checked-hover-active:var(--bal-color-border-grey-dark);--bal-radio-checkbox-button-border-color-hover:var(--bal-color-border-primary-hovered);--bal-radio-checkbox-button-border-color-active:var(--bal-color-border-primary-pressed);--bal-radio-checkbox-button-border-color-invalid-hover:var(--bal-color-border-danger-hovered);--bal-radio-checkbox-button-border-color-invalid-active:var(--bal-color-border-danger-pressed);--bal-radio-checkbox-button-border-color:var(--bal-color-border);--bal-radio-checkbox-button-border-color-checked:var(--bal-color-border-primary);--bal-radio-checkbox-button-border-color-disabled:var(--bal-color-border-grey-dark);--bal-radio-checkbox-button-border-color-invalid:var(--bal-color-border-danger)}bal-radio .bal-radio-checkbox__label::before,bal-radio .bal-radio-checkbox__label::after{margin-top:0px !important}.bal-radio-checkbox-group{display:inline-block;position:relative;width:100%}.bal-radio-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-radio-checkbox-group__inner--select-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-radio-checkbox-group__inner--select-button{-ms-flex-direction:row;flex-direction:row}}.bal-radio-checkbox-group__inner--expanded{-ms-flex-align:stretch;align-items:stretch}.bal-radio-checkbox-group__inner--expanded .bal-radio-checkbox{-ms-flex:1;flex:1}@media screen and (max-width: 768px){.bal-radio-checkbox-group__inner--expanded .bal-radio-checkbox{width:100%}}.bal-radio-checkbox-group__inner--select-button.bal-radio-checkbox-group__inner--vertical{gap:var(--bal-space-x-small)}.bal-radio-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-radio-checkbox-group__inner--vertical{-ms-flex-align:start;align-items:flex-start}}@media screen and (max-width: 768px){.bal-radio-checkbox-group__inner--vertical-mobile{-ms-flex-direction:column;flex-direction:column;border-radius:var(--bal-radius-normal);gap:0}}.bal-radio-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:1.5rem;min-height:3rem}.bal-radio-checkbox--flat:not(.bal-radio-checkbox--select-button){min-height:1.5rem}.bal-radio-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}.bal-radio-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-radio-checkbox:not(.bal-radio-checkbox--disabled),.bal-radio-checkbox:not(.bal-radio-checkbox--disabled) input,.bal-radio-checkbox:not(.bal-radio-checkbox--disabled) input+label,.bal-radio-checkbox:not(.bal-radio-checkbox--disabled) input+label>span{cursor:pointer}.bal-radio-checkbox__label{-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;margin:0;line-height:1.5rem;contain:layout style;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;text-align:left;min-height:var(--bal-radio-checkbox-label-min-height);font-family:var(--bal-font-family-text)}.bal-radio-checkbox__label__text{padding-left:2rem;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;padding-top:.25rem;padding-bottom:.25rem}.bal-radio-checkbox__label__text--hidden{padding-left:0;display:none}.bal-radio-checkbox__label__text--flat{padding-top:0;padding-bottom:0}.bal-radio-checkbox__label--flat:not(.bal-radio-checkbox--select-button)::before,.bal-radio-checkbox__label--flat:not(.bal-radio-checkbox--select-button)::after{top:0px !important}.bal-radio-checkbox__label--hidden::before,.bal-radio-checkbox__label--hidden::after{top:0px !important}.bal-radio-checkbox__label::before,.bal-radio-checkbox__label::after{display:inline-block;position:absolute;left:0;top:.25rem;height:var(--bal-radio-checkbox-symbol-size);width:var(--bal-radio-checkbox-symbol-size);background-color:rgba(0,0,0,0);background-position:center;background-repeat:no-repeat;background-size:var(--bal-radio-checkbox-symbol-size) var(--bal-radio-checkbox-symbol-size)}.bal-radio-checkbox__label::before{content:"";border-style:var(--bal-form-field-control-border-style);border-width:2px}.bal-radio-checkbox__label::after{content:none}.bal-radio-checkbox__label--checked::after{content:""}.bal-radio-checkbox__label--radio::before,.bal-radio-checkbox__label--radio::after{border-radius:50%}.bal-radio-checkbox__label--radio::after{left:0;-webkit-transform:scale(0.25);transform:scale(0.25)}.bal-radio-checkbox__label--checkbox::before{border-radius:var(--bal-form-field-control-radius)}.bal-radio-checkbox__label--checkbox::after{border-top:0;border-right-style:var(--bal-form-field-control-border-style);border-right-width:2px;border-bottom-style:var(--bal-form-field-control-border-style);border-bottom-width:2px;border-left:0;border-radius:1px;width:var(--bal-radio-checkbox-symbol-width);height:var(--bal-radio-checkbox-symbol-height);left:var(--bal-radio-checkbox-symbol-left);margin-top:var(--bal-radio-checkbox-symbol-margin-top);-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-primary);background:var(--bal-color-transparent)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-light-blue-5);background:var(--bal-color-grey-2)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-blue-6);background:var(--bal-color-grey-2)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-border-danger);background:var(--bal-color-danger-1)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-danger-5);background:var(--bal-color-danger-1)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-danger-6);background:var(--bal-color-danger-1)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-border-grey-dark);background:var(--bal-color-grey-2)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-primary)}.bal-radio-checkbox:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--hovered .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-light-blue-5)}.bal-radio-checkbox:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--pressed .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-blue-6)}.bal-radio-checkbox--invalid .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-border-danger)}.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--invalid.bal-radio-checkbox--hovered .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-danger-5)}.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--invalid.bal-radio-checkbox--pressed .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-danger-6)}.bal-radio-checkbox--disabled .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled.bal-radio-checkbox--hovered .bal-radio-checkbox__label .bal-radio-checkbox__label__text,.bal-radio-checkbox--disabled.bal-radio-checkbox--pressed .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-text-grey)}.bal-radio-checkbox--inline{display:inline}.bal-radio-checkbox--select-button{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-radio-checkbox-select-button-border-color)}.bal-radio-checkbox--select-button:hover{border-color:var(--bal-radio-checkbox-select-button-border-color-hover);background:var(--bal-radio-checkbox-select-button-background-hover)}.bal-radio-checkbox--select-button:active{border-color:var(--bal-radio-checkbox-select-button-border-color-active);background:var(--bal-radio-checkbox-select-button-background-active)}.bal-radio-checkbox--select-button label::before{top:unset}.bal-radio-checkbox--select-button label::after{top:unset;margin-top:-3px}.bal-radio-checkbox--select-button .bal-radio-checkbox__label--flat::before{top:unset !important}.bal-radio-checkbox--select-button .bal-radio-checkbox__label--flat::after{margin-top:-3px;top:unset !important}.bal-radio-checkbox--select-button .bal-radio-checkbox__label--flat .bal-radio-checkbox__label__text--flat{padding-top:.25rem;padding-bottom:.25rem}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked{background:var(--bal-radio-checkbox-select-button-background-checked)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link{color:var(--bal-radio-checkbox-select-button-link-text-color-checked)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover{background:var(--bal-radio-checkbox-select-button-background-checked-hover)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active{background:var(--bal-radio-checkbox-select-button-background-checked-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-primary)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-light-blue-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-blue-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--checked:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text{color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid);background:var(--bal-radio-checkbox-select-button-background-invalid)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link{color:var(--bal-form-field-label-danger-color)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid:hover{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-hover);background:var(--bal-radio-checkbox-select-button-background-invalid-hover)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid:active{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-active);background:var(--bal-radio-checkbox-select-button-background-invalid-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-checked);background:var(--bal-radio-checkbox-select-button-background-invalid-checked)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-checked-hover);background:var(--bal-radio-checkbox-select-button-background-invalid-checked-hover)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active{border-color:var(--bal-radio-checkbox-select-button-border-color-invalid-checked-active);background:var(--bal-radio-checkbox-select-button-background-invalid-checked-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-danger)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-5)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-danger-6)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:hover,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:active{border-color:var(--bal-radio-checkbox-select-button-border-color-disabled-hover-active);background:var(--bal-radio-checkbox-select-button-background-disabled-hover-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label .bal-radio-checkbox__label__text .is-link{color:var(--bal-form-field-label-disabled-color)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active{border-color:var(--bal-radio-checkbox-select-button-border-color-disabled-checked-hover-active);background:var(--bal-radio-checkbox-select-button-background-disabled-checked-hover-active)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch)::before{border-color:var(--bal-color-white);background:var(--bal-color-transparent)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::after{background:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--radio.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox::after{border-right-color:var(--bal-color-white);border-bottom-color:var(--bal-color-white)}.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before,.bal-radio-checkbox--select-button.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label:not(.bal-radio-checkbox__label--switch).bal-radio-checkbox__label--checkbox.bal-radio-checkbox__label--checked::before{background:var(--bal-color-border-grey-dark)}.bal-radio-checkbox--switch{min-width:2.5rem}.bal-radio-checkbox--switch .bal-radio-checkbox__label{padding-left:1rem}.bal-radio-checkbox--switch .bal-radio-checkbox__label::before{border-radius:1.5rem;position:absolute;display:block;top:0;left:0;width:2.5rem;height:1.5rem;border:1.6px solid rgba(0,0,0,0);content:"";-webkit-transition:left .25s ease-out,background .25s ease-out;transition:left .25s ease-out,background .25s ease-out;margin-top:.25rem}.bal-radio-checkbox--switch .bal-radio-checkbox__label::after{border:none;margin:0;border-radius:50%;display:block;position:absolute;top:.25rem !important;left:.25rem;width:1rem;height:1rem;z-index:2;margin-top:.25rem;-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0);-webkit-transition:left .25s ease-out,background .25s ease-out;transition:left .25s ease-out,background .25s ease-out;content:""}.bal-radio-checkbox--switch .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-before)}.bal-radio-checkbox--switch .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-after)}.bal-radio-checkbox--switch:hover .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-hover-after)}.bal-radio-checkbox--switch:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-active-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--flat .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--flat .bal-radio-checkbox__label::after{margin-top:0}.bal-radio-checkbox--switch.bal-radio-checkbox--checked .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-checked-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--checked .bal-radio-checkbox__label::after{left:1.25rem;background:var(--bal-radio-checkbox-switch-label-background-checked-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-checked-hover-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-checked-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid:hover .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-hover-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-active-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-hover-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--invalid.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-invalid-checked-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-disabled-hover-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:hover .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-disabled-hover-active-after)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::before,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::before{background:var(--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-before)}.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:hover .bal-radio-checkbox__label::after,.bal-radio-checkbox--switch.bal-radio-checkbox--disabled.bal-radio-checkbox--checked:active .bal-radio-checkbox__label::after{background:var(--bal-radio-checkbox-switch-label-background-disabled-checked-hover-active-after)}.bal-radio-checkbox__icon{position:absolute !important;left:5.5px;z-index:1}.bal-radio-checkbox__icon--hidden{display:none !important}';var p=w;var m=a("bal_radio",function(){function a(a){var c=this;e(this,a);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.balChange=o(this,"balChange",7);this.inputId="bal-rb-".concat(y++);this.inheritedAttributes={};this.keyboardMode=true;this.onKeypress=function(a){if(v(a)){var e=a.target;if(e.href){return}if(e.nodeName==="INPUT"&&!c.disabled&&!c.readonly){c.toggleChecked();a.preventDefault()}else{x(a)}}};this.onClick=function(a){var e;var o=a.target;if(o.href){return}if(o.nodeName!=="INPUT"&&!c.disabled&&!c.readonly){c.toggleChecked();(e=c.nativeInput)===null||e===void 0?void 0:e.focus();a.preventDefault()}else{x(a)}};this.onFocus=function(a){if(c.disabled||c.readonly){c.focused=false;return x(a)}c.balFocus.emit(a);if(c.keyboardMode){c.focused=true}};this.onBlur=function(a){if(c.disabled||c.readonly){return x(a)}c.balBlur.emit(a);c.focused=false};this.onPointerDown=function(){return c.keyboardMode=false};this.onKeydown=function(a){return c.keyboardMode=n.includes(a.key)};this.checked=false;this.focused=false;this.buttonTabindex=undefined;this.ariaForm=_;this.name=this.inputId;this.value=undefined;this.label="";this.invisible=false;this.labelHidden=false;this.flat=false;this.interface="radio";this.disabled=false;this.readonly=false;this.required=false;this.nonSubmit=false;this.invalid=false;this.hovered=false;this.pressed=false}a.prototype.createLogger=function(a){this.log=a};a.prototype.connectedCallback=function(){if(this.value===undefined){this.value=this.inputId}var a=this.radioButton;var e=this.radioGroup;if(a||e){this.updateState()}if(e){e.addEventListener("balInput",this.updateState)}this.el.addEventListener("keydown",this.onKeydown);this.el.addEventListener("touchstart",this.onPointerDown);this.el.addEventListener("mousedown",this.onPointerDown)};a.prototype.componentWillLoad=function(){this.inheritedAttributes=s(this.el,["aria-label","tabindex","title"])};a.prototype.disconnectedCallback=function(){var a=this.radioGroup;if(a){a.removeEventListener("balInput",this.updateState)}this.el.removeEventListener("keydown",this.onKeydown);this.el.removeEventListener("touchstart",this.onPointerDown);this.el.removeEventListener("mousedown",this.onPointerDown)};a.prototype.listenOnClick=function(a){if((this.disabled||this.readonly)&&a.target&&(a.target===this.el||d(this.el,a.target))){x(a)}};a.prototype.setFocus=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){a.stopPropagation();a.preventDefault();this.nativeInput.focus();this.focused=true;return[2]}))}))};a.prototype.setButtonTabindex=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){if(this.radioButton){this.buttonTabindex=-1}else{this.buttonTabindex=a}return[2]}))}))};a.prototype.getInputElement=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){return[2,Promise.resolve(this.nativeInput)]}))}))};a.prototype.getOption=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){return[2,this.option]}))}))};a.prototype.updateState=function(){return __awaiter(this,void 0,void 0,(function(){var a;return __generator(this,(function(e){if(this.radioGroup){a=this.radioGroup.value===this.value;if(a!==this.checked){this.checked=a}}if(this.radioButton){this.buttonTabindex=-1;if(this.radioButton.setChecked){this.radioButton.setChecked(this.checked)}}return[2]}))}))};a.prototype.setAriaForm=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ariaForm=Object.assign({},a);return[2]}))}))};Object.defineProperty(a.prototype,"radioButton",{get:function(){return this.el.closest("bal-radio-button")},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"radioGroup",{get:function(){return this.el.closest("bal-radio-group")},enumerable:false,configurable:true});Object.defineProperty(a.prototype,"option",{get:function(){return{name:this.name,value:this.value,label:this.label,labelHidden:this.labelHidden,flat:this.flat,interface:this.interface,disabled:this.disabled,readonly:this.readonly,required:this.required,nonSubmit:this.nonSubmit,invisible:this.invisible,invalid:this.invalid}},enumerable:false,configurable:true});a.prototype.toggleChecked=function(){this.checked=!this.checked;this.balChange.emit(this.checked);this.updateState()};a.prototype.render=function(){var a=this;var e=h.block("radio-checkbox");var o=e.element("input");var l=e.element("label");var r=l.element("text");var i=this.focused&&this.buttonTabindex!==-1;var d=typeof this.value==="boolean"?JSON.stringify(this.value):this.value;var t=this.inheritedAttributes;if(this.buttonTabindex!==undefined){t.tabIndex=this.buttonTabindex}var n=this.ariaForm.controlId||this.inputId;var k=this.ariaForm.labelId||null;var s=this.labelHidden?"span":"label";var x={};if(!this.labelHidden){k="".concat(k||""," ").concat(n,"-lbl").trim();x.id="".concat(n,"-lbl");x.htmlFor=n}return c(b,{key:"d8027f12093f1564c38b859a1e4dab25e75eba64","aria-checked":"".concat(this.checked),"aria-disabled":this.disabled?"true":null,"aria-hidden":this.disabled?"true":null,"aria-focused":i?"true":null,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({"bal-focused":i},e.class()),e.modifier("radio").class()),e.modifier("select-button").class(this.interface==="select-button")),e.modifier("invalid").class(this.invalid)),e.modifier("checked").class(this.checked)),e.modifier("flat").class(this.flat)),e.modifier("disabled").class(this.disabled||this.readonly)),e.modifier("hovered").class(this.hovered)),e.modifier("pressed").class(this.pressed)),e.modifier("invisible").class(this.invisible)),onKeypress:this.onKeypress,onClick:this.onClick},c("input",Object.assign({key:"0b1a0313d4161c9f6725f7c8234f49d3678f5fa2",class:Object.assign(Object.assign({},o.class()),o.modifier("select-button").class(this.interface==="select-button")),"data-testid":"bal-radio-input",type:"radio",id:n,"aria-labelledby":k,"aria-describedby":this.ariaForm.messageId,"aria-invalid":this.invalid===true?"true":"false","aria-disabled":this.disabled?"true":null,"aria-checked":"".concat(this.checked),name:this.name,value:d,checked:this.checked,disabled:this.disabled||this.nonSubmit,readonly:this.readonly,required:this.required,onFocus:this.onFocus,onBlur:this.onBlur,ref:function(e){return a.nativeInput=e}},t)),!this.invisible?c(s,Object.assign({class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l.class()),l.modifier("radio").class()),l.modifier("checked").class(this.checked)),l.modifier("hidden").class(this.labelHidden)),l.modifier("flat").class(this.flat))},x,{"data-testid":"bal-radio-label"}),c("span",{class:Object.assign(Object.assign(Object.assign({},r.class()),r.modifier("hidden").class(this.labelHidden)),r.modifier("flat").class(this.flat)),"data-testid":"bal-radio-text"},this.label,c("slot",null))):"")};Object.defineProperty(a.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});return a}());r([k("bal-radio"),i("design:type",Function),i("design:paramtypes",[Function]),i("design:returntype",void 0)],m.prototype,"createLogger",null);r([u("click",{capture:true,target:"document"}),i("design:type",Function),i("design:paramtypes",[UIEvent]),i("design:returntype",void 0)],m.prototype,"listenOnClick",null);var y=0;m.style=p;var j=a("bal_radio_group",function(){function a(a){var c=this;e(this,a);this.balChange=o(this,"balChange",7);this.balFocus=o(this,"balFocus",7);this.balBlur=o(this,"balBlur",7);this.inputId="bal-rg-".concat(O++);this.inheritedAttributes={};this.hasFocus=false;this.mutationObserverActive=true;this.onOptionChange=function(){return __awaiter(c,void 0,void 0,(function(){return __generator(this,(function(a){this.setRadioTabindex(this.value);this.setRadioChecked();return[2]}))}))};this.setRadioTabindex=function(a){var e=c.getRadios();var o=e.find((function(a){return!a.disabled}));var b=e.find((function(e){return e.value===a&&!e.disabled}));if(!o&&!b){return}var l=b||o;for(var r=0,i=e;r<i.length;r++){var d=i[r];var t=d===l?0:-1;d.setButtonTabindex(t)}};this.onClick=function(a){var e=a.target;if(e.href){return}a.preventDefault();var o=a.target&&a.target.closest("bal-radio");if(o&&!o.disabled&&!o.readonly){var b=c.value;var l=o.value;if(l!==b){c.value=l}else if(c.allowEmptySelection){c.value=undefined}c.balChange.emit(c.value)}};this.ariaForm=_;this.options=undefined;this.allowEmptySelection=false;this.name=this.inputId;this.value=undefined;this.interface=undefined;this.vertical=false;this.verticalOnMobile=false;this.expanded=false;this.invalid=undefined;this.disabled=undefined;this.readonly=undefined;this.grid=1;this.columnsTablet=1;this.columnsMobile=1;this.autoInvalidOff=false}a.prototype.createLogger=function(a){this.log=a};a.prototype.optionChanged=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(a){this.onOptionChange();this.mutationObserverActive=this.options===undefined;return[2]}))}))};a.prototype.valueChanged=function(){this.onOptionChange()};a.prototype.invalidChanged=function(a){if(a!==undefined){this.getRadios().forEach((function(e){e.invalid=a}));this.getRadioButtons().forEach((function(e){e.invalid=a}))}};a.prototype.disabledChanged=function(a){if(a!==undefined){this.getRadios().forEach((function(e){e.disabled=a}));this.getRadioButtons().forEach((function(e){e.disabled=a}))}};a.prototype.readonlyChanged=function(a){if(a!==undefined){this.getRadios().forEach((function(e){e.readonly=a}));this.getRadioButtons().forEach((function(e){e.readonly=a}))}};a.prototype.columnsChanged=function(a){this.getRadioButtons().forEach((function(e){return e.colSize=a}))};a.prototype.columnsTabletChanged=function(a){this.getRadioButtons().forEach((function(e){return e.colSizeTablet=a}))};a.prototype.columnsMobileChanged=function(a){this.getRadioButtons().forEach((function(e){return e.colSizeMobile=a}))};a.prototype.connectedCallback=function(){this.initialValue=this.value;this.mutationObserverActive=this.options===undefined};a.prototype.componentWillLoad=function(){this.setRadioInterface();this.disabledChanged(this.disabled);this.readonlyChanged(this.readonly);this.invalidChanged(this.invalid);this.columnsChanged(this.grid);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange();this.inheritedAttributes=s(this.el,["aria-label","tabindex","title"])};a.prototype.focusInListener=function(a){this.balFocus.emit(a)};a.prototype.focusOutListener=function(a){this.balBlur.emit(a)};a.prototype.mutationListener=function(){this.setRadioInterface();this.disabledChanged(this.disabled);this.readonlyChanged(this.readonly);this.invalidChanged(this.invalid);this.columnsChanged(this.grid);this.columnsTabletChanged(this.columnsTablet);this.columnsMobileChanged(this.columnsMobile);this.onOptionChange()};a.prototype.listenOnClick=function(a){if(d(this.el,a.target)){x(a)}};a.prototype.radioFocusListener=function(a){var e=a.target;if(e&&d(this.el,e)&&t(e,"bal-radio")){x(a)}};a.prototype.radioBlurListener=function(a){var e=a.target;if(e&&d(this.el,e)&&t(e,"bal-radio")){x(a)}};a.prototype.resetListener=function(a){var e=a.target;if(e===null||e===void 0?void 0:e.contains(this.el)){this.value=this.initialValue}};a.prototype.onKeydown=function(a){if(a.target&&!this.el.contains(a.target)){return}var e=this.getRadios().filter((function(a){return!a.disabled}));var o=a.target.closest("bal-radio");if(o&&e.includes(o)){var c=e.findIndex((function(a){return a===o}));var b=e[c];var l=void 0;if(["ArrowDown","ArrowRight"].includes(a.code)){l=c===e.length-1?e[0]:e[c+1]}if(["ArrowUp","ArrowLeft"].includes(a.code)){l=c===0?e[e.length-1]:e[c-1]}if(l&&e.includes(l)){l.setFocus(a);this.value=l.value;this.balChange.emit(this.value)}if(["Space"].includes(a.code)){this.value=this.allowEmptySelection&&this.value!==undefined?undefined:b.value;a.preventDefault()}}};a.prototype.setValue=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.value=a;return[2]}))}))};a.prototype.getOptionByValue=function(a){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(o){e=this.options;if(e){return[2,e.find((function(e){return e.value===a}))]}return[2,undefined]}))}))};a.prototype.setAriaForm=function(a){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ariaForm=Object.assign({},a);return[2]}))}))};a.prototype.setRadioInterface=function(){var a=this;this.getRadios().forEach((function(e){if(a.interface){e.interface=a.interface}}))};a.prototype.setRadioChecked=function(){this.getRadios().forEach((function(a){if(a.updateState){a.updateState()}}))};a.prototype.getRadios=function(){return Array.from(this.el.querySelectorAll("bal-radio"))};a.prototype.getRadioButtons=function(){return Array.from(this.el.querySelectorAll("bal-radio-button"))};a.prototype.render=function(){var a=this;var e=h.block("radio-checkbox-group");var o=e.element("inner");var l=this.options||[];var r=l.map((function(a){if(typeof a.html==="function"){return Object.assign(Object.assign({},a),{html:a.html()})}return a}));return c(b,Object.assign({class:Object.assign({},e.class()),role:"radiogroup","aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-disabled":this.disabled?"true":null,onClick:this.onClick},this.inheritedAttributes),c("div",{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o.class()),o.modifier("vertical-mobile").class(this.verticalOnMobile)),o.modifier("vertical").class(this.vertical)),o.modifier("expanded").class(this.expanded)),o.modifier("select-button").class(this.interface==="select-button"))},c("slot",null),r.map((function(e){return c("bal-radio",{key:e.value,name:e.name||a.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(a.prototype,"el",{get:function(){return l(this)},enumerable:false,configurable:true});Object.defineProperty(a,"watchers",{get:function(){return{options:["optionChanged"],value:["valueChanged"],invalid:["invalidChanged"],disabled:["disabledChanged"],readonly:["readonlyChanged"],grid:["columnsChanged"],columnsTablet:["columnsTabletChanged"],columnsMobile:["columnsMobileChanged"]}},enumerable:false,configurable:true});return a}());r([k("bal-radio-group"),i("design:type",Function),i("design:paramtypes",[Function]),i("design:returntype",void 0)],j.prototype,"createLogger",null);r([f(),i("design:type",Function),i("design:paramtypes",[FocusEvent]),i("design:returntype",void 0)],j.prototype,"focusInListener",null);r([f(),i("design:type",Function),i("design:paramtypes",[FocusEvent]),i("design:returntype",void 0)],j.prototype,"focusOutListener",null);r([g({tags:["bal-radio-group","bal-radio"],attributes:false,characterData:false}),i("design:type",Function),i("design:paramtypes",[]),i("design:returntype",void 0)],j.prototype,"mutationListener",null);r([u("balChange",{capture:true,target:"document"}),i("design:type",Function),i("design:paramtypes",[UIEvent]),i("design:returntype",void 0)],j.prototype,"listenOnClick",null);r([u("balFocus",{capture:true,target:"document"}),i("design:type",Function),i("design:paramtypes",[CustomEvent]),i("design:returntype",void 0)],j.prototype,"radioFocusListener",null);r([u("balBlur",{capture:true,target:"document"}),i("design:type",Function),i("design:paramtypes",[CustomEvent]),i("design:returntype",void 0)],j.prototype,"radioBlurListener",null);r([u("reset",{capture:true,target:"document"}),i("design:type",Function),i("design:paramtypes",[UIEvent]),i("design:returntype",void 0)],j.prototype,"resetListener",null);r([u("keydown",{target:"document"}),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",void 0)],j.prototype,"onKeydown",null);var O=0}}}));
@@ -1 +0,0 @@
1
- import{r as t,c as s,h as i,H as e,g as n}from"./p-2539ba43.js";import{_ as r,a as h}from"./p-43c9f5e9.js";import{f as a,i as o,a as l,b as u,e as c,k as d,l as p,s as m,h as f,j as b,c as g,d as y}from"./p-63b52c0f.js";import{o as v}from"./p-33101c54.js";import{i as j}from"./p-dd5e13d1.js";import{g as k,a as F,b as C,f as I}from"./p-4dad7840.js";import{B as w}from"./p-ae86d0a0.js";import{d as x}from"./p-f385e205.js";import{L as K}from"./p-b77e3348.js";import{l as L}from"./p-9a3d9e17.js";import{N as O,A as $}from"./p-ec1efe3d.js";import{i as E}from"./p-e581de20.js";import{L as P}from"./p-af4c6af2.js";import{d as B}from"./p-a19d1e1d.js";import{L as V}from"./p-69e7c8d6.js";import"./p-a65354df.js";import"./p-2229e98e.js";import"./p-aafb6696.js";import"./p-4573c419.js";var H=Object.prototype.toString,_=function(t){return function(t){return"number"==typeof t||function(t){return!!t&&"object"==typeof t}(t)&&"[object Number]"==H.call(t)}(t)&&t!=+t};function A(t){return"string"==typeof t&&"."!==C()}function D(t){const s=parseFloat(t);return"number"==typeof s&&!_(s)}function N(t,s=0){let i=t;if(""!==i&&null!=i&&!_(i)&&i!==k()&&i!==F()&&D(i))return A(i)&&(i=i.split(C()).join("").split("`").join("").split("'").join("")),0===s?parseInt(i,10):parseFloat(i)}function S(t,s=0){let i=t;if(L(i))return"";A(i)&&(i=i.split(C()).join("").split("`").join("").split("'").join("")),i.charAt(0)===F()&&(i=`0${i}`);const e=0===s?parseInt(i,10):parseFloat(i.replace(F(),"."));return _(e)?"":e.toFixed(s)}function T(t){return t.replace(".",F())}function U(t,s=0,i=""){if(L(t))return"";t.charAt(0)===F()&&(t=`0${t}`);const e=0===s?parseInt(t,10):parseFloat(t),n=""!==i?` ${i.trim()}`:"";return _(e)?"":I(e,s)+n}const q=class{constructor(i){t(this,i),this.balInput=s(this,"balInput",7),this.balChange=s(this,"balChange",7),this.balBlur=s(this,"balBlur",7),this.balFocus=s(this,"balFocus",7),this.balKeyPress=s(this,"balKeyPress",7),this.inputId="bal-number-input-"+z++,this.inheritedAttributes={},this.lastValue="",this.inputValue=this.value,this.initialValue=void 0,this.onClick=t=>a(this,t),this.handleClick=t=>o(this,t),this.onInput=()=>{var t,s;!this.nativeInput||D(s=this.nativeInput.value)||""===s||s===k()||s===F()?(this.lastValue=(null===(t=this.nativeInput)||void 0===t?void 0:t.value)||"",this.balInput.emit(N(this.lastValue,this.decimal))):this.nativeInputValue=this.lastValue||""},this.onFocus=t=>{l(this,t),this.nativeInput&&(this.nativeInputValue=T(this.lastValue||""),clearTimeout(this.selectTimeout),this.selectTimeout=setTimeout((()=>this.nativeInput.select())))},this.onBlur=t=>{u(this,t),this.nativeInput&&(this.lastValue=S(this.lastValueGetter,this.decimal),this.nativeInputValue=U(this.lastValueGetter,this.decimal,this.suffix),this.nativeInput.value=this.nativeInputValue),this.inputValue=N(this.lastValueGetter,this.decimal),c(this)},this.onKeydown=t=>{const s=d(this),i=p(this,t),e=null==t?void 0:t.target;if(e&&!function({key:t,ctrlKey:s,metaKey:i,selectionStart:e,selectionEnd:n,newValue:r,decimal:h}){if(["a","c","v"].includes(t)&&(s||i))return!0;if(t===k()&&e&&e>0&&n&&n>0)return!1;if(t===F()){if(0===h)return!1;if(((r.split(F())||[]).length-1||0)>1)return!1}if(![...O,...$,F(),k()].includes(t))return!1;if(0!==h&&r.includes(F())&&[...O].includes(t)){const t=r.split(F());if(t[t.length-1].length>h)return!1}return!0}({key:t.key,ctrlKey:t.ctrlKey,metaKey:t.metaKey,decimal:this.decimal,newValue:i,oldValue:s,selectionStart:e.selectionStart,selectionEnd:e.selectionEnd}))return m(t)},this.focused=!1,this.language=B.language,this.region=B.region,this.ariaForm=x,this.nativeInputValue="",this.inputPattern=this.createPattern(),this.name=this.inputId,this.invalid=!1,this.decimal=0,this.suffix=void 0,this.pattern=void 0,this.placeholder=void 0,this.required=!1,this.disabled=!1,this.readonly=!1,this.exactNumber=!1,this.max=void 0,this.min=void 0,this.debounce=0,this.value=void 0,this.autoInvalidOff=!1}createLogger(t){this.log=t}debounceChanged(){this.balChange=v(this.balChange,this.debounce)}valueChanged(t,s){if(t!==s){const s=""===t||L(t)||_(t)?this.exactNumber?"0":"":t.toString();this.inputValue=N(S(s,this.decimal),this.decimal),this.lastValue=S(s,this.decimal),this.nativeInputValue=this.focused?T(this.lastValue):U(this.lastValue,this.decimal,this.suffix)}}connectedCallback(){this.debounceChanged(),this.initialValue=this.value||0,void 0!==this.value&&this.valueChanged(this.value,void 0)}componentDidLoad(){this.inputValue=this.value}componentWillLoad(){this.inheritedAttributes=j(this.el,["aria-label","tabindex","title"])}listenOnClick(t){f(this,t)}resetHandler(t){const s=t.target;(null==s?void 0:s.contains(this.el))&&b(this,this.initialValue,this.resetHandlerTimer)}async configChanged(t){this.language=t.language,this.region=t.region,this.inputPattern=this.createPattern(),this.nativeInput&&(this.nativeInputValue=this.focused?T(this.lastValue):U(this.lastValue,this.decimal,this.suffix))}async setFocus(){g(this)}async setBlur(){y(this)}getInputElement(){return Promise.resolve(this.nativeInput)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}createPattern(){if(this.pattern)return this.pattern;let t=this.suffix||"";""!==t&&(t=` ${t}`);const s=C();let i=F();return","===i&&(i="\\,"),`-?\\d{1,3}(?:${s}\\d{3})*(?:\\${i}\\d{1,2})?(?:${t})?`}get lastValueGetter(){return this.exactNumber&&(L(this.lastValue)||E(this.lastValue))?"0":this.lastValue}render(){const t=w.block("number-input");return i(e,{key:"25a122a19c18a933d55991cb22b29f6e2a96eb02",onClick:this.handleClick,"aria-disabled":this.disabled?"true":null,class:Object.assign({},t.class())},i("input",Object.assign({key:"d9ef6e1d970f4ada012b65d2518fd793b44024c3",class:{input:!0,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid},"data-testid":"bal-number-input",ref:t=>this.nativeInput=t,id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":!0===this.invalid?"true":"false","aria-disabled":this.disabled?"true":null,name:this.name,disabled:this.disabled,placeholder:this.placeholder||"",readonly:this.readonly,required:this.required,pattern:this.inputPattern,min:this.min,max:this.max,value:this.nativeInputValue,onInput:t=>this.onInput(t),onFocus:t=>this.onFocus(t),onBlur:t=>this.onBlur(t),onClick:this.onClick,onKeyDown:t=>this.onKeydown(t),onKeyPress:t=>this.balKeyPress.emit(t)},this.inheritedAttributes)))}get el(){return n(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}};r([K("bal-number-input"),h("design:type",Function),h("design:paramtypes",[Function]),h("design:returntype",void 0)],q.prototype,"createLogger",null),r([P("click",{capture:!0,target:"document"}),h("design:type",Function),h("design:paramtypes",[UIEvent]),h("design:returntype",void 0)],q.prototype,"listenOnClick",null),r([P("reset",{capture:!0,target:"document"}),h("design:type",Function),h("design:paramtypes",[UIEvent]),h("design:returntype",void 0)],q.prototype,"resetHandler",null),r([V(),h("design:type",Function),h("design:paramtypes",[Object]),h("design:returntype",Promise)],q.prototype,"configChanged",null);let z=0;q.style=".bal-number-input{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;position:relative;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;width:100%;padding:0;font-family:var(--bal-font-family-text)}";export{q as bal_number_input}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(t,e,i,n){function r(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,o){function s(t){try{l(n.next(t))}catch(t){o(t)}}function a(t){try{l(n["throw"](t))}catch(t){o(t)}}function l(t){t.done?i(t.value):r(t.value).then(s,a)}l((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},n,r,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(t){return function(e){return l([t,e])}}function l(a){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,a[0]&&(i=0)),i)try{if(n=1,r&&(o=a[0]&2?r["return"]:a[0]?r["throw"]||((o=r["return"])&&o.call(r),0):r.next)&&!(o=o.call(r,a[1])).done)return o;if(r=0,o)a=[a[0]&2,o.value];switch(a[0]){case 0:case 1:o=a;break;case 4:i.label++;return{value:a[1],done:false};case 5:i.label++;r=a[1];a=[0];continue;case 7:a=i.ops.pop();i.trys.pop();continue;default:if(!(o=i.trys,o=o.length>0&&o[o.length-1])&&(a[0]===6||a[0]===2)){i=0;continue}if(a[0]===3&&(!o||a[1]>o[0]&&a[1]<o[3])){i.label=a[1];break}if(a[0]===6&&i.label<o[1]){i.label=o[1];o=a;break}if(o&&i.label<o[2]){i.label=o[2];i.ops.push(a);break}if(o[2])i.ops.pop();i.trys.pop();continue}a=e.call(t,i)}catch(t){a=[6,t];r=0}finally{n=o=0}if(a[0]&5)throw a[1];return{value:a[0]?a[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,r=e.length,o;n<r;n++){if(o||!(n in e)){if(!o)o=Array.prototype.slice.call(e,0,n);o[n]=e[n]}}return t.concat(o||Array.prototype.slice.call(e))};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-6913b916.system.js","./p-4d807f18.system.js","./p-1c41de53.system.js","./p-b79d8942.system.js","./p-bf139fe5.system.js","./p-db0895e2.system.js","./p-23bdd8dc.system.js","./p-6e5745c8.system.js","./p-ee3c7a38.system.js","./p-d97dc6a8.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js","./p-df907af8.system.js","./p-2880433e.system.js"],(function(t){"use strict";var e,i,n,r,o,s,a,l,c,u,h,f,d,b,p,v,_,m,g,y,k,w,x,j,O,T,A,C,z,F,M,L,P,B,E;return{setters:[function(t){e=t.r;i=t.c;n=t.h;r=t.H;o=t.g},function(t){s=t._;a=t.a},function(t){l=t.l},function(t){c=t.m;u=t.d;h=t.f;f=t.i;d=t.j},function(t){b=t.a},function(t){p=t.r;v=t.p;_=t.l;m=t.g;g=t.i;y=t.s;k=t.a;w=t.f;x=t.b;j=t.v},function(t){O=t.s},function(t){T=t.B},function(t){A=t.L},function(t){C=t.d},function(t){z=t.L},function(t){F=t.d;M=t.i;L=t.a;P=t.b;B=t.c;E=t.j},function(){},function(){},function(){},function(){},function(){}],execute:function(){var I=function(t,e,i){if(typeof MutationObserver==="undefined"){return}var n=new MutationObserver((function(t){t=t.filter((function(t){return t.target.nodeName===e.toUpperCase()||t.target.nodeName==="bal-select".toUpperCase()}));if(t.length>0){i(undefined)}}));n.observe(t,{childList:true,subtree:true,attributes:true,characterData:true});return n};var K=":root{--bal-select-control-background:var(--bal-color-white);--bal-select-control-background-hover:var(--bal-form-field-control-background-hover);--bal-select-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-select-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-select-control-input-background:var(--bal-color-grey-1);--bal-select-control-native-input-background:transparent;--bal-select-control-native-input-background-hover:transparent;--bal-select-control-input-inverted-footer-background:transparent;--bal-select-control-input-inverted-footer-background-hover:transparent;--bal-select-control-input-multiple-background:transparent;--bal-select-control-input-multiple-background-read-only-selection:transparent;--bal-select-control-input-option-background:transparent;--bal-select-control-input-option-background-selected:var(--bal-color-primary-1);--bal-select-control-input-option-background-focused:var(--bal-color-grey-2);--bal-select-control-input-option-background-hover:var(--bal-color-grey-2);--bal-select-control-border-radius:var(--bal-form-field-control-radius);--bal-select-popover-border-color:var(--bal-color-grey-2);--bal-select-control-border-color:var(--bal-form-field-control-border-color);--bal-select-control-border-color-focused:var(--bal-color-primary);--bal-select-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-select-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-select-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-select-control-border-color-focus-within:var(--bal-color-primary);--bal-select-option-border-top-color:var(--bal-color-grey-2);--bal-select-popover-empty-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color:var(--bal-form-field-control-color);--bal-select-control-text-color-focused:var(--bal-color-primary);--bal-select-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-select-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-select-option-content-label-text-color:var(--bal-form-field-control-color)}bal-select-option{display:none !important}.bal-select{display:block;position:relative;width:100%;-ms-flex:1;flex:1;font-family:var(--bal-font-family-text)}.bal-select__popover{border:.125rem solid var(--bal-select-popover-border-color)}.bal-select__popover__empty{padding:.5rem 1rem;font-family:var(--bal-font-family-text);color:var(--bal-select-popover-empty-text-color)}.bal-select__popover__empty--hidden{display:none}.bal-select__native{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-select__control{display:-ms-flexbox;display:flex;border-width:.125rem;border-style:solid;border-color:var(--bal-select-control-border-color);border-radius:var(--bal-select-control-border-radius);background:var(--bal-select-control-background);font-size:var(--bal-font-weight-regular);font-family:var(--bal-font-family-text);color:var(--bal-select-control-text-color);outline:none;-webkit-box-shadow:none;box-shadow:none;padding-right:1rem;min-height:3rem}.bal-select__control--focused{border-color:var(--bal-select-control-border-color-focused)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover{border-color:var(--bal-select-control-border-color-hover);background-color:var(--bal-select-control-background-hover)}.bal-select__control:not(.bal-select__control--disabled):not(.bal-select__control--invalid):not(.bal-select__control--inverted-footer):hover .bal-select__control__input{background-color:var(--bal-select-control-input-background)}.bal-select__control--invalid:not(.bal-select__control--disabled){border-color:var(--bal-select-control-border-color-invalid) !important;background:var(--bal-select-control-background-invalid) !important}.bal-select__control:focus-within{border-color:var(--bal-select-control-border-color-focus-within) !important}.bal-select__control--disabled{background-color:var(--bal-select-control-background-disabled) !important;border-color:var(--bal-select-control-border-color-disabled) !important}.bal-select__control--disabled,.bal-select__control--disabled input{cursor:default !important;-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;pointer-events:none !important;color:var(--bal-select-input-text-color-disabled)}.bal-select__control--inverted-footer{border:none;background-color:var(--bal-select-control-input-inverted-footer-background) !important;padding-right:0}.bal-select__control--inverted-footer:hover{background-color:var(--bal-select-control-input-inverted-footer-background-hover) !important}.bal-select__control--inverted-footer .input{color:var(--bal-select-control-inverted-footer-native-input-text-color);background-color:var(--bal-select-control-native-input-background) !important}.bal-select__control--inverted-footer .input:hover{background-color:var(--bal-select-control-native-input-background-hover) !important}.bal-select__control__icon{min-height:100% !important;max-height:100% !important}.bal-select__control__icon--loading{display:none}.bal-select__control__icon--clickable{cursor:pointer}.bal-select__control__selections{-ms-flex-align:center;align-items:center;display:-ms-flexbox;display:flex;-ms-flex:1 1;flex:1 1;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:1.125rem;max-width:100%;min-width:0;gap:0;padding-left:.375rem}.bal-select__control__selections .bal-tag{margin-left:.25rem;margin-top:.375rem;margin-bottom:.375rem}.bal-select__control__selections .bal-tag+.input{padding-left:.625rem}.bal-select__control__input{border:none !important;outline:none !important;outline-width:0 !important;height:2.75rem !important;-webkit-box-shadow:none !important;box-shadow:none !important;background:var(--bal-select-control-input-multiple-background);-ms-flex:1;flex:1;min-height:2.75rem !important;padding-left:.25rem !important;padding-right:.625rem !important;text-overflow:ellipsis}.bal-select__control__input:-moz-read-only{-moz-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only{-webkit-user-select:none !important;-moz-user-select:none !important;-ms-user-select:none !important;user-select:none !important;-webkit-tap-highlight-color:rgba(0,0,0,0)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:-moz-read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__control__input:read-only::-moz-selection{background:var(--bal-select-control-input-multiple-background-read-only-selection)}.bal-select__option{visibility:visible;font-family:var(--bal-font-family-text);background:var(--bal-select-control-input-option-background);border:none;cursor:pointer;outline:none;min-height:3rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;padding:0;margin:0;border-top:.125rem solid var(--bal-select-option-border-top-color);text-align:inherit;white-space:nowrap;width:100%}.bal-select__option:first-child{border-top:none}.bal-select__option::-moz-focus-inner{border:none}.bal-select__option--selected{background:var(--bal-select-control-input-option-background-selected)}.bal-select__option--selected .bal-select__option__content__label{font-weight:var(--bal-font-weight-bold)}.bal-select__option--focused{background:var(--bal-select-control-input-option-background-focused)}.bal-select__option:hover{background:var(--bal-select-control-input-option-background-hover)}.bal-select__option__content{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;-ms-flex-align:center;align-items:center;min-height:3rem;padding:.75rem 1rem;gap:.75rem}.bal-select__option__content__checkbox{margin:0;padding:0}.bal-select__option__content__label{margin:0;padding:0;font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-select-option-content-label-text-color);line-height:1.125rem;word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}";var S=K;var U=true;var D=false;var H=t("bal_select",function(){function t(t){var n=this;e(this,t);this.balChange=i(this,"balChange",7);this.balInputClick=i(this,"balInputClick",7);this.balInput=i(this,"balInput",7);this.balBlur=i(this,"balBlur",7);this.balFocus=i(this,"balFocus",7);this.balCancel=i(this,"balCancel",7);this.balKeyPress=i(this,"balKeyPress",7);this.didInit=false;this.inputId="bal-select-".concat(N++);this.initialValue=[];this.removeValue=function(t){if(!n.disabled){n.updateRawValue(p(n.rawValue,t),U);if(n.multiple&&n.typeahead){n.setFocus()}n.fireBlur()}};this.fireBlur=function(t){if(t===void 0){t=new CustomEvent("blur")}if(!n.isPopoverOpen&&!n.hasFocus){c((function(){return n.balBlur.emit(t)}))}};this.handleClick=function(t){if(n.disabled||n.readonly){v(t)}};this.handlePopoverChange=function(t){t.stopPropagation();if(n.isPopoverOpen!==t.detail){n.isPopoverOpen=t.detail;if(n.isPopoverOpen){n.updateFocus()}else{n.focusIndex=-1;if(n.multiple&&n.typeahead){n.updateInputValue("")}n.fireBlur(t)}}};this.handleInputBlur=function(t){v(t);var e=t.relatedTarget;if(e===null||e&&e.nodeName&&(e.nodeName==="BAL-MODAL"||e.nodeName==="INPUT"||e.nodeName==="BUTTON")){n.validateAfterBlur(U)}n.hasFocus=false;n.fireBlur(t)};this.handleInputFocus=function(t){n.balFocus.emit(t);n.hasFocus=true};this.handleInputClick=function(t){var e=[];for(var i=1;i<arguments.length;i++){e[i-1]=arguments[i]}return __awaiter(n,__spreadArray([t],e,true),void 0,(function(t,e){var i,n,r,o;if(e===void 0){e=false}return __generator(this,(function(s){switch(s.label){case 0:O(t);if(this.isChipClicked(t)){return[2]}if(!(this.disabled||this.readonly))return[3,1];v(t);return[3,10];case 1:this.focusIndex=-1;this.balInputClick.emit(t);if(!this.typeahead)return[3,6];if(!(this.isPopoverOpen&&e))return[3,3];return[4,(i=this.popoverElement)===null||i===void 0?void 0:i.dismiss()];case 2:s.sent();return[3,5];case 3:return[4,(n=this.popoverElement)===null||n===void 0?void 0:n.present()];case 4:s.sent();s.label=5;case 5:return[3,10];case 6:if(!this.isPopoverOpen)return[3,8];return[4,(r=this.popoverElement)===null||r===void 0?void 0:r.dismiss()];case 7:s.sent();return[3,10];case 8:return[4,(o=this.popoverElement)===null||o===void 0?void 0:o.present()];case 9:s.sent();s.label=10;case 10:return[2]}}))}))};this.handleKeyPress=function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){switch(e.label){case 0:if(!(!this.isPopoverOpen&&F(t)))return[3,2];v(t);return[4,this.open()];case 1:e.sent();e.label=2;case 2:this.balKeyPress.emit(t);return[2]}}))}))};this.handleInputChange=function(t){if(!n.disabled&&!n.readonly){n.inputValue=t.target.value}};this.handleInput=function(t){return __awaiter(n,void 0,void 0,(function(){return __generator(this,(function(e){if(!this.disabled&&!this.readonly){this.inputValue=t.target.value;if(!this.isPopoverOpen){this.popoverElement.present()}this.focusIndex=-1;this.updateFocus();v(t);this.balInput.emit(this.inputValue)}return[2]}))}))};this.handleOptionMouseEnter=function(t){n.focusIndex=t};this.hasFocus=false;this.inputValue="";this.focusIndex=-1;this.isPopoverOpen=false;this.options=new Map;this.labelToScrollTo="";this.labelToSelectTo="";this.ariaForm=C;this.name=this.inputId;this.invalid=false;this.filter="includes";this.balTabindex=0;this.freeSolo=false;this.multiple=false;this.maxLength=undefined;this.noDataLabel=undefined;this.autocomplete="off";this.typeahead=false;this.selectionOptional=false;this.disabled=false;this.readonly=false;this.required=false;this.inverted=false;this.placeholder=undefined;this.scrollable=250;this.loading=false;this.remote=false;this.autoInvalidOff=false;this.value=[];this.rawValue=[]}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueWatcher=function(){this.syncRawValue(false)};t.prototype.updateRawValue=function(t,e){if(e===void 0){e=true}if(!b(t,this.rawValue||[])){this.rawValue=__spreadArray([],t,true);this.syncNativeInput();if(this.didInit&&e===true){if(this.multiple){if(l(this.rawValue)){this.emitChangeEvent([])}else{this.emitChangeEvent(__spreadArray([],this.rawValue,true))}}else{if(l(this.rawValue)||_(this.rawValue)===0){this.emitChangeEvent(undefined)}else{this.emitChangeEvent(this.rawValue[0])}}}}};t.prototype.emitChangeEvent=function(t){this.balChange.emit(t)};t.prototype.connectedCallback=function(){var t=this;var e=d((function(){return t.updateOptions()}),0);this.initialValue=this.value;e();this.mutationO=I(this.el,"bal-select-option",(function(){e()}))};t.prototype.componentWillLoad=function(){this.waitForOptionsAndThenUpdateRawValues();this.isInsideOfFooter();if(!l(this.rawValue)&&this.options.size>0&&_(this.rawValue)===1){var t=this.options.get(this.rawValue[0]);if(!l(t)){this.inputValue=t.label}}};t.prototype.componentDidLoad=function(){this.syncRawValue(false);if(!this.multiple){this.inputElement.value=this.inputValue}this.didInit=true};t.prototype.disconnectedCallback=function(){if(this.mutationO){this.mutationO.disconnect();this.mutationO=undefined}};t.prototype.listenOnClick=function(t){if(this.disabled&&t.target&&t.target===this.el){v(t)}};t.prototype.resetHandler=function(t){var e=this;var i=t.target;if(i===null||i===void 0?void 0:i.contains(this.el)){if(this.resetHandlerTimer){clearTimeout(this.resetHandlerTimer)}this.resetHandlerTimer=setTimeout((function(){e.value=e.initialValue;e.syncRawValue(false);e.syncNativeInput();if(e.nativeSelectEl){var t=Array.from(e.nativeSelectEl.options);t.forEach((function(t){return t.selected=true}))}}),0)}};t.prototype.handleKeyDown=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){switch(i.label){case 0:if(!this.isPopoverOpen)return[3,1];if(M(t)||L(t)){v(t);this.navigateWithArrowKey(t);this.updateFocus()}if(P(t)){v(t);this.selectedFocusedOption()}if(B(t)){this.cancel()}if(E(t)&&this.typeahead&&this.multiple){if(this.inputElement.value===""&&_(this.rawValue)>0){e=m(this.rawValue);this.removeValue(e[_(this.rawValue)-1])}}if(!this.typeahead&&t.key.length===1){this.focusOptionByLabel(t.key)}if(F(t)&&!this.typeahead){v(t)}return[3,4];case 1:if(!this.hasFocus)return[3,4];if(!(M(t)||L(t)))return[3,3];v(t);return[4,this.open()];case 2:i.sent();i.label=3;case 3:if(!this.typeahead&&t.key.length===1){this.selectOptionByLabel(t.key)}i.label=4;case 4:return[2]}}))}))};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(this.inputElement&&!this.disabled))return[3,2];return[4,u()];case 1:t.sent();this.inputElement.focus();t.label=2;case 2:return[2]}}))}))};t.prototype.getValue=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){return[2,this.rawValue]}))}))};t.prototype.clear=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.focusIndex=-1;if(this.inputElement){this.updateInputValue("");this.updateRawValue([],U);this.value=this.multiple?[]:""}return[2]}))}))};t.prototype.open=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){switch(t.label){case 0:if(!(!this.disabled&&!this.readonly&&!l(this.popoverElement)))return[3,2];return[4,this.popoverElement.present()];case 1:t.sent();t.label=2;case 2:return[2]}}))}))};t.prototype.close=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){if(!this.disabled&&!this.readonly&&!l(this.popoverElement)){this.blurSelect()}return[2]}))}))};t.prototype.cancel=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.labelToScrollTo="";this.close();this.scrollTo(0);this.balCancel.emit();return[2]}))}))};t.prototype.select=function(t){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(i){e=this.options.get(t);if(!l(e)){this.optionSelected(e)}return[2]}))}))};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.waitForOptionsAndThenUpdateRawValues=function(){return __awaiter(this,void 0,void 0,(function(){var t;var e=this;return __generator(this,(function(i){switch(i.label){case 0:clearTimeout(this.waitForOptionsAndThenUpdateRawValuesTimer);return[4,h(this.el)];case 1:i.sent();t=this.options.size>0;if(t){if(!this.remote){this.syncRawValue(D)}}else{this.waitForOptionsAndThenUpdateRawValuesTimer=setTimeout((function(){return e.waitForOptionsAndThenUpdateRawValues()}),10)}return[2]}}))}))};t.prototype.updateOptions=function(){return __awaiter(this,void 0,void 0,(function(){var t,e,i,n,i,r,o;return __generator(this,(function(s){switch(s.label){case 0:t=this.getChildOpts();e=new Map;for(i=0;i<t.length;i++){n=t[i];e.set(n.value,{value:n.value,label:n.label,disabled:n.disabled,id:n.for,textContent:n.textContent,innerHTML:n.innerHTML})}if(!this.selectionOptional&&Array.isArray(this.rawValue)){for(i=0;i<this.rawValue.length;i++){r=this.rawValue[i];if(!e.has(r)){o=p(this.rawValue,r);this.updateRawValue(o,D)}}}this.options=new Map(e);if(!!this.typeahead)return[3,2];return[4,this.syncNativeInput()];case 1:s.sent();s.label=2;case 2:if(this.didInit&&!this.remote){this.validateAfterBlur()}return[2]}}))}))};Object.defineProperty(t.prototype,"optionArray",{get:function(){var t=this;var e=Array.from(this.options,(function(t){var e=t[0],i=t[1];return i}));if(!this.typeahead||this.remote){return e}return e.filter((function(e){return t.filter==="includes"?g(e.textContent,t.inputValue):y(e.textContent,t.inputValue)}))},enumerable:false,configurable:true});t.prototype.hasOptions=function(){return this.optionArray.length>0};Object.defineProperty(t.prototype,"inputPlaceholder",{get:function(){if(this.multiple){if(_(this.rawValue)<1){return this.placeholder}return undefined}else{if(!l(this.rawValue)&&_(this.rawValue)>0){return undefined}}return this.placeholder},enumerable:false,configurable:true});t.prototype.getChildOpts=function(){return Array.from(this.el.querySelectorAll("bal-select-option"))};t.prototype.getPopoverContent=function(){return this.popoverElement.querySelector(".bal-popover__content__inner")};t.prototype.updateFocus=function(){var t=this;if(this.focusIndex<-1){this.focusIndex=-1}var e=this.optionArray;if(e.length>0){if(e.length<=this.focusIndex){this.focusIndex=e.length-1}var i=e[this.focusIndex];if(i&&i.id){var n=this.el.querySelector("button#".concat(i.id));if(n){clearTimeout(this.updateFocusTimer);this.updateFocusTimer=setTimeout((function(){t.scrollToFocusedOption(n)}),0)}}}else{this.focusIndex=-1}};t.prototype.scrollToFocusedOption=function(t){if(t&&this.popoverElement){var e=this.getPopoverContent();if(e){var i=t.offsetTop;var n=e.scrollTop;if(i<n){e.scrollTop=i}var r=t.offsetTop+t.clientHeight;var o=e.scrollTop+e.clientHeight;if(r>o){e.scrollTop=e.scrollTop+t.clientHeight}}}};t.prototype.scrollTo=function(t){var e=this.getPopoverContent();if(e){e.scrollTop=t}};t.prototype.selectedFocusedOption=function(){var t=this.optionArray;if(t.length>this.focusIndex){var e=t[this.focusIndex];if(e){this.optionSelected(e)}}};t.prototype.navigateWithArrowKey=function(t){if(M(t)){this.focusIndex=this.focusIndex+1}else{if(L(t)){this.focusIndex=this.focusIndex-1}}};t.prototype.focusOptionByLabel=function(t){var e=this;this.labelToScrollTo=this.labelToScrollTo+t;clearTimeout(this.clearScrollToValue);this.clearScrollToValue=setTimeout((function(){e.scrollToLabel(e.labelToScrollTo)}),600)};t.prototype.selectOptionByLabel=function(t){var e=this;this.labelToSelectTo=this.labelToSelectTo+t;clearTimeout(this.clearSelectValue);this.clearSelectValue=setTimeout((function(){e.selectLabel(e.labelToSelectTo);e.labelToSelectTo=""}),600)};t.prototype.selectLabel=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(r){if(t!==" "){e=this.optionArray.find((function(e){return y(e.label||"",t)}));if(!l(e)&&e.id){i=this.el.querySelector("button#".concat(e.id));if(!l(i)){n=this.optionArray.indexOf(e);this.focusIndex=n;this.select(e.value)}}this.labelToScrollTo=""}return[2]}))}))};t.prototype.scrollToLabel=function(t){return __awaiter(this,void 0,void 0,(function(){var e,i,n;return __generator(this,(function(r){if(t!==" "){e=this.optionArray.find((function(e){return y(e.label||"",t)}));if(!l(e)&&e.id){i=this.el.querySelector("button#".concat(e.id));if(!l(i)){n=this.optionArray.indexOf(e);this.focusIndex=n;this.scrollTo(i.offsetTop)}}this.labelToScrollTo=""}return[2]}))}))};t.prototype.syncRawValue=function(t){if(t===void 0){t=true}var e=[];if(!l(this.value)&&this.value!==""){if(Array.isArray(this.value)){e=__spreadArray([],this.value.filter((function(t){return!l(t)})),true)}else{if(this.value.split("").includes(",")){e=__spreadArray([],this.value.split(",").filter((function(t){return t})).map((function(t){return t.trim()})),true)}else{e=[this.value]}}}this.updateRawValue(e,t)};t.prototype.blurSelect=function(){this.popoverElement.dismiss()};t.prototype.optionSelected=function(t){var e=m(this.rawValue);var i=e.some((function(e){return e===t.value}));this.updateValue(t.value,!i);if(!this.multiple){this.blurSelect()}else{if(this.typeahead){this.setFocus()}}};t.prototype.updateValue=function(t,e){if(e===void 0){e=true}if(this.multiple){if(e){this.updateRawValue(k(this.rawValue,t,this.multiple),U)}else{this.updateRawValue(p(this.rawValue,t),U)}}else{this.updateRawValue(k(this.rawValue,t,this.multiple),U);if(this.rawValue&&this.rawValue.length>0){this.updateInputValue(w(this.options,this.rawValue[0]))}}};t.prototype.validateAfterBlur=function(t){if(t===void 0){t=D}var e=this.rawValue;if(this.didInit&&!this.multiple){if(this.typeahead&&(this.selectionOptional||this.remote)){var i=x(this.options,this.inputElement.value);if(i){e=[i.value]}else{e=[this.inputElement.value]}}else{e=j(this.rawValue,this.options,this.inputElement.value)}this.updateRawValue(e,t)}};t.prototype.syncNativeInput=function(){if(!this.multiple){if(_(this.rawValue)>0){var t=m(this.rawValue);var e=w(this.options,t[0]);if(!this.multiple&&this.typeahead&&this.selectionOptional&&e===""){e=t.join(", ")}return this.updateInputValue(e)}}return Promise.resolve()};t.prototype.updateInputValue=function(t){var e=this;return new Promise((function(i){if(e.updateInputValueTimer){clearTimeout(e.updateInputValueTimer)}e.updateInputValueTimer=setTimeout((function(){if(!l(e.inputElement)){e.inputElement.value=t;e.inputValue=t;i()}}),0)}))};t.prototype.isChipClicked=function(t){var e=false;if(this.multiple){var i=this.selectionEl.querySelectorAll("bal-tag");var n=t.target;i.forEach((function(t){var i=f(t,n)||t===n;if(i){e=i}}))}return e};t.prototype.isInsideOfFooter=function(){this.inverted=this.el.closest("bal-footer")!==null};t.prototype.render=function(){var t=this;var e;var i=function(e){return n("bal-tag",{key:"4b1cc586f9d9b2a7b08a01b35e60a1b1a9f595cd",size:"",closable:!t.disabled,disabled:t.disabled,invalid:t.invalid,tabindex:-1,onBalCloseClick:function(i){return t.removeValue(e.value)},"data-testid":"bal-select-chip"},w(t.options,e.value)||e.value)};var o=m(this.rawValue);var s=T.block("select");var a=s.element("native");var l=s.element("control");var c=l.element("icon");var u=l.element("selections");var h=l.element("input");var f=s.element("popover");var d=f.element("empty");var b=s.element("option");var p=b.element("content");var _=p.element("checkbox");var g=p.element("label");return n(r,{key:"0a96668b7026a0727bb790bd8a832586fac60198",role:"listbox",onClick:this.handleClick,"aria-disabled":this.disabled?"true":null,"data-value":(e=this.rawValue)===null||e===void 0?void 0:e.map((function(e){return w(t.options,e)})).join(","),class:Object.assign(Object.assign(Object.assign(Object.assign({},s.class()),s.modifier("disabled").class(this.disabled||this.readonly)),s.modifier("inverted").class(this.inverted)),s.modifier("inverted-footer").class(this.inverted))},n("select",{key:"171e653ec3b49ef15466a0f6c337a61573ddc86b",class:Object.assign({},a.class()),name:this.name,multiple:this.multiple,required:this.required,tabindex:-1,ref:function(e){return t.nativeSelectEl=e}},o.map((function(t){return n("option",{key:t,value:t,selected:true},t)}))),n("bal-popover",{key:"570c0f670158386819df181079f49d0d534da6c7",onBalChange:this.handlePopoverChange,ref:function(e){return t.popoverElement=e}},n("div",{key:"121bf963a166d7523954b199bb776accaa84ae7a","bal-popover-trigger":true,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},l.class()),l.modifier("invalid").class(this.invalid)),l.modifier("disabled").class(this.disabled||this.readonly)),l.modifier("focused").class(this.isPopoverOpen)),l.modifier("inverted-footer").class(this.inverted))},n("div",{key:"0bf2ba2f0ef23aaa222b547df175c5dfc4b3d6c6",class:Object.assign(Object.assign({},u.class()),u.modifier("clickable").class(!this.isPopoverOpen&&!this.disabled&&!this.readonly)),onClick:this.handleInputClick,ref:function(e){return t.selectionEl=e}},o.filter((function(e){return t.multiple})).map((function(t){return n(i,{value:t})})),n("input",{key:"45872c26a2889e0dd79851bc8ea6854d9f9fe33e",type:"text",class:Object.assign(Object.assign({},h.class()),{input:true,"is-inverted":this.inverted,"is-danger":this.invalid,"is-disabled":this.disabled||this.readonly,"is-clickable":!this.isPopoverOpen&&!this.disabled&&!this.readonly,"data-test-select-input":true}),id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-invalid":this.invalid===true?"true":"false","aria-disabled":this.disabled?"true":null,"data-testid":"bal-select-input",autocomplete:this.autocomplete,"aria-autocomplete":this.autocomplete==="off"?"none":null,placeholder:this.inputPlaceholder,readonly:!this.typeahead||this.disabled||this.readonly,contentEditable:this.typeahead,disabled:this.disabled,maxLength:this.maxLength,tabindex:this.balTabindex,onInput:this.handleInput,onClick:this.handleInputClick,onChange:this.handleInputChange,onFocus:this.handleInputFocus,onBlur:this.handleInputBlur,onKeyPress:this.handleKeyPress,ref:function(e){return t.inputElement=e}})),!this.freeSolo&&!this.loading?n("bal-icon",{class:Object.assign(Object.assign(Object.assign({},c.class()),c.modifier("loading").class(this.loading)),c.modifier("clickable").class(!this.disabled&&!this.readonly)),name:!this.inverted?"caret-down":"caret-up",color:this.disabled||this.readonly?"grey-light":this.inverted?"white":this.invalid?"danger":"primary",turn:this.isPopoverOpen,onClick:function(e){return t.handleInputClick(e,true)},size:!this.inverted?"":"x-small"}):""),n("bal-popover-content",{key:"dd84e4a49c36226341c8a064988c8cf4c9b5e828",class:Object.assign({},f.class()),scrollable:this.scrollable,spaceless:true,expanded:true},this.optionArray.map((function(e,i){return n("button",{key:e.value,type:"button",role:"option",id:e.id,"data-value":e.value,"data-label":e.label,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},b.class()),b.modifier("selected").class(o.includes(e.value)&&!(t.typeahead&&!t.multiple))),b.modifier("focused").class(t.focusIndex===i)),b.modifier("checkbox").class(t.multiple)),b.modifier("disabled").class(e.disabled===true)),"data-testid":"bal-select-option",disabled:e.disabled,tabIndex:-1,onMouseEnter:function(){return t.handleOptionMouseEnter(i)},onClick:function(){return t.optionSelected(e)}},n("div",{class:Object.assign({},p.class())},n("span",{class:Object.assign({},_.class()),style:{display:t.multiple?"flex":"none"}},n("bal-checkbox",{checked:o.includes(e.value),tabindex:-1,nonSubmit:true,flat:true,onBalChange:v})),n("span",{class:Object.assign({},g.class()),innerHTML:e.innerHTML})))})),n("div",{key:"824accbd7d97809ed3b91403a959528efaf448ce",class:Object.assign(Object.assign({},d.class()),d.modifier("hidden").class(this.noDataLabel===undefined||this.hasOptions()||!this.typeahead||this.selectionOptional))},this.noDataLabel))))};Object.defineProperty(t.prototype,"el",{get:function(){return o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueWatcher"]}},enumerable:false,configurable:true});return t}());s([A("bal-select"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],H.prototype,"createLogger",null);s([z("click",{capture:true,target:"document"}),a("design:type",Function),a("design:paramtypes",[UIEvent]),a("design:returntype",void 0)],H.prototype,"listenOnClick",null);s([z("reset",{capture:true,target:"document"}),a("design:type",Function),a("design:paramtypes",[UIEvent]),a("design:returntype",void 0)],H.prototype,"resetHandler",null);s([z("keydown",{target:"window"}),a("design:type",Function),a("design:paramtypes",[KeyboardEvent]),a("design:returntype",Promise)],H.prototype,"handleKeyDown",null);var N=0;H.style=S;var q=t("bal_select_option",function(){function t(t){e(this,t);this.label=undefined;this.disabled=false;this.value=undefined;this.for="bal-selopt-".concat(G++)}t.prototype.createLogger=function(t){this.log=t};t.prototype.render=function(){return n(r,{key:"e576fb51e73b23cbfd86911da7b8ddbd337e72a3",style:{display:"none"}},n("slot",{key:"e6ad28fa2cd69ebf97968985267fd363097f88f3"}))};return t}());s([A("bal-select-option"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],q.prototype,"createLogger",null);var G=0}}}));
@@ -1 +0,0 @@
1
- import{k as t,r as s}from"./p-33101c54.js";import{b as i}from"./p-a65354df.js";function n(n,o={}){return function(c,a){const{connectedCallback:e,disconnectedCallback:h}=c,{capture:u,passive:d}=o,r={capture:u,passive:d},p=c[a],f=`__${a}Bound`,m="__elBound";c.connectedCallback=function(){e&&e.call(this),this.el&&(this[m]="document"===o.target&&i.hasDocument?document:"window"===o.target&&i.hasWindow?window:this.el,this[f]=p.bind(this),this[m]&&p&&t(this[m],n,this[f],r))},c.disconnectedCallback=function(){h&&h.call(this),this[m]&&p&&s(this[m],n,this[f],r)}}}export{n as L}
@@ -1 +0,0 @@
1
- import{r as t,c as e,h as i,H as o,g as a}from"./p-2539ba43.js";import{_ as n,a as s}from"./p-43c9f5e9.js";import{B as r}from"./p-ae86d0a0.js";import{L as l}from"./p-b77e3348.js";import{a as d}from"./p-d9b38501.js";import{s as c}from"./p-63b52c0f.js";import{B as h,L as b}from"./p-802c6111.js";import{L as p}from"./p-af4c6af2.js";import{l as u}from"./p-9a3d9e17.js";import{i as g}from"./p-dd5e13d1.js";import{b as v,n as m}from"./p-33101c54.js";import{s as f,i as y}from"./p-c0c91eb1.js";import{d as k}from"./p-f385e205.js";import"./p-a65354df.js";import"./p-acf222fd.js";import"./p-2229e98e.js";import"./p-aafb6696.js";const x=class{constructor(i){t(this,i),this.balOptionChange=e(this,"balOptionChange",7),this.balOptionFocus=e(this,"balOptionFocus",7),this.inputId="bal-option-"+w++,this.onClick=t=>{const e=this.el.closest("bal-option-list");this.disabled||e&&e.disabled?c(t):e&&e.required&&!e.multiple?this.selected||this.select(!0):this.select(!this.selected)},this.checkbox=!1,this.interactionState=h.DefaultState,this.label="",this.value="",this.disabled=!1,this.multiline=!1,this.invalid=!1,this.selected=!1,this.focused=!1,this.hidden=!1}createLogger(t){this.log=t}componentWillRender(){if(this.el){const t=this.el.closest("bal-option-list");t&&(this.checkbox=!!t.multiple)}}listenToMouseEnter(){const{label:t,value:e,selected:i,disabled:o,hidden:a}=this;a||o||this.balOptionFocus.emit({label:t,value:e,selected:i})}elementStateListener(t){this.interactionChildElements.forEach((e=>{e.hovered=t.hovered,e.pressed=t.pressed}))}async select(t=!0){this.selected=t;const{label:e,value:i}=this;this.balOptionChange.emit({label:e,value:i,selected:t})}get interactionChildElements(){return Array.from(this.el.querySelectorAll("bal-checkbox"))}render(){const t=r.block("option");return i(o,{key:"b69ef765d0cfd4e4e29743026b68c5c6c64f685c",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("checkbox").class(this.checkbox)),t.modifier("focused").class(this.focused)),t.modifier("invalid").class(this.invalid)),t.modifier("selected").class(this.selected)),t.modifier("disabled").class(this.disabled)),t.modifier("hidden").class(this.hidden)),role:"option",id:this.inputId,"data-value":this.value,"data-label":this.label,"aria-label":this.label,"aria-hidden":d(this.hidden),"aria-selected":d(this.selected),"aria-checked":d(this.selected),"aria-disabled":d(this.disabled),"aria-invalid":d(this.invalid),tabIndex:-1,onClick:this.onClick},i("bal-stack",{key:"fc345d890d6392f12c47c6775343170cf9ef9fce",py:"small",space:"x-small"},this.checkbox?i("bal-checkbox",{flat:!0,nonSubmit:!0,"label-hidden":!0,checked:this.selected,disabled:this.disabled,invalid:this.invalid,tabindex:-1}):"",i("div",{key:"d77888278aa8b163914eb3e58d852fc706563186",class:Object.assign(Object.assign({},t.element("inner").class()),t.element("inner").modifier("multiline").class(this.multiline))},i("slot",{key:"efb92bbd5efb31efec3c374ca0c123c9a2b1df3f"})),this.selected&&!this.checkbox?i("bal-icon",{name:"check",size:"small",color:this.disabled?"grey":this.invalid?"danger":"primary"}):""))}get el(){return a(this)}};n([l("bal-option"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],x.prototype,"createLogger",null),n([p("mouseenter"),s("design:type",Function),s("design:paramtypes",[]),s("design:returntype",void 0)],x.prototype,"listenToMouseEnter",null),n([b(),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],x.prototype,"elementStateListener",null);let w=0;x.style=":root{--bal-option-padding-x:var(--bal-space-small);--bal-option-min-height:1.5rem;--bal-option-background:var(--bal-color-white);--bal-option-background-hovered:var(--bal-color-grey-2);--bal-option-background-selected:var(--bal-color-primary-1);--bal-option-background-selected-hovered:#dddfeb;--bal-option-background-invalid:var(--bal-color-danger-1);--bal-option-background-invalid-hovered:#fbe0de;--bal-option-border-width:var(--bal-border-width-normal);--bal-option-border-color:var(--bal-color-grey-2);--bal-option-font-family:var(--bal-font-family-text);--bal-option-font-weight:var(--bal-font-weight-regular);--bal-option-line-height:1.125rem;--bal-option-text-hovered:var(--bal-color-text-primary-hovered);--bal-option-text-pressed:var(--bal-color-text-primary-pressed);--bal-option-text-disabled:var(--bal-color-text-grey-light)}.bal-option{font-size:16px;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:block;list-style:none;cursor:pointer;border-bottom-width:var(--bal-option-border-width);border-bottom-color:var(--bal-option-border-color);border-bottom-style:solid;background:var(--bal-option-background);padding-left:var(--bal-option-padding-x);padding-right:var(--bal-option-padding-x);min-height:var(--bal-option-min-height)}.bal-option>bal-stack{min-height:var(--bal-option-min-height)}.bal-option:last-child{border-bottom:none}.bal-option::-moz-focus-inner{border:none}.bal-option--hidden{display:none;visibility:hidden}.bal-option__inner{font-family:var(--bal-option-font-family);font-weight:var(--bal-option-font-weight);line-height:var(--bal-option-line-height);word-break:break-word;white-space:normal;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-ms-flex:1;flex:1}.bal-option__inner--multiline{white-space:normal}.bal-option--focused{background:var(--bal-option-background-hovered)}@media (hover: hover)and (pointer: fine){.bal-option:hover{background:var(--bal-option-background-hovered);color:var(--bal-option-text-hovered)}}.bal-option:active{background:var(--bal-option-background-hovered);color:var(--bal-option-text-pressed)}.bal-option--selected{background:var(--bal-option-background-selected)}@media (hover: hover)and (pointer: fine){.bal-option--selected:hover{background:var(--bal-option-background-selected-hovered)}}.bal-option--selected:active{background:var(--bal-option-background-selected-hovered)}.bal-option--selected .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--selected.bal-option--focused{background:var(--bal-option-background-selected-hovered)}.bal-option--selected.bal-option--focused .bal-option__inner{font-weight:var(--bal-font-weight-bold)}.bal-option--invalid{background:var(--bal-option-background-invalid)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover{background:var(--bal-option-background-invalid-hovered)}}.bal-option--invalid:active{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid.bal-option--focused{background:var(--bal-option-background-invalid-hovered)}.bal-option--invalid .bal-option__inner{color:var(--bal-color-text-danger-hovered)}@media (hover: hover)and (pointer: fine){.bal-option--invalid:hover .bal-option__inner{color:var(--bal-color-text-danger-hovered)}}.bal-option--invalid:active .bal-option__inner{color:var(--bal-color-text-danger-pressed)}.bal-option--disabled,.bal-option--disabled.bal-option--focused{background:var(--bal-option-background) !important;color:var(--bal-option-text-disabled) !important;cursor:default !important}.bal-option--disabled:hover,.bal-option--disabled.bal-option--focused:hover{background:var(--bal-option-background) !important}.bal-option{--bal-radio-checkbox-symbol-size:1.125rem;--bal-radio-checkbox-symbol-width:calc(0.375rem - 1px);--bal-radio-checkbox-symbol-height:calc(0.656rem - 1px);--bal-radio-checkbox-symbol-left:calc(0.375rem + 1px);--bal-radio-checkbox-symbol-margin-top:0.188rem;--bal-radio-checkbox-label-min-height:1.125rem}";const O=class{constructor(e){t(this,e),this.inputId="bal-option-list-"+j++,this.inheritAttributes={},this.ariaForm=k,this.multiple=!1,this.disabled=!1,this.required=!1,this.focusIndex=-1,this.labelledby=void 0,this.filter="includes",this.contentHeight=262}createLogger(t){this.log=t}contentHeightChanged(t){void 0===t?this.el.style.removeProperty("--bal-option-list-max-height"):this.el.style.setProperty("--bal-option-list-max-height",`${t}px`)}componentDidLoad(){this.contentHeightChanged(this.contentHeight)}componentWillRender(){this.inheritAttributes=g(this.el,["aria-multiselectable","aria-labelledby"])}listenToMouseEnter(t){const e=this.options,i=this.getOptionIndex(e,t.detail.value);void 0!==i&&this.updateFocus(e,i)}listenToOptionChange({detail:t}){this.multiple||this.options.filter((e=>e.value!==t.value)).forEach((t=>t.selected=!1))}async focusSelected(){const t=this.options,e=this.getSelectedOptionIndex(t);return e>0?(this.updateFocus(t,e),await v(),e):await this.focusFirst()}async focusFirst(){const t=this.options,e=this.getFirstOptionIndex(t);return this.updateFocus(t,e),this.updateScrollTopPosition(t[e]),await v(),e}async focusLast(){const t=this.options,e=this.getLastOptionIndex(t);return this.updateFocus(t,e),this.updateScrollBottomPosition(t[e]),await v(),e}async focusNext(){const t=this.options,e=this.getNextOptionIndex(t);return this.updateFocus(t,e),this.updateScrollBottomPosition(t[e]),await v(),e}async focusPrevious(){const t=this.options,e=this.getPreviousOptionIndex(t);return this.updateFocus(t,e),this.updateScrollTopPosition(t[e]),await v(),e}async focusByLabel(t,e){const i=this.options,o=this.getOptionIndexByLabel(i,t);this.updateFocus(i,o);const a=i[o];return this.updateScrollTopPosition(a),await v(),e.select&&await a.select(),o}async filterByContent(t){return this.filterOptions(this.allOptions,t),await v(),this.focusFirst()}async resetHidden(t=!1){this.options.forEach((e=>e.hidden=t)),await v(),this.resetFocus()}async resetSelected(t=!1){this.options.forEach((e=>e.selected=t)),await v()}async updateSelected(t){this.options.forEach((e=>e.selected=t.includes(e.value))),await v()}async resetFocus(){return this.updateFocus(this.options,-1),this.scrollTo(0),await v(),-1}async getSelectedValues(){return this.options.filter((t=>t.selected)).map((t=>t.value))}async getSelectedOptions(t){const e=this.options;return t&&t.length>0?e.filter((e=>t.includes(e.value))).map((t=>t)):e.filter((t=>t.selected)).map((t=>t))}async getValues(){return this.options.map((t=>t.value))}async getLabels(){return this.options.map((t=>t.label))}async getOptions(){return this.options.filter((t=>!t.disabled||!t.hidden))}async selectByFocus(){const t=this.options[this.focusIndex];t&&t.select(!this.multiple||!t.selected)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}get options(){return Array.from(this.el.querySelectorAll("bal-option")).filter((t=>!t.hidden))}get allOptions(){return Array.from(this.el.querySelectorAll("bal-option"))}filterOptions(t,e){const i=[],o="includes"===this.filter?y:f;for(let a=0;a<t.length;a++){const n=t[a];o(n.textContent||"",e)?(i.push(n),n.hidden=!1):n.hidden=!0}return i}isOptionVisible(t){const e=this.el.scrollTop;return e<=t.offsetTop&&t.offsetTop+t.clientHeight<=e+this.el.clientHeight}updateScrollTopPosition(t){t&&(this.isOptionVisible(t)||this.scrollTo(this.getScrollTopForTopPosition(t)))}updateScrollBottomPosition(t){t&&(this.isOptionVisible(t)||this.scrollTo(this.getScrollTopForBottomPosition(t)))}getScrollTopForTopPosition(t){const e=t.offsetTop;return e<0?0:e}getScrollTopForBottomPosition(t){const e=t.offsetTop+t.clientHeight-this.el.clientHeight;return e<0?0:e}async scrollTo(t){null!=t&&(void 0!==this.focusRaf&&cancelAnimationFrame(this.focusRaf),this.focusRaf=m((async()=>{this.el.scrollTop=t})))}updateFocus(t,e){this.focusIndex=e;for(let i=0;i<t.length;i++)t[i].focused=i===e}getOptionIndex(t,e){for(let i=0;i<t.length;i++)if(t[i].value===e)return i}getSelectedOptionIndex(t){for(let e=0;e<t.length;e++){const i=t[e];if(i.selected&&!i.hidden)return e}return this.focusIndex}getFirstOptionIndex(t){for(let e=0;e<t.length;e++){const i=t[e];if(!i.disabled&&!i.hidden)return e}return this.focusIndex}getNextOptionIndex(t,e=this.focusIndex){if(e<0)return this.getFirstOptionIndex(t);let i=e;return e<this.getLength(t)&&(i=e+1,t[i].disabled)?this.getNextOptionIndex(t,i):i}getPreviousOptionIndex(t,e=this.focusIndex){const i=this.getFirstOptionIndex(t);if(e<=i)return i;let o=e;return o=e-1,t[o].disabled?this.getPreviousOptionIndex(t,o):o}getLastOptionIndex(t){for(let e=t.length-1;e>=0;e--)if(!t[e].disabled)return e;return this.focusIndex}getOptionIndexByLabel(t,e){if(void 0===e||""===e)return this.focusIndex;const i=t.find((t=>f(t.label||"",e)));return!u(i)&&i.id?t.indexOf(i):this.focusIndex}getLength(t){const e=t.map(((t,e)=>t.disabled?0:e));return Math.max(...e)}render(){const t=r.block("option-list"),e=this.labelledby||this.ariaForm.labelId;return i(o,{key:"7a07652540fa56fedaee410917d90d83e1979a39",class:Object.assign({},t.class()),id:this.inputId},i("div",Object.assign({key:"4dfd52f5cd7b87a1732fcba95d3db376d955be58",role:"listbox","aria-labelledby":e,"aria-disabled":this.disabled,class:Object.assign({},t.element("container").class())},this.inheritAttributes),i("slot",{key:"3f190f2b005335d2f1072f0857ea95c10ae0157d"})))}get el(){return a(this)}static get watchers(){return{contentHeight:["contentHeightChanged"]}}};n([l("bal-option-list"),s("design:type",Function),s("design:paramtypes",[Function]),s("design:returntype",void 0)],O.prototype,"createLogger",null),n([p("balOptionFocus",{passive:!0}),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],O.prototype,"listenToMouseEnter",null),n([p("balOptionChange",{passive:!1}),s("design:type",Function),s("design:paramtypes",[Object]),s("design:returntype",void 0)],O.prototype,"listenToOptionChange",null);let j=0;O.style=".bal-option-list{display:block;position:relative;width:100%;list-style:none;margin:0;outline:0;max-height:var(--bal-option-list-max-height);border-radius:var(--bal-radius-normal);overflow:hidden auto}";export{x as bal_option,O as bal_option_list}
@@ -1 +0,0 @@
1
- var __awaiter=this&&this.__awaiter||function(e,t,i,n){function a(e){return e instanceof i?e:new i((function(t){t(e)}))}return new(i||(i=Promise))((function(i,r){function s(e){try{l(n.next(e))}catch(e){r(e)}}function o(e){try{l(n["throw"](e))}catch(e){r(e)}}function l(e){e.done?i(e.value):a(e.value).then(s,o)}l((n=n.apply(e,t||[])).next())}))};var __generator=this&&this.__generator||function(e,t){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function o(e){return function(t){return l([e,t])}}function l(o){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,o[0]&&(i=0)),i)try{if(n=1,a&&(r=o[0]&2?a["return"]:o[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;if(a=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:i.label++;return{value:o[1],done:false};case 5:i.label++;a=o[1];o=[0];continue;case 7:o=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){i=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){i.label=o[1];break}if(o[0]===6&&i.label<r[1]){i.label=r[1];r=o;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(o);break}if(r[2])i.ops.pop();i.trys.pop();continue}o=t.call(e,i)}catch(e){o=[6,e];a=0}finally{n=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-d67f7321.system.js","./p-6dbef894.system.js","./p-db0895e2.system.js","./p-23bdd8dc.system.js","./p-bf139fe5.system.js","./p-b52ad8d5.system.js","./p-4d807f18.system.js","./p-6e5745c8.system.js","./p-ee3c7a38.system.js","./p-d97dc6a8.system.js","./p-c72bd76c.system.js","./p-35120ab6.system.js","./p-dafb9ede.system.js","./p-8949aa8b.system.js","./p-a1f6e944.system.js","./p-b3f2c626.system.js","./p-145d5c4e.system.js","./p-eecefb0a.system.js","./p-486eb96d.system.js","./p-ec9a7cf5.system.js","./p-342d34ac.system.js"],(function(e){"use strict";var t,i,n,a,r,s,o,l,c,b,m,d,u,f,g,h,v,p,y,k,_,x,w,j,O,z,F,S,A,E;return{setters:[function(e){t=e.r;i=e.c;n=e.w;a=e.h;r=e.H;s=e.g},function(e){o=e._;l=e.a},function(e){c=e.B},function(e){b=e.L},function(e){m=e.s},function(e){d=e.F},function(e){u=e.i;f=e.n;g=e.k;h=e.r},function(e){v=e.d},function(e){p=e.L},function(e){y=e.d;k=e.b;_=e.a;x=e.e;w=e.i;j=e.f;O=e.g;z=e.h},function(e){F=e.L},function(e){S=e.L},function(e){A=e.L},function(e){E=e.i},function(){},function(){},function(){},function(){},function(){},function(){},function(){}],execute:function(){var L=":root{--bal-segment-background:var(--bal-color-grey-2);--bal-segment-background-invalid:var(--bal-color-danger-1);--bal-segment-item-focus-border:var(--bal-color-border-primary);--bal-segment-item-text-color:var(--bal-color-text-primary);--bal-segment-item-text-color-checked:var(--bal-color-text-primary);--bal-segment-item-text-color-checked-hovered:var(--bal-color-text-primary-hovered);--bal-segment-item-text-color-checked-pressed:var(--bal-color-text-primary-pressed);--bal-segment-item-text-color-invalid:var(--bal-color-text-danger);--bal-segment-item-text-color-invalid-hovered:var(--bal-color-text-danger-hovered);--bal-segment-item-text-color-invalid-pressed:var(--bal-color-text-danger-pressed);--bal-segment-item-text-color-disabled:var(--bal-color-text-grey);--bal-segment-item-text-color-disabled-checked:var(--bal-color-text-grey-dark);--bal-segment-item-divider-background:var(--bal-color-grey);--bal-segment-item-divider-background-invalid:var(--bal-color-danger-2);--bal-segment-item-indicator-background:var(--bal-color-purple-2);--bal-segment-item-indicator-background-invalid:var(--bal-color-danger-4);--bal-segment-item-indicator-background-disabled:var(--bal-color-grey-3)}.bal-segment{display:-ms-flexbox;display:flex;background:var(--bal-segment-background);border-radius:var(--bal-radius-normal);gap:.125rem;gap:.125rem;padding:.25rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-segment--invalid{background:var(--bal-segment-background-invalid)}.bal-segment--vertical{-ms-flex-direction:column;flex-direction:column;width:100%}.bal-segment--vertical .bal-segment-item__button{width:100%;-ms-flex:1;flex:1}.bal-segment--vertical.bal-segment--scrollable{overflow:auto;max-height:240px}.bal-segment--expanded{width:100%;min-width:100%;-ms-flex-pack:start;justify-content:flex-start;-ms-flex-align:center;align-items:center}.bal-segment--expanded .bal-segment-item,.bal-segment--expanded .bal-segment-item>button{-ms-flex:1;flex:1;width:100%}.bal-segment--expanded .bal-segment-item .bal-content,.bal-segment--expanded .bal-segment-item>button .bal-content{-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}";var C=L;var I=e("bal_segment",function(){function e(e){var n=this;t(this,e);this.balFocus=i(this,"balFocus",7);this.balBlur=i(this,"balBlur",7);this.balChange=i(this,"balChange",7);this.balSelect=i(this,"balSelect",7);this.balVertical=i(this,"balVertical",7);this.hasFocus=false;this.getSegmentItem=function(e){var t,i;var a=n.allItems.filter((function(e){return!e.disabled}));var r=a.findIndex((function(e){return e===document.activeElement.closest("bal-segment-item")}));switch(e){case"current":return a[r];case"first":return a[0];case"last":return a[a.length-1];case"next":return(t=a[r+1])!==null&&t!==void 0?t:a[0];case"previous":return(i=a[r-1])!==null&&i!==void 0?i:a[a.length-1];default:return null}};this.onPointerDown=function(){n.keyboardMode=false};this.onSlottedItemsChange=function(){n.valueChanged(n.value);n.defineWidth()};this.onClick=function(e){if(n.disabled){return}var t=e.target;var i=n.checked;if(t.tagName==="BAL-SEGMENT"){return}if(t&&t.setFocus){t.setFocus()}if(i){n.checkButton(i,t)}else{n.setCheckedClasses();n.checkButton(t,t)}if(t!==i){n.emitValueChange()}};this.focusedValue=undefined;this.keyboardMode=true;this.isVertical=false;this.isMobile=false;this.maxWidth=0;this.ariaForm=v;this.invalid=false;this.disabled=false;this.vertical=false;this.scrollable=false;this.expanded=false;this.value=undefined}e.prototype.createLogger=function(e){this.log=e};e.prototype.disabledChanged=function(){var e=this;this.allItems.map((function(t){return t.disabled=e.disabled}))};e.prototype.valueChanged=function(e){this.balSelect.emit(e)};e.prototype.connectedCallback=function(){this.el.addEventListener("touchstart",this.onPointerDown);this.el.addEventListener("mousedown",this.onPointerDown);this.disabledChanged();this.isVertical=this.vertical};e.prototype.disconnectedCallback=function(){this.el.removeEventListener("touchstart",this.onPointerDown);this.el.removeEventListener("mousedown",this.onPointerDown)};e.prototype.componentDidLoad=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.setCheckedClasses();this.defineWidth();return[2]}))}))};e.prototype.focusInListener=function(e){this.balFocus.emit(e)};e.prototype.focusOutListener=function(e){this.balBlur.emit(e)};e.prototype.listenToDidAnimate=function(e){if(e&&e.target&&u(e.target,this.el)){var t=this.el.getBoundingClientRect();this.maxWidth=t.width;this.windowResizeListener()}};e.prototype.breakpointListener=function(e){this.isMobile=e.mobile};e.prototype.windowResizeListener=function(){if(this.vertical===false&&this.maxWidth>0){var e=this.el.parentElement.getBoundingClientRect();if(e.width<this.maxWidth){this.emitVerticalChange(true)}else{this.emitVerticalChange(false)}}else{this.emitVerticalChange(true)}};e.prototype.listenOnKeyDownOutside=function(){this.keyboardMode=true};e.prototype.listenOnKeyDown=function(e){this.keyboardMode=d.includes(e.key);var t=false;var i;if(y(e)||k(e)){m(e);i=this.getSegmentItem("current");t=this.value!==i.value;this.value=i.value}else if(_(e)||x(e)){m(e);i=this.getSegmentItem("previous")}else if(w(e)||j(e)){m(e);i=this.getSegmentItem("next")}else if(O(e)){m(e);i=this.getSegmentItem("first")}else if(z(e)){m(e);i=this.getSegmentItem("last")}if(!i){return}var n=this.checked;if(i!==n||t){this.checkButton(n,i);this.emitValueChange()}if(i){i.setFocus()}};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.ariaForm=Object.assign({},e);return[2]}))}))};Object.defineProperty(e.prototype,"allItems",{get:function(){return Array.from(this.el.querySelectorAll("bal-segment-item"))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"checked",{get:function(){var e=this;return this.allItems.find((function(t){return t.value===e.value}))},enumerable:false,configurable:true});e.prototype.emitValueChange=function(){this.balChange.emit(this.value)};e.prototype.emitVerticalChange=function(e){if(this.isVertical!==e){this.isVertical=e;this.balVertical.emit(this.isVertical)}};e.prototype.defineWidth=function(){var e=this;f((function(){if(e.isVertical===false){var t=e.el.getBoundingClientRect();e.maxWidth=t.width}e.windowResizeListener()}))};e.prototype.getIndicator=function(e){if(e){var t=e.shadowRoot||e;return t.querySelector(".bal-segment-item__indicator")}return null};e.prototype.checkButton=function(e,t){var i=this.getIndicator(e);var a=this.getIndicator(t);if(i===null||a===null){return}var r=i.getBoundingClientRect();var s=a.getBoundingClientRect();var o=r.width/s.width;var l=r.left-s.left;var c="translate3d(".concat(l,"px, 0, 0) scaleX(").concat(o,")");if(this.isVertical){var b=r.height/s.height;var m=r.top-s.top;c="translate3d(0, ".concat(m,"px, 0) scaleY(").concat(b,")")}n((function(){a.classList.remove("bal-segment-item__indicator--animated");a.style.setProperty("transform",c);a.getBoundingClientRect();a.classList.add("bal-segment-item__indicator--animated");a.style.setProperty("transform","")}));this.value=t.value;this.setCheckedClasses()};e.prototype.setCheckedClasses=function(){var e=this;var t=this.allItems;var i=t.findIndex((function(t){return t.value===e.value}));var n=i+1;var a=i-1;for(var r=0,s=t;r<s.length;r++){var o=s[r];o.classList.remove("bal-segment-item--after-checked");o.classList.remove("bal-segment-item--before-checked")}if(n<t.length){t[n].classList.add("bal-segment-item--after-checked")}if(a<t.length&&a>=0){t[a].classList.add("bal-segment-item--before-checked")}};e.prototype.render=function(){var e=this,t=e.invalid,i=e.isVertical,n=e.scrollable,s=e.keyboardMode,o=e.expanded,l=e.isMobile,b=e.disabled;var m=c.block("segment");return a(r,{key:"eadae45bddff8b5367b8db4e38c2eb467097ffb3",role:"radiogroup",id:this.ariaForm.controlId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},m.class()),m.modifier("invalid").class(t)),m.modifier("vertical").class(i)),m.modifier("scrollable").class(n)),m.modifier("keyboard").class(s)),m.modifier("disabled").class(b)),m.modifier("expanded").class((o||l)&&!i)),onClick:this.onClick},a("slot",{key:"b82c45b87b6cbd116d3b176fbd93661944740823",onSlotchange:this.onSlottedItemsChange}))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{disabled:["disabledChanged"],value:["valueChanged"]}},enumerable:false,configurable:true});return e}());o([b("bal-segment"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],I.prototype,"createLogger",null);o([F(),l("design:type",Function),l("design:paramtypes",[FocusEvent]),l("design:returntype",void 0)],I.prototype,"focusInListener",null);o([F(),l("design:type",Function),l("design:paramtypes",[FocusEvent]),l("design:returntype",void 0)],I.prototype,"focusOutListener",null);o([p("balWillAnimate",{target:"window"}),l("design:type",Function),l("design:paramtypes",[UIEvent]),l("design:returntype",void 0)],I.prototype,"listenToDidAnimate",null);o([A(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],I.prototype,"breakpointListener",null);o([S(),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],I.prototype,"windowResizeListener",null);o([p("keydown",{target:"document"}),l("design:type",Function),l("design:paramtypes",[]),l("design:returntype",void 0)],I.prototype,"listenOnKeyDownOutside",null);o([p("keydown"),l("design:type",Function),l("design:paramtypes",[KeyboardEvent]),l("design:returntype",void 0)],I.prototype,"listenOnKeyDown",null);I.style=C;var X=':root{--bal-segment-background:var(--bal-color-grey-2);--bal-segment-background-invalid:var(--bal-color-danger-1);--bal-segment-item-focus-border:var(--bal-color-border-primary);--bal-segment-item-text-color:var(--bal-color-text-primary);--bal-segment-item-text-color-checked:var(--bal-color-text-primary);--bal-segment-item-text-color-checked-hovered:var(--bal-color-text-primary-hovered);--bal-segment-item-text-color-checked-pressed:var(--bal-color-text-primary-pressed);--bal-segment-item-text-color-invalid:var(--bal-color-text-danger);--bal-segment-item-text-color-invalid-hovered:var(--bal-color-text-danger-hovered);--bal-segment-item-text-color-invalid-pressed:var(--bal-color-text-danger-pressed);--bal-segment-item-text-color-disabled:var(--bal-color-text-grey);--bal-segment-item-text-color-disabled-checked:var(--bal-color-text-grey-dark);--bal-segment-item-divider-background:var(--bal-color-grey);--bal-segment-item-divider-background-invalid:var(--bal-color-danger-2);--bal-segment-item-indicator-background:var(--bal-color-purple-2);--bal-segment-item-indicator-background-invalid:var(--bal-color-danger-4);--bal-segment-item-indicator-background-disabled:var(--bal-color-grey-3)}.bal-segment-item{display:block;position:relative;height:auto;text-decoration:none;text-overflow:ellipsis;text-decoration:none;text-overflow:ellipsis;white-space:nowrap;cursor:pointer;grid-row:1;-webkit-font-kerning:none;font-kerning:none}.bal-segment-item--disabled{cursor:default !important;pointer-events:none !important}.bal-segment-item__button{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;min-height:2.5rem;min-width:3rem;display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center;-ms-flex-positive:1;flex-grow:1;padding-top:.375rem;padding-bottom:.375rem;padding-left:20px;padding-right:20px;outline:none;border-color:rgba(0,0,0,0);border-width:var(--bal-border-width-normal);border-style:solid;border-radius:var(--bal-radius-normal);background:rgba(0,0,0,0);font-size:var(--bal-text-size-normal);font-weight:var(--bal-font-weight-bold);color:var(--bal-segment-item-text-color);overflow:hidden;position:relative;contain:content;pointer-events:none;cursor:pointer;z-index:2}.bal-segment-item__button--vertical{padding-left:.75rem;padding-right:.75rem}.bal-segment-item__button span{font-size:var(--bal-text-size-small);font-weight:var(--bal-font-weight-regular)}.bal-segment-item__button{will-change:color,padding;-webkit-transition:color 160ms cubic-bezier(0.4, 0, 0.2, 1);transition:color 160ms cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition:padding 160ms cubic-bezier(0.4, 0, 0.2, 1);transition:padding 160ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{content:"";position:absolute;background:var(--bal-segment-item-divider-background);border-radius:var(--bal-radius-normal)}.bal-segment-item:not(.bal-segment-item--vertical):not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{top:2px;bottom:2px;right:-1px;width:2px}.bal-segment-item.bal-segment-item--vertical:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{left:2px;right:2px;bottom:-1px;height:2px}.bal-segment-item--invalid:not(.bal-segment-item--checked):not(.bal-segment-item--last):not(.bal-segment-item--before-checked)::after{background:var(--bal-segment-item-divider-background-invalid)}.bal-segment-item__indicator{-webkit-transform-origin:left;transform-origin:left;position:absolute;opacity:0;-webkit-box-sizing:border-box;box-sizing:border-box;pointer-events:none;border-radius:var(--bal-radius-normal);background:var(--bal-segment-item-indicator-background);top:0;left:0}.bal-segment-item__indicator--vertical{-webkit-transform-origin:top;transform-origin:top}.bal-segment-item__indicator--invalid{background:var(--bal-segment-item-indicator-background-invalid)}.bal-segment-item__indicator--background{min-width:100%;min-height:100%;-webkit-transform:none;transform:none;pointer-events:none}.bal-segment-item__indicator--animated{will-change:transform,opacity,top,bottom,left,right,min-width,min-heigth;-webkit-transition:min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1),min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease;transition:transform 260ms cubic-bezier(0.4, 0, 0.2, 1),min-width 100ms ease,min-height 100ms ease,top 100ms ease,left 100ms ease,bottom 100ms ease,right 100ms ease,-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item__indicator--checked{opacity:1}.bal-segment-item:active .bal-segment-item__indicator{min-width:calc(100% - 4px);min-height:calc(100% - 4px);top:2px !important;bottom:2px !important;left:2px !important;right:2px !important}.bal-segment-item__button__icon{position:absolute !important;opacity:0;width:0 !important;-webkit-transform:translateX(0.1rem);transform:translateX(0.1rem);pointer-events:none !important;cursor:inherit;will-change:transform,opacity}.bal-segment-item__button__icon:not(.bal-segment-item__button__icon--vertical){left:10px}.bal-segment-item__button__icon--vertical{right:10px}.bal-segment-item__button__icon--animated{opacity:1;width:.875rem !important;-webkit-transform:translateX(-4px);transform:translateX(-4px);-webkit-transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),transform 260ms cubic-bezier(0.4, 0, 0.2, 1);transition:opacity 260ms cubic-bezier(0.4, 0, 0.2, 1),transform 260ms cubic-bezier(0.4, 0, 0.2, 1),-webkit-transform 260ms cubic-bezier(0.4, 0, 0.2, 1)}.bal-segment-item__button--checked{color:var(--bal-segment-item-text-color-checked);padding-right:40px}.bal-segment-item__button--checked:not(.bal-segment-item__button--vertical){padding-left:26px;padding-right:12px}@media (hover: hover)and (pointer: fine){.bal-segment-item:not(.bal-segment-item--disabled):hover .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-checked-hovered)}}.bal-segment-item:not(.bal-segment-item--disabled):active .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-checked-pressed)}.bal-segment--keyboard .bal-segment-item__button:not(.bal-segment-item__button--disabled):focus-visible,.bal-segment--keyboard .bal-segment-item__button--focused:not(.bal-segment-item__button--disabled){border-color:var(--bal-segment-item-focus-border);border-width:var(--bal-border-width-normal);border-style:solid;-webkit-transition:border 300ms ease-in-out;transition:border 300ms ease-in-out}.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled) .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid)}@media (hover: hover)and (pointer: fine){.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled):hover .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid-hovered)}}.bal-segment-item.bal-segment-item--invalid:not(.bal-segment-item--disabled):active .bal-segment-item__button:not(.bal-segment-item__button--checked){color:var(--bal-segment-item-text-color-invalid-pressed)}.bal-segment-item__button--invalid.bal-segment-item__button--checked{color:var(--bal-color-text-white)}.bal-segment-item__button--disabled{background:rgba(0,0,0,0);color:var(--bal-segment-item-text-color-disabled)}.bal-segment-item__button--disabled.bal-segment-item__button--checked{background:var(--bal-segment-item-indicator-background-disabled);color:var(--bal-segment-item-text-color-disabled-checked)}.bal-segment-item__button__slot--hidden{display:none !important}';var D=X;var K=0;var T=e("bal_segment_item",function(){function e(e){var i=this;t(this,e);this.segmentEl=null;this.inheritedAttributes={};this.internalId=K++;this.inputId="bal-si-".concat(this.internalId);this.updateVertical=function(e){i.isVertical=e.detail};this.updateState=function(){var e=i.segmentEl;if(e){if(e.value===""||e.value===undefined||e.value===null){var t=i.allAvailableOptions;if(t.length>0){var n=t[0];i.isFocusable=n===i.el}}else{i.checked=e.value===i.value;i.isFocusable=e.value===i.value}if(e.disabled){i.disabled=true}i.isLast=e.lastElementChild===i.el;i.isFirst=e.firstElementChild===i.el;i.calculateEmptyValue()}};this.onSlottedItemsChange=function(){i.checkSlotContent()};this.hasSlotContent=false;this.isFocusable=false;this.isVertical=false;this.isLast=false;this.isFirst=false;this.hasEmptyValue=true;this.ariaForm=v;this.disabled=false;this.invalid=false;this.focused=false;this.checked=false;this.label="";this.value="bal-si-"+this.internalId}e.prototype.valueChanged=function(e,t){if(e!==t){this.updateState()}};e.prototype.componentWillLoad=function(){this.inheritedAttributes=Object.assign({},E(this.el,["aria-label"]))};e.prototype.connectedCallback=function(){var e=this.segmentEl=this.el.closest("bal-segment");if(e&&e.vertical){this.isVertical=e.vertical}};e.prototype.componentDidLoad=function(){var e=this;var t=this.segmentEl=this.el.closest("bal-segment");if(t){g(t,"balSelect",this.updateState);g(t,"balVertical",this.updateVertical)}f((function(){e.checkSlotContent();e.updateState()}))};e.prototype.disconnectedCallback=function(){var e=this.segmentEl;if(e){h(e,"balSelect",this.updateState);h(e,"balVertical",this.updateVertical);this.segmentEl=null}};e.prototype.calculateEmptyValue=function(){var e=this;if(this.segmentEl){var t=Array.from(this.segmentEl.querySelectorAll("bal-segment-item"));this.hasEmptyValue=!t.some((function(t){return t.value===e.segmentEl.value}))}else{this.hasEmptyValue=false}};e.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){var e;return __generator(this,(function(t){e=this.nativeEl;if(e!==undefined){e.focus()}return[2]}))}))};e.prototype.setAriaForm=function(e){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){this.ariaForm=Object.assign({},e);return[2]}))}))};Object.defineProperty(e.prototype,"allAvailableOptions",{get:function(){return this.allOptions.filter((function(e){return!e.disabled}))},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"allOptions",{get:function(){var e=this.segmentEl;if(e){return Array.from(e.querySelectorAll("bal-segment-item"))}return[]},enumerable:false,configurable:true});e.prototype.checkSlotContent=function(){var e=this.el.querySelector('[part="slot"]');var t=e?e.innerHTML.trim():"";this.hasSlotContent=t.length>0};e.prototype.render=function(){var e=this;var t=this,i=t.checked,n=t.focused,s=t.segmentEl,o=t.label,l=t.isFocusable,b=t.isFirst,m=t.hasEmptyValue;var d=c.block("segment-item");var u=d.element("button");var f=d.element("indicator");var g=this.invalid||s&&s.invalid;var h=this.disabled||s&&s.disabled;var v=this.isVertical;var p=m&&b||l&&!h;var y=p&&this.ariaForm.controlId||this.inputId;var k={};if(p){k={"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId}}return a(r,{key:"6da240d029f07e7760a962e388998c9c94390d4a",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("vertical").class(v)),d.modifier("disabled").class(h)),d.modifier("checked").class(i)),d.modifier("invalid").class(g)),d.modifier("last").class(this.isLast&&!i))},a("button",Object.assign({key:"b388ce322243a5f47831d0ef1a65b332c191045b",id:y,role:"radio","aria-checked":i?"true":"false"},k,{class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("checked").class(i)),u.modifier("invalid").class(g)),u.modifier("disabled").class(h)),u.modifier("focused").class(n)),u.modifier("vertical").class(v)),type:"button",tabIndex:p?0:-1,part:"native",disabled:h,ref:function(t){return e.nativeEl=t}},this.inheritedAttributes),a("bal-icon",{key:"d5ba38e05534eb5ea281cc81a4ad5686b1a4f69b",name:"check",size:"small",class:Object.assign(Object.assign(Object.assign({},u.element("icon").class()),u.element("icon").modifier("animated").class(i)),u.element("icon").modifier("vertical").class(v)),color:h?"grey-dark":g?"white":"primary"}),a("bal-stack",{key:"4a23ae6b4562a685f77f800ff6aca3e5c5e8226e",space:"x-small",layout:"horizontal"},a("bal-content",{key:"a2fb5cf35391ca37fe328534a29cad6e41a7f8fb",space:"none"},a("bal-label",{key:"b3f633a9fe0ea22a71c05982af9dabc366c72495",htmlId:"bal-si-".concat(this.internalId,"-label")},o),a("span",{key:"badf00b587d14525f4cea6ceda85c7f67b1b216e",part:"slot",class:Object.assign({},u.element("slot").modifier("hidden").class(!this.hasSlotContent))}," ",a("slot",{key:"375942fc35e764ef3d91d62a03d08c16165c595b",onSlotchange:this.onSlottedItemsChange}))))),a("div",{key:"b3a0cf381958ad671555306484ca791e93cfe21e",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},f.class()),f.modifier("animated").class()),f.modifier("background").class()),f.modifier("disabled").class(h)),f.modifier("invalid").class(g)),f.modifier("checked").class(i)),f.modifier("vertical").class(v))}))};Object.defineProperty(e.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(e,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return e}());T.style=D}}}));
@@ -1 +0,0 @@
1
- import{r as a,c as t,w as e,h as i,H as s,g as o}from"./p-2539ba43.js";import{_ as n,a as d}from"./p-43c9f5e9.js";import{p as l,d as r,e as m}from"./p-06d357bd.js";import{c,f as h,h as b}from"./p-33101c54.js";import{B as p}from"./p-c1852273.js";import{b as _}from"./p-a65354df.js";import{L as u}from"./p-af4c6af2.js";import"./p-2229e98e.js";import"./p-aafb6696.js";const g=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)):[],y=class{constructor(e){a(this,e),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 p,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.demo=!1}connectedCallback(){this.bodyScrollHandler.connect(),l(this),_.hasDocument&&this.demo&&this.open()}disconnectedCallback(){this.bodyScrollHandler.disconnect()}async open(){await h(this.usersElement),this.setModalActiveOnBody(),e((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.add("fadeIn"),this.modalContentElement&&this.modalContentElement.classList.add("fadeInDown")})),this.presented||(this.willPresent.emit(),this.presented=!0,await b(150),e((()=>{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,e,i,s)=>{if(a)return a.attachViewToDom(t,e,s,i);if("string"!=typeof e&&!(e instanceof HTMLElement))throw new Error("framework delegate is missing");const o="string"==typeof e?t.ownerDocument&&t.ownerDocument.createElement(e):e;return i&&i.forEach((a=>o.classList.add(a))),s&&Object.assign(o,s),t.appendChild(o),await new Promise((a=>c(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 i=await r(this,a,t,(async()=>{e((()=>{this.modalBackgroundElement&&this.modalBackgroundElement.classList.add("fadeOut"),this.modalContentElement&&this.modalContentElement.classList.add("fadeOutUp")})),await b(140)}));return i&&await((a,t)=>{if(t){if(a)return a.removeViewFromDom(t.parentElement,t);t.remove()}return Promise.resolve()})(this.delegate,this.usersElement),i}onDidDismiss(){return m(this.el,"balModalDidDismiss")}onWillDismiss(){return m(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))),e=Math.max(...t);this.overlayIndex===e&&(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 i(s,{key:"798fe5316195806b60cadaf15fd2455268f62919","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},g(this.cssClass)),style:{"--bal-width":`${this.modalWidth}px`}},i("div",{key:"b57401f0e8383d1c1455602523ad771383a29324",class:{"bal-modal__background":!0,"is-hidden":!this.hasBackdrop},ref:a=>this.modalBackgroundElement=a}),i("div",{key:"47e3429c0148724a7c102bd3f4718b4476b90c27",class:{"bal-modal__container":!0},ref:a=>this.modalContainerElement=a},i("div",{key:"5aef1c76fd9d0a62b53e1665b2a341ecac7db74a",class:{"bal-modal__content":!0,[`bal-modal__content--has-spacing-${this.space}`]:!0},ref:a=>this.modalContentElement=a},i("slot",{key:"62773246852b6a4be88dab20d93bf0a8169e1f13"}))))}get el(){return o(this)}};n([u("click"),d("design:type",Function),d("design:paramtypes",[MouseEvent]),d("design:returntype",Promise)],y.prototype,"onClickCloseButton",null),n([u("mousedown"),d("design:type",Function),d("design:paramtypes",[MouseEvent]),d("design:returntype",Promise)],y.prototype,"onMouseDown",null),n([u("mouseup"),d("design:type",Function),d("design:paramtypes",[MouseEvent]),d("design:returntype",Promise)],y.prototype,"onMouseUp",null),n([u("keyup",{target:"document"}),d("design:type",Function),d("design:paramtypes",[KeyboardEvent]),d("design:returntype",Promise)],y.prototype,"handleKeyUp",null),y.style=".bal-modal__background,.bal-modal{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 w=class{constructor(t){a(this,t)}render(){return i(s,{key:"832389ef4fb2876265130421194e971d14c1d664",class:"bal-modal__body"},i("slot",{key:"8a0e7b7bc0f015b9d1a208767214964e1a6a083d"}))}},v=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 i(s,{key:"a168b477c3b25d6b634cae28dfdfe80662835c28",class:"bal-modal__header"},i("div",{key:"ede951e810c8dd9ee74f18bd2aaeb9938256eaa0",class:"bal-modal__header__title"},i("bal-heading",{key:"58aa9747176c2fb610b3d5e269b5e5318e6f1545",level:"h2",space:"none"},i("slot",{key:"35b58496692d5fafadba77727cd60a70f507b327"}))),(null===(a=this.parentModal)||void 0===a?void 0:a.isClosable)?i("bal-close",{class:"bal-modal__header__close data-test-modal-close",onClick:this.closeHandler}):"")}get el(){return o(this)}};export{y as bal_modal,w as bal_modal_body,v as bal_modal_header}
@@ -1 +0,0 @@
1
- import{r as i,c as e,h as t,H as r,g as s}from"./p-2539ba43.js";import{_ as a,a as n}from"./p-43c9f5e9.js";import{l as d}from"./p-9a3d9e17.js";import{o}from"./p-33101c54.js";import{s as l}from"./p-63b52c0f.js";import{B as b}from"./p-ae86d0a0.js";import{d as u}from"./p-f385e205.js";import{L as c}from"./p-af4c6af2.js";import"./p-a65354df.js";import"./p-2229e98e.js";import"./p-aafb6696.js";const h=class{constructor(t){i(this,t),this.balInput=e(this,"balInput",7),this.balBlur=e(this,"balBlur",7),this.balKeyPress=e(this,"balKeyPress",7),this.balFocus=e(this,"balFocus",7),this.balChange=e(this,"balChange",7),this.inputId="bal-input-slider-"+p++,this.didInit=!1,this.hasFocus=!1,this.initialValue="",this.onInput=i=>{const e=i.target;e&&(this.value=e.value||""),this.balInput.emit(this.value)},this.handleClick=i=>{(this.disabled||this.readonly)&&(i.preventDefault(),i.stopPropagation())},this.onFocus=i=>{this.hasFocus=!0,this.balFocus.emit(i)},this.onBlur=i=>{this.hasFocus=!1,this.balBlur.emit(i),this.balChange.emit(this.value)},this.ariaForm=u,this.name=this.inputId,this.step=0,this.min=0,this.max=100,this.invalid=!1,this.balTabindex=0,this.disabled=!1,this.readonly=!1,this.required=!1,this.hasTicks=!1,this.debounce=0,this.value="",this.autoInvalidOff=!1}debounceChanged(){this.balChange=o(this.balChange,this.debounce)}listenOnClick(i){(this.disabled||this.readonly)&&i.target&&i.target===this.el&&l(i)}resetHandler(i){const e=i.target;(null==e?void 0:e.contains(this.el))&&(this.value=this.initialValue,clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{this.nativeInput&&(this.nativeInput.value=this.initialValue)}),0))}valueChanged(i,e){this.didInit&&!this.hasFocus&&i!==e&&this.balChange.emit(this.value)}connectedCallback(){this.debounceChanged(),this.initialValue=this.value}componentDidLoad(){this.didInit=!0,d(this.value)||""===this.value||this.valueChanged(this.value,void 0)}async setFocus(){clearTimeout(this.setFocusTimer),this.setFocusTimer=setTimeout((()=>{this.nativeInput&&this.nativeInput.focus()}))}getInputElement(){return Promise.resolve(this.nativeInput)}async setAriaForm(i){this.ariaForm=Object.assign({},i)}get numberOfSteps(){const i=this.max-this.min;return this.step<=0||this.step>=i?0:1+~~(i/this.step)}cssWidth(i=!1){const e=""===this.value?0:Math.round(Number(this.value)/this.step)*this.step,t=100/this.max*e;return i?`${t}%`:100-t+"%"}getNumberOfSteps(){const i=[];for(let e=0;e<this.numberOfSteps;e++)i.push(e);return i}render(){const i=b.block("input-slider"),e=i.element("background"),s=e.element("upper"),a=s.element("inner"),n=e.element("lower"),d=n.element("inner"),o=i.element("input"),l=o.element("native"),u=o.element("value"),c=u.modifier("left"),h=u.modifier("right"),p=i.element("steps"),_=p.element("item");return t(r,{key:"cbbd2a0e62cc67016f215b13d8d0ca0c5de127b7",class:Object.assign(Object.assign({},i.class()),i.modifier("disabled").class(this.disabled||this.readonly)),onClick:this.handleClick,"aria-disabled":this.disabled||this.readonly?"true":null},t("div",{key:"7b31c11bf1d3423be6b2d7837a0f8ccaafe46daa",class:Object.assign(Object.assign({},e.class()),e.modifier("disabled").class(this.disabled||this.readonly))},t("div",{key:"6a4440695d82c35bf8c8195dc79e5c8c14c91f16",class:Object.assign({},s.class()),style:{width:this.cssWidth()}},t("div",{key:"5be6c525ff34e993b27424e5dcfe4d5bc4609ba7",class:Object.assign({},a.class())})),t("div",{key:"3eb1fae3c122c23db8bc05c8f246c23984a8dbfc",class:Object.assign({},n.class()),style:{width:this.cssWidth(!0)}},t("div",{key:"53ae6ada3c544a543180a21721b6271c36db5c47",class:Object.assign({},d.class())}))),t("div",{key:"f309f58ec23b5bc31799fcf0e3f5ef6c4cc25039",class:Object.assign({},o.class())},t("div",{key:"c8d0fc9abf6a2384a44af08e581e3ca4f1115f60",class:Object.assign(Object.assign({},u.class()),c.class())}),t("input",{key:"67a8fb701b5a6c9122abe42331384a99bd5e636f",type:"range",class:Object.assign(Object.assign({},l.class()),l.modifier("disabled").class(this.disabled||this.readonly)),ref:i=>this.nativeInput=i,id:this.ariaForm.controlId||this.inputId,"aria-labelledby":this.ariaForm.labelId,"aria-describedby":this.ariaForm.messageId,"aria-disabled":this.disabled?"true":null,"aria-invalid":!0===this.invalid?"true":"false",disabled:this.disabled,readonly:this.readonly,name:this.name,required:this.required,tabIndex:this.balTabindex,step:this.step,min:this.min,max:this.max,value:""!==this.value&&void 0!==this.value?this.value:0,onInput:this.onInput,onBlur:this.onBlur,onFocus:this.onFocus,onKeyPress:i=>this.balKeyPress.emit(i),"data-testid":"bal-input-slider"}),t("div",{key:"8c93968c955d1bdb970e31308240db6e5f3a6795",class:Object.assign(Object.assign({},u.class()),h.class())})),t("div",{key:"f89ab4d7d6b67d976856bbabfb018d474f0bf306",class:Object.assign({},p.class()),style:{display:this.hasTicks?"flex":"none"}},this.getNumberOfSteps().map((i=>t("div",{key:i,class:Object.assign(Object.assign({},_.class()),_.modifier("disabled").class(this.disabled||this.readonly)),"data-step-id":i})))))}get el(){return s(this)}static get watchers(){return{debounce:["debounceChanged"],value:["valueChanged"]}}};a([c("click",{capture:!0,target:"document"}),n("design:type",Function),n("design:paramtypes",[UIEvent]),n("design:returntype",void 0)],h.prototype,"listenOnClick",null),a([c("reset",{capture:!0,target:"document"}),n("design:type",Function),n("design:paramtypes",[UIEvent]),n("design:returntype",void 0)],h.prototype,"resetHandler",null);let p=0;h.style=".bal-input-slider{display:block;position:relative;width:100%;-ms-flex:1;flex:1;font-family:var(--bal-font-family-text);-ms-flex-direction:column;flex-direction:column;min-height:3rem}.bal-input-slider__background{position:absolute;top:1rem;left:0px;right:0px;z-index:0;border-radius:var(--bal-radius-rounded);background:var(--bal-color-green);height:1rem;width:100%;overflow:hidden}.bal-input-slider__background__upper,.bal-input-slider__background__lower{position:absolute;top:0;width:50%;margin:0;cursor:pointer}.bal-input-slider__background__upper>div,.bal-input-slider__background__lower>div{height:1rem;border-radius:0}.bal-input-slider__background__upper{right:0px}.bal-input-slider__background__upper>div{background:var(--bal-color-green);border-top-right-radius:var(--bal-radius-rounded);border-bottom-right-radius:var(--bal-radius-rounded)}.bal-input-slider__background__lower{left:0px}.bal-input-slider__background__lower>div{background:var(--bal-color-green-5);border-top-left-radius:var(--bal-radius-rounded);border-bottom-left-radius:var(--bal-radius-rounded)}.bal-input-slider__background--disabled{cursor:default;pointer-events:none;background:var(--bal-color-grey-2)}.bal-input-slider__background--disabled .bal-input-slider__background__upper__inner{background:var(--bal-color-grey-2)}.bal-input-slider__background--disabled .bal-input-slider__background__lower__inner{background:var(--bal-color-grey-4)}.bal-input-slider__input{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;min-height:3rem}.bal-input-slider__input__native{-webkit-appearance:none;margin:0;background:rgba(0,0,0,0);z-index:1;outline:none;min-width:12.5rem;width:100%}.bal-input-slider__input__native::-webkit-slider-runnable-track{width:100%;cursor:pointer;border:none}.bal-input-slider__input__native::-webkit-slider-thumb{-webkit-box-shadow:none;box-shadow:none;border:3px solid var(--bal-color-white);height:1rem;width:1rem;border-radius:var(--bal-radius-rounded);background:var(--bal-color-primary);cursor:pointer;-webkit-appearance:none}.bal-input-slider__input__native:focus-visible{outline:none}.bal-input-slider__input__native:focus-visible::-webkit-slider-thumb{background:var(--bal-color-primary);border:2px solid var(--bal-color-primary)}.bal-input-slider__input__native::-moz-range-track{cursor:pointer;box-shadow:none;background:rgba(0,0,0,0);width:100%;border:none;z-index:2}.bal-input-slider__input__native::-moz-range-thumb{box-shadow:none;border:3px solid var(--bal-color-white);height:.625rem;width:.625rem;border-radius:var(--bal-radius-rounded);background:var(--bal-color-primary);cursor:pointer}.bal-input-slider__input__native::-ms-track{cursor:pointer;box-shadow:none;background:rgba(0,0,0,0);width:100%;border:none;z-index:2}.bal-input-slider__input__native::-ms-fill-lower{background:rgba(0,0,0,0);border:none;box-shadow:none}.bal-input-slider__input__native::-ms-fill-upper{background:rgba(0,0,0,0);border:none;box-shadow:none}.bal-input-slider__input__native::-ms-thumb{box-shadow:none;border:3px solid var(--bal-color-white);height:1rem;width:1rem;border-radius:var(--bal-radius-rounded);background:var(--bal-color-primary);cursor:pointer;-webkit-appearance:none;z-index:2}.bal-input-slider__input__native:focus::-ms-fill-lower{background:rgba(0,0,0,0)}.bal-input-slider__input__native:focus::-ms-fill-upper{background:rgba(0,0,0,0)}.bal-input-slider__input__native--disabled::-webkit-slider-thumb{background:var(--bal-color-grey-5)}.bal-input-slider__input__native--disabled::-ms-thumb{background:var(--bal-color-grey-5)}.bal-input-slider__input__native--disabled::-moz-range-thumb{background:var(--bal-color-grey-5)}.bal-input-slider__steps{display:-ms-flexbox;display:flex;-ms-flex:1;flex:1;min-height:.5rem;margin:-0.625rem .5rem;-ms-flex-pack:justify;justify-content:space-between}.bal-input-slider__steps__item{width:.125rem;border-radius:var(--bal-radius-rounded);background-color:var(--bal-color-primary)}.bal-input-slider__steps__item--disabled{background:var(--bal-color-grey-4)}@-moz-document url-prefix(){.bal-input-slider__steps{margin:0 .5rem !important}}";export{h as bal_input_slider}