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