@adyen/bento-vue3 1.72.0 → 1.74.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 (333) hide show
  1. package/dist/@types/components.d.ts +2 -10
  2. package/dist/@types/index.d.ts +1543 -1703
  3. package/dist/@types/use-form-v4.d.ts +1 -1
  4. package/dist/accordion.js +1 -1
  5. package/dist/action-bar.js +1 -1
  6. package/dist/alert.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/avatar.css +1 -1
  10. package/dist/assets/base-modal.css +1 -1
  11. package/dist/assets/button-actions.css +1 -1
  12. package/dist/assets/button.css +1 -1
  13. package/dist/assets/calendar.css +1 -1
  14. package/dist/assets/card.css +1 -1
  15. package/dist/assets/country.css +1 -1
  16. package/dist/assets/currency.css +1 -1
  17. package/dist/assets/data-grid-template.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/dropdown-default-textbox.css +1 -1
  23. package/dist/assets/dropdown-tag.css +1 -1
  24. package/dist/assets/dropdown.css +1 -1
  25. package/dist/assets/file-uploader.css +1 -1
  26. package/dist/assets/filter-bar.css +1 -1
  27. package/dist/assets/form-layout-title.css +1 -1
  28. package/dist/assets/header-meta.css +1 -1
  29. package/dist/assets/header-with-views.css +1 -1
  30. package/dist/assets/input-field-password.css +1 -1
  31. package/dist/assets/input-field-phone-number.css +1 -1
  32. package/dist/assets/input-field.css +1 -1
  33. package/dist/assets/inspector.css +1 -1
  34. package/dist/assets/listbox-option-tag.css +1 -1
  35. package/dist/assets/loading-indicator.css +1 -1
  36. package/dist/assets/modal-fullscreen.css +1 -1
  37. package/dist/assets/pagination.css +1 -1
  38. package/dist/assets/popper-container.css +1 -1
  39. package/dist/assets/radio-group.css +1 -1
  40. package/dist/assets/radio-input.css +1 -1
  41. package/dist/assets/secondary-nav.css +1 -1
  42. package/dist/assets/segmented-control.css +1 -1
  43. package/dist/assets/selection-card-group.css +1 -1
  44. package/dist/assets/sidepanel.css +1 -1
  45. package/dist/assets/step.css +1 -1
  46. package/dist/assets/tab.css +1 -1
  47. package/dist/assets/textarea.css +1 -1
  48. package/dist/assets/timeline-item.css +1 -1
  49. package/dist/assets/toggle.css +1 -1
  50. package/dist/assets/tooltip.css +1 -1
  51. package/dist/assets/tutorial.css +1 -1
  52. package/dist/assets/use-cached-selected-values.css +1 -1
  53. package/dist/avatar.js +1 -1
  54. package/dist/button.js +3 -3
  55. package/dist/card.js +1 -1
  56. package/dist/checkbox.js +2 -2
  57. package/dist/chip.js +1 -1
  58. package/dist/chunks/{accordion-item.6etqAJV9.js → accordion-item.Bd3v6erb.js} +2 -2
  59. package/dist/chunks/{accordion-item.6etqAJV9.js.map → accordion-item.Bd3v6erb.js.map} +1 -1
  60. package/dist/chunks/{action-bar.DDLTN9TB.js → action-bar.BZ04Y7Yi.js} +5 -5
  61. package/dist/chunks/{action-bar.DDLTN9TB.js.map → action-bar.BZ04Y7Yi.js.map} +1 -1
  62. package/dist/chunks/{ai-button.DsNrcgpK.js → ai-button.DaRuea3x.js} +2 -2
  63. package/dist/chunks/{ai-button.DsNrcgpK.js.map → ai-button.DaRuea3x.js.map} +1 -1
  64. package/dist/chunks/{alert.Dzx5MzgE.js → alert.C2pusd-_.js} +3 -3
  65. package/dist/chunks/{alert.Dzx5MzgE.js.map → alert.C2pusd-_.js.map} +1 -1
  66. package/dist/chunks/{avatar.Dq59yj6m.js → avatar.P2Fkz2I6.js} +27 -26
  67. package/dist/chunks/avatar.P2Fkz2I6.js.map +1 -0
  68. package/dist/chunks/{base-modal.Djw4pVal.js → base-modal.UA93s_8c.js} +7 -7
  69. package/dist/chunks/base-modal.UA93s_8c.js.map +1 -0
  70. package/dist/chunks/{button-actions-with-menu.DaKPEgPd.js → button-actions-with-menu.BeQ-j1bv.js} +2 -2
  71. package/dist/chunks/{button-actions-with-menu.DaKPEgPd.js.map → button-actions-with-menu.BeQ-j1bv.js.map} +1 -1
  72. package/dist/chunks/{button-actions.D1eBtYgZ.js → button-actions.BQ3AFQqt.js} +13 -16
  73. package/dist/chunks/button-actions.BQ3AFQqt.js.map +1 -0
  74. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  75. package/dist/chunks/{button.C-MAa6ut.js → button.DhcxX2GJ.js} +2 -2
  76. package/dist/chunks/button.DhcxX2GJ.js.map +1 -0
  77. package/dist/chunks/{calendar.B1a_mV-Q.js → calendar.Cqjyxc69.js} +314 -310
  78. package/dist/chunks/calendar.Cqjyxc69.js.map +1 -0
  79. package/dist/chunks/{card.B9lWURmF.js → card.GxkxfBoV.js} +23 -23
  80. package/dist/chunks/card.GxkxfBoV.js.map +1 -0
  81. package/dist/chunks/{checkbox-group.CcgOK4yt.js → checkbox-group.8ebmaHsA.js} +4 -4
  82. package/dist/chunks/{checkbox-group.CcgOK4yt.js.map → checkbox-group.8ebmaHsA.js.map} +1 -1
  83. package/dist/chunks/{checkbox.73QYC0y8.js → checkbox.BI0dqARY.js} +4 -4
  84. package/dist/chunks/{checkbox.73QYC0y8.js.map → checkbox.BI0dqARY.js.map} +1 -1
  85. package/dist/chunks/{chip.CUwVpPVo.js → chip.DuLyhNCy.js} +2 -2
  86. package/dist/chunks/{chip.CUwVpPVo.js.map → chip.DuLyhNCy.js.map} +1 -1
  87. package/dist/chunks/{code-snippet.DL_1HNKV.js → code-snippet.CO78Nfj0.js} +7 -7
  88. package/dist/chunks/{code-snippet.DL_1HNKV.js.map → code-snippet.CO78Nfj0.js.map} +1 -1
  89. package/dist/chunks/{controls-group.CdTg-WDi.js → controls-group.cbGiHr7n.js} +2 -2
  90. package/dist/chunks/{controls-group.CdTg-WDi.js.map → controls-group.cbGiHr7n.js.map} +1 -1
  91. package/dist/chunks/{copy.Da1OGFTr.js → copy.ClKnDjMI.js} +5 -5
  92. package/dist/chunks/{copy.Da1OGFTr.js.map → copy.ClKnDjMI.js.map} +1 -1
  93. package/dist/chunks/country.DmnN9YIW.js +69 -0
  94. package/dist/chunks/country.DmnN9YIW.js.map +1 -0
  95. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -1
  96. package/dist/chunks/{currency.CN4UnCx8.js → currency.CBZMwm21.js} +55 -38
  97. package/dist/chunks/currency.CBZMwm21.js.map +1 -0
  98. package/dist/chunks/{dashboard-section.BXE7_Y9R.js → dashboard-section.CVttsom5.js} +3 -3
  99. package/dist/chunks/{dashboard-section.BXE7_Y9R.js.map → dashboard-section.CVttsom5.js.map} +1 -1
  100. package/dist/chunks/{dashed-underline.28J-9i5D.js → dashed-underline.r62L_XBr.js} +3 -3
  101. package/dist/chunks/{dashed-underline.28J-9i5D.js.map → dashed-underline.r62L_XBr.js.map} +1 -1
  102. package/dist/chunks/{data-grid-template.B13OrA1T.js → data-grid-template.CFt1NV_4.js} +4 -4
  103. package/dist/chunks/{data-grid-template.B13OrA1T.js.map → data-grid-template.CFt1NV_4.js.map} +1 -1
  104. package/dist/chunks/data-grid.BjPdbx50.js +4071 -0
  105. package/dist/chunks/data-grid.BjPdbx50.js.map +1 -0
  106. package/dist/chunks/{date-input.BqBdAO1E.js → date-format.B8RU7D42.js} +6 -6
  107. package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
  108. package/dist/chunks/date-picker.DSkvT_CA.js +234 -0
  109. package/dist/chunks/date-picker.DSkvT_CA.js.map +1 -0
  110. package/dist/chunks/date-range-picker.cmg75lC-.js +1117 -0
  111. package/dist/chunks/date-range-picker.cmg75lC-.js.map +1 -0
  112. package/dist/chunks/{date.4GAXrgy5.js → date.DZvVL-uz.js} +3 -3
  113. package/dist/chunks/{date.4GAXrgy5.js.map → date.DZvVL-uz.js.map} +1 -1
  114. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  115. package/dist/chunks/{dialog-page.1ZVnUqpT.js → dialog-page.zWrBSgBD.js} +3 -3
  116. package/dist/chunks/dialog-page.zWrBSgBD.js.map +1 -0
  117. package/dist/chunks/{dropdown-default-textbox.CGsOngY1.js → dropdown-default-textbox.MkU0tMf1.js} +29 -29
  118. package/dist/chunks/dropdown-default-textbox.MkU0tMf1.js.map +1 -0
  119. package/dist/chunks/{dropdown-tag.hIiGmmBD.js → dropdown-tag.DvQQIJsw.js} +134 -122
  120. package/dist/chunks/dropdown-tag.DvQQIJsw.js.map +1 -0
  121. package/dist/chunks/{dropdown.GyDAswAO.js → dropdown.bLsoTZbw.js} +350 -339
  122. package/dist/chunks/dropdown.bLsoTZbw.js.map +1 -0
  123. package/dist/chunks/{empty-state.BsKJ-1pT.js → empty-state.Be6M8ivH.js} +2 -2
  124. package/dist/chunks/{empty-state.BsKJ-1pT.js.map → empty-state.Be6M8ivH.js.map} +1 -1
  125. package/dist/chunks/es6.MoTTyETW.js.map +1 -1
  126. package/dist/chunks/{field-label.DSeawpYh.js → field-label.C97CrBI_.js} +3 -3
  127. package/dist/chunks/{field-label.DSeawpYh.js.map → field-label.C97CrBI_.js.map} +1 -1
  128. package/dist/chunks/{file-uploader.DELe6_NM.js → file-uploader.By0MTfKk.js} +87 -88
  129. package/dist/chunks/file-uploader.By0MTfKk.js.map +1 -0
  130. package/dist/chunks/filter-bar.nX73NKNC.js +2948 -0
  131. package/dist/chunks/filter-bar.nX73NKNC.js.map +1 -0
  132. package/dist/chunks/{fixed-scroller.BASYH576.js → fixed-scroller.Dmg8r9QP.js} +3 -3
  133. package/dist/chunks/{fixed-scroller.BASYH576.js.map → fixed-scroller.Dmg8r9QP.js.map} +1 -1
  134. package/dist/chunks/focus-trap.CpNGD7PH.js.map +1 -1
  135. package/dist/chunks/{footer-actions.Bqn-Jp0p.js → footer-actions.BO52wpv-.js} +3 -3
  136. package/dist/chunks/{footer-actions.Bqn-Jp0p.js.map → footer-actions.BO52wpv-.js.map} +1 -1
  137. package/dist/chunks/{form-layout-title.DdRqnXXi.js → form-layout-title.61ESsGAY.js} +20 -12
  138. package/dist/chunks/form-layout-title.61ESsGAY.js.map +1 -0
  139. package/dist/chunks/get-slot-text.DQlZEsId.js.map +1 -1
  140. package/dist/chunks/{header-meta.BXOpbsSR.js → header-meta.C4iaUsfq.js} +13 -10
  141. package/dist/chunks/{header-meta.BXOpbsSR.js.map → header-meta.C4iaUsfq.js.map} +1 -1
  142. package/dist/chunks/{header-with-views.afPw_Czi.js → header-with-views.BLW817ZC.js} +207 -207
  143. package/dist/chunks/header-with-views.BLW817ZC.js.map +1 -0
  144. package/dist/chunks/{header.9kRuPR3K.js → header.DARVAeE9.js} +3 -3
  145. package/dist/chunks/{header.9kRuPR3K.js.map → header.DARVAeE9.js.map} +1 -1
  146. package/dist/chunks/index.pdBj0KQU.js +15 -0
  147. package/dist/chunks/index.pdBj0KQU.js.map +1 -0
  148. package/dist/chunks/{info-icon.CRnO5lpq.js → info-icon.BhOm72U4.js} +3 -3
  149. package/dist/chunks/{info-icon.CRnO5lpq.js.map → info-icon.BhOm72U4.js.map} +1 -1
  150. package/dist/chunks/{input-field-password.JZkGOiMd.js → input-field-password.BtM3-txc.js} +8 -8
  151. package/dist/chunks/input-field-password.BtM3-txc.js.map +1 -0
  152. package/dist/chunks/{input-field-phone-number.CF5P0_yu.js → input-field-phone-number.oaNB69nM.js} +631 -631
  153. package/dist/chunks/{input-field-phone-number.CF5P0_yu.js.map → input-field-phone-number.oaNB69nM.js.map} +1 -1
  154. package/dist/chunks/{input-field.2S8zBviE.js → input-field.D_tADgPG.js} +5 -5
  155. package/dist/chunks/input-field.D_tADgPG.js.map +1 -0
  156. package/dist/chunks/{inspector.C-yVhM15.js → inspector.BKP15cx6.js} +4 -4
  157. package/dist/chunks/inspector.BKP15cx6.js.map +1 -0
  158. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -1
  159. package/dist/chunks/{listbox-option-tag.CtJUykfB.js → listbox-option-tag.uHSB7MO6.js} +9 -9
  160. package/dist/chunks/listbox-option-tag.uHSB7MO6.js.map +1 -0
  161. package/dist/chunks/loading-indicator.Db794TT5.js +33 -0
  162. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -0
  163. package/dist/chunks/{modal-fullscreen.CIxazX33.js → modal-fullscreen.DTT-5rQX.js} +6 -6
  164. package/dist/chunks/{modal-fullscreen.CIxazX33.js.map → modal-fullscreen.DTT-5rQX.js.map} +1 -1
  165. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js → modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js} +6 -6
  166. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.D4TJY7o_.js.map → modal.vue_vue_type_script_setup_true_lang.c3Ma1oAL.js.map} +1 -1
  167. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  168. package/dist/chunks/{pagination.NDwXq6fh.js → pagination.D1Gdo5to.js} +5 -5
  169. package/dist/chunks/pagination.D1Gdo5to.js.map +1 -0
  170. package/dist/chunks/popover.types.BFFy1ChU.js +6 -0
  171. package/dist/chunks/{popover.types.Bp97CGc4.js.map → popover.types.BFFy1ChU.js.map} +1 -1
  172. package/dist/chunks/{popper-container.5cq-eu41.js → popper-container.Uod3yjsR.js} +2 -2
  173. package/dist/chunks/{popper-container.5cq-eu41.js.map → popper-container.Uod3yjsR.js.map} +1 -1
  174. package/dist/chunks/{promo-banner.ChT2zKkO.js → promo-banner.B-TLTLEd.js} +3 -3
  175. package/dist/chunks/promo-banner.B-TLTLEd.js.map +1 -0
  176. package/dist/chunks/radio-group.DWNqrkZ3.js +277 -0
  177. package/dist/chunks/radio-group.DWNqrkZ3.js.map +1 -0
  178. package/dist/chunks/{radio-input.odN9FOyr.js → radio-input.CBNE-AkM.js} +13 -14
  179. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -0
  180. package/dist/chunks/{rich-text-editor.D770fUpS.js → rich-text-editor.BK9AivIm.js} +6 -6
  181. package/dist/chunks/{rich-text-editor.D770fUpS.js.map → rich-text-editor.BK9AivIm.js.map} +1 -1
  182. package/dist/chunks/{search-bar.rZ_38y4j.js → search-bar.BD_R-vgA.js} +4 -4
  183. package/dist/chunks/{search-bar.rZ_38y4j.js.map → search-bar.BD_R-vgA.js.map} +1 -1
  184. package/dist/chunks/{secondary-nav.BBE8HyDR.js → secondary-nav.Du2PL7Ok.js} +5 -5
  185. package/dist/chunks/secondary-nav.Du2PL7Ok.js.map +1 -0
  186. package/dist/chunks/{segmented-control.D0SoqGlC.js → segmented-control.BCHGDSrf.js} +47 -45
  187. package/dist/chunks/segmented-control.BCHGDSrf.js.map +1 -0
  188. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  189. package/dist/chunks/{selection-card-group.KK9ZPqiU.js → selection-card-group._RgLiMyQ.js} +5 -5
  190. package/dist/chunks/selection-card-group._RgLiMyQ.js.map +1 -0
  191. package/dist/chunks/{sidepanel.CyPW8jxA.js → sidepanel.CS9CfAWZ.js} +19 -19
  192. package/dist/chunks/{sidepanel.CyPW8jxA.js.map → sidepanel.CS9CfAWZ.js.map} +1 -1
  193. package/dist/chunks/{step.Ci-e1V9E.js → step.CoSuGK16.js} +4 -4
  194. package/dist/chunks/step.CoSuGK16.js.map +1 -0
  195. package/dist/chunks/{structured-list-item.CSkcduKn.js → structured-list-item.BTPh7SPj.js} +6 -6
  196. package/dist/chunks/{structured-list-item.CSkcduKn.js.map → structured-list-item.BTPh7SPj.js.map} +1 -1
  197. package/dist/chunks/{summary-grid.types.C-gcwqwB.js → summary-grid.types.ByQ4u19J.js} +6 -6
  198. package/dist/chunks/{summary-grid.types.C-gcwqwB.js.map → summary-grid.types.ByQ4u19J.js.map} +1 -1
  199. package/dist/chunks/{tab.8bEkiAkk.js → tab.CD5Eu6ql.js} +3 -3
  200. package/dist/chunks/tab.CD5Eu6ql.js.map +1 -0
  201. package/dist/chunks/{tag.BFYNxO6t.js → tag.CEmpyuYX.js} +2 -2
  202. package/dist/chunks/{tag.BFYNxO6t.js.map → tag.CEmpyuYX.js.map} +1 -1
  203. package/dist/chunks/textarea.C1jkfowf.js +246 -0
  204. package/dist/chunks/textarea.C1jkfowf.js.map +1 -0
  205. package/dist/chunks/{timeline-item.BiivSMPD.js → timeline-item.C8PA_w7m.js} +9 -9
  206. package/dist/chunks/timeline-item.C8PA_w7m.js.map +1 -0
  207. package/dist/chunks/{toast.DIhABAW8.js → toast.6oJx7SNq.js} +3 -3
  208. package/dist/chunks/{toast.DIhABAW8.js.map → toast.6oJx7SNq.js.map} +1 -1
  209. package/dist/chunks/toggle.Dd_NA8eH.js +143 -0
  210. package/dist/chunks/toggle.Dd_NA8eH.js.map +1 -0
  211. package/dist/chunks/tooltip.Dp9_ESm_.js +202 -0
  212. package/dist/chunks/tooltip.Dp9_ESm_.js.map +1 -0
  213. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js → tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js} +6 -6
  214. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.KvlJ_dl9.js.map +1 -0
  215. package/dist/chunks/{use-cached-selected-values.CBOWMI4O.js → use-cached-selected-values.C32tjNKy.js} +114 -114
  216. package/dist/chunks/use-cached-selected-values.C32tjNKy.js.map +1 -0
  217. package/dist/chunks/{use-country-items.D_kamcYy.js → use-country-items.Dzbl2UsO.js} +7 -7
  218. package/dist/chunks/use-country-items.Dzbl2UsO.js.map +1 -0
  219. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  220. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  221. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  222. package/dist/code-snippet.js +1 -1
  223. package/dist/country.js +1 -1
  224. package/dist/currency.js +1 -1
  225. package/dist/dashboard-template.js +1 -1
  226. package/dist/dashed-underline.js +1 -1
  227. package/dist/data-grid-template.js +1 -1
  228. package/dist/data-grid.js +1 -1
  229. package/dist/date-picker.js +5 -4
  230. package/dist/date-range-picker.js +5 -4
  231. package/dist/date.js +1 -1
  232. package/dist/dropdown.js +4 -4
  233. package/dist/empty-state.js +1 -1
  234. package/dist/file-uploader.js +1 -1
  235. package/dist/filter-bar.js +5 -4
  236. package/dist/form-layout.js +1 -1
  237. package/dist/header-with-views.js +1 -1
  238. package/dist/header.js +1 -1
  239. package/dist/index.js +405 -329
  240. package/dist/index.js.map +1 -1
  241. package/dist/info-icon.js +1 -1
  242. package/dist/input-field-password.js +1 -1
  243. package/dist/input-field-phone-number.js +1 -1
  244. package/dist/input-field.js +1 -1
  245. package/dist/inspector.js +1 -1
  246. package/dist/internal.js +12 -12
  247. package/dist/loading-indicator.js +1 -1
  248. package/dist/menu.js +1 -1
  249. package/dist/modal-fullscreen.js +1 -1
  250. package/dist/modal.js +2 -2
  251. package/dist/pagination.js +1 -1
  252. package/dist/popover.js +2 -2
  253. package/dist/popper-container.js +1 -1
  254. package/dist/promo-banner.js +1 -1
  255. package/dist/radio-group.js +2 -2
  256. package/dist/rich-text-editor.js +1 -1
  257. package/dist/search-bar.js +2 -2
  258. package/dist/secondary-nav.js +1 -1
  259. package/dist/segmented-control.js +1 -1
  260. package/dist/selection-card.js +1 -1
  261. package/dist/sidepanel.js +1 -1
  262. package/dist/stepper.js +1 -1
  263. package/dist/structured-list.js +1 -1
  264. package/dist/styles/bento-dark.css +25 -15
  265. package/dist/styles/bento-light.css +9 -3
  266. package/dist/styles/bento.css +9 -3
  267. package/dist/styles/legacy.css +9 -3
  268. package/dist/styles/styleguide.css +9 -3
  269. package/dist/summary-grid.js +1 -1
  270. package/dist/tabs.js +1 -1
  271. package/dist/tag.js +1 -1
  272. package/dist/textarea.js +1 -1
  273. package/dist/timeline.js +1 -1
  274. package/dist/toast.js +1 -1
  275. package/dist/toggle.js +1 -1
  276. package/dist/tutorial.js +1 -1
  277. package/dist/use-form-v4.js.map +1 -1
  278. package/dist/web-types.json +1 -1
  279. package/package.json +14 -12
  280. package/dist/chunks/avatar.Dq59yj6m.js.map +0 -1
  281. package/dist/chunks/base-modal.Djw4pVal.js.map +0 -1
  282. package/dist/chunks/button-actions.D1eBtYgZ.js.map +0 -1
  283. package/dist/chunks/button.C-MAa6ut.js.map +0 -1
  284. package/dist/chunks/calendar.B1a_mV-Q.js.map +0 -1
  285. package/dist/chunks/card.B9lWURmF.js.map +0 -1
  286. package/dist/chunks/country.RVvsGwuV.js +0 -99
  287. package/dist/chunks/country.RVvsGwuV.js.map +0 -1
  288. package/dist/chunks/currency.CN4UnCx8.js.map +0 -1
  289. package/dist/chunks/data-grid._xo6LEB-.js +0 -4010
  290. package/dist/chunks/data-grid._xo6LEB-.js.map +0 -1
  291. package/dist/chunks/date-input.BqBdAO1E.js.map +0 -1
  292. package/dist/chunks/date-picker.Bkz4GmyC.js +0 -319
  293. package/dist/chunks/date-picker.Bkz4GmyC.js.map +0 -1
  294. package/dist/chunks/date-range-picker.9Zlg9xnH.js +0 -1171
  295. package/dist/chunks/date-range-picker.9Zlg9xnH.js.map +0 -1
  296. package/dist/chunks/dialog-page.1ZVnUqpT.js.map +0 -1
  297. package/dist/chunks/dropdown-default-textbox.CGsOngY1.js.map +0 -1
  298. package/dist/chunks/dropdown-tag.hIiGmmBD.js.map +0 -1
  299. package/dist/chunks/dropdown.GyDAswAO.js.map +0 -1
  300. package/dist/chunks/file-uploader.DELe6_NM.js.map +0 -1
  301. package/dist/chunks/filter-bar.BLhRZzJa.js +0 -3005
  302. package/dist/chunks/filter-bar.BLhRZzJa.js.map +0 -1
  303. package/dist/chunks/form-layout-title.DdRqnXXi.js.map +0 -1
  304. package/dist/chunks/header-with-views.afPw_Czi.js.map +0 -1
  305. package/dist/chunks/i18n.B6g5VX0q.js +0 -3131
  306. package/dist/chunks/i18n.B6g5VX0q.js.map +0 -1
  307. package/dist/chunks/input-field-password.JZkGOiMd.js.map +0 -1
  308. package/dist/chunks/input-field.2S8zBviE.js.map +0 -1
  309. package/dist/chunks/inspector.C-yVhM15.js.map +0 -1
  310. package/dist/chunks/listbox-option-tag.CtJUykfB.js.map +0 -1
  311. package/dist/chunks/loading-indicator.VHi5tbZa.js +0 -44
  312. package/dist/chunks/loading-indicator.VHi5tbZa.js.map +0 -1
  313. package/dist/chunks/pagination.NDwXq6fh.js.map +0 -1
  314. package/dist/chunks/popover.types.Bp97CGc4.js +0 -6
  315. package/dist/chunks/promo-banner.ChT2zKkO.js.map +0 -1
  316. package/dist/chunks/radio-group.BNiif4On.js +0 -329
  317. package/dist/chunks/radio-group.BNiif4On.js.map +0 -1
  318. package/dist/chunks/radio-input.odN9FOyr.js.map +0 -1
  319. package/dist/chunks/secondary-nav.BBE8HyDR.js.map +0 -1
  320. package/dist/chunks/segmented-control.D0SoqGlC.js.map +0 -1
  321. package/dist/chunks/selection-card-group.KK9ZPqiU.js.map +0 -1
  322. package/dist/chunks/step.Ci-e1V9E.js.map +0 -1
  323. package/dist/chunks/tab.8bEkiAkk.js.map +0 -1
  324. package/dist/chunks/textarea.C7RmLKEx.js +0 -295
  325. package/dist/chunks/textarea.C7RmLKEx.js.map +0 -1
  326. package/dist/chunks/timeline-item.BiivSMPD.js.map +0 -1
  327. package/dist/chunks/toggle.C8k7NQ7y.js +0 -161
  328. package/dist/chunks/toggle.C8k7NQ7y.js.map +0 -1
  329. package/dist/chunks/tooltip.CEHc6lzU.js +0 -211
  330. package/dist/chunks/tooltip.CEHc6lzU.js.map +0 -1
  331. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.BDCDB169.js.map +0 -1
  332. package/dist/chunks/use-cached-selected-values.CBOWMI4O.js.map +0 -1
  333. package/dist/chunks/use-country-items.D_kamcYy.js.map +0 -1
@@ -0,0 +1,1117 @@
1
+ import { reactive as he, defineComponent as nt, ref as F, computed as S, onMounted as rt, toRaw as Oe, resolveComponent as ve, createElementBlock as _e, openBlock as U, createElementVNode as H, createCommentVNode as q, renderSlot as Pe, createBlock as W, createVNode as z, withCtx as V, createTextVNode as oe, normalizeClass as Ce, toRef as ke, watch as Me, withDirectives as bt, unref as I, withKeys as Le, toDisplayString as Rt, createSlots as St } from "vue";
2
+ import { B as Et } from "./divider.DnKNNyWB.js";
3
+ import { h as wt, B as ht } from "./button-actions.BQ3AFQqt.js";
4
+ import { B as st, d as kt } from "./typography.yBEME_Gu.js";
5
+ import { D as Mt } from "./dropdown-default-textbox.MkU0tMf1.js";
6
+ import { e as L, a as Ye, g as Fe } from "./get-date-locale.CAyOIbcp.js";
7
+ import { g as ge } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as Ae } from "./index.pdBj0KQU.js";
9
+ import { e as lt, t as fe, g as ye, i as $, h as A, j as je, k as Ot, l as Ke, m as _t, s as Qe, n as Ct, o as Ge, b as ae, u as Ft, f as ce } from "./calendar.Cqjyxc69.js";
10
+ import { f as He, v as At, D as k } from "./date-format.B8RU7D42.js";
11
+ import { r as _, t as J } from "./index.BrH1t1iu.js";
12
+ import { u as Ut } from "./use-form-layout-loading.D3lALhtC.js";
13
+ import { B as Nt } from "./directive.Cbdox5VL.js";
14
+ import { B as Bt } from "./input-field.D_tADgPG.js";
15
+ import { B as qt } from "./dropdown.bLsoTZbw.js";
16
+ import { B as $t } from "./segmented-control.BCHGDSrf.js";
17
+ import { d as Se } from "./debounce.DUTu11PS.js";
18
+ import { u as Pt } from "./use-has-slot.B7eQSabc.js";
19
+ import { _ as ot } from "./_plugin-vue_export-helper.CHgC5LLL.js";
20
+ import { F as Lt, E as Ve } from "./field-label.C97CrBI_.js";
21
+ import { B as Yt } from "./button-actions.types.BptAXjD8.js";
22
+ import "../assets/date-range-picker.css";
23
+ function it(e, a) {
24
+ _(2, arguments);
25
+ var u = fe(a), r = u * 3;
26
+ return lt(e, r);
27
+ }
28
+ function We(e) {
29
+ _(1, arguments);
30
+ var a = J(e), u = Math.floor(a.getMonth() / 3) + 1;
31
+ return u;
32
+ }
33
+ function ze(e) {
34
+ return _(1, arguments), J(e).getFullYear();
35
+ }
36
+ function Ee(e, a) {
37
+ _(2, arguments);
38
+ var u = J(e), r = J(a);
39
+ return u.getTime() === r.getTime();
40
+ }
41
+ function jt(e, a) {
42
+ _(2, arguments);
43
+ var u = ye(e), r = ye(a);
44
+ return u.getTime() === r.getTime();
45
+ }
46
+ function Je(e) {
47
+ _(1, arguments);
48
+ var a = J(e);
49
+ return a.setMilliseconds(0), a;
50
+ }
51
+ function Xe(e, a) {
52
+ _(2, arguments);
53
+ var u = Je(e), r = Je(a);
54
+ return u.getTime() === r.getTime();
55
+ }
56
+ function Kt(e) {
57
+ return _(1, arguments), $(e, Date.now());
58
+ }
59
+ function Qt(e, a) {
60
+ _(2, arguments);
61
+ var u = J(e), r = fe(a);
62
+ return u.setHours(r), u;
63
+ }
64
+ function Ze(e, a) {
65
+ _(2, arguments);
66
+ var u = J(e), r = fe(a);
67
+ return u.setMilliseconds(r), u;
68
+ }
69
+ function Gt(e, a) {
70
+ _(2, arguments);
71
+ var u = J(e), r = fe(a);
72
+ return u.setMinutes(r), u;
73
+ }
74
+ function Ht(e, a) {
75
+ _(2, arguments);
76
+ var u = J(e), r = fe(a);
77
+ return u.setSeconds(r), u;
78
+ }
79
+ function Vt(e, a) {
80
+ _(2, arguments);
81
+ var u = fe(a);
82
+ return it(e, -u);
83
+ }
84
+ function ie(e) {
85
+ if (e == null)
86
+ return A(/* @__PURE__ */ new Date());
87
+ const [a, u, r] = e.split("-").map((m) => parseInt(m, 10));
88
+ return new Date(a, u - 1, r);
89
+ }
90
+ const Wt = ({
91
+ firstDayOfWeek: e,
92
+ min: a,
93
+ max: u
94
+ }) => ({ getGranularCalendarLimits: (m) => {
95
+ let D = A(a), c = L(u);
96
+ if ((m == null ? void 0 : m.type) === "weekly") {
97
+ if (m.earliest)
98
+ D = A(m.earliest);
99
+ else {
100
+ const g = je(D, { weekStartsOn: e });
101
+ $(D, g) || (D = A(Ot(Ke(D, { weekStartsOn: e }), 1)));
102
+ }
103
+ if (m.latest)
104
+ c = L(m.latest);
105
+ else {
106
+ const g = Ke(c, { weekStartsOn: e });
107
+ $(c, g) || (c = L(_t(je(c, { weekStartsOn: e }), 1)));
108
+ }
109
+ }
110
+ if ((m == null ? void 0 : m.type) === "monthly") {
111
+ if (m.earliest)
112
+ D = A(m.earliest);
113
+ else {
114
+ const g = Qe(D);
115
+ $(D, g) || (D = Qe(lt(D, 1)));
116
+ }
117
+ if (m.latest)
118
+ c = L(m.latest);
119
+ else {
120
+ const g = Ye(c);
121
+ $(c, g) || (c = Ye(Ct(c, 1)));
122
+ }
123
+ }
124
+ if ((m == null ? void 0 : m.type) === "quarterly") {
125
+ if (m.earliest)
126
+ D = ye(m.earliest);
127
+ else {
128
+ const g = ye(D);
129
+ $(D, g) || (D = ye(it(D, 1)));
130
+ }
131
+ if (m.latest)
132
+ c = L(m.latest);
133
+ else {
134
+ const g = Ge(c);
135
+ $(c, g) || (c = Ge(Vt(c, 1)));
136
+ }
137
+ }
138
+ return { min: D, max: c };
139
+ } }), zt = () => {
140
+ const e = he({
141
+ daily: null,
142
+ weekly: null,
143
+ monthly: null,
144
+ quarterly: null
145
+ });
146
+ return {
147
+ savedRanges: e,
148
+ saveRange: (r, m) => {
149
+ e[r] = m;
150
+ },
151
+ resetSavedRanges: () => {
152
+ e.daily = null, e.weekly = null, e.monthly = null, e.quarterly = null;
153
+ }
154
+ };
155
+ };
156
+ var T = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e.START_DATE_SELECTED = "start-date-selected", e))(T || {});
157
+ const Jt = /[\d]/, Xt = /^\d{2}$/, Zt = /^\d{2}:\d{2}$/, xt = (e) => {
158
+ const { selectionStart: a } = e.target, u = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], r = Jt.test(e.key) || u.includes(e.key), m = [1, 2, 4, 5].includes(a) && e.key === ":";
159
+ !r && !m && e.preventDefault();
160
+ }, xe = (e) => {
161
+ if (!e)
162
+ return e;
163
+ let a = e;
164
+ if (a.length === 1 && parseInt(e, 10) > 2)
165
+ return `0${a}:`;
166
+ const [u, r] = a.slice(-2);
167
+ return [2, 5].includes(a.length) && r === ":" && (a = `${a.slice(0, a.length - 2)}0${u}`), (Xt.test(a) || Zt.test(a)) && (a += ":"), a;
168
+ }, et = {
169
+ "en-US": {
170
+ customRange: "Custom range",
171
+ daily: "Daily",
172
+ dateFrom: "Date from",
173
+ dateTo: "Date to",
174
+ lastMonth: "Last month",
175
+ lastSevenDays: "Last 7 days",
176
+ lastThreeMonths: "Last three months",
177
+ monthly: "Monthly",
178
+ quarterly: "Quarterly",
179
+ timeFrom: "Time from",
180
+ timeTo: "Time to",
181
+ weekly: "Weekly"
182
+ },
183
+ "ja-JP": {
184
+ customRange: "カスタム範囲を選択",
185
+ daily: "毎日",
186
+ lastMonth: "先月",
187
+ lastSevenDays: "過去7日間",
188
+ monthly: "毎月",
189
+ weekly: "毎週"
190
+ },
191
+ "pt-BR": {
192
+ customRange: "Selecione um intervalo personalizado",
193
+ daily: "Diário",
194
+ lastMonth: "Último mês",
195
+ lastSevenDays: "Últimos 7 dias",
196
+ monthly: "Mensal",
197
+ weekly: "Semanal"
198
+ }
199
+ }, tt = 300, at = "customRange", ea = nt({
200
+ i18n: { messages: et },
201
+ name: "date-range-picker-calendar",
202
+ components: {
203
+ BentoDropdown: qt,
204
+ BentoInputField: Bt,
205
+ BentoSegmentedControl: $t,
206
+ BentoTypography: st,
207
+ Calendar: ae
208
+ },
209
+ props: {
210
+ /**
211
+ * Allows user to enter time values in the form
212
+ */
213
+ allowTimeInput: { type: Boolean, default: !1 },
214
+ /**
215
+ * Ranges form persistance data
216
+ */
217
+ dateFormData: {
218
+ type: Object,
219
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
220
+ },
221
+ /**
222
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
223
+ */
224
+ firstDayOfWeek: ae.props.firstDayOfWeek,
225
+ /**
226
+ * A list of available granularities.
227
+ * If present, the date picker will display a segmented control to change granularity.
228
+ */
229
+ granularities: {
230
+ type: Array,
231
+ default: null
232
+ },
233
+ /**
234
+ * Indicate if a date should be disabled or not
235
+ */
236
+ isDateDisabled: ae.props.isDateDisabled,
237
+ /**
238
+ * Set a maximum number of dates to be selectable by the range.
239
+ */
240
+ maxRange: ae.props.maxRange,
241
+ /**
242
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
243
+ */
244
+ min: ae.props.min,
245
+ /**
246
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
247
+ */
248
+ max: ae.props.max,
249
+ /**
250
+ * Number of months rendered on pane
251
+ */
252
+ numberOfMonths: ae.props.numberOfMonths,
253
+ /**
254
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
255
+ */
256
+ showEndDateOnOpen: { type: Boolean, default: !1 },
257
+ /**
258
+ * Enables the custom range selector.
259
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
260
+ * `label` - label of custom range item.
261
+ * `value` - a unique key of the custom range item.
262
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
263
+ */
264
+ quickSelectRanges: {
265
+ type: Array,
266
+ default: void 0
267
+ },
268
+ /**
269
+ * Selected date
270
+ */
271
+ value: { type: Object, default: void 0 },
272
+ /**
273
+ * The type of calendar to display. Defaults to showing days.
274
+ */
275
+ variant: ae.props.variant
276
+ },
277
+ emits: [
278
+ T.CUSTOM_RANGE,
279
+ T.INPUT,
280
+ T.ERROR,
281
+ T.FORM_DATE,
282
+ T.START_DATE_SELECTED
283
+ ],
284
+ setup(e, { emit: a, slots: u }) {
285
+ var Ne, Be, qe, $e;
286
+ const { locale: r, t: m } = Ae({ messages: et }), D = Fe(), c = F({}), g = S(() => e.variant === "month" ? "monthly" : "daily"), n = he({
287
+ startDate: (Ne = e.value) == null ? void 0 : Ne.startDate,
288
+ endDate: (Be = e.value) == null ? void 0 : Be.endDate,
289
+ range: (qe = e.value) == null ? void 0 : qe.range,
290
+ ...e.granularities ? {
291
+ granularity: (($e = e.value) == null ? void 0 : $e.granularity) || g.value
292
+ } : {}
293
+ });
294
+ function y(t) {
295
+ return t ? new Date(
296
+ t.getUTCFullYear(),
297
+ t.getUTCMonth(),
298
+ t.getUTCDate(),
299
+ t.getUTCHours(),
300
+ t.getUTCMinutes(),
301
+ t.getUTCSeconds()
302
+ ) : null;
303
+ }
304
+ const b = S(() => {
305
+ var t, l;
306
+ return (
307
+ // eslint-disable-next-line consistent-return
308
+ ((l = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: d, data: i }) => {
309
+ var h;
310
+ if (!i.endDate) {
311
+ if (i.isRelativeToNow) {
312
+ const O = (h = c.value) == null ? void 0 : h[d];
313
+ return O ? Ee(
314
+ y(O.startDate),
315
+ y(n.startDate)
316
+ ) && Ee(
317
+ y(O.endDate),
318
+ y(n.endDate)
319
+ ) : (
320
+ // If not stored calculated dates, fall back to comparing the quick select item's value
321
+ // with the internal range's stored range identifier.
322
+ d === n.range
323
+ );
324
+ }
325
+ return Ee(
326
+ y(i.startDate),
327
+ y(n.startDate)
328
+ ) && Ee(
329
+ y(n.endDate),
330
+ y(L(n.endDate))
331
+ ) && Kt(y(n.endDate)) && (e.granularities ? i.granularity === n.granularity : !0);
332
+ }
333
+ if (e.allowTimeInput)
334
+ return Xe(
335
+ y(i.startDate),
336
+ y(n.startDate)
337
+ ) && Xe(
338
+ y(i.endDate),
339
+ y(n.endDate)
340
+ ) && (e.granularities ? i.granularity === n.granularity : !0);
341
+ if (i.endDate)
342
+ return $(i.startDate, n.startDate) && $(i.endDate, n.endDate) && (e.granularities ? i.granularity === n.granularity : !0);
343
+ })) == null ? void 0 : l.value) ?? at
344
+ );
345
+ }), Y = S(() => ({
346
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
347
+ })), Te = S(() => [
348
+ { label: m("customRange"), value: at },
349
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
350
+ ]), X = S(
351
+ () => {
352
+ var t;
353
+ return ((t = e.granularities) == null ? void 0 : t.find(({ type: l }) => l === n.granularity)) || null;
354
+ }
355
+ ), w = S(
356
+ () => {
357
+ var t;
358
+ return ((t = e.granularities) == null ? void 0 : t.map(({ type: l, disabled: d }) => ({
359
+ label: m(l),
360
+ value: l,
361
+ disabled: d
362
+ }))) ?? [];
363
+ }
364
+ ), { getGranularCalendarLimits: Z } = Wt(e), f = S(
365
+ () => e.granularities ? Z(X.value) : { min: A(e.min), max: L(e.max) }
366
+ ), {
367
+ adjustDateForQuarterly: ue,
368
+ adjustDateForMonthly: M,
369
+ adjustDateForWeekly: ne,
370
+ adjustStartDateInputForWeekly: x,
371
+ adjustEndDateInputForWeekly: de,
372
+ adjustStartDateInputForMonthly: ee,
373
+ adjustEndDateInputForMonthly: p,
374
+ adjustStartDateInputForQuarterly: me,
375
+ adjustEndDateInputForQuarterly: j
376
+ } = Ft(e.firstDayOfWeek), { savedRanges: P, saveRange: re, resetSavedRanges: C } = zt(), v = (t) => {
377
+ var l;
378
+ return t ? ce(t, k.NUMERIC_DATE_YEAR_FIRST, {
379
+ locale: D[(l = r.value) == null ? void 0 : l.substring(0, 2)] || D.enUS
380
+ }) : "";
381
+ }, E = (t) => {
382
+ var l;
383
+ return t ? ce(t, k.HOUR_MINUTE_SECONDS, {
384
+ locale: D[(l = r.value) == null ? void 0 : l.substring(0, 2)] || D.enUS
385
+ }) : "";
386
+ }, K = F(!1), se = F(!1), Q = F(!1), G = F(!1), o = he({
387
+ startDate: e.dateFormData.startDate,
388
+ endDate: e.dateFormData.endDate,
389
+ startTime: e.dateFormData.startTime,
390
+ endTime: e.dateFormData.endTime
391
+ }), pe = (t, l) => {
392
+ let d = new Date(t);
393
+ const [i, h, O] = l.split(":");
394
+ return d = Qt(d, parseInt(i, 10)), d = Gt(d, parseInt(h, 10)), d = Ht(d, parseInt(O, 10)), d;
395
+ }, Ie = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), De = (t, l) => {
396
+ const d = () => {
397
+ if (l && R(l)) {
398
+ const i = pe(new Date(l), t);
399
+ if (e.min && i < Ze(e.min, 0) || e.max && i > Ze(e.max, 0))
400
+ return !1;
401
+ }
402
+ return !0;
403
+ };
404
+ return Ie(t) && d();
405
+ }, N = (t, l) => !l || !Ie(l) || e.variant === "month" ? t : pe(new Date(t), l), s = (t) => {
406
+ o.startTime = E(
407
+ e.min && e.allowTimeInput && $(e.min, t.startDate) ? e.min : A(t.startDate)
408
+ ), o.endTime = E(
409
+ e.max && e.allowTimeInput && $(e.max, t.endDate) ? e.max : L(t.endDate)
410
+ ), n.startDate = N(t.startDate, o.startTime), n.endDate = N(t.endDate, o.endTime), n.range = null, e.granularities && C(), a(T.INPUT, {
411
+ ...n,
412
+ range: b.value
413
+ });
414
+ }, R = (t) => {
415
+ const l = (i) => e.min && A(i) < A(e.min) || e.max && A(i) > A(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(A(i)) : !0;
416
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && l(new Date(t));
417
+ };
418
+ rt(() => {
419
+ K.value = !!(e.dateFormData.startDate && !R(e.dateFormData.startDate)), e.allowTimeInput ? Q.value = !!(e.dateFormData.startTime && !De(e.dateFormData.startTime, e.dateFormData.startDate)) : Q.value = !1, se.value = !!(e.dateFormData.endDate && !R(e.dateFormData.endDate)), e.allowTimeInput ? G.value = !!(e.dateFormData.endTime && !De(e.dateFormData.endTime, e.dateFormData.endDate)) : G.value = !1;
420
+ });
421
+ const le = (t) => {
422
+ var l;
423
+ o.startDate = v(t), o.startTime ? Q.value && (o.startTime = (l = e.dateFormData) == null ? void 0 : l.startTime) : o.startTime = E(t), K.value = !1, Q.value = !1, a(T.START_DATE_SELECTED, t);
424
+ }, te = (t) => {
425
+ var l;
426
+ o.endDate = v(t), o.endTime ? G.value && (o.endTime = (l = e.dateFormData) == null ? void 0 : l.endTime) : o.endTime = E(L(t)), se.value = !1, G.value = !1;
427
+ }, B = (t) => {
428
+ const l = e.value[t];
429
+ if (l)
430
+ return l;
431
+ if (e.dateFormData[t] && R(e.dateFormData[t]))
432
+ return new Date(e.dateFormData[t]);
433
+ }, be = Se((t) => {
434
+ var l;
435
+ if (R(t)) {
436
+ let d = t;
437
+ switch (K.value = !1, (l = X.value) == null ? void 0 : l.type) {
438
+ case "weekly":
439
+ d = x(
440
+ t,
441
+ v,
442
+ f.value.min,
443
+ f.value.max
444
+ ), o.startDate = d;
445
+ break;
446
+ case "monthly":
447
+ d = ee(
448
+ t,
449
+ v,
450
+ f.value.min,
451
+ f.value.max
452
+ ), o.startDate = d;
453
+ break;
454
+ case "quarterly":
455
+ d = me(
456
+ t,
457
+ v,
458
+ f.value.min,
459
+ f.value.max
460
+ ), o.startDate = d;
461
+ break;
462
+ }
463
+ const i = ie(d);
464
+ n.startDate = N(i, o.startTime), n.endDate = N(
465
+ ie(o.endDate),
466
+ o.endTime
467
+ ), R(o.endDate) && (n.endDate = N(
468
+ ie(o.endDate),
469
+ o.endTime
470
+ ));
471
+ const h = B("endDate");
472
+ n.range = null, a(T.FORM_DATE, {
473
+ startDate: i,
474
+ endDate: h
475
+ }), a(T.INPUT, {
476
+ ...n,
477
+ range: b.value
478
+ });
479
+ } else
480
+ K.value = !0, a(T.ERROR, { ...o });
481
+ }, tt), ut = (t) => {
482
+ o.startDate = He(t), be(o.startDate);
483
+ }, dt = Se((t) => {
484
+ var l;
485
+ if (R(t)) {
486
+ let d = t;
487
+ switch (se.value = !1, (l = X.value) == null ? void 0 : l.type) {
488
+ case "weekly":
489
+ d = de(
490
+ t,
491
+ v,
492
+ f.value.min,
493
+ f.value.max
494
+ ), o.endDate = d;
495
+ break;
496
+ case "monthly":
497
+ d = p(
498
+ t,
499
+ v,
500
+ f.value.min,
501
+ f.value.max
502
+ ), o.endDate = d;
503
+ break;
504
+ case "quarterly":
505
+ d = j(
506
+ t,
507
+ v,
508
+ f.value.min,
509
+ f.value.max
510
+ ), o.endDate = d;
511
+ break;
512
+ }
513
+ const i = ie(d);
514
+ n.endDate = N(i, o.endTime), R(o.startDate) && (n.startDate = N(
515
+ ie(o.startDate),
516
+ o.startTime
517
+ ));
518
+ const h = B("startDate");
519
+ n.range = null, a(T.FORM_DATE, {
520
+ startDate: h,
521
+ endDate: i
522
+ }), a(T.INPUT, {
523
+ ...n,
524
+ range: b.value
525
+ });
526
+ } else
527
+ se.value = !0, a(T.ERROR, { ...o });
528
+ }, tt), mt = (t) => {
529
+ o.endDate = He(t), dt(o.endDate);
530
+ }, Dt = (t) => {
531
+ At(t);
532
+ }, ct = Se((t) => {
533
+ if (De(t, e.dateFormData.startDate)) {
534
+ Q.value = !1, n.startDate = N(n.startDate, t);
535
+ const l = B("endDate");
536
+ a(T.FORM_DATE, {
537
+ startDate: n.startDate,
538
+ endDate: l,
539
+ startTime: t,
540
+ endTime: o.endTime ?? e.dateFormData.endTime
541
+ }), a(T.INPUT, {
542
+ ...n,
543
+ range: b.value
544
+ });
545
+ } else
546
+ Q.value = !0, a(T.ERROR, { ...o });
547
+ }), ft = Se((t) => {
548
+ De(t, e.dateFormData.endDate) ? (G.value = !1, n.endDate = N(n.endDate, t), a(T.FORM_DATE, {
549
+ startDate: n.startDate,
550
+ endDate: n.endDate,
551
+ startTime: o.startTime ?? e.dateFormData.startTime,
552
+ endTime: t
553
+ }), a(T.INPUT, {
554
+ ...n,
555
+ range: b.value
556
+ })) : (G.value = !0, a(T.ERROR, { ...o }));
557
+ }), vt = (t) => {
558
+ o.startTime = xe(t), ct(o.startTime);
559
+ }, gt = (t) => {
560
+ o.endTime = xe(t), ft(o.endTime);
561
+ }, yt = (t) => {
562
+ xt(t);
563
+ }, Re = (t, l, d, i) => {
564
+ n.startDate = t, n.endDate = l, d && (n.granularity = d), i && (n.range = i);
565
+ }, Tt = (t) => {
566
+ var d;
567
+ const l = (d = e.quickSelectRanges) == null ? void 0 : d.find(({ value: i }) => i === t);
568
+ if (l) {
569
+ C();
570
+ const i = l.data, h = i.endDate || (i.isRelativeToNow ? new Date(Date.now()) : L(new Date(Date.now()))), O = i.isRelativeToNow && i.timeDifference ? new Date(h.getTime() - i.timeDifference) : i.startDate;
571
+ o.endDate = v(h), o.startDate = v(O), Re(O, h, null, t), e.granularities && (n.granularity = i.granularity || g.value), o.startTime = E(O), o.endTime = E(h), n.startDate = O, n.endDate = h, i.isRelativeToNow && (c.value = {
572
+ ...c.value,
573
+ [t]: {
574
+ startDate: O,
575
+ endDate: h
576
+ }
577
+ }), a(T.CUSTOM_RANGE, {
578
+ ...l.data,
579
+ startDate: O,
580
+ endDate: h,
581
+ range: l.value
582
+ });
583
+ }
584
+ }, pt = {
585
+ weekly: ne,
586
+ monthly: M,
587
+ quarterly: ue
588
+ }, It = (t) => {
589
+ const l = n.granularity;
590
+ if (n.granularity = t, l && re(l, structuredClone(Oe(n))), n.startDate && n.endDate) {
591
+ switch (t) {
592
+ case "quarterly":
593
+ case "monthly":
594
+ case "weekly": {
595
+ if (P[t]) {
596
+ Re(P[t].startDate, P[t].endDate, t);
597
+ break;
598
+ }
599
+ const { startDate: d, endDate: i } = pt[t](
600
+ n.startDate,
601
+ n.endDate,
602
+ f.value.min,
603
+ f.value.max
604
+ );
605
+ Re(d, i, t);
606
+ break;
607
+ }
608
+ case "daily":
609
+ P.daily && Re(P.daily.startDate, P.daily.endDate, t);
610
+ break;
611
+ }
612
+ o.startDate = v(n.startDate), o.endDate = v(n.endDate), a(T.INPUT, {
613
+ ...n,
614
+ range: b.value
615
+ });
616
+ }
617
+ };
618
+ return {
619
+ // Values
620
+ internalRangeDate: n,
621
+ dateTextInput: o,
622
+ endDateError: se,
623
+ endTimeError: G,
624
+ granularityItems: w,
625
+ selectedGranularity: X,
626
+ computedMinMax: f,
627
+ selectedRangeSelectorValue: b,
628
+ startDateError: K,
629
+ startTimeError: Q,
630
+ quickSelectRangeDefaultItems: Te,
631
+ formInputWrapperConditionalClasses: Y,
632
+ // Methods
633
+ hasSlot: Pt(u),
634
+ t: m,
635
+ // Events
636
+ onDateInput: s,
637
+ onDateInputKeyDown: Dt,
638
+ onEndDateInput: mt,
639
+ onEndDateSelected: te,
640
+ onEndTimeInput: gt,
641
+ onGranularityInput: It,
642
+ onRangeSelectorInput: Tt,
643
+ onStartDateInput: ut,
644
+ onStartDateSelected: le,
645
+ onStartTimeInput: vt,
646
+ onTimeInputKeyDown: yt
647
+ };
648
+ }
649
+ }), ta = { class: "b-date-range-picker-calendar" }, aa = { class: "b-date-range-picker-calendar__form-container" }, na = { class: "b-date-range-picker-calendar__form" }, ra = { key: 0 }, sa = { class: "b-date-range-picker-calendar__calendars-container" };
650
+ function la(e, a, u, r, m, D) {
651
+ const c = ve("bento-dropdown"), g = ve("bento-segmented-control"), n = ve("bento-typography"), y = ve("bento-input-field"), b = ve("calendar");
652
+ return U(), _e("div", ta, [
653
+ H("div", aa, [
654
+ H("div", na, [
655
+ e.hasSlot("title") ? Pe(e.$slots, "title", { key: 0 }, void 0, !0) : q("", !0),
656
+ e.quickSelectRanges ? (U(), W(c, {
657
+ key: 1,
658
+ "aria-label": e.t("customRange"),
659
+ items: e.quickSelectRangeDefaultItems,
660
+ value: e.selectedRangeSelectorValue,
661
+ onInput: e.onRangeSelectorInput
662
+ }, null, 8, ["aria-label", "items", "value", "onInput"])) : q("", !0),
663
+ e.granularities ? (U(), W(g, {
664
+ key: 2,
665
+ items: e.granularityItems,
666
+ "model-value": e.internalRangeDate.granularity,
667
+ "full-width": "",
668
+ "onUpdate:modelValue": e.onGranularityInput
669
+ }, null, 8, ["items", "model-value", "onUpdate:modelValue"])) : q("", !0),
670
+ H("div", null, [
671
+ z(n, {
672
+ stronger: "",
673
+ el: "span",
674
+ class: "b-date-range-picker-calendar__label"
675
+ }, {
676
+ default: V(() => a[0] || (a[0] = [
677
+ oe(" From ")
678
+ ])),
679
+ _: 1
680
+ }),
681
+ H("div", {
682
+ class: Ce(e.formInputWrapperConditionalClasses)
683
+ }, [
684
+ z(y, {
685
+ "aria-label": e.t("dateFrom"),
686
+ value: e.dateTextInput.startDate,
687
+ error: e.startDateError,
688
+ class: "b-date-range-picker-calendar__form-input",
689
+ onInput: e.onStartDateInput,
690
+ onKeydown: e.onDateInputKeyDown
691
+ }, {
692
+ description: V(() => a[1] || (a[1] = [
693
+ oe("YYYY-MM-DD")
694
+ ])),
695
+ _: 1
696
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
697
+ e.allowTimeInput ? (U(), W(y, {
698
+ key: 0,
699
+ "aria-label": e.t("timeFrom"),
700
+ value: e.dateTextInput.startTime,
701
+ error: e.startTimeError,
702
+ class: "b-date-range-picker-calendar__form-input",
703
+ onInput: e.onStartTimeInput,
704
+ onKeydown: e.onTimeInputKeyDown
705
+ }, {
706
+ description: V(() => a[2] || (a[2] = [
707
+ oe("HH:MM:SS")
708
+ ])),
709
+ _: 1
710
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : q("", !0)
711
+ ], 2)
712
+ ]),
713
+ H("div", null, [
714
+ z(n, {
715
+ stronger: "",
716
+ el: "span",
717
+ class: "b-date-range-picker-calendar__label"
718
+ }, {
719
+ default: V(() => a[3] || (a[3] = [
720
+ oe(" To ")
721
+ ])),
722
+ _: 1
723
+ }),
724
+ H("div", {
725
+ class: Ce(e.formInputWrapperConditionalClasses)
726
+ }, [
727
+ z(y, {
728
+ class: "b-date-range-picker-calendar__form-input",
729
+ "aria-label": e.t("dateTo"),
730
+ value: e.dateTextInput.endDate,
731
+ error: e.endDateError,
732
+ onInput: e.onEndDateInput,
733
+ onKeydown: e.onDateInputKeyDown
734
+ }, {
735
+ description: V(() => a[4] || (a[4] = [
736
+ oe("YYYY-MM-DD")
737
+ ])),
738
+ _: 1
739
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
740
+ e.allowTimeInput ? (U(), W(y, {
741
+ key: 0,
742
+ "aria-label": e.t("timeTo"),
743
+ value: e.dateTextInput.endTime,
744
+ error: e.endTimeError,
745
+ class: "b-date-range-picker-calendar__form-input",
746
+ onInput: e.onEndTimeInput,
747
+ onKeydown: e.onTimeInputKeyDown
748
+ }, {
749
+ description: V(() => a[5] || (a[5] = [
750
+ oe("HH:MM:SS")
751
+ ])),
752
+ _: 1
753
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : q("", !0)
754
+ ], 2)
755
+ ])
756
+ ]),
757
+ e.hasSlot("actions") ? (U(), _e("div", ra, [
758
+ Pe(e.$slots, "actions", {}, void 0, !0)
759
+ ])) : q("", !0)
760
+ ]),
761
+ H("div", sa, [
762
+ z(b, {
763
+ value: e.internalRangeDate,
764
+ "first-day-of-week": e.firstDayOfWeek,
765
+ "is-date-disabled": e.isDateDisabled,
766
+ "max-range": e.maxRange,
767
+ min: e.computedMinMax.min,
768
+ max: e.computedMinMax.max,
769
+ "number-of-months": e.numberOfMonths,
770
+ "show-end-date-on-open": e.showEndDateOnOpen,
771
+ granularity: e.selectedGranularity,
772
+ variant: e.variant,
773
+ "is-range": "",
774
+ onInput: e.onDateInput,
775
+ onStartDateSelected: e.onStartDateSelected,
776
+ onEndDateSelected: e.onEndDateSelected
777
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant", "onInput", "onStartDateSelected", "onEndDateSelected"])
778
+ ])
779
+ ]);
780
+ }
781
+ const oa = /* @__PURE__ */ ot(ea, [["render", la], ["__scopeId", "data-v-dd07a8f5"]]), Ue = {
782
+ "en-US": {
783
+ apply: "Apply",
784
+ cancel: "Cancel",
785
+ dateRangePicker: "Date range picker {name}",
786
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
787
+ quarter: "Q{quarter} {year}",
788
+ selectDate: "Select a date",
789
+ selectDateRange: "Select a date range",
790
+ selectedDateIsNotAvailable: "Selected date is not available"
791
+ },
792
+ "ja-JP": {
793
+ apply: "適用",
794
+ cancel: "キャンセル",
795
+ selectDate: "日付を選択"
796
+ },
797
+ "pt-BR": {
798
+ apply: "Aplicar",
799
+ cancel: "Cancelar",
800
+ selectDate: "Selecione uma data"
801
+ }
802
+ }, ia = ({
803
+ datePickerValue: e,
804
+ isDateIncorrect: a,
805
+ quickSelectRanges: u,
806
+ isMonthVariant: r,
807
+ withTimeInput: m,
808
+ placeholder: D
809
+ }) => {
810
+ var w, Z, f, ue;
811
+ const { locale: c, t: g } = Ae({ messages: Ue }), n = Fe(), y = (M) => !!M && !isNaN(M.getTime()), b = (M, ne) => {
812
+ var x;
813
+ return y(M) ? ce(M, ne, {
814
+ locale: n[(x = c.value) == null ? void 0 : x.substring(0, 2)] || n.enUS
815
+ }) : void 0;
816
+ }, Y = he({
817
+ startDate: b((w = e.value) == null ? void 0 : w.startDate, k.NUMERIC_DATE_YEAR_FIRST),
818
+ endDate: b((Z = e.value) == null ? void 0 : Z.endDate, k.NUMERIC_DATE_YEAR_FIRST),
819
+ startTime: b((f = e.value) == null ? void 0 : f.startDate, k.HOUR_MINUTE_SECONDS),
820
+ endTime: b((ue = e.value) == null ? void 0 : ue.endDate, k.HOUR_MINUTE_SECONDS)
821
+ });
822
+ return {
823
+ // Values
824
+ dateDisplayValue: S(() => {
825
+ var re;
826
+ if (a.value)
827
+ return `${Y.startDate || ""} - ${Y.endDate || ""}`;
828
+ if (!e.value || !e.value.startDate && !e.value.endDate)
829
+ return (D == null ? void 0 : D.value) || g("selectDateRange");
830
+ if ((re = u.value) != null && re.length) {
831
+ const C = u.value.find(({ value: v }) => {
832
+ var E;
833
+ return v === ((E = e.value) == null ? void 0 : E.range);
834
+ });
835
+ if (C)
836
+ return C.label;
837
+ }
838
+ if (e.value.granularity === "quarterly") {
839
+ const { startDate: C, endDate: v } = e.value, E = g("quarter", { quarter: We(C), year: ze(C) });
840
+ if (jt(C, v))
841
+ return E;
842
+ const K = g("quarter", { quarter: We(v), year: ze(v) });
843
+ return `${E} - ${K}`;
844
+ }
845
+ const { startDate: M, endDate: ne, startTime: x, endTime: de } = Y, ee = r != null && r.value ? k.LONG_MONTH_YEAR : k.FULL_DATE_MONTH_FIRST, p = b(ie(M), ee), me = b(ie(ne), ee);
846
+ if (!m.value)
847
+ return `${p} - ${me}`;
848
+ const j = [p, x].filter(Boolean).join(", "), P = [me, de].filter(Boolean).join(", ");
849
+ return `${j} - ${P}`;
850
+ }),
851
+ textInputDisplayValue: Y,
852
+ // Methods
853
+ formatTextInputDisplayValue: () => ""
854
+ };
855
+ };
856
+ var we = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(we || {});
857
+ const ua = { class: "b-date-range-picker" }, da = { class: "b-date-range-picker__footer" }, ma = {
858
+ i18n: { messages: Ue },
859
+ name: "bento-date-range-picker"
860
+ }, Da = /* @__PURE__ */ nt({
861
+ ...ma,
862
+ props: {
863
+ allowTimeInput: { type: Boolean },
864
+ firstDayOfWeek: { default: 1 },
865
+ granularities: {},
866
+ isDateDisabled: { type: Function, default: void 0 },
867
+ showEndDateOnOpen: { type: Boolean, default: !1 },
868
+ quickSelectRanges: { default: void 0 },
869
+ maxRange: { default: null },
870
+ min: { default: null },
871
+ max: { default: null },
872
+ numberOfMonths: { default: void 0 },
873
+ value: { default: null },
874
+ variant: { default: void 0 },
875
+ hasActions: { type: Boolean, default: !1 },
876
+ description: { default: void 0 },
877
+ disabled: { type: Boolean, default: !1 },
878
+ errorMessage: { default: null },
879
+ label: { default: void 0 },
880
+ optional: { type: Boolean, default: !1 },
881
+ placeholder: { default: null },
882
+ readonly: { type: Boolean, default: !1 },
883
+ required: { type: Boolean, default: !1 },
884
+ tooltipText: { default: null }
885
+ },
886
+ emits: [we.INPUT],
887
+ setup(e, { emit: a }) {
888
+ const u = a, r = e, { locale: m, t: D } = Ae({ messages: Ue }), c = Fe(), g = ge("bento-date-range-picker-container"), n = ge("bento-date-range-picker-label"), y = ge("bento-date-range-picker-description"), b = ge("bento-date-range-picker-error"), Y = ge("bento-date-range-picker-date-error"), Te = S(() => r.label || D("dateRangePicker", { name: g })), X = S(() => (r == null ? void 0 : r.quickSelectRanges) && r.quickSelectRanges.map((s) => {
889
+ const R = s.data.endDate ? void 0 : new Date(Date.now()).getTime() - s.data.startDate.getTime();
890
+ return {
891
+ ...s,
892
+ data: {
893
+ ...s.data,
894
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
895
+ timeDifference: R
896
+ }
897
+ };
898
+ })), w = F(!1), Z = F(null), f = F(!1), { isReadOnly: ue } = Ut(ke(r, "readonly"));
899
+ Me(
900
+ () => r.disabled,
901
+ () => {
902
+ r.disabled && f.value && (f.value = !1);
903
+ }
904
+ );
905
+ const M = S(() => r.hasActions ? !E.value && w.value : w.value), ne = S(() => ({
906
+ "b-date-range-picker__description--error": !!r.errorMessage || M.value
907
+ })), x = S(() => r.variant === "month"), de = S(() => r.allowTimeInput && r.variant !== "month"), { dateDisplayValue: ee, textInputDisplayValue: p } = ia({
908
+ datePickerValue: ke(r, "value"),
909
+ isDateIncorrect: w,
910
+ quickSelectRanges: X,
911
+ isMonthVariant: x,
912
+ withTimeInput: de,
913
+ placeholder: ke(r, "placeholder")
914
+ }), me = S(
915
+ () => `${r.description ? y : ""} ${r.errorMessage ? b : ""} ${w.value ? Y : ""}`.trim() || null
916
+ ), j = () => {
917
+ f.value = !1;
918
+ }, P = () => {
919
+ f.value = !0;
920
+ }, re = F(ee.value), C = F(
921
+ // textInputDisplayValue is a reactive object
922
+ structuredClone(Oe(p))
923
+ ), v = F(r.value), E = F(!0), K = S(
924
+ () => r.hasActions ? C.value : p
925
+ ), se = S(
926
+ () => r.hasActions ? re.value : ee.value
927
+ );
928
+ rt(() => {
929
+ if (r.hasActions || kt(
930
+ 'BentoDateRangePicker "hasActions" property',
931
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
932
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
933
+ "2.0.0"
934
+ ), r.granularities && r.variant !== "month" && r.granularities.find(({ type: s }) => s === "quarterly"))
935
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
936
+ }), Me(
937
+ () => r.value,
938
+ () => {
939
+ re.value = ee.value, C.value = structuredClone(Oe(p));
940
+ }
941
+ );
942
+ const Q = S(() => [
943
+ {
944
+ title: D("apply"),
945
+ event: () => {
946
+ u(we.INPUT, v.value), j(), E.value = !0;
947
+ },
948
+ disabled: E.value
949
+ },
950
+ {
951
+ title: D("cancel"),
952
+ event: j
953
+ }
954
+ ]);
955
+ Me(v, (s) => {
956
+ if (r.hasActions) {
957
+ E.value = w.value;
958
+ return;
959
+ }
960
+ u(we.INPUT, s);
961
+ });
962
+ const G = (s) => {
963
+ w.value = !1;
964
+ const R = (le, te) => {
965
+ var B;
966
+ return le ? ce(le, te, {
967
+ locale: c[(B = m.value) == null ? void 0 : B.substring(0, 2)] || c.enUS
968
+ }) : void 0;
969
+ };
970
+ p.startDate = R(s.startDate, k.NUMERIC_DATE_YEAR_FIRST), p.endDate = R(s.endDate, k.NUMERIC_DATE_YEAR_FIRST), p.startTime = R(s.startDate, k.HOUR_MINUTE_SECONDS), p.endTime = R(s.endDate, k.HOUR_MINUTE_SECONDS), v.value = s;
971
+ }, o = async () => {
972
+ w.value && (w.value = !1), v.value = null;
973
+ }, pe = () => {
974
+ if (!f.value) {
975
+ f.value = !0;
976
+ return;
977
+ }
978
+ w.value || (f.value = !1);
979
+ }, Ie = (s) => {
980
+ w.value = !1, s.startTime && (p.startTime = s.startTime), s.endTime && (p.endTime = s.endTime);
981
+ }, De = (s) => {
982
+ w.value = !0, p.startDate = s.startDate, p.endDate = s.endDate, v.value = { startDate: null, endDate: null };
983
+ }, N = (s) => {
984
+ if (s) {
985
+ const R = (te, B) => {
986
+ var be;
987
+ return te ? ce(te, B, {
988
+ locale: c[(be = m.value) == null ? void 0 : be.substring(0, 2)] || c.enUS
989
+ }) : void 0;
990
+ }, le = (te) => {
991
+ var B;
992
+ return ce(te, k.NUMERIC_DATE_YEAR_FIRST, {
993
+ locale: c[(B = m.value) == null ? void 0 : B.substring(0, 2)] || c.enUS
994
+ });
995
+ };
996
+ p.startDate = le(s.startDate), p.endDate = le(s.endDate), p.startTime = R(
997
+ s.startDate,
998
+ k.HOUR_MINUTE_SECONDS
999
+ ), p.endTime = R(s.endDate, k.HOUR_MINUTE_SECONDS), v.value = s;
1000
+ }
1001
+ };
1002
+ return (s, R) => bt((U(), _e("div", ua, [
1003
+ s.label ? (U(), W(I(Lt), {
1004
+ key: 0,
1005
+ id: I(n),
1006
+ label: s.label,
1007
+ "tooltip-text": s.tooltipText,
1008
+ optional: s.optional,
1009
+ required: s.required
1010
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : q("", !0),
1011
+ H("div", {
1012
+ onKeydown: Le(pe, ["enter"])
1013
+ }, [
1014
+ z(I(Mt), {
1015
+ ref_key: "inputContainerRef",
1016
+ ref: Z,
1017
+ "always-combobox-is-input": "",
1018
+ ariaControls: I(g),
1019
+ ariaExpanded: f.value,
1020
+ "aria-labelledby": s.label ? I(n) : null,
1021
+ "aria-describedby": me.value,
1022
+ disabled: s.disabled,
1023
+ "is-invalid": !!s.errorMessage || M.value,
1024
+ open: f.value,
1025
+ "display-value": se.value,
1026
+ readonly: I(ue),
1027
+ onOpen: P,
1028
+ onClear: o,
1029
+ onClose: j
1030
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
1031
+ ], 32),
1032
+ M.value ? (U(), W(I(Ve), {
1033
+ key: 1,
1034
+ id: I(Y),
1035
+ "error-message": I(D)("provideDateInAFormat"),
1036
+ class: "b-date-range-picker__error-message"
1037
+ }, null, 8, ["id", "error-message"])) : q("", !0),
1038
+ s.errorMessage ? (U(), W(I(Ve), {
1039
+ key: 2,
1040
+ id: I(b),
1041
+ "error-message": s.errorMessage,
1042
+ class: "b-date-range-picker__error-message"
1043
+ }, null, 8, ["id", "error-message"])) : q("", !0),
1044
+ s.description ? (U(), W(I(st), {
1045
+ key: 3,
1046
+ id: I(y),
1047
+ class: Ce(["b-date-range-picker__description", ne.value]),
1048
+ el: "span"
1049
+ }, {
1050
+ default: V(() => [
1051
+ oe(Rt(s.description), 1)
1052
+ ]),
1053
+ _: 1
1054
+ }, 8, ["id", "class"])) : q("", !0),
1055
+ Z.value ? (U(), W(I(wt), {
1056
+ key: 4,
1057
+ id: I(g),
1058
+ class: "b-date-range-picker__container",
1059
+ open: f.value,
1060
+ "target-element": Z.value,
1061
+ "aria-label": Te.value,
1062
+ position: "bottom-start",
1063
+ "without-space": "",
1064
+ "fit-content": "",
1065
+ "trap-all": "",
1066
+ onKeydown: Le(j, ["esc", "native"])
1067
+ }, {
1068
+ default: V(() => [
1069
+ z(I(oa), {
1070
+ "allow-time-input": de.value,
1071
+ "quick-select-ranges": X.value,
1072
+ value: s.value,
1073
+ "first-day-of-week": s.firstDayOfWeek,
1074
+ granularities: s.granularities,
1075
+ "is-date-disabled": s.isDateDisabled,
1076
+ "max-range": s.maxRange,
1077
+ min: s.min,
1078
+ max: s.max,
1079
+ "number-of-months": s.numberOfMonths,
1080
+ "show-end-date-on-open": s.showEndDateOnOpen,
1081
+ "date-form-data": K.value,
1082
+ variant: s.variant,
1083
+ onCustomRange: N,
1084
+ onInput: G,
1085
+ onError: De,
1086
+ onFormDate: Ie
1087
+ }, St({ _: 2 }, [
1088
+ s.hasActions ? {
1089
+ name: "actions",
1090
+ fn: V(() => [
1091
+ z(I(Et)),
1092
+ H("div", da, [
1093
+ z(I(ht), {
1094
+ actions: Q.value,
1095
+ layout: I(Yt).SPACE_BETWEEN
1096
+ }, null, 8, ["actions", "layout"])
1097
+ ])
1098
+ ]),
1099
+ key: "0"
1100
+ } : void 0
1101
+ ]), 1032, ["allow-time-input", "quick-select-ranges", "value", "first-day-of-week", "granularities", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "date-form-data", "variant"])
1102
+ ]),
1103
+ _: 1
1104
+ }, 8, ["id", "open", "target-element", "aria-label"])) : q("", !0)
1105
+ ])), [
1106
+ [I(Nt), j]
1107
+ ]);
1108
+ }
1109
+ }), Ua = /* @__PURE__ */ ot(Da, [["__scopeId", "data-v-a569926c"]]);
1110
+ export {
1111
+ Ua as B,
1112
+ oa as D,
1113
+ we as a,
1114
+ Kt as b,
1115
+ Ee as i
1116
+ };
1117
+ //# sourceMappingURL=date-range-picker.cmg75lC-.js.map