@adyen/bento-vue3 1.91.0 → 1.92.1

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 (226) hide show
  1. package/dist/@types/index.d.ts +128 -137
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/alert.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/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/checkbox-group.css +1 -1
  11. package/dist/assets/checkbox.css +1 -1
  12. package/dist/assets/data-grid.css +1 -1
  13. package/dist/assets/date-range-picker.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown-tag.css +1 -1
  16. package/dist/assets/dropdown.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/input-field-password.css +1 -1
  20. package/dist/assets/input-field-phone-number.css +1 -1
  21. package/dist/assets/input-field.css +1 -1
  22. package/dist/assets/inspector.css +1 -1
  23. package/dist/assets/modal-fullscreen.css +1 -1
  24. package/dist/assets/secondary-nav.css +1 -1
  25. package/dist/assets/sidepanel.css +1 -1
  26. package/dist/assets/textarea.css +1 -1
  27. package/dist/assets/toggle.css +1 -1
  28. package/dist/assets/use-cached-selected-values.css +1 -1
  29. package/dist/button.js +1 -1
  30. package/dist/card.js +1 -1
  31. package/dist/checkbox.js +2 -2
  32. package/dist/chunks/{action-bar.BPS3wPde.js → action-bar.BxyRAZn1.js} +3 -3
  33. package/dist/chunks/{action-bar.BPS3wPde.js.map → action-bar.BxyRAZn1.js.map} +1 -1
  34. package/dist/chunks/{ai-tag.D7shWB_x.js → ai-tag.CpeZm2Yf.js} +2 -2
  35. package/dist/chunks/{ai-tag.D7shWB_x.js.map → ai-tag.CpeZm2Yf.js.map} +1 -1
  36. package/dist/chunks/{alert.CFWN2E0b.js → alert.RD0qOLhx.js} +91 -69
  37. package/dist/chunks/alert.RD0qOLhx.js.map +1 -0
  38. package/dist/chunks/{base-modal.BxcS7Pao.js → base-modal.C8Rsc2oO.js} +3 -3
  39. package/dist/chunks/base-modal.C8Rsc2oO.js.map +1 -0
  40. package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js → button-actions-with-menu.KaWdHibo.js} +2 -2
  41. package/dist/chunks/{button-actions-with-menu.BKdNXYgU.js.map → button-actions-with-menu.KaWdHibo.js.map} +1 -1
  42. package/dist/chunks/{button-actions.DLiM8KZL.js → button-actions.7Oi2Ra4p.js} +87 -93
  43. package/dist/chunks/button-actions.7Oi2Ra4p.js.map +1 -0
  44. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  45. package/dist/chunks/button.DWF7FSIw.js.map +1 -1
  46. package/dist/chunks/{calendar.qm-kFNQv.js → calendar.DfMwuOIR.js} +516 -456
  47. package/dist/chunks/calendar.DfMwuOIR.js.map +1 -0
  48. package/dist/chunks/{card.BEChcEqg.js → card.7q8tTfjG.js} +2 -2
  49. package/dist/chunks/card.7q8tTfjG.js.map +1 -0
  50. package/dist/chunks/{checkbox-group.i3W8WO-7.js → checkbox-group.CgrmMYbN.js} +4 -4
  51. package/dist/chunks/checkbox-group.CgrmMYbN.js.map +1 -0
  52. package/dist/chunks/{checkbox.BPrymcRl.js → checkbox.CdkqCAAL.js} +3 -5
  53. package/dist/chunks/checkbox.CdkqCAAL.js.map +1 -0
  54. package/dist/chunks/{code-snippet.BG5ZmCrb.js → code-snippet.KKUb5A6A.js} +3 -3
  55. package/dist/chunks/code-snippet.KKUb5A6A.js.map +1 -0
  56. package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
  57. package/dist/chunks/{constructNow.D9uRk678.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
  58. package/dist/chunks/country.types.6a7xxZIR.js.map +1 -1
  59. package/dist/chunks/{dashboard-section.C7mfUXOl.js → dashboard-section.kwKlujP-.js} +2 -2
  60. package/dist/chunks/{dashboard-section.C7mfUXOl.js.map → dashboard-section.kwKlujP-.js.map} +1 -1
  61. package/dist/chunks/{dashed-underline.B50DIXjK.js → dashed-underline.ADDEdamG.js} +2 -2
  62. package/dist/chunks/{dashed-underline.B50DIXjK.js.map → dashed-underline.ADDEdamG.js.map} +1 -1
  63. package/dist/chunks/{data-grid-template.CKdZb6EN.js → data-grid-template.C69yN3ZR.js} +2 -2
  64. package/dist/chunks/{data-grid-template.CKdZb6EN.js.map → data-grid-template.C69yN3ZR.js.map} +1 -1
  65. package/dist/chunks/{data-grid.DvMe72LK.js → data-grid.BL4DPi_-.js} +464 -465
  66. package/dist/chunks/data-grid.BL4DPi_-.js.map +1 -0
  67. package/dist/chunks/{date-picker.CidHad1p.js → date-picker.Cgr0Sbo0.js} +16 -16
  68. package/dist/chunks/{date-picker.CidHad1p.js.map → date-picker.Cgr0Sbo0.js.map} +1 -1
  69. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  70. package/dist/chunks/date-range-picker.Cpw7J4d1.js +1038 -0
  71. package/dist/chunks/date-range-picker.Cpw7J4d1.js.map +1 -0
  72. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  73. package/dist/chunks/{de.DXrHnkLX.js → de.ctR_lBqr.js} +2 -2
  74. package/dist/chunks/{de.DXrHnkLX.js.map → de.ctR_lBqr.js.map} +1 -1
  75. package/dist/chunks/{differenceInMonths.s_znQQpw.js → differenceInMonths.yz4Dfe-b.js} +13 -12
  76. package/dist/chunks/{differenceInMonths.s_znQQpw.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
  77. package/dist/chunks/{draggable-handle.CySRx1tb.js → draggable-handle.BWHOlabB.js} +2 -2
  78. package/dist/chunks/{draggable-handle.CySRx1tb.js.map → draggable-handle.BWHOlabB.js.map} +1 -1
  79. package/dist/chunks/{dropdown-tag.wcJ6Mgqe.js → dropdown-tag.DqhjcJXf.js} +6 -6
  80. package/dist/chunks/dropdown-tag.DqhjcJXf.js.map +1 -0
  81. package/dist/chunks/{dropdown.DHoL50gV.js → dropdown.C323NUqq.js} +411 -407
  82. package/dist/chunks/dropdown.C323NUqq.js.map +1 -0
  83. package/dist/chunks/{en-GB.CBpvhDYV.js → en-GB.BsQNm5GT.js} +2 -2
  84. package/dist/chunks/{en-GB.CBpvhDYV.js.map → en-GB.BsQNm5GT.js.map} +1 -1
  85. package/dist/chunks/{en-US.CCazFVNP.js → en-US.BR6y7foR.js} +5 -5
  86. package/dist/chunks/{en-US.CCazFVNP.js.map → en-US.BR6y7foR.js.map} +1 -1
  87. package/dist/chunks/{es.CoF2PB8b.js → es.DxqH-QhP.js} +2 -2
  88. package/dist/chunks/{es.CoF2PB8b.js.map → es.DxqH-QhP.js.map} +1 -1
  89. package/dist/chunks/{file-uploader.Dbg3vfZ_.js → file-uploader.B5_l2uQO.js} +4 -5
  90. package/dist/chunks/{file-uploader.Dbg3vfZ_.js.map → file-uploader.B5_l2uQO.js.map} +1 -1
  91. package/dist/chunks/{filter-bar.Dt-cU3zy.js → filter-bar.CuZruHzo.js} +18 -18
  92. package/dist/chunks/filter-bar.CuZruHzo.js.map +1 -0
  93. package/dist/chunks/{footer-actions.CYBdKDPo.js → footer-actions.4Qj_I3cd.js} +2 -2
  94. package/dist/chunks/{footer-actions.CYBdKDPo.js.map → footer-actions.4Qj_I3cd.js.map} +1 -1
  95. package/dist/chunks/{form-layout-title.B3ePK3yi.js → form-layout-title.B712PesH.js} +2 -2
  96. package/dist/chunks/{form-layout-title.B3ePK3yi.js.map → form-layout-title.B712PesH.js.map} +1 -1
  97. package/dist/chunks/{fr.CJXL-Ief.js → fr.DJtn8ron.js} +2 -2
  98. package/dist/chunks/{fr.CJXL-Ief.js.map → fr.DJtn8ron.js.map} +1 -1
  99. package/dist/chunks/{header-meta.COak4D8-.js → header-meta.BJjFOcxY.js} +14 -14
  100. package/dist/chunks/{header-meta.COak4D8-.js.map → header-meta.BJjFOcxY.js.map} +1 -1
  101. package/dist/chunks/{header-with-views.DqioajcO.js → header-with-views.BI6uh8o0.js} +8 -8
  102. package/dist/chunks/{header-with-views.DqioajcO.js.map → header-with-views.BI6uh8o0.js.map} +1 -1
  103. package/dist/chunks/{header.C21yzWrk.js → header.5RQulwlL.js} +3 -3
  104. package/dist/chunks/header.5RQulwlL.js.map +1 -0
  105. package/dist/chunks/{input-field-password.DyUphhxB.js → input-field-password.CbDeLcL2.js} +5 -5
  106. package/dist/chunks/input-field-password.CbDeLcL2.js.map +1 -0
  107. package/dist/chunks/{input-field-phone-number.BXVaC5ra.js → input-field-phone-number.DzruT8x5.js} +4 -4
  108. package/dist/chunks/{input-field-phone-number.BXVaC5ra.js.map → input-field-phone-number.DzruT8x5.js.map} +1 -1
  109. package/dist/chunks/{input-field.DkUFvIWt.js → input-field.zwUuajnC.js} +122 -114
  110. package/dist/chunks/input-field.zwUuajnC.js.map +1 -0
  111. package/dist/chunks/{input-time.WI_qdwJc.js → input-time.RUecHW9h.js} +4 -4
  112. package/dist/chunks/{input-time.WI_qdwJc.js.map → input-time.RUecHW9h.js.map} +1 -1
  113. package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
  114. package/dist/chunks/{isSameWeek.Dj6luS8h.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
  115. package/dist/chunks/{it.20Y7h-bF.js → it.keS7oN5l.js} +3 -3
  116. package/dist/chunks/{it.20Y7h-bF.js.map → it.keS7oN5l.js.map} +1 -1
  117. package/dist/chunks/{ja.DXlq0H98.js → ja.cLwacUE6.js} +2 -2
  118. package/dist/chunks/{ja.DXlq0H98.js.map → ja.cLwacUE6.js.map} +1 -1
  119. package/dist/chunks/link.D6D6YGsN.js.map +1 -1
  120. package/dist/chunks/{modal-fullscreen.c6QphYQo.js → modal-fullscreen.CepaWyoi.js} +2 -2
  121. package/dist/chunks/{modal-fullscreen.c6QphYQo.js.map → modal-fullscreen.CepaWyoi.js.map} +1 -1
  122. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js} +49 -47
  123. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.ImqHKH-g.js.map → modal.vue_vue_type_script_setup_true_lang.BW9Ff59H.js.map} +1 -1
  124. package/dist/chunks/{pagination.Cu85Lqms.js → pagination.BJtoP8At.js} +2 -2
  125. package/dist/chunks/{pagination.Cu85Lqms.js.map → pagination.BJtoP8At.js.map} +1 -1
  126. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  127. package/dist/chunks/popover.types.D8tHtFl3.js.map +1 -1
  128. package/dist/chunks/popper-container.DMN8n5iC.js.map +1 -1
  129. package/dist/chunks/promo-banner.-H4r_cwj.js.map +1 -1
  130. package/dist/chunks/{pt-BR.DmhmCzxE.js → pt-BR.ChPOra5s.js} +2 -2
  131. package/dist/chunks/{pt-BR.DmhmCzxE.js.map → pt-BR.ChPOra5s.js.map} +1 -1
  132. package/dist/chunks/radio-group.CfMr1fmW.js.map +1 -1
  133. package/dist/chunks/{rich-text-editor.Bf9EWzNk.js → rich-text-editor.CSvPpLth.js} +3 -3
  134. package/dist/chunks/{rich-text-editor.Bf9EWzNk.js.map → rich-text-editor.CSvPpLth.js.map} +1 -1
  135. package/dist/chunks/{search-bar.p6kHCCvT.js → search-bar.CGXKk-gv.js} +4 -4
  136. package/dist/chunks/{search-bar.p6kHCCvT.js.map → search-bar.CGXKk-gv.js.map} +1 -1
  137. package/dist/chunks/{secondary-nav.CaxiyVaO.js → secondary-nav.DkcoRjfJ.js} +2 -2
  138. package/dist/chunks/{secondary-nav.CaxiyVaO.js.map → secondary-nav.DkcoRjfJ.js.map} +1 -1
  139. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  140. package/dist/chunks/{sidepanel.CAVhSs-O.js → sidepanel.S037xghX.js} +3 -3
  141. package/dist/chunks/{sidepanel.CAVhSs-O.js.map → sidepanel.S037xghX.js.map} +1 -1
  142. package/dist/chunks/{startOfWeek.Cvmo-f5J.js → startOfWeek.muMEhS7U.js} +2 -2
  143. package/dist/chunks/{startOfWeek.Cvmo-f5J.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
  144. package/dist/chunks/status.types.Dx8MDhEH.js.map +1 -1
  145. package/dist/chunks/{summary-grid.types.CDithi8M.js → summary-grid.types.D1JQ_jtv.js} +2 -2
  146. package/dist/chunks/{summary-grid.types.CDithi8M.js.map → summary-grid.types.D1JQ_jtv.js.map} +1 -1
  147. package/dist/chunks/tag.YN2r-Pp3.js.map +1 -1
  148. package/dist/chunks/{textarea.JGXAlpx9.js → textarea.-6FHesSp.js} +2 -2
  149. package/dist/chunks/textarea.-6FHesSp.js.map +1 -0
  150. package/dist/chunks/{timeline-item.BNFPpQz1.js → timeline-item.BJaFr2_Y.js} +5 -5
  151. package/dist/chunks/timeline-item.BJaFr2_Y.js.map +1 -0
  152. package/dist/chunks/{toggle.BQoprdX-.js → toggle.BdcgY15I.js} +3 -5
  153. package/dist/chunks/toggle.BdcgY15I.js.map +1 -0
  154. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -1
  155. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js} +2 -2
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.C1cF-adv.js.map → tutorial.vue_vue_type_script_setup_true_lang.D_Z1zKam.js.map} +1 -1
  157. package/dist/chunks/typography.B3J6_tYk.js.map +1 -1
  158. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js +1740 -0
  159. package/dist/chunks/use-cached-selected-values.DUWGSMvO.js.map +1 -0
  160. package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js → use-date-input-formatter.BH4hdEJW.js} +4 -4
  161. package/dist/chunks/{use-date-input-formatter.BOuXpRb-.js.map → use-date-input-formatter.BH4hdEJW.js.map} +1 -1
  162. package/dist/chunks/{zh-CN.Ce34mXsX.js → zh-CN.ZG6obniO.js} +3 -3
  163. package/dist/chunks/{zh-CN.Ce34mXsX.js.map → zh-CN.ZG6obniO.js.map} +1 -1
  164. package/dist/code-snippet.js +1 -1
  165. package/dist/dashboard-template.js +1 -1
  166. package/dist/dashed-underline.js +1 -1
  167. package/dist/data-grid-template.js +1 -1
  168. package/dist/data-grid.js +1 -1
  169. package/dist/date-picker.js +2 -2
  170. package/dist/date-range-picker.js +2 -2
  171. package/dist/draggable.js +1 -1
  172. package/dist/dropdown.js +3 -3
  173. package/dist/file-uploader.js +1 -1
  174. package/dist/filter-bar.js +1 -1
  175. package/dist/form-layout.js +1 -1
  176. package/dist/header-with-views.js +1 -1
  177. package/dist/header.js +1 -1
  178. package/dist/index.js +248 -248
  179. package/dist/index.js.map +1 -1
  180. package/dist/input-field-password.js +1 -1
  181. package/dist/input-field-phone-number.js +1 -1
  182. package/dist/input-field.js +1 -1
  183. package/dist/input-time.js +1 -1
  184. package/dist/internal.js +5 -5
  185. package/dist/menu.js +1 -1
  186. package/dist/modal-fullscreen.js +1 -1
  187. package/dist/modal.js +2 -2
  188. package/dist/pagination.js +1 -1
  189. package/dist/popover.js +1 -1
  190. package/dist/rich-text-editor.js +1 -1
  191. package/dist/search-bar.js +2 -2
  192. package/dist/secondary-nav.js +1 -1
  193. package/dist/sidepanel.js +1 -1
  194. package/dist/summary-grid.js +1 -1
  195. package/dist/textarea.js +1 -1
  196. package/dist/timeline.js +1 -1
  197. package/dist/toggle.js +1 -1
  198. package/dist/tutorial.js +1 -1
  199. package/dist/web-types.json +1 -1
  200. package/package.json +5 -5
  201. package/dist/chunks/alert.CFWN2E0b.js.map +0 -1
  202. package/dist/chunks/base-modal.BxcS7Pao.js.map +0 -1
  203. package/dist/chunks/button-actions.DLiM8KZL.js.map +0 -1
  204. package/dist/chunks/calendar.qm-kFNQv.js.map +0 -1
  205. package/dist/chunks/card.BEChcEqg.js.map +0 -1
  206. package/dist/chunks/checkbox-group.i3W8WO-7.js.map +0 -1
  207. package/dist/chunks/checkbox.BPrymcRl.js.map +0 -1
  208. package/dist/chunks/code-snippet.BG5ZmCrb.js.map +0 -1
  209. package/dist/chunks/constructNow.D9uRk678.js +0 -8
  210. package/dist/chunks/data-grid.DvMe72LK.js.map +0 -1
  211. package/dist/chunks/date-range-picker.c5OwESTS.js +0 -1027
  212. package/dist/chunks/date-range-picker.c5OwESTS.js.map +0 -1
  213. package/dist/chunks/dropdown-tag.wcJ6Mgqe.js.map +0 -1
  214. package/dist/chunks/dropdown.DHoL50gV.js.map +0 -1
  215. package/dist/chunks/filter-bar.Dt-cU3zy.js.map +0 -1
  216. package/dist/chunks/header.C21yzWrk.js.map +0 -1
  217. package/dist/chunks/input-field-password.DyUphhxB.js.map +0 -1
  218. package/dist/chunks/input-field.DkUFvIWt.js.map +0 -1
  219. package/dist/chunks/isSameWeek.Dj6luS8h.js +0 -14
  220. package/dist/chunks/textarea.JGXAlpx9.js.map +0 -1
  221. package/dist/chunks/timeline-item.BNFPpQz1.js.map +0 -1
  222. package/dist/chunks/toggle.BQoprdX-.js.map +0 -1
  223. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js +0 -1657
  224. package/dist/chunks/use-cached-selected-values.Bx8uuky9.js.map +0 -1
  225. package/dist/chunks/warning-filled.BzyK_mMj.js +0 -29
  226. package/dist/chunks/warning-filled.BzyK_mMj.js.map +0 -1
@@ -1,145 +1,169 @@
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";
1
+ import { defineComponent as De, computed as I, resolveComponent as te, openBlock as p, createElementBlock as k, withKeys as ne, normalizeClass as Ae, createElementVNode as _, createVNode as W, withCtx as x, createTextVNode as Oe, toDisplayString as Se, ref as Q, watch as re, nextTick as st, toRef as P, resolveDirective as ut, withDirectives as Ve, mergeProps as xe, toHandlers as qe, createBlock as Z, createCommentVNode as ae, Fragment as z, renderList as X, unref as w, reactive as Ke, resolveDynamicComponent as lt } from "vue";
2
2
  import { B as ke } from "./button.DWF7FSIw.js";
3
- import { B as Ae } from "./typography.B3J6_tYk.js";
4
- import { u as Re } from "./index.B875RXHM.js";
5
- import { g as qe } from "./generate-uid.DBWe4g6T.js";
6
- import { a as xe } from "./keyboard-navigation.DWmhelVv.js";
7
- import { a as ot } from "./index.DDwcHPb6.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";
3
+ import { B as Re } from "./typography.B3J6_tYk.js";
4
+ import { u as Fe } from "./index.B875RXHM.js";
5
+ import { g as Qe } from "./generate-uid.DBWe4g6T.js";
6
+ import { a as ze } from "./keyboard-navigation.DWmhelVv.js";
7
+ import { a as it } from "./index.DDwcHPb6.js";
8
+ import { t as S, c as ue, n as ve, k as Pe, w as dt, g as Xe } from "./en-US.BR6y7foR.js";
9
+ import { d as Ce, a as Me, b as ct } from "./differenceInMonths.yz4Dfe-b.js";
10
+ import { s as Ne } from "./startOfWeek.muMEhS7U.js";
11
+ import { a as Je, C as Ze } from "./chevron-left.C_vPW7OR.js";
12
+ import { _ as me } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
+ import { B as ft, a as Dt } from "./date.R2Wz6o7J.js";
14
14
  import "../assets/calendar.css";
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
- function ce(e, t, n) {
17
- const a = T(e, n?.in);
18
- return isNaN(t) ? se(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
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 || {}), J = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(J || {});
16
+ function le(e, t, n) {
17
+ const a = S(e, n?.in);
18
+ return isNaN(t) ? ue(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
19
19
  }
20
- function Z(e, t, n) {
21
- const a = T(e, n?.in);
22
- if (isNaN(t)) return se(e, NaN);
20
+ function V(e, t, n) {
21
+ const a = S(e, n?.in);
22
+ if (isNaN(t)) return ue(n?.in || e, NaN);
23
23
  if (!t)
24
24
  return a;
25
- const o = a.getDate(), s = se(e, a.getTime());
25
+ const o = a.getDate(), s = ue(n?.in || e, a.getTime());
26
26
  s.setMonth(a.getMonth() + t + 1, 0);
27
- const i = s.getDate();
28
- return o >= i ? s : (a.setFullYear(
27
+ const l = s.getDate();
28
+ return o >= l ? s : (a.setFullYear(
29
29
  s.getFullYear(),
30
30
  s.getMonth(),
31
31
  o
32
32
  ), a);
33
33
  }
34
34
  function ee(e, t) {
35
- const n = T(e, t?.in);
35
+ const n = S(e, t?.in);
36
36
  return n.setHours(0, 0, 0, 0), n;
37
37
  }
38
- function lt(e, t, n) {
39
- const [a, o] = Oe(
38
+ function vt(e, t, n) {
39
+ const [a, o] = ve(
40
40
  n?.in,
41
41
  e,
42
42
  t
43
- ), s = ee(a), i = ee(o), u = +s - Fe(s), f = +i - Fe(i);
44
- return Math.round((u - f) / rt);
43
+ ), s = ee(a), l = ee(o), u = +s - Pe(s), D = +l - Pe(l);
44
+ return Math.round((u - D) / dt);
45
+ }
46
+ function et(e, t, n) {
47
+ return V(e, t * 3, n);
48
+ }
49
+ function tt(e, t, n) {
50
+ return le(e, t * 7, n);
45
51
  }
46
- function Je(e, t, n) {
47
- return Z(e, t * 12, n);
52
+ function nt(e, t, n) {
53
+ return V(e, t * 12, n);
48
54
  }
49
- function me(e, t, n) {
50
- const [a, o] = Oe(
55
+ function ye(e, t, n) {
56
+ const [a, o] = ve(
51
57
  n?.in,
52
58
  e,
53
59
  t
54
60
  );
55
61
  return +ee(a) == +ee(o);
56
62
  }
57
- function ut(e, t, n) {
58
- const [a, o] = Oe(
63
+ function Be(e, t) {
64
+ const n = S(e, t?.in);
65
+ return Math.trunc(n.getMonth() / 3) + 1;
66
+ }
67
+ function mt(e, t, n) {
68
+ const [a, o] = ve(
69
+ n?.in,
70
+ e,
71
+ t
72
+ ), s = a.getFullYear() - o.getFullYear(), l = Be(a) - Be(o);
73
+ return s * 4 + l;
74
+ }
75
+ function at(e, t, n) {
76
+ const [a, o] = ve(
59
77
  n?.in,
60
78
  e,
61
79
  t
62
- ), s = Be(a, o), i = Math.abs(
63
- lt(a, o)
80
+ ), s = Ge(a, o), l = Math.abs(
81
+ vt(a, o)
64
82
  );
65
- a.setDate(a.getDate() - s * i);
66
- const u = +(Be(a, o) === -s), f = s * (i - u);
67
- return f === 0 ? 0 : f;
83
+ a.setDate(a.getDate() - s * l);
84
+ const u = +(Ge(a, o) === -s), D = s * (l - u);
85
+ return D === 0 ? 0 : D;
68
86
  }
69
- function Be(e, t) {
87
+ function Ge(e, t) {
70
88
  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
89
  return n < 0 ? -1 : n > 0 ? 1 : n;
72
90
  }
73
- function Ie(e, t) {
74
- const n = T(e, t?.in), a = n.getMonth(), o = a - a % 3;
91
+ function Ee(e, t) {
92
+ const n = S(e, t?.in), a = n.getMonth(), o = a - a % 3;
75
93
  return n.setMonth(o, 1), n.setHours(0, 0, 0, 0), n;
76
94
  }
77
- function ge(e, t) {
78
- const n = T(e, t?.in);
95
+ function fe(e, t) {
96
+ const n = S(e, t?.in);
79
97
  return n.setDate(1), n.setHours(0, 0, 0, 0), n;
80
98
  }
81
- function Ce(e, t) {
82
- const n = T(e, t?.in);
99
+ function Ue(e, t) {
100
+ const n = S(e, t?.in);
83
101
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
84
102
  }
85
- function Me(e, t) {
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;
103
+ function be(e, t) {
104
+ const n = Xe(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = S(e, t?.in), s = o.getDay(), l = (s < a ? -7 : 0) + 6 - (s - a);
105
+ return o.setDate(o.getDate() + l), o.setHours(23, 59, 59, 999), o;
88
106
  }
89
- function Te(e, t) {
90
- const n = T(e, t?.in), a = n.getMonth(), o = a - a % 3 + 3;
107
+ function pe(e, t) {
108
+ const n = S(e, t?.in), a = n.getMonth(), o = a - a % 3 + 3;
91
109
  return n.setMonth(o, 0), n.setHours(23, 59, 59, 999), n;
92
110
  }
93
- function dt(e, t) {
94
- const n = T(e, t?.in), a = n.getFullYear(), o = n.getMonth(), s = se(n, 0);
111
+ function ht(e, t) {
112
+ const n = S(e, t?.in), a = n.getFullYear(), o = n.getMonth(), s = ue(n, 0);
95
113
  return s.setFullYear(a, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
96
114
  }
97
- function ct(e, t) {
98
- return +T(e) > +T(t);
115
+ function yt(e, t) {
116
+ return +S(e) > +S(t);
99
117
  }
100
- function Dt(e, t) {
101
- return +T(e) < +T(t);
118
+ function gt(e, t) {
119
+ return +S(e) < +S(t);
102
120
  }
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);
121
+ function Mt(e, t, n) {
122
+ const a = Xe(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, s = S(e, n?.in), l = s.getDay(), D = (t % 7 + 7) % 7, M = 7 - o, v = t < 0 || t > 6 ? t - (l + M) % 7 : (D + M) % 7 - (l + M) % 7;
123
+ return le(s, v, n);
106
124
  }
107
- function he(e, t, n) {
108
- const [a, o] = Oe(
125
+ function ge(e, t, n) {
126
+ const [a, o] = ve(
109
127
  n?.in,
110
128
  e,
111
129
  t
112
130
  );
113
131
  return a.getFullYear() === o.getFullYear() && a.getMonth() === o.getMonth();
114
132
  }
115
- function be(e, t, n) {
116
- const a = +T(e, n?.in), [o, s] = [
117
- +T(t.start, n?.in),
118
- +T(t.end, n?.in)
119
- ].sort((i, u) => i - u);
133
+ function Ie(e, t, n) {
134
+ const a = +S(e, n?.in), [o, s] = [
135
+ +S(t.start, n?.in),
136
+ +S(t.end, n?.in)
137
+ ].sort((l, u) => l - u);
120
138
  return a >= o && a <= s;
121
139
  }
122
140
  function we(e, t, n) {
123
- return ce(e, -t, n);
141
+ return le(e, -t, n);
124
142
  }
125
- function vt(e, t, n) {
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);
143
+ function Nt(e, t, n) {
144
+ const a = S(e, n?.in), o = a.getFullYear(), s = a.getDate(), l = ue(e, 0);
145
+ l.setFullYear(o, t, 15), l.setHours(0, 0, 0, 0);
146
+ const u = ht(l);
129
147
  return a.setMonth(t, Math.min(s, u)), a;
130
148
  }
131
- function mt(e, t, n) {
132
- let a = T(e, n?.in);
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);
149
+ function Et(e, t, n) {
150
+ let a = S(e, n?.in);
151
+ return isNaN(+a) ? ue(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = Nt(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);
152
+ }
153
+ function se(e, t, n) {
154
+ return V(e, -t, n);
155
+ }
156
+ function bt(e, t, n) {
157
+ return et(e, -t, n);
134
158
  }
135
- function de(e, t, n) {
136
- return Z(e, -t, n);
159
+ function pt(e, t, n) {
160
+ return tt(e, -t, n);
137
161
  }
138
- function ht(e, t, n) {
139
- return Je(e, -t, n);
162
+ function Ot(e, t, n) {
163
+ return nt(e, -t, n);
140
164
  }
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 = {
165
+ 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 || {}), ce = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(ce || {});
166
+ const St = {
143
167
  /**
144
168
  * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
145
169
  */
@@ -161,45 +185,45 @@ const yt = {
161
185
  default: F.SINGLE,
162
186
  validator: (e) => Object.values(F).includes(e)
163
187
  }
164
- }, pe = /* @__PURE__ */ new Map();
188
+ }, Te = /* @__PURE__ */ new Map();
165
189
  function _e(e, t) {
166
190
  const n = t ? JSON.stringify(Object.entries(t).sort()) : "no-options", a = e?.trim() || "en-US", o = `${a}::${n}`;
167
- if (pe.has(o))
168
- return pe.get(o);
191
+ if (Te.has(o))
192
+ return Te.get(o);
169
193
  const s = new Intl.DateTimeFormat(a, t);
170
- return pe.set(o, s), s;
194
+ return Te.set(o, s), s;
171
195
  }
172
- const sn = (e) => {
196
+ const yn = (e) => {
173
197
  if (!e)
174
198
  return "";
175
199
  const t = (n) => n.toString().padStart(2, "0");
176
200
  return [t(e.getHours()), t(e.getMinutes()), t(e.getSeconds())].join(":");
177
- }, ln = (e) => {
201
+ }, gn = (e) => {
178
202
  if (!e || isNaN(e.getTime()))
179
203
  return "";
180
204
  const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0");
181
205
  return `${t}-${n}-${a}`;
182
- }, un = (e) => {
206
+ }, Mn = (e) => {
183
207
  if (!e || isNaN(e.getTime()))
184
208
  return "";
185
209
  const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0");
186
210
  return `${t}-${n}`;
187
- }, dn = (e) => {
211
+ }, Nn = (e) => {
188
212
  if (!e)
189
213
  return /* @__PURE__ */ new Date(NaN);
190
214
  const [t, n] = e.split("-").map(Number);
191
215
  return new Date(t, n - 1, 1);
192
- }, gt = De({
216
+ }, It = De({
193
217
  name: "calendar-month-day",
194
- components: { BentoTypography: Ae },
218
+ components: { BentoTypography: Re },
195
219
  inheritAttrs: !0,
196
- props: yt,
197
- emits: [ue.CLICK, ue.MOUSE_OVER],
220
+ props: St,
221
+ emits: [ce.CLICK, ce.MOUSE_OVER],
198
222
  setup(e, { emit: t }) {
199
- const { locale: n } = Re(void 0), a = I(() => {
223
+ const { locale: n } = Fe(void 0), a = I(() => {
200
224
  const u = /* @__PURE__ */ new Date();
201
225
  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 ?? "");
226
+ }), o = I(() => _e(n.value, { day: "numeric" }).formatToParts(e.day).find((v) => v.type === "day")?.value ?? "");
203
227
  return {
204
228
  // Values
205
229
  conditionalClasses: I(() => ({
@@ -219,18 +243,18 @@ const sn = (e) => {
219
243
  isCurrentDay: a,
220
244
  formattedDate: o,
221
245
  // Enums
222
- CalendarMonthDayEvent: ue,
246
+ CalendarMonthDayEvent: ce,
223
247
  // Events
224
- onClick: (u, f) => {
225
- e.disabled ? (u.preventDefault(), u.stopPropagation()) : t(ue.CLICK, f, e.day);
248
+ onClick: (u, D) => {
249
+ e.disabled ? (u.preventDefault(), u.stopPropagation()) : t(ce.CLICK, D, e.day);
226
250
  }
227
251
  };
228
252
  }
229
- }), Mt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], Nt = { class: "b-calendar-month-day__wrapper" };
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]),
253
+ }), Tt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], kt = { class: "b-calendar-month-day__wrapper" };
254
+ function wt(e, t, n, a, o, s) {
255
+ const l = te("bento-typography");
256
+ return p(), k("td", {
257
+ class: Ae(["b-calendar-month-day", e.conditionalClasses]),
234
258
  tabindex: e.selected ? "0" : "-1",
235
259
  "aria-selected": e.selected ? e.selected : void 0,
236
260
  "aria-disabled": e.disabled,
@@ -240,25 +264,25 @@ function Et(e, t, n, a, o, s) {
240
264
  onMouseover: t[1] || (t[1] = (u) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
241
265
  onKeydown: t[2] || (t[2] = ne((u) => e.onClick(u, e.day), ["space", "enter"]))
242
266
  }, [
243
- _("div", Nt, [
244
- W(i, {
267
+ _("div", kt, [
268
+ W(l, {
245
269
  class: "b-calendar-month-day__label",
246
270
  el: "span",
247
271
  variant: "body",
248
272
  strong: ""
249
273
  }, {
250
- default: V(() => [
251
- Ne(Ee(e.formattedDate), 1)
274
+ default: x(() => [
275
+ Oe(Se(e.formattedDate), 1)
252
276
  ]),
253
277
  _: 1
254
278
  })
255
279
  ])
256
- ], 42, Mt);
280
+ ], 42, Tt);
257
281
  }
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));
282
+ const _t = /* @__PURE__ */ me(It, [["render", wt], ["__scopeId", "data-v-e6d7eb12"]]);
283
+ var oe = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(oe || {}), q = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(q || {}), Ye = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Ye || {});
284
+ const ot = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
285
+ const s = Q(new Date(t.value));
262
286
  re(
263
287
  t,
264
288
  () => {
@@ -266,45 +290,45 @@ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
266
290
  },
267
291
  { immediate: !0 }
268
292
  );
269
- const i = x(new Date(e.value));
293
+ const l = Q(new Date(e.value));
270
294
  re(e, () => {
271
- i.value = new Date(e.value);
295
+ l.value = new Date(e.value);
272
296
  });
273
- const u = ot(), f = x(i.value);
297
+ const u = it(), D = Q(l.value);
274
298
  re(u, (d) => {
275
- const M = d.getAttribute("data-date");
276
- f.value = M ? new Date(M) : i.value;
299
+ const N = d.getAttribute("data-date");
300
+ D.value = N ? new Date(N) : l.value;
277
301
  });
278
- const N = x({}), m = (d) => (M) => {
279
- N.value[d.toDateString()] = M;
280
- }, g = () => {
281
- N.value = {};
282
- }, D = (d = 1) => {
283
- s.value = Z(s.value, d), o(R.NEXT_MONTH, d), g();
302
+ const M = Q({}), v = (d) => (N) => {
303
+ M.value[d.toDateString()] = N;
304
+ }, h = () => {
305
+ M.value = {};
284
306
  }, c = (d = 1) => {
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) => {
307
+ s.value = V(s.value, d), o(R.NEXT_MONTH, d), h();
308
+ }, f = (d = 1) => {
309
+ s.value = se(s.value, d), o(R.PREVIOUS_MONTH, d), h();
310
+ }, r = (d, N) => {
311
+ const T = !!M.value[d?.toDateString()];
312
+ return !d || !T ? null : N ? M.value[d.toDateString()].$el : (M.value[d.toDateString()].$el.focus(), null);
313
+ }, i = (d) => {
290
314
  d.preventDefault(), d.stopImmediatePropagation(), d.stopPropagation();
291
- }, y = ({ nextDate: d, isIncreasingDays: M, amountOfMonths: p, isCalendarButtonsNav: G }) => {
315
+ }, y = ({ nextDate: d, isIncreasingDays: N, amountOfMonths: T, isCalendarButtonsNav: G }) => {
292
316
  if (!G && n && n(d))
293
317
  return;
294
- d.getMonth() === i.value.getMonth() && d.getFullYear() === i.value.getFullYear() ? (i.value = d, r(d)) : (M ? D(p) : c(p), tt(() => {
318
+ d.getMonth() === l.value.getMonth() && d.getFullYear() === l.value.getFullYear() ? (l.value = d, r(d)) : (N ? c(T) : f(T), st(() => {
295
319
  const U = d.getMonth() === s.value.getMonth() && d.getFullYear() === s.value.getFullYear();
296
- n && n(d) || !U || G || (i.value = d, r(d));
320
+ n && n(d) || !U || G || (l.value = d, r(d));
297
321
  }));
298
322
  };
299
323
  return {
300
324
  // Calendar days ref
301
- calendarRef: N,
302
- addDayRef: m,
325
+ calendarRef: M,
326
+ addDayRef: v,
303
327
  /**
304
328
  * Month navigation
305
329
  */
306
- showNextMonth: D,
307
- showPreviousMonth: c,
330
+ showNextMonth: c,
331
+ showPreviousMonth: f,
308
332
  /**
309
333
  * Focus method
310
334
  */
@@ -314,101 +338,101 @@ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
314
338
  */
315
339
  // ArrowRight
316
340
  moveToNextDay: (d) => {
317
- l(d), y({ nextDate: ce(f.value, 1), isIncreasingDays: !0 });
341
+ i(d), y({ nextDate: le(D.value, 1), isIncreasingDays: !0 });
318
342
  },
319
343
  // ArrowLeft
320
344
  moveToPreviousDay: (d) => {
321
- l(d), y({ nextDate: we(f.value, 1), isIncreasingDays: !1 });
345
+ i(d), y({ nextDate: we(D.value, 1), isIncreasingDays: !1 });
322
346
  },
323
347
  // ArrowUp
324
348
  moveToPreviousWeek: (d) => {
325
- l(d), y({ nextDate: we(f.value, 7), isIncreasingDays: !1 });
349
+ i(d), y({ nextDate: we(D.value, 7), isIncreasingDays: !1 });
326
350
  },
327
351
  // ArrowDown
328
352
  moveToNextWeek: (d) => {
329
- l(d), y({ nextDate: ce(f.value, 7), isIncreasingDays: !0 });
353
+ i(d), y({ nextDate: le(D.value, 7), isIncreasingDays: !0 });
330
354
  },
331
355
  // Home
332
356
  moveToFirstDayOfWeek: (d) => {
333
- l(d), y({
334
- nextDate: ye(f.value, { weekStartsOn: a }),
357
+ i(d), y({
358
+ nextDate: Ne(D.value, { weekStartsOn: a }),
335
359
  isIncreasingDays: !1
336
360
  });
337
361
  },
338
362
  moveToFirstMonthOfYear: (d) => {
339
- l(d);
340
- const M = Pe(i.value, Ce(i.value));
363
+ i(d);
364
+ const N = Ce(l.value, Ue(l.value));
341
365
  y({
342
- nextDate: Ce(i.value),
366
+ nextDate: Ue(l.value),
343
367
  isIncreasingDays: !1,
344
- amountOfMonths: M
368
+ amountOfMonths: N
345
369
  });
346
370
  },
347
371
  // End
348
372
  moveToLastDayOfWeek: (d) => {
349
- l(d), y({
350
- nextDate: Me(f.value, { weekStartsOn: a }),
373
+ i(d), y({
374
+ nextDate: be(D.value, { weekStartsOn: a }),
351
375
  isIncreasingDays: !0
352
376
  });
353
377
  },
354
378
  moveToLastMonthOfYear: (d) => {
355
- l(d);
356
- const M = mt(i.value, { month: 11, date: 1 }), p = Pe(M, i.value);
379
+ i(d);
380
+ const N = Et(l.value, { month: 11, date: 1 }), T = Ce(N, l.value);
357
381
  y({
358
- nextDate: M,
382
+ nextDate: N,
359
383
  isIncreasingDays: !0,
360
- amountOfMonths: p
384
+ amountOfMonths: T
361
385
  });
362
386
  },
363
387
  // PageUp
364
- moveToPreviousMonth: (d, M = !1, p = 1) => {
365
- l(d);
366
- const G = p;
388
+ moveToPreviousMonth: (d, N = !1, T = 1) => {
389
+ i(d);
390
+ const G = T;
367
391
  y({
368
- nextDate: de(f.value, G),
392
+ nextDate: se(D.value, G),
369
393
  isIncreasingDays: !1,
370
394
  amountOfMonths: G,
371
- isCalendarButtonsNav: M
395
+ isCalendarButtonsNav: N
372
396
  });
373
397
  },
374
398
  // Shift+PageUp
375
- moveToPreviousYear: (d, M = !1) => {
376
- l(d);
377
- const p = 12;
399
+ moveToPreviousYear: (d, N = !1) => {
400
+ i(d);
401
+ const T = 12;
378
402
  y({
379
- nextDate: de(f.value, p),
403
+ nextDate: se(D.value, T),
380
404
  isIncreasingDays: !1,
381
- amountOfMonths: p,
382
- isCalendarButtonsNav: M
405
+ amountOfMonths: T,
406
+ isCalendarButtonsNav: N
383
407
  });
384
408
  },
385
409
  // PageDown
386
- moveToNextMonth: (d, M = !1, p = 1) => {
387
- l(d);
388
- const G = p;
410
+ moveToNextMonth: (d, N = !1, T = 1) => {
411
+ i(d);
412
+ const G = T;
389
413
  y({
390
- nextDate: Z(f.value, G),
414
+ nextDate: V(D.value, G),
391
415
  isIncreasingDays: !0,
392
416
  amountOfMonths: G,
393
- isCalendarButtonsNav: M
417
+ isCalendarButtonsNav: N
394
418
  });
395
419
  },
396
420
  // Shift-PageDown
397
- moveToNextYear: (d, M = !1) => {
398
- l(d);
399
- const p = 12;
421
+ moveToNextYear: (d, N = !1) => {
422
+ i(d);
423
+ const T = 12;
400
424
  y({
401
- nextDate: Z(f.value, p),
425
+ nextDate: V(D.value, T),
402
426
  isIncreasingDays: !0,
403
- amountOfMonths: p,
404
- isCalendarButtonsNav: M
427
+ amountOfMonths: T,
428
+ isCalendarButtonsNav: N
405
429
  });
406
430
  },
407
431
  // Values
408
- internalDate: i,
432
+ internalDate: l,
409
433
  baseDate: s
410
434
  };
411
- }, Ge = {
435
+ }, je = {
412
436
  "de-DE": { nextMonth: "Nächster Monat", previousMonth: "Voriger Monat" },
413
437
  "en-GB": { nextMonth: "Next month", previousMonth: "Previous month" },
414
438
  "en-US": { nextMonth: "Next month", previousMonth: "Previous month" },
@@ -419,17 +443,17 @@ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
419
443
  "ja-JP": { nextMonth: "翌月", previousMonth: "前月" },
420
444
  "pt-BR": { nextMonth: "Próximo mês", previousMonth: "Mês anterior" },
421
445
  "zh-CN": { nextMonth: "下个月", previousMonth: "上个月" }
422
- }, Ot = De({
423
- i18n: { messages: Ge },
446
+ }, Yt = De({
447
+ i18n: { messages: je },
424
448
  name: "calendar-month",
425
449
  components: {
426
450
  BentoButton: ke,
427
- BentoTypography: Ae,
428
- CalendarMonthDay: bt,
429
- ChevronLeftIcon: Xe,
430
- ChevronRightIcon: ze
451
+ BentoTypography: Re,
452
+ CalendarMonthDay: _t,
453
+ ChevronLeftIcon: Ze,
454
+ ChevronRightIcon: Je
431
455
  },
432
- directives: { BentoKeyboardNavigationDirective: xe },
456
+ directives: { BentoKeyboardNavigationDirective: ze },
433
457
  props: {
434
458
  /**
435
459
  * end of the selected range
@@ -440,8 +464,8 @@ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
440
464
  */
441
465
  firstDayOfWeek: {
442
466
  type: Number,
443
- default: X.MONDAY,
444
- validator: (e) => Object.values(X).includes(e)
467
+ default: J.MONDAY,
468
+ validator: (e) => Object.values(J).includes(e)
445
469
  },
446
470
  /**
447
471
  * Indicate if a date should be disabled or not
@@ -487,29 +511,29 @@ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
487
511
  R.MOUSE_OVER
488
512
  ],
489
513
  setup(e, { emit: t }) {
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)
514
+ const { locale: n, t: a } = Fe({ messages: je }), o = Qe("bento-date-picker-month-label"), s = I(
515
+ () => (O) => e.min && O < e.min || e.max && O > e.max || e.isDateDisabled?.(O)
492
516
  ), {
493
- internalDate: i,
517
+ internalDate: l,
494
518
  baseDate: u,
495
519
  // Calendar refs
496
- addDayRef: f,
520
+ addDayRef: D,
497
521
  // Month navigation
498
- showNextMonth: N,
499
- showPreviousMonth: m,
522
+ showNextMonth: M,
523
+ showPreviousMonth: v,
500
524
  // Day navigation
501
- moveToNextDay: g,
502
- moveToPreviousDay: D,
503
- moveToPreviousWeek: c,
525
+ moveToNextDay: h,
526
+ moveToPreviousDay: c,
527
+ moveToPreviousWeek: f,
504
528
  moveToNextWeek: r,
505
- moveToFirstDayOfWeek: l,
529
+ moveToFirstDayOfWeek: i,
506
530
  moveToLastDayOfWeek: y,
507
531
  moveToPreviousMonth: $,
508
- moveToPreviousYear: h,
509
- moveToNextMonth: v,
532
+ moveToPreviousYear: g,
533
+ moveToNextMonth: m,
510
534
  moveToNextYear: E,
511
535
  focusOnDate: Y
512
- } = Ze(
536
+ } = ot(
513
537
  {
514
538
  currentSelectedDate: P(e, "startDate"),
515
539
  month: P(e, "month"),
@@ -518,121 +542,121 @@ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
518
542
  },
519
543
  t
520
544
  ), ie = I(
521
- () => Object.values(X).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : X.MONDAY
522
- ), ve = I(() => ["first", "unique"].includes(e.position)), b = I(() => ["last", "unique"].includes(e.position)), C = I(
545
+ () => Object.values(J).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : J.MONDAY
546
+ ), he = I(() => ["first", "unique"].includes(e.position)), b = I(() => ["last", "unique"].includes(e.position)), B = I(
523
547
  () => _e(n.value, { month: "long", year: "numeric" }).format(u.value)
524
548
  ), 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);
549
+ () => new Array(7).fill(/* @__PURE__ */ new Date()).map((O, U) => {
550
+ const de = Mt(O, ie.value + U);
551
+ return _e(n.value, { weekday: "short" }).format(de);
528
552
  })
529
- ), q = I(() => {
530
- const S = [], U = ge(e.month);
531
- let le = S[S.push([]) - 1];
553
+ ), K = I(() => {
554
+ const O = [], U = fe(e.month);
555
+ let de = O[O.push([]) - 1];
532
556
  for (; U.getMonth() === e.month.getMonth(); )
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;
557
+ U.getDay() - ie.value === 0 && de.length > 0 && (de = O[O.push([]) - 1]), de.push(ee(U)), U.setDate(U.getDate() + 1);
558
+ return O;
535
559
  });
536
560
  return {
537
561
  // Refs
538
- addDayRef: f,
562
+ addDayRef: D,
539
563
  // Values
540
564
  computedIsDateDisabled: s,
541
565
  daysOfWeek: L,
542
- weeksOfMonth: q,
543
- formattedMonthDate: C,
566
+ weeksOfMonth: K,
567
+ formattedMonthDate: B,
544
568
  shouldShowNextMonthButton: b,
545
- shouldShowPreviousMonthButton: ve,
569
+ shouldShowPreviousMonthButton: he,
546
570
  monthLabelId: o,
547
571
  // Enums
548
572
  CalendarMonthEvent: R,
549
573
  // Functions
550
- isSelectedDate: (S) => i.value && me(i.value, S) && !e.endDate ? !0 : e.startDate && e.endDate && be(S, { start: e.startDate, end: e.endDate }),
551
- showNextMonth: N,
552
- showPreviousMonth: m,
553
- dayVariant: (S) => {
554
- if (!e.isRange || me(e.startDate, e.endDate))
574
+ isSelectedDate: (O) => l.value && ye(l.value, O) && !e.endDate ? !0 : e.startDate && e.endDate && Ie(O, { start: e.startDate, end: e.endDate }),
575
+ showNextMonth: M,
576
+ showPreviousMonth: v,
577
+ dayVariant: (O) => {
578
+ if (!e.isRange || ye(e.startDate, e.endDate))
555
579
  return F.SINGLE;
556
- if (e.startDate && me(e.startDate, S))
580
+ if (e.startDate && ye(e.startDate, O))
557
581
  return F.BEGINNING;
558
- if (e.endDate && me(e.endDate, S))
582
+ if (e.endDate && ye(e.endDate, O))
559
583
  return F.END;
560
- if (e.startDate && e.endDate && be(S, { start: e.startDate, end: e.endDate }))
584
+ if (e.startDate && e.endDate && Ie(O, { start: e.startDate, end: e.endDate }))
561
585
  return F.MIDDLE;
562
586
  },
563
587
  confirmNavigationDate: () => {
564
- t(R.INPUT, i);
588
+ t(R.INPUT, l);
565
589
  },
566
590
  // Events
567
- onDayClicked: (S) => {
568
- t(R.INPUT, S);
591
+ onDayClicked: (O) => {
592
+ t(R.INPUT, O);
569
593
  },
570
594
  listeners: {
571
- "keydown:arrow-right": g,
572
- "keydown:arrow-left": D,
573
- "keydown:arrow-up": c,
595
+ "keydown:arrow-right": h,
596
+ "keydown:arrow-left": c,
597
+ "keydown:arrow-up": f,
574
598
  "keydown:arrow-down": r,
575
- "keydown:home": l,
599
+ "keydown:home": i,
576
600
  "keydown:end": y,
577
601
  "keydown:page-up": $,
578
- "keydown:shift-page-up": h,
579
- "keydown:page-down": v,
602
+ "keydown:shift-page-up": g,
603
+ "keydown:page-down": m,
580
604
  "keydown:shift-page-down": E
581
605
  },
582
606
  // Exposed methods
583
607
  focusOnDate: Y,
584
- moveToNextDay: g,
585
- moveToPreviousDay: D,
586
- moveToPreviousWeek: c,
608
+ moveToNextDay: h,
609
+ moveToPreviousDay: c,
610
+ moveToPreviousWeek: f,
587
611
  moveToNextWeek: r,
588
- moveToFirstDayOfWeek: l,
612
+ moveToFirstDayOfWeek: i,
589
613
  moveToLastDayOfWeek: y,
590
614
  moveToPreviousMonth: $,
591
- moveToPreviousYear: h,
592
- moveToNextMonth: v,
615
+ moveToPreviousYear: g,
616
+ moveToNextMonth: m,
593
617
  moveToNextYear: E,
594
618
  // Translations
595
619
  t: a
596
620
  };
597
621
  }
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, {
622
+ }), $t = { class: "b-calendar-month__month-selector" }, Lt = { class: "b-calendar-month__previous" }, At = { class: "b-calendar-month__next" }, Rt = ["aria-labelledby"], Ft = { class: "b-calendar-month__week-header" }, Pt = ["colspan"];
623
+ function Ct(e, t, n, a, o, s) {
624
+ const l = te("chevron-left-icon"), u = te("bento-button"), D = te("bento-typography"), M = te("chevron-right-icon"), v = te("calendar-month-day"), h = ut("bento-keyboard-navigation-directive");
625
+ return Ve((p(), k("div", xe({ class: "b-calendar-month" }, qe(e.listeners, !0)), [
626
+ _("div", $t, [
627
+ _("div", Lt, [
628
+ e.shouldShowPreviousMonthButton ? (p(), Z(u, {
605
629
  key: 0,
606
630
  variant: "tertiary",
607
- onClick: t[0] || (t[0] = (D) => e.moveToPreviousMonth(D, !0))
631
+ onClick: t[0] || (t[0] = (c) => e.moveToPreviousMonth(c, !0))
608
632
  }, {
609
- iconLeft: V(() => [
610
- W(i, {
633
+ iconLeft: x(() => [
634
+ W(l, {
611
635
  "svg-title": e.t("previousMonth")
612
636
  }, null, 8, ["svg-title"])
613
637
  ]),
614
638
  _: 1
615
639
  })) : ae("", !0)
616
640
  ]),
617
- W(f, {
641
+ W(D, {
618
642
  id: e.monthLabelId,
619
643
  el: "h2",
620
644
  variant: "title",
621
645
  "aria-live": "polite"
622
646
  }, {
623
- default: V(() => [
624
- Ne(Ee(e.formattedMonthDate), 1)
647
+ default: x(() => [
648
+ Oe(Se(e.formattedMonthDate), 1)
625
649
  ]),
626
650
  _: 1
627
651
  }, 8, ["id"]),
628
- _("div", Tt, [
629
- e.shouldShowNextMonthButton ? (O(), J(u, {
652
+ _("div", At, [
653
+ e.shouldShowNextMonthButton ? (p(), Z(u, {
630
654
  key: 0,
631
655
  variant: "tertiary",
632
- onClick: t[1] || (t[1] = (D) => e.moveToNextMonth(D, !0))
656
+ onClick: t[1] || (t[1] = (c) => e.moveToNextMonth(c, !0))
633
657
  }, {
634
- iconLeft: V(() => [
635
- W(N, {
658
+ iconLeft: x(() => [
659
+ W(M, {
636
660
  "svg-title": e.t("nextMonth")
637
661
  }, null, 8, ["svg-title"])
638
662
  ]),
@@ -646,19 +670,19 @@ function _t(e, t, n, a, o, s) {
646
670
  "aria-labelledby": e.monthLabelId
647
671
  }, [
648
672
  _("thead", null, [
649
- _("tr", kt, [
650
- (O(!0), k(Q, null, z(e.daysOfWeek, (D, c) => (O(), k("th", {
651
- key: c,
673
+ _("tr", Ft, [
674
+ (p(!0), k(z, null, X(e.daysOfWeek, (c, f) => (p(), k("th", {
675
+ key: f,
652
676
  class: "b-calendar-month__day-of-week",
653
677
  scope: "col"
654
678
  }, [
655
- W(f, {
679
+ W(D, {
656
680
  class: "b-calendar-month__day-of-week-font",
657
681
  el: "span",
658
682
  variant: "caption"
659
683
  }, {
660
- default: V(() => [
661
- Ne(Ee(D), 1)
684
+ default: x(() => [
685
+ Oe(Se(c), 1)
662
686
  ]),
663
687
  _: 2
664
688
  }, 1024)
@@ -666,15 +690,15 @@ function _t(e, t, n, a, o, s) {
666
690
  ])
667
691
  ]),
668
692
  _("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", {
693
+ (p(!0), k(z, null, X(e.weeksOfMonth, (c, f) => (p(), k("tr", { key: f }, [
694
+ f === 0 && c.length < 7 ? (p(), k("td", {
671
695
  key: 0,
672
- colspan: 7 - D.length
673
- }, null, 8, wt)) : ae("", !0),
674
- (O(!0), k(Q, null, z(D, (r, l) => (O(), J(m, {
696
+ colspan: 7 - c.length
697
+ }, null, 8, Pt)) : ae("", !0),
698
+ (p(!0), k(z, null, X(c, (r, i) => (p(), Z(v, {
675
699
  ref_for: !0,
676
700
  ref: e.addDayRef(r),
677
- key: `calendar-day-${l}`,
701
+ key: `calendar-day-${i}`,
678
702
  day: r,
679
703
  disabled: e.computedIsDateDisabled(r),
680
704
  selected: e.isSelectedDate(r),
@@ -689,8 +713,8 @@ function _t(e, t, n, a, o, s) {
689
713
  ]
690
714
  }, null, 8, ["day", "disabled", "selected", "variant", "onClick", "onMouseover", "onKeyup"]))), 128))
691
715
  ]))), 128)),
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}`
716
+ e.weeksOfMonth?.length < 6 ? (p(!0), k(z, { key: 0 }, X(6 - e.weeksOfMonth?.length, (c) => (p(), k("tr", {
717
+ key: `calendar month filler row ${c}`
694
718
  }, t[2] || (t[2] = [
695
719
  _("td", {
696
720
  "aria-hidden": "true",
@@ -699,21 +723,21 @@ function _t(e, t, n, a, o, s) {
699
723
  }, null, -1)
700
724
  ])))), 128)) : ae("", !0)
701
725
  ])
702
- ], 8, pt)
726
+ ], 8, Rt)
703
727
  ], 16)), [
704
- [g]
728
+ [h]
705
729
  ]);
706
730
  }
707
- const Ue = /* @__PURE__ */ fe(Ot, [["render", _t], ["__scopeId", "data-v-6417cfb0"]]);
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 || {});
709
- const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__wrapper" }, Lt = {}, At = /* @__PURE__ */ De({
710
- ...Lt,
731
+ const He = /* @__PURE__ */ me(Yt, [["render", Ct], ["__scopeId", "data-v-6417cfb0"]]);
732
+ var C = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(C || {}), 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 || {});
733
+ const Bt = ["tabindex", "aria-selected"], Gt = { class: "b-calendar-year-month__wrapper" }, Ut = {}, jt = /* @__PURE__ */ De({
734
+ ...Ut,
711
735
  __name: "calendar-year-month",
712
736
  props: {
713
737
  month: {},
714
738
  disabled: { type: Boolean, default: !1 },
715
739
  selected: { type: Boolean, default: !1 },
716
- variant: { default: B.SINGLE }
740
+ variant: { default: C.SINGLE }
717
741
  },
718
742
  emits: ["click", "mouseover"],
719
743
  setup(e, { emit: t }) {
@@ -722,10 +746,10 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
722
746
  return n.month.getMonth() === u.getMonth() && n.month.getFullYear() === u.getFullYear();
723
747
  }), s = I(() => ({
724
748
  // Variants
725
- [`b-calendar-year-month--${H.BEGINNING}`]: n.variant === B.BEGINNING,
726
- [`b-calendar-year-month--${H.MIDDLE}`]: n.variant === B.MIDDLE,
727
- [`b-calendar-year-month--${H.END}`]: n.variant === B.END,
728
- [`b-calendar-year-month--${H.SINGLE}`]: n.variant === B.SINGLE,
749
+ [`b-calendar-year-month--${H.BEGINNING}`]: n.variant === C.BEGINNING,
750
+ [`b-calendar-year-month--${H.MIDDLE}`]: n.variant === C.MIDDLE,
751
+ [`b-calendar-year-month--${H.END}`]: n.variant === C.END,
752
+ [`b-calendar-year-month--${H.SINGLE}`]: n.variant === C.SINGLE,
729
753
  // Selected
730
754
  [`b-calendar-year-month--${H.UNSELECTED}`]: !n.selected,
731
755
  [`b-calendar-year-month--${H.SELECTED}`]: n.selected,
@@ -733,27 +757,27 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
733
757
  [`b-calendar-year-month--${H.CURRENT_MONTH}`]: o.value,
734
758
  // Disabled
735
759
  [`b-calendar-year-month--${H.DISABLED}`]: n.disabled
736
- })), i = (u, f) => {
737
- n.disabled ? (u.preventDefault(), u.stopPropagation()) : a($e.CLICK, f, n.month);
760
+ })), l = (u, D) => {
761
+ n.disabled ? (u.preventDefault(), u.stopPropagation()) : a($e.CLICK, D, n.month);
738
762
  };
739
- return (u, f) => (O(), k("td", {
740
- class: Le(["b-calendar-year-month", s.value]),
763
+ return (u, D) => (p(), k("td", {
764
+ class: Ae(["b-calendar-year-month", s.value]),
741
765
  tabindex: u.selected ? "0" : "-1",
742
766
  "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"]))
767
+ onClick: D[0] || (D[0] = (M) => l(M, u.month)),
768
+ onMouseover: D[1] || (D[1] = (M) => a(w($e).MOUSE_OVER)),
769
+ onKeydown: D[2] || (D[2] = ne((M) => l(M, u.month), ["space", "enter"]))
746
770
  }, [
747
- _("div", $t, [
748
- W(w(st), {
771
+ _("div", Gt, [
772
+ W(w(ft), {
749
773
  class: "b-calendar-year-month__label",
750
774
  date: u.month,
751
- format: w(it).SHORT_MONTH
775
+ format: w(Dt).SHORT_MONTH
752
776
  }, null, 8, ["date", "format"])
753
777
  ])
754
- ], 42, Yt));
778
+ ], 42, Bt));
755
779
  }
756
- }), Rt = /* @__PURE__ */ fe(At, [["__scopeId", "data-v-ad9a13f2"]]), et = {
780
+ }), Ht = /* @__PURE__ */ me(jt, [["__scopeId", "data-v-ad9a13f2"]]), rt = {
757
781
  "de-DE": { nextYear: "Nächstes Jahr", previousYear: "Vorjahr" },
758
782
  "en-GB": { nextYear: "Next year", previousYear: "Previous year" },
759
783
  "en-US": { nextYear: "Next year", previousYear: "Previous year" },
@@ -764,10 +788,10 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
764
788
  "ja-JP": { nextYear: "来年", previousYear: "前年" },
765
789
  "pt-BR": { nextYear: "No próximo ano", previousYear: "Ano anterior" },
766
790
  "zh-CN": { nextYear: "明年", previousYear: "上年度" }
767
- }, Ft = { class: "b-calendar-year__year-selector" }, Pt = { class: "b-calendar-year__previous" }, Bt = { class: "b-calendar-year__next" }, Ct = ["aria-labelledby"], Gt = {
768
- i18n: { messages: et }
769
- }, Ut = /* @__PURE__ */ De({
770
- ...Gt,
791
+ }, Wt = { class: "b-calendar-year__year-selector" }, Vt = { class: "b-calendar-year__previous" }, xt = { class: "b-calendar-year__next" }, qt = ["aria-labelledby"], Kt = {
792
+ i18n: { messages: rt }
793
+ }, Qt = /* @__PURE__ */ De({
794
+ ...Kt,
771
795
  __name: "calendar-year",
772
796
  props: {
773
797
  endDate: { default: null },
@@ -781,19 +805,19 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
781
805
  },
782
806
  emits: ["input", "mouseover", "nextMonth", "previousMonth"],
783
807
  setup(e, { expose: t, emit: n }) {
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)), {
785
- internalDate: m,
808
+ const a = Qe("bento-date-picker-year-label"), o = e, s = n, { t: l } = Fe({ messages: rt }), u = (b) => o.min && b < o.min || o.max && b > o.max || o.isDateDisabled?.(b), D = I(() => ["first", "unique"].includes(o.position)), M = I(() => ["last", "unique"].includes(o.position)), {
809
+ internalDate: v,
786
810
  // Calendar refs
787
- addDayRef: g,
811
+ addDayRef: h,
788
812
  // Day navigation
789
- moveToPreviousMonth: D,
790
- moveToPreviousYear: c,
813
+ moveToPreviousMonth: c,
814
+ moveToPreviousYear: f,
791
815
  moveToNextMonth: r,
792
- moveToNextYear: l,
816
+ moveToNextYear: i,
793
817
  moveToFirstMonthOfYear: y,
794
818
  moveToLastMonthOfYear: $,
795
- focusOnDate: h
796
- } = Ze(
819
+ focusOnDate: g
820
+ } = ot(
797
821
  {
798
822
  currentSelectedDate: P(o, "startDate"),
799
823
  month: P(o, "year"),
@@ -801,65 +825,65 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
801
825
  },
802
826
  s
803
827
  );
804
- t({ focusOnDate: h });
805
- const v = I(() => {
828
+ t({ focusOnDate: g });
829
+ const m = I(() => {
806
830
  const b = [];
807
- let C = 0;
831
+ let B = 0;
808
832
  for (let L = 0; L < 3; L++) {
809
- const q = [];
833
+ const K = [];
810
834
  for (let A = 0; A < 4; A++)
811
- q.push(new Date(o.year.getFullYear(), C++, 1));
812
- b.push(q);
835
+ K.push(new Date(o.year.getFullYear(), B++, 1));
836
+ b.push(K);
813
837
  }
814
838
  return 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) => {
839
+ }), E = (b) => !o.isRange || ge(o.startDate, o.endDate) ? C.SINGLE : o.startDate && ge(o.startDate, b) ? C.BEGINNING : o.endDate && ge(o.endDate, b) ? C.END : o.startDate && o.endDate && Ie(b, { start: o.startDate, end: o.endDate }) ? C.MIDDLE : null, Y = (b) => v.value && ge(v.value, b) ? !0 : o.startDate && o.endDate && Ie(b, { start: o.startDate, end: o.endDate }), ie = (b) => {
816
840
  s("input", b);
817
- }, ve = o.isRange ? {} : {
841
+ }, he = o.isRange ? {} : {
818
842
  "keydown:arrow-right": r,
819
- "keydown:arrow-left": D,
820
- "keydown:arrow-up": (b) => D(b, !1, 4),
843
+ "keydown:arrow-left": c,
844
+ "keydown:arrow-up": (b) => c(b, !1, 4),
821
845
  "keydown:arrow-down": (b) => r(b, !1, 4),
822
846
  "keydown:home": y,
823
847
  "keydown:end": $,
824
- "keydown:page-up": c,
825
- "keydown:page-down": l
848
+ "keydown:page-up": f,
849
+ "keydown:page-down": i
826
850
  };
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, {
851
+ return (b, B) => Ve((p(), k("div", xe({ class: "b-calendar-year" }, qe(w(he), !0)), [
852
+ _("div", Wt, [
853
+ _("div", Vt, [
854
+ D.value ? (p(), Z(ke, {
831
855
  key: 0,
832
856
  variant: "tertiary",
833
- onClick: C[0] || (C[0] = (L) => w(c)(L, !0))
857
+ onClick: B[0] || (B[0] = (L) => w(f)(L, !0))
834
858
  }, {
835
- iconLeft: V(() => [
836
- W(w(Xe), {
837
- "svg-title": w(i)("previousYear")
859
+ iconLeft: x(() => [
860
+ W(w(Ze), {
861
+ "svg-title": w(l)("previousYear")
838
862
  }, null, 8, ["svg-title"])
839
863
  ]),
840
864
  _: 1
841
865
  })) : ae("", !0)
842
866
  ]),
843
- W(w(Ae), {
867
+ W(w(Re), {
844
868
  id: w(a),
845
869
  el: "h2",
846
870
  variant: "title",
847
871
  "aria-live": "polite"
848
872
  }, {
849
- default: V(() => [
850
- Ne(Ee(b.year.getFullYear()), 1)
873
+ default: x(() => [
874
+ Oe(Se(b.year.getFullYear()), 1)
851
875
  ]),
852
876
  _: 1
853
877
  }, 8, ["id"]),
854
- _("div", Bt, [
855
- N.value ? (O(), J(ke, {
878
+ _("div", xt, [
879
+ M.value ? (p(), Z(ke, {
856
880
  key: 0,
857
881
  variant: "tertiary",
858
- onClick: C[1] || (C[1] = (L) => w(l)(L, !0))
882
+ onClick: B[1] || (B[1] = (L) => w(i)(L, !0))
859
883
  }, {
860
- iconLeft: V(() => [
861
- W(w(ze), {
862
- "svg-title": w(i)("nextYear")
884
+ iconLeft: x(() => [
885
+ W(w(Je), {
886
+ "svg-title": w(l)("nextYear")
863
887
  }, null, 8, ["svg-title"])
864
888
  ]),
865
889
  _: 1
@@ -872,26 +896,26 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
872
896
  "aria-labelledby": w(a)
873
897
  }, [
874
898
  _("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, {
899
+ (p(!0), k(z, null, X(m.value, (L, K) => (p(), k("tr", { key: K }, [
900
+ (p(!0), k(z, null, X(L, (A, d) => (p(), Z(Ht, {
877
901
  ref_for: !0,
878
- ref: w(g)(A),
902
+ ref: w(h)(A),
879
903
  key: `calendar-month-${d}`,
880
904
  month: A,
881
905
  disabled: u(A),
882
906
  selected: Y(A),
883
907
  variant: E(A),
884
908
  onClick: ie,
885
- onMouseover: (M) => s("mouseover", A)
909
+ onMouseover: (N) => s("mouseover", A)
886
910
  }, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
887
911
  ]))), 128))
888
912
  ])
889
- ], 8, Ct)
913
+ ], 8, qt)
890
914
  ], 16)), [
891
- [w(xe)]
915
+ [w(ze)]
892
916
  ]);
893
917
  }
894
- }), je = /* @__PURE__ */ fe(Ut, [["__scopeId", "data-v-5ec13be4"]]), jt = ({ selectedDate: e }, t) => {
918
+ }), We = /* @__PURE__ */ me(Qt, [["__scopeId", "data-v-5ec13be4"]]), zt = ({ selectedDate: e }, t) => {
895
919
  const n = Ke({
896
920
  startDate: null,
897
921
  endDate: null
@@ -905,148 +929,181 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
905
929
  ), {
906
930
  internalValue: n,
907
931
  onDateInput: (o) => {
908
- t(K.INPUT, o);
932
+ t(q.INPUT, o);
909
933
  },
910
934
  // Empty function to prevent the listeners from throwing a warning
911
935
  // eslint-disable-next-line @typescript-eslint/no-empty-function
912
936
  onMouseOver: () => {
913
937
  }
914
938
  };
915
- }, Ht = (e) => {
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 };
939
+ }, Xt = (e) => {
940
+ const t = (v, h, c, f) => {
941
+ let r = Ne(v, { weekStartsOn: e }), i = be(h || v, { weekStartsOn: e });
942
+ const y = c && r < c, $ = f && i > f;
943
+ return y && (r = Ne(c, { weekStartsOn: e })), $ && (i = be(f, { weekStartsOn: e })), r > i && (y ? i = be(r, { weekStartsOn: e }) : r = Ne(i, { weekStartsOn: e })), { startDate: r, endDate: i };
944
+ }, n = (v, h, c, f) => {
945
+ let r = fe(v), i = Me(h || v);
946
+ const y = c && r < c, $ = f && i > f;
947
+ return y && (r = fe(c)), $ && (i = Me(f)), r > i && (y ? i = Me(r) : r = fe(i)), { startDate: r, endDate: i };
948
+ }, a = (v, h, c, f) => {
949
+ let r = Ee(v), i = pe(h || v);
950
+ const y = c instanceof Date && r < c, $ = f instanceof Date && i > f;
951
+ return y && (r = Ee(c)), $ && (i = pe(f)), r > i && (y ? i = pe(r) : r = Ee(i)), { startDate: r, endDate: i };
928
952
  };
929
953
  return {
930
954
  adjustDateForWeekly: t,
931
955
  adjustDateForMonthly: n,
932
956
  adjustDateForQuarterly: a,
933
- adjustStartDateInputForWeekly: (m, g, D, c) => {
934
- const { startDate: r } = t(new Date(m), null, D, c);
935
- return g(r);
957
+ adjustStartDateInputForWeekly: (v, h, c, f) => {
958
+ const { startDate: r } = t(new Date(v), null, c, f);
959
+ return h(r);
936
960
  },
937
- adjustEndDateInputForWeekly: (m, g, D, c) => {
938
- const { endDate: r } = t(new Date(m), null, D, c);
939
- return g(r);
961
+ adjustEndDateInputForWeekly: (v, h, c, f) => {
962
+ const { endDate: r } = t(new Date(v), null, c, f);
963
+ return h(r);
940
964
  },
941
- adjustStartDateInputForMonthly: (m, g, D, c) => {
942
- const { startDate: r } = n(new Date(m), null, D, c);
943
- return g(r);
965
+ adjustStartDateInputForMonthly: (v, h, c, f) => {
966
+ const { startDate: r } = n(new Date(v), null, c, f);
967
+ return h(r);
944
968
  },
945
- adjustEndDateInputForMonthly: (m, g, D, c) => {
946
- const { endDate: r } = n(new Date(m), null, D, c);
947
- return g(r);
969
+ adjustEndDateInputForMonthly: (v, h, c, f) => {
970
+ const { endDate: r } = n(new Date(v), null, c, f);
971
+ return h(r);
948
972
  },
949
- adjustStartDateInputForQuarterly: (m, g, D, c) => {
950
- const { startDate: r } = a(new Date(m), null, D, c);
951
- return g(r);
973
+ adjustStartDateInputForQuarterly: (v, h, c, f) => {
974
+ const { startDate: r } = a(new Date(v), null, c, f);
975
+ return h(r);
952
976
  },
953
- adjustEndDateInputForQuarterly: (m, g, D, c) => {
954
- const { endDate: r } = a(new Date(m), null, D, c);
955
- return g(r);
977
+ adjustEndDateInputForQuarterly: (v, h, c, f) => {
978
+ const { endDate: r } = a(new Date(v), null, c, f);
979
+ return h(r);
956
980
  }
957
981
  };
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({
982
+ }, Le = {
983
+ getCount: (e, t) => at(e, t),
984
+ sub: we,
985
+ add: le
986
+ }, Jt = {
987
+ daily: Le,
988
+ weekly: {
989
+ getCount: (e, t) => Math.round((at(e, t) + 1) / 7),
990
+ sub: pt,
991
+ add: tt
992
+ },
993
+ monthly: {
994
+ getCount: (e, t) => ct(e, t) + 1,
995
+ sub: se,
996
+ add: V,
997
+ snapStart: fe,
998
+ snapEnd: Me
999
+ },
1000
+ quarterly: {
1001
+ getCount: (e, t) => mt(e, t) + 1,
1002
+ sub: bt,
1003
+ add: et,
1004
+ snapStart: Ee,
1005
+ snapEnd: pe
1006
+ }
1007
+ }, Zt = (e, t, n, a, o) => {
1008
+ const s = a?.maxRange || o;
1009
+ if (!s)
1010
+ return null;
1011
+ const u = (a?.type ? Jt[a.type] : Le) || Le, D = u.getCount(t, e);
1012
+ if (D > s) {
1013
+ const M = D - s, v = u.snapEnd ? u.snapEnd(u.sub(t, M)) : u.sub(t, M), h = u.snapStart ? u.snapStart(u.add(e, M)) : u.add(e, M);
1014
+ return n < 1 ? { startDate: e, endDate: v } : { startDate: h, endDate: t };
1015
+ }
1016
+ return null;
1017
+ }, en = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: s, max: l }, u) => {
1018
+ const { adjustDateForWeekly: v, adjustDateForMonthly: h, adjustDateForQuarterly: c } = Xt(o), f = Ke({
960
1019
  startDate: null,
961
1020
  endDate: null
962
- }), r = x(null);
1021
+ }), r = Q(null);
963
1022
  re(
964
1023
  () => e.value,
965
1024
  () => {
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);
1025
+ let { startDate: g = null, endDate: m = null } = e.value || {};
1026
+ g && (g = ee(g)), m && (m = ee(m)), !(g && t && t(g) || m && t && t(m) || g && m && yt(g, m)) && (f.startDate = g, f.endDate = m);
968
1027
  },
969
1028
  { immediate: !0, deep: !0 }
970
1029
  );
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));
975
- }
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)) {
1030
+ const i = (g, m, E) => {
1031
+ f.startDate = g, f.endDate = m;
1032
+ const Y = Zt(g, m, E, a.value, n.value);
1033
+ Y && (f.startDate = Y.startDate, f.endDate = Y.endDate), u(q.START_DATE_SELECTED, f.startDate), u(q.END_DATE_SELECTED, f.endDate);
1034
+ }, y = (g) => {
1035
+ if (!(!r.value || t && t(g)))
1036
+ if (gt(g, r.value)) {
980
1037
  if (a?.value?.type === "weekly") {
981
- const { startDate: v, endDate: E } = m(h, r.value, s.value, i.value);
982
- l(v, E, -1);
1038
+ const { startDate: m, endDate: E } = v(g, r.value, s.value, l.value);
1039
+ i(m, E, -1);
983
1040
  return;
984
1041
  }
985
1042
  if (a?.value?.type === "monthly") {
986
- const { startDate: v, endDate: E } = g(h, r.value, s.value, i.value);
987
- l(v, E, -1);
1043
+ const { startDate: m, endDate: E } = h(g, r.value, s.value, l.value);
1044
+ i(m, E, -1);
988
1045
  return;
989
1046
  }
990
1047
  if (a?.value?.type === "quarterly") {
991
- const { startDate: v, endDate: E } = D(h, r.value, s.value, i.value);
992
- l(v, E, -1);
1048
+ const { startDate: m, endDate: E } = c(g, r.value, s.value, l.value);
1049
+ i(m, E, -1);
993
1050
  return;
994
1051
  }
995
- l(h, r.value, -1);
1052
+ i(g, r.value, -1);
996
1053
  } else {
997
1054
  if (a?.value?.type === "weekly") {
998
- const { startDate: v, endDate: E } = m(r.value, h, s.value, i.value);
999
- l(v, E, 1);
1055
+ const { startDate: m, endDate: E } = v(r.value, g, s.value, l.value);
1056
+ i(m, E, 1);
1000
1057
  return;
1001
1058
  }
1002
1059
  if (a?.value?.type === "monthly") {
1003
- const { startDate: v, endDate: E } = g(r.value, h, s.value, i.value);
1004
- l(v, E, 1);
1060
+ const { startDate: m, endDate: E } = h(r.value, g, s.value, l.value);
1061
+ i(m, E, 1);
1005
1062
  return;
1006
1063
  }
1007
1064
  if (a?.value?.type === "quarterly") {
1008
- const { startDate: v, endDate: E } = D(r.value, h, s.value, i.value);
1009
- l(v, E, 1);
1065
+ const { startDate: m, endDate: E } = c(r.value, g, s.value, l.value);
1066
+ i(m, E, 1);
1010
1067
  return;
1011
1068
  }
1012
- l(r.value, h, 1);
1069
+ i(r.value, g, 1);
1013
1070
  }
1014
1071
  };
1015
1072
  return {
1016
- internalValue: c,
1017
- onDateInput: (h) => {
1073
+ internalValue: f,
1074
+ onDateInput: (g) => {
1018
1075
  if (r.value)
1019
- r.value = null, u(K.INPUT, c);
1076
+ r.value = null, u(q.INPUT, f);
1020
1077
  else {
1021
- let v = h;
1078
+ let m = g;
1022
1079
  if (a?.value?.type === "weekly") {
1023
- const { startDate: E, endDate: Y } = m(h);
1024
- v = E, l(v, Y);
1080
+ const { startDate: E, endDate: Y } = v(g);
1081
+ m = E, i(m, Y);
1025
1082
  }
1026
1083
  if (a?.value?.type === "monthly") {
1027
- const { startDate: E, endDate: Y } = g(h);
1028
- v = E, l(v, Y);
1084
+ const { startDate: E, endDate: Y } = h(g);
1085
+ m = E, i(m, Y);
1029
1086
  }
1030
1087
  if (a?.value?.type === "quarterly") {
1031
- const { startDate: E, endDate: Y } = D(h);
1032
- v = E, l(v, Y);
1088
+ const { startDate: E, endDate: Y } = c(g);
1089
+ m = E, i(m, Y);
1033
1090
  }
1034
- r.value = v, y(v);
1091
+ r.value = m, y(m);
1035
1092
  }
1036
1093
  },
1037
1094
  onMouseOver: y
1038
1095
  };
1039
- }, Vt = De({
1096
+ }, tn = De({
1040
1097
  name: "calendar",
1041
- components: { CalendarMonth: Ue, CalendarYear: je },
1098
+ components: { CalendarMonth: He, CalendarYear: We },
1042
1099
  props: {
1043
1100
  /**
1044
1101
  * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
1045
1102
  */
1046
1103
  firstDayOfWeek: {
1047
1104
  type: Number,
1048
- default: X.MONDAY,
1049
- validator: (e) => Object.values(X).includes(e)
1105
+ default: J.MONDAY,
1106
+ validator: (e) => Object.values(J).includes(e)
1050
1107
  },
1051
1108
  /**
1052
1109
  * The selected granularity configuration
@@ -1109,9 +1166,9 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1109
1166
  validator: (e) => Object.values(Ye).includes(e)
1110
1167
  }
1111
1168
  },
1112
- emit: [K.INPUT, K.START_DATE_SELECTED, K.END_DATE_SELECTED],
1169
+ emit: [q.INPUT, q.START_DATE_SELECTED, q.END_DATE_SELECTED],
1113
1170
  setup(e, { emit: t }) {
1114
- const n = x(null), a = x();
1171
+ const n = Q(null), a = Q();
1115
1172
  re(
1116
1173
  () => e.value,
1117
1174
  () => {
@@ -1125,10 +1182,10 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1125
1182
  { immediate: !0, deep: !0 }
1126
1183
  );
1127
1184
  const o = I(
1128
- () => e.variant === Ye.MONTH ? je : Ue
1185
+ () => e.variant === Ye.MONTH ? We : He
1129
1186
  ), s = I(() => ({
1130
1187
  "b-calendar__range": e.isRange
1131
- })), { internalValue: i, onDateInput: u, onMouseOver: f } = e.isRange ? Wt(
1188
+ })), { internalValue: l, onDateInput: u, onMouseOver: D } = e.isRange ? en(
1132
1189
  {
1133
1190
  selectedDate: P(e, "value"),
1134
1191
  isDateDisabled: e.isDateDisabled,
@@ -1139,18 +1196,18 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1139
1196
  max: P(e, "max")
1140
1197
  },
1141
1198
  t
1142
- ) : jt(
1199
+ ) : zt(
1143
1200
  {
1144
1201
  selectedDate: P(e, "value"),
1145
1202
  firstDayOfWeek: e.firstDayOfWeek
1146
1203
  },
1147
1204
  t
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);
1205
+ ), M = (r) => e.numberOfMonths === 1 ? oe.UNIQUE : r === 0 ? oe.FIRST : r === e.numberOfMonths - 1 ? oe.LAST : oe.MIDDLE, v = I(() => (r) => {
1206
+ const i = e?.showEndDateOnOpen && e.isRange ? se(a.value, e.numberOfMonths - 1) : a.value;
1207
+ return V(i, r);
1208
+ }), h = I(() => (r) => {
1209
+ const i = e?.showEndDateOnOpen ? Ot(a.value, e.numberOfMonths - 1) : a.value;
1210
+ return nt(i, r);
1154
1211
  });
1155
1212
  return {
1156
1213
  // Refs
@@ -1159,28 +1216,28 @@ const Yt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1159
1216
  baseDate: a,
1160
1217
  calendarComponent: o,
1161
1218
  conditionalClasses: s,
1162
- internalValue: i,
1219
+ internalValue: l,
1163
1220
  // Methods
1164
- calculateOffsetMonth: m,
1165
- calculateOffsetYear: g,
1166
- calendarPosition: N,
1221
+ calculateOffsetMonth: v,
1222
+ calculateOffsetYear: h,
1223
+ calendarPosition: M,
1167
1224
  // Events
1168
1225
  onDateInput: u,
1169
- onMouseOver: f,
1226
+ onMouseOver: D,
1170
1227
  calculateNextMonths: (r = 1) => {
1171
- a.value = Z(a.value, r);
1228
+ a.value = V(a.value, r);
1172
1229
  },
1173
1230
  calculatePreviousMonths: (r = 1) => {
1174
- a.value = de(a.value, r);
1231
+ a.value = se(a.value, r);
1175
1232
  }
1176
1233
  };
1177
1234
  }
1178
1235
  });
1179
- function Kt(e, t, n, a, o, s) {
1180
- return O(), k("div", {
1181
- class: Le(["b-calendar", e.conditionalClasses])
1236
+ function nn(e, t, n, a, o, s) {
1237
+ return p(), k("div", {
1238
+ class: Ae(["b-calendar", e.conditionalClasses])
1182
1239
  }, [
1183
- (O(!0), k(Q, null, z(e.numberOfMonths, (i, u) => (O(), J(at(e.calendarComponent), {
1240
+ (p(!0), k(z, null, X(e.numberOfMonths, (l, u) => (p(), Z(lt(e.calendarComponent), {
1184
1241
  ref_for: !0,
1185
1242
  ref: e.numberOfMonths === 1 ? "calendarRef" : null,
1186
1243
  key: `calendar-${u}`,
@@ -1203,31 +1260,34 @@ function Kt(e, t, n, a, o, s) {
1203
1260
  }, 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))
1204
1261
  ], 2);
1205
1262
  }
1206
- const cn = /* @__PURE__ */ fe(Vt, [["render", Kt], ["__scopeId", "data-v-0efc3efc"]]);
1263
+ const En = /* @__PURE__ */ me(tn, [["render", nn], ["__scopeId", "data-v-0efc3efc"]]);
1207
1264
  export {
1208
- X as C,
1265
+ J as C,
1209
1266
  Ye as a,
1210
- cn as b,
1211
- K as c,
1267
+ En as b,
1268
+ q as c,
1212
1269
  oe as d,
1213
- un as e,
1214
- ln as f,
1270
+ Mn as e,
1271
+ gn as f,
1215
1272
  _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,
1227
- ge as s,
1228
- ft as t,
1229
- Ht as u,
1230
- lt as v,
1231
- Ce as w
1273
+ Ee as h,
1274
+ ye as i,
1275
+ ee as j,
1276
+ le as k,
1277
+ be as l,
1278
+ we as m,
1279
+ V as n,
1280
+ se as o,
1281
+ Nn as p,
1282
+ et as q,
1283
+ pe as r,
1284
+ fe as s,
1285
+ bt as t,
1286
+ Xt as u,
1287
+ yn as v,
1288
+ Be as w,
1289
+ Mt as x,
1290
+ vt as y,
1291
+ Ue as z
1232
1292
  };
1233
- //# sourceMappingURL=calendar.qm-kFNQv.js.map
1293
+ //# sourceMappingURL=calendar.DfMwuOIR.js.map