@adyen/bento-vue3 1.86.1 → 1.87.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 (277) hide show
  1. package/dist/@types/index.d.ts +12337 -12402
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/anchor-scroller.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/anchor-scroller.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/button-actions.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox-group.css +1 -1
  12. package/dist/assets/checkbox.css +1 -1
  13. package/dist/assets/controls-group.css +1 -1
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-picker.css +1 -1
  16. package/dist/assets/date-range-picker.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown-default-textbox.css +1 -1
  19. package/dist/assets/dropdown.css +1 -1
  20. package/dist/assets/error-message.css +1 -1
  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-phone-number.css +1 -1
  25. package/dist/assets/input-field.css +1 -1
  26. package/dist/assets/inspector.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/pagination.css +1 -1
  29. package/dist/assets/radio-group.css +1 -1
  30. package/dist/assets/rich-text-editor.css +1 -1
  31. package/dist/assets/selection-card-group.css +1 -1
  32. package/dist/assets/sidepanel.css +1 -1
  33. package/dist/assets/textarea.css +1 -1
  34. package/dist/button.js +1 -1
  35. package/dist/card.js +1 -1
  36. package/dist/checkbox.js +2 -2
  37. package/dist/chunks/{action-bar.g7rM3wUc.js → action-bar.Ho_fXeXK.js} +4 -4
  38. package/dist/chunks/{action-bar.g7rM3wUc.js.map → action-bar.Ho_fXeXK.js.map} +1 -1
  39. package/dist/chunks/{ai-tag.UlRkq54l.js → ai-tag.DVCW-_vD.js} +2 -2
  40. package/dist/chunks/{ai-tag.UlRkq54l.js.map → ai-tag.DVCW-_vD.js.map} +1 -1
  41. package/dist/chunks/anchor-scroller.BctgW0se.js +214 -0
  42. package/dist/chunks/anchor-scroller.BctgW0se.js.map +1 -0
  43. package/dist/chunks/{base-modal.D5HrjwL1.js → base-modal.gZAtk-xP.js} +17 -17
  44. package/dist/chunks/{base-modal.D5HrjwL1.js.map → base-modal.gZAtk-xP.js.map} +1 -1
  45. package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js → button-actions-with-menu.Tba1ME79.js} +3 -3
  46. package/dist/chunks/{button-actions-with-menu.DBqA3Ws5.js.map → button-actions-with-menu.Tba1ME79.js.map} +1 -1
  47. package/dist/chunks/{button-actions.BH-J7dux.js → button-actions.BYBpjNqy.js} +182 -180
  48. package/dist/chunks/button-actions.BYBpjNqy.js.map +1 -0
  49. package/dist/chunks/{calendar.DzeJoNc2.js → calendar.vM3abC8y.js} +401 -410
  50. package/dist/chunks/calendar.vM3abC8y.js.map +1 -0
  51. package/dist/chunks/{card.DcXXdxWL.js → card.Cw63i7Ul.js} +2 -2
  52. package/dist/chunks/{card.DcXXdxWL.js.map → card.Cw63i7Ul.js.map} +1 -1
  53. package/dist/chunks/{checkbox-group.Bh_aqKoA.js → checkbox-group.ODQy-ICn.js} +42 -41
  54. package/dist/chunks/checkbox-group.ODQy-ICn.js.map +1 -0
  55. package/dist/chunks/{checkbox.7kpOXm-b.js → checkbox.C3Ewfygy.js} +79 -81
  56. package/dist/chunks/checkbox.C3Ewfygy.js.map +1 -0
  57. package/dist/chunks/{code-snippet.UIqVTv4U.js → code-snippet.Dl1MEedz.js} +4 -4
  58. package/dist/chunks/{code-snippet.UIqVTv4U.js.map → code-snippet.Dl1MEedz.js.map} +1 -1
  59. package/dist/chunks/constructNow.CIc7d13I.js +8 -0
  60. package/dist/chunks/{constructNow.B8T1ljs6.js.map → constructNow.CIc7d13I.js.map} +1 -1
  61. package/dist/chunks/{controls-group.Dip3WAKV.js → controls-group.Bu5lNTyH.js} +22 -28
  62. package/dist/chunks/controls-group.Bu5lNTyH.js.map +1 -0
  63. package/dist/chunks/{copy.ByyQlckP.js → copy.C_BCNHYQ.js} +3 -3
  64. package/dist/chunks/{copy.ByyQlckP.js.map → copy.C_BCNHYQ.js.map} +1 -1
  65. package/dist/chunks/{dashboard-section.CIHtXoeW.js → dashboard-section.CgoLquLP.js} +3 -3
  66. package/dist/chunks/{dashboard-section.CIHtXoeW.js.map → dashboard-section.CgoLquLP.js.map} +1 -1
  67. package/dist/chunks/{dashed-underline.CLwPU-C2.js → dashed-underline.wbRHATeE.js} +3 -3
  68. package/dist/chunks/{dashed-underline.CLwPU-C2.js.map → dashed-underline.wbRHATeE.js.map} +1 -1
  69. package/dist/chunks/{data-grid-template.BTpSfkQt.js → data-grid-template.D40V1cmi.js} +3 -3
  70. package/dist/chunks/{data-grid-template.BTpSfkQt.js.map → data-grid-template.D40V1cmi.js.map} +1 -1
  71. package/dist/chunks/{data-grid.kEhur6r-.js → data-grid.KudN-TcY.js} +870 -867
  72. package/dist/chunks/{data-grid.kEhur6r-.js.map → data-grid.KudN-TcY.js.map} +1 -1
  73. package/dist/chunks/date-picker.D5B_SECc.js +251 -0
  74. package/dist/chunks/date-picker.D5B_SECc.js.map +1 -0
  75. package/dist/chunks/date-range-picker.CDDw_xl_.js +1104 -0
  76. package/dist/chunks/date-range-picker.CDDw_xl_.js.map +1 -0
  77. package/dist/chunks/{de.DvtL0g75.js → de.BJvo6njq.js} +2 -2
  78. package/dist/chunks/{de.DvtL0g75.js.map → de.BJvo6njq.js.map} +1 -1
  79. package/dist/chunks/{dialog-page.B3ptLXXP.js → dialog-page.C1KUI51V.js} +2 -2
  80. package/dist/chunks/{dialog-page.B3ptLXXP.js.map → dialog-page.C1KUI51V.js.map} +1 -1
  81. package/dist/chunks/{differenceInMonths.BR4Z2HIa.js → differenceInMonths.CIYECBxK.js} +7 -7
  82. package/dist/chunks/{differenceInMonths.BR4Z2HIa.js.map → differenceInMonths.CIYECBxK.js.map} +1 -1
  83. package/dist/chunks/{dropdown-default-textbox.B-_dTUVX.js → dropdown-default-textbox.CskseEho.js} +62 -60
  84. package/dist/chunks/dropdown-default-textbox.CskseEho.js.map +1 -0
  85. package/dist/chunks/{dropdown-tag.DDNOZhEG.js → dropdown-tag.CwSzUwa7.js} +3 -3
  86. package/dist/chunks/{dropdown-tag.DDNOZhEG.js.map → dropdown-tag.CwSzUwa7.js.map} +1 -1
  87. package/dist/chunks/{dropdown.CU6nfq3V.js → dropdown.Bdw2B-Cw.js} +9 -9
  88. package/dist/chunks/{dropdown.CU6nfq3V.js.map → dropdown.Bdw2B-Cw.js.map} +1 -1
  89. package/dist/chunks/{en-GB.DCGuCmAv.js → en-GB.C3-QUpva.js} +2 -2
  90. package/dist/chunks/{en-GB.DCGuCmAv.js.map → en-GB.C3-QUpva.js.map} +1 -1
  91. package/dist/chunks/{en-US.BZii9jNW.js → en-US.YeSsZuOc.js} +150 -100
  92. package/dist/chunks/en-US.YeSsZuOc.js.map +1 -0
  93. package/dist/chunks/error-message.oGiefI2-.js +155 -0
  94. package/dist/chunks/error-message.oGiefI2-.js.map +1 -0
  95. package/dist/chunks/{es.bz0mzkMq.js → es.DyUjjSL8.js} +2 -2
  96. package/dist/chunks/{es.bz0mzkMq.js.map → es.DyUjjSL8.js.map} +1 -1
  97. package/dist/chunks/{file-uploader.Q2ufNRTY.js → file-uploader.BnmNI1O7.js} +573 -548
  98. package/dist/chunks/file-uploader.BnmNI1O7.js.map +1 -0
  99. package/dist/chunks/{filter-bar.CkYOjRAa.js → filter-bar.xwfVuZw4.js} +1973 -2062
  100. package/dist/chunks/filter-bar.xwfVuZw4.js.map +1 -0
  101. package/dist/chunks/{focus-trap.CBvh2H_m.js → focus-trap.BxCwzLqN.js} +2 -2
  102. package/dist/chunks/{focus-trap.CBvh2H_m.js.map → focus-trap.BxCwzLqN.js.map} +1 -1
  103. package/dist/chunks/{footer-actions.DLzMOB7j.js → footer-actions.Ck6UztD8.js} +2 -2
  104. package/dist/chunks/{footer-actions.DLzMOB7j.js.map → footer-actions.Ck6UztD8.js.map} +1 -1
  105. package/dist/chunks/form-layout-title.CQfeGyVw.js +232 -0
  106. package/dist/chunks/{form-layout-title.DYmTc6M7.js.map → form-layout-title.CQfeGyVw.js.map} +1 -1
  107. package/dist/chunks/{match.CMBZxEs9.js → fr.JD_4GwS8.js} +98 -61
  108. package/dist/chunks/fr.JD_4GwS8.js.map +1 -0
  109. package/dist/chunks/{header-meta.Bw8ZGwJW.js → header-meta.lGt3HsyH.js} +108 -114
  110. package/dist/chunks/header-meta.lGt3HsyH.js.map +1 -0
  111. package/dist/chunks/{header-with-views.CJDoE4hw.js → header-with-views.BT6lbAby.js} +9 -9
  112. package/dist/chunks/{header-with-views.CJDoE4hw.js.map → header-with-views.BT6lbAby.js.map} +1 -1
  113. package/dist/chunks/{header.BeH8KH_l.js → header.oXqwf2xN.js} +3 -3
  114. package/dist/chunks/{header.BeH8KH_l.js.map → header.oXqwf2xN.js.map} +1 -1
  115. package/dist/chunks/{index.CbxHJr39.js → index.Dppy4qHk.js} +204 -197
  116. package/dist/chunks/{index.CbxHJr39.js.map → index.Dppy4qHk.js.map} +1 -1
  117. package/dist/chunks/{info-icon.BLtyJvY4.js → info-icon.DyPOv7Pi.js} +3 -3
  118. package/dist/chunks/{info-icon.BLtyJvY4.js.map → info-icon.DyPOv7Pi.js.map} +1 -1
  119. package/dist/chunks/{input-field-password.KeKQPIZv.js → input-field-password.CKhqGBVB.js} +6 -6
  120. package/dist/chunks/{input-field-password.KeKQPIZv.js.map → input-field-password.CKhqGBVB.js.map} +1 -1
  121. package/dist/chunks/{input-field-phone-number.eaU9p15A.js → input-field-phone-number.Cailj_71.js} +49 -49
  122. package/dist/chunks/{input-field-phone-number.eaU9p15A.js.map → input-field-phone-number.Cailj_71.js.map} +1 -1
  123. package/dist/chunks/{input-field.CNdqlGw6.js → input-field.DqXVoKpy.js} +15 -14
  124. package/dist/chunks/input-field.DqXVoKpy.js.map +1 -0
  125. package/dist/chunks/{inspector.Bnf0g7QE.js → inspector.BjLhY3bE.js} +3 -3
  126. package/dist/chunks/{inspector.Bnf0g7QE.js.map → inspector.BjLhY3bE.js.map} +1 -1
  127. package/dist/chunks/isSameWeek.CzBCmu7d.js +14 -0
  128. package/dist/chunks/{isSameWeek.DjeUtLwI.js.map → isSameWeek.CzBCmu7d.js.map} +1 -1
  129. package/dist/chunks/{it.DIafuXtH.js → it.BlUnV-yA.js} +3 -3
  130. package/dist/chunks/{it.DIafuXtH.js.map → it.BlUnV-yA.js.map} +1 -1
  131. package/dist/chunks/{ja.Cm9tJMi2.js → ja.nUwDmVf2.js} +8 -8
  132. package/dist/chunks/{ja.Cm9tJMi2.js.map → ja.nUwDmVf2.js.map} +1 -1
  133. package/dist/chunks/{layout-row.Bz-mRqAq.js → layout-row.Da8nkm9z.js} +2 -2
  134. package/dist/chunks/{layout-row.Bz-mRqAq.js.map → layout-row.Da8nkm9z.js.map} +1 -1
  135. package/dist/chunks/{listbox-option-tag.C3ihNg6_.js → listbox-option-tag.CoBUYwFG.js} +2 -2
  136. package/dist/chunks/{listbox-option-tag.C3ihNg6_.js.map → listbox-option-tag.CoBUYwFG.js.map} +1 -1
  137. package/dist/chunks/modal-fullscreen.9ZDR_S29.js +301 -0
  138. package/dist/chunks/modal-fullscreen.9ZDR_S29.js.map +1 -0
  139. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js} +4 -4
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.BAwez0nB.js.map → modal.vue_vue_type_script_setup_true_lang.B0IdwV0R.js.map} +1 -1
  141. package/dist/chunks/pagination.CqCd5JCe.js +488 -0
  142. package/dist/chunks/pagination.CqCd5JCe.js.map +1 -0
  143. package/dist/chunks/popover.types.DhALnOLQ.js +6 -0
  144. package/dist/chunks/{popover.types.C_Z2JeVK.js.map → popover.types.DhALnOLQ.js.map} +1 -1
  145. package/dist/chunks/{popper-container.BefZxTzP.js → popper-container.DAK7c9uS.js} +2 -2
  146. package/dist/chunks/{popper-container.BefZxTzP.js.map → popper-container.DAK7c9uS.js.map} +1 -1
  147. package/dist/chunks/{promo-banner.BLie64oS.js → promo-banner.aNwH6uQx.js} +2 -2
  148. package/dist/chunks/{promo-banner.BLie64oS.js.map → promo-banner.aNwH6uQx.js.map} +1 -1
  149. package/dist/chunks/{pt-BR.CiGdfP45.js → pt-BR.BCU2Hj36.js} +2 -2
  150. package/dist/chunks/{pt-BR.CiGdfP45.js.map → pt-BR.BCU2Hj36.js.map} +1 -1
  151. package/dist/chunks/{radio-group.C6nQRQDB.js → radio-group.v8mDVZ-o.js} +24 -23
  152. package/dist/chunks/{radio-group.C6nQRQDB.js.map → radio-group.v8mDVZ-o.js.map} +1 -1
  153. package/dist/chunks/{rich-text-editor.C39NKgl0.js → rich-text-editor.DH1d5Zcp.js} +7 -6
  154. package/dist/chunks/{rich-text-editor.C39NKgl0.js.map → rich-text-editor.DH1d5Zcp.js.map} +1 -1
  155. package/dist/chunks/{search-bar.CbTrg2Sk.js → search-bar.DGpLNVng.js} +3 -3
  156. package/dist/chunks/{search-bar.CbTrg2Sk.js.map → search-bar.DGpLNVng.js.map} +1 -1
  157. package/dist/chunks/{secondary-nav.DTOZQewf.js → secondary-nav.l_60nnXA.js} +3 -3
  158. package/dist/chunks/{secondary-nav.DTOZQewf.js.map → secondary-nav.l_60nnXA.js.map} +1 -1
  159. package/dist/chunks/{segmented-control.D9rHBysM.js → segmented-control.Aqquod8g.js} +2 -2
  160. package/dist/chunks/{segmented-control.D9rHBysM.js.map → segmented-control.Aqquod8g.js.map} +1 -1
  161. package/dist/chunks/{selection-card-group.KEsG0D5V.js → selection-card-group.KBl4fVSH.js} +107 -106
  162. package/dist/chunks/selection-card-group.KBl4fVSH.js.map +1 -0
  163. package/dist/chunks/{sidepanel.DJCagqzl.js → sidepanel.DaXPcTHm.js} +5 -5
  164. package/dist/chunks/{sidepanel.DJCagqzl.js.map → sidepanel.DaXPcTHm.js.map} +1 -1
  165. package/dist/chunks/{startOfWeek.D8Yh4c0G.js → startOfWeek.CXhhX-R7.js} +2 -2
  166. package/dist/chunks/{startOfWeek.D8Yh4c0G.js.map → startOfWeek.CXhhX-R7.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.f1tmHSEN.js → structured-list-item.DAIaUMCY.js} +4 -4
  168. package/dist/chunks/{structured-list-item.f1tmHSEN.js.map → structured-list-item.DAIaUMCY.js.map} +1 -1
  169. package/dist/chunks/{summary-grid.types.COcV-sOB.js → summary-grid.types.BZcZS_dW.js} +5 -5
  170. package/dist/chunks/{summary-grid.types.COcV-sOB.js.map → summary-grid.types.BZcZS_dW.js.map} +1 -1
  171. package/dist/chunks/{tag.Dr7MKe9q.js → tag.CqWg6C3H.js} +2 -2
  172. package/dist/chunks/{tag.Dr7MKe9q.js.map → tag.CqWg6C3H.js.map} +1 -1
  173. package/dist/chunks/{textarea.CtgbUCjH.js → textarea.CvI2InIB.js} +18 -17
  174. package/dist/chunks/textarea.CvI2InIB.js.map +1 -0
  175. package/dist/chunks/{timeline-item.D9nmCe6u.js → timeline-item.BooD99hL.js} +93 -95
  176. package/dist/chunks/timeline-item.BooD99hL.js.map +1 -0
  177. package/dist/chunks/{tooltip.DYpJZ-99.js → tooltip.Lwtlhv3u.js} +2 -2
  178. package/dist/chunks/{tooltip.DYpJZ-99.js.map → tooltip.Lwtlhv3u.js.map} +1 -1
  179. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js} +4 -4
  180. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.B5hWgNSd.js.map → tutorial.vue_vue_type_script_setup_true_lang.BL2QTKmV.js.map} +1 -1
  181. package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js → use-cached-selected-values.C4_X3vVj.js} +2 -2
  182. package/dist/chunks/{use-cached-selected-values.BiSuG1eX.js.map → use-cached-selected-values.C4_X3vVj.js.map} +1 -1
  183. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js +1732 -0
  184. package/dist/chunks/use-date-input-formatter.dtbK-CEy.js.map +1 -0
  185. package/dist/chunks/{zh-CN.Bw_6j9Cd.js → zh-CN.ChYkuQAR.js} +3 -3
  186. package/dist/chunks/{zh-CN.Bw_6j9Cd.js.map → zh-CN.ChYkuQAR.js.map} +1 -1
  187. package/dist/code-snippet.js +1 -1
  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-handle.js +1 -1
  195. package/dist/dropdown.js +4 -4
  196. package/dist/file-uploader.js +1 -1
  197. package/dist/filter-bar.js +1 -1
  198. package/dist/focus-trap.js +1 -1
  199. package/dist/form-layout.js +1 -1
  200. package/dist/header-with-views.js +1 -1
  201. package/dist/header.js +1 -1
  202. package/dist/index.js +50 -50
  203. package/dist/index.js.map +1 -1
  204. package/dist/info-icon.js +1 -1
  205. package/dist/input-field-password.js +1 -1
  206. package/dist/input-field-phone-number.js +1 -1
  207. package/dist/input-field.js +1 -1
  208. package/dist/inspector.js +1 -1
  209. package/dist/internal.js +11 -11
  210. package/dist/layout.js +1 -1
  211. package/dist/menu.js +1 -1
  212. package/dist/modal-fullscreen.js +1 -1
  213. package/dist/modal.js +2 -2
  214. package/dist/pagination.js +1 -1
  215. package/dist/popover.js +2 -2
  216. package/dist/popper-container.js +1 -1
  217. package/dist/promo-banner.js +1 -1
  218. package/dist/radio-group.js +1 -1
  219. package/dist/rich-text-editor.js +1 -1
  220. package/dist/search-bar.js +2 -2
  221. package/dist/secondary-nav.js +1 -1
  222. package/dist/segmented-control.js +1 -1
  223. package/dist/selection-card.js +1 -1
  224. package/dist/sidepanel.js +1 -1
  225. package/dist/structured-list.js +1 -1
  226. package/dist/summary-grid.js +1 -1
  227. package/dist/tag.js +1 -1
  228. package/dist/textarea.js +1 -1
  229. package/dist/timeline.js +1 -1
  230. package/dist/tutorial.js +1 -1
  231. package/dist/web-types.json +1 -1
  232. package/package.json +10 -15
  233. package/dist/chunks/anchor-scroller.CKIQu3NK.js +0 -215
  234. package/dist/chunks/anchor-scroller.CKIQu3NK.js.map +0 -1
  235. package/dist/chunks/button-actions.BH-J7dux.js.map +0 -1
  236. package/dist/chunks/calendar.DzeJoNc2.js.map +0 -1
  237. package/dist/chunks/checkbox-group.Bh_aqKoA.js.map +0 -1
  238. package/dist/chunks/checkbox.7kpOXm-b.js.map +0 -1
  239. package/dist/chunks/constructNow.B8T1ljs6.js +0 -8
  240. package/dist/chunks/controls-group.Dip3WAKV.js.map +0 -1
  241. package/dist/chunks/date-input.XSJuuCHe.js +0 -20
  242. package/dist/chunks/date-input.XSJuuCHe.js.map +0 -1
  243. package/dist/chunks/date-picker.CvTSZhMI.js +0 -250
  244. package/dist/chunks/date-picker.CvTSZhMI.js.map +0 -1
  245. package/dist/chunks/date-range-picker.D0YqnZ86.js +0 -1080
  246. package/dist/chunks/date-range-picker.D0YqnZ86.js.map +0 -1
  247. package/dist/chunks/dropdown-default-textbox.B-_dTUVX.js.map +0 -1
  248. package/dist/chunks/en-US.BZii9jNW.js.map +0 -1
  249. package/dist/chunks/error-message.BYA2_fPV.js +0 -158
  250. package/dist/chunks/error-message.BYA2_fPV.js.map +0 -1
  251. package/dist/chunks/file-uploader.Q2ufNRTY.js.map +0 -1
  252. package/dist/chunks/filter-bar.CkYOjRAa.js.map +0 -1
  253. package/dist/chunks/form-layout-title.DYmTc6M7.js +0 -214
  254. package/dist/chunks/fr-CA.B1aPU8fp.js +0 -48
  255. package/dist/chunks/fr-CA.B1aPU8fp.js.map +0 -1
  256. package/dist/chunks/fr.Dj7wEToe.js +0 -47
  257. package/dist/chunks/fr.Dj7wEToe.js.map +0 -1
  258. package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js +0 -51
  259. package/dist/chunks/getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map +0 -1
  260. package/dist/chunks/header-meta.Bw8ZGwJW.js.map +0 -1
  261. package/dist/chunks/input-field.CNdqlGw6.js.map +0 -1
  262. package/dist/chunks/isSameWeek.DjeUtLwI.js +0 -14
  263. package/dist/chunks/ko.Ceaof6EP.js +0 -348
  264. package/dist/chunks/ko.Ceaof6EP.js.map +0 -1
  265. package/dist/chunks/match.CMBZxEs9.js.map +0 -1
  266. package/dist/chunks/modal-fullscreen.B3AGUJgl.js +0 -289
  267. package/dist/chunks/modal-fullscreen.B3AGUJgl.js.map +0 -1
  268. package/dist/chunks/nl.B6vCf2B9.js +0 -327
  269. package/dist/chunks/nl.B6vCf2B9.js.map +0 -1
  270. package/dist/chunks/pagination.lu9nx8j8.js +0 -461
  271. package/dist/chunks/pagination.lu9nx8j8.js.map +0 -1
  272. package/dist/chunks/popover.types.C_Z2JeVK.js +0 -6
  273. package/dist/chunks/selection-card-group.KEsG0D5V.js.map +0 -1
  274. package/dist/chunks/sv.f8EfZjMZ.js +0 -377
  275. package/dist/chunks/sv.f8EfZjMZ.js.map +0 -1
  276. package/dist/chunks/textarea.CtgbUCjH.js.map +0 -1
  277. package/dist/chunks/timeline-item.D9nmCe6u.js.map +0 -1
@@ -1,19 +1,147 @@
1
- import { defineComponent as fe, computed as T, resolveComponent as ae, openBlock as O, createElementBlock as $, withKeys as oe, normalizeClass as Ae, createElementVNode as A, createVNode as q, withCtx as Q, createTextVNode as Ne, toDisplayString as be, ref as X, watch as le, nextTick as tt, toRef as j, resolveDirective as nt, withDirectives as We, mergeProps as Ve, toHandlers as Ke, createBlock as ee, createCommentVNode as re, Fragment as Z, renderList as x, unref as Y, reactive as qe, resolveDynamicComponent as at } from "vue";
1
+ import { defineComponent as De, computed as k, resolveComponent as ae, openBlock as O, createElementBlock as L, withKeys as re, normalizeClass as Ae, createElementVNode as A, createVNode as q, withCtx as Q, createTextVNode as ge, toDisplayString as Ee, ref as X, watch as le, nextTick as tt, toRef as j, resolveDirective as nt, withDirectives as We, mergeProps as Ve, toHandlers as Ke, createBlock as ee, createCommentVNode as oe, Fragment as Z, renderList as x, unref as Y, reactive as qe, resolveDynamicComponent as at } from "vue";
2
2
  import { B as we } from "./button.C6t9_lzm.js";
3
3
  import { B as Re } from "./typography.B3J6_tYk.js";
4
- import { u as Fe } from "./index.B875RXHM.js";
4
+ import { u as Pe } from "./index.B875RXHM.js";
5
5
  import { g as Qe } from "./generate-uid.NJ8tVoha.js";
6
6
  import { a as ze } from "./keyboard-navigation.DWmhelVv.js";
7
- import { a as ot } from "./index.CbxHJr39.js";
8
- import { t as k, c as ue, g as Je, n as Oe, b as Pe, h as rt } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
9
- import { d as Be, a as Ie } from "./differenceInMonths.BR4Z2HIa.js";
10
- import { s as ye } from "./startOfWeek.D8Yh4c0G.js";
7
+ import { a as rt } from "./index.Dppy4qHk.js";
8
+ import { t as T, c as ue, n as Oe, k as Fe, s as ot, g as Je } from "./en-US.YeSsZuOc.js";
9
+ import { d as Be, a as Ie } from "./differenceInMonths.CIYECBxK.js";
10
+ import { s as ye } from "./startOfWeek.CXhhX-R7.js";
11
11
  import { a as Xe, C as Ze } from "./chevron-left.C_vPW7OR.js";
12
12
  import { _ as ve } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
13
  import { B as st, a as lt } from "./date.BtB1HyWQ.js";
14
14
  import "../assets/calendar.css";
15
- var G = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(G || {}), p = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(p || {}), U = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(U || {}), V = /* @__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))(V || {}), de = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(de || {});
16
- const ut = {
15
+ var G = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(G || {}), p = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(p || {});
16
+ function fe(e, t, n) {
17
+ const a = T(e, n == null ? void 0 : n.in);
18
+ return isNaN(t) ? ue((n == null ? void 0 : n.in) || e, NaN) : (t && a.setDate(a.getDate() + t), a);
19
+ }
20
+ function te(e, t, n) {
21
+ const a = T(e, n == null ? void 0 : n.in);
22
+ if (isNaN(t)) return ue(e, NaN);
23
+ if (!t)
24
+ return a;
25
+ const o = a.getDate(), l = ue(e, a.getTime());
26
+ l.setMonth(a.getMonth() + t + 1, 0);
27
+ const i = l.getDate();
28
+ return o >= i ? l : (a.setFullYear(
29
+ l.getFullYear(),
30
+ l.getMonth(),
31
+ o
32
+ ), a);
33
+ }
34
+ function ne(e, t) {
35
+ const n = T(e, t == null ? void 0 : t.in);
36
+ return n.setHours(0, 0, 0, 0), n;
37
+ }
38
+ function ut(e, t, n) {
39
+ const [a, o] = Oe(
40
+ n == null ? void 0 : n.in,
41
+ e,
42
+ t
43
+ ), l = ne(a), i = ne(o), u = +l - Fe(l), f = +i - Fe(i);
44
+ return Math.round((u - f) / ot);
45
+ }
46
+ function xe(e, t, n) {
47
+ return te(e, t * 12, n);
48
+ }
49
+ function me(e, t, n) {
50
+ const [a, o] = Oe(
51
+ n == null ? void 0 : n.in,
52
+ e,
53
+ t
54
+ );
55
+ return +ne(a) == +ne(o);
56
+ }
57
+ function it(e, t, n) {
58
+ const [a, o] = Oe(
59
+ n == null ? void 0 : n.in,
60
+ e,
61
+ t
62
+ ), l = Ce(a, o), i = Math.abs(
63
+ ut(a, o)
64
+ );
65
+ a.setDate(a.getDate() - l * i);
66
+ const u = +(Ce(a, o) === -l), f = l * (i - u);
67
+ return f === 0 ? 0 : f;
68
+ }
69
+ function Ce(e, t) {
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
+ return n < 0 ? -1 : n > 0 ? 1 : n;
72
+ }
73
+ function Se(e, t) {
74
+ const n = T(e, t == null ? void 0 : t.in), a = n.getMonth(), o = a - a % 3;
75
+ return n.setMonth(o, 1), n.setHours(0, 0, 0, 0), n;
76
+ }
77
+ function Me(e, t) {
78
+ const n = T(e, t == null ? void 0 : t.in);
79
+ return n.setDate(1), n.setHours(0, 0, 0, 0), n;
80
+ }
81
+ function Ge(e, t) {
82
+ const n = T(e, t == null ? void 0 : t.in);
83
+ return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
84
+ }
85
+ function Ne(e, t) {
86
+ var u, f, N, m;
87
+ const n = Je(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((f = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : f.weekStartsOn) ?? n.weekStartsOn ?? ((m = (N = n.locale) == null ? void 0 : N.options) == null ? void 0 : m.weekStartsOn) ?? 0, o = T(e, t == null ? void 0 : t.in), l = o.getDay(), i = (l < a ? -7 : 0) + 6 - (l - a);
88
+ return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
89
+ }
90
+ function ke(e, t) {
91
+ const n = T(e, t == null ? void 0 : t.in), a = n.getMonth(), o = a - a % 3 + 3;
92
+ return n.setMonth(o, 0), n.setHours(23, 59, 59, 999), n;
93
+ }
94
+ function dt(e, t) {
95
+ const n = T(e, t == null ? void 0 : t.in), a = n.getFullYear(), o = n.getMonth(), l = ue(n, 0);
96
+ return l.setFullYear(a, o + 1, 0), l.setHours(0, 0, 0, 0), l.getDate();
97
+ }
98
+ function ct(e, t) {
99
+ return +T(e) > +T(t);
100
+ }
101
+ function ft(e, t) {
102
+ return +T(e) < +T(t);
103
+ }
104
+ function Dt(e, t, n) {
105
+ var y, D, c, r;
106
+ const a = Je(), o = (n == null ? void 0 : n.weekStartsOn) ?? ((D = (y = n == null ? void 0 : n.locale) == null ? void 0 : y.options) == null ? void 0 : D.weekStartsOn) ?? a.weekStartsOn ?? ((r = (c = a.locale) == null ? void 0 : c.options) == null ? void 0 : r.weekStartsOn) ?? 0, l = T(e, n == null ? void 0 : n.in), i = l.getDay(), f = (t % 7 + 7) % 7, N = 7 - o, m = t < 0 || t > 6 ? t - (i + N) % 7 : (f + N) % 7 - (i + N) % 7;
107
+ return fe(l, m, n);
108
+ }
109
+ function he(e, t, n) {
110
+ const [a, o] = Oe(
111
+ n == null ? void 0 : n.in,
112
+ e,
113
+ t
114
+ );
115
+ return a.getFullYear() === o.getFullYear() && a.getMonth() === o.getMonth();
116
+ }
117
+ function be(e, t, n) {
118
+ const a = +T(e, n == null ? void 0 : n.in), [o, l] = [
119
+ +T(t.start, n == null ? void 0 : n.in),
120
+ +T(t.end, n == null ? void 0 : n.in)
121
+ ].sort((i, u) => i - u);
122
+ return a >= o && a <= l;
123
+ }
124
+ function _e(e, t, n) {
125
+ return fe(e, -t, n);
126
+ }
127
+ function vt(e, t, n) {
128
+ const a = T(e, n == null ? void 0 : n.in), o = a.getFullYear(), l = a.getDate(), i = ue(e, 0);
129
+ i.setFullYear(o, t, 15), i.setHours(0, 0, 0, 0);
130
+ const u = dt(i);
131
+ return a.setMonth(t, Math.min(l, u)), a;
132
+ }
133
+ function mt(e, t, n) {
134
+ let a = T(e, n == null ? void 0 : n.in);
135
+ return isNaN(+a) ? ue(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);
136
+ }
137
+ function ce(e, t, n) {
138
+ return te(e, -t, n);
139
+ }
140
+ function ht(e, t, n) {
141
+ return xe(e, -t, n);
142
+ }
143
+ var U = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(U || {}), V = /* @__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))(V || {}), de = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(de || {});
144
+ const yt = {
17
145
  /**
18
146
  * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
19
147
  */
@@ -35,43 +163,36 @@ const ut = {
35
163
  default: U.SINGLE,
36
164
  validator: (e) => Object.values(U).includes(e)
37
165
  }
38
- }, Se = /* @__PURE__ */ new Map();
39
- function _e(e, t) {
166
+ }, Te = /* @__PURE__ */ new Map();
167
+ function Le(e, t) {
40
168
  const n = t ? JSON.stringify(Object.entries(t).sort()) : "no-options", a = (e == null ? void 0 : e.trim()) || "en-US", o = `${a}::${n}`;
41
- if (Se.has(o))
42
- return Se.get(o);
169
+ if (Te.has(o))
170
+ return Te.get(o);
43
171
  const l = new Intl.DateTimeFormat(a, t);
44
- return Se.set(o, l), l;
172
+ return Te.set(o, l), l;
45
173
  }
46
174
  const sn = (e) => {
47
- if (!e)
48
- return "";
49
- const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0");
50
- let a = `${t}-${n}`;
51
- const o = e.getDate().toString().padStart(2, "0");
52
- return a += `-${o}`, a;
53
- }, ln = (e) => {
54
175
  if (!e)
55
176
  return "";
56
177
  const t = (n) => n.toString().padStart(2, "0");
57
178
  return [t(e.getHours()), t(e.getMinutes()), t(e.getSeconds())].join(":");
58
- }, it = fe({
179
+ }, Mt = De({
59
180
  name: "calendar-month-day",
60
181
  components: { BentoTypography: Re },
61
182
  inheritAttrs: !0,
62
- props: ut,
183
+ props: yt,
63
184
  emits: [de.CLICK, de.MOUSE_OVER],
64
185
  setup(e, { emit: t }) {
65
- const { locale: n } = Fe(void 0), a = T(() => {
186
+ const { locale: n } = Pe(void 0), a = k(() => {
66
187
  const u = /* @__PURE__ */ new Date();
67
188
  return e.day.getDate() === u.getDate() && e.day.getMonth() === u.getMonth() && e.day.getFullYear() === u.getFullYear();
68
- }), o = T(() => {
69
- const g = _e(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day");
70
- return (g == null ? void 0 : g.value) ?? "";
189
+ }), o = k(() => {
190
+ const N = Le(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day");
191
+ return (N == null ? void 0 : N.value) ?? "";
71
192
  });
72
193
  return {
73
194
  // Values
74
- conditionalClasses: T(() => ({
195
+ conditionalClasses: k(() => ({
75
196
  // Variants
76
197
  [`b-calendar-month-day--${V.BEGINNING}`]: e.variant === U.BEGINNING,
77
198
  [`b-calendar-month-day--${V.MIDDLE}`]: e.variant === U.MIDDLE,
@@ -90,15 +211,15 @@ const sn = (e) => {
90
211
  // Enums
91
212
  CalendarMonthDayEvent: de,
92
213
  // Events
93
- onClick: (u, D) => {
94
- e.disabled ? (u.preventDefault(), u.stopPropagation()) : t(de.CLICK, D, e.day);
214
+ onClick: (u, f) => {
215
+ e.disabled ? (u.preventDefault(), u.stopPropagation()) : t(de.CLICK, f, e.day);
95
216
  }
96
217
  };
97
218
  }
98
- }), dt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], ct = { class: "b-calendar-month-day__wrapper" };
99
- function Dt(e, t, n, a, o, l) {
219
+ }), Nt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], gt = { class: "b-calendar-month-day__wrapper" };
220
+ function Et(e, t, n, a, o, l) {
100
221
  const i = ae("bento-typography");
101
- return O(), $("td", {
222
+ return O(), L("td", {
102
223
  class: Ae(["b-calendar-month-day", e.conditionalClasses]),
103
224
  tabindex: e.selected ? "0" : "-1",
104
225
  "aria-selected": e.selected ? e.selected : void 0,
@@ -107,9 +228,9 @@ function Dt(e, t, n, a, o, l) {
107
228
  "data-date": e.day.toDateString(),
108
229
  onClick: t[0] || (t[0] = (u) => e.onClick(u, e.day)),
109
230
  onMouseover: t[1] || (t[1] = (u) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
110
- onKeydown: t[2] || (t[2] = oe((u) => e.onClick(u, e.day), ["space", "enter"]))
231
+ onKeydown: t[2] || (t[2] = re((u) => e.onClick(u, e.day), ["space", "enter"]))
111
232
  }, [
112
- A("div", ct, [
233
+ A("div", gt, [
113
234
  q(i, {
114
235
  class: "b-calendar-month-day__label",
115
236
  el: "span",
@@ -117,63 +238,16 @@ function Dt(e, t, n, a, o, l) {
117
238
  strong: ""
118
239
  }, {
119
240
  default: Q(() => [
120
- Ne(be(e.formattedDate), 1)
241
+ ge(Ee(e.formattedDate), 1)
121
242
  ]),
122
243
  _: 1
123
244
  })
124
245
  ])
125
- ], 42, dt);
246
+ ], 42, Nt);
126
247
  }
127
- const ft = /* @__PURE__ */ ve(it, [["render", Dt], ["__scopeId", "data-v-e6d7eb12"]]);
248
+ const bt = /* @__PURE__ */ ve(Mt, [["render", Et], ["__scopeId", "data-v-e6d7eb12"]]);
128
249
  var se = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(se || {}), z = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(z || {}), $e = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))($e || {});
129
- function De(e, t, n) {
130
- const a = k(e, n == null ? void 0 : n.in);
131
- return isNaN(t) ? ue(e, NaN) : (t && a.setDate(a.getDate() + t), a);
132
- }
133
- function te(e, t, n) {
134
- const a = k(e, n == null ? void 0 : n.in);
135
- if (isNaN(t)) return ue(e, NaN);
136
- if (!t)
137
- return a;
138
- const o = a.getDate(), l = ue(e, a.getTime());
139
- l.setMonth(a.getMonth() + t + 1, 0);
140
- const i = l.getDate();
141
- return o >= i ? l : (a.setFullYear(
142
- l.getFullYear(),
143
- l.getMonth(),
144
- o
145
- ), a);
146
- }
147
- function Me(e, t) {
148
- var u, D, g, m;
149
- const n = Je(), a = (t == null ? void 0 : t.weekStartsOn) ?? ((D = (u = t == null ? void 0 : t.locale) == null ? void 0 : u.options) == null ? void 0 : D.weekStartsOn) ?? n.weekStartsOn ?? ((m = (g = n.locale) == null ? void 0 : g.options) == null ? void 0 : m.weekStartsOn) ?? 0, o = k(e, t == null ? void 0 : t.in), l = o.getDay(), i = (l < a ? -7 : 0) + 6 - (l - a);
150
- return o.setDate(o.getDate() + i), o.setHours(23, 59, 59, 999), o;
151
- }
152
- function vt(e, t) {
153
- const n = k(e, t == null ? void 0 : t.in), a = n.getFullYear(), o = n.getMonth(), l = ue(n, 0);
154
- return l.setFullYear(a, o + 1, 0), l.setHours(0, 0, 0, 0), l.getDate();
155
- }
156
- function mt(e, t, n) {
157
- const a = k(e, n == null ? void 0 : n.in), o = a.getFullYear(), l = a.getDate(), i = ue(e, 0);
158
- i.setFullYear(o, t, 15), i.setHours(0, 0, 0, 0);
159
- const u = vt(i);
160
- return a.setMonth(t, Math.min(l, u)), a;
161
- }
162
- function ht(e, t, n) {
163
- let a = k(e, n == null ? void 0 : n.in);
164
- return isNaN(+a) ? ue(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = mt(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);
165
- }
166
- function Ce(e, t) {
167
- const n = k(e, t == null ? void 0 : t.in);
168
- return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
169
- }
170
- function Le(e, t, n) {
171
- return De(e, -t, n);
172
- }
173
- function ce(e, t, n) {
174
- return te(e, -t, n);
175
- }
176
- const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
250
+ const pe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
177
251
  const l = X(new Date(t.value));
178
252
  le(
179
253
  t,
@@ -186,40 +260,40 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
186
260
  le(e, () => {
187
261
  i.value = new Date(e.value);
188
262
  });
189
- const u = ot(), D = X(i.value);
263
+ const u = rt(), f = X(i.value);
190
264
  le(u, (d) => {
191
- const N = d.getAttribute("data-date");
192
- D.value = N ? new Date(N) : i.value;
265
+ const g = d.getAttribute("data-date");
266
+ f.value = g ? new Date(g) : i.value;
193
267
  });
194
- const g = X({}), m = (d) => (N) => {
195
- g.value[d.toDateString()] = N;
268
+ const N = X({}), m = (d) => (g) => {
269
+ N.value[d.toDateString()] = g;
196
270
  }, y = () => {
197
- g.value = {};
198
- }, f = (d = 1) => {
271
+ N.value = {};
272
+ }, D = (d = 1) => {
199
273
  l.value = te(l.value, d), o(G.NEXT_MONTH, d), y();
200
274
  }, c = (d = 1) => {
201
275
  l.value = ce(l.value, d), o(G.PREVIOUS_MONTH, d), y();
202
- }, r = (d, N) => {
203
- const _ = !!g.value[d == null ? void 0 : d.toDateString()];
204
- return !d || !_ ? null : N ? g.value[d.toDateString()].$el : (g.value[d.toDateString()].$el.focus(), null);
276
+ }, r = (d, g) => {
277
+ const _ = !!N.value[d == null ? void 0 : d.toDateString()];
278
+ return !d || !_ ? null : g ? N.value[d.toDateString()].$el : (N.value[d.toDateString()].$el.focus(), null);
205
279
  }, s = (d) => {
206
280
  d.preventDefault(), d.stopImmediatePropagation(), d.stopPropagation();
207
- }, v = ({ nextDate: d, isIncreasingDays: N, amountOfMonths: _, isCalendarButtonsNav: W }) => {
281
+ }, v = ({ nextDate: d, isIncreasingDays: g, amountOfMonths: _, isCalendarButtonsNav: W }) => {
208
282
  if (!W && n && n(d))
209
283
  return;
210
- d.getMonth() === i.value.getMonth() && d.getFullYear() === i.value.getFullYear() ? (i.value = d, r(d)) : (N ? f(_) : c(_), tt(() => {
284
+ d.getMonth() === i.value.getMonth() && d.getFullYear() === i.value.getFullYear() ? (i.value = d, r(d)) : (g ? D(_) : c(_), tt(() => {
211
285
  const B = d.getMonth() === l.value.getMonth() && d.getFullYear() === l.value.getFullYear();
212
286
  n && n(d) || !B || W || (i.value = d, r(d));
213
287
  }));
214
288
  };
215
289
  return {
216
290
  // Calendar days ref
217
- calendarRef: g,
291
+ calendarRef: N,
218
292
  addDayRef: m,
219
293
  /**
220
294
  * Month navigation
221
295
  */
222
- showNextMonth: f,
296
+ showNextMonth: D,
223
297
  showPreviousMonth: c,
224
298
  /**
225
299
  * Focus method
@@ -230,130 +304,101 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
230
304
  */
231
305
  // ArrowRight
232
306
  moveToNextDay: (d) => {
233
- s(d), v({ nextDate: De(D.value, 1), isIncreasingDays: !0 });
307
+ s(d), v({ nextDate: fe(f.value, 1), isIncreasingDays: !0 });
234
308
  },
235
309
  // ArrowLeft
236
310
  moveToPreviousDay: (d) => {
237
- s(d), v({ nextDate: Le(D.value, 1), isIncreasingDays: !1 });
311
+ s(d), v({ nextDate: _e(f.value, 1), isIncreasingDays: !1 });
238
312
  },
239
313
  // ArrowUp
240
314
  moveToPreviousWeek: (d) => {
241
- s(d), v({ nextDate: Le(D.value, 7), isIncreasingDays: !1 });
315
+ s(d), v({ nextDate: _e(f.value, 7), isIncreasingDays: !1 });
242
316
  },
243
317
  // ArrowDown
244
318
  moveToNextWeek: (d) => {
245
- s(d), v({ nextDate: De(D.value, 7), isIncreasingDays: !0 });
319
+ s(d), v({ nextDate: fe(f.value, 7), isIncreasingDays: !0 });
246
320
  },
247
321
  // Home
248
322
  moveToFirstDayOfWeek: (d) => {
249
323
  s(d), v({
250
- nextDate: ye(D.value, { weekStartsOn: a }),
324
+ nextDate: ye(f.value, { weekStartsOn: a }),
251
325
  isIncreasingDays: !1
252
326
  });
253
327
  },
254
328
  moveToFirstMonthOfYear: (d) => {
255
329
  s(d);
256
- const N = Be(i.value, Ce(i.value));
330
+ const g = Be(i.value, Ge(i.value));
257
331
  v({
258
- nextDate: Ce(i.value),
332
+ nextDate: Ge(i.value),
259
333
  isIncreasingDays: !1,
260
- amountOfMonths: N
334
+ amountOfMonths: g
261
335
  });
262
336
  },
263
337
  // End
264
338
  moveToLastDayOfWeek: (d) => {
265
339
  s(d), v({
266
- nextDate: Me(D.value, { weekStartsOn: a }),
340
+ nextDate: Ne(f.value, { weekStartsOn: a }),
267
341
  isIncreasingDays: !0
268
342
  });
269
343
  },
270
344
  moveToLastMonthOfYear: (d) => {
271
345
  s(d);
272
- const N = ht(i.value, { month: 11, date: 1 }), _ = Be(N, i.value);
346
+ const g = mt(i.value, { month: 11, date: 1 }), _ = Be(g, i.value);
273
347
  v({
274
- nextDate: N,
348
+ nextDate: g,
275
349
  isIncreasingDays: !0,
276
350
  amountOfMonths: _
277
351
  });
278
352
  },
279
353
  // PageUp
280
- moveToPreviousMonth: (d, N = !1, _ = 1) => {
354
+ moveToPreviousMonth: (d, g = !1, _ = 1) => {
281
355
  s(d);
282
356
  const W = _;
283
357
  v({
284
- nextDate: ce(D.value, W),
358
+ nextDate: ce(f.value, W),
285
359
  isIncreasingDays: !1,
286
360
  amountOfMonths: W,
287
- isCalendarButtonsNav: N
361
+ isCalendarButtonsNav: g
288
362
  });
289
363
  },
290
364
  // Shift+PageUp
291
- moveToPreviousYear: (d, N = !1) => {
365
+ moveToPreviousYear: (d, g = !1) => {
292
366
  s(d);
293
367
  const _ = 12;
294
368
  v({
295
- nextDate: ce(D.value, _),
369
+ nextDate: ce(f.value, _),
296
370
  isIncreasingDays: !1,
297
371
  amountOfMonths: _,
298
- isCalendarButtonsNav: N
372
+ isCalendarButtonsNav: g
299
373
  });
300
374
  },
301
375
  // PageDown
302
- moveToNextMonth: (d, N = !1, _ = 1) => {
376
+ moveToNextMonth: (d, g = !1, _ = 1) => {
303
377
  s(d);
304
378
  const W = _;
305
379
  v({
306
- nextDate: te(D.value, W),
380
+ nextDate: te(f.value, W),
307
381
  isIncreasingDays: !0,
308
382
  amountOfMonths: W,
309
- isCalendarButtonsNav: N
383
+ isCalendarButtonsNav: g
310
384
  });
311
385
  },
312
386
  // Shift-PageDown
313
- moveToNextYear: (d, N = !1) => {
387
+ moveToNextYear: (d, g = !1) => {
314
388
  s(d);
315
389
  const _ = 12;
316
390
  v({
317
- nextDate: te(D.value, _),
391
+ nextDate: te(f.value, _),
318
392
  isIncreasingDays: !0,
319
393
  amountOfMonths: _,
320
- isCalendarButtonsNav: N
394
+ isCalendarButtonsNav: g
321
395
  });
322
396
  },
323
397
  // Values
324
398
  internalDate: i,
325
399
  baseDate: l
326
400
  };
327
- };
328
- function yt(e, t, n) {
329
- var y, f;
330
- const a = Je(), o = a.weekStartsOn ?? ((f = (y = a.locale) == null ? void 0 : y.options) == null ? void 0 : f.weekStartsOn) ?? 0, l = k(e, n == null ? void 0 : n.in), i = l.getDay(), D = (t % 7 + 7) % 7, g = 7 - o, m = t < 0 || t > 6 ? t - (i + g) % 7 : (D + g) % 7 - (i + g) % 7;
331
- return De(l, m, n);
332
- }
333
- function ge(e, t) {
334
- const n = k(e, t == null ? void 0 : t.in);
335
- return n.setDate(1), n.setHours(0, 0, 0, 0), n;
336
- }
337
- function ne(e, t) {
338
- const n = k(e, t == null ? void 0 : t.in);
339
- return n.setHours(0, 0, 0, 0), n;
340
- }
341
- function me(e, t, n) {
342
- const [a, o] = Oe(
343
- n == null ? void 0 : n.in,
344
- e,
345
- t
346
- );
347
- return +ne(a) == +ne(o);
348
- }
349
- function Ee(e, t, n) {
350
- const a = +k(e, n == null ? void 0 : n.in), [o, l] = [
351
- +k(t.start, n == null ? void 0 : n.in),
352
- +k(t.end, n == null ? void 0 : n.in)
353
- ].sort((i, u) => i - u);
354
- return a >= o && a <= l;
355
- }
356
- const Ge = {
401
+ }, Ue = {
357
402
  "en-US": {
358
403
  nextMonth: "Next month",
359
404
  previousMonth: "Previous month"
@@ -366,13 +411,13 @@ const Ge = {
366
411
  nextMonth: "Próximo mês",
367
412
  previousMonth: "Mês anterior"
368
413
  }
369
- }, Mt = fe({
370
- i18n: { messages: Ge },
414
+ }, Ot = De({
415
+ i18n: { messages: Ue },
371
416
  name: "calendar-month",
372
417
  components: {
373
418
  BentoButton: we,
374
419
  BentoTypography: Re,
375
- CalendarMonthDay: ft,
420
+ CalendarMonthDay: bt,
376
421
  ChevronLeftIcon: Ze,
377
422
  ChevronRightIcon: Xe
378
423
  },
@@ -434,7 +479,7 @@ const Ge = {
434
479
  G.MOUSE_OVER
435
480
  ],
436
481
  setup(e, { emit: t }) {
437
- const { locale: n, t: a } = Fe({ messages: Ge }), o = Qe("bento-date-picker-month-label"), l = T(
482
+ const { locale: n, t: a } = Pe({ messages: Ue }), o = Qe("bento-date-picker-month-label"), l = k(
438
483
  () => (S) => {
439
484
  var B;
440
485
  return e.min && S < e.min || e.max && S > e.max || ((B = e.isDateDisabled) == null ? void 0 : B.call(e, S));
@@ -443,23 +488,23 @@ const Ge = {
443
488
  internalDate: i,
444
489
  baseDate: u,
445
490
  // Calendar refs
446
- addDayRef: D,
491
+ addDayRef: f,
447
492
  // Month navigation
448
- showNextMonth: g,
493
+ showNextMonth: N,
449
494
  showPreviousMonth: m,
450
495
  // Day navigation
451
496
  moveToNextDay: y,
452
- moveToPreviousDay: f,
497
+ moveToPreviousDay: D,
453
498
  moveToPreviousWeek: c,
454
499
  moveToNextWeek: r,
455
500
  moveToFirstDayOfWeek: s,
456
501
  moveToLastDayOfWeek: v,
457
- moveToPreviousMonth: L,
502
+ moveToPreviousMonth: $,
458
503
  moveToPreviousYear: h,
459
- moveToNextMonth: b,
460
- moveToNextYear: F,
504
+ moveToNextMonth: E,
505
+ moveToNextYear: P,
461
506
  focusOnDate: R
462
- } = xe(
507
+ } = pe(
463
508
  {
464
509
  currentSelectedDate: j(e, "startDate"),
465
510
  month: j(e, "month"),
@@ -467,17 +512,17 @@ const Ge = {
467
512
  firstDayOfWeek: e.firstDayOfWeek
468
513
  },
469
514
  t
470
- ), w = T(
515
+ ), w = k(
471
516
  () => Object.values(p).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : p.MONDAY
472
- ), P = T(() => ["first", "unique"].includes(e.position)), M = T(() => ["last", "unique"].includes(e.position)), E = T(
473
- () => _e(n.value, { month: "long", year: "numeric" }).format(u.value)
474
- ), I = T(
517
+ ), F = k(() => ["first", "unique"].includes(e.position)), M = k(() => ["last", "unique"].includes(e.position)), b = k(
518
+ () => Le(n.value, { month: "long", year: "numeric" }).format(u.value)
519
+ ), I = k(
475
520
  () => new Array(7).fill(/* @__PURE__ */ new Date()).map((S, B) => {
476
- const ie = yt(S, w.value + B);
477
- return _e(n.value, { weekday: "short" }).format(ie);
521
+ const ie = Dt(S, w.value + B);
522
+ return Le(n.value, { weekday: "short" }).format(ie);
478
523
  })
479
- ), J = T(() => {
480
- const S = [], B = ge(e.month);
524
+ ), J = k(() => {
525
+ const S = [], B = Me(e.month);
481
526
  let ie = S[S.push([]) - 1];
482
527
  for (; B.getMonth() === e.month.getMonth(); )
483
528
  B.getDay() - w.value === 0 && ie.length > 0 && (ie = S[S.push([]) - 1]), ie.push(ne(B)), B.setDate(B.getDate() + 1);
@@ -485,20 +530,20 @@ const Ge = {
485
530
  });
486
531
  return {
487
532
  // Refs
488
- addDayRef: D,
533
+ addDayRef: f,
489
534
  // Values
490
535
  computedIsDateDisabled: l,
491
536
  daysOfWeek: I,
492
537
  weeksOfMonth: J,
493
- formattedMonthDate: E,
538
+ formattedMonthDate: b,
494
539
  shouldShowNextMonthButton: M,
495
- shouldShowPreviousMonthButton: P,
540
+ shouldShowPreviousMonthButton: F,
496
541
  monthLabelId: o,
497
542
  // Enums
498
543
  CalendarMonthEvent: G,
499
544
  // Functions
500
- isSelectedDate: (S) => i.value && me(i.value, S) && !e.endDate ? !0 : e.startDate && e.endDate && Ee(S, { start: e.startDate, end: e.endDate }),
501
- showNextMonth: g,
545
+ isSelectedDate: (S) => i.value && me(i.value, S) && !e.endDate ? !0 : e.startDate && e.endDate && be(S, { start: e.startDate, end: e.endDate }),
546
+ showNextMonth: N,
502
547
  showPreviousMonth: m,
503
548
  dayVariant: (S) => {
504
549
  if (!e.isRange || me(e.startDate, e.endDate))
@@ -507,7 +552,7 @@ const Ge = {
507
552
  return U.BEGINNING;
508
553
  if (e.endDate && me(e.endDate, S))
509
554
  return U.END;
510
- if (e.startDate && e.endDate && Ee(S, { start: e.startDate, end: e.endDate }))
555
+ if (e.startDate && e.endDate && be(S, { start: e.startDate, end: e.endDate }))
511
556
  return U.MIDDLE;
512
557
  },
513
558
  confirmNavigationDate: () => {
@@ -519,39 +564,39 @@ const Ge = {
519
564
  },
520
565
  listeners: {
521
566
  "keydown:arrow-right": y,
522
- "keydown:arrow-left": f,
567
+ "keydown:arrow-left": D,
523
568
  "keydown:arrow-up": c,
524
569
  "keydown:arrow-down": r,
525
570
  "keydown:home": s,
526
571
  "keydown:end": v,
527
- "keydown:page-up": L,
572
+ "keydown:page-up": $,
528
573
  "keydown:shift-page-up": h,
529
- "keydown:page-down": b,
530
- "keydown:shift-page-down": F
574
+ "keydown:page-down": E,
575
+ "keydown:shift-page-down": P
531
576
  },
532
577
  // Exposed methods
533
578
  focusOnDate: R,
534
579
  moveToNextDay: y,
535
- moveToPreviousDay: f,
580
+ moveToPreviousDay: D,
536
581
  moveToPreviousWeek: c,
537
582
  moveToNextWeek: r,
538
583
  moveToFirstDayOfWeek: s,
539
584
  moveToLastDayOfWeek: v,
540
- moveToPreviousMonth: L,
585
+ moveToPreviousMonth: $,
541
586
  moveToPreviousYear: h,
542
- moveToNextMonth: b,
543
- moveToNextYear: F,
587
+ moveToNextMonth: E,
588
+ moveToNextYear: P,
544
589
  // Translations
545
590
  t: a
546
591
  };
547
592
  }
548
- }), gt = { class: "b-calendar-month__month-selector" }, Nt = { class: "b-calendar-month__previous" }, bt = { class: "b-calendar-month__next" }, Et = ["aria-labelledby"], Ot = { class: "b-calendar-month__week-header" }, It = ["colspan"];
549
- function St(e, t, n, a, o, l) {
550
- var f, c;
551
- const i = ae("chevron-left-icon"), u = ae("bento-button"), D = ae("bento-typography"), g = ae("chevron-right-icon"), m = ae("calendar-month-day"), y = nt("bento-keyboard-navigation-directive");
552
- return We((O(), $("div", Ve({ class: "b-calendar-month" }, Ke(e.listeners, !0)), [
553
- A("div", gt, [
554
- A("div", Nt, [
593
+ }), It = { class: "b-calendar-month__month-selector" }, St = { class: "b-calendar-month__previous" }, kt = { class: "b-calendar-month__next" }, Tt = ["aria-labelledby"], wt = { class: "b-calendar-month__week-header" }, _t = ["colspan"];
594
+ function Lt(e, t, n, a, o, l) {
595
+ var D, c;
596
+ const i = ae("chevron-left-icon"), u = ae("bento-button"), f = ae("bento-typography"), N = ae("chevron-right-icon"), m = ae("calendar-month-day"), y = nt("bento-keyboard-navigation-directive");
597
+ return We((O(), L("div", Ve({ class: "b-calendar-month" }, Ke(e.listeners, !0)), [
598
+ A("div", It, [
599
+ A("div", St, [
555
600
  e.shouldShowPreviousMonthButton ? (O(), ee(u, {
556
601
  key: 0,
557
602
  variant: "tertiary",
@@ -563,32 +608,32 @@ function St(e, t, n, a, o, l) {
563
608
  }, null, 8, ["svg-title"])
564
609
  ]),
565
610
  _: 1
566
- })) : re("", !0)
611
+ })) : oe("", !0)
567
612
  ]),
568
- q(D, {
613
+ q(f, {
569
614
  id: e.monthLabelId,
570
615
  el: "h2",
571
616
  variant: "title",
572
617
  "aria-live": "polite"
573
618
  }, {
574
619
  default: Q(() => [
575
- Ne(be(e.formattedMonthDate), 1)
620
+ ge(Ee(e.formattedMonthDate), 1)
576
621
  ]),
577
622
  _: 1
578
623
  }, 8, ["id"]),
579
- A("div", bt, [
624
+ A("div", kt, [
580
625
  e.shouldShowNextMonthButton ? (O(), ee(u, {
581
626
  key: 0,
582
627
  variant: "tertiary",
583
628
  onClick: t[1] || (t[1] = (r) => e.moveToNextMonth(r, !0))
584
629
  }, {
585
630
  iconLeft: Q(() => [
586
- q(g, {
631
+ q(N, {
587
632
  "svg-title": e.t("nextMonth")
588
633
  }, null, 8, ["svg-title"])
589
634
  ]),
590
635
  _: 1
591
- })) : re("", !0)
636
+ })) : oe("", !0)
592
637
  ])
593
638
  ]),
594
639
  A("table", {
@@ -597,19 +642,19 @@ function St(e, t, n, a, o, l) {
597
642
  "aria-labelledby": e.monthLabelId
598
643
  }, [
599
644
  A("thead", null, [
600
- A("tr", Ot, [
601
- (O(!0), $(Z, null, x(e.daysOfWeek, (r, s) => (O(), $("th", {
645
+ A("tr", wt, [
646
+ (O(!0), L(Z, null, x(e.daysOfWeek, (r, s) => (O(), L("th", {
602
647
  key: s,
603
648
  class: "b-calendar-month__day-of-week",
604
649
  scope: "col"
605
650
  }, [
606
- q(D, {
651
+ q(f, {
607
652
  class: "b-calendar-month__day-of-week-font",
608
653
  el: "span",
609
654
  variant: "caption"
610
655
  }, {
611
656
  default: Q(() => [
612
- Ne(be(r), 1)
657
+ ge(Ee(r), 1)
613
658
  ]),
614
659
  _: 2
615
660
  }, 1024)
@@ -617,15 +662,15 @@ function St(e, t, n, a, o, l) {
617
662
  ])
618
663
  ]),
619
664
  A("tbody", null, [
620
- (O(!0), $(Z, null, x(e.weeksOfMonth, (r, s) => (O(), $("tr", { key: s }, [
621
- s === 0 && r.length < 7 ? (O(), $("td", {
665
+ (O(!0), L(Z, null, x(e.weeksOfMonth, (r, s) => (O(), L("tr", { key: s }, [
666
+ s === 0 && r.length < 7 ? (O(), L("td", {
622
667
  key: 0,
623
668
  colspan: 7 - r.length
624
- }, null, 8, It)) : re("", !0),
625
- (O(!0), $(Z, null, x(r, (v, L) => (O(), ee(m, {
669
+ }, null, 8, _t)) : oe("", !0),
670
+ (O(!0), L(Z, null, x(r, (v, $) => (O(), ee(m, {
626
671
  ref_for: !0,
627
672
  ref: e.addDayRef(v),
628
- key: `calendar-day-${L}`,
673
+ key: `calendar-day-${$}`,
629
674
  day: v,
630
675
  disabled: e.computedIsDateDisabled(v),
631
676
  selected: e.isSelectedDate(v),
@@ -633,14 +678,14 @@ function St(e, t, n, a, o, l) {
633
678
  onClick: e.onDayClicked,
634
679
  onMouseover: (h) => e.$emit(e.CalendarMonthEvent.MOUSE_OVER, v),
635
680
  onKeyup: [
636
- oe((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["up", "native"]),
637
- oe((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["down", "native"]),
638
- oe((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["left", "native"]),
639
- oe((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["right", "native"])
681
+ re((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["up", "native"]),
682
+ re((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["down", "native"]),
683
+ re((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["left", "native"]),
684
+ re((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, v), ["right", "native"])
640
685
  ]
641
686
  }, null, 8, ["day", "disabled", "selected", "variant", "onClick", "onMouseover", "onKeyup"]))), 128))
642
687
  ]))), 128)),
643
- ((f = e.weeksOfMonth) == null ? void 0 : f.length) < 6 ? (O(!0), $(Z, { key: 0 }, x(6 - ((c = e.weeksOfMonth) == null ? void 0 : c.length), (r) => (O(), $("tr", {
688
+ ((D = e.weeksOfMonth) == null ? void 0 : D.length) < 6 ? (O(!0), L(Z, { key: 0 }, x(6 - ((c = e.weeksOfMonth) == null ? void 0 : c.length), (r) => (O(), L("tr", {
644
689
  key: `calendar month filler row ${r}`
645
690
  }, t[2] || (t[2] = [
646
691
  A("td", {
@@ -648,25 +693,17 @@ function St(e, t, n, a, o, l) {
648
693
  class: "b-calendar-month__empty-cell-filler",
649
694
  colspan: 7
650
695
  }, null, -1)
651
- ])))), 128)) : re("", !0)
696
+ ])))), 128)) : oe("", !0)
652
697
  ])
653
- ], 8, Et)
698
+ ], 8, Tt)
654
699
  ], 16)), [
655
700
  [y]
656
701
  ]);
657
702
  }
658
- const Ue = /* @__PURE__ */ ve(Mt, [["render", St], ["__scopeId", "data-v-6417cfb0"]]);
659
- function he(e, t, n) {
660
- const [a, o] = Oe(
661
- n == null ? void 0 : n.in,
662
- e,
663
- t
664
- );
665
- return a.getFullYear() === o.getFullYear() && a.getMonth() === o.getMonth();
666
- }
703
+ const je = /* @__PURE__ */ ve(Ot, [["render", Lt], ["__scopeId", "data-v-6417cfb0"]]);
667
704
  var H = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(H || {}), K = /* @__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))(K || {}), Ye = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(Ye || {});
668
- const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__wrapper" }, wt = {}, _t = /* @__PURE__ */ fe({
669
- ...wt,
705
+ const $t = ["tabindex", "aria-selected"], Yt = { class: "b-calendar-year-month__wrapper" }, At = {}, Rt = /* @__PURE__ */ De({
706
+ ...At,
670
707
  __name: "calendar-year-month",
671
708
  props: {
672
709
  month: {},
@@ -676,10 +713,10 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
676
713
  },
677
714
  emits: ["click", "mouseover"],
678
715
  setup(e, { emit: t }) {
679
- const n = e, a = t, o = T(() => {
716
+ const n = e, a = t, o = k(() => {
680
717
  const u = /* @__PURE__ */ new Date();
681
718
  return n.month.getMonth() === u.getMonth() && n.month.getFullYear() === u.getFullYear();
682
- }), l = T(() => ({
719
+ }), l = k(() => ({
683
720
  // Variants
684
721
  [`b-calendar-year-month--${K.BEGINNING}`]: n.variant === H.BEGINNING,
685
722
  [`b-calendar-year-month--${K.MIDDLE}`]: n.variant === H.MIDDLE,
@@ -692,27 +729,27 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
692
729
  [`b-calendar-year-month--${K.CURRENT_MONTH}`]: o.value,
693
730
  // Disabled
694
731
  [`b-calendar-year-month--${K.DISABLED}`]: n.disabled
695
- })), i = (u, D) => {
696
- n.disabled ? (u.preventDefault(), u.stopPropagation()) : a(Ye.CLICK, D, n.month);
732
+ })), i = (u, f) => {
733
+ n.disabled ? (u.preventDefault(), u.stopPropagation()) : a(Ye.CLICK, f, n.month);
697
734
  };
698
- return (u, D) => (O(), $("td", {
735
+ return (u, f) => (O(), L("td", {
699
736
  class: Ae(["b-calendar-year-month", l.value]),
700
737
  tabindex: u.selected ? "0" : "-1",
701
738
  "aria-selected": u.selected ? u.selected : void 0,
702
- onClick: D[0] || (D[0] = (g) => i(g, u.month)),
703
- onMouseover: D[1] || (D[1] = (g) => a(Y(Ye).MOUSE_OVER)),
704
- onKeydown: D[2] || (D[2] = oe((g) => i(g, u.month), ["space", "enter"]))
739
+ onClick: f[0] || (f[0] = (N) => i(N, u.month)),
740
+ onMouseover: f[1] || (f[1] = (N) => a(Y(Ye).MOUSE_OVER)),
741
+ onKeydown: f[2] || (f[2] = re((N) => i(N, u.month), ["space", "enter"]))
705
742
  }, [
706
- A("div", kt, [
743
+ A("div", Yt, [
707
744
  q(Y(st), {
708
745
  class: "b-calendar-year-month__label",
709
746
  date: u.month,
710
747
  format: Y(lt).SHORT_MONTH
711
748
  }, null, 8, ["date", "format"])
712
749
  ])
713
- ], 42, Tt));
750
+ ], 42, $t));
714
751
  }
715
- }), $t = /* @__PURE__ */ ve(_t, [["__scopeId", "data-v-ad9a13f2"]]), pe = {
752
+ }), Pt = /* @__PURE__ */ ve(Rt, [["__scopeId", "data-v-ad9a13f2"]]), et = {
716
753
  "en-US": {
717
754
  nextYear: "Next year",
718
755
  previousYear: "Previous year"
@@ -725,10 +762,10 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
725
762
  nextYear: "Ano seguinte",
726
763
  previousYear: "Ano anterior"
727
764
  }
728
- }, Lt = { class: "b-calendar-year__year-selector" }, Yt = { class: "b-calendar-year__previous" }, At = { class: "b-calendar-year__next" }, Rt = ["aria-labelledby"], Ft = {
729
- i18n: { messages: pe }
730
- }, Pt = /* @__PURE__ */ fe({
731
- ...Ft,
765
+ }, Ft = { class: "b-calendar-year__year-selector" }, Bt = { class: "b-calendar-year__previous" }, Ct = { class: "b-calendar-year__next" }, Gt = ["aria-labelledby"], Ut = {
766
+ i18n: { messages: et }
767
+ }, jt = /* @__PURE__ */ De({
768
+ ...Ut,
732
769
  __name: "calendar-year",
733
770
  props: {
734
771
  endDate: { default: null },
@@ -742,22 +779,22 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
742
779
  },
743
780
  emits: ["input", "mouseover", "nextMonth", "previousMonth"],
744
781
  setup(e, { expose: t, emit: n }) {
745
- const a = Qe("bento-date-picker-year-label"), o = e, l = n, { t: i } = Fe({ messages: pe }), u = (M) => {
746
- var E;
747
- return o.min && M < o.min || o.max && M > o.max || ((E = o.isDateDisabled) == null ? void 0 : E.call(o, M));
748
- }, D = T(() => ["first", "unique"].includes(o.position)), g = T(() => ["last", "unique"].includes(o.position)), {
782
+ const a = Qe("bento-date-picker-year-label"), o = e, l = n, { t: i } = Pe({ messages: et }), u = (M) => {
783
+ var b;
784
+ return o.min && M < o.min || o.max && M > o.max || ((b = o.isDateDisabled) == null ? void 0 : b.call(o, M));
785
+ }, f = k(() => ["first", "unique"].includes(o.position)), N = k(() => ["last", "unique"].includes(o.position)), {
749
786
  internalDate: m,
750
787
  // Calendar refs
751
788
  addDayRef: y,
752
789
  // Day navigation
753
- moveToPreviousMonth: f,
790
+ moveToPreviousMonth: D,
754
791
  moveToPreviousYear: c,
755
792
  moveToNextMonth: r,
756
793
  moveToNextYear: s,
757
794
  moveToFirstMonthOfYear: v,
758
- moveToLastMonthOfYear: L,
795
+ moveToLastMonthOfYear: $,
759
796
  focusOnDate: h
760
- } = xe(
797
+ } = pe(
761
798
  {
762
799
  currentSelectedDate: j(o, "startDate"),
763
800
  month: j(o, "year"),
@@ -766,35 +803,35 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
766
803
  l
767
804
  );
768
805
  t({ focusOnDate: h });
769
- const b = T(() => {
806
+ const E = k(() => {
770
807
  const M = [];
771
- let E = 0;
808
+ let b = 0;
772
809
  for (let I = 0; I < 3; I++) {
773
810
  const J = [];
774
811
  for (let C = 0; C < 4; C++)
775
- J.push(new Date(o.year.getFullYear(), E++, 1));
812
+ J.push(new Date(o.year.getFullYear(), b++, 1));
776
813
  M.push(J);
777
814
  }
778
815
  return M;
779
- }), F = (M) => !o.isRange || he(o.startDate, o.endDate) ? H.SINGLE : o.startDate && he(o.startDate, M) ? H.BEGINNING : o.endDate && he(o.endDate, M) ? H.END : o.startDate && o.endDate && Ee(M, { start: o.startDate, end: o.endDate }) ? H.MIDDLE : null, R = (M) => m.value && he(m.value, M) ? !0 : o.startDate && o.endDate && Ee(M, { start: o.startDate, end: o.endDate }), w = (M) => {
816
+ }), P = (M) => !o.isRange || he(o.startDate, o.endDate) ? H.SINGLE : o.startDate && he(o.startDate, M) ? H.BEGINNING : o.endDate && he(o.endDate, M) ? H.END : o.startDate && o.endDate && be(M, { start: o.startDate, end: o.endDate }) ? H.MIDDLE : null, R = (M) => m.value && he(m.value, M) ? !0 : o.startDate && o.endDate && be(M, { start: o.startDate, end: o.endDate }), w = (M) => {
780
817
  l("input", M);
781
- }, P = o.isRange ? {} : {
818
+ }, F = o.isRange ? {} : {
782
819
  "keydown:arrow-right": r,
783
- "keydown:arrow-left": f,
784
- "keydown:arrow-up": (M) => f(M, !1, 4),
820
+ "keydown:arrow-left": D,
821
+ "keydown:arrow-up": (M) => D(M, !1, 4),
785
822
  "keydown:arrow-down": (M) => r(M, !1, 4),
786
823
  "keydown:home": v,
787
- "keydown:end": L,
824
+ "keydown:end": $,
788
825
  "keydown:page-up": c,
789
826
  "keydown:page-down": s
790
827
  };
791
- return (M, E) => We((O(), $("div", Ve({ class: "b-calendar-year" }, Ke(Y(P), !0)), [
792
- A("div", Lt, [
793
- A("div", Yt, [
794
- D.value ? (O(), ee(we, {
828
+ return (M, b) => We((O(), L("div", Ve({ class: "b-calendar-year" }, Ke(Y(F), !0)), [
829
+ A("div", Ft, [
830
+ A("div", Bt, [
831
+ f.value ? (O(), ee(we, {
795
832
  key: 0,
796
833
  variant: "tertiary",
797
- onClick: E[0] || (E[0] = (I) => Y(c)(I, !0))
834
+ onClick: b[0] || (b[0] = (I) => Y(c)(I, !0))
798
835
  }, {
799
836
  iconLeft: Q(() => [
800
837
  q(Y(Ze), {
@@ -802,7 +839,7 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
802
839
  }, null, 8, ["svg-title"])
803
840
  ]),
804
841
  _: 1
805
- })) : re("", !0)
842
+ })) : oe("", !0)
806
843
  ]),
807
844
  q(Y(Re), {
808
845
  id: Y(a),
@@ -811,15 +848,15 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
811
848
  "aria-live": "polite"
812
849
  }, {
813
850
  default: Q(() => [
814
- Ne(be(M.year.getFullYear()), 1)
851
+ ge(Ee(M.year.getFullYear()), 1)
815
852
  ]),
816
853
  _: 1
817
854
  }, 8, ["id"]),
818
- A("div", At, [
819
- g.value ? (O(), ee(we, {
855
+ A("div", Ct, [
856
+ N.value ? (O(), ee(we, {
820
857
  key: 0,
821
858
  variant: "tertiary",
822
- onClick: E[1] || (E[1] = (I) => Y(s)(I, !0))
859
+ onClick: b[1] || (b[1] = (I) => Y(s)(I, !0))
823
860
  }, {
824
861
  iconLeft: Q(() => [
825
862
  q(Y(Xe), {
@@ -827,7 +864,7 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
827
864
  }, null, 8, ["svg-title"])
828
865
  ]),
829
866
  _: 1
830
- })) : re("", !0)
867
+ })) : oe("", !0)
831
868
  ])
832
869
  ]),
833
870
  A("table", {
@@ -836,26 +873,26 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
836
873
  "aria-labelledby": Y(a)
837
874
  }, [
838
875
  A("tbody", null, [
839
- (O(!0), $(Z, null, x(b.value, (I, J) => (O(), $("tr", { key: J }, [
840
- (O(!0), $(Z, null, x(I, (C, d) => (O(), ee($t, {
876
+ (O(!0), L(Z, null, x(E.value, (I, J) => (O(), L("tr", { key: J }, [
877
+ (O(!0), L(Z, null, x(I, (C, d) => (O(), ee(Pt, {
841
878
  ref_for: !0,
842
879
  ref: Y(y)(C),
843
880
  key: `calendar-month-${d}`,
844
881
  month: C,
845
882
  disabled: u(C),
846
883
  selected: R(C),
847
- variant: F(C),
884
+ variant: P(C),
848
885
  onClick: w,
849
- onMouseover: (N) => l("mouseover", C)
886
+ onMouseover: (g) => l("mouseover", C)
850
887
  }, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
851
888
  ]))), 128))
852
889
  ])
853
- ], 8, Rt)
890
+ ], 8, Gt)
854
891
  ], 16)), [
855
892
  [Y(ze)]
856
893
  ]);
857
894
  }
858
- }), je = /* @__PURE__ */ ve(Pt, [["__scopeId", "data-v-5ec13be4"]]), Bt = ({ selectedDate: e }, t) => {
895
+ }), He = /* @__PURE__ */ ve(jt, [["__scopeId", "data-v-5ec13be4"]]), Ht = ({ selectedDate: e }, t) => {
859
896
  const n = qe({
860
897
  startDate: null,
861
898
  endDate: null
@@ -876,141 +913,102 @@ const Tt = ["tabindex", "aria-selected"], kt = { class: "b-calendar-year-month__
876
913
  onMouseOver: () => {
877
914
  }
878
915
  };
879
- };
880
- function Ct(e, t) {
881
- return +k(e) < +k(t);
882
- }
883
- function Gt(e, t) {
884
- return +k(e) > +k(t);
885
- }
886
- function Ut(e, t, n) {
887
- const [a, o] = Oe(
888
- n == null ? void 0 : n.in,
889
- e,
890
- t
891
- ), l = ne(a), i = ne(o), u = +l - Pe(l), D = +i - Pe(i);
892
- return Math.round((u - D) / rt);
893
- }
894
- function jt(e, t, n) {
895
- const [a, o] = Oe(
896
- n == null ? void 0 : n.in,
897
- e,
898
- t
899
- ), l = He(a, o), i = Math.abs(
900
- Ut(a, o)
901
- );
902
- a.setDate(a.getDate() - l * i);
903
- const u = +(He(a, o) === -l), D = l * (i - u);
904
- return D === 0 ? 0 : D;
905
- }
906
- function He(e, t) {
907
- 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();
908
- return n < 0 ? -1 : n > 0 ? 1 : n;
909
- }
910
- function Te(e, t) {
911
- const n = k(e, t == null ? void 0 : t.in), a = n.getMonth(), o = a - a % 3 + 3;
912
- return n.setMonth(o, 0), n.setHours(23, 59, 59, 999), n;
913
- }
914
- function ke(e, t) {
915
- const n = k(e, t == null ? void 0 : t.in), a = n.getMonth(), o = a - a % 3;
916
- return n.setMonth(o, 1), n.setHours(0, 0, 0, 0), n;
917
- }
918
- const Ht = (e) => {
919
- const t = (m, y, f, c) => {
920
- let r = ye(m, { weekStartsOn: e }), s = Me(y || m, { weekStartsOn: e });
921
- const v = f && r < f, L = c && s > c;
922
- return v && (r = ye(f, { weekStartsOn: e })), L && (s = Me(c, { weekStartsOn: e })), r > s && (v ? s = Me(r, { weekStartsOn: e }) : r = ye(s, { weekStartsOn: e })), { startDate: r, endDate: s };
923
- }, n = (m, y, f, c) => {
924
- let r = ge(m), s = Ie(y || m);
925
- const v = f && r < f, L = c && s > c;
926
- return v && (r = ge(f)), L && (s = Ie(c)), r > s && (v ? s = Ie(r) : r = ge(s)), { startDate: r, endDate: s };
927
- }, a = (m, y, f, c) => {
928
- let r = ke(m), s = Te(y || m);
929
- const v = f instanceof Date && r < f, L = c instanceof Date && s > c;
930
- return v && (r = ke(f)), L && (s = Te(c)), r > s && (v ? s = Te(r) : r = ke(s)), { startDate: r, endDate: s };
916
+ }, Wt = (e) => {
917
+ const t = (m, y, D, c) => {
918
+ let r = ye(m, { weekStartsOn: e }), s = Ne(y || m, { weekStartsOn: e });
919
+ const v = D && r < D, $ = c && s > c;
920
+ return v && (r = ye(D, { weekStartsOn: e })), $ && (s = Ne(c, { weekStartsOn: e })), r > s && (v ? s = Ne(r, { weekStartsOn: e }) : r = ye(s, { weekStartsOn: e })), { startDate: r, endDate: s };
921
+ }, n = (m, y, D, c) => {
922
+ let r = Me(m), s = Ie(y || m);
923
+ const v = D && r < D, $ = c && s > c;
924
+ return v && (r = Me(D)), $ && (s = Ie(c)), r > s && (v ? s = Ie(r) : r = Me(s)), { startDate: r, endDate: s };
925
+ }, a = (m, y, D, c) => {
926
+ let r = Se(m), s = ke(y || m);
927
+ const v = D instanceof Date && r < D, $ = c instanceof Date && s > c;
928
+ return v && (r = Se(D)), $ && (s = ke(c)), r > s && (v ? s = ke(r) : r = Se(s)), { startDate: r, endDate: s };
931
929
  };
932
930
  return {
933
931
  adjustDateForWeekly: t,
934
932
  adjustDateForMonthly: n,
935
933
  adjustDateForQuarterly: a,
936
- adjustStartDateInputForWeekly: (m, y, f, c) => {
937
- const { startDate: r } = t(new Date(m), null, f, c);
934
+ adjustStartDateInputForWeekly: (m, y, D, c) => {
935
+ const { startDate: r } = t(new Date(m), null, D, c);
938
936
  return y(r);
939
937
  },
940
- adjustEndDateInputForWeekly: (m, y, f, c) => {
941
- const { endDate: r } = t(new Date(m), null, f, c);
938
+ adjustEndDateInputForWeekly: (m, y, D, c) => {
939
+ const { endDate: r } = t(new Date(m), null, D, c);
942
940
  return y(r);
943
941
  },
944
- adjustStartDateInputForMonthly: (m, y, f, c) => {
945
- const { startDate: r } = n(new Date(m), null, f, c);
942
+ adjustStartDateInputForMonthly: (m, y, D, c) => {
943
+ const { startDate: r } = n(new Date(m), null, D, c);
946
944
  return y(r);
947
945
  },
948
- adjustEndDateInputForMonthly: (m, y, f, c) => {
949
- const { endDate: r } = n(new Date(m), null, f, c);
946
+ adjustEndDateInputForMonthly: (m, y, D, c) => {
947
+ const { endDate: r } = n(new Date(m), null, D, c);
950
948
  return y(r);
951
949
  },
952
- adjustStartDateInputForQuarterly: (m, y, f, c) => {
953
- const { startDate: r } = a(new Date(m), null, f, c);
950
+ adjustStartDateInputForQuarterly: (m, y, D, c) => {
951
+ const { startDate: r } = a(new Date(m), null, D, c);
954
952
  return y(r);
955
953
  },
956
- adjustEndDateInputForQuarterly: (m, y, f, c) => {
957
- const { endDate: r } = a(new Date(m), null, f, c);
954
+ adjustEndDateInputForQuarterly: (m, y, D, c) => {
955
+ const { endDate: r } = a(new Date(m), null, D, c);
958
956
  return y(r);
959
957
  }
960
958
  };
961
- }, Wt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: l, max: i }, u) => {
962
- const { adjustDateForWeekly: m, adjustDateForMonthly: y, adjustDateForQuarterly: f } = Ht(o), c = qe({
959
+ }, Vt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: l, max: i }, u) => {
960
+ const { adjustDateForWeekly: m, adjustDateForMonthly: y, adjustDateForQuarterly: D } = Wt(o), c = qe({
963
961
  startDate: null,
964
962
  endDate: null
965
963
  }), r = X(null);
966
964
  le(
967
965
  () => e.value,
968
966
  () => {
969
- let { startDate: h = null, endDate: b = null } = e.value || {};
970
- h && (h = ne(h)), b && (b = ne(b)), !(h && t && t(h) || b && t && t(b) || h && b && Gt(h, b)) && (c.startDate = h, c.endDate = b);
967
+ let { startDate: h = null, endDate: E = null } = e.value || {};
968
+ h && (h = ne(h)), E && (E = ne(E)), !(h && t && t(h) || E && t && t(E) || h && E && ct(h, E)) && (c.startDate = h, c.endDate = E);
971
969
  },
972
970
  { immediate: !0, deep: !0 }
973
971
  );
974
- const s = (h, b, F) => {
975
- if (c.startDate = h, c.endDate = b, n.value) {
976
- const R = jt(b, h) - n.value;
977
- R > 0 && (F < 1 ? (c.startDate = h, c.endDate = Le(b, R)) : (c.startDate = De(h, R), c.endDate = b));
972
+ const s = (h, E, P) => {
973
+ if (c.startDate = h, c.endDate = E, n.value) {
974
+ const R = it(E, h) - n.value;
975
+ R > 0 && (P < 1 ? (c.startDate = h, c.endDate = _e(E, R)) : (c.startDate = fe(h, R), c.endDate = E));
978
976
  }
979
977
  u(z.START_DATE_SELECTED, c.startDate), u(z.END_DATE_SELECTED, c.endDate);
980
978
  }, v = (h) => {
981
- var b, F, R, w, P, M;
979
+ var E, P, R, w, F, M;
982
980
  if (!(!r.value || t && t(h)))
983
- if (Ct(h, r.value)) {
984
- if (((b = a == null ? void 0 : a.value) == null ? void 0 : b.type) === "weekly") {
985
- const { startDate: E, endDate: I } = m(h, r.value, l.value, i.value);
986
- s(E, I, -1);
981
+ if (ft(h, r.value)) {
982
+ if (((E = a == null ? void 0 : a.value) == null ? void 0 : E.type) === "weekly") {
983
+ const { startDate: b, endDate: I } = m(h, r.value, l.value, i.value);
984
+ s(b, I, -1);
987
985
  return;
988
986
  }
989
- if (((F = a == null ? void 0 : a.value) == null ? void 0 : F.type) === "monthly") {
990
- const { startDate: E, endDate: I } = y(h, r.value, l.value, i.value);
991
- s(E, I, -1);
987
+ if (((P = a == null ? void 0 : a.value) == null ? void 0 : P.type) === "monthly") {
988
+ const { startDate: b, endDate: I } = y(h, r.value, l.value, i.value);
989
+ s(b, I, -1);
992
990
  return;
993
991
  }
994
992
  if (((R = a == null ? void 0 : a.value) == null ? void 0 : R.type) === "quarterly") {
995
- const { startDate: E, endDate: I } = f(h, r.value, l.value, i.value);
996
- s(E, I, -1);
993
+ const { startDate: b, endDate: I } = D(h, r.value, l.value, i.value);
994
+ s(b, I, -1);
997
995
  return;
998
996
  }
999
997
  s(h, r.value, -1);
1000
998
  } else {
1001
999
  if (((w = a == null ? void 0 : a.value) == null ? void 0 : w.type) === "weekly") {
1002
- const { startDate: E, endDate: I } = m(r.value, h, l.value, i.value);
1003
- s(E, I, 1);
1000
+ const { startDate: b, endDate: I } = m(r.value, h, l.value, i.value);
1001
+ s(b, I, 1);
1004
1002
  return;
1005
1003
  }
1006
- if (((P = a == null ? void 0 : a.value) == null ? void 0 : P.type) === "monthly") {
1007
- const { startDate: E, endDate: I } = y(r.value, h, l.value, i.value);
1008
- s(E, I, 1);
1004
+ if (((F = a == null ? void 0 : a.value) == null ? void 0 : F.type) === "monthly") {
1005
+ const { startDate: b, endDate: I } = y(r.value, h, l.value, i.value);
1006
+ s(b, I, 1);
1009
1007
  return;
1010
1008
  }
1011
1009
  if (((M = a == null ? void 0 : a.value) == null ? void 0 : M.type) === "quarterly") {
1012
- const { startDate: E, endDate: I } = f(r.value, h, l.value, i.value);
1013
- s(E, I, 1);
1010
+ const { startDate: b, endDate: I } = D(r.value, h, l.value, i.value);
1011
+ s(b, I, 1);
1014
1012
  return;
1015
1013
  }
1016
1014
  s(r.value, h, 1);
@@ -1019,38 +1017,31 @@ const Ht = (e) => {
1019
1017
  return {
1020
1018
  internalValue: c,
1021
1019
  onDateInput: (h) => {
1022
- var b, F, R;
1020
+ var E, P, R;
1023
1021
  if (r.value)
1024
1022
  r.value = null, u(z.INPUT, c);
1025
1023
  else {
1026
1024
  let w = h;
1027
- if (((b = a == null ? void 0 : a.value) == null ? void 0 : b.type) === "weekly") {
1028
- const { startDate: P, endDate: M } = m(h);
1029
- w = P, s(w, M);
1025
+ if (((E = a == null ? void 0 : a.value) == null ? void 0 : E.type) === "weekly") {
1026
+ const { startDate: F, endDate: M } = m(h);
1027
+ w = F, s(w, M);
1030
1028
  }
1031
- if (((F = a == null ? void 0 : a.value) == null ? void 0 : F.type) === "monthly") {
1032
- const { startDate: P, endDate: M } = y(h);
1033
- w = P, s(w, M);
1029
+ if (((P = a == null ? void 0 : a.value) == null ? void 0 : P.type) === "monthly") {
1030
+ const { startDate: F, endDate: M } = y(h);
1031
+ w = F, s(w, M);
1034
1032
  }
1035
1033
  if (((R = a == null ? void 0 : a.value) == null ? void 0 : R.type) === "quarterly") {
1036
- const { startDate: P, endDate: M } = f(h);
1037
- w = P, s(w, M);
1034
+ const { startDate: F, endDate: M } = D(h);
1035
+ w = F, s(w, M);
1038
1036
  }
1039
1037
  r.value = w, v(w);
1040
1038
  }
1041
1039
  },
1042
1040
  onMouseOver: v
1043
1041
  };
1044
- };
1045
- function et(e, t, n) {
1046
- return te(e, t * 12, n);
1047
- }
1048
- function Vt(e, t, n) {
1049
- return et(e, -t, n);
1050
- }
1051
- const Kt = fe({
1042
+ }, Kt = De({
1052
1043
  name: "calendar",
1053
- components: { CalendarMonth: Ue, CalendarYear: je },
1044
+ components: { CalendarMonth: je, CalendarYear: He },
1054
1045
  props: {
1055
1046
  /**
1056
1047
  * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
@@ -1131,17 +1122,17 @@ const Kt = fe({
1131
1122
  if (e.isRange)
1132
1123
  a.value = e != null && e.showEndDateOnOpen && ((r = e.value) != null && r.endDate) ? (s = e.value) == null ? void 0 : s.endDate : ((v = e.value) == null ? void 0 : v.startDate) || /* @__PURE__ */ new Date();
1133
1124
  else {
1134
- const L = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1135
- a.value = e.value || L;
1125
+ const $ = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1126
+ a.value = e.value || $;
1136
1127
  }
1137
1128
  },
1138
1129
  { immediate: !0, deep: !0 }
1139
1130
  );
1140
- const o = T(
1141
- () => e.variant === $e.MONTH ? je : Ue
1142
- ), l = T(() => ({
1131
+ const o = k(
1132
+ () => e.variant === $e.MONTH ? He : je
1133
+ ), l = k(() => ({
1143
1134
  "b-calendar__range": e.isRange
1144
- })), { internalValue: i, onDateInput: u, onMouseOver: D } = e.isRange ? Wt(
1135
+ })), { internalValue: i, onDateInput: u, onMouseOver: f } = e.isRange ? Vt(
1145
1136
  {
1146
1137
  selectedDate: j(e, "value"),
1147
1138
  isDateDisabled: e.isDateDisabled,
@@ -1152,18 +1143,18 @@ const Kt = fe({
1152
1143
  max: j(e, "max")
1153
1144
  },
1154
1145
  t
1155
- ) : Bt(
1146
+ ) : Ht(
1156
1147
  {
1157
1148
  selectedDate: j(e, "value"),
1158
1149
  firstDayOfWeek: e.firstDayOfWeek
1159
1150
  },
1160
1151
  t
1161
- ), g = (r) => e.numberOfMonths === 1 ? se.UNIQUE : r === 0 ? se.FIRST : r === e.numberOfMonths - 1 ? se.LAST : se.MIDDLE, m = T(() => (r) => {
1152
+ ), N = (r) => e.numberOfMonths === 1 ? se.UNIQUE : r === 0 ? se.FIRST : r === e.numberOfMonths - 1 ? se.LAST : se.MIDDLE, m = k(() => (r) => {
1162
1153
  const s = e != null && e.showEndDateOnOpen && e.isRange ? ce(a.value, e.numberOfMonths - 1) : a.value;
1163
1154
  return te(s, r);
1164
- }), y = T(() => (r) => {
1165
- const s = e != null && e.showEndDateOnOpen ? Vt(a.value, e.numberOfMonths - 1) : a.value;
1166
- return et(s, r);
1155
+ }), y = k(() => (r) => {
1156
+ const s = e != null && e.showEndDateOnOpen ? ht(a.value, e.numberOfMonths - 1) : a.value;
1157
+ return xe(s, r);
1167
1158
  });
1168
1159
  return {
1169
1160
  // Refs
@@ -1176,10 +1167,10 @@ const Kt = fe({
1176
1167
  // Methods
1177
1168
  calculateOffsetMonth: m,
1178
1169
  calculateOffsetYear: y,
1179
- calendarPosition: g,
1170
+ calendarPosition: N,
1180
1171
  // Events
1181
1172
  onDateInput: u,
1182
- onMouseOver: D,
1173
+ onMouseOver: f,
1183
1174
  calculateNextMonths: (r = 1) => {
1184
1175
  a.value = te(a.value, r);
1185
1176
  },
@@ -1190,10 +1181,10 @@ const Kt = fe({
1190
1181
  }
1191
1182
  });
1192
1183
  function qt(e, t, n, a, o, l) {
1193
- return O(), $("div", {
1184
+ return O(), L("div", {
1194
1185
  class: Ae(["b-calendar", e.conditionalClasses])
1195
1186
  }, [
1196
- (O(!0), $(Z, null, x(e.numberOfMonths, (i, u) => (O(), ee(at(e.calendarComponent), {
1187
+ (O(!0), L(Z, null, x(e.numberOfMonths, (i, u) => (O(), ee(at(e.calendarComponent), {
1197
1188
  ref_for: !0,
1198
1189
  ref: e.numberOfMonths === 1 ? "calendarRef" : null,
1199
1190
  key: `calendar-${u}`,
@@ -1216,28 +1207,28 @@ function qt(e, t, n, a, o, l) {
1216
1207
  }, 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))
1217
1208
  ], 2);
1218
1209
  }
1219
- const un = /* @__PURE__ */ ve(Kt, [["render", qt], ["__scopeId", "data-v-0efc3efc"]]);
1210
+ const ln = /* @__PURE__ */ ve(Kt, [["render", qt], ["__scopeId", "data-v-0efc3efc"]]);
1220
1211
  export {
1221
1212
  p as C,
1222
1213
  $e as a,
1223
- un as b,
1214
+ ln as b,
1224
1215
  z as c,
1225
1216
  se as d,
1226
- sn as e,
1227
- ne as f,
1228
- _e as g,
1229
- te as h,
1217
+ te as e,
1218
+ Se as f,
1219
+ Le as g,
1220
+ ne as h,
1230
1221
  me as i,
1231
- De as j,
1232
- Me as k,
1233
- Le as l,
1222
+ fe as j,
1223
+ Ne as k,
1224
+ _e as l,
1234
1225
  ce as m,
1235
1226
  ke as n,
1236
- Te as o,
1237
- ln as p,
1238
- Ut as q,
1239
- Ce as r,
1240
- ge as s,
1241
- Ht as u
1227
+ sn as o,
1228
+ Dt as p,
1229
+ ut as q,
1230
+ Ge as r,
1231
+ Me as s,
1232
+ Wt as u
1242
1233
  };
1243
- //# sourceMappingURL=calendar.DzeJoNc2.js.map
1234
+ //# sourceMappingURL=calendar.vM3abC8y.js.map