@adyen/bento-vue3 1.89.2 → 1.90.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 (243) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +403 -298
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +1 -1
  6. package/dist/alert.js +1 -1
  7. package/dist/anchor-scroller.js +1 -1
  8. package/dist/assets/accordion-item.css +1 -1
  9. package/dist/assets/action-bar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/card.css +1 -1
  13. package/dist/assets/data-grid.css +1 -1
  14. package/dist/assets/date-range-picker.css +1 -1
  15. package/dist/assets/dialog-page.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/input-time.css +1 -0
  18. package/dist/assets/inspector.css +1 -1
  19. package/dist/assets/modal-fullscreen.css +1 -1
  20. package/dist/assets/secondary-nav.css +1 -1
  21. package/dist/assets/sidepanel.css +1 -1
  22. package/dist/button.js +1 -1
  23. package/dist/card.js +1 -1
  24. package/dist/checkbox.js +2 -2
  25. package/dist/chip.js +1 -1
  26. package/dist/chunks/accordion-item.CZIxxSsH.js +141 -0
  27. package/dist/chunks/{accordion-item.BX1KrLMl.js.map → accordion-item.CZIxxSsH.js.map} +1 -1
  28. package/dist/chunks/action-bar.Pe_hvtja.js +336 -0
  29. package/dist/chunks/{action-bar.DLMaIUWW.js.map → action-bar.Pe_hvtja.js.map} +1 -1
  30. package/dist/chunks/ai-tag.BSlc78DU.js +137 -0
  31. package/dist/chunks/{ai-tag.DK63ExDc.js.map → ai-tag.BSlc78DU.js.map} +1 -1
  32. package/dist/chunks/{alert.C_8-VNi_.js → alert.CFWN2E0b.js} +86 -79
  33. package/dist/chunks/{alert.C_8-VNi_.js.map → alert.CFWN2E0b.js.map} +1 -1
  34. package/dist/chunks/anchor-scroller.DSfXK6vK.js +214 -0
  35. package/dist/chunks/{anchor-scroller.NhjLDBZI.js.map → anchor-scroller.DSfXK6vK.js.map} +1 -1
  36. package/dist/chunks/{base-modal.C2-JyHC_.js → base-modal.BjjDrx0z.js} +132 -125
  37. package/dist/chunks/{base-modal.C2-JyHC_.js.map → base-modal.BjjDrx0z.js.map} +1 -1
  38. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js → button-actions-with-menu.DvkS16ur.js} +2 -2
  39. package/dist/chunks/{button-actions-with-menu.BQFAgAI2.js.map → button-actions-with-menu.DvkS16ur.js.map} +1 -1
  40. package/dist/chunks/{button-actions.cMQWyZne.js → button-actions.Bh_PZ_fV.js} +202 -188
  41. package/dist/chunks/{button-actions.cMQWyZne.js.map → button-actions.Bh_PZ_fV.js.map} +1 -1
  42. package/dist/chunks/{calendar.DcCqkSNJ.js → calendar.CH-1Vgeb.js} +343 -329
  43. package/dist/chunks/{calendar.DcCqkSNJ.js.map → calendar.CH-1Vgeb.js.map} +1 -1
  44. package/dist/chunks/card.BzCGCCzH.js +223 -0
  45. package/dist/chunks/{card.CoxQ_L0w.js.map → card.BzCGCCzH.js.map} +1 -1
  46. package/dist/chunks/{checkbox-group.96n9Cc3W.js → checkbox-group.D_fN6Glu.js} +4 -4
  47. package/dist/chunks/{checkbox-group.96n9Cc3W.js.map → checkbox-group.D_fN6Glu.js.map} +1 -1
  48. package/dist/chunks/{checkbox.C6ATh8f5.js → checkbox.BlAhQl9N.js} +78 -71
  49. package/dist/chunks/{checkbox.C6ATh8f5.js.map → checkbox.BlAhQl9N.js.map} +1 -1
  50. package/dist/chunks/chip.DFldnqfz.js +72 -0
  51. package/dist/chunks/{chip.CdgpQyXN.js.map → chip.DFldnqfz.js.map} +1 -1
  52. package/dist/chunks/{code-snippet.DgAuuZF5.js → code-snippet.BePxxR3q.js} +113 -106
  53. package/dist/chunks/{code-snippet.DgAuuZF5.js.map → code-snippet.BePxxR3q.js.map} +1 -1
  54. package/dist/chunks/{controls-group.C7hOE1F4.js → controls-group.Cxk-0fCy.js} +2 -2
  55. package/dist/chunks/{controls-group.C7hOE1F4.js.map → controls-group.Cxk-0fCy.js.map} +1 -1
  56. package/dist/chunks/copy.CL893i9-.js +114 -0
  57. package/dist/chunks/{copy.C2kQ1PbI.js.map → copy.CL893i9-.js.map} +1 -1
  58. package/dist/chunks/{country.CaGc08Ps.js → country.15m_ATbO.js} +3 -3
  59. package/dist/chunks/{country.CaGc08Ps.js.map → country.15m_ATbO.js.map} +1 -1
  60. package/dist/chunks/country.types.6a7xxZIR.js +26 -0
  61. package/dist/chunks/{country.types.DjpMGz7a.js.map → country.types.6a7xxZIR.js.map} +1 -1
  62. package/dist/chunks/{dashboard-section.UafHRkMa.js → dashboard-section.CiNDItU2.js} +3 -3
  63. package/dist/chunks/{dashboard-section.UafHRkMa.js.map → dashboard-section.CiNDItU2.js.map} +1 -1
  64. package/dist/chunks/{dashed-underline.CcDV2Aks.js → dashed-underline.CwdpUz76.js} +3 -3
  65. package/dist/chunks/{dashed-underline.CcDV2Aks.js.map → dashed-underline.CwdpUz76.js.map} +1 -1
  66. package/dist/chunks/{data-grid-template.CnC4TQvk.js → data-grid-template.nXn1dLCw.js} +4 -4
  67. package/dist/chunks/{data-grid-template.CnC4TQvk.js.map → data-grid-template.nXn1dLCw.js.map} +1 -1
  68. package/dist/chunks/data-grid.CXWaoqzi.js +4242 -0
  69. package/dist/chunks/data-grid.CXWaoqzi.js.map +1 -0
  70. package/dist/chunks/date-picker.DPjCROIP.js +238 -0
  71. package/dist/chunks/{date-picker.dlzZ_-5f.js.map → date-picker.DPjCROIP.js.map} +1 -1
  72. package/dist/chunks/date-range-picker.fyrfFd04.js +998 -0
  73. package/dist/chunks/date-range-picker.fyrfFd04.js.map +1 -0
  74. package/dist/chunks/dialog-page.Bh-7RAwX.js +163 -0
  75. package/dist/chunks/{dialog-page.COfKqjT-.js.map → dialog-page.Bh-7RAwX.js.map} +1 -1
  76. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js → dropdown-default-textbox.aYsTZDZ7.js} +69 -62
  77. package/dist/chunks/{dropdown-default-textbox.bq9AlGzJ.js.map → dropdown-default-textbox.aYsTZDZ7.js.map} +1 -1
  78. package/dist/chunks/{dropdown-tag.Ysrac5GN.js → dropdown-tag.B7OA_Yv9.js} +5 -5
  79. package/dist/chunks/{dropdown-tag.Ysrac5GN.js.map → dropdown-tag.B7OA_Yv9.js.map} +1 -1
  80. package/dist/chunks/{dropdown.MhmX1P9o.js → dropdown.Do-mZiI6.js} +285 -271
  81. package/dist/chunks/{dropdown.MhmX1P9o.js.map → dropdown.Do-mZiI6.js.map} +1 -1
  82. package/dist/chunks/error-message.849uzpkq.js +157 -0
  83. package/dist/chunks/{error-message.DCgo8q20.js.map → error-message.849uzpkq.js.map} +1 -1
  84. package/dist/chunks/{file-uploader.Bfd1uUMe.js → file-uploader.BUvDU_cn.js} +604 -583
  85. package/dist/chunks/{file-uploader.Bfd1uUMe.js.map → file-uploader.BUvDU_cn.js.map} +1 -1
  86. package/dist/chunks/{filter-bar.CkAjLQol.js → filter-bar.fowl40RS.js} +998 -928
  87. package/dist/chunks/{filter-bar.CkAjLQol.js.map → filter-bar.fowl40RS.js.map} +1 -1
  88. package/dist/chunks/fixed-scroller.yVsaQzy5.js +157 -0
  89. package/dist/chunks/{fixed-scroller.DtkaGyMD.js.map → fixed-scroller.yVsaQzy5.js.map} +1 -1
  90. package/dist/chunks/{footer-actions.BcYSsoUg.js → footer-actions.uoNbOGAQ.js} +2 -2
  91. package/dist/chunks/{footer-actions.BcYSsoUg.js.map → footer-actions.uoNbOGAQ.js.map} +1 -1
  92. package/dist/chunks/form-layout-title.Cr3wdpK_.js +239 -0
  93. package/dist/chunks/{form-layout-title.DW5Kg1rh.js.map → form-layout-title.Cr3wdpK_.js.map} +1 -1
  94. package/dist/chunks/{header-meta.Bym9AlQm.js → header-meta.CmH6SnjE.js} +98 -84
  95. package/dist/chunks/{header-meta.Bym9AlQm.js.map → header-meta.CmH6SnjE.js.map} +1 -1
  96. package/dist/chunks/{header-with-views.Djba6iol.js → header-with-views.B2pPBcTf.js} +1091 -1070
  97. package/dist/chunks/{header-with-views.Djba6iol.js.map → header-with-views.B2pPBcTf.js.map} +1 -1
  98. package/dist/chunks/{header.o-7SyHtU.js → header.BVM8Usdi.js} +3 -3
  99. package/dist/chunks/{header.o-7SyHtU.js.map → header.BVM8Usdi.js.map} +1 -1
  100. package/dist/chunks/{info-icon.BUala_wq.js → info-icon.B3MDsjMu.js} +2 -2
  101. package/dist/chunks/{info-icon.BUala_wq.js.map → info-icon.B3MDsjMu.js.map} +1 -1
  102. package/dist/chunks/input-field-password.CHb2Ros_.js +353 -0
  103. package/dist/chunks/{input-field-password.DZytmp_p.js.map → input-field-password.CHb2Ros_.js.map} +1 -1
  104. package/dist/chunks/{input-field-phone-number.CxblrmaU.js → input-field-phone-number.DM2rmZkQ.js} +12 -5
  105. package/dist/chunks/{input-field-phone-number.CxblrmaU.js.map → input-field-phone-number.DM2rmZkQ.js.map} +1 -1
  106. package/dist/chunks/{input-field.CfU0ZKtL.js → input-field.DnYjM6yy.js} +118 -111
  107. package/dist/chunks/{input-field.CfU0ZKtL.js.map → input-field.DnYjM6yy.js.map} +1 -1
  108. package/dist/chunks/input-time.DeJ8lDio.js +103 -0
  109. package/dist/chunks/input-time.DeJ8lDio.js.map +1 -0
  110. package/dist/chunks/{inspector.B9k4tJWe.js → inspector.DMhKNW1K.js} +70 -63
  111. package/dist/chunks/{inspector.B9k4tJWe.js.map → inspector.DMhKNW1K.js.map} +1 -1
  112. package/dist/chunks/{list-item.DO5uULke.js → list-item.BHvXpqaS.js} +2 -2
  113. package/dist/chunks/{list-item.DO5uULke.js.map → list-item.BHvXpqaS.js.map} +1 -1
  114. package/dist/chunks/{listbox-option-tag.Cvplth7d.js → listbox-option-tag.CVxaZqbc.js} +2 -2
  115. package/dist/chunks/{listbox-option-tag.Cvplth7d.js.map → listbox-option-tag.CVxaZqbc.js.map} +1 -1
  116. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js → modal-fullscreen.9CSTqFQc.js} +54 -47
  117. package/dist/chunks/{modal-fullscreen.CuKVyTWb.js.map → modal-fullscreen.9CSTqFQc.js.map} +1 -1
  118. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js} +48 -41
  119. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DmPw0l5Y.js.map → modal.vue_vue_type_script_setup_true_lang.BAxTkaQM.js.map} +1 -1
  120. package/dist/chunks/pagination.DL-h8OLF.js +413 -0
  121. package/dist/chunks/{pagination.dpVc6Yt0.js.map → pagination.DL-h8OLF.js.map} +1 -1
  122. package/dist/chunks/{promo-banner.BzveHNOI.js → promo-banner.-H4r_cwj.js} +39 -32
  123. package/dist/chunks/{promo-banner.BzveHNOI.js.map → promo-banner.-H4r_cwj.js.map} +1 -1
  124. package/dist/chunks/{radio-group.Cuiq4mxy.js → radio-group.DzhQgXv9.js} +4 -4
  125. package/dist/chunks/{radio-group.Cuiq4mxy.js.map → radio-group.DzhQgXv9.js.map} +1 -1
  126. package/dist/chunks/{rich-text-editor.DLMiT4f5.js → rich-text-editor.Ij2t4pyI.js} +418 -411
  127. package/dist/chunks/{rich-text-editor.DLMiT4f5.js.map → rich-text-editor.Ij2t4pyI.js.map} +1 -1
  128. package/dist/chunks/search-bar.DfNwnjes.js +114 -0
  129. package/dist/chunks/{search-bar.CsFyP0_I.js.map → search-bar.DfNwnjes.js.map} +1 -1
  130. package/dist/chunks/secondary-nav.CvipTDRh.js +285 -0
  131. package/dist/chunks/secondary-nav.CvipTDRh.js.map +1 -0
  132. package/dist/chunks/{segmented-control.KeQ5kuR1.js → segmented-control.CQWOO1-J.js} +2 -2
  133. package/dist/chunks/{segmented-control.KeQ5kuR1.js.map → segmented-control.CQWOO1-J.js.map} +1 -1
  134. package/dist/chunks/{selection-card-group.XM11Kk-4.js → selection-card-group.CcOWQAUC.js} +11 -11
  135. package/dist/chunks/{selection-card-group.XM11Kk-4.js.map → selection-card-group.CcOWQAUC.js.map} +1 -1
  136. package/dist/chunks/{sidepanel.b2QZ1Jsx.js → sidepanel.BObSv8UU.js} +56 -49
  137. package/dist/chunks/{sidepanel.b2QZ1Jsx.js.map → sidepanel.BObSv8UU.js.map} +1 -1
  138. package/dist/chunks/step.AsX2jAeL.js +268 -0
  139. package/dist/chunks/{step.BlwoLfdw.js.map → step.AsX2jAeL.js.map} +1 -1
  140. package/dist/chunks/structured-list-item.CgJR_ufh.js +112 -0
  141. package/dist/chunks/{structured-list-item.e-8kRleh.js.map → structured-list-item.CgJR_ufh.js.map} +1 -1
  142. package/dist/chunks/{summary-grid.types.CcvOC03H.js → summary-grid.types.DKPhtHw3.js} +5 -5
  143. package/dist/chunks/{summary-grid.types.CcvOC03H.js.map → summary-grid.types.DKPhtHw3.js.map} +1 -1
  144. package/dist/chunks/{tab.mR5uUSdp.js → tab.9nyNZiGw.js} +2 -2
  145. package/dist/chunks/{tab.mR5uUSdp.js.map → tab.9nyNZiGw.js.map} +1 -1
  146. package/dist/chunks/{tag.DujMVFh-.js → tag.YN2r-Pp3.js} +2 -2
  147. package/dist/chunks/{tag.DujMVFh-.js.map → tag.YN2r-Pp3.js.map} +1 -1
  148. package/dist/chunks/textarea.C-sBemuo.js +256 -0
  149. package/dist/chunks/{textarea.CHV6Z8nt.js.map → textarea.C-sBemuo.js.map} +1 -1
  150. package/dist/chunks/timeline-item.CHk8wXeT.js +433 -0
  151. package/dist/chunks/{timeline-item.CaGcRZbt.js.map → timeline-item.CHk8wXeT.js.map} +1 -1
  152. package/dist/chunks/{toast.C2oehk9P.js → toast.De4MTkiH.js} +64 -57
  153. package/dist/chunks/{toast.C2oehk9P.js.map → toast.De4MTkiH.js.map} +1 -1
  154. package/dist/chunks/{tooltip.CbADa_4p.js → tooltip.DHfG2aRt.js} +40 -38
  155. package/dist/chunks/tooltip.DHfG2aRt.js.map +1 -0
  156. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js} +120 -113
  157. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BOruzlTt.js.map → tutorial.vue_vue_type_script_setup_true_lang.CUDeriBU.js.map} +1 -1
  158. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js → use-cached-selected-values.DIbfa5F1.js} +381 -360
  159. package/dist/chunks/{use-cached-selected-values.ClEJRFAd.js.map → use-cached-selected-values.DIbfa5F1.js.map} +1 -1
  160. package/dist/chunks/{use-country-items.D_3LBe2I.js → use-country-items.Dp7X1r2e.js} +3 -3
  161. package/dist/chunks/{use-country-items.D_3LBe2I.js.map → use-country-items.Dp7X1r2e.js.map} +1 -1
  162. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js → use-country-phon-code.BzcawGpE.js} +107 -104
  163. package/dist/chunks/{use-country-phon-code.DoqTGkNr.js.map → use-country-phon-code.BzcawGpE.js.map} +1 -1
  164. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js → use-date-input-formatter.BiIraXZZ.js} +2 -2
  165. package/dist/chunks/{use-date-input-formatter.CDRzd-hW.js.map → use-date-input-formatter.BiIraXZZ.js.map} +1 -1
  166. package/dist/code-snippet.js +1 -1
  167. package/dist/country.js +3 -3
  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/draggable-handle.js +51 -44
  175. package/dist/draggable-handle.js.map +1 -1
  176. package/dist/dropdown.js +4 -4
  177. package/dist/file-uploader.js +1 -1
  178. package/dist/filter-bar.js +1 -1
  179. package/dist/form-layout.js +1 -1
  180. package/dist/header-with-views.js +1 -1
  181. package/dist/header.js +1 -1
  182. package/dist/index.js +205 -203
  183. package/dist/index.js.map +1 -1
  184. package/dist/info-icon.js +1 -1
  185. package/dist/input-field-password.js +1 -1
  186. package/dist/input-field-phone-number.js +1 -1
  187. package/dist/input-field.js +1 -1
  188. package/dist/input-time.js +5 -0
  189. package/dist/input-time.js.map +1 -0
  190. package/dist/inspector.js +1 -1
  191. package/dist/internal.js +12 -12
  192. package/dist/list.js +1 -1
  193. package/dist/menu.js +1 -1
  194. package/dist/modal-fullscreen.js +1 -1
  195. package/dist/modal.js +2 -2
  196. package/dist/pagination.js +1 -1
  197. package/dist/popover.js +1 -1
  198. package/dist/promo-banner.js +1 -1
  199. package/dist/radio-group.js +1 -1
  200. package/dist/rich-text-editor.js +1 -1
  201. package/dist/search-bar.js +2 -2
  202. package/dist/secondary-nav.js +1 -1
  203. package/dist/segmented-control.js +1 -1
  204. package/dist/selection-card.js +1 -1
  205. package/dist/sidepanel.js +1 -1
  206. package/dist/stepper.js +1 -1
  207. package/dist/structured-list.js +1 -1
  208. package/dist/summary-grid.js +1 -1
  209. package/dist/tabs.js +1 -1
  210. package/dist/tag.js +1 -1
  211. package/dist/textarea.js +1 -1
  212. package/dist/timeline.js +1 -1
  213. package/dist/toast.js +1 -1
  214. package/dist/tutorial.js +1 -1
  215. package/dist/web-types.json +1 -1
  216. package/package.json +4 -4
  217. package/dist/chunks/accordion-item.BX1KrLMl.js +0 -134
  218. package/dist/chunks/action-bar.DLMaIUWW.js +0 -329
  219. package/dist/chunks/ai-tag.DK63ExDc.js +0 -130
  220. package/dist/chunks/anchor-scroller.NhjLDBZI.js +0 -207
  221. package/dist/chunks/card.CoxQ_L0w.js +0 -216
  222. package/dist/chunks/chip.CdgpQyXN.js +0 -65
  223. package/dist/chunks/copy.C2kQ1PbI.js +0 -107
  224. package/dist/chunks/country.types.DjpMGz7a.js +0 -19
  225. package/dist/chunks/data-grid.BSIXLRm7.js +0 -4014
  226. package/dist/chunks/data-grid.BSIXLRm7.js.map +0 -1
  227. package/dist/chunks/date-picker.dlzZ_-5f.js +0 -231
  228. package/dist/chunks/date-range-picker.DC6CK0As.js +0 -995
  229. package/dist/chunks/date-range-picker.DC6CK0As.js.map +0 -1
  230. package/dist/chunks/dialog-page.COfKqjT-.js +0 -156
  231. package/dist/chunks/error-message.DCgo8q20.js +0 -143
  232. package/dist/chunks/fixed-scroller.DtkaGyMD.js +0 -150
  233. package/dist/chunks/form-layout-title.DW5Kg1rh.js +0 -230
  234. package/dist/chunks/input-field-password.DZytmp_p.js +0 -346
  235. package/dist/chunks/pagination.dpVc6Yt0.js +0 -401
  236. package/dist/chunks/search-bar.CsFyP0_I.js +0 -107
  237. package/dist/chunks/secondary-nav.CLBdq98c.js +0 -138
  238. package/dist/chunks/secondary-nav.CLBdq98c.js.map +0 -1
  239. package/dist/chunks/step.BlwoLfdw.js +0 -259
  240. package/dist/chunks/structured-list-item.e-8kRleh.js +0 -105
  241. package/dist/chunks/textarea.CHV6Z8nt.js +0 -247
  242. package/dist/chunks/timeline-item.CaGcRZbt.js +0 -419
  243. package/dist/chunks/tooltip.CbADa_4p.js.map +0 -1
@@ -1,33 +1,33 @@
1
- import { defineComponent as fe, computed as S, resolveComponent as te, openBlock as O, createElementBlock as w, withKeys as ne, normalizeClass as Ye, createElementVNode as p, createVNode as W, withCtx as V, createTextVNode as Ne, toDisplayString as Ee, ref as Q, watch as se, nextTick as tt, toRef as P, resolveDirective as nt, withDirectives as He, mergeProps as We, toHandlers as Ve, createBlock as Z, createCommentVNode as ae, Fragment as z, renderList as J, unref as _, reactive as Ke, resolveDynamicComponent as at } from "vue";
2
- import { B as we } from "./button.DWF7FSIw.js";
1
+ import { defineComponent as fe, computed as S, resolveComponent as te, openBlock as O, createElementBlock as p, withKeys as ne, normalizeClass as $e, createElementVNode as _, createVNode as W, withCtx as V, createTextVNode as Ne, toDisplayString as Ee, ref as x, watch as re, nextTick as tt, toRef as P, resolveDirective as nt, withDirectives as He, mergeProps as We, toHandlers as Ve, createBlock as J, createCommentVNode as ae, Fragment as Q, renderList as z, unref as w, reactive as Ke, resolveDynamicComponent as at } from "vue";
2
+ import { B as pe } from "./button.DWF7FSIw.js";
3
3
  import { B as Ae } from "./typography.B3J6_tYk.js";
4
4
  import { u as Re } from "./index.B875RXHM.js";
5
5
  import { g as qe } from "./generate-uid.DBWe4g6T.js";
6
- import { a as Qe } from "./keyboard-navigation.DWmhelVv.js";
6
+ import { a as xe } from "./keyboard-navigation.DWmhelVv.js";
7
7
  import { a as ot } from "./index.DDwcHPb6.js";
8
- import { t as T, c as re, n as Oe, k as Fe, s as st, g as ze } from "./en-US.CCazFVNP.js";
8
+ import { t as T, c as se, n as Oe, k as Fe, s as rt, g as Qe } from "./en-US.CCazFVNP.js";
9
9
  import { d as Pe, a as Ie } from "./differenceInMonths.s_znQQpw.js";
10
- import { s as he } from "./startOfWeek.Cvmo-f5J.js";
11
- import { a as Je, C as Xe } from "./chevron-left.C_vPW7OR.js";
10
+ import { s as ye } from "./startOfWeek.Cvmo-f5J.js";
11
+ import { a as ze, C as Xe } from "./chevron-left.C_vPW7OR.js";
12
12
  import { _ as De } from "./_plugin-vue_export-helper.CHgC5LLL.js";
13
- import { B as rt, a as lt } from "./date.R2Wz6o7J.js";
13
+ import { B as st, a as lt } from "./date.R2Wz6o7J.js";
14
14
  import "../assets/calendar.css";
15
15
  var R = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(R || {}), X = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(X || {});
16
16
  function ce(e, t, n) {
17
17
  const a = T(e, n?.in);
18
- return isNaN(t) ? re(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
18
+ return isNaN(t) ? se(n?.in || e, NaN) : (t && a.setDate(a.getDate() + t), a);
19
19
  }
20
- function x(e, t, n) {
20
+ function Z(e, t, n) {
21
21
  const a = T(e, n?.in);
22
- if (isNaN(t)) return re(e, NaN);
22
+ if (isNaN(t)) return se(e, NaN);
23
23
  if (!t)
24
24
  return a;
25
- const o = a.getDate(), r = re(e, a.getTime());
26
- r.setMonth(a.getMonth() + t + 1, 0);
27
- const l = r.getDate();
28
- return o >= l ? r : (a.setFullYear(
29
- r.getFullYear(),
30
- r.getMonth(),
25
+ const o = a.getDate(), s = se(e, a.getTime());
26
+ s.setMonth(a.getMonth() + t + 1, 0);
27
+ const l = s.getDate();
28
+ return o >= l ? s : (a.setFullYear(
29
+ s.getFullYear(),
30
+ s.getMonth(),
31
31
  o
32
32
  ), a);
33
33
  }
@@ -35,16 +35,16 @@ function ee(e, t) {
35
35
  const n = T(e, t?.in);
36
36
  return n.setHours(0, 0, 0, 0), n;
37
37
  }
38
- function ut(e, t, n) {
38
+ function it(e, t, n) {
39
39
  const [a, o] = Oe(
40
40
  n?.in,
41
41
  e,
42
42
  t
43
- ), r = ee(a), l = ee(o), i = +r - Fe(r), D = +l - Fe(l);
44
- return Math.round((i - D) / st);
43
+ ), s = ee(a), l = ee(o), u = +s - Fe(s), D = +l - Fe(l);
44
+ return Math.round((u - D) / rt);
45
45
  }
46
- function Ze(e, t, n) {
47
- return x(e, t * 12, n);
46
+ function Je(e, t, n) {
47
+ return Z(e, t * 12, n);
48
48
  }
49
49
  function me(e, t, n) {
50
50
  const [a, o] = Oe(
@@ -54,16 +54,16 @@ function me(e, t, n) {
54
54
  );
55
55
  return +ee(a) == +ee(o);
56
56
  }
57
- function it(e, t, n) {
57
+ function ut(e, t, n) {
58
58
  const [a, o] = Oe(
59
59
  n?.in,
60
60
  e,
61
61
  t
62
- ), r = Be(a, o), l = Math.abs(
63
- ut(a, o)
62
+ ), s = Be(a, o), l = Math.abs(
63
+ it(a, o)
64
64
  );
65
- a.setDate(a.getDate() - r * l);
66
- const i = +(Be(a, o) === -r), D = r * (l - i);
65
+ a.setDate(a.getDate() - s * l);
66
+ const u = +(Be(a, o) === -s), D = s * (l - u);
67
67
  return D === 0 ? 0 : D;
68
68
  }
69
69
  function Be(e, t) {
@@ -83,7 +83,7 @@ function Ce(e, t) {
83
83
  return n.setFullYear(n.getFullYear(), 0, 1), n.setHours(0, 0, 0, 0), n;
84
84
  }
85
85
  function Me(e, t) {
86
- const n = ze(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = T(e, t?.in), r = o.getDay(), l = (r < a ? -7 : 0) + 6 - (r - a);
86
+ const n = Qe(), a = t?.weekStartsOn ?? t?.locale?.options?.weekStartsOn ?? n.weekStartsOn ?? n.locale?.options?.weekStartsOn ?? 0, o = T(e, t?.in), s = o.getDay(), l = (s < a ? -7 : 0) + 6 - (s - a);
87
87
  return o.setDate(o.getDate() + l), o.setHours(23, 59, 59, 999), o;
88
88
  }
89
89
  function Te(e, t) {
@@ -91,8 +91,8 @@ function Te(e, t) {
91
91
  return n.setMonth(o, 0), n.setHours(23, 59, 59, 999), n;
92
92
  }
93
93
  function dt(e, t) {
94
- const n = T(e, t?.in), a = n.getFullYear(), o = n.getMonth(), r = re(n, 0);
95
- return r.setFullYear(a, o + 1, 0), r.setHours(0, 0, 0, 0), r.getDate();
94
+ const n = T(e, t?.in), a = n.getFullYear(), o = n.getMonth(), s = se(n, 0);
95
+ return s.setFullYear(a, o + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
96
96
  }
97
97
  function ct(e, t) {
98
98
  return +T(e) > +T(t);
@@ -101,10 +101,10 @@ function ft(e, t) {
101
101
  return +T(e) < +T(t);
102
102
  }
103
103
  function Dt(e, t, n) {
104
- const a = ze(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, r = T(e, n?.in), l = r.getDay(), D = (t % 7 + 7) % 7, N = 7 - o, m = t < 0 || t > 6 ? t - (l + N) % 7 : (D + N) % 7 - (l + N) % 7;
105
- return ce(r, m, n);
104
+ const a = Qe(), o = n?.weekStartsOn ?? n?.locale?.options?.weekStartsOn ?? a.weekStartsOn ?? a.locale?.options?.weekStartsOn ?? 0, s = T(e, n?.in), l = s.getDay(), D = (t % 7 + 7) % 7, N = 7 - o, m = t < 0 || t > 6 ? t - (l + N) % 7 : (D + N) % 7 - (l + N) % 7;
105
+ return ce(s, m, n);
106
106
  }
107
- function ye(e, t, n) {
107
+ function he(e, t, n) {
108
108
  const [a, o] = Oe(
109
109
  n?.in,
110
110
  e,
@@ -113,33 +113,33 @@ function ye(e, t, n) {
113
113
  return a.getFullYear() === o.getFullYear() && a.getMonth() === o.getMonth();
114
114
  }
115
115
  function be(e, t, n) {
116
- const a = +T(e, n?.in), [o, r] = [
116
+ const a = +T(e, n?.in), [o, s] = [
117
117
  +T(t.start, n?.in),
118
118
  +T(t.end, n?.in)
119
- ].sort((l, i) => l - i);
120
- return a >= o && a <= r;
119
+ ].sort((l, u) => l - u);
120
+ return a >= o && a <= s;
121
121
  }
122
- function _e(e, t, n) {
122
+ function we(e, t, n) {
123
123
  return ce(e, -t, n);
124
124
  }
125
125
  function vt(e, t, n) {
126
- const a = T(e, n?.in), o = a.getFullYear(), r = a.getDate(), l = re(e, 0);
126
+ const a = T(e, n?.in), o = a.getFullYear(), s = a.getDate(), l = se(e, 0);
127
127
  l.setFullYear(o, t, 15), l.setHours(0, 0, 0, 0);
128
- const i = dt(l);
129
- return a.setMonth(t, Math.min(r, i)), a;
128
+ const u = dt(l);
129
+ return a.setMonth(t, Math.min(s, u)), a;
130
130
  }
131
131
  function mt(e, t, n) {
132
132
  let a = T(e, n?.in);
133
- return isNaN(+a) ? re(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = vt(a, t.month)), t.date != null && a.setDate(t.date), t.hours != null && a.setHours(t.hours), t.minutes != null && a.setMinutes(t.minutes), t.seconds != null && a.setSeconds(t.seconds), t.milliseconds != null && a.setMilliseconds(t.milliseconds), a);
133
+ return isNaN(+a) ? se(e, NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = vt(a, t.month)), t.date != null && a.setDate(t.date), t.hours != null && a.setHours(t.hours), t.minutes != null && a.setMinutes(t.minutes), t.seconds != null && a.setSeconds(t.seconds), t.milliseconds != null && a.setMilliseconds(t.milliseconds), a);
134
134
  }
135
135
  function de(e, t, n) {
136
- return x(e, -t, n);
136
+ return Z(e, -t, n);
137
137
  }
138
- function yt(e, t, n) {
139
- return Ze(e, -t, n);
138
+ function ht(e, t, n) {
139
+ return Je(e, -t, n);
140
140
  }
141
- var F = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(F || {}), j = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_DAY = "current-day", e.DISABLED = "disabled", e))(j || {}), ie = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(ie || {});
142
- const ht = {
141
+ var F = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(F || {}), j = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_DAY = "current-day", e.DISABLED = "disabled", e))(j || {}), ue = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(ue || {});
142
+ const yt = {
143
143
  /**
144
144
  * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
145
145
  */
@@ -162,14 +162,14 @@ const ht = {
162
162
  validator: (e) => Object.values(F).includes(e)
163
163
  }
164
164
  }, ke = /* @__PURE__ */ new Map();
165
- function pe(e, t) {
165
+ function _e(e, t) {
166
166
  const n = t ? JSON.stringify(Object.entries(t).sort()) : "no-options", a = e?.trim() || "en-US", o = `${a}::${n}`;
167
167
  if (ke.has(o))
168
168
  return ke.get(o);
169
- const r = new Intl.DateTimeFormat(a, t);
170
- return ke.set(o, r), r;
169
+ const s = new Intl.DateTimeFormat(a, t);
170
+ return ke.set(o, s), s;
171
171
  }
172
- const rn = (e) => {
172
+ const sn = (e) => {
173
173
  if (!e)
174
174
  return "";
175
175
  const t = (n) => n.toString().padStart(2, "0");
@@ -178,13 +178,13 @@ const rn = (e) => {
178
178
  name: "calendar-month-day",
179
179
  components: { BentoTypography: Ae },
180
180
  inheritAttrs: !0,
181
- props: ht,
182
- emits: [ie.CLICK, ie.MOUSE_OVER],
181
+ props: yt,
182
+ emits: [ue.CLICK, ue.MOUSE_OVER],
183
183
  setup(e, { emit: t }) {
184
184
  const { locale: n } = Re(void 0), a = S(() => {
185
- const i = /* @__PURE__ */ new Date();
186
- return e.day.getDate() === i.getDate() && e.day.getMonth() === i.getMonth() && e.day.getFullYear() === i.getFullYear();
187
- }), o = S(() => pe(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day")?.value ?? "");
185
+ const u = /* @__PURE__ */ new Date();
186
+ return e.day.getDate() === u.getDate() && e.day.getMonth() === u.getMonth() && e.day.getFullYear() === u.getFullYear();
187
+ }), o = S(() => _e(n.value, { day: "numeric" }).formatToParts(e.day).find((m) => m.type === "day")?.value ?? "");
188
188
  return {
189
189
  // Values
190
190
  conditionalClasses: S(() => ({
@@ -204,28 +204,28 @@ const rn = (e) => {
204
204
  isCurrentDay: a,
205
205
  formattedDate: o,
206
206
  // Enums
207
- CalendarMonthDayEvent: ie,
207
+ CalendarMonthDayEvent: ue,
208
208
  // Events
209
- onClick: (i, D) => {
210
- e.disabled ? (i.preventDefault(), i.stopPropagation()) : t(ie.CLICK, D, e.day);
209
+ onClick: (u, D) => {
210
+ e.disabled ? (u.preventDefault(), u.stopPropagation()) : t(ue.CLICK, D, e.day);
211
211
  }
212
212
  };
213
213
  }
214
214
  }), Mt = ["tabindex", "aria-selected", "aria-disabled", "aria-current", "data-date"], Nt = { class: "b-calendar-month-day__wrapper" };
215
- function Et(e, t, n, a, o, r) {
215
+ function Et(e, t, n, a, o, s) {
216
216
  const l = te("bento-typography");
217
- return O(), w("td", {
218
- class: Ye(["b-calendar-month-day", e.conditionalClasses]),
217
+ return O(), p("td", {
218
+ class: $e(["b-calendar-month-day", e.conditionalClasses]),
219
219
  tabindex: e.selected ? "0" : "-1",
220
220
  "aria-selected": e.selected ? e.selected : void 0,
221
221
  "aria-disabled": e.disabled,
222
222
  "aria-current": e.isCurrentDay ? "date" : void 0,
223
223
  "data-date": e.day.toDateString(),
224
- onClick: t[0] || (t[0] = (i) => e.onClick(i, e.day)),
225
- onMouseover: t[1] || (t[1] = (i) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
226
- onKeydown: t[2] || (t[2] = ne((i) => e.onClick(i, e.day), ["space", "enter"]))
224
+ onClick: t[0] || (t[0] = (u) => e.onClick(u, e.day)),
225
+ onMouseover: t[1] || (t[1] = (u) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
226
+ onKeydown: t[2] || (t[2] = ne((u) => e.onClick(u, e.day), ["space", "enter"]))
227
227
  }, [
228
- p("div", Nt, [
228
+ _("div", Nt, [
229
229
  W(l, {
230
230
  class: "b-calendar-month-day__label",
231
231
  el: "span",
@@ -241,44 +241,44 @@ function Et(e, t, n, a, o, r) {
241
241
  ], 42, Mt);
242
242
  }
243
243
  const bt = /* @__PURE__ */ De(gt, [["render", Et], ["__scopeId", "data-v-e6d7eb12"]]);
244
- var oe = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(oe || {}), K = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(K || {}), Le = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Le || {});
245
- const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
246
- const r = Q(new Date(t.value));
247
- se(
244
+ var oe = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(oe || {}), K = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(K || {}), Ye = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Ye || {});
245
+ const Ze = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWeek: a }, o) => {
246
+ const s = x(new Date(t.value));
247
+ re(
248
248
  t,
249
249
  () => {
250
- r.value = t.value;
250
+ s.value = t.value;
251
251
  },
252
252
  { immediate: !0 }
253
253
  );
254
- const l = Q(new Date(e.value));
255
- se(e, () => {
254
+ const l = x(new Date(e.value));
255
+ re(e, () => {
256
256
  l.value = new Date(e.value);
257
257
  });
258
- const i = ot(), D = Q(l.value);
259
- se(i, (d) => {
258
+ const u = ot(), D = x(l.value);
259
+ re(u, (d) => {
260
260
  const M = d.getAttribute("data-date");
261
261
  D.value = M ? new Date(M) : l.value;
262
262
  });
263
- const N = Q({}), m = (d) => (M) => {
263
+ const N = x({}), m = (d) => (M) => {
264
264
  N.value[d.toDateString()] = M;
265
265
  }, g = () => {
266
266
  N.value = {};
267
267
  }, f = (d = 1) => {
268
- r.value = x(r.value, d), o(R.NEXT_MONTH, d), g();
268
+ s.value = Z(s.value, d), o(R.NEXT_MONTH, d), g();
269
269
  }, c = (d = 1) => {
270
- r.value = de(r.value, d), o(R.PREVIOUS_MONTH, d), g();
271
- }, s = (d, M) => {
270
+ s.value = de(s.value, d), o(R.PREVIOUS_MONTH, d), g();
271
+ }, r = (d, M) => {
272
272
  const k = !!N.value[d?.toDateString()];
273
273
  return !d || !k ? null : M ? N.value[d.toDateString()].$el : (N.value[d.toDateString()].$el.focus(), null);
274
- }, u = (d) => {
274
+ }, i = (d) => {
275
275
  d.preventDefault(), d.stopImmediatePropagation(), d.stopPropagation();
276
- }, h = ({ nextDate: d, isIncreasingDays: M, amountOfMonths: k, isCalendarButtonsNav: G }) => {
276
+ }, y = ({ nextDate: d, isIncreasingDays: M, amountOfMonths: k, isCalendarButtonsNav: G }) => {
277
277
  if (!G && n && n(d))
278
278
  return;
279
- d.getMonth() === l.value.getMonth() && d.getFullYear() === l.value.getFullYear() ? (l.value = d, s(d)) : (M ? f(k) : c(k), tt(() => {
280
- const U = d.getMonth() === r.value.getMonth() && d.getFullYear() === r.value.getFullYear();
281
- n && n(d) || !U || G || (l.value = d, s(d));
279
+ d.getMonth() === l.value.getMonth() && d.getFullYear() === l.value.getFullYear() ? (l.value = d, r(d)) : (M ? f(k) : c(k), tt(() => {
280
+ const U = d.getMonth() === s.value.getMonth() && d.getFullYear() === s.value.getFullYear();
281
+ n && n(d) || !U || G || (l.value = d, r(d));
282
282
  }));
283
283
  };
284
284
  return {
@@ -293,37 +293,37 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
293
293
  /**
294
294
  * Focus method
295
295
  */
296
- focusOnDate: s,
296
+ focusOnDate: r,
297
297
  /**
298
298
  * Day navigation
299
299
  */
300
300
  // ArrowRight
301
301
  moveToNextDay: (d) => {
302
- u(d), h({ nextDate: ce(D.value, 1), isIncreasingDays: !0 });
302
+ i(d), y({ nextDate: ce(D.value, 1), isIncreasingDays: !0 });
303
303
  },
304
304
  // ArrowLeft
305
305
  moveToPreviousDay: (d) => {
306
- u(d), h({ nextDate: _e(D.value, 1), isIncreasingDays: !1 });
306
+ i(d), y({ nextDate: we(D.value, 1), isIncreasingDays: !1 });
307
307
  },
308
308
  // ArrowUp
309
309
  moveToPreviousWeek: (d) => {
310
- u(d), h({ nextDate: _e(D.value, 7), isIncreasingDays: !1 });
310
+ i(d), y({ nextDate: we(D.value, 7), isIncreasingDays: !1 });
311
311
  },
312
312
  // ArrowDown
313
313
  moveToNextWeek: (d) => {
314
- u(d), h({ nextDate: ce(D.value, 7), isIncreasingDays: !0 });
314
+ i(d), y({ nextDate: ce(D.value, 7), isIncreasingDays: !0 });
315
315
  },
316
316
  // Home
317
317
  moveToFirstDayOfWeek: (d) => {
318
- u(d), h({
319
- nextDate: he(D.value, { weekStartsOn: a }),
318
+ i(d), y({
319
+ nextDate: ye(D.value, { weekStartsOn: a }),
320
320
  isIncreasingDays: !1
321
321
  });
322
322
  },
323
323
  moveToFirstMonthOfYear: (d) => {
324
- u(d);
324
+ i(d);
325
325
  const M = Pe(l.value, Ce(l.value));
326
- h({
326
+ y({
327
327
  nextDate: Ce(l.value),
328
328
  isIncreasingDays: !1,
329
329
  amountOfMonths: M
@@ -331,15 +331,15 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
331
331
  },
332
332
  // End
333
333
  moveToLastDayOfWeek: (d) => {
334
- u(d), h({
334
+ i(d), y({
335
335
  nextDate: Me(D.value, { weekStartsOn: a }),
336
336
  isIncreasingDays: !0
337
337
  });
338
338
  },
339
339
  moveToLastMonthOfYear: (d) => {
340
- u(d);
340
+ i(d);
341
341
  const M = mt(l.value, { month: 11, date: 1 }), k = Pe(M, l.value);
342
- h({
342
+ y({
343
343
  nextDate: M,
344
344
  isIncreasingDays: !0,
345
345
  amountOfMonths: k
@@ -347,9 +347,9 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
347
347
  },
348
348
  // PageUp
349
349
  moveToPreviousMonth: (d, M = !1, k = 1) => {
350
- u(d);
350
+ i(d);
351
351
  const G = k;
352
- h({
352
+ y({
353
353
  nextDate: de(D.value, G),
354
354
  isIncreasingDays: !1,
355
355
  amountOfMonths: G,
@@ -358,9 +358,9 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
358
358
  },
359
359
  // Shift+PageUp
360
360
  moveToPreviousYear: (d, M = !1) => {
361
- u(d);
361
+ i(d);
362
362
  const k = 12;
363
- h({
363
+ y({
364
364
  nextDate: de(D.value, k),
365
365
  isIncreasingDays: !1,
366
366
  amountOfMonths: k,
@@ -369,10 +369,10 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
369
369
  },
370
370
  // PageDown
371
371
  moveToNextMonth: (d, M = !1, k = 1) => {
372
- u(d);
372
+ i(d);
373
373
  const G = k;
374
- h({
375
- nextDate: x(D.value, G),
374
+ y({
375
+ nextDate: Z(D.value, G),
376
376
  isIncreasingDays: !0,
377
377
  amountOfMonths: G,
378
378
  isCalendarButtonsNav: M
@@ -380,10 +380,10 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
380
380
  },
381
381
  // Shift-PageDown
382
382
  moveToNextYear: (d, M = !1) => {
383
- u(d);
383
+ i(d);
384
384
  const k = 12;
385
- h({
386
- nextDate: x(D.value, k),
385
+ y({
386
+ nextDate: Z(D.value, k),
387
387
  isIncreasingDays: !0,
388
388
  amountOfMonths: k,
389
389
  isCalendarButtonsNav: M
@@ -391,23 +391,30 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
391
391
  },
392
392
  // Values
393
393
  internalDate: l,
394
- baseDate: r
394
+ baseDate: s
395
395
  };
396
396
  }, Ge = {
397
+ "de-DE": { nextMonth: "Nächster Monat", previousMonth: "Voriger Monat" },
398
+ "en-GB": { nextMonth: "Next month", previousMonth: "Previous month" },
397
399
  "en-US": { nextMonth: "Next month", previousMonth: "Previous month" },
400
+ "es-ES": { nextMonth: "Mes siguiente", previousMonth: "Mes anterior" },
401
+ "es-MX": { nextMonth: "El próximo mes", previousMonth: "Mes anterior" },
402
+ "fr-FR": { nextMonth: "Mois suivant", previousMonth: "Mois précédent" },
403
+ "it-IT": { nextMonth: "Mese prossimo", previousMonth: "Mese precedente" },
398
404
  "ja-JP": { nextMonth: "翌月", previousMonth: "前月" },
399
- "pt-BR": { nextMonth: "Próximo mês", previousMonth: "Mês anterior" }
405
+ "pt-BR": { nextMonth: "Próximo mês", previousMonth: "Mês anterior" },
406
+ "zh-CN": { nextMonth: "下个月", previousMonth: "上个月" }
400
407
  }, Ot = fe({
401
408
  i18n: { messages: Ge },
402
409
  name: "calendar-month",
403
410
  components: {
404
- BentoButton: we,
411
+ BentoButton: pe,
405
412
  BentoTypography: Ae,
406
413
  CalendarMonthDay: bt,
407
414
  ChevronLeftIcon: Xe,
408
- ChevronRightIcon: Je
415
+ ChevronRightIcon: ze
409
416
  },
410
- directives: { BentoKeyboardNavigationDirective: Qe },
417
+ directives: { BentoKeyboardNavigationDirective: xe },
411
418
  props: {
412
419
  /**
413
420
  * end of the selected range
@@ -465,11 +472,11 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
465
472
  R.MOUSE_OVER
466
473
  ],
467
474
  setup(e, { emit: t }) {
468
- const { locale: n, t: a } = Re({ messages: Ge }), o = qe("bento-date-picker-month-label"), r = S(
475
+ const { locale: n, t: a } = Re({ messages: Ge }), o = qe("bento-date-picker-month-label"), s = S(
469
476
  () => (I) => e.min && I < e.min || e.max && I > e.max || e.isDateDisabled?.(I)
470
477
  ), {
471
478
  internalDate: l,
472
- baseDate: i,
479
+ baseDate: u,
473
480
  // Calendar refs
474
481
  addDayRef: D,
475
482
  // Month navigation
@@ -479,44 +486,44 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
479
486
  moveToNextDay: g,
480
487
  moveToPreviousDay: f,
481
488
  moveToPreviousWeek: c,
482
- moveToNextWeek: s,
483
- moveToFirstDayOfWeek: u,
484
- moveToLastDayOfWeek: h,
485
- moveToPreviousMonth: $,
486
- moveToPreviousYear: y,
489
+ moveToNextWeek: r,
490
+ moveToFirstDayOfWeek: i,
491
+ moveToLastDayOfWeek: y,
492
+ moveToPreviousMonth: L,
493
+ moveToPreviousYear: h,
487
494
  moveToNextMonth: v,
488
495
  moveToNextYear: E,
489
- focusOnDate: L
490
- } = xe(
496
+ focusOnDate: Y
497
+ } = Ze(
491
498
  {
492
499
  currentSelectedDate: P(e, "startDate"),
493
500
  month: P(e, "month"),
494
- isDateDisabled: r.value,
501
+ isDateDisabled: s.value,
495
502
  firstDayOfWeek: e.firstDayOfWeek
496
503
  },
497
504
  t
498
505
  ), le = S(
499
506
  () => Object.values(X).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : X.MONDAY
500
507
  ), ve = S(() => ["first", "unique"].includes(e.position)), b = S(() => ["last", "unique"].includes(e.position)), C = S(
501
- () => pe(n.value, { month: "long", year: "numeric" }).format(i.value)
502
- ), Y = S(
508
+ () => _e(n.value, { month: "long", year: "numeric" }).format(u.value)
509
+ ), $ = S(
503
510
  () => new Array(7).fill(/* @__PURE__ */ new Date()).map((I, U) => {
504
- const ue = Dt(I, le.value + U);
505
- return pe(n.value, { weekday: "short" }).format(ue);
511
+ const ie = Dt(I, le.value + U);
512
+ return _e(n.value, { weekday: "short" }).format(ie);
506
513
  })
507
514
  ), q = S(() => {
508
515
  const I = [], U = ge(e.month);
509
- let ue = I[I.push([]) - 1];
516
+ let ie = I[I.push([]) - 1];
510
517
  for (; U.getMonth() === e.month.getMonth(); )
511
- U.getDay() - le.value === 0 && ue.length > 0 && (ue = I[I.push([]) - 1]), ue.push(ee(U)), U.setDate(U.getDate() + 1);
518
+ U.getDay() - le.value === 0 && ie.length > 0 && (ie = I[I.push([]) - 1]), ie.push(ee(U)), U.setDate(U.getDate() + 1);
512
519
  return I;
513
520
  });
514
521
  return {
515
522
  // Refs
516
523
  addDayRef: D,
517
524
  // Values
518
- computedIsDateDisabled: r,
519
- daysOfWeek: Y,
525
+ computedIsDateDisabled: s,
526
+ daysOfWeek: $,
520
527
  weeksOfMonth: q,
521
528
  formattedMonthDate: C,
522
529
  shouldShowNextMonthButton: b,
@@ -549,37 +556,37 @@ const xe = ({ currentSelectedDate: e, month: t, isDateDisabled: n, firstDayOfWee
549
556
  "keydown:arrow-right": g,
550
557
  "keydown:arrow-left": f,
551
558
  "keydown:arrow-up": c,
552
- "keydown:arrow-down": s,
553
- "keydown:home": u,
554
- "keydown:end": h,
555
- "keydown:page-up": $,
556
- "keydown:shift-page-up": y,
559
+ "keydown:arrow-down": r,
560
+ "keydown:home": i,
561
+ "keydown:end": y,
562
+ "keydown:page-up": L,
563
+ "keydown:shift-page-up": h,
557
564
  "keydown:page-down": v,
558
565
  "keydown:shift-page-down": E
559
566
  },
560
567
  // Exposed methods
561
- focusOnDate: L,
568
+ focusOnDate: Y,
562
569
  moveToNextDay: g,
563
570
  moveToPreviousDay: f,
564
571
  moveToPreviousWeek: c,
565
- moveToNextWeek: s,
566
- moveToFirstDayOfWeek: u,
567
- moveToLastDayOfWeek: h,
568
- moveToPreviousMonth: $,
569
- moveToPreviousYear: y,
572
+ moveToNextWeek: r,
573
+ moveToFirstDayOfWeek: i,
574
+ moveToLastDayOfWeek: y,
575
+ moveToPreviousMonth: L,
576
+ moveToPreviousYear: h,
570
577
  moveToNextMonth: v,
571
578
  moveToNextYear: E,
572
579
  // Translations
573
580
  t: a
574
581
  };
575
582
  }
576
- }), It = { class: "b-calendar-month__month-selector" }, St = { class: "b-calendar-month__previous" }, Tt = { class: "b-calendar-month__next" }, kt = ["aria-labelledby"], wt = { class: "b-calendar-month__week-header" }, _t = ["colspan"];
577
- function pt(e, t, n, a, o, r) {
578
- const l = te("chevron-left-icon"), i = te("bento-button"), D = te("bento-typography"), N = te("chevron-right-icon"), m = te("calendar-month-day"), g = nt("bento-keyboard-navigation-directive");
579
- return He((O(), w("div", We({ class: "b-calendar-month" }, Ve(e.listeners, !0)), [
580
- p("div", It, [
581
- p("div", St, [
582
- e.shouldShowPreviousMonthButton ? (O(), Z(i, {
583
+ }), It = { class: "b-calendar-month__month-selector" }, St = { class: "b-calendar-month__previous" }, Tt = { class: "b-calendar-month__next" }, kt = ["aria-labelledby"], pt = { class: "b-calendar-month__week-header" }, wt = ["colspan"];
584
+ function _t(e, t, n, a, o, s) {
585
+ const l = te("chevron-left-icon"), u = te("bento-button"), D = te("bento-typography"), N = te("chevron-right-icon"), m = te("calendar-month-day"), g = nt("bento-keyboard-navigation-directive");
586
+ return He((O(), p("div", We({ class: "b-calendar-month" }, Ve(e.listeners, !0)), [
587
+ _("div", It, [
588
+ _("div", St, [
589
+ e.shouldShowPreviousMonthButton ? (O(), J(u, {
583
590
  key: 0,
584
591
  variant: "tertiary",
585
592
  onClick: t[0] || (t[0] = (f) => e.moveToPreviousMonth(f, !0))
@@ -603,8 +610,8 @@ function pt(e, t, n, a, o, r) {
603
610
  ]),
604
611
  _: 1
605
612
  }, 8, ["id"]),
606
- p("div", Tt, [
607
- e.shouldShowNextMonthButton ? (O(), Z(i, {
613
+ _("div", Tt, [
614
+ e.shouldShowNextMonthButton ? (O(), J(u, {
608
615
  key: 0,
609
616
  variant: "tertiary",
610
617
  onClick: t[1] || (t[1] = (f) => e.moveToNextMonth(f, !0))
@@ -618,14 +625,14 @@ function pt(e, t, n, a, o, r) {
618
625
  })) : ae("", !0)
619
626
  ])
620
627
  ]),
621
- p("table", {
628
+ _("table", {
622
629
  class: "b-calendar-month__month-container",
623
630
  role: "grid",
624
631
  "aria-labelledby": e.monthLabelId
625
632
  }, [
626
- p("thead", null, [
627
- p("tr", wt, [
628
- (O(!0), w(z, null, J(e.daysOfWeek, (f, c) => (O(), w("th", {
633
+ _("thead", null, [
634
+ _("tr", pt, [
635
+ (O(!0), p(Q, null, z(e.daysOfWeek, (f, c) => (O(), p("th", {
629
636
  key: c,
630
637
  class: "b-calendar-month__day-of-week",
631
638
  scope: "col"
@@ -643,34 +650,34 @@ function pt(e, t, n, a, o, r) {
643
650
  ]))), 128))
644
651
  ])
645
652
  ]),
646
- p("tbody", null, [
647
- (O(!0), w(z, null, J(e.weeksOfMonth, (f, c) => (O(), w("tr", { key: c }, [
648
- c === 0 && f.length < 7 ? (O(), w("td", {
653
+ _("tbody", null, [
654
+ (O(!0), p(Q, null, z(e.weeksOfMonth, (f, c) => (O(), p("tr", { key: c }, [
655
+ c === 0 && f.length < 7 ? (O(), p("td", {
649
656
  key: 0,
650
657
  colspan: 7 - f.length
651
- }, null, 8, _t)) : ae("", !0),
652
- (O(!0), w(z, null, J(f, (s, u) => (O(), Z(m, {
658
+ }, null, 8, wt)) : ae("", !0),
659
+ (O(!0), p(Q, null, z(f, (r, i) => (O(), J(m, {
653
660
  ref_for: !0,
654
- ref: e.addDayRef(s),
655
- key: `calendar-day-${u}`,
656
- day: s,
657
- disabled: e.computedIsDateDisabled(s),
658
- selected: e.isSelectedDate(s),
659
- variant: e.dayVariant(s),
661
+ ref: e.addDayRef(r),
662
+ key: `calendar-day-${i}`,
663
+ day: r,
664
+ disabled: e.computedIsDateDisabled(r),
665
+ selected: e.isSelectedDate(r),
666
+ variant: e.dayVariant(r),
660
667
  onClick: e.onDayClicked,
661
- onMouseover: (h) => e.$emit(e.CalendarMonthEvent.MOUSE_OVER, s),
668
+ onMouseover: (y) => e.$emit(e.CalendarMonthEvent.MOUSE_OVER, r),
662
669
  onKeyup: [
663
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["up", "native"]),
664
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["down", "native"]),
665
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["left", "native"]),
666
- ne((h) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, s), ["right", "native"])
670
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["up", "native"]),
671
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["down", "native"]),
672
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["left", "native"]),
673
+ ne((y) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, r), ["right", "native"])
667
674
  ]
668
675
  }, null, 8, ["day", "disabled", "selected", "variant", "onClick", "onMouseover", "onKeyup"]))), 128))
669
676
  ]))), 128)),
670
- e.weeksOfMonth?.length < 6 ? (O(!0), w(z, { key: 0 }, J(6 - e.weeksOfMonth?.length, (f) => (O(), w("tr", {
677
+ e.weeksOfMonth?.length < 6 ? (O(!0), p(Q, { key: 0 }, z(6 - e.weeksOfMonth?.length, (f) => (O(), p("tr", {
671
678
  key: `calendar month filler row ${f}`
672
679
  }, t[2] || (t[2] = [
673
- p("td", {
680
+ _("td", {
674
681
  "aria-hidden": "true",
675
682
  class: "b-calendar-month__empty-cell-filler",
676
683
  colspan: 7
@@ -682,10 +689,10 @@ function pt(e, t, n, a, o, r) {
682
689
  [g]
683
690
  ]);
684
691
  }
685
- const Ue = /* @__PURE__ */ De(Ot, [["render", pt], ["__scopeId", "data-v-6417cfb0"]]);
686
- var B = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(B || {}), H = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_MONTH = "current-month", e.DISABLED = "disabled", e))(H || {}), $e = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))($e || {});
687
- const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__wrapper" }, Yt = {}, At = /* @__PURE__ */ fe({
688
- ...Yt,
692
+ const Ue = /* @__PURE__ */ De(Ot, [["render", _t], ["__scopeId", "data-v-6417cfb0"]]);
693
+ var B = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(B || {}), H = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e.SELECTED = "selected", e.UNSELECTED = "unselected", e.CURRENT_MONTH = "current-month", e.DISABLED = "disabled", e))(H || {}), Le = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(Le || {});
694
+ const Yt = ["tabindex", "aria-selected"], Lt = { class: "b-calendar-year-month__wrapper" }, $t = {}, At = /* @__PURE__ */ fe({
695
+ ...$t,
689
696
  __name: "calendar-year-month",
690
697
  props: {
691
698
  month: {},
@@ -696,9 +703,9 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
696
703
  emits: ["click", "mouseover"],
697
704
  setup(e, { emit: t }) {
698
705
  const n = e, a = t, o = S(() => {
699
- const i = /* @__PURE__ */ new Date();
700
- return n.month.getMonth() === i.getMonth() && n.month.getFullYear() === i.getFullYear();
701
- }), r = S(() => ({
706
+ const u = /* @__PURE__ */ new Date();
707
+ return n.month.getMonth() === u.getMonth() && n.month.getFullYear() === u.getFullYear();
708
+ }), s = S(() => ({
702
709
  // Variants
703
710
  [`b-calendar-year-month--${H.BEGINNING}`]: n.variant === B.BEGINNING,
704
711
  [`b-calendar-year-month--${H.MIDDLE}`]: n.variant === B.MIDDLE,
@@ -711,30 +718,37 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
711
718
  [`b-calendar-year-month--${H.CURRENT_MONTH}`]: o.value,
712
719
  // Disabled
713
720
  [`b-calendar-year-month--${H.DISABLED}`]: n.disabled
714
- })), l = (i, D) => {
715
- n.disabled ? (i.preventDefault(), i.stopPropagation()) : a($e.CLICK, D, n.month);
721
+ })), l = (u, D) => {
722
+ n.disabled ? (u.preventDefault(), u.stopPropagation()) : a(Le.CLICK, D, n.month);
716
723
  };
717
- return (i, D) => (O(), w("td", {
718
- class: Ye(["b-calendar-year-month", r.value]),
719
- tabindex: i.selected ? "0" : "-1",
720
- "aria-selected": i.selected ? i.selected : void 0,
721
- onClick: D[0] || (D[0] = (N) => l(N, i.month)),
722
- onMouseover: D[1] || (D[1] = (N) => a(_($e).MOUSE_OVER)),
723
- onKeydown: D[2] || (D[2] = ne((N) => l(N, i.month), ["space", "enter"]))
724
+ return (u, D) => (O(), p("td", {
725
+ class: $e(["b-calendar-year-month", s.value]),
726
+ tabindex: u.selected ? "0" : "-1",
727
+ "aria-selected": u.selected ? u.selected : void 0,
728
+ onClick: D[0] || (D[0] = (N) => l(N, u.month)),
729
+ onMouseover: D[1] || (D[1] = (N) => a(w(Le).MOUSE_OVER)),
730
+ onKeydown: D[2] || (D[2] = ne((N) => l(N, u.month), ["space", "enter"]))
724
731
  }, [
725
- p("div", $t, [
726
- W(_(rt), {
732
+ _("div", Lt, [
733
+ W(w(st), {
727
734
  class: "b-calendar-year-month__label",
728
- date: i.month,
729
- format: _(lt).SHORT_MONTH
735
+ date: u.month,
736
+ format: w(lt).SHORT_MONTH
730
737
  }, null, 8, ["date", "format"])
731
738
  ])
732
- ], 42, Lt));
739
+ ], 42, Yt));
733
740
  }
734
741
  }), Rt = /* @__PURE__ */ De(At, [["__scopeId", "data-v-ad9a13f2"]]), et = {
742
+ "de-DE": { nextYear: "Nächstes Jahr", previousYear: "Vorjahr" },
743
+ "en-GB": { nextYear: "Next year", previousYear: "Previous year" },
735
744
  "en-US": { nextYear: "Next year", previousYear: "Previous year" },
745
+ "es-ES": { nextYear: "Año siguiente", previousYear: "Año anterior" },
746
+ "es-MX": { nextYear: "Año siguiente", previousYear: "Año anterior" },
747
+ "fr-FR": { nextYear: "Année suivante", previousYear: "Année précédente" },
748
+ "it-IT": { nextYear: "Il prossimo anno", previousYear: "Anno precedente" },
736
749
  "ja-JP": { nextYear: "来年", previousYear: "前年" },
737
- "pt-BR": { nextYear: "Ano seguinte", previousYear: "Ano anterior" }
750
+ "pt-BR": { nextYear: "No próximo ano", previousYear: "Ano anterior" },
751
+ "zh-CN": { nextYear: "明年", previousYear: "上年度" }
738
752
  }, Ft = { class: "b-calendar-year__year-selector" }, Pt = { class: "b-calendar-year__previous" }, Bt = { class: "b-calendar-year__next" }, Ct = ["aria-labelledby"], Gt = {
739
753
  i18n: { messages: et }
740
754
  }, Ut = /* @__PURE__ */ fe({
@@ -752,67 +766,67 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
752
766
  },
753
767
  emits: ["input", "mouseover", "nextMonth", "previousMonth"],
754
768
  setup(e, { expose: t, emit: n }) {
755
- const a = qe("bento-date-picker-year-label"), o = e, r = n, { t: l } = Re({ messages: et }), i = (b) => o.min && b < o.min || o.max && b > o.max || o.isDateDisabled?.(b), D = S(() => ["first", "unique"].includes(o.position)), N = S(() => ["last", "unique"].includes(o.position)), {
769
+ const a = qe("bento-date-picker-year-label"), o = e, s = n, { t: l } = Re({ messages: et }), u = (b) => o.min && b < o.min || o.max && b > o.max || o.isDateDisabled?.(b), D = S(() => ["first", "unique"].includes(o.position)), N = S(() => ["last", "unique"].includes(o.position)), {
756
770
  internalDate: m,
757
771
  // Calendar refs
758
772
  addDayRef: g,
759
773
  // Day navigation
760
774
  moveToPreviousMonth: f,
761
775
  moveToPreviousYear: c,
762
- moveToNextMonth: s,
763
- moveToNextYear: u,
764
- moveToFirstMonthOfYear: h,
765
- moveToLastMonthOfYear: $,
766
- focusOnDate: y
767
- } = xe(
776
+ moveToNextMonth: r,
777
+ moveToNextYear: i,
778
+ moveToFirstMonthOfYear: y,
779
+ moveToLastMonthOfYear: L,
780
+ focusOnDate: h
781
+ } = Ze(
768
782
  {
769
783
  currentSelectedDate: P(o, "startDate"),
770
784
  month: P(o, "year"),
771
- isDateDisabled: i
785
+ isDateDisabled: u
772
786
  },
773
- r
787
+ s
774
788
  );
775
- t({ focusOnDate: y });
789
+ t({ focusOnDate: h });
776
790
  const v = S(() => {
777
791
  const b = [];
778
792
  let C = 0;
779
- for (let Y = 0; Y < 3; Y++) {
793
+ for (let $ = 0; $ < 3; $++) {
780
794
  const q = [];
781
795
  for (let A = 0; A < 4; A++)
782
796
  q.push(new Date(o.year.getFullYear(), C++, 1));
783
797
  b.push(q);
784
798
  }
785
799
  return b;
786
- }), E = (b) => !o.isRange || ye(o.startDate, o.endDate) ? B.SINGLE : o.startDate && ye(o.startDate, b) ? B.BEGINNING : o.endDate && ye(o.endDate, b) ? B.END : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }) ? B.MIDDLE : null, L = (b) => m.value && ye(m.value, b) ? !0 : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }), le = (b) => {
787
- r("input", b);
800
+ }), E = (b) => !o.isRange || he(o.startDate, o.endDate) ? B.SINGLE : o.startDate && he(o.startDate, b) ? B.BEGINNING : o.endDate && he(o.endDate, b) ? B.END : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }) ? B.MIDDLE : null, Y = (b) => m.value && he(m.value, b) ? !0 : o.startDate && o.endDate && be(b, { start: o.startDate, end: o.endDate }), le = (b) => {
801
+ s("input", b);
788
802
  }, ve = o.isRange ? {} : {
789
- "keydown:arrow-right": s,
803
+ "keydown:arrow-right": r,
790
804
  "keydown:arrow-left": f,
791
805
  "keydown:arrow-up": (b) => f(b, !1, 4),
792
- "keydown:arrow-down": (b) => s(b, !1, 4),
793
- "keydown:home": h,
794
- "keydown:end": $,
806
+ "keydown:arrow-down": (b) => r(b, !1, 4),
807
+ "keydown:home": y,
808
+ "keydown:end": L,
795
809
  "keydown:page-up": c,
796
- "keydown:page-down": u
810
+ "keydown:page-down": i
797
811
  };
798
- return (b, C) => He((O(), w("div", We({ class: "b-calendar-year" }, Ve(_(ve), !0)), [
799
- p("div", Ft, [
800
- p("div", Pt, [
801
- D.value ? (O(), Z(we, {
812
+ return (b, C) => He((O(), p("div", We({ class: "b-calendar-year" }, Ve(w(ve), !0)), [
813
+ _("div", Ft, [
814
+ _("div", Pt, [
815
+ D.value ? (O(), J(pe, {
802
816
  key: 0,
803
817
  variant: "tertiary",
804
- onClick: C[0] || (C[0] = (Y) => _(c)(Y, !0))
818
+ onClick: C[0] || (C[0] = ($) => w(c)($, !0))
805
819
  }, {
806
820
  iconLeft: V(() => [
807
- W(_(Xe), {
808
- "svg-title": _(l)("previousYear")
821
+ W(w(Xe), {
822
+ "svg-title": w(l)("previousYear")
809
823
  }, null, 8, ["svg-title"])
810
824
  ]),
811
825
  _: 1
812
826
  })) : ae("", !0)
813
827
  ]),
814
- W(_(Ae), {
815
- id: _(a),
828
+ W(w(Ae), {
829
+ id: w(a),
816
830
  el: "h2",
817
831
  variant: "title",
818
832
  "aria-live": "polite"
@@ -822,44 +836,44 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
822
836
  ]),
823
837
  _: 1
824
838
  }, 8, ["id"]),
825
- p("div", Bt, [
826
- N.value ? (O(), Z(we, {
839
+ _("div", Bt, [
840
+ N.value ? (O(), J(pe, {
827
841
  key: 0,
828
842
  variant: "tertiary",
829
- onClick: C[1] || (C[1] = (Y) => _(u)(Y, !0))
843
+ onClick: C[1] || (C[1] = ($) => w(i)($, !0))
830
844
  }, {
831
845
  iconLeft: V(() => [
832
- W(_(Je), {
833
- "svg-title": _(l)("nextYear")
846
+ W(w(ze), {
847
+ "svg-title": w(l)("nextYear")
834
848
  }, null, 8, ["svg-title"])
835
849
  ]),
836
850
  _: 1
837
851
  })) : ae("", !0)
838
852
  ])
839
853
  ]),
840
- p("table", {
854
+ _("table", {
841
855
  class: "b-calendar-year__year-container",
842
856
  role: "grid",
843
- "aria-labelledby": _(a)
857
+ "aria-labelledby": w(a)
844
858
  }, [
845
- p("tbody", null, [
846
- (O(!0), w(z, null, J(v.value, (Y, q) => (O(), w("tr", { key: q }, [
847
- (O(!0), w(z, null, J(Y, (A, d) => (O(), Z(Rt, {
859
+ _("tbody", null, [
860
+ (O(!0), p(Q, null, z(v.value, ($, q) => (O(), p("tr", { key: q }, [
861
+ (O(!0), p(Q, null, z($, (A, d) => (O(), J(Rt, {
848
862
  ref_for: !0,
849
- ref: _(g)(A),
863
+ ref: w(g)(A),
850
864
  key: `calendar-month-${d}`,
851
865
  month: A,
852
- disabled: i(A),
853
- selected: L(A),
866
+ disabled: u(A),
867
+ selected: Y(A),
854
868
  variant: E(A),
855
869
  onClick: le,
856
- onMouseover: (M) => r("mouseover", A)
870
+ onMouseover: (M) => s("mouseover", A)
857
871
  }, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
858
872
  ]))), 128))
859
873
  ])
860
874
  ], 8, Ct)
861
875
  ], 16)), [
862
- [_(Qe)]
876
+ [w(xe)]
863
877
  ]);
864
878
  }
865
879
  }), je = /* @__PURE__ */ De(Ut, [["__scopeId", "data-v-5ec13be4"]]), jt = ({ selectedDate: e }, t) => {
@@ -867,7 +881,7 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
867
881
  startDate: null,
868
882
  endDate: null
869
883
  });
870
- return se(
884
+ return re(
871
885
  () => e.value,
872
886
  () => {
873
887
  n.startDate = e.value, n.endDate = void 0;
@@ -885,127 +899,127 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
885
899
  };
886
900
  }, Ht = (e) => {
887
901
  const t = (m, g, f, c) => {
888
- let s = he(m, { weekStartsOn: e }), u = Me(g || m, { weekStartsOn: e });
889
- const h = f && s < f, $ = c && u > c;
890
- return h && (s = he(f, { weekStartsOn: e })), $ && (u = Me(c, { weekStartsOn: e })), s > u && (h ? u = Me(s, { weekStartsOn: e }) : s = he(u, { weekStartsOn: e })), { startDate: s, endDate: u };
902
+ let r = ye(m, { weekStartsOn: e }), i = Me(g || m, { weekStartsOn: e });
903
+ const y = f && r < f, L = c && i > c;
904
+ return y && (r = ye(f, { weekStartsOn: e })), L && (i = Me(c, { weekStartsOn: e })), r > i && (y ? i = Me(r, { weekStartsOn: e }) : r = ye(i, { weekStartsOn: e })), { startDate: r, endDate: i };
891
905
  }, n = (m, g, f, c) => {
892
- let s = ge(m), u = Ie(g || m);
893
- const h = f && s < f, $ = c && u > c;
894
- return h && (s = ge(f)), $ && (u = Ie(c)), s > u && (h ? u = Ie(s) : s = ge(u)), { startDate: s, endDate: u };
906
+ let r = ge(m), i = Ie(g || m);
907
+ const y = f && r < f, L = c && i > c;
908
+ return y && (r = ge(f)), L && (i = Ie(c)), r > i && (y ? i = Ie(r) : r = ge(i)), { startDate: r, endDate: i };
895
909
  }, a = (m, g, f, c) => {
896
- let s = Se(m), u = Te(g || m);
897
- const h = f instanceof Date && s < f, $ = c instanceof Date && u > c;
898
- return h && (s = Se(f)), $ && (u = Te(c)), s > u && (h ? u = Te(s) : s = Se(u)), { startDate: s, endDate: u };
910
+ let r = Se(m), i = Te(g || m);
911
+ const y = f instanceof Date && r < f, L = c instanceof Date && i > c;
912
+ return y && (r = Se(f)), L && (i = Te(c)), r > i && (y ? i = Te(r) : r = Se(i)), { startDate: r, endDate: i };
899
913
  };
900
914
  return {
901
915
  adjustDateForWeekly: t,
902
916
  adjustDateForMonthly: n,
903
917
  adjustDateForQuarterly: a,
904
918
  adjustStartDateInputForWeekly: (m, g, f, c) => {
905
- const { startDate: s } = t(new Date(m), null, f, c);
906
- return g(s);
919
+ const { startDate: r } = t(new Date(m), null, f, c);
920
+ return g(r);
907
921
  },
908
922
  adjustEndDateInputForWeekly: (m, g, f, c) => {
909
- const { endDate: s } = t(new Date(m), null, f, c);
910
- return g(s);
923
+ const { endDate: r } = t(new Date(m), null, f, c);
924
+ return g(r);
911
925
  },
912
926
  adjustStartDateInputForMonthly: (m, g, f, c) => {
913
- const { startDate: s } = n(new Date(m), null, f, c);
914
- return g(s);
927
+ const { startDate: r } = n(new Date(m), null, f, c);
928
+ return g(r);
915
929
  },
916
930
  adjustEndDateInputForMonthly: (m, g, f, c) => {
917
- const { endDate: s } = n(new Date(m), null, f, c);
918
- return g(s);
931
+ const { endDate: r } = n(new Date(m), null, f, c);
932
+ return g(r);
919
933
  },
920
934
  adjustStartDateInputForQuarterly: (m, g, f, c) => {
921
- const { startDate: s } = a(new Date(m), null, f, c);
922
- return g(s);
935
+ const { startDate: r } = a(new Date(m), null, f, c);
936
+ return g(r);
923
937
  },
924
938
  adjustEndDateInputForQuarterly: (m, g, f, c) => {
925
- const { endDate: s } = a(new Date(m), null, f, c);
926
- return g(s);
939
+ const { endDate: r } = a(new Date(m), null, f, c);
940
+ return g(r);
927
941
  }
928
942
  };
929
- }, Wt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: r, max: l }, i) => {
943
+ }, Wt = ({ selectedDate: e, isDateDisabled: t, maxRange: n, granularity: a, firstDayOfWeek: o, min: s, max: l }, u) => {
930
944
  const { adjustDateForWeekly: m, adjustDateForMonthly: g, adjustDateForQuarterly: f } = Ht(o), c = Ke({
931
945
  startDate: null,
932
946
  endDate: null
933
- }), s = Q(null);
934
- se(
947
+ }), r = x(null);
948
+ re(
935
949
  () => e.value,
936
950
  () => {
937
- let { startDate: y = null, endDate: v = null } = e.value || {};
938
- y && (y = ee(y)), v && (v = ee(v)), !(y && t && t(y) || v && t && t(v) || y && v && ct(y, v)) && (c.startDate = y, c.endDate = v);
951
+ let { startDate: h = null, endDate: v = null } = e.value || {};
952
+ h && (h = ee(h)), v && (v = ee(v)), !(h && t && t(h) || v && t && t(v) || h && v && ct(h, v)) && (c.startDate = h, c.endDate = v);
939
953
  },
940
954
  { immediate: !0, deep: !0 }
941
955
  );
942
- const u = (y, v, E) => {
943
- if (c.startDate = y, c.endDate = v, n.value) {
944
- const L = it(v, y) - n.value;
945
- L > 0 && (E < 1 ? (c.startDate = y, c.endDate = _e(v, L)) : (c.startDate = ce(y, L), c.endDate = v));
956
+ const i = (h, v, E) => {
957
+ if (c.startDate = h, c.endDate = v, n.value) {
958
+ const Y = ut(v, h) - n.value;
959
+ Y > 0 && (E < 1 ? (c.startDate = h, c.endDate = we(v, Y)) : (c.startDate = ce(h, Y), c.endDate = v));
946
960
  }
947
- i(K.START_DATE_SELECTED, c.startDate), i(K.END_DATE_SELECTED, c.endDate);
948
- }, h = (y) => {
949
- if (!(!s.value || t && t(y)))
950
- if (ft(y, s.value)) {
961
+ u(K.START_DATE_SELECTED, c.startDate), u(K.END_DATE_SELECTED, c.endDate);
962
+ }, y = (h) => {
963
+ if (!(!r.value || t && t(h)))
964
+ if (ft(h, r.value)) {
951
965
  if (a?.value?.type === "weekly") {
952
- const { startDate: v, endDate: E } = m(y, s.value, r.value, l.value);
953
- u(v, E, -1);
966
+ const { startDate: v, endDate: E } = m(h, r.value, s.value, l.value);
967
+ i(v, E, -1);
954
968
  return;
955
969
  }
956
970
  if (a?.value?.type === "monthly") {
957
- const { startDate: v, endDate: E } = g(y, s.value, r.value, l.value);
958
- u(v, E, -1);
971
+ const { startDate: v, endDate: E } = g(h, r.value, s.value, l.value);
972
+ i(v, E, -1);
959
973
  return;
960
974
  }
961
975
  if (a?.value?.type === "quarterly") {
962
- const { startDate: v, endDate: E } = f(y, s.value, r.value, l.value);
963
- u(v, E, -1);
976
+ const { startDate: v, endDate: E } = f(h, r.value, s.value, l.value);
977
+ i(v, E, -1);
964
978
  return;
965
979
  }
966
- u(y, s.value, -1);
980
+ i(h, r.value, -1);
967
981
  } else {
968
982
  if (a?.value?.type === "weekly") {
969
- const { startDate: v, endDate: E } = m(s.value, y, r.value, l.value);
970
- u(v, E, 1);
983
+ const { startDate: v, endDate: E } = m(r.value, h, s.value, l.value);
984
+ i(v, E, 1);
971
985
  return;
972
986
  }
973
987
  if (a?.value?.type === "monthly") {
974
- const { startDate: v, endDate: E } = g(s.value, y, r.value, l.value);
975
- u(v, E, 1);
988
+ const { startDate: v, endDate: E } = g(r.value, h, s.value, l.value);
989
+ i(v, E, 1);
976
990
  return;
977
991
  }
978
992
  if (a?.value?.type === "quarterly") {
979
- const { startDate: v, endDate: E } = f(s.value, y, r.value, l.value);
980
- u(v, E, 1);
993
+ const { startDate: v, endDate: E } = f(r.value, h, s.value, l.value);
994
+ i(v, E, 1);
981
995
  return;
982
996
  }
983
- u(s.value, y, 1);
997
+ i(r.value, h, 1);
984
998
  }
985
999
  };
986
1000
  return {
987
1001
  internalValue: c,
988
- onDateInput: (y) => {
989
- if (s.value)
990
- s.value = null, i(K.INPUT, c);
1002
+ onDateInput: (h) => {
1003
+ if (r.value)
1004
+ r.value = null, u(K.INPUT, c);
991
1005
  else {
992
- let v = y;
1006
+ let v = h;
993
1007
  if (a?.value?.type === "weekly") {
994
- const { startDate: E, endDate: L } = m(y);
995
- v = E, u(v, L);
1008
+ const { startDate: E, endDate: Y } = m(h);
1009
+ v = E, i(v, Y);
996
1010
  }
997
1011
  if (a?.value?.type === "monthly") {
998
- const { startDate: E, endDate: L } = g(y);
999
- v = E, u(v, L);
1012
+ const { startDate: E, endDate: Y } = g(h);
1013
+ v = E, i(v, Y);
1000
1014
  }
1001
1015
  if (a?.value?.type === "quarterly") {
1002
- const { startDate: E, endDate: L } = f(y);
1003
- v = E, u(v, L);
1016
+ const { startDate: E, endDate: Y } = f(h);
1017
+ v = E, i(v, Y);
1004
1018
  }
1005
- s.value = v, h(v);
1019
+ r.value = v, y(v);
1006
1020
  }
1007
1021
  },
1008
- onMouseOver: h
1022
+ onMouseOver: y
1009
1023
  };
1010
1024
  }, Vt = fe({
1011
1025
  name: "calendar",
@@ -1077,29 +1091,29 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1077
1091
  variant: {
1078
1092
  type: String,
1079
1093
  default: "day",
1080
- validator: (e) => Object.values(Le).includes(e)
1094
+ validator: (e) => Object.values(Ye).includes(e)
1081
1095
  }
1082
1096
  },
1083
1097
  emit: [K.INPUT, K.START_DATE_SELECTED, K.END_DATE_SELECTED],
1084
1098
  setup(e, { emit: t }) {
1085
- const n = Q(null), a = Q();
1086
- se(
1099
+ const n = x(null), a = x();
1100
+ re(
1087
1101
  () => e.value,
1088
1102
  () => {
1089
1103
  if (e.isRange)
1090
1104
  a.value = e?.showEndDateOnOpen && e.value?.endDate ? e.value?.endDate : e.value?.startDate || /* @__PURE__ */ new Date();
1091
1105
  else {
1092
- const s = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1093
- a.value = e.value || s;
1106
+ const r = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1107
+ a.value = e.value || r;
1094
1108
  }
1095
1109
  },
1096
1110
  { immediate: !0, deep: !0 }
1097
1111
  );
1098
1112
  const o = S(
1099
- () => e.variant === Le.MONTH ? je : Ue
1100
- ), r = S(() => ({
1113
+ () => e.variant === Ye.MONTH ? je : Ue
1114
+ ), s = S(() => ({
1101
1115
  "b-calendar__range": e.isRange
1102
- })), { internalValue: l, onDateInput: i, onMouseOver: D } = e.isRange ? Wt(
1116
+ })), { internalValue: l, onDateInput: u, onMouseOver: D } = e.isRange ? Wt(
1103
1117
  {
1104
1118
  selectedDate: P(e, "value"),
1105
1119
  isDateDisabled: e.isDateDisabled,
@@ -1116,12 +1130,12 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1116
1130
  firstDayOfWeek: e.firstDayOfWeek
1117
1131
  },
1118
1132
  t
1119
- ), N = (s) => e.numberOfMonths === 1 ? oe.UNIQUE : s === 0 ? oe.FIRST : s === e.numberOfMonths - 1 ? oe.LAST : oe.MIDDLE, m = S(() => (s) => {
1120
- const u = e?.showEndDateOnOpen && e.isRange ? de(a.value, e.numberOfMonths - 1) : a.value;
1121
- return x(u, s);
1122
- }), g = S(() => (s) => {
1123
- const u = e?.showEndDateOnOpen ? yt(a.value, e.numberOfMonths - 1) : a.value;
1124
- return Ze(u, s);
1133
+ ), N = (r) => e.numberOfMonths === 1 ? oe.UNIQUE : r === 0 ? oe.FIRST : r === e.numberOfMonths - 1 ? oe.LAST : oe.MIDDLE, m = S(() => (r) => {
1134
+ const i = e?.showEndDateOnOpen && e.isRange ? de(a.value, e.numberOfMonths - 1) : a.value;
1135
+ return Z(i, r);
1136
+ }), g = S(() => (r) => {
1137
+ const i = e?.showEndDateOnOpen ? ht(a.value, e.numberOfMonths - 1) : a.value;
1138
+ return Je(i, r);
1125
1139
  });
1126
1140
  return {
1127
1141
  // Refs
@@ -1129,37 +1143,37 @@ const Lt = ["tabindex", "aria-selected"], $t = { class: "b-calendar-year-month__
1129
1143
  // Values
1130
1144
  baseDate: a,
1131
1145
  calendarComponent: o,
1132
- conditionalClasses: r,
1146
+ conditionalClasses: s,
1133
1147
  internalValue: l,
1134
1148
  // Methods
1135
1149
  calculateOffsetMonth: m,
1136
1150
  calculateOffsetYear: g,
1137
1151
  calendarPosition: N,
1138
1152
  // Events
1139
- onDateInput: i,
1153
+ onDateInput: u,
1140
1154
  onMouseOver: D,
1141
- calculateNextMonths: (s = 1) => {
1142
- a.value = x(a.value, s);
1155
+ calculateNextMonths: (r = 1) => {
1156
+ a.value = Z(a.value, r);
1143
1157
  },
1144
- calculatePreviousMonths: (s = 1) => {
1145
- a.value = de(a.value, s);
1158
+ calculatePreviousMonths: (r = 1) => {
1159
+ a.value = de(a.value, r);
1146
1160
  }
1147
1161
  };
1148
1162
  }
1149
1163
  });
1150
- function Kt(e, t, n, a, o, r) {
1151
- return O(), w("div", {
1152
- class: Ye(["b-calendar", e.conditionalClasses])
1164
+ function Kt(e, t, n, a, o, s) {
1165
+ return O(), p("div", {
1166
+ class: $e(["b-calendar", e.conditionalClasses])
1153
1167
  }, [
1154
- (O(!0), w(z, null, J(e.numberOfMonths, (l, i) => (O(), Z(at(e.calendarComponent), {
1168
+ (O(!0), p(Q, null, z(e.numberOfMonths, (l, u) => (O(), J(at(e.calendarComponent), {
1155
1169
  ref_for: !0,
1156
1170
  ref: e.numberOfMonths === 1 ? "calendarRef" : null,
1157
- key: `calendar-${i}`,
1171
+ key: `calendar-${u}`,
1158
1172
  "first-day-of-week": e.firstDayOfWeek,
1159
1173
  "is-date-disabled": e.isDateDisabled,
1160
- month: e.calculateOffsetMonth(i),
1161
- year: e.calculateOffsetYear(i),
1162
- position: e.calendarPosition(i),
1174
+ month: e.calculateOffsetMonth(u),
1175
+ year: e.calculateOffsetYear(u),
1176
+ position: e.calendarPosition(u),
1163
1177
  min: e.min,
1164
1178
  max: e.max,
1165
1179
  "is-range": e.isRange,
@@ -1177,25 +1191,25 @@ function Kt(e, t, n, a, o, r) {
1177
1191
  const ln = /* @__PURE__ */ De(Vt, [["render", Kt], ["__scopeId", "data-v-0efc3efc"]]);
1178
1192
  export {
1179
1193
  X as C,
1180
- Le as a,
1194
+ Ye as a,
1181
1195
  ln as b,
1182
1196
  K as c,
1183
1197
  oe as d,
1184
- x as e,
1198
+ Z as e,
1185
1199
  Se as f,
1186
- pe as g,
1200
+ _e as g,
1187
1201
  ee as h,
1188
1202
  me as i,
1189
1203
  ce as j,
1190
1204
  Me as k,
1191
- _e as l,
1205
+ we as l,
1192
1206
  de as m,
1193
1207
  Te as n,
1194
- rn as o,
1208
+ sn as o,
1195
1209
  Dt as p,
1196
- ut as q,
1210
+ it as q,
1197
1211
  Ce as r,
1198
1212
  ge as s,
1199
1213
  Ht as u
1200
1214
  };
1201
- //# sourceMappingURL=calendar.DcCqkSNJ.js.map
1215
+ //# sourceMappingURL=calendar.CH-1Vgeb.js.map