@baloise/ds-core 19.6.0 → 19.7.0-nightly.20250905

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 (518) hide show
  1. package/README.md +1 -0
  2. package/components/all.d.ts +2 -0
  3. package/components/all.js +3 -0
  4. package/components/animation.decorator.js +1 -1
  5. package/components/bal-app.js +1 -98
  6. package/components/bal-app2.js +100 -0
  7. package/components/bal-button2.js +1 -1
  8. package/components/bal-carousel-item.js +1 -1
  9. package/components/bal-checkbox-group.js +1 -1
  10. package/components/bal-date.js +1 -1
  11. package/components/bal-doc-app.d.ts +11 -0
  12. package/components/bal-doc-app.js +262 -0
  13. package/components/bal-dropdown.js +1 -1
  14. package/components/bal-footer.js +6 -5
  15. package/components/bal-input-stepper.js +1 -1
  16. package/components/bal-list-item-accordion-body2.js +1 -1
  17. package/components/bal-list-item2.js +1 -1
  18. package/components/bal-logo2.js +1 -1
  19. package/components/bal-nav.js +1 -1
  20. package/components/bal-navbar-brand.js +12 -5
  21. package/components/bal-navbar.js +12 -2
  22. package/components/bal-option.js +3 -3
  23. package/components/bal-popup2.js +1 -1
  24. package/components/bal-radio-group.js +1 -1
  25. package/components/bal-segment-item.js +1 -1
  26. package/components/bal-select2.js +1 -1
  27. package/components/bal-spinner2.js +1 -1
  28. package/components/bal-stage-image.js +1 -1
  29. package/components/bal-tabs2.js +1 -1
  30. package/components/bal-toast.controller.js +1 -1
  31. package/components/breakpoints.subject.js +1 -1
  32. package/components/config.decorator.js +1 -1
  33. package/components/config.default.js +2 -1
  34. package/components/config.utils.js +2 -1
  35. package/components/element-states.decorator.js +1 -1
  36. package/components/floating-ui.js +1 -1
  37. package/components/focus.decorator.js +1 -1
  38. package/components/helpers.js +1 -1
  39. package/components/index.js +5 -318
  40. package/components/initialize.js +318 -0
  41. package/components/mutation.decorator.js +1 -1
  42. package/components/overlays.js +1 -1
  43. package/components/resize.decorator.js +1 -1
  44. package/components/swipe.subject.js +1 -1
  45. package/components/swiper.util.js +1 -1
  46. package/components/tokens.esm.js +1 -1
  47. package/components/visibility.decorator.js +1 -1
  48. package/components/window-resize.listener.js +1 -1
  49. package/dist/baloise-design-system/baloise-design-system.esm.js +1 -1
  50. package/dist/baloise-design-system/baloise-design-system.js +1 -1
  51. package/dist/baloise-design-system/index.esm.js +1 -1
  52. package/dist/baloise-design-system/{p-a9b6129706.entry.js → p-0255a0b98f.entry.js} +1 -1
  53. package/dist/baloise-design-system/{p-b940a310ce.entry.js → p-080caf8525.entry.js} +1 -1
  54. package/dist/baloise-design-system/{p-255dd40d49.entry.js → p-08bf31e886.entry.js} +1 -1
  55. package/dist/baloise-design-system/{p-5d94e1d7bc.system.entry.js → p-0b2e5176f9.system.entry.js} +1 -1
  56. package/dist/baloise-design-system/{p-e105c174ba.entry.js → p-0bcd4eada5.entry.js} +1 -1
  57. package/dist/baloise-design-system/{p-3f34f4d694.entry.js → p-0c691bbdf3.entry.js} +1 -1
  58. package/dist/baloise-design-system/{p-327c84b06b.entry.js → p-11c4b2198b.entry.js} +1 -1
  59. package/dist/baloise-design-system/{p-579729ab32.system.entry.js → p-12c143c32b.system.entry.js} +1 -1
  60. package/dist/baloise-design-system/{p-b3396ad233.system.entry.js → p-134743aea4.system.entry.js} +1 -1
  61. package/dist/baloise-design-system/p-13f102c92b.entry.js +1 -0
  62. package/dist/baloise-design-system/{p-1e6b1b8f18.system.entry.js → p-16395fd97a.system.entry.js} +1 -1
  63. package/dist/baloise-design-system/{p-cf2493f296.system.entry.js → p-16d48d6c8e.system.entry.js} +1 -1
  64. package/dist/baloise-design-system/{p-829e4b87db.entry.js → p-1915165d27.entry.js} +1 -1
  65. package/dist/baloise-design-system/{p-59390868c1.system.entry.js → p-1a48942fd6.system.entry.js} +1 -1
  66. package/dist/baloise-design-system/{p-6c22d31019.entry.js → p-1d5badda4e.entry.js} +1 -1
  67. package/dist/baloise-design-system/{p-436ab819a4.entry.js → p-1fa2808ea3.entry.js} +1 -1
  68. package/dist/baloise-design-system/{p-7f9f877f7f.system.entry.js → p-2360286f64.system.entry.js} +1 -1
  69. package/dist/baloise-design-system/{p-b2af8a3657.system.entry.js → p-23c5bb213d.system.entry.js} +1 -1
  70. package/dist/baloise-design-system/{p-77c10127b3.entry.js → p-2cfb7a334e.entry.js} +1 -1
  71. package/dist/baloise-design-system/{p-b2cd8c8099.system.entry.js → p-2daa1e8f26.system.entry.js} +1 -1
  72. package/dist/baloise-design-system/{p-c0024649c7.system.entry.js → p-335e54e9f6.system.entry.js} +1 -1
  73. package/dist/baloise-design-system/{p-baf3a3e8c6.entry.js → p-336c49d354.entry.js} +1 -1
  74. package/dist/baloise-design-system/{p-357f73c9af.entry.js → p-3481588ebb.entry.js} +1 -1
  75. package/dist/baloise-design-system/{p-70fbe46bc7.entry.js → p-353915fd75.entry.js} +1 -1
  76. package/dist/baloise-design-system/{p-a4fe936619.system.entry.js → p-37a02f870c.system.entry.js} +1 -1
  77. package/dist/baloise-design-system/{p-8bc0af1a02.system.entry.js → p-39d8c05f67.system.entry.js} +1 -1
  78. package/dist/baloise-design-system/{p-B1AyoRVX.system.js → p-3B8exZaC.system.js} +1 -1
  79. package/dist/baloise-design-system/p-3LIXbT1U.system.js +2 -0
  80. package/dist/baloise-design-system/{p-f3bfceb7a1.entry.js → p-3bd8fc45fe.entry.js} +1 -1
  81. package/dist/baloise-design-system/{p-3641978d62.entry.js → p-3cf0bd0242.entry.js} +1 -1
  82. package/dist/baloise-design-system/{p-1e9c5546fc.system.entry.js → p-3dda085bec.system.entry.js} +1 -1
  83. package/dist/baloise-design-system/{p-89770bf8d5.entry.js → p-3e9556e6f6.entry.js} +1 -1
  84. package/dist/baloise-design-system/{p-528de78f7e.system.entry.js → p-4328c822b9.system.entry.js} +1 -1
  85. package/dist/baloise-design-system/{p-d17f493233.system.entry.js → p-46467db8e2.system.entry.js} +1 -1
  86. package/dist/baloise-design-system/{p-5567a745f4.entry.js → p-471a1c6c55.entry.js} +1 -1
  87. package/dist/baloise-design-system/{p-f0299bfaa0.system.entry.js → p-488446ed34.system.entry.js} +1 -1
  88. package/dist/baloise-design-system/{p-f9a1529366.system.entry.js → p-495a2bd4fb.system.entry.js} +1 -1
  89. package/dist/baloise-design-system/{p-aab9782bb9.system.entry.js → p-4b7f63a935.system.entry.js} +1 -1
  90. package/dist/baloise-design-system/{p-7cb4057bf1.system.entry.js → p-4ba71e85ef.system.entry.js} +1 -1
  91. package/dist/baloise-design-system/{p-2f6b1669b1.entry.js → p-4cd55fea2a.entry.js} +1 -1
  92. package/dist/baloise-design-system/{p-396b84793c.system.entry.js → p-53e056127a.system.entry.js} +1 -1
  93. package/dist/baloise-design-system/{p-0ea9ab068b.entry.js → p-54a8b7a2d1.entry.js} +1 -1
  94. package/dist/baloise-design-system/{p-LWDNZMfk.system.js → p-56spTJuh.system.js} +1 -1
  95. package/dist/baloise-design-system/{p-3fdbe9aa5e.entry.js → p-580702ae17.entry.js} +1 -1
  96. package/dist/baloise-design-system/{p-0fabee4cc7.system.entry.js → p-583103e47d.system.entry.js} +1 -1
  97. package/dist/baloise-design-system/{p-0cf4c25729.system.entry.js → p-609b20e043.system.entry.js} +1 -1
  98. package/dist/baloise-design-system/{p-4ab146ba15.entry.js → p-621b2a7a48.entry.js} +1 -1
  99. package/dist/baloise-design-system/{p-308920f79d.system.entry.js → p-62b5e9cd04.system.entry.js} +1 -1
  100. package/dist/baloise-design-system/{p-5fce5a6968.entry.js → p-64442c5db6.entry.js} +1 -1
  101. package/dist/baloise-design-system/{p-ee33465cbb.system.entry.js → p-6a19b2dc84.system.entry.js} +1 -1
  102. package/dist/baloise-design-system/{p-141eebcbc9.system.entry.js → p-701c18bb1c.system.entry.js} +1 -1
  103. package/dist/baloise-design-system/{p-c56efe6658.system.entry.js → p-705a6d11a0.system.entry.js} +1 -1
  104. package/dist/baloise-design-system/{p-f888a4ef08.entry.js → p-789b1de612.entry.js} +1 -1
  105. package/dist/baloise-design-system/p-78b6e40f7d.entry.js +1 -0
  106. package/dist/baloise-design-system/{p-d86678383a.system.entry.js → p-79c0a0cfc3.system.entry.js} +1 -1
  107. package/dist/baloise-design-system/{p-88b5cb9d74.entry.js → p-7e2a785e6e.entry.js} +1 -1
  108. package/dist/baloise-design-system/{p-82158e02b1.system.entry.js → p-83c854ef1c.system.entry.js} +1 -1
  109. package/dist/baloise-design-system/{p-8c9f806358.system.entry.js → p-8450beef7d.system.entry.js} +1 -1
  110. package/dist/baloise-design-system/{p-3674034b9b.system.entry.js → p-87c872c6db.system.entry.js} +1 -1
  111. package/dist/baloise-design-system/{p-9d4ddca8b1.entry.js → p-87dd7faf73.entry.js} +1 -1
  112. package/dist/baloise-design-system/{p-10c062442e.system.entry.js → p-8e139471cf.system.entry.js} +1 -1
  113. package/dist/baloise-design-system/p-8e552cdd2b.entry.js +1 -0
  114. package/dist/baloise-design-system/{p-42aeea7c45.system.entry.js → p-8f9db2bf2b.system.entry.js} +1 -1
  115. package/dist/baloise-design-system/{p-df817b1f49.system.entry.js → p-912f546ed5.system.entry.js} +1 -1
  116. package/dist/baloise-design-system/{p-6242e41d53.system.entry.js → p-91cfde8f33.system.entry.js} +1 -1
  117. package/dist/baloise-design-system/{p-8a0dbc8717.system.entry.js → p-9b53e3ad4d.system.entry.js} +1 -1
  118. package/dist/baloise-design-system/{p-94610ff5fd.system.entry.js → p-9fa0b43a16.system.entry.js} +1 -1
  119. package/dist/baloise-design-system/{p-_-aZ6yxu.js → p-BBiAAqAf.js} +1 -1
  120. package/dist/baloise-design-system/{p-BKIj2FHt.js → p-BCxlnzTY.js} +1 -1
  121. package/dist/baloise-design-system/p-BR8GvIGK.system.js +1 -0
  122. package/dist/baloise-design-system/p-BRYwT3rx.js +1 -0
  123. package/dist/baloise-design-system/{p-CijAVuOR.system.js → p-BUMV0wsc.system.js} +1 -1
  124. package/dist/baloise-design-system/{p-CMlYDQJS.system.js → p-BVV57hqM.system.js} +1 -1
  125. package/dist/baloise-design-system/{p-DFL5miRG.system.js → p-BWVLtuzX.system.js} +1 -1
  126. package/dist/baloise-design-system/p-BjZyx3RT.system.js +1 -0
  127. package/dist/baloise-design-system/p-Bm-8Wwuk.system.js +1 -0
  128. package/dist/baloise-design-system/{p-DTr9aZ-a.system.js → p-BvS24NxA.system.js} +1 -1
  129. package/dist/baloise-design-system/{p-CTBN6DaX.js → p-CBPIL3vc.js} +1 -1
  130. package/dist/baloise-design-system/p-CGhOJIuC.js +1 -0
  131. package/dist/baloise-design-system/{p-Xn3qYezP.js → p-CH59lhPL.js} +1 -1
  132. package/dist/baloise-design-system/{p-ChlfBLwb.system.js → p-CIHPWK6N.system.js} +1 -1
  133. package/dist/baloise-design-system/{p-BShK1Wjy.system.js → p-CIj37Mat.system.js} +1 -1
  134. package/dist/baloise-design-system/{p-Qp9VencO.js → p-CJPmTWL7.js} +1 -1
  135. package/dist/baloise-design-system/{p-BZQXDr-g.js → p-CMwD7Y81.js} +1 -1
  136. package/dist/baloise-design-system/{p-D6aMm5nL.system.js → p-CQzJq3UV.system.js} +1 -1
  137. package/dist/baloise-design-system/{p-B6AwgiDg.system.js → p-C_afB5hE.system.js} +1 -1
  138. package/dist/baloise-design-system/{p-CXIZ5E3I.js → p-CjeFWnB1.js} +1 -1
  139. package/dist/baloise-design-system/p-CklISCW5.js +2 -0
  140. package/dist/baloise-design-system/{p-Bwanpq90.js → p-Cmdu5SrP.js} +1 -1
  141. package/dist/baloise-design-system/{p-DKTkP38R.js → p-Csq6Vow6.js} +1 -1
  142. package/dist/baloise-design-system/{p-Cqfnm-VD.js → p-CxCq4yoN.js} +1 -1
  143. package/dist/baloise-design-system/{p-NfGzBiKi.js → p-Cxw-iCFO.js} +1 -1
  144. package/dist/baloise-design-system/{p-CpKZoBAF.js → p-DDKV0GaT.js} +1 -1
  145. package/dist/baloise-design-system/{p-FtGnktAz.js → p-DIPt0_1F.js} +1 -1
  146. package/dist/baloise-design-system/{p-MZ0uDDT-.system.js → p-DM8YtMVD.system.js} +1 -1
  147. package/dist/baloise-design-system/{p-DnrTmF5s.js → p-DTD57WyM.js} +1 -1
  148. package/dist/baloise-design-system/{p-CsRrZXiS.system.js → p-DXPCmaiR.system.js} +1 -1
  149. package/dist/baloise-design-system/{p-BI_HKxCD.js → p-DakMS3Fc.js} +1 -1
  150. package/dist/baloise-design-system/{p-BXW6ULlI.js → p-DgB1E97V.js} +1 -1
  151. package/dist/baloise-design-system/{p-Bcq1Mq3d.js → p-DjAlMsHg.js} +1 -1
  152. package/dist/baloise-design-system/{p-LqKpDRjU.system.js → p-DmE48ulC.system.js} +1 -1
  153. package/dist/baloise-design-system/p-DqrrwDLt.js +1 -0
  154. package/dist/baloise-design-system/{p-Cdq4-OQc.js → p-DttRmuGk.js} +1 -1
  155. package/dist/baloise-design-system/{p-BMuEESB9.js → p-F-VMijHL.js} +1 -1
  156. package/dist/baloise-design-system/{p-B-5g9ywW.system.js → p-IvzuAEsC.system.js} +1 -1
  157. package/dist/baloise-design-system/{p-DGPZrO0x.system.js → p-KNWw1w9j.system.js} +1 -1
  158. package/dist/baloise-design-system/{p-B8EKDb1f.system.js → p-RQ-lGRPJ.system.js} +1 -1
  159. package/dist/baloise-design-system/{p-JIJH68HJ.system.js → p-Rg2rLnkc.system.js} +1 -1
  160. package/dist/baloise-design-system/{p-B2Q2M8GP.system.js → p-WqA1NejN.system.js} +1 -1
  161. package/dist/baloise-design-system/{p-c01a01cb9b.system.entry.js → p-a1ad308562.system.entry.js} +1 -1
  162. package/dist/baloise-design-system/{p-e9bcbaa911.system.entry.js → p-a36ef146da.system.entry.js} +1 -1
  163. package/dist/baloise-design-system/{p-e9c3c1e74d.entry.js → p-a3acc71261.entry.js} +1 -1
  164. package/dist/baloise-design-system/{p-dba1172156.entry.js → p-a50b023a5d.entry.js} +1 -1
  165. package/dist/baloise-design-system/{p-9fe93f520f.system.entry.js → p-aba2ee0ec7.system.entry.js} +1 -1
  166. package/dist/baloise-design-system/{p-32abd27bf3.system.entry.js → p-ae19501639.system.entry.js} +1 -1
  167. package/dist/baloise-design-system/{p-K4LP7N6U.system.js → p-ahXXUJJ9.system.js} +1 -1
  168. package/dist/baloise-design-system/{p-7405a37a9a.system.entry.js → p-b2b3f9cc1b.system.entry.js} +1 -1
  169. package/dist/baloise-design-system/{p-804bbad7f2.system.entry.js → p-b3d0c49fff.system.entry.js} +1 -1
  170. package/dist/baloise-design-system/{p-2ff59f7fe4.entry.js → p-b6a7e0ccab.entry.js} +1 -1
  171. package/dist/baloise-design-system/{p-60c78f3752.entry.js → p-b7be6d358b.entry.js} +1 -1
  172. package/dist/baloise-design-system/{p-56c831f3a3.entry.js → p-b915cb19ab.entry.js} +1 -1
  173. package/dist/baloise-design-system/p-b9341d98bf.system.entry.js +1 -0
  174. package/dist/baloise-design-system/{p-8df6be8b26.entry.js → p-ba3b0c7abf.entry.js} +1 -1
  175. package/dist/baloise-design-system/{p-67c13ad52e.system.entry.js → p-beee46fee0.system.entry.js} +1 -1
  176. package/dist/baloise-design-system/{p-c63fbd713d.entry.js → p-c1f2389fec.entry.js} +1 -1
  177. package/dist/baloise-design-system/{p-c6e8bdefb7.system.entry.js → p-c22013174d.system.entry.js} +1 -1
  178. package/dist/baloise-design-system/p-c363ece1e4.entry.js +1 -0
  179. package/dist/baloise-design-system/{p-68739646dc.entry.js → p-c590276627.entry.js} +1 -1
  180. package/dist/baloise-design-system/{p-b2448798dc.entry.js → p-c62fdffe10.entry.js} +1 -1
  181. package/dist/baloise-design-system/{p-996bb08384.system.entry.js → p-c656180994.system.entry.js} +1 -1
  182. package/dist/baloise-design-system/{p-18454aabec.entry.js → p-c6b61ec9cf.entry.js} +1 -1
  183. package/dist/baloise-design-system/{p-09e500512c.system.entry.js → p-c7902e9a8b.system.entry.js} +1 -1
  184. package/dist/baloise-design-system/{p-c399e0802b.system.entry.js → p-c7fbe9ea26.system.entry.js} +1 -1
  185. package/dist/baloise-design-system/{p-a1992195d6.entry.js → p-c817ca606d.entry.js} +1 -1
  186. package/dist/baloise-design-system/{p-0f6bb8caa3.system.entry.js → p-c892a92577.system.entry.js} +1 -1
  187. package/dist/baloise-design-system/p-c9b3ef4882.system.entry.js +1 -0
  188. package/dist/baloise-design-system/{p-b8fbe69291.entry.js → p-c9c11003d0.entry.js} +1 -1
  189. package/dist/baloise-design-system/{p-26acb6f5b7.entry.js → p-ce04a69a15.entry.js} +1 -1
  190. package/dist/baloise-design-system/{p-d1eb2cfb34.entry.js → p-d2e887ed5d.entry.js} +1 -1
  191. package/dist/baloise-design-system/p-d2e911ae94.entry.js +1 -0
  192. package/dist/baloise-design-system/{p-036ad57e58.system.entry.js → p-d569891caa.system.entry.js} +1 -1
  193. package/dist/baloise-design-system/{p-5465e8ac55.entry.js → p-d80a27b6f4.entry.js} +1 -1
  194. package/dist/baloise-design-system/{p-6c2f6e9387.entry.js → p-d987d9d825.entry.js} +1 -1
  195. package/dist/baloise-design-system/{p-2c3dfb7451.system.entry.js → p-db7d860c47.system.entry.js} +1 -1
  196. package/dist/baloise-design-system/{p-3d2104bdf0.entry.js → p-dc5d081a54.entry.js} +1 -1
  197. package/dist/baloise-design-system/{p-8ae0044332.entry.js → p-dc64f08b55.entry.js} +1 -1
  198. package/dist/baloise-design-system/{p-4829d80f77.system.entry.js → p-de8a23830d.system.entry.js} +1 -1
  199. package/dist/baloise-design-system/{p-046eabe224.entry.js → p-dfda842be4.entry.js} +1 -1
  200. package/dist/baloise-design-system/{p-ee42d05b0f.entry.js → p-dff15e5a92.entry.js} +1 -1
  201. package/dist/baloise-design-system/{p-3c5b679010.system.entry.js → p-e021a53a7b.system.entry.js} +1 -1
  202. package/dist/baloise-design-system/{p-9a16bde9ad.entry.js → p-e20a908371.entry.js} +1 -1
  203. package/dist/baloise-design-system/{p-09dfbc74cb.system.entry.js → p-e2b782b87a.system.entry.js} +1 -1
  204. package/dist/baloise-design-system/{p-4d8abb3842.system.entry.js → p-e3fd4ffe14.system.entry.js} +1 -1
  205. package/dist/baloise-design-system/{p-b4b8c92643.entry.js → p-e63793848f.entry.js} +1 -1
  206. package/dist/baloise-design-system/{p-cd820fb61f.system.entry.js → p-e73517c5cc.system.entry.js} +1 -1
  207. package/dist/baloise-design-system/{p-d347e78db6.system.entry.js → p-e94eec6509.system.entry.js} +1 -1
  208. package/dist/baloise-design-system/{p-1eac1a0cb5.system.entry.js → p-ea063fe3f6.system.entry.js} +1 -1
  209. package/dist/baloise-design-system/{p-ee54da6c49.entry.js → p-ed4aec6262.entry.js} +1 -1
  210. package/dist/baloise-design-system/{p-0d605fd429.entry.js → p-edaa3f00c8.entry.js} +1 -1
  211. package/dist/baloise-design-system/{p-9b07e22894.system.entry.js → p-efb61582d6.system.entry.js} +1 -1
  212. package/dist/baloise-design-system/{p-93a741aa6b.entry.js → p-f24fb56c23.entry.js} +1 -1
  213. package/dist/baloise-design-system/{p-1857577c70.entry.js → p-f483b3af3c.entry.js} +1 -1
  214. package/dist/baloise-design-system/{p-bc787eb281.entry.js → p-f5489a429e.entry.js} +1 -1
  215. package/dist/baloise-design-system/{p-18ca91931f.entry.js → p-f5bfb4e809.entry.js} +1 -1
  216. package/dist/baloise-design-system/{p-5eb0547ae1.entry.js → p-f7f272b3c9.entry.js} +1 -1
  217. package/dist/baloise-design-system/{p-147da3c2a7.entry.js → p-f88f2f91fd.entry.js} +1 -1
  218. package/dist/baloise-design-system/{p-Cu5bu0FH.system.js → p-oh7C8g0c.system.js} +1 -1
  219. package/dist/baloise-design-system/{p-BxUstF_6.system.js → p-x22XkQHu.system.js} +1 -1
  220. package/dist/cjs/{animation.decorator-BQs2AITt.js → animation.decorator-fnXkOAUg.js} +2 -2
  221. package/dist/cjs/bal-accordion_4.cjs.entry.js +3 -3
  222. package/dist/cjs/bal-app.cjs.entry.js +2 -2
  223. package/dist/cjs/bal-badge.cjs.entry.js +1 -1
  224. package/dist/cjs/bal-button_2.cjs.entry.js +1 -1
  225. package/dist/cjs/bal-card_6.cjs.entry.js +1 -1
  226. package/dist/cjs/bal-carousel_2.cjs.entry.js +15 -15
  227. package/dist/cjs/bal-check.cjs.entry.js +1 -1
  228. package/dist/cjs/bal-checkbox_2.cjs.entry.js +6 -6
  229. package/dist/cjs/bal-close.cjs.entry.js +2 -2
  230. package/dist/cjs/bal-content.cjs.entry.js +1 -1
  231. package/dist/cjs/bal-data_4.cjs.entry.js +2 -2
  232. package/dist/cjs/bal-date-calendar-cell.cjs.entry.js +2 -2
  233. package/dist/cjs/bal-date-calendar_2.cjs.entry.js +8 -8
  234. package/dist/cjs/bal-date.cjs.entry.js +5 -5
  235. package/dist/cjs/bal-divider.cjs.entry.js +1 -1
  236. package/dist/cjs/bal-doc-app.cjs.entry.js +224 -0
  237. package/dist/cjs/bal-dropdown.cjs.entry.js +4 -4
  238. package/dist/cjs/bal-field_5.cjs.entry.js +9 -9
  239. package/dist/cjs/bal-file-upload.cjs.entry.js +2 -2
  240. package/dist/cjs/bal-footer.cjs.entry.js +7 -6
  241. package/dist/cjs/bal-form-col_2.cjs.entry.js +1 -1
  242. package/dist/cjs/bal-form.cjs.entry.js +1 -1
  243. package/dist/cjs/bal-heading_2.cjs.entry.js +1 -1
  244. package/dist/cjs/bal-hint_5.cjs.entry.js +8 -8
  245. package/dist/cjs/bal-icon.cjs.entry.js +2 -2
  246. package/dist/cjs/bal-input-group.cjs.entry.js +1 -1
  247. package/dist/cjs/bal-input-slider.cjs.entry.js +2 -2
  248. package/dist/cjs/bal-input-stepper.cjs.entry.js +4 -4
  249. package/dist/cjs/bal-input.cjs.entry.js +2 -2
  250. package/dist/cjs/bal-label.cjs.entry.js +2 -2
  251. package/dist/cjs/bal-list_8.cjs.entry.js +10 -10
  252. package/dist/cjs/bal-logo.cjs.entry.js +7 -7
  253. package/dist/cjs/bal-modal_3.cjs.entry.js +3 -3
  254. package/dist/cjs/bal-nav_8.cjs.entry.js +12 -12
  255. package/dist/cjs/bal-navbar_5.cjs.entry.js +28 -13
  256. package/dist/cjs/bal-notices_3.cjs.entry.js +1 -1
  257. package/dist/cjs/bal-notification.cjs.entry.js +1 -1
  258. package/dist/cjs/bal-number-input.cjs.entry.js +4 -4
  259. package/dist/cjs/bal-option_2.cjs.entry.js +5 -5
  260. package/dist/cjs/bal-pagination.cjs.entry.js +7 -7
  261. package/dist/cjs/bal-popup.cjs.entry.js +3 -3
  262. package/dist/cjs/bal-progress-bar.cjs.entry.js +8 -8
  263. package/dist/cjs/bal-radio-icon.cjs.entry.js +1 -1
  264. package/dist/cjs/bal-radio_2.cjs.entry.js +6 -6
  265. package/dist/cjs/bal-segment_2.cjs.entry.js +12 -12
  266. package/dist/cjs/bal-select_2.cjs.entry.js +2 -2
  267. package/dist/cjs/bal-shape.cjs.entry.js +2 -2
  268. package/dist/cjs/bal-sheet.cjs.entry.js +1 -1
  269. package/dist/cjs/bal-spinner.cjs.entry.js +2 -2
  270. package/dist/cjs/bal-stack.cjs.entry.js +1 -1
  271. package/dist/cjs/bal-stage_6.cjs.entry.js +1 -1
  272. package/dist/cjs/bal-step-item.cjs.entry.js +1 -1
  273. package/dist/cjs/bal-steps.cjs.entry.js +8 -8
  274. package/dist/cjs/bal-switch.cjs.entry.js +1 -1
  275. package/dist/cjs/bal-tab-item_2.cjs.entry.js +16 -16
  276. package/dist/cjs/bal-table.cjs.entry.js +1 -1
  277. package/dist/cjs/bal-tag_2.cjs.entry.js +1 -1
  278. package/dist/cjs/bal-textarea.cjs.entry.js +2 -2
  279. package/dist/cjs/bal-time-input.cjs.entry.js +3 -3
  280. package/dist/cjs/bal-tooltip.cjs.entry.js +3 -3
  281. package/dist/cjs/baloise-design-system.cjs.js +2 -2
  282. package/dist/cjs/{breakpoints.decorator-Cz7bHPb8.js → breakpoints.decorator-SrIBm-_K.js} +1 -1
  283. package/dist/cjs/{breakpoints.subject-BvbPa-gl.js → breakpoints.subject-_bDZ3XHk.js} +4 -4
  284. package/dist/cjs/{config.decorator-CQRDZ01U.js → config.decorator-Bql7C-AT.js} +1 -1
  285. package/dist/cjs/{date-z_vUhJKX.js → date-DaSrQCG2.js} +1 -1
  286. package/dist/cjs/{device-CGF-jwuI.js → device-D8GN5vuz.js} +1 -1
  287. package/dist/cjs/{element-states.decorator-CMvhbLTn.js → element-states.decorator-Btg8V0Gw.js} +2 -2
  288. package/dist/cjs/{floating-ui-m-JX9fOD.js → floating-ui-DOkVSkor.js} +1 -1
  289. package/dist/cjs/{focus.decorator-DCbpgjOf.js → focus.decorator-1VNngs-Y.js} +2 -2
  290. package/dist/cjs/{form-input-C8gIh4D6.js → form-input-Dphabljq.js} +1 -1
  291. package/dist/cjs/{index-wO-C-tKN.js → index-CJK1u2Q5.js} +35 -32
  292. package/dist/cjs/index.cjs.js +10 -10
  293. package/dist/cjs/{listener-uDpu-o5_.js → listener-BHmwpN04.js} +1 -1
  294. package/dist/cjs/loader.cjs.js +2 -2
  295. package/dist/cjs/{mutation.decorator-DPig03Ej.js → mutation.decorator-CrrTf-c-.js} +2 -2
  296. package/dist/cjs/{number-BBJn3NM7.js → number-B4BsuB-e.js} +1 -1
  297. package/dist/cjs/{overlays-D1QKuo7y.js → overlays-CL8oOXM9.js} +1 -1
  298. package/dist/cjs/{resize.decorator-BCRm5MT8.js → resize.decorator-C5UCeXYs.js} +2 -2
  299. package/dist/cjs/{scroll-BygWE09c.js → scroll-DhkdDsPU.js} +1 -1
  300. package/dist/cjs/{swipe.decorator-CL9n3sPQ.js → swipe.decorator-Dy6oBVic.js} +1 -1
  301. package/dist/cjs/{swipe.subject-C6ExuqLB.js → swipe.subject-BRRVyyfV.js} +3 -3
  302. package/dist/cjs/{swiper.util-ovY-Y7w8.js → swiper.util-BYVIcMaK.js} +2 -2
  303. package/dist/cjs/{tokens.esm-G_2YKM-0.js → tokens.esm-I5SykxsW.js} +1 -1
  304. package/dist/cjs/{visibility.decorator-BG3QR7oi.js → visibility.decorator-CJNej5uD.js} +2 -2
  305. package/dist/cjs/{window-resize.decorator-KhRfwqd-.js → window-resize.decorator-BSItHIQU.js} +1 -1
  306. package/dist/cjs/{window-resize.subject-avwpF9vX.js → window-resize.subject-Cl0R27bs.js} +3 -3
  307. package/dist/collection/collection-manifest.json +2 -1
  308. package/dist/collection/components/bal-footer/bal-footer.js +5 -4
  309. package/dist/collection/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.js +30 -4
  310. package/dist/collection/components/bal-navbar/bal-navbar.js +35 -1
  311. package/dist/collection/components/bal-option/bal-option.js +3 -3
  312. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.css +1 -0
  313. package/dist/collection/components/docs/bal-doc-app/bal-doc-app.js +248 -0
  314. package/dist/collection/utils/config/config.default.js +2 -1
  315. package/dist/collection/utils/constants/icons.constant.js +1 -0
  316. package/dist/collection/utils/constants/version.constant.js +1 -1
  317. package/dist/esm/{animation.decorator-C74KMO7Q.js → animation.decorator-DxHJMggb.js} +2 -2
  318. package/dist/esm/bal-accordion_4.entry.js +3 -3
  319. package/dist/esm/bal-app.entry.js +2 -2
  320. package/dist/esm/bal-badge.entry.js +1 -1
  321. package/dist/esm/bal-button_2.entry.js +1 -1
  322. package/dist/esm/bal-card_6.entry.js +1 -1
  323. package/dist/esm/bal-carousel_2.entry.js +15 -15
  324. package/dist/esm/bal-check.entry.js +1 -1
  325. package/dist/esm/bal-checkbox_2.entry.js +6 -6
  326. package/dist/esm/bal-close.entry.js +2 -2
  327. package/dist/esm/bal-content.entry.js +1 -1
  328. package/dist/esm/bal-data_4.entry.js +2 -2
  329. package/dist/esm/bal-date-calendar-cell.entry.js +2 -2
  330. package/dist/esm/bal-date-calendar_2.entry.js +8 -8
  331. package/dist/esm/bal-date.entry.js +5 -5
  332. package/dist/esm/bal-divider.entry.js +1 -1
  333. package/dist/esm/bal-doc-app.entry.js +222 -0
  334. package/dist/esm/bal-dropdown.entry.js +4 -4
  335. package/dist/esm/bal-field_5.entry.js +9 -9
  336. package/dist/esm/bal-file-upload.entry.js +2 -2
  337. package/dist/esm/bal-footer.entry.js +7 -6
  338. package/dist/esm/bal-form-col_2.entry.js +1 -1
  339. package/dist/esm/bal-form.entry.js +1 -1
  340. package/dist/esm/bal-heading_2.entry.js +1 -1
  341. package/dist/esm/bal-hint_5.entry.js +8 -8
  342. package/dist/esm/bal-icon.entry.js +2 -2
  343. package/dist/esm/bal-input-group.entry.js +1 -1
  344. package/dist/esm/bal-input-slider.entry.js +2 -2
  345. package/dist/esm/bal-input-stepper.entry.js +4 -4
  346. package/dist/esm/bal-input.entry.js +2 -2
  347. package/dist/esm/bal-label.entry.js +2 -2
  348. package/dist/esm/bal-list_8.entry.js +10 -10
  349. package/dist/esm/bal-logo.entry.js +7 -7
  350. package/dist/esm/bal-modal_3.entry.js +3 -3
  351. package/dist/esm/bal-nav_8.entry.js +12 -12
  352. package/dist/esm/bal-navbar_5.entry.js +28 -13
  353. package/dist/esm/bal-notices_3.entry.js +1 -1
  354. package/dist/esm/bal-notification.entry.js +1 -1
  355. package/dist/esm/bal-number-input.entry.js +4 -4
  356. package/dist/esm/bal-option_2.entry.js +5 -5
  357. package/dist/esm/bal-pagination.entry.js +7 -7
  358. package/dist/esm/bal-popup.entry.js +3 -3
  359. package/dist/esm/bal-progress-bar.entry.js +8 -8
  360. package/dist/esm/bal-radio-icon.entry.js +1 -1
  361. package/dist/esm/bal-radio_2.entry.js +6 -6
  362. package/dist/esm/bal-segment_2.entry.js +12 -12
  363. package/dist/esm/bal-select_2.entry.js +2 -2
  364. package/dist/esm/bal-shape.entry.js +2 -2
  365. package/dist/esm/bal-sheet.entry.js +1 -1
  366. package/dist/esm/bal-spinner.entry.js +2 -2
  367. package/dist/esm/bal-stack.entry.js +1 -1
  368. package/dist/esm/bal-stage_6.entry.js +1 -1
  369. package/dist/esm/bal-step-item.entry.js +1 -1
  370. package/dist/esm/bal-steps.entry.js +8 -8
  371. package/dist/esm/bal-switch.entry.js +1 -1
  372. package/dist/esm/bal-tab-item_2.entry.js +16 -16
  373. package/dist/esm/bal-table.entry.js +1 -1
  374. package/dist/esm/bal-tag_2.entry.js +1 -1
  375. package/dist/esm/bal-textarea.entry.js +2 -2
  376. package/dist/esm/bal-time-input.entry.js +3 -3
  377. package/dist/esm/bal-tooltip.entry.js +3 -3
  378. package/dist/esm/baloise-design-system.js +3 -3
  379. package/dist/esm/{breakpoints.decorator-B5g2J7uh.js → breakpoints.decorator-DnzL7vtb.js} +1 -1
  380. package/dist/esm/{breakpoints.subject-BUhfnNwa.js → breakpoints.subject-BXhEgKYM.js} +4 -4
  381. package/dist/esm/{config.decorator-CIdA1I1h.js → config.decorator-vXcNSbMQ.js} +1 -1
  382. package/dist/esm/{date-B_izjCbq.js → date-D225EG7F.js} +1 -1
  383. package/dist/esm/{device-D0RSC50t.js → device-B3l1awwp.js} +1 -1
  384. package/dist/esm/{element-states.decorator-vMjZ-Gkt.js → element-states.decorator-C1hp1jfs.js} +2 -2
  385. package/dist/esm/{floating-ui-DbGhJUAh.js → floating-ui-BWjkA_kd.js} +1 -1
  386. package/dist/esm/{focus.decorator-BFN3uq1V.js → focus.decorator-k30B5a16.js} +2 -2
  387. package/dist/esm/{form-input-C2vJzMPS.js → form-input-DhM6Gs85.js} +1 -1
  388. package/dist/esm/{index-BtpJmRB8.js → index-CklISCW5.js} +35 -33
  389. package/dist/esm/index.js +13 -13
  390. package/dist/esm/{listener-DI7AdrHk.js → listener-CRr0Q2i3.js} +1 -1
  391. package/dist/esm/loader.js +3 -3
  392. package/dist/esm/{mutation.decorator-B31D1rO_.js → mutation.decorator-DKh5EpAJ.js} +2 -2
  393. package/dist/esm/{number-RGLokB1E.js → number-DZPL8V4j.js} +1 -1
  394. package/dist/esm/{overlays-BbuwDTcV.js → overlays-CgJBe_4T.js} +1 -1
  395. package/dist/esm/{resize.decorator-C0LM9fHV.js → resize.decorator-BayTbpbw.js} +2 -2
  396. package/dist/esm/{scroll-D_L9mSoZ.js → scroll-C-v_aKIF.js} +1 -1
  397. package/dist/esm/{swipe.decorator-BpU5Ogqx.js → swipe.decorator-DnWl7N8h.js} +1 -1
  398. package/dist/esm/{swipe.subject-B1IPMW8E.js → swipe.subject-C7JBUPjB.js} +3 -3
  399. package/dist/esm/{swiper.util-CGTOx2uL.js → swiper.util-DPsO-kAa.js} +2 -2
  400. package/dist/esm/{tokens.esm-Dal-cGiQ.js → tokens.esm-D8vs3D5y.js} +1 -1
  401. package/dist/esm/{visibility.decorator-tAqXui-F.js → visibility.decorator-D3Ak93-T.js} +2 -2
  402. package/dist/esm/{window-resize.decorator-DpazCyu9.js → window-resize.decorator-BPP8VwWK.js} +1 -1
  403. package/dist/esm/{window-resize.subject-nsxIxT5E.js → window-resize.subject-BMXDvx04.js} +3 -3
  404. package/dist/esm-es5/{animation.decorator-C74KMO7Q.js → animation.decorator-DxHJMggb.js} +1 -1
  405. package/dist/esm-es5/bal-accordion_4.entry.js +1 -1
  406. package/dist/esm-es5/bal-app.entry.js +1 -1
  407. package/dist/esm-es5/bal-badge.entry.js +1 -1
  408. package/dist/esm-es5/bal-button_2.entry.js +1 -1
  409. package/dist/esm-es5/bal-card_6.entry.js +1 -1
  410. package/dist/esm-es5/bal-carousel_2.entry.js +1 -1
  411. package/dist/esm-es5/bal-check.entry.js +1 -1
  412. package/dist/esm-es5/bal-checkbox_2.entry.js +1 -1
  413. package/dist/esm-es5/bal-close.entry.js +1 -1
  414. package/dist/esm-es5/bal-content.entry.js +1 -1
  415. package/dist/esm-es5/bal-data_4.entry.js +1 -1
  416. package/dist/esm-es5/bal-date-calendar-cell.entry.js +1 -1
  417. package/dist/esm-es5/bal-date-calendar_2.entry.js +1 -1
  418. package/dist/esm-es5/bal-date.entry.js +1 -1
  419. package/dist/esm-es5/bal-divider.entry.js +1 -1
  420. package/dist/esm-es5/bal-doc-app.entry.js +1 -0
  421. package/dist/esm-es5/bal-dropdown.entry.js +1 -1
  422. package/dist/esm-es5/bal-field_5.entry.js +1 -1
  423. package/dist/esm-es5/bal-file-upload.entry.js +1 -1
  424. package/dist/esm-es5/bal-footer.entry.js +1 -1
  425. package/dist/esm-es5/bal-form-col_2.entry.js +1 -1
  426. package/dist/esm-es5/bal-form.entry.js +1 -1
  427. package/dist/esm-es5/bal-heading_2.entry.js +1 -1
  428. package/dist/esm-es5/bal-hint_5.entry.js +1 -1
  429. package/dist/esm-es5/bal-icon.entry.js +1 -1
  430. package/dist/esm-es5/bal-input-group.entry.js +1 -1
  431. package/dist/esm-es5/bal-input-slider.entry.js +1 -1
  432. package/dist/esm-es5/bal-input-stepper.entry.js +1 -1
  433. package/dist/esm-es5/bal-input.entry.js +1 -1
  434. package/dist/esm-es5/bal-label.entry.js +1 -1
  435. package/dist/esm-es5/bal-list_8.entry.js +1 -1
  436. package/dist/esm-es5/bal-logo.entry.js +1 -1
  437. package/dist/esm-es5/bal-modal_3.entry.js +1 -1
  438. package/dist/esm-es5/bal-nav_8.entry.js +1 -1
  439. package/dist/esm-es5/bal-navbar_5.entry.js +1 -1
  440. package/dist/esm-es5/bal-notices_3.entry.js +1 -1
  441. package/dist/esm-es5/bal-notification.entry.js +1 -1
  442. package/dist/esm-es5/bal-number-input.entry.js +1 -1
  443. package/dist/esm-es5/bal-option_2.entry.js +1 -1
  444. package/dist/esm-es5/bal-pagination.entry.js +1 -1
  445. package/dist/esm-es5/bal-popup.entry.js +1 -1
  446. package/dist/esm-es5/bal-progress-bar.entry.js +1 -1
  447. package/dist/esm-es5/bal-radio-icon.entry.js +1 -1
  448. package/dist/esm-es5/bal-radio_2.entry.js +1 -1
  449. package/dist/esm-es5/bal-segment_2.entry.js +1 -1
  450. package/dist/esm-es5/bal-select_2.entry.js +1 -1
  451. package/dist/esm-es5/bal-shape.entry.js +1 -1
  452. package/dist/esm-es5/bal-sheet.entry.js +1 -1
  453. package/dist/esm-es5/bal-spinner.entry.js +1 -1
  454. package/dist/esm-es5/bal-stack.entry.js +1 -1
  455. package/dist/esm-es5/bal-stage_6.entry.js +1 -1
  456. package/dist/esm-es5/bal-step-item.entry.js +1 -1
  457. package/dist/esm-es5/bal-steps.entry.js +1 -1
  458. package/dist/esm-es5/bal-switch.entry.js +1 -1
  459. package/dist/esm-es5/bal-tab-item_2.entry.js +1 -1
  460. package/dist/esm-es5/bal-table.entry.js +1 -1
  461. package/dist/esm-es5/bal-tag_2.entry.js +1 -1
  462. package/dist/esm-es5/bal-textarea.entry.js +1 -1
  463. package/dist/esm-es5/bal-time-input.entry.js +1 -1
  464. package/dist/esm-es5/bal-tooltip.entry.js +1 -1
  465. package/dist/esm-es5/baloise-design-system.js +1 -1
  466. package/dist/esm-es5/{breakpoints.decorator-B5g2J7uh.js → breakpoints.decorator-DnzL7vtb.js} +1 -1
  467. package/dist/esm-es5/{breakpoints.subject-BUhfnNwa.js → breakpoints.subject-BXhEgKYM.js} +1 -1
  468. package/dist/esm-es5/{config.decorator-CIdA1I1h.js → config.decorator-vXcNSbMQ.js} +1 -1
  469. package/dist/esm-es5/{date-B_izjCbq.js → date-D225EG7F.js} +1 -1
  470. package/dist/esm-es5/{device-D0RSC50t.js → device-B3l1awwp.js} +1 -1
  471. package/dist/esm-es5/{element-states.decorator-vMjZ-Gkt.js → element-states.decorator-C1hp1jfs.js} +1 -1
  472. package/dist/esm-es5/{floating-ui-DbGhJUAh.js → floating-ui-BWjkA_kd.js} +1 -1
  473. package/dist/esm-es5/{focus.decorator-BFN3uq1V.js → focus.decorator-k30B5a16.js} +1 -1
  474. package/dist/esm-es5/{form-input-C2vJzMPS.js → form-input-DhM6Gs85.js} +1 -1
  475. package/dist/esm-es5/index-CklISCW5.js +2 -0
  476. package/dist/esm-es5/index.js +1 -1
  477. package/dist/esm-es5/{listener-DI7AdrHk.js → listener-CRr0Q2i3.js} +1 -1
  478. package/dist/esm-es5/loader.js +1 -1
  479. package/dist/esm-es5/mutation.decorator-DKh5EpAJ.js +1 -0
  480. package/dist/esm-es5/{number-RGLokB1E.js → number-DZPL8V4j.js} +1 -1
  481. package/dist/esm-es5/{overlays-BbuwDTcV.js → overlays-CgJBe_4T.js} +1 -1
  482. package/dist/esm-es5/resize.decorator-BayTbpbw.js +1 -0
  483. package/dist/esm-es5/{scroll-D_L9mSoZ.js → scroll-C-v_aKIF.js} +1 -1
  484. package/dist/esm-es5/{swipe.decorator-BpU5Ogqx.js → swipe.decorator-DnWl7N8h.js} +1 -1
  485. package/dist/esm-es5/{swipe.subject-B1IPMW8E.js → swipe.subject-C7JBUPjB.js} +1 -1
  486. package/dist/esm-es5/{swiper.util-CGTOx2uL.js → swiper.util-DPsO-kAa.js} +1 -1
  487. package/dist/esm-es5/{visibility.decorator-tAqXui-F.js → visibility.decorator-D3Ak93-T.js} +1 -1
  488. package/dist/esm-es5/{window-resize.decorator-DpazCyu9.js → window-resize.decorator-BPP8VwWK.js} +1 -1
  489. package/dist/esm-es5/window-resize.subject-BMXDvx04.js +1 -0
  490. package/dist/types/components/bal-navbar/bal-navbar-brand/bal-navbar-brand.d.ts +5 -1
  491. package/dist/types/components/bal-navbar/bal-navbar.d.ts +4 -0
  492. package/dist/types/components/docs/bal-doc-app/bal-doc-app.d.ts +21 -0
  493. package/dist/types/components.d.ts +80 -0
  494. package/dist/types/home/runner/work/design-system/design-system/packages/core/.stencil/packages/icons/src/index.d.ts +82 -0
  495. package/dist/types/utils/config/config.default.d.ts +1 -0
  496. package/dist/types/utils/constants/icons.constant.d.ts +1 -0
  497. package/dist/types/utils/dropdown/option.d.ts +2 -2
  498. package/package.json +6 -7
  499. package/dist/baloise-design-system/p-0a4ac49e02.entry.js +0 -1
  500. package/dist/baloise-design-system/p-139f607aea.entry.js +0 -1
  501. package/dist/baloise-design-system/p-923324da01.entry.js +0 -1
  502. package/dist/baloise-design-system/p-Bas5fYcv.system.js +0 -2
  503. package/dist/baloise-design-system/p-BtpJmRB8.js +0 -2
  504. package/dist/baloise-design-system/p-CGa0VUlf.js +0 -1
  505. package/dist/baloise-design-system/p-CZL1LuwV.system.js +0 -1
  506. package/dist/baloise-design-system/p-DJQ7cTKs.system.js +0 -1
  507. package/dist/baloise-design-system/p-Dd2hz_QL.system.js +0 -1
  508. package/dist/baloise-design-system/p-Dmw7DZSr.js +0 -1
  509. package/dist/baloise-design-system/p-WC2U8mYh.js +0 -1
  510. package/dist/baloise-design-system/p-cd61656b64.system.entry.js +0 -1
  511. package/dist/baloise-design-system/p-e071742801.entry.js +0 -1
  512. package/dist/esm-es5/index-BtpJmRB8.js +0 -2
  513. package/dist/esm-es5/mutation.decorator-B31D1rO_.js +0 -1
  514. package/dist/esm-es5/resize.decorator-C0LM9fHV.js +0 -1
  515. package/dist/esm-es5/window-resize.subject-nsxIxT5E.js +0 -1
  516. /package/dist/baloise-design-system/{p-meHsyXfE.system.js → p-CS6bEURh.system.js} +0 -0
  517. /package/dist/baloise-design-system/{p-Dal-cGiQ.js → p-D8vs3D5y.js} +0 -0
  518. /package/dist/esm-es5/{tokens.esm-Dal-cGiQ.js → tokens.esm-D8vs3D5y.js} +0 -0
@@ -1 +1 @@
1
- import{H as t,M as e,N as n,O as o,L as i,P as r,a}from"./p-BtpJmRB8.js";import{_ as s,a as l}from"./p-dfXERft2.js";import{B as c}from"./p-ByiN-QjD.js";import{b as p}from"./p-BXW6ULlI.js";import{L as d}from"./p-BZQXDr-g.js";import{L as h}from"./p-Dmw7DZSr.js";import{b,d as u}from"./p-D1VPLQ5z.js";import{B as f}from"./p-BKIj2FHt.js";import{p as v}from"./p-BG4j3FEv.js";import"./p-Bcq1Mq3d.js";import"./p-Cdq4-OQc.js";import"./p-Dal-cGiQ.js";import"./p-xbSOW78W.js";import"./p-BFTU3MAI.js";const m=class{constructor(e){t(this,e),this.bodyScrollHandler=new f,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()),v(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=c.block("hint"),o=t.element("icon"),i=t.element("content"),r=i.element("buttons"),a=()=>e("bal-icon",{class:Object.assign({},o.class()),"bal-popup":this.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:t=>{(b(t)||u(t))&&(t.preventDefault(),this.toggle())}}),s=()=>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(n,{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",ref:t=>this.popupElement=t,onBalChange:this.onPopupChange,variant:this.isMobile?"fullscreen":"popover",offset:this.isMobile?0:16},e("bal-popup-content",null,e(s,null))))),null),e("div",{ref:t=>this.slotWrapperEl=t,style:{display:"none"}},e("slot",null)))}get element(){return o(this)}};s([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],m.prototype,"breakpointListener",null),s([h(),l("design:type",Function),l("design:paramtypes",[Object]),l("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{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-color-light-blue-5)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background)}.bal-hint__content{background:var(--bal-hint-content-background);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=c.block("hint").element("content").element("text"),o=t.element("field");return e(n,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},t.class())},e("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},o.class())},e("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))}},y=class{constructor(e){t(this,e)}render(){const t=c.block("hint").element("content").element("title"),o=t.element("heading");return e(n,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},t.class())},e("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},o.class())},e("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},e("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))}};var w="top",x="bottom",O="right",j="left",k="auto",z=[w,x,O,j],L="start",B="end",C="viewport",M="popper",P=z.reduce((function(t,e){return t.concat([e+"-"+L,e+"-"+B])}),[]),E=[].concat(z,[k]).reduce((function(t,e){return t.concat([e,e+"-"+L,e+"-"+B])}),[]),A=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function D(t){return t?(t.nodeName||"").toLowerCase():null}function S(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function W(t){return t instanceof S(t).Element||t instanceof Element}function F(t){return t instanceof S(t).HTMLElement||t instanceof HTMLElement}function q(t){return"undefined"!=typeof ShadowRoot&&(t instanceof S(t).ShadowRoot||t instanceof ShadowRoot)}function R(t){return t.split("-")[0]}var T=Math.max,I=Math.min,H=Math.round;function $(){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 Q(){return!/^((?!chrome|android).)*safari/i.test($())}function U(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),i=1,r=1;e&&F(t)&&(i=t.offsetWidth>0&&H(o.width)/t.offsetWidth||1,r=t.offsetHeight>0&&H(o.height)/t.offsetHeight||1);var a=(W(t)?S(t):window).visualViewport,s=!Q()&&n,l=(o.left+(s&&a?a.offsetLeft:0))/i,c=(o.top+(s&&a?a.offsetTop:0))/r,p=o.width/i,d=o.height/r;return{width:p,height:d,top:c,right:l+p,bottom:c+d,left:l,x:l,y:c}}function K(t){var e=U(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function N(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&q(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function X(t){return S(t).getComputedStyle(t)}function G(t){return["table","td","th"].indexOf(D(t))>=0}function V(t){return((W(t)?t.ownerDocument:t.document)||window.document).documentElement}function Z(t){return"html"===D(t)?t:t.assignedSlot||t.parentNode||(q(t)?t.host:null)||V(t)}function J(t){return F(t)&&"fixed"!==X(t).position?t.offsetParent:null}function Y(t){for(var e=S(t),n=J(t);n&&G(n)&&"static"===X(n).position;)n=J(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===X(n).position)?e:n||function(t){var e=/firefox/i.test($());if(/Trident/i.test($())&&F(t)&&"fixed"===X(t).position)return null;var n=Z(t);for(q(n)&&(n=n.host);F(n)&&["html","body"].indexOf(D(n))<0;){var o=X(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||e}function tt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function et(t,e,n){return T(t,I(e,n))}function nt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ot(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function it(t){return t.split("-")[1]}var rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(t){var e,n=t.popper,o=t.popperRect,i=t.placement,r=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=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=j,y=w,k=window;if(c){var z=Y(n),L="clientHeight",C="clientWidth";z===S(n)&&"static"!==X(z=V(n)).position&&"absolute"===s&&(L="scrollHeight",C="scrollWidth"),(i===w||(i===j||i===O)&&r===B)&&(y=x,f-=(d&&z===k&&k.visualViewport?k.visualViewport.height:z[L])-o.height,f*=l?1:-1),i!==j&&(i!==w&&i!==x||r!==B)||(g=O,b-=(d&&z===k&&k.visualViewport?k.visualViewport.width:z[C])-o.width,b*=l?1:-1)}var M,P=Object.assign({position:s},c&&rt),E=!0===p?function(t,e){var n=t.y,o=e.devicePixelRatio||1;return{x:H(t.x*o)/o||0,y:H(n*o)/o||0}}({x:b,y:f},S(n)):{x:b,y:f};return b=E.x,f=E.y,Object.assign({},P,l?((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},lt={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(t){return t.replace(/left|right|bottom|top/g,(function(t){return lt[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=S(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bt(t){return U(V(t)).left+ht(t).scrollLeft}function ut(t){var e=X(t);return/auto|scroll|overlay|hidden/.test(e.overflow+e.overflowY+e.overflowX)}function ft(t){return["html","body","#document"].indexOf(D(t))>=0?t.ownerDocument.body:F(t)&&ut(t)?t:ft(Z(t))}function vt(t,e){var n;void 0===e&&(e=[]);var o=ft(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=S(o),a=i?[r].concat(r.visualViewport||[],ut(o)?o:[]):o,s=e.concat(a);return i?s:s.concat(vt(Z(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,n){return e===C?mt(function(t,e){var n=S(t),o=V(t),i=n.visualViewport,r=o.clientWidth,a=o.clientHeight,s=0,l=0;if(i){r=i.width,a=i.height;var c=Q();(c||!c&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:r,height:a,x:s+bt(t),y:l}}(t,n)):W(e)?function(t,e){var n=U(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):mt(function(t){var e,n=V(t),o=ht(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=T(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=T(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-o.scrollLeft+bt(t),l=-o.scrollTop;return"rtl"===X(i||n).direction&&(s+=T(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:s,y:l}}(V(t)))}function gt(t){var e,n=t.reference,o=t.element,i=t.placement,r=i?R(i):null,a=i?it(i):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(r){case w:e={x:s,y:n.y-o.height};break;case x:e={x:s,y:n.y+n.height};break;case O:e={x:n.x+n.width,y:l};break;case j:e={x:n.x-o.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?tt(r):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case L:e[c]=e[c]-(n[p]/2-o[p]/2);break;case B:e[c]=e[c]+(n[p]/2-o[p]/2)}}return e}function yt(t,e){void 0===e&&(e={});var n=e.placement,o=void 0===n?t.placement:n,i=e.strategy,r=void 0===i?t.strategy:i,a=e.boundary,s=void 0===a?"clippingParents":a,l=e.rootBoundary,c=void 0===l?C:l,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=nt("number"!=typeof f?f:ot(f,z)),m=t.rects.popper,_=t.elements[b?d===M?"reference":M:d],g=function(t,e,n,o){var i="clippingParents"===e?function(t){var e=vt(Z(t)),n=["absolute","fixed"].indexOf(X(t).position)>=0&&F(t)?Y(t):t;return W(n)?e.filter((function(t){return W(t)&&N(t,n)&&"body"!==D(t)})):[]}(t):[].concat(e),r=[].concat(i,[n]),a=r.reduce((function(e,n){var i=_t(t,n,o);return e.top=T(i.top,e.top),e.right=I(i.right,e.right),e.bottom=I(i.bottom,e.bottom),e.left=T(i.left,e.left),e}),_t(t,r[0],o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(W(_)?_:_.contextElement||V(t.elements.popper),s,c,r),y=U(t.elements.reference),j=gt({reference:y,element:m,placement:o}),k=mt(Object.assign({},m,j)),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},P=t.modifiersData.offset;if(d===M&&P){var E=P[o];Object.keys(B).forEach((function(t){var e=[O,x].indexOf(t)>=0?1:-1,n=[w,x].indexOf(t)>=0?"y":"x";B[t]+=E[n]*e}))}return B}function wt(t,e){void 0===e&&(e={});var n=e.boundary,o=e.rootBoundary,i=e.padding,r=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?E:a,l=it(e.placement),c=l?r?P:P.filter((function(t){return it(t)===l})):z,p=c.filter((function(t){return s.indexOf(t)>=0}));0===p.length&&(p=c);var d=p.reduce((function(e,r){return e[r]=yt(t,{placement:r,boundary:n,rootBoundary:o,padding:i})[R(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,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,p=n.boundary,d=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,u=void 0===b||b,f=n.allowedAutoPlacements,v=e.options.placement,m=R(v),_=l||(m!==v&&u?function(t){if(R(t)===k)return[];var e=ct(t);return[dt(t),e,dt(e)]}(v):[ct(v)]),g=[v].concat(_).reduce((function(t,n){return t.concat(R(n)===k?wt(e,{placement:n,boundary:p,rootBoundary:d,padding:c,flipVariations:u,allowedAutoPlacements:f}):n)}),[]),y=e.rects.reference,z=e.rects.popper,B=new Map,C=!0,M=g[0],P=0;P<g.length;P++){var E=g[P],A=R(E),D=it(E)===L,S=[w,x].indexOf(A)>=0,W=S?"width":"height",F=yt(e,{placement:E,boundary:p,rootBoundary:d,altBoundary:h,padding:c}),q=S?D?O:j:D?x:w;y[W]>z[W]&&(q=ct(q));var T=ct(q),I=[];if(r&&I.push(F[A]<=0),s&&I.push(F[q]<=0,F[T]<=0),I.every((function(t){return t}))){M=E,C=!1;break}B.set(E,I)}if(C)for(var H=function(t){var e=g.find((function(e){var n=B.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return M=e,"break"},$=u?3:1;$>0&&"break"!==H($);$--);e.placement!==M&&(e.modifiersData[o]._skip=!0,e.placement=M,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ot(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jt(t){return[w,O,x,j].some((function(e){return t[e]>=0}))}function kt(t,e,n){void 0===n&&(n=!1);var o,i,r=F(e),a=F(e)&&function(t){var e=t.getBoundingClientRect(),n=H(e.width)/t.offsetWidth||1,o=H(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(e),s=V(e),l=U(t,a,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!n)&&(("body"!==D(e)||ut(s))&&(c=(o=e)!==S(o)&&F(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:ht(o)),F(e)?((p=U(e,!0)).x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=bt(s))),{x:l.left+c.scrollLeft-p.x,y:l.top+c.scrollTop-p.y,width:l.width,height:l.height}}function zt(t){var e=new Map,n=new Set,o=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var o=e.get(t);o&&i(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),o}var Lt={placement:"bottom",modifiers:[],strategy:"absolute"};function Bt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Ct(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,o=t.defaultOptions,i=void 0===o?Lt:o;return function(t,e,o){void 0===o&&(o=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lt,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,p={state:s,setOptions:function(o){var r="function"==typeof o?o(s.options):o;d(),s.options=Object.assign({},i,s.options,r),s.scrollParents={reference:W(t)?vt(t):t.contextElement?vt(t.contextElement):[],popper:vt(e)};var a,c,h=function(t){var e=zt(t);return A.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var o=n({state:s,name:t.name,instance:p,options:void 0===e?{}:e});l.push(o||function(){})}})),p.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(Bt(e,n)){s.rects={reference:kt(e,Y(n),"fixed"===s.options.strategy),popper:K(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var i=s.orderedModifiers[o],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,o=-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(),c=!0}};if(!Bt(t,e))return p;function d(){l.forEach((function(t){return t()})),l=[]}return p.setOptions(o).then((function(t){!c&&o.onFirstUpdate&&o.onFirstUpdate(t)})),p}}var Mt=Ct({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,i=o.scroll,r=void 0===i||i,a=o.resize,s=void 0===a||a,l=S(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",n.update,st)})),s&&l.addEventListener("resize",n.update,st),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",n.update,st)})),s&&l.removeEventListener("resize",n.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,n=t.options,o=n.gpuAcceleration,i=void 0===o||o,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,c={placement:R(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({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,at(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),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 n=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];F(i)&&D(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],i=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});F(o)&&D(o)&&(Object.assign(o.style,r),Object.keys(i).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,o=t.options.offset,i=void 0===o?[0,0]:o,r=E.reduce((function(t,n){return t[n]=function(t,e,n){var o=R(t),i=[j,w].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[j,O].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,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[n]=r}},xt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.tether,c=void 0===l||l,p=n.tetherOffset,d=void 0===p?0:p,h=yt(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),b=R(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,C={x:0,y:0};if(_){if(r){var M,P="y"===v?w:j,E="y"===v?x:O,A="y"===v?"height":"width",D=_[v],S=D+h[P],W=D-h[E],F=c?-y[A]/2:0,q=u===L?g[A]:y[A],H=u===L?-y[A]:-g[A],$=e.elements.arrow,Q=c&&$?K($):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},N=U[P],X=U[E],G=et(0,g[A],Q[A]),V=f?g[A]/2-F-G-N-z.mainAxis:q-G-N-z.mainAxis,Z=f?-g[A]/2+F+G+X+z.mainAxis:H+G+X+z.mainAxis,J=e.elements.arrow&&Y(e.elements.arrow),nt=null!=(M=null==B?void 0:B[v])?M:0,ot=D+Z-nt,rt=et(c?I(S,D+V-nt-(J?"y"===v?J.clientTop||0:J.clientLeft||0:0)):S,D,c?T(W,ot):W);_[v]=rt,C[v]=rt-D}if(s){var at,st=_[m],lt="y"===m?"height":"width",ct=st+h["x"===v?w:j],pt=st-h["x"===v?x:O],dt=-1!==[w,j].indexOf(b),ht=null!=(at=null==B?void 0:B[m])?at:0,bt=dt?ct:st-g[lt]-y[lt]-ht+z.altAxis,ut=dt?st+g[lt]+y[lt]-ht-z.altAxis:pt,ft=c&&dt?function(t,e,n){var o=et(t,e,n);return o>n?n:o}(bt,st,ut):et(c?bt:ct,st,c?ut:pt);_[m]=ft,C[m]=ft-st}e.modifiersData[o]=C}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,i=t.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=R(n.placement),l=tt(s),c=[j,O].indexOf(s)>=0?"height":"width";if(r&&a){var p=function(t,e){return nt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ot(t,z))}(i.padding,n),d=K(r),h="y"===l?w:j,b="y"===l?x:O,u=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],f=a[l]-n.rects.reference[l],v=Y(r),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,_=m/2-d[c]/2+(u/2-f/2),g=et(p[h],_,m-d[c]-p[b]);n.modifiersData[o]=((e={})[l]=g,e.centerOffset=g-_,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&N(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,a=yt(e,{elementContext:"reference"}),s=yt(e,{altBoundary:!0}),l=Ot(a,o),c=Ot(s,i,r),p=jt(l),d=jt(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:p,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":p,"data-popper-escaped":d})}}]});const Pt=class{constructor(e){t(this,e),this.balChange=r(this,"balChange"),this.balWillAnimate=r(this,"balWillAnimate"),this.balDidAnimate=r(this,"balDidAnimate"),this.balPopoverPrepare=r(this,"balPopoverPrepare"),this.popoverId="bal-po-"+Et++,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()),a.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,n;this.active&&!t.force||(null===(e=this.menuElement)||void 0===e||e.setAttribute("data-show",""),null===(n=this.menuElement)||void 0===n||n.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,n;(this.active||t.force)&&(null===(e=this.menuElement)||void 0===e||e.removeAttribute("data-show"),null===(n=this.menuElement)||void 0===n||n.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 a.hasWindow?this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16:0}updatePopper(){this.popperInstance.update()}render(){const t=c.block("popover");return e(n,{key:"68021af74493241e20669b502f69896b1f02c610","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},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:"1b92881a9b0808761b20f9f445f5a43b8cc9f1bb",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:"f8aa58598f2d8a0ca7f836bd77aa0e80a1cb6b30"}))}get el(){return o(this)}static get watchers(){return{active:["activeChanged"]}}};s([i("bal-popover"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],Pt.prototype,"createLogger",null),s([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],Pt.prototype,"breakpointListener",null);let Et=0;Pt.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 At=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){a.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 n={"--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),n)}componentWillLoad(){a.hasWindow&&(this.contentHeightOnTop=window.innerHeight-64)}render(){const t=c.block("popover").element("content");return e(n,{key:"8c5281cc1fe731c729e6fb2859451b9872254f57",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:"10fa564b011b3f0a0e1bd0c338d09970f3ce809e",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},e("slot",{key:"cddf8ead7a7a6028a54b2d0a152f68a7dbeb9462"})),e("div",{key:"acaa433bb6c396d86d927f95013fae818e694ab3",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":!0}))}get el(){return o(this)}};s([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],At.prototype,"breakpointListener",null);export{m as bal_hint,g as bal_hint_text,y as bal_hint_title,Pt as bal_popover,At as bal_popover_content}
1
+ import{H as t,M as e,N as n,O as o,L as i,P as r,a}from"./p-CklISCW5.js";import{_ as s,a as l}from"./p-dfXERft2.js";import{B as c}from"./p-ByiN-QjD.js";import{b as p}from"./p-DgB1E97V.js";import{L as d}from"./p-CMwD7Y81.js";import{L as h}from"./p-CGhOJIuC.js";import{b,d as u}from"./p-D1VPLQ5z.js";import{B as f}from"./p-BCxlnzTY.js";import{p as v}from"./p-BG4j3FEv.js";import"./p-DjAlMsHg.js";import"./p-DttRmuGk.js";import"./p-D8vs3D5y.js";import"./p-xbSOW78W.js";import"./p-BFTU3MAI.js";const m=class{constructor(e){t(this,e),this.bodyScrollHandler=new f,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()),v(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=c.block("hint"),o=t.element("icon"),i=t.element("content"),r=i.element("buttons"),a=()=>e("bal-icon",{class:Object.assign({},o.class()),"bal-popup":this.componentId,"data-testid":"bal-hint-trigger","aria-haspopup":"true",role:"button",name:"info-circle",tabindex:0,onKeyDown:t=>{(b(t)||u(t))&&(t.preventDefault(),this.toggle())}}),s=()=>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(n,{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",ref:t=>this.popupElement=t,onBalChange:this.onPopupChange,variant:this.isMobile?"fullscreen":"popover",offset:this.isMobile?0:16},e("bal-popup-content",null,e(s,null))))),null),e("div",{ref:t=>this.slotWrapperEl=t,style:{display:"none"}},e("slot",null)))}get element(){return o(this)}};s([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],m.prototype,"breakpointListener",null),s([h(),l("design:type",Function),l("design:paramtypes",[Object]),l("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{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block}.bal-hint__icon{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer}.bal-hint__icon:hover svg,.bal-hint__icon:hover g,.bal-hint__icon:hover path,.bal-hint__icon:hover circle{fill:var(--bal-color-light-blue-5)}.bal-hint .bal-popup__container{z-index:var(--bal-z-index-popup);background:var(--bal-hint-content-background)}.bal-hint__content{background:var(--bal-hint-content-background);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=c.block("hint").element("content").element("text"),o=t.element("field");return e(n,{key:"24898db6c3c51d19a7df6552a2e0f370c8812f95",class:Object.assign({},t.class())},e("p",{key:"2ff7501b81213d1a553f2a9a9c98df6d9577e5e8",class:Object.assign({},o.class())},e("slot",{key:"e2f5ecd78ad99fc53713576807011f39884ad7fb"})))}},y=class{constructor(e){t(this,e)}render(){const t=c.block("hint").element("content").element("title"),o=t.element("heading");return e(n,{key:"6304fd03629ecdbaeff48777da6e9950a02e02bf",class:Object.assign({},t.class())},e("h3",{key:"5cdfc4c2319f7b8b17f23d02aeae7cbc534134af",class:Object.assign({},o.class())},e("span",{key:"6e5ce498f0574fe356778d87fb98f59b446bd8e3"},e("slot",{key:"9604fad3ee38908e2a51ab295e7d17dad7b3d7fc"}))))}};var w="top",x="bottom",O="right",j="left",k="auto",z=[w,x,O,j],L="start",C="end",M="viewport",B="popper",E=z.reduce((function(t,e){return t.concat([e+"-"+L,e+"-"+C])}),[]),P=[].concat(z,[k]).reduce((function(t,e){return t.concat([e,e+"-"+L,e+"-"+C])}),[]),D=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function A(t){return t?(t.nodeName||"").toLowerCase():null}function S(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function W(t){return t instanceof S(t).Element||t instanceof Element}function F(t){return t instanceof S(t).HTMLElement||t instanceof HTMLElement}function R(t){return"undefined"!=typeof ShadowRoot&&(t instanceof S(t).ShadowRoot||t instanceof ShadowRoot)}function T(t){return t.split("-")[0]}var I=Math.max,q=Math.min,H=Math.round;function $(){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 G(){return!/^((?!chrome|android).)*safari/i.test($())}function N(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var o=t.getBoundingClientRect(),i=1,r=1;e&&F(t)&&(i=t.offsetWidth>0&&H(o.width)/t.offsetWidth||1,r=t.offsetHeight>0&&H(o.height)/t.offsetHeight||1);var a=(W(t)?S(t):window).visualViewport,s=!G()&&n,l=(o.left+(s&&a?a.offsetLeft:0))/i,c=(o.top+(s&&a?a.offsetTop:0))/r,p=o.width/i,d=o.height/r;return{width:p,height:d,top:c,right:l+p,bottom:c+d,left:l,x:l,y:c}}function U(t){var e=N(t),n=t.offsetWidth,o=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-o)<=1&&(o=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:o}}function V(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&R(n)){var o=e;do{if(o&&t.isSameNode(o))return!0;o=o.parentNode||o.host}while(o)}return!1}function K(t){return S(t).getComputedStyle(t)}function Q(t){return["table","td","th"].indexOf(A(t))>=0}function Y(t){return((W(t)?t.ownerDocument:t.document)||window.document).documentElement}function J(t){return"html"===A(t)?t:t.assignedSlot||t.parentNode||(R(t)?t.host:null)||Y(t)}function X(t){return F(t)&&"fixed"!==K(t).position?t.offsetParent:null}function Z(t){for(var e=S(t),n=X(t);n&&Q(n)&&"static"===K(n).position;)n=X(n);return n&&("html"===A(n)||"body"===A(n)&&"static"===K(n).position)?e:n||function(t){var e=/firefox/i.test($());if(/Trident/i.test($())&&F(t)&&"fixed"===K(t).position)return null;var n=J(t);for(R(n)&&(n=n.host);F(n)&&["html","body"].indexOf(A(n))<0;){var o=K(n);if("none"!==o.transform||"none"!==o.perspective||"paint"===o.contain||-1!==["transform","perspective"].indexOf(o.willChange)||e&&"filter"===o.willChange||e&&o.filter&&"none"!==o.filter)return n;n=n.parentNode}return null}(t)||e}function tt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function et(t,e,n){return I(t,q(e,n))}function nt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function ot(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function it(t){return t.split("-")[1]}var rt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function at(t){var e,n=t.popper,o=t.popperRect,i=t.placement,r=t.variation,a=t.offsets,s=t.position,l=t.gpuAcceleration,c=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=j,y=w,k=window;if(c){var z=Z(n),L="clientHeight",M="clientWidth";z===S(n)&&"static"!==K(z=Y(n)).position&&"absolute"===s&&(L="scrollHeight",M="scrollWidth"),(i===w||(i===j||i===O)&&r===C)&&(y=x,f-=(d&&z===k&&k.visualViewport?k.visualViewport.height:z[L])-o.height,f*=l?1:-1),i!==j&&(i!==w&&i!==x||r!==C)||(g=O,b-=(d&&z===k&&k.visualViewport?k.visualViewport.width:z[M])-o.width,b*=l?1:-1)}var B,E=Object.assign({position:s},c&&rt),P=!0===p?function(t,e){var n=t.y,o=e.devicePixelRatio||1;return{x:H(t.x*o)/o||0,y:H(n*o)/o||0}}({x:b,y:f},S(n)):{x:b,y:f};return b=P.x,f=P.y,Object.assign({},E,l?((B={})[y]=_?"0":"",B[g]=m?"0":"",B.transform=(k.devicePixelRatio||1)<=1?"translate("+b+"px, "+f+"px)":"translate3d("+b+"px, "+f+"px, 0)",B):((e={})[y]=_?f+"px":"",e[g]=m?b+"px":"",e.transform="",e))}var st={passive:!0},lt={left:"right",right:"left",bottom:"top",top:"bottom"};function ct(t){return t.replace(/left|right|bottom|top/g,(function(t){return lt[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=S(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function bt(t){return N(Y(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:F(t)&&ut(t)?t:ft(J(t))}function vt(t,e){var n;void 0===e&&(e=[]);var o=ft(t),i=o===(null==(n=t.ownerDocument)?void 0:n.body),r=S(o),a=i?[r].concat(r.visualViewport||[],ut(o)?o:[]):o,s=e.concat(a);return i?s:s.concat(vt(J(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,n){return e===M?mt(function(t,e){var n=S(t),o=Y(t),i=n.visualViewport,r=o.clientWidth,a=o.clientHeight,s=0,l=0;if(i){r=i.width,a=i.height;var c=G();(c||!c&&"fixed"===e)&&(s=i.offsetLeft,l=i.offsetTop)}return{width:r,height:a,x:s+bt(t),y:l}}(t,n)):W(e)?function(t,e){var n=N(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):mt(function(t){var e,n=Y(t),o=ht(t),i=null==(e=t.ownerDocument)?void 0:e.body,r=I(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),a=I(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),s=-o.scrollLeft+bt(t),l=-o.scrollTop;return"rtl"===K(i||n).direction&&(s+=I(n.clientWidth,i?i.clientWidth:0)-r),{width:r,height:a,x:s,y:l}}(Y(t)))}function gt(t){var e,n=t.reference,o=t.element,i=t.placement,r=i?T(i):null,a=i?it(i):null,s=n.x+n.width/2-o.width/2,l=n.y+n.height/2-o.height/2;switch(r){case w:e={x:s,y:n.y-o.height};break;case x:e={x:s,y:n.y+n.height};break;case O:e={x:n.x+n.width,y:l};break;case j:e={x:n.x-o.width,y:l};break;default:e={x:n.x,y:n.y}}var c=r?tt(r):null;if(null!=c){var p="y"===c?"height":"width";switch(a){case L:e[c]=e[c]-(n[p]/2-o[p]/2);break;case C:e[c]=e[c]+(n[p]/2-o[p]/2)}}return e}function yt(t,e){void 0===e&&(e={});var n=e.placement,o=void 0===n?t.placement:n,i=e.strategy,r=void 0===i?t.strategy:i,a=e.boundary,s=void 0===a?"clippingParents":a,l=e.rootBoundary,c=void 0===l?M:l,p=e.elementContext,d=void 0===p?B:p,h=e.altBoundary,b=void 0!==h&&h,u=e.padding,f=void 0===u?0:u,v=nt("number"!=typeof f?f:ot(f,z)),m=t.rects.popper,_=t.elements[b?d===B?"reference":B:d],g=function(t,e,n,o){var i="clippingParents"===e?function(t){var e=vt(J(t)),n=["absolute","fixed"].indexOf(K(t).position)>=0&&F(t)?Z(t):t;return W(n)?e.filter((function(t){return W(t)&&V(t,n)&&"body"!==A(t)})):[]}(t):[].concat(e),r=[].concat(i,[n]),a=r.reduce((function(e,n){var i=_t(t,n,o);return e.top=I(i.top,e.top),e.right=q(i.right,e.right),e.bottom=q(i.bottom,e.bottom),e.left=I(i.left,e.left),e}),_t(t,r[0],o));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}(W(_)?_:_.contextElement||Y(t.elements.popper),s,c,r),y=N(t.elements.reference),j=gt({reference:y,element:m,placement:o}),k=mt(Object.assign({},m,j)),L=d===B?k:y,C={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},E=t.modifiersData.offset;if(d===B&&E){var P=E[o];Object.keys(C).forEach((function(t){var e=[O,x].indexOf(t)>=0?1:-1,n=[w,x].indexOf(t)>=0?"y":"x";C[t]+=P[n]*e}))}return C}function wt(t,e){void 0===e&&(e={});var n=e.boundary,o=e.rootBoundary,i=e.padding,r=e.flipVariations,a=e.allowedAutoPlacements,s=void 0===a?P:a,l=it(e.placement),c=l?r?E:E.filter((function(t){return it(t)===l})):z,p=c.filter((function(t){return s.indexOf(t)>=0}));0===p.length&&(p=c);var d=p.reduce((function(e,r){return e[r]=yt(t,{placement:r,boundary:n,rootBoundary:o,padding:i})[T(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,n=t.options,o=t.name;if(!e.modifiersData[o]._skip){for(var i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0===a||a,l=n.fallbackPlacements,c=n.padding,p=n.boundary,d=n.rootBoundary,h=n.altBoundary,b=n.flipVariations,u=void 0===b||b,f=n.allowedAutoPlacements,v=e.options.placement,m=T(v),_=l||(m!==v&&u?function(t){if(T(t)===k)return[];var e=ct(t);return[dt(t),e,dt(e)]}(v):[ct(v)]),g=[v].concat(_).reduce((function(t,n){return t.concat(T(n)===k?wt(e,{placement:n,boundary:p,rootBoundary:d,padding:c,flipVariations:u,allowedAutoPlacements:f}):n)}),[]),y=e.rects.reference,z=e.rects.popper,C=new Map,M=!0,B=g[0],E=0;E<g.length;E++){var P=g[E],D=T(P),A=it(P)===L,S=[w,x].indexOf(D)>=0,W=S?"width":"height",F=yt(e,{placement:P,boundary:p,rootBoundary:d,altBoundary:h,padding:c}),R=S?A?O:j:A?x:w;y[W]>z[W]&&(R=ct(R));var I=ct(R),q=[];if(r&&q.push(F[D]<=0),s&&q.push(F[R]<=0,F[I]<=0),q.every((function(t){return t}))){B=P,M=!1;break}C.set(P,q)}if(M)for(var H=function(t){var e=g.find((function(e){var n=C.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return B=e,"break"},$=u?3:1;$>0&&"break"!==H($);$--);e.placement!==B&&(e.modifiersData[o]._skip=!0,e.placement=B,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function Ot(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function jt(t){return[w,O,x,j].some((function(e){return t[e]>=0}))}function kt(t,e,n){void 0===n&&(n=!1);var o,i,r=F(e),a=F(e)&&function(t){var e=t.getBoundingClientRect(),n=H(e.width)/t.offsetWidth||1,o=H(e.height)/t.offsetHeight||1;return 1!==n||1!==o}(e),s=Y(e),l=N(t,a,n),c={scrollLeft:0,scrollTop:0},p={x:0,y:0};return(r||!r&&!n)&&(("body"!==A(e)||ut(s))&&(c=(o=e)!==S(o)&&F(o)?{scrollLeft:(i=o).scrollLeft,scrollTop:i.scrollTop}:ht(o)),F(e)?((p=N(e,!0)).x+=e.clientLeft,p.y+=e.clientTop):s&&(p.x=bt(s))),{x:l.left+c.scrollLeft-p.x,y:l.top+c.scrollTop-p.y,width:l.width,height:l.height}}function zt(t){var e=new Map,n=new Set,o=[];function i(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var o=e.get(t);o&&i(o)}})),o.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||i(t)})),o}var Lt={placement:"bottom",modifiers:[],strategy:"absolute"};function Ct(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function Mt(t){void 0===t&&(t={});var e=t.defaultModifiers,n=void 0===e?[]:e,o=t.defaultOptions,i=void 0===o?Lt:o;return function(t,e,o){void 0===o&&(o=i);var r,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},Lt,i),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},l=[],c=!1,p={state:s,setOptions:function(o){var r="function"==typeof o?o(s.options):o;d(),s.options=Object.assign({},i,s.options,r),s.scrollParents={reference:W(t)?vt(t):t.contextElement?vt(t.contextElement):[],popper:vt(e)};var a,c,h=function(t){var e=zt(t);return D.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}((a=[].concat(n,s.options.modifiers),c=a.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{}),Object.keys(c).map((function(t){return c[t]}))));return s.orderedModifiers=h.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.options,n=t.effect;if("function"==typeof n){var o=n({state:s,name:t.name,instance:p,options:void 0===e?{}:e});l.push(o||function(){})}})),p.update()},forceUpdate:function(){if(!c){var t=s.elements,e=t.reference,n=t.popper;if(Ct(e,n)){s.rects={reference:kt(e,Z(n),"fixed"===s.options.strategy),popper:U(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var o=0;o<s.orderedModifiers.length;o++)if(!0!==s.reset){var i=s.orderedModifiers[o],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,o=-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(),c=!0}};if(!Ct(t,e))return p;function d(){l.forEach((function(t){return t()})),l=[]}return p.setOptions(o).then((function(t){!c&&o.onFirstUpdate&&o.onFirstUpdate(t)})),p}}var Bt=Mt({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,o=t.options,i=o.scroll,r=void 0===i||i,a=o.resize,s=void 0===a||a,l=S(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&c.forEach((function(t){t.addEventListener("scroll",n.update,st)})),s&&l.addEventListener("resize",n.update,st),function(){r&&c.forEach((function(t){t.removeEventListener("scroll",n.update,st)})),s&&l.removeEventListener("resize",n.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,n=t.options,o=n.gpuAcceleration,i=void 0===o||o,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,l=void 0===s||s,c={placement:T(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({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:l})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,at(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),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 n=e.styles[t]||{},o=e.attributes[t]||{},i=e.elements[t];F(i)&&A(i)&&(Object.assign(i.style,n),Object.keys(o).forEach((function(t){var e=o[t];!1===e?i.removeAttribute(t):i.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var o=e.elements[t],i=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});F(o)&&A(o)&&(Object.assign(o.style,r),Object.keys(i).forEach((function(t){o.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.name,o=t.options.offset,i=void 0===o?[0,0]:o,r=P.reduce((function(t,n){return t[n]=function(t,e,n){var o=T(t),i=[j,w].indexOf(o)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*i,[j,O].indexOf(o)>=0?{x:s,y:a}:{x:a,y:s}}(n,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[n]=r}},xt,{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,o=t.name,i=n.mainAxis,r=void 0===i||i,a=n.altAxis,s=void 0!==a&&a,l=n.tether,c=void 0===l||l,p=n.tetherOffset,d=void 0===p?0:p,h=yt(e,{boundary:n.boundary,rootBoundary:n.rootBoundary,padding:n.padding,altBoundary:n.altBoundary}),b=T(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),C=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(_){if(r){var B,E="y"===v?w:j,P="y"===v?x:O,D="y"===v?"height":"width",A=_[v],S=A+h[E],W=A-h[P],F=c?-y[D]/2:0,R=u===L?g[D]:y[D],H=u===L?-y[D]:-g[D],$=e.elements.arrow,G=c&&$?U($):{width:0,height:0},N=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=N[E],K=N[P],Q=et(0,g[D],G[D]),Y=f?g[D]/2-F-Q-V-z.mainAxis:R-Q-V-z.mainAxis,J=f?-g[D]/2+F+Q+K+z.mainAxis:H+Q+K+z.mainAxis,X=e.elements.arrow&&Z(e.elements.arrow),nt=null!=(B=null==C?void 0:C[v])?B:0,ot=A+J-nt,rt=et(c?q(S,A+Y-nt-(X?"y"===v?X.clientTop||0:X.clientLeft||0:0)):S,A,c?I(W,ot):W);_[v]=rt,M[v]=rt-A}if(s){var at,st=_[m],lt="y"===m?"height":"width",ct=st+h["x"===v?w:j],pt=st-h["x"===v?x:O],dt=-1!==[w,j].indexOf(b),ht=null!=(at=null==C?void 0:C[m])?at:0,bt=dt?ct:st-g[lt]-y[lt]-ht+z.altAxis,ut=dt?st+g[lt]+y[lt]-ht-z.altAxis:pt,ft=c&&dt?function(t,e,n){var o=et(t,e,n);return o>n?n:o}(bt,st,ut):et(c?bt:ct,st,c?ut:pt);_[m]=ft,M[m]=ft-st}e.modifiersData[o]=M}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,o=t.name,i=t.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=T(n.placement),l=tt(s),c=[j,O].indexOf(s)>=0?"height":"width";if(r&&a){var p=function(t,e){return nt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:ot(t,z))}(i.padding,n),d=U(r),h="y"===l?w:j,b="y"===l?x:O,u=n.rects.reference[c]+n.rects.reference[l]-a[l]-n.rects.popper[c],f=a[l]-n.rects.reference[l],v=Z(r),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,_=m/2-d[c]/2+(u/2-f/2),g=et(p[h],_,m-d[c]-p[b]);n.modifiersData[o]=((e={})[l]=g,e.centerOffset=g-_,e)}},effect:function(t){var e=t.state,n=t.options.element,o=void 0===n?"[data-popper-arrow]":n;null!=o&&("string"!=typeof o||(o=e.elements.popper.querySelector(o)))&&V(e.elements.popper,o)&&(e.elements.arrow=o)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,o=e.rects.reference,i=e.rects.popper,r=e.modifiersData.preventOverflow,a=yt(e,{elementContext:"reference"}),s=yt(e,{altBoundary:!0}),l=Ot(a,o),c=Ot(s,i,r),p=jt(l),d=jt(c);e.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:c,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=r(this,"balChange"),this.balWillAnimate=r(this,"balWillAnimate"),this.balDidAnimate=r(this,"balDidAnimate"),this.balPopoverPrepare=r(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=Bt(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()),a.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,n;this.active&&!t.force||(null===(e=this.menuElement)||void 0===e||e.setAttribute("data-show",""),null===(n=this.menuElement)||void 0===n||n.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,n;(this.active||t.force)&&(null===(e=this.menuElement)||void 0===e||e.removeAttribute("data-show"),null===(n=this.menuElement)||void 0===n||n.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 a.hasWindow?this.isInMainNav?(window.innerHeight-(this.isTouch?64:48))/16:window.innerHeight/16:0}updatePopper(){this.popperInstance.update()}render(){const t=c.block("popover");return e(n,{key:"68021af74493241e20669b502f69896b1f02c610","aria-presented":this.active?"true":null,"data-id":this.popoverId,class:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},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:"1b92881a9b0808761b20f9f445f5a43b8cc9f1bb",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:"f8aa58598f2d8a0ca7f836bd77aa0e80a1cb6b30"}))}get el(){return o(this)}static get watchers(){return{active:["activeChanged"]}}};s([i("bal-popover"),l("design:type",Function),l("design:paramtypes",[Function]),l("design:returntype",void 0)],Et.prototype,"createLogger",null),s([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("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 Dt=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){a.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 n={"--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),n)}componentWillLoad(){a.hasWindow&&(this.contentHeightOnTop=window.innerHeight-64)}render(){const t=c.block("popover").element("content");return e(n,{key:"8c5281cc1fe731c729e6fb2859451b9872254f57",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:"10fa564b011b3f0a0e1bd0c338d09970f3ce809e",class:Object.assign({},t.element("inner").class()),style:this.innerStyle},e("slot",{key:"cddf8ead7a7a6028a54b2d0a152f68a7dbeb9462"})),e("div",{key:"acaa433bb6c396d86d927f95013fae818e694ab3",class:Object.assign({},t.element("arrow").class()),"data-popper-arrow":!0}))}get el(){return o(this)}};s([d(),l("design:type",Function),l("design:paramtypes",[Object]),l("design:returntype",void 0)],Dt.prototype,"breakpointListener",null);export{m as bal_hint,g as bal_hint_text,y as bal_hint_title,Et as bal_popover,Dt as bal_popover_content}
@@ -1 +1 @@
1
- var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function s(t){try{o(n.next(t))}catch(t){r(t)}}function l(t){try{o(n["throw"](t))}catch(t){r(t)}}function o(t){t.done?i(t.value):a(t.value).then(s,l)}o((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(t){return function(e){return o([t,e])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(i=0)),i)try{if(n=1,a&&(r=l[0]&2?a["return"]:l[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;if(a=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;a=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(l[0]===6&&i.label<r[1]){i.label=r[1];r=l;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(l);break}if(r[2])i.ops.pop();i.trys.pop();continue}l=e.call(t,i)}catch(t){l=[6,t];a=0}finally{n=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,a=e.length,r;n<a;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-Bas5fYcv.system.js","./p-Cjiw70Dk.system.js","./p-Dxz8zGB7.system.js","./p-CpWDVANq.system.js","./p-ChlfBLwb.system.js","./p-CZL1LuwV.system.js","./p-BbAtjg9Y.system.js","./p-BShK1Wjy.system.js","./p-ZO510gkN.system.js","./p-m5GX4h3i.system.js","./p-MZ0uDDT-.system.js","./p-Dd7xQwRJ.system.js","./p-CGJ8YYiA.system.js","./p-CLfE_o7e.system.js","./p-DKjTFqnu.system.js","./p-Bzy18UgU.system.js","./p-Cu5bu0FH.system.js","./p-B8EKDb1f.system.js","./p-B-5g9ywW.system.js"],(function(t){"use strict";var e,i,n,a,r,s,l,o,u,c,f,d,h,b,v,_,m,g,y,p,w,x,j,k,O,C,D;return{setters:[function(t){e=t.M;i=t.L;n=t.H;a=t.P;r=t.f;s=t.x;l=t.N;o=t.O;u=t.X},function(t){c=t._;f=t.a},function(t){d=t.p},function(t){h=t.i},function(t){b=t.B;v=t.d},function(t){_=t.L},function(t){m=t.B},function(t){g=t.L},function(t){y=t.i},function(t){p=t.i},function(t){w=t.l;x=t.c;j=t.d},function(t){k=t.N},function(t){O=t.I},function(t){C=t.d},function(t){D=t.a},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 A(t,e,i){return"".concat(i,"-").concat(d("".concat(e),2,"0"),"-").concat(d("".concat(t),2,"0"))}function K(){var t=new Date;return"".concat(t.getFullYear(),"-").concat(d("".concat(t.getMonth()+1),2,"0"),"-").concat(d("".concat(t.getDate()),2,"0"))}function M(t,e,i,n,a){var r=[];var s=z(t,e);var l=F(t,e);if(s!==undefined&&l){var o=K();var u=b.fromISO(i);var c=b.fromISO(n);var f=function(t){if(h(a)){return false}return!a(t)};for(var d=1;d<=s;d++){var v=A(d,e,t);r.push({day:d,month:e,year:t,isoDate:v,fullDate:b.fromISO(v).toFormat(),today:o===v,disabled:u.isAfter(v)||c.isBefore(v)||f(v)})}}return r}function S(t,e){if(e<1||t<0){return 1}var i=new Date(t,e-1,1);var n=i.getDay();return n===0?7:n}function V(t){if(["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)){return t}return"de"}function P(t,e,i){var n=[];var a=new Date;var r=a.getFullYear();for(var s=e;s<=i;s++){n.push({value:s,label:"".concat(s),disabled:false,today:r===s,selected:t===s})}return n}function B(t,e,i,n,a){var r=V(t);var s=b.infoMonths({format:"long",locale:r});var l=b.fromISO(i);var o=new Date;var u=o.getFullYear();var c=o.getMonth()+1;var f=0;if(n&&e!==undefined){var d=b.fromISO(n);if(d.isValid){if(e>d.year){f=0}else{f=d.month||f}}}var h=12;if(a&&e!==undefined){var v=b.fromISO(a);if(v.isValid){if(e<v.year){h=12}else{h=v.month||h}}}return s.map((function(t,i){var n=i+1;return{label:t,value:n,today:n===c&&e===u,selected:n===l.month&&e===l.year,disabled:n<f||n>h}}))}function L(t){var e=V(t);var i=b.infoWeekdays({format:"short",locale:e});var n=b.infoWeekdays({format:"long",locale:e});return i.map((function(t,e){return{ariaLabel:n[e],textContent:t}}))}function F(t,e){if(e<1||e>12||t<0){return undefined}return new Date(t,e-1,1)}var T=function(t){var i=t.name,n=t.isVisible,a=t.girdHeight,r=t.list,s=t.onSelect,l=t.ref;var o=m.block("date-calendar");var u=o.element("body");var c=u.element("list");return e("ul",{class:Object.assign(Object.assign(Object.assign({},c.class()),c.modifier(i).class()),c.modifier("visible").class(n)),"aria-hidden":n?"false":"true",style:{height:"".concat(a-2-8-8,"px")},ref:function(t){return l?l(t):undefined}},r.map((function(t){return e("li",{key:t.value,id:"".concat(i,"-").concat(t.value)},e("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},c.element("item").class()),c.element("item").modifier("today").class(t.today)),c.element("item").modifier("selected").class(t.selected)),c.element("item").modifier("disabled").class(t.disabled)),disabled:t.disabled,tabIndex:-1,onClick:function(){if(!t.disabled){s(t)}}},t.label))})))};var I=function(t){var i=t.isVisible,n=t.ref,a=t.grid,r=t.weekdays,s=t.selectedDate,l=t.firstDayOfWeek,o=t.onSelectDay;var u=m.block("date-calendar");var c=u.element("body");var f=c.element("grid");return e("div",{role:"grid",class:Object.assign(Object.assign({},f.class()),f.modifier("visible").class(i)),"aria-hidden":i?"false":"true",ref:function(t){return n(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(l)}},a.map((function(t){return e("bal-date-calendar-cell",Object.assign({key:t.isoDate},t,{selected:t.isoDate===s,onBalSelectDay:function(t){var e=t.detail;return o(e)}}))}))))};var Y=function(t){var i=t.language,n=t.onClickSelectMonthAndYear,a=t.monthFullNames,r=t.month,s=t.year,l=t.isCalendarVisible,o=t.isListVisible,u=t.onClickPreviousMonth,c=t.onClickNextMonth;var f=m.block("date-calendar");var d=f.element("nav");var h=y[i].nextMonth;var b=y[i].previousMonth;var v=y[i].selectMonth;return e("div",{class:Object.assign({},d.class())},e("div",{class:Object.assign({},d.modifier("start").class())},e("button",{title:v,"aria-label":v,tabIndex:-1,"data-test":"change-year-month",onClick:n},e("span",null,a[r-1]," ",s),e("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:l}))),e("div",{class:Object.assign({},d.modifier("end").class()),style:{display:o?"none":"flex"}},e("button",{title:b,"aria-label":b,onClick:u,tabIndex:-1,"data-test":"previous-month"},e("bal-icon",{name:"caret-left",color:"primary",size:"small"})),e("button",{title:h,"aria-label":h,onClick:c,tabIndex:-1,"data-test":"next-month"},e("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))};var E=':host{--bal-date-first-week-day:0;--bal-date-calendar-background:var(--bal-color-red-3)}:host{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;background:var(--bal-color-white);border-radius:var(--bal-radius-normal)}.bal-date-calendar__nav{display:-ms-flexbox;display:flex;width:calc(100% - 1rem);-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:.5rem;gap:.5rem}.bal-date-calendar__nav--start>button{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav--end{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;min-height:2rem;min-width:2rem;padding:.25rem;border-radius:var(--bal-button-radius);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__nav button--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__nav button--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body{display:block}.bal-date-calendar__body__grid{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:.5rem;height:0;padding-top:0;padding-bottom:0;visibility:hidden}.bal-date-calendar__body__grid--visible{height:auto;padding-top:.5rem;padding-bottom:.5rem;visibility:visible}.bal-date-calendar__body__grid__head{position:relative;display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-date-calendar__body__grid__head::after{position:absolute;content:"";height:2px;width:calc(100% + 1rem);bottom:0;left:-0.5rem;right:-0.5rem;background:var(--bal-color-border)}.bal-date-calendar__body__grid__head span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:2rem;width:2rem;font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-wrap:nowrap}.bal-date-calendar__body__grid__body{display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-top:.5rem}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell{width:2rem;height:2rem;text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell:first-child{grid-column:var(--bal-date-first-week-day)}.bal-date-calendar__body__list{display:none;list-style:none;margin:0;padding:0;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:calc(100% - 1rem);overflow-y:auto;max-height:18rem;position:relative;padding:.5rem;border-top:2px solid var(--bal-color-border)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:100%}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body__list--visible{display:grid}.bal-date-calendar__body__list--year{grid-template-columns:repeat(4, 1fr)}.bal-date-calendar__body__list--month{grid-template-columns:repeat(2, 1fr)}.bal-date-calendar-cell{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:2rem;height:2rem}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar-cell--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar-cell--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}';var N=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=r.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 i=e.month+1;if(i>12){i=1;t=t+1}e.generateGridByMonthAndYear(i,t)};this.onClickPreviousMonth=function(){var t=e.year;var i=e.month-1;if(i<1){i=12;t=t-1}e.generateGridByMonthAndYear(i,t)};this.onClickSelectMonthAndYear=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:this.updateSelections();if(!(this.isCalendarVisible===true))return[3,2];this.isCalendarVisible=false;this.isYearListVisible=true;this.isMonthListVisible=false;return[4,s()];case 1:i.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;i.label=3;case 3:return[2]}}))}))};this.onClickYear=function(t){e.isYearListVisible=false;e.isMonthListVisible=true;e.generateGridByMonthAndYear(e.month,t);e.months=B(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 i=b.fromISO(t);if(!i.isValid){this.generateGridByDefaultDate();this.selectedDate=""}else{this.generateGridByDate(i);this.selectedDate=i.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=L(this.language);this.updateSelections();return[2]}))}))};t.prototype.swipeListener=function(t){var e=t.left,i=t.right;if(e){this.onClickNextMonth()}else if(i){this.onClickPreviousMonth()}};Object.defineProperty(t.prototype,"minYear",{get:function(){if(this.minYearProp===undefined){var t=new Date;var e=t.getFullYear();var i=e-100;if(this.min){var n=b.fromISO(this.min);return n.year||i}else{return i}}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 i=e+50;if(this.max){var n=b.fromISO(this.max);return n.year||i}else{return i}}return this.maxYearProp},enumerable:false,configurable:true});t.prototype.updateSelections=function(){this.years=P(this.year,this.minYear,this.maxYear);this.months=B(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=M(this.year,this.month,this.min,this.max,this.allowedDates);this.firstDayOfWeek=S(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=M(e,t,this.min,this.max,this.allowedDates);this.firstDayOfWeek=S(e,t)}this.month=t;this.year=e;this.oldMin=this.min;this.oldMax=this.max};t.prototype.render=function(){var t=this;var i;var n=((i=this.gridEl)===null||i===void 0?void 0:i.clientHeight)||0;var a=m.block("date-calendar");var r=a.element("body");var s=a.element("foot");return e(l,{key:"5d6a297ec24ae26e80aa64800168e0f7c184e803",class:Object.assign({},a.class())},e(Y,{key:"d59886c88f34bfb9fc17cc121d6c7262c2a15485",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:"53fe06a5f24418668d3a77a03ee6da3e48c5c019",class:Object.assign({},r.class())},e(I,{key:"f898ac758f1dfcaa1dbd7eb7b56c3cb339971528",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(T,{key:"011bf1c4f7ba1332b7b336ffffdf7ba4dd1f0062",name:"year",isVisible:this.isYearListVisible,girdHeight:n,list:this.years,ref:function(e){return t.yearListEl=e},onSelect:function(e){return t.onClickYear(e.value)}}),e(T,{key:"0b3c1d01fea6752b5f954083b18883e0da5a1e96",name:"month",isVisible:this.isMonthListVisible,girdHeight:n,list:this.months,onSelect:function(e){return t.onClickMonth(e.value)}})),e("div",{key:"a4bd07270d850442b4604a75beaed04baa33c64f",class:Object.assign({},s.class())},e("slot",{key:"50d760695d612864422574e13ef9cfdf352dbbcc"})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(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}());c([i("bal-date-calendar"),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],N.prototype,"createLogger",null);c([_(),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",Promise)],N.prototype,"configChanged",null);c([g({mobileOnly:true}),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],N.prototype,"swipeListener",null);N.style=E;var R=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 R(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(i){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(w(this._options.component.value,e)){this._options.component.value=e;this._options.component.balChange.emit(e)}}}}return[2]}))}))};return t}();var G=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 J=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(H);var W=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);W.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"];W.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];var q=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 Z=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 i=this.getValueOfTheBlock(t);return!i.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 X=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 i=e.to-e.from;for(var n=0;n<i;n++){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 i=t.split("");for(var n=0;n<i.length;n++){var a=i[n];var r=this.findByIndex(n);if(r&&!r.isSeparator){e.push(a.replace(r.mask,""))}else{e.push(a)}}e=e.filter((function(t){return t}));var s=this.list.filter((function(t){return t.isSeparator})).length;if(s===e.length){return""}return e.join("")}return""};t.prototype.formatBlocks=function(t,e){var i="".concat(t);for(var n=0;n<this.list.length;n++){var a=this.list[n];if(e!==n&&!a.isSeparator&&a.isTouched(i)){var r=a.getValueOfTheBlock(i);var s=a.format(r);i=i.substring(0,a.from)+s+i.substring(a.to)}}return i};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 i=this.list.findIndex((function(e){return e.from<=t&&t<e.to}));return i<0?undefined:Math.min(e,i)};t.prototype.verifyCallOfNextSeparator=function(t,e){if(this.list.length-1>e){var i=this.list[e+1];if(i.isSeparator&&i.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 X(t)}t.prototype.onLocaleChange=function(t,e,i){if(t.target){var n=t.value;var a=n.split("");for(var r=0;r<a.length;r++){var s=a[r];var l=this.blocks.findByIndex(r);var o=i.findByIndex(r);if(l&&o){if(l.isSeparator){a[r]=l.mask}else if(s===o.mask){a[r]=l.mask}}}t.value=a.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,i){};t.prototype.onSelectAll=function(t,e,i){};t.prototype.onPaste=function(t,e,i){var n=t.clipboardData||"";t.value=n;t.position.toEnd()};t.prototype.onBlockChange=function(t,e,i){t.setChar();t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onBackspaceDown=function(t,e,i){t.position.previous();if(!e.isSeparator){t.setChar(e.mask);var n=this.blocks.list[i-1];if(t.position.value===e.from&&n&&n.isSeparator){t.position.previous()}}};t.prototype.onDeleteDown=function(t,e,i){t.setChar(e.mask);t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onValueChanged=function(t){var e=this.onFormatValue(t.newValue);var i=t.focused&&e===""?this.blocks.getPlaceholderMask():e;t.value=i;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 i="".concat(t.locale);this.locale=t.locale;this.blocks.list.forEach((function(e){return e.onI18nChange(t.locale)}));this.onLocaleChange(t,i,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 i=this.blocks.list[e];this.onPaste(t,i,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 i=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand){t.preventDefault();t.stopPropagation();return}if(i!==undefined&&!t.position.isRangeSelection){var n=this.blocks.list[i];if(t.isNavigationKey){this.onNavigationDown(t,n,i)}else if(t.isSelectAllCommand){this.onSelectAll(t,n,i)}else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey){t.preventDefault();this.onBackspaceDown(t,n,i)}else if(t.isDeleteKey){t.preventDefault();this.onDeleteDown(t,n,i)}else if(t.isWhiteSpaceKey){t.preventDefault();var a=t.value[t.position.value];if(a==="."){t.stopPropagation();var r=t.value;t.value=r.substring(0,t.position.value)+"_"+r.substring(t.position.value+1)}}else if(n.verifyAllowedKeyHits(t.key)){t.preventDefault();this.onBlockChange(t,n,i)}else if(this.blocks.verifyCallOfNextSeparator(t.key,i)){t.preventDefault();var s=this.blocks.list[i];if(t.position.value>s.from){var l=this.blocks.list[i+1];var r=t.value;var o=n.getValueOfTheBlock(r);var u=n.format(o);t.value=r.substring(0,n.from)+u+r.substring(n.to);t.position.value=l.to}}var c=this.blocks.getBlockIndexFromPosition(t.position.value);if(c&&!t.isBackspaceKey){var f=this.blocks.formatBlocks(t.value,c);var d=t.position.value;t.value=f;t.position.value=d}}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([],k,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}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 v(t)},isSeparator:true}),new Q({from:3,to:5,allowedKeys:__spreadArray([],k,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}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 v(t)},isSeparator:true}),new Q({from:6,to:10,allowedKeys:__spreadArray([],k,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 i=b.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(i.isValid){return i.toISODate()}else if(e&&e.allowInvalidValue){return O}}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,i){var n=t.clipboardData||"";var a=b.fromAnyFormat(n);if(a.isValid){t.value=a.toFormat();t.position.toEnd()}};e.prototype.onBlur=function(t){var e=this.blocks.getRawValueWithoutMaskByContext(t);var i=b.fromAnyFormat(e);if(i.isValid){var n=i.toFormat();if(n!==t.value){t.value=n}}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,i=e.component,n=e.mask;var a=new q({component:i,mask:n,event:{locale:"".concat(t.language,"-").concat(t.region)}});this.mask.fireI18nChange(a);a.submit()};t.prototype.bindValueChanged=function(t,e){var i=this,n=i.component,a=i.mask;var r=new U({component:n,mask:a,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(r);r.submit("blur")};t.prototype.bindKeyDown=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new W({event:t,component:i,mask:n});this.mask.fireKeyDown(a);var r=t.key==="Tab";a.submit(r?"tab":"input");i.balKeyPress.emit(t)}};t.prototype.bindFocus=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=true;var a=new J({event:t,component:i,mask:n});this.mask.fireFocus(a);a.submit();i.balFocus.emit(t)}};t.prototype.bindBlur=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=false;var a=new J({event:t,component:i,mask:n});this.mask.fireBlur(a);a.submit("blur");i.balBlur.emit(t)}};t.prototype.bindPaste=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new G({event:t,component:i,mask:n});this.mask.firePaste(a);a.submit()}};t.prototype.bindFormReset=function(t){var e=this;var i=t.target;if(i&&(i===this.component.el||i.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,i=e.component,n=e.mask;var a=new Z({event:t,component:i,mask:n});this.mask.fireClick(a);a.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 it=".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 nt=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(at++);this.inheritedAttributes={};this.maskAdapter=new et(new tt);this.focused=false;this.isGrouped=false;this.ariaForm=C;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=u("bal-input-group",this.el)};t.prototype.componentDidLoad=function(){this.maskAdapter.bindComponentDidLoad()};t.prototype.componentWillRender=function(){this.inheritedAttributes=p(this.el,["aria-label","tabindex","title"])};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){j(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 i=m.block("input-date");var n=i.element("native");return e(l,{key:"f40927d913ec705fdc87137c6b47aadd7549f187",onClick:function(e){return t.maskAdapter.bindHostClick(e)},class:Object.assign({},i.class())},e("input",Object.assign({key:"175e4b3d9ff2df12c4b663bd4927dee2fddd14ab",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":D(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:"c1dfb6ccecd24a345e3de3dfb33e436dfbf98615",type:"date",class:Object.assign({},n.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 o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());c([i("bal-input-date"),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],nt.prototype,"createLogger",null);c([_(),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",Promise)],nt.prototype,"configChanged",null);var at=0;nt.style=it}}}));
1
+ var __extends=this&&this.__extends||function(){var t=function(e,i){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i))t[i]=e[i]};return t(e,i)};return function(e,i){if(typeof i!=="function"&&i!==null)throw new TypeError("Class extends value "+String(i)+" is not a constructor or null");t(e,i);function n(){this.constructor=e}e.prototype=i===null?Object.create(i):(n.prototype=i.prototype,new n)}}();var __awaiter=this&&this.__awaiter||function(t,e,i,n){function a(t){return t instanceof i?t:new i((function(e){e(t)}))}return new(i||(i=Promise))((function(i,r){function s(t){try{o(n.next(t))}catch(t){r(t)}}function l(t){try{o(n["throw"](t))}catch(t){r(t)}}function o(t){t.done?i(t.value):a(t.value).then(s,l)}o((n=n.apply(t,e||[])).next())}))};var __generator=this&&this.__generator||function(t,e){var i={label:0,sent:function(){if(r[0]&1)throw r[1];return r[1]},trys:[],ops:[]},n,a,r,s;return s={next:l(0),throw:l(1),return:l(2)},typeof Symbol==="function"&&(s[Symbol.iterator]=function(){return this}),s;function l(t){return function(e){return o([t,e])}}function o(l){if(n)throw new TypeError("Generator is already executing.");while(s&&(s=0,l[0]&&(i=0)),i)try{if(n=1,a&&(r=l[0]&2?a["return"]:l[0]?a["throw"]||((r=a["return"])&&r.call(a),0):a.next)&&!(r=r.call(a,l[1])).done)return r;if(a=0,r)l=[l[0]&2,r.value];switch(l[0]){case 0:case 1:r=l;break;case 4:i.label++;return{value:l[1],done:false};case 5:i.label++;a=l[1];l=[0];continue;case 7:l=i.ops.pop();i.trys.pop();continue;default:if(!(r=i.trys,r=r.length>0&&r[r.length-1])&&(l[0]===6||l[0]===2)){i=0;continue}if(l[0]===3&&(!r||l[1]>r[0]&&l[1]<r[3])){i.label=l[1];break}if(l[0]===6&&i.label<r[1]){i.label=r[1];r=l;break}if(r&&i.label<r[2]){i.label=r[2];i.ops.push(l);break}if(r[2])i.ops.pop();i.trys.pop();continue}l=e.call(t,i)}catch(t){l=[6,t];a=0}finally{n=r=0}if(l[0]&5)throw l[1];return{value:l[0]?l[1]:void 0,done:true}}};var __spreadArray=this&&this.__spreadArray||function(t,e,i){if(i||arguments.length===2)for(var n=0,a=e.length,r;n<a;n++){if(r||!(n in e)){if(!r)r=Array.prototype.slice.call(e,0,n);r[n]=e[n]}}return t.concat(r||Array.prototype.slice.call(e))};System.register(["./p-3LIXbT1U.system.js","./p-Cjiw70Dk.system.js","./p-Dxz8zGB7.system.js","./p-CpWDVANq.system.js","./p-CIHPWK6N.system.js","./p-Bm-8Wwuk.system.js","./p-BbAtjg9Y.system.js","./p-CIj37Mat.system.js","./p-ZO510gkN.system.js","./p-m5GX4h3i.system.js","./p-DM8YtMVD.system.js","./p-Dd7xQwRJ.system.js","./p-CGJ8YYiA.system.js","./p-CLfE_o7e.system.js","./p-DKjTFqnu.system.js","./p-Bzy18UgU.system.js","./p-oh7C8g0c.system.js","./p-RQ-lGRPJ.system.js","./p-IvzuAEsC.system.js"],(function(t){"use strict";var e,i,n,a,r,s,l,o,u,c,f,d,h,b,v,_,m,g,y,p,w,x,j,k,O,C,D;return{setters:[function(t){e=t.M;i=t.L;n=t.H;a=t.P;r=t.f;s=t.x;l=t.N;o=t.O;u=t.X},function(t){c=t._;f=t.a},function(t){d=t.p},function(t){h=t.i},function(t){b=t.B;v=t.d},function(t){_=t.L},function(t){m=t.B},function(t){g=t.L},function(t){y=t.i},function(t){p=t.i},function(t){w=t.l;x=t.c;j=t.d},function(t){k=t.N},function(t){O=t.I},function(t){C=t.d},function(t){D=t.a},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 A(t,e,i){return"".concat(i,"-").concat(d("".concat(e),2,"0"),"-").concat(d("".concat(t),2,"0"))}function M(){var t=new Date;return"".concat(t.getFullYear(),"-").concat(d("".concat(t.getMonth()+1),2,"0"),"-").concat(d("".concat(t.getDate()),2,"0"))}function P(t,e,i,n,a){var r=[];var s=z(t,e);var l=L(t,e);if(s!==undefined&&l){var o=M();var u=b.fromISO(i);var c=b.fromISO(n);var f=function(t){if(h(a)){return false}return!a(t)};for(var d=1;d<=s;d++){var v=A(d,e,t);r.push({day:d,month:e,year:t,isoDate:v,fullDate:b.fromISO(v).toFormat(),today:o===v,disabled:u.isAfter(v)||c.isBefore(v)||f(v)})}}return r}function K(t,e){if(e<1||t<0){return 1}var i=new Date(t,e-1,1);var n=i.getDay();return n===0?7:n}function V(t){if(["en","de","fr","it","nl","es","pl","pt","sv","fi"].includes(t)){return t}return"de"}function S(t,e,i){var n=[];var a=new Date;var r=a.getFullYear();for(var s=e;s<=i;s++){n.push({value:s,label:"".concat(s),disabled:false,today:r===s,selected:t===s})}return n}function I(t,e,i,n,a){var r=V(t);var s=b.infoMonths({format:"long",locale:r});var l=b.fromISO(i);var o=new Date;var u=o.getFullYear();var c=o.getMonth()+1;var f=0;if(n&&e!==undefined){var d=b.fromISO(n);if(d.isValid){if(e>d.year){f=0}else{f=d.month||f}}}var h=12;if(a&&e!==undefined){var v=b.fromISO(a);if(v.isValid){if(e<v.year){h=12}else{h=v.month||h}}}return s.map((function(t,i){var n=i+1;return{label:t,value:n,today:n===c&&e===u,selected:n===l.month&&e===l.year,disabled:n<f||n>h}}))}function F(t){var e=V(t);var i=b.infoWeekdays({format:"short",locale:e});var n=b.infoWeekdays({format:"long",locale:e});return i.map((function(t,e){return{ariaLabel:n[e],textContent:t}}))}function L(t,e){if(e<1||e>12||t<0){return undefined}return new Date(t,e-1,1)}var T=function(t){var i=t.name,n=t.isVisible,a=t.girdHeight,r=t.list,s=t.onSelect,l=t.ref;var o=m.block("date-calendar");var u=o.element("body");var c=u.element("list");return e("ul",{class:Object.assign(Object.assign(Object.assign({},c.class()),c.modifier(i).class()),c.modifier("visible").class(n)),"aria-hidden":n?"false":"true",style:{height:"".concat(a-2-8-8,"px")},ref:function(t){return l?l(t):undefined}},r.map((function(t){return e("li",{key:t.value,id:"".concat(i,"-").concat(t.value)},e("button",{class:Object.assign(Object.assign(Object.assign(Object.assign({},c.element("item").class()),c.element("item").modifier("today").class(t.today)),c.element("item").modifier("selected").class(t.selected)),c.element("item").modifier("disabled").class(t.disabled)),disabled:t.disabled,tabIndex:-1,onClick:function(){if(!t.disabled){s(t)}}},t.label))})))};var Y=function(t){var i=t.isVisible,n=t.ref,a=t.grid,r=t.weekdays,s=t.selectedDate,l=t.firstDayOfWeek,o=t.onSelectDay;var u=m.block("date-calendar");var c=u.element("body");var f=c.element("grid");return e("div",{role:"grid",class:Object.assign(Object.assign({},f.class()),f.modifier("visible").class(i)),"aria-hidden":i?"false":"true",ref:function(t){return n(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(l)}},a.map((function(t){return e("bal-date-calendar-cell",Object.assign({key:t.isoDate},t,{selected:t.isoDate===s,onBalSelectDay:function(t){var e=t.detail;return o(e)}}))}))))};var B=function(t){var i=t.language,n=t.onClickSelectMonthAndYear,a=t.monthFullNames,r=t.month,s=t.year,l=t.isCalendarVisible,o=t.isListVisible,u=t.onClickPreviousMonth,c=t.onClickNextMonth;var f=m.block("date-calendar");var d=f.element("nav");var h=y[i].nextMonth;var b=y[i].previousMonth;var v=y[i].selectMonth;return e("div",{class:Object.assign({},d.class())},e("div",{class:Object.assign({},d.modifier("start").class())},e("button",{title:v,"aria-label":v,tabIndex:-1,"data-test":"change-year-month",onClick:n},e("span",null,a[r-1]," ",s),e("bal-icon",{name:"caret-up",color:"primary",size:"small",turn:l}))),e("div",{class:Object.assign({},d.modifier("end").class()),style:{display:o?"none":"flex"}},e("button",{title:b,"aria-label":b,onClick:u,tabIndex:-1,"data-test":"previous-month"},e("bal-icon",{name:"caret-left",color:"primary",size:"small"})),e("button",{title:h,"aria-label":h,onClick:c,tabIndex:-1,"data-test":"next-month"},e("bal-icon",{name:"caret-right",color:"primary",size:"small"}))))};var N=':host{--bal-date-first-week-day:0;--bal-date-calendar-background:var(--bal-color-red-3)}:host{-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;background:var(--bal-color-white);border-radius:var(--bal-radius-normal)}.bal-date-calendar__nav{display:-ms-flexbox;display:flex;width:calc(100% - 1rem);-ms-flex-pack:justify;justify-content:space-between;-ms-flex-align:center;align-items:center;padding:.5rem;gap:.5rem}.bal-date-calendar__nav--start>button{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav--end{display:-ms-flexbox;display:flex;gap:.5rem}.bal-date-calendar__nav button{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;min-height:2rem;min-width:2rem;padding:.25rem;border-radius:var(--bal-button-radius);font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__nav button:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__nav button--today:not(.bal-date-calendar__nav button--selected):not(.bal-date-calendar__nav button--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__nav button--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__nav button--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body{display:block}.bal-date-calendar__body__grid{width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding:.5rem;height:0;padding-top:0;padding-bottom:0;visibility:hidden}.bal-date-calendar__body__grid--visible{height:auto;padding-top:.5rem;padding-bottom:.5rem;visibility:visible}.bal-date-calendar__body__grid__head{position:relative;display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.bal-date-calendar__body__grid__head::after{position:absolute;content:"";height:2px;width:calc(100% + 1rem);bottom:0;left:-0.5rem;right:-0.5rem;background:var(--bal-color-border)}.bal-date-calendar__body__grid__head span{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;height:2rem;width:2rem;font-family:var(--bal-font-family-title);font-weight:var(--bal-font-weight-bold);font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;text-wrap:nowrap}.bal-date-calendar__body__grid__body{display:grid;grid-template-columns:repeat(7, 1fr);-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;padding-top:.5rem}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell{width:2rem;height:2rem;text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto}.bal-date-calendar__body__grid__body>.bal-date-calendar-cell:first-child{grid-column:var(--bal-date-first-week-day)}.bal-date-calendar__body__list{display:none;list-style:none;margin:0;padding:0;-webkit-column-gap:.5rem;-moz-column-gap:.5rem;column-gap:.5rem;row-gap:.5rem;width:calc(100% - 1rem);overflow-y:auto;max-height:18rem;position:relative;padding:.5rem;border-top:2px solid var(--bal-color-border)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:100%}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--today:not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected):not(.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar__body__list .bal-date-calendar__body__list__item--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}.bal-date-calendar__body__list--visible{display:grid}.bal-date-calendar__body__list--year{grid-template-columns:repeat(4, 1fr)}.bal-date-calendar__body__list--month{grid-template-columns:repeat(2, 1fr)}.bal-date-calendar-cell{display:-ms-flexbox;display:flex;-ms-flex-pack:center;justify-content:center;-ms-flex-align:center;align-items:center;cursor:pointer;border-radius:var(--bal-radius-normal);font-family:var(--bal-font-family-text);font-weight:var(--bal-font-weight-regular);color:var(--bal-color-text-primary);border:none;background:rgba(0,0,0,0);text-align:center;font-size:var(--bal-text-size-normal);line-height:var(--bal-line-height-normal);-webkit-hyphens:auto;-ms-hyphens:auto;hyphens:auto;outline:none;width:2rem;height:2rem}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{background:var(--bal-color-light-blue-1)}}.bal-date-calendar-cell:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{background:var(--bal-color-light-blue-2)}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled){color:var(--bal-color-light-blue-3);font-weight:var(--bal-font-weight-bold)}@media (hover: hover)and (pointer: fine){.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):hover{color:var(--bal-color-text-primary)}}.bal-date-calendar-cell--today:not(.bal-date-calendar-cell--selected):not(.bal-date-calendar-cell--disabled):active{color:var(--bal-color-text-primary)}.bal-date-calendar-cell--selected{background:var(--bal-color-primary);color:var(--bal-color-text-white);font-weight:var(--bal-font-weight-bold)}.bal-date-calendar-cell--disabled{cursor:default;background:rgba(0,0,0,0);color:var(--bal-color-text-grey-light)}';var R=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=r.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 i=e.month+1;if(i>12){i=1;t=t+1}e.generateGridByMonthAndYear(i,t)};this.onClickPreviousMonth=function(){var t=e.year;var i=e.month-1;if(i<1){i=12;t=t-1}e.generateGridByMonthAndYear(i,t)};this.onClickSelectMonthAndYear=function(){return __awaiter(e,void 0,void 0,(function(){var t,e;return __generator(this,(function(i){switch(i.label){case 0:this.updateSelections();if(!(this.isCalendarVisible===true))return[3,2];this.isCalendarVisible=false;this.isYearListVisible=true;this.isMonthListVisible=false;return[4,s()];case 1:i.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;i.label=3;case 3:return[2]}}))}))};this.onClickYear=function(t){e.isYearListVisible=false;e.isMonthListVisible=true;e.generateGridByMonthAndYear(e.month,t);e.months=I(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 i=b.fromISO(t);if(!i.isValid){this.generateGridByDefaultDate();this.selectedDate=""}else{this.generateGridByDate(i);this.selectedDate=i.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=F(this.language);this.updateSelections();return[2]}))}))};t.prototype.swipeListener=function(t){var e=t.left,i=t.right;if(e){this.onClickNextMonth()}else if(i){this.onClickPreviousMonth()}};Object.defineProperty(t.prototype,"minYear",{get:function(){if(this.minYearProp===undefined){var t=new Date;var e=t.getFullYear();var i=e-100;if(this.min){var n=b.fromISO(this.min);return n.year||i}else{return i}}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 i=e+50;if(this.max){var n=b.fromISO(this.max);return n.year||i}else{return i}}return this.maxYearProp},enumerable:false,configurable:true});t.prototype.updateSelections=function(){this.years=S(this.year,this.minYear,this.maxYear);this.months=I(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 i;var n=((i=this.gridEl)===null||i===void 0?void 0:i.clientHeight)||0;var a=m.block("date-calendar");var r=a.element("body");var s=a.element("foot");return e(l,{key:"5d6a297ec24ae26e80aa64800168e0f7c184e803",class:Object.assign({},a.class())},e(B,{key:"d59886c88f34bfb9fc17cc121d6c7262c2a15485",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:"53fe06a5f24418668d3a77a03ee6da3e48c5c019",class:Object.assign({},r.class())},e(Y,{key:"f898ac758f1dfcaa1dbd7eb7b56c3cb339971528",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(T,{key:"011bf1c4f7ba1332b7b336ffffdf7ba4dd1f0062",name:"year",isVisible:this.isYearListVisible,girdHeight:n,list:this.years,ref:function(e){return t.yearListEl=e},onSelect:function(e){return t.onClickYear(e.value)}}),e(T,{key:"0b3c1d01fea6752b5f954083b18883e0da5a1e96",name:"month",isVisible:this.isMonthListVisible,girdHeight:n,list:this.months,onSelect:function(e){return t.onClickMonth(e.value)}})),e("div",{key:"a4bd07270d850442b4604a75beaed04baa33c64f",class:Object.assign({},s.class())},e("slot",{key:"50d760695d612864422574e13ef9cfdf352dbbcc"})))};Object.defineProperty(t.prototype,"el",{get:function(){return o(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}());c([i("bal-date-calendar"),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],R.prototype,"createLogger",null);c([_(),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",Promise)],R.prototype,"configChanged",null);c([g({mobileOnly:true}),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",void 0)],R.prototype,"swipeListener",null);R.style=N;var E=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 G=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 E(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(i){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(w(this._options.component.value,e)){this._options.component.value=e;this._options.component.balChange.emit(e)}}}}return[2]}))}))};return t}();var H=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}(G);var J=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(G);var W=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}(G);W.NUMBER_KEYS=["0","1","2","3","4","5","6","7","8","9"];W.NAVIGATION_KEYS=["Home","End","ArrowLeft","Left","ArrowRight","Right","Tab","Enter","Esc","Escape"];var q=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}(G);var U=function(t){__extends(e,t);function e(){return t!==null&&t.apply(this,arguments)||this}return e}(G);var Q=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}(G);var X=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 i=this.getValueOfTheBlock(t);return!i.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 i=e.to-e.from;for(var n=0;n<i;n++){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 i=t.split("");for(var n=0;n<i.length;n++){var a=i[n];var r=this.findByIndex(n);if(r&&!r.isSeparator){e.push(a.replace(r.mask,""))}else{e.push(a)}}e=e.filter((function(t){return t}));var s=this.list.filter((function(t){return t.isSeparator})).length;if(s===e.length){return""}return e.join("")}return""};t.prototype.formatBlocks=function(t,e){var i="".concat(t);for(var n=0;n<this.list.length;n++){var a=this.list[n];if(e!==n&&!a.isSeparator&&a.isTouched(i)){var r=a.getValueOfTheBlock(i);var s=a.format(r);i=i.substring(0,a.from)+s+i.substring(a.to)}}return i};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 i=this.list.findIndex((function(e){return e.from<=t&&t<e.to}));return i<0?undefined:Math.min(e,i)};t.prototype.verifyCallOfNextSeparator=function(t,e){if(this.list.length-1>e){var i=this.list[e+1];if(i.isSeparator&&i.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,i){if(t.target){var n=t.value;var a=n.split("");for(var r=0;r<a.length;r++){var s=a[r];var l=this.blocks.findByIndex(r);var o=i.findByIndex(r);if(l&&o){if(l.isSeparator){a[r]=l.mask}else if(s===o.mask){a[r]=l.mask}}}t.value=a.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,i){};t.prototype.onSelectAll=function(t,e,i){};t.prototype.onPaste=function(t,e,i){var n=t.clipboardData||"";t.value=n;t.position.toEnd()};t.prototype.onBlockChange=function(t,e,i){t.setChar();t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onBackspaceDown=function(t,e,i){t.position.previous();if(!e.isSeparator){t.setChar(e.mask);var n=this.blocks.list[i-1];if(t.position.value===e.from&&n&&n.isSeparator){t.position.previous()}}};t.prototype.onDeleteDown=function(t,e,i){t.setChar(e.mask);t.position.next();var n=this.blocks.list[i+1];if(t.position.value===e.to&&n&&n.isSeparator){t.position.next()}};t.prototype.onValueChanged=function(t){var e=this.onFormatValue(t.newValue);var i=t.focused&&e===""?this.blocks.getPlaceholderMask():e;t.value=i;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 i="".concat(t.locale);this.locale=t.locale;this.blocks.list.forEach((function(e){return e.onI18nChange(t.locale)}));this.onLocaleChange(t,i,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 i=this.blocks.list[e];this.onPaste(t,i,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 i=this.blocks.getBlockIndexFromPosition(e);if(e>=this.blocks.lastPosition&&!t.isNavigationKey&&!t.isSelectAllCommand){t.preventDefault();t.stopPropagation();return}if(i!==undefined&&!t.position.isRangeSelection){var n=this.blocks.list[i];if(t.isNavigationKey){this.onNavigationDown(t,n,i)}else if(t.isSelectAllCommand){this.onSelectAll(t,n,i)}else if(t.isCopyCommand);else if(t.isPasteCommand);else if(t.isBackspaceKey){t.preventDefault();this.onBackspaceDown(t,n,i)}else if(t.isDeleteKey){t.preventDefault();this.onDeleteDown(t,n,i)}else if(t.isWhiteSpaceKey){t.preventDefault();var a=t.value[t.position.value];if(a==="."){t.stopPropagation();var r=t.value;t.value=r.substring(0,t.position.value)+"_"+r.substring(t.position.value+1)}}else if(n.verifyAllowedKeyHits(t.key)){t.preventDefault();this.onBlockChange(t,n,i)}else if(this.blocks.verifyCallOfNextSeparator(t.key,i)){t.preventDefault();var s=this.blocks.list[i];if(t.position.value>s.from){var l=this.blocks.list[i+1];var r=t.value;var o=n.getValueOfTheBlock(r);var u=n.format(o);t.value=r.substring(0,n.from)+u+r.substring(n.to);t.position.value=l.to}}var c=this.blocks.getBlockIndexFromPosition(t.position.value);if(c&&!t.isBackspaceKey){var f=this.blocks.formatBlocks(t.value,c);var d=t.position.value;t.value=f;t.position.value=d}}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 X({from:0,to:2,allowedKeys:__spreadArray([],k,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}return t.padStart(2,"0")},mask:function(t){return e.dayMask[t.split("-")[0]]||e.dayMask["de"]}}),new X({from:2,to:3,mask:function(t){return v(t)},isSeparator:true}),new X({from:3,to:5,allowedKeys:__spreadArray([],k,true),format:function(t,e,i){if(Number.isNaN(parseInt(t,10))){return"".concat(i).concat(i)}return t.padStart(2,"0")},mask:function(t){return e.monthMask[t.split("-")[0]]||e.monthMask["de"]}}),new X({from:5,to:6,mask:function(t){return v(t)},isSeparator:true}),new X({from:6,to:10,allowedKeys:__spreadArray([],k,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 i=b.fromAnyFormat(this.blocks.getRawValueWithoutMask(t));if(i.isValid){return i.toISODate()}else if(e&&e.allowInvalidValue){return O}}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,i){var n=t.clipboardData||"";var a=b.fromAnyFormat(n);if(a.isValid){t.value=a.toFormat();t.position.toEnd()}};e.prototype.onBlur=function(t){var e=this.blocks.getRawValueWithoutMaskByContext(t);var i=b.fromAnyFormat(e);if(i.isValid){var n=i.toFormat();if(n!==t.value){t.value=n}}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,i=e.component,n=e.mask;var a=new q({component:i,mask:n,event:{locale:"".concat(t.language,"-").concat(t.region)}});this.mask.fireI18nChange(a);a.submit()};t.prototype.bindValueChanged=function(t,e){var i=this,n=i.component,a=i.mask;var r=new Q({component:n,mask:a,event:{newValue:t,oldValue:e}});this.mask.fireValueChanged(r);r.submit("blur")};t.prototype.bindKeyDown=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new W({event:t,component:i,mask:n});this.mask.fireKeyDown(a);var r=t.key==="Tab";a.submit(r?"tab":"input");i.balKeyPress.emit(t)}};t.prototype.bindFocus=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=true;var a=new J({event:t,component:i,mask:n});this.mask.fireFocus(a);a.submit();i.balFocus.emit(t)}};t.prototype.bindBlur=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;i.focused=false;var a=new J({event:t,component:i,mask:n});this.mask.fireBlur(a);a.submit("blur");i.balBlur.emit(t)}};t.prototype.bindPaste=function(t){if(this.isComponentAccessible){var e=this,i=e.component,n=e.mask;var a=new H({event:t,component:i,mask:n});this.mask.firePaste(a);a.submit()}};t.prototype.bindFormReset=function(t){var e=this;var i=t.target;if(i&&(i===this.component.el||i.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,i=e.component,n=e.mask;var a=new U({event:t,component:i,mask:n});this.mask.fireClick(a);a.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 it=".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 nt=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(at++);this.inheritedAttributes={};this.maskAdapter=new et(new tt);this.focused=false;this.isGrouped=false;this.ariaForm=C;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=u("bal-input-group",this.el)};t.prototype.componentDidLoad=function(){this.maskAdapter.bindComponentDidLoad()};t.prototype.componentWillRender=function(){this.inheritedAttributes=p(this.el,["aria-label","tabindex","title"])};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){j(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 i=m.block("input-date");var n=i.element("native");return e(l,{key:"f40927d913ec705fdc87137c6b47aadd7549f187",onClick:function(e){return t.maskAdapter.bindHostClick(e)},class:Object.assign({},i.class())},e("input",Object.assign({key:"175e4b3d9ff2df12c4b663bd4927dee2fddd14ab",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":D(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:"c1dfb6ccecd24a345e3de3dfb33e436dfbf98615",type:"date",class:Object.assign({},n.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 o(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{value:["valueChanged"]}},enumerable:false,configurable:true});return t}());c([i("bal-input-date"),f("design:type",Function),f("design:paramtypes",[Function]),f("design:returntype",void 0)],nt.prototype,"createLogger",null);c([_(),f("design:type",Function),f("design:paramtypes",[Object]),f("design:returntype",Promise)],nt.prototype,"configChanged",null);var at=0;nt.style=it}}}));