@adyen/bento-vue2 1.34.0 → 1.35.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (188) hide show
  1. package/dist/@types/index.d.ts +2 -2
  2. package/dist/accordion.js +1 -1
  3. package/dist/action-bar.js +1 -1
  4. package/dist/alert.js +1 -1
  5. package/dist/assets/accordion-item.css +1 -1
  6. package/dist/assets/action-bar.css +1 -1
  7. package/dist/assets/avatar.css +1 -1
  8. package/dist/assets/base-modal.css +1 -1
  9. package/dist/assets/calendar.css +1 -1
  10. package/dist/assets/card.css +1 -1
  11. package/dist/assets/checkbox.css +1 -1
  12. package/dist/assets/code-snippet.css +1 -1
  13. package/dist/assets/currency.css +1 -0
  14. package/dist/assets/data-grid.css +1 -1
  15. package/dist/assets/date-range-picker.css +1 -1
  16. package/dist/assets/dialog-page.css +1 -1
  17. package/dist/assets/dropdown.css +1 -1
  18. package/dist/assets/error-message.css +1 -1
  19. package/dist/assets/filter-bar.css +1 -1
  20. package/dist/assets/header.css +1 -1
  21. package/dist/assets/inspector.css +1 -1
  22. package/dist/assets/loading-button.css +1 -1
  23. package/dist/assets/menu.css +1 -1
  24. package/dist/assets/modal-fullscreen.css +1 -1
  25. package/dist/assets/popover.css +1 -1
  26. package/dist/assets/sidepanel.css +1 -1
  27. package/dist/assets/structured-list-item.css +1 -1
  28. package/dist/assets/tutorial.css +1 -1
  29. package/dist/avatar.js +1 -1
  30. package/dist/button.js +2 -2
  31. package/dist/card.js +1 -1
  32. package/dist/checkbox.js +2 -2
  33. package/dist/chunks/accordion-item.BDNSykyK.js +116 -0
  34. package/dist/chunks/accordion-item.BDNSykyK.js.map +1 -0
  35. package/dist/chunks/{action-bar.CsRmYQ-k.js → action-bar.CCVKS1xo.js} +51 -37
  36. package/dist/chunks/{action-bar.CsRmYQ-k.js.map → action-bar.CCVKS1xo.js.map} +1 -1
  37. package/dist/chunks/{alert.DtT7BRdr.js → alert.CVsckdGC.js} +17 -11
  38. package/dist/chunks/{alert.DtT7BRdr.js.map → alert.CVsckdGC.js.map} +1 -1
  39. package/dist/chunks/{avatar.0ffdL8i0.js → avatar.qcWk9clF.js} +9 -9
  40. package/dist/chunks/avatar.qcWk9clF.js.map +1 -0
  41. package/dist/chunks/{base-modal.zHjXVjwU.js → base-modal.BaHkDH5f.js} +15 -9
  42. package/dist/chunks/{base-modal.zHjXVjwU.js.map → base-modal.BaHkDH5f.js.map} +1 -1
  43. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js → button-actions-with-menu.Bl82u6yP.js} +4 -4
  44. package/dist/chunks/{button-actions-with-menu.B6Nb6Ohu.js.map → button-actions-with-menu.Bl82u6yP.js.map} +1 -1
  45. package/dist/chunks/{button-actions.BQHr68sA.js → button-actions.DN4eIQes.js} +2 -2
  46. package/dist/chunks/{button-actions.BQHr68sA.js.map → button-actions.DN4eIQes.js.map} +1 -1
  47. package/dist/chunks/{calendar.CaTMWZUM.js → calendar.BFrqPClW.js} +230 -230
  48. package/dist/chunks/calendar.BFrqPClW.js.map +1 -0
  49. package/dist/chunks/card.lWLgpCWM.js +123 -0
  50. package/dist/chunks/card.lWLgpCWM.js.map +1 -0
  51. package/dist/chunks/{checkbox-group.D_mCZMPr.js → checkbox-group.C0cqbJWx.js} +4 -4
  52. package/dist/chunks/{checkbox-group.D_mCZMPr.js.map → checkbox-group.C0cqbJWx.js.map} +1 -1
  53. package/dist/chunks/{checkbox.CaX67eM_.js → checkbox.B3u_hzUo.js} +38 -28
  54. package/dist/chunks/{checkbox.CaX67eM_.js.map → checkbox.B3u_hzUo.js.map} +1 -1
  55. package/dist/chunks/{code-snippet.DgKK7fE8.js → code-snippet.BgjvWTHP.js} +43 -34
  56. package/dist/chunks/code-snippet.BgjvWTHP.js.map +1 -0
  57. package/dist/chunks/{controls-group.6aTaRWFI.js → controls-group.DLBxlPfl.js} +2 -2
  58. package/dist/chunks/{controls-group.6aTaRWFI.js.map → controls-group.DLBxlPfl.js.map} +1 -1
  59. package/dist/chunks/{copy.B1DYKX_q.js → copy.CmxcGt77.js} +31 -23
  60. package/dist/chunks/{copy.B1DYKX_q.js.map → copy.CmxcGt77.js.map} +1 -1
  61. package/dist/chunks/{currency.D_2CN1OJ.js → currency.CbZqZrBz.js} +9 -8
  62. package/dist/chunks/{currency.D_2CN1OJ.js.map → currency.CbZqZrBz.js.map} +1 -1
  63. package/dist/chunks/{dashboard-section.DWfQGGwS.js → dashboard-section.BfXtTf6l.js} +2 -2
  64. package/dist/chunks/{dashboard-section.DWfQGGwS.js.map → dashboard-section.BfXtTf6l.js.map} +1 -1
  65. package/dist/chunks/{dashed-underline.C7gLtEqx.js → dashed-underline.xq5j9fGG.js} +2 -2
  66. package/dist/chunks/{dashed-underline.C7gLtEqx.js.map → dashed-underline.xq5j9fGG.js.map} +1 -1
  67. package/dist/chunks/{data-grid-template.2xocKVqX.js → data-grid-template.C8AR5CxA.js} +2 -2
  68. package/dist/chunks/{data-grid-template.2xocKVqX.js.map → data-grid-template.C8AR5CxA.js.map} +1 -1
  69. package/dist/chunks/{data-grid.CUn6MrZz.js → data-grid.BCTcokYm.js} +472 -426
  70. package/dist/chunks/{data-grid.CUn6MrZz.js.map → data-grid.BCTcokYm.js.map} +1 -1
  71. package/dist/chunks/{date-picker.C6_KbCYT.js → date-picker.CPG0zksD.js} +91 -83
  72. package/dist/chunks/date-picker.CPG0zksD.js.map +1 -0
  73. package/dist/chunks/{date-range-picker.DaTgBXP1.js → date-range-picker.Bt439x32.js} +265 -243
  74. package/dist/chunks/date-range-picker.Bt439x32.js.map +1 -0
  75. package/dist/chunks/{date.DaiTzNEZ.js → date.C0uwNQjg.js} +80 -80
  76. package/dist/chunks/{date.DaiTzNEZ.js.map → date.C0uwNQjg.js.map} +1 -1
  77. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js → dropdown-tag.Cd4LGtwl.js} +3 -3
  78. package/dist/chunks/{dropdown-tag.pJ_sQbJN.js.map → dropdown-tag.Cd4LGtwl.js.map} +1 -1
  79. package/dist/chunks/{dropdown.DpsQPLy-.js → dropdown.B4KMM58m.js} +158 -139
  80. package/dist/chunks/dropdown.B4KMM58m.js.map +1 -0
  81. package/dist/chunks/{error-message.BnFyGbR7.js → error-message.GCYDEzGL.js} +28 -14
  82. package/dist/chunks/{error-message.BnFyGbR7.js.map → error-message.GCYDEzGL.js.map} +1 -1
  83. package/dist/chunks/es6.BvpG4Oi6.js.map +1 -1
  84. package/dist/chunks/{filter-bar.DGBvcKsz.js → filter-bar.Co2YeUUg.js} +604 -589
  85. package/dist/chunks/filter-bar.Co2YeUUg.js.map +1 -0
  86. package/dist/chunks/{footer-actions.CwHY2-Ap.js → footer-actions.CxxS87iQ.js} +2 -2
  87. package/dist/chunks/{footer-actions.CwHY2-Ap.js.map → footer-actions.CxxS87iQ.js.map} +1 -1
  88. package/dist/chunks/{form-layout-title.CRsR3o2x.js → form-layout-title.DomnJXLE.js} +2 -2
  89. package/dist/chunks/{form-layout-title.CRsR3o2x.js.map → form-layout-title.DomnJXLE.js.map} +1 -1
  90. package/dist/chunks/{index.B_UZQ6qF.js → get-date-locale.BN8xEjY0.js} +855 -204
  91. package/dist/chunks/get-date-locale.BN8xEjY0.js.map +1 -0
  92. package/dist/chunks/{header.BmNDoXio.js → header.zacQVbjn.js} +79 -73
  93. package/dist/chunks/{header.BmNDoXio.js.map → header.zacQVbjn.js.map} +1 -1
  94. package/dist/chunks/{index.Z84QE0E2.js → index.CrhTVr5J.js} +2 -2
  95. package/dist/chunks/{index.Z84QE0E2.js.map → index.CrhTVr5J.js.map} +1 -1
  96. package/dist/chunks/{index.xqFSZOAb.js → index.DDnf1O9p.js} +2 -2
  97. package/dist/chunks/{index.xqFSZOAb.js.map → index.DDnf1O9p.js.map} +1 -1
  98. package/dist/chunks/{index.B_EJflcs.js → index.DPafeRJa.js} +2 -2
  99. package/dist/chunks/{index.B_EJflcs.js.map → index.DPafeRJa.js.map} +1 -1
  100. package/dist/chunks/{input-field.S5HIZtYA.js → input-field.DBrzeKBj.js} +3 -3
  101. package/dist/chunks/{input-field.S5HIZtYA.js.map → input-field.DBrzeKBj.js.map} +1 -1
  102. package/dist/chunks/{inspector.types.D6kCCKNk.js → inspector.types.lu_MoQn5.js} +17 -9
  103. package/dist/chunks/{inspector.types.D6kCCKNk.js.map → inspector.types.lu_MoQn5.js.map} +1 -1
  104. package/dist/chunks/{loading-button.DDPZYO6r.js → loading-button.DoX2sopf.js} +39 -25
  105. package/dist/chunks/loading-button.DoX2sopf.js.map +1 -0
  106. package/dist/chunks/{menu.DSOJEn4v.js → menu.DHakGFS4.js} +2 -2
  107. package/dist/chunks/{menu.DSOJEn4v.js.map → menu.DHakGFS4.js.map} +1 -1
  108. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js → modal-fullscreen.mIlp0LnL.js} +25 -19
  109. package/dist/chunks/{modal-fullscreen.BQKE0bm0.js.map → modal-fullscreen.mIlp0LnL.js.map} +1 -1
  110. package/dist/chunks/{modal.ClqkmzVZ.js → modal.CtTQWN8H.js} +25 -19
  111. package/dist/chunks/modal.CtTQWN8H.js.map +1 -0
  112. package/dist/chunks/{pagination.he0lQGAV.js → pagination.By-p9MjL.js} +2 -2
  113. package/dist/chunks/{pagination.he0lQGAV.js.map → pagination.By-p9MjL.js.map} +1 -1
  114. package/dist/chunks/{popover.UmNw_M-C.js → popover.BDaf6hmW.js} +2 -2
  115. package/dist/chunks/{popover.UmNw_M-C.js.map → popover.BDaf6hmW.js.map} +1 -1
  116. package/dist/chunks/{radio-group.D7cuMKzV.js → radio-group.OaYz1wJf.js} +3 -3
  117. package/dist/chunks/{radio-group.D7cuMKzV.js.map → radio-group.OaYz1wJf.js.map} +1 -1
  118. package/dist/chunks/{search-bar.BPyYb0WB.js → search-bar.eC-crOww.js} +14 -6
  119. package/dist/chunks/{search-bar.BPyYb0WB.js.map → search-bar.eC-crOww.js.map} +1 -1
  120. package/dist/chunks/{secondary-nav.CMUfpgQf.js → secondary-nav.1xw-o8OR.js} +2 -2
  121. package/dist/chunks/{secondary-nav.CMUfpgQf.js.map → secondary-nav.1xw-o8OR.js.map} +1 -1
  122. package/dist/chunks/{selection-card-group.DbMfzyTG.js → selection-card-group.BLPaJy5U.js} +3 -3
  123. package/dist/chunks/{selection-card-group.DbMfzyTG.js.map → selection-card-group.BLPaJy5U.js.map} +1 -1
  124. package/dist/chunks/{sidepanel.Ck6Ts9RR.js → sidepanel.ZYT_vzbj.js} +24 -18
  125. package/dist/chunks/{sidepanel.Ck6Ts9RR.js.map → sidepanel.ZYT_vzbj.js.map} +1 -1
  126. package/dist/chunks/{structured-list-item.DpLscUX4.js → structured-list-item.D7D8VpQY.js} +22 -16
  127. package/dist/chunks/{structured-list-item.DpLscUX4.js.map → structured-list-item.D7D8VpQY.js.map} +1 -1
  128. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js → summary-grid-item-custom.v0QSLZKT.js} +2 -2
  129. package/dist/chunks/{summary-grid-item-custom.B7Re6OCf.js.map → summary-grid-item-custom.v0QSLZKT.js.map} +1 -1
  130. package/dist/chunks/{textarea.BRMpTWKS.js → textarea.C0IMS5XS.js} +2 -2
  131. package/dist/chunks/{textarea.BRMpTWKS.js.map → textarea.C0IMS5XS.js.map} +1 -1
  132. package/dist/chunks/{timeline-item.jh7UnviR.js → timeline-item.Dmd78uwQ.js} +53 -47
  133. package/dist/chunks/{timeline-item.jh7UnviR.js.map → timeline-item.Dmd78uwQ.js.map} +1 -1
  134. package/dist/chunks/{tutorial.DERGsCkg.js → tutorial.D64_0i0-.js} +50 -38
  135. package/dist/chunks/{tutorial.DERGsCkg.js.map → tutorial.D64_0i0-.js.map} +1 -1
  136. package/dist/chunks/{use-cached-selected-values.B39-iEp4.js → use-cached-selected-values.BOAumEi7.js} +54 -40
  137. package/dist/chunks/{use-cached-selected-values.B39-iEp4.js.map → use-cached-selected-values.BOAumEi7.js.map} +1 -1
  138. package/dist/code-snippet.js +1 -1
  139. package/dist/currency.js +1 -1
  140. package/dist/dashboard-template.js +1 -1
  141. package/dist/dashed-underline.js +1 -1
  142. package/dist/data-grid-template.js +1 -1
  143. package/dist/data-grid.js +1 -1
  144. package/dist/date-picker.js +2 -2
  145. package/dist/date-range-picker.js +2 -2
  146. package/dist/date.js +1 -1
  147. package/dist/dropdown.js +3 -3
  148. package/dist/filter-bar.js +1 -1
  149. package/dist/form-layout.js +1 -1
  150. package/dist/header.js +1 -1
  151. package/dist/index.js +43 -43
  152. package/dist/input-field.js +1 -1
  153. package/dist/inspector.js +1 -1
  154. package/dist/internal.js +5 -5
  155. package/dist/menu.js +1 -1
  156. package/dist/modal-fullscreen.js +1 -1
  157. package/dist/modal.js +2 -2
  158. package/dist/pagination.js +1 -1
  159. package/dist/popover.js +1 -1
  160. package/dist/radio-group.js +1 -1
  161. package/dist/search-bar.js +2 -2
  162. package/dist/secondary-nav.js +1 -1
  163. package/dist/selection-card.js +1 -1
  164. package/dist/sidepanel.js +1 -1
  165. package/dist/structured-list.js +1 -1
  166. package/dist/styles/bento.css +3 -0
  167. package/dist/styles/legacy.css +3 -0
  168. package/dist/styles/styleguide.css +3 -0
  169. package/dist/summary-grid.js +1 -1
  170. package/dist/textarea.js +1 -1
  171. package/dist/timeline.js +1 -1
  172. package/dist/tutorial.js +1 -1
  173. package/dist/web-types.json +9 -9
  174. package/package.json +2 -2
  175. package/dist/chunks/accordion-item.IMlV_Vik.js +0 -100
  176. package/dist/chunks/accordion-item.IMlV_Vik.js.map +0 -1
  177. package/dist/chunks/avatar.0ffdL8i0.js.map +0 -1
  178. package/dist/chunks/calendar.CaTMWZUM.js.map +0 -1
  179. package/dist/chunks/card.ignL7-CH.js +0 -115
  180. package/dist/chunks/card.ignL7-CH.js.map +0 -1
  181. package/dist/chunks/code-snippet.DgKK7fE8.js.map +0 -1
  182. package/dist/chunks/date-picker.C6_KbCYT.js.map +0 -1
  183. package/dist/chunks/date-range-picker.DaTgBXP1.js.map +0 -1
  184. package/dist/chunks/dropdown.DpsQPLy-.js.map +0 -1
  185. package/dist/chunks/filter-bar.DGBvcKsz.js.map +0 -1
  186. package/dist/chunks/index.B_UZQ6qF.js.map +0 -1
  187. package/dist/chunks/loading-button.DDPZYO6r.js.map +0 -1
  188. package/dist/chunks/modal.ClqkmzVZ.js.map +0 -1
@@ -1,16 +1,16 @@
1
- import { defineComponent as h, ref as d, computed as a, isRef as P, watch as g, nextTick as $ } from "vue";
2
- import { B as I } from "./menu.DSOJEn4v.js";
3
- import { a as T, B as w } from "./popover.UmNw_M-C.js";
4
- import { B as k } from "./typography.CqQaHXhq.js";
1
+ import { defineComponent as h, ref as f, computed as a, isRef as F, watch as g, nextTick as $ } from "vue";
2
+ import { B as k } from "./menu.DHakGFS4.js";
3
+ import { a as S, B as I } from "./popover.BDaf6hmW.js";
4
+ import { B as w } from "./typography.CqQaHXhq.js";
5
5
  import { B as N } from "./image.B3uqhFjl.js";
6
6
  import { u as A } from "./i18n.BQkEbtPM.js";
7
7
  import { R as D } from "./refresh.BKI9WwKh.js";
8
- import { n as f } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
8
+ import { n as d } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
9
9
  import { P as b, h as j, o as L } from "./popper-container.CnWphJTN.js";
10
- import { B as M } from "./button-actions.BQHr68sA.js";
10
+ import { B as M } from "./button-actions.DN4eIQes.js";
11
11
  import "../assets/tutorial.css";
12
- var E;
13
- const V = /* @__PURE__ */ h({
12
+ var B;
13
+ const K = /* @__PURE__ */ h({
14
14
  __name: "tutorial-indicator",
15
15
  props: {
16
16
  /**
@@ -18,12 +18,12 @@ const V = /* @__PURE__ */ h({
18
18
  * The indicator will position itself around the target element.
19
19
  */
20
20
  targetElement: {
21
- type: (E = b.props) == null ? void 0 : E.targetElement.type,
21
+ type: (B = b.props) == null ? void 0 : B.targetElement.type,
22
22
  required: !0
23
23
  }
24
24
  },
25
25
  setup(n) {
26
- const e = d({
26
+ const e = f({
27
27
  width: "0",
28
28
  height: "0",
29
29
  borderRadius: "0"
@@ -53,36 +53,36 @@ const V = /* @__PURE__ */ h({
53
53
  return { __sfc: !0, BORDER_OFFSET: 2, computedStyles: e, getBorderRadius: s, middleware: o, PopperContainer: b };
54
54
  }
55
55
  });
56
- var q = function() {
56
+ var V = function() {
57
57
  var t = this, e = t._self._c, s = t._self._setupProxy;
58
58
  return e(s.PopperContainer, { staticClass: "b-tutorial-indicator", attrs: { "target-element": t.targetElement, middleware: s.middleware, position: "top-start", "fixed-positioning": "", "disabled-focus-trap": "", "data-testid": "tutorial-indicator" } }, [e("div", { staticClass: "b-tutorial-indicator__highlight", style: s.computedStyles })]);
59
- }, K = [], Z = /* @__PURE__ */ f(
59
+ }, q = [], Z = /* @__PURE__ */ d(
60
+ K,
60
61
  V,
61
62
  q,
62
- K,
63
63
  !1,
64
64
  null,
65
65
  "ea45578e"
66
66
  );
67
67
  const z = Z.exports;
68
- let B = 0;
68
+ let x = 0;
69
69
  const H = {
70
70
  beforeCreate() {
71
- this.uuid = B.toString(), B += 1;
71
+ this.uuid = x.toString(), x += 1;
72
72
  }
73
73
  };
74
74
  var U = function() {
75
75
  var t = this, e = t._self._c;
76
76
  return e("svg", t._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", t.$attrs, !1), [t.$attrs["svg-title"] ? e("title", [t._v(t._s(t.$attrs["svg-title"]))]) : t._e(), e("g", { attrs: { "clip-path": "url(#uia-icons-16-blocked__a" + t.uuid + ")" } }, [e("path", { attrs: { fill: "#00112C", d: "M9.51195 0.398918C8.00859 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z" } })]), e("defs", [e("clipPath", { attrs: { id: "uia-icons-16-blocked__a" + t.uuid } }, [e("rect", { attrs: { width: "16", height: "16", fill: "#fff" } })])])]);
77
- }, W = [], X = /* @__PURE__ */ f(
77
+ }, J = [], W = /* @__PURE__ */ d(
78
78
  H,
79
79
  U,
80
- W,
80
+ J,
81
81
  !1,
82
82
  null,
83
83
  null
84
84
  );
85
- const G = X.exports, J = {
85
+ const X = W.exports, G = {
86
86
  "en-US": {
87
87
  finish: "Finish",
88
88
  next: "Next",
@@ -91,9 +91,21 @@ const G = X.exports, J = {
91
91
  skipTour: "Skip tour",
92
92
  startTour: "Start tour",
93
93
  stepsOfTotal: "{step} of {totalSteps}"
94
+ },
95
+ "pt-BR": {
96
+ finish: "Terminar",
97
+ next: "Próximo",
98
+ ok: "OK",
99
+ skipTour: "Pular tour"
100
+ },
101
+ "ja-JP": {
102
+ finish: "終了",
103
+ next: "次へ",
104
+ ok: "OK",
105
+ skipTour: "ツアーをスキップ"
94
106
  }
95
107
  }, Q = {
96
- i18n: { messages: J }
108
+ i18n: { messages: G }
97
109
  }, Y = /* @__PURE__ */ h({
98
110
  ...Q,
99
111
  __name: "tutorial-popover",
@@ -131,8 +143,8 @@ const G = X.exports, J = {
131
143
  */
132
144
  position: {
133
145
  type: String,
134
- default: T.BOTTOM_START,
135
- validator: (n) => Object.values(T).includes(n)
146
+ default: S.BOTTOM_START,
147
+ validator: (n) => Object.values(S).includes(n)
136
148
  },
137
149
  /**
138
150
  * Options to control the scroll into view behavior.
@@ -201,38 +213,38 @@ const G = X.exports, J = {
201
213
  })), C = a(() => ({
202
214
  title: o("ok"),
203
215
  event: () => t("finish")
204
- })), y = d(!1), O = d(!1), v = a(() => {
216
+ })), O = f(!1), y = f(!1), m = a(() => {
205
217
  var u;
206
- return P(e.targetElement) ? ((u = e.targetElement.value) == null ? void 0 : u.$el) || e.targetElement.value : e.targetElement.$el || e.targetElement;
207
- }), _ = a(() => e.step === 0), m = a(() => e.step === e.totalSteps), x = a(() => !_.value), R = a(() => [
218
+ return F(e.targetElement) ? ((u = e.targetElement.value) == null ? void 0 : u.$el) || e.targetElement.value : e.targetElement.$el || e.targetElement;
219
+ }), _ = a(() => e.step === 0), v = a(() => e.step === e.totalSteps), E = a(() => !_.value), R = a(() => [
208
220
  {
209
221
  text: o("restartTour"),
210
222
  handler: () => t("restart"),
211
223
  icon: D
212
224
  },
213
- ...m.value ? [] : [
225
+ ...v.value ? [] : [
214
226
  {
215
- text: "Skip tour",
227
+ text: o("skipTour"),
216
228
  handler: () => t("finish"),
217
- icon: G
229
+ icon: X
218
230
  }
219
231
  ]
220
- ]), F = a(() => {
232
+ ]), P = a(() => {
221
233
  let u;
222
- _.value ? u = e.single ? C.value : i.value : m.value ? u = p.value : u = r.value;
234
+ _.value ? u = e.single ? C.value : i.value : v.value ? u = p.value : u = r.value;
223
235
  const c = [u];
224
236
  return _.value && !e.single ? c.push(l.value) : e.action && c.push(e.action), c;
225
237
  });
226
238
  return g(
227
239
  () => e.active,
228
240
  async (u) => {
229
- var c, S;
230
- u && ((c = v.value) != null && c.scrollIntoView) && ((S = v.value) == null || S.scrollIntoView(
241
+ var c, T;
242
+ u && ((c = m.value) != null && c.scrollIntoView) && ((T = m.value) == null || T.scrollIntoView(
231
243
  e.scrollOptions != null ? e.scrollOptions : s
232
- ), await $()), y.value = u, O.value = u;
244
+ ), await $()), O.value = u, y.value = u;
233
245
  },
234
246
  { immediate: !0 }
235
- ), { __sfc: !0, DEFAULT_SCROLL_OPTIONS: s, props: e, t: o, emit: t, ACTION_SKIP: l, ACTION_START: i, ACTION_NEXT: r, ACTION_FINISH: p, ACTION_OK: C, isPopoverOpen: y, isIndicatorVisible: O, targetElement: v, isFirstStep: _, isLastStep: m, showSteps: x, menuData: R, computedActions: F, BentoMenu: I, BentoPopover: w, BentoTypography: k, BentoButtonActions: M, BentoImage: N, TutorialIndicator: z };
247
+ ), { __sfc: !0, DEFAULT_SCROLL_OPTIONS: s, props: e, t: o, emit: t, ACTION_SKIP: l, ACTION_START: i, ACTION_NEXT: r, ACTION_FINISH: p, ACTION_OK: C, isPopoverOpen: O, isIndicatorVisible: y, targetElement: m, isFirstStep: _, isLastStep: v, showSteps: E, menuData: R, computedActions: P, BentoMenu: k, BentoPopover: I, BentoTypography: w, BentoButtonActions: M, BentoImage: N, TutorialIndicator: z };
236
248
  }
237
249
  });
238
250
  var tt = function() {
@@ -242,13 +254,13 @@ var tt = function() {
242
254
  } }, scopedSlots: t._u([t.image ? { key: "image", fn: function() {
243
255
  return [e(s.BentoImage, t._b({ staticClass: "b-tutorial-popover__image", attrs: { "aspect-ratio": "landscape" } }, "bento-image", t.image, !1))];
244
256
  }, proxy: !0 } : null], null, !0) }, [e("div", { staticClass: "b-tutorial-popover__ripple", attrs: { "aria-hidden": "true" } }), e("div", { staticClass: "b-tutorial-popover__header" }, [e(s.BentoTypography, { attrs: { variant: "title", el: "span" } }, [t._v(" " + t._s(t.title) + " ")]), s.showSteps ? e(s.BentoTypography, { staticClass: "b-tutorial-popover__steps", attrs: { el: "span" } }, [t._v(" " + t._s(s.t("stepsOfTotal", { step: t.step, totalSteps: t.totalSteps })) + " ")]) : t._e()], 1), e(s.BentoTypography, [t._t("default")], 2), e("div", { staticClass: "b-tutorial-popover__footer" }, [s.isFirstStep ? t._e() : e(s.BentoMenu, { staticClass: "b-tutorial-popover__menu", attrs: { data: s.menuData, "data-testid": "menu-button" } }), e("div", { staticClass: "b-tutorial-popover__actions" }, [e(s.BentoButtonActions, { attrs: { actions: s.computedActions, layout: "buttons-end" } })], 1)], 1)], 1)], 1) : t._e();
245
- }, et = [], st = /* @__PURE__ */ f(
257
+ }, et = [], st = /* @__PURE__ */ d(
246
258
  Y,
247
259
  tt,
248
260
  et,
249
261
  !1,
250
262
  null,
251
- "060c1762"
263
+ "eecafacd"
252
264
  );
253
265
  const ot = st.exports, rt = {}, at = /* @__PURE__ */ h({
254
266
  ...rt,
@@ -282,7 +294,7 @@ const ot = st.exports, rt = {}, at = /* @__PURE__ */ h({
282
294
  },
283
295
  emits: ["update:index"],
284
296
  setup(n, { emit: t }) {
285
- const e = n, s = d(e.index || 0), o = a(() => e.steps.length - 1), l = a(() => o.value === 0);
297
+ const e = n, s = f(e.index || 0), o = a(() => e.steps.length - 1), l = a(() => o.value === 0);
286
298
  function i(r, p) {
287
299
  return {
288
300
  // Visual
@@ -320,7 +332,7 @@ var nt = function() {
320
332
  s.currentStep = 0;
321
333
  } } }, "tutorial-popover", s.getPopoverProps(o, l), !1), [t._v(" " + t._s(o.description) + " ")]);
322
334
  }), 1);
323
- }, it = [], lt = /* @__PURE__ */ f(
335
+ }, it = [], lt = /* @__PURE__ */ d(
324
336
  at,
325
337
  nt,
326
338
  it,
@@ -332,4 +344,4 @@ const Ct = lt.exports;
332
344
  export {
333
345
  Ct as t
334
346
  };
335
- //# sourceMappingURL=tutorial.DERGsCkg.js.map
347
+ //# sourceMappingURL=tutorial.D64_0i0-.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"tutorial.DERGsCkg.js","sources":["../../src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/blocked.vue","../../src/components/tutorial/components/tutorial-popover/tutorial-popover.vue","../../src/components/tutorial/tutorial.vue"],"sourcesContent":["<template>\n <popper-container\n :target-element=\"targetElement\"\n :middleware=\"middleware\"\n position=\"top-start\"\n fixed-positioning\n disabled-focus-trap\n class=\"b-tutorial-indicator\"\n data-testid=\"tutorial-indicator\"\n >\n <div class=\"b-tutorial-indicator__highlight\" :style=\"computedStyles\"></div>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { hide, type Middleware, offset } from '@floating-ui/vue';\n import { PopperContainer } from '@/components/popper-container';\n\n const BORDER_OFFSET = 2;\n\n defineProps({\n /**\n * Tutorial indicator's target element.\n * The indicator will position itself around the target element.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n });\n\n const computedStyles = ref({\n width: '0',\n height: '0',\n borderRadius: '0',\n });\n\n function getBorderRadius(element: HTMLElement) {\n try {\n const radius = parseFloat(getComputedStyle(element).getPropertyValue('border-radius'));\n return Number.isNaN(radius) ? '' : `${radius + 2 * BORDER_OFFSET}px`;\n } catch {\n return '';\n }\n }\n\n const middleware = [\n hide(),\n offset({\n mainAxis: BORDER_OFFSET,\n alignmentAxis: -BORDER_OFFSET,\n }),\n {\n name: 'updateIndicatorSize',\n fn: ({ x, y, elements }) => {\n const target = elements.reference as HTMLElement;\n computedStyles.value.width = `${target.offsetWidth + 4 * BORDER_OFFSET}px`;\n computedStyles.value.height = `${target.offsetHeight + 4 * BORDER_OFFSET}px`;\n computedStyles.value.borderRadius = getBorderRadius(target);\n return { x, y };\n },\n } as Middleware,\n ];\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-indicator.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-icons-16-blocked__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M9.51195 0.398918C8.00859 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z\"/></g><defs><clipPath :id=\"'uia-icons-16-blocked__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div v-if=\"active && targetElement\">\n <tutorial-indicator v-if=\"isIndicatorVisible && targetElement\" :target-element=\"targetElement\" />\n\n <bento-popover\n :target-element=\"targetElement\"\n :position=\"position\"\n :open=\"isPopoverOpen\"\n :aria-label=\"title\"\n fixed-positioning\n class=\"b-tutorial-popover\"\n @keydown.esc.native=\"emit('finish')\"\n >\n <template v-if=\"image\" #image>\n <bento-image v-bind=\"image\" aspect-ratio=\"landscape\" class=\"b-tutorial-popover__image\" />\n </template>\n\n <div aria-hidden=\"true\" class=\"b-tutorial-popover__ripple\"></div>\n\n <div class=\"b-tutorial-popover__header\">\n <bento-typography variant=\"title\" el=\"span\"> {{ title }} </bento-typography>\n\n <bento-typography v-if=\"showSteps\" el=\"span\" class=\"b-tutorial-popover__steps\">\n {{ t('stepsOfTotal', { step, totalSteps }) }}\n </bento-typography>\n </div>\n\n <bento-typography>\n <slot />\n </bento-typography>\n\n <div class=\"b-tutorial-popover__footer\">\n <bento-menu\n v-if=\"!isFirstStep\"\n :data=\"menuData\"\n class=\"b-tutorial-popover__menu\"\n data-testid=\"menu-button\"\n />\n <div class=\"b-tutorial-popover__actions\">\n <bento-button-actions :actions=\"computedActions\" layout=\"buttons-end\" />\n </div>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, isRef, nextTick, PropType, ref, type default as Vue, watch } from 'vue';\n import { BentoMenu } from '@/components/menu';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { type BentoButtonActionObject, BentoButtonActions } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { TutorialIndicator } from './components/tutorial-indicator';\n import { useI18n } from '@/utils/ts/i18n';\n import type { BentoMenuItem } from '@/components/menu/components';\n import type { VueNodeElement } from '@/types';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from '../../tutorial.types';\n import RefreshIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import BlockedIcon from '@adyen/ui-assets-icons-16/vue/blocked';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_SCROLL_OPTIONS: BentoTutorialScrollOptions = { behavior: 'smooth' };\n\n const props = defineProps({\n /**\n * Optional configuration for the secondary action.\n * In tour tutorials, this is ignored for the introductory step.\n */\n action: {\n type: Object as PropType<BentoButtonActionObject>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is the active step (and should be visible).\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Optional illustration to display at the top of the popover.\n */\n image: {\n type: Object as PropType<BentoTutorialStep['image']>,\n default: null,\n },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<`${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is a single tutorial or a tour.\n */\n single: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The tutorial step number.\n * In tour tutorials, `0` is the introductory step, and is displayed next\n * to the title.\n */\n step: {\n type: Number,\n default: null,\n },\n\n /**\n * Tutorial popover's target element.\n * The popover will position itself relatively to target element.\n */\n targetElement: {\n type: [Element, Object] as PropType<VueNodeElement>,\n required: true,\n },\n\n /**\n * The tutorial step title.\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Total count of steps.\n * In tour tutorials, this does not include the introductory step, and is\n * displayed next to the title.\n */\n totalSteps: {\n type: Number,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const emit = defineEmits([\"next\", \"finish\", \"restart\"]);\n\n const ACTION_SKIP = computed<BentoButtonActionObject>(() => ({\n title: t('skipTour') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_START = computed<BentoButtonActionObject>(() => ({\n title: t('startTour') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_NEXT = computed<BentoButtonActionObject>(() => ({\n title: t('next') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_FINISH = computed<BentoButtonActionObject>(() => ({\n title: t('finish') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_OK = computed<BentoButtonActionObject>(() => ({\n title: t('ok') as string,\n event: () => emit('finish'),\n }));\n\n const isPopoverOpen = ref(false);\n const isIndicatorVisible = ref(false);\n\n const targetElement = computed(() => {\n if (isRef(props.targetElement)) {\n return ((props.targetElement.value as Vue)?.$el || props.targetElement.value) as HTMLElement;\n }\n return ((props.targetElement as Vue).$el || props.targetElement) as HTMLElement;\n });\n\n const isFirstStep = computed(() => props.step === 0);\n const isLastStep = computed(() => props.step === props.totalSteps);\n\n const showSteps = computed(() => !isFirstStep.value);\n\n const menuData = computed<BentoMenuItem[]>(() => [\n {\n text: t('restartTour'),\n handler: () => emit('restart'),\n icon: RefreshIcon,\n },\n ...(isLastStep.value\n ? []\n : [\n {\n text: 'Skip tour',\n handler: () => emit('finish'),\n icon: BlockedIcon,\n },\n ]),\n ]);\n\n const computedActions = computed(() => {\n let primaryAction: BentoButtonActionObject;\n if (isFirstStep.value) {\n primaryAction = props.single ? ACTION_OK.value : ACTION_START.value;\n } else if (isLastStep.value) {\n primaryAction = ACTION_FINISH.value;\n } else {\n primaryAction = ACTION_NEXT.value;\n }\n\n const actions = [primaryAction];\n if (isFirstStep.value && !props.single) {\n actions.push(ACTION_SKIP.value);\n } else if (props.action) {\n actions.push(props.action);\n }\n\n return actions;\n });\n\n watch(\n () => props.active,\n async isActive => {\n if (isActive && targetElement.value?.scrollIntoView) {\n targetElement.value?.scrollIntoView(\n props.scrollOptions != null ? props.scrollOptions : DEFAULT_SCROLL_OPTIONS\n );\n\n // Skip to next tick to preserve popover appear animation\n await nextTick();\n }\n\n isPopoverOpen.value = isActive;\n isIndicatorVisible.value = isActive;\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-popover.scss\" />\n","<template>\n <div class=\"b-tutorial\">\n <tutorial-popover\n v-for=\"(step, i) in steps\"\n v-bind=\"getPopoverProps(step, i)\"\n :key=\"step.title\"\n @finish=\"currentStep = -1\"\n @next=\"currentStep += 1\"\n @restart=\"currentStep = 0\"\n >\n {{ step.description }}\n </tutorial-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, watch } from 'vue';\n import { TutorialPopover } from './components/tutorial-popover';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from './tutorial.types';\n\n const props = defineProps({\n /**\n * The current step index. If provided, will start the tutorial in that step.\n */\n index: {\n type: Number,\n default: null,\n },\n\n /**\n * The steps configuration for the tutorial.\n *\n */\n steps: {\n type: Array as PropType<BentoTutorialStep[]>,\n required: true,\n validator: (value: BentoTutorialStep[]) => value.length > 0,\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n });\n\n const emit = defineEmits([\"update:index\"]);\n\n const currentStep = ref(props.index || 0);\n\n const totalSteps = computed(() => props.steps.length - 1);\n const isSingleTutorial = computed(() => totalSteps.value === 0);\n\n function getPopoverProps(step: BentoTutorialStep, index: number) {\n return {\n // Visual\n targetElement: step.target,\n image: step.image,\n title: step.title,\n step: index,\n totalSteps: totalSteps.value,\n action: step.action,\n scrollOptions: props.scrollOptions,\n\n // Config\n active: index === currentStep.value,\n single: isSingleTutorial.value,\n position: step.position,\n };\n }\n\n watch(currentStep, step => {\n emit('update:index', step);\n });\n\n watch(\n () => props.index,\n value => {\n if (value >= -1 && value <= totalSteps.value) {\n currentStep.value = value;\n }\n }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The Tutorial is a temporary popover that should be used to educate users about\n * new or unfamiliar features or experiences.\n *\n * You can use single tutorial or chain them into a tour.\n *\n * Only use this component for new features/experiences that are not obvious and\n * self-explanatory on their own.\n *\n * @example\n * import { BentoTutorial } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTutorial },\n * template: `\n * <bento-tutorial\n * :steps=\"[\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * image: { src: imageSource, alt: 'Alt text' }\n * },\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * action: { title: 'Action label', event: () => {} }\n * },\n * ]\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n"],"names":["computedStyles","ref","getBorderRadius","element","radius","middleware","hide","offset","x","y","elements","target","uuid","_sfc_main$2","__default__$1","messages","DEFAULT_SCROLL_OPTIONS","t","useI18n","ACTION_SKIP","computed","emit","ACTION_START","ACTION_NEXT","ACTION_FINISH","ACTION_OK","isPopoverOpen","isIndicatorVisible","targetElement","isRef","props","_a","isFirstStep","isLastStep","showSteps","menuData","RefreshIcon","BlockedIcon","computedActions","primaryAction","actions","watch","isActive","_b","nextTick","__default__","currentStep","totalSteps","isSingleTutorial","getPopoverProps","step","index","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgCI,UAAAA,IAAAC,EAAA;AAAA,MAA2B,OAAA;AAAA,MAChB,QAAA;AAAA,MACC,cAAA;AAAA,IACM,CAAA;AAGlB,aAAAC,EAAAC,GAAA;AACI,UAAA;AACI,cAAAC,IAAA,WAAA,iBAAAD,CAAA,EAAA,iBAAA,eAAA,CAAA;AACA,eAAA,OAAA,MAAAC,CAAA,IAAA,KAAA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;;;;;;;;","x_google_ignoreList":[1]}
1
+ {"version":3,"file":"tutorial.D64_0i0-.js","sources":["../../src/components/tutorial/components/tutorial-popover/components/tutorial-indicator/tutorial-indicator.vue","../../../../node_modules/.pnpm/@adyen+ui-assets-icons-16@4.1.0_vue@2.7.16/node_modules/@adyen/ui-assets-icons-16/dist/vue/blocked.vue","../../src/components/tutorial/components/tutorial-popover/tutorial-popover.vue","../../src/components/tutorial/tutorial.vue"],"sourcesContent":["<template>\n <popper-container\n :target-element=\"targetElement\"\n :middleware=\"middleware\"\n position=\"top-start\"\n fixed-positioning\n disabled-focus-trap\n class=\"b-tutorial-indicator\"\n data-testid=\"tutorial-indicator\"\n >\n <div class=\"b-tutorial-indicator__highlight\" :style=\"computedStyles\"></div>\n </popper-container>\n</template>\n\n<script setup lang=\"ts\">\n import { ref } from 'vue';\n import { hide, type Middleware, offset } from '@floating-ui/vue';\n import { PopperContainer } from '@/components/popper-container';\n\n const BORDER_OFFSET = 2;\n\n defineProps({\n /**\n * Tutorial indicator's target element.\n * The indicator will position itself around the target element.\n */\n targetElement: {\n type: PopperContainer.props?.targetElement.type,\n required: true,\n },\n });\n\n const computedStyles = ref({\n width: '0',\n height: '0',\n borderRadius: '0',\n });\n\n function getBorderRadius(element: HTMLElement) {\n try {\n const radius = parseFloat(getComputedStyle(element).getPropertyValue('border-radius'));\n return Number.isNaN(radius) ? '' : `${radius + 2 * BORDER_OFFSET}px`;\n } catch {\n return '';\n }\n }\n\n const middleware = [\n hide(),\n offset({\n mainAxis: BORDER_OFFSET,\n alignmentAxis: -BORDER_OFFSET,\n }),\n {\n name: 'updateIndicatorSize',\n fn: ({ x, y, elements }) => {\n const target = elements.reference as HTMLElement;\n computedStyles.value.width = `${target.offsetWidth + 4 * BORDER_OFFSET}px`;\n computedStyles.value.height = `${target.offsetHeight + 4 * BORDER_OFFSET}px`;\n computedStyles.value.borderRadius = getBorderRadius(target);\n return { x, y };\n },\n } as Middleware,\n ];\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-indicator.scss\" />\n","\n<template>\n <svg role=\"img\" v-bind=\"$attrs\" class=\"ui-assets-icons-16\" xmlns=\"http://www.w3.org/2000/svg\" width=\"16\" height=\"16\" fill=\"none\"><title v-if=\"$attrs['svg-title']\">{{ $attrs['svg-title'] }}</title><g :clip-path=\"'url(#uia-icons-16-blocked__a' + uuid + ')'\"><path fill=\"#00112C\" d=\"M9.51195 0.398918C8.00859 0.0998821 6.45033 0.253358 5.0342 0.839937C3.61808 1.42652 2.40769 2.41985 1.55611 3.69433C0.704529 4.96881 0.25 6.4672 0.25 8C0.25 10.0554 1.06652 12.0267 2.51992 13.4801C3.97333 14.9335 5.94457 15.75 8 15.75C9.53281 15.75 11.0312 15.2955 12.3057 14.4439C13.5801 13.5923 14.5735 12.3819 15.1601 10.9658C15.7466 9.54967 15.9001 7.99141 15.6011 6.48805C15.3021 4.9847 14.5639 3.60378 13.4801 2.51993C12.3962 1.43607 11.0153 0.697953 9.51195 0.398918ZM5.60823 2.22576C6.75027 1.75271 8.00693 1.62894 9.21931 1.8701C10.4317 2.11125 11.5453 2.70651 12.4194 3.58059C13.2935 4.45466 13.8887 5.56831 14.1299 6.78069C14.3711 7.99307 14.2473 9.24974 13.7742 10.3918C13.5555 10.9198 13.2667 11.4124 12.9177 11.8573L4.14271 3.0823C4.58761 2.73333 5.08018 2.44448 5.60823 2.22576ZM3.08208 4.14298L11.857 12.9179C11.7327 13.0154 11.6044 13.1085 11.4723 13.1967C10.4445 13.8834 9.23613 14.25 8 14.25C6.3424 14.25 4.75268 13.5915 3.58058 12.4194C2.40848 11.2473 1.75 9.65761 1.75 8C1.75 6.76387 2.11656 5.5555 2.80331 4.52769C2.89155 4.39564 2.98456 4.26733 3.08208 4.14298Z\"/></g><defs><clipPath :id=\"'uia-icons-16-blocked__a' + uuid\"><rect width=\"16\" height=\"16\" fill=\"#fff\"/></clipPath></defs></svg>\n</template>\n<script>\n let uuid = 0;\n\n export default {\n beforeCreate() {\n this.uuid = uuid.toString();\n uuid += 1;\n },\n };\n</script>\n<style>\n @import '../css/main.css';\n</style>\n","<template>\n <div v-if=\"active && targetElement\">\n <tutorial-indicator v-if=\"isIndicatorVisible && targetElement\" :target-element=\"targetElement\" />\n\n <bento-popover\n :target-element=\"targetElement\"\n :position=\"position\"\n :open=\"isPopoverOpen\"\n :aria-label=\"title\"\n fixed-positioning\n class=\"b-tutorial-popover\"\n @keydown.esc.native=\"emit('finish')\"\n >\n <template v-if=\"image\" #image>\n <bento-image v-bind=\"image\" aspect-ratio=\"landscape\" class=\"b-tutorial-popover__image\" />\n </template>\n\n <div aria-hidden=\"true\" class=\"b-tutorial-popover__ripple\"></div>\n\n <div class=\"b-tutorial-popover__header\">\n <bento-typography variant=\"title\" el=\"span\"> {{ title }} </bento-typography>\n\n <bento-typography v-if=\"showSteps\" el=\"span\" class=\"b-tutorial-popover__steps\">\n {{ t('stepsOfTotal', { step, totalSteps }) }}\n </bento-typography>\n </div>\n\n <bento-typography>\n <slot />\n </bento-typography>\n\n <div class=\"b-tutorial-popover__footer\">\n <bento-menu\n v-if=\"!isFirstStep\"\n :data=\"menuData\"\n class=\"b-tutorial-popover__menu\"\n data-testid=\"menu-button\"\n />\n <div class=\"b-tutorial-popover__actions\">\n <bento-button-actions :actions=\"computedActions\" layout=\"buttons-end\" />\n </div>\n </div>\n </bento-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, isRef, nextTick, PropType, ref, type default as Vue, watch } from 'vue';\n import { BentoMenu } from '@/components/menu';\n import { BentoPopover, BentoPopoverPositions } from '@/components/popover';\n import { BentoTypography } from '@/components/typography';\n import { type BentoButtonActionObject, BentoButtonActions } from '@/components/button';\n import { BentoImage } from '@/components/image';\n import { TutorialIndicator } from './components/tutorial-indicator';\n import { useI18n } from '@/utils/ts/i18n';\n import type { BentoMenuItem } from '@/components/menu/components';\n import type { VueNodeElement } from '@/types';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from '../../tutorial.types';\n import RefreshIcon from '@adyen/ui-assets-icons-16/vue/refresh';\n import BlockedIcon from '@adyen/ui-assets-icons-16/vue/blocked';\n\n import messages from './messages.json';\n\n type MessageSchema = (typeof messages)['en-US'];\n\n const DEFAULT_SCROLL_OPTIONS: BentoTutorialScrollOptions = { behavior: 'smooth' };\n\n const props = defineProps({\n /**\n * Optional configuration for the secondary action.\n * In tour tutorials, this is ignored for the introductory step.\n */\n action: {\n type: Object as PropType<BentoButtonActionObject>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is the active step (and should be visible).\n */\n active: {\n type: Boolean,\n default: false,\n },\n\n /**\n * Optional illustration to display at the top of the popover.\n */\n image: {\n type: Object as PropType<BentoTutorialStep['image']>,\n default: null,\n },\n\n /**\n * Popover's position relative to the target element.\n * Possible values are:\n * 'auto', 'auto-start', 'auto-end',\n * 'top', 'top-start', 'top-end'\n * 'right', 'right-start', 'right-end'\n * 'bottom', 'bottom-start', 'bottom-end'\n * 'left', 'left-start', 'left-end'\n */\n position: {\n type: String as PropType<`${BentoPopoverPositions}`>,\n default: BentoPopoverPositions.BOTTOM_START,\n validator: (value: BentoPopoverPositions) => Object.values(BentoPopoverPositions).includes(value),\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n\n /**\n * Indicates whether this popover is a single tutorial or a tour.\n */\n single: {\n type: Boolean,\n default: false,\n },\n\n /**\n * The tutorial step number.\n * In tour tutorials, `0` is the introductory step, and is displayed next\n * to the title.\n */\n step: {\n type: Number,\n default: null,\n },\n\n /**\n * Tutorial popover's target element.\n * The popover will position itself relatively to target element.\n */\n targetElement: {\n type: [Element, Object] as PropType<VueNodeElement>,\n required: true,\n },\n\n /**\n * The tutorial step title.\n */\n title: {\n type: String,\n required: true,\n },\n\n /**\n * Total count of steps.\n * In tour tutorials, this does not include the introductory step, and is\n * displayed next to the title.\n */\n totalSteps: {\n type: Number,\n default: null,\n },\n });\n\n const { t } = useI18n<{ message: MessageSchema }>({ messages });\n\n const emit = defineEmits([\"next\", \"finish\", \"restart\"]);\n\n const ACTION_SKIP = computed<BentoButtonActionObject>(() => ({\n title: t('skipTour') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_START = computed<BentoButtonActionObject>(() => ({\n title: t('startTour') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_NEXT = computed<BentoButtonActionObject>(() => ({\n title: t('next') as string,\n event: () => emit('next'),\n }));\n\n const ACTION_FINISH = computed<BentoButtonActionObject>(() => ({\n title: t('finish') as string,\n event: () => emit('finish'),\n }));\n\n const ACTION_OK = computed<BentoButtonActionObject>(() => ({\n title: t('ok') as string,\n event: () => emit('finish'),\n }));\n\n const isPopoverOpen = ref(false);\n const isIndicatorVisible = ref(false);\n\n const targetElement = computed(() => {\n if (isRef(props.targetElement)) {\n return ((props.targetElement.value as Vue)?.$el || props.targetElement.value) as HTMLElement;\n }\n return ((props.targetElement as Vue).$el || props.targetElement) as HTMLElement;\n });\n\n const isFirstStep = computed(() => props.step === 0);\n const isLastStep = computed(() => props.step === props.totalSteps);\n\n const showSteps = computed(() => !isFirstStep.value);\n\n const menuData = computed<BentoMenuItem[]>(() => [\n {\n text: t('restartTour'),\n handler: () => emit('restart'),\n icon: RefreshIcon,\n },\n ...(isLastStep.value\n ? []\n : [\n {\n text: t('skipTour'),\n handler: () => emit('finish'),\n icon: BlockedIcon,\n },\n ]),\n ]);\n\n const computedActions = computed(() => {\n let primaryAction: BentoButtonActionObject;\n if (isFirstStep.value) {\n primaryAction = props.single ? ACTION_OK.value : ACTION_START.value;\n } else if (isLastStep.value) {\n primaryAction = ACTION_FINISH.value;\n } else {\n primaryAction = ACTION_NEXT.value;\n }\n\n const actions = [primaryAction];\n if (isFirstStep.value && !props.single) {\n actions.push(ACTION_SKIP.value);\n } else if (props.action) {\n actions.push(props.action);\n }\n\n return actions;\n });\n\n watch(\n () => props.active,\n async isActive => {\n if (isActive && targetElement.value?.scrollIntoView) {\n targetElement.value?.scrollIntoView(\n props.scrollOptions != null ? props.scrollOptions : DEFAULT_SCROLL_OPTIONS\n );\n\n // Skip to next tick to preserve popover appear animation\n await nextTick();\n }\n\n isPopoverOpen.value = isActive;\n isIndicatorVisible.value = isActive;\n },\n { immediate: true }\n );\n</script>\n\n<script lang=\"ts\">\n export default {\n i18n: { messages },\n };\n</script>\n\n<style lang=\"scss\" scoped src=\"./tutorial-popover.scss\" />\n","<template>\n <div class=\"b-tutorial\">\n <tutorial-popover\n v-for=\"(step, i) in steps\"\n v-bind=\"getPopoverProps(step, i)\"\n :key=\"step.title\"\n @finish=\"currentStep = -1\"\n @next=\"currentStep += 1\"\n @restart=\"currentStep = 0\"\n >\n {{ step.description }}\n </tutorial-popover>\n </div>\n</template>\n\n<script setup lang=\"ts\">\n import { computed, PropType, ref, watch } from 'vue';\n import { TutorialPopover } from './components/tutorial-popover';\n import type { BentoTutorialScrollOptions, BentoTutorialStep } from './tutorial.types';\n\n const props = defineProps({\n /**\n * The current step index. If provided, will start the tutorial in that step.\n */\n index: {\n type: Number,\n default: null,\n },\n\n /**\n * The steps configuration for the tutorial.\n *\n */\n steps: {\n type: Array as PropType<BentoTutorialStep[]>,\n required: true,\n validator: (value: BentoTutorialStep[]) => value.length > 0,\n },\n\n /**\n * Options to control the scroll into view behavior.\n * Takes the same options as the `scrollIntoView` function\n * @see {@link https://developer.mozilla.org/en-US/docs/Web/API/Element/scrollIntoView}\n */\n scrollOptions: {\n type: [Boolean, Object] as PropType<BentoTutorialScrollOptions>,\n default: null,\n },\n });\n\n const emit = defineEmits([\"update:index\"]);\n\n const currentStep = ref(props.index || 0);\n\n const totalSteps = computed(() => props.steps.length - 1);\n const isSingleTutorial = computed(() => totalSteps.value === 0);\n\n function getPopoverProps(step: BentoTutorialStep, index: number) {\n return {\n // Visual\n targetElement: step.target,\n image: step.image,\n title: step.title,\n step: index,\n totalSteps: totalSteps.value,\n action: step.action,\n scrollOptions: props.scrollOptions,\n\n // Config\n active: index === currentStep.value,\n single: isSingleTutorial.value,\n position: step.position,\n };\n }\n\n watch(currentStep, step => {\n emit('update:index', step);\n });\n\n watch(\n () => props.index,\n value => {\n if (value >= -1 && value <= totalSteps.value) {\n currentStep.value = value;\n }\n }\n );\n</script>\n\n<script lang=\"ts\">\n /**\n * The Tutorial is a temporary popover that should be used to educate users about\n * new or unfamiliar features or experiences.\n *\n * You can use single tutorial or chain them into a tour.\n *\n * Only use this component for new features/experiences that are not obvious and\n * self-explanatory on their own.\n *\n * @example\n * import { BentoTutorial } from '@adyen/bento-vue2';\n *\n * export default {\n * components: { BentoTutorial },\n * template: `\n * <bento-tutorial\n * :steps=\"[\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * image: { src: imageSource, alt: 'Alt text' }\n * },\n * {\n * target: targetElement1,\n * title: 'Tutorial intro title',\n * description: 'Intro body content',\n * action: { title: 'Action label', event: () => {} }\n * },\n * ]\"\n * />\n * `\n * }\n */\n export default {};\n</script>\n"],"names":["computedStyles","ref","getBorderRadius","element","radius","middleware","hide","offset","x","y","elements","target","uuid","_sfc_main$2","__default__$1","messages","DEFAULT_SCROLL_OPTIONS","t","useI18n","ACTION_SKIP","computed","emit","ACTION_START","ACTION_NEXT","ACTION_FINISH","ACTION_OK","isPopoverOpen","isIndicatorVisible","targetElement","isRef","props","_a","isFirstStep","isLastStep","showSteps","menuData","RefreshIcon","BlockedIcon","computedActions","primaryAction","actions","watch","isActive","_b","nextTick","__default__","currentStep","totalSteps","isSingleTutorial","getPopoverProps","step","index","value"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAgCI,UAAAA,IAAAC,EAAA;AAAA,MAA2B,OAAA;AAAA,MAChB,QAAA;AAAA,MACC,cAAA;AAAA,IACM,CAAA;AAGlB,aAAAC,EAAAC,GAAA;AACI,UAAA;AACI,cAA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AAAA,MACgB,CAAAsB,MAAA;AAER,QAAAA,KAAA,MAAAA,KAAAL,EAAA,UACID,EAAA,QAAAM;AAAA,MACJ;AAAA,IACJ;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[1]}
@@ -6,12 +6,12 @@ import { u as Y } from "./i18n.BQkEbtPM.js";
6
6
  import { d as pe } from "./debounce.DUTu11PS.js";
7
7
  import { n as D } from "./_plugin-vue2_normalizer.CeySl7Fu.js";
8
8
  import { B as k, a as X } from "./keyboard-navigation.Clz1jOaA.js";
9
- import { B as Z } from "./checkbox.CaX67eM_.js";
9
+ import { B as J } from "./checkbox.B3u_hzUo.js";
10
10
  import "./index.Cl4_42j5.js";
11
11
  import { C as Ce, a as Se } from "./chevron-up.B2uWhZf7.js";
12
12
  import { B as he } from "./base-button.qWj0m9-v.js";
13
13
  import { C as xe } from "./cross-small.BLUwtRB-.js";
14
- import { B as Ee, a as J } from "./loading-button.DDPZYO6r.js";
14
+ import { B as Ee, a as Z } from "./loading-button.DoX2sopf.js";
15
15
  import { o as Le } from "./resize.Bqks3WUm.js";
16
16
  import "../assets/use-cached-selected-values.css";
17
17
  const le = (t, e, s, l) => {
@@ -106,7 +106,7 @@ function Oe(t, { disabled: e, itemHeight: s, overscan: l = 5, prefixHeight: n })
106
106
  wrapperProps: p
107
107
  };
108
108
  }
109
- var i = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(i || {}), M = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(M || {});
109
+ var i = /* @__PURE__ */ ((t) => (t.SELECT = "select", t.SHOW_MORE = "show-more", t.ESCAPE = "escape-pressed", t.CLICK = "click", t.ENTER = "enter-pressed", t.SPACE = "space-pressed", t.TAB = "tab-pressed", t.CLOSE_DROPDOWN = "close-dropdown", t))(i || {}), P = /* @__PURE__ */ ((t) => (t.AUTOMATIC = "automatic", t.BUTTON = "button", t.NONE = "none", t))(P || {});
110
110
  const Te = $({
111
111
  name: "bento-listbox-static-category",
112
112
  components: {
@@ -176,7 +176,7 @@ var De = function() {
176
176
  }, function(l) {
177
177
  return !l.type.indexOf("key") && e._k(l.keyCode, "tab", 9, l.key, "Tab") ? null : e.onOptionSelected(e.BentoListboxEvent.TAB, l);
178
178
  }] } }, "label", e.$attrs, !1), [e._t("default")], 2);
179
- }, $e = [], Ne = /* @__PURE__ */ D(
179
+ }, $e = [], Me = /* @__PURE__ */ D(
180
180
  ke,
181
181
  De,
182
182
  $e,
@@ -184,19 +184,19 @@ var De = function() {
184
184
  null,
185
185
  "d7fb415c"
186
186
  );
187
- const q = Ne.exports;
187
+ const q = Me.exports;
188
188
  let Q = 0;
189
- const Pe = {
189
+ const Ne = {
190
190
  beforeCreate() {
191
191
  this.uuid = Q.toString(), Q += 1;
192
192
  }
193
193
  };
194
- var Me = function() {
194
+ var Pe = function() {
195
195
  var e = this, s = e._self._c;
196
196
  return s("svg", e._b({ staticClass: "ui-assets-icons-16", attrs: { role: "img", xmlns: "http://www.w3.org/2000/svg", width: "16", height: "16", fill: "none" } }, "svg", e.$attrs, !1), [e.$attrs["svg-title"] ? s("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), s("path", { attrs: { fill: "#00112C", d: "M15.0608 4.00011L14.0001 2.93945L6.00011 10.9395L2.00011 6.93945L0.939453 8.00011L6.00011 13.0608L15.0608 4.00011Z" } })]);
197
197
  }, we = [], Fe = /* @__PURE__ */ D(
198
+ Ne,
198
199
  Pe,
199
- Me,
200
200
  we,
201
201
  !1,
202
202
  null,
@@ -456,16 +456,16 @@ var Ke = function() {
456
456
  );
457
457
  const Xe = He.exports;
458
458
  var j = /* @__PURE__ */ ((t) => (t.DISABLED = "disabled", t.STATIC_CATEGORY = "static-category", t))(j || {}), z = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.UNSELECT_CATEGORY = "unselect-category", t))(z || {});
459
- const Ze = {
459
+ const Je = {
460
460
  "en-US": {
461
461
  categoryClosed: "{category} closed",
462
462
  categoryOpened: "{category} opened"
463
463
  }
464
- }, Je = $({
465
- i18n: { messages: Ze },
464
+ }, Ze = $({
465
+ i18n: { messages: Je },
466
466
  name: "bento-listbox-multi-select-category",
467
467
  components: {
468
- BentoCheckbox: Z,
468
+ BentoCheckbox: J,
469
469
  BentoTypography: w,
470
470
  BentoListboxOption: q,
471
471
  ChevronDownIcon: Ce,
@@ -580,7 +580,7 @@ var Qe = function() {
580
580
  return e.toggleOpen.apply(null, arguments);
581
581
  } } }, [e.isOpen ? s("chevron-up-icon", { attrs: { "svg-title": e.chevronTitle } }) : s("chevron-down-icon", { attrs: { "svg-title": e.chevronTitle } })], 1)], 1)], 1), s("div", { directives: [{ name: "show", rawName: "v-show", value: e.showItemChildren, expression: "showItemChildren" }] }, [e._t("default")], 2)], 1);
582
582
  }, et = [], tt = /* @__PURE__ */ D(
583
- Je,
583
+ Ze,
584
584
  Qe,
585
585
  et,
586
586
  !1,
@@ -588,11 +588,11 @@ var Qe = function() {
588
588
  "f360ac3d"
589
589
  );
590
590
  const st = tt.exports;
591
- var P = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", t.UNSELECT_CATEGORY = "unselect-category", t))(P || {});
591
+ var N = /* @__PURE__ */ ((t) => (t.SELECT_CATEGORY = "select-category", t.TOGGLE_CHECKBOX_SELECTION = "toggle-checkbox-selection", t.UNSELECT_CATEGORY = "unselect-category", t))(N || {});
592
592
  const lt = $({
593
593
  name: "listbox-multi-select-options",
594
594
  components: {
595
- BentoCheckbox: Z,
595
+ BentoCheckbox: J,
596
596
  BentoListboxOption: q,
597
597
  BentoTypography: w,
598
598
  ListboxMultiSelectCategory: st
@@ -653,19 +653,19 @@ const lt = $({
653
653
  staticCategories: { type: Boolean, default: !1 }
654
654
  },
655
655
  emits: [
656
- P.TOGGLE_CHECKBOX_SELECTION,
657
- P.SELECT_CATEGORY,
658
- P.UNSELECT_CATEGORY
656
+ N.TOGGLE_CHECKBOX_SELECTION,
657
+ N.SELECT_CATEGORY,
658
+ N.UNSELECT_CATEGORY
659
659
  ],
660
660
  setup(t, { emit: e }) {
661
661
  const s = (b) => {
662
- e(P.TOGGLE_CHECKBOX_SELECTION, b);
662
+ e(N.TOGGLE_CHECKBOX_SELECTION, b);
663
663
  }, l = (b) => !!b.items, n = (b) => {
664
664
  const m = t.isMultiLevel && t.searching;
665
665
  return b.description && (!t.isMultiLevel || m);
666
666
  }, a = (b) => b.items ? !!b.items.find((m) => t.selectedItemsList.includes(m.value)) : t.selectedItemsList.includes(b.value), o = (b, m) => {
667
667
  if (l(m))
668
- return e(b ? P.SELECT_CATEGORY : P.UNSELECT_CATEGORY, m);
668
+ return e(b ? N.SELECT_CATEGORY : N.UNSELECT_CATEGORY, m);
669
669
  s(m.value);
670
670
  };
671
671
  return {
@@ -681,7 +681,7 @@ const lt = $({
681
681
  selectSearch: o,
682
682
  // Enums
683
683
  BentoListboxEvent: i,
684
- ListboxMultiSelectOptionsEvent: P
684
+ ListboxMultiSelectOptionsEvent: N
685
685
  };
686
686
  }
687
687
  });
@@ -711,6 +711,12 @@ var nt = function() {
711
711
  const it = ot.exports, ct = {
712
712
  "en-US": {
713
713
  remove: "Remove"
714
+ },
715
+ "pt-BR": {
716
+ remove: "Remover"
717
+ },
718
+ "ja-JP": {
719
+ remove: "削除"
714
720
  }
715
721
  }, rt = {
716
722
  i18n: { messages: ct }
@@ -783,7 +789,7 @@ const vt = mt.exports, ft = {
783
789
  i18n: { messages: ft },
784
790
  name: "bento-listbox-multi-select",
785
791
  components: {
786
- BentoCheckbox: Z,
792
+ BentoCheckbox: J,
787
793
  BentoListboxOption: q,
788
794
  BentoTypography: w,
789
795
  ListboxMultiSelectOptions: it,
@@ -826,8 +832,8 @@ const vt = mt.exports, ft = {
826
832
  */
827
833
  lazyLoadType: {
828
834
  type: String,
829
- default: M.NONE,
830
- validator: (t) => Object.values(M).includes(t)
835
+ default: P.NONE,
836
+ validator: (t) => Object.values(P).includes(t)
831
837
  },
832
838
  /**
833
839
  * Flag that indicates that an external search it's being made
@@ -883,14 +889,14 @@ const vt = mt.exports, ft = {
883
889
  return g === 0 ? l("selectAll", { total: d }) : g === v ? l("allSelected", { total: v }) : g <= v ? l("numberOfTotalSelected", { number: g, total: v }) : l("numbersSelected", { number: g });
884
890
  }), B = (d) => {
885
891
  const v = (x) => {
886
- const { isDisabled: y, isPreSelected: N } = E(x);
887
- return y && N || !y;
892
+ const { isDisabled: y, isPreSelected: M } = E(x);
893
+ return y && M || !y;
888
894
  }, g = d.filter(v).filter((x) => !r.value.includes(x.value));
889
895
  e(i.SELECT, [...t.selectedValues, ...g]);
890
896
  }, u = (d) => {
891
897
  const v = (y) => {
892
- const { isDisabled: N, isPreSelected: fe } = E(y);
893
- return !(N && fe);
898
+ const { isDisabled: M, isPreSelected: fe } = E(y);
899
+ return !(M && fe);
894
900
  }, g = d.filter(v).map(({ value: y }) => y), x = t.selectedValues.filter((y) => !(g != null && g.includes(y.value)));
895
901
  e(i.SELECT, x);
896
902
  }, _ = () => {
@@ -913,14 +919,14 @@ const vt = mt.exports, ft = {
913
919
  }, V = c(() => {
914
920
  if (!b.value)
915
921
  return t.selectedValues;
916
- const d = (y) => r.value.includes(y.value), v = (y) => !t.staticCategories && y.every((N) => d(N));
922
+ const d = (y) => r.value.includes(y.value), v = (y) => !t.staticCategories && y.every((M) => d(M));
917
923
  return t.items.flatMap(
918
924
  (y) => y.items && !v(y.items) ? y.items : y
919
925
  ).filter((y) => y.items ? !0 : d(y));
920
926
  }), K = c(() => {
921
- var g, x, y, N;
927
+ var g, x, y, M;
922
928
  const d = ["automatic", "button"].includes(t.lazyLoadType), v = ((g = t.selectedValues) == null ? void 0 : g.length) > 0 && ((x = S.value) == null ? void 0 : x.length) !== ((y = m.value) == null ? void 0 : y.length);
923
- return d && t.hasMoreItems ? !!((N = t.selectedValues) != null && N.length) : v;
929
+ return d && t.hasMoreItems ? !!((M = t.selectedValues) != null && M.length) : v;
924
930
  }), I = c(() => ["automatic", "button"].includes(t.lazyLoadType) ? !t.hasMoreItems : !0), U = c(
925
931
  () => n.value ? [n.value] : []
926
932
  ), ae = c(
@@ -1011,8 +1017,16 @@ var yt = function() {
1011
1017
  );
1012
1018
  const ee = Ct.exports, St = {
1013
1019
  "en-US": {
1014
- showMore: "Show more",
1015
- loading: "Loading"
1020
+ loading: "Loading",
1021
+ showMore: "Show more"
1022
+ },
1023
+ "pt-BR": {
1024
+ loading: "Carregando",
1025
+ showMore: "Mostrar mais"
1026
+ },
1027
+ "ja-JP": {
1028
+ loading: "読み込み中",
1029
+ showMore: "表示内容を増やす"
1016
1030
  }
1017
1031
  }, ht = 36, xt = $({
1018
1032
  name: "bento-listbox",
@@ -1081,8 +1095,8 @@ const ee = Ct.exports, St = {
1081
1095
  */
1082
1096
  lazyLoadType: {
1083
1097
  type: String,
1084
- default: M.NONE,
1085
- validator: (t) => Object.values(M).includes(t)
1098
+ default: P.NONE,
1099
+ validator: (t) => Object.values(P).includes(t)
1086
1100
  },
1087
1101
  /**
1088
1102
  * If enabled, the user will be able to select multiple items.
@@ -1130,7 +1144,7 @@ const ee = Ct.exports, St = {
1130
1144
  i.TAB
1131
1145
  ],
1132
1146
  setup(t, { emit: e, slots: s }) {
1133
- const l = O([]), n = G(t, "items"), { t: a } = Y(), o = c(() => t.lazyLoadType !== M.AUTOMATIC), r = c(() => t.lazyLoadType === M.AUTOMATIC), b = () => {
1147
+ const l = O([]), n = G(t, "items"), { t: a } = Y(), o = c(() => t.lazyLoadType !== P.AUTOMATIC), r = c(() => t.lazyLoadType === P.AUTOMATIC), b = () => {
1134
1148
  var I;
1135
1149
  return typeof (t == null ? void 0 : t.virtualScroll) == "object" && ((I = t == null ? void 0 : t.virtualScroll) != null && I.itemHeight) ? t.virtualScroll.itemHeight : ht;
1136
1150
  }, {
@@ -1165,9 +1179,9 @@ const ee = Ct.exports, St = {
1165
1179
  var I;
1166
1180
  return ((I = t.items) == null ? void 0 : I.length) === 0;
1167
1181
  }), A = c(
1168
- () => t.lazyLoadType === M.BUTTON && t.hasMoreItems
1182
+ () => t.lazyLoadType === P.BUTTON && t.hasMoreItems
1169
1183
  ), F = c(
1170
- () => t.loading ? J.LOADING : J.START
1184
+ () => t.loading ? Z.LOADING : Z.START
1171
1185
  ), W = c(() => t.loading ? a("loading") : a("showMore")), V = c(() => ({
1172
1186
  ...t.emptyState,
1173
1187
  variant: "condensed"
@@ -1275,10 +1289,10 @@ const zt = Ot.exports, H = (t, e) => {
1275
1289
  };
1276
1290
  };
1277
1291
  export {
1278
- M as B,
1292
+ P as B,
1279
1293
  i as a,
1280
1294
  zt as b,
1281
1295
  Vt as c,
1282
1296
  _t as u
1283
1297
  };
1284
- //# sourceMappingURL=use-cached-selected-values.B39-iEp4.js.map
1298
+ //# sourceMappingURL=use-cached-selected-values.BOAumEi7.js.map