@baloise/ds-core 19.8.4 → 19.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (221) hide show
  1. package/components/bal-logo.animation.js +77 -940
  2. package/components/bal-logo2.js +34 -19
  3. package/components/config.default.js +1 -0
  4. package/components/index.js +10 -1
  5. package/components/tokens.esm.js +1 -1
  6. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  7. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  8. package/dist/baloise-design-system/index.esm.js +1 -1
  9. package/dist/baloise-design-system/{p-a53c24274c.entry.js → p-0077e5a12f.entry.js} +1 -1
  10. package/dist/baloise-design-system/{p-26085b7dcc.system.entry.js → p-0556bebe3a.system.entry.js} +1 -1
  11. package/dist/baloise-design-system/{p-255e5491e6.system.entry.js → p-14ae6214c4.system.entry.js} +1 -1
  12. package/dist/baloise-design-system/{p-38fa211868.entry.js → p-1ee3f23f54.entry.js} +1 -1
  13. package/dist/baloise-design-system/{p-b01f9c5651.entry.js → p-2333a469fa.entry.js} +1 -1
  14. package/dist/baloise-design-system/{p-1074fb7fbc.entry.js → p-37641c340c.entry.js} +1 -1
  15. package/dist/baloise-design-system/{p-dcebb4b8a2.system.entry.js → p-393a31ad6e.system.entry.js} +1 -1
  16. package/dist/baloise-design-system/{p-f6cb5253aa.system.entry.js → p-3ed3bfc59a.system.entry.js} +1 -1
  17. package/dist/baloise-design-system/{p-a32d50871a.system.entry.js → p-40f2569a17.system.entry.js} +1 -1
  18. package/dist/baloise-design-system/{p-70bdd60500.system.entry.js → p-41c63c9a82.system.entry.js} +1 -1
  19. package/dist/baloise-design-system/{p-a2a1ed74fe.system.entry.js → p-44137a3d17.system.entry.js} +1 -1
  20. package/dist/baloise-design-system/{p-c29bcf4e69.entry.js → p-493e239429.entry.js} +1 -1
  21. package/dist/baloise-design-system/{p-1df2fb625c.entry.js → p-4b2eeb8c37.entry.js} +1 -1
  22. package/dist/baloise-design-system/{p-8cf1d029e7.entry.js → p-4be902176f.entry.js} +1 -1
  23. package/dist/baloise-design-system/{p-31abb1f859.entry.js → p-54f5a92feb.entry.js} +1 -1
  24. package/dist/baloise-design-system/{p-41dcd76f1f.system.entry.js → p-5c3f48e883.system.entry.js} +1 -1
  25. package/dist/baloise-design-system/{p-9da9d45bda.system.entry.js → p-6191805e40.system.entry.js} +1 -1
  26. package/dist/baloise-design-system/{p-b38b2e9484.system.entry.js → p-772db94619.system.entry.js} +1 -1
  27. package/dist/baloise-design-system/{p-f6238b798a.system.entry.js → p-79006350e3.system.entry.js} +1 -1
  28. package/dist/baloise-design-system/{p-26764b092e.entry.js → p-7b52e9987d.entry.js} +1 -1
  29. package/dist/baloise-design-system/{p-f91be8b19a.entry.js → p-7f2e1e1be7.entry.js} +1 -1
  30. package/dist/baloise-design-system/{p-93dc4e9ec8.entry.js → p-8029d2f939.entry.js} +1 -1
  31. package/dist/baloise-design-system/{p-878f4e40a8.entry.js → p-862bf2c3e6.entry.js} +1 -1
  32. package/dist/baloise-design-system/{p-d94f439c3b.system.entry.js → p-9191e04f14.system.entry.js} +1 -1
  33. package/dist/baloise-design-system/{p-d4252ea848.system.entry.js → p-9417cf5581.system.entry.js} +1 -1
  34. package/dist/baloise-design-system/{p-ac1cd5a1e1.system.entry.js → p-979dfed703.system.entry.js} +1 -1
  35. package/dist/baloise-design-system/{p-B3ZVog4n.system.js → p-BDYdAsv_.system.js} +1 -1
  36. package/dist/baloise-design-system/p-BFRjY4w3.js +1 -0
  37. package/dist/baloise-design-system/p-BIBFYhYa.system.js +1 -0
  38. package/dist/baloise-design-system/p-BRAmUyPx.system.js +1 -0
  39. package/dist/baloise-design-system/p-Bk7UdnZ5.system.js +1 -0
  40. package/dist/baloise-design-system/p-CBkFUwrD.js +1 -0
  41. package/dist/baloise-design-system/{p-DAsF8QfB.system.js → p-CE3V5D8z.system.js} +1 -1
  42. package/dist/baloise-design-system/p-CKN3W8qn.js +1 -0
  43. package/dist/baloise-design-system/p-CM3hCeNH.js +1 -0
  44. package/dist/baloise-design-system/p-CsPrCX4f.system.js +1 -0
  45. package/dist/baloise-design-system/p-CuyVPNj2.system.js +1 -0
  46. package/dist/baloise-design-system/{p-ReLIdwsB.js → p-DmVt6SeJ.js} +1 -1
  47. package/dist/baloise-design-system/{p-COIM5Kkz.js → p-Dn1vzM6-.js} +1 -1
  48. package/dist/baloise-design-system/p-Ere8qsaI.js +1 -0
  49. package/dist/baloise-design-system/p-Yg1qLcvR.js +1 -0
  50. package/dist/baloise-design-system/{p-3f596ba050.entry.js → p-a10bc9e5d8.entry.js} +1 -1
  51. package/dist/baloise-design-system/{p-cb3abec4bd.system.entry.js → p-a31aacd887.system.entry.js} +1 -1
  52. package/dist/baloise-design-system/{p-4256f1331b.entry.js → p-a3c4c9d422.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-6670584628.entry.js → p-a7503a0c9d.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-93311a064b.system.entry.js → p-aec5e73a82.system.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-0b05d342f5.entry.js → p-b13d48cf28.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-81a7d8f03d.entry.js → p-b75b727fbc.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-cd6d0bfa91.system.entry.js → p-b9bbf796f3.system.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-BVitEMYC.system.js → p-bNRkwxp2.system.js} +1 -1
  59. package/dist/baloise-design-system/{p-0db571d8f2.system.entry.js → p-bb255885a4.system.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-99a9cc7202.entry.js → p-bd5655b6a8.entry.js} +1 -1
  61. package/dist/baloise-design-system/{p-042570e1b4.system.entry.js → p-c1f871bb5b.system.entry.js} +1 -1
  62. package/dist/baloise-design-system/p-c23854bd63.entry.js +1 -0
  63. package/dist/baloise-design-system/{p-5a66d8f568.entry.js → p-c637edb9ea.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-f682c289a1.system.entry.js → p-c8491fda99.system.entry.js} +1 -1
  65. package/dist/baloise-design-system/{p-c291d986ba.entry.js → p-ce2de36f43.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-4aeaa1a916.system.entry.js → p-d20d698c0b.system.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-f55a98dc20.entry.js → p-dc45f7cf9c.entry.js} +1 -1
  68. package/dist/baloise-design-system/{p-133b5a4986.entry.js → p-ea9aa92049.entry.js} +1 -1
  69. package/dist/baloise-design-system/{p-f8b560b22f.system.entry.js → p-eb98a3713f.system.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-e1b3b1f609.system.entry.js → p-ec911df779.system.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-b4ff1b324f.system.entry.js → p-ee0b45ff30.system.entry.js} +1 -1
  72. package/dist/baloise-design-system/{p-06ae31c81e.entry.js → p-efd2551aca.entry.js} +1 -1
  73. package/dist/baloise-design-system/p-fb980109e2.system.entry.js +1 -0
  74. package/dist/baloise-design-system/{p-e2e7e3c5c4.entry.js → p-fec5974e23.entry.js} +1 -1
  75. package/dist/baloise-design-system/p-giOY60zQ.system.js +1 -0
  76. package/dist/baloise-design-system/p-ncoiCFQ1.system.js +1 -0
  77. package/dist/cjs/{app-globals-C_KNnTwa.js → app-globals-D4xKyILL.js} +1 -1
  78. package/dist/cjs/bal-accordion_4.cjs.entry.js +1 -1
  79. package/dist/cjs/bal-carousel_2.cjs.entry.js +4 -4
  80. package/dist/cjs/bal-close.cjs.entry.js +1 -1
  81. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +1 -1
  82. package/dist/cjs/bal-date.cjs.entry.js +1 -1
  83. package/dist/cjs/bal-dropdown_3.cjs.entry.js +1 -1
  84. package/dist/cjs/bal-field_5.cjs.entry.js +3 -3
  85. package/dist/cjs/bal-footer.cjs.entry.js +1 -1
  86. package/dist/cjs/bal-hint_5.cjs.entry.js +3 -3
  87. package/dist/cjs/bal-icon.cjs.entry.js +1 -1
  88. package/dist/cjs/bal-input-stepper.cjs.entry.js +2 -2
  89. package/dist/cjs/bal-label.cjs.entry.js +1 -1
  90. package/dist/cjs/bal-list_8.cjs.entry.js +4 -4
  91. package/dist/cjs/{bal-logo.animation-q2TTdoP3.js → bal-logo.animation-B4LvXc5Q.js} +77 -940
  92. package/dist/cjs/bal-logo.cjs.entry.js +35 -22
  93. package/dist/cjs/bal-nav_8.cjs.entry.js +4 -4
  94. package/dist/cjs/bal-navbar_5.cjs.entry.js +4 -4
  95. package/dist/cjs/bal-number-input.cjs.entry.js +2 -2
  96. package/dist/cjs/bal-pagination.cjs.entry.js +4 -4
  97. package/dist/cjs/bal-progress-bar.cjs.entry.js +4 -4
  98. package/dist/cjs/bal-segment_2.cjs.entry.js +4 -4
  99. package/dist/cjs/bal-shape.cjs.entry.js +1 -1
  100. package/dist/cjs/bal-spinner.cjs.entry.js +1 -1
  101. package/dist/cjs/bal-steps.cjs.entry.js +3 -3
  102. package/dist/cjs/bal-tab-item_2.cjs.entry.js +4 -4
  103. package/dist/cjs/bal-time-input.cjs.entry.js +1 -1
  104. package/dist/cjs/baloise-design-system.cjs.js +4 -4
  105. package/dist/cjs/{breakpoints.decorator-byAdfhn7.js → breakpoints.decorator-DhiWnqha.js} +1 -1
  106. package/dist/cjs/{breakpoints.subject-CarqIcOv.js → breakpoints.subject-DPTVZ3As.js} +1 -1
  107. package/dist/cjs/{config.default-Bkso4_bY.js → config.default-Cko-wpRU.js} +1 -0
  108. package/dist/cjs/index.cjs.js +4 -4
  109. package/dist/cjs/{initialize-CWGvp-PN.js → initialize-BzrcZo6Y.js} +11 -2
  110. package/dist/cjs/loader.cjs.js +4 -4
  111. package/dist/cjs/{number-COdZG-wK.js → number-Zs70JOU-.js} +1 -1
  112. package/dist/cjs/{tokens.esm-wN1fum6F.js → tokens.esm-DM_dMnsW.js} +1 -1
  113. package/dist/cjs/{window-resize.decorator-DMReD0Er.js → window-resize.decorator-oyMA7gDI.js} +1 -1
  114. package/dist/collection/components/bal-logo/bal-logo.css +1 -1
  115. package/dist/collection/components/bal-logo/bal-logo.data.js +77 -940
  116. package/dist/collection/components/bal-logo/bal-logo.js +57 -17
  117. package/dist/collection/utils/config/config.default.js +1 -0
  118. package/dist/collection/utils/config/config.js +9 -0
  119. package/dist/collection/utils/constants/version.constant.js +1 -1
  120. package/dist/esm/{app-globals-BRqdW0lU.js → app-globals-Blx--ecs.js} +1 -1
  121. package/dist/esm/bal-accordion_4.entry.js +1 -1
  122. package/dist/esm/bal-carousel_2.entry.js +4 -4
  123. package/dist/esm/bal-close.entry.js +1 -1
  124. package/dist/esm/bal-date-calendar_2.entry.js +1 -1
  125. package/dist/esm/bal-date.entry.js +1 -1
  126. package/dist/esm/bal-dropdown_3.entry.js +1 -1
  127. package/dist/esm/bal-field_5.entry.js +3 -3
  128. package/dist/esm/bal-footer.entry.js +1 -1
  129. package/dist/esm/bal-hint_5.entry.js +3 -3
  130. package/dist/esm/bal-icon.entry.js +1 -1
  131. package/dist/esm/bal-input-stepper.entry.js +2 -2
  132. package/dist/esm/bal-label.entry.js +1 -1
  133. package/dist/esm/bal-list_8.entry.js +4 -4
  134. package/dist/esm/{bal-logo.animation-Bm-_mal3.js → bal-logo.animation-DQd9HTdg.js} +77 -940
  135. package/dist/esm/bal-logo.entry.js +35 -22
  136. package/dist/esm/bal-nav_8.entry.js +4 -4
  137. package/dist/esm/bal-navbar_5.entry.js +4 -4
  138. package/dist/esm/bal-number-input.entry.js +2 -2
  139. package/dist/esm/bal-pagination.entry.js +4 -4
  140. package/dist/esm/bal-progress-bar.entry.js +4 -4
  141. package/dist/esm/bal-segment_2.entry.js +4 -4
  142. package/dist/esm/bal-shape.entry.js +1 -1
  143. package/dist/esm/bal-spinner.entry.js +1 -1
  144. package/dist/esm/bal-steps.entry.js +3 -3
  145. package/dist/esm/bal-tab-item_2.entry.js +4 -4
  146. package/dist/esm/bal-time-input.entry.js +1 -1
  147. package/dist/esm/baloise-design-system.js +4 -4
  148. package/dist/esm/{breakpoints.decorator-t_yXJIZL.js → breakpoints.decorator-C-DmFJbn.js} +1 -1
  149. package/dist/esm/{breakpoints.subject-BnQp404Z.js → breakpoints.subject-Iyftu-nV.js} +1 -1
  150. package/dist/esm/{config.default-I6QXKbhg.js → config.default-RE8-gLMQ.js} +1 -0
  151. package/dist/esm/index.js +5 -5
  152. package/dist/esm/{initialize-pdWsVO-c.js → initialize-W3od-FM9.js} +11 -2
  153. package/dist/esm/loader.js +4 -4
  154. package/dist/esm/{number-Bwx2aNR0.js → number-DfnRcL0e.js} +1 -1
  155. package/dist/esm/{tokens.esm-Cf90NR4z.js → tokens.esm-C9EQ_6RZ.js} +1 -1
  156. package/dist/esm/{window-resize.decorator-DBJlK-45.js → window-resize.decorator-BU569j2_.js} +1 -1
  157. package/dist/esm-es5/app-globals-Blx--ecs.js +1 -0
  158. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  159. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  160. package/dist/esm-es5/bal-close.entry.js +1 -1
  161. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  162. package/dist/esm-es5/bal-date.entry.js +1 -1
  163. package/dist/esm-es5/bal-dropdown_3.entry.js +1 -1
  164. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  165. package/dist/esm-es5/bal-footer.entry.js +1 -1
  166. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  167. package/dist/esm-es5/bal-icon.entry.js +1 -1
  168. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  169. package/dist/esm-es5/bal-label.entry.js +1 -1
  170. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  171. package/dist/esm-es5/bal-logo.animation-DQd9HTdg.js +1 -0
  172. package/dist/esm-es5/bal-logo.entry.js +1 -1
  173. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  174. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  175. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  176. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  177. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  178. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  179. package/dist/esm-es5/bal-shape.entry.js +1 -1
  180. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  181. package/dist/esm-es5/bal-steps.entry.js +1 -1
  182. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  183. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  184. package/dist/esm-es5/baloise-design-system.js +1 -1
  185. package/dist/esm-es5/{breakpoints.decorator-t_yXJIZL.js → breakpoints.decorator-C-DmFJbn.js} +1 -1
  186. package/dist/esm-es5/{breakpoints.subject-BnQp404Z.js → breakpoints.subject-Iyftu-nV.js} +1 -1
  187. package/dist/esm-es5/{config.default-I6QXKbhg.js → config.default-RE8-gLMQ.js} +1 -1
  188. package/dist/esm-es5/index.js +1 -1
  189. package/dist/esm-es5/initialize-W3od-FM9.js +1 -0
  190. package/dist/esm-es5/loader.js +1 -1
  191. package/dist/esm-es5/{number-Bwx2aNR0.js → number-DfnRcL0e.js} +1 -1
  192. package/dist/esm-es5/{window-resize.decorator-DBJlK-45.js → window-resize.decorator-BU569j2_.js} +1 -1
  193. package/dist/html.html-data.json +12 -0
  194. package/dist/types/components/bal-logo/bal-logo.d.ts +6 -0
  195. package/dist/types/components/bal-logo/bal-logo.data.d.ts +81 -187
  196. package/dist/types/components/bal-logo/bal-logo.interfaces.d.ts +1 -1
  197. package/dist/types/components.d.ts +10 -0
  198. package/dist/types/utils/config/config.d.ts +3 -1
  199. package/dist/types/utils/config/config.types.d.ts +3 -0
  200. package/package.json +6 -6
  201. package/dist/baloise-design-system/p-74047cc11f.entry.js +0 -1
  202. package/dist/baloise-design-system/p-B1a79Kak.system.js +0 -1
  203. package/dist/baloise-design-system/p-BC9JH89x.js +0 -1
  204. package/dist/baloise-design-system/p-BRJ7ljGZ.system.js +0 -1
  205. package/dist/baloise-design-system/p-BblIE2Vz.system.js +0 -1
  206. package/dist/baloise-design-system/p-BtgFoKGn.js +0 -1
  207. package/dist/baloise-design-system/p-CBUCh83e.js +0 -1
  208. package/dist/baloise-design-system/p-C_0MGoKB.js +0 -1
  209. package/dist/baloise-design-system/p-CgBveYeB.js +0 -1
  210. package/dist/baloise-design-system/p-CwWHLbPB.system.js +0 -1
  211. package/dist/baloise-design-system/p-DNy7adIE.system.js +0 -1
  212. package/dist/baloise-design-system/p-Dhp6-MTS.system.js +0 -1
  213. package/dist/baloise-design-system/p-DsxGYykr.js +0 -1
  214. package/dist/baloise-design-system/p-db2823d02b.system.entry.js +0 -1
  215. package/dist/baloise-design-system/p-wAfnccKA.system.js +0 -1
  216. package/dist/esm-es5/app-globals-BRqdW0lU.js +0 -1
  217. package/dist/esm-es5/bal-logo.animation-Bm-_mal3.js +0 -1
  218. package/dist/esm-es5/initialize-pdWsVO-c.js +0 -1
  219. /package/dist/baloise-design-system/{p-Cf90NR4z.js → p-C9EQ_6RZ.js} +0 -0
  220. /package/dist/baloise-design-system/{p-LFV9NiI-.system.js → p-dEE6wNs_.system.js} +0 -0
  221. /package/dist/esm-es5/{tokens.esm-Cf90NR4z.js → tokens.esm-C9EQ_6RZ.js} +0 -0
@@ -1 +1 @@
1
- import{r as t,h as e,H as o,g as n,c as i}from"./p-BdVwMG9u.js";import{_ as r,a}from"./p-dfXERft2.js";import{B as s}from"./p-ByiN-QjD.js";import{B as c}from"./p-DOUIg6bI.js";import{p as l}from"./p-BG4j3FEv.js";import{b as p}from"./p-ReLIdwsB.js";import{a as d,i as h}from"./p-BERg8BNc.js";import{L as b}from"./p-CgBveYeB.js";import{L as u}from"./p-B-L34nz8.js";import{b as f}from"./p-B1u-Mq75.js";import{L as v}from"./p-D7ovid3w.js";import"./p-xbSOW78W.js";import"./p-BFTU3MAI.js";import"./p-Ba5qjFjW.js";import"./p-D7M-7v58.js";import"./p-MBsgW7uz.js";import"./p-C20cwFWy.js";import"./p-Cf90NR4z.js";const m=class{constructor(e){t(this,e),this.bodyScrollHandler=new c,this.componentId="bal-hint-"+_++,this.isActive=!1,this.innerCloseLabel="Close",this.isMobile=p.isMobile,this.small=!1,this.onPopupChange=t=>{this.isActive=t.detail,this.isMobile&&(this.isActive?this.bodyScrollHandler.disable():this.bodyScrollHandler.enable()),l(t)}}connectedCallback(){this.bodyScrollHandler.connect()}componentDidRender(){this.updateContent()}disconnectedCallback(){this.bodyScrollHandler.disconnect()}breakpointListener(t){const e=t.mobile;e!==this.isMobile&&(this.isActive=!1),this.isMobile=e}async configChanged(t){if(!this.closeLabel)switch(t.language){case"de":this.innerCloseLabel="Schliessen";break;case"fr":this.innerCloseLabel="Fermer";break;case"it":this.innerCloseLabel="Chiudere";break;case"nl":this.innerCloseLabel="Sluiten";break;default:this.innerCloseLabel="Close"}}async toggle(){this.isActive?this.dismiss():this.present()}async present(){this.popupElement&&this.popupElement.present(),this.isActive=!0}async dismiss(){this.popupElement&&this.popupElement.dismiss(),this.isActive=!1}updateContent(){this.hintContentEl&&this.slotWrapperEl&&(this.hintContentEl.innerHTML=this.slotWrapperEl.innerHTML)}render(){const t=s.block("hint"),n=t.element("icon"),i=t.element("content"),r=i.element("buttons"),a=()=>e("bal-icon",{class:Object.assign({},n.class()),"bal-popup":this.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:t=>{(d(t)||h(t))&&(t.preventDefault(),this.toggle())}}),c=()=>e("div",{class:Object.assign({},i.class()),"data-testid":"bal-hint-content"},e("div",{ref:t=>this.hintContentEl=t}),e("bal-button-group",{class:Object.assign(Object.assign({},r.class()),r.modifier("is-hidden-desktop").class(this.small))},e("bal-button",{"data-testid":"bal-hint-close",color:"info",onClick:()=>this.dismiss()},this.closeLabel?this.closeLabel:this.innerCloseLabel)));return e(o,{class:Object.assign({},t.class())},e((()=>e("div",{class:Object.assign({},t.element("popup").class())},e(a,null),e("bal-popup",{id:this.componentId,placement:"right",closable:!0,ref:t=>this.popupElement=t,onBalChange:this.onPopupChange,variant:this.isMobile?"fullscreen":"popover",offset:this.isMobile?0:16},e("bal-popup-content",null,e(c,null))))),null),e("div",{ref:t=>this.slotWrapperEl=t,style:{display:"none"}},e("slot",null)))}get element(){return n(this)}};r([b(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],m.prototype,"breakpointListener",null),r([u(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],m.prototype,"configChanged",null);let _=0;m.style="@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2);--bal-hint-content-border-color:var(--bal-color-grey-2);--bal-hint-icon-color-hover:var(--bal-color-light-blue-5)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;z-index:var(--bal-z-index-popup) !important}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-hint-icon-color-hover)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background);border:8px solid var(--bal-hint-content-border-color)}.bal-hint__content{width:auto;max-width:30rem;min-width:16.25rem;display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";const g=class{constructor(e){t(this,e)}render(){const t=s.block("hint").element("content").element("text"),n=t.element("field");return e(o,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},t.class())},e("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},n.class())},e("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))}},y=class{constructor(e){t(this,e)}render(){const t=s.block("hint").element("content").element("title"),n=t.element("heading");return e(o,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},t.class())},e("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},n.class())},e("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},e("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))}};var w="top",x="bottom",j="right",O="left",k="auto",z=[w,x,j,O],B="start",L="end",C="viewport",M="popper",E=z.reduce((function(t,e){return t.concat([e+"-"+B,e+"-"+L])}),[]),P=[].concat(z,[k]).reduce((function(t,e){return t.concat([e,e+"-"+B,e+"-"+L])}),[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function A(t){return t?(t.nodeName||"").toLowerCase():null}function F(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function R(t){return t instanceof F(t).Element||t instanceof Element}function S(t){return t instanceof F(t).HTMLElement||t instanceof HTMLElement}function D(t){return"undefined"!=typeof ShadowRoot&&(t instanceof F(t).ShadowRoot||t instanceof ShadowRoot)}function q(t){return t.split("-")[0]}var I=Math.max,T=Math.min,$=Math.round;function H(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function N(){return!/^((?!chrome|android).)*safari/i.test(H())}function U(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var n=t.getBoundingClientRect(),i=1,r=1;e&&S(t)&&(i=t.offsetWidth>0&&$(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&$(n.height)/t.offsetHeight||1);var a=(R(t)?F(t):window).visualViewport,s=!N()&&o,c=(n.left+(s&&a?a.offsetLeft:0))/i,l=(n.top+(s&&a?a.offsetTop:0))/r,p=n.width/i,d=n.height/r;return{width:p,height:d,top:l,right:c+p,bottom:l+d,left:c,x:c,y:l}}function G(t){var e=U(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function K(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&D(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function V(t){return F(t).getComputedStyle(t)}function Q(t){return["table","td","th"].indexOf(A(t))>=0}function X(t){return((R(t)?t.ownerDocument:t.document)||window.document).documentElement}function Y(t){return"html"===A(t)?t:t.assignedSlot||t.parentNode||(D(t)?t.host:null)||X(t)}function J(t){return S(t)&&"fixed"!==V(t).position?t.offsetParent:null}function Z(t){for(var e=F(t),o=J(t);o&&Q(o)&&"static"===V(o).position;)o=J(o);return o&&("html"===A(o)||"body"===A(o)&&"static"===V(o).position)?e:o||function(t){var e=/firefox/i.test(H());if(/Trident/i.test(H())&&S(t)&&"fixed"===V(t).position)return null;var o=Y(t);for(D(o)&&(o=o.host);S(o)&&["html","body"].indexOf(A(o))<0;){var n=V(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(t)||e}function tt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function et(t,e,o){return I(t,T(e,o))}function ot(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function nt(t,e){return e.reduce((function(e,o){return e[o]=t,e}),{})}function it(t){return t.split("-")[1]}var rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(t){var e,o=t.popper,n=t.popperRect,i=t.placement,r=t.variation,a=t.offsets,s=t.position,c=t.gpuAcceleration,l=t.adaptive,p=t.roundOffsets,d=t.isFixed,h=a.x,b=void 0===h?0:h,u=a.y,f=void 0===u?0:u,v="function"==typeof p?p({x:b,y:f}):{x:b,y:f};b=v.x,f=v.y;var m=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),g=O,y=w,k=window;if(l){var z=Z(o),B="clientHeight",C="clientWidth";z===F(o)&&"static"!==V(z=X(o)).position&&"absolute"===s&&(B="scrollHeight",C="scrollWidth"),(i===w||(i===O||i===j)&&r===L)&&(y=x,f-=(d&&z===k&&k.visualViewport?k.visualViewport.height:z[B])-n.height,f*=c?1:-1),i!==O&&(i!==w&&i!==x||r!==L)||(g=j,b-=(d&&z===k&&k.visualViewport?k.visualViewport.width:z[C])-n.width,b*=c?1:-1)}var M,E=Object.assign({position:s},l&&rt),P=!0===p?function(t,e){var o=t.y,n=e.devicePixelRatio||1;return{x:$(t.x*n)/n||0,y:$(o*n)/n||0}}({x:b,y:f},F(o)):{x:b,y:f};return b=P.x,f=P.y,Object.assign({},E,c?((M={})[y]=_?"0":"",M[g]=m?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+f+"px)":"translate3d("+b+"px, "+f+"px, 0)",M):((e={})[y]=_?f+"px":"",e[g]=m?b+"px":"",e.transform="",e))}var st={passive:!0},ct={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ct[t]}))}var pt={start:"end",end:"start"};function dt(t){return t.replace(/start|end/g,(function(t){return pt[t]}))}function ht(t){var e=F(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bt(t){return U(X(t)).left+ht(t).scrollLeft}function ut(t){var e=V(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ft(t){return["html","body","#document"].indexOf(A(t))>=0?t.ownerDocument.body:S(t)&&ut(t)?t:ft(Y(t))}function vt(t,e){var o;void 0===e&&(e=[]);var n=ft(t),i=n===(null==(o=t.ownerDocument)?void 0:o.body),r=F(n),a=i?[r].concat(r.visualViewport||[],ut(n)?n:[]):n,s=e.concat(a);return i?s:s.concat(vt(Y(a)))}function mt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _t(t,e,o){return e===C?mt(function(t,e){var o=F(t),n=X(t),i=o.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){r=i.width,a=i.height;var l=N();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:r,height:a,x:s+bt(t),y:c}}(t,o)):R(e)?function(t,e){var o=U(t,!1,"fixed"===e);return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}(e,o):mt(function(t){var e,o=X(t),n=ht(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=I(o.scrollWidth,o.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=I(o.scrollHeight,o.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+bt(t),c=-n.scrollTop;return"rtl"===V(i||o).direction&&(s+=I(o.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}(X(t)))}function gt(t){var e,o=t.reference,n=t.element,i=t.placement,r=i?q(i):null,a=i?it(i):null,s=o.x+o.width/2-n.width/2,c=o.y+o.height/2-n.height/2;switch(r){case w:e={x:s,y:o.y-n.height};break;case x:e={x:s,y:o.y+o.height};break;case j:e={x:o.x+o.width,y:c};break;case O:e={x:o.x-n.width,y:c};break;default:e={x:o.x,y:o.y}}var l=r?tt(r):null;if(null!=l){var p="y"===l?"height":"width";switch(a){case B:e[l]=e[l]-(o[p]/2-n[p]/2);break;case L:e[l]=e[l]+(o[p]/2-n[p]/2)}}return e}function yt(t,e){void 0===e&&(e={});var o=e.placement,n=void 0===o?t.placement:o,i=e.strategy,r=void 0===i?t.strategy:i,a=e.boundary,s=void 0===a?"clippingParents":a,c=e.rootBoundary,l=void 0===c?C:c,p=e.elementContext,d=void 0===p?M:p,h=e.altBoundary,b=void 0!==h&&h,u=e.padding,f=void 0===u?0:u,v=ot("number"!=typeof f?f:nt(f,z)),m=t.rects.popper,_=t.elements[b?d===M?"reference":M:d],g=function(t,e,o,n){var i="clippingParents"===e?function(t){var e=vt(Y(t)),o=["absolute","fixed"].indexOf(V(t).position)>=0&&S(t)?Z(t):t;return R(o)?e.filter((function(t){return R(t)&&K(t,o)&&"body"!==A(t)})):[]}(t):[].concat(e),r=[].concat(i,[o]),a=r.reduce((function(e,o){var i=_t(t,o,n);return e.top=I(i.top,e.top),e.right=T(i.right,e.right),e.bottom=T(i.bottom,e.bottom),e.left=I(i.left,e.left),e}),_t(t,r[0],n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(R(_)?_:_.contextElement||X(t.elements.popper),s,l,r),y=U(t.elements.reference),O=gt({reference:y,element:m,placement:n}),k=mt(Object.assign({},m,O)),B=d===M?k:y,L={top:g.top-B.top+v.top,bottom:B.bottom-g.bottom+v.bottom,left:g.left-B.left+v.left,right:B.right-g.right+v.right},E=t.modifiersData.offset;if(d===M&&E){var P=E[n];Object.keys(L).forEach((function(t){var e=[j,x].indexOf(t)>=0?1:-1,o=[w,x].indexOf(t)>=0?"y":"x";L[t]+=P[o]*e}))}return L}function wt(t,e){void 0===e&&(e={});var o=e.boundary,n=e.rootBoundary,i=e.padding,r=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?P:a,c=it(e.placement),l=c?r?E:E.filter((function(t){return it(t)===c})):z,p=l.filter((function(t){return s.indexOf(t)>=0}));0===p.length&&(p=l);var d=p.reduce((function(e,r){return e[r]=yt(t,{placement:r,boundary:o,rootBoundary:n,padding:i})[q(r)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}var xt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=o.mainAxis,r=void 0===i||i,a=o.altAxis,s=void 0===a||a,c=o.fallbackPlacements,l=o.padding,p=o.boundary,d=o.rootBoundary,h=o.altBoundary,b=o.flipVariations,u=void 0===b||b,f=o.allowedAutoPlacements,v=e.options.placement,m=q(v),_=c||(m!==v&&u?function(t){if(q(t)===k)return[];var e=lt(t);return[dt(t),e,dt(e)]}(v):[lt(v)]),g=[v].concat(_).reduce((function(t,o){return t.concat(q(o)===k?wt(e,{placement:o,boundary:p,rootBoundary:d,padding:l,flipVariations:u,allowedAutoPlacements:f}):o)}),[]),y=e.rects.reference,z=e.rects.popper,L=new Map,C=!0,M=g[0],E=0;E<g.length;E++){var P=g[E],W=q(P),A=it(P)===B,F=[w,x].indexOf(W)>=0,R=F?"width":"height",S=yt(e,{placement:P,boundary:p,rootBoundary:d,altBoundary:h,padding:l}),D=F?A?j:O:A?x:w;y[R]>z[R]&&(D=lt(D));var I=lt(D),T=[];if(r&&T.push(S[W]<=0),s&&T.push(S[D]<=0,S[I]<=0),T.every((function(t){return t}))){M=P,C=!1;break}L.set(P,T)}if(C)for(var $=function(t){var e=g.find((function(e){var o=L.get(e);if(o)return o.slice(0,t).every((function(t){return t}))}));if(e)return M=e,"break"},H=u?3:1;H>0&&"break"!==$(H);H--);e.placement!==M&&(e.modifiersData[n]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function jt(t,e,o){return void 0===o&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function Ot(t){return[w,j,x,O].some((function(e){return t[e]>=0}))}function kt(t,e,o){void 0===o&&(o=!1);var n,i,r=S(e),a=S(e)&&function(t){var e=t.getBoundingClientRect(),o=$(e.width)/t.offsetWidth||1,n=$(e.height)/t.offsetHeight||1;return 1!==o||1!==n}(e),s=X(e),c=U(t,a,o),l={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!o)&&(("body"!==A(e)||ut(s))&&(l=(n=e)!==F(n)&&S(n)?{scrollLeft:(i=n).scrollLeft,scrollTop:i.scrollTop}:ht(n)),S(e)?((p=U(e,!0)).x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=bt(s))),{x:c.left+l.scrollLeft-p.x,y:c.top+l.scrollTop-p.y,width:c.width,height:c.height}}function zt(t){var e=new Map,o=new Set,n=[];function i(t){o.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!o.has(t)){var n=e.get(t);n&&i(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){o.has(t.name)||i(t)})),n}var Bt={placement:"bottom",modifiers:[],strategy:"absolute"};function Lt(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ct(t){void 0===t&&(t={});var e=t.defaultModifiers,o=void 0===e?[]:e,n=t.defaultOptions,i=void 0===n?Bt:n;return function(t,e,n){void 0===n&&(n=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Bt,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,p={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,r),s.scrollParents={reference:R(t)?vt(t):t.contextElement?vt(t.contextElement):[],popper:vt(e)};var a,l,h=function(t){var e=zt(t);return W.reduce((function(t,o){return t.concat(e.filter((function(t){return t.phase===o})))}),[])}((a=[].concat(o,s.options.modifiers),l=a.reduce((function(t,e){var o=t[e.name];return t[e.name]=o?Object.assign({},o,e,{options:Object.assign({},o.options,e.options),data:Object.assign({},o.data,e.data)}):e,t}),{}),Object.keys(l).map((function(t){return l[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,o=t.effect;if("function"==typeof o){var n=o({state:s,name:t.name,instance:p,options:void 0===e?{}:e});c.push(n||function(){})}})),p.update()},forceUpdate:function(){if(!l){var t=s.elements,e=t.reference,o=t.popper;if(Lt(e,o)){s.rects={reference:kt(e,Z(o),"fixed"===s.options.strategy),popper:G(o)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var i=s.orderedModifiers[n],r=i.fn,a=i.options;"function"==typeof r&&(s=r({state:s,options:void 0===a?{}:a,name:i.name,instance:p})||s)}else s.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(t){p.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){d(),l=!0}};if(!Lt(t,e))return p;function d(){c.forEach((function(t){return t()})),c=[]}return p.setOptions(n).then((function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)})),p}}var Mt=Ct({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,o=t.instance,n=t.options,i=n.scroll,r=void 0===i||i,a=n.resize,s=void 0===a||a,c=F(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach((function(t){t.addEventListener("scroll",o.update,st)})),s&&c.addEventListener("resize",o.update,st),function(){r&&l.forEach((function(t){t.removeEventListener("scroll",o.update,st)})),s&&c.removeEventListener("resize",o.update,st)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=gt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,o=t.options,n=o.gpuAcceleration,i=void 0===n||n,r=o.adaptive,a=void 0===r||r,s=o.roundOffsets,c=void 0===s||s,l={placement:q(e.placement),variation:it(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,at(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,at(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var o=e.styles[t]||{},n=e.attributes[t]||{},i=e.elements[t];S(i)&&A(i)&&(Object.assign(i.style,o),Object.keys(n).forEach((function(t){var e=n[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],i=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:o[t]).reduce((function(t,e){return t[e]="",t}),{});S(n)&&A(n)&&(Object.assign(n.style,r),Object.keys(i).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,o=t.name,n=t.options.offset,i=void 0===n?[0,0]:n,r=P.reduce((function(t,o){return t[o]=function(t,e,o){var n=q(t),i=[O,w].indexOf(n)>=0?-1:1,r="function"==typeof o?o(Object.assign({},e,{placement:t})):o,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[O,j].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(o,e.rects,i),t}),{}),a=r[e.placement],s=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[o]=r}},xt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,o=t.options,n=t.name,i=o.mainAxis,r=void 0===i||i,a=o.altAxis,s=void 0!==a&&a,c=o.tether,l=void 0===c||c,p=o.tetherOffset,d=void 0===p?0:p,h=yt(e,{boundary:o.boundary,rootBoundary:o.rootBoundary,padding:o.padding,altBoundary:o.altBoundary}),b=q(e.placement),u=it(e.placement),f=!u,v=tt(b),m="x"===v?"y":"x",_=e.modifiersData.popperOffsets,g=e.rects.reference,y=e.rects.popper,k="function"==typeof d?d(Object.assign({},e.rects,{placement:e.placement})):d,z="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,C={x:0,y:0};if(_){if(r){var M,E="y"===v?w:O,P="y"===v?x:j,W="y"===v?"height":"width",A=_[v],F=A+h[E],R=A-h[P],S=l?-y[W]/2:0,D=u===B?g[W]:y[W],$=u===B?-y[W]:-g[W],H=e.elements.arrow,N=l&&H?G(H):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=U[E],V=U[P],Q=et(0,g[W],N[W]),X=f?g[W]/2-S-Q-K-z.mainAxis:D-Q-K-z.mainAxis,Y=f?-g[W]/2+S+Q+V+z.mainAxis:$+Q+V+z.mainAxis,J=e.elements.arrow&&Z(e.elements.arrow),ot=null!=(M=null==L?void 0:L[v])?M:0,nt=A+Y-ot,rt=et(l?T(F,A+X-ot-(J?"y"===v?J.clientTop||0:J.clientLeft||0:0)):F,A,l?I(R,nt):R);_[v]=rt,C[v]=rt-A}if(s){var at,st=_[m],ct="y"===m?"height":"width",lt=st+h["x"===v?w:O],pt=st-h["x"===v?x:j],dt=-1!==[w,O].indexOf(b),ht=null!=(at=null==L?void 0:L[m])?at:0,bt=dt?lt:st-g[ct]-y[ct]-ht+z.altAxis,ut=dt?st+g[ct]+y[ct]-ht-z.altAxis:pt,ft=l&&dt?function(t,e,o){var n=et(t,e,o);return n>o?o:n}(bt,st,ut):et(l?bt:lt,st,l?ut:pt);_[m]=ft,C[m]=ft-st}e.modifiersData[n]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,o=t.state,n=t.name,i=t.options,r=o.elements.arrow,a=o.modifiersData.popperOffsets,s=q(o.placement),c=tt(s),l=[O,j].indexOf(s)>=0?"height":"width";if(r&&a){var p=function(t,e){return ot("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:nt(t,z))}(i.padding,o),d=G(r),h="y"===c?w:O,b="y"===c?x:j,u=o.rects.reference[l]+o.rects.reference[c]-a[c]-o.rects.popper[l],f=a[c]-o.rects.reference[c],v=Z(r),m=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,_=m/2-d[l]/2+(u/2-f/2),g=et(p[h],_,m-d[l]-p[b]);o.modifiersData[n]=((e={})[c]=g,e.centerOffset=g-_,e)}},effect:function(t){var e=t.state,o=t.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&K(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,o=t.name,n=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,a=yt(e,{elementContext:"reference"}),s=yt(e,{altBoundary:!0}),c=jt(a,n),l=jt(s,i,r),p=Ot(c),d=Ot(l);e.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:p,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}}]});const Et=class{constructor(e){t(this,e),this.balChange=i(this,"balChange"),this.balWillAnimate=i(this,"balWillAnimate"),this.balDidAnimate=i(this,"balDidAnimate"),this.balPopoverPrepare=i(this,"balPopoverPrepare"),this.popoverId="bal-po-"+Pt++,this.isTouch=p.isTouch,this.isInMainNav=!1,this.backdropHeight=0,this.autoTrigger=!1,this.hint=!1,this.hover=!1,this.arrow=!1,this.backdrop=!1,this.tooltip=!1,this.offsetX=0,this.offsetY=0,this.padding=0,this.position="bottom-start",this.active=!1,this.mobileTop=!1}createLogger(t){this.log=t}async activeChanged(t,e){!0===t&&t!==e?this.present({force:!0}):this.dismiss({force:!0})}componentWillLoad(){this.backdropHeight=this.getBackdropHeight(),this.triggerElement.setAttribute("aria-haspopup","true")}componentDidLoad(){if(this.isInMainNav=null!==this.footMobileNav,this.triggerElement&&this.menuElement){this.popperInstance=Mt(this.triggerElement,this.menuElement,{placement:this.tooltip?"bottom":this.position,modifiers:[this.modifierOffset,this.modifierPreventOverflow]});let t=[],e=[];this.autoTrigger&&(t=["click"]),this.tooltip&&(t=["mouseenter","focus"],e=["mouseleave","blur"]),t.forEach((t=>{this.triggerElement&&this.triggerElement.addEventListener(t,"click"===t?()=>this.toggle():()=>this.present())})),e.forEach((t=>{this.triggerElement&&this.triggerElement.addEventListener(t,(()=>this.dismiss()))}))}}componentDidRender(){this.popperInstance&&(this.popperInstance.setOptions((t=>Object.assign(Object.assign({},t),{placement:this.tooltip?"bottom":this.position,modifiers:[...t.modifiers.filter((t=>"offset"!==t.name&&"preventOverflow"!==t.name)),this.modifierOffset,this.modifierPreventOverflow]}))),this.updatePopper()),f.isSafari&&!this.isTouch&&(clearTimeout(this.componentDidRenderTimer),this.componentDidRenderTimer=setTimeout((()=>{var t;const e=null===(t=this.el)||void 0===t?void 0:t.clientWidth;this.el.style.maxWidth=e?`${e}px`:"initial"})))}handlePopoverPrepare(t){this.popoverId!==t.detail&&this.dismiss()}async clickOnOutside(t){var e;this.active&&(this.el.contains(t.target)||(this.active=!1),(null===(e=this.backdropElement)||void 0===e?void 0:e.isEqualNode(t.target))&&(this.active=!1))}handleKeyUp(t){!this.active||"Escape"!==t.key&&"Esc"!==t.key||(t.preventDefault(),this.dismiss())}async tabOutside(t){"Tab"===t.key&&!this.el.contains(document.activeElement)&&this.active&&await this.toggle()}breakpointListener(t){this.isTouch=t.touch,this.isInMainNav=null!==this.footMobileNav,this.backdropHeight=this.getBackdropHeight()}async present(t={force:!1}){var e,o;this.active&&!t.force||(null===(e=this.menuElement)||void 0===e||e.setAttribute("data-show",""),null===(o=this.menuElement)||void 0===o||o.setAttribute("aria-hidden","false"),this.menuInnerElement&&this.menuInnerElement.scrollTo(0,0),this.balPopoverPrepare.emit(this.popoverId),this.balWillAnimate.emit(this.active),this.active=!0,this.popperInstance.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this.updatePopper(),this.balChange.emit(this.active),this.balDidAnimate.emit(this.active))}async dismiss(t={force:!1}){var e,o;(this.active||t.force)&&(null===(e=this.menuElement)||void 0===e||e.removeAttribute("data-show"),null===(o=this.menuElement)||void 0===o||o.setAttribute("aria-hidden","true"),this.balWillAnimate.emit(this.active),this.active=!1,this.popperInstance.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))),this.updatePopper(),this.balChange.emit(this.active),this.balDidAnimate.emit(this.active))}async toggle(t={force:!1}){this.active?await this.dismiss(t):await this.present(t)}get footMobileNav(){return this.el.closest('[slot="meta-mobile-foot"]')}get modifierOffset(){return{name:"offset",options:{offset:[this.offsetX,this.offsetY+(this.tooltip||this.arrow?8:0)]}}}get modifierPreventOverflow(){return{name:"preventOverflow",options:{padding:this.arrow||this.tooltip?8:this.padding,altAxis:!0}}}get triggerElement(){return this.el.querySelector("[bal-popover-trigger]")}get menuElement(){return this.el.querySelector("bal-popover-content")}get menuInnerElement(){return this.el.querySelector(".bal-popover__content__inner")}getBackdropHeight(){return f.hasWindow?this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16:0}updatePopper(){this.popperInstance.update()}render(){const t=s.block("popover");return e(o,{key:"f4b281b4ca30365ec4b279c3e219a0109edc173d","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("active").class(this.active)),t.modifier("tooltip").class(this.tooltip)),t.modifier("arrow").class(this.arrow)),t.modifier("hint").class(this.hint)),t.modifier("backdrop").class(this.backdrop))},!this.mobileTop&&e("div",{key:"d40df31685649965a301ada5e1c7e7f2a629596c",ref:t=>{this.backdropElement=t},class:Object.assign({},t.element("backdrop").class(this.backdrop&&this.active)),style:{"--bal-popover-backdrop-height":`${this.backdropHeight}rem`}}),e("slot",{key:"04ec4d9a6c214d1c14a436906e80dc721349ab78"}))}get el(){return n(this)}static get watchers(){return{active:["activeChanged"]}}};r([v("bal-popover"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],Et.prototype,"createLogger",null),r([b(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],Et.prototype,"breakpointListener",null);let Pt=0;Et.style='.bal-popover__backdrop{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-popover-backdrop-height:100vh;--bal-popover-content-height-top-nav:100vh;--bal-popover-backdrop-background:var(--bal-color-primary-6);--bal-popover-backdrop-opacity:.8;--bal-popover-content-shadow:var(--bal-shadow-normal);--bal-popover-content-background:var(--bal-color-white);--bal-popover-content-background-grey:var(--bal-color-grey-2);--bal-popover-tooltip-background:var(--bal-color-primary-6);--bal-popover-tooltip-color:var(--bal-color-white);--bal-popover-tooltip-font-family:var(--bal-font-family-text);--bal-popover-tooltip-font-size:var(--bal-text-size-small)}.bal-popover{display:block}@media screen and (max-width: 768px){.bal-popover .bal-popover__content{min-width:100vw !important}.bal-popover .bal-select__popover{min-width:100% !important}}.bal-popover--active .bal-popover__content{display:block}.bal-popover--backdrop [bal-popover-trigger]{z-index:calc(var(--bal-z-index-popup) - 1);position:relative}@media screen and (max-width: 768px){.bal-popover--hint .bal-popover__content{min-height:100vh}.bal-popover--hint .bal-popover__content .bal-popover__content__inner{min-height:100vh}}@media screen and (min-width: 769px),print{.bal-popover--hint .bal-popover__content{max-width:20rem}}@media screen and (min-width: 1024px){.bal-popover--hint .bal-popover__content{max-width:30rem}}.bal-popover__backdrop{z-index:calc(var(--bal-z-index-popup) - 2);position:fixed;background:var(--bal-popover-backdrop-background);opacity:var(--bal-popover-backdrop-opacity);height:var(--bal-popover-backdrop-height);width:100vw}.bal-popover__content{display:none;z-index:var(--bal-z-index-popup);-webkit-box-shadow:var(--bal-popover-content-shadow);box-shadow:var(--bal-popover-content-shadow);background:var(--bal-popover-content-background);min-width:16.25rem}.bal-popover__content[data-show]{display:block}.bal-popover__content--expanded{min-width:100%}.bal-popover__content--no-shadow{-webkit-box-shadow:none;box-shadow:none}.bal-popover__content--radius-normal{border-radius:var(--bal-radius-normal)}.bal-popover__content--radius-large{border-radius:var(--bal-radius-large)}.bal-popover__content--radius-none{border-radius:0}.bal-popover__content--radius-normal-bottom-none{border-radius:var(--bal-radius-normal);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-normal-top-none{border-radius:var(--bal-radius-normal);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--radius-large-bottom-none{border-radius:var(--bal-radius-large);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-large-top-none{border-radius:var(--bal-radius-large);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--on-top{border-top:1px solid var(--bal-color-grey-2);height:var(--bal-popover-content-height-top-nav);overflow-y:auto}.bal-popover__content--color-grey{background:var(--bal-popover-content-background-grey)}.bal-popover__content__inner{max-height:calc(100vh - 4.5rem);overflow:auto;padding:1rem}@media screen and (min-width: 769px),print{.bal-popover__content__inner{padding:1.5rem}}@media screen and (min-width: 1024px){.bal-popover__content__inner{max-height:calc(100vh - 8rem)}}.bal-popover__content--spaceless .bal-popover__content__inner{padding:0}.bal-popover__content [data-popper-arrow]{display:none}.bal-popover__content__arrow{visibility:hidden}.bal-popover__content__arrow [data-popper-arrow]{display:block}.bal-popover__content__arrow,.bal-popover__content__arrow:before{position:absolute;width:.5rem;height:.5rem;background:inherit}.bal-popover__content__arrow:before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-popover__content[data-popper-placement^=top]>.bal-popover__content__arrow{bottom:-0.25rem}.bal-popover__content[data-popper-placement^=bottom]>.bal-popover__content__arrow{top:-0.25rem}.bal-popover__content[data-popper-placement^=left]>.bal-popover__content__arrow{right:-0.25rem}.bal-popover__content[data-popper-placement^=right]>.bal-popover__content__arrow{left:-0.25rem}.bal-popover--arrow .bal-popover__content__arrow{display:block}.bal-popover--tooltip .bal-popover__content{min-width:unset;background:var(--bal-popover-tooltip-background)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner{padding:var(--bal-space-x-small)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner,.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner p{color:var(--bal-popover-tooltip-color);font-family:var(--bal-popover-tooltip-font-family);font-size:var(--bal-popover-tooltip-font-size)}';const Wt=class{constructor(e){t(this,e),this.isTouch=p.isTouch,this.spaceless=!1,this.scrollable=0,this.contentWidth=0,this.contentMinWidth=0,this.color="white",this.expanded=!1,this.radius="normal",this.noShadow=!1,this.mobileTop=!1,this.contentHeightOnTop=0}breakpointListener(t){f.hasWindow&&(this.contentHeightOnTop=window.innerHeight-64)}get innerStyle(){let t={};return this.scrollable>0&&(t={"max-height":`${this.scrollable}px`,overflow:"auto"}),Object.assign({},t)}get contentStyle(){let t={},e={};const o={"--bal-popover-content-height-top-nav":this.contentHeightOnTop/16+"rem"};return this.contentWidth>0&&(t={"max-width":`${this.contentWidth}px`}),this.contentMinWidth>0&&(e={"min-width":`${this.contentMinWidth}px`}),Object.assign(Object.assign(Object.assign({},t),e),o)}componentWillLoad(){f.hasWindow&&(this.contentHeightOnTop=window.innerHeight-64)}render(){const t=s.block("popover").element("content");return e(o,{key:"bc08fb0e5736f9393c5396af4a84f1127b6e4c4e",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("expanded").class(this.expanded)),t.modifier("spaceless").class(this.spaceless)),t.modifier("no-shadow").class(this.noShadow)),t.modifier(`radius-${this.radius}`).class()),t.modifier(`color-${this.color}`).class()),t.modifier("on-top").class(this.mobileTop)),"data-testid":"bal-popover-content",role:"tooltip",style:this.contentStyle},e("div",{key:"f49ffa520c2e1cc95942973939eeff059900a9bc",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},e("slot",{key:"3394b3dd89ce64a0d379e66b1ffb169e9f0401c4"})),e("div",{key:"5f75d67a77ae49667c3863b738bdc03d1dcb8121",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":!0}))}get el(){return n(this)}};r([b(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],Wt.prototype,"breakpointListener",null);export{m as bal_hint,g as bal_hint_text,y as bal_hint_title,Et as bal_popover,Wt as bal_popover_content}
1
+ import{r as t,h as e,H as o,g as n,c as i}from"./p-BdVwMG9u.js";import{_ as r,a}from"./p-dfXERft2.js";import{B as s}from"./p-ByiN-QjD.js";import{B as c}from"./p-DOUIg6bI.js";import{p as l}from"./p-BG4j3FEv.js";import{b as p}from"./p-DmVt6SeJ.js";import{a as d,i as h}from"./p-BERg8BNc.js";import{L as b}from"./p-Ere8qsaI.js";import{L as u}from"./p-B-L34nz8.js";import{b as f}from"./p-B1u-Mq75.js";import{L as v}from"./p-D7ovid3w.js";import"./p-xbSOW78W.js";import"./p-BFTU3MAI.js";import"./p-Ba5qjFjW.js";import"./p-D7M-7v58.js";import"./p-MBsgW7uz.js";import"./p-C20cwFWy.js";import"./p-C9EQ_6RZ.js";const m=class{constructor(e){t(this,e),this.bodyScrollHandler=new c,this.componentId="bal-hint-"+_++,this.isActive=!1,this.innerCloseLabel="Close",this.isMobile=p.isMobile,this.small=!1,this.onPopupChange=t=>{this.isActive=t.detail,this.isMobile&&(this.isActive?this.bodyScrollHandler.disable():this.bodyScrollHandler.enable()),l(t)}}connectedCallback(){this.bodyScrollHandler.connect()}componentDidRender(){this.updateContent()}disconnectedCallback(){this.bodyScrollHandler.disconnect()}breakpointListener(t){const e=t.mobile;e!==this.isMobile&&(this.isActive=!1),this.isMobile=e}async configChanged(t){if(!this.closeLabel)switch(t.language){case"de":this.innerCloseLabel="Schliessen";break;case"fr":this.innerCloseLabel="Fermer";break;case"it":this.innerCloseLabel="Chiudere";break;case"nl":this.innerCloseLabel="Sluiten";break;default:this.innerCloseLabel="Close"}}async toggle(){this.isActive?this.dismiss():this.present()}async present(){this.popupElement&&this.popupElement.present(),this.isActive=!0}async dismiss(){this.popupElement&&this.popupElement.dismiss(),this.isActive=!1}updateContent(){this.hintContentEl&&this.slotWrapperEl&&(this.hintContentEl.innerHTML=this.slotWrapperEl.innerHTML)}render(){const t=s.block("hint"),n=t.element("icon"),i=t.element("content"),r=i.element("buttons"),a=()=>e("bal-icon",{class:Object.assign({},n.class()),"bal-popup":this.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:t=>{(d(t)||h(t))&&(t.preventDefault(),this.toggle())}}),c=()=>e("div",{class:Object.assign({},i.class()),"data-testid":"bal-hint-content"},e("div",{ref:t=>this.hintContentEl=t}),e("bal-button-group",{class:Object.assign(Object.assign({},r.class()),r.modifier("is-hidden-desktop").class(this.small))},e("bal-button",{"data-testid":"bal-hint-close",color:"info",onClick:()=>this.dismiss()},this.closeLabel?this.closeLabel:this.innerCloseLabel)));return e(o,{class:Object.assign({},t.class())},e((()=>e("div",{class:Object.assign({},t.element("popup").class())},e(a,null),e("bal-popup",{id:this.componentId,placement:"right",closable:!0,ref:t=>this.popupElement=t,onBalChange:this.onPopupChange,variant:this.isMobile?"fullscreen":"popover",offset:this.isMobile?0:16},e("bal-popup-content",null,e(c,null))))),null),e("div",{ref:t=>this.slotWrapperEl=t,style:{display:"none"}},e("slot",null)))}get element(){return n(this)}};r([b(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],m.prototype,"breakpointListener",null),r([u(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",Promise)],m.prototype,"configChanged",null);let _=0;m.style="@media (hover: hover)and (pointer: fine){.bal-hint__icon:focus-visible:not(:active){-webkit-box-shadow:var(--bal-focus-shadow) !important;box-shadow:var(--bal-focus-shadow) !important}}:root{--bal-hint-content-background:var(--bal-color-grey-2);--bal-hint-content-border-color:var(--bal-color-grey-2);--bal-hint-icon-color-hover:var(--bal-color-light-blue-5)}.bal-hint{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;z-index:var(--bal-z-index-popup) !important}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-hint-icon-color-hover)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background);border:8px solid var(--bal-hint-content-border-color)}.bal-hint__content{width:auto;max-width:30rem;min-width:16.25rem;display:-ms-flexbox;display:flex;gap:1.5rem;-ms-flex-direction:column;flex-direction:column}@media screen and (max-width: 768px){.bal-hint__content{padding:1.25rem;min-height:100%}.bal-hint__content>div{-ms-flex:1;flex:1}}.bal-hint__content__title{display:block;margin-bottom:1rem}.bal-hint__content__title__heading{font-family:var(--bal-title-font-family);font-weight:var(--bal-title-font-weight);font-size:var(--bal-text-size-x-large);line-height:var(--bal-line-height-x-large)}@media screen and (min-width: 769px),print{.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-tablet);line-height:var(--bal-line-height-tablet-x-large)}}@media screen and (min-width: 1024px){.bal-hint__content__title__heading{font-size:var(--bal-text-size-x-large-desktop);line-height:var(--bal-line-height-desktop-x-large)}}@media screen and (min-width: 769px),print{.bal-hint__content__buttons--is-hidden-desktop{display:none !important}}.bal-hint__content__text__field{font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);line-height:var(--bal-text-line-height-text);font-size:var(--bal-text-size-normal)}.bal-hint__overlay__content{position:fixed;display:none;overflow:auto;top:0;left:0;right:0;bottom:0;z-index:var(--bal-z-index-popup)}.bal-hint__overlay__content--active{display:block}";const g=class{constructor(e){t(this,e)}render(){const t=s.block("hint").element("content").element("text"),n=t.element("field");return e(o,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},t.class())},e("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},n.class())},e("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))}},y=class{constructor(e){t(this,e)}render(){const t=s.block("hint").element("content").element("title"),n=t.element("heading");return e(o,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},t.class())},e("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},n.class())},e("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},e("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))}};var w="top",x="bottom",j="right",O="left",k="auto",z=[w,x,j,O],L="start",B="end",E="viewport",M="popper",C=z.reduce((function(t,e){return t.concat([e+"-"+L,e+"-"+B])}),[]),P=[].concat(z,[k]).reduce((function(t,e){return t.concat([e,e+"-"+L,e+"-"+B])}),[]),W=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function A(t){return t?(t.nodeName||"").toLowerCase():null}function F(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function S(t){return t instanceof F(t).Element||t instanceof Element}function D(t){return t instanceof F(t).HTMLElement||t instanceof HTMLElement}function R(t){return"undefined"!=typeof ShadowRoot&&(t instanceof F(t).ShadowRoot||t instanceof ShadowRoot)}function q(t){return t.split("-")[0]}var I=Math.max,T=Math.min,$=Math.round;function H(){var t=navigator.userAgentData;return null!=t&&t.brands&&Array.isArray(t.brands)?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function U(){return!/^((?!chrome|android).)*safari/i.test(H())}function N(t,e,o){void 0===e&&(e=!1),void 0===o&&(o=!1);var n=t.getBoundingClientRect(),i=1,r=1;e&&D(t)&&(i=t.offsetWidth>0&&$(n.width)/t.offsetWidth||1,r=t.offsetHeight>0&&$(n.height)/t.offsetHeight||1);var a=(S(t)?F(t):window).visualViewport,s=!U()&&o,c=(n.left+(s&&a?a.offsetLeft:0))/i,l=(n.top+(s&&a?a.offsetTop:0))/r,p=n.width/i,d=n.height/r;return{width:p,height:d,top:l,right:c+p,bottom:l+d,left:c,x:c,y:l}}function V(t){var e=N(t),o=t.offsetWidth,n=t.offsetHeight;return Math.abs(e.width-o)<=1&&(o=e.width),Math.abs(e.height-n)<=1&&(n=e.height),{x:t.offsetLeft,y:t.offsetTop,width:o,height:n}}function G(t,e){var o=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(o&&R(o)){var n=e;do{if(n&&t.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function K(t){return F(t).getComputedStyle(t)}function Q(t){return["table","td","th"].indexOf(A(t))>=0}function J(t){return((S(t)?t.ownerDocument:t.document)||window.document).documentElement}function X(t){return"html"===A(t)?t:t.assignedSlot||t.parentNode||(R(t)?t.host:null)||J(t)}function Z(t){return D(t)&&"fixed"!==K(t).position?t.offsetParent:null}function Y(t){for(var e=F(t),o=Z(t);o&&Q(o)&&"static"===K(o).position;)o=Z(o);return o&&("html"===A(o)||"body"===A(o)&&"static"===K(o).position)?e:o||function(t){var e=/firefox/i.test(H());if(/Trident/i.test(H())&&D(t)&&"fixed"===K(t).position)return null;var o=X(t);for(R(o)&&(o=o.host);D(o)&&["html","body"].indexOf(A(o))<0;){var n=K(o);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||e&&"filter"===n.willChange||e&&n.filter&&"none"!==n.filter)return o;o=o.parentNode}return null}(t)||e}function tt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function et(t,e,o){return I(t,T(e,o))}function ot(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function nt(t,e){return e.reduce((function(e,o){return e[o]=t,e}),{})}function it(t){return t.split("-")[1]}var rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(t){var e,o=t.popper,n=t.popperRect,i=t.placement,r=t.variation,a=t.offsets,s=t.position,c=t.gpuAcceleration,l=t.adaptive,p=t.roundOffsets,d=t.isFixed,h=a.x,b=void 0===h?0:h,u=a.y,f=void 0===u?0:u,v="function"==typeof p?p({x:b,y:f}):{x:b,y:f};b=v.x,f=v.y;var m=a.hasOwnProperty("x"),_=a.hasOwnProperty("y"),g=O,y=w,k=window;if(l){var z=Y(o),L="clientHeight",E="clientWidth";z===F(o)&&"static"!==K(z=J(o)).position&&"absolute"===s&&(L="scrollHeight",E="scrollWidth"),(i===w||(i===O||i===j)&&r===B)&&(y=x,f-=(d&&z===k&&k.visualViewport?k.visualViewport.height:z[L])-n.height,f*=c?1:-1),i!==O&&(i!==w&&i!==x||r!==B)||(g=j,b-=(d&&z===k&&k.visualViewport?k.visualViewport.width:z[E])-n.width,b*=c?1:-1)}var M,C=Object.assign({position:s},l&&rt),P=!0===p?function(t,e){var o=t.y,n=e.devicePixelRatio||1;return{x:$(t.x*n)/n||0,y:$(o*n)/n||0}}({x:b,y:f},F(o)):{x:b,y:f};return b=P.x,f=P.y,Object.assign({},C,c?((M={})[y]=_?"0":"",M[g]=m?"0":"",M.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+f+"px)":"translate3d("+b+"px, "+f+"px, 0)",M):((e={})[y]=_?f+"px":"",e[g]=m?b+"px":"",e.transform="",e))}var st={passive:!0},ct={left:"right",right:"left",bottom:"top",top:"bottom"};function lt(t){return t.replace(/left|right|bottom|top/g,(function(t){return ct[t]}))}var pt={start:"end",end:"start"};function dt(t){return t.replace(/start|end/g,(function(t){return pt[t]}))}function ht(t){var e=F(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bt(t){return N(J(t)).left+ht(t).scrollLeft}function ut(t){var e=K(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ft(t){return["html","body","#document"].indexOf(A(t))>=0?t.ownerDocument.body:D(t)&&ut(t)?t:ft(X(t))}function vt(t,e){var o;void 0===e&&(e=[]);var n=ft(t),i=n===(null==(o=t.ownerDocument)?void 0:o.body),r=F(n),a=i?[r].concat(r.visualViewport||[],ut(n)?n:[]):n,s=e.concat(a);return i?s:s.concat(vt(X(a)))}function mt(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function _t(t,e,o){return e===E?mt(function(t,e){var o=F(t),n=J(t),i=o.visualViewport,r=n.clientWidth,a=n.clientHeight,s=0,c=0;if(i){r=i.width,a=i.height;var l=U();(l||!l&&"fixed"===e)&&(s=i.offsetLeft,c=i.offsetTop)}return{width:r,height:a,x:s+bt(t),y:c}}(t,o)):S(e)?function(t,e){var o=N(t,!1,"fixed"===e);return o.top=o.top+t.clientTop,o.left=o.left+t.clientLeft,o.bottom=o.top+t.clientHeight,o.right=o.left+t.clientWidth,o.width=t.clientWidth,o.height=t.clientHeight,o.x=o.left,o.y=o.top,o}(e,o):mt(function(t){var e,o=J(t),n=ht(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=I(o.scrollWidth,o.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=I(o.scrollHeight,o.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-n.scrollLeft+bt(t),c=-n.scrollTop;return"rtl"===K(i||o).direction&&(s+=I(o.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}(J(t)))}function gt(t){var e,o=t.reference,n=t.element,i=t.placement,r=i?q(i):null,a=i?it(i):null,s=o.x+o.width/2-n.width/2,c=o.y+o.height/2-n.height/2;switch(r){case w:e={x:s,y:o.y-n.height};break;case x:e={x:s,y:o.y+o.height};break;case j:e={x:o.x+o.width,y:c};break;case O:e={x:o.x-n.width,y:c};break;default:e={x:o.x,y:o.y}}var l=r?tt(r):null;if(null!=l){var p="y"===l?"height":"width";switch(a){case L:e[l]=e[l]-(o[p]/2-n[p]/2);break;case B:e[l]=e[l]+(o[p]/2-n[p]/2)}}return e}function yt(t,e){void 0===e&&(e={});var o=e.placement,n=void 0===o?t.placement:o,i=e.strategy,r=void 0===i?t.strategy:i,a=e.boundary,s=void 0===a?"clippingParents":a,c=e.rootBoundary,l=void 0===c?E:c,p=e.elementContext,d=void 0===p?M:p,h=e.altBoundary,b=void 0!==h&&h,u=e.padding,f=void 0===u?0:u,v=ot("number"!=typeof f?f:nt(f,z)),m=t.rects.popper,_=t.elements[b?d===M?"reference":M:d],g=function(t,e,o,n){var i="clippingParents"===e?function(t){var e=vt(X(t)),o=["absolute","fixed"].indexOf(K(t).position)>=0&&D(t)?Y(t):t;return S(o)?e.filter((function(t){return S(t)&&G(t,o)&&"body"!==A(t)})):[]}(t):[].concat(e),r=[].concat(i,[o]),a=r.reduce((function(e,o){var i=_t(t,o,n);return e.top=I(i.top,e.top),e.right=T(i.right,e.right),e.bottom=T(i.bottom,e.bottom),e.left=I(i.left,e.left),e}),_t(t,r[0],n));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(S(_)?_:_.contextElement||J(t.elements.popper),s,l,r),y=N(t.elements.reference),O=gt({reference:y,element:m,placement:n}),k=mt(Object.assign({},m,O)),L=d===M?k:y,B={top:g.top-L.top+v.top,bottom:L.bottom-g.bottom+v.bottom,left:g.left-L.left+v.left,right:L.right-g.right+v.right},C=t.modifiersData.offset;if(d===M&&C){var P=C[n];Object.keys(B).forEach((function(t){var e=[j,x].indexOf(t)>=0?1:-1,o=[w,x].indexOf(t)>=0?"y":"x";B[t]+=P[o]*e}))}return B}function wt(t,e){void 0===e&&(e={});var o=e.boundary,n=e.rootBoundary,i=e.padding,r=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?P:a,c=it(e.placement),l=c?r?C:C.filter((function(t){return it(t)===c})):z,p=l.filter((function(t){return s.indexOf(t)>=0}));0===p.length&&(p=l);var d=p.reduce((function(e,r){return e[r]=yt(t,{placement:r,boundary:o,rootBoundary:n,padding:i})[q(r)],e}),{});return Object.keys(d).sort((function(t,e){return d[t]-d[e]}))}var xt={name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,o=t.options,n=t.name;if(!e.modifiersData[n]._skip){for(var i=o.mainAxis,r=void 0===i||i,a=o.altAxis,s=void 0===a||a,c=o.fallbackPlacements,l=o.padding,p=o.boundary,d=o.rootBoundary,h=o.altBoundary,b=o.flipVariations,u=void 0===b||b,f=o.allowedAutoPlacements,v=e.options.placement,m=q(v),_=c||(m!==v&&u?function(t){if(q(t)===k)return[];var e=lt(t);return[dt(t),e,dt(e)]}(v):[lt(v)]),g=[v].concat(_).reduce((function(t,o){return t.concat(q(o)===k?wt(e,{placement:o,boundary:p,rootBoundary:d,padding:l,flipVariations:u,allowedAutoPlacements:f}):o)}),[]),y=e.rects.reference,z=e.rects.popper,B=new Map,E=!0,M=g[0],C=0;C<g.length;C++){var P=g[C],W=q(P),A=it(P)===L,F=[w,x].indexOf(W)>=0,S=F?"width":"height",D=yt(e,{placement:P,boundary:p,rootBoundary:d,altBoundary:h,padding:l}),R=F?A?j:O:A?x:w;y[S]>z[S]&&(R=lt(R));var I=lt(R),T=[];if(r&&T.push(D[W]<=0),s&&T.push(D[R]<=0,D[I]<=0),T.every((function(t){return t}))){M=P,E=!1;break}B.set(P,T)}if(E)for(var $=function(t){var e=g.find((function(e){var o=B.get(e);if(o)return o.slice(0,t).every((function(t){return t}))}));if(e)return M=e,"break"},H=u?3:1;H>0&&"break"!==$(H);H--);e.placement!==M&&(e.modifiersData[n]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function jt(t,e,o){return void 0===o&&(o={x:0,y:0}),{top:t.top-e.height-o.y,right:t.right-e.width+o.x,bottom:t.bottom-e.height+o.y,left:t.left-e.width-o.x}}function Ot(t){return[w,j,x,O].some((function(e){return t[e]>=0}))}function kt(t,e,o){void 0===o&&(o=!1);var n,i,r=D(e),a=D(e)&&function(t){var e=t.getBoundingClientRect(),o=$(e.width)/t.offsetWidth||1,n=$(e.height)/t.offsetHeight||1;return 1!==o||1!==n}(e),s=J(e),c=N(t,a,o),l={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!o)&&(("body"!==A(e)||ut(s))&&(l=(n=e)!==F(n)&&D(n)?{scrollLeft:(i=n).scrollLeft,scrollTop:i.scrollTop}:ht(n)),D(e)?((p=N(e,!0)).x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=bt(s))),{x:c.left+l.scrollLeft-p.x,y:c.top+l.scrollTop-p.y,width:c.width,height:c.height}}function zt(t){var e=new Map,o=new Set,n=[];function i(t){o.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!o.has(t)){var n=e.get(t);n&&i(n)}})),n.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){o.has(t.name)||i(t)})),n}var Lt={placement:"bottom",modifiers:[],strategy:"absolute"};function Bt(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Et(t){void 0===t&&(t={});var e=t.defaultModifiers,o=void 0===e?[]:e,n=t.defaultOptions,i=void 0===n?Lt:n;return function(t,e,n){void 0===n&&(n=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lt,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],l=!1,p={state:s,setOptions:function(n){var r="function"==typeof n?n(s.options):n;d(),s.options=Object.assign({},i,s.options,r),s.scrollParents={reference:S(t)?vt(t):t.contextElement?vt(t.contextElement):[],popper:vt(e)};var a,l,h=function(t){var e=zt(t);return W.reduce((function(t,o){return t.concat(e.filter((function(t){return t.phase===o})))}),[])}((a=[].concat(o,s.options.modifiers),l=a.reduce((function(t,e){var o=t[e.name];return t[e.name]=o?Object.assign({},o,e,{options:Object.assign({},o.options,e.options),data:Object.assign({},o.data,e.data)}):e,t}),{}),Object.keys(l).map((function(t){return l[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,o=t.effect;if("function"==typeof o){var n=o({state:s,name:t.name,instance:p,options:void 0===e?{}:e});c.push(n||function(){})}})),p.update()},forceUpdate:function(){if(!l){var t=s.elements,e=t.reference,o=t.popper;if(Bt(e,o)){s.rects={reference:kt(e,Y(o),"fixed"===s.options.strategy),popper:V(o)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var i=s.orderedModifiers[n],r=i.fn,a=i.options;"function"==typeof r&&(s=r({state:s,options:void 0===a?{}:a,name:i.name,instance:p})||s)}else s.reset=!1,n=-1}}},update:(r=function(){return new Promise((function(t){p.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(r())}))}))),a}),destroy:function(){d(),l=!0}};if(!Bt(t,e))return p;function d(){c.forEach((function(t){return t()})),c=[]}return p.setOptions(n).then((function(t){!l&&n.onFirstUpdate&&n.onFirstUpdate(t)})),p}}var Mt=Et({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,o=t.instance,n=t.options,i=n.scroll,r=void 0===i||i,a=n.resize,s=void 0===a||a,c=F(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach((function(t){t.addEventListener("scroll",o.update,st)})),s&&c.addEventListener("resize",o.update,st),function(){r&&l.forEach((function(t){t.removeEventListener("scroll",o.update,st)})),s&&c.removeEventListener("resize",o.update,st)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state;e.modifiersData[t.name]=gt({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,o=t.options,n=o.gpuAcceleration,i=void 0===n||n,r=o.adaptive,a=void 0===r||r,s=o.roundOffsets,c=void 0===s||s,l={placement:q(e.placement),variation:it(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:i,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,at(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,at(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var o=e.styles[t]||{},n=e.attributes[t]||{},i=e.elements[t];D(i)&&A(i)&&(Object.assign(i.style,o),Object.keys(n).forEach((function(t){var e=n[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,o={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,o.popper),e.styles=o,e.elements.arrow&&Object.assign(e.elements.arrow.style,o.arrow),function(){Object.keys(e.elements).forEach((function(t){var n=e.elements[t],i=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:o[t]).reduce((function(t,e){return t[e]="",t}),{});D(n)&&A(n)&&(Object.assign(n.style,r),Object.keys(i).forEach((function(t){n.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,o=t.name,n=t.options.offset,i=void 0===n?[0,0]:n,r=P.reduce((function(t,o){return t[o]=function(t,e,o){var n=q(t),i=[O,w].indexOf(n)>=0?-1:1,r="function"==typeof o?o(Object.assign({},e,{placement:t})):o,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[O,j].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(o,e.rects,i),t}),{}),a=r[e.placement],s=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=a.x,e.modifiersData.popperOffsets.y+=s),e.modifiersData[o]=r}},xt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,o=t.options,n=t.name,i=o.mainAxis,r=void 0===i||i,a=o.altAxis,s=void 0!==a&&a,c=o.tether,l=void 0===c||c,p=o.tetherOffset,d=void 0===p?0:p,h=yt(e,{boundary:o.boundary,rootBoundary:o.rootBoundary,padding:o.padding,altBoundary:o.altBoundary}),b=q(e.placement),u=it(e.placement),f=!u,v=tt(b),m="x"===v?"y":"x",_=e.modifiersData.popperOffsets,g=e.rects.reference,y=e.rects.popper,k="function"==typeof d?d(Object.assign({},e.rects,{placement:e.placement})):d,z="number"==typeof k?{mainAxis:k,altAxis:k}:Object.assign({mainAxis:0,altAxis:0},k),B=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,E={x:0,y:0};if(_){if(r){var M,C="y"===v?w:O,P="y"===v?x:j,W="y"===v?"height":"width",A=_[v],F=A+h[C],S=A-h[P],D=l?-y[W]/2:0,R=u===L?g[W]:y[W],$=u===L?-y[W]:-g[W],H=e.elements.arrow,U=l&&H?V(H):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},G=N[C],K=N[P],Q=et(0,g[W],U[W]),J=f?g[W]/2-D-Q-G-z.mainAxis:R-Q-G-z.mainAxis,X=f?-g[W]/2+D+Q+K+z.mainAxis:$+Q+K+z.mainAxis,Z=e.elements.arrow&&Y(e.elements.arrow),ot=null!=(M=null==B?void 0:B[v])?M:0,nt=A+X-ot,rt=et(l?T(F,A+J-ot-(Z?"y"===v?Z.clientTop||0:Z.clientLeft||0:0)):F,A,l?I(S,nt):S);_[v]=rt,E[v]=rt-A}if(s){var at,st=_[m],ct="y"===m?"height":"width",lt=st+h["x"===v?w:O],pt=st-h["x"===v?x:j],dt=-1!==[w,O].indexOf(b),ht=null!=(at=null==B?void 0:B[m])?at:0,bt=dt?lt:st-g[ct]-y[ct]-ht+z.altAxis,ut=dt?st+g[ct]+y[ct]-ht-z.altAxis:pt,ft=l&&dt?function(t,e,o){var n=et(t,e,o);return n>o?o:n}(bt,st,ut):et(l?bt:lt,st,l?ut:pt);_[m]=ft,E[m]=ft-st}e.modifiersData[n]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,o=t.state,n=t.name,i=t.options,r=o.elements.arrow,a=o.modifiersData.popperOffsets,s=q(o.placement),c=tt(s),l=[O,j].indexOf(s)>=0?"height":"width";if(r&&a){var p=function(t,e){return ot("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:nt(t,z))}(i.padding,o),d=V(r),h="y"===c?w:O,b="y"===c?x:j,u=o.rects.reference[l]+o.rects.reference[c]-a[c]-o.rects.popper[l],f=a[c]-o.rects.reference[c],v=Y(r),m=v?"y"===c?v.clientHeight||0:v.clientWidth||0:0,_=m/2-d[l]/2+(u/2-f/2),g=et(p[h],_,m-d[l]-p[b]);o.modifiersData[n]=((e={})[c]=g,e.centerOffset=g-_,e)}},effect:function(t){var e=t.state,o=t.options.element,n=void 0===o?"[data-popper-arrow]":o;null!=n&&("string"!=typeof n||(n=e.elements.popper.querySelector(n)))&&G(e.elements.popper,n)&&(e.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,o=t.name,n=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,a=yt(e,{elementContext:"reference"}),s=yt(e,{altBoundary:!0}),c=jt(a,n),l=jt(s,i,r),p=Ot(c),d=Ot(l);e.modifiersData[o]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:p,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}}]});const Ct=class{constructor(e){t(this,e),this.balChange=i(this,"balChange"),this.balWillAnimate=i(this,"balWillAnimate"),this.balDidAnimate=i(this,"balDidAnimate"),this.balPopoverPrepare=i(this,"balPopoverPrepare"),this.popoverId="bal-po-"+Pt++,this.isTouch=p.isTouch,this.isInMainNav=!1,this.backdropHeight=0,this.autoTrigger=!1,this.hint=!1,this.hover=!1,this.arrow=!1,this.backdrop=!1,this.tooltip=!1,this.offsetX=0,this.offsetY=0,this.padding=0,this.position="bottom-start",this.active=!1,this.mobileTop=!1}createLogger(t){this.log=t}async activeChanged(t,e){!0===t&&t!==e?this.present({force:!0}):this.dismiss({force:!0})}componentWillLoad(){this.backdropHeight=this.getBackdropHeight(),this.triggerElement.setAttribute("aria-haspopup","true")}componentDidLoad(){if(this.isInMainNav=null!==this.footMobileNav,this.triggerElement&&this.menuElement){this.popperInstance=Mt(this.triggerElement,this.menuElement,{placement:this.tooltip?"bottom":this.position,modifiers:[this.modifierOffset,this.modifierPreventOverflow]});let t=[],e=[];this.autoTrigger&&(t=["click"]),this.tooltip&&(t=["mouseenter","focus"],e=["mouseleave","blur"]),t.forEach((t=>{this.triggerElement&&this.triggerElement.addEventListener(t,"click"===t?()=>this.toggle():()=>this.present())})),e.forEach((t=>{this.triggerElement&&this.triggerElement.addEventListener(t,(()=>this.dismiss()))}))}}componentDidRender(){this.popperInstance&&(this.popperInstance.setOptions((t=>Object.assign(Object.assign({},t),{placement:this.tooltip?"bottom":this.position,modifiers:[...t.modifiers.filter((t=>"offset"!==t.name&&"preventOverflow"!==t.name)),this.modifierOffset,this.modifierPreventOverflow]}))),this.updatePopper()),f.isSafari&&!this.isTouch&&(clearTimeout(this.componentDidRenderTimer),this.componentDidRenderTimer=setTimeout((()=>{var t;const e=null===(t=this.el)||void 0===t?void 0:t.clientWidth;this.el.style.maxWidth=e?`${e}px`:"initial"})))}handlePopoverPrepare(t){this.popoverId!==t.detail&&this.dismiss()}async clickOnOutside(t){var e;this.active&&(this.el.contains(t.target)||(this.active=!1),(null===(e=this.backdropElement)||void 0===e?void 0:e.isEqualNode(t.target))&&(this.active=!1))}handleKeyUp(t){!this.active||"Escape"!==t.key&&"Esc"!==t.key||(t.preventDefault(),this.dismiss())}async tabOutside(t){"Tab"===t.key&&!this.el.contains(document.activeElement)&&this.active&&await this.toggle()}breakpointListener(t){this.isTouch=t.touch,this.isInMainNav=null!==this.footMobileNav,this.backdropHeight=this.getBackdropHeight()}async present(t={force:!1}){var e,o;this.active&&!t.force||(null===(e=this.menuElement)||void 0===e||e.setAttribute("data-show",""),null===(o=this.menuElement)||void 0===o||o.setAttribute("aria-hidden","false"),this.menuInnerElement&&this.menuInnerElement.scrollTo(0,0),this.balPopoverPrepare.emit(this.popoverId),this.balWillAnimate.emit(this.active),this.active=!0,this.popperInstance.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!0}]}))),this.updatePopper(),this.balChange.emit(this.active),this.balDidAnimate.emit(this.active))}async dismiss(t={force:!1}){var e,o;(this.active||t.force)&&(null===(e=this.menuElement)||void 0===e||e.removeAttribute("data-show"),null===(o=this.menuElement)||void 0===o||o.setAttribute("aria-hidden","true"),this.balWillAnimate.emit(this.active),this.active=!1,this.popperInstance.setOptions((t=>Object.assign(Object.assign({},t),{modifiers:[...t.modifiers,{name:"eventListeners",enabled:!1}]}))),this.updatePopper(),this.balChange.emit(this.active),this.balDidAnimate.emit(this.active))}async toggle(t={force:!1}){this.active?await this.dismiss(t):await this.present(t)}get footMobileNav(){return this.el.closest('[slot="meta-mobile-foot"]')}get modifierOffset(){return{name:"offset",options:{offset:[this.offsetX,this.offsetY+(this.tooltip||this.arrow?8:0)]}}}get modifierPreventOverflow(){return{name:"preventOverflow",options:{padding:this.arrow||this.tooltip?8:this.padding,altAxis:!0}}}get triggerElement(){return this.el.querySelector("[bal-popover-trigger]")}get menuElement(){return this.el.querySelector("bal-popover-content")}get menuInnerElement(){return this.el.querySelector(".bal-popover__content__inner")}getBackdropHeight(){return f.hasWindow?this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16:0}updatePopper(){this.popperInstance.update()}render(){const t=s.block("popover");return e(o,{key:"f4b281b4ca30365ec4b279c3e219a0109edc173d","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("active").class(this.active)),t.modifier("tooltip").class(this.tooltip)),t.modifier("arrow").class(this.arrow)),t.modifier("hint").class(this.hint)),t.modifier("backdrop").class(this.backdrop))},!this.mobileTop&&e("div",{key:"d40df31685649965a301ada5e1c7e7f2a629596c",ref:t=>{this.backdropElement=t},class:Object.assign({},t.element("backdrop").class(this.backdrop&&this.active)),style:{"--bal-popover-backdrop-height":`${this.backdropHeight}rem`}}),e("slot",{key:"04ec4d9a6c214d1c14a436906e80dc721349ab78"}))}get el(){return n(this)}static get watchers(){return{active:["activeChanged"]}}};r([v("bal-popover"),a("design:type",Function),a("design:paramtypes",[Function]),a("design:returntype",void 0)],Ct.prototype,"createLogger",null),r([b(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],Ct.prototype,"breakpointListener",null);let Pt=0;Ct.style='.bal-popover__backdrop{bottom:0;left:0;position:absolute;right:0;top:0}:root{--bal-popover-backdrop-height:100vh;--bal-popover-content-height-top-nav:100vh;--bal-popover-backdrop-background:var(--bal-color-primary-6);--bal-popover-backdrop-opacity:.8;--bal-popover-content-shadow:var(--bal-shadow-normal);--bal-popover-content-background:var(--bal-color-white);--bal-popover-content-background-grey:var(--bal-color-grey-2);--bal-popover-tooltip-background:var(--bal-color-primary-6);--bal-popover-tooltip-color:var(--bal-color-white);--bal-popover-tooltip-font-family:var(--bal-font-family-text);--bal-popover-tooltip-font-size:var(--bal-text-size-small)}.bal-popover{display:block}@media screen and (max-width: 768px){.bal-popover .bal-popover__content{min-width:100vw !important}.bal-popover .bal-select__popover{min-width:100% !important}}.bal-popover--active .bal-popover__content{display:block}.bal-popover--backdrop [bal-popover-trigger]{z-index:calc(var(--bal-z-index-popup) - 1);position:relative}@media screen and (max-width: 768px){.bal-popover--hint .bal-popover__content{min-height:100vh}.bal-popover--hint .bal-popover__content .bal-popover__content__inner{min-height:100vh}}@media screen and (min-width: 769px),print{.bal-popover--hint .bal-popover__content{max-width:20rem}}@media screen and (min-width: 1024px){.bal-popover--hint .bal-popover__content{max-width:30rem}}.bal-popover__backdrop{z-index:calc(var(--bal-z-index-popup) - 2);position:fixed;background:var(--bal-popover-backdrop-background);opacity:var(--bal-popover-backdrop-opacity);height:var(--bal-popover-backdrop-height);width:100vw}.bal-popover__content{display:none;z-index:var(--bal-z-index-popup);-webkit-box-shadow:var(--bal-popover-content-shadow);box-shadow:var(--bal-popover-content-shadow);background:var(--bal-popover-content-background);min-width:16.25rem}.bal-popover__content[data-show]{display:block}.bal-popover__content--expanded{min-width:100%}.bal-popover__content--no-shadow{-webkit-box-shadow:none;box-shadow:none}.bal-popover__content--radius-normal{border-radius:var(--bal-radius-normal)}.bal-popover__content--radius-large{border-radius:var(--bal-radius-large)}.bal-popover__content--radius-none{border-radius:0}.bal-popover__content--radius-normal-bottom-none{border-radius:var(--bal-radius-normal);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-normal-top-none{border-radius:var(--bal-radius-normal);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--radius-large-bottom-none{border-radius:var(--bal-radius-large);border-bottom-right-radius:0;border-bottom-left-radius:0}.bal-popover__content--radius-large-top-none{border-radius:var(--bal-radius-large);border-top-left-radius:0;border-top-right-radius:0}.bal-popover__content--on-top{border-top:1px solid var(--bal-color-grey-2);height:var(--bal-popover-content-height-top-nav);overflow-y:auto}.bal-popover__content--color-grey{background:var(--bal-popover-content-background-grey)}.bal-popover__content__inner{max-height:calc(100vh - 4.5rem);overflow:auto;padding:1rem}@media screen and (min-width: 769px),print{.bal-popover__content__inner{padding:1.5rem}}@media screen and (min-width: 1024px){.bal-popover__content__inner{max-height:calc(100vh - 8rem)}}.bal-popover__content--spaceless .bal-popover__content__inner{padding:0}.bal-popover__content [data-popper-arrow]{display:none}.bal-popover__content__arrow{visibility:hidden}.bal-popover__content__arrow [data-popper-arrow]{display:block}.bal-popover__content__arrow,.bal-popover__content__arrow:before{position:absolute;width:.5rem;height:.5rem;background:inherit}.bal-popover__content__arrow:before{visibility:visible;content:"";-webkit-transform:rotate(45deg);transform:rotate(45deg)}.bal-popover__content[data-popper-placement^=top]>.bal-popover__content__arrow{bottom:-0.25rem}.bal-popover__content[data-popper-placement^=bottom]>.bal-popover__content__arrow{top:-0.25rem}.bal-popover__content[data-popper-placement^=left]>.bal-popover__content__arrow{right:-0.25rem}.bal-popover__content[data-popper-placement^=right]>.bal-popover__content__arrow{left:-0.25rem}.bal-popover--arrow .bal-popover__content__arrow{display:block}.bal-popover--tooltip .bal-popover__content{min-width:unset;background:var(--bal-popover-tooltip-background)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner{padding:var(--bal-space-x-small)}.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner,.bal-popover--tooltip .bal-popover__content .bal-popover__content__inner p{color:var(--bal-popover-tooltip-color);font-family:var(--bal-popover-tooltip-font-family);font-size:var(--bal-popover-tooltip-font-size)}';const Wt=class{constructor(e){t(this,e),this.isTouch=p.isTouch,this.spaceless=!1,this.scrollable=0,this.contentWidth=0,this.contentMinWidth=0,this.color="white",this.expanded=!1,this.radius="normal",this.noShadow=!1,this.mobileTop=!1,this.contentHeightOnTop=0}breakpointListener(t){f.hasWindow&&(this.contentHeightOnTop=window.innerHeight-64)}get innerStyle(){let t={};return this.scrollable>0&&(t={"max-height":`${this.scrollable}px`,overflow:"auto"}),Object.assign({},t)}get contentStyle(){let t={},e={};const o={"--bal-popover-content-height-top-nav":this.contentHeightOnTop/16+"rem"};return this.contentWidth>0&&(t={"max-width":`${this.contentWidth}px`}),this.contentMinWidth>0&&(e={"min-width":`${this.contentMinWidth}px`}),Object.assign(Object.assign(Object.assign({},t),e),o)}componentWillLoad(){f.hasWindow&&(this.contentHeightOnTop=window.innerHeight-64)}render(){const t=s.block("popover").element("content");return e(o,{key:"bc08fb0e5736f9393c5396af4a84f1127b6e4c4e",class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},t.class()),t.modifier("expanded").class(this.expanded)),t.modifier("spaceless").class(this.spaceless)),t.modifier("no-shadow").class(this.noShadow)),t.modifier(`radius-${this.radius}`).class()),t.modifier(`color-${this.color}`).class()),t.modifier("on-top").class(this.mobileTop)),"data-testid":"bal-popover-content",role:"tooltip",style:this.contentStyle},e("div",{key:"f49ffa520c2e1cc95942973939eeff059900a9bc",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},e("slot",{key:"3394b3dd89ce64a0d379e66b1ffb169e9f0401c4"})),e("div",{key:"5f75d67a77ae49667c3863b738bdc03d1dcb8121",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":!0}))}get el(){return n(this)}};r([b(),a("design:type",Function),a("design:paramtypes",[Object]),a("design:returntype",void 0)],Wt.prototype,"breakpointListener",null);export{m as bal_hint,g as bal_hint_text,y as bal_hint_title,Ct as bal_popover,Wt as bal_popover_content}
@@ -1 +1 @@
1
- import{r,h as a,H as e,g as o}from"./p-BdVwMG9u.js";import{_ as s,a as l}from"./p-dfXERft2.js";import{B as b}from"./p-ByiN-QjD.js";import{m as i}from"./p-Ba5qjFjW.js";import{b as n}from"./p-ReLIdwsB.js";import{L as t}from"./p-CgBveYeB.js";import{L as g}from"./p-COIM5Kkz.js";import"./p-B1u-Mq75.js";import"./p-D7M-7v58.js";import"./p-MBsgW7uz.js";import"./p-C20cwFWy.js";import"./p-Cf90NR4z.js";const p=class{constructor(a){r(this,a),this.animated=!0,this.isTouch=n.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&&i((()=>{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=b.block("progress-bar"),o=r.element("line");return a(e,{key:"3560c076e654839526d357edec7f7d605793d9b0","aria-hidden":"true",class:Object.assign(Object.assign({},r.class()),r.modifier(`background-${this.background}-of-${this.color}`).class())},a("div",{key:"d89c4e6cf2d0c12abd70696606c47f03de988889",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(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],p.prototype,"breakpointListener",null),s([g(),l("design:type",Function),l("design:paramtypes",[]),l("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-BdVwMG9u.js";import{_ as s,a as l}from"./p-dfXERft2.js";import{B as b}from"./p-ByiN-QjD.js";import{m as n}from"./p-Ba5qjFjW.js";import{b as i}from"./p-DmVt6SeJ.js";import{L as t}from"./p-Ere8qsaI.js";import{L as g}from"./p-Dn1vzM6-.js";import"./p-B1u-Mq75.js";import"./p-D7M-7v58.js";import"./p-MBsgW7uz.js";import"./p-C20cwFWy.js";import"./p-C9EQ_6RZ.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=b.block("progress-bar"),o=r.element("line");return a(e,{key:"3560c076e654839526d357edec7f7d605793d9b0","aria-hidden":"true",class:Object.assign(Object.assign({},r.class()),r.modifier(`background-${this.background}-of-${this.color}`).class())},a("div",{key:"d89c4e6cf2d0c12abd70696606c47f03de988889",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(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],p.prototype,"breakpointListener",null),s([g(),l("design:type",Function),l("design:paramtypes",[]),l("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
- var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function a(){this.constructor=e}e.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}();var __awaiter=this&&this.__awaiter||function(t,e,n,a){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function l(t){try{s(a.next(t))}catch(t){r(t)}}function o(t){try{s(a["throw"](t))}catch(t){r(t)}}function s(t){t.done?n(t.value):i(t.value).then(l,o)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,i,r,l=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return l.next=o(0),l["throw"]=o(1),l["return"]=o(2),typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(t){return function(e){return s([t,e])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(l&&(l=0,o[0]&&(n=0)),n)try{if(a=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];i=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var a=0,i=e.length,r;a<i;a++){if(r||!(a in e)){if(!r)r=Array.prototype.slice.call(e,0,a);r[a]=e[a]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-PNu_g_s6.system.js","./p-Cjiw70Dk.system.js","./p-BbAtjg9Y.system.js","./p-D1opIX9W.system.js","./p-4Y53iwfN.system.js","./p-Dxz8zGB7.system.js","./p-CpWDVANq.system.js","./p-CDeyBUqm.system.js","./p-BblIE2Vz.system.js","./p-BpMXwP_q.system.js","./p-xlS5vO33.system.js","./p-DKjTFqnu.system.js","./p-m5GX4h3i.system.js","./p-CLfE_o7e.system.js","./p-CLDmOIBx.system.js","./p-Dd7xQwRJ.system.js","./p-CGJ8YYiA.system.js","./p-D7_eHNTI.system.js","./p-BM_oHMik.system.js","./p-Bzy18UgU.system.js","./p-BCtb7Ny9.system.js","./p-DdX8FaaK.system.js","./p-DDPYMMGG.system.js"],(function(t){"use strict";var e,n,a,i,r,l,o,s,u,c,d,f,h,b,v,_,m,g,y,p,w,k,j,x,O,C,D;return{setters:[function(t){e=t.h;n=t.r;a=t.c;i=t.H;r=t.g},function(t){l=t._;o=t.a},function(t){s=t.B},function(t){u=t.a;c=t.q},function(t){d=t.L},function(t){f=t.p},function(t){h=t.i},function(t){b=t.B;v=t.i;_=t.d},function(t){m=t.d},function(t){g=t.L},function(t){y=t.L},function(t){p=t.a},function(t){w=t.i},function(t){k=t.d},function(t){j=t.l;x=t.c;O=t.d},function(t){C=t.N},function(t){D=t.I},null,null,null,null,null,null],execute:function(){function z(t,e){if(e<1||t<0){return undefined}return new Date(t,e,0).getDate()}function M(t,e,n){return"".concat(n,"-").concat(f("".concat(e),2,"0"),"-").concat(f("".concat(t),2,"0"))}function A(){var t=new Date;return"".concat(t.getFullYear(),"-").concat(f("".concat(t.getMonth()+1),2,"0"),"-").concat(f("".concat(t.getDate()),2,"0"))}function P(t,e,n,a,i){var r=[];var l=z(t,e);var o=F(t,e);if(l!==undefined&&o){var s=A();var u=b.fromISO(n);var c=b.fromISO(a);var d=function(t){if(h(i)){return false}return!i(t)};for(var f=1;f<=l;f++){var v=M(f,e,t);r.push({day:f,month:e,year:t,isoDate:v,fullDate:b.fromISO(v).toFormat(),today:s===v,disabled:u.isAfter(v)||c.isBefore(v)||d(v)})}}return r}function I(t,e){if(e<1||t<0){return 1}var n=new Date(t,e-1,1);var a=n.getDay();return a===0?7:a}function K(t){if(["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)){return t}return"de"}function S(t,e,n){var a=[];var i=new Date;var r=i.getFullYear();for(var l=e;l<=n;l++){a.push({value:l,label:"".concat(l),disabled:false,today:r===l,selected:t===l})}return a}function V(t,e,n,a,i){var r=K(t);var l=b.infoMonths({format:"long",locale:r});var o=b.fromISO(n);var s=new Date;var u=s.getFullYear();var c=s.getMonth()+1;var d=0;if(a&&e!==undefined){var f=b.fromISO(a);if(f.isValid){if(e>f.year){d=0}else{d=f.month||d}}}var h=12;if(i&&e!==undefined){var v=b.fromISO(i);if(v.isValid){if(e<v.year){h=12}else{h=v.month||h}}}return l.map((function(t,n){var a=n+1;return{label:t,value:a,today:a===c&&e===u,selected:a===o.month&&e===o.year,disabled:a<d||a>h}}))}function B(t){var e=K(t);var n=b.infoWeekdays({format:"short",locale:e});var a=b.infoWeekdays({format:"long",locale:e});return n.map((function(t,e){return{ariaLabel:a[e],textContent:t}}))}function F(t,e){if(e<1||e>12||t<0){return undefined}return new Date(t,e-1,1)}var L=function(t){var n=t.isVisible,a=t.ref,i=t.grid,r=t.weekdays,l=t.selectedDate,o=t.firstDayOfWeek,u=t.onSelectDay;var c=s.block("date-calendar");var d=c.element("body");var f=d.element("grid");return e("div",{role:"grid",class:Object.assign(Object.assign({},f.class()),f.modifier("visible").class(n)),"aria-hidden":n?"false":"true",ref:function(t){return a(t)}},e("div",{role:"row",class:Object.assign({},f.element("head").class())},r.map((function(t){return e("span",{key:t.textContent,role:"columnheader","aria-label":t.ariaLabel,title:t.ariaLabel},t.textContent)}))),e("div",{role:"row",class:Object.assign({},f.element("body").class()),style:{"--bal-date-first-week-day":"".concat(o)}},i.map((function(t){return e("bal-date-calendar-cell",Object.assign({key:t.isoDate},t,{selected:t.isoDate===l,onBalSelectDay:function(t){var e=t.detail;return u(e)}}))}))))};var N=function(t){var n=t.name,a=t.isVisible,i=t.girdHeight,r=t.list,l=t.onSelect,o=t.ref;var u=s.block("date-calendar");var c=u.element("body");var d=c.element("list");return e("ul",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier(n).class()),d.modifier("visible").class(a)),"aria-hidden":a?"false":"true",style:{height:"".concat(i-2-8-8,"px")},ref:function(t){return o?o(t):undefined}},r.map((function(t){return e("li",{key:t.value,id:"".concat(n,"-").concat(t.value)},e("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},d.element("item").class()),d.element("item").modifier("today").class(t.today)),d.element("item").modifier("selected").class(t.selected)),d.element("item").modifier("disabled").class(t.disabled)),disabled:t.disabled,tabIndex:-1,onClick:function(){if(!t.disabled){l(t)}}},t.label))})))};var T=function(t){var n=t.language,a=t.onClickSelectMonthAndYear,i=t.monthFullNames,r=t.month,l=t.year,o=t.isCalendarVisible,u=t.isListVisible,c=t.onClickPreviousMonth,d=t.onClickNextMonth;var f=s.block("date-calendar");var h=f.element("nav");var b=v[n].nextMonth;var _=v[n].previousMonth;var m=v[n].selectMonth;return e("div",{class:Object.assign({},h.class())},e("div",{class:Object.assign({},h.modifier("start").class())},e("button",{title:m,"aria-label":m,tabIndex:-1,"data-testid":"change-year-month",onClick:a},e("span",null,i[r-1]," ",l),e("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:o}))),e("div",{class:Object.assign({},h.modifier("end").class()),style:{display:u?"none":"flex"}},e("button",{title:_,"aria-label":_,onClick:c,tabIndex:-1,"data-testid":"previous-month"},e("bal-icon",{name:"caret-left",color:"primary",size:"small"})),e("button",{title:b,"aria-label":b,onClick:d,tabIndex:-1,"data-testid":"next-month"},e("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))};var Y=':host{--bal-date-first-week-day:0;--bal-date-calendar-button-background:transparent;--bal-date-calendar-button-background-hover:var(--bal-color-light-blue-1);--bal-date-calendar-button-background-active:var(--bal-color-light-blue-2);--bal-date-calendar-button-color:var(--bal-color-text-primary);--bal-date-calendar-button-today-color:var(--bal-color-light-blue-3);--bal-date-calendar-button-today-color-hover:var(--bal-color-text-primary);--bal-date-calendar-button-today-color-active:var(--bal-color-text-primary);--bal-date-calendar-button-selected-background:var(--bal-color-primary);--bal-date-calendar-button-selected-color:var(--bal-color-text-white)}: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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar__nav button--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.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-date-calendar-button-background-active)}.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-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.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-date-calendar-button-today-color-active)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar-cell--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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)}';var E=t("bal_date_calendar",function(){function t(t){var e=this;n(this,t);this.balChange=a(this,"balChange");this.oldMin="";this.oldMax="";this.selectedDate="";this.monthFullNames=[];this.weekdays=[];this.months=[];this.years=[];this.calendarGrid=[];this.firstDayOfWeek=0;this.month=0;this.year=0;this.language=m.language;this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;this.allowedDates=undefined;this.onSelectDay=function(t){e.valueChanged(t,e.selectedDate);e.balChange.emit(e.selectedDate)};this.onClickNextMonth=function(){var t=e.year;var n=e.month+1;if(n>12){n=1;t=t+1}e.generateGridByMonthAndYear(n,t)};this.onClickPreviousMonth=function(){var t=e.year;var n=e.month-1;if(n<1){n=12;t=t-1}e.generateGridByMonthAndYear(n,t)};this.onClickSelectMonthAndYear=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;return __generator(this,(function(n){switch(n.label){case 0:this.updateSelections();if(!(this.isCalendarVisible===true))return[3,2];this.isCalendarVisible=false;this.isYearListVisible=true;this.isMonthListVisible=false;return[4,u()];case 1:n.sent();if(this.yearListEl){t=this.yearListEl.querySelector("#year-".concat(this.year));if(t){e=26+8+4;this.yearListEl.scrollTop=t.offsetTop-e*2}else{this.yearListEl.scrollTop=0}}return[3,3];case 2:this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;n.label=3;case 3:return[2]}}))}))};this.onClickYear=function(t){e.isYearListVisible=false;e.isMonthListVisible=true;e.generateGridByMonthAndYear(e.month,t);e.months=V(e.language,t,e.selectedDate,e.min,e.max)};this.onClickMonth=function(t){e.isYearListVisible=false;e.isMonthListVisible=false;e.isCalendarVisible=true;e.generateGridByMonthAndYear(t,e.year)}}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){if(t!==e){var n=b.fromISO(t);if(!n.isValid){this.generateGridByDefaultDate();this.selectedDate=""}else{this.generateGridByDate(n);this.selectedDate=n.toISODate()}this.updateSelections()}};t.prototype.rangePropChanged=function(){this.updateSelections();this.generateGrid()};t.prototype.yearRangePropChanged=function(){this.updateSelections()};t.prototype.connectedCallback=function(){this.generateGridByDefaultDate();this.valueChanged(this.value,undefined)};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=t.language;this.monthFullNames=b.infoMonths({format:"long",locale:this.language});this.weekdays=B(this.language);this.updateSelections();return[2]}))}))};t.prototype.swipeListener=function(t){var e=t.left,n=t.right;if(e){this.onClickNextMonth()}else if(n){this.onClickPreviousMonth()}};Object.defineProperty(t.prototype,"minYear",{get:function(){if(this.minYearProp===undefined){var t=new Date;var e=t.getFullYear();var n=e-100;if(this.min){var a=b.fromISO(this.min);return a.year||n}else{return n}}return this.minYearProp},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxYear",{get:function(){if(this.maxYearProp===undefined){var t=new Date;var e=t.getFullYear();var n=e+50;if(this.max){var a=b.fromISO(this.max);return a.year||n}else{return n}}return this.maxYearProp},enumerable:false,configurable:true});t.prototype.updateSelections=function(){this.years=S(this.year,this.minYear,this.maxYear);this.months=V(this.language,this.year,this.selectedDate,this.min,this.max)};t.prototype.generateGrid=function(){var t=b.fromISO(this.value);if(t.isValid){this.generateGridByDate(t)}else{this.generateGridByDefaultDate()}};t.prototype.generateGridByDate=function(t){if(t.year!==undefined&&t.month!==undefined){this.generateGridByMonthAndYear(t.month,t.year)}};t.prototype.generateGridByDefaultDate=function(){var t=b.fromISO(this.defaultDate);if(t.isValid){this.generateGridByDate(t)}else{var e=new Date;this.month=e.getMonth()+1;this.year=e.getFullYear();this.calendarGrid=P(this.year,this.month,this.min,this.max,this.allowedDates);this.firstDayOfWeek=I(this.year,this.month)}};t.prototype.generateGridByMonthAndYear=function(t,e){if(this.month!==t||this.year!==e||this.oldMin!==this.min||this.oldMax!==this.max){this.calendarGrid=P(e,t,this.min,this.max,this.allowedDates);this.firstDayOfWeek=I(e,t)}this.month=t;this.year=e;this.oldMin=this.min;this.oldMax=this.max};t.prototype.render=function(){var t=this;var n;var a=((n=this.gridEl)===null||n===void 0?void 0:n.clientHeight)||0;var r=s.block("date-calendar");var l=r.element("body");var o=r.element("foot");return e(i,{key:"34efddf3c88e5470dcefd22c5cab262873d07de8",class:Object.assign({},r.class())},e(T,{key:"9c8942a95ff9f1c8fdc8b1e153a29632145d1c2b",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}),e("div",{key:"6a2cb7bba9c0568c1dc31d8b1c811b90c5845dce",class:Object.assign({},l.class())},e(L,{key:"a687e1e1f80bc8ea21bdc7ad4709537829005843",isVisible:this.isCalendarVisible,grid:this.calendarGrid,weekdays:this.weekdays,firstDayOfWeek:this.firstDayOfWeek,selectedDate:this.selectedDate,ref:function(e){return t.gridEl=e},onSelectDay:function(e){return t.onSelectDay(e)}}),e(N,{key:"cba1e282fb92f5edfa04e97eefcf9b38b57b8428",name:"year",isVisible:this.isYearListVisible,girdHeight:a,list:this.years,ref:function(e){return t.yearListEl=e},onSelect:function(e){return t.onClickYear(e.value)}}),e(N,{key:"ae7cb47aaffec3d3a91d1aab96f1fbdde34b7e6f",name:"month",isVisible:this.isMonthListVisible,girdHeight:a,list:this.months,onSelect:function(e){return t.onClickMonth(e.value)}})),e("div",{key:"6e455964845a4e57abc793cb78916ed51fa0bdb3",class:Object.assign({},o.class())},e("slot",{key:"277a09ef4cb10f6f051c84b1ba9f9ae79f0d3479"})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"],min:["rangePropChanged"],max:["rangePropChanged"],minYearProp:["yearRangePropChanged"],maxYearProp:["yearRangePropChanged"]}},enumerable:false,configurable:true});return t}());l([d("bal-date-calendar"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],E.prototype,"createLogger",null);l([g(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],E.prototype,"configChanged",null);l([y({mobileOnly:true}),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],E.prototype,"swipeListener",null);E.style=Y;var G=function(){function t(t){this._options=t;this._position=0;this._positionEnd=0;this._isRangeSelection=false;if(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}}Object.defineProperty(t.prototype,"isRangeSelection",{get:function(){return this._isRangeSelection},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){if(this._options.isBackspace&&this._position>0){return this._position-1}return this._position},set:function(t){var e=t<0?0:t>this._options.mask.maxLength?this._options.mask.maxLength:t;this._position=e},enumerable:false,configurable:true});t.prototype.toStart=function(){this.value=0};t.prototype.toEnd=function(){var t=this.getTarget();if(t){this.value=t.value.length}};t.prototype.next=function(t){if(t===void 0){t=1}var e=this._position+t;if(e<=this._options.mask.maxLength){this._position=e}return this._position};t.prototype.previous=function(t){if(t===void 0){t=1}var e=this._position-t;if(e>=0){this._position=e}else{this._position=0}return this._position};t.prototype.submit=function(){var t=this.getTarget();if(t&&t.selectionStart!==this._position&&t.selectionEnd!==this._position){t.selectionStart=this._position;t.selectionEnd=this._position}};t.prototype.getTarget=function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined};return t}();var H=function(){function t(t){this._options=t;this._value="";if(this._options.component&&this._options.component.nativeInput){this._value=this._options.component.nativeInput.value}this.position=new G(this._options);this.component=this._options.component}Object.defineProperty(t.prototype,"target",{get:function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"focused",{get:function(){return this._options.component.focused},enumerable:false,configurable:true});t.prototype.isValueEmpty=function(){return this.value===""||this.value===undefined||this.value===null};t.prototype.preventDefault=function(){if(this._options.event.preventDefault){this._options.event.preventDefault()}};t.prototype.stopPropagation=function(){this.preventDefault();if(this._options.event.stopPropagation){this._options.event.stopPropagation()}};t.prototype.submit=function(){return __awaiter(this,arguments,void 0,(function(t,e){if(t===void 0){t="input"}return __generator(this,(function(n){if(this.target){this.target.value=this.value;if(t!=="blur"&&t!=="tab"){this.position.submit()}if(this._options.component){if(t==="input"||t==="tab"){this._options.component.balInput.emit(this.value)}if((t==="change"||t==="blur")&&e!==undefined){if(j(this._options.component.value,e)){this._options.component.value=e;this._options.component.balChange.emit(e)}}}}return[2]}))}))};return t}();var R=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"clipboardData",{get:function(){var t;return(t=this._options.event.clipboardData)===null||t===void 0?void 0:t.getData("text")},enumerable:false,configurable:true});return e}(H);var q=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(H);var J=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"key",{get:function(){return this._options.event.key},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCtrlOrCommandKey",{get:function(){return this._options.event.metaKey||this._options.event.ctrlKey},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBackspaceKey",{get:function(){return this._options.event.key==="Backspace"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isTabKey",{get:function(){return this._options.event.key==="Tab"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isWhiteSpaceKey",{get:function(){return this._options.event.key===" "},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDeleteKey",{get:function(){return this._options.event.key==="Delete"||this._options.event.key==="Del"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNumberKey",{get:function(){return e.NUMBER_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNavigationKey",{get:function(){return e.NAVIGATION_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSelectAllCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="a"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCopyCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="c"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isPasteCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="v"},enumerable:false,configurable:true});e.prototype.getCharAt=function(t){if(t===void 0){t=this.position.value}return this.value.charAt(t)};e.prototype.getCharAtBackspacePosition=function(){return this.getCharAt(this.position.value-1)};e.prototype.setChar=function(t,e){if(t===void 0){t=this._options.event.key}if(e===void 0){e=this.position.value}this.value=this.value.substring(0,e)+t+this.value.substring(e+1)};return e}(H);J.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"];J.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];var W=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"locale",{get:function(){return this._options.event.locale},enumerable:false,configurable:true});return e}(H);var X=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(H);var U=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"newValue",{get:function(){return this._options.event.newValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"oldValue",{get:function(){return this._options.event.oldValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"didValueChange",{get:function(){return this.newValue!==this.oldValue},enumerable:false,configurable:true});return e}(H);var Q=function(){function t(t){this._isSeparator=false;this._allowedKeys=[];this._locale="de-CH";this._from=t.from||0;this._to=t.to||0;this._isSeparator=t.isSeparator===undefined?false:t.isSeparator;this._mask=t.mask||"_";this._allowedKeys=t.allowedKeys?t.allowedKeys:this.allowedKeys;this._format=t.format}t.prototype.format=function(t){if(this._format){return this._format(t.replace(this.mask,""),this._locale,this.mask)}return t};Object.defineProperty(t.prototype,"isSeparator",{get:function(){return this._isSeparator},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"to",{get:function(){return this._to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"from",{get:function(){return this._from},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mask",{get:function(){if(typeof this._mask==="function"){return this._mask(this._locale)}return this._mask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedKeys",{get:function(){return this._allowedKeys},enumerable:false,configurable:true});t.prototype.onI18nChange=function(t){this._locale=t};t.prototype.getValueOfTheBlock=function(t){return t.slice(this._from,this._to)};t.prototype.isTouched=function(t){var e=this;var n=this.getValueOfTheBlock(t);return!n.split("").every((function(t){return t===e.mask}))};t.prototype.verifyAllowedKeyHits=function(t){if(this.isSeparator&&t===this.mask){return true}else if(this.allowedKeys.indexOf(t)>=0){return true}else{return false}};return t}();var Z=function(){function t(t){if(t===void 0){t=[]}this._list=t}Object.defineProperty(t.prototype,"lastPosition",{get:function(){return this._list[this._list.length-1].to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t},enumerable:false,configurable:true});t.prototype.clone=function(){return new t(__spreadArray([],this._list,true))};t.prototype.findByIndex=function(t,e){if(e===void 0){e=this.list}return e.find((function(e){return e.from<=t&&t<e.to}))};t.prototype.getPlaceholderMask=function(){var t=[];this.list.forEach((function(e){var n=e.to-e.from;for(var a=0;a<n;a++){t.push(e.mask)}}));return t.join("")};t.prototype.getRawValueWithoutMaskByContext=function(t){return this.getRawValueWithoutMask(t.value)};t.prototype.getRawValueWithoutMask=function(t){if(t){var e=[];var n=t.split("");for(var a=0;a<n.length;a++){var i=n[a];var r=this.findByIndex(a);if(r&&!r.isSeparator){e.push(i.replace(r.mask,""))}else{e.push(i)}}e=e.filter((function(t){return t}));var l=this.list.filter((function(t){return t.isSeparator})).length;if(l===e.length){return""}return e.join("")}return""};t.prototype.formatBlocks=function(t,e){var n="".concat(t);for(var a=0;a<this.list.length;a++){var i=this.list[a];if(e!==a&&!i.isSeparator&&i.isTouched(n)){var r=i.getValueOfTheBlock(n);var l=i.format(r);n=n.substring(0,i.from)+l+n.substring(i.to)}}return n};t.prototype.getBlockIndexFromPosition=function(t){var e=this.list.reduce((function(t,e){return t+e.to-e.from}),0);if(t===e){return this.list.length-1}var n=this.list.findIndex((function(e){return e.from<=t&&t<e.to}));return n<0?undefined:Math.min(e,n)};t.prototype.verifyCallOfNextSeparator=function(t,e){if(this.list.length-1>e){var n=this.list[e+1];if(n.isSeparator&&n.mask===t){return true}}return false};return t}();var $=function(){function t(t){if(t===void 0){t=[]}this.inputMode="text";this.locale="de-CH";this.blocks=new Z(t)}t.prototype.onLocaleChange=function(t,e,n){if(t.target){var a=t.value;var i=a.split("");for(var r=0;r<i.length;r++){var l=i[r];var o=this.blocks.findByIndex(r);var s=n.findByIndex(r);if(o&&s){if(o.isSeparator){i[r]=o.mask}else if(l===s.mask){i[r]=o.mask}}}t.value=i.join("")}};t.prototype.onFocus=function(t){};t.prototype.onBlur=function(t){};t.prototype.onChange=function(t){t.submit("change",this.onParseValue(t.value))};t.prototype.onNavigationDown=function(t,e,n){};t.prototype.onSelectAll=function(t,e,n){};t.prototype.onPaste=function(t,e,n){var a=t.clipboardData||"";t.value=a;t.position.toEnd()};t.prototype.onBlockChange=function(t,e,n){t.setChar();t.position.next();var a=this.blocks.list[n+1];if(t.position.value===e.to&&a&&a.isSeparator){t.position.next()}};t.prototype.onBackspaceDown=function(t,e,n){t.position.previous();if(!e.isSeparator){t.setChar(e.mask);var a=this.blocks.list[n-1];if(t.position.value===e.from&&a&&a.isSeparator){t.position.previous()}}};t.prototype.onDeleteDown=function(t,e,n){t.setChar(e.mask);t.position.next();var a=this.blocks.list[n+1];if(t.position.value===e.to&&a&&a.isSeparator){t.position.next()}};t.prototype.onValueChanged=function(t){var e=this.onFormatValue(t.newValue);var n=t.focused&&e===""?this.blocks.getPlaceholderMask():e;t.value=n;t.position.toEnd()};t.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){return t.trim()}return t||""};t.prototype.onFormatValue=function(t){if(t){return t.trim()}return t||""};t.prototype.toParsedValue=function(t){return this.onParseValue(t)};t.prototype.toFormattedValue=function(t){return this.onFormatValue(t)};t.prototype.fireI18nChange=function(t){var e=this.blocks.clone();var n="".concat(t.locale);this.locale=t.locale;this.blocks.list.forEach((function(e){return e.onI18nChange(t.locale)}));this.onLocaleChange(t,n,e)};t.prototype.fireValueChanged=function(t){if(t.didValueChange){this.onValueChanged(t)}};t.prototype.firePaste=function(t){var e=this.blocks.getBlockIndexFromPosition(t.position.value);if(e!==undefined){var n=this.blocks.list[e];this.onPaste(t,n,e);this.onChange(t)}};t.prototype.fireClick=function(t){var e=this.blocks.getPlaceholderMask();if(e===t.value){t.position.toStart()}};t.prototype.fireFocus=function(t){if(t.target&&t.isValueEmpty()){this.resetInputValueWithMask(t)}this.onFocus(t)};t.prototype.fireBlur=function(t){if(t.target){if(this.isValueEmptyMask(t)){this.emptyInputValue(t)}else{this.onBlur(t);t.submit("blur",this.onParseValue(t.value,{allowInvalidValue:t.component.allowInvalidValue}))}}};t.prototype.fireKeyDown=function(t){var e=t.isBackspaceKey?Math.max(0,t.position.value-1):t.position.value;var n=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand){t.preventDefault();t.stopPropagation();return}if(n!==undefined&&!t.position.isRangeSelection){var a=this.blocks.list[n];if(t.isNavigationKey){this.onNavigationDown(t,a,n)}else if(t.isSelectAllCommand){this.onSelectAll(t,a,n)}else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey){t.preventDefault();this.onBackspaceDown(t,a,n)}else if(t.isDeleteKey){t.preventDefault();this.onDeleteDown(t,a,n)}else if(t.isWhiteSpaceKey){t.preventDefault();var i=t.value[t.position.value];if(i==="."){t.stopPropagation();var r=t.value;t.value=r.substring(0,t.position.value)+"_"+r.substring(t.position.value+1)}}else if(a.verifyAllowedKeyHits(t.key)){t.preventDefault();this.onBlockChange(t,a,n)}else if(this.blocks.verifyCallOfNextSeparator(t.key,n)){t.preventDefault();var l=this.blocks.list[n];if(t.position.value>l.from){var o=this.blocks.list[n+1];var r=t.value;var s=a.getValueOfTheBlock(r);var u=a.format(s);t.value=r.substring(0,a.from)+u+r.substring(a.to);t.position.value=o.to}}var c=this.blocks.getBlockIndexFromPosition(t.position.value);if(c&&!t.isBackspaceKey){var d=this.blocks.formatBlocks(t.value,c);var f=t.position.value;t.value=d;t.position.value=f}}else{if(!t.isTabKey){t.preventDefault()}if(t.isBackspaceKey||t.isDeleteKey){this.resetInputValueWithMask(t)}else if(this.blocks.list[0].verifyAllowedKeyHits(t.key)){this.onBlockChange(t,this.blocks.list[0],0)}}};t.prototype.resetInputValueWithMask=function(t){t.value=this.blocks.getPlaceholderMask();t.position.toStart()};t.prototype.isValueEmptyMask=function(t){var e=this.blocks.getPlaceholderMask();return e===t.value};t.prototype.emptyInputValue=function(t){t.value="";t.submit("blur",t.value)};return t}();var tt=function(t){__extends(e,t);function e(){var e=t.call(this,[new Q({from:0,to:2,allowedKeys:__spreadArray([],C,true),format:function(t,e,n){if(Number.isNaN(parseInt(t,10))){return"".concat(n).concat(n)}return t.padStart(2,"0")},mask:function(t){return e.dayMask[t.split("-")[0]]||e.dayMask["de"]}}),new Q({from:2,to:3,mask:function(t){return _(t)},isSeparator:true}),new Q({from:3,to:5,allowedKeys:__spreadArray([],C,true),format:function(t,e,n){if(Number.isNaN(parseInt(t,10))){return"".concat(n).concat(n)}return t.padStart(2,"0")},mask:function(t){return e.monthMask[t.split("-")[0]]||e.monthMask["de"]}}),new Q({from:5,to:6,mask:function(t){return _(t)},isSeparator:true}),new Q({from:6,to:10,allowedKeys:__spreadArray([],C,true),mask:function(t){return e.yearMask[t.split("-")[0]]||e.yearMask["de"]}})])||this;e.maxLength=10;e.minLength=10;e.inputMode="decimal";e.dayMask={de:"T",en:"D",fr:"J",it:"G",nl:"D",es:"D",pl:"D",pt:"D",sv:"D",fi:"M"};e.monthMask={de:"M",en:"M",fr:"M",it:"M",nl:"M",es:"M",pl:"M",pt:"M",sv:"M",fi:"K"};e.yearMask={de:"J",en:"Y",fr:"A",it:"A",nl:"J",es:"A",pl:"R",pt:"A",sv:"Å",fi:"V"};return e}e.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){var n=b.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(n.isValid){return n.toISODate()}else if(e&&e.allowInvalidValue){return D}}return""};e.prototype.onFormatValue=function(t){if(t){var e=b.fromISO(t);if(e.isValid){return e.toFormat()}}return""};e.prototype.onPaste=function(t,e,n){var a=t.clipboardData||"";var i=b.fromAnyFormat(a);if(i.isValid){t.value=i.toFormat();t.position.toEnd()}};e.prototype.onBlur=function(t){var e=this.blocks.getRawValueWithoutMaskByContext(t);var n=b.fromAnyFormat(e);if(n.isValid){var a=n.toFormat();if(a!==t.value){t.value=a}}else if(t.component.allowInvalidValue){if(e!==t.value){t.value=e}}};return e}($);var et=function(){function t(t){this.mask=t}Object.defineProperty(t.prototype,"attributes",{get:function(){return{inputMode:this.mask.inputMode,maxLength:this.mask.maxLength,minLength:this.mask.minLength,type:"text",autoCapitalize:"off",autoCorrect:"off",spellcheck:false}},enumerable:false,configurable:true});t.prototype.bindComponent=function(t){this.component=t};t.prototype.bindComponentDidLoad=function(){if(this.component&&this.component.nativeInput){this.component.nativeInput.value=this.component.value||""}this.bindValueChanged(this.component.value,undefined)};t.prototype.bindConfigChanged=function(t){var e=this,n=e.component,a=e.mask;var i=new W({component:n,mask:a,event:{locale:"".concat(t.language,"-").concat(t.region)}});this.mask.fireI18nChange(i);i.submit()};t.prototype.bindValueChanged=function(t,e){var n=this,a=n.component,i=n.mask;var r=new U({component:a,mask:i,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(r);r.submit("blur")};t.prototype.bindKeyDown=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;var i=new J({event:t,component:n,mask:a});this.mask.fireKeyDown(i);var r=t.key==="Tab";i.submit(r?"tab":"input");n.balKeyPress.emit(t)}};t.prototype.bindFocus=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;n.focused=true;var i=new q({event:t,component:n,mask:a});this.mask.fireFocus(i);i.submit();n.balFocus.emit(t)}};t.prototype.bindBlur=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;n.focused=false;var i=new q({event:t,component:n,mask:a});this.mask.fireBlur(i);i.submit("blur");n.balBlur.emit(t)}};t.prototype.bindPaste=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;var i=new R({event:t,component:n,mask:a});this.mask.firePaste(i);i.submit()}};t.prototype.bindFormReset=function(t){var e=this;var n=t.target;if(n&&(n===this.component.el||n.contains(this.component.el))){this.component.value=this.component.initialValue;this.component.inputValue=this.component.initialValue;clearTimeout(this.resetHandlerTimer);this.resetHandlerTimer=setTimeout((function(){if(e.component.nativeInput){e.component.nativeInput.value=e.mask.toFormattedValue(e.component.value||"")}}))}};t.prototype.bindClick=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;var i=new X({event:t,component:n,mask:a});this.mask.fireClick(i);i.submit()}};t.prototype.bindHostClick=function(t){if(!this.isComponentAccessible){t.preventDefault();t.stopPropagation()}};t.prototype.bindGlobalClick=function(t){if(!this.isComponentAccessible){if(t.target&&t.target===this.component.el){t.preventDefault();t.stopPropagation()}}};Object.defineProperty(t.prototype,"isComponentAccessible",{get:function(){return!this.component.disabled&&!this.component.readonly},enumerable:false,configurable:true});return t}();var nt=".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}";var at=t("bal_input_date",function(){function t(t){n(this,t);this.balKeyPress=a(this,"balKeyPress");this.balChange=a(this,"balChange");this.balInput=a(this,"balInput");this.balBlur=a(this,"balBlur");this.balFocus=a(this,"balFocus");this.inputId="bal-i-date-".concat(it++);this.inheritedAttributes={};this.maskAdapter=new et(new tt);this.focused=false;this.isGrouped=false;this.ariaForm=k;this.name=this.inputId;this.invalid=false;this.required=false;this.disabled=false;this.readonly=false;this.clickable=false;this.autocomplete="off";this.hasIconRight=false;this.value=undefined;this.inputValue=this.value;this.initialValue=this.value||"";this.autoInvalidOff=false;this.allowInvalidValue=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){this.maskAdapter.bindValueChanged(t,e)};t.prototype.connectedCallback=function(){this.maskAdapter.bindComponent(this);this.isGrouped=c("bal-input-group",this.el)};t.prototype.componentDidLoad=function(){this.maskAdapter.bindComponentDidLoad()};t.prototype.componentWillRender=function(){this.inheritedAttributes=w(this.el,["aria-label","tabindex","title","data-hj-allow"])};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.maskAdapter.bindConfigChanged(t);return[2]}))}))};t.prototype.resetHandler=function(t){this.maskAdapter.bindFormReset(t)};t.prototype.listenOnClick=function(t){this.maskAdapter.bindGlobalClick(t)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){x(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){O(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(e){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.render=function(){var t=this;var n=s.block("input-date");var a=n.element("native");return e(i,{key:"3c71adc69c5270029c588885037338aee6dfc85f",onClick:function(e){return t.maskAdapter.bindHostClick(e)},class:Object.assign({},n.class())},e("input",Object.assign({key:"56c3f39f98b9dadb6b18f8bfea4c172e7bc0e607",class:{input:true,"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:function(e){return t.nativeInput=e},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":p(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:function(e){return t.maskAdapter.bindKeyDown(e)},onClick:function(e){return t.maskAdapter.bindClick(e)},onFocus:function(e){return t.maskAdapter.bindFocus(e)},onBlur:function(e){return t.maskAdapter.bindBlur(e)},onPaste:function(e){return t.maskAdapter.bindPaste(e)}})),e("input",{key:"dae67450389be6169c8257a0b1eaf877fb81e66b",type:"date",class:Object.assign({},a.class()),name:this.name,min:this.min,max:this.max,value:this.value,tabindex:-1,"aria-hidden":"true"}))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());l([d("bal-input-date"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],at.prototype,"createLogger",null);l([g(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],at.prototype,"configChanged",null);var it=0;at.style=nt}}}));
1
+ var __extends=this&&this.__extends||function(){var t=function(e,n){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n))t[n]=e[n]};return t(e,n)};return function(e,n){if(typeof n!=="function"&&n!==null)throw new TypeError("Class extends value "+String(n)+" is not a constructor or null");t(e,n);function a(){this.constructor=e}e.prototype=n===null?Object.create(n):(a.prototype=n.prototype,new a)}}();var __awaiter=this&&this.__awaiter||function(t,e,n,a){function i(t){return t instanceof n?t:new n((function(e){e(t)}))}return new(n||(n=Promise))((function(n,r){function l(t){try{s(a.next(t))}catch(t){r(t)}}function o(t){try{s(a["throw"](t))}catch(t){r(t)}}function s(t){t.done?n(t.value):i(t.value).then(l,o)}s((a=a.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var n={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},a,i,r,l=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return l.next=o(0),l["throw"]=o(1),l["return"]=o(2),typeof Symbol==="function"&&(l[Symbol.iterator]=function(){return this}),l;function o(t){return function(e){return s([t,e])}}function s(o){if(a)throw new TypeError("Generator is already executing.");while(l&&(l=0,o[0]&&(n=0)),n)try{if(a=1,i&&(r=o[0]&2?i["return"]:o[0]?i["throw"]||((r=i["return"])&&r.call(i),0):i.next)&&!(r=r.call(i,o[1])).done)return r;if(i=0,r)o=[o[0]&2,r.value];switch(o[0]){case 0:case 1:r=o;break;case 4:n.label++;return{value:o[1],done:false};case 5:n.label++;i=o[1];o=[0];continue;case 7:o=n.ops.pop();n.trys.pop();continue;default:if(!(r=n.trys,r=r.length>0&&r[r.length-1])&&(o[0]===6||o[0]===2)){n=0;continue}if(o[0]===3&&(!r||o[1]>r[0]&&o[1]<r[3])){n.label=o[1];break}if(o[0]===6&&n.label<r[1]){n.label=r[1];r=o;break}if(r&&n.label<r[2]){n.label=r[2];n.ops.push(o);break}if(r[2])n.ops.pop();n.trys.pop();continue}o=e.call(t,n)}catch(t){o=[6,t];i=0}finally{a=r=0}if(o[0]&5)throw o[1];return{value:o[0]?o[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,n){if(n||arguments.length===2)for(var a=0,i=e.length,r;a<i;a++){if(r||!(a in e)){if(!r)r=Array.prototype.slice.call(e,0,a);r[a]=e[a]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-PNu_g_s6.system.js","./p-Cjiw70Dk.system.js","./p-BbAtjg9Y.system.js","./p-D1opIX9W.system.js","./p-4Y53iwfN.system.js","./p-Dxz8zGB7.system.js","./p-CpWDVANq.system.js","./p-CDeyBUqm.system.js","./p-ncoiCFQ1.system.js","./p-BpMXwP_q.system.js","./p-xlS5vO33.system.js","./p-DKjTFqnu.system.js","./p-m5GX4h3i.system.js","./p-CLfE_o7e.system.js","./p-CLDmOIBx.system.js","./p-Dd7xQwRJ.system.js","./p-CGJ8YYiA.system.js","./p-D7_eHNTI.system.js","./p-BM_oHMik.system.js","./p-Bzy18UgU.system.js","./p-BCtb7Ny9.system.js","./p-DdX8FaaK.system.js","./p-DDPYMMGG.system.js"],(function(t){"use strict";var e,n,a,i,r,l,o,s,u,c,d,f,h,b,v,_,m,g,y,p,w,k,j,x,O,C,D;return{setters:[function(t){e=t.h;n=t.r;a=t.c;i=t.H;r=t.g},function(t){l=t._;o=t.a},function(t){s=t.B},function(t){u=t.a;c=t.q},function(t){d=t.L},function(t){f=t.p},function(t){h=t.i},function(t){b=t.B;v=t.i;_=t.d},function(t){m=t.d},function(t){g=t.L},function(t){y=t.L},function(t){p=t.a},function(t){w=t.i},function(t){k=t.d},function(t){j=t.l;x=t.c;O=t.d},function(t){C=t.N},function(t){D=t.I},null,null,null,null,null,null],execute:function(){function z(t,e){if(e<1||t<0){return undefined}return new Date(t,e,0).getDate()}function M(t,e,n){return"".concat(n,"-").concat(f("".concat(e),2,"0"),"-").concat(f("".concat(t),2,"0"))}function A(){var t=new Date;return"".concat(t.getFullYear(),"-").concat(f("".concat(t.getMonth()+1),2,"0"),"-").concat(f("".concat(t.getDate()),2,"0"))}function P(t,e,n,a,i){var r=[];var l=z(t,e);var o=F(t,e);if(l!==undefined&&o){var s=A();var u=b.fromISO(n);var c=b.fromISO(a);var d=function(t){if(h(i)){return false}return!i(t)};for(var f=1;f<=l;f++){var v=M(f,e,t);r.push({day:f,month:e,year:t,isoDate:v,fullDate:b.fromISO(v).toFormat(),today:s===v,disabled:u.isAfter(v)||c.isBefore(v)||d(v)})}}return r}function K(t,e){if(e<1||t<0){return 1}var n=new Date(t,e-1,1);var a=n.getDay();return a===0?7:a}function S(t){if(["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)){return t}return"de"}function I(t,e,n){var a=[];var i=new Date;var r=i.getFullYear();for(var l=e;l<=n;l++){a.push({value:l,label:"".concat(l),disabled:false,today:r===l,selected:t===l})}return a}function V(t,e,n,a,i){var r=S(t);var l=b.infoMonths({format:"long",locale:r});var o=b.fromISO(n);var s=new Date;var u=s.getFullYear();var c=s.getMonth()+1;var d=0;if(a&&e!==undefined){var f=b.fromISO(a);if(f.isValid){if(e>f.year){d=0}else{d=f.month||d}}}var h=12;if(i&&e!==undefined){var v=b.fromISO(i);if(v.isValid){if(e<v.year){h=12}else{h=v.month||h}}}return l.map((function(t,n){var a=n+1;return{label:t,value:a,today:a===c&&e===u,selected:a===o.month&&e===o.year,disabled:a<d||a>h}}))}function B(t){var e=S(t);var n=b.infoWeekdays({format:"short",locale:e});var a=b.infoWeekdays({format:"long",locale:e});return n.map((function(t,e){return{ariaLabel:a[e],textContent:t}}))}function F(t,e){if(e<1||e>12||t<0){return undefined}return new Date(t,e-1,1)}var L=function(t){var n=t.isVisible,a=t.ref,i=t.grid,r=t.weekdays,l=t.selectedDate,o=t.firstDayOfWeek,u=t.onSelectDay;var c=s.block("date-calendar");var d=c.element("body");var f=d.element("grid");return e("div",{role:"grid",class:Object.assign(Object.assign({},f.class()),f.modifier("visible").class(n)),"aria-hidden":n?"false":"true",ref:function(t){return a(t)}},e("div",{role:"row",class:Object.assign({},f.element("head").class())},r.map((function(t){return e("span",{key:t.textContent,role:"columnheader","aria-label":t.ariaLabel,title:t.ariaLabel},t.textContent)}))),e("div",{role:"row",class:Object.assign({},f.element("body").class()),style:{"--bal-date-first-week-day":"".concat(o)}},i.map((function(t){return e("bal-date-calendar-cell",Object.assign({key:t.isoDate},t,{selected:t.isoDate===l,onBalSelectDay:function(t){var e=t.detail;return u(e)}}))}))))};var N=function(t){var n=t.name,a=t.isVisible,i=t.girdHeight,r=t.list,l=t.onSelect,o=t.ref;var u=s.block("date-calendar");var c=u.element("body");var d=c.element("list");return e("ul",{class:Object.assign(Object.assign(Object.assign({},d.class()),d.modifier(n).class()),d.modifier("visible").class(a)),"aria-hidden":a?"false":"true",style:{height:"".concat(i-2-8-8,"px")},ref:function(t){return o?o(t):undefined}},r.map((function(t){return e("li",{key:t.value,id:"".concat(n,"-").concat(t.value)},e("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},d.element("item").class()),d.element("item").modifier("today").class(t.today)),d.element("item").modifier("selected").class(t.selected)),d.element("item").modifier("disabled").class(t.disabled)),disabled:t.disabled,tabIndex:-1,onClick:function(){if(!t.disabled){l(t)}}},t.label))})))};var T=function(t){var n=t.language,a=t.onClickSelectMonthAndYear,i=t.monthFullNames,r=t.month,l=t.year,o=t.isCalendarVisible,u=t.isListVisible,c=t.onClickPreviousMonth,d=t.onClickNextMonth;var f=s.block("date-calendar");var h=f.element("nav");var b=v[n].nextMonth;var _=v[n].previousMonth;var m=v[n].selectMonth;return e("div",{class:Object.assign({},h.class())},e("div",{class:Object.assign({},h.modifier("start").class())},e("button",{title:m,"aria-label":m,tabIndex:-1,"data-testid":"change-year-month",onClick:a},e("span",null,i[r-1]," ",l),e("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:o}))),e("div",{class:Object.assign({},h.modifier("end").class()),style:{display:u?"none":"flex"}},e("button",{title:_,"aria-label":_,onClick:c,tabIndex:-1,"data-testid":"previous-month"},e("bal-icon",{name:"caret-left",color:"primary",size:"small"})),e("button",{title:b,"aria-label":b,onClick:d,tabIndex:-1,"data-testid":"next-month"},e("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))};var Y=':host{--bal-date-first-week-day:0;--bal-date-calendar-button-background:transparent;--bal-date-calendar-button-background-hover:var(--bal-color-light-blue-1);--bal-date-calendar-button-background-active:var(--bal-color-light-blue-2);--bal-date-calendar-button-color:var(--bal-color-text-primary);--bal-date-calendar-button-today-color:var(--bal-color-light-blue-3);--bal-date-calendar-button-today-color-hover:var(--bal-color-text-primary);--bal-date-calendar-button-today-color-active:var(--bal-color-text-primary);--bal-date-calendar-button-selected-background:var(--bal-color-primary);--bal-date-calendar-button-selected-color:var(--bal-color-text-white)}: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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar__nav button--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.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-date-calendar-button-background-active)}.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-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.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-date-calendar-button-today-color-active)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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-date-calendar-button-color);border:none;background:var(--bal-date-calendar-button-background);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-date-calendar-button-background-hover)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-date-calendar-button-background-active)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-date-calendar-button-today-color);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-date-calendar-button-today-color-hover)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-date-calendar-button-today-color-active)}.bal-date-calendar-cell--selected{background:var(--bal-date-calendar-button-selected-background);color:var(--bal-date-calendar-button-selected-color);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)}';var E=t("bal_date_calendar",function(){function t(t){var e=this;n(this,t);this.balChange=a(this,"balChange");this.oldMin="";this.oldMax="";this.selectedDate="";this.monthFullNames=[];this.weekdays=[];this.months=[];this.years=[];this.calendarGrid=[];this.firstDayOfWeek=0;this.month=0;this.year=0;this.language=m.language;this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;this.allowedDates=undefined;this.onSelectDay=function(t){e.valueChanged(t,e.selectedDate);e.balChange.emit(e.selectedDate)};this.onClickNextMonth=function(){var t=e.year;var n=e.month+1;if(n>12){n=1;t=t+1}e.generateGridByMonthAndYear(n,t)};this.onClickPreviousMonth=function(){var t=e.year;var n=e.month-1;if(n<1){n=12;t=t-1}e.generateGridByMonthAndYear(n,t)};this.onClickSelectMonthAndYear=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;return __generator(this,(function(n){switch(n.label){case 0:this.updateSelections();if(!(this.isCalendarVisible===true))return[3,2];this.isCalendarVisible=false;this.isYearListVisible=true;this.isMonthListVisible=false;return[4,u()];case 1:n.sent();if(this.yearListEl){t=this.yearListEl.querySelector("#year-".concat(this.year));if(t){e=26+8+4;this.yearListEl.scrollTop=t.offsetTop-e*2}else{this.yearListEl.scrollTop=0}}return[3,3];case 2:this.isCalendarVisible=true;this.isYearListVisible=false;this.isMonthListVisible=false;n.label=3;case 3:return[2]}}))}))};this.onClickYear=function(t){e.isYearListVisible=false;e.isMonthListVisible=true;e.generateGridByMonthAndYear(e.month,t);e.months=V(e.language,t,e.selectedDate,e.min,e.max)};this.onClickMonth=function(t){e.isYearListVisible=false;e.isMonthListVisible=false;e.isCalendarVisible=true;e.generateGridByMonthAndYear(t,e.year)}}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){if(t!==e){var n=b.fromISO(t);if(!n.isValid){this.generateGridByDefaultDate();this.selectedDate=""}else{this.generateGridByDate(n);this.selectedDate=n.toISODate()}this.updateSelections()}};t.prototype.rangePropChanged=function(){this.updateSelections();this.generateGrid()};t.prototype.yearRangePropChanged=function(){this.updateSelections()};t.prototype.connectedCallback=function(){this.generateGridByDefaultDate();this.valueChanged(this.value,undefined)};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.language=t.language;this.monthFullNames=b.infoMonths({format:"long",locale:this.language});this.weekdays=B(this.language);this.updateSelections();return[2]}))}))};t.prototype.swipeListener=function(t){var e=t.left,n=t.right;if(e){this.onClickNextMonth()}else if(n){this.onClickPreviousMonth()}};Object.defineProperty(t.prototype,"minYear",{get:function(){if(this.minYearProp===undefined){var t=new Date;var e=t.getFullYear();var n=e-100;if(this.min){var a=b.fromISO(this.min);return a.year||n}else{return n}}return this.minYearProp},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"maxYear",{get:function(){if(this.maxYearProp===undefined){var t=new Date;var e=t.getFullYear();var n=e+50;if(this.max){var a=b.fromISO(this.max);return a.year||n}else{return n}}return this.maxYearProp},enumerable:false,configurable:true});t.prototype.updateSelections=function(){this.years=I(this.year,this.minYear,this.maxYear);this.months=V(this.language,this.year,this.selectedDate,this.min,this.max)};t.prototype.generateGrid=function(){var t=b.fromISO(this.value);if(t.isValid){this.generateGridByDate(t)}else{this.generateGridByDefaultDate()}};t.prototype.generateGridByDate=function(t){if(t.year!==undefined&&t.month!==undefined){this.generateGridByMonthAndYear(t.month,t.year)}};t.prototype.generateGridByDefaultDate=function(){var t=b.fromISO(this.defaultDate);if(t.isValid){this.generateGridByDate(t)}else{var e=new Date;this.month=e.getMonth()+1;this.year=e.getFullYear();this.calendarGrid=P(this.year,this.month,this.min,this.max,this.allowedDates);this.firstDayOfWeek=K(this.year,this.month)}};t.prototype.generateGridByMonthAndYear=function(t,e){if(this.month!==t||this.year!==e||this.oldMin!==this.min||this.oldMax!==this.max){this.calendarGrid=P(e,t,this.min,this.max,this.allowedDates);this.firstDayOfWeek=K(e,t)}this.month=t;this.year=e;this.oldMin=this.min;this.oldMax=this.max};t.prototype.render=function(){var t=this;var n;var a=((n=this.gridEl)===null||n===void 0?void 0:n.clientHeight)||0;var r=s.block("date-calendar");var l=r.element("body");var o=r.element("foot");return e(i,{key:"34efddf3c88e5470dcefd22c5cab262873d07de8",class:Object.assign({},r.class())},e(T,{key:"9c8942a95ff9f1c8fdc8b1e153a29632145d1c2b",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}),e("div",{key:"6a2cb7bba9c0568c1dc31d8b1c811b90c5845dce",class:Object.assign({},l.class())},e(L,{key:"a687e1e1f80bc8ea21bdc7ad4709537829005843",isVisible:this.isCalendarVisible,grid:this.calendarGrid,weekdays:this.weekdays,firstDayOfWeek:this.firstDayOfWeek,selectedDate:this.selectedDate,ref:function(e){return t.gridEl=e},onSelectDay:function(e){return t.onSelectDay(e)}}),e(N,{key:"cba1e282fb92f5edfa04e97eefcf9b38b57b8428",name:"year",isVisible:this.isYearListVisible,girdHeight:a,list:this.years,ref:function(e){return t.yearListEl=e},onSelect:function(e){return t.onClickYear(e.value)}}),e(N,{key:"ae7cb47aaffec3d3a91d1aab96f1fbdde34b7e6f",name:"month",isVisible:this.isMonthListVisible,girdHeight:a,list:this.months,onSelect:function(e){return t.onClickMonth(e.value)}})),e("div",{key:"6e455964845a4e57abc793cb78916ed51fa0bdb3",class:Object.assign({},o.class())},e("slot",{key:"277a09ef4cb10f6f051c84b1ba9f9ae79f0d3479"})))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"],min:["rangePropChanged"],max:["rangePropChanged"],minYearProp:["yearRangePropChanged"],maxYearProp:["yearRangePropChanged"]}},enumerable:false,configurable:true});return t}());l([d("bal-date-calendar"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],E.prototype,"createLogger",null);l([g(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],E.prototype,"configChanged",null);l([y({mobileOnly:true}),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",void 0)],E.prototype,"swipeListener",null);E.style=Y;var G=function(){function t(t){this._options=t;this._position=0;this._positionEnd=0;this._isRangeSelection=false;if(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}}Object.defineProperty(t.prototype,"isRangeSelection",{get:function(){return this._isRangeSelection},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){if(this._options.isBackspace&&this._position>0){return this._position-1}return this._position},set:function(t){var e=t<0?0:t>this._options.mask.maxLength?this._options.mask.maxLength:t;this._position=e},enumerable:false,configurable:true});t.prototype.toStart=function(){this.value=0};t.prototype.toEnd=function(){var t=this.getTarget();if(t){this.value=t.value.length}};t.prototype.next=function(t){if(t===void 0){t=1}var e=this._position+t;if(e<=this._options.mask.maxLength){this._position=e}return this._position};t.prototype.previous=function(t){if(t===void 0){t=1}var e=this._position-t;if(e>=0){this._position=e}else{this._position=0}return this._position};t.prototype.submit=function(){var t=this.getTarget();if(t&&t.selectionStart!==this._position&&t.selectionEnd!==this._position){t.selectionStart=this._position;t.selectionEnd=this._position}};t.prototype.getTarget=function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined};return t}();var H=function(){function t(t){this._options=t;this._value="";if(this._options.component&&this._options.component.nativeInput){this._value=this._options.component.nativeInput.value}this.position=new G(this._options);this.component=this._options.component}Object.defineProperty(t.prototype,"target",{get:function(){if(this._options.component&&this._options.component.nativeInput){return this._options.component.nativeInput}return undefined},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){this._value=t},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"focused",{get:function(){return this._options.component.focused},enumerable:false,configurable:true});t.prototype.isValueEmpty=function(){return this.value===""||this.value===undefined||this.value===null};t.prototype.preventDefault=function(){if(this._options.event.preventDefault){this._options.event.preventDefault()}};t.prototype.stopPropagation=function(){this.preventDefault();if(this._options.event.stopPropagation){this._options.event.stopPropagation()}};t.prototype.submit=function(){return __awaiter(this,arguments,void 0,(function(t,e){if(t===void 0){t="input"}return __generator(this,(function(n){if(this.target){this.target.value=this.value;if(t!=="blur"&&t!=="tab"){this.position.submit()}if(this._options.component){if(t==="input"||t==="tab"){this._options.component.balInput.emit(this.value)}if((t==="change"||t==="blur")&&e!==undefined){if(j(this._options.component.value,e)){this._options.component.value=e;this._options.component.balChange.emit(e)}}}}return[2]}))}))};return t}();var R=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"clipboardData",{get:function(){var t;return(t=this._options.event.clipboardData)===null||t===void 0?void 0:t.getData("text")},enumerable:false,configurable:true});return e}(H);var q=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(H);var J=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"key",{get:function(){return this._options.event.key},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCtrlOrCommandKey",{get:function(){return this._options.event.metaKey||this._options.event.ctrlKey},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isBackspaceKey",{get:function(){return this._options.event.key==="Backspace"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isTabKey",{get:function(){return this._options.event.key==="Tab"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isWhiteSpaceKey",{get:function(){return this._options.event.key===" "},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isDeleteKey",{get:function(){return this._options.event.key==="Delete"||this._options.event.key==="Del"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNumberKey",{get:function(){return e.NUMBER_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isNavigationKey",{get:function(){return e.NAVIGATION_KEYS.includes(this._options.event.key)},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isSelectAllCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="a"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isCopyCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="c"},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"isPasteCommand",{get:function(){return(this._options.event.ctrlKey||this._options.event.metaKey)&&this.key==="v"},enumerable:false,configurable:true});e.prototype.getCharAt=function(t){if(t===void 0){t=this.position.value}return this.value.charAt(t)};e.prototype.getCharAtBackspacePosition=function(){return this.getCharAt(this.position.value-1)};e.prototype.setChar=function(t,e){if(t===void 0){t=this._options.event.key}if(e===void 0){e=this.position.value}this.value=this.value.substring(0,e)+t+this.value.substring(e+1)};return e}(H);J.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"];J.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];var W=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"locale",{get:function(){return this._options.event.locale},enumerable:false,configurable:true});return e}(H);var X=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(H);var U=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}Object.defineProperty(e.prototype,"newValue",{get:function(){return this._options.event.newValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"oldValue",{get:function(){return this._options.event.oldValue},enumerable:false,configurable:true});Object.defineProperty(e.prototype,"didValueChange",{get:function(){return this.newValue!==this.oldValue},enumerable:false,configurable:true});return e}(H);var Q=function(){function t(t){this._isSeparator=false;this._allowedKeys=[];this._locale="de-CH";this._from=t.from||0;this._to=t.to||0;this._isSeparator=t.isSeparator===undefined?false:t.isSeparator;this._mask=t.mask||"_";this._allowedKeys=t.allowedKeys?t.allowedKeys:this.allowedKeys;this._format=t.format}t.prototype.format=function(t){if(this._format){return this._format(t.replace(this.mask,""),this._locale,this.mask)}return t};Object.defineProperty(t.prototype,"isSeparator",{get:function(){return this._isSeparator},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"to",{get:function(){return this._to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"from",{get:function(){return this._from},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"mask",{get:function(){if(typeof this._mask==="function"){return this._mask(this._locale)}return this._mask},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"allowedKeys",{get:function(){return this._allowedKeys},enumerable:false,configurable:true});t.prototype.onI18nChange=function(t){this._locale=t};t.prototype.getValueOfTheBlock=function(t){return t.slice(this._from,this._to)};t.prototype.isTouched=function(t){var e=this;var n=this.getValueOfTheBlock(t);return!n.split("").every((function(t){return t===e.mask}))};t.prototype.verifyAllowedKeyHits=function(t){if(this.isSeparator&&t===this.mask){return true}else if(this.allowedKeys.indexOf(t)>=0){return true}else{return false}};return t}();var Z=function(){function t(t){if(t===void 0){t=[]}this._list=t}Object.defineProperty(t.prototype,"lastPosition",{get:function(){return this._list[this._list.length-1].to},enumerable:false,configurable:true});Object.defineProperty(t.prototype,"list",{get:function(){return this._list},set:function(t){this._list=t},enumerable:false,configurable:true});t.prototype.clone=function(){return new t(__spreadArray([],this._list,true))};t.prototype.findByIndex=function(t,e){if(e===void 0){e=this.list}return e.find((function(e){return e.from<=t&&t<e.to}))};t.prototype.getPlaceholderMask=function(){var t=[];this.list.forEach((function(e){var n=e.to-e.from;for(var a=0;a<n;a++){t.push(e.mask)}}));return t.join("")};t.prototype.getRawValueWithoutMaskByContext=function(t){return this.getRawValueWithoutMask(t.value)};t.prototype.getRawValueWithoutMask=function(t){if(t){var e=[];var n=t.split("");for(var a=0;a<n.length;a++){var i=n[a];var r=this.findByIndex(a);if(r&&!r.isSeparator){e.push(i.replace(r.mask,""))}else{e.push(i)}}e=e.filter((function(t){return t}));var l=this.list.filter((function(t){return t.isSeparator})).length;if(l===e.length){return""}return e.join("")}return""};t.prototype.formatBlocks=function(t,e){var n="".concat(t);for(var a=0;a<this.list.length;a++){var i=this.list[a];if(e!==a&&!i.isSeparator&&i.isTouched(n)){var r=i.getValueOfTheBlock(n);var l=i.format(r);n=n.substring(0,i.from)+l+n.substring(i.to)}}return n};t.prototype.getBlockIndexFromPosition=function(t){var e=this.list.reduce((function(t,e){return t+e.to-e.from}),0);if(t===e){return this.list.length-1}var n=this.list.findIndex((function(e){return e.from<=t&&t<e.to}));return n<0?undefined:Math.min(e,n)};t.prototype.verifyCallOfNextSeparator=function(t,e){if(this.list.length-1>e){var n=this.list[e+1];if(n.isSeparator&&n.mask===t){return true}}return false};return t}();var $=function(){function t(t){if(t===void 0){t=[]}this.inputMode="text";this.locale="de-CH";this.blocks=new Z(t)}t.prototype.onLocaleChange=function(t,e,n){if(t.target){var a=t.value;var i=a.split("");for(var r=0;r<i.length;r++){var l=i[r];var o=this.blocks.findByIndex(r);var s=n.findByIndex(r);if(o&&s){if(o.isSeparator){i[r]=o.mask}else if(l===s.mask){i[r]=o.mask}}}t.value=i.join("")}};t.prototype.onFocus=function(t){};t.prototype.onBlur=function(t){};t.prototype.onChange=function(t){t.submit("change",this.onParseValue(t.value))};t.prototype.onNavigationDown=function(t,e,n){};t.prototype.onSelectAll=function(t,e,n){};t.prototype.onPaste=function(t,e,n){var a=t.clipboardData||"";t.value=a;t.position.toEnd()};t.prototype.onBlockChange=function(t,e,n){t.setChar();t.position.next();var a=this.blocks.list[n+1];if(t.position.value===e.to&&a&&a.isSeparator){t.position.next()}};t.prototype.onBackspaceDown=function(t,e,n){t.position.previous();if(!e.isSeparator){t.setChar(e.mask);var a=this.blocks.list[n-1];if(t.position.value===e.from&&a&&a.isSeparator){t.position.previous()}}};t.prototype.onDeleteDown=function(t,e,n){t.setChar(e.mask);t.position.next();var a=this.blocks.list[n+1];if(t.position.value===e.to&&a&&a.isSeparator){t.position.next()}};t.prototype.onValueChanged=function(t){var e=this.onFormatValue(t.newValue);var n=t.focused&&e===""?this.blocks.getPlaceholderMask():e;t.value=n;t.position.toEnd()};t.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){return t.trim()}return t||""};t.prototype.onFormatValue=function(t){if(t){return t.trim()}return t||""};t.prototype.toParsedValue=function(t){return this.onParseValue(t)};t.prototype.toFormattedValue=function(t){return this.onFormatValue(t)};t.prototype.fireI18nChange=function(t){var e=this.blocks.clone();var n="".concat(t.locale);this.locale=t.locale;this.blocks.list.forEach((function(e){return e.onI18nChange(t.locale)}));this.onLocaleChange(t,n,e)};t.prototype.fireValueChanged=function(t){if(t.didValueChange){this.onValueChanged(t)}};t.prototype.firePaste=function(t){var e=this.blocks.getBlockIndexFromPosition(t.position.value);if(e!==undefined){var n=this.blocks.list[e];this.onPaste(t,n,e);this.onChange(t)}};t.prototype.fireClick=function(t){var e=this.blocks.getPlaceholderMask();if(e===t.value){t.position.toStart()}};t.prototype.fireFocus=function(t){if(t.target&&t.isValueEmpty()){this.resetInputValueWithMask(t)}this.onFocus(t)};t.prototype.fireBlur=function(t){if(t.target){if(this.isValueEmptyMask(t)){this.emptyInputValue(t)}else{this.onBlur(t);t.submit("blur",this.onParseValue(t.value,{allowInvalidValue:t.component.allowInvalidValue}))}}};t.prototype.fireKeyDown=function(t){var e=t.isBackspaceKey?Math.max(0,t.position.value-1):t.position.value;var n=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand){t.preventDefault();t.stopPropagation();return}if(n!==undefined&&!t.position.isRangeSelection){var a=this.blocks.list[n];if(t.isNavigationKey){this.onNavigationDown(t,a,n)}else if(t.isSelectAllCommand){this.onSelectAll(t,a,n)}else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey){t.preventDefault();this.onBackspaceDown(t,a,n)}else if(t.isDeleteKey){t.preventDefault();this.onDeleteDown(t,a,n)}else if(t.isWhiteSpaceKey){t.preventDefault();var i=t.value[t.position.value];if(i==="."){t.stopPropagation();var r=t.value;t.value=r.substring(0,t.position.value)+"_"+r.substring(t.position.value+1)}}else if(a.verifyAllowedKeyHits(t.key)){t.preventDefault();this.onBlockChange(t,a,n)}else if(this.blocks.verifyCallOfNextSeparator(t.key,n)){t.preventDefault();var l=this.blocks.list[n];if(t.position.value>l.from){var o=this.blocks.list[n+1];var r=t.value;var s=a.getValueOfTheBlock(r);var u=a.format(s);t.value=r.substring(0,a.from)+u+r.substring(a.to);t.position.value=o.to}}var c=this.blocks.getBlockIndexFromPosition(t.position.value);if(c&&!t.isBackspaceKey){var d=this.blocks.formatBlocks(t.value,c);var f=t.position.value;t.value=d;t.position.value=f}}else{if(!t.isTabKey){t.preventDefault()}if(t.isBackspaceKey||t.isDeleteKey){this.resetInputValueWithMask(t)}else if(this.blocks.list[0].verifyAllowedKeyHits(t.key)){this.onBlockChange(t,this.blocks.list[0],0)}}};t.prototype.resetInputValueWithMask=function(t){t.value=this.blocks.getPlaceholderMask();t.position.toStart()};t.prototype.isValueEmptyMask=function(t){var e=this.blocks.getPlaceholderMask();return e===t.value};t.prototype.emptyInputValue=function(t){t.value="";t.submit("blur",t.value)};return t}();var tt=function(t){__extends(e,t);function e(){var e=t.call(this,[new Q({from:0,to:2,allowedKeys:__spreadArray([],C,true),format:function(t,e,n){if(Number.isNaN(parseInt(t,10))){return"".concat(n).concat(n)}return t.padStart(2,"0")},mask:function(t){return e.dayMask[t.split("-")[0]]||e.dayMask["de"]}}),new Q({from:2,to:3,mask:function(t){return _(t)},isSeparator:true}),new Q({from:3,to:5,allowedKeys:__spreadArray([],C,true),format:function(t,e,n){if(Number.isNaN(parseInt(t,10))){return"".concat(n).concat(n)}return t.padStart(2,"0")},mask:function(t){return e.monthMask[t.split("-")[0]]||e.monthMask["de"]}}),new Q({from:5,to:6,mask:function(t){return _(t)},isSeparator:true}),new Q({from:6,to:10,allowedKeys:__spreadArray([],C,true),mask:function(t){return e.yearMask[t.split("-")[0]]||e.yearMask["de"]}})])||this;e.maxLength=10;e.minLength=10;e.inputMode="decimal";e.dayMask={de:"T",en:"D",fr:"J",it:"G",nl:"D",es:"D",pl:"D",pt:"D",sv:"D",fi:"M"};e.monthMask={de:"M",en:"M",fr:"M",it:"M",nl:"M",es:"M",pl:"M",pt:"M",sv:"M",fi:"K"};e.yearMask={de:"J",en:"Y",fr:"A",it:"A",nl:"J",es:"A",pl:"R",pt:"A",sv:"Å",fi:"V"};return e}e.prototype.onParseValue=function(t,e){if(e===void 0){e={allowInvalidValue:false}}if(t){var n=b.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(n.isValid){return n.toISODate()}else if(e&&e.allowInvalidValue){return D}}return""};e.prototype.onFormatValue=function(t){if(t){var e=b.fromISO(t);if(e.isValid){return e.toFormat()}}return""};e.prototype.onPaste=function(t,e,n){var a=t.clipboardData||"";var i=b.fromAnyFormat(a);if(i.isValid){t.value=i.toFormat();t.position.toEnd()}};e.prototype.onBlur=function(t){var e=this.blocks.getRawValueWithoutMaskByContext(t);var n=b.fromAnyFormat(e);if(n.isValid){var a=n.toFormat();if(a!==t.value){t.value=a}}else if(t.component.allowInvalidValue){if(e!==t.value){t.value=e}}};return e}($);var et=function(){function t(t){this.mask=t}Object.defineProperty(t.prototype,"attributes",{get:function(){return{inputMode:this.mask.inputMode,maxLength:this.mask.maxLength,minLength:this.mask.minLength,type:"text",autoCapitalize:"off",autoCorrect:"off",spellcheck:false}},enumerable:false,configurable:true});t.prototype.bindComponent=function(t){this.component=t};t.prototype.bindComponentDidLoad=function(){if(this.component&&this.component.nativeInput){this.component.nativeInput.value=this.component.value||""}this.bindValueChanged(this.component.value,undefined)};t.prototype.bindConfigChanged=function(t){var e=this,n=e.component,a=e.mask;var i=new W({component:n,mask:a,event:{locale:"".concat(t.language,"-").concat(t.region)}});this.mask.fireI18nChange(i);i.submit()};t.prototype.bindValueChanged=function(t,e){var n=this,a=n.component,i=n.mask;var r=new U({component:a,mask:i,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(r);r.submit("blur")};t.prototype.bindKeyDown=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;var i=new J({event:t,component:n,mask:a});this.mask.fireKeyDown(i);var r=t.key==="Tab";i.submit(r?"tab":"input");n.balKeyPress.emit(t)}};t.prototype.bindFocus=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;n.focused=true;var i=new q({event:t,component:n,mask:a});this.mask.fireFocus(i);i.submit();n.balFocus.emit(t)}};t.prototype.bindBlur=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;n.focused=false;var i=new q({event:t,component:n,mask:a});this.mask.fireBlur(i);i.submit("blur");n.balBlur.emit(t)}};t.prototype.bindPaste=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;var i=new R({event:t,component:n,mask:a});this.mask.firePaste(i);i.submit()}};t.prototype.bindFormReset=function(t){var e=this;var n=t.target;if(n&&(n===this.component.el||n.contains(this.component.el))){this.component.value=this.component.initialValue;this.component.inputValue=this.component.initialValue;clearTimeout(this.resetHandlerTimer);this.resetHandlerTimer=setTimeout((function(){if(e.component.nativeInput){e.component.nativeInput.value=e.mask.toFormattedValue(e.component.value||"")}}))}};t.prototype.bindClick=function(t){if(this.isComponentAccessible){var e=this,n=e.component,a=e.mask;var i=new X({event:t,component:n,mask:a});this.mask.fireClick(i);i.submit()}};t.prototype.bindHostClick=function(t){if(!this.isComponentAccessible){t.preventDefault();t.stopPropagation()}};t.prototype.bindGlobalClick=function(t){if(!this.isComponentAccessible){if(t.target&&t.target===this.component.el){t.preventDefault();t.stopPropagation()}}};Object.defineProperty(t.prototype,"isComponentAccessible",{get:function(){return!this.component.disabled&&!this.component.readonly},enumerable:false,configurable:true});return t}();var nt=".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}";var at=t("bal_input_date",function(){function t(t){n(this,t);this.balKeyPress=a(this,"balKeyPress");this.balChange=a(this,"balChange");this.balInput=a(this,"balInput");this.balBlur=a(this,"balBlur");this.balFocus=a(this,"balFocus");this.inputId="bal-i-date-".concat(it++);this.inheritedAttributes={};this.maskAdapter=new et(new tt);this.focused=false;this.isGrouped=false;this.ariaForm=k;this.name=this.inputId;this.invalid=false;this.required=false;this.disabled=false;this.readonly=false;this.clickable=false;this.autocomplete="off";this.hasIconRight=false;this.value=undefined;this.inputValue=this.value;this.initialValue=this.value||"";this.autoInvalidOff=false;this.allowInvalidValue=false}t.prototype.createLogger=function(t){this.log=t};t.prototype.valueChanged=function(t,e){this.maskAdapter.bindValueChanged(t,e)};t.prototype.connectedCallback=function(){this.maskAdapter.bindComponent(this);this.isGrouped=c("bal-input-group",this.el)};t.prototype.componentDidLoad=function(){this.maskAdapter.bindComponentDidLoad()};t.prototype.componentWillRender=function(){this.inheritedAttributes=w(this.el,["aria-label","tabindex","title","data-hj-allow"])};t.prototype.configChanged=function(t){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(e){this.maskAdapter.bindConfigChanged(t);return[2]}))}))};t.prototype.resetHandler=function(t){this.maskAdapter.bindFormReset(t)};t.prototype.listenOnClick=function(t){this.maskAdapter.bindGlobalClick(t)};t.prototype.setFocus=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){x(this);return[2]}))}))};t.prototype.setBlur=function(){return __awaiter(this,void 0,void 0,(function(){return __generator(this,(function(t){O(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(e){this.ariaForm=Object.assign({},t);return[2]}))}))};t.prototype.render=function(){var t=this;var n=s.block("input-date");var a=n.element("native");return e(i,{key:"3c71adc69c5270029c588885037338aee6dfc85f",onClick:function(e){return t.maskAdapter.bindHostClick(e)},class:Object.assign({},n.class())},e("input",Object.assign({key:"56c3f39f98b9dadb6b18f8bfea4c172e7bc0e607",class:{input:true,"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:function(e){return t.nativeInput=e},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":p(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:function(e){return t.maskAdapter.bindKeyDown(e)},onClick:function(e){return t.maskAdapter.bindClick(e)},onFocus:function(e){return t.maskAdapter.bindFocus(e)},onBlur:function(e){return t.maskAdapter.bindBlur(e)},onPaste:function(e){return t.maskAdapter.bindPaste(e)}})),e("input",{key:"dae67450389be6169c8257a0b1eaf877fb81e66b",type:"date",class:Object.assign({},a.class()),name:this.name,min:this.min,max:this.max,value:this.value,tabindex:-1,"aria-hidden":"true"}))};Object.defineProperty(t.prototype,"el",{get:function(){return r(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());l([d("bal-input-date"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],at.prototype,"createLogger",null);l([g(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],at.prototype,"configChanged",null);var it=0;at.style=nt}}}));
@@ -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=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return f.next=o(0),f["throw"]=o(1),f["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-PNu_g_s6.system.js","./p-Cjiw70Dk.system.js","./p-DKjTFqnu.system.js","./p-m5GX4h3i.system.js","./p-BbAtjg9Y.system.js","./p-CLfE_o7e.system.js","./p-CLDmOIBx.system.js","./p-D1opIX9W.system.js","./p-4Y53iwfN.system.js","./p-wAfnccKA.system.js","./p-BktTDSq4.system.js","./p-BblIE2Vz.system.js","./p-BpMXwP_q.system.js","./p-D7_eHNTI.system.js","./p-BM_oHMik.system.js"],(function(t){"use strict";var i,e,n,r,s,f,o,u,a,c,h,l,d,b,p,v,w,y,m,g;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.a},function(t){a=t.i},function(t){c=t.B},function(t){h=t.d},function(t){l=t.s;d=t.h},function(t){b=t.r;p=t.n},function(t){v=t.L},function(t){w=t.f},function(t){y=t.i},function(t){m=t.d},function(t){g=t.L},null,null],execute:function(){var _=20,j=1,k=1e6,x=1e6,E=-7,O=21,B=false,C="[big.js] ",I=C+"Invalid ",D=I+"decimal places",F=I+"rounding mode",T=C+"Division by zero",q={},S=void 0,z=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function L(){function t(i){var e=this;if(!(e instanceof t))return i===S?L():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(I+"value")}i=i===0&&1/i<0?"-0":String(i)}M(e,i)}e.constructor=t}t.prototype=q;t.DP=_;t.RM=j;t.NE=E;t.PE=O;t.strict=B;t.roundDown=0;t.roundHalfUp=1;t.roundHalfEven=2;t.roundUp=3;return t}function M(t,i){var e,n,r;if(!z.test(i)){throw Error(I+"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 N(t,i,e,n){var r=t.c;if(e===S)e=t.constructor.RM;if(e!==0&&e!==1&&e!==2&&e!==3){throw Error(F)}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]!==S)));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]!==S||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 P(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}q.abs=function(){var t=new this.constructor(this);t.s=1;return t};q.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};q.div=function(t){var i=this,e=i.constructor,n=i.c,r=(t=new e(t)).c,s=i.s==t.s?1:-1,f=e.DP;if(f!==~~f||f<0||f>k){throw Error(D)}if(!r[0]){throw Error(T)}if(!n[0]){t.s=s;t.c=[t.e=0];return t}var o,u,a,c,h,l=r.slice(),d=o=r.length,b=n.length,p=n.slice(0,o),v=p.length,w=t,y=w.c=[],m=0,g=f+(w.e=i.e-t.e)+1;w.s=s;s=g<0?0:g;l.unshift(0);for(;v++<o;)p.push(0);do{for(a=0;a<10;a++){if(o!=(v=p.length)){c=o>v?1:-1}else{for(h=-1,c=0;++h<o;){if(r[h]!=p[h]){c=r[h]>p[h]?1:-1;break}}}if(c<0){for(u=v==o?r:l;v;){if(p[--v]<u[v]){h=v;for(;h&&!p[--h];)p[h]=9;--p[h];p[v]+=10}p[v]-=u[v]}for(;!p[0];)p.shift()}else{break}}y[m++]=c?a:++a;if(p[0]&&c)p[v]=n[d]||0;else p=[n[d]]}while((d++<b||p[0]!==S)&&s--);if(!y[0]&&m!=1){y.shift();w.e--;g--}if(m>g)N(w,g,e.RM,p[0]!==S);return w};q.eq=function(t){return this.cmp(t)===0};q.gt=function(t){return this.cmp(t)>0};q.gte=function(t){return this.cmp(t)>-1};q.lt=function(t){return this.cmp(t)<0};q.lte=function(t){return this.cmp(t)<1};q.minus=q.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};q.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(T)}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))};q.neg=function(){var t=new this.constructor(this);t.s=-t.s;return t};q.plus=q.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};q.pow=function(t){var i=this,e=new i.constructor("1"),n=e,r=t<0;if(t!==~~t||t<-1e6||t>x){throw Error(I+"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};q.prec=function(t,i){if(t!==~~t||t<1||t>k){throw Error(I+"precision")}return N(new this.constructor(this),t,i)};q.round=function(t,i){if(t===S)t=0;else if(t!==~~t||t<-1e6||t>k){throw Error(D)}return N(new this.constructor(this),t+this.e+1,i)};q.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 N(t,(r.DP-=4)+t.e+1,r.RM)};q.times=q.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};q.toExponential=function(t,i){var e=this,n=e.c[0];if(t!==S){if(t!==~~t||t<0||t>k){throw Error(D)}e=N(new e.constructor(e),++t,i);for(;e.c.length<t;)e.c.push(0)}return P(e,true,!!n)};q.toFixed=function(t,i){var e=this,n=e.c[0];if(t!==S){if(t!==~~t||t<0||t>k){throw Error(D)}e=N(new e.constructor(e),t+e.e+1,i);for(t=t+e.e+1;e.c.length<t;)e.c.push(0)}return P(e,false,!!n)};q[Symbol.for("nodejs.util.inspect.custom")]=q.toJSON=q.toString=function(){var t=this,i=t.constructor;return P(t,t.e<=i.NE||t.e>=i.PE,!!t.c[0])};q.toNumber=function(){var t=Number(P(this,true,true));if(this.constructor.strict===true&&!this.eq(t.toString())){throw Error(C+"Imprecise conversion")}return t};q.toPrecision=function(t,i){var e=this,n=e.constructor,r=e.c[0];if(t!==S){if(t!==~~t||t<1||t>k){throw Error(I+"precision")}e=N(new n(e),t,i);for(;e.c.length<t;)e.c.push(0)}return P(e,t<=e.e||e.e<=n.NE||e.e>=n.PE,!!r)};q.valueOf=function(){var t=this,i=t.constructor;if(i.strict===true){throw Error(C+"valueOf disallowed")}return P(t,t.e<=i.NE||t.e>=i.PE,true)};var A=L();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;font-weight:700}.bal-input-stepper__inner__text--invalid{color:var(--bal-color-text-danger)}.bal-input-stepper__inner__text--disabled{color:var(--bal-color-text-grey)}.bal-input-stepper__input{position:absolute;width:0;height:0;left:0;top:0;margin:0;padding:0;opacity:0;outline:0}";var G=t("bal_input_stepper",function(){function t(t){var n=this;i(this,t);this.balChange=e(this,"balChange");this.balInput=e(this,"balInput");this.balIncrease=e(this,"balIncrease");this.balDecrease=e(this,"balDecrease");this.balFocus=e(this,"balFocus");this.balBlur=e(this,"balBlur");this.inputId="bal-input-stepper-".concat(H++);this.inheritedAttributes={};this.decreaseHasFocus=false;this.increaseHasFocus=false;this.focused=false;this.language=m.language;this.region=m.region;this.ariaForm=h;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.initialValue=0;this.autoInvalidOff=false;this.onFocusDecrease=function(t){n.decreaseHasFocus=true;n.onFocus(t)};this.onFocusIncrease=function(t){n.increaseHasFocus=true;n.onFocus(t)};this.onFocus=function(t){l(t);n.balFocus.emit(t.detail)};this.onBlurDecrease=function(t){l(t);n.decreaseHasFocus=false;b((function(){return n.onBlur(t.detail)}))};this.onBlurIncrease=function(t){l(t);n.increaseHasFocus=false;b((function(){return n.onBlur(t.detail)}))};this.onBlur=function(t){if(!(n.decreaseHasFocus||n.increaseHasFocus)){n.balBlur.emit(t)}}}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=p(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=a(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 A(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 A(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=c.block("input-stepper");var e=i.element("input");var s=i.element("inner");var f=s.element("text");var o=y[this.language].increase;var a=y[this.language].decrease;return n(r,{key:"b017edbea55108f2a839654ec284de97e833da65","aria-disabled":u(this.disabled),"aria-focused":this.focused?"true":null,class:Object.assign({},i.class())},n("div",{key:"d41f63eed88cd2f29901f23837978ff42cde96aa",class:Object.assign({},s.class())},n("bal-button",{key:"7acb51cae824f1e30f3348685903b61d8dae2746",a11yTitle:a,a11yLabel:a,a11yControls: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("span",{key:"5b14445f6049a7fc7786d780f9ec1e88e8ba73bc","data-testid":"bal-input-stepper-text",class:Object.assign(Object.assign(Object.assign({},f.class()),f.modifier("invalid").class(this.invalid)),f.modifier("disabled").class(this.disabled||this.readonly))},w(this.value)),n("bal-button",{key:"286ba68697b2dafcf2d543ad545d79474adae092",a11yTitle:o,a11yLabel:o,a11yControls: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:"5dfc042c5452657a0d53ba55ca2b7bfc7d3e6d8c",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":u(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([v("bal-input-stepper"),o("design:type",Function),o("design:paramtypes",[Function]),o("design:returntype",void 0)],G.prototype,"createLogger",null);f([g(),o("design:type",Function),o("design:paramtypes",[Object]),o("design:returntype",Promise)],G.prototype,"configChanged",null);var H=0;G.style=X}}}));
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 o(t){try{u(n.next(t))}catch(t){s(t)}}function f(t){try{u(n["throw"](t))}catch(t){s(t)}}function u(t){t.done?e(t.value):r(t.value).then(o,f)}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,o=Object.create((typeof Iterator==="function"?Iterator:Object).prototype);return o.next=f(0),o["throw"]=f(1),o["return"]=f(2),typeof Symbol==="function"&&(o[Symbol.iterator]=function(){return this}),o;function f(t){return function(i){return u([t,i])}}function u(f){if(n)throw new TypeError("Generator is already executing.");while(o&&(o=0,f[0]&&(e=0)),e)try{if(n=1,r&&(s=f[0]&2?r["return"]:f[0]?r["throw"]||((s=r["return"])&&s.call(r),0):r.next)&&!(s=s.call(r,f[1])).done)return s;if(r=0,s)f=[f[0]&2,s.value];switch(f[0]){case 0:case 1:s=f;break;case 4:e.label++;return{value:f[1],done:false};case 5:e.label++;r=f[1];f=[0];continue;case 7:f=e.ops.pop();e.trys.pop();continue;default:if(!(s=e.trys,s=s.length>0&&s[s.length-1])&&(f[0]===6||f[0]===2)){e=0;continue}if(f[0]===3&&(!s||f[1]>s[0]&&f[1]<s[3])){e.label=f[1];break}if(f[0]===6&&e.label<s[1]){e.label=s[1];s=f;break}if(s&&e.label<s[2]){e.label=s[2];e.ops.push(f);break}if(s[2])e.ops.pop();e.trys.pop();continue}f=i.call(t,e)}catch(t){f=[6,t];r=0}finally{n=s=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:true}}};System.register(["./p-PNu_g_s6.system.js","./p-Cjiw70Dk.system.js","./p-DKjTFqnu.system.js","./p-m5GX4h3i.system.js","./p-BbAtjg9Y.system.js","./p-CLfE_o7e.system.js","./p-CLDmOIBx.system.js","./p-D1opIX9W.system.js","./p-4Y53iwfN.system.js","./p-giOY60zQ.system.js","./p-BktTDSq4.system.js","./p-ncoiCFQ1.system.js","./p-BpMXwP_q.system.js","./p-D7_eHNTI.system.js","./p-BM_oHMik.system.js"],(function(t){"use strict";var i,e,n,r,s,o,f,u,a,c,h,l,d,p,b,v,w,y,m,g;return{setters:[function(t){i=t.r;e=t.c;n=t.h;r=t.H;s=t.g},function(t){o=t._;f=t.a},function(t){u=t.a},function(t){a=t.i},function(t){c=t.B},function(t){h=t.d},function(t){l=t.s;d=t.h},function(t){p=t.r;b=t.n},function(t){v=t.L},function(t){w=t.f},function(t){y=t.i},function(t){m=t.d},function(t){g=t.L},null,null],execute:function(){var _=20,j=1,k=1e6,x=1e6,E=-7,O=21,B=false,C="[big.js] ",I=C+"Invalid ",D=I+"decimal places",F=I+"rounding mode",T=C+"Division by zero",q={},S=void 0,z=/^-?(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i;function L(){function t(i){var e=this;if(!(e instanceof t))return i===S?L():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(I+"value")}i=i===0&&1/i<0?"-0":String(i)}M(e,i)}e.constructor=t}t.prototype=q;t.DP=_;t.RM=j;t.NE=E;t.PE=O;t.strict=B;t.roundDown=0;t.roundHalfUp=1;t.roundHalfEven=2;t.roundUp=3;return t}function M(t,i){var e,n,r;if(!z.test(i)){throw Error(I+"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 N(t,i,e,n){var r=t.c;if(e===S)e=t.constructor.RM;if(e!==0&&e!==1&&e!==2&&e!==3){throw Error(F)}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]!==S)));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]!==S||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 P(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}q.abs=function(){var t=new this.constructor(this);t.s=1;return t};q.cmp=function(t){var i,e=this,n=e.c,r=(t=new e.constructor(t)).c,s=e.s,o=t.s,f=e.e,u=t.e;if(!n[0]||!r[0])return!n[0]?!r[0]?0:-o:s;if(s!=o)return s;i=s<0;if(f!=u)return f>u^i?1:-1;o=(f=n.length)<(u=r.length)?f:u;for(s=-1;++s<o;){if(n[s]!=r[s])return n[s]>r[s]^i?1:-1}return f==u?0:f>u^i?1:-1};q.div=function(t){var i=this,e=i.constructor,n=i.c,r=(t=new e(t)).c,s=i.s==t.s?1:-1,o=e.DP;if(o!==~~o||o<0||o>k){throw Error(D)}if(!r[0]){throw Error(T)}if(!n[0]){t.s=s;t.c=[t.e=0];return t}var f,u,a,c,h,l=r.slice(),d=f=r.length,p=n.length,b=n.slice(0,f),v=b.length,w=t,y=w.c=[],m=0,g=o+(w.e=i.e-t.e)+1;w.s=s;s=g<0?0:g;l.unshift(0);for(;v++<f;)b.push(0);do{for(a=0;a<10;a++){if(f!=(v=b.length)){c=f>v?1:-1}else{for(h=-1,c=0;++h<f;){if(r[h]!=b[h]){c=r[h]>b[h]?1:-1;break}}}if(c<0){for(u=v==f?r:l;v;){if(b[--v]<u[v]){h=v;for(;h&&!b[--h];)b[h]=9;--b[h];b[v]+=10}b[v]-=u[v]}for(;!b[0];)b.shift()}else{break}}y[m++]=c?a:++a;if(b[0]&&c)b[v]=n[d]||0;else b=[n[d]]}while((d++<p||b[0]!==S)&&s--);if(!y[0]&&m!=1){y.shift();w.e--;g--}if(m>g)N(w,g,e.RM,b[0]!==S);return w};q.eq=function(t){return this.cmp(t)===0};q.gt=function(t){return this.cmp(t)>0};q.gte=function(t){return this.cmp(t)>-1};q.lt=function(t){return this.cmp(t)<0};q.lte=function(t){return this.cmp(t)<1};q.minus=q.sub=function(t){var i,e,n,r,s=this,o=s.constructor,f=s.s,u=(t=new o(t)).s;if(f!=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 o(s)}else{t.s=1}return t}if(f=c-l){if(r=f<0){f=-f;n=a}else{l=c;n=h}n.reverse();for(u=f;u--;)n.push(0);n.reverse()}else{e=((r=a.length<h.length)?a:h).length;for(f=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>f;){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};q.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(T)}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))};q.neg=function(){var t=new this.constructor(this);t.s=-t.s;return t};q.plus=q.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 o=r.e,f=r.c,u=t.e,a=t.c;if(!f[0]||!a[0]){if(!a[0]){if(f[0]){t=new s(r)}else{t.s=r.s}}return t}f=f.slice();if(i=o-u){if(i>0){u=o;n=a}else{i=-i;n=f}n.reverse();for(;i--;)n.push(0);n.reverse()}if(f.length-a.length<0){n=a;a=f;f=n}i=a.length;for(e=0;i;f[i]%=10)e=(f[--i]=f[i]+a[i]+e)/10|0;if(e){f.unshift(e);++u}for(i=f.length;f[--i]===0;)f.pop();t.c=f;t.e=u;return t};q.pow=function(t){var i=this,e=new i.constructor("1"),n=e,r=t<0;if(t!==~~t||t<-1e6||t>x){throw Error(I+"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};q.prec=function(t,i){if(t!==~~t||t<1||t>k){throw Error(I+"precision")}return N(new this.constructor(this),t,i)};q.round=function(t,i){if(t===S)t=0;else if(t!==~~t||t<-1e6||t>k){throw Error(D)}return N(new this.constructor(this),t+this.e+1,i)};q.sqrt=function(){var t,i,e,n=this,r=n.constructor,s=n.s,o=n.e,f=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+o&1))i+="0";s=Math.sqrt(i);o=((o+1)/2|0)-(o<0||o&1);t=new r((s==1/0?"5e":(s=s.toExponential()).slice(0,s.indexOf("e")+1))+o)}else{t=new r(s+"")}o=t.e+(r.DP+=4);do{e=t;t=f.times(e.plus(n.div(e)))}while(e.c.slice(0,o).join("")!==t.c.slice(0,o).join(""));return N(t,(r.DP-=4)+t.e+1,r.RM)};q.times=q.mul=function(t){var i,e=this,n=e.constructor,r=e.c,s=(t=new n(t)).c,o=r.length,f=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(o<f){i=r;r=s;s=i;a=o;o=f;f=a}for(i=new Array(a=o+f);a--;)i[a]=0;for(u=f;u--;){f=0;for(a=o+u;a>u;){f=i[a]+s[u]*r[a-u-1]+f;i[a--]=f%10;f=f/10|0}i[a]=f}if(f)++t.e;else i.shift();for(u=i.length;!i[--u];)i.pop();t.c=i;return t};q.toExponential=function(t,i){var e=this,n=e.c[0];if(t!==S){if(t!==~~t||t<0||t>k){throw Error(D)}e=N(new e.constructor(e),++t,i);for(;e.c.length<t;)e.c.push(0)}return P(e,true,!!n)};q.toFixed=function(t,i){var e=this,n=e.c[0];if(t!==S){if(t!==~~t||t<0||t>k){throw Error(D)}e=N(new e.constructor(e),t+e.e+1,i);for(t=t+e.e+1;e.c.length<t;)e.c.push(0)}return P(e,false,!!n)};q[Symbol.for("nodejs.util.inspect.custom")]=q.toJSON=q.toString=function(){var t=this,i=t.constructor;return P(t,t.e<=i.NE||t.e>=i.PE,!!t.c[0])};q.toNumber=function(){var t=Number(P(this,true,true));if(this.constructor.strict===true&&!this.eq(t.toString())){throw Error(C+"Imprecise conversion")}return t};q.toPrecision=function(t,i){var e=this,n=e.constructor,r=e.c[0];if(t!==S){if(t!==~~t||t<1||t>k){throw Error(I+"precision")}e=N(new n(e),t,i);for(;e.c.length<t;)e.c.push(0)}return P(e,t<=e.e||e.e<=n.NE||e.e>=n.PE,!!r)};q.valueOf=function(){var t=this,i=t.constructor;if(i.strict===true){throw Error(C+"valueOf disallowed")}return P(t,t.e<=i.NE||t.e>=i.PE,true)};var X=L();var Y=".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;font-weight:700}.bal-input-stepper__inner__text--invalid{color:var(--bal-color-text-danger)}.bal-input-stepper__inner__text--disabled{color:var(--bal-color-text-grey)}.bal-input-stepper__input{position:absolute;width:0;height:0;left:0;top:0;margin:0;padding:0;opacity:0;outline:0}";var A=t("bal_input_stepper",function(){function t(t){var n=this;i(this,t);this.balChange=e(this,"balChange");this.balInput=e(this,"balInput");this.balIncrease=e(this,"balIncrease");this.balDecrease=e(this,"balDecrease");this.balFocus=e(this,"balFocus");this.balBlur=e(this,"balBlur");this.inputId="bal-input-stepper-".concat(G++);this.inheritedAttributes={};this.decreaseHasFocus=false;this.increaseHasFocus=false;this.focused=false;this.language=m.language;this.region=m.region;this.ariaForm=h;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.initialValue=0;this.autoInvalidOff=false;this.onFocusDecrease=function(t){n.decreaseHasFocus=true;n.onFocus(t)};this.onFocusIncrease=function(t){n.increaseHasFocus=true;n.onFocus(t)};this.onFocus=function(t){l(t);n.balFocus.emit(t.detail)};this.onBlurDecrease=function(t){l(t);n.decreaseHasFocus=false;p((function(){return n.onBlur(t.detail)}))};this.onBlurIncrease=function(t){l(t);n.increaseHasFocus=false;p((function(){return n.onBlur(t.detail)}))};this.onBlur=function(t){if(!(n.decreaseHasFocus||n.increaseHasFocus)){n.balBlur.emit(t)}}}t.prototype.createLogger=function(t){this.log=t};t.prototype.debounceChanged=function(){this.balChange=b(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=a(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 X(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 X(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=c.block("input-stepper");var e=i.element("input");var s=i.element("inner");var o=s.element("text");var f=y[this.language].increase;var a=y[this.language].decrease;return n(r,{key:"b017edbea55108f2a839654ec284de97e833da65","aria-disabled":u(this.disabled),"aria-focused":this.focused?"true":null,class:Object.assign({},i.class())},n("div",{key:"d41f63eed88cd2f29901f23837978ff42cde96aa",class:Object.assign({},s.class())},n("bal-button",{key:"7acb51cae824f1e30f3348685903b61d8dae2746",a11yTitle:a,a11yLabel:a,a11yControls: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("span",{key:"5b14445f6049a7fc7786d780f9ec1e88e8ba73bc","data-testid":"bal-input-stepper-text",class:Object.assign(Object.assign(Object.assign({},o.class()),o.modifier("invalid").class(this.invalid)),o.modifier("disabled").class(this.disabled||this.readonly))},w(this.value)),n("bal-button",{key:"286ba68697b2dafcf2d543ad545d79474adae092",a11yTitle:f,a11yLabel:f,a11yControls: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:"5dfc042c5452657a0d53ba55ca2b7bfc7d3e6d8c",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":u(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}());o([v("bal-input-stepper"),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],A.prototype,"createLogger",null);o([g(),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",Promise)],A.prototype,"configChanged",null);var G=0;A.style=Y}}}));