@adyen/bento-vue3 1.16.0 → 1.17.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 (175) hide show
  1. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/checkbox-group.types.d.ts +2 -1
  2. package/dist/@types/packages/vue2/src/components/checkbox/components/checkbox-group/index.d.ts +1 -1
  3. package/dist/@types/packages/vue2/src/components/data-grid/composables/use-lazy-loading/use-lazy-loading.d.ts +1 -1
  4. package/dist/@types/packages/vue2/src/components/menu/menu.vue.d.ts +1 -0
  5. package/dist/@types/packages/vue2/src/components/payment-method/composables/index.d.ts +1 -1
  6. package/dist/@types/packages/vue2/src/components/payment-method/composables/use-payment-icon/use-payment-icon.d.ts +4 -0
  7. package/dist/@types/packages/vue2/src/components/payment-method/payment-method.vue.d.ts +3 -1
  8. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.types.d.ts +3 -6
  9. package/dist/@types/packages/vue2/src/components/radio-group/radio-group.vue.d.ts +19 -24
  10. package/dist/accordion.js +2 -2
  11. package/dist/action-bar.js +5 -5
  12. package/dist/alert.js +3 -3
  13. package/dist/assets/base-modal.css +1 -1
  14. package/dist/assets/index.css +1 -1
  15. package/dist/assets/index10.css +1 -1
  16. package/dist/assets/index11.css +1 -1
  17. package/dist/assets/index12.css +1 -1
  18. package/dist/assets/index13.css +1 -1
  19. package/dist/assets/index14.css +1 -1
  20. package/dist/assets/index15.css +1 -1
  21. package/dist/assets/index16.css +1 -1
  22. package/dist/assets/index17.css +1 -1
  23. package/dist/assets/index18.css +1 -1
  24. package/dist/assets/index19.css +1 -1
  25. package/dist/assets/index2.css +1 -1
  26. package/dist/assets/index20.css +1 -1
  27. package/dist/assets/index21.css +1 -1
  28. package/dist/assets/index22.css +1 -1
  29. package/dist/assets/index23.css +1 -1
  30. package/dist/assets/index24.css +1 -1
  31. package/dist/assets/index25.css +1 -1
  32. package/dist/assets/index26.css +1 -1
  33. package/dist/assets/index27.css +1 -1
  34. package/dist/assets/index28.css +1 -1
  35. package/dist/assets/index29.css +1 -1
  36. package/dist/assets/index3.css +1 -1
  37. package/dist/assets/index30.css +1 -1
  38. package/dist/assets/index31.css +1 -1
  39. package/dist/assets/index32.css +1 -1
  40. package/dist/assets/index33.css +1 -1
  41. package/dist/assets/index34.css +1 -1
  42. package/dist/assets/index35.css +1 -1
  43. package/dist/assets/index36.css +1 -1
  44. package/dist/assets/index37.css +1 -1
  45. package/dist/assets/index38.css +1 -1
  46. package/dist/assets/index39.css +1 -1
  47. package/dist/assets/index4.css +1 -1
  48. package/dist/assets/index40.css +1 -1
  49. package/dist/assets/index41.css +1 -1
  50. package/dist/assets/index42.css +1 -1
  51. package/dist/assets/index45.css +1 -1
  52. package/dist/assets/index46.css +1 -1
  53. package/dist/assets/index47.css +1 -1
  54. package/dist/assets/index6.css +1 -1
  55. package/dist/assets/index7.css +1 -1
  56. package/dist/assets/index8.css +1 -1
  57. package/dist/assets/index9.css +1 -1
  58. package/dist/avatar-image.js +1 -1
  59. package/dist/badge.js +1 -1
  60. package/dist/button.js +5 -5
  61. package/dist/card.js +2 -2
  62. package/dist/checkbox.js +6 -6
  63. package/dist/checkbox.js.map +1 -1
  64. package/dist/chunks/{base-button.211f3d1b.js → base-button.f412f30f.js} +2 -2
  65. package/dist/chunks/{base-button.211f3d1b.js.map → base-button.f412f30f.js.map} +1 -1
  66. package/dist/chunks/{base-modal.5bd79918.js → base-modal.dd6881d6.js} +5 -5
  67. package/dist/chunks/{base-modal.5bd79918.js.map → base-modal.dd6881d6.js.map} +1 -1
  68. package/dist/chunks/{button-actions-with-menu.cfcfbb17.js → button-actions-with-menu.6139d2c5.js} +3 -3
  69. package/dist/chunks/{button-actions-with-menu.cfcfbb17.js.map → button-actions-with-menu.6139d2c5.js.map} +1 -1
  70. package/dist/chunks/{button.b09b3d53.js → button.5e03cdd9.js} +3 -3
  71. package/dist/chunks/{button.b09b3d53.js.map → button.5e03cdd9.js.map} +1 -1
  72. package/dist/chunks/{calendar.f00c4de3.js → calendar.d26921a5.js} +4 -4
  73. package/dist/chunks/{calendar.f00c4de3.js.map → calendar.d26921a5.js.map} +1 -1
  74. package/dist/chunks/{checkbox.918eb1fe.js → checkbox.c9e6746b.js} +3 -3
  75. package/dist/chunks/{checkbox.918eb1fe.js.map → checkbox.c9e6746b.js.map} +1 -1
  76. package/dist/chunks/{controls-group.cbe5edb3.js → controls-group.bc3debdd.js} +3 -3
  77. package/dist/chunks/{controls-group.cbe5edb3.js.map → controls-group.bc3debdd.js.map} +1 -1
  78. package/dist/chunks/{copy.9e439e01.js → copy.1223d257.js} +4 -4
  79. package/dist/chunks/{copy.9e439e01.js.map → copy.1223d257.js.map} +1 -1
  80. package/dist/chunks/{dropdown-default-textbox.66d3bc87.js → dropdown-default-textbox.2a3c044f.js} +2 -2
  81. package/dist/chunks/{dropdown-default-textbox.66d3bc87.js.map → dropdown-default-textbox.2a3c044f.js.map} +1 -1
  82. package/dist/chunks/{dropdown.70940b5d.js → dropdown.2c6bb85c.js} +7 -7
  83. package/dist/chunks/{dropdown.70940b5d.js.map → dropdown.2c6bb85c.js.map} +1 -1
  84. package/dist/chunks/{error-message.9fb80f82.js → error-message.3cf040a1.js} +2 -2
  85. package/dist/chunks/{error-message.9fb80f82.js.map → error-message.3cf040a1.js.map} +1 -1
  86. package/dist/chunks/{fixed-scroller.db3bc496.js → fixed-scroller.1d3d4983.js} +2 -2
  87. package/dist/chunks/{fixed-scroller.db3bc496.js.map → fixed-scroller.1d3d4983.js.map} +1 -1
  88. package/dist/chunks/{footer-actions.795f3e03.js → footer-actions.92e13b90.js} +3 -3
  89. package/dist/chunks/{footer-actions.795f3e03.js.map → footer-actions.92e13b90.js.map} +1 -1
  90. package/dist/chunks/{index.5499552c.js → index.2c9f87d3.js} +3 -3
  91. package/dist/chunks/{index.5499552c.js.map → index.2c9f87d3.js.map} +1 -1
  92. package/dist/chunks/{index.91d917cd.js → index.32f5c644.js} +5 -5
  93. package/dist/chunks/{index.91d917cd.js.map → index.32f5c644.js.map} +1 -1
  94. package/dist/chunks/{index.a7884b37.js → index.4a6cfd5e.js} +746 -741
  95. package/dist/chunks/index.4a6cfd5e.js.map +1 -0
  96. package/dist/chunks/{index.f3292722.js → index.826ef20b.js} +6 -6
  97. package/dist/chunks/{index.f3292722.js.map → index.826ef20b.js.map} +1 -1
  98. package/dist/chunks/{index.5e2bc547.js → index.888c3d45.js} +2 -2
  99. package/dist/chunks/{index.5e2bc547.js.map → index.888c3d45.js.map} +1 -1
  100. package/dist/chunks/{index.0ed71d90.js → index.b1912d13.js} +3 -3
  101. package/dist/chunks/{index.0ed71d90.js.map → index.b1912d13.js.map} +1 -1
  102. package/dist/chunks/{index.526a5595.js → index.b253d8a2.js} +2 -2
  103. package/dist/chunks/{index.526a5595.js.map → index.b253d8a2.js.map} +1 -1
  104. package/dist/chunks/{index.c388fc64.js → index.e57740ab.js} +2 -2
  105. package/dist/chunks/{index.c388fc64.js.map → index.e57740ab.js.map} +1 -1
  106. package/dist/chunks/{index.1b911fe1.js → index.e97ff2db.js} +132 -125
  107. package/dist/chunks/index.e97ff2db.js.map +1 -0
  108. package/dist/chunks/{index.fff78e34.js → index.eb6f799e.js} +165 -165
  109. package/dist/chunks/index.eb6f799e.js.map +1 -0
  110. package/dist/chunks/{index.93c7dcb9.js → index.ed76cbb3.js} +2 -2
  111. package/dist/chunks/{index.93c7dcb9.js.map → index.ed76cbb3.js.map} +1 -1
  112. package/dist/chunks/{index.7159313f.js → index.f41143c6.js} +3 -3
  113. package/dist/chunks/{index.7159313f.js.map → index.f41143c6.js.map} +1 -1
  114. package/dist/chunks/{listbox-option-tag.109460f7.js → listbox-option-tag.20d2206f.js} +3 -3
  115. package/dist/chunks/{listbox-option-tag.109460f7.js.map → listbox-option-tag.20d2206f.js.map} +1 -1
  116. package/dist/chunks/{listbox.0d3b5112.js → listbox.60318e0a.js} +5 -5
  117. package/dist/chunks/{listbox.0d3b5112.js.map → listbox.60318e0a.js.map} +1 -1
  118. package/dist/chunks/{loading-button.016031ec.js → loading-button.bec0fd63.js} +2 -2
  119. package/dist/chunks/{loading-button.016031ec.js.map → loading-button.bec0fd63.js.map} +1 -1
  120. package/dist/chunks/{tooltip.7b2758bf.js → tooltip.c2233d64.js} +3 -3
  121. package/dist/chunks/{tooltip.7b2758bf.js.map → tooltip.c2233d64.js.map} +1 -1
  122. package/dist/code-snippet.js +7 -7
  123. package/dist/code-snippet.js.map +1 -1
  124. package/dist/country.js +2 -2
  125. package/dist/currency.js +1 -1
  126. package/dist/data-grid.js +1 -1
  127. package/dist/date-picker.js +8 -8
  128. package/dist/date-range-picker.js +2 -2
  129. package/dist/date.js +1 -1
  130. package/dist/divider.js +1 -1
  131. package/dist/dropdown.js +6 -6
  132. package/dist/empty-state.js +3 -3
  133. package/dist/filter-bar.js +18 -18
  134. package/dist/focus-trap.js +1 -1
  135. package/dist/form-layout.js +2 -2
  136. package/dist/header.js +147 -148
  137. package/dist/header.js.map +1 -1
  138. package/dist/index.js +304 -2943
  139. package/dist/index.js.map +1 -1
  140. package/dist/info-icon.js +3 -3
  141. package/dist/input-field.js +4 -4
  142. package/dist/internal.js +7 -7
  143. package/dist/link.js +1 -1
  144. package/dist/loading-indicator.js +1 -1
  145. package/dist/menu.js +1 -1
  146. package/dist/modal.js +5 -5
  147. package/dist/pagination.js +4 -4
  148. package/dist/payment-method.js +50 -48
  149. package/dist/payment-method.js.map +1 -1
  150. package/dist/popover.js +1 -1
  151. package/dist/popper-container.js +1 -1
  152. package/dist/radio-group.js +156 -171
  153. package/dist/radio-group.js.map +1 -1
  154. package/dist/search-bar.js +2 -2
  155. package/dist/secondary-nav.js +2 -2
  156. package/dist/segmented-control.js +3 -3
  157. package/dist/sidepanel.js +5 -5
  158. package/dist/status.js +1 -1
  159. package/dist/stepper.js +3 -3
  160. package/dist/structured-list.js +1 -1
  161. package/dist/summary-grid.js +3 -3
  162. package/dist/tabs.js +3 -3
  163. package/dist/tag.js +3 -3
  164. package/dist/textarea.js +4 -4
  165. package/dist/timeline.js +6 -6
  166. package/dist/toast.js +3 -3
  167. package/dist/toggle.js +1 -1
  168. package/dist/tutorial.js +5 -5
  169. package/dist/typography.js +1 -1
  170. package/dist/web-types.json +1 -1
  171. package/package.json +2 -2
  172. package/dist/@types/packages/vue2/src/components/payment-method/composables/usePaymentIcon.d.ts +0 -3
  173. package/dist/chunks/index.1b911fe1.js.map +0 -1
  174. package/dist/chunks/index.a7884b37.js.map +0 -1
  175. package/dist/chunks/index.fff78e34.js.map +0 -1
@@ -1,15 +1,15 @@
1
1
  import { onMounted as Je, onUnmounted as _t, defineComponent as J, useSlots as Ft, useAttrs as ht, computed as d, ref as q, openBlock as f, createBlock as B, unref as ae, normalizeClass as ve, withCtx as v, createTextVNode as w, toDisplayString as O, createCommentVNode as H, createElementBlock as N, createElementVNode as V, renderSlot as ue, createVNode as A, watch as ye, resolveComponent as m, withKeys as de, toRef as Q, onBeforeUpdate as De, mergeProps as oe, Fragment as fe, reactive as Ge, createSlots as $e, renderList as pe, normalizeProps as ke, guardReactiveProps as Pe, pushScopeId as gt, popScopeId as Ct, nextTick as St, resolveDynamicComponent as Be, withDirectives as he, vShow as ge } from "vue";
2
2
  import { _ as Y } from "./chunks/_plugin-vue_export-helper.dad06003.js";
3
- import { a as Ve } from "./chunks/index.91d917cd.js";
3
+ import { a as Ve } from "./chunks/index.32f5c644.js";
4
4
  import { B as At } from "./chunks/directive.0408e565.js";
5
- import { a as $t } from "./chunks/tooltip.7b2758bf.js";
5
+ import { a as $t } from "./chunks/tooltip.c2233d64.js";
6
6
  import { u as ce } from "./chunks/i18n.f7e6533e.js";
7
7
  import { g as Te } from "./chunks/unique-id.a2a2b458.js";
8
8
  import { o as Bt } from "./chunks/on-click-outside.3e0c3e2a.js";
9
9
  import { B as It } from "./chunks/teleport.127fa429.js";
10
- import { B as re, d as Dt } from "./chunks/index.93c7dcb9.js";
10
+ import { B as re, d as Dt } from "./chunks/index.ed76cbb3.js";
11
11
  import { u as We } from "./chunks/aria-label.ac9651a5.js";
12
- import { B as Ze, a as Re } from "./chunks/base-button.211f3d1b.js";
12
+ import { B as Ze, a as Re } from "./chunks/base-button.f412f30f.js";
13
13
  import { g as Qe } from "./chunks/get-slot-text.bead058f.js";
14
14
  import { u as Xe } from "./chunks/use-has-slot.4d98bf29.js";
15
15
  import { a as xe, C as et } from "./chunks/chevron-up.46afb34c.js";
@@ -18,25 +18,25 @@ import { BentoInputField as tt } from "./input-field.js";
18
18
  import { BentoSearchBar as Ce, BentoSearchBarEvent as be } from "./search-bar.js";
19
19
  import { u as Et } from "./chunks/toastController.0b01d2e8.js";
20
20
  import { BentoModal as Ut } from "./modal.js";
21
- import { f as kt } from "./chunks/base-modal.5bd79918.js";
22
- import { a as Pt } from "./chunks/button.b09b3d53.js";
23
- import { B as Vt, u as lt } from "./chunks/dropdown.70940b5d.js";
24
- import { g as Rt } from "./chunks/index.526a5595.js";
25
- import { B as at } from "./chunks/index.5e2bc547.js";
21
+ import { f as kt } from "./chunks/base-modal.dd6881d6.js";
22
+ import { a as Pt } from "./chunks/button.5e03cdd9.js";
23
+ import { B as Vt, u as lt } from "./chunks/dropdown.2c6bb85c.js";
24
+ import { g as Rt } from "./chunks/index.b253d8a2.js";
25
+ import { B as at } from "./chunks/index.888c3d45.js";
26
26
  import { BentoDatePicker as Lt } from "./date-picker.js";
27
- import { f as ie } from "./chunks/index.c388fc64.js";
27
+ import { f as ie } from "./chunks/index.e57740ab.js";
28
28
  import { e as ne, d as nt, f as ot } from "./chunks/index.f55fdc32.js";
29
- import { C as Ot, i as Nt } from "./chunks/calendar.f00c4de3.js";
30
- import { B as wt, D as Mt, i as Le } from "./chunks/index.fff78e34.js";
29
+ import { C as Ot, i as Nt } from "./chunks/calendar.d26921a5.js";
30
+ import { B as wt, D as Mt, i as Le } from "./chunks/index.eb6f799e.js";
31
31
  import { D as Oe } from "./chunks/date-input.9186a0bf.js";
32
32
  import { BentoButtonActions as Ht } from "./button.js";
33
- import { B as qt } from "./chunks/listbox.0d3b5112.js";
34
- import { B as Kt, L as st } from "./chunks/listbox-option-tag.109460f7.js";
33
+ import { B as qt } from "./chunks/listbox.60318e0a.js";
34
+ import { B as Kt, L as st } from "./chunks/listbox-option-tag.20d2206f.js";
35
35
  import { u as jt } from "./chunks/use-country-items.32e30471.js";
36
36
  import { BentoPaymentMethod as Yt } from "./payment-method.js";
37
37
  import { R as zt } from "./chunks/refresh.bd60f6a8.js";
38
- import { F as Jt } from "./chunks/fixed-scroller.db3bc496.js";
39
- import "./assets/index22.css";
38
+ import { F as Jt } from "./chunks/fixed-scroller.1d3d4983.js";
39
+ import "./assets/index18.css";
40
40
  const Gt = (e, t, a = {}) => {
41
41
  let l;
42
42
  Je(() => {
@@ -2254,11 +2254,11 @@ function na(e, t, a, l, r, s) {
2254
2254
  }
2255
2255
  const oa = /* @__PURE__ */ Y(Gl, [["render", na], ["__scopeId", "data-v-2653c56a"]]), ze = {
2256
2256
  "en-US": {
2257
- clearAll: "Clear all",
2257
+ clearAll: "Clear filters",
2258
2258
  filtersHaveBeenCleared: "Filters have been cleared.",
2259
2259
  filtersHaveBeenReset: "Filters have been reset.",
2260
2260
  undo: "Undo",
2261
- resetAll: "Reset all",
2261
+ resetAll: "Reset filters",
2262
2262
  searchBar: "Search bar"
2263
2263
  }
2264
2264
  }, sa = J({
@@ -1,4 +1,4 @@
1
- import { B as a } from "./chunks/index.526a5595.js";
1
+ import { B as a } from "./chunks/index.b253d8a2.js";
2
2
  export {
3
3
  a as BentoFocusTrap
4
4
  };
@@ -3,8 +3,8 @@ import { BentoAlert as T } from "./alert.js";
3
3
  import { F as k } from "./chunks/form-layout.types.a7a1438d.js";
4
4
  import { u as F } from "./chunks/use-has-slot.4d98bf29.js";
5
5
  import { _ as m } from "./chunks/_plugin-vue_export-helper.dad06003.js";
6
- import { B as y, c as G } from "./chunks/index.93c7dcb9.js";
7
- import "./assets/index27.css";
6
+ import { B as y, c as G } from "./chunks/index.ed76cbb3.js";
7
+ import "./assets/index25.css";
8
8
  const A = {
9
9
  key: 1,
10
10
  class: "b-form-layout__actions-container"
package/dist/header.js CHANGED
@@ -1,27 +1,26 @@
1
- import { defineComponent as F, useSlots as q, ref as y, computed as D, openBlock as m, createElementBlock as A, createVNode as U, unref as _, createBlock as S, withCtx as M, renderSlot as G, toDisplayString as k, createCommentVNode as T, resolveComponent as x, normalizeClass as J, createElementVNode as w, mergeProps as K, createTextVNode as R, createSlots as Q } from "vue";
2
- import { u as Z } from "./chunks/use-has-slot.4d98bf29.js";
3
- import { B as V, c as B, a as ee } from "./chunks/index.93c7dcb9.js";
4
- import { u as W } from "./chunks/i18n.f7e6533e.js";
5
- import { B as te } from "./chunks/button-actions-with-menu.cfcfbb17.js";
6
- import { c as O, a as oe } from "./chunks/index.86453263.js";
7
- import { r as v, t as u, e as X, g as $, d as ne, f as ae } from "./chunks/index.f55fdc32.js";
8
- import { e as re } from "./chunks/index.fdf12170.js";
9
- import { e as se } from "./chunks/index.d80206ed.js";
1
+ import { defineComponent as H, ref as I, openBlock as m, createElementBlock as w, createVNode as x, unref as _, createBlock as b, withCtx as g, renderSlot as G, toDisplayString as A, createCommentVNode as M, computed as O, resolveComponent as N, normalizeClass as q, createElementVNode as E, mergeProps as J, createTextVNode as R, createSlots as K } from "vue";
2
+ import { u as Q } from "./chunks/use-has-slot.4d98bf29.js";
3
+ import { B as V, c as X, a as Z } from "./chunks/index.ed76cbb3.js";
4
+ import { u as F } from "./chunks/i18n.f7e6533e.js";
5
+ import { B as ee } from "./chunks/button-actions-with-menu.6139d2c5.js";
6
+ import { c as D, a as te } from "./chunks/index.86453263.js";
7
+ import { r as v, t as c, e as C, g as L, d as oe, f as ne } from "./chunks/index.f55fdc32.js";
8
+ import { e as ae } from "./chunks/index.fdf12170.js";
9
+ import { e as re } from "./chunks/index.d80206ed.js";
10
+ import { a as y } from "./chunks/index.32f5c644.js";
11
+ import { g as se } from "./chunks/unique-id.a2a2b458.js";
10
12
  import { I as ie } from "./chunks/info.550f9511.js";
11
- import { a as b } from "./chunks/index.91d917cd.js";
12
- import { g as le } from "./chunks/get-slot-text.bead058f.js";
13
- import { g as ce } from "./chunks/unique-id.a2a2b458.js";
14
- import { _ as z } from "./chunks/_plugin-vue_export-helper.dad06003.js";
15
- import "./assets/index23.css";
16
- function ue(e, a) {
13
+ import { _ as W } from "./chunks/_plugin-vue_export-helper.dad06003.js";
14
+ import "./assets/index28.css";
15
+ function le(e, a) {
17
16
  v(2, arguments);
18
- var n = u(e), t = u(a), i = n.getFullYear() - t.getFullYear(), o = n.getMonth() - t.getMonth();
19
- return i * 12 + o;
17
+ var n = c(e), t = c(a), s = n.getFullYear() - t.getFullYear(), o = n.getMonth() - t.getMonth();
18
+ return s * 12 + o;
20
19
  }
21
- function fe(e, a) {
22
- return v(2, arguments), u(e).getTime() - u(a).getTime();
20
+ function ce(e, a) {
21
+ return v(2, arguments), c(e).getTime() - c(a).getTime();
23
22
  }
24
- var L = {
23
+ var B = {
25
24
  ceil: Math.ceil,
26
25
  round: Math.round,
27
26
  floor: Math.floor,
@@ -29,84 +28,84 @@ var L = {
29
28
  return e < 0 ? Math.ceil(e) : Math.floor(e);
30
29
  }
31
30
  // Math.trunc is not supported by IE
32
- }, pe = "trunc";
33
- function de(e) {
34
- return e ? L[e] : L[pe];
31
+ }, ue = "trunc";
32
+ function fe(e) {
33
+ return e ? B[e] : B[ue];
35
34
  }
36
- function me(e) {
35
+ function de(e) {
37
36
  v(1, arguments);
38
- var a = u(e);
39
- return re(a).getTime() === se(a).getTime();
37
+ var a = c(e);
38
+ return ae(a).getTime() === re(a).getTime();
40
39
  }
41
- function ve(e, a) {
40
+ function pe(e, a) {
42
41
  v(2, arguments);
43
- var n = u(e), t = u(a), i = O(n, t), o = Math.abs(ue(n, t)), r;
42
+ var n = c(e), t = c(a), s = D(n, t), o = Math.abs(le(n, t)), r;
44
43
  if (o < 1)
45
44
  r = 0;
46
45
  else {
47
- n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - i * o);
48
- var l = O(n, t) === -i;
49
- me(u(e)) && o === 1 && O(e, t) === 1 && (l = !1), r = i * (o - Number(l));
46
+ n.getMonth() === 1 && n.getDate() > 27 && n.setDate(30), n.setMonth(n.getMonth() - s * o);
47
+ var i = D(n, t) === -s;
48
+ de(c(e)) && o === 1 && D(e, t) === 1 && (i = !1), r = s * (o - Number(i));
50
49
  }
51
50
  return r === 0 ? 0 : r;
52
51
  }
53
- function _e(e, a, n) {
52
+ function me(e, a, n) {
54
53
  v(2, arguments);
55
- var t = fe(e, a) / 1e3;
56
- return de(n == null ? void 0 : n.roundingMethod)(t);
54
+ var t = ce(e, a) / 1e3;
55
+ return fe(n == null ? void 0 : n.roundingMethod)(t);
57
56
  }
58
- var H = 1440, he = 2520, C = 43200, ge = 86400;
59
- function Me(e, a) {
57
+ var $ = 1440, ve = 2520, P = 43200, _e = 86400;
58
+ function he(e, a) {
60
59
  var n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
61
60
  v(2, arguments);
62
- var t = n.locale || X;
61
+ var t = n.locale || C;
63
62
  if (!t.formatDistance)
64
63
  throw new RangeError("locale must contain formatDistance property");
65
- var i = O(e, a);
66
- if (isNaN(i))
64
+ var s = D(e, a);
65
+ if (isNaN(s))
67
66
  throw new RangeError("Invalid time value");
68
- var o = oe(n);
69
- o.addSuffix = !!n.addSuffix, o.comparison = i;
70
- var r, l;
71
- i > 0 ? (r = u(a), l = u(e)) : (r = u(e), l = u(a));
72
- var c = _e(l, r), h = ($(l) - $(r)) / 1e3, s = Math.round((c - h) / 60), p;
73
- if (s < 2)
74
- return n.includeSeconds ? c < 5 ? t.formatDistance("lessThanXSeconds", 5, o) : c < 10 ? t.formatDistance("lessThanXSeconds", 10, o) : c < 20 ? t.formatDistance("lessThanXSeconds", 20, o) : c < 40 ? t.formatDistance("halfAMinute", null, o) : c < 60 ? t.formatDistance("lessThanXMinutes", 1, o) : t.formatDistance("xMinutes", 1, o) : s === 0 ? t.formatDistance("lessThanXMinutes", 1, o) : t.formatDistance("xMinutes", s, o);
75
- if (s < 45)
76
- return t.formatDistance("xMinutes", s, o);
77
- if (s < 90)
67
+ var o = te(n);
68
+ o.addSuffix = !!n.addSuffix, o.comparison = s;
69
+ var r, i;
70
+ s > 0 ? (r = c(a), i = c(e)) : (r = c(e), i = c(a));
71
+ var u = me(i, r), T = (L(i) - L(r)) / 1e3, l = Math.round((u - T) / 60), d;
72
+ if (l < 2)
73
+ return n.includeSeconds ? u < 5 ? t.formatDistance("lessThanXSeconds", 5, o) : u < 10 ? t.formatDistance("lessThanXSeconds", 10, o) : u < 20 ? t.formatDistance("lessThanXSeconds", 20, o) : u < 40 ? t.formatDistance("halfAMinute", null, o) : u < 60 ? t.formatDistance("lessThanXMinutes", 1, o) : t.formatDistance("xMinutes", 1, o) : l === 0 ? t.formatDistance("lessThanXMinutes", 1, o) : t.formatDistance("xMinutes", l, o);
74
+ if (l < 45)
75
+ return t.formatDistance("xMinutes", l, o);
76
+ if (l < 90)
78
77
  return t.formatDistance("aboutXHours", 1, o);
79
- if (s < H) {
80
- var N = Math.round(s / 60);
81
- return t.formatDistance("aboutXHours", N, o);
78
+ if (l < $) {
79
+ var f = Math.round(l / 60);
80
+ return t.formatDistance("aboutXHours", f, o);
82
81
  } else {
83
- if (s < he)
82
+ if (l < ve)
84
83
  return t.formatDistance("xDays", 1, o);
85
- if (s < C) {
86
- var P = Math.round(s / H);
87
- return t.formatDistance("xDays", P, o);
88
- } else if (s < ge)
89
- return p = Math.round(s / C), t.formatDistance("aboutXMonths", p, o);
84
+ if (l < P) {
85
+ var U = Math.round(l / $);
86
+ return t.formatDistance("xDays", U, o);
87
+ } else if (l < _e)
88
+ return d = Math.round(l / P), t.formatDistance("aboutXMonths", d, o);
90
89
  }
91
- if (p = ve(l, r), p < 12) {
92
- var E = Math.round(s / C);
93
- return t.formatDistance("xMonths", E, o);
90
+ if (d = pe(i, r), d < 12) {
91
+ var j = Math.round(l / P);
92
+ return t.formatDistance("xMonths", j, o);
94
93
  } else {
95
- var f = p % 12, I = Math.floor(p / 12);
96
- return f < 3 ? t.formatDistance("aboutXYears", I, o) : f < 9 ? t.formatDistance("overXYears", I, o) : t.formatDistance("almostXYears", I + 1, o);
94
+ var k = d % 12, S = Math.floor(d / 12);
95
+ return k < 3 ? t.formatDistance("aboutXYears", S, o) : k < 9 ? t.formatDistance("overXYears", S, o) : t.formatDistance("almostXYears", S + 1, o);
97
96
  }
98
97
  }
99
- function Te(e, a) {
100
- return v(1, arguments), Me(e, Date.now(), a);
98
+ function ge(e, a) {
99
+ return v(1, arguments), he(e, Date.now(), a);
101
100
  }
102
- const j = {
101
+ const z = {
103
102
  "en-US": {
104
103
  infoIconAriaLabel: "More information"
105
104
  }
106
- }, Ie = { key: 0 }, ye = {
107
- i18n: { messages: j }
108
- }, be = /* @__PURE__ */ F({
109
- ...ye,
105
+ }, Me = { key: 0 }, Te = {
106
+ i18n: { messages: z }
107
+ }, Ie = /* @__PURE__ */ H({
108
+ ...Te,
110
109
  __name: "info-icon-with-popover",
111
110
  props: {
112
111
  /**
@@ -117,80 +116,80 @@ const j = {
117
116
  * Position the popover should take if space is available
118
117
  */
119
118
  popoverPosition: {
120
- type: b.props.position.type,
121
- default: b.props.position.default,
122
- validator: b.props.position.validator
119
+ type: y.props.position.type,
120
+ default: y.props.position.default,
121
+ validator: y.props.position.validator
123
122
  }
124
123
  },
125
124
  setup(e) {
126
- const a = e, n = 200, t = q(), { t: i } = W({ messages: j }), o = y(), r = y(null), l = ce("bento-info-icon-with-popover"), c = y(), h = y(), s = () => {
127
- c.value = !0, h.value && clearTimeout(h.value);
128
- }, p = () => {
125
+ const { t: n } = F({ messages: z }), t = I(), s = I(null), o = se("bento-info-icon-with-popover"), r = I(), i = I(), u = () => {
126
+ r.value = !0, i.value && clearTimeout(i.value);
127
+ }, T = () => {
129
128
  const f = setTimeout(() => {
130
- c.value = !1;
131
- }, n);
132
- h.value = f;
133
- }, N = D(() => a.popoverText ?? le(t)("default")), P = () => {
134
- s();
135
- }, E = (f) => {
136
- (!o.value || !((f == null ? void 0 : f.relatedTarget) instanceof Element) || !o.value.contains(f.relatedTarget)) && p();
129
+ r.value = !1;
130
+ }, 200);
131
+ i.value = f;
132
+ }, l = () => {
133
+ u();
134
+ }, d = (f) => {
135
+ (!t.value || !((f == null ? void 0 : f.relatedTarget) instanceof Element) || !t.value.contains(f.relatedTarget)) && T();
137
136
  };
138
- return (f, I) => (m(), A("div", {
137
+ return (f, U) => (m(), w("div", {
139
138
  ref_key: "infoIconRef",
140
- ref: o,
139
+ ref: t,
141
140
  class: "b-info-icon-with-popover",
142
141
  tabindex: "0",
143
142
  "data-testid": "info-icon-with-popover",
144
- onMouseenter: s,
145
- onMouseleave: p,
146
- onFocus: P,
147
- onFocusout: E
143
+ onMouseenter: u,
144
+ onMouseleave: T,
145
+ onFocus: l,
146
+ onFocusout: d
148
147
  }, [
149
- U(_(ie), {
148
+ x(_(ie), {
150
149
  ref_key: "targetElement",
151
- ref: r,
150
+ ref: s,
152
151
  class: "b-info-icon-with-popover__svg",
153
- "aria-expanded": c.value,
154
- "aria-describedby": _(l),
155
- "svg-title": _(i)("infoIconAriaLabel")
152
+ "aria-expanded": r.value,
153
+ "aria-describedby": _(o),
154
+ "svg-title": _(n)("infoIconAriaLabel")
156
155
  }, null, 8, ["aria-expanded", "aria-describedby", "svg-title"]),
157
- r.value && _(N) ? (m(), S(_(b), {
156
+ s.value ? (m(), b(_(y), {
158
157
  key: 0,
159
- open: c.value,
160
- "target-element": r.value,
158
+ open: r.value,
159
+ "target-element": s.value,
161
160
  position: e.popoverPosition,
162
161
  role: "tooltip",
163
162
  "fit-content": "",
164
163
  "disable-focus-trap": ""
165
164
  }, {
166
- default: M(() => [
167
- U(_(V), null, {
168
- default: M(() => [
165
+ default: g(() => [
166
+ x(_(V), null, {
167
+ default: g(() => [
169
168
  G(f.$slots, "default", {}, () => [
170
- e.popoverText ? (m(), A("div", Ie, k(e.popoverText), 1)) : T("", !0)
169
+ e.popoverText ? (m(), w("div", Me, A(e.popoverText), 1)) : M("", !0)
171
170
  ], !0)
172
171
  ]),
173
172
  _: 3
174
173
  })
175
174
  ]),
176
175
  _: 3
177
- }, 8, ["open", "target-element", "position"])) : T("", !0)
176
+ }, 8, ["open", "target-element", "position"])) : M("", !0)
178
177
  ], 544));
179
178
  }
180
179
  });
181
- const g = /* @__PURE__ */ z(be, [["__scopeId", "data-v-e0c8c1a0"]]);
182
- var d = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(d || {});
180
+ const h = /* @__PURE__ */ W(Ie, [["__scopeId", "data-v-6adc0995"]]);
181
+ var p = /* @__PURE__ */ ((e) => (e.PAGE = "page", e.COMPONENT = "component", e))(p || {});
183
182
  const Y = {
184
183
  "en-US": {
185
184
  lastUpdated: "Last updated: {date} ago"
186
185
  }
187
- }, De = F({
186
+ }, ye = H({
188
187
  i18n: { messages: Y },
189
188
  name: "bento-header",
190
189
  components: {
191
190
  BentoTypography: V,
192
- ButtonActionsWithMenu: te,
193
- InfoIconWithPopover: g
191
+ ButtonActionsWithMenu: ee,
192
+ InfoIconWithPopover: h
194
193
  },
195
194
  props: {
196
195
  /**
@@ -203,14 +202,14 @@ const Y = {
203
202
  /**
204
203
  * Text showed in the info-icon tooltip on hover
205
204
  */
206
- infoIconTooltipText: { type: g.props.popoverText.type, default: null },
205
+ infoIconTooltipText: { type: h.props.popoverText.type, default: null },
207
206
  /**
208
207
  * Popover position of the info icon text.
209
208
  */
210
209
  infoIconPopoverPosition: {
211
- type: g.props.popoverPosition.type,
212
- default: g.props.popoverPosition.default,
213
- validator: g.props.popoverPosition.validator
210
+ type: h.props.popoverPosition.type,
211
+ default: h.props.popoverPosition.default,
212
+ validator: h.props.popoverPosition.validator
214
213
  },
215
214
  /**
216
215
  * JavaScript "Date" object for when the content was last updated
@@ -222,8 +221,8 @@ const Y = {
222
221
  */
223
222
  variant: {
224
223
  type: String,
225
- default: d.PAGE,
226
- validator: (e) => Object.values(d).includes(e)
224
+ default: p.PAGE,
225
+ validator: (e) => Object.values(p).includes(e)
227
226
  },
228
227
  /**
229
228
  * Text used as a title
@@ -231,80 +230,80 @@ const Y = {
231
230
  title: { type: String, required: !0 }
232
231
  },
233
232
  setup(e, { slots: a }) {
234
- const { t: n, locale: t } = W({ messages: Y }), i = { de: ne, enUS: X, fr: ae }, o = D(() => ({
235
- "b-header--component": e.variant === d.COMPONENT
236
- })), r = D(() => ({
237
- el: e.variant === d.PAGE ? B.H1 : B.H2,
238
- variant: ee.TITLE,
239
- medium: e.variant === d.COMPONENT,
240
- large: e.variant === d.PAGE
241
- })), l = D(
233
+ const { t: n, locale: t } = F({ messages: Y }), s = { de: oe, enUS: C, fr: ne }, o = O(() => ({
234
+ "b-header--component": e.variant === p.COMPONENT
235
+ })), r = O(() => ({
236
+ el: e.variant === p.PAGE ? X.H1 : X.H2,
237
+ variant: Z.TITLE,
238
+ medium: e.variant === p.COMPONENT,
239
+ large: e.variant === p.PAGE
240
+ })), i = O(
242
241
  () => e.lastUpdated ? n("lastUpdated", {
243
- date: Te(e.lastUpdated, {
244
- locale: i[t.value.substring(0, 2)] || X
242
+ date: ge(e.lastUpdated, {
243
+ locale: s[t.value.substring(0, 2)] || C
245
244
  })
246
245
  }) : null
247
246
  );
248
247
  return {
249
- hasSlot: Z(a),
248
+ hasSlot: Q(a),
250
249
  conditionalClasses: o,
251
- timestamp: l,
250
+ timestamp: i,
252
251
  typography: r
253
252
  };
254
253
  }
255
254
  });
256
- const Se = { class: "b-header__wrapper" }, Oe = { class: "b-header__title" };
257
- function Ne(e, a, n, t, i, o) {
258
- const r = x("bento-typography"), l = x("info-icon-with-popover"), c = x("button-actions-with-menu");
259
- return m(), A("div", {
260
- class: J(["b-header", e.conditionalClasses])
255
+ const be = { class: "b-header__wrapper" }, De = { class: "b-header__title" };
256
+ function Se(e, a, n, t, s, o) {
257
+ const r = N("bento-typography"), i = N("info-icon-with-popover"), u = N("button-actions-with-menu");
258
+ return m(), w("div", {
259
+ class: q(["b-header", e.conditionalClasses])
261
260
  }, [
262
- w("div", Se, [
263
- w("div", Oe, [
264
- w("div", null, [
265
- U(r, K(e.typography, { class: "b-header__text" }), {
266
- default: M(() => [
267
- R(k(e.title), 1)
261
+ E("div", be, [
262
+ E("div", De, [
263
+ E("div", null, [
264
+ x(r, J(e.typography, { class: "b-header__text" }), {
265
+ default: g(() => [
266
+ R(A(e.title), 1)
268
267
  ]),
269
268
  _: 1
270
269
  }, 16),
271
- e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (m(), S(l, {
270
+ e.infoIconTooltipText || e.hasSlot("infoIconTooltipContent") ? (m(), b(i, {
272
271
  key: 0,
273
272
  class: "b-header__tooltip",
274
273
  "popover-text": e.infoIconTooltipText
275
- }, Q({ _: 2 }, [
274
+ }, K({ _: 2 }, [
276
275
  e.hasSlot("infoIconTooltipContent") ? {
277
276
  name: "default",
278
- fn: M(() => [
277
+ fn: g(() => [
279
278
  G(e.$slots, "infoIconTooltipContent", {}, void 0, !0)
280
279
  ]),
281
280
  key: "0"
282
281
  } : void 0
283
- ]), 1032, ["popover-text"])) : T("", !0)
282
+ ]), 1032, ["popover-text"])) : M("", !0)
284
283
  ]),
285
- e.lastUpdated ? (m(), S(r, {
284
+ e.lastUpdated ? (m(), b(r, {
286
285
  key: 0,
287
286
  class: "b-header__timestamp",
288
287
  el: "div",
289
288
  variant: "caption"
290
289
  }, {
291
- default: M(() => [
292
- R(k(e.timestamp), 1)
290
+ default: g(() => [
291
+ R(A(e.timestamp), 1)
293
292
  ]),
294
293
  _: 1
295
- })) : T("", !0)
294
+ })) : M("", !0)
296
295
  ]),
297
- e.actions ? (m(), S(c, {
296
+ e.actions ? (m(), b(u, {
298
297
  key: 0,
299
298
  actions: e.actions,
300
299
  "displayed-actions": 2,
301
300
  class: "b-header__actions"
302
- }, null, 8, ["actions"])) : T("", !0)
301
+ }, null, 8, ["actions"])) : M("", !0)
303
302
  ])
304
303
  ], 2);
305
304
  }
306
- const Ye = /* @__PURE__ */ z(De, [["render", Ne], ["__scopeId", "data-v-55015fd0"]]);
305
+ const Be = /* @__PURE__ */ W(ye, [["render", Se], ["__scopeId", "data-v-55015fd0"]]);
307
306
  export {
308
- Ye as BentoHeader
307
+ Be as BentoHeader
309
308
  };
310
309
  //# sourceMappingURL=header.js.map