@adyen/bento-vue3 1.5.0 → 1.6.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 (238) hide show
  1. package/dist/@types/packages/vue2/src/components/avatar-image/avatar-image.vue.d.ts +1 -1
  2. package/dist/@types/packages/vue2/src/components/button/button.vue.d.ts +77 -77
  3. package/dist/@types/packages/vue2/src/components/button/components/loading-button/loading-button.vue.d.ts +3 -3
  4. package/dist/@types/packages/vue2/src/components/card/card.vue.d.ts +7 -1
  5. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.vue.d.ts +3 -3
  6. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnWidth/useCalculateColumnWidth.d.ts +6 -2
  7. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateStickyElementHeight/useCalculateStickyElementHeight.d.ts +2 -0
  8. package/dist/@types/packages/vue2/src/components/data-grid/composables/useColumnReorderer/useColumnReorderer.d.ts +2 -0
  9. package/dist/@types/packages/vue2/src/components/data-grid/composables/useConfigSettings/useConfigSettings.d.ts +3 -0
  10. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.types.d.ts +2 -1
  11. package/dist/@types/packages/vue2/src/components/data-grid/data-grid.vue.d.ts +49 -11
  12. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-base-textbox/dropdown-base-textbox.vue.d.ts +2 -2
  13. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-default-textbox/dropdown-default-textbox.vue.d.ts +2 -2
  14. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-options-container/dropdown-options-container.vue.d.ts +32 -33
  15. package/dist/@types/packages/vue2/src/components/dropdown/components/dropdown-small-textbox/dropdown-small-textbox.vue.d.ts +1 -1
  16. package/dist/@types/packages/vue2/src/components/dropdown/dropdown.vue.d.ts +3 -3
  17. package/dist/@types/packages/vue2/src/components/filter-bar/components/all-filters-modal/all-filters-modal.vue.d.ts +60 -60
  18. package/dist/@types/packages/vue2/src/components/filter-bar/components/base-filter-button/base-filter-button.vue.d.ts +1 -1
  19. package/dist/@types/packages/vue2/src/components/filter-bar/components/boolean-filter/boolean-filter.vue.d.ts +1 -1
  20. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-filter/date-filter.vue.d.ts +1 -1
  21. package/dist/@types/packages/vue2/src/components/filter-bar/components/date-range-filter/date-range-filter.vue.d.ts +2 -2
  22. package/dist/@types/packages/vue2/src/components/filter-bar/components/input-filter/input-filter.vue.d.ts +1 -1
  23. package/dist/@types/packages/vue2/src/components/filter-bar/components/range-filter/range-filter.vue.d.ts +1 -1
  24. package/dist/@types/packages/vue2/src/components/filter-bar/components/select-filter/select-filter.vue.d.ts +2 -1
  25. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.types.d.ts +7 -3
  26. package/dist/@types/packages/vue2/src/components/filter-bar/filter-bar.vue.d.ts +11 -1
  27. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-field-tip.vue.d.ts +17 -1
  28. package/dist/@types/packages/vue2/src/components/form-layout/components/form-layout-field-tip/form-layout-tip.types.d.ts +3 -0
  29. package/dist/@types/packages/vue2/src/components/header/header.vue.d.ts +3 -0
  30. package/dist/@types/packages/vue2/src/components/info-icon/info-icon.vue.d.ts +3 -3
  31. package/dist/@types/packages/vue2/src/components/internal/base-button/base-button.vue.d.ts +1 -1
  32. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/index.d.ts +1 -0
  33. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/composables/useFixedScroller.d.ts +15 -0
  34. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/fixed-scroller.vue.d.ts +9 -0
  35. package/dist/@types/packages/vue2/src/components/internal/fixed-scroller/index.d.ts +1 -0
  36. package/dist/@types/packages/vue2/src/components/internal/index.d.ts +1 -0
  37. package/dist/@types/packages/vue2/src/components/menu/components/menu-item/menu-item.vue.d.ts +4 -5
  38. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +3 -3
  39. package/dist/@types/packages/vue2/src/components/modal/components/base-modal/base-modal.vue.d.ts +3 -3
  40. package/dist/@types/packages/vue2/src/components/modal/modal.vue.d.ts +10 -1
  41. package/dist/@types/packages/vue2/src/components/pagination/pagination.vue.d.ts +1 -1
  42. package/dist/@types/packages/vue2/src/components/popover/popover.vue.d.ts +4 -4
  43. package/dist/@types/packages/vue2/src/components/popper-container/popper-container.vue.d.ts +4 -4
  44. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +3 -3
  45. package/dist/@types/packages/vue2/src/components/status/status.vue.d.ts +2 -2
  46. package/dist/@types/packages/vue2/src/components/stepper/stepper.vue.d.ts +3 -3
  47. package/dist/@types/packages/vue2/src/components/structured-list/components/structered-list-item/structured-list-item.vue.d.ts +1 -1
  48. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item/summary-grid-item.vue.d.ts +1 -1
  49. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-amount/summary-grid-item-amount.vue.d.ts +1 -1
  50. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-numeric/summary-grid-item-numeric.vue.d.ts +1 -1
  51. package/dist/@types/packages/vue2/src/components/summary-grid/components/summary-grid-item-percentage/summary-grid-item-percentage.vue.d.ts +1 -1
  52. package/dist/@types/packages/vue2/src/components/tabs/components/tab.types.d.ts +2 -1
  53. package/dist/@types/packages/vue2/src/components/tabs/tabs.types.d.ts +1 -1
  54. package/dist/@types/packages/vue2/src/components/tag/tag.vue.d.ts +4 -4
  55. package/dist/@types/packages/vue2/src/components/textarea/textarea.vue.d.ts +24 -52
  56. package/dist/@types/packages/vue2/src/components/timeline/components/timeline-item/timeline-item.vue.d.ts +4 -4
  57. package/dist/@types/packages/vue2/src/components/tooltip/tooltip.vue.d.ts +13 -13
  58. package/dist/@types/packages/vue2/src/composables/use-expandable-content-height/use-expandable-content-height.d.ts +4 -0
  59. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.keys.d.ts +1 -0
  60. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.types.d.ts +6 -0
  61. package/dist/@types/packages/vue2/src/templates/data-grid-template/data-grid-template.vue.d.ts +77 -1
  62. package/dist/@types/packages/vue2/src/templates/data-grid-template/index.d.ts +1 -0
  63. package/dist/@types/packages/vue2/src/utils/ts/truncate.d.ts +1 -1
  64. package/dist/accordion.js +42 -47
  65. package/dist/accordion.js.map +1 -1
  66. package/dist/alert.js +4 -4
  67. package/dist/assets/base-modal.css +1 -1
  68. package/dist/assets/button.css +1 -1
  69. package/dist/assets/controls-group.css +1 -1
  70. package/dist/assets/dropdown.css +1 -1
  71. package/dist/assets/index.css +1 -1
  72. package/dist/assets/index10.css +1 -1
  73. package/dist/assets/index11.css +1 -1
  74. package/dist/assets/index12.css +1 -1
  75. package/dist/assets/index13.css +1 -1
  76. package/dist/assets/index14.css +1 -1
  77. package/dist/assets/index15.css +1 -1
  78. package/dist/assets/index16.css +1 -1
  79. package/dist/assets/index17.css +1 -1
  80. package/dist/assets/index18.css +1 -1
  81. package/dist/assets/index19.css +1 -1
  82. package/dist/assets/index2.css +1 -1
  83. package/dist/assets/index20.css +1 -1
  84. package/dist/assets/index21.css +1 -1
  85. package/dist/assets/index22.css +1 -1
  86. package/dist/assets/index23.css +1 -1
  87. package/dist/assets/index24.css +1 -1
  88. package/dist/assets/index25.css +1 -1
  89. package/dist/assets/index26.css +1 -1
  90. package/dist/assets/index28.css +1 -1
  91. package/dist/assets/index29.css +1 -1
  92. package/dist/assets/index3.css +1 -1
  93. package/dist/assets/index30.css +1 -1
  94. package/dist/assets/index31.css +1 -1
  95. package/dist/assets/index32.css +1 -1
  96. package/dist/assets/index33.css +1 -1
  97. package/dist/assets/index34.css +1 -1
  98. package/dist/assets/index35.css +1 -1
  99. package/dist/assets/index36.css +1 -1
  100. package/dist/assets/index37.css +1 -1
  101. package/dist/assets/index38.css +1 -1
  102. package/dist/assets/index39.css +1 -1
  103. package/dist/assets/index4.css +1 -1
  104. package/dist/assets/index40.css +1 -1
  105. package/dist/assets/index41.css +1 -1
  106. package/dist/assets/index42.css +1 -1
  107. package/dist/assets/index43.css +1 -1
  108. package/dist/assets/index44.css +1 -1
  109. package/dist/assets/index45.css +1 -0
  110. package/dist/assets/index5.css +1 -1
  111. package/dist/assets/index6.css +1 -1
  112. package/dist/assets/index7.css +1 -1
  113. package/dist/assets/index8.css +1 -1
  114. package/dist/assets/index9.css +1 -1
  115. package/dist/assets/loading-button.css +1 -1
  116. package/dist/avatar-image.js +1 -1
  117. package/dist/badge.js +1 -1
  118. package/dist/button.js +5 -5
  119. package/dist/card.js +135 -121
  120. package/dist/card.js.map +1 -1
  121. package/dist/checkbox.js +24 -25
  122. package/dist/checkbox.js.map +1 -1
  123. package/dist/chunks/{base-button.9740f320.js → base-button.90687c75.js} +3 -3
  124. package/dist/chunks/{base-button.9740f320.js.map → base-button.90687c75.js.map} +1 -1
  125. package/dist/chunks/{base-modal.be77971f.js → base-modal.c956b084.js} +58 -58
  126. package/dist/chunks/base-modal.c956b084.js.map +1 -0
  127. package/dist/chunks/{button.7072457f.js → button.9d72e2d7.js} +3 -3
  128. package/dist/chunks/{button.7072457f.js.map → button.9d72e2d7.js.map} +1 -1
  129. package/dist/chunks/{calendar.1e50c7d1.js → calendar.e7db78d0.js} +6 -5
  130. package/dist/chunks/{calendar.1e50c7d1.js.map → calendar.e7db78d0.js.map} +1 -1
  131. package/dist/chunks/{checkbox.638bab98.js → checkbox.ecbb4f0c.js} +4 -4
  132. package/dist/chunks/{checkbox.638bab98.js.map → checkbox.ecbb4f0c.js.map} +1 -1
  133. package/dist/chunks/{controls-group.efcf4e8d.js → controls-group.34f1f82a.js} +2 -2
  134. package/dist/chunks/{controls-group.efcf4e8d.js.map → controls-group.34f1f82a.js.map} +1 -1
  135. package/dist/chunks/{copy.527c3d76.js → copy.aaec57b6.js} +3 -3
  136. package/dist/chunks/{copy.527c3d76.js.map → copy.aaec57b6.js.map} +1 -1
  137. package/dist/chunks/date-input.9186a0bf.js.map +1 -1
  138. package/dist/chunks/{dropdown-default-textbox.a1789dc7.js → dropdown-default-textbox.88a42e9b.js} +3 -3
  139. package/dist/chunks/{dropdown-default-textbox.a1789dc7.js.map → dropdown-default-textbox.88a42e9b.js.map} +1 -1
  140. package/dist/chunks/{dropdown.22e51667.js → dropdown.6a484461.js} +182 -177
  141. package/dist/chunks/dropdown.6a484461.js.map +1 -0
  142. package/dist/chunks/{error-message.37b6c7aa.js → error-message.11e1fa1f.js} +2 -2
  143. package/dist/chunks/{error-message.37b6c7aa.js.map → error-message.11e1fa1f.js.map} +1 -1
  144. package/dist/chunks/{footer-actions.5275203a.js → footer-actions.a65cb2e3.js} +3 -3
  145. package/dist/chunks/{footer-actions.5275203a.js.map → footer-actions.a65cb2e3.js.map} +1 -1
  146. package/dist/chunks/{grid-layout.c98e6bc7.js → grid-layout.7c919507.js} +2 -2
  147. package/dist/chunks/{grid-layout.c98e6bc7.js.map → grid-layout.7c919507.js.map} +1 -1
  148. package/dist/chunks/{index.c22c4278.js → index.424e2ea4.js} +6 -6
  149. package/dist/chunks/{index.c22c4278.js.map → index.424e2ea4.js.map} +1 -1
  150. package/dist/chunks/{index.dd20095f.js → index.655b761f.js} +3 -3
  151. package/dist/chunks/{index.dd20095f.js.map → index.655b761f.js.map} +1 -1
  152. package/dist/chunks/{index.c62ea69f.js → index.754349ff.js} +2 -2
  153. package/dist/chunks/{index.c62ea69f.js.map → index.754349ff.js.map} +1 -1
  154. package/dist/chunks/{index.a57930ba.js → index.84f6360f.js} +11 -10
  155. package/dist/chunks/{index.a57930ba.js.map → index.84f6360f.js.map} +1 -1
  156. package/dist/chunks/{index.32ed68b7.js → index.9fc54b60.js} +2 -2
  157. package/dist/chunks/{index.32ed68b7.js.map → index.9fc54b60.js.map} +1 -1
  158. package/dist/chunks/{index.604da8e9.js → index.bc9e0cde.js} +3 -3
  159. package/dist/chunks/{index.604da8e9.js.map → index.bc9e0cde.js.map} +1 -1
  160. package/dist/chunks/{listbox-option-tag.fa70334e.js → listbox-option-tag.ea9f377f.js} +3 -3
  161. package/dist/chunks/{listbox-option-tag.fa70334e.js.map → listbox-option-tag.ea9f377f.js.map} +1 -1
  162. package/dist/chunks/{listbox.4205c0de.js → listbox.a7255ce1.js} +4 -4
  163. package/dist/chunks/{listbox.4205c0de.js.map → listbox.a7255ce1.js.map} +1 -1
  164. package/dist/chunks/{loading-button.41c15584.js → loading-button.fb1f20a3.js} +32 -32
  165. package/dist/chunks/loading-button.fb1f20a3.js.map +1 -0
  166. package/dist/chunks/on-click-outside.3e0c3e2a.js.map +1 -1
  167. package/dist/chunks/{tooltip.c8350cd0.js → tooltip.6af06509.js} +64 -63
  168. package/dist/chunks/tooltip.6af06509.js.map +1 -0
  169. package/dist/chunks/use-expandable-content-height.62fc84e5.js +17 -0
  170. package/dist/chunks/use-expandable-content-height.62fc84e5.js.map +1 -0
  171. package/dist/chunks/use-has-slot.4d98bf29.js +15 -0
  172. package/dist/chunks/use-has-slot.4d98bf29.js.map +1 -0
  173. package/dist/code-snippet.js +7 -7
  174. package/dist/code-snippet.js.map +1 -1
  175. package/dist/country.js +2 -2
  176. package/dist/currency.js +1 -1
  177. package/dist/data-grid.js +944 -888
  178. package/dist/data-grid.js.map +1 -1
  179. package/dist/date-picker.js +7 -7
  180. package/dist/date-range-picker.js +2 -2
  181. package/dist/date.js +1 -1
  182. package/dist/divider.js +1 -1
  183. package/dist/dropdown.js +4 -4
  184. package/dist/empty-state.js +3 -3
  185. package/dist/filter-bar.js +990 -904
  186. package/dist/filter-bar.js.map +1 -1
  187. package/dist/focus-trap.js +1 -1
  188. package/dist/form-layout.js +81 -70
  189. package/dist/form-layout.js.map +1 -1
  190. package/dist/header.js +92 -87
  191. package/dist/header.js.map +1 -1
  192. package/dist/index.js +14 -14
  193. package/dist/info-icon.js +12 -12
  194. package/dist/info-icon.js.map +1 -1
  195. package/dist/input-field.js +115 -110
  196. package/dist/input-field.js.map +1 -1
  197. package/dist/internal.js +144 -18
  198. package/dist/internal.js.map +1 -1
  199. package/dist/link.js +38 -35
  200. package/dist/link.js.map +1 -1
  201. package/dist/loading-indicator.js +1 -1
  202. package/dist/menu.js +8 -6
  203. package/dist/menu.js.map +1 -1
  204. package/dist/modal.js +52 -44
  205. package/dist/modal.js.map +1 -1
  206. package/dist/pagination.js +4 -4
  207. package/dist/payment-method.js +2 -2
  208. package/dist/popover.js +4 -4
  209. package/dist/popper-container.js +1 -1
  210. package/dist/radio-group.js +5 -5
  211. package/dist/search-bar.js +7 -7
  212. package/dist/search-bar.js.map +1 -1
  213. package/dist/segmented-control.js +4 -4
  214. package/dist/sidepanel.js +19 -19
  215. package/dist/sidepanel.js.map +1 -1
  216. package/dist/status.js +2 -2
  217. package/dist/stepper.js +3 -3
  218. package/dist/structured-list.js +1 -1
  219. package/dist/summary-grid.js +5 -5
  220. package/dist/tabs.js +64 -64
  221. package/dist/tabs.js.map +1 -1
  222. package/dist/tag.js +3 -3
  223. package/dist/textarea.js +188 -229
  224. package/dist/textarea.js.map +1 -1
  225. package/dist/timeline.js +37 -37
  226. package/dist/timeline.js.map +1 -1
  227. package/dist/toast.js +4 -4
  228. package/dist/toggle.js +3 -3
  229. package/dist/typography.js +1 -1
  230. package/dist/web-types.json +1 -1
  231. package/package.json +5 -3
  232. package/dist/@types/packages/vue2/src/components/data-grid/composables/useCalculateColumnHeadersTopPosition/useCalculateColumnHeadersTopPosition.d.ts +0 -2
  233. package/dist/chunks/base-modal.be77971f.js.map +0 -1
  234. package/dist/chunks/dropdown.22e51667.js.map +0 -1
  235. package/dist/chunks/loading-button.41c15584.js.map +0 -1
  236. package/dist/chunks/tooltip.c8350cd0.js.map +0 -1
  237. package/dist/chunks/use-has-slot.3daaffc6.js +0 -17
  238. package/dist/chunks/use-has-slot.3daaffc6.js.map +0 -1
package/dist/header.js CHANGED
@@ -1,24 +1,24 @@
1
- import { defineComponent as X, computed as b, openBlock as p, createElementBlock as H, createElementVNode as h, createVNode as Y, unref as _, createBlock as g, createCommentVNode as v, resolveComponent as T, mergeProps as G, withCtx as A, createTextVNode as S, toDisplayString as E } from "vue";
2
- import { BentoMenu as L } from "./menu.js";
3
- import { BentoButtonActions as V } from "./button.js";
4
- import { _ as k } from "./chunks/_plugin-vue_export-helper.dad06003.js";
5
- import { BentoInfoIcon as W } from "./info-icon.js";
6
- import { u as q } from "./chunks/use-has-slot.3daaffc6.js";
7
- import { B as F, c as x, a as j } from "./chunks/index.32ed68b7.js";
8
- import { u as z } from "./chunks/i18n.6c402773.js";
9
- import { c as M, a as J } from "./chunks/index.86453263.js";
10
- import { r as d, t as c, e as I, g as O, d as K, f as Q } from "./chunks/index.f55fdc32.js";
11
- import { e as Z } from "./chunks/index.fdf12170.js";
12
- import "./assets/index24.css";
13
- function ee(e, n) {
1
+ import { defineComponent as C, computed as _, openBlock as p, createElementBlock as X, createElementVNode as v, createVNode as H, unref as h, createBlock as g, createCommentVNode as M, resolveComponent as T, normalizeClass as G, mergeProps as L, withCtx as A, createTextVNode as S, toDisplayString as E } from "vue";
2
+ import { BentoMenu as V } from "./menu.js";
3
+ import { BentoButtonActions as W } from "./button.js";
4
+ import { _ as P } from "./chunks/_plugin-vue_export-helper.dad06003.js";
5
+ import { BentoInfoIcon as q } from "./info-icon.js";
6
+ import { u as z } from "./chunks/use-has-slot.4d98bf29.js";
7
+ import { B as F, c as O, a as j } from "./chunks/index.9fc54b60.js";
8
+ import { u as J } from "./chunks/i18n.6c402773.js";
9
+ import { c as b, a as K } from "./chunks/index.86453263.js";
10
+ import { r as d, t as c, e as N, g as w, d as Q, f as Z } from "./chunks/index.f55fdc32.js";
11
+ import { e as ee } from "./chunks/index.fdf12170.js";
12
+ import "./assets/index7.css";
13
+ function te(e, n) {
14
14
  d(2, arguments);
15
15
  var o = c(e), t = c(n), r = o.getFullYear() - t.getFullYear(), a = o.getMonth() - t.getMonth();
16
16
  return r * 12 + a;
17
17
  }
18
- function te(e, n) {
18
+ function ne(e, n) {
19
19
  return d(2, arguments), c(e).getTime() - c(n).getTime();
20
20
  }
21
- var w = {
21
+ var x = {
22
22
  ceil: Math.ceil,
23
23
  round: Math.round,
24
24
  floor: Math.floor,
@@ -26,86 +26,86 @@ var w = {
26
26
  return e < 0 ? Math.ceil(e) : Math.floor(e);
27
27
  }
28
28
  // Math.trunc is not supported by IE
29
- }, ne = "trunc";
30
- function ae(e) {
31
- return e ? w[e] : w[ne];
32
- }
29
+ }, ae = "trunc";
33
30
  function oe(e) {
31
+ return e ? x[e] : x[ae];
32
+ }
33
+ function re(e) {
34
34
  d(1, arguments);
35
35
  var n = c(e), o = n.getMonth();
36
36
  return n.setFullYear(n.getFullYear(), o + 1, 0), n.setHours(23, 59, 59, 999), n;
37
37
  }
38
- function re(e) {
38
+ function se(e) {
39
39
  d(1, arguments);
40
40
  var n = c(e);
41
- return Z(n).getTime() === oe(n).getTime();
41
+ return ee(n).getTime() === re(n).getTime();
42
42
  }
43
- function se(e, n) {
43
+ function ie(e, n) {
44
44
  d(2, arguments);
45
- var o = c(e), t = c(n), r = M(o, t), a = Math.abs(ee(o, t)), s;
45
+ var o = c(e), t = c(n), r = b(o, t), a = Math.abs(te(o, t)), s;
46
46
  if (a < 1)
47
47
  s = 0;
48
48
  else {
49
49
  o.getMonth() === 1 && o.getDate() > 27 && o.setDate(30), o.setMonth(o.getMonth() - r * a);
50
- var u = M(o, t) === -r;
51
- re(c(e)) && a === 1 && M(e, t) === 1 && (u = !1), s = r * (a - Number(u));
50
+ var l = b(o, t) === -r;
51
+ se(c(e)) && a === 1 && b(e, t) === 1 && (l = !1), s = r * (a - Number(l));
52
52
  }
53
53
  return s === 0 ? 0 : s;
54
54
  }
55
- function ie(e, n, o) {
55
+ function ce(e, n, o) {
56
56
  d(2, arguments);
57
- var t = te(e, n) / 1e3;
58
- return ae(o == null ? void 0 : o.roundingMethod)(t);
57
+ var t = ne(e, n) / 1e3;
58
+ return oe(o == null ? void 0 : o.roundingMethod)(t);
59
59
  }
60
- var U = 1440, ce = 2520, D = 43200, ue = 86400;
61
- function le(e, n) {
60
+ var U = 1440, le = 2520, D = 43200, ue = 86400;
61
+ function de(e, n) {
62
62
  var o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
63
63
  d(2, arguments);
64
- var t = o.locale || I;
64
+ var t = o.locale || N;
65
65
  if (!t.formatDistance)
66
66
  throw new RangeError("locale must contain formatDistance property");
67
- var r = M(e, n);
67
+ var r = b(e, n);
68
68
  if (isNaN(r))
69
69
  throw new RangeError("Invalid time value");
70
- var a = J(o);
70
+ var a = K(o);
71
71
  a.addSuffix = !!o.addSuffix, a.comparison = r;
72
- var s, u;
73
- r > 0 ? (s = c(n), u = c(e)) : (s = c(e), u = c(n));
74
- var l = ie(u, s), C = (O(u) - O(s)) / 1e3, i = Math.round((l - C) / 60), f;
72
+ var s, l;
73
+ r > 0 ? (s = c(n), l = c(e)) : (s = c(e), l = c(n));
74
+ var u = ce(l, s), Y = (w(l) - w(s)) / 1e3, i = Math.round((u - Y) / 60), m;
75
75
  if (i < 2)
76
- return o.includeSeconds ? l < 5 ? t.formatDistance("lessThanXSeconds", 5, a) : l < 10 ? t.formatDistance("lessThanXSeconds", 10, a) : l < 20 ? t.formatDistance("lessThanXSeconds", 20, a) : l < 40 ? t.formatDistance("halfAMinute", null, a) : l < 60 ? t.formatDistance("lessThanXMinutes", 1, a) : t.formatDistance("xMinutes", 1, a) : i === 0 ? t.formatDistance("lessThanXMinutes", 1, a) : t.formatDistance("xMinutes", i, a);
76
+ return o.includeSeconds ? u < 5 ? t.formatDistance("lessThanXSeconds", 5, a) : u < 10 ? t.formatDistance("lessThanXSeconds", 10, a) : u < 20 ? t.formatDistance("lessThanXSeconds", 20, a) : u < 40 ? t.formatDistance("halfAMinute", null, a) : u < 60 ? t.formatDistance("lessThanXMinutes", 1, a) : t.formatDistance("xMinutes", 1, a) : i === 0 ? t.formatDistance("lessThanXMinutes", 1, a) : t.formatDistance("xMinutes", i, a);
77
77
  if (i < 45)
78
78
  return t.formatDistance("xMinutes", i, a);
79
79
  if (i < 90)
80
80
  return t.formatDistance("aboutXHours", 1, a);
81
81
  if (i < U) {
82
- var P = Math.round(i / 60);
83
- return t.formatDistance("aboutXHours", P, a);
82
+ var k = Math.round(i / 60);
83
+ return t.formatDistance("aboutXHours", k, a);
84
84
  } else {
85
- if (i < ce)
85
+ if (i < le)
86
86
  return t.formatDistance("xDays", 1, a);
87
87
  if (i < D) {
88
88
  var R = Math.round(i / U);
89
89
  return t.formatDistance("xDays", R, a);
90
90
  } else if (i < ue)
91
- return f = Math.round(i / D), t.formatDistance("aboutXMonths", f, a);
91
+ return m = Math.round(i / D), t.formatDistance("aboutXMonths", m, a);
92
92
  }
93
- if (f = se(u, s), f < 12) {
93
+ if (m = ie(l, s), m < 12) {
94
94
  var $ = Math.round(i / D);
95
95
  return t.formatDistance("xMonths", $, a);
96
96
  } else {
97
- var N = f % 12, y = Math.floor(f / 12);
98
- return N < 3 ? t.formatDistance("aboutXYears", y, a) : N < 9 ? t.formatDistance("overXYears", y, a) : t.formatDistance("almostXYears", y + 1, a);
97
+ var I = m % 12, y = Math.floor(m / 12);
98
+ return I < 3 ? t.formatDistance("aboutXYears", y, a) : I < 9 ? t.formatDistance("overXYears", y, a) : t.formatDistance("almostXYears", y + 1, a);
99
99
  }
100
100
  }
101
- function de(e, n) {
102
- return d(1, arguments), le(e, Date.now(), n);
101
+ function fe(e, n) {
102
+ return d(1, arguments), de(e, Date.now(), n);
103
103
  }
104
- const fe = { class: "b-button-actions-with-menu" }, me = {
104
+ const me = { class: "b-button-actions-with-menu" }, pe = {
105
105
  role: "group",
106
106
  class: "b-button-actions-with-menu__container-wrapper"
107
- }, pe = {}, _e = /* @__PURE__ */ X({
108
- ...pe,
107
+ }, _e = {}, he = /* @__PURE__ */ C({
108
+ ..._e,
109
109
  __name: "button-actions-with-menu",
110
110
  props: {
111
111
  /**
@@ -156,7 +156,7 @@ const fe = { class: "b-button-actions-with-menu" }, me = {
156
156
  }
157
157
  },
158
158
  setup(e) {
159
- const n = e, o = b(() => n.actions.slice(0, n.displayedActions)), t = b(
159
+ const n = e, o = _(() => n.actions.slice(0, n.displayedActions)), t = _(
160
160
  () => n.displayedActions && n.displayedActions < n.actions.length ? n.actions.slice(n.displayedActions, n.actions.length).map((r) => ({
161
161
  text: r.title,
162
162
  handler: r.event,
@@ -165,30 +165,30 @@ const fe = { class: "b-button-actions-with-menu" }, me = {
165
165
  disabled: r.disabled
166
166
  })) : []
167
167
  );
168
- return (r, a) => (p(), H("div", fe, [
169
- h("div", me, [
170
- Y(_(V), { actions: _(o) }, null, 8, ["actions"]),
171
- _(t).length ? (p(), g(L, {
168
+ return (r, a) => (p(), X("div", me, [
169
+ v("div", pe, [
170
+ H(h(W), { actions: h(o) }, null, 8, ["actions"]),
171
+ h(t).length ? (p(), g(V, {
172
172
  key: 0,
173
- data: _(t)
174
- }, null, 8, ["data"])) : v("", !0)
173
+ data: h(t)
174
+ }, null, 8, ["data"])) : M("", !0)
175
175
  ])
176
176
  ]));
177
177
  }
178
178
  });
179
- const he = /* @__PURE__ */ k(_e, [["__scopeId", "data-v-d6721ccb"]]);
180
- var m = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(m || {});
179
+ const ve = /* @__PURE__ */ P(he, [["__scopeId", "data-v-d6721ccb"]]);
180
+ var f = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(f || {});
181
181
  const B = {
182
182
  "en-US": {
183
183
  lastUpdated: "Last updated: {date} ago"
184
184
  }
185
- }, ge = X({
185
+ }, ge = C({
186
186
  i18n: { messages: B },
187
187
  name: "bento-header",
188
188
  components: {
189
189
  BentoTypography: F,
190
- ButtonActionsWithMenu: he,
191
- BentoInfoIcon: W
190
+ ButtonActionsWithMenu: ve,
191
+ BentoInfoIcon: q
192
192
  },
193
193
  props: {
194
194
  /**
@@ -197,8 +197,8 @@ const B = {
197
197
  */
198
198
  variant: {
199
199
  type: String,
200
- default: m.PAGE,
201
- validator: (e) => Object.values(m).includes(e)
200
+ default: f.PAGE,
201
+ validator: (e) => Object.values(f).includes(e)
202
202
  },
203
203
  /**
204
204
  * Text used as a title
@@ -221,43 +221,48 @@ const B = {
221
221
  lastUpdated: { type: [Date, Number], default: null }
222
222
  },
223
223
  setup(e, { slots: n }) {
224
- const { t: o, locale: t } = z({ messages: B }), r = { de: K, enUS: I, fr: Q }, a = b(() => ({
225
- el: e.variant === m.PAGE ? x.H1 : x.H2,
224
+ const { t: o, locale: t } = J({ messages: B }), r = { de: Q, enUS: N, fr: Z }, a = _(() => ({
225
+ "b-header--component": e.variant === f.COMPONENT
226
+ })), s = _(() => ({
227
+ el: e.variant === f.PAGE ? O.H1 : O.H2,
226
228
  variant: j.TITLE,
227
- medium: e.variant === m.COMPONENT,
228
- large: e.variant === m.PAGE
229
- })), s = b(
229
+ medium: e.variant === f.COMPONENT,
230
+ large: e.variant === f.PAGE
231
+ })), l = _(
230
232
  () => e.lastUpdated ? o("lastUpdated", {
231
- date: de(e.lastUpdated, {
232
- locale: r[t.value.substring(0, 2)] || I
233
+ date: fe(e.lastUpdated, {
234
+ locale: r[t.value.substring(0, 2)] || N
233
235
  })
234
236
  }) : null
235
237
  );
236
238
  return {
237
- hasSlot: q(n),
238
- timestamp: s,
239
- typography: a
239
+ hasSlot: z(n),
240
+ conditionalClasses: a,
241
+ timestamp: l,
242
+ typography: s
240
243
  };
241
244
  }
242
245
  });
243
- const ve = { class: "b-header" }, Me = { class: "b-header__wrapper" }, be = { class: "b-header__title" };
246
+ const Me = { class: "b-header__wrapper" }, be = { class: "b-header__title" };
244
247
  function ye(e, n, o, t, r, a) {
245
- const s = T("bento-typography"), u = T("bento-info-icon"), l = T("button-actions-with-menu");
246
- return p(), H("div", ve, [
247
- h("div", Me, [
248
- h("div", be, [
249
- h("div", null, [
250
- Y(s, G(e.typography, { class: "b-header__text" }), {
248
+ const s = T("bento-typography"), l = T("bento-info-icon"), u = T("button-actions-with-menu");
249
+ return p(), X("div", {
250
+ class: G(["b-header", e.conditionalClasses])
251
+ }, [
252
+ v("div", Me, [
253
+ v("div", be, [
254
+ v("div", null, [
255
+ H(s, L(e.typography, { class: "b-header__text" }), {
251
256
  default: A(() => [
252
257
  S(E(e.title), 1)
253
258
  ]),
254
259
  _: 1
255
260
  }, 16),
256
- e.infoIconTooltipText ? (p(), g(u, {
261
+ e.infoIconTooltipText ? (p(), g(l, {
257
262
  key: 0,
258
263
  "tooltip-text": e.infoIconTooltipText,
259
264
  class: "b-header__tooltip"
260
- }, null, 8, ["tooltip-text"])) : v("", !0)
265
+ }, null, 8, ["tooltip-text"])) : M("", !0)
261
266
  ]),
262
267
  e.lastUpdated ? (p(), g(s, {
263
268
  key: 0,
@@ -269,18 +274,18 @@ function ye(e, n, o, t, r, a) {
269
274
  S(E(e.timestamp), 1)
270
275
  ]),
271
276
  _: 1
272
- })) : v("", !0)
277
+ })) : M("", !0)
273
278
  ]),
274
- e.actions ? (p(), g(l, {
279
+ e.actions ? (p(), g(u, {
275
280
  key: 0,
276
281
  actions: e.actions,
277
282
  "displayed-actions": 2,
278
283
  class: "b-header__actions"
279
- }, null, 8, ["actions"])) : v("", !0)
284
+ }, null, 8, ["actions"])) : M("", !0)
280
285
  ])
281
- ]);
286
+ ], 2);
282
287
  }
283
- const Be = /* @__PURE__ */ k(ge, [["render", ye], ["__scopeId", "data-v-6c5091b9"]]);
288
+ const Be = /* @__PURE__ */ P(ge, [["render", ye], ["__scopeId", "data-v-11801646"]]);
284
289
  export {
285
290
  Be as BentoHeader
286
291
  };
@@ -1 +1 @@
1
- {"version":3,"file":"header.js","sources":["../../../node_modules/date-fns/esm/differenceInCalendarMonths/index.js","../../../node_modules/date-fns/esm/differenceInMilliseconds/index.js","../../../node_modules/date-fns/esm/_lib/roundingMethods/index.js","../../../node_modules/date-fns/esm/endOfMonth/index.js","../../../node_modules/date-fns/esm/isLastDayOfMonth/index.js","../../../node_modules/date-fns/esm/differenceInMonths/index.js","../../../node_modules/date-fns/esm/differenceInSeconds/index.js","../../../node_modules/date-fns/esm/formatDistance/index.js","../../../node_modules/date-fns/esm/formatDistanceToNow/index.js","../../vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue","../../vue2/src/components/header/header.types.ts","../../vue2/src/components/header/header.vue"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * var result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\n\nexport default function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();\n var monthDiff = dateLeft.getMonth() - dateRight.getMonth();\n return yearDiff * 12 + monthDiff;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of milliseconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\n\nexport default function differenceInMilliseconds(dateLeft, dateRight) {\n requiredArgs(2, arguments);\n return toDate(dateLeft).getTime() - toDate(dateRight).getTime();\n}","var roundingMap = {\n ceil: Math.ceil,\n round: Math.round,\n floor: Math.floor,\n trunc: function (value) {\n return value < 0 ? Math.ceil(value) : Math.floor(value);\n } // Math.trunc is not supported by IE\n\n};\nvar defaultRoundingMethod = 'trunc';\nexport function getRoundingMethod(method) {\n return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\n\nexport default function endOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport endOfDay from \"../endOfDay/index.js\";\nimport endOfMonth from \"../endOfMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is the last day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * var result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\n\nexport default function isLastDayOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n return endOfDay(date).getTime() === endOfMonth(date).getTime();\n}","import toDate from \"../toDate/index.js\";\nimport differenceInCalendarMonths from \"../differenceInCalendarMonths/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport isLastDayOfMonth from \"../isLastDayOfMonth/index.js\";\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @description\n * Get the number of full months between the given dates using trunc as a default rounding method.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\n\nexport default function differenceInMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var sign = compareAsc(dateLeft, dateRight);\n var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));\n var result; // Check for the difference of less than month\n\n if (difference < 1) {\n result = 0;\n } else {\n if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {\n // This will check if the date is end of Feb and assign a higher end of month date\n // to compare it with Jan\n dateLeft.setDate(30);\n }\n\n dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full\n // If so, result must be decreased by 1 in absolute value\n\n var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign; // Check for cases of one full calendar month\n\n if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {\n isLastMonthNotFull = false;\n }\n\n result = sign * (difference - Number(isLastMonthNotFull));\n } // Prevent negative zero\n\n\n return result === 0 ? 0 : result;\n}","import differenceInMilliseconds from \"../differenceInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getRoundingMethod } from \"../_lib/roundingMethods/index.js\";\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of seconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\n\nexport default function differenceInSeconds(dateLeft, dateRight, options) {\n requiredArgs(2, arguments);\n var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;\n return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}","import compareAsc from \"../compareAsc/index.js\";\nimport differenceInMonths from \"../differenceInMonths/index.js\";\nimport differenceInSeconds from \"../differenceInSeconds/index.js\";\nimport defaultLocale from \"../locale/en-US/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MINUTES_IN_DAY = 1440;\nvar MINUTES_IN_ALMOST_TWO_DAYS = 2520;\nvar MINUTES_IN_MONTH = 43200;\nvar MINUTES_IN_TWO_MONTHS = 86400;\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWords ` to `formatDistance`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * - The order of arguments is swapped to make the function\n * consistent with `differenceIn...` functions.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWords(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 11, 32, 0),\n * { addSuffix: true }\n * ) //=> 'in about 1 hour'\n *\n * // v2.0.0 onward\n *\n * formatDistance(\n * new Date(1986, 3, 4, 11, 32, 0),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { addSuffix: true }\n * ) //=> 'in about 1 hour'\n * ```\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\n\nexport default function formatDistance(dirtyDate, dirtyBaseDate) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n requiredArgs(2, arguments);\n var locale = options.locale || defaultLocale;\n\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain formatDistance property');\n }\n\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n\n var localizeOptions = cloneObject(options);\n localizeOptions.addSuffix = Boolean(options.addSuffix);\n localizeOptions.comparison = comparison;\n var dateLeft;\n var dateRight;\n\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n\n var seconds = differenceInSeconds(dateRight, dateLeft);\n var offsetInSeconds = (getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft)) / 1000;\n var minutes = Math.round((seconds - offsetInSeconds) / 60);\n var months; // 0 up to 2 mins\n\n if (minutes < 2) {\n if (options.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance('lessThanXSeconds', 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance('lessThanXSeconds', 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance('lessThanXSeconds', 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance('halfAMinute', null, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', minutes, localizeOptions);\n }\n } // 2 mins up to 0.75 hrs\n\n } else if (minutes < 45) {\n return locale.formatDistance('xMinutes', minutes, localizeOptions); // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance('aboutXHours', 1, localizeOptions); // 1.5 hrs up to 24 hrs\n } else if (minutes < MINUTES_IN_DAY) {\n var hours = Math.round(minutes / 60);\n return locale.formatDistance('aboutXHours', hours, localizeOptions); // 1 day up to 1.75 days\n } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {\n return locale.formatDistance('xDays', 1, localizeOptions); // 1.75 days up to 30 days\n } else if (minutes < MINUTES_IN_MONTH) {\n var days = Math.round(minutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions); // 1 month up to 2 months\n } else if (minutes < MINUTES_IN_TWO_MONTHS) {\n months = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('aboutXMonths', months, localizeOptions);\n }\n\n months = differenceInMonths(dateRight, dateLeft); // 2 months up to 12 months\n\n if (months < 12) {\n var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('xMonths', nearestMonth, localizeOptions); // 1 year up to max Date\n } else {\n var monthsSinceStartOfYear = months % 12;\n var years = Math.floor(months / 12); // N years up to 1 years 3 months\n\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance('aboutXYears', years, localizeOptions); // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance('overXYears', years, localizeOptions); // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance('almostXYears', years + 1, localizeOptions);\n }\n }\n}","import distanceInWords from \"../formatDistance/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now | Result |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWordsToNow ` to `formatDistanceToNow`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsToNow(new Date(2014, 6, 2), { addSuffix: true })\n * //=> 'in 6 months'\n *\n * // v2.0.0 onward\n *\n * formatDistanceToNow(new Date(2014, 6, 2), { addSuffix: true })\n * //=> 'in 6 months'\n * ```\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - the object with options\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * var result = formatDistanceToNow(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * var result = formatDistanceToNow(\n * new Date(2015, 0, 1, 0, 0, 15),\n * {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * var result = formatDistanceToNow(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * var eoLocale = require('date-fns/locale/eo')\n * var result = formatDistanceToNow(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\n\nexport default function formatDistanceToNow(dirtyDate, dirtyOptions) {\n requiredArgs(1, arguments);\n return distanceInWords(dirtyDate, Date.now(), dirtyOptions);\n}","<template>\n <div class=\"b-button-actions-with-menu\">\n <div role=\"group\" class=\"b-button-actions-with-menu__container-wrapper\">\n <bento-button-actions :actions=\"computedActions\" />\n <bento-menu v-if=\"computedMenuActions.length\" :data=\"computedMenuActions\" />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import BentoMenu from '@/components/menu/menu.vue';\n import { BentoMenuItem } from '@/components/menu/components/menu-item/menu-item.types';\n import { BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n variant: 'default',\n external: true,\n to: 'https://www.adyen.com/'\n },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n required: true,\n },\n\n /**\n * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.\n */\n displayedActions: {\n type: Number,\n default: undefined,\n },\n });\n\n const computedActions = computed(() => props.actions.slice(0, props.displayedActions));\n\n const computedMenuActions = computed(() =>\n props.displayedActions && props.displayedActions < props.actions.length\n ? (props.actions.slice(props.displayedActions, props.actions.length).map(el => ({\n text: el.title,\n handler: el.event,\n icon: el.icon,\n critical: el.critical,\n disabled: el.disabled,\n })) as BentoMenuItem[])\n : []\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions-with-menu.scss\" />\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoHeaderVariant {\n PAGE = 'page',\n COMPONENT = 'component',\n}\n","<template>\n <div class=\"b-header\">\n <div class=\"b-header__wrapper\">\n <div class=\"b-header__title\">\n <div>\n <bento-typography v-bind=\"typography\" class=\"b-header__text\">{{ title }}</bento-typography>\n <bento-info-icon\n v-if=\"infoIconTooltipText\"\n :tooltip-text=\"infoIconTooltipText\"\n class=\"b-header__tooltip\"\n />\n </div>\n <bento-typography v-if=\"lastUpdated\" class=\"b-header__timestamp\" el=\"div\" variant=\"caption\">\n {{ timestamp }}\n </bento-typography>\n </div>\n <button-actions-with-menu\n v-if=\"actions\"\n :actions=\"actions\"\n :displayed-actions=\"2\"\n class=\"b-header__actions\"\n />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import ButtonActionsWithMenu from '../internal/button-actions-with-menu/button-actions-with-menu.vue';\n import { BentoButtonActionsList } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { useHasSlot } from '@/composables';\n import { BentoHeaderVariant } from './header.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n import formatDistanceToNow from 'date-fns/formatDistanceToNow';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-header',\n components: {\n BentoTypography,\n ButtonActionsWithMenu,\n BentoInfoIcon,\n },\n props: {\n /**\n * Variant represents type of Header\n * @values page, component\n */\n variant: {\n type: String as PropType<BentoHeaderVariant | `${BentoHeaderVariant}`>,\n default: BentoHeaderVariant.PAGE,\n validator: (value: BentoHeaderVariant) => Object.values(BentoHeaderVariant).includes(value),\n },\n /**\n * Text used as a title\n */\n title: { type: String, required: true },\n /**\n * Text showed in the info-icon tooltip on hover\n */\n infoIconTooltipText: { type: String, default: null },\n /**\n * Array of BentoButtonActionsList to show to the right of the title\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * JavaScript \"Date\" object for when the content was last updated\n */\n lastUpdated: { type: [Date, Number], default: null },\n },\n setup(props, { slots }) {\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n // TODO to replace with dynamic import\n const locales = { de, enUS, fr };\n\n const typography = computed(() => ({\n el: props.variant === BentoHeaderVariant.PAGE ? BentoTypographyElement.H1 : BentoTypographyElement.H2,\n variant: BentoTypographyVariant.TITLE,\n medium: props.variant === BentoHeaderVariant.COMPONENT,\n large: props.variant === BentoHeaderVariant.PAGE,\n }));\n\n const timestamp = computed(() =>\n props.lastUpdated\n ? t('lastUpdated', {\n date: formatDistanceToNow(props.lastUpdated, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n }),\n })\n : null\n );\n return {\n hasSlot: useHasSlot(slots),\n timestamp,\n typography,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./header.scss\" />\n"],"names":["differenceInCalendarMonths","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","yearDiff","monthDiff","differenceInMilliseconds","roundingMap","value","defaultRoundingMethod","getRoundingMethod","method","endOfMonth","dirtyDate","date","month","isLastDayOfMonth","endOfDay","differenceInMonths","sign","compareAsc","difference","result","isLastMonthNotFull","differenceInSeconds","options","diff","MINUTES_IN_DAY","MINUTES_IN_ALMOST_TWO_DAYS","MINUTES_IN_MONTH","MINUTES_IN_TWO_MONTHS","formatDistance","dirtyBaseDate","locale","enUS","comparison","localizeOptions","cloneObject","seconds","offsetInSeconds","getTimezoneOffsetInMilliseconds","minutes","months","hours","days","nearestMonth","monthsSinceStartOfYear","years","formatDistanceToNow","dirtyOptions","__default__","computedActions","computed","props","computedMenuActions","el","BentoHeaderVariant","BentoHeaderVariant2","_sfc_main","defineComponent","messages","BentoTypography","ButtonActionsWithMenu","BentoInfoIcon","slots","t","useI18n","locales","de","fr","typography","BentoTypographyElement","BentoTypographyVariant","timestamp","useHasSlot","_component_button_actions_with_menu","resolveComponent","createElementVNode","_hoisted_2","_hoisted_3","createVNode","_component_bento_typography","mergeProps","_ctx","withCtx","openBlock","createBlock","_component_bento_info_icon"],"mappings":";;;;;;;;;;;;AA4Be,SAAAA,GAAAC,GAAAC,GAAA;AACf,EAAAC,EAAA,GAAA,SAAA;AACA,MAAAC,IAAAC,EAAAJ,CAAA,GACAK,IAAAD,EAAAH,CAAA,GACAK,IAAAH,EAAA,YAAA,IAAAE,EAAA,YAAA,GACAE,IAAAJ,EAAA,SAAA,IAAAE,EAAA,SAAA;AACA,SAAAC,IAAA,KAAAC;AACA;ACNe,SAAAC,GAAAL,GAAAE,GAAA;AACf,SAAAH,EAAA,GA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AAA;AAAA,UAAA,GAAA,EAAA;AAAA,UACLD,EAAA,uBAAAE,EAAA,GAAAC,EAAAC,GAAA;AAAA,YAAiC,KAAA;AAAA,YAC7B,gBAAAJ,EAAA;AAAA;;QAGsB,CAAA;AAAA;UAA6B,KAAA;AAAA,UAAI,OAAA;AAAA,UAAa,IAAA;AAAA;;;;;;;MAKpE,CAAA;AAAA;QACI,KAAA;AAAA,QAChB,SAAAA,EAAA;AAAA,QACK,qBAAA;AAAA;;;;;;","x_google_ignoreList":[0,1,2,3,4,5,6,7,8]}
1
+ {"version":3,"file":"header.js","sources":["../../../node_modules/date-fns/esm/differenceInCalendarMonths/index.js","../../../node_modules/date-fns/esm/differenceInMilliseconds/index.js","../../../node_modules/date-fns/esm/_lib/roundingMethods/index.js","../../../node_modules/date-fns/esm/endOfMonth/index.js","../../../node_modules/date-fns/esm/isLastDayOfMonth/index.js","../../../node_modules/date-fns/esm/differenceInMonths/index.js","../../../node_modules/date-fns/esm/differenceInSeconds/index.js","../../../node_modules/date-fns/esm/formatDistance/index.js","../../../node_modules/date-fns/esm/formatDistanceToNow/index.js","../../vue2/src/components/internal/button-actions-with-menu/button-actions-with-menu.vue","../../vue2/src/components/header/header.types.ts","../../vue2/src/components/header/header.vue"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInCalendarMonths\n * @category Month Helpers\n * @summary Get the number of calendar months between the given dates.\n *\n * @description\n * Get the number of calendar months between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar months are between 31 January 2014 and 1 September 2014?\n * var result = differenceInCalendarMonths(\n * new Date(2014, 8, 1),\n * new Date(2014, 0, 31)\n * )\n * //=> 8\n */\n\nexport default function differenceInCalendarMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var yearDiff = dateLeft.getFullYear() - dateRight.getFullYear();\n var monthDiff = dateLeft.getMonth() - dateRight.getMonth();\n return yearDiff * 12 + monthDiff;\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInMilliseconds\n * @category Millisecond Helpers\n * @summary Get the number of milliseconds between the given dates.\n *\n * @description\n * Get the number of milliseconds between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of milliseconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many milliseconds are between\n * // 2 July 2014 12:30:20.600 and 2 July 2014 12:30:21.700?\n * const result = differenceInMilliseconds(\n * new Date(2014, 6, 2, 12, 30, 21, 700),\n * new Date(2014, 6, 2, 12, 30, 20, 600)\n * )\n * //=> 1100\n */\n\nexport default function differenceInMilliseconds(dateLeft, dateRight) {\n requiredArgs(2, arguments);\n return toDate(dateLeft).getTime() - toDate(dateRight).getTime();\n}","var roundingMap = {\n ceil: Math.ceil,\n round: Math.round,\n floor: Math.floor,\n trunc: function (value) {\n return value < 0 ? Math.ceil(value) : Math.floor(value);\n } // Math.trunc is not supported by IE\n\n};\nvar defaultRoundingMethod = 'trunc';\nexport function getRoundingMethod(method) {\n return method ? roundingMap[method] : roundingMap[defaultRoundingMethod];\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name endOfMonth\n * @category Month Helpers\n * @summary Return the end of a month for the given date.\n *\n * @description\n * Return the end of a month for the given date.\n * The result will be in the local timezone.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the original date\n * @returns {Date} the end of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // The end of a month for 2 September 2014 11:55:00:\n * const result = endOfMonth(new Date(2014, 8, 2, 11, 55, 0))\n * //=> Tue Sep 30 2014 23:59:59.999\n */\n\nexport default function endOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n var month = date.getMonth();\n date.setFullYear(date.getFullYear(), month + 1, 0);\n date.setHours(23, 59, 59, 999);\n return date;\n}","import toDate from \"../toDate/index.js\";\nimport endOfDay from \"../endOfDay/index.js\";\nimport endOfMonth from \"../endOfMonth/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name isLastDayOfMonth\n * @category Month Helpers\n * @summary Is the given date the last day of a month?\n *\n * @description\n * Is the given date the last day of a month?\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} date - the date to check\n * @returns {Boolean} the date is the last day of a month\n * @throws {TypeError} 1 argument required\n *\n * @example\n * // Is 28 February 2014 the last day of a month?\n * var result = isLastDayOfMonth(new Date(2014, 1, 28))\n * //=> true\n */\n\nexport default function isLastDayOfMonth(dirtyDate) {\n requiredArgs(1, arguments);\n var date = toDate(dirtyDate);\n return endOfDay(date).getTime() === endOfMonth(date).getTime();\n}","import toDate from \"../toDate/index.js\";\nimport differenceInCalendarMonths from \"../differenceInCalendarMonths/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport isLastDayOfMonth from \"../isLastDayOfMonth/index.js\";\n/**\n * @name differenceInMonths\n * @category Month Helpers\n * @summary Get the number of full months between the given dates.\n *\n * @description\n * Get the number of full months between the given dates using trunc as a default rounding method.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full months\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full months are between 31 January 2014 and 1 September 2014?\n * const result = differenceInMonths(new Date(2014, 8, 1), new Date(2014, 0, 31))\n * //=> 7\n */\n\nexport default function differenceInMonths(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var sign = compareAsc(dateLeft, dateRight);\n var difference = Math.abs(differenceInCalendarMonths(dateLeft, dateRight));\n var result; // Check for the difference of less than month\n\n if (difference < 1) {\n result = 0;\n } else {\n if (dateLeft.getMonth() === 1 && dateLeft.getDate() > 27) {\n // This will check if the date is end of Feb and assign a higher end of month date\n // to compare it with Jan\n dateLeft.setDate(30);\n }\n\n dateLeft.setMonth(dateLeft.getMonth() - sign * difference); // Math.abs(diff in full months - diff in calendar months) === 1 if last calendar month is not full\n // If so, result must be decreased by 1 in absolute value\n\n var isLastMonthNotFull = compareAsc(dateLeft, dateRight) === -sign; // Check for cases of one full calendar month\n\n if (isLastDayOfMonth(toDate(dirtyDateLeft)) && difference === 1 && compareAsc(dirtyDateLeft, dateRight) === 1) {\n isLastMonthNotFull = false;\n }\n\n result = sign * (difference - Number(isLastMonthNotFull));\n } // Prevent negative zero\n\n\n return result === 0 ? 0 : result;\n}","import differenceInMilliseconds from \"../differenceInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nimport { getRoundingMethod } from \"../_lib/roundingMethods/index.js\";\n/**\n * @name differenceInSeconds\n * @category Second Helpers\n * @summary Get the number of seconds between the given dates.\n *\n * @description\n * Get the number of seconds between the given dates.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @param {Object} [options] - an object with options.\n * @param {String} [options.roundingMethod='trunc'] - a rounding method (`ceil`, `floor`, `round` or `trunc`)\n * @returns {Number} the number of seconds\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many seconds are between\n * // 2 July 2014 12:30:07.999 and 2 July 2014 12:30:20.000?\n * const result = differenceInSeconds(\n * new Date(2014, 6, 2, 12, 30, 20, 0),\n * new Date(2014, 6, 2, 12, 30, 7, 999)\n * )\n * //=> 12\n */\n\nexport default function differenceInSeconds(dateLeft, dateRight, options) {\n requiredArgs(2, arguments);\n var diff = differenceInMilliseconds(dateLeft, dateRight) / 1000;\n return getRoundingMethod(options === null || options === void 0 ? void 0 : options.roundingMethod)(diff);\n}","import compareAsc from \"../compareAsc/index.js\";\nimport differenceInMonths from \"../differenceInMonths/index.js\";\nimport differenceInSeconds from \"../differenceInSeconds/index.js\";\nimport defaultLocale from \"../locale/en-US/index.js\";\nimport toDate from \"../toDate/index.js\";\nimport cloneObject from \"../_lib/cloneObject/index.js\";\nimport getTimezoneOffsetInMilliseconds from \"../_lib/getTimezoneOffsetInMilliseconds/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\nvar MINUTES_IN_DAY = 1440;\nvar MINUTES_IN_ALMOST_TWO_DAYS = 2520;\nvar MINUTES_IN_MONTH = 43200;\nvar MINUTES_IN_TWO_MONTHS = 86400;\n/**\n * @name formatDistance\n * @category Common Helpers\n * @summary Return the distance between the given dates in words.\n *\n * @description\n * Return the distance between the given dates in words.\n *\n * | Distance between dates | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance between dates | Result |\n * |------------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWords ` to `formatDistance`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * - The order of arguments is swapped to make the function\n * consistent with `differenceIn...` functions.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWords(\n * new Date(1986, 3, 4, 10, 32, 0),\n * new Date(1986, 3, 4, 11, 32, 0),\n * { addSuffix: true }\n * ) //=> 'in about 1 hour'\n *\n * // v2.0.0 onward\n *\n * formatDistance(\n * new Date(1986, 3, 4, 11, 32, 0),\n * new Date(1986, 3, 4, 10, 32, 0),\n * { addSuffix: true }\n * ) //=> 'in about 1 hour'\n * ```\n *\n * @param {Date|Number} date - the date\n * @param {Date|Number} baseDate - the date to compare with\n * @param {Object} [options] - an object with options.\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result indicates if the second date is earlier or later than the first\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 2 arguments required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `baseDate` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // What is the distance between 2 July 2014 and 1 January 2015?\n * const result = formatDistance(new Date(2014, 6, 2), new Date(2015, 0, 1))\n * //=> '6 months'\n *\n * @example\n * // What is the distance between 1 January 2015 00:00:15\n * // and 1 January 2015 00:00:00, including seconds?\n * const result = formatDistance(\n * new Date(2015, 0, 1, 0, 0, 15),\n * new Date(2015, 0, 1, 0, 0, 0),\n * { includeSeconds: true }\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // What is the distance from 1 January 2016\n * // to 1 January 2015, with a suffix?\n * const result = formatDistance(new Date(2015, 0, 1), new Date(2016, 0, 1), {\n * addSuffix: true\n * })\n * //=> 'about 1 year ago'\n *\n * @example\n * // What is the distance between 1 August 2016 and 1 January 2015 in Esperanto?\n * import { eoLocale } from 'date-fns/locale/eo'\n * const result = formatDistance(new Date(2016, 7, 1), new Date(2015, 0, 1), {\n * locale: eoLocale\n * })\n * //=> 'pli ol 1 jaro'\n */\n\nexport default function formatDistance(dirtyDate, dirtyBaseDate) {\n var options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};\n requiredArgs(2, arguments);\n var locale = options.locale || defaultLocale;\n\n if (!locale.formatDistance) {\n throw new RangeError('locale must contain formatDistance property');\n }\n\n var comparison = compareAsc(dirtyDate, dirtyBaseDate);\n\n if (isNaN(comparison)) {\n throw new RangeError('Invalid time value');\n }\n\n var localizeOptions = cloneObject(options);\n localizeOptions.addSuffix = Boolean(options.addSuffix);\n localizeOptions.comparison = comparison;\n var dateLeft;\n var dateRight;\n\n if (comparison > 0) {\n dateLeft = toDate(dirtyBaseDate);\n dateRight = toDate(dirtyDate);\n } else {\n dateLeft = toDate(dirtyDate);\n dateRight = toDate(dirtyBaseDate);\n }\n\n var seconds = differenceInSeconds(dateRight, dateLeft);\n var offsetInSeconds = (getTimezoneOffsetInMilliseconds(dateRight) - getTimezoneOffsetInMilliseconds(dateLeft)) / 1000;\n var minutes = Math.round((seconds - offsetInSeconds) / 60);\n var months; // 0 up to 2 mins\n\n if (minutes < 2) {\n if (options.includeSeconds) {\n if (seconds < 5) {\n return locale.formatDistance('lessThanXSeconds', 5, localizeOptions);\n } else if (seconds < 10) {\n return locale.formatDistance('lessThanXSeconds', 10, localizeOptions);\n } else if (seconds < 20) {\n return locale.formatDistance('lessThanXSeconds', 20, localizeOptions);\n } else if (seconds < 40) {\n return locale.formatDistance('halfAMinute', null, localizeOptions);\n } else if (seconds < 60) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', 1, localizeOptions);\n }\n } else {\n if (minutes === 0) {\n return locale.formatDistance('lessThanXMinutes', 1, localizeOptions);\n } else {\n return locale.formatDistance('xMinutes', minutes, localizeOptions);\n }\n } // 2 mins up to 0.75 hrs\n\n } else if (minutes < 45) {\n return locale.formatDistance('xMinutes', minutes, localizeOptions); // 0.75 hrs up to 1.5 hrs\n } else if (minutes < 90) {\n return locale.formatDistance('aboutXHours', 1, localizeOptions); // 1.5 hrs up to 24 hrs\n } else if (minutes < MINUTES_IN_DAY) {\n var hours = Math.round(minutes / 60);\n return locale.formatDistance('aboutXHours', hours, localizeOptions); // 1 day up to 1.75 days\n } else if (minutes < MINUTES_IN_ALMOST_TWO_DAYS) {\n return locale.formatDistance('xDays', 1, localizeOptions); // 1.75 days up to 30 days\n } else if (minutes < MINUTES_IN_MONTH) {\n var days = Math.round(minutes / MINUTES_IN_DAY);\n return locale.formatDistance('xDays', days, localizeOptions); // 1 month up to 2 months\n } else if (minutes < MINUTES_IN_TWO_MONTHS) {\n months = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('aboutXMonths', months, localizeOptions);\n }\n\n months = differenceInMonths(dateRight, dateLeft); // 2 months up to 12 months\n\n if (months < 12) {\n var nearestMonth = Math.round(minutes / MINUTES_IN_MONTH);\n return locale.formatDistance('xMonths', nearestMonth, localizeOptions); // 1 year up to max Date\n } else {\n var monthsSinceStartOfYear = months % 12;\n var years = Math.floor(months / 12); // N years up to 1 years 3 months\n\n if (monthsSinceStartOfYear < 3) {\n return locale.formatDistance('aboutXYears', years, localizeOptions); // N years 3 months up to N years 9 months\n } else if (monthsSinceStartOfYear < 9) {\n return locale.formatDistance('overXYears', years, localizeOptions); // N years 9 months up to N year 12 months\n } else {\n return locale.formatDistance('almostXYears', years + 1, localizeOptions);\n }\n }\n}","import distanceInWords from \"../formatDistance/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name formatDistanceToNow\n * @category Common Helpers\n * @summary Return the distance between the given date and now in words.\n * @pure false\n *\n * @description\n * Return the distance between the given date and now in words.\n *\n * | Distance to now | Result |\n * |-------------------------------------------------------------------|---------------------|\n * | 0 ... 30 secs | less than a minute |\n * | 30 secs ... 1 min 30 secs | 1 minute |\n * | 1 min 30 secs ... 44 mins 30 secs | [2..44] minutes |\n * | 44 mins ... 30 secs ... 89 mins 30 secs | about 1 hour |\n * | 89 mins 30 secs ... 23 hrs 59 mins 30 secs | about [2..24] hours |\n * | 23 hrs 59 mins 30 secs ... 41 hrs 59 mins 30 secs | 1 day |\n * | 41 hrs 59 mins 30 secs ... 29 days 23 hrs 59 mins 30 secs | [2..30] days |\n * | 29 days 23 hrs 59 mins 30 secs ... 44 days 23 hrs 59 mins 30 secs | about 1 month |\n * | 44 days 23 hrs 59 mins 30 secs ... 59 days 23 hrs 59 mins 30 secs | about 2 months |\n * | 59 days 23 hrs 59 mins 30 secs ... 1 yr | [2..12] months |\n * | 1 yr ... 1 yr 3 months | about 1 year |\n * | 1 yr 3 months ... 1 yr 9 month s | over 1 year |\n * | 1 yr 9 months ... 2 yrs | almost 2 years |\n * | N yrs ... N yrs 3 months | about N years |\n * | N yrs 3 months ... N yrs 9 months | over N years |\n * | N yrs 9 months ... N+1 yrs | almost N+1 years |\n *\n * With `options.includeSeconds == true`:\n * | Distance to now | Result |\n * |---------------------|----------------------|\n * | 0 secs ... 5 secs | less than 5 seconds |\n * | 5 secs ... 10 secs | less than 10 seconds |\n * | 10 secs ... 20 secs | less than 20 seconds |\n * | 20 secs ... 40 secs | half a minute |\n * | 40 secs ... 60 secs | less than a minute |\n * | 60 secs ... 90 secs | 1 minute |\n *\n * > ⚠️ Please note that this function is not present in the FP submodule as\n * > it uses `Date.now()` internally hence impure and can't be safely curried.\n *\n * ### v2.0.0 breaking changes:\n *\n * - [Changes that are common for the whole library](https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#Common-Changes).\n *\n * - The function was renamed from `distanceInWordsToNow ` to `formatDistanceToNow`\n * to make its name consistent with `format` and `formatRelative`.\n *\n * ```javascript\n * // Before v2.0.0\n *\n * distanceInWordsToNow(new Date(2014, 6, 2), { addSuffix: true })\n * //=> 'in 6 months'\n *\n * // v2.0.0 onward\n *\n * formatDistanceToNow(new Date(2014, 6, 2), { addSuffix: true })\n * //=> 'in 6 months'\n * ```\n *\n * @param {Date|Number} date - the given date\n * @param {Object} [options] - the object with options\n * @param {Boolean} [options.includeSeconds=false] - distances less than a minute are more detailed\n * @param {Boolean} [options.addSuffix=false] - result specifies if now is earlier or later than the passed date\n * @param {Locale} [options.locale=defaultLocale] - the locale object. See [Locale]{@link https://date-fns.org/docs/Locale}\n * @returns {String} the distance in words\n * @throws {TypeError} 1 argument required\n * @throws {RangeError} `date` must not be Invalid Date\n * @throws {RangeError} `options.locale` must contain `formatDistance` property\n *\n * @example\n * // If today is 1 January 2015, what is the distance to 2 July 2014?\n * var result = formatDistanceToNow(\n * new Date(2014, 6, 2)\n * )\n * //=> '6 months'\n *\n * @example\n * // If now is 1 January 2015 00:00:00,\n * // what is the distance to 1 January 2015 00:00:15, including seconds?\n * var result = formatDistanceToNow(\n * new Date(2015, 0, 1, 0, 0, 15),\n * {includeSeconds: true}\n * )\n * //=> 'less than 20 seconds'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 January 2016, with a suffix?\n * var result = formatDistanceToNow(\n * new Date(2016, 0, 1),\n * {addSuffix: true}\n * )\n * //=> 'in about 1 year'\n *\n * @example\n * // If today is 1 January 2015,\n * // what is the distance to 1 August 2016 in Esperanto?\n * var eoLocale = require('date-fns/locale/eo')\n * var result = formatDistanceToNow(\n * new Date(2016, 7, 1),\n * {locale: eoLocale}\n * )\n * //=> 'pli ol 1 jaro'\n */\n\nexport default function formatDistanceToNow(dirtyDate, dirtyOptions) {\n requiredArgs(1, arguments);\n return distanceInWords(dirtyDate, Date.now(), dirtyOptions);\n}","<template>\n <div class=\"b-button-actions-with-menu\">\n <div role=\"group\" class=\"b-button-actions-with-menu__container-wrapper\">\n <bento-button-actions :actions=\"computedActions\" />\n <bento-menu v-if=\"computedMenuActions.length\" :data=\"computedMenuActions\" />\n </div>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType } from 'vue';\n import BentoMenu from '@/components/menu/menu.vue';\n import { BentoMenuItem } from '@/components/menu/components/menu-item/menu-item.types';\n import { BentoButtonActions, BentoButtonActionsList } from '@/components/button';\n\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n const props = defineProps({\n /**\n * List of actions that will be used to render the buttons.\n * First element in the list will be rendered as \"primary\".\n * All elements after the first will be rendered as \"secondary\".\n *\n * Each object in the list should have a `title`, an `event` and\n * (optional) a Vue `icon` from the library `@adyen/ui-assets-icons-16`.\n *\n * `title`: Button's text.\n *\n * `event`: Event triggered when clicking the Button.\n *\n * `icon` (optional): Vue Icon from the library `@adyen/ui-assets-icons-16`.\n *\n * @see BentoButton for a list of all the other props supported by each button action.\n *\n * ```\n * [{\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n variant: 'default',\n external: true,\n to: 'https://www.adyen.com/'\n },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * ```\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n required: true,\n },\n\n /**\n * The number of actions to be displayed. The rest of the actions will be collapsed in a menu component.\n */\n displayedActions: {\n type: Number,\n default: undefined,\n },\n });\n\n const computedActions = computed(() => props.actions.slice(0, props.displayedActions));\n\n const computedMenuActions = computed(() =>\n props.displayedActions && props.displayedActions < props.actions.length\n ? (props.actions.slice(props.displayedActions, props.actions.length).map(el => ({\n text: el.title,\n handler: el.event,\n icon: el.icon,\n critical: el.critical,\n disabled: el.disabled,\n })) as BentoMenuItem[])\n : []\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * An internal button actions component with the option to display some of the actions in a menu.\n *\n * @example\n * <button-actions-with-menu\n * :actions=\"[\n * title: 'Primary',\n * event: () => { ... },\n * icon: FourPeopleIcon,\n * link: {\n * variant: 'default',\n * external: true,\n * to: 'https://www.adyen.com/'\n * },\n * }, {\n * title: 'Secondary',\n * event: () => { ... }\n * disabled: true,\n * variant: BentoButtonVariant.PRIMARY,\n * critical: true\n * }]\n * :displayedActions=\"2\"\n * />\n */\n\n export default {};\n</script>\n\n<style lang=\"scss\" scoped src=\"./button-actions-with-menu.scss\" />\n","/**\n * @deprecated for usage with properties since version 2.0. Use the string literal instead.\n */\nexport enum BentoHeaderVariant {\n PAGE = 'page',\n COMPONENT = 'component',\n}\n","<template>\n <div class=\"b-header\" :class=\"conditionalClasses\">\n <div class=\"b-header__wrapper\">\n <div class=\"b-header__title\">\n <div>\n <bento-typography v-bind=\"typography\" class=\"b-header__text\">{{ title }}</bento-typography>\n <bento-info-icon\n v-if=\"infoIconTooltipText\"\n :tooltip-text=\"infoIconTooltipText\"\n class=\"b-header__tooltip\"\n />\n </div>\n <bento-typography v-if=\"lastUpdated\" class=\"b-header__timestamp\" el=\"div\" variant=\"caption\">\n {{ timestamp }}\n </bento-typography>\n </div>\n <button-actions-with-menu\n v-if=\"actions\"\n :actions=\"actions\"\n :displayed-actions=\"2\"\n class=\"b-header__actions\"\n />\n </div>\n </div>\n</template>\n\n<script lang=\"ts\">\n import { computed, defineComponent, PropType } from 'vue';\n import ButtonActionsWithMenu from '../internal/button-actions-with-menu/button-actions-with-menu.vue';\n import { BentoButtonActionsList } from '@/components/button';\n import { BentoInfoIcon } from '@/components/info-icon';\n import { useHasSlot } from '@/composables';\n import { BentoHeaderVariant } from './header.types';\n import { BentoTypography, BentoTypographyElement, BentoTypographyVariant } from '@/components/typography';\n import { useI18n } from '@/utils/ts/i18n';\n import { de, enUS, fr } from 'date-fns/locale';\n import formatDistanceToNow from 'date-fns/formatDistanceToNow';\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n export default defineComponent({\n i18n: { messages },\n name: 'bento-header',\n components: {\n BentoTypography,\n ButtonActionsWithMenu,\n BentoInfoIcon,\n },\n props: {\n /**\n * Variant represents type of Header\n * @values page, component\n */\n variant: {\n type: String as PropType<BentoHeaderVariant | `${BentoHeaderVariant}`>,\n default: BentoHeaderVariant.PAGE,\n validator: (value: BentoHeaderVariant) => Object.values(BentoHeaderVariant).includes(value),\n },\n /**\n * Text used as a title\n */\n title: { type: String, required: true },\n /**\n * Text showed in the info-icon tooltip on hover\n */\n infoIconTooltipText: { type: String, default: null },\n /**\n * Array of BentoButtonActionsList to show to the right of the title\n */\n actions: {\n type: Array as PropType<BentoButtonActionsList>,\n default: null,\n },\n /**\n * JavaScript \"Date\" object for when the content was last updated\n */\n lastUpdated: { type: [Date, Number], default: null },\n },\n setup(props, { slots }) {\n const { t, locale } = useI18n<{ message: MessageSchema }>({ messages });\n // TODO to replace with dynamic import\n const locales = { de, enUS, fr };\n\n const conditionalClasses = computed(() => ({\n 'b-header--component': props.variant === BentoHeaderVariant.COMPONENT,\n }));\n\n const typography = computed(() => ({\n el: props.variant === BentoHeaderVariant.PAGE ? BentoTypographyElement.H1 : BentoTypographyElement.H2,\n variant: BentoTypographyVariant.TITLE,\n medium: props.variant === BentoHeaderVariant.COMPONENT,\n large: props.variant === BentoHeaderVariant.PAGE,\n }));\n\n const timestamp = computed(() =>\n props.lastUpdated\n ? t('lastUpdated', {\n date: formatDistanceToNow(props.lastUpdated, {\n locale: locales[locale.value.substring(0, 2)] || enUS,\n }),\n })\n : null\n );\n return {\n hasSlot: useHasSlot(slots),\n conditionalClasses,\n timestamp,\n typography,\n };\n },\n });\n</script>\n\n<style lang=\"scss\" scoped src=\"./header.scss\" />\n"],"names":["differenceInCalendarMonths","dirtyDateLeft","dirtyDateRight","requiredArgs","dateLeft","toDate","dateRight","yearDiff","monthDiff","differenceInMilliseconds","roundingMap","value","defaultRoundingMethod","getRoundingMethod","method","endOfMonth","dirtyDate","date","month","isLastDayOfMonth","endOfDay","differenceInMonths","sign","compareAsc","difference","result","isLastMonthNotFull","differenceInSeconds","options","diff","MINUTES_IN_DAY","MINUTES_IN_ALMOST_TWO_DAYS","MINUTES_IN_MONTH","MINUTES_IN_TWO_MONTHS","formatDistance","dirtyBaseDate","locale","enUS","comparison","localizeOptions","cloneObject","seconds","offsetInSeconds","getTimezoneOffsetInMilliseconds","minutes","months","hours","days","nearestMonth","monthsSinceStartOfYear","years","formatDistanceToNow","dirtyOptions","__default__","computedActions","computed","props","computedMenuActions","el","BentoHeaderVariant","BentoHeaderVariant2","_sfc_main","defineComponent","messages","BentoTypography","ButtonActionsWithMenu","BentoInfoIcon","slots","t","useI18n","locales","de","fr","conditionalClasses","typography","BentoTypographyElement","BentoTypographyVariant","timestamp","useHasSlot","_component_button_actions_with_menu","resolveComponent","normalizeClass","_ctx","createElementVNode","_hoisted_2","createVNode","_component_bento_typography","mergeProps","withCtx","openBlock","createBlock","_component_bento_info_icon"],"mappings":";;;;;;;;;;;;AA4Be,SAAAA,GAAAC,GAAAC,GAAA;AACf,EAAAC,EAAA,GAAA,SAAA;AACA,MAAAC,IAAAC,EAAAJ,CAAA,GACAK,IAAAD,EAAAH,CAAA,GACAK,IAAAH,EAAA,YAAA,IAAAE,EAAA,YAAA,GACAE,IAAAJ,EAAA,SAAA,IAAAE,EAAA,SAAA;AACA,SAAAC,IAAA,KAAAC;AACA;ACNe,SAAAC,GAAAL,GAAAE,GAAA;AACf,SAAAH,EAAA,GAAA,SAAA,GACAE,EAAAD,CAAA,EAAA,QAAA,IAAAC,EAAAC,CAAA,EAAA,QAAA;AACA;AChCA,IAAAI,IAAA;AAAA,EACA,MAAA,KAAA;AAAA,EACA,OAAA,KAAA;AAAA,EACA,OAAA,KAAA;AAAA,EACA,OAAA,SAAAC,GAAA;AACA,WAAAA,IAAA,IAAA,KAAA,KAAAA,CAAA,IAAA,KAAA,MAAAA,CAAA;AAAA,EACA;AAAA;AAEA,GACAC,KAAA;AACO,SAAAC,GAAAC,GAAA;AACP,SAAAA,IAAAJ,EAAAI,CAAA,IAAAJ,EAAAE,EAAA;AACA;ACae,SAAAG,GAAAC,GAAA;AACf,EAAAb,EAAA,GAAA,SAAA;AACA,MAAAc,IAAAZ,EAAAW,CAAA,GACAE,IAAAD,EAAA,SAAA;AACA,SAAAA,EAAA,YAAAA,EAAA,YAAA,GAAAC,IAAA,GAAA,CAAA,GACAD,EAAA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5
  import { g as E } from "./chunks/unique-id.a2a2b458.js";
6
6
  import { BentoAccordion as K, BentoAccordionItem as Q } from "./accordion.js";
7
7
  import { BentoAlert as H, BentoAlertEvent as j, BentoAlertTypeOption as J, BentoAlertVariant as X } from "./alert.js";
8
- import { a as Z, b as ee, B as te } from "./chunks/button.7072457f.js";
8
+ import { a as Z, b as ee, B as te } from "./chunks/button.9d72e2d7.js";
9
9
  import { BentoCard as ne, BentoCardBackground as re, BentoCardTitleSize as ae } from "./card.js";
10
10
  import { BentoColumnOverflow as Be, BentoDataGrid as se, BentoDatagridAriaSortValue as me, BentoDatagridEvent as pe, BentoDatagridSortDirection as le, BentoDatagridStyleState as de } from "./data-grid.js";
11
11
  import { BentoDatePicker as fe, BentoDatePickerEvent as ce } from "./date-picker.js";
12
- import { B as xe, a as ge } from "./chunks/index.a57930ba.js";
13
- import { B as Se, u as he } from "./chunks/dropdown.22e51667.js";
12
+ import { B as xe, a as ge } from "./chunks/index.84f6360f.js";
13
+ import { B as Se, u as he } from "./chunks/dropdown.6a484461.js";
14
14
  import { BentoDropdownAvatar as be, BentoDropdownCountry as ke, BentoDropdownCurrency as ve, BentoDropdownPaymentMethod as De, BentoDropdownTag as Ee } from "./dropdown.js";
15
15
  import { BentoDivider as Le } from "./divider.js";
16
- import { B as _e, b as Fe, a as Ve } from "./chunks/checkbox.638bab98.js";
16
+ import { B as _e, b as Fe, a as Ve } from "./chunks/checkbox.ecbb4f0c.js";
17
17
  import { BentoClickOutside as Ge } from "./click-outside.js";
18
18
  import { BentoCodeSnippet as Me, BentoCodeSnippetEvent as Oe, BentoCodeSnippetSupportedLanguage as $e, BentoCodeSnippetVariant as Re } from "./code-snippet.js";
19
19
  import { BentoCountry as Ne, BentoCountryCode as qe, BentoCountryVariant as ze, useCountryCapital as Ke, useCountryName as Qe, useCountryPhoneCode as We } from "./country.js";
20
20
  import { BentoCurrency as je, BentoCurrencyISOCode as Je } from "./currency.js";
21
- import { B as Ye, a as Ze } from "./chunks/index.c62ea69f.js";
21
+ import { B as Ye, a as Ze } from "./chunks/index.754349ff.js";
22
22
  import { BentoEmptyState as tt, BentoEmptyStateImage as ot, BentoEmptyStateImageVariant as nt, BentoEmptyStateVariant as rt } from "./empty-state.js";
23
23
  import { BentoFilterBar as it, BentoFilterBarEvent as Bt, BentoFilterEvent as st, BentoFilterItemType as mt } from "./filter-bar.js";
24
24
  import { BentoFormLayout as lt, BentoFormLayoutFieldTip as dt, BentoFormLayoutGroup as ut, BentoFormLayoutTitle as ft } from "./form-layout.js";
@@ -27,7 +27,7 @@ import { BentoInputField as gt, BentoInputFieldElementPosition as Tt, BentoInput
27
27
  import { BentoLoadingIndicator as vt, BentoLoadingIndicatorEvent as Dt } from "./loading-indicator.js";
28
28
  import { BentoMenu as It, BentoMenuEvent as Lt } from "./menu.js";
29
29
  import { BentoModal as _t } from "./modal.js";
30
- import { b as Vt, d as wt, e as Gt, c as At, a as Mt, B as Ot } from "./chunks/base-modal.be77971f.js";
30
+ import { b as Vt, d as wt, e as Gt, c as At, a as Mt, B as Ot } from "./chunks/base-modal.c956b084.js";
31
31
  import { BentoHeader as Rt } from "./header.js";
32
32
  import { BentoPagination as Nt } from "./pagination.js";
33
33
  import { BentoPaymentMethod as zt, BentoPaymentMethodType as Kt } from "./payment-method.js";
@@ -37,7 +37,7 @@ import { BentoSearchBar as Zt, BentoSearchBarEvent as eo, BentoSearchBarInternal
37
37
  import { BentoSegmentedControl as no, BentoSegmentedControlEvent as ro } from "./segmented-control.js";
38
38
  import { BentoStatus as io, BentoStatusVariant as Bo } from "./status.js";
39
39
  import { BentoStep as mo, BentoStepper as po, BentoStepperTypeOption as lo, BentoStepperVariantOption as uo } from "./stepper.js";
40
- import { B as co, a as yo } from "./chunks/index.c22c4278.js";
40
+ import { B as co, a as yo } from "./chunks/index.424e2ea4.js";
41
41
  import { BentoSummaryGrid as go, BentoSummaryGridItemAmount as To, BentoSummaryGridItemCustom as So, BentoSummaryGridItemNumeric as ho, BentoSummaryGridItemPercentage as Co, BentoSummaryGridItemSize as bo, BentoSummaryGridItemText as ko, BentoSummaryGridItemTrendDirection as vo } from "./summary-grid.js";
42
42
  import { BentoTab as Eo, BentoTabs as Io } from "./tabs.js";
43
43
  import { BentoTag as Po, BentoTagVariant as _o } from "./tag.js";
@@ -46,21 +46,21 @@ import { BentoTimeline as Go, BentoTimelineGapUnit as Ao, BentoTimelineItem as M
46
46
  import { BentoToast as Uo } from "./toast.js";
47
47
  import { u as qo } from "./chunks/toastController.0b01d2e8.js";
48
48
  import { BentoToggle as Ko, BentoToggleLabelPosition as Qo, BentoTogglePropClass as Wo } from "./toggle.js";
49
- import { B as c } from "./chunks/index.32ed68b7.js";
50
- import { c as jo, b as Jo, a as Xo } from "./chunks/index.32ed68b7.js";
49
+ import { B as c } from "./chunks/index.9fc54b60.js";
50
+ import { c as jo, b as Jo, a as Xo } from "./chunks/index.9fc54b60.js";
51
51
  import { D as Zo } from "./chunks/date-input.9186a0bf.js";
52
52
  import { a as tn, B as on } from "./chunks/keyboard-navigation.ca47dfa8.js";
53
- import { a as rn, b as an } from "./chunks/listbox.4205c0de.js";
53
+ import { a as rn, b as an } from "./chunks/listbox.a7255ce1.js";
54
54
  import { B as sn } from "./chunks/directive.0408e565.js";
55
- import { b as pn, B as ln, a as dn } from "./chunks/tooltip.c8350cd0.js";
55
+ import { b as pn, B as ln, a as dn } from "./chunks/tooltip.6af06509.js";
56
56
  import { BentoButtonActions as fn, BentoButtonActionsLayout as cn, BentoButtonActionsLayoutBasic as yn, BentoButtonActionsLayoutExtended as xn } from "./button.js";
57
- import { B as Tn, a as Sn } from "./chunks/loading-button.41c15584.js";
58
- import { b as Cn, b as bn } from "./chunks/calendar.1e50c7d1.js";
57
+ import { B as Tn, a as Sn } from "./chunks/loading-button.fb1f20a3.js";
58
+ import { b as Cn, b as bn } from "./chunks/calendar.e7db78d0.js";
59
59
  import { BentoCheckboxGroup as vn, BentoCheckboxGroupVariant as Dn } from "./checkbox.js";
60
60
  import { BentoLinkVariant as d } from "./link.js";
61
61
  import { RouterLink as y } from "vue-router";
62
62
  import { _ as I } from "./chunks/_plugin-vue_export-helper.dad06003.js";
63
- import "./assets/index9.css";
63
+ import "./assets/index4.css";
64
64
  class L {
65
65
  constructor() {
66
66
  f(this, "_state");