@adyen/bento-vue2 1.45.0 → 1.47.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 (199) hide show
  1. package/dist/@types/index.d.ts +16740 -18774
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/calendar.css +1 -1
  9. package/dist/assets/card.css +1 -1
  10. package/dist/assets/data-grid.css +1 -1
  11. package/dist/assets/date-picker.css +1 -1
  12. package/dist/assets/date-range-picker.css +1 -1
  13. package/dist/assets/dialog-page.css +1 -1
  14. package/dist/assets/divider.css +1 -1
  15. package/dist/assets/dropdown.css +1 -1
  16. package/dist/assets/file-uploader.css +1 -1
  17. package/dist/assets/input-field-password.css +1 -1
  18. package/dist/assets/input-field.css +1 -1
  19. package/dist/assets/inspector.css +1 -1
  20. package/dist/assets/menu.css +1 -1
  21. package/dist/assets/modal-fullscreen.css +1 -1
  22. package/dist/assets/popover.css +1 -1
  23. package/dist/assets/radio-group.css +1 -1
  24. package/dist/assets/radio-input.css +1 -1
  25. package/dist/assets/sidepanel.css +1 -1
  26. package/dist/assets/status.css +1 -1
  27. package/dist/assets/step.css +1 -1
  28. package/dist/button.js +1 -1
  29. package/dist/card.js +1 -1
  30. package/dist/checkbox.js +2 -2
  31. package/dist/chunks/{accordion-item.CzKttO4w.js → accordion-item.CTxrEQEW.js} +5 -5
  32. package/dist/chunks/{accordion-item.CzKttO4w.js.map → accordion-item.CTxrEQEW.js.map} +1 -1
  33. package/dist/chunks/{action-bar.BXemSuq4.js → action-bar.EcN2I7Az.js} +11 -11
  34. package/dist/chunks/{action-bar.BXemSuq4.js.map → action-bar.EcN2I7Az.js.map} +1 -1
  35. package/dist/chunks/{alert.CAIp-87f.js → alert.BRN8cpXl.js} +7 -7
  36. package/dist/chunks/{alert.CAIp-87f.js.map → alert.BRN8cpXl.js.map} +1 -1
  37. package/dist/chunks/{base-modal.4JSNBM4T.js → base-modal.BgTZ8iQ6.js} +5 -5
  38. package/dist/chunks/{base-modal.4JSNBM4T.js.map → base-modal.BgTZ8iQ6.js.map} +1 -1
  39. package/dist/chunks/{button-actions-with-menu.ieopdfI7.js → button-actions-with-menu.C8EjGVCT.js} +4 -4
  40. package/dist/chunks/{button-actions-with-menu.ieopdfI7.js.map → button-actions-with-menu.C8EjGVCT.js.map} +1 -1
  41. package/dist/chunks/{button-actions.CtFB6iRj.js → button-actions.BU173IFE.js} +5 -5
  42. package/dist/chunks/{button-actions.CtFB6iRj.js.map → button-actions.BU173IFE.js.map} +1 -1
  43. package/dist/chunks/{calendar.BouORZfb.js → calendar.DlOcbH6E.js} +161 -148
  44. package/dist/chunks/{calendar.BouORZfb.js.map → calendar.DlOcbH6E.js.map} +1 -1
  45. package/dist/chunks/{card.BabmUkTG.js → card.DoyCGJay.js} +10 -10
  46. package/dist/chunks/{card.BabmUkTG.js.map → card.DoyCGJay.js.map} +1 -1
  47. package/dist/chunks/{checkbox-group.DbLznnsa.js → checkbox-group.BQN9gjgH.js} +4 -4
  48. package/dist/chunks/{checkbox-group.DbLznnsa.js.map → checkbox-group.BQN9gjgH.js.map} +1 -1
  49. package/dist/chunks/{checkbox.fhQLs-NN.js → checkbox.O1CbmNdS.js} +22 -22
  50. package/dist/chunks/{checkbox.fhQLs-NN.js.map → checkbox.O1CbmNdS.js.map} +1 -1
  51. package/dist/chunks/{code-snippet.5iJcUZSo.js → code-snippet.BDBD85qD.js} +117 -87
  52. package/dist/chunks/code-snippet.BDBD85qD.js.map +1 -0
  53. package/dist/chunks/{codemirror.CXFEqvAi.js → codemirror.0fz2cWJS.js} +4970 -4661
  54. package/dist/chunks/codemirror.0fz2cWJS.js.map +1 -0
  55. package/dist/chunks/{controls-group.CnXzOQkX.js → controls-group.C3RDqB9H.js} +2 -2
  56. package/dist/chunks/{controls-group.CnXzOQkX.js.map → controls-group.C3RDqB9H.js.map} +1 -1
  57. package/dist/chunks/{copy.DN0tClPm.js → copy.BuMSGw23.js} +5 -5
  58. package/dist/chunks/{copy.DN0tClPm.js.map → copy.BuMSGw23.js.map} +1 -1
  59. package/dist/chunks/{country.Bft91V1L.js → country.2-ZtYkh7.js} +2 -2
  60. package/dist/chunks/{country.Bft91V1L.js.map → country.2-ZtYkh7.js.map} +1 -1
  61. package/dist/chunks/{country.types.pilf5B3F.js → country.types.CLjbulKL.js} +4114 -4114
  62. package/dist/chunks/{country.types.pilf5B3F.js.map → country.types.CLjbulKL.js.map} +1 -1
  63. package/dist/chunks/{dashboard-section.DYXZhtop.js → dashboard-section.COWO5SVw.js} +3 -3
  64. package/dist/chunks/{dashboard-section.DYXZhtop.js.map → dashboard-section.COWO5SVw.js.map} +1 -1
  65. package/dist/chunks/{dashed-underline.BvSZS1-m.js → dashed-underline.BEAEmTCb.js} +2 -2
  66. package/dist/chunks/{dashed-underline.BvSZS1-m.js.map → dashed-underline.BEAEmTCb.js.map} +1 -1
  67. package/dist/chunks/{data-grid-template.Du92TEFY.js → data-grid-template.vBl7u2cB.js} +2 -2
  68. package/dist/chunks/{data-grid-template.Du92TEFY.js.map → data-grid-template.vBl7u2cB.js.map} +1 -1
  69. package/dist/chunks/{data-grid.Kwtf1DMq.js → data-grid.DQ0578m9.js} +46 -46
  70. package/dist/chunks/{data-grid.Kwtf1DMq.js.map → data-grid.DQ0578m9.js.map} +1 -1
  71. package/dist/chunks/{date-picker.B7mTNghB.js → date-picker.Bym2OEd9.js} +47 -39
  72. package/dist/chunks/date-picker.Bym2OEd9.js.map +1 -0
  73. package/dist/chunks/{date-range-picker.DPLri9D-.js → date-range-picker.P2Q5FNB-.js} +310 -306
  74. package/dist/chunks/date-range-picker.P2Q5FNB-.js.map +1 -0
  75. package/dist/chunks/divider.Cc4JFWG_.js +35 -0
  76. package/dist/chunks/divider.Cc4JFWG_.js.map +1 -0
  77. package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js → dropdown-default-textbox.CC9Z_RFG.js} +4 -4
  78. package/dist/chunks/{dropdown-default-textbox.DBoSso4J.js.map → dropdown-default-textbox.CC9Z_RFG.js.map} +1 -1
  79. package/dist/chunks/{dropdown-tag.XIlES6IT.js → dropdown-tag.CiCDvGyN.js} +4 -4
  80. package/dist/chunks/{dropdown-tag.XIlES6IT.js.map → dropdown-tag.CiCDvGyN.js.map} +1 -1
  81. package/dist/chunks/{dropdown.BqsoncJr.js → dropdown.hc9ZuuTt.js} +197 -193
  82. package/dist/chunks/dropdown.hc9ZuuTt.js.map +1 -0
  83. package/dist/chunks/{error-message.Ccc1sTTp.js → error-message.Da-p1QIA.js} +8 -8
  84. package/dist/chunks/{error-message.Ccc1sTTp.js.map → error-message.Da-p1QIA.js.map} +1 -1
  85. package/dist/chunks/{es6.jIyAPBgt.js → es6.BtaxuP0b.js} +7 -7
  86. package/dist/chunks/es6.BtaxuP0b.js.map +1 -0
  87. package/dist/chunks/file-uploader.DVyryYaq.js +1879 -0
  88. package/dist/chunks/file-uploader.DVyryYaq.js.map +1 -0
  89. package/dist/chunks/{filter-bar.DT_-lVmf.js → filter-bar.DzcNo5nF.js} +53 -53
  90. package/dist/chunks/{filter-bar.DT_-lVmf.js.map → filter-bar.DzcNo5nF.js.map} +1 -1
  91. package/dist/chunks/{footer-actions.D0uH9JWq.js → footer-actions.Cbe_YLjP.js} +2 -2
  92. package/dist/chunks/{footer-actions.D0uH9JWq.js.map → footer-actions.Cbe_YLjP.js.map} +1 -1
  93. package/dist/chunks/{form-layout-title.DN0jonFa.js → form-layout-title.Xdsi84v2.js} +2 -2
  94. package/dist/chunks/{form-layout-title.DN0jonFa.js.map → form-layout-title.Xdsi84v2.js.map} +1 -1
  95. package/dist/chunks/{header.BvZxtIOD.js → header.BIZTUAJE.js} +4 -4
  96. package/dist/chunks/{header.BvZxtIOD.js.map → header.BIZTUAJE.js.map} +1 -1
  97. package/dist/chunks/{info-icon-with-popover.DEjsASNU.js → info-icon-with-popover.Bly2e0uy.js} +5 -5
  98. package/dist/chunks/{info-icon-with-popover.DEjsASNU.js.map → info-icon-with-popover.Bly2e0uy.js.map} +1 -1
  99. package/dist/chunks/{input-field-password.HRDEb0jL.js → input-field-password.CosL-n__.js} +27 -27
  100. package/dist/chunks/{input-field-password.HRDEb0jL.js.map → input-field-password.CosL-n__.js.map} +1 -1
  101. package/dist/chunks/input-field.DgDFJbg7.js +231 -0
  102. package/dist/chunks/input-field.DgDFJbg7.js.map +1 -0
  103. package/dist/chunks/{inspector.types.2YEArjPi.js → inspector.types.8071wkf0.js} +5 -5
  104. package/dist/chunks/{inspector.types.2YEArjPi.js.map → inspector.types.8071wkf0.js.map} +1 -1
  105. package/dist/chunks/{menu.CLaN9Eys.js → menu.Dq7RlryT.js} +5 -5
  106. package/dist/chunks/{menu.CLaN9Eys.js.map → menu.Dq7RlryT.js.map} +1 -1
  107. package/dist/chunks/{modal-fullscreen.B-qr1Szh.js → modal-fullscreen.CfrgVR_K.js} +5 -5
  108. package/dist/chunks/{modal-fullscreen.B-qr1Szh.js.map → modal-fullscreen.CfrgVR_K.js.map} +1 -1
  109. package/dist/chunks/{modal.wU3uUJKq.js → modal.CuUUMIU_.js} +4 -4
  110. package/dist/chunks/{modal.wU3uUJKq.js.map → modal.CuUUMIU_.js.map} +1 -1
  111. package/dist/chunks/{pagination.BM3FhtxJ.js → pagination.QF1EEUfX.js} +45 -45
  112. package/dist/chunks/{pagination.BM3FhtxJ.js.map → pagination.QF1EEUfX.js.map} +1 -1
  113. package/dist/chunks/{popover.DsUymZWJ.js → popover.nev0GndY.js} +2 -2
  114. package/dist/chunks/{popover.DsUymZWJ.js.map → popover.nev0GndY.js.map} +1 -1
  115. package/dist/chunks/radio-group.D1q0VKvv.js +229 -0
  116. package/dist/chunks/radio-group.D1q0VKvv.js.map +1 -0
  117. package/dist/chunks/{radio-input.C1DZbkcT.js → radio-input.uJAhxKRs.js} +29 -25
  118. package/dist/chunks/{radio-input.C1DZbkcT.js.map → radio-input.uJAhxKRs.js.map} +1 -1
  119. package/dist/chunks/{search-bar.rubkdbcD.js → search-bar.fmMx-zRN.js} +7 -7
  120. package/dist/chunks/{search-bar.rubkdbcD.js.map → search-bar.fmMx-zRN.js.map} +1 -1
  121. package/dist/chunks/{secondary-nav.DKSjc5bn.js → secondary-nav.ldVrzGbB.js} +7 -7
  122. package/dist/chunks/{secondary-nav.DKSjc5bn.js.map → secondary-nav.ldVrzGbB.js.map} +1 -1
  123. package/dist/chunks/{selection-card-group.iYyZ9yX4.js → selection-card-group.CdkrhyZV.js} +11 -11
  124. package/dist/chunks/{selection-card-group.iYyZ9yX4.js.map → selection-card-group.CdkrhyZV.js.map} +1 -1
  125. package/dist/chunks/{sidepanel.CQnLpV8A.js → sidepanel.D-KuHnwI.js} +5 -5
  126. package/dist/chunks/{sidepanel.CQnLpV8A.js.map → sidepanel.D-KuHnwI.js.map} +1 -1
  127. package/dist/chunks/{status.types.Cv6hHRMu.js → status.types.Ce018tQy.js} +18 -17
  128. package/dist/chunks/status.types.Ce018tQy.js.map +1 -0
  129. package/dist/chunks/{structured-list-item.BhBbmkbw.js → structured-list-item.Dk8Z-FPn.js} +5 -5
  130. package/dist/chunks/{structured-list-item.BhBbmkbw.js.map → structured-list-item.Dk8Z-FPn.js.map} +1 -1
  131. package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js → summary-grid-item-custom.atXX3GY9.js} +2 -2
  132. package/dist/chunks/{summary-grid-item-custom.CicAOBVQ.js.map → summary-grid-item-custom.atXX3GY9.js.map} +1 -1
  133. package/dist/chunks/{textarea.Cf21WMwL.js → textarea.BVzGn3zO.js} +2 -2
  134. package/dist/chunks/{textarea.Cf21WMwL.js.map → textarea.BVzGn3zO.js.map} +1 -1
  135. package/dist/chunks/{timeline-item.Cu5b-Mqj.js → timeline-item.D_YNHlRi.js} +13 -13
  136. package/dist/chunks/{timeline-item.Cu5b-Mqj.js.map → timeline-item.D_YNHlRi.js.map} +1 -1
  137. package/dist/chunks/{tutorial.w2ZqeOh1.js → tutorial.cQXPvqV4.js} +10 -10
  138. package/dist/chunks/{tutorial.w2ZqeOh1.js.map → tutorial.cQXPvqV4.js.map} +1 -1
  139. package/dist/chunks/{use-cached-selected-values.impKjAIS.js → use-cached-selected-values.BGlHmPhX.js} +10 -10
  140. package/dist/chunks/{use-cached-selected-values.impKjAIS.js.map → use-cached-selected-values.BGlHmPhX.js.map} +1 -1
  141. package/dist/chunks/{use-country-items.DPBbl1KK.js → use-country-items.eWARMT6I.js} +2 -2
  142. package/dist/chunks/{use-country-items.DPBbl1KK.js.map → use-country-items.eWARMT6I.js.map} +1 -1
  143. package/dist/code-snippet.js +1 -1
  144. package/dist/country.js +2 -2
  145. package/dist/dashboard-template.js +1 -1
  146. package/dist/dashed-underline.js +1 -1
  147. package/dist/data-grid-template.js +1 -1
  148. package/dist/data-grid.js +1 -1
  149. package/dist/date-picker.js +2 -2
  150. package/dist/date-range-picker.js +2 -2
  151. package/dist/divider.js +1 -1
  152. package/dist/dropdown.js +4 -4
  153. package/dist/file-uploader.js +1 -1
  154. package/dist/filter-bar.js +1 -1
  155. package/dist/form-layout.js +1 -1
  156. package/dist/header.js +1 -1
  157. package/dist/index.js +47 -47
  158. package/dist/input-field-password.js +1 -1
  159. package/dist/input-field.js +1 -1
  160. package/dist/inspector.js +1 -1
  161. package/dist/internal.js +8 -8
  162. package/dist/menu.js +1 -1
  163. package/dist/modal-fullscreen.js +1 -1
  164. package/dist/modal.js +2 -2
  165. package/dist/pagination.js +1 -1
  166. package/dist/popover.js +1 -1
  167. package/dist/radio-group.js +2 -2
  168. package/dist/search-bar.js +2 -2
  169. package/dist/secondary-nav.js +1 -1
  170. package/dist/selection-card.js +1 -1
  171. package/dist/sidepanel.js +1 -1
  172. package/dist/status.js +1 -1
  173. package/dist/structured-list.js +1 -1
  174. package/dist/styles/bento-dark.css +2 -0
  175. package/dist/styles/bento-light.css +2 -0
  176. package/dist/styles/bento.css +2 -0
  177. package/dist/styles/legacy.css +7 -5
  178. package/dist/styles/styleguide.css +2 -0
  179. package/dist/summary-grid.js +1 -1
  180. package/dist/textarea.js +1 -1
  181. package/dist/timeline.js +1 -1
  182. package/dist/tutorial.js +1 -1
  183. package/dist/web-types.json +42 -3
  184. package/package.json +12 -7
  185. package/dist/chunks/code-snippet.5iJcUZSo.js.map +0 -1
  186. package/dist/chunks/codemirror.CXFEqvAi.js.map +0 -1
  187. package/dist/chunks/date-picker.B7mTNghB.js.map +0 -1
  188. package/dist/chunks/date-range-picker.DPLri9D-.js.map +0 -1
  189. package/dist/chunks/divider.BZfeYmB9.js +0 -30
  190. package/dist/chunks/divider.BZfeYmB9.js.map +0 -1
  191. package/dist/chunks/dropdown.BqsoncJr.js.map +0 -1
  192. package/dist/chunks/es6.jIyAPBgt.js.map +0 -1
  193. package/dist/chunks/file-uploader.C6kcnhqp.js +0 -729
  194. package/dist/chunks/file-uploader.C6kcnhqp.js.map +0 -1
  195. package/dist/chunks/input-field.D6N2kt7s.js +0 -228
  196. package/dist/chunks/input-field.D6N2kt7s.js.map +0 -1
  197. package/dist/chunks/radio-group.DMob8x2J.js +0 -219
  198. package/dist/chunks/radio-group.DMob8x2J.js.map +0 -1
  199. package/dist/chunks/status.types.Cv6hHRMu.js.map +0 -1
@@ -1,103 +1,109 @@
1
- import { reactive as ae, defineComponent as he, computed as _, ref as h, onMounted as Oe, toRaw as se, toRef as re, watch as fe } from "vue";
2
- import { B as Ge } from "./divider.BZfeYmB9.js";
3
- import { B as We } from "./popover.DsUymZWJ.js";
4
- import { B as Me, d as qe } from "./typography.J1v_SPG3.js";
5
- import { D as He } from "./dropdown-default-textbox.DBoSso4J.js";
6
- import { r as j, t as H, g as oe } from "./get-date-locale.BN8xEjY0.js";
7
- import { g as J } from "./generate-uid.NJ8tVoha.js";
8
- import { u as le } from "./i18n.BQkEbtPM.js";
9
- import { t as ie, f as X } from "./date.1zs9CRhw.js";
10
- import { f as pe, v as je, D as R } from "./date-input.BqBdAO1E.js";
11
- import { u as Ke } from "./use-form-layout-loading.D3lALhtC.js";
1
+ import { reactive as ne, defineComponent as Me, computed as T, ref as E, onMounted as Ce, toRaw as le, toRef as oe, watch as ve } from "vue";
2
+ import { B as We } from "./divider.Cc4JFWG_.js";
3
+ import { B as qe } from "./popover.nev0GndY.js";
4
+ import { B as we, d as He } from "./typography.J1v_SPG3.js";
5
+ import { D as je } from "./dropdown-default-textbox.CC9Z_RFG.js";
6
+ import { r as K, t as j, g as ie } from "./get-date-locale.BN8xEjY0.js";
7
+ import { g as X } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as ue } from "./i18n.BQkEbtPM.js";
9
+ import { t as de, f as Z } from "./date.1zs9CRhw.js";
10
+ import { s as q, c as ge, i as H, d as Ke, e as ye, f as ze, g as Te, h as Je, j as Qe, a as N, u as Xe } from "./calendar.DlOcbH6E.js";
11
+ import { f as _e, v as Ze, D as R } from "./date-input.BqBdAO1E.js";
12
+ import { u as et } from "./use-form-layout-loading.D3lALhtC.js";
12
13
  import "./index.Cl4_42j5.js";
13
- import { B as ze } from "./input-field.D6N2kt7s.js";
14
- import { B as Je } from "./dropdown.BqsoncJr.js";
15
- import { B as Qe } from "./segmented-control.DL0W7lJ_.js";
16
- import { d as ee } from "./debounce.DUTu11PS.js";
17
- import { u as Xe } from "./use-has-slot.C9lQZ6nz.js";
18
- import { s as Q, c as ve, i as q, d as Ze, e as ge, f as et, g as ye, h as tt, j as at, a as N, u as nt } from "./calendar.BouORZfb.js";
14
+ import { B as tt } from "./input-field.DgDFJbg7.js";
15
+ import { B as at } from "./dropdown.hc9ZuuTt.js";
16
+ import { B as nt } from "./segmented-control.DL0W7lJ_.js";
17
+ import { d as te } from "./debounce.DUTu11PS.js";
18
+ import { u as rt } from "./use-has-slot.C9lQZ6nz.js";
19
19
  import { e as U } from "./index.DPafeRJa.js";
20
- import { e as _e } from "./index.CrhTVr5J.js";
21
- import { n as we } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
22
- import { B as rt } from "./directive.O3yEdalv.js";
23
- import { F as st, E as ot } from "./error-message.Ccc1sTTp.js";
24
- import { B as lt, c as it } from "./button-actions.CtFB6iRj.js";
20
+ import { e as Re } from "./index.CrhTVr5J.js";
21
+ import { n as Ae } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
22
+ import { B as st } from "./directive.O3yEdalv.js";
23
+ import { F as ot, E as lt } from "./error-message.Da-p1QIA.js";
24
+ import { B as it, c as ut } from "./button-actions.BU173IFE.js";
25
25
  import "../assets/date-range-picker.css";
26
- function Te(t, e) {
27
- j(2, arguments);
28
- var n = H(t), i = H(e);
26
+ function Ie(t, e) {
27
+ K(2, arguments);
28
+ var n = j(t), i = j(e);
29
29
  return n.getTime() === i.getTime();
30
30
  }
31
- function Re(t) {
32
- j(1, arguments);
33
- var e = H(t);
31
+ function be(t) {
32
+ K(1, arguments);
33
+ var e = j(t);
34
34
  return e.setMilliseconds(0), e;
35
35
  }
36
- function be(t, e) {
37
- j(2, arguments);
38
- var n = Re(t), i = Re(e);
36
+ function ke(t, e) {
37
+ K(2, arguments);
38
+ var n = be(t), i = be(e);
39
39
  return n.getTime() === i.getTime();
40
40
  }
41
41
  function dt(t, e) {
42
- j(2, arguments);
43
- var n = H(t), i = ie(e);
42
+ K(2, arguments);
43
+ var n = j(t), i = de(e);
44
44
  return n.setHours(i), n;
45
45
  }
46
- function ut(t, e) {
47
- j(2, arguments);
48
- var n = H(t), i = ie(e);
46
+ function ct(t, e) {
47
+ K(2, arguments);
48
+ var n = j(t), i = de(e);
49
49
  return n.setMinutes(i), n;
50
50
  }
51
- function ct(t, e) {
52
- j(2, arguments);
53
- var n = H(t), i = ie(e);
51
+ function Dt(t, e) {
52
+ K(2, arguments);
53
+ var n = j(t), i = de(e);
54
54
  return n.setSeconds(i), n;
55
55
  }
56
- const Dt = ({
56
+ function re(t) {
57
+ if (t == null)
58
+ return q(/* @__PURE__ */ new Date());
59
+ const [e, n, i] = t.split("-").map((u) => parseInt(u, 10));
60
+ return new Date(e, n - 1, i);
61
+ }
62
+ const mt = ({
57
63
  firstDayOfWeek: t,
58
64
  min: e,
59
65
  max: n
60
- }) => ({ getGranularCalendarLimits: (d) => {
61
- let m = Q(e), r = U(n);
62
- if ((d == null ? void 0 : d.type) === "weekly") {
63
- if (d.earliest)
64
- m = Q(d.earliest);
66
+ }) => ({ getGranularCalendarLimits: (u) => {
67
+ let m = q(e), r = U(n);
68
+ if ((u == null ? void 0 : u.type) === "weekly") {
69
+ if (u.earliest)
70
+ m = q(u.earliest);
65
71
  else {
66
- const u = ve(m, { weekStartsOn: t });
67
- q(m, u) || (m = Q(Ze(ge(m, { weekStartsOn: t }), 1)));
72
+ const d = ge(m, { weekStartsOn: t });
73
+ H(m, d) || (m = q(Ke(ye(m, { weekStartsOn: t }), 1)));
68
74
  }
69
- if (d.latest)
70
- r = U(d.latest);
75
+ if (u.latest)
76
+ r = U(u.latest);
71
77
  else {
72
- const u = ge(r, { weekStartsOn: t });
73
- q(r, u) || (r = U(et(ve(r, { weekStartsOn: t }), 1)));
78
+ const d = ye(r, { weekStartsOn: t });
79
+ H(r, d) || (r = U(ze(ge(r, { weekStartsOn: t }), 1)));
74
80
  }
75
81
  }
76
- if ((d == null ? void 0 : d.type) === "monthly") {
77
- if (d.earliest)
78
- m = Q(d.earliest);
82
+ if ((u == null ? void 0 : u.type) === "monthly") {
83
+ if (u.earliest)
84
+ m = q(u.earliest);
79
85
  else {
80
- const u = ye(m);
81
- q(m, u) || (m = ye(tt(m, 1)));
86
+ const d = Te(m);
87
+ H(m, d) || (m = Te(Je(m, 1)));
82
88
  }
83
- if (d.latest)
84
- r = U(d.latest);
89
+ if (u.latest)
90
+ r = U(u.latest);
85
91
  else {
86
- const u = _e(r);
87
- q(r, u) || (r = _e(at(r, 1)));
92
+ const d = Re(r);
93
+ H(r, d) || (r = Re(Qe(r, 1)));
88
94
  }
89
95
  }
90
96
  return { min: m, max: r };
91
- } }), mt = () => {
92
- const t = ae({
97
+ } }), ft = () => {
98
+ const t = ne({
93
99
  daily: null,
94
100
  weekly: null,
95
101
  monthly: null
96
102
  });
97
103
  return {
98
104
  savedRanges: t,
99
- saveRange: (i, d) => {
100
- t[i] = d;
105
+ saveRange: (i, u) => {
106
+ t[i] = u;
101
107
  },
102
108
  resetSavedRanges: () => {
103
109
  t.daily = null, t.weekly = null, t.monthly = null;
@@ -105,18 +111,18 @@ const Dt = ({
105
111
  };
106
112
  };
107
113
  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 || {});
108
- const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
109
- const { selectionStart: e } = t.target, n = ft.test(t.key) || t.key === "Backspace", i = [1, 2, 4, 5].includes(e) && t.key === ":";
114
+ const pt = /[\d]/, vt = /^\d{2}$/, gt = /^\d{2}:\d{2}$/, yt = (t) => {
115
+ const { selectionStart: e } = t.target, n = pt.test(t.key) || t.key === "Backspace", i = [1, 2, 4, 5].includes(e) && t.key === ":";
110
116
  !n && !i && t.preventDefault();
111
- }, Ie = (t) => {
117
+ }, Se = (t) => {
112
118
  if (!t)
113
119
  return t;
114
120
  let e = t;
115
121
  if (e.length === 1 && parseInt(t, 10) > 2)
116
122
  return `0${e}:`;
117
123
  const [n, i] = e.slice(-2);
118
- return [2, 5].includes(e.length) && i === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (pt.test(e) || vt.test(e)) && (e += ":"), e;
119
- }, yt = {
124
+ return [2, 5].includes(e.length) && i === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (vt.test(e) || gt.test(e)) && (e += ":"), e;
125
+ }, Tt = {
120
126
  "en-US": {
121
127
  customRange: "Custom range",
122
128
  daily: "Daily",
@@ -130,14 +136,6 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
130
136
  timeTo: "Time to",
131
137
  weekly: "Weekly"
132
138
  },
133
- "pt-BR": {
134
- customRange: "Selecione um intervalo personalizado",
135
- daily: "Diário",
136
- lastMonth: "Último mês",
137
- lastSevenDays: "Últimos 7 dias",
138
- monthly: "Mensal",
139
- weekly: "Semanal"
140
- },
141
139
  "ja-JP": {
142
140
  customRange: "カスタム範囲を選択",
143
141
  daily: "毎日",
@@ -145,15 +143,23 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
145
143
  lastSevenDays: "過去7日間",
146
144
  monthly: "毎月",
147
145
  weekly: "毎週"
146
+ },
147
+ "pt-BR": {
148
+ customRange: "Selecione um intervalo personalizado",
149
+ daily: "Diário",
150
+ lastMonth: "Último mês",
151
+ lastSevenDays: "Últimos 7 dias",
152
+ monthly: "Mensal",
153
+ weekly: "Semanal"
148
154
  }
149
- }, ke = 300, Se = "customRange", Ee = "daily", _t = he({
150
- i18n: { messages: yt },
155
+ }, Ee = 300, he = "customRange", Oe = "daily", _t = Me({
156
+ i18n: { messages: Tt },
151
157
  name: "date-range-picker-calendar",
152
158
  components: {
153
- BentoDropdown: Je,
154
- BentoInputField: ze,
155
- BentoSegmentedControl: Qe,
156
- BentoTypography: Me,
159
+ BentoDropdown: at,
160
+ BentoInputField: tt,
161
+ BentoSegmentedControl: nt,
162
+ BentoTypography: we,
157
163
  Calendar: N
158
164
  },
159
165
  props: {
@@ -228,223 +234,221 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
228
234
  p.START_DATE_SELECTED
229
235
  ],
230
236
  setup(t, { emit: e, slots: n }) {
231
- var ce, De, me;
232
- const { locale: i, t: d } = le(), m = oe(), r = ae({
233
- startDate: (ce = t.value) == null ? void 0 : ce.startDate,
234
- endDate: (De = t.value) == null ? void 0 : De.endDate,
237
+ var me, fe, pe;
238
+ const { locale: i, t: u } = ue(), m = ie(), r = ne({
239
+ startDate: (me = t.value) == null ? void 0 : me.startDate,
240
+ endDate: (fe = t.value) == null ? void 0 : fe.endDate,
235
241
  ...t.granularities ? {
236
- granularity: ((me = t.value) == null ? void 0 : me.granularity) || Ee
242
+ granularity: ((pe = t.value) == null ? void 0 : pe.granularity) || Oe
237
243
  } : {}
238
- }), u = _(
244
+ }), d = T(
239
245
  () => {
240
246
  var a, s;
241
- return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: o }) => t.allowTimeInput ? be(o.startDate, r.startDate) && be(o.endDate, r.endDate) : q(o.startDate, r.startDate) && q(o.endDate, r.endDate))) == null ? void 0 : s.value) ?? Se;
247
+ return ((s = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ data: l }) => t.allowTimeInput ? ke(l.startDate, r.startDate) && ke(l.endDate, r.endDate) : H(l.startDate, r.startDate) && H(l.endDate, r.endDate))) == null ? void 0 : s.value) ?? he;
242
248
  }
243
- ), M = _(() => ({
249
+ ), O = T(() => ({
244
250
  "b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
245
- })), K = _(() => [
246
- { label: d("customRange"), value: Se },
251
+ })), z = T(() => [
252
+ { label: u("customRange"), value: he },
247
253
  ...t.quickSelectRanges ? t.quickSelectRanges : []
248
- ]), P = _(
254
+ ]), P = T(
249
255
  () => {
250
256
  var a;
251
257
  return ((a = t.granularities) == null ? void 0 : a.find(({ type: s }) => s === r.granularity)) || null;
252
258
  }
253
- ), g = _(
259
+ ), g = T(
254
260
  () => {
255
261
  var a;
256
- return ((a = t.granularities) == null ? void 0 : a.map(({ type: s, disabled: o }) => ({
257
- label: d(s),
262
+ return ((a = t.granularities) == null ? void 0 : a.map(({ type: s, disabled: l }) => ({
263
+ label: u(s),
258
264
  value: s,
259
- disabled: o
265
+ disabled: l
260
266
  }))) ?? [];
261
267
  }
262
- ), { getGranularCalendarLimits: L } = Dt(t), D = _(
263
- () => t.granularities ? L(P.value) : { min: Q(t.min), max: U(t.max) }
268
+ ), { getGranularCalendarLimits: L } = mt(t), D = T(
269
+ () => t.granularities ? L(P.value) : { min: q(t.min), max: U(t.max) }
264
270
  ), {
265
271
  adjustDateForMonthly: V,
266
- adjustDateForWeekly: b,
272
+ adjustDateForWeekly: I,
267
273
  adjustStartDateInputForWeekly: B,
268
- adjustEndDateInputForWeekly: w,
274
+ adjustEndDateInputForWeekly: M,
269
275
  adjustStartDateInputForMonthly: v,
270
- adjustEndDateInputForMonthly: O
271
- } = nt(t.firstDayOfWeek), { savedRanges: y, saveRange: Y, resetSavedRanges: z } = mt(), T = (a) => a ? X(a, R.NUMERIC_DATE_YEAR_FIRST, {
276
+ adjustEndDateInputForMonthly: h
277
+ } = Xe(t.firstDayOfWeek), { savedRanges: y, saveRange: Y, resetSavedRanges: J } = ft(), _ = (a) => a ? Z(a, R.NUMERIC_DATE_YEAR_FIRST, {
272
278
  locale: m[i.value.substring(0, 2)] || m.enUS
273
- }) : "", k = (a) => a ? X(a, R.HOUR_MINUTE_SECONDS, {
279
+ }) : "", k = (a) => a ? Z(a, R.HOUR_MINUTE_SECONDS, {
274
280
  locale: m[i.value.substring(0, 2)] || m.enUS
275
- }) : "", S = h(!1), A = h(!1), x = h(!1), F = h(!1), l = ae({
281
+ }) : "", S = E(!1), A = E(!1), x = E(!1), F = E(!1), o = ne({
276
282
  startDate: t.dateFormData.startDate,
277
283
  endDate: t.dateFormData.endDate,
278
284
  startTime: t.dateFormData.startTime,
279
285
  endTime: t.dateFormData.endTime
280
- }), Z = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), E = (a, s) => {
281
- if (!s || !Z(s))
286
+ }), ee = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), C = (a, s) => {
287
+ if (!s || !ee(s))
282
288
  return a;
283
- let o = new Date(a);
284
- const [c, Ye, $e] = s.split(":");
285
- return o = dt(o, parseInt(c, 10)), o = ut(o, parseInt(Ye, 10)), o = ct(o, parseInt($e, 10)), o;
286
- }, de = (a) => {
287
- r.startDate = E(a.startDate, l.startTime), r.endDate = E(a.endDate, l.endTime), t.granularities && z(), e(p.INPUT, {
289
+ let l = new Date(a);
290
+ const [c, Q, Ge] = s.split(":");
291
+ return l = dt(l, parseInt(c, 10)), l = ct(l, parseInt(Q, 10)), l = Dt(l, parseInt(Ge, 10)), l;
292
+ }, ce = (a) => {
293
+ r.startDate = C(a.startDate, o.startTime), r.endDate = C(a.endDate, o.endTime), t.granularities && J(), e(p.INPUT, {
288
294
  ...r,
289
- range: u.value
295
+ range: d.value
290
296
  });
291
297
  }, $ = (a) => {
292
298
  const s = (c) => t.min && c <= t.min || t.max && c >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(c) : !0;
293
299
  return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && s(new Date(a));
294
300
  };
295
- Oe(() => {
301
+ Ce(() => {
296
302
  t.dateFormData.startDate && !$(t.dateFormData.startDate) ? S.value = !0 : (S.value = !1, x.value = !1), t.dateFormData.endDate && !$(t.dateFormData.endDate) ? A.value = !0 : (A.value = !1, F.value = !1);
297
303
  });
298
- const ue = (a) => {
304
+ const De = (a) => {
299
305
  var s;
300
- l.startDate = T(a), l.startTime ? x.value && (l.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : l.startTime = k(a), S.value = !1, x.value = !1, e(p.START_DATE_SELECTED, a);
306
+ o.startDate = _(a), o.startTime ? x.value && (o.startTime = (s = t.dateFormData) == null ? void 0 : s.startTime) : o.startTime = k(a), S.value = !1, x.value = !1, e(p.START_DATE_SELECTED, a);
301
307
  }, f = (a) => {
302
308
  var s;
303
- l.endDate = T(a), l.endTime ? F.value && (l.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : l.endTime = k(U(a)), A.value = !1, F.value = !1;
304
- }, I = (a) => {
309
+ o.endDate = _(a), o.endTime ? F.value && (o.endTime = (s = t.dateFormData) == null ? void 0 : s.endTime) : o.endTime = k(U(a)), A.value = !1, F.value = !1;
310
+ }, b = (a) => {
305
311
  const s = t.value[a];
306
312
  if (s)
307
313
  return s;
308
314
  if (t.dateFormData[a] && $(t.dateFormData[a]))
309
315
  return new Date(t.dateFormData[a]);
310
- }, G = ee((a) => {
316
+ }, G = te((a) => {
311
317
  var s;
312
318
  if ($(a)) {
313
- let o = a;
319
+ let l = a;
314
320
  switch (S.value = !1, (s = P.value) == null ? void 0 : s.type) {
315
321
  case "weekly":
316
- o = B(
322
+ l = B(
317
323
  a,
318
- T,
324
+ _,
319
325
  D.value.min,
320
326
  D.value.max
321
- ), l.startDate = o;
327
+ ), o.startDate = l;
322
328
  break;
323
329
  case "monthly":
324
- o = v(
330
+ l = v(
325
331
  a,
326
- T,
332
+ _,
327
333
  D.value.min,
328
334
  D.value.max
329
- ), l.startDate = o;
335
+ ), o.startDate = l;
330
336
  break;
331
337
  }
332
- r.startDate = E(new Date(o), l.startTime);
333
- const c = I("endDate");
338
+ const c = re(l);
339
+ r.startDate = C(c, o.startTime);
340
+ const Q = b("endDate");
334
341
  e(p.FORM_DATE, {
335
- startDate: new Date(o),
336
- endDate: c
342
+ startDate: c,
343
+ endDate: Q
337
344
  }), e(p.INPUT, {
338
- startDate: new Date(o),
339
- endDate: c,
340
- range: u.value
345
+ ...r,
346
+ range: d.value
341
347
  });
342
348
  } else
343
- S.value = !0, e(p.ERROR, { ...l });
344
- }, ke), ne = (a) => {
345
- l.startDate = pe(a), G(l.startDate);
346
- }, Ce = ee((a) => {
349
+ S.value = !0, e(p.ERROR, { ...o });
350
+ }, Ee), se = (a) => {
351
+ o.startDate = _e(a), G(o.startDate);
352
+ }, xe = te((a) => {
347
353
  var s;
348
354
  if ($(a)) {
349
- let o = a;
355
+ let l = a;
350
356
  switch (A.value = !1, (s = P.value) == null ? void 0 : s.type) {
351
357
  case "weekly":
352
- o = w(
358
+ l = M(
353
359
  a,
354
- T,
360
+ _,
355
361
  D.value.min,
356
362
  D.value.max
357
- ), l.endDate = o;
363
+ ), o.endDate = l;
358
364
  break;
359
365
  case "monthly":
360
- o = O(
366
+ l = h(
361
367
  a,
362
- T,
368
+ _,
363
369
  D.value.min,
364
370
  D.value.max
365
- ), l.endDate = o;
371
+ ), o.endDate = l;
366
372
  break;
367
373
  }
368
- r.endDate = E(new Date(o), l.endTime);
369
- const c = I("startDate");
374
+ const c = re(l);
375
+ r.endDate = C(c, o.endTime);
376
+ const Q = b("startDate");
370
377
  e(p.FORM_DATE, {
371
- startDate: c,
372
- endDate: new Date(a)
378
+ startDate: Q,
379
+ endDate: c
373
380
  }), e(p.INPUT, {
374
- startDate: c,
375
- endDate: new Date(a),
376
- range: u.value
381
+ ...r,
382
+ range: d.value
377
383
  });
378
384
  } else
379
- A.value = !0, e(p.ERROR, { ...l });
380
- }, ke), Ae = (a) => {
381
- l.endDate = pe(a), Ce(l.endDate);
382
- }, xe = (a) => {
383
- je(a);
384
- }, Fe = ee((a) => {
385
- if (Z(a)) {
386
- x.value = !1, r.startDate = E(r.startDate, a);
387
- const s = I("endDate");
385
+ A.value = !0, e(p.ERROR, { ...o });
386
+ }, Ee), Fe = (a) => {
387
+ o.endDate = _e(a), xe(o.endDate);
388
+ }, Ue = (a) => {
389
+ Ze(a);
390
+ }, Pe = te((a) => {
391
+ if (ee(a)) {
392
+ x.value = !1, r.startDate = C(r.startDate, a);
393
+ const s = b("endDate");
388
394
  e(p.FORM_DATE, {
389
395
  startDate: new Date(r.startDate),
390
- endDate: E(new Date(s), t.dateFormData.endTime),
396
+ endDate: s,
391
397
  startTime: a,
392
398
  endTime: t.dateFormData.endTime
393
399
  }), e(p.INPUT, {
394
- startDate: new Date(r.startDate),
395
- endDate: E(new Date(s), t.dateFormData.endTime),
396
- range: u.value
400
+ ...r,
401
+ range: d.value
397
402
  });
398
403
  } else
399
- x.value = !0, e(p.ERROR, { ...l });
400
- }), Ue = ee((a) => {
401
- if (Z(a)) {
402
- F.value = !1, r.endDate = E(r.endDate, a);
403
- const s = I("startDate");
404
- e(p.FORM_DATE, {
405
- startDate: E(new Date(s), t.dateFormData.startTime),
404
+ x.value = !0, e(p.ERROR, { ...o });
405
+ }), Be = te((a) => {
406
+ if (ee(a)) {
407
+ F.value = !1, r.endDate = C(r.endDate, a);
408
+ const s = b("startDate");
409
+ r.startDate = C(new Date(s), t.dateFormData.startTime), e(p.FORM_DATE, {
410
+ startDate: C(new Date(s), t.dateFormData.startTime),
406
411
  endDate: new Date(r.endDate),
407
412
  startTime: t.dateFormData.startTime,
408
413
  endTime: a
409
414
  }), e(p.INPUT, {
410
- startDate: E(new Date(s), t.dateFormData.startTime),
411
- endDate: new Date(r.endDate),
412
- range: u.value
415
+ ...r,
416
+ range: d.value
413
417
  });
414
418
  } else
415
- F.value = !0, e(p.ERROR, { ...l });
416
- }), Pe = (a) => {
417
- l.startTime = Ie(a), Fe(l.startTime);
418
- }, Be = (a) => {
419
- l.endTime = Ie(a), Ue(l.endTime);
420
- }, Ne = (a) => {
421
- gt(a);
422
- }, W = (a, s, o) => {
423
- r.startDate = a, r.endDate = s, o && (r.granularity = o);
419
+ F.value = !0, e(p.ERROR, { ...o });
420
+ }), Ne = (a) => {
421
+ o.startTime = Se(a), Pe(o.startTime);
424
422
  }, Le = (a) => {
425
- var o;
426
- const s = (o = t.quickSelectRanges) == null ? void 0 : o.find(({ value: c }) => c === a);
423
+ o.endTime = Se(a), Be(o.endTime);
424
+ }, Ve = (a) => {
425
+ yt(a);
426
+ }, W = (a, s, l) => {
427
+ r.startDate = a, r.endDate = s, l && (r.granularity = l);
428
+ }, Ye = (a) => {
429
+ var l;
430
+ const s = (l = t.quickSelectRanges) == null ? void 0 : l.find(({ value: c }) => c === a);
427
431
  if (s) {
428
- z();
432
+ J();
429
433
  const c = s.data;
430
- l.startDate = T(c.startDate), l.endDate = T(c.endDate), W(c.startDate, c.endDate), t.granularities && (r.granularity = c.granularity || Ee), l.startTime || (l.startTime = k(U(c.startDate))), l.endTime || (l.endTime = k(U(c.endDate))), e(p.CUSTOM_RANGE, { ...s.data, range: s.value });
434
+ o.startDate = _(c.startDate), o.endDate = _(c.endDate), W(c.startDate, c.endDate), t.granularities && (r.granularity = c.granularity || Oe), o.startTime || (o.startTime = k(U(c.startDate))), o.endTime || (o.endTime = k(U(c.endDate))), e(p.CUSTOM_RANGE, { ...s.data, range: s.value });
431
435
  }
432
- }, Ve = (a) => {
436
+ }, $e = (a) => {
433
437
  const s = r.granularity;
434
- if (r.granularity = a, s && Y(s, structuredClone(se(r))), r.startDate && r.endDate) {
438
+ if (r.granularity = a, s && Y(s, structuredClone(le(r))), r.startDate && r.endDate) {
435
439
  switch (a) {
436
440
  case "monthly": {
437
441
  if (y.monthly) {
438
442
  W(y.monthly.startDate, y.monthly.endDate, a);
439
443
  break;
440
444
  }
441
- const { startDate: o, endDate: c } = V(
445
+ const { startDate: l, endDate: c } = V(
442
446
  r.startDate,
443
447
  r.endDate,
444
448
  D.value.min,
445
449
  D.value.max
446
450
  );
447
- W(o, c, a);
451
+ W(l, c, a);
448
452
  break;
449
453
  }
450
454
  case "weekly": {
@@ -452,58 +456,58 @@ const ft = /[\d]/, pt = /^\d{2}$/, vt = /^\d{2}:\d{2}$/, gt = (t) => {
452
456
  W(y.weekly.startDate, y.weekly.endDate, a);
453
457
  break;
454
458
  }
455
- const { startDate: o, endDate: c } = b(
459
+ const { startDate: l, endDate: c } = I(
456
460
  r.startDate,
457
461
  r.endDate,
458
462
  D.value.min,
459
463
  D.value.max
460
464
  );
461
- W(o, c, a);
465
+ W(l, c, a);
462
466
  break;
463
467
  }
464
468
  case "daily":
465
469
  y.daily && W(y.daily.startDate, y.daily.endDate, a);
466
470
  break;
467
471
  }
468
- l.startDate = T(r.startDate), l.endDate = T(r.endDate), e(p.INPUT, {
472
+ o.startDate = _(r.startDate), o.endDate = _(r.endDate), e(p.INPUT, {
469
473
  ...r,
470
- range: u.value
474
+ range: d.value
471
475
  });
472
476
  }
473
477
  };
474
478
  return {
475
479
  // Values
476
480
  internalRangeDate: r,
477
- dateTextInput: l,
481
+ dateTextInput: o,
478
482
  endDateError: A,
479
483
  endTimeError: F,
480
484
  granularityItems: g,
481
485
  selectedGranularity: P,
482
486
  computedMinMax: D,
483
- selectedRangeSelectorValue: u,
487
+ selectedRangeSelectorValue: d,
484
488
  startDateError: S,
485
489
  startTimeError: x,
486
- quickSelectRangeDefaultItems: K,
487
- formInputWrapperConditionalClasses: M,
490
+ quickSelectRangeDefaultItems: z,
491
+ formInputWrapperConditionalClasses: O,
488
492
  // Methods
489
- hasSlot: Xe(n),
490
- t: d,
493
+ hasSlot: rt(n),
494
+ t: u,
491
495
  // Events
492
- onDateInput: de,
493
- onDateInputKeyDown: xe,
494
- onEndDateInput: Ae,
496
+ onDateInput: ce,
497
+ onDateInputKeyDown: Ue,
498
+ onEndDateInput: Fe,
495
499
  onEndDateSelected: f,
496
- onEndTimeInput: Be,
497
- onGranularityInput: Ve,
498
- onRangeSelectorInput: Le,
499
- onStartDateInput: ne,
500
- onStartDateSelected: ue,
501
- onStartTimeInput: Pe,
502
- onTimeInputKeyDown: Ne
500
+ onEndTimeInput: Le,
501
+ onGranularityInput: $e,
502
+ onRangeSelectorInput: Ye,
503
+ onStartDateInput: se,
504
+ onStartDateSelected: De,
505
+ onStartTimeInput: Ne,
506
+ onTimeInputKeyDown: Ve
503
507
  };
504
508
  }
505
509
  });
506
- var Tt = function() {
510
+ var Rt = function() {
507
511
  var e = this, n = e._self._c;
508
512
  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() {
509
513
  return [e._v("YYYY-MM-DD")];
@@ -514,59 +518,59 @@ var Tt = function() {
514
518
  }, 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() {
515
519
  return [e._v("HH:MM:SS")];
516
520
  }, 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.value, "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, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
517
- }, Rt = [], bt = /* @__PURE__ */ we(
521
+ }, It = [], bt = /* @__PURE__ */ Ae(
518
522
  _t,
519
- Tt,
520
523
  Rt,
524
+ It,
521
525
  !1,
522
526
  null,
523
- "da20fbc5"
527
+ "8869da62"
524
528
  );
525
- const C = bt.exports, It = ({
529
+ const w = bt.exports, kt = ({
526
530
  datePickerValue: t,
527
531
  isDateIncorrect: e,
528
532
  quickSelectRanges: n
529
533
  }) => {
530
534
  var g, L, D, V;
531
- const { locale: i, t: d } = le(), m = oe(), r = (b) => !!b && !isNaN(b.getTime()), u = (b, B) => r(b) ? X(b, B, {
535
+ const { locale: i, t: u } = ue(), m = ie(), r = (I) => !!I && !isNaN(I.getTime()), d = (I, B) => r(I) ? Z(I, B, {
532
536
  locale: m[i.value.substring(0, 2)] || m.enUS
533
- }) : void 0, M = ae({
534
- startDate: u((g = t.value) == null ? void 0 : g.startDate, R.NUMERIC_DATE_YEAR_FIRST),
535
- endDate: u((L = t.value) == null ? void 0 : L.endDate, R.NUMERIC_DATE_YEAR_FIRST),
536
- startTime: u((D = t.value) == null ? void 0 : D.startDate, R.HOUR_MINUTE_SECONDS),
537
- endTime: u((V = t.value) == null ? void 0 : V.endDate, R.HOUR_MINUTE_SECONDS)
537
+ }) : void 0, O = ne({
538
+ startDate: d((g = t.value) == null ? void 0 : g.startDate, R.NUMERIC_DATE_YEAR_FIRST),
539
+ endDate: d((L = t.value) == null ? void 0 : L.endDate, R.NUMERIC_DATE_YEAR_FIRST),
540
+ startTime: d((D = t.value) == null ? void 0 : D.startDate, R.HOUR_MINUTE_SECONDS),
541
+ endTime: d((V = t.value) == null ? void 0 : V.endDate, R.HOUR_MINUTE_SECONDS)
538
542
  });
539
543
  return {
540
544
  // Values
541
- dateDisplayValue: _(() => {
542
- var w;
545
+ dateDisplayValue: T(() => {
546
+ var M;
543
547
  if (e.value)
544
- return `${M.startDate || ""} - ${M.endDate || ""}`;
548
+ return `${O.startDate || ""} - ${O.endDate || ""}`;
545
549
  if (!t.value || !t.value.startDate && !t.value.endDate)
546
- return d("selectDateRange");
547
- if ((w = n.value) != null && w.length) {
550
+ return u("selectDateRange");
551
+ if ((M = n.value) != null && M.length) {
548
552
  const v = n.value.find(
549
- ({ data: O }) => {
553
+ ({ data: h }) => {
550
554
  var y, Y;
551
- return Te(O == null ? void 0 : O.startDate, (y = t.value) == null ? void 0 : y.startDate) && Te(O == null ? void 0 : O.endDate, (Y = t.value) == null ? void 0 : Y.endDate);
555
+ return Ie(h == null ? void 0 : h.startDate, (y = t.value) == null ? void 0 : y.startDate) && Ie(h == null ? void 0 : h.endDate, (Y = t.value) == null ? void 0 : Y.endDate);
552
556
  }
553
557
  );
554
558
  if (v)
555
559
  return v.label;
556
560
  }
557
- const { startDate: b, endDate: B } = M;
558
- return `${u(new Date(b), R.FULL_DATE_MONTH_FIRST)} - ${u(
559
- new Date(B),
561
+ const { startDate: I, endDate: B } = O;
562
+ return `${d(re(I), R.FULL_DATE_MONTH_FIRST)} - ${d(
563
+ re(B),
560
564
  R.FULL_DATE_MONTH_FIRST
561
565
  )}`;
562
566
  }),
563
- textInputDisplayValue: M,
567
+ textInputDisplayValue: O,
564
568
  // Methods
565
569
  formatTextInputDisplayValue: () => ""
566
570
  };
567
571
  };
568
- var te = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(te || {});
569
- const kt = {
572
+ var ae = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(ae || {});
573
+ const St = {
570
574
  "en-US": {
571
575
  apply: "Apply",
572
576
  cancel: "Cancel",
@@ -576,30 +580,30 @@ const kt = {
576
580
  selectDateRange: "Select a date range",
577
581
  selectedDateIsNotAvailable: "Selected date is not available"
578
582
  },
579
- "pt-BR": {
580
- apply: "Aplicar",
581
- cancel: "Cancelar",
582
- selectDate: "Selecione uma data"
583
- },
584
583
  "ja-JP": {
585
584
  apply: "適用",
586
585
  cancel: "キャンセル",
587
586
  selectDate: "日付を選択"
587
+ },
588
+ "pt-BR": {
589
+ apply: "Aplicar",
590
+ cancel: "Cancelar",
591
+ selectDate: "Selecione uma data"
588
592
  }
589
- }, St = he({
590
- i18n: { messages: kt },
593
+ }, Et = Me({
594
+ i18n: { messages: St },
591
595
  name: "bento-date-range-picker",
592
596
  components: {
593
- BentoButtonActions: lt,
594
- BentoDivider: Ge,
595
- BentoTypography: Me,
596
- BentoPopover: We,
597
- DateRangePickerCalendar: C,
598
- DropdownInputDefault: He,
599
- ErrorMessage: ot,
600
- FieldLabel: st
597
+ BentoButtonActions: it,
598
+ BentoDivider: We,
599
+ BentoTypography: we,
600
+ BentoPopover: qe,
601
+ DateRangePickerCalendar: w,
602
+ DropdownInputDefault: je,
603
+ ErrorMessage: lt,
604
+ FieldLabel: ot
601
605
  },
602
- directives: { BentoClickOutsideDirective: rt },
606
+ directives: { BentoClickOutsideDirective: st },
603
607
  props: {
604
608
  /**
605
609
  * Allows user to enter time values in the form
@@ -620,16 +624,16 @@ const kt = {
620
624
  /**
621
625
  * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
622
626
  */
623
- firstDayOfWeek: C.props.firstDayOfWeek,
627
+ firstDayOfWeek: w.props.firstDayOfWeek,
624
628
  /**
625
629
  * A list of available granularities.
626
630
  * If present, the date picker will display a segmented control to change granularity.
627
631
  */
628
- granularities: C.props.granularities,
632
+ granularities: w.props.granularities,
629
633
  /**
630
634
  * Indicate if a date should be disabled or not
631
635
  */
632
- isDateDisabled: C.props.isDateDisabled,
636
+ isDateDisabled: w.props.isDateDisabled,
633
637
  /**
634
638
  * Text that is displayed as a label above the element.
635
639
  */
@@ -668,23 +672,23 @@ const kt = {
668
672
  /**
669
673
  * Set a maximum number of dates to be selectable by the range.
670
674
  */
671
- maxRange: C.props.maxRange,
675
+ maxRange: w.props.maxRange,
672
676
  /**
673
677
  * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
674
678
  */
675
- min: C.props.min,
679
+ min: w.props.min,
676
680
  /**
677
681
  * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
678
682
  */
679
- max: C.props.max,
683
+ max: w.props.max,
680
684
  /**
681
685
  * Number of months rendered on pane
682
686
  */
683
- numberOfMonths: C.props.numberOfMonths,
687
+ numberOfMonths: w.props.numberOfMonths,
684
688
  /**
685
689
  * Selected date
686
690
  */
687
- value: C.props.value,
691
+ value: w.props.value,
688
692
  /**
689
693
  * Enables the date picker selection to persist until it is explicitly applied.
690
694
  * Displays a set of buttons: Apply and Cancel.
@@ -693,50 +697,50 @@ const kt = {
693
697
  */
694
698
  hasActions: { type: Boolean, default: !1 }
695
699
  },
696
- emits: [te.INPUT],
700
+ emits: [ae.INPUT],
697
701
  setup(t, { emit: e }) {
698
- const { locale: n, t: i } = le(), d = oe(), m = J("bento-date-range-picker-container"), r = J("bento-date-range-picker-label"), u = J("bento-date-range-picker-description"), M = J("bento-date-range-picker-error"), K = J("bento-date-range-picker-date-error"), P = _(
702
+ const { locale: n, t: i } = ue(), u = ie(), m = X("bento-date-range-picker-container"), r = X("bento-date-range-picker-label"), d = X("bento-date-range-picker-description"), O = X("bento-date-range-picker-error"), z = X("bento-date-range-picker-date-error"), P = T(
699
703
  () => t.label || i("dateRangePicker", { name: m })
700
- ), g = h(!1), L = h(null), D = h(!1), { isReadOnly: V } = Ke(re(t, "readonly"));
701
- fe(
704
+ ), g = E(!1), L = E(null), D = E(!1), { isReadOnly: V } = et(oe(t, "readonly"));
705
+ ve(
702
706
  () => t.disabled,
703
707
  () => {
704
708
  t.disabled && D.value && (D.value = !1);
705
709
  }
706
710
  );
707
- const b = _(() => t.hasActions ? !S.value && g.value : g.value), B = _(() => ({
708
- "b-date-range-picker__description--error": !!t.errorMessage || b.value
709
- })), { dateDisplayValue: w, textInputDisplayValue: v } = It({
710
- datePickerValue: re(t, "value"),
711
+ const I = T(() => t.hasActions ? !S.value && g.value : g.value), B = T(() => ({
712
+ "b-date-range-picker__description--error": !!t.errorMessage || I.value
713
+ })), { dateDisplayValue: M, textInputDisplayValue: v } = kt({
714
+ datePickerValue: oe(t, "value"),
711
715
  isDateIncorrect: g,
712
- quickSelectRanges: re(t, "quickSelectRanges")
713
- }), O = _(
714
- () => `${t.description ? u : ""} ${t.errorMessage ? M : ""} ${g.value ? K : ""}`.trim() || null
716
+ quickSelectRanges: oe(t, "quickSelectRanges")
717
+ }), h = T(
718
+ () => `${t.description ? d : ""} ${t.errorMessage ? O : ""} ${g.value ? z : ""}`.trim() || null
715
719
  ), y = () => {
716
720
  D.value = !1;
717
721
  }, Y = () => {
718
722
  D.value = !0;
719
- }, z = h(w.value), T = h(
723
+ }, J = E(M.value), _ = E(
720
724
  // textInputDisplayValue is a reactive object
721
- structuredClone(se(v))
722
- ), k = h(t.value), S = h(!0), A = _(
723
- () => t.hasActions ? T.value : v
724
- ), x = _(
725
- () => t.hasActions ? z.value : w.value
725
+ structuredClone(le(v))
726
+ ), k = E(t.value), S = E(!0), A = T(
727
+ () => t.hasActions ? _.value : v
728
+ ), x = T(
729
+ () => t.hasActions ? J.value : M.value
726
730
  );
727
- Oe(() => {
728
- t.hasActions || qe(
731
+ Ce(() => {
732
+ t.hasActions || He(
729
733
  'BentoDateRangePicker "hasActions" property',
730
734
  `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
731
735
  This will be the default behavior in the v2 and "hasActions" will be removed.`,
732
736
  "2.0.0"
733
737
  );
734
738
  });
735
- const F = _(() => [
739
+ const F = T(() => [
736
740
  {
737
741
  title: i("apply"),
738
742
  event: () => {
739
- z.value = w.value, T.value = structuredClone(se(v)), e(te.INPUT, k.value), y(), S.value = !0;
743
+ J.value = M.value, _.value = structuredClone(le(v)), e(ae.INPUT, k.value), y(), S.value = !0;
740
744
  },
741
745
  disabled: S.value
742
746
  },
@@ -745,17 +749,17 @@ const kt = {
745
749
  event: y
746
750
  }
747
751
  ]);
748
- return fe(k, (f) => {
752
+ return ve(k, (f) => {
749
753
  if (t.hasActions) {
750
754
  S.value = g.value;
751
755
  return;
752
756
  }
753
- e(te.INPUT, f);
757
+ e(ae.INPUT, f);
754
758
  }), {
755
759
  // Refs
756
760
  inputContainerRef: L,
757
761
  // Values,
758
- dateDisplayValue: w,
762
+ dateDisplayValue: M,
759
763
  datePickerContainerId: m,
760
764
  descriptionConditionalClasses: B,
761
765
  displayedTextInputValue: A,
@@ -764,15 +768,15 @@ const kt = {
764
768
  isDateRangePickerOpen: D,
765
769
  isReadOnly: V,
766
770
  labelId: r,
767
- descriptionId: u,
768
- dateErrorId: K,
769
- errorId: M,
771
+ descriptionId: d,
772
+ dateErrorId: z,
773
+ errorId: O,
770
774
  popoverAriaLabel: P,
771
- shouldDisplayError: b,
772
- ariaDescribedBy: O,
775
+ shouldDisplayError: I,
776
+ ariaDescribedBy: h,
773
777
  textInputDisplayValue: v,
774
778
  rangePickerButtonActions: F,
775
- BentoButtonActionsLayout: it,
779
+ BentoButtonActionsLayout: ut,
776
780
  // Events
777
781
  closeDateRangePicker: y,
778
782
  clearDateRangePickerValue: async () => {
@@ -781,10 +785,10 @@ const kt = {
781
785
  openDateRangePicker: Y,
782
786
  onRangeSelectorInput: (f) => {
783
787
  if (f) {
784
- const I = (G) => X(G, R.NUMERIC_DATE_YEAR_FIRST, {
785
- locale: d[n.value.substring(0, 2)] || d.enUS
788
+ const b = (G) => Z(G, R.NUMERIC_DATE_YEAR_FIRST, {
789
+ locale: u[n.value.substring(0, 2)] || u.enUS
786
790
  });
787
- v.startDate = I(f.startDate), v.endDate = I(f.endDate), k.value = f;
791
+ v.startDate = b(f.startDate), v.endDate = b(f.endDate), k.value = f;
788
792
  }
789
793
  },
790
794
  onEnterPressedOverInput: () => {
@@ -792,13 +796,13 @@ const kt = {
792
796
  },
793
797
  onDateRangePickerInput: (f) => {
794
798
  g.value = !1;
795
- const I = (G, ne) => G ? X(G, ne, {
796
- locale: d[n.value.substring(0, 2)] || d.enUS
799
+ const b = (G, se) => G ? Z(G, se, {
800
+ locale: u[n.value.substring(0, 2)] || u.enUS
797
801
  }) : void 0;
798
- v.startDate = I(
802
+ v.startDate = b(
799
803
  f.startDate,
800
804
  R.NUMERIC_DATE_YEAR_FIRST
801
- ), v.endDate = I(f.endDate, R.NUMERIC_DATE_YEAR_FIRST), v.startTime = I(f.startDate, R.HOUR_MINUTE_SECONDS), v.endTime = I(f.endDate, R.HOUR_MINUTE_SECONDS), k.value = f;
805
+ ), v.endDate = b(f.endDate, R.NUMERIC_DATE_YEAR_FIRST), v.startTime = b(f.startDate, R.HOUR_MINUTE_SECONDS), v.endTime = b(f.endDate, R.HOUR_MINUTE_SECONDS), k.value = f;
802
806
  },
803
807
  onDateRangePickerError: (f) => {
804
808
  g.value = !0, v.startDate = f.startDate, v.endDate = f.endDate, k.value = { startDate: null, endDate: null };
@@ -811,26 +815,26 @@ const kt = {
811
815
  };
812
816
  }
813
817
  });
814
- var Et = function() {
818
+ var ht = function() {
815
819
  var e = this, n = e._self._c;
816
820
  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(i) {
817
821
  return !i.type.indexOf("key") && e._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
818
822
  } } }, [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.allowTimeInput, "quick-select-ranges": e.quickSelectRanges, 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 }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
819
823
  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)];
820
824
  }, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
821
- }, ht = [], Ot = /* @__PURE__ */ we(
822
- St,
825
+ }, Ot = [], Mt = /* @__PURE__ */ Ae(
823
826
  Et,
824
827
  ht,
828
+ Ot,
825
829
  !1,
826
830
  null,
827
831
  "83a361fe"
828
832
  );
829
- const Zt = Ot.exports;
833
+ const ea = Mt.exports;
830
834
  export {
831
- Zt as B,
832
- C as D,
833
- te as a,
834
- Te as i
835
+ ea as B,
836
+ w as D,
837
+ ae as a,
838
+ Ie as i
835
839
  };
836
- //# sourceMappingURL=date-range-picker.DPLri9D-.js.map
840
+ //# sourceMappingURL=date-range-picker.P2Q5FNB-.js.map