@adyen/bento-vue3 1.97.0 → 1.98.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 (229) hide show
  1. package/dist/@types/index.d.ts +56 -0
  2. package/dist/action-bar.js +1 -1
  3. package/dist/ai-tag.js +1 -1
  4. package/dist/anchor-scroller.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/calendar.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/data-grid.css +1 -1
  12. package/dist/assets/date.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/draggable.css +1 -0
  16. package/dist/assets/dropdown.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/header-meta.css +1 -1
  20. package/dist/assets/inspector.css +1 -1
  21. package/dist/assets/list-item.css +1 -1
  22. package/dist/assets/modal-fullscreen.css +1 -1
  23. package/dist/assets/navigation-menu-group.css +1 -1
  24. package/dist/assets/secondary-nav.css +1 -1
  25. package/dist/assets/sidepanel.css +1 -1
  26. package/dist/button.js +1 -1
  27. package/dist/card.js +1 -1
  28. package/dist/checkbox.js +2 -2
  29. package/dist/chunks/{action-bar.BEV9uXHS.js → action-bar.Dd0rr7Sb.js} +4 -4
  30. package/dist/chunks/{action-bar.BEV9uXHS.js.map → action-bar.Dd0rr7Sb.js.map} +1 -1
  31. package/dist/chunks/{ai-tag.BSzY3-0w.js → ai-tag.DOQ-UnnF.js} +2 -2
  32. package/dist/chunks/{ai-tag.BSzY3-0w.js.map → ai-tag.DOQ-UnnF.js.map} +1 -1
  33. package/dist/chunks/{anchor-scroller.J2mkf0uu.js → anchor-scroller.NRHfj2FY.js} +2 -2
  34. package/dist/chunks/{anchor-scroller.J2mkf0uu.js.map → anchor-scroller.NRHfj2FY.js.map} +1 -1
  35. package/dist/chunks/{base-modal.B7SiRo7c.js → base-modal.BzbJbryi.js} +5 -5
  36. package/dist/chunks/{base-modal.B7SiRo7c.js.map → base-modal.BzbJbryi.js.map} +1 -1
  37. package/dist/chunks/{button-actions-with-menu.DoUcLg-M.js → button-actions-with-menu.DZdmQdah.js} +3 -3
  38. package/dist/chunks/{button-actions-with-menu.DoUcLg-M.js.map → button-actions-with-menu.DZdmQdah.js.map} +1 -1
  39. package/dist/chunks/{button-actions.CWmTl4cF.js → button-actions.CgZbPzhi.js} +2 -2
  40. package/dist/chunks/{button-actions.CWmTl4cF.js.map → button-actions.CgZbPzhi.js.map} +1 -1
  41. package/dist/chunks/{calendar.6NKd6IMo.js → calendar.D0RdoofE.js} +318 -317
  42. package/dist/chunks/calendar.D0RdoofE.js.map +1 -0
  43. package/dist/chunks/{card.Ca7FkYxy.js → card.BpPQzOoN.js} +2 -2
  44. package/dist/chunks/{card.Ca7FkYxy.js.map → card.BpPQzOoN.js.map} +1 -1
  45. package/dist/chunks/{checkbox-group.BWx4wn0F.js → checkbox-group.MwUU4K4P.js} +3 -3
  46. package/dist/chunks/{checkbox-group.BWx4wn0F.js.map → checkbox-group.MwUU4K4P.js.map} +1 -1
  47. package/dist/chunks/{checkbox.DwfrmbwI.js → checkbox.SA_J0v-N.js} +18 -18
  48. package/dist/chunks/{checkbox.DwfrmbwI.js.map → checkbox.SA_J0v-N.js.map} +1 -1
  49. package/dist/chunks/{code-snippet.Cp61a0Ud.js → code-snippet.CEsdQBL7.js} +4 -4
  50. package/dist/chunks/{code-snippet.Cp61a0Ud.js.map → code-snippet.CEsdQBL7.js.map} +1 -1
  51. package/dist/chunks/{controls-group.B-wIl-I7.js → controls-group.BfBnWu0u.js} +2 -2
  52. package/dist/chunks/{controls-group.B-wIl-I7.js.map → controls-group.BfBnWu0u.js.map} +1 -1
  53. package/dist/chunks/{copy.XM_7RiIR.js → copy.nnaqOH6I.js} +3 -3
  54. package/dist/chunks/{copy.XM_7RiIR.js.map → copy.nnaqOH6I.js.map} +1 -1
  55. package/dist/chunks/{dashboard-section.BR0xU-b-.js → dashboard-section.B82okI3e.js} +4 -4
  56. package/dist/chunks/{dashboard-section.BR0xU-b-.js.map → dashboard-section.B82okI3e.js.map} +1 -1
  57. package/dist/chunks/{dashed-underline.CxpIRlCx.js → dashed-underline.x_gU4d-A.js} +4 -4
  58. package/dist/chunks/{dashed-underline.CxpIRlCx.js.map → dashed-underline.x_gU4d-A.js.map} +1 -1
  59. package/dist/chunks/{data-grid-template.LTILymaF.js → data-grid-template.BdabDTqN.js} +4 -4
  60. package/dist/chunks/{data-grid-template.LTILymaF.js.map → data-grid-template.BdabDTqN.js.map} +1 -1
  61. package/dist/chunks/{data-grid.xcmkjuyg.js → data-grid.DXF4Cg7m.js} +140 -140
  62. package/dist/chunks/{data-grid.xcmkjuyg.js.map → data-grid.DXF4Cg7m.js.map} +1 -1
  63. package/dist/chunks/{date-picker.CCETX031.js → date-picker.DhtLcpyr.js} +7 -7
  64. package/dist/chunks/{date-picker.CCETX031.js.map → date-picker.DhtLcpyr.js.map} +1 -1
  65. package/dist/chunks/{date-range-picker.CtGaxtYh.js → date-range-picker.CChROXhw.js} +10 -10
  66. package/dist/chunks/{date-range-picker.CtGaxtYh.js.map → date-range-picker.CChROXhw.js.map} +1 -1
  67. package/dist/chunks/{date.R2Wz6o7J.js → date.BFhwd9CA.js} +28 -25
  68. package/dist/chunks/date.BFhwd9CA.js.map +1 -0
  69. package/dist/chunks/{dialog-page.BOwnhJze.js → dialog-page.BYMSk5DR.js} +2 -2
  70. package/dist/chunks/{dialog-page.BOwnhJze.js.map → dialog-page.BYMSk5DR.js.map} +1 -1
  71. package/dist/chunks/draggable-handle.y_1hfypa.js +1542 -0
  72. package/dist/chunks/draggable-handle.y_1hfypa.js.map +1 -0
  73. package/dist/chunks/draggable.5evQkGJ4.js +176 -0
  74. package/dist/chunks/draggable.5evQkGJ4.js.map +1 -0
  75. package/dist/chunks/{drawer.BQoyUVOW.js → drawer.Cz62dnhy.js} +2 -2
  76. package/dist/chunks/{drawer.BQoyUVOW.js.map → drawer.Cz62dnhy.js.map} +1 -1
  77. package/dist/chunks/{dropdown-tag.BgZYYc_D.js → dropdown-tag.DCwovT-N.js} +3 -3
  78. package/dist/chunks/{dropdown-tag.BgZYYc_D.js.map → dropdown-tag.DCwovT-N.js.map} +1 -1
  79. package/dist/chunks/{dropdown.C97ShfXZ.js → dropdown.CGUBk0iO.js} +1028 -1010
  80. package/dist/chunks/dropdown.CGUBk0iO.js.map +1 -0
  81. package/dist/chunks/{field-label.CLV3nSzz.js → field-label.yQ_2Qg88.js} +2 -2
  82. package/dist/chunks/{field-label.CLV3nSzz.js.map → field-label.yQ_2Qg88.js.map} +1 -1
  83. package/dist/chunks/{file-uploader.CXgAfp0m.js → file-uploader.xzoJqcg1.js} +3 -3
  84. package/dist/chunks/{file-uploader.CXgAfp0m.js.map → file-uploader.xzoJqcg1.js.map} +1 -1
  85. package/dist/chunks/{filter-bar.D8BVPHLT.js → filter-bar.DjUo6CwN.js} +22 -20
  86. package/dist/chunks/filter-bar.DjUo6CwN.js.map +1 -0
  87. package/dist/chunks/{focus-trap.Dl_rHbwH.js → focus-trap.3-5C2gYa.js} +2 -2
  88. package/dist/chunks/{focus-trap.Dl_rHbwH.js.map → focus-trap.3-5C2gYa.js.map} +1 -1
  89. package/dist/chunks/{footer-actions.C_HlJeXP.js → footer-actions.sEd1kzgV.js} +2 -2
  90. package/dist/chunks/{footer-actions.C_HlJeXP.js.map → footer-actions.sEd1kzgV.js.map} +1 -1
  91. package/dist/chunks/generate-uid.DBWe4g6T.js.map +1 -1
  92. package/dist/chunks/header-meta.DWWL88nm.js +248 -0
  93. package/dist/chunks/{header-meta.yBxBW12f.js.map → header-meta.DWWL88nm.js.map} +1 -1
  94. package/dist/chunks/{header-with-views.qCyKEZW1.js → header-with-views.-QuYbGZW.js} +10 -10
  95. package/dist/chunks/{header-with-views.qCyKEZW1.js.map → header-with-views.-QuYbGZW.js.map} +1 -1
  96. package/dist/chunks/{header.aJLkRe1D.js → header.B6pGQk7G.js} +3 -3
  97. package/dist/chunks/{header.aJLkRe1D.js.map → header.B6pGQk7G.js.map} +1 -1
  98. package/dist/chunks/index.B875RXHM.js.map +1 -1
  99. package/dist/chunks/{index.oOAkh64h.js → index.DtuWfdhd.js} +14 -14
  100. package/dist/chunks/{index.oOAkh64h.js.map → index.DtuWfdhd.js.map} +1 -1
  101. package/dist/chunks/{info-icon.1FtkyuYH.js → info-icon.DvhV1I7b.js} +3 -3
  102. package/dist/chunks/{info-icon.1FtkyuYH.js.map → info-icon.DvhV1I7b.js.map} +1 -1
  103. package/dist/chunks/{input-field-password.DUSoJYKT.js → input-field-password.wB3hoH6J.js} +5 -5
  104. package/dist/chunks/{input-field-password.DUSoJYKT.js.map → input-field-password.wB3hoH6J.js.map} +1 -1
  105. package/dist/chunks/{input-field-phone-number.Q-bQJL4g.js → input-field-phone-number.BmVS8zco.js} +2 -2
  106. package/dist/chunks/{input-field-phone-number.Q-bQJL4g.js.map → input-field-phone-number.BmVS8zco.js.map} +1 -1
  107. package/dist/chunks/{input-field.CvnmfrzQ.js → input-field.lSSH5S7P.js} +3 -3
  108. package/dist/chunks/{input-field.CvnmfrzQ.js.map → input-field.lSSH5S7P.js.map} +1 -1
  109. package/dist/chunks/{input-time.CGPUOOQ9.js → input-time.nwnBuzgX.js} +3 -3
  110. package/dist/chunks/{input-time.CGPUOOQ9.js.map → input-time.nwnBuzgX.js.map} +1 -1
  111. package/dist/chunks/{inspector.BvBC1ABK.js → inspector.CTBNfXvo.js} +3 -3
  112. package/dist/chunks/{inspector.BvBC1ABK.js.map → inspector.CTBNfXvo.js.map} +1 -1
  113. package/dist/chunks/{layout-row.BsGdHl3d.js → layout-row.7mhpRkAj.js} +2 -2
  114. package/dist/chunks/{layout-row.BsGdHl3d.js.map → layout-row.7mhpRkAj.js.map} +1 -1
  115. package/dist/chunks/list-item.DqZuLQXc.js +222 -0
  116. package/dist/chunks/list-item.DqZuLQXc.js.map +1 -0
  117. package/dist/chunks/{listbox-option-tag.yF6p9iQw.js → listbox-option-tag.DdWLEXEA.js} +2 -2
  118. package/dist/chunks/{listbox-option-tag.yF6p9iQw.js.map → listbox-option-tag.DdWLEXEA.js.map} +1 -1
  119. package/dist/chunks/{modal-fullscreen.CBxh_3gU.js → modal-fullscreen.T5PF8pWA.js} +4 -4
  120. package/dist/chunks/{modal-fullscreen.CBxh_3gU.js.map → modal-fullscreen.T5PF8pWA.js.map} +1 -1
  121. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C3xuswtY.js → modal.vue_vue_type_script_setup_true_lang.BOOZl25a.js} +4 -4
  122. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C3xuswtY.js.map → modal.vue_vue_type_script_setup_true_lang.BOOZl25a.js.map} +1 -1
  123. package/dist/chunks/{navigation-menu-group.CQ6ImGsJ.js → navigation-menu-group.CIV5BQJA.js} +3 -3
  124. package/dist/chunks/{navigation-menu-group.CQ6ImGsJ.js.map → navigation-menu-group.CIV5BQJA.js.map} +1 -1
  125. package/dist/chunks/{pagination.cNByWBP1.js → pagination.DX2mxVYn.js} +2 -2
  126. package/dist/chunks/{pagination.cNByWBP1.js.map → pagination.DX2mxVYn.js.map} +1 -1
  127. package/dist/chunks/popover.types.B92uj134.js +6 -0
  128. package/dist/chunks/{popover.types.DATOPtuh.js.map → popover.types.B92uj134.js.map} +1 -1
  129. package/dist/chunks/{popper-container.BH4WxeUj.js → popper-container.DRt5hgY8.js} +2 -2
  130. package/dist/chunks/{popper-container.BH4WxeUj.js.map → popper-container.DRt5hgY8.js.map} +1 -1
  131. package/dist/chunks/{promo-banner.DvV9eXs4.js → promo-banner.DICpj6e6.js} +2 -2
  132. package/dist/chunks/{promo-banner.DvV9eXs4.js.map → promo-banner.DICpj6e6.js.map} +1 -1
  133. package/dist/chunks/{radio-group.Cg67ZU0c.js → radio-group.DZkv4S3H.js} +3 -3
  134. package/dist/chunks/{radio-group.Cg67ZU0c.js.map → radio-group.DZkv4S3H.js.map} +1 -1
  135. package/dist/chunks/{rich-text-editor.CJA_d518.js → rich-text-editor.D94Vaa4k.js} +4 -4
  136. package/dist/chunks/{rich-text-editor.CJA_d518.js.map → rich-text-editor.D94Vaa4k.js.map} +1 -1
  137. package/dist/chunks/{search-bar.CLjqWNaI.js → search-bar.f03s-Ljw.js} +3 -3
  138. package/dist/chunks/{search-bar.CLjqWNaI.js.map → search-bar.f03s-Ljw.js.map} +1 -1
  139. package/dist/chunks/{secondary-nav.BU47gyEO.js → secondary-nav.BQOLLVwy.js} +4 -4
  140. package/dist/chunks/{secondary-nav.BU47gyEO.js.map → secondary-nav.BQOLLVwy.js.map} +1 -1
  141. package/dist/chunks/{segmented-control.D6Yvxxpc.js → segmented-control.CDV9IQDC.js} +2 -2
  142. package/dist/chunks/{segmented-control.D6Yvxxpc.js.map → segmented-control.CDV9IQDC.js.map} +1 -1
  143. package/dist/chunks/{selection-card-group.C2Av3uyz.js → selection-card-group.Cvz-uxZ1.js} +11 -11
  144. package/dist/chunks/{selection-card-group.C2Av3uyz.js.map → selection-card-group.Cvz-uxZ1.js.map} +1 -1
  145. package/dist/chunks/{sidepanel.Dw2If3qM.js → sidepanel.DWgn0NNb.js} +5 -5
  146. package/dist/chunks/{sidepanel.Dw2If3qM.js.map → sidepanel.DWgn0NNb.js.map} +1 -1
  147. package/dist/chunks/{structured-list-item.BhYtSw2f.js → structured-list-item.RunfI9Pj.js} +4 -4
  148. package/dist/chunks/{structured-list-item.BhYtSw2f.js.map → structured-list-item.RunfI9Pj.js.map} +1 -1
  149. package/dist/chunks/{summary-grid.types.Cnrc4ThJ.js → summary-grid.types.DiJtaVN-.js} +5 -5
  150. package/dist/chunks/{summary-grid.types.Cnrc4ThJ.js.map → summary-grid.types.DiJtaVN-.js.map} +1 -1
  151. package/dist/chunks/{tab.ByjWuWQz.js → tab.CnvwN1lS.js} +2 -2
  152. package/dist/chunks/{tab.ByjWuWQz.js.map → tab.CnvwN1lS.js.map} +1 -1
  153. package/dist/chunks/{tag.Uu-6AQys.js → tag.BDBpa51Z.js} +2 -2
  154. package/dist/chunks/{tag.Uu-6AQys.js.map → tag.BDBpa51Z.js.map} +1 -1
  155. package/dist/chunks/{textarea.QgSLPL7S.js → textarea.Cb6Fu5-u.js} +2 -2
  156. package/dist/chunks/{textarea.QgSLPL7S.js.map → textarea.Cb6Fu5-u.js.map} +1 -1
  157. package/dist/chunks/{timeline-item.BWhCoOf1.js → timeline-item.XpxLQwxK.js} +7 -7
  158. package/dist/chunks/{timeline-item.BWhCoOf1.js.map → timeline-item.XpxLQwxK.js.map} +1 -1
  159. package/dist/chunks/{tooltip.Djn54E1O.js → tooltip.DaO3Jkem.js} +3 -3
  160. package/dist/chunks/{tooltip.Djn54E1O.js.map → tooltip.DaO3Jkem.js.map} +1 -1
  161. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.QWcInKo7.js → tutorial.vue_vue_type_script_setup_true_lang.DjvXPcvu.js} +4 -4
  162. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.QWcInKo7.js.map → tutorial.vue_vue_type_script_setup_true_lang.DjvXPcvu.js.map} +1 -1
  163. package/dist/chunks/{use-bento-delayed-hover.Csc3nIWt.js → use-bento-delayed-hover.4NBNqVyw.js} +2 -2
  164. package/dist/chunks/{use-bento-delayed-hover.Csc3nIWt.js.map → use-bento-delayed-hover.4NBNqVyw.js.map} +1 -1
  165. package/dist/chunks/{use-date-input-formatter.QXaVIBS0.js → use-date-input-formatter.S-t29v8i.js} +2 -2
  166. package/dist/chunks/{use-date-input-formatter.QXaVIBS0.js.map → use-date-input-formatter.S-t29v8i.js.map} +1 -1
  167. package/dist/code-snippet.js +1 -1
  168. package/dist/dashboard-template.js +1 -1
  169. package/dist/dashed-underline.js +1 -1
  170. package/dist/data-grid-template.js +1 -1
  171. package/dist/data-grid.js +1 -1
  172. package/dist/date-picker.js +2 -2
  173. package/dist/date-range-picker.js +2 -2
  174. package/dist/date-time-picker.js +4 -4
  175. package/dist/date.js +1 -1
  176. package/dist/draggable.js +4 -3
  177. package/dist/draggable.js.map +1 -1
  178. package/dist/drawer.js +1 -1
  179. package/dist/dropdown.js +2 -2
  180. package/dist/file-uploader.js +1 -1
  181. package/dist/filter-bar.js +1 -1
  182. package/dist/focus-trap.js +1 -1
  183. package/dist/header-with-views.js +1 -1
  184. package/dist/header.js +1 -1
  185. package/dist/index.js +260 -259
  186. package/dist/index.js.map +1 -1
  187. package/dist/info-icon.js +1 -1
  188. package/dist/input-field-password.js +1 -1
  189. package/dist/input-field-phone-number.js +1 -1
  190. package/dist/input-field.js +1 -1
  191. package/dist/input-time.js +1 -1
  192. package/dist/inspector.js +1 -1
  193. package/dist/internal.js +11 -11
  194. package/dist/layout.js +1 -1
  195. package/dist/list.js +1 -1
  196. package/dist/menu.js +1 -1
  197. package/dist/modal-fullscreen.js +1 -1
  198. package/dist/modal.js +2 -2
  199. package/dist/navigation-menu.js +1 -1
  200. package/dist/pagination.js +1 -1
  201. package/dist/popover.js +2 -2
  202. package/dist/popper-container.js +1 -1
  203. package/dist/promo-banner.js +1 -1
  204. package/dist/radio-group.js +1 -1
  205. package/dist/rich-text-editor.js +1 -1
  206. package/dist/search-bar.js +2 -2
  207. package/dist/secondary-nav.js +1 -1
  208. package/dist/segmented-control.js +1 -1
  209. package/dist/selection-card.js +1 -1
  210. package/dist/sidepanel.js +1 -1
  211. package/dist/structured-list.js +1 -1
  212. package/dist/summary-grid.js +1 -1
  213. package/dist/tabs.js +1 -1
  214. package/dist/tag.js +1 -1
  215. package/dist/textarea.js +1 -1
  216. package/dist/timeline.js +1 -1
  217. package/dist/tutorial.js +1 -1
  218. package/dist/web-types.json +1 -1
  219. package/package.json +7 -7
  220. package/dist/chunks/calendar.6NKd6IMo.js.map +0 -1
  221. package/dist/chunks/date.R2Wz6o7J.js.map +0 -1
  222. package/dist/chunks/draggable-handle.CUecl-HB.js +0 -1649
  223. package/dist/chunks/draggable-handle.CUecl-HB.js.map +0 -1
  224. package/dist/chunks/dropdown.C97ShfXZ.js.map +0 -1
  225. package/dist/chunks/filter-bar.D8BVPHLT.js.map +0 -1
  226. package/dist/chunks/header-meta.yBxBW12f.js +0 -243
  227. package/dist/chunks/list-item.E1o7yuEB.js +0 -128
  228. package/dist/chunks/list-item.E1o7yuEB.js.map +0 -1
  229. package/dist/chunks/popover.types.DATOPtuh.js +0 -6
@@ -1,19 +1,19 @@
1
- import { defineComponent as ue, provide as Ge, computed as O, openBlock as _, createBlock as H, unref as M, resolveComponent as vt, createElementBlock as Y, withKeys as te, normalizeClass as Pe, createElementVNode as k, createVNode as C, withCtx as z, createTextVNode as Ye, toDisplayString as Me, ref as J, watch as re, nextTick as yt, toRef as x, withDirectives as Ve, mergeProps as ze, toHandlers as Je, createCommentVNode as ne, Fragment as X, renderList as Z, reactive as Xe, resolveDynamicComponent as ht } from "vue";
1
+ import { defineComponent as ue, provide as Ce, computed as O, openBlock as _, createBlock as H, unref as M, resolveComponent as vt, createElementBlock as Y, withKeys as te, normalizeClass as Be, createElementVNode as T, createVNode as C, withCtx as z, toDisplayString as Me, ref as J, watch as re, nextTick as yt, toRef as x, withDirectives as Ve, mergeProps as ze, toHandlers as Je, createCommentVNode as ne, createTextVNode as Ge, Fragment as X, renderList as Z, reactive as Xe, resolveDynamicComponent as ht } from "vue";
2
2
  import { B as Ie } from "./button.DWF7FSIw.js";
3
- import { B as Fe } from "./typography.B3J6_tYk.js";
3
+ import { B as Ye } from "./typography.B3J6_tYk.js";
4
4
  import { u as we } from "./index.B875RXHM.js";
5
5
  import { g as Ze } from "./generate-uid.DBWe4g6T.js";
6
6
  import { a as et } from "./keyboard-navigation.DWmhelVv.js";
7
- import { c as gt } from "./index.oOAkh64h.js";
7
+ import { e as gt } from "./index.DtuWfdhd.js";
8
8
  import { t as w, c as se, n as fe, k as Ue, w as pt, g as tt } from "./en-US.BR6y7foR.js";
9
9
  import { d as je, a as Ne, b as Mt } from "./differenceInMonths.yz4Dfe-b.js";
10
10
  import { s as Ee } from "./startOfWeek.muMEhS7U.js";
11
11
  import { C as nt, a as at } from "./chevron-left.C_vPW7OR.js";
12
- import { h as Nt, i as Et, B as bt } from "./dropdown.C97ShfXZ.js";
12
+ import { h as Nt, i as Et, B as bt } from "./dropdown.CGUBk0iO.js";
13
13
  import { _ as De } from "./_plugin-vue_export-helper.CHgC5LLL.js";
14
- import { B as St, a as _t } from "./date.R2Wz6o7J.js";
14
+ import { B as St, a as _t } from "./date.BFhwd9CA.js";
15
15
  import "../assets/calendar.css";
16
- var oe = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(oe || {}), ae = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(ae || {}), K = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(K || {}), Re = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Re || {});
16
+ var oe = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(oe || {}), ae = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(ae || {}), K = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(K || {}), Fe = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Fe || {});
17
17
  function le(e, t, n) {
18
18
  const a = w(e, n?.in);
19
19
  return isNaN(t) ? se(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
@@ -25,8 +25,8 @@ function q(e, t, n) {
25
25
  return a;
26
26
  const r = a.getDate(), s = se(n?.in || e, a.getTime());
27
27
  s.setMonth(a.getMonth() + t + 1, 0);
28
- const i = s.getDate();
29
- return r >= i ? s : (a.setFullYear(
28
+ const u = s.getDate();
29
+ return r >= u ? s : (a.setFullYear(
30
30
  s.getFullYear(),
31
31
  s.getMonth(),
32
32
  r
@@ -41,8 +41,8 @@ function It(e, t, n) {
41
41
  n?.in,
42
42
  e,
43
43
  t
44
- ), s = ee(a), i = ee(r), l = +s - Ue(s), d = +i - Ue(i);
45
- return Math.round((l - d) / pt);
44
+ ), s = ee(a), u = ee(r), i = +s - Ue(s), d = +u - Ue(u);
45
+ return Math.round((i - d) / pt);
46
46
  }
47
47
  function rt(e, t, n) {
48
48
  return q(e, t * 3, n);
@@ -50,7 +50,7 @@ function rt(e, t, n) {
50
50
  function ot(e, t, n) {
51
51
  return le(e, t * 7, n);
52
52
  }
53
- function xe(e, t, n) {
53
+ function Pe(e, t, n) {
54
54
  return q(e, t * 12, n);
55
55
  }
56
56
  function ge(e, t, n) {
@@ -70,19 +70,19 @@ function Ot(e, t, n) {
70
70
  n?.in,
71
71
  e,
72
72
  t
73
- ), s = a.getFullYear() - r.getFullYear(), i = We(a) - We(r);
74
- return s * 4 + i;
73
+ ), s = a.getFullYear() - r.getFullYear(), u = We(a) - We(r);
74
+ return s * 4 + u;
75
75
  }
76
76
  function st(e, t, n) {
77
77
  const [a, r] = fe(
78
78
  n?.in,
79
79
  e,
80
80
  t
81
- ), s = He(a, r), i = Math.abs(
81
+ ), s = He(a, r), u = Math.abs(
82
82
  It(a, r)
83
83
  );
84
- a.setDate(a.getDate() - s * i);
85
- const l = +(He(a, r) === -s), d = s * (i - l);
84
+ a.setDate(a.getDate() - s * u);
85
+ const i = +(He(a, r) === -s), d = s * (u - i);
86
86
  return d === 0 ? 0 : d;
87
87
  }
88
88
  function He(e, t) {
@@ -102,8 +102,8 @@ function Ke(e, t) {
102
102
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
103
103
  }
104
104
  function Se(e, t) {
105
- const n = tt(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = w(e, t?.in), s = r.getDay(), i = (s < a ? -7 : 0) + 6 - (s - a);
106
- return r.setDate(r.getDate() + i), r.setHours(23, 59, 59, 999), r;
105
+ const n = tt(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, r = w(e, t?.in), s = r.getDay(), u = (s < a ? -7 : 0) + 6 - (s - a);
106
+ return r.setDate(r.getDate() + u), r.setHours(23, 59, 59, 999), r;
107
107
  }
108
108
  function _e(e, t) {
109
109
  const n = w(e, t?.in), a = n.getMonth(), r = a - a % 3 + 3;
@@ -120,8 +120,8 @@ function kt(e, t) {
120
120
  return +w(e) < +w(t);
121
121
  }
122
122
  function Yt(e, t, n) {
123
- const a = tt(), r = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, s = w(e, n?.in), i = s.getDay(), d = (t % 7 + 7) % 7, y = 7 - r, f = t < 0 || t > 6 ? t - (i + y) % 7 : (d + y) % 7 - (i + y) % 7;
124
- return le(s, f, n);
123
+ const a = tt(), r = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, s = w(e, n?.in), u = s.getDay(), d = (t % 7 + 7) % 7, m = 7 - r, D = t < 0 || t > 6 ? t - (u + m) % 7 : (d + m) % 7 - (u + m) % 7;
124
+ return le(s, D, n);
125
125
  }
126
126
  function pe(e, t, n) {
127
127
  const [a, r] = fe(
@@ -135,17 +135,17 @@ function Oe(e, t, n) {
135
135
  const a = +w(e, n?.in), [r, s] = [
136
136
  +w(t.start, n?.in),
137
137
  +w(t.end, n?.in)
138
- ].sort((i, l) => i - l);
138
+ ].sort((u, i) => u - i);
139
139
  return a >= r && a <= s;
140
140
  }
141
- function Le(e, t, n) {
141
+ function Re(e, t, n) {
142
142
  return le(e, -t, n);
143
143
  }
144
144
  function Ft(e, t, n) {
145
- const a = w(e, n?.in), r = a.getFullYear(), s = a.getDate(), i = se(e, 0);
146
- i.setFullYear(r, t, 15), i.setHours(0, 0, 0, 0);
147
- const l = wt(i);
148
- return a.setMonth(t, Math.min(s, l)), a;
145
+ const a = w(e, n?.in), r = a.getFullYear(), s = a.getDate(), u = se(e, 0);
146
+ u.setFullYear(r, t, 15), u.setHours(0, 0, 0, 0);
147
+ const i = wt(u);
148
+ return a.setMonth(t, Math.min(s, i)), a;
149
149
  }
150
150
  function Rt(e, t, n) {
151
151
  let a = w(e, n?.in);
@@ -161,7 +161,7 @@ function $t(e, t, n) {
161
161
  return ot(e, -t, n);
162
162
  }
163
163
  function lt(e, t, n) {
164
- return xe(e, -t, n);
164
+ return Pe(e, -t, n);
165
165
  }
166
166
  const ut = {
167
167
  "de-DE": { selectYear: "Jahr auswählen" },
@@ -188,24 +188,24 @@ const ut = {
188
188
  emits: ["update:year"],
189
189
  setup(e, { emit: t }) {
190
190
  const a = e, r = t, { t: s } = we({ messages: ut });
191
- Ge(Nt, !0), Ge(Et, !0);
192
- const i = O(() => {
191
+ Ce(Nt, !0), Ce(Et, !0);
192
+ const u = O(() => {
193
193
  const d = (/* @__PURE__ */ new Date()).getFullYear();
194
- let y = a.yearRange?.minYear ?? d - 100, f = a.yearRange?.maxYear ?? d + 100;
195
- a.min && a.min.getFullYear() > y && (y = a.min.getFullYear()), a.max && a.max.getFullYear() < f && (f = a.max.getFullYear());
196
- const h = Math.max(0, f - y + 1);
197
- return new Array(h).fill(0).map((m, D) => {
198
- const o = y + D;
194
+ let m = a.yearRange?.minYear ?? d - 100, D = a.yearRange?.maxYear ?? d + 100;
195
+ a.min && a.min.getFullYear() > m && (m = a.min.getFullYear()), a.max && a.max.getFullYear() < D && (D = a.max.getFullYear());
196
+ const h = Math.max(0, D - m + 1);
197
+ return new Array(h).fill(0).map((v, f) => {
198
+ const o = m + f;
199
199
  return { label: String(o), value: o };
200
200
  });
201
- }), l = (d) => {
201
+ }), i = (d) => {
202
202
  r("update:year", d);
203
203
  };
204
- return (d, y) => (_(), H(bt, {
205
- items: i.value,
204
+ return (d, m) => (_(), H(bt, {
205
+ items: u.value,
206
206
  "aria-label": M(s)("selectYear"),
207
207
  "model-value": d.currentYear,
208
- "onUpdate:modelValue": l
208
+ "onUpdate:modelValue": i
209
209
  }, null, 8, ["items", "aria-label", "model-value"]));
210
210
  }
211
211
  });
@@ -233,49 +233,49 @@ const Bt = {
233
233
  validator: (e) => Object.values(B).includes(e)
234
234
  }
235
235
  }, ke = /* @__PURE__ */ new Map();
236
- function $e(e, t) {
236
+ function Le(e, t) {
237
237
  const n = t ? JSON.stringify(Object.entries(t).sort()) : "no-options", a = e?.trim() || "en-US", r = `${a}::${n}`;
238
238
  if (ke.has(r))
239
239
  return ke.get(r);
240
240
  const s = new Intl.DateTimeFormat(a, t);
241
241
  return ke.set(r, s), s;
242
242
  }
243
- const Rn = (e) => {
243
+ const Ln = (e) => {
244
244
  if (!e)
245
245
  return "";
246
246
  const t = (n) => n.toString().padStart(2, "0");
247
247
  return [t(e.getHours()), t(e.getMinutes()), t(e.getSeconds())].join(":");
248
- }, Ln = (e) => {
248
+ }, $n = (e) => {
249
249
  if (!e || isNaN(e.getTime()))
250
250
  return "";
251
251
  const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0"), a = e.getDate().toString().padStart(2, "0");
252
252
  return `${t}-${n}-${a}`;
253
- }, $n = (e) => {
253
+ }, An = (e) => {
254
254
  if (!e || isNaN(e.getTime()))
255
255
  return "";
256
256
  const t = e.getFullYear(), n = (e.getMonth() + 1).toString().padStart(2, "0");
257
257
  return `${t}-${n}`;
258
- }, An = (e, t = "date") => {
258
+ }, Bn = (e, t = "date") => {
259
259
  if (!e)
260
260
  return /* @__PURE__ */ new Date(NaN);
261
261
  const [n, a, r] = e.split("-").map(Number);
262
262
  return new Date(n, a - 1, t === "month" ? 1 : r);
263
- }, Bn = (e) => {
263
+ }, Pn = (e) => {
264
264
  if (!e)
265
265
  return /* @__PURE__ */ new Date(NaN);
266
266
  const [t, n] = e.split("-").map(Number);
267
267
  return new Date(t, n - 1, 1);
268
268
  }, Pt = ue({
269
269
  name: "calendar-month-day",
270
- components: { BentoTypography: Fe },
270
+ components: { BentoTypography: Ye },
271
271
  inheritAttrs: !0,
272
272
  props: Bt,
273
273
  emits: [ie.CLICK, ie.MOUSE_OVER],
274
274
  setup(e, { emit: t }) {
275
275
  const { locale: n } = we(void 0), a = O(() => {
276
- const l = /* @__PURE__ */ new Date();
277
- return e.day.getDate() === l.getDate() && e.day.getMonth() === l.getMonth() && e.day.getFullYear() === l.getFullYear();
278
- }), r = O(() => $e(n.value, { day: "numeric" }).formatToParts(e.day).find((f) => f.type === "day")?.value ?? "");
276
+ const d = /* @__PURE__ */ new Date();
277
+ return e.day.getDate() === d.getDate() && e.day.getMonth() === d.getMonth() && e.day.getFullYear() === d.getFullYear();
278
+ }), r = O(() => Le(n.value, { day: "numeric" }).formatToParts(e.day).find((h) => h.type === "day")?.value ?? ""), s = O(() => Number.isNaN(e.day.getTime()) ? void 0 : e.day.toISOString());
279
279
  return {
280
280
  // Values
281
281
  conditionalClasses: O(() => ({
@@ -294,44 +294,45 @@ const Rn = (e) => {
294
294
  })),
295
295
  isCurrentDay: a,
296
296
  formattedDate: r,
297
+ dateTime: s,
297
298
  // Enums
298
299
  CalendarMonthDayEvent: ie,
299
300
  // Events
300
- onClick: (l, d) => {
301
- e.disabled ? (l.preventDefault(), l.stopPropagation()) : t(ie.CLICK, d, e.day);
301
+ onClick: (d, m) => {
302
+ e.disabled ? (d.preventDefault(), d.stopPropagation()) : t(ie.CLICK, m, e.day);
302
303
  }
303
304
  };
304
305
  }
305
- }), xt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], Ct = { class: "b-calendar-month-day__wrapper" };
306
- function Gt(e, t, n, a, r, s) {
307
- const i = vt("bento-typography");
306
+ }), xt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], Ct = { class: "b-calendar-month-day__wrapper" }, Gt = ["datetime"];
307
+ function Ut(e, t, n, a, r, s) {
308
+ const u = vt("bento-typography");
308
309
  return _(), Y("td", {
309
- class: Pe(["b-calendar-month-day", e.conditionalClasses]),
310
+ class: Be(["b-calendar-month-day", e.conditionalClasses]),
310
311
  tabindex: e.selected ? "0" : "-1",
311
312
  "aria-selected": e.selected ? e.selected : void 0,
312
313
  "aria-disabled": e.disabled,
313
314
  "aria-current": e.isCurrentDay ? "date" : void 0,
314
315
  "data-date": e.day.toDateString(),
315
- onClick: t[0] || (t[0] = (l) => e.onClick(l, e.day)),
316
- onMouseover: t[1] || (t[1] = (l) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
317
- onKeydown: t[2] || (t[2] = te((l) => e.onClick(l, e.day), ["space", "enter"]))
316
+ onClick: t[0] || (t[0] = (i) => e.onClick(i, e.day)),
317
+ onMouseover: t[1] || (t[1] = (i) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
318
+ onKeydown: t[2] || (t[2] = te((i) => e.onClick(i, e.day), ["space", "enter"]))
318
319
  }, [
319
- k("div", Ct, [
320
- C(i, {
320
+ T("div", Ct, [
321
+ C(u, {
321
322
  class: "b-calendar-month-day__label",
322
323
  el: "span",
323
324
  variant: "body",
324
325
  strong: ""
325
326
  }, {
326
327
  default: z(() => [
327
- Ye(Me(e.formattedDate), 1)
328
+ T("time", { datetime: e.dateTime }, Me(e.formattedDate), 9, Gt)
328
329
  ]),
329
330
  _: 1
330
331
  })
331
332
  ])
332
333
  ], 42, xt);
333
334
  }
334
- const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb12"]]), ct = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, r) => {
335
+ const jt = /* @__PURE__ */ De(Pt, [["render", Ut], ["__scopeId", "data-v-e6fe861a"]]), ct = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, r) => {
335
336
  const s = J(new Date(t.value));
336
337
  re(
337
338
  t,
@@ -340,45 +341,45 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
340
341
  },
341
342
  { immediate: !0 }
342
343
  );
343
- const i = J(new Date(e.value));
344
+ const u = J(new Date(e.value));
344
345
  re(e, () => {
345
- i.value = new Date(e.value);
346
+ u.value = new Date(e.value);
346
347
  });
347
- const l = gt(), d = J(i.value);
348
- re(l, (u) => {
349
- const E = u.getAttribute("data-date");
350
- d.value = E ? new Date(E) : i.value;
348
+ const i = gt(), d = J(u.value);
349
+ re(i, (l) => {
350
+ const E = l.getAttribute("data-date");
351
+ d.value = E ? new Date(E) : u.value;
351
352
  });
352
- const y = J({}), f = (u) => (E) => {
353
- y.value[u.toDateString()] = E;
353
+ const m = J({}), D = (l) => (E) => {
354
+ m.value[l.toDateString()] = E;
354
355
  }, h = () => {
355
- y.value = {};
356
- }, m = (u = 1) => {
357
- s.value = q(s.value, u), r("nextMonth", u), h();
358
- }, D = (u = 1) => {
359
- s.value = de(s.value, u), r("previousMonth", u), h();
360
- }, o = (u, E) => {
361
- const I = !!y.value[u?.toDateString()];
362
- return !u || !I ? null : E ? y.value[u.toDateString()].$el : (y.value[u.toDateString()].$el.focus(), null);
363
- }, c = (u) => {
364
- u && (u.preventDefault(), u.stopImmediatePropagation(), u.stopPropagation());
365
- }, b = ({ nextDate: u, isIncreasingDays: E, amountOfMonths: I, isCalendarButtonsNav: V }) => {
366
- if (!V && n && n(u))
356
+ m.value = {};
357
+ }, v = (l = 1) => {
358
+ s.value = q(s.value, l), r("nextMonth", l), h();
359
+ }, f = (l = 1) => {
360
+ s.value = de(s.value, l), r("previousMonth", l), h();
361
+ }, o = (l, E) => {
362
+ const I = !!m.value[l?.toDateString()];
363
+ return !l || !I ? null : E ? m.value[l.toDateString()].$el : (m.value[l.toDateString()].$el.focus(), null);
364
+ }, c = (l) => {
365
+ l && (l.preventDefault(), l.stopImmediatePropagation(), l.stopPropagation());
366
+ }, b = ({ nextDate: l, isIncreasingDays: E, amountOfMonths: I, isCalendarButtonsNav: V }) => {
367
+ if (!V && n && n(l))
367
368
  return;
368
- u.getMonth() === i.value.getMonth() && u.getFullYear() === i.value.getFullYear() ? (i.value = u, o(u)) : (E ? m(I) : D(I), yt(() => {
369
- const Te = u.getMonth() === s.value.getMonth() && u.getFullYear() === s.value.getFullYear();
370
- n && n(u) || !Te || V || (i.value = u, o(u));
369
+ l.getMonth() === u.value.getMonth() && l.getFullYear() === u.value.getFullYear() ? (u.value = l, o(l)) : (E ? v(I) : f(I), yt(() => {
370
+ const Te = l.getMonth() === s.value.getMonth() && l.getFullYear() === s.value.getFullYear();
371
+ n && n(l) || !Te || V || (u.value = l, o(l));
371
372
  }));
372
373
  };
373
374
  return {
374
375
  // Calendar days ref
375
- calendarRef: y,
376
- addDayRef: f,
376
+ calendarRef: m,
377
+ addDayRef: D,
377
378
  /**
378
379
  * Month navigation
379
380
  */
380
- showNextMonth: m,
381
- showPreviousMonth: D,
381
+ showNextMonth: v,
382
+ showPreviousMonth: f,
382
383
  /**
383
384
  * Focus method
384
385
  */
@@ -387,47 +388,47 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
387
388
  * Day navigation
388
389
  */
389
390
  // ArrowRight
390
- moveToNextDay: (u) => {
391
- c(u), b({ nextDate: le(d.value, 1), isIncreasingDays: !0 });
391
+ moveToNextDay: (l) => {
392
+ c(l), b({ nextDate: le(d.value, 1), isIncreasingDays: !0 });
392
393
  },
393
394
  // ArrowLeft
394
- moveToPreviousDay: (u) => {
395
- c(u), b({ nextDate: Le(d.value, 1), isIncreasingDays: !1 });
395
+ moveToPreviousDay: (l) => {
396
+ c(l), b({ nextDate: Re(d.value, 1), isIncreasingDays: !1 });
396
397
  },
397
398
  // ArrowUp
398
- moveToPreviousWeek: (u) => {
399
- c(u), b({ nextDate: Le(d.value, 7), isIncreasingDays: !1 });
399
+ moveToPreviousWeek: (l) => {
400
+ c(l), b({ nextDate: Re(d.value, 7), isIncreasingDays: !1 });
400
401
  },
401
402
  // ArrowDown
402
- moveToNextWeek: (u) => {
403
- c(u), b({ nextDate: le(d.value, 7), isIncreasingDays: !0 });
403
+ moveToNextWeek: (l) => {
404
+ c(l), b({ nextDate: le(d.value, 7), isIncreasingDays: !0 });
404
405
  },
405
406
  // Home
406
- moveToFirstDayOfWeek: (u) => {
407
- c(u), b({
407
+ moveToFirstDayOfWeek: (l) => {
408
+ c(l), b({
408
409
  nextDate: Ee(d.value, { weekStartsOn: a }),
409
410
  isIncreasingDays: !1
410
411
  });
411
412
  },
412
- moveToFirstMonthOfYear: (u) => {
413
- c(u);
414
- const E = je(i.value, Ke(i.value));
413
+ moveToFirstMonthOfYear: (l) => {
414
+ c(l);
415
+ const E = je(u.value, Ke(u.value));
415
416
  b({
416
- nextDate: Ke(i.value),
417
+ nextDate: Ke(u.value),
417
418
  isIncreasingDays: !1,
418
419
  amountOfMonths: E
419
420
  });
420
421
  },
421
422
  // End
422
- moveToLastDayOfWeek: (u) => {
423
- c(u), b({
423
+ moveToLastDayOfWeek: (l) => {
424
+ c(l), b({
424
425
  nextDate: Se(d.value, { weekStartsOn: a }),
425
426
  isIncreasingDays: !0
426
427
  });
427
428
  },
428
- moveToLastMonthOfYear: (u) => {
429
- c(u);
430
- const E = Rt(i.value, { month: 11, date: 1 }), I = je(E, i.value);
429
+ moveToLastMonthOfYear: (l) => {
430
+ c(l);
431
+ const E = Rt(u.value, { month: 11, date: 1 }), I = je(E, u.value);
431
432
  b({
432
433
  nextDate: E,
433
434
  isIncreasingDays: !0,
@@ -435,8 +436,8 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
435
436
  });
436
437
  },
437
438
  // PageUp
438
- moveToPreviousMonth: (u, E = !1, I = 1) => {
439
- c(u), b({
439
+ moveToPreviousMonth: (l, E = !1, I = 1) => {
440
+ c(l), b({
440
441
  nextDate: de(d.value, I),
441
442
  isIncreasingDays: !1,
442
443
  amountOfMonths: I,
@@ -444,8 +445,8 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
444
445
  });
445
446
  },
446
447
  // Shift+PageUp
447
- moveToPreviousYear: (u, E = !1, I = 1) => {
448
- c(u), b({
448
+ moveToPreviousYear: (l, E = !1, I = 1) => {
449
+ c(l), b({
449
450
  nextDate: lt(d.value, I),
450
451
  isIncreasingDays: !1,
451
452
  amountOfMonths: I * 12,
@@ -453,8 +454,8 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
453
454
  });
454
455
  },
455
456
  // PageDown
456
- moveToNextMonth: (u, E = !1, I = 1) => {
457
- c(u);
457
+ moveToNextMonth: (l, E = !1, I = 1) => {
458
+ c(l);
458
459
  const V = I;
459
460
  b({
460
461
  nextDate: q(d.value, V),
@@ -464,16 +465,16 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
464
465
  });
465
466
  },
466
467
  // Shift-PageDown
467
- moveToNextYear: (u, E = !1, I = 1) => {
468
- c(u), b({
469
- nextDate: xe(d.value, I),
468
+ moveToNextYear: (l, E = !1, I = 1) => {
469
+ c(l), b({
470
+ nextDate: Pe(d.value, I),
470
471
  isIncreasingDays: !0,
471
472
  amountOfMonths: I * 12,
472
473
  isCalendarButtonsNav: E
473
474
  });
474
475
  },
475
476
  // Values
476
- internalDate: i,
477
+ internalDate: u,
477
478
  baseDate: s
478
479
  };
479
480
  }, dt = {
@@ -487,11 +488,11 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
487
488
  "ja-JP": { nextMonth: "翌月", previousMonth: "前月" },
488
489
  "pt-BR": { nextMonth: "Próximo mês", previousMonth: "Mês anterior" },
489
490
  "zh-CN": { nextMonth: "下个月", previousMonth: "上个月" }
490
- }, jt = { class: "b-calendar-month__month-selector" }, Wt = { class: "b-calendar-month__previous" }, Ht = { class: "b-calendar-month__month-year-container" }, Kt = { class: "b-calendar-month__visually-hidden" }, qt = { class: "b-calendar-month__next" }, Qt = ["aria-labelledby"], Vt = { class: "b-calendar-month__week-header" }, zt = ["colspan"], Jt = {
491
+ }, Wt = { class: "b-calendar-month__month-selector" }, Ht = { class: "b-calendar-month__previous" }, Kt = { class: "b-calendar-month__month-year-container" }, qt = { class: "b-calendar-month__visually-hidden" }, Qt = { class: "b-calendar-month__next" }, Vt = ["aria-labelledby"], zt = { class: "b-calendar-month__week-header" }, Jt = ["colspan"], Xt = {
491
492
  i18n: { messages: dt },
492
493
  name: "calendar-month"
493
- }, Xt = /* @__PURE__ */ ue({
494
- ...Jt,
494
+ }, Zt = /* @__PURE__ */ ue({
495
+ ...Xt,
495
496
  props: {
496
497
  endDate: { default: null },
497
498
  firstDayOfWeek: { default: oe.MONDAY },
@@ -506,22 +507,22 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
506
507
  },
507
508
  emits: ["input", "changeDay", "nextMonth", "previousMonth", "mouseover"],
508
509
  setup(e, { expose: t, emit: n }) {
509
- const a = n, r = e, { locale: s, t: i } = we({ messages: dt }), l = Ze("bento-date-picker-month-label"), d = O(
510
+ const a = n, r = e, { locale: s, t: u } = we({ messages: dt }), i = Ze("bento-date-picker-month-label"), d = O(
510
511
  () => (p) => r.min && p < r.min || r.max && p > r.max || r.isDateDisabled?.(p)
511
512
  ), {
512
- internalDate: y,
513
- baseDate: f,
513
+ internalDate: m,
514
+ baseDate: D,
514
515
  // Calendar refs
515
516
  addDayRef: h,
516
517
  // Day navigation
517
- moveToNextDay: m,
518
- moveToPreviousDay: D,
518
+ moveToNextDay: v,
519
+ moveToPreviousDay: f,
519
520
  moveToPreviousWeek: o,
520
521
  moveToNextWeek: c,
521
522
  moveToFirstDayOfWeek: b,
522
523
  moveToLastDayOfWeek: $,
523
524
  moveToPreviousMonth: g,
524
- moveToPreviousYear: v,
525
+ moveToPreviousYear: y,
525
526
  moveToNextMonth: S,
526
527
  moveToNextYear: L,
527
528
  focusOnDate: me,
@@ -538,24 +539,24 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
538
539
  ), N = O(
539
540
  () => Object.values(oe).includes(r.firstDayOfWeek) ? r.firstDayOfWeek : oe.MONDAY
540
541
  ), A = O(() => ["first", "unique"].includes(r.position)), F = O(() => ["last", "unique"].includes(r.position)), Q = O(
541
- () => $e(s.value, { month: "long" }).format(f.value)
542
- ), u = (p) => {
543
- const R = f.value.getFullYear(), U = (p - R) * 12;
542
+ () => Le(s.value, { month: "long" }).format(D.value)
543
+ ), l = (p) => {
544
+ const R = D.value.getFullYear(), U = (p - R) * 12;
544
545
  U > 0 ? ve(U) : U < 0 && ye(Math.abs(U));
545
546
  }, E = O(
546
547
  () => new Array(7).fill(/* @__PURE__ */ new Date()).map((p, R) => {
547
- const T = Yt(p, N.value + R);
548
- return $e(s.value, { weekday: "short" }).format(T);
548
+ const k = Yt(p, N.value + R);
549
+ return Le(s.value, { weekday: "short" }).format(k);
549
550
  })
550
551
  ), I = O(() => {
551
552
  const p = [], R = ce(r.month);
552
- let T = p[p.push([]) - 1];
553
+ let k = p[p.push([]) - 1];
553
554
  for (; R.getMonth() === r.month.getMonth(); )
554
- R.getDay() - N.value === 0 && T.length > 0 && (T = p[p.push([]) - 1]), T.push(ee(R)), R.setDate(R.getDate() + 1);
555
+ R.getDay() - N.value === 0 && k.length > 0 && (k = p[p.push([]) - 1]), k.push(ee(R)), R.setDate(R.getDate() + 1);
555
556
  return p;
556
557
  }), V = (p) => {
557
558
  a("input", p);
558
- }, Ce = (p) => {
559
+ }, xe = (p) => {
559
560
  if (!r.isRange || ge(r.startDate, r.endDate))
560
561
  return B.SINGLE;
561
562
  if (r.startDate && ge(r.startDate, p))
@@ -564,111 +565,111 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
564
565
  return B.END;
565
566
  if (r.startDate && r.endDate && Oe(p, { start: r.startDate, end: r.endDate }))
566
567
  return B.MIDDLE;
567
- }, Te = (p) => y.value && ge(y.value, p) && !r.endDate ? !0 : r.startDate && r.endDate && Oe(p, { start: r.startDate, end: r.endDate }), Dt = {
568
- "keydown:arrow-right": m,
569
- "keydown:arrow-left": D,
568
+ }, Te = (p) => m.value && ge(m.value, p) && !r.endDate ? !0 : r.startDate && r.endDate && Oe(p, { start: r.startDate, end: r.endDate }), Dt = {
569
+ "keydown:arrow-right": v,
570
+ "keydown:arrow-left": f,
570
571
  "keydown:arrow-up": o,
571
572
  "keydown:arrow-down": c,
572
573
  "keydown:home": b,
573
574
  "keydown:end": $,
574
575
  "keydown:page-up": g,
575
- "keydown:shift-page-up": v,
576
+ "keydown:shift-page-up": y,
576
577
  "keydown:page-down": S,
577
578
  "keydown:shift-page-down": L
578
579
  };
579
580
  return t({
580
581
  focusOnDate: me
581
582
  }), (p, R) => Ve((_(), Y("div", ze({ class: "b-calendar-month" }, Je(Dt, !0)), [
582
- k("div", jt, [
583
- k("div", Wt, [
583
+ T("div", Wt, [
584
+ T("div", Ht, [
584
585
  A.value ? (_(), H(Ie, {
585
586
  key: 0,
586
587
  variant: "tertiary",
587
- onClick: R[0] || (R[0] = (T) => M(g)(T, !0))
588
+ onClick: R[0] || (R[0] = (k) => M(g)(k, !0))
588
589
  }, {
589
590
  iconLeft: z(() => [
590
591
  C(M(nt), {
591
- "svg-title": M(i)("previousMonth")
592
+ "svg-title": M(u)("previousMonth")
592
593
  }, null, 8, ["svg-title"])
593
594
  ]),
594
595
  _: 1
595
596
  })) : ne("", !0)
596
597
  ]),
597
- k("div", Ht, [
598
- C(M(Fe), {
599
- id: M(l),
598
+ T("div", Kt, [
599
+ C(M(Ye), {
600
+ id: M(i),
600
601
  el: "h2",
601
602
  variant: "title",
602
603
  "aria-live": "polite"
603
604
  }, {
604
605
  default: z(() => [
605
- Ye(Me(Q.value) + " ", 1),
606
- k("span", Kt, Me(M(f).getFullYear()), 1)
606
+ Ge(Me(Q.value) + " ", 1),
607
+ T("span", qt, Me(M(D).getFullYear()), 1)
607
608
  ]),
608
609
  _: 1
609
610
  }, 8, ["id"]),
610
611
  C(M(it), {
611
- "current-year": M(f).getFullYear(),
612
+ "current-year": M(D).getFullYear(),
612
613
  "year-range": p.yearRange,
613
614
  min: p.min,
614
615
  max: p.max,
615
- "onUpdate:year": u
616
+ "onUpdate:year": l
616
617
  }, null, 8, ["current-year", "year-range", "min", "max"])
617
618
  ]),
618
- k("div", qt, [
619
+ T("div", Qt, [
619
620
  F.value ? (_(), H(Ie, {
620
621
  key: 0,
621
622
  variant: "tertiary",
622
- onClick: R[1] || (R[1] = (T) => M(S)(T, !0))
623
+ onClick: R[1] || (R[1] = (k) => M(S)(k, !0))
623
624
  }, {
624
625
  iconLeft: z(() => [
625
626
  C(M(at), {
626
- "svg-title": M(i)("nextMonth")
627
+ "svg-title": M(u)("nextMonth")
627
628
  }, null, 8, ["svg-title"])
628
629
  ]),
629
630
  _: 1
630
631
  })) : ne("", !0)
631
632
  ])
632
633
  ]),
633
- k("table", {
634
+ T("table", {
634
635
  class: "b-calendar-month__month-container",
635
636
  role: "grid",
636
- "aria-labelledby": M(l)
637
+ "aria-labelledby": M(i)
637
638
  }, [
638
- k("thead", null, [
639
- k("tr", Vt, [
640
- (_(!0), Y(X, null, Z(E.value, (T, U) => (_(), Y("th", {
639
+ T("thead", null, [
640
+ T("tr", zt, [
641
+ (_(!0), Y(X, null, Z(E.value, (k, U) => (_(), Y("th", {
641
642
  key: U,
642
643
  class: "b-calendar-month__day-of-week",
643
644
  scope: "col"
644
645
  }, [
645
- C(M(Fe), {
646
+ C(M(Ye), {
646
647
  class: "b-calendar-month__day-of-week-font",
647
648
  el: "span",
648
649
  variant: "caption"
649
650
  }, {
650
651
  default: z(() => [
651
- Ye(Me(T), 1)
652
+ Ge(Me(k), 1)
652
653
  ]),
653
654
  _: 2
654
655
  }, 1024)
655
656
  ]))), 128))
656
657
  ])
657
658
  ]),
658
- k("tbody", null, [
659
- (_(!0), Y(X, null, Z(I.value, (T, U) => (_(), Y("tr", { key: U }, [
660
- U === 0 && T.length < 7 ? (_(), Y("td", {
659
+ T("tbody", null, [
660
+ (_(!0), Y(X, null, Z(I.value, (k, U) => (_(), Y("tr", { key: U }, [
661
+ U === 0 && k.length < 7 ? (_(), Y("td", {
661
662
  key: 0,
662
- colspan: 7 - T.length
663
- }, null, 8, zt)) : ne("", !0),
664
- (_(!0), Y(X, null, Z(T, (P, mt) => (_(), H(M(Ut), {
663
+ colspan: 7 - k.length
664
+ }, null, 8, Jt)) : ne("", !0),
665
+ (_(!0), Y(X, null, Z(k, (P, mt) => (_(), H(M(jt), {
665
666
  ref_for: !0,
666
667
  ref: M(h)(P),
667
668
  key: `calendar-day-${mt}`,
668
669
  day: P,
669
670
  disabled: d.value(P),
670
671
  selected: Te(P),
671
- variant: Ce(P),
672
+ variant: xe(P),
672
673
  onClick: V,
673
674
  onMouseover: (he) => p.$emit("mouseover", P),
674
675
  onKeyup: [
@@ -679,25 +680,25 @@ const Ut = /* @__PURE__ */ De(Pt, [["render", Gt], ["__scopeId", "data-v-e6d7eb1
679
680
  ]
680
681
  }, null, 8, ["day", "disabled", "selected", "variant", "onMouseover", "onKeyup"]))), 128))
681
682
  ]))), 128)),
682
- I.value?.length < 6 ? (_(!0), Y(X, { key: 0 }, Z(6 - I.value?.length, (T) => (_(), Y("tr", {
683
- key: `calendar month filler row ${T}`
683
+ I.value?.length < 6 ? (_(!0), Y(X, { key: 0 }, Z(6 - I.value?.length, (k) => (_(), Y("tr", {
684
+ key: `calendar month filler row ${k}`
684
685
  }, R[2] || (R[2] = [
685
- k("td", {
686
+ T("td", {
686
687
  "aria-hidden": "true",
687
688
  class: "b-calendar-month__empty-cell-filler",
688
689
  colspan: 7
689
690
  }, null, -1)
690
691
  ])))), 128)) : ne("", !0)
691
692
  ])
692
- ], 8, Qt)
693
+ ], 8, Vt)
693
694
  ], 16)), [
694
695
  [M(et)]
695
696
  ]);
696
697
  }
697
- }), qe = /* @__PURE__ */ De(Xt, [["__scopeId", "data-v-26305dd8"]]);
698
- var G = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(G || {}), W = /* @__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))(W || {}), Ae = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(Ae || {});
699
- const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__wrapper" }, tn = {}, nn = /* @__PURE__ */ ue({
700
- ...tn,
698
+ }), qe = /* @__PURE__ */ De(Zt, [["__scopeId", "data-v-26305dd8"]]);
699
+ var G = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(G || {}), W = /* @__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))(W || {}), $e = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))($e || {});
700
+ const en = ["tabindex", "aria-selected"], tn = { class: "b-calendar-year-month__wrapper" }, nn = {}, an = /* @__PURE__ */ ue({
701
+ ...nn,
701
702
  __name: "calendar-year-month",
702
703
  props: {
703
704
  month: {},
@@ -708,8 +709,8 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
708
709
  emits: ["click", "mouseover"],
709
710
  setup(e, { emit: t }) {
710
711
  const n = e, a = t, r = O(() => {
711
- const l = /* @__PURE__ */ new Date();
712
- return n.month.getMonth() === l.getMonth() && n.month.getFullYear() === l.getFullYear();
712
+ const i = /* @__PURE__ */ new Date();
713
+ return n.month.getMonth() === i.getMonth() && n.month.getFullYear() === i.getFullYear();
713
714
  }), s = O(() => ({
714
715
  // Variants
715
716
  [`b-calendar-year-month--${W.BEGINNING}`]: n.variant === G.BEGINNING,
@@ -723,27 +724,27 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
723
724
  [`b-calendar-year-month--${W.CURRENT_MONTH}`]: r.value,
724
725
  // Disabled
725
726
  [`b-calendar-year-month--${W.DISABLED}`]: n.disabled
726
- })), i = (l, d) => {
727
- n.disabled ? (l.preventDefault(), l.stopPropagation()) : a(Ae.CLICK, d, n.month);
727
+ })), u = (i, d) => {
728
+ n.disabled ? (i.preventDefault(), i.stopPropagation()) : a($e.CLICK, d, n.month);
728
729
  };
729
- return (l, d) => (_(), Y("td", {
730
- class: Pe(["b-calendar-year-month", s.value]),
731
- tabindex: l.selected ? "0" : "-1",
732
- "aria-selected": l.selected ? l.selected : void 0,
733
- onClick: d[0] || (d[0] = (y) => i(y, l.month)),
734
- onMouseover: d[1] || (d[1] = (y) => a(M(Ae).MOUSE_OVER)),
735
- onKeydown: d[2] || (d[2] = te((y) => i(y, l.month), ["space", "enter"]))
730
+ return (i, d) => (_(), Y("td", {
731
+ class: Be(["b-calendar-year-month", s.value]),
732
+ tabindex: i.selected ? "0" : "-1",
733
+ "aria-selected": i.selected ? i.selected : void 0,
734
+ onClick: d[0] || (d[0] = (m) => u(m, i.month)),
735
+ onMouseover: d[1] || (d[1] = (m) => a(M($e).MOUSE_OVER)),
736
+ onKeydown: d[2] || (d[2] = te((m) => u(m, i.month), ["space", "enter"]))
736
737
  }, [
737
- k("div", en, [
738
+ T("div", tn, [
738
739
  C(M(St), {
739
740
  class: "b-calendar-year-month__label",
740
- date: l.month,
741
+ date: i.month,
741
742
  format: M(_t).SHORT_MONTH
742
743
  }, null, 8, ["date", "format"])
743
744
  ])
744
- ], 42, Zt));
745
+ ], 42, en));
745
746
  }
746
- }), an = /* @__PURE__ */ De(nn, [["__scopeId", "data-v-ad9a13f2"]]), ft = {
747
+ }), rn = /* @__PURE__ */ De(an, [["__scopeId", "data-v-ad9a13f2"]]), ft = {
747
748
  "de-DE": { nextYear: "Nächstes Jahr", previousYear: "Vorjahr" },
748
749
  "en-GB": { nextYear: "Next year", previousYear: "Previous year" },
749
750
  "en-US": { nextYear: "Next year", previousYear: "Previous year" },
@@ -754,10 +755,10 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
754
755
  "ja-JP": { nextYear: "来年", previousYear: "前年" },
755
756
  "pt-BR": { nextYear: "No próximo ano", previousYear: "Ano anterior" },
756
757
  "zh-CN": { nextYear: "明年", previousYear: "上年度" }
757
- }, rn = { class: "b-calendar-year__year-selector" }, on = { class: "b-calendar-year__previous" }, sn = { class: "b-calendar-year__year-label-container" }, ln = { class: "b-calendar-year__next" }, un = ["aria-labelledby"], cn = {
758
+ }, on = { class: "b-calendar-year__year-selector" }, sn = { class: "b-calendar-year__previous" }, ln = { class: "b-calendar-year__year-label-container" }, un = { class: "b-calendar-year__next" }, cn = ["aria-labelledby"], dn = {
758
759
  i18n: { messages: ft }
759
- }, dn = /* @__PURE__ */ ue({
760
- ...cn,
760
+ }, fn = /* @__PURE__ */ ue({
761
+ ...dn,
761
762
  __name: "calendar-year",
762
763
  props: {
763
764
  endDate: { default: null },
@@ -772,17 +773,17 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
772
773
  },
773
774
  emits: ["input", "changeDay", "nextMonth", "previousMonth", "mouseover"],
774
775
  setup(e, { expose: t, emit: n }) {
775
- const a = Ze("bento-date-picker-year-label"), r = e, s = n, { t: i } = we({ messages: ft }), l = (N) => r.min && N < r.min || r.max && N > r.max || r.isDateDisabled?.(N), d = O(
776
+ const a = Ze("bento-date-picker-year-label"), r = e, s = n, { t: u } = we({ messages: ft }), i = (N) => r.min && N < r.min || r.max && N > r.max || r.isDateDisabled?.(N), d = O(
776
777
  () => ["first", "unique"].includes(r.position)
777
- ), y = O(
778
+ ), m = O(
778
779
  () => ["last", "unique"].includes(r.position)
779
780
  ), {
780
- internalDate: f,
781
+ internalDate: D,
781
782
  // Calendar refs
782
783
  addDayRef: h,
783
784
  // Day navigation
784
- moveToPreviousMonth: m,
785
- moveToPreviousYear: D,
785
+ moveToPreviousMonth: v,
786
+ moveToPreviousYear: f,
786
787
  moveToNextMonth: o,
787
788
  moveToNextYear: c,
788
789
  moveToFirstMonthOfYear: b,
@@ -792,100 +793,100 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
792
793
  {
793
794
  currentSelectedDate: x(r, "startDate"),
794
795
  month: x(r, "year"),
795
- isDateDisabled: l
796
+ isDateDisabled: i
796
797
  },
797
798
  s
798
- ), v = (N) => {
799
+ ), y = (N) => {
799
800
  const A = r.year.getFullYear(), F = N - A;
800
- F > 0 ? c(null, !0, F) : F < 0 && D(null, !0, Math.abs(F));
801
+ F > 0 ? c(null, !0, F) : F < 0 && f(null, !0, Math.abs(F));
801
802
  }, S = O(() => {
802
803
  const N = [];
803
804
  let A = 0;
804
805
  for (let F = 0; F < 3; F++) {
805
806
  const Q = [];
806
- for (let u = 0; u < 4; u++)
807
+ for (let l = 0; l < 4; l++)
807
808
  Q.push(new Date(r.year.getFullYear(), A++, 1));
808
809
  N.push(Q);
809
810
  }
810
811
  return N;
811
- }), L = (N) => !r.isRange || pe(r.startDate, r.endDate) ? G.SINGLE : r.startDate && pe(r.startDate, N) ? G.BEGINNING : r.endDate && pe(r.endDate, N) ? G.END : r.startDate && r.endDate && Oe(N, { start: r.startDate, end: r.endDate }) ? G.MIDDLE : null, me = (N) => f.value && pe(f.value, N) ? !0 : r.startDate && r.endDate && Oe(N, { start: r.startDate, end: r.endDate }), ve = (N) => {
812
+ }), L = (N) => !r.isRange || pe(r.startDate, r.endDate) ? G.SINGLE : r.startDate && pe(r.startDate, N) ? G.BEGINNING : r.endDate && pe(r.endDate, N) ? G.END : r.startDate && r.endDate && Oe(N, { start: r.startDate, end: r.endDate }) ? G.MIDDLE : null, me = (N) => D.value && pe(D.value, N) ? !0 : r.startDate && r.endDate && Oe(N, { start: r.startDate, end: r.endDate }), ve = (N) => {
812
813
  s("input", N);
813
814
  }, ye = r.isRange ? {} : {
814
815
  "keydown:arrow-right": o,
815
- "keydown:arrow-left": m,
816
- "keydown:arrow-up": (N) => m(N, !1, 4),
816
+ "keydown:arrow-left": v,
817
+ "keydown:arrow-up": (N) => v(N, !1, 4),
817
818
  "keydown:arrow-down": (N) => o(N, !1, 4),
818
819
  "keydown:home": b,
819
820
  "keydown:end": $,
820
- "keydown:page-up": D,
821
+ "keydown:page-up": f,
821
822
  "keydown:page-down": c
822
823
  };
823
824
  return t({ focusOnDate: g }), (N, A) => Ve((_(), Y("div", ze({ class: "b-calendar-year" }, Je(M(ye), !0)), [
824
- k("div", rn, [
825
- k("div", on, [
825
+ T("div", on, [
826
+ T("div", sn, [
826
827
  d.value ? (_(), H(Ie, {
827
828
  key: 0,
828
829
  variant: "tertiary",
829
- onClick: A[0] || (A[0] = (F) => M(D)(F, !0, 1))
830
+ onClick: A[0] || (A[0] = (F) => M(f)(F, !0, 1))
830
831
  }, {
831
832
  iconLeft: z(() => [
832
833
  C(M(nt), {
833
- "svg-title": M(i)("previousYear")
834
+ "svg-title": M(u)("previousYear")
834
835
  }, null, 8, ["svg-title"])
835
836
  ]),
836
837
  _: 1
837
838
  })) : ne("", !0)
838
839
  ]),
839
- k("div", sn, [
840
+ T("div", ln, [
840
841
  C(M(it), {
841
842
  "current-year": N.year.getFullYear(),
842
843
  "year-range": N.yearRange,
843
844
  min: N.min,
844
845
  max: N.max,
845
- "onUpdate:year": v
846
+ "onUpdate:year": y
846
847
  }, null, 8, ["current-year", "year-range", "min", "max"])
847
848
  ]),
848
- k("div", ln, [
849
- y.value ? (_(), H(Ie, {
849
+ T("div", un, [
850
+ m.value ? (_(), H(Ie, {
850
851
  key: 0,
851
852
  variant: "tertiary",
852
853
  onClick: A[1] || (A[1] = (F) => M(c)(F, !0))
853
854
  }, {
854
855
  iconLeft: z(() => [
855
856
  C(M(at), {
856
- "svg-title": M(i)("nextYear")
857
+ "svg-title": M(u)("nextYear")
857
858
  }, null, 8, ["svg-title"])
858
859
  ]),
859
860
  _: 1
860
861
  })) : ne("", !0)
861
862
  ])
862
863
  ]),
863
- k("table", {
864
+ T("table", {
864
865
  class: "b-calendar-year__year-container",
865
866
  role: "grid",
866
867
  "aria-labelledby": M(a)
867
868
  }, [
868
- k("tbody", null, [
869
+ T("tbody", null, [
869
870
  (_(!0), Y(X, null, Z(S.value, (F, Q) => (_(), Y("tr", { key: Q }, [
870
- (_(!0), Y(X, null, Z(F, (u, E) => (_(), H(an, {
871
+ (_(!0), Y(X, null, Z(F, (l, E) => (_(), H(rn, {
871
872
  ref_for: !0,
872
- ref: M(h)(u),
873
+ ref: M(h)(l),
873
874
  key: `calendar-month-${E}`,
874
- month: u,
875
- disabled: l(u),
876
- selected: me(u),
877
- variant: L(u),
875
+ month: l,
876
+ disabled: i(l),
877
+ selected: me(l),
878
+ variant: L(l),
878
879
  onClick: ve,
879
- onMouseover: (I) => s("mouseover", u)
880
+ onMouseover: (I) => s("mouseover", l)
880
881
  }, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
881
882
  ]))), 128))
882
883
  ])
883
- ], 8, un)
884
+ ], 8, cn)
884
885
  ], 16)), [
885
886
  [M(et)]
886
887
  ]);
887
888
  }
888
- }), Qe = /* @__PURE__ */ De(dn, [["__scopeId", "data-v-8b3aab4e"]]), fn = ({ selectedDate: e }, t) => {
889
+ }), Qe = /* @__PURE__ */ De(fn, [["__scopeId", "data-v-8b3aab4e"]]), Dn = ({ selectedDate: e }, t) => {
889
890
  const n = Xe({
890
891
  startDate: null,
891
892
  endDate: null
@@ -906,55 +907,55 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
906
907
  onMouseOver: () => {
907
908
  }
908
909
  };
909
- }, Dn = (e) => {
910
- const t = (f, h, m, D) => {
911
- let o = Ee(f, { weekStartsOn: e }), c = Se(h || f, { weekStartsOn: e });
912
- const b = m && o < m, $ = D && c > D;
913
- return b && (o = Ee(m, { weekStartsOn: e })), $ && (c = Se(D, { weekStartsOn: e })), o > c && (b ? c = Se(o, { weekStartsOn: e }) : o = Ee(c, { weekStartsOn: e })), { startDate: o, endDate: c };
914
- }, n = (f, h, m, D) => {
915
- let o = ce(f), c = Ne(h || f);
916
- const b = m && o < m, $ = D && c > D;
917
- return b && (o = ce(m)), $ && (c = Ne(D)), o > c && (b ? c = Ne(o) : o = ce(c)), { startDate: o, endDate: c };
918
- }, a = (f, h, m, D) => {
919
- let o = be(f), c = _e(h || f);
920
- const b = m instanceof Date && o < m, $ = D instanceof Date && c > D;
921
- return b && (o = be(m)), $ && (c = _e(D)), o > c && (b ? c = _e(o) : o = be(c)), { startDate: o, endDate: c };
910
+ }, mn = (e) => {
911
+ const t = (D, h, v, f) => {
912
+ let o = Ee(D, { weekStartsOn: e }), c = Se(h || D, { weekStartsOn: e });
913
+ const b = v && o < v, $ = f && c > f;
914
+ return b && (o = Ee(v, { weekStartsOn: e })), $ && (c = Se(f, { weekStartsOn: e })), o > c && (b ? c = Se(o, { weekStartsOn: e }) : o = Ee(c, { weekStartsOn: e })), { startDate: o, endDate: c };
915
+ }, n = (D, h, v, f) => {
916
+ let o = ce(D), c = Ne(h || D);
917
+ const b = v && o < v, $ = f && c > f;
918
+ return b && (o = ce(v)), $ && (c = Ne(f)), o > c && (b ? c = Ne(o) : o = ce(c)), { startDate: o, endDate: c };
919
+ }, a = (D, h, v, f) => {
920
+ let o = be(D), c = _e(h || D);
921
+ const b = v instanceof Date && o < v, $ = f instanceof Date && c > f;
922
+ return b && (o = be(v)), $ && (c = _e(f)), o > c && (b ? c = _e(o) : o = be(c)), { startDate: o, endDate: c };
922
923
  };
923
924
  return {
924
925
  adjustDateForWeekly: t,
925
926
  adjustDateForMonthly: n,
926
927
  adjustDateForQuarterly: a,
927
- adjustStartDateInputForWeekly: (f, h, m, D) => {
928
- const { startDate: o } = t(new Date(f), null, m, D);
928
+ adjustStartDateInputForWeekly: (D, h, v, f) => {
929
+ const { startDate: o } = t(new Date(D), null, v, f);
929
930
  return h(o);
930
931
  },
931
- adjustEndDateInputForWeekly: (f, h, m, D) => {
932
- const { endDate: o } = t(new Date(f), null, m, D);
932
+ adjustEndDateInputForWeekly: (D, h, v, f) => {
933
+ const { endDate: o } = t(new Date(D), null, v, f);
933
934
  return h(o);
934
935
  },
935
- adjustStartDateInputForMonthly: (f, h, m, D) => {
936
- const { startDate: o } = n(new Date(f), null, m, D);
936
+ adjustStartDateInputForMonthly: (D, h, v, f) => {
937
+ const { startDate: o } = n(new Date(D), null, v, f);
937
938
  return h(o);
938
939
  },
939
- adjustEndDateInputForMonthly: (f, h, m, D) => {
940
- const { endDate: o } = n(new Date(f), null, m, D);
940
+ adjustEndDateInputForMonthly: (D, h, v, f) => {
941
+ const { endDate: o } = n(new Date(D), null, v, f);
941
942
  return h(o);
942
943
  },
943
- adjustStartDateInputForQuarterly: (f, h, m, D) => {
944
- const { startDate: o } = a(new Date(f), null, m, D);
944
+ adjustStartDateInputForQuarterly: (D, h, v, f) => {
945
+ const { startDate: o } = a(new Date(D), null, v, f);
945
946
  return h(o);
946
947
  },
947
- adjustEndDateInputForQuarterly: (f, h, m, D) => {
948
- const { endDate: o } = a(new Date(f), null, m, D);
948
+ adjustEndDateInputForQuarterly: (D, h, v, f) => {
949
+ const { endDate: o } = a(new Date(D), null, v, f);
949
950
  return h(o);
950
951
  }
951
952
  };
952
- }, Be = {
953
+ }, Ae = {
953
954
  getCount: (e, t) => st(e, t),
954
- sub: Le,
955
+ sub: Re,
955
956
  add: le
956
- }, mn = {
957
- daily: Be,
957
+ }, vn = {
958
+ daily: Ae,
958
959
  weekly: {
959
960
  getCount: (e, t) => Math.round((st(e, t) + 1) / 7),
960
961
  sub: $t,
@@ -974,96 +975,96 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
974
975
  snapStart: be,
975
976
  snapEnd: _e
976
977
  }
977
- }, vn = (e, t, n, a, r) => {
978
+ }, yn = (e, t, n, a, r) => {
978
979
  const s = a?.maxRange || r;
979
980
  if (!s)
980
981
  return null;
981
- const l = (a?.type ? mn[a.type] : Be) || Be, d = l.getCount(t, e);
982
+ const i = (a?.type ? vn[a.type] : Ae) || Ae, d = i.getCount(t, e);
982
983
  if (d > s) {
983
- const y = d - s, f = l.snapEnd ? l.snapEnd(l.sub(t, y)) : l.sub(t, y), h = l.snapStart ? l.snapStart(l.add(e, y)) : l.add(e, y);
984
- return n < 1 ? { startDate: e, endDate: f } : { startDate: h, endDate: t };
984
+ const m = d - s, D = i.snapEnd ? i.snapEnd(i.sub(t, m)) : i.sub(t, m), h = i.snapStart ? i.snapStart(i.add(e, m)) : i.add(e, m);
985
+ return n < 1 ? { startDate: e, endDate: D } : { startDate: h, endDate: t };
985
986
  }
986
987
  return null;
987
- }, yn = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: r, min: s, max: i }, l) => {
988
- const { adjustDateForWeekly: f, adjustDateForMonthly: h, adjustDateForQuarterly: m } = Dn(r), D = Xe({
988
+ }, hn = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: r, min: s, max: u }, i) => {
989
+ const { adjustDateForWeekly: D, adjustDateForMonthly: h, adjustDateForQuarterly: v } = mn(r), f = Xe({
989
990
  startDate: null,
990
991
  endDate: null
991
992
  }), o = J(null);
992
993
  re(
993
994
  () => e.value,
994
995
  () => {
995
- let { startDate: g = null, endDate: v = null } = e.value || {};
996
- g && (g = ee(g)), v && (v = ee(v)), !(g && t && t(g) || v && t && t(v) || g && v && Tt(g, v)) && (D.startDate = g, D.endDate = v);
996
+ let { startDate: g = null, endDate: y = null } = e.value || {};
997
+ g && (g = ee(g)), y && (y = ee(y)), !(g && t && t(g) || y && t && t(y) || g && y && Tt(g, y)) && (f.startDate = g, f.endDate = y);
997
998
  },
998
999
  { immediate: !0, deep: !0 }
999
1000
  );
1000
- const c = (g, v, S) => {
1001
- D.startDate = g, D.endDate = v;
1002
- const L = vn(g, v, S, a.value, n.value);
1003
- L && (D.startDate = L.startDate, D.endDate = L.endDate), l(K.START_DATE_SELECTED, D.startDate), l(K.END_DATE_SELECTED, D.endDate);
1001
+ const c = (g, y, S) => {
1002
+ f.startDate = g, f.endDate = y;
1003
+ const L = yn(g, y, S, a.value, n.value);
1004
+ L && (f.startDate = L.startDate, f.endDate = L.endDate), i(K.START_DATE_SELECTED, f.startDate), i(K.END_DATE_SELECTED, f.endDate);
1004
1005
  }, b = (g) => {
1005
1006
  if (!(!o.value || t && t(g)))
1006
1007
  if (kt(g, o.value)) {
1007
1008
  if (a?.value?.type === "weekly") {
1008
- const { startDate: v, endDate: S } = f(g, o.value, s.value, i.value);
1009
- c(v, S, -1);
1009
+ const { startDate: y, endDate: S } = D(g, o.value, s.value, u.value);
1010
+ c(y, S, -1);
1010
1011
  return;
1011
1012
  }
1012
1013
  if (a?.value?.type === "monthly") {
1013
- const { startDate: v, endDate: S } = h(g, o.value, s.value, i.value);
1014
- c(v, S, -1);
1014
+ const { startDate: y, endDate: S } = h(g, o.value, s.value, u.value);
1015
+ c(y, S, -1);
1015
1016
  return;
1016
1017
  }
1017
1018
  if (a?.value?.type === "quarterly") {
1018
- const { startDate: v, endDate: S } = m(g, o.value, s.value, i.value);
1019
- c(v, S, -1);
1019
+ const { startDate: y, endDate: S } = v(g, o.value, s.value, u.value);
1020
+ c(y, S, -1);
1020
1021
  return;
1021
1022
  }
1022
1023
  c(g, o.value, -1);
1023
1024
  } else {
1024
1025
  if (a?.value?.type === "weekly") {
1025
- const { startDate: v, endDate: S } = f(o.value, g, s.value, i.value);
1026
- c(v, S, 1);
1026
+ const { startDate: y, endDate: S } = D(o.value, g, s.value, u.value);
1027
+ c(y, S, 1);
1027
1028
  return;
1028
1029
  }
1029
1030
  if (a?.value?.type === "monthly") {
1030
- const { startDate: v, endDate: S } = h(o.value, g, s.value, i.value);
1031
- c(v, S, 1);
1031
+ const { startDate: y, endDate: S } = h(o.value, g, s.value, u.value);
1032
+ c(y, S, 1);
1032
1033
  return;
1033
1034
  }
1034
1035
  if (a?.value?.type === "quarterly") {
1035
- const { startDate: v, endDate: S } = m(o.value, g, s.value, i.value);
1036
- c(v, S, 1);
1036
+ const { startDate: y, endDate: S } = v(o.value, g, s.value, u.value);
1037
+ c(y, S, 1);
1037
1038
  return;
1038
1039
  }
1039
1040
  c(o.value, g, 1);
1040
1041
  }
1041
1042
  };
1042
1043
  return {
1043
- internalValue: D,
1044
+ internalValue: f,
1044
1045
  onDateInput: (g) => {
1045
1046
  if (o.value)
1046
- o.value = null, l(K.INPUT, D);
1047
+ o.value = null, i(K.INPUT, f);
1047
1048
  else {
1048
- let v = g;
1049
+ let y = g;
1049
1050
  if (a?.value?.type === "weekly") {
1050
- const { startDate: S, endDate: L } = f(g);
1051
- v = S, c(v, L);
1051
+ const { startDate: S, endDate: L } = D(g);
1052
+ y = S, c(y, L);
1052
1053
  }
1053
1054
  if (a?.value?.type === "monthly") {
1054
1055
  const { startDate: S, endDate: L } = h(g);
1055
- v = S, c(v, L);
1056
+ y = S, c(y, L);
1056
1057
  }
1057
1058
  if (a?.value?.type === "quarterly") {
1058
- const { startDate: S, endDate: L } = m(g);
1059
- v = S, c(v, L);
1059
+ const { startDate: S, endDate: L } = v(g);
1060
+ y = S, c(y, L);
1060
1061
  }
1061
- o.value = v, b(v);
1062
+ o.value = y, b(y);
1062
1063
  }
1063
1064
  },
1064
1065
  onMouseOver: b
1065
1066
  };
1066
- }, hn = ue({
1067
+ }, gn = ue({
1067
1068
  name: "calendar",
1068
1069
  components: { CalendarMonth: qe, CalendarYear: Qe },
1069
1070
  props: {
@@ -1140,7 +1141,7 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
1140
1141
  variant: {
1141
1142
  type: String,
1142
1143
  default: "day",
1143
- validator: (e) => Object.values(Re).includes(e)
1144
+ validator: (e) => Object.values(Fe).includes(e)
1144
1145
  }
1145
1146
  },
1146
1147
  emit: [K.INPUT, K.START_DATE_SELECTED, K.END_DATE_SELECTED],
@@ -1159,10 +1160,10 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
1159
1160
  { immediate: !0, deep: !0 }
1160
1161
  );
1161
1162
  const r = O(
1162
- () => e.variant === Re.MONTH ? Qe : qe
1163
+ () => e.variant === Fe.MONTH ? Qe : qe
1163
1164
  ), s = O(() => ({
1164
1165
  "b-calendar__range": e.isRange
1165
- })), { internalValue: i, onDateInput: l, onMouseOver: d } = e.isRange ? yn(
1166
+ })), { internalValue: u, onDateInput: i, onMouseOver: d } = e.isRange ? hn(
1166
1167
  {
1167
1168
  selectedDate: x(e, "value"),
1168
1169
  isDateDisabled: e.isDateDisabled,
@@ -1173,18 +1174,18 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
1173
1174
  max: x(e, "max")
1174
1175
  },
1175
1176
  t
1176
- ) : fn(
1177
+ ) : Dn(
1177
1178
  {
1178
1179
  selectedDate: x(e, "value"),
1179
1180
  firstDayOfWeek: e.firstDayOfWeek
1180
1181
  },
1181
1182
  t
1182
- ), y = (o) => e.numberOfMonths === 1 ? ae.UNIQUE : o === 0 ? ae.FIRST : o === e.numberOfMonths - 1 ? ae.LAST : ae.MIDDLE, f = O(() => (o) => {
1183
+ ), m = (o) => e.numberOfMonths === 1 ? ae.UNIQUE : o === 0 ? ae.FIRST : o === e.numberOfMonths - 1 ? ae.LAST : ae.MIDDLE, D = O(() => (o) => {
1183
1184
  const c = e?.showEndDateOnOpen && e.isRange ? de(a.value, e.numberOfMonths - 1) : a.value;
1184
1185
  return q(c, o);
1185
1186
  }), h = O(() => (o) => {
1186
1187
  const c = e?.showEndDateOnOpen ? lt(a.value, e.numberOfMonths - 1) : a.value;
1187
- return xe(c, o);
1188
+ return Pe(c, o);
1188
1189
  });
1189
1190
  return {
1190
1191
  // Refs
@@ -1193,13 +1194,13 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
1193
1194
  baseDate: a,
1194
1195
  calendarComponent: r,
1195
1196
  conditionalClasses: s,
1196
- internalValue: i,
1197
+ internalValue: u,
1197
1198
  // Methods
1198
- calculateOffsetMonth: f,
1199
+ calculateOffsetMonth: D,
1199
1200
  calculateOffsetYear: h,
1200
- calendarPosition: y,
1201
+ calendarPosition: m,
1201
1202
  // Events
1202
- onDateInput: l,
1203
+ onDateInput: i,
1203
1204
  onMouseOver: d,
1204
1205
  calculateNextMonths: (o = 1) => {
1205
1206
  a.value = q(a.value, o);
@@ -1210,19 +1211,19 @@ const Zt = ["tabindex", "aria-selected"], en = { class: "b-calendar-year-month__
1210
1211
  };
1211
1212
  }
1212
1213
  });
1213
- function gn(e, t, n, a, r, s) {
1214
+ function pn(e, t, n, a, r, s) {
1214
1215
  return _(), Y("div", {
1215
- class: Pe(["b-calendar", e.conditionalClasses])
1216
+ class: Be(["b-calendar", e.conditionalClasses])
1216
1217
  }, [
1217
- (_(!0), Y(X, null, Z(e.numberOfMonths, (i, l) => (_(), H(ht(e.calendarComponent), {
1218
+ (_(!0), Y(X, null, Z(e.numberOfMonths, (u, i) => (_(), H(ht(e.calendarComponent), {
1218
1219
  ref_for: !0,
1219
1220
  ref: e.numberOfMonths === 1 ? "calendarRef" : null,
1220
- key: `calendar-${l}`,
1221
+ key: `calendar-${i}`,
1221
1222
  "first-day-of-week": e.firstDayOfWeek,
1222
1223
  "is-date-disabled": e.isDateDisabled,
1223
- month: e.calculateOffsetMonth(l),
1224
- year: e.calculateOffsetYear(l),
1225
- position: e.calendarPosition(l),
1224
+ month: e.calculateOffsetMonth(i),
1225
+ year: e.calculateOffsetYear(i),
1226
+ position: e.calendarPosition(i),
1226
1227
  min: e.min,
1227
1228
  max: e.max,
1228
1229
  "is-range": e.isRange,
@@ -1238,35 +1239,35 @@ function gn(e, t, n, a, r, s) {
1238
1239
  }, null, 40, ["first-day-of-week", "is-date-disabled", "month", "year", "position", "min", "max", "is-range", "start-date", "end-date", "granularity", "year-range", "onInput", "onMouseover", "onChangeDay", "onNextMonth", "onPreviousMonth"]))), 128))
1239
1240
  ], 2);
1240
1241
  }
1241
- const Pn = /* @__PURE__ */ De(hn, [["render", gn], ["__scopeId", "data-v-9b867347"]]);
1242
+ const xn = /* @__PURE__ */ De(gn, [["render", pn], ["__scopeId", "data-v-9b867347"]]);
1242
1243
  export {
1243
1244
  Ke as A,
1244
1245
  oe as C,
1245
- Re as a,
1246
- Pn as b,
1246
+ Fe as a,
1247
+ xn as b,
1247
1248
  K as c,
1248
1249
  ae as d,
1249
- Rn as e,
1250
+ Ln as e,
1250
1251
  ce as f,
1251
- $e as g,
1252
- $n as h,
1253
- Ln as i,
1252
+ Le as g,
1253
+ An as h,
1254
+ $n as i,
1254
1255
  be as j,
1255
1256
  ge as k,
1256
1257
  le as l,
1257
1258
  Se as m,
1258
- Le as n,
1259
+ Re as n,
1259
1260
  q as o,
1260
- An as p,
1261
+ Bn as p,
1261
1262
  de as q,
1262
1263
  rt as r,
1263
1264
  ee as s,
1264
1265
  _e as t,
1265
1266
  Lt as u,
1266
- Dn as v,
1267
- Bn as w,
1267
+ mn as v,
1268
+ Pn as w,
1268
1269
  We as x,
1269
1270
  Yt as y,
1270
1271
  It as z
1271
1272
  };
1272
- //# sourceMappingURL=calendar.6NKd6IMo.js.map
1273
+ //# sourceMappingURL=calendar.D0RdoofE.js.map