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