@adyen/bento-vue2 1.57.1 → 1.58.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 (186) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +190 -51
  3. package/dist/action-bar.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/base-modal.css +1 -1
  7. package/dist/assets/card.css +1 -1
  8. package/dist/assets/data-grid-template.css +1 -1
  9. package/dist/assets/data-grid.css +1 -1
  10. package/dist/assets/date-range-picker.css +1 -1
  11. package/dist/assets/dialog-page.css +1 -1
  12. package/dist/assets/file-uploader.css +1 -1
  13. package/dist/assets/filter-bar.css +1 -1
  14. package/dist/assets/input-field-password.css +1 -1
  15. package/dist/assets/inspector.css +1 -1
  16. package/dist/assets/menu.css +1 -1
  17. package/dist/assets/modal-fullscreen.css +1 -1
  18. package/dist/assets/popover.css +1 -1
  19. package/dist/assets/sidepanel.css +1 -1
  20. package/dist/avatar.js +1 -1
  21. package/dist/button.js +1 -1
  22. package/dist/card.js +1 -1
  23. package/dist/checkbox.js +2 -2
  24. package/dist/chunks/{action-bar.nUvnRVwP.js → action-bar.CErJh_wJ.js} +4 -4
  25. package/dist/chunks/{action-bar.nUvnRVwP.js.map → action-bar.CErJh_wJ.js.map} +1 -1
  26. package/dist/chunks/{avatar.CP1oL5W2.js → avatar.BgwjpLQO.js} +4 -3
  27. package/dist/chunks/{avatar.CP1oL5W2.js.map → avatar.BgwjpLQO.js.map} +1 -1
  28. package/dist/chunks/{base-modal.DdznUtgC.js → base-modal.D4x_tmYO.js} +2 -2
  29. package/dist/chunks/{base-modal.DdznUtgC.js.map → base-modal.D4x_tmYO.js.map} +1 -1
  30. package/dist/chunks/{button-actions-with-menu.CDLJMdJh.js → button-actions-with-menu.BHmj0Xvn.js} +4 -4
  31. package/dist/chunks/{button-actions-with-menu.CDLJMdJh.js.map → button-actions-with-menu.BHmj0Xvn.js.map} +1 -1
  32. package/dist/chunks/{button-actions.DUn_iPDm.js → button-actions.V0te_IrY.js} +2 -2
  33. package/dist/chunks/{button-actions.DUn_iPDm.js.map → button-actions.V0te_IrY.js.map} +1 -1
  34. package/dist/chunks/calendar.C7onA58P.js +1166 -0
  35. package/dist/chunks/calendar.C7onA58P.js.map +1 -0
  36. package/dist/chunks/{card.BYUqSnBy.js → card.CC4BEw-7.js} +2 -2
  37. package/dist/chunks/{card.BYUqSnBy.js.map → card.CC4BEw-7.js.map} +1 -1
  38. package/dist/chunks/{checkbox-group.HhNN-r-o.js → checkbox-group.Bev3ogYa.js} +4 -4
  39. package/dist/chunks/{checkbox-group.HhNN-r-o.js.map → checkbox-group.Bev3ogYa.js.map} +1 -1
  40. package/dist/chunks/{checkbox.CkaV8-b-.js → checkbox.DCIphKqu.js} +3 -3
  41. package/dist/chunks/{checkbox.CkaV8-b-.js.map → checkbox.DCIphKqu.js.map} +1 -1
  42. package/dist/chunks/{code-snippet.BdwtKOEj.js → code-snippet.BjtPvt9m.js} +5 -5
  43. package/dist/chunks/{code-snippet.BdwtKOEj.js.map → code-snippet.BjtPvt9m.js.map} +1 -1
  44. package/dist/chunks/{controls-group.CG5RvOSi.js → controls-group.CtpaKQIg.js} +2 -2
  45. package/dist/chunks/{controls-group.CG5RvOSi.js.map → controls-group.CtpaKQIg.js.map} +1 -1
  46. package/dist/chunks/{copy.MTsLLiC0.js → copy.BggvtZCO.js} +2 -2
  47. package/dist/chunks/{copy.MTsLLiC0.js.map → copy.BggvtZCO.js.map} +1 -1
  48. package/dist/chunks/{dashboard-section.DYk4LVm8.js → dashboard-section.D9LPEZ88.js} +2 -2
  49. package/dist/chunks/{dashboard-section.DYk4LVm8.js.map → dashboard-section.D9LPEZ88.js.map} +1 -1
  50. package/dist/chunks/{dashed-underline.lDp966e8.js → dashed-underline.DGRnOVkG.js} +3 -3
  51. package/dist/chunks/{dashed-underline.lDp966e8.js.map → dashed-underline.DGRnOVkG.js.map} +1 -1
  52. package/dist/chunks/{data-grid-template.Dcnw2_Du.js → data-grid-template.CwqfhYua.js} +2 -2
  53. package/dist/chunks/{data-grid-template.Dcnw2_Du.js.map → data-grid-template.CwqfhYua.js.map} +1 -1
  54. package/dist/chunks/{data-grid.DwdO-UCB.js → data-grid.Dl3xh62_.js} +1163 -1098
  55. package/dist/chunks/data-grid.Dl3xh62_.js.map +1 -0
  56. package/dist/chunks/{date-picker.oVG4b_5b.js → date-picker.DgF85qSC.js} +7 -6
  57. package/dist/chunks/{date-picker.oVG4b_5b.js.map → date-picker.DgF85qSC.js.map} +1 -1
  58. package/dist/chunks/date-range-picker.CAQY6v7g.js +967 -0
  59. package/dist/chunks/date-range-picker.CAQY6v7g.js.map +1 -0
  60. package/dist/chunks/{dropdown-tag.CqcduQgK.js → dropdown-tag.Cn6lz_lG.js} +4 -4
  61. package/dist/chunks/{dropdown-tag.CqcduQgK.js.map → dropdown-tag.Cn6lz_lG.js.map} +1 -1
  62. package/dist/chunks/{dropdown.sRIb4drl.js → dropdown.C01pOog2.js} +4 -4
  63. package/dist/chunks/{dropdown.sRIb4drl.js.map → dropdown.C01pOog2.js.map} +1 -1
  64. package/dist/chunks/{error-message.JskAm-Td.js → error-message.dQtl9mYG.js} +2 -2
  65. package/dist/chunks/{error-message.JskAm-Td.js.map → error-message.dQtl9mYG.js.map} +1 -1
  66. package/dist/chunks/{es6.BtaxuP0b.js → es6.BA9GH7QZ.js} +2 -2
  67. package/dist/chunks/{es6.BtaxuP0b.js.map → es6.BA9GH7QZ.js.map} +1 -1
  68. package/dist/chunks/{file-uploader.DhOTdtfm.js → file-uploader.D81zRKpY.js} +3 -3
  69. package/dist/chunks/{file-uploader.DhOTdtfm.js.map → file-uploader.D81zRKpY.js.map} +1 -1
  70. package/dist/chunks/{filter-bar.DRDC6mhJ.js → filter-bar.CcsUi7Xg.js} +604 -575
  71. package/dist/chunks/filter-bar.CcsUi7Xg.js.map +1 -0
  72. package/dist/chunks/{footer-actions.CWOEDPKJ.js → footer-actions.Cn-793_Z.js} +2 -2
  73. package/dist/chunks/{footer-actions.CWOEDPKJ.js.map → footer-actions.Cn-793_Z.js.map} +1 -1
  74. package/dist/chunks/{header-with-views.B8ncHkZt.js → header-with-views.BTd57MWZ.js} +13 -12
  75. package/dist/chunks/{header-with-views.B8ncHkZt.js.map → header-with-views.BTd57MWZ.js.map} +1 -1
  76. package/dist/chunks/{header.byOrhnHk.js → header.Rr0lnNYz.js} +4 -4
  77. package/dist/chunks/{header.byOrhnHk.js.map → header.Rr0lnNYz.js.map} +1 -1
  78. package/dist/chunks/{info-icon-with-popover.Cfng_pMj.js → info-icon-with-popover.B9QgNl-S.js} +2 -2
  79. package/dist/chunks/{info-icon-with-popover.Cfng_pMj.js.map → info-icon-with-popover.B9QgNl-S.js.map} +1 -1
  80. package/dist/chunks/{info-icon.DgCYoVE3.js → info-icon.BL55W9hd.js} +2 -2
  81. package/dist/chunks/{info-icon.DgCYoVE3.js.map → info-icon.BL55W9hd.js.map} +1 -1
  82. package/dist/chunks/input-field-password.DMcXkdVE.js +251 -0
  83. package/dist/chunks/input-field-password.DMcXkdVE.js.map +1 -0
  84. package/dist/chunks/{input-field-phone-number.DFt3iS_A.js → input-field-phone-number.Cfy_o9aE.js} +3 -3
  85. package/dist/chunks/{input-field-phone-number.DFt3iS_A.js.map → input-field-phone-number.Cfy_o9aE.js.map} +1 -1
  86. package/dist/chunks/{input-field.rHXIJKN8.js → input-field.CP8Qui6G.js} +3 -3
  87. package/dist/chunks/{input-field.rHXIJKN8.js.map → input-field.CP8Qui6G.js.map} +1 -1
  88. package/dist/chunks/{listbox-option-tag.CBGk4m-_.js → listbox-option-tag.DDmqT1rs.js} +2 -2
  89. package/dist/chunks/{listbox-option-tag.CBGk4m-_.js.map → listbox-option-tag.DDmqT1rs.js.map} +1 -1
  90. package/dist/chunks/{menu.DZEDTBYV.js → menu.Dkesc658.js} +2 -2
  91. package/dist/chunks/{menu.DZEDTBYV.js.map → menu.Dkesc658.js.map} +1 -1
  92. package/dist/chunks/{modal-fullscreen.DRQ4V5tT.js → modal-fullscreen.D1pHbGYd.js} +2 -2
  93. package/dist/chunks/{modal-fullscreen.DRQ4V5tT.js.map → modal-fullscreen.D1pHbGYd.js.map} +1 -1
  94. package/dist/chunks/{modal.DDF63uBR.js → modal.bgya0ObK.js} +4 -4
  95. package/dist/chunks/{modal.DDF63uBR.js.map → modal.bgya0ObK.js.map} +1 -1
  96. package/dist/chunks/{pagination.BJ4qwHJn.js → pagination.CaHPf-Ye.js} +2 -2
  97. package/dist/chunks/{pagination.BJ4qwHJn.js.map → pagination.CaHPf-Ye.js.map} +1 -1
  98. package/dist/chunks/{popover.DXo3nXew.js → popover.CuOrBXcF.js} +2 -2
  99. package/dist/chunks/{popover.DXo3nXew.js.map → popover.CuOrBXcF.js.map} +1 -1
  100. package/dist/chunks/{radio-group.DtCgLBuL.js → radio-group.9jAj6AKb.js} +4 -4
  101. package/dist/chunks/{radio-group.DtCgLBuL.js.map → radio-group.9jAj6AKb.js.map} +1 -1
  102. package/dist/chunks/rich-text-editor.Ch-ETIRi.js +6203 -0
  103. package/dist/chunks/rich-text-editor.Ch-ETIRi.js.map +1 -0
  104. package/dist/chunks/{search-bar.Cc8VBCjQ.js → search-bar.Cs60bUZc.js} +3 -3
  105. package/dist/chunks/{search-bar.Cc8VBCjQ.js.map → search-bar.Cs60bUZc.js.map} +1 -1
  106. package/dist/chunks/{secondary-nav.DEDQjtj6.js → secondary-nav.i_Bb4wQF.js} +3 -3
  107. package/dist/chunks/{secondary-nav.DEDQjtj6.js.map → secondary-nav.i_Bb4wQF.js.map} +1 -1
  108. package/dist/chunks/{segmented-control.BQlmGv2x.js → segmented-control.BffWAGrf.js} +2 -2
  109. package/dist/chunks/{segmented-control.BQlmGv2x.js.map → segmented-control.BffWAGrf.js.map} +1 -1
  110. package/dist/chunks/{selection-card-group.BniN7KWU.js → selection-card-group.DTz7k_M7.js} +4 -4
  111. package/dist/chunks/{selection-card-group.BniN7KWU.js.map → selection-card-group.DTz7k_M7.js.map} +1 -1
  112. package/dist/chunks/{sidepanel.DfQaLZEA.js → sidepanel.DuTesKDW.js} +2 -2
  113. package/dist/chunks/{sidepanel.DfQaLZEA.js.map → sidepanel.DuTesKDW.js.map} +1 -1
  114. package/dist/chunks/{structured-list-item.xaedKywV.js → structured-list-item.-vyqAp4Y.js} +4 -4
  115. package/dist/chunks/{structured-list-item.xaedKywV.js.map → structured-list-item.-vyqAp4Y.js.map} +1 -1
  116. package/dist/chunks/{summary-grid.types.CNEeGgWh.js → summary-grid.types.fm_VmUVA.js} +5 -5
  117. package/dist/chunks/{summary-grid.types.CNEeGgWh.js.map → summary-grid.types.fm_VmUVA.js.map} +1 -1
  118. package/dist/chunks/{tag.C7kJJ5Ki.js → tag.DczYlfXd.js} +2 -2
  119. package/dist/chunks/{tag.C7kJJ5Ki.js.map → tag.DczYlfXd.js.map} +1 -1
  120. package/dist/chunks/{textarea.CdA36VsY.js → textarea.B7BgCn_l.js} +2 -2
  121. package/dist/chunks/{textarea.CdA36VsY.js.map → textarea.B7BgCn_l.js.map} +1 -1
  122. package/dist/chunks/{timeline-item.D87PFH_o.js → timeline-item.DdF6EN2w.js} +5 -5
  123. package/dist/chunks/{timeline-item.D87PFH_o.js.map → timeline-item.DdF6EN2w.js.map} +1 -1
  124. package/dist/chunks/{toast.BuxfqZJb.js → toast.B2u2W_TQ.js} +4 -3
  125. package/dist/chunks/{toast.BuxfqZJb.js.map → toast.B2u2W_TQ.js.map} +1 -1
  126. package/dist/chunks/{tooltip.8KbMqaXP.js → tooltip.Bm5S2goP.js} +65 -65
  127. package/dist/chunks/{tooltip.8KbMqaXP.js.map → tooltip.Bm5S2goP.js.map} +1 -1
  128. package/dist/chunks/{tutorial.D74hJVBb.js → tutorial.DIYd-V8c.js} +4 -4
  129. package/dist/chunks/{tutorial.D74hJVBb.js.map → tutorial.DIYd-V8c.js.map} +1 -1
  130. package/dist/chunks/{use-cached-selected-values.CSVs_E5A.js → use-cached-selected-values.BrkzIuaE.js} +3 -3
  131. package/dist/chunks/{use-cached-selected-values.CSVs_E5A.js.map → use-cached-selected-values.BrkzIuaE.js.map} +1 -1
  132. package/dist/code-snippet.js +1 -1
  133. package/dist/dashboard-template.js +1 -1
  134. package/dist/dashed-underline.js +1 -1
  135. package/dist/data-grid-template.js +1 -1
  136. package/dist/data-grid.js +1 -1
  137. package/dist/date-picker.js +2 -2
  138. package/dist/date-range-picker.js +2 -2
  139. package/dist/dropdown.js +3 -3
  140. package/dist/file-uploader.js +1 -1
  141. package/dist/filter-bar.js +1 -1
  142. package/dist/header-with-views.js +1 -1
  143. package/dist/header.js +1 -1
  144. package/dist/index.js +149 -147
  145. package/dist/index.js.map +1 -1
  146. package/dist/info-icon.js +1 -1
  147. package/dist/input-field-password.js +1 -1
  148. package/dist/input-field-phone-number.js +1 -1
  149. package/dist/input-field.js +1 -1
  150. package/dist/internal.js +10 -10
  151. package/dist/menu.js +1 -1
  152. package/dist/modal-fullscreen.js +1 -1
  153. package/dist/modal.js +2 -2
  154. package/dist/pagination.js +1 -1
  155. package/dist/popover.js +1 -1
  156. package/dist/radio-group.js +1 -1
  157. package/dist/rich-text-editor.js +2 -6200
  158. package/dist/rich-text-editor.js.map +1 -1
  159. package/dist/search-bar.js +2 -2
  160. package/dist/secondary-nav.js +1 -1
  161. package/dist/segmented-control.js +1 -1
  162. package/dist/selection-card.js +1 -1
  163. package/dist/sidepanel.js +1 -1
  164. package/dist/structured-list.js +1 -1
  165. package/dist/styles/bento-dark.css +15 -15
  166. package/dist/styles/bento-light.css +95 -95
  167. package/dist/styles/bento.css +95 -95
  168. package/dist/styles/legacy.css +96 -96
  169. package/dist/styles/styleguide.css +96 -96
  170. package/dist/styles/utility.css +64 -64
  171. package/dist/summary-grid.js +1 -1
  172. package/dist/tag.js +1 -1
  173. package/dist/textarea.js +1 -1
  174. package/dist/timeline.js +1 -1
  175. package/dist/toast.js +1 -1
  176. package/dist/tutorial.js +1 -1
  177. package/dist/web-types.json +43 -7
  178. package/package.json +4 -4
  179. package/dist/chunks/calendar.C0iatn5N.js +0 -1127
  180. package/dist/chunks/calendar.C0iatn5N.js.map +0 -1
  181. package/dist/chunks/data-grid.DwdO-UCB.js.map +0 -1
  182. package/dist/chunks/date-range-picker.CbLz3jJx.js +0 -905
  183. package/dist/chunks/date-range-picker.CbLz3jJx.js.map +0 -1
  184. package/dist/chunks/filter-bar.DRDC6mhJ.js.map +0 -1
  185. package/dist/chunks/input-field-password.GhHsOaiD.js +0 -233
  186. package/dist/chunks/input-field-password.GhHsOaiD.js.map +0 -1
@@ -0,0 +1,1166 @@
1
+ import { defineComponent as te, computed as w, ref as W, watch as K, nextTick as $e, toRef as F, reactive as Te } from "vue";
2
+ import { r as k, t as N, a as be, g as We } from "./get-date-locale.BN8xEjY0.js";
3
+ import { t as M, B as pe, a as xe, f as Ne } from "./date.dYFFEunA.js";
4
+ import { d as ke, a as ie } from "./index.BDuTpjD8.js";
5
+ import { B as Le } from "./button.BuD-IsW5.js";
6
+ import { B as Re } from "./typography.J1v_SPG3.js";
7
+ import { n as ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
8
+ import { C as Ye, a as Ae } from "./chevron-left.DOMTgGel.js";
9
+ import { g as Ce } from "./generate-uid.NJ8tVoha.js";
10
+ import { u as Pe } from "./i18n.BQkEbtPM.js";
11
+ import { h as He } from "./index.oJzeCMPe.js";
12
+ import { g as qe } from "./_commonjsHelpers.C6fGbg64.js";
13
+ import { a as Fe } from "./keyboard-navigation.pB8weElW.js";
14
+ import "../assets/calendar.css";
15
+ function ee(e, t) {
16
+ k(2, arguments);
17
+ var n = N(e), a = M(t);
18
+ return isNaN(a) ? /* @__PURE__ */ new Date(NaN) : (a && n.setDate(n.getDate() + a), n);
19
+ }
20
+ function q(e, t) {
21
+ k(2, arguments);
22
+ var n = N(e), a = M(t);
23
+ if (isNaN(a))
24
+ return /* @__PURE__ */ new Date(NaN);
25
+ if (!a)
26
+ return n;
27
+ var r = n.getDate(), o = new Date(n.getTime());
28
+ o.setMonth(n.getMonth() + a + 1, 0);
29
+ var s = o.getDate();
30
+ return r >= s ? o : (n.setFullYear(o.getFullYear(), o.getMonth(), r), n);
31
+ }
32
+ function oe(e, t) {
33
+ k(1, arguments);
34
+ var n = t || {}, a = n.locale, r = a && a.options && a.options.weekStartsOn, o = r == null ? 0 : M(r), s = n.weekStartsOn == null ? o : M(n.weekStartsOn);
35
+ if (!(s >= 0 && s <= 6))
36
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
37
+ var u = N(e), y = u.getDay(), g = (y < s ? 7 : 0) + y - s;
38
+ return u.setDate(u.getDate() - g), u.setHours(0, 0, 0, 0), u;
39
+ }
40
+ function V(e) {
41
+ k(1, arguments);
42
+ var t = N(e);
43
+ return t.setHours(0, 0, 0, 0), t;
44
+ }
45
+ var Ve = 864e5;
46
+ function Qe(e, t) {
47
+ k(2, arguments);
48
+ var n = V(e), a = V(t), r = n.getTime() - be(n), o = a.getTime() - be(a);
49
+ return Math.round((r - o) / Ve);
50
+ }
51
+ function Be(e, t) {
52
+ k(2, arguments);
53
+ var n = M(t);
54
+ return q(e, n * 12);
55
+ }
56
+ function ne(e, t) {
57
+ k(2, arguments);
58
+ var n = V(e), a = V(t);
59
+ return n.getTime() === a.getTime();
60
+ }
61
+ function Oe(e, t) {
62
+ var 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();
63
+ return n < 0 ? -1 : n > 0 ? 1 : n;
64
+ }
65
+ function Ke(e, t) {
66
+ k(2, arguments);
67
+ var n = N(e), a = N(t), r = Oe(n, a), o = Math.abs(Qe(n, a));
68
+ n.setDate(n.getDate() - r * o);
69
+ var s = +(Oe(n, a) === -r), u = r * (o - s);
70
+ return u === 0 ? 0 : u;
71
+ }
72
+ function ce(e) {
73
+ k(1, arguments);
74
+ var t = N(e), n = t.getMonth(), a = n - n % 3;
75
+ return t.setMonth(a, 1), t.setHours(0, 0, 0, 0), t;
76
+ }
77
+ function se(e) {
78
+ k(1, arguments);
79
+ var t = N(e);
80
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
81
+ }
82
+ function Me(e) {
83
+ k(1, arguments);
84
+ var t = N(e), n = /* @__PURE__ */ new Date(0);
85
+ return n.setFullYear(t.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
86
+ }
87
+ function ue(e, t) {
88
+ k(1, arguments);
89
+ var n = t || {}, a = n.locale, r = a && a.options && a.options.weekStartsOn, o = r == null ? 0 : M(r), s = n.weekStartsOn == null ? o : M(n.weekStartsOn);
90
+ if (!(s >= 0 && s <= 6))
91
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
92
+ var u = N(e), y = u.getDay(), g = (y < s ? -7 : 0) + 6 - (y - s);
93
+ return u.setDate(u.getDate() + g), u.setHours(23, 59, 59, 999), u;
94
+ }
95
+ function de(e) {
96
+ k(1, arguments);
97
+ var t = N(e), n = t.getMonth(), a = n - n % 3 + 3;
98
+ return t.setMonth(a, 0), t.setHours(23, 59, 59, 999), t;
99
+ }
100
+ function Xe(e) {
101
+ k(1, arguments);
102
+ var t = N(e), n = t.getFullYear(), a = t.getMonth(), r = /* @__PURE__ */ new Date(0);
103
+ return r.setFullYear(n, a + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
104
+ }
105
+ function ze(e, t) {
106
+ k(2, arguments);
107
+ var n = M(t);
108
+ return ee(e, -n);
109
+ }
110
+ function Z(e, t) {
111
+ k(2, arguments);
112
+ var n = M(t);
113
+ return q(e, -n);
114
+ }
115
+ function Je(e, t) {
116
+ k(2, arguments);
117
+ var n = N(e), a = N(t);
118
+ return n.getTime() > a.getTime();
119
+ }
120
+ function Ze(e, t) {
121
+ k(2, arguments);
122
+ var n = N(e), a = N(t);
123
+ return n.getTime() < a.getTime();
124
+ }
125
+ function re(e, t) {
126
+ k(2, arguments);
127
+ var n = N(e), a = N(t);
128
+ return n.getFullYear() === a.getFullYear() && n.getMonth() === a.getMonth();
129
+ }
130
+ function le(e, t) {
131
+ k(2, arguments);
132
+ var n = N(e).getTime(), a = N(t.start).getTime(), r = N(t.end).getTime();
133
+ if (!(a <= r))
134
+ throw new RangeError("Invalid interval");
135
+ return n >= a && n <= r;
136
+ }
137
+ function et(e, t) {
138
+ k(2, arguments);
139
+ var n = N(e), a = M(t), r = n.getFullYear(), o = n.getDate(), s = /* @__PURE__ */ new Date(0);
140
+ s.setFullYear(r, a, 15), s.setHours(0, 0, 0, 0);
141
+ var u = Xe(s);
142
+ return n.setMonth(a, Math.min(o, u)), n;
143
+ }
144
+ function tt(e, t) {
145
+ if (k(2, arguments), typeof t != "object" || t === null)
146
+ throw new RangeError("values parameter must be an object");
147
+ var n = N(e);
148
+ return isNaN(n.getTime()) ? /* @__PURE__ */ new Date(NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = et(n, t.month)), t.date != null && n.setDate(M(t.date)), t.hours != null && n.setHours(M(t.hours)), t.minutes != null && n.setMinutes(M(t.minutes)), t.seconds != null && n.setSeconds(M(t.seconds)), t.milliseconds != null && n.setMilliseconds(M(t.milliseconds)), n);
149
+ }
150
+ function at(e, t, n) {
151
+ k(2, arguments);
152
+ var a = {}, r = a.locale, o = r && r.options && r.options.weekStartsOn, s = o == null ? 0 : M(o), u = a.weekStartsOn == null ? s : M(a.weekStartsOn);
153
+ if (!(u >= 0 && u <= 6))
154
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
155
+ var y = N(e), g = M(t), f = y.getDay(), m = g % 7, v = (m + 7) % 7, d = 7 - u, l = g < 0 || g > 6 ? g - (f + d) % 7 : (v + d) % 7 - (f + d) % 7;
156
+ return ee(y, l);
157
+ }
158
+ function nt(e, t) {
159
+ k(2, arguments);
160
+ var n = M(t);
161
+ return Be(e, -n);
162
+ }
163
+ var C = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(C || {}), G = /* @__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))(G || {}), J = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(J || {});
164
+ const rt = {
165
+ /**
166
+ * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
167
+ */
168
+ day: { type: Date, required: !0 },
169
+ /**
170
+ * Indicate if a date should be disabled or not
171
+ */
172
+ disabled: { type: Boolean, default: !1 },
173
+ /**
174
+ * Changes the state of the calendar day to selected.
175
+ */
176
+ selected: { type: Boolean, default: !1 },
177
+ /**
178
+ * When the day is selected, this indicates if the selection is a single date or part of a range.
179
+ * If it's a range it can be at the beginning, middle or end of the selection.
180
+ */
181
+ variant: {
182
+ type: String,
183
+ default: C.SINGLE,
184
+ validator: (e) => Object.values(C).includes(e)
185
+ }
186
+ }, ot = te({
187
+ name: "calendar-month-day",
188
+ components: { BentoDate: pe },
189
+ inheritAttrs: !0,
190
+ props: rt,
191
+ emits: [J.CLICK, J.MOUSE_OVER],
192
+ setup(e, { emit: t }) {
193
+ const n = w(() => {
194
+ const o = /* @__PURE__ */ new Date();
195
+ return e.day.getDate() === o.getDate() && e.day.getMonth() === o.getMonth() && e.day.getFullYear() === o.getFullYear();
196
+ });
197
+ return {
198
+ // Values
199
+ conditionalClasses: w(() => ({
200
+ // Variants
201
+ [`b-calendar-month-day--${G.BEGINNING}`]: e.variant === C.BEGINNING,
202
+ [`b-calendar-month-day--${G.MIDDLE}`]: e.variant === C.MIDDLE,
203
+ [`b-calendar-month-day--${G.END}`]: e.variant === C.END,
204
+ [`b-calendar-month-day--${G.SINGLE}`]: e.variant === C.SINGLE,
205
+ // Selected
206
+ [`b-calendar-month-day--${G.UNSELECTED}`]: !e.selected,
207
+ [`b-calendar-month-day--${G.SELECTED}`]: e.selected,
208
+ // Current Day
209
+ [`b-calendar-month-day--${G.CURRENT_DAY}`]: n.value,
210
+ // Disabled
211
+ [`b-calendar-month-day--${G.DISABLED}`]: e.disabled
212
+ })),
213
+ // Enums
214
+ BentoDateFormat: xe,
215
+ CalendarMonthDayEvent: J,
216
+ // Events
217
+ onClick: (o, s) => {
218
+ e.disabled ? (o.preventDefault(), o.stopPropagation()) : t(J.CLICK, s, e.day);
219
+ }
220
+ };
221
+ }
222
+ });
223
+ var st = function() {
224
+ var t = this, n = t._self._c;
225
+ return t._self._setupProxy, n("td", { staticClass: "b-calendar-month-day", class: t.conditionalClasses, attrs: { tabindex: t.selected ? "0" : "-1", "aria-selected": t.selected ? t.selected : void 0, "aria-disabled": t.disabled, "data-date": t.day.toDateString() }, on: { click: (a) => t.onClick(a, t.day), mouseover: function(a) {
226
+ return t.$emit(t.CalendarMonthDayEvent.MOUSE_OVER);
227
+ }, keydown: function(a) {
228
+ return !a.type.indexOf("key") && t._k(a.keyCode, "space", 32, a.key, [" ", "Spacebar"]) && t._k(a.keyCode, "enter", 13, a.key, "Enter") ? null : ((r) => t.onClick(r, t.day)).apply(null, arguments);
229
+ } } }, [n("div", { staticClass: "b-calendar-month-day__wrapper" }, [n("bento-date", { staticClass: "b-calendar-month-day__label", attrs: { date: t.day, format: t.BentoDateFormat.DAY_OF_MONTH } })], 1)]);
230
+ }, ut = [], lt = /* @__PURE__ */ ae(
231
+ ot,
232
+ st,
233
+ ut,
234
+ !1,
235
+ null,
236
+ "83a5b036"
237
+ );
238
+ const it = lt.exports;
239
+ var A = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(A || {}), H = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(H || {}), $ = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))($ || {}), Q = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(Q || {}), fe = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(fe || {}), ve = { exports: {} }, De = { exports: {} };
240
+ (function(e, t) {
241
+ Object.defineProperty(t, "__esModule", {
242
+ value: !0
243
+ }), t.default = n;
244
+ function n(a) {
245
+ if (a === null || a === !0 || a === !1)
246
+ return NaN;
247
+ var r = Number(a);
248
+ return isNaN(r) ? r : r < 0 ? Math.ceil(r) : Math.floor(r);
249
+ }
250
+ e.exports = t.default;
251
+ })(De, De.exports);
252
+ var Ue = De.exports, me = { exports: {} }, ye = { exports: {} }, he = { exports: {} };
253
+ (function(e, t) {
254
+ Object.defineProperty(t, "__esModule", {
255
+ value: !0
256
+ }), t.default = n;
257
+ function n(a, r) {
258
+ if (r.length < a)
259
+ throw new TypeError(a + " argument" + (a > 1 ? "s" : "") + " required, but only " + r.length + " present");
260
+ }
261
+ e.exports = t.default;
262
+ })(he, he.exports);
263
+ var ge = he.exports;
264
+ (function(e, t) {
265
+ Object.defineProperty(t, "__esModule", {
266
+ value: !0
267
+ }), t.default = r;
268
+ var n = a(ge);
269
+ function a(o) {
270
+ return o && o.__esModule ? o : { default: o };
271
+ }
272
+ function r(o) {
273
+ (0, n.default)(1, arguments);
274
+ var s = Object.prototype.toString.call(o);
275
+ return o instanceof Date || typeof o == "object" && s === "[object Date]" ? new Date(o.getTime()) : typeof o == "number" || s === "[object Number]" ? new Date(o) : ((typeof o == "string" || s === "[object String]") && typeof console < "u" && (console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://git.io/fjule"), console.warn(new Error().stack)), /* @__PURE__ */ new Date(NaN));
276
+ }
277
+ e.exports = t.default;
278
+ })(ye, ye.exports);
279
+ var ct = ye.exports;
280
+ (function(e, t) {
281
+ Object.defineProperty(t, "__esModule", {
282
+ value: !0
283
+ }), t.default = s;
284
+ var n = o(Ue), a = o(ct), r = o(ge);
285
+ function o(u) {
286
+ return u && u.__esModule ? u : { default: u };
287
+ }
288
+ function s(u, y) {
289
+ (0, r.default)(2, arguments);
290
+ var g = (0, a.default)(u), f = (0, n.default)(y);
291
+ return isNaN(f) ? /* @__PURE__ */ new Date(NaN) : (f && g.setDate(g.getDate() + f), g);
292
+ }
293
+ e.exports = t.default;
294
+ })(me, me.exports);
295
+ var dt = me.exports;
296
+ (function(e, t) {
297
+ Object.defineProperty(t, "__esModule", {
298
+ value: !0
299
+ }), t.default = s;
300
+ var n = o(Ue), a = o(dt), r = o(ge);
301
+ function o(u) {
302
+ return u && u.__esModule ? u : { default: u };
303
+ }
304
+ function s(u, y) {
305
+ (0, r.default)(2, arguments);
306
+ var g = (0, n.default)(y);
307
+ return (0, a.default)(u, -g);
308
+ }
309
+ e.exports = t.default;
310
+ })(ve, ve.exports);
311
+ var ft = ve.exports;
312
+ const we = /* @__PURE__ */ qe(ft), Ge = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, r) => {
313
+ const o = W(new Date(t.value));
314
+ K(
315
+ t,
316
+ () => {
317
+ o.value = t.value;
318
+ },
319
+ { immediate: !0 }
320
+ );
321
+ const s = W(new Date(e.value));
322
+ K(e, () => {
323
+ s.value = new Date(e.value);
324
+ });
325
+ const u = He(), y = W(s.value);
326
+ K(u, (c) => {
327
+ const E = c.getAttribute("data-date");
328
+ y.value = E ? new Date(E) : s.value;
329
+ });
330
+ const g = W({}), f = (c) => (E) => {
331
+ g.value[c.toDateString()] = E;
332
+ }, m = () => {
333
+ g.value = {};
334
+ }, v = (c = 1) => {
335
+ o.value = q(o.value, c), r(A.NEXT_MONTH, c), m();
336
+ }, d = (c = 1) => {
337
+ o.value = Z(o.value, c), r(A.PREVIOUS_MONTH, c), m();
338
+ }, l = (c) => {
339
+ const E = !!g.value[c == null ? void 0 : c.toDateString()];
340
+ c && E && g.value[c.toDateString()].$el.focus();
341
+ }, i = (c) => {
342
+ c.preventDefault(), c.stopImmediatePropagation(), c.stopPropagation();
343
+ }, h = ({ nextDate: c, isIncreasingDays: E, amountOfMonths: R, isCalendarButtonsNav: U }) => {
344
+ if (!U && n && n(c))
345
+ return;
346
+ c.getMonth() === s.value.getMonth() && c.getFullYear() === s.value.getFullYear() ? (s.value = c, l(c)) : (E ? v(R) : d(R), $e(() => {
347
+ const O = c.getMonth() === o.value.getMonth() && c.getFullYear() === o.value.getFullYear();
348
+ n && n(c) || !O || U || (s.value = c, l(c));
349
+ }));
350
+ };
351
+ return {
352
+ // Calendar days ref
353
+ calendarRef: g,
354
+ addDayRef: f,
355
+ /**
356
+ * Month navigation
357
+ */
358
+ showNextMonth: v,
359
+ showPreviousMonth: d,
360
+ /**
361
+ * Focus method
362
+ */
363
+ focusOnDate: l,
364
+ /**
365
+ * Day navigation
366
+ */
367
+ // ArrowRight
368
+ moveToNextDay: (c) => {
369
+ i(c), h({ nextDate: ee(y.value, 1), isIncreasingDays: !0 });
370
+ },
371
+ // ArrowLeft
372
+ moveToPreviousDay: (c) => {
373
+ i(c), h({ nextDate: we(y.value, 1), isIncreasingDays: !1 });
374
+ },
375
+ // ArrowUp
376
+ moveToPreviousWeek: (c) => {
377
+ i(c), h({ nextDate: we(y.value, 7), isIncreasingDays: !1 });
378
+ },
379
+ // ArrowDown
380
+ moveToNextWeek: (c) => {
381
+ i(c), h({ nextDate: ee(y.value, 7), isIncreasingDays: !0 });
382
+ },
383
+ // Home
384
+ moveToFirstDayOfWeek: (c) => {
385
+ i(c), h({
386
+ nextDate: oe(y.value, { weekStartsOn: a }),
387
+ isIncreasingDays: !1
388
+ });
389
+ },
390
+ moveToFirstMonthOfYear: (c) => {
391
+ i(c);
392
+ const E = ke(s.value, Me(s.value));
393
+ h({
394
+ nextDate: Me(s.value),
395
+ isIncreasingDays: !1,
396
+ amountOfMonths: E
397
+ });
398
+ },
399
+ // End
400
+ moveToLastDayOfWeek: (c) => {
401
+ i(c), h({
402
+ nextDate: ue(y.value, { weekStartsOn: a }),
403
+ isIncreasingDays: !0
404
+ });
405
+ },
406
+ moveToLastMonthOfYear: (c) => {
407
+ i(c);
408
+ const E = tt(s.value, { month: 11, date: 1 }), R = ke(E, s.value);
409
+ h({
410
+ nextDate: E,
411
+ isIncreasingDays: !0,
412
+ amountOfMonths: R
413
+ });
414
+ },
415
+ // PageUp
416
+ moveToPreviousMonth: (c, E = !1, R = 1) => {
417
+ i(c);
418
+ const U = R;
419
+ h({
420
+ nextDate: Z(y.value, U),
421
+ isIncreasingDays: !1,
422
+ amountOfMonths: U,
423
+ isCalendarButtonsNav: E
424
+ });
425
+ },
426
+ // Shift+PageUp
427
+ moveToPreviousYear: (c, E = !1) => {
428
+ i(c);
429
+ const R = 12;
430
+ h({
431
+ nextDate: Z(y.value, R),
432
+ isIncreasingDays: !1,
433
+ amountOfMonths: R,
434
+ isCalendarButtonsNav: E
435
+ });
436
+ },
437
+ // PageDown
438
+ moveToNextMonth: (c, E = !1, R = 1) => {
439
+ i(c);
440
+ const U = R;
441
+ h({
442
+ nextDate: q(y.value, U),
443
+ isIncreasingDays: !0,
444
+ amountOfMonths: U,
445
+ isCalendarButtonsNav: E
446
+ });
447
+ },
448
+ // Shift-PageDown
449
+ moveToNextYear: (c, E = !1) => {
450
+ i(c);
451
+ const R = 12;
452
+ h({
453
+ nextDate: q(y.value, R),
454
+ isIncreasingDays: !0,
455
+ amountOfMonths: R,
456
+ isCalendarButtonsNav: E
457
+ });
458
+ },
459
+ // Values
460
+ internalDate: s,
461
+ baseDate: o
462
+ };
463
+ }, vt = {
464
+ "en-US": {
465
+ nextMonth: "Next month",
466
+ previousMonth: "Previous month"
467
+ }
468
+ }, Dt = te({
469
+ i18n: { messages: vt },
470
+ name: "calendar-month",
471
+ components: {
472
+ BentoButton: Le,
473
+ BentoTypography: Re,
474
+ CalendarMonthDay: it,
475
+ ChevronLeftIcon: Ae,
476
+ ChevronRightIcon: Ye
477
+ },
478
+ directives: { BentoKeyboardNavigationDirective: Fe },
479
+ props: {
480
+ /**
481
+ * end of the selected range
482
+ */
483
+ endDate: { type: Date, default: null },
484
+ /**
485
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
486
+ */
487
+ firstDayOfWeek: {
488
+ type: Number,
489
+ default: H.MONDAY,
490
+ validator: (e) => Object.values(H).includes(e)
491
+ },
492
+ /**
493
+ * Indicate if a date should be disabled or not
494
+ */
495
+ isDateDisabled: { type: Function, default: void 0 },
496
+ /**
497
+ * Indicates if the calendar is part of a range date picker or a sigle date picker
498
+ */
499
+ isRange: { type: Boolean, default: !1 },
500
+ /**
501
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
502
+ */
503
+ min: { type: Date, default: null },
504
+ /**
505
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
506
+ */
507
+ max: { type: Date, default: null },
508
+ /**
509
+ * Month of the year to be displayed in the calendar
510
+ */
511
+ month: { type: Date, required: !0 },
512
+ /**
513
+ * When rendering multiple calendars, this property allows to render the
514
+ * Next and Previous calendar buttons to the right, left or not at all
515
+ * depending on the position: Unique (only 1), First, Middle or Last
516
+ */
517
+ position: {
518
+ type: String,
519
+ default: "unique",
520
+ validator: (e) => Object.values(Q).includes(e)
521
+ },
522
+ /**
523
+ * start of the selected range
524
+ */
525
+ startDate: { type: Date, default: null }
526
+ // can be undefined, eslint complains without default
527
+ },
528
+ emits: [
529
+ A.CHANGE_DAY,
530
+ A.INPUT,
531
+ A.NEXT_MONTH,
532
+ A.PREVIOUS_MONTH,
533
+ A.MOUSE_OVER
534
+ ],
535
+ setup(e, { emit: t }) {
536
+ const { locale: n, t: a } = Pe(), r = We(), o = Ce("bento-date-picker-month-label"), s = w(
537
+ () => (O) => {
538
+ var P;
539
+ return e.min && O < e.min || e.max && O > e.max || ((P = e.isDateDisabled) == null ? void 0 : P.call(e, O));
540
+ }
541
+ ), {
542
+ internalDate: u,
543
+ baseDate: y,
544
+ // Calendar refs
545
+ addDayRef: g,
546
+ // Month navigation
547
+ showNextMonth: f,
548
+ showPreviousMonth: m,
549
+ // Day navigation
550
+ moveToNextDay: v,
551
+ moveToPreviousDay: d,
552
+ moveToPreviousWeek: l,
553
+ moveToNextWeek: i,
554
+ moveToFirstDayOfWeek: h,
555
+ moveToLastDayOfWeek: x,
556
+ moveToPreviousMonth: D,
557
+ moveToPreviousYear: b,
558
+ moveToNextMonth: Y,
559
+ moveToNextYear: L,
560
+ focusOnDate: T
561
+ } = Ge(
562
+ {
563
+ currentSelectedDate: F(e, "startDate"),
564
+ month: F(e, "month"),
565
+ isDateDisabled: s.value,
566
+ firstDayOfWeek: e.firstDayOfWeek
567
+ },
568
+ t
569
+ ), _ = w(
570
+ () => Object.values(H).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : H.MONDAY
571
+ ), p = w(() => ["first", "unique"].includes(e.position)), S = w(() => ["last", "unique"].includes(e.position)), I = w(
572
+ () => Ne(y.value, "MMMM yyyy", {
573
+ locale: r[n.value.substring(0, 2)] || r.enUS
574
+ })
575
+ ), X = w(
576
+ () => new Array(7).fill(/* @__PURE__ */ new Date()).map((O, P) => {
577
+ const z = at(O, _.value + P);
578
+ return Ne(z, "EEE", {
579
+ locale: r[n.value.substring(0, 2)] || r.enUS
580
+ });
581
+ })
582
+ ), Ee = w(() => {
583
+ const O = [], P = se(e.month);
584
+ let z = O[O.push([]) - 1];
585
+ for (; P.getMonth() === e.month.getMonth(); )
586
+ P.getDay() - _.value === 0 && z.length > 0 && (z = O[O.push([]) - 1]), z.push(V(P)), P.setDate(P.getDate() + 1);
587
+ return O;
588
+ });
589
+ return {
590
+ // Refs
591
+ addDayRef: g,
592
+ // Values
593
+ computedIsDateDisabled: s,
594
+ daysOfWeek: X,
595
+ weeksOfMonth: Ee,
596
+ formattedMonthDate: I,
597
+ shouldShowNextMonthButton: S,
598
+ shouldShowPreviousMonthButton: p,
599
+ monthLabelId: o,
600
+ // Enums
601
+ CalendarMonthEvent: A,
602
+ // Functions
603
+ isSelectedDate: (O) => u.value && ne(u.value, O) && !e.endDate ? !0 : e.startDate && e.endDate && le(O, { start: e.startDate, end: e.endDate }),
604
+ showNextMonth: f,
605
+ showPreviousMonth: m,
606
+ dayVariant: (O) => {
607
+ if (!e.isRange || ne(e.startDate, e.endDate))
608
+ return C.SINGLE;
609
+ if (e.startDate && ne(e.startDate, O))
610
+ return C.BEGINNING;
611
+ if (e.endDate && ne(e.endDate, O))
612
+ return C.END;
613
+ if (e.startDate && e.endDate && le(O, { start: e.startDate, end: e.endDate }))
614
+ return C.MIDDLE;
615
+ },
616
+ confirmNavigationDate: () => {
617
+ t(A.INPUT, u);
618
+ },
619
+ // Events
620
+ onDayClicked: (O) => {
621
+ t(A.INPUT, O);
622
+ },
623
+ listeners: {
624
+ "keydown:arrow-right": v,
625
+ "keydown:arrow-left": d,
626
+ "keydown:arrow-up": l,
627
+ "keydown:arrow-down": i,
628
+ "keydown:home": h,
629
+ "keydown:end": x,
630
+ "keydown:page-up": D,
631
+ "keydown:shift-page-up": b,
632
+ "keydown:page-down": Y,
633
+ "keydown:shift-page-down": L
634
+ },
635
+ // Exposed methods
636
+ focusOnDate: T,
637
+ moveToNextDay: v,
638
+ moveToPreviousDay: d,
639
+ moveToPreviousWeek: l,
640
+ moveToNextWeek: i,
641
+ moveToFirstDayOfWeek: h,
642
+ moveToLastDayOfWeek: x,
643
+ moveToPreviousMonth: D,
644
+ moveToPreviousYear: b,
645
+ moveToNextMonth: Y,
646
+ moveToNextYear: L,
647
+ // Translations
648
+ t: a
649
+ };
650
+ }
651
+ });
652
+ var mt = function() {
653
+ var t = this, n = t._self._c;
654
+ return t._self._setupProxy, n("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-calendar-month" }, t.listeners), [n("div", { staticClass: "b-calendar-month__month-selector" }, [n("div", { staticClass: "b-calendar-month__previous" }, [t.shouldShowPreviousMonthButton ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(a) {
655
+ return t.moveToPreviousMonth(a, !0);
656
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
657
+ return [n("chevron-left-icon", { attrs: { "svg-title": t.t("previousMonth") } })];
658
+ }, proxy: !0 }], null, !1, 1806090420) }) : t._e()], 1), n("bento-typography", { attrs: { id: t.monthLabelId, el: "h2", variant: "title", "aria-live": "polite" } }, [t._v(" " + t._s(t.formattedMonthDate) + " ")]), n("div", { staticClass: "b-calendar-month__next" }, [t.shouldShowNextMonthButton ? n("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(a) {
659
+ return t.moveToNextMonth(a, !0);
660
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
661
+ return [n("chevron-right-icon", { attrs: { "svg-title": t.t("nextMonth") } })];
662
+ }, proxy: !0 }], null, !1, 1041540377) }) : t._e()], 1)], 1), n("table", { staticClass: "b-calendar-month__month-container", attrs: { role: "grid", "aria-labelledby": t.monthLabelId } }, [n("thead", [n("tr", { staticClass: "b-calendar-month__week-header" }, t._l(t.daysOfWeek, function(a, r) {
663
+ return n("th", { key: r, staticClass: "b-calendar-month__day-of-week" }, [n("bento-typography", { staticClass: "b-calendar-month__day-of-week-font", attrs: { el: "span", variant: "caption" } }, [t._v(" " + t._s(a) + " ")])], 1);
664
+ }), 0)]), n("tbody", t._l(t.weeksOfMonth, function(a, r) {
665
+ return n("tr", { key: r }, [r === 0 && a.length < 7 ? n("td", { attrs: { colspan: 7 - a.length } }) : t._e(), t._l(a, function(o, s) {
666
+ return n("calendar-month-day", { key: `calendar-day-${s}`, ref: t.addDayRef(o), refInFor: !0, attrs: { day: o, disabled: t.computedIsDateDisabled(o), selected: t.isSelectedDate(o), variant: t.dayVariant(o) }, on: { click: t.onDayClicked, mouseover: function(u) {
667
+ return t.$emit(t.CalendarMonthEvent.MOUSE_OVER, o);
668
+ } }, nativeOn: { keyup: [function(u) {
669
+ return !u.type.indexOf("key") && t._k(u.keyCode, "up", 38, u.key, ["Up", "ArrowUp"]) ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, o);
670
+ }, function(u) {
671
+ return !u.type.indexOf("key") && t._k(u.keyCode, "down", 40, u.key, ["Down", "ArrowDown"]) ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, o);
672
+ }, function(u) {
673
+ return !u.type.indexOf("key") && t._k(u.keyCode, "left", 37, u.key, ["Left", "ArrowLeft"]) || "button" in u && u.button !== 0 ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, o);
674
+ }, function(u) {
675
+ return !u.type.indexOf("key") && t._k(u.keyCode, "right", 39, u.key, ["Right", "ArrowRight"]) || "button" in u && u.button !== 2 ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, o);
676
+ }] } });
677
+ })], 2);
678
+ }), 0)])]);
679
+ }, yt = [], ht = /* @__PURE__ */ ae(
680
+ Dt,
681
+ mt,
682
+ yt,
683
+ !1,
684
+ null,
685
+ "a0054d45"
686
+ );
687
+ const Se = ht.exports;
688
+ var B = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(B || {}), j = /* @__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))(j || {}), _e = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(_e || {});
689
+ const _t = {}, gt = /* @__PURE__ */ te({
690
+ ..._t,
691
+ __name: "calendar-year-month",
692
+ props: {
693
+ month: null,
694
+ disabled: { type: Boolean, default: !1 },
695
+ selected: { type: Boolean, default: !1 },
696
+ variant: { default: B.SINGLE }
697
+ },
698
+ emits: ["click", "mouseover"],
699
+ setup(e, { emit: t }) {
700
+ const n = e, a = w(() => {
701
+ const s = /* @__PURE__ */ new Date();
702
+ return n.month.getMonth() === s.getMonth() && n.month.getFullYear() === s.getFullYear();
703
+ }), r = w(() => ({
704
+ // Variants
705
+ [`b-calendar-year-month--${j.BEGINNING}`]: n.variant === B.BEGINNING,
706
+ [`b-calendar-year-month--${j.MIDDLE}`]: n.variant === B.MIDDLE,
707
+ [`b-calendar-year-month--${j.END}`]: n.variant === B.END,
708
+ [`b-calendar-year-month--${j.SINGLE}`]: n.variant === B.SINGLE,
709
+ // Selected
710
+ [`b-calendar-year-month--${j.UNSELECTED}`]: !n.selected,
711
+ [`b-calendar-year-month--${j.SELECTED}`]: n.selected,
712
+ // Current month
713
+ [`b-calendar-year-month--${j.CURRENT_MONTH}`]: a.value,
714
+ // Disabled
715
+ [`b-calendar-year-month--${j.DISABLED}`]: n.disabled
716
+ }));
717
+ return { __sfc: !0, props: n, emit: t, isCurrentMonth: a, conditionalClasses: r, onClick: (s, u) => {
718
+ n.disabled ? (s.preventDefault(), s.stopPropagation()) : t(_e.CLICK, u, n.month);
719
+ }, BentoDate: pe, BentoDateFormat: xe, CalendarYearMonthEvent: _e };
720
+ }
721
+ });
722
+ var Et = function() {
723
+ var t = this, n = t._self._c, a = t._self._setupProxy;
724
+ return n("td", { staticClass: "b-calendar-year-month", class: a.conditionalClasses, attrs: { tabindex: t.selected ? "0" : "-1", "aria-selected": t.selected ? t.selected : void 0 }, on: { click: (r) => a.onClick(r, t.month), mouseover: function(r) {
725
+ return a.emit(a.CalendarYearMonthEvent.MOUSE_OVER);
726
+ }, keydown: function(r) {
727
+ return !r.type.indexOf("key") && t._k(r.keyCode, "space", 32, r.key, [" ", "Spacebar"]) && t._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : ((o) => a.onClick(o, t.month)).apply(null, arguments);
728
+ } } }, [n("div", { staticClass: "b-calendar-year-month__wrapper" }, [n(a.BentoDate, { staticClass: "b-calendar-year-month__label", attrs: { date: t.month, format: a.BentoDateFormat.SHORT_MONTH } })], 1)]);
729
+ }, bt = [], Nt = /* @__PURE__ */ ae(
730
+ gt,
731
+ Et,
732
+ bt,
733
+ !1,
734
+ null,
735
+ "9d0ea56b"
736
+ );
737
+ const kt = Nt.exports, Ot = {
738
+ "en-US": {
739
+ nextYear: "Next year",
740
+ previousYear: "Previous year"
741
+ },
742
+ "ja-JP": {
743
+ nextYear: "来年",
744
+ previousYear: "前年"
745
+ },
746
+ "pt-BR": {
747
+ nextYear: "Ano seguinte",
748
+ previousYear: "Ano anterior"
749
+ }
750
+ }, Mt = {
751
+ i18n: { messages: Ot }
752
+ }, wt = /* @__PURE__ */ te({
753
+ ...Mt,
754
+ __name: "calendar-year",
755
+ props: {
756
+ endDate: { default: null },
757
+ isDateDisabled: { type: Function, default: void 0 },
758
+ isRange: { type: Boolean, default: !1 },
759
+ min: { default: null },
760
+ max: { default: null },
761
+ position: { default: "unique" },
762
+ startDate: { default: null },
763
+ year: null
764
+ },
765
+ emits: ["input", "mouseover", "nextMonth", "previousMonth"],
766
+ setup(e, { expose: t, emit: n }) {
767
+ const a = e, r = Ce("bento-date-picker-year-label"), { t: o } = Pe(), s = (_) => {
768
+ var p;
769
+ return a.min && _ < a.min || a.max && _ > a.max || ((p = a.isDateDisabled) == null ? void 0 : p.call(a, _));
770
+ }, u = w(() => ["first", "unique"].includes(a.position)), y = w(() => ["last", "unique"].includes(a.position)), {
771
+ internalDate: g,
772
+ // Calendar refs
773
+ addDayRef: f,
774
+ // Day navigation
775
+ moveToPreviousMonth: m,
776
+ moveToPreviousYear: v,
777
+ moveToNextMonth: d,
778
+ moveToNextYear: l,
779
+ moveToFirstMonthOfYear: i,
780
+ moveToLastMonthOfYear: h,
781
+ focusOnDate: x
782
+ } = Ge(
783
+ {
784
+ currentSelectedDate: F(a, "startDate"),
785
+ month: F(a, "year"),
786
+ isDateDisabled: s
787
+ },
788
+ n
789
+ );
790
+ t({ focusOnDate: x });
791
+ const D = w(() => {
792
+ const _ = [];
793
+ let p = 0;
794
+ for (let S = 0; S < 3; S++) {
795
+ const I = [];
796
+ for (let X = 0; X < 4; X++)
797
+ I.push(new Date(a.year.getFullYear(), p++, 1));
798
+ _.push(I);
799
+ }
800
+ return _;
801
+ }), b = (_) => !a.isRange || re(a.startDate, a.endDate) ? B.SINGLE : a.startDate && re(a.startDate, _) ? B.BEGINNING : a.endDate && re(a.endDate, _) ? B.END : a.startDate && a.endDate && le(_, { start: a.startDate, end: a.endDate }) ? B.MIDDLE : null, Y = (_) => g.value && re(g.value, _) ? !0 : a.startDate && a.endDate && le(_, { start: a.startDate, end: a.endDate }), L = (_) => {
802
+ n("input", _);
803
+ }, T = a.isRange ? {} : {
804
+ "keydown:arrow-right": d,
805
+ "keydown:arrow-left": m,
806
+ "keydown:arrow-up": (_) => m(_, !1, 4),
807
+ "keydown:arrow-down": (_) => d(_, !1, 4),
808
+ "keydown:home": i,
809
+ "keydown:end": h,
810
+ "keydown:page-up": v,
811
+ "keydown:page-down": l
812
+ };
813
+ return { __sfc: !0, yearLabelId: r, props: a, emit: n, t: o, isDateDisabled: s, shouldShowPreviousYearButton: u, shouldShowNextYearButton: y, internalDate: g, addDayRef: f, moveToPreviousMonth: m, moveToPreviousYear: v, moveToNextMonth: d, moveToNextYear: l, moveToFirstMonthOfYear: i, moveToLastMonthOfYear: h, focusOnDate: x, monthRows: D, monthVariant: b, isSelectedDate: Y, onMonthClicked: L, listeners: T, BentoButton: Le, BentoTypography: Re, CalendarYearMonth: kt, ChevronLeftIcon: Ae, ChevronRightIcon: Ye, vBentoKeyboardNavigationDirective: Fe };
814
+ }
815
+ });
816
+ var St = function() {
817
+ var t = this, n = t._self._c, a = t._self._setupProxy;
818
+ return n("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-calendar-year" }, a.listeners), [n("div", { staticClass: "b-calendar-year__year-selector" }, [n("div", { staticClass: "b-calendar-year__previous" }, [a.shouldShowPreviousYearButton ? n(a.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(r) {
819
+ return a.moveToPreviousYear(r, !0);
820
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
821
+ return [n(a.ChevronLeftIcon, { attrs: { "svg-title": a.t("previousYear") } })];
822
+ }, proxy: !0 }], null, !1, 3347270443) }) : t._e()], 1), n(a.BentoTypography, { attrs: { id: a.yearLabelId, el: "h2", variant: "title", "aria-live": "polite" } }, [t._v(" " + t._s(t.year.getFullYear()) + " ")]), n("div", { staticClass: "b-calendar-year__next" }, [a.shouldShowNextYearButton ? n(a.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(r) {
823
+ return a.moveToNextYear(r, !0);
824
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
825
+ return [n(a.ChevronRightIcon, { attrs: { "svg-title": a.t("nextYear") } })];
826
+ }, proxy: !0 }], null, !1, 3324005926) }) : t._e()], 1)], 1), n("table", { staticClass: "b-calendar-year__year-container", attrs: { role: "grid", "aria-labelledby": a.yearLabelId } }, [n("tbody", t._l(a.monthRows, function(r, o) {
827
+ return n("tr", { key: o }, t._l(r, function(s, u) {
828
+ return n(a.CalendarYearMonth, { key: `calendar-month-${u}`, ref: a.addDayRef(s), refInFor: !0, attrs: { month: s, disabled: a.isDateDisabled(s), selected: a.isSelectedDate(s), variant: a.monthVariant(s) }, on: { click: a.onMonthClicked, mouseover: function(y) {
829
+ return a.emit("mouseover", s);
830
+ } } });
831
+ }), 1);
832
+ }), 0)])]);
833
+ }, It = [], Tt = /* @__PURE__ */ ae(
834
+ wt,
835
+ St,
836
+ It,
837
+ !1,
838
+ null,
839
+ "88d584a6"
840
+ );
841
+ const Ie = Tt.exports, pt = ({ selectedDate: e }, t) => {
842
+ const n = Te({
843
+ startDate: null,
844
+ endDate: null
845
+ });
846
+ return K(
847
+ () => e.value,
848
+ () => {
849
+ n.startDate = e.value, n.endDate = void 0;
850
+ },
851
+ { immediate: !0 }
852
+ ), {
853
+ internalValue: n,
854
+ onDateInput: (r) => {
855
+ t($.INPUT, r);
856
+ },
857
+ // Empty function to prevent the listeners from throwing a warning
858
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
859
+ onMouseOver: () => {
860
+ }
861
+ };
862
+ }, xt = (e) => {
863
+ const t = (f, m, v, d) => {
864
+ let l = oe(f, { weekStartsOn: e }), i = ue(m || f, { weekStartsOn: e });
865
+ const h = v && l < v, x = d && i > d;
866
+ return h && (l = oe(v, { weekStartsOn: e })), x && (i = ue(d, { weekStartsOn: e })), l > i && (h ? i = ue(l, { weekStartsOn: e }) : l = oe(i, { weekStartsOn: e })), { startDate: l, endDate: i };
867
+ }, n = (f, m, v, d) => {
868
+ let l = se(f), i = ie(m || f);
869
+ const h = l < v, x = i > d;
870
+ return h && (l = se(v)), x && (i = ie(d)), l > i && (h ? i = ie(l) : l = se(i)), { startDate: l, endDate: i };
871
+ }, a = (f, m, v, d) => {
872
+ let l = ce(f), i = de(m || f);
873
+ const h = v instanceof Date && l < v, x = d instanceof Date && i > d;
874
+ return h && (l = ce(v)), x && (i = de(d)), l > i && (h ? i = de(l) : l = ce(i)), { startDate: l, endDate: i };
875
+ };
876
+ return {
877
+ adjustDateForWeekly: t,
878
+ adjustDateForMonthly: n,
879
+ adjustDateForQuarterly: a,
880
+ adjustStartDateInputForWeekly: (f, m, v, d) => {
881
+ const { startDate: l } = t(new Date(f), null, v, d);
882
+ return m(l);
883
+ },
884
+ adjustEndDateInputForWeekly: (f, m, v, d) => {
885
+ const { endDate: l } = t(new Date(f), null, v, d);
886
+ return m(l);
887
+ },
888
+ adjustStartDateInputForMonthly: (f, m, v, d) => {
889
+ const { startDate: l } = n(new Date(f), null, v, d);
890
+ return m(l);
891
+ },
892
+ adjustEndDateInputForMonthly: (f, m, v, d) => {
893
+ const { endDate: l } = n(new Date(f), null, v, d);
894
+ return m(l);
895
+ },
896
+ adjustStartDateInputForQuarterly: (f, m, v, d) => {
897
+ const { startDate: l } = a(new Date(f), null, v, d);
898
+ return m(l);
899
+ },
900
+ adjustEndDateInputForQuarterly: (f, m, v, d) => {
901
+ const { endDate: l } = a(new Date(f), null, v, d);
902
+ return m(l);
903
+ }
904
+ };
905
+ }, Lt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: r, min: o, max: s }, u) => {
906
+ const { adjustDateForWeekly: f, adjustDateForMonthly: m, adjustDateForQuarterly: v } = xt(r), d = Te({
907
+ startDate: null,
908
+ endDate: null
909
+ }), l = W(null);
910
+ K(
911
+ () => e.value,
912
+ () => {
913
+ let { startDate: D = null, endDate: b = null } = e.value || {};
914
+ D && (D = V(D)), b && (b = V(b)), !(D && t && t(D) || b && t && t(b) || D && b && Je(D, b)) && (d.startDate = D, d.endDate = b);
915
+ },
916
+ { immediate: !0, deep: !0 }
917
+ );
918
+ const i = (D, b, Y) => {
919
+ if (d.startDate = D, d.endDate = b, n.value) {
920
+ const L = Ke(b, D) - n.value;
921
+ L > 0 && (Y < 1 ? (d.startDate = D, d.endDate = ze(b, L)) : (d.startDate = ee(D, L), d.endDate = b));
922
+ }
923
+ u($.START_DATE_SELECTED, d.startDate), u($.END_DATE_SELECTED, d.endDate);
924
+ }, h = (D) => {
925
+ var b, Y, L, T, _, p;
926
+ if (!(!l.value || t && t(D)))
927
+ if (Ze(D, l.value)) {
928
+ if (((b = a == null ? void 0 : a.value) == null ? void 0 : b.type) === "weekly") {
929
+ const { startDate: S, endDate: I } = f(D, l.value, o.value, s.value);
930
+ i(S, I, -1);
931
+ return;
932
+ }
933
+ if (((Y = a == null ? void 0 : a.value) == null ? void 0 : Y.type) === "monthly") {
934
+ const { startDate: S, endDate: I } = m(D, l.value, o.value, s.value);
935
+ i(S, I, -1);
936
+ return;
937
+ }
938
+ if (((L = a == null ? void 0 : a.value) == null ? void 0 : L.type) === "quarterly") {
939
+ const { startDate: S, endDate: I } = v(D, l.value, o.value, s.value);
940
+ i(S, I, -1);
941
+ return;
942
+ }
943
+ i(D, l.value, -1);
944
+ } else {
945
+ if (((T = a == null ? void 0 : a.value) == null ? void 0 : T.type) === "weekly") {
946
+ const { startDate: S, endDate: I } = f(l.value, D, o.value, s.value);
947
+ i(S, I, 1);
948
+ return;
949
+ }
950
+ if (((_ = a == null ? void 0 : a.value) == null ? void 0 : _.type) === "monthly") {
951
+ const { startDate: S, endDate: I } = m(l.value, D, o.value, s.value);
952
+ i(S, I, 1);
953
+ return;
954
+ }
955
+ if (((p = a == null ? void 0 : a.value) == null ? void 0 : p.type) === "quarterly") {
956
+ const { startDate: S, endDate: I } = v(l.value, D, o.value, s.value);
957
+ i(S, I, 1);
958
+ return;
959
+ }
960
+ i(l.value, D, 1);
961
+ }
962
+ };
963
+ return {
964
+ internalValue: d,
965
+ onDateInput: (D) => {
966
+ var b, Y, L;
967
+ if (l.value)
968
+ l.value = null, u($.INPUT, d);
969
+ else {
970
+ let T = D;
971
+ if (((b = a == null ? void 0 : a.value) == null ? void 0 : b.type) === "weekly") {
972
+ const { startDate: _, endDate: p } = f(D);
973
+ T = _, i(T, p);
974
+ }
975
+ if (((Y = a == null ? void 0 : a.value) == null ? void 0 : Y.type) === "monthly") {
976
+ const { startDate: _, endDate: p } = m(D);
977
+ T = _, i(T, p);
978
+ }
979
+ if (((L = a == null ? void 0 : a.value) == null ? void 0 : L.type) === "quarterly") {
980
+ const { startDate: _, endDate: p } = v(D);
981
+ T = _, i(T, p);
982
+ }
983
+ l.value = T, h(T);
984
+ }
985
+ },
986
+ onMouseOver: h
987
+ };
988
+ }, Rt = te({
989
+ name: "calendar",
990
+ components: { CalendarMonth: Se, CalendarYear: Ie },
991
+ props: {
992
+ /**
993
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
994
+ */
995
+ firstDayOfWeek: {
996
+ type: Number,
997
+ default: H.MONDAY,
998
+ validator: (e) => Object.values(H).includes(e)
999
+ },
1000
+ /**
1001
+ * The selected granularity configuration
1002
+ */
1003
+ granularity: {
1004
+ type: Object,
1005
+ default: null
1006
+ },
1007
+ /**
1008
+ * Indicate if a date should be disabled or not
1009
+ */
1010
+ isDateDisabled: { type: Function, default: void 0 },
1011
+ /**
1012
+ * Enables the Date Range calendar
1013
+ */
1014
+ isRange: { type: Boolean, default: !1 },
1015
+ /**
1016
+ * Set a maximum number of dates to be selectable by the range.
1017
+ */
1018
+ maxRange: { type: Number, default: null, validator: (e) => !e || e > 0 },
1019
+ /**
1020
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
1021
+ */
1022
+ min: { type: Date, default: null },
1023
+ /**
1024
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
1025
+ */
1026
+ max: { type: Date, default: null },
1027
+ /**
1028
+ * Number of months rendered on pane
1029
+ */
1030
+ numberOfMonths: {
1031
+ type: Number,
1032
+ default: 3,
1033
+ validator: (e) => e >= 1
1034
+ },
1035
+ /**
1036
+ * Upon opening date range picker, end date's month will be pre-selected.
1037
+ */
1038
+ showEndDateOnOpen: { type: Boolean, default: !1 },
1039
+ /**
1040
+ * Selected date. Can be a single Date or a CalendarRangeDate
1041
+ * instance that contains startDate and endDate attributes.
1042
+ */
1043
+ value: { type: [Date, Object], default: void 0 },
1044
+ /**
1045
+ * Default start date for the calendar pane
1046
+ */
1047
+ defaultDisplayMonth: {
1048
+ type: String,
1049
+ default: null,
1050
+ validator: (e) => /^\d{4}-(0?[1-9]|1[012])(-(0?[1-9]|[12][0-9]|3[01]))?$/.test(e)
1051
+ },
1052
+ /**
1053
+ * The type of calendar to display. Defaults to showing days.
1054
+ */
1055
+ variant: {
1056
+ type: String,
1057
+ default: "day",
1058
+ validator: (e) => Object.values(fe).includes(e)
1059
+ }
1060
+ },
1061
+ emit: [$.INPUT, $.START_DATE_SELECTED, $.END_DATE_SELECTED],
1062
+ setup(e, { emit: t }) {
1063
+ const n = W(null), a = W();
1064
+ K(
1065
+ () => e.value,
1066
+ () => {
1067
+ var l, i, h;
1068
+ if (e.isRange)
1069
+ a.value = e != null && e.showEndDateOnOpen && ((l = e.value) != null && l.endDate) ? (i = e.value) == null ? void 0 : i.endDate : ((h = e.value) == null ? void 0 : h.startDate) || /* @__PURE__ */ new Date();
1070
+ else {
1071
+ const x = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1072
+ a.value = e.value || x;
1073
+ }
1074
+ },
1075
+ { immediate: !0 }
1076
+ );
1077
+ const r = w(
1078
+ () => e.variant === fe.MONTH ? Ie : Se
1079
+ ), o = w(() => ({
1080
+ "b-calendar__range": e.isRange
1081
+ })), {
1082
+ internalValue: s,
1083
+ onDateInput: u,
1084
+ onMouseOver: y
1085
+ } = e.isRange ? Lt(
1086
+ {
1087
+ selectedDate: F(e, "value"),
1088
+ isDateDisabled: e.isDateDisabled,
1089
+ maxRange: F(e, "maxRange"),
1090
+ granularity: F(e, "granularity"),
1091
+ firstDayOfWeek: e.firstDayOfWeek,
1092
+ min: F(e, "min"),
1093
+ max: F(e, "max")
1094
+ },
1095
+ t
1096
+ ) : pt(
1097
+ {
1098
+ selectedDate: F(e, "value"),
1099
+ firstDayOfWeek: e.firstDayOfWeek
1100
+ },
1101
+ t
1102
+ ), g = (l) => e.numberOfMonths === 1 ? Q.UNIQUE : l === 0 ? Q.FIRST : l === e.numberOfMonths - 1 ? Q.LAST : Q.MIDDLE, f = w(() => (l) => {
1103
+ const i = e != null && e.showEndDateOnOpen && e.isRange ? Z(a.value, e.numberOfMonths - 1) : a.value;
1104
+ return q(i, l);
1105
+ }), m = w(() => (l) => {
1106
+ const i = e != null && e.showEndDateOnOpen ? nt(a.value, e.numberOfMonths - 1) : a.value;
1107
+ return Be(i, l);
1108
+ });
1109
+ return {
1110
+ // Refs
1111
+ calendarRef: n,
1112
+ // Values
1113
+ baseDate: a,
1114
+ calendarComponent: r,
1115
+ conditionalClasses: o,
1116
+ internalValue: s,
1117
+ // Methods
1118
+ calculateOffsetMonth: f,
1119
+ calculateOffsetYear: m,
1120
+ calendarPosition: g,
1121
+ // Events
1122
+ onDateInput: u,
1123
+ onMouseOver: y,
1124
+ calculateNextMonths: (l = 1) => {
1125
+ a.value = q(a.value, l);
1126
+ },
1127
+ calculatePreviousMonths: (l = 1) => {
1128
+ a.value = Z(a.value, l);
1129
+ }
1130
+ };
1131
+ }
1132
+ });
1133
+ var Yt = function() {
1134
+ var t = this, n = t._self._c;
1135
+ return t._self._setupProxy, n("div", { staticClass: "b-calendar", class: t.conditionalClasses }, t._l(t.numberOfMonths, function(a, r) {
1136
+ return n(t.calendarComponent, { key: `calendar-${r}`, ref: t.numberOfMonths === 1 ? "calendarRef" : null, refInFor: !0, tag: "component", attrs: { "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, month: t.calculateOffsetMonth(r), year: t.calculateOffsetYear(r), position: t.calendarPosition(r), min: t.min, max: t.max, "is-range": t.isRange, "start-date": t.internalValue.startDate, "end-date": t.internalValue.endDate, granularity: t.granularity }, on: { input: t.onDateInput, mouseover: t.onMouseOver, changeDay: t.onMouseOver, nextMonth: t.calculateNextMonths, previousMonth: t.calculatePreviousMonths } });
1137
+ }), 1);
1138
+ }, At = [], Ct = /* @__PURE__ */ ae(
1139
+ Rt,
1140
+ Yt,
1141
+ At,
1142
+ !1,
1143
+ null,
1144
+ "c4a9f725"
1145
+ );
1146
+ const Xt = Ct.exports;
1147
+ export {
1148
+ H as C,
1149
+ Xt as a,
1150
+ $ as b,
1151
+ Q as c,
1152
+ fe as d,
1153
+ q as e,
1154
+ ce as f,
1155
+ V as g,
1156
+ oe as h,
1157
+ ne as i,
1158
+ ee as j,
1159
+ ue as k,
1160
+ ze as l,
1161
+ Z as m,
1162
+ de as n,
1163
+ se as s,
1164
+ xt as u
1165
+ };
1166
+ //# sourceMappingURL=calendar.C7onA58P.js.map