@adyen/bento-vue2 1.102.0 → 1.103.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 (399) hide show
  1. package/dist/@types/index.d.ts +20 -3
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/ai-tag.js +1 -1
  5. package/dist/alert.js +1 -1
  6. package/dist/anchor-scroller.js +1 -1
  7. package/dist/assets/accordion-item.css +1 -1
  8. package/dist/assets/action-bar.css +1 -1
  9. package/dist/assets/ai-button.css +1 -1
  10. package/dist/assets/anchor-scroller.css +1 -1
  11. package/dist/assets/base-modal.css +1 -1
  12. package/dist/assets/button-actions.css +1 -1
  13. package/dist/assets/button.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/checkbox-input.css +1 -1
  16. package/dist/assets/data-grid.css +1 -1
  17. package/dist/assets/dialog-page.css +1 -1
  18. package/dist/assets/dropdown.css +1 -1
  19. package/dist/assets/empty-state.css +1 -1
  20. package/dist/assets/file-uploader.css +1 -1
  21. package/dist/assets/filter-bar.css +1 -1
  22. package/dist/assets/index.css +1 -1
  23. package/dist/assets/input-field-password.css +1 -1
  24. package/dist/assets/inspector.css +1 -1
  25. package/dist/assets/modal-fullscreen.css +1 -1
  26. package/dist/assets/navigation-menu-group.css +1 -1
  27. package/dist/assets/pagination.css +1 -1
  28. package/dist/assets/radio-input.css +1 -1
  29. package/dist/assets/secondary-nav.css +1 -1
  30. package/dist/assets/selection-card-group.css +1 -1
  31. package/dist/assets/sidepanel.css +1 -1
  32. package/dist/assets/table-of-contents.css +1 -1
  33. package/dist/assets/typography.css +1 -1
  34. package/dist/avatar.js +1 -1
  35. package/dist/button.js +3 -3
  36. package/dist/card.js +1 -1
  37. package/dist/checkbox.js +2 -2
  38. package/dist/chip.js +1 -1
  39. package/dist/chunks/{accordion-item.C0va5Mbv.js → accordion-item.CrVVFIHa.js} +16 -49
  40. package/dist/chunks/{accordion-item.C0va5Mbv.js.map → accordion-item.CrVVFIHa.js.map} +1 -1
  41. package/dist/chunks/{action-bar.-kzjjAuX.js → action-bar.BC1fWyHX.js} +18 -150
  42. package/dist/chunks/{action-bar.-kzjjAuX.js.map → action-bar.BC1fWyHX.js.map} +1 -1
  43. package/dist/chunks/{ai-button.ChLXOu7p.js → ai-button.CP6Bu7PB.js} +3 -3
  44. package/dist/chunks/{ai-button.ChLXOu7p.js.map → ai-button.CP6Bu7PB.js.map} +1 -1
  45. package/dist/chunks/{ai-tag.DhBjifex.js → ai-tag.wYWc7yOx.js} +16 -49
  46. package/dist/chunks/{ai-tag.DhBjifex.js.map → ai-tag.wYWc7yOx.js.map} +1 -1
  47. package/dist/chunks/{alert.CDP-LTh5.js → alert.Dj57zB88.js} +15 -81
  48. package/dist/chunks/{alert.CDP-LTh5.js.map → alert.Dj57zB88.js.map} +1 -1
  49. package/dist/chunks/anchor-scroller.Bhgy748g.js +120 -0
  50. package/dist/chunks/anchor-scroller.Bhgy748g.js.map +1 -0
  51. package/dist/chunks/{avatar.rwWPYJnt.js → avatar.D__jLgjI.js} +2 -2
  52. package/dist/chunks/{avatar.rwWPYJnt.js.map → avatar.D__jLgjI.js.map} +1 -1
  53. package/dist/chunks/{base-button.BPRPrO0p.js → base-button.D5C9VIYP.js} +20 -23
  54. package/dist/chunks/{base-button.BPRPrO0p.js.map → base-button.D5C9VIYP.js.map} +1 -1
  55. package/dist/chunks/{base-modal.BagJ8weI.js → base-modal.DlD_Lj4Y.js} +100 -141
  56. package/dist/chunks/{base-modal.BagJ8weI.js.map → base-modal.DlD_Lj4Y.js.map} +1 -1
  57. package/dist/chunks/button-actions-with-menu.CTgggEw2.js +77 -0
  58. package/dist/chunks/{button-actions-with-menu.DNYoFmV4.js.map → button-actions-with-menu.CTgggEw2.js.map} +1 -1
  59. package/dist/chunks/{button-actions.Dpbx0xf3.js → button-actions.CxX7lK7z.js} +362 -442
  60. package/dist/chunks/{button-actions.Dpbx0xf3.js.map → button-actions.CxX7lK7z.js.map} +1 -1
  61. package/dist/chunks/{button.CKS_V3p5.js → button.C4kKejsg.js} +34 -37
  62. package/dist/chunks/{button.CKS_V3p5.js.map → button.C4kKejsg.js.map} +1 -1
  63. package/dist/chunks/calendar.BoFWdxN7.js +1143 -0
  64. package/dist/chunks/{calendar.CvHJ3Geq.js.map → calendar.BoFWdxN7.js.map} +1 -1
  65. package/dist/chunks/{card.DqMECGcj.js → card.B70qRHOi.js} +34 -70
  66. package/dist/chunks/{card.DqMECGcj.js.map → card.B70qRHOi.js.map} +1 -1
  67. package/dist/chunks/{checkbox-group.YnXz1Hl2.js → checkbox-group.D1zzKsdi.js} +6 -6
  68. package/dist/chunks/{checkbox-group.YnXz1Hl2.js.map → checkbox-group.D1zzKsdi.js.map} +1 -1
  69. package/dist/chunks/{checkbox-input.08E9BNeF.js → checkbox-input.kfxcyjfd.js} +28 -31
  70. package/dist/chunks/{checkbox-input.08E9BNeF.js.map → checkbox-input.kfxcyjfd.js.map} +1 -1
  71. package/dist/chunks/{checkbox.BUc2332d.js → checkbox.Ca0mu2lE.js} +58 -91
  72. package/dist/chunks/{checkbox.BUc2332d.js.map → checkbox.Ca0mu2lE.js.map} +1 -1
  73. package/dist/chunks/{chip.DHmRHsL2.js → chip.wgEnbEPw.js} +16 -38
  74. package/dist/chunks/{chip.DHmRHsL2.js.map → chip.wgEnbEPw.js.map} +1 -1
  75. package/dist/chunks/click-outside.B0whuTUU.js +20 -0
  76. package/dist/chunks/{click-outside.BG01Sm0A.js.map → click-outside.B0whuTUU.js.map} +1 -1
  77. package/dist/chunks/{code-snippet.Cha3wHUL.js → code-snippet.BglbQWRB.js} +19 -74
  78. package/dist/chunks/{code-snippet.Cha3wHUL.js.map → code-snippet.BglbQWRB.js.map} +1 -1
  79. package/dist/chunks/{codemirror.D2BAltnu.js → codemirror.Bzus_EPG.js} +15 -15
  80. package/dist/chunks/{codemirror.D2BAltnu.js.map → codemirror.Bzus_EPG.js.map} +1 -1
  81. package/dist/chunks/constructNow.DyOJDyZZ.js +8 -0
  82. package/dist/chunks/{constructNow.CK0ryPil.js.map → constructNow.DyOJDyZZ.js.map} +1 -1
  83. package/dist/chunks/{controls-group.BomXFNvi.js → controls-group.DPLAJjbv.js} +3 -3
  84. package/dist/chunks/{controls-group.BomXFNvi.js.map → controls-group.DPLAJjbv.js.map} +1 -1
  85. package/dist/chunks/{copy.BlyhTDSU.js → copy.CsKQJlen.js} +16 -60
  86. package/dist/chunks/{copy.BlyhTDSU.js.map → copy.CsKQJlen.js.map} +1 -1
  87. package/dist/chunks/{country.DySY9sbA.js → country.D8ncVjcm.js} +5 -5
  88. package/dist/chunks/{country.DySY9sbA.js.map → country.D8ncVjcm.js.map} +1 -1
  89. package/dist/chunks/country.types.BUW49nQx.js +27 -0
  90. package/dist/chunks/country.types.BUW49nQx.js.map +1 -0
  91. package/dist/chunks/currency.POwX-Trj.js +124 -0
  92. package/dist/chunks/{currency.Dvy9Qjjf.js.map → currency.POwX-Trj.js.map} +1 -1
  93. package/dist/chunks/dashboard-section.Bmu65OHg.js +98 -0
  94. package/dist/chunks/{dashboard-section.D2yqhERq.js.map → dashboard-section.Bmu65OHg.js.map} +1 -1
  95. package/dist/chunks/{dashed-underline.ByPcIHNe.js → dashed-underline.CbzCYKrk.js} +11 -12
  96. package/dist/chunks/{dashed-underline.ByPcIHNe.js.map → dashed-underline.CbzCYKrk.js.map} +1 -1
  97. package/dist/chunks/data-grid-template.BvBHJ0sH.js +102 -0
  98. package/dist/chunks/{data-grid-template.Ifn423Ot.js.map → data-grid-template.BvBHJ0sH.js.map} +1 -1
  99. package/dist/chunks/data-grid.DPh8BSnM.js +3266 -0
  100. package/dist/chunks/{data-grid.BDXQ_kKQ.js.map → data-grid.DPh8BSnM.js.map} +1 -1
  101. package/dist/chunks/date-picker.DutUBQbH.js +183 -0
  102. package/dist/chunks/{date-picker.CXZfCxwP.js.map → date-picker.DutUBQbH.js.map} +1 -1
  103. package/dist/chunks/date-range-picker.5bvgs49h.js +924 -0
  104. package/dist/chunks/{date-range-picker.BzVQsYk4.js.map → date-range-picker.5bvgs49h.js.map} +1 -1
  105. package/dist/chunks/date-time-picker.DUWWGlOX.js +127 -0
  106. package/dist/chunks/{date-time-picker.DaLATfJp.js.map → date-time-picker.DUWWGlOX.js.map} +1 -1
  107. package/dist/chunks/{date.C1HnIyOv.js → date.CPo8t1n9.js} +25 -25
  108. package/dist/chunks/{date.C1HnIyOv.js.map → date.CPo8t1n9.js.map} +1 -1
  109. package/dist/chunks/{de.pvjpUJ1o.js → de.ctR_lBqr.js} +18 -18
  110. package/dist/chunks/{de.pvjpUJ1o.js.map → de.ctR_lBqr.js.map} +1 -1
  111. package/dist/chunks/{dialog-page.B_LwIWgK.js → dialog-page.CPorblJc.js} +16 -38
  112. package/dist/chunks/{dialog-page.B_LwIWgK.js.map → dialog-page.CPorblJc.js.map} +1 -1
  113. package/dist/chunks/differenceInMonths.yz4Dfe-b.js +44 -0
  114. package/dist/chunks/{differenceInMonths.CpwVtHZX.js.map → differenceInMonths.yz4Dfe-b.js.map} +1 -1
  115. package/dist/chunks/{directive.BBWhsNtO.js → directive.D1-d-C2K.js} +2 -2
  116. package/dist/chunks/{directive.BBWhsNtO.js.map → directive.D1-d-C2K.js.map} +1 -1
  117. package/dist/chunks/{draggable-handle.kBP4prVO.js → draggable-handle.g2BFN3G1.js} +18 -114
  118. package/dist/chunks/{draggable-handle.kBP4prVO.js.map → draggable-handle.g2BFN3G1.js.map} +1 -1
  119. package/dist/chunks/draggable.iIsQLiOa.js +168 -0
  120. package/dist/chunks/{draggable.rTa1jcHI.js.map → draggable.iIsQLiOa.js.map} +1 -1
  121. package/dist/chunks/{drawer.DVJxDGw3.js → drawer.CnxX1zZ6.js} +14 -36
  122. package/dist/chunks/{drawer.DVJxDGw3.js.map → drawer.CnxX1zZ6.js.map} +1 -1
  123. package/dist/chunks/{dropdown-tag.CaLA2NLd.js → dropdown-tag.BFnfCah8.js} +77 -81
  124. package/dist/chunks/{dropdown-tag.CaLA2NLd.js.map → dropdown-tag.BFnfCah8.js.map} +1 -1
  125. package/dist/chunks/{dropdown.DIqgVVXB.js → dropdown.Ce2P9MZ-.js} +1131 -1466
  126. package/dist/chunks/{dropdown.DIqgVVXB.js.map → dropdown.Ce2P9MZ-.js.map} +1 -1
  127. package/dist/chunks/empty-state.fziM-yAC.js +102 -0
  128. package/dist/chunks/empty-state.fziM-yAC.js.map +1 -0
  129. package/dist/chunks/{en-GB.-Q7Oq-nY.js → en-GB.BsQNm5GT.js} +2 -2
  130. package/dist/chunks/{en-GB.-Q7Oq-nY.js.map → en-GB.BsQNm5GT.js.map} +1 -1
  131. package/dist/chunks/{en-US.BK5uiAND.js → en-US.BR6y7foR.js} +30 -30
  132. package/dist/chunks/{en-US.BK5uiAND.js.map → en-US.BR6y7foR.js.map} +1 -1
  133. package/dist/chunks/{error-message.Hqp_VvD3.js → error-message.BEHBfjmn.js} +14 -36
  134. package/dist/chunks/{error-message.Hqp_VvD3.js.map → error-message.BEHBfjmn.js.map} +1 -1
  135. package/dist/chunks/{es.2H4LvTyV.js → es.DxqH-QhP.js} +14 -14
  136. package/dist/chunks/{es.2H4LvTyV.js.map → es.DxqH-QhP.js.map} +1 -1
  137. package/dist/chunks/{field-label.DjJ7wdFi.js → field-label.CgdTst2l.js} +15 -37
  138. package/dist/chunks/{field-label.DjJ7wdFi.js.map → field-label.CgdTst2l.js.map} +1 -1
  139. package/dist/chunks/{file-uploader.2rIfQ2jb.js → file-uploader.BG89SLkG.js} +317 -630
  140. package/dist/chunks/{file-uploader.2rIfQ2jb.js.map → file-uploader.BG89SLkG.js.map} +1 -1
  141. package/dist/chunks/filter-bar.BMO8wTzb.js +3087 -0
  142. package/dist/chunks/{filter-bar.qlViDZPY.js.map → filter-bar.BMO8wTzb.js.map} +1 -1
  143. package/dist/chunks/fixed-scroller.oObE3f7m.js +117 -0
  144. package/dist/chunks/{fixed-scroller.04EUUgD_.js.map → fixed-scroller.oObE3f7m.js.map} +1 -1
  145. package/dist/chunks/{focus-trap.oRKjDFzf.js → focus-trap.l-wwtCHi.js} +69 -85
  146. package/dist/chunks/{focus-trap.oRKjDFzf.js.map → focus-trap.l-wwtCHi.js.map} +1 -1
  147. package/dist/chunks/{footer-actions.DXyJtVip.js → footer-actions.Dn9KYoqB.js} +4 -4
  148. package/dist/chunks/{footer-actions.DXyJtVip.js.map → footer-actions.Dn9KYoqB.js.map} +1 -1
  149. package/dist/chunks/{form-layout-group.DnjoLZZM.js → form-layout-group.C_0b8u-g.js} +2 -2
  150. package/dist/chunks/{form-layout-group.DnjoLZZM.js.map → form-layout-group.C_0b8u-g.js.map} +1 -1
  151. package/dist/chunks/{form-layout-title.Bt5bP9r3.js → form-layout-title.YhZCVtoc.js} +15 -37
  152. package/dist/chunks/{form-layout-title.Bt5bP9r3.js.map → form-layout-title.YhZCVtoc.js.map} +1 -1
  153. package/dist/chunks/{fr.Cu0IIfBP.js → fr.DJtn8ron.js} +16 -16
  154. package/dist/chunks/{fr.Cu0IIfBP.js.map → fr.DJtn8ron.js.map} +1 -1
  155. package/dist/chunks/{generate-uid.NJ8tVoha.js → generate-uid.DBWe4g6T.js} +15 -16
  156. package/dist/chunks/{generate-uid.NJ8tVoha.js.map → generate-uid.DBWe4g6T.js.map} +1 -1
  157. package/dist/chunks/get-slot-text.DM_NdrUC.js +6 -0
  158. package/dist/chunks/{get-slot-text.Bjb9dTSV.js.map → get-slot-text.DM_NdrUC.js.map} +1 -1
  159. package/dist/chunks/{grid-layout.1aIiz2N_.js → grid-layout.BeCrjPgT.js} +16 -17
  160. package/dist/chunks/{grid-layout.1aIiz2N_.js.map → grid-layout.BeCrjPgT.js.map} +1 -1
  161. package/dist/chunks/header-meta.mDdMmFUA.js +206 -0
  162. package/dist/chunks/{header-meta.CCQVPDU8.js.map → header-meta.mDdMmFUA.js.map} +1 -1
  163. package/dist/chunks/{header-with-views.CEU6WrV9.js → header-with-views.Dp6SyiPu.js} +791 -1270
  164. package/dist/chunks/{header-with-views.CEU6WrV9.js.map → header-with-views.Dp6SyiPu.js.map} +1 -1
  165. package/dist/chunks/{header.BoNOTATn.js → header.DUAxdw_d.js} +4 -4
  166. package/dist/chunks/{header.BoNOTATn.js.map → header.DUAxdw_d.js.map} +1 -1
  167. package/dist/chunks/{index.C7m7gI5w.js → index.CL3TXc0a.js} +154 -160
  168. package/dist/chunks/{index.C7m7gI5w.js.map → index.CL3TXc0a.js.map} +1 -1
  169. package/dist/chunks/{index.B6WW_F-J.js → index.CPOlyau9.js} +5 -5
  170. package/dist/chunks/index.CPOlyau9.js.map +1 -0
  171. package/dist/chunks/{info-icon.BnLYUTzI.js → info-icon.BRnbXunj.js} +3 -3
  172. package/dist/chunks/{info-icon.BnLYUTzI.js.map → info-icon.BRnbXunj.js.map} +1 -1
  173. package/dist/chunks/input-field-password.C9_o6Kg2.js +230 -0
  174. package/dist/chunks/input-field-password.C9_o6Kg2.js.map +1 -0
  175. package/dist/chunks/{input-field-phone-number.CPjH0EVF.js → input-field-phone-number.zRjd8HPi.js} +724 -756
  176. package/dist/chunks/{input-field-phone-number.CPjH0EVF.js.map → input-field-phone-number.zRjd8HPi.js.map} +1 -1
  177. package/dist/chunks/{input-field.BEV5lhwO.js → input-field.BTt1ORWU.js} +22 -58
  178. package/dist/chunks/{input-field.BEV5lhwO.js.map → input-field.BTt1ORWU.js.map} +1 -1
  179. package/dist/chunks/{input-time.En4O4DRD.js → input-time.BfJIDgaH.js} +15 -48
  180. package/dist/chunks/{input-time.En4O4DRD.js.map → input-time.BfJIDgaH.js.map} +1 -1
  181. package/dist/chunks/{inspector-page.OKPf0I4k.js → inspector-page.i8bVjo9U.js} +4 -4
  182. package/dist/chunks/{inspector-page.OKPf0I4k.js.map → inspector-page.i8bVjo9U.js.map} +1 -1
  183. package/dist/chunks/{inspector.DoQPHzCc.js → inspector.Aet0jTC2.js} +39 -106
  184. package/dist/chunks/{inspector.DoQPHzCc.js.map → inspector.Aet0jTC2.js.map} +1 -1
  185. package/dist/chunks/isSameWeek.CieN9XgL.js +14 -0
  186. package/dist/chunks/{isSameWeek.TrpUOIn5.js.map → isSameWeek.CieN9XgL.js.map} +1 -1
  187. package/dist/chunks/{it.B65snrJA.js → it.keS7oN5l.js} +8 -8
  188. package/dist/chunks/{it.B65snrJA.js.map → it.keS7oN5l.js.map} +1 -1
  189. package/dist/chunks/{ja.xGVfFSzL.js → ja.cLwacUE6.js} +27 -27
  190. package/dist/chunks/{ja.xGVfFSzL.js.map → ja.cLwacUE6.js.map} +1 -1
  191. package/dist/chunks/{layout-row.CPFK9Bg7.js → layout-row.HslYnPgn.js} +34 -35
  192. package/dist/chunks/{layout-row.CPFK9Bg7.js.map → layout-row.HslYnPgn.js.map} +1 -1
  193. package/dist/chunks/{link.Cejg8jB6.js → link.CscSbaXa.js} +15 -37
  194. package/dist/chunks/{link.Cejg8jB6.js.map → link.CscSbaXa.js.map} +1 -1
  195. package/dist/chunks/list-item.Cngxa9qN.js +166 -0
  196. package/dist/chunks/{list-item.BiJMHR7b.js.map → list-item.Cngxa9qN.js.map} +1 -1
  197. package/dist/chunks/{listbox-option-tag.DnvECZQC.js → listbox-option-tag.BaoiH-Ku.js} +3 -3
  198. package/dist/chunks/{listbox-option-tag.DnvECZQC.js.map → listbox-option-tag.BaoiH-Ku.js.map} +1 -1
  199. package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js → modal-fullscreen.Cg1Q6ERf.js} +64 -93
  200. package/dist/chunks/{modal-fullscreen.Bn8MzG6Z.js.map → modal-fullscreen.Cg1Q6ERf.js.map} +1 -1
  201. package/dist/chunks/{modal.CClQItuJ.js → modal.u-t1CvBr.js} +81 -105
  202. package/dist/chunks/{modal.CClQItuJ.js.map → modal.u-t1CvBr.js.map} +1 -1
  203. package/dist/chunks/{navigation-menu-group.p1-x06nS.js → navigation-menu-group.gNMP4tW4.js} +80 -129
  204. package/dist/chunks/{navigation-menu-group.p1-x06nS.js.map → navigation-menu-group.gNMP4tW4.js.map} +1 -1
  205. package/dist/chunks/{on-click-outside.Cy1eFULD.js → on-click-outside.BgIzQ2G1.js} +32 -33
  206. package/dist/chunks/{on-click-outside.Cy1eFULD.js.map → on-click-outside.BgIzQ2G1.js.map} +1 -1
  207. package/dist/chunks/{pagination.CZVdaeqE.js → pagination.D81XgMQ7.js} +73 -192
  208. package/dist/chunks/pagination.D81XgMQ7.js.map +1 -0
  209. package/dist/chunks/{payment-method.B3CkgsAY.js → payment-method.Clm5dEYh.js} +2 -2
  210. package/dist/chunks/{payment-method.B3CkgsAY.js.map → payment-method.Clm5dEYh.js.map} +1 -1
  211. package/dist/chunks/popover.types.H5Y0rC1r.js +6 -0
  212. package/dist/chunks/{popover.types.BfnJIpII.js.map → popover.types.H5Y0rC1r.js.map} +1 -1
  213. package/dist/chunks/{popper-container.Cb9wuFId.js → popper-container.D08eTt4B.js} +245 -252
  214. package/dist/chunks/{popper-container.Cb9wuFId.js.map → popper-container.D08eTt4B.js.map} +1 -1
  215. package/dist/chunks/{promo-banner.DZ0gerRx.js → promo-banner.BX47zMKh.js} +17 -39
  216. package/dist/chunks/{promo-banner.DZ0gerRx.js.map → promo-banner.BX47zMKh.js.map} +1 -1
  217. package/dist/chunks/{pt-BR.D9FuAQZm.js → pt-BR.ChPOra5s.js} +14 -14
  218. package/dist/chunks/{pt-BR.D9FuAQZm.js.map → pt-BR.ChPOra5s.js.map} +1 -1
  219. package/dist/chunks/{radio-group.DUW2dya4.js → radio-group.Dtx5hOkQ.js} +23 -23
  220. package/dist/chunks/{radio-group.DUW2dya4.js.map → radio-group.Dtx5hOkQ.js.map} +1 -1
  221. package/dist/chunks/{rich-text-editor.CuCPLzUh.js → rich-text-editor.CmVsFJjh.js} +1364 -1416
  222. package/dist/chunks/{rich-text-editor.CuCPLzUh.js.map → rich-text-editor.CmVsFJjh.js.map} +1 -1
  223. package/dist/chunks/scroll-to-section.DhW8SFy0.js +101 -0
  224. package/dist/chunks/scroll-to-section.DhW8SFy0.js.map +1 -0
  225. package/dist/chunks/{search-bar.8iDkgmjw.js → search-bar.CRfYCmkl.js} +15 -48
  226. package/dist/chunks/{search-bar.8iDkgmjw.js.map → search-bar.CRfYCmkl.js.map} +1 -1
  227. package/dist/chunks/secondary-nav.B1Tj7MAA.js +192 -0
  228. package/dist/chunks/{secondary-nav.CmvSHxvS.js.map → secondary-nav.B1Tj7MAA.js.map} +1 -1
  229. package/dist/chunks/{segmented-control.Bkp2Y95s.js → segmented-control.CBc-wx0m.js} +44 -48
  230. package/dist/chunks/{segmented-control.Bkp2Y95s.js.map → segmented-control.CBc-wx0m.js.map} +1 -1
  231. package/dist/chunks/{selection-card-group.EGigQJOW.js → selection-card-group.BaK3Rt4K.js} +91 -96
  232. package/dist/chunks/{selection-card-group.EGigQJOW.js.map → selection-card-group.BaK3Rt4K.js.map} +1 -1
  233. package/dist/chunks/set-time-in-date.BVfkl8K8.js +27 -0
  234. package/dist/chunks/{set-time-in-date.CU7HeZLY.js.map → set-time-in-date.BVfkl8K8.js.map} +1 -1
  235. package/dist/chunks/{sidepanel.yB7YuzVt.js → sidepanel.DeIREn9l.js} +55 -78
  236. package/dist/chunks/{sidepanel.yB7YuzVt.js.map → sidepanel.DeIREn9l.js.map} +1 -1
  237. package/dist/chunks/startOfWeek.muMEhS7U.js +9 -0
  238. package/dist/chunks/{startOfWeek.Br5KM4z_.js.map → startOfWeek.muMEhS7U.js.map} +1 -1
  239. package/dist/chunks/{status.CKb07vxI.js → status.DJ1Dfh5s.js} +2 -2
  240. package/dist/chunks/{status.CKb07vxI.js.map → status.DJ1Dfh5s.js.map} +1 -1
  241. package/dist/chunks/step.DfI11Din.js +221 -0
  242. package/dist/chunks/{step.CIfxl8Wm.js.map → step.DfI11Din.js.map} +1 -1
  243. package/dist/chunks/{structured-list-item.Cnv4Pw5n.js → structured-list-item._7YG2L3a.js} +18 -40
  244. package/dist/chunks/{structured-list-item.Cnv4Pw5n.js.map → structured-list-item._7YG2L3a.js.map} +1 -1
  245. package/dist/chunks/{summary-grid.types.BcIlkfVO.js → summary-grid.types.B_gUEQ0c.js} +45 -50
  246. package/dist/chunks/{summary-grid.types.BcIlkfVO.js.map → summary-grid.types.B_gUEQ0c.js.map} +1 -1
  247. package/dist/chunks/tab.DFk4K9cq.js +229 -0
  248. package/dist/chunks/{tab.N0xGWsfO.js.map → tab.DFk4K9cq.js.map} +1 -1
  249. package/dist/chunks/table-of-contents.CoEnQ9g7.js +104 -0
  250. package/dist/chunks/{table-of-contents.Cf-IrdZl.js.map → table-of-contents.CoEnQ9g7.js.map} +1 -1
  251. package/dist/chunks/{tag.BAyLm485.js → tag.BC7FFENr.js} +4 -4
  252. package/dist/chunks/{tag.BAyLm485.js.map → tag.BC7FFENr.js.map} +1 -1
  253. package/dist/chunks/textarea.Z-VYFZVq.js +176 -0
  254. package/dist/chunks/{textarea.BDRR1zE0.js.map → textarea.Z-VYFZVq.js.map} +1 -1
  255. package/dist/chunks/{timeline-item.QEEIwYMy.js → timeline-item.BGHi_lOY.js} +114 -193
  256. package/dist/chunks/{timeline-item.QEEIwYMy.js.map → timeline-item.BGHi_lOY.js.map} +1 -1
  257. package/dist/chunks/{toast.XPG0vaQB.js → toast.D-jat1Xw.js} +64 -86
  258. package/dist/chunks/{toast.XPG0vaQB.js.map → toast.D-jat1Xw.js.map} +1 -1
  259. package/dist/chunks/{toggle.Ca-MM3dt.js → toggle.BqHWIhqD.js} +4 -4
  260. package/dist/chunks/{toggle.Ca-MM3dt.js.map → toggle.BqHWIhqD.js.map} +1 -1
  261. package/dist/chunks/{tooltip.7ct8WxCl.js → tooltip.D_XsoD_u.js} +68 -70
  262. package/dist/chunks/{tooltip.7ct8WxCl.js.map → tooltip.D_XsoD_u.js.map} +1 -1
  263. package/dist/chunks/truncate.DmCXQmeb.js +8 -0
  264. package/dist/chunks/{truncate.BfIl_-71.js.map → truncate.DmCXQmeb.js.map} +1 -1
  265. package/dist/chunks/{tutorial.bROv3HSx.js → tutorial.BtxKW4ac.js} +80 -173
  266. package/dist/chunks/{tutorial.bROv3HSx.js.map → tutorial.BtxKW4ac.js.map} +1 -1
  267. package/dist/chunks/typography.D1OZJbEa.js +90 -0
  268. package/dist/chunks/typography.D1OZJbEa.js.map +1 -0
  269. package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js → use-bento-delayed-hover.D6QjSugc.js} +2 -2
  270. package/dist/chunks/{use-bento-delayed-hover.Bz_8EabW.js.map → use-bento-delayed-hover.D6QjSugc.js.map} +1 -1
  271. package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js → use-bento-toast-controller.A5xraVqa.js} +14 -15
  272. package/dist/chunks/{use-bento-toast-controller.CB6Qbf3R.js.map → use-bento-toast-controller.A5xraVqa.js.map} +1 -1
  273. package/dist/chunks/use-country-items.B1KhLbqM.js +30 -0
  274. package/dist/chunks/{use-country-items.CmCRY7QX.js.map → use-country-items.B1KhLbqM.js.map} +1 -1
  275. package/dist/chunks/use-country-phon-code.Cv5YgCOo.js +291 -0
  276. package/dist/chunks/use-country-phon-code.Cv5YgCOo.js.map +1 -0
  277. package/dist/chunks/use-date-input-formatter.DXwvH7B0.js +1629 -0
  278. package/dist/chunks/{use-date-input-formatter.DfQk8_Dw.js.map → use-date-input-formatter.DXwvH7B0.js.map} +1 -1
  279. package/dist/chunks/use-expandable-content-height.Bdd9hQwq.js +34 -0
  280. package/dist/chunks/{use-expandable-content-height.2WJLCL-R.js.map → use-expandable-content-height.Bdd9hQwq.js.map} +1 -1
  281. package/dist/chunks/utils.DWmc2mUI.js +19 -0
  282. package/dist/chunks/{utils.BzUwtTXc.js.map → utils.DWmc2mUI.js.map} +1 -1
  283. package/dist/chunks/{zh-CN.Be4pa3-g.js → zh-CN.ZG6obniO.js} +28 -28
  284. package/dist/chunks/{zh-CN.Be4pa3-g.js.map → zh-CN.ZG6obniO.js.map} +1 -1
  285. package/dist/click-outside.js +1 -1
  286. package/dist/code-snippet.js +1 -1
  287. package/dist/country.js +3 -3
  288. package/dist/currency.js +1 -1
  289. package/dist/dashboard-template.js +1 -1
  290. package/dist/dashed-underline.js +1 -1
  291. package/dist/data-grid-template.js +1 -1
  292. package/dist/data-grid.js +1 -1
  293. package/dist/date-picker.js +2 -2
  294. package/dist/date-range-picker.js +2 -2
  295. package/dist/date-time-picker.js +1 -1
  296. package/dist/date.js +1 -1
  297. package/dist/draggable.js +2 -2
  298. package/dist/drawer.js +1 -1
  299. package/dist/dropdown.js +2 -2
  300. package/dist/empty-state.js +1 -1
  301. package/dist/file-uploader.js +1 -1
  302. package/dist/filter-bar.js +1 -1
  303. package/dist/focus-trap.js +1 -1
  304. package/dist/form-layout.js +2 -2
  305. package/dist/header-with-views.js +1 -1
  306. package/dist/header.js +1 -1
  307. package/dist/index.js +144 -149
  308. package/dist/index.js.map +1 -1
  309. package/dist/info-icon.js +1 -1
  310. package/dist/input-field-password.js +1 -1
  311. package/dist/input-field-phone-number.js +1 -1
  312. package/dist/input-field.js +1 -1
  313. package/dist/input-time.js +1 -1
  314. package/dist/inspector.js +2 -2
  315. package/dist/internal.js +14 -14
  316. package/dist/layout.js +1 -1
  317. package/dist/link.js +1 -1
  318. package/dist/list.js +1 -1
  319. package/dist/menu.js +1 -1
  320. package/dist/modal-fullscreen.js +1 -1
  321. package/dist/modal.js +2 -2
  322. package/dist/navigation-menu.js +1 -1
  323. package/dist/pagination.js +1 -1
  324. package/dist/payment-method.js +1 -1
  325. package/dist/popover.js +2 -2
  326. package/dist/popper-container.js +1 -1
  327. package/dist/promo-banner.js +1 -1
  328. package/dist/radio-group.js +1 -1
  329. package/dist/rich-text-editor.js +1 -1
  330. package/dist/search-bar.js +2 -2
  331. package/dist/secondary-nav.js +1 -1
  332. package/dist/segmented-control.js +1 -1
  333. package/dist/selection-card.js +1 -1
  334. package/dist/sidepanel.js +1 -1
  335. package/dist/status.js +1 -1
  336. package/dist/stepper.js +1 -1
  337. package/dist/structured-list.js +1 -1
  338. package/dist/summary-grid.js +1 -1
  339. package/dist/table-of-contents.js +1 -1
  340. package/dist/tabs.js +1 -1
  341. package/dist/tag.js +1 -1
  342. package/dist/textarea.js +1 -1
  343. package/dist/timeline.js +1 -1
  344. package/dist/toast.js +1 -1
  345. package/dist/toggle.js +1 -1
  346. package/dist/tutorial.js +1 -1
  347. package/dist/typography.js +1 -1
  348. package/dist/use-form-v4.js +331 -341
  349. package/dist/use-form-v4.js.map +1 -1
  350. package/dist/web-types.json +32 -2
  351. package/package.json +11 -11
  352. package/dist/chunks/anchor-scroller.DgC74yeM.js +0 -141
  353. package/dist/chunks/anchor-scroller.DgC74yeM.js.map +0 -1
  354. package/dist/chunks/button-actions-with-menu.DNYoFmV4.js +0 -85
  355. package/dist/chunks/calendar.CvHJ3Geq.js +0 -1247
  356. package/dist/chunks/click-outside.BG01Sm0A.js +0 -23
  357. package/dist/chunks/constructNow.CK0ryPil.js +0 -8
  358. package/dist/chunks/country.types.8GCHsdGN.js +0 -2789
  359. package/dist/chunks/country.types.8GCHsdGN.js.map +0 -1
  360. package/dist/chunks/currency.Dvy9Qjjf.js +0 -126
  361. package/dist/chunks/dashboard-section.D2yqhERq.js +0 -102
  362. package/dist/chunks/data-grid-template.Ifn423Ot.js +0 -111
  363. package/dist/chunks/data-grid.BDXQ_kKQ.js +0 -4121
  364. package/dist/chunks/date-picker.CXZfCxwP.js +0 -252
  365. package/dist/chunks/date-range-picker.BzVQsYk4.js +0 -1295
  366. package/dist/chunks/date-time-picker.DaLATfJp.js +0 -202
  367. package/dist/chunks/differenceInMonths.CpwVtHZX.js +0 -44
  368. package/dist/chunks/draggable.rTa1jcHI.js +0 -196
  369. package/dist/chunks/empty-state.DSVU1vU8.js +0 -106
  370. package/dist/chunks/empty-state.DSVU1vU8.js.map +0 -1
  371. package/dist/chunks/filter-bar.qlViDZPY.js +0 -3754
  372. package/dist/chunks/fixed-scroller.04EUUgD_.js +0 -152
  373. package/dist/chunks/get-slot-text.Bjb9dTSV.js +0 -12
  374. package/dist/chunks/header-meta.CCQVPDU8.js +0 -250
  375. package/dist/chunks/index.B6WW_F-J.js.map +0 -1
  376. package/dist/chunks/input-field-password.Bri9q5EV.js +0 -395
  377. package/dist/chunks/input-field-password.Bri9q5EV.js.map +0 -1
  378. package/dist/chunks/isSameWeek.TrpUOIn5.js +0 -14
  379. package/dist/chunks/list-item.BiJMHR7b.js +0 -226
  380. package/dist/chunks/pagination.CZVdaeqE.js.map +0 -1
  381. package/dist/chunks/popover.types.BfnJIpII.js +0 -6
  382. package/dist/chunks/scroll-to-section.CC5g-HBX.js +0 -111
  383. package/dist/chunks/scroll-to-section.CC5g-HBX.js.map +0 -1
  384. package/dist/chunks/secondary-nav.CmvSHxvS.js +0 -266
  385. package/dist/chunks/set-time-in-date.CU7HeZLY.js +0 -27
  386. package/dist/chunks/startOfWeek.Br5KM4z_.js +0 -10
  387. package/dist/chunks/step.CIfxl8Wm.js +0 -253
  388. package/dist/chunks/tab.N0xGWsfO.js +0 -259
  389. package/dist/chunks/table-of-contents.Cf-IrdZl.js +0 -129
  390. package/dist/chunks/textarea.BDRR1zE0.js +0 -224
  391. package/dist/chunks/truncate.BfIl_-71.js +0 -8
  392. package/dist/chunks/typography.C8lPlsbD.js +0 -87
  393. package/dist/chunks/typography.C8lPlsbD.js.map +0 -1
  394. package/dist/chunks/use-country-items.CmCRY7QX.js +0 -30
  395. package/dist/chunks/use-country-phon-code.BWkb546s.js +0 -6641
  396. package/dist/chunks/use-country-phon-code.BWkb546s.js.map +0 -1
  397. package/dist/chunks/use-date-input-formatter.DfQk8_Dw.js +0 -1732
  398. package/dist/chunks/use-expandable-content-height.2WJLCL-R.js +0 -35
  399. package/dist/chunks/utils.BzUwtTXc.js +0 -21
@@ -0,0 +1,924 @@
1
+ import { defineComponent as Ie, computed as c, reactive as ye, useSlots as ya, ref as B, onMounted as Ke, toRaw as Ae, watch as ge, useAttrs as ha, toRef as Ye } from "vue";
2
+ import { d as Ma } from "./index.CL3TXc0a.js";
3
+ import { B as Ta } from "./divider.DX5gwN7p.js";
4
+ import { h as Ra, B as Ya } from "./button-actions.CxX7lK7z.js";
5
+ import { B as Xe, d as Ce } from "./typography.D1OZJbEa.js";
6
+ import { B as ba } from "./alert.Dj57zB88.js";
7
+ import { B as ka, g as Ne, D as Aa } from "./dropdown.Ce2P9MZ-.js";
8
+ import { B as Ia } from "./segmented-control.CBc-wx0m.js";
9
+ import { u as _e } from "./index.CPOlyau9.js";
10
+ import { u as _a } from "./use-has-slot.C9lQZ6nz.js";
11
+ import { u as Se, a as Sa } from "./use-date-input-formatter.DXwvH7B0.js";
12
+ import { u as Ea } from "./use-touch-device.DTqFAbXh.js";
13
+ import { j as oe, k as C, s as I, l as Fa, m as Ve, n as Pa, f as Le, o as wa, q as xa, r as Oa, t as ze, u as qa, b as N, v as Ba, h as Ca, i as Na, e as F, w as Qe, x as We, g as Va } from "./calendar.BoFWdxN7.js";
14
+ import { e as V, a as je } from "./differenceInMonths.yz4Dfe-b.js";
15
+ import { s as Ge } from "./startOfWeek.muMEhS7U.js";
16
+ import { t as he, n as La, c as za } from "./en-US.BR6y7foR.js";
17
+ import { c as Qa } from "./constructNow.DyOJDyZZ.js";
18
+ import { s as fe, a as Ue } from "./set-time-in-date.BVfkl8K8.js";
19
+ import { B as Wa, i as $e } from "./input-time.BfJIDgaH.js";
20
+ import { B as ja } from "./input-field.BTt1ORWU.js";
21
+ import { B as Ga } from "./form-layout-group.C_0b8u-g.js";
22
+ import { n as Ee } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
23
+ import { g as se } from "./generate-uid.DBWe4g6T.js";
24
+ import { u as Ua } from "./use-form-layout-loading.CWbjZiwP.js";
25
+ import "./index.Cl4_42j5.js";
26
+ import { u as $a } from "./form-field.D_2g7vaP.js";
27
+ import { B as Ja } from "./directive.D1-d-C2K.js";
28
+ import { F as Ha } from "./field-label.CgdTst2l.js";
29
+ import { E as Ka } from "./error-message.BEHBfjmn.js";
30
+ import { B as Xa } from "./button-actions.types.BptAXjD8.js";
31
+ import "../assets/date-range-picker.css";
32
+ function Je(l, t) {
33
+ return he(l, t?.in).getFullYear();
34
+ }
35
+ function be(l, t) {
36
+ return +he(l) == +he(t);
37
+ }
38
+ function Za(l, t, e) {
39
+ const [a, i] = La(
40
+ e?.in,
41
+ l,
42
+ t
43
+ );
44
+ return +oe(a) == +oe(i);
45
+ }
46
+ function He(l, t) {
47
+ const e = he(l, t?.in);
48
+ return e.setMilliseconds(0), e;
49
+ }
50
+ function ke(l, t) {
51
+ return +He(l) == +He(t);
52
+ }
53
+ function et(l, t) {
54
+ return C(
55
+ za(l, l),
56
+ Qa(l)
57
+ );
58
+ }
59
+ const at = {
60
+ name: "date-time-input"
61
+ }, tt = /* @__PURE__ */ Ie({
62
+ ...at,
63
+ props: {
64
+ dateModelValue: { default: "" },
65
+ dateProps: { default: () => ({}) },
66
+ errorMessage: { default: null },
67
+ showTimeInput: { type: Boolean, default: !1 },
68
+ timeModelValue: { default: "" },
69
+ timeProps: { default: () => ({}) }
70
+ },
71
+ emits: ["update:date-model-value", "date:keydown", "update:time-model-value", "time:error", "time:valid"],
72
+ setup(l) {
73
+ const t = l, e = c(() => ({
74
+ errorMessage: t.errorMessage,
75
+ ...t.dateProps
76
+ })), a = c(() => ({
77
+ errorMessage: t.errorMessage,
78
+ ...t.timeProps
79
+ }));
80
+ return { __sfc: !0, props: t, resolvedDateProps: e, resolvedTimeProps: a, BentoFormLayoutGroup: Ga, BentoInputField: ja, BentoInputTime: Wa };
81
+ }
82
+ });
83
+ var nt = function() {
84
+ var t = this, e = t._self._c, a = t._self._setupProxy;
85
+ return e(a.BentoFormLayoutGroup, { attrs: { layout: t.showTimeInput ? "50-50" : "100", "error-message": t.errorMessage } }, [e(a.BentoInputField, t._b({ attrs: { "model-value": t.dateModelValue }, on: { "update:model-value": function(i) {
86
+ return t.$emit("update:date-model-value", i);
87
+ }, keydown: function(i) {
88
+ return t.$emit("date:keydown", i);
89
+ } } }, "bento-input-field", a.resolvedDateProps, !1)), t.showTimeInput ? e(a.BentoInputTime, t._b({ attrs: { "model-value": t.timeModelValue }, on: { "update:model-value": function(i) {
90
+ return t.$emit("update:time-model-value", i);
91
+ }, "input:error": function(i) {
92
+ return t.$emit("time:error");
93
+ }, "input:valid": function(i) {
94
+ return t.$emit("time:valid");
95
+ } } }, "bento-input-time", a.resolvedTimeProps, !1)) : t._e()], 1);
96
+ }, rt = [], st = /* @__PURE__ */ Ee(
97
+ tt,
98
+ nt,
99
+ rt,
100
+ !1,
101
+ null,
102
+ null
103
+ );
104
+ const ot = st.exports, lt = ({
105
+ firstDayOfWeek: l,
106
+ min: t,
107
+ max: e
108
+ }) => ({ getGranularCalendarLimits: (i) => {
109
+ if (!t && !e)
110
+ return { min: null, max: null };
111
+ let m = t ? I(t) : null, p = e ? V(e) : null;
112
+ if (i?.type === "weekly") {
113
+ if (i.earliest)
114
+ m = I(i.earliest);
115
+ else if (m) {
116
+ const h = Ge(m, { weekStartsOn: l });
117
+ C(m, h) || (m = I(Fa(Ve(m, { weekStartsOn: l }), 1)));
118
+ }
119
+ if (i.latest)
120
+ p = V(i.latest);
121
+ else if (p) {
122
+ const h = Ve(p, { weekStartsOn: l });
123
+ C(p, h) || (p = V(Pa(Ge(p, { weekStartsOn: l }), 1)));
124
+ }
125
+ }
126
+ if (i?.type === "monthly") {
127
+ if (i.earliest)
128
+ m = I(i.earliest);
129
+ else if (m) {
130
+ const h = Le(m);
131
+ C(m, h) || (m = Le(wa(m, 1)));
132
+ }
133
+ if (i.latest)
134
+ p = V(i.latest);
135
+ else if (p) {
136
+ const h = je(p);
137
+ C(p, h) || (p = je(xa(p, 1)));
138
+ }
139
+ }
140
+ if (i?.type === "quarterly") {
141
+ if (i.earliest)
142
+ m = oe(i.earliest);
143
+ else if (m) {
144
+ const h = oe(m);
145
+ C(m, h) || (m = oe(Oa(m, 1)));
146
+ }
147
+ if (i.latest)
148
+ p = V(i.latest);
149
+ else if (p) {
150
+ const h = ze(p);
151
+ C(p, h) || (p = ze(qa(p, 1)));
152
+ }
153
+ }
154
+ return { min: m, max: p };
155
+ } }), it = () => {
156
+ const l = ye({
157
+ daily: null,
158
+ weekly: null,
159
+ monthly: null,
160
+ quarterly: null
161
+ });
162
+ return {
163
+ savedRanges: l,
164
+ saveRange: (a, i) => {
165
+ l[a] = i;
166
+ },
167
+ resetSavedRanges: () => {
168
+ l.daily = null, l.weekly = null, l.monthly = null, l.quarterly = null;
169
+ }
170
+ };
171
+ };
172
+ var D = /* @__PURE__ */ ((l) => (l.CUSTOM_RANGE = "custom-range", l.INPUT = "input", l.ERROR = "error", l.FORM_DATE = "form-date", l.START_DATE_SELECTED = "start-date-selected", l))(D || {});
173
+ const ut = {
174
+ "de-DE": { "DD-MM-YYYY": "TT-MM-JJJJ", "MM-DD-YYYY": "MM-TT-JJJJ", "YYYY-MM-DD": "JJJJ-MM-TT", customRange: "Benutzerdefinierter Bereich", daily: "Täglich", dateFrom: "Datum von", dateTo: "Datum bis", invalidDateFormat: "Ungültiges Datumsformat", lastMonth: "Letzter Monat", lastSevenDays: "Letzte 7 Tage", lastThreeMonths: "Letzte drei Monate", maxRangeDays: "Sie können bis zu {count} Tag auswählen | Sie können bis zu {count} Tage auswählen", maxRangeMonths: "Sie können bis zu {count} Monat auswählen | Sie können bis zu {count} Monate auswählen", maxRangeQuarters: "Sie können bis zu {count} Quartal auswählen | Sie können bis zu {count} Quartale auswählen", maxRangeWeeks: "Sie können bis zu {count} Woche auswählen | Sie können bis zu {count} Wochen auswählen", monthly: "Monatlich", quarterly: "Vierteljährlich", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar", startDateMustPrecedeEndDate: "Das Anfangsdatum muss vor dem Enddatum liegen", timeFrom: "Zeit von", timeTo: "Zeit bis", weekly: "Wöchentlich" },
175
+ "en-GB": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", invalidDateFormat: "Invalid date format", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "The last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", selectedDateIsNotAvailable: "Selected date is not available", startDateMustPrecedeEndDate: "Start date must precede end date", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
176
+ "en-US": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "Custom range", daily: "Daily", dateFrom: "Date from", dateTo: "Date to", invalidDateFormat: "Invalid date format", lastMonth: "Last month", lastSevenDays: "Last 7 days", lastThreeMonths: "Last three months", maxRangeDays: "You can select up to {count} day | You can select up to {count} days", maxRangeMonths: "You can select up to {count} month | You can select up to {count} months", maxRangeQuarters: "You can select up to {count} quarter | You can select up to {count} quarters", maxRangeWeeks: "You can select up to {count} week | You can select up to {count} weeks", monthly: "Monthly", quarterly: "Quarterly", selectedDateIsNotAvailable: "Selected date is not available", startDateMustPrecedeEndDate: "Start date must precede end date", timeFrom: "Time from", timeTo: "Time to", weekly: "Weekly" },
177
+ "es-419": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha desde", dateTo: "Fecha hasta", invalidDateFormat: "Formato de fecha no válido", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días", maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses", maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres", maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas", monthly: "Mensual", quarterly: "Trimestral", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible", startDateMustPrecedeEndDate: "La fecha de inicio debe ser anterior a la fecha de finalización", timeFrom: "Tiempo desde", timeTo: "Es hora de", weekly: "Semanal" },
178
+ "es-ES": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha desde", dateTo: "Fecha hasta", invalidDateFormat: "Formato de fecha no válido", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días", maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses", maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres", maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas", monthly: "Mensualmente", quarterly: "Trimestral", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible", startDateMustPrecedeEndDate: "La fecha de inicio debe ser anterior a la fecha de finalización", timeFrom: "Hora desde", timeTo: "Hora hasta", weekly: "Semanal" },
179
+ "es-MX": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Rango personalizado", daily: "Diario", dateFrom: "Fecha de", dateTo: "Fecha hasta", invalidDateFormat: "Formato de fecha no válido", lastMonth: "El mes pasado", lastSevenDays: "Últimos 7 días", lastThreeMonths: "Últimos tres meses", maxRangeDays: "Puedes seleccionar hasta {count} día | Puedes seleccionar hasta {count} días", maxRangeMonths: "Puedes seleccionar hasta {count} mes | Puedes seleccionar hasta {count} meses", maxRangeQuarters: "Puedes seleccionar hasta {count} trimestre | Puedes seleccionar hasta {count} trimestres", maxRangeWeeks: "Puedes seleccionar hasta {count} semana | Puedes seleccionar hasta {count} semanas", monthly: "Mensual", quarterly: "Trimestral", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible", startDateMustPrecedeEndDate: "La fecha de inicio debe ser anterior a la fecha de finalización", timeFrom: "Tiempo desde", timeTo: "Es hora de", weekly: "Semanal" },
180
+ "fr-FR": { "DD-MM-YYYY": "JJ-MM-AAAA", "MM-DD-YYYY": "MM-JJ-AAAA", "YYYY-MM-DD": "AAAA-MM-JJ", customRange: "Plage personnalisée", daily: "Quotidien", dateFrom: "Date de début", dateTo: "Date de fin", invalidDateFormat: "Format de date non valide", lastMonth: "Le mois dernier", lastSevenDays: "7 derniers jours", lastThreeMonths: "Trois derniers mois", maxRangeDays: "Vous pouvez sélectionner jusqu'à {count} jour| Vous pouvez sélectionner jusqu'à {count} jours", maxRangeMonths: "Vous pouvez sélectionner jusqu'à {count} mois | Vous pouvez sélectionner jusqu'à {count} mois", maxRangeQuarters: "Vous pouvez sélectionner jusqu'à {count} trimestre | Vous pouvez sélectionner jusqu'à {count} trimestres", maxRangeWeeks: "Vous pouvez sélectionner jusqu'à {count} semaine | Vous pouvez sélectionner jusqu'à {count} semaines", monthly: "Mensuel", quarterly: "Trimestriel", selectedDateIsNotAvailable: "La date sélectionnée n’est pas disponible", startDateMustPrecedeEndDate: "La date de début doit précéder la date de fin", timeFrom: "Heure de début", timeTo: "Heure de fin", weekly: "Hebdomadaire" },
181
+ "it-IT": { "DD-MM-YYYY": "GG-MM-AAAA", "MM-DD-YYYY": "MM-GG-AAAA", "YYYY-MM-DD": "AAAA-MM-GG", customRange: "Intervallo personalizzato", daily: "Giornaliero", dateFrom: "Data da", dateTo: "Da", invalidDateFormat: "Formato data non valido", lastMonth: "Il mese scorso", lastSevenDays: "Ultimi 7 giorni", lastThreeMonths: "Gli ultimi tre mesi", maxRangeDays: "Puoi selezionare fino a {count} giorno | Puoi selezionare fino a {count} giorni", maxRangeMonths: "Puoi selezionare fino a {count} mese | Puoi selezionare fino a {count} mesi", maxRangeQuarters: "Puoi selezionare fino a {count} trimestre | Puoi selezionare fino a {count} trimestri", maxRangeWeeks: "Puoi selezionare fino a {count} settimana | Puoi selezionare fino a {count} settimane", monthly: "Mensile", quarterly: "Trimestrale", selectedDateIsNotAvailable: "La data selezionata non è disponibile", startDateMustPrecedeEndDate: "La data di inizio deve precedere la data di fine", timeFrom: "Tempo dal", timeTo: "Tempo fino al", weekly: "Settimanale" },
182
+ "ja-JP": { "DD-MM-YYYY": "DD-MM-YYYY", "MM-DD-YYYY": "MM-DD-YYYY", "YYYY-MM-DD": "YYYY-MM-DD", customRange: "カスタム範囲", daily: "毎日", dateFrom: "開始日", dateTo: "終了日", invalidDateFormat: "無効な日付形式", lastMonth: "先月", lastSevenDays: "過去 7 日間", lastThreeMonths: "過去3か月", maxRangeDays: "{count}日間まで選択できます | {count}日間まで選択できます", maxRangeMonths: "{count}か月まで選択できます | {count}か月まで選択できます", maxRangeQuarters: "{count}四半期まで選択できます | {count}四半期まで選択できます", maxRangeWeeks: "{count}週間まで選択できます | {count}週間まで選択できます", monthly: "毎月", quarterly: "四半期ごと", selectedDateIsNotAvailable: "選択した日付は利用できません", startDateMustPrecedeEndDate: "開始日は終了日より前にする必要があります", timeFrom: "開始時刻", timeTo: "終了時刻", weekly: "毎週" },
183
+ "pt-BR": { "DD-MM-YYYY": "DD-MM-AAAA", "MM-DD-YYYY": "MM-DD-AAAA", "YYYY-MM-DD": "AAAA-MM-DD", customRange: "Intervalo personalizado", daily: "Diário", dateFrom: "Data a partir de", dateTo: "Data até", invalidDateFormat: "Formato de data inválido", lastMonth: "Último mês", lastSevenDays: "Últimos 7 dias", lastThreeMonths: "Últimos 3 meses", maxRangeDays: "Você pode selecionar até {count} dia | Você pode selecionar até {count} dias", maxRangeMonths: "Você pode selecionar até {count} mês | Você pode selecionar até {count} meses", maxRangeQuarters: "Você pode selecionar até {count} trimestre | Você pode selecionar até {count} trimestres", maxRangeWeeks: "Você pode selecionar até {count} semana | Você pode selecionar até {count} semanas", monthly: "Mensal", quarterly: "Trimestral", selectedDateIsNotAvailable: "A data selecionada não está disponível", startDateMustPrecedeEndDate: "A data de início deve preceder a data de término", timeFrom: "Horário a partir de", timeTo: "Horário até", weekly: "Semanal" },
184
+ "zh-CN": { "DD-MM-YYYY": "日-月-年", "MM-DD-YYYY": "月-日-年", "YYYY-MM-DD": "年-月-日", customRange: "自定义范围", daily: "每日", dateFrom: "日期自", dateTo: "日期至", invalidDateFormat: "日期格式无效", lastMonth: "上个月", lastSevenDays: "最近 7 天", lastThreeMonths: "过去三个月", maxRangeDays: "您可以选择最多 {count} 天 | 您可以选择最多 {count} 天", maxRangeMonths: "您可以选择最多 {count} 个月 | 您可以选择最多 {count} 个月", maxRangeQuarters: "您最多可以选择 {count} 个季度 | 您最多可以选择 {count} 个季度", maxRangeWeeks: "您最多可以选择 {count} 周 | 您最多可以选择 {count} 周", monthly: "每月", quarterly: "每季度", selectedDateIsNotAvailable: "所选日期不可用", startDateMustPrecedeEndDate: "开始日期必须早于结束日期", timeFrom: "时间自", timeTo: "是时候", weekly: "每周" }
185
+ }, dt = {
186
+ name: "date-range-picker-calendar",
187
+ i18n: { messages: ut }
188
+ }, ct = /* @__PURE__ */ Ie({
189
+ ...dt,
190
+ props: {
191
+ /**
192
+ * Allows user to enter time values in the form
193
+ */
194
+ allowTimeInput: { type: Boolean, default: !1 },
195
+ /**
196
+ * Ranges form persistance data
197
+ */
198
+ dateFormData: {
199
+ type: Object,
200
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
201
+ },
202
+ /**
203
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
204
+ */
205
+ firstDayOfWeek: N.props.firstDayOfWeek,
206
+ /**
207
+ * A list of available granularities.
208
+ * If present, the date picker will display a segmented control to change granularity.
209
+ */
210
+ granularities: {
211
+ type: Array,
212
+ default: null
213
+ },
214
+ /**
215
+ * Indicate if a date should be disabled or not
216
+ */
217
+ isDateDisabled: N.props.isDateDisabled,
218
+ /**
219
+ * Set a maximum number of dates to be selectable by the range.
220
+ */
221
+ maxRange: N.props.maxRange,
222
+ /**
223
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
224
+ */
225
+ min: N.props.min,
226
+ /**
227
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
228
+ */
229
+ max: N.props.max,
230
+ /**
231
+ * Number of months rendered on pane
232
+ */
233
+ numberOfMonths: {
234
+ type: N.props.numberOfMonths.type,
235
+ default: N.props.numberOfMonths.default,
236
+ validator: (l) => l >= 0
237
+ },
238
+ /**
239
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
240
+ */
241
+ showEndDateOnOpen: { type: Boolean, default: !1 },
242
+ /**
243
+ * Enables the custom range selector.
244
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
245
+ * `label` - label of custom range item.
246
+ * `value` - a unique key of the custom range item.
247
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
248
+ */
249
+ quickSelectRanges: {
250
+ type: Array,
251
+ default: void 0
252
+ },
253
+ /**
254
+ * Selected date
255
+ */
256
+ value: { type: Object, default: void 0 },
257
+ /**
258
+ * The type of calendar to display. Defaults to showing days.
259
+ */
260
+ variant: N.props.variant,
261
+ /**
262
+ * Range of years to be selectable from the year dropdown
263
+ */
264
+ yearRange: N.props.yearRange
265
+ },
266
+ emits: [
267
+ D.CUSTOM_RANGE,
268
+ D.INPUT,
269
+ D.ERROR,
270
+ D.FORM_DATE,
271
+ D.START_DATE_SELECTED
272
+ ],
273
+ setup(l, { emit: t }) {
274
+ const e = l, a = 300, i = "customRange", m = {
275
+ daily: "maxRangeDays",
276
+ weekly: "maxRangeWeeks",
277
+ monthly: "maxRangeMonths",
278
+ quarterly: "maxRangeQuarters"
279
+ }, p = ya(), h = _a(p), { t: P, tc: L } = _e(), { isTouchDevice: y } = Ea(), {
280
+ dateFormat: le,
281
+ isFormatValid: Z,
282
+ parseDate: f,
283
+ onKeyDown: w,
284
+ autoFormat: S,
285
+ formatDate: j
286
+ } = Se(), M = B({}), ee = c(() => e.variant === "month" ? "monthly" : "daily"), x = c(() => e.numberOfMonths === 0), r = ye({
287
+ startDate: e.value?.startDate,
288
+ endDate: e.value?.endDate,
289
+ range: e.value?.range,
290
+ ...e.granularities ? {
291
+ granularity: e.value?.granularity || ee.value
292
+ } : {}
293
+ }), _ = c(() => (
294
+ // eslint-disable-next-line consistent-return
295
+ e?.quickSelectRanges?.find(({ value: n, data: s }) => {
296
+ if (!s.endDate) {
297
+ if (s.isRelativeToNow) {
298
+ const d = M.value?.[n];
299
+ return d ? be(d.startDate, r.startDate) && be(d.endDate, r.endDate) : (
300
+ // If not stored calculated dates, fall back to comparing the quick select item's value
301
+ // with the internal range's stored range identifier.
302
+ n === r.range
303
+ );
304
+ }
305
+ return be(s.startDate, r.startDate) && et(r.endDate) && (!e.allowTimeInput || ke(r.endDate, V(r.endDate))) && (e.granularities ? s.granularity === r.granularity : !0);
306
+ }
307
+ if (e.allowTimeInput)
308
+ return ke(s.startDate, r.startDate) && ke(s.endDate, r.endDate) && (e.granularities ? s.granularity === r.granularity : !0);
309
+ if (s.endDate)
310
+ return C(s.startDate, r.startDate) && C(s.endDate, r.endDate) && (e.granularities ? s.granularity === r.granularity : !0);
311
+ })?.value ?? i
312
+ )), G = c(() => [
313
+ { label: P("customRange"), value: i },
314
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
315
+ ]), z = c(
316
+ () => e.granularities?.find(({ type: n }) => n === r.granularity) || null
317
+ ), Me = c(
318
+ () => e.granularities?.map(({ type: n, disabled: s }) => ({
319
+ label: P(n),
320
+ value: n,
321
+ disabled: s
322
+ })) ?? []
323
+ ), { getGranularCalendarLimits: ae } = lt(e), R = c(
324
+ () => e.granularities ? ae(z.value) : { min: e.min ? I(e.min) : null, max: e.max ? V(e.max) : null }
325
+ ), {
326
+ adjustDateForQuarterly: U,
327
+ adjustDateForMonthly: Q,
328
+ adjustDateForWeekly: ie,
329
+ adjustStartDateInputForWeekly: ue,
330
+ adjustEndDateInputForWeekly: K,
331
+ adjustStartDateInputForMonthly: de,
332
+ adjustEndDateInputForMonthly: X,
333
+ adjustStartDateInputForQuarterly: $,
334
+ adjustEndDateInputForQuarterly: E
335
+ } = Ba(e.firstDayOfWeek), { savedRanges: k, saveRange: ce, resetSavedRanges: Y } = it(), b = (n) => n ? j(n) : "", T = B(null), g = B(null), te = c(() => T.value ? P(T.value) : null), me = c(() => g.value ? P(g.value) : null), Fe = c(
336
+ () => T.value === "invalidDateFormat" ? null : te.value
337
+ ), Pe = c(() => g.value === "invalidDateFormat" ? null : me.value), O = (n, s, d, v) => {
338
+ if (!n || !Z(n))
339
+ return "invalidDateFormat";
340
+ const A = f(n), ve = I(A);
341
+ if (e.min && ve < I(e.min) || e.max && ve > I(e.max) || e.isDateDisabled && e.isDateDisabled(ve))
342
+ return "selectedDateIsNotAvailable";
343
+ if (s) {
344
+ const qe = v ? fe(v, 0).getTime() : ve.getTime(), Be = v ? fe(s, 0).getTime() : I(s).getTime();
345
+ if (d === "start" ? qe >= Be : qe <= Be)
346
+ return "startDateMustPrecedeEndDate";
347
+ }
348
+ return null;
349
+ }, o = ye({
350
+ startDate: e.dateFormData.startDate,
351
+ endDate: e.dateFormData.endDate,
352
+ startTime: e.dateFormData.startTime,
353
+ endTime: e.dateFormData.endTime
354
+ }), De = (n, s) => {
355
+ const d = () => {
356
+ if (s && H(s)) {
357
+ const v = Ue(f(s), n);
358
+ if (e.min && v < fe(e.min, 0) || e.max && v > fe(e.max, 0))
359
+ return !1;
360
+ }
361
+ return !0;
362
+ };
363
+ return $e(n) && d();
364
+ }, W = c(() => e.variant === "month"), u = (n) => n ? W.value ? Ca(n) : Na(n) : "", J = c(() => u(r.startDate)), ne = c(() => u(r.endDate)), Ze = c(() => y.value ? W.value ? "month" : "date" : "text"), ea = c(() => y.value ? J.value : o.startDate), aa = c(() => y.value ? ne.value : o.endDate), q = (n, s) => !s || !$e(s) || e.variant === "month" ? n : Ue(new Date(n), s), ta = (n) => {
365
+ o.startTime = F(
366
+ e.min && e.allowTimeInput && C(e.min, n.startDate) ? e.min : I(n.startDate)
367
+ ), o.endTime = F(
368
+ e.max && e.allowTimeInput && C(e.max, n.endDate) ? e.max : V(n.endDate)
369
+ ), r.startDate = q(n.startDate, o.startTime), r.endDate = q(n.endDate, o.endTime), r.range = null, e.granularities && Y(), t(D.INPUT, {
370
+ ...r,
371
+ range: _.value
372
+ });
373
+ }, H = (n) => !!n && !O(n);
374
+ Ke(() => {
375
+ T.value = e.dateFormData.startDate ? O(e.dateFormData.startDate) : null, g.value = e.dateFormData.endDate ? O(e.dateFormData.endDate) : null;
376
+ });
377
+ const na = (n) => {
378
+ o.startDate = b(n), o.startTime || (o.startTime = F(n)), T.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null), t(D.START_DATE_SELECTED, n);
379
+ }, ra = (n) => {
380
+ o.endDate = b(n), o.endTime || (o.endTime = F(V(n))), g.value = null, T.value === "startDateMustPrecedeEndDate" && (T.value = null);
381
+ }, pe = (n) => {
382
+ const s = e.value?.[n];
383
+ if (s)
384
+ return s;
385
+ if (e.dateFormData[n] && H(e.dateFormData[n]))
386
+ return f(e.dateFormData[n]);
387
+ }, Te = (n) => {
388
+ if (H(n)) {
389
+ let s = n;
390
+ switch (T.value = null, z.value?.type) {
391
+ case "weekly":
392
+ s = ue(
393
+ n,
394
+ b,
395
+ R.value.min,
396
+ R.value.max
397
+ ), o.startDate = s;
398
+ break;
399
+ case "monthly":
400
+ s = de(
401
+ n,
402
+ b,
403
+ R.value.min,
404
+ R.value.max
405
+ ), o.startDate = s;
406
+ break;
407
+ case "quarterly":
408
+ s = $(
409
+ n,
410
+ b,
411
+ R.value.min,
412
+ R.value.max
413
+ ), o.startDate = s;
414
+ break;
415
+ }
416
+ const d = I(f(s));
417
+ r.startDate = q(d, o.startTime), H(o.endDate) && (r.endDate = q(
418
+ I(f(o.endDate)),
419
+ o.endTime
420
+ ));
421
+ const v = pe("endDate"), A = O(
422
+ s,
423
+ e.allowTimeInput ? r.endDate : v,
424
+ "start",
425
+ e.allowTimeInput ? r.startDate : void 0
426
+ );
427
+ if (A) {
428
+ T.value = A, t(D.ERROR, { ...o });
429
+ return;
430
+ }
431
+ g.value === "startDateMustPrecedeEndDate" && (g.value = null), r.range = null, t(D.FORM_DATE, {
432
+ startDate: d,
433
+ endDate: v
434
+ }), t(D.INPUT, {
435
+ ...r,
436
+ range: _.value
437
+ });
438
+ } else
439
+ T.value = O(n), t(D.ERROR, { ...o });
440
+ }, we = Ne(Te, a), sa = (n) => {
441
+ if (o.startDate = y.value && W.value ? n : S(n), y.value)
442
+ if (W.value && n) {
443
+ const s = Qe(n);
444
+ r.startDate = q(s, o.startTime), r.range = null, t(D.INPUT, {
445
+ ...r,
446
+ range: _.value
447
+ });
448
+ } else o.startDate ? Te(o.startDate) : T.value = null;
449
+ else
450
+ we(o.startDate);
451
+ }, Re = (n) => {
452
+ if (H(n)) {
453
+ let s = n;
454
+ switch (g.value = null, z.value?.type) {
455
+ case "weekly":
456
+ s = K(
457
+ n,
458
+ b,
459
+ R.value.min,
460
+ R.value.max
461
+ ), o.endDate = s;
462
+ break;
463
+ case "monthly":
464
+ s = X(
465
+ n,
466
+ b,
467
+ R.value.min,
468
+ R.value.max
469
+ ), o.endDate = s;
470
+ break;
471
+ case "quarterly":
472
+ s = E(
473
+ n,
474
+ b,
475
+ R.value.min,
476
+ R.value.max
477
+ ), o.endDate = s;
478
+ break;
479
+ }
480
+ const d = I(f(s));
481
+ r.endDate = q(d, o.endTime), H(o.startDate) && (r.startDate = q(
482
+ I(f(o.startDate)),
483
+ o.startTime
484
+ ));
485
+ const v = pe("startDate"), A = O(
486
+ s,
487
+ e.allowTimeInput ? r.startDate : v,
488
+ "end",
489
+ e.allowTimeInput ? r.endDate : void 0
490
+ );
491
+ if (A) {
492
+ g.value = A, t(D.ERROR, { ...o });
493
+ return;
494
+ }
495
+ T.value === "startDateMustPrecedeEndDate" && (T.value = null), r.range = null, t(D.FORM_DATE, {
496
+ startDate: v,
497
+ endDate: d
498
+ }), t(D.INPUT, {
499
+ ...r,
500
+ range: _.value
501
+ });
502
+ } else
503
+ g.value = O(n), t(D.ERROR, { ...o });
504
+ }, xe = Ne(Re, a), oa = (n) => {
505
+ if (o.endDate = y.value && W.value ? n : S(n), y.value)
506
+ if (W.value && n) {
507
+ const s = Qe(n);
508
+ r.endDate = q(s, o.endTime), r.range = null, t(D.INPUT, {
509
+ ...r,
510
+ range: _.value
511
+ });
512
+ } else o.endDate ? Re(o.endDate) : g.value = null;
513
+ else
514
+ xe(o.endDate);
515
+ }, la = (n) => {
516
+ w(n);
517
+ }, ia = () => {
518
+ t(D.ERROR, { ...o });
519
+ }, ua = () => {
520
+ const n = o.startTime;
521
+ if (!De(n, o.startDate)) {
522
+ t(D.ERROR, { ...o });
523
+ return;
524
+ }
525
+ if (r.startDate = q(r.startDate, n), o.startDate && r.endDate) {
526
+ const d = O(
527
+ o.startDate,
528
+ r.endDate,
529
+ "start",
530
+ r.startDate
531
+ );
532
+ if (d) {
533
+ T.value = d, t(D.ERROR, { ...o });
534
+ return;
535
+ }
536
+ }
537
+ T.value = null, g.value === "startDateMustPrecedeEndDate" && (g.value = null);
538
+ const s = pe("endDate");
539
+ t(D.FORM_DATE, {
540
+ startDate: r.startDate,
541
+ endDate: s,
542
+ startTime: n,
543
+ endTime: o.endTime ?? e.dateFormData.endTime
544
+ }), t(D.INPUT, {
545
+ ...r,
546
+ range: _.value
547
+ });
548
+ }, da = () => {
549
+ t(D.ERROR, { ...o });
550
+ }, ca = () => {
551
+ const n = o.endTime;
552
+ if (!De(n, o.endDate)) {
553
+ t(D.ERROR, { ...o });
554
+ return;
555
+ }
556
+ if (r.endDate = q(r.endDate, n), o.endDate && r.startDate) {
557
+ const s = O(
558
+ o.endDate,
559
+ r.startDate,
560
+ "end",
561
+ r.endDate
562
+ );
563
+ if (s) {
564
+ g.value = s, t(D.ERROR, { ...o });
565
+ return;
566
+ }
567
+ }
568
+ g.value = null, T.value === "startDateMustPrecedeEndDate" && (T.value = null), t(D.FORM_DATE, {
569
+ startDate: r.startDate,
570
+ endDate: r.endDate,
571
+ startTime: o.startTime ?? e.dateFormData.startTime,
572
+ endTime: n
573
+ }), t(D.INPUT, {
574
+ ...r,
575
+ range: _.value
576
+ });
577
+ }, ma = (n) => {
578
+ o.startTime = n;
579
+ }, Da = (n) => {
580
+ o.endTime = n;
581
+ }, re = (n, s, d, v) => {
582
+ r.startDate = n, r.endDate = s, d && (r.granularity = d), v && (r.range = v);
583
+ }, pa = (n) => {
584
+ const s = e.quickSelectRanges?.find(({ value: d }) => d === n);
585
+ if (s) {
586
+ Y();
587
+ const d = s.data, v = d.endDate || (d.isRelativeToNow ? new Date(Date.now()) : V(new Date(Date.now()))), A = d.isRelativeToNow && d.timeDifference ? new Date(v.getTime() - d.timeDifference) : d.startDate;
588
+ o.endDate = b(v), o.startDate = b(A), re(A, v, null, n), e.granularities && (r.granularity = d.granularity || ee.value), o.startTime = F(A), o.endTime = F(v), r.startDate = A, r.endDate = v, d.isRelativeToNow && (M.value = {
589
+ ...M.value,
590
+ [n]: {
591
+ startDate: A,
592
+ endDate: v
593
+ }
594
+ }), t(D.CUSTOM_RANGE, {
595
+ ...s.data,
596
+ startDate: A,
597
+ endDate: v,
598
+ range: s.value
599
+ });
600
+ }
601
+ }, Oe = {
602
+ weekly: ie,
603
+ monthly: Q,
604
+ quarterly: U
605
+ }, va = (n) => {
606
+ const s = r.granularity;
607
+ if (r.granularity = n, s && ce(s, structuredClone(Ae(r))), r.startDate && r.endDate) {
608
+ switch (n) {
609
+ case "quarterly":
610
+ case "monthly":
611
+ case "weekly": {
612
+ if (k[n]) {
613
+ re(k[n].startDate, k[n].endDate, n);
614
+ break;
615
+ }
616
+ const { startDate: d, endDate: v } = Oe[n](
617
+ r.startDate,
618
+ r.endDate,
619
+ R.value.min,
620
+ R.value.max
621
+ );
622
+ re(d, v, n);
623
+ break;
624
+ }
625
+ case "daily":
626
+ k.daily && re(k.daily.startDate, k.daily.endDate, n);
627
+ break;
628
+ }
629
+ o.startDate = b(r.startDate), o.endDate = b(r.endDate), t(D.INPUT, {
630
+ ...r,
631
+ range: _.value
632
+ });
633
+ }
634
+ }, fa = c(() => ({
635
+ "b-date-range-picker-calendar__form-container--no-calendars": x.value
636
+ })), ga = c(() => {
637
+ const n = z.value, s = n?.maxRange || e.maxRange;
638
+ if (!s)
639
+ return null;
640
+ const d = m[n?.type ?? "daily"];
641
+ return L(d, s, { count: s });
642
+ });
643
+ return { __sfc: !0, FORM_INPUT_DEBOUNCE_TIME: a, RANGE_SELECTOR_CUSTOM_RANGE_KEY: i, maxRangeMessageKeyMap: m, props: e, emit: t, slots: p, hasSlot: h, t: P, tc: L, isTouchDevice: y, dateFormat: le, isFormatValid: Z, parseDate: f, onKeyDown: w, autoFormat: S, formatDateUtil: j, calculatedIsRelativeToNowQuickSelectRanges: M, defaultGranularity: ee, hasNoCalendars: x, internalRangeDate: r, selectedRangeSelectorValue: _, quickSelectRangeDefaultItems: G, selectedGranularity: z, granularityItems: Me, getGranularCalendarLimits: ae, computedMinMax: R, adjustDateForQuarterly: U, adjustDateForMonthly: Q, adjustDateForWeekly: ie, adjustStartDateInputForWeekly: ue, adjustEndDateInputForWeekly: K, adjustStartDateInputForMonthly: de, adjustEndDateInputForMonthly: X, adjustStartDateInputForQuarterly: $, adjustEndDateInputForQuarterly: E, savedRanges: k, saveRange: ce, resetSavedRanges: Y, formatDate: b, startDateError: T, endDateError: g, startDateErrorText: te, endDateErrorText: me, startSharedError: Fe, endSharedError: Pe, getDateErrorMessage: O, dateTextInput: o, isValidTime: De, isMonthVariant: W, formatNativeDate: u, nativeStartDate: J, nativeEndDate: ne, dateInputType: Ze, startDateValue: ea, endDateValue: aa, setTimeInDateRef: q, onDateInput: ta, isValidDate: H, onStartDateSelected: na, onEndDateSelected: ra, getDate: pe, validateStartDate: Te, validateStartDateDebounced: we, onStartDateInput: sa, validateEndDate: Re, validateEndDateDebounced: xe, onEndDateInput: oa, onDateInputKeyDown: la, onStartTimeError: ia, onStartTimeValid: ua, onEndTimeError: da, onEndTimeValid: ca, onStartTimeInput: ma, onEndTimeInput: Da, setInternalRange: re, onRangeSelectorInput: pa, adjustDate: Oe, onGranularityInput: va, computedFormContainerClasses: fa, maxRangeMessage: ga, Calendar: N, DateTimeInput: ot, BentoAlert: ba, BentoTypography: Xe, BentoDropdown: ka, BentoSegmentedControl: Ia };
644
+ }
645
+ });
646
+ var mt = function() {
647
+ var t = this, e = t._self._c, a = t._self._setupProxy;
648
+ 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(), a.maxRangeMessage ? e(a.BentoAlert, { attrs: { variant: "tip" }, scopedSlots: t._u([{ key: "description", fn: function() {
649
+ return [t._v(" " + t._s(a.maxRangeMessage) + " ")];
650
+ }, proxy: !0 }], null, !1, 1192229622) }) : t._e(), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" From ")]), e(a.DateTimeInput, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "date-model-value": a.startDateValue, "date-props": {
651
+ ariaLabel: a.t("dateFrom"),
652
+ type: a.dateInputType,
653
+ description: a.isTouchDevice ? void 0 : a.t(a.dateFormat),
654
+ errorMessage: a.startDateErrorText
655
+ }, "error-message": a.startSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.startTime, "time-props": {
656
+ ariaLabel: a.t("timeFrom"),
657
+ errorMessage: a.startSharedError
658
+ } }, on: { "update:date-model-value": a.onStartDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onStartTimeInput, "time:error": a.onStartTimeError, "time:valid": a.onStartTimeValid } })], 1), e("div", [e(a.BentoTypography, { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [t._v(" To ")]), e(a.DateTimeInput, { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "date-model-value": a.endDateValue, "date-props": {
659
+ ariaLabel: a.t("dateTo"),
660
+ type: a.dateInputType,
661
+ description: a.isTouchDevice ? void 0 : a.t(a.dateFormat),
662
+ errorMessage: a.endDateErrorText
663
+ }, "error-message": a.endSharedError, "show-time-input": t.allowTimeInput, "time-model-value": a.dateTextInput.endTime, "time-props": {
664
+ ariaLabel: a.t("timeTo"),
665
+ errorMessage: a.endSharedError
666
+ } }, on: { "update:date-model-value": a.onEndDateInput, "date:keydown": a.onDateInputKeyDown, "update:time-model-value": a.onEndTimeInput, "time:error": a.onEndTimeError, "time:valid": a.onEndTimeValid } })], 1)], 2), a.hasSlot("actions") ? e("div", [t._t("actions")], 2) : t._e()]), !a.hasNoCalendars && !a.isTouchDevice ? 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, "year-range": t.yearRange, "is-range": "" }, on: { input: a.onDateInput, "start-date-selected": a.onStartDateSelected, "end-date-selected": a.onEndDateSelected } })], 1) : t._e()]);
667
+ }, Dt = [], pt = /* @__PURE__ */ Ee(
668
+ ct,
669
+ mt,
670
+ Dt,
671
+ !1,
672
+ null,
673
+ "ba8e68ea"
674
+ );
675
+ const vt = pt.exports, ft = {
676
+ "de-DE": { apply: "Anwenden", cancel: "Abbrechen", dateRangePicker: "Datumsbereichauswahl {name}", invalidDateFormat: "Ungültiges Datumsformat", quarter: "Q{quarter} {year}", selectDate: "Wählen Sie ein Datum", selectDateRange: "Wählen Sie einen Datumsbereich aus", selectedDateIsNotAvailable: "Ausgewähltes Datum ist nicht verfügbar" },
677
+ "en-GB": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", invalidDateFormat: "Invalid date format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
678
+ "en-US": { apply: "Apply", cancel: "Cancel", dateRangePicker: "Date range picker {name}", invalidDateFormat: "Invalid date format", quarter: "Q{quarter} {year}", selectDate: "Select a date", selectDateRange: "Select a date range", selectedDateIsNotAvailable: "Selected date is not available" },
679
+ "es-419": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Selector de intervalos de fechas {name}", invalidDateFormat: "Formato de fecha no válido", quarter: "T{quarter} {year}", selectDate: "Selecciona una fecha", selectDateRange: "Selecciona un rango de fechas", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible" },
680
+ "es-ES": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Selector de intervalos de fechas {name}", invalidDateFormat: "Formato de fecha no válido", quarter: "T{quarter} {year}", selectDate: "Selecciona una fecha", selectDateRange: "Selecciona un rango de fechas", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible" },
681
+ "es-MX": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Selector de intervalos de fechas {name}", invalidDateFormat: "Formato de fecha no válido", quarter: "T{quarter} {year}", selectDate: "Selecciona una fecha", selectDateRange: "Selecciona un rango de fechas", selectedDateIsNotAvailable: "La fecha seleccionada no está disponible" },
682
+ "fr-FR": { apply: "Appliquer", cancel: "Annuler", dateRangePicker: "Sélecteur de plages de dates {name}", invalidDateFormat: "Format de date non valide", quarter: "T{quarter} {year}", selectDate: "Sélectionnez une date", selectDateRange: "Sélectionnez une plage de dates", selectedDateIsNotAvailable: "La date sélectionnée n’est pas disponible" },
683
+ "it-IT": { apply: "Applica", cancel: "Annulla", dateRangePicker: "Selettore intervallo di date {name}", invalidDateFormat: "Formato data non valido", quarter: "Q{quarter} {year}", selectDate: "Seleziona una data", selectDateRange: "Seleziona un intervallo di date", selectedDateIsNotAvailable: "La data selezionata non è disponibile" },
684
+ "ja-JP": { apply: "適用", cancel: "キャンセル", dateRangePicker: "日付範囲ピッカー {name}", invalidDateFormat: "無効な日付形式", quarter: "{year}年第{quarter}四半期", selectDate: "日付を選択", selectDateRange: "日付範囲を選択", selectedDateIsNotAvailable: "選択した日付は利用できません" },
685
+ "pt-BR": { apply: "Aplicar", cancel: "Cancelar", dateRangePicker: "Seletor de intervalo de datas {name}", invalidDateFormat: "Formato de data inválido", quarter: "{quarter}º trimestre de {year}", selectDate: "Selecione uma data", selectDateRange: "Selecione um intervalo de datas", selectedDateIsNotAvailable: "A data selecionada não está disponível" },
686
+ "zh-CN": { apply: "应用", cancel: "取消", dateRangePicker: "日期范围选择器 {name}", invalidDateFormat: "日期格式无效", quarter: "{year} {quarter} 季度", selectDate: "选择日期", selectDateRange: "选择日期范围", selectedDateIsNotAvailable: "所选日期不可用" }
687
+ }, gt = ({
688
+ datePickerValue: l,
689
+ isDateIncorrect: t,
690
+ quickSelectRanges: e,
691
+ isMonthVariant: a,
692
+ withTimeInput: i,
693
+ placeholder: m
694
+ }) => {
695
+ const { locale: p, t: h } = _e(), { dateToInputDateString: P } = Se(), L = (f) => !!f && !isNaN(f.getTime()), y = ye({
696
+ startDate: null,
697
+ endDate: null,
698
+ startTime: null,
699
+ endTime: null
700
+ });
701
+ return ge(
702
+ l,
703
+ (f) => {
704
+ y.startDate = P(f?.startDate), y.endDate = P(f?.endDate), y.startTime = F(f?.startDate), y.endTime = F(f?.endDate);
705
+ },
706
+ { immediate: !0 }
707
+ ), {
708
+ // Values
709
+ dateDisplayValue: c(() => {
710
+ if (t.value)
711
+ return `${y.startDate || ""} - ${y.endDate || ""}`;
712
+ if (!l.value || !l.value.startDate && !l.value.endDate)
713
+ return m?.value || h("selectDateRange");
714
+ if (e.value?.length) {
715
+ const w = e.value.find(({ value: S }) => S === l.value?.range);
716
+ if (w)
717
+ return w.label;
718
+ }
719
+ if (l.value.granularity === "quarterly") {
720
+ const { startDate: w, endDate: S } = l.value, j = h("quarter", { quarter: We(w), year: Je(w) });
721
+ if (Za(w, S))
722
+ return j;
723
+ const M = h("quarter", { quarter: We(S), year: Je(S) });
724
+ return `${j} - ${M}`;
725
+ }
726
+ if (!L(l.value.startDate) || !L(l.value.endDate))
727
+ return `${y.startDate || ""} - ${y.endDate || ""}`;
728
+ let f = a?.value ? { month: "long", year: "numeric" } : { month: "short", day: "2-digit", year: "numeric" };
729
+ return i.value && (f = {
730
+ ...f,
731
+ hour: "numeric",
732
+ minute: "numeric",
733
+ second: "numeric",
734
+ hour12: !1
735
+ }), Va(p.value, f).formatRange(
736
+ l.value.startDate,
737
+ l.value.endDate
738
+ );
739
+ }),
740
+ textInputDisplayValue: y,
741
+ // Methods
742
+ formatTextInputDisplayValue: () => ""
743
+ };
744
+ }, yt = {
745
+ i18n: { messages: ft },
746
+ name: "bento-date-range-picker",
747
+ model: { prop: "modelValue" }
748
+ }, ht = /* @__PURE__ */ Ie({
749
+ ...yt,
750
+ props: {
751
+ description: { default: void 0 },
752
+ disabled: { type: Boolean, default: !1 },
753
+ errorMessage: { default: null },
754
+ label: { default: void 0 },
755
+ optional: { type: Boolean, default: !1 },
756
+ placeholder: { default: null },
757
+ readonly: { type: Boolean, default: !1 },
758
+ required: { type: Boolean, default: !1 },
759
+ tooltipText: { default: null },
760
+ allowTimeInput: { type: Boolean },
761
+ firstDayOfWeek: { default: void 0 },
762
+ granularities: null,
763
+ isDateDisabled: { default: void 0 },
764
+ showEndDateOnOpen: { type: Boolean, default: !1 },
765
+ quickSelectRanges: { default: void 0 },
766
+ maxRange: { default: null },
767
+ min: { default: null },
768
+ max: { default: null },
769
+ numberOfMonths: { default: void 0 },
770
+ modelValue: { default: null },
771
+ value: { default: null },
772
+ variant: { default: void 0 },
773
+ yearRange: { default: void 0 },
774
+ hasActions: { type: Boolean, default: !1 }
775
+ },
776
+ emits: ["update:model-value", "input"],
777
+ setup(l, { emit: t }) {
778
+ const e = l, a = ha(), { t: i } = _e(), { dateToInputDateString: m } = Se(), p = se("bento-date-range-picker-container"), h = se("bento-date-range-picker-label"), P = se("bento-date-range-picker-description"), L = se("bento-date-range-picker-error"), y = se("bento-date-range-picker-date-error"), le = c(() => e.label || i("dateRangePicker", { name: p })), { resolvedFirstDayOfWeek: Z } = Sa(Ye(e, "firstDayOfWeek")), f = Ma({
779
+ none: 0,
780
+ one: 710,
781
+ // width of date range picker with one panes
782
+ two: 1030,
783
+ // width of date range picker with two panes
784
+ three: 1290
785
+ // width of date range picker with three panes
786
+ }), w = c(() => {
787
+ const u = f.active().value, J = {
788
+ none: 0,
789
+ one: 1,
790
+ two: 2
791
+ };
792
+ if (u in J) {
793
+ const ne = J[u];
794
+ return e.numberOfMonths === void 0 ? ne : Math.min(e.numberOfMonths, ne);
795
+ }
796
+ return e.numberOfMonths;
797
+ }), S = c(() => e?.quickSelectRanges && e.quickSelectRanges.map((u) => {
798
+ const J = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime();
799
+ return {
800
+ ...u,
801
+ data: {
802
+ ...u.data,
803
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
804
+ timeDifference: J
805
+ }
806
+ };
807
+ })), j = c(() => e.label ? h : a?.["aria-labelledby"] ?? null), M = B(!1), ee = B(null), x = B(!1), { isReadOnly: r } = Ua(Ye(e, "readonly")), { emitValue: _ } = $a(t);
808
+ ge(
809
+ () => e.disabled,
810
+ () => {
811
+ e.disabled && x.value && (x.value = !1);
812
+ }
813
+ );
814
+ const G = c(() => e.modelValue || e.value), z = c(() => e.hasActions ? !k.value && M.value : M.value), Me = c(() => ({
815
+ "b-date-range-picker__description--error": !!e.errorMessage || z.value
816
+ })), ae = c(() => e.variant === "month"), R = c(() => e.allowTimeInput && e.variant !== "month"), { dateDisplayValue: U, textInputDisplayValue: Q, formatTextInputDisplayValue: ie } = gt({
817
+ datePickerValue: G,
818
+ isDateIncorrect: M,
819
+ quickSelectRanges: S,
820
+ isMonthVariant: ae,
821
+ withTimeInput: R,
822
+ placeholder: Ye(e, "placeholder")
823
+ }), ue = c(
824
+ () => `${e.description ? P : ""} ${e.errorMessage ? L : ""} ${M.value ? y : ""}`.trim() || null
825
+ ), K = () => {
826
+ x.value = !1;
827
+ }, de = () => {
828
+ x.value = !0;
829
+ }, X = B(U.value), $ = B(
830
+ // textInputDisplayValue is a reactive object
831
+ structuredClone(Ae(Q))
832
+ ), E = B(e.modelValue ?? e.value), k = B(!0), ce = c(
833
+ () => e.hasActions ? E.value : G.value
834
+ ), Y = B(
835
+ e.hasActions ? $.value : Q
836
+ ), b = c(
837
+ () => e.hasActions ? X.value : U.value
838
+ ), T = {
839
+ allowOutsideClick: !0
840
+ };
841
+ Ke(() => {
842
+ if (e.hasActions || Ce(
843
+ 'BentoDateRangePicker "hasActions" property',
844
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
845
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
846
+ "2.0.0"
847
+ ), e.value && Ce(
848
+ 'BentoDateRangePicker "value" property',
849
+ 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
850
+ "2.0.0"
851
+ ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: u }) => u === "quarterly"))
852
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
853
+ });
854
+ const g = () => {
855
+ X.value = U.value, $.value = structuredClone(Ae(Q)), Y.value = e.hasActions ? $.value : Q, E.value = G.value;
856
+ };
857
+ ge([() => e.value, () => e.modelValue], () => {
858
+ g();
859
+ });
860
+ const te = () => {
861
+ g(), M.value = !1, k.value = !0, K();
862
+ }, me = c(() => [
863
+ {
864
+ title: i("apply"),
865
+ event: () => {
866
+ _(E.value), K(), k.value = !0;
867
+ },
868
+ disabled: k.value
869
+ },
870
+ {
871
+ title: i("cancel"),
872
+ event: te
873
+ }
874
+ ]);
875
+ return ge(E, (u) => {
876
+ if (e.hasActions) {
877
+ k.value = M.value || u === G.value;
878
+ return;
879
+ }
880
+ _(u);
881
+ }), { __sfc: !0, emit: t, props: e, attrs: a, t: i, dateToInputDateString: m, datePickerContainerId: p, labelId: h, descriptionId: P, errorId: L, dateErrorId: y, popoverAriaLabel: le, resolvedFirstDayOfWeek: Z, breakpoints: f, computedNumberOfMonths: w, adjustedQuickSelectRanges: S, dropdownInputAriaLabelledBy: j, isDateIncorrect: M, inputContainerRef: ee, isDateRangePickerOpen: x, isReadOnly: r, emitValue: _, internalModelValue: G, shouldDisplayError: z, descriptionConditionalClasses: Me, isMonthVariant: ae, withTimeInput: R, dateDisplayValue: U, textInputDisplayValue: Q, formatTextInputDisplayValue: ie, ariaDescribedBy: ue, closeDateRangePicker: K, openDateRangePicker: de, localDateDisplayValue: X, localTextInputDisplayValue: $, selectedDate: E, isApplyDisabled: k, dateRangePickerCalendarValue: ce, displayedTextInputValue: Y, displayedDateValue: b, trapAllOptions: T, syncLocalDisplayStateFromCommittedValue: g, cancelDateRangePicker: te, rangePickerButtonActions: me, onDateRangePickerInput: (u) => {
882
+ M.value = !1, Y.value.startDate = m(u.startDate), Y.value.endDate = m(u.endDate), Y.value.startTime = F(u.startDate), Y.value.endTime = F(u.endDate), E.value = u;
883
+ }, clearDateRangePickerValue: async () => {
884
+ M.value && (M.value = !1), E.value = null;
885
+ }, onEnterPressedOverInput: () => {
886
+ if (!x.value) {
887
+ x.value = !0;
888
+ return;
889
+ }
890
+ M.value || (x.value = !1);
891
+ }, onDateRangePickerFormDateInputUpdate: (u) => {
892
+ M.value = !1, u.startTime && (Y.value.startTime = u.startTime), u.endTime && (Y.value.endTime = u.endTime);
893
+ }, onDateRangePickerError: (u) => {
894
+ M.value = !0, Y.value.startDate = u.startDate, Y.value.endDate = u.endDate, E.value = { startDate: null, endDate: null };
895
+ }, onRangeSelectorInput: (u) => {
896
+ u && (Y.value.startDate = m(u.startDate), Y.value.endDate = m(u.endDate), Y.value.startTime = F(u.startDate), Y.value.endTime = F(u.endDate), E.value = u);
897
+ }, BentoButtonActions: Ya, BentoButtonActionsLayout: Xa, BentoDivider: Ta, BentoPopover: Ra, BentoTypography: Xe, DateRangePickerCalendar: vt, DropdownInputDefault: Aa, ErrorMessage: Ka, FieldLabel: Ha, vBentoClickOutsideDirective: Ja };
898
+ }
899
+ });
900
+ var Mt = function() {
901
+ var t = this, e = t._self._c, a = t._self._setupProxy;
902
+ 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(i) {
903
+ return !i.type.indexOf("key") && t._k(i.keyCode, "enter", 13, i.key, "Enter") ? null : a.onEnterPressedOverInput.apply(null, arguments);
904
+ } } }, [e(a.DropdownInputDefault, { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: a.datePickerContainerId, ariaExpanded: a.isDateRangePickerOpen, "aria-labelledby": a.dropdownInputAriaLabelledBy, "aria-describedby": a.ariaDescribedBy, "aria-required": t.required, 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("invalidDateFormat") } }) : 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": "", "trap-all-options": a.trapAllOptions }, nativeOn: { keydown: function(i) {
905
+ return !i.type.indexOf("key") && t._k(i.keyCode, "esc", 27, i.key, ["Esc", "Escape"]) ? null : a.closeDateRangePicker.apply(null, arguments);
906
+ } } }, [e(a.DateRangePickerCalendar, { attrs: { "allow-time-input": a.withTimeInput, "quick-select-ranges": a.adjustedQuickSelectRanges, value: a.dateRangePickerCalendarValue, "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, "year-range": t.yearRange }, on: { "custom-range": a.onRangeSelectorInput, input: a.onDateRangePickerInput, error: a.onDateRangePickerError, "form-date": a.onDateRangePickerFormDateInputUpdate }, scopedSlots: t._u([t.hasActions ? { key: "actions", fn: function() {
907
+ 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)];
908
+ }, proxy: !0 } : null], null, !0) })], 1) : t._e()], 1);
909
+ }, Tt = [], Rt = /* @__PURE__ */ Ee(
910
+ ht,
911
+ Mt,
912
+ Tt,
913
+ !1,
914
+ null,
915
+ "b697e0dc"
916
+ );
917
+ const en = Rt.exports;
918
+ export {
919
+ en as B,
920
+ vt as D,
921
+ et as a,
922
+ be as i
923
+ };
924
+ //# sourceMappingURL=date-range-picker.5bvgs49h.js.map