@adyen/bento-vue3 1.89.2 → 1.91.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (283) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +767 -522
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-picker.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/draggable-handle.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/error-message.css +1 -1
  20. package/dist/assets/field-label.css +1 -0
  21. package/dist/assets/file-uploader.css +1 -1
  22. package/dist/assets/filter-bar.css +1 -1
  23. package/dist/assets/form-layout-title.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/input-time.css +1 -0
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/secondary-nav.css +1 -1
  29. package/dist/assets/sidepanel.css +1 -1
  30. package/dist/assets/use-cached-selected-values.css +1 -1
  31. package/dist/button.js +1 -1
  32. package/dist/card.js +1 -1
  33. package/dist/checkbox.js +2 -2
  34. package/dist/chip.js +1 -1
  35. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  36. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  37. package/dist/chunks/action-bar.BPS3wPde.js +336 -0
  38. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.BPS3wPde.js.map} +1 -1
  39. package/dist/chunks/ai-tag.D7shWB_x.js +137 -0
  40. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.D7shWB_x.js.map} +1 -1
  41. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  42. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  43. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  44. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  45. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BxcS7Pao.js} +132 -125
  46. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BxcS7Pao.js.map} +1 -1
  47. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.BKdNXYgU.js} +2 -2
  48. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.BKdNXYgU.js.map} +1 -1
  49. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.DLiM8KZL.js} +203 -189
  50. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.DLiM8KZL.js.map} +1 -1
  51. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.qm-kFNQv.js} +460 -428
  52. package/dist/chunks/calendar.qm-kFNQv.js.map +1 -0
  53. package/dist/chunks/card.BEChcEqg.js +223 -0
  54. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BEChcEqg.js.map} +1 -1
  55. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.i3W8WO-7.js} +4 -4
  56. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.i3W8WO-7.js.map} +1 -1
  57. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BPrymcRl.js} +68 -61
  58. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BPrymcRl.js.map} +1 -1
  59. package/dist/chunks/chip.DFldnqfz.js +72 -0
  60. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  61. package/dist/chunks/{click-outside.BPylIosK.js → click-outside.B0whuTUU.js} +2 -2
  62. package/dist/chunks/{click-outside.BPylIosK.js.map → click-outside.B0whuTUU.js.map} +1 -1
  63. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BG5ZmCrb.js} +113 -106
  64. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BG5ZmCrb.js.map} +1 -1
  65. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.DqRpF9bh.js} +2 -2
  66. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.DqRpF9bh.js.map} +1 -1
  67. package/dist/chunks/copy.CL893i9-.js +114 -0
  68. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  69. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  70. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  71. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  72. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  73. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.C7mfUXOl.js} +3 -3
  74. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.C7mfUXOl.js.map} +1 -1
  75. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.B50DIXjK.js} +3 -3
  76. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.B50DIXjK.js.map} +1 -1
  77. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.CKdZb6EN.js} +4 -4
  78. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.CKdZb6EN.js.map} +1 -1
  79. package/dist/chunks/data-grid.DvMe72LK.js +4247 -0
  80. package/dist/chunks/data-grid.DvMe72LK.js.map +1 -0
  81. package/dist/chunks/date-picker.CidHad1p.js +269 -0
  82. package/dist/chunks/date-picker.CidHad1p.js.map +1 -0
  83. package/dist/chunks/date-range-picker.c5OwESTS.js +1027 -0
  84. package/dist/chunks/date-range-picker.c5OwESTS.js.map +1 -0
  85. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  86. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  87. package/dist/chunks/{directive.Dpivxq_t.js → directive.C8kY-ZW-.js} +2 -2
  88. package/dist/chunks/{directive.Dpivxq_t.js.map → directive.C8kY-ZW-.js.map} +1 -1
  89. package/dist/chunks/draggable-handle.CySRx1tb.js +171 -0
  90. package/dist/chunks/draggable-handle.CySRx1tb.js.map +1 -0
  91. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.wcJ6Mgqe.js} +5 -5
  92. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.wcJ6Mgqe.js.map} +1 -1
  93. package/dist/chunks/dropdown.DHoL50gV.js +1214 -0
  94. package/dist/chunks/dropdown.DHoL50gV.js.map +1 -0
  95. package/dist/chunks/error-message.Dyvrw6ZB.js +55 -0
  96. package/dist/chunks/error-message.Dyvrw6ZB.js.map +1 -0
  97. package/dist/chunks/field-label.DZYFjFgr.js +111 -0
  98. package/dist/chunks/field-label.DZYFjFgr.js.map +1 -0
  99. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.Dbg3vfZ_.js} +606 -584
  100. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.Dbg3vfZ_.js.map} +1 -1
  101. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.Dt-cU3zy.js} +1559 -1471
  102. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +1 -0
  103. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  104. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  105. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.CYBdKDPo.js} +2 -2
  106. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.CYBdKDPo.js.map} +1 -1
  107. package/dist/chunks/form-layout-title.B3ePK3yi.js +253 -0
  108. package/dist/chunks/form-layout-title.B3ePK3yi.js.map +1 -0
  109. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.COak4D8-.js} +98 -84
  110. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.COak4D8-.js.map} +1 -1
  111. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.DqioajcO.js} +1091 -1070
  112. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.DqioajcO.js.map} +1 -1
  113. package/dist/chunks/{header.o-7SyHtU.js → header.C21yzWrk.js} +3 -3
  114. package/dist/chunks/{header.o-7SyHtU.js.map → header.C21yzWrk.js.map} +1 -1
  115. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  116. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  117. package/dist/chunks/input-field-password.DyUphhxB.js +353 -0
  118. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.DyUphhxB.js.map} +1 -1
  119. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.BXVaC5ra.js} +12 -5
  120. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.BXVaC5ra.js.map} +1 -1
  121. package/dist/chunks/input-field.DkUFvIWt.js +326 -0
  122. package/dist/chunks/input-field.DkUFvIWt.js.map +1 -0
  123. package/dist/chunks/input-time.WI_qdwJc.js +122 -0
  124. package/dist/chunks/input-time.WI_qdwJc.js.map +1 -0
  125. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  126. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  127. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  128. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  129. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  130. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  131. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.c6QphYQo.js} +54 -47
  132. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.c6QphYQo.js.map} +1 -1
  133. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js} +48 -41
  134. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map} +1 -1
  135. package/dist/chunks/on-click-outside.BgIzQ2G1.js +108 -0
  136. package/dist/chunks/on-click-outside.BgIzQ2G1.js.map +1 -0
  137. package/dist/chunks/{pagination.dpVc6Yt0.js → pagination.Cu85Lqms.js} +150 -138
  138. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.Cu85Lqms.js.map} +1 -1
  139. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  140. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  141. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.CfMr1fmW.js} +4 -4
  142. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.CfMr1fmW.js.map} +1 -1
  143. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Bf9EWzNk.js} +421 -413
  144. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Bf9EWzNk.js.map} +1 -1
  145. package/dist/chunks/search-bar.p6kHCCvT.js +114 -0
  146. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.p6kHCCvT.js.map} +1 -1
  147. package/dist/chunks/secondary-nav.CaxiyVaO.js +285 -0
  148. package/dist/chunks/secondary-nav.CaxiyVaO.js.map +1 -0
  149. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  150. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  151. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.58XZj_SJ.js} +3 -3
  152. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.58XZj_SJ.js.map} +1 -1
  153. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.CAVhSs-O.js} +56 -49
  154. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.CAVhSs-O.js.map} +1 -1
  155. package/dist/chunks/step.AsX2jAeL.js +268 -0
  156. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  157. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  158. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  159. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.CDithi8M.js} +5 -5
  160. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.CDithi8M.js.map} +1 -1
  161. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  162. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  163. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  164. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  165. package/dist/chunks/textarea.JGXAlpx9.js +257 -0
  166. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.JGXAlpx9.js.map} +1 -1
  167. package/dist/chunks/timeline-item.BNFPpQz1.js +433 -0
  168. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.BNFPpQz1.js.map} +1 -1
  169. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  170. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  171. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  172. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  173. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js} +120 -113
  174. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map} +1 -1
  175. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.Bx8uuky9.js} +436 -410
  176. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +1 -0
  177. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  178. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  179. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  180. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  181. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BOuXpRb-.js} +2 -2
  182. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BOuXpRb-.js.map} +1 -1
  183. package/dist/chunks/use-touch-device.DTqFAbXh.js +11 -0
  184. package/dist/chunks/use-touch-device.DTqFAbXh.js.map +1 -0
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/country.js +3 -3
  188. package/dist/dashboard-template.js +1 -1
  189. package/dist/dashed-underline.js +1 -1
  190. package/dist/data-grid-template.js +1 -1
  191. package/dist/data-grid.js +1 -1
  192. package/dist/date-picker.js +2 -2
  193. package/dist/date-range-picker.js +2 -2
  194. package/dist/draggable.js +1383 -0
  195. package/dist/draggable.js.map +1 -0
  196. package/dist/dropdown.js +10 -11
  197. package/dist/dropdown.js.map +1 -1
  198. package/dist/file-uploader.js +1 -1
  199. package/dist/filter-bar.js +1 -1
  200. package/dist/form-layout.js +1 -1
  201. package/dist/header-with-views.js +1 -1
  202. package/dist/header.js +1 -1
  203. package/dist/index.js +284 -279
  204. package/dist/index.js.map +1 -1
  205. package/dist/info-icon.js +1 -1
  206. package/dist/input-field-password.js +1 -1
  207. package/dist/input-field-phone-number.js +1 -1
  208. package/dist/input-field.js +1 -1
  209. package/dist/input-time.js +5 -0
  210. package/dist/input-time.js.map +1 -0
  211. package/dist/inspector.js +1 -1
  212. package/dist/internal.js +26 -25
  213. package/dist/internal.js.map +1 -1
  214. package/dist/list.js +1 -1
  215. package/dist/menu.js +1 -1
  216. package/dist/modal-fullscreen.js +1 -1
  217. package/dist/modal.js +2 -2
  218. package/dist/pagination.js +1 -1
  219. package/dist/popover.js +1 -1
  220. package/dist/promo-banner.js +1 -1
  221. package/dist/radio-group.js +1 -1
  222. package/dist/rich-text-editor.js +1 -1
  223. package/dist/search-bar.js +2 -2
  224. package/dist/secondary-nav.js +1 -1
  225. package/dist/segmented-control.js +1 -1
  226. package/dist/selection-card.js +1 -1
  227. package/dist/sidepanel.js +1 -1
  228. package/dist/stepper.js +1 -1
  229. package/dist/structured-list.js +1 -1
  230. package/dist/summary-grid.js +1 -1
  231. package/dist/tabs.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/toast.js +1 -1
  236. package/dist/tutorial.js +1 -1
  237. package/dist/web-types.json +1 -1
  238. package/package.json +7 -10
  239. package/dist/assets/dropdown-default-textbox.css +0 -1
  240. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  241. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  242. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  243. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  244. package/dist/chunks/calendar.DcCqkSNJ.js.map +0 -1
  245. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  246. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  247. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  248. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  249. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  250. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  251. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  252. package/dist/chunks/date-picker.dlzZ_-5f.js.map +0 -1
  253. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  254. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  255. package/dist/chunks/debounce.DUTu11PS.js +0 -10
  256. package/dist/chunks/debounce.DUTu11PS.js.map +0 -1
  257. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  258. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js +0 -408
  259. package/dist/chunks/dropdown-default-textbox.bq9AlGzJ.js.map +0 -1
  260. package/dist/chunks/dropdown.MhmX1P9o.js +0 -799
  261. package/dist/chunks/dropdown.MhmX1P9o.js.map +0 -1
  262. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  263. package/dist/chunks/error-message.DCgo8q20.js.map +0 -1
  264. package/dist/chunks/filter-bar.CkAjLQol.js.map +0 -1
  265. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  266. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  267. package/dist/chunks/form-layout-title.DW5Kg1rh.js.map +0 -1
  268. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  269. package/dist/chunks/input-field.CfU0ZKtL.js +0 -315
  270. package/dist/chunks/input-field.CfU0ZKtL.js.map +0 -1
  271. package/dist/chunks/on-click-outside.ZUMLlxE_.js +0 -90
  272. package/dist/chunks/on-click-outside.ZUMLlxE_.js.map +0 -1
  273. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  274. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  275. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  276. package/dist/chunks/step.BlwoLfdw.js +0 -259
  277. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  278. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  279. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  280. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
  281. package/dist/chunks/use-cached-selected-values.ClEJRFAd.js.map +0 -1
  282. package/dist/draggable-handle.js +0 -155
  283. package/dist/draggable-handle.js.map +0 -1
@@ -1,33 +1,33 @@
1
- import { defineComponent as fe, computed as S, resolveComponent as te, openBlock as O, createElementBlock as w, withKeys as ne, normalizeClass as Ye, createElementVNode as p, createVNode as W, withCtx as V, createTextVNode as Ne, toDisplayString as Ee, ref as Q, watch as se, nextTick as tt, toRef as P, resolveDirective as nt, withDirectives as He, mergeProps as We, toHandlers as Ve, createBlock as Z, createCommentVNode as ae, Fragment as z, renderList as J, unref as _, reactive as Ke, resolveDynamicComponent as at } from "vue";
2
- import { B as we } from "./button.DWF7FSIw.js";
1
+ import { defineComponent as De, computed as I, resolveComponent as te, openBlock as O, createElementBlock as k, withKeys as ne, normalizeClass as Le, createElementVNode as _, createVNode as W, withCtx as V, createTextVNode as Ne, toDisplayString as Ee, ref as x, watch as re, nextTick as tt, toRef as P, resolveDirective as nt, withDirectives as He, mergeProps as We, toHandlers as Ve, createBlock as J, createCommentVNode as ae, Fragment as Q, renderList as z, unref as w, reactive as Ke, resolveDynamicComponent as at } from "vue";
2
+ import { B as ke } from "./button.DWF7FSIw.js";
3
3
  import { B as Ae } from "./typography.B3J6_tYk.js";
4
4
  import { u as Re } from "./index.B875RXHM.js";
5
5
  import { g as qe } from "./generate-uid.DBWe4g6T.js";
6
- import { a as Qe } from "./keyboard-navigation.DWmhelVv.js";
6
+ import { a as xe } from "./keyboard-navigation.DWmhelVv.js";
7
7
  import { a as ot } from "./index.DDwcHPb6.js";
8
- import { t as T, c as re, n as Oe, k as Fe, s as st, g as ze } from "./en-US.CCazFVNP.js";
9
- import { d as Pe, a as Ie } from "./differenceInMonths.s_znQQpw.js";
10
- import { s as he } from "./startOfWeek.Cvmo-f5J.js";
11
- import { a as Je, C as Xe } from "./chevron-left.C_vPW7OR.js";
12
- import { _ as De } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
- import { B as rt, a as lt } from "./date.R2Wz6o7J.js";
8
+ import { t as T, c as se, n as Oe, k as Fe, s as rt, g as Qe } from "./en-US.CCazFVNP.js";
9
+ import { d as Pe, a as Se } from "./differenceInMonths.s_znQQpw.js";
10
+ import { s as ye } from "./startOfWeek.Cvmo-f5J.js";
11
+ import { a as ze, C as Xe } from "./chevron-left.C_vPW7OR.js";
12
+ import { _ as fe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
+ import { B as st, a as it } from "./date.R2Wz6o7J.js";
14
14
  import "../assets/calendar.css";
15
15
  var R = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(R || {}), X = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(X || {});
16
16
  function ce(e, t, n) {
17
17
  const a = T(e, n?.in);
18
- return isNaN(t) ? re(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
18
+ return isNaN(t) ? se(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
19
19
  }
20
- function x(e, t, n) {
20
+ function Z(e, t, n) {
21
21
  const a = T(e, n?.in);
22
- if (isNaN(t)) return re(e, NaN);
22
+ if (isNaN(t)) return se(e, NaN);
23
23
  if (!t)
24
24
  return a;
25
- const o = a.getDate(), r = re(e, a.getTime());
26
- r.setMonth(a.getMonth() + t + 1, 0);
27
- const l = r.getDate();
28
- return o >= l ? r : (a.setFullYear(
29
- r.getFullYear(),
30
- r.getMonth(),
25
+ const o = a.getDate(), s = se(e, a.getTime());
26
+ s.setMonth(a.getMonth() + t + 1, 0);
27
+ const i = s.getDate();
28
+ return o >= i ? s : (a.setFullYear(
29
+ s.getFullYear(),
30
+ s.getMonth(),
31
31
  o
32
32
  ), a);
33
33
  }
@@ -35,16 +35,16 @@ function ee(e, t) {
35
35
  const n = T(e, t?.in);
36
36
  return n.setHours(0, 0, 0, 0), n;
37
37
  }
38
- function ut(e, t, n) {
38
+ function lt(e, t, n) {
39
39
  const [a, o] = Oe(
40
40
  n?.in,
41
41
  e,
42
42
  t
43
- ), r = ee(a), l = ee(o), i = +r - Fe(r), D = +l - Fe(l);
44
- return Math.round((i - D) / st);
43
+ ), s = ee(a), i = ee(o), u = +s - Fe(s), f = +i - Fe(i);
44
+ return Math.round((u - f) / rt);
45
45
  }
46
- function Ze(e, t, n) {
47
- return x(e, t * 12, n);
46
+ function Je(e, t, n) {
47
+ return Z(e, t * 12, n);
48
48
  }
49
49
  function me(e, t, n) {
50
50
  const [a, o] = Oe(
@@ -54,23 +54,23 @@ function me(e, t, n) {
54
54
  );
55
55
  return +ee(a) == +ee(o);
56
56
  }
57
- function it(e, t, n) {
57
+ function ut(e, t, n) {
58
58
  const [a, o] = Oe(
59
59
  n?.in,
60
60
  e,
61
61
  t
62
- ), r = Be(a, o), l = Math.abs(
63
- ut(a, o)
62
+ ), s = Be(a, o), i = Math.abs(
63
+ lt(a, o)
64
64
  );
65
- a.setDate(a.getDate() - r * l);
66
- const i = +(Be(a, o) === -r), D = r * (l - i);
67
- return D === 0 ? 0 : D;
65
+ a.setDate(a.getDate() - s * i);
66
+ const u = +(Be(a, o) === -s), f = s * (i - u);
67
+ return f === 0 ? 0 : f;
68
68
  }
69
69
  function Be(e, t) {
70
70
  const n = e.getFullYear() - t.getFullYear() || e.getMonth() - t.getMonth() || e.getDate() - t.getDate() || e.getHours() - t.getHours() || e.getMinutes() - t.getMinutes() || e.getSeconds() - t.getSeconds() || e.getMilliseconds() - t.getMilliseconds();
71
71
  return n < 0 ? -1 : n > 0 ? 1 : n;
72
72
  }
73
- function Se(e, t) {
73
+ function Ie(e, t) {
74
74
  const n = T(e, t?.in), a = n.getMonth(), o = a - a % 3;
75
75
  return n.setMonth(o, 1), n.setHours(0, 0, 0, 0), n;
76
76
  }
@@ -83,28 +83,28 @@ function Ce(e, t) {
83
83
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
84
84
  }
85
85
  function Me(e, t) {
86
- const n = ze(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = T(e, t?.in), r = o.getDay(), l = (r < a ? -7 : 0) + 6 - (r - a);
87
- return o.setDate(o.getDate() + l), o.setHours(23, 59, 59, 999), o;
86
+ const n = Qe(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = T(e, t?.in), s = o.getDay(), i = (s < a ? -7 : 0) + 6 - (s - a);
87
+ return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
88
88
  }
89
89
  function Te(e, t) {
90
90
  const n = T(e, t?.in), a = n.getMonth(), o = a - a % 3 + 3;
91
91
  return n.setMonth(o, 0), n.setHours(23, 59, 59, 999), n;
92
92
  }
93
93
  function dt(e, t) {
94
- const n = T(e, t?.in), a = n.getFullYear(), o = n.getMonth(), r = re(n, 0);
95
- return r.setFullYear(a, o + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
94
+ const n = T(e, t?.in), a = n.getFullYear(), o = n.getMonth(), s = se(n, 0);
95
+ return s.setFullYear(a, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
96
96
  }
97
97
  function ct(e, t) {
98
98
  return +T(e) > +T(t);
99
99
  }
100
- function ft(e, t) {
100
+ function Dt(e, t) {
101
101
  return +T(e) < +T(t);
102
102
  }
103
- function Dt(e, t, n) {
104
- const a = ze(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, r = T(e, n?.in), l = r.getDay(), D = (t % 7 + 7) % 7, N = 7 - o, m = t < 0 || t > 6 ? t - (l + N) % 7 : (D + N) % 7 - (l + N) % 7;
105
- return ce(r, m, n);
103
+ function ft(e, t, n) {
104
+ const a = Qe(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, s = T(e, n?.in), i = s.getDay(), f = (t % 7 + 7) % 7, N = 7 - o, m = t < 0 || t > 6 ? t - (i + N) % 7 : (f + N) % 7 - (i + N) % 7;
105
+ return ce(s, m, n);
106
106
  }
107
- function ye(e, t, n) {
107
+ function he(e, t, n) {
108
108
  const [a, o] = Oe(
109
109
  n?.in,
110
110
  e,
@@ -113,33 +113,33 @@ function ye(e, t, n) {
113
113
  return a.getFullYear() === o.getFullYear() && a.getMonth() === o.getMonth();
114
114
  }
115
115
  function be(e, t, n) {
116
- const a = +T(e, n?.in), [o, r] = [
116
+ const a = +T(e, n?.in), [o, s] = [
117
117
  +T(t.start, n?.in),
118
118
  +T(t.end, n?.in)
119
- ].sort((l, i) => l - i);
120
- return a >= o && a <= r;
119
+ ].sort((i, u) => i - u);
120
+ return a >= o && a <= s;
121
121
  }
122
- function _e(e, t, n) {
122
+ function we(e, t, n) {
123
123
  return ce(e, -t, n);
124
124
  }
125
125
  function vt(e, t, n) {
126
- const a = T(e, n?.in), o = a.getFullYear(), r = a.getDate(), l = re(e, 0);
127
- l.setFullYear(o, t, 15), l.setHours(0, 0, 0, 0);
128
- const i = dt(l);
129
- return a.setMonth(t, Math.min(r, i)), a;
126
+ const a = T(e, n?.in), o = a.getFullYear(), s = a.getDate(), i = se(e, 0);
127
+ i.setFullYear(o, t, 15), i.setHours(0, 0, 0, 0);
128
+ const u = dt(i);
129
+ return a.setMonth(t, Math.min(s, u)), a;
130
130
  }
131
131
  function mt(e, t, n) {
132
132
  let a = T(e, n?.in);
133
- return isNaN(+a) ? re(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = vt(a, t.month)), t.date != null && a.setDate(t.date), t.hours != null && a.setHours(t.hours), t.minutes != null && a.setMinutes(t.minutes), t.seconds != null && a.setSeconds(t.seconds), t.milliseconds != null && a.setMilliseconds(t.milliseconds), a);
133
+ return isNaN(+a) ? se(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = vt(a, t.month)), t.date != null && a.setDate(t.date), t.hours != null && a.setHours(t.hours), t.minutes != null && a.setMinutes(t.minutes), t.seconds != null && a.setSeconds(t.seconds), t.milliseconds != null && a.setMilliseconds(t.milliseconds), a);
134
134
  }
135
135
  function de(e, t, n) {
136
- return x(e, -t, n);
136
+ return Z(e, -t, n);
137
137
  }
138
- function yt(e, t, n) {
139
- return Ze(e, -t, n);
138
+ function ht(e, t, n) {
139
+ return Je(e, -t, n);
140
140
  }
141
- var F = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(F || {}), j = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_DAY = "current-day", e.DISABLED = "disabled", e))(j || {}), ie = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(ie || {});
142
- const ht = {
141
+ var F = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(F || {}), j = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_DAY = "current-day", e.DISABLED = "disabled", e))(j || {}), ue = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(ue || {});
142
+ const yt = {
143
143
  /**
144
144
  * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
145
145
  */
@@ -161,33 +161,48 @@ const ht = {
161
161
  default: F.SINGLE,
162
162
  validator: (e) => Object.values(F).includes(e)
163
163
  }
164
- }, ke = /* @__PURE__ */ new Map();
165
- function pe(e, t) {
164
+ }, pe = /* @__PURE__ */ new Map();
165
+ function _e(e, t) {
166
166
  const n = t ? JSON.stringify(Object.entries(t).sort()) : "no-options", a = e?.trim() || "en-US", o = `${a}::${n}`;
167
- if (ke.has(o))
168
- return ke.get(o);
169
- const r = new Intl.DateTimeFormat(a, t);
170
- return ke.set(o, r), r;
167
+ if (pe.has(o))
168
+ return pe.get(o);
169
+ const s = new Intl.DateTimeFormat(a, t);
170
+ return pe.set(o, s), s;
171
171
  }
172
- const rn = (e) => {
172
+ const sn = (e) => {
173
173
  if (!e)
174
174
  return "";
175
175
  const t = (n) => n.toString().padStart(2, "0");
176
176
  return [t(e.getHours()), t(e.getMinutes()), t(e.getSeconds())].join(":");
177
- }, gt = fe({
177
+ }, ln = (e) => {
178
+ if (!e || isNaN(e.getTime()))
179
+ return "";
180
+ const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0");
181
+ return `${t}-${n}-${a}`;
182
+ }, un = (e) => {
183
+ if (!e || isNaN(e.getTime()))
184
+ return "";
185
+ const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0");
186
+ return `${t}-${n}`;
187
+ }, dn = (e) => {
188
+ if (!e)
189
+ return /* @__PURE__ */ new Date(NaN);
190
+ const [t, n] = e.split("-").map(Number);
191
+ return new Date(t, n - 1, 1);
192
+ }, gt = De({
178
193
  name: "calendar-month-day",
179
194
  components: { BentoTypography: Ae },
180
195
  inheritAttrs: !0,
181
- props: ht,
182
- emits: [ie.CLICK, ie.MOUSE_OVER],
196
+ props: yt,
197
+ emits: [ue.CLICK, ue.MOUSE_OVER],
183
198
  setup(e, { emit: t }) {
184
- const { locale: n } = Re(void 0), a = S(() => {
185
- const i = /* @__PURE__ */ new Date();
186
- return e.day.getDate() === i.getDate() && e.day.getMonth() === i.getMonth() && e.day.getFullYear() === i.getFullYear();
187
- }), o = S(() => pe(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day")?.value ?? "");
199
+ const { locale: n } = Re(void 0), a = I(() => {
200
+ const u = /* @__PURE__ */ new Date();
201
+ return e.day.getDate() === u.getDate() && e.day.getMonth() === u.getMonth() && e.day.getFullYear() === u.getFullYear();
202
+ }), o = I(() => _e(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day")?.value ?? "");
188
203
  return {
189
204
  // Values
190
- conditionalClasses: S(() => ({
205
+ conditionalClasses: I(() => ({
191
206
  // Variants
192
207
  [`b-calendar-month-day--${j.BEGINNING}`]: e.variant === F.BEGINNING,
193
208
  [`b-calendar-month-day--${j.MIDDLE}`]: e.variant === F.MIDDLE,
@@ -204,29 +219,29 @@ const rn = (e) => {
204
219
  isCurrentDay: a,
205
220
  formattedDate: o,
206
221
  // Enums
207
- CalendarMonthDayEvent: ie,
222
+ CalendarMonthDayEvent: ue,
208
223
  // Events
209
- onClick: (i, D) => {
210
- e.disabled ? (i.preventDefault(), i.stopPropagation()) : t(ie.CLICK, D, e.day);
224
+ onClick: (u, f) => {
225
+ e.disabled ? (u.preventDefault(), u.stopPropagation()) : t(ue.CLICK, f, e.day);
211
226
  }
212
227
  };
213
228
  }
214
229
  }), Mt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], Nt = { class: "b-calendar-month-day__wrapper" };
215
- function Et(e, t, n, a, o, r) {
216
- const l = te("bento-typography");
217
- return O(), w("td", {
218
- class: Ye(["b-calendar-month-day", e.conditionalClasses]),
230
+ function Et(e, t, n, a, o, s) {
231
+ const i = te("bento-typography");
232
+ return O(), k("td", {
233
+ class: Le(["b-calendar-month-day", e.conditionalClasses]),
219
234
  tabindex: e.selected ? "0" : "-1",
220
235
  "aria-selected": e.selected ? e.selected : void 0,
221
236
  "aria-disabled": e.disabled,
222
237
  "aria-current": e.isCurrentDay ? "date" : void 0,
223
238
  "data-date": e.day.toDateString(),
224
- onClick: t[0] || (t[0] = (i) => e.onClick(i, e.day)),
225
- onMouseover: t[1] || (t[1] = (i) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
226
- onKeydown: t[2] || (t[2] = ne((i) => e.onClick(i, e.day), ["space", "enter"]))
239
+ onClick: t[0] || (t[0] = (u) => e.onClick(u, e.day)),
240
+ onMouseover: t[1] || (t[1] = (u) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
241
+ onKeydown: t[2] || (t[2] = ne((u) => e.onClick(u, e.day), ["space", "enter"]))
227
242
  }, [
228
- p("div", Nt, [
229
- W(l, {
243
+ _("div", Nt, [
244
+ W(i, {
230
245
  class: "b-calendar-month-day__label",
231
246
  el: "span",
232
247
  variant: "body",
@@ -240,45 +255,45 @@ function Et(e, t, n, a, o, r) {
240
255
  ])
241
256
  ], 42, Mt);
242
257
  }
243
- const bt = /* @__PURE__ */ De(gt, [["render", Et], ["__scopeId", "data-v-e6d7eb12"]]);
244
- var oe = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(oe || {}), K = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(K || {}), Le = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Le || {});
245
- const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
246
- const r = Q(new Date(t.value));
247
- se(
258
+ const bt = /* @__PURE__ */ fe(gt, [["render", Et], ["__scopeId", "data-v-e6d7eb12"]]);
259
+ var oe = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(oe || {}), K = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(K || {}), Ye = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Ye || {});
260
+ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
261
+ const s = x(new Date(t.value));
262
+ re(
248
263
  t,
249
264
  () => {
250
- r.value = t.value;
265
+ s.value = t.value;
251
266
  },
252
267
  { immediate: !0 }
253
268
  );
254
- const l = Q(new Date(e.value));
255
- se(e, () => {
256
- l.value = new Date(e.value);
269
+ const i = x(new Date(e.value));
270
+ re(e, () => {
271
+ i.value = new Date(e.value);
257
272
  });
258
- const i = ot(), D = Q(l.value);
259
- se(i, (d) => {
273
+ const u = ot(), f = x(i.value);
274
+ re(u, (d) => {
260
275
  const M = d.getAttribute("data-date");
261
- D.value = M ? new Date(M) : l.value;
276
+ f.value = M ? new Date(M) : i.value;
262
277
  });
263
- const N = Q({}), m = (d) => (M) => {
278
+ const N = x({}), m = (d) => (M) => {
264
279
  N.value[d.toDateString()] = M;
265
280
  }, g = () => {
266
281
  N.value = {};
267
- }, f = (d = 1) => {
268
- r.value = x(r.value, d), o(R.NEXT_MONTH, d), g();
282
+ }, D = (d = 1) => {
283
+ s.value = Z(s.value, d), o(R.NEXT_MONTH, d), g();
269
284
  }, c = (d = 1) => {
270
- r.value = de(r.value, d), o(R.PREVIOUS_MONTH, d), g();
271
- }, s = (d, M) => {
272
- const k = !!N.value[d?.toDateString()];
273
- return !d || !k ? null : M ? N.value[d.toDateString()].$el : (N.value[d.toDateString()].$el.focus(), null);
274
- }, u = (d) => {
285
+ s.value = de(s.value, d), o(R.PREVIOUS_MONTH, d), g();
286
+ }, r = (d, M) => {
287
+ const p = !!N.value[d?.toDateString()];
288
+ return !d || !p ? null : M ? N.value[d.toDateString()].$el : (N.value[d.toDateString()].$el.focus(), null);
289
+ }, l = (d) => {
275
290
  d.preventDefault(), d.stopImmediatePropagation(), d.stopPropagation();
276
- }, h = ({ nextDate: d, isIncreasingDays: M, amountOfMonths: k, isCalendarButtonsNav: G }) => {
291
+ }, y = ({ nextDate: d, isIncreasingDays: M, amountOfMonths: p, isCalendarButtonsNav: G }) => {
277
292
  if (!G && n && n(d))
278
293
  return;
279
- d.getMonth() === l.value.getMonth() && d.getFullYear() === l.value.getFullYear() ? (l.value = d, s(d)) : (M ? f(k) : c(k), tt(() => {
280
- const U = d.getMonth() === r.value.getMonth() && d.getFullYear() === r.value.getFullYear();
281
- n && n(d) || !U || G || (l.value = d, s(d));
294
+ d.getMonth() === i.value.getMonth() && d.getFullYear() === i.value.getFullYear() ? (i.value = d, r(d)) : (M ? D(p) : c(p), tt(() => {
295
+ const U = d.getMonth() === s.value.getMonth() && d.getFullYear() === s.value.getFullYear();
296
+ n && n(d) || !U || G || (i.value = d, r(d));
282
297
  }));
283
298
  };
284
299
  return {
@@ -288,69 +303,69 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
288
303
  /**
289
304
  * Month navigation
290
305
  */
291
- showNextMonth: f,
306
+ showNextMonth: D,
292
307
  showPreviousMonth: c,
293
308
  /**
294
309
  * Focus method
295
310
  */
296
- focusOnDate: s,
311
+ focusOnDate: r,
297
312
  /**
298
313
  * Day navigation
299
314
  */
300
315
  // ArrowRight
301
316
  moveToNextDay: (d) => {
302
- u(d), h({ nextDate: ce(D.value, 1), isIncreasingDays: !0 });
317
+ l(d), y({ nextDate: ce(f.value, 1), isIncreasingDays: !0 });
303
318
  },
304
319
  // ArrowLeft
305
320
  moveToPreviousDay: (d) => {
306
- u(d), h({ nextDate: _e(D.value, 1), isIncreasingDays: !1 });
321
+ l(d), y({ nextDate: we(f.value, 1), isIncreasingDays: !1 });
307
322
  },
308
323
  // ArrowUp
309
324
  moveToPreviousWeek: (d) => {
310
- u(d), h({ nextDate: _e(D.value, 7), isIncreasingDays: !1 });
325
+ l(d), y({ nextDate: we(f.value, 7), isIncreasingDays: !1 });
311
326
  },
312
327
  // ArrowDown
313
328
  moveToNextWeek: (d) => {
314
- u(d), h({ nextDate: ce(D.value, 7), isIncreasingDays: !0 });
329
+ l(d), y({ nextDate: ce(f.value, 7), isIncreasingDays: !0 });
315
330
  },
316
331
  // Home
317
332
  moveToFirstDayOfWeek: (d) => {
318
- u(d), h({
319
- nextDate: he(D.value, { weekStartsOn: a }),
333
+ l(d), y({
334
+ nextDate: ye(f.value, { weekStartsOn: a }),
320
335
  isIncreasingDays: !1
321
336
  });
322
337
  },
323
338
  moveToFirstMonthOfYear: (d) => {
324
- u(d);
325
- const M = Pe(l.value, Ce(l.value));
326
- h({
327
- nextDate: Ce(l.value),
339
+ l(d);
340
+ const M = Pe(i.value, Ce(i.value));
341
+ y({
342
+ nextDate: Ce(i.value),
328
343
  isIncreasingDays: !1,
329
344
  amountOfMonths: M
330
345
  });
331
346
  },
332
347
  // End
333
348
  moveToLastDayOfWeek: (d) => {
334
- u(d), h({
335
- nextDate: Me(D.value, { weekStartsOn: a }),
349
+ l(d), y({
350
+ nextDate: Me(f.value, { weekStartsOn: a }),
336
351
  isIncreasingDays: !0
337
352
  });
338
353
  },
339
354
  moveToLastMonthOfYear: (d) => {
340
- u(d);
341
- const M = mt(l.value, { month: 11, date: 1 }), k = Pe(M, l.value);
342
- h({
355
+ l(d);
356
+ const M = mt(i.value, { month: 11, date: 1 }), p = Pe(M, i.value);
357
+ y({
343
358
  nextDate: M,
344
359
  isIncreasingDays: !0,
345
- amountOfMonths: k
360
+ amountOfMonths: p
346
361
  });
347
362
  },
348
363
  // PageUp
349
- moveToPreviousMonth: (d, M = !1, k = 1) => {
350
- u(d);
351
- const G = k;
352
- h({
353
- nextDate: de(D.value, G),
364
+ moveToPreviousMonth: (d, M = !1, p = 1) => {
365
+ l(d);
366
+ const G = p;
367
+ y({
368
+ nextDate: de(f.value, G),
354
369
  isIncreasingDays: !1,
355
370
  amountOfMonths: G,
356
371
  isCalendarButtonsNav: M
@@ -358,21 +373,21 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
358
373
  },
359
374
  // Shift+PageUp
360
375
  moveToPreviousYear: (d, M = !1) => {
361
- u(d);
362
- const k = 12;
363
- h({
364
- nextDate: de(D.value, k),
376
+ l(d);
377
+ const p = 12;
378
+ y({
379
+ nextDate: de(f.value, p),
365
380
  isIncreasingDays: !1,
366
- amountOfMonths: k,
381
+ amountOfMonths: p,
367
382
  isCalendarButtonsNav: M
368
383
  });
369
384
  },
370
385
  // PageDown
371
- moveToNextMonth: (d, M = !1, k = 1) => {
372
- u(d);
373
- const G = k;
374
- h({
375
- nextDate: x(D.value, G),
386
+ moveToNextMonth: (d, M = !1, p = 1) => {
387
+ l(d);
388
+ const G = p;
389
+ y({
390
+ nextDate: Z(f.value, G),
376
391
  isIncreasingDays: !0,
377
392
  amountOfMonths: G,
378
393
  isCalendarButtonsNav: M
@@ -380,34 +395,41 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
380
395
  },
381
396
  // Shift-PageDown
382
397
  moveToNextYear: (d, M = !1) => {
383
- u(d);
384
- const k = 12;
385
- h({
386
- nextDate: x(D.value, k),
398
+ l(d);
399
+ const p = 12;
400
+ y({
401
+ nextDate: Z(f.value, p),
387
402
  isIncreasingDays: !0,
388
- amountOfMonths: k,
403
+ amountOfMonths: p,
389
404
  isCalendarButtonsNav: M
390
405
  });
391
406
  },
392
407
  // Values
393
- internalDate: l,
394
- baseDate: r
408
+ internalDate: i,
409
+ baseDate: s
395
410
  };
396
411
  }, Ge = {
412
+ "de-DE": { nextMonth: "Nächster Monat", previousMonth: "Voriger Monat" },
413
+ "en-GB": { nextMonth: "Next month", previousMonth: "Previous month" },
397
414
  "en-US": { nextMonth: "Next month", previousMonth: "Previous month" },
415
+ "es-ES": { nextMonth: "Mes siguiente", previousMonth: "Mes anterior" },
416
+ "es-MX": { nextMonth: "El próximo mes", previousMonth: "Mes anterior" },
417
+ "fr-FR": { nextMonth: "Mois suivant", previousMonth: "Mois précédent" },
418
+ "it-IT": { nextMonth: "Mese prossimo", previousMonth: "Mese precedente" },
398
419
  "ja-JP": { nextMonth: "翌月", previousMonth: "前月" },
399
- "pt-BR": { nextMonth: "Próximo mês", previousMonth: "Mês anterior" }
400
- }, Ot = fe({
420
+ "pt-BR": { nextMonth: "Próximo mês", previousMonth: "Mês anterior" },
421
+ "zh-CN": { nextMonth: "下个月", previousMonth: "上个月" }
422
+ }, Ot = De({
401
423
  i18n: { messages: Ge },
402
424
  name: "calendar-month",
403
425
  components: {
404
- BentoButton: we,
426
+ BentoButton: ke,
405
427
  BentoTypography: Ae,
406
428
  CalendarMonthDay: bt,
407
429
  ChevronLeftIcon: Xe,
408
- ChevronRightIcon: Je
430
+ ChevronRightIcon: ze
409
431
  },
410
- directives: { BentoKeyboardNavigationDirective: Qe },
432
+ directives: { BentoKeyboardNavigationDirective: xe },
411
433
  props: {
412
434
  /**
413
435
  * end of the selected range
@@ -465,58 +487,58 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
465
487
  R.MOUSE_OVER
466
488
  ],
467
489
  setup(e, { emit: t }) {
468
- const { locale: n, t: a } = Re({ messages: Ge }), o = qe("bento-date-picker-month-label"), r = S(
469
- () => (I) => e.min && I < e.min || e.max && I > e.max || e.isDateDisabled?.(I)
490
+ const { locale: n, t: a } = Re({ messages: Ge }), o = qe("bento-date-picker-month-label"), s = I(
491
+ () => (S) => e.min && S < e.min || e.max && S > e.max || e.isDateDisabled?.(S)
470
492
  ), {
471
- internalDate: l,
472
- baseDate: i,
493
+ internalDate: i,
494
+ baseDate: u,
473
495
  // Calendar refs
474
- addDayRef: D,
496
+ addDayRef: f,
475
497
  // Month navigation
476
498
  showNextMonth: N,
477
499
  showPreviousMonth: m,
478
500
  // Day navigation
479
501
  moveToNextDay: g,
480
- moveToPreviousDay: f,
502
+ moveToPreviousDay: D,
481
503
  moveToPreviousWeek: c,
482
- moveToNextWeek: s,
483
- moveToFirstDayOfWeek: u,
484
- moveToLastDayOfWeek: h,
504
+ moveToNextWeek: r,
505
+ moveToFirstDayOfWeek: l,
506
+ moveToLastDayOfWeek: y,
485
507
  moveToPreviousMonth: $,
486
- moveToPreviousYear: y,
508
+ moveToPreviousYear: h,
487
509
  moveToNextMonth: v,
488
510
  moveToNextYear: E,
489
- focusOnDate: L
490
- } = xe(
511
+ focusOnDate: Y
512
+ } = Ze(
491
513
  {
492
514
  currentSelectedDate: P(e, "startDate"),
493
515
  month: P(e, "month"),
494
- isDateDisabled: r.value,
516
+ isDateDisabled: s.value,
495
517
  firstDayOfWeek: e.firstDayOfWeek
496
518
  },
497
519
  t
498
- ), le = S(
520
+ ), ie = I(
499
521
  () => Object.values(X).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : X.MONDAY
500
- ), ve = S(() => ["first", "unique"].includes(e.position)), b = S(() => ["last", "unique"].includes(e.position)), C = S(
501
- () => pe(n.value, { month: "long", year: "numeric" }).format(i.value)
502
- ), Y = S(
503
- () => new Array(7).fill(/* @__PURE__ */ new Date()).map((I, U) => {
504
- const ue = Dt(I, le.value + U);
505
- return pe(n.value, { weekday: "short" }).format(ue);
522
+ ), ve = I(() => ["first", "unique"].includes(e.position)), b = I(() => ["last", "unique"].includes(e.position)), C = I(
523
+ () => _e(n.value, { month: "long", year: "numeric" }).format(u.value)
524
+ ), L = I(
525
+ () => new Array(7).fill(/* @__PURE__ */ new Date()).map((S, U) => {
526
+ const le = ft(S, ie.value + U);
527
+ return _e(n.value, { weekday: "short" }).format(le);
506
528
  })
507
- ), q = S(() => {
508
- const I = [], U = ge(e.month);
509
- let ue = I[I.push([]) - 1];
529
+ ), q = I(() => {
530
+ const S = [], U = ge(e.month);
531
+ let le = S[S.push([]) - 1];
510
532
  for (; U.getMonth() === e.month.getMonth(); )
511
- U.getDay() - le.value === 0 && ue.length > 0 && (ue = I[I.push([]) - 1]), ue.push(ee(U)), U.setDate(U.getDate() + 1);
512
- return I;
533
+ U.getDay() - ie.value === 0 && le.length > 0 && (le = S[S.push([]) - 1]), le.push(ee(U)), U.setDate(U.getDate() + 1);
534
+ return S;
513
535
  });
514
536
  return {
515
537
  // Refs
516
- addDayRef: D,
538
+ addDayRef: f,
517
539
  // Values
518
- computedIsDateDisabled: r,
519
- daysOfWeek: Y,
540
+ computedIsDateDisabled: s,
541
+ daysOfWeek: L,
520
542
  weeksOfMonth: q,
521
543
  formattedMonthDate: C,
522
544
  shouldShowNextMonthButton: b,
@@ -525,74 +547,74 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
525
547
  // Enums
526
548
  CalendarMonthEvent: R,
527
549
  // Functions
528
- isSelectedDate: (I) => l.value && me(l.value, I) && !e.endDate ? !0 : e.startDate && e.endDate && be(I, { start: e.startDate, end: e.endDate }),
550
+ isSelectedDate: (S) => i.value && me(i.value, S) && !e.endDate ? !0 : e.startDate && e.endDate && be(S, { start: e.startDate, end: e.endDate }),
529
551
  showNextMonth: N,
530
552
  showPreviousMonth: m,
531
- dayVariant: (I) => {
553
+ dayVariant: (S) => {
532
554
  if (!e.isRange || me(e.startDate, e.endDate))
533
555
  return F.SINGLE;
534
- if (e.startDate && me(e.startDate, I))
556
+ if (e.startDate && me(e.startDate, S))
535
557
  return F.BEGINNING;
536
- if (e.endDate && me(e.endDate, I))
558
+ if (e.endDate && me(e.endDate, S))
537
559
  return F.END;
538
- if (e.startDate && e.endDate && be(I, { start: e.startDate, end: e.endDate }))
560
+ if (e.startDate && e.endDate && be(S, { start: e.startDate, end: e.endDate }))
539
561
  return F.MIDDLE;
540
562
  },
541
563
  confirmNavigationDate: () => {
542
- t(R.INPUT, l);
564
+ t(R.INPUT, i);
543
565
  },
544
566
  // Events
545
- onDayClicked: (I) => {
546
- t(R.INPUT, I);
567
+ onDayClicked: (S) => {
568
+ t(R.INPUT, S);
547
569
  },
548
570
  listeners: {
549
571
  "keydown:arrow-right": g,
550
- "keydown:arrow-left": f,
572
+ "keydown:arrow-left": D,
551
573
  "keydown:arrow-up": c,
552
- "keydown:arrow-down": s,
553
- "keydown:home": u,
554
- "keydown:end": h,
574
+ "keydown:arrow-down": r,
575
+ "keydown:home": l,
576
+ "keydown:end": y,
555
577
  "keydown:page-up": $,
556
- "keydown:shift-page-up": y,
578
+ "keydown:shift-page-up": h,
557
579
  "keydown:page-down": v,
558
580
  "keydown:shift-page-down": E
559
581
  },
560
582
  // Exposed methods
561
- focusOnDate: L,
583
+ focusOnDate: Y,
562
584
  moveToNextDay: g,
563
- moveToPreviousDay: f,
585
+ moveToPreviousDay: D,
564
586
  moveToPreviousWeek: c,
565
- moveToNextWeek: s,
566
- moveToFirstDayOfWeek: u,
567
- moveToLastDayOfWeek: h,
587
+ moveToNextWeek: r,
588
+ moveToFirstDayOfWeek: l,
589
+ moveToLastDayOfWeek: y,
568
590
  moveToPreviousMonth: $,
569
- moveToPreviousYear: y,
591
+ moveToPreviousYear: h,
570
592
  moveToNextMonth: v,
571
593
  moveToNextYear: E,
572
594
  // Translations
573
595
  t: a
574
596
  };
575
597
  }
576
- }), It = { class: "b-calendar-month__month-selector" }, St = { class: "b-calendar-month__previous" }, Tt = { class: "b-calendar-month__next" }, kt = ["aria-labelledby"], wt = { class: "b-calendar-month__week-header" }, _t = ["colspan"];
577
- function pt(e, t, n, a, o, r) {
578
- const l = te("chevron-left-icon"), i = te("bento-button"), D = te("bento-typography"), N = te("chevron-right-icon"), m = te("calendar-month-day"), g = nt("bento-keyboard-navigation-directive");
579
- return He((O(), w("div", We({ class: "b-calendar-month" }, Ve(e.listeners, !0)), [
580
- p("div", It, [
581
- p("div", St, [
582
- e.shouldShowPreviousMonthButton ? (O(), Z(i, {
598
+ }), St = { class: "b-calendar-month__month-selector" }, It = { class: "b-calendar-month__previous" }, Tt = { class: "b-calendar-month__next" }, pt = ["aria-labelledby"], kt = { class: "b-calendar-month__week-header" }, wt = ["colspan"];
599
+ function _t(e, t, n, a, o, s) {
600
+ const i = te("chevron-left-icon"), u = te("bento-button"), f = te("bento-typography"), N = te("chevron-right-icon"), m = te("calendar-month-day"), g = nt("bento-keyboard-navigation-directive");
601
+ return He((O(), k("div", We({ class: "b-calendar-month" }, Ve(e.listeners, !0)), [
602
+ _("div", St, [
603
+ _("div", It, [
604
+ e.shouldShowPreviousMonthButton ? (O(), J(u, {
583
605
  key: 0,
584
606
  variant: "tertiary",
585
- onClick: t[0] || (t[0] = (f) => e.moveToPreviousMonth(f, !0))
607
+ onClick: t[0] || (t[0] = (D) => e.moveToPreviousMonth(D, !0))
586
608
  }, {
587
609
  iconLeft: V(() => [
588
- W(l, {
610
+ W(i, {
589
611
  "svg-title": e.t("previousMonth")
590
612
  }, null, 8, ["svg-title"])
591
613
  ]),
592
614
  _: 1
593
615
  })) : ae("", !0)
594
616
  ]),
595
- W(D, {
617
+ W(f, {
596
618
  id: e.monthLabelId,
597
619
  el: "h2",
598
620
  variant: "title",
@@ -603,11 +625,11 @@ function pt(e, t, n, a, o, r) {
603
625
  ]),
604
626
  _: 1
605
627
  }, 8, ["id"]),
606
- p("div", Tt, [
607
- e.shouldShowNextMonthButton ? (O(), Z(i, {
628
+ _("div", Tt, [
629
+ e.shouldShowNextMonthButton ? (O(), J(u, {
608
630
  key: 0,
609
631
  variant: "tertiary",
610
- onClick: t[1] || (t[1] = (f) => e.moveToNextMonth(f, !0))
632
+ onClick: t[1] || (t[1] = (D) => e.moveToNextMonth(D, !0))
611
633
  }, {
612
634
  iconLeft: V(() => [
613
635
  W(N, {
@@ -618,74 +640,74 @@ function pt(e, t, n, a, o, r) {
618
640
  })) : ae("", !0)
619
641
  ])
620
642
  ]),
621
- p("table", {
643
+ _("table", {
622
644
  class: "b-calendar-month__month-container",
623
645
  role: "grid",
624
646
  "aria-labelledby": e.monthLabelId
625
647
  }, [
626
- p("thead", null, [
627
- p("tr", wt, [
628
- (O(!0), w(z, null, J(e.daysOfWeek, (f, c) => (O(), w("th", {
648
+ _("thead", null, [
649
+ _("tr", kt, [
650
+ (O(!0), k(Q, null, z(e.daysOfWeek, (D, c) => (O(), k("th", {
629
651
  key: c,
630
652
  class: "b-calendar-month__day-of-week",
631
653
  scope: "col"
632
654
  }, [
633
- W(D, {
655
+ W(f, {
634
656
  class: "b-calendar-month__day-of-week-font",
635
657
  el: "span",
636
658
  variant: "caption"
637
659
  }, {
638
660
  default: V(() => [
639
- Ne(Ee(f), 1)
661
+ Ne(Ee(D), 1)
640
662
  ]),
641
663
  _: 2
642
664
  }, 1024)
643
665
  ]))), 128))
644
666
  ])
645
667
  ]),
646
- p("tbody", null, [
647
- (O(!0), w(z, null, J(e.weeksOfMonth, (f, c) => (O(), w("tr", { key: c }, [
648
- c === 0 && f.length < 7 ? (O(), w("td", {
668
+ _("tbody", null, [
669
+ (O(!0), k(Q, null, z(e.weeksOfMonth, (D, c) => (O(), k("tr", { key: c }, [
670
+ c === 0 && D.length < 7 ? (O(), k("td", {
649
671
  key: 0,
650
- colspan: 7 - f.length
651
- }, null, 8, _t)) : ae("", !0),
652
- (O(!0), w(z, null, J(f, (s, u) => (O(), Z(m, {
672
+ colspan: 7 - D.length
673
+ }, null, 8, wt)) : ae("", !0),
674
+ (O(!0), k(Q, null, z(D, (r, l) => (O(), J(m, {
653
675
  ref_for: !0,
654
- ref: e.addDayRef(s),
655
- key: `calendar-day-${u}`,
656
- day: s,
657
- disabled: e.computedIsDateDisabled(s),
658
- selected: e.isSelectedDate(s),
659
- variant: e.dayVariant(s),
676
+ ref: e.addDayRef(r),
677
+ key: `calendar-day-${l}`,
678
+ day: r,
679
+ disabled: e.computedIsDateDisabled(r),
680
+ selected: e.isSelectedDate(r),
681
+ variant: e.dayVariant(r),
660
682
  onClick: e.onDayClicked,
661
- onMouseover: (h) => e.$emit(e.CalendarMonthEvent.MOUSE_OVER, s),
683
+ onMouseover: (y) => e.$emit(e.CalendarMonthEvent.MOUSE_OVER, r),
662
684
  onKeyup: [
663
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["up", "native"]),
664
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["down", "native"]),
665
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["left", "native"]),
666
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["right", "native"])
685
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["up", "native"]),
686
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["down", "native"]),
687
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["left", "native"]),
688
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["right", "native"])
667
689
  ]
668
690
  }, null, 8, ["day", "disabled", "selected", "variant", "onClick", "onMouseover", "onKeyup"]))), 128))
669
691
  ]))), 128)),
670
- e.weeksOfMonth?.length < 6 ? (O(!0), w(z, { key: 0 }, J(6 - e.weeksOfMonth?.length, (f) => (O(), w("tr", {
671
- key: `calendar month filler row ${f}`
692
+ e.weeksOfMonth?.length < 6 ? (O(!0), k(Q, { key: 0 }, z(6 - e.weeksOfMonth?.length, (D) => (O(), k("tr", {
693
+ key: `calendar month filler row ${D}`
672
694
  }, t[2] || (t[2] = [
673
- p("td", {
695
+ _("td", {
674
696
  "aria-hidden": "true",
675
697
  class: "b-calendar-month__empty-cell-filler",
676
698
  colspan: 7
677
699
  }, null, -1)
678
700
  ])))), 128)) : ae("", !0)
679
701
  ])
680
- ], 8, kt)
702
+ ], 8, pt)
681
703
  ], 16)), [
682
704
  [g]
683
705
  ]);
684
706
  }
685
- const Ue = /* @__PURE__ */ De(Ot, [["render", pt], ["__scopeId", "data-v-6417cfb0"]]);
707
+ const Ue = /* @__PURE__ */ fe(Ot, [["render", _t], ["__scopeId", "data-v-6417cfb0"]]);
686
708
  var B = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(B || {}), H = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_MONTH = "current-month", e.DISABLED = "disabled", e))(H || {}), $e = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))($e || {});
687
- const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__wrapper" }, Yt = {}, At = /* @__PURE__ */ fe({
688
- ...Yt,
709
+ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__wrapper" }, Lt = {}, At = /* @__PURE__ */ De({
710
+ ...Lt,
689
711
  __name: "calendar-year-month",
690
712
  props: {
691
713
  month: {},
@@ -695,10 +717,10 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
695
717
  },
696
718
  emits: ["click", "mouseover"],
697
719
  setup(e, { emit: t }) {
698
- const n = e, a = t, o = S(() => {
699
- const i = /* @__PURE__ */ new Date();
700
- return n.month.getMonth() === i.getMonth() && n.month.getFullYear() === i.getFullYear();
701
- }), r = S(() => ({
720
+ const n = e, a = t, o = I(() => {
721
+ const u = /* @__PURE__ */ new Date();
722
+ return n.month.getMonth() === u.getMonth() && n.month.getFullYear() === u.getFullYear();
723
+ }), s = I(() => ({
702
724
  // Variants
703
725
  [`b-calendar-year-month--${H.BEGINNING}`]: n.variant === B.BEGINNING,
704
726
  [`b-calendar-year-month--${H.MIDDLE}`]: n.variant === B.MIDDLE,
@@ -711,33 +733,40 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
711
733
  [`b-calendar-year-month--${H.CURRENT_MONTH}`]: o.value,
712
734
  // Disabled
713
735
  [`b-calendar-year-month--${H.DISABLED}`]: n.disabled
714
- })), l = (i, D) => {
715
- n.disabled ? (i.preventDefault(), i.stopPropagation()) : a($e.CLICK, D, n.month);
736
+ })), i = (u, f) => {
737
+ n.disabled ? (u.preventDefault(), u.stopPropagation()) : a($e.CLICK, f, n.month);
716
738
  };
717
- return (i, D) => (O(), w("td", {
718
- class: Ye(["b-calendar-year-month", r.value]),
719
- tabindex: i.selected ? "0" : "-1",
720
- "aria-selected": i.selected ? i.selected : void 0,
721
- onClick: D[0] || (D[0] = (N) => l(N, i.month)),
722
- onMouseover: D[1] || (D[1] = (N) => a(_($e).MOUSE_OVER)),
723
- onKeydown: D[2] || (D[2] = ne((N) => l(N, i.month), ["space", "enter"]))
739
+ return (u, f) => (O(), k("td", {
740
+ class: Le(["b-calendar-year-month", s.value]),
741
+ tabindex: u.selected ? "0" : "-1",
742
+ "aria-selected": u.selected ? u.selected : void 0,
743
+ onClick: f[0] || (f[0] = (N) => i(N, u.month)),
744
+ onMouseover: f[1] || (f[1] = (N) => a(w($e).MOUSE_OVER)),
745
+ onKeydown: f[2] || (f[2] = ne((N) => i(N, u.month), ["space", "enter"]))
724
746
  }, [
725
- p("div", $t, [
726
- W(_(rt), {
747
+ _("div", $t, [
748
+ W(w(st), {
727
749
  class: "b-calendar-year-month__label",
728
- date: i.month,
729
- format: _(lt).SHORT_MONTH
750
+ date: u.month,
751
+ format: w(it).SHORT_MONTH
730
752
  }, null, 8, ["date", "format"])
731
753
  ])
732
- ], 42, Lt));
754
+ ], 42, Yt));
733
755
  }
734
- }), Rt = /* @__PURE__ */ De(At, [["__scopeId", "data-v-ad9a13f2"]]), et = {
756
+ }), Rt = /* @__PURE__ */ fe(At, [["__scopeId", "data-v-ad9a13f2"]]), et = {
757
+ "de-DE": { nextYear: "Nächstes Jahr", previousYear: "Vorjahr" },
758
+ "en-GB": { nextYear: "Next year", previousYear: "Previous year" },
735
759
  "en-US": { nextYear: "Next year", previousYear: "Previous year" },
760
+ "es-ES": { nextYear: "Año siguiente", previousYear: "Año anterior" },
761
+ "es-MX": { nextYear: "Año siguiente", previousYear: "Año anterior" },
762
+ "fr-FR": { nextYear: "Année suivante", previousYear: "Année précédente" },
763
+ "it-IT": { nextYear: "Il prossimo anno", previousYear: "Anno precedente" },
736
764
  "ja-JP": { nextYear: "来年", previousYear: "前年" },
737
- "pt-BR": { nextYear: "Ano seguinte", previousYear: "Ano anterior" }
765
+ "pt-BR": { nextYear: "No próximo ano", previousYear: "Ano anterior" },
766
+ "zh-CN": { nextYear: "明年", previousYear: "上年度" }
738
767
  }, Ft = { class: "b-calendar-year__year-selector" }, Pt = { class: "b-calendar-year__previous" }, Bt = { class: "b-calendar-year__next" }, Ct = ["aria-labelledby"], Gt = {
739
768
  i18n: { messages: et }
740
- }, Ut = /* @__PURE__ */ fe({
769
+ }, Ut = /* @__PURE__ */ De({
741
770
  ...Gt,
742
771
  __name: "calendar-year",
743
772
  props: {
@@ -752,67 +781,67 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
752
781
  },
753
782
  emits: ["input", "mouseover", "nextMonth", "previousMonth"],
754
783
  setup(e, { expose: t, emit: n }) {
755
- const a = qe("bento-date-picker-year-label"), o = e, r = n, { t: l } = Re({ messages: et }), i = (b) => o.min && b < o.min || o.max && b > o.max || o.isDateDisabled?.(b), D = S(() => ["first", "unique"].includes(o.position)), N = S(() => ["last", "unique"].includes(o.position)), {
784
+ const a = qe("bento-date-picker-year-label"), o = e, s = n, { t: i } = Re({ messages: et }), u = (b) => o.min && b < o.min || o.max && b > o.max || o.isDateDisabled?.(b), f = I(() => ["first", "unique"].includes(o.position)), N = I(() => ["last", "unique"].includes(o.position)), {
756
785
  internalDate: m,
757
786
  // Calendar refs
758
787
  addDayRef: g,
759
788
  // Day navigation
760
- moveToPreviousMonth: f,
789
+ moveToPreviousMonth: D,
761
790
  moveToPreviousYear: c,
762
- moveToNextMonth: s,
763
- moveToNextYear: u,
764
- moveToFirstMonthOfYear: h,
791
+ moveToNextMonth: r,
792
+ moveToNextYear: l,
793
+ moveToFirstMonthOfYear: y,
765
794
  moveToLastMonthOfYear: $,
766
- focusOnDate: y
767
- } = xe(
795
+ focusOnDate: h
796
+ } = Ze(
768
797
  {
769
798
  currentSelectedDate: P(o, "startDate"),
770
799
  month: P(o, "year"),
771
- isDateDisabled: i
800
+ isDateDisabled: u
772
801
  },
773
- r
802
+ s
774
803
  );
775
- t({ focusOnDate: y });
776
- const v = S(() => {
804
+ t({ focusOnDate: h });
805
+ const v = I(() => {
777
806
  const b = [];
778
807
  let C = 0;
779
- for (let Y = 0; Y < 3; Y++) {
808
+ for (let L = 0; L < 3; L++) {
780
809
  const q = [];
781
810
  for (let A = 0; A < 4; A++)
782
811
  q.push(new Date(o.year.getFullYear(), C++, 1));
783
812
  b.push(q);
784
813
  }
785
814
  return b;
786
- }), E = (b) => !o.isRange || ye(o.startDate, o.endDate) ? B.SINGLE : o.startDate && ye(o.startDate, b) ? B.BEGINNING : o.endDate && ye(o.endDate, b) ? B.END : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }) ? B.MIDDLE : null, L = (b) => m.value && ye(m.value, b) ? !0 : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }), le = (b) => {
787
- r("input", b);
815
+ }), E = (b) => !o.isRange || he(o.startDate, o.endDate) ? B.SINGLE : o.startDate && he(o.startDate, b) ? B.BEGINNING : o.endDate && he(o.endDate, b) ? B.END : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }) ? B.MIDDLE : null, Y = (b) => m.value && he(m.value, b) ? !0 : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }), ie = (b) => {
816
+ s("input", b);
788
817
  }, ve = o.isRange ? {} : {
789
- "keydown:arrow-right": s,
790
- "keydown:arrow-left": f,
791
- "keydown:arrow-up": (b) => f(b, !1, 4),
792
- "keydown:arrow-down": (b) => s(b, !1, 4),
793
- "keydown:home": h,
818
+ "keydown:arrow-right": r,
819
+ "keydown:arrow-left": D,
820
+ "keydown:arrow-up": (b) => D(b, !1, 4),
821
+ "keydown:arrow-down": (b) => r(b, !1, 4),
822
+ "keydown:home": y,
794
823
  "keydown:end": $,
795
824
  "keydown:page-up": c,
796
- "keydown:page-down": u
825
+ "keydown:page-down": l
797
826
  };
798
- return (b, C) => He((O(), w("div", We({ class: "b-calendar-year" }, Ve(_(ve), !0)), [
799
- p("div", Ft, [
800
- p("div", Pt, [
801
- D.value ? (O(), Z(we, {
827
+ return (b, C) => He((O(), k("div", We({ class: "b-calendar-year" }, Ve(w(ve), !0)), [
828
+ _("div", Ft, [
829
+ _("div", Pt, [
830
+ f.value ? (O(), J(ke, {
802
831
  key: 0,
803
832
  variant: "tertiary",
804
- onClick: C[0] || (C[0] = (Y) => _(c)(Y, !0))
833
+ onClick: C[0] || (C[0] = (L) => w(c)(L, !0))
805
834
  }, {
806
835
  iconLeft: V(() => [
807
- W(_(Xe), {
808
- "svg-title": _(l)("previousYear")
836
+ W(w(Xe), {
837
+ "svg-title": w(i)("previousYear")
809
838
  }, null, 8, ["svg-title"])
810
839
  ]),
811
840
  _: 1
812
841
  })) : ae("", !0)
813
842
  ]),
814
- W(_(Ae), {
815
- id: _(a),
843
+ W(w(Ae), {
844
+ id: w(a),
816
845
  el: "h2",
817
846
  variant: "title",
818
847
  "aria-live": "polite"
@@ -822,52 +851,52 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
822
851
  ]),
823
852
  _: 1
824
853
  }, 8, ["id"]),
825
- p("div", Bt, [
826
- N.value ? (O(), Z(we, {
854
+ _("div", Bt, [
855
+ N.value ? (O(), J(ke, {
827
856
  key: 0,
828
857
  variant: "tertiary",
829
- onClick: C[1] || (C[1] = (Y) => _(u)(Y, !0))
858
+ onClick: C[1] || (C[1] = (L) => w(l)(L, !0))
830
859
  }, {
831
860
  iconLeft: V(() => [
832
- W(_(Je), {
833
- "svg-title": _(l)("nextYear")
861
+ W(w(ze), {
862
+ "svg-title": w(i)("nextYear")
834
863
  }, null, 8, ["svg-title"])
835
864
  ]),
836
865
  _: 1
837
866
  })) : ae("", !0)
838
867
  ])
839
868
  ]),
840
- p("table", {
869
+ _("table", {
841
870
  class: "b-calendar-year__year-container",
842
871
  role: "grid",
843
- "aria-labelledby": _(a)
872
+ "aria-labelledby": w(a)
844
873
  }, [
845
- p("tbody", null, [
846
- (O(!0), w(z, null, J(v.value, (Y, q) => (O(), w("tr", { key: q }, [
847
- (O(!0), w(z, null, J(Y, (A, d) => (O(), Z(Rt, {
874
+ _("tbody", null, [
875
+ (O(!0), k(Q, null, z(v.value, (L, q) => (O(), k("tr", { key: q }, [
876
+ (O(!0), k(Q, null, z(L, (A, d) => (O(), J(Rt, {
848
877
  ref_for: !0,
849
- ref: _(g)(A),
878
+ ref: w(g)(A),
850
879
  key: `calendar-month-${d}`,
851
880
  month: A,
852
- disabled: i(A),
853
- selected: L(A),
881
+ disabled: u(A),
882
+ selected: Y(A),
854
883
  variant: E(A),
855
- onClick: le,
856
- onMouseover: (M) => r("mouseover", A)
884
+ onClick: ie,
885
+ onMouseover: (M) => s("mouseover", A)
857
886
  }, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
858
887
  ]))), 128))
859
888
  ])
860
889
  ], 8, Ct)
861
890
  ], 16)), [
862
- [_(Qe)]
891
+ [w(xe)]
863
892
  ]);
864
893
  }
865
- }), je = /* @__PURE__ */ De(Ut, [["__scopeId", "data-v-5ec13be4"]]), jt = ({ selectedDate: e }, t) => {
894
+ }), je = /* @__PURE__ */ fe(Ut, [["__scopeId", "data-v-5ec13be4"]]), jt = ({ selectedDate: e }, t) => {
866
895
  const n = Ke({
867
896
  startDate: null,
868
897
  endDate: null
869
898
  });
870
- return se(
899
+ return re(
871
900
  () => e.value,
872
901
  () => {
873
902
  n.startDate = e.value, n.endDate = void 0;
@@ -884,130 +913,130 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
884
913
  }
885
914
  };
886
915
  }, Ht = (e) => {
887
- const t = (m, g, f, c) => {
888
- let s = he(m, { weekStartsOn: e }), u = Me(g || m, { weekStartsOn: e });
889
- const h = f && s < f, $ = c && u > c;
890
- return h && (s = he(f, { weekStartsOn: e })), $ && (u = Me(c, { weekStartsOn: e })), s > u && (h ? u = Me(s, { weekStartsOn: e }) : s = he(u, { weekStartsOn: e })), { startDate: s, endDate: u };
891
- }, n = (m, g, f, c) => {
892
- let s = ge(m), u = Ie(g || m);
893
- const h = f && s < f, $ = c && u > c;
894
- return h && (s = ge(f)), $ && (u = Ie(c)), s > u && (h ? u = Ie(s) : s = ge(u)), { startDate: s, endDate: u };
895
- }, a = (m, g, f, c) => {
896
- let s = Se(m), u = Te(g || m);
897
- const h = f instanceof Date && s < f, $ = c instanceof Date && u > c;
898
- return h && (s = Se(f)), $ && (u = Te(c)), s > u && (h ? u = Te(s) : s = Se(u)), { startDate: s, endDate: u };
916
+ const t = (m, g, D, c) => {
917
+ let r = ye(m, { weekStartsOn: e }), l = Me(g || m, { weekStartsOn: e });
918
+ const y = D && r < D, $ = c && l > c;
919
+ return y && (r = ye(D, { weekStartsOn: e })), $ && (l = Me(c, { weekStartsOn: e })), r > l && (y ? l = Me(r, { weekStartsOn: e }) : r = ye(l, { weekStartsOn: e })), { startDate: r, endDate: l };
920
+ }, n = (m, g, D, c) => {
921
+ let r = ge(m), l = Se(g || m);
922
+ const y = D && r < D, $ = c && l > c;
923
+ return y && (r = ge(D)), $ && (l = Se(c)), r > l && (y ? l = Se(r) : r = ge(l)), { startDate: r, endDate: l };
924
+ }, a = (m, g, D, c) => {
925
+ let r = Ie(m), l = Te(g || m);
926
+ const y = D instanceof Date && r < D, $ = c instanceof Date && l > c;
927
+ return y && (r = Ie(D)), $ && (l = Te(c)), r > l && (y ? l = Te(r) : r = Ie(l)), { startDate: r, endDate: l };
899
928
  };
900
929
  return {
901
930
  adjustDateForWeekly: t,
902
931
  adjustDateForMonthly: n,
903
932
  adjustDateForQuarterly: a,
904
- adjustStartDateInputForWeekly: (m, g, f, c) => {
905
- const { startDate: s } = t(new Date(m), null, f, c);
906
- return g(s);
933
+ adjustStartDateInputForWeekly: (m, g, D, c) => {
934
+ const { startDate: r } = t(new Date(m), null, D, c);
935
+ return g(r);
907
936
  },
908
- adjustEndDateInputForWeekly: (m, g, f, c) => {
909
- const { endDate: s } = t(new Date(m), null, f, c);
910
- return g(s);
937
+ adjustEndDateInputForWeekly: (m, g, D, c) => {
938
+ const { endDate: r } = t(new Date(m), null, D, c);
939
+ return g(r);
911
940
  },
912
- adjustStartDateInputForMonthly: (m, g, f, c) => {
913
- const { startDate: s } = n(new Date(m), null, f, c);
914
- return g(s);
941
+ adjustStartDateInputForMonthly: (m, g, D, c) => {
942
+ const { startDate: r } = n(new Date(m), null, D, c);
943
+ return g(r);
915
944
  },
916
- adjustEndDateInputForMonthly: (m, g, f, c) => {
917
- const { endDate: s } = n(new Date(m), null, f, c);
918
- return g(s);
945
+ adjustEndDateInputForMonthly: (m, g, D, c) => {
946
+ const { endDate: r } = n(new Date(m), null, D, c);
947
+ return g(r);
919
948
  },
920
- adjustStartDateInputForQuarterly: (m, g, f, c) => {
921
- const { startDate: s } = a(new Date(m), null, f, c);
922
- return g(s);
949
+ adjustStartDateInputForQuarterly: (m, g, D, c) => {
950
+ const { startDate: r } = a(new Date(m), null, D, c);
951
+ return g(r);
923
952
  },
924
- adjustEndDateInputForQuarterly: (m, g, f, c) => {
925
- const { endDate: s } = a(new Date(m), null, f, c);
926
- return g(s);
953
+ adjustEndDateInputForQuarterly: (m, g, D, c) => {
954
+ const { endDate: r } = a(new Date(m), null, D, c);
955
+ return g(r);
927
956
  }
928
957
  };
929
- }, Wt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: r, max: l }, i) => {
930
- const { adjustDateForWeekly: m, adjustDateForMonthly: g, adjustDateForQuarterly: f } = Ht(o), c = Ke({
958
+ }, Wt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: s, max: i }, u) => {
959
+ const { adjustDateForWeekly: m, adjustDateForMonthly: g, adjustDateForQuarterly: D } = Ht(o), c = Ke({
931
960
  startDate: null,
932
961
  endDate: null
933
- }), s = Q(null);
934
- se(
962
+ }), r = x(null);
963
+ re(
935
964
  () => e.value,
936
965
  () => {
937
- let { startDate: y = null, endDate: v = null } = e.value || {};
938
- y && (y = ee(y)), v && (v = ee(v)), !(y && t && t(y) || v && t && t(v) || y && v && ct(y, v)) && (c.startDate = y, c.endDate = v);
966
+ let { startDate: h = null, endDate: v = null } = e.value || {};
967
+ h && (h = ee(h)), v && (v = ee(v)), !(h && t && t(h) || v && t && t(v) || h && v && ct(h, v)) && (c.startDate = h, c.endDate = v);
939
968
  },
940
969
  { immediate: !0, deep: !0 }
941
970
  );
942
- const u = (y, v, E) => {
943
- if (c.startDate = y, c.endDate = v, n.value) {
944
- const L = it(v, y) - n.value;
945
- L > 0 && (E < 1 ? (c.startDate = y, c.endDate = _e(v, L)) : (c.startDate = ce(y, L), c.endDate = v));
971
+ const l = (h, v, E) => {
972
+ if (c.startDate = h, c.endDate = v, n.value) {
973
+ const Y = ut(v, h) - n.value;
974
+ Y > 0 && (E < 1 ? (c.startDate = h, c.endDate = we(v, Y)) : (c.startDate = ce(h, Y), c.endDate = v));
946
975
  }
947
- i(K.START_DATE_SELECTED, c.startDate), i(K.END_DATE_SELECTED, c.endDate);
948
- }, h = (y) => {
949
- if (!(!s.value || t && t(y)))
950
- if (ft(y, s.value)) {
976
+ u(K.START_DATE_SELECTED, c.startDate), u(K.END_DATE_SELECTED, c.endDate);
977
+ }, y = (h) => {
978
+ if (!(!r.value || t && t(h)))
979
+ if (Dt(h, r.value)) {
951
980
  if (a?.value?.type === "weekly") {
952
- const { startDate: v, endDate: E } = m(y, s.value, r.value, l.value);
953
- u(v, E, -1);
981
+ const { startDate: v, endDate: E } = m(h, r.value, s.value, i.value);
982
+ l(v, E, -1);
954
983
  return;
955
984
  }
956
985
  if (a?.value?.type === "monthly") {
957
- const { startDate: v, endDate: E } = g(y, s.value, r.value, l.value);
958
- u(v, E, -1);
986
+ const { startDate: v, endDate: E } = g(h, r.value, s.value, i.value);
987
+ l(v, E, -1);
959
988
  return;
960
989
  }
961
990
  if (a?.value?.type === "quarterly") {
962
- const { startDate: v, endDate: E } = f(y, s.value, r.value, l.value);
963
- u(v, E, -1);
991
+ const { startDate: v, endDate: E } = D(h, r.value, s.value, i.value);
992
+ l(v, E, -1);
964
993
  return;
965
994
  }
966
- u(y, s.value, -1);
995
+ l(h, r.value, -1);
967
996
  } else {
968
997
  if (a?.value?.type === "weekly") {
969
- const { startDate: v, endDate: E } = m(s.value, y, r.value, l.value);
970
- u(v, E, 1);
998
+ const { startDate: v, endDate: E } = m(r.value, h, s.value, i.value);
999
+ l(v, E, 1);
971
1000
  return;
972
1001
  }
973
1002
  if (a?.value?.type === "monthly") {
974
- const { startDate: v, endDate: E } = g(s.value, y, r.value, l.value);
975
- u(v, E, 1);
1003
+ const { startDate: v, endDate: E } = g(r.value, h, s.value, i.value);
1004
+ l(v, E, 1);
976
1005
  return;
977
1006
  }
978
1007
  if (a?.value?.type === "quarterly") {
979
- const { startDate: v, endDate: E } = f(s.value, y, r.value, l.value);
980
- u(v, E, 1);
1008
+ const { startDate: v, endDate: E } = D(r.value, h, s.value, i.value);
1009
+ l(v, E, 1);
981
1010
  return;
982
1011
  }
983
- u(s.value, y, 1);
1012
+ l(r.value, h, 1);
984
1013
  }
985
1014
  };
986
1015
  return {
987
1016
  internalValue: c,
988
- onDateInput: (y) => {
989
- if (s.value)
990
- s.value = null, i(K.INPUT, c);
1017
+ onDateInput: (h) => {
1018
+ if (r.value)
1019
+ r.value = null, u(K.INPUT, c);
991
1020
  else {
992
- let v = y;
1021
+ let v = h;
993
1022
  if (a?.value?.type === "weekly") {
994
- const { startDate: E, endDate: L } = m(y);
995
- v = E, u(v, L);
1023
+ const { startDate: E, endDate: Y } = m(h);
1024
+ v = E, l(v, Y);
996
1025
  }
997
1026
  if (a?.value?.type === "monthly") {
998
- const { startDate: E, endDate: L } = g(y);
999
- v = E, u(v, L);
1027
+ const { startDate: E, endDate: Y } = g(h);
1028
+ v = E, l(v, Y);
1000
1029
  }
1001
1030
  if (a?.value?.type === "quarterly") {
1002
- const { startDate: E, endDate: L } = f(y);
1003
- v = E, u(v, L);
1031
+ const { startDate: E, endDate: Y } = D(h);
1032
+ v = E, l(v, Y);
1004
1033
  }
1005
- s.value = v, h(v);
1034
+ r.value = v, y(v);
1006
1035
  }
1007
1036
  },
1008
- onMouseOver: h
1037
+ onMouseOver: y
1009
1038
  };
1010
- }, Vt = fe({
1039
+ }, Vt = De({
1011
1040
  name: "calendar",
1012
1041
  components: { CalendarMonth: Ue, CalendarYear: je },
1013
1042
  props: {
@@ -1077,29 +1106,29 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1077
1106
  variant: {
1078
1107
  type: String,
1079
1108
  default: "day",
1080
- validator: (e) => Object.values(Le).includes(e)
1109
+ validator: (e) => Object.values(Ye).includes(e)
1081
1110
  }
1082
1111
  },
1083
1112
  emit: [K.INPUT, K.START_DATE_SELECTED, K.END_DATE_SELECTED],
1084
1113
  setup(e, { emit: t }) {
1085
- const n = Q(null), a = Q();
1086
- se(
1114
+ const n = x(null), a = x();
1115
+ re(
1087
1116
  () => e.value,
1088
1117
  () => {
1089
1118
  if (e.isRange)
1090
1119
  a.value = e?.showEndDateOnOpen && e.value?.endDate ? e.value?.endDate : e.value?.startDate || /* @__PURE__ */ new Date();
1091
1120
  else {
1092
- const s = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1093
- a.value = e.value || s;
1121
+ const r = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1122
+ a.value = e.value || r;
1094
1123
  }
1095
1124
  },
1096
1125
  { immediate: !0, deep: !0 }
1097
1126
  );
1098
- const o = S(
1099
- () => e.variant === Le.MONTH ? je : Ue
1100
- ), r = S(() => ({
1127
+ const o = I(
1128
+ () => e.variant === Ye.MONTH ? je : Ue
1129
+ ), s = I(() => ({
1101
1130
  "b-calendar__range": e.isRange
1102
- })), { internalValue: l, onDateInput: i, onMouseOver: D } = e.isRange ? Wt(
1131
+ })), { internalValue: i, onDateInput: u, onMouseOver: f } = e.isRange ? Wt(
1103
1132
  {
1104
1133
  selectedDate: P(e, "value"),
1105
1134
  isDateDisabled: e.isDateDisabled,
@@ -1116,12 +1145,12 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1116
1145
  firstDayOfWeek: e.firstDayOfWeek
1117
1146
  },
1118
1147
  t
1119
- ), N = (s) => e.numberOfMonths === 1 ? oe.UNIQUE : s === 0 ? oe.FIRST : s === e.numberOfMonths - 1 ? oe.LAST : oe.MIDDLE, m = S(() => (s) => {
1120
- const u = e?.showEndDateOnOpen && e.isRange ? de(a.value, e.numberOfMonths - 1) : a.value;
1121
- return x(u, s);
1122
- }), g = S(() => (s) => {
1123
- const u = e?.showEndDateOnOpen ? yt(a.value, e.numberOfMonths - 1) : a.value;
1124
- return Ze(u, s);
1148
+ ), N = (r) => e.numberOfMonths === 1 ? oe.UNIQUE : r === 0 ? oe.FIRST : r === e.numberOfMonths - 1 ? oe.LAST : oe.MIDDLE, m = I(() => (r) => {
1149
+ const l = e?.showEndDateOnOpen && e.isRange ? de(a.value, e.numberOfMonths - 1) : a.value;
1150
+ return Z(l, r);
1151
+ }), g = I(() => (r) => {
1152
+ const l = e?.showEndDateOnOpen ? ht(a.value, e.numberOfMonths - 1) : a.value;
1153
+ return Je(l, r);
1125
1154
  });
1126
1155
  return {
1127
1156
  // Refs
@@ -1129,37 +1158,37 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1129
1158
  // Values
1130
1159
  baseDate: a,
1131
1160
  calendarComponent: o,
1132
- conditionalClasses: r,
1133
- internalValue: l,
1161
+ conditionalClasses: s,
1162
+ internalValue: i,
1134
1163
  // Methods
1135
1164
  calculateOffsetMonth: m,
1136
1165
  calculateOffsetYear: g,
1137
1166
  calendarPosition: N,
1138
1167
  // Events
1139
- onDateInput: i,
1140
- onMouseOver: D,
1141
- calculateNextMonths: (s = 1) => {
1142
- a.value = x(a.value, s);
1168
+ onDateInput: u,
1169
+ onMouseOver: f,
1170
+ calculateNextMonths: (r = 1) => {
1171
+ a.value = Z(a.value, r);
1143
1172
  },
1144
- calculatePreviousMonths: (s = 1) => {
1145
- a.value = de(a.value, s);
1173
+ calculatePreviousMonths: (r = 1) => {
1174
+ a.value = de(a.value, r);
1146
1175
  }
1147
1176
  };
1148
1177
  }
1149
1178
  });
1150
- function Kt(e, t, n, a, o, r) {
1151
- return O(), w("div", {
1152
- class: Ye(["b-calendar", e.conditionalClasses])
1179
+ function Kt(e, t, n, a, o, s) {
1180
+ return O(), k("div", {
1181
+ class: Le(["b-calendar", e.conditionalClasses])
1153
1182
  }, [
1154
- (O(!0), w(z, null, J(e.numberOfMonths, (l, i) => (O(), Z(at(e.calendarComponent), {
1183
+ (O(!0), k(Q, null, z(e.numberOfMonths, (i, u) => (O(), J(at(e.calendarComponent), {
1155
1184
  ref_for: !0,
1156
1185
  ref: e.numberOfMonths === 1 ? "calendarRef" : null,
1157
- key: `calendar-${i}`,
1186
+ key: `calendar-${u}`,
1158
1187
  "first-day-of-week": e.firstDayOfWeek,
1159
1188
  "is-date-disabled": e.isDateDisabled,
1160
- month: e.calculateOffsetMonth(i),
1161
- year: e.calculateOffsetYear(i),
1162
- position: e.calendarPosition(i),
1189
+ month: e.calculateOffsetMonth(u),
1190
+ year: e.calculateOffsetYear(u),
1191
+ position: e.calendarPosition(u),
1163
1192
  min: e.min,
1164
1193
  max: e.max,
1165
1194
  "is-range": e.isRange,
@@ -1174,28 +1203,31 @@ function Kt(e, t, n, a, o, r) {
1174
1203
  }, null, 40, ["first-day-of-week", "is-date-disabled", "month", "year", "position", "min", "max", "is-range", "start-date", "end-date", "granularity", "onInput", "onMouseover", "onChangeDay", "onNextMonth", "onPreviousMonth"]))), 128))
1175
1204
  ], 2);
1176
1205
  }
1177
- const ln = /* @__PURE__ */ De(Vt, [["render", Kt], ["__scopeId", "data-v-0efc3efc"]]);
1206
+ const cn = /* @__PURE__ */ fe(Vt, [["render", Kt], ["__scopeId", "data-v-0efc3efc"]]);
1178
1207
  export {
1179
1208
  X as C,
1180
- Le as a,
1181
- ln as b,
1209
+ Ye as a,
1210
+ cn as b,
1182
1211
  K as c,
1183
1212
  oe as d,
1184
- x as e,
1185
- Se as f,
1186
- pe as g,
1187
- ee as h,
1188
- me as i,
1189
- ce as j,
1190
- Me as k,
1191
- _e as l,
1192
- de as m,
1193
- Te as n,
1194
- rn as o,
1195
- Dt as p,
1196
- ut as q,
1197
- Ce as r,
1213
+ un as e,
1214
+ ln as f,
1215
+ _e as g,
1216
+ Z as h,
1217
+ Ie as i,
1218
+ me as j,
1219
+ ee as k,
1220
+ ce as l,
1221
+ Me as m,
1222
+ we as n,
1223
+ de as o,
1224
+ dn as p,
1225
+ Te as q,
1226
+ sn as r,
1198
1227
  ge as s,
1199
- Ht as u
1228
+ ft as t,
1229
+ Ht as u,
1230
+ lt as v,
1231
+ Ce as w
1200
1232
  };
1201
- //# sourceMappingURL=calendar.DcCqkSNJ.js.map
1233
+ //# sourceMappingURL=calendar.qm-kFNQv.js.map