@adyen/bento-vue2 1.60.0 → 1.60.1

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 (579) hide show
  1. package/dist/@types/components.d.ts +201 -0
  2. package/dist/@types/index.d.ts +17710 -0
  3. package/dist/@types/use-form-v4.d.ts +86 -0
  4. package/dist/accordion.js +6 -0
  5. package/dist/accordion.js.map +1 -0
  6. package/dist/action-bar.js +5 -0
  7. package/dist/action-bar.js.map +1 -0
  8. package/dist/alert.js +8 -0
  9. package/dist/alert.js.map +1 -0
  10. package/dist/assets/accordion-item.css +1 -0
  11. package/dist/assets/action-bar.css +1 -0
  12. package/dist/assets/alert.css +1 -0
  13. package/dist/assets/avatar.css +1 -0
  14. package/dist/assets/base-button.css +1 -0
  15. package/dist/assets/base-modal.css +1 -0
  16. package/dist/assets/button-actions-with-menu.css +1 -0
  17. package/dist/assets/button-actions.css +1 -0
  18. package/dist/assets/button.css +1 -0
  19. package/dist/assets/calendar.css +1 -0
  20. package/dist/assets/card.css +1 -0
  21. package/dist/assets/checkbox-group.css +1 -0
  22. package/dist/assets/checkbox-input.css +1 -0
  23. package/dist/assets/checkbox.css +1 -0
  24. package/dist/assets/chip.css +1 -0
  25. package/dist/assets/code-snippet.css +1 -0
  26. package/dist/assets/controls-group.css +1 -0
  27. package/dist/assets/copy.css +1 -0
  28. package/dist/assets/country.css +1 -0
  29. package/dist/assets/currency.css +1 -0
  30. package/dist/assets/dashboard-section.css +1 -0
  31. package/dist/assets/dashed-underline.css +1 -0
  32. package/dist/assets/data-grid-template.css +1 -0
  33. package/dist/assets/data-grid.css +1 -0
  34. package/dist/assets/date-picker.css +1 -0
  35. package/dist/assets/date-range-picker.css +1 -0
  36. package/dist/assets/date.css +1 -0
  37. package/dist/assets/dialog-page.css +1 -0
  38. package/dist/assets/divider.css +1 -0
  39. package/dist/assets/dropdown-default-textbox.css +1 -0
  40. package/dist/assets/dropdown-tag.css +1 -0
  41. package/dist/assets/dropdown.css +1 -0
  42. package/dist/assets/empty-state.css +1 -0
  43. package/dist/assets/error-message.css +1 -0
  44. package/dist/assets/file-uploader.css +1 -0
  45. package/dist/assets/filter-bar.css +1 -0
  46. package/dist/assets/fixed-scroller.css +1 -0
  47. package/dist/assets/focus-trap.css +1 -0
  48. package/dist/assets/footer-actions.css +1 -0
  49. package/dist/assets/form-layout-title.css +1 -0
  50. package/dist/assets/grid-layout.css +1 -0
  51. package/dist/assets/header-with-views.css +1 -0
  52. package/dist/assets/header.css +1 -0
  53. package/dist/assets/info-icon-with-popover.css +1 -0
  54. package/dist/assets/info-icon.css +1 -0
  55. package/dist/assets/input-field-password.css +1 -0
  56. package/dist/assets/input-field-phone-number.css +1 -0
  57. package/dist/assets/input-field.css +1 -0
  58. package/dist/assets/inspector.css +1 -0
  59. package/dist/assets/layout-row.css +1 -0
  60. package/dist/assets/link.css +1 -0
  61. package/dist/assets/listbox-option-tag.css +1 -0
  62. package/dist/assets/loading-indicator.css +1 -0
  63. package/dist/assets/main.css +1 -0
  64. package/dist/assets/menu.css +1 -0
  65. package/dist/assets/modal-fullscreen.css +1 -0
  66. package/dist/assets/pagination.css +1 -0
  67. package/dist/assets/payment-method.css +1 -0
  68. package/dist/assets/popover.css +1 -0
  69. package/dist/assets/popper-container.css +1 -0
  70. package/dist/assets/promo-banner.css +1 -0
  71. package/dist/assets/radio-group.css +1 -0
  72. package/dist/assets/radio-input.css +1 -0
  73. package/dist/assets/rich-text-editor.css +1 -0
  74. package/dist/assets/search-bar.css +1 -0
  75. package/dist/assets/secondary-nav.css +1 -0
  76. package/dist/assets/segmented-control.css +1 -0
  77. package/dist/assets/selection-card-group.css +1 -0
  78. package/dist/assets/sidepanel.css +1 -0
  79. package/dist/assets/status.css +1 -0
  80. package/dist/assets/step.css +1 -0
  81. package/dist/assets/structured-list-item.css +1 -0
  82. package/dist/assets/summary-grid.css +1 -0
  83. package/dist/assets/tabs.css +1 -0
  84. package/dist/assets/tag.css +1 -0
  85. package/dist/assets/teleport.css +1 -0
  86. package/dist/assets/textarea.css +1 -0
  87. package/dist/assets/timeline-item.css +1 -0
  88. package/dist/assets/toast.css +1 -0
  89. package/dist/assets/toggle-button.css +1 -0
  90. package/dist/assets/toggle.css +1 -0
  91. package/dist/assets/tooltip.css +1 -0
  92. package/dist/assets/tutorial.css +1 -0
  93. package/dist/assets/typography.css +1 -0
  94. package/dist/assets/use-cached-selected-values.css +1 -0
  95. package/dist/avatar.js +5 -0
  96. package/dist/avatar.js.map +1 -0
  97. package/dist/button.js +16 -0
  98. package/dist/button.js.map +1 -0
  99. package/dist/card.js +7 -0
  100. package/dist/card.js.map +1 -0
  101. package/dist/checkbox.js +11 -0
  102. package/dist/checkbox.js.map +1 -0
  103. package/dist/chip.js +5 -0
  104. package/dist/chip.js.map +1 -0
  105. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  106. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  107. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  108. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  109. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  110. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  111. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  112. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  113. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  114. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  115. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  116. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  117. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  118. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  119. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  120. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  121. package/dist/chunks/_commonjsHelpers.C6fGbg64.js +7 -0
  122. package/dist/chunks/_commonjsHelpers.C6fGbg64.js.map +1 -0
  123. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js +11 -0
  124. package/dist/chunks/_plugin-vue2_normalizer.CeySl7Fu.js.map +1 -0
  125. package/dist/chunks/accordion-item.C4tyRMCt.js +116 -0
  126. package/dist/chunks/accordion-item.C4tyRMCt.js.map +1 -0
  127. package/dist/chunks/action-bar.CMqiD6vc.js +161 -0
  128. package/dist/chunks/action-bar.CMqiD6vc.js.map +1 -0
  129. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  130. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  131. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  132. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  133. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  134. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  135. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  136. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  137. package/dist/chunks/alert.Du9NfW-V.js +103 -0
  138. package/dist/chunks/alert.Du9NfW-V.js.map +1 -0
  139. package/dist/chunks/aria-label.CaUURpnB.js +13 -0
  140. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
  141. package/dist/chunks/avatar.BgwjpLQO.js +71 -0
  142. package/dist/chunks/avatar.BgwjpLQO.js.map +1 -0
  143. package/dist/chunks/base-button.-gx_u8Bd.js +86 -0
  144. package/dist/chunks/base-button.-gx_u8Bd.js.map +1 -0
  145. package/dist/chunks/base-modal.keys.C2PQXcE2.js +5 -0
  146. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +1 -0
  147. package/dist/chunks/base-modal.xA_DhHx9.js +373 -0
  148. package/dist/chunks/base-modal.xA_DhHx9.js.map +1 -0
  149. package/dist/chunks/bin.DuebwJYu.js +24 -0
  150. package/dist/chunks/bin.DuebwJYu.js.map +1 -0
  151. package/dist/chunks/button-actions-with-menu.S7i4V-8E.js +166 -0
  152. package/dist/chunks/button-actions-with-menu.S7i4V-8E.js.map +1 -0
  153. package/dist/chunks/button-actions.BFtzsfNe.js +194 -0
  154. package/dist/chunks/button-actions.BFtzsfNe.js.map +1 -0
  155. package/dist/chunks/button.BuD-IsW5.js +99 -0
  156. package/dist/chunks/button.BuD-IsW5.js.map +1 -0
  157. package/dist/chunks/calendar.DQiq_EoU.js +1167 -0
  158. package/dist/chunks/calendar.DQiq_EoU.js.map +1 -0
  159. package/dist/chunks/card.Bk7Lz1GS.js +123 -0
  160. package/dist/chunks/card.Bk7Lz1GS.js.map +1 -0
  161. package/dist/chunks/checkbox-group.CossCRls.js +152 -0
  162. package/dist/chunks/checkbox-group.CossCRls.js.map +1 -0
  163. package/dist/chunks/checkbox-input.Dr1GS2BZ.js +137 -0
  164. package/dist/chunks/checkbox-input.Dr1GS2BZ.js.map +1 -0
  165. package/dist/chunks/checkbox.DkDqMVeb.js +176 -0
  166. package/dist/chunks/checkbox.DkDqMVeb.js.map +1 -0
  167. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js +24 -0
  168. package/dist/chunks/checkmark-circle-fill.DZBl7CeY.js.map +1 -0
  169. package/dist/chunks/checkmark-small.C8T8ISN6.js +24 -0
  170. package/dist/chunks/checkmark-small.C8T8ISN6.js.map +1 -0
  171. package/dist/chunks/chevron-left.DOMTgGel.js +43 -0
  172. package/dist/chunks/chevron-left.DOMTgGel.js.map +1 -0
  173. package/dist/chunks/chevron-up.CSVyoaTy.js +43 -0
  174. package/dist/chunks/chevron-up.CSVyoaTy.js.map +1 -0
  175. package/dist/chunks/chip.bZEhHfIk.js +63 -0
  176. package/dist/chunks/chip.bZEhHfIk.js.map +1 -0
  177. package/dist/chunks/click-outside.C1Ud8AA2.js +23 -0
  178. package/dist/chunks/click-outside.C1Ud8AA2.js.map +1 -0
  179. package/dist/chunks/code-snippet.BlYhf-Dt.js +259 -0
  180. package/dist/chunks/code-snippet.BlYhf-Dt.js.map +1 -0
  181. package/dist/chunks/codemirror.Zv80n3Z2.js +14628 -0
  182. package/dist/chunks/codemirror.Zv80n3Z2.js.map +1 -0
  183. package/dist/chunks/controls-group.C4CHrb6Y.js +81 -0
  184. package/dist/chunks/controls-group.C4CHrb6Y.js.map +1 -0
  185. package/dist/chunks/copy.Bod4H2Dk.js +129 -0
  186. package/dist/chunks/copy.Bod4H2Dk.js.map +1 -0
  187. package/dist/chunks/country.Df7erZov.js +94 -0
  188. package/dist/chunks/country.Df7erZov.js.map +1 -0
  189. package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
  190. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
  191. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js +24 -0
  192. package/dist/chunks/cross-circle-fill-small.YhLgeipP.js.map +1 -0
  193. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js +24 -0
  194. package/dist/chunks/cross-circle-fill.Ra0-PIUo.js.map +1 -0
  195. package/dist/chunks/cross-small.CZqsjZDz.js +24 -0
  196. package/dist/chunks/cross-small.CZqsjZDz.js.map +1 -0
  197. package/dist/chunks/cross.CJ5EEL2c.js +24 -0
  198. package/dist/chunks/cross.CJ5EEL2c.js.map +1 -0
  199. package/dist/chunks/currency.B1F9YOIx.js +106 -0
  200. package/dist/chunks/currency.B1F9YOIx.js.map +1 -0
  201. package/dist/chunks/dashboard-section.Dx6eYon4.js +102 -0
  202. package/dist/chunks/dashboard-section.Dx6eYon4.js.map +1 -0
  203. package/dist/chunks/dashed-underline.CY5J4pZp.js +65 -0
  204. package/dist/chunks/dashed-underline.CY5J4pZp.js.map +1 -0
  205. package/dist/chunks/data-grid-template.CVl3PU0v.js +109 -0
  206. package/dist/chunks/data-grid-template.CVl3PU0v.js.map +1 -0
  207. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js +5 -0
  208. package/dist/chunks/data-grid-template.keys.2_AkxuNT.js.map +1 -0
  209. package/dist/chunks/data-grid.BZaXKTLk.js +2782 -0
  210. package/dist/chunks/data-grid.BZaXKTLk.js.map +1 -0
  211. package/dist/chunks/date-input.BqBdAO1E.js +17 -0
  212. package/dist/chunks/date-input.BqBdAO1E.js.map +1 -0
  213. package/dist/chunks/date-picker.lrT6LXe-.js +235 -0
  214. package/dist/chunks/date-picker.lrT6LXe-.js.map +1 -0
  215. package/dist/chunks/date-range-picker.Djt5mYvh.js +977 -0
  216. package/dist/chunks/date-range-picker.Djt5mYvh.js.map +1 -0
  217. package/dist/chunks/date.dYFFEunA.js +987 -0
  218. package/dist/chunks/date.dYFFEunA.js.map +1 -0
  219. package/dist/chunks/debounce.DUTu11PS.js +10 -0
  220. package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
  221. package/dist/chunks/dialog-page.C5r6tM57.js +131 -0
  222. package/dist/chunks/dialog-page.C5r6tM57.js.map +1 -0
  223. package/dist/chunks/directive.Cbdox5VL.js +23 -0
  224. package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
  225. package/dist/chunks/divider.Cc4JFWG_.js +35 -0
  226. package/dist/chunks/divider.Cc4JFWG_.js.map +1 -0
  227. package/dist/chunks/dot.CnkXzRn3.js +24 -0
  228. package/dist/chunks/dot.CnkXzRn3.js.map +1 -0
  229. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js +348 -0
  230. package/dist/chunks/dropdown-default-textbox.AUsF-RIc.js.map +1 -0
  231. package/dist/chunks/dropdown-tag.CY3nZ50z.js +215 -0
  232. package/dist/chunks/dropdown-tag.CY3nZ50z.js.map +1 -0
  233. package/dist/chunks/dropdown.Cx-3TGBk.js +818 -0
  234. package/dist/chunks/dropdown.Cx-3TGBk.js.map +1 -0
  235. package/dist/chunks/empty-state.IvvHHQ35.js +151 -0
  236. package/dist/chunks/empty-state.IvvHHQ35.js.map +1 -0
  237. package/dist/chunks/error-message.BAE9B9-N.js +121 -0
  238. package/dist/chunks/error-message.BAE9B9-N.js.map +1 -0
  239. package/dist/chunks/es6.n1ewaW31.js +11 -0
  240. package/dist/chunks/es6.n1ewaW31.js.map +1 -0
  241. package/dist/chunks/events.CMzGybJJ.js +47 -0
  242. package/dist/chunks/events.CMzGybJJ.js.map +1 -0
  243. package/dist/chunks/expand.C263WARj.js +24 -0
  244. package/dist/chunks/expand.C263WARj.js.map +1 -0
  245. package/dist/chunks/file-uploader.E18P6eyS.js +1913 -0
  246. package/dist/chunks/file-uploader.E18P6eyS.js.map +1 -0
  247. package/dist/chunks/filter-bar.D6IL1UDu.js +2288 -0
  248. package/dist/chunks/filter-bar.D6IL1UDu.js.map +1 -0
  249. package/dist/chunks/fixed-scroller.D0a6q8_i.js +106 -0
  250. package/dist/chunks/fixed-scroller.D0a6q8_i.js.map +1 -0
  251. package/dist/chunks/focus-trap.C-wIQqpO.js +499 -0
  252. package/dist/chunks/focus-trap.C-wIQqpO.js.map +1 -0
  253. package/dist/chunks/footer-actions.BgpSnSSn.js +96 -0
  254. package/dist/chunks/footer-actions.BgpSnSSn.js.map +1 -0
  255. package/dist/chunks/form-layout-title.DBCY18f8.js +190 -0
  256. package/dist/chunks/form-layout-title.DBCY18f8.js.map +1 -0
  257. package/dist/chunks/form-layout.types.D3EKzbE7.js +5 -0
  258. package/dist/chunks/form-layout.types.D3EKzbE7.js.map +1 -0
  259. package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
  260. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
  261. package/dist/chunks/get-date-locale.BN8xEjY0.js +1735 -0
  262. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  263. package/dist/chunks/get-slot-text.BQS5Olxm.js +12 -0
  264. package/dist/chunks/get-slot-text.BQS5Olxm.js.map +1 -0
  265. package/dist/chunks/grid-layout.HvTAa4to.js +76 -0
  266. package/dist/chunks/grid-layout.HvTAa4to.js.map +1 -0
  267. package/dist/chunks/header-with-views.DAdbhhG9.js +1549 -0
  268. package/dist/chunks/header-with-views.DAdbhhG9.js.map +1 -0
  269. package/dist/chunks/header.8SId1U5r.js +187 -0
  270. package/dist/chunks/header.8SId1U5r.js.map +1 -0
  271. package/dist/chunks/i18n.BQkEbtPM.js +31 -0
  272. package/dist/chunks/i18n.BQkEbtPM.js.map +1 -0
  273. package/dist/chunks/image.C2D2hKat.js +56 -0
  274. package/dist/chunks/image.C2D2hKat.js.map +1 -0
  275. package/dist/chunks/index.BDuTpjD8.js +40 -0
  276. package/dist/chunks/index.BDuTpjD8.js.map +1 -0
  277. package/dist/chunks/index.BdrLbvtJ.js +529 -0
  278. package/dist/chunks/index.BdrLbvtJ.js.map +1 -0
  279. package/dist/chunks/index.BxBB1rsx.js +15 -0
  280. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  281. package/dist/chunks/index.Cl4_42j5.js +8 -0
  282. package/dist/chunks/index.Cl4_42j5.js.map +1 -0
  283. package/dist/chunks/index.DD7TppDb.js +10 -0
  284. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  285. package/dist/chunks/info-icon-with-popover.XZqkxPsB.js +71 -0
  286. package/dist/chunks/info-icon-with-popover.XZqkxPsB.js.map +1 -0
  287. package/dist/chunks/info-icon.C1xOlhYj.js +41 -0
  288. package/dist/chunks/info-icon.C1xOlhYj.js.map +1 -0
  289. package/dist/chunks/info.4d_mJHvT.js +24 -0
  290. package/dist/chunks/info.4d_mJHvT.js.map +1 -0
  291. package/dist/chunks/input-field-password.lK0Im1eg.js +251 -0
  292. package/dist/chunks/input-field-password.lK0Im1eg.js.map +1 -0
  293. package/dist/chunks/input-field-phone-number.BnjBqUKg.js +3097 -0
  294. package/dist/chunks/input-field-phone-number.BnjBqUKg.js.map +1 -0
  295. package/dist/chunks/input-field.B8HxtNIv.js +152 -0
  296. package/dist/chunks/input-field.B8HxtNIv.js.map +1 -0
  297. package/dist/chunks/inspector.CegHqvEW.js +117 -0
  298. package/dist/chunks/inspector.CegHqvEW.js.map +1 -0
  299. package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
  300. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
  301. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  302. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  303. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  304. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  305. package/dist/chunks/keyboard-navigation.pB8weElW.js +66 -0
  306. package/dist/chunks/keyboard-navigation.pB8weElW.js.map +1 -0
  307. package/dist/chunks/layout-row.C_F2wX6d.js +87 -0
  308. package/dist/chunks/layout-row.C_F2wX6d.js.map +1 -0
  309. package/dist/chunks/link.D0P79Toh.js +95 -0
  310. package/dist/chunks/link.D0P79Toh.js.map +1 -0
  311. package/dist/chunks/listbox-option-tag.CczGPhWH.js +44 -0
  312. package/dist/chunks/listbox-option-tag.CczGPhWH.js.map +1 -0
  313. package/dist/chunks/loading-indicator.z8COalOc.js +48 -0
  314. package/dist/chunks/loading-indicator.z8COalOc.js.map +1 -0
  315. package/dist/chunks/menu.CT0SIn4v.js +601 -0
  316. package/dist/chunks/menu.CT0SIn4v.js.map +1 -0
  317. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +5 -0
  318. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +1 -0
  319. package/dist/chunks/modal-fullscreen.tofT1h0P.js +202 -0
  320. package/dist/chunks/modal-fullscreen.tofT1h0P.js.map +1 -0
  321. package/dist/chunks/modal.CiYtGu6u.js +445 -0
  322. package/dist/chunks/modal.CiYtGu6u.js.map +1 -0
  323. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  324. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  325. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  326. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  327. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  328. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  329. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  330. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  331. package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
  332. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
  333. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  334. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  335. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  336. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  337. package/dist/chunks/pagination.B-EP9Lkq.js +338 -0
  338. package/dist/chunks/pagination.B-EP9Lkq.js.map +1 -0
  339. package/dist/chunks/payment-method.Cx4nPDtE.js +76 -0
  340. package/dist/chunks/payment-method.Cx4nPDtE.js.map +1 -0
  341. package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
  342. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
  343. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  344. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  345. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  346. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  347. package/dist/chunks/popover.COaHa4ES.js +295 -0
  348. package/dist/chunks/popover.COaHa4ES.js.map +1 -0
  349. package/dist/chunks/popper-container.DIFqmRsp.js +1393 -0
  350. package/dist/chunks/popper-container.DIFqmRsp.js.map +1 -0
  351. package/dist/chunks/promo-banner.DJpA7Whg.js +70 -0
  352. package/dist/chunks/promo-banner.DJpA7Whg.js.map +1 -0
  353. package/dist/chunks/radio-group.CzsbH4_F.js +229 -0
  354. package/dist/chunks/radio-group.CzsbH4_F.js.map +1 -0
  355. package/dist/chunks/radio-input.uJAhxKRs.js +90 -0
  356. package/dist/chunks/radio-input.uJAhxKRs.js.map +1 -0
  357. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  358. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  359. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  360. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  361. package/dist/chunks/refresh.Bc9FzGjJ.js +24 -0
  362. package/dist/chunks/refresh.Bc9FzGjJ.js.map +1 -0
  363. package/dist/chunks/resize.Bqks3WUm.js +15 -0
  364. package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
  365. package/dist/chunks/rich-text-editor.C4NdjtLA.js +6203 -0
  366. package/dist/chunks/rich-text-editor.C4NdjtLA.js.map +1 -0
  367. package/dist/chunks/search-bar.B4u_IgiI.js +97 -0
  368. package/dist/chunks/search-bar.B4u_IgiI.js.map +1 -0
  369. package/dist/chunks/search.DLtglc02.js +24 -0
  370. package/dist/chunks/search.DLtglc02.js.map +1 -0
  371. package/dist/chunks/secondary-nav.EROJ_sJQ.js +112 -0
  372. package/dist/chunks/secondary-nav.EROJ_sJQ.js.map +1 -0
  373. package/dist/chunks/segmented-control.B-uxKqMN.js +112 -0
  374. package/dist/chunks/segmented-control.B-uxKqMN.js.map +1 -0
  375. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  376. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  377. package/dist/chunks/selection-card-group.CnvREAh5.js +299 -0
  378. package/dist/chunks/selection-card-group.CnvREAh5.js.map +1 -0
  379. package/dist/chunks/show.e4LEpZKG.js +43 -0
  380. package/dist/chunks/show.e4LEpZKG.js.map +1 -0
  381. package/dist/chunks/sidepanel.3EBWM8JV.js +210 -0
  382. package/dist/chunks/sidepanel.3EBWM8JV.js.map +1 -0
  383. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +5 -0
  384. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +1 -0
  385. package/dist/chunks/status.types.p_TCvoo0.js +36 -0
  386. package/dist/chunks/status.types.p_TCvoo0.js.map +1 -0
  387. package/dist/chunks/step.CuOpi-Ye.js +217 -0
  388. package/dist/chunks/step.CuOpi-Ye.js.map +1 -0
  389. package/dist/chunks/structured-list-item.rOTJM0uc.js +87 -0
  390. package/dist/chunks/structured-list-item.rOTJM0uc.js.map +1 -0
  391. package/dist/chunks/success.DhioLvPD.js +5 -0
  392. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  393. package/dist/chunks/success.nNwxJRBS.js +5 -0
  394. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  395. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
  396. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
  397. package/dist/chunks/summary-grid.types.Bg1Y7i-F.js +301 -0
  398. package/dist/chunks/summary-grid.types.Bg1Y7i-F.js.map +1 -0
  399. package/dist/chunks/tabs.DX_Gq12z.js +205 -0
  400. package/dist/chunks/tabs.DX_Gq12z.js.map +1 -0
  401. package/dist/chunks/tabs.keys.Bc2pSKRw.js +7 -0
  402. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +1 -0
  403. package/dist/chunks/tag.DDjyf2hd.js +44 -0
  404. package/dist/chunks/tag.DDjyf2hd.js.map +1 -0
  405. package/dist/chunks/teleport.BV6zrDjA.js +128 -0
  406. package/dist/chunks/teleport.BV6zrDjA.js.map +1 -0
  407. package/dist/chunks/textarea.0PapD8Nl.js +200 -0
  408. package/dist/chunks/textarea.0PapD8Nl.js.map +1 -0
  409. package/dist/chunks/timeline-item.IFw76Qeh.js +386 -0
  410. package/dist/chunks/timeline-item.IFw76Qeh.js.map +1 -0
  411. package/dist/chunks/toast.B2u2W_TQ.js +171 -0
  412. package/dist/chunks/toast.B2u2W_TQ.js.map +1 -0
  413. package/dist/chunks/toggle-button.ChDbeBZ8.js +83 -0
  414. package/dist/chunks/toggle-button.ChDbeBZ8.js.map +1 -0
  415. package/dist/chunks/toggle.Q52IIKfi.js +121 -0
  416. package/dist/chunks/toggle.Q52IIKfi.js.map +1 -0
  417. package/dist/chunks/tooltip.DyZIyMZN.js +189 -0
  418. package/dist/chunks/tooltip.DyZIyMZN.js.map +1 -0
  419. package/dist/chunks/truncate.BfIl_-71.js +8 -0
  420. package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
  421. package/dist/chunks/tutorial.suIRmXta.js +348 -0
  422. package/dist/chunks/tutorial.suIRmXta.js.map +1 -0
  423. package/dist/chunks/typography.J1v_SPG3.js +87 -0
  424. package/dist/chunks/typography.J1v_SPG3.js.map +1 -0
  425. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  426. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  427. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  428. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  429. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js +52 -0
  430. package/dist/chunks/use-bento-toast-controller.Cn_2Eogn.js.map +1 -0
  431. package/dist/chunks/use-cached-selected-values.9OnD_j5F.js +1177 -0
  432. package/dist/chunks/use-cached-selected-values.9OnD_j5F.js.map +1 -0
  433. package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
  434. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
  435. package/dist/chunks/use-country-items.HFnjuDsG.js +30 -0
  436. package/dist/chunks/use-country-items.HFnjuDsG.js.map +1 -0
  437. package/dist/chunks/use-country-phon-code.DVgE19zT.js +5610 -0
  438. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
  439. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js +13 -0
  440. package/dist/chunks/use-default-slot-validator.BDn0wkYP.js.map +1 -0
  441. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
  442. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
  443. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +12 -0
  444. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +1 -0
  445. package/dist/chunks/use-has-slot.C9lQZ6nz.js +6 -0
  446. package/dist/chunks/use-has-slot.C9lQZ6nz.js.map +1 -0
  447. package/dist/chunks/warning-filled.Cd0kVWwa.js +24 -0
  448. package/dist/chunks/warning-filled.Cd0kVWwa.js.map +1 -0
  449. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  450. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  451. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  452. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  453. package/dist/click-outside.js +5 -0
  454. package/dist/click-outside.js.map +1 -0
  455. package/dist/code-snippet.js +8 -0
  456. package/dist/code-snippet.js.map +1 -0
  457. package/dist/country.js +12 -0
  458. package/dist/country.js.map +1 -0
  459. package/dist/currency.js +6 -0
  460. package/dist/currency.js.map +1 -0
  461. package/dist/dashboard-template.js +6 -0
  462. package/dist/dashboard-template.js.map +1 -0
  463. package/dist/dashed-underline.js +5 -0
  464. package/dist/dashed-underline.js.map +1 -0
  465. package/dist/data-grid-template.js +5 -0
  466. package/dist/data-grid-template.js.map +1 -0
  467. package/dist/data-grid.js +11 -0
  468. package/dist/data-grid.js.map +1 -0
  469. package/dist/date-picker.js +8 -0
  470. package/dist/date-picker.js.map +1 -0
  471. package/dist/date-range-picker.js +8 -0
  472. package/dist/date-range-picker.js.map +1 -0
  473. package/dist/date.js +6 -0
  474. package/dist/date.js.map +1 -0
  475. package/dist/divider.js +5 -0
  476. package/dist/divider.js.map +1 -0
  477. package/dist/dropdown.js +16 -0
  478. package/dist/dropdown.js.map +1 -0
  479. package/dist/empty-state.js +8 -0
  480. package/dist/empty-state.js.map +1 -0
  481. package/dist/file-uploader.js +5 -0
  482. package/dist/file-uploader.js.map +1 -0
  483. package/dist/filter-bar.js +8 -0
  484. package/dist/filter-bar.js.map +1 -0
  485. package/dist/focus-trap.js +5 -0
  486. package/dist/focus-trap.js.map +1 -0
  487. package/dist/fonts/fonts.css +2 -0
  488. package/dist/form-layout.js +8 -0
  489. package/dist/form-layout.js.map +1 -0
  490. package/dist/header-with-views.js +5 -0
  491. package/dist/header-with-views.js.map +1 -0
  492. package/dist/header.js +5 -0
  493. package/dist/header.js.map +1 -0
  494. package/dist/image.js +7 -0
  495. package/dist/image.js.map +1 -0
  496. package/dist/index.js +372 -0
  497. package/dist/index.js.map +1 -0
  498. package/dist/info-icon.js +5 -0
  499. package/dist/info-icon.js.map +1 -0
  500. package/dist/input-field-password.js +10 -0
  501. package/dist/input-field-password.js.map +1 -0
  502. package/dist/input-field-phone-number.js +5 -0
  503. package/dist/input-field-phone-number.js.map +1 -0
  504. package/dist/input-field.js +10 -0
  505. package/dist/input-field.js.map +1 -0
  506. package/dist/inspector.js +7 -0
  507. package/dist/inspector.js.map +1 -0
  508. package/dist/internal.js +43 -0
  509. package/dist/internal.js.map +1 -0
  510. package/dist/layout.js +6 -0
  511. package/dist/layout.js.map +1 -0
  512. package/dist/link.js +6 -0
  513. package/dist/link.js.map +1 -0
  514. package/dist/loading-indicator.js +6 -0
  515. package/dist/loading-indicator.js.map +1 -0
  516. package/dist/menu.js +6 -0
  517. package/dist/menu.js.map +1 -0
  518. package/dist/modal-fullscreen.js +6 -0
  519. package/dist/modal-fullscreen.js.map +1 -0
  520. package/dist/modal.js +14 -0
  521. package/dist/modal.js.map +1 -0
  522. package/dist/pagination.js +5 -0
  523. package/dist/pagination.js.map +1 -0
  524. package/dist/payment-method.js +7 -0
  525. package/dist/payment-method.js.map +1 -0
  526. package/dist/popover.js +6 -0
  527. package/dist/popover.js.map +1 -0
  528. package/dist/popper-container.js +9 -0
  529. package/dist/popper-container.js.map +1 -0
  530. package/dist/promo-banner.js +7 -0
  531. package/dist/promo-banner.js.map +1 -0
  532. package/dist/radio-group.js +9 -0
  533. package/dist/radio-group.js.map +1 -0
  534. package/dist/rich-text-editor.js +5 -0
  535. package/dist/rich-text-editor.js.map +1 -0
  536. package/dist/search-bar.js +9 -0
  537. package/dist/search-bar.js.map +1 -0
  538. package/dist/secondary-nav.js +5 -0
  539. package/dist/secondary-nav.js.map +1 -0
  540. package/dist/segmented-control.js +7 -0
  541. package/dist/segmented-control.js.map +1 -0
  542. package/dist/selection-card.js +7 -0
  543. package/dist/selection-card.js.map +1 -0
  544. package/dist/sidepanel.js +7 -0
  545. package/dist/sidepanel.js.map +1 -0
  546. package/dist/status.js +6 -0
  547. package/dist/status.js.map +1 -0
  548. package/dist/stepper.js +8 -0
  549. package/dist/stepper.js.map +1 -0
  550. package/dist/structured-list.js +6 -0
  551. package/dist/structured-list.js.map +1 -0
  552. package/dist/styles/bento-dark.css +2055 -0
  553. package/dist/styles/bento-light.css +2054 -0
  554. package/dist/styles/bento.css +2054 -0
  555. package/dist/styles/legacy.css +2209 -0
  556. package/dist/styles/styleguide.css +2109 -0
  557. package/dist/styles/utility.css +987 -0
  558. package/dist/summary-grid.js +12 -0
  559. package/dist/summary-grid.js.map +1 -0
  560. package/dist/tabs.js +6 -0
  561. package/dist/tabs.js.map +1 -0
  562. package/dist/tag.js +6 -0
  563. package/dist/tag.js.map +1 -0
  564. package/dist/textarea.js +5 -0
  565. package/dist/textarea.js.map +1 -0
  566. package/dist/timeline.js +10 -0
  567. package/dist/timeline.js.map +1 -0
  568. package/dist/toast.js +5 -0
  569. package/dist/toast.js.map +1 -0
  570. package/dist/toggle.js +7 -0
  571. package/dist/toggle.js.map +1 -0
  572. package/dist/tutorial.js +5 -0
  573. package/dist/tutorial.js.map +1 -0
  574. package/dist/typography.js +8 -0
  575. package/dist/typography.js.map +1 -0
  576. package/dist/use-form-v4.js +8300 -0
  577. package/dist/use-form-v4.js.map +1 -0
  578. package/dist/web-types.json +15200 -0
  579. package/package.json +6 -6
@@ -0,0 +1,977 @@
1
+ import { reactive as ce, defineComponent as Pe, computed as y, ref as w, onMounted as Be, toRaw as fe, toRef as be, watch as me } from "vue";
2
+ import { B as tt } from "./divider.Cc4JFWG_.js";
3
+ import { B as at } from "./popover.COaHa4ES.js";
4
+ import { B as Ne, d as nt } from "./typography.J1v_SPG3.js";
5
+ import { D as rt } from "./dropdown-default-textbox.AUsF-RIc.js";
6
+ import { r as h, t as $, g as ve } from "./get-date-locale.BN8xEjY0.js";
7
+ import { g as te } from "./generate-uid.NJ8tVoha.js";
8
+ import { u as pe } from "./i18n.BQkEbtPM.js";
9
+ import { t as re, f as ne } from "./date.dYFFEunA.js";
10
+ import { e as qe, f as ae, i as P, g as K, h as Ie, j as st, k as Se, l as it, s as ke, m as ot, n as Ee, a as Y, u as lt } from "./calendar.DQiq_EoU.js";
11
+ import { f as he, v as ut, D as S } from "./date-input.BqBdAO1E.js";
12
+ import { u as dt } from "./use-form-layout-loading.D3lALhtC.js";
13
+ import "./index.Cl4_42j5.js";
14
+ import { B as ct } from "./input-field.B8HxtNIv.js";
15
+ import { B as Dt } from "./dropdown.Cx-3TGBk.js";
16
+ import { B as mt } from "./segmented-control.B-uxKqMN.js";
17
+ import { d as ue } from "./debounce.DUTu11PS.js";
18
+ import { u as ft } from "./use-has-slot.C9lQZ6nz.js";
19
+ import { e as B, a as Oe } from "./index.BDuTpjD8.js";
20
+ import { n as Le } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
21
+ import { B as vt } from "./directive.Cbdox5VL.js";
22
+ import { F as pt, E as gt } from "./error-message.BAE9B9-N.js";
23
+ import { B as yt, c as Tt } from "./button-actions.BFtzsfNe.js";
24
+ import "../assets/date-range-picker.css";
25
+ function Ye(t, e) {
26
+ h(2, arguments);
27
+ var n = re(e), o = n * 3;
28
+ return qe(t, o);
29
+ }
30
+ function we(t) {
31
+ h(1, arguments);
32
+ var e = $(t), n = Math.floor(e.getMonth() / 3) + 1;
33
+ return n;
34
+ }
35
+ function Me(t) {
36
+ return h(1, arguments), $(t).getFullYear();
37
+ }
38
+ function Rt(t, e) {
39
+ h(2, arguments);
40
+ var n = $(t), o = $(e);
41
+ return n.getTime() === o.getTime();
42
+ }
43
+ function _t(t, e) {
44
+ h(2, arguments);
45
+ var n = ae(t), o = ae(e);
46
+ return n.getTime() === o.getTime();
47
+ }
48
+ function Ce(t) {
49
+ h(1, arguments);
50
+ var e = $(t);
51
+ return e.setMilliseconds(0), e;
52
+ }
53
+ function Ae(t, e) {
54
+ h(2, arguments);
55
+ var n = Ce(t), o = Ce(e);
56
+ return n.getTime() === o.getTime();
57
+ }
58
+ function bt(t) {
59
+ return h(1, arguments), P(t, Date.now());
60
+ }
61
+ function It(t, e) {
62
+ h(2, arguments);
63
+ var n = $(t), o = re(e);
64
+ return n.setHours(o), n;
65
+ }
66
+ function St(t, e) {
67
+ h(2, arguments);
68
+ var n = $(t), o = re(e);
69
+ return n.setMinutes(o), n;
70
+ }
71
+ function kt(t, e) {
72
+ h(2, arguments);
73
+ var n = $(t), o = re(e);
74
+ return n.setSeconds(o), n;
75
+ }
76
+ function Et(t, e) {
77
+ h(2, arguments);
78
+ var n = re(e);
79
+ return Ye(t, -n);
80
+ }
81
+ function W(t) {
82
+ if (t == null)
83
+ return K(/* @__PURE__ */ new Date());
84
+ const [e, n, o] = t.split("-").map((l) => parseInt(l, 10));
85
+ return new Date(e, n - 1, o);
86
+ }
87
+ const ht = ({
88
+ firstDayOfWeek: t,
89
+ min: e,
90
+ max: n
91
+ }) => ({ getGranularCalendarLimits: (l) => {
92
+ let D = K(e), m = B(n);
93
+ if ((l == null ? void 0 : l.type) === "weekly") {
94
+ if (l.earliest)
95
+ D = K(l.earliest);
96
+ else {
97
+ const r = Ie(D, { weekStartsOn: t });
98
+ P(D, r) || (D = K(st(Se(D, { weekStartsOn: t }), 1)));
99
+ }
100
+ if (l.latest)
101
+ m = B(l.latest);
102
+ else {
103
+ const r = Se(m, { weekStartsOn: t });
104
+ P(m, r) || (m = B(it(Ie(m, { weekStartsOn: t }), 1)));
105
+ }
106
+ }
107
+ if ((l == null ? void 0 : l.type) === "monthly") {
108
+ if (l.earliest)
109
+ D = K(l.earliest);
110
+ else {
111
+ const r = ke(D);
112
+ P(D, r) || (D = ke(qe(D, 1)));
113
+ }
114
+ if (l.latest)
115
+ m = B(l.latest);
116
+ else {
117
+ const r = Oe(m);
118
+ P(m, r) || (m = Oe(ot(m, 1)));
119
+ }
120
+ }
121
+ if ((l == null ? void 0 : l.type) === "quarterly") {
122
+ if (l.earliest)
123
+ D = ae(l.earliest);
124
+ else {
125
+ const r = ae(D);
126
+ P(D, r) || (D = ae(Ye(D, 1)));
127
+ }
128
+ if (l.latest)
129
+ m = B(l.latest);
130
+ else {
131
+ const r = Ee(m);
132
+ P(m, r) || (m = Ee(Et(m, 1)));
133
+ }
134
+ }
135
+ return { min: D, max: m };
136
+ } }), Ot = () => {
137
+ const t = ce({
138
+ daily: null,
139
+ weekly: null,
140
+ monthly: null,
141
+ quarterly: null
142
+ });
143
+ return {
144
+ savedRanges: t,
145
+ saveRange: (o, l) => {
146
+ t[o] = l;
147
+ },
148
+ resetSavedRanges: () => {
149
+ t.daily = null, t.weekly = null, t.monthly = null, t.quarterly = null;
150
+ }
151
+ };
152
+ };
153
+ var v = /* @__PURE__ */ ((t) => (t.CUSTOM_RANGE = "custom-range", t.INPUT = "input", t.ERROR = "error", t.FORM_DATE = "form-date", t.START_DATE_SELECTED = "start-date-selected", t))(v || {});
154
+ const wt = /[\d]/, Mt = /^\d{2}$/, Ct = /^\d{2}:\d{2}$/, At = (t) => {
155
+ const { selectionStart: e } = t.target, n = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], o = wt.test(t.key) || n.includes(t.key), l = [1, 2, 4, 5].includes(e) && t.key === ":";
156
+ !o && !l && t.preventDefault();
157
+ }, xe = (t) => {
158
+ if (!t)
159
+ return t;
160
+ let e = t;
161
+ if (e.length === 1 && parseInt(t, 10) > 2)
162
+ return `0${e}:`;
163
+ const [n, o] = e.slice(-2);
164
+ return [2, 5].includes(e.length) && o === ":" && (e = `${e.slice(0, e.length - 2)}0${n}`), (Mt.test(e) || Ct.test(e)) && (e += ":"), e;
165
+ }, xt = {
166
+ "en-US": {
167
+ customRange: "Custom range",
168
+ daily: "Daily",
169
+ dateFrom: "Date from",
170
+ dateTo: "Date to",
171
+ lastMonth: "Last month",
172
+ lastSevenDays: "Last 7 days",
173
+ lastThreeMonths: "Last three months",
174
+ monthly: "Monthly",
175
+ quarterly: "Quarterly",
176
+ timeFrom: "Time from",
177
+ timeTo: "Time to",
178
+ weekly: "Weekly"
179
+ },
180
+ "ja-JP": {
181
+ customRange: "カスタム範囲を選択",
182
+ daily: "毎日",
183
+ lastMonth: "先月",
184
+ lastSevenDays: "過去7日間",
185
+ monthly: "毎月",
186
+ weekly: "毎週"
187
+ },
188
+ "pt-BR": {
189
+ customRange: "Selecione um intervalo personalizado",
190
+ daily: "Diário",
191
+ lastMonth: "Último mês",
192
+ lastSevenDays: "Últimos 7 dias",
193
+ monthly: "Mensal",
194
+ weekly: "Semanal"
195
+ }
196
+ }, Fe = 300, Ue = "customRange", Ft = Pe({
197
+ i18n: { messages: xt },
198
+ name: "date-range-picker-calendar",
199
+ components: {
200
+ BentoDropdown: Dt,
201
+ BentoInputField: ct,
202
+ BentoSegmentedControl: mt,
203
+ BentoTypography: Ne,
204
+ Calendar: Y
205
+ },
206
+ props: {
207
+ /**
208
+ * Allows user to enter time values in the form
209
+ */
210
+ allowTimeInput: { type: Boolean, default: !1 },
211
+ /**
212
+ * Ranges form persistance data
213
+ */
214
+ dateFormData: {
215
+ type: Object,
216
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
217
+ },
218
+ /**
219
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
220
+ */
221
+ firstDayOfWeek: Y.props.firstDayOfWeek,
222
+ /**
223
+ * A list of available granularities.
224
+ * If present, the date picker will display a segmented control to change granularity.
225
+ */
226
+ granularities: {
227
+ type: Array,
228
+ default: null
229
+ },
230
+ /**
231
+ * Indicate if a date should be disabled or not
232
+ */
233
+ isDateDisabled: Y.props.isDateDisabled,
234
+ /**
235
+ * Set a maximum number of dates to be selectable by the range.
236
+ */
237
+ maxRange: Y.props.maxRange,
238
+ /**
239
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
240
+ */
241
+ min: Y.props.min,
242
+ /**
243
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
244
+ */
245
+ max: Y.props.max,
246
+ /**
247
+ * Number of months rendered on pane
248
+ */
249
+ numberOfMonths: Y.props.numberOfMonths,
250
+ /**
251
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
252
+ */
253
+ showEndDateOnOpen: { type: Boolean, default: !1 },
254
+ /**
255
+ * Enables the custom range selector.
256
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
257
+ * `label` - label of custom range item.
258
+ * `value` - a unique key of the custom range item.
259
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
260
+ */
261
+ quickSelectRanges: {
262
+ type: Array,
263
+ default: void 0
264
+ },
265
+ /**
266
+ * Selected date
267
+ */
268
+ value: { type: Object, default: void 0 },
269
+ /**
270
+ * The type of calendar to display. Defaults to showing days.
271
+ */
272
+ variant: Y.props.variant
273
+ },
274
+ emits: [
275
+ v.CUSTOM_RANGE,
276
+ v.INPUT,
277
+ v.ERROR,
278
+ v.FORM_DATE,
279
+ v.START_DATE_SELECTED
280
+ ],
281
+ setup(t, { emit: e, slots: n }) {
282
+ var ye, Te, Re, _e;
283
+ const { locale: o, t: l } = pe(), D = ve(), m = y(() => t.variant === "month" ? "monthly" : "daily"), r = ce({
284
+ startDate: (ye = t.value) == null ? void 0 : ye.startDate,
285
+ endDate: (Te = t.value) == null ? void 0 : Te.endDate,
286
+ range: (Re = t.value) == null ? void 0 : Re.range,
287
+ ...t.granularities ? {
288
+ granularity: ((_e = t.value) == null ? void 0 : _e.granularity) || m.value
289
+ } : {}
290
+ });
291
+ function R(a) {
292
+ return a ? new Date(
293
+ a.getUTCFullYear(),
294
+ a.getUTCMonth(),
295
+ a.getUTCDate(),
296
+ a.getUTCHours(),
297
+ a.getUTCMinutes(),
298
+ a.getUTCSeconds()
299
+ ) : null;
300
+ }
301
+ const _ = y(() => {
302
+ var a, i;
303
+ return (
304
+ // eslint-disable-next-line consistent-return
305
+ ((i = (a = t == null ? void 0 : t.quickSelectRanges) == null ? void 0 : a.find(({ value: u, data: c }) => {
306
+ if (!c.endDate)
307
+ return u === r.range || Rt(
308
+ R(c.startDate),
309
+ R(r.startDate)
310
+ ) && bt(r.endDate);
311
+ if (t.allowTimeInput)
312
+ return Ae(
313
+ R(c.startDate),
314
+ R(r.startDate)
315
+ ) && Ae(R(c.endDate), R(r.endDate));
316
+ if (c.endDate)
317
+ return P(c.startDate, r.startDate) && P(c.endDate, r.endDate);
318
+ })) == null ? void 0 : i.value) ?? Ue
319
+ );
320
+ }), se = y(() => ({
321
+ "b-date-range-picker-calendar__form-input-wrapper": t.allowTimeInput
322
+ })), ee = y(() => [
323
+ { label: l("customRange"), value: Ue },
324
+ ...t.quickSelectRanges ? t.quickSelectRanges : []
325
+ ]), p = y(
326
+ () => {
327
+ var a;
328
+ return ((a = t.granularities) == null ? void 0 : a.find(({ type: i }) => i === r.granularity)) || null;
329
+ }
330
+ ), z = y(
331
+ () => {
332
+ var a;
333
+ return ((a = t.granularities) == null ? void 0 : a.map(({ type: i, disabled: u }) => ({
334
+ label: l(i),
335
+ value: i,
336
+ disabled: u
337
+ }))) ?? [];
338
+ }
339
+ ), { getGranularCalendarLimits: b } = ht(t), g = y(
340
+ () => t.granularities ? b(p.value) : { min: K(t.min), max: B(t.max) }
341
+ ), {
342
+ adjustDateForQuarterly: k,
343
+ adjustDateForMonthly: j,
344
+ adjustDateForWeekly: J,
345
+ adjustStartDateInputForWeekly: M,
346
+ adjustEndDateInputForWeekly: f,
347
+ adjustStartDateInputForMonthly: C,
348
+ adjustEndDateInputForMonthly: A,
349
+ adjustStartDateInputForQuarterly: Q,
350
+ adjustEndDateInputForQuarterly: De
351
+ } = lt(t.firstDayOfWeek), { savedRanges: x, saveRange: ie, resetSavedRanges: F } = Ot(), T = (a) => a ? ne(a, S.NUMERIC_DATE_YEAR_FIRST, {
352
+ locale: D[o.value.substring(0, 2)] || D.enUS
353
+ }) : "", N = (a) => a ? ne(a, S.HOUR_MINUTE_SECONDS, {
354
+ locale: D[o.value.substring(0, 2)] || D.enUS
355
+ }) : "", q = w(!1), L = w(!1), G = w(!1), H = w(!1), s = ce({
356
+ startDate: t.dateFormData.startDate,
357
+ endDate: t.dateFormData.endDate,
358
+ startTime: t.dateFormData.startTime,
359
+ endTime: t.dateFormData.endTime
360
+ }), oe = (a) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(a), E = (a, i) => {
361
+ if (!i || !oe(i) || t.variant === "month")
362
+ return a;
363
+ let u = new Date(a);
364
+ const [c, I, V] = i.split(":");
365
+ return u = It(u, parseInt(c, 10)), u = St(u, parseInt(I, 10)), u = kt(u, parseInt(V, 10)), u;
366
+ }, ge = (a) => {
367
+ s.startTime = N(K(a.startDate)), s.endTime = N(B(a.endDate)), r.startDate = E(a.startDate, s.startTime), r.endDate = E(a.endDate, s.endTime), r.range = null, t.granularities && F(), e(v.INPUT, {
368
+ ...r,
369
+ range: _.value
370
+ });
371
+ }, d = (a) => {
372
+ const i = (c) => t.min && c <= t.min || t.max && c >= t.max ? !1 : t.isDateDisabled ? !t.isDateDisabled(c) : !0;
373
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(a) && i(new Date(a));
374
+ };
375
+ Be(() => {
376
+ t.dateFormData.startDate && !d(t.dateFormData.startDate) ? q.value = !0 : (q.value = !1, G.value = !1), t.dateFormData.endDate && !d(t.dateFormData.endDate) ? L.value = !0 : (L.value = !1, H.value = !1);
377
+ });
378
+ const O = (a) => {
379
+ var i;
380
+ s.startDate = T(a), s.startTime ? G.value && (s.startTime = (i = t.dateFormData) == null ? void 0 : i.startTime) : s.startTime = N(a), q.value = !1, G.value = !1, e(v.START_DATE_SELECTED, a);
381
+ }, X = (a) => {
382
+ var i;
383
+ s.endDate = T(a), s.endTime ? H.value && (s.endTime = (i = t.dateFormData) == null ? void 0 : i.endTime) : s.endTime = N(B(a)), L.value = !1, H.value = !1;
384
+ }, Z = (a) => {
385
+ const i = t.value[a];
386
+ if (i)
387
+ return i;
388
+ if (t.dateFormData[a] && d(t.dateFormData[a]))
389
+ return new Date(t.dateFormData[a]);
390
+ }, $e = ue((a) => {
391
+ var i;
392
+ if (d(a)) {
393
+ let u = a;
394
+ switch (q.value = !1, (i = p.value) == null ? void 0 : i.type) {
395
+ case "weekly":
396
+ u = M(
397
+ a,
398
+ T,
399
+ g.value.min,
400
+ g.value.max
401
+ ), s.startDate = u;
402
+ break;
403
+ case "monthly":
404
+ u = C(
405
+ a,
406
+ T,
407
+ g.value.min,
408
+ g.value.max
409
+ ), s.startDate = u;
410
+ break;
411
+ case "quarterly":
412
+ u = Q(
413
+ a,
414
+ T,
415
+ g.value.min,
416
+ g.value.max
417
+ ), s.startDate = u;
418
+ break;
419
+ }
420
+ const c = W(u);
421
+ r.startDate = E(c, s.startTime), r.endDate = E(
422
+ W(s.endDate),
423
+ s.endTime
424
+ ), d(s.endDate) && (r.endDate = E(
425
+ W(s.endDate),
426
+ s.endTime
427
+ ));
428
+ const I = Z("endDate");
429
+ r.range = null, e(v.FORM_DATE, {
430
+ startDate: c,
431
+ endDate: I
432
+ }), e(v.INPUT, {
433
+ ...r,
434
+ range: _.value
435
+ });
436
+ } else
437
+ q.value = !0, e(v.ERROR, { ...s });
438
+ }, Fe), je = (a) => {
439
+ s.startDate = he(a), $e(s.startDate);
440
+ }, Qe = ue((a) => {
441
+ var i;
442
+ if (d(a)) {
443
+ let u = a;
444
+ switch (L.value = !1, (i = p.value) == null ? void 0 : i.type) {
445
+ case "weekly":
446
+ u = f(
447
+ a,
448
+ T,
449
+ g.value.min,
450
+ g.value.max
451
+ ), s.endDate = u;
452
+ break;
453
+ case "monthly":
454
+ u = A(
455
+ a,
456
+ T,
457
+ g.value.min,
458
+ g.value.max
459
+ ), s.endDate = u;
460
+ break;
461
+ case "quarterly":
462
+ u = De(
463
+ a,
464
+ T,
465
+ g.value.min,
466
+ g.value.max
467
+ ), s.endDate = u;
468
+ break;
469
+ }
470
+ const c = W(u);
471
+ r.endDate = E(c, s.endTime), d(s.startDate) && (r.startDate = E(
472
+ W(s.startDate),
473
+ s.startTime
474
+ ));
475
+ const I = Z("startDate");
476
+ r.range = null, e(v.FORM_DATE, {
477
+ startDate: I,
478
+ endDate: c
479
+ }), e(v.INPUT, {
480
+ ...r,
481
+ range: _.value
482
+ });
483
+ } else
484
+ L.value = !0, e(v.ERROR, { ...s });
485
+ }, Fe), Ge = (a) => {
486
+ s.endDate = he(a), Qe(s.endDate);
487
+ }, He = (a) => {
488
+ ut(a);
489
+ }, Ve = ue((a) => {
490
+ if (oe(a)) {
491
+ G.value = !1, r.startDate = E(r.startDate, a);
492
+ const i = Z("endDate");
493
+ e(v.FORM_DATE, {
494
+ startDate: new Date(r.startDate),
495
+ endDate: i,
496
+ startTime: a,
497
+ endTime: t.dateFormData.endTime
498
+ }), e(v.INPUT, {
499
+ ...r,
500
+ range: _.value
501
+ });
502
+ } else
503
+ G.value = !0, e(v.ERROR, { ...s });
504
+ }), We = ue((a) => {
505
+ if (oe(a)) {
506
+ H.value = !1, r.endDate = E(r.endDate, a);
507
+ const i = Z("startDate");
508
+ r.startDate = E(new Date(i), t.dateFormData.startTime), e(v.FORM_DATE, {
509
+ startDate: E(new Date(i), t.dateFormData.startTime),
510
+ endDate: new Date(r.endDate),
511
+ startTime: t.dateFormData.startTime,
512
+ endTime: a
513
+ }), e(v.INPUT, {
514
+ ...r,
515
+ range: _.value
516
+ });
517
+ } else
518
+ H.value = !0, e(v.ERROR, { ...s });
519
+ }), Ke = (a) => {
520
+ s.startTime = xe(a), Ve(s.startTime);
521
+ }, ze = (a) => {
522
+ s.endTime = xe(a), We(s.endTime);
523
+ }, Je = (a) => {
524
+ At(a);
525
+ }, le = (a, i, u, c) => {
526
+ r.startDate = a, r.endDate = i, u && (r.granularity = u), c && (r.range = c);
527
+ }, Xe = (a) => {
528
+ var u;
529
+ const i = (u = t.quickSelectRanges) == null ? void 0 : u.find(({ value: c }) => c === a);
530
+ if (i) {
531
+ F();
532
+ const c = i.data, I = c.endDate || (c.isRelativeToNow ? new Date(Date.now()) : B(new Date(Date.now()))), V = c.isRelativeToNow && c.timeDifference ? new Date(I.getTime() - c.timeDifference) : c.startDate;
533
+ s.endDate = T(I), s.startDate = T(V), le(V, I, null, a), t.granularities && (r.granularity = c.granularity || m.value), s.startTime = N(V), s.endTime = N(I), r.startDate = V, r.endDate = I, e(v.CUSTOM_RANGE, {
534
+ ...i.data,
535
+ startDate: V,
536
+ endDate: I,
537
+ range: i.value
538
+ });
539
+ }
540
+ }, Ze = {
541
+ weekly: J,
542
+ monthly: j,
543
+ quarterly: k
544
+ }, et = (a) => {
545
+ const i = r.granularity;
546
+ if (r.granularity = a, i && ie(i, structuredClone(fe(r))), r.startDate && r.endDate) {
547
+ switch (a) {
548
+ case "quarterly":
549
+ case "monthly":
550
+ case "weekly": {
551
+ if (x[a]) {
552
+ le(x[a].startDate, x[a].endDate, a);
553
+ break;
554
+ }
555
+ const { startDate: u, endDate: c } = Ze[a](
556
+ r.startDate,
557
+ r.endDate,
558
+ g.value.min,
559
+ g.value.max
560
+ );
561
+ le(u, c, a);
562
+ break;
563
+ }
564
+ case "daily":
565
+ x.daily && le(x.daily.startDate, x.daily.endDate, a);
566
+ break;
567
+ }
568
+ s.startDate = T(r.startDate), s.endDate = T(r.endDate), e(v.INPUT, {
569
+ ...r,
570
+ range: _.value
571
+ });
572
+ }
573
+ };
574
+ return {
575
+ // Values
576
+ internalRangeDate: r,
577
+ dateTextInput: s,
578
+ endDateError: L,
579
+ endTimeError: H,
580
+ granularityItems: z,
581
+ selectedGranularity: p,
582
+ computedMinMax: g,
583
+ selectedRangeSelectorValue: _,
584
+ startDateError: q,
585
+ startTimeError: G,
586
+ quickSelectRangeDefaultItems: ee,
587
+ formInputWrapperConditionalClasses: se,
588
+ // Methods
589
+ hasSlot: ft(n),
590
+ t: l,
591
+ // Events
592
+ onDateInput: ge,
593
+ onDateInputKeyDown: He,
594
+ onEndDateInput: Ge,
595
+ onEndDateSelected: X,
596
+ onEndTimeInput: ze,
597
+ onGranularityInput: et,
598
+ onRangeSelectorInput: Xe,
599
+ onStartDateInput: je,
600
+ onStartDateSelected: O,
601
+ onStartTimeInput: Ke,
602
+ onTimeInputKeyDown: Je
603
+ };
604
+ }
605
+ });
606
+ var Ut = function() {
607
+ var e = this, n = e._self._c;
608
+ return e._self._setupProxy, n("div", { staticClass: "b-date-range-picker-calendar" }, [n("div", { staticClass: "b-date-range-picker-calendar__form-container" }, [n("div", { staticClass: "b-date-range-picker-calendar__form" }, [e.hasSlot("title") ? [e._t("title")] : e._e(), e.quickSelectRanges ? n("bento-dropdown", { attrs: { "aria-label": e.t("customRange"), items: e.quickSelectRangeDefaultItems, value: e.selectedRangeSelectorValue }, on: { input: e.onRangeSelectorInput } }) : e._e(), e.granularities ? n("bento-segmented-control", { attrs: { items: e.granularityItems, "model-value": e.internalRangeDate.granularity, "full-width": "" }, on: { "update:model-value": e.onGranularityInput } }) : e._e(), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" From ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateFrom"), value: e.dateTextInput.startDate, error: e.startDateError }, on: { input: e.onStartDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
609
+ return [e._v("YYYY-MM-DD")];
610
+ }, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeFrom"), value: e.dateTextInput.startTime, error: e.startTimeError }, on: { input: e.onStartTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
611
+ return [e._v("HH:MM:SS")];
612
+ }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1), n("div", [n("bento-typography", { staticClass: "b-date-range-picker-calendar__label", attrs: { stronger: "", el: "span" } }, [e._v(" To ")]), n("div", { class: e.formInputWrapperConditionalClasses }, [n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("dateTo"), value: e.dateTextInput.endDate, error: e.endDateError }, on: { input: e.onEndDateInput, keydown: e.onDateInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
613
+ return [e._v("YYYY-MM-DD")];
614
+ }, proxy: !0 }]) }), e.allowTimeInput ? n("bento-input-field", { staticClass: "b-date-range-picker-calendar__form-input", attrs: { "aria-label": e.t("timeTo"), value: e.dateTextInput.endTime, error: e.endTimeError }, on: { input: e.onEndTimeInput, keydown: e.onTimeInputKeyDown }, scopedSlots: e._u([{ key: "description", fn: function() {
615
+ return [e._v("HH:MM:SS")];
616
+ }, proxy: !0 }], null, !1, 3442289499) }) : e._e()], 1)], 1)], 2), e.hasSlot("actions") ? n("div", [e._t("actions")], 2) : e._e()]), n("div", { staticClass: "b-date-range-picker-calendar__calendars-container" }, [n("calendar", { attrs: { value: e.internalRangeDate, "first-day-of-week": e.firstDayOfWeek, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.computedMinMax.min, max: e.computedMinMax.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, granularity: e.selectedGranularity, variant: e.variant, "is-range": "" }, on: { input: e.onDateInput, "start-date-selected": e.onStartDateSelected, "end-date-selected": e.onEndDateSelected } })], 1)]);
617
+ }, Pt = [], Bt = /* @__PURE__ */ Le(
618
+ Ft,
619
+ Ut,
620
+ Pt,
621
+ !1,
622
+ null,
623
+ "3a7fe6bf"
624
+ );
625
+ const U = Bt.exports, Nt = ({
626
+ datePickerValue: t,
627
+ isDateIncorrect: e,
628
+ quickSelectRanges: n,
629
+ isMonthVariant: o
630
+ }) => {
631
+ var p, z, b, g;
632
+ const { locale: l, t: D } = pe(), m = ve(), r = (k) => !!k && !isNaN(k.getTime()), R = (k, j) => r(k) ? ne(k, j, {
633
+ locale: m[l.value.substring(0, 2)] || m.enUS
634
+ }) : void 0, _ = ce({
635
+ startDate: R((p = t.value) == null ? void 0 : p.startDate, S.NUMERIC_DATE_YEAR_FIRST),
636
+ endDate: R((z = t.value) == null ? void 0 : z.endDate, S.NUMERIC_DATE_YEAR_FIRST),
637
+ startTime: R((b = t.value) == null ? void 0 : b.startDate, S.HOUR_MINUTE_SECONDS),
638
+ endTime: R((g = t.value) == null ? void 0 : g.endDate, S.HOUR_MINUTE_SECONDS)
639
+ });
640
+ return {
641
+ // Values
642
+ dateDisplayValue: y(() => {
643
+ var M;
644
+ if (e.value)
645
+ return `${_.startDate || ""} - ${_.endDate || ""}`;
646
+ if (!t.value || !t.value.startDate && !t.value.endDate)
647
+ return D("selectDateRange");
648
+ if ((M = n.value) != null && M.length) {
649
+ const f = n.value.find(({ value: C }) => {
650
+ var A;
651
+ return C === ((A = t.value) == null ? void 0 : A.range);
652
+ });
653
+ if (f)
654
+ return f.label;
655
+ }
656
+ if (t.value.granularity === "quarterly") {
657
+ const { startDate: f, endDate: C } = t.value, A = D("quarter", { quarter: we(f), year: Me(f) });
658
+ if (_t(f, C))
659
+ return A;
660
+ const Q = D("quarter", { quarter: we(C), year: Me(C) });
661
+ return `${A} - ${Q}`;
662
+ }
663
+ const { startDate: k, endDate: j } = _, J = o != null && o.value ? S.LONG_MONTH_YEAR : S.FULL_DATE_MONTH_FIRST;
664
+ return `${R(W(k), J)} - ${R(
665
+ W(j),
666
+ J
667
+ )}`;
668
+ }),
669
+ textInputDisplayValue: _,
670
+ // Methods
671
+ formatTextInputDisplayValue: () => ""
672
+ };
673
+ };
674
+ var de = /* @__PURE__ */ ((t) => (t.INPUT = "input", t))(de || {});
675
+ const qt = {
676
+ "en-US": {
677
+ apply: "Apply",
678
+ cancel: "Cancel",
679
+ dateRangePicker: "Date range picker {name}",
680
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
681
+ quarter: "Q{quarter} {year}",
682
+ selectDate: "Select a date",
683
+ selectDateRange: "Select a date range",
684
+ selectedDateIsNotAvailable: "Selected date is not available"
685
+ },
686
+ "ja-JP": {
687
+ apply: "適用",
688
+ cancel: "キャンセル",
689
+ selectDate: "日付を選択"
690
+ },
691
+ "pt-BR": {
692
+ apply: "Aplicar",
693
+ cancel: "Cancelar",
694
+ selectDate: "Selecione uma data"
695
+ }
696
+ }, Lt = Pe({
697
+ i18n: { messages: qt },
698
+ name: "bento-date-range-picker",
699
+ components: {
700
+ BentoButtonActions: yt,
701
+ BentoDivider: tt,
702
+ BentoTypography: Ne,
703
+ BentoPopover: at,
704
+ DateRangePickerCalendar: U,
705
+ DropdownInputDefault: rt,
706
+ ErrorMessage: gt,
707
+ FieldLabel: pt
708
+ },
709
+ directives: { BentoClickOutsideDirective: vt },
710
+ props: {
711
+ /**
712
+ * Allows user to enter time values in the form
713
+ */
714
+ allowTimeInput: { type: Boolean, default: !1 },
715
+ /**
716
+ * Descriptive supporting text visbile underneath the dropdown.
717
+ */
718
+ description: { type: String, default: void 0 },
719
+ /**
720
+ * Disables dropdown functionality.
721
+ */
722
+ disabled: { type: Boolean, default: !1 },
723
+ /**
724
+ * Displays component in an error state with an error message
725
+ */
726
+ errorMessage: { type: String, default: null },
727
+ /**
728
+ * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
729
+ */
730
+ firstDayOfWeek: U.props.firstDayOfWeek,
731
+ /**
732
+ * A list of available granularities.
733
+ * If present, the date picker will display a segmented control to change granularity.
734
+ */
735
+ granularities: U.props.granularities,
736
+ /**
737
+ * Indicate if a date should be disabled or not
738
+ */
739
+ isDateDisabled: U.props.isDateDisabled,
740
+ /**
741
+ * Text that is displayed as a label above the element.
742
+ */
743
+ label: { type: String, default: void 0 },
744
+ /**
745
+ * Upon opening date range picker, end date's month will be pre-selected.
746
+ */
747
+ showEndDateOnOpen: { type: Boolean, default: !1 },
748
+ /**
749
+ * Highlights the dropdown is optional.
750
+ */
751
+ optional: { type: Boolean, default: !1 },
752
+ /**
753
+ * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
754
+ */
755
+ readonly: { type: Boolean, default: !1 },
756
+ /**
757
+ * Highlights the dropdown is required.
758
+ */
759
+ required: { type: Boolean, default: !1 },
760
+ /**
761
+ * Adds a info icon next to the label to display the passed tooltip message.
762
+ */
763
+ tooltipText: { type: String, default: null },
764
+ /**
765
+ * Enables the range selector.
766
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
767
+ * `label` - label of custom range item.
768
+ * `value` - a unique key of the custom range item.
769
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
770
+ */
771
+ quickSelectRanges: {
772
+ type: Array,
773
+ default: void 0
774
+ },
775
+ /**
776
+ * Set a maximum number of dates to be selectable by the range.
777
+ */
778
+ maxRange: U.props.maxRange,
779
+ /**
780
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
781
+ */
782
+ min: U.props.min,
783
+ /**
784
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
785
+ */
786
+ max: U.props.max,
787
+ /**
788
+ * Number of months rendered on pane
789
+ */
790
+ numberOfMonths: U.props.numberOfMonths,
791
+ /**
792
+ * Selected date
793
+ */
794
+ value: U.props.value,
795
+ /**
796
+ * The type of calendar to display. Defaults to showing days.
797
+ */
798
+ variant: {
799
+ type: String,
800
+ default: void 0
801
+ // Default will be set by @/internal/calendar
802
+ },
803
+ /**
804
+ * Enables the date picker selection to persist until it is explicitly applied.
805
+ * Displays a set of buttons: Apply and Cancel.
806
+ *
807
+ * @deprecated This will be the default behaviour in v2.0.0.
808
+ */
809
+ hasActions: { type: Boolean, default: !1 }
810
+ },
811
+ emits: [de.INPUT],
812
+ setup(t, { emit: e }) {
813
+ const { locale: n, t: o } = pe(), l = ve(), D = te("bento-date-range-picker-container"), m = te("bento-date-range-picker-label"), r = te("bento-date-range-picker-description"), R = te("bento-date-range-picker-error"), _ = te("bento-date-range-picker-date-error"), se = y(
814
+ () => t.label || o("dateRangePicker", { name: D })
815
+ ), ee = y(() => (t == null ? void 0 : t.quickSelectRanges) && t.quickSelectRanges.map((d) => {
816
+ const O = d.data.endDate ? void 0 : new Date(Date.now()).getTime() - d.data.startDate.getTime();
817
+ return {
818
+ ...d,
819
+ data: {
820
+ ...d.data,
821
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
822
+ timeDifference: O
823
+ }
824
+ };
825
+ })), p = w(!1), z = w(null), b = w(!1), { isReadOnly: g } = dt(be(t, "readonly"));
826
+ me(
827
+ () => t.disabled,
828
+ () => {
829
+ t.disabled && b.value && (b.value = !1);
830
+ }
831
+ );
832
+ const k = y(() => t.hasActions ? !T.value && p.value : p.value), j = y(() => ({
833
+ "b-date-range-picker__description--error": !!t.errorMessage || k.value
834
+ })), J = y(() => t.variant === "month"), { dateDisplayValue: M, textInputDisplayValue: f } = Nt({
835
+ datePickerValue: be(t, "value"),
836
+ isDateIncorrect: p,
837
+ quickSelectRanges: ee,
838
+ isMonthVariant: J
839
+ }), C = y(
840
+ () => `${t.description ? r : ""} ${t.errorMessage ? R : ""} ${p.value ? _ : ""}`.trim() || null
841
+ ), A = y(() => t.allowTimeInput && t.variant !== "month"), Q = () => {
842
+ b.value = !1;
843
+ }, De = () => {
844
+ b.value = !0;
845
+ }, x = w(M.value), ie = w(
846
+ // textInputDisplayValue is a reactive object
847
+ structuredClone(fe(f))
848
+ ), F = w(t.value), T = w(!0), N = y(
849
+ () => t.hasActions ? ie.value : f
850
+ ), q = y(
851
+ () => t.hasActions ? x.value : M.value
852
+ );
853
+ Be(() => {
854
+ if (t.hasActions || nt(
855
+ 'BentoDateRangePicker "hasActions" property',
856
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
857
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
858
+ "2.0.0"
859
+ ), t.granularities && t.variant !== "month" && t.granularities.find(({ type: d }) => d === "quarterly"))
860
+ throw new Error(
861
+ 'Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"'
862
+ );
863
+ }), me(
864
+ () => t.value,
865
+ () => {
866
+ x.value = M.value, ie.value = structuredClone(fe(f));
867
+ }
868
+ );
869
+ const L = y(() => [
870
+ {
871
+ title: o("apply"),
872
+ event: () => {
873
+ e(de.INPUT, F.value), Q(), T.value = !0;
874
+ },
875
+ disabled: T.value
876
+ },
877
+ {
878
+ title: o("cancel"),
879
+ event: Q
880
+ }
881
+ ]);
882
+ return me(F, (d) => {
883
+ if (t.hasActions) {
884
+ T.value = p.value;
885
+ return;
886
+ }
887
+ e(de.INPUT, d);
888
+ }), {
889
+ // Refs
890
+ inputContainerRef: z,
891
+ // Values,
892
+ adjustedQuickSelectRanges: ee,
893
+ dateDisplayValue: M,
894
+ datePickerContainerId: D,
895
+ descriptionConditionalClasses: j,
896
+ displayedTextInputValue: N,
897
+ displayedDateValue: q,
898
+ isDateIncorrect: p,
899
+ isDateRangePickerOpen: b,
900
+ isReadOnly: g,
901
+ labelId: m,
902
+ descriptionId: r,
903
+ dateErrorId: _,
904
+ errorId: R,
905
+ popoverAriaLabel: se,
906
+ shouldDisplayError: k,
907
+ ariaDescribedBy: C,
908
+ textInputDisplayValue: f,
909
+ rangePickerButtonActions: L,
910
+ BentoButtonActionsLayout: Tt,
911
+ withTimeInput: A,
912
+ // Events
913
+ closeDateRangePicker: Q,
914
+ clearDateRangePickerValue: async () => {
915
+ p.value && (p.value = !1), F.value = null;
916
+ },
917
+ openDateRangePicker: De,
918
+ onRangeSelectorInput: (d) => {
919
+ if (d) {
920
+ const O = (X) => ne(X, S.NUMERIC_DATE_YEAR_FIRST, {
921
+ locale: l[n.value.substring(0, 2)] || l.enUS
922
+ });
923
+ f.startDate = O(d.startDate), f.endDate = O(d.endDate), F.value = d;
924
+ }
925
+ },
926
+ onEnterPressedOverInput: () => {
927
+ if (!b.value) {
928
+ b.value = !0;
929
+ return;
930
+ }
931
+ p.value || (b.value = !1);
932
+ },
933
+ onDateRangePickerInput: (d) => {
934
+ p.value = !1;
935
+ const O = (X, Z) => X ? ne(X, Z, {
936
+ locale: l[n.value.substring(0, 2)] || l.enUS
937
+ }) : void 0;
938
+ f.startDate = O(
939
+ d.startDate,
940
+ S.NUMERIC_DATE_YEAR_FIRST
941
+ ), f.endDate = O(d.endDate, S.NUMERIC_DATE_YEAR_FIRST), f.startTime = O(d.startDate, S.HOUR_MINUTE_SECONDS), f.endTime = O(d.endDate, S.HOUR_MINUTE_SECONDS), F.value = d;
942
+ },
943
+ onDateRangePickerError: (d) => {
944
+ p.value = !0, f.startDate = d.startDate, f.endDate = d.endDate, F.value = { startDate: null, endDate: null };
945
+ },
946
+ onDateRangePickerFormDateInputUpdate: (d) => {
947
+ p.value = !1, d.startTime && (f.startTime = d.startTime), d.endTime && (f.endTime = d.endTime);
948
+ },
949
+ // Translations
950
+ t: o
951
+ };
952
+ }
953
+ });
954
+ var Yt = function() {
955
+ var e = this, n = e._self._c;
956
+ return e._self._setupProxy, n("div", { directives: [{ name: "bento-click-outside-directive", rawName: "v-bento-click-outside-directive", value: e.closeDateRangePicker, expression: "closeDateRangePicker" }], staticClass: "b-date-range-picker" }, [e.label ? n("field-label", { attrs: { id: e.labelId, label: e.label, "tooltip-text": e.tooltipText, optional: e.optional, required: e.required } }) : e._e(), n("div", { on: { keydown: function(o) {
957
+ return !o.type.indexOf("key") && e._k(o.keyCode, "enter", 13, o.key, "Enter") ? null : e.onEnterPressedOverInput.apply(null, arguments);
958
+ } } }, [n("dropdown-input-default", { ref: "inputContainerRef", attrs: { "always-combobox-is-input": "", ariaControls: e.datePickerContainerId, ariaExpanded: e.isDateRangePickerOpen, "aria-labelledby": e.label ? e.labelId : null, "aria-describedby": e.ariaDescribedBy, disabled: e.disabled, "is-invalid": !!e.errorMessage || e.shouldDisplayError, open: e.isDateRangePickerOpen, "display-value": e.displayedDateValue, readonly: e.isReadOnly }, on: { open: e.openDateRangePicker, clear: e.clearDateRangePickerValue, close: e.closeDateRangePicker } })], 1), e.shouldDisplayError ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.dateErrorId, "error-message": e.t("provideDateInAFormat") } }) : e._e(), e.errorMessage ? n("error-message", { staticClass: "b-date-range-picker__error-message", attrs: { id: e.errorId, "error-message": e.errorMessage } }) : e._e(), e.description ? n("bento-typography", { staticClass: "b-date-range-picker__description", class: e.descriptionConditionalClasses, attrs: { id: e.descriptionId, el: "span" } }, [e._v(" " + e._s(e.description) + " ")]) : e._e(), e.inputContainerRef ? n("bento-popover", { staticClass: "b-date-range-picker__container", attrs: { id: e.datePickerContainerId, open: e.isDateRangePickerOpen, "target-element": e.inputContainerRef, "disable-focus-trap": !0, "aria-label": e.popoverAriaLabel, position: "bottom-start", "without-space": "", "fit-content": "" } }, [n("date-range-picker-calendar", { attrs: { "allow-time-input": e.withTimeInput, "quick-select-ranges": e.adjustedQuickSelectRanges, value: e.value, "first-day-of-week": e.firstDayOfWeek, granularities: e.granularities, "is-date-disabled": e.isDateDisabled, "max-range": e.maxRange, min: e.min, max: e.max, "number-of-months": e.numberOfMonths, "show-end-date-on-open": e.showEndDateOnOpen, "date-form-data": e.displayedTextInputValue, variant: e.variant }, on: { "custom-range": e.onRangeSelectorInput, input: e.onDateRangePickerInput, error: e.onDateRangePickerError, "form-date": e.onDateRangePickerFormDateInputUpdate }, scopedSlots: e._u([e.hasActions ? { key: "actions", fn: function() {
959
+ return [n("bento-divider"), n("div", { staticClass: "b-date-range-picker__footer" }, [n("bento-button-actions", { attrs: { actions: e.rangePickerButtonActions, layout: e.BentoButtonActionsLayout.SPACE_BETWEEN } })], 1)];
960
+ }, proxy: !0 } : null], null, !0) })], 1) : e._e()], 1);
961
+ }, $t = [], jt = /* @__PURE__ */ Le(
962
+ Lt,
963
+ Yt,
964
+ $t,
965
+ !1,
966
+ null,
967
+ "11efd45e"
968
+ );
969
+ const ma = jt.exports;
970
+ export {
971
+ ma as B,
972
+ U as D,
973
+ de as a,
974
+ bt as b,
975
+ Rt as i
976
+ };
977
+ //# sourceMappingURL=date-range-picker.Djt5mYvh.js.map