@adyen/bento-vue3 1.83.0 → 1.84.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 (413) hide show
  1. package/dist/@types/index.d.ts +12481 -12319
  2. package/dist/action-bar.js +1 -1
  3. package/dist/alert.js +1 -1
  4. package/dist/assets/accordion-item.css +1 -1
  5. package/dist/assets/action-bar.css +1 -1
  6. package/dist/assets/ai-button.css +1 -1
  7. package/dist/assets/alert.css +1 -1
  8. package/dist/assets/avatar.css +1 -1
  9. package/dist/assets/base-modal.css +1 -1
  10. package/dist/assets/button-actions-with-menu.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/checkbox-group.css +1 -1
  16. package/dist/assets/checkbox-input.css +1 -1
  17. package/dist/assets/checkbox.css +1 -1
  18. package/dist/assets/chip.css +1 -1
  19. package/dist/assets/code-snippet.css +1 -1
  20. package/dist/assets/controls-group.css +1 -1
  21. package/dist/assets/country.css +1 -1
  22. package/dist/assets/currency.css +1 -1
  23. package/dist/assets/dashboard-section.css +1 -1
  24. package/dist/assets/dashed-underline.css +1 -1
  25. package/dist/assets/data-grid-template.css +1 -1
  26. package/dist/assets/data-grid.css +1 -1
  27. package/dist/assets/date-picker.css +1 -1
  28. package/dist/assets/date-range-picker.css +1 -1
  29. package/dist/assets/date.css +1 -1
  30. package/dist/assets/dialog-page.css +1 -1
  31. package/dist/assets/divider.css +1 -1
  32. package/dist/assets/dropdown-default-textbox.css +1 -1
  33. package/dist/assets/dropdown-tag.css +1 -1
  34. package/dist/assets/dropdown.css +1 -1
  35. package/dist/assets/empty-state.css +1 -1
  36. package/dist/assets/field-label.css +1 -1
  37. package/dist/assets/file-uploader.css +1 -1
  38. package/dist/assets/filter-bar.css +1 -1
  39. package/dist/assets/fixed-scroller.css +1 -1
  40. package/dist/assets/footer-actions.css +1 -1
  41. package/dist/assets/form-layout-title.css +1 -1
  42. package/dist/assets/grid-layout.css +1 -1
  43. package/dist/assets/header-meta.css +1 -1
  44. package/dist/assets/header-with-views.css +1 -1
  45. package/dist/assets/header.css +1 -1
  46. package/dist/assets/index.css +1 -1
  47. package/dist/assets/info-icon.css +1 -1
  48. package/dist/assets/input-field-password.css +1 -1
  49. package/dist/assets/input-field.css +1 -1
  50. package/dist/assets/inspector.css +1 -1
  51. package/dist/assets/layout-row.css +1 -1
  52. package/dist/assets/link.css +1 -1
  53. package/dist/assets/listbox-option-tag.css +1 -1
  54. package/dist/assets/loading-indicator.css +1 -1
  55. package/dist/assets/modal-fullscreen.css +1 -1
  56. package/dist/assets/pagination.css +1 -1
  57. package/dist/assets/payment-method.css +1 -1
  58. package/dist/assets/popper-container.css +1 -1
  59. package/dist/assets/promo-banner.css +1 -1
  60. package/dist/assets/radio-group.css +1 -1
  61. package/dist/assets/radio-input.css +1 -1
  62. package/dist/assets/rich-text-editor.css +1 -1
  63. package/dist/assets/secondary-nav.css +1 -1
  64. package/dist/assets/segmented-control.css +1 -1
  65. package/dist/assets/selection-card-group.css +1 -1
  66. package/dist/assets/sidepanel.css +1 -1
  67. package/dist/assets/status.css +1 -1
  68. package/dist/assets/step.css +1 -1
  69. package/dist/assets/structured-list-item.css +1 -1
  70. package/dist/assets/summary-grid.css +1 -1
  71. package/dist/assets/tab.css +1 -1
  72. package/dist/assets/tag.css +1 -1
  73. package/dist/assets/textarea.css +1 -1
  74. package/dist/assets/timeline-item.css +1 -1
  75. package/dist/assets/toast.css +1 -1
  76. package/dist/assets/toggle.css +1 -1
  77. package/dist/assets/tooltip.css +1 -1
  78. package/dist/assets/tutorial.css +1 -1
  79. package/dist/assets/use-cached-selected-values.css +1 -1
  80. package/dist/button.js +1 -1
  81. package/dist/card.js +1 -1
  82. package/dist/checkbox.js +2 -2
  83. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -1
  84. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -1
  85. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -1
  86. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -1
  87. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -1
  88. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -1
  89. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -1
  90. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -1
  91. package/dist/chunks/accordion-item.yRlQj4VF.js.map +1 -1
  92. package/dist/chunks/{action-bar.D5y9JWnT.js → action-bar.CriH15oF.js} +11 -9
  93. package/dist/chunks/{action-bar.D5y9JWnT.js.map → action-bar.CriH15oF.js.map} +1 -1
  94. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -1
  95. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -1
  96. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -1
  97. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -1
  98. package/dist/chunks/{alert.CYaIUaUn.js → alert.BYcw-u3b.js} +48 -40
  99. package/dist/chunks/{alert.CYaIUaUn.js.map → alert.BYcw-u3b.js.map} +1 -1
  100. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -1
  101. package/dist/chunks/avatar.CNGMjwg3.js.map +1 -1
  102. package/dist/chunks/base-button.CUd03aA2.js.map +1 -1
  103. package/dist/chunks/{base-modal.B8HZItVN.js → base-modal.D3GyeCFT.js} +44 -42
  104. package/dist/chunks/{base-modal.B8HZItVN.js.map → base-modal.D3GyeCFT.js.map} +1 -1
  105. package/dist/chunks/bin.DuHlEQBO.js.map +1 -1
  106. package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js → button-actions-with-menu.B8xFgt-p.js} +2 -2
  107. package/dist/chunks/{button-actions-with-menu.LlNWeD3B.js.map → button-actions-with-menu.B8xFgt-p.js.map} +1 -1
  108. package/dist/chunks/{button-actions.O0cnu1_g.js → button-actions.Crj4QFAd.js} +445 -413
  109. package/dist/chunks/button-actions.Crj4QFAd.js.map +1 -0
  110. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -1
  111. package/dist/chunks/button.CSp48LJt.js.map +1 -1
  112. package/dist/chunks/calendar.DKPx_cQU.js +1237 -0
  113. package/dist/chunks/calendar.DKPx_cQU.js.map +1 -0
  114. package/dist/chunks/{card.Dqt_BOMI.js → card.C_03IYJe.js} +2 -2
  115. package/dist/chunks/{card.Dqt_BOMI.js.map → card.C_03IYJe.js.map} +1 -1
  116. package/dist/chunks/{checkbox-group.S0FqSg9s.js → checkbox-group.DZrhxIHp.js} +4 -4
  117. package/dist/chunks/{checkbox-group.S0FqSg9s.js.map → checkbox-group.DZrhxIHp.js.map} +1 -1
  118. package/dist/chunks/{checkbox-input.BXNGT9U0.js → checkbox-input.Dk9iFQQe.js} +62 -57
  119. package/dist/chunks/checkbox-input.Dk9iFQQe.js.map +1 -0
  120. package/dist/chunks/{checkbox.B_WaHSop.js → checkbox.BWgWtiLJ.js} +10 -10
  121. package/dist/chunks/{checkbox.B_WaHSop.js.map → checkbox.BWgWtiLJ.js.map} +1 -1
  122. package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -1
  123. package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -1
  124. package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -1
  125. package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -1
  126. package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -1
  127. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -1
  128. package/dist/chunks/{code-snippet.Bfq5pgmE.js → code-snippet.4HtbNUDE.js} +78 -76
  129. package/dist/chunks/code-snippet.4HtbNUDE.js.map +1 -0
  130. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -1
  131. package/dist/chunks/constructNow.DuaJst0D.js +8 -0
  132. package/dist/chunks/{constructNow.BhymNmy5.js.map → constructNow.DuaJst0D.js.map} +1 -1
  133. package/dist/chunks/{controls-group.CdnMYv1j.js → controls-group.DpFv8c4E.js} +2 -2
  134. package/dist/chunks/{controls-group.CdnMYv1j.js.map → controls-group.DpFv8c4E.js.map} +1 -1
  135. package/dist/chunks/{copy.Cg-VyVQ4.js → copy.xg9ElNxd.js} +35 -33
  136. package/dist/chunks/{copy.Cg-VyVQ4.js.map → copy.xg9ElNxd.js.map} +1 -1
  137. package/dist/chunks/country.types.DaVCMxk-.js +773 -0
  138. package/dist/chunks/{country.types.C0Q_hhgJ.js.map → country.types.DaVCMxk-.js.map} +1 -1
  139. package/dist/chunks/{country.CPGT2RsT.js → country.vSfTQW51.js} +2 -2
  140. package/dist/chunks/{country.CPGT2RsT.js.map → country.vSfTQW51.js.map} +1 -1
  141. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -1
  142. package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -1
  143. package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -1
  144. package/dist/chunks/cross.B92GxFTY.js.map +1 -1
  145. package/dist/chunks/currency.DijmAkAB.js.map +1 -1
  146. package/dist/chunks/{dashboard-section.CGS38Swm.js → dashboard-section.D_k3_Z2T.js} +3 -3
  147. package/dist/chunks/{dashboard-section.CGS38Swm.js.map → dashboard-section.D_k3_Z2T.js.map} +1 -1
  148. package/dist/chunks/{dashed-underline.DV3p60Ne.js → dashed-underline.B0z2ZZh7.js} +2 -2
  149. package/dist/chunks/{dashed-underline.DV3p60Ne.js.map → dashed-underline.B0z2ZZh7.js.map} +1 -1
  150. package/dist/chunks/{data-grid-template.D2g9KHSZ.js → data-grid-template.DdIrvOXp.js} +4 -4
  151. package/dist/chunks/{data-grid-template.D2g9KHSZ.js.map → data-grid-template.DdIrvOXp.js.map} +1 -1
  152. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -1
  153. package/dist/chunks/{data-grid.ChGEI-jV.js → data-grid.BBkF9ojy.js} +1289 -1207
  154. package/dist/chunks/{data-grid.ChGEI-jV.js.map → data-grid.BBkF9ojy.js.map} +1 -1
  155. package/dist/chunks/date-input.BbZqj10S.js +15 -0
  156. package/dist/chunks/date-input.BbZqj10S.js.map +1 -0
  157. package/dist/chunks/date-picker.dyp0YK9_.js +249 -0
  158. package/dist/chunks/date-picker.dyp0YK9_.js.map +1 -0
  159. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -1
  160. package/dist/chunks/date-range-picker.TsUvRvGy.js +1896 -0
  161. package/dist/chunks/date-range-picker.TsUvRvGy.js.map +1 -0
  162. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -1
  163. package/dist/chunks/date.CL55prL0.js.map +1 -1
  164. package/dist/chunks/de.DvtL0g75.js +478 -0
  165. package/dist/chunks/de.DvtL0g75.js.map +1 -0
  166. package/dist/chunks/debounce.DUTu11PS.js.map +1 -1
  167. package/dist/chunks/delight.CDBAFnwC.js.map +1 -1
  168. package/dist/chunks/delight.xKDCvvaS.js.map +1 -1
  169. package/dist/chunks/{dialog-page.CTEyyZ_R.js → dialog-page.DaZSlMzY.js} +23 -17
  170. package/dist/chunks/{dialog-page.CTEyyZ_R.js.map → dialog-page.DaZSlMzY.js.map} +1 -1
  171. package/dist/chunks/differenceInMonths.DcFDl4eH.js +43 -0
  172. package/dist/chunks/differenceInMonths.DcFDl4eH.js.map +1 -0
  173. package/dist/chunks/directive.Cbdox5VL.js.map +1 -1
  174. package/dist/chunks/divider.Dho4_hQ7.js.map +1 -1
  175. package/dist/chunks/dot.ob6N-5Um.js.map +1 -1
  176. package/dist/chunks/dropdown-default-textbox.DFtFMu5G.js.map +1 -1
  177. package/dist/chunks/{dropdown-tag.BWnAPzEN.js → dropdown-tag.DtpDzWl4.js} +4 -4
  178. package/dist/chunks/{dropdown-tag.BWnAPzEN.js.map → dropdown-tag.DtpDzWl4.js.map} +1 -1
  179. package/dist/chunks/{dropdown.CtP9keJ4.js → dropdown.D0_8f9Mz.js} +114 -110
  180. package/dist/chunks/{dropdown.CtP9keJ4.js.map → dropdown.D0_8f9Mz.js.map} +1 -1
  181. package/dist/chunks/empty-state.D_ifpeU-.js.map +1 -1
  182. package/dist/chunks/en-GB.DCGuCmAv.js +46 -0
  183. package/dist/chunks/en-GB.DCGuCmAv.js.map +1 -0
  184. package/dist/chunks/{getTimezoneOffsetInMilliseconds.B7sxiukN.js → en-US.BZii9jNW.js} +160 -196
  185. package/dist/chunks/en-US.BZii9jNW.js.map +1 -0
  186. package/dist/chunks/es.bz0mzkMq.js +374 -0
  187. package/dist/chunks/es.bz0mzkMq.js.map +1 -0
  188. package/dist/chunks/es6.C1DXQV6f.js +12 -0
  189. package/dist/chunks/es6.C1DXQV6f.js.map +1 -0
  190. package/dist/chunks/events.BQOQSSb7.js.map +1 -1
  191. package/dist/chunks/expand.C9IAqYYL.js.map +1 -1
  192. package/dist/chunks/{field-label.CfizwLcQ.js → field-label.D7vU2Icm.js} +8 -8
  193. package/dist/chunks/{field-label.CfizwLcQ.js.map → field-label.D7vU2Icm.js.map} +1 -1
  194. package/dist/chunks/{file-uploader.C9qXXyin.js → file-uploader.BmBKLzIx.js} +253 -207
  195. package/dist/chunks/{file-uploader.C9qXXyin.js.map → file-uploader.BmBKLzIx.js.map} +1 -1
  196. package/dist/chunks/filter-bar.D0BEt7ia.js +3363 -0
  197. package/dist/chunks/filter-bar.D0BEt7ia.js.map +1 -0
  198. package/dist/chunks/{fixed-scroller.DCjtCzKy.js → fixed-scroller.e56yJp7Q.js} +52 -44
  199. package/dist/chunks/{fixed-scroller.DCjtCzKy.js.map → fixed-scroller.e56yJp7Q.js.map} +1 -1
  200. package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -1
  201. package/dist/chunks/{footer-actions.CTCV-SW-.js → footer-actions.BqNvwVk7.js} +2 -2
  202. package/dist/chunks/{footer-actions.CTCV-SW-.js.map → footer-actions.BqNvwVk7.js.map} +1 -1
  203. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -1
  204. package/dist/chunks/{form-layout-title.Dvlo-2z_.js → form-layout-title.CPsEzRzS.js} +2 -2
  205. package/dist/chunks/{form-layout-title.Dvlo-2z_.js.map → form-layout-title.CPsEzRzS.js.map} +1 -1
  206. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -1
  207. package/dist/chunks/fr-CA.B1aPU8fp.js +48 -0
  208. package/dist/chunks/fr-CA.B1aPU8fp.js.map +1 -0
  209. package/dist/chunks/fr.Dj7wEToe.js +47 -0
  210. package/dist/chunks/fr.Dj7wEToe.js.map +1 -0
  211. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -1
  212. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -1
  213. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js +51 -0
  214. package/dist/chunks/getTimezoneOffsetInMilliseconds.C-aIpRfB.js.map +1 -0
  215. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -1
  216. package/dist/chunks/header-meta.PysBmkSU.js +263 -0
  217. package/dist/chunks/header-meta.PysBmkSU.js.map +1 -0
  218. package/dist/chunks/{header-with-views.CHObq1kM.js → header-with-views.BGIZadqh.js} +844 -780
  219. package/dist/chunks/{header-with-views.CHObq1kM.js.map → header-with-views.BGIZadqh.js.map} +1 -1
  220. package/dist/chunks/{header.BMTf9s8L.js → header.yMTOq8MR.js} +3 -3
  221. package/dist/chunks/{header.BMTf9s8L.js.map → header.yMTOq8MR.js.map} +1 -1
  222. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -1
  223. package/dist/chunks/index.E60QniEu.js.map +1 -1
  224. package/dist/chunks/index.pdBj0KQU.js.map +1 -1
  225. package/dist/chunks/info.BKwey1HA.js.map +1 -1
  226. package/dist/chunks/{input-field-password.CTdUPz2y.js → input-field-password.DN3ltmAg.js} +101 -95
  227. package/dist/chunks/{input-field-password.CTdUPz2y.js.map → input-field-password.DN3ltmAg.js.map} +1 -1
  228. package/dist/chunks/{input-field-phone-number.Bp57oBMS.js → input-field-phone-number.CouE9QiR.js} +180 -174
  229. package/dist/chunks/{input-field-phone-number.Bp57oBMS.js.map → input-field-phone-number.CouE9QiR.js.map} +1 -1
  230. package/dist/chunks/{input-field.DzNDGqBP.js → input-field.C2SQq0V1.js} +67 -59
  231. package/dist/chunks/{input-field.DzNDGqBP.js.map → input-field.C2SQq0V1.js.map} +1 -1
  232. package/dist/chunks/{inspector.p4ukEAWH.js → inspector.Dox76eqN.js} +41 -35
  233. package/dist/chunks/{inspector.p4ukEAWH.js.map → inspector.Dox76eqN.js.map} +1 -1
  234. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -1
  235. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -1
  236. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -1
  237. package/dist/chunks/isSameWeek.CUD7czUN.js +14 -0
  238. package/dist/chunks/isSameWeek.CUD7czUN.js.map +1 -0
  239. package/dist/chunks/it.Oaj6BklL.js +392 -0
  240. package/dist/chunks/it.Oaj6BklL.js.map +1 -0
  241. package/dist/chunks/ja.Cm9tJMi2.js +367 -0
  242. package/dist/chunks/ja.Cm9tJMi2.js.map +1 -0
  243. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -1
  244. package/dist/chunks/ko.Ceaof6EP.js +348 -0
  245. package/dist/chunks/ko.Ceaof6EP.js.map +1 -0
  246. package/dist/chunks/layout-row.CX8kV_w0.js.map +1 -1
  247. package/dist/chunks/link.BLCQlEZU.js.map +1 -1
  248. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -1
  249. package/dist/chunks/match.CMBZxEs9.js +302 -0
  250. package/dist/chunks/match.CMBZxEs9.js.map +1 -0
  251. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -1
  252. package/dist/chunks/{modal-fullscreen.DYDW-zC0.js → modal-fullscreen.BXjxVsAq.js} +3 -3
  253. package/dist/chunks/{modal-fullscreen.DYDW-zC0.js.map → modal-fullscreen.BXjxVsAq.js.map} +1 -1
  254. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js} +4 -4
  255. package/dist/chunks/{modal.vue_vue_type_script_setup_true_lang.DI5HA_3W.js.map → modal.vue_vue_type_script_setup_true_lang.CRovU08l.js.map} +1 -1
  256. package/dist/chunks/nl.B6vCf2B9.js +327 -0
  257. package/dist/chunks/nl.B6vCf2B9.js.map +1 -0
  258. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -1
  259. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -1
  260. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -1
  261. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -1
  262. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -1
  263. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -1
  264. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -1
  265. package/dist/chunks/{pagination.0cHVUbmR.js → pagination.Biy7xN75.js} +5 -5
  266. package/dist/chunks/{pagination.0cHVUbmR.js.map → pagination.Biy7xN75.js.map} +1 -1
  267. package/dist/chunks/payment-method.BGEBaa4w.js.map +1 -1
  268. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -1
  269. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -1
  270. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -1
  271. package/dist/chunks/popover.types.DgfeurkF.js.map +1 -1
  272. package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -1
  273. package/dist/chunks/promo-banner.BIRH5sVX.js.map +1 -1
  274. package/dist/chunks/pt-BR.CiGdfP45.js +380 -0
  275. package/dist/chunks/pt-BR.CiGdfP45.js.map +1 -0
  276. package/dist/chunks/{radio-group.B2JLD8_2.js → radio-group.BqsQRDjs.js} +3 -3
  277. package/dist/chunks/{radio-group.B2JLD8_2.js.map → radio-group.BqsQRDjs.js.map} +1 -1
  278. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -1
  279. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -1
  280. package/dist/chunks/referrals.aX8WZigH.js.map +1 -1
  281. package/dist/chunks/refresh.BB4ouvz_.js.map +1 -1
  282. package/dist/chunks/resize.Bqks3WUm.js.map +1 -1
  283. package/dist/chunks/{rich-text-editor.Dw01KOhU.js → rich-text-editor.Bafyvjc3.js} +4 -4
  284. package/dist/chunks/{rich-text-editor.Dw01KOhU.js.map → rich-text-editor.Bafyvjc3.js.map} +1 -1
  285. package/dist/chunks/{search-bar.fCnPv83a.js → search-bar.BF8M5OSY.js} +3 -3
  286. package/dist/chunks/{search-bar.fCnPv83a.js.map → search-bar.BF8M5OSY.js.map} +1 -1
  287. package/dist/chunks/search.PczW-onY.js.map +1 -1
  288. package/dist/chunks/secondary-nav.D2lBMjqY.js +144 -0
  289. package/dist/chunks/{secondary-nav.D1y_GiqG.js.map → secondary-nav.D2lBMjqY.js.map} +1 -1
  290. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -1
  291. package/dist/chunks/{selection-card-group.DYklb2t2.js → selection-card-group.DNPlEqEq.js} +17 -17
  292. package/dist/chunks/{selection-card-group.DYklb2t2.js.map → selection-card-group.DNPlEqEq.js.map} +1 -1
  293. package/dist/chunks/show.CT4Augxb.js.map +1 -1
  294. package/dist/chunks/{sidepanel.1WPpJp8O.js → sidepanel.RJihFo_R.js} +4 -4
  295. package/dist/chunks/{sidepanel.1WPpJp8O.js.map → sidepanel.RJihFo_R.js.map} +1 -1
  296. package/dist/chunks/startOfWeek.Dxw2MhGp.js +10 -0
  297. package/dist/chunks/startOfWeek.Dxw2MhGp.js.map +1 -0
  298. package/dist/chunks/status.types.ChOI6XGU.js.map +1 -1
  299. package/dist/chunks/step.DpgnDx29.js +271 -0
  300. package/dist/chunks/step.DpgnDx29.js.map +1 -0
  301. package/dist/chunks/{structured-list-item.C4Fnc7sX.js → structured-list-item.B-hdp7rW.js} +2 -2
  302. package/dist/chunks/{structured-list-item.C4Fnc7sX.js.map → structured-list-item.B-hdp7rW.js.map} +1 -1
  303. package/dist/chunks/success.DhioLvPD.js.map +1 -1
  304. package/dist/chunks/success.nNwxJRBS.js.map +1 -1
  305. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -1
  306. package/dist/chunks/{summary-grid.types.CbROj1cf.js → summary-grid.types.BVLRSBAF.js} +3 -3
  307. package/dist/chunks/{summary-grid.types.CbROj1cf.js.map → summary-grid.types.BVLRSBAF.js.map} +1 -1
  308. package/dist/chunks/sv.f8EfZjMZ.js +377 -0
  309. package/dist/chunks/sv.f8EfZjMZ.js.map +1 -0
  310. package/dist/chunks/{tab.C-kmkQiE.js → tab.JPngc9oS.js} +2 -2
  311. package/dist/chunks/{tab.C-kmkQiE.js.map → tab.JPngc9oS.js.map} +1 -1
  312. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -1
  313. package/dist/chunks/tag.DFJIvNLs.js.map +1 -1
  314. package/dist/chunks/{textarea.C0tLoH2I.js → textarea.CEDkF8BB.js} +45 -45
  315. package/dist/chunks/textarea.CEDkF8BB.js.map +1 -0
  316. package/dist/chunks/{timeline-item.-IGN2sbj.js → timeline-item.BxGaSGLf.js} +14 -13
  317. package/dist/chunks/{timeline-item.-IGN2sbj.js.map → timeline-item.BxGaSGLf.js.map} +1 -1
  318. package/dist/chunks/toggle.vl0ZwLhN.js.map +1 -1
  319. package/dist/chunks/tooltip.Nn3o8_vO.js.map +1 -1
  320. package/dist/chunks/truncate.BfIl_-71.js.map +1 -1
  321. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js} +26 -26
  322. package/dist/chunks/{tutorial.vue_vue_type_script_setup_true_lang.BeW7xfHC.js.map → tutorial.vue_vue_type_script_setup_true_lang.CEfCLTsD.js.map} +1 -1
  323. package/dist/chunks/typography.6Oo5TOMP.js.map +1 -1
  324. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -1
  325. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -1
  326. package/dist/chunks/use-bento-toast-controller.V61h7XzI.js.map +1 -1
  327. package/dist/chunks/{use-cached-selected-values.u6wcYuin.js → use-cached-selected-values.BZIa5TRx.js} +97 -88
  328. package/dist/chunks/{use-cached-selected-values.u6wcYuin.js.map → use-cached-selected-values.BZIa5TRx.js.map} +1 -1
  329. package/dist/chunks/{use-country-items.Dzbl2UsO.js → use-country-items.JZCYNoW7.js} +2 -2
  330. package/dist/chunks/{use-country-items.Dzbl2UsO.js.map → use-country-items.JZCYNoW7.js.map} +1 -1
  331. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -1
  332. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -1
  333. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -1
  334. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -1
  335. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -1
  336. package/dist/chunks/warning-filled.BMGD0G-_.js.map +1 -1
  337. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -1
  338. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -1
  339. package/dist/chunks/zh-CN.BzH0fIXr.js +389 -0
  340. package/dist/chunks/zh-CN.BzH0fIXr.js.map +1 -0
  341. package/dist/code-snippet.js +1 -1
  342. package/dist/country.js +2 -2
  343. package/dist/dashboard-template.js +1 -1
  344. package/dist/dashed-underline.js +1 -1
  345. package/dist/data-grid-template.js +1 -1
  346. package/dist/data-grid.js +1 -1
  347. package/dist/date-picker.js +2 -2
  348. package/dist/date-range-picker.js +2 -2
  349. package/dist/dropdown.js +3 -3
  350. package/dist/file-uploader.js +1 -1
  351. package/dist/filter-bar.js +1 -1
  352. package/dist/form-layout.js +1 -1
  353. package/dist/header-with-views.js +1 -1
  354. package/dist/header.js +1 -1
  355. package/dist/index.js +248 -249
  356. package/dist/index.js.map +1 -1
  357. package/dist/input-field-password.js +1 -1
  358. package/dist/input-field-phone-number.js +1 -1
  359. package/dist/input-field.js +1 -1
  360. package/dist/inspector.js +1 -1
  361. package/dist/internal.js +10 -10
  362. package/dist/menu.js +1 -1
  363. package/dist/modal-fullscreen.js +1 -1
  364. package/dist/modal.js +2 -2
  365. package/dist/pagination.js +1 -1
  366. package/dist/popover.js +1 -1
  367. package/dist/radio-group.js +1 -1
  368. package/dist/rich-text-editor.js +1 -1
  369. package/dist/search-bar.js +2 -2
  370. package/dist/secondary-nav.js +1 -1
  371. package/dist/selection-card.js +1 -1
  372. package/dist/sidepanel.js +1 -1
  373. package/dist/stepper.js +1 -1
  374. package/dist/structured-list.js +1 -1
  375. package/dist/styles/bento-dark.css +0 -1829
  376. package/dist/styles/bento-light.css +0 -1829
  377. package/dist/styles/bento.css +0 -1829
  378. package/dist/styles/legacy.css +0 -1829
  379. package/dist/styles/styleguide.css +0 -1829
  380. package/dist/summary-grid.js +1 -1
  381. package/dist/tabs.js +1 -1
  382. package/dist/textarea.js +1 -1
  383. package/dist/timeline.js +1 -1
  384. package/dist/tutorial.js +1 -1
  385. package/dist/use-form-v4.js.map +1 -1
  386. package/dist/web-types.json +1 -1
  387. package/package.json +8 -8
  388. package/dist/chunks/button-actions.O0cnu1_g.js.map +0 -1
  389. package/dist/chunks/calendar.NVmCgJrJ.js +0 -1962
  390. package/dist/chunks/calendar.NVmCgJrJ.js.map +0 -1
  391. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +0 -1
  392. package/dist/chunks/code-snippet.Bfq5pgmE.js.map +0 -1
  393. package/dist/chunks/constructNow.BhymNmy5.js +0 -8
  394. package/dist/chunks/country.types.C0Q_hhgJ.js +0 -269
  395. package/dist/chunks/date-format.B8RU7D42.js +0 -17
  396. package/dist/chunks/date-format.B8RU7D42.js.map +0 -1
  397. package/dist/chunks/date-picker.BIdfeL7b.js +0 -245
  398. package/dist/chunks/date-picker.BIdfeL7b.js.map +0 -1
  399. package/dist/chunks/date-range-picker.BT3I5M44.js +0 -1109
  400. package/dist/chunks/date-range-picker.BT3I5M44.js.map +0 -1
  401. package/dist/chunks/differenceInMonths.Cab3nOsb.js +0 -1590
  402. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +0 -1
  403. package/dist/chunks/es6.MoTTyETW.js +0 -12
  404. package/dist/chunks/es6.MoTTyETW.js.map +0 -1
  405. package/dist/chunks/filter-bar.DnfdHnSL.js +0 -3211
  406. package/dist/chunks/filter-bar.DnfdHnSL.js.map +0 -1
  407. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +0 -1
  408. package/dist/chunks/header-meta.C2W1eMZc.js +0 -221
  409. package/dist/chunks/header-meta.C2W1eMZc.js.map +0 -1
  410. package/dist/chunks/secondary-nav.D1y_GiqG.js +0 -138
  411. package/dist/chunks/step._8f9kwI5.js +0 -267
  412. package/dist/chunks/step._8f9kwI5.js.map +0 -1
  413. package/dist/chunks/textarea.C0tLoH2I.js.map +0 -1
@@ -0,0 +1,1896 @@
1
+ import { reactive as Ye, defineComponent as vt, useSlots as Pt, ref as U, computed as E, onMounted as yt, createElementBlock as Ne, openBlock as A, createElementVNode as oe, createCommentVNode as B, normalizeClass as xe, renderSlot as Je, createBlock as ae, unref as D, createVNode as ne, withCtx as te, createTextVNode as me, toRaw as qe, watch as Ce, toRef as Ze, withDirectives as Wt, withKeys as ze, toDisplayString as Ht, createSlots as Lt } from "vue";
2
+ import { g as Gt } from "./index.E60QniEu.js";
3
+ import { B as Qt } from "./divider.Dho4_hQ7.js";
4
+ import { h as $t, B as jt } from "./button-actions.Crj4QFAd.js";
5
+ import { B as Pe, d as et } from "./typography.6Oo5TOMP.js";
6
+ import { D as Kt } from "./dropdown-default-textbox.DFtFMu5G.js";
7
+ import { ptBR as Vt } from "./pt-BR.CiGdfP45.js";
8
+ import { ja as Xt } from "./ja.Cm9tJMi2.js";
9
+ import { fr as Jt } from "./fr.Dj7wEToe.js";
10
+ import { g as Tt } from "./en-US.BZii9jNW.js";
11
+ import { de as Zt } from "./de.DvtL0g75.js";
12
+ import { g as be } from "./generate-uid.NJ8tVoha.js";
13
+ import { u as We } from "./index.pdBj0KQU.js";
14
+ import { t as x, c as ge, h as pt, g as He, n as zt } from "./getTimezoneOffsetInMilliseconds.C-aIpRfB.js";
15
+ import { f as q, h as bt, i as Q, j as ea, k as tt, l as ta, s as at, m as aa, n as we, o as nt, p as na, q as ra, b as ee, u as sa } from "./calendar.DKPx_cQU.js";
16
+ import { s as he } from "./startOfWeek.Dxw2MhGp.js";
17
+ import { u as ia } from "./use-form-layout-loading.CWbjZiwP.js";
18
+ import { B as oa } from "./directive.Cbdox5VL.js";
19
+ import { u as la } from "./form-field.D_2g7vaP.js";
20
+ import { B as ke } from "./input-field.C2SQq0V1.js";
21
+ import { B as ua } from "./dropdown.D0_8f9Mz.js";
22
+ import { B as da } from "./segmented-control.CFlHfj3N.js";
23
+ import { d as _e } from "./debounce.DUTu11PS.js";
24
+ import { u as ca } from "./use-has-slot.B7eQSabc.js";
25
+ import { e as V, a as rt } from "./differenceInMonths.DcFDl4eH.js";
26
+ import { f as st, v as ma } from "./date-input.BbZqj10S.js";
27
+ import { c as fa } from "./constructNow.DuaJst0D.js";
28
+ import { _ as wt } from "./_plugin-vue_export-helper.CHgC5LLL.js";
29
+ import { F as Da, E as it } from "./field-label.D7vU2Icm.js";
30
+ import { B as ga } from "./button-actions.types.BptAXjD8.js";
31
+ import "../assets/date-range-picker.css";
32
+ function Le() {
33
+ return {
34
+ de: Zt,
35
+ enUS: Tt,
36
+ fr: Jt,
37
+ ja: Xt,
38
+ ptBR: Vt
39
+ };
40
+ }
41
+ function De(e) {
42
+ if (e == null)
43
+ return q(/* @__PURE__ */ new Date());
44
+ const [t, a, n] = e.split("-").map((r) => parseInt(r, 10));
45
+ return new Date(t, a - 1, n);
46
+ }
47
+ function Mt(e, t, a) {
48
+ return bt(e, t * 3, a);
49
+ }
50
+ function ha(e, t, a) {
51
+ return Mt(e, -1, a);
52
+ }
53
+ const va = ({
54
+ firstDayOfWeek: e,
55
+ min: t,
56
+ max: a
57
+ }) => ({ getGranularCalendarLimits: (r) => {
58
+ if (!t && !a)
59
+ return { min: null, max: null };
60
+ let o = t ? q(t) : null, c = a ? V(a) : null;
61
+ if ((r == null ? void 0 : r.type) === "weekly") {
62
+ if (r.earliest)
63
+ o = q(r.earliest);
64
+ else if (o) {
65
+ const g = he(o, { weekStartsOn: e });
66
+ Q(o, g) || (o = q(ea(tt(o, { weekStartsOn: e }), 1)));
67
+ }
68
+ if (r.latest)
69
+ c = V(r.latest);
70
+ else if (c) {
71
+ const g = tt(c, { weekStartsOn: e });
72
+ Q(c, g) || (c = V(ta(he(c, { weekStartsOn: e }), 1)));
73
+ }
74
+ }
75
+ if ((r == null ? void 0 : r.type) === "monthly") {
76
+ if (r.earliest)
77
+ o = q(r.earliest);
78
+ else if (o) {
79
+ const g = at(o);
80
+ Q(o, g) || (o = at(bt(o, 1)));
81
+ }
82
+ if (r.latest)
83
+ c = V(r.latest);
84
+ else if (c) {
85
+ const g = rt(c);
86
+ Q(c, g) || (c = rt(aa(c, 1)));
87
+ }
88
+ }
89
+ if ((r == null ? void 0 : r.type) === "quarterly") {
90
+ if (r.earliest)
91
+ o = we(r.earliest);
92
+ else if (o) {
93
+ const g = we(o);
94
+ Q(o, g) || (o = we(Mt(o, 1)));
95
+ }
96
+ if (r.latest)
97
+ c = V(r.latest);
98
+ else if (c) {
99
+ const g = nt(c);
100
+ Q(c, g) || (c = nt(ha(c)));
101
+ }
102
+ }
103
+ return { min: o, max: c };
104
+ } }), ya = () => {
105
+ const e = Ye({
106
+ daily: null,
107
+ weekly: null,
108
+ monthly: null,
109
+ quarterly: null
110
+ });
111
+ return {
112
+ savedRanges: e,
113
+ saveRange: (n, r) => {
114
+ e[n] = r;
115
+ },
116
+ resetSavedRanges: () => {
117
+ e.daily = null, e.weekly = null, e.monthly = null, e.quarterly = null;
118
+ }
119
+ };
120
+ };
121
+ var O = /* @__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))(O || {}), N = /* @__PURE__ */ ((e) => (e.DAY_OF_MONTH = "d", e.NUMERIC_DAY = "dd", e.SHORT_WEEKDAY = "EEE", e.NUMERIC_MONTH = "MM", e.SHORT_MONTH = "MMM", e.LONG_MONTH = "MMMM", e.LONG_MONTH_YEAR = "MMMM yyyy", e.FULL_YEAR = "yyyy", e.FULL_DATE = "d MMM, yyyy", e.FULL_DATE_MONTH_FIRST = "MMM dd, yyyy", e.NUMERIC_DATE_YEAR_FIRST = "yyyy-MM-dd", e.NUMERIC_DATE_DAY_FIRST = "yyyy-MM-dd", e.MILITARY_HOUR = "HH", e.MINUTES_TWO_DIGITS = "mm", e.SECONDS_TWO_DIGITS = "ss", e.HOUR_MINUTE_SECONDS = "HH:mm:ss", e))(N || {});
122
+ const Ta = /[\d]/, pa = /^\d{2}$/, ba = /^\d{2}:\d{2}$/, wa = (e) => {
123
+ const { selectionStart: t } = e.target, a = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], n = Ta.test(e.key) || a.includes(e.key), r = [1, 2, 4, 5].includes(t) && e.key === ":";
124
+ !n && !r && e.preventDefault();
125
+ }, ot = (e) => {
126
+ if (!e)
127
+ return e;
128
+ let t = e;
129
+ if (t.length === 1 && parseInt(e, 10) > 2)
130
+ return `0${t}:`;
131
+ const [a, n] = t.slice(-2);
132
+ return [2, 5].includes(t.length) && n === ":" && (t = `${t.slice(0, t.length - 2)}0${a}`), (pa.test(t) || ba.test(t)) && (t += ":"), t;
133
+ };
134
+ function Ma(e, t) {
135
+ const a = x(e, t == null ? void 0 : t.in);
136
+ return na(a, ra(a)) + 1;
137
+ }
138
+ function Fe(e, t) {
139
+ return he(e, { ...t, weekStartsOn: 1 });
140
+ }
141
+ function Ot(e, t) {
142
+ const a = x(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = ge(a, 0);
143
+ r.setFullYear(n + 1, 0, 4), r.setHours(0, 0, 0, 0);
144
+ const o = Fe(r), c = ge(a, 0);
145
+ c.setFullYear(n, 0, 4), c.setHours(0, 0, 0, 0);
146
+ const g = Fe(c);
147
+ return a.getTime() >= o.getTime() ? n + 1 : a.getTime() >= g.getTime() ? n : n - 1;
148
+ }
149
+ function Oa(e, t) {
150
+ const a = Ot(e, t), n = ge(e, 0);
151
+ return n.setFullYear(a, 0, 4), n.setHours(0, 0, 0, 0), Fe(n);
152
+ }
153
+ function Ea(e, t) {
154
+ const a = x(e, t == null ? void 0 : t.in), n = +Fe(a) - +Oa(a);
155
+ return Math.round(n / pt) + 1;
156
+ }
157
+ function Et(e, t) {
158
+ var p, R, P, W;
159
+ const a = x(e, t == null ? void 0 : t.in), n = a.getFullYear(), r = He(), o = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((R = (p = t == null ? void 0 : t.locale) == null ? void 0 : p.options) == null ? void 0 : R.firstWeekContainsDate) ?? r.firstWeekContainsDate ?? ((W = (P = r.locale) == null ? void 0 : P.options) == null ? void 0 : W.firstWeekContainsDate) ?? 1, c = ge((t == null ? void 0 : t.in) || e, 0);
160
+ c.setFullYear(n + 1, 0, o), c.setHours(0, 0, 0, 0);
161
+ const g = he(c, t), S = ge((t == null ? void 0 : t.in) || e, 0);
162
+ S.setFullYear(n, 0, o), S.setHours(0, 0, 0, 0);
163
+ const k = he(S, t);
164
+ return +a >= +g ? n + 1 : +a >= +k ? n : n - 1;
165
+ }
166
+ function Ra(e, t) {
167
+ var g, S, k, p;
168
+ const a = He(), n = (t == null ? void 0 : t.firstWeekContainsDate) ?? ((S = (g = t == null ? void 0 : t.locale) == null ? void 0 : g.options) == null ? void 0 : S.firstWeekContainsDate) ?? a.firstWeekContainsDate ?? ((p = (k = a.locale) == null ? void 0 : k.options) == null ? void 0 : p.firstWeekContainsDate) ?? 1, r = Et(e, t), o = ge((t == null ? void 0 : t.in) || e, 0);
169
+ return o.setFullYear(r, 0, n), o.setHours(0, 0, 0, 0), he(o, t);
170
+ }
171
+ function Sa(e, t) {
172
+ const a = x(e, t == null ? void 0 : t.in), n = +he(a, t) - +Ra(a, t);
173
+ return Math.round(n / pt) + 1;
174
+ }
175
+ function v(e, t) {
176
+ const a = e < 0 ? "-" : "", n = Math.abs(e).toString().padStart(t, "0");
177
+ return a + n;
178
+ }
179
+ const ie = {
180
+ // Year
181
+ y(e, t) {
182
+ const a = e.getFullYear(), n = a > 0 ? a : 1 - a;
183
+ return v(t === "yy" ? n % 100 : n, t.length);
184
+ },
185
+ // Month
186
+ M(e, t) {
187
+ const a = e.getMonth();
188
+ return t === "M" ? String(a + 1) : v(a + 1, 2);
189
+ },
190
+ // Day of the month
191
+ d(e, t) {
192
+ return v(e.getDate(), t.length);
193
+ },
194
+ // AM or PM
195
+ a(e, t) {
196
+ const a = e.getHours() / 12 >= 1 ? "pm" : "am";
197
+ switch (t) {
198
+ case "a":
199
+ case "aa":
200
+ return a.toUpperCase();
201
+ case "aaa":
202
+ return a;
203
+ case "aaaaa":
204
+ return a[0];
205
+ default:
206
+ return a === "am" ? "a.m." : "p.m.";
207
+ }
208
+ },
209
+ // Hour [1-12]
210
+ h(e, t) {
211
+ return v(e.getHours() % 12 || 12, t.length);
212
+ },
213
+ // Hour [0-23]
214
+ H(e, t) {
215
+ return v(e.getHours(), t.length);
216
+ },
217
+ // Minute
218
+ m(e, t) {
219
+ return v(e.getMinutes(), t.length);
220
+ },
221
+ // Second
222
+ s(e, t) {
223
+ return v(e.getSeconds(), t.length);
224
+ },
225
+ // Fraction of second
226
+ S(e, t) {
227
+ const a = t.length, n = e.getMilliseconds(), r = Math.trunc(
228
+ n * Math.pow(10, a - 3)
229
+ );
230
+ return v(r, t.length);
231
+ }
232
+ }, Te = {
233
+ midnight: "midnight",
234
+ noon: "noon",
235
+ morning: "morning",
236
+ afternoon: "afternoon",
237
+ evening: "evening",
238
+ night: "night"
239
+ }, lt = {
240
+ // Era
241
+ G: function(e, t, a) {
242
+ const n = e.getFullYear() > 0 ? 1 : 0;
243
+ switch (t) {
244
+ // AD, BC
245
+ case "G":
246
+ case "GG":
247
+ case "GGG":
248
+ return a.era(n, { width: "abbreviated" });
249
+ // A, B
250
+ case "GGGGG":
251
+ return a.era(n, { width: "narrow" });
252
+ default:
253
+ return a.era(n, { width: "wide" });
254
+ }
255
+ },
256
+ // Year
257
+ y: function(e, t, a) {
258
+ if (t === "yo") {
259
+ const n = e.getFullYear(), r = n > 0 ? n : 1 - n;
260
+ return a.ordinalNumber(r, { unit: "year" });
261
+ }
262
+ return ie.y(e, t);
263
+ },
264
+ // Local week-numbering year
265
+ Y: function(e, t, a, n) {
266
+ const r = Et(e, n), o = r > 0 ? r : 1 - r;
267
+ if (t === "YY") {
268
+ const c = o % 100;
269
+ return v(c, 2);
270
+ }
271
+ return t === "Yo" ? a.ordinalNumber(o, { unit: "year" }) : v(o, t.length);
272
+ },
273
+ // ISO week-numbering year
274
+ R: function(e, t) {
275
+ const a = Ot(e);
276
+ return v(a, t.length);
277
+ },
278
+ // Extended year. This is a single number designating the year of this calendar system.
279
+ // The main difference between `y` and `u` localizers are B.C. years:
280
+ // | Year | `y` | `u` |
281
+ // |------|-----|-----|
282
+ // | AC 1 | 1 | 1 |
283
+ // | BC 1 | 1 | 0 |
284
+ // | BC 2 | 2 | -1 |
285
+ // Also `yy` always returns the last two digits of a year,
286
+ // while `uu` pads single digit years to 2 characters and returns other years unchanged.
287
+ u: function(e, t) {
288
+ const a = e.getFullYear();
289
+ return v(a, t.length);
290
+ },
291
+ // Quarter
292
+ Q: function(e, t, a) {
293
+ const n = Math.ceil((e.getMonth() + 1) / 3);
294
+ switch (t) {
295
+ // 1, 2, 3, 4
296
+ case "Q":
297
+ return String(n);
298
+ // 01, 02, 03, 04
299
+ case "QQ":
300
+ return v(n, 2);
301
+ // 1st, 2nd, 3rd, 4th
302
+ case "Qo":
303
+ return a.ordinalNumber(n, { unit: "quarter" });
304
+ // Q1, Q2, Q3, Q4
305
+ case "QQQ":
306
+ return a.quarter(n, {
307
+ width: "abbreviated",
308
+ context: "formatting"
309
+ });
310
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
311
+ case "QQQQQ":
312
+ return a.quarter(n, {
313
+ width: "narrow",
314
+ context: "formatting"
315
+ });
316
+ default:
317
+ return a.quarter(n, {
318
+ width: "wide",
319
+ context: "formatting"
320
+ });
321
+ }
322
+ },
323
+ // Stand-alone quarter
324
+ q: function(e, t, a) {
325
+ const n = Math.ceil((e.getMonth() + 1) / 3);
326
+ switch (t) {
327
+ // 1, 2, 3, 4
328
+ case "q":
329
+ return String(n);
330
+ // 01, 02, 03, 04
331
+ case "qq":
332
+ return v(n, 2);
333
+ // 1st, 2nd, 3rd, 4th
334
+ case "qo":
335
+ return a.ordinalNumber(n, { unit: "quarter" });
336
+ // Q1, Q2, Q3, Q4
337
+ case "qqq":
338
+ return a.quarter(n, {
339
+ width: "abbreviated",
340
+ context: "standalone"
341
+ });
342
+ // 1, 2, 3, 4 (narrow quarter; could be not numerical)
343
+ case "qqqqq":
344
+ return a.quarter(n, {
345
+ width: "narrow",
346
+ context: "standalone"
347
+ });
348
+ default:
349
+ return a.quarter(n, {
350
+ width: "wide",
351
+ context: "standalone"
352
+ });
353
+ }
354
+ },
355
+ // Month
356
+ M: function(e, t, a) {
357
+ const n = e.getMonth();
358
+ switch (t) {
359
+ case "M":
360
+ case "MM":
361
+ return ie.M(e, t);
362
+ // 1st, 2nd, ..., 12th
363
+ case "Mo":
364
+ return a.ordinalNumber(n + 1, { unit: "month" });
365
+ // Jan, Feb, ..., Dec
366
+ case "MMM":
367
+ return a.month(n, {
368
+ width: "abbreviated",
369
+ context: "formatting"
370
+ });
371
+ // J, F, ..., D
372
+ case "MMMMM":
373
+ return a.month(n, {
374
+ width: "narrow",
375
+ context: "formatting"
376
+ });
377
+ default:
378
+ return a.month(n, { width: "wide", context: "formatting" });
379
+ }
380
+ },
381
+ // Stand-alone month
382
+ L: function(e, t, a) {
383
+ const n = e.getMonth();
384
+ switch (t) {
385
+ // 1, 2, ..., 12
386
+ case "L":
387
+ return String(n + 1);
388
+ // 01, 02, ..., 12
389
+ case "LL":
390
+ return v(n + 1, 2);
391
+ // 1st, 2nd, ..., 12th
392
+ case "Lo":
393
+ return a.ordinalNumber(n + 1, { unit: "month" });
394
+ // Jan, Feb, ..., Dec
395
+ case "LLL":
396
+ return a.month(n, {
397
+ width: "abbreviated",
398
+ context: "standalone"
399
+ });
400
+ // J, F, ..., D
401
+ case "LLLLL":
402
+ return a.month(n, {
403
+ width: "narrow",
404
+ context: "standalone"
405
+ });
406
+ default:
407
+ return a.month(n, { width: "wide", context: "standalone" });
408
+ }
409
+ },
410
+ // Local week of year
411
+ w: function(e, t, a, n) {
412
+ const r = Sa(e, n);
413
+ return t === "wo" ? a.ordinalNumber(r, { unit: "week" }) : v(r, t.length);
414
+ },
415
+ // ISO week of year
416
+ I: function(e, t, a) {
417
+ const n = Ea(e);
418
+ return t === "Io" ? a.ordinalNumber(n, { unit: "week" }) : v(n, t.length);
419
+ },
420
+ // Day of the month
421
+ d: function(e, t, a) {
422
+ return t === "do" ? a.ordinalNumber(e.getDate(), { unit: "date" }) : ie.d(e, t);
423
+ },
424
+ // Day of year
425
+ D: function(e, t, a) {
426
+ const n = Ma(e);
427
+ return t === "Do" ? a.ordinalNumber(n, { unit: "dayOfYear" }) : v(n, t.length);
428
+ },
429
+ // Day of week
430
+ E: function(e, t, a) {
431
+ const n = e.getDay();
432
+ switch (t) {
433
+ // Tue
434
+ case "E":
435
+ case "EE":
436
+ case "EEE":
437
+ return a.day(n, {
438
+ width: "abbreviated",
439
+ context: "formatting"
440
+ });
441
+ // T
442
+ case "EEEEE":
443
+ return a.day(n, {
444
+ width: "narrow",
445
+ context: "formatting"
446
+ });
447
+ // Tu
448
+ case "EEEEEE":
449
+ return a.day(n, {
450
+ width: "short",
451
+ context: "formatting"
452
+ });
453
+ default:
454
+ return a.day(n, {
455
+ width: "wide",
456
+ context: "formatting"
457
+ });
458
+ }
459
+ },
460
+ // Local day of week
461
+ e: function(e, t, a, n) {
462
+ const r = e.getDay(), o = (r - n.weekStartsOn + 8) % 7 || 7;
463
+ switch (t) {
464
+ // Numerical value (Nth day of week with current locale or weekStartsOn)
465
+ case "e":
466
+ return String(o);
467
+ // Padded numerical value
468
+ case "ee":
469
+ return v(o, 2);
470
+ // 1st, 2nd, ..., 7th
471
+ case "eo":
472
+ return a.ordinalNumber(o, { unit: "day" });
473
+ case "eee":
474
+ return a.day(r, {
475
+ width: "abbreviated",
476
+ context: "formatting"
477
+ });
478
+ // T
479
+ case "eeeee":
480
+ return a.day(r, {
481
+ width: "narrow",
482
+ context: "formatting"
483
+ });
484
+ // Tu
485
+ case "eeeeee":
486
+ return a.day(r, {
487
+ width: "short",
488
+ context: "formatting"
489
+ });
490
+ default:
491
+ return a.day(r, {
492
+ width: "wide",
493
+ context: "formatting"
494
+ });
495
+ }
496
+ },
497
+ // Stand-alone local day of week
498
+ c: function(e, t, a, n) {
499
+ const r = e.getDay(), o = (r - n.weekStartsOn + 8) % 7 || 7;
500
+ switch (t) {
501
+ // Numerical value (same as in `e`)
502
+ case "c":
503
+ return String(o);
504
+ // Padded numerical value
505
+ case "cc":
506
+ return v(o, t.length);
507
+ // 1st, 2nd, ..., 7th
508
+ case "co":
509
+ return a.ordinalNumber(o, { unit: "day" });
510
+ case "ccc":
511
+ return a.day(r, {
512
+ width: "abbreviated",
513
+ context: "standalone"
514
+ });
515
+ // T
516
+ case "ccccc":
517
+ return a.day(r, {
518
+ width: "narrow",
519
+ context: "standalone"
520
+ });
521
+ // Tu
522
+ case "cccccc":
523
+ return a.day(r, {
524
+ width: "short",
525
+ context: "standalone"
526
+ });
527
+ default:
528
+ return a.day(r, {
529
+ width: "wide",
530
+ context: "standalone"
531
+ });
532
+ }
533
+ },
534
+ // ISO day of week
535
+ i: function(e, t, a) {
536
+ const n = e.getDay(), r = n === 0 ? 7 : n;
537
+ switch (t) {
538
+ // 2
539
+ case "i":
540
+ return String(r);
541
+ // 02
542
+ case "ii":
543
+ return v(r, t.length);
544
+ // 2nd
545
+ case "io":
546
+ return a.ordinalNumber(r, { unit: "day" });
547
+ // Tue
548
+ case "iii":
549
+ return a.day(n, {
550
+ width: "abbreviated",
551
+ context: "formatting"
552
+ });
553
+ // T
554
+ case "iiiii":
555
+ return a.day(n, {
556
+ width: "narrow",
557
+ context: "formatting"
558
+ });
559
+ // Tu
560
+ case "iiiiii":
561
+ return a.day(n, {
562
+ width: "short",
563
+ context: "formatting"
564
+ });
565
+ default:
566
+ return a.day(n, {
567
+ width: "wide",
568
+ context: "formatting"
569
+ });
570
+ }
571
+ },
572
+ // AM or PM
573
+ a: function(e, t, a) {
574
+ const r = e.getHours() / 12 >= 1 ? "pm" : "am";
575
+ switch (t) {
576
+ case "a":
577
+ case "aa":
578
+ return a.dayPeriod(r, {
579
+ width: "abbreviated",
580
+ context: "formatting"
581
+ });
582
+ case "aaa":
583
+ return a.dayPeriod(r, {
584
+ width: "abbreviated",
585
+ context: "formatting"
586
+ }).toLowerCase();
587
+ case "aaaaa":
588
+ return a.dayPeriod(r, {
589
+ width: "narrow",
590
+ context: "formatting"
591
+ });
592
+ default:
593
+ return a.dayPeriod(r, {
594
+ width: "wide",
595
+ context: "formatting"
596
+ });
597
+ }
598
+ },
599
+ // AM, PM, midnight, noon
600
+ b: function(e, t, a) {
601
+ const n = e.getHours();
602
+ let r;
603
+ switch (n === 12 ? r = Te.noon : n === 0 ? r = Te.midnight : r = n / 12 >= 1 ? "pm" : "am", t) {
604
+ case "b":
605
+ case "bb":
606
+ return a.dayPeriod(r, {
607
+ width: "abbreviated",
608
+ context: "formatting"
609
+ });
610
+ case "bbb":
611
+ return a.dayPeriod(r, {
612
+ width: "abbreviated",
613
+ context: "formatting"
614
+ }).toLowerCase();
615
+ case "bbbbb":
616
+ return a.dayPeriod(r, {
617
+ width: "narrow",
618
+ context: "formatting"
619
+ });
620
+ default:
621
+ return a.dayPeriod(r, {
622
+ width: "wide",
623
+ context: "formatting"
624
+ });
625
+ }
626
+ },
627
+ // in the morning, in the afternoon, in the evening, at night
628
+ B: function(e, t, a) {
629
+ const n = e.getHours();
630
+ let r;
631
+ switch (n >= 17 ? r = Te.evening : n >= 12 ? r = Te.afternoon : n >= 4 ? r = Te.morning : r = Te.night, t) {
632
+ case "B":
633
+ case "BB":
634
+ case "BBB":
635
+ return a.dayPeriod(r, {
636
+ width: "abbreviated",
637
+ context: "formatting"
638
+ });
639
+ case "BBBBB":
640
+ return a.dayPeriod(r, {
641
+ width: "narrow",
642
+ context: "formatting"
643
+ });
644
+ default:
645
+ return a.dayPeriod(r, {
646
+ width: "wide",
647
+ context: "formatting"
648
+ });
649
+ }
650
+ },
651
+ // Hour [1-12]
652
+ h: function(e, t, a) {
653
+ if (t === "ho") {
654
+ let n = e.getHours() % 12;
655
+ return n === 0 && (n = 12), a.ordinalNumber(n, { unit: "hour" });
656
+ }
657
+ return ie.h(e, t);
658
+ },
659
+ // Hour [0-23]
660
+ H: function(e, t, a) {
661
+ return t === "Ho" ? a.ordinalNumber(e.getHours(), { unit: "hour" }) : ie.H(e, t);
662
+ },
663
+ // Hour [0-11]
664
+ K: function(e, t, a) {
665
+ const n = e.getHours() % 12;
666
+ return t === "Ko" ? a.ordinalNumber(n, { unit: "hour" }) : v(n, t.length);
667
+ },
668
+ // Hour [1-24]
669
+ k: function(e, t, a) {
670
+ let n = e.getHours();
671
+ return n === 0 && (n = 24), t === "ko" ? a.ordinalNumber(n, { unit: "hour" }) : v(n, t.length);
672
+ },
673
+ // Minute
674
+ m: function(e, t, a) {
675
+ return t === "mo" ? a.ordinalNumber(e.getMinutes(), { unit: "minute" }) : ie.m(e, t);
676
+ },
677
+ // Second
678
+ s: function(e, t, a) {
679
+ return t === "so" ? a.ordinalNumber(e.getSeconds(), { unit: "second" }) : ie.s(e, t);
680
+ },
681
+ // Fraction of second
682
+ S: function(e, t) {
683
+ return ie.S(e, t);
684
+ },
685
+ // Timezone (ISO-8601. If offset is 0, output is always `'Z'`)
686
+ X: function(e, t, a) {
687
+ const n = e.getTimezoneOffset();
688
+ if (n === 0)
689
+ return "Z";
690
+ switch (t) {
691
+ // Hours and optional minutes
692
+ case "X":
693
+ return dt(n);
694
+ // Hours, minutes and optional seconds without `:` delimiter
695
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
696
+ // so this token always has the same output as `XX`
697
+ case "XXXX":
698
+ case "XX":
699
+ return fe(n);
700
+ // Hours and minutes with `:` delimiter
701
+ default:
702
+ return fe(n, ":");
703
+ }
704
+ },
705
+ // Timezone (ISO-8601. If offset is 0, output is `'+00:00'` or equivalent)
706
+ x: function(e, t, a) {
707
+ const n = e.getTimezoneOffset();
708
+ switch (t) {
709
+ // Hours and optional minutes
710
+ case "x":
711
+ return dt(n);
712
+ // Hours, minutes and optional seconds without `:` delimiter
713
+ // Note: neither ISO-8601 nor JavaScript supports seconds in timezone offsets
714
+ // so this token always has the same output as `xx`
715
+ case "xxxx":
716
+ case "xx":
717
+ return fe(n);
718
+ // Hours and minutes with `:` delimiter
719
+ default:
720
+ return fe(n, ":");
721
+ }
722
+ },
723
+ // Timezone (GMT)
724
+ O: function(e, t, a) {
725
+ const n = e.getTimezoneOffset();
726
+ switch (t) {
727
+ // Short
728
+ case "O":
729
+ case "OO":
730
+ case "OOO":
731
+ return "GMT" + ut(n, ":");
732
+ default:
733
+ return "GMT" + fe(n, ":");
734
+ }
735
+ },
736
+ // Timezone (specific non-location)
737
+ z: function(e, t, a) {
738
+ const n = e.getTimezoneOffset();
739
+ switch (t) {
740
+ // Short
741
+ case "z":
742
+ case "zz":
743
+ case "zzz":
744
+ return "GMT" + ut(n, ":");
745
+ default:
746
+ return "GMT" + fe(n, ":");
747
+ }
748
+ },
749
+ // Seconds timestamp
750
+ t: function(e, t, a) {
751
+ const n = Math.trunc(+e / 1e3);
752
+ return v(n, t.length);
753
+ },
754
+ // Milliseconds timestamp
755
+ T: function(e, t, a) {
756
+ return v(+e, t.length);
757
+ }
758
+ };
759
+ function ut(e, t = "") {
760
+ const a = e > 0 ? "-" : "+", n = Math.abs(e), r = Math.trunc(n / 60), o = n % 60;
761
+ return o === 0 ? a + String(r) : a + String(r) + t + v(o, 2);
762
+ }
763
+ function dt(e, t) {
764
+ return e % 60 === 0 ? (e > 0 ? "-" : "+") + v(Math.abs(e) / 60, 2) : fe(e, t);
765
+ }
766
+ function fe(e, t = "") {
767
+ const a = e > 0 ? "-" : "+", n = Math.abs(e), r = v(Math.trunc(n / 60), 2), o = v(n % 60, 2);
768
+ return a + r + t + o;
769
+ }
770
+ const ct = (e, t) => {
771
+ switch (e) {
772
+ case "P":
773
+ return t.date({ width: "short" });
774
+ case "PP":
775
+ return t.date({ width: "medium" });
776
+ case "PPP":
777
+ return t.date({ width: "long" });
778
+ default:
779
+ return t.date({ width: "full" });
780
+ }
781
+ }, Rt = (e, t) => {
782
+ switch (e) {
783
+ case "p":
784
+ return t.time({ width: "short" });
785
+ case "pp":
786
+ return t.time({ width: "medium" });
787
+ case "ppp":
788
+ return t.time({ width: "long" });
789
+ default:
790
+ return t.time({ width: "full" });
791
+ }
792
+ }, ka = (e, t) => {
793
+ const a = e.match(/(P+)(p+)?/) || [], n = a[1], r = a[2];
794
+ if (!r)
795
+ return ct(e, t);
796
+ let o;
797
+ switch (n) {
798
+ case "P":
799
+ o = t.dateTime({ width: "short" });
800
+ break;
801
+ case "PP":
802
+ o = t.dateTime({ width: "medium" });
803
+ break;
804
+ case "PPP":
805
+ o = t.dateTime({ width: "long" });
806
+ break;
807
+ default:
808
+ o = t.dateTime({ width: "full" });
809
+ break;
810
+ }
811
+ return o.replace("{{date}}", ct(n, t)).replace("{{time}}", Rt(r, t));
812
+ }, _a = {
813
+ p: Rt,
814
+ P: ka
815
+ }, Ia = /^D+$/, Na = /^Y+$/, xa = ["D", "DD", "YY", "YYYY"];
816
+ function Ca(e) {
817
+ return Ia.test(e);
818
+ }
819
+ function Ya(e) {
820
+ return Na.test(e);
821
+ }
822
+ function Fa(e, t, a) {
823
+ const n = Aa(e, t, a);
824
+ if (console.warn(n), xa.includes(e)) throw new RangeError(n);
825
+ }
826
+ function Aa(e, t, a) {
827
+ const n = e[0] === "Y" ? "years" : "days of the month";
828
+ return `Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${a}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`;
829
+ }
830
+ function Ua(e) {
831
+ return e instanceof Date || typeof e == "object" && Object.prototype.toString.call(e) === "[object Date]";
832
+ }
833
+ function Ba(e) {
834
+ return !(!Ua(e) && typeof e != "number" || isNaN(+x(e)));
835
+ }
836
+ const qa = /[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g, Pa = /P+p+|P+|p+|''|'(''|[^'])+('|$)|./g, Wa = /^'([^]*?)'?$/, Ha = /''/g, La = /[a-zA-Z]/;
837
+ function pe(e, t, a) {
838
+ var p, R, P, W, i, b, y, H;
839
+ const n = He(), r = (a == null ? void 0 : a.locale) ?? n.locale ?? Tt, o = (a == null ? void 0 : a.firstWeekContainsDate) ?? ((R = (p = a == null ? void 0 : a.locale) == null ? void 0 : p.options) == null ? void 0 : R.firstWeekContainsDate) ?? n.firstWeekContainsDate ?? ((W = (P = n.locale) == null ? void 0 : P.options) == null ? void 0 : W.firstWeekContainsDate) ?? 1, c = (a == null ? void 0 : a.weekStartsOn) ?? ((b = (i = a == null ? void 0 : a.locale) == null ? void 0 : i.options) == null ? void 0 : b.weekStartsOn) ?? n.weekStartsOn ?? ((H = (y = n.locale) == null ? void 0 : y.options) == null ? void 0 : H.weekStartsOn) ?? 0, g = x(e, a == null ? void 0 : a.in);
840
+ if (!Ba(g))
841
+ throw new RangeError("Invalid time value");
842
+ let S = t.match(Pa).map((h) => {
843
+ const T = h[0];
844
+ if (T === "p" || T === "P") {
845
+ const L = _a[T];
846
+ return L(h, r.formatLong);
847
+ }
848
+ return h;
849
+ }).join("").match(qa).map((h) => {
850
+ if (h === "''")
851
+ return { isToken: !1, value: "'" };
852
+ const T = h[0];
853
+ if (T === "'")
854
+ return { isToken: !1, value: Ga(h) };
855
+ if (lt[T])
856
+ return { isToken: !0, value: h };
857
+ if (T.match(La))
858
+ throw new RangeError(
859
+ "Format string contains an unescaped latin alphabet character `" + T + "`"
860
+ );
861
+ return { isToken: !1, value: h };
862
+ });
863
+ r.localize.preprocessor && (S = r.localize.preprocessor(g, S));
864
+ const k = {
865
+ firstWeekContainsDate: o,
866
+ weekStartsOn: c,
867
+ locale: r
868
+ };
869
+ return S.map((h) => {
870
+ if (!h.isToken) return h.value;
871
+ const T = h.value;
872
+ (!(a != null && a.useAdditionalWeekYearTokens) && Ya(T) || !(a != null && a.useAdditionalDayOfYearTokens) && Ca(T)) && Fa(T, t, String(e));
873
+ const L = lt[T[0]];
874
+ return L(g, T, r.localize, k);
875
+ }).join("");
876
+ }
877
+ function Ga(e) {
878
+ const t = e.match(Wa);
879
+ return t ? t[1].replace(Ha, "'") : e;
880
+ }
881
+ function Qa(e, t, a) {
882
+ const n = x(e, a == null ? void 0 : a.in);
883
+ return n.setHours(t), n;
884
+ }
885
+ function $a(e, t, a) {
886
+ const n = x(e, a == null ? void 0 : a.in);
887
+ return n.setMinutes(t), n;
888
+ }
889
+ function ja(e, t, a) {
890
+ const n = x(e, a == null ? void 0 : a.in);
891
+ return n.setSeconds(t), n;
892
+ }
893
+ function mt(e, t) {
894
+ const a = x(e, t == null ? void 0 : t.in);
895
+ return a.setMilliseconds(0), a;
896
+ }
897
+ function ft(e, t) {
898
+ return +mt(e) == +mt(t);
899
+ }
900
+ function Ie(e, t) {
901
+ return +x(e) == +x(t);
902
+ }
903
+ function Ka(e, t) {
904
+ return Q(
905
+ ge(e, e),
906
+ fa(e)
907
+ );
908
+ }
909
+ function Dt(e, t, a) {
910
+ const n = x(e, a == null ? void 0 : a.in);
911
+ return n.setMilliseconds(t), n;
912
+ }
913
+ const St = {
914
+ "en-US": {
915
+ customRange: "Custom range",
916
+ daily: "Daily",
917
+ dateFrom: "Date from",
918
+ dateTo: "Date to",
919
+ lastMonth: "Last month",
920
+ lastSevenDays: "Last 7 days",
921
+ lastThreeMonths: "Last three months",
922
+ monthly: "Monthly",
923
+ quarterly: "Quarterly",
924
+ timeFrom: "Time from",
925
+ timeTo: "Time to",
926
+ weekly: "Weekly"
927
+ },
928
+ "ja-JP": {
929
+ customRange: "カスタム範囲",
930
+ daily: "毎日",
931
+ dateFrom: "開始日",
932
+ dateTo: "日付まで",
933
+ lastMonth: "先月",
934
+ lastSevenDays: "過去7日間",
935
+ lastThreeMonths: "過去3か月",
936
+ monthly: "毎月",
937
+ quarterly: "毎四半期",
938
+ timeFrom: "開始時刻",
939
+ timeTo: "終了時刻",
940
+ weekly: "毎週"
941
+ },
942
+ "pt-BR": {
943
+ customRange: "Intervalo personalizado",
944
+ daily: "Diária",
945
+ dateFrom: "Data a partir de",
946
+ dateTo: "Data até",
947
+ lastMonth: "Último mês",
948
+ lastSevenDays: "Últimos 7 dias",
949
+ lastThreeMonths: "Últimos 3 meses",
950
+ monthly: "Mensal",
951
+ quarterly: "Trimestral",
952
+ timeFrom: "Horário a partir de",
953
+ timeTo: "Hora de",
954
+ weekly: "Semanal"
955
+ }
956
+ }, Va = { class: "b-date-range-picker-calendar" }, Xa = { class: "b-date-range-picker-calendar__form" }, Ja = { key: 0 }, Za = {
957
+ key: 0,
958
+ class: "b-date-range-picker-calendar__calendars-container",
959
+ "data-testid": "date-range-picker-calendar-calendar-container"
960
+ }, za = {
961
+ name: "date-range-picker-calendar",
962
+ i18n: { messages: St }
963
+ }, en = /* @__PURE__ */ vt({
964
+ ...za,
965
+ props: {
966
+ /**
967
+ * Allows user to enter time values in the form
968
+ */
969
+ allowTimeInput: { type: Boolean, default: !1 },
970
+ /**
971
+ * Ranges form persistance data
972
+ */
973
+ dateFormData: {
974
+ type: Object,
975
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
976
+ },
977
+ /**
978
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
979
+ */
980
+ firstDayOfWeek: ee.props.firstDayOfWeek,
981
+ /**
982
+ * A list of available granularities.
983
+ * If present, the date picker will display a segmented control to change granularity.
984
+ */
985
+ granularities: {
986
+ type: Array,
987
+ default: null
988
+ },
989
+ /**
990
+ * Indicate if a date should be disabled or not
991
+ */
992
+ isDateDisabled: ee.props.isDateDisabled,
993
+ /**
994
+ * Set a maximum number of dates to be selectable by the range.
995
+ */
996
+ maxRange: ee.props.maxRange,
997
+ /**
998
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
999
+ */
1000
+ min: ee.props.min,
1001
+ /**
1002
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
1003
+ */
1004
+ max: ee.props.max,
1005
+ /**
1006
+ * Number of months rendered on pane
1007
+ */
1008
+ numberOfMonths: {
1009
+ type: ee.props.numberOfMonths.type,
1010
+ default: ee.props.numberOfMonths.default,
1011
+ validator: (e) => e >= 0
1012
+ },
1013
+ /**
1014
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
1015
+ */
1016
+ showEndDateOnOpen: { type: Boolean, default: !1 },
1017
+ /**
1018
+ * Enables the custom range selector.
1019
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
1020
+ * `label` - label of custom range item.
1021
+ * `value` - a unique key of the custom range item.
1022
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
1023
+ */
1024
+ quickSelectRanges: {
1025
+ type: Array,
1026
+ default: void 0
1027
+ },
1028
+ /**
1029
+ * Selected date
1030
+ */
1031
+ value: { type: Object, default: void 0 },
1032
+ /**
1033
+ * The type of calendar to display. Defaults to showing days.
1034
+ */
1035
+ variant: ee.props.variant
1036
+ },
1037
+ emits: [
1038
+ O.CUSTOM_RANGE,
1039
+ O.INPUT,
1040
+ O.ERROR,
1041
+ O.FORM_DATE,
1042
+ O.START_DATE_SELECTED
1043
+ ],
1044
+ setup(e, { emit: t }) {
1045
+ var je, Ke, Ve, Xe;
1046
+ const n = "customRange", r = e, o = t, c = Pt(), g = ca(c), { locale: S, t: k } = We({ messages: St }), p = Le(), R = U({}), P = E(() => r.variant === "month" ? "monthly" : "daily"), W = E(() => r.numberOfMonths === 0), i = Ye({
1047
+ startDate: (je = r.value) == null ? void 0 : je.startDate,
1048
+ endDate: (Ke = r.value) == null ? void 0 : Ke.endDate,
1049
+ range: (Ve = r.value) == null ? void 0 : Ve.range,
1050
+ ...r.granularities ? {
1051
+ granularity: ((Xe = r.value) == null ? void 0 : Xe.granularity) || P.value
1052
+ } : {}
1053
+ });
1054
+ function b(s) {
1055
+ return s ? new Date(
1056
+ s.getUTCFullYear(),
1057
+ s.getUTCMonth(),
1058
+ s.getUTCDate(),
1059
+ s.getUTCHours(),
1060
+ s.getUTCMinutes(),
1061
+ s.getUTCSeconds()
1062
+ ) : null;
1063
+ }
1064
+ const y = E(() => {
1065
+ var s, l;
1066
+ return (
1067
+ // eslint-disable-next-line consistent-return
1068
+ ((l = (s = r == null ? void 0 : r.quickSelectRanges) == null ? void 0 : s.find(({ value: f, data: m }) => {
1069
+ var I;
1070
+ if (!m.endDate) {
1071
+ if (m.isRelativeToNow) {
1072
+ const F = (I = R.value) == null ? void 0 : I[f];
1073
+ return F ? Ie(
1074
+ b(F.startDate),
1075
+ b(i.startDate)
1076
+ ) && Ie(
1077
+ b(F.endDate),
1078
+ b(i.endDate)
1079
+ ) : (
1080
+ // If not stored calculated dates, fall back to comparing the quick select item's value
1081
+ // with the internal range's stored range identifier.
1082
+ f === i.range
1083
+ );
1084
+ }
1085
+ return Ie(b(m.startDate), b(i.startDate)) && Ie(
1086
+ b(i.endDate),
1087
+ b(V(i.endDate))
1088
+ ) && Ka(b(i.endDate)) && (r.granularities ? m.granularity === i.granularity : !0);
1089
+ }
1090
+ if (r.allowTimeInput)
1091
+ return ft(b(m.startDate), b(i.startDate)) && ft(b(m.endDate), b(i.endDate)) && (r.granularities ? m.granularity === i.granularity : !0);
1092
+ if (m.endDate)
1093
+ return Q(m.startDate, i.startDate) && Q(m.endDate, i.endDate) && (r.granularities ? m.granularity === i.granularity : !0);
1094
+ })) == null ? void 0 : l.value) ?? n
1095
+ );
1096
+ }), H = E(() => ({
1097
+ "b-date-range-picker-calendar__form-input-wrapper": r.allowTimeInput
1098
+ })), h = E(() => [
1099
+ { label: k("customRange"), value: n },
1100
+ ...r.quickSelectRanges ? r.quickSelectRanges : []
1101
+ ]), T = E(
1102
+ () => {
1103
+ var s;
1104
+ return ((s = r.granularities) == null ? void 0 : s.find(({ type: l }) => l === i.granularity)) || null;
1105
+ }
1106
+ ), L = E(
1107
+ () => {
1108
+ var s;
1109
+ return ((s = r.granularities) == null ? void 0 : s.map(({ type: l, disabled: f }) => ({
1110
+ label: k(l),
1111
+ value: l,
1112
+ disabled: f
1113
+ }))) ?? [];
1114
+ }
1115
+ ), { getGranularCalendarLimits: ve } = va(r), M = E(
1116
+ () => r.granularities ? ve(T.value) : { min: r.min ? q(r.min) : null, max: r.max ? V(r.max) : null }
1117
+ ), {
1118
+ adjustDateForQuarterly: ye,
1119
+ adjustDateForMonthly: $,
1120
+ adjustDateForWeekly: j,
1121
+ adjustStartDateInputForWeekly: G,
1122
+ adjustEndDateInputForWeekly: _,
1123
+ adjustStartDateInputForMonthly: Ae,
1124
+ adjustEndDateInputForMonthly: le,
1125
+ adjustStartDateInputForQuarterly: Ue,
1126
+ adjustEndDateInputForQuarterly: Me
1127
+ } = sa(r.firstDayOfWeek), { savedRanges: X, saveRange: re, resetSavedRanges: ue } = ya(), Y = (s) => {
1128
+ var l;
1129
+ return s ? pe(s, N.NUMERIC_DATE_YEAR_FIRST, {
1130
+ locale: p[(l = S.value) == null ? void 0 : l.substring(0, 2)] || p.enUS
1131
+ }) : "";
1132
+ }, se = (s) => {
1133
+ var l;
1134
+ return s ? pe(s, N.HOUR_MINUTE_SECONDS, {
1135
+ locale: p[(l = S.value) == null ? void 0 : l.substring(0, 2)] || p.enUS
1136
+ }) : "";
1137
+ }, de = U(!1), ce = U(!1), J = U(!1), Z = U(!1), d = Ye({
1138
+ startDate: r.dateFormData.startDate,
1139
+ endDate: r.dateFormData.endDate,
1140
+ startTime: r.dateFormData.startTime,
1141
+ endTime: r.dateFormData.endTime
1142
+ }), Oe = (s, l) => {
1143
+ let f = new Date(s);
1144
+ const [m, I, F] = l.split(":");
1145
+ return f = Qa(f, parseInt(m, 10)), f = $a(f, parseInt(I, 10)), f = ja(f, parseInt(F, 10)), f;
1146
+ }, Ee = (s) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(s), u = (s, l) => {
1147
+ const f = () => {
1148
+ if (l && C(l)) {
1149
+ const m = Oe(new Date(l), s);
1150
+ if (r.min && m < Dt(r.min, 0) || r.max && m > Dt(r.max, 0))
1151
+ return !1;
1152
+ }
1153
+ return !0;
1154
+ };
1155
+ return Ee(s) && f();
1156
+ }, w = (s, l) => !l || !Ee(l) || r.variant === "month" ? s : Oe(new Date(s), l), K = (s) => {
1157
+ d.startTime = se(
1158
+ r.min && r.allowTimeInput && Q(r.min, s.startDate) ? r.min : q(s.startDate)
1159
+ ), d.endTime = se(
1160
+ r.max && r.allowTimeInput && Q(r.max, s.endDate) ? r.max : V(s.endDate)
1161
+ ), i.startDate = w(s.startDate, d.startTime), i.endDate = w(s.endDate, d.endTime), i.range = null, r.granularities && ue(), o(O.INPUT, {
1162
+ ...i,
1163
+ range: y.value
1164
+ });
1165
+ }, C = (s) => {
1166
+ const l = (m) => r.min && q(m) < q(r.min) || r.max && q(m) > q(r.max) ? !1 : r.isDateDisabled ? !r.isDateDisabled(q(m)) : !0;
1167
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(s) && l(new Date(s));
1168
+ };
1169
+ yt(() => {
1170
+ de.value = !!(r.dateFormData.startDate && !C(r.dateFormData.startDate)), r.allowTimeInput ? J.value = !!(r.dateFormData.startTime && !u(r.dateFormData.startTime, r.dateFormData.startDate)) : J.value = !1, ce.value = !!(r.dateFormData.endDate && !C(r.dateFormData.endDate)), r.allowTimeInput ? Z.value = !!(r.dateFormData.endTime && !u(r.dateFormData.endTime, r.dateFormData.endDate)) : Z.value = !1;
1171
+ });
1172
+ const z = (s) => {
1173
+ var l;
1174
+ d.startDate = Y(s), d.startTime ? J.value && (d.startTime = (l = r.dateFormData) == null ? void 0 : l.startTime) : d.startTime = se(s), de.value = !1, J.value = !1, o(O.START_DATE_SELECTED, s);
1175
+ }, Re = (s) => {
1176
+ var l;
1177
+ d.endDate = Y(s), d.endTime ? Z.value && (d.endTime = (l = r.dateFormData) == null ? void 0 : l.endTime) : d.endTime = se(V(s)), ce.value = !1, Z.value = !1;
1178
+ }, Be = (s) => {
1179
+ const l = r.value[s];
1180
+ if (l)
1181
+ return l;
1182
+ if (r.dateFormData[s] && C(r.dateFormData[s]))
1183
+ return new Date(r.dateFormData[s]);
1184
+ }, kt = _e((s) => {
1185
+ var l;
1186
+ if (C(s)) {
1187
+ let f = s;
1188
+ switch (de.value = !1, (l = T.value) == null ? void 0 : l.type) {
1189
+ case "weekly":
1190
+ f = G(
1191
+ s,
1192
+ Y,
1193
+ M.value.min,
1194
+ M.value.max
1195
+ ), d.startDate = f;
1196
+ break;
1197
+ case "monthly":
1198
+ f = Ae(
1199
+ s,
1200
+ Y,
1201
+ M.value.min,
1202
+ M.value.max
1203
+ ), d.startDate = f;
1204
+ break;
1205
+ case "quarterly":
1206
+ f = Ue(
1207
+ s,
1208
+ Y,
1209
+ M.value.min,
1210
+ M.value.max
1211
+ ), d.startDate = f;
1212
+ break;
1213
+ }
1214
+ const m = De(f);
1215
+ i.startDate = w(m, d.startTime), i.endDate = w(
1216
+ De(d.endDate),
1217
+ d.endTime
1218
+ ), C(d.endDate) && (i.endDate = w(
1219
+ De(d.endDate),
1220
+ d.endTime
1221
+ ));
1222
+ const I = Be("endDate");
1223
+ i.range = null, o(O.FORM_DATE, {
1224
+ startDate: m,
1225
+ endDate: I
1226
+ }), o(O.INPUT, {
1227
+ ...i,
1228
+ range: y.value
1229
+ });
1230
+ } else
1231
+ de.value = !0, o(O.ERROR, { ...d });
1232
+ }, 300), _t = (s) => {
1233
+ d.startDate = st(s), kt(d.startDate);
1234
+ }, It = _e((s) => {
1235
+ var l;
1236
+ if (C(s)) {
1237
+ let f = s;
1238
+ switch (ce.value = !1, (l = T.value) == null ? void 0 : l.type) {
1239
+ case "weekly":
1240
+ f = _(
1241
+ s,
1242
+ Y,
1243
+ M.value.min,
1244
+ M.value.max
1245
+ ), d.endDate = f;
1246
+ break;
1247
+ case "monthly":
1248
+ f = le(
1249
+ s,
1250
+ Y,
1251
+ M.value.min,
1252
+ M.value.max
1253
+ ), d.endDate = f;
1254
+ break;
1255
+ case "quarterly":
1256
+ f = Me(
1257
+ s,
1258
+ Y,
1259
+ M.value.min,
1260
+ M.value.max
1261
+ ), d.endDate = f;
1262
+ break;
1263
+ }
1264
+ const m = De(f);
1265
+ i.endDate = w(m, d.endTime), C(d.startDate) && (i.startDate = w(
1266
+ De(d.startDate),
1267
+ d.startTime
1268
+ ));
1269
+ const I = Be("startDate");
1270
+ i.range = null, o(O.FORM_DATE, {
1271
+ startDate: I,
1272
+ endDate: m
1273
+ }), o(O.INPUT, {
1274
+ ...i,
1275
+ range: y.value
1276
+ });
1277
+ } else
1278
+ ce.value = !0, o(O.ERROR, { ...d });
1279
+ }, 300), Nt = (s) => {
1280
+ d.endDate = st(s), It(d.endDate);
1281
+ }, Qe = (s) => {
1282
+ ma(s);
1283
+ }, xt = _e((s) => {
1284
+ if (u(s, r.dateFormData.startDate)) {
1285
+ J.value = !1, i.startDate = w(i.startDate, s);
1286
+ const l = Be("endDate");
1287
+ o(O.FORM_DATE, {
1288
+ startDate: i.startDate,
1289
+ endDate: l,
1290
+ startTime: s,
1291
+ endTime: d.endTime ?? r.dateFormData.endTime
1292
+ }), o(O.INPUT, {
1293
+ ...i,
1294
+ range: y.value
1295
+ });
1296
+ } else
1297
+ J.value = !0, o(O.ERROR, { ...d });
1298
+ }), Ct = _e((s) => {
1299
+ u(s, r.dateFormData.endDate) ? (Z.value = !1, i.endDate = w(i.endDate, s), o(O.FORM_DATE, {
1300
+ startDate: i.startDate,
1301
+ endDate: i.endDate,
1302
+ startTime: d.startTime ?? r.dateFormData.startTime,
1303
+ endTime: s
1304
+ }), o(O.INPUT, {
1305
+ ...i,
1306
+ range: y.value
1307
+ })) : (Z.value = !0, o(O.ERROR, { ...d }));
1308
+ }), Yt = (s) => {
1309
+ d.startTime = ot(s), xt(d.startTime);
1310
+ }, Ft = (s) => {
1311
+ d.endTime = ot(s), Ct(d.endTime);
1312
+ }, $e = (s) => {
1313
+ wa(s);
1314
+ }, Se = (s, l, f, m) => {
1315
+ i.startDate = s, i.endDate = l, f && (i.granularity = f), m && (i.range = m);
1316
+ }, At = (s) => {
1317
+ var f;
1318
+ const l = (f = r.quickSelectRanges) == null ? void 0 : f.find(({ value: m }) => m === s);
1319
+ if (l) {
1320
+ ue();
1321
+ const m = l.data, I = m.endDate || (m.isRelativeToNow ? new Date(Date.now()) : V(new Date(Date.now()))), F = m.isRelativeToNow && m.timeDifference ? new Date(I.getTime() - m.timeDifference) : m.startDate;
1322
+ d.endDate = Y(I), d.startDate = Y(F), Se(F, I, null, s), r.granularities && (i.granularity = m.granularity || P.value), d.startTime = se(F), d.endTime = se(I), i.startDate = F, i.endDate = I, m.isRelativeToNow && (R.value = {
1323
+ ...R.value,
1324
+ [s]: {
1325
+ startDate: F,
1326
+ endDate: I
1327
+ }
1328
+ }), o(O.CUSTOM_RANGE, {
1329
+ ...l.data,
1330
+ startDate: F,
1331
+ endDate: I,
1332
+ range: l.value
1333
+ });
1334
+ }
1335
+ }, Ut = {
1336
+ weekly: j,
1337
+ monthly: $,
1338
+ quarterly: ye
1339
+ }, Bt = (s) => {
1340
+ const l = i.granularity;
1341
+ if (i.granularity = s, l && re(l, structuredClone(qe(i))), i.startDate && i.endDate) {
1342
+ switch (s) {
1343
+ case "quarterly":
1344
+ case "monthly":
1345
+ case "weekly": {
1346
+ if (X[s]) {
1347
+ Se(X[s].startDate, X[s].endDate, s);
1348
+ break;
1349
+ }
1350
+ const { startDate: f, endDate: m } = Ut[s](
1351
+ i.startDate,
1352
+ i.endDate,
1353
+ M.value.min,
1354
+ M.value.max
1355
+ );
1356
+ Se(f, m, s);
1357
+ break;
1358
+ }
1359
+ case "daily":
1360
+ X.daily && Se(X.daily.startDate, X.daily.endDate, s);
1361
+ break;
1362
+ }
1363
+ d.startDate = Y(i.startDate), d.endDate = Y(i.endDate), o(O.INPUT, {
1364
+ ...i,
1365
+ range: y.value
1366
+ });
1367
+ }
1368
+ }, qt = E(() => ({
1369
+ "b-date-range-picker-calendar__form-container--no-calendars": W.value
1370
+ }));
1371
+ return (s, l) => (A(), Ne("div", Va, [
1372
+ oe("div", {
1373
+ class: xe(["b-date-range-picker-calendar__form-container", qt.value]),
1374
+ "data-testid": "date-range-picker-calendar-form-container"
1375
+ }, [
1376
+ oe("div", Xa, [
1377
+ D(g)("title") ? Je(s.$slots, "title", { key: 0 }, void 0, !0) : B("", !0),
1378
+ e.quickSelectRanges ? (A(), ae(ua, {
1379
+ key: 1,
1380
+ "aria-label": D(k)("customRange"),
1381
+ items: h.value,
1382
+ "model-value": y.value,
1383
+ "onUpdate:modelValue": At
1384
+ }, null, 8, ["aria-label", "items", "model-value"])) : B("", !0),
1385
+ e.granularities ? (A(), ae(D(da), {
1386
+ key: 2,
1387
+ items: L.value,
1388
+ "model-value": i.granularity,
1389
+ "full-width": "",
1390
+ "onUpdate:modelValue": Bt
1391
+ }, null, 8, ["items", "model-value"])) : B("", !0),
1392
+ oe("div", null, [
1393
+ ne(D(Pe), {
1394
+ stronger: "",
1395
+ el: "span",
1396
+ class: "b-date-range-picker-calendar__label"
1397
+ }, {
1398
+ default: te(() => l[0] || (l[0] = [
1399
+ me(" From ")
1400
+ ])),
1401
+ _: 1
1402
+ }),
1403
+ oe("div", {
1404
+ class: xe(H.value)
1405
+ }, [
1406
+ ne(D(ke), {
1407
+ "aria-label": D(k)("dateFrom"),
1408
+ "model-value": d.startDate,
1409
+ error: de.value,
1410
+ class: "b-date-range-picker-calendar__form-input",
1411
+ "onUpdate:modelValue": _t,
1412
+ onKeydown: Qe
1413
+ }, {
1414
+ description: te(() => l[1] || (l[1] = [
1415
+ me("YYYY-MM-DD")
1416
+ ])),
1417
+ _: 1
1418
+ }, 8, ["aria-label", "model-value", "error"]),
1419
+ e.allowTimeInput ? (A(), ae(D(ke), {
1420
+ key: 0,
1421
+ "aria-label": D(k)("timeFrom"),
1422
+ "model-value": d.startTime,
1423
+ error: J.value,
1424
+ class: "b-date-range-picker-calendar__form-input",
1425
+ "onUpdate:modelValue": Yt,
1426
+ onKeydown: $e
1427
+ }, {
1428
+ description: te(() => l[2] || (l[2] = [
1429
+ me("HH:MM:SS")
1430
+ ])),
1431
+ _: 1
1432
+ }, 8, ["aria-label", "model-value", "error"])) : B("", !0)
1433
+ ], 2)
1434
+ ]),
1435
+ oe("div", null, [
1436
+ ne(D(Pe), {
1437
+ stronger: "",
1438
+ el: "span",
1439
+ class: "b-date-range-picker-calendar__label"
1440
+ }, {
1441
+ default: te(() => l[3] || (l[3] = [
1442
+ me(" To ")
1443
+ ])),
1444
+ _: 1
1445
+ }),
1446
+ oe("div", {
1447
+ class: xe(H.value)
1448
+ }, [
1449
+ ne(D(ke), {
1450
+ class: "b-date-range-picker-calendar__form-input",
1451
+ "aria-label": D(k)("dateTo"),
1452
+ "model-value": d.endDate,
1453
+ error: ce.value,
1454
+ "onUpdate:modelValue": Nt,
1455
+ onKeydown: Qe
1456
+ }, {
1457
+ description: te(() => l[4] || (l[4] = [
1458
+ me("YYYY-MM-DD")
1459
+ ])),
1460
+ _: 1
1461
+ }, 8, ["aria-label", "model-value", "error"]),
1462
+ e.allowTimeInput ? (A(), ae(D(ke), {
1463
+ key: 0,
1464
+ "aria-label": D(k)("timeTo"),
1465
+ "model-value": d.endTime,
1466
+ error: Z.value,
1467
+ class: "b-date-range-picker-calendar__form-input",
1468
+ "onUpdate:modelValue": Ft,
1469
+ onKeydown: $e
1470
+ }, {
1471
+ description: te(() => l[5] || (l[5] = [
1472
+ me("HH:MM:SS")
1473
+ ])),
1474
+ _: 1
1475
+ }, 8, ["aria-label", "model-value", "error"])) : B("", !0)
1476
+ ], 2)
1477
+ ])
1478
+ ]),
1479
+ D(g)("actions") ? (A(), Ne("div", Ja, [
1480
+ Je(s.$slots, "actions", {}, void 0, !0)
1481
+ ])) : B("", !0)
1482
+ ], 2),
1483
+ W.value ? B("", !0) : (A(), Ne("div", Za, [
1484
+ ne(D(ee), {
1485
+ value: i,
1486
+ "first-day-of-week": e.firstDayOfWeek,
1487
+ "is-date-disabled": e.isDateDisabled,
1488
+ "max-range": e.maxRange,
1489
+ min: M.value.min,
1490
+ max: M.value.max,
1491
+ "number-of-months": e.numberOfMonths,
1492
+ "show-end-date-on-open": e.showEndDateOnOpen,
1493
+ granularity: T.value,
1494
+ variant: e.variant,
1495
+ "is-range": "",
1496
+ onInput: K,
1497
+ onStartDateSelected: z,
1498
+ onEndDateSelected: Re
1499
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
1500
+ ]))
1501
+ ]));
1502
+ }
1503
+ }), tn = /* @__PURE__ */ wt(en, [["__scopeId", "data-v-b8e14e1c"]]);
1504
+ function gt(e, t) {
1505
+ const a = x(e, t == null ? void 0 : t.in);
1506
+ return Math.trunc(a.getMonth() / 3) + 1;
1507
+ }
1508
+ function ht(e, t) {
1509
+ return x(e, t == null ? void 0 : t.in).getFullYear();
1510
+ }
1511
+ function an(e, t, a) {
1512
+ const [n, r] = zt(
1513
+ a == null ? void 0 : a.in,
1514
+ e,
1515
+ t
1516
+ );
1517
+ return +we(n) == +we(r);
1518
+ }
1519
+ const Ge = {
1520
+ "en-US": {
1521
+ apply: "Apply",
1522
+ cancel: "Cancel",
1523
+ dateRangePicker: "Date range picker {name}",
1524
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
1525
+ quarter: "Q{quarter} {year}",
1526
+ selectDate: "Select a date",
1527
+ selectDateRange: "Select a date range",
1528
+ selectedDateIsNotAvailable: "Selected date is not available"
1529
+ },
1530
+ "ja-JP": {
1531
+ apply: "適用",
1532
+ cancel: "キャンセル",
1533
+ dateRangePicker: "日付範囲ピッカー {name}",
1534
+ provideDateInAFormat: "YYYY-MM-DD形式で日付を入力してください",
1535
+ quarter: "{year}年第{quarter}四半期",
1536
+ selectDate: "日付を選択",
1537
+ selectDateRange: "日付範囲を選択",
1538
+ selectedDateIsNotAvailable: "選択した日付は利用できません"
1539
+ },
1540
+ "pt-BR": {
1541
+ apply: "Aplicar",
1542
+ cancel: "Cancelar",
1543
+ dateRangePicker: "Seletor de intervalo de datas {name}",
1544
+ provideDateInAFormat: "Forneça a data no formato AAAA-MM-DD",
1545
+ quarter: "{quarter}º trimestre de {year}",
1546
+ selectDate: "Selecione uma data",
1547
+ selectDateRange: "Selecione um intervalo de datas",
1548
+ selectedDateIsNotAvailable: "A data selecionada não está disponível"
1549
+ }
1550
+ }, nn = ({
1551
+ datePickerValue: e,
1552
+ isDateIncorrect: t,
1553
+ quickSelectRanges: a,
1554
+ isMonthVariant: n,
1555
+ withTimeInput: r,
1556
+ placeholder: o
1557
+ }) => {
1558
+ const { locale: c, t: g } = We({ messages: Ge }), S = Le(), k = (i) => !!i && !isNaN(i.getTime()), p = (i, b) => {
1559
+ var y;
1560
+ return k(i) ? pe(i, b, {
1561
+ locale: S[(y = c.value) == null ? void 0 : y.substring(0, 2)] || S.enUS
1562
+ }) : void 0;
1563
+ }, R = Ye({
1564
+ startDate: null,
1565
+ endDate: null,
1566
+ startTime: null,
1567
+ endTime: null
1568
+ });
1569
+ return Ce(
1570
+ e,
1571
+ (i) => {
1572
+ R.startDate = p(
1573
+ i == null ? void 0 : i.startDate,
1574
+ N.NUMERIC_DATE_YEAR_FIRST
1575
+ ), R.endDate = p(i == null ? void 0 : i.endDate, N.NUMERIC_DATE_YEAR_FIRST), R.startTime = p(i == null ? void 0 : i.startDate, N.HOUR_MINUTE_SECONDS), R.endTime = p(i == null ? void 0 : i.endDate, N.HOUR_MINUTE_SECONDS);
1576
+ },
1577
+ { immediate: !0 }
1578
+ ), {
1579
+ // Values
1580
+ dateDisplayValue: E(() => {
1581
+ var ye;
1582
+ if (t.value)
1583
+ return `${R.startDate || ""} - ${R.endDate || ""}`;
1584
+ if (!e.value || !e.value.startDate && !e.value.endDate)
1585
+ return (o == null ? void 0 : o.value) || g("selectDateRange");
1586
+ if ((ye = a.value) != null && ye.length) {
1587
+ const $ = a.value.find(({ value: j }) => {
1588
+ var G;
1589
+ return j === ((G = e.value) == null ? void 0 : G.range);
1590
+ });
1591
+ if ($)
1592
+ return $.label;
1593
+ }
1594
+ if (e.value.granularity === "quarterly") {
1595
+ const { startDate: $, endDate: j } = e.value, G = g("quarter", { quarter: gt($), year: ht($) });
1596
+ if (an($, j))
1597
+ return G;
1598
+ const _ = g("quarter", { quarter: gt(j), year: ht(j) });
1599
+ return `${G} - ${_}`;
1600
+ }
1601
+ const { startDate: i, endDate: b, startTime: y, endTime: H } = R, h = n != null && n.value ? N.LONG_MONTH_YEAR : N.FULL_DATE_MONTH_FIRST, T = p(De(i), h), L = p(De(b), h);
1602
+ if (!r.value)
1603
+ return `${T} - ${L}`;
1604
+ const ve = [T, y].filter(Boolean).join(", "), M = [L, H].filter(Boolean).join(", ");
1605
+ return `${ve} - ${M}`;
1606
+ }),
1607
+ textInputDisplayValue: R,
1608
+ // Methods
1609
+ formatTextInputDisplayValue: () => ""
1610
+ };
1611
+ }, rn = { class: "b-date-range-picker" }, sn = { class: "b-date-range-picker__footer" }, on = {
1612
+ i18n: { messages: Ge },
1613
+ name: "bento-date-range-picker",
1614
+ model: { prop: "modelValue" }
1615
+ }, ln = /* @__PURE__ */ vt({
1616
+ ...on,
1617
+ props: {
1618
+ allowTimeInput: { type: Boolean },
1619
+ firstDayOfWeek: { default: 1 },
1620
+ granularities: {},
1621
+ isDateDisabled: { type: Function, default: void 0 },
1622
+ showEndDateOnOpen: { type: Boolean, default: !1 },
1623
+ quickSelectRanges: { default: void 0 },
1624
+ maxRange: { default: null },
1625
+ min: { default: null },
1626
+ max: { default: null },
1627
+ numberOfMonths: { default: void 0 },
1628
+ modelValue: { default: null },
1629
+ value: { default: null },
1630
+ variant: { default: void 0 },
1631
+ hasActions: { type: Boolean, default: !1 },
1632
+ description: { default: void 0 },
1633
+ disabled: { type: Boolean, default: !1 },
1634
+ errorMessage: { default: null },
1635
+ label: { default: void 0 },
1636
+ optional: { type: Boolean, default: !1 },
1637
+ placeholder: { default: null },
1638
+ readonly: { type: Boolean, default: !1 },
1639
+ required: { type: Boolean, default: !1 },
1640
+ tooltipText: { default: null }
1641
+ },
1642
+ emits: ["update:model-value", "input"],
1643
+ setup(e, { emit: t }) {
1644
+ const a = t, n = e, { locale: r, t: o } = We({ messages: Ge }), c = Le(), g = be("bento-date-range-picker-container"), S = be("bento-date-range-picker-label"), k = be("bento-date-range-picker-description"), p = be("bento-date-range-picker-error"), R = be("bento-date-range-picker-date-error"), P = E(() => n.label || o("dateRangePicker", { name: g })), W = Gt({
1645
+ none: 0,
1646
+ one: 710,
1647
+ // width of date range picker with one panes
1648
+ two: 1030,
1649
+ // width of date range picker with two panes
1650
+ three: 1290
1651
+ // width of date range picker with three panes
1652
+ }), i = E(() => {
1653
+ const u = W.active().value, w = {
1654
+ none: 0,
1655
+ one: 1,
1656
+ two: 2
1657
+ };
1658
+ if (u in w) {
1659
+ const K = w[u];
1660
+ return n.numberOfMonths === void 0 ? K : Math.min(n.numberOfMonths, K);
1661
+ }
1662
+ return n.numberOfMonths;
1663
+ }), b = E(() => (n == null ? void 0 : n.quickSelectRanges) && n.quickSelectRanges.map((u) => {
1664
+ const w = u.data.endDate ? void 0 : new Date(Date.now()).getTime() - u.data.startDate.getTime();
1665
+ return {
1666
+ ...u,
1667
+ data: {
1668
+ ...u.data,
1669
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
1670
+ timeDifference: w
1671
+ }
1672
+ };
1673
+ })), y = U(!1), H = U(null), h = U(!1), { isReadOnly: T } = ia(Ze(n, "readonly")), { emitValue: L } = la(a);
1674
+ Ce(
1675
+ () => n.disabled,
1676
+ () => {
1677
+ n.disabled && h.value && (h.value = !1);
1678
+ }
1679
+ );
1680
+ const ve = E(() => n.modelValue || n.value), M = E(() => n.hasActions ? !ue.value && y.value : y.value), ye = E(() => ({
1681
+ "b-date-range-picker__description--error": !!n.errorMessage || M.value
1682
+ })), $ = E(() => n.variant === "month"), j = E(() => n.allowTimeInput && n.variant !== "month"), { dateDisplayValue: G, textInputDisplayValue: _ } = nn({
1683
+ datePickerValue: ve,
1684
+ isDateIncorrect: y,
1685
+ quickSelectRanges: b,
1686
+ isMonthVariant: $,
1687
+ withTimeInput: j,
1688
+ placeholder: Ze(n, "placeholder")
1689
+ }), Ae = E(
1690
+ () => `${n.description ? k : ""} ${n.errorMessage ? p : ""} ${y.value ? R : ""}`.trim() || null
1691
+ ), le = () => {
1692
+ h.value = !1;
1693
+ }, Ue = () => {
1694
+ h.value = !0;
1695
+ }, Me = U(G.value), X = U(
1696
+ // textInputDisplayValue is a reactive object
1697
+ structuredClone(qe(_))
1698
+ ), re = U(n.modelValue ?? n.value), ue = U(!0), Y = E(
1699
+ () => n.hasActions ? X.value : _
1700
+ ), se = E(
1701
+ () => n.hasActions ? Me.value : G.value
1702
+ );
1703
+ yt(() => {
1704
+ if (n.hasActions || et(
1705
+ 'BentoDateRangePicker "hasActions" property',
1706
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
1707
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
1708
+ "2.0.0"
1709
+ ), n.value && et(
1710
+ 'BentoDateRangePicker "value" property',
1711
+ 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
1712
+ "2.0.0"
1713
+ ), n.granularities && n.variant !== "month" && n.granularities.find(({ type: u }) => u === "quarterly"))
1714
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
1715
+ }), Ce([() => n.value, () => n.modelValue], () => {
1716
+ Me.value = G.value, X.value = structuredClone(qe(_));
1717
+ });
1718
+ const de = E(() => [
1719
+ {
1720
+ title: o("apply"),
1721
+ event: () => {
1722
+ L(re.value), le(), ue.value = !0;
1723
+ },
1724
+ disabled: ue.value
1725
+ },
1726
+ {
1727
+ title: o("cancel"),
1728
+ event: le
1729
+ }
1730
+ ]);
1731
+ Ce(re, (u) => {
1732
+ if (n.hasActions) {
1733
+ ue.value = y.value;
1734
+ return;
1735
+ }
1736
+ L(u);
1737
+ });
1738
+ const ce = (u) => {
1739
+ y.value = !1;
1740
+ const w = (K, C) => {
1741
+ var z;
1742
+ return K ? pe(K, C, {
1743
+ locale: c[(z = r.value) == null ? void 0 : z.substring(0, 2)] || c.enUS
1744
+ }) : void 0;
1745
+ };
1746
+ _.startDate = w(u.startDate, N.NUMERIC_DATE_YEAR_FIRST), _.endDate = w(u.endDate, N.NUMERIC_DATE_YEAR_FIRST), _.startTime = w(u.startDate, N.HOUR_MINUTE_SECONDS), _.endTime = w(u.endDate, N.HOUR_MINUTE_SECONDS), re.value = u;
1747
+ }, J = async () => {
1748
+ y.value && (y.value = !1), re.value = null;
1749
+ }, Z = () => {
1750
+ if (!h.value) {
1751
+ h.value = !0;
1752
+ return;
1753
+ }
1754
+ y.value || (h.value = !1);
1755
+ }, d = (u) => {
1756
+ y.value = !1, u.startTime && (_.startTime = u.startTime), u.endTime && (_.endTime = u.endTime);
1757
+ }, Oe = (u) => {
1758
+ y.value = !0, _.startDate = u.startDate, _.endDate = u.endDate, re.value = { startDate: null, endDate: null };
1759
+ }, Ee = (u) => {
1760
+ if (u) {
1761
+ const w = (C, z) => {
1762
+ var Re;
1763
+ return C ? pe(C, z, {
1764
+ locale: c[(Re = r.value) == null ? void 0 : Re.substring(0, 2)] || c.enUS
1765
+ }) : void 0;
1766
+ }, K = (C) => {
1767
+ var z;
1768
+ return pe(C, N.NUMERIC_DATE_YEAR_FIRST, {
1769
+ locale: c[(z = r.value) == null ? void 0 : z.substring(0, 2)] || c.enUS
1770
+ });
1771
+ };
1772
+ _.startDate = K(u.startDate), _.endDate = K(u.endDate), _.startTime = w(
1773
+ u.startDate,
1774
+ N.HOUR_MINUTE_SECONDS
1775
+ ), _.endTime = w(u.endDate, N.HOUR_MINUTE_SECONDS), re.value = u;
1776
+ }
1777
+ };
1778
+ return (u, w) => Wt((A(), Ne("div", rn, [
1779
+ u.label ? (A(), ae(D(Da), {
1780
+ key: 0,
1781
+ id: D(S),
1782
+ label: u.label,
1783
+ "tooltip-text": u.tooltipText,
1784
+ optional: u.optional,
1785
+ required: u.required
1786
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : B("", !0),
1787
+ oe("div", {
1788
+ onKeydown: ze(Z, ["enter"])
1789
+ }, [
1790
+ ne(D(Kt), {
1791
+ ref_key: "inputContainerRef",
1792
+ ref: H,
1793
+ "always-combobox-is-input": "",
1794
+ ariaControls: D(g),
1795
+ ariaExpanded: h.value,
1796
+ "aria-labelledby": u.label ? D(S) : null,
1797
+ "aria-describedby": Ae.value,
1798
+ disabled: u.disabled,
1799
+ "is-invalid": !!u.errorMessage || M.value,
1800
+ open: h.value,
1801
+ "display-value": se.value,
1802
+ readonly: D(T),
1803
+ onOpen: Ue,
1804
+ onClear: J,
1805
+ onClose: le
1806
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
1807
+ ], 32),
1808
+ M.value ? (A(), ae(D(it), {
1809
+ key: 1,
1810
+ id: D(R),
1811
+ "error-message": D(o)("provideDateInAFormat"),
1812
+ class: "b-date-range-picker__error-message"
1813
+ }, null, 8, ["id", "error-message"])) : B("", !0),
1814
+ u.errorMessage ? (A(), ae(D(it), {
1815
+ key: 2,
1816
+ id: D(p),
1817
+ "error-message": u.errorMessage,
1818
+ class: "b-date-range-picker__error-message"
1819
+ }, null, 8, ["id", "error-message"])) : B("", !0),
1820
+ u.description ? (A(), ae(D(Pe), {
1821
+ key: 3,
1822
+ id: D(k),
1823
+ class: xe(["b-date-range-picker__description", ye.value]),
1824
+ el: "span"
1825
+ }, {
1826
+ default: te(() => [
1827
+ me(Ht(u.description), 1)
1828
+ ]),
1829
+ _: 1
1830
+ }, 8, ["id", "class"])) : B("", !0),
1831
+ H.value ? (A(), ae(D($t), {
1832
+ key: 4,
1833
+ id: D(g),
1834
+ class: "b-date-range-picker__container",
1835
+ open: h.value,
1836
+ "target-element": H.value,
1837
+ "aria-label": P.value,
1838
+ position: "bottom-start",
1839
+ "without-space": "",
1840
+ "fit-content": "",
1841
+ "trap-all": "",
1842
+ "overflow-visible": "",
1843
+ onKeydown: ze(le, ["esc", "native"])
1844
+ }, {
1845
+ default: te(() => [
1846
+ ne(D(tn), {
1847
+ "allow-time-input": j.value,
1848
+ "quick-select-ranges": b.value,
1849
+ value: ve.value,
1850
+ "first-day-of-week": u.firstDayOfWeek,
1851
+ granularities: u.granularities,
1852
+ "is-date-disabled": u.isDateDisabled,
1853
+ "max-range": u.maxRange,
1854
+ min: u.min,
1855
+ max: u.max,
1856
+ "number-of-months": i.value,
1857
+ "show-end-date-on-open": u.showEndDateOnOpen,
1858
+ "date-form-data": Y.value,
1859
+ variant: u.variant,
1860
+ onCustomRange: Ee,
1861
+ onInput: ce,
1862
+ onError: Oe,
1863
+ onFormDate: d
1864
+ }, Lt({ _: 2 }, [
1865
+ u.hasActions ? {
1866
+ name: "actions",
1867
+ fn: te(() => [
1868
+ ne(D(Qt)),
1869
+ oe("div", sn, [
1870
+ ne(D(jt), {
1871
+ actions: de.value,
1872
+ layout: D(ga).SPACE_BETWEEN
1873
+ }, null, 8, ["actions", "layout"])
1874
+ ])
1875
+ ]),
1876
+ key: "0"
1877
+ } : void 0
1878
+ ]), 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"])
1879
+ ]),
1880
+ _: 1
1881
+ }, 8, ["id", "open", "target-element", "aria-label"])) : B("", !0)
1882
+ ])), [
1883
+ [D(oa), le]
1884
+ ]);
1885
+ }
1886
+ }), qn = /* @__PURE__ */ wt(ln, [["__scopeId", "data-v-6916f9db"]]);
1887
+ export {
1888
+ qn as B,
1889
+ N as D,
1890
+ tn as a,
1891
+ Ka as b,
1892
+ pe as f,
1893
+ Le as g,
1894
+ Ie as i
1895
+ };
1896
+ //# sourceMappingURL=date-range-picker.TsUvRvGy.js.map