@adyen/bento-vue3 1.81.0 → 1.82.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (579) hide show
  1. package/dist/@types/components.d.ts +196 -0
  2. package/dist/@types/index.d.ts +17825 -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/ai-button.css +1 -0
  13. package/dist/assets/alert.css +1 -0
  14. package/dist/assets/avatar.css +1 -0
  15. package/dist/assets/base-button.css +1 -0
  16. package/dist/assets/base-modal.css +1 -0
  17. package/dist/assets/button-actions-with-menu.css +1 -0
  18. package/dist/assets/button-actions.css +1 -0
  19. package/dist/assets/button.css +1 -0
  20. package/dist/assets/calendar.css +1 -0
  21. package/dist/assets/card.css +1 -0
  22. package/dist/assets/checkbox-group.css +1 -0
  23. package/dist/assets/checkbox-input.css +1 -0
  24. package/dist/assets/checkbox.css +1 -0
  25. package/dist/assets/chip.css +1 -0
  26. package/dist/assets/code-snippet.css +1 -0
  27. package/dist/assets/controls-group.css +1 -0
  28. package/dist/assets/copy.css +1 -0
  29. package/dist/assets/country.css +1 -0
  30. package/dist/assets/currency.css +1 -0
  31. package/dist/assets/dashboard-section.css +1 -0
  32. package/dist/assets/dashed-underline.css +1 -0
  33. package/dist/assets/data-grid-template.css +1 -0
  34. package/dist/assets/data-grid.css +1 -0
  35. package/dist/assets/date-picker.css +1 -0
  36. package/dist/assets/date-range-picker.css +1 -0
  37. package/dist/assets/date.css +1 -0
  38. package/dist/assets/dialog-page.css +1 -0
  39. package/dist/assets/divider.css +1 -0
  40. package/dist/assets/dropdown-default-textbox.css +1 -0
  41. package/dist/assets/dropdown-tag.css +1 -0
  42. package/dist/assets/dropdown.css +1 -0
  43. package/dist/assets/empty-state.css +1 -0
  44. package/dist/assets/field-label.css +1 -0
  45. package/dist/assets/file-uploader.css +1 -0
  46. package/dist/assets/filter-bar.css +1 -0
  47. package/dist/assets/fixed-scroller.css +1 -0
  48. package/dist/assets/focus-trap.css +1 -0
  49. package/dist/assets/footer-actions.css +1 -0
  50. package/dist/assets/form-layout-title.css +1 -0
  51. package/dist/assets/grid-layout.css +1 -0
  52. package/dist/assets/header-meta.css +1 -0
  53. package/dist/assets/header-with-views.css +1 -0
  54. package/dist/assets/header.css +1 -0
  55. package/dist/assets/index.css +1 -0
  56. package/dist/assets/info-icon.css +1 -0
  57. package/dist/assets/input-field-password.css +1 -0
  58. package/dist/assets/input-field-phone-number.css +1 -0
  59. package/dist/assets/input-field.css +1 -0
  60. package/dist/assets/inspector.css +1 -0
  61. package/dist/assets/layout-row.css +1 -0
  62. package/dist/assets/link.css +1 -0
  63. package/dist/assets/listbox-option-tag.css +1 -0
  64. package/dist/assets/loading-indicator.css +1 -0
  65. package/dist/assets/main.css +1 -0
  66. package/dist/assets/modal-fullscreen.css +1 -0
  67. package/dist/assets/pagination.css +1 -0
  68. package/dist/assets/payment-method.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/tab.css +1 -0
  84. package/dist/assets/tag.css +1 -0
  85. package/dist/assets/textarea.css +1 -0
  86. package/dist/assets/timeline-item.css +1 -0
  87. package/dist/assets/toast.css +1 -0
  88. package/dist/assets/toggle.css +1 -0
  89. package/dist/assets/tooltip.css +1 -0
  90. package/dist/assets/tutorial.css +1 -0
  91. package/dist/assets/typography.css +1 -0
  92. package/dist/assets/use-cached-selected-values.css +1 -0
  93. package/dist/avatar.js +5 -0
  94. package/dist/avatar.js.map +1 -0
  95. package/dist/button.js +18 -0
  96. package/dist/button.js.map +1 -0
  97. package/dist/card.js +7 -0
  98. package/dist/card.js.map +1 -0
  99. package/dist/checkbox.js +11 -0
  100. package/dist/checkbox.js.map +1 -0
  101. package/dist/chip.js +5 -0
  102. package/dist/chip.js.map +1 -0
  103. package/dist/chunks/1-generic-use.CZhwP2Yc.js +5 -0
  104. package/dist/chunks/1-generic-use.CZhwP2Yc.js.map +1 -0
  105. package/dist/chunks/1-generic-use.R6x8PEGA.js +5 -0
  106. package/dist/chunks/1-generic-use.R6x8PEGA.js.map +1 -0
  107. package/dist/chunks/2-generic-use.CNKjB4B7.js +5 -0
  108. package/dist/chunks/2-generic-use.CNKjB4B7.js.map +1 -0
  109. package/dist/chunks/2-generic-use.w0fUhovx.js +5 -0
  110. package/dist/chunks/2-generic-use.w0fUhovx.js.map +1 -0
  111. package/dist/chunks/3-generic-use.BLEzR04g.js +5 -0
  112. package/dist/chunks/3-generic-use.BLEzR04g.js.map +1 -0
  113. package/dist/chunks/3-generic-use.D3NFHgI4.js +5 -0
  114. package/dist/chunks/3-generic-use.D3NFHgI4.js.map +1 -0
  115. package/dist/chunks/4-generic-use.CULEpvgj.js +5 -0
  116. package/dist/chunks/4-generic-use.CULEpvgj.js.map +1 -0
  117. package/dist/chunks/4-generic-use.D82y3n39.js +5 -0
  118. package/dist/chunks/4-generic-use.D82y3n39.js.map +1 -0
  119. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js +10 -0
  120. package/dist/chunks/_plugin-vue_export-helper.CHgC5LLL.js.map +1 -0
  121. package/dist/chunks/accordion-item.DHyAfeAu.js +143 -0
  122. package/dist/chunks/accordion-item.DHyAfeAu.js.map +1 -0
  123. package/dist/chunks/action-bar.BsLU4Bp3.js +202 -0
  124. package/dist/chunks/action-bar.BsLU4Bp3.js.map +1 -0
  125. package/dist/chunks/adding-payment-methods.BJZLPxtM.js +5 -0
  126. package/dist/chunks/adding-payment-methods.BJZLPxtM.js.map +1 -0
  127. package/dist/chunks/adding-payment-methods.Dle8zt43.js +5 -0
  128. package/dist/chunks/adding-payment-methods.Dle8zt43.js.map +1 -0
  129. package/dist/chunks/adyen-giving.Ffw_DlJK.js +5 -0
  130. package/dist/chunks/adyen-giving.Ffw_DlJK.js.map +1 -0
  131. package/dist/chunks/adyen-giving.LiKHj_jY.js +5 -0
  132. package/dist/chunks/adyen-giving.LiKHj_jY.js.map +1 -0
  133. package/dist/chunks/ai-button.DaRuea3x.js +93 -0
  134. package/dist/chunks/ai-button.DaRuea3x.js.map +1 -0
  135. package/dist/chunks/alert.C2pusd-_.js +171 -0
  136. package/dist/chunks/alert.C2pusd-_.js.map +1 -0
  137. package/dist/chunks/aria-label.CaUURpnB.js +13 -0
  138. package/dist/chunks/aria-label.CaUURpnB.js.map +1 -0
  139. package/dist/chunks/avatar.P2Fkz2I6.js +95 -0
  140. package/dist/chunks/avatar.P2Fkz2I6.js.map +1 -0
  141. package/dist/chunks/base-button.BSLpAs8A.js +114 -0
  142. package/dist/chunks/base-button.BSLpAs8A.js.map +1 -0
  143. package/dist/chunks/base-modal.Bt3mQ_5Y.js +441 -0
  144. package/dist/chunks/base-modal.Bt3mQ_5Y.js.map +1 -0
  145. package/dist/chunks/bin.DuHlEQBO.js +37 -0
  146. package/dist/chunks/bin.DuHlEQBO.js.map +1 -0
  147. package/dist/chunks/button-actions-with-menu.D2GU8abn.js +93 -0
  148. package/dist/chunks/button-actions-with-menu.D2GU8abn.js.map +1 -0
  149. package/dist/chunks/button-actions.CbEoQYUV.js +1367 -0
  150. package/dist/chunks/button-actions.CbEoQYUV.js.map +1 -0
  151. package/dist/chunks/button-actions.types.BptAXjD8.js +8 -0
  152. package/dist/chunks/button-actions.types.BptAXjD8.js.map +1 -0
  153. package/dist/chunks/button.DhcxX2GJ.js +131 -0
  154. package/dist/chunks/button.DhcxX2GJ.js.map +1 -0
  155. package/dist/chunks/calendar.CyJXcMz2.js +1962 -0
  156. package/dist/chunks/calendar.CyJXcMz2.js.map +1 -0
  157. package/dist/chunks/card.s3fBTh55.js +228 -0
  158. package/dist/chunks/card.s3fBTh55.js.map +1 -0
  159. package/dist/chunks/checkbox-group.tnj89uhH.js +177 -0
  160. package/dist/chunks/checkbox-group.tnj89uhH.js.map +1 -0
  161. package/dist/chunks/checkbox-input.BXNGT9U0.js +144 -0
  162. package/dist/chunks/checkbox-input.BXNGT9U0.js.map +1 -0
  163. package/dist/chunks/checkbox.Wqhh2aRA.js +257 -0
  164. package/dist/chunks/checkbox.Wqhh2aRA.js.map +1 -0
  165. package/dist/chunks/checkmark-circle-fill._6-d40ru.js +44 -0
  166. package/dist/chunks/checkmark-circle-fill._6-d40ru.js.map +1 -0
  167. package/dist/chunks/checkmark-small.x-gmK2Dt.js +29 -0
  168. package/dist/chunks/checkmark-small.x-gmK2Dt.js.map +1 -0
  169. package/dist/chunks/chevron-down.DCQ6ZLaq.js +29 -0
  170. package/dist/chunks/chevron-down.DCQ6ZLaq.js.map +1 -0
  171. package/dist/chunks/chevron-left.Cfn1uGLH.js +52 -0
  172. package/dist/chunks/chevron-left.Cfn1uGLH.js.map +1 -0
  173. package/dist/chunks/chevron-up.kfuLRpZb.js +29 -0
  174. package/dist/chunks/chevron-up.kfuLRpZb.js.map +1 -0
  175. package/dist/chunks/chip.CoV28mKv.js +71 -0
  176. package/dist/chunks/chip.CoV28mKv.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.LRw3jGjV.js +343 -0
  180. package/dist/chunks/code-snippet.LRw3jGjV.js.map +1 -0
  181. package/dist/chunks/codemirror.Cy7iSLbd.js +14628 -0
  182. package/dist/chunks/codemirror.Cy7iSLbd.js.map +1 -0
  183. package/dist/chunks/constructNow.BhymNmy5.js +8 -0
  184. package/dist/chunks/constructNow.BhymNmy5.js.map +1 -0
  185. package/dist/chunks/controls-group.B2Qci77U.js +101 -0
  186. package/dist/chunks/controls-group.B2Qci77U.js.map +1 -0
  187. package/dist/chunks/copy.D5CBHqUB.js +117 -0
  188. package/dist/chunks/copy.D5CBHqUB.js.map +1 -0
  189. package/dist/chunks/country.D484ezGU.js +69 -0
  190. package/dist/chunks/country.D484ezGU.js.map +1 -0
  191. package/dist/chunks/country.types.C0Q_hhgJ.js +269 -0
  192. package/dist/chunks/country.types.C0Q_hhgJ.js.map +1 -0
  193. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js +29 -0
  194. package/dist/chunks/cross-circle-fill-small.Dv5-PxwF.js.map +1 -0
  195. package/dist/chunks/cross-circle-fill.CYLL7jfC.js +44 -0
  196. package/dist/chunks/cross-circle-fill.CYLL7jfC.js.map +1 -0
  197. package/dist/chunks/cross-small.n1UO5wNB.js +29 -0
  198. package/dist/chunks/cross-small.n1UO5wNB.js.map +1 -0
  199. package/dist/chunks/cross.B92GxFTY.js +29 -0
  200. package/dist/chunks/cross.B92GxFTY.js.map +1 -0
  201. package/dist/chunks/currency.WmvQjX7l.js +116 -0
  202. package/dist/chunks/currency.WmvQjX7l.js.map +1 -0
  203. package/dist/chunks/dashboard-section.DlokD9Rf.js +165 -0
  204. package/dist/chunks/dashboard-section.DlokD9Rf.js.map +1 -0
  205. package/dist/chunks/dashed-underline.Dw1Iqk0l.js +114 -0
  206. package/dist/chunks/dashed-underline.Dw1Iqk0l.js.map +1 -0
  207. package/dist/chunks/data-grid-template.BwTVHbpB.js +144 -0
  208. package/dist/chunks/data-grid-template.BwTVHbpB.js.map +1 -0
  209. package/dist/chunks/data-grid-template.keys.VezYtHtM.js +5 -0
  210. package/dist/chunks/data-grid-template.keys.VezYtHtM.js.map +1 -0
  211. package/dist/chunks/data-grid.Be6Ao4He.js +4271 -0
  212. package/dist/chunks/data-grid.Be6Ao4He.js.map +1 -0
  213. package/dist/chunks/date-format.B8RU7D42.js +17 -0
  214. package/dist/chunks/date-format.B8RU7D42.js.map +1 -0
  215. package/dist/chunks/date-picker.CYBx1TS_.js +245 -0
  216. package/dist/chunks/date-picker.CYBx1TS_.js.map +1 -0
  217. package/dist/chunks/date-picker.types.Ckt7zxGy.js +5 -0
  218. package/dist/chunks/date-picker.types.Ckt7zxGy.js.map +1 -0
  219. package/dist/chunks/date-range-picker.BgEM0fyZ.js +1109 -0
  220. package/dist/chunks/date-range-picker.BgEM0fyZ.js.map +1 -0
  221. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js +5 -0
  222. package/dist/chunks/date-range-picker.types.Ckt7zxGy.js.map +1 -0
  223. package/dist/chunks/date.DZvVL-uz.js +163 -0
  224. package/dist/chunks/date.DZvVL-uz.js.map +1 -0
  225. package/dist/chunks/debounce.DUTu11PS.js +10 -0
  226. package/dist/chunks/debounce.DUTu11PS.js.map +1 -0
  227. package/dist/chunks/delight.CDBAFnwC.js +5 -0
  228. package/dist/chunks/delight.CDBAFnwC.js.map +1 -0
  229. package/dist/chunks/delight.xKDCvvaS.js +5 -0
  230. package/dist/chunks/delight.xKDCvvaS.js.map +1 -0
  231. package/dist/chunks/dialog-page.BY6T1jYZ.js +175 -0
  232. package/dist/chunks/dialog-page.BY6T1jYZ.js.map +1 -0
  233. package/dist/chunks/differenceInMonths.Cab3nOsb.js +1590 -0
  234. package/dist/chunks/differenceInMonths.Cab3nOsb.js.map +1 -0
  235. package/dist/chunks/directive.Cbdox5VL.js +23 -0
  236. package/dist/chunks/directive.Cbdox5VL.js.map +1 -0
  237. package/dist/chunks/divider.Dho4_hQ7.js +33 -0
  238. package/dist/chunks/divider.Dho4_hQ7.js.map +1 -0
  239. package/dist/chunks/dot.ob6N-5Um.js +29 -0
  240. package/dist/chunks/dot.ob6N-5Um.js.map +1 -0
  241. package/dist/chunks/dropdown-default-textbox.CNrsjXUU.js +425 -0
  242. package/dist/chunks/dropdown-default-textbox.CNrsjXUU.js.map +1 -0
  243. package/dist/chunks/dropdown-tag.DmIHi3i-.js +301 -0
  244. package/dist/chunks/dropdown-tag.DmIHi3i-.js.map +1 -0
  245. package/dist/chunks/dropdown.Be6ses6k.js +833 -0
  246. package/dist/chunks/dropdown.Be6ses6k.js.map +1 -0
  247. package/dist/chunks/empty-state.Be6M8ivH.js +140 -0
  248. package/dist/chunks/empty-state.Be6M8ivH.js.map +1 -0
  249. package/dist/chunks/es6.MoTTyETW.js +12 -0
  250. package/dist/chunks/es6.MoTTyETW.js.map +1 -0
  251. package/dist/chunks/events.BQOQSSb7.js +44 -0
  252. package/dist/chunks/events.BQOQSSb7.js.map +1 -0
  253. package/dist/chunks/expand.C9IAqYYL.js +33 -0
  254. package/dist/chunks/expand.C9IAqYYL.js.map +1 -0
  255. package/dist/chunks/field-label.Cu6X9V0_.js +158 -0
  256. package/dist/chunks/field-label.Cu6X9V0_.js.map +1 -0
  257. package/dist/chunks/file-uploader.Bdhm4TVh.js +2299 -0
  258. package/dist/chunks/file-uploader.Bdhm4TVh.js.map +1 -0
  259. package/dist/chunks/filter-bar.CLNU1Ixm.js +3211 -0
  260. package/dist/chunks/filter-bar.CLNU1Ixm.js.map +1 -0
  261. package/dist/chunks/fixed-scroller.Dmg8r9QP.js +147 -0
  262. package/dist/chunks/fixed-scroller.Dmg8r9QP.js.map +1 -0
  263. package/dist/chunks/focus-trap.BaHvK7aT.js +1171 -0
  264. package/dist/chunks/focus-trap.BaHvK7aT.js.map +1 -0
  265. package/dist/chunks/footer-actions.C_EniPHo.js +110 -0
  266. package/dist/chunks/footer-actions.C_EniPHo.js.map +1 -0
  267. package/dist/chunks/form-field.D_2g7vaP.js +10 -0
  268. package/dist/chunks/form-field.D_2g7vaP.js.map +1 -0
  269. package/dist/chunks/form-layout-title.sxPU_lB_.js +214 -0
  270. package/dist/chunks/form-layout-title.sxPU_lB_.js.map +1 -0
  271. package/dist/chunks/form-layout.types.bZW9iR6_.js +5 -0
  272. package/dist/chunks/form-layout.types.bZW9iR6_.js.map +1 -0
  273. package/dist/chunks/generate-uid.NJ8tVoha.js +32 -0
  274. package/dist/chunks/generate-uid.NJ8tVoha.js.map +1 -0
  275. package/dist/chunks/get-slot-text.CQRAP2_q.js +12 -0
  276. package/dist/chunks/get-slot-text.CQRAP2_q.js.map +1 -0
  277. package/dist/chunks/getRoundingMethod.C3eaeGLR.js +10 -0
  278. package/dist/chunks/getRoundingMethod.C3eaeGLR.js.map +1 -0
  279. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js +484 -0
  280. package/dist/chunks/getTimezoneOffsetInMilliseconds.B7sxiukN.js.map +1 -0
  281. package/dist/chunks/grid-layout.DDaRNz4-.js +114 -0
  282. package/dist/chunks/grid-layout.DDaRNz4-.js.map +1 -0
  283. package/dist/chunks/header-meta.DMjERxW-.js +221 -0
  284. package/dist/chunks/header-meta.DMjERxW-.js.map +1 -0
  285. package/dist/chunks/header-with-views.CVgISUVn.js +2426 -0
  286. package/dist/chunks/header-with-views.CVgISUVn.js.map +1 -0
  287. package/dist/chunks/header.Dq5aBp9l.js +141 -0
  288. package/dist/chunks/header.Dq5aBp9l.js.map +1 -0
  289. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js +47 -0
  290. package/dist/chunks/image.vue_vue_type_script_setup_true_lang.DQT2oNEF.js.map +1 -0
  291. package/dist/chunks/index.CWuzEfiV.js +6 -0
  292. package/dist/chunks/index.CWuzEfiV.js.map +1 -0
  293. package/dist/chunks/index.E60QniEu.js +592 -0
  294. package/dist/chunks/index.E60QniEu.js.map +1 -0
  295. package/dist/chunks/index.pdBj0KQU.js +15 -0
  296. package/dist/chunks/index.pdBj0KQU.js.map +1 -0
  297. package/dist/chunks/info-icon.C7RAAeQQ.js +35 -0
  298. package/dist/chunks/info-icon.C7RAAeQQ.js.map +1 -0
  299. package/dist/chunks/info.BKwey1HA.js +44 -0
  300. package/dist/chunks/info.BKwey1HA.js.map +1 -0
  301. package/dist/chunks/input-field-password.BhksIaXB.js +396 -0
  302. package/dist/chunks/input-field-password.BhksIaXB.js.map +1 -0
  303. package/dist/chunks/input-field-phone-number.jW5pH96y.js +3333 -0
  304. package/dist/chunks/input-field-phone-number.jW5pH96y.js.map +1 -0
  305. package/dist/chunks/input-field.CYBjHzVA.js +318 -0
  306. package/dist/chunks/input-field.CYBjHzVA.js.map +1 -0
  307. package/dist/chunks/inspector.BBhrSgO6.js +200 -0
  308. package/dist/chunks/inspector.BBhrSgO6.js.map +1 -0
  309. package/dist/chunks/inspector.types.DyHwE18g.js +5 -0
  310. package/dist/chunks/inspector.types.DyHwE18g.js.map +1 -0
  311. package/dist/chunks/internal-error.BLZodVBE.js +5 -0
  312. package/dist/chunks/internal-error.BLZodVBE.js.map +1 -0
  313. package/dist/chunks/internal-error.BmrwJFpR.js +5 -0
  314. package/dist/chunks/internal-error.BmrwJFpR.js.map +1 -0
  315. package/dist/chunks/keyboard-navigation.DWmhelVv.js +66 -0
  316. package/dist/chunks/keyboard-navigation.DWmhelVv.js.map +1 -0
  317. package/dist/chunks/layout-row.BxP9SxrL.js +100 -0
  318. package/dist/chunks/layout-row.BxP9SxrL.js.map +1 -0
  319. package/dist/chunks/link.cwPmWlsk.js +116 -0
  320. package/dist/chunks/link.cwPmWlsk.js.map +1 -0
  321. package/dist/chunks/listbox-option-tag.VRGb_04i.js +57 -0
  322. package/dist/chunks/listbox-option-tag.VRGb_04i.js.map +1 -0
  323. package/dist/chunks/loading-indicator.Db794TT5.js +33 -0
  324. package/dist/chunks/loading-indicator.Db794TT5.js.map +1 -0
  325. package/dist/chunks/minus-small.DYIyF5XW.js +32 -0
  326. package/dist/chunks/minus-small.DYIyF5XW.js.map +1 -0
  327. package/dist/chunks/modal-fullscreen.hOTnlB9T.js +285 -0
  328. package/dist/chunks/modal-fullscreen.hOTnlB9T.js.map +1 -0
  329. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.js +501 -0
  330. package/dist/chunks/modal.vue_vue_type_script_setup_true_lang.DFCZG9Zc.js.map +1 -0
  331. package/dist/chunks/no-results-found.Bg_ZcEid.js +5 -0
  332. package/dist/chunks/no-results-found.Bg_ZcEid.js.map +1 -0
  333. package/dist/chunks/no-results-found.BqvYsBR6.js +5 -0
  334. package/dist/chunks/no-results-found.BqvYsBR6.js.map +1 -0
  335. package/dist/chunks/notifications-cleared.BMZk37uf.js +5 -0
  336. package/dist/chunks/notifications-cleared.BMZk37uf.js.map +1 -0
  337. package/dist/chunks/notifications-cleared.C7W9ZXY7.js +5 -0
  338. package/dist/chunks/notifications-cleared.C7W9ZXY7.js.map +1 -0
  339. package/dist/chunks/on-click-outside.D9aY9g8G.js +101 -0
  340. package/dist/chunks/on-click-outside.D9aY9g8G.js.map +1 -0
  341. package/dist/chunks/page-not-found.COJLPVaU.js +5 -0
  342. package/dist/chunks/page-not-found.COJLPVaU.js.map +1 -0
  343. package/dist/chunks/page-not-found.DWW6W-PZ.js +5 -0
  344. package/dist/chunks/page-not-found.DWW6W-PZ.js.map +1 -0
  345. package/dist/chunks/pagination.Cj_FYHm-.js +461 -0
  346. package/dist/chunks/pagination.Cj_FYHm-.js.map +1 -0
  347. package/dist/chunks/payment-method.CExDsirg.js +128 -0
  348. package/dist/chunks/payment-method.CExDsirg.js.map +1 -0
  349. package/dist/chunks/payment-method.types.BqtH7RM2.js +5 -0
  350. package/dist/chunks/payment-method.types.BqtH7RM2.js.map +1 -0
  351. package/dist/chunks/planned-maintenance.C61sWB9h.js +5 -0
  352. package/dist/chunks/planned-maintenance.C61sWB9h.js.map +1 -0
  353. package/dist/chunks/planned-maintenance.jmWYTdet.js +5 -0
  354. package/dist/chunks/planned-maintenance.jmWYTdet.js.map +1 -0
  355. package/dist/chunks/popover.types.DgfeurkF.js +6 -0
  356. package/dist/chunks/popover.types.DgfeurkF.js.map +1 -0
  357. package/dist/chunks/popper-container.I9gzp1NR.js +1413 -0
  358. package/dist/chunks/popper-container.I9gzp1NR.js.map +1 -0
  359. package/dist/chunks/promo-banner.B-TLTLEd.js +126 -0
  360. package/dist/chunks/promo-banner.B-TLTLEd.js.map +1 -0
  361. package/dist/chunks/radio-group.C0qJThJ2.js +278 -0
  362. package/dist/chunks/radio-group.C0qJThJ2.js.map +1 -0
  363. package/dist/chunks/radio-input.CBNE-AkM.js +95 -0
  364. package/dist/chunks/radio-input.CBNE-AkM.js.map +1 -0
  365. package/dist/chunks/referrals.BvtT-kQS.js +5 -0
  366. package/dist/chunks/referrals.BvtT-kQS.js.map +1 -0
  367. package/dist/chunks/referrals.aX8WZigH.js +5 -0
  368. package/dist/chunks/referrals.aX8WZigH.js.map +1 -0
  369. package/dist/chunks/refresh.BB4ouvz_.js +29 -0
  370. package/dist/chunks/refresh.BB4ouvz_.js.map +1 -0
  371. package/dist/chunks/resize.Bqks3WUm.js +15 -0
  372. package/dist/chunks/resize.Bqks3WUm.js.map +1 -0
  373. package/dist/chunks/rich-text-editor.CDcfVhGv.js +6224 -0
  374. package/dist/chunks/rich-text-editor.CDcfVhGv.js.map +1 -0
  375. package/dist/chunks/search-bar.CIi1zffn.js +116 -0
  376. package/dist/chunks/search-bar.CIi1zffn.js.map +1 -0
  377. package/dist/chunks/search.PczW-onY.js +44 -0
  378. package/dist/chunks/search.PczW-onY.js.map +1 -0
  379. package/dist/chunks/secondary-nav.C9ApoJ-J.js +138 -0
  380. package/dist/chunks/secondary-nav.C9ApoJ-J.js.map +1 -0
  381. package/dist/chunks/segmented-control.PlGfqyxH.js +145 -0
  382. package/dist/chunks/segmented-control.PlGfqyxH.js.map +1 -0
  383. package/dist/chunks/segmented-control.types.BHRLV8KU.js +5 -0
  384. package/dist/chunks/segmented-control.types.BHRLV8KU.js.map +1 -0
  385. package/dist/chunks/selection-card-group.DjlLf4oi.js +415 -0
  386. package/dist/chunks/selection-card-group.DjlLf4oi.js.map +1 -0
  387. package/dist/chunks/show.CT4Augxb.js +64 -0
  388. package/dist/chunks/show.CT4Augxb.js.map +1 -0
  389. package/dist/chunks/sidepanel.CiyGOtAx.js +254 -0
  390. package/dist/chunks/sidepanel.CiyGOtAx.js.map +1 -0
  391. package/dist/chunks/status.types.-l2qJxLn.js +44 -0
  392. package/dist/chunks/status.types.-l2qJxLn.js.map +1 -0
  393. package/dist/chunks/step.rYLkDMZ0.js +267 -0
  394. package/dist/chunks/step.rYLkDMZ0.js.map +1 -0
  395. package/dist/chunks/structured-list-item.CsUD3M_V.js +111 -0
  396. package/dist/chunks/structured-list-item.CsUD3M_V.js.map +1 -0
  397. package/dist/chunks/success.DhioLvPD.js +5 -0
  398. package/dist/chunks/success.DhioLvPD.js.map +1 -0
  399. package/dist/chunks/success.nNwxJRBS.js +5 -0
  400. package/dist/chunks/success.nNwxJRBS.js.map +1 -0
  401. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js +6 -0
  402. package/dist/chunks/summary-grid.keys.Xx-W5a2w.js.map +1 -0
  403. package/dist/chunks/summary-grid.types.BzPSYDUX.js +496 -0
  404. package/dist/chunks/summary-grid.types.BzPSYDUX.js.map +1 -0
  405. package/dist/chunks/tab.BAwuVDsV.js +252 -0
  406. package/dist/chunks/tab.BAwuVDsV.js.map +1 -0
  407. package/dist/chunks/tabs.keys.B4qGhjp2.js +7 -0
  408. package/dist/chunks/tabs.keys.B4qGhjp2.js.map +1 -0
  409. package/dist/chunks/tag.EDED27n5.js +57 -0
  410. package/dist/chunks/tag.EDED27n5.js.map +1 -0
  411. package/dist/chunks/textarea.7MePsezm.js +254 -0
  412. package/dist/chunks/textarea.7MePsezm.js.map +1 -0
  413. package/dist/chunks/timeline-item.D6SeOiVe.js +428 -0
  414. package/dist/chunks/timeline-item.D6SeOiVe.js.map +1 -0
  415. package/dist/chunks/toast.BFw86uEp.js +221 -0
  416. package/dist/chunks/toast.BFw86uEp.js.map +1 -0
  417. package/dist/chunks/toggle.BHCUjMpp.js +143 -0
  418. package/dist/chunks/toggle.BHCUjMpp.js.map +1 -0
  419. package/dist/chunks/tooltip.B76ucISL.js +202 -0
  420. package/dist/chunks/tooltip.B76ucISL.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.CyO3qbAU.js +421 -0
  424. package/dist/chunks/tutorial.vue_vue_type_script_setup_true_lang.CyO3qbAU.js.map +1 -0
  425. package/dist/chunks/typography.yBEME_Gu.js +83 -0
  426. package/dist/chunks/typography.yBEME_Gu.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.DK1PV3YW.js +50 -0
  432. package/dist/chunks/use-bento-toast-controller.DK1PV3YW.js.map +1 -0
  433. package/dist/chunks/use-cached-selected-values.DimYI3lv.js +1702 -0
  434. package/dist/chunks/use-cached-selected-values.DimYI3lv.js.map +1 -0
  435. package/dist/chunks/use-country-items.Dzbl2UsO.js +30 -0
  436. package/dist/chunks/use-country-items.Dzbl2UsO.js.map +1 -0
  437. package/dist/chunks/use-country-phon-code.Bui3zD6W.js +5621 -0
  438. package/dist/chunks/use-country-phon-code.Bui3zD6W.js.map +1 -0
  439. package/dist/chunks/use-default-slot-validator.O02rzsob.js +16 -0
  440. package/dist/chunks/use-default-slot-validator.O02rzsob.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.CWbjZiwP.js +12 -0
  444. package/dist/chunks/use-form-layout-loading.CWbjZiwP.js.map +1 -0
  445. package/dist/chunks/use-has-slot.B7eQSabc.js +15 -0
  446. package/dist/chunks/use-has-slot.B7eQSabc.js.map +1 -0
  447. package/dist/chunks/warning-filled.BMGD0G-_.js +29 -0
  448. package/dist/chunks/warning-filled.BMGD0G-_.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 +13 -0
  468. package/dist/data-grid.js.map +1 -0
  469. package/dist/date-picker.js +10 -0
  470. package/dist/date-picker.js.map +1 -0
  471. package/dist/date-range-picker.js +10 -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 +9 -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 +439 -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 +6 -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 +45 -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 +7 -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 +2133 -0
  553. package/dist/styles/bento-light.css +2132 -0
  554. package/dist/styles/bento.css +2132 -0
  555. package/dist/styles/legacy.css +2132 -0
  556. package/dist/styles/styleguide.css +2187 -0
  557. package/dist/styles/utility.css +1002 -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 +49 -0
  579. package/package.json +13 -12
@@ -0,0 +1,1109 @@
1
+ import { reactive as ke, defineComponent as lt, useSlots as ht, ref as U, computed as b, onMounted as ot, createElementBlock as Se, openBlock as F, createElementVNode as ae, createCommentVNode as A, normalizeClass as _e, renderSlot as He, createBlock as V, unref as D, createVNode as z, withCtx as P, createTextVNode as ie, toRaw as Ce, watch as Me, toRef as Qe, withDirectives as St, withKeys as Ge, toDisplayString as _t, createSlots as Mt } from "vue";
2
+ import { g as kt } from "./index.E60QniEu.js";
3
+ import { B as Ot } from "./divider.Dho4_hQ7.js";
4
+ import { h as wt, B as Ft } from "./button-actions.CbEoQYUV.js";
5
+ import { B as Ue, d as We } from "./typography.yBEME_Gu.js";
6
+ import { D as Ct } from "./dropdown-default-textbox.CNrsjXUU.js";
7
+ import { e as L, a as Ke, g as Ae } from "./differenceInMonths.Cab3nOsb.js";
8
+ import { g as ve } from "./generate-uid.NJ8tVoha.js";
9
+ import { u as Ne } from "./index.pdBj0KQU.js";
10
+ import { e as N, g as it, h as Pe, i as x, j as Ut, k as Ve, l as At, s as ze, m as Nt, n as pe, o as Je, b as K, u as Bt, f as me } from "./calendar.CyJXcMz2.js";
11
+ import { f as Xe, v as xt, D as M } from "./date-format.B8RU7D42.js";
12
+ import { t as J, c as qt, n as $t } from "./getTimezoneOffsetInMilliseconds.B7sxiukN.js";
13
+ import { u as Yt } from "./use-form-layout-loading.CWbjZiwP.js";
14
+ import { B as Lt } from "./directive.Cbdox5VL.js";
15
+ import { u as jt } from "./form-field.D_2g7vaP.js";
16
+ import { B as Ee } from "./input-field.CYBjHzVA.js";
17
+ import { B as Ht } from "./dropdown.Be6ses6k.js";
18
+ import { B as Qt } from "./segmented-control.PlGfqyxH.js";
19
+ import { d as Ie } from "./debounce.DUTu11PS.js";
20
+ import { u as Gt } from "./use-has-slot.B7eQSabc.js";
21
+ import { c as Wt } from "./constructNow.BhymNmy5.js";
22
+ import { _ as ut } from "./_plugin-vue_export-helper.CHgC5LLL.js";
23
+ import { F as Kt, E as Ze } from "./field-label.Cu6X9V0_.js";
24
+ import { B as Pt } from "./button-actions.types.BptAXjD8.js";
25
+ import "../assets/date-range-picker.css";
26
+ function ue(a) {
27
+ if (a == null)
28
+ return N(/* @__PURE__ */ new Date());
29
+ const [o, u, s] = a.split("-").map((e) => parseInt(e, 10));
30
+ return new Date(o, u - 1, s);
31
+ }
32
+ function dt(a, o, u) {
33
+ return it(a, o * 3, u);
34
+ }
35
+ function Vt(a, o, u) {
36
+ return dt(a, -1, u);
37
+ }
38
+ const zt = ({
39
+ firstDayOfWeek: a,
40
+ min: o,
41
+ max: u
42
+ }) => ({ getGranularCalendarLimits: (e) => {
43
+ if (!o && !u)
44
+ return { min: null, max: null };
45
+ let d = o ? N(o) : null, f = u ? L(u) : null;
46
+ if ((e == null ? void 0 : e.type) === "weekly") {
47
+ if (e.earliest)
48
+ d = N(e.earliest);
49
+ else if (d) {
50
+ const y = Pe(d, { weekStartsOn: a });
51
+ x(d, y) || (d = N(Ut(Ve(d, { weekStartsOn: a }), 1)));
52
+ }
53
+ if (e.latest)
54
+ f = L(e.latest);
55
+ else if (f) {
56
+ const y = Ve(f, { weekStartsOn: a });
57
+ x(f, y) || (f = L(At(Pe(f, { weekStartsOn: a }), 1)));
58
+ }
59
+ }
60
+ if ((e == null ? void 0 : e.type) === "monthly") {
61
+ if (e.earliest)
62
+ d = N(e.earliest);
63
+ else if (d) {
64
+ const y = ze(d);
65
+ x(d, y) || (d = ze(it(d, 1)));
66
+ }
67
+ if (e.latest)
68
+ f = L(e.latest);
69
+ else if (f) {
70
+ const y = Ke(f);
71
+ x(f, y) || (f = Ke(Nt(f, 1)));
72
+ }
73
+ }
74
+ if ((e == null ? void 0 : e.type) === "quarterly") {
75
+ if (e.earliest)
76
+ d = pe(e.earliest);
77
+ else if (d) {
78
+ const y = pe(d);
79
+ x(d, y) || (d = pe(dt(d, 1)));
80
+ }
81
+ if (e.latest)
82
+ f = L(e.latest);
83
+ else if (f) {
84
+ const y = Je(f);
85
+ x(f, y) || (f = Je(Vt(f)));
86
+ }
87
+ }
88
+ return { min: d, max: f };
89
+ } }), Jt = () => {
90
+ const a = ke({
91
+ daily: null,
92
+ weekly: null,
93
+ monthly: null,
94
+ quarterly: null
95
+ });
96
+ return {
97
+ savedRanges: a,
98
+ saveRange: (s, e) => {
99
+ a[s] = e;
100
+ },
101
+ resetSavedRanges: () => {
102
+ a.daily = null, a.weekly = null, a.monthly = null, a.quarterly = null;
103
+ }
104
+ };
105
+ };
106
+ var g = /* @__PURE__ */ ((a) => (a.CUSTOM_RANGE = "custom-range", a.INPUT = "input", a.ERROR = "error", a.FORM_DATE = "form-date", a.START_DATE_SELECTED = "start-date-selected", a))(g || {});
107
+ const Xt = /[\d]/, Zt = /^\d{2}$/, ea = /^\d{2}:\d{2}$/, ta = (a) => {
108
+ const { selectionStart: o } = a.target, u = ["Backspace", "Tab", "ArrowLeft", "ArrowRight"], s = Xt.test(a.key) || u.includes(a.key), e = [1, 2, 4, 5].includes(o) && a.key === ":";
109
+ !s && !e && a.preventDefault();
110
+ }, et = (a) => {
111
+ if (!a)
112
+ return a;
113
+ let o = a;
114
+ if (o.length === 1 && parseInt(a, 10) > 2)
115
+ return `0${o}:`;
116
+ const [u, s] = o.slice(-2);
117
+ return [2, 5].includes(o.length) && s === ":" && (o = `${o.slice(0, o.length - 2)}0${u}`), (Zt.test(o) || ea.test(o)) && (o += ":"), o;
118
+ };
119
+ function aa(a, o, u) {
120
+ const s = J(a, u == null ? void 0 : u.in);
121
+ return s.setHours(o), s;
122
+ }
123
+ function na(a, o, u) {
124
+ const s = J(a, u == null ? void 0 : u.in);
125
+ return s.setMinutes(o), s;
126
+ }
127
+ function ra(a, o, u) {
128
+ const s = J(a, u == null ? void 0 : u.in);
129
+ return s.setSeconds(o), s;
130
+ }
131
+ function tt(a, o) {
132
+ const u = J(a, o == null ? void 0 : o.in);
133
+ return u.setMilliseconds(0), u;
134
+ }
135
+ function at(a, o) {
136
+ return +tt(a) == +tt(o);
137
+ }
138
+ function he(a, o) {
139
+ return +J(a) == +J(o);
140
+ }
141
+ function sa(a, o) {
142
+ return x(
143
+ qt(a, a),
144
+ Wt(a)
145
+ );
146
+ }
147
+ function nt(a, o, u) {
148
+ const s = J(a, u == null ? void 0 : u.in);
149
+ return s.setMilliseconds(o), s;
150
+ }
151
+ const ct = {
152
+ "en-US": {
153
+ customRange: "Custom range",
154
+ daily: "Daily",
155
+ dateFrom: "Date from",
156
+ dateTo: "Date to",
157
+ lastMonth: "Last month",
158
+ lastSevenDays: "Last 7 days",
159
+ lastThreeMonths: "Last three months",
160
+ monthly: "Monthly",
161
+ quarterly: "Quarterly",
162
+ timeFrom: "Time from",
163
+ timeTo: "Time to",
164
+ weekly: "Weekly"
165
+ },
166
+ "ja-JP": {
167
+ customRange: "カスタム範囲を選択",
168
+ daily: "毎日",
169
+ lastMonth: "先月",
170
+ lastSevenDays: "過去7日間",
171
+ monthly: "毎月",
172
+ weekly: "毎週"
173
+ },
174
+ "pt-BR": {
175
+ customRange: "Selecione um intervalo personalizado",
176
+ daily: "Diário",
177
+ lastMonth: "Último mês",
178
+ lastSevenDays: "Últimos 7 dias",
179
+ monthly: "Mensal",
180
+ weekly: "Semanal"
181
+ }
182
+ }, la = { class: "b-date-range-picker-calendar" }, oa = { class: "b-date-range-picker-calendar__form" }, ia = { key: 0 }, ua = {
183
+ key: 0,
184
+ class: "b-date-range-picker-calendar__calendars-container",
185
+ "data-testid": "date-range-picker-calendar-calendar-container"
186
+ }, da = {
187
+ name: "date-range-picker-calendar",
188
+ i18n: { messages: ct }
189
+ }, ca = /* @__PURE__ */ lt({
190
+ ...da,
191
+ props: {
192
+ /**
193
+ * Allows user to enter time values in the form
194
+ */
195
+ allowTimeInput: { type: Boolean, default: !1 },
196
+ /**
197
+ * Ranges form persistance data
198
+ */
199
+ dateFormData: {
200
+ type: Object,
201
+ default: () => ({ startDate: void 0, endDate: void 0, startTime: void 0, endTime: void 0 })
202
+ },
203
+ /**
204
+ * Allows you to set the first day of the week. 0 is sunday, 1 is monday, 6 is saturday
205
+ */
206
+ firstDayOfWeek: K.props.firstDayOfWeek,
207
+ /**
208
+ * A list of available granularities.
209
+ * If present, the date picker will display a segmented control to change granularity.
210
+ */
211
+ granularities: {
212
+ type: Array,
213
+ default: null
214
+ },
215
+ /**
216
+ * Indicate if a date should be disabled or not
217
+ */
218
+ isDateDisabled: K.props.isDateDisabled,
219
+ /**
220
+ * Set a maximum number of dates to be selectable by the range.
221
+ */
222
+ maxRange: K.props.maxRange,
223
+ /**
224
+ * Sets a minimum limit for selectable dates - dates before `min` will not be selectable
225
+ */
226
+ min: K.props.min,
227
+ /**
228
+ * Sets a maximum limit for selectable dates - dates after `max` will not be selectable
229
+ */
230
+ max: K.props.max,
231
+ /**
232
+ * Number of months rendered on pane
233
+ */
234
+ numberOfMonths: {
235
+ type: K.props.numberOfMonths.type,
236
+ default: K.props.numberOfMonths.default,
237
+ validator: (a) => a >= 0
238
+ },
239
+ /**
240
+ * Displays the end date's month when the calendar is opened. Defaults to false i.e. the start date's month is displayed.
241
+ */
242
+ showEndDateOnOpen: { type: Boolean, default: !1 },
243
+ /**
244
+ * Enables the custom range selector.
245
+ * If provided, must be an array that sets the custom range dropdown items. Items are of the structure:
246
+ * `label` - label of custom range item.
247
+ * `value` - a unique key of the custom range item.
248
+ * `data` - an object `{ startDate: Date; endDate: Date }` to set the date picker range to upon selecting.
249
+ */
250
+ quickSelectRanges: {
251
+ type: Array,
252
+ default: void 0
253
+ },
254
+ /**
255
+ * Selected date
256
+ */
257
+ value: { type: Object, default: void 0 },
258
+ /**
259
+ * The type of calendar to display. Defaults to showing days.
260
+ */
261
+ variant: K.props.variant
262
+ },
263
+ emits: [
264
+ g.CUSTOM_RANGE,
265
+ g.INPUT,
266
+ g.ERROR,
267
+ g.FORM_DATE,
268
+ g.START_DATE_SELECTED
269
+ ],
270
+ setup(a, { emit: o }) {
271
+ var $e, Ye, Le, je;
272
+ const s = "customRange", e = a, d = o, f = ht(), y = Gt(f), { locale: X, t: C } = Ne({ messages: ct }), k = Ae(), h = U({}), De = b(() => e.variant === "month" ? "monthly" : "daily"), fe = b(() => e.numberOfMonths === 0), n = ke({
273
+ startDate: ($e = e.value) == null ? void 0 : $e.startDate,
274
+ endDate: (Ye = e.value) == null ? void 0 : Ye.endDate,
275
+ range: (Le = e.value) == null ? void 0 : Le.range,
276
+ ...e.granularities ? {
277
+ granularity: ((je = e.value) == null ? void 0 : je.granularity) || De.value
278
+ } : {}
279
+ });
280
+ function R(t) {
281
+ return t ? new Date(
282
+ t.getUTCFullYear(),
283
+ t.getUTCMonth(),
284
+ t.getUTCDate(),
285
+ t.getUTCHours(),
286
+ t.getUTCMinutes(),
287
+ t.getUTCSeconds()
288
+ ) : null;
289
+ }
290
+ const v = b(() => {
291
+ var t, r;
292
+ return (
293
+ // eslint-disable-next-line consistent-return
294
+ ((r = (t = e == null ? void 0 : e.quickSelectRanges) == null ? void 0 : t.find(({ value: m, data: c }) => {
295
+ var I;
296
+ if (!c.endDate) {
297
+ if (c.isRelativeToNow) {
298
+ const w = (I = h.value) == null ? void 0 : I[m];
299
+ return w ? he(
300
+ R(w.startDate),
301
+ R(n.startDate)
302
+ ) && he(
303
+ R(w.endDate),
304
+ R(n.endDate)
305
+ ) : (
306
+ // If not stored calculated dates, fall back to comparing the quick select item's value
307
+ // with the internal range's stored range identifier.
308
+ m === n.range
309
+ );
310
+ }
311
+ return he(R(c.startDate), R(n.startDate)) && he(
312
+ R(n.endDate),
313
+ R(L(n.endDate))
314
+ ) && sa(R(n.endDate)) && (e.granularities ? c.granularity === n.granularity : !0);
315
+ }
316
+ if (e.allowTimeInput)
317
+ return at(R(c.startDate), R(n.startDate)) && at(R(c.endDate), R(n.endDate)) && (e.granularities ? c.granularity === n.granularity : !0);
318
+ if (c.endDate)
319
+ return x(c.startDate, n.startDate) && x(c.endDate, n.endDate) && (e.granularities ? c.granularity === n.granularity : !0);
320
+ })) == null ? void 0 : r.value) ?? s
321
+ );
322
+ }), Z = b(() => ({
323
+ "b-date-range-picker-calendar__form-input-wrapper": e.allowTimeInput
324
+ })), S = b(() => [
325
+ { label: C("customRange"), value: s },
326
+ ...e.quickSelectRanges ? e.quickSelectRanges : []
327
+ ]), j = b(
328
+ () => {
329
+ var t;
330
+ return ((t = e.granularities) == null ? void 0 : t.find(({ type: r }) => r === n.granularity)) || null;
331
+ }
332
+ ), ne = b(
333
+ () => {
334
+ var t;
335
+ return ((t = e.granularities) == null ? void 0 : t.map(({ type: r, disabled: m }) => ({
336
+ label: C(r),
337
+ value: r,
338
+ disabled: m
339
+ }))) ?? [];
340
+ }
341
+ ), { getGranularCalendarLimits: de } = zt(e), T = b(
342
+ () => e.granularities ? de(j.value) : { min: e.min ? N(e.min) : null, max: e.max ? L(e.max) : null }
343
+ ), {
344
+ adjustDateForQuarterly: ce,
345
+ adjustDateForMonthly: q,
346
+ adjustDateForWeekly: $,
347
+ adjustStartDateInputForWeekly: B,
348
+ adjustEndDateInputForWeekly: E,
349
+ adjustStartDateInputForMonthly: Oe,
350
+ adjustEndDateInputForMonthly: re,
351
+ adjustStartDateInputForQuarterly: we,
352
+ adjustEndDateInputForQuarterly: ye
353
+ } = Bt(e.firstDayOfWeek), { savedRanges: H, saveRange: ee, resetSavedRanges: se } = Jt(), O = (t) => {
354
+ var r;
355
+ return t ? me(t, M.NUMERIC_DATE_YEAR_FIRST, {
356
+ locale: k[(r = X.value) == null ? void 0 : r.substring(0, 2)] || k.enUS
357
+ }) : "";
358
+ }, te = (t) => {
359
+ var r;
360
+ return t ? me(t, M.HOUR_MINUTE_SECONDS, {
361
+ locale: k[(r = X.value) == null ? void 0 : r.substring(0, 2)] || k.enUS
362
+ }) : "";
363
+ }, le = U(!1), oe = U(!1), Q = U(!1), G = U(!1), i = ke({
364
+ startDate: e.dateFormData.startDate,
365
+ endDate: e.dateFormData.endDate,
366
+ startTime: e.dateFormData.startTime,
367
+ endTime: e.dateFormData.endTime
368
+ }), Te = (t, r) => {
369
+ let m = new Date(t);
370
+ const [c, I, w] = r.split(":");
371
+ return m = aa(m, parseInt(c, 10)), m = na(m, parseInt(I, 10)), m = ra(m, parseInt(w, 10)), m;
372
+ }, ge = (t) => /^(?:[01]\d|2[01234]):(?:[012345]\d):(?:[012345]\d)$/.test(t), l = (t, r) => {
373
+ const m = () => {
374
+ if (r && _(r)) {
375
+ const c = Te(new Date(r), t);
376
+ if (e.min && c < nt(e.min, 0) || e.max && c > nt(e.max, 0))
377
+ return !1;
378
+ }
379
+ return !0;
380
+ };
381
+ return ge(t) && m();
382
+ }, p = (t, r) => !r || !ge(r) || e.variant === "month" ? t : Te(new Date(t), r), Y = (t) => {
383
+ i.startTime = te(
384
+ e.min && e.allowTimeInput && x(e.min, t.startDate) ? e.min : N(t.startDate)
385
+ ), i.endTime = te(
386
+ e.max && e.allowTimeInput && x(e.max, t.endDate) ? e.max : L(t.endDate)
387
+ ), n.startDate = p(t.startDate, i.startTime), n.endDate = p(t.endDate, i.endTime), n.range = null, e.granularities && se(), d(g.INPUT, {
388
+ ...n,
389
+ range: v.value
390
+ });
391
+ }, _ = (t) => {
392
+ const r = (c) => e.min && N(c) < N(e.min) || e.max && N(c) > N(e.max) ? !1 : e.isDateDisabled ? !e.isDateDisabled(N(c)) : !0;
393
+ return /^\d{4}-(0?[1-9]|1[012])-(0?[1-9]|[12][0-9]|3[01])$/.test(t) && r(new Date(t));
394
+ };
395
+ ot(() => {
396
+ le.value = !!(e.dateFormData.startDate && !_(e.dateFormData.startDate)), e.allowTimeInput ? Q.value = !!(e.dateFormData.startTime && !l(e.dateFormData.startTime, e.dateFormData.startDate)) : Q.value = !1, oe.value = !!(e.dateFormData.endDate && !_(e.dateFormData.endDate)), e.allowTimeInput ? G.value = !!(e.dateFormData.endTime && !l(e.dateFormData.endTime, e.dateFormData.endDate)) : G.value = !1;
397
+ });
398
+ const W = (t) => {
399
+ var r;
400
+ i.startDate = O(t), i.startTime ? Q.value && (i.startTime = (r = e.dateFormData) == null ? void 0 : r.startTime) : i.startTime = te(t), le.value = !1, Q.value = !1, d(g.START_DATE_SELECTED, t);
401
+ }, be = (t) => {
402
+ var r;
403
+ i.endDate = O(t), i.endTime ? G.value && (i.endTime = (r = e.dateFormData) == null ? void 0 : r.endTime) : i.endTime = te(L(t)), oe.value = !1, G.value = !1;
404
+ }, Fe = (t) => {
405
+ const r = e.value[t];
406
+ if (r)
407
+ return r;
408
+ if (e.dateFormData[t] && _(e.dateFormData[t]))
409
+ return new Date(e.dateFormData[t]);
410
+ }, mt = Ie((t) => {
411
+ var r;
412
+ if (_(t)) {
413
+ let m = t;
414
+ switch (le.value = !1, (r = j.value) == null ? void 0 : r.type) {
415
+ case "weekly":
416
+ m = B(
417
+ t,
418
+ O,
419
+ T.value.min,
420
+ T.value.max
421
+ ), i.startDate = m;
422
+ break;
423
+ case "monthly":
424
+ m = Oe(
425
+ t,
426
+ O,
427
+ T.value.min,
428
+ T.value.max
429
+ ), i.startDate = m;
430
+ break;
431
+ case "quarterly":
432
+ m = we(
433
+ t,
434
+ O,
435
+ T.value.min,
436
+ T.value.max
437
+ ), i.startDate = m;
438
+ break;
439
+ }
440
+ const c = ue(m);
441
+ n.startDate = p(c, i.startTime), n.endDate = p(
442
+ ue(i.endDate),
443
+ i.endTime
444
+ ), _(i.endDate) && (n.endDate = p(
445
+ ue(i.endDate),
446
+ i.endTime
447
+ ));
448
+ const I = Fe("endDate");
449
+ n.range = null, d(g.FORM_DATE, {
450
+ startDate: c,
451
+ endDate: I
452
+ }), d(g.INPUT, {
453
+ ...n,
454
+ range: v.value
455
+ });
456
+ } else
457
+ le.value = !0, d(g.ERROR, { ...i });
458
+ }, 300), Dt = (t) => {
459
+ i.startDate = Xe(t), mt(i.startDate);
460
+ }, ft = Ie((t) => {
461
+ var r;
462
+ if (_(t)) {
463
+ let m = t;
464
+ switch (oe.value = !1, (r = j.value) == null ? void 0 : r.type) {
465
+ case "weekly":
466
+ m = E(
467
+ t,
468
+ O,
469
+ T.value.min,
470
+ T.value.max
471
+ ), i.endDate = m;
472
+ break;
473
+ case "monthly":
474
+ m = re(
475
+ t,
476
+ O,
477
+ T.value.min,
478
+ T.value.max
479
+ ), i.endDate = m;
480
+ break;
481
+ case "quarterly":
482
+ m = ye(
483
+ t,
484
+ O,
485
+ T.value.min,
486
+ T.value.max
487
+ ), i.endDate = m;
488
+ break;
489
+ }
490
+ const c = ue(m);
491
+ n.endDate = p(c, i.endTime), _(i.startDate) && (n.startDate = p(
492
+ ue(i.startDate),
493
+ i.startTime
494
+ ));
495
+ const I = Fe("startDate");
496
+ n.range = null, d(g.FORM_DATE, {
497
+ startDate: I,
498
+ endDate: c
499
+ }), d(g.INPUT, {
500
+ ...n,
501
+ range: v.value
502
+ });
503
+ } else
504
+ oe.value = !0, d(g.ERROR, { ...i });
505
+ }, 300), vt = (t) => {
506
+ i.endDate = Xe(t), ft(i.endDate);
507
+ }, xe = (t) => {
508
+ xt(t);
509
+ }, pt = Ie((t) => {
510
+ if (l(t, e.dateFormData.startDate)) {
511
+ Q.value = !1, n.startDate = p(n.startDate, t);
512
+ const r = Fe("endDate");
513
+ d(g.FORM_DATE, {
514
+ startDate: n.startDate,
515
+ endDate: r,
516
+ startTime: t,
517
+ endTime: i.endTime ?? e.dateFormData.endTime
518
+ }), d(g.INPUT, {
519
+ ...n,
520
+ range: v.value
521
+ });
522
+ } else
523
+ Q.value = !0, d(g.ERROR, { ...i });
524
+ }), yt = Ie((t) => {
525
+ l(t, e.dateFormData.endDate) ? (G.value = !1, n.endDate = p(n.endDate, t), d(g.FORM_DATE, {
526
+ startDate: n.startDate,
527
+ endDate: n.endDate,
528
+ startTime: i.startTime ?? e.dateFormData.startTime,
529
+ endTime: t
530
+ }), d(g.INPUT, {
531
+ ...n,
532
+ range: v.value
533
+ })) : (G.value = !0, d(g.ERROR, { ...i }));
534
+ }), Tt = (t) => {
535
+ i.startTime = et(t), pt(i.startTime);
536
+ }, gt = (t) => {
537
+ i.endTime = et(t), yt(i.endTime);
538
+ }, qe = (t) => {
539
+ ta(t);
540
+ }, Re = (t, r, m, c) => {
541
+ n.startDate = t, n.endDate = r, m && (n.granularity = m), c && (n.range = c);
542
+ }, bt = (t) => {
543
+ var m;
544
+ const r = (m = e.quickSelectRanges) == null ? void 0 : m.find(({ value: c }) => c === t);
545
+ if (r) {
546
+ se();
547
+ const c = r.data, I = c.endDate || (c.isRelativeToNow ? new Date(Date.now()) : L(new Date(Date.now()))), w = c.isRelativeToNow && c.timeDifference ? new Date(I.getTime() - c.timeDifference) : c.startDate;
548
+ i.endDate = O(I), i.startDate = O(w), Re(w, I, null, t), e.granularities && (n.granularity = c.granularity || De.value), i.startTime = te(w), i.endTime = te(I), n.startDate = w, n.endDate = I, c.isRelativeToNow && (h.value = {
549
+ ...h.value,
550
+ [t]: {
551
+ startDate: w,
552
+ endDate: I
553
+ }
554
+ }), d(g.CUSTOM_RANGE, {
555
+ ...r.data,
556
+ startDate: w,
557
+ endDate: I,
558
+ range: r.value
559
+ });
560
+ }
561
+ }, Rt = {
562
+ weekly: $,
563
+ monthly: q,
564
+ quarterly: ce
565
+ }, Et = (t) => {
566
+ const r = n.granularity;
567
+ if (n.granularity = t, r && ee(r, structuredClone(Ce(n))), n.startDate && n.endDate) {
568
+ switch (t) {
569
+ case "quarterly":
570
+ case "monthly":
571
+ case "weekly": {
572
+ if (H[t]) {
573
+ Re(H[t].startDate, H[t].endDate, t);
574
+ break;
575
+ }
576
+ const { startDate: m, endDate: c } = Rt[t](
577
+ n.startDate,
578
+ n.endDate,
579
+ T.value.min,
580
+ T.value.max
581
+ );
582
+ Re(m, c, t);
583
+ break;
584
+ }
585
+ case "daily":
586
+ H.daily && Re(H.daily.startDate, H.daily.endDate, t);
587
+ break;
588
+ }
589
+ i.startDate = O(n.startDate), i.endDate = O(n.endDate), d(g.INPUT, {
590
+ ...n,
591
+ range: v.value
592
+ });
593
+ }
594
+ }, It = b(() => ({
595
+ "b-date-range-picker-calendar__form-container--no-calendars": fe.value
596
+ }));
597
+ return (t, r) => (F(), Se("div", la, [
598
+ ae("div", {
599
+ class: _e(["b-date-range-picker-calendar__form-container", It.value]),
600
+ "data-testid": "date-range-picker-calendar-form-container"
601
+ }, [
602
+ ae("div", oa, [
603
+ D(y)("title") ? He(t.$slots, "title", { key: 0 }, void 0, !0) : A("", !0),
604
+ a.quickSelectRanges ? (F(), V(Ht, {
605
+ key: 1,
606
+ "aria-label": D(C)("customRange"),
607
+ items: S.value,
608
+ "model-value": v.value,
609
+ "onUpdate:modelValue": bt
610
+ }, null, 8, ["aria-label", "items", "model-value"])) : A("", !0),
611
+ a.granularities ? (F(), V(D(Qt), {
612
+ key: 2,
613
+ items: ne.value,
614
+ "model-value": n.granularity,
615
+ "full-width": "",
616
+ "onUpdate:modelValue": Et
617
+ }, null, 8, ["items", "model-value"])) : A("", !0),
618
+ ae("div", null, [
619
+ z(D(Ue), {
620
+ stronger: "",
621
+ el: "span",
622
+ class: "b-date-range-picker-calendar__label"
623
+ }, {
624
+ default: P(() => r[0] || (r[0] = [
625
+ ie(" From ")
626
+ ])),
627
+ _: 1
628
+ }),
629
+ ae("div", {
630
+ class: _e(Z.value)
631
+ }, [
632
+ z(D(Ee), {
633
+ "aria-label": D(C)("dateFrom"),
634
+ "model-value": i.startDate,
635
+ error: le.value,
636
+ class: "b-date-range-picker-calendar__form-input",
637
+ "onUpdate:modelValue": Dt,
638
+ onKeydown: xe
639
+ }, {
640
+ description: P(() => r[1] || (r[1] = [
641
+ ie("YYYY-MM-DD")
642
+ ])),
643
+ _: 1
644
+ }, 8, ["aria-label", "model-value", "error"]),
645
+ a.allowTimeInput ? (F(), V(D(Ee), {
646
+ key: 0,
647
+ "aria-label": D(C)("timeFrom"),
648
+ "model-value": i.startTime,
649
+ error: Q.value,
650
+ class: "b-date-range-picker-calendar__form-input",
651
+ "onUpdate:modelValue": Tt,
652
+ onKeydown: qe
653
+ }, {
654
+ description: P(() => r[2] || (r[2] = [
655
+ ie("HH:MM:SS")
656
+ ])),
657
+ _: 1
658
+ }, 8, ["aria-label", "model-value", "error"])) : A("", !0)
659
+ ], 2)
660
+ ]),
661
+ ae("div", null, [
662
+ z(D(Ue), {
663
+ stronger: "",
664
+ el: "span",
665
+ class: "b-date-range-picker-calendar__label"
666
+ }, {
667
+ default: P(() => r[3] || (r[3] = [
668
+ ie(" To ")
669
+ ])),
670
+ _: 1
671
+ }),
672
+ ae("div", {
673
+ class: _e(Z.value)
674
+ }, [
675
+ z(D(Ee), {
676
+ class: "b-date-range-picker-calendar__form-input",
677
+ "aria-label": D(C)("dateTo"),
678
+ "model-value": i.endDate,
679
+ error: oe.value,
680
+ "onUpdate:modelValue": vt,
681
+ onKeydown: xe
682
+ }, {
683
+ description: P(() => r[4] || (r[4] = [
684
+ ie("YYYY-MM-DD")
685
+ ])),
686
+ _: 1
687
+ }, 8, ["aria-label", "model-value", "error"]),
688
+ a.allowTimeInput ? (F(), V(D(Ee), {
689
+ key: 0,
690
+ "aria-label": D(C)("timeTo"),
691
+ "model-value": i.endTime,
692
+ error: G.value,
693
+ class: "b-date-range-picker-calendar__form-input",
694
+ "onUpdate:modelValue": gt,
695
+ onKeydown: qe
696
+ }, {
697
+ description: P(() => r[5] || (r[5] = [
698
+ ie("HH:MM:SS")
699
+ ])),
700
+ _: 1
701
+ }, 8, ["aria-label", "model-value", "error"])) : A("", !0)
702
+ ], 2)
703
+ ])
704
+ ]),
705
+ D(y)("actions") ? (F(), Se("div", ia, [
706
+ He(t.$slots, "actions", {}, void 0, !0)
707
+ ])) : A("", !0)
708
+ ], 2),
709
+ fe.value ? A("", !0) : (F(), Se("div", ua, [
710
+ z(D(K), {
711
+ value: n,
712
+ "first-day-of-week": a.firstDayOfWeek,
713
+ "is-date-disabled": a.isDateDisabled,
714
+ "max-range": a.maxRange,
715
+ min: T.value.min,
716
+ max: T.value.max,
717
+ "number-of-months": a.numberOfMonths,
718
+ "show-end-date-on-open": a.showEndDateOnOpen,
719
+ granularity: j.value,
720
+ variant: a.variant,
721
+ "is-range": "",
722
+ onInput: Y,
723
+ onStartDateSelected: W,
724
+ onEndDateSelected: be
725
+ }, null, 8, ["value", "first-day-of-week", "is-date-disabled", "max-range", "min", "max", "number-of-months", "show-end-date-on-open", "granularity", "variant"])
726
+ ]))
727
+ ]));
728
+ }
729
+ }), ma = /* @__PURE__ */ ut(ca, [["__scopeId", "data-v-b8e14e1c"]]);
730
+ function rt(a, o) {
731
+ const u = J(a, o == null ? void 0 : o.in);
732
+ return Math.trunc(u.getMonth() / 3) + 1;
733
+ }
734
+ function st(a, o) {
735
+ return J(a, o == null ? void 0 : o.in).getFullYear();
736
+ }
737
+ function Da(a, o, u) {
738
+ const [s, e] = $t(
739
+ u == null ? void 0 : u.in,
740
+ a,
741
+ o
742
+ );
743
+ return +pe(s) == +pe(e);
744
+ }
745
+ const Be = {
746
+ "en-US": {
747
+ apply: "Apply",
748
+ cancel: "Cancel",
749
+ dateRangePicker: "Date range picker {name}",
750
+ provideDateInAFormat: "Provide date in a YYYY-MM-DD format",
751
+ quarter: "Q{quarter} {year}",
752
+ selectDate: "Select a date",
753
+ selectDateRange: "Select a date range",
754
+ selectedDateIsNotAvailable: "Selected date is not available"
755
+ },
756
+ "ja-JP": {
757
+ apply: "適用",
758
+ cancel: "キャンセル",
759
+ selectDate: "日付を選択"
760
+ },
761
+ "pt-BR": {
762
+ apply: "Aplicar",
763
+ cancel: "Cancelar",
764
+ selectDate: "Selecione uma data"
765
+ }
766
+ }, fa = ({
767
+ datePickerValue: a,
768
+ isDateIncorrect: o,
769
+ quickSelectRanges: u,
770
+ isMonthVariant: s,
771
+ withTimeInput: e,
772
+ placeholder: d
773
+ }) => {
774
+ const { locale: f, t: y } = Ne({ messages: Be }), X = Ae(), C = (n) => !!n && !isNaN(n.getTime()), k = (n, R) => {
775
+ var v;
776
+ return C(n) ? me(n, R, {
777
+ locale: X[(v = f.value) == null ? void 0 : v.substring(0, 2)] || X.enUS
778
+ }) : void 0;
779
+ }, h = ke({
780
+ startDate: null,
781
+ endDate: null,
782
+ startTime: null,
783
+ endTime: null
784
+ });
785
+ return Me(
786
+ a,
787
+ (n) => {
788
+ h.startDate = k(
789
+ n == null ? void 0 : n.startDate,
790
+ M.NUMERIC_DATE_YEAR_FIRST
791
+ ), h.endDate = k(n == null ? void 0 : n.endDate, M.NUMERIC_DATE_YEAR_FIRST), h.startTime = k(n == null ? void 0 : n.startDate, M.HOUR_MINUTE_SECONDS), h.endTime = k(n == null ? void 0 : n.endDate, M.HOUR_MINUTE_SECONDS);
792
+ },
793
+ { immediate: !0 }
794
+ ), {
795
+ // Values
796
+ dateDisplayValue: b(() => {
797
+ var ce;
798
+ if (o.value)
799
+ return `${h.startDate || ""} - ${h.endDate || ""}`;
800
+ if (!a.value || !a.value.startDate && !a.value.endDate)
801
+ return (d == null ? void 0 : d.value) || y("selectDateRange");
802
+ if ((ce = u.value) != null && ce.length) {
803
+ const q = u.value.find(({ value: $ }) => {
804
+ var B;
805
+ return $ === ((B = a.value) == null ? void 0 : B.range);
806
+ });
807
+ if (q)
808
+ return q.label;
809
+ }
810
+ if (a.value.granularity === "quarterly") {
811
+ const { startDate: q, endDate: $ } = a.value, B = y("quarter", { quarter: rt(q), year: st(q) });
812
+ if (Da(q, $))
813
+ return B;
814
+ const E = y("quarter", { quarter: rt($), year: st($) });
815
+ return `${B} - ${E}`;
816
+ }
817
+ const { startDate: n, endDate: R, startTime: v, endTime: Z } = h, S = s != null && s.value ? M.LONG_MONTH_YEAR : M.FULL_DATE_MONTH_FIRST, j = k(ue(n), S), ne = k(ue(R), S);
818
+ if (!e.value)
819
+ return `${j} - ${ne}`;
820
+ const de = [j, v].filter(Boolean).join(", "), T = [ne, Z].filter(Boolean).join(", ");
821
+ return `${de} - ${T}`;
822
+ }),
823
+ textInputDisplayValue: h,
824
+ // Methods
825
+ formatTextInputDisplayValue: () => ""
826
+ };
827
+ }, va = { class: "b-date-range-picker" }, pa = { class: "b-date-range-picker__footer" }, ya = {
828
+ i18n: { messages: Be },
829
+ name: "bento-date-range-picker",
830
+ model: { prop: "modelValue" }
831
+ }, Ta = /* @__PURE__ */ lt({
832
+ ...ya,
833
+ props: {
834
+ allowTimeInput: { type: Boolean },
835
+ firstDayOfWeek: { default: 1 },
836
+ granularities: {},
837
+ isDateDisabled: { type: Function, default: void 0 },
838
+ showEndDateOnOpen: { type: Boolean, default: !1 },
839
+ quickSelectRanges: { default: void 0 },
840
+ maxRange: { default: null },
841
+ min: { default: null },
842
+ max: { default: null },
843
+ numberOfMonths: { default: void 0 },
844
+ modelValue: { default: null },
845
+ value: { default: null },
846
+ variant: { default: void 0 },
847
+ hasActions: { type: Boolean, default: !1 },
848
+ description: { default: void 0 },
849
+ disabled: { type: Boolean, default: !1 },
850
+ errorMessage: { default: null },
851
+ label: { default: void 0 },
852
+ optional: { type: Boolean, default: !1 },
853
+ placeholder: { default: null },
854
+ readonly: { type: Boolean, default: !1 },
855
+ required: { type: Boolean, default: !1 },
856
+ tooltipText: { default: null }
857
+ },
858
+ emits: ["update:model-value", "input"],
859
+ setup(a, { emit: o }) {
860
+ const u = o, s = a, { locale: e, t: d } = Ne({ messages: Be }), f = Ae(), y = ve("bento-date-range-picker-container"), X = ve("bento-date-range-picker-label"), C = ve("bento-date-range-picker-description"), k = ve("bento-date-range-picker-error"), h = ve("bento-date-range-picker-date-error"), De = b(() => s.label || d("dateRangePicker", { name: y })), fe = kt({
861
+ none: 0,
862
+ one: 710,
863
+ // width of date range picker with one panes
864
+ two: 1030,
865
+ // width of date range picker with two panes
866
+ three: 1290
867
+ // width of date range picker with three panes
868
+ }), n = b(() => {
869
+ const l = fe.active().value, p = {
870
+ none: 0,
871
+ one: 1,
872
+ two: 2
873
+ };
874
+ if (l in p) {
875
+ const Y = p[l];
876
+ return s.numberOfMonths === void 0 ? Y : Math.min(s.numberOfMonths, Y);
877
+ }
878
+ return s.numberOfMonths;
879
+ }), R = b(() => (s == null ? void 0 : s.quickSelectRanges) && s.quickSelectRanges.map((l) => {
880
+ const p = l.data.endDate ? void 0 : new Date(Date.now()).getTime() - l.data.startDate.getTime();
881
+ return {
882
+ ...l,
883
+ data: {
884
+ ...l.data,
885
+ // Adding timeDifference to calculate an up-to-date endDate on range selection
886
+ timeDifference: p
887
+ }
888
+ };
889
+ })), v = U(!1), Z = U(null), S = U(!1), { isReadOnly: j } = Yt(Qe(s, "readonly")), { emitValue: ne } = jt(u);
890
+ Me(
891
+ () => s.disabled,
892
+ () => {
893
+ s.disabled && S.value && (S.value = !1);
894
+ }
895
+ );
896
+ const de = b(() => s.modelValue || s.value), T = b(() => s.hasActions ? !se.value && v.value : v.value), ce = b(() => ({
897
+ "b-date-range-picker__description--error": !!s.errorMessage || T.value
898
+ })), q = b(() => s.variant === "month"), $ = b(() => s.allowTimeInput && s.variant !== "month"), { dateDisplayValue: B, textInputDisplayValue: E } = fa({
899
+ datePickerValue: de,
900
+ isDateIncorrect: v,
901
+ quickSelectRanges: R,
902
+ isMonthVariant: q,
903
+ withTimeInput: $,
904
+ placeholder: Qe(s, "placeholder")
905
+ }), Oe = b(
906
+ () => `${s.description ? C : ""} ${s.errorMessage ? k : ""} ${v.value ? h : ""}`.trim() || null
907
+ ), re = () => {
908
+ S.value = !1;
909
+ }, we = () => {
910
+ S.value = !0;
911
+ }, ye = U(B.value), H = U(
912
+ // textInputDisplayValue is a reactive object
913
+ structuredClone(Ce(E))
914
+ ), ee = U(s.modelValue ?? s.value), se = U(!0), O = b(
915
+ () => s.hasActions ? H.value : E
916
+ ), te = b(
917
+ () => s.hasActions ? ye.value : B.value
918
+ );
919
+ ot(() => {
920
+ if (s.hasActions || We(
921
+ 'BentoDateRangePicker "hasActions" property',
922
+ `Set the BentoDateRangePicker "hasActions" property true which will display the "Apply" and "Cancel" buttons.
923
+ This will be the default behavior in the v2 and "hasActions" will be removed.`,
924
+ "2.0.0"
925
+ ), s.value && We(
926
+ 'BentoDateRangePicker "value" property',
927
+ 'The use of "value" prop in "BentoDateRangePicker" is no longer supported. Use the "v-model" or "model-value" property instead.',
928
+ "2.0.0"
929
+ ), s.granularities && s.variant !== "month" && s.granularities.find(({ type: l }) => l === "quarterly"))
930
+ throw new Error('Quarterly granularity is only supported by BentoDateRangePicker with variant: "month"');
931
+ }), Me([() => s.value, () => s.modelValue], () => {
932
+ ye.value = B.value, H.value = structuredClone(Ce(E));
933
+ });
934
+ const le = b(() => [
935
+ {
936
+ title: d("apply"),
937
+ event: () => {
938
+ ne(ee.value), re(), se.value = !0;
939
+ },
940
+ disabled: se.value
941
+ },
942
+ {
943
+ title: d("cancel"),
944
+ event: re
945
+ }
946
+ ]);
947
+ Me(ee, (l) => {
948
+ if (s.hasActions) {
949
+ se.value = v.value;
950
+ return;
951
+ }
952
+ ne(l);
953
+ });
954
+ const oe = (l) => {
955
+ v.value = !1;
956
+ const p = (Y, _) => {
957
+ var W;
958
+ return Y ? me(Y, _, {
959
+ locale: f[(W = e.value) == null ? void 0 : W.substring(0, 2)] || f.enUS
960
+ }) : void 0;
961
+ };
962
+ E.startDate = p(l.startDate, M.NUMERIC_DATE_YEAR_FIRST), E.endDate = p(l.endDate, M.NUMERIC_DATE_YEAR_FIRST), E.startTime = p(l.startDate, M.HOUR_MINUTE_SECONDS), E.endTime = p(l.endDate, M.HOUR_MINUTE_SECONDS), ee.value = l;
963
+ }, Q = async () => {
964
+ v.value && (v.value = !1), ee.value = null;
965
+ }, G = () => {
966
+ if (!S.value) {
967
+ S.value = !0;
968
+ return;
969
+ }
970
+ v.value || (S.value = !1);
971
+ }, i = (l) => {
972
+ v.value = !1, l.startTime && (E.startTime = l.startTime), l.endTime && (E.endTime = l.endTime);
973
+ }, Te = (l) => {
974
+ v.value = !0, E.startDate = l.startDate, E.endDate = l.endDate, ee.value = { startDate: null, endDate: null };
975
+ }, ge = (l) => {
976
+ if (l) {
977
+ const p = (_, W) => {
978
+ var be;
979
+ return _ ? me(_, W, {
980
+ locale: f[(be = e.value) == null ? void 0 : be.substring(0, 2)] || f.enUS
981
+ }) : void 0;
982
+ }, Y = (_) => {
983
+ var W;
984
+ return me(_, M.NUMERIC_DATE_YEAR_FIRST, {
985
+ locale: f[(W = e.value) == null ? void 0 : W.substring(0, 2)] || f.enUS
986
+ });
987
+ };
988
+ E.startDate = Y(l.startDate), E.endDate = Y(l.endDate), E.startTime = p(
989
+ l.startDate,
990
+ M.HOUR_MINUTE_SECONDS
991
+ ), E.endTime = p(l.endDate, M.HOUR_MINUTE_SECONDS), ee.value = l;
992
+ }
993
+ };
994
+ return (l, p) => St((F(), Se("div", va, [
995
+ l.label ? (F(), V(D(Kt), {
996
+ key: 0,
997
+ id: D(X),
998
+ label: l.label,
999
+ "tooltip-text": l.tooltipText,
1000
+ optional: l.optional,
1001
+ required: l.required
1002
+ }, null, 8, ["id", "label", "tooltip-text", "optional", "required"])) : A("", !0),
1003
+ ae("div", {
1004
+ onKeydown: Ge(G, ["enter"])
1005
+ }, [
1006
+ z(D(Ct), {
1007
+ ref_key: "inputContainerRef",
1008
+ ref: Z,
1009
+ "always-combobox-is-input": "",
1010
+ ariaControls: D(y),
1011
+ ariaExpanded: S.value,
1012
+ "aria-labelledby": l.label ? D(X) : null,
1013
+ "aria-describedby": Oe.value,
1014
+ disabled: l.disabled,
1015
+ "is-invalid": !!l.errorMessage || T.value,
1016
+ open: S.value,
1017
+ "display-value": te.value,
1018
+ readonly: D(j),
1019
+ onOpen: we,
1020
+ onClear: Q,
1021
+ onClose: re
1022
+ }, null, 8, ["ariaControls", "ariaExpanded", "aria-labelledby", "aria-describedby", "disabled", "is-invalid", "open", "display-value", "readonly"])
1023
+ ], 32),
1024
+ T.value ? (F(), V(D(Ze), {
1025
+ key: 1,
1026
+ id: D(h),
1027
+ "error-message": D(d)("provideDateInAFormat"),
1028
+ class: "b-date-range-picker__error-message"
1029
+ }, null, 8, ["id", "error-message"])) : A("", !0),
1030
+ l.errorMessage ? (F(), V(D(Ze), {
1031
+ key: 2,
1032
+ id: D(k),
1033
+ "error-message": l.errorMessage,
1034
+ class: "b-date-range-picker__error-message"
1035
+ }, null, 8, ["id", "error-message"])) : A("", !0),
1036
+ l.description ? (F(), V(D(Ue), {
1037
+ key: 3,
1038
+ id: D(C),
1039
+ class: _e(["b-date-range-picker__description", ce.value]),
1040
+ el: "span"
1041
+ }, {
1042
+ default: P(() => [
1043
+ ie(_t(l.description), 1)
1044
+ ]),
1045
+ _: 1
1046
+ }, 8, ["id", "class"])) : A("", !0),
1047
+ Z.value ? (F(), V(D(wt), {
1048
+ key: 4,
1049
+ id: D(y),
1050
+ class: "b-date-range-picker__container",
1051
+ open: S.value,
1052
+ "target-element": Z.value,
1053
+ "aria-label": De.value,
1054
+ position: "bottom-start",
1055
+ "without-space": "",
1056
+ "fit-content": "",
1057
+ "trap-all": "",
1058
+ "overflow-visible": "",
1059
+ onKeydown: Ge(re, ["esc", "native"])
1060
+ }, {
1061
+ default: P(() => [
1062
+ z(D(ma), {
1063
+ "allow-time-input": $.value,
1064
+ "quick-select-ranges": R.value,
1065
+ value: de.value,
1066
+ "first-day-of-week": l.firstDayOfWeek,
1067
+ granularities: l.granularities,
1068
+ "is-date-disabled": l.isDateDisabled,
1069
+ "max-range": l.maxRange,
1070
+ min: l.min,
1071
+ max: l.max,
1072
+ "number-of-months": n.value,
1073
+ "show-end-date-on-open": l.showEndDateOnOpen,
1074
+ "date-form-data": O.value,
1075
+ variant: l.variant,
1076
+ onCustomRange: ge,
1077
+ onInput: oe,
1078
+ onError: Te,
1079
+ onFormDate: i
1080
+ }, Mt({ _: 2 }, [
1081
+ l.hasActions ? {
1082
+ name: "actions",
1083
+ fn: P(() => [
1084
+ z(D(Ot)),
1085
+ ae("div", pa, [
1086
+ z(D(Ft), {
1087
+ actions: le.value,
1088
+ layout: D(Pt).SPACE_BETWEEN
1089
+ }, null, 8, ["actions", "layout"])
1090
+ ])
1091
+ ]),
1092
+ key: "0"
1093
+ } : void 0
1094
+ ]), 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"])
1095
+ ]),
1096
+ _: 1
1097
+ }, 8, ["id", "open", "target-element", "aria-label"])) : A("", !0)
1098
+ ])), [
1099
+ [D(Lt), re]
1100
+ ]);
1101
+ }
1102
+ }), Ha = /* @__PURE__ */ ut(Ta, [["__scopeId", "data-v-6916f9db"]]);
1103
+ export {
1104
+ Ha as B,
1105
+ ma as D,
1106
+ sa as a,
1107
+ he as i
1108
+ };
1109
+ //# sourceMappingURL=date-range-picker.BgEM0fyZ.js.map