@baloise/ds-core 17.4.1 → 18.0.0-nightly.20250211

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 (425) hide show
  1. package/components/all.d.ts +2 -0
  2. package/components/all.js +3 -0
  3. package/components/bal-app.js +1 -93
  4. package/components/bal-app2.js +95 -0
  5. package/components/bal-checkbox2.js +1 -1
  6. package/components/bal-close2.js +1 -1
  7. package/components/bal-date-calendar2.js +1 -1
  8. package/components/bal-doc-app.d.ts +11 -0
  9. package/components/bal-doc-app.js +262 -0
  10. package/components/bal-modal.js +1 -1
  11. package/components/bal-radio2.js +1 -1
  12. package/components/bal-steps.js +1 -1
  13. package/components/bal-tabs2.js +1 -1
  14. package/components/bal-time-input.js +1 -1
  15. package/components/config.utils.js +27 -27
  16. package/components/floating-ui.dom.esm.js +205 -77
  17. package/components/index.js +7 -314
  18. package/components/initialize.js +312 -0
  19. package/components/tokens.esm.js +1 -1
  20. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  21. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  22. package/dist/baloise-design-system/index.esm.js +1 -1
  23. package/dist/baloise-design-system/{p-afef265b5f.entry.js → p-01d99206b2.entry.js} +1 -1
  24. package/dist/baloise-design-system/{p-e60e0c65.system.js → p-01f07b49.system.js} +1 -1
  25. package/dist/baloise-design-system/{p-374e5904fa.entry.js → p-02116878a7.entry.js} +1 -1
  26. package/dist/baloise-design-system/{p-39351e2b.system.js → p-087021fe.system.js} +1 -1
  27. package/dist/baloise-design-system/{p-447acd07e7.system.entry.js → p-0e506e98e2.system.entry.js} +1 -1
  28. package/dist/baloise-design-system/p-11270bb714.system.entry.js +1 -0
  29. package/dist/baloise-design-system/{p-426219f4.js → p-130b37bc.js} +1 -1
  30. package/dist/baloise-design-system/{p-ce0ca991f8.entry.js → p-1546034dac.entry.js} +1 -1
  31. package/dist/baloise-design-system/{p-9b542bd976.entry.js → p-191459a962.entry.js} +1 -1
  32. package/dist/baloise-design-system/{p-464f369ad6.entry.js → p-1b31484d81.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-e0b6c2eaf9.system.entry.js → p-1d09b5700d.system.entry.js} +1 -1
  34. package/dist/baloise-design-system/p-1e142b10.system.js +1 -0
  35. package/dist/baloise-design-system/{p-6079fa35e4.system.entry.js → p-1f0ddd16a2.system.entry.js} +1 -1
  36. package/dist/baloise-design-system/{p-44e7532c.js → p-20eba37f.js} +1 -1
  37. package/dist/baloise-design-system/{p-b8da005f.js → p-211a37e8.js} +1 -1
  38. package/dist/baloise-design-system/{p-bf200caec0.entry.js → p-221c096477.entry.js} +1 -1
  39. package/dist/baloise-design-system/p-234baab174.entry.js +1 -0
  40. package/dist/baloise-design-system/{p-0d3f11e3.system.js → p-237de03b.system.js} +1 -1
  41. package/dist/baloise-design-system/p-294f38c2.js +1 -0
  42. package/dist/baloise-design-system/{p-3d73a2d0e3.entry.js → p-2dc029770c.entry.js} +1 -1
  43. package/dist/baloise-design-system/p-301a6b23.js +1 -0
  44. package/dist/baloise-design-system/{p-f285a977e8.entry.js → p-309f1f7d4e.entry.js} +1 -1
  45. package/dist/baloise-design-system/{p-055ec952e0.system.entry.js → p-316efc7003.system.entry.js} +1 -1
  46. package/dist/baloise-design-system/{p-b4c2e91618.system.entry.js → p-32861633a8.system.entry.js} +1 -1
  47. package/dist/baloise-design-system/{p-462f564b70.entry.js → p-35ca0dde1e.entry.js} +1 -1
  48. package/dist/baloise-design-system/{p-c0eefa4060.entry.js → p-36f131eec6.entry.js} +1 -1
  49. package/dist/baloise-design-system/{p-03613e2aa3.system.entry.js → p-371d95e7d3.system.entry.js} +1 -1
  50. package/dist/baloise-design-system/{p-c991d944.js → p-3913c6ae.js} +1 -1
  51. package/dist/baloise-design-system/{p-b1c18bf1.system.js → p-3c15fb83.system.js} +1 -1
  52. package/dist/baloise-design-system/{p-c0461c69d6.entry.js → p-3cfd6d7831.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-993913b332.entry.js → p-3fce18ac8f.entry.js} +1 -1
  54. package/dist/baloise-design-system/p-400bbebf71.entry.js +1 -0
  55. package/dist/baloise-design-system/{p-f7554b087f.system.entry.js → p-4155b8f059.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/p-42e66219.system.js +1 -0
  57. package/dist/baloise-design-system/{p-ba68f2ce70.entry.js → p-448d3298a1.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-3bf02fb8.system.js → p-47825fdf.system.js} +1 -1
  59. package/dist/baloise-design-system/p-47f0669a.js +1 -0
  60. package/dist/baloise-design-system/p-487284ff6d.system.entry.js +1 -0
  61. package/dist/baloise-design-system/{p-3f559c384a.system.entry.js → p-4b22207353.system.entry.js} +1 -1
  62. package/dist/baloise-design-system/{p-ca3bb9ce.js → p-4cac86d6.js} +1 -1
  63. package/dist/baloise-design-system/{p-f6f93e74c1.system.entry.js → p-4d857d11b6.system.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-415625ee.system.js → p-4e5f16ad.system.js} +1 -1
  65. package/dist/baloise-design-system/p-50f3b012.js +1 -0
  66. package/dist/baloise-design-system/{p-f908b02917.system.entry.js → p-53093cf5c3.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-c3852df7a6.entry.js → p-54200a6353.entry.js} +1 -1
  68. package/dist/baloise-design-system/{p-f9950a0b55.system.entry.js → p-54493c5289.system.entry.js} +1 -1
  69. package/dist/baloise-design-system/{p-64aca444.system.js → p-565f9976.system.js} +1 -1
  70. package/dist/baloise-design-system/{p-90c9681c84.entry.js → p-57cb150f05.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-db9b4e132d.system.entry.js → p-57e1067192.system.entry.js} +1 -1
  72. package/dist/baloise-design-system/p-59d9918c.system.js +1 -0
  73. package/dist/baloise-design-system/p-5c31de6847.system.entry.js +1 -0
  74. package/dist/baloise-design-system/{p-42c7b13aa9.entry.js → p-5c4e2ad67d.entry.js} +1 -1
  75. package/dist/baloise-design-system/p-5c6d332a4e.entry.js +1 -0
  76. package/dist/baloise-design-system/{p-7ab2e7b846.entry.js → p-5c7352eada.entry.js} +1 -1
  77. package/dist/baloise-design-system/{p-ca5ec430.js → p-5cca745b.js} +1 -1
  78. package/dist/baloise-design-system/{p-0831f02fb0.system.entry.js → p-5d9f23045a.system.entry.js} +1 -1
  79. package/dist/baloise-design-system/{p-f7e9758f60.entry.js → p-5e74181495.entry.js} +1 -1
  80. package/dist/baloise-design-system/{p-2f1fbb48.system.js → p-5f32b4f3.system.js} +1 -1
  81. package/dist/baloise-design-system/{p-7afa264997.system.entry.js → p-5f3e40e522.system.entry.js} +1 -1
  82. package/dist/baloise-design-system/{p-a272313cd0.system.entry.js → p-60cd251a99.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-273fb2c2.system.js → p-659ecadc.system.js} +1 -1
  84. package/dist/baloise-design-system/{p-762c8fa651.system.entry.js → p-676d07ed2e.system.entry.js} +1 -1
  85. package/dist/baloise-design-system/{p-0f37a65c.system.js → p-6b690346.system.js} +1 -1
  86. package/dist/baloise-design-system/{p-a85fe6d188.system.entry.js → p-6c29304485.system.entry.js} +1 -1
  87. package/dist/baloise-design-system/{p-3c1ea7b3e0.entry.js → p-6d1f5b32f2.entry.js} +1 -1
  88. package/dist/baloise-design-system/{p-b7fbadbe.js → p-6e85cd1a.js} +1 -1
  89. package/dist/baloise-design-system/{p-1f2b83a3a2.system.entry.js → p-70ff5a5df7.system.entry.js} +1 -1
  90. package/dist/baloise-design-system/p-751eadd276.entry.js +1 -0
  91. package/dist/baloise-design-system/{p-208bd3127d.system.entry.js → p-75652c1651.system.entry.js} +1 -1
  92. package/dist/baloise-design-system/{p-afca130b59.system.entry.js → p-7644800ac6.system.entry.js} +1 -1
  93. package/dist/baloise-design-system/p-76e1b06450.system.entry.js +1 -0
  94. package/dist/baloise-design-system/{p-e3e1d211.js → p-79f6f58b.js} +1 -1
  95. package/dist/baloise-design-system/p-7bec4431.system.js +1 -0
  96. package/dist/baloise-design-system/{p-469a18b468.entry.js → p-7bf3e88ae4.entry.js} +1 -1
  97. package/dist/baloise-design-system/{p-385372ecd2.system.entry.js → p-7d04267c98.system.entry.js} +1 -1
  98. package/dist/baloise-design-system/{p-43174c7095.entry.js → p-7ddbde5c84.entry.js} +1 -1
  99. package/dist/baloise-design-system/{p-b726b9f4c9.entry.js → p-7f6c434d89.entry.js} +1 -1
  100. package/dist/baloise-design-system/{p-fe37f1b5.js → p-81205ce0.js} +1 -1
  101. package/dist/baloise-design-system/{p-279428d318.entry.js → p-8255d835fe.entry.js} +1 -1
  102. package/dist/baloise-design-system/p-83512f21.system.js +1 -0
  103. package/dist/baloise-design-system/{p-5cd2674f.system.js → p-863f4e4e.system.js} +1 -1
  104. package/dist/baloise-design-system/{p-1a094c1b.js → p-875de117.js} +1 -1
  105. package/dist/baloise-design-system/{p-5d2ab1c46d.system.entry.js → p-8793a50acb.system.entry.js} +1 -1
  106. package/dist/baloise-design-system/{p-420bc2ff6e.entry.js → p-8c6511bf0d.entry.js} +1 -1
  107. package/dist/baloise-design-system/{p-9a1a9c980a.entry.js → p-8d49461b8f.entry.js} +1 -1
  108. package/dist/baloise-design-system/{p-71352a52.js → p-8fc7e9ca.js} +1 -1
  109. package/dist/baloise-design-system/p-908a7c5cfd.system.entry.js +1 -0
  110. package/dist/baloise-design-system/p-92b665e7.system.js +1 -0
  111. package/dist/baloise-design-system/{p-f4641c6a16.entry.js → p-93d7df5c6d.entry.js} +1 -1
  112. package/dist/baloise-design-system/{p-ff2a5eae24.system.entry.js → p-9a00ac7fc8.system.entry.js} +1 -1
  113. package/dist/baloise-design-system/{p-31c7ac3a.system.js → p-9b9be713.system.js} +1 -1
  114. package/dist/baloise-design-system/{p-12db0c3477.entry.js → p-9c204d3ac7.entry.js} +1 -1
  115. package/dist/baloise-design-system/{p-5776d1fde6.entry.js → p-9c383b422e.entry.js} +1 -1
  116. package/dist/baloise-design-system/{p-a576a58b09.system.entry.js → p-9d2cadcc98.system.entry.js} +1 -1
  117. package/dist/baloise-design-system/{p-9ec2c3e050.entry.js → p-9ed80c87cf.entry.js} +1 -1
  118. package/dist/baloise-design-system/{p-c641bed817.entry.js → p-a0737d5595.entry.js} +1 -1
  119. package/dist/baloise-design-system/{p-f5a0884f92.entry.js → p-a1d210ca31.entry.js} +1 -1
  120. package/dist/baloise-design-system/{p-126ae228.system.js → p-a219593a.system.js} +1 -1
  121. package/dist/baloise-design-system/{p-ef6a64f4.js → p-a255c9b3.js} +1 -1
  122. package/dist/baloise-design-system/{p-817371e5.system.js → p-a519168e.system.js} +1 -1
  123. package/dist/baloise-design-system/p-a70f415677.system.entry.js +1 -0
  124. package/dist/baloise-design-system/{p-afa8aa0eec.system.entry.js → p-a7b46eaa9f.system.entry.js} +1 -1
  125. package/dist/baloise-design-system/{p-e78be5ef.system.js → p-abd6896e.system.js} +1 -1
  126. package/dist/baloise-design-system/{p-4f4c99db.js → p-ad14e9f9.js} +1 -1
  127. package/dist/baloise-design-system/{p-4d7c0d39.js → p-afd41db0.js} +1 -1
  128. package/dist/baloise-design-system/{p-add71c43b9.entry.js → p-b1e392bdc4.entry.js} +1 -1
  129. package/dist/baloise-design-system/{p-ec4e5d4ecc.system.entry.js → p-b495f6d654.system.entry.js} +1 -1
  130. package/dist/baloise-design-system/{p-b63742f3.system.js → p-b50f4c4e.system.js} +1 -1
  131. package/dist/baloise-design-system/{p-649eedce8a.system.entry.js → p-b7ea548704.system.entry.js} +1 -1
  132. package/dist/baloise-design-system/{p-ff31e0e340.system.entry.js → p-ba23bf69be.system.entry.js} +1 -1
  133. package/dist/baloise-design-system/{p-106815172c.system.entry.js → p-bbdbbb13c5.system.entry.js} +1 -1
  134. package/dist/baloise-design-system/{p-9b73822c14.entry.js → p-bc5e76952e.entry.js} +1 -1
  135. package/dist/baloise-design-system/{p-d95305658b.system.entry.js → p-be0118456f.system.entry.js} +1 -1
  136. package/dist/baloise-design-system/{p-caacebbe.js → p-c0173fff.js} +1 -1
  137. package/dist/baloise-design-system/{p-6c19302bf6.entry.js → p-c0d43ba0ce.entry.js} +1 -1
  138. package/dist/baloise-design-system/{p-19f28f1fbf.system.entry.js → p-c24fbe650f.system.entry.js} +1 -1
  139. package/dist/baloise-design-system/{p-980e4b57.system.js → p-c43a56b7.system.js} +1 -1
  140. package/dist/baloise-design-system/{p-9727e05e.system.js → p-c917a3bc.system.js} +1 -1
  141. package/dist/baloise-design-system/{p-18820ca258.system.entry.js → p-cb0d5c384b.system.entry.js} +1 -1
  142. package/dist/baloise-design-system/{p-fe6cbf28.js → p-cb0ff37f.js} +1 -1
  143. package/dist/baloise-design-system/{p-a857e31d7e.entry.js → p-cd7532cea3.entry.js} +1 -1
  144. package/dist/baloise-design-system/{p-111d37ae18.system.entry.js → p-d4996fd889.system.entry.js} +1 -1
  145. package/dist/baloise-design-system/{p-312a3215.js → p-ddec5b99.js} +1 -1
  146. package/dist/baloise-design-system/{p-50a49c0e5c.system.entry.js → p-e3c51dd5ce.system.entry.js} +1 -1
  147. package/dist/baloise-design-system/p-ea8491b628.entry.js +1 -0
  148. package/dist/baloise-design-system/{p-75ac477ebc.entry.js → p-eaabd6f34a.entry.js} +1 -1
  149. package/dist/baloise-design-system/{p-fca0dcccde.entry.js → p-eaf6fe83b7.entry.js} +1 -1
  150. package/dist/baloise-design-system/p-ebecd76c66.system.entry.js +1 -0
  151. package/dist/baloise-design-system/{p-830d9e47.js → p-ec375851.js} +1 -1
  152. package/dist/baloise-design-system/{p-46b13df1.js → p-f0c375ba.js} +1 -1
  153. package/dist/baloise-design-system/{p-5d689d39.js → p-f1052416.js} +1 -1
  154. package/dist/baloise-design-system/{p-80bf87ba56.entry.js → p-f2234a5a71.entry.js} +1 -1
  155. package/dist/baloise-design-system/{p-68bef926.system.js → p-f52a27c1.system.js} +1 -1
  156. package/dist/baloise-design-system/{p-130a16ee.system.js → p-fa5198a0.system.js} +1 -1
  157. package/dist/baloise-design-system/{p-9aa95fbc37.entry.js → p-fb4f6a95a6.entry.js} +1 -1
  158. package/dist/baloise-design-system/{p-5821d4bbb2.system.entry.js → p-fb87f31739.system.entry.js} +1 -1
  159. package/dist/baloise-design-system/{p-7615b673a0.system.entry.js → p-fce9274127.system.entry.js} +1 -1
  160. package/dist/baloise-design-system/{p-9018c7729a.system.entry.js → p-ffad1caf64.system.entry.js} +1 -1
  161. package/dist/cjs/{animation.decorator-7a936417.js → animation.decorator-40bdfb52.js} +1 -1
  162. package/dist/cjs/app-globals-f63c33e7.js +7 -0
  163. package/dist/cjs/bal-accordion_4.cjs.entry.js +5 -5
  164. package/dist/cjs/bal-app.cjs.entry.js +2 -2
  165. package/dist/cjs/bal-button_2.cjs.entry.js +2 -2
  166. package/dist/cjs/bal-carousel_2.cjs.entry.js +14 -14
  167. package/dist/cjs/bal-checkbox-button.cjs.entry.js +4 -4
  168. package/dist/cjs/bal-checkbox_2.cjs.entry.js +6 -6
  169. package/dist/cjs/bal-close.cjs.entry.js +4 -4
  170. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +3 -3
  171. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +9 -9
  172. package/dist/cjs/bal-date.cjs.entry.js +7 -7
  173. package/dist/cjs/bal-doc-app.cjs.entry.js +233 -0
  174. package/dist/cjs/bal-dropdown.cjs.entry.js +6 -6
  175. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  176. package/dist/cjs/bal-file-upload.cjs.entry.js +3 -3
  177. package/dist/cjs/bal-footer.cjs.entry.js +4 -4
  178. package/dist/cjs/bal-form.cjs.entry.js +2 -2
  179. package/dist/cjs/bal-hint_5.cjs.entry.js +6 -6
  180. package/dist/cjs/bal-icon.cjs.entry.js +3 -3
  181. package/dist/cjs/bal-input-slider.cjs.entry.js +3 -3
  182. package/dist/cjs/bal-input-stepper.cjs.entry.js +6 -6
  183. package/dist/cjs/bal-input.cjs.entry.js +3 -3
  184. package/dist/cjs/bal-label.cjs.entry.js +3 -3
  185. package/dist/cjs/bal-list_8.cjs.entry.js +9 -9
  186. package/dist/cjs/bal-logo.cjs.entry.js +6 -6
  187. package/dist/cjs/bal-modal_3.cjs.entry.js +4 -4
  188. package/dist/cjs/bal-nav_8.cjs.entry.js +9 -9
  189. package/dist/cjs/bal-navbar_5.cjs.entry.js +7 -7
  190. package/dist/cjs/bal-number-input.cjs.entry.js +6 -6
  191. package/dist/cjs/bal-option_2.cjs.entry.js +4 -4
  192. package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
  193. package/dist/cjs/bal-popup.cjs.entry.js +4 -4
  194. package/dist/cjs/bal-progress-bar.cjs.entry.js +6 -6
  195. package/dist/cjs/bal-radio-button.cjs.entry.js +4 -4
  196. package/dist/cjs/bal-radio_2.cjs.entry.js +6 -6
  197. package/dist/cjs/bal-segment_2.cjs.entry.js +10 -10
  198. package/dist/cjs/bal-select_2.cjs.entry.js +3 -3
  199. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  200. package/dist/cjs/bal-spinner.cjs.entry.js +4 -4
  201. package/dist/cjs/bal-stage_6.cjs.entry.js +2 -2
  202. package/dist/cjs/bal-steps.cjs.entry.js +8 -8
  203. package/dist/cjs/bal-tab-item_2.cjs.entry.js +16 -16
  204. package/dist/cjs/bal-textarea.cjs.entry.js +3 -3
  205. package/dist/cjs/bal-time-input.cjs.entry.js +6 -6
  206. package/dist/cjs/bal-tooltip.cjs.entry.js +3 -3
  207. package/dist/cjs/baloise-design-system.cjs.js +7 -6
  208. package/dist/cjs/{breakpoints.decorator-190fe424.js → breakpoints.decorator-52c6fe2f.js} +1 -1
  209. package/dist/cjs/{breakpoints.subject-8c31945a.js → breakpoints.subject-1a41068a.js} +2 -2
  210. package/dist/cjs/{config.decorator-c38efed9.js → config.decorator-de244188.js} +1 -1
  211. package/dist/cjs/{config.default-48618371.js → config.default-7e96eb95.js} +1 -1
  212. package/dist/cjs/config.utils-df30e424.js +140 -0
  213. package/dist/cjs/{date-355f73bb.js → date-ce9c7f3f.js} +1 -1
  214. package/dist/cjs/{element-states.decorator-c8199b43.js → element-states.decorator-aa5126e2.js} +1 -1
  215. package/dist/cjs/{floating-ui-3147d2ff.js → floating-ui-4a4a1aed.js} +2 -2
  216. package/dist/cjs/{floating-ui.dom.esm-2ece9686.js → floating-ui.dom.esm-13e3f667.js} +205 -77
  217. package/dist/cjs/{focus.decorator-fa6c95a5.js → focus.decorator-14a4a576.js} +1 -1
  218. package/dist/cjs/{form-input-85323470.js → form-input-e9974433.js} +1 -1
  219. package/dist/cjs/global-2a76769b.js +9 -0
  220. package/dist/cjs/{helpers-c858e965.js → helpers-debb881a.js} +1 -1
  221. package/dist/cjs/index.cjs.js +9 -9
  222. package/dist/cjs/{initialize-3059001f.js → initialize-2e8978a4.js} +3 -3
  223. package/dist/cjs/loader.cjs.js +7 -6
  224. package/dist/cjs/{mutation.decorator-229267c9.js → mutation.decorator-84b44cab.js} +1 -1
  225. package/dist/cjs/{number-047915cd.js → number-24bf265b.js} +2 -2
  226. package/dist/cjs/{overlays-f6884b7e.js → overlays-47b231bc.js} +1 -1
  227. package/dist/cjs/{resize.decorator-16e4bcd7.js → resize.decorator-e4a92322.js} +1 -1
  228. package/dist/cjs/{swipe.decorator-220cd690.js → swipe.decorator-9c105f90.js} +1 -1
  229. package/dist/cjs/{swipe.subject-65733bae.js → swipe.subject-191f7d8a.js} +1 -1
  230. package/dist/cjs/{swiper.util-62ca48ba.js → swiper.util-f1c856f3.js} +2 -2
  231. package/dist/cjs/{tokens.esm-5b22da7e.js → tokens.esm-a3e52d80.js} +1 -1
  232. package/dist/cjs/{visibility.decorator-9e162aad.js → visibility.decorator-a218aab9.js} +1 -1
  233. package/dist/cjs/{window-resize.decorator-7df80757.js → window-resize.decorator-24fd6e1e.js} +1 -1
  234. package/dist/collection/collection-manifest.json +2 -1
  235. package/dist/collection/components/bal-checkbox/radio-checkbox.css +1 -1
  236. package/dist/collection/components/bal-close/bal-close.css +1 -1
  237. package/dist/collection/components/bal-date/bal-date-calendar/bal-date-calendar.css +1 -1
  238. package/dist/collection/components/bal-modal/bal-modal.css +1 -1
  239. package/dist/collection/components/bal-steps/bal-steps.css +1 -1
  240. package/dist/collection/components/bal-tabs/bal-tabs.css +1 -1
  241. package/dist/collection/components/bal-time-input/bal-time-input.css +1 -1
  242. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  243. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +247 -0
  244. package/dist/collection/utils/constants/icons.constant.js +27 -27
  245. package/dist/collection/utils/constants/version.constant.js +1 -1
  246. package/dist/esm/{animation.decorator-14b892ea.js → animation.decorator-49923a4a.js} +1 -1
  247. package/dist/esm/app-globals-1ecf000f.js +5 -0
  248. package/dist/esm/bal-accordion_4.entry.js +5 -5
  249. package/dist/esm/bal-app.entry.js +2 -2
  250. package/dist/esm/bal-button_2.entry.js +2 -2
  251. package/dist/esm/bal-carousel_2.entry.js +14 -14
  252. package/dist/esm/bal-checkbox-button.entry.js +4 -4
  253. package/dist/esm/bal-checkbox_2.entry.js +6 -6
  254. package/dist/esm/bal-close.entry.js +4 -4
  255. package/dist/esm/bal-date-calendar-cell.entry.js +3 -3
  256. package/dist/esm/bal-date-calendar_2.entry.js +9 -9
  257. package/dist/esm/bal-date.entry.js +7 -7
  258. package/dist/esm/bal-doc-app.entry.js +229 -0
  259. package/dist/esm/bal-dropdown.entry.js +6 -6
  260. package/dist/esm/bal-field_5.entry.js +3 -3
  261. package/dist/esm/bal-file-upload.entry.js +3 -3
  262. package/dist/esm/bal-footer.entry.js +4 -4
  263. package/dist/esm/bal-form.entry.js +2 -2
  264. package/dist/esm/bal-hint_5.entry.js +6 -6
  265. package/dist/esm/bal-icon.entry.js +3 -3
  266. package/dist/esm/bal-input-slider.entry.js +3 -3
  267. package/dist/esm/bal-input-stepper.entry.js +6 -6
  268. package/dist/esm/bal-input.entry.js +3 -3
  269. package/dist/esm/bal-label.entry.js +3 -3
  270. package/dist/esm/bal-list_8.entry.js +9 -9
  271. package/dist/esm/bal-logo.entry.js +6 -6
  272. package/dist/esm/bal-modal_3.entry.js +4 -4
  273. package/dist/esm/bal-nav_8.entry.js +9 -9
  274. package/dist/esm/bal-navbar_5.entry.js +7 -7
  275. package/dist/esm/bal-number-input.entry.js +6 -6
  276. package/dist/esm/bal-option_2.entry.js +4 -4
  277. package/dist/esm/bal-pagination.entry.js +7 -7
  278. package/dist/esm/bal-popup.entry.js +4 -4
  279. package/dist/esm/bal-progress-bar.entry.js +6 -6
  280. package/dist/esm/bal-radio-button.entry.js +4 -4
  281. package/dist/esm/bal-radio_2.entry.js +6 -6
  282. package/dist/esm/bal-segment_2.entry.js +10 -10
  283. package/dist/esm/bal-select_2.entry.js +3 -3
  284. package/dist/esm/bal-shape.entry.js +1 -1
  285. package/dist/esm/bal-spinner.entry.js +4 -4
  286. package/dist/esm/bal-stage_6.entry.js +2 -2
  287. package/dist/esm/bal-steps.entry.js +8 -8
  288. package/dist/esm/bal-tab-item_2.entry.js +16 -16
  289. package/dist/esm/bal-textarea.entry.js +3 -3
  290. package/dist/esm/bal-time-input.entry.js +6 -6
  291. package/dist/esm/bal-tooltip.entry.js +3 -3
  292. package/dist/esm/baloise-design-system.js +7 -6
  293. package/dist/esm/{breakpoints.decorator-f76a33a3.js → breakpoints.decorator-051b2b3a.js} +1 -1
  294. package/dist/esm/{breakpoints.subject-5790fdca.js → breakpoints.subject-23ffb8e4.js} +2 -2
  295. package/dist/esm/{config.decorator-09912ddf.js → config.decorator-42dba864.js} +1 -1
  296. package/dist/esm/{config.default-75703209.js → config.default-8e11a860.js} +1 -1
  297. package/dist/esm/config.utils-cd529084.js +101 -0
  298. package/dist/esm/{date-13fc5993.js → date-a9304ff8.js} +1 -1
  299. package/dist/esm/{element-states.decorator-4567881f.js → element-states.decorator-0688a178.js} +1 -1
  300. package/dist/esm/{floating-ui-90bc6e58.js → floating-ui-775ee3d1.js} +2 -2
  301. package/dist/esm/{floating-ui.dom.esm-8dcdb8d6.js → floating-ui.dom.esm-efb93616.js} +205 -77
  302. package/dist/esm/{focus.decorator-43ea59ca.js → focus.decorator-5575312f.js} +1 -1
  303. package/dist/esm/{form-input-3856ed2a.js → form-input-263e6f5b.js} +1 -1
  304. package/dist/esm/global-6e86728b.js +7 -0
  305. package/dist/esm/{helpers-ae0db1dd.js → helpers-94c3fbac.js} +1 -1
  306. package/dist/esm/index.js +11 -11
  307. package/dist/esm/{initialize-66a526c0.js → initialize-be160cc4.js} +3 -3
  308. package/dist/esm/loader.js +7 -6
  309. package/dist/esm/{mutation.decorator-f4254690.js → mutation.decorator-a8bfa55f.js} +1 -1
  310. package/dist/esm/{number-42482e68.js → number-d75635a2.js} +2 -2
  311. package/dist/esm/{overlays-df27551b.js → overlays-4cc504b6.js} +1 -1
  312. package/dist/esm/{resize.decorator-d4cbf627.js → resize.decorator-08f6286b.js} +1 -1
  313. package/dist/esm/{swipe.decorator-47bde191.js → swipe.decorator-902c4936.js} +1 -1
  314. package/dist/esm/{swipe.subject-51271b9b.js → swipe.subject-fbdb665a.js} +1 -1
  315. package/dist/esm/{swiper.util-9564f1e8.js → swiper.util-01fa2dd9.js} +2 -2
  316. package/dist/esm/{tokens.esm-a16bc6a3.js → tokens.esm-4a06e147.js} +1 -1
  317. package/dist/esm/{visibility.decorator-28c2d364.js → visibility.decorator-ee4b6682.js} +1 -1
  318. package/dist/esm/{window-resize.decorator-159d2aac.js → window-resize.decorator-9271bddd.js} +1 -1
  319. package/dist/esm-es5/{animation.decorator-14b892ea.js → animation.decorator-49923a4a.js} +1 -1
  320. package/dist/esm-es5/app-globals-1ecf000f.js +1 -0
  321. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  322. package/dist/esm-es5/bal-app.entry.js +1 -1
  323. package/dist/esm-es5/bal-button_2.entry.js +1 -1
  324. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  325. package/dist/esm-es5/bal-checkbox-button.entry.js +1 -1
  326. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  327. package/dist/esm-es5/bal-close.entry.js +1 -1
  328. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  329. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  330. package/dist/esm-es5/bal-date.entry.js +1 -1
  331. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  332. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  333. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  334. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  335. package/dist/esm-es5/bal-footer.entry.js +1 -1
  336. package/dist/esm-es5/bal-form.entry.js +1 -1
  337. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  338. package/dist/esm-es5/bal-icon.entry.js +1 -1
  339. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  340. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  341. package/dist/esm-es5/bal-input.entry.js +1 -1
  342. package/dist/esm-es5/bal-label.entry.js +1 -1
  343. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  344. package/dist/esm-es5/bal-logo.entry.js +1 -1
  345. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  346. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  347. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  348. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  349. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  350. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  351. package/dist/esm-es5/bal-popup.entry.js +1 -1
  352. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  353. package/dist/esm-es5/bal-radio-button.entry.js +1 -1
  354. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  355. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  356. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  357. package/dist/esm-es5/bal-shape.entry.js +1 -1
  358. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  359. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  360. package/dist/esm-es5/bal-steps.entry.js +1 -1
  361. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  362. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  363. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  364. package/dist/esm-es5/bal-tooltip.entry.js +1 -1
  365. package/dist/esm-es5/baloise-design-system.js +1 -1
  366. package/dist/esm-es5/breakpoints.decorator-051b2b3a.js +1 -0
  367. package/dist/esm-es5/{breakpoints.subject-5790fdca.js → breakpoints.subject-23ffb8e4.js} +1 -1
  368. package/dist/esm-es5/{config.decorator-09912ddf.js → config.decorator-42dba864.js} +1 -1
  369. package/dist/esm-es5/{config.default-75703209.js → config.default-8e11a860.js} +1 -1
  370. package/dist/esm-es5/{date-13fc5993.js → date-a9304ff8.js} +1 -1
  371. package/dist/esm-es5/{element-states.decorator-4567881f.js → element-states.decorator-0688a178.js} +1 -1
  372. package/dist/esm-es5/{floating-ui-90bc6e58.js → floating-ui-775ee3d1.js} +1 -1
  373. package/dist/esm-es5/floating-ui.dom.esm-efb93616.js +1 -0
  374. package/dist/esm-es5/{focus.decorator-43ea59ca.js → focus.decorator-5575312f.js} +1 -1
  375. package/dist/esm-es5/{form-input-3856ed2a.js → form-input-263e6f5b.js} +1 -1
  376. package/dist/esm-es5/global-6e86728b.js +1 -0
  377. package/dist/esm-es5/{helpers-ae0db1dd.js → helpers-94c3fbac.js} +1 -1
  378. package/dist/esm-es5/index.js +1 -1
  379. package/dist/esm-es5/{initialize-66a526c0.js → initialize-be160cc4.js} +1 -1
  380. package/dist/esm-es5/loader.js +1 -1
  381. package/dist/esm-es5/{mutation.decorator-f4254690.js → mutation.decorator-a8bfa55f.js} +1 -1
  382. package/dist/esm-es5/number-d75635a2.js +1 -0
  383. package/dist/esm-es5/{overlays-df27551b.js → overlays-4cc504b6.js} +1 -1
  384. package/dist/esm-es5/{resize.decorator-d4cbf627.js → resize.decorator-08f6286b.js} +1 -1
  385. package/dist/esm-es5/{swipe.decorator-47bde191.js → swipe.decorator-902c4936.js} +1 -1
  386. package/dist/esm-es5/{swipe.subject-51271b9b.js → swipe.subject-fbdb665a.js} +1 -1
  387. package/dist/esm-es5/{swiper.util-9564f1e8.js → swiper.util-01fa2dd9.js} +1 -1
  388. package/dist/esm-es5/{visibility.decorator-28c2d364.js → visibility.decorator-ee4b6682.js} +1 -1
  389. package/dist/esm-es5/{window-resize.decorator-159d2aac.js → window-resize.decorator-9271bddd.js} +1 -1
  390. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  391. package/dist/types/components.d.ts +37 -0
  392. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  393. package/package.json +6 -8
  394. package/dist/baloise-design-system/p-00b2c8e27d.entry.js +0 -1
  395. package/dist/baloise-design-system/p-195ee683.system.js +0 -1
  396. package/dist/baloise-design-system/p-2e8941a17f.entry.js +0 -1
  397. package/dist/baloise-design-system/p-31876153a5.entry.js +0 -1
  398. package/dist/baloise-design-system/p-35baa468.js +0 -1
  399. package/dist/baloise-design-system/p-36218e79.js +0 -1
  400. package/dist/baloise-design-system/p-367855fbaa.system.entry.js +0 -1
  401. package/dist/baloise-design-system/p-36c4bd2450.system.entry.js +0 -1
  402. package/dist/baloise-design-system/p-51e22c0c.js +0 -1
  403. package/dist/baloise-design-system/p-649e542e.system.js +0 -1
  404. package/dist/baloise-design-system/p-857f898475.system.entry.js +0 -1
  405. package/dist/baloise-design-system/p-95055e88.system.js +0 -1
  406. package/dist/baloise-design-system/p-9d2037e834.system.entry.js +0 -1
  407. package/dist/baloise-design-system/p-c6f5e9453a.system.entry.js +0 -1
  408. package/dist/baloise-design-system/p-ce3c6e67ba.system.entry.js +0 -1
  409. package/dist/baloise-design-system/p-d404537f.system.js +0 -1
  410. package/dist/baloise-design-system/p-dc330e5e21.entry.js +0 -1
  411. package/dist/baloise-design-system/p-e2a70f10.system.js +0 -1
  412. package/dist/cjs/app-globals-fa3c14cc.js +0 -11
  413. package/dist/cjs/config.utils-bccf141d.js +0 -140
  414. package/dist/esm/app-globals-5b18a75c.js +0 -9
  415. package/dist/esm/config.utils-6c4a6204.js +0 -101
  416. package/dist/esm-es5/app-globals-5b18a75c.js +0 -1
  417. package/dist/esm-es5/breakpoints.decorator-f76a33a3.js +0 -1
  418. package/dist/esm-es5/floating-ui.dom.esm-8dcdb8d6.js +0 -1
  419. package/dist/esm-es5/number-42482e68.js +0 -1
  420. /package/dist/baloise-design-system/{p-46251973.js → p-a7be57b6.js} +0 -0
  421. /package/dist/baloise-design-system/{p-8c67c79d.system.js → p-aad0d922.system.js} +0 -0
  422. /package/dist/baloise-design-system/{p-ef3bfa9f.system.js → p-ade9437f.system.js} +0 -0
  423. /package/dist/baloise-design-system/{p-ce5ab69a.js → p-e036423e.js} +0 -0
  424. /package/dist/esm-es5/{config.utils-6c4a6204.js → config.utils-cd529084.js} +0 -0
  425. /package/dist/esm-es5/{tokens.esm-a16bc6a3.js → tokens.esm-4a06e147.js} +0 -0
@@ -1 +1 @@
1
- import{h as o,r as e,c as t,H as r,g as a}from"./p-2ccbe55a.js";import{_ as l,a as i}from"./p-43c9f5e9.js";import{B as n}from"./p-ae86d0a0.js";import{L as d}from"./p-b77e3348.js";import{s as p}from"./p-e3e1d211.js";import{i as s}from"./p-063808d7.js";import{d as c}from"./p-5eb3fbb9.js";import{n as h,b,l as _,r as u,d as m}from"./p-ef6a64f4.js";import{b as w}from"./p-a65354df.js";import{a as v}from"./p-00b37ea2.js";import{l as f}from"./p-9a3d9e17.js";import{F as g}from"./p-ca119357.js";import{b as x}from"./p-35baa468.js";import{D as y}from"./p-5ed239cc.js";import{i as k,a as j,b as O,c as C,d as z}from"./p-dc98854c.js";import{a as F}from"./p-8f2e9a7f.js";import{d as L}from"./p-830d9e47.js";import{L as A}from"./p-44e7532c.js";import"./p-46251973.js";import"./p-166d571e.js";import"./p-4573c419.js";class D{constructor(){this.handleAutoFill=async o=>{if(p(o),this.isAutoFillAllowed()){this.component.isAutoFilled=!0;const o=this.component.nativeEl.value,e=await this.parseAutoFillValueWithOptions(o);if(void 0===e)return void(this.component.isAutoFilled=!1);v(e,this.component.rawValue)||this.component.valueUtil.updateRawValueBySelection(e,!0)}}}connectedCallback(o){this.component=o}isAutoFillAllowed(){return!this.component.multiple}async parseAutoFillValueWithOptions(o){const e=await this.component.listEl.getOptions();for(let t=0;t<e.length;t++){const r=e[t];if(r.value===o||r.label===o)return[r.value]}}}const E={de:{clearable:"Löschen",open:"Öffnen",close:"Schließen"},en:{clearable:"clear",open:"Open",close:"Close"},fr:{clearable:"Effacer",open:"Ouvrir",close:"Fermer"},it:{clearable:"Cancellare",open:"Apri",close:"Chiudi"},nl:{clearable:"Wissen",open:"Open",close:"Sluiten"},es:{clearable:"Limpiar",open:"Abrir",close:"Cerrar"},pl:{clearable:"Wyczyść",open:"Otwórz",close:"Zamknij"},pt:{clearable:"Limpar",open:"Abrir",close:"Fechar"},sv:{clearable:"Rensa",open:"Öppna",close:"Stäng"},fi:{clearable:"Tyhjennä",open:"Avaa",close:"Sulje"}};class S{constructor(){this.handlePointerDown=()=>{this.component.isKeyboardMode=!1},this.handleKeydown=o=>{this.component.isKeyboardMode=g.includes(o.key)}}connectedCallback(o){this.component=o}handleFocus(o){this.component.hasFocus=!0,this.component.balFocus.emit(o)}handleBlur(o){this.component.isExpanded||(this.component.hasFocus=!1,h((()=>this.component.balBlur.emit(o))))}handleClick(o){if(!this.component.valueUtil.isDisabled()){if(this.component.chips&&o.target.closest("bal-close"))return;if(this.component.clearable&&o.target.closest(".bal-dropdown__clear"))return void this.component.valueUtil.updateRawValueBySelection([]);this.component.popupUtil.toggleList()}}handleOutsideClick(o){var e;this.component.isExpanded&&(this.component.el.contains(o.target)||(this.component.isExpanded=!1,null===(e=this.component.listEl)||void 0===e||e.resetFocus(),this.component.hasFocus=!1,h((()=>this.component.balBlur.emit(o)))))}}class V{connectedCallback(o){this.component=o}focusOptionByLabel(o,e={}){this.component.labelToFocus=(this.component.labelToFocus+o).trim(),this.component.labelToFocus.length>0&&(clearTimeout(this.keyHitTimeout),this.keyHitTimeout=setTimeout((()=>{var o;null===(o=this.component.listEl)||void 0===o||o.focusByLabel(this.component.labelToFocus,e)}),100),clearTimeout(this.timeout),this.timeout=setTimeout((async()=>{this.component.labelToFocus=""}),1e3))}}class B{connectedCallback(o){this.component=o,this.component.initialValue=this.component.value}componentDidRender(){this.component.selectEl&&this.component.selectEl.querySelectorAll("option").forEach((o=>{this.component.rawValue.includes(o.value)&&(o.selected=!0)}))}handle(o){const e=o.target;(null==e?void 0:e.contains(this.component.el))&&(this.resetHandlerTimer&&clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{const o=this.component.valueUtil.parseValueString(this.component.initialValue);this.component.valueUtil.updateRawValueBySelection(o)}),0))}}const q=({name:e,httpFormSubmit:t,multiple:r,required:a,disabled:l,rawValue:i,refSelectEl:d})=>{const p=n.block("dropdown");return t?o("select",{class:Object.assign({},p.element("root").element("select").class()),"aria-hidden":"true",name:e,multiple:r,required:a,disabled:l,tabindex:-1,ref:d},i.map((e=>o("option",{key:e,value:e,selected:!0},e)))):""},R=({size:e,theme:t,icon:r,language:a,loading:l,clearable:i,invalid:d,filled:p,expanded:s,disabled:c})=>{const h=n.block("dropdown");return l?o("bal-spinner",{class:Object.assign({},h.element("rear").class()),small:!0,variation:"circle"}):i&&p&&!c?o("button",{title:E[a].clearable,type:"button",tabIndex:-1,class:Object.assign(Object.assign(Object.assign(Object.assign({},h.element("rear").class()),h.element("clear").class()),h.element("clear").modifier("invalid").class(d)),h.element("clear").modifier("theme-purple").class("purple"===t))},o("bal-icon",{class:Object.assign({},h.element("rear").class()),name:"purple"===t?"close":"close-circle",size:e,color:"purple"===t?"primary":"grey"})):o("bal-icon",{class:Object.assign({},h.element("rear").class()),name:r,size:e,turn:s,color:c?"grey":d?"danger":p||"purple"!==t?"primary":"primary-light"})},T=({inputId:e,isExpanded:t,rawOptions:r,isDisabled:a,hasPropOptions:l,required:i,filter:d,multiple:p,contentHeight:s,refPanelEl:c,refListEl:h})=>{const b=n.block("dropdown");return o("div",{id:`${e}-menu`,class:Object.assign(Object.assign({},b.element("list").class()),b.element("list").modifier("expanded").class(t)),ref:c},o("bal-option-list",{multiple:p,disabled:a,filter:d,required:i,contentHeight:s,ref:h},o("slot",null),l?r.map((e=>o("bal-option",{key:e.value,value:e.value,label:e.label,disabled:e.disabled,multiline:e.multiline,invalid:e.invalid,hidden:e.hidden,selected:e.selected,focused:e.focused},e.label))):""))};class ${constructor(){this.updatePanelPosition=(o,e,t)=>()=>{o.computePosition(e,t,{placement:"bottom-start",middleware:[o.flip(),o.shift()]}).then((({x:o,y:e})=>{Object.assign(t.style,{left:`${o}px`,top:`${e}px`})}))}}connectedCallback(o){this.component=o}toggleList(){this.component.valueUtil.isDisabled()||(this.component.isExpanded?this.collapseList():this.expandList())}async expandList(){var o;if(this.component.panelEl){const o=await x.load();this.component.panelCleanup=o.autoUpdate(this.component.el,this.component.panelEl,this.updatePanelPosition(o,this.component.el,this.component.panelEl))}this.component.isExpanded=!0,await(null===(o=this.component.listEl)||void 0===o?void 0:o.focusSelected())}collapseList(){var o;this.component.isExpanded=!1,null===(o=this.component.listEl)||void 0===o||o.resetFocus(),this.component.panelCleanup&&this.component.panelCleanup()}}class I{connectedCallback(o){this.component=o}componentDidLoad(){setTimeout((()=>this.valueChanged(this.component.value,void 0)),0)}isDisabled(){return this.component.disabled||this.component.readonly}isFilled(){return this.component.rawValue&&this.component.rawValue.length>0}valueChanged(o,e){const t=typeof o;t!==typeof e&&this.updateRawValueByValueProp(o),"string"===t&&o!==e&&this.updateRawValueByValueProp(o),Array.isArray(o)&&Array.isArray(e)&&!v(o,e)&&this.updateRawValueByValueProp(o)}updateRawValueBySelection(o=[],e=!1){this.component.isAutoFilled=e,this.updateRawValue(o),this.component.balChange.emit(this.component.multiple?this.component.rawValue:this.component.rawValue[0])}parseValueString(o=[]){let e=[];return f(o)||""===o||(e=Array.isArray(o)?[...o.filter((o=>!f(o)))]:o.split("").includes(",")?[...o.split(",").filter((o=>o)).map((o=>o.trim()))]:[o]),e}updateRawValueByValueProp(o=[]){const e=this.parseValueString(o);this.updateRawValue(e)}async updateRawValue(o=[]){this.component.rawValue=o,this.component.listEl&&await this.component.listEl.updateSelected(this.component.rawValue),await this.updateInputContent()}removeOption(o){const e=this.component.rawValue.filter((e=>e!==o.value));this.updateRawValueBySelection(e)}async updateInputContent(){await b(),this.component.listEl&&(this.component.choices=await this.component.listEl.getSelectedOptions(this.component.rawValue),this.component.inputLabel=this.component.choices.map((o=>o.label.trim())).sort().join(","))}}const P=({inlineLabel:e,filled:t,chips:r,placeholder:a,choices:l,invalid:i,disabled:d,readonly:p,onRemoveChip:s})=>{const c=n.block("dropdown");return t?r?o("div",{class:Object.assign({},c.element("root").element("content").element("chips").class())},l.map((e=>o("bal-tag",{key:e.value,"data-test":"bal-dropdown-chip",size:"small",invalid:i,disabled:d||p,closable:!(d||p),onBalCloseClick:()=>s(e)},e.label)))):(e&&`${e}: `)+l.map((o=>o.label)).join(", "):a},H=({inputId:e,httpFormSubmit:t,ariaForm:r,rawValue:a,autocomplete:l,required:i,disabled:d,readonly:p,placeholder:s,expanded:c,invalid:h,language:b,inputLabel:_,inheritedAttributes:u,refInputEl:m,onChange:w,onFocus:v,onBlur:f,onKeyDown:g})=>{const x=n.block("dropdown"),y=()=>o("input",Object.assign({id:r.controlId||`${e}-ctrl`,class:Object.assign({},x.element("root").element("input").class()),type:"text",size:1,inputmode:"none",tabindex:"0",autoComplete:l,value:a.join(","),required:i,disabled:d,readonly:p,placeholder:s,title:c?E[b].close:E[b].open,"aria-label":c?E[b].close:E[b].open,"aria-owns":`${e}-menu`,"aria-invalid":F(h),"aria-disabled":F(d||p),"aria-labelledby":r.labelId,"aria-describedby":r.messageId,"aria-haspopup":"listbox","data-native":!0,"data-label":_,"data-value":a.join(","),ref:o=>m(o),onChange:o=>w(o),onFocus:o=>v(o),onBlur:o=>f(o),onKeyDown:o=>g(o)},u));return t?o(y,null):o("form",{novalidate:!0},o(y,null))},W=class{constructor(o){e(this,o),this.balChange=t(this,"balChange",7),this.balFocus=t(this,"balFocus",7),this.balBlur=t(this,"balBlur",7),this.inputId="bal-dropdown-"+K++,this.inheritedAttributes={},this.initialValue=[],this.nativeOptions=[],this.valueUtil=new I,this.eventsUtil=new S,this.popupUtil=new $,this.optionUtil=new y,this.formSubmitUtil=new B,this.focusUtil=new V,this.autoFillUtil=new D,this.hasConnected=!1,this.listenToOptionChange=o=>{this.optionUtil.listenToOptionChange(o)},this.listenOnClickOutside=o=>{this.eventsUtil.handleOutsideClick(o)},this.resetHandler=o=>{this.formSubmitUtil.handle(o)},this.handleAutoFill=async o=>{this.log("(handleAutoFill)",o,this.nativeEl.value),this.autoFillUtil.handleAutoFill(o)},this.handleKeyDown=o=>{var e,t,r,a,l;o&&o.key?this.isExpanded?k(o)?(p(o),null===(e=this.listEl)||void 0===e||e.focusNext()):j(o)?(p(o),null===(t=this.listEl)||void 0===t||t.focusPrevious()):"Home"===o.key||"PageUp"===o.key?(p(o),null===(r=this.listEl)||void 0===r||r.focusFirst()):"End"===o.key||"PageDown"===o.key?(p(o),null===(a=this.listEl)||void 0===a||a.focusLast()):O(o)?(p(o),null===(l=this.listEl)||void 0===l||l.selectByFocus()):"Tab"===o.key||C(o)?this.popupUtil.collapseList():1===o.key.length&&this.focusUtil.focusOptionByLabel(o.key):O(o)||z(o)?(p(o),this.popupUtil.expandList()):1===o.key.length&&this.focusUtil.focusOptionByLabel(o.key,{select:!0}):this.isExpanded&&this.popupUtil.collapseList()},this.rawOptions=[],this.choices=[],this.rawValue=[],this.hasFocus=!1,this.isExpanded=!1,this.isAutoFilled=!1,this.isKeyboardMode=!1,this.inputLabel="",this.ariaForm=c,this.language=L.language,this.region=L.region,this.httpFormSubmit=L.httpFormSubmit,this.labelToFocus="",this.autocomplete="off",this.name=this.inputId,this.placeholder="",this.inlineLabel="",this.icon="caret-down",this.size="",this.theme="",this.disabled=!1,this.readonly=!1,this.multiple=!1,this.chips=!1,this.clearable=!1,this.invalid=!1,this.required=!1,this.loading=!1,this.filter="includes",this.contentHeight=262,this.inverted=!1,this.options=[],this.value=[]}createLogger(o){this.log=o}async optionChanged(){this.optionUtil.optionChanged()}valueChanged(o,e){this.valueUtil.valueChanged(o,e)}connectedCallback(){this.hasConnected||(this.eventsUtil.connectedCallback(this),this.valueUtil.connectedCallback(this),this.popupUtil.connectedCallback(this),this.optionUtil.connectedCallback(this),this.formSubmitUtil.connectedCallback(this),this.focusUtil.connectedCallback(this),this.autoFillUtil.connectedCallback(this)),_(this.el,"balOptionChange",this.listenToOptionChange),w.hasDocument&&(_(document,"keydown",this.eventsUtil.handleKeydown),_(document,"touchstart",this.eventsUtil.handlePointerDown),_(document,"mousedown",this.eventsUtil.handlePointerDown),_(document,"click",this.listenOnClickOutside),_(document,"reset",this.resetHandler,{capture:!0})),this.hasConnected=!0}disconnectedCallback(){u(this.el,"balOptionChange",this.listenToOptionChange),w.hasDocument&&(u(document,"keydown",this.eventsUtil.handleKeydown),u(document,"touchstart",this.eventsUtil.handlePointerDown),u(document,"mousedown",this.eventsUtil.handlePointerDown),u(document,"click",this.listenOnClickOutside),u(document,"reset",this.resetHandler,{capture:!0}))}async componentWillRender(){this.inheritedAttributes=s(this.el,["tabindex"]),await this.optionUtil.componentWillRender()}componentDidRender(){this.formSubmitUtil.componentDidRender()}componentDidLoad(){this.valueUtil.componentDidLoad()}async configChanged(o){this.language=o.language,this.region=o.region,this.httpFormSubmit=o.httpFormSubmit}async setFocus(){this.nativeEl&&!this.valueUtil.isDisabled()&&(await m(),this.nativeEl.focus())}async getValue(){return this.rawValue}async clear(){this.valueUtil.updateRawValueBySelection([])}async open(){!this.valueUtil.isDisabled()&&this.panelEl&&await this.popupUtil.expandList()}async close(){!this.valueUtil.isDisabled()&&this.panelEl&&await this.popupUtil.collapseList()}async select(o){const e=this.valueUtil.parseValueString(o);this.valueUtil.updateRawValueBySelection(e)}async setAriaForm(o){this.ariaForm=Object.assign({},o)}render(){const e=n.block("dropdown"),t=this.valueUtil.isFilled(),a=""!==this.size,l=`size-${this.size}`,i=""!==this.theme,d=`theme-${this.theme}`,p="purple"===this.theme?this.hasFocus&&this.isKeyboardMode:this.hasFocus;return o(r,{key:"6fe4a66e63dba61d168848cc3b8d5ad3206596ba",class:Object.assign({},e.class()),tabindex:"-1",id:`${this.inputId}`},o("div",{key:"5bf5613a1d65889935a9c2b40601e57240372be2",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.element("root").class()),e.element("root").modifier("focused").class(p)),e.element("root").modifier("invalid").class(this.invalid)),e.element("root").modifier("disabled").class(this.valueUtil.isDisabled())),e.element("root").modifier("autofill").class(this.isAutoFilled)),e.element("root").modifier(l).class(a)),e.element("root").modifier(d).class(i)),e.element("root").modifier(d+"-filled").class(t&&i)),e.element("root").modifier(d+"-expanded").class(this.isExpanded&&i)),"data-test":"bal-dropdown-trigger",onClick:o=>this.eventsUtil.handleClick(o)},o("span",{key:"db5194514ee8922cd756b51d3dcb68188f78a450",class:Object.assign(Object.assign(Object.assign(Object.assign({},e.element("root").element("content").class()),e.element("root").element("content").modifier("disabled").class(this.valueUtil.isDisabled())),e.element("root").element("content").modifier("placeholder").class(!this.valueUtil.isFilled())),e.element("root").element("content").modifier(l).class(a))},o(P,{key:"8a7eb020f59052fcdf991dd613887b9258697c25",filled:this.valueUtil.isFilled(),inlineLabel:this.inlineLabel,chips:this.chips,placeholder:this.placeholder,choices:this.choices,invalid:this.invalid,disabled:this.disabled,readonly:this.readonly,onRemoveChip:o=>this.valueUtil.removeOption(o)})),o(H,{key:"b02e555f1a0a2ce147ac2a7ef3db8d9f9dac6b69",inputId:this.inputId,httpFormSubmit:this.httpFormSubmit,ariaForm:this.ariaForm,rawValue:this.rawValue,autocomplete:this.autocomplete,required:this.required,disabled:this.disabled,readonly:this.readonly,placeholder:this.placeholder,expanded:this.isExpanded,invalid:this.invalid,language:this.language,inputLabel:this.inputLabel,inheritedAttributes:this.inheritedAttributes,refInputEl:o=>this.nativeEl=o,onChange:o=>this.handleAutoFill(o),onFocus:o=>this.eventsUtil.handleFocus(o),onBlur:o=>this.eventsUtil.handleBlur(o),onKeyDown:o=>this.handleKeyDown(o)}),o(q,{key:"6283de0a1f10181bef9d514577d2a1fc7ca34b2b",name:this.name,httpFormSubmit:this.httpFormSubmit,multiple:this.multiple,required:this.required,disabled:this.valueUtil.isDisabled(),rawValue:this.rawValue,refSelectEl:o=>this.selectEl=o}),o(R,{key:"c8f75c6e7c42a9cb5850c6f93573adc5f4bf08fc",icon:this.icon,size:this.size,theme:this.theme,language:this.language,loading:this.loading,clearable:this.clearable,invalid:this.invalid,expanded:this.isExpanded,filled:t,disabled:this.valueUtil.isDisabled()})),o(T,{key:"a6f50cf28c3019d3f33abb9ac3b10f81a763349a",inputId:this.inputId,block:this.inputId,filter:this.filter,required:this.required,isExpanded:this.isExpanded,isDisabled:this.valueUtil.isDisabled(),hasPropOptions:this.optionUtil.hasPropOptions(),multiple:this.multiple,contentHeight:this.contentHeight,rawOptions:this.rawOptions,refPanelEl:o=>this.panelEl=o,refListEl:o=>this.listEl=o},o("slot",{key:"157a4cbaaae69efae17de54a543a56be62e3e949"})))}get el(){return a(this)}static get watchers(){return{options:["optionChanged"],value:["valueChanged"]}}};l([d("bal-dropdown"),i("design:type",Function),i("design:paramtypes",[Function]),i("design:returntype",void 0)],W.prototype,"createLogger",null),l([A(),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],W.prototype,"configChanged",null);let K=0;W.style=':root{--bal-dropdown-control-background:var(--bal-color-white);--bal-dropdown-control-background-hover:var(--bal-form-field-control-background-hover);--bal-dropdown-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-dropdown-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-dropdown-control-input-background:var(--bal-color-grey-1);--bal-dropdown-control-native-input-background:transparent;--bal-dropdown-control-native-input-background-hover:transparent;--bal-dropdown-control-input-inverted-footer-background:transparent;--bal-dropdown-control-input-inverted-footer-background-hover:transparent;--bal-dropdown-control-input-multiple-background:transparent;--bal-dropdown-control-input-multiple-background-read-only-selection:transparent;--bal-dropdown-control-input-option-background:transparent;--bal-dropdown-control-input-option-background-selected:var(--bal-color-primary-1);--bal-dropdown-control-input-option-background-focused:var(--bal-color-grey-2);--bal-dropdown-control-input-option-background-hover:var(--bal-color-grey-2);--bal-dropdown-control-border-radius:var(--bal-form-field-control-radius);--bal-dropdown-popover-border-color:var(--bal-color-grey-2);--bal-dropdown-control-border-color:var(--bal-form-field-control-border-color);--bal-dropdown-control-border-color-focused:var(--bal-color-primary);--bal-dropdown-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-dropdown-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-dropdown-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-dropdown-control-border-color-focus-within:var(--bal-color-primary);--bal-dropdown-option-border-top-color:var(--bal-color-grey-2);--bal-dropdown-popover-empty-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color-focused:var(--bal-color-primary);--bal-dropdown-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-dropdown-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-dropdown-option-content-label-text-color:var(--bal-form-field-control-color)}.bal-dropdown{display:block;position:relative;-ms-flex:1;flex:1;width:100%}.bal-dropdown__root{border-width:.125rem;border-style:solid;border-color:var(--bal-dropdown-control-border-color);border-radius:var(--bal-dropdown-control-border-radius);background:var(--bal-dropdown-control-background);font-weight:var(--bal-font-weight-regular);font-size:var(--bal-text-size-normal);font-family:var(--bal-font-family-text);color:var(--bal-dropdown-control-text-color);outline:none;-webkit-box-shadow:var(--bal-shadow-none);box-shadow:var(--bal-shadow-none);padding-right:1rem;height:auto;min-height:3rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:-ms-flexbox;display:flex;width:100%;text-align:left;gap:.5rem;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-dropdown__root--autofill{background:#faffbd !important;background:light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important}.bal-dropdown__root>span{-ms-flex:1;flex:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bal-dropdown__root--focused{border-color:var(--bal-dropdown-control-border-color-focused)}.bal-dropdown__root--invalid{border-color:var(--bal-dropdown-control-border-color-invalid);background:var(--bal-dropdown-control-background-invalid)}.bal-dropdown__root--disabled{border-color:var(--bal-dropdown-control-border-color-disabled);background:var(--bal-dropdown-control-background-disabled)}.bal-dropdown__root__content--placeholder{color:var(--bal-form-field-control-placeholder-color)}.bal-dropdown__root__content--disabled{color:var(--bal-dropdown-input-text-color-disabled)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root:not(.bal-dropdown__root--disabled):not(.bal-dropdown__root--invalid):not(.bal-dropdown__root--theme-purple):not(.bal-dropdown__root--theme-purple-expanded):hover{background:var(--bal-dropdown-control-background-hover)}}.bal-dropdown__root__content__chips{--bal-tag-size-small-font-size:var(--bal-text-size-normal);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-xx-small);padding-top:var(--bal-space-x-small);padding-bottom:var(--bal-space-x-small)}.bal-dropdown__root__content__chips>bal-tag{z-index:1}.bal-dropdown__root__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:rgba(0,0,0,0);position:absolute;right:var(--bal-border-width-normal);left:var(--bal-border-width-normal);top:var(--bal-border-width-normal);bottom:var(--bal-border-width-normal);opacity:0;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));cursor:pointer}.bal-dropdown__root__input:disabled{cursor:default}.bal-dropdown__root__input:-webkit-autofill{opacity:1}.bal-dropdown__root__input:autofill{opacity:1}.bal-dropdown__root__input:-internal-autofill-selected{opacity:0}.bal-dropdown__root__select{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-dropdown__root--autofill .bal-dropdown__root__input{opacity:0}.bal-dropdown__list{display:none;visibility:hidden;opacity:0;min-width:100%;width:100%;position:absolute;top:0;left:0;will-change:left,top,opacity;background:var(--bal-color-white);border-radius:var(--bal-radius-normal);-webkit-box-shadow:var(--bal-shadow-normal);box-shadow:var(--bal-shadow-normal);z-index:var(--bal-z-index-popup)}.bal-dropdown__list--expanded{display:block;visibility:visible;opacity:1}.bal-dropdown__native{bottom:0;left:0;position:absolute;opacity:0;pointer-events:none;width:100%}.bal-dropdown__clear{background:rgba(0,0,0,0);border:none;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer}.bal-dropdown__clear--theme-purple{height:2rem;width:2rem;border-top-right-radius:2px;border-bottom-right-radius:2px;margin-right:-10px}.bal-dropdown__clear--theme-purple::before{content:"";position:absolute;right:32px;background:var(--bal-color-white);width:2px;height:100%}.bal-dropdown__rear{z-index:1}.bal-dropdown__root--size-small{min-height:2rem}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded){border:none;background:var(--bal-color-background-grey-light)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover{background:var(--bal-color-purple-1)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner g,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner path,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner circle{fill:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active{background:var(--bal-color-purple-2)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner svg,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner g,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner path,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded){border:none;background:var(--bal-color-purple-2)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover{background:var(--bal-color-purple-3)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__content{color:var(--bal-color-text-primary-pressed)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner g,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner path,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner circle{fill:var(--bal-color-text-primary-pressed)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active{background:var(--bal-color-purple-3)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner svg,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner g,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner path,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}}.bal-dropdown__root--theme-purple-expanded,.bal-dropdown__root--theme-purple-expanded:hover,.bal-dropdown__root--theme-purple-expanded:active{border:none;background:var(--bal-color-purple-2)}.bal-dropdown__root--theme-purple-expanded .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded .bal-dropdown__root__content,.bal-dropdown__root--theme-purple-expanded:hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded:hover .bal-dropdown__root__content,.bal-dropdown__root--theme-purple-expanded:active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded:active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple-expanded .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded .bal-icon__inner circle,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner circle,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}.bal-dropdown__root--focused.bal-dropdown__root--theme-purple:before{content:"";border-width:var(--bal-border-width-normal);border-style:solid;border-color:var(--bal-focus-shadow);position:absolute;background:rgba(0,0,0,0);border-radius:var(--bal-radius-normal);top:-0.25rem;bottom:-0.25rem;left:-0.25rem;right:-0.25rem}.bal-dropdown__root__content--size-small{font-size:var(--bal-text-size-small);font-weight:var(--bal-font-weight-bold)}.bal-dropdown__clear--theme-purple{height:2rem;width:2rem;border-top-right-radius:2px;border-bottom-right-radius:2px;margin-right:-10px}.bal-dropdown__clear--theme-purple::before{content:"";position:absolute;right:32px;background:var(--bal-color-white);width:2px;height:100%}';export{W as bal_dropdown}
1
+ import{h as o,r as e,c as t,H as r,g as a}from"./p-2ccbe55a.js";import{_ as l,a as i}from"./p-43c9f5e9.js";import{B as n}from"./p-ae86d0a0.js";import{L as d}from"./p-b77e3348.js";import{s as p}from"./p-79f6f58b.js";import{i as s}from"./p-063808d7.js";import{d as c}from"./p-5eb3fbb9.js";import{n as h,b,l as _,r as u,d as m}from"./p-a255c9b3.js";import{b as w}from"./p-a65354df.js";import{a as v}from"./p-00b37ea2.js";import{l as f}from"./p-9a3d9e17.js";import{F as g}from"./p-ca119357.js";import{b as x}from"./p-301a6b23.js";import{D as y}from"./p-5ed239cc.js";import{i as k,a as j,b as O,c as C,d as z}from"./p-dc98854c.js";import{a as F}from"./p-8f2e9a7f.js";import{d as L}from"./p-ec375851.js";import{L as A}from"./p-20eba37f.js";import"./p-a7be57b6.js";import"./p-166d571e.js";import"./p-4573c419.js";class D{constructor(){this.handleAutoFill=async o=>{if(p(o),this.isAutoFillAllowed()){this.component.isAutoFilled=!0;const o=this.component.nativeEl.value,e=await this.parseAutoFillValueWithOptions(o);if(void 0===e)return void(this.component.isAutoFilled=!1);v(e,this.component.rawValue)||this.component.valueUtil.updateRawValueBySelection(e,!0)}}}connectedCallback(o){this.component=o}isAutoFillAllowed(){return!this.component.multiple}async parseAutoFillValueWithOptions(o){const e=await this.component.listEl.getOptions();for(let t=0;t<e.length;t++){const r=e[t];if(r.value===o||r.label===o)return[r.value]}}}const E={de:{clearable:"Löschen",open:"Öffnen",close:"Schließen"},en:{clearable:"clear",open:"Open",close:"Close"},fr:{clearable:"Effacer",open:"Ouvrir",close:"Fermer"},it:{clearable:"Cancellare",open:"Apri",close:"Chiudi"},nl:{clearable:"Wissen",open:"Open",close:"Sluiten"},es:{clearable:"Limpiar",open:"Abrir",close:"Cerrar"},pl:{clearable:"Wyczyść",open:"Otwórz",close:"Zamknij"},pt:{clearable:"Limpar",open:"Abrir",close:"Fechar"},sv:{clearable:"Rensa",open:"Öppna",close:"Stäng"},fi:{clearable:"Tyhjennä",open:"Avaa",close:"Sulje"}};class S{constructor(){this.handlePointerDown=()=>{this.component.isKeyboardMode=!1},this.handleKeydown=o=>{this.component.isKeyboardMode=g.includes(o.key)}}connectedCallback(o){this.component=o}handleFocus(o){this.component.hasFocus=!0,this.component.balFocus.emit(o)}handleBlur(o){this.component.isExpanded||(this.component.hasFocus=!1,h((()=>this.component.balBlur.emit(o))))}handleClick(o){if(!this.component.valueUtil.isDisabled()){if(this.component.chips&&o.target.closest("bal-close"))return;if(this.component.clearable&&o.target.closest(".bal-dropdown__clear"))return void this.component.valueUtil.updateRawValueBySelection([]);this.component.popupUtil.toggleList()}}handleOutsideClick(o){var e;this.component.isExpanded&&(this.component.el.contains(o.target)||(this.component.isExpanded=!1,null===(e=this.component.listEl)||void 0===e||e.resetFocus(),this.component.hasFocus=!1,h((()=>this.component.balBlur.emit(o)))))}}class V{connectedCallback(o){this.component=o}focusOptionByLabel(o,e={}){this.component.labelToFocus=(this.component.labelToFocus+o).trim(),this.component.labelToFocus.length>0&&(clearTimeout(this.keyHitTimeout),this.keyHitTimeout=setTimeout((()=>{var o;null===(o=this.component.listEl)||void 0===o||o.focusByLabel(this.component.labelToFocus,e)}),100),clearTimeout(this.timeout),this.timeout=setTimeout((async()=>{this.component.labelToFocus=""}),1e3))}}class B{connectedCallback(o){this.component=o,this.component.initialValue=this.component.value}componentDidRender(){this.component.selectEl&&this.component.selectEl.querySelectorAll("option").forEach((o=>{this.component.rawValue.includes(o.value)&&(o.selected=!0)}))}handle(o){const e=o.target;(null==e?void 0:e.contains(this.component.el))&&(this.resetHandlerTimer&&clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{const o=this.component.valueUtil.parseValueString(this.component.initialValue);this.component.valueUtil.updateRawValueBySelection(o)}),0))}}const q=({name:e,httpFormSubmit:t,multiple:r,required:a,disabled:l,rawValue:i,refSelectEl:d})=>{const p=n.block("dropdown");return t?o("select",{class:Object.assign({},p.element("root").element("select").class()),"aria-hidden":"true",name:e,multiple:r,required:a,disabled:l,tabindex:-1,ref:d},i.map((e=>o("option",{key:e,value:e,selected:!0},e)))):""},R=({size:e,theme:t,icon:r,language:a,loading:l,clearable:i,invalid:d,filled:p,expanded:s,disabled:c})=>{const h=n.block("dropdown");return l?o("bal-spinner",{class:Object.assign({},h.element("rear").class()),small:!0,variation:"circle"}):i&&p&&!c?o("button",{title:E[a].clearable,type:"button",tabIndex:-1,class:Object.assign(Object.assign(Object.assign(Object.assign({},h.element("rear").class()),h.element("clear").class()),h.element("clear").modifier("invalid").class(d)),h.element("clear").modifier("theme-purple").class("purple"===t))},o("bal-icon",{class:Object.assign({},h.element("rear").class()),name:"purple"===t?"close":"close-circle",size:e,color:"purple"===t?"primary":"grey"})):o("bal-icon",{class:Object.assign({},h.element("rear").class()),name:r,size:e,turn:s,color:c?"grey":d?"danger":p||"purple"!==t?"primary":"primary-light"})},T=({inputId:e,isExpanded:t,rawOptions:r,isDisabled:a,hasPropOptions:l,required:i,filter:d,multiple:p,contentHeight:s,refPanelEl:c,refListEl:h})=>{const b=n.block("dropdown");return o("div",{id:`${e}-menu`,class:Object.assign(Object.assign({},b.element("list").class()),b.element("list").modifier("expanded").class(t)),ref:c},o("bal-option-list",{multiple:p,disabled:a,filter:d,required:i,contentHeight:s,ref:h},o("slot",null),l?r.map((e=>o("bal-option",{key:e.value,value:e.value,label:e.label,disabled:e.disabled,multiline:e.multiline,invalid:e.invalid,hidden:e.hidden,selected:e.selected,focused:e.focused},e.label))):""))};class ${constructor(){this.updatePanelPosition=(o,e,t)=>()=>{o.computePosition(e,t,{placement:"bottom-start",middleware:[o.flip(),o.shift()]}).then((({x:o,y:e})=>{Object.assign(t.style,{left:`${o}px`,top:`${e}px`})}))}}connectedCallback(o){this.component=o}toggleList(){this.component.valueUtil.isDisabled()||(this.component.isExpanded?this.collapseList():this.expandList())}async expandList(){var o;if(this.component.panelEl){const o=await x.load();this.component.panelCleanup=o.autoUpdate(this.component.el,this.component.panelEl,this.updatePanelPosition(o,this.component.el,this.component.panelEl))}this.component.isExpanded=!0,await(null===(o=this.component.listEl)||void 0===o?void 0:o.focusSelected())}collapseList(){var o;this.component.isExpanded=!1,null===(o=this.component.listEl)||void 0===o||o.resetFocus(),this.component.panelCleanup&&this.component.panelCleanup()}}class I{connectedCallback(o){this.component=o}componentDidLoad(){setTimeout((()=>this.valueChanged(this.component.value,void 0)),0)}isDisabled(){return this.component.disabled||this.component.readonly}isFilled(){return this.component.rawValue&&this.component.rawValue.length>0}valueChanged(o,e){const t=typeof o;t!==typeof e&&this.updateRawValueByValueProp(o),"string"===t&&o!==e&&this.updateRawValueByValueProp(o),Array.isArray(o)&&Array.isArray(e)&&!v(o,e)&&this.updateRawValueByValueProp(o)}updateRawValueBySelection(o=[],e=!1){this.component.isAutoFilled=e,this.updateRawValue(o),this.component.balChange.emit(this.component.multiple?this.component.rawValue:this.component.rawValue[0])}parseValueString(o=[]){let e=[];return f(o)||""===o||(e=Array.isArray(o)?[...o.filter((o=>!f(o)))]:o.split("").includes(",")?[...o.split(",").filter((o=>o)).map((o=>o.trim()))]:[o]),e}updateRawValueByValueProp(o=[]){const e=this.parseValueString(o);this.updateRawValue(e)}async updateRawValue(o=[]){this.component.rawValue=o,this.component.listEl&&await this.component.listEl.updateSelected(this.component.rawValue),await this.updateInputContent()}removeOption(o){const e=this.component.rawValue.filter((e=>e!==o.value));this.updateRawValueBySelection(e)}async updateInputContent(){await b(),this.component.listEl&&(this.component.choices=await this.component.listEl.getSelectedOptions(this.component.rawValue),this.component.inputLabel=this.component.choices.map((o=>o.label.trim())).sort().join(","))}}const P=({inlineLabel:e,filled:t,chips:r,placeholder:a,choices:l,invalid:i,disabled:d,readonly:p,onRemoveChip:s})=>{const c=n.block("dropdown");return t?r?o("div",{class:Object.assign({},c.element("root").element("content").element("chips").class())},l.map((e=>o("bal-tag",{key:e.value,"data-test":"bal-dropdown-chip",size:"small",invalid:i,disabled:d||p,closable:!(d||p),onBalCloseClick:()=>s(e)},e.label)))):(e&&`${e}: `)+l.map((o=>o.label)).join(", "):a},H=({inputId:e,httpFormSubmit:t,ariaForm:r,rawValue:a,autocomplete:l,required:i,disabled:d,readonly:p,placeholder:s,expanded:c,invalid:h,language:b,inputLabel:_,inheritedAttributes:u,refInputEl:m,onChange:w,onFocus:v,onBlur:f,onKeyDown:g})=>{const x=n.block("dropdown"),y=()=>o("input",Object.assign({id:r.controlId||`${e}-ctrl`,class:Object.assign({},x.element("root").element("input").class()),type:"text",size:1,inputmode:"none",tabindex:"0",autoComplete:l,value:a.join(","),required:i,disabled:d,readonly:p,placeholder:s,title:c?E[b].close:E[b].open,"aria-label":c?E[b].close:E[b].open,"aria-owns":`${e}-menu`,"aria-invalid":F(h),"aria-disabled":F(d||p),"aria-labelledby":r.labelId,"aria-describedby":r.messageId,"aria-haspopup":"listbox","data-native":!0,"data-label":_,"data-value":a.join(","),ref:o=>m(o),onChange:o=>w(o),onFocus:o=>v(o),onBlur:o=>f(o),onKeyDown:o=>g(o)},u));return t?o(y,null):o("form",{novalidate:!0},o(y,null))},W=class{constructor(o){e(this,o),this.balChange=t(this,"balChange",7),this.balFocus=t(this,"balFocus",7),this.balBlur=t(this,"balBlur",7),this.inputId="bal-dropdown-"+K++,this.inheritedAttributes={},this.initialValue=[],this.nativeOptions=[],this.valueUtil=new I,this.eventsUtil=new S,this.popupUtil=new $,this.optionUtil=new y,this.formSubmitUtil=new B,this.focusUtil=new V,this.autoFillUtil=new D,this.hasConnected=!1,this.listenToOptionChange=o=>{this.optionUtil.listenToOptionChange(o)},this.listenOnClickOutside=o=>{this.eventsUtil.handleOutsideClick(o)},this.resetHandler=o=>{this.formSubmitUtil.handle(o)},this.handleAutoFill=async o=>{this.log("(handleAutoFill)",o,this.nativeEl.value),this.autoFillUtil.handleAutoFill(o)},this.handleKeyDown=o=>{var e,t,r,a,l;o&&o.key?this.isExpanded?k(o)?(p(o),null===(e=this.listEl)||void 0===e||e.focusNext()):j(o)?(p(o),null===(t=this.listEl)||void 0===t||t.focusPrevious()):"Home"===o.key||"PageUp"===o.key?(p(o),null===(r=this.listEl)||void 0===r||r.focusFirst()):"End"===o.key||"PageDown"===o.key?(p(o),null===(a=this.listEl)||void 0===a||a.focusLast()):O(o)?(p(o),null===(l=this.listEl)||void 0===l||l.selectByFocus()):"Tab"===o.key||C(o)?this.popupUtil.collapseList():1===o.key.length&&this.focusUtil.focusOptionByLabel(o.key):O(o)||z(o)?(p(o),this.popupUtil.expandList()):1===o.key.length&&this.focusUtil.focusOptionByLabel(o.key,{select:!0}):this.isExpanded&&this.popupUtil.collapseList()},this.rawOptions=[],this.choices=[],this.rawValue=[],this.hasFocus=!1,this.isExpanded=!1,this.isAutoFilled=!1,this.isKeyboardMode=!1,this.inputLabel="",this.ariaForm=c,this.language=L.language,this.region=L.region,this.httpFormSubmit=L.httpFormSubmit,this.labelToFocus="",this.autocomplete="off",this.name=this.inputId,this.placeholder="",this.inlineLabel="",this.icon="caret-down",this.size="",this.theme="",this.disabled=!1,this.readonly=!1,this.multiple=!1,this.chips=!1,this.clearable=!1,this.invalid=!1,this.required=!1,this.loading=!1,this.filter="includes",this.contentHeight=262,this.inverted=!1,this.options=[],this.value=[]}createLogger(o){this.log=o}async optionChanged(){this.optionUtil.optionChanged()}valueChanged(o,e){this.valueUtil.valueChanged(o,e)}connectedCallback(){this.hasConnected||(this.eventsUtil.connectedCallback(this),this.valueUtil.connectedCallback(this),this.popupUtil.connectedCallback(this),this.optionUtil.connectedCallback(this),this.formSubmitUtil.connectedCallback(this),this.focusUtil.connectedCallback(this),this.autoFillUtil.connectedCallback(this)),_(this.el,"balOptionChange",this.listenToOptionChange),w.hasDocument&&(_(document,"keydown",this.eventsUtil.handleKeydown),_(document,"touchstart",this.eventsUtil.handlePointerDown),_(document,"mousedown",this.eventsUtil.handlePointerDown),_(document,"click",this.listenOnClickOutside),_(document,"reset",this.resetHandler,{capture:!0})),this.hasConnected=!0}disconnectedCallback(){u(this.el,"balOptionChange",this.listenToOptionChange),w.hasDocument&&(u(document,"keydown",this.eventsUtil.handleKeydown),u(document,"touchstart",this.eventsUtil.handlePointerDown),u(document,"mousedown",this.eventsUtil.handlePointerDown),u(document,"click",this.listenOnClickOutside),u(document,"reset",this.resetHandler,{capture:!0}))}async componentWillRender(){this.inheritedAttributes=s(this.el,["tabindex"]),await this.optionUtil.componentWillRender()}componentDidRender(){this.formSubmitUtil.componentDidRender()}componentDidLoad(){this.valueUtil.componentDidLoad()}async configChanged(o){this.language=o.language,this.region=o.region,this.httpFormSubmit=o.httpFormSubmit}async setFocus(){this.nativeEl&&!this.valueUtil.isDisabled()&&(await m(),this.nativeEl.focus())}async getValue(){return this.rawValue}async clear(){this.valueUtil.updateRawValueBySelection([])}async open(){!this.valueUtil.isDisabled()&&this.panelEl&&await this.popupUtil.expandList()}async close(){!this.valueUtil.isDisabled()&&this.panelEl&&await this.popupUtil.collapseList()}async select(o){const e=this.valueUtil.parseValueString(o);this.valueUtil.updateRawValueBySelection(e)}async setAriaForm(o){this.ariaForm=Object.assign({},o)}render(){const e=n.block("dropdown"),t=this.valueUtil.isFilled(),a=""!==this.size,l=`size-${this.size}`,i=""!==this.theme,d=`theme-${this.theme}`,p="purple"===this.theme?this.hasFocus&&this.isKeyboardMode:this.hasFocus;return o(r,{key:"6fe4a66e63dba61d168848cc3b8d5ad3206596ba",class:Object.assign({},e.class()),tabindex:"-1",id:`${this.inputId}`},o("div",{key:"5bf5613a1d65889935a9c2b40601e57240372be2",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},e.element("root").class()),e.element("root").modifier("focused").class(p)),e.element("root").modifier("invalid").class(this.invalid)),e.element("root").modifier("disabled").class(this.valueUtil.isDisabled())),e.element("root").modifier("autofill").class(this.isAutoFilled)),e.element("root").modifier(l).class(a)),e.element("root").modifier(d).class(i)),e.element("root").modifier(d+"-filled").class(t&&i)),e.element("root").modifier(d+"-expanded").class(this.isExpanded&&i)),"data-test":"bal-dropdown-trigger",onClick:o=>this.eventsUtil.handleClick(o)},o("span",{key:"db5194514ee8922cd756b51d3dcb68188f78a450",class:Object.assign(Object.assign(Object.assign(Object.assign({},e.element("root").element("content").class()),e.element("root").element("content").modifier("disabled").class(this.valueUtil.isDisabled())),e.element("root").element("content").modifier("placeholder").class(!this.valueUtil.isFilled())),e.element("root").element("content").modifier(l).class(a))},o(P,{key:"8a7eb020f59052fcdf991dd613887b9258697c25",filled:this.valueUtil.isFilled(),inlineLabel:this.inlineLabel,chips:this.chips,placeholder:this.placeholder,choices:this.choices,invalid:this.invalid,disabled:this.disabled,readonly:this.readonly,onRemoveChip:o=>this.valueUtil.removeOption(o)})),o(H,{key:"b02e555f1a0a2ce147ac2a7ef3db8d9f9dac6b69",inputId:this.inputId,httpFormSubmit:this.httpFormSubmit,ariaForm:this.ariaForm,rawValue:this.rawValue,autocomplete:this.autocomplete,required:this.required,disabled:this.disabled,readonly:this.readonly,placeholder:this.placeholder,expanded:this.isExpanded,invalid:this.invalid,language:this.language,inputLabel:this.inputLabel,inheritedAttributes:this.inheritedAttributes,refInputEl:o=>this.nativeEl=o,onChange:o=>this.handleAutoFill(o),onFocus:o=>this.eventsUtil.handleFocus(o),onBlur:o=>this.eventsUtil.handleBlur(o),onKeyDown:o=>this.handleKeyDown(o)}),o(q,{key:"6283de0a1f10181bef9d514577d2a1fc7ca34b2b",name:this.name,httpFormSubmit:this.httpFormSubmit,multiple:this.multiple,required:this.required,disabled:this.valueUtil.isDisabled(),rawValue:this.rawValue,refSelectEl:o=>this.selectEl=o}),o(R,{key:"c8f75c6e7c42a9cb5850c6f93573adc5f4bf08fc",icon:this.icon,size:this.size,theme:this.theme,language:this.language,loading:this.loading,clearable:this.clearable,invalid:this.invalid,expanded:this.isExpanded,filled:t,disabled:this.valueUtil.isDisabled()})),o(T,{key:"a6f50cf28c3019d3f33abb9ac3b10f81a763349a",inputId:this.inputId,block:this.inputId,filter:this.filter,required:this.required,isExpanded:this.isExpanded,isDisabled:this.valueUtil.isDisabled(),hasPropOptions:this.optionUtil.hasPropOptions(),multiple:this.multiple,contentHeight:this.contentHeight,rawOptions:this.rawOptions,refPanelEl:o=>this.panelEl=o,refListEl:o=>this.listEl=o},o("slot",{key:"157a4cbaaae69efae17de54a543a56be62e3e949"})))}get el(){return a(this)}static get watchers(){return{options:["optionChanged"],value:["valueChanged"]}}};l([d("bal-dropdown"),i("design:type",Function),i("design:paramtypes",[Function]),i("design:returntype",void 0)],W.prototype,"createLogger",null),l([A(),i("design:type",Function),i("design:paramtypes",[Object]),i("design:returntype",Promise)],W.prototype,"configChanged",null);let K=0;W.style=':root{--bal-dropdown-control-background:var(--bal-color-white);--bal-dropdown-control-background-hover:var(--bal-form-field-control-background-hover);--bal-dropdown-control-background-invalid:var(--bal-form-field-control-danger-background);--bal-dropdown-control-background-disabled:var(--bal-form-field-control-disabled-background);--bal-dropdown-control-input-background:var(--bal-color-grey-1);--bal-dropdown-control-native-input-background:transparent;--bal-dropdown-control-native-input-background-hover:transparent;--bal-dropdown-control-input-inverted-footer-background:transparent;--bal-dropdown-control-input-inverted-footer-background-hover:transparent;--bal-dropdown-control-input-multiple-background:transparent;--bal-dropdown-control-input-multiple-background-read-only-selection:transparent;--bal-dropdown-control-input-option-background:transparent;--bal-dropdown-control-input-option-background-selected:var(--bal-color-primary-1);--bal-dropdown-control-input-option-background-focused:var(--bal-color-grey-2);--bal-dropdown-control-input-option-background-hover:var(--bal-color-grey-2);--bal-dropdown-control-border-radius:var(--bal-form-field-control-radius);--bal-dropdown-popover-border-color:var(--bal-color-grey-2);--bal-dropdown-control-border-color:var(--bal-form-field-control-border-color);--bal-dropdown-control-border-color-focused:var(--bal-color-primary);--bal-dropdown-control-border-color-hover:var(--bal-form-field-control-border-color-hover);--bal-dropdown-control-border-color-invalid:var(--bal-form-field-control-danger-border-color);--bal-dropdown-control-border-color-disabled:var(--bal-form-field-control-disabled-border-color);--bal-dropdown-control-border-color-focus-within:var(--bal-color-primary);--bal-dropdown-option-border-top-color:var(--bal-color-grey-2);--bal-dropdown-popover-empty-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color:var(--bal-form-field-control-color);--bal-dropdown-control-text-color-focused:var(--bal-color-primary);--bal-dropdown-input-text-color-disabled:var(--bal-form-field-label-disabled-color);--bal-dropdown-control-inverted-footer-native-input-text-color:var(--bal-color-text-white);--bal-dropdown-option-content-label-text-color:var(--bal-form-field-control-color)}.bal-dropdown{display:block;position:relative;-ms-flex:1;flex:1;width:100%}.bal-dropdown__root{border-width:.125rem;border-style:solid;border-color:var(--bal-dropdown-control-border-color);border-radius:var(--bal-dropdown-control-border-radius);background:var(--bal-dropdown-control-background);font-weight:var(--bal-font-weight-regular);font-size:var(--bal-text-size-normal);font-family:var(--bal-font-family-text);color:var(--bal-dropdown-control-text-color);outline:none;-webkit-box-shadow:var(--bal-shadow-none);box-shadow:var(--bal-shadow-none);padding-right:1rem;height:auto;min-height:3rem;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:-ms-flexbox;display:flex;width:100%;text-align:left;gap:.5rem;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-dropdown__root--autofill{background:#faffbd !important;background:light-dark(rgb(232, 240, 254), rgba(70, 90, 126, 0.4)) !important}.bal-dropdown__root>span{-ms-flex:1;flex:1;-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bal-dropdown__root--focused{border-color:var(--bal-dropdown-control-border-color-focused)}.bal-dropdown__root--invalid{border-color:var(--bal-dropdown-control-border-color-invalid);background:var(--bal-dropdown-control-background-invalid)}.bal-dropdown__root--disabled{border-color:var(--bal-dropdown-control-border-color-disabled);background:var(--bal-dropdown-control-background-disabled)}.bal-dropdown__root__content--placeholder{color:var(--bal-form-field-control-placeholder-color)}.bal-dropdown__root__content--disabled{color:var(--bal-dropdown-input-text-color-disabled)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root:not(.bal-dropdown__root--disabled):not(.bal-dropdown__root--invalid):not(.bal-dropdown__root--theme-purple):not(.bal-dropdown__root--theme-purple-expanded):hover{background:var(--bal-dropdown-control-background-hover)}}.bal-dropdown__root__content__chips{--bal-tag-size-small-font-size:var(--bal-text-size-normal);display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap;gap:var(--bal-space-xx-small);padding-top:var(--bal-space-x-small);padding-bottom:var(--bal-space-x-small)}.bal-dropdown__root__content__chips>bal-tag{z-index:1}.bal-dropdown__root__input{-webkit-appearance:none;-moz-appearance:none;appearance:none;border:none;background:rgba(0,0,0,0);position:absolute;right:var(--bal-border-width-normal);left:var(--bal-border-width-normal);top:var(--bal-border-width-normal);bottom:var(--bal-border-width-normal);opacity:0;padding-left:calc(.75em - var(--bal-border-width-normal));padding-right:calc(.75em - var(--bal-border-width-normal));cursor:pointer}.bal-dropdown__root__input:disabled{cursor:default}.bal-dropdown__root__input:-webkit-autofill{opacity:1}.bal-dropdown__root__input:autofill{opacity:1}.bal-dropdown__root__input:-internal-autofill-selected{opacity:0}.bal-dropdown__root__select{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-dropdown__root--autofill .bal-dropdown__root__input{opacity:0}.bal-dropdown__list{display:none;visibility:hidden;opacity:0;min-width:100%;width:100%;position:absolute;top:0;left:0;will-change:left,top,opacity;background:var(--bal-color-white);border-radius:var(--bal-radius-normal);-webkit-box-shadow:var(--bal-shadow-normal);box-shadow:var(--bal-shadow-normal);z-index:var(--bal-z-index-popup)}.bal-dropdown__list--expanded{display:block;visibility:visible;opacity:1}.bal-dropdown__native{bottom:0;left:0;position:absolute;opacity:0;pointer-events:none;width:100%}.bal-dropdown__clear{background:rgba(0,0,0,0);border:none;padding:0;margin:0;display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer}.bal-dropdown__clear--theme-purple{height:2rem;width:2rem;border-top-right-radius:2px;border-bottom-right-radius:2px;margin-right:-10px}.bal-dropdown__clear--theme-purple::before{content:"";position:absolute;right:32px;background:var(--bal-color-white);width:2px;height:100%}.bal-dropdown__rear{z-index:1}.bal-dropdown__root--size-small{min-height:2rem}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded){border:none;background:var(--bal-color-background-grey-light)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover{background:var(--bal-color-purple-1)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner g,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner path,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner circle{fill:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active{background:var(--bal-color-purple-2)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner svg,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner g,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner path,.bal-dropdown__root--theme-purple:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded){border:none;background:var(--bal-color-purple-2)}@media (hover: hover)and (pointer: fine){.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover{background:var(--bal-color-purple-3)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-dropdown__root__content{color:var(--bal-color-text-primary-pressed)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner g,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner path,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):hover .bal-icon__inner circle{fill:var(--bal-color-text-primary-pressed)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active{background:var(--bal-color-purple-3)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner svg,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner g,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner path,.bal-dropdown__root--theme-purple-filled:not(.bal-dropdown__root--theme-purple-expanded):active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}}.bal-dropdown__root--theme-purple-expanded,.bal-dropdown__root--theme-purple-expanded:hover,.bal-dropdown__root--theme-purple-expanded:active{border:none;background:var(--bal-color-purple-2)}.bal-dropdown__root--theme-purple-expanded .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded .bal-dropdown__root__content,.bal-dropdown__root--theme-purple-expanded:hover .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded:hover .bal-dropdown__root__content,.bal-dropdown__root--theme-purple-expanded:active .bal-dropdown__root__input,.bal-dropdown__root--theme-purple-expanded:active .bal-dropdown__root__content{color:var(--bal-color-text-primary)}.bal-dropdown__root--theme-purple-expanded .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded .bal-icon__inner circle,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded:hover .bal-icon__inner circle,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner svg,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner g,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner path,.bal-dropdown__root--theme-purple-expanded:active .bal-icon__inner circle{fill:var(--bal-color-text-primary)}.bal-dropdown__root--focused.bal-dropdown__root--theme-purple:before{content:"";border-width:var(--bal-border-width-normal);border-style:solid;border-color:var(--bal-focus-shadow);position:absolute;background:rgba(0,0,0,0);border-radius:var(--bal-radius-normal);top:-0.25rem;bottom:-0.25rem;left:-0.25rem;right:-0.25rem}.bal-dropdown__root__content--size-small{font-size:var(--bal-text-size-small);font-weight:var(--bal-font-weight-bold)}.bal-dropdown__clear--theme-purple{height:2rem;width:2rem;border-top-right-radius:2px;border-bottom-right-radius:2px;margin-right:-10px}.bal-dropdown__clear--theme-purple::before{content:"";position:absolute;right:32px;background:var(--bal-color-white);width:2px;height:100%}';export{W as bal_dropdown}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,a){function r(t){try{u(n.next(t))}catch(t){a(t)}}function o(t){try{u(n["throw"](t))}catch(t){a(t)}}function u(t){t.done?e(t.value):s(t.value).then(r,o)}u((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,s,a,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(i){return u([t,i])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(e=0)),e)try{if(n=1,s&&(a=o[0]&2?s["return"]:o[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,o[1])).done)return a;if(s=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;s=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){e.label=o[1];break}if(o[0]===6&&e.label<a[1]){e.label=a[1];a=o;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(o);break}if(a[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];s=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-7961e095.system.js","./p-980e4b57.system.js","./p-5cd2674f.system.js","./p-7720b262.system.js","./p-db0895e2.system.js","./p-907368ff.system.js","./p-2da669b4.system.js","./p-a1f6e944.system.js","./p-ef3bfa9f.system.js"],(function(t){"use strict";var i,e,n,s,a,r,o,u,h,c,f,l,d,b,p,m,v,y,x,_;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.H;a=t.g},function(t){r=t.g;o=t.a;u=t.b;h=t.e;c=t.f;f=t.i;l=t.h;d=t.j;b=t.c;p=t.d},function(t){m=t.p},function(t){v=t.i},function(t){y=t.B},function(t){x=t.d},function(t){_=t.a},function(){},function(){}],execute:function(){var g=".bal-textarea{-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;width:100%;font-family:var(--bal-font-family-text);white-space:pre-wrap;-webkit-box-sizing:border-box;box-sizing:border-box}.bal-textarea__native{margin:0;display:block;width:100%;max-width:100%;max-height:100%;outline:none;background:rgba(0,0,0,0);-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:calc(.75em - 2px)}.bal-textarea__native::-webkit-input-placeholder{padding:0;font-family:inherit}.bal-textarea__native::-moz-placeholder{padding:0;font-family:inherit}.bal-textarea__native:-ms-input-placeholder{padding:0;font-family:inherit}.bal-textarea__native::-ms-input-placeholder{padding:0;font-family:inherit}.bal-textarea__native::placeholder{padding:0;font-family:inherit}";var w=g;var k=t("bal_textarea",function(){function t(t){var n=this;i(this,t);this.balChange=e(this,"balChange",7);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.inputId="bal-textarea-".concat(j++);this.inheritedAttributes={};this.inputValue=this.value;this.initialValue=this.value||"";this.onInput=function(t){var i=r(t);if(i){n.inputValue=i.value}n.balInput.emit(n.inputValue)};this.onFocus=function(t){return o(n,t)};this.onBlur=function(t){u(n,t);var i=t.target;if(i){i.value=n.getValue()}h(n)};this.onClick=function(t){return c(n,t)};this.handleClick=function(t){return f(n,t)};this.focused=false;this.ariaForm=x;this.name=this.inputId;this.invalid=false;this.autocapitalize="none";this.autocomplete="off";this.autofocus=false;this.debounce=0;this.placeholder=undefined;this.maxLength=undefined;this.minLength=undefined;this.disabled=false;this.readonly=false;this.cols=undefined;this.rows=undefined;this.wrap=undefined;this.required=false;this.clickable=false;this.inputmode=undefined;this.value="";this.autoInvalidOff=false}t.prototype.debounceChanged=function(){this.balChange=m(this.balChange,this.debounce)};t.prototype.listenOnClick=function(t){l(this,t)};t.prototype.resetHandler=function(t){var i=t.target;if(i===null||i===void 0?void 0:i.contains(this.el)){d(this,this.initialValue,this.resetHandlerTimer)}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value||""};t.prototype.componentDidLoad=function(){this.inputValue=this.value};t.prototype.componentWillLoad=function(){this.inheritedAttributes=v(this.el,["aria-label","tabindex","title"])};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){b(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){p(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.getValue=function(){return this.value||""};t.prototype.render=function(){var t=this;var i=this.getValue();var e=y.block("textarea");var a=e.element("native");return n(s,{key:"ddb8b4c6b19ce9651250ff2232129b79501c5ac4",onClick:this.handleClick,"aria-disabled":_(this.disabled),class:Object.assign({},e.class())},n("textarea",Object.assign({key:"c2fd3d5a7cb5ee81a37d28fa6d06bc5bc2920d1b",class:Object.assign(Object.assign({},a.class()),{textarea:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid,clickable:this.clickable}),"data-testid":"bal-textarea-input",ref:function(i){return t.nativeInput=i},name:this.name,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),disabled:this.disabled,readonly:this.readonly,required:this.required,autoCapitalize:this.autocapitalize,autocomplete:this.autocomplete,autoFocus:this.autofocus,minLength:this.minLength,maxLength:this.maxLength,placeholder:this.placeholder,inputMode:this.inputmode,value:this.value,cols:this.cols,rows:this.rows,wrap:this.wrap,onFocus:this.onFocus,onInput:function(i){return t.onInput(i)},onBlur:this.onBlur,onClick:this.onClick,onKeyPress:function(i){return t.balKeyPress.emit(i)}},this.inheritedAttributes),i,n("slot",{key:"1678116856fd033654ad07b38d1aca32bf0ac412"})))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"]}},enumerable:false,configurable:true});return t}());var j=0;k.style=w}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,i,e,n){function s(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,a){function r(t){try{u(n.next(t))}catch(t){a(t)}}function o(t){try{u(n["throw"](t))}catch(t){a(t)}}function u(t){t.done?e(t.value):s(t.value).then(r,o)}u((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(a[0]&1)throw a[1];return a[1]},trys:[],ops:[]},n,s,a,r;return r={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(r[Symbol.iterator]=function(){return this}),r;function o(t){return function(i){return u([t,i])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(r&&(r=0,o[0]&&(e=0)),e)try{if(n=1,s&&(a=o[0]&2?s["return"]:o[0]?s["throw"]||((a=s["return"])&&a.call(s),0):s.next)&&!(a=a.call(s,o[1])).done)return a;if(s=0,a)o=[o[0]&2,a.value];switch(o[0]){case 0:case 1:a=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;s=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(a=e.trys,a=a.length>0&&a[a.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!a||o[1]>a[0]&&o[1]<a[3])){e.label=o[1];break}if(o[0]===6&&e.label<a[1]){e.label=a[1];a=o;break}if(a&&e.label<a[2]){e.label=a[2];e.ops.push(o);break}if(a[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];s=0}finally{n=a=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-7961e095.system.js","./p-c43a56b7.system.js","./p-863f4e4e.system.js","./p-7720b262.system.js","./p-db0895e2.system.js","./p-907368ff.system.js","./p-2da669b4.system.js","./p-a1f6e944.system.js","./p-ade9437f.system.js"],(function(t){"use strict";var i,e,n,s,a,r,o,u,h,c,f,l,d,b,p,m,v,y,x,_;return{setters:[function(t){i=t.r;e=t.c;n=t.h;s=t.H;a=t.g},function(t){r=t.g;o=t.a;u=t.b;h=t.e;c=t.f;f=t.i;l=t.h;d=t.j;b=t.c;p=t.d},function(t){m=t.p},function(t){v=t.i},function(t){y=t.B},function(t){x=t.d},function(t){_=t.a},function(){},function(){}],execute:function(){var g=".bal-textarea{-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;width:100%;font-family:var(--bal-font-family-text);white-space:pre-wrap;-webkit-box-sizing:border-box;box-sizing:border-box}.bal-textarea__native{margin:0;display:block;width:100%;max-width:100%;max-height:100%;outline:none;background:rgba(0,0,0,0);-webkit-box-sizing:border-box;box-sizing:border-box;resize:none;-webkit-appearance:none;-moz-appearance:none;appearance:none;padding:calc(.75em - 2px)}.bal-textarea__native::-webkit-input-placeholder{padding:0;font-family:inherit}.bal-textarea__native::-moz-placeholder{padding:0;font-family:inherit}.bal-textarea__native:-ms-input-placeholder{padding:0;font-family:inherit}.bal-textarea__native::-ms-input-placeholder{padding:0;font-family:inherit}.bal-textarea__native::placeholder{padding:0;font-family:inherit}";var w=g;var k=t("bal_textarea",function(){function t(t){var n=this;i(this,t);this.balChange=e(this,"balChange",7);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.inputId="bal-textarea-".concat(j++);this.inheritedAttributes={};this.inputValue=this.value;this.initialValue=this.value||"";this.onInput=function(t){var i=r(t);if(i){n.inputValue=i.value}n.balInput.emit(n.inputValue)};this.onFocus=function(t){return o(n,t)};this.onBlur=function(t){u(n,t);var i=t.target;if(i){i.value=n.getValue()}h(n)};this.onClick=function(t){return c(n,t)};this.handleClick=function(t){return f(n,t)};this.focused=false;this.ariaForm=x;this.name=this.inputId;this.invalid=false;this.autocapitalize="none";this.autocomplete="off";this.autofocus=false;this.debounce=0;this.placeholder=undefined;this.maxLength=undefined;this.minLength=undefined;this.disabled=false;this.readonly=false;this.cols=undefined;this.rows=undefined;this.wrap=undefined;this.required=false;this.clickable=false;this.inputmode=undefined;this.value="";this.autoInvalidOff=false}t.prototype.debounceChanged=function(){this.balChange=m(this.balChange,this.debounce)};t.prototype.listenOnClick=function(t){l(this,t)};t.prototype.resetHandler=function(t){var i=t.target;if(i===null||i===void 0?void 0:i.contains(this.el)){d(this,this.initialValue,this.resetHandlerTimer)}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value||""};t.prototype.componentDidLoad=function(){this.inputValue=this.value};t.prototype.componentWillLoad=function(){this.inheritedAttributes=v(this.el,["aria-label","tabindex","title"])};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){b(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){p(this);return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.getValue=function(){return this.value||""};t.prototype.render=function(){var t=this;var i=this.getValue();var e=y.block("textarea");var a=e.element("native");return n(s,{key:"ddb8b4c6b19ce9651250ff2232129b79501c5ac4",onClick:this.handleClick,"aria-disabled":_(this.disabled),class:Object.assign({},e.class())},n("textarea",Object.assign({key:"c2fd3d5a7cb5ee81a37d28fa6d06bc5bc2920d1b",class:Object.assign(Object.assign({},a.class()),{textarea:true,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid,clickable:this.clickable}),"data-testid":"bal-textarea-input",ref:function(i){return t.nativeInput=i},name:this.name,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),disabled:this.disabled,readonly:this.readonly,required:this.required,autoCapitalize:this.autocapitalize,autocomplete:this.autocomplete,autoFocus:this.autofocus,minLength:this.minLength,maxLength:this.maxLength,placeholder:this.placeholder,inputMode:this.inputmode,value:this.value,cols:this.cols,rows:this.rows,wrap:this.wrap,onFocus:this.onFocus,onInput:function(i){return t.onInput(i)},onBlur:this.onBlur,onClick:this.onClick,onKeyPress:function(i){return t.balKeyPress.emit(i)}},this.inheritedAttributes),i,n("slot",{key:"1678116856fd033654ad07b38d1aca32bf0ac412"})))};Object.defineProperty(t.prototype,"el",{get:function(){return a(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"]}},enumerable:false,configurable:true});return t}());var j=0;k.style=w}}}));
@@ -1 +1 @@
1
- import{h as t}from"./p-2ccbe55a.js";import{j as i,k as s,l as e,r as n,o as h}from"./p-ef6a64f4.js";import{B as r}from"./p-ae86d0a0.js";import{s as o}from"./p-e3e1d211.js";import{j as a}from"./p-dc98854c.js";const l=t=>"string"==typeof t?t.replace(/([a-z])([0-9])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase():"",c=t=>parseInt(t.slice(0,-2),10),d=(t,i=16)=>{if("undefined"==typeof window||void 0===t)return{top:i,right:i,bottom:i,left:i};const s=window.getComputedStyle(t);return{top:c(s.getPropertyValue("padding-top")),right:c(s.getPropertyValue("padding-right")),bottom:c(s.getPropertyValue("padding-bottom")),left:c(s.getPropertyValue("padding-left"))}},u=t=>{if("undefined"==typeof window)return t.clientWidth;const i=window.getComputedStyle(t),s=i.getPropertyValue("box-sizing"),e=c(i.getPropertyValue("width"));if("border-box"===s)return e;const n=c(i.getPropertyValue("padding-right"));return c(i.getPropertyValue("padding-left"))+e+n},b=t=>{const i=Array.from(t.children);let s=0;for(const t of i)s=Math.max(s,t.offsetLeft+t.offsetWidth);return s},f={de:{left:"vorherige",right:"nächste"},en:{left:"previous",right:"next"},fr:{left:"précédent",right:"suivant"},it:{left:"precedente",right:"successivo"},nl:{left:"vorige",right:"volgende"},es:{left:"anterior",right:"siguiente"},pl:{left:"poprzedni",right:"następny"},pt:{left:"anterior",right:"próximo"},sv:{left:"föregående",right:"nästa"},fi:{left:"edellinen",right:"seuraava"}},g=({isFirst:i,isLast:s,inverted:e,leftControlTitle:n,rightControlTitle:h,containerId:o,onNextClick:a,onPreviousClick:l})=>{const c=r.block("swiper").element("controls"),d=c.element("button");return t("div",{class:Object.assign(Object.assign({},c.class()),c.modifier("small").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("left").class()),d.modifier("hidden").class(i)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>l(),disabled:i,tabindex:"-1","data-testid":"bal-carousel-control-left",title:n}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("right").class()),d.modifier("hidden").class(s)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>a(),disabled:s,tabindex:"-1","data-testid":"bal-carousel-control-right",title:h}))},p=({isFirst:i,isLast:s,inverted:e,areControlsHidden:n,onNextClick:h,onPreviousClick:o,containerId:a,leftControlTitle:l,rightControlTitle:c})=>{const d=r.block("swiper").element("controls"),u=d.element("button");return t("div",{"data-mutation":"false",class:Object.assign(Object.assign({},d.class()),d.modifier("large").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("left").class()),u.modifier("hidden").class(i&&n)),"aria-controls":a,square:!0,icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>o(),tabindex:-1,disabled:i,"aria-hidden":i&&n?"true":null,"data-testid":"bal-carousel-control-left",title:l}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("right").class()),u.modifier("hidden").class(s&&n)),"aria-controls":a,square:!0,icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>h(),tabindex:-1,disabled:s,"aria-hidden":s&&n?"true":null,"data-testid":"bal-carousel-control-right",title:c}))},w=({value:i,items:s,containerId:e,onControlChange:n})=>{const h=r.block("swiper").element("controls");return t("div",{class:Object.assign(Object.assign({},h.class()),h.modifier("dots").class())},t("bal-pagination",{"aria-controls":e,interface:"small",value:i+1,totalPages:s.length,onBalChange:t=>{let i=t.detail-1;i<0&&(i=0),i>=s.length&&(i=s.length-1),n(s[i])}}))};class v{constructor(){this.previousTransformValue=0,this.active=!0,this.id="bal-swiper-"+m++,this.containerId=`${this.id}-container`,this.index=0,this.steps=1,this.noNeedForControls=!0,this.isLastSlideVisible=!1,this.itemsPerView=1,this.controls="none",this.gapSpace="none",this.keyboardMode=!1,this.shiftMode=!1,this.isInsideContainer=!1,this.focusByKey=!1,this.pointerDown=()=>{this.keyboardMode=!1,this.shiftMode=!1,this.focusByKey=!1,this.isInsideContainer=!1},this.listenToKeyDown=t=>{this.keyboardMode=a(t),this.shiftMode=t.shiftKey,this.focusByKey=!1,this.isInsideContainer=i(this.containerEl,t.target),this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.isInsideContainer&&this.keyboardMode&&(this.shiftMode&&this.index>0?(this.focusByKey=!0,this.focusPreviousItem(t)):!this.shiftMode&&this.index<this.lastIndex()&&(this.focusByKey=!0,this.focusNextItem(t)))},this.updateFocus=()=>{this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.focusByKey&&!this.isInsideContainer&&this.focusItem(this.shiftMode?this.lastIndex():0)},this.cssBlock=r.block("swiper"),this.cssSwiper=()=>Object.assign({},this.cssBlock.class(this.active)),this.cssInnerSwiper=()=>Object.assign(Object.assign(Object.assign(Object.assign({},this.cssBlock.element("inner").class(this.active)),this.cssBlock.element("inner").modifier(`items-per-view-${this.itemsPerView}`).class(this.active)),this.cssBlock.element("inner").modifier("shadow-left").class(this.hasShadowLeft())),this.cssBlock.element("inner").modifier("shadow-right").class(this.hasShadowRight())),this.cssSwiperContainer=()=>Object.assign(Object.assign({},this.cssBlock.element("container").class(this.active)),this.cssBlock.element("container").modifier(`gap-${this.gapSpace}`).class(this.active)),this.notifyChange=s((()=>this.notifyChangeInternal()),100),this.onControlChange=t=>{t!==this.index&&(t>this.index?this.next(t-this.index):this.previous(this.index-t))},this.onPreviousButtonClick=()=>this.previous(),this.onNextButtonClick=()=>this.next()}connectedCallback(t){this.component=t,e(window,"keydown",this.listenToKeyDown),e(this.component.el,"focusin",this.updateFocus),e(window,"touchstart",this.pointerDown),e(window,"mousedown",this.pointerDown)}disconnectedCallback(){n(window,"keydown",this.listenToKeyDown),n(this.component.el,"focusin",this.updateFocus),n(window,"touchstart",this.pointerDown),n(window,"mousedown",this.pointerDown)}isActive(){return this.active}async activate(){this.active=!0}async disable(){this.active=!1}async focusItem(t){const i=await this.goTo(t);i&&i.el&&await this.setFocusToEl(i.el)}async focusNextItem(t){const i=await this.next(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async focusPreviousItem(t){const i=await this.previous(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async setFocusToEl(t){t.setFocus&&await t.setFocus()}isFirst(){return 0===this.index}hasShadowLeft(){return this.hasShadow()&&0!==this.index&&this.active}hasShadowRight(){return this.hasShadow()&&!this.isLastSlideVisible&&this.active}isLast(){return this.isLastSlideVisible}async previous(t=this.steps){let i=this.index-t;return i<0&&(i=0),this.goTo(i)}async next(t=this.steps){const i=this.component.swiperGetAllChildrenElements().length;let s=this.index+t;return s>=i&&(s=i-1),this.goTo(s)}async updateIndex(t=this.index){this.index!==t&&(this.goTo(t),this.index=t,this.component.swiperOnChange(this.index))}async goTo(t=this.index){if(this.active){const i=await this.buildSlide(t);return i&&(await this.animate(i.transformActive,!0)||this.index!==t)&&(this.index=t,this.component.swiperOnChange(this.index)),i}}renderControls(){if(!this.active||this.noNeedForControls||!this.component.hasAnimated)return"";const i=f[this.component.language].left,s=f[this.component.language].right;switch(this.controls){case"small":return t(g,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"large":return t(p,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,areControlsHidden:!this.component.isMobile,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"dots":return t(w,{value:this.index,items:this.getAllControlItems(),containerId:this.containerId,onControlChange:t=>this.onControlChange(t.value)});default:return""}}getAllControlItems(){return this.component.swiperGetAllChildrenElements().map(((t,i)=>({value:i,label:t.label})))}lastIndex(){return this.component.swiperGetAllChildrenElements().length-1}hasShadow(){return!this.component.inverted&&("auto"===this.itemsPerView||this.itemsPerView>1)}async notifyChangeInternal(){const t=await this.buildSlide(this.index);t&&this.animate(t.transformActive,!1)}async buildSlide(t){const i=this.component.swiperGetAllChildrenElements(),s=void 0===t?this.lastIndex():t;if(i.length>s&&s>=0){const t={none:0,normal:16,medium:24}[this.gapSpace],e=i.filter(((t,i)=>i<s+1)).reduce(((i,s)=>i+u(s)+t),0),n=i.filter(((t,i)=>i<s)).reduce(((i,s)=>i+u(s)+t),0);return{el:i[s],transformNext:e,transformActive:n,isFirst:0===s,isLast:s===this.lastIndex(),total:this.lastIndex()+1,index:s}}}async animate(t=0,i=!0){return new Promise((s=>{void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.currentRaf=h((async()=>{if(this.containerEl&&this.innerEl){const e=await this.buildSlide();if(e){const n=e.transformNext||0,h=this.innerEl.clientWidth||0;if(0===n||0===h)return s(!1);let r=n-h;3===this.itemsPerView&&(r=n-h-1);const o=r<=t,a=0===t||r<=2;a&&(this.index=0);const l="small"===this.controls,c="large"===this.controls;this.noNeedForControls=n<=h;let d=this.noNeedForControls?0:o?r:t;a||this.noNeedForControls||!(l||c&&!this.component.isMobile)||(d-=o?0:c?56:48),this.containerEl.style.transitionDuration=i?"0.6s":"0",this.containerEl.style.transform=`translate3d(-${d}px, 0px, 0px)`;const u=d!==this.previousTransformValue;return this.previousTransformValue=d,this.isLastSlideVisible=o,this.borderEl&&(this.borderEl.style.transitionDuration=i?"0.6s":"0",this.borderEl.style.transform=`translate3d(${d}px, 0px, 0px)`),this.component.hasAnimated=!0,s(!!u)}}}))}))}}let m=0;export{v as S,b as a,d as g,l as t}
1
+ import{h as t}from"./p-2ccbe55a.js";import{j as i,k as s,l as e,r as n,o as h}from"./p-a255c9b3.js";import{B as r}from"./p-ae86d0a0.js";import{s as o}from"./p-79f6f58b.js";import{j as a}from"./p-dc98854c.js";const l=t=>"string"==typeof t?t.replace(/([a-z])([0-9])/g,"$1-$2").replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/[\s_]+/g,"-").toLowerCase():"",c=t=>parseInt(t.slice(0,-2),10),d=(t,i=16)=>{if("undefined"==typeof window||void 0===t)return{top:i,right:i,bottom:i,left:i};const s=window.getComputedStyle(t);return{top:c(s.getPropertyValue("padding-top")),right:c(s.getPropertyValue("padding-right")),bottom:c(s.getPropertyValue("padding-bottom")),left:c(s.getPropertyValue("padding-left"))}},u=t=>{if("undefined"==typeof window)return t.clientWidth;const i=window.getComputedStyle(t),s=i.getPropertyValue("box-sizing"),e=c(i.getPropertyValue("width"));if("border-box"===s)return e;const n=c(i.getPropertyValue("padding-right"));return c(i.getPropertyValue("padding-left"))+e+n},b=t=>{const i=Array.from(t.children);let s=0;for(const t of i)s=Math.max(s,t.offsetLeft+t.offsetWidth);return s},f={de:{left:"vorherige",right:"nächste"},en:{left:"previous",right:"next"},fr:{left:"précédent",right:"suivant"},it:{left:"precedente",right:"successivo"},nl:{left:"vorige",right:"volgende"},es:{left:"anterior",right:"siguiente"},pl:{left:"poprzedni",right:"następny"},pt:{left:"anterior",right:"próximo"},sv:{left:"föregående",right:"nästa"},fi:{left:"edellinen",right:"seuraava"}},g=({isFirst:i,isLast:s,inverted:e,leftControlTitle:n,rightControlTitle:h,containerId:o,onNextClick:a,onPreviousClick:l})=>{const c=r.block("swiper").element("controls"),d=c.element("button");return t("div",{class:Object.assign(Object.assign({},c.class()),c.modifier("small").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("left").class()),d.modifier("hidden").class(i)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>l(),disabled:i,tabindex:"-1","data-testid":"bal-carousel-control-left",title:n}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier("right").class()),d.modifier("hidden").class(s)),"aria-controls":o,square:!0,size:"small",icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>a(),disabled:s,tabindex:"-1","data-testid":"bal-carousel-control-right",title:h}))},p=({isFirst:i,isLast:s,inverted:e,areControlsHidden:n,onNextClick:h,onPreviousClick:o,containerId:a,leftControlTitle:l,rightControlTitle:c})=>{const d=r.block("swiper").element("controls"),u=d.element("button");return t("div",{"data-mutation":"false",class:Object.assign(Object.assign({},d.class()),d.modifier("large").class())},t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("left").class()),u.modifier("hidden").class(i&&n)),"aria-controls":a,square:!0,icon:"nav-go-left",rounded:!0,inverted:e,onClick:()=>o(),tabindex:-1,disabled:i,"aria-hidden":i&&n?"true":null,"data-testid":"bal-carousel-control-left",title:l}),t("bal-button",{class:Object.assign(Object.assign(Object.assign({},u.class()),u.modifier("right").class()),u.modifier("hidden").class(s&&n)),"aria-controls":a,square:!0,icon:"nav-go-right",rounded:!0,inverted:e,onClick:()=>h(),tabindex:-1,disabled:s,"aria-hidden":s&&n?"true":null,"data-testid":"bal-carousel-control-right",title:c}))},w=({value:i,items:s,containerId:e,onControlChange:n})=>{const h=r.block("swiper").element("controls");return t("div",{class:Object.assign(Object.assign({},h.class()),h.modifier("dots").class())},t("bal-pagination",{"aria-controls":e,interface:"small",value:i+1,totalPages:s.length,onBalChange:t=>{let i=t.detail-1;i<0&&(i=0),i>=s.length&&(i=s.length-1),n(s[i])}}))};class v{constructor(){this.previousTransformValue=0,this.active=!0,this.id="bal-swiper-"+m++,this.containerId=`${this.id}-container`,this.index=0,this.steps=1,this.noNeedForControls=!0,this.isLastSlideVisible=!1,this.itemsPerView=1,this.controls="none",this.gapSpace="none",this.keyboardMode=!1,this.shiftMode=!1,this.isInsideContainer=!1,this.focusByKey=!1,this.pointerDown=()=>{this.keyboardMode=!1,this.shiftMode=!1,this.focusByKey=!1,this.isInsideContainer=!1},this.listenToKeyDown=t=>{this.keyboardMode=a(t),this.shiftMode=t.shiftKey,this.focusByKey=!1,this.isInsideContainer=i(this.containerEl,t.target),this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.isInsideContainer&&this.keyboardMode&&(this.shiftMode&&this.index>0?(this.focusByKey=!0,this.focusPreviousItem(t)):!this.shiftMode&&this.index<this.lastIndex()&&(this.focusByKey=!0,this.focusNextItem(t)))},this.updateFocus=()=>{this.active&&"dots"!==this.controls&&"tabs"!==this.controls&&this.focusByKey&&!this.isInsideContainer&&this.focusItem(this.shiftMode?this.lastIndex():0)},this.cssBlock=r.block("swiper"),this.cssSwiper=()=>Object.assign({},this.cssBlock.class(this.active)),this.cssInnerSwiper=()=>Object.assign(Object.assign(Object.assign(Object.assign({},this.cssBlock.element("inner").class(this.active)),this.cssBlock.element("inner").modifier(`items-per-view-${this.itemsPerView}`).class(this.active)),this.cssBlock.element("inner").modifier("shadow-left").class(this.hasShadowLeft())),this.cssBlock.element("inner").modifier("shadow-right").class(this.hasShadowRight())),this.cssSwiperContainer=()=>Object.assign(Object.assign({},this.cssBlock.element("container").class(this.active)),this.cssBlock.element("container").modifier(`gap-${this.gapSpace}`).class(this.active)),this.notifyChange=s((()=>this.notifyChangeInternal()),100),this.onControlChange=t=>{t!==this.index&&(t>this.index?this.next(t-this.index):this.previous(this.index-t))},this.onPreviousButtonClick=()=>this.previous(),this.onNextButtonClick=()=>this.next()}connectedCallback(t){this.component=t,e(window,"keydown",this.listenToKeyDown),e(this.component.el,"focusin",this.updateFocus),e(window,"touchstart",this.pointerDown),e(window,"mousedown",this.pointerDown)}disconnectedCallback(){n(window,"keydown",this.listenToKeyDown),n(this.component.el,"focusin",this.updateFocus),n(window,"touchstart",this.pointerDown),n(window,"mousedown",this.pointerDown)}isActive(){return this.active}async activate(){this.active=!0}async disable(){this.active=!1}async focusItem(t){const i=await this.goTo(t);i&&i.el&&await this.setFocusToEl(i.el)}async focusNextItem(t){const i=await this.next(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async focusPreviousItem(t){const i=await this.previous(1);i&&i.el&&(o(t),await this.setFocusToEl(i.el))}async setFocusToEl(t){t.setFocus&&await t.setFocus()}isFirst(){return 0===this.index}hasShadowLeft(){return this.hasShadow()&&0!==this.index&&this.active}hasShadowRight(){return this.hasShadow()&&!this.isLastSlideVisible&&this.active}isLast(){return this.isLastSlideVisible}async previous(t=this.steps){let i=this.index-t;return i<0&&(i=0),this.goTo(i)}async next(t=this.steps){const i=this.component.swiperGetAllChildrenElements().length;let s=this.index+t;return s>=i&&(s=i-1),this.goTo(s)}async updateIndex(t=this.index){this.index!==t&&(this.goTo(t),this.index=t,this.component.swiperOnChange(this.index))}async goTo(t=this.index){if(this.active){const i=await this.buildSlide(t);return i&&(await this.animate(i.transformActive,!0)||this.index!==t)&&(this.index=t,this.component.swiperOnChange(this.index)),i}}renderControls(){if(!this.active||this.noNeedForControls||!this.component.hasAnimated)return"";const i=f[this.component.language].left,s=f[this.component.language].right;switch(this.controls){case"small":return t(g,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"large":return t(p,{isFirst:this.isFirst(),isLast:this.isLast(),inverted:this.component.inverted,areControlsHidden:!this.component.isMobile,leftControlTitle:i,rightControlTitle:s,containerId:this.containerId,onNextClick:()=>this.onNextButtonClick(),onPreviousClick:()=>this.onPreviousButtonClick()});case"dots":return t(w,{value:this.index,items:this.getAllControlItems(),containerId:this.containerId,onControlChange:t=>this.onControlChange(t.value)});default:return""}}getAllControlItems(){return this.component.swiperGetAllChildrenElements().map(((t,i)=>({value:i,label:t.label})))}lastIndex(){return this.component.swiperGetAllChildrenElements().length-1}hasShadow(){return!this.component.inverted&&("auto"===this.itemsPerView||this.itemsPerView>1)}async notifyChangeInternal(){const t=await this.buildSlide(this.index);t&&this.animate(t.transformActive,!1)}async buildSlide(t){const i=this.component.swiperGetAllChildrenElements(),s=void 0===t?this.lastIndex():t;if(i.length>s&&s>=0){const t={none:0,normal:16,medium:24}[this.gapSpace],e=i.filter(((t,i)=>i<s+1)).reduce(((i,s)=>i+u(s)+t),0),n=i.filter(((t,i)=>i<s)).reduce(((i,s)=>i+u(s)+t),0);return{el:i[s],transformNext:e,transformActive:n,isFirst:0===s,isLast:s===this.lastIndex(),total:this.lastIndex()+1,index:s}}}async animate(t=0,i=!0){return new Promise((s=>{void 0!==this.currentRaf&&cancelAnimationFrame(this.currentRaf),this.currentRaf=h((async()=>{if(this.containerEl&&this.innerEl){const e=await this.buildSlide();if(e){const n=e.transformNext||0,h=this.innerEl.clientWidth||0;if(0===n||0===h)return s(!1);let r=n-h;3===this.itemsPerView&&(r=n-h-1);const o=r<=t,a=0===t||r<=2;a&&(this.index=0);const l="small"===this.controls,c="large"===this.controls;this.noNeedForControls=n<=h;let d=this.noNeedForControls?0:o?r:t;a||this.noNeedForControls||!(l||c&&!this.component.isMobile)||(d-=o?0:c?56:48),this.containerEl.style.transitionDuration=i?"0.6s":"0",this.containerEl.style.transform=`translate3d(-${d}px, 0px, 0px)`;const u=d!==this.previousTransformValue;return this.previousTransformValue=d,this.isLastSlideVisible=o,this.borderEl&&(this.borderEl.style.transitionDuration=i?"0.6s":"0",this.borderEl.style.transform=`translate3d(${d}px, 0px, 0px)`),this.component.hasAnimated=!0,s(!!u)}}}))}))}}let m=0;export{v as S,b as a,d as g,l as t}
@@ -1 +1 @@
1
- var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function f(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?e(t.value):r(t.value).then(f,o)}u((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,f;return f={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function o(t){return function(i){return u([t,i])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(f&&(f=0,o[0]&&(e=0)),e)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;r=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-2880433e.system.js","./p-2f1fbb48.system.js","./p-5cd2674f.system.js","./p-7720b262.system.js","./p-980e4b57.system.js","./p-db0895e2.system.js","./p-907368ff.system.js","./p-4c0bad70.system.js","./p-23bdd8dc.system.js","./p-2da669b4.system.js","./p-0f37a65c.system.js","./p-130a16ee.system.js","./p-ef3bfa9f.system.js","./p-a1f6e944.system.js"],(function(t){"use strict";var i,e,n,r,s,f,o,u,a,c,h,l,b,d,p,v,w,y,m,g,j;return{setters:[function(t){i=t.r;e=t.c;n=t.h;r=t.H;s=t.g},function(t){f=t._;o=t.a},function(t){u=t.c},function(t){a=t.f},function(t){c=t.n;h=t.p},function(t){l=t.i},function(t){b=t.s;d=t.h},function(t){p=t.B},function(t){v=t.d},function(t){w=t.i},function(t){y=t.L},function(t){m=t.a},function(t){g=t.d},function(t){j=t.L},function(){},function(){}],execute:function(){var _={exports:{}};(function(t){(function(i){var e,n=20,r=1,s=1e6,f=1e6,o=-7,u=21,a=false,c="[big.js] ",h=c+"Invalid ",l=h+"decimal places",b=h+"rounding mode",d=c+"Division by zero",p={},v=void 0,w=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function y(){function t(i){var e=this;if(!(e instanceof t))return i===v?y():new t(i);if(i instanceof t){e.s=i.s;e.e=i.e;e.c=i.c.slice()}else{if(typeof i!=="string"){if(t.strict===true&&typeof i!=="bigint"){throw TypeError(h+"value")}i=i===0&&1/i<0?"-0":String(i)}m(e,i)}e.constructor=t}t.prototype=p;t.DP=n;t.RM=r;t.NE=o;t.PE=u;t.strict=a;t.roundDown=0;t.roundHalfUp=1;t.roundHalfEven=2;t.roundUp=3;return t}function m(t,i){var e,n,r;if(!w.test(i)){throw Error(h+"number")}t.s=i.charAt(0)=="-"?(i=i.slice(1),-1):1;if((e=i.indexOf("."))>-1)i=i.replace(".","");if((n=i.search(/e/i))>0){if(e<0)e=n;e+=+i.slice(n+1);i=i.substring(0,n)}else if(e<0){e=i.length}r=i.length;for(n=0;n<r&&i.charAt(n)=="0";)++n;if(n==r){t.c=[t.e=0]}else{for(;r>0&&i.charAt(--r)=="0";);t.e=e-n-1;t.c=[];for(e=0;n<=r;)t.c[e++]=+i.charAt(n++)}return t}function g(t,i,e,n){var r=t.c;if(e===v)e=t.constructor.RM;if(e!==0&&e!==1&&e!==2&&e!==3){throw Error(b)}if(i<1){n=e===3&&(n||!!r[0])||i===0&&(e===1&&r[0]>=5||e===2&&(r[0]>5||r[0]===5&&(n||r[1]!==v)));r.length=1;if(n){t.e=t.e-i+1;r[0]=1}else{r[0]=t.e=0}}else if(i<r.length){n=e===1&&r[i]>=5||e===2&&(r[i]>5||r[i]===5&&(n||r[i+1]!==v||r[i-1]&1))||e===3&&(n||!!r[0]);r.length=i;if(n){for(;++r[--i]>9;){r[i]=0;if(i===0){++t.e;r.unshift(1);break}}}for(i=r.length;!r[--i];)r.pop()}return t}function j(t,i,e){var n=t.e,r=t.c.join(""),s=r.length;if(i){r=r.charAt(0)+(s>1?"."+r.slice(1):"")+(n<0?"e":"e+")+n}else if(n<0){for(;++n;)r="0"+r;r="0."+r}else if(n>0){if(++n>s){for(n-=s;n--;)r+="0"}else if(n<s){r=r.slice(0,n)+"."+r.slice(n)}}else if(s>1){r=r.charAt(0)+"."+r.slice(1)}return t.s<0&&e?"-"+r:r}p.abs=function(){var t=new this.constructor(this);t.s=1;return t};p.cmp=function(t){var i,e=this,n=e.c,r=(t=new e.constructor(t)).c,s=e.s,f=t.s,o=e.e,u=t.e;if(!n[0]||!r[0])return!n[0]?!r[0]?0:-f:s;if(s!=f)return s;i=s<0;if(o!=u)return o>u^i?1:-1;f=(o=n.length)<(u=r.length)?o:u;for(s=-1;++s<f;){if(n[s]!=r[s])return n[s]>r[s]^i?1:-1}return o==u?0:o>u^i?1:-1};p.div=function(t){var i=this,e=i.constructor,n=i.c,r=(t=new e(t)).c,f=i.s==t.s?1:-1,o=e.DP;if(o!==~~o||o<0||o>s){throw Error(l)}if(!r[0]){throw Error(d)}if(!n[0]){t.s=f;t.c=[t.e=0];return t}var u,a,c,h,b,p=r.slice(),w=u=r.length,y=n.length,m=n.slice(0,u),j=m.length,_=t,k=_.c=[],x=0,E=o+(_.e=i.e-t.e)+1;_.s=f;f=E<0?0:E;p.unshift(0);for(;j++<u;)m.push(0);do{for(c=0;c<10;c++){if(u!=(j=m.length)){h=u>j?1:-1}else{for(b=-1,h=0;++b<u;){if(r[b]!=m[b]){h=r[b]>m[b]?1:-1;break}}}if(h<0){for(a=j==u?r:p;j;){if(m[--j]<a[j]){b=j;for(;b&&!m[--b];)m[b]=9;--m[b];m[j]+=10}m[j]-=a[j]}for(;!m[0];)m.shift()}else{break}}k[x++]=h?c:++c;if(m[0]&&h)m[j]=n[w]||0;else m=[n[w]]}while((w++<y||m[0]!==v)&&f--);if(!k[0]&&x!=1){k.shift();_.e--;E--}if(x>E)g(_,E,e.RM,m[0]!==v);return _};p.eq=function(t){return this.cmp(t)===0};p.gt=function(t){return this.cmp(t)>0};p.gte=function(t){return this.cmp(t)>-1};p.lt=function(t){return this.cmp(t)<0};p.lte=function(t){return this.cmp(t)<1};p.minus=p.sub=function(t){var i,e,n,r,s=this,f=s.constructor,o=s.s,u=(t=new f(t)).s;if(o!=u){t.s=-u;return s.plus(t)}var a=s.c.slice(),c=s.e,h=t.c,l=t.e;if(!a[0]||!h[0]){if(h[0]){t.s=-u}else if(a[0]){t=new f(s)}else{t.s=1}return t}if(o=c-l){if(r=o<0){o=-o;n=a}else{l=c;n=h}n.reverse();for(u=o;u--;)n.push(0);n.reverse()}else{e=((r=a.length<h.length)?a:h).length;for(o=u=0;u<e;u++){if(a[u]!=h[u]){r=a[u]<h[u];break}}}if(r){n=a;a=h;h=n;t.s=-t.s}if((u=(e=h.length)-(i=a.length))>0)for(;u--;)a[i++]=0;for(u=i;e>o;){if(a[--e]<h[e]){for(i=e;i&&!a[--i];)a[i]=9;--a[i];a[e]+=10}a[e]-=h[e]}for(;a[--u]===0;)a.pop();for(;a[0]===0;){a.shift();--l}if(!a[0]){t.s=1;a=[l=0]}t.c=a;t.e=l;return t};p.mod=function(t){var i,e=this,n=e.constructor,r=e.s,s=(t=new n(t)).s;if(!t.c[0]){throw Error(d)}e.s=t.s=1;i=t.cmp(e)==1;e.s=r;t.s=s;if(i)return new n(e);r=n.DP;s=n.RM;n.DP=n.RM=0;e=e.div(t);n.DP=r;n.RM=s;return this.minus(e.times(t))};p.neg=function(){var t=new this.constructor(this);t.s=-t.s;return t};p.plus=p.add=function(t){var i,e,n,r=this,s=r.constructor;t=new s(t);if(r.s!=t.s){t.s=-t.s;return r.minus(t)}var f=r.e,o=r.c,u=t.e,a=t.c;if(!o[0]||!a[0]){if(!a[0]){if(o[0]){t=new s(r)}else{t.s=r.s}}return t}o=o.slice();if(i=f-u){if(i>0){u=f;n=a}else{i=-i;n=o}n.reverse();for(;i--;)n.push(0);n.reverse()}if(o.length-a.length<0){n=a;a=o;o=n}i=a.length;for(e=0;i;o[i]%=10)e=(o[--i]=o[i]+a[i]+e)/10|0;if(e){o.unshift(e);++u}for(i=o.length;o[--i]===0;)o.pop();t.c=o;t.e=u;return t};p.pow=function(t){var i=this,e=new i.constructor("1"),n=e,r=t<0;if(t!==~~t||t<-f||t>f){throw Error(h+"exponent")}if(r)t=-t;for(;;){if(t&1)n=n.times(i);t>>=1;if(!t)break;i=i.times(i)}return r?e.div(n):n};p.prec=function(t,i){if(t!==~~t||t<1||t>s){throw Error(h+"precision")}return g(new this.constructor(this),t,i)};p.round=function(t,i){if(t===v)t=0;else if(t!==~~t||t<-s||t>s){throw Error(l)}return g(new this.constructor(this),t+this.e+1,i)};p.sqrt=function(){var t,i,e,n=this,r=n.constructor,s=n.s,f=n.e,o=new r("0.5");if(!n.c[0])return new r(n);if(s<0){throw Error(c+"No square root")}s=Math.sqrt(n+"");if(s===0||s===1/0){i=n.c.join("");if(!(i.length+f&1))i+="0";s=Math.sqrt(i);f=((f+1)/2|0)-(f<0||f&1);t=new r((s==1/0?"5e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+f)}else{t=new r(s+"")}f=t.e+(r.DP+=4);do{e=t;t=o.times(e.plus(n.div(e)))}while(e.c.slice(0,f).join("")!==t.c.slice(0,f).join(""));return g(t,(r.DP-=4)+t.e+1,r.RM)};p.times=p.mul=function(t){var i,e=this,n=e.constructor,r=e.c,s=(t=new n(t)).c,f=r.length,o=s.length,u=e.e,a=t.e;t.s=e.s==t.s?1:-1;if(!r[0]||!s[0]){t.c=[t.e=0];return t}t.e=u+a;if(f<o){i=r;r=s;s=i;a=f;f=o;o=a}for(i=new Array(a=f+o);a--;)i[a]=0;for(u=o;u--;){o=0;for(a=f+u;a>u;){o=i[a]+s[u]*r[a-u-1]+o;i[a--]=o%10;o=o/10|0}i[a]=o}if(o)++t.e;else i.shift();for(u=i.length;!i[--u];)i.pop();t.c=i;return t};p.toExponential=function(t,i){var e=this,n=e.c[0];if(t!==v){if(t!==~~t||t<0||t>s){throw Error(l)}e=g(new e.constructor(e),++t,i);for(;e.c.length<t;)e.c.push(0)}return j(e,true,!!n)};p.toFixed=function(t,i){var e=this,n=e.c[0];if(t!==v){if(t!==~~t||t<0||t>s){throw Error(l)}e=g(new e.constructor(e),t+e.e+1,i);for(t=t+e.e+1;e.c.length<t;)e.c.push(0)}return j(e,false,!!n)};p.toJSON=p.toString=function(){var t=this,i=t.constructor;return j(t,t.e<=i.NE||t.e>=i.PE,!!t.c[0])};p.toNumber=function(){var t=Number(j(this,true,true));if(this.constructor.strict===true&&!this.eq(t.toString())){throw Error(c+"Imprecise conversion")}return t};p.toPrecision=function(t,i){var e=this,n=e.constructor,r=e.c[0];if(t!==v){if(t!==~~t||t<1||t>s){throw Error(h+"precision")}e=g(new n(e),t,i);for(;e.c.length<t;)e.c.push(0)}return j(e,t<=e.e||e.e<=n.NE||e.e>=n.PE,!!r)};p.valueOf=function(){var t=this,i=t.constructor;if(i.strict===true){throw Error(c+"valueOf disallowed")}return j(t,t.e<=i.NE||t.e>=i.PE,true)};e=y();e["default"]=e.Big=e;if(t.exports){t.exports=e}else{i.Big=e}})(u)})(_);var k=_.exports;var x=".bal-input-stepper{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:static;display:inline-block}.bal-input-stepper__inner{display:-ms-flexbox;display:flex;gap:.25rem;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-input-stepper__inner__text{min-width:3rem;text-align:center}.bal-input-stepper__input{position:absolute;width:0;height:0;left:0;top:0;margin:0;padding:0;opacity:0;outline:0}";var E=x;var O=t("bal_input_stepper",function(){function t(t){var n=this;i(this,t);this.balChange=e(this,"balChange",7);this.balInput=e(this,"balInput",7);this.balIncrease=e(this,"balIncrease",7);this.balDecrease=e(this,"balDecrease",7);this.balFocus=e(this,"balFocus",7);this.balBlur=e(this,"balBlur",7);this.inputId="bal-input-stepper-".concat(B++);this.inheritedAttributes={};this.decreaseHasFocus=false;this.increaseHasFocus=false;this.initialValue=0;this.onFocusDecrease=function(t){n.decreaseHasFocus=true;n.onFocus(t)};this.onFocusIncrease=function(t){n.increaseHasFocus=true;n.onFocus(t)};this.onFocus=function(t){b(t);n.balFocus.emit(t.detail)};this.onBlurDecrease=function(t){b(t);n.decreaseHasFocus=false;c((function(){return n.onBlur(t.detail)}))};this.onBlurIncrease=function(t){b(t);n.increaseHasFocus=false;c((function(){return n.onBlur(t.detail)}))};this.onBlur=function(t){if(!(n.decreaseHasFocus||n.increaseHasFocus)){n.balBlur.emit(t)}};this.focused=false;this.language=g.language;this.region=g.region;this.ariaForm=v;this.name=this.inputId;this.min=0;this.max=10;this.steps=1;this.disabled=false;this.readonly=false;this.invalid=false;this.debounce=0;this.value=0;this.autoInvalidOff=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=h(this.balChange,this.debounce)};t.prototype.listenOnClick=function(t){d(this,t)};t.prototype.resetHandler=function(t){var i=t.target;if(i===null||i===void 0?void 0:i.contains(this.el)){this.value=this.initialValue}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value};t.prototype.componentWillLoad=function(){this.inheritedAttributes=l(this.el,["aria-label","tabindex","title"])};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.language=t.language;this.region=t.region;return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.increase=function(){if(!this.disabled&&!this.readonly){var t=new k(this.value).plus(this.steps).toNumber();if(t<=this.max){this.value=t;this.balInput.emit(t);this.balChange.emit(t);this.balIncrease.emit(t)}}};t.prototype.decrease=function(){if(!this.disabled&&!this.readonly){var t=new k(this.value).minus(this.steps).toNumber();if(t>=this.min){this.value=t;this.balInput.emit(t);this.balChange.emit(t);this.balDecrease.emit(t)}}};t.prototype.render=function(){var t=this;var i=p.block("input-stepper");var e=i.element("input");var s=i.element("inner");var f=s.element("text");var o=w[this.language].increase;var u=w[this.language].decrease;return n(r,{key:"d8a4b9dfba5e8847c27b9926ec1c27197b50e99e","aria-disabled":m(this.disabled),"aria-focused":this.focused?"true":null,class:Object.assign({},i.class())},n("div",{key:"b3969b7bbc1736420c121ba5badfd8687d92a45e",class:Object.assign({},s.class())},n("bal-button",{key:"f4913edbc509bf1ce858dc2c7cdb5454ec1882d3",aria:{title:u,label:u,controls:this.ariaForm.controlId||this.inputId},size:"small",square:true,"data-testid":"bal-input-stepper-decrease",outlined:!this.invalid,icon:"minus",color:this.invalid?"danger":"info",disabled:this.disabled||this.readonly||this.value<=this.min,onClick:function(i){return t.decrease()},onBalFocus:function(i){return t.onFocusDecrease(i)},onBalBlur:function(i){return t.onBlurDecrease(i)}}),n("bal-text",{key:"c5edab51b0cf99141a05b87ce7b20bfb1322e623",space:"none",color:this.disabled||this.readonly?"grey":this.invalid?"danger":"",bold:true,class:Object.assign({},f.class()),"data-testid":"bal-input-stepper-text"},a(this.value)),n("bal-button",{key:"ff514497914327d19e24cf31fe866946df873b26",aria:{title:o,label:o,controls:this.ariaForm.controlId||this.inputId},size:"small","data-testid":"bal-input-stepper-increase",square:true,outlined:!this.invalid,icon:"plus",color:this.invalid?"danger":"info",disabled:this.disabled||this.readonly||this.value>=this.max,onClick:function(i){return t.increase()},onBalFocus:function(i){return t.onFocusIncrease(i)},onBalBlur:function(i){return t.onBlurIncrease(i)}})),n("input",Object.assign({key:"312698925066f834d8c895b1ad8edbbe8d5fd84c",class:Object.assign({},e.class()),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":m(this.disabled),"data-testid":"bal-input-stepper",type:"text",value:this.value,name:this.name,tabindex:"-1",ref:function(i){return t.nativeInput=i},readonly:this.readonly,disabled:this.disabled},this.inheritedAttributes)))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"]}},enumerable:false,configurable:true});return t}());f([y("bal-input-stepper"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],O.prototype,"createLogger",null);f([j(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],O.prototype,"configChanged",null);var B=0;O.style=E}}}));
1
+ var __awaiter=this&&this.__awaiter||function(t,i,e,n){function r(t){return t instanceof e?t:new e((function(i){i(t)}))}return new(e||(e=Promise))((function(e,s){function f(t){try{u(n.next(t))}catch(t){s(t)}}function o(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?e(t.value):r(t.value).then(f,o)}u((n=n.apply(t,i||[])).next())}))};var __generator=this&&this.__generator||function(t,i){var e={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,r,s,f;return f={next:o(0),throw:o(1),return:o(2)},typeof Symbol==="function"&&(f[Symbol.iterator]=function(){return this}),f;function o(t){return function(i){return u([t,i])}}function u(o){if(n)throw new TypeError("Generator is already executing.");while(f&&(f=0,o[0]&&(e=0)),e)try{if(n=1,r&&(s=o[0]&2?r["return"]:o[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,o[1])).done)return s;if(r=0,s)o=[o[0]&2,s.value];switch(o[0]){case 0:case 1:s=o;break;case 4:e.label++;return{value:o[1],done:false};case 5:e.label++;r=o[1];o=[0];continue;case 7:o=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(o[0]===6||o[0]===2)){e=0;continue}if(o[0]===3&&(!s||o[1]>s[0]&&o[1]<s[3])){e.label=o[1];break}if(o[0]===6&&e.label<s[1]){e.label=s[1];s=o;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(o);break}if(s[2])e.ops.pop();e.trys.pop();continue}o=i.call(t,e)}catch(t){o=[6,t];r=0}finally{n=s=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};System.register(["./p-7961e095.system.js","./p-6dbef894.system.js","./p-2880433e.system.js","./p-5f32b4f3.system.js","./p-863f4e4e.system.js","./p-7720b262.system.js","./p-c43a56b7.system.js","./p-db0895e2.system.js","./p-907368ff.system.js","./p-4c0bad70.system.js","./p-23bdd8dc.system.js","./p-2da669b4.system.js","./p-6b690346.system.js","./p-fa5198a0.system.js","./p-ade9437f.system.js","./p-a1f6e944.system.js"],(function(t){"use strict";var i,e,n,r,s,f,o,u,a,c,h,l,b,d,p,v,w,y,m,g,j;return{setters:[function(t){i=t.r;e=t.c;n=t.h;r=t.H;s=t.g},function(t){f=t._;o=t.a},function(t){u=t.c},function(t){a=t.f},function(t){c=t.n;h=t.p},function(t){l=t.i},function(t){b=t.s;d=t.h},function(t){p=t.B},function(t){v=t.d},function(t){w=t.i},function(t){y=t.L},function(t){m=t.a},function(t){g=t.d},function(t){j=t.L},function(){},function(){}],execute:function(){var _={exports:{}};(function(t){(function(i){var e,n=20,r=1,s=1e6,f=1e6,o=-7,u=21,a=false,c="[big.js] ",h=c+"Invalid ",l=h+"decimal places",b=h+"rounding mode",d=c+"Division by zero",p={},v=void 0,w=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function y(){function t(i){var e=this;if(!(e instanceof t))return i===v?y():new t(i);if(i instanceof t){e.s=i.s;e.e=i.e;e.c=i.c.slice()}else{if(typeof i!=="string"){if(t.strict===true&&typeof i!=="bigint"){throw TypeError(h+"value")}i=i===0&&1/i<0?"-0":String(i)}m(e,i)}e.constructor=t}t.prototype=p;t.DP=n;t.RM=r;t.NE=o;t.PE=u;t.strict=a;t.roundDown=0;t.roundHalfUp=1;t.roundHalfEven=2;t.roundUp=3;return t}function m(t,i){var e,n,r;if(!w.test(i)){throw Error(h+"number")}t.s=i.charAt(0)=="-"?(i=i.slice(1),-1):1;if((e=i.indexOf("."))>-1)i=i.replace(".","");if((n=i.search(/e/i))>0){if(e<0)e=n;e+=+i.slice(n+1);i=i.substring(0,n)}else if(e<0){e=i.length}r=i.length;for(n=0;n<r&&i.charAt(n)=="0";)++n;if(n==r){t.c=[t.e=0]}else{for(;r>0&&i.charAt(--r)=="0";);t.e=e-n-1;t.c=[];for(e=0;n<=r;)t.c[e++]=+i.charAt(n++)}return t}function g(t,i,e,n){var r=t.c;if(e===v)e=t.constructor.RM;if(e!==0&&e!==1&&e!==2&&e!==3){throw Error(b)}if(i<1){n=e===3&&(n||!!r[0])||i===0&&(e===1&&r[0]>=5||e===2&&(r[0]>5||r[0]===5&&(n||r[1]!==v)));r.length=1;if(n){t.e=t.e-i+1;r[0]=1}else{r[0]=t.e=0}}else if(i<r.length){n=e===1&&r[i]>=5||e===2&&(r[i]>5||r[i]===5&&(n||r[i+1]!==v||r[i-1]&1))||e===3&&(n||!!r[0]);r.length=i;if(n){for(;++r[--i]>9;){r[i]=0;if(i===0){++t.e;r.unshift(1);break}}}for(i=r.length;!r[--i];)r.pop()}return t}function j(t,i,e){var n=t.e,r=t.c.join(""),s=r.length;if(i){r=r.charAt(0)+(s>1?"."+r.slice(1):"")+(n<0?"e":"e+")+n}else if(n<0){for(;++n;)r="0"+r;r="0."+r}else if(n>0){if(++n>s){for(n-=s;n--;)r+="0"}else if(n<s){r=r.slice(0,n)+"."+r.slice(n)}}else if(s>1){r=r.charAt(0)+"."+r.slice(1)}return t.s<0&&e?"-"+r:r}p.abs=function(){var t=new this.constructor(this);t.s=1;return t};p.cmp=function(t){var i,e=this,n=e.c,r=(t=new e.constructor(t)).c,s=e.s,f=t.s,o=e.e,u=t.e;if(!n[0]||!r[0])return!n[0]?!r[0]?0:-f:s;if(s!=f)return s;i=s<0;if(o!=u)return o>u^i?1:-1;f=(o=n.length)<(u=r.length)?o:u;for(s=-1;++s<f;){if(n[s]!=r[s])return n[s]>r[s]^i?1:-1}return o==u?0:o>u^i?1:-1};p.div=function(t){var i=this,e=i.constructor,n=i.c,r=(t=new e(t)).c,f=i.s==t.s?1:-1,o=e.DP;if(o!==~~o||o<0||o>s){throw Error(l)}if(!r[0]){throw Error(d)}if(!n[0]){t.s=f;t.c=[t.e=0];return t}var u,a,c,h,b,p=r.slice(),w=u=r.length,y=n.length,m=n.slice(0,u),j=m.length,_=t,k=_.c=[],x=0,E=o+(_.e=i.e-t.e)+1;_.s=f;f=E<0?0:E;p.unshift(0);for(;j++<u;)m.push(0);do{for(c=0;c<10;c++){if(u!=(j=m.length)){h=u>j?1:-1}else{for(b=-1,h=0;++b<u;){if(r[b]!=m[b]){h=r[b]>m[b]?1:-1;break}}}if(h<0){for(a=j==u?r:p;j;){if(m[--j]<a[j]){b=j;for(;b&&!m[--b];)m[b]=9;--m[b];m[j]+=10}m[j]-=a[j]}for(;!m[0];)m.shift()}else{break}}k[x++]=h?c:++c;if(m[0]&&h)m[j]=n[w]||0;else m=[n[w]]}while((w++<y||m[0]!==v)&&f--);if(!k[0]&&x!=1){k.shift();_.e--;E--}if(x>E)g(_,E,e.RM,m[0]!==v);return _};p.eq=function(t){return this.cmp(t)===0};p.gt=function(t){return this.cmp(t)>0};p.gte=function(t){return this.cmp(t)>-1};p.lt=function(t){return this.cmp(t)<0};p.lte=function(t){return this.cmp(t)<1};p.minus=p.sub=function(t){var i,e,n,r,s=this,f=s.constructor,o=s.s,u=(t=new f(t)).s;if(o!=u){t.s=-u;return s.plus(t)}var a=s.c.slice(),c=s.e,h=t.c,l=t.e;if(!a[0]||!h[0]){if(h[0]){t.s=-u}else if(a[0]){t=new f(s)}else{t.s=1}return t}if(o=c-l){if(r=o<0){o=-o;n=a}else{l=c;n=h}n.reverse();for(u=o;u--;)n.push(0);n.reverse()}else{e=((r=a.length<h.length)?a:h).length;for(o=u=0;u<e;u++){if(a[u]!=h[u]){r=a[u]<h[u];break}}}if(r){n=a;a=h;h=n;t.s=-t.s}if((u=(e=h.length)-(i=a.length))>0)for(;u--;)a[i++]=0;for(u=i;e>o;){if(a[--e]<h[e]){for(i=e;i&&!a[--i];)a[i]=9;--a[i];a[e]+=10}a[e]-=h[e]}for(;a[--u]===0;)a.pop();for(;a[0]===0;){a.shift();--l}if(!a[0]){t.s=1;a=[l=0]}t.c=a;t.e=l;return t};p.mod=function(t){var i,e=this,n=e.constructor,r=e.s,s=(t=new n(t)).s;if(!t.c[0]){throw Error(d)}e.s=t.s=1;i=t.cmp(e)==1;e.s=r;t.s=s;if(i)return new n(e);r=n.DP;s=n.RM;n.DP=n.RM=0;e=e.div(t);n.DP=r;n.RM=s;return this.minus(e.times(t))};p.neg=function(){var t=new this.constructor(this);t.s=-t.s;return t};p.plus=p.add=function(t){var i,e,n,r=this,s=r.constructor;t=new s(t);if(r.s!=t.s){t.s=-t.s;return r.minus(t)}var f=r.e,o=r.c,u=t.e,a=t.c;if(!o[0]||!a[0]){if(!a[0]){if(o[0]){t=new s(r)}else{t.s=r.s}}return t}o=o.slice();if(i=f-u){if(i>0){u=f;n=a}else{i=-i;n=o}n.reverse();for(;i--;)n.push(0);n.reverse()}if(o.length-a.length<0){n=a;a=o;o=n}i=a.length;for(e=0;i;o[i]%=10)e=(o[--i]=o[i]+a[i]+e)/10|0;if(e){o.unshift(e);++u}for(i=o.length;o[--i]===0;)o.pop();t.c=o;t.e=u;return t};p.pow=function(t){var i=this,e=new i.constructor("1"),n=e,r=t<0;if(t!==~~t||t<-f||t>f){throw Error(h+"exponent")}if(r)t=-t;for(;;){if(t&1)n=n.times(i);t>>=1;if(!t)break;i=i.times(i)}return r?e.div(n):n};p.prec=function(t,i){if(t!==~~t||t<1||t>s){throw Error(h+"precision")}return g(new this.constructor(this),t,i)};p.round=function(t,i){if(t===v)t=0;else if(t!==~~t||t<-s||t>s){throw Error(l)}return g(new this.constructor(this),t+this.e+1,i)};p.sqrt=function(){var t,i,e,n=this,r=n.constructor,s=n.s,f=n.e,o=new r("0.5");if(!n.c[0])return new r(n);if(s<0){throw Error(c+"No square root")}s=Math.sqrt(n+"");if(s===0||s===1/0){i=n.c.join("");if(!(i.length+f&1))i+="0";s=Math.sqrt(i);f=((f+1)/2|0)-(f<0||f&1);t=new r((s==1/0?"5e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+f)}else{t=new r(s+"")}f=t.e+(r.DP+=4);do{e=t;t=o.times(e.plus(n.div(e)))}while(e.c.slice(0,f).join("")!==t.c.slice(0,f).join(""));return g(t,(r.DP-=4)+t.e+1,r.RM)};p.times=p.mul=function(t){var i,e=this,n=e.constructor,r=e.c,s=(t=new n(t)).c,f=r.length,o=s.length,u=e.e,a=t.e;t.s=e.s==t.s?1:-1;if(!r[0]||!s[0]){t.c=[t.e=0];return t}t.e=u+a;if(f<o){i=r;r=s;s=i;a=f;f=o;o=a}for(i=new Array(a=f+o);a--;)i[a]=0;for(u=o;u--;){o=0;for(a=f+u;a>u;){o=i[a]+s[u]*r[a-u-1]+o;i[a--]=o%10;o=o/10|0}i[a]=o}if(o)++t.e;else i.shift();for(u=i.length;!i[--u];)i.pop();t.c=i;return t};p.toExponential=function(t,i){var e=this,n=e.c[0];if(t!==v){if(t!==~~t||t<0||t>s){throw Error(l)}e=g(new e.constructor(e),++t,i);for(;e.c.length<t;)e.c.push(0)}return j(e,true,!!n)};p.toFixed=function(t,i){var e=this,n=e.c[0];if(t!==v){if(t!==~~t||t<0||t>s){throw Error(l)}e=g(new e.constructor(e),t+e.e+1,i);for(t=t+e.e+1;e.c.length<t;)e.c.push(0)}return j(e,false,!!n)};p.toJSON=p.toString=function(){var t=this,i=t.constructor;return j(t,t.e<=i.NE||t.e>=i.PE,!!t.c[0])};p.toNumber=function(){var t=Number(j(this,true,true));if(this.constructor.strict===true&&!this.eq(t.toString())){throw Error(c+"Imprecise conversion")}return t};p.toPrecision=function(t,i){var e=this,n=e.constructor,r=e.c[0];if(t!==v){if(t!==~~t||t<1||t>s){throw Error(h+"precision")}e=g(new n(e),t,i);for(;e.c.length<t;)e.c.push(0)}return j(e,t<=e.e||e.e<=n.NE||e.e>=n.PE,!!r)};p.valueOf=function(){var t=this,i=t.constructor;if(i.strict===true){throw Error(c+"valueOf disallowed")}return j(t,t.e<=i.NE||t.e>=i.PE,true)};e=y();e["default"]=e.Big=e;if(t.exports){t.exports=e}else{i.Big=e}})(u)})(_);var k=_.exports;var x=".bal-input-stepper{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:static;display:inline-block}.bal-input-stepper__inner{display:-ms-flexbox;display:flex;gap:.25rem;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center}.bal-input-stepper__inner__text{min-width:3rem;text-align:center}.bal-input-stepper__input{position:absolute;width:0;height:0;left:0;top:0;margin:0;padding:0;opacity:0;outline:0}";var E=x;var O=t("bal_input_stepper",function(){function t(t){var n=this;i(this,t);this.balChange=e(this,"balChange",7);this.balInput=e(this,"balInput",7);this.balIncrease=e(this,"balIncrease",7);this.balDecrease=e(this,"balDecrease",7);this.balFocus=e(this,"balFocus",7);this.balBlur=e(this,"balBlur",7);this.inputId="bal-input-stepper-".concat(B++);this.inheritedAttributes={};this.decreaseHasFocus=false;this.increaseHasFocus=false;this.initialValue=0;this.onFocusDecrease=function(t){n.decreaseHasFocus=true;n.onFocus(t)};this.onFocusIncrease=function(t){n.increaseHasFocus=true;n.onFocus(t)};this.onFocus=function(t){b(t);n.balFocus.emit(t.detail)};this.onBlurDecrease=function(t){b(t);n.decreaseHasFocus=false;c((function(){return n.onBlur(t.detail)}))};this.onBlurIncrease=function(t){b(t);n.increaseHasFocus=false;c((function(){return n.onBlur(t.detail)}))};this.onBlur=function(t){if(!(n.decreaseHasFocus||n.increaseHasFocus)){n.balBlur.emit(t)}};this.focused=false;this.language=g.language;this.region=g.region;this.ariaForm=v;this.name=this.inputId;this.min=0;this.max=10;this.steps=1;this.disabled=false;this.readonly=false;this.invalid=false;this.debounce=0;this.value=0;this.autoInvalidOff=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=h(this.balChange,this.debounce)};t.prototype.listenOnClick=function(t){d(this,t)};t.prototype.resetHandler=function(t){var i=t.target;if(i===null||i===void 0?void 0:i.contains(this.el)){this.value=this.initialValue}};t.prototype.connectedCallback=function(){this.debounceChanged();this.initialValue=this.value};t.prototype.componentWillLoad=function(){this.inheritedAttributes=l(this.el,["aria-label","tabindex","title"])};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.language=t.language;this.region=t.region;return[2]}))}))};t.prototype.getInputElement=function(){return Promise.resolve(this.nativeInput)};t.prototype.setAriaForm=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(i){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.increase=function(){if(!this.disabled&&!this.readonly){var t=new k(this.value).plus(this.steps).toNumber();if(t<=this.max){this.value=t;this.balInput.emit(t);this.balChange.emit(t);this.balIncrease.emit(t)}}};t.prototype.decrease=function(){if(!this.disabled&&!this.readonly){var t=new k(this.value).minus(this.steps).toNumber();if(t>=this.min){this.value=t;this.balInput.emit(t);this.balChange.emit(t);this.balDecrease.emit(t)}}};t.prototype.render=function(){var t=this;var i=p.block("input-stepper");var e=i.element("input");var s=i.element("inner");var f=s.element("text");var o=w[this.language].increase;var u=w[this.language].decrease;return n(r,{key:"d8a4b9dfba5e8847c27b9926ec1c27197b50e99e","aria-disabled":m(this.disabled),"aria-focused":this.focused?"true":null,class:Object.assign({},i.class())},n("div",{key:"b3969b7bbc1736420c121ba5badfd8687d92a45e",class:Object.assign({},s.class())},n("bal-button",{key:"f4913edbc509bf1ce858dc2c7cdb5454ec1882d3",aria:{title:u,label:u,controls:this.ariaForm.controlId||this.inputId},size:"small",square:true,"data-testid":"bal-input-stepper-decrease",outlined:!this.invalid,icon:"minus",color:this.invalid?"danger":"info",disabled:this.disabled||this.readonly||this.value<=this.min,onClick:function(i){return t.decrease()},onBalFocus:function(i){return t.onFocusDecrease(i)},onBalBlur:function(i){return t.onBlurDecrease(i)}}),n("bal-text",{key:"c5edab51b0cf99141a05b87ce7b20bfb1322e623",space:"none",color:this.disabled||this.readonly?"grey":this.invalid?"danger":"",bold:true,class:Object.assign({},f.class()),"data-testid":"bal-input-stepper-text"},a(this.value)),n("bal-button",{key:"ff514497914327d19e24cf31fe866946df873b26",aria:{title:o,label:o,controls:this.ariaForm.controlId||this.inputId},size:"small","data-testid":"bal-input-stepper-increase",square:true,outlined:!this.invalid,icon:"plus",color:this.invalid?"danger":"info",disabled:this.disabled||this.readonly||this.value>=this.max,onClick:function(i){return t.increase()},onBalFocus:function(i){return t.onFocusIncrease(i)},onBalBlur:function(i){return t.onBlurIncrease(i)}})),n("input",Object.assign({key:"312698925066f834d8c895b1ad8edbbe8d5fd84c",class:Object.assign({},e.class()),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":m(this.disabled),"data-testid":"bal-input-stepper",type:"text",value:this.value,name:this.name,tabindex:"-1",ref:function(i){return t.nativeInput=i},readonly:this.readonly,disabled:this.disabled},this.inheritedAttributes)))};Object.defineProperty(t.prototype,"el",{get:function(){return s(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{debounce:["debounceChanged"]}},enumerable:false,configurable:true});return t}());f([y("bal-input-stepper"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],O.prototype,"createLogger",null);f([j(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],O.prototype,"configChanged",null);var B=0;O.style=E}}}));
@@ -0,0 +1 @@
1
+ import{h as t,r as e,c as i,H as a,g as s}from"./p-2ccbe55a.js";import{_ as n,a as l}from"./p-43c9f5e9.js";import{l as r}from"./p-3f01fc8b.js";import{l as o}from"./p-9a3d9e17.js";import{B as h,i as d,d as c}from"./p-875de117.js";import{L as b}from"./p-b77e3348.js";import{b as u,u as m}from"./p-a255c9b3.js";import{B as f}from"./p-ae86d0a0.js";import{d as p}from"./p-ec375851.js";import{L as _}from"./p-20eba37f.js";import{L as g}from"./p-cb0ff37f.js";import{i as y}from"./p-063808d7.js";import{m as v,c as w,d as k}from"./p-79f6f58b.js";import{d as x}from"./p-5eb3fbb9.js";import{a as C}from"./p-8f2e9a7f.js";import{N as j}from"./p-ec1efe3d.js";import{I as D}from"./p-1a158488.js";import"./p-4573c419.js";import"./p-a7be57b6.js";import"./p-a65354df.js";import"./p-c0173fff.js";import"./p-96216bd1.js";import"./p-acf222fd.js";function V(t,e,i){return`${i}-${r(`${e}`,2,"0")}-${r(`${t}`,2,"0")}`}function O(t,e,i,a,s){const n=[],l=function(t,e){if(!(e<1||t<0))return new Date(t,e,0).getDate()}(t,e),d=function(t,e){if(!(e<1||e>12||t<0))return new Date(t,e-1,1)}(t,e);if(void 0!==l&&d){const d=function(){const t=new Date;return`${t.getFullYear()}-${r(`${t.getMonth()+1}`,2,"0")}-${r(`${t.getDate()}`,2,"0")}`}(),c=h.fromISO(i),b=h.fromISO(a),u=t=>!o(s)&&!s(t);for(let i=1;i<=l;i++){const a=V(i,e,t);n.push({day:i,month:e,year:t,isoDate:a,fullDate:h.fromISO(a).toFormat(),today:d===a,disabled:c.isAfter(a)||b.isBefore(a)||u(a)})}}return n}function P(t,e){if(e<1||t<0)return 1;const i=new Date(t,e-1,1).getDay();return 0===i?7:i}function M(t){return["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)?t:"de"}function B(t,e,i,a,s){const n=M(t),l=h.infoMonths({format:"long",locale:n}),r=h.fromISO(i),o=new Date,d=o.getFullYear(),c=o.getMonth()+1;let b=0;if(a&&void 0!==e){const t=h.fromISO(a);t.isValid&&(b=e>t.year?0:t.month||b)}let u=12;if(s&&void 0!==e){const t=h.fromISO(s);t.isValid&&(u=e<t.year?12:t.month||u)}return l.map(((t,i)=>{const a=i+1;return{label:t,value:a,today:a===c&&e===d,selected:a===r.month&&e===r.year,disabled:a<b||a>u}}))}const $=({name:e,isVisible:i,girdHeight:a,list:s,onSelect:n,ref:l})=>{const r=f.block("date-calendar").element("body").element("list");return t("ul",{class:Object.assign(Object.assign(Object.assign({},r.class()),r.modifier(e).class()),r.modifier("visible").class(i)),"aria-hidden":i?"false":"true",style:{height:a-2-8-8+"px"},ref:t=>l?l(t):void 0},s.map((i=>t("li",{key:i.value,id:`${e}-${i.value}`},t("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},r.element("item").class()),r.element("item").modifier("today").class(i.today)),r.element("item").modifier("selected").class(i.selected)),r.element("item").modifier("disabled").class(i.disabled)),disabled:i.disabled,tabIndex:-1,onClick:()=>{i.disabled||n(i)}},i.label)))))},z=({isVisible:e,ref:i,grid:a,weekdays:s,selectedDate:n,firstDayOfWeek:l,onSelectDay:r})=>{const o=f.block("date-calendar").element("body").element("grid");return t("div",{role:"grid",class:Object.assign(Object.assign({},o.class()),o.modifier("visible").class(e)),"aria-hidden":e?"false":"true",ref:t=>i(t)},t("div",{role:"row",class:Object.assign({},o.element("head").class())},s.map((e=>t("span",{key:e.textContent,role:"columnheader","aria-label":e.ariaLabel,title:e.ariaLabel},e.textContent)))),t("div",{role:"row",class:Object.assign({},o.element("body").class()),style:{"--bal-date-first-week-day":`${l}`}},a.map((e=>t("bal-date-calendar-cell",Object.assign({key:e.isoDate},e,{selected:e.isoDate===n,onBalSelectDay:({detail:t})=>r(t)}))))))},F=({language:e,onClickSelectMonthAndYear:i,monthFullNames:a,month:s,year:n,isCalendarVisible:l,isListVisible:r,onClickPreviousMonth:o,onClickNextMonth:h})=>{const c=f.block("date-calendar").element("nav"),b=d[e].nextMonth,u=d[e].previousMonth,m=d[e].selectMonth;return t("div",{class:Object.assign({},c.class())},t("div",{class:Object.assign({},c.modifier("start").class())},t("button",{title:m,"aria-label":m,tabIndex:-1,"data-test":"change-year-month",onClick:i},t("span",null,a[s-1]," ",n),t("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:l}))),t("div",{class:Object.assign({},c.modifier("end").class()),style:{display:r?"none":"flex"}},t("button",{title:u,"aria-label":u,onClick:o,tabIndex:-1,"data-test":"previous-month"},t("bal-icon",{name:"caret-left",color:"primary",size:"small"})),t("button",{title:b,"aria-label":b,onClick:h,tabIndex:-1,"data-test":"next-month"},t("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))},L=class{constructor(t){e(this,t),this.balChange=i(this,"balChange",7),this.oldMin="",this.oldMax="",this.onSelectDay=t=>{this.valueChanged(t,this.selectedDate),this.balChange.emit(this.selectedDate)},this.onClickNextMonth=()=>{let t=this.year,e=this.month+1;e>12&&(e=1,t+=1),this.generateGridByMonthAndYear(e,t)},this.onClickPreviousMonth=()=>{let t=this.year,e=this.month-1;e<1&&(e=12,t-=1),this.generateGridByMonthAndYear(e,t)},this.onClickSelectMonthAndYear=async()=>{if(this.updateSelections(),!0===this.isCalendarVisible){if(this.isCalendarVisible=!1,this.isYearListVisible=!0,this.isMonthListVisible=!1,await u(),this.yearListEl){const t=this.yearListEl.querySelector(`#year-${this.year}`);this.yearListEl.scrollTop=t?t.offsetTop-76:0}}else this.isCalendarVisible=!0,this.isYearListVisible=!1,this.isMonthListVisible=!1},this.onClickYear=t=>{this.isYearListVisible=!1,this.isMonthListVisible=!0,this.generateGridByMonthAndYear(this.month,t),this.months=B(this.language,t,this.selectedDate,this.min,this.max)},this.onClickMonth=t=>{this.isYearListVisible=!1,this.isMonthListVisible=!1,this.isCalendarVisible=!0,this.generateGridByMonthAndYear(t,this.year)},this.selectedDate="",this.monthFullNames=[],this.weekdays=[],this.months=[],this.years=[],this.calendarGrid=[],this.firstDayOfWeek=0,this.month=0,this.year=0,this.language=p.language,this.isCalendarVisible=!0,this.isYearListVisible=!1,this.isMonthListVisible=!1,this.value=void 0,this.defaultDate=void 0,this.allowedDates=void 0,this.min=void 0,this.max=void 0,this.minYearProp=void 0,this.maxYearProp=void 0}createLogger(t){this.log=t}valueChanged(t,e){if(t!==e){const e=h.fromISO(t);e.isValid?(this.generateGridByDate(e),this.selectedDate=e.toISODate()):(this.generateGridByDefaultDate(),this.selectedDate=""),this.updateSelections()}}rangePropChanged(){this.updateSelections(),this.generateGrid()}yearRangePropChanged(){this.updateSelections()}connectedCallback(){this.generateGridByDefaultDate(),this.valueChanged(this.value,void 0)}async configChanged(t){this.language=t.language,this.monthFullNames=h.infoMonths({format:"long",locale:this.language}),this.weekdays=function(t){const e=M(t),i=h.infoWeekdays({format:"short",locale:e}),a=h.infoWeekdays({format:"long",locale:e});return i.map(((t,e)=>({ariaLabel:a[e],textContent:t})))}(this.language),this.updateSelections()}swipeListener({left:t,right:e}){t?this.onClickNextMonth():e&&this.onClickPreviousMonth()}get minYear(){if(void 0===this.minYearProp){const t=(new Date).getFullYear()-100;return this.min&&h.fromISO(this.min).year||t}return this.minYearProp}get maxYear(){if(void 0===this.maxYearProp){const t=(new Date).getFullYear()+50;return this.max&&h.fromISO(this.max).year||t}return this.maxYearProp}updateSelections(){this.years=function(t,e,i){const a=[],s=(new Date).getFullYear();for(let n=e;n<=i;n++)a.push({value:n,label:`${n}`,disabled:!1,today:s===n,selected:t===n});return a}(this.year,this.minYear,this.maxYear),this.months=B(this.language,this.year,this.selectedDate,this.min,this.max)}generateGrid(){const t=h.fromISO(this.value);t.isValid?this.generateGridByDate(t):this.generateGridByDefaultDate()}generateGridByDate(t){void 0!==t.year&&void 0!==t.month&&this.generateGridByMonthAndYear(t.month,t.year)}generateGridByDefaultDate(){const t=h.fromISO(this.defaultDate);if(t.isValid)this.generateGridByDate(t);else{const t=new Date;this.month=t.getMonth()+1,this.year=t.getFullYear(),this.calendarGrid=O(this.year,this.month,this.min,this.max,this.allowedDates),this.firstDayOfWeek=P(this.year,this.month)}}generateGridByMonthAndYear(t,e){this.month===t&&this.year===e&&this.oldMin===this.min&&this.oldMax===this.max||(this.calendarGrid=O(e,t,this.min,this.max,this.allowedDates),this.firstDayOfWeek=P(e,t)),this.month=t,this.year=e,this.oldMin=this.min,this.oldMax=this.max}render(){var e;const i=(null===(e=this.gridEl)||void 0===e?void 0:e.clientHeight)||0,s=f.block("date-calendar"),n=s.element("body"),l=s.element("foot");return t(a,{key:"2d3c53228071c0a19b7195a60f655bffec5fcfc0",class:Object.assign({},s.class())},t(F,{key:"4722788040473eb1c25f3446658d7b958e874291",language:this.language,monthFullNames:this.monthFullNames,month:this.month,year:this.year,isCalendarVisible:this.isCalendarVisible,isListVisible:this.isMonthListVisible||this.isYearListVisible,onClickSelectMonthAndYear:this.onClickSelectMonthAndYear,onClickPreviousMonth:this.onClickPreviousMonth,onClickNextMonth:this.onClickNextMonth}),t("div",{key:"02dcfdf4f715f41c59e2a9df96a290c27cf08ae1",class:Object.assign({},n.class())},t(z,{key:"4c46752a54d57421757d861233960d03f5ba699e",isVisible:this.isCalendarVisible,grid:this.calendarGrid,weekdays:this.weekdays,firstDayOfWeek:this.firstDayOfWeek,selectedDate:this.selectedDate,ref:t=>this.gridEl=t,onSelectDay:t=>this.onSelectDay(t)}),t($,{key:"30104d40aa8929886651789d7c06ad87f3e6378f",name:"year",isVisible:this.isYearListVisible,girdHeight:i,list:this.years,ref:t=>this.yearListEl=t,onSelect:t=>this.onClickYear(t.value)}),t($,{key:"0e2fa6041ac31f0144086d1b8026af06e3008251",name:"month",isVisible:this.isMonthListVisible,girdHeight:i,list:this.months,onSelect:t=>this.onClickMonth(t.value)})),t("div",{key:"21a7d0cc3c36217f69fb4b07b42b065c3c82299d",class:Object.assign({},l.class())},t("slot",{key:"8aafbfd98fd66b25e313c15864831d4538c56487"})))}get el(){return s(this)}static get watchers(){return{value:["valueChanged"],min:["rangePropChanged"],max:["rangePropChanged"],minYearProp:["yearRangePropChanged"],maxYearProp:["yearRangePropChanged"]}}};n([b("bal-date-calendar"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],L.prototype,"createLogger",null),n([_(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],L.prototype,"configChanged",null),n([g({mobileOnly:!0}),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],L.prototype,"swipeListener",null),L.style=':host{--bal-date-first-week-day:0;--bal-date-calendar-background:var(--bal-color-red-3)}:host{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;background:var(--bal-color-white);border-radius:var(--bal-radius-normal)}.bal-date-calendar__nav{display:-ms-flexbox;display:flex;width:calc(100% - 1rem);-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:.5rem;gap:.5rem}.bal-date-calendar__nav--start>button{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav--end{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;min-height:2rem;min-width:2rem;padding:.25rem;border-radius:var(--bal-button-radius);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__nav button--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__nav button--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body{display:block}.bal-date-calendar__body__grid{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:.5rem;height:0;padding-top:0;padding-bottom:0;visibility:hidden}.bal-date-calendar__body__grid--visible{height:auto;padding-top:.5rem;padding-bottom:.5rem;visibility:visible}.bal-date-calendar__body__grid__head{position:relative;display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-date-calendar__body__grid__head::after{position:absolute;content:"";height:2px;width:calc(100% + 1rem);bottom:0;left:-0.5rem;right:-0.5rem;background:var(--bal-color-border)}.bal-date-calendar__body__grid__head span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:2rem;width:2rem;font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-wrap:nowrap}.bal-date-calendar__body__grid__body{display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-top:.5rem}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell{width:2rem;height:2rem;text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell:first-child{grid-column:var(--bal-date-first-week-day)}.bal-date-calendar__body__list{display:none;list-style:none;margin:0;padding:0;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:calc(100% - 1rem);overflow-y:auto;max-height:18rem;position:relative;padding:.5rem;border-top:2px solid var(--bal-color-border)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:100%}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body__list--visible{display:grid}.bal-date-calendar__body__list--year{grid-template-columns:repeat(4, 1fr)}.bal-date-calendar__body__list--month{grid-template-columns:repeat(2, 1fr)}.bal-date-calendar-cell{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:2rem;height:2rem}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar-cell--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar-cell--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}';class I{constructor(t){this._options=t,this._position=0,this._positionEnd=0,this._isRangeSelection=!1,t.component&&t.component.nativeInput&&(this._position=t.component.nativeInput.selectionStart||0,this._positionEnd=t.component.nativeInput.selectionEnd||0,this._isRangeSelection=this._position!==this._positionEnd)}get isRangeSelection(){return this._isRangeSelection}get value(){return this._options.isBackspace&&this._position>0?this._position-1:this._position}set value(t){this._position=t<0?0:t>this._options.mask.maxLength?this._options.mask.maxLength:t}toStart(){this.value=0}toEnd(){const t=this.getTarget();t&&(this.value=t.value.length)}next(t=1){const e=this._position+t;return e<=this._options.mask.maxLength&&(this._position=e),this._position}previous(t=1){const e=this._position-t;return this._position=e>=0?e:0,this._position}submit(){const t=this.getTarget();t&&t.selectionStart!==this._position&&t.selectionEnd!==this._position&&(t.selectionStart=this._position,t.selectionEnd=this._position)}getTarget(){if(this._options.component&&this._options.component.nativeInput)return this._options.component.nativeInput}}class S{constructor(t){this._options=t,this._value="",this._options.component&&this._options.component.nativeInput&&(this._value=this._options.component.nativeInput.value),this.position=new I(this._options),this.component=this._options.component}get target(){if(this._options.component&&this._options.component.nativeInput)return this._options.component.nativeInput}get value(){return this._value}set value(t){this._value=t}get focused(){return this._options.component.focused}isValueEmpty(){return""===this.value||null==this.value}preventDefault(){this._options.event.preventDefault&&this._options.event.preventDefault()}stopPropagation(){this.preventDefault(),this._options.event.stopPropagation&&this._options.event.stopPropagation()}async submit(t="input",e){this.target&&(this.target.value=this.value,"blur"!==t&&"tab"!==t&&this.position.submit(),this._options.component&&("input"!==t&&"tab"!==t||this._options.component.balInput.emit(this.value),"change"!==t&&"blur"!==t||void 0===e||v(this._options.component.value,e)&&(this._options.component.value=e,this._options.component.balChange.emit(e))))}}class K extends S{get clipboardData(){var t;return null===(t=this._options.event.clipboardData)||void 0===t?void 0:t.getData("text")}}class A extends S{}class N extends S{get key(){return this._options.event.key}get isCtrlOrCommandKey(){return this._options.event.metaKey||this._options.event.ctrlKey}get isBackspaceKey(){return"Backspace"===this._options.event.key}get isTabKey(){return"Tab"===this._options.event.key}get isWhiteSpaceKey(){return" "===this._options.event.key}get isDeleteKey(){return"Delete"===this._options.event.key||"Del"===this._options.event.key}get isNumberKey(){return N.NUMBER_KEYS.includes(this._options.event.key)}get isNavigationKey(){return N.NAVIGATION_KEYS.includes(this._options.event.key)}get isSelectAllCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"a"===this.key}get isCopyCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"c"===this.key}get isPasteCommand(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&"v"===this.key}getCharAt(t=this.position.value){return this.value.charAt(t)}getCharAtBackspacePosition(){return this.getCharAt(this.position.value-1)}setChar(t=this._options.event.key,e=this.position.value){this.value=this.value.substring(0,e)+t+this.value.substring(e+1)}}N.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"],N.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];class R extends S{get locale(){return this._options.event.locale}}class H extends S{}class T extends S{get newValue(){return this._options.event.newValue}get oldValue(){return this._options.event.oldValue}get didValueChange(){return this.newValue!==this.oldValue}}class E{constructor(t){this._isSeparator=!1,this._allowedKeys=[],this._locale="de-CH",this._from=t.from||0,this._to=t.to||0,this._isSeparator=void 0!==t.isSeparator&&t.isSeparator,this._mask=t.mask||"_",this._allowedKeys=t.allowedKeys?t.allowedKeys:this.allowedKeys,this._format=t.format}format(t){return this._format?this._format(t.replace(this.mask,""),this._locale,this.mask):t}get isSeparator(){return this._isSeparator}get to(){return this._to}get from(){return this._from}get mask(){return"function"==typeof this._mask?this._mask(this._locale):this._mask}get allowedKeys(){return this._allowedKeys}onI18nChange(t){this._locale=t}getValueOfTheBlock(t){return t.slice(this._from,this._to)}isTouched(t){return!this.getValueOfTheBlock(t).split("").every((t=>t===this.mask))}verifyAllowedKeyHits(t){return!(!this.isSeparator||t!==this.mask)||this.allowedKeys.indexOf(t)>=0}}class Y{constructor(t=[]){this._list=t}get lastPosition(){return this._list[this._list.length-1].to}get list(){return this._list}set list(t){this._list=t}clone(){return new Y([...this._list])}findByIndex(t,e=this.list){return e.find((e=>e.from<=t&&t<e.to))}getPlaceholderMask(){const t=[];return this.list.forEach((e=>{const i=e.to-e.from;for(let a=0;a<i;a++)t.push(e.mask)})),t.join("")}getRawValueWithoutMaskByContext(t){return this.getRawValueWithoutMask(t.value)}getRawValueWithoutMask(t){if(t){let e=[];const i=t.split("");for(let t=0;t<i.length;t++){const a=i[t],s=this.findByIndex(t);e.push(s&&!s.isSeparator?a.replace(s.mask,""):a)}return e=e.filter((t=>t)),this.list.filter((t=>t.isSeparator)).length===e.length?"":e.join("")}return""}formatBlocks(t,e){let i=`${t}`;for(let t=0;t<this.list.length;t++){const a=this.list[t];if(e!==t&&!a.isSeparator&&a.isTouched(i)){const t=a.getValueOfTheBlock(i),e=a.format(t);i=i.substring(0,a.from)+e+i.substring(a.to)}}return i}getBlockIndexFromPosition(t){const e=this.list.reduce(((t,e)=>t+e.to-e.from),0);if(t===e)return this.list.length-1;const i=this.list.findIndex((e=>e.from<=t&&t<e.to));return i<0?void 0:Math.min(e,i)}verifyCallOfNextSeparator(t,e){if(this.list.length-1>e){const i=this.list[e+1];if(i.isSeparator&&i.mask===t)return!0}return!1}}class W{constructor(t=[]){this.inputMode="text",this.locale="de-CH",this.blocks=new Y(t)}onLocaleChange(t,e,i){if(t.target){const e=t.value.split("");for(let t=0;t<e.length;t++){const a=e[t],s=this.blocks.findByIndex(t),n=i.findByIndex(t);s&&n&&(s.isSeparator||a===n.mask)&&(e[t]=s.mask)}t.value=e.join("")}}onFocus(t){}onBlur(t){}onChange(t){t.submit("change",this.onParseValue(t.value))}onNavigationDown(t,e,i){}onSelectAll(t,e,i){}onPaste(t,e,i){t.value=t.clipboardData||"",t.position.toEnd()}onBlockChange(t,e,i){t.setChar(),t.position.next();const a=this.blocks.list[i+1];t.position.value===e.to&&a&&a.isSeparator&&t.position.next()}onBackspaceDown(t,e,i){if(t.position.previous(),!e.isSeparator){t.setChar(e.mask);const a=this.blocks.list[i-1];t.position.value===e.from&&a&&a.isSeparator&&t.position.previous()}}onDeleteDown(t,e,i){t.setChar(e.mask),t.position.next();const a=this.blocks.list[i+1];t.position.value===e.to&&a&&a.isSeparator&&t.position.next()}onValueChanged(t){const e=this.onFormatValue(t.newValue),i=t.focused&&""===e?this.blocks.getPlaceholderMask():e;t.value=i,t.position.toEnd()}onParseValue(t,e={allowInvalidValue:!1}){return t?t.trim():t||""}onFormatValue(t){return t?t.trim():t||""}toParsedValue(t){return this.onParseValue(t)}toFormattedValue(t){return this.onFormatValue(t)}fireI18nChange(t){const e=this.blocks.clone(),i=`${t.locale}`;this.locale=t.locale,this.blocks.list.forEach((e=>e.onI18nChange(t.locale))),this.onLocaleChange(t,i,e)}fireValueChanged(t){t.didValueChange&&this.onValueChanged(t)}firePaste(t){const e=this.blocks.getBlockIndexFromPosition(t.position.value);void 0!==e&&(this.onPaste(t,this.blocks.list[e],e),this.onChange(t))}fireClick(t){this.blocks.getPlaceholderMask()===t.value&&t.position.toStart()}fireFocus(t){t.target&&t.isValueEmpty()&&this.resetInputValueWithMask(t),this.onFocus(t)}fireBlur(t){t.target&&(this.isValueEmptyMask(t)?this.emptyInputValue(t):(this.onBlur(t),t.submit("blur",this.onParseValue(t.value,{allowInvalidValue:t.component.allowInvalidValue}))))}fireKeyDown(t){const e=t.isBackspaceKey?Math.max(0,t.position.value-1):t.position.value,i=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand)return t.preventDefault(),void t.stopPropagation();if(void 0===i||t.position.isRangeSelection)t.isTabKey||t.preventDefault(),t.isBackspaceKey||t.isDeleteKey?this.resetInputValueWithMask(t):this.blocks.list[0].verifyAllowedKeyHits(t.key)&&this.onBlockChange(t,this.blocks.list[0],0);else{const e=this.blocks.list[i];if(t.isNavigationKey)this.onNavigationDown(t,e,i);else if(t.isSelectAllCommand)this.onSelectAll(t,e,i);else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey)t.preventDefault(),this.onBackspaceDown(t,e,i);else if(t.isDeleteKey)t.preventDefault(),this.onDeleteDown(t,e,i);else if(t.isWhiteSpaceKey){if(t.preventDefault(),"."===t.value[t.position.value]){t.stopPropagation();const e=t.value;t.value=e.substring(0,t.position.value)+"_"+e.substring(t.position.value+1)}}else if(e.verifyAllowedKeyHits(t.key))t.preventDefault(),this.onBlockChange(t,e,i);else if(this.blocks.verifyCallOfNextSeparator(t.key,i)&&(t.preventDefault(),t.position.value>this.blocks.list[i].from)){const a=this.blocks.list[i+1],s=t.value,n=e.getValueOfTheBlock(s),l=e.format(n);t.value=s.substring(0,e.from)+l+s.substring(e.to),t.position.value=a.to}const a=this.blocks.getBlockIndexFromPosition(t.position.value);if(a&&!t.isBackspaceKey){const e=this.blocks.formatBlocks(t.value,a),i=t.position.value;t.value=e,t.position.value=i}}}resetInputValueWithMask(t){t.value=this.blocks.getPlaceholderMask(),t.position.toStart()}isValueEmptyMask(t){return this.blocks.getPlaceholderMask()===t.value}emptyInputValue(t){t.value="",t.submit("blur",t.value)}}class G extends W{constructor(){super([new E({from:0,to:2,allowedKeys:[...j],format:(t,e,i)=>Number.isNaN(parseInt(t,10))?`${i}${i}`:t.padStart(2,"0"),mask:t=>this.dayMask[t.split("-")[0]]||this.dayMask.de}),new E({from:2,to:3,mask:t=>c(t),isSeparator:!0}),new E({from:3,to:5,allowedKeys:[...j],format:(t,e,i)=>Number.isNaN(parseInt(t,10))?`${i}${i}`:t.padStart(2,"0"),mask:t=>this.monthMask[t.split("-")[0]]||this.monthMask.de}),new E({from:5,to:6,mask:t=>c(t),isSeparator:!0}),new E({from:6,to:10,allowedKeys:[...j],mask:t=>this.yearMask[t.split("-")[0]]||this.yearMask.de})]),this.maxLength=10,this.minLength=10,this.inputMode="decimal",this.dayMask={de:"T",en:"D",fr:"J",it:"G",nl:"D",es:"D",pl:"D",pt:"D",sv:"D",fi:"M"},this.monthMask={de:"M",en:"M",fr:"M",it:"M",nl:"M",es:"M",pl:"M",pt:"M",sv:"M",fi:"K"},this.yearMask={de:"J",en:"Y",fr:"A",it:"A",nl:"J",es:"A",pl:"R",pt:"A",sv:"Å",fi:"V"}}onParseValue(t,e={allowInvalidValue:!1}){if(t){const i=h.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(i.isValid)return i.toISODate();if(e&&e.allowInvalidValue)return D}return""}onFormatValue(t){if(t){const e=h.fromISO(t);if(e.isValid)return e.toFormat()}return""}onPaste(t,e,i){const a=h.fromAnyFormat(t.clipboardData||"");a.isValid&&(t.value=a.toFormat(),t.position.toEnd())}onBlur(t){const e=this.blocks.getRawValueWithoutMaskByContext(t),i=h.fromAnyFormat(e);if(i.isValid){const e=i.toFormat();e!==t.value&&(t.value=e)}else t.component.allowInvalidValue&&e!==t.value&&(t.value=e)}}class J{constructor(t){this.mask=t}get attributes(){return{inputMode:this.mask.inputMode,maxLength:this.mask.maxLength,minLength:this.mask.minLength,type:"text",autoCapitalize:"off",autoCorrect:"off",spellcheck:!1}}bindComponent(t){this.component=t}bindComponentDidLoad(){this.component&&this.component.nativeInput&&(this.component.nativeInput.value=this.component.value||""),this.bindValueChanged(this.component.value,void 0)}bindConfigChanged(t){const{component:e,mask:i}=this,a=new R({component:e,mask:i,event:{locale:`${t.language}-${t.region}`}});this.mask.fireI18nChange(a),a.submit()}bindValueChanged(t,e){const{component:i,mask:a}=this,s=new T({component:i,mask:a,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(s),s.submit("blur")}bindKeyDown(t){if(this.isComponentAccessible){const{component:e,mask:i}=this,a=new N({event:t,component:e,mask:i});this.mask.fireKeyDown(a),a.submit("Tab"===t.key?"tab":"input"),e.balKeyPress.emit(t)}}bindFocus(t){if(this.isComponentAccessible){const{component:e,mask:i}=this;e.focused=!0;const a=new A({event:t,component:e,mask:i});this.mask.fireFocus(a),a.submit(),e.balFocus.emit(t)}}bindBlur(t){if(this.isComponentAccessible){const{component:e,mask:i}=this;e.focused=!1;const a=new A({event:t,component:e,mask:i});this.mask.fireBlur(a),a.submit("blur"),e.balBlur.emit(t)}}bindPaste(t){if(this.isComponentAccessible){const{component:e,mask:i}=this,a=new K({event:t,component:e,mask:i});this.mask.firePaste(a),a.submit()}}bindFormReset(t){const e=t.target;e&&(e===this.component.el||e.contains(this.component.el))&&(this.component.value=this.component.initialValue,this.component.inputValue=this.component.initialValue,clearTimeout(this.resetHandlerTimer),this.resetHandlerTimer=setTimeout((()=>{this.component.nativeInput&&(this.component.nativeInput.value=this.mask.toFormattedValue(this.component.value||""))})))}bindClick(t){if(this.isComponentAccessible){const{component:e,mask:i}=this,a=new H({event:t,component:e,mask:i});this.mask.fireClick(a),a.submit()}}bindHostClick(t){this.isComponentAccessible||(t.preventDefault(),t.stopPropagation())}bindGlobalClick(t){this.isComponentAccessible||t.target&&t.target===this.component.el&&(t.preventDefault(),t.stopPropagation())}get isComponentAccessible(){return!this.component.disabled&&!this.component.readonly}}const q=class{constructor(t){e(this,t),this.balKeyPress=i(this,"balKeyPress",7),this.balChange=i(this,"balChange",7),this.balInput=i(this,"balInput",7),this.balBlur=i(this,"balBlur",7),this.balFocus=i(this,"balFocus",7),this.inputId="bal-i-date-"+Q++,this.inheritedAttributes={},this.maskAdapter=new J(new G),this.inputValue=this.value,this.initialValue=this.value||"",this.focused=!1,this.isGrouped=!1,this.ariaForm=x,this.name=this.inputId,this.invalid=!1,this.required=!1,this.disabled=!1,this.readonly=!1,this.placeholder=void 0,this.clickable=!1,this.min=void 0,this.max=void 0,this.autocomplete="off",this.hasIconRight=!1,this.value=void 0,this.autoInvalidOff=!1,this.allowInvalidValue=!1}createLogger(t){this.log=t}valueChanged(t,e){this.maskAdapter.bindValueChanged(t,e)}connectedCallback(){this.maskAdapter.bindComponent(this),this.isGrouped=m("bal-input-group",this.el)}componentDidLoad(){this.maskAdapter.bindComponentDidLoad()}componentWillRender(){this.inheritedAttributes=y(this.el,["aria-label","tabindex","title"])}async configChanged(t){this.maskAdapter.bindConfigChanged(t)}resetHandler(t){this.maskAdapter.bindFormReset(t)}listenOnClick(t){this.maskAdapter.bindGlobalClick(t)}async setFocus(){w(this)}async setBlur(){k(this)}getInputElement(){return Promise.resolve(this.nativeInput)}async setAriaForm(t){this.ariaForm=Object.assign({},t)}render(){const e=f.block("input-date"),i=e.element("native");return t(a,{key:"38b2bfc91f2249540a9f5d2536d34b917070e903",onClick:t=>this.maskAdapter.bindHostClick(t),class:Object.assign({},e.class())},t("input",Object.assign({key:"b689f1780889807f91d776f903712cd3e6341283",class:{input:!0,"is-disabled":this.disabled||this.readonly,"is-danger":this.invalid,"is-clickable":this.clickable&&!(this.disabled||this.readonly),"bal-focusable":!this.disabled,"has-icon-right":this.hasIconRight},"data-testid":"bal-date-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":C(this.disabled),required:this.required,disabled:this.disabled,readonly:this.readonly,autoComplete:this.autocomplete},this.maskAdapter.attributes,this.inheritedAttributes,{placeholder:this.placeholder,value:this.inputValue,onKeyDown:t=>this.maskAdapter.bindKeyDown(t),onClick:t=>this.maskAdapter.bindClick(t),onFocus:t=>this.maskAdapter.bindFocus(t),onBlur:t=>this.maskAdapter.bindBlur(t),onPaste:t=>this.maskAdapter.bindPaste(t)})),t("input",{key:"80414fe198d63903a23853e603053771c50448d3",type:"date",class:Object.assign({},i.class()),name:this.name,min:this.min,max:this.max,value:this.value,tabindex:-1,"aria-hidden":"true"}))}get el(){return s(this)}static get watchers(){return{value:["valueChanged"]}}};n([b("bal-input-date"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],q.prototype,"createLogger",null),n([_(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",Promise)],q.prototype,"configChanged",null);let Q=0;q.style=".bal-input-date{display:block;width:100%;-ms-flex:1;flex:1}.bal-input-date input:not(:-moz-placeholder-shown){letter-spacing:.4px}.bal-input-date input:not(:-ms-input-placeholder){letter-spacing:.4px}.bal-input-date input:not(:placeholder-shown){letter-spacing:.4px}.bal-input-date__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}";export{L as bal_date_calendar,q as bal_input_date}
@@ -1 +1 @@
1
- import{r,h as a,H as e,g as o}from"./p-2ccbe55a.js";import{_ as s,a as b}from"./p-43c9f5e9.js";import{B as l}from"./p-ae86d0a0.js";import{o as n}from"./p-ef6a64f4.js";import{b as i}from"./p-ca5ec430.js";import{L as t}from"./p-fe37f1b5.js";import{L as g}from"./p-46b13df1.js";import"./p-a65354df.js";import"./p-46251973.js";import"./p-96216bd1.js";import"./p-acf222fd.js";import"./p-ce5ab69a.js";const p=class{constructor(a){r(this,a),this.animated=!0,this.isTouch=i.isTouch,this.value=0,this.background="white",this.color="primary"}componentDidRender(){this.updateProgress()}breakpointListener(r){this.updateProgress()}windowResizeListener(){this.updateProgress()}async configChanged(r){this.animated=r.animated}updateProgress(){this.lineEl&&n((()=>{const r=this.el.clientWidth,a=Math.max(0,Math.min(100,this.value));this.lineEl.style.width=r/100*a+"px",100===a?this.lineEl.classList.add("bal-progress-bar__line--full"):this.lineEl.classList.remove("bal-progress-bar__line--full")}))}render(){const r=l.block("progress-bar"),o=r.element("line");return a(e,{key:"ed3fb78efd402af40f4a56c4e1b0f33634506cb6","aria-hidden":"true",class:Object.assign(Object.assign({},r.class()),r.modifier(`background-${this.background}-of-${this.color}`).class())},a("div",{key:"5c18e0082fd842c907d73e96ca84420e50f484b0",class:Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(`color-${this.color}`).class()),o.modifier("animated").class(this.animated)),ref:r=>this.lineEl=r}))}get el(){return o(this)}};s([t(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],p.prototype,"breakpointListener",null),s([g(),b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",void 0)],p.prototype,"windowResizeListener",null),p.style=":root{--bal-progress-bar-background-white:var(--bal-color-white);--bal-progress-bar-background-grey:var(--bal-color-grey-3);--bal-progress-bar-background-purple:var(--bal-color-purple-2);--bal-progress-bar-background-yellow:var(--bal-color-yellow-2);--bal-progress-bar-background-red:var(--bal-color-red-2);--bal-progress-bar-background-green:var(--bal-color-green-2);--bal-progress-bar-line-color-primary:var(--bal-color-primary);--bal-progress-bar-line-color-purple:var(--bal-color-purple-6);--bal-progress-bar-line-color-yellow:var(--bal-color-yellow-6);--bal-progress-bar-line-color-red:var(--bal-color-red-6);--bal-progress-bar-line-color-green:var(--bal-color-green-6);--bal-progress-bar-line-radius:var(--bal-radius-rounded)}.bal-progress-bar{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;min-width:0;height:.25rem}.bal-progress-bar--background-white-of-primary,.bal-progress-bar--background-white-of-purple,.bal-progress-bar--background-white-of-red,.bal-progress-bar--background-white-of-green,.bal-progress-bar--background-white-of-yellow{background:var(--bal-progress-bar-background-white)}.bal-progress-bar--background-grey-of-primary{background:var(--bal-progress-bar-background-grey)}.bal-progress-bar--background-grey-of-purple{background:var(--bal-progress-bar-background-purple)}.bal-progress-bar--background-grey-of-red{background:var(--bal-progress-bar-background-red)}.bal-progress-bar--background-grey-of-green{background:var(--bal-progress-bar-background-green)}.bal-progress-bar--background-grey-of-yellow{background:var(--bal-progress-bar-background-yellow)}.bal-progress-bar__line{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;height:.25rem;width:0;background:var(--bal-progress-bar-line-color-primary);border-top-right-radius:var(--bal-progress-bar-line-radius);border-bottom-right-radius:var(--bal-progress-bar-line-radius)}.bal-progress-bar__line--animated{will-change:width;-webkit-transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-progress-bar__line--full{border-top-right-radius:0;border-bottom-right-radius:0}.bal-progress-bar__line--color-purple{background:var(--bal-progress-bar-line-color-purple)}.bal-progress-bar__line--color-yellow{background:var(--bal-progress-bar-line-color-yellow)}.bal-progress-bar__line--color-red{background:var(--bal-progress-bar-line-color-red)}.bal-progress-bar__line--color-green{background:var(--bal-progress-bar-line-color-green)}";export{p as bal_progress_bar}
1
+ import{r,h as a,H as e,g as o}from"./p-2ccbe55a.js";import{_ as s,a as b}from"./p-43c9f5e9.js";import{B as l}from"./p-ae86d0a0.js";import{o as n}from"./p-a255c9b3.js";import{b as i}from"./p-5cca745b.js";import{L as t}from"./p-81205ce0.js";import{L as g}from"./p-f0c375ba.js";import"./p-a65354df.js";import"./p-a7be57b6.js";import"./p-96216bd1.js";import"./p-acf222fd.js";import"./p-e036423e.js";const p=class{constructor(a){r(this,a),this.animated=!0,this.isTouch=i.isTouch,this.value=0,this.background="white",this.color="primary"}componentDidRender(){this.updateProgress()}breakpointListener(r){this.updateProgress()}windowResizeListener(){this.updateProgress()}async configChanged(r){this.animated=r.animated}updateProgress(){this.lineEl&&n((()=>{const r=this.el.clientWidth,a=Math.max(0,Math.min(100,this.value));this.lineEl.style.width=r/100*a+"px",100===a?this.lineEl.classList.add("bal-progress-bar__line--full"):this.lineEl.classList.remove("bal-progress-bar__line--full")}))}render(){const r=l.block("progress-bar"),o=r.element("line");return a(e,{key:"ed3fb78efd402af40f4a56c4e1b0f33634506cb6","aria-hidden":"true",class:Object.assign(Object.assign({},r.class()),r.modifier(`background-${this.background}-of-${this.color}`).class())},a("div",{key:"5c18e0082fd842c907d73e96ca84420e50f484b0",class:Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(`color-${this.color}`).class()),o.modifier("animated").class(this.animated)),ref:r=>this.lineEl=r}))}get el(){return o(this)}};s([t(),b("design:type",Function),b("design:paramtypes",[Object]),b("design:returntype",void 0)],p.prototype,"breakpointListener",null),s([g(),b("design:type",Function),b("design:paramtypes",[]),b("design:returntype",void 0)],p.prototype,"windowResizeListener",null),p.style=":root{--bal-progress-bar-background-white:var(--bal-color-white);--bal-progress-bar-background-grey:var(--bal-color-grey-3);--bal-progress-bar-background-purple:var(--bal-color-purple-2);--bal-progress-bar-background-yellow:var(--bal-color-yellow-2);--bal-progress-bar-background-red:var(--bal-color-red-2);--bal-progress-bar-background-green:var(--bal-color-green-2);--bal-progress-bar-line-color-primary:var(--bal-color-primary);--bal-progress-bar-line-color-purple:var(--bal-color-purple-6);--bal-progress-bar-line-color-yellow:var(--bal-color-yellow-6);--bal-progress-bar-line-color-red:var(--bal-color-red-6);--bal-progress-bar-line-color-green:var(--bal-color-green-6);--bal-progress-bar-line-radius:var(--bal-radius-rounded)}.bal-progress-bar{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;width:100%;min-width:0;height:.25rem}.bal-progress-bar--background-white-of-primary,.bal-progress-bar--background-white-of-purple,.bal-progress-bar--background-white-of-red,.bal-progress-bar--background-white-of-green,.bal-progress-bar--background-white-of-yellow{background:var(--bal-progress-bar-background-white)}.bal-progress-bar--background-grey-of-primary{background:var(--bal-progress-bar-background-grey)}.bal-progress-bar--background-grey-of-purple{background:var(--bal-progress-bar-background-purple)}.bal-progress-bar--background-grey-of-red{background:var(--bal-progress-bar-background-red)}.bal-progress-bar--background-grey-of-green{background:var(--bal-progress-bar-background-green)}.bal-progress-bar--background-grey-of-yellow{background:var(--bal-progress-bar-background-yellow)}.bal-progress-bar__line{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;height:.25rem;width:0;background:var(--bal-progress-bar-line-color-primary);border-top-right-radius:var(--bal-progress-bar-line-radius);border-bottom-right-radius:var(--bal-progress-bar-line-radius)}.bal-progress-bar__line--animated{will-change:width;-webkit-transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing);transition:all var(--bal-animation-transition-duration) var(--bal-animation-transition-easing)}.bal-progress-bar__line--full{border-top-right-radius:0;border-bottom-right-radius:0}.bal-progress-bar__line--color-purple{background:var(--bal-progress-bar-line-color-purple)}.bal-progress-bar__line--color-yellow{background:var(--bal-progress-bar-line-color-yellow)}.bal-progress-bar__line--color-red{background:var(--bal-progress-bar-line-color-red)}.bal-progress-bar__line--color-green{background:var(--bal-progress-bar-line-color-green)}";export{p as bal_progress_bar}
@@ -1 +1 @@
1
- import{r as o,c as a,h as e,H as r,g as c}from"./p-2ccbe55a.js";import{_ as b,a as l}from"./p-43c9f5e9.js";import{B as t}from"./p-ae86d0a0.js";import{s as i}from"./p-e3e1d211.js";import{L as d}from"./p-b77e3348.js";import{F as n}from"./p-ca119357.js";import{j as h}from"./p-ef6a64f4.js";import{B as s,L as v}from"./p-5d689d39.js";import"./p-a65354df.js";import"./p-46251973.js";import"./p-acf222fd.js";const k=class{constructor(e){o(this,e),this.balFocus=a(this,"balFocus",7),this.balBlur=a(this,"balBlur",7),this.balFormControlDidLoad=a(this,"balFormControlDidLoad",7),this.keyboardMode=!0,this.onClick=o=>{if(this.disabled||this.readonly)return i(o);const a=o.target;if(a&&a.href)return;const e=this.el.querySelector("bal-checkbox"),r=o.target;e&&r&&(r===e||h(e,r)||(i(o),e.click()))},this.onFocus=o=>{var a;if(this.disabled||this.readonly)return i(o);const e=this.el.querySelector("bal-checkbox"),r=o.target;this.keyboardMode&&(this.focused=!0),e&&r?(r===e||h(e,r))&&(i(o),null===(a=e.querySelector("input"))||void 0===a||a.focus()):this.balFocus.emit()},this.onBlur=o=>{var a;if(this.disabled||this.readonly)return i(o);const e=this.el.querySelector("bal-checkbox"),r=o.target;this.focused=!1,e&&r?(r===e||h(e,r))&&(i(o),null===(a=e.querySelector("input"))||void 0===a||a.blur()):this.balBlur.emit()},this.onPointerDown=()=>this.keyboardMode=!1,this.onKeydown=o=>this.keyboardMode=n.includes(o.key),this.interactionState=s.DefaultState,this.checked=!1,this.focused=!1,this.invalid=void 0,this.disabled=void 0,this.readonly=void 0,this.color=void 0,this.colSize=1,this.colSizeTablet=1,this.colSizeMobile=1}createLogger(o){this.log=o}invalidHandler(){this.updateProps("invalid",["bal-checkbox","bal-icon","bal-label","bal-text"])}disabledHandler(){this.updateProps("disabled",["bal-checkbox","bal-icon","bal-label","bal-text"])}readonlyHandler(){this.updateProps("readonly",["bal-checkbox","bal-icon","bal-label","bal-text"])}connectedCallback(){this.triggerAllHandlers(),this.el.addEventListener("keydown",this.onKeydown),this.el.addEventListener("touchstart",this.onPointerDown),this.el.addEventListener("mousedown",this.onPointerDown)}componentWillLoad(){this.triggerAllHandlers()}componentDidLoad(){this.balFormControlDidLoad.emit(this.el)}disconnectedCallback(){this.el.removeEventListener("keydown",this.onKeydown),this.el.removeEventListener("touchstart",this.onPointerDown),this.el.removeEventListener("mousedown",this.onPointerDown)}elementStateListener(o){this.interactionChildElements.forEach((a=>{a.hovered=o.hovered,a.pressed=o.pressed}))}async setChecked(o=!0){this.checked=o}get interactionChildElements(){return Array.from(this.el.querySelectorAll("bal-label, bal-text, bal-icon, bal-checkbox"))}triggerAllHandlers(){this.disabledHandler(),this.readonlyHandler(),this.invalidHandler()}updateProps(o,a){const e=this[o];void 0!==e&&this.notifyComponents(a,(a=>a[o]=e))}notifyComponents(o,a){this.el.querySelectorAll(o.join(", ")).forEach((o=>a(o)))}render(){const o=t.block("checkbox-button"),a=!!this.disabled||!!this.readonly,c=!!this.invalid,b=!!this.color,l=this.checked&&b;return e(r,{key:"df8642a22032a8ffd1a7c7db3e378027a1b926e8",class:Object.assign(Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(`column-${this.colSize}`).class(this.colSize>1)),o.modifier(`column-tablet-${this.colSizeTablet}`).class(this.colSizeTablet>1)),o.modifier(`column-mobile-${this.colSizeMobile}`).class(this.colSizeMobile>1)),onClick:this.onClick},e("button",{key:"9c6c1334a44190f5d6987c32ebf45be35ff00cf9",role:"checkbox",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o.element("native").class()),o.element("native").modifier("disabled").class(a)),o.element("native").modifier("invalid").class(c)),o.element("native").modifier("checked").class(this.checked)),o.element("native").modifier("colored").class(l)),o.element("native").modifier(`color-${this.color}`).class(b)),{"bal-focusable":!this.disabled}),disabled:a,onFocus:this.onFocus,onBlur:this.onBlur},e("slot",{key:"288d784a482e32dba9e4a46f1806ef35a51a76c0"})))}get el(){return c(this)}static get watchers(){return{invalid:["invalidHandler"],disabled:["disabledHandler"],readonly:["readonlyHandler"]}}};b([d("bal-checkbox-button"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],k.prototype,"createLogger",null),b([v(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],k.prototype,"elementStateListener",null),k.style="@media (hover: hover)and (pointer: fine){.bal-checkbox-button__native.bal-focused{-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-checkbox-button{display:block;position:relative;-ms-flex:0 0 100%;flex:0 0 100%}@media screen and (min-width: 769px),print{.bal-checkbox-button--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (max-width: 768px){.bal-checkbox-button--column-mobile-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-mobile-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-mobile-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 769px),print{.bal-checkbox-button--column-tablet-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-tablet-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-tablet-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 1024px){.bal-checkbox-button--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}.bal-checkbox-button__native{display:block;width:100%;height:100%;background:var(--bal-radio-checkbox-button-background);border-style:var(--bal-form-field-control-border-style);border-radius:var(--bal-form-field-control-radius);border-width:var(--bal-form-field-control-border-width);border-color:var(--bal-radio-checkbox-button-border-color);padding:var(--bal-text-size-medium);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bal-checkbox-button__native--checked{border-color:var(--bal-radio-checkbox-button-border-color-checked)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-green{background:var(--bal-radio-checkbox-button-background-checked-green)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-purple{background:var(--bal-radio-checkbox-button-background-checked-purple)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-red{background:var(--bal-radio-checkbox-button-background-checked-red)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-yellow{background:var(--bal-radio-checkbox-button-background-checked-yellow)}.bal-checkbox-button__native:disabled,.bal-checkbox-button__native--disabled{background:var(--bal-radio-checkbox-button-background-disabled);border-color:var(--bal-radio-checkbox-button-border-color-disabled);cursor:default}.bal-checkbox-button__native--invalid{border-color:var(--bal-radio-checkbox-button-border-color-invalid)}@media (hover: hover)and (pointer: fine){.bal-checkbox-button__native:hover:not(:disabled):not(.bal-checkbox-button__native--colored){background:var(--bal-radio-checkbox-button-background-hover);border-color:var(--bal-radio-checkbox-button-border-color-hover)}}.bal-checkbox-button__native:active:not(:disabled){border-color:var(--bal-radio-checkbox-button-border-color-active)}@media (hover: hover)and (pointer: fine){.bal-checkbox-button__native--invalid:hover:not(:disabled){border-color:var(--bal-radio-checkbox-button-border-color-invalid-hover)}.bal-checkbox-button__native--invalid:active:not(:disabled){border-color:var(--bal-radio-checkbox-button-border-color-invalid-active)}}";export{k as bal_checkbox_button}
1
+ import{r as o,c as a,h as e,H as c,g as r}from"./p-2ccbe55a.js";import{_ as b,a as l}from"./p-43c9f5e9.js";import{B as t}from"./p-ae86d0a0.js";import{s as i}from"./p-79f6f58b.js";import{L as d}from"./p-b77e3348.js";import{F as n}from"./p-ca119357.js";import{j as h}from"./p-a255c9b3.js";import{B as s,L as v}from"./p-f1052416.js";import"./p-a65354df.js";import"./p-a7be57b6.js";import"./p-acf222fd.js";const k=class{constructor(e){o(this,e),this.balFocus=a(this,"balFocus",7),this.balBlur=a(this,"balBlur",7),this.balFormControlDidLoad=a(this,"balFormControlDidLoad",7),this.keyboardMode=!0,this.onClick=o=>{if(this.disabled||this.readonly)return i(o);const a=o.target;if(a&&a.href)return;const e=this.el.querySelector("bal-checkbox"),c=o.target;e&&c&&(c===e||h(e,c)||(i(o),e.click()))},this.onFocus=o=>{var a;if(this.disabled||this.readonly)return i(o);const e=this.el.querySelector("bal-checkbox"),c=o.target;this.keyboardMode&&(this.focused=!0),e&&c?(c===e||h(e,c))&&(i(o),null===(a=e.querySelector("input"))||void 0===a||a.focus()):this.balFocus.emit()},this.onBlur=o=>{var a;if(this.disabled||this.readonly)return i(o);const e=this.el.querySelector("bal-checkbox"),c=o.target;this.focused=!1,e&&c?(c===e||h(e,c))&&(i(o),null===(a=e.querySelector("input"))||void 0===a||a.blur()):this.balBlur.emit()},this.onPointerDown=()=>this.keyboardMode=!1,this.onKeydown=o=>this.keyboardMode=n.includes(o.key),this.interactionState=s.DefaultState,this.checked=!1,this.focused=!1,this.invalid=void 0,this.disabled=void 0,this.readonly=void 0,this.color=void 0,this.colSize=1,this.colSizeTablet=1,this.colSizeMobile=1}createLogger(o){this.log=o}invalidHandler(){this.updateProps("invalid",["bal-checkbox","bal-icon","bal-label","bal-text"])}disabledHandler(){this.updateProps("disabled",["bal-checkbox","bal-icon","bal-label","bal-text"])}readonlyHandler(){this.updateProps("readonly",["bal-checkbox","bal-icon","bal-label","bal-text"])}connectedCallback(){this.triggerAllHandlers(),this.el.addEventListener("keydown",this.onKeydown),this.el.addEventListener("touchstart",this.onPointerDown),this.el.addEventListener("mousedown",this.onPointerDown)}componentWillLoad(){this.triggerAllHandlers()}componentDidLoad(){this.balFormControlDidLoad.emit(this.el)}disconnectedCallback(){this.el.removeEventListener("keydown",this.onKeydown),this.el.removeEventListener("touchstart",this.onPointerDown),this.el.removeEventListener("mousedown",this.onPointerDown)}elementStateListener(o){this.interactionChildElements.forEach((a=>{a.hovered=o.hovered,a.pressed=o.pressed}))}async setChecked(o=!0){this.checked=o}get interactionChildElements(){return Array.from(this.el.querySelectorAll("bal-label, bal-text, bal-icon, bal-checkbox"))}triggerAllHandlers(){this.disabledHandler(),this.readonlyHandler(),this.invalidHandler()}updateProps(o,a){const e=this[o];void 0!==e&&this.notifyComponents(a,(a=>a[o]=e))}notifyComponents(o,a){this.el.querySelectorAll(o.join(", ")).forEach((o=>a(o)))}render(){const o=t.block("checkbox-button"),a=!!this.disabled||!!this.readonly,r=!!this.invalid,b=!!this.color,l=this.checked&&b;return e(c,{key:"df8642a22032a8ffd1a7c7db3e378027a1b926e8",class:Object.assign(Object.assign(Object.assign(Object.assign({},o.class()),o.modifier(`column-${this.colSize}`).class(this.colSize>1)),o.modifier(`column-tablet-${this.colSizeTablet}`).class(this.colSizeTablet>1)),o.modifier(`column-mobile-${this.colSizeMobile}`).class(this.colSizeMobile>1)),onClick:this.onClick},e("button",{key:"9c6c1334a44190f5d6987c32ebf45be35ff00cf9",role:"checkbox",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},o.element("native").class()),o.element("native").modifier("disabled").class(a)),o.element("native").modifier("invalid").class(r)),o.element("native").modifier("checked").class(this.checked)),o.element("native").modifier("colored").class(l)),o.element("native").modifier(`color-${this.color}`).class(b)),{"bal-focusable":!this.disabled}),disabled:a,onFocus:this.onFocus,onBlur:this.onBlur},e("slot",{key:"288d784a482e32dba9e4a46f1806ef35a51a76c0"})))}get el(){return r(this)}static get watchers(){return{invalid:["invalidHandler"],disabled:["disabledHandler"],readonly:["readonlyHandler"]}}};b([d("bal-checkbox-button"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],k.prototype,"createLogger",null),b([v(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],k.prototype,"elementStateListener",null),k.style="@media (hover: hover)and (pointer: fine){.bal-checkbox-button__native.bal-focused{-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-checkbox-button{display:block;position:relative;-ms-flex:0 0 100%;flex:0 0 100%}@media screen and (min-width: 769px),print{.bal-checkbox-button--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (max-width: 768px){.bal-checkbox-button--column-mobile-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-mobile-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-mobile-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 769px),print{.bal-checkbox-button--column-tablet-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-tablet-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-tablet-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}@media screen and (min-width: 1024px){.bal-checkbox-button--column-2{-ms-flex:0 0 calc(50% - var(--bal-space-normal)*1/2);flex:0 0 calc(50% - var(--bal-space-normal)*1/2)}.bal-checkbox-button--column-3{-ms-flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3);flex:0 0 calc(33.3333333333% - var(--bal-space-normal)*2/3)}.bal-checkbox-button--column-4{-ms-flex:0 0 calc(25% - var(--bal-space-normal)*3/4);flex:0 0 calc(25% - var(--bal-space-normal)*3/4)}}.bal-checkbox-button__native{display:block;width:100%;height:100%;background:var(--bal-radio-checkbox-button-background);border-style:var(--bal-form-field-control-border-style);border-radius:var(--bal-form-field-control-radius);border-width:var(--bal-form-field-control-border-width);border-color:var(--bal-radio-checkbox-button-border-color);padding:var(--bal-text-size-medium);cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.bal-checkbox-button__native--checked{border-color:var(--bal-radio-checkbox-button-border-color-checked)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-green{background:var(--bal-radio-checkbox-button-background-checked-green)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-purple{background:var(--bal-radio-checkbox-button-background-checked-purple)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-red{background:var(--bal-radio-checkbox-button-background-checked-red)}.bal-checkbox-button__native--checked.bal-checkbox-button__native--color-yellow{background:var(--bal-radio-checkbox-button-background-checked-yellow)}.bal-checkbox-button__native:disabled,.bal-checkbox-button__native--disabled{background:var(--bal-radio-checkbox-button-background-disabled);border-color:var(--bal-radio-checkbox-button-border-color-disabled);cursor:default}.bal-checkbox-button__native--invalid{border-color:var(--bal-radio-checkbox-button-border-color-invalid)}@media (hover: hover)and (pointer: fine){.bal-checkbox-button__native:hover:not(:disabled):not(.bal-checkbox-button__native--colored){background:var(--bal-radio-checkbox-button-background-hover);border-color:var(--bal-radio-checkbox-button-border-color-hover)}}.bal-checkbox-button__native:active:not(:disabled){border-color:var(--bal-radio-checkbox-button-border-color-active)}@media (hover: hover)and (pointer: fine){.bal-checkbox-button__native--invalid:hover:not(:disabled){border-color:var(--bal-radio-checkbox-button-border-color-invalid-hover)}.bal-checkbox-button__native--invalid:active:not(:disabled){border-color:var(--bal-radio-checkbox-button-border-color-invalid-active)}}";export{k as bal_checkbox_button}
@@ -0,0 +1 @@
1
+ System.register(["./p-7961e095.system.js","./p-c43a56b7.system.js","./p-db0895e2.system.js","./p-2da669b4.system.js","./p-863f4e4e.system.js","./p-a1f6e944.system.js","./p-ade9437f.system.js"],(function(e){"use strict";var t,s,i,n,c,a,f;return{setters:[function(e){t=e.r;s=e.c;i=e.h;n=e.H},function(e){c=e.s},function(e){a=e.B},function(e){f=e.a},function(){},function(){},function(){}],execute:function(){var d=e("bal_date_calendar_cell",function(){function e(e){var i=this;t(this,e);this.balSelectDay=s(this,"balSelectDay",7);this.onClick=function(e,t){if(!i.disabled){i.balSelectDay.emit(t)}else{c(e)}};this.day=undefined;this.month=undefined;this.year=undefined;this.isoDate=undefined;this.fullDate=undefined;this.selected=false;this.today=false;this.disabled=false}e.prototype.render=function(){var e=this;var t=a.block("date-calendar-cell");return i(n,{key:"f1423c65e711698622eb7e3bcc05bf2d585eb96f",class:Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("today").class(!this.disabled&&this.today)),t.modifier("selected").class(!this.disabled&&this.selected)),t.modifier("disabled").class(this.disabled===true)),tabIndex:-1,type:"button",role:"button","aria-label":this.fullDate,"aria-selected":f(this.selected),"aria-disabled":f(this.disabled),title:this.fullDate,onClick:function(t){return e.onClick(t,e.isoDate)}},i("time",{key:"379ceff0e82c46073f60ad0cd30bbe9d0cf580d1",dateTime:this.isoDate},this.day))};return e}())}}}));
@@ -1 +1 @@
1
- import{d as a}from"./p-b77e3348.js";import{b as o,a as n,c as s,d as l,e as c,f as b,g as e,h as I,i as t,j as r,o as i,p as g,q as d,r as m,s as p,t as u,v as f,w as C,x as h,y as k,z as v,A as w,B as L,l as D,m as G,n as N,k as j}from"./p-46251973.js";const U={region:"CH",language:"de",allowedLanguages:["de","fr","it","en"],icons:{balIconClose:o,balIconInfoCircle:n,balIconPlus:s,balIconMinus:l,balIconEdit:c,balIconTrash:b,balIconNavGoLeft:e,balIconNavGoRight:I,balIconNavGoDown:t,balIconNavGoUp:r,balIconCheck:i,balIconDate:g,balIconDocument:d,balIconUpload:m,balIconMenuBars:p,balIconFacebook:u,balIconInstagram:f,balIconLinkedin:C,balIconTwitter:h,balIconX:k,balIconXing:v,balIconYoutube:w,balIconWeb:L,balIconCaretDown:D,balIconCaretLeft:G,balIconCaretRight:N,balIconCaretUp:j},fallbackLanguage:"de",logger:a,animated:!0,httpFormSubmit:!0},x=`${U.language}-${U.region}`;export{x as a,U as d}
1
+ import{d as a}from"./p-b77e3348.js";import{b as o,a as n,c as s,d as l,e as b,f as c,g as e,h as I,i as t,j as r,o as i,p as g,q as d,r as m,s as p,t as u,v as f,w as C,x as h,y as k,z as v,A as w,B as L,l as D,m as G,n as N,k as j}from"./p-a7be57b6.js";const U={region:"CH",language:"de",allowedLanguages:["de","fr","it","en"],icons:{balIconClose:o,balIconInfoCircle:n,balIconPlus:s,balIconMinus:l,balIconEdit:b,balIconTrash:c,balIconNavGoLeft:e,balIconNavGoRight:I,balIconNavGoDown:t,balIconNavGoUp:r,balIconCheck:i,balIconDate:g,balIconDocument:d,balIconUpload:m,balIconMenuBars:p,balIconFacebook:u,balIconInstagram:f,balIconLinkedin:C,balIconTwitter:h,balIconX:k,balIconXing:v,balIconYoutube:w,balIconWeb:L,balIconCaretDown:D,balIconCaretLeft:G,balIconCaretRight:N,balIconCaretUp:j},fallbackLanguage:"de",logger:a,animated:!0,httpFormSubmit:!0},x=`${U.language}-${U.region}`;export{x as a,U as d}
@@ -1 +1 @@
1
- import{B as t}from"./p-ca5ec430.js";import{a as s}from"./p-acf222fd.js";import{b as i}from"./p-a65354df.js";class n extends s{constructor(){super((t=>{t.windowResizeListener()})),this.listener=new t}attach(t){super.attach(t),i.hasWindow&&(this.listener.connect(window),this.listener.add((()=>super.notify())))}detach(){super.detach(),this.listener.disconnect()}}function c(){return function(t){const{connectedCallback:s,disconnectedCallback:i}=t;t.connectedCallback=function(){return this._balWindowResizeSubject||(this._balWindowResizeSubject=new n,this._balWindowResizeSubject.attach(this)),s&&s.call(this)},t.disconnectedCallback=function(){return this._balWindowResizeSubject&&(this._balWindowResizeSubject.detach(),this._balWindowResizeSubject=void 0),i&&i.call(this)}}}new n;export{c as L}
1
+ import{B as t}from"./p-5cca745b.js";import{a as s}from"./p-acf222fd.js";import{b as i}from"./p-a65354df.js";class n extends s{constructor(){super((t=>{t.windowResizeListener()})),this.listener=new t}attach(t){super.attach(t),i.hasWindow&&(this.listener.connect(window),this.listener.add((()=>super.notify())))}detach(){super.detach(),this.listener.disconnect()}}function c(){return function(t){const{connectedCallback:s,disconnectedCallback:i}=t;t.connectedCallback=function(){return this._balWindowResizeSubject||(this._balWindowResizeSubject=new n,this._balWindowResizeSubject.attach(this)),s&&s.call(this)},t.disconnectedCallback=function(){return this._balWindowResizeSubject&&(this._balWindowResizeSubject.detach(),this._balWindowResizeSubject=void 0),i&&i.call(this)}}}new n;export{c as L}
@@ -1 +1 @@
1
- import{L as s,a as t}from"./p-acf222fd.js";import{b as e}from"./p-a65354df.js";import{l as i,r as h}from"./p-ef6a64f4.js";class r extends s{constructor(){super(...arguments),this.state=r.DefaultState,this.onMouseEnter=()=>{this.updateState({hovered:!0})},this.onMouseLeave=()=>{this.updateState({hovered:!1})},this.onPointerDown=()=>{this.updateState({pressed:!0})},this.onPointerUp=()=>{this.updateState({pressed:!1})}}connect(s){super.connect(s),i(this.el,"mouseenter",this.onMouseEnter,r.EventListenerOptions),i(this.el,"mouseleave",this.onMouseLeave,r.EventListenerOptions),i(this.el,"pointerdown",this.onPointerDown,r.EventListenerOptions),e.hasDocument&&i(document,"pointerup",this.onPointerUp,r.EventListenerOptions)}disconnect(){super.disconnect(),this.el&&(h(this.el,"mouseenter",this.onMouseEnter),h(this.el,"mouseleave",this.onMouseLeave),h(this.el,"pointerdown",this.onPointerDown),e.hasDocument&&h(document,"pointerup",this.onPointerUp))}updateState(s){this.state=Object.assign(Object.assign({},this.state),s),this.notify(this.state)}}r.EventListenerOptions={passive:!0},r.DefaultState={hovered:!1,pressed:!1};class n extends t{constructor(){super(((s,t)=>{t&&s.elementStateListener(t)})),this.listener=new r}attach(s){super.attach(s),this.listener.connect(s.el),this.listener.add((s=>super.notify(s)))}detach(){super.detach(),this.listener.disconnect()}}function o(){return function(s){const{connectedCallback:t,disconnectedCallback:e}=s;s.connectedCallback=function(){return this._balElementStateSubject||(this._balElementStateSubject=new n,this._balElementStateSubject.attach(this)),t&&t.call(this)},s.disconnectedCallback=function(){return this._balElementStateSubject&&(this._balElementStateSubject.detach(),this._balElementStateSubject=void 0),e&&e.call(this)}}}export{r as B,o as L}
1
+ import{L as s,a as t}from"./p-acf222fd.js";import{b as e}from"./p-a65354df.js";import{l as i,r as h}from"./p-a255c9b3.js";class r extends s{constructor(){super(...arguments),this.state=r.DefaultState,this.onMouseEnter=()=>{this.updateState({hovered:!0})},this.onMouseLeave=()=>{this.updateState({hovered:!1})},this.onPointerDown=()=>{this.updateState({pressed:!0})},this.onPointerUp=()=>{this.updateState({pressed:!1})}}connect(s){super.connect(s),i(this.el,"mouseenter",this.onMouseEnter,r.EventListenerOptions),i(this.el,"mouseleave",this.onMouseLeave,r.EventListenerOptions),i(this.el,"pointerdown",this.onPointerDown,r.EventListenerOptions),e.hasDocument&&i(document,"pointerup",this.onPointerUp,r.EventListenerOptions)}disconnect(){super.disconnect(),this.el&&(h(this.el,"mouseenter",this.onMouseEnter),h(this.el,"mouseleave",this.onMouseLeave),h(this.el,"pointerdown",this.onPointerDown),e.hasDocument&&h(document,"pointerup",this.onPointerUp))}updateState(s){this.state=Object.assign(Object.assign({},this.state),s),this.notify(this.state)}}r.EventListenerOptions={passive:!0},r.DefaultState={hovered:!1,pressed:!1};class n extends t{constructor(){super(((s,t)=>{t&&s.elementStateListener(t)})),this.listener=new r}attach(s){super.attach(s),this.listener.connect(s.el),this.listener.add((s=>super.notify(s)))}detach(){super.detach(),this.listener.disconnect()}}function o(){return function(s){const{connectedCallback:t,disconnectedCallback:e}=s;s.connectedCallback=function(){return this._balElementStateSubject||(this._balElementStateSubject=new n,this._balElementStateSubject.attach(this)),t&&t.call(this)},s.disconnectedCallback=function(){return this._balElementStateSubject&&(this._balElementStateSubject.detach(),this._balElementStateSubject=void 0),e&&e.call(this)}}}export{r as B,o as L}