@adyen/bento-vue2 1.84.2 → 1.86.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 (422) hide show
  1. package/dist/@types/components.d.ts +6 -0
  2. package/dist/@types/index.d.ts +480 -268
  3. package/dist/accordion.js +1 -1
  4. package/dist/action-bar.js +1 -1
  5. package/dist/ai-tag.js +5 -0
  6. package/dist/ai-tag.js.map +1 -0
  7. package/dist/alert.js +1 -1
  8. package/dist/anchor-scroller.js +5 -0
  9. package/dist/anchor-scroller.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -1
  11. package/dist/assets/action-bar.css +1 -1
  12. package/dist/assets/ai-tag.css +1 -0
  13. package/dist/assets/anchor-scroller.css +1 -0
  14. package/dist/assets/base-modal.css +1 -1
  15. package/dist/assets/button-actions.css +1 -1
  16. package/dist/assets/card.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/data-grid.css +1 -1
  19. package/dist/assets/date-picker.css +1 -1
  20. package/dist/assets/date-range-picker.css +1 -1
  21. package/dist/assets/dialog-page.css +1 -1
  22. package/dist/assets/draggable-handle.css +1 -0
  23. package/dist/assets/dropdown-default-textbox.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/error-message.css +1 -0
  26. package/dist/assets/file-uploader.css +1 -1
  27. package/dist/assets/filter-bar.css +1 -1
  28. package/dist/assets/fixed-scroller.css +1 -1
  29. package/dist/assets/form-layout-title.css +1 -1
  30. package/dist/assets/inspector.css +1 -1
  31. package/dist/assets/layout-row.css +1 -1
  32. package/dist/assets/modal-fullscreen.css +1 -1
  33. package/dist/assets/radio-group.css +1 -1
  34. package/dist/assets/secondary-nav.css +1 -1
  35. package/dist/assets/sidepanel.css +1 -1
  36. package/dist/assets/use-cached-selected-values.css +1 -1
  37. package/dist/avatar.js +1 -1
  38. package/dist/button.js +3 -3
  39. package/dist/card.js +1 -1
  40. package/dist/checkbox.js +6 -6
  41. package/dist/chip.js +1 -1
  42. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  43. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  44. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  45. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  46. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  47. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  48. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  49. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  50. package/dist/chunks/{accordion-item.DeV8s0oW.js → accordion-item.Cv6kG2N3.js} +2 -2
  51. package/dist/chunks/{accordion-item.DeV8s0oW.js.map → accordion-item.Cv6kG2N3.js.map} +1 -1
  52. package/dist/chunks/action-bar.Dnkt4yn7.js +163 -0
  53. package/dist/chunks/action-bar.Dnkt4yn7.js.map +1 -0
  54. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  55. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  56. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  57. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  58. package/dist/chunks/ai-button.BTi18ipD.js +50 -0
  59. package/dist/chunks/ai-button.BTi18ipD.js.map +1 -0
  60. package/dist/chunks/ai-tag.s8TECgn_.js +82 -0
  61. package/dist/chunks/ai-tag.s8TECgn_.js.map +1 -0
  62. package/dist/chunks/{alert.B3Pdp02a.js → alert.BESCd8iS.js} +5 -5
  63. package/dist/chunks/{alert.B3Pdp02a.js.map → alert.BESCd8iS.js.map} +1 -1
  64. package/dist/chunks/anchor-scroller.3_idPubO.js +178 -0
  65. package/dist/chunks/anchor-scroller.3_idPubO.js.map +1 -0
  66. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  67. package/dist/chunks/arrow-left.CRREfabP.js +24 -0
  68. package/dist/chunks/arrow-left.CRREfabP.js.map +1 -0
  69. package/dist/chunks/arrow-right.Dn3AYpUP.js +24 -0
  70. package/dist/chunks/arrow-right.Dn3AYpUP.js.map +1 -0
  71. package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js +24 -0
  72. package/dist/chunks/artificial-intelligence-ai-filled.C6TMsiHK.js.map +1 -0
  73. package/dist/chunks/{avatar.CUCH3CTc.js → avatar.rwWPYJnt.js} +2 -2
  74. package/dist/chunks/{avatar.CUCH3CTc.js.map → avatar.rwWPYJnt.js.map} +1 -1
  75. package/dist/chunks/{base-button.IN4bpcds.js → base-button.BPRPrO0p.js} +2 -2
  76. package/dist/chunks/{base-button.IN4bpcds.js.map → base-button.BPRPrO0p.js.map} +1 -1
  77. package/dist/chunks/{base-modal.KYkLKswF.js → base-modal.09nAcnF_.js} +41 -41
  78. package/dist/chunks/{base-modal.KYkLKswF.js.map → base-modal.09nAcnF_.js.map} +1 -1
  79. package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js → button-actions-with-menu.C8tSTxrm.js} +3 -3
  80. package/dist/chunks/{button-actions-with-menu.B5mKwc-F.js.map → button-actions-with-menu.C8tSTxrm.js.map} +1 -1
  81. package/dist/chunks/{button-actions.D9n7MxWe.js → button-actions.VSc47LLH.js} +8 -8
  82. package/dist/chunks/{button-actions.D9n7MxWe.js.map → button-actions.VSc47LLH.js.map} +1 -1
  83. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  84. package/dist/chunks/{button.DIU6m9wD.js → button.Ctj3rkxw.js} +5 -5
  85. package/dist/chunks/{button.DIU6m9wD.js.map → button.Ctj3rkxw.js.map} +1 -1
  86. package/dist/chunks/{calendar.C8DpZ4Sr.js → calendar.DiXkjQDP.js} +100 -94
  87. package/dist/chunks/{calendar.C8DpZ4Sr.js.map → calendar.DiXkjQDP.js.map} +1 -1
  88. package/dist/chunks/{card.CLX0RGG6.js → card.BdjdBN36.js} +3 -3
  89. package/dist/chunks/{card.CLX0RGG6.js.map → card.BdjdBN36.js.map} +1 -1
  90. package/dist/chunks/{checkbox-group.BCnhjQie.js → checkbox-group.d6VQvZL7.js} +5 -5
  91. package/dist/chunks/{checkbox-group.BCnhjQie.js.map → checkbox-group.d6VQvZL7.js.map} +1 -1
  92. package/dist/chunks/{checkbox.CU5ierOq.js → checkbox.ClFNfhNh.js} +4 -4
  93. package/dist/chunks/{checkbox.CU5ierOq.js.map → checkbox.ClFNfhNh.js.map} +1 -1
  94. package/dist/chunks/{chip.C6DRfdJ8.js → chip.D_XQ8ReC.js} +3 -3
  95. package/dist/chunks/{chip.C6DRfdJ8.js.map → chip.D_XQ8ReC.js.map} +1 -1
  96. package/dist/chunks/{click-outside.C1Ud8AA2.js → click-outside.CDz_x8mN.js} +2 -2
  97. package/dist/chunks/{click-outside.C1Ud8AA2.js.map → click-outside.CDz_x8mN.js.map} +1 -1
  98. package/dist/chunks/{code-snippet.9MwDHp50.js → code-snippet.DBNJgt1j.js} +11 -11
  99. package/dist/chunks/{code-snippet.9MwDHp50.js.map → code-snippet.DBNJgt1j.js.map} +1 -1
  100. package/dist/chunks/{codemirror.Cy7iSLbd.js → codemirror.D2BAltnu.js} +3688 -3673
  101. package/dist/chunks/codemirror.D2BAltnu.js.map +1 -0
  102. package/dist/chunks/constructNow.B8T1ljs6.js +8 -0
  103. package/dist/chunks/{constructNow.DuaJst0D.js.map → constructNow.B8T1ljs6.js.map} +1 -1
  104. package/dist/chunks/{controls-group.D4eW9DtP.js → controls-group.HUWlAOhG.js} +3 -3
  105. package/dist/chunks/{controls-group.D4eW9DtP.js.map → controls-group.HUWlAOhG.js.map} +1 -1
  106. package/dist/chunks/{copy.C0q7xgXs.js → copy.BXykYfg0.js} +7 -7
  107. package/dist/chunks/{copy.C0q7xgXs.js.map → copy.BXykYfg0.js.map} +1 -1
  108. package/dist/chunks/{country.DyrDj95W.js → country.BywHth0L.js} +3 -3
  109. package/dist/chunks/{country.DyrDj95W.js.map → country.BywHth0L.js.map} +1 -1
  110. package/dist/chunks/{country.types.DaVCMxk-.js → country.types.BBQbWkTY.js} +3 -3
  111. package/dist/chunks/{country.types.DaVCMxk-.js.map → country.types.BBQbWkTY.js.map} +1 -1
  112. package/dist/chunks/{currency.DYZr_RDk.js → currency.Ciyxfmg1.js} +2 -2
  113. package/dist/chunks/{currency.DYZr_RDk.js.map → currency.Ciyxfmg1.js.map} +1 -1
  114. package/dist/chunks/{dashboard-section.B83FdC0Z.js → dashboard-section.Cw2Ima3U.js} +6 -6
  115. package/dist/chunks/{dashboard-section.B83FdC0Z.js.map → dashboard-section.Cw2Ima3U.js.map} +1 -1
  116. package/dist/chunks/{dashed-underline.DQGVy5T2.js → dashed-underline.Dfw7cJ-9.js} +9 -9
  117. package/dist/chunks/{dashed-underline.DQGVy5T2.js.map → dashed-underline.Dfw7cJ-9.js.map} +1 -1
  118. package/dist/chunks/{data-grid-template.BTEFoEwf.js → data-grid-template.6LR2Jqka.js} +4 -4
  119. package/dist/chunks/{data-grid-template.BTEFoEwf.js.map → data-grid-template.6LR2Jqka.js.map} +1 -1
  120. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  121. package/dist/chunks/{data-grid.Bk7_6Z0F.js → data-grid.B_uZEPDW.js} +449 -442
  122. package/dist/chunks/data-grid.B_uZEPDW.js.map +1 -0
  123. package/dist/chunks/date-input.etw_pFpA.js +20 -0
  124. package/dist/chunks/date-input.etw_pFpA.js.map +1 -0
  125. package/dist/chunks/{date-picker.CnsC_UMG.js → date-picker.CITeN8WH.js} +56 -56
  126. package/dist/chunks/date-picker.CITeN8WH.js.map +1 -0
  127. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  128. package/dist/chunks/date-range-picker.DxVjXxap.js +897 -0
  129. package/dist/chunks/date-range-picker.DxVjXxap.js.map +1 -0
  130. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  131. package/dist/chunks/{date.DBWzp0So.js → date.B0m0sFP6.js} +2 -2
  132. package/dist/chunks/{date.DBWzp0So.js.map → date.B0m0sFP6.js.map} +1 -1
  133. package/dist/chunks/de.DvtL0g75.js.map +1 -1
  134. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  135. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  136. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  137. package/dist/chunks/dialog-page.DA6E6qma.js +122 -0
  138. package/dist/chunks/dialog-page.DA6E6qma.js.map +1 -0
  139. package/dist/chunks/{differenceInMonths.DcFDl4eH.js → differenceInMonths.BR4Z2HIa.js} +2 -2
  140. package/dist/chunks/{differenceInMonths.DcFDl4eH.js.map → differenceInMonths.BR4Z2HIa.js.map} +1 -1
  141. package/dist/chunks/{directive.Cbdox5VL.js → directive.rXUeDb8p.js} +2 -2
  142. package/dist/chunks/{directive.Cbdox5VL.js.map → directive.rXUeDb8p.js.map} +1 -1
  143. package/dist/chunks/divider.DX5gwN7p.js.map +1 -1
  144. package/dist/chunks/{dropdown-default-textbox.Cq68tN9F.js → dropdown-default-textbox.5WjhJWdh.js} +71 -80
  145. package/dist/chunks/dropdown-default-textbox.5WjhJWdh.js.map +1 -0
  146. package/dist/chunks/{dropdown-tag.HBM0wrEV.js → dropdown-tag.BnMuMIDk.js} +8 -8
  147. package/dist/chunks/{dropdown-tag.HBM0wrEV.js.map → dropdown-tag.BnMuMIDk.js.map} +1 -1
  148. package/dist/chunks/{dropdown.C2pXf8Li.js → dropdown.DDPfKc74.js} +227 -225
  149. package/dist/chunks/dropdown.DDPfKc74.js.map +1 -0
  150. package/dist/chunks/{empty-state.DpBnqAxu.js → empty-state.IiG1LXa2.js} +6 -6
  151. package/dist/chunks/{empty-state.DpBnqAxu.js.map → empty-state.IiG1LXa2.js.map} +1 -1
  152. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -1
  153. package/dist/chunks/en-US.BZii9jNW.js.map +1 -1
  154. package/dist/chunks/{field-label.CEkJnsiL.js → error-message.VenUl2OK.js} +54 -54
  155. package/dist/chunks/error-message.VenUl2OK.js.map +1 -0
  156. package/dist/chunks/es.bz0mzkMq.js.map +1 -1
  157. package/dist/chunks/es6.C1DXQV6f.js.map +1 -1
  158. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  159. package/dist/chunks/{file-uploader.CnOqfuI-.js → file-uploader.BU1V40qK.js} +10 -10
  160. package/dist/chunks/file-uploader.BU1V40qK.js.map +1 -0
  161. package/dist/chunks/filter-bar.UdXQf_RN.js +3321 -0
  162. package/dist/chunks/filter-bar.UdXQf_RN.js.map +1 -0
  163. package/dist/chunks/fixed-scroller.BueAsyGk.js +120 -0
  164. package/dist/chunks/{fixed-scroller.Bp4-iO80.js.map → fixed-scroller.BueAsyGk.js.map} +1 -1
  165. package/dist/chunks/{focus-trap.CNIU5jOz.js → focus-trap.DMc1wL3A.js} +312 -295
  166. package/dist/chunks/focus-trap.DMc1wL3A.js.map +1 -0
  167. package/dist/chunks/{footer-actions.BOiN47Xd.js → footer-actions.z-api8J_.js} +4 -4
  168. package/dist/chunks/{footer-actions.BOiN47Xd.js.map → footer-actions.z-api8J_.js.map} +1 -1
  169. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  170. package/dist/chunks/{form-layout-title.CdC1T4gs.js → form-layout-title.Bbq05nMT.js} +6 -6
  171. package/dist/chunks/{form-layout-title.CdC1T4gs.js.map → form-layout-title.Bbq05nMT.js.map} +1 -1
  172. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  173. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -1
  174. package/dist/chunks/fr.Dj7wEToe.js.map +1 -1
  175. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  176. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  177. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js} +3 -3
  178. package/dist/chunks/{getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map → getTimezoneOffsetInMilliseconds.Tu2wlbTR.js.map} +1 -1
  179. package/dist/chunks/grab.BxiVZ1RZ.js +24 -0
  180. package/dist/chunks/grab.BxiVZ1RZ.js.map +1 -0
  181. package/dist/chunks/grid-layout.1aIiz2N_.js.map +1 -1
  182. package/dist/chunks/{header-meta.D_oAu2S9.js → header-meta.CuMQSsOm.js} +11 -11
  183. package/dist/chunks/{header-meta.D_oAu2S9.js.map → header-meta.CuMQSsOm.js.map} +1 -1
  184. package/dist/chunks/{header-with-views.Dc9LUYNY.js → header-with-views.DX8EXLMJ.js} +383 -400
  185. package/dist/chunks/header-with-views.DX8EXLMJ.js.map +1 -0
  186. package/dist/chunks/{header.BmtlQmPs.js → header.YECm2GAh.js} +4 -4
  187. package/dist/chunks/{header.BmtlQmPs.js.map → header.YECm2GAh.js.map} +1 -1
  188. package/dist/chunks/image.C2D2hKat.js.map +1 -1
  189. package/dist/chunks/index.B6WW_F-J.js.map +1 -1
  190. package/dist/chunks/index.BkJqgYF1.js +692 -0
  191. package/dist/chunks/{index.BDK4hwK_.js.map → index.BkJqgYF1.js.map} +1 -1
  192. package/dist/chunks/{info-icon.BEyxQgD6.js → info-icon.DS9ax8ZD.js} +3 -3
  193. package/dist/chunks/{info-icon.BEyxQgD6.js.map → info-icon.DS9ax8ZD.js.map} +1 -1
  194. package/dist/chunks/{input-field-password.D23H_RvO.js → input-field-password.DrI6eF5u.js} +11 -11
  195. package/dist/chunks/{input-field-password.D23H_RvO.js.map → input-field-password.DrI6eF5u.js.map} +1 -1
  196. package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js → input-field-phone-number.Buh4x3pJ.js} +4 -4
  197. package/dist/chunks/{input-field-phone-number.Bvk2Pvec.js.map → input-field-phone-number.Buh4x3pJ.js.map} +1 -1
  198. package/dist/chunks/{input-field.hf0_ALq0.js → input-field.NEKXqT4R.js} +7 -7
  199. package/dist/chunks/{input-field.hf0_ALq0.js.map → input-field.NEKXqT4R.js.map} +1 -1
  200. package/dist/chunks/{inspector.C0iAxxoz.js → inspector.BomNgVb-.js} +5 -5
  201. package/dist/chunks/{inspector.C0iAxxoz.js.map → inspector.BomNgVb-.js.map} +1 -1
  202. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  203. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  204. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  205. package/dist/chunks/isSameWeek.DjeUtLwI.js +14 -0
  206. package/dist/chunks/{isSameWeek.CUD7czUN.js.map → isSameWeek.DjeUtLwI.js.map} +1 -1
  207. package/dist/chunks/{it.Oaj6BklL.js → it.DIafuXtH.js} +2 -2
  208. package/dist/chunks/{it.Oaj6BklL.js.map → it.DIafuXtH.js.map} +1 -1
  209. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -1
  210. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  211. package/dist/chunks/ko.Ceaof6EP.js.map +1 -1
  212. package/dist/chunks/{layout-row.BPX00mio.js → layout-row.BxuMJU4E.js} +4 -4
  213. package/dist/chunks/layout-row.BxuMJU4E.js.map +1 -0
  214. package/dist/chunks/{link.PsTSQjK3.js → link.DKimL08z.js} +2 -2
  215. package/dist/chunks/{link.PsTSQjK3.js.map → link.DKimL08z.js.map} +1 -1
  216. package/dist/chunks/{listbox-option-tag.BlDz7oXK.js → listbox-option-tag.Cv3y0TvQ.js} +3 -3
  217. package/dist/chunks/{listbox-option-tag.BlDz7oXK.js.map → listbox-option-tag.Cv3y0TvQ.js.map} +1 -1
  218. package/dist/chunks/loading-indicator.PxbRzshH.js.map +1 -1
  219. package/dist/chunks/match.CMBZxEs9.js.map +1 -1
  220. package/dist/chunks/minus-small.DJacLGTw.js.map +1 -1
  221. package/dist/chunks/{modal-fullscreen.B1gltlxA.js → modal-fullscreen.6bAjPENL.js} +73 -69
  222. package/dist/chunks/modal-fullscreen.6bAjPENL.js.map +1 -0
  223. package/dist/chunks/{modal.e3EQ6Kex.js → modal.DOR8c0gy.js} +6 -6
  224. package/dist/chunks/{modal.e3EQ6Kex.js.map → modal.DOR8c0gy.js.map} +1 -1
  225. package/dist/chunks/nl.B6vCf2B9.js.map +1 -1
  226. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  227. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  228. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  229. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  230. package/dist/chunks/on-click-outside.BW4rkhzG.js +91 -0
  231. package/dist/chunks/on-click-outside.BW4rkhzG.js.map +1 -0
  232. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  233. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  234. package/dist/chunks/{pagination.BcFt2FqK.js → pagination.wuEIlDcq.js} +4 -4
  235. package/dist/chunks/{pagination.BcFt2FqK.js.map → pagination.wuEIlDcq.js.map} +1 -1
  236. package/dist/chunks/{payment-method.BKXLPDC9.js → payment-method.B3CkgsAY.js} +2 -2
  237. package/dist/chunks/{payment-method.BKXLPDC9.js.map → payment-method.B3CkgsAY.js.map} +1 -1
  238. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  239. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  240. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  241. package/dist/chunks/popover.types.DkiRUQ4Z.js +6 -0
  242. package/dist/chunks/{popover.types.WDh5ggr3.js.map → popover.types.DkiRUQ4Z.js.map} +1 -1
  243. package/dist/chunks/popper-container.D4dworD4.js +1423 -0
  244. package/dist/chunks/popper-container.D4dworD4.js.map +1 -0
  245. package/dist/chunks/{promo-banner.yfBorKj7.js → promo-banner.bjMDm76T.js} +4 -4
  246. package/dist/chunks/{promo-banner.yfBorKj7.js.map → promo-banner.bjMDm76T.js.map} +1 -1
  247. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -1
  248. package/dist/chunks/{radio-group.CtTnfkYg.js → radio-group.DKRxfGtE.js} +8 -8
  249. package/dist/chunks/{radio-group.CtTnfkYg.js.map → radio-group.DKRxfGtE.js.map} +1 -1
  250. package/dist/chunks/radio-input.kzb4gxLW.js.map +1 -1
  251. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  252. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  253. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  254. package/dist/chunks/{rich-text-editor.Dq2CFGOu.js → rich-text-editor.DiuS9alD.js} +9 -13
  255. package/dist/chunks/rich-text-editor.DiuS9alD.js.map +1 -0
  256. package/dist/chunks/{search-bar.B0SdQBnY.js → search-bar.UVSaoX0h.js} +5 -5
  257. package/dist/chunks/{search-bar.B0SdQBnY.js.map → search-bar.UVSaoX0h.js.map} +1 -1
  258. package/dist/chunks/{secondary-nav.BPGpxd0p.js → secondary-nav.C6ldQMZ2.js} +18 -18
  259. package/dist/chunks/secondary-nav.C6ldQMZ2.js.map +1 -0
  260. package/dist/chunks/{segmented-control.BtWFda0P.js → segmented-control.BLnuxgnJ.js} +3 -3
  261. package/dist/chunks/{segmented-control.BtWFda0P.js.map → segmented-control.BLnuxgnJ.js.map} +1 -1
  262. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  263. package/dist/chunks/{selection-card-group.BryV14qP.js → selection-card-group.CqGYskmS.js} +5 -5
  264. package/dist/chunks/{selection-card-group.BryV14qP.js.map → selection-card-group.CqGYskmS.js.map} +1 -1
  265. package/dist/chunks/{sidepanel.NFyZGE57.js → sidepanel.BKE87Uef.js} +71 -67
  266. package/dist/chunks/sidepanel.BKE87Uef.js.map +1 -0
  267. package/dist/chunks/{startOfWeek.Dxw2MhGp.js → startOfWeek.D8Yh4c0G.js} +3 -3
  268. package/dist/chunks/{startOfWeek.Dxw2MhGp.js.map → startOfWeek.D8Yh4c0G.js.map} +1 -1
  269. package/dist/chunks/{status.types.Cv5XN4zL.js → status.types.BTsaLHQ6.js} +2 -2
  270. package/dist/chunks/{status.types.Cv5XN4zL.js.map → status.types.BTsaLHQ6.js.map} +1 -1
  271. package/dist/chunks/{step.BLFXvHL6.js → step.BEbWkprZ.js} +5 -5
  272. package/dist/chunks/{step.BLFXvHL6.js.map → step.BEbWkprZ.js.map} +1 -1
  273. package/dist/chunks/{structured-list-item.CptOCpHP.js → structured-list-item.DRFRap_S.js} +6 -6
  274. package/dist/chunks/{structured-list-item.CptOCpHP.js.map → structured-list-item.DRFRap_S.js.map} +1 -1
  275. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  276. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  277. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  278. package/dist/chunks/{summary-grid.types.B1T8_k1m.js → summary-grid.types.OldkhD7S.js} +10 -10
  279. package/dist/chunks/{summary-grid.types.B1T8_k1m.js.map → summary-grid.types.OldkhD7S.js.map} +1 -1
  280. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -1
  281. package/dist/chunks/{tab.FUMpPsBP.js → tab.BqSNoefU.js} +5 -5
  282. package/dist/chunks/{tab.FUMpPsBP.js.map → tab.BqSNoefU.js.map} +1 -1
  283. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  284. package/dist/chunks/{tag.B1Ywhgvc.js → tag.Cy3XkSDQ.js} +3 -3
  285. package/dist/chunks/{tag.B1Ywhgvc.js.map → tag.Cy3XkSDQ.js.map} +1 -1
  286. package/dist/chunks/{textarea.riUt0BiI.js → textarea.Bm9MZb_W.js} +4 -4
  287. package/dist/chunks/{textarea.riUt0BiI.js.map → textarea.Bm9MZb_W.js.map} +1 -1
  288. package/dist/chunks/{timeline-item.CFfW1DoD.js → timeline-item.Cpbm8IUw.js} +15 -15
  289. package/dist/chunks/{timeline-item.CFfW1DoD.js.map → timeline-item.Cpbm8IUw.js.map} +1 -1
  290. package/dist/chunks/{toast.Csv6tMyT.js → toast.Wuy6VuOT.js} +4 -4
  291. package/dist/chunks/{toast.Csv6tMyT.js.map → toast.Wuy6VuOT.js.map} +1 -1
  292. package/dist/chunks/{toggle.227XgEc7.js → toggle.B1z1YPe_.js} +4 -4
  293. package/dist/chunks/{toggle.227XgEc7.js.map → toggle.B1z1YPe_.js.map} +1 -1
  294. package/dist/chunks/{tooltip.C6YCavPw.js → tooltip.DF11J3k3.js} +50 -50
  295. package/dist/chunks/{tooltip.C6YCavPw.js.map → tooltip.DF11J3k3.js.map} +1 -1
  296. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  297. package/dist/chunks/{tutorial.D18LwXVy.js → tutorial.D5xtZ1Pt.js} +8 -8
  298. package/dist/chunks/{tutorial.D18LwXVy.js.map → tutorial.D5xtZ1Pt.js.map} +1 -1
  299. package/dist/chunks/{typography.Bq-EGj9y.js → typography.C8lPlsbD.js} +3 -3
  300. package/dist/chunks/{typography.Bq-EGj9y.js.map → typography.C8lPlsbD.js.map} +1 -1
  301. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  302. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  303. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js → use-bento-toast-controller.CB6Qbf3R.js} +2 -2
  304. package/dist/chunks/{use-bento-toast-controller.MmyZXtME.js.map → use-bento-toast-controller.CB6Qbf3R.js.map} +1 -1
  305. package/dist/chunks/{use-cached-selected-values.gDWGi5Nk.js → use-cached-selected-values.wn2xnwYG.js} +23 -23
  306. package/dist/chunks/use-cached-selected-values.wn2xnwYG.js.map +1 -0
  307. package/dist/chunks/{use-country-items.ClS_So5N.js → use-country-items.CQnldpqM.js} +11 -11
  308. package/dist/chunks/{use-country-items.ClS_So5N.js.map → use-country-items.CQnldpqM.js.map} +1 -1
  309. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  310. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -1
  311. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  312. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  313. package/dist/chunks/utils.BzUwtTXc.js +21 -0
  314. package/dist/chunks/utils.BzUwtTXc.js.map +1 -0
  315. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  316. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  317. package/dist/chunks/{zh-CN.BzH0fIXr.js → zh-CN.Bw_6j9Cd.js} +2 -2
  318. package/dist/chunks/{zh-CN.BzH0fIXr.js.map → zh-CN.Bw_6j9Cd.js.map} +1 -1
  319. package/dist/click-outside.js +1 -1
  320. package/dist/code-snippet.js +1 -1
  321. package/dist/country.js +2 -2
  322. package/dist/currency.js +1 -1
  323. package/dist/dashboard-template.js +1 -1
  324. package/dist/dashed-underline.js +1 -1
  325. package/dist/data-grid-template.js +1 -1
  326. package/dist/data-grid.js +6 -5
  327. package/dist/date-picker.js +2 -2
  328. package/dist/date-range-picker.js +2 -2
  329. package/dist/date.js +1 -1
  330. package/dist/draggable-handle.js +173 -0
  331. package/dist/draggable-handle.js.map +1 -0
  332. package/dist/dropdown.js +11 -11
  333. package/dist/empty-state.js +1 -1
  334. package/dist/file-uploader.js +1 -1
  335. package/dist/filter-bar.js +1 -1
  336. package/dist/focus-trap.js +1 -1
  337. package/dist/form-layout.js +1 -1
  338. package/dist/header-with-views.js +1 -1
  339. package/dist/header.js +1 -1
  340. package/dist/index.js +341 -335
  341. package/dist/index.js.map +1 -1
  342. package/dist/info-icon.js +1 -1
  343. package/dist/input-field-password.js +1 -1
  344. package/dist/input-field-phone-number.js +1 -1
  345. package/dist/input-field.js +1 -1
  346. package/dist/inspector.js +1 -1
  347. package/dist/internal.js +42 -42
  348. package/dist/layout.js +1 -1
  349. package/dist/link.js +1 -1
  350. package/dist/menu.js +1 -1
  351. package/dist/modal-fullscreen.js +1 -1
  352. package/dist/modal.js +2 -2
  353. package/dist/pagination.js +1 -1
  354. package/dist/payment-method.js +1 -1
  355. package/dist/popover.js +2 -2
  356. package/dist/popper-container.js +1 -1
  357. package/dist/promo-banner.js +1 -1
  358. package/dist/radio-group.js +1 -1
  359. package/dist/rich-text-editor.js +1 -1
  360. package/dist/search-bar.js +2 -2
  361. package/dist/secondary-nav.js +1 -1
  362. package/dist/segmented-control.js +1 -1
  363. package/dist/selection-card.js +1 -1
  364. package/dist/sidepanel.js +1 -1
  365. package/dist/status.js +1 -1
  366. package/dist/stepper.js +1 -1
  367. package/dist/structured-list.js +1 -1
  368. package/dist/styles/bento-dark.css +5 -0
  369. package/dist/styles/bento-light.css +5 -0
  370. package/dist/styles/bento.css +5 -0
  371. package/dist/styles/legacy.css +5 -0
  372. package/dist/styles/styleguide.css +5 -0
  373. package/dist/summary-grid.js +1 -1
  374. package/dist/tabs.js +1 -1
  375. package/dist/tag.js +1 -1
  376. package/dist/textarea.js +1 -1
  377. package/dist/timeline.js +1 -1
  378. package/dist/toast.js +1 -1
  379. package/dist/toggle.js +1 -1
  380. package/dist/tutorial.js +1 -1
  381. package/dist/typography.js +1 -1
  382. package/dist/use-form-v4.js +756 -7787
  383. package/dist/use-form-v4.js.map +1 -1
  384. package/dist/web-types.json +339 -35
  385. package/package.json +9 -9
  386. package/dist/assets/field-label.css +0 -1
  387. package/dist/chunks/action-bar.y4tcdk7R.js +0 -162
  388. package/dist/chunks/action-bar.y4tcdk7R.js.map +0 -1
  389. package/dist/chunks/ai-button.BEy4Gly-.js +0 -67
  390. package/dist/chunks/ai-button.BEy4Gly-.js.map +0 -1
  391. package/dist/chunks/codemirror.Cy7iSLbd.js.map +0 -1
  392. package/dist/chunks/constructNow.DuaJst0D.js +0 -8
  393. package/dist/chunks/data-grid.Bk7_6Z0F.js.map +0 -1
  394. package/dist/chunks/date-input.BbZqj10S.js +0 -15
  395. package/dist/chunks/date-input.BbZqj10S.js.map +0 -1
  396. package/dist/chunks/date-picker.CnsC_UMG.js.map +0 -1
  397. package/dist/chunks/date-range-picker.B6GSRjjK.js +0 -1693
  398. package/dist/chunks/date-range-picker.B6GSRjjK.js.map +0 -1
  399. package/dist/chunks/dialog-page.QpRiNPyx.js +0 -137
  400. package/dist/chunks/dialog-page.QpRiNPyx.js.map +0 -1
  401. package/dist/chunks/dropdown-default-textbox.Cq68tN9F.js.map +0 -1
  402. package/dist/chunks/dropdown.C2pXf8Li.js.map +0 -1
  403. package/dist/chunks/field-label.CEkJnsiL.js.map +0 -1
  404. package/dist/chunks/file-uploader.CnOqfuI-.js.map +0 -1
  405. package/dist/chunks/filter-bar.CnJAxz9B.js +0 -2559
  406. package/dist/chunks/filter-bar.CnJAxz9B.js.map +0 -1
  407. package/dist/chunks/fixed-scroller.Bp4-iO80.js +0 -114
  408. package/dist/chunks/focus-trap.CNIU5jOz.js.map +0 -1
  409. package/dist/chunks/header-with-views.Dc9LUYNY.js.map +0 -1
  410. package/dist/chunks/index.BDK4hwK_.js +0 -593
  411. package/dist/chunks/isSameWeek.CUD7czUN.js +0 -14
  412. package/dist/chunks/layout-row.BPX00mio.js.map +0 -1
  413. package/dist/chunks/modal-fullscreen.B1gltlxA.js.map +0 -1
  414. package/dist/chunks/on-click-outside.D9aY9g8G.js +0 -101
  415. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +0 -1
  416. package/dist/chunks/popover.types.WDh5ggr3.js +0 -6
  417. package/dist/chunks/popper-container.Cdokz_NE.js +0 -1404
  418. package/dist/chunks/popper-container.Cdokz_NE.js.map +0 -1
  419. package/dist/chunks/rich-text-editor.Dq2CFGOu.js.map +0 -1
  420. package/dist/chunks/secondary-nav.BPGpxd0p.js.map +0 -1
  421. package/dist/chunks/sidepanel.NFyZGE57.js.map +0 -1
  422. package/dist/chunks/use-cached-selected-values.gDWGi5Nk.js.map +0 -1
@@ -0,0 +1,897 @@
1
+ import { reactive as fe, defineComponent as Ye, useSlots as nt, ref as O, computed as y, onMounted as Qe, toRaw as ye, watch as pe, toRef as ve } from "vue";
2
+ import { j as rt } from "./index.BkJqgYF1.js";
3
+ import { B as st } from "./divider.DX5gwN7p.js";
4
+ import { h as ot, B as lt } from "./button-actions.VSc47LLH.js";
5
+ import { B as We, d as Ee } from "./typography.C8lPlsbD.js";
6
+ import { B as it } from "./input-field.NEKXqT4R.js";
7
+ import { B as ut } from "./dropdown.DDPfKc74.js";
8
+ import { B as dt } from "./segmented-control.BLnuxgnJ.js";
9
+ import { u as ge } from "./index.B6WW_F-J.js";
10
+ import { f as E, h as $e, i as x, j as ct, k as Ce, l as mt, s as we, m as Dt, n as re, o as Fe, b as L, u as pt, e as M, p as C, g as ft } from "./calendar.DiXkjQDP.js";
11
+ import { d as me } from "./debounce.DUTu11PS.js";
12
+ import { u as vt } from "./use-has-slot.C9lQZ6nz.js";
13
+ import { e as A, a as xe } from "./differenceInMonths.BR4Z2HIa.js";
14
+ import { s as Be } from "./startOfWeek.D8Yh4c0G.js";
15
+ import { f as Ae, v as yt, u as gt } from "./date-input.etw_pFpA.js";
16
+ import { t as j, c as Tt, n as _t } from "./getTimezoneOffsetInMilliseconds.Tu2wlbTR.js";
17
+ import { c as Rt } from "./constructNow.B8T1ljs6.js";
18
+ import { n as Ge } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
19
+ import { D as It } from "./dropdown-default-textbox.5WjhJWdh.js";
20
+ import { g as ae } from "./generate-uid.NJ8tVoha.js";
21
+ import { u as bt } from "./use-form-layout-loading.CWbjZiwP.js";
22
+ import "./index.Cl4_42j5.js";
23
+ import { u as ht } from "./form-field.D_2g7vaP.js";
24
+ import { B as kt } from "./directive.rXUeDb8p.js";
25
+ import { F as St, E as Mt } from "./error-message.VenUl2OK.js";
26
+ import { B as Ot } from "./button-actions.types.BptAXjD8.js";
27
+ import "../assets/date-range-picker.css";
28
+ function ne(r) {
29
+ if (r == null)
30
+ return E(/* @__PURE__ */ new Date());
31
+ const [t, e, a] = r.split("-").map((l) => parseInt(l, 10));
32
+ return new Date(t, e - 1, a);
33
+ }
34
+ function He(r, t, e) {
35
+ return $e(r, t * 3, e);
36
+ }
37
+ function Et(r, t, e) {
38
+ return He(r, -1, e);
39
+ }
40
+ const Ct = ({
41
+ firstDayOfWeek: r,
42
+ min: t,
43
+ max: e
44
+ }) => ({ getGranularCalendarLimits: (l) => {
45
+ if (!t && !e)
46
+ return { min: null, max: null };
47
+ let D = t ? E(t) : null, p = e ? A(e) : null;
48
+ if ((l == null ? void 0 : l.type) === "weekly") {
49
+ if (l.earliest)
50
+ D = E(l.earliest);
51
+ else if (D) {
52
+ const f = Be(D, { weekStartsOn: r });
53
+ x(D, f) || (D = E(ct(Ce(D, { weekStartsOn: r }), 1)));
54
+ }
55
+ if (l.latest)
56
+ p = A(l.latest);
57
+ else if (p) {
58
+ const f = Ce(p, { weekStartsOn: r });
59
+ x(p, f) || (p = A(mt(Be(p, { weekStartsOn: r }), 1)));
60
+ }
61
+ }
62
+ if ((l == null ? void 0 : l.type) === "monthly") {
63
+ if (l.earliest)
64
+ D = E(l.earliest);
65
+ else if (D) {
66
+ const f = we(D);
67
+ x(D, f) || (D = we($e(D, 1)));
68
+ }
69
+ if (l.latest)
70
+ p = A(l.latest);
71
+ else if (p) {
72
+ const f = xe(p);
73
+ x(p, f) || (p = xe(Dt(p, 1)));
74
+ }
75
+ }
76
+ if ((l == null ? void 0 : l.type) === "quarterly") {
77
+ if (l.earliest)
78
+ D = re(l.earliest);
79
+ else if (D) {
80
+ const f = re(D);
81
+ x(D, f) || (D = re(He(D, 1)));
82
+ }
83
+ if (l.latest)
84
+ p = A(l.latest);
85
+ else if (p) {
86
+ const f = Fe(p);
87
+ x(p, f) || (p = Fe(Et(p)));
88
+ }
89
+ }
90
+ return { min: D, max: p };
91
+ } }), wt = () => {
92
+ const r = fe({
93
+ daily: null,
94
+ weekly: null,
95
+ monthly: null,
96
+ quarterly: null
97
+ });
98
+ return {
99
+ savedRanges: r,
100
+ saveRange: (a, l) => {
101
+ r[a] = l;
102
+ },
103
+ resetSavedRanges: () => {
104
+ r.daily = null, r.weekly = null, r.monthly = null, r.quarterly = null;
105
+ }
106
+ };
107
+ };
108
+ var v = /* @__PURE__ */ ((r) => (r.CUSTOM_RANGE = "custom-range", r.INPUT = "input", r.ERROR = "error", r.FORM_DATE = "form-date", r.START_DATE_SELECTED = "start-date-selected", r))(v || {});
109
+ function Ft(r, t, e) {
110
+ const a = j(r, e == null ? void 0 : e.in);
111
+ return a.setHours(t), a;
112
+ }
113
+ function xt(r, t, e) {
114
+ const a = j(r, e == null ? void 0 : e.in);
115
+ return a.setMinutes(t), a;
116
+ }
117
+ function Bt(r, t, e) {
118
+ const a = j(r, e == null ? void 0 : e.in);
119
+ return a.setSeconds(t), a;
120
+ }
121
+ function qe(r, t) {
122
+ const e = j(r, t == null ? void 0 : t.in);
123
+ return e.setMilliseconds(0), e;
124
+ }
125
+ function Pe(r, t) {
126
+ return +qe(r) == +qe(t);
127
+ }
128
+ function De(r, t) {
129
+ return +j(r) == +j(t);
130
+ }
131
+ function At(r, t) {
132
+ return x(
133
+ Tt(r, r),
134
+ Rt(r)
135
+ );
136
+ }
137
+ function Ne(r, t, e) {
138
+ const a = j(r, e == null ? void 0 : e.in);
139
+ return a.setMilliseconds(t), a;
140
+ }
141
+ const qt = /[\d]/, Pt = /^\d{2}$/, Nt = /^\d{2}:\d{2}$/, Ut = (r) => {
142
+ const { selectionStart: t } = r.target, e = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], a = qt.test(r.key) || e.includes(r.key), l = [1, 2, 4, 5].includes(t) && r.key === ":";
143
+ !a && !l && r.preventDefault();
144
+ }, Ue = (r) => {
145
+ if (!r)
146
+ return r;
147
+ let t = r;
148
+ if (t.length === 1 && parseInt(r, 10) > 2)
149
+ return `0${t}:`;
150
+ const [e, a] = t.slice(-2);
151
+ return [2, 5].includes(t.length) && a === ":" && (t = `${t.slice(0, t.length - 2)}0${e}`), (Pt.test(t) || Nt.test(t)) && (t += ":"), t;
152
+ }, Lt = {
153
+ "en-US": {
154
+ customRange: "Custom range",
155
+ daily: "Daily",
156
+ dateFrom: "Date from",
157
+ dateTo: "Date to",
158
+ lastMonth: "Last month",
159
+ lastSevenDays: "Last 7 days",
160
+ lastThreeMonths: "Last three months",
161
+ monthly: "Monthly",
162
+ quarterly: "Quarterly",
163
+ timeFrom: "Time from",
164
+ timeTo: "Time to",
165
+ weekly: "Weekly"
166
+ },
167
+ "ja-JP": {
168
+ customRange: "カスタム範囲",
169
+ daily: "毎日",
170
+ dateFrom: "開始日",
171
+ dateTo: "日付まで",
172
+ lastMonth: "先月",
173
+ lastSevenDays: "過去7日間",
174
+ lastThreeMonths: "過去3か月",
175
+ monthly: "毎月",
176
+ quarterly: "毎四半期",
177
+ timeFrom: "開始時刻",
178
+ timeTo: "終了時刻",
179
+ weekly: "毎週"
180
+ },
181
+ "pt-BR": {
182
+ customRange: "Intervalo personalizado",
183
+ daily: "Diária",
184
+ dateFrom: "Data a partir de",
185
+ dateTo: "Data até",
186
+ lastMonth: "Último mês",
187
+ lastSevenDays: "Últimos 7 dias",
188
+ lastThreeMonths: "Últimos 3 meses",
189
+ monthly: "Mensal",
190
+ quarterly: "Trimestral",
191
+ timeFrom: "Horário a partir de",
192
+ timeTo: "Hora de",
193
+ weekly: "Semanal"
194
+ }
195
+ }, jt = {
196
+ name: "date-range-picker-calendar",
197
+ i18n: { messages: Lt }
198
+ }, Yt = /* @__PURE__ */ Ye({
199
+ ...jt,
200
+ props: {
201
+ /**
202
+ * Allows user to enter time values in the form
203
+ */
204
+ allowTimeInput: { type: Boolean, default: !1 },
205
+ /**
206
+ * Ranges form persistance data
207
+ */
208
+ dateFormData: {
209
+ type: Object,
210
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
211
+ },
212
+ /**
213
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
214
+ */
215
+ firstDayOfWeek: L.props.firstDayOfWeek,
216
+ /**
217
+ * A list of available granularities.
218
+ * If present, the date picker will display a segmented control to change granularity.
219
+ */
220
+ granularities: {
221
+ type: Array,
222
+ default: null
223
+ },
224
+ /**
225
+ * Indicate if a date should be disabled or not
226
+ */
227
+ isDateDisabled: L.props.isDateDisabled,
228
+ /**
229
+ * Set a maximum number of dates to be selectable by the range.
230
+ */
231
+ maxRange: L.props.maxRange,
232
+ /**
233
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
234
+ */
235
+ min: L.props.min,
236
+ /**
237
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
238
+ */
239
+ max: L.props.max,
240
+ /**
241
+ * Number of months rendered on pane
242
+ */
243
+ numberOfMonths: {
244
+ type: L.props.numberOfMonths.type,
245
+ default: L.props.numberOfMonths.default,
246
+ validator: (r) => r >= 0
247
+ },
248
+ /**
249
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
250
+ */
251
+ showEndDateOnOpen: { type: Boolean, default: !1 },
252
+ /**
253
+ * Enables the custom range selector.
254
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
255
+ * `label` - label of custom range item.
256
+ * `value` - a unique key of the custom range item.
257
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
258
+ */
259
+ quickSelectRanges: {
260
+ type: Array,
261
+ default: void 0
262
+ },
263
+ /**
264
+ * Selected date
265
+ */
266
+ value: { type: Object, default: void 0 },
267
+ /**
268
+ * The type of calendar to display. Defaults to showing days.
269
+ */
270
+ variant: L.props.variant
271
+ },
272
+ emits: [
273
+ v.CUSTOM_RANGE,
274
+ v.INPUT,
275
+ v.ERROR,
276
+ v.FORM_DATE,
277
+ v.START_DATE_SELECTED
278
+ ],
279
+ setup(r, { emit: t }) {
280
+ var ke, Se, Me, Oe;
281
+ const e = r, a = 300, l = "customRange", D = nt(), p = vt(D), { t: f } = ge(), B = O({}), b = y(() => e.variant === "month" ? "monthly" : "daily"), V = y(() => e.numberOfMonths === 0), s = fe({
282
+ startDate: (ke = e.value) == null ? void 0 : ke.startDate,
283
+ endDate: (Se = e.value) == null ? void 0 : Se.endDate,
284
+ range: (Me = e.value) == null ? void 0 : Me.range,
285
+ ...e.granularities ? {
286
+ granularity: ((Oe = e.value) == null ? void 0 : Oe.granularity) || b.value
287
+ } : {}
288
+ });
289
+ function m(n) {
290
+ return n ? new Date(
291
+ n.getUTCFullYear(),
292
+ n.getUTCMonth(),
293
+ n.getUTCDate(),
294
+ n.getUTCHours(),
295
+ n.getUTCMinutes(),
296
+ n.getUTCSeconds()
297
+ ) : null;
298
+ }
299
+ const k = y(() => {
300
+ var n, i;
301
+ return (
302
+ // eslint-disable-next-line consistent-return
303
+ ((i = (n = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : n.find(({ value: c, data: d }) => {
304
+ var I;
305
+ if (!d.endDate) {
306
+ if (d.isRelativeToNow) {
307
+ const S = (I = B.value) == null ? void 0 : I[c];
308
+ return S ? De(
309
+ m(S.startDate),
310
+ m(s.startDate)
311
+ ) && De(
312
+ m(S.endDate),
313
+ m(s.endDate)
314
+ ) : (
315
+ // If not stored calculated dates, fall back to comparing the quick select item's value
316
+ // with the internal range's stored range identifier.
317
+ c === s.range
318
+ );
319
+ }
320
+ return De(m(d.startDate), m(s.startDate)) && De(
321
+ m(s.endDate),
322
+ m(A(s.endDate))
323
+ ) && At(m(s.endDate)) && (e.granularities ? d.granularity === s.granularity : !0);
324
+ }
325
+ if (e.allowTimeInput)
326
+ return Pe(m(d.startDate), m(s.startDate)) && Pe(m(d.endDate), m(s.endDate)) && (e.granularities ? d.granularity === s.granularity : !0);
327
+ if (d.endDate)
328
+ return x(d.startDate, s.startDate) && x(d.endDate, s.endDate) && (e.granularities ? d.granularity === s.granularity : !0);
329
+ })) == null ? void 0 : i.value) ?? l
330
+ );
331
+ }), g = y(() => ({
332
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
333
+ })), q = y(() => [
334
+ { label: f("customRange"), value: l },
335
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
336
+ ]), T = y(
337
+ () => {
338
+ var n;
339
+ return ((n = e.granularities) == null ? void 0 : n.find(({ type: i }) => i === s.granularity)) || null;
340
+ }
341
+ ), J = y(
342
+ () => {
343
+ var n;
344
+ return ((n = e.granularities) == null ? void 0 : n.map(({ type: i, disabled: c }) => ({
345
+ label: f(i),
346
+ value: i,
347
+ disabled: c
348
+ }))) ?? [];
349
+ }
350
+ ), { getGranularCalendarLimits: $ } = Ct(e), R = y(
351
+ () => e.granularities ? $(T.value) : { min: e.min ? E(e.min) : null, max: e.max ? A(e.max) : null }
352
+ ), {
353
+ adjustDateForQuarterly: X,
354
+ adjustDateForMonthly: se,
355
+ adjustDateForWeekly: Z,
356
+ adjustStartDateInputForWeekly: ee,
357
+ adjustEndDateInputForWeekly: Y,
358
+ adjustStartDateInputForMonthly: _,
359
+ adjustEndDateInputForMonthly: oe,
360
+ adjustStartDateInputForQuarterly: le,
361
+ adjustEndDateInputForQuarterly: G
362
+ } = pt(e.firstDayOfWeek), { savedRanges: P, saveRange: H, resetSavedRanges: Q } = wt(), h = (n) => n ? M(n) : "", w = O(!1), W = O(!1), N = O(!1), U = O(!1), o = fe({
363
+ startDate: e.dateFormData.startDate,
364
+ endDate: e.dateFormData.endDate,
365
+ startTime: e.dateFormData.startTime,
366
+ endTime: e.dateFormData.endTime
367
+ }), ie = (n, i) => {
368
+ let c = new Date(n);
369
+ const [d, I, S] = i.split(":");
370
+ return c = Ft(c, parseInt(d, 10)), c = xt(c, parseInt(I, 10)), c = Bt(c, parseInt(S, 10)), c;
371
+ }, ue = (n) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(n), K = (n, i) => {
372
+ const c = () => {
373
+ if (i && u(i)) {
374
+ const d = ie(new Date(i), n);
375
+ if (e.min && d < Ne(e.min, 0) || e.max && d > Ne(e.max, 0))
376
+ return !1;
377
+ }
378
+ return !0;
379
+ };
380
+ return ue(n) && c();
381
+ }, F = (n, i) => !i || !ue(i) || e.variant === "month" ? n : ie(new Date(n), i), Te = (n) => {
382
+ o.startTime = C(
383
+ e.min && e.allowTimeInput && x(e.min, n.startDate) ? e.min : E(n.startDate)
384
+ ), o.endTime = C(
385
+ e.max && e.allowTimeInput && x(e.max, n.endDate) ? e.max : A(n.endDate)
386
+ ), s.startDate = F(n.startDate, o.startTime), s.endDate = F(n.endDate, o.endTime), s.range = null, e.granularities && Q(), t(v.INPUT, {
387
+ ...s,
388
+ range: k.value
389
+ });
390
+ }, u = (n) => {
391
+ if (!n)
392
+ return !1;
393
+ const i = (d) => e.min && E(d) < E(e.min) || e.max && E(d) > E(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(E(d)) : !0;
394
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(n) && i(new Date(n));
395
+ };
396
+ Qe(() => {
397
+ w.value = !!(e.dateFormData.startDate && !u(e.dateFormData.startDate)), e.allowTimeInput ? N.value = !!(e.dateFormData.startTime && !K(e.dateFormData.startTime, e.dateFormData.startDate)) : N.value = !1, W.value = !!(e.dateFormData.endDate && !u(e.dateFormData.endDate)), e.allowTimeInput ? U.value = !!(e.dateFormData.endTime && !K(e.dateFormData.endTime, e.dateFormData.endDate)) : U.value = !1;
398
+ });
399
+ const z = (n) => {
400
+ var i;
401
+ o.startDate = M(n), o.startTime ? N.value && (o.startTime = (i = e.dateFormData) == null ? void 0 : i.startTime) : o.startTime = C(n), w.value = !1, N.value = !1, t(v.START_DATE_SELECTED, n);
402
+ }, de = (n) => {
403
+ var i;
404
+ o.endDate = M(n), o.endTime ? U.value && (o.endTime = (i = e.dateFormData) == null ? void 0 : i.endTime) : o.endTime = C(A(n)), W.value = !1, U.value = !1;
405
+ }, ce = (n) => {
406
+ const i = e.value[n];
407
+ if (i)
408
+ return i;
409
+ if (e.dateFormData[n] && u(e.dateFormData[n]))
410
+ return new Date(e.dateFormData[n]);
411
+ }, _e = me((n) => {
412
+ var i;
413
+ if (u(n)) {
414
+ let c = n;
415
+ switch (w.value = !1, (i = T.value) == null ? void 0 : i.type) {
416
+ case "weekly":
417
+ c = ee(
418
+ n,
419
+ h,
420
+ R.value.min,
421
+ R.value.max
422
+ ), o.startDate = c;
423
+ break;
424
+ case "monthly":
425
+ c = _(
426
+ n,
427
+ h,
428
+ R.value.min,
429
+ R.value.max
430
+ ), o.startDate = c;
431
+ break;
432
+ case "quarterly":
433
+ c = le(
434
+ n,
435
+ h,
436
+ R.value.min,
437
+ R.value.max
438
+ ), o.startDate = c;
439
+ break;
440
+ }
441
+ const d = ne(c);
442
+ s.startDate = F(d, o.startTime), s.endDate = F(
443
+ ne(o.endDate),
444
+ o.endTime
445
+ ), u(o.endDate) && (s.endDate = F(
446
+ ne(o.endDate),
447
+ o.endTime
448
+ ));
449
+ const I = ce("endDate");
450
+ s.range = null, t(v.FORM_DATE, {
451
+ startDate: d,
452
+ endDate: I
453
+ }), t(v.INPUT, {
454
+ ...s,
455
+ range: k.value
456
+ });
457
+ } else
458
+ w.value = !0, t(v.ERROR, { ...o });
459
+ }, a), Ke = (n) => {
460
+ o.startDate = Ae(n), _e(o.startDate);
461
+ }, Re = me((n) => {
462
+ var i;
463
+ if (u(n)) {
464
+ let c = n;
465
+ switch (W.value = !1, (i = T.value) == null ? void 0 : i.type) {
466
+ case "weekly":
467
+ c = Y(
468
+ n,
469
+ h,
470
+ R.value.min,
471
+ R.value.max
472
+ ), o.endDate = c;
473
+ break;
474
+ case "monthly":
475
+ c = oe(
476
+ n,
477
+ h,
478
+ R.value.min,
479
+ R.value.max
480
+ ), o.endDate = c;
481
+ break;
482
+ case "quarterly":
483
+ c = G(
484
+ n,
485
+ h,
486
+ R.value.min,
487
+ R.value.max
488
+ ), o.endDate = c;
489
+ break;
490
+ }
491
+ const d = ne(c);
492
+ s.endDate = F(d, o.endTime), u(o.startDate) && (s.startDate = F(
493
+ ne(o.startDate),
494
+ o.startTime
495
+ ));
496
+ const I = ce("startDate");
497
+ s.range = null, t(v.FORM_DATE, {
498
+ startDate: I,
499
+ endDate: d
500
+ }), t(v.INPUT, {
501
+ ...s,
502
+ range: k.value
503
+ });
504
+ } else
505
+ W.value = !0, t(v.ERROR, { ...o });
506
+ }, a), ze = (n) => {
507
+ o.endDate = Ae(n), Re(o.endDate);
508
+ }, Ve = (n) => {
509
+ yt(n);
510
+ }, Ie = me((n) => {
511
+ if (K(n, e.dateFormData.startDate)) {
512
+ N.value = !1, s.startDate = F(s.startDate, n);
513
+ const i = ce("endDate");
514
+ t(v.FORM_DATE, {
515
+ startDate: s.startDate,
516
+ endDate: i,
517
+ startTime: n,
518
+ endTime: o.endTime ?? e.dateFormData.endTime
519
+ }), t(v.INPUT, {
520
+ ...s,
521
+ range: k.value
522
+ });
523
+ } else
524
+ N.value = !0, t(v.ERROR, { ...o });
525
+ }), be = me((n) => {
526
+ K(n, e.dateFormData.endDate) ? (U.value = !1, s.endDate = F(s.endDate, n), t(v.FORM_DATE, {
527
+ startDate: s.startDate,
528
+ endDate: s.endDate,
529
+ startTime: o.startTime ?? e.dateFormData.startTime,
530
+ endTime: n
531
+ }), t(v.INPUT, {
532
+ ...s,
533
+ range: k.value
534
+ })) : (U.value = !0, t(v.ERROR, { ...o }));
535
+ }), Je = (n) => {
536
+ o.startTime = Ue(n), Ie(o.startTime);
537
+ }, Xe = (n) => {
538
+ o.endTime = Ue(n), be(o.endTime);
539
+ }, Ze = (n) => {
540
+ Ut(n);
541
+ }, te = (n, i, c, d) => {
542
+ s.startDate = n, s.endDate = i, c && (s.granularity = c), d && (s.range = d);
543
+ }, et = (n) => {
544
+ var c;
545
+ const i = (c = e.quickSelectRanges) == null ? void 0 : c.find(({ value: d }) => d === n);
546
+ if (i) {
547
+ Q();
548
+ const d = i.data, I = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : A(new Date(Date.now()))), S = d.isRelativeToNow && d.timeDifference ? new Date(I.getTime() - d.timeDifference) : d.startDate;
549
+ o.endDate = M(I), o.startDate = M(S), te(S, I, null, n), e.granularities && (s.granularity = d.granularity || b.value), o.startTime = C(S), o.endTime = C(I), s.startDate = S, s.endDate = I, d.isRelativeToNow && (B.value = {
550
+ ...B.value,
551
+ [n]: {
552
+ startDate: S,
553
+ endDate: I
554
+ }
555
+ }), t(v.CUSTOM_RANGE, {
556
+ ...i.data,
557
+ startDate: S,
558
+ endDate: I,
559
+ range: i.value
560
+ });
561
+ }
562
+ }, he = {
563
+ weekly: Z,
564
+ monthly: se,
565
+ quarterly: X
566
+ }, tt = (n) => {
567
+ const i = s.granularity;
568
+ if (s.granularity = n, i && H(i, structuredClone(ye(s))), s.startDate && s.endDate) {
569
+ switch (n) {
570
+ case "quarterly":
571
+ case "monthly":
572
+ case "weekly": {
573
+ if (P[n]) {
574
+ te(P[n].startDate, P[n].endDate, n);
575
+ break;
576
+ }
577
+ const { startDate: c, endDate: d } = he[n](
578
+ s.startDate,
579
+ s.endDate,
580
+ R.value.min,
581
+ R.value.max
582
+ );
583
+ te(c, d, n);
584
+ break;
585
+ }
586
+ case "daily":
587
+ P.daily && te(P.daily.startDate, P.daily.endDate, n);
588
+ break;
589
+ }
590
+ o.startDate = M(s.startDate), o.endDate = M(s.endDate), t(v.INPUT, {
591
+ ...s,
592
+ range: k.value
593
+ });
594
+ }
595
+ }, at = y(() => ({
596
+ "b-date-range-picker-calendar__form-container--no-calendars": V.value
597
+ }));
598
+ return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: l, props: e, emit: t, slots: D, hasSlot: p, t: f, calculatedIsRelativeToNowQuickSelectRanges: B, defaultGranularity: b, hasNoCalendars: V, internalRangeDate: s, deserializeDate: m, selectedRangeSelectorValue: k, formInputWrapperConditionalClasses: g, quickSelectRangeDefaultItems: q, selectedGranularity: T, granularityItems: J, getGranularCalendarLimits: $, computedMinMax: R, adjustDateForQuarterly: X, adjustDateForMonthly: se, adjustDateForWeekly: Z, adjustStartDateInputForWeekly: ee, adjustEndDateInputForWeekly: Y, adjustStartDateInputForMonthly: _, adjustEndDateInputForMonthly: oe, adjustStartDateInputForQuarterly: le, adjustEndDateInputForQuarterly: G, savedRanges: P, saveRange: H, resetSavedRanges: Q, formatDate: h, startDateError: w, endDateError: W, startTimeError: N, endTimeError: U, dateTextInput: o, setTimeInDateObject: ie, isValidTimeString: ue, isValidTime: K, setTimeInDateRef: F, onDateInput: Te, isValidDate: u, onStartDateSelected: z, onEndDateSelected: de, getDate: ce, validateStartDate: _e, onStartDateInput: Ke, validateEndDate: Re, onEndDateInput: ze, onDateInputKeyDown: Ve, validateStartTime: Ie, validateEndTime: be, onStartTimeInput: Je, onEndTimeInput: Xe, onTimeInputKeyDown: Ze, setInternalRange: te, onRangeSelectorInput: et, adjustDate: he, onGranularityInput: tt, computedFormContainerClasses: at, Calendar: L, BentoTypography: We, BentoInputField: it, BentoDropdown: ut, BentoSegmentedControl: dt };
599
+ }
600
+ });
601
+ var Qt = function() {
602
+ var t = this, e = t._self._c, a = t._self._setupProxy;
603
+ return e("div", { staticClass: "b-date-range-picker-calendar" }, [e("div", { staticClass: "b-date-range-picker-calendar__form-container", class: a.computedFormContainerClasses, attrs: { "data-testid": "date-range-picker-calendar-form-container" } }, [e("div", { staticClass: "b-date-range-picker-calendar__form" }, [a.hasSlot("title") ? [t._t("title")] : t._e(), t.quickSelectRanges ? e(a.BentoDropdown, { attrs: { "aria-label": a.t("customRange"), items: a.quickSelectRangeDefaultItems, "model-value": a.selectedRangeSelectorValue }, on: { "update:model-value": a.onRangeSelectorInput } }) : t._e(), t.granularities ? e(a.BentoSegmentedControl, { attrs: { items: a.granularityItems, "model-value": a.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": a.onGranularityInput } }) : t._e(), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" From ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateFrom"), "model-value": a.dateTextInput.startDate, error: a.startDateError }, on: { "update:model-value": a.onStartDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
604
+ return [t._v("YYYY-MM-DD")];
605
+ }, proxy: !0 }]) }), t.allowTimeInput ? e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeFrom"), "model-value": a.dateTextInput.startTime, error: a.startTimeError }, on: { "update:model-value": a.onStartTimeInput, keydown: a.onTimeInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
606
+ return [t._v("HH:MM:SS")];
607
+ }, proxy: !0 }], null, !1, 3442289499) }) : t._e()], 1)], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" To ")]), e("div", { class: a.formInputWrapperConditionalClasses }, [e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("dateTo"), "model-value": a.dateTextInput.endDate, error: a.endDateError }, on: { "update:model-value": a.onEndDateInput, keydown: a.onDateInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
608
+ return [t._v("YYYY-MM-DD")];
609
+ }, proxy: !0 }]) }), t.allowTimeInput ? e(a.BentoInputField, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": a.t("timeTo"), "model-value": a.dateTextInput.endTime, error: a.endTimeError }, on: { "update:model-value": a.onEndTimeInput, keydown: a.onTimeInputKeyDown }, scopedSlots: t._u([{ key: "description", fn: function() {
610
+ return [t._v("HH:MM:SS")];
611
+ }, proxy: !0 }], null, !1, 3442289499) }) : t._e()], 1)], 1)], 2), a.hasSlot("actions") ? e("div", [t._t("actions")], 2) : t._e()]), a.hasNoCalendars ? t._e() : e("div", { staticClass: "b-date-range-picker-calendar__calendars-container", attrs: { "data-testid": "date-range-picker-calendar-calendar-container" } }, [e(a.Calendar, { attrs: { value: a.internalRangeDate, "first-day-of-week": t.firstDayOfWeek, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: a.computedMinMax.min, max: a.computedMinMax.max, "number-of-months": t.numberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, granularity: a.selectedGranularity, variant: t.variant, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1)]);
612
+ }, Wt = [], $t = /* @__PURE__ */ Ge(
613
+ Yt,
614
+ Qt,
615
+ Wt,
616
+ !1,
617
+ null,
618
+ "ede4db16"
619
+ );
620
+ const Gt = $t.exports;
621
+ function Le(r, t) {
622
+ const e = j(r, t == null ? void 0 : t.in);
623
+ return Math.trunc(e.getMonth() / 3) + 1;
624
+ }
625
+ function je(r, t) {
626
+ return j(r, t == null ? void 0 : t.in).getFullYear();
627
+ }
628
+ function Ht(r, t, e) {
629
+ const [a, l] = _t(
630
+ e == null ? void 0 : e.in,
631
+ r,
632
+ t
633
+ );
634
+ return +re(a) == +re(l);
635
+ }
636
+ const Kt = {
637
+ "en-US": {
638
+ apply: "Apply",
639
+ cancel: "Cancel",
640
+ dateRangePicker: "Date range picker {name}",
641
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
642
+ quarter: "Q{quarter} {year}",
643
+ selectDate: "Select a date",
644
+ selectDateRange: "Select a date range",
645
+ selectedDateIsNotAvailable: "Selected date is not available"
646
+ },
647
+ "ja-JP": {
648
+ apply: "適用",
649
+ cancel: "キャンセル",
650
+ dateRangePicker: "日付範囲ピッカー {name}",
651
+ provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
652
+ quarter: "{year}年第{quarter}四半期",
653
+ selectDate: "日付を選択",
654
+ selectDateRange: "日付範囲を選択",
655
+ selectedDateIsNotAvailable: "選択した日付は利用できません"
656
+ },
657
+ "pt-BR": {
658
+ apply: "Aplicar",
659
+ cancel: "Cancelar",
660
+ dateRangePicker: "Seletor de intervalo de datas {name}",
661
+ provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD",
662
+ quarter: "{quarter}º trimestre de {year}",
663
+ selectDate: "Selecione uma data",
664
+ selectDateRange: "Selecione um intervalo de datas",
665
+ selectedDateIsNotAvailable: "A data selecionada não está disponível"
666
+ }
667
+ }, zt = ({
668
+ datePickerValue: r,
669
+ isDateIncorrect: t,
670
+ quickSelectRanges: e,
671
+ isMonthVariant: a,
672
+ withTimeInput: l,
673
+ placeholder: D
674
+ }) => {
675
+ const { locale: p, t: f } = ge(), B = (m) => !!m && !isNaN(m.getTime()), b = fe({
676
+ startDate: null,
677
+ endDate: null,
678
+ startTime: null,
679
+ endTime: null
680
+ });
681
+ return pe(
682
+ r,
683
+ (m) => {
684
+ b.startDate = M(m == null ? void 0 : m.startDate), b.endDate = M(m == null ? void 0 : m.endDate), b.startTime = C(m == null ? void 0 : m.startDate), b.endTime = C(m == null ? void 0 : m.endDate);
685
+ },
686
+ { immediate: !0 }
687
+ ), {
688
+ // Values
689
+ dateDisplayValue: y(() => {
690
+ var k;
691
+ if (t.value)
692
+ return `${b.startDate || ""} - ${b.endDate || ""}`;
693
+ if (!r.value || !r.value.startDate && !r.value.endDate)
694
+ return (D == null ? void 0 : D.value) || f("selectDateRange");
695
+ if ((k = e.value) != null && k.length) {
696
+ const g = e.value.find(({ value: q }) => {
697
+ var T;
698
+ return q === ((T = r.value) == null ? void 0 : T.range);
699
+ });
700
+ if (g)
701
+ return g.label;
702
+ }
703
+ if (r.value.granularity === "quarterly") {
704
+ const { startDate: g, endDate: q } = r.value, T = f("quarter", { quarter: Le(g), year: je(g) });
705
+ if (Ht(g, q))
706
+ return T;
707
+ const J = f("quarter", { quarter: Le(q), year: je(q) });
708
+ return `${T} - ${J}`;
709
+ }
710
+ if (!B(r.value.startDate) || !B(r.value.endDate))
711
+ return `${b.startDate || ""} - ${b.endDate || ""}`;
712
+ let m = a != null && a.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
713
+ return l.value && (m = {
714
+ ...m,
715
+ hour: "numeric",
716
+ minute: "numeric",
717
+ second: "numeric",
718
+ hour12: !1
719
+ }), ft(p.value, m).formatRange(
720
+ r.value.startDate,
721
+ r.value.endDate
722
+ );
723
+ }),
724
+ textInputDisplayValue: b,
725
+ // Methods
726
+ formatTextInputDisplayValue: () => ""
727
+ };
728
+ }, Vt = {
729
+ i18n: { messages: Kt },
730
+ name: "bento-date-range-picker",
731
+ model: { prop: "modelValue" }
732
+ }, Jt = /* @__PURE__ */ Ye({
733
+ ...Vt,
734
+ props: {
735
+ description: { default: void 0 },
736
+ disabled: { type: Boolean, default: !1 },
737
+ errorMessage: { default: null },
738
+ label: { default: void 0 },
739
+ optional: { type: Boolean, default: !1 },
740
+ placeholder: { default: null },
741
+ readonly: { type: Boolean, default: !1 },
742
+ required: { type: Boolean, default: !1 },
743
+ tooltipText: { default: null },
744
+ allowTimeInput: { type: Boolean },
745
+ firstDayOfWeek: { default: void 0 },
746
+ granularities: null,
747
+ isDateDisabled: { default: void 0 },
748
+ showEndDateOnOpen: { type: Boolean, default: !1 },
749
+ quickSelectRanges: { default: void 0 },
750
+ maxRange: { default: null },
751
+ min: { default: null },
752
+ max: { default: null },
753
+ numberOfMonths: { default: void 0 },
754
+ modelValue: { default: null },
755
+ value: { default: null },
756
+ variant: { default: void 0 },
757
+ hasActions: { type: Boolean, default: !1 }
758
+ },
759
+ emits: ["update:model-value", "input"],
760
+ setup(r, { emit: t }) {
761
+ const e = r, { t: a } = ge(), l = ae("bento-date-range-picker-container"), D = ae("bento-date-range-picker-label"), p = ae("bento-date-range-picker-description"), f = ae("bento-date-range-picker-error"), B = ae("bento-date-range-picker-date-error"), b = y(() => e.label || a("dateRangePicker", { name: l })), { resolvedFirstDayOfWeek: V } = gt(ve(e, "firstDayOfWeek")), s = rt({
762
+ none: 0,
763
+ one: 710,
764
+ // width of date range picker with one panes
765
+ two: 1030,
766
+ // width of date range picker with two panes
767
+ three: 1290
768
+ // width of date range picker with three panes
769
+ }), m = y(() => {
770
+ const u = s.active().value, z = {
771
+ none: 0,
772
+ one: 1,
773
+ two: 2
774
+ };
775
+ if (u in z) {
776
+ const de = z[u];
777
+ return e.numberOfMonths === void 0 ? de : Math.min(e.numberOfMonths, de);
778
+ }
779
+ return e.numberOfMonths;
780
+ }), k = y(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((u) => {
781
+ const z = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime();
782
+ return {
783
+ ...u,
784
+ data: {
785
+ ...u.data,
786
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
787
+ timeDifference: z
788
+ }
789
+ };
790
+ })), g = O(!1), q = O(null), T = O(!1), { isReadOnly: J } = bt(ve(e, "readonly")), { emitValue: $ } = ht(t);
791
+ pe(
792
+ () => e.disabled,
793
+ () => {
794
+ e.disabled && T.value && (T.value = !1);
795
+ }
796
+ );
797
+ const R = y(() => e.modelValue || e.value), X = y(() => e.hasActions ? !w.value && g.value : g.value), se = y(() => ({
798
+ "b-date-range-picker__description--error": !!e.errorMessage || X.value
799
+ })), Z = y(() => e.variant === "month"), ee = y(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: Y, textInputDisplayValue: _, formatTextInputDisplayValue: oe } = zt({
800
+ datePickerValue: R,
801
+ isDateIncorrect: g,
802
+ quickSelectRanges: k,
803
+ isMonthVariant: Z,
804
+ withTimeInput: ee,
805
+ placeholder: ve(e, "placeholder")
806
+ }), le = y(
807
+ () => `${e.description ? p : ""} ${e.errorMessage ? f : ""} ${g.value ? B : ""}`.trim() || null
808
+ ), G = () => {
809
+ T.value = !1;
810
+ }, P = () => {
811
+ T.value = !0;
812
+ }, H = O(Y.value), Q = O(
813
+ // textInputDisplayValue is a reactive object
814
+ structuredClone(ye(_))
815
+ ), h = O(e.modelValue ?? e.value), w = O(!0), W = y(
816
+ () => e.hasActions ? Q.value : _
817
+ ), N = y(
818
+ () => e.hasActions ? H.value : Y.value
819
+ );
820
+ Qe(() => {
821
+ if (e.hasActions || Ee(
822
+ 'BentoDateRangePicker "hasActions" property',
823
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
824
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
825
+ "2.0.0"
826
+ ), e.value && Ee(
827
+ 'BentoDateRangePicker "value" property',
828
+ 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
829
+ "2.0.0"
830
+ ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
831
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
832
+ }), pe([() => e.value, () => e.modelValue], () => {
833
+ H.value = Y.value, Q.value = structuredClone(ye(_));
834
+ });
835
+ const U = y(() => [
836
+ {
837
+ title: a("apply"),
838
+ event: () => {
839
+ $(h.value), G(), w.value = !0;
840
+ },
841
+ disabled: w.value
842
+ },
843
+ {
844
+ title: a("cancel"),
845
+ event: G
846
+ }
847
+ ]);
848
+ return pe(h, (u) => {
849
+ if (e.hasActions) {
850
+ w.value = g.value;
851
+ return;
852
+ }
853
+ $(u);
854
+ }), { __sfc: !0, emit: t, props: e, t: a, datePickerContainerId: l, labelId: D, descriptionId: p, errorId: f, dateErrorId: B, popoverAriaLabel: b, resolvedFirstDayOfWeek: V, breakpoints: s, computedNumberOfMonths: m, adjustedQuickSelectRanges: k, isDateIncorrect: g, inputContainerRef: q, isDateRangePickerOpen: T, isReadOnly: J, emitValue: $, internalModelValue: R, shouldDisplayError: X, descriptionConditionalClasses: se, isMonthVariant: Z, withTimeInput: ee, dateDisplayValue: Y, textInputDisplayValue: _, formatTextInputDisplayValue: oe, ariaDescribedBy: le, closeDateRangePicker: G, openDateRangePicker: P, localDateDisplayValue: H, localTextInputDisplayValue: Q, selectedDate: h, isApplyDisabled: w, displayedTextInputValue: W, displayedDateValue: N, rangePickerButtonActions: U, onDateRangePickerInput: (u) => {
855
+ g.value = !1, _.startDate = M(u.startDate), _.endDate = M(u.endDate), _.startTime = C(u.startDate), _.endTime = C(u.endDate), h.value = u;
856
+ }, clearDateRangePickerValue: async () => {
857
+ g.value && (g.value = !1), h.value = null;
858
+ }, onEnterPressedOverInput: () => {
859
+ if (!T.value) {
860
+ T.value = !0;
861
+ return;
862
+ }
863
+ g.value || (T.value = !1);
864
+ }, onDateRangePickerFormDateInputUpdate: (u) => {
865
+ g.value = !1, u.startTime && (_.startTime = u.startTime), u.endTime && (_.endTime = u.endTime);
866
+ }, onDateRangePickerError: (u) => {
867
+ g.value = !0, _.startDate = u.startDate, _.endDate = u.endDate, h.value = { startDate: null, endDate: null };
868
+ }, onRangeSelectorInput: (u) => {
869
+ u && (_.startDate = M(u.startDate), _.endDate = M(u.endDate), _.startTime = C(u.startDate), _.endTime = C(u.endDate), h.value = u);
870
+ }, BentoButtonActions: lt, BentoButtonActionsLayout: Ot, BentoDivider: st, BentoPopover: ot, BentoTypography: We, DateRangePickerCalendar: Gt, DropdownInputDefault: It, ErrorMessage: Mt, FieldLabel: St, vBentoClickOutsideDirective: kt };
871
+ }
872
+ });
873
+ var Xt = function() {
874
+ var t = this, e = t._self._c, a = t._self._setupProxy;
875
+ return e("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: a.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [t.label ? e(a.FieldLabel, { attrs: { id: a.labelId, label: t.label, "tooltip-text": t.tooltipText, optional: t.optional, required: t.required } }) : t._e(), e("div", { on: { keydown: function(l) {
876
+ return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
877
+ } } }, [e(a.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: a.datePickerContainerId, ariaExpanded: a.isDateRangePickerOpen, "aria-labelledby": t.label ? a.labelId : null, "aria-describedby": a.ariaDescribedBy, disabled: t.disabled, "is-invalid": !!t.errorMessage || a.shouldDisplayError, open: a.isDateRangePickerOpen, "display-value": a.displayedDateValue, readonly: a.isReadOnly }, on: { open: a.openDateRangePicker, clear: a.clearDateRangePickerValue, close: a.closeDateRangePicker } })], 1), a.shouldDisplayError ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.dateErrorId, "error-message": a.t("provideDateInAFormat") } }) : t._e(), t.errorMessage ? e(a.ErrorMessage, { staticClass: "b-date-range-picker__error-message", attrs: { id: a.errorId, "error-message": t.errorMessage } }) : t._e(), t.description ? e(a.BentoTypography, { staticClass: "b-date-range-picker__description", class: a.descriptionConditionalClasses, attrs: { id: a.descriptionId, el: "span" } }, [t._v(" " + t._s(t.description) + " ")]) : t._e(), a.inputContainerRef ? e(a.BentoPopover, { staticClass: "b-date-range-picker__container", attrs: { id: a.datePickerContainerId, open: a.isDateRangePickerOpen, "target-element": a.inputContainerRef, "aria-label": a.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "", "trap-all": "", "overflow-visible": "" }, nativeOn: { keydown: function(l) {
878
+ return !l.type.indexOf("key") && t._k(l.keyCode, "esc", 27, l.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
879
+ } } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.internalModelValue, "first-day-of-week": a.resolvedFirstDayOfWeek, granularities: t.granularities, "is-date-disabled": t.isDateDisabled, "max-range": t.maxRange, min: t.min, max: t.max, "number-of-months": a.computedNumberOfMonths, "show-end-date-on-open": t.showEndDateOnOpen, "date-form-data": a.displayedTextInputValue, variant: t.variant }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([t.hasActions ? { key: "actions", fn: function() {
880
+ return [e(a.BentoDivider), e("div", { staticClass: "b-date-range-picker__footer" }, [e(a.BentoButtonActions, { attrs: { actions: a.rangePickerButtonActions, layout: a.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
881
+ }, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
882
+ }, Zt = [], ea = /* @__PURE__ */ Ge(
883
+ Jt,
884
+ Xt,
885
+ Zt,
886
+ !1,
887
+ null,
888
+ "20451845"
889
+ );
890
+ const Ma = ea.exports;
891
+ export {
892
+ Ma as B,
893
+ Gt as D,
894
+ At as a,
895
+ De as i
896
+ };
897
+ //# sourceMappingURL=date-range-picker.DxVjXxap.js.map