@adyen/bento-vue2 1.26.0 → 1.27.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 (203) hide show
  1. package/dist/@types/components.d.ts +4 -0
  2. package/dist/@types/index.d.ts +513 -136
  3. package/dist/accordion.js +2 -2
  4. package/dist/action-bar.js +61 -146
  5. package/dist/action-bar.js.map +1 -1
  6. package/dist/alert.js +3 -3
  7. package/dist/assets/base-modal.css +1 -1
  8. package/dist/assets/button-actions.css +1 -1
  9. package/dist/assets/button.css +1 -1
  10. package/dist/assets/dialog-page.css +1 -1
  11. package/dist/assets/dropdown.css +1 -1
  12. package/dist/assets/index.css +1 -1
  13. package/dist/assets/index10.css +1 -1
  14. package/dist/assets/index11.css +1 -1
  15. package/dist/assets/index12.css +1 -1
  16. package/dist/assets/index13.css +1 -1
  17. package/dist/assets/index14.css +1 -1
  18. package/dist/assets/index15.css +1 -1
  19. package/dist/assets/index16.css +1 -1
  20. package/dist/assets/index17.css +1 -1
  21. package/dist/assets/index18.css +1 -1
  22. package/dist/assets/index19.css +1 -1
  23. package/dist/assets/index2.css +1 -1
  24. package/dist/assets/index20.css +1 -1
  25. package/dist/assets/index21.css +1 -1
  26. package/dist/assets/index22.css +1 -1
  27. package/dist/assets/index23.css +1 -1
  28. package/dist/assets/index24.css +1 -1
  29. package/dist/assets/index25.css +1 -1
  30. package/dist/assets/index26.css +1 -1
  31. package/dist/assets/index27.css +1 -1
  32. package/dist/assets/index28.css +1 -1
  33. package/dist/assets/index29.css +1 -1
  34. package/dist/assets/index3.css +1 -1
  35. package/dist/assets/index30.css +1 -1
  36. package/dist/assets/index31.css +1 -1
  37. package/dist/assets/index32.css +1 -1
  38. package/dist/assets/index33.css +1 -1
  39. package/dist/assets/index34.css +1 -1
  40. package/dist/assets/index35.css +1 -1
  41. package/dist/assets/index36.css +1 -1
  42. package/dist/assets/index37.css +1 -1
  43. package/dist/assets/index38.css +1 -1
  44. package/dist/assets/index39.css +1 -1
  45. package/dist/assets/index4.css +1 -1
  46. package/dist/assets/index40.css +1 -1
  47. package/dist/assets/index41.css +1 -1
  48. package/dist/assets/index42.css +1 -1
  49. package/dist/assets/index43.css +1 -1
  50. package/dist/assets/index44.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/index48.css +1 -1
  55. package/dist/assets/index49.css +1 -0
  56. package/dist/assets/index5.css +1 -1
  57. package/dist/assets/index6.css +1 -1
  58. package/dist/assets/index7.css +1 -1
  59. package/dist/assets/index8.css +1 -1
  60. package/dist/assets/index9.css +1 -1
  61. package/dist/assets/use-cached-selected-values.css +1 -1
  62. package/dist/avatar-image.js +1 -1
  63. package/dist/badge.js +1 -1
  64. package/dist/button.js +5 -5
  65. package/dist/card.js +3 -3
  66. package/dist/checkbox.js +5 -5
  67. package/dist/chunks/{base-button.ad74b6f8.js → base-button.852204dc.js} +2 -2
  68. package/dist/chunks/{base-button.ad74b6f8.js.map → base-button.852204dc.js.map} +1 -1
  69. package/dist/chunks/{base-modal.1fff7abe.js → base-modal.4fb7528b.js} +6 -6
  70. package/dist/chunks/{base-modal.1fff7abe.js.map → base-modal.4fb7528b.js.map} +1 -1
  71. package/dist/chunks/{button-actions-with-menu.e845d77a.js → button-actions-with-menu.bf968959.js} +4 -4
  72. package/dist/chunks/{button-actions-with-menu.e845d77a.js.map → button-actions-with-menu.bf968959.js.map} +1 -1
  73. package/dist/chunks/{button-actions.81db18e8.js → button-actions.87e589e3.js} +31 -29
  74. package/dist/chunks/button-actions.87e589e3.js.map +1 -0
  75. package/dist/chunks/button.cb90b55c.js +101 -0
  76. package/dist/chunks/button.cb90b55c.js.map +1 -0
  77. package/dist/chunks/{calendar.640b8d25.js → calendar.f02e0a5a.js} +5 -5
  78. package/dist/chunks/{calendar.640b8d25.js.map → calendar.f02e0a5a.js.map} +1 -1
  79. package/dist/chunks/{checkbox.bfed007c.js → checkbox.9f9c978a.js} +3 -3
  80. package/dist/chunks/{checkbox.bfed007c.js.map → checkbox.9f9c978a.js.map} +1 -1
  81. package/dist/chunks/{controls-group.4fb50009.js → controls-group.121a307d.js} +3 -3
  82. package/dist/chunks/{controls-group.4fb50009.js.map → controls-group.121a307d.js.map} +1 -1
  83. package/dist/chunks/{copy.f85700c6.js → copy.6808b2dc.js} +4 -4
  84. package/dist/chunks/{copy.f85700c6.js.map → copy.6808b2dc.js.map} +1 -1
  85. package/dist/chunks/{dialog-page.73da22cf.js → dialog-page.7fd7d006.js} +3 -3
  86. package/dist/chunks/{dialog-page.73da22cf.js.map → dialog-page.7fd7d006.js.map} +1 -1
  87. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js → dropdown-default-textbox.d0f17d96.js} +3 -3
  88. package/dist/chunks/{dropdown-default-textbox.54ca1b18.js.map → dropdown-default-textbox.d0f17d96.js.map} +1 -1
  89. package/dist/chunks/{dropdown.10c034aa.js → dropdown.a8037bca.js} +188 -197
  90. package/dist/chunks/dropdown.a8037bca.js.map +1 -0
  91. package/dist/chunks/{error-message.31ec12b7.js → error-message.bdcc1020.js} +2 -2
  92. package/dist/chunks/{error-message.31ec12b7.js.map → error-message.bdcc1020.js.map} +1 -1
  93. package/dist/chunks/{events.58c00e6d.js → events.f14a214b.js} +5 -5
  94. package/dist/chunks/events.f14a214b.js.map +1 -0
  95. package/dist/chunks/{fixed-scroller.4eb9a9ac.js → fixed-scroller.82ef6187.js} +2 -2
  96. package/dist/chunks/{fixed-scroller.4eb9a9ac.js.map → fixed-scroller.82ef6187.js.map} +1 -1
  97. package/dist/chunks/{footer-actions.a1e09b4f.js → footer-actions.58d14a16.js} +4 -4
  98. package/dist/chunks/{footer-actions.a1e09b4f.js.map → footer-actions.58d14a16.js.map} +1 -1
  99. package/dist/chunks/{index.15b088b9.js → index.0a30d358.js} +6 -6
  100. package/dist/chunks/{index.15b088b9.js.map → index.0a30d358.js.map} +1 -1
  101. package/dist/chunks/{index.d553d3d1.js → index.1deef79e.js} +2 -2
  102. package/dist/chunks/{index.d553d3d1.js.map → index.1deef79e.js.map} +1 -1
  103. package/dist/chunks/index.3c69be27.js +85 -0
  104. package/dist/chunks/index.3c69be27.js.map +1 -0
  105. package/dist/chunks/index.561786f6.js +126 -0
  106. package/dist/chunks/index.561786f6.js.map +1 -0
  107. package/dist/chunks/{index.b21197ca.js → index.614a5138.js} +2 -2
  108. package/dist/chunks/{index.b21197ca.js.map → index.614a5138.js.map} +1 -1
  109. package/dist/chunks/{index.8b8c3b16.js → index.854d6498.js} +9 -9
  110. package/dist/chunks/{index.8b8c3b16.js.map → index.854d6498.js.map} +1 -1
  111. package/dist/chunks/{index.885d05a9.js → index.939dd5cf.js} +2 -2
  112. package/dist/chunks/{index.885d05a9.js.map → index.939dd5cf.js.map} +1 -1
  113. package/dist/chunks/{index.1ea85d4a.js → index.a48e7f99.js} +6 -6
  114. package/dist/chunks/{index.1ea85d4a.js.map → index.a48e7f99.js.map} +1 -1
  115. package/dist/chunks/{index.317fca12.js → index.bd1d28d0.js} +3 -3
  116. package/dist/chunks/{index.317fca12.js.map → index.bd1d28d0.js.map} +1 -1
  117. package/dist/chunks/{index.671768a1.js → index.c8621e8e.js} +3 -3
  118. package/dist/chunks/{index.671768a1.js.map → index.c8621e8e.js.map} +1 -1
  119. package/dist/chunks/{index.7eefc59c.js → index.ccc7e8d7.js} +3 -3
  120. package/dist/chunks/{index.7eefc59c.js.map → index.ccc7e8d7.js.map} +1 -1
  121. package/dist/chunks/{index.dd30e538.js → index.e29a6907.js} +2 -2
  122. package/dist/chunks/{index.dd30e538.js.map → index.e29a6907.js.map} +1 -1
  123. package/dist/chunks/{keyboard-navigation.ca47dfa8.js → keyboard-navigation.bbc3d15c.js} +2 -2
  124. package/dist/chunks/{keyboard-navigation.ca47dfa8.js.map → keyboard-navigation.bbc3d15c.js.map} +1 -1
  125. package/dist/chunks/{listbox-option-tag.6bbb6bbe.js → listbox-option-tag.8708be60.js} +3 -3
  126. package/dist/chunks/{listbox-option-tag.6bbb6bbe.js.map → listbox-option-tag.8708be60.js.map} +1 -1
  127. package/dist/chunks/{loading-button.eafc9e1b.js → loading-button.692dbdc8.js} +2 -2
  128. package/dist/chunks/{loading-button.eafc9e1b.js.map → loading-button.692dbdc8.js.map} +1 -1
  129. package/dist/chunks/{payment-method.6c1ce07c.js → payment-method.c55dd352.js} +2 -2
  130. package/dist/chunks/{payment-method.6c1ce07c.js.map → payment-method.c55dd352.js.map} +1 -1
  131. package/dist/chunks/{tooltip.58ef3f4a.js → tooltip.efddb5f3.js} +4 -4
  132. package/dist/chunks/{tooltip.58ef3f4a.js.map → tooltip.efddb5f3.js.map} +1 -1
  133. package/dist/chunks/{use-bento-toast-controller.c3277f73.js → use-bento-toast-controller.5dac1f3c.js} +2 -2
  134. package/dist/chunks/{use-bento-toast-controller.c3277f73.js.map → use-bento-toast-controller.5dac1f3c.js.map} +1 -1
  135. package/dist/chunks/{use-cached-selected-values.69297473.js → use-cached-selected-values.98a9ed01.js} +225 -206
  136. package/dist/chunks/use-cached-selected-values.98a9ed01.js.map +1 -0
  137. package/dist/code-snippet.js +131 -129
  138. package/dist/code-snippet.js.map +1 -1
  139. package/dist/country.js +2 -2
  140. package/dist/currency.js +1 -1
  141. package/dist/dashboard-template.js +109 -0
  142. package/dist/dashboard-template.js.map +1 -0
  143. package/dist/data-grid-template.js +1 -1
  144. package/dist/data-grid.js +78 -70
  145. package/dist/data-grid.js.map +1 -1
  146. package/dist/date-picker.js +8 -8
  147. package/dist/date-range-picker.js +2 -2
  148. package/dist/date.js +1 -1
  149. package/dist/divider.js +1 -1
  150. package/dist/dropdown.js +7 -7
  151. package/dist/empty-state.js +3 -3
  152. package/dist/filter-bar.js +77 -75
  153. package/dist/filter-bar.js.map +1 -1
  154. package/dist/focus-trap.js +1 -1
  155. package/dist/form-layout.js +2 -2
  156. package/dist/header.js +4 -4
  157. package/dist/index.js +82 -79
  158. package/dist/index.js.map +1 -1
  159. package/dist/info-icon.js +3 -3
  160. package/dist/input-field.js +4 -4
  161. package/dist/internal.js +8 -8
  162. package/dist/link.js +1 -1
  163. package/dist/loading-indicator.js +1 -1
  164. package/dist/menu.js +1 -1
  165. package/dist/modal-fullscreen.js +6 -6
  166. package/dist/modal.js +6 -6
  167. package/dist/pagination.js +4 -4
  168. package/dist/payment-method.js +1 -1
  169. package/dist/popover.js +1 -1
  170. package/dist/popper-container.js +1 -1
  171. package/dist/radio-group.js +4 -4
  172. package/dist/search-bar.js +2 -2
  173. package/dist/secondary-nav.js +2 -2
  174. package/dist/segmented-control.js +40 -41
  175. package/dist/segmented-control.js.map +1 -1
  176. package/dist/selection-card.js +4 -4
  177. package/dist/sidepanel.js +6 -6
  178. package/dist/status.js +2 -2
  179. package/dist/stepper.js +4 -4
  180. package/dist/structured-list.js +1 -1
  181. package/dist/summary-grid.js +3 -3
  182. package/dist/tabs.js +68 -67
  183. package/dist/tabs.js.map +1 -1
  184. package/dist/tag.js +3 -3
  185. package/dist/textarea.js +4 -4
  186. package/dist/timeline.js +7 -7
  187. package/dist/toast.js +4 -4
  188. package/dist/toggle.js +2 -2
  189. package/dist/tutorial.js +68 -53
  190. package/dist/tutorial.js.map +1 -1
  191. package/dist/typography.js +1 -1
  192. package/dist/web-types.json +133 -70
  193. package/package.json +9 -6
  194. package/dist/chunks/button-actions.81db18e8.js.map +0 -1
  195. package/dist/chunks/button.9d6435ae.js +0 -100
  196. package/dist/chunks/button.9d6435ae.js.map +0 -1
  197. package/dist/chunks/checkmark.a6ed8f47.js +0 -26
  198. package/dist/chunks/checkmark.a6ed8f47.js.map +0 -1
  199. package/dist/chunks/dropdown.10c034aa.js.map +0 -1
  200. package/dist/chunks/events.58c00e6d.js.map +0 -1
  201. package/dist/chunks/index.aaf965f8.js +0 -147
  202. package/dist/chunks/index.aaf965f8.js.map +0 -1
  203. package/dist/chunks/use-cached-selected-values.69297473.js.map +0 -1
@@ -1,30 +1,31 @@
1
- import { defineComponent as Ve, ref as ae, computed as re, shallowRef as Ae, onMounted as $e, watch as De, watchEffect as Je } from "vue";
1
+ import { defineComponent as Ve, ref as ae, computed as re, shallowRef as Se, onMounted as $e, watch as De, watchEffect as Je } from "vue";
2
2
  import { highlightActiveLine as Ue, keymap as We, EditorView as Ie, lineNumbers as Ge } from "@codemirror/view";
3
3
  import { EditorSelection as Fe, Compartment as be, EditorState as Le } from "@codemirror/state";
4
4
  import { indentWithTab as Ke, history as qe } from "@codemirror/commands";
5
- import { syntaxHighlighting as Xe, HighlightStyle as Ze } from "@codemirror/language";
6
- import { B as Qe } from "./chunks/dropdown.10c034aa.js";
7
- import { a as Ye } from "./chunks/button.9d6435ae.js";
8
- import { B as et } from "./chunks/index.dd30e538.js";
5
+ import { syntaxHighlighting as Xe, HighlightStyle as Ye } from "@codemirror/language";
6
+ import { B as Ze } from "./chunks/dropdown.a8037bca.js";
7
+ import { a as Qe } from "./chunks/button.cb90b55c.js";
8
+ import { B as et } from "./chunks/index.e29a6907.js";
9
9
  import { BentoLoadingIndicator as tt } from "./loading-indicator.js";
10
10
  import { u as nt } from "./chunks/i18n.eb5b985b.js";
11
11
  import { n as He } from "./chunks/_plugin-vue2_normalizer.71e2aa87.js";
12
- import { h as rt } from "./chunks/base-modal.1fff7abe.js";
13
- import { C as it } from "./chunks/copy.f85700c6.js";
12
+ import { h as rt } from "./chunks/base-modal.4fb7528b.js";
13
+ import { C as it } from "./chunks/copy.6808b2dc.js";
14
14
  import { json as st } from "@codemirror/lang-json";
15
15
  import { xml as lt } from "@codemirror/lang-xml";
16
16
  import { javascript as ot } from "@codemirror/lang-javascript";
17
17
  import { java as at } from "@codemirror/lang-java";
18
- import { b as ut } from "./chunks/tooltip.58ef3f4a.js";
19
- import "./assets/index9.css";
20
- const ft = 1024;
21
- let ht = 0;
18
+ import { python as ut } from "@codemirror/lang-python";
19
+ import { b as ft } from "./chunks/tooltip.efddb5f3.js";
20
+ import "./assets/index10.css";
21
+ const ht = 1024;
22
+ let ct = 0;
22
23
  class v {
23
24
  /**
24
25
  Create a new node prop type.
25
26
  */
26
27
  constructor(e = {}) {
27
- this.id = ht++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
28
+ this.id = ct++, this.perNode = !!e.perNode, this.deserialize = e.deserialize || (() => {
28
29
  throw new Error("This node type doesn't define a deserialize function");
29
30
  });
30
31
  }
@@ -68,7 +69,7 @@ class ge {
68
69
  return e && e.props && e.props[v.mounted.id];
69
70
  }
70
71
  }
71
- const ct = /* @__PURE__ */ Object.create(null);
72
+ const dt = /* @__PURE__ */ Object.create(null);
72
73
  class W {
73
74
  /**
74
75
  @internal
@@ -80,7 +81,7 @@ class W {
80
81
  Define a node type.
81
82
  */
82
83
  static define(e) {
83
- let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : ct, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), r = new W(e.name || "", t, e.id, n);
84
+ let t = e.props && e.props.length ? /* @__PURE__ */ Object.create(null) : dt, n = (e.top ? 1 : 0) | (e.skipped ? 2 : 0) | (e.error ? 4 : 0) | (e.name == null ? 8 : 0), r = new W(e.name || "", t, e.id, n);
84
85
  if (e.props) {
85
86
  for (let s of e.props)
86
87
  if (Array.isArray(s) || (s = s(r)), s) {
@@ -166,10 +167,10 @@ W.none = new W(
166
167
  /* NodeFlag.Anonymous */
167
168
  );
168
169
  const ue = /* @__PURE__ */ new WeakMap(), Be = /* @__PURE__ */ new WeakMap();
169
- var S;
170
+ var A;
170
171
  (function(i) {
171
172
  i[i.ExcludeBuffers = 1] = "ExcludeBuffers", i[i.IncludeAnonymous = 2] = "IncludeAnonymous", i[i.IgnoreMounts = 4] = "IgnoreMounts", i[i.IgnoreOverlays = 8] = "IgnoreOverlays";
172
- })(S || (S = {}));
173
+ })(A || (A = {}));
173
174
  class V {
174
175
  /**
175
176
  Construct a new tree. See also [`Tree.build`](#common.Tree^build).
@@ -253,7 +254,7 @@ class V {
253
254
  position.
254
255
  */
255
256
  resolveStack(e, t = 0) {
256
- return gt(this, e, t);
257
+ return mt(this, e, t);
257
258
  }
258
259
  /**
259
260
  Iterate over the tree and its children, calling `enter` for any
@@ -263,8 +264,8 @@ class V {
263
264
  not have its children iterated over (or `leave` called).
264
265
  */
265
266
  iterate(e) {
266
- let { enter: t, leave: n, from: r = 0, to: s = this.length } = e, l = e.mode || 0, u = (l & S.IncludeAnonymous) > 0;
267
- for (let h = this.cursor(l | S.IncludeAnonymous); ; ) {
267
+ let { enter: t, leave: n, from: r = 0, to: s = this.length } = e, l = e.mode || 0, u = (l & A.IncludeAnonymous) > 0;
268
+ for (let h = this.cursor(l | A.IncludeAnonymous); ; ) {
268
269
  let k = !1;
269
270
  if (h.from <= s && h.to >= r && (!u && h.type.isAnonymous || t(h) !== !1)) {
270
271
  if (h.firstChild())
@@ -310,7 +311,7 @@ class V {
310
311
  or a cursor over such a buffer.
311
312
  */
312
313
  static build(e) {
313
- return mt(e);
314
+ return bt(e);
314
315
  }
315
316
  }
316
317
  V.empty = new V(W.none, [], [], 0);
@@ -340,7 +341,7 @@ class ke {
340
341
  return new ke(this.buffer, this.index);
341
342
  }
342
343
  }
343
- class q {
344
+ class X {
344
345
  /**
345
346
  Create a tree buffer.
346
347
  */
@@ -393,7 +394,7 @@ class q {
393
394
  let k = s[h++] = r[u++] - n;
394
395
  s[h++] = r[u++] - e, l = Math.max(l, k);
395
396
  }
396
- return new q(s, l, this.set);
397
+ return new X(s, l, this.set);
397
398
  }
398
399
  }
399
400
  function Pe(i, e, t, n) {
@@ -419,7 +420,7 @@ function le(i, e, t, n) {
419
420
  return i;
420
421
  i = l;
421
422
  }
422
- let s = n ? 0 : S.IgnoreOverlays;
423
+ let s = n ? 0 : A.IgnoreOverlays;
423
424
  if (n)
424
425
  for (let l = i, u = l.parent; u; l = u, u = l.parent)
425
426
  l instanceof E && l.index < 0 && ((r = u.enter(e, t, s)) === null || r === void 0 ? void 0 : r.from) != l.from && (i = u);
@@ -485,22 +486,22 @@ class E extends je {
485
486
  for (let { children: u, positions: h } = l._tree, k = t > 0 ? u.length : -1; e != k; e += t) {
486
487
  let C = u[e], N = h[e] + l.from;
487
488
  if (Pe(r, n, N, N + C.length)) {
488
- if (C instanceof q) {
489
- if (s & S.ExcludeBuffers)
489
+ if (C instanceof X) {
490
+ if (s & A.ExcludeBuffers)
490
491
  continue;
491
- let A = C.findChild(0, C.buffer.length, t, n - N, r);
492
- if (A > -1)
493
- return new K(new dt(l, C, e, N), null, A);
494
- } else if (s & S.IncludeAnonymous || !C.type.isAnonymous || Ce(C)) {
495
- let A;
496
- if (!(s & S.IgnoreMounts) && (A = ge.get(C)) && !A.overlay)
497
- return new E(A.tree, N, e, l);
492
+ let S = C.findChild(0, C.buffer.length, t, n - N, r);
493
+ if (S > -1)
494
+ return new q(new pt(l, C, e, N), null, S);
495
+ } else if (s & A.IncludeAnonymous || !C.type.isAnonymous || Ce(C)) {
496
+ let S;
497
+ if (!(s & A.IgnoreMounts) && (S = ge.get(C)) && !S.overlay)
498
+ return new E(S.tree, N, e, l);
498
499
  let z = new E(C, N, e, l);
499
- return s & S.IncludeAnonymous || !z.type.isAnonymous ? z : z.nextChild(t < 0 ? C.children.length - 1 : 0, t, n, r);
500
+ return s & A.IncludeAnonymous || !z.type.isAnonymous ? z : z.nextChild(t < 0 ? C.children.length - 1 : 0, t, n, r);
500
501
  }
501
502
  }
502
503
  }
503
- if (s & S.IncludeAnonymous || !l.type.isAnonymous || (l.index >= 0 ? e = l.index + t : e = t < 0 ? -1 : l._parent._tree.children.length, l = l._parent, !l))
504
+ if (s & A.IncludeAnonymous || !l.type.isAnonymous || (l.index >= 0 ? e = l.index + t : e = t < 0 ? -1 : l._parent._tree.children.length, l = l._parent, !l))
504
505
  return null;
505
506
  }
506
507
  }
@@ -542,7 +543,7 @@ class E extends je {
542
543
  }
543
544
  enter(e, t, n = 0) {
544
545
  let r;
545
- if (!(n & S.IgnoreOverlays) && (r = ge.get(this._tree)) && r.overlay) {
546
+ if (!(n & A.IgnoreOverlays) && (r = ge.get(this._tree)) && r.overlay) {
546
547
  let s = e - this.from;
547
548
  for (let { from: l, to: u } of r.overlay)
548
549
  if ((t > 0 ? l <= s : l < s) && (t < 0 ? u >= s : u > s))
@@ -618,12 +619,12 @@ function xe(i, e, t = e.length - 1) {
618
619
  }
619
620
  return !0;
620
621
  }
621
- class dt {
622
+ class pt {
622
623
  constructor(e, t, n, r) {
623
624
  this.parent = e, this.buffer = t, this.index = n, this.start = r;
624
625
  }
625
626
  }
626
- class K extends je {
627
+ class q extends je {
627
628
  get name() {
628
629
  return this.type.name;
629
630
  }
@@ -638,7 +639,7 @@ class K extends je {
638
639
  }
639
640
  child(e, t, n) {
640
641
  let { buffer: r } = this.context, s = r.findChild(this.index + 4, r.buffer[this.index + 3], e, t - this.context.start, n);
641
- return s < 0 ? null : new K(this.context, this, s);
642
+ return s < 0 ? null : new q(this.context, this, s);
642
643
  }
643
644
  get firstChild() {
644
645
  return this.child(
@@ -673,10 +674,10 @@ class K extends je {
673
674
  );
674
675
  }
675
676
  enter(e, t, n = 0) {
676
- if (n & S.ExcludeBuffers)
677
+ if (n & A.ExcludeBuffers)
677
678
  return null;
678
679
  let { buffer: r } = this.context, s = r.findChild(this.index + 4, r.buffer[this.index + 3], t > 0 ? 1 : -1, e - this.context.start, t);
679
- return s < 0 ? null : new K(this.context, this, s);
680
+ return s < 0 ? null : new q(this.context, this, s);
680
681
  }
681
682
  get parent() {
682
683
  return this._parent || this.context.parent.nextSignificantParent();
@@ -692,11 +693,11 @@ class K extends je {
692
693
  }
693
694
  get nextSibling() {
694
695
  let { buffer: e } = this.context, t = e.buffer[this.index + 3];
695
- return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new K(this.context, this._parent, t) : this.externalSibling(1);
696
+ return t < (this._parent ? e.buffer[this._parent.index + 3] : e.buffer.length) ? new q(this.context, this._parent, t) : this.externalSibling(1);
696
697
  }
697
698
  get prevSibling() {
698
699
  let { buffer: e } = this.context, t = this._parent ? this._parent.index + 4 : 0;
699
- return this.index == t ? this.externalSibling(-1) : new K(this.context, this._parent, e.findChild(
700
+ return this.index == t ? this.externalSibling(-1) : new q(this.context, this._parent, e.findChild(
700
701
  t,
701
702
  this.index,
702
703
  -1,
@@ -732,9 +733,9 @@ function Re(i) {
732
733
  (l.from > t.from || l.to < t.to) && (t = l, e = s);
733
734
  }
734
735
  let n = t instanceof E && t.index < 0 ? null : t.parent, r = i.slice();
735
- return n ? r[e] = n : r.splice(e, 1), new pt(r, t);
736
+ return n ? r[e] = n : r.splice(e, 1), new gt(r, t);
736
737
  }
737
- class pt {
738
+ class gt {
738
739
  constructor(e, t) {
739
740
  this.heads = e, this.node = t;
740
741
  }
@@ -742,7 +743,7 @@ class pt {
742
743
  return Re(this.heads);
743
744
  }
744
745
  }
745
- function gt(i, e, t) {
746
+ function mt(i, e, t) {
746
747
  let n = i.resolveInner(e, t), r = null;
747
748
  for (let s = n instanceof E ? n : n.context.parent; s; s = s.parent)
748
749
  if (s.index < 0) {
@@ -859,17 +860,17 @@ class _e {
859
860
  set to false.
860
861
  */
861
862
  enter(e, t, n = this.mode) {
862
- return this.buffer ? n & S.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
863
+ return this.buffer ? n & A.ExcludeBuffers ? !1 : this.enterChild(1, e, t) : this.yield(this._tree.enter(e, t, n));
863
864
  }
864
865
  /**
865
866
  Move to the node's parent node, if this isn't the top node.
866
867
  */
867
868
  parent() {
868
869
  if (!this.buffer)
869
- return this.yieldNode(this.mode & S.IncludeAnonymous ? this._tree._parent : this._tree.parent);
870
+ return this.yieldNode(this.mode & A.IncludeAnonymous ? this._tree._parent : this._tree.parent);
870
871
  if (this.stack.length)
871
872
  return this.yieldBuf(this.stack.pop());
872
- let e = this.mode & S.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
873
+ let e = this.mode & A.IncludeAnonymous ? this.buffer.parent : this.buffer.parent.nextSignificantParent();
873
874
  return this.buffer = null, this.yieldNode(e);
874
875
  }
875
876
  /**
@@ -926,7 +927,7 @@ class _e {
926
927
  if (t > -1)
927
928
  for (let s = t + e, l = e < 0 ? -1 : n._tree.children.length; s != l; s += e) {
928
929
  let u = n._tree.children[s];
929
- if (this.mode & S.IncludeAnonymous || u instanceof q || !u.type.isAnonymous || Ce(u))
930
+ if (this.mode & A.IncludeAnonymous || u instanceof X || !u.type.isAnonymous || Ce(u))
930
931
  return !1;
931
932
  }
932
933
  return !0;
@@ -998,8 +999,8 @@ class _e {
998
999
  r = this.stack[--s];
999
1000
  }
1000
1001
  for (let r = n; r < this.stack.length; r++)
1001
- t = new K(this.buffer, t, this.stack[r]);
1002
- return this.bufferNode = new K(this.buffer, t, this.index);
1002
+ t = new q(this.buffer, t, this.stack[r]);
1003
+ return this.bufferNode = new q(this.buffer, t, this.index);
1003
1004
  }
1004
1005
  /**
1005
1006
  Get the [tree](#common.Tree) that represents the current node, if
@@ -1055,11 +1056,11 @@ class _e {
1055
1056
  }
1056
1057
  }
1057
1058
  function Ce(i) {
1058
- return i.children.some((e) => e instanceof q || !e.type.isAnonymous || Ce(e));
1059
+ return i.children.some((e) => e instanceof X || !e.type.isAnonymous || Ce(e));
1059
1060
  }
1060
- function mt(i) {
1061
+ function bt(i) {
1061
1062
  var e;
1062
- let { buffer: t, nodeSet: n, maxBufferLength: r = ft, reused: s = [], minRepeatType: l = n.types.length } = i, u = Array.isArray(t) ? new ke(t, t.length) : t, h = n.types, k = 0, C = 0;
1063
+ let { buffer: t, nodeSet: n, maxBufferLength: r = ht, reused: s = [], minRepeatType: l = n.types.length } = i, u = Array.isArray(t) ? new ke(t, t.length) : t, h = n.types, k = 0, C = 0;
1063
1064
  function N(g, b, f, y, p, m) {
1064
1065
  let { id: c, start: d, end: _, size: x } = u, L = C;
1065
1066
  for (; x < 0; )
@@ -1075,27 +1076,27 @@ function mt(i) {
1075
1076
  return;
1076
1077
  } else
1077
1078
  throw new RangeError(`Unrecognized record size: ${x}`);
1078
- let X = h[c], te, Z, Ne = d - g;
1079
+ let Y = h[c], te, Z, Ne = d - g;
1079
1080
  if (_ - d <= r && (Z = O(u.pos - b, p))) {
1080
1081
  let U = new Uint16Array(Z.size - Z.skip), B = u.pos - Z.size, T = U.length;
1081
1082
  for (; u.pos > B; )
1082
1083
  T = $(Z.start, U, T);
1083
- te = new q(U, _ - Z.start, n), Ne = Z.start - g;
1084
+ te = new X(U, _ - Z.start, n), Ne = Z.start - g;
1084
1085
  } else {
1085
1086
  let U = u.pos - x;
1086
1087
  u.next();
1087
1088
  let B = [], T = [], Q = c >= l ? c : -1, ne = 0, oe = _;
1088
1089
  for (; u.pos > U; )
1089
- Q >= 0 && u.id == Q && u.size >= 0 ? (u.end <= oe - r && (I(B, T, d, ne, u.end, oe, Q, L), ne = B.length, oe = u.end), u.next()) : m > 2500 ? A(d, U, B, T) : N(d, U, B, T, Q, m + 1);
1090
+ Q >= 0 && u.id == Q && u.size >= 0 ? (u.end <= oe - r && (I(B, T, d, ne, u.end, oe, Q, L), ne = B.length, oe = u.end), u.next()) : m > 2500 ? S(d, U, B, T) : N(d, U, B, T, Q, m + 1);
1090
1091
  if (Q >= 0 && ne > 0 && ne < B.length && I(B, T, d, ne, d, oe, Q, L), B.reverse(), T.reverse(), Q > -1 && ne > 0) {
1091
- let Se = z(X);
1092
- te = we(X, B, T, 0, B.length, 0, _ - d, Se, Se);
1092
+ let Ae = z(Y);
1093
+ te = we(Y, B, T, 0, B.length, 0, _ - d, Ae, Ae);
1093
1094
  } else
1094
- te = M(X, B, T, _ - d, L - _);
1095
+ te = M(Y, B, T, _ - d, L - _);
1095
1096
  }
1096
1097
  f.push(te), y.push(Ne);
1097
1098
  }
1098
- function A(g, b, f, y) {
1099
+ function S(g, b, f, y) {
1099
1100
  let p = [], m = 0, c = -1;
1100
1101
  for (; u.pos > b; ) {
1101
1102
  let { id: d, start: _, end: x, size: L } = u;
@@ -1111,7 +1112,7 @@ function mt(i) {
1111
1112
  let d = new Uint16Array(m * 4), _ = p[p.length - 2];
1112
1113
  for (let x = p.length - 3, L = 0; x >= 0; x -= 3)
1113
1114
  d[L++] = p[x], d[L++] = p[x + 1] - _, d[L++] = p[x + 2] - _, d[L++] = L;
1114
- f.push(new q(d, p[2] - _, n)), y.push(_ - g);
1115
+ f.push(new X(d, p[2] - _, n)), y.push(_ - g);
1115
1116
  }
1116
1117
  }
1117
1118
  function z(g) {
@@ -1154,18 +1155,18 @@ function mt(i) {
1154
1155
  let L = f.pos - x;
1155
1156
  if (x < 0 || L < _ || f.start < c)
1156
1157
  break;
1157
- let X = f.id >= l ? 4 : 0, te = f.start;
1158
+ let Y = f.id >= l ? 4 : 0, te = f.start;
1158
1159
  for (f.next(); f.pos > L; ) {
1159
1160
  if (f.size < 0)
1160
1161
  if (f.size == -3)
1161
- X += 4;
1162
+ Y += 4;
1162
1163
  else
1163
1164
  break e;
1164
1165
  else
1165
- f.id >= l && (X += 4);
1166
+ f.id >= l && (Y += 4);
1166
1167
  f.next();
1167
1168
  }
1168
- p = te, y += x, m += X;
1169
+ p = te, y += x, m += Y;
1169
1170
  }
1170
1171
  return (b < 0 || y == g) && (d.size = y, d.start = p, d.skip = m), d.size > 4 ? d : void 0;
1171
1172
  }
@@ -1191,7 +1192,7 @@ function mt(i) {
1191
1192
  }
1192
1193
  const Oe = /* @__PURE__ */ new WeakMap();
1193
1194
  function de(i, e) {
1194
- if (!i.isAnonymous || e instanceof q || e.type != i)
1195
+ if (!i.isAnonymous || e instanceof X || e.type != i)
1195
1196
  return 1;
1196
1197
  let t = Oe.get(e);
1197
1198
  if (t == null) {
@@ -1214,7 +1215,7 @@ function we(i, e, t, n, r, s, l, u, h) {
1214
1215
  let C = Math.ceil(
1215
1216
  k * 1.5 / 8
1216
1217
  /* Balance.BranchFactor */
1217
- ), N = [], A = [];
1218
+ ), N = [], S = [];
1218
1219
  function z(I, M, O, $, D) {
1219
1220
  for (let w = O; w < $; ) {
1220
1221
  let J = w, g = M[w], b = de(i, I[w]);
@@ -1235,19 +1236,19 @@ function we(i, e, t, n, r, s, l, u, h) {
1235
1236
  let f = M[w - 1] + I[w - 1].length - g;
1236
1237
  N.push(we(i, I, M, J, w, g, f, null, h));
1237
1238
  }
1238
- A.push(g + D - s);
1239
+ S.push(g + D - s);
1239
1240
  }
1240
1241
  }
1241
- return z(e, t, n, r, 0), (u || h)(N, A, l);
1242
+ return z(e, t, n, r, 0), (u || h)(N, S, l);
1242
1243
  }
1243
1244
  new v({ perNode: !0 });
1244
- let bt = 0;
1245
+ let yt = 0;
1245
1246
  class R {
1246
1247
  /**
1247
1248
  @internal
1248
1249
  */
1249
1250
  constructor(e, t, n) {
1250
- this.set = e, this.base = t, this.modified = n, this.id = bt++;
1251
+ this.set = e, this.base = t, this.modified = n, this.id = yt++;
1251
1252
  }
1252
1253
  /**
1253
1254
  Define a new tag. If `parent` is given, the tag is treated as a
@@ -1282,21 +1283,21 @@ class R {
1282
1283
  return (t) => t.modified.indexOf(e) > -1 ? t : me.get(t.base || t, t.modified.concat(e).sort((n, r) => n.id - r.id));
1283
1284
  }
1284
1285
  }
1285
- let yt = 0;
1286
+ let xt = 0;
1286
1287
  class me {
1287
1288
  constructor() {
1288
- this.instances = [], this.id = yt++;
1289
+ this.instances = [], this.id = xt++;
1289
1290
  }
1290
1291
  static get(e, t) {
1291
1292
  if (!t.length)
1292
1293
  return e;
1293
- let n = t[0].instances.find((u) => u.base == e && xt(t, u.modified));
1294
+ let n = t[0].instances.find((u) => u.base == e && _t(t, u.modified));
1294
1295
  if (n)
1295
1296
  return n;
1296
1297
  let r = [], s = new R(r, e, t);
1297
1298
  for (let u of t)
1298
1299
  u.instances.push(s);
1299
- let l = _t(t);
1300
+ let l = vt(t);
1300
1301
  for (let u of e.set)
1301
1302
  if (!u.modified.length)
1302
1303
  for (let h of l)
@@ -1304,10 +1305,10 @@ class me {
1304
1305
  return s;
1305
1306
  }
1306
1307
  }
1307
- function xt(i, e) {
1308
+ function _t(i, e) {
1308
1309
  return i.length == e.length && i.every((t, n) => t == e[n]);
1309
1310
  }
1310
- function _t(i) {
1311
+ function vt(i) {
1311
1312
  let e = [[]];
1312
1313
  for (let t = 0; t < i.length; t++)
1313
1314
  for (let n = 0, r = e.length; n < r; n++)
@@ -1315,7 +1316,7 @@ function _t(i) {
1315
1316
  return e.sort((t, n) => n.length - t.length);
1316
1317
  }
1317
1318
  new v();
1318
- function vt(i, e) {
1319
+ function kt(i, e) {
1319
1320
  let t = /* @__PURE__ */ Object.create(null);
1320
1321
  for (let s of i)
1321
1322
  if (!Array.isArray(s.tag))
@@ -1340,7 +1341,7 @@ function vt(i, e) {
1340
1341
  scope: n
1341
1342
  };
1342
1343
  }
1343
- const a = R.define, fe = a(), G = a(), ze = a(G), Me = a(G), F = a(), he = a(F), ye = a(F), j = a(), Y = a(j), H = a(), P = a(), ve = a(), ie = a(ve), ce = a(), o = {
1344
+ const a = R.define, fe = a(), G = a(), ze = a(G), Me = a(G), F = a(), he = a(F), ye = a(F), j = a(), ee = a(j), H = a(), P = a(), ve = a(), ie = a(ve), ce = a(), o = {
1344
1345
  /**
1345
1346
  A comment.
1346
1347
  */
@@ -1572,31 +1573,31 @@ const a = R.define, fe = a(), G = a(), ze = a(G), Me = a(G), F = a(), he = a(F),
1572
1573
  /**
1573
1574
  [Content](#highlight.tags.content) that represents a heading.
1574
1575
  */
1575
- heading: Y,
1576
+ heading: ee,
1576
1577
  /**
1577
1578
  A level 1 [heading](#highlight.tags.heading).
1578
1579
  */
1579
- heading1: a(Y),
1580
+ heading1: a(ee),
1580
1581
  /**
1581
1582
  A level 2 [heading](#highlight.tags.heading).
1582
1583
  */
1583
- heading2: a(Y),
1584
+ heading2: a(ee),
1584
1585
  /**
1585
1586
  A level 3 [heading](#highlight.tags.heading).
1586
1587
  */
1587
- heading3: a(Y),
1588
+ heading3: a(ee),
1588
1589
  /**
1589
1590
  A level 4 [heading](#highlight.tags.heading).
1590
1591
  */
1591
- heading4: a(Y),
1592
+ heading4: a(ee),
1592
1593
  /**
1593
1594
  A level 5 [heading](#highlight.tags.heading).
1594
1595
  */
1595
- heading5: a(Y),
1596
+ heading5: a(ee),
1596
1597
  /**
1597
1598
  A level 6 [heading](#highlight.tags.heading).
1598
1599
  */
1599
- heading6: a(Y),
1600
+ heading6: a(ee),
1600
1601
  /**
1601
1602
  A prose separator (such as a horizontal rule).
1602
1603
  */
@@ -1706,7 +1707,7 @@ const a = R.define, fe = a(), G = a(), ze = a(G), Me = a(G), F = a(), he = a(F),
1706
1707
  */
1707
1708
  special: R.defineModifier()
1708
1709
  };
1709
- vt([
1710
+ kt([
1710
1711
  { tag: o.link, class: "tok-link" },
1711
1712
  { tag: o.heading, class: "tok-heading" },
1712
1713
  { tag: o.emphasis, class: "tok-emphasis" },
@@ -1738,13 +1739,13 @@ vt([
1738
1739
  { tag: o.invalid, class: "tok-invalid" },
1739
1740
  { tag: o.punctuation, class: "tok-punctuation" }
1740
1741
  ]);
1741
- const kt = "#c72727", Ct = "#9b5700", wt = "#067934", Nt = "#0063d7", St = {
1742
- red: kt,
1743
- orange: Ct,
1744
- green: wt,
1745
- blue: Nt,
1742
+ const Ct = "#c72727", wt = "#9b5700", Nt = "#067934", At = "#0063d7", St = {
1743
+ red: Ct,
1744
+ orange: wt,
1745
+ green: Nt,
1746
+ blue: At,
1746
1747
  invalid: "#ffffff"
1747
- }, At = (i) => Ze.define([
1748
+ }, It = (i) => Ye.define([
1748
1749
  {
1749
1750
  tag: o.keyword,
1750
1751
  color: i.red
@@ -1811,22 +1812,23 @@ const kt = "#c72727", Ct = "#9b5700", wt = "#067934", Nt = "#0063d7", St = {
1811
1812
  tag: o.invalid,
1812
1813
  color: i.invalid
1813
1814
  }
1814
- ]), It = Xe(At(St));
1815
- var pe = /* @__PURE__ */ ((i) => (i.INLINE = "inline", i.SINGLELINE = "singleline", i.MULTILINE = "multiline", i))(pe || {}), ee = /* @__PURE__ */ ((i) => (i.JSON = "json", i.XML = "xml", i.JAVA = "java", i.JAVASCRIPT = "javascript", i))(ee || {}), se = /* @__PURE__ */ ((i) => (i.ACTION = "action", i.CHANGE = "change", i))(se || {});
1816
- const Lt = {
1817
- [ee.JSON]: st,
1818
- [ee.XML]: lt,
1819
- [ee.JAVASCRIPT]: ot,
1820
- [ee.JAVA]: at
1821
- }, Bt = (i) => async () => Lt[i], Et = (i, e) => {
1815
+ ]), Lt = Xe(It(St));
1816
+ var pe = /* @__PURE__ */ ((i) => (i.INLINE = "inline", i.SINGLELINE = "singleline", i.MULTILINE = "multiline", i))(pe || {}), K = /* @__PURE__ */ ((i) => (i.JSON = "json", i.XML = "xml", i.JAVA = "java", i.JAVASCRIPT = "javascript", i.PYTHON = "python", i))(K || {}), se = /* @__PURE__ */ ((i) => (i.ACTION = "action", i.CHANGE = "change", i))(se || {});
1817
+ const Bt = {
1818
+ [K.JSON]: st,
1819
+ [K.XML]: lt,
1820
+ [K.JAVASCRIPT]: ot,
1821
+ [K.JAVA]: at,
1822
+ [K.PYTHON]: ut
1823
+ }, Et = (i) => async () => Bt[i], Ot = (i, e) => {
1822
1824
  const t = i.doc.lineAt(e.from), n = /^\s*/.exec(t.text);
1823
1825
  return n ? n[0] : "";
1824
- }, Ot = {
1826
+ }, zt = {
1825
1827
  key: "Enter",
1826
1828
  run: ({ state: i, dispatch: e }) => {
1827
1829
  const t = i.changeByRange((n) => {
1828
1830
  const s = `
1829
- ${Et(i, n)}`;
1831
+ ${Ot(i, n)}`;
1830
1832
  return {
1831
1833
  changes: { from: n.from, to: n.to, insert: s },
1832
1834
  range: Fe.cursor(n.from + s.length)
@@ -1836,42 +1838,42 @@ ${Et(i, n)}`;
1836
1838
  }
1837
1839
  };
1838
1840
  let Te = 0;
1839
- const zt = {
1841
+ const Mt = {
1840
1842
  beforeCreate() {
1841
1843
  this.uuid = Te.toString(), Te += 1;
1842
1844
  }
1843
1845
  };
1844
- var Mt = function() {
1846
+ var Tt = function() {
1845
1847
  var e = this, t = e._self._c;
1846
1848
  return t("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"] ? t("title", [e._v(e._s(e.$attrs["svg-title"]))]) : e._e(), t("path", { attrs: { fill: "#00112C", d: "M14.75 1.25V6.75H13.25V3.81083L10.0001 7.06072L8.93945 6.00006L12.1895 2.75H9.25V1.25H14.75Z" } }), t("path", { attrs: { fill: "#00112C", d: "M2.75 12.1895V9.25H1.25V14.75H6.75V13.25H3.81083L7.06072 10.0001L6.00006 8.93945L2.75 12.1895Z" } })]);
1847
- }, Tt = [], Ht = /* @__PURE__ */ He(
1848
- zt,
1849
+ }, Ht = [], Pt = /* @__PURE__ */ He(
1849
1850
  Mt,
1850
1851
  Tt,
1852
+ Ht,
1851
1853
  !1,
1852
1854
  null,
1853
1855
  null,
1854
1856
  null,
1855
1857
  null
1856
1858
  );
1857
- const Pt = Ht.exports, jt = {
1859
+ const jt = Pt.exports, Rt = {
1858
1860
  "en-US": {
1859
1861
  run: "Run",
1860
1862
  expand: "Expand"
1861
1863
  }
1862
- }, Rt = Ve({
1863
- i18n: { messages: jt },
1864
+ }, Vt = Ve({
1865
+ i18n: { messages: Rt },
1864
1866
  name: "bento-code-snippet",
1865
1867
  components: {
1866
1868
  BentoTypography: et,
1867
- BentoButton: Ye,
1868
- BentoDropdown: Qe,
1869
+ BentoButton: Qe,
1870
+ BentoDropdown: Ze,
1869
1871
  Copy: it,
1870
1872
  BaseModal: rt,
1871
1873
  BentoLoadingIndicator: tt,
1872
- ExpandIcon: Pt
1874
+ ExpandIcon: jt
1873
1875
  },
1874
- directives: { BentoTooltipDirective: ut },
1876
+ directives: { BentoTooltipDirective: ft },
1875
1877
  props: {
1876
1878
  /**
1877
1879
  * Defines the variant of code-snippet
@@ -1886,8 +1888,8 @@ const Pt = Ht.exports, jt = {
1886
1888
  */
1887
1889
  lang: {
1888
1890
  type: String,
1889
- default: ee.JSON,
1890
- validator: (i) => Object.values(ee).includes(i)
1891
+ default: K.JSON,
1892
+ validator: (i) => Object.values(K).includes(i)
1891
1893
  },
1892
1894
  /**
1893
1895
  * Label to show in the action-bar, describing the language
@@ -1950,7 +1952,7 @@ const Pt = Ht.exports, jt = {
1950
1952
  "b-code-snippet--scrollable": !u.value
1951
1953
  })), k = re(() => ({
1952
1954
  "b-code-snippet__code-area-content--editable": i.editable
1953
- })), C = Bt(i.lang), N = Ae(), A = Ae(), z = new be(), I = new be(), M = new be(), O = ae(null), $ = ae(0);
1955
+ })), C = Et(i.lang), N = Se(), S = Se(), z = new be(), I = new be(), M = new be(), O = ae(null), $ = ae(0);
1954
1956
  $e(async () => {
1955
1957
  const g = await C();
1956
1958
  O.value = i.content;
@@ -1958,9 +1960,9 @@ const Pt = Ht.exports, jt = {
1958
1960
  O.value = p.doc.toString();
1959
1961
  }, f = [
1960
1962
  Ue(),
1961
- We.of([Ke, Ot]),
1963
+ We.of([Ke, zt]),
1962
1964
  z.of(g()),
1963
- I.of(It),
1965
+ I.of(Lt),
1964
1966
  M.of(Le.readOnly.of(!i.editable)),
1965
1967
  Ie.updateListener.of((p) => b(p))
1966
1968
  ];
@@ -1969,7 +1971,7 @@ const Pt = Ht.exports, jt = {
1969
1971
  doc: i.content,
1970
1972
  extensions: [...f]
1971
1973
  });
1972
- $.value = y.doc.length, A.value = new Ie({
1974
+ $.value = y.doc.length, S.value = new Ie({
1973
1975
  state: y,
1974
1976
  parent: N.value
1975
1977
  });
@@ -1978,7 +1980,7 @@ const Pt = Ht.exports, jt = {
1978
1980
  () => {
1979
1981
  if (i.content !== O.value) {
1980
1982
  const g = i.content.length;
1981
- A.value.dispatch({
1983
+ S.value.dispatch({
1982
1984
  changes: {
1983
1985
  from: 0,
1984
1986
  to: $.value,
@@ -2003,7 +2005,7 @@ const Pt = Ht.exports, jt = {
2003
2005
  container: N,
2004
2006
  currentContents: O,
2005
2007
  displayedLang: l,
2006
- editor: A,
2008
+ editor: S,
2007
2009
  selectedLanguage: n,
2008
2010
  showModal: J,
2009
2011
  isInlineVariant: u,
@@ -2016,7 +2018,7 @@ const Pt = Ht.exports, jt = {
2016
2018
  };
2017
2019
  }
2018
2020
  });
2019
- var Vt = function() {
2021
+ var $t = function() {
2020
2022
  var e = this, t = e._self._c;
2021
2023
  return e._self._setupProxy, t("div", { staticClass: "b-code-snippet", class: e.conditionalClasses }, [e.isInlineVariant ? e._e() : t("section", { staticClass: "b-code-snippet__action-bar" }, [t("div", { staticClass: "b-code-snippet__action-bar--start" }, [e.availableLanguages.length > 0 ? t("bento-dropdown", e._b({ staticClass: "b-code-snippet__language-picker", attrs: { disabled: e.availableLanguages.length === 1, items: e.availableLanguages }, on: { input: e.handleChangeLanguage }, model: { value: e.selectedLanguage, callback: function(n) {
2022
2024
  e.selectedLanguage = n;
@@ -2033,21 +2035,21 @@ var Vt = function() {
2033
2035
  } }, scopedSlots: e._u([{ key: "content", fn: function() {
2034
2036
  return [t("bento-code-snippet", e._b({}, "bento-code-snippet", { ...e.$props, expandable: !1 }, !1))];
2035
2037
  }, proxy: !0 }], null, !1, 3343589027) }) : e._e()], 1);
2036
- }, $t = [], Dt = /* @__PURE__ */ He(
2037
- Rt,
2038
+ }, Dt = [], Jt = /* @__PURE__ */ He(
2038
2039
  Vt,
2039
2040
  $t,
2041
+ Dt,
2040
2042
  !1,
2041
2043
  null,
2042
2044
  "befa6cc9",
2043
2045
  null,
2044
2046
  null
2045
2047
  );
2046
- const an = Dt.exports;
2048
+ const fn = Jt.exports;
2047
2049
  export {
2048
- an as BentoCodeSnippet,
2050
+ fn as BentoCodeSnippet,
2049
2051
  se as BentoCodeSnippetEvent,
2050
- ee as BentoCodeSnippetSupportedLanguage,
2052
+ K as BentoCodeSnippetSupportedLanguage,
2051
2053
  pe as BentoCodeSnippetVariant
2052
2054
  };
2053
2055
  //# sourceMappingURL=code-snippet.js.map