@stll/folio-vue 0.9.0 → 0.10.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 (39) hide show
  1. package/dist/{ListButtons-C1rU_Y1e.cjs → ListButtons-BcB7qvzQ.cjs} +2 -2
  2. package/dist/{ListButtons-DMnOM2pN.js → ListButtons-rpVlLZJ8.js} +388 -384
  3. package/dist/SplitCellDialog-B_TOoiMw.cjs +15 -0
  4. package/dist/{WatermarkDialog-Cf9ISDvv.js → SplitCellDialog-DRQuZsA3.js} +907 -907
  5. package/dist/components/AutocompleteCaretOverlay.types.d.ts +18 -0
  6. package/dist/components/DocxEditor/pagedEditorRef.d.ts +14 -0
  7. package/dist/components/DocxEditor/types.d.ts +27 -0
  8. package/dist/composables/index.d.ts +1 -0
  9. package/dist/composables/useColorMode.d.ts +17 -4
  10. package/dist/composables/useContextMenus.d.ts +3 -0
  11. package/dist/composables/useDocxEditor.d.ts +21 -0
  12. package/dist/composables/useDocxEditorRefApi.d.ts +13 -0
  13. package/dist/composables/useFontLifecycle.d.ts +21 -0
  14. package/dist/composables/useKeyboardShortcuts.d.ts +0 -1
  15. package/dist/composables/usePagesPointer.d.ts +5 -0
  16. package/dist/composables.cjs +2 -2
  17. package/dist/composables.js +75 -75
  18. package/dist/dialogs.cjs +1 -1
  19. package/dist/dialogs.js +2 -2
  20. package/dist/folio-vue.css +1 -1
  21. package/dist/index.cjs +1 -1
  22. package/dist/index.d.ts +4 -1
  23. package/dist/index.js +1719 -1275
  24. package/dist/renderAsync.d.ts +4 -0
  25. package/dist/ui/folio-ui.d.ts +1 -1
  26. package/dist/ui.cjs +1 -1
  27. package/dist/ui.js +10 -10
  28. package/dist/useZoom-DBbzwfMG.cjs +1 -0
  29. package/dist/useZoom-DwDDS7hq.js +749 -0
  30. package/dist/utils/colorMode.d.ts +3 -4
  31. package/dist/utils/embeddedFonts.d.ts +7 -0
  32. package/dist/utils/fontFaces.d.ts +10 -0
  33. package/dist/utils/hostFonts.d.ts +1 -5
  34. package/package.json +1 -1
  35. package/dist/WatermarkDialog-ChJtT7Bs.cjs +0 -15
  36. package/dist/composables/useHostCallbacks.d.ts +0 -24
  37. package/dist/composables/useMenuActions.d.ts +0 -36
  38. package/dist/useZoom-BYEcnpS0.cjs +0 -1
  39. package/dist/useZoom-C0p0o54p.js +0 -656
@@ -1,12 +1,12 @@
1
- import { D as e, F as t, P as n, j as r, y as i } from "./WatermarkDialog-Cf9ISDvv.js";
1
+ import { D as e, F as t, N as n, P as r, y as i } from "./SplitCellDialog-DRQuZsA3.js";
2
2
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as T, toDisplayString as E, toRef as D, unref as O, vModelSelect as k, vModelText as A, watch as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
3
- import { extractSelectionContext as I } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
4
- import { createRenderedDomContext as L } from "@stll/folio-core/render-dom/RenderedDomContext";
5
- import { pixelsToTwips as R, twipsToPixels as z } from "@stll/folio-core/utils/units";
6
- import { DISPLAY_MODES as B } from "@stll/folio-core/managers/EditorModeManager";
7
- import { redoDepth as V, undoDepth as H } from "prosemirror-history";
8
- import { clearFormatting as ee } from "@stll/folio-core/prosemirror/commands/formatting";
9
- import { getTableContext as U } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
3
+ import { getTableContext as I } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
4
+ import { extractSelectionContext as L } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
5
+ import { createRenderedDomContext as R } from "@stll/folio-core/render-dom/RenderedDomContext";
6
+ import { pixelsToTwips as z, twipsToPixels as B } from "@stll/folio-core/utils/units";
7
+ import { DISPLAY_MODES as V } from "@stll/folio-core/managers/EditorModeManager";
8
+ import { redoDepth as H, undoDepth as ee } from "prosemirror-history";
9
+ import { clearFormatting as U } from "@stll/folio-core/prosemirror/commands/formatting";
10
10
  import { resolveSidebarItemPositions as W } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
11
11
  //#region src/components/CommentMarginMarkers.vue?vue&type=script&setup=true&lang.ts
12
12
  var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
@@ -21,7 +21,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
21
21
  },
22
22
  emits: ["marker-click"],
23
23
  setup(e) {
24
- let t = e, r = o(() => {
24
+ let t = e, n = o(() => {
25
25
  if (t.sidebarOpen) return [];
26
26
  let e = t.pagesContainer;
27
27
  if (!e) return [];
@@ -50,19 +50,19 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
50
50
  zIndex: 30,
51
51
  pointerEvents: "none"
52
52
  }));
53
- return (t, o) => r.value.length > 0 ? (b(), l("div", {
53
+ return (t, o) => n.value.length > 0 ? (b(), l("div", {
54
54
  key: 0,
55
55
  class: "docx-comment-margin-markers",
56
56
  style: _(i.value),
57
57
  onMousedown: o[0] ||= F(() => {}, ["stop"])
58
- }, [(b(!0), l(a, null, C(r.value, (r) => (b(), l("button", {
59
- key: r.comment.id,
58
+ }, [(b(!0), l(a, null, C(n.value, (n) => (b(), l("button", {
59
+ key: n.comment.id,
60
60
  class: "docx-comment-margin-markers__btn",
61
- title: r.isResolved ? "Resolved comment" : "Comment",
62
- style: _({ top: r.y * e.zoom + "px" }),
63
- onClick: (e) => t.$emit("marker-click", r.comment.id)
64
- }, [f(n, {
65
- name: r.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
61
+ title: n.isResolved ? "Resolved comment" : "Comment",
62
+ style: _({ top: n.y * e.zoom + "px" }),
63
+ onClick: (e) => t.$emit("marker-click", n.comment.id)
64
+ }, [f(r, {
65
+ name: n.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
66
66
  size: 18
67
67
  }, null, 8, ["name"])], 12, G))), 128))], 36)) : c("", !0);
68
68
  }
@@ -162,7 +162,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
162
162
  },
163
163
  emits: ["action", "insert-table"],
164
164
  setup(e, { emit: t }) {
165
- let { Menu: d } = i(), p = e, m = t, { t: h } = r();
165
+ let { Menu: d } = i(), p = e, m = t, { t: h } = n();
166
166
  function g(e) {
167
167
  return () => m("action", e);
168
168
  }
@@ -240,7 +240,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
240
240
  label: h("toolbar.reportIssue"),
241
241
  onClick: g("reportIssue")
242
242
  }]);
243
- return (t, r) => (b(), l("div", ae, [
243
+ return (t, n) => (b(), l("div", ae, [
244
244
  f(O(d), {
245
245
  label: O(h)("toolbar.file"),
246
246
  items: _.value
@@ -265,7 +265,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
265
265
  onClick: F(() => {
266
266
  m("action", e.action), t();
267
267
  }, ["prevent"])
268
- }, [f(n, {
268
+ }, [f(r, {
269
269
  name: e.icon,
270
270
  size: 18
271
271
  }, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8, se))), 128))])) : c("", !0)]),
@@ -296,14 +296,14 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
296
296
  },
297
297
  emits: ["select"],
298
298
  setup(e, { emit: t }) {
299
- let r = t, { Popover: o } = i(), c = S(!1);
299
+ let n = t, { Popover: o } = i(), c = S(!1);
300
300
  function d(e) {
301
- r("select", e), c.value = !1;
301
+ n("select", e), c.value = !1;
302
302
  }
303
- return (t, r) => (b(), s(O(o), {
303
+ return (t, n) => (b(), s(O(o), {
304
304
  open: c.value,
305
- "onUpdate:open": r[0] ||= (e) => c.value = e,
306
- onClose: r[1] ||= (e) => c.value = !1
305
+ "onUpdate:open": n[0] ||= (e) => c.value = e,
306
+ onClose: n[1] ||= (e) => c.value = !1
307
307
  }, {
308
308
  trigger: M(({ toggle: t }) => [u("button", {
309
309
  type: "button",
@@ -314,10 +314,10 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
314
314
  "aria-expanded": c.value,
315
315
  "aria-haspopup": "true",
316
316
  onClick: F(t, ["prevent"])
317
- }, [f(n, {
317
+ }, [f(r, {
318
318
  name: e.triggerIcon,
319
319
  size: 20
320
- }, null, 8, ["name"]), f(n, {
320
+ }, null, 8, ["name"]), f(r, {
321
321
  name: "arrow_drop_down",
322
322
  size: 14
323
323
  })], 10, ce)]),
@@ -327,7 +327,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
327
327
  class: g(["docx-icon-grid__option", { "docx-icon-grid__option--active": e.activeValue === t.value }]),
328
328
  title: t.label,
329
329
  onClick: F((e) => d(t.value), ["prevent"])
330
- }, [f(n, {
330
+ }, [f(r, {
331
331
  name: t.iconName,
332
332
  size: 18
333
333
  }, null, 8, ["name"])], 10, Z))), 128))])]),
@@ -342,7 +342,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
342
342
  },
343
343
  emits: ["change"],
344
344
  setup(e) {
345
- let t = e, { t: n } = r(), i = [
345
+ let t = e, { t: r } = n(), i = [
346
346
  {
347
347
  value: "inline",
348
348
  labelKey: "imageWrap.inline",
@@ -375,19 +375,19 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
375
375
  }
376
376
  ], a = o(() => i.map((e) => ({
377
377
  value: e.value,
378
- label: n(e.labelKey),
378
+ label: r(e.labelKey),
379
379
  iconName: e.iconName
380
380
  }))), c = o(() => {
381
381
  let e = t.imageContext;
382
382
  return e.displayMode === "float" && e.cssFloat === "left" ? "wrapRight" : e.displayMode === "float" && e.cssFloat === "right" ? "wrapLeft" : e.wrapType;
383
383
  }), l = o(() => a.value.find((e) => e.value === c.value) ?? a.value.at(0)), u = o(() => l.value?.iconName ?? "format_image_left"), d = o(() => l.value?.label ?? "");
384
- return (t, r) => (b(), s(ue, {
384
+ return (t, n) => (b(), s(ue, {
385
385
  options: a.value,
386
386
  "active-value": c.value,
387
387
  "trigger-icon": u.value,
388
- "tooltip-content": O(n)("imageWrap.tooltipPrefix", { label: d.value }),
388
+ "tooltip-content": O(r)("imageWrap.tooltipPrefix", { label: d.value }),
389
389
  disabled: e.disabled,
390
- onSelect: r[0] ||= (e) => t.$emit("change", e)
390
+ onSelect: n[0] ||= (e) => t.$emit("change", e)
391
391
  }, null, 8, [
392
392
  "options",
393
393
  "active-value",
@@ -401,7 +401,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
401
401
  props: { disabled: { type: Boolean } },
402
402
  emits: ["transform"],
403
403
  setup(e) {
404
- let { t } = r(), n = [
404
+ let { t } = n(), r = [
405
405
  {
406
406
  value: "rotateCW",
407
407
  labelKey: "imageTransform.rotateClockwise",
@@ -422,7 +422,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
422
422
  labelKey: "imageTransform.flipVertical",
423
423
  iconName: "swap_vert"
424
424
  }
425
- ], i = o(() => n.map((e) => ({
425
+ ], i = o(() => r.map((e) => ({
426
426
  value: e.value,
427
427
  label: t(e.labelKey),
428
428
  iconName: e.iconName
@@ -447,7 +447,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
447
447
  props: { modelValue: {} },
448
448
  emits: ["update:modelValue"],
449
449
  setup(e, { emit: t }) {
450
- let { t: d } = r(), { Popover: p } = i(), m = e, h = t, _ = {
450
+ let { t: d } = n(), { Popover: p } = i(), m = e, h = t, _ = {
451
451
  value: "editing",
452
452
  labelKey: "editor.editing",
453
453
  icon: "edit_note",
@@ -476,11 +476,11 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
476
476
  }
477
477
  return y(() => {
478
478
  A = window.matchMedia("(max-width: 1400px)"), T.value = A.matches, A.addEventListener("change", j);
479
- }), v(() => A?.removeEventListener("change", j)), (t, r) => (b(), s(O(p), {
479
+ }), v(() => A?.removeEventListener("change", j)), (t, n) => (b(), s(O(p), {
480
480
  open: w.value,
481
481
  placement: "bottom-right",
482
- "onUpdate:open": r[0] ||= (e) => w.value = e,
483
- onClose: r[1] ||= (e) => w.value = !1
482
+ "onUpdate:open": n[0] ||= (e) => w.value = e,
483
+ onClose: n[1] ||= (e) => w.value = !1
484
484
  }, {
485
485
  trigger: M(({ toggle: e }) => [u("button", {
486
486
  type: "button",
@@ -491,12 +491,12 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
491
491
  title: `${O(d)(D.value.labelKey)} (Ctrl+Shift+E)`,
492
492
  onClick: F(e, ["prevent"])
493
493
  }, [
494
- f(n, {
494
+ f(r, {
495
495
  name: D.value.icon,
496
496
  size: 18
497
497
  }, null, 8, ["name"]),
498
498
  T.value ? c("", !0) : (b(), l("span", me, E(O(d)(D.value.labelKey)), 1)),
499
- f(n, {
499
+ f(r, {
500
500
  name: "arrow_drop_down",
501
501
  size: 16
502
502
  })
@@ -507,12 +507,12 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
507
507
  class: "editing-mode__option",
508
508
  onClick: F((e) => k(t.value), ["prevent"])
509
509
  }, [
510
- f(n, {
510
+ f(r, {
511
511
  name: t.icon,
512
512
  size: 20
513
513
  }, null, 8, ["name"]),
514
514
  u("span", _e, [u("span", ve, E(O(d)(t.labelKey)), 1), u("span", ye, E(O(d)(t.descKey)), 1)]),
515
- t.value === e.modelValue ? (b(), s(n, {
515
+ t.value === e.modelValue ? (b(), s(r, {
516
516
  key: 0,
517
517
  name: "check",
518
518
  size: 18,
@@ -539,7 +539,7 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
539
539
  },
540
540
  emits: ["toggle-track-changes", "update:display-mode"],
541
541
  setup(e, { emit: t }) {
542
- let { t: d } = r(), { Popover: p } = i(), m = e, h = t, _ = S(!1), v = {
542
+ let { t: d } = n(), { Popover: p } = i(), m = e, h = t, _ = S(!1), v = {
543
543
  "all-markup": "markupView.allMarkup",
544
544
  "simple-markup": "markupView.simple",
545
545
  "no-markup": "markupView.noMarkup",
@@ -552,50 +552,50 @@ var G = ["title", "onClick"], K = /*#__PURE__*/ t(/* @__PURE__ */ p({
552
552
  function w(e) {
553
553
  h("update:display-mode", e), _.value = !1;
554
554
  }
555
- return (t, r) => (b(), l("div", xe, [u("button", {
555
+ return (t, n) => (b(), l("div", xe, [u("button", {
556
556
  type: "button",
557
557
  class: g(["review-controls__toggle", { "review-controls__toggle--on": e.trackChangesOn }]),
558
558
  disabled: e.readOnly,
559
559
  "aria-pressed": e.trackChangesOn,
560
560
  "aria-label": O(d)("toggleTrackChanges"),
561
561
  title: O(d)("toggleTrackChanges"),
562
- onMousedown: r[0] ||= F(() => {}, ["prevent"]),
563
- onClick: r[1] ||= F((e) => t.$emit("toggle-track-changes"), ["prevent"])
564
- }, [f(n, {
562
+ onMousedown: n[0] ||= F(() => {}, ["prevent"]),
563
+ onClick: n[1] ||= F((e) => t.$emit("toggle-track-changes"), ["prevent"])
564
+ }, [f(r, {
565
565
  name: "edit_note",
566
566
  size: 18
567
567
  }), u("span", Ce, E(e.trackChangesOn ? O(d)("trackingOn") : O(d)("trackingOff")), 1)], 42, Se), f(O(p), {
568
568
  open: _.value,
569
569
  placement: "bottom-right",
570
- "onUpdate:open": r[4] ||= (e) => _.value = e,
571
- onClose: r[5] ||= (e) => _.value = !1
570
+ "onUpdate:open": n[4] ||= (e) => _.value = e,
571
+ onClose: n[5] ||= (e) => _.value = !1
572
572
  }, {
573
573
  trigger: M(({ toggle: e }) => [u("button", {
574
574
  type: "button",
575
575
  class: g(["review-controls__display", { "review-controls__display--open": _.value }]),
576
576
  title: x.value,
577
- onMousedown: r[2] ||= F(() => {}, ["prevent"]),
577
+ onMousedown: n[2] ||= F(() => {}, ["prevent"]),
578
578
  onClick: F(e, ["prevent"])
579
579
  }, [
580
- f(n, {
580
+ f(r, {
581
581
  name: "visibility",
582
582
  size: 16
583
583
  }),
584
584
  u("span", Te, E(x.value), 1),
585
- f(n, {
585
+ f(r, {
586
586
  name: "arrow_drop_down",
587
587
  size: 16
588
588
  })
589
589
  ], 42, we)]),
590
590
  panel: M(() => [u("div", {
591
591
  class: "review-controls__panel",
592
- onMousedown: r[3] ||= F(() => {}, ["prevent"])
593
- }, [(b(!0), l(a, null, C(O(B), (t) => (b(), l("button", {
592
+ onMousedown: n[3] ||= F(() => {}, ["prevent"])
593
+ }, [(b(!0), l(a, null, C(O(V), (t) => (b(), l("button", {
594
594
  key: t,
595
595
  type: "button",
596
596
  class: "review-controls__option",
597
597
  onClick: F((e) => w(t), ["prevent"])
598
- }, [u("span", De, E(y(t)), 1), t === e.displayMode ? (b(), s(n, {
598
+ }, [u("span", De, E(y(t)), 1), t === e.displayMode ? (b(), s(r, {
599
599
  key: 0,
600
600
  name: "check",
601
601
  size: 18,
@@ -1005,17 +1005,17 @@ var Ke = {
1005
1005
  "image-transform"
1006
1006
  ],
1007
1007
  setup(e, { emit: t }) {
1008
- let { ColorPicker: p } = i(), m = e, { t: h } = r(), v = t, y = o(() => m.zoomPercent ?? 100), x = o(() => m.isMinZoom ?? !1), T = o(() => m.isMaxZoom ?? !1), D = o(() => m.zoomPresets ?? Ie), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), L = S(null), R = S(null), { openDropdown: z, dropdownMenuStyle: B, toggleDropdown: U, recomputeDropdownPos: W } = Le({
1008
+ let { ColorPicker: p } = i(), m = e, { t: h } = n(), v = t, y = o(() => m.zoomPercent ?? 100), x = o(() => m.isMinZoom ?? !1), T = o(() => m.isMaxZoom ?? !1), D = o(() => m.zoomPresets ?? Ie), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), I = S(null), R = S(null), { openDropdown: z, dropdownMenuStyle: B, toggleDropdown: V, recomputeDropdownPos: W } = Le({
1009
1009
  zoom: R,
1010
1010
  style: A,
1011
1011
  font: j,
1012
1012
  size: M,
1013
1013
  align: N,
1014
- spacing: L
1014
+ spacing: I
1015
1015
  }), G = o(() => {
1016
1016
  m.stateTick;
1017
1017
  let e = m.view;
1018
- return e ? I(e.state) : {
1018
+ return e ? L(e.state) : {
1019
1019
  hasSelection: !1,
1020
1020
  isMultiParagraph: !1,
1021
1021
  textFormatting: {},
@@ -1047,11 +1047,11 @@ var Ke = {
1047
1047
  }), re = o(() => {
1048
1048
  m.stateTick;
1049
1049
  let e = m.view;
1050
- return e ? H(e.state) > 0 : !1;
1050
+ return e ? ee(e.state) > 0 : !1;
1051
1051
  }), ie = o(() => {
1052
1052
  m.stateTick;
1053
1053
  let e = m.view;
1054
- return e ? V(e.state) > 0 : !1;
1054
+ return e ? H(e.state) > 0 : !1;
1055
1055
  }), ae = o(() => {
1056
1056
  let e = G.value, t = e.inList && (e.listLevel ?? 0) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
1057
1057
  return t || n;
@@ -1111,7 +1111,7 @@ var Ke = {
1111
1111
  }
1112
1112
  function xe() {
1113
1113
  let e = m.view;
1114
- e && (ee(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
1114
+ e && (U(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
1115
1115
  }
1116
1116
  function Se(e) {
1117
1117
  Z("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
@@ -1126,20 +1126,20 @@ var Ke = {
1126
1126
  let t = G.value.paragraphFormatting.lineSpacing;
1127
1127
  return t ? Math.abs(t - e) < 10 : e === 240;
1128
1128
  }
1129
- return (t, r) => e.view ? (b(), l("div", Ke, [
1129
+ return (t, n) => e.view ? (b(), l("div", Ke, [
1130
1130
  u("button", {
1131
1131
  title: O(h)("undoShortcut"),
1132
1132
  "aria-label": O(h)("undo"),
1133
1133
  disabled: !re.value,
1134
- onMousedown: r[0] ||= F((e) => Z("undo"), ["prevent"])
1135
- }, [f(n, { name: "undo" })], 40, qe),
1134
+ onMousedown: n[0] ||= F((e) => Z("undo"), ["prevent"])
1135
+ }, [f(r, { name: "undo" })], 40, qe),
1136
1136
  u("button", {
1137
1137
  title: O(h)("redoShortcut"),
1138
1138
  "aria-label": O(h)("redo"),
1139
1139
  disabled: !ie.value,
1140
- onMousedown: r[1] ||= F((e) => Z("redo"), ["prevent"])
1141
- }, [f(n, { name: "redo" })], 40, Je),
1142
- r[42] ||= u("span", { class: "divider" }, null, -1),
1140
+ onMousedown: n[1] ||= F((e) => Z("redo"), ["prevent"])
1141
+ }, [f(r, { name: "redo" })], 40, Je),
1142
+ n[42] ||= u("span", { class: "divider" }, null, -1),
1143
1143
  k.value ? (b(), l("div", {
1144
1144
  key: 0,
1145
1145
  class: "toolbar-dropdown zoom-group",
@@ -1148,24 +1148,24 @@ var Ke = {
1148
1148
  }, [
1149
1149
  u("button", {
1150
1150
  class: "size-btn",
1151
- onMousedown: r[2] ||= F((e) => t.$emit("zoom-out"), ["prevent"]),
1151
+ onMousedown: n[2] ||= F((e) => t.$emit("zoom-out"), ["prevent"]),
1152
1152
  disabled: x.value,
1153
1153
  title: O(h)("zoom.zoomOut")
1154
1154
  }, " − ", 40, Ye),
1155
1155
  u("button", {
1156
1156
  class: "toolbar-dropdown__trigger zoom-trigger",
1157
- onMousedown: r[3] ||= F((e) => O(U)("zoom"), ["prevent"]),
1157
+ onMousedown: n[3] ||= F((e) => O(V)("zoom"), ["prevent"]),
1158
1158
  "aria-expanded": O(z) === "zoom",
1159
1159
  "aria-haspopup": "listbox",
1160
1160
  title: O(h)("zoom.zoomLevel")
1161
- }, [d(E(y.value) + "% ", 1), f(n, {
1161
+ }, [d(E(y.value) + "% ", 1), f(r, {
1162
1162
  class: "chevron",
1163
1163
  name: "arrow_drop_down",
1164
1164
  size: 16
1165
1165
  })], 40, Xe),
1166
1166
  u("button", {
1167
1167
  class: "size-btn",
1168
- onMousedown: r[4] ||= F((e) => t.$emit("zoom-in"), ["prevent"]),
1168
+ onMousedown: n[4] ||= F((e) => t.$emit("zoom-in"), ["prevent"]),
1169
1169
  disabled: T.value,
1170
1170
  title: O(h)("zoom.zoomIn")
1171
1171
  }, " + ", 40, Ze),
@@ -1179,18 +1179,18 @@ var Ke = {
1179
1179
  onMousedown: F((n) => t.$emit("zoom-set", e), ["prevent"])
1180
1180
  }, E(Math.round(e * 100)) + "% ", 43, Qe))), 128))], 4)) : c("", !0)
1181
1181
  ], 512)) : c("", !0),
1182
- r[43] ||= u("span", { class: "divider" }, null, -1),
1182
+ n[43] ||= u("span", { class: "divider" }, null, -1),
1183
1183
  u("div", {
1184
1184
  class: "toolbar-dropdown",
1185
1185
  ref_key: "styleDropdownRef",
1186
1186
  ref: A
1187
1187
  }, [u("button", {
1188
1188
  class: "toolbar-dropdown__trigger style-trigger",
1189
- onMousedown: r[5] ||= F((e) => O(U)("style"), ["prevent"]),
1189
+ onMousedown: n[5] ||= F((e) => O(V)("style"), ["prevent"]),
1190
1190
  "aria-expanded": O(z) === "style",
1191
1191
  "aria-haspopup": "listbox",
1192
1192
  title: O(h)("styles.selectAriaLabel")
1193
- }, [d(E(O(ne)) + " ", 1), f(n, {
1193
+ }, [d(E(O(ne)) + " ", 1), f(r, {
1194
1194
  class: "chevron",
1195
1195
  name: "arrow_drop_down",
1196
1196
  size: 16
@@ -1203,18 +1203,18 @@ var Ke = {
1203
1203
  class: g(["toolbar-dropdown__item", { active: (G.value.paragraphFormatting.styleId || "Normal") === e.id }]),
1204
1204
  onMousedown: F((t) => Ce(e.id), ["prevent"])
1205
1205
  }, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, et))), 128))], 4)) : c("", !0)], 512),
1206
- r[44] ||= u("span", { class: "divider" }, null, -1),
1206
+ n[44] ||= u("span", { class: "divider" }, null, -1),
1207
1207
  u("div", {
1208
1208
  class: "toolbar-dropdown",
1209
1209
  ref_key: "fontDropdownRef",
1210
1210
  ref: j
1211
1211
  }, [u("button", {
1212
1212
  class: "toolbar-dropdown__trigger font-trigger",
1213
- onMousedown: r[6] ||= F((e) => O(U)("font"), ["prevent"]),
1213
+ onMousedown: n[6] ||= F((e) => O(V)("font"), ["prevent"]),
1214
1214
  "aria-expanded": O(z) === "font",
1215
1215
  "aria-haspopup": "listbox",
1216
1216
  title: O(h)("font.selectAriaLabel")
1217
- }, [d(E(K.value) + " ", 1), f(n, {
1217
+ }, [d(E(K.value) + " ", 1), f(r, {
1218
1218
  class: "chevron",
1219
1219
  name: "arrow_drop_down",
1220
1220
  size: 16
@@ -1235,7 +1235,7 @@ var Ke = {
1235
1235
  }, [
1236
1236
  u("button", {
1237
1237
  class: "size-btn",
1238
- onMousedown: r[7] ||= F((...e) => O(ve) && O(ve)(...e), ["prevent"]),
1238
+ onMousedown: n[7] ||= F((...e) => O(ve) && O(ve)(...e), ["prevent"]),
1239
1239
  title: O(h)("decreaseFontSize")
1240
1240
  }, " − ", 40, it),
1241
1241
  u("input", {
@@ -1243,21 +1243,21 @@ var Ke = {
1243
1243
  type: "text",
1244
1244
  value: q.value,
1245
1245
  title: O(h)("fontSize"),
1246
- onMousedown: r[8] ||= F(() => {}, ["stop"]),
1247
- onFocus: r[9] ||= (...e) => O(pe) && O(pe)(...e),
1246
+ onMousedown: n[8] ||= F(() => {}, ["stop"]),
1247
+ onFocus: n[9] ||= (...e) => O(pe) && O(pe)(...e),
1248
1248
  "aria-expanded": O(z) === "size",
1249
1249
  "aria-haspopup": "listbox",
1250
- onInput: r[10] ||= (...e) => O(me) && O(me)(...e),
1250
+ onInput: n[10] ||= (...e) => O(me) && O(me)(...e),
1251
1251
  onKeydown: [
1252
- r[11] ||= P(F((e) => O(_e)(), ["prevent", "stop"]), ["up"]),
1253
- r[12] ||= P(F((e) => O(ve)(), ["prevent", "stop"]), ["down"]),
1254
- r[13] ||= P(F((e) => O(he)(e), ["prevent"]), ["enter"])
1252
+ n[11] ||= P(F((e) => O(_e)(), ["prevent", "stop"]), ["up"]),
1253
+ n[12] ||= P(F((e) => O(ve)(), ["prevent", "stop"]), ["down"]),
1254
+ n[13] ||= P(F((e) => O(he)(e), ["prevent"]), ["enter"])
1255
1255
  ],
1256
- onBlur: r[14] ||= (e) => O(he)(e)
1256
+ onBlur: n[14] ||= (e) => O(he)(e)
1257
1257
  }, null, 40, at),
1258
1258
  u("button", {
1259
1259
  class: "size-btn",
1260
- onMousedown: r[15] ||= F((...e) => O(_e) && O(_e)(...e), ["prevent"]),
1260
+ onMousedown: n[15] ||= F((...e) => O(_e) && O(_e)(...e), ["prevent"]),
1261
1261
  title: O(h)("increaseFontSize")
1262
1262
  }, " + ", 40, ot),
1263
1263
  O(z) === "size" ? (b(), l("div", {
@@ -1270,31 +1270,31 @@ var Ke = {
1270
1270
  onMousedown: F((t) => O(ge)(e), ["prevent"])
1271
1271
  }, E(e), 43, st))), 128))], 4)) : c("", !0)
1272
1272
  ], 512),
1273
- r[45] ||= u("span", { class: "divider" }, null, -1),
1273
+ n[45] ||= u("span", { class: "divider" }, null, -1),
1274
1274
  u("button", {
1275
1275
  title: O(h)("boldShortcut"),
1276
1276
  "aria-label": O(h)("bold"),
1277
1277
  class: g({ active: G.value.textFormatting.bold }),
1278
- onMousedown: r[16] ||= F((e) => Z("toggleBold"), ["prevent"])
1279
- }, [f(n, { name: "format_bold" })], 42, ct),
1278
+ onMousedown: n[16] ||= F((e) => Z("toggleBold"), ["prevent"])
1279
+ }, [f(r, { name: "format_bold" })], 42, ct),
1280
1280
  u("button", {
1281
1281
  title: O(h)("italicShortcut"),
1282
1282
  "aria-label": O(h)("italic"),
1283
1283
  class: g({ active: G.value.textFormatting.italic }),
1284
- onMousedown: r[17] ||= F((e) => Z("toggleItalic"), ["prevent"])
1285
- }, [f(n, { name: "format_italic" })], 42, lt),
1284
+ onMousedown: n[17] ||= F((e) => Z("toggleItalic"), ["prevent"])
1285
+ }, [f(r, { name: "format_italic" })], 42, lt),
1286
1286
  u("button", {
1287
1287
  title: O(h)("underlineShortcut"),
1288
1288
  "aria-label": O(h)("underline"),
1289
1289
  class: g({ active: !!G.value.textFormatting.underline }),
1290
- onMousedown: r[18] ||= F((e) => Z("toggleUnderline"), ["prevent"])
1291
- }, [f(n, { name: "format_underlined" })], 42, ut),
1290
+ onMousedown: n[18] ||= F((e) => Z("toggleUnderline"), ["prevent"])
1291
+ }, [f(r, { name: "format_underlined" })], 42, ut),
1292
1292
  u("button", {
1293
1293
  title: O(h)("formattingBar.strikethrough"),
1294
1294
  "aria-label": O(h)("formattingBar.strikethrough"),
1295
1295
  class: g({ active: G.value.textFormatting.strike }),
1296
- onMousedown: r[19] ||= F((e) => Z("toggleStrike"), ["prevent"])
1297
- }, [f(n, { name: "strikethrough_s" })], 42, dt),
1296
+ onMousedown: n[19] ||= F((e) => Z("toggleStrike"), ["prevent"])
1297
+ }, [f(r, { name: "strikethrough_s" })], 42, dt),
1298
1298
  f(O(p), {
1299
1299
  mode: "text",
1300
1300
  value: oe.value,
@@ -1310,32 +1310,32 @@ var Ke = {
1310
1310
  u("button", {
1311
1311
  title: O(h)("formattingBar.insertLinkShortcut"),
1312
1312
  "aria-label": O(h)("formattingBar.insertLink"),
1313
- onMousedown: r[20] ||= F((e) => t.$emit("insert-link"), ["prevent"])
1314
- }, [f(n, { name: "link" })], 40, ft),
1313
+ onMousedown: n[20] ||= F((e) => t.$emit("insert-link"), ["prevent"])
1314
+ }, [f(r, { name: "link" })], 40, ft),
1315
1315
  u("button", {
1316
1316
  title: O(h)("formattingBar.superscriptShortcut"),
1317
1317
  "aria-label": O(h)("formattingBar.superscript"),
1318
1318
  class: g({ active: G.value.textFormatting.vertAlign === "superscript" }),
1319
- onMousedown: r[21] ||= F((e) => Z("toggleSuperscript"), ["prevent"])
1320
- }, [f(n, { name: "superscript" })], 42, pt),
1319
+ onMousedown: n[21] ||= F((e) => Z("toggleSuperscript"), ["prevent"])
1320
+ }, [f(r, { name: "superscript" })], 42, pt),
1321
1321
  u("button", {
1322
1322
  title: O(h)("formattingBar.subscriptShortcut"),
1323
1323
  "aria-label": O(h)("formattingBar.subscript"),
1324
1324
  class: g({ active: G.value.textFormatting.vertAlign === "subscript" }),
1325
- onMousedown: r[22] ||= F((e) => Z("toggleSubscript"), ["prevent"])
1326
- }, [f(n, { name: "subscript" })], 42, mt),
1327
- r[46] ||= u("span", { class: "divider" }, null, -1),
1325
+ onMousedown: n[22] ||= F((e) => Z("toggleSubscript"), ["prevent"])
1326
+ }, [f(r, { name: "subscript" })], 42, mt),
1327
+ n[46] ||= u("span", { class: "divider" }, null, -1),
1328
1328
  u("div", {
1329
1329
  class: "toolbar-dropdown",
1330
1330
  ref_key: "alignDropdownRef",
1331
1331
  ref: N
1332
1332
  }, [u("button", {
1333
1333
  class: "toolbar-dropdown__trigger align-trigger",
1334
- onMousedown: r[23] ||= F((e) => O(U)("align"), ["prevent"]),
1334
+ onMousedown: n[23] ||= F((e) => O(V)("align"), ["prevent"]),
1335
1335
  "aria-expanded": O(z) === "align",
1336
1336
  "aria-haspopup": "listbox",
1337
1337
  title: O(h)("alignmentGroup")
1338
- }, [f(n, { name: Y.value }, null, 8, ["name"]), f(n, {
1338
+ }, [f(r, { name: Y.value }, null, 8, ["name"]), f(r, {
1339
1339
  class: "chevron",
1340
1340
  name: "arrow_drop_down",
1341
1341
  size: 16
@@ -1347,40 +1347,40 @@ var Ke = {
1347
1347
  u("button", {
1348
1348
  class: g(["align-strip__btn", { active: J.value === "left" }]),
1349
1349
  title: `${O(h)("alignLeft")} (${O(h)("alignment.alignLeftShortcut")})`,
1350
- onMousedown: r[24] ||= F((e) => {
1350
+ onMousedown: n[24] ||= F((e) => {
1351
1351
  Z("alignLeft"), z.value = null;
1352
1352
  }, ["prevent"])
1353
- }, [f(n, {
1353
+ }, [f(r, {
1354
1354
  name: "format_align_left",
1355
1355
  size: 18
1356
1356
  })], 42, gt),
1357
1357
  u("button", {
1358
1358
  class: g(["align-strip__btn", { active: J.value === "center" }]),
1359
1359
  title: `${O(h)("alignCenter")} (${O(h)("alignment.centerShortcut")})`,
1360
- onMousedown: r[25] ||= F((e) => {
1360
+ onMousedown: n[25] ||= F((e) => {
1361
1361
  Z("alignCenter"), z.value = null;
1362
1362
  }, ["prevent"])
1363
- }, [f(n, {
1363
+ }, [f(r, {
1364
1364
  name: "format_align_center",
1365
1365
  size: 18
1366
1366
  })], 42, _t),
1367
1367
  u("button", {
1368
1368
  class: g(["align-strip__btn", { active: J.value === "right" }]),
1369
1369
  title: `${O(h)("alignRight")} (${O(h)("alignment.alignRightShortcut")})`,
1370
- onMousedown: r[26] ||= F((e) => {
1370
+ onMousedown: n[26] ||= F((e) => {
1371
1371
  Z("alignRight"), z.value = null;
1372
1372
  }, ["prevent"])
1373
- }, [f(n, {
1373
+ }, [f(r, {
1374
1374
  name: "format_align_right",
1375
1375
  size: 18
1376
1376
  })], 42, vt),
1377
1377
  u("button", {
1378
1378
  class: g(["align-strip__btn", { active: J.value === "both" }]),
1379
1379
  title: `${O(h)("justify")} (${O(h)("alignment.justifyShortcut")})`,
1380
- onMousedown: r[27] ||= F((e) => {
1380
+ onMousedown: n[27] ||= F((e) => {
1381
1381
  Z("alignJustify"), z.value = null;
1382
1382
  }, ["prevent"])
1383
- }, [f(n, {
1383
+ }, [f(r, {
1384
1384
  name: "format_align_justify",
1385
1385
  size: 18
1386
1386
  })], 42, yt)
@@ -1389,36 +1389,36 @@ var Ke = {
1389
1389
  title: O(h)("bulletList"),
1390
1390
  "aria-label": O(h)("bulletList"),
1391
1391
  class: g({ active: G.value.inList && G.value.listType === "bullet" }),
1392
- onMousedown: r[28] ||= F((e) => Z("toggleBulletList"), ["prevent"])
1393
- }, [f(n, { name: "format_list_bulleted" })], 42, bt),
1392
+ onMousedown: n[28] ||= F((e) => Z("toggleBulletList"), ["prevent"])
1393
+ }, [f(r, { name: "format_list_bulleted" })], 42, bt),
1394
1394
  u("button", {
1395
1395
  title: O(h)("numberedList"),
1396
1396
  "aria-label": O(h)("numberedList"),
1397
1397
  class: g({ active: G.value.inList && G.value.listType === "numbered" }),
1398
- onMousedown: r[29] ||= F((e) => Z("toggleNumberedList"), ["prevent"])
1399
- }, [f(n, { name: "format_list_numbered" })], 42, xt),
1398
+ onMousedown: n[29] ||= F((e) => Z("toggleNumberedList"), ["prevent"])
1399
+ }, [f(r, { name: "format_list_numbered" })], 42, xt),
1400
1400
  u("button", {
1401
1401
  title: O(h)("decreaseIndent"),
1402
1402
  "aria-label": O(h)("decreaseIndent"),
1403
1403
  disabled: !ae.value,
1404
- onMousedown: r[30] ||= F((e) => Z("outdent"), ["prevent"])
1405
- }, [f(n, { name: "format_indent_decrease" })], 40, St),
1404
+ onMousedown: n[30] ||= F((e) => Z("outdent"), ["prevent"])
1405
+ }, [f(r, { name: "format_indent_decrease" })], 40, St),
1406
1406
  u("button", {
1407
1407
  title: O(h)("increaseIndent"),
1408
1408
  "aria-label": O(h)("increaseIndent"),
1409
- onMousedown: r[31] ||= F((e) => Z("indent"), ["prevent"])
1410
- }, [f(n, { name: "format_indent_increase" })], 40, Ct),
1409
+ onMousedown: n[31] ||= F((e) => Z("indent"), ["prevent"])
1410
+ }, [f(r, { name: "format_indent_increase" })], 40, Ct),
1411
1411
  u("div", {
1412
1412
  class: "toolbar-dropdown",
1413
1413
  ref_key: "spacingDropdownRef",
1414
- ref: L
1414
+ ref: I
1415
1415
  }, [u("button", {
1416
1416
  class: "toolbar-dropdown__trigger",
1417
- onMousedown: r[32] ||= F((e) => O(U)("spacing"), ["prevent"]),
1417
+ onMousedown: n[32] ||= F((e) => O(V)("spacing"), ["prevent"]),
1418
1418
  "aria-expanded": O(z) === "spacing",
1419
1419
  "aria-haspopup": "listbox",
1420
1420
  title: O(h)("lineSpacing.label")
1421
- }, [f(n, { name: "format_line_spacing" }), f(n, {
1421
+ }, [f(r, { name: "format_line_spacing" }), f(r, {
1422
1422
  class: "chevron",
1423
1423
  name: "arrow_drop_down",
1424
1424
  size: 16
@@ -1435,44 +1435,44 @@ var Ke = {
1435
1435
  title: O(h)("formattingBar.clearFormatting"),
1436
1436
  "aria-label": O(h)("formattingBar.clearFormatting"),
1437
1437
  onMousedown: F(xe, ["prevent"])
1438
- }, [f(n, { name: "format_clear" })], 40, Et),
1439
- r[47] ||= u("span", { class: "divider" }, null, -1),
1438
+ }, [f(r, { name: "format_clear" })], 40, Et),
1439
+ n[47] ||= u("span", { class: "divider" }, null, -1),
1440
1440
  u("button", {
1441
1441
  title: O(h)("formattingBar.commentsAndChanges"),
1442
1442
  "aria-label": O(h)("formattingBar.commentsAndChanges"),
1443
1443
  class: g({ active: e.commentsSidebarOpen }),
1444
- onMousedown: r[33] ||= F((e) => t.$emit("toggle-sidebar"), ["prevent"])
1445
- }, [f(n, { name: "comment" })], 42, Dt),
1444
+ onMousedown: n[33] ||= F((e) => t.$emit("toggle-sidebar"), ["prevent"])
1445
+ }, [f(r, { name: "comment" })], 42, Dt),
1446
1446
  e.imageContext ? (b(), l(a, { key: 1 }, [
1447
- r[40] ||= u("span", { class: "divider" }, null, -1),
1447
+ n[40] ||= u("span", { class: "divider" }, null, -1),
1448
1448
  f(de, {
1449
1449
  "image-context": e.imageContext,
1450
- onChange: r[34] ||= (e) => t.$emit("image-wrap-type", e)
1450
+ onChange: n[34] ||= (e) => t.$emit("image-wrap-type", e)
1451
1451
  }, null, 8, ["image-context"]),
1452
- f(fe, { onTransform: r[35] ||= (e) => t.$emit("image-transform", e) }),
1452
+ f(fe, { onTransform: n[35] ||= (e) => t.$emit("image-transform", e) }),
1453
1453
  u("button", {
1454
1454
  title: O(h)("formattingBar.imagePropertiesShortcut"),
1455
1455
  "aria-label": O(h)("formattingBar.imageProperties"),
1456
- onMousedown: r[36] ||= F((e) => t.$emit("image-properties"), ["prevent"])
1457
- }, [f(n, { name: "tune" })], 40, Ot)
1456
+ onMousedown: n[36] ||= F((e) => t.$emit("image-properties"), ["prevent"])
1457
+ }, [f(r, { name: "tune" })], 40, Ot)
1458
1458
  ], 64)) : c("", !0),
1459
1459
  w(t.$slots, "table-context", {}, void 0, !0),
1460
- e.showReviewControls ? (b(), l(a, { key: 2 }, [r[41] ||= u("span", { class: "divider" }, null, -1), f(Oe, {
1460
+ e.showReviewControls ? (b(), l(a, { key: 2 }, [n[41] ||= u("span", { class: "divider" }, null, -1), f(Oe, {
1461
1461
  "track-changes-on": e.trackChangesOn,
1462
1462
  "display-mode": e.displayMode,
1463
1463
  "read-only": e.readOnly,
1464
- onToggleTrackChanges: r[37] ||= (e) => t.$emit("toggle-track-changes"),
1465
- "onUpdate:displayMode": r[38] ||= (e) => t.$emit("update:display-mode", e)
1464
+ onToggleTrackChanges: n[37] ||= (e) => t.$emit("toggle-track-changes"),
1465
+ "onUpdate:displayMode": n[38] ||= (e) => t.$emit("update:display-mode", e)
1466
1466
  }, null, 8, [
1467
1467
  "track-changes-on",
1468
1468
  "display-mode",
1469
1469
  "read-only"
1470
1470
  ])], 64)) : c("", !0),
1471
- r[48] ||= u("span", { class: "divider" }, null, -1),
1471
+ n[48] ||= u("span", { class: "divider" }, null, -1),
1472
1472
  e.editorMode ? (b(), s(be, {
1473
1473
  key: 3,
1474
1474
  "model-value": e.editorMode,
1475
- "onUpdate:modelValue": r[39] ||= (e) => t.$emit("mode-change", e)
1475
+ "onUpdate:modelValue": n[39] ||= (e) => t.$emit("mode-change", e)
1476
1476
  }, null, 8, ["model-value"])) : c("", !0),
1477
1477
  w(t.$slots, "toolbar-extra", {}, void 0, !0)
1478
1478
  ])) : c("", !0);
@@ -1511,12 +1511,12 @@ var Ke = {
1511
1511
  setup(e, { emit: t }) {
1512
1512
  let n = e, r = t, i = Math.round(Q * 1.6), s = S(null), d = S(null), f = S(null), p = S(0), m = S("");
1513
1513
  function h(e) {
1514
- return z(e) * n.zoom;
1514
+ return B(e) * n.zoom;
1515
1515
  }
1516
1516
  function g(e) {
1517
- return Math.round(R(e / n.zoom));
1517
+ return Math.round(z(e / n.zoom));
1518
1518
  }
1519
- let y = o(() => n.sectionProps?.pageWidth ?? Nt), x = o(() => n.sectionProps?.marginLeft ?? Pt), w = o(() => n.sectionProps?.marginRight ?? Pt), T = o(() => y.value - x.value - w.value), D = o(() => h(y.value)), O = o(() => h(x.value)), k = o(() => h(w.value)), A = o(() => h(n.indentLeft)), j = o(() => h(n.indentRight)), M = o(() => n.hangingIndent ? -n.firstLineIndent : n.firstLineIndent), N = o(() => h(M.value)), P = o(() => O.value + A.value), I = o(() => D.value - k.value - j.value), L = o(() => O.value + A.value + N.value), B = o(() => ({
1519
+ let y = o(() => n.sectionProps?.pageWidth ?? Nt), x = o(() => n.sectionProps?.marginLeft ?? Pt), w = o(() => n.sectionProps?.marginRight ?? Pt), T = o(() => y.value - x.value - w.value), D = o(() => h(y.value)), O = o(() => h(x.value)), k = o(() => h(w.value)), A = o(() => h(n.indentLeft)), j = o(() => h(n.indentRight)), M = o(() => n.hangingIndent ? -n.firstLineIndent : n.firstLineIndent), N = o(() => h(M.value)), P = o(() => O.value + A.value), I = o(() => D.value - k.value - j.value), L = o(() => O.value + A.value + N.value), R = o(() => ({
1520
1520
  position: "relative",
1521
1521
  width: D.value + "px",
1522
1522
  height: "22px",
@@ -1696,7 +1696,7 @@ var Ke = {
1696
1696
  ref_key: "rulerRef",
1697
1697
  ref: s,
1698
1698
  class: "docx-horizontal-ruler",
1699
- style: _(B.value),
1699
+ style: _(R.value),
1700
1700
  role: "slider",
1701
1701
  "aria-label": "Horizontal ruler",
1702
1702
  "aria-valuemin": 0,
@@ -1766,7 +1766,7 @@ var Ke = {
1766
1766
  props: { disabled: { type: Boolean } },
1767
1767
  emits: ["change"],
1768
1768
  setup(e, { emit: t }) {
1769
- let { Popover: r } = i(), o = t, c = S(!1), d = [
1769
+ let { Popover: n } = i(), o = t, c = S(!1), d = [
1770
1770
  {
1771
1771
  value: "all",
1772
1772
  icon: "border_all",
@@ -1821,7 +1821,7 @@ var Ke = {
1821
1821
  function p(e) {
1822
1822
  o("change", e), c.value = !1;
1823
1823
  }
1824
- return (t, i) => (b(), s(O(r), {
1824
+ return (t, i) => (b(), s(O(n), {
1825
1825
  open: c.value,
1826
1826
  "onUpdate:open": i[0] ||= (e) => c.value = e,
1827
1827
  onClose: i[1] ||= (e) => c.value = !1
@@ -1832,7 +1832,7 @@ var Ke = {
1832
1832
  disabled: e.disabled,
1833
1833
  title: "Borders",
1834
1834
  onClick: F(t, ["prevent"])
1835
- }, [f(n, {
1835
+ }, [f(r, {
1836
1836
  name: "border_all",
1837
1837
  size: 20
1838
1838
  })], 8, Vt)]),
@@ -1842,7 +1842,7 @@ var Ke = {
1842
1842
  class: "docx-tbp__option",
1843
1843
  title: e.label,
1844
1844
  onClick: F((t) => p(e.value), ["prevent"])
1845
- }, [f(n, {
1845
+ }, [f(r, {
1846
1846
  name: e.icon,
1847
1847
  size: 20
1848
1848
  }, null, 8, ["name"])], 8, Ut)), 64))])]),
@@ -1857,8 +1857,8 @@ var Ke = {
1857
1857
  value: {}
1858
1858
  },
1859
1859
  emits: ["change"],
1860
- setup(t, { emit: n }) {
1861
- let i = n, { t: a } = r();
1860
+ setup(t, { emit: r }) {
1861
+ let i = r, { t: a } = n();
1862
1862
  function o(e) {
1863
1863
  typeof e == "string" ? i("change", e.replace(/^#/, "")) : e.rgb ? i("change", e.rgb.replace(/^#/, "")) : e.auto && i("change", "000000");
1864
1864
  }
@@ -1881,7 +1881,7 @@ var Ke = {
1881
1881
  props: { disabled: { type: Boolean } },
1882
1882
  emits: ["change"],
1883
1883
  setup(e, { emit: t }) {
1884
- let { Popover: r } = i(), o = t, c = S(!1), d = [
1884
+ let { Popover: n } = i(), o = t, c = S(!1), d = [
1885
1885
  {
1886
1886
  label: "0.5pt",
1887
1887
  eighths: 4,
@@ -1926,7 +1926,7 @@ var Ke = {
1926
1926
  function p(e) {
1927
1927
  o("change", e), c.value = !1;
1928
1928
  }
1929
- return (t, i) => (b(), s(O(r), {
1929
+ return (t, i) => (b(), s(O(n), {
1930
1930
  open: c.value,
1931
1931
  "onUpdate:open": i[0] ||= (e) => c.value = e,
1932
1932
  onClose: i[1] ||= (e) => c.value = !1
@@ -1937,7 +1937,7 @@ var Ke = {
1937
1937
  disabled: e.disabled,
1938
1938
  title: "Border width",
1939
1939
  onClick: F(t, ["prevent"])
1940
- }, [f(n, {
1940
+ }, [f(r, {
1941
1941
  name: "line_weight",
1942
1942
  size: 20
1943
1943
  })], 8, Kt)]),
@@ -1961,8 +1961,8 @@ var Ke = {
1961
1961
  value: {}
1962
1962
  },
1963
1963
  emits: ["change"],
1964
- setup(t, { emit: n }) {
1965
- let i = n, { t: a } = r();
1964
+ setup(t, { emit: r }) {
1965
+ let i = r, { t: a } = n();
1966
1966
  function o(e) {
1967
1967
  typeof e == "string" && i("change", e === "none" ? "" : e.replace(/^#/, ""));
1968
1968
  }
@@ -2025,7 +2025,7 @@ var Ke = {
2025
2025
  "row-height"
2026
2026
  ],
2027
2027
  setup(e, { emit: t }) {
2028
- let { Popover: o } = i(), d = e, p = t, { t: m } = r(), h = S(!1), _ = S(!1), v = S(!1), y = S(!1), w = x({
2028
+ let { Popover: o } = i(), d = e, p = t, { t: m } = n(), h = S(!1), _ = S(!1), v = S(!1), y = S(!1), w = x({
2029
2029
  top: 0,
2030
2030
  bottom: 0,
2031
2031
  left: 108,
@@ -2062,11 +2062,11 @@ var Ke = {
2062
2062
  function B(e) {
2063
2063
  p("cell-text-direction", e), h.value = !1;
2064
2064
  }
2065
- return (t, r) => (b(), s(O(o), {
2065
+ return (t, n) => (b(), s(O(o), {
2066
2066
  open: h.value,
2067
2067
  placement: "bottom-right",
2068
- "onUpdate:open": r[35] ||= (e) => h.value = e,
2069
- onClose: r[36] ||= (e) => h.value = !1
2068
+ "onUpdate:open": n[35] ||= (e) => h.value = e,
2069
+ onClose: n[36] ||= (e) => h.value = !1
2070
2070
  }, {
2071
2071
  trigger: M(({ toggle: t }) => [u("button", {
2072
2072
  type: "button",
@@ -2074,7 +2074,7 @@ var Ke = {
2074
2074
  disabled: e.disabled,
2075
2075
  title: O(m)("tableAdvanced.tableOptions"),
2076
2076
  onClick: F(t, ["prevent"])
2077
- }, [f(n, {
2077
+ }, [f(r, {
2078
2078
  name: "more_vert",
2079
2079
  size: 20
2080
2080
  })], 10, Qt)]),
@@ -2086,42 +2086,42 @@ var Ke = {
2086
2086
  u("button", {
2087
2087
  type: "button",
2088
2088
  class: "docx-tmore__item",
2089
- onClick: r[0] ||= F((e) => I("addRowAbove"), ["prevent"])
2090
- }, [f(n, {
2089
+ onClick: n[0] ||= F((e) => I("addRowAbove"), ["prevent"])
2090
+ }, [f(r, {
2091
2091
  name: "add",
2092
2092
  size: 18
2093
2093
  }), u("span", null, E(O(m)("insertRowAbove")), 1)]),
2094
2094
  u("button", {
2095
2095
  type: "button",
2096
2096
  class: "docx-tmore__item",
2097
- onClick: r[1] ||= F((e) => I("addRowBelow"), ["prevent"])
2098
- }, [f(n, {
2097
+ onClick: n[1] ||= F((e) => I("addRowBelow"), ["prevent"])
2098
+ }, [f(r, {
2099
2099
  name: "add",
2100
2100
  size: 18
2101
2101
  }), u("span", null, E(O(m)("insertRowBelow")), 1)]),
2102
2102
  u("button", {
2103
2103
  type: "button",
2104
2104
  class: "docx-tmore__item",
2105
- onClick: r[2] ||= F((e) => I("addColumnLeft"), ["prevent"])
2106
- }, [f(n, {
2105
+ onClick: n[2] ||= F((e) => I("addColumnLeft"), ["prevent"])
2106
+ }, [f(r, {
2107
2107
  name: "add",
2108
2108
  size: 18
2109
2109
  }), u("span", null, E(O(m)("insertColumnLeft")), 1)]),
2110
2110
  u("button", {
2111
2111
  type: "button",
2112
2112
  class: "docx-tmore__item",
2113
- onClick: r[3] ||= F((e) => I("addColumnRight"), ["prevent"])
2114
- }, [f(n, {
2113
+ onClick: n[3] ||= F((e) => I("addColumnRight"), ["prevent"])
2114
+ }, [f(r, {
2115
2115
  name: "add",
2116
2116
  size: 18
2117
2117
  }), u("span", null, E(O(m)("insertColumnRight")), 1)]),
2118
- r[39] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2118
+ n[39] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2119
2119
  u("button", {
2120
2120
  type: "button",
2121
2121
  class: "docx-tmore__item",
2122
2122
  disabled: P("mergeCells"),
2123
- onClick: r[4] ||= F((e) => I("mergeCells"), ["prevent"])
2124
- }, [f(n, {
2123
+ onClick: n[4] ||= F((e) => I("mergeCells"), ["prevent"])
2124
+ }, [f(r, {
2125
2125
  name: "call_merge",
2126
2126
  size: 18
2127
2127
  }), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, en),
@@ -2129,27 +2129,27 @@ var Ke = {
2129
2129
  type: "button",
2130
2130
  class: "docx-tmore__item",
2131
2131
  disabled: P("splitCell"),
2132
- onClick: r[5] ||= F((e) => I("splitCell"), ["prevent"])
2133
- }, [f(n, {
2132
+ onClick: n[5] ||= F((e) => I("splitCell"), ["prevent"])
2133
+ }, [f(r, {
2134
2134
  name: "call_split",
2135
2135
  size: 18
2136
2136
  }), u("span", null, E(O(m)("table.splitCell")), 1)], 8, tn),
2137
- r[40] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2137
+ n[40] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2138
2138
  u("button", {
2139
2139
  type: "button",
2140
2140
  class: "docx-tmore__item",
2141
- onClick: r[6] ||= F((e) => I("selectTable"), ["prevent"])
2142
- }, [f(n, {
2141
+ onClick: n[6] ||= F((e) => I("selectTable"), ["prevent"])
2142
+ }, [f(r, {
2143
2143
  name: "select_all",
2144
2144
  size: 18
2145
2145
  }), u("span", null, E(O(m)("table.selectTable")), 1)]),
2146
- r[41] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2146
+ n[41] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2147
2147
  u("button", {
2148
2148
  type: "button",
2149
2149
  class: "docx-tmore__item docx-tmore__item--danger",
2150
2150
  disabled: P("deleteRow"),
2151
- onClick: r[7] ||= F((e) => I("deleteRow"), ["prevent"])
2152
- }, [f(n, {
2151
+ onClick: n[7] ||= F((e) => I("deleteRow"), ["prevent"])
2152
+ }, [f(r, {
2153
2153
  name: "delete",
2154
2154
  size: 18
2155
2155
  }), u("span", null, E(O(m)("deleteRow")), 1)], 8, nn),
@@ -2157,29 +2157,29 @@ var Ke = {
2157
2157
  type: "button",
2158
2158
  class: "docx-tmore__item docx-tmore__item--danger",
2159
2159
  disabled: P("deleteColumn"),
2160
- onClick: r[8] ||= F((e) => I("deleteColumn"), ["prevent"])
2161
- }, [f(n, {
2160
+ onClick: n[8] ||= F((e) => I("deleteColumn"), ["prevent"])
2161
+ }, [f(r, {
2162
2162
  name: "delete",
2163
2163
  size: 18
2164
2164
  }), u("span", null, E(O(m)("deleteColumn")), 1)], 8, rn),
2165
2165
  u("button", {
2166
2166
  type: "button",
2167
2167
  class: "docx-tmore__item docx-tmore__item--danger",
2168
- onClick: r[9] ||= F((e) => I("deleteTable"), ["prevent"])
2169
- }, [f(n, {
2168
+ onClick: n[9] ||= F((e) => I("deleteTable"), ["prevent"])
2169
+ }, [f(r, {
2170
2170
  name: "delete",
2171
2171
  size: 18
2172
2172
  }), u("span", null, E(O(m)("table.deleteTable")), 1)]),
2173
- r[42] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2173
+ n[42] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2174
2174
  u("div", an, E(O(m)("tableAdvanced.verticalAlignment")), 1),
2175
2175
  u("div", on, [
2176
2176
  u("button", {
2177
2177
  type: "button",
2178
2178
  class: "docx-tmore__icon-btn",
2179
2179
  title: O(m)("tableAdvanced.top"),
2180
- onMousedown: r[10] ||= F(() => {}, ["prevent"]),
2181
- onClick: r[11] ||= F((e) => I("verticalAlignTop"), ["prevent"])
2182
- }, [f(n, {
2180
+ onMousedown: n[10] ||= F(() => {}, ["prevent"]),
2181
+ onClick: n[11] ||= F((e) => I("verticalAlignTop"), ["prevent"])
2182
+ }, [f(r, {
2183
2183
  name: "vertical_align_top",
2184
2184
  size: 16
2185
2185
  })], 40, sn),
@@ -2187,9 +2187,9 @@ var Ke = {
2187
2187
  type: "button",
2188
2188
  class: "docx-tmore__icon-btn",
2189
2189
  title: O(m)("tableAdvanced.middle"),
2190
- onMousedown: r[12] ||= F(() => {}, ["prevent"]),
2191
- onClick: r[13] ||= F((e) => I("verticalAlignMiddle"), ["prevent"])
2192
- }, [f(n, {
2190
+ onMousedown: n[12] ||= F(() => {}, ["prevent"]),
2191
+ onClick: n[13] ||= F((e) => I("verticalAlignMiddle"), ["prevent"])
2192
+ }, [f(r, {
2193
2193
  name: "vertical_align_center",
2194
2194
  size: 16
2195
2195
  })], 40, cn),
@@ -2197,23 +2197,23 @@ var Ke = {
2197
2197
  type: "button",
2198
2198
  class: "docx-tmore__icon-btn",
2199
2199
  title: O(m)("tableAdvanced.bottom"),
2200
- onMousedown: r[14] ||= F(() => {}, ["prevent"]),
2201
- onClick: r[15] ||= F((e) => I("verticalAlignBottom"), ["prevent"])
2202
- }, [f(n, {
2200
+ onMousedown: n[14] ||= F(() => {}, ["prevent"]),
2201
+ onClick: n[15] ||= F((e) => I("verticalAlignBottom"), ["prevent"])
2202
+ }, [f(r, {
2203
2203
  name: "vertical_align_bottom",
2204
2204
  size: 16
2205
2205
  })], 40, ln)
2206
2206
  ]),
2207
- r[43] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2207
+ n[43] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2208
2208
  u("div", un, E(O(m)("tableAdvanced.tableAlignment")), 1),
2209
2209
  u("div", dn, [
2210
2210
  u("button", {
2211
2211
  type: "button",
2212
2212
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "left" }]),
2213
2213
  title: O(m)("tableAdvanced.alignTableLeft"),
2214
- onMousedown: r[16] ||= F(() => {}, ["prevent"]),
2215
- onClick: r[17] ||= F((e) => I("alignTableLeft"), ["prevent"])
2216
- }, [f(n, {
2214
+ onMousedown: n[16] ||= F(() => {}, ["prevent"]),
2215
+ onClick: n[17] ||= F((e) => I("alignTableLeft"), ["prevent"])
2216
+ }, [f(r, {
2217
2217
  name: "format_align_left",
2218
2218
  size: 16
2219
2219
  })], 42, fn),
@@ -2221,9 +2221,9 @@ var Ke = {
2221
2221
  type: "button",
2222
2222
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "center" }]),
2223
2223
  title: O(m)("tableAdvanced.alignTableCenter"),
2224
- onMousedown: r[18] ||= F(() => {}, ["prevent"]),
2225
- onClick: r[19] ||= F((e) => I("alignTableCenter"), ["prevent"])
2226
- }, [f(n, {
2224
+ onMousedown: n[18] ||= F(() => {}, ["prevent"]),
2225
+ onClick: n[19] ||= F((e) => I("alignTableCenter"), ["prevent"])
2226
+ }, [f(r, {
2227
2227
  name: "format_align_center",
2228
2228
  size: 16
2229
2229
  })], 42, pn),
@@ -2231,25 +2231,25 @@ var Ke = {
2231
2231
  type: "button",
2232
2232
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "right" }]),
2233
2233
  title: O(m)("tableAdvanced.alignTableRight"),
2234
- onMousedown: r[20] ||= F(() => {}, ["prevent"]),
2235
- onClick: r[21] ||= F((e) => I("alignTableRight"), ["prevent"])
2236
- }, [f(n, {
2234
+ onMousedown: n[20] ||= F(() => {}, ["prevent"]),
2235
+ onClick: n[21] ||= F((e) => I("alignTableRight"), ["prevent"])
2236
+ }, [f(r, {
2237
2237
  name: "format_align_right",
2238
2238
  size: 16
2239
2239
  })], 42, mn)
2240
2240
  ]),
2241
- r[44] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2241
+ n[44] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2242
2242
  u("button", {
2243
2243
  type: "button",
2244
2244
  class: "docx-tmore__item",
2245
- onClick: r[22] ||= F((e) => _.value = !_.value, ["prevent"])
2245
+ onClick: n[22] ||= F((e) => _.value = !_.value, ["prevent"])
2246
2246
  }, [
2247
- f(n, {
2247
+ f(r, {
2248
2248
  name: "padding",
2249
2249
  size: 18
2250
2250
  }),
2251
2251
  u("span", hn, E(O(m)("tableAdvanced.cellMargins")), 1),
2252
- f(n, {
2252
+ f(r, {
2253
2253
  name: _.value ? "expand_less" : "expand_more",
2254
2254
  size: 18
2255
2255
  }, null, 8, ["name"])
@@ -2276,7 +2276,7 @@ var Ke = {
2276
2276
  void 0,
2277
2277
  { number: !0 }
2278
2278
  ]]),
2279
- r[37] ||= u("span", { class: "docx-tmore__unit" }, "tw", -1)
2279
+ n[37] ||= u("span", { class: "docx-tmore__unit" }, "tw", -1)
2280
2280
  ])), 64))]), u("button", {
2281
2281
  type: "button",
2282
2282
  class: "docx-tmore__apply",
@@ -2285,21 +2285,21 @@ var Ke = {
2285
2285
  u("button", {
2286
2286
  type: "button",
2287
2287
  class: "docx-tmore__item",
2288
- onClick: r[23] ||= F((e) => v.value = !v.value, ["prevent"])
2288
+ onClick: n[23] ||= F((e) => v.value = !v.value, ["prevent"])
2289
2289
  }, [
2290
- f(n, {
2290
+ f(r, {
2291
2291
  name: "height",
2292
2292
  size: 18
2293
2293
  }),
2294
2294
  u("span", bn, E(O(m)("tableAdvanced.rowHeight")), 1),
2295
- f(n, {
2295
+ f(r, {
2296
2296
  name: v.value ? "expand_less" : "expand_more",
2297
2297
  size: 18
2298
2298
  }, null, 8, ["name"])
2299
2299
  ]),
2300
2300
  v.value ? (b(), l("div", xn, [
2301
2301
  u("label", Sn, [u("span", Cn, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
2302
- "onUpdate:modelValue": r[24] ||= (e) => D.value = e,
2302
+ "onUpdate:modelValue": n[24] ||= (e) => D.value = e,
2303
2303
  class: "docx-tmore__select"
2304
2304
  }, [
2305
2305
  u("option", wn, E(O(m)("tableAdvanced.heightRules.auto")), 1),
@@ -2312,7 +2312,7 @@ var Ke = {
2312
2312
  type: "number",
2313
2313
  min: "0",
2314
2314
  step: "20",
2315
- "onUpdate:modelValue": r[25] ||= (e) => T.value = e,
2315
+ "onUpdate:modelValue": n[25] ||= (e) => T.value = e,
2316
2316
  class: "docx-tmore__input"
2317
2317
  }, null, 512), [[
2318
2318
  A,
@@ -2320,7 +2320,7 @@ var Ke = {
2320
2320
  void 0,
2321
2321
  { number: !0 }
2322
2322
  ]]),
2323
- r[38] ||= u("span", { class: "docx-tmore__unit" }, "tw", -1)
2323
+ n[38] ||= u("span", { class: "docx-tmore__unit" }, "tw", -1)
2324
2324
  ])),
2325
2325
  u("button", {
2326
2326
  type: "button",
@@ -2331,14 +2331,14 @@ var Ke = {
2331
2331
  u("button", {
2332
2332
  type: "button",
2333
2333
  class: "docx-tmore__item",
2334
- onClick: r[26] ||= F((e) => y.value = !y.value, ["prevent"])
2334
+ onClick: n[26] ||= F((e) => y.value = !y.value, ["prevent"])
2335
2335
  }, [
2336
- f(n, {
2336
+ f(r, {
2337
2337
  name: "text_rotation_none",
2338
2338
  size: 18
2339
2339
  }),
2340
2340
  u("span", kn, E(O(m)("textDirection")), 1),
2341
- f(n, {
2341
+ f(r, {
2342
2342
  name: y.value ? "expand_less" : "expand_more",
2343
2343
  size: 18
2344
2344
  }, null, 8, ["name"])
@@ -2347,58 +2347,58 @@ var Ke = {
2347
2347
  u("button", {
2348
2348
  type: "button",
2349
2349
  class: "docx-tmore__sub-item",
2350
- onClick: r[27] ||= F((e) => B(null), ["prevent"])
2350
+ onClick: n[27] ||= F((e) => B(null), ["prevent"])
2351
2351
  }, E(O(m)("tableAdvanced.textDirections.horizontal")), 1),
2352
2352
  u("button", {
2353
2353
  type: "button",
2354
2354
  class: "docx-tmore__sub-item",
2355
- onClick: r[28] ||= F((e) => B("tbRl"), ["prevent"])
2355
+ onClick: n[28] ||= F((e) => B("tbRl"), ["prevent"])
2356
2356
  }, E(O(m)("tableAdvanced.textDirections.verticalRL")), 1),
2357
2357
  u("button", {
2358
2358
  type: "button",
2359
2359
  class: "docx-tmore__sub-item",
2360
- onClick: r[29] ||= F((e) => B("btLr"), ["prevent"])
2360
+ onClick: n[29] ||= F((e) => B("btLr"), ["prevent"])
2361
2361
  }, E(O(m)("tableAdvanced.textDirections.verticalLR")), 1)
2362
2362
  ])) : c("", !0),
2363
- r[45] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2363
+ n[45] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2364
2364
  u("button", {
2365
2365
  type: "button",
2366
2366
  class: "docx-tmore__item",
2367
- onClick: r[30] ||= F((e) => I("toggleHeaderRow"), ["prevent"])
2368
- }, [f(n, {
2367
+ onClick: n[30] ||= F((e) => I("toggleHeaderRow"), ["prevent"])
2368
+ }, [f(r, {
2369
2369
  name: "table_rows",
2370
2370
  size: 18
2371
2371
  }), u("span", null, E(O(m)("tableAdvanced.toggleHeaderRow")), 1)]),
2372
2372
  u("button", {
2373
2373
  type: "button",
2374
2374
  class: "docx-tmore__item",
2375
- onClick: r[31] ||= F((e) => I("distributeColumns"), ["prevent"])
2376
- }, [f(n, {
2375
+ onClick: n[31] ||= F((e) => I("distributeColumns"), ["prevent"])
2376
+ }, [f(r, {
2377
2377
  name: "view_column",
2378
2378
  size: 18
2379
2379
  }), u("span", null, E(O(m)("tableAdvanced.distributeColumns")), 1)]),
2380
2380
  u("button", {
2381
2381
  type: "button",
2382
2382
  class: "docx-tmore__item",
2383
- onClick: r[32] ||= F((e) => I("autoFit"), ["prevent"])
2384
- }, [f(n, {
2383
+ onClick: n[32] ||= F((e) => I("autoFit"), ["prevent"])
2384
+ }, [f(r, {
2385
2385
  name: "fit_width",
2386
2386
  size: 18
2387
2387
  }), u("span", null, E(O(m)("tableAdvanced.autoFit")), 1)]),
2388
2388
  u("button", {
2389
2389
  type: "button",
2390
2390
  class: "docx-tmore__item",
2391
- onClick: r[33] ||= F((e) => I("toggleNoWrap"), ["prevent"])
2392
- }, [f(n, {
2391
+ onClick: n[33] ||= F((e) => I("toggleNoWrap"), ["prevent"])
2392
+ }, [f(r, {
2393
2393
  name: "wrap_text",
2394
2394
  size: 18
2395
2395
  }), u("span", null, E(O(m)("tableAdvanced.toggleNoWrap")), 1)]),
2396
- r[46] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2396
+ n[46] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2397
2397
  u("button", {
2398
2398
  type: "button",
2399
2399
  class: "docx-tmore__item",
2400
- onClick: r[34] ||= F((e) => I("tableProperties"), ["prevent"])
2401
- }, [f(n, {
2400
+ onClick: n[34] ||= F((e) => I("tableProperties"), ["prevent"])
2401
+ }, [f(r, {
2402
2402
  name: "settings",
2403
2403
  size: 18
2404
2404
  }), u("span", null, E(O(m)("tableAdvanced.tableProperties")), 1)])
@@ -2414,14 +2414,15 @@ var Ke = {
2414
2414
  stateTick: {},
2415
2415
  theme: {}
2416
2416
  },
2417
- setup(e, { expose: t }) {
2418
- let n = e, r = o(() => {
2419
- n.stateTick;
2420
- let e = n.view;
2421
- return e ? U(e.state) : null;
2422
- }), i = o(() => !!r.value?.isInTable), s = o(() => {
2423
- n.stateTick;
2424
- let e = n.view;
2417
+ emits: ["open-table-properties"],
2418
+ setup(e, { expose: t, emit: n }) {
2419
+ let r = e, i = n, s = o(() => {
2420
+ r.stateTick;
2421
+ let e = r.view;
2422
+ return e ? I(e.state) : null;
2423
+ }), d = o(() => !!s.value?.isInTable), p = o(() => {
2424
+ r.stateTick;
2425
+ let e = r.view;
2425
2426
  if (!e) return !1;
2426
2427
  let { $from: t } = e.state.selection;
2427
2428
  for (let e = t.depth; e > 0; e--) if (t.node(e).type.name === "tableCell") {
@@ -2429,67 +2430,67 @@ var Ke = {
2429
2430
  return (typeof r == "number" ? r : 1) > 1 || (typeof i == "number" ? i : 1) > 1;
2430
2431
  }
2431
2432
  return !1;
2432
- }), d = o(() => {
2433
- let e = r.value?.cellBorderColor;
2433
+ }), h = o(() => {
2434
+ let e = s.value?.cellBorderColor;
2434
2435
  if (e && typeof e == "object" && "rgb" in e && typeof e.rgb == "string") return e.rgb;
2435
- }), p = o(() => d.value === void 0 ? {} : { value: d.value }), h = o(() => !!r.value?.hasMultiCellSelection), g = o(() => r.value?.rowCount ?? 0), _ = o(() => r.value?.columnCount ?? 0), v = o(() => {
2436
- let e = r.value?.table?.attrs.justification;
2436
+ }), g = o(() => h.value === void 0 ? {} : { value: h.value }), _ = o(() => !!s.value?.hasMultiCellSelection), v = o(() => s.value?.rowCount ?? 0), y = o(() => s.value?.columnCount ?? 0), x = o(() => {
2437
+ let e = s.value?.table?.attrs.justification;
2437
2438
  return e === "center" || e === "right" ? e : "left";
2438
- }), y = {
2439
+ }), S = {
2439
2440
  style: "single",
2440
2441
  size: 4,
2441
2442
  color: { rgb: "000000" }
2442
2443
  };
2443
- j([() => n.view, () => n.stateTick], () => {
2444
- let e = n.view;
2444
+ j([() => r.view, () => r.stateTick], () => {
2445
+ let e = r.view;
2445
2446
  if (!e) return;
2446
- let t = U(e.state), r = t.cellBorderColor;
2447
- !r || !t.isInTable || typeof r == "object" && "rgb" in r && typeof r.rgb == "string" && (y.color = { rgb: r.rgb });
2447
+ let t = I(e.state), n = t.cellBorderColor;
2448
+ !n || !t.isInTable || typeof n == "object" && "rgb" in n && typeof n.rgb == "string" && (S.color = { rgb: n.rgb });
2448
2449
  }, { immediate: !0 });
2449
- function x(e, ...t) {
2450
- let r = n.view;
2451
- if (!r) return !1;
2452
- let i = n.getCommands()[e];
2453
- return i ? (i(...t)(r.state, (e) => r.dispatch(e), r), r.focus(), !0) : !1;
2450
+ function C(e, ...t) {
2451
+ let n = r.view;
2452
+ if (!n) return !1;
2453
+ let i = r.getCommands()[e];
2454
+ return i ? (i(...t)(n.state, (e) => n.dispatch(e), n), n.focus(), !0) : !1;
2454
2455
  }
2455
- function S(e) {
2456
+ function w(e) {
2456
2457
  let t = {
2457
- ...y,
2458
- color: { ...y.color }
2458
+ ...S,
2459
+ color: { ...S.color }
2459
2460
  };
2460
2461
  switch (e) {
2461
2462
  case "all":
2462
- x("setAllTableBorders", t);
2463
+ C("setAllTableBorders", t);
2463
2464
  return;
2464
2465
  case "none":
2465
- x("removeTableBorders");
2466
+ C("removeTableBorders");
2466
2467
  return;
2467
2468
  case "box":
2468
- x("setOutsideTableBorders", t);
2469
+ C("setOutsideTableBorders", t);
2469
2470
  return;
2470
2471
  case "inside":
2471
2472
  case "insideH":
2472
2473
  case "insideV":
2473
- x("setInsideTableBorders", t);
2474
+ C("setInsideTableBorders", t);
2474
2475
  return;
2475
2476
  case "top":
2476
2477
  case "bottom":
2477
2478
  case "left":
2478
2479
  case "right":
2479
- x("setCellBorder", e, t, !0);
2480
+ C("setCellBorder", e, t, !0);
2480
2481
  return;
2481
2482
  }
2482
2483
  }
2483
- function C(e) {
2484
- y.color = { rgb: e.replace(/^#/, "") }, x("setTableBorderColor", e);
2484
+ function T(e) {
2485
+ S.color = { rgb: e.replace(/^#/, "") }, C("setTableBorderColor", e);
2485
2486
  }
2486
- function w(e) {
2487
- y.size = e, x("setTableBorderWidth", e);
2487
+ function E(e) {
2488
+ S.size = e, C("setTableBorderWidth", e);
2488
2489
  }
2489
- function T(e) {
2490
- x("setCellFillColor", e);
2490
+ function D(e) {
2491
+ C("setCellFillColor", e);
2491
2492
  }
2492
- let E = {
2493
+ let O = {
2493
2494
  autoFit: ["autoFitContents"],
2494
2495
  alignTableLeft: ["setTableProperties", { justification: "left" }],
2495
2496
  alignTableCenter: ["setTableProperties", { justification: "center" }],
@@ -2498,54 +2499,57 @@ var Ke = {
2498
2499
  verticalAlignMiddle: ["setCellVerticalAlign", "center"],
2499
2500
  verticalAlignBottom: ["setCellVerticalAlign", "bottom"]
2500
2501
  };
2501
- function D(e) {
2502
- if (e === "tableProperties") return;
2503
- let t = E[e];
2504
- t ? x(...t) : x(e);
2505
- }
2506
- function O(e) {
2507
- x("setCellMargins", e);
2508
- }
2509
2502
  function k(e) {
2510
- x("setCellTextDirection", e);
2503
+ if (e === "tableProperties") {
2504
+ i("open-table-properties");
2505
+ return;
2506
+ }
2507
+ let t = O[e];
2508
+ t ? C(...t) : C(e);
2511
2509
  }
2512
2510
  function A(e) {
2513
- x("setRowHeight", e.height, e.rule);
2511
+ C("setCellMargins", e);
2512
+ }
2513
+ function M(e) {
2514
+ C("setCellTextDirection", e);
2515
+ }
2516
+ function N(e) {
2517
+ C("setRowHeight", e.height, e.rule);
2514
2518
  }
2515
2519
  return t({
2516
- isInTable: i,
2517
- canSplit: s,
2518
- canMerge: h,
2519
- rowCount: g,
2520
- columnCount: _,
2521
- currentJustification: v,
2522
- onBorderPreset: S,
2523
- onBorderColor: C,
2524
- onBorderWidth: w,
2525
- onCellFill: T,
2526
- onMoreAction: D,
2527
- onCellMargins: O,
2528
- onCellTextDirection: k,
2529
- onRowHeight: A
2530
- }), (t, n) => i.value ? (b(), l(a, { key: 0 }, [
2520
+ isInTable: d,
2521
+ canSplit: p,
2522
+ canMerge: _,
2523
+ rowCount: v,
2524
+ columnCount: y,
2525
+ currentJustification: x,
2526
+ onBorderPreset: w,
2527
+ onBorderColor: T,
2528
+ onBorderWidth: E,
2529
+ onCellFill: D,
2530
+ onMoreAction: k,
2531
+ onCellMargins: A,
2532
+ onCellTextDirection: M,
2533
+ onRowHeight: N
2534
+ }), (t, n) => d.value ? (b(), l(a, { key: 0 }, [
2531
2535
  n[0] ||= u("span", { class: "divider" }, null, -1),
2532
- f(Wt, { onChange: S }),
2533
- f(Gt, m({ theme: e.theme ?? null }, p.value, { onChange: C }), null, 16, ["theme"]),
2534
- f(Xt, { onChange: w }),
2536
+ f(Wt, { onChange: w }),
2537
+ f(Gt, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
2538
+ f(Xt, { onChange: E }),
2535
2539
  f(Zt, {
2536
2540
  theme: e.theme ?? null,
2537
- onChange: T
2541
+ onChange: D
2538
2542
  }, null, 8, ["theme"]),
2539
2543
  f(jn, {
2540
- "can-split": s.value,
2541
- "can-merge": h.value,
2542
- "row-count": g.value,
2543
- "column-count": _.value,
2544
- "current-justification": v.value,
2545
- onAction: D,
2546
- onCellMargins: O,
2547
- onCellTextDirection: k,
2548
- onRowHeight: A
2544
+ "can-split": p.value,
2545
+ "can-merge": _.value,
2546
+ "row-count": v.value,
2547
+ "column-count": y.value,
2548
+ "current-justification": x.value,
2549
+ onAction: k,
2550
+ onCellMargins: A,
2551
+ onCellTextDirection: M,
2552
+ onRowHeight: N
2549
2553
  }, null, 8, [
2550
2554
  "can-split",
2551
2555
  "can-merge",
@@ -2555,7 +2559,7 @@ var Ke = {
2555
2559
  ])
2556
2560
  ], 64)) : c("", !0);
2557
2561
  }
2558
- }), [["__scopeId", "data-v-90f8e7a0"]]), Nn = { class: "docx-vertical-ruler__ticks" }, Pn = 15840, Fn = 1440, In = 1440, Ln = 567, Rn = /*#__PURE__*/ t(/* @__PURE__ */ p({
2562
+ }), [["__scopeId", "data-v-c73a7e43"]]), Nn = { class: "docx-vertical-ruler__ticks" }, Pn = 15840, Fn = 1440, In = 1440, Ln = 567, Rn = /*#__PURE__*/ t(/* @__PURE__ */ p({
2559
2563
  __name: "VerticalRuler",
2560
2564
  props: {
2561
2565
  sectionProps: {},
@@ -2570,10 +2574,10 @@ var Ke = {
2570
2574
  setup(e, { emit: t }) {
2571
2575
  let n = e, r = t, i = S(null), s = S(null);
2572
2576
  function d(e) {
2573
- return z(e) * n.zoom;
2577
+ return B(e) * n.zoom;
2574
2578
  }
2575
2579
  function f(e) {
2576
- return Math.round(R(e / n.zoom));
2580
+ return Math.round(z(e / n.zoom));
2577
2581
  }
2578
2582
  let p = o(() => n.sectionProps?.pageHeight ?? Pn), m = o(() => n.sectionProps?.marginTop ?? Fn), h = o(() => n.sectionProps?.marginBottom ?? Fn), g = o(() => d(p.value)), y = o(() => d(m.value)), x = o(() => d(h.value)), w = o(() => ({
2579
2583
  position: "relative",
@@ -2859,20 +2863,20 @@ var Wn = /* @__PURE__ */ p({
2859
2863
  "delete"
2860
2864
  ],
2861
2865
  setup(e, { emit: t }) {
2862
- let r = e, i = t, a = S(!1);
2866
+ let n = e, i = t, a = S(!1);
2863
2867
  function o() {
2864
- a.value = !1, i("delete", r.comment.id);
2868
+ a.value = !1, i("delete", n.comment.id);
2865
2869
  }
2866
- return (t, r) => (b(), l("div", {
2870
+ return (t, n) => (b(), l("div", {
2867
2871
  class: g(["comment-card", { "comment-card--expanded": e.expanded }]),
2868
2872
  "data-comment-id": e.comment.id,
2869
- onClick: r[5] ||= (e) => t.$emit("click"),
2870
- onMousedown: r[6] ||= F(() => {}, ["stop"])
2873
+ onClick: n[5] ||= (e) => t.$emit("click"),
2874
+ onMousedown: n[6] ||= F(() => {}, ["stop"])
2871
2875
  }, [
2872
- e.comment.done ? (b(), l("div", rr, [f(n, {
2876
+ e.comment.done ? (b(), l("div", rr, [f(r, {
2873
2877
  name: "check",
2874
2878
  size: 12
2875
- }), r[7] ||= u("span", null, "Resolved", -1)])) : c("", !0),
2879
+ }), n[7] ||= u("span", null, "Resolved", -1)])) : c("", !0),
2876
2880
  u("div", ir, [
2877
2881
  f(Wn, {
2878
2882
  name: e.comment.author,
@@ -2883,24 +2887,24 @@ var Wn = /* @__PURE__ */ p({
2883
2887
  u("button", {
2884
2888
  class: "comment-card__icon-btn",
2885
2889
  title: e.comment.done ? "Reopen" : "Resolve",
2886
- onClick: r[0] ||= F((n) => e.comment.done ? t.$emit("unresolve", e.comment.id) : t.$emit("resolve", e.comment.id), ["stop"])
2887
- }, [f(n, {
2890
+ onClick: n[0] ||= F((n) => e.comment.done ? t.$emit("unresolve", e.comment.id) : t.$emit("resolve", e.comment.id), ["stop"])
2891
+ }, [f(r, {
2888
2892
  name: e.comment.done ? "undo" : "check",
2889
2893
  size: 20
2890
2894
  }, null, 8, ["name"])], 8, lr),
2891
2895
  u("button", {
2892
2896
  class: "comment-card__icon-btn",
2893
2897
  title: "More options",
2894
- onClick: r[1] ||= F((e) => a.value = !a.value, ["stop"])
2895
- }, [f(n, {
2898
+ onClick: n[1] ||= F((e) => a.value = !a.value, ["stop"])
2899
+ }, [f(r, {
2896
2900
  name: "more_vert",
2897
2901
  size: 20
2898
2902
  })]),
2899
2903
  a.value ? (b(), l("div", {
2900
2904
  key: 0,
2901
2905
  class: "comment-card__menu",
2902
- onClick: r[2] ||= F(() => {}, ["stop"]),
2903
- onMousedown: r[3] ||= F(() => {}, ["stop"])
2906
+ onClick: n[2] ||= F(() => {}, ["stop"]),
2907
+ onMousedown: n[3] ||= F(() => {}, ["stop"])
2904
2908
  }, [u("button", {
2905
2909
  class: "comment-card__menu-item",
2906
2910
  onClick: o
@@ -2914,7 +2918,7 @@ var Wn = /* @__PURE__ */ p({
2914
2918
  }, null, 8, ["replies", "is-expanded"]),
2915
2919
  e.expanded && !e.comment.done ? (b(), s(tr, {
2916
2920
  key: 1,
2917
- onSubmit: r[4] ||= (n) => t.$emit("reply", e.comment.id, n)
2921
+ onSubmit: n[4] ||= (n) => t.$emit("reply", e.comment.id, n)
2918
2922
  })) : c("", !0)
2919
2923
  ], 42, nr));
2920
2924
  }
@@ -2923,13 +2927,13 @@ var Wn = /* @__PURE__ */ p({
2923
2927
  props: { comment: {} },
2924
2928
  emits: ["toggle-expand"],
2925
2929
  setup(e) {
2926
- return (t, r) => (b(), l("div", {
2930
+ return (t, n) => (b(), l("div", {
2927
2931
  class: "resolved-comment-marker",
2928
2932
  "data-comment-id": e.comment.id,
2929
2933
  "data-comment-resolved": "true",
2930
- onClick: r[0] ||= (e) => t.$emit("toggle-expand"),
2931
- onMousedown: r[1] ||= F(() => {}, ["stop"])
2932
- }, [f(n, {
2934
+ onClick: n[0] ||= (e) => t.$emit("toggle-expand"),
2935
+ onMousedown: n[1] ||= F(() => {}, ["stop"])
2936
+ }, [f(r, {
2933
2937
  name: "chat_bubble_check",
2934
2938
  size: 20
2935
2939
  })], 40, fr));
@@ -2940,21 +2944,18 @@ var Wn = /* @__PURE__ */ p({
2940
2944
  }, vr = {
2941
2945
  key: 0,
2942
2946
  class: "tc-card__actions"
2943
- }, yr = ["title"], br = ["title"], xr = { class: "tc-card__body" }, Sr = { class: "tc-card__deleted" }, Cr = { class: "tc-card__inserted" }, wr = { class: "tc-card__inserted" }, Tr = { class: "tc-card__deleted" }, Er = { class: "tc-card__changed" }, Dr = {
2944
- key: 4,
2945
- class: "tc-card__inserted"
2946
- }, Or = {
2947
+ }, yr = ["title"], br = ["title"], xr = { class: "tc-card__body" }, Sr = { class: "tc-card__deleted" }, Cr = { class: "tc-card__inserted" }, wr = { class: "tc-card__inserted" }, Tr = { class: "tc-card__deleted" }, Er = { class: "tc-card__changed" }, Dr = { class: "tc-card__changed" }, Or = {
2947
2948
  key: 5,
2948
- class: "tc-card__deleted"
2949
+ class: "tc-card__inserted"
2949
2950
  }, kr = {
2950
2951
  key: 6,
2951
- class: "tc-card__inserted"
2952
+ class: "tc-card__deleted"
2952
2953
  }, Ar = {
2953
2954
  key: 7,
2954
- class: "tc-card__deleted"
2955
+ class: "tc-card__inserted"
2955
2956
  }, jr = {
2956
2957
  key: 8,
2957
- class: "tc-card__changed"
2958
+ class: "tc-card__deleted"
2958
2959
  }, Mr = {
2959
2960
  key: 9,
2960
2961
  class: "tc-card__changed"
@@ -2966,11 +2967,14 @@ var Wn = /* @__PURE__ */ p({
2966
2967
  class: "tc-card__changed"
2967
2968
  }, Fr = {
2968
2969
  key: 12,
2969
- class: "tc-card__inserted"
2970
+ class: "tc-card__changed"
2970
2971
  }, Ir = {
2971
2972
  key: 13,
2973
+ class: "tc-card__inserted"
2974
+ }, Lr = {
2975
+ key: 14,
2972
2976
  class: "tc-card__deleted"
2973
- }, Lr = /*#__PURE__*/ t(/* @__PURE__ */ p({
2977
+ }, Rr = /*#__PURE__*/ t(/* @__PURE__ */ p({
2974
2978
  __name: "TrackedChangeCard",
2975
2979
  props: {
2976
2980
  change: {},
@@ -2984,7 +2988,7 @@ var Wn = /* @__PURE__ */ p({
2984
2988
  "reply"
2985
2989
  ],
2986
2990
  setup(e, { emit: t }) {
2987
- let { t: i } = r(), p = e, m = t, h = o(() => p.change.author || i("trackedChanges.unknown"));
2991
+ let { t: i } = n(), p = e, m = t, h = o(() => p.change.author || i("trackedChanges.unknown"));
2988
2992
  function _() {
2989
2993
  let e = /* @__PURE__ */ new Set([p.change.revisionId]);
2990
2994
  p.change.type === "replacement" && p.change.insertionRevisionId != null && e.add(p.change.insertionRevisionId);
@@ -2997,10 +3001,10 @@ var Wn = /* @__PURE__ */ p({
2997
3001
  function y() {
2998
3002
  for (let e of _()) m("reject-by-id", e);
2999
3003
  }
3000
- return (t, r) => (b(), l("div", {
3004
+ return (t, n) => (b(), l("div", {
3001
3005
  class: g(["tc-card", { "tc-card--expanded": e.expanded }]),
3002
- onClick: r[1] ||= (e) => t.$emit("click"),
3003
- onMousedown: r[2] ||= F(() => {}, ["stop"])
3006
+ onClick: n[1] ||= (e) => t.$emit("click"),
3007
+ onMousedown: n[2] ||= F(() => {}, ["stop"])
3004
3008
  }, [
3005
3009
  u("div", mr, [
3006
3010
  f(Wn, {
@@ -3012,14 +3016,14 @@ var Wn = /* @__PURE__ */ p({
3012
3016
  class: "tc-card__icon-btn",
3013
3017
  title: O(i)("acceptChange"),
3014
3018
  onClick: F(v, ["stop"])
3015
- }, [f(n, {
3019
+ }, [f(r, {
3016
3020
  name: "check",
3017
3021
  size: 20
3018
3022
  })], 8, yr), u("button", {
3019
3023
  class: "tc-card__icon-btn",
3020
3024
  title: O(i)("rejectChange"),
3021
3025
  onClick: F(y, ["stop"])
3022
- }, [f(n, {
3026
+ }, [f(r, {
3023
3027
  name: "close",
3024
3028
  size: 20
3025
3029
  })], 8, br)])) : c("", !0)
@@ -3029,18 +3033,18 @@ var Wn = /* @__PURE__ */ p({
3029
3033
  u("span", Sr, "\"" + E(O($)(e.change.deletedText || "")) + "\"", 1),
3030
3034
  d(" " + E(O(i)("trackedChanges.with")) + " ", 1),
3031
3035
  u("span", Cr, "\"" + E(O($)(e.change.text)) + "\"", 1)
3032
- ], 64)) : e.change.type === "paragraphMarkInsertion" ? (b(), l(a, { key: 1 }, [d(E(O(i)("revisions.paragraphMarkInserted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [r[3] ||= d(": ", -1), u("span", wr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "paragraphMarkDeletion" ? (b(), l(a, { key: 2 }, [d(E(O(i)("revisions.paragraphMarkDeleted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [r[4] ||= d(": ", -1), u("span", Tr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "paragraphPropertiesChanged" ? (b(), l(a, { key: 3 }, [d(E(O(i)("revisions.paragraphPropertiesChanged")), 1), e.change.text ? (b(), l(a, { key: 0 }, [r[5] ||= d(": ", -1), u("span", Er, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Dr, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", Or, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", kr, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", Ar, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", jr, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "rowPropertiesChanged" ? (b(), l("span", Mr, E(O(i)("revisions.rowPropertiesChanged")), 1)) : e.change.type === "cellPropertiesChanged" ? (b(), l("span", Nr, E(O(i)("revisions.cellPropertiesChanged")), 1)) : e.change.type === "tablePropertiesChanged" ? (b(), l("span", Pr, E(O(i)("revisions.tablePropertiesChanged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Fr, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", Ir, E(O(i)("revisions.tableDeleted")), 1)) : (b(), l(a, { key: 14 }, [d(E(e.change.type === "insertion" ? O(i)("inserted") : O(i)("deleted")) + " ", 1), u("span", { class: g(e.change.type === "insertion" ? "tc-card__inserted" : "tc-card__deleted") }, " \"" + E(O($)(e.change.text)) + "\" ", 3)], 64))]),
3036
+ ], 64)) : e.change.type === "paragraphMarkInsertion" ? (b(), l(a, { key: 1 }, [d(E(O(i)("revisions.paragraphMarkInserted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[3] ||= d(": ", -1), u("span", wr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "paragraphMarkDeletion" ? (b(), l(a, { key: 2 }, [d(E(O(i)("revisions.paragraphMarkDeleted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[4] ||= d(": ", -1), u("span", Tr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "paragraphPropertiesChanged" ? (b(), l(a, { key: 3 }, [d(E(O(i)("revisions.paragraphPropertiesChanged")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[5] ||= d(": ", -1), u("span", Er, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "runPropertiesChanged" ? (b(), l(a, { key: 4 }, [d(E(O(i)("revisions.runPropertiesChanged")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[6] ||= d(": ", -1), u("span", Dr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Or, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", kr, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", Ar, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", jr, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", Mr, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "rowPropertiesChanged" ? (b(), l("span", Nr, E(O(i)("revisions.rowPropertiesChanged")), 1)) : e.change.type === "cellPropertiesChanged" ? (b(), l("span", Pr, E(O(i)("revisions.cellPropertiesChanged")), 1)) : e.change.type === "tablePropertiesChanged" ? (b(), l("span", Fr, E(O(i)("revisions.tablePropertiesChanged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Ir, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", Lr, E(O(i)("revisions.tableDeleted")), 1)) : (b(), l(a, { key: 15 }, [d(E(e.change.type === "insertion" ? O(i)("inserted") : O(i)("deleted")) + " ", 1), u("span", { class: g(e.change.type === "insertion" ? "tc-card__inserted" : "tc-card__deleted") }, " \"" + E(O($)(e.change.text)) + "\" ", 3)], 64))]),
3033
3037
  f(Zn, {
3034
3038
  replies: e.replies,
3035
3039
  "is-expanded": e.expanded
3036
3040
  }, null, 8, ["replies", "is-expanded"]),
3037
3041
  e.expanded ? (b(), s(tr, {
3038
3042
  key: 0,
3039
- onSubmit: r[0] ||= (n) => t.$emit("reply", e.change.revisionId, n)
3043
+ onSubmit: n[0] ||= (n) => t.$emit("reply", e.change.revisionId, n)
3040
3044
  })) : c("", !0)
3041
3045
  ], 34));
3042
3046
  }
3043
- }), [["__scopeId", "data-v-510d39b5"]]), Rr = ["onKeydown"], zr = { class: "add-comment-card__actions" }, Br = ["disabled"], Vr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3047
+ }), [["__scopeId", "data-v-c16b1b1e"]]), zr = ["onKeydown"], Br = { class: "add-comment-card__actions" }, Vr = ["disabled"], Hr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3044
3048
  __name: "AddCommentCard",
3045
3049
  emits: ["submit", "cancel"],
3046
3050
  setup(e, { emit: t }) {
@@ -3069,19 +3073,19 @@ var Wn = /* @__PURE__ */ p({
3069
3073
  P(F(s, ["exact", "prevent"]), ["enter"]),
3070
3074
  P(c, ["esc"])
3071
3075
  ]
3072
- }, null, 40, Rr), [[A, r.value]]), u("div", zr, [u("button", {
3076
+ }, null, 40, zr), [[A, r.value]]), u("div", Br, [u("button", {
3073
3077
  class: "add-comment-card__cancel",
3074
3078
  onClick: c
3075
3079
  }, "Cancel"), u("button", {
3076
3080
  class: g(["add-comment-card__submit", { "add-comment-card__submit--active": a.value }]),
3077
3081
  disabled: !a.value,
3078
3082
  onClick: s
3079
- }, " Comment ", 10, Br)])], 32));
3083
+ }, " Comment ", 10, Vr)])], 32));
3080
3084
  }
3081
3085
  }), [["__scopeId", "data-v-2939f9cd"]]);
3082
3086
  //#endregion
3083
3087
  //#region src/composables/useCommentSidebarItems.ts
3084
- function Hr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: r, addCommentYPosition: i }) {
3088
+ function Ur({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: r, addCommentYPosition: i }) {
3085
3089
  return o(() => {
3086
3090
  let a = [];
3087
3091
  r?.value && i?.value != null && a.push({
@@ -3124,7 +3128,7 @@ function Hr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment:
3124
3128
  }
3125
3129
  //#endregion
3126
3130
  //#region src/components/UnifiedSidebar.vue?vue&type=script&setup=true&lang.ts
3127
- var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3131
+ var Wr = ["data-card-id"], Gr = 16, Kr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3128
3132
  __name: "UnifiedSidebar",
3129
3133
  props: {
3130
3134
  isOpen: { type: Boolean },
@@ -3164,7 +3168,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3164
3168
  let t = e.target;
3165
3169
  t instanceof HTMLElement && t.closest(".unified-sidebar__card-slot") || f.value !== null && (i.value = null, r("update:activeItemId", null));
3166
3170
  }
3167
- let h = Hr({
3171
+ let h = Ur({
3168
3172
  comments: D(n, "comments"),
3169
3173
  trackedChanges: D(n, "trackedChanges"),
3170
3174
  showResolved: o(() => n.showResolved ?? !1),
@@ -3228,7 +3232,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3228
3232
  for (let { item: n, y: r } of W({
3229
3233
  items: t,
3230
3234
  anchorPositions: s,
3231
- renderedDomContext: L(e),
3235
+ renderedDomContext: R(e),
3232
3236
  zoom: 1,
3233
3237
  cardHeights: l,
3234
3238
  lastKnown: w
@@ -3239,7 +3243,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3239
3243
  let e = 0;
3240
3244
  for (let t of x.value.values()) e = Math.max(e, t);
3241
3245
  return e + 200;
3242
- }), R = o(() => {
3246
+ }), L = o(() => {
3243
3247
  let e = f.value;
3244
3248
  if (!e) return "";
3245
3249
  if (e.startsWith("comment-")) return `.paged-editor__pages [data-comment-id="${e.slice(8)}"] { background-color: rgba(255, 212, 0, 0.35) !important; border-bottom: 2px solid rgba(255, 212, 0, 0.7) !important; }`;
@@ -3252,7 +3256,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3252
3256
  }
3253
3257
  return "";
3254
3258
  }), z = o(() => {
3255
- let e = n.pageWidthPx / 2 + Wr - 176, t = x.value.size > 0 || h.value.length === 0;
3259
+ let e = n.pageWidthPx / 2 + Gr - 176, t = x.value.size > 0 || h.value.length === 0;
3256
3260
  return {
3257
3261
  position: "absolute",
3258
3262
  top: "0",
@@ -3308,8 +3312,8 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3308
3312
  k?.disconnect(), k = null, e && (k = new ResizeObserver(() => H()), k.observe(e), G());
3309
3313
  }), v(() => {
3310
3314
  k?.disconnect(), A?.disconnect(), U && U.removeEventListener("scroll", H);
3311
- }), (t, n) => (b(), l(a, null, [R.value ? (b(), s(T("style"), { key: 0 }, {
3312
- default: M(() => [d(E(R.value), 1)]),
3315
+ }), (t, n) => (b(), l(a, null, [L.value ? (b(), s(T("style"), { key: 0 }, {
3316
+ default: M(() => [d(E(L.value), 1)]),
3313
3317
  _: 1
3314
3318
  })) : c("", !0), e.isOpen ? (b(), l("aside", {
3315
3319
  key: 1,
@@ -3326,7 +3330,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3326
3330
  class: "unified-sidebar__card-slot",
3327
3331
  "data-card-id": e.id,
3328
3332
  style: _(B(e.id))
3329
- }, [e.kind === "add-comment" ? (b(), s(Vr, {
3333
+ }, [e.kind === "add-comment" ? (b(), s(Hr, {
3330
3334
  key: 0,
3331
3335
  onSubmit: n[0] ||= (e) => t.$emit("add-comment", e),
3332
3336
  onCancel: n[1] ||= (e) => t.$emit("cancel-add-comment")
@@ -3349,7 +3353,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3349
3353
  "replies",
3350
3354
  "expanded",
3351
3355
  "onClick"
3352
- ])) : e.kind === "tracked-change" ? (b(), s(Lr, {
3356
+ ])) : e.kind === "tracked-change" ? (b(), s(Rr, {
3353
3357
  key: 3,
3354
3358
  change: e.change,
3355
3359
  replies: e.replies ?? [],
@@ -3365,9 +3369,9 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3365
3369
  "replies",
3366
3370
  "expanded",
3367
3371
  "onClick"
3368
- ])) : c("", !0)], 12, Ur))), 128))], 4)], 36)) : c("", !0)], 64));
3372
+ ])) : c("", !0)], 12, Wr))), 128))], 4)], 36)) : c("", !0)], 64));
3369
3373
  }
3370
- }), [["__scopeId", "data-v-e91a4f24"]]), Kr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3374
+ }), [["__scopeId", "data-v-e91a4f24"]]), qr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3371
3375
  __name: "StylePicker",
3372
3376
  props: {
3373
3377
  value: {},
@@ -3426,12 +3430,12 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3426
3430
  "class"
3427
3431
  ]));
3428
3432
  }
3429
- }), [["__scopeId", "data-v-06469e2c"]]), qr = [
3433
+ }), [["__scopeId", "data-v-06469e2c"]]), Jr = [
3430
3434
  "disabled",
3431
3435
  "title",
3432
3436
  "aria-expanded",
3433
3437
  "onClick"
3434
- ], Jr = { class: "docx-align__panel" }, Yr = ["title", "onClick"], Xr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3438
+ ], Yr = { class: "docx-align__panel" }, Xr = ["title", "onClick"], Zr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3435
3439
  __name: "AlignmentButtons",
3436
3440
  props: {
3437
3441
  value: { default: "left" },
@@ -3442,7 +3446,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3442
3446
  },
3443
3447
  emits: ["change"],
3444
3448
  setup(e, { emit: t }) {
3445
- let { Popover: r } = i(), c = e, d = t, p = S(!1), m = [
3449
+ let { Popover: n } = i(), c = e, d = t, p = S(!1), m = [
3446
3450
  {
3447
3451
  value: "left",
3448
3452
  label: "Align left",
@@ -3471,7 +3475,7 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3471
3475
  function v(e) {
3472
3476
  d("change", e), p.value = !1;
3473
3477
  }
3474
- return (t, i) => (b(), s(O(r), {
3478
+ return (t, i) => (b(), s(O(n), {
3475
3479
  open: p.value,
3476
3480
  "onUpdate:open": i[0] ||= (e) => p.value = e,
3477
3481
  onClose: i[1] ||= (e) => p.value = !1
@@ -3484,27 +3488,27 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3484
3488
  "aria-expanded": p.value,
3485
3489
  "aria-haspopup": "true",
3486
3490
  onClick: F(t, ["prevent"])
3487
- }, [f(n, {
3491
+ }, [f(r, {
3488
3492
  name: h.value,
3489
3493
  size: 20
3490
- }, null, 8, ["name"]), f(n, {
3494
+ }, null, 8, ["name"]), f(r, {
3491
3495
  name: "arrow_drop_down",
3492
3496
  size: 14
3493
- })], 10, qr)]),
3494
- panel: M(() => [u("div", Jr, [(b(), l(a, null, C(m, (t) => u("button", {
3497
+ })], 10, Jr)]),
3498
+ panel: M(() => [u("div", Yr, [(b(), l(a, null, C(m, (t) => u("button", {
3495
3499
  key: t.value,
3496
3500
  type: "button",
3497
3501
  class: g(["docx-align__option", { "docx-align__option--active": e.value === t.value }]),
3498
3502
  title: `${t.label} (${t.shortcut})`,
3499
3503
  onClick: F((e) => v(t.value), ["prevent"])
3500
- }, [f(n, {
3504
+ }, [f(r, {
3501
3505
  name: t.icon,
3502
3506
  size: 20
3503
- }, null, 8, ["name"])], 10, Yr)), 64))])]),
3507
+ }, null, 8, ["name"])], 10, Xr)), 64))])]),
3504
3508
  _: 1
3505
3509
  }, 8, ["open"]));
3506
3510
  }
3507
- }), [["__scopeId", "data-v-088792b0"]]), Zr = { class: "docx-list-btns" }, Qr = ["disabled"], $r = ["disabled"], ei = ["disabled"], ti = ["disabled"], ni = /*#__PURE__*/ t(/* @__PURE__ */ p({
3511
+ }), [["__scopeId", "data-v-088792b0"]]), Qr = { class: "docx-list-btns" }, $r = ["disabled"], ei = ["disabled"], ti = ["disabled"], ni = ["disabled"], ri = /*#__PURE__*/ t(/* @__PURE__ */ p({
3508
3512
  __name: "ListButtons",
3509
3513
  props: {
3510
3514
  listState: {},
@@ -3528,48 +3532,48 @@ var Ur = ["data-card-id"], Wr = 16, Gr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3528
3532
  "outdent"
3529
3533
  ],
3530
3534
  setup(e) {
3531
- return (t, r) => (b(), l("span", Zr, [
3535
+ return (t, n) => (b(), l("span", Qr, [
3532
3536
  u("button", {
3533
3537
  type: "button",
3534
3538
  class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "bullet" }]),
3535
3539
  disabled: e.disabled,
3536
3540
  title: "Bullet list",
3537
- onClick: r[0] ||= F((e) => t.$emit("bullet-list"), ["prevent"])
3538
- }, [f(n, {
3541
+ onClick: n[0] ||= F((e) => t.$emit("bullet-list"), ["prevent"])
3542
+ }, [f(r, {
3539
3543
  name: "format_list_bulleted",
3540
3544
  size: 20
3541
- })], 10, Qr),
3545
+ })], 10, $r),
3542
3546
  u("button", {
3543
3547
  type: "button",
3544
3548
  class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "numbered" }]),
3545
3549
  disabled: e.disabled,
3546
3550
  title: "Numbered list",
3547
- onClick: r[1] ||= F((e) => t.$emit("numbered-list"), ["prevent"])
3548
- }, [f(n, {
3551
+ onClick: n[1] ||= F((e) => t.$emit("numbered-list"), ["prevent"])
3552
+ }, [f(r, {
3549
3553
  name: "format_list_numbered",
3550
3554
  size: 20
3551
- })], 10, $r),
3555
+ })], 10, ei),
3552
3556
  e.showIndentButtons ? (b(), l(a, { key: 0 }, [u("button", {
3553
3557
  type: "button",
3554
3558
  class: "docx-list-btns__btn",
3555
3559
  disabled: e.disabled || !e.canOutdent,
3556
3560
  title: "Decrease indent",
3557
- onClick: r[2] ||= F((e) => t.$emit("outdent"), ["prevent"])
3558
- }, [f(n, {
3561
+ onClick: n[2] ||= F((e) => t.$emit("outdent"), ["prevent"])
3562
+ }, [f(r, {
3559
3563
  name: "format_indent_decrease",
3560
3564
  size: 20
3561
- })], 8, ei), u("button", {
3565
+ })], 8, ti), u("button", {
3562
3566
  type: "button",
3563
3567
  class: "docx-list-btns__btn",
3564
3568
  disabled: e.disabled,
3565
3569
  title: "Increase indent",
3566
- onClick: r[3] ||= F((e) => t.$emit("indent"), ["prevent"])
3567
- }, [f(n, {
3570
+ onClick: n[3] ||= F((e) => t.$emit("indent"), ["prevent"])
3571
+ }, [f(r, {
3568
3572
  name: "format_indent_increase",
3569
3573
  size: 20
3570
- })], 8, ti)], 64)) : c("", !0)
3574
+ })], 8, ni)], 64)) : c("", !0)
3571
3575
  ]));
3572
3576
  }
3573
3577
  }), [["__scopeId", "data-v-82fa229d"]]);
3574
3578
  //#endregion
3575
- export { ue as C, K as D, te as E, de as S, ie as T, Wt as _, Vr as a, be as b, dr as c, Rn as d, Mn as f, Gt as g, Xt as h, Gr as i, tr as l, Zt as m, Xr as n, Lr as o, jn as p, Kr as r, pr as s, ni as t, Zn as u, Bt as v, X as w, fe as x, kt as y };
3579
+ export { ue as C, K as D, te as E, de as S, ie as T, Wt as _, Hr as a, be as b, dr as c, Rn as d, Mn as f, Gt as g, Xt as h, Kr as i, tr as l, Zt as m, Zr as n, Rr as o, jn as p, qr as r, pr as s, ri as t, Zn as u, Bt as v, X as w, fe as x, kt as y };