@adyen/bento-vue2 1.65.0 → 1.67.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 (229) hide show
  1. package/dist/@types/index.d.ts +473 -253
  2. package/dist/action-bar.js +1 -1
  3. package/dist/assets/accordion-item.css +1 -1
  4. package/dist/assets/action-bar.css +1 -1
  5. package/dist/assets/base-modal.css +1 -1
  6. package/dist/assets/button-actions-with-menu.css +1 -1
  7. package/dist/assets/button-actions.css +1 -1
  8. package/dist/assets/card.css +1 -1
  9. package/dist/assets/copy.css +1 -1
  10. package/dist/assets/data-grid-template.css +1 -1
  11. package/dist/assets/data-grid.css +1 -1
  12. package/dist/assets/date-range-picker.css +1 -1
  13. package/dist/assets/date.css +1 -1
  14. package/dist/assets/dialog-page.css +1 -1
  15. package/dist/assets/dropdown-default-textbox.css +1 -1
  16. package/dist/assets/dropdown.css +1 -1
  17. package/dist/assets/file-uploader.css +1 -1
  18. package/dist/assets/filter-bar.css +1 -1
  19. package/dist/assets/footer-actions.css +1 -1
  20. package/dist/assets/header-with-views.css +1 -1
  21. package/dist/assets/header.css +1 -1
  22. package/dist/assets/info-icon.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/input-field.css +1 -1
  25. package/dist/assets/inspector.css +1 -1
  26. package/dist/assets/menu.css +1 -1
  27. package/dist/assets/modal-fullscreen.css +1 -1
  28. package/dist/assets/pagination.css +1 -1
  29. package/dist/assets/popover.css +1 -1
  30. package/dist/assets/sidepanel.css +1 -1
  31. package/dist/assets/step.css +1 -1
  32. package/dist/assets/summary-grid.css +1 -1
  33. package/dist/assets/tab.css +1 -0
  34. package/dist/assets/textarea.css +1 -1
  35. package/dist/assets/use-cached-selected-values.css +1 -1
  36. package/dist/button.js +1 -1
  37. package/dist/card.js +1 -1
  38. package/dist/checkbox.js +2 -2
  39. package/dist/chunks/{action-bar.DHdrZtmW.js → action-bar.BxX3I27_.js} +31 -31
  40. package/dist/chunks/action-bar.BxX3I27_.js.map +1 -0
  41. package/dist/chunks/{base-modal.3OptY7u_.js → base-modal.QGDM_kjG.js} +2 -2
  42. package/dist/chunks/{base-modal.3OptY7u_.js.map → base-modal.QGDM_kjG.js.map} +1 -1
  43. package/dist/chunks/button-actions-with-menu.itkbcqzk.js +83 -0
  44. package/dist/chunks/button-actions-with-menu.itkbcqzk.js.map +1 -0
  45. package/dist/chunks/{button-actions._OIvTdKt.js → button-actions.BKdI_ooV.js} +2 -2
  46. package/dist/chunks/button-actions.BKdI_ooV.js.map +1 -0
  47. package/dist/chunks/calendar.DvIQEYwN.js +2086 -0
  48. package/dist/chunks/calendar.DvIQEYwN.js.map +1 -0
  49. package/dist/chunks/{card.CypgT0Ji.js → card.BktfAMv5.js} +2 -2
  50. package/dist/chunks/{card.CypgT0Ji.js.map → card.BktfAMv5.js.map} +1 -1
  51. package/dist/chunks/{checkbox-group.DVX0GFm9.js → checkbox-group.BVMGnokj.js} +4 -4
  52. package/dist/chunks/{checkbox-group.DVX0GFm9.js.map → checkbox-group.BVMGnokj.js.map} +1 -1
  53. package/dist/chunks/{checkbox.nHrvoKfp.js → checkbox.Bg5FM5Oa.js} +2 -2
  54. package/dist/chunks/{checkbox.nHrvoKfp.js.map → checkbox.Bg5FM5Oa.js.map} +1 -1
  55. package/dist/chunks/{code-snippet.W8Zp0zQP.js → code-snippet.DDiQ9R3o.js} +4 -4
  56. package/dist/chunks/{code-snippet.W8Zp0zQP.js.map → code-snippet.DDiQ9R3o.js.map} +1 -1
  57. package/dist/chunks/{controls-group.BWAmz7Tg.js → controls-group.CccuLkgP.js} +2 -2
  58. package/dist/chunks/{controls-group.BWAmz7Tg.js.map → controls-group.CccuLkgP.js.map} +1 -1
  59. package/dist/chunks/copy.CF8Fzu2Y.js +96 -0
  60. package/dist/chunks/copy.CF8Fzu2Y.js.map +1 -0
  61. package/dist/chunks/{dashboard-section.Bz54Z6Hh.js → dashboard-section.Beep1lY8.js} +3 -3
  62. package/dist/chunks/{dashboard-section.Bz54Z6Hh.js.map → dashboard-section.Beep1lY8.js.map} +1 -1
  63. package/dist/chunks/{dashed-underline.CEaAmjDa.js → dashed-underline.BQwLgzz6.js} +2 -2
  64. package/dist/chunks/{dashed-underline.CEaAmjDa.js.map → dashed-underline.BQwLgzz6.js.map} +1 -1
  65. package/dist/chunks/{data-grid-template.DtFRjaR8.js → data-grid-template.nkx0pCMA.js} +16 -14
  66. package/dist/chunks/data-grid-template.nkx0pCMA.js.map +1 -0
  67. package/dist/chunks/{data-grid.D4oeTUhn.js → data-grid.CkwZVy3a.js} +190 -188
  68. package/dist/chunks/data-grid.CkwZVy3a.js.map +1 -0
  69. package/dist/chunks/{date-picker.k0g6anfy.js → date-picker.BLBXaDHv.js} +8 -9
  70. package/dist/chunks/{date-picker.k0g6anfy.js.map → date-picker.BLBXaDHv.js.map} +1 -1
  71. package/dist/chunks/{date-range-picker.D9lyIoO-.js → date-range-picker.am63DgMj.js} +409 -393
  72. package/dist/chunks/date-range-picker.am63DgMj.js.map +1 -0
  73. package/dist/chunks/date.BfyWX2PY.js +160 -0
  74. package/dist/chunks/date.BfyWX2PY.js.map +1 -0
  75. package/dist/chunks/{dropdown-default-textbox.BNuuA4ES.js → dropdown-default-textbox.94q6opSD.js} +3 -3
  76. package/dist/chunks/dropdown-default-textbox.94q6opSD.js.map +1 -0
  77. package/dist/chunks/{dropdown-tag.DKhxBV52.js → dropdown-tag.DYIkCBa6.js} +2 -2
  78. package/dist/chunks/{dropdown-tag.DKhxBV52.js.map → dropdown-tag.DYIkCBa6.js.map} +1 -1
  79. package/dist/chunks/{dropdown.DV7uhHNP.js → dropdown.HA6ISg2h.js} +265 -270
  80. package/dist/chunks/{dropdown.DV7uhHNP.js.map → dropdown.HA6ISg2h.js.map} +1 -1
  81. package/dist/chunks/{error-message.1Em7Lis3.js → error-message.BgxnwPLF.js} +2 -2
  82. package/dist/chunks/{error-message.1Em7Lis3.js.map → error-message.BgxnwPLF.js.map} +1 -1
  83. package/dist/chunks/es6.n1ewaW31.js.map +1 -1
  84. package/dist/chunks/{file-uploader.DyjdNLOa.js → file-uploader.BPslxGI8.js} +323 -323
  85. package/dist/chunks/file-uploader.BPslxGI8.js.map +1 -0
  86. package/dist/chunks/{filter-bar.BxDEplt3.js → filter-bar.DbqsoAI1.js} +667 -652
  87. package/dist/chunks/{filter-bar.BxDEplt3.js.map → filter-bar.DbqsoAI1.js.map} +1 -1
  88. package/dist/chunks/{footer-actions.DyuSTjC5.js → footer-actions.BUfQFz7J.js} +2 -2
  89. package/dist/chunks/{footer-actions.DyuSTjC5.js.map → footer-actions.BUfQFz7J.js.map} +1 -1
  90. package/dist/chunks/{get-date-locale.BN8xEjY0.js → get-date-locale.CAyOIbcp.js} +288 -649
  91. package/dist/chunks/get-date-locale.CAyOIbcp.js.map +1 -0
  92. package/dist/chunks/{header-with-views.Ds9mcwmp.js → header-with-views.JllLR2nW.js} +341 -327
  93. package/dist/chunks/header-with-views.JllLR2nW.js.map +1 -0
  94. package/dist/chunks/{header.Cb644uAi.js → header.04Y0unpy.js} +27 -26
  95. package/dist/chunks/{header.Cb644uAi.js.map → header.04Y0unpy.js.map} +1 -1
  96. package/dist/chunks/index.BrH1t1iu.js +407 -0
  97. package/dist/chunks/index.BrH1t1iu.js.map +1 -0
  98. package/dist/chunks/{info-icon-with-popover.COq40yTq.js → info-icon-with-popover.B1DnkW4B.js} +2 -2
  99. package/dist/chunks/{info-icon-with-popover.COq40yTq.js.map → info-icon-with-popover.B1DnkW4B.js.map} +1 -1
  100. package/dist/chunks/info-icon.CYOXx8CL.js +37 -0
  101. package/dist/chunks/info-icon.CYOXx8CL.js.map +1 -0
  102. package/dist/chunks/{input-field-password.Bloa-rqx.js → input-field-password.BtOdV0gF.js} +124 -123
  103. package/dist/chunks/input-field-password.BtOdV0gF.js.map +1 -0
  104. package/dist/chunks/{input-field-phone-number.B3qzZKuP.js → input-field-phone-number.Dq-LnGag.js} +3 -3
  105. package/dist/chunks/{input-field-phone-number.B3qzZKuP.js.map → input-field-phone-number.Dq-LnGag.js.map} +1 -1
  106. package/dist/chunks/input-field.Bg77qHT2.js +157 -0
  107. package/dist/chunks/input-field.Bg77qHT2.js.map +1 -0
  108. package/dist/chunks/{menu.BCD4FW54.js → menu.EgYjFAku.js} +2 -2
  109. package/dist/chunks/{menu.BCD4FW54.js.map → menu.EgYjFAku.js.map} +1 -1
  110. package/dist/chunks/{modal-fullscreen.1OdCgyca.js → modal-fullscreen.BNTUOC7o.js} +2 -2
  111. package/dist/chunks/{modal-fullscreen.1OdCgyca.js.map → modal-fullscreen.BNTUOC7o.js.map} +1 -1
  112. package/dist/chunks/{modal.xY5aFhAO.js → modal.OvB4kEGR.js} +4 -4
  113. package/dist/chunks/{modal.xY5aFhAO.js.map → modal.OvB4kEGR.js.map} +1 -1
  114. package/dist/chunks/{pagination.Cl7SzoId.js → pagination.Dw153NzQ.js} +115 -115
  115. package/dist/chunks/pagination.Dw153NzQ.js.map +1 -0
  116. package/dist/chunks/{popover.B05xkQ4e.js → popover.BGHbPUOr.js} +2 -2
  117. package/dist/chunks/{popover.B05xkQ4e.js.map → popover.BGHbPUOr.js.map} +1 -1
  118. package/dist/chunks/promo-banner.Bbc2U3S3.js.map +1 -1
  119. package/dist/chunks/{radio-group.CtPG_iiI.js → radio-group.4_KKjvAm.js} +3 -3
  120. package/dist/chunks/{radio-group.CtPG_iiI.js.map → radio-group.4_KKjvAm.js.map} +1 -1
  121. package/dist/chunks/{rich-text-editor.CLxVaskq.js → rich-text-editor.CRJRvfJn.js} +5 -7
  122. package/dist/chunks/{rich-text-editor.CLxVaskq.js.map → rich-text-editor.CRJRvfJn.js.map} +1 -1
  123. package/dist/chunks/{search-bar.CadVBoj0.js → search-bar.BTZSePJh.js} +3 -3
  124. package/dist/chunks/{search-bar.CadVBoj0.js.map → search-bar.BTZSePJh.js.map} +1 -1
  125. package/dist/chunks/{secondary-nav.OwimHNCb.js → secondary-nav.BBhSBNn7.js} +2 -2
  126. package/dist/chunks/{secondary-nav.OwimHNCb.js.map → secondary-nav.BBhSBNn7.js.map} +1 -1
  127. package/dist/chunks/{selection-card-group.CoqBRUT8.js → selection-card-group.0o5T4tab.js} +3 -3
  128. package/dist/chunks/{selection-card-group.CoqBRUT8.js.map → selection-card-group.0o5T4tab.js.map} +1 -1
  129. package/dist/chunks/{sidepanel.CI8fu1Q3.js → sidepanel.Dt-BnFzN.js} +2 -2
  130. package/dist/chunks/{sidepanel.CI8fu1Q3.js.map → sidepanel.Dt-BnFzN.js.map} +1 -1
  131. package/dist/chunks/step.DMMofD4B.js +217 -0
  132. package/dist/chunks/step.DMMofD4B.js.map +1 -0
  133. package/dist/chunks/{structured-list-item.tox2Kcb6.js → structured-list-item.Bnn6-Z3q.js} +3 -3
  134. package/dist/chunks/{structured-list-item.tox2Kcb6.js.map → structured-list-item.Bnn6-Z3q.js.map} +1 -1
  135. package/dist/chunks/summary-grid.types.DsvtLg3D.js +337 -0
  136. package/dist/chunks/summary-grid.types.DsvtLg3D.js.map +1 -0
  137. package/dist/chunks/tab.BhWPBxcB.js +192 -0
  138. package/dist/chunks/tab.BhWPBxcB.js.map +1 -0
  139. package/dist/chunks/{tabs.keys.Bc2pSKRw.js → tabs.keys.Cb4Vw5Jh.js} +3 -3
  140. package/dist/chunks/{tabs.keys.Bc2pSKRw.js.map → tabs.keys.Cb4Vw5Jh.js.map} +1 -1
  141. package/dist/chunks/{textarea.BPeDUAPL.js → textarea.RAU710Uw.js} +83 -80
  142. package/dist/chunks/textarea.RAU710Uw.js.map +1 -0
  143. package/dist/chunks/{timeline-item.CS9ZDOsm.js → timeline-item.Dz66luo5.js} +11 -12
  144. package/dist/chunks/timeline-item.Dz66luo5.js.map +1 -0
  145. package/dist/chunks/{tutorial.DJ_Cwp9i.js → tutorial.DAKO-fKz.js} +4 -4
  146. package/dist/chunks/{tutorial.DJ_Cwp9i.js.map → tutorial.DAKO-fKz.js.map} +1 -1
  147. package/dist/chunks/{use-cached-selected-values.DNOmzQVy.js → use-cached-selected-values.DQPABFfG.js} +538 -498
  148. package/dist/chunks/use-cached-selected-values.DQPABFfG.js.map +1 -0
  149. package/dist/code-snippet.js +1 -1
  150. package/dist/dashboard-template.js +1 -1
  151. package/dist/dashed-underline.js +1 -1
  152. package/dist/data-grid-template.js +1 -1
  153. package/dist/data-grid.js +1 -1
  154. package/dist/date-picker.js +2 -2
  155. package/dist/date-range-picker.js +2 -2
  156. package/dist/date.js +1 -1
  157. package/dist/dropdown.js +4 -4
  158. package/dist/file-uploader.js +1 -1
  159. package/dist/filter-bar.js +1 -1
  160. package/dist/header-with-views.js +1 -1
  161. package/dist/header.js +1 -1
  162. package/dist/index.js +45 -45
  163. package/dist/info-icon.js +1 -1
  164. package/dist/input-field-password.js +1 -1
  165. package/dist/input-field-phone-number.js +1 -1
  166. package/dist/input-field.js +1 -1
  167. package/dist/internal.js +8 -8
  168. package/dist/menu.js +1 -1
  169. package/dist/modal-fullscreen.js +1 -1
  170. package/dist/modal.js +2 -2
  171. package/dist/pagination.js +1 -1
  172. package/dist/popover.js +1 -1
  173. package/dist/radio-group.js +1 -1
  174. package/dist/rich-text-editor.js +1 -1
  175. package/dist/search-bar.js +2 -2
  176. package/dist/secondary-nav.js +1 -1
  177. package/dist/selection-card.js +1 -1
  178. package/dist/sidepanel.js +1 -1
  179. package/dist/stepper.js +1 -1
  180. package/dist/structured-list.js +1 -1
  181. package/dist/styles/bento-dark.css +1 -0
  182. package/dist/styles/bento-light.css +1 -0
  183. package/dist/styles/bento.css +1 -0
  184. package/dist/styles/legacy.css +1 -0
  185. package/dist/styles/styleguide.css +1 -0
  186. package/dist/summary-grid.js +1 -1
  187. package/dist/tabs.js +1 -1
  188. package/dist/textarea.js +1 -1
  189. package/dist/timeline.js +1 -1
  190. package/dist/tutorial.js +1 -1
  191. package/dist/web-types.json +261 -81
  192. package/package.json +6 -6
  193. package/dist/assets/tabs.css +0 -1
  194. package/dist/chunks/action-bar.DHdrZtmW.js.map +0 -1
  195. package/dist/chunks/button-actions-with-menu.CYkEoiee.js +0 -166
  196. package/dist/chunks/button-actions-with-menu.CYkEoiee.js.map +0 -1
  197. package/dist/chunks/button-actions._OIvTdKt.js.map +0 -1
  198. package/dist/chunks/calendar.DbTC35rM.js +0 -1167
  199. package/dist/chunks/calendar.DbTC35rM.js.map +0 -1
  200. package/dist/chunks/copy.CXeLbvUP.js +0 -129
  201. package/dist/chunks/copy.CXeLbvUP.js.map +0 -1
  202. package/dist/chunks/data-grid-template.DtFRjaR8.js.map +0 -1
  203. package/dist/chunks/data-grid.D4oeTUhn.js.map +0 -1
  204. package/dist/chunks/date-range-picker.D9lyIoO-.js.map +0 -1
  205. package/dist/chunks/date.dYFFEunA.js +0 -987
  206. package/dist/chunks/date.dYFFEunA.js.map +0 -1
  207. package/dist/chunks/dropdown-default-textbox.BNuuA4ES.js.map +0 -1
  208. package/dist/chunks/file-uploader.DyjdNLOa.js.map +0 -1
  209. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +0 -1
  210. package/dist/chunks/header-with-views.Ds9mcwmp.js.map +0 -1
  211. package/dist/chunks/index.BDuTpjD8.js +0 -40
  212. package/dist/chunks/index.BDuTpjD8.js.map +0 -1
  213. package/dist/chunks/index.DD7TppDb.js +0 -10
  214. package/dist/chunks/index.DD7TppDb.js.map +0 -1
  215. package/dist/chunks/info-icon.B9aTl1nU.js +0 -41
  216. package/dist/chunks/info-icon.B9aTl1nU.js.map +0 -1
  217. package/dist/chunks/input-field-password.Bloa-rqx.js.map +0 -1
  218. package/dist/chunks/input-field.B_3nZFYz.js +0 -152
  219. package/dist/chunks/input-field.B_3nZFYz.js.map +0 -1
  220. package/dist/chunks/pagination.Cl7SzoId.js.map +0 -1
  221. package/dist/chunks/step.dNTg2rtW.js +0 -217
  222. package/dist/chunks/step.dNTg2rtW.js.map +0 -1
  223. package/dist/chunks/summary-grid.types.CkUIw703.js +0 -301
  224. package/dist/chunks/summary-grid.types.CkUIw703.js.map +0 -1
  225. package/dist/chunks/tabs.Dx6teJGW.js +0 -205
  226. package/dist/chunks/tabs.Dx6teJGW.js.map +0 -1
  227. package/dist/chunks/textarea.BPeDUAPL.js.map +0 -1
  228. package/dist/chunks/timeline-item.CS9ZDOsm.js.map +0 -1
  229. package/dist/chunks/use-cached-selected-values.DNOmzQVy.js.map +0 -1
@@ -1,53 +1,52 @@
1
- import { reactive as fe, defineComponent as Be, ref as h, computed as T, onMounted as qe, toRaw as ge, toRef as Se, watch as pe } from "vue";
2
- import { B as nt } from "./divider.Cc4JFWG_.js";
3
- import { B as rt } from "./popover.B05xkQ4e.js";
4
- import { B as Le, d as st } from "./typography.J1v_SPG3.js";
5
- import { D as it } from "./dropdown-default-textbox.BNuuA4ES.js";
6
- import { r as O, t as j, g as ye } from "./get-date-locale.BN8xEjY0.js";
7
- import { g as se } from "./generate-uid.NJ8tVoha.js";
8
- import { u as Te } from "./i18n.BQkEbtPM.js";
9
- import { t as oe, f as ae } from "./date.dYFFEunA.js";
10
- import { e as Ye, f as ie, i as B, g as Z, h as ke, j as ot, k as Ee, l as lt, s as he, m as ut, n as Oe, a as $, u as dt } from "./calendar.DbTC35rM.js";
11
- import { f as we, v as ct, D as I } from "./date-input.BqBdAO1E.js";
12
- import { u as Dt } from "./use-form-layout-loading.D3lALhtC.js";
1
+ import { reactive as ce, defineComponent as Le, ref as w, computed as _, onMounted as Ye, toRaw as ye, toRef as ke, watch as Te } from "vue";
2
+ import { B as it } from "./divider.Cc4JFWG_.js";
3
+ import { B as lt } from "./popover.BGHbPUOr.js";
4
+ import { B as Qe, d as ot } from "./typography.J1v_SPG3.js";
5
+ import { D as ut } from "./dropdown-default-textbox.94q6opSD.js";
6
+ import { e as F, a as Ee, g as pe } from "./get-date-locale.CAyOIbcp.js";
7
+ import { g as re } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as _e } from "./i18n.BQkEbtPM.js";
9
+ import { e as je, t as ae, g as se, i as C, h as M, j as he, k as dt, l as Oe, m as ct, s as we, n as Dt, o as Me, a as G, u as mt, f as te } from "./calendar.DvIQEYwN.js";
10
+ import { r as O, t as L } from "./index.BrH1t1iu.js";
11
+ import { f as Ce, v as ft, D as S } from "./date-input.BqBdAO1E.js";
12
+ import { u as vt } from "./use-form-layout-loading.D3lALhtC.js";
13
13
  import "./index.Cl4_42j5.js";
14
- import { B as mt } from "./input-field.B_3nZFYz.js";
15
- import { B as ft } from "./dropdown.DV7uhHNP.js";
16
- import { B as vt } from "./segmented-control.DHZEfmT-.js";
17
- import { d as ce } from "./debounce.DUTu11PS.js";
14
+ import { B as gt } from "./input-field.Bg77qHT2.js";
15
+ import { B as Tt } from "./dropdown.HA6ISg2h.js";
16
+ import { B as yt } from "./segmented-control.DHZEfmT-.js";
17
+ import { d as oe } from "./debounce.DUTu11PS.js";
18
18
  import { u as pt } from "./use-has-slot.C9lQZ6nz.js";
19
- import { e as C, a as Me } from "./index.BDuTpjD8.js";
20
- import { n as Qe } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
21
- import { B as gt } from "./directive.Cbdox5VL.js";
22
- import { F as yt, E as Tt } from "./error-message.1Em7Lis3.js";
23
- import { B as _t, c as Rt } from "./button-actions._OIvTdKt.js";
19
+ import { n as $e } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
20
+ import { B as _t } from "./directive.Cbdox5VL.js";
21
+ import { F as Rt, E as It } from "./error-message.BgxnwPLF.js";
22
+ import { B as bt, c as St } from "./button-actions.BKdI_ooV.js";
24
23
  import "../assets/date-range-picker.css";
25
- function $e(t, e) {
24
+ function Ge(t, e) {
26
25
  O(2, arguments);
27
- var n = oe(e), l = n * 3;
28
- return Ye(t, l);
26
+ var n = ae(e), l = n * 3;
27
+ return je(t, l);
29
28
  }
30
- function Ce(t) {
29
+ function Ae(t) {
31
30
  O(1, arguments);
32
- var e = j(t), n = Math.floor(e.getMonth() / 3) + 1;
31
+ var e = L(t), n = Math.floor(e.getMonth() / 3) + 1;
33
32
  return n;
34
33
  }
35
- function Ae(t) {
36
- return O(1, arguments), j(t).getFullYear();
34
+ function Fe(t) {
35
+ return O(1, arguments), L(t).getFullYear();
37
36
  }
38
- function De(t, e) {
37
+ function ue(t, e) {
39
38
  O(2, arguments);
40
- var n = j(t), l = j(e);
39
+ var n = L(t), l = L(e);
41
40
  return n.getTime() === l.getTime();
42
41
  }
43
- function bt(t, e) {
42
+ function kt(t, e) {
44
43
  O(2, arguments);
45
- var n = ie(t), l = ie(e);
44
+ var n = se(t), l = se(e);
46
45
  return n.getTime() === l.getTime();
47
46
  }
48
47
  function xe(t) {
49
48
  O(1, arguments);
50
- var e = j(t);
49
+ var e = L(t);
51
50
  return e.setMilliseconds(0), e;
52
51
  }
53
52
  function Ue(t, e) {
@@ -55,86 +54,91 @@ function Ue(t, e) {
55
54
  var n = xe(t), l = xe(e);
56
55
  return n.getTime() === l.getTime();
57
56
  }
58
- function It(t) {
59
- return O(1, arguments), B(t, Date.now());
57
+ function Et(t) {
58
+ return O(1, arguments), C(t, Date.now());
60
59
  }
61
- function St(t, e) {
60
+ function ht(t, e) {
62
61
  O(2, arguments);
63
- var n = j(t), l = oe(e);
62
+ var n = L(t), l = ae(e);
64
63
  return n.setHours(l), n;
65
64
  }
66
- function kt(t, e) {
65
+ function Ne(t, e) {
66
+ O(2, arguments);
67
+ var n = L(t), l = ae(e);
68
+ return n.setMilliseconds(l), n;
69
+ }
70
+ function Ot(t, e) {
67
71
  O(2, arguments);
68
- var n = j(t), l = oe(e);
72
+ var n = L(t), l = ae(e);
69
73
  return n.setMinutes(l), n;
70
74
  }
71
- function Et(t, e) {
75
+ function wt(t, e) {
72
76
  O(2, arguments);
73
- var n = j(t), l = oe(e);
77
+ var n = L(t), l = ae(e);
74
78
  return n.setSeconds(l), n;
75
79
  }
76
- function ht(t, e) {
80
+ function Mt(t, e) {
77
81
  O(2, arguments);
78
- var n = oe(e);
79
- return $e(t, -n);
82
+ var n = ae(e);
83
+ return Ge(t, -n);
80
84
  }
81
- function X(t) {
85
+ function J(t) {
82
86
  if (t == null)
83
- return Z(/* @__PURE__ */ new Date());
87
+ return M(/* @__PURE__ */ new Date());
84
88
  const [e, n, l] = t.split("-").map((o) => parseInt(o, 10));
85
89
  return new Date(e, n - 1, l);
86
90
  }
87
- const Ot = ({
91
+ const Ct = ({
88
92
  firstDayOfWeek: t,
89
93
  min: e,
90
94
  max: n
91
95
  }) => ({ getGranularCalendarLimits: (o) => {
92
- let D = Z(e), f = C(n);
96
+ let D = M(e), f = F(n);
93
97
  if ((o == null ? void 0 : o.type) === "weekly") {
94
98
  if (o.earliest)
95
- D = Z(o.earliest);
99
+ D = M(o.earliest);
96
100
  else {
97
- const y = ke(D, { weekStartsOn: t });
98
- B(D, y) || (D = Z(ot(Ee(D, { weekStartsOn: t }), 1)));
101
+ const y = he(D, { weekStartsOn: t });
102
+ C(D, y) || (D = M(dt(Oe(D, { weekStartsOn: t }), 1)));
99
103
  }
100
104
  if (o.latest)
101
- f = C(o.latest);
105
+ f = F(o.latest);
102
106
  else {
103
- const y = Ee(f, { weekStartsOn: t });
104
- B(f, y) || (f = C(lt(ke(f, { weekStartsOn: t }), 1)));
107
+ const y = Oe(f, { weekStartsOn: t });
108
+ C(f, y) || (f = F(ct(he(f, { weekStartsOn: t }), 1)));
105
109
  }
106
110
  }
107
111
  if ((o == null ? void 0 : o.type) === "monthly") {
108
112
  if (o.earliest)
109
- D = Z(o.earliest);
113
+ D = M(o.earliest);
110
114
  else {
111
- const y = he(D);
112
- B(D, y) || (D = he(Ye(D, 1)));
115
+ const y = we(D);
116
+ C(D, y) || (D = we(je(D, 1)));
113
117
  }
114
118
  if (o.latest)
115
- f = C(o.latest);
119
+ f = F(o.latest);
116
120
  else {
117
- const y = Me(f);
118
- B(f, y) || (f = Me(ut(f, 1)));
121
+ const y = Ee(f);
122
+ C(f, y) || (f = Ee(Dt(f, 1)));
119
123
  }
120
124
  }
121
125
  if ((o == null ? void 0 : o.type) === "quarterly") {
122
126
  if (o.earliest)
123
- D = ie(o.earliest);
127
+ D = se(o.earliest);
124
128
  else {
125
- const y = ie(D);
126
- B(D, y) || (D = ie($e(D, 1)));
129
+ const y = se(D);
130
+ C(D, y) || (D = se(Ge(D, 1)));
127
131
  }
128
132
  if (o.latest)
129
- f = C(o.latest);
133
+ f = F(o.latest);
130
134
  else {
131
- const y = Oe(f);
132
- B(f, y) || (f = Oe(ht(f, 1)));
135
+ const y = Me(f);
136
+ C(f, y) || (f = Me(Mt(f, 1)));
133
137
  }
134
138
  }
135
139
  return { min: D, max: f };
136
- } }), wt = () => {
137
- const t = fe({
140
+ } }), At = () => {
141
+ const t = ce({
138
142
  daily: null,
139
143
  weekly: null,
140
144
  monthly: null,
@@ -150,19 +154,19 @@ const Ot = ({
150
154
  }
151
155
  };
152
156
  };
153
- var p = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(p || {});
154
- const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
155
- const { selectionStart: e } = t.target, n = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], l = Mt.test(t.key) || n.includes(t.key), o = [1, 2, 4, 5].includes(e) && t.key === ":";
157
+ var g = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(g || {});
158
+ const Ft = /[\d]/, xt = /^\d{2}$/, Ut = /^\d{2}:\d{2}$/, Nt = (t) => {
159
+ const { selectionStart: e } = t.target, n = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], l = Ft.test(t.key) || n.includes(t.key), o = [1, 2, 4, 5].includes(e) && t.key === ":";
156
160
  !l && !o && t.preventDefault();
157
- }, Fe = (t) => {
161
+ }, Pe = (t) => {
158
162
  if (!t)
159
163
  return t;
160
164
  let e = t;
161
165
  if (e.length === 1 && parseInt(t, 10) > 2)
162
166
  return `0${e}:`;
163
167
  const [n, l] = e.slice(-2);
164
- return [2, 5].includes(e.length) && l === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (Ct.test(e) || At.test(e)) && (e += ":"), e;
165
- }, Ut = {
168
+ return [2, 5].includes(e.length) && l === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (xt.test(e) || Ut.test(e)) && (e += ":"), e;
169
+ }, Pt = {
166
170
  "en-US": {
167
171
  customRange: "Custom range",
168
172
  daily: "Daily",
@@ -193,15 +197,15 @@ const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
193
197
  monthly: "Mensal",
194
198
  weekly: "Semanal"
195
199
  }
196
- }, Ne = 300, Pe = "customRange", Ft = Be({
197
- i18n: { messages: Ut },
200
+ }, Be = 300, qe = "customRange", Bt = Le({
201
+ i18n: { messages: Pt },
198
202
  name: "date-range-picker-calendar",
199
203
  components: {
200
- BentoDropdown: ft,
201
- BentoInputField: mt,
202
- BentoSegmentedControl: vt,
203
- BentoTypography: Le,
204
- Calendar: $
204
+ BentoDropdown: Tt,
205
+ BentoInputField: gt,
206
+ BentoSegmentedControl: yt,
207
+ BentoTypography: Qe,
208
+ Calendar: G
205
209
  },
206
210
  props: {
207
211
  /**
@@ -218,7 +222,7 @@ const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
218
222
  /**
219
223
  * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
220
224
  */
221
- firstDayOfWeek: $.props.firstDayOfWeek,
225
+ firstDayOfWeek: G.props.firstDayOfWeek,
222
226
  /**
223
227
  * A list of available granularities.
224
228
  * If present, the date picker will display a segmented control to change granularity.
@@ -230,23 +234,23 @@ const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
230
234
  /**
231
235
  * Indicate if a date should be disabled or not
232
236
  */
233
- isDateDisabled: $.props.isDateDisabled,
237
+ isDateDisabled: G.props.isDateDisabled,
234
238
  /**
235
239
  * Set a maximum number of dates to be selectable by the range.
236
240
  */
237
- maxRange: $.props.maxRange,
241
+ maxRange: G.props.maxRange,
238
242
  /**
239
243
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
240
244
  */
241
- min: $.props.min,
245
+ min: G.props.min,
242
246
  /**
243
247
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
244
248
  */
245
- max: $.props.max,
249
+ max: G.props.max,
246
250
  /**
247
251
  * Number of months rendered on pane
248
252
  */
249
- numberOfMonths: $.props.numberOfMonths,
253
+ numberOfMonths: G.props.numberOfMonths,
250
254
  /**
251
255
  * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
252
256
  */
@@ -269,26 +273,26 @@ const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
269
273
  /**
270
274
  * The type of calendar to display. Defaults to showing days.
271
275
  */
272
- variant: $.props.variant
276
+ variant: G.props.variant
273
277
  },
274
278
  emits: [
275
- p.CUSTOM_RANGE,
276
- p.INPUT,
277
- p.ERROR,
278
- p.FORM_DATE,
279
- p.START_DATE_SELECTED
279
+ g.CUSTOM_RANGE,
280
+ g.INPUT,
281
+ g.ERROR,
282
+ g.FORM_DATE,
283
+ g.START_DATE_SELECTED
280
284
  ],
281
285
  setup(t, { emit: e, slots: n }) {
282
- var _e, Re, be, Ie;
283
- const { locale: l, t: o } = Te(), D = ye(), f = h({}), y = T(() => t.variant === "month" ? "monthly" : "daily"), r = fe({
284
- startDate: (_e = t.value) == null ? void 0 : _e.startDate,
285
- endDate: (Re = t.value) == null ? void 0 : Re.endDate,
286
+ var Re, Ie, be, Se;
287
+ const { locale: l, t: o } = _e(), D = pe(), f = w({}), y = _(() => t.variant === "month" ? "monthly" : "daily"), r = ce({
288
+ startDate: (Re = t.value) == null ? void 0 : Re.startDate,
289
+ endDate: (Ie = t.value) == null ? void 0 : Ie.endDate,
286
290
  range: (be = t.value) == null ? void 0 : be.range,
287
291
  ...t.granularities ? {
288
- granularity: ((Ie = t.value) == null ? void 0 : Ie.granularity) || y.value
292
+ granularity: ((Se = t.value) == null ? void 0 : Se.granularity) || y.value
289
293
  } : {}
290
294
  });
291
- function g(a) {
295
+ function T(a) {
292
296
  return a ? new Date(
293
297
  a.getUTCFullYear(),
294
298
  a.getUTCMonth(),
@@ -298,55 +302,55 @@ const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
298
302
  a.getUTCSeconds()
299
303
  ) : null;
300
304
  }
301
- const w = T(() => {
305
+ const A = _(() => {
302
306
  var a, i;
303
307
  return (
304
308
  // eslint-disable-next-line consistent-return
305
309
  ((i = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ value: u, data: d }) => {
306
- var b;
310
+ var I;
307
311
  if (!d.endDate) {
308
312
  if (d.isRelativeToNow) {
309
- const E = (b = f.value) == null ? void 0 : b[u];
310
- return E ? De(
311
- g(E.startDate),
312
- g(r.startDate)
313
- ) && De(
314
- g(E.endDate),
315
- g(r.endDate)
313
+ const h = (I = f.value) == null ? void 0 : I[u];
314
+ return h ? ue(
315
+ T(h.startDate),
316
+ T(r.startDate)
317
+ ) && ue(
318
+ T(h.endDate),
319
+ T(r.endDate)
316
320
  ) : (
317
321
  // If not stored calculated dates, fall back to comparing the quick select item's value
318
322
  // with the internal range's stored range identifier.
319
323
  u === r.range
320
324
  );
321
325
  }
322
- return De(
323
- g(d.startDate),
324
- g(r.startDate)
325
- ) && De(
326
- g(r.endDate),
327
- g(C(r.endDate))
328
- ) && It(g(r.endDate));
326
+ return ue(
327
+ T(d.startDate),
328
+ T(r.startDate)
329
+ ) && ue(
330
+ T(r.endDate),
331
+ T(F(r.endDate))
332
+ ) && Et(T(r.endDate));
329
333
  }
330
334
  if (t.allowTimeInput)
331
335
  return Ue(
332
- g(d.startDate),
333
- g(r.startDate)
334
- ) && Ue(g(d.endDate), g(r.endDate));
336
+ T(d.startDate),
337
+ T(r.startDate)
338
+ ) && Ue(T(d.endDate), T(r.endDate));
335
339
  if (d.endDate)
336
- return B(d.startDate, r.startDate) && B(d.endDate, r.endDate);
337
- })) == null ? void 0 : i.value) ?? Pe
340
+ return C(d.startDate, r.startDate) && C(d.endDate, r.endDate);
341
+ })) == null ? void 0 : i.value) ?? qe
338
342
  );
339
- }), ne = T(() => ({
343
+ }), ne = _(() => ({
340
344
  "b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
341
- })), _ = T(() => [
342
- { label: o("customRange"), value: Pe },
345
+ })), R = _(() => [
346
+ { label: o("customRange"), value: qe },
343
347
  ...t.quickSelectRanges ? t.quickSelectRanges : []
344
- ]), A = T(
348
+ ]), x = _(
345
349
  () => {
346
350
  var a;
347
351
  return ((a = t.granularities) == null ? void 0 : a.find(({ type: i }) => i === r.granularity)) || null;
348
352
  }
349
- ), k = T(
353
+ ), E = _(
350
354
  () => {
351
355
  var a;
352
356
  return ((a = t.granularities) == null ? void 0 : a.map(({ type: i, disabled: u }) => ({
@@ -355,239 +359,251 @@ const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
355
359
  disabled: u
356
360
  }))) ?? [];
357
361
  }
358
- ), { getGranularCalendarLimits: ee } = Ot(t), m = T(
359
- () => t.granularities ? ee(A.value) : { min: Z(t.min), max: C(t.max) }
362
+ ), { getGranularCalendarLimits: X } = Ct(t), m = _(
363
+ () => t.granularities ? X(x.value) : { min: M(t.min), max: F(t.max) }
360
364
  ), {
361
- adjustDateForQuarterly: G,
362
- adjustDateForMonthly: te,
363
- adjustDateForWeekly: x,
365
+ adjustDateForQuarterly: H,
366
+ adjustDateForMonthly: Z,
367
+ adjustDateForWeekly: U,
364
368
  adjustStartDateInputForWeekly: v,
365
- adjustEndDateInputForWeekly: U,
366
- adjustStartDateInputForMonthly: F,
367
- adjustEndDateInputForMonthly: H,
368
- adjustStartDateInputForQuarterly: ve,
369
- adjustEndDateInputForQuarterly: le
370
- } = dt(t.firstDayOfWeek), { savedRanges: N, saveRange: q, resetSavedRanges: W } = wt(), S = (a) => a ? ae(a, I.NUMERIC_DATE_YEAR_FIRST, {
369
+ adjustEndDateInputForWeekly: N,
370
+ adjustStartDateInputForMonthly: P,
371
+ adjustEndDateInputForMonthly: W,
372
+ adjustStartDateInputForQuarterly: De,
373
+ adjustEndDateInputForQuarterly: ie
374
+ } = mt(t.firstDayOfWeek), { savedRanges: B, saveRange: Y, resetSavedRanges: V } = At(), k = (a) => a ? te(a, S.NUMERIC_DATE_YEAR_FIRST, {
371
375
  locale: D[l.value.substring(0, 2)] || D.enUS
372
- }) : "", L = (a) => a ? ae(a, I.HOUR_MINUTE_SECONDS, {
376
+ }) : "", Q = (a) => a ? te(a, S.HOUR_MINUTE_SECONDS, {
373
377
  locale: D[l.value.substring(0, 2)] || D.enUS
374
- }) : "", Y = h(!1), V = h(!1), K = h(!1), z = h(!1), s = fe({
378
+ }) : "", K = w(!1), ee = w(!1), j = w(!1), $ = w(!1), s = ce({
375
379
  startDate: t.dateFormData.startDate,
376
380
  endDate: t.dateFormData.endDate,
377
381
  startTime: t.dateFormData.startTime,
378
382
  endTime: t.dateFormData.endTime
379
- }), ue = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), M = (a, i) => {
380
- if (!i || !ue(i) || t.variant === "month")
381
- return a;
383
+ }), me = (a, i) => {
382
384
  let u = new Date(a);
383
- const [d, b, E] = i.split(":");
384
- return u = St(u, parseInt(d, 10)), u = kt(u, parseInt(b, 10)), u = Et(u, parseInt(E, 10)), u;
385
- }, c = (a) => {
386
- s.startTime = L(Z(a.startDate)), s.endTime = L(C(a.endDate)), r.startDate = M(a.startDate, s.startTime), r.endDate = M(a.endDate, s.endTime), r.range = null, t.granularities && W(), e(p.INPUT, {
385
+ const [d, I, h] = i.split(":");
386
+ return u = ht(u, parseInt(d, 10)), u = Ot(u, parseInt(I, 10)), u = wt(u, parseInt(h, 10)), u;
387
+ }, fe = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), c = (a, i) => {
388
+ const u = () => {
389
+ if (i && b(i)) {
390
+ const d = me(new Date(i), a);
391
+ if (t.min && d < Ne(t.min, 0) || t.max && d > Ne(t.max, 0))
392
+ return !1;
393
+ }
394
+ return !0;
395
+ };
396
+ return fe(a) && u();
397
+ }, p = (a, i) => !i || !fe(i) || t.variant === "month" ? a : me(new Date(a), i), z = (a) => {
398
+ s.startTime = Q(
399
+ t.min && t.allowTimeInput && C(t.min, a.startDate) ? t.min : M(a.startDate)
400
+ ), s.endTime = Q(
401
+ t.max && t.allowTimeInput && C(t.max, a.endDate) ? t.max : F(a.endDate)
402
+ ), r.startDate = p(a.startDate, s.startTime), r.endDate = p(a.endDate, s.endTime), r.range = null, t.granularities && V(), e(g.INPUT, {
387
403
  ...r,
388
- range: w.value
404
+ range: A.value
389
405
  });
390
- }, R = (a) => {
391
- const i = (d) => t.min && d <= t.min || t.max && d >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(d) : !0;
406
+ }, b = (a) => {
407
+ const i = (d) => t.min && M(d) < M(t.min) || t.max && M(d) > M(t.max) ? !1 : t.isDateDisabled ? !t.isDateDisabled(M(d)) : !0;
392
408
  return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && i(new Date(a));
393
409
  };
394
- qe(() => {
395
- t.dateFormData.startDate && !R(t.dateFormData.startDate) ? Y.value = !0 : (Y.value = !1, K.value = !1), t.dateFormData.endDate && !R(t.dateFormData.endDate) ? V.value = !0 : (V.value = !1, z.value = !1);
410
+ Ye(() => {
411
+ K.value = !!(t.dateFormData.startDate && !b(t.dateFormData.startDate)), t.allowTimeInput ? j.value = !!(t.dateFormData.startTime && !c(t.dateFormData.startTime, t.dateFormData.startDate)) : j.value = !1, ee.value = !!(t.dateFormData.endDate && !b(t.dateFormData.endDate)), t.allowTimeInput ? $.value = !!(t.dateFormData.endTime && !c(t.dateFormData.endTime, t.dateFormData.endDate)) : $.value = !1;
396
412
  });
397
- const J = (a) => {
413
+ const ve = (a) => {
398
414
  var i;
399
- s.startDate = S(a), s.startTime ? K.value && (s.startTime = (i = t.dateFormData) == null ? void 0 : i.startTime) : s.startTime = L(a), Y.value = !1, K.value = !1, e(p.START_DATE_SELECTED, a);
400
- }, Q = (a) => {
415
+ s.startDate = k(a), s.startTime ? j.value && (s.startTime = (i = t.dateFormData) == null ? void 0 : i.startTime) : s.startTime = Q(a), K.value = !1, j.value = !1, e(g.START_DATE_SELECTED, a);
416
+ }, He = (a) => {
401
417
  var i;
402
- s.endDate = S(a), s.endTime ? z.value && (s.endTime = (i = t.dateFormData) == null ? void 0 : i.endTime) : s.endTime = L(C(a)), V.value = !1, z.value = !1;
403
- }, re = (a) => {
418
+ s.endDate = k(a), s.endTime ? $.value && (s.endTime = (i = t.dateFormData) == null ? void 0 : i.endTime) : s.endTime = Q(F(a)), ee.value = !1, $.value = !1;
419
+ }, ge = (a) => {
404
420
  const i = t.value[a];
405
421
  if (i)
406
422
  return i;
407
- if (t.dateFormData[a] && R(t.dateFormData[a]))
423
+ if (t.dateFormData[a] && b(t.dateFormData[a]))
408
424
  return new Date(t.dateFormData[a]);
409
- }, je = ce((a) => {
425
+ }, We = oe((a) => {
410
426
  var i;
411
- if (R(a)) {
427
+ if (b(a)) {
412
428
  let u = a;
413
- switch (Y.value = !1, (i = A.value) == null ? void 0 : i.type) {
429
+ switch (K.value = !1, (i = x.value) == null ? void 0 : i.type) {
414
430
  case "weekly":
415
431
  u = v(
416
432
  a,
417
- S,
433
+ k,
418
434
  m.value.min,
419
435
  m.value.max
420
436
  ), s.startDate = u;
421
437
  break;
422
438
  case "monthly":
423
- u = F(
439
+ u = P(
424
440
  a,
425
- S,
441
+ k,
426
442
  m.value.min,
427
443
  m.value.max
428
444
  ), s.startDate = u;
429
445
  break;
430
446
  case "quarterly":
431
- u = ve(
447
+ u = De(
432
448
  a,
433
- S,
449
+ k,
434
450
  m.value.min,
435
451
  m.value.max
436
452
  ), s.startDate = u;
437
453
  break;
438
454
  }
439
- const d = X(u);
440
- r.startDate = M(d, s.startTime), r.endDate = M(
441
- X(s.endDate),
455
+ const d = J(u);
456
+ r.startDate = p(d, s.startTime), r.endDate = p(
457
+ J(s.endDate),
442
458
  s.endTime
443
- ), R(s.endDate) && (r.endDate = M(
444
- X(s.endDate),
459
+ ), b(s.endDate) && (r.endDate = p(
460
+ J(s.endDate),
445
461
  s.endTime
446
462
  ));
447
- const b = re("endDate");
448
- r.range = null, e(p.FORM_DATE, {
463
+ const I = ge("endDate");
464
+ r.range = null, e(g.FORM_DATE, {
449
465
  startDate: d,
450
- endDate: b
451
- }), e(p.INPUT, {
466
+ endDate: I
467
+ }), e(g.INPUT, {
452
468
  ...r,
453
- range: w.value
469
+ range: A.value
454
470
  });
455
471
  } else
456
- Y.value = !0, e(p.ERROR, { ...s });
457
- }, Ne), Ge = (a) => {
458
- s.startDate = we(a), je(s.startDate);
459
- }, He = ce((a) => {
472
+ K.value = !0, e(g.ERROR, { ...s });
473
+ }, Be), Ve = (a) => {
474
+ s.startDate = Ce(a), We(s.startDate);
475
+ }, Ke = oe((a) => {
460
476
  var i;
461
- if (R(a)) {
477
+ if (b(a)) {
462
478
  let u = a;
463
- switch (V.value = !1, (i = A.value) == null ? void 0 : i.type) {
479
+ switch (ee.value = !1, (i = x.value) == null ? void 0 : i.type) {
464
480
  case "weekly":
465
- u = U(
481
+ u = N(
466
482
  a,
467
- S,
483
+ k,
468
484
  m.value.min,
469
485
  m.value.max
470
486
  ), s.endDate = u;
471
487
  break;
472
488
  case "monthly":
473
- u = H(
489
+ u = W(
474
490
  a,
475
- S,
491
+ k,
476
492
  m.value.min,
477
493
  m.value.max
478
494
  ), s.endDate = u;
479
495
  break;
480
496
  case "quarterly":
481
- u = le(
497
+ u = ie(
482
498
  a,
483
- S,
499
+ k,
484
500
  m.value.min,
485
501
  m.value.max
486
502
  ), s.endDate = u;
487
503
  break;
488
504
  }
489
- const d = X(u);
490
- r.endDate = M(d, s.endTime), R(s.startDate) && (r.startDate = M(
491
- X(s.startDate),
505
+ const d = J(u);
506
+ r.endDate = p(d, s.endTime), b(s.startDate) && (r.startDate = p(
507
+ J(s.startDate),
492
508
  s.startTime
493
509
  ));
494
- const b = re("startDate");
495
- r.range = null, e(p.FORM_DATE, {
496
- startDate: b,
510
+ const I = ge("startDate");
511
+ r.range = null, e(g.FORM_DATE, {
512
+ startDate: I,
497
513
  endDate: d
498
- }), e(p.INPUT, {
514
+ }), e(g.INPUT, {
499
515
  ...r,
500
- range: w.value
516
+ range: A.value
501
517
  });
502
518
  } else
503
- V.value = !0, e(p.ERROR, { ...s });
504
- }, Ne), We = (a) => {
505
- s.endDate = we(a), He(s.endDate);
506
- }, Ve = (a) => {
507
- ct(a);
508
- }, Ke = ce((a) => {
509
- if (ue(a)) {
510
- K.value = !1, r.startDate = M(r.startDate, a);
511
- const i = re("endDate");
512
- e(p.FORM_DATE, {
519
+ ee.value = !0, e(g.ERROR, { ...s });
520
+ }, Be), ze = (a) => {
521
+ s.endDate = Ce(a), Ke(s.endDate);
522
+ }, Je = (a) => {
523
+ ft(a);
524
+ }, Xe = oe((a) => {
525
+ if (c(a, t.dateFormData.startDate)) {
526
+ j.value = !1, r.startDate = p(r.startDate, a);
527
+ const i = ge("endDate");
528
+ e(g.FORM_DATE, {
513
529
  startDate: r.startDate,
514
530
  endDate: i,
515
531
  startTime: a,
516
532
  endTime: s.endTime ?? t.dateFormData.endTime
517
- }), e(p.INPUT, {
533
+ }), e(g.INPUT, {
518
534
  ...r,
519
- range: w.value
535
+ range: A.value
520
536
  });
521
537
  } else
522
- K.value = !0, e(p.ERROR, { ...s });
523
- }), ze = ce((a) => {
524
- ue(a) ? (z.value = !1, r.endDate = M(r.endDate, a), e(p.FORM_DATE, {
538
+ j.value = !0, e(g.ERROR, { ...s });
539
+ }), Ze = oe((a) => {
540
+ c(a, t.dateFormData.endDate) ? ($.value = !1, r.endDate = p(r.endDate, a), e(g.FORM_DATE, {
525
541
  startDate: r.startDate,
526
542
  endDate: r.endDate,
527
543
  startTime: s.startTime ?? t.dateFormData.startTime,
528
544
  endTime: a
529
- }), e(p.INPUT, {
545
+ }), e(g.INPUT, {
530
546
  ...r,
531
- range: w.value
532
- })) : (z.value = !0, e(p.ERROR, { ...s }));
533
- }), Je = (a) => {
534
- s.startTime = Fe(a), Ke(s.startTime);
535
- }, Xe = (a) => {
536
- s.endTime = Fe(a), ze(s.endTime);
537
- }, Ze = (a) => {
538
- xt(a);
539
- }, de = (a, i, u, d) => {
547
+ range: A.value
548
+ })) : ($.value = !0, e(g.ERROR, { ...s }));
549
+ }), et = (a) => {
550
+ s.startTime = Pe(a), Xe(s.startTime);
551
+ }, tt = (a) => {
552
+ s.endTime = Pe(a), Ze(s.endTime);
553
+ }, at = (a) => {
554
+ Nt(a);
555
+ }, le = (a, i, u, d) => {
540
556
  r.startDate = a, r.endDate = i, u && (r.granularity = u), d && (r.range = d);
541
- }, et = (a) => {
557
+ }, nt = (a) => {
542
558
  var u;
543
559
  const i = (u = t.quickSelectRanges) == null ? void 0 : u.find(({ value: d }) => d === a);
544
560
  if (i) {
545
- W();
546
- const d = i.data, b = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : C(new Date(Date.now()))), E = d.isRelativeToNow && d.timeDifference ? new Date(b.getTime() - d.timeDifference) : d.startDate;
547
- s.endDate = S(b), s.startDate = S(E), de(E, b, null, a), t.granularities && (r.granularity = d.granularity || y.value), s.startTime = L(E), s.endTime = L(b), r.startDate = E, r.endDate = b, d.isRelativeToNow && (f.value = {
561
+ V();
562
+ const d = i.data, I = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : F(new Date(Date.now()))), h = d.isRelativeToNow && d.timeDifference ? new Date(I.getTime() - d.timeDifference) : d.startDate;
563
+ s.endDate = k(I), s.startDate = k(h), le(h, I, null, a), t.granularities && (r.granularity = d.granularity || y.value), s.startTime = Q(h), s.endTime = Q(I), r.startDate = h, r.endDate = I, d.isRelativeToNow && (f.value = {
548
564
  ...f.value,
549
565
  [a]: {
550
- startDate: E,
551
- endDate: b
566
+ startDate: h,
567
+ endDate: I
552
568
  }
553
- }), e(p.CUSTOM_RANGE, {
569
+ }), e(g.CUSTOM_RANGE, {
554
570
  ...i.data,
555
- startDate: E,
556
- endDate: b,
571
+ startDate: h,
572
+ endDate: I,
557
573
  range: i.value
558
574
  });
559
575
  }
560
- }, tt = {
561
- weekly: x,
562
- monthly: te,
563
- quarterly: G
564
- }, at = (a) => {
576
+ }, rt = {
577
+ weekly: U,
578
+ monthly: Z,
579
+ quarterly: H
580
+ }, st = (a) => {
565
581
  const i = r.granularity;
566
- if (r.granularity = a, i && q(i, structuredClone(ge(r))), r.startDate && r.endDate) {
582
+ if (r.granularity = a, i && Y(i, structuredClone(ye(r))), r.startDate && r.endDate) {
567
583
  switch (a) {
568
584
  case "quarterly":
569
585
  case "monthly":
570
586
  case "weekly": {
571
- if (N[a]) {
572
- de(N[a].startDate, N[a].endDate, a);
587
+ if (B[a]) {
588
+ le(B[a].startDate, B[a].endDate, a);
573
589
  break;
574
590
  }
575
- const { startDate: u, endDate: d } = tt[a](
591
+ const { startDate: u, endDate: d } = rt[a](
576
592
  r.startDate,
577
593
  r.endDate,
578
594
  m.value.min,
579
595
  m.value.max
580
596
  );
581
- de(u, d, a);
597
+ le(u, d, a);
582
598
  break;
583
599
  }
584
600
  case "daily":
585
- N.daily && de(N.daily.startDate, N.daily.endDate, a);
601
+ B.daily && le(B.daily.startDate, B.daily.endDate, a);
586
602
  break;
587
603
  }
588
- s.startDate = S(r.startDate), s.endDate = S(r.endDate), e(p.INPUT, {
604
+ s.startDate = k(r.startDate), s.endDate = k(r.endDate), e(g.INPUT, {
589
605
  ...r,
590
- range: w.value
606
+ range: A.value
591
607
  });
592
608
  }
593
609
  };
@@ -595,35 +611,35 @@ const Mt = /[\d]/, Ct = /^\d{2}$/, At = /^\d{2}:\d{2}$/, xt = (t) => {
595
611
  // Values
596
612
  internalRangeDate: r,
597
613
  dateTextInput: s,
598
- endDateError: V,
599
- endTimeError: z,
600
- granularityItems: k,
601
- selectedGranularity: A,
614
+ endDateError: ee,
615
+ endTimeError: $,
616
+ granularityItems: E,
617
+ selectedGranularity: x,
602
618
  computedMinMax: m,
603
- selectedRangeSelectorValue: w,
604
- startDateError: Y,
605
- startTimeError: K,
606
- quickSelectRangeDefaultItems: _,
619
+ selectedRangeSelectorValue: A,
620
+ startDateError: K,
621
+ startTimeError: j,
622
+ quickSelectRangeDefaultItems: R,
607
623
  formInputWrapperConditionalClasses: ne,
608
624
  // Methods
609
625
  hasSlot: pt(n),
610
626
  t: o,
611
627
  // Events
612
- onDateInput: c,
613
- onDateInputKeyDown: Ve,
614
- onEndDateInput: We,
615
- onEndDateSelected: Q,
616
- onEndTimeInput: Xe,
617
- onGranularityInput: at,
618
- onRangeSelectorInput: et,
619
- onStartDateInput: Ge,
620
- onStartDateSelected: J,
621
- onStartTimeInput: Je,
622
- onTimeInputKeyDown: Ze
628
+ onDateInput: z,
629
+ onDateInputKeyDown: Je,
630
+ onEndDateInput: ze,
631
+ onEndDateSelected: He,
632
+ onEndTimeInput: tt,
633
+ onGranularityInput: st,
634
+ onRangeSelectorInput: nt,
635
+ onStartDateInput: Ve,
636
+ onStartDateSelected: ve,
637
+ onStartTimeInput: et,
638
+ onTimeInputKeyDown: at
623
639
  };
624
640
  }
625
641
  });
626
- var Nt = function() {
642
+ var qt = function() {
627
643
  var e = this, n = e._self._c;
628
644
  return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? n("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
629
645
  return [e._v("YYYY-MM-DD")];
@@ -634,65 +650,65 @@ var Nt = function() {
634
650
  }, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
635
651
  return [e._v("HH:MM:SS")];
636
652
  }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.internalRangeDate, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.computedMinMax.min, max: e.computedMinMax.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, granularity: e.selectedGranularity, variant: e.variant, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
637
- }, Pt = [], Bt = /* @__PURE__ */ Qe(
638
- Ft,
639
- Nt,
640
- Pt,
653
+ }, Lt = [], Yt = /* @__PURE__ */ $e(
654
+ Bt,
655
+ qt,
656
+ Lt,
641
657
  !1,
642
658
  null,
643
- "bb72f95a"
659
+ "f113fd62"
644
660
  );
645
- const P = Bt.exports, qt = ({
661
+ const q = Yt.exports, Qt = ({
646
662
  datePickerValue: t,
647
663
  isDateIncorrect: e,
648
664
  quickSelectRanges: n,
649
665
  isMonthVariant: l
650
666
  }) => {
651
- var _, A, k, ee;
652
- const { locale: o, t: D } = Te(), f = ye(), y = (m) => !!m && !isNaN(m.getTime()), r = (m, G) => y(m) ? ae(m, G, {
667
+ var R, x, E, X;
668
+ const { locale: o, t: D } = _e(), f = pe(), y = (m) => !!m && !isNaN(m.getTime()), r = (m, H) => y(m) ? te(m, H, {
653
669
  locale: f[o.value.substring(0, 2)] || f.enUS
654
- }) : void 0, g = fe({
655
- startDate: r((_ = t.value) == null ? void 0 : _.startDate, I.NUMERIC_DATE_YEAR_FIRST),
656
- endDate: r((A = t.value) == null ? void 0 : A.endDate, I.NUMERIC_DATE_YEAR_FIRST),
657
- startTime: r((k = t.value) == null ? void 0 : k.startDate, I.HOUR_MINUTE_SECONDS),
658
- endTime: r((ee = t.value) == null ? void 0 : ee.endDate, I.HOUR_MINUTE_SECONDS)
670
+ }) : void 0, T = ce({
671
+ startDate: r((R = t.value) == null ? void 0 : R.startDate, S.NUMERIC_DATE_YEAR_FIRST),
672
+ endDate: r((x = t.value) == null ? void 0 : x.endDate, S.NUMERIC_DATE_YEAR_FIRST),
673
+ startTime: r((E = t.value) == null ? void 0 : E.startDate, S.HOUR_MINUTE_SECONDS),
674
+ endTime: r((X = t.value) == null ? void 0 : X.endDate, S.HOUR_MINUTE_SECONDS)
659
675
  });
660
676
  return {
661
677
  // Values
662
- dateDisplayValue: T(() => {
663
- var x;
678
+ dateDisplayValue: _(() => {
679
+ var U;
664
680
  if (e.value)
665
- return `${g.startDate || ""} - ${g.endDate || ""}`;
681
+ return `${T.startDate || ""} - ${T.endDate || ""}`;
666
682
  if (!t.value || !t.value.startDate && !t.value.endDate)
667
683
  return D("selectDateRange");
668
- if ((x = n.value) != null && x.length) {
669
- const v = n.value.find(({ value: U }) => {
670
- var F;
671
- return U === ((F = t.value) == null ? void 0 : F.range);
684
+ if ((U = n.value) != null && U.length) {
685
+ const v = n.value.find(({ value: N }) => {
686
+ var P;
687
+ return N === ((P = t.value) == null ? void 0 : P.range);
672
688
  });
673
689
  if (v)
674
690
  return v.label;
675
691
  }
676
692
  if (t.value.granularity === "quarterly") {
677
- const { startDate: v, endDate: U } = t.value, F = D("quarter", { quarter: Ce(v), year: Ae(v) });
678
- if (bt(v, U))
679
- return F;
680
- const H = D("quarter", { quarter: Ce(U), year: Ae(U) });
681
- return `${F} - ${H}`;
693
+ const { startDate: v, endDate: N } = t.value, P = D("quarter", { quarter: Ae(v), year: Fe(v) });
694
+ if (kt(v, N))
695
+ return P;
696
+ const W = D("quarter", { quarter: Ae(N), year: Fe(N) });
697
+ return `${P} - ${W}`;
682
698
  }
683
- const { startDate: m, endDate: G } = g, te = l != null && l.value ? I.LONG_MONTH_YEAR : I.FULL_DATE_MONTH_FIRST;
684
- return `${r(X(m), te)} - ${r(
685
- X(G),
686
- te
699
+ const { startDate: m, endDate: H } = T, Z = l != null && l.value ? S.LONG_MONTH_YEAR : S.FULL_DATE_MONTH_FIRST;
700
+ return `${r(J(m), Z)} - ${r(
701
+ J(H),
702
+ Z
687
703
  )}`;
688
704
  }),
689
- textInputDisplayValue: g,
705
+ textInputDisplayValue: T,
690
706
  // Methods
691
707
  formatTextInputDisplayValue: () => ""
692
708
  };
693
709
  };
694
- var me = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(me || {});
695
- const Lt = {
710
+ var de = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(de || {});
711
+ const jt = {
696
712
  "en-US": {
697
713
  apply: "Apply",
698
714
  cancel: "Cancel",
@@ -713,20 +729,20 @@ const Lt = {
713
729
  cancel: "Cancelar",
714
730
  selectDate: "Selecione uma data"
715
731
  }
716
- }, Yt = Be({
717
- i18n: { messages: Lt },
732
+ }, $t = Le({
733
+ i18n: { messages: jt },
718
734
  name: "bento-date-range-picker",
719
735
  components: {
720
- BentoButtonActions: _t,
721
- BentoDivider: nt,
722
- BentoTypography: Le,
723
- BentoPopover: rt,
724
- DateRangePickerCalendar: P,
725
- DropdownInputDefault: it,
726
- ErrorMessage: Tt,
727
- FieldLabel: yt
736
+ BentoButtonActions: bt,
737
+ BentoDivider: it,
738
+ BentoTypography: Qe,
739
+ BentoPopover: lt,
740
+ DateRangePickerCalendar: q,
741
+ DropdownInputDefault: ut,
742
+ ErrorMessage: It,
743
+ FieldLabel: Rt
728
744
  },
729
- directives: { BentoClickOutsideDirective: gt },
745
+ directives: { BentoClickOutsideDirective: _t },
730
746
  props: {
731
747
  /**
732
748
  * Allows user to enter time values in the form
@@ -747,16 +763,16 @@ const Lt = {
747
763
  /**
748
764
  * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
749
765
  */
750
- firstDayOfWeek: P.props.firstDayOfWeek,
766
+ firstDayOfWeek: q.props.firstDayOfWeek,
751
767
  /**
752
768
  * A list of available granularities.
753
769
  * If present, the date picker will display a segmented control to change granularity.
754
770
  */
755
- granularities: P.props.granularities,
771
+ granularities: q.props.granularities,
756
772
  /**
757
773
  * Indicate if a date should be disabled or not
758
774
  */
759
- isDateDisabled: P.props.isDateDisabled,
775
+ isDateDisabled: q.props.isDateDisabled,
760
776
  /**
761
777
  * Text that is displayed as a label above the element.
762
778
  */
@@ -795,23 +811,23 @@ const Lt = {
795
811
  /**
796
812
  * Set a maximum number of dates to be selectable by the range.
797
813
  */
798
- maxRange: P.props.maxRange,
814
+ maxRange: q.props.maxRange,
799
815
  /**
800
816
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
801
817
  */
802
- min: P.props.min,
818
+ min: q.props.min,
803
819
  /**
804
820
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
805
821
  */
806
- max: P.props.max,
822
+ max: q.props.max,
807
823
  /**
808
824
  * Number of months rendered on pane
809
825
  */
810
- numberOfMonths: P.props.numberOfMonths,
826
+ numberOfMonths: q.props.numberOfMonths,
811
827
  /**
812
828
  * Selected date
813
829
  */
814
- value: P.props.value,
830
+ value: q.props.value,
815
831
  /**
816
832
  * The type of calendar to display. Defaults to showing days.
817
833
  */
@@ -828,50 +844,50 @@ const Lt = {
828
844
  */
829
845
  hasActions: { type: Boolean, default: !1 }
830
846
  },
831
- emits: [me.INPUT],
847
+ emits: [de.INPUT],
832
848
  setup(t, { emit: e }) {
833
- const { locale: n, t: l } = Te(), o = ye(), D = se("bento-date-range-picker-container"), f = se("bento-date-range-picker-label"), y = se("bento-date-range-picker-description"), r = se("bento-date-range-picker-error"), g = se("bento-date-range-picker-date-error"), w = T(
849
+ const { locale: n, t: l } = _e(), o = pe(), D = re("bento-date-range-picker-container"), f = re("bento-date-range-picker-label"), y = re("bento-date-range-picker-description"), r = re("bento-date-range-picker-error"), T = re("bento-date-range-picker-date-error"), A = _(
834
850
  () => t.label || l("dateRangePicker", { name: D })
835
- ), ne = T(() => (t == null ? void 0 : t.quickSelectRanges) && t.quickSelectRanges.map((c) => {
836
- const R = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
851
+ ), ne = _(() => (t == null ? void 0 : t.quickSelectRanges) && t.quickSelectRanges.map((c) => {
852
+ const p = c.data.endDate ? void 0 : new Date(Date.now()).getTime() - c.data.startDate.getTime();
837
853
  return {
838
854
  ...c,
839
855
  data: {
840
856
  ...c.data,
841
857
  // Adding timeDifference to calculate an up-to-date endDate on range selection
842
- timeDifference: R
858
+ timeDifference: p
843
859
  }
844
860
  };
845
- })), _ = h(!1), A = h(null), k = h(!1), { isReadOnly: ee } = Dt(Se(t, "readonly"));
846
- pe(
861
+ })), R = w(!1), x = w(null), E = w(!1), { isReadOnly: X } = vt(ke(t, "readonly"));
862
+ Te(
847
863
  () => t.disabled,
848
864
  () => {
849
- t.disabled && k.value && (k.value = !1);
865
+ t.disabled && E.value && (E.value = !1);
850
866
  }
851
867
  );
852
- const m = T(() => t.hasActions ? !W.value && _.value : _.value), G = T(() => ({
868
+ const m = _(() => t.hasActions ? !V.value && R.value : R.value), H = _(() => ({
853
869
  "b-date-range-picker__description--error": !!t.errorMessage || m.value
854
- })), te = T(() => t.variant === "month"), { dateDisplayValue: x, textInputDisplayValue: v } = qt({
855
- datePickerValue: Se(t, "value"),
856
- isDateIncorrect: _,
870
+ })), Z = _(() => t.variant === "month"), { dateDisplayValue: U, textInputDisplayValue: v } = Qt({
871
+ datePickerValue: ke(t, "value"),
872
+ isDateIncorrect: R,
857
873
  quickSelectRanges: ne,
858
- isMonthVariant: te
859
- }), U = T(
860
- () => `${t.description ? y : ""} ${t.errorMessage ? r : ""} ${_.value ? g : ""}`.trim() || null
861
- ), F = T(() => t.allowTimeInput && t.variant !== "month"), H = () => {
862
- k.value = !1;
863
- }, ve = () => {
864
- k.value = !0;
865
- }, le = h(x.value), N = h(
874
+ isMonthVariant: Z
875
+ }), N = _(
876
+ () => `${t.description ? y : ""} ${t.errorMessage ? r : ""} ${R.value ? T : ""}`.trim() || null
877
+ ), P = _(() => t.allowTimeInput && t.variant !== "month"), W = () => {
878
+ E.value = !1;
879
+ }, De = () => {
880
+ E.value = !0;
881
+ }, ie = w(U.value), B = w(
866
882
  // textInputDisplayValue is a reactive object
867
- structuredClone(ge(v))
868
- ), q = h(t.value), W = h(!0), S = T(
869
- () => t.hasActions ? N.value : v
870
- ), L = T(
871
- () => t.hasActions ? le.value : x.value
883
+ structuredClone(ye(v))
884
+ ), Y = w(t.value), V = w(!0), k = _(
885
+ () => t.hasActions ? B.value : v
886
+ ), Q = _(
887
+ () => t.hasActions ? ie.value : U.value
872
888
  );
873
- qe(() => {
874
- if (t.hasActions || st(
889
+ Ye(() => {
890
+ if (t.hasActions || ot(
875
891
  'BentoDateRangePicker "hasActions" property',
876
892
  `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
877
893
  This will be the default behavior in the v2 and "hasActions" will be removed.`,
@@ -880,126 +896,126 @@ const Lt = {
880
896
  throw new Error(
881
897
  'Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"'
882
898
  );
883
- }), pe(
899
+ }), Te(
884
900
  () => t.value,
885
901
  () => {
886
- le.value = x.value, N.value = structuredClone(ge(v));
902
+ ie.value = U.value, B.value = structuredClone(ye(v));
887
903
  }
888
904
  );
889
- const Y = T(() => [
905
+ const K = _(() => [
890
906
  {
891
907
  title: l("apply"),
892
908
  event: () => {
893
- e(me.INPUT, q.value), H(), W.value = !0;
909
+ e(de.INPUT, Y.value), W(), V.value = !0;
894
910
  },
895
- disabled: W.value
911
+ disabled: V.value
896
912
  },
897
913
  {
898
914
  title: l("cancel"),
899
- event: H
915
+ event: W
900
916
  }
901
917
  ]);
902
- return pe(q, (c) => {
918
+ return Te(Y, (c) => {
903
919
  if (t.hasActions) {
904
- W.value = _.value;
920
+ V.value = R.value;
905
921
  return;
906
922
  }
907
- e(me.INPUT, c);
923
+ e(de.INPUT, c);
908
924
  }), {
909
925
  // Refs
910
- inputContainerRef: A,
926
+ inputContainerRef: x,
911
927
  // Values,
912
928
  adjustedQuickSelectRanges: ne,
913
- dateDisplayValue: x,
929
+ dateDisplayValue: U,
914
930
  datePickerContainerId: D,
915
- descriptionConditionalClasses: G,
916
- displayedTextInputValue: S,
917
- displayedDateValue: L,
918
- isDateIncorrect: _,
919
- isDateRangePickerOpen: k,
920
- isReadOnly: ee,
931
+ descriptionConditionalClasses: H,
932
+ displayedTextInputValue: k,
933
+ displayedDateValue: Q,
934
+ isDateIncorrect: R,
935
+ isDateRangePickerOpen: E,
936
+ isReadOnly: X,
921
937
  labelId: f,
922
938
  descriptionId: y,
923
- dateErrorId: g,
939
+ dateErrorId: T,
924
940
  errorId: r,
925
- popoverAriaLabel: w,
941
+ popoverAriaLabel: A,
926
942
  shouldDisplayError: m,
927
- ariaDescribedBy: U,
943
+ ariaDescribedBy: N,
928
944
  textInputDisplayValue: v,
929
- rangePickerButtonActions: Y,
930
- BentoButtonActionsLayout: Rt,
931
- withTimeInput: F,
945
+ rangePickerButtonActions: K,
946
+ BentoButtonActionsLayout: St,
947
+ withTimeInput: P,
932
948
  // Events
933
- closeDateRangePicker: H,
949
+ closeDateRangePicker: W,
934
950
  clearDateRangePickerValue: async () => {
935
- _.value && (_.value = !1), q.value = null;
951
+ R.value && (R.value = !1), Y.value = null;
936
952
  },
937
- openDateRangePicker: ve,
953
+ openDateRangePicker: De,
938
954
  onRangeSelectorInput: (c) => {
939
955
  if (c) {
940
- const R = (Q, re) => Q ? ae(Q, re, {
956
+ const p = (b, ve) => b ? te(b, ve, {
941
957
  locale: o[n.value.substring(0, 2)] || o.enUS
942
- }) : void 0, J = (Q) => ae(Q, I.NUMERIC_DATE_YEAR_FIRST, {
958
+ }) : void 0, z = (b) => te(b, S.NUMERIC_DATE_YEAR_FIRST, {
943
959
  locale: o[n.value.substring(0, 2)] || o.enUS
944
960
  });
945
- v.startDate = J(c.startDate), v.endDate = J(c.endDate), v.startTime = R(
961
+ v.startDate = z(c.startDate), v.endDate = z(c.endDate), v.startTime = p(
946
962
  c.startDate,
947
- I.HOUR_MINUTE_SECONDS
948
- ), v.endTime = R(
963
+ S.HOUR_MINUTE_SECONDS
964
+ ), v.endTime = p(
949
965
  c.endDate,
950
- I.HOUR_MINUTE_SECONDS
951
- ), q.value = c;
966
+ S.HOUR_MINUTE_SECONDS
967
+ ), Y.value = c;
952
968
  }
953
969
  },
954
970
  onEnterPressedOverInput: () => {
955
- if (!k.value) {
956
- k.value = !0;
971
+ if (!E.value) {
972
+ E.value = !0;
957
973
  return;
958
974
  }
959
- _.value || (k.value = !1);
975
+ R.value || (E.value = !1);
960
976
  },
961
977
  onDateRangePickerInput: (c) => {
962
- _.value = !1;
963
- const R = (J, Q) => J ? ae(J, Q, {
978
+ R.value = !1;
979
+ const p = (z, b) => z ? te(z, b, {
964
980
  locale: o[n.value.substring(0, 2)] || o.enUS
965
981
  }) : void 0;
966
- v.startDate = R(
982
+ v.startDate = p(
967
983
  c.startDate,
968
- I.NUMERIC_DATE_YEAR_FIRST
969
- ), v.endDate = R(c.endDate, I.NUMERIC_DATE_YEAR_FIRST), v.startTime = R(c.startDate, I.HOUR_MINUTE_SECONDS), v.endTime = R(c.endDate, I.HOUR_MINUTE_SECONDS), q.value = c;
984
+ S.NUMERIC_DATE_YEAR_FIRST
985
+ ), v.endDate = p(c.endDate, S.NUMERIC_DATE_YEAR_FIRST), v.startTime = p(c.startDate, S.HOUR_MINUTE_SECONDS), v.endTime = p(c.endDate, S.HOUR_MINUTE_SECONDS), Y.value = c;
970
986
  },
971
987
  onDateRangePickerError: (c) => {
972
- _.value = !0, v.startDate = c.startDate, v.endDate = c.endDate, q.value = { startDate: null, endDate: null };
988
+ R.value = !0, v.startDate = c.startDate, v.endDate = c.endDate, Y.value = { startDate: null, endDate: null };
973
989
  },
974
990
  onDateRangePickerFormDateInputUpdate: (c) => {
975
- _.value = !1, c.startTime && (v.startTime = c.startTime), c.endTime && (v.endTime = c.endTime);
991
+ R.value = !1, c.startTime && (v.startTime = c.startTime), c.endTime && (v.endTime = c.endTime);
976
992
  },
977
993
  // Translations
978
994
  t: l
979
995
  };
980
996
  }
981
997
  });
982
- var Qt = function() {
998
+ var Gt = function() {
983
999
  var e = this, n = e._self._c;
984
1000
  return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", { on: { keydown: function(l) {
985
1001
  return !l.type.indexOf("key") && e._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
986
1002
  } } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.shouldDisplayError, open: e.isDateRangePickerOpen, "display-value": e.displayedDateValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.shouldDisplayError ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.withTimeInput, "quick-select-ranges": e.adjustedQuickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, granularities: e.granularities, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, "date-form-data": e.displayedTextInputValue, variant: e.variant }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
987
1003
  return [n("bento-divider"), n("div", { staticClass: "b-date-range-picker__footer" }, [n("bento-button-actions", { attrs: { actions: e.rangePickerButtonActions, layout: e.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
988
1004
  }, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
989
- }, $t = [], jt = /* @__PURE__ */ Qe(
990
- Yt,
991
- Qt,
1005
+ }, Ht = [], Wt = /* @__PURE__ */ $e(
992
1006
  $t,
1007
+ Gt,
1008
+ Ht,
993
1009
  !1,
994
1010
  null,
995
1011
  "288c6da8"
996
1012
  );
997
- const fa = jt.exports;
1013
+ const ga = Wt.exports;
998
1014
  export {
999
- fa as B,
1000
- P as D,
1001
- me as a,
1002
- It as b,
1003
- De as i
1015
+ ga as B,
1016
+ q as D,
1017
+ de as a,
1018
+ Et as b,
1019
+ ue as i
1004
1020
  };
1005
- //# sourceMappingURL=date-range-picker.D9lyIoO-.js.map
1021
+ //# sourceMappingURL=date-range-picker.am63DgMj.js.map