@adyen/bento-vue3 1.51.0 → 1.53.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 (275) hide show
  1. package/dist/@types/components.d.ts +2 -0
  2. package/dist/@types/index.d.ts +583 -79
  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/base-modal.css +1 -1
  8. package/dist/assets/button-actions-with-menu.css +1 -1
  9. package/dist/assets/calendar.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox-input.css +1 -1
  12. package/dist/assets/checkbox.css +1 -1
  13. package/dist/assets/dashed-underline.css +1 -1
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-picker.css +1 -1
  16. package/dist/assets/date-range-picker.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/file-uploader.css +1 -1
  20. package/dist/assets/filter-bar.css +1 -1
  21. package/dist/assets/form-layout-title.css +1 -1
  22. package/dist/assets/header-with-views.css +1 -0
  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/menu.css +1 -1
  28. package/dist/assets/modal-fullscreen.css +1 -1
  29. package/dist/assets/popover.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/summary-grid-item-custom.css +1 -1
  32. package/dist/assets/use-cached-selected-values.css +1 -1
  33. package/dist/button.js +1 -1
  34. package/dist/card.js +1 -1
  35. package/dist/checkbox.js +3 -3
  36. package/dist/chunks/{action-bar.BW9db7ja.js → action-bar.PIz6tShf.js} +5 -5
  37. package/dist/chunks/{action-bar.BW9db7ja.js.map → action-bar.PIz6tShf.js.map} +1 -1
  38. package/dist/chunks/{alert.eqWeCHyL.js → alert.DEf0borp.js} +23 -23
  39. package/dist/chunks/alert.DEf0borp.js.map +1 -0
  40. package/dist/chunks/{base-modal.BRYHc9Ez.js → base-modal.D4INiJGX.js} +4 -4
  41. package/dist/chunks/{base-modal.BRYHc9Ez.js.map → base-modal.D4INiJGX.js.map} +1 -1
  42. package/dist/chunks/bin.CA6UQCNZ.js +37 -0
  43. package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
  44. package/dist/chunks/button-actions-with-menu.DFD7gbdT.js +174 -0
  45. package/dist/chunks/button-actions-with-menu.DFD7gbdT.js.map +1 -0
  46. package/dist/chunks/{button-actions.BPnsl_QP.js → button-actions.BvGAE7sw.js} +3 -3
  47. package/dist/chunks/{button-actions.BPnsl_QP.js.map → button-actions.BvGAE7sw.js.map} +1 -1
  48. package/dist/chunks/calendar.DKHNrb9_.js +1252 -0
  49. package/dist/chunks/calendar.DKHNrb9_.js.map +1 -0
  50. package/dist/chunks/{card.BwC4MSjn.js → card.IrL_Fw-f.js} +2 -2
  51. package/dist/chunks/{card.BwC4MSjn.js.map → card.IrL_Fw-f.js.map} +1 -1
  52. package/dist/chunks/{checkbox-group.Bzd-qpJ-.js → checkbox-group.X2fi2jkS.js} +4 -4
  53. package/dist/chunks/{checkbox-group.Bzd-qpJ-.js.map → checkbox-group.X2fi2jkS.js.map} +1 -1
  54. package/dist/chunks/{checkbox-input.XtCjXis9.js → checkbox-input.CgbJsFXD.js} +61 -55
  55. package/dist/chunks/checkbox-input.CgbJsFXD.js.map +1 -0
  56. package/dist/chunks/{checkbox.DJRe4ync.js → checkbox.CXZQtFhM.js} +102 -87
  57. package/dist/chunks/checkbox.CXZQtFhM.js.map +1 -0
  58. package/dist/chunks/{checkmark-circle-fill.D9gNCN0T.js → checkmark-circle-fill.jicbqe7k.js} +11 -11
  59. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +1 -0
  60. package/dist/chunks/{click-outside.DSszkIvs.js → click-outside.C1Ud8AA2.js} +2 -2
  61. package/dist/chunks/{click-outside.DSszkIvs.js.map → click-outside.C1Ud8AA2.js.map} +1 -1
  62. package/dist/chunks/{code-snippet.0HhLVaJR.js → code-snippet.CcdsPxT7.js} +5 -5
  63. package/dist/chunks/{code-snippet.0HhLVaJR.js.map → code-snippet.CcdsPxT7.js.map} +1 -1
  64. package/dist/chunks/{controls-group.DnX2B502.js → controls-group.ClMNznTz.js} +2 -2
  65. package/dist/chunks/{controls-group.DnX2B502.js.map → controls-group.ClMNznTz.js.map} +1 -1
  66. package/dist/chunks/{copy.BzeHBtEF.js → copy.BYG9aoNO.js} +2 -2
  67. package/dist/chunks/{copy.BzeHBtEF.js.map → copy.BYG9aoNO.js.map} +1 -1
  68. package/dist/chunks/{cross-circle-fill.DLWo6wBR.js → cross-circle-fill.B7YpDLTK.js} +18 -18
  69. package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +1 -0
  70. package/dist/chunks/{dashboard-section.CySxZmlx.js → dashboard-section.Dz9GpOvy.js} +3 -3
  71. package/dist/chunks/{dashboard-section.CySxZmlx.js.map → dashboard-section.Dz9GpOvy.js.map} +1 -1
  72. package/dist/chunks/{dashed-underline.CCKLdMc7.js → dashed-underline.BuCIjMch.js} +11 -11
  73. package/dist/chunks/{dashed-underline.CCKLdMc7.js.map → dashed-underline.BuCIjMch.js.map} +1 -1
  74. package/dist/chunks/{data-grid-template.iM84gKjt.js → data-grid-template.B4jxtwoW.js} +2 -2
  75. package/dist/chunks/{data-grid-template.iM84gKjt.js.map → data-grid-template.B4jxtwoW.js.map} +1 -1
  76. package/dist/chunks/{data-grid.B2L_4qN7.js → data-grid.CLu8mvil.js} +45 -33
  77. package/dist/chunks/data-grid.CLu8mvil.js.map +1 -0
  78. package/dist/chunks/{date-picker.CMi0Kuy3.js → date-picker.CA2i6QxD.js} +123 -100
  79. package/dist/chunks/date-picker.CA2i6QxD.js.map +1 -0
  80. package/dist/chunks/date-range-picker.DVQ-j-JX.js +1107 -0
  81. package/dist/chunks/date-range-picker.DVQ-j-JX.js.map +1 -0
  82. package/dist/chunks/{date.Cvfyq77s.js → date.DoJuTLhO.js} +17 -17
  83. package/dist/chunks/{date.Cvfyq77s.js.map → date.DoJuTLhO.js.map} +1 -1
  84. package/dist/chunks/{directive.O3yEdalv.js → directive.Cbdox5VL.js} +2 -2
  85. package/dist/chunks/{directive.O3yEdalv.js.map → directive.Cbdox5VL.js.map} +1 -1
  86. package/dist/chunks/{dropdown-default-textbox.Filez078.js → dropdown-default-textbox.CwsgzDpx.js} +2 -2
  87. package/dist/chunks/{dropdown-default-textbox.Filez078.js.map → dropdown-default-textbox.CwsgzDpx.js.map} +1 -1
  88. package/dist/chunks/{dropdown-tag.B4-3z8xz.js → dropdown-tag.DFWV7Zj_.js} +4 -4
  89. package/dist/chunks/{dropdown-tag.B4-3z8xz.js.map → dropdown-tag.DFWV7Zj_.js.map} +1 -1
  90. package/dist/chunks/{dropdown.CRLx2Juh.js → dropdown.RVt9T6j5.js} +212 -201
  91. package/dist/chunks/dropdown.RVt9T6j5.js.map +1 -0
  92. package/dist/chunks/{error-message.68kVjf_N.js → error-message.BQ5MlnLg.js} +3 -3
  93. package/dist/chunks/{error-message.68kVjf_N.js.map → error-message.BQ5MlnLg.js.map} +1 -1
  94. package/dist/chunks/es6.BtaxuP0b.js.map +1 -1
  95. package/dist/chunks/{file-uploader.Cz89e0Ci.js → file-uploader.DJLGEmtF.js} +468 -479
  96. package/dist/chunks/file-uploader.DJLGEmtF.js.map +1 -0
  97. package/dist/chunks/filter-bar.GGHRoo6O.js +2760 -0
  98. package/dist/chunks/filter-bar.GGHRoo6O.js.map +1 -0
  99. package/dist/chunks/{focus-trap.DPJj05sV.js → focus-trap.D-HSKa_Q.js} +2 -2
  100. package/dist/chunks/{focus-trap.DPJj05sV.js.map → focus-trap.D-HSKa_Q.js.map} +1 -1
  101. package/dist/chunks/{footer-actions.DtbsjfSM.js → footer-actions.DK3pMfDY.js} +2 -2
  102. package/dist/chunks/{footer-actions.DtbsjfSM.js.map → footer-actions.DK3pMfDY.js.map} +1 -1
  103. package/dist/chunks/{form-layout-title.B7phPY2m.js → form-layout-title.BWCOZyay.js} +62 -60
  104. package/dist/chunks/form-layout-title.BWCOZyay.js.map +1 -0
  105. package/dist/chunks/header-with-views.BkcFu7QW.js +2354 -0
  106. package/dist/chunks/header-with-views.BkcFu7QW.js.map +1 -0
  107. package/dist/chunks/header.CyTcPWF4.js +234 -0
  108. package/dist/chunks/header.CyTcPWF4.js.map +1 -0
  109. package/dist/chunks/index.BDuTpjD8.js +40 -0
  110. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  111. package/dist/chunks/index.BxBB1rsx.js +15 -0
  112. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  113. package/dist/chunks/index.C5sL_d0I.js +386 -0
  114. package/dist/chunks/{index.BS3BeXQJ.js.map → index.C5sL_d0I.js.map} +1 -1
  115. package/dist/chunks/index.DD7TppDb.js +10 -0
  116. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  117. package/dist/chunks/{info-icon-with-popover.pHwJeQxm.js → info-icon-with-popover.DgZh2mnN.js} +3 -3
  118. package/dist/chunks/{info-icon-with-popover.pHwJeQxm.js.map → info-icon-with-popover.DgZh2mnN.js.map} +1 -1
  119. package/dist/chunks/{info-icon.DUUa2W2z.js → info-icon.DxOAiUg4.js} +3 -3
  120. package/dist/chunks/{info-icon.DUUa2W2z.js.map → info-icon.DxOAiUg4.js.map} +1 -1
  121. package/dist/chunks/{info.CpPLBOVg.js → info.HK3R7Drc.js} +9 -9
  122. package/dist/chunks/info.HK3R7Drc.js.map +1 -0
  123. package/dist/chunks/{input-field-password.zIUeIG8i.js → input-field-password.BSJMbPHf.js} +134 -127
  124. package/dist/chunks/input-field-password.BSJMbPHf.js.map +1 -0
  125. package/dist/chunks/{input-field-phone-number.BGS23WKe.js → input-field-phone-number.BtRMkC84.js} +348 -345
  126. package/dist/chunks/{input-field-phone-number.BGS23WKe.js.map → input-field-phone-number.BtRMkC84.js.map} +1 -1
  127. package/dist/chunks/input-field.CRlXtS3z.js +298 -0
  128. package/dist/chunks/input-field.CRlXtS3z.js.map +1 -0
  129. package/dist/chunks/{inspector.types.9S8hNOjR.js → inspector.types.s0va--Nn.js} +3 -3
  130. package/dist/chunks/{inspector.types.9S8hNOjR.js.map → inspector.types.s0va--Nn.js.map} +1 -1
  131. package/dist/chunks/{layout-row.BAz7JrXo.js → layout-row.CwwbWO7s.js} +2 -2
  132. package/dist/chunks/{layout-row.BAz7JrXo.js.map → layout-row.CwwbWO7s.js.map} +1 -1
  133. package/dist/chunks/{listbox-option-tag.D557okR8.js → listbox-option-tag.2k0hRv0z.js} +2 -2
  134. package/dist/chunks/{listbox-option-tag.D557okR8.js.map → listbox-option-tag.2k0hRv0z.js.map} +1 -1
  135. package/dist/chunks/{menu.ZE0cTcKL.js → menu.DBRBVdsd.js} +119 -118
  136. package/dist/chunks/menu.DBRBVdsd.js.map +1 -0
  137. package/dist/chunks/{modal-fullscreen.CjZh3U8e.js → modal-fullscreen.POY-6qYC.js} +3 -3
  138. package/dist/chunks/{modal-fullscreen.CjZh3U8e.js.map → modal-fullscreen.POY-6qYC.js.map} +1 -1
  139. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js} +4 -4
  140. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.C4Z_Q8bq.js.map → modal.vue_vue_type_script_setup_true_lang.CGV0E6eK.js.map} +1 -1
  141. package/dist/chunks/{on-click-outside.MUWbmGDn.js → on-click-outside.D9aY9g8G.js} +3 -2
  142. package/dist/chunks/{on-click-outside.MUWbmGDn.js.map → on-click-outside.D9aY9g8G.js.map} +1 -1
  143. package/dist/chunks/{pagination.BSp5RwM0.js → pagination.TWtayPVy.js} +2 -2
  144. package/dist/chunks/{pagination.BSp5RwM0.js.map → pagination.TWtayPVy.js.map} +1 -1
  145. package/dist/chunks/{payment-method.BACjrzKP.js → payment-method.CLUppDo_.js} +7 -7
  146. package/dist/chunks/payment-method.CLUppDo_.js.map +1 -0
  147. package/dist/chunks/{popover.DLyVEjCd.js → popover.BBnUL5Y_.js} +3 -3
  148. package/dist/chunks/{popover.DLyVEjCd.js.map → popover.BBnUL5Y_.js.map} +1 -1
  149. package/dist/chunks/{popper-container.Bx3CBGg6.js → popper-container.Be3h7X17.js} +2 -2
  150. package/dist/chunks/{popper-container.Bx3CBGg6.js.map → popper-container.Be3h7X17.js.map} +1 -1
  151. package/dist/chunks/{promo-banner.Clae7YGL.js → promo-banner.BdaUFMsl.js} +2 -2
  152. package/dist/chunks/{promo-banner.Clae7YGL.js.map → promo-banner.BdaUFMsl.js.map} +1 -1
  153. package/dist/chunks/{radio-group.Bdy7_UIu.js → radio-group.BUazlUAi.js} +4 -4
  154. package/dist/chunks/{radio-group.Bdy7_UIu.js.map → radio-group.BUazlUAi.js.map} +1 -1
  155. package/dist/chunks/{search-bar.uUWWZpqL.js → search-bar.21CWuOHb.js} +5 -5
  156. package/dist/chunks/{search-bar.uUWWZpqL.js.map → search-bar.21CWuOHb.js.map} +1 -1
  157. package/dist/chunks/{search.BwQq1yRg.js → search.CW_aTqip.js} +13 -13
  158. package/dist/chunks/search.CW_aTqip.js.map +1 -0
  159. package/dist/chunks/{secondary-nav.DJudnYiY.js → secondary-nav.CUQi4Ybt.js} +3 -3
  160. package/dist/chunks/{secondary-nav.DJudnYiY.js.map → secondary-nav.CUQi4Ybt.js.map} +1 -1
  161. package/dist/chunks/{segmented-control.BqJXrEmp.js → segmented-control.BZJ9DzRF.js} +2 -2
  162. package/dist/chunks/{segmented-control.BqJXrEmp.js.map → segmented-control.BZJ9DzRF.js.map} +1 -1
  163. package/dist/chunks/{selection-card-group.COMI4GGI.js → selection-card-group.Bdrx1b6M.js} +12 -12
  164. package/dist/chunks/{selection-card-group.COMI4GGI.js.map → selection-card-group.Bdrx1b6M.js.map} +1 -1
  165. package/dist/chunks/{sidepanel.VwZpyqJr.js → sidepanel.D_bGUcyi.js} +4 -4
  166. package/dist/chunks/{sidepanel.VwZpyqJr.js.map → sidepanel.D_bGUcyi.js.map} +1 -1
  167. package/dist/chunks/{structured-list-item.BZJQzyt_.js → structured-list-item.r1jYiX6Y.js} +5 -5
  168. package/dist/chunks/{structured-list-item.BZJQzyt_.js.map → structured-list-item.r1jYiX6Y.js.map} +1 -1
  169. package/dist/chunks/{summary-grid-item-custom.rBC-2kKM.js → summary-grid-item-custom.ACP0RH0N.js} +299 -198
  170. package/dist/chunks/summary-grid-item-custom.ACP0RH0N.js.map +1 -0
  171. package/dist/chunks/{tag.CXADLCgG.js → tag.DVkBzXMx.js} +2 -2
  172. package/dist/chunks/{tag.CXADLCgG.js.map → tag.DVkBzXMx.js.map} +1 -1
  173. package/dist/chunks/{teleport.B1NhF5-O.js → teleport.DfTpEQBR.js} +2 -2
  174. package/dist/chunks/{teleport.B1NhF5-O.js.map → teleport.DfTpEQBR.js.map} +1 -1
  175. package/dist/chunks/{textarea.4s69xpG3.js → textarea.C8R71Q4l.js} +2 -2
  176. package/dist/chunks/{textarea.4s69xpG3.js.map → textarea.C8R71Q4l.js.map} +1 -1
  177. package/dist/chunks/{timeline-item.DOoLkIox.js → timeline-item.DBeAlt3N.js} +12 -11
  178. package/dist/chunks/{timeline-item.DOoLkIox.js.map → timeline-item.DBeAlt3N.js.map} +1 -1
  179. package/dist/chunks/{tooltip.BtfIbhGU.js → tooltip.Cbs_YIap.js} +2 -2
  180. package/dist/chunks/{tooltip.BtfIbhGU.js.map → tooltip.Cbs_YIap.js.map} +1 -1
  181. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js → tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js} +7 -7
  182. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.4smMvopK.js.map +1 -0
  183. package/dist/chunks/{use-cached-selected-values.9xqNZAmj.js → use-cached-selected-values.Chb18cq_.js} +146 -137
  184. package/dist/chunks/{use-cached-selected-values.9xqNZAmj.js.map → use-cached-selected-values.Chb18cq_.js.map} +1 -1
  185. package/dist/click-outside.js +1 -1
  186. package/dist/code-snippet.js +1 -1
  187. package/dist/dashboard-template.js +1 -1
  188. package/dist/dashed-underline.js +2 -2
  189. package/dist/data-grid-template.js +1 -1
  190. package/dist/data-grid.js +1 -1
  191. package/dist/date-picker.js +2 -2
  192. package/dist/date-range-picker.js +2 -2
  193. package/dist/date.js +1 -1
  194. package/dist/dropdown.js +4 -4
  195. package/dist/file-uploader.js +1 -1
  196. package/dist/filter-bar.js +1 -1
  197. package/dist/focus-trap.js +1 -1
  198. package/dist/form-layout.js +1 -1
  199. package/dist/header-with-views.js +5 -0
  200. package/dist/header-with-views.js.map +1 -0
  201. package/dist/header.js +1 -1
  202. package/dist/index.js +201 -199
  203. package/dist/index.js.map +1 -1
  204. package/dist/info-icon.js +1 -1
  205. package/dist/input-field-password.js +1 -1
  206. package/dist/input-field-phone-number.js +1 -1
  207. package/dist/input-field.js +1 -1
  208. package/dist/inspector.js +1 -1
  209. package/dist/internal.js +35 -33
  210. package/dist/layout.js +1 -1
  211. package/dist/menu.js +1 -1
  212. package/dist/modal-fullscreen.js +1 -1
  213. package/dist/modal.js +2 -2
  214. package/dist/pagination.js +1 -1
  215. package/dist/payment-method.js +1 -1
  216. package/dist/popover.js +1 -1
  217. package/dist/popper-container.js +1 -1
  218. package/dist/promo-banner.js +1 -1
  219. package/dist/radio-group.js +1 -1
  220. package/dist/search-bar.js +2 -2
  221. package/dist/secondary-nav.js +1 -1
  222. package/dist/segmented-control.js +1 -1
  223. package/dist/selection-card.js +1 -1
  224. package/dist/sidepanel.js +1 -1
  225. package/dist/structured-list.js +1 -1
  226. package/dist/styles/bento-dark.css +73 -1
  227. package/dist/styles/bento-light.css +73 -1
  228. package/dist/styles/bento.css +73 -1
  229. package/dist/styles/legacy.css +75 -3
  230. package/dist/styles/styleguide.css +73 -1
  231. package/dist/summary-grid.js +1 -1
  232. package/dist/tag.js +1 -1
  233. package/dist/textarea.js +1 -1
  234. package/dist/timeline.js +1 -1
  235. package/dist/tutorial.js +1 -1
  236. package/dist/use-form-v4.js +8300 -0
  237. package/dist/use-form-v4.js.map +1 -0
  238. package/dist/web-types.json +1 -1
  239. package/package.json +8 -7
  240. package/dist/chunks/alert.eqWeCHyL.js.map +0 -1
  241. package/dist/chunks/button-actions-with-menu.Hl8tUKa4.js +0 -119
  242. package/dist/chunks/button-actions-with-menu.Hl8tUKa4.js.map +0 -1
  243. package/dist/chunks/calendar.DfN1__E_.js +0 -971
  244. package/dist/chunks/calendar.DfN1__E_.js.map +0 -1
  245. package/dist/chunks/checkbox-input.XtCjXis9.js.map +0 -1
  246. package/dist/chunks/checkbox.DJRe4ync.js.map +0 -1
  247. package/dist/chunks/checkmark-circle-fill.D9gNCN0T.js.map +0 -1
  248. package/dist/chunks/cross-circle-fill.DLWo6wBR.js.map +0 -1
  249. package/dist/chunks/data-grid.B2L_4qN7.js.map +0 -1
  250. package/dist/chunks/date-picker.CMi0Kuy3.js.map +0 -1
  251. package/dist/chunks/date-range-picker.-KwSzmW_.js +0 -1087
  252. package/dist/chunks/date-range-picker.-KwSzmW_.js.map +0 -1
  253. package/dist/chunks/dropdown.CRLx2Juh.js.map +0 -1
  254. package/dist/chunks/file-uploader.Cz89e0Ci.js.map +0 -1
  255. package/dist/chunks/filter-bar.bfUnCTPj.js +0 -2807
  256. package/dist/chunks/filter-bar.bfUnCTPj.js.map +0 -1
  257. package/dist/chunks/form-layout-title.B7phPY2m.js.map +0 -1
  258. package/dist/chunks/header.ITEMuMAU.js +0 -256
  259. package/dist/chunks/header.ITEMuMAU.js.map +0 -1
  260. package/dist/chunks/index.BS3BeXQJ.js +0 -368
  261. package/dist/chunks/index.CrhTVr5J.js +0 -10
  262. package/dist/chunks/index.CrhTVr5J.js.map +0 -1
  263. package/dist/chunks/index.DDnf1O9p.js +0 -22
  264. package/dist/chunks/index.DDnf1O9p.js.map +0 -1
  265. package/dist/chunks/index.DPafeRJa.js +0 -10
  266. package/dist/chunks/index.DPafeRJa.js.map +0 -1
  267. package/dist/chunks/info.CpPLBOVg.js.map +0 -1
  268. package/dist/chunks/input-field-password.zIUeIG8i.js.map +0 -1
  269. package/dist/chunks/input-field.y006Hyc1.js +0 -292
  270. package/dist/chunks/input-field.y006Hyc1.js.map +0 -1
  271. package/dist/chunks/menu.ZE0cTcKL.js.map +0 -1
  272. package/dist/chunks/payment-method.BACjrzKP.js.map +0 -1
  273. package/dist/chunks/search.BwQq1yRg.js.map +0 -1
  274. package/dist/chunks/summary-grid-item-custom.rBC-2kKM.js.map +0 -1
  275. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.DRlP0P1P.js.map +0 -1
@@ -0,0 +1,1252 @@
1
+ import { defineComponent as De, computed as k, resolveComponent as ne, createElementBlock as $, openBlock as O, withKeys as oe, normalizeClass as Ae, createElementVNode as A, createVNode as K, ref as Q, watch as se, nextTick as lt, toRef as j, resolveDirective as ut, withDirectives as He, mergeProps as Ve, toHandlers as xe, createBlock as ee, createCommentVNode as ce, withCtx as J, createTextVNode as Oe, toDisplayString as we, Fragment as le, renderList as ue, unref as _, reactive as qe, resolveDynamicComponent as it } from "vue";
2
+ import { r as S, t as w, a as Re, g as dt } from "./get-date-locale.BN8xEjY0.js";
3
+ import { t as I, B as Ke, a as Xe, f as Pe } from "./date.DoJuTLhO.js";
4
+ import { d as Ce, a as Me } from "./index.BDuTpjD8.js";
5
+ import { B as Se } from "./button.6HMG0xEY.js";
6
+ import { B as ze } from "./typography.DN5eC5ch.js";
7
+ import { _ as me } from "./_plugin-vue_export-helper.CHgC5LLL.js";
8
+ import { a as Qe, C as Je } from "./chevron-left.BF63HtOH.js";
9
+ import "./events.FNmSWp_P.js";
10
+ import { a as Ze } from "./keyboard-navigation.CqgGzfZQ.js";
11
+ import { g as et } from "./generate-uid.NJ8tVoha.js";
12
+ import { u as tt } from "./i18n.D9azDLPe.js";
13
+ import { h as ct } from "./index.C5sL_d0I.js";
14
+ import "../assets/calendar.css";
15
+ function fe(e, t) {
16
+ S(2, arguments);
17
+ var a = w(e), n = I(t);
18
+ return isNaN(n) ? /* @__PURE__ */ new Date(NaN) : (n && a.setDate(a.getDate() + n), a);
19
+ }
20
+ function te(e, t) {
21
+ S(2, arguments);
22
+ var a = w(e), n = I(t);
23
+ if (isNaN(n))
24
+ return /* @__PURE__ */ new Date(NaN);
25
+ if (!n)
26
+ return a;
27
+ var o = a.getDate(), s = new Date(a.getTime());
28
+ s.setMonth(a.getMonth() + n + 1, 0);
29
+ var l = s.getDate();
30
+ return o >= l ? s : (a.setFullYear(s.getFullYear(), s.getMonth(), o), a);
31
+ }
32
+ function ge(e, t) {
33
+ S(1, arguments);
34
+ var a = t || {}, n = a.locale, o = n && n.options && n.options.weekStartsOn, s = o == null ? 0 : I(o), l = a.weekStartsOn == null ? s : I(a.weekStartsOn);
35
+ if (!(l >= 0 && l <= 6))
36
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
37
+ var r = w(e), i = r.getDay(), d = (i < l ? 7 : 0) + i - l;
38
+ return r.setDate(r.getDate() - d), r.setHours(0, 0, 0, 0), r;
39
+ }
40
+ function ae(e) {
41
+ S(1, arguments);
42
+ var t = w(e);
43
+ return t.setHours(0, 0, 0, 0), t;
44
+ }
45
+ var vt = 864e5;
46
+ function ft(e, t) {
47
+ S(2, arguments);
48
+ var a = ae(e), n = ae(t), o = a.getTime() - Re(a), s = n.getTime() - Re(n);
49
+ return Math.round((o - s) / vt);
50
+ }
51
+ function at(e, t) {
52
+ S(2, arguments);
53
+ var a = I(t);
54
+ return te(e, a * 12);
55
+ }
56
+ function he(e, t) {
57
+ S(2, arguments);
58
+ var a = ae(e), n = ae(t);
59
+ return a.getTime() === n.getTime();
60
+ }
61
+ function Fe(e, t) {
62
+ var 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();
63
+ return a < 0 ? -1 : a > 0 ? 1 : a;
64
+ }
65
+ function Dt(e, t) {
66
+ S(2, arguments);
67
+ var a = w(e), n = w(t), o = Fe(a, n), s = Math.abs(ft(a, n));
68
+ a.setDate(a.getDate() - o * s);
69
+ var l = +(Fe(a, n) === -o), r = o * (s - l);
70
+ return r === 0 ? 0 : r;
71
+ }
72
+ function Ne(e) {
73
+ S(1, arguments);
74
+ var t = w(e);
75
+ return t.setDate(1), t.setHours(0, 0, 0, 0), t;
76
+ }
77
+ function Be(e) {
78
+ S(1, arguments);
79
+ var t = w(e), a = /* @__PURE__ */ new Date(0);
80
+ return a.setFullYear(t.getFullYear(), 0, 1), a.setHours(0, 0, 0, 0), a;
81
+ }
82
+ function be(e, t) {
83
+ S(1, arguments);
84
+ var a = t || {}, n = a.locale, o = n && n.options && n.options.weekStartsOn, s = o == null ? 0 : I(o), l = a.weekStartsOn == null ? s : I(a.weekStartsOn);
85
+ if (!(l >= 0 && l <= 6))
86
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
87
+ var r = w(e), i = r.getDay(), d = (i < l ? -7 : 0) + 6 - (i - l);
88
+ return r.setDate(r.getDate() + d), r.setHours(23, 59, 59, 999), r;
89
+ }
90
+ function mt(e) {
91
+ S(1, arguments);
92
+ var t = w(e), a = t.getFullYear(), n = t.getMonth(), o = /* @__PURE__ */ new Date(0);
93
+ return o.setFullYear(a, n + 1, 0), o.setHours(0, 0, 0, 0), o.getDate();
94
+ }
95
+ function ht(e, t) {
96
+ S(2, arguments);
97
+ var a = I(t);
98
+ return fe(e, -a);
99
+ }
100
+ function ve(e, t) {
101
+ S(2, arguments);
102
+ var a = I(t);
103
+ return te(e, -a);
104
+ }
105
+ function yt(e, t) {
106
+ S(2, arguments);
107
+ var a = w(e), n = w(t);
108
+ return a.getTime() > n.getTime();
109
+ }
110
+ function gt(e, t) {
111
+ S(2, arguments);
112
+ var a = w(e), n = w(t);
113
+ return a.getTime() < n.getTime();
114
+ }
115
+ function ye(e, t) {
116
+ S(2, arguments);
117
+ var a = w(e), n = w(t);
118
+ return a.getFullYear() === n.getFullYear() && a.getMonth() === n.getMonth();
119
+ }
120
+ function Ee(e, t) {
121
+ S(2, arguments);
122
+ var a = w(e).getTime(), n = w(t.start).getTime(), o = w(t.end).getTime();
123
+ if (!(n <= o))
124
+ throw new RangeError("Invalid interval");
125
+ return a >= n && a <= o;
126
+ }
127
+ function Nt(e, t) {
128
+ S(2, arguments);
129
+ var a = w(e), n = I(t), o = a.getFullYear(), s = a.getDate(), l = /* @__PURE__ */ new Date(0);
130
+ l.setFullYear(o, n, 15), l.setHours(0, 0, 0, 0);
131
+ var r = mt(l);
132
+ return a.setMonth(n, Math.min(s, r)), a;
133
+ }
134
+ function bt(e, t) {
135
+ if (S(2, arguments), typeof t != "object" || t === null)
136
+ throw new RangeError("values parameter must be an object");
137
+ var a = w(e);
138
+ return isNaN(a.getTime()) ? /* @__PURE__ */ new Date(NaN) : (t.year != null && a.setFullYear(t.year), t.month != null && (a = Nt(a, t.month)), t.date != null && a.setDate(I(t.date)), t.hours != null && a.setHours(I(t.hours)), t.minutes != null && a.setMinutes(I(t.minutes)), t.seconds != null && a.setSeconds(I(t.seconds)), t.milliseconds != null && a.setMilliseconds(I(t.milliseconds)), a);
139
+ }
140
+ function Et(e, t, a) {
141
+ S(2, arguments);
142
+ var n = {}, o = n.locale, s = o && o.options && o.options.weekStartsOn, l = s == null ? 0 : I(s), r = n.weekStartsOn == null ? l : I(n.weekStartsOn);
143
+ if (!(r >= 0 && r <= 6))
144
+ throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");
145
+ var i = w(e), d = I(t), D = i.getDay(), f = d % 7, v = (f + 7) % 7, m = 7 - r, c = d < 0 || d > 6 ? d - (D + m) % 7 : (v + m) % 7 - (D + m) % 7;
146
+ return fe(i, c);
147
+ }
148
+ function Mt(e, t) {
149
+ S(2, arguments);
150
+ var a = I(t);
151
+ return at(e, -a);
152
+ }
153
+ var G = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(G || {}), x = /* @__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))(x || {}), de = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))(de || {});
154
+ const Ot = {
155
+ /**
156
+ * Date to be displayed as the calendar day. From 1st to 31st (or end of the month defined in the date)
157
+ */
158
+ day: { type: Date, required: !0 },
159
+ /**
160
+ * Indicate if a date should be disabled or not
161
+ */
162
+ disabled: { type: Boolean, default: !1 },
163
+ /**
164
+ * Changes the state of the calendar day to selected.
165
+ */
166
+ selected: { type: Boolean, default: !1 },
167
+ /**
168
+ * When the day is selected, this indicates if the selection is a single date or part of a range.
169
+ * If it's a range it can be at the beginning, middle or end of the selection.
170
+ */
171
+ variant: {
172
+ type: String,
173
+ default: G.SINGLE,
174
+ validator: (e) => Object.values(G).includes(e)
175
+ }
176
+ }, wt = De({
177
+ name: "calendar-month-day",
178
+ components: { BentoDate: Ke },
179
+ inheritAttrs: !0,
180
+ props: Ot,
181
+ emits: [de.CLICK, de.MOUSE_OVER],
182
+ setup(e, { emit: t }) {
183
+ const a = k(() => {
184
+ const s = /* @__PURE__ */ new Date();
185
+ return e.day.getDate() === s.getDate() && e.day.getMonth() === s.getMonth() && e.day.getFullYear() === s.getFullYear();
186
+ });
187
+ return {
188
+ // Values
189
+ conditionalClasses: k(() => ({
190
+ // Variants
191
+ [`b-calendar-month-day--${x.BEGINNING}`]: e.variant === G.BEGINNING,
192
+ [`b-calendar-month-day--${x.MIDDLE}`]: e.variant === G.MIDDLE,
193
+ [`b-calendar-month-day--${x.END}`]: e.variant === G.END,
194
+ [`b-calendar-month-day--${x.SINGLE}`]: e.variant === G.SINGLE,
195
+ // Selected
196
+ [`b-calendar-month-day--${x.UNSELECTED}`]: !e.selected,
197
+ [`b-calendar-month-day--${x.SELECTED}`]: e.selected,
198
+ // Current Day
199
+ [`b-calendar-month-day--${x.CURRENT_DAY}`]: a.value,
200
+ // Disabled
201
+ [`b-calendar-month-day--${x.DISABLED}`]: e.disabled
202
+ })),
203
+ // Enums
204
+ BentoDateFormat: Xe,
205
+ CalendarMonthDayEvent: de,
206
+ // Events
207
+ onClick: (s, l) => {
208
+ e.disabled ? (s.preventDefault(), s.stopPropagation()) : t(de.CLICK, l, e.day);
209
+ }
210
+ };
211
+ }
212
+ }), St = ["tabindex", "aria-selected", "aria-disabled", "data-date"], Tt = { class: "b-calendar-month-day__wrapper" };
213
+ function It(e, t, a, n, o, s) {
214
+ const l = ne("bento-date");
215
+ return O(), $("td", {
216
+ class: Ae(["b-calendar-month-day", e.conditionalClasses]),
217
+ tabindex: e.selected ? "0" : "-1",
218
+ "aria-selected": e.selected ? e.selected : void 0,
219
+ "aria-disabled": e.disabled,
220
+ "data-date": e.day.toDateString(),
221
+ onClick: t[0] || (t[0] = (r) => e.onClick(r, e.day)),
222
+ onMouseover: t[1] || (t[1] = (r) => e.$emit(e.CalendarMonthDayEvent.MOUSE_OVER)),
223
+ onKeydown: t[2] || (t[2] = oe((r) => e.onClick(r, e.day), ["space", "enter"]))
224
+ }, [
225
+ A("div", Tt, [
226
+ K(l, {
227
+ class: "b-calendar-month-day__label",
228
+ date: e.day,
229
+ format: e.BentoDateFormat.DAY_OF_MONTH
230
+ }, null, 8, ["date", "format"])
231
+ ])
232
+ ], 42, St);
233
+ }
234
+ const kt = /* @__PURE__ */ me(wt, [["render", It], ["__scopeId", "data-v-76b748b6"]]);
235
+ var U = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.MOUSE_OVER = "mouseover", e.CHANGE_DAY = "changeDay", e.NEXT_MONTH = "nextMonth", e.PREVIOUS_MONTH = "previousMonth", e))(U || {}), Z = /* @__PURE__ */ ((e) => (e[e.MONDAY = 1] = "MONDAY", e[e.SATURDAY = 6] = "SATURDAY", e[e.SUNDAY = 0] = "SUNDAY", e))(Z || {}), X = /* @__PURE__ */ ((e) => (e.INPUT = "input", e.START_DATE_SELECTED = "start-date-selected", e.END_DATE_SELECTED = "end-date-selected", e))(X || {}), re = /* @__PURE__ */ ((e) => (e.FIRST = "first", e.LAST = "last", e.MIDDLE = "middle", e.UNIQUE = "unique", e))(re || {}), Te = /* @__PURE__ */ ((e) => (e.DAY = "day", e.MONTH = "month", e))(Te || {});
236
+ function _t(e) {
237
+ return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
238
+ }
239
+ var Ie = { exports: {} }, ke = { exports: {} };
240
+ (function(e, t) {
241
+ Object.defineProperty(t, "__esModule", {
242
+ value: !0
243
+ }), t.default = a;
244
+ function a(n) {
245
+ if (n === null || n === !0 || n === !1)
246
+ return NaN;
247
+ var o = Number(n);
248
+ return isNaN(o) ? o : o < 0 ? Math.ceil(o) : Math.floor(o);
249
+ }
250
+ e.exports = t.default;
251
+ })(ke, ke.exports);
252
+ var nt = ke.exports, _e = { exports: {} }, pe = { exports: {} }, Le = { exports: {} };
253
+ (function(e, t) {
254
+ Object.defineProperty(t, "__esModule", {
255
+ value: !0
256
+ }), t.default = a;
257
+ function a(n, o) {
258
+ if (o.length < n)
259
+ throw new TypeError(n + " argument" + (n > 1 ? "s" : "") + " required, but only " + o.length + " present");
260
+ }
261
+ e.exports = t.default;
262
+ })(Le, Le.exports);
263
+ var Ye = Le.exports;
264
+ (function(e, t) {
265
+ Object.defineProperty(t, "__esModule", {
266
+ value: !0
267
+ }), t.default = o;
268
+ var a = n(Ye);
269
+ function n(s) {
270
+ return s && s.__esModule ? s : { default: s };
271
+ }
272
+ function o(s) {
273
+ (0, a.default)(1, arguments);
274
+ var l = Object.prototype.toString.call(s);
275
+ return s instanceof Date || typeof s == "object" && l === "[object Date]" ? new Date(s.getTime()) : typeof s == "number" || l === "[object Number]" ? new Date(s) : ((typeof s == "string" || l === "[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));
276
+ }
277
+ e.exports = t.default;
278
+ })(pe, pe.exports);
279
+ var pt = pe.exports;
280
+ (function(e, t) {
281
+ Object.defineProperty(t, "__esModule", {
282
+ value: !0
283
+ }), t.default = l;
284
+ var a = s(nt), n = s(pt), o = s(Ye);
285
+ function s(r) {
286
+ return r && r.__esModule ? r : { default: r };
287
+ }
288
+ function l(r, i) {
289
+ (0, o.default)(2, arguments);
290
+ var d = (0, n.default)(r), D = (0, a.default)(i);
291
+ return isNaN(D) ? /* @__PURE__ */ new Date(NaN) : (D && d.setDate(d.getDate() + D), d);
292
+ }
293
+ e.exports = t.default;
294
+ })(_e, _e.exports);
295
+ var Lt = _e.exports;
296
+ (function(e, t) {
297
+ Object.defineProperty(t, "__esModule", {
298
+ value: !0
299
+ }), t.default = l;
300
+ var a = s(nt), n = s(Lt), o = s(Ye);
301
+ function s(r) {
302
+ return r && r.__esModule ? r : { default: r };
303
+ }
304
+ function l(r, i) {
305
+ (0, o.default)(2, arguments);
306
+ var d = (0, a.default)(i);
307
+ return (0, n.default)(r, -d);
308
+ }
309
+ e.exports = t.default;
310
+ })(Ie, Ie.exports);
311
+ var $t = Ie.exports;
312
+ const Ue = /* @__PURE__ */ _t($t), ot = ({ currentSelectedDate: e, month: t, isDateDisabled: a, firstDayOfWeek: n }, o) => {
313
+ const s = Q(new Date(t.value));
314
+ se(
315
+ t,
316
+ () => {
317
+ s.value = t.value;
318
+ },
319
+ { immediate: !0 }
320
+ );
321
+ const l = Q(new Date(e.value));
322
+ se(e, () => {
323
+ l.value = new Date(e.value);
324
+ });
325
+ const r = ct(), i = Q(l.value);
326
+ se(r, (u) => {
327
+ const g = u.getAttribute("data-date");
328
+ i.value = g ? new Date(g) : l.value;
329
+ });
330
+ const d = Q({}), D = (u) => (g) => {
331
+ d.value[u.toDateString()] = g;
332
+ }, f = () => {
333
+ d.value = {};
334
+ }, v = (u = 1) => {
335
+ s.value = te(s.value, u), o(U.NEXT_MONTH, u), f();
336
+ }, m = (u = 1) => {
337
+ s.value = ve(s.value, u), o(U.PREVIOUS_MONTH, u), f();
338
+ }, c = (u) => {
339
+ const g = !!d.value[u == null ? void 0 : u.toDateString()];
340
+ u && g && d.value[u.toDateString()].$el.focus();
341
+ }, y = (u) => {
342
+ u.preventDefault(), u.stopImmediatePropagation(), u.stopPropagation();
343
+ }, N = ({ nextDate: u, isIncreasingDays: g, amountOfMonths: L, isCalendarButtonsNav: V }) => {
344
+ if (!V && a && a(u))
345
+ return;
346
+ u.getMonth() === l.value.getMonth() && u.getFullYear() === l.value.getFullYear() ? (l.value = u, c(u)) : (g ? v(L) : m(L), lt(() => {
347
+ const M = u.getMonth() === s.value.getMonth() && u.getFullYear() === s.value.getFullYear();
348
+ a && a(u) || !M || V || (l.value = u, c(u));
349
+ }));
350
+ };
351
+ return {
352
+ // Calendar days ref
353
+ calendarRef: d,
354
+ addDayRef: D,
355
+ /**
356
+ * Month navigation
357
+ */
358
+ showNextMonth: v,
359
+ showPreviousMonth: m,
360
+ /**
361
+ * Focus method
362
+ */
363
+ focusOnDate: c,
364
+ /**
365
+ * Day navigation
366
+ */
367
+ // ArrowRight
368
+ moveToNextDay: (u) => {
369
+ y(u), N({ nextDate: fe(i.value, 1), isIncreasingDays: !0 });
370
+ },
371
+ // ArrowLeft
372
+ moveToPreviousDay: (u) => {
373
+ y(u), N({ nextDate: Ue(i.value, 1), isIncreasingDays: !1 });
374
+ },
375
+ // ArrowUp
376
+ moveToPreviousWeek: (u) => {
377
+ y(u), N({ nextDate: Ue(i.value, 7), isIncreasingDays: !1 });
378
+ },
379
+ // ArrowDown
380
+ moveToNextWeek: (u) => {
381
+ y(u), N({ nextDate: fe(i.value, 7), isIncreasingDays: !0 });
382
+ },
383
+ // Home
384
+ moveToFirstDayOfWeek: (u) => {
385
+ y(u), N({
386
+ nextDate: ge(i.value, { weekStartsOn: n }),
387
+ isIncreasingDays: !1
388
+ });
389
+ },
390
+ moveToFirstMonthOfYear: (u) => {
391
+ y(u);
392
+ const g = Ce(l.value, Be(l.value));
393
+ N({
394
+ nextDate: Be(l.value),
395
+ isIncreasingDays: !1,
396
+ amountOfMonths: g
397
+ });
398
+ },
399
+ // End
400
+ moveToLastDayOfWeek: (u) => {
401
+ y(u), N({
402
+ nextDate: be(i.value, { weekStartsOn: n }),
403
+ isIncreasingDays: !0
404
+ });
405
+ },
406
+ moveToLastMonthOfYear: (u) => {
407
+ y(u);
408
+ const g = bt(l.value, { month: 11, date: 1 }), L = Ce(g, l.value);
409
+ N({
410
+ nextDate: g,
411
+ isIncreasingDays: !0,
412
+ amountOfMonths: L
413
+ });
414
+ },
415
+ // PageUp
416
+ moveToPreviousMonth: (u, g = !1, L = 1) => {
417
+ y(u);
418
+ const V = L;
419
+ N({
420
+ nextDate: ve(i.value, V),
421
+ isIncreasingDays: !1,
422
+ amountOfMonths: V,
423
+ isCalendarButtonsNav: g
424
+ });
425
+ },
426
+ // Shift+PageUp
427
+ moveToPreviousYear: (u, g = !1) => {
428
+ y(u);
429
+ const L = 12;
430
+ N({
431
+ nextDate: ve(i.value, L),
432
+ isIncreasingDays: !1,
433
+ amountOfMonths: L,
434
+ isCalendarButtonsNav: g
435
+ });
436
+ },
437
+ // PageDown
438
+ moveToNextMonth: (u, g = !1, L = 1) => {
439
+ y(u);
440
+ const V = L;
441
+ N({
442
+ nextDate: te(i.value, V),
443
+ isIncreasingDays: !0,
444
+ amountOfMonths: V,
445
+ isCalendarButtonsNav: g
446
+ });
447
+ },
448
+ // Shift-PageDown
449
+ moveToNextYear: (u, g = !1) => {
450
+ y(u);
451
+ const L = 12;
452
+ N({
453
+ nextDate: te(i.value, L),
454
+ isIncreasingDays: !0,
455
+ amountOfMonths: L,
456
+ isCalendarButtonsNav: g
457
+ });
458
+ },
459
+ // Values
460
+ internalDate: l,
461
+ baseDate: s
462
+ };
463
+ }, Ge = {
464
+ "en-US": {
465
+ nextMonth: "Next month",
466
+ previousMonth: "Previous month"
467
+ }
468
+ }, At = De({
469
+ i18n: { messages: Ge },
470
+ name: "calendar-month",
471
+ components: {
472
+ BentoButton: Se,
473
+ BentoTypography: ze,
474
+ CalendarMonthDay: kt,
475
+ ChevronLeftIcon: Je,
476
+ ChevronRightIcon: Qe
477
+ },
478
+ directives: { BentoKeyboardNavigationDirective: Ze },
479
+ props: {
480
+ /**
481
+ * end of the selected range
482
+ */
483
+ endDate: { type: Date, default: null },
484
+ /**
485
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
486
+ */
487
+ firstDayOfWeek: {
488
+ type: Number,
489
+ default: Z.MONDAY,
490
+ validator: (e) => Object.values(Z).includes(e)
491
+ },
492
+ /**
493
+ * Indicate if a date should be disabled or not
494
+ */
495
+ isDateDisabled: { type: Function, default: void 0 },
496
+ /**
497
+ * Indicates if the calendar is part of a range date picker or a sigle date picker
498
+ */
499
+ isRange: { type: Boolean, default: !1 },
500
+ /**
501
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
502
+ */
503
+ min: { type: Date, default: null },
504
+ /**
505
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
506
+ */
507
+ max: { type: Date, default: null },
508
+ /**
509
+ * Month of the year to be displayed in the calendar
510
+ */
511
+ month: { type: Date, required: !0 },
512
+ /**
513
+ * When rendering multiple calendars, this property allows to render the
514
+ * Next and Previous calendar buttons to the right, left or not at all
515
+ * depending on the position: Unique (only 1), First, Middle or Last
516
+ */
517
+ position: {
518
+ type: String,
519
+ default: "unique",
520
+ validator: (e) => Object.values(re).includes(e)
521
+ },
522
+ /**
523
+ * start of the selected range
524
+ */
525
+ startDate: { type: Date, default: null }
526
+ // can be undefined, eslint complains without default
527
+ },
528
+ emits: [
529
+ U.CHANGE_DAY,
530
+ U.INPUT,
531
+ U.NEXT_MONTH,
532
+ U.PREVIOUS_MONTH,
533
+ U.MOUSE_OVER
534
+ ],
535
+ setup(e, { emit: t }) {
536
+ const { locale: a, t: n } = tt({ messages: Ge }), o = dt(), s = et("bento-date-picker-month-label"), l = k(
537
+ () => (M) => {
538
+ var W;
539
+ return e.min && M < e.min || e.max && M > e.max || ((W = e.isDateDisabled) == null ? void 0 : W.call(e, M));
540
+ }
541
+ ), {
542
+ internalDate: r,
543
+ baseDate: i,
544
+ // Calendar refs
545
+ addDayRef: d,
546
+ // Month navigation
547
+ showNextMonth: D,
548
+ showPreviousMonth: f,
549
+ // Day navigation
550
+ moveToNextDay: v,
551
+ moveToPreviousDay: m,
552
+ moveToPreviousWeek: c,
553
+ moveToNextWeek: y,
554
+ moveToFirstDayOfWeek: N,
555
+ moveToLastDayOfWeek: h,
556
+ moveToPreviousMonth: b,
557
+ moveToPreviousYear: Y,
558
+ moveToNextMonth: T,
559
+ moveToNextYear: P,
560
+ focusOnDate: p
561
+ } = ot(
562
+ {
563
+ currentSelectedDate: j(e, "startDate"),
564
+ month: j(e, "month"),
565
+ isDateDisabled: l.value,
566
+ firstDayOfWeek: e.firstDayOfWeek
567
+ },
568
+ t
569
+ ), R = k(
570
+ () => Object.values(Z).includes(e.firstDayOfWeek) ? e.firstDayOfWeek : Z.MONDAY
571
+ ), E = k(() => ["first", "unique"].includes(e.position)), C = k(() => ["last", "unique"].includes(e.position)), B = k(
572
+ () => Pe(i.value, "MMMM yyyy", {
573
+ locale: o[a.value.substring(0, 2)] || o.enUS
574
+ })
575
+ ), z = k(
576
+ () => new Array(7).fill(/* @__PURE__ */ new Date()).map((M, W) => {
577
+ const ie = Et(M, R.value + W);
578
+ return Pe(ie, "EEE", {
579
+ locale: o[a.value.substring(0, 2)] || o.enUS
580
+ });
581
+ })
582
+ ), F = k(() => {
583
+ const M = [], W = Ne(e.month);
584
+ let ie = M[M.push([]) - 1];
585
+ for (; W.getMonth() === e.month.getMonth(); )
586
+ W.getDay() - R.value === 0 && ie.length > 0 && (ie = M[M.push([]) - 1]), ie.push(ae(W)), W.setDate(W.getDate() + 1);
587
+ return M;
588
+ });
589
+ return {
590
+ // Refs
591
+ addDayRef: d,
592
+ // Values
593
+ computedIsDateDisabled: l,
594
+ daysOfWeek: z,
595
+ weeksOfMonth: F,
596
+ formattedMonthDate: B,
597
+ shouldShowNextMonthButton: C,
598
+ shouldShowPreviousMonthButton: E,
599
+ monthLabelId: s,
600
+ // Enums
601
+ CalendarMonthEvent: U,
602
+ // Functions
603
+ isSelectedDate: (M) => r.value && he(r.value, M) && !e.endDate ? !0 : e.startDate && e.endDate && Ee(M, { start: e.startDate, end: e.endDate }),
604
+ showNextMonth: D,
605
+ showPreviousMonth: f,
606
+ dayVariant: (M) => {
607
+ if (!e.isRange || he(e.startDate, e.endDate))
608
+ return G.SINGLE;
609
+ if (e.startDate && he(e.startDate, M))
610
+ return G.BEGINNING;
611
+ if (e.endDate && he(e.endDate, M))
612
+ return G.END;
613
+ if (e.startDate && e.endDate && Ee(M, { start: e.startDate, end: e.endDate }))
614
+ return G.MIDDLE;
615
+ },
616
+ confirmNavigationDate: () => {
617
+ t(U.INPUT, r);
618
+ },
619
+ // Events
620
+ onDayClicked: (M) => {
621
+ t(U.INPUT, M);
622
+ },
623
+ listeners: {
624
+ "keydown:arrow-right": v,
625
+ "keydown:arrow-left": m,
626
+ "keydown:arrow-up": c,
627
+ "keydown:arrow-down": y,
628
+ "keydown:home": N,
629
+ "keydown:end": h,
630
+ "keydown:page-up": b,
631
+ "keydown:shift-page-up": Y,
632
+ "keydown:page-down": T,
633
+ "keydown:shift-page-down": P
634
+ },
635
+ // Exposed methods
636
+ focusOnDate: p,
637
+ moveToNextDay: v,
638
+ moveToPreviousDay: m,
639
+ moveToPreviousWeek: c,
640
+ moveToNextWeek: y,
641
+ moveToFirstDayOfWeek: N,
642
+ moveToLastDayOfWeek: h,
643
+ moveToPreviousMonth: b,
644
+ moveToPreviousYear: Y,
645
+ moveToNextMonth: T,
646
+ moveToNextYear: P,
647
+ // Translations
648
+ t: n
649
+ };
650
+ }
651
+ }), Yt = { class: "b-calendar-month__month-selector" }, Rt = { class: "b-calendar-month__previous" }, Pt = { class: "b-calendar-month__next" }, Ct = ["aria-labelledby"], Ft = { class: "b-calendar-month__week-header" }, Bt = ["colspan"];
652
+ function Ut(e, t, a, n, o, s) {
653
+ const l = ne("chevron-left-icon"), r = ne("bento-button"), i = ne("bento-typography"), d = ne("chevron-right-icon"), D = ne("calendar-month-day"), f = ut("bento-keyboard-navigation-directive");
654
+ return He((O(), $("div", Ve({ class: "b-calendar-month" }, xe(e.listeners, !0)), [
655
+ A("div", Yt, [
656
+ A("div", Rt, [
657
+ e.shouldShowPreviousMonthButton ? (O(), ee(r, {
658
+ key: 0,
659
+ variant: "tertiary",
660
+ onClick: t[0] || (t[0] = (v) => e.moveToPreviousMonth(v, !0))
661
+ }, {
662
+ iconLeft: J(() => [
663
+ K(l, {
664
+ "svg-title": e.t("previousMonth")
665
+ }, null, 8, ["svg-title"])
666
+ ]),
667
+ _: 1
668
+ })) : ce("", !0)
669
+ ]),
670
+ K(i, {
671
+ id: e.monthLabelId,
672
+ el: "h2",
673
+ variant: "title",
674
+ "aria-live": "polite"
675
+ }, {
676
+ default: J(() => [
677
+ Oe(we(e.formattedMonthDate), 1)
678
+ ]),
679
+ _: 1
680
+ }, 8, ["id"]),
681
+ A("div", Pt, [
682
+ e.shouldShowNextMonthButton ? (O(), ee(r, {
683
+ key: 0,
684
+ variant: "tertiary",
685
+ onClick: t[1] || (t[1] = (v) => e.moveToNextMonth(v, !0))
686
+ }, {
687
+ iconLeft: J(() => [
688
+ K(d, {
689
+ "svg-title": e.t("nextMonth")
690
+ }, null, 8, ["svg-title"])
691
+ ]),
692
+ _: 1
693
+ })) : ce("", !0)
694
+ ])
695
+ ]),
696
+ A("table", {
697
+ class: "b-calendar-month__month-container",
698
+ role: "grid",
699
+ "aria-labelledby": e.monthLabelId
700
+ }, [
701
+ A("thead", null, [
702
+ A("tr", Ft, [
703
+ (O(!0), $(le, null, ue(e.daysOfWeek, (v, m) => (O(), $("th", {
704
+ key: m,
705
+ class: "b-calendar-month__day-of-week"
706
+ }, [
707
+ K(i, {
708
+ class: "b-calendar-month__day-of-week-font",
709
+ el: "span",
710
+ variant: "caption"
711
+ }, {
712
+ default: J(() => [
713
+ Oe(we(v), 1)
714
+ ]),
715
+ _: 2
716
+ }, 1024)
717
+ ]))), 128))
718
+ ])
719
+ ]),
720
+ A("tbody", null, [
721
+ (O(!0), $(le, null, ue(e.weeksOfMonth, (v, m) => (O(), $("tr", { key: m }, [
722
+ m === 0 && v.length < 7 ? (O(), $("td", {
723
+ key: 0,
724
+ colspan: 7 - v.length
725
+ }, null, 8, Bt)) : ce("", !0),
726
+ (O(!0), $(le, null, ue(v, (c, y) => (O(), ee(D, {
727
+ ref_for: !0,
728
+ ref: e.addDayRef(c),
729
+ key: `calendar-day-${y}`,
730
+ day: c,
731
+ disabled: e.computedIsDateDisabled(c),
732
+ selected: e.isSelectedDate(c),
733
+ variant: e.dayVariant(c),
734
+ onClick: e.onDayClicked,
735
+ onMouseover: (N) => e.$emit(e.CalendarMonthEvent.MOUSE_OVER, c),
736
+ onKeyup: [
737
+ oe((N) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, c), ["up", "native"]),
738
+ oe((N) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, c), ["down", "native"]),
739
+ oe((N) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, c), ["left", "native"]),
740
+ oe((N) => e.$emit(e.CalendarMonthEvent.CHANGE_DAY, c), ["right", "native"])
741
+ ]
742
+ }, null, 8, ["day", "disabled", "selected", "variant", "onClick", "onMouseover", "onKeyup"]))), 128))
743
+ ]))), 128))
744
+ ])
745
+ ], 8, Ct)
746
+ ], 16)), [
747
+ [f]
748
+ ]);
749
+ }
750
+ const We = /* @__PURE__ */ me(At, [["render", Ut], ["__scopeId", "data-v-780ba24e"]]);
751
+ var H = /* @__PURE__ */ ((e) => (e.SINGLE = "single", e.MIDDLE = "middle", e.BEGINNING = "beginning", e.END = "end", e))(H || {}), q = /* @__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))(q || {}), $e = /* @__PURE__ */ ((e) => (e.CLICK = "click", e.MOUSE_OVER = "mouseover", e))($e || {});
752
+ const Gt = ["tabindex", "aria-selected"], Wt = { class: "b-calendar-year-month__wrapper" }, jt = {}, Ht = /* @__PURE__ */ De({
753
+ ...jt,
754
+ __name: "calendar-year-month",
755
+ props: {
756
+ month: {},
757
+ disabled: { type: Boolean, default: !1 },
758
+ selected: { type: Boolean, default: !1 },
759
+ variant: { default: H.SINGLE }
760
+ },
761
+ emits: ["click", "mouseover"],
762
+ setup(e, { emit: t }) {
763
+ const a = e, n = t, o = k(() => {
764
+ const r = /* @__PURE__ */ new Date();
765
+ return a.month.getMonth() === r.getMonth() && a.month.getFullYear() === r.getFullYear();
766
+ }), s = k(() => ({
767
+ // Variants
768
+ [`b-calendar-year-month--${q.BEGINNING}`]: a.variant === H.BEGINNING,
769
+ [`b-calendar-year-month--${q.MIDDLE}`]: a.variant === H.MIDDLE,
770
+ [`b-calendar-year-month--${q.END}`]: a.variant === H.END,
771
+ [`b-calendar-year-month--${q.SINGLE}`]: a.variant === H.SINGLE,
772
+ // Selected
773
+ [`b-calendar-year-month--${q.UNSELECTED}`]: !a.selected,
774
+ [`b-calendar-year-month--${q.SELECTED}`]: a.selected,
775
+ // Current month
776
+ [`b-calendar-year-month--${q.CURRENT_MONTH}`]: o.value,
777
+ // Disabled
778
+ [`b-calendar-year-month--${q.DISABLED}`]: a.disabled
779
+ })), l = (r, i) => {
780
+ a.disabled ? (r.preventDefault(), r.stopPropagation()) : n($e.CLICK, i, a.month);
781
+ };
782
+ return (r, i) => (O(), $("td", {
783
+ class: Ae(["b-calendar-year-month", s.value]),
784
+ tabindex: r.selected ? "0" : "-1",
785
+ "aria-selected": r.selected ? r.selected : void 0,
786
+ onClick: i[0] || (i[0] = (d) => l(d, r.month)),
787
+ onMouseover: i[1] || (i[1] = (d) => n(_($e).MOUSE_OVER)),
788
+ onKeydown: i[2] || (i[2] = oe((d) => l(d, r.month), ["space", "enter"]))
789
+ }, [
790
+ A("div", Wt, [
791
+ K(_(Ke), {
792
+ class: "b-calendar-year-month__label",
793
+ date: r.month,
794
+ format: _(Xe).SHORT_MONTH
795
+ }, null, 8, ["date", "format"])
796
+ ])
797
+ ], 42, Gt));
798
+ }
799
+ }), Vt = /* @__PURE__ */ me(Ht, [["__scopeId", "data-v-c3eabd57"]]), rt = {
800
+ "en-US": {
801
+ nextYear: "Next year",
802
+ previousYear: "Previous year"
803
+ },
804
+ "ja-JP": {
805
+ nextYear: "来年",
806
+ previousYear: "前年"
807
+ },
808
+ "pt-BR": {
809
+ nextYear: "Ano seguinte",
810
+ previousYear: "Ano anterior"
811
+ }
812
+ }, xt = { class: "b-calendar-year__year-selector" }, qt = { class: "b-calendar-year__previous" }, Kt = { class: "b-calendar-year__next" }, Xt = ["aria-labelledby"], zt = {
813
+ i18n: { messages: rt }
814
+ }, Qt = /* @__PURE__ */ De({
815
+ ...zt,
816
+ __name: "calendar-year",
817
+ props: {
818
+ endDate: { default: null },
819
+ isDateDisabled: { type: Function, default: void 0 },
820
+ isRange: { type: Boolean, default: !1 },
821
+ min: { default: null },
822
+ max: { default: null },
823
+ position: { default: "unique" },
824
+ startDate: { default: null },
825
+ year: {}
826
+ },
827
+ emits: ["input", "mouseover", "nextMonth", "previousMonth"],
828
+ setup(e, { expose: t, emit: a }) {
829
+ const n = et("bento-date-picker-year-label"), o = e, s = a, { t: l } = tt({ messages: rt }), r = (E) => {
830
+ var C;
831
+ return o.min && E < o.min || o.max && E > o.max || ((C = o.isDateDisabled) == null ? void 0 : C.call(o, E));
832
+ }, i = k(() => ["first", "unique"].includes(o.position)), d = k(() => ["last", "unique"].includes(o.position)), {
833
+ internalDate: D,
834
+ // Calendar refs
835
+ addDayRef: f,
836
+ // Day navigation
837
+ moveToPreviousMonth: v,
838
+ moveToPreviousYear: m,
839
+ moveToNextMonth: c,
840
+ moveToNextYear: y,
841
+ moveToFirstMonthOfYear: N,
842
+ moveToLastMonthOfYear: h,
843
+ focusOnDate: b
844
+ } = ot(
845
+ {
846
+ currentSelectedDate: j(o, "startDate"),
847
+ month: j(o, "year"),
848
+ isDateDisabled: r
849
+ },
850
+ s
851
+ );
852
+ t({ focusOnDate: b });
853
+ const Y = k(() => {
854
+ const E = [];
855
+ let C = 0;
856
+ for (let B = 0; B < 3; B++) {
857
+ const z = [];
858
+ for (let F = 0; F < 4; F++)
859
+ z.push(new Date(o.year.getFullYear(), C++, 1));
860
+ E.push(z);
861
+ }
862
+ return E;
863
+ }), T = (E) => !o.isRange || ye(o.startDate, o.endDate) ? H.SINGLE : o.startDate && ye(o.startDate, E) ? H.BEGINNING : o.endDate && ye(o.endDate, E) ? H.END : o.startDate && o.endDate && Ee(E, { start: o.startDate, end: o.endDate }) ? H.MIDDLE : null, P = (E) => D.value && ye(D.value, E) ? !0 : o.startDate && o.endDate && Ee(E, { start: o.startDate, end: o.endDate }), p = (E) => {
864
+ s("input", E);
865
+ }, R = o.isRange ? {} : {
866
+ "keydown:arrow-right": c,
867
+ "keydown:arrow-left": v,
868
+ "keydown:arrow-up": (E) => v(E, !1, 4),
869
+ "keydown:arrow-down": (E) => c(E, !1, 4),
870
+ "keydown:home": N,
871
+ "keydown:end": h,
872
+ "keydown:page-up": m,
873
+ "keydown:page-down": y
874
+ };
875
+ return (E, C) => He((O(), $("div", Ve({ class: "b-calendar-year" }, xe(_(R), !0)), [
876
+ A("div", xt, [
877
+ A("div", qt, [
878
+ i.value ? (O(), ee(_(Se), {
879
+ key: 0,
880
+ variant: "tertiary",
881
+ onClick: C[0] || (C[0] = (B) => _(m)(B, !0))
882
+ }, {
883
+ iconLeft: J(() => [
884
+ K(_(Je), {
885
+ "svg-title": _(l)("previousYear")
886
+ }, null, 8, ["svg-title"])
887
+ ]),
888
+ _: 1
889
+ })) : ce("", !0)
890
+ ]),
891
+ K(_(ze), {
892
+ id: _(n),
893
+ el: "h2",
894
+ variant: "title",
895
+ "aria-live": "polite"
896
+ }, {
897
+ default: J(() => [
898
+ Oe(we(E.year.getFullYear()), 1)
899
+ ]),
900
+ _: 1
901
+ }, 8, ["id"]),
902
+ A("div", Kt, [
903
+ d.value ? (O(), ee(_(Se), {
904
+ key: 0,
905
+ variant: "tertiary",
906
+ onClick: C[1] || (C[1] = (B) => _(y)(B, !0))
907
+ }, {
908
+ iconLeft: J(() => [
909
+ K(_(Qe), {
910
+ "svg-title": _(l)("nextYear")
911
+ }, null, 8, ["svg-title"])
912
+ ]),
913
+ _: 1
914
+ })) : ce("", !0)
915
+ ])
916
+ ]),
917
+ A("table", {
918
+ class: "b-calendar-month__month-container",
919
+ role: "grid",
920
+ "aria-labelledby": _(n)
921
+ }, [
922
+ A("tbody", null, [
923
+ (O(!0), $(le, null, ue(Y.value, (B, z) => (O(), $("tr", { key: z }, [
924
+ (O(!0), $(le, null, ue(B, (F, u) => (O(), ee(Vt, {
925
+ ref_for: !0,
926
+ ref: _(f)(F),
927
+ key: `calendar-month-${u}`,
928
+ month: F,
929
+ disabled: r(F),
930
+ selected: P(F),
931
+ variant: T(F),
932
+ onClick: p,
933
+ onMouseover: (g) => s("mouseover", F)
934
+ }, null, 8, ["month", "disabled", "selected", "variant", "onMouseover"]))), 128))
935
+ ]))), 128))
936
+ ])
937
+ ], 8, Xt)
938
+ ], 16)), [
939
+ [_(Ze)]
940
+ ]);
941
+ }
942
+ }), je = /* @__PURE__ */ me(Qt, [["__scopeId", "data-v-76c9fd8a"]]), Jt = ({ selectedDate: e }, t) => {
943
+ const a = qe({
944
+ startDate: null,
945
+ endDate: null
946
+ });
947
+ return se(
948
+ () => e.value,
949
+ () => {
950
+ a.startDate = e.value, a.endDate = void 0;
951
+ },
952
+ { immediate: !0 }
953
+ ), {
954
+ internalValue: a,
955
+ onDateInput: (o) => {
956
+ t(X.INPUT, o);
957
+ },
958
+ // Empty function to prevent the listeners from throwing a warning
959
+ // eslint-disable-next-line @typescript-eslint/no-empty-function
960
+ onMouseOver: () => {
961
+ }
962
+ };
963
+ }, Zt = (e) => {
964
+ const t = (r, i, d, D) => {
965
+ let f = ge(r, { weekStartsOn: e }), v = be(i || r, { weekStartsOn: e });
966
+ const m = d && f < d, c = D && v > D;
967
+ return m && (f = ge(d, { weekStartsOn: e })), c && (v = be(D, { weekStartsOn: e })), f > v && (m ? v = be(f, { weekStartsOn: e }) : f = ge(v, { weekStartsOn: e })), { startDate: f, endDate: v };
968
+ }, a = (r, i, d, D) => {
969
+ let f = Ne(r), v = Me(i || r);
970
+ const m = f < d, c = v > D;
971
+ return m && (f = Ne(d)), c && (v = Me(D)), f > v && (m ? v = Me(f) : f = Ne(v)), { startDate: f, endDate: v };
972
+ };
973
+ return {
974
+ adjustDateForWeekly: t,
975
+ adjustDateForMonthly: a,
976
+ adjustStartDateInputForWeekly: (r, i, d, D) => {
977
+ const { startDate: f } = t(new Date(r), null, d, D);
978
+ return i(f);
979
+ },
980
+ adjustEndDateInputForWeekly: (r, i, d, D) => {
981
+ const { endDate: f } = t(new Date(r), null, d, D);
982
+ return i(f);
983
+ },
984
+ adjustStartDateInputForMonthly: (r, i, d, D) => {
985
+ const { startDate: f } = a(new Date(r), null, d, D);
986
+ return i(f);
987
+ },
988
+ adjustEndDateInputForMonthly: (r, i, d, D) => {
989
+ const { endDate: f } = a(new Date(r), null, d, D);
990
+ return i(f);
991
+ }
992
+ };
993
+ }, ea = ({ selectedDate: e, isDateDisabled: t, maxRange: a, granularity: n, firstDayOfWeek: o, min: s, max: l }, r) => {
994
+ const { adjustDateForWeekly: D, adjustDateForMonthly: f } = Zt(o), v = qe({
995
+ startDate: null,
996
+ endDate: null
997
+ }), m = Q(null);
998
+ se(
999
+ () => e.value,
1000
+ () => {
1001
+ let { startDate: h = null, endDate: b = null } = e.value || {};
1002
+ h && (h = ae(h)), b && (b = ae(b)), !(h && t && t(h) || b && t && t(b) || h && b && yt(h, b)) && (v.startDate = h, v.endDate = b);
1003
+ },
1004
+ { immediate: !0, deep: !0 }
1005
+ );
1006
+ const c = (h, b, Y) => {
1007
+ if (v.startDate = h, v.endDate = b, a.value) {
1008
+ const T = Dt(b, h) - a.value;
1009
+ T > 0 && (Y < 1 ? (v.startDate = h, v.endDate = ht(b, T)) : (v.startDate = fe(h, T), v.endDate = b));
1010
+ }
1011
+ r(X.START_DATE_SELECTED, v.startDate), r(X.END_DATE_SELECTED, v.endDate);
1012
+ }, y = (h) => {
1013
+ var b, Y, T, P;
1014
+ if (!(!m.value || t && t(h)))
1015
+ if (gt(h, m.value)) {
1016
+ if (((b = n == null ? void 0 : n.value) == null ? void 0 : b.type) === "weekly") {
1017
+ const { startDate: p, endDate: R } = D(h, m.value, s.value, l.value);
1018
+ c(p, R, -1);
1019
+ return;
1020
+ }
1021
+ if (((Y = n == null ? void 0 : n.value) == null ? void 0 : Y.type) === "monthly") {
1022
+ const { startDate: p, endDate: R } = f(h, m.value, s.value, l.value);
1023
+ c(p, R, -1);
1024
+ return;
1025
+ }
1026
+ c(h, m.value, -1);
1027
+ } else {
1028
+ if (((T = n == null ? void 0 : n.value) == null ? void 0 : T.type) === "weekly") {
1029
+ const { startDate: p, endDate: R } = D(m.value, h, s.value, l.value);
1030
+ c(p, R, 1);
1031
+ return;
1032
+ }
1033
+ if (((P = n == null ? void 0 : n.value) == null ? void 0 : P.type) === "monthly") {
1034
+ const { startDate: p, endDate: R } = f(m.value, h, s.value, l.value);
1035
+ c(p, R, 1);
1036
+ return;
1037
+ }
1038
+ c(m.value, h, 1);
1039
+ }
1040
+ };
1041
+ return {
1042
+ internalValue: v,
1043
+ onDateInput: (h) => {
1044
+ var b, Y;
1045
+ if (m.value)
1046
+ m.value = null, r(X.INPUT, v);
1047
+ else {
1048
+ let T = h;
1049
+ if (((b = n == null ? void 0 : n.value) == null ? void 0 : b.type) === "weekly") {
1050
+ const { startDate: P, endDate: p } = D(h);
1051
+ T = P, c(T, p);
1052
+ }
1053
+ if (((Y = n == null ? void 0 : n.value) == null ? void 0 : Y.type) === "monthly") {
1054
+ const { startDate: P, endDate: p } = f(h);
1055
+ T = P, c(T, p);
1056
+ }
1057
+ m.value = T, y(T);
1058
+ }
1059
+ },
1060
+ onMouseOver: y
1061
+ };
1062
+ }, ta = De({
1063
+ name: "calendar",
1064
+ components: { CalendarMonth: We, CalendarYear: je },
1065
+ props: {
1066
+ /**
1067
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
1068
+ */
1069
+ firstDayOfWeek: {
1070
+ type: Number,
1071
+ default: Z.MONDAY,
1072
+ validator: (e) => Object.values(Z).includes(e)
1073
+ },
1074
+ /**
1075
+ * The selected granularity configuration
1076
+ */
1077
+ granularity: {
1078
+ type: Object,
1079
+ default: null
1080
+ },
1081
+ /**
1082
+ * Indicate if a date should be disabled or not
1083
+ */
1084
+ isDateDisabled: { type: Function, default: void 0 },
1085
+ /**
1086
+ * Enables the Date Range calendar
1087
+ */
1088
+ isRange: { type: Boolean, default: !1 },
1089
+ /**
1090
+ * Set a maximum number of dates to be selectable by the range.
1091
+ */
1092
+ maxRange: { type: Number, default: null, validator: (e) => !e || e > 0 },
1093
+ /**
1094
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
1095
+ */
1096
+ min: { type: Date, default: null },
1097
+ /**
1098
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
1099
+ */
1100
+ max: { type: Date, default: null },
1101
+ /**
1102
+ * Number of months rendered on pane
1103
+ */
1104
+ numberOfMonths: {
1105
+ type: Number,
1106
+ default: 3,
1107
+ validator: (e) => e >= 1
1108
+ },
1109
+ /**
1110
+ * Upon opening date range picker, end date's month will be pre-selected.
1111
+ */
1112
+ showEndDateOnOpen: { type: Boolean, default: !1 },
1113
+ /**
1114
+ * Selected date. Can be a single Date or a CalendarRangeDate
1115
+ * instance that contains startDate and endDate attributes.
1116
+ */
1117
+ value: { type: [Date, Object], default: void 0 },
1118
+ /**
1119
+ * Default start date for the calendar pane
1120
+ */
1121
+ defaultDisplayMonth: {
1122
+ type: String,
1123
+ default: null,
1124
+ validator: (e) => /^\d{4}-(0?[1-9]|1[012])(-(0?[1-9]|[12][0-9]|3[01]))?$/.test(e)
1125
+ },
1126
+ /**
1127
+ * The type of calendar to display. Defaults to showing days.
1128
+ */
1129
+ variant: {
1130
+ type: String,
1131
+ default: "day",
1132
+ validator: (e) => Object.values(Te).includes(e)
1133
+ }
1134
+ },
1135
+ emit: [X.INPUT, X.START_DATE_SELECTED, X.END_DATE_SELECTED],
1136
+ setup(e, { emit: t }) {
1137
+ const a = Q(null), n = Q();
1138
+ se(
1139
+ () => e.value,
1140
+ () => {
1141
+ var c, y, N;
1142
+ if (e.isRange)
1143
+ n.value = e != null && e.showEndDateOnOpen && ((c = e.value) != null && c.endDate) ? (y = e.value) == null ? void 0 : y.endDate : ((N = e.value) == null ? void 0 : N.startDate) || /* @__PURE__ */ new Date();
1144
+ else {
1145
+ const h = e.defaultDisplayMonth && new Date(e.defaultDisplayMonth).getTime() ? new Date(e.defaultDisplayMonth) : /* @__PURE__ */ new Date();
1146
+ n.value = e.value || h;
1147
+ }
1148
+ },
1149
+ { immediate: !0 }
1150
+ );
1151
+ const o = k(
1152
+ () => e.variant === Te.MONTH ? je : We
1153
+ ), s = k(() => ({
1154
+ "b-calendar__range": e.isRange
1155
+ })), {
1156
+ internalValue: l,
1157
+ onDateInput: r,
1158
+ onMouseOver: i
1159
+ } = e.isRange ? ea(
1160
+ {
1161
+ selectedDate: j(e, "value"),
1162
+ isDateDisabled: e.isDateDisabled,
1163
+ maxRange: j(e, "maxRange"),
1164
+ granularity: j(e, "granularity"),
1165
+ firstDayOfWeek: e.firstDayOfWeek,
1166
+ min: j(e, "min"),
1167
+ max: j(e, "max")
1168
+ },
1169
+ t
1170
+ ) : Jt(
1171
+ {
1172
+ selectedDate: j(e, "value"),
1173
+ firstDayOfWeek: e.firstDayOfWeek
1174
+ },
1175
+ t
1176
+ ), d = (c) => e.numberOfMonths === 1 ? re.UNIQUE : c === 0 ? re.FIRST : c === e.numberOfMonths - 1 ? re.LAST : re.MIDDLE, D = k(() => (c) => {
1177
+ const y = e != null && e.showEndDateOnOpen && e.isRange ? ve(n.value, e.numberOfMonths - 1) : n.value;
1178
+ return te(y, c);
1179
+ }), f = k(() => (c) => {
1180
+ const y = e != null && e.showEndDateOnOpen ? Mt(n.value, e.numberOfMonths - 1) : n.value;
1181
+ return at(y, c);
1182
+ });
1183
+ return {
1184
+ // Refs
1185
+ calendarRef: a,
1186
+ // Values
1187
+ baseDate: n,
1188
+ calendarComponent: o,
1189
+ conditionalClasses: s,
1190
+ internalValue: l,
1191
+ // Methods
1192
+ calculateOffsetMonth: D,
1193
+ calculateOffsetYear: f,
1194
+ calendarPosition: d,
1195
+ // Events
1196
+ onDateInput: r,
1197
+ onMouseOver: i,
1198
+ calculateNextMonths: (c = 1) => {
1199
+ n.value = te(n.value, c);
1200
+ },
1201
+ calculatePreviousMonths: (c = 1) => {
1202
+ n.value = ve(n.value, c);
1203
+ }
1204
+ };
1205
+ }
1206
+ });
1207
+ function aa(e, t, a, n, o, s) {
1208
+ return O(), $("div", {
1209
+ class: Ae(["b-calendar", e.conditionalClasses])
1210
+ }, [
1211
+ (O(!0), $(le, null, ue(e.numberOfMonths, (l, r) => (O(), ee(it(e.calendarComponent), {
1212
+ ref_for: !0,
1213
+ ref: e.numberOfMonths === 1 ? "calendarRef" : null,
1214
+ key: `calendar-${r}`,
1215
+ "first-day-of-week": e.firstDayOfWeek,
1216
+ "is-date-disabled": e.isDateDisabled,
1217
+ month: e.calculateOffsetMonth(r),
1218
+ year: e.calculateOffsetYear(r),
1219
+ position: e.calendarPosition(r),
1220
+ min: e.min,
1221
+ max: e.max,
1222
+ "is-range": e.isRange,
1223
+ "start-date": e.internalValue.startDate,
1224
+ "end-date": e.internalValue.endDate,
1225
+ granularity: e.granularity,
1226
+ onInput: e.onDateInput,
1227
+ onMouseover: e.onMouseOver,
1228
+ onChangeDay: e.onMouseOver,
1229
+ onNextMonth: e.calculateNextMonths,
1230
+ onPreviousMonth: e.calculatePreviousMonths
1231
+ }, null, 40, ["first-day-of-week", "is-date-disabled", "month", "year", "position", "min", "max", "is-range", "start-date", "end-date", "granularity", "onInput", "onMouseover", "onChangeDay", "onNextMonth", "onPreviousMonth"]))), 128))
1232
+ ], 2);
1233
+ }
1234
+ const ha = /* @__PURE__ */ me(ta, [["render", aa], ["__scopeId", "data-v-71902e62"]]);
1235
+ export {
1236
+ Z as C,
1237
+ ha as a,
1238
+ X as b,
1239
+ re as c,
1240
+ Te as d,
1241
+ ae as e,
1242
+ ge as f,
1243
+ fe as g,
1244
+ be as h,
1245
+ he as i,
1246
+ ht as j,
1247
+ te as k,
1248
+ ve as l,
1249
+ Ne as s,
1250
+ Zt as u
1251
+ };
1252
+ //# sourceMappingURL=calendar.DKHNrb9_.js.map