@adyen/bento-vue3 1.90.0 → 1.91.0

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