@harbour-enterprises/superdoc 0.12.0-RC1 → 0.12.0-RC2

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 (73) hide show
  1. package/dist/chunks/{eventemitter3-CRfwKE7Z.es.js → eventemitter3-C9iBZY5R.es.js} +1 -1
  2. package/dist/chunks/{eventemitter3-D38HWRLP.cjs → eventemitter3-Cj9ZwxFw.cjs} +1 -1
  3. package/dist/chunks/{index-CPZ-IxHT.es.js → index-BTkgQgI7.es.js} +2 -2
  4. package/dist/chunks/{index-BXKGjuVW.cjs → index-C6SLw2ph.cjs} +1 -1
  5. package/dist/chunks/{index-CqRwYOdx.cjs → index-CbUTRvRk.cjs} +1 -1
  6. package/dist/chunks/{index-Y7BlAr93.es.js → index-kWwSELc2.es.js} +4 -4
  7. package/dist/chunks/{jszip-ChlzEvf9.cjs → jszip-D9YbjC4E.cjs} +1 -1
  8. package/dist/chunks/{jszip-DO3il9iI.es.js → jszip-OpmRHhd4.es.js} +1 -1
  9. package/dist/chunks/super-editor.es-VeFFgSyB.cjs +451 -0
  10. package/dist/chunks/{super-editor.es-jxkEOua-.es.js → super-editor.es-jrBL9mdr.es.js} +16776 -16177
  11. package/dist/chunks/{url-t15h9onH.es.js → url-C29KYeaj.es.js} +2 -2
  12. package/dist/chunks/{url-6Xu7gR4T.cjs → url-DRGmEUtI.cjs} +1 -1
  13. package/dist/chunks/vue-BQCc2YbW.cjs +13 -0
  14. package/dist/chunks/{vue-DXpzqXur.es.js → vue-DKS68Dra.es.js} +1159 -1140
  15. package/dist/chunks/{xml-js-zhwNEV5e.cjs → xml-js-CMQ3QRee.cjs} +1 -1
  16. package/dist/chunks/{xml-js-kwrvzyhm.es.js → xml-js-CgHhGhcJ.es.js} +2 -2
  17. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts +1 -2
  18. package/dist/components/CommentsLayer/commentsList/super-comments-list.d.ts.map +1 -1
  19. package/dist/core/SuperDoc.d.ts +264 -41
  20. package/dist/core/SuperDoc.d.ts.map +1 -1
  21. package/dist/stores/superdoc-store.d.ts +6 -744
  22. package/dist/stores/superdoc-store.d.ts.map +1 -1
  23. package/dist/style.css +29 -29
  24. package/dist/super-editor/ai-writer.es.js +208 -121
  25. package/dist/super-editor/chunks/{converter-B_CnsyBe.js → converter-D1a6grDV.js} +2494 -2424
  26. package/dist/super-editor/chunks/{docx-zipper-CmQ11kAl.js → docx-zipper-L7BeJRax.js} +1 -1
  27. package/dist/super-editor/chunks/{editor-D_W26AM3.js → editor-BY7pz5xQ.js} +11524 -11250
  28. package/dist/super-editor/chunks/{toolbar-DgpDtH5C.js → toolbar-DEvjPuNj.js} +132 -132
  29. package/dist/super-editor/components/toolbar/ai-helpers.d.ts +12 -0
  30. package/dist/super-editor/components/toolbar/ai-helpers.d.ts.map +1 -1
  31. package/dist/super-editor/components/toolbar/super-toolbar.d.ts +460 -84
  32. package/dist/super-editor/components/toolbar/super-toolbar.d.ts.map +1 -1
  33. package/dist/super-editor/converter.es.js +1 -1
  34. package/dist/super-editor/core/Editor.d.ts +507 -48
  35. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  36. package/dist/super-editor/core/helpers/annotator.d.ts +10 -3
  37. package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
  38. package/dist/super-editor/core/helpers/getActiveFormatting.d.ts.map +1 -1
  39. package/dist/super-editor/core/index.d.ts +3 -3
  40. package/dist/super-editor/core/super-converter/SuperConverter.d.ts +1 -1
  41. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  42. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  43. package/dist/super-editor/core/super-converter/helpers.d.ts +1 -1
  44. package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
  45. package/dist/super-editor/core/super-converter/v2/importer/annotationImporter.d.ts.map +1 -1
  46. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +25 -0
  47. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
  48. package/dist/super-editor/docx-zipper.es.js +2 -2
  49. package/dist/super-editor/editor.es.js +3 -3
  50. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  51. package/dist/super-editor/extensions/field-annotation/fieldAnnotationHelpers/trackFieldAnnotationsDeletion.d.ts.map +1 -1
  52. package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  53. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +56 -0
  54. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +1 -0
  55. package/dist/super-editor/extensions/list-item/list-item.d.ts +0 -11
  56. package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
  57. package/dist/super-editor/extensions/table/table.d.ts.map +1 -1
  58. package/dist/super-editor/file-zipper.es.js +1 -1
  59. package/dist/super-editor/style.css +1 -1
  60. package/dist/super-editor/super-editor.es.js +768 -557
  61. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +2 -0
  62. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +1 -0
  63. package/dist/super-editor/toolbar.es.js +2 -2
  64. package/dist/super-editor.cjs +1 -1
  65. package/dist/super-editor.d.ts +3 -0
  66. package/dist/super-editor.es.js +6 -6
  67. package/dist/superdoc.cjs +26 -26
  68. package/dist/superdoc.es.js +1114 -1011
  69. package/dist/superdoc.umd.js +16304 -15571
  70. package/dist/superdoc.umd.js.map +1 -1
  71. package/package.json +2 -2
  72. package/dist/chunks/super-editor.es-D2_UqVSP.cjs +0 -452
  73. package/dist/chunks/vue-Ckf0DkDN.cjs +0 -13
@@ -1,6 +1,6 @@
1
1
  import { computed as _, createElementBlock as ie, openBlock as q, createElementVNode as Ot, createCommentVNode as he, normalizeClass as en, normalizeStyle as Tt, ref as R, unref as W, createBlock as Ge, toDisplayString as Xn, withDirectives as ft, withKeys as Hr, withModifiers as jr, vModelText as Wr, getCurrentInstance as Lt, createVNode as ct, readonly as tn, watch as we, onMounted as Ke, onBeforeUnmount as Be, reactive as Us, onBeforeMount as fr, inject as te, onActivated as Gs, onDeactivated as oi, createTextVNode as ht, Fragment as _e, Comment as hr, defineComponent as ee, provide as Se, h as A, Teleport as Xs, toRef as se, nextTick as ii, renderSlot as qs, isVNode as Ys, shallowRef as Zs, watchEffect as pt, mergeProps as gt, Transition as nn, vShow as Js, cloneVNode as Qs, Text as el, renderList as tl, withCtx as xt } from "vue";
2
- import { p as rn } from "./converter-B_CnsyBe.js";
3
- import { _ as mt, g as kt } from "./editor-D_W26AM3.js";
2
+ import { x as rn } from "./converter-D1a6grDV.js";
3
+ import { _ as mt, g as kt } from "./editor-BY7pz5xQ.js";
4
4
  const I0 = (e, t) => {
5
5
  let n = e.replace(/[^0-9.]/g, "");
6
6
  return n = parseFloat(n), isNaN(n) && (n = t), n = parseFloat(n), n;
@@ -157,8 +157,8 @@ const I0 = (e, t) => {
157
157
  minWidth: f,
158
158
  style: b,
159
159
  attributes: v
160
- } = r.toolbarItem, u = R(r.defaultLabel), $ = R(null), F = () => {
161
- m && ($.value?.focus(), $.value?.select()), n("buttonClick");
160
+ } = r.toolbarItem, u = R(r.defaultLabel), C = R(null), F = () => {
161
+ m && (C.value?.focus(), C.value?.select()), n("buttonClick");
162
162
  }, y = () => {
163
163
  n("textSubmit", u.value), u.value = "";
164
164
  }, E = _(() => b.value ? b.value : {
@@ -195,7 +195,7 @@ const I0 = (e, t) => {
195
195
  id: "inlineTextInput-" + W(o),
196
196
  autoccomplete: "off",
197
197
  ref_key: "inlineInput",
198
- ref: $
198
+ ref: C
199
199
  }, null, 40, Zl)), [
200
200
  [Wr, u.value]
201
201
  ]) : ft((q(), ie("input", {
@@ -208,7 +208,7 @@ const I0 = (e, t) => {
208
208
  id: "inlineTextInput-" + W(o),
209
209
  autoccomplete: "off",
210
210
  ref_key: "inlineInput",
211
- ref: $
211
+ ref: C
212
212
  }, null, 40, Jl)), [
213
213
  [Wr, u.value]
214
214
  ])
@@ -299,8 +299,8 @@ function ca(e) {
299
299
  after(u) {
300
300
  u.bem.b = b, u.bem.els = v;
301
301
  },
302
- $({ context: u, props: $ }) {
303
- return f = typeof f == "string" ? f : f({ context: u, props: $ }), u.bem.b = f, `${$?.bPrefix || t}${u.bem.b}`;
302
+ $({ context: u, props: C }) {
303
+ return f = typeof f == "string" ? f : f({ context: u, props: C }), u.bem.b = f, `${C?.bPrefix || t}${u.bem.b}`;
304
304
  }
305
305
  };
306
306
  }
@@ -314,7 +314,7 @@ function ca(e) {
314
314
  v.bem.els = b;
315
315
  },
316
316
  $({ context: v, props: u }) {
317
- return f = typeof f == "string" ? f : f({ context: v, props: u }), v.bem.els = f.split(",").map(($) => $.trim()), v.bem.els.map(($) => `${u?.bPrefix || t}${v.bem.b}${n}${$}`).join(", ");
317
+ return f = typeof f == "string" ? f : f({ context: v, props: u }), v.bem.els = f.split(",").map((C) => C.trim()), v.bem.els.map((C) => `${u?.bPrefix || t}${v.bem.b}${n}${C}`).join(", ");
318
318
  }
319
319
  };
320
320
  }
@@ -323,16 +323,16 @@ function ca(e) {
323
323
  $({ context: b, props: v }) {
324
324
  f = typeof f == "string" ? f : f({ context: b, props: v });
325
325
  const u = f.split(",").map((y) => y.trim());
326
- function $(y) {
326
+ function C(y) {
327
327
  return u.map((E) => `&${v?.bPrefix || t}${b.bem.b}${y !== void 0 ? `${n}${y}` : ""}${r}${E}`).join(", ");
328
328
  }
329
329
  const F = b.bem.els;
330
330
  if (F !== null) {
331
331
  if (rn.env.NODE_ENV !== "production" && F.length >= 2)
332
332
  throw Error(`[css-render/plugin-bem]: m(${f}) is invalid, using modifier inside multiple elements is not allowed`);
333
- return $(F[0]);
333
+ return C(F[0]);
334
334
  } else
335
- return $();
335
+ return C();
336
336
  }
337
337
  };
338
338
  }
@@ -1152,7 +1152,7 @@ function Qa() {
1152
1152
  function u(g) {
1153
1153
  return h[g] === void 0 && (h[g] = /* @__PURE__ */ new Set(), window.addEventListener(g, b)), h[g];
1154
1154
  }
1155
- function $(g, w) {
1155
+ function C(g, w) {
1156
1156
  let z = g.get(w);
1157
1157
  return z === void 0 && g.set(w, z = /* @__PURE__ */ new Set()), z;
1158
1158
  }
@@ -1175,7 +1175,7 @@ function Qa() {
1175
1175
  L(g, w, N, S), z(P);
1176
1176
  } : N = z, Za(g, w, N, S))
1177
1177
  return;
1178
- const k = S === !0 || typeof S == "object" && S.capture === !0 ? "capture" : "bubble", O = v(k, g), x = $(O, w);
1178
+ const k = S === !0 || typeof S == "object" && S.capture === !0 ? "capture" : "bubble", O = v(k, g), x = C(O, w);
1179
1179
  if (x.has(N) || x.add(N), w === window) {
1180
1180
  const P = u(g);
1181
1181
  P.has(N) || P.add(N);
@@ -1184,7 +1184,7 @@ function Qa() {
1184
1184
  function L(g, w, z, S) {
1185
1185
  if (Ja(g, w, z, S))
1186
1186
  return;
1187
- const M = S === !0 || typeof S == "object" && S.capture === !0, k = M ? "capture" : "bubble", O = v(k, g), x = $(O, w);
1187
+ const M = S === !0 || typeof S == "object" && S.capture === !0, k = M ? "capture" : "bubble", O = v(k, g), x = C(O, w);
1188
1188
  if (w === window && !F(w, M ? "bubble" : "capture", g, z) && y(g, z)) {
1189
1189
  const T = h[g];
1190
1190
  T.delete(z), T.size === 0 && (window.removeEventListener(g, b), h[g] = void 0);
@@ -1509,8 +1509,8 @@ const $i = ee({
1509
1509
  let u = r.value;
1510
1510
  for (; u = Ci(u), u !== null; )
1511
1511
  i.push(u);
1512
- for (const $ of i)
1513
- oe("scroll", $, h, !0);
1512
+ for (const C of i)
1513
+ oe("scroll", C, h, !0);
1514
1514
  }, l = () => {
1515
1515
  for (const u of i)
1516
1516
  J("scroll", u, h, !0);
@@ -1783,8 +1783,8 @@ function Ac(e, t, n, r, o, i) {
1783
1783
  };
1784
1784
  const d = (m, f, b) => {
1785
1785
  let v = 0, u = 0;
1786
- const $ = n[m] - t[f] - t[m];
1787
- return $ > 0 && r && (b ? u = lo[f] ? $ : -$ : v = lo[f] ? $ : -$), {
1786
+ const C = n[m] - t[f] - t[m];
1787
+ return C > 0 && r && (b ? u = lo[f] ? C : -C : v = lo[f] ? C : -C), {
1788
1788
  left: v,
1789
1789
  top: u
1790
1790
  };
@@ -2062,10 +2062,10 @@ const Bc = Wt([
2062
2062
  return;
2063
2063
  const m = t.targetRef, { x: f, y: b, overlap: v } = e, u = f !== void 0 && b !== void 0 ? pc(f, b) : On(m);
2064
2064
  p.style.setProperty("--v-target-width", `${Math.round(u.width)}px`), p.style.setProperty("--v-target-height", `${Math.round(u.height)}px`);
2065
- const { width: $, minWidth: F, placement: y, internalShift: E, flip: L } = e;
2065
+ const { width: C, minWidth: F, placement: y, internalShift: E, flip: L } = e;
2066
2066
  p.setAttribute("v-placement", y), v ? p.setAttribute("v-overlap", "") : p.removeAttribute("v-overlap");
2067
2067
  const { style: g } = p;
2068
- $ === "target" ? g.width = `${u.width}px` : $ !== void 0 ? g.width = $ : g.width = "", F === "target" ? g.minWidth = `${u.width}px` : F !== void 0 ? g.minWidth = F : g.minWidth = "";
2068
+ C === "target" ? g.width = `${u.width}px` : C !== void 0 ? g.width = C : g.width = "", F === "target" ? g.minWidth = `${u.width}px` : F !== void 0 ? g.minWidth = F : g.minWidth = "";
2069
2069
  const w = On(p), z = On(o.value), { left: S, top: N, placement: M } = Ac(y, u, w, E, L, v), k = Mc(M, v), { left: O, top: x, transform: P } = Tc(M, z, u, N, S, v);
2070
2070
  p.setAttribute("v-placement", M), p.style.setProperty("--v-offset-left", `${Math.round(S)}px`), p.style.setProperty("--v-offset-top", `${Math.round(N)}px`), p.style.transform = `translateX(${O}) translateY(${x}) ${P}`, p.style.setProperty("--v-transform-origin", k), p.style.transformOrigin = k;
2071
2071
  };
@@ -2214,7 +2214,7 @@ var Je = function(e) {
2214
2214
  return Vt.get(e);
2215
2215
  if (Mi(e))
2216
2216
  return Vt.set(e, ho), ho;
2217
- var n = getComputedStyle(e), r = gr(e) && e.ownerSVGElement && e.getBBox(), o = !kc && n.boxSizing === "border-box", i = Rc.test(n.writingMode || ""), s = !r && fo.test(n.overflowY || ""), l = !r && fo.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c = r ? 0 : Ce(n.paddingRight), d = r ? 0 : Ce(n.paddingBottom), h = r ? 0 : Ce(n.paddingLeft), p = r ? 0 : Ce(n.borderTopWidth), m = r ? 0 : Ce(n.borderRightWidth), f = r ? 0 : Ce(n.borderBottomWidth), b = r ? 0 : Ce(n.borderLeftWidth), v = h + c, u = a + d, $ = b + m, F = p + f, y = l ? e.offsetHeight - F - e.clientHeight : 0, E = s ? e.offsetWidth - $ - e.clientWidth : 0, L = o ? v + $ : 0, g = o ? u + F : 0, w = r ? r.width : Ce(n.width) - L - E, z = r ? r.height : Ce(n.height) - g - y, S = w + v + E + $, N = z + u + y + F, M = Je({
2217
+ var n = getComputedStyle(e), r = gr(e) && e.ownerSVGElement && e.getBBox(), o = !kc && n.boxSizing === "border-box", i = Rc.test(n.writingMode || ""), s = !r && fo.test(n.overflowY || ""), l = !r && fo.test(n.overflowX || ""), a = r ? 0 : Ce(n.paddingTop), c = r ? 0 : Ce(n.paddingRight), d = r ? 0 : Ce(n.paddingBottom), h = r ? 0 : Ce(n.paddingLeft), p = r ? 0 : Ce(n.borderTopWidth), m = r ? 0 : Ce(n.borderRightWidth), f = r ? 0 : Ce(n.borderBottomWidth), b = r ? 0 : Ce(n.borderLeftWidth), v = h + c, u = a + d, C = b + m, F = p + f, y = l ? e.offsetHeight - F - e.clientHeight : 0, E = s ? e.offsetWidth - C - e.clientWidth : 0, L = o ? v + C : 0, g = o ? u + F : 0, w = r ? r.width : Ce(n.width) - L - E, z = r ? r.height : Ce(n.height) - g - y, S = w + v + E + C, N = z + u + y + F, M = Je({
2218
2218
  devicePixelContentBoxSize: dt(Math.round(w * devicePixelRatio), Math.round(z * devicePixelRatio), i),
2219
2219
  borderBoxSize: dt(S, N, i),
2220
2220
  contentBoxSize: dt(w, z, i),
@@ -2580,17 +2580,17 @@ const tu = ee({
2580
2580
  }
2581
2581
  function p() {
2582
2582
  var v;
2583
- if (e.disabled || (document.removeEventListener("focus", c, !0), St = St.filter(($) => $ !== t), l()))
2583
+ if (e.disabled || (document.removeEventListener("focus", c, !0), St = St.filter((C) => C !== t), l()))
2584
2584
  return;
2585
2585
  const { finalFocusTo: u } = e;
2586
2586
  u !== void 0 ? (v = io(u)) === null || v === void 0 || v.focus({ preventScroll: !0 }) : e.returnFocusOnDeactivated && s instanceof HTMLElement && (i = !0, s.focus({ preventScroll: !0 }), i = !1);
2587
2587
  }
2588
2588
  function m(v) {
2589
2589
  if (l() && e.active) {
2590
- const u = n.value, $ = r.value;
2591
- if (u !== null && $ !== null) {
2590
+ const u = n.value, C = r.value;
2591
+ if (u !== null && C !== null) {
2592
2592
  const F = d();
2593
- if (F == null || F === $) {
2593
+ if (F == null || F === C) {
2594
2594
  i = !0, u.focus({ preventScroll: !0 }), i = !1;
2595
2595
  return;
2596
2596
  }
@@ -2784,10 +2784,10 @@ function yn(e, t, n, r) {
2784
2784
  } = r;
2785
2785
  b && (p += `-${Zn(JSON.stringify(b))}`), v && (p += `-${Zn(JSON.stringify(v))}`), l.value = p, c = () => {
2786
2786
  const u = n.value;
2787
- let $ = "";
2787
+ let C = "";
2788
2788
  for (const F in u)
2789
- $ += `${F}: ${u[F]};`;
2790
- H(`.${p}`, $).mount({
2789
+ C += `${F}: ${u[F]};`;
2790
+ H(`.${p}`, C).mount({
2791
2791
  id: p,
2792
2792
  ssr: a,
2793
2793
  parent: s
@@ -3437,9 +3437,9 @@ function es(e, t, n, r, o, i) {
3437
3437
  break;
3438
3438
  }
3439
3439
  if (m) {
3440
- if (!s2(t, function(u, $) {
3441
- if (!l2(m, $) && (f === u || o(f, u, n, r, i)))
3442
- return m.push($);
3440
+ if (!s2(t, function(u, C) {
3441
+ if (!l2(m, C) && (f === u || o(f, u, n, r, i)))
3442
+ return m.push(C);
3443
3443
  })) {
3444
3444
  p = !1;
3445
3445
  break;
@@ -3516,10 +3516,10 @@ function M2(e, t, n, r, o, i) {
3516
3516
  i.set(e, t), i.set(t, e);
3517
3517
  for (var v = s; ++h < a; ) {
3518
3518
  p = l[h];
3519
- var u = e[p], $ = t[p];
3519
+ var u = e[p], C = t[p];
3520
3520
  if (r)
3521
- var F = s ? r($, u, p, t, e, i) : r(u, $, p, e, t, i);
3522
- if (!(F === void 0 ? u === $ || o(u, $, n, r, i) : F)) {
3521
+ var F = s ? r(C, u, p, t, e, i) : r(u, C, p, e, t, i);
3522
+ if (!(F === void 0 ? u === C || o(u, C, n, r, i) : F)) {
3523
3523
  b = !1;
3524
3524
  break;
3525
3525
  }
@@ -3829,7 +3829,7 @@ function pe(e, t, n, r, o, i) {
3829
3829
  } = m, {
3830
3830
  common: u = void 0,
3831
3831
  [e]: {
3832
- common: $ = void 0,
3832
+ common: C = void 0,
3833
3833
  self: F = void 0,
3834
3834
  peers: y = {}
3835
3835
  } = {}
@@ -3839,7 +3839,7 @@ function pe(e, t, n, r, o, i) {
3839
3839
  } = l?.mergedThemeOverridesRef.value || {}, {
3840
3840
  common: g,
3841
3841
  peers: w = {}
3842
- } = L, z = qt({}, d || $ || u || r.common, E, g, b), S = qt(
3842
+ } = L, z = qt({}, d || C || u || r.common, E, g, b), S = qt(
3843
3843
  // {}, executed every time, no need for empty obj
3844
3844
  (c = h || F || r.self) === null || c === void 0 ? void 0 : c(z),
3845
3845
  f,
@@ -4190,29 +4190,29 @@ const ph = {
4190
4190
  mergedClsPrefixRef: t,
4191
4191
  inlineThemeDisabled: n,
4192
4192
  mergedRtlRef: r
4193
- } = bt(e), o = rh("Scrollbar", r, t), i = R(null), s = R(null), l = R(null), a = R(null), c = R(null), d = R(null), h = R(null), p = R(null), m = R(null), f = R(null), b = R(null), v = R(0), u = R(0), $ = R(!1), F = R(!1);
4193
+ } = bt(e), o = rh("Scrollbar", r, t), i = R(null), s = R(null), l = R(null), a = R(null), c = R(null), d = R(null), h = R(null), p = R(null), m = R(null), f = R(null), b = R(null), v = R(0), u = R(0), C = R(!1), F = R(!1);
4194
4194
  let y = !1, E = !1, L, g, w = 0, z = 0, S = 0, N = 0;
4195
4195
  const M = lc(), k = pe("Scrollbar", "-scrollbar", vh, ph, e, t), O = _(() => {
4196
4196
  const {
4197
- value: C
4197
+ value: $
4198
4198
  } = p, {
4199
4199
  value: B
4200
4200
  } = d, {
4201
4201
  value: D
4202
4202
  } = f;
4203
- return C === null || B === null || D === null ? 0 : Math.min(C, D * C / B + Jr(k.value.self.width) * 1.5);
4203
+ return $ === null || B === null || D === null ? 0 : Math.min($, D * $ / B + Jr(k.value.self.width) * 1.5);
4204
4204
  }), x = _(() => `${O.value}px`), P = _(() => {
4205
4205
  const {
4206
- value: C
4206
+ value: $
4207
4207
  } = m, {
4208
4208
  value: B
4209
4209
  } = h, {
4210
4210
  value: D
4211
4211
  } = b;
4212
- return C === null || B === null || D === null ? 0 : D * C / B + Jr(k.value.self.height) * 1.5;
4212
+ return $ === null || B === null || D === null ? 0 : D * $ / B + Jr(k.value.self.height) * 1.5;
4213
4213
  }), T = _(() => `${P.value}px`), j = _(() => {
4214
4214
  const {
4215
- value: C
4215
+ value: $
4216
4216
  } = p, {
4217
4217
  value: B
4218
4218
  } = v, {
@@ -4220,15 +4220,15 @@ const ph = {
4220
4220
  } = d, {
4221
4221
  value: G
4222
4222
  } = f;
4223
- if (C === null || D === null || G === null)
4223
+ if ($ === null || D === null || G === null)
4224
4224
  return 0;
4225
4225
  {
4226
- const ne = D - C;
4226
+ const ne = D - $;
4227
4227
  return ne ? B / ne * (G - O.value) : 0;
4228
4228
  }
4229
4229
  }), V = _(() => `${j.value}px`), U = _(() => {
4230
4230
  const {
4231
- value: C
4231
+ value: $
4232
4232
  } = m, {
4233
4233
  value: B
4234
4234
  } = u, {
@@ -4236,50 +4236,50 @@ const ph = {
4236
4236
  } = h, {
4237
4237
  value: G
4238
4238
  } = b;
4239
- if (C === null || D === null || G === null)
4239
+ if ($ === null || D === null || G === null)
4240
4240
  return 0;
4241
4241
  {
4242
- const ne = D - C;
4242
+ const ne = D - $;
4243
4243
  return ne ? B / ne * (G - P.value) : 0;
4244
4244
  }
4245
4245
  }), ue = _(() => `${U.value}px`), ge = _(() => {
4246
4246
  const {
4247
- value: C
4247
+ value: $
4248
4248
  } = p, {
4249
4249
  value: B
4250
4250
  } = d;
4251
- return C !== null && B !== null && B > C;
4251
+ return $ !== null && B !== null && B > $;
4252
4252
  }), Rt = _(() => {
4253
4253
  const {
4254
- value: C
4254
+ value: $
4255
4255
  } = m, {
4256
4256
  value: B
4257
4257
  } = h;
4258
- return C !== null && B !== null && B > C;
4258
+ return $ !== null && B !== null && B > $;
4259
4259
  }), En = _(() => {
4260
4260
  const {
4261
- trigger: C
4261
+ trigger: $
4262
4262
  } = e;
4263
- return C === "none" || $.value;
4263
+ return $ === "none" || C.value;
4264
4264
  }), An = _(() => {
4265
4265
  const {
4266
- trigger: C
4266
+ trigger: $
4267
4267
  } = e;
4268
- return C === "none" || F.value;
4268
+ return $ === "none" || F.value;
4269
4269
  }), Ae = _(() => {
4270
4270
  const {
4271
- container: C
4271
+ container: $
4272
4272
  } = e;
4273
- return C ? C() : s.value;
4273
+ return $ ? $() : s.value;
4274
4274
  }), Y = _(() => {
4275
4275
  const {
4276
- content: C
4276
+ content: $
4277
4277
  } = e;
4278
- return C ? C() : l.value;
4279
- }), Ir = (C, B) => {
4278
+ return $ ? $() : l.value;
4279
+ }), Ir = ($, B) => {
4280
4280
  if (!e.scrollable) return;
4281
- if (typeof C == "number") {
4282
- ot(C, B ?? 0, 0, !1, "auto");
4281
+ if (typeof $ == "number") {
4282
+ ot($, B ?? 0, 0, !1, "auto");
4283
4283
  return;
4284
4284
  }
4285
4285
  const {
@@ -4291,7 +4291,7 @@ const ph = {
4291
4291
  behavior: Z,
4292
4292
  el: me,
4293
4293
  debounce: Le = !0
4294
- } = C;
4294
+ } = $;
4295
4295
  (D !== void 0 || G !== void 0) && ot(D ?? 0, G ?? 0, 0, !1, Z), me !== void 0 ? ot(0, me.offsetTop, me.offsetHeight, Le, Z) : ne !== void 0 && de !== void 0 ? ot(0, ne * de, de, Le, Z) : xe === "bottom" ? ot(0, Number.MAX_SAFE_INTEGER, 0, !1, Z) : xe === "top" && ot(0, 0, 0, !1, Z);
4296
4296
  }, Or = hc(() => {
4297
4297
  e.container || Ir({
@@ -4300,20 +4300,20 @@ const ph = {
4300
4300
  });
4301
4301
  }), gs = () => {
4302
4302
  Or.isDeactivated || Ue();
4303
- }, ms = (C) => {
4303
+ }, ms = ($) => {
4304
4304
  if (Or.isDeactivated) return;
4305
4305
  const {
4306
4306
  onResize: B
4307
4307
  } = e;
4308
- B && B(C), Ue();
4309
- }, bs = (C, B) => {
4308
+ B && B($), Ue();
4309
+ }, bs = ($, B) => {
4310
4310
  if (!e.scrollable) return;
4311
4311
  const {
4312
4312
  value: D
4313
4313
  } = Ae;
4314
- D && (typeof C == "object" ? D.scrollBy(C) : D.scrollBy(C, B || 0));
4314
+ D && (typeof $ == "object" ? D.scrollBy($) : D.scrollBy($, B || 0));
4315
4315
  };
4316
- function ot(C, B, D, G, ne) {
4316
+ function ot($, B, D, G, ne) {
4317
4317
  const {
4318
4318
  value: de
4319
4319
  } = Ae;
@@ -4325,7 +4325,7 @@ const ph = {
4325
4325
  } = de;
4326
4326
  if (B > xe) {
4327
4327
  B + D <= xe + Z || de.scrollTo({
4328
- left: C,
4328
+ left: $,
4329
4329
  top: B + D - Z,
4330
4330
  behavior: ne
4331
4331
  });
@@ -4333,7 +4333,7 @@ const ph = {
4333
4333
  }
4334
4334
  }
4335
4335
  de.scrollTo({
4336
- left: C,
4336
+ left: $,
4337
4337
  top: B,
4338
4338
  behavior: ne
4339
4339
  });
@@ -4355,32 +4355,32 @@ const ph = {
4355
4355
  }
4356
4356
  function Ss() {
4357
4357
  L !== void 0 && window.clearTimeout(L), L = window.setTimeout(() => {
4358
- $.value = !1;
4358
+ C.value = !1;
4359
4359
  }, e.duration);
4360
4360
  }
4361
4361
  function Cs() {
4362
- L !== void 0 && window.clearTimeout(L), $.value = !0;
4362
+ L !== void 0 && window.clearTimeout(L), C.value = !0;
4363
4363
  }
4364
4364
  function $s() {
4365
4365
  g !== void 0 && window.clearTimeout(g), F.value = !0;
4366
4366
  }
4367
- function zs(C) {
4367
+ function zs($) {
4368
4368
  const {
4369
4369
  onScroll: B
4370
4370
  } = e;
4371
- B && B(C), Lr();
4371
+ B && B($), Lr();
4372
4372
  }
4373
4373
  function Lr() {
4374
4374
  const {
4375
- value: C
4375
+ value: $
4376
4376
  } = Ae;
4377
- C && (v.value = C.scrollTop, u.value = C.scrollLeft * (o?.value ? -1 : 1));
4377
+ $ && (v.value = $.scrollTop, u.value = $.scrollLeft * (o?.value ? -1 : 1));
4378
4378
  }
4379
4379
  function Fs() {
4380
4380
  const {
4381
- value: C
4381
+ value: $
4382
4382
  } = Y;
4383
- C && (d.value = C.offsetHeight, h.value = C.offsetWidth);
4383
+ $ && (d.value = $.offsetHeight, h.value = $.offsetWidth);
4384
4384
  const {
4385
4385
  value: B
4386
4386
  } = Ae;
@@ -4394,9 +4394,9 @@ const ph = {
4394
4394
  }
4395
4395
  function Pr() {
4396
4396
  const {
4397
- value: C
4397
+ value: $
4398
4398
  } = Ae;
4399
- C && (v.value = C.scrollTop, u.value = C.scrollLeft * (o?.value ? -1 : 1), p.value = C.offsetHeight, m.value = C.offsetWidth, d.value = C.scrollHeight, h.value = C.scrollWidth);
4399
+ $ && (v.value = $.scrollTop, u.value = $.scrollLeft * (o?.value ? -1 : 1), p.value = $.offsetHeight, m.value = $.offsetWidth, d.value = $.scrollHeight, h.value = $.scrollWidth);
4400
4400
  const {
4401
4401
  value: B
4402
4402
  } = c, {
@@ -4407,14 +4407,14 @@ const ph = {
4407
4407
  function Ue() {
4408
4408
  e.scrollable && (e.useUnifiedContainer ? Pr() : (Fs(), Lr()));
4409
4409
  }
4410
- function Rr(C) {
4410
+ function Rr($) {
4411
4411
  var B;
4412
- return !(!((B = i.value) === null || B === void 0) && B.contains(sn(C)));
4412
+ return !(!((B = i.value) === null || B === void 0) && B.contains(sn($)));
4413
4413
  }
4414
- function Es(C) {
4415
- C.preventDefault(), C.stopPropagation(), E = !0, oe("mousemove", window, kr, !0), oe("mouseup", window, Dr, !0), z = u.value, S = o?.value ? window.innerWidth - C.clientX : C.clientX;
4414
+ function Es($) {
4415
+ $.preventDefault(), $.stopPropagation(), E = !0, oe("mousemove", window, kr, !0), oe("mouseup", window, Dr, !0), z = u.value, S = o?.value ? window.innerWidth - $.clientX : $.clientX;
4416
4416
  }
4417
- function kr(C) {
4417
+ function kr($) {
4418
4418
  if (!E) return;
4419
4419
  L !== void 0 && window.clearTimeout(L), g !== void 0 && window.clearTimeout(g);
4420
4420
  const {
@@ -4425,7 +4425,7 @@ const ph = {
4425
4425
  value: G
4426
4426
  } = P;
4427
4427
  if (B === null || D === null) return;
4428
- const de = (o?.value ? window.innerWidth - C.clientX - S : C.clientX - S) * (D - B) / (B - G), xe = D - B;
4428
+ const de = (o?.value ? window.innerWidth - $.clientX - S : $.clientX - S) * (D - B) / (B - G), xe = D - B;
4429
4429
  let Z = z + de;
4430
4430
  Z = Math.min(xe, Z), Z = Math.max(Z, 0);
4431
4431
  const {
@@ -4439,13 +4439,13 @@ const ph = {
4439
4439
  Le && Le(Z);
4440
4440
  }
4441
4441
  }
4442
- function Dr(C) {
4443
- C.preventDefault(), C.stopPropagation(), J("mousemove", window, kr, !0), J("mouseup", window, Dr, !0), E = !1, Ue(), Rr(C) && Mn();
4442
+ function Dr($) {
4443
+ $.preventDefault(), $.stopPropagation(), J("mousemove", window, kr, !0), J("mouseup", window, Dr, !0), E = !1, Ue(), Rr($) && Mn();
4444
4444
  }
4445
- function As(C) {
4446
- C.preventDefault(), C.stopPropagation(), y = !0, oe("mousemove", window, Tn, !0), oe("mouseup", window, Bn, !0), w = v.value, N = C.clientY;
4445
+ function As($) {
4446
+ $.preventDefault(), $.stopPropagation(), y = !0, oe("mousemove", window, Tn, !0), oe("mouseup", window, Bn, !0), w = v.value, N = $.clientY;
4447
4447
  }
4448
- function Tn(C) {
4448
+ function Tn($) {
4449
4449
  if (!y) return;
4450
4450
  L !== void 0 && window.clearTimeout(L), g !== void 0 && window.clearTimeout(g);
4451
4451
  const {
@@ -4456,7 +4456,7 @@ const ph = {
4456
4456
  value: G
4457
4457
  } = O;
4458
4458
  if (B === null || D === null) return;
4459
- const de = (C.clientY - N) * (D - B) / (B - G), xe = D - B;
4459
+ const de = ($.clientY - N) * (D - B) / (B - G), xe = D - B;
4460
4460
  let Z = w + de;
4461
4461
  Z = Math.min(xe, Z), Z = Math.max(Z, 0);
4462
4462
  const {
@@ -4464,12 +4464,12 @@ const ph = {
4464
4464
  } = Ae;
4465
4465
  me && (me.scrollTop = Z);
4466
4466
  }
4467
- function Bn(C) {
4468
- C.preventDefault(), C.stopPropagation(), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0), y = !1, Ue(), Rr(C) && Mn();
4467
+ function Bn($) {
4468
+ $.preventDefault(), $.stopPropagation(), J("mousemove", window, Tn, !0), J("mouseup", window, Bn, !0), y = !1, Ue(), Rr($) && Mn();
4469
4469
  }
4470
4470
  pt(() => {
4471
4471
  const {
4472
- value: C
4472
+ value: $
4473
4473
  } = Rt, {
4474
4474
  value: B
4475
4475
  } = ge, {
@@ -4479,7 +4479,7 @@ const ph = {
4479
4479
  } = c, {
4480
4480
  value: ne
4481
4481
  } = a;
4482
- G && (C ? G.classList.remove(`${D}-scrollbar-rail--disabled`) : G.classList.add(`${D}-scrollbar-rail--disabled`)), ne && (B ? ne.classList.remove(`${D}-scrollbar-rail--disabled`) : ne.classList.add(`${D}-scrollbar-rail--disabled`));
4482
+ G && ($ ? G.classList.remove(`${D}-scrollbar-rail--disabled`) : G.classList.add(`${D}-scrollbar-rail--disabled`)), ne && (B ? ne.classList.remove(`${D}-scrollbar-rail--disabled`) : ne.classList.add(`${D}-scrollbar-rail--disabled`));
4483
4483
  }), Ke(() => {
4484
4484
  e.container || Ue();
4485
4485
  }), Be(() => {
@@ -4488,7 +4488,7 @@ const ph = {
4488
4488
  const Nr = _(() => {
4489
4489
  const {
4490
4490
  common: {
4491
- cubicBezierEaseInOut: C
4491
+ cubicBezierEaseInOut: $
4492
4492
  },
4493
4493
  self: {
4494
4494
  color: B,
@@ -4524,7 +4524,7 @@ const ph = {
4524
4524
  left: Vs
4525
4525
  } = zt(o?.value ? So(Le) : Le);
4526
4526
  return {
4527
- "--n-scrollbar-bezier": C,
4527
+ "--n-scrollbar-bezier": $,
4528
4528
  "--n-scrollbar-color": B,
4529
4529
  "--n-scrollbar-color-hover": D,
4530
4530
  "--n-scrollbar-border-radius": de,
@@ -4786,7 +4786,7 @@ function Un(e, t) {
4786
4786
  o !== void 0 ? h = Ih(o, n, t, c) : r !== void 0 ? h = Bh(r, n, t, c) : h = vn(n, t, c, !1);
4787
4787
  const p = a === "parent", m = a === "child" || l, f = h, b = /* @__PURE__ */ new Set(), v = Math.max.apply(null, Array.from(d.keys()));
4788
4788
  for (let u = v; u >= 0; u -= 1) {
4789
- const $ = u === 0, F = d.get(u);
4789
+ const C = u === 0, F = d.get(u);
4790
4790
  for (const y of F) {
4791
4791
  if (y.isLeaf)
4792
4792
  continue;
@@ -4810,7 +4810,7 @@ function Un(e, t) {
4810
4810
  }
4811
4811
  g && !z ? (p && y.children.forEach((S) => {
4812
4812
  !S.disabled && f.has(S.key) && f.delete(S.key);
4813
- }), f.add(E)) : w && b.add(E), $ && m && f.has(E) && f.delete(E);
4813
+ }), f.add(E)) : w && b.add(E), C && m && f.has(E) && f.delete(E);
4814
4814
  }
4815
4815
  }
4816
4816
  return {
@@ -5017,7 +5017,7 @@ function jh(e, t = {}) {
5017
5017
  const E = f(y);
5018
5018
  return E ? E.getParent() : null;
5019
5019
  }
5020
- function $(y) {
5020
+ function C(y) {
5021
5021
  const E = f(y);
5022
5022
  return E ? E.getChild() : null;
5023
5023
  }
@@ -5034,7 +5034,7 @@ function jh(e, t = {}) {
5034
5034
  getPrev: b,
5035
5035
  getNext: v,
5036
5036
  getParent: u,
5037
- getChild: $,
5037
+ getChild: C,
5038
5038
  getFirstAvailableNode() {
5039
5039
  return Lh(p);
5040
5040
  },
@@ -5439,7 +5439,7 @@ const Gh = ee({
5439
5439
  function u(g) {
5440
5440
  e.trigger === "hover" && e.keepAliveOnHover && e.show && a.handleMouseEnter(g);
5441
5441
  }
5442
- function $(g) {
5442
+ function C(g) {
5443
5443
  e.trigger === "hover" && e.keepAliveOnHover && a.handleMouseLeave(g);
5444
5444
  }
5445
5445
  function F(g) {
@@ -5468,7 +5468,7 @@ const Gh = ee({
5468
5468
  c,
5469
5469
  f.value,
5470
5470
  u,
5471
- $
5471
+ C
5472
5472
  );
5473
5473
  else {
5474
5474
  const {
@@ -5516,7 +5516,7 @@ const Gh = ee({
5516
5516
  style: f.value,
5517
5517
  onKeydown: a.handleKeydown,
5518
5518
  onMouseenter: u,
5519
- onMouseleave: $
5519
+ onMouseleave: C
5520
5520
  }, n), M ? A(tu, {
5521
5521
  active: e.show,
5522
5522
  autoFocus: !0
@@ -5717,7 +5717,7 @@ const zn = {
5717
5717
  } = p;
5718
5718
  x && (window.clearTimeout(x), p.value = null);
5719
5719
  }
5720
- function $() {
5720
+ function C() {
5721
5721
  const {
5722
5722
  value: x
5723
5723
  } = m;
@@ -5740,7 +5740,7 @@ const zn = {
5740
5740
  function E() {
5741
5741
  const x = l();
5742
5742
  if (e.trigger === "hover" && !x) {
5743
- if ($(), p.value !== null || a()) return;
5743
+ if (C(), p.value !== null || a()) return;
5744
5744
  const P = () => {
5745
5745
  b(!0), p.value = null;
5746
5746
  }, {
@@ -5766,17 +5766,17 @@ const zn = {
5766
5766
  }
5767
5767
  function w(x) {
5768
5768
  var P;
5769
- a() && (e.trigger === "click" && (u(), $(), b(!1)), (P = e.onClickoutside) === null || P === void 0 || P.call(e, x));
5769
+ a() && (e.trigger === "click" && (u(), C(), b(!1)), (P = e.onClickoutside) === null || P === void 0 || P.call(e, x));
5770
5770
  }
5771
5771
  function z() {
5772
5772
  if (e.trigger === "click" && !l()) {
5773
- u(), $();
5773
+ u(), C();
5774
5774
  const x = !a();
5775
5775
  b(x);
5776
5776
  }
5777
5777
  }
5778
5778
  function S(x) {
5779
- e.internalTrapFocus && x.key === "Escape" && (u(), $(), b(!1));
5779
+ e.internalTrapFocus && x.key === "Escape" && (u(), C(), b(!1));
5780
5780
  }
5781
5781
  function N(x) {
5782
5782
  o.value = x;
@@ -6304,7 +6304,7 @@ const ps = ee({
6304
6304
  renderOptionRef: m,
6305
6305
  nodePropsRef: f,
6306
6306
  menuPropsRef: b
6307
- } = t, v = te(ri, null), u = te(_r), $ = te(mn), F = _(() => e.tmNode.rawNode), y = _(() => {
6307
+ } = t, v = te(ri, null), u = te(_r), C = te(mn), F = _(() => e.tmNode.rawNode), y = _(() => {
6308
6308
  const {
6309
6309
  value: T
6310
6310
  } = p;
@@ -6380,7 +6380,7 @@ const ps = ee({
6380
6380
  siblingHasIcon: u.showIconRef,
6381
6381
  siblingHasSubmenu: u.hasSubmenuRef,
6382
6382
  menuProps: b,
6383
- popoverBody: $,
6383
+ popoverBody: C,
6384
6384
  animated: l,
6385
6385
  mergedShowSubmenu: _(() => w.value && !z.value),
6386
6386
  rawNode: F,
@@ -6438,8 +6438,8 @@ const ps = ee({
6438
6438
  } = this;
6439
6439
  let f = null;
6440
6440
  if (o) {
6441
- const $ = (e = this.menuProps) === null || e === void 0 ? void 0 : e.call(this, r, r.children);
6442
- f = A(vs, Object.assign({}, $, {
6441
+ const C = (e = this.menuProps) === null || e === void 0 ? void 0 : e.call(this, r, r.children);
6442
+ f = A(vs, Object.assign({}, C, {
6443
6443
  clsPrefix: i,
6444
6444
  scrollable: this.scrollable,
6445
6445
  tmNodes: this.tmNode.children,
@@ -6867,7 +6867,7 @@ const ps = ee({
6867
6867
  prevent: !0,
6868
6868
  handler: g
6869
6869
  },
6870
- Escape: $
6870
+ Escape: C
6871
6871
  }
6872
6872
  }, h);
6873
6873
  const {
@@ -6910,7 +6910,7 @@ const ps = ee({
6910
6910
  function u() {
6911
6911
  i.value = null, s.value = null, l.value = null;
6912
6912
  }
6913
- function $() {
6913
+ function C() {
6914
6914
  v(!1);
6915
6915
  }
6916
6916
  function F() {
@@ -7157,14 +7157,14 @@ const x0 = {
7157
7157
  width: b,
7158
7158
  height: v,
7159
7159
  size: u,
7160
- text: $,
7160
+ text: C,
7161
7161
  animated: F
7162
7162
  } = e;
7163
7163
  u !== void 0 && (h = l[Re("height", u)]);
7164
7164
  const y = p ? (r = b ?? v) !== null && r !== void 0 ? r : h : b, E = (o = p ? b ?? v : v) !== null && o !== void 0 ? o : h;
7165
7165
  return {
7166
- display: $ ? "inline-block" : "",
7167
- verticalAlign: $ ? "-0.125em" : "",
7166
+ display: C ? "inline-block" : "",
7167
+ verticalAlign: C ? "-0.125em" : "",
7168
7168
  borderRadius: p ? "50%" : f ? "4096px" : m ? "" : d,
7169
7169
  width: typeof y == "number" ? Qr(y) : y,
7170
7170
  height: typeof E == "number" ? Qr(E) : E,
@@ -7221,20 +7221,20 @@ const x0 = {
7221
7221
  flexGrow: i ? 0 : 1,
7222
7222
  justifyContent: "center"
7223
7223
  }
7224
- }, l = _(() => s[r.position] || s.default), a = (u) => u.type === "button", c = (u) => u.type === "dropdown", d = (u) => u.type === "separator", h = (u) => u.type === "overflow", p = (u, $ = null) => {
7225
- o.value = u, o.value.expand = !0, !u.disabled.value && n("command", { item: u, argument: $ });
7226
- }, m = (u, $) => {
7227
- u.disabled.value || (o.value = null, n("command", { item: u, argument: $ }));
7224
+ }, l = _(() => s[r.position] || s.default), a = (u) => u.type === "button", c = (u) => u.type === "dropdown", d = (u) => u.type === "separator", h = (u) => u.type === "overflow", p = (u, C = null) => {
7225
+ o.value = u, o.value.expand = !0, !u.disabled.value && n("command", { item: u, argument: C });
7226
+ }, m = (u, C) => {
7227
+ u.disabled.value || (o.value = null, n("command", { item: u, argument: C }));
7228
7228
  }, f = () => {
7229
7229
  o.value && (o.value.expand = !1, o.value = null);
7230
- }, b = (u, $) => {
7230
+ }, b = (u, C) => {
7231
7231
  f();
7232
- const F = u.dropdownValueKey.value ? $[u.dropdownValueKey.value] : $.label;
7233
- n("command", { item: u, argument: F });
7232
+ const F = u.dropdownValueKey.value ? C[u.dropdownValueKey.value] : C.label;
7233
+ n("command", { item: u, argument: F, option: C });
7234
7234
  }, v = (u) => {
7235
7235
  f();
7236
7236
  };
7237
- return (u, $) => (q(), ie("div", {
7237
+ return (u, C) => (q(), ie("div", {
7238
7238
  style: Tt(l.value),
7239
7239
  class: "button-group"
7240
7240
  }, [
@@ -7311,7 +7311,7 @@ const x0 = {
7311
7311
  ], 2))), 128))
7312
7312
  ], 4));
7313
7313
  }
7314
- }, Qt = /* @__PURE__ */ mt(E0, [["__scopeId", "data-v-7a2db351"]]), A0 = {
7314
+ }, Qt = /* @__PURE__ */ mt(E0, [["__scopeId", "data-v-01872c2d"]]), A0 = {
7315
7315
  __name: "Toolbar",
7316
7316
  emits: ["command", "toggle", "select"],
7317
7317
  setup(e, { emit: t }) {
@@ -7331,8 +7331,8 @@ const x0 = {
7331
7331
  }
7332
7332
  }, d = nl(async () => {
7333
7333
  await n.$toolbar.onToolbarResize(), r.value += 1;
7334
- }, 300), h = ({ item: p, argument: m }) => {
7335
- n.$toolbar.emitCommand({ item: p, argument: m });
7334
+ }, 300), h = ({ item: p, argument: m, option: f }) => {
7335
+ n.$toolbar.emitCommand({ item: p, argument: m, option: f });
7336
7336
  };
7337
7337
  return (p, m) => (q(), ie("div", {
7338
7338
  class: "superdoc-toolbar",
@@ -7360,7 +7360,7 @@ const x0 = {
7360
7360
  }, null, 8, ["toolbar-items"])) : he("", !0)
7361
7361
  ]));
7362
7362
  }
7363
- }, P0 = /* @__PURE__ */ mt(A0, [["__scopeId", "data-v-ac3df73e"]]);
7363
+ }, P0 = /* @__PURE__ */ mt(A0, [["__scopeId", "data-v-abd0fb95"]]);
7364
7364
  export {
7365
7365
  L0 as N,
7366
7366
  P0 as T,