@adyen/bento-vue3 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 (581) hide show
  1. package/dist/@types/components.d.ts +201 -0
  2. package/dist/@types/index.d.ts +17835 -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-vue_export-helper.CHgC5LLL.js +10 -0
  124. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  125. package/dist/chunks/accordion-item.CihL7JaZ.js +142 -0
  126. package/dist/chunks/accordion-item.CihL7JaZ.js.map +1 -0
  127. package/dist/chunks/action-bar.BDF61iH-.js +203 -0
  128. package/dist/chunks/action-bar.BDF61iH-.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.CjegN2iG.js +169 -0
  138. package/dist/chunks/alert.CjegN2iG.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.B0-9jC6H.js +94 -0
  142. package/dist/chunks/avatar.B0-9jC6H.js.map +1 -0
  143. package/dist/chunks/base-button.DdNFlbgH.js +115 -0
  144. package/dist/chunks/base-button.DdNFlbgH.js.map +1 -0
  145. package/dist/chunks/base-modal.D2tNbxw3.js +504 -0
  146. package/dist/chunks/base-modal.D2tNbxw3.js.map +1 -0
  147. package/dist/chunks/base-modal.keys.C2PQXcE2.js +5 -0
  148. package/dist/chunks/base-modal.keys.C2PQXcE2.js.map +1 -0
  149. package/dist/chunks/bin.CA6UQCNZ.js +37 -0
  150. package/dist/chunks/bin.CA6UQCNZ.js.map +1 -0
  151. package/dist/chunks/button-actions-with-menu.DG5t9zB7.js +174 -0
  152. package/dist/chunks/button-actions-with-menu.DG5t9zB7.js.map +1 -0
  153. package/dist/chunks/button-actions.1MReMMnL.js +264 -0
  154. package/dist/chunks/button-actions.1MReMMnL.js.map +1 -0
  155. package/dist/chunks/button.CVZJTZv0.js +120 -0
  156. package/dist/chunks/button.CVZJTZv0.js.map +1 -0
  157. package/dist/chunks/calendar.ugV5Vzqs.js +1290 -0
  158. package/dist/chunks/calendar.ugV5Vzqs.js.map +1 -0
  159. package/dist/chunks/card.dF_i6neN.js +213 -0
  160. package/dist/chunks/card.dF_i6neN.js.map +1 -0
  161. package/dist/chunks/checkbox-group.DtXPnGyr.js +192 -0
  162. package/dist/chunks/checkbox-group.DtXPnGyr.js.map +1 -0
  163. package/dist/chunks/checkbox-input.DVayucaL.js +168 -0
  164. package/dist/chunks/checkbox-input.DVayucaL.js.map +1 -0
  165. package/dist/chunks/checkbox.B-jC5L05.js +253 -0
  166. package/dist/chunks/checkbox.B-jC5L05.js.map +1 -0
  167. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js +44 -0
  168. package/dist/chunks/checkmark-circle-fill.jicbqe7k.js.map +1 -0
  169. package/dist/chunks/checkmark-small.D7l69yBf.js +29 -0
  170. package/dist/chunks/checkmark-small.D7l69yBf.js.map +1 -0
  171. package/dist/chunks/chevron-left.BF63HtOH.js +52 -0
  172. package/dist/chunks/chevron-left.BF63HtOH.js.map +1 -0
  173. package/dist/chunks/chevron-up.-0oLlHmh.js +52 -0
  174. package/dist/chunks/chevron-up.-0oLlHmh.js.map +1 -0
  175. package/dist/chunks/chip.BVCzNGaI.js +71 -0
  176. package/dist/chunks/chip.BVCzNGaI.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.iD36_pOw.js +334 -0
  180. package/dist/chunks/code-snippet.iD36_pOw.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.BX2GxXvb.js +98 -0
  184. package/dist/chunks/controls-group.BX2GxXvb.js.map +1 -0
  185. package/dist/chunks/copy.jE0EciK8.js +156 -0
  186. package/dist/chunks/copy.jE0EciK8.js.map +1 -0
  187. package/dist/chunks/country.BhAcCmRx.js +99 -0
  188. package/dist/chunks/country.BhAcCmRx.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.mY6ihJcA.js +29 -0
  192. package/dist/chunks/cross-circle-fill-small.mY6ihJcA.js.map +1 -0
  193. package/dist/chunks/cross-circle-fill.B7YpDLTK.js +44 -0
  194. package/dist/chunks/cross-circle-fill.B7YpDLTK.js.map +1 -0
  195. package/dist/chunks/cross-small.CFrBIeYK.js +29 -0
  196. package/dist/chunks/cross-small.CFrBIeYK.js.map +1 -0
  197. package/dist/chunks/cross.CbLEjiVy.js +29 -0
  198. package/dist/chunks/cross.CbLEjiVy.js.map +1 -0
  199. package/dist/chunks/currency.DagWnTry.js +109 -0
  200. package/dist/chunks/currency.DagWnTry.js.map +1 -0
  201. package/dist/chunks/dashboard-section.Bq1abySA.js +165 -0
  202. package/dist/chunks/dashboard-section.Bq1abySA.js.map +1 -0
  203. package/dist/chunks/dashed-underline.DweJIpuJ.js +98 -0
  204. package/dist/chunks/dashed-underline.DweJIpuJ.js.map +1 -0
  205. package/dist/chunks/data-grid-template.UkERMC7S.js +143 -0
  206. package/dist/chunks/data-grid-template.UkERMC7S.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.o4emi6FA.js +3646 -0
  210. package/dist/chunks/data-grid.o4emi6FA.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.BPLtpBbX.js +315 -0
  214. package/dist/chunks/date-picker.BPLtpBbX.js.map +1 -0
  215. package/dist/chunks/date-range-picker.BYvj1y8T.js +1181 -0
  216. package/dist/chunks/date-range-picker.BYvj1y8T.js.map +1 -0
  217. package/dist/chunks/date.CKXySBQv.js +995 -0
  218. package/dist/chunks/date.CKXySBQv.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.Cngbnn1Z.js +175 -0
  222. package/dist/chunks/dialog-page.Cngbnn1Z.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.qUOSAbU6.js +33 -0
  226. package/dist/chunks/divider.qUOSAbU6.js.map +1 -0
  227. package/dist/chunks/dot.BW-xtyjC.js +29 -0
  228. package/dist/chunks/dot.BW-xtyjC.js.map +1 -0
  229. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js +419 -0
  230. package/dist/chunks/dropdown-default-textbox.BNhy-QDH.js.map +1 -0
  231. package/dist/chunks/dropdown-tag.DxLOtAIw.js +202 -0
  232. package/dist/chunks/dropdown-tag.DxLOtAIw.js.map +1 -0
  233. package/dist/chunks/dropdown.FJu_m8Tw.js +936 -0
  234. package/dist/chunks/dropdown.FJu_m8Tw.js.map +1 -0
  235. package/dist/chunks/empty-state.BGWjUH6G.js +185 -0
  236. package/dist/chunks/empty-state.BGWjUH6G.js.map +1 -0
  237. package/dist/chunks/error-message.Cb9-ZwSV.js +158 -0
  238. package/dist/chunks/error-message.Cb9-ZwSV.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.FNmSWp_P.js +52 -0
  242. package/dist/chunks/events.FNmSWp_P.js.map +1 -0
  243. package/dist/chunks/expand.DusW7F7p.js +33 -0
  244. package/dist/chunks/expand.DusW7F7p.js.map +1 -0
  245. package/dist/chunks/file-uploader.Bp8PDPHt.js +2280 -0
  246. package/dist/chunks/file-uploader.Bp8PDPHt.js.map +1 -0
  247. package/dist/chunks/filter-bar.BRB7BjbE.js +2976 -0
  248. package/dist/chunks/filter-bar.BRB7BjbE.js.map +1 -0
  249. package/dist/chunks/fixed-scroller.BjxA_R63.js +147 -0
  250. package/dist/chunks/fixed-scroller.BjxA_R63.js.map +1 -0
  251. package/dist/chunks/focus-trap.CljZgv9i.js +500 -0
  252. package/dist/chunks/focus-trap.CljZgv9i.js.map +1 -0
  253. package/dist/chunks/footer-actions.jRnnqdse.js +110 -0
  254. package/dist/chunks/footer-actions.jRnnqdse.js.map +1 -0
  255. package/dist/chunks/form-layout-title.CsmjzAje.js +206 -0
  256. package/dist/chunks/form-layout-title.CsmjzAje.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.DQlZEsId.js +12 -0
  264. package/dist/chunks/get-slot-text.DQlZEsId.js.map +1 -0
  265. package/dist/chunks/grid-layout.BTLE3rac.js +114 -0
  266. package/dist/chunks/grid-layout.BTLE3rac.js.map +1 -0
  267. package/dist/chunks/header-with-views.DJSGKRhj.js +2362 -0
  268. package/dist/chunks/header-with-views.DJSGKRhj.js.map +1 -0
  269. package/dist/chunks/header.BBnN_HU9.js +253 -0
  270. package/dist/chunks/header.BBnN_HU9.js.map +1 -0
  271. package/dist/chunks/i18n.B6g5VX0q.js +3131 -0
  272. package/dist/chunks/i18n.B6g5VX0q.js.map +1 -0
  273. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +47 -0
  274. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.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.BxBB1rsx.js +15 -0
  278. package/dist/chunks/index.BxBB1rsx.js.map +1 -0
  279. package/dist/chunks/index.CWuzEfiV.js +6 -0
  280. package/dist/chunks/index.CWuzEfiV.js.map +1 -0
  281. package/dist/chunks/index.DD7TppDb.js +10 -0
  282. package/dist/chunks/index.DD7TppDb.js.map +1 -0
  283. package/dist/chunks/index.FNUaPG4G.js +528 -0
  284. package/dist/chunks/index.FNUaPG4G.js.map +1 -0
  285. package/dist/chunks/info-icon-with-popover.D6WFtFFY.js +97 -0
  286. package/dist/chunks/info-icon-with-popover.D6WFtFFY.js.map +1 -0
  287. package/dist/chunks/info-icon.BYCwlUzk.js +45 -0
  288. package/dist/chunks/info-icon.BYCwlUzk.js.map +1 -0
  289. package/dist/chunks/info.HK3R7Drc.js +44 -0
  290. package/dist/chunks/info.HK3R7Drc.js.map +1 -0
  291. package/dist/chunks/input-field-password.CtK2VVqL.js +366 -0
  292. package/dist/chunks/input-field-password.CtK2VVqL.js.map +1 -0
  293. package/dist/chunks/input-field-phone-number.Cf5nQpfS.js +3106 -0
  294. package/dist/chunks/input-field-phone-number.Cf5nQpfS.js.map +1 -0
  295. package/dist/chunks/input-field.C94JL_Qv.js +298 -0
  296. package/dist/chunks/input-field.C94JL_Qv.js.map +1 -0
  297. package/dist/chunks/inspector.CxNXHV8C.js +200 -0
  298. package/dist/chunks/inspector.CxNXHV8C.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.CqgGzfZQ.js +66 -0
  306. package/dist/chunks/keyboard-navigation.CqgGzfZQ.js.map +1 -0
  307. package/dist/chunks/layout-row.CZNtHaXd.js +100 -0
  308. package/dist/chunks/layout-row.CZNtHaXd.js.map +1 -0
  309. package/dist/chunks/link.CTH1xj0i.js +116 -0
  310. package/dist/chunks/link.CTH1xj0i.js.map +1 -0
  311. package/dist/chunks/listbox-option-tag.DNBeYvNM.js +55 -0
  312. package/dist/chunks/listbox-option-tag.DNBeYvNM.js.map +1 -0
  313. package/dist/chunks/loading-indicator.DEepb9Wl.js +44 -0
  314. package/dist/chunks/loading-indicator.DEepb9Wl.js.map +1 -0
  315. package/dist/chunks/menu.BcXV6WhV.js +768 -0
  316. package/dist/chunks/menu.BcXV6WhV.js.map +1 -0
  317. package/dist/chunks/modal-fullscreen.D93NZCBg.js +270 -0
  318. package/dist/chunks/modal-fullscreen.D93NZCBg.js.map +1 -0
  319. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js +5 -0
  320. package/dist/chunks/modal-fullscreen.keys.CMba3hYp.js.map +1 -0
  321. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.B3uzibmr.js +501 -0
  322. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.B3uzibmr.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.rrPdG7nK.js +461 -0
  338. package/dist/chunks/pagination.rrPdG7nK.js.map +1 -0
  339. package/dist/chunks/payment-method.eazefwm6.js +125 -0
  340. package/dist/chunks/payment-method.eazefwm6.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.KFyR9BXF.js +350 -0
  348. package/dist/chunks/popover.KFyR9BXF.js.map +1 -0
  349. package/dist/chunks/popper-container.b5h4zYgT.js +1396 -0
  350. package/dist/chunks/popper-container.b5h4zYgT.js.map +1 -0
  351. package/dist/chunks/popper-container.types.BCZMbVFD.js +9 -0
  352. package/dist/chunks/popper-container.types.BCZMbVFD.js.map +1 -0
  353. package/dist/chunks/promo-banner.BfXfaCrf.js +126 -0
  354. package/dist/chunks/promo-banner.BfXfaCrf.js.map +1 -0
  355. package/dist/chunks/radio-group.Q8q8J7WW.js +321 -0
  356. package/dist/chunks/radio-group.Q8q8J7WW.js.map +1 -0
  357. package/dist/chunks/radio-input.DKfQGxtp.js +96 -0
  358. package/dist/chunks/radio-input.DKfQGxtp.js.map +1 -0
  359. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  360. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  361. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  362. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  363. package/dist/chunks/refresh.C20ROVDS.js +29 -0
  364. package/dist/chunks/refresh.C20ROVDS.js.map +1 -0
  365. package/dist/chunks/resize.Bqks3WUm.js +15 -0
  366. package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
  367. package/dist/chunks/rich-text-editor.Ddt7IVXL.js +6221 -0
  368. package/dist/chunks/rich-text-editor.Ddt7IVXL.js.map +1 -0
  369. package/dist/chunks/search-bar.ZidZj4NE.js +114 -0
  370. package/dist/chunks/search-bar.ZidZj4NE.js.map +1 -0
  371. package/dist/chunks/search.CW_aTqip.js +44 -0
  372. package/dist/chunks/search.CW_aTqip.js.map +1 -0
  373. package/dist/chunks/secondary-nav.Cy2JAzoO.js +138 -0
  374. package/dist/chunks/secondary-nav.Cy2JAzoO.js.map +1 -0
  375. package/dist/chunks/segmented-control.CZpx9H-d.js +144 -0
  376. package/dist/chunks/segmented-control.CZpx9H-d.js.map +1 -0
  377. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  378. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  379. package/dist/chunks/selection-card-group.B2EoXxux.js +474 -0
  380. package/dist/chunks/selection-card-group.B2EoXxux.js.map +1 -0
  381. package/dist/chunks/show.ByWWaogc.js +64 -0
  382. package/dist/chunks/show.ByWWaogc.js.map +1 -0
  383. package/dist/chunks/sidepanel.CNA3pTXy.js +254 -0
  384. package/dist/chunks/sidepanel.CNA3pTXy.js.map +1 -0
  385. package/dist/chunks/sidepanel.keys.R0DKQuYx.js +5 -0
  386. package/dist/chunks/sidepanel.keys.R0DKQuYx.js.map +1 -0
  387. package/dist/chunks/status.types.Bdv2zuuh.js +44 -0
  388. package/dist/chunks/status.types.Bdv2zuuh.js.map +1 -0
  389. package/dist/chunks/step.7l-t-eN9.js +264 -0
  390. package/dist/chunks/step.7l-t-eN9.js.map +1 -0
  391. package/dist/chunks/structured-list-item.CLpfMbkV.js +108 -0
  392. package/dist/chunks/structured-list-item.CLpfMbkV.js.map +1 -0
  393. package/dist/chunks/success.DhioLvPD.js +5 -0
  394. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  395. package/dist/chunks/success.nNwxJRBS.js +5 -0
  396. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  397. package/dist/chunks/summary-grid.keys.CxTf_FOc.js +6 -0
  398. package/dist/chunks/summary-grid.keys.CxTf_FOc.js.map +1 -0
  399. package/dist/chunks/summary-grid.types.BcicwgZm.js +466 -0
  400. package/dist/chunks/summary-grid.types.BcicwgZm.js.map +1 -0
  401. package/dist/chunks/tabs.Bn4YIjoy.js +266 -0
  402. package/dist/chunks/tabs.Bn4YIjoy.js.map +1 -0
  403. package/dist/chunks/tabs.keys.Bc2pSKRw.js +7 -0
  404. package/dist/chunks/tabs.keys.Bc2pSKRw.js.map +1 -0
  405. package/dist/chunks/tag.DwnsmTVq.js +51 -0
  406. package/dist/chunks/tag.DwnsmTVq.js.map +1 -0
  407. package/dist/chunks/teleport.CfGWjxe2.js +129 -0
  408. package/dist/chunks/teleport.CfGWjxe2.js.map +1 -0
  409. package/dist/chunks/textarea.Dl5TFi8E.js +278 -0
  410. package/dist/chunks/textarea.Dl5TFi8E.js.map +1 -0
  411. package/dist/chunks/timeline-item.CcbL86D0.js +567 -0
  412. package/dist/chunks/timeline-item.CcbL86D0.js.map +1 -0
  413. package/dist/chunks/toast.Ae5ZoWHb.js +221 -0
  414. package/dist/chunks/toast.Ae5ZoWHb.js.map +1 -0
  415. package/dist/chunks/toggle-button.Dv1t15yj.js +80 -0
  416. package/dist/chunks/toggle-button.Dv1t15yj.js.map +1 -0
  417. package/dist/chunks/toggle.hoD_i2Ey.js +161 -0
  418. package/dist/chunks/toggle.hoD_i2Ey.js.map +1 -0
  419. package/dist/chunks/tooltip.D2o0d8Xf.js +205 -0
  420. package/dist/chunks/tooltip.D2o0d8Xf.js.map +1 -0
  421. package/dist/chunks/truncate.BfIl_-71.js +8 -0
  422. package/dist/chunks/truncate.BfIl_-71.js.map +1 -0
  423. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Bcu-t4d8.js +423 -0
  424. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.Bcu-t4d8.js.map +1 -0
  425. package/dist/chunks/typography.DN5eC5ch.js +83 -0
  426. package/dist/chunks/typography.DN5eC5ch.js.map +1 -0
  427. package/dist/chunks/upload-files.5wQwbfkp.js +5 -0
  428. package/dist/chunks/upload-files.5wQwbfkp.js.map +1 -0
  429. package/dist/chunks/upload-files.jTQY6y2X.js +5 -0
  430. package/dist/chunks/upload-files.jTQY6y2X.js.map +1 -0
  431. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js +50 -0
  432. package/dist/chunks/use-bento-toast-controller.D3LA1FCd.js.map +1 -0
  433. package/dist/chunks/use-cached-selected-values.Ber7lUiH.js +1475 -0
  434. package/dist/chunks/use-cached-selected-values.Ber7lUiH.js.map +1 -0
  435. package/dist/chunks/use-click-outside.BnhTgpSt.js +14 -0
  436. package/dist/chunks/use-click-outside.BnhTgpSt.js.map +1 -0
  437. package/dist/chunks/use-country-items.4kZgVg_l.js +30 -0
  438. package/dist/chunks/use-country-items.4kZgVg_l.js.map +1 -0
  439. package/dist/chunks/use-country-phon-code.DVgE19zT.js +5610 -0
  440. package/dist/chunks/use-country-phon-code.DVgE19zT.js.map +1 -0
  441. package/dist/chunks/use-default-slot-validator.O02rzsob.js +16 -0
  442. package/dist/chunks/use-default-slot-validator.O02rzsob.js.map +1 -0
  443. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js +17 -0
  444. package/dist/chunks/use-expandable-content-height.GkjjbmPy.js.map +1 -0
  445. package/dist/chunks/use-form-layout-loading.D3lALhtC.js +12 -0
  446. package/dist/chunks/use-form-layout-loading.D3lALhtC.js.map +1 -0
  447. package/dist/chunks/use-has-slot.B7eQSabc.js +15 -0
  448. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -0
  449. package/dist/chunks/warning-filled.DmHh0nYG.js +29 -0
  450. package/dist/chunks/warning-filled.DmHh0nYG.js.map +1 -0
  451. package/dist/chunks/wrong-environment.BOsyKdRI.js +5 -0
  452. package/dist/chunks/wrong-environment.BOsyKdRI.js.map +1 -0
  453. package/dist/chunks/wrong-environment.BiHTPtbJ.js +5 -0
  454. package/dist/chunks/wrong-environment.BiHTPtbJ.js.map +1 -0
  455. package/dist/click-outside.js +5 -0
  456. package/dist/click-outside.js.map +1 -0
  457. package/dist/code-snippet.js +8 -0
  458. package/dist/code-snippet.js.map +1 -0
  459. package/dist/country.js +12 -0
  460. package/dist/country.js.map +1 -0
  461. package/dist/currency.js +6 -0
  462. package/dist/currency.js.map +1 -0
  463. package/dist/dashboard-template.js +6 -0
  464. package/dist/dashboard-template.js.map +1 -0
  465. package/dist/dashed-underline.js +5 -0
  466. package/dist/dashed-underline.js.map +1 -0
  467. package/dist/data-grid-template.js +5 -0
  468. package/dist/data-grid-template.js.map +1 -0
  469. package/dist/data-grid.js +11 -0
  470. package/dist/data-grid.js.map +1 -0
  471. package/dist/date-picker.js +8 -0
  472. package/dist/date-picker.js.map +1 -0
  473. package/dist/date-range-picker.js +8 -0
  474. package/dist/date-range-picker.js.map +1 -0
  475. package/dist/date.js +6 -0
  476. package/dist/date.js.map +1 -0
  477. package/dist/divider.js +5 -0
  478. package/dist/divider.js.map +1 -0
  479. package/dist/dropdown.js +16 -0
  480. package/dist/dropdown.js.map +1 -0
  481. package/dist/empty-state.js +8 -0
  482. package/dist/empty-state.js.map +1 -0
  483. package/dist/file-uploader.js +5 -0
  484. package/dist/file-uploader.js.map +1 -0
  485. package/dist/filter-bar.js +8 -0
  486. package/dist/filter-bar.js.map +1 -0
  487. package/dist/focus-trap.js +5 -0
  488. package/dist/focus-trap.js.map +1 -0
  489. package/dist/fonts/fonts.css +2 -0
  490. package/dist/form-layout.js +8 -0
  491. package/dist/form-layout.js.map +1 -0
  492. package/dist/header-with-views.js +5 -0
  493. package/dist/header-with-views.js.map +1 -0
  494. package/dist/header.js +5 -0
  495. package/dist/header.js.map +1 -0
  496. package/dist/image.js +7 -0
  497. package/dist/image.js.map +1 -0
  498. package/dist/index.js +371 -0
  499. package/dist/index.js.map +1 -0
  500. package/dist/info-icon.js +5 -0
  501. package/dist/info-icon.js.map +1 -0
  502. package/dist/input-field-password.js +10 -0
  503. package/dist/input-field-password.js.map +1 -0
  504. package/dist/input-field-phone-number.js +5 -0
  505. package/dist/input-field-phone-number.js.map +1 -0
  506. package/dist/input-field.js +10 -0
  507. package/dist/input-field.js.map +1 -0
  508. package/dist/inspector.js +7 -0
  509. package/dist/inspector.js.map +1 -0
  510. package/dist/internal.js +43 -0
  511. package/dist/internal.js.map +1 -0
  512. package/dist/layout.js +6 -0
  513. package/dist/layout.js.map +1 -0
  514. package/dist/link.js +6 -0
  515. package/dist/link.js.map +1 -0
  516. package/dist/loading-indicator.js +6 -0
  517. package/dist/loading-indicator.js.map +1 -0
  518. package/dist/menu.js +6 -0
  519. package/dist/menu.js.map +1 -0
  520. package/dist/modal-fullscreen.js +6 -0
  521. package/dist/modal-fullscreen.js.map +1 -0
  522. package/dist/modal.js +14 -0
  523. package/dist/modal.js.map +1 -0
  524. package/dist/pagination.js +5 -0
  525. package/dist/pagination.js.map +1 -0
  526. package/dist/payment-method.js +7 -0
  527. package/dist/payment-method.js.map +1 -0
  528. package/dist/popover.js +6 -0
  529. package/dist/popover.js.map +1 -0
  530. package/dist/popper-container.js +10 -0
  531. package/dist/popper-container.js.map +1 -0
  532. package/dist/promo-banner.js +7 -0
  533. package/dist/promo-banner.js.map +1 -0
  534. package/dist/radio-group.js +9 -0
  535. package/dist/radio-group.js.map +1 -0
  536. package/dist/rich-text-editor.js +5 -0
  537. package/dist/rich-text-editor.js.map +1 -0
  538. package/dist/search-bar.js +9 -0
  539. package/dist/search-bar.js.map +1 -0
  540. package/dist/secondary-nav.js +5 -0
  541. package/dist/secondary-nav.js.map +1 -0
  542. package/dist/segmented-control.js +7 -0
  543. package/dist/segmented-control.js.map +1 -0
  544. package/dist/selection-card.js +7 -0
  545. package/dist/selection-card.js.map +1 -0
  546. package/dist/sidepanel.js +7 -0
  547. package/dist/sidepanel.js.map +1 -0
  548. package/dist/status.js +6 -0
  549. package/dist/status.js.map +1 -0
  550. package/dist/stepper.js +8 -0
  551. package/dist/stepper.js.map +1 -0
  552. package/dist/structured-list.js +6 -0
  553. package/dist/structured-list.js.map +1 -0
  554. package/dist/styles/bento-dark.css +2055 -0
  555. package/dist/styles/bento-light.css +2054 -0
  556. package/dist/styles/bento.css +2054 -0
  557. package/dist/styles/legacy.css +2209 -0
  558. package/dist/styles/styleguide.css +2109 -0
  559. package/dist/styles/utility.css +987 -0
  560. package/dist/summary-grid.js +12 -0
  561. package/dist/summary-grid.js.map +1 -0
  562. package/dist/tabs.js +6 -0
  563. package/dist/tabs.js.map +1 -0
  564. package/dist/tag.js +6 -0
  565. package/dist/tag.js.map +1 -0
  566. package/dist/textarea.js +5 -0
  567. package/dist/textarea.js.map +1 -0
  568. package/dist/timeline.js +10 -0
  569. package/dist/timeline.js.map +1 -0
  570. package/dist/toast.js +5 -0
  571. package/dist/toast.js.map +1 -0
  572. package/dist/toggle.js +7 -0
  573. package/dist/toggle.js.map +1 -0
  574. package/dist/tutorial.js +5 -0
  575. package/dist/tutorial.js.map +1 -0
  576. package/dist/typography.js +8 -0
  577. package/dist/typography.js.map +1 -0
  578. package/dist/use-form-v4.js +8300 -0
  579. package/dist/use-form-v4.js.map +1 -0
  580. package/dist/web-types.json +49 -0
  581. package/package.json +5 -5
@@ -0,0 +1,1181 @@
1
+ import { reactive as Te, defineComponent as ze, computed as b, ref as A, onMounted as Je, toRaw as Ie, resolveComponent as k, createElementBlock as Se, openBlock as O, createElementVNode as $, createCommentVNode as F, renderSlot as Fe, createBlock as V, createVNode as K, withCtx as L, createTextVNode as re, normalizeClass as ke, toRef as _e, watch as Re, resolveDirective as ft, withDirectives as pt, withKeys as vt, toDisplayString as gt, createSlots as yt } from "vue";
2
+ import { B as Tt } from "./divider.qUOSAbU6.js";
3
+ import { B as bt } from "./popover.KFyR9BXF.js";
4
+ import { B as Xe, d as Rt } from "./typography.DN5eC5ch.js";
5
+ import { r as M, t as X, g as Ee } from "./get-date-locale.BN8xEjY0.js";
6
+ import { g as de } from "./generate-uid.NJ8tVoha.js";
7
+ import { u as he } from "./i18n.B6g5VX0q.js";
8
+ import { t as De, f as ce } from "./date.CKXySBQv.js";
9
+ import { e as Ze, f as me, i as Y, g as se, h as Ue, j as It, k as Be, l as St, s as Ne, m as kt, n as Pe, a as J, u as Et } from "./calendar.ugV5Vzqs.js";
10
+ import { f as qe, v as ht, D as E } from "./date-input.BqBdAO1E.js";
11
+ import { u as wt } from "./use-form-layout-loading.D3lALhtC.js";
12
+ import { B as Ot } from "./directive.Cbdox5VL.js";
13
+ import "./events.FNmSWp_P.js";
14
+ import { B as Mt } from "./input-field.C94JL_Qv.js";
15
+ import { B as Ct } from "./dropdown.FJu_m8Tw.js";
16
+ import { B as At } from "./segmented-control.CZpx9H-d.js";
17
+ import { d as ge } from "./debounce.DUTu11PS.js";
18
+ import { u as Ft } from "./use-has-slot.B7eQSabc.js";
19
+ import { e as j, a as $e } from "./index.BDuTpjD8.js";
20
+ import { _ as xe } from "./_plugin-vue_export-helper.CHgC5LLL.js";
21
+ import { D as _t } from "./dropdown-default-textbox.BNhy-QDH.js";
22
+ import { F as Ut, E as Bt } from "./error-message.Cb9-ZwSV.js";
23
+ import { B as Nt, c as Pt } from "./button-actions.1MReMMnL.js";
24
+ import "../assets/date-range-picker.css";
25
+ function et(e, a) {
26
+ M(2, arguments);
27
+ var l = De(a), i = l * 3;
28
+ return Ze(e, i);
29
+ }
30
+ function Le(e) {
31
+ M(1, arguments);
32
+ var a = X(e), l = Math.floor(a.getMonth() / 3) + 1;
33
+ return l;
34
+ }
35
+ function Ye(e) {
36
+ return M(1, arguments), X(e).getFullYear();
37
+ }
38
+ function qt(e, a) {
39
+ M(2, arguments);
40
+ var l = X(e), i = X(a);
41
+ return l.getTime() === i.getTime();
42
+ }
43
+ function $t(e, a) {
44
+ M(2, arguments);
45
+ var l = me(e), i = me(a);
46
+ return l.getTime() === i.getTime();
47
+ }
48
+ function Ve(e) {
49
+ M(1, arguments);
50
+ var a = X(e);
51
+ return a.setMilliseconds(0), a;
52
+ }
53
+ function Ke(e, a) {
54
+ M(2, arguments);
55
+ var l = Ve(e), i = Ve(a);
56
+ return l.getTime() === i.getTime();
57
+ }
58
+ function Lt(e) {
59
+ return M(1, arguments), Y(e, Date.now());
60
+ }
61
+ function Yt(e, a) {
62
+ M(2, arguments);
63
+ var l = X(e), i = De(a);
64
+ return l.setHours(i), l;
65
+ }
66
+ function Vt(e, a) {
67
+ M(2, arguments);
68
+ var l = X(e), i = De(a);
69
+ return l.setMinutes(i), l;
70
+ }
71
+ function Kt(e, a) {
72
+ M(2, arguments);
73
+ var l = X(e), i = De(a);
74
+ return l.setSeconds(i), l;
75
+ }
76
+ function jt(e, a) {
77
+ M(2, arguments);
78
+ var l = De(a);
79
+ return et(e, -l);
80
+ }
81
+ function oe(e) {
82
+ if (e == null)
83
+ return se(/* @__PURE__ */ new Date());
84
+ const [a, l, i] = e.split("-").map((s) => parseInt(s, 10));
85
+ return new Date(a, l - 1, i);
86
+ }
87
+ const Qt = ({
88
+ firstDayOfWeek: e,
89
+ min: a,
90
+ max: l
91
+ }) => ({ getGranularCalendarLimits: (s) => {
92
+ let c = se(a), D = j(l);
93
+ if ((s == null ? void 0 : s.type) === "weekly") {
94
+ if (s.earliest)
95
+ c = se(s.earliest);
96
+ else {
97
+ const n = Ue(c, { weekStartsOn: e });
98
+ Y(c, n) || (c = se(It(Be(c, { weekStartsOn: e }), 1)));
99
+ }
100
+ if (s.latest)
101
+ D = j(s.latest);
102
+ else {
103
+ const n = Be(D, { weekStartsOn: e });
104
+ Y(D, n) || (D = j(St(Ue(D, { weekStartsOn: e }), 1)));
105
+ }
106
+ }
107
+ if ((s == null ? void 0 : s.type) === "monthly") {
108
+ if (s.earliest)
109
+ c = se(s.earliest);
110
+ else {
111
+ const n = Ne(c);
112
+ Y(c, n) || (c = Ne(Ze(c, 1)));
113
+ }
114
+ if (s.latest)
115
+ D = j(s.latest);
116
+ else {
117
+ const n = $e(D);
118
+ Y(D, n) || (D = $e(kt(D, 1)));
119
+ }
120
+ }
121
+ if ((s == null ? void 0 : s.type) === "quarterly") {
122
+ if (s.earliest)
123
+ c = me(s.earliest);
124
+ else {
125
+ const n = me(c);
126
+ Y(c, n) || (c = me(et(c, 1)));
127
+ }
128
+ if (s.latest)
129
+ D = j(s.latest);
130
+ else {
131
+ const n = Pe(D);
132
+ Y(D, n) || (D = Pe(jt(D, 1)));
133
+ }
134
+ }
135
+ return { min: c, max: D };
136
+ } }), Gt = () => {
137
+ const e = Te({
138
+ daily: null,
139
+ weekly: null,
140
+ monthly: null,
141
+ quarterly: null
142
+ });
143
+ return {
144
+ savedRanges: e,
145
+ saveRange: (i, s) => {
146
+ e[i] = s;
147
+ },
148
+ resetSavedRanges: () => {
149
+ e.daily = null, e.weekly = null, e.monthly = null, e.quarterly = null;
150
+ }
151
+ };
152
+ };
153
+ var T = /* @__PURE__ */ ((e) => (e.CUSTOM_RANGE = "custom-range", e.INPUT = "input", e.ERROR = "error", e.FORM_DATE = "form-date", e.START_DATE_SELECTED = "start-date-selected", e))(T || {});
154
+ const Ht = /[\d]/, Wt = /^\d{2}$/, zt = /^\d{2}:\d{2}$/, Jt = (e) => {
155
+ const { selectionStart: a } = e.target, l = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], i = Ht.test(e.key) || l.includes(e.key), s = [1, 2, 4, 5].includes(a) && e.key === ":";
156
+ !i && !s && e.preventDefault();
157
+ }, je = (e) => {
158
+ if (!e)
159
+ return e;
160
+ let a = e;
161
+ if (a.length === 1 && parseInt(e, 10) > 2)
162
+ return `0${a}:`;
163
+ const [l, i] = a.slice(-2);
164
+ return [2, 5].includes(a.length) && i === ":" && (a = `${a.slice(0, a.length - 2)}0${l}`), (Wt.test(a) || zt.test(a)) && (a += ":"), a;
165
+ }, Qe = {
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
+ }, Ge = 300, He = "customRange", Xt = ze({
197
+ i18n: { messages: Qe },
198
+ name: "date-range-picker-calendar",
199
+ components: {
200
+ BentoDropdown: Ct,
201
+ BentoInputField: Mt,
202
+ BentoSegmentedControl: At,
203
+ BentoTypography: Xe,
204
+ Calendar: J
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: J.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: J.props.isDateDisabled,
234
+ /**
235
+ * Set a maximum number of dates to be selectable by the range.
236
+ */
237
+ maxRange: J.props.maxRange,
238
+ /**
239
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
240
+ */
241
+ min: J.props.min,
242
+ /**
243
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
244
+ */
245
+ max: J.props.max,
246
+ /**
247
+ * Number of months rendered on pane
248
+ */
249
+ numberOfMonths: J.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: J.props.variant
273
+ },
274
+ emits: [
275
+ T.CUSTOM_RANGE,
276
+ T.INPUT,
277
+ T.ERROR,
278
+ T.FORM_DATE,
279
+ T.START_DATE_SELECTED
280
+ ],
281
+ setup(e, { emit: a, slots: l }) {
282
+ var Oe, Me, Ce, Ae;
283
+ const { locale: i, t: s } = he({ messages: Qe }), c = Ee(), D = b(() => e.variant === "month" ? "monthly" : "daily"), n = Te({
284
+ startDate: (Oe = e.value) == null ? void 0 : Oe.startDate,
285
+ endDate: (Me = e.value) == null ? void 0 : Me.endDate,
286
+ range: (Ce = e.value) == null ? void 0 : Ce.range,
287
+ ...e.granularities ? {
288
+ granularity: ((Ae = e.value) == null ? void 0 : Ae.granularity) || D.value
289
+ } : {}
290
+ });
291
+ function p(t) {
292
+ return t ? new Date(
293
+ t.getUTCFullYear(),
294
+ t.getUTCMonth(),
295
+ t.getUTCDate(),
296
+ t.getUTCHours(),
297
+ t.getUTCMinutes(),
298
+ t.getUTCSeconds()
299
+ ) : null;
300
+ }
301
+ const v = b(() => {
302
+ var t, o;
303
+ return (
304
+ // eslint-disable-next-line consistent-return
305
+ ((o = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: u, data: m }) => {
306
+ if (!m.endDate)
307
+ return u === n.range || qt(
308
+ p(m.startDate),
309
+ p(n.startDate)
310
+ ) && Lt(n.endDate);
311
+ if (e.allowTimeInput)
312
+ return Ke(
313
+ p(m.startDate),
314
+ p(n.startDate)
315
+ ) && Ke(p(m.endDate), p(n.endDate));
316
+ if (m.endDate)
317
+ return Y(m.startDate, n.startDate) && Y(m.endDate, n.endDate);
318
+ })) == null ? void 0 : o.value) ?? He
319
+ );
320
+ }), Q = b(() => ({
321
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
322
+ })), Z = b(() => [
323
+ { label: s("customRange"), value: He },
324
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
325
+ ]), g = b(
326
+ () => {
327
+ var t;
328
+ return ((t = e.granularities) == null ? void 0 : t.find(({ type: o }) => o === n.granularity)) || null;
329
+ }
330
+ ), G = b(
331
+ () => {
332
+ var t;
333
+ return ((t = e.granularities) == null ? void 0 : t.map(({ type: o, disabled: u }) => ({
334
+ label: s(o),
335
+ value: o,
336
+ disabled: u
337
+ }))) ?? [];
338
+ }
339
+ ), { getGranularCalendarLimits: I } = Qt(e), y = b(
340
+ () => e.granularities ? I(g.value) : { min: se(e.min), max: j(e.max) }
341
+ ), {
342
+ adjustDateForQuarterly: h,
343
+ adjustDateForMonthly: x,
344
+ adjustDateForWeekly: le,
345
+ adjustStartDateInputForWeekly: _,
346
+ adjustEndDateInputForWeekly: f,
347
+ adjustStartDateInputForMonthly: U,
348
+ adjustEndDateInputForMonthly: B,
349
+ adjustStartDateInputForQuarterly: ee,
350
+ adjustEndDateInputForQuarterly: be
351
+ } = Et(e.firstDayOfWeek), { savedRanges: N, saveRange: fe, resetSavedRanges: P } = Gt(), R = (t) => t ? ce(t, E.NUMERIC_DATE_YEAR_FIRST, {
352
+ locale: c[i.value.substring(0, 2)] || c.enUS
353
+ }) : "", H = (t) => t ? ce(t, E.HOUR_MINUTE_SECONDS, {
354
+ locale: c[i.value.substring(0, 2)] || c.enUS
355
+ }) : "", W = A(!1), z = A(!1), te = A(!1), ae = A(!1), r = Te({
356
+ startDate: e.dateFormData.startDate,
357
+ endDate: e.dateFormData.endDate,
358
+ startTime: e.dateFormData.startTime,
359
+ endTime: e.dateFormData.endTime
360
+ }), pe = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), w = (t, o) => {
361
+ if (!o || !pe(o) || e.variant === "month")
362
+ return t;
363
+ let u = new Date(t);
364
+ const [m, S, ne] = o.split(":");
365
+ return u = Yt(u, parseInt(m, 10)), u = Vt(u, parseInt(S, 10)), u = Kt(u, parseInt(ne, 10)), u;
366
+ }, we = (t) => {
367
+ r.startTime = H(se(t.startDate)), r.endTime = H(j(t.endDate)), n.startDate = w(t.startDate, r.startTime), n.endDate = w(t.endDate, r.endTime), n.range = null, e.granularities && P(), a(T.INPUT, {
368
+ ...n,
369
+ range: v.value
370
+ });
371
+ }, d = (t) => {
372
+ const o = (m) => e.min && m <= e.min || e.max && m >= e.max ? !1 : e.isDateDisabled ? !e.isDateDisabled(m) : !0;
373
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && o(new Date(t));
374
+ };
375
+ Je(() => {
376
+ e.dateFormData.startDate && !d(e.dateFormData.startDate) ? W.value = !0 : (W.value = !1, te.value = !1), e.dateFormData.endDate && !d(e.dateFormData.endDate) ? z.value = !0 : (z.value = !1, ae.value = !1);
377
+ });
378
+ const C = (t) => {
379
+ var o;
380
+ r.startDate = R(t), r.startTime ? te.value && (r.startTime = (o = e.dateFormData) == null ? void 0 : o.startTime) : r.startTime = H(t), W.value = !1, te.value = !1, a(T.START_DATE_SELECTED, t);
381
+ }, ie = (t) => {
382
+ var o;
383
+ r.endDate = R(t), r.endTime ? ae.value && (r.endTime = (o = e.dateFormData) == null ? void 0 : o.endTime) : r.endTime = H(j(t)), z.value = !1, ae.value = !1;
384
+ }, ue = (t) => {
385
+ const o = e.value[t];
386
+ if (o)
387
+ return o;
388
+ if (e.dateFormData[t] && d(e.dateFormData[t]))
389
+ return new Date(e.dateFormData[t]);
390
+ }, tt = ge((t) => {
391
+ var o;
392
+ if (d(t)) {
393
+ let u = t;
394
+ switch (W.value = !1, (o = g.value) == null ? void 0 : o.type) {
395
+ case "weekly":
396
+ u = _(
397
+ t,
398
+ R,
399
+ y.value.min,
400
+ y.value.max
401
+ ), r.startDate = u;
402
+ break;
403
+ case "monthly":
404
+ u = U(
405
+ t,
406
+ R,
407
+ y.value.min,
408
+ y.value.max
409
+ ), r.startDate = u;
410
+ break;
411
+ case "quarterly":
412
+ u = ee(
413
+ t,
414
+ R,
415
+ y.value.min,
416
+ y.value.max
417
+ ), r.startDate = u;
418
+ break;
419
+ }
420
+ const m = oe(u);
421
+ n.startDate = w(m, r.startTime), n.endDate = w(
422
+ oe(r.endDate),
423
+ r.endTime
424
+ ), d(r.endDate) && (n.endDate = w(
425
+ oe(r.endDate),
426
+ r.endTime
427
+ ));
428
+ const S = ue("endDate");
429
+ n.range = null, a(T.FORM_DATE, {
430
+ startDate: m,
431
+ endDate: S
432
+ }), a(T.INPUT, {
433
+ ...n,
434
+ range: v.value
435
+ });
436
+ } else
437
+ W.value = !0, a(T.ERROR, { ...r });
438
+ }, Ge), at = (t) => {
439
+ r.startDate = qe(t), tt(r.startDate);
440
+ }, nt = ge((t) => {
441
+ var o;
442
+ if (d(t)) {
443
+ let u = t;
444
+ switch (z.value = !1, (o = g.value) == null ? void 0 : o.type) {
445
+ case "weekly":
446
+ u = f(
447
+ t,
448
+ R,
449
+ y.value.min,
450
+ y.value.max
451
+ ), r.endDate = u;
452
+ break;
453
+ case "monthly":
454
+ u = B(
455
+ t,
456
+ R,
457
+ y.value.min,
458
+ y.value.max
459
+ ), r.endDate = u;
460
+ break;
461
+ case "quarterly":
462
+ u = be(
463
+ t,
464
+ R,
465
+ y.value.min,
466
+ y.value.max
467
+ ), r.endDate = u;
468
+ break;
469
+ }
470
+ const m = oe(u);
471
+ n.endDate = w(m, r.endTime), d(r.startDate) && (n.startDate = w(
472
+ oe(r.startDate),
473
+ r.startTime
474
+ ));
475
+ const S = ue("startDate");
476
+ n.range = null, a(T.FORM_DATE, {
477
+ startDate: S,
478
+ endDate: m
479
+ }), a(T.INPUT, {
480
+ ...n,
481
+ range: v.value
482
+ });
483
+ } else
484
+ z.value = !0, a(T.ERROR, { ...r });
485
+ }, Ge), rt = (t) => {
486
+ r.endDate = qe(t), nt(r.endDate);
487
+ }, ot = (t) => {
488
+ ht(t);
489
+ }, st = ge((t) => {
490
+ if (pe(t)) {
491
+ te.value = !1, n.startDate = w(n.startDate, t);
492
+ const o = ue("endDate");
493
+ a(T.FORM_DATE, {
494
+ startDate: new Date(n.startDate),
495
+ endDate: o,
496
+ startTime: t,
497
+ endTime: e.dateFormData.endTime
498
+ }), a(T.INPUT, {
499
+ ...n,
500
+ range: v.value
501
+ });
502
+ } else
503
+ te.value = !0, a(T.ERROR, { ...r });
504
+ }), lt = ge((t) => {
505
+ if (pe(t)) {
506
+ ae.value = !1, n.endDate = w(n.endDate, t);
507
+ const o = ue("startDate");
508
+ n.startDate = w(new Date(o), e.dateFormData.startTime), a(T.FORM_DATE, {
509
+ startDate: w(new Date(o), e.dateFormData.startTime),
510
+ endDate: new Date(n.endDate),
511
+ startTime: e.dateFormData.startTime,
512
+ endTime: t
513
+ }), a(T.INPUT, {
514
+ ...n,
515
+ range: v.value
516
+ });
517
+ } else
518
+ ae.value = !0, a(T.ERROR, { ...r });
519
+ }), it = (t) => {
520
+ r.startTime = je(t), st(r.startTime);
521
+ }, ut = (t) => {
522
+ r.endTime = je(t), lt(r.endTime);
523
+ }, dt = (t) => {
524
+ Jt(t);
525
+ }, ve = (t, o, u, m) => {
526
+ n.startDate = t, n.endDate = o, u && (n.granularity = u), m && (n.range = m);
527
+ }, mt = (t) => {
528
+ var u;
529
+ const o = (u = e.quickSelectRanges) == null ? void 0 : u.find(({ value: m }) => m === t);
530
+ if (o) {
531
+ P();
532
+ const m = o.data, S = m.endDate || (m.isRelativeToNow ? new Date(Date.now()) : j(new Date(Date.now()))), ne = m.isRelativeToNow && m.timeDifference ? new Date(S.getTime() - m.timeDifference) : m.startDate;
533
+ r.endDate = R(S), r.startDate = R(ne), ve(ne, S, null, t), e.granularities && (n.granularity = m.granularity || D.value), r.startTime = H(ne), r.endTime = H(S), n.startDate = ne, n.endDate = S, a(T.CUSTOM_RANGE, {
534
+ ...o.data,
535
+ startDate: ne,
536
+ endDate: S,
537
+ range: o.value
538
+ });
539
+ }
540
+ }, ct = {
541
+ weekly: le,
542
+ monthly: x,
543
+ quarterly: h
544
+ }, Dt = (t) => {
545
+ const o = n.granularity;
546
+ if (n.granularity = t, o && fe(o, structuredClone(Ie(n))), n.startDate && n.endDate) {
547
+ switch (t) {
548
+ case "quarterly":
549
+ case "monthly":
550
+ case "weekly": {
551
+ if (N[t]) {
552
+ ve(N[t].startDate, N[t].endDate, t);
553
+ break;
554
+ }
555
+ const { startDate: u, endDate: m } = ct[t](
556
+ n.startDate,
557
+ n.endDate,
558
+ y.value.min,
559
+ y.value.max
560
+ );
561
+ ve(u, m, t);
562
+ break;
563
+ }
564
+ case "daily":
565
+ N.daily && ve(N.daily.startDate, N.daily.endDate, t);
566
+ break;
567
+ }
568
+ r.startDate = R(n.startDate), r.endDate = R(n.endDate), a(T.INPUT, {
569
+ ...n,
570
+ range: v.value
571
+ });
572
+ }
573
+ };
574
+ return {
575
+ // Values
576
+ internalRangeDate: n,
577
+ dateTextInput: r,
578
+ endDateError: z,
579
+ endTimeError: ae,
580
+ granularityItems: G,
581
+ selectedGranularity: g,
582
+ computedMinMax: y,
583
+ selectedRangeSelectorValue: v,
584
+ startDateError: W,
585
+ startTimeError: te,
586
+ quickSelectRangeDefaultItems: Z,
587
+ formInputWrapperConditionalClasses: Q,
588
+ // Methods
589
+ hasSlot: Ft(l),
590
+ t: s,
591
+ // Events
592
+ onDateInput: we,
593
+ onDateInputKeyDown: ot,
594
+ onEndDateInput: rt,
595
+ onEndDateSelected: ie,
596
+ onEndTimeInput: ut,
597
+ onGranularityInput: Dt,
598
+ onRangeSelectorInput: mt,
599
+ onStartDateInput: at,
600
+ onStartDateSelected: C,
601
+ onStartTimeInput: it,
602
+ onTimeInputKeyDown: dt
603
+ };
604
+ }
605
+ }), Zt = { class: "b-date-range-picker-calendar" }, xt = { class: "b-date-range-picker-calendar__form-container" }, ea = { class: "b-date-range-picker-calendar__form" }, ta = { key: 0 }, aa = { class: "b-date-range-picker-calendar__calendars-container" };
606
+ function na(e, a, l, i, s, c) {
607
+ const D = k("bento-dropdown"), n = k("bento-segmented-control"), p = k("bento-typography"), v = k("bento-input-field"), Q = k("calendar");
608
+ return O(), Se("div", Zt, [
609
+ $("div", xt, [
610
+ $("div", ea, [
611
+ e.hasSlot("title") ? Fe(e.$slots, "title", { key: 0 }, void 0, !0) : F("", !0),
612
+ e.quickSelectRanges ? (O(), V(D, {
613
+ key: 1,
614
+ "aria-label": e.t("customRange"),
615
+ items: e.quickSelectRangeDefaultItems,
616
+ value: e.selectedRangeSelectorValue,
617
+ onInput: e.onRangeSelectorInput
618
+ }, null, 8, ["aria-label", "items", "value", "onInput"])) : F("", !0),
619
+ e.granularities ? (O(), V(n, {
620
+ key: 2,
621
+ items: e.granularityItems,
622
+ "model-value": e.internalRangeDate.granularity,
623
+ "full-width": "",
624
+ "onUpdate:modelValue": e.onGranularityInput
625
+ }, null, 8, ["items", "model-value", "onUpdate:modelValue"])) : F("", !0),
626
+ $("div", null, [
627
+ K(p, {
628
+ stronger: "",
629
+ el: "span",
630
+ class: "b-date-range-picker-calendar__label"
631
+ }, {
632
+ default: L(() => a[0] || (a[0] = [
633
+ re(" From ")
634
+ ])),
635
+ _: 1
636
+ }),
637
+ $("div", {
638
+ class: ke(e.formInputWrapperConditionalClasses)
639
+ }, [
640
+ K(v, {
641
+ "aria-label": e.t("dateFrom"),
642
+ value: e.dateTextInput.startDate,
643
+ error: e.startDateError,
644
+ class: "b-date-range-picker-calendar__form-input",
645
+ onInput: e.onStartDateInput,
646
+ onKeydown: e.onDateInputKeyDown
647
+ }, {
648
+ description: L(() => a[1] || (a[1] = [
649
+ re("YYYY-MM-DD")
650
+ ])),
651
+ _: 1
652
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
653
+ e.allowTimeInput ? (O(), V(v, {
654
+ key: 0,
655
+ "aria-label": e.t("timeFrom"),
656
+ value: e.dateTextInput.startTime,
657
+ error: e.startTimeError,
658
+ class: "b-date-range-picker-calendar__form-input",
659
+ onInput: e.onStartTimeInput,
660
+ onKeydown: e.onTimeInputKeyDown
661
+ }, {
662
+ description: L(() => a[2] || (a[2] = [
663
+ re("HH:MM:SS")
664
+ ])),
665
+ _: 1
666
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : F("", !0)
667
+ ], 2)
668
+ ]),
669
+ $("div", null, [
670
+ K(p, {
671
+ stronger: "",
672
+ el: "span",
673
+ class: "b-date-range-picker-calendar__label"
674
+ }, {
675
+ default: L(() => a[3] || (a[3] = [
676
+ re(" To ")
677
+ ])),
678
+ _: 1
679
+ }),
680
+ $("div", {
681
+ class: ke(e.formInputWrapperConditionalClasses)
682
+ }, [
683
+ K(v, {
684
+ class: "b-date-range-picker-calendar__form-input",
685
+ "aria-label": e.t("dateTo"),
686
+ value: e.dateTextInput.endDate,
687
+ error: e.endDateError,
688
+ onInput: e.onEndDateInput,
689
+ onKeydown: e.onDateInputKeyDown
690
+ }, {
691
+ description: L(() => a[4] || (a[4] = [
692
+ re("YYYY-MM-DD")
693
+ ])),
694
+ _: 1
695
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"]),
696
+ e.allowTimeInput ? (O(), V(v, {
697
+ key: 0,
698
+ "aria-label": e.t("timeTo"),
699
+ value: e.dateTextInput.endTime,
700
+ error: e.endTimeError,
701
+ class: "b-date-range-picker-calendar__form-input",
702
+ onInput: e.onEndTimeInput,
703
+ onKeydown: e.onTimeInputKeyDown
704
+ }, {
705
+ description: L(() => a[5] || (a[5] = [
706
+ re("HH:MM:SS")
707
+ ])),
708
+ _: 1
709
+ }, 8, ["aria-label", "value", "error", "onInput", "onKeydown"])) : F("", !0)
710
+ ], 2)
711
+ ])
712
+ ]),
713
+ e.hasSlot("actions") ? (O(), Se("div", ta, [
714
+ Fe(e.$slots, "actions", {}, void 0, !0)
715
+ ])) : F("", !0)
716
+ ]),
717
+ $("div", aa, [
718
+ K(Q, {
719
+ value: e.internalRangeDate,
720
+ "first-day-of-week": e.firstDayOfWeek,
721
+ "is-date-disabled": e.isDateDisabled,
722
+ "max-range": e.maxRange,
723
+ min: e.computedMinMax.min,
724
+ max: e.computedMinMax.max,
725
+ "number-of-months": e.numberOfMonths,
726
+ "show-end-date-on-open": e.showEndDateOnOpen,
727
+ granularity: e.selectedGranularity,
728
+ variant: e.variant,
729
+ "is-range": "",
730
+ onInput: e.onDateInput,
731
+ onStartDateSelected: e.onStartDateSelected,
732
+ onEndDateSelected: e.onEndDateSelected
733
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant", "onInput", "onStartDateSelected", "onEndDateSelected"])
734
+ ])
735
+ ]);
736
+ }
737
+ const q = /* @__PURE__ */ xe(Xt, [["render", na], ["__scopeId", "data-v-38e91c34"]]), ra = ({
738
+ datePickerValue: e,
739
+ isDateIncorrect: a,
740
+ quickSelectRanges: l,
741
+ isMonthVariant: i
742
+ }) => {
743
+ var g, G, I, y;
744
+ const { locale: s, t: c } = he(), D = Ee(), n = (h) => !!h && !isNaN(h.getTime()), p = (h, x) => n(h) ? ce(h, x, {
745
+ locale: D[s.value.substring(0, 2)] || D.enUS
746
+ }) : void 0, v = Te({
747
+ startDate: p((g = e.value) == null ? void 0 : g.startDate, E.NUMERIC_DATE_YEAR_FIRST),
748
+ endDate: p((G = e.value) == null ? void 0 : G.endDate, E.NUMERIC_DATE_YEAR_FIRST),
749
+ startTime: p((I = e.value) == null ? void 0 : I.startDate, E.HOUR_MINUTE_SECONDS),
750
+ endTime: p((y = e.value) == null ? void 0 : y.endDate, E.HOUR_MINUTE_SECONDS)
751
+ });
752
+ return {
753
+ // Values
754
+ dateDisplayValue: b(() => {
755
+ var _;
756
+ if (a.value)
757
+ return `${v.startDate || ""} - ${v.endDate || ""}`;
758
+ if (!e.value || !e.value.startDate && !e.value.endDate)
759
+ return c("selectDateRange");
760
+ if ((_ = l.value) != null && _.length) {
761
+ const f = l.value.find(({ value: U }) => {
762
+ var B;
763
+ return U === ((B = e.value) == null ? void 0 : B.range);
764
+ });
765
+ if (f)
766
+ return f.label;
767
+ }
768
+ if (e.value.granularity === "quarterly") {
769
+ const { startDate: f, endDate: U } = e.value, B = c("quarter", { quarter: Le(f), year: Ye(f) });
770
+ if ($t(f, U))
771
+ return B;
772
+ const ee = c("quarter", { quarter: Le(U), year: Ye(U) });
773
+ return `${B} - ${ee}`;
774
+ }
775
+ const { startDate: h, endDate: x } = v, le = i != null && i.value ? E.LONG_MONTH_YEAR : E.FULL_DATE_MONTH_FIRST;
776
+ return `${p(oe(h), le)} - ${p(
777
+ oe(x),
778
+ le
779
+ )}`;
780
+ }),
781
+ textInputDisplayValue: v,
782
+ // Methods
783
+ formatTextInputDisplayValue: () => ""
784
+ };
785
+ };
786
+ var ye = /* @__PURE__ */ ((e) => (e.INPUT = "input", e))(ye || {});
787
+ const We = {
788
+ "en-US": {
789
+ apply: "Apply",
790
+ cancel: "Cancel",
791
+ dateRangePicker: "Date range picker {name}",
792
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
793
+ quarter: "Q{quarter} {year}",
794
+ selectDate: "Select a date",
795
+ selectDateRange: "Select a date range",
796
+ selectedDateIsNotAvailable: "Selected date is not available"
797
+ },
798
+ "ja-JP": {
799
+ apply: "適用",
800
+ cancel: "キャンセル",
801
+ selectDate: "日付を選択"
802
+ },
803
+ "pt-BR": {
804
+ apply: "Aplicar",
805
+ cancel: "Cancelar",
806
+ selectDate: "Selecione uma data"
807
+ }
808
+ }, oa = ze({
809
+ i18n: { messages: We },
810
+ name: "bento-date-range-picker",
811
+ components: {
812
+ BentoButtonActions: Nt,
813
+ BentoDivider: Tt,
814
+ BentoTypography: Xe,
815
+ BentoPopover: bt,
816
+ DateRangePickerCalendar: q,
817
+ DropdownInputDefault: _t,
818
+ ErrorMessage: Bt,
819
+ FieldLabel: Ut
820
+ },
821
+ directives: { BentoClickOutsideDirective: Ot },
822
+ props: {
823
+ /**
824
+ * Allows user to enter time values in the form
825
+ */
826
+ allowTimeInput: { type: Boolean, default: !1 },
827
+ /**
828
+ * Descriptive supporting text visbile underneath the dropdown.
829
+ */
830
+ description: { type: String, default: void 0 },
831
+ /**
832
+ * Disables dropdown functionality.
833
+ */
834
+ disabled: { type: Boolean, default: !1 },
835
+ /**
836
+ * Displays component in an error state with an error message
837
+ */
838
+ errorMessage: { type: String, default: null },
839
+ /**
840
+ * Allows user to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
841
+ */
842
+ firstDayOfWeek: q.props.firstDayOfWeek,
843
+ /**
844
+ * A list of available granularities.
845
+ * If present, the date picker will display a segmented control to change granularity.
846
+ */
847
+ granularities: q.props.granularities,
848
+ /**
849
+ * Indicate if a date should be disabled or not
850
+ */
851
+ isDateDisabled: q.props.isDateDisabled,
852
+ /**
853
+ * Text that is displayed as a label above the element.
854
+ */
855
+ label: { type: String, default: void 0 },
856
+ /**
857
+ * Upon opening date range picker, end date's month will be pre-selected.
858
+ */
859
+ showEndDateOnOpen: { type: Boolean, default: !1 },
860
+ /**
861
+ * Highlights the dropdown is optional.
862
+ */
863
+ optional: { type: Boolean, default: !1 },
864
+ /**
865
+ * The Boolean readonly property, when present, makes the element not mutable, meaning the user can not edit the date range picker.
866
+ */
867
+ readonly: { type: Boolean, default: !1 },
868
+ /**
869
+ * Highlights the dropdown is required.
870
+ */
871
+ required: { type: Boolean, default: !1 },
872
+ /**
873
+ * Adds a info icon next to the label to display the passed tooltip message.
874
+ */
875
+ tooltipText: { type: String, default: null },
876
+ /**
877
+ * Enables the range selector.
878
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
879
+ * `label` - label of custom range item.
880
+ * `value` - a unique key of the custom range item.
881
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
882
+ */
883
+ quickSelectRanges: {
884
+ type: Array,
885
+ default: void 0
886
+ },
887
+ /**
888
+ * Set a maximum number of dates to be selectable by the range.
889
+ */
890
+ maxRange: q.props.maxRange,
891
+ /**
892
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
893
+ */
894
+ min: q.props.min,
895
+ /**
896
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
897
+ */
898
+ max: q.props.max,
899
+ /**
900
+ * Number of months rendered on pane
901
+ */
902
+ numberOfMonths: q.props.numberOfMonths,
903
+ /**
904
+ * Selected date
905
+ */
906
+ value: q.props.value,
907
+ /**
908
+ * The type of calendar to display. Defaults to showing days.
909
+ */
910
+ variant: {
911
+ type: String,
912
+ default: void 0
913
+ // Default will be set by @/internal/calendar
914
+ },
915
+ /**
916
+ * Enables the date picker selection to persist until it is explicitly applied.
917
+ * Displays a set of buttons: Apply and Cancel.
918
+ *
919
+ * @deprecated This will be the default behaviour in v2.0.0.
920
+ */
921
+ hasActions: { type: Boolean, default: !1 }
922
+ },
923
+ emits: [ye.INPUT],
924
+ setup(e, { emit: a }) {
925
+ const { locale: l, t: i } = he({ messages: We }), s = Ee(), c = de("bento-date-range-picker-container"), D = de("bento-date-range-picker-label"), n = de("bento-date-range-picker-description"), p = de("bento-date-range-picker-error"), v = de("bento-date-range-picker-date-error"), Q = b(
926
+ () => e.label || i("dateRangePicker", { name: c })
927
+ ), Z = b(() => (e == null ? void 0 : e.quickSelectRanges) && e.quickSelectRanges.map((d) => {
928
+ const C = d.data.endDate ? void 0 : new Date(Date.now()).getTime() - d.data.startDate.getTime();
929
+ return {
930
+ ...d,
931
+ data: {
932
+ ...d.data,
933
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
934
+ timeDifference: C
935
+ }
936
+ };
937
+ })), g = A(!1), G = A(null), I = A(!1), { isReadOnly: y } = wt(_e(e, "readonly"));
938
+ Re(
939
+ () => e.disabled,
940
+ () => {
941
+ e.disabled && I.value && (I.value = !1);
942
+ }
943
+ );
944
+ const h = b(() => e.hasActions ? !R.value && g.value : g.value), x = b(() => ({
945
+ "b-date-range-picker__description--error": !!e.errorMessage || h.value
946
+ })), le = b(() => e.variant === "month"), { dateDisplayValue: _, textInputDisplayValue: f } = ra({
947
+ datePickerValue: _e(e, "value"),
948
+ isDateIncorrect: g,
949
+ quickSelectRanges: Z,
950
+ isMonthVariant: le
951
+ }), U = b(
952
+ () => `${e.description ? n : ""} ${e.errorMessage ? p : ""} ${g.value ? v : ""}`.trim() || null
953
+ ), B = b(() => e.allowTimeInput && e.variant !== "month"), ee = () => {
954
+ I.value = !1;
955
+ }, be = () => {
956
+ I.value = !0;
957
+ }, N = A(_.value), fe = A(
958
+ // textInputDisplayValue is a reactive object
959
+ structuredClone(Ie(f))
960
+ ), P = A(e.value), R = A(!0), H = b(
961
+ () => e.hasActions ? fe.value : f
962
+ ), W = b(
963
+ () => e.hasActions ? N.value : _.value
964
+ );
965
+ Je(() => {
966
+ if (e.hasActions || Rt(
967
+ 'BentoDateRangePicker "hasActions" property',
968
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
969
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
970
+ "2.0.0"
971
+ ), e.granularities && e.variant !== "month" && e.granularities.find(({ type: d }) => d === "quarterly"))
972
+ throw new Error(
973
+ 'Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"'
974
+ );
975
+ }), Re(
976
+ () => e.value,
977
+ () => {
978
+ N.value = _.value, fe.value = structuredClone(Ie(f));
979
+ }
980
+ );
981
+ const z = b(() => [
982
+ {
983
+ title: i("apply"),
984
+ event: () => {
985
+ a(ye.INPUT, P.value), ee(), R.value = !0;
986
+ },
987
+ disabled: R.value
988
+ },
989
+ {
990
+ title: i("cancel"),
991
+ event: ee
992
+ }
993
+ ]);
994
+ return Re(P, (d) => {
995
+ if (e.hasActions) {
996
+ R.value = g.value;
997
+ return;
998
+ }
999
+ a(ye.INPUT, d);
1000
+ }), {
1001
+ // Refs
1002
+ inputContainerRef: G,
1003
+ // Values,
1004
+ adjustedQuickSelectRanges: Z,
1005
+ dateDisplayValue: _,
1006
+ datePickerContainerId: c,
1007
+ descriptionConditionalClasses: x,
1008
+ displayedTextInputValue: H,
1009
+ displayedDateValue: W,
1010
+ isDateIncorrect: g,
1011
+ isDateRangePickerOpen: I,
1012
+ isReadOnly: y,
1013
+ labelId: D,
1014
+ descriptionId: n,
1015
+ dateErrorId: v,
1016
+ errorId: p,
1017
+ popoverAriaLabel: Q,
1018
+ shouldDisplayError: h,
1019
+ ariaDescribedBy: U,
1020
+ textInputDisplayValue: f,
1021
+ rangePickerButtonActions: z,
1022
+ BentoButtonActionsLayout: Pt,
1023
+ withTimeInput: B,
1024
+ // Events
1025
+ closeDateRangePicker: ee,
1026
+ clearDateRangePickerValue: async () => {
1027
+ g.value && (g.value = !1), P.value = null;
1028
+ },
1029
+ openDateRangePicker: be,
1030
+ onRangeSelectorInput: (d) => {
1031
+ if (d) {
1032
+ const C = (ie) => ce(ie, E.NUMERIC_DATE_YEAR_FIRST, {
1033
+ locale: s[l.value.substring(0, 2)] || s.enUS
1034
+ });
1035
+ f.startDate = C(d.startDate), f.endDate = C(d.endDate), P.value = d;
1036
+ }
1037
+ },
1038
+ onEnterPressedOverInput: () => {
1039
+ if (!I.value) {
1040
+ I.value = !0;
1041
+ return;
1042
+ }
1043
+ g.value || (I.value = !1);
1044
+ },
1045
+ onDateRangePickerInput: (d) => {
1046
+ g.value = !1;
1047
+ const C = (ie, ue) => ie ? ce(ie, ue, {
1048
+ locale: s[l.value.substring(0, 2)] || s.enUS
1049
+ }) : void 0;
1050
+ f.startDate = C(
1051
+ d.startDate,
1052
+ E.NUMERIC_DATE_YEAR_FIRST
1053
+ ), f.endDate = C(d.endDate, E.NUMERIC_DATE_YEAR_FIRST), f.startTime = C(d.startDate, E.HOUR_MINUTE_SECONDS), f.endTime = C(d.endDate, E.HOUR_MINUTE_SECONDS), P.value = d;
1054
+ },
1055
+ onDateRangePickerError: (d) => {
1056
+ g.value = !0, f.startDate = d.startDate, f.endDate = d.endDate, P.value = { startDate: null, endDate: null };
1057
+ },
1058
+ onDateRangePickerFormDateInputUpdate: (d) => {
1059
+ g.value = !1, d.startTime && (f.startTime = d.startTime), d.endTime && (f.endTime = d.endTime);
1060
+ },
1061
+ // Translations
1062
+ t: i
1063
+ };
1064
+ }
1065
+ }), sa = { class: "b-date-range-picker" }, la = { class: "b-date-range-picker__footer" };
1066
+ function ia(e, a, l, i, s, c) {
1067
+ const D = k("field-label"), n = k("dropdown-input-default"), p = k("error-message"), v = k("bento-typography"), Q = k("bento-divider"), Z = k("bento-button-actions"), g = k("date-range-picker-calendar"), G = k("bento-popover"), I = ft("bento-click-outside-directive");
1068
+ return pt((O(), Se("div", sa, [
1069
+ e.label ? (O(), V(D, {
1070
+ key: 0,
1071
+ id: e.labelId,
1072
+ label: e.label,
1073
+ "tooltip-text": e.tooltipText,
1074
+ optional: e.optional,
1075
+ required: e.required
1076
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : F("", !0),
1077
+ $("div", {
1078
+ onKeydown: a[0] || (a[0] = vt((...y) => e.onEnterPressedOverInput && e.onEnterPressedOverInput(...y), ["enter"]))
1079
+ }, [
1080
+ K(n, {
1081
+ ref: "inputContainerRef",
1082
+ "always-combobox-is-input": "",
1083
+ ariaControls: e.datePickerContainerId,
1084
+ ariaExpanded: e.isDateRangePickerOpen,
1085
+ "aria-labelledby": e.label ? e.labelId : null,
1086
+ "aria-describedby": e.ariaDescribedBy,
1087
+ disabled: e.disabled,
1088
+ "is-invalid": !!e.errorMessage || e.shouldDisplayError,
1089
+ open: e.isDateRangePickerOpen,
1090
+ "display-value": e.displayedDateValue,
1091
+ readonly: e.isReadOnly,
1092
+ onOpen: e.openDateRangePicker,
1093
+ onClear: e.clearDateRangePickerValue,
1094
+ onClose: e.closeDateRangePicker
1095
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly", "onOpen", "onClear", "onClose"])
1096
+ ], 32),
1097
+ e.shouldDisplayError ? (O(), V(p, {
1098
+ key: 1,
1099
+ id: e.dateErrorId,
1100
+ "error-message": e.t("provideDateInAFormat"),
1101
+ class: "b-date-range-picker__error-message"
1102
+ }, null, 8, ["id", "error-message"])) : F("", !0),
1103
+ e.errorMessage ? (O(), V(p, {
1104
+ key: 2,
1105
+ id: e.errorId,
1106
+ "error-message": e.errorMessage,
1107
+ class: "b-date-range-picker__error-message"
1108
+ }, null, 8, ["id", "error-message"])) : F("", !0),
1109
+ e.description ? (O(), V(v, {
1110
+ key: 3,
1111
+ id: e.descriptionId,
1112
+ class: ke(["b-date-range-picker__description", e.descriptionConditionalClasses]),
1113
+ el: "span"
1114
+ }, {
1115
+ default: L(() => [
1116
+ re(gt(e.description), 1)
1117
+ ]),
1118
+ _: 1
1119
+ }, 8, ["id", "class"])) : F("", !0),
1120
+ e.inputContainerRef ? (O(), V(G, {
1121
+ key: 4,
1122
+ id: e.datePickerContainerId,
1123
+ class: "b-date-range-picker__container",
1124
+ open: e.isDateRangePickerOpen,
1125
+ "target-element": e.inputContainerRef,
1126
+ "disable-focus-trap": !0,
1127
+ "aria-label": e.popoverAriaLabel,
1128
+ position: "bottom-start",
1129
+ "without-space": "",
1130
+ "fit-content": ""
1131
+ }, {
1132
+ default: L(() => [
1133
+ K(g, {
1134
+ "allow-time-input": e.withTimeInput,
1135
+ "quick-select-ranges": e.adjustedQuickSelectRanges,
1136
+ value: e.value,
1137
+ "first-day-of-week": e.firstDayOfWeek,
1138
+ granularities: e.granularities,
1139
+ "is-date-disabled": e.isDateDisabled,
1140
+ "max-range": e.maxRange,
1141
+ min: e.min,
1142
+ max: e.max,
1143
+ "number-of-months": e.numberOfMonths,
1144
+ "show-end-date-on-open": e.showEndDateOnOpen,
1145
+ "date-form-data": e.displayedTextInputValue,
1146
+ variant: e.variant,
1147
+ onCustomRange: e.onRangeSelectorInput,
1148
+ onInput: e.onDateRangePickerInput,
1149
+ onError: e.onDateRangePickerError,
1150
+ onFormDate: e.onDateRangePickerFormDateInputUpdate
1151
+ }, yt({ _: 2 }, [
1152
+ e.hasActions ? {
1153
+ name: "actions",
1154
+ fn: L(() => [
1155
+ K(Q),
1156
+ $("div", la, [
1157
+ K(Z, {
1158
+ actions: e.rangePickerButtonActions,
1159
+ layout: e.BentoButtonActionsLayout.SPACE_BETWEEN
1160
+ }, null, 8, ["actions", "layout"])
1161
+ ])
1162
+ ]),
1163
+ key: "0"
1164
+ } : void 0
1165
+ ]), 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", "onCustomRange", "onInput", "onError", "onFormDate"])
1166
+ ]),
1167
+ _: 1
1168
+ }, 8, ["id", "open", "target-element", "aria-label"])) : F("", !0)
1169
+ ])), [
1170
+ [I, e.closeDateRangePicker]
1171
+ ]);
1172
+ }
1173
+ const Fa = /* @__PURE__ */ xe(oa, [["render", ia], ["__scopeId", "data-v-b8cb27dc"]]);
1174
+ export {
1175
+ Fa as B,
1176
+ q as D,
1177
+ ye as a,
1178
+ Lt as b,
1179
+ qt as i
1180
+ };
1181
+ //# sourceMappingURL=date-range-picker.BYvj1y8T.js.map