@adyen/bento-vue2 1.83.1 → 1.84.1

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 (321) hide show
  1. package/README.md +5 -5
  2. package/dist/@types/index.d.ts +56 -5
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/ai-button.css +1 -1
  8. package/dist/assets/alert.css +1 -1
  9. package/dist/assets/avatar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions-with-menu.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/calendar.css +1 -1
  15. package/dist/assets/card.css +1 -1
  16. package/dist/assets/checkbox-group.css +1 -1
  17. package/dist/assets/checkbox-input.css +1 -1
  18. package/dist/assets/checkbox.css +1 -1
  19. package/dist/assets/chip.css +1 -1
  20. package/dist/assets/code-snippet.css +1 -1
  21. package/dist/assets/controls-group.css +1 -1
  22. package/dist/assets/country.css +1 -1
  23. package/dist/assets/currency.css +1 -1
  24. package/dist/assets/dashboard-section.css +1 -1
  25. package/dist/assets/dashed-underline.css +1 -1
  26. package/dist/assets/data-grid-template.css +1 -1
  27. package/dist/assets/data-grid.css +1 -1
  28. package/dist/assets/date-picker.css +1 -1
  29. package/dist/assets/date-range-picker.css +1 -1
  30. package/dist/assets/date.css +1 -1
  31. package/dist/assets/dialog-page.css +1 -1
  32. package/dist/assets/divider.css +1 -1
  33. package/dist/assets/dropdown-default-textbox.css +1 -1
  34. package/dist/assets/dropdown-tag.css +1 -1
  35. package/dist/assets/dropdown.css +1 -1
  36. package/dist/assets/empty-state.css +1 -1
  37. package/dist/assets/field-label.css +1 -1
  38. package/dist/assets/file-uploader.css +1 -1
  39. package/dist/assets/filter-bar.css +1 -1
  40. package/dist/assets/fixed-scroller.css +1 -1
  41. package/dist/assets/footer-actions.css +1 -1
  42. package/dist/assets/form-layout-title.css +1 -1
  43. package/dist/assets/grid-layout.css +1 -1
  44. package/dist/assets/header-meta.css +1 -1
  45. package/dist/assets/header-with-views.css +1 -1
  46. package/dist/assets/header.css +1 -1
  47. package/dist/assets/index.css +1 -1
  48. package/dist/assets/info-icon.css +1 -1
  49. package/dist/assets/input-field-password.css +1 -1
  50. package/dist/assets/input-field.css +1 -1
  51. package/dist/assets/inspector.css +1 -1
  52. package/dist/assets/layout-row.css +1 -1
  53. package/dist/assets/link.css +1 -1
  54. package/dist/assets/listbox-option-tag.css +1 -1
  55. package/dist/assets/loading-indicator.css +1 -1
  56. package/dist/assets/modal-fullscreen.css +1 -1
  57. package/dist/assets/pagination.css +1 -1
  58. package/dist/assets/payment-method.css +1 -1
  59. package/dist/assets/popper-container.css +1 -1
  60. package/dist/assets/promo-banner.css +1 -1
  61. package/dist/assets/radio-group.css +1 -1
  62. package/dist/assets/radio-input.css +1 -1
  63. package/dist/assets/rich-text-editor.css +1 -1
  64. package/dist/assets/secondary-nav.css +1 -1
  65. package/dist/assets/segmented-control.css +1 -1
  66. package/dist/assets/selection-card-group.css +1 -1
  67. package/dist/assets/sidepanel.css +1 -1
  68. package/dist/assets/status.css +1 -1
  69. package/dist/assets/step.css +1 -1
  70. package/dist/assets/structured-list-item.css +1 -1
  71. package/dist/assets/summary-grid.css +1 -1
  72. package/dist/assets/tab.css +1 -1
  73. package/dist/assets/tag.css +1 -1
  74. package/dist/assets/textarea.css +1 -1
  75. package/dist/assets/timeline-item.css +1 -1
  76. package/dist/assets/toast.css +1 -1
  77. package/dist/assets/toggle.css +1 -1
  78. package/dist/assets/tooltip.css +1 -1
  79. package/dist/assets/tutorial.css +1 -1
  80. package/dist/assets/use-cached-selected-values.css +1 -1
  81. package/dist/button.js +3 -3
  82. package/dist/card.js +1 -1
  83. package/dist/checkbox.js +2 -2
  84. package/dist/chunks/{action-bar.C2GnRugW.js → action-bar.y4tcdk7R.js} +8 -6
  85. package/dist/chunks/{action-bar.C2GnRugW.js.map → action-bar.y4tcdk7R.js.map} +1 -1
  86. package/dist/chunks/{ai-button.C9Uc6vBY.js → ai-button.BEy4Gly-.js} +2 -2
  87. package/dist/chunks/{ai-button.C9Uc6vBY.js.map → ai-button.BEy4Gly-.js.map} +1 -1
  88. package/dist/chunks/{alert.BlJBrD8c.js → alert.B3Pdp02a.js} +29 -21
  89. package/dist/chunks/{alert.BlJBrD8c.js.map → alert.B3Pdp02a.js.map} +1 -1
  90. package/dist/chunks/{base-modal.L39wmqVD.js → base-modal.KYkLKswF.js} +20 -18
  91. package/dist/chunks/{base-modal.L39wmqVD.js.map → base-modal.KYkLKswF.js.map} +1 -1
  92. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js → button-actions-with-menu.B5mKwc-F.js} +2 -2
  93. package/dist/chunks/{button-actions-with-menu.CQlsQa_f.js.map → button-actions-with-menu.B5mKwc-F.js.map} +1 -1
  94. package/dist/chunks/{button-actions.BWVq6OZQ.js → button-actions.D9n7MxWe.js} +270 -239
  95. package/dist/chunks/{button-actions.BWVq6OZQ.js.map → button-actions.D9n7MxWe.js.map} +1 -1
  96. package/dist/chunks/{button.C5GvPqe5.js → button.DIU6m9wD.js} +2 -2
  97. package/dist/chunks/{button.C5GvPqe5.js.map → button.DIU6m9wD.js.map} +1 -1
  98. package/dist/chunks/calendar.C8DpZ4Sr.js +1101 -0
  99. package/dist/chunks/calendar.C8DpZ4Sr.js.map +1 -0
  100. package/dist/chunks/{card.CktheSva.js → card.CLX0RGG6.js} +2 -2
  101. package/dist/chunks/{card.CktheSva.js.map → card.CLX0RGG6.js.map} +1 -1
  102. package/dist/chunks/{checkbox-group.BUXnMhO8.js → checkbox-group.BCnhjQie.js} +4 -4
  103. package/dist/chunks/{checkbox-group.BUXnMhO8.js.map → checkbox-group.BCnhjQie.js.map} +1 -1
  104. package/dist/chunks/{checkbox-input.B0NsfSNR.js → checkbox-input.08E9BNeF.js} +45 -40
  105. package/dist/chunks/checkbox-input.08E9BNeF.js.map +1 -0
  106. package/dist/chunks/{checkbox.DgPVHJnT.js → checkbox.CU5ierOq.js} +9 -9
  107. package/dist/chunks/{checkbox.DgPVHJnT.js.map → checkbox.CU5ierOq.js.map} +1 -1
  108. package/dist/chunks/{code-snippet.1_edHDaZ.js → code-snippet.9MwDHp50.js} +62 -60
  109. package/dist/chunks/code-snippet.9MwDHp50.js.map +1 -0
  110. package/dist/chunks/constructNow.DuaJst0D.js +8 -0
  111. package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
  112. package/dist/chunks/{controls-group.BqPxnEl3.js → controls-group.D4eW9DtP.js} +2 -2
  113. package/dist/chunks/{controls-group.BqPxnEl3.js.map → controls-group.D4eW9DtP.js.map} +1 -1
  114. package/dist/chunks/{copy.I2GvwCvt.js → copy.C0q7xgXs.js} +19 -17
  115. package/dist/chunks/{copy.I2GvwCvt.js.map → copy.C0q7xgXs.js.map} +1 -1
  116. package/dist/chunks/{country.BPrh4fXO.js → country.DyrDj95W.js} +2 -2
  117. package/dist/chunks/{country.BPrh4fXO.js.map → country.DyrDj95W.js.map} +1 -1
  118. package/dist/chunks/country.types.DaVCMxk-.js +773 -0
  119. package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
  120. package/dist/chunks/{dashboard-section.B4bHrFIl.js → dashboard-section.B83FdC0Z.js} +3 -3
  121. package/dist/chunks/{dashboard-section.B4bHrFIl.js.map → dashboard-section.B83FdC0Z.js.map} +1 -1
  122. package/dist/chunks/{dashed-underline.ByK3QxFJ.js → dashed-underline.DQGVy5T2.js} +2 -2
  123. package/dist/chunks/{dashed-underline.ByK3QxFJ.js.map → dashed-underline.DQGVy5T2.js.map} +1 -1
  124. package/dist/chunks/{data-grid-template.CvZbOkih.js → data-grid-template.BTEFoEwf.js} +4 -4
  125. package/dist/chunks/{data-grid-template.CvZbOkih.js.map → data-grid-template.BTEFoEwf.js.map} +1 -1
  126. package/dist/chunks/{data-grid.CsVqTwy0.js → data-grid.BPG1GPIl.js} +482 -398
  127. package/dist/chunks/{data-grid.CsVqTwy0.js.map → data-grid.BPG1GPIl.js.map} +1 -1
  128. package/dist/chunks/date-input.BbZqj10S.js +15 -0
  129. package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
  130. package/dist/chunks/{date-picker.-a_TXwjx.js → date-picker.CnsC_UMG.js} +78 -74
  131. package/dist/chunks/date-picker.CnsC_UMG.js.map +1 -0
  132. package/dist/chunks/date-range-picker.B6GSRjjK.js +1693 -0
  133. package/dist/chunks/date-range-picker.B6GSRjjK.js.map +1 -0
  134. package/dist/chunks/de.DvtL0g75.js +478 -0
  135. package/dist/chunks/de.DvtL0g75.js.map +1 -0
  136. package/dist/chunks/{dialog-page.Dn-WbcxU.js → dialog-page.QpRiNPyx.js} +29 -23
  137. package/dist/chunks/{dialog-page.Dn-WbcxU.js.map → dialog-page.QpRiNPyx.js.map} +1 -1
  138. package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
  139. package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
  140. package/dist/chunks/{dropdown-tag.AYIB0ec5.js → dropdown-tag.HBM0wrEV.js} +4 -4
  141. package/dist/chunks/{dropdown-tag.AYIB0ec5.js.map → dropdown-tag.HBM0wrEV.js.map} +1 -1
  142. package/dist/chunks/{dropdown.Dt0_ZUBn.js → dropdown.C2pXf8Li.js} +85 -81
  143. package/dist/chunks/{dropdown.Dt0_ZUBn.js.map → dropdown.C2pXf8Li.js.map} +1 -1
  144. package/dist/chunks/{empty-state.jVTWhJW7.js → empty-state.DpBnqAxu.js} +2 -2
  145. package/dist/chunks/{empty-state.jVTWhJW7.js.map → empty-state.DpBnqAxu.js.map} +1 -1
  146. package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
  147. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
  148. package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
  149. package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
  150. package/dist/chunks/es.bz0mzkMq.js +374 -0
  151. package/dist/chunks/es.bz0mzkMq.js.map +1 -0
  152. package/dist/chunks/es6.C1DXQV6f.js +12 -0
  153. package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
  154. package/dist/chunks/{field-label.BpeaR4Qc.js → field-label.CEkJnsiL.js} +5 -5
  155. package/dist/chunks/{field-label.BpeaR4Qc.js.map → field-label.CEkJnsiL.js.map} +1 -1
  156. package/dist/chunks/{file-uploader.G6mr6RuA.js → file-uploader.CnOqfuI-.js} +299 -253
  157. package/dist/chunks/{file-uploader.G6mr6RuA.js.map → file-uploader.CnOqfuI-.js.map} +1 -1
  158. package/dist/chunks/filter-bar.CnJAxz9B.js +2559 -0
  159. package/dist/chunks/filter-bar.CnJAxz9B.js.map +1 -0
  160. package/dist/chunks/fixed-scroller.Bp4-iO80.js +114 -0
  161. package/dist/chunks/{fixed-scroller.Ca1ujamx.js.map → fixed-scroller.Bp4-iO80.js.map} +1 -1
  162. package/dist/chunks/{footer-actions.3JdT8b0p.js → footer-actions.BOiN47Xd.js} +3 -3
  163. package/dist/chunks/{footer-actions.3JdT8b0p.js.map → footer-actions.BOiN47Xd.js.map} +1 -1
  164. package/dist/chunks/{form-layout-title.D9GJQfF9.js → form-layout-title.CdC1T4gs.js} +2 -2
  165. package/dist/chunks/{form-layout-title.D9GJQfF9.js.map → form-layout-title.CdC1T4gs.js.map} +1 -1
  166. package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
  167. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
  168. package/dist/chunks/fr.Dj7wEToe.js +47 -0
  169. package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
  170. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
  171. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
  172. package/dist/chunks/header-meta.D_oAu2S9.js +212 -0
  173. package/dist/chunks/header-meta.D_oAu2S9.js.map +1 -0
  174. package/dist/chunks/{header-with-views.lzT3kGpo.js → header-with-views.Dc9LUYNY.js} +379 -315
  175. package/dist/chunks/{header-with-views.lzT3kGpo.js.map → header-with-views.Dc9LUYNY.js.map} +1 -1
  176. package/dist/chunks/{header.D76MKCdS.js → header.BmtlQmPs.js} +3 -3
  177. package/dist/chunks/{header.D76MKCdS.js.map → header.BmtlQmPs.js.map} +1 -1
  178. package/dist/chunks/{input-field-password.C7zjyp7f.js → input-field-password.D23H_RvO.js} +48 -42
  179. package/dist/chunks/{input-field-password.C7zjyp7f.js.map → input-field-password.D23H_RvO.js.map} +1 -1
  180. package/dist/chunks/{input-field-phone-number.DwuTziSU.js → input-field-phone-number.Bvk2Pvec.js} +9 -3
  181. package/dist/chunks/{input-field-phone-number.DwuTziSU.js.map → input-field-phone-number.Bvk2Pvec.js.map} +1 -1
  182. package/dist/chunks/{input-field.DsT4AWXC.js → input-field.hf0_ALq0.js} +37 -29
  183. package/dist/chunks/{input-field.DsT4AWXC.js.map → input-field.hf0_ALq0.js.map} +1 -1
  184. package/dist/chunks/{inspector.2A5vWUou.js → inspector.C0iAxxoz.js} +40 -34
  185. package/dist/chunks/{inspector.2A5vWUou.js.map → inspector.C0iAxxoz.js.map} +1 -1
  186. package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
  187. package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
  188. package/dist/chunks/it.Oaj6BklL.js +392 -0
  189. package/dist/chunks/it.Oaj6BklL.js.map +1 -0
  190. package/dist/chunks/ja.Cm9tJMi2.js +367 -0
  191. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
  192. package/dist/chunks/ko.Ceaof6EP.js +348 -0
  193. package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
  194. package/dist/chunks/{link.BoDUCYmM.js → link.PsTSQjK3.js} +27 -21
  195. package/dist/chunks/{link.BoDUCYmM.js.map → link.PsTSQjK3.js.map} +1 -1
  196. package/dist/chunks/match.CMBZxEs9.js +302 -0
  197. package/dist/chunks/match.CMBZxEs9.js.map +1 -0
  198. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js → modal-fullscreen.B1gltlxA.js} +5 -5
  199. package/dist/chunks/{modal-fullscreen.CcvZBUoF.js.map → modal-fullscreen.B1gltlxA.js.map} +1 -1
  200. package/dist/chunks/{modal.6hFEbnZM.js → modal.e3EQ6Kex.js} +5 -5
  201. package/dist/chunks/{modal.6hFEbnZM.js.map → modal.e3EQ6Kex.js.map} +1 -1
  202. package/dist/chunks/nl.B6vCf2B9.js +327 -0
  203. package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
  204. package/dist/chunks/{pagination.BSyshRGH.js → pagination.BcFt2FqK.js} +6 -6
  205. package/dist/chunks/{pagination.BSyshRGH.js.map → pagination.BcFt2FqK.js.map} +1 -1
  206. package/dist/chunks/{promo-banner.D3aG5wnp.js → promo-banner.yfBorKj7.js} +2 -2
  207. package/dist/chunks/{promo-banner.D3aG5wnp.js.map → promo-banner.yfBorKj7.js.map} +1 -1
  208. package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
  209. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
  210. package/dist/chunks/{radio-group.DTZwsfwW.js → radio-group.CtTnfkYg.js} +3 -3
  211. package/dist/chunks/{radio-group.DTZwsfwW.js.map → radio-group.CtTnfkYg.js.map} +1 -1
  212. package/dist/chunks/{rich-text-editor.B0ivi3UG.js → rich-text-editor.Dq2CFGOu.js} +5 -5
  213. package/dist/chunks/{rich-text-editor.B0ivi3UG.js.map → rich-text-editor.Dq2CFGOu.js.map} +1 -1
  214. package/dist/chunks/{search-bar.Bpk-PuYT.js → search-bar.B0SdQBnY.js} +3 -3
  215. package/dist/chunks/{search-bar.Bpk-PuYT.js.map → search-bar.B0SdQBnY.js.map} +1 -1
  216. package/dist/chunks/{secondary-nav.BGOYJrsB.js → secondary-nav.BPGpxd0p.js} +35 -29
  217. package/dist/chunks/{secondary-nav.BGOYJrsB.js.map → secondary-nav.BPGpxd0p.js.map} +1 -1
  218. package/dist/chunks/{selection-card-group.CLqWoLSN.js → selection-card-group.BryV14qP.js} +5 -5
  219. package/dist/chunks/{selection-card-group.CLqWoLSN.js.map → selection-card-group.BryV14qP.js.map} +1 -1
  220. package/dist/chunks/{sidepanel.C5SvJNMR.js → sidepanel.NFyZGE57.js} +5 -5
  221. package/dist/chunks/{sidepanel.C5SvJNMR.js.map → sidepanel.NFyZGE57.js.map} +1 -1
  222. package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
  223. package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
  224. package/dist/chunks/step.BLFXvHL6.js +223 -0
  225. package/dist/chunks/step.BLFXvHL6.js.map +1 -0
  226. package/dist/chunks/{structured-list-item.CbXDKwsF.js → structured-list-item.CptOCpHP.js} +3 -3
  227. package/dist/chunks/{structured-list-item.CbXDKwsF.js.map → structured-list-item.CptOCpHP.js.map} +1 -1
  228. package/dist/chunks/{summary-grid.types.haWi7oaf.js → summary-grid.types.B1T8_k1m.js} +3 -3
  229. package/dist/chunks/{summary-grid.types.haWi7oaf.js.map → summary-grid.types.B1T8_k1m.js.map} +1 -1
  230. package/dist/chunks/sv.f8EfZjMZ.js +377 -0
  231. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
  232. package/dist/chunks/{tab.ZQfGp_FP.js → tab.FUMpPsBP.js} +2 -2
  233. package/dist/chunks/{tab.ZQfGp_FP.js.map → tab.FUMpPsBP.js.map} +1 -1
  234. package/dist/chunks/{textarea.DfR2o1lz.js → textarea.riUt0BiI.js} +31 -31
  235. package/dist/chunks/textarea.riUt0BiI.js.map +1 -0
  236. package/dist/chunks/{timeline-item.rLqeBsyz.js → timeline-item.CFfW1DoD.js} +16 -15
  237. package/dist/chunks/{timeline-item.rLqeBsyz.js.map → timeline-item.CFfW1DoD.js.map} +1 -1
  238. package/dist/chunks/{toast.C7lu_NsX.js → toast.Csv6tMyT.js} +2 -2
  239. package/dist/chunks/{toast.C7lu_NsX.js.map → toast.Csv6tMyT.js.map} +1 -1
  240. package/dist/chunks/{tutorial.DA775wec.js → tutorial.D18LwXVy.js} +2 -2
  241. package/dist/chunks/{tutorial.DA775wec.js.map → tutorial.D18LwXVy.js.map} +1 -1
  242. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js → use-cached-selected-values.gDWGi5Nk.js} +240 -231
  243. package/dist/chunks/{use-cached-selected-values.DIKJ8yNE.js.map → use-cached-selected-values.gDWGi5Nk.js.map} +1 -1
  244. package/dist/chunks/{use-country-items.B3Cd3Tdo.js → use-country-items.ClS_So5N.js} +2 -2
  245. package/dist/chunks/{use-country-items.B3Cd3Tdo.js.map → use-country-items.ClS_So5N.js.map} +1 -1
  246. package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
  247. package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
  248. package/dist/code-snippet.js +1 -1
  249. package/dist/country.js +2 -2
  250. package/dist/dashboard-template.js +1 -1
  251. package/dist/dashed-underline.js +1 -1
  252. package/dist/data-grid-template.js +1 -1
  253. package/dist/data-grid.js +1 -1
  254. package/dist/date-picker.js +2 -2
  255. package/dist/date-range-picker.js +2 -2
  256. package/dist/dropdown.js +3 -3
  257. package/dist/empty-state.js +1 -1
  258. package/dist/file-uploader.js +1 -1
  259. package/dist/filter-bar.js +1 -1
  260. package/dist/form-layout.js +1 -1
  261. package/dist/header-with-views.js +1 -1
  262. package/dist/header.js +1 -1
  263. package/dist/index.js +250 -251
  264. package/dist/index.js.map +1 -1
  265. package/dist/input-field-password.js +1 -1
  266. package/dist/input-field-phone-number.js +1 -1
  267. package/dist/input-field.js +1 -1
  268. package/dist/inspector.js +1 -1
  269. package/dist/internal.js +10 -10
  270. package/dist/link.js +1 -1
  271. package/dist/menu.js +1 -1
  272. package/dist/modal-fullscreen.js +1 -1
  273. package/dist/modal.js +2 -2
  274. package/dist/pagination.js +1 -1
  275. package/dist/popover.js +1 -1
  276. package/dist/promo-banner.js +1 -1
  277. package/dist/radio-group.js +1 -1
  278. package/dist/rich-text-editor.js +1 -1
  279. package/dist/search-bar.js +2 -2
  280. package/dist/secondary-nav.js +1 -1
  281. package/dist/selection-card.js +1 -1
  282. package/dist/sidepanel.js +1 -1
  283. package/dist/stepper.js +1 -1
  284. package/dist/structured-list.js +1 -1
  285. package/dist/styles/bento-dark.css +0 -1829
  286. package/dist/styles/bento-light.css +0 -1829
  287. package/dist/styles/bento.css +0 -1829
  288. package/dist/styles/legacy.css +0 -1829
  289. package/dist/styles/styleguide.css +0 -1829
  290. package/dist/summary-grid.js +1 -1
  291. package/dist/tabs.js +1 -1
  292. package/dist/textarea.js +1 -1
  293. package/dist/timeline.js +1 -1
  294. package/dist/toast.js +1 -1
  295. package/dist/tutorial.js +1 -1
  296. package/dist/web-types.json +119 -2
  297. package/package.json +14 -25
  298. package/dist/chunks/calendar.DCLyThOl.js +0 -1832
  299. package/dist/chunks/calendar.DCLyThOl.js.map +0 -1
  300. package/dist/chunks/checkbox-input.B0NsfSNR.js.map +0 -1
  301. package/dist/chunks/code-snippet.1_edHDaZ.js.map +0 -1
  302. package/dist/chunks/constructNow.BhymNmy5.js +0 -8
  303. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  304. package/dist/chunks/date-format.B8RU7D42.js +0 -17
  305. package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
  306. package/dist/chunks/date-picker.-a_TXwjx.js.map +0 -1
  307. package/dist/chunks/date-range-picker.Bw1yPTu-.js +0 -906
  308. package/dist/chunks/date-range-picker.Bw1yPTu-.js.map +0 -1
  309. package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
  310. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
  311. package/dist/chunks/es6.MoTTyETW.js +0 -12
  312. package/dist/chunks/es6.MoTTyETW.js.map +0 -1
  313. package/dist/chunks/filter-bar.DNA9QblV.js +0 -2472
  314. package/dist/chunks/filter-bar.DNA9QblV.js.map +0 -1
  315. package/dist/chunks/fixed-scroller.Ca1ujamx.js +0 -106
  316. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
  317. package/dist/chunks/header-meta.C8_W0j_p.js +0 -170
  318. package/dist/chunks/header-meta.C8_W0j_p.js.map +0 -1
  319. package/dist/chunks/step.mqn8E6dm.js +0 -217
  320. package/dist/chunks/step.mqn8E6dm.js.map +0 -1
  321. package/dist/chunks/textarea.DfR2o1lz.js.map +0 -1
@@ -0,0 +1,1101 @@
1
+ import { defineComponent as ee, computed as k, ref as j, watch as K, nextTick as Ce, toRef as F, reactive as Oe } from "vue";
2
+ import { B as Se } from "./button.DIU6m9wD.js";
3
+ import { B as ye } from "./typography.Bq-EGj9y.js";
4
+ import { u as _e } from "./index.B6WW_F-J.js";
5
+ import { g as Ie } from "./generate-uid.NJ8tVoha.js";
6
+ import { a as Fe } from "./index.BDK4hwK_.js";
7
+ import { t as E, c as Q, g as we, n as le, b as Me, i as Pe } from "./getTimezoneOffsetInMilliseconds.C-aIpRfB.js";
8
+ import { d as Ne, a as ce } from "./differenceInMonths.DcFDl4eH.js";
9
+ import { s as re } from "./startOfWeek.Dxw2MhGp.js";
10
+ import { C as Te, a as xe } from "./chevron-left.BS24hEFa.js";
11
+ import { a as Le } from "./keyboard-navigation.DWmhelVv.js";
12
+ import { n as te } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
13
+ import { a as Be, B as Ue } from "./date.DBWzp0So.js";
14
+ import "../assets/calendar.css";
15
+ var C = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(C || {}), U = /* @__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))(U || {}), X = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(X || {});
16
+ const Ge = {
17
+ /**
18
+ * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
19
+ */
20
+ day: { type: Date, required: !0 },
21
+ /**
22
+ * Indicate if a date should be disabled or not
23
+ */
24
+ disabled: { type: Boolean, default: !1 },
25
+ /**
26
+ * Changes the state of the calendar day to selected.
27
+ */
28
+ selected: { type: Boolean, default: !1 },
29
+ /**
30
+ * When the day is selected, this indicates if the selection is a single date or part of a range.
31
+ * If it's a range it can be at the beginning, middle or end of the selection.
32
+ */
33
+ variant: {
34
+ type: String,
35
+ default: C.SINGLE,
36
+ validator: (e) => Object.values(C).includes(e)
37
+ }
38
+ }, ie = /* @__PURE__ */ new Map();
39
+ function De(e, t) {
40
+ const a = t ? JSON.stringify(Object.entries(t).sort()) : "no-options", n = (e == null ? void 0 : e.trim()) || "en-US", r = `${n}::${a}`;
41
+ if (ie.has(r))
42
+ return ie.get(r);
43
+ const s = new Intl.DateTimeFormat(n, t);
44
+ return ie.set(r, s), s;
45
+ }
46
+ const Bt = (e) => {
47
+ if (!e)
48
+ return "";
49
+ const t = e.getFullYear(), a = (e.getMonth() + 1).toString().padStart(2, "0");
50
+ let n = `${t}-${a}`;
51
+ const r = e.getDate().toString().padStart(2, "0");
52
+ return n += `-${r}`, n;
53
+ }, $e = ee({
54
+ name: "calendar-month-day",
55
+ components: { BentoTypography: ye },
56
+ inheritAttrs: !0,
57
+ props: Ge,
58
+ emits: [X.CLICK, X.MOUSE_OVER],
59
+ setup(e, { emit: t }) {
60
+ const { locale: a } = _e(void 0, !0), n = k(() => {
61
+ const d = /* @__PURE__ */ new Date();
62
+ return e.day.getDate() === d.getDate() && e.day.getMonth() === d.getMonth() && e.day.getFullYear() === d.getFullYear();
63
+ }), r = k(() => {
64
+ const i = De(a.value, { day: "numeric" }).formatToParts(e.day).find((v) => v.type === "day");
65
+ return (i == null ? void 0 : i.value) ?? "";
66
+ });
67
+ return {
68
+ // Values
69
+ conditionalClasses: k(() => ({
70
+ // Variants
71
+ [`b-calendar-month-day--${U.BEGINNING}`]: e.variant === C.BEGINNING,
72
+ [`b-calendar-month-day--${U.MIDDLE}`]: e.variant === C.MIDDLE,
73
+ [`b-calendar-month-day--${U.END}`]: e.variant === C.END,
74
+ [`b-calendar-month-day--${U.SINGLE}`]: e.variant === C.SINGLE,
75
+ // Selected
76
+ [`b-calendar-month-day--${U.UNSELECTED}`]: !e.selected,
77
+ [`b-calendar-month-day--${U.SELECTED}`]: e.selected,
78
+ // Current Day
79
+ [`b-calendar-month-day--${U.CURRENT_DAY}`]: n.value,
80
+ // Disabled
81
+ [`b-calendar-month-day--${U.DISABLED}`]: e.disabled
82
+ })),
83
+ isCurrentDay: n,
84
+ formattedDate: r,
85
+ // Enums
86
+ CalendarMonthDayEvent: X,
87
+ // Events
88
+ onClick: (d, h) => {
89
+ e.disabled ? (d.preventDefault(), d.stopPropagation()) : t(X.CLICK, h, e.day);
90
+ }
91
+ };
92
+ }
93
+ });
94
+ var je = function() {
95
+ var t = this, a = t._self._c;
96
+ return t._self._setupProxy, a("td", { staticClass: "b-calendar-month-day", class: t.conditionalClasses, attrs: { tabindex: t.selected ? "0" : "-1", "aria-selected": t.selected ? t.selected : void 0, "aria-disabled": t.disabled, "aria-current": t.isCurrentDay ? "date" : void 0, "data-date": t.day.toDateString() }, on: { click: (n) => t.onClick(n, t.day), mouseover: function(n) {
97
+ return t.$emit(t.CalendarMonthDayEvent.MOUSE_OVER);
98
+ }, keydown: function(n) {
99
+ return !n.type.indexOf("key") && t._k(n.keyCode, "space", 32, n.key, [" ", "Spacebar"]) && t._k(n.keyCode, "enter", 13, n.key, "Enter") ? null : ((r) => t.onClick(r, t.day)).apply(null, arguments);
100
+ } } }, [a("div", { staticClass: "b-calendar-month-day__wrapper" }, [a("bento-typography", { staticClass: "b-calendar-month-day__label", attrs: { el: "span", variant: "body", strong: "" } }, [t._v(" " + t._s(t.formattedDate) + " ")])], 1)]);
101
+ }, He = [], We = /* @__PURE__ */ te(
102
+ $e,
103
+ je,
104
+ He,
105
+ !1,
106
+ null,
107
+ "6cd88832"
108
+ );
109
+ const Ve = We.exports;
110
+ var A = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(A || {}), H = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(H || {}), q = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(q || {}), $ = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))($ || {}), ve = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(ve || {});
111
+ function p(e, t, a) {
112
+ const n = E(e, a == null ? void 0 : a.in);
113
+ return isNaN(t) ? Q(e, NaN) : (t && n.setDate(n.getDate() + t), n);
114
+ }
115
+ function W(e, t, a) {
116
+ const n = E(e, a == null ? void 0 : a.in);
117
+ if (isNaN(t)) return Q(e, NaN);
118
+ if (!t)
119
+ return n;
120
+ const r = n.getDate(), s = Q(e, n.getTime());
121
+ s.setMonth(n.getMonth() + t + 1, 0);
122
+ const u = s.getDate();
123
+ return r >= u ? s : (n.setFullYear(
124
+ s.getFullYear(),
125
+ s.getMonth(),
126
+ r
127
+ ), n);
128
+ }
129
+ function se(e, t) {
130
+ var d, h, i, v;
131
+ const a = we(), n = (t == null ? void 0 : t.weekStartsOn) ?? ((h = (d = t == null ? void 0 : t.locale) == null ? void 0 : d.options) == null ? void 0 : h.weekStartsOn) ?? a.weekStartsOn ?? ((v = (i = a.locale) == null ? void 0 : i.options) == null ? void 0 : v.weekStartsOn) ?? 0, r = E(e, t == null ? void 0 : t.in), s = r.getDay(), u = (s < n ? -7 : 0) + 6 - (s - n);
132
+ return r.setDate(r.getDate() + u), r.setHours(23, 59, 59, 999), r;
133
+ }
134
+ function qe(e, t) {
135
+ const a = E(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = a.getMonth(), s = Q(a, 0);
136
+ return s.setFullYear(n, r + 1, 0), s.setHours(0, 0, 0, 0), s.getDate();
137
+ }
138
+ function Ke(e, t, a) {
139
+ const n = E(e, a == null ? void 0 : a.in), r = n.getFullYear(), s = n.getDate(), u = Q(e, 0);
140
+ u.setFullYear(r, t, 15), u.setHours(0, 0, 0, 0);
141
+ const d = qe(u);
142
+ return n.setMonth(t, Math.min(s, d)), n;
143
+ }
144
+ function Qe(e, t, a) {
145
+ let n = E(e, a == null ? void 0 : a.in);
146
+ return isNaN(+n) ? Q(e, NaN) : (t.year != null && n.setFullYear(t.year), t.month != null && (n = Ke(n, t.month)), t.date != null && n.setDate(t.date), t.hours != null && n.setHours(t.hours), t.minutes != null && n.setMinutes(t.minutes), t.seconds != null && n.setSeconds(t.seconds), t.milliseconds != null && n.setMilliseconds(t.milliseconds), n);
147
+ }
148
+ function be(e, t) {
149
+ const a = E(e, t == null ? void 0 : t.in);
150
+ return a.setFullYear(a.getFullYear(), 0, 1), a.setHours(0, 0, 0, 0), a;
151
+ }
152
+ function me(e, t, a) {
153
+ return p(e, -t, a);
154
+ }
155
+ function Z(e, t, a) {
156
+ return W(e, -t, a);
157
+ }
158
+ const Ye = ({ currentSelectedDate: e, month: t, isDateDisabled: a, firstDayOfWeek: n }, r) => {
159
+ const s = j(new Date(t.value));
160
+ K(
161
+ t,
162
+ () => {
163
+ s.value = t.value;
164
+ },
165
+ { immediate: !0 }
166
+ );
167
+ const u = j(new Date(e.value));
168
+ K(e, () => {
169
+ u.value = new Date(e.value);
170
+ });
171
+ const d = Fe(), h = j(u.value);
172
+ K(d, (c) => {
173
+ const N = c.getAttribute("data-date");
174
+ h.value = N ? new Date(N) : u.value;
175
+ });
176
+ const i = j({}), v = (c) => (N) => {
177
+ i.value[c.toDateString()] = N;
178
+ }, m = () => {
179
+ i.value = {};
180
+ }, D = (c = 1) => {
181
+ s.value = W(s.value, c), r(A.NEXT_MONTH, c), m();
182
+ }, f = (c = 1) => {
183
+ s.value = Z(s.value, c), r(A.PREVIOUS_MONTH, c), m();
184
+ }, o = (c, N) => {
185
+ const w = !!i.value[c == null ? void 0 : c.toDateString()];
186
+ return !c || !w ? null : N ? i.value[c.toDateString()].$el : (i.value[c.toDateString()].$el.focus(), null);
187
+ }, l = (c) => {
188
+ c.preventDefault(), c.stopImmediatePropagation(), c.stopPropagation();
189
+ }, _ = ({ nextDate: c, isIncreasingDays: N, amountOfMonths: w, isCalendarButtonsNav: B }) => {
190
+ if (!B && a && a(c))
191
+ return;
192
+ c.getMonth() === u.value.getMonth() && c.getFullYear() === u.value.getFullYear() ? (u.value = c, o(c)) : (N ? D(w) : f(w), Ce(() => {
193
+ const R = c.getMonth() === s.value.getMonth() && c.getFullYear() === s.value.getFullYear();
194
+ a && a(c) || !R || B || (u.value = c, o(c));
195
+ }));
196
+ };
197
+ return {
198
+ // Calendar days ref
199
+ calendarRef: i,
200
+ addDayRef: v,
201
+ /**
202
+ * Month navigation
203
+ */
204
+ showNextMonth: D,
205
+ showPreviousMonth: f,
206
+ /**
207
+ * Focus method
208
+ */
209
+ focusOnDate: o,
210
+ /**
211
+ * Day navigation
212
+ */
213
+ // ArrowRight
214
+ moveToNextDay: (c) => {
215
+ l(c), _({ nextDate: p(h.value, 1), isIncreasingDays: !0 });
216
+ },
217
+ // ArrowLeft
218
+ moveToPreviousDay: (c) => {
219
+ l(c), _({ nextDate: me(h.value, 1), isIncreasingDays: !1 });
220
+ },
221
+ // ArrowUp
222
+ moveToPreviousWeek: (c) => {
223
+ l(c), _({ nextDate: me(h.value, 7), isIncreasingDays: !1 });
224
+ },
225
+ // ArrowDown
226
+ moveToNextWeek: (c) => {
227
+ l(c), _({ nextDate: p(h.value, 7), isIncreasingDays: !0 });
228
+ },
229
+ // Home
230
+ moveToFirstDayOfWeek: (c) => {
231
+ l(c), _({
232
+ nextDate: re(h.value, { weekStartsOn: n }),
233
+ isIncreasingDays: !1
234
+ });
235
+ },
236
+ moveToFirstMonthOfYear: (c) => {
237
+ l(c);
238
+ const N = Ne(u.value, be(u.value));
239
+ _({
240
+ nextDate: be(u.value),
241
+ isIncreasingDays: !1,
242
+ amountOfMonths: N
243
+ });
244
+ },
245
+ // End
246
+ moveToLastDayOfWeek: (c) => {
247
+ l(c), _({
248
+ nextDate: se(h.value, { weekStartsOn: n }),
249
+ isIncreasingDays: !0
250
+ });
251
+ },
252
+ moveToLastMonthOfYear: (c) => {
253
+ l(c);
254
+ const N = Qe(u.value, { month: 11, date: 1 }), w = Ne(N, u.value);
255
+ _({
256
+ nextDate: N,
257
+ isIncreasingDays: !0,
258
+ amountOfMonths: w
259
+ });
260
+ },
261
+ // PageUp
262
+ moveToPreviousMonth: (c, N = !1, w = 1) => {
263
+ l(c);
264
+ const B = w;
265
+ _({
266
+ nextDate: Z(h.value, B),
267
+ isIncreasingDays: !1,
268
+ amountOfMonths: B,
269
+ isCalendarButtonsNav: N
270
+ });
271
+ },
272
+ // Shift+PageUp
273
+ moveToPreviousYear: (c, N = !1) => {
274
+ l(c);
275
+ const w = 12;
276
+ _({
277
+ nextDate: Z(h.value, w),
278
+ isIncreasingDays: !1,
279
+ amountOfMonths: w,
280
+ isCalendarButtonsNav: N
281
+ });
282
+ },
283
+ // PageDown
284
+ moveToNextMonth: (c, N = !1, w = 1) => {
285
+ l(c);
286
+ const B = w;
287
+ _({
288
+ nextDate: W(h.value, B),
289
+ isIncreasingDays: !0,
290
+ amountOfMonths: B,
291
+ isCalendarButtonsNav: N
292
+ });
293
+ },
294
+ // Shift-PageDown
295
+ moveToNextYear: (c, N = !1) => {
296
+ l(c);
297
+ const w = 12;
298
+ _({
299
+ nextDate: W(h.value, w),
300
+ isIncreasingDays: !0,
301
+ amountOfMonths: w,
302
+ isCalendarButtonsNav: N
303
+ });
304
+ },
305
+ // Values
306
+ internalDate: u,
307
+ baseDate: s
308
+ };
309
+ };
310
+ function ze(e, t, a) {
311
+ var m, D;
312
+ const n = we(), r = n.weekStartsOn ?? ((D = (m = n.locale) == null ? void 0 : m.options) == null ? void 0 : D.weekStartsOn) ?? 0, s = E(e, a == null ? void 0 : a.in), u = s.getDay(), h = (t % 7 + 7) % 7, i = 7 - r, v = t < 0 || t > 6 ? t - (u + i) % 7 : (h + i) % 7 - (u + i) % 7;
313
+ return p(s, v, a);
314
+ }
315
+ function oe(e, t) {
316
+ const a = E(e, t == null ? void 0 : t.in);
317
+ return a.setDate(1), a.setHours(0, 0, 0, 0), a;
318
+ }
319
+ function V(e, t) {
320
+ const a = E(e, t == null ? void 0 : t.in);
321
+ return a.setHours(0, 0, 0, 0), a;
322
+ }
323
+ function ne(e, t, a) {
324
+ const [n, r] = le(
325
+ a == null ? void 0 : a.in,
326
+ e,
327
+ t
328
+ );
329
+ return +V(n) == +V(r);
330
+ }
331
+ function ue(e, t, a) {
332
+ const n = +E(e, a == null ? void 0 : a.in), [r, s] = [
333
+ +E(t.start, a == null ? void 0 : a.in),
334
+ +E(t.end, a == null ? void 0 : a.in)
335
+ ].sort((u, d) => u - d);
336
+ return n >= r && n <= s;
337
+ }
338
+ const Je = {
339
+ "en-US": {
340
+ nextMonth: "Next month",
341
+ previousMonth: "Previous month"
342
+ },
343
+ "ja-JP": {
344
+ nextMonth: "翌月",
345
+ previousMonth: "前月"
346
+ },
347
+ "pt-BR": {
348
+ nextMonth: "Próximo mês",
349
+ previousMonth: "Mês anterior"
350
+ }
351
+ }, Xe = ee({
352
+ i18n: { messages: Je },
353
+ name: "calendar-month",
354
+ components: {
355
+ BentoButton: Se,
356
+ BentoTypography: ye,
357
+ CalendarMonthDay: Ve,
358
+ ChevronLeftIcon: xe,
359
+ ChevronRightIcon: Te
360
+ },
361
+ directives: { BentoKeyboardNavigationDirective: Le },
362
+ props: {
363
+ /**
364
+ * end of the selected range
365
+ */
366
+ endDate: { type: Date, default: null },
367
+ /**
368
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
369
+ */
370
+ firstDayOfWeek: {
371
+ type: Number,
372
+ default: H.MONDAY,
373
+ validator: (e) => Object.values(H).includes(e)
374
+ },
375
+ /**
376
+ * Indicate if a date should be disabled or not
377
+ */
378
+ isDateDisabled: { type: Function, default: void 0 },
379
+ /**
380
+ * Indicates if the calendar is part of a range date picker or a sigle date picker
381
+ */
382
+ isRange: { type: Boolean, default: !1 },
383
+ /**
384
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
385
+ */
386
+ min: { type: Date, default: null },
387
+ /**
388
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
389
+ */
390
+ max: { type: Date, default: null },
391
+ /**
392
+ * Month of the year to be displayed in the calendar
393
+ */
394
+ month: { type: Date, required: !0 },
395
+ /**
396
+ * When rendering multiple calendars, this property allows to render the
397
+ * Next and Previous calendar buttons to the right, left or not at all
398
+ * depending on the position: Unique (only 1), First, Middle or Last
399
+ */
400
+ position: {
401
+ type: String,
402
+ default: "unique",
403
+ validator: (e) => Object.values(q).includes(e)
404
+ },
405
+ /**
406
+ * start of the selected range
407
+ */
408
+ startDate: { type: Date, default: null }
409
+ // can be undefined, eslint complains without default
410
+ },
411
+ emits: [
412
+ A.CHANGE_DAY,
413
+ A.INPUT,
414
+ A.NEXT_MONTH,
415
+ A.PREVIOUS_MONTH,
416
+ A.MOUSE_OVER
417
+ ],
418
+ setup(e, { emit: t }) {
419
+ const { locale: a, t: n } = _e(), r = Ie("bento-date-picker-month-label"), s = k(
420
+ () => (g) => {
421
+ var R;
422
+ return e.min && g < e.min || e.max && g > e.max || ((R = e.isDateDisabled) == null ? void 0 : R.call(e, g));
423
+ }
424
+ ), {
425
+ internalDate: u,
426
+ baseDate: d,
427
+ // Calendar refs
428
+ addDayRef: h,
429
+ // Month navigation
430
+ showNextMonth: i,
431
+ showPreviousMonth: v,
432
+ // Day navigation
433
+ moveToNextDay: m,
434
+ moveToPreviousDay: D,
435
+ moveToPreviousWeek: f,
436
+ moveToNextWeek: o,
437
+ moveToFirstDayOfWeek: l,
438
+ moveToLastDayOfWeek: _,
439
+ moveToPreviousMonth: x,
440
+ moveToPreviousYear: y,
441
+ moveToNextMonth: b,
442
+ moveToNextYear: Y,
443
+ focusOnDate: L
444
+ } = Ye(
445
+ {
446
+ currentSelectedDate: F(e, "startDate"),
447
+ month: F(e, "month"),
448
+ isDateDisabled: s.value,
449
+ firstDayOfWeek: e.firstDayOfWeek
450
+ },
451
+ t
452
+ ), O = k(
453
+ () => Object.values(H).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : H.MONDAY
454
+ ), M = k(() => ["first", "unique"].includes(e.position)), T = k(() => ["last", "unique"].includes(e.position)), S = k(
455
+ () => De(a.value, { month: "long", year: "numeric" }).format(d.value)
456
+ ), I = k(
457
+ () => new Array(7).fill(/* @__PURE__ */ new Date()).map((g, R) => {
458
+ const J = ze(g, O.value + R);
459
+ return De(a.value, { weekday: "short" }).format(J);
460
+ })
461
+ ), z = k(() => {
462
+ const g = [], R = oe(e.month);
463
+ let J = g[g.push([]) - 1];
464
+ for (; R.getMonth() === e.month.getMonth(); )
465
+ R.getDay() - O.value === 0 && J.length > 0 && (J = g[g.push([]) - 1]), J.push(V(R)), R.setDate(R.getDate() + 1);
466
+ return g;
467
+ });
468
+ return {
469
+ // Refs
470
+ addDayRef: h,
471
+ // Values
472
+ computedIsDateDisabled: s,
473
+ daysOfWeek: I,
474
+ weeksOfMonth: z,
475
+ formattedMonthDate: S,
476
+ shouldShowNextMonthButton: T,
477
+ shouldShowPreviousMonthButton: M,
478
+ monthLabelId: r,
479
+ // Enums
480
+ CalendarMonthEvent: A,
481
+ // Functions
482
+ isSelectedDate: (g) => u.value && ne(u.value, g) && !e.endDate ? !0 : e.startDate && e.endDate && ue(g, { start: e.startDate, end: e.endDate }),
483
+ showNextMonth: i,
484
+ showPreviousMonth: v,
485
+ dayVariant: (g) => {
486
+ if (!e.isRange || ne(e.startDate, e.endDate))
487
+ return C.SINGLE;
488
+ if (e.startDate && ne(e.startDate, g))
489
+ return C.BEGINNING;
490
+ if (e.endDate && ne(e.endDate, g))
491
+ return C.END;
492
+ if (e.startDate && e.endDate && ue(g, { start: e.startDate, end: e.endDate }))
493
+ return C.MIDDLE;
494
+ },
495
+ confirmNavigationDate: () => {
496
+ t(A.INPUT, u);
497
+ },
498
+ // Events
499
+ onDayClicked: (g) => {
500
+ t(A.INPUT, g);
501
+ },
502
+ listeners: {
503
+ "keydown:arrow-right": m,
504
+ "keydown:arrow-left": D,
505
+ "keydown:arrow-up": f,
506
+ "keydown:arrow-down": o,
507
+ "keydown:home": l,
508
+ "keydown:end": _,
509
+ "keydown:page-up": x,
510
+ "keydown:shift-page-up": y,
511
+ "keydown:page-down": b,
512
+ "keydown:shift-page-down": Y
513
+ },
514
+ // Exposed methods
515
+ focusOnDate: L,
516
+ moveToNextDay: m,
517
+ moveToPreviousDay: D,
518
+ moveToPreviousWeek: f,
519
+ moveToNextWeek: o,
520
+ moveToFirstDayOfWeek: l,
521
+ moveToLastDayOfWeek: _,
522
+ moveToPreviousMonth: x,
523
+ moveToPreviousYear: y,
524
+ moveToNextMonth: b,
525
+ moveToNextYear: Y,
526
+ // Translations
527
+ t: n
528
+ };
529
+ }
530
+ });
531
+ var Ze = function() {
532
+ var n, r;
533
+ var t = this, a = t._self._c;
534
+ return t._self._setupProxy, a("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-calendar-month" }, t.listeners), [a("div", { staticClass: "b-calendar-month__month-selector" }, [a("div", { staticClass: "b-calendar-month__previous" }, [t.shouldShowPreviousMonthButton ? a("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(s) {
535
+ return t.moveToPreviousMonth(s, !0);
536
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
537
+ return [a("chevron-left-icon", { attrs: { "svg-title": t.t("previousMonth") } })];
538
+ }, proxy: !0 }], null, !1, 1806090420) }) : t._e()], 1), a("bento-typography", { attrs: { id: t.monthLabelId, el: "h2", variant: "title", "aria-live": "polite" } }, [t._v(" " + t._s(t.formattedMonthDate) + " ")]), a("div", { staticClass: "b-calendar-month__next" }, [t.shouldShowNextMonthButton ? a("bento-button", { attrs: { variant: "tertiary" }, on: { click: function(s) {
539
+ return t.moveToNextMonth(s, !0);
540
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
541
+ return [a("chevron-right-icon", { attrs: { "svg-title": t.t("nextMonth") } })];
542
+ }, proxy: !0 }], null, !1, 1041540377) }) : t._e()], 1)], 1), a("table", { staticClass: "b-calendar-month__month-container", attrs: { role: "grid", "aria-labelledby": t.monthLabelId } }, [a("thead", [a("tr", { staticClass: "b-calendar-month__week-header" }, t._l(t.daysOfWeek, function(s, u) {
543
+ return a("th", { key: u, staticClass: "b-calendar-month__day-of-week", attrs: { scope: "col" } }, [a("bento-typography", { staticClass: "b-calendar-month__day-of-week-font", attrs: { el: "span", variant: "caption" } }, [t._v(" " + t._s(s) + " ")])], 1);
544
+ }), 0)]), a("tbody", [t._l(t.weeksOfMonth, function(s, u) {
545
+ return a("tr", { key: u }, [u === 0 && s.length < 7 ? a("td", { attrs: { colspan: 7 - s.length } }) : t._e(), t._l(s, function(d, h) {
546
+ return a("calendar-month-day", { key: `calendar-day-${h}`, ref: t.addDayRef(d), refInFor: !0, attrs: { day: d, disabled: t.computedIsDateDisabled(d), selected: t.isSelectedDate(d), variant: t.dayVariant(d) }, on: { click: t.onDayClicked, mouseover: function(i) {
547
+ return t.$emit(t.CalendarMonthEvent.MOUSE_OVER, d);
548
+ } }, nativeOn: { keyup: [function(i) {
549
+ return !i.type.indexOf("key") && t._k(i.keyCode, "up", 38, i.key, ["Up", "ArrowUp"]) ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, d);
550
+ }, function(i) {
551
+ return !i.type.indexOf("key") && t._k(i.keyCode, "down", 40, i.key, ["Down", "ArrowDown"]) ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, d);
552
+ }, function(i) {
553
+ return !i.type.indexOf("key") && t._k(i.keyCode, "left", 37, i.key, ["Left", "ArrowLeft"]) || "button" in i && i.button !== 0 ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, d);
554
+ }, function(i) {
555
+ return !i.type.indexOf("key") && t._k(i.keyCode, "right", 39, i.key, ["Right", "ArrowRight"]) || "button" in i && i.button !== 2 ? null : t.$emit(t.CalendarMonthEvent.CHANGE_DAY, d);
556
+ }] } });
557
+ })], 2);
558
+ }), ((n = t.weeksOfMonth) == null ? void 0 : n.length) < 6 ? t._l(6 - ((r = t.weeksOfMonth) == null ? void 0 : r.length), function(s) {
559
+ return a("tr", { key: `calendar month filler row ${s}` }, [a("td", { staticClass: "b-calendar-month__empty-cell-filler", attrs: { "aria-hidden": "true", colspan: 7 } })]);
560
+ }) : t._e()], 2)])]);
561
+ }, pe = [], et = /* @__PURE__ */ te(
562
+ Xe,
563
+ Ze,
564
+ pe,
565
+ !1,
566
+ null,
567
+ "b0c83eb5"
568
+ );
569
+ const ge = et.exports;
570
+ function ae(e, t, a) {
571
+ const [n, r] = le(
572
+ a == null ? void 0 : a.in,
573
+ e,
574
+ t
575
+ );
576
+ return n.getFullYear() === r.getFullYear() && n.getMonth() === r.getMonth();
577
+ }
578
+ var P = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(P || {}), G = /* @__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))(G || {}), he = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(he || {});
579
+ const tt = {}, nt = /* @__PURE__ */ ee({
580
+ ...tt,
581
+ __name: "calendar-year-month",
582
+ props: {
583
+ month: null,
584
+ disabled: { type: Boolean, default: !1 },
585
+ selected: { type: Boolean, default: !1 },
586
+ variant: { default: P.SINGLE }
587
+ },
588
+ emits: ["click", "mouseover"],
589
+ setup(e, { emit: t }) {
590
+ const a = e, n = k(() => {
591
+ const u = /* @__PURE__ */ new Date();
592
+ return a.month.getMonth() === u.getMonth() && a.month.getFullYear() === u.getFullYear();
593
+ }), r = k(() => ({
594
+ // Variants
595
+ [`b-calendar-year-month--${G.BEGINNING}`]: a.variant === P.BEGINNING,
596
+ [`b-calendar-year-month--${G.MIDDLE}`]: a.variant === P.MIDDLE,
597
+ [`b-calendar-year-month--${G.END}`]: a.variant === P.END,
598
+ [`b-calendar-year-month--${G.SINGLE}`]: a.variant === P.SINGLE,
599
+ // Selected
600
+ [`b-calendar-year-month--${G.UNSELECTED}`]: !a.selected,
601
+ [`b-calendar-year-month--${G.SELECTED}`]: a.selected,
602
+ // Current month
603
+ [`b-calendar-year-month--${G.CURRENT_MONTH}`]: n.value,
604
+ // Disabled
605
+ [`b-calendar-year-month--${G.DISABLED}`]: a.disabled
606
+ }));
607
+ return { __sfc: !0, props: a, emit: t, isCurrentMonth: n, conditionalClasses: r, onClick: (u, d) => {
608
+ a.disabled ? (u.preventDefault(), u.stopPropagation()) : t(he.CLICK, d, a.month);
609
+ }, BentoDate: Ue, BentoDateFormat: Be, CalendarYearMonthEvent: he };
610
+ }
611
+ });
612
+ var at = function() {
613
+ var t = this, a = t._self._c, n = t._self._setupProxy;
614
+ return a("td", { staticClass: "b-calendar-year-month", class: n.conditionalClasses, attrs: { tabindex: t.selected ? "0" : "-1", "aria-selected": t.selected ? t.selected : void 0 }, on: { click: (r) => n.onClick(r, t.month), mouseover: function(r) {
615
+ return n.emit(n.CalendarYearMonthEvent.MOUSE_OVER);
616
+ }, keydown: function(r) {
617
+ return !r.type.indexOf("key") && t._k(r.keyCode, "space", 32, r.key, [" ", "Spacebar"]) && t._k(r.keyCode, "enter", 13, r.key, "Enter") ? null : ((s) => n.onClick(s, t.month)).apply(null, arguments);
618
+ } } }, [a("div", { staticClass: "b-calendar-year-month__wrapper" }, [a(n.BentoDate, { staticClass: "b-calendar-year-month__label", attrs: { date: t.month, format: n.BentoDateFormat.SHORT_MONTH } })], 1)]);
619
+ }, rt = [], st = /* @__PURE__ */ te(
620
+ nt,
621
+ at,
622
+ rt,
623
+ !1,
624
+ null,
625
+ "14764460"
626
+ );
627
+ const ot = st.exports, ut = {
628
+ "en-US": {
629
+ nextYear: "Next year",
630
+ previousYear: "Previous year"
631
+ },
632
+ "ja-JP": {
633
+ nextYear: "来年",
634
+ previousYear: "前年"
635
+ },
636
+ "pt-BR": {
637
+ nextYear: "Ano seguinte",
638
+ previousYear: "Ano anterior"
639
+ }
640
+ }, lt = {
641
+ i18n: { messages: ut }
642
+ }, ct = /* @__PURE__ */ ee({
643
+ ...lt,
644
+ __name: "calendar-year",
645
+ props: {
646
+ endDate: { default: null },
647
+ isDateDisabled: { type: Function, default: void 0 },
648
+ isRange: { type: Boolean, default: !1 },
649
+ min: { default: null },
650
+ max: { default: null },
651
+ position: { default: "unique" },
652
+ startDate: { default: null },
653
+ year: null
654
+ },
655
+ emits: ["input", "mouseover", "nextMonth", "previousMonth"],
656
+ setup(e, { expose: t, emit: a }) {
657
+ const n = e, r = Ie("bento-date-picker-year-label"), { t: s } = _e(), u = (M) => {
658
+ var T;
659
+ return n.min && M < n.min || n.max && M > n.max || ((T = n.isDateDisabled) == null ? void 0 : T.call(n, M));
660
+ }, d = k(() => ["first", "unique"].includes(n.position)), h = k(() => ["last", "unique"].includes(n.position)), {
661
+ internalDate: i,
662
+ // Calendar refs
663
+ addDayRef: v,
664
+ // Day navigation
665
+ moveToPreviousMonth: m,
666
+ moveToPreviousYear: D,
667
+ moveToNextMonth: f,
668
+ moveToNextYear: o,
669
+ moveToFirstMonthOfYear: l,
670
+ moveToLastMonthOfYear: _,
671
+ focusOnDate: x
672
+ } = Ye(
673
+ {
674
+ currentSelectedDate: F(n, "startDate"),
675
+ month: F(n, "year"),
676
+ isDateDisabled: u
677
+ },
678
+ a
679
+ );
680
+ t({ focusOnDate: x });
681
+ const y = k(() => {
682
+ const M = [];
683
+ let T = 0;
684
+ for (let S = 0; S < 3; S++) {
685
+ const I = [];
686
+ for (let z = 0; z < 4; z++)
687
+ I.push(new Date(n.year.getFullYear(), T++, 1));
688
+ M.push(I);
689
+ }
690
+ return M;
691
+ }), b = (M) => !n.isRange || ae(n.startDate, n.endDate) ? P.SINGLE : n.startDate && ae(n.startDate, M) ? P.BEGINNING : n.endDate && ae(n.endDate, M) ? P.END : n.startDate && n.endDate && ue(M, { start: n.startDate, end: n.endDate }) ? P.MIDDLE : null, Y = (M) => i.value && ae(i.value, M) ? !0 : n.startDate && n.endDate && ue(M, { start: n.startDate, end: n.endDate }), L = (M) => {
692
+ a("input", M);
693
+ }, O = n.isRange ? {} : {
694
+ "keydown:arrow-right": f,
695
+ "keydown:arrow-left": m,
696
+ "keydown:arrow-up": (M) => m(M, !1, 4),
697
+ "keydown:arrow-down": (M) => f(M, !1, 4),
698
+ "keydown:home": l,
699
+ "keydown:end": _,
700
+ "keydown:page-up": D,
701
+ "keydown:page-down": o
702
+ };
703
+ return { __sfc: !0, yearLabelId: r, props: n, emit: a, t: s, isDateDisabled: u, shouldShowPreviousYearButton: d, shouldShowNextYearButton: h, internalDate: i, addDayRef: v, moveToPreviousMonth: m, moveToPreviousYear: D, moveToNextMonth: f, moveToNextYear: o, moveToFirstMonthOfYear: l, moveToLastMonthOfYear: _, focusOnDate: x, monthRows: y, monthVariant: b, isSelectedDate: Y, onMonthClicked: L, listeners: O, BentoButton: Se, BentoTypography: ye, CalendarYearMonth: ot, ChevronLeftIcon: xe, ChevronRightIcon: Te, vBentoKeyboardNavigationDirective: Le };
704
+ }
705
+ });
706
+ var it = function() {
707
+ var t = this, a = t._self._c, n = t._self._setupProxy;
708
+ return a("div", t._g({ directives: [{ name: "bento-keyboard-navigation-directive", rawName: "v-bento-keyboard-navigation-directive" }], staticClass: "b-calendar-year" }, n.listeners), [a("div", { staticClass: "b-calendar-year__year-selector" }, [a("div", { staticClass: "b-calendar-year__previous" }, [n.shouldShowPreviousYearButton ? a(n.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(r) {
709
+ return n.moveToPreviousYear(r, !0);
710
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
711
+ return [a(n.ChevronLeftIcon, { attrs: { "svg-title": n.t("previousYear") } })];
712
+ }, proxy: !0 }], null, !1, 3347270443) }) : t._e()], 1), a(n.BentoTypography, { attrs: { id: n.yearLabelId, el: "h2", variant: "title", "aria-live": "polite" } }, [t._v(" " + t._s(t.year.getFullYear()) + " ")]), a("div", { staticClass: "b-calendar-year__next" }, [n.shouldShowNextYearButton ? a(n.BentoButton, { attrs: { variant: "tertiary" }, on: { click: function(r) {
713
+ return n.moveToNextYear(r, !0);
714
+ } }, scopedSlots: t._u([{ key: "iconLeft", fn: function() {
715
+ return [a(n.ChevronRightIcon, { attrs: { "svg-title": n.t("nextYear") } })];
716
+ }, proxy: !0 }], null, !1, 3324005926) }) : t._e()], 1)], 1), a("table", { staticClass: "b-calendar-year__year-container", attrs: { role: "grid", "aria-labelledby": n.yearLabelId } }, [a("tbody", t._l(n.monthRows, function(r, s) {
717
+ return a("tr", { key: s }, t._l(r, function(u, d) {
718
+ return a(n.CalendarYearMonth, { key: `calendar-month-${d}`, ref: n.addDayRef(u), refInFor: !0, attrs: { month: u, disabled: n.isDateDisabled(u), selected: n.isSelectedDate(u), variant: n.monthVariant(u) }, on: { click: n.onMonthClicked, mouseover: function(h) {
719
+ return n.emit("mouseover", u);
720
+ } } });
721
+ }), 1);
722
+ }), 0)])]);
723
+ }, dt = [], ft = /* @__PURE__ */ te(
724
+ ct,
725
+ it,
726
+ dt,
727
+ !1,
728
+ null,
729
+ "4ac72508"
730
+ );
731
+ const ke = ft.exports, Dt = ({ selectedDate: e }, t) => {
732
+ const a = Oe({
733
+ startDate: null,
734
+ endDate: null
735
+ });
736
+ return K(
737
+ () => e.value,
738
+ () => {
739
+ a.startDate = e.value, a.endDate = void 0;
740
+ },
741
+ { immediate: !0 }
742
+ ), {
743
+ internalValue: a,
744
+ onDateInput: (r) => {
745
+ t($.INPUT, r);
746
+ },
747
+ // Empty function to prevent the listeners from throwing a warning
748
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
749
+ onMouseOver: () => {
750
+ }
751
+ };
752
+ };
753
+ function vt(e, t) {
754
+ return +E(e) < +E(t);
755
+ }
756
+ function mt(e, t) {
757
+ return +E(e) > +E(t);
758
+ }
759
+ function ht(e, t, a) {
760
+ const [n, r] = le(
761
+ a == null ? void 0 : a.in,
762
+ e,
763
+ t
764
+ ), s = V(n), u = V(r), d = +s - Me(s), h = +u - Me(u);
765
+ return Math.round((d - h) / Pe);
766
+ }
767
+ function yt(e, t, a) {
768
+ const [n, r] = le(
769
+ a == null ? void 0 : a.in,
770
+ e,
771
+ t
772
+ ), s = Ee(n, r), u = Math.abs(
773
+ ht(n, r)
774
+ );
775
+ n.setDate(n.getDate() - s * u);
776
+ const d = +(Ee(n, r) === -s), h = s * (u - d);
777
+ return h === 0 ? 0 : h;
778
+ }
779
+ function Ee(e, t) {
780
+ const a = 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();
781
+ return a < 0 ? -1 : a > 0 ? 1 : a;
782
+ }
783
+ function de(e, t) {
784
+ const a = E(e, t == null ? void 0 : t.in), n = a.getMonth(), r = n - n % 3 + 3;
785
+ return a.setMonth(r, 0), a.setHours(23, 59, 59, 999), a;
786
+ }
787
+ function fe(e, t) {
788
+ const a = E(e, t == null ? void 0 : t.in), n = a.getMonth(), r = n - n % 3;
789
+ return a.setMonth(r, 1), a.setHours(0, 0, 0, 0), a;
790
+ }
791
+ const _t = (e) => {
792
+ const t = (v, m, D, f) => {
793
+ let o = re(v, { weekStartsOn: e }), l = se(m || v, { weekStartsOn: e });
794
+ const _ = D && o < D, x = f && l > f;
795
+ return _ && (o = re(D, { weekStartsOn: e })), x && (l = se(f, { weekStartsOn: e })), o > l && (_ ? l = se(o, { weekStartsOn: e }) : o = re(l, { weekStartsOn: e })), { startDate: o, endDate: l };
796
+ }, a = (v, m, D, f) => {
797
+ let o = oe(v), l = ce(m || v);
798
+ const _ = D && o < D, x = f && l > f;
799
+ return _ && (o = oe(D)), x && (l = ce(f)), o > l && (_ ? l = ce(o) : o = oe(l)), { startDate: o, endDate: l };
800
+ }, n = (v, m, D, f) => {
801
+ let o = fe(v), l = de(m || v);
802
+ const _ = D instanceof Date && o < D, x = f instanceof Date && l > f;
803
+ return _ && (o = fe(D)), x && (l = de(f)), o > l && (_ ? l = de(o) : o = fe(l)), { startDate: o, endDate: l };
804
+ };
805
+ return {
806
+ adjustDateForWeekly: t,
807
+ adjustDateForMonthly: a,
808
+ adjustDateForQuarterly: n,
809
+ adjustStartDateInputForWeekly: (v, m, D, f) => {
810
+ const { startDate: o } = t(new Date(v), null, D, f);
811
+ return m(o);
812
+ },
813
+ adjustEndDateInputForWeekly: (v, m, D, f) => {
814
+ const { endDate: o } = t(new Date(v), null, D, f);
815
+ return m(o);
816
+ },
817
+ adjustStartDateInputForMonthly: (v, m, D, f) => {
818
+ const { startDate: o } = a(new Date(v), null, D, f);
819
+ return m(o);
820
+ },
821
+ adjustEndDateInputForMonthly: (v, m, D, f) => {
822
+ const { endDate: o } = a(new Date(v), null, D, f);
823
+ return m(o);
824
+ },
825
+ adjustStartDateInputForQuarterly: (v, m, D, f) => {
826
+ const { startDate: o } = n(new Date(v), null, D, f);
827
+ return m(o);
828
+ },
829
+ adjustEndDateInputForQuarterly: (v, m, D, f) => {
830
+ const { endDate: o } = n(new Date(v), null, D, f);
831
+ return m(o);
832
+ }
833
+ };
834
+ }, Mt = ({ selectedDate: e, isDateDisabled: t, maxRange: a, granularity: n, firstDayOfWeek: r, min: s, max: u }, d) => {
835
+ const { adjustDateForWeekly: v, adjustDateForMonthly: m, adjustDateForQuarterly: D } = _t(r), f = Oe({
836
+ startDate: null,
837
+ endDate: null
838
+ }), o = j(null);
839
+ K(
840
+ () => e.value,
841
+ () => {
842
+ let { startDate: y = null, endDate: b = null } = e.value || {};
843
+ y && (y = V(y)), b && (b = V(b)), !(y && t && t(y) || b && t && t(b) || y && b && mt(y, b)) && (f.startDate = y, f.endDate = b);
844
+ },
845
+ { immediate: !0, deep: !0 }
846
+ );
847
+ const l = (y, b, Y) => {
848
+ if (f.startDate = y, f.endDate = b, a.value) {
849
+ const L = yt(b, y) - a.value;
850
+ L > 0 && (Y < 1 ? (f.startDate = y, f.endDate = me(b, L)) : (f.startDate = p(y, L), f.endDate = b));
851
+ }
852
+ d($.START_DATE_SELECTED, f.startDate), d($.END_DATE_SELECTED, f.endDate);
853
+ }, _ = (y) => {
854
+ var b, Y, L, O, M, T;
855
+ if (!(!o.value || t && t(y)))
856
+ if (vt(y, o.value)) {
857
+ if (((b = n == null ? void 0 : n.value) == null ? void 0 : b.type) === "weekly") {
858
+ const { startDate: S, endDate: I } = v(y, o.value, s.value, u.value);
859
+ l(S, I, -1);
860
+ return;
861
+ }
862
+ if (((Y = n == null ? void 0 : n.value) == null ? void 0 : Y.type) === "monthly") {
863
+ const { startDate: S, endDate: I } = m(y, o.value, s.value, u.value);
864
+ l(S, I, -1);
865
+ return;
866
+ }
867
+ if (((L = n == null ? void 0 : n.value) == null ? void 0 : L.type) === "quarterly") {
868
+ const { startDate: S, endDate: I } = D(y, o.value, s.value, u.value);
869
+ l(S, I, -1);
870
+ return;
871
+ }
872
+ l(y, o.value, -1);
873
+ } else {
874
+ if (((O = n == null ? void 0 : n.value) == null ? void 0 : O.type) === "weekly") {
875
+ const { startDate: S, endDate: I } = v(o.value, y, s.value, u.value);
876
+ l(S, I, 1);
877
+ return;
878
+ }
879
+ if (((M = n == null ? void 0 : n.value) == null ? void 0 : M.type) === "monthly") {
880
+ const { startDate: S, endDate: I } = m(o.value, y, s.value, u.value);
881
+ l(S, I, 1);
882
+ return;
883
+ }
884
+ if (((T = n == null ? void 0 : n.value) == null ? void 0 : T.type) === "quarterly") {
885
+ const { startDate: S, endDate: I } = D(o.value, y, s.value, u.value);
886
+ l(S, I, 1);
887
+ return;
888
+ }
889
+ l(o.value, y, 1);
890
+ }
891
+ };
892
+ return {
893
+ internalValue: f,
894
+ onDateInput: (y) => {
895
+ var b, Y, L;
896
+ if (o.value)
897
+ o.value = null, d($.INPUT, f);
898
+ else {
899
+ let O = y;
900
+ if (((b = n == null ? void 0 : n.value) == null ? void 0 : b.type) === "weekly") {
901
+ const { startDate: M, endDate: T } = v(y);
902
+ O = M, l(O, T);
903
+ }
904
+ if (((Y = n == null ? void 0 : n.value) == null ? void 0 : Y.type) === "monthly") {
905
+ const { startDate: M, endDate: T } = m(y);
906
+ O = M, l(O, T);
907
+ }
908
+ if (((L = n == null ? void 0 : n.value) == null ? void 0 : L.type) === "quarterly") {
909
+ const { startDate: M, endDate: T } = D(y);
910
+ O = M, l(O, T);
911
+ }
912
+ o.value = O, _(O);
913
+ }
914
+ },
915
+ onMouseOver: _
916
+ };
917
+ };
918
+ function Re(e, t, a) {
919
+ return W(e, t * 12, a);
920
+ }
921
+ function Nt(e, t, a) {
922
+ return Re(e, -t, a);
923
+ }
924
+ const bt = ee({
925
+ name: "calendar",
926
+ components: { CalendarMonth: ge, CalendarYear: ke },
927
+ props: {
928
+ /**
929
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
930
+ */
931
+ firstDayOfWeek: {
932
+ type: Number,
933
+ default: H.MONDAY,
934
+ validator: (e) => Object.values(H).includes(e)
935
+ },
936
+ /**
937
+ * The selected granularity configuration
938
+ */
939
+ granularity: {
940
+ type: Object,
941
+ default: null
942
+ },
943
+ /**
944
+ * Indicate if a date should be disabled or not
945
+ */
946
+ isDateDisabled: { type: Function, default: void 0 },
947
+ /**
948
+ * Enables the Date Range calendar
949
+ */
950
+ isRange: { type: Boolean, default: !1 },
951
+ /**
952
+ * Set a maximum number of dates to be selectable by the range.
953
+ */
954
+ maxRange: { type: Number, default: null, validator: (e) => !e || e > 0 },
955
+ /**
956
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
957
+ */
958
+ min: { type: Date, default: null },
959
+ /**
960
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
961
+ */
962
+ max: { type: Date, default: null },
963
+ /**
964
+ * Number of months rendered on pane
965
+ */
966
+ numberOfMonths: {
967
+ type: Number,
968
+ default: 3,
969
+ validator: (e) => e >= 1
970
+ },
971
+ /**
972
+ * Upon opening date range picker, end date's month will be pre-selected.
973
+ */
974
+ showEndDateOnOpen: { type: Boolean, default: !1 },
975
+ /**
976
+ * Selected date. Can be a single Date or a CalendarRangeDate
977
+ * instance that contains startDate and endDate attributes.
978
+ */
979
+ value: { type: [Date, Object], default: void 0 },
980
+ /**
981
+ * Default start date for the calendar pane
982
+ */
983
+ defaultDisplayMonth: {
984
+ type: String,
985
+ default: null,
986
+ validator: (e) => /^\d{4}-(0?[1-9]|1[012])(-(0?[1-9]|[12][0-9]|3[01]))?$/.test(e)
987
+ },
988
+ /**
989
+ * The type of calendar to display. Defaults to showing days.
990
+ */
991
+ variant: {
992
+ type: String,
993
+ default: "day",
994
+ validator: (e) => Object.values(ve).includes(e)
995
+ }
996
+ },
997
+ emit: [$.INPUT, $.START_DATE_SELECTED, $.END_DATE_SELECTED],
998
+ setup(e, { emit: t }) {
999
+ const a = j(null), n = j();
1000
+ K(
1001
+ () => e.value,
1002
+ () => {
1003
+ var o, l, _;
1004
+ if (e.isRange)
1005
+ n.value = e != null && e.showEndDateOnOpen && ((o = e.value) != null && o.endDate) ? (l = e.value) == null ? void 0 : l.endDate : ((_ = e.value) == null ? void 0 : _.startDate) || /* @__PURE__ */ new Date();
1006
+ else {
1007
+ const x = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1008
+ n.value = e.value || x;
1009
+ }
1010
+ },
1011
+ { immediate: !0, deep: !0 }
1012
+ );
1013
+ const r = k(
1014
+ () => e.variant === ve.MONTH ? ke : ge
1015
+ ), s = k(() => ({
1016
+ "b-calendar__range": e.isRange
1017
+ })), { internalValue: u, onDateInput: d, onMouseOver: h } = e.isRange ? Mt(
1018
+ {
1019
+ selectedDate: F(e, "value"),
1020
+ isDateDisabled: e.isDateDisabled,
1021
+ maxRange: F(e, "maxRange"),
1022
+ granularity: F(e, "granularity"),
1023
+ firstDayOfWeek: e.firstDayOfWeek,
1024
+ min: F(e, "min"),
1025
+ max: F(e, "max")
1026
+ },
1027
+ t
1028
+ ) : Dt(
1029
+ {
1030
+ selectedDate: F(e, "value"),
1031
+ firstDayOfWeek: e.firstDayOfWeek
1032
+ },
1033
+ t
1034
+ ), i = (o) => e.numberOfMonths === 1 ? q.UNIQUE : o === 0 ? q.FIRST : o === e.numberOfMonths - 1 ? q.LAST : q.MIDDLE, v = k(() => (o) => {
1035
+ const l = e != null && e.showEndDateOnOpen && e.isRange ? Z(n.value, e.numberOfMonths - 1) : n.value;
1036
+ return W(l, o);
1037
+ }), m = k(() => (o) => {
1038
+ const l = e != null && e.showEndDateOnOpen ? Nt(n.value, e.numberOfMonths - 1) : n.value;
1039
+ return Re(l, o);
1040
+ });
1041
+ return {
1042
+ // Refs
1043
+ calendarRef: a,
1044
+ // Values
1045
+ baseDate: n,
1046
+ calendarComponent: r,
1047
+ conditionalClasses: s,
1048
+ internalValue: u,
1049
+ // Methods
1050
+ calculateOffsetMonth: v,
1051
+ calculateOffsetYear: m,
1052
+ calendarPosition: i,
1053
+ // Events
1054
+ onDateInput: d,
1055
+ onMouseOver: h,
1056
+ calculateNextMonths: (o = 1) => {
1057
+ n.value = W(n.value, o);
1058
+ },
1059
+ calculatePreviousMonths: (o = 1) => {
1060
+ n.value = Z(n.value, o);
1061
+ }
1062
+ };
1063
+ }
1064
+ });
1065
+ var gt = function() {
1066
+ var t = this, a = t._self._c;
1067
+ return t._self._setupProxy, a("div", { staticClass: "b-calendar", class: t.conditionalClasses }, t._l(t.numberOfMonths, function(n, r) {
1068
+ return a(t.calendarComponent, { key: `calendar-${r}`, ref: t.numberOfMonths === 1 ? "calendarRef" : null, refInFor: !0, tag: "component", attrs: { "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, month: t.calculateOffsetMonth(r), year: t.calculateOffsetYear(r), position: t.calendarPosition(r), min: t.min, max: t.max, "is-range": t.isRange, "start-date": t.internalValue.startDate, "end-date": t.internalValue.endDate, granularity: t.granularity }, on: { input: t.onDateInput, mouseover: t.onMouseOver, changeDay: t.onMouseOver, nextMonth: t.calculateNextMonths, previousMonth: t.calculatePreviousMonths } });
1069
+ }), 1);
1070
+ }, kt = [], Et = /* @__PURE__ */ te(
1071
+ bt,
1072
+ gt,
1073
+ kt,
1074
+ !1,
1075
+ null,
1076
+ "7b26a1ab"
1077
+ );
1078
+ const Ut = Et.exports;
1079
+ export {
1080
+ H as C,
1081
+ ve as a,
1082
+ Ut as b,
1083
+ $ as c,
1084
+ q as d,
1085
+ Bt as e,
1086
+ V as f,
1087
+ De as g,
1088
+ W as h,
1089
+ ne as i,
1090
+ p as j,
1091
+ se as k,
1092
+ me as l,
1093
+ Z as m,
1094
+ fe as n,
1095
+ de as o,
1096
+ ht as p,
1097
+ be as q,
1098
+ oe as s,
1099
+ _t as u
1100
+ };
1101
+ //# sourceMappingURL=calendar.C8DpZ4Sr.js.map