@stll/folio-vue 0.28.0 → 0.29.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 (61) hide show
  1. package/README.md +5 -0
  2. package/dist/{SplitCellDialog-Dge_CE-B.cjs → SplitCellDialog-Bc2TjxMb.cjs} +1 -1
  3. package/dist/{SplitCellDialog-Vl4gq22E.js → SplitCellDialog-DULmbU_P.js} +6 -6
  4. package/dist/StylePicker-CD28Jh8D.cjs +4 -0
  5. package/dist/{StylePicker-CfC5Ef1i.js → StylePicker-D8VHvoMT.js} +664 -591
  6. package/dist/components/AnonymizationRectsOverlay.vue.d.ts +7 -4
  7. package/dist/components/AutocompleteSuggestionOverlay.vue.d.ts +5 -0
  8. package/dist/components/ContentControlWidgetsOverlay.vue.d.ts +5 -1
  9. package/dist/components/DocumentOutline.vue.d.ts +2 -0
  10. package/dist/components/DocxEditor/DocxEditorDialogs.vue.d.ts +3 -2
  11. package/dist/components/DocxEditor/pagedEditorRef.d.ts +11 -9
  12. package/dist/components/DocxEditor/types.d.ts +81 -18
  13. package/dist/components/DocxEditor.vue.d.ts +1 -1
  14. package/dist/components/FormattingBar.types.d.ts +2 -1
  15. package/dist/components/ReviewControls.vue.d.ts +2 -2
  16. package/dist/components/Toolbar.vue.d.ts +6 -5
  17. package/dist/components/UnifiedSidebar.vue.d.ts +3 -0
  18. package/dist/components/dialogs/FootnotePropertiesDialog.vue.d.ts +2 -2
  19. package/dist/components/dialogs/ImagePositionDialog.vue.d.ts +2 -2
  20. package/dist/components/dialogs/PageSetupDialog.vue.d.ts +4 -3
  21. package/dist/components/dialogs/SetNumberingValueDialog.vue.d.ts +2 -2
  22. package/dist/components/dialogs/TablePropertiesDialog.vue.d.ts +2 -2
  23. package/dist/components/dialogs/WatermarkDialog.vue.d.ts +4 -3
  24. package/dist/components/sidebar/CommentCard.vue.d.ts +2 -2
  25. package/dist/components/ui/ColorPicker.vue.d.ts +2 -1
  26. package/dist/components/ui/HorizontalRuler.vue.d.ts +4 -3
  27. package/dist/components/ui/TableBorderColorPicker.vue.d.ts +2 -1
  28. package/dist/components/ui/TableCellFillPicker.vue.d.ts +2 -1
  29. package/dist/components/ui/TableToolbar.vue.d.ts +2 -1
  30. package/dist/components/ui/VerticalRuler.vue.d.ts +3 -2
  31. package/dist/composables/commentMarks.d.ts +5 -14
  32. package/dist/composables/documentChrome.d.ts +14 -0
  33. package/dist/composables/useCommentLifecycle.d.ts +0 -2
  34. package/dist/composables/useCommentManagement.d.ts +5 -0
  35. package/dist/composables/useDocxEditor.d.ts +59 -15
  36. package/dist/composables/useDocxEditorRefApi.d.ts +20 -15
  37. package/dist/composables/useFontLifecycle.d.ts +2 -3
  38. package/dist/composables/useOutlineDrawerFocus.d.ts +1 -1
  39. package/dist/composables/usePageSetupControls.d.ts +2 -2
  40. package/dist/composables/usePagesPointer.d.ts +3 -2
  41. package/dist/composables/useParagraphStyleOptions.d.ts +2 -1
  42. package/dist/composables/useTableResize.d.ts +6 -1
  43. package/dist/composables.cjs +1 -1
  44. package/dist/composables.js +1 -1
  45. package/dist/dialogs.cjs +1 -1
  46. package/dist/dialogs.js +1 -1
  47. package/dist/folio-vue.css +1 -1
  48. package/dist/index.cjs +1 -1
  49. package/dist/index.d.ts +4 -4
  50. package/dist/index.js +2355 -2262
  51. package/dist/ui.cjs +1 -1
  52. package/dist/ui.js +28 -28
  53. package/dist/useZoom-BGTTHZwV.js +1119 -0
  54. package/dist/useZoom-u9lZMwJR.cjs +1 -0
  55. package/dist/utils/listItems.d.ts +7 -0
  56. package/dist/utils/rawDocument.d.ts +13 -0
  57. package/dist/utils/stylePreview.d.ts +2 -1
  58. package/package.json +9 -9
  59. package/dist/StylePicker-Bgu0Slqa.cjs +0 -4
  60. package/dist/useZoom-CKHgvyHZ.js +0 -1014
  61. package/dist/useZoom-Db3Q3xP7.cjs +0 -1
@@ -1,22 +1,23 @@
1
- import { A as e, D as t, F as n, O as r, y as i } from "./SplitCellDialog-Vl4gq22E.js";
1
+ import { A as e, D as t, F as n, O as r, y as i } from "./SplitCellDialog-DULmbU_P.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
3
  import { DISPLAY_MODES as I } from "@stll/folio-core/managers/EditorModeManager";
4
4
  import { PANEL_METRICS as L } from "@stll/folio-core/panel-layout";
5
5
  import { NO_LIST_STATE as ee, listStateLevel as R } from "@stll/folio-core/prosemirror";
6
- import { getTableContext as z } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
7
- import { extractSelectionContext as B } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
8
- import { redoDepth as te, undoDepth as ne } from "prosemirror-history";
9
- import { getFindParagraphText as V } from "@stll/folio-core/utils/findReplace";
6
+ import { executeEditorCommand as z } from "@stll/folio-core/prosemirror/executeEditorCommand";
7
+ import { getTableContext as B } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
8
+ import { extractSelectionContext as te } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
9
+ import { redoDepth as ne, undoDepth as V } from "prosemirror-history";
10
+ import { getFindParagraphText as H } from "@stll/folio-core/utils/findReplace";
10
11
  import { clearFormatting as re } from "@stll/folio-core/prosemirror/commands/formatting";
11
- import { executeEditorCommand as H } from "@stll/folio-core/prosemirror/executeEditorCommand";
12
12
  import { sliceText as U } from "@stll/folio-core/utils/sliceText";
13
- import { createRenderedDomContext as W } from "@stll/folio-core/render-dom/RenderedDomContext";
14
- import { commentAnchorSelector as G, indexCommentAnchors as K } from "@stll/folio-core/render-dom/commentAnchorAttributes";
15
- import { pixelsToTwips as q, twipsToPixels as J } from "@stll/folio-core/utils/units";
16
- import { onDocumentPointerDown as Y } from "@stll/folio-core/utils/documentPointerDown";
17
- import { resolveSidebarItemPositions as ie } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
13
+ import { createRenderedDomContext as ie } from "@stll/folio-core/render-dom/RenderedDomContext";
14
+ import { commentAnchorSelector as W, indexCommentAnchors as ae } from "@stll/folio-core/render-dom/commentAnchorAttributes";
15
+ import { pixelsToTwips as G, twipsToPixels as K } from "@stll/folio-core/utils/units";
16
+ import { onDocumentPointerDown as q } from "@stll/folio-core/utils/documentPointerDown";
17
+ import { clampRulerValue as J, createRulerControl as Y, getHorizontalRulerBounds as oe, getVerticalRulerBounds as X } from "@stll/folio-core/utils/rulerControl";
18
+ import { resolveSidebarItemPositions as Z } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
18
19
  // src/components/CommentMarginMarkers.vue?vue&type=script&setup=true&lang.ts
19
- var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
20
+ var se = ["title", "onClick"], ce = /*#__PURE__*/ e(/* @__PURE__ */ p({
20
21
  __name: "CommentMarginMarkers",
21
22
  props: {
22
23
  comments: {},
@@ -32,7 +33,7 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
32
33
  if (t.sidebarOpen) return [];
33
34
  let e = t.pagesContainer;
34
35
  if (!e) return [];
35
- let n = e.getBoundingClientRect(), r = K(e), i = [];
36
+ let n = e.getBoundingClientRect(), r = ae(e), i = [];
36
37
  for (let a of t.comments) {
37
38
  if (a.parentId != null) continue;
38
39
  let o = r.get(String(a.id));
@@ -66,12 +67,12 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
66
67
  }, [f(r, {
67
68
  name: n.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
68
69
  size: 18
69
- }, null, 8, ["name"])], 12, ae))), 128))], 36)) : c("", !0);
70
+ }, null, 8, ["name"])], 12, se))), 128))], 36)) : c("", !0);
70
71
  }
71
- }), [["__scopeId", "data-v-4157fff7"]]), se = { class: "doc-name" }, ce = ["value"], le = {
72
+ }), [["__scopeId", "data-v-4157fff7"]]), le = { class: "doc-name" }, Q = ["value"], ue = {
72
73
  key: 1,
73
74
  class: "doc-name__text"
74
- }, ue = /*#__PURE__*/ e(/* @__PURE__ */ p({
75
+ }, de = /*#__PURE__*/ e(/* @__PURE__ */ p({
75
76
  __name: "DocumentName",
76
77
  props: {
77
78
  modelValue: {},
@@ -93,16 +94,16 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
93
94
  let t = e.target;
94
95
  t instanceof HTMLInputElement && (t.value.trim() || r("update:modelValue", "Untitled document.docx"));
95
96
  }
96
- return (t, n) => (b(), l("div", se, [e.editable ? (b(), l("input", {
97
+ return (t, n) => (b(), l("div", le, [e.editable ? (b(), l("input", {
97
98
  key: 0,
98
99
  class: "doc-name__input",
99
100
  value: i.value,
100
101
  placeholder: "Untitled document",
101
102
  onInput: a,
102
103
  onBlur: s
103
- }, null, 40, ce)) : (b(), l("span", le, E(i.value || "Untitled document"), 1))]));
104
+ }, null, 40, Q)) : (b(), l("span", ue, E(i.value || "Untitled document"), 1))]));
104
105
  }
105
- }), [["__scopeId", "data-v-0f0d068b"]]), X = ["aria-selected", "onMouseenter"], de = { class: "docx-table-grid-inline__label" }, fe = /*#__PURE__*/ e(/* @__PURE__ */ p({
106
+ }), [["__scopeId", "data-v-0f0d068b"]]), fe = ["aria-selected", "onMouseenter"], $ = { class: "docx-table-grid-inline__label" }, pe = /*#__PURE__*/ e(/* @__PURE__ */ p({
106
107
  __name: "TableGridInline",
107
108
  props: {
108
109
  gridRows: { default: 6 },
@@ -138,15 +139,15 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
138
139
  i.value = e.r, s.value = e.c;
139
140
  },
140
141
  onClick: F(d, ["prevent"])
141
- }, null, 42, X))), 128))], 36), u("div", de, E(i.value > 0 && s.value > 0 ? `${s.value} × ${i.value}` : "Select size"), 1)]));
142
+ }, null, 42, fe))), 128))], 36), u("div", $, E(i.value > 0 && s.value > 0 ? `${s.value} × ${i.value}` : "Select size"), 1)]));
142
143
  }
143
- }), [["__scopeId", "data-v-4e94349a"]]), pe = {
144
+ }), [["__scopeId", "data-v-4e94349a"]]), me = {
144
145
  class: "menu-bar",
145
146
  role: "menubar"
146
- }, me = {
147
+ }, he = {
147
148
  key: 1,
148
149
  class: "menu-bar__break-submenu"
149
- }, Z = ["onClick"], he = /*#__PURE__*/ e(/* @__PURE__ */ p({
150
+ }, ge = ["onClick"], _e = /*#__PURE__*/ e(/* @__PURE__ */ p({
150
151
  __name: "MenuBar",
151
152
  props: {
152
153
  showFileOpen: {
@@ -242,7 +243,7 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
242
243
  label: h("toolbar.reportIssue"),
243
244
  onClick: g("reportIssue")
244
245
  }]);
245
- return (t, n) => (b(), l("div", pe, [
246
+ return (t, n) => (b(), l("div", me, [
246
247
  f(O(d), {
247
248
  label: O(h)("toolbar.file"),
248
249
  items: _.value
@@ -255,12 +256,12 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
255
256
  label: O(h)("toolbar.insert"),
256
257
  items: y.value
257
258
  }, {
258
- submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(fe, {
259
+ submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(pe, {
259
260
  key: 0,
260
261
  onInsert: (e, n) => {
261
262
  m("insert-table", e, n), t();
262
263
  }
263
- }, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div", me, [(b(!0), l(a, null, C(x.value, (e) => (b(), l("button", {
264
+ }, null, 8, ["onInsert"])) : e.key === "break" ? (b(), l("div", he, [(b(!0), l(a, null, C(x.value, (e) => (b(), l("button", {
264
265
  key: e.action,
265
266
  type: "button",
266
267
  class: "menu-bar__break-item",
@@ -270,7 +271,7 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
270
271
  }, [f(r, {
271
272
  name: e.icon,
272
273
  size: 18
273
- }, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8, Z))), 128))])) : c("", !0)]),
274
+ }, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8, ge))), 128))])) : c("", !0)]),
274
275
  _: 1
275
276
  }, 8, ["label", "items"]),
276
277
  e.showHelpMenu ? (b(), s(O(d), {
@@ -280,7 +281,7 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
280
281
  }, null, 8, ["label", "items"])) : c("", !0)
281
282
  ]));
282
283
  }
283
- }), [["__scopeId", "data-v-a8e543d5"]]), ge = [
284
+ }), [["__scopeId", "data-v-a8e543d5"]]), ve = [
284
285
  {
285
286
  name: "Arial",
286
287
  fontFamily: "Arial",
@@ -341,7 +342,7 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
341
342
  fontFamily: "Consolas",
342
343
  category: "monospace"
343
344
  }
344
- ], _e = [
345
+ ], ye = [
345
346
  8,
346
347
  9,
347
348
  10,
@@ -356,7 +357,7 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
356
357
  36,
357
358
  48,
358
359
  72
359
- ], ve = [
360
+ ], be = [
360
361
  {
361
362
  id: "Normal",
362
363
  label: "Normal",
@@ -387,7 +388,7 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
387
388
  label: "Heading 3",
388
389
  nameKey: "styles.heading3"
389
390
  }
390
- ], ye = [
391
+ ], xe = [
391
392
  {
392
393
  label: "Single",
393
394
  labelKey: "lineSpacing.single",
@@ -406,14 +407,14 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
406
407
  labelKey: "lineSpacing.double",
407
408
  value: 480
408
409
  }
409
- ], be = [
410
+ ], Se = [
410
411
  .5,
411
412
  .75,
412
413
  1,
413
414
  1.25,
414
415
  1.5,
415
416
  2
416
- ], xe = {
417
+ ], Ce = {
417
418
  Title: 26,
418
419
  Subtitle: 18,
419
420
  Heading1: 24,
@@ -423,22 +424,22 @@ var ae = ["title", "onClick"], oe = /*#__PURE__*/ e(/* @__PURE__ */ p({
423
424
  Heading5: 13,
424
425
  Heading6: 13,
425
426
  Normal: 14
426
- }, Se = /* @__PURE__ */ new Set([
427
+ }, we = /* @__PURE__ */ new Set([
427
428
  "Title",
428
429
  "Heading1",
429
430
  "Heading2",
430
431
  "Heading3"
431
- ]), Ce = { Subtitle: "666666" }, we = "#4a6c8c";
432
- function Te(e) {
433
- let t = xe[e.styleId], n = {
432
+ ]), Te = { Subtitle: "666666" }, Ee = "#4a6c8c";
433
+ function De(e) {
434
+ let t = Ce[e.styleId], n = {
434
435
  fontSize: t ? `${t}px` : `${Math.min(Math.max(e.fontSize ? e.fontSize / 2 : 11, 11), 20)}px`,
435
436
  lineHeight: "1.3"
436
437
  };
437
- (e.bold ?? Se.has(e.styleId)) && (n.fontWeight = "bold"), e.italic && (n.fontStyle = "italic");
438
- let r = e.color ?? Ce[e.styleId];
439
- return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color = we), n;
438
+ (e.bold ?? we.has(e.styleId)) && (n.fontWeight = "bold"), e.italic && (n.fontStyle = "italic");
439
+ let r = e.color ?? Te[e.styleId];
440
+ return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color = Ee), n;
440
441
  }
441
- function Ee(e) {
442
+ function Oe(e) {
442
443
  return !e || e.length === 0 ? [] : e.filter((e) => e.type === "paragraph").filter((e) => e.qFormat ? !0 : !(e.hidden || e.semiHidden)).map((e) => ({
443
444
  styleId: e.styleId,
444
445
  name: e.name || e.styleId,
@@ -450,20 +451,20 @@ function Ee(e) {
450
451
  })).sort((e, t) => e.priority - t.priority);
451
452
  }
452
453
  // src/composables/useParagraphStyleOptions.ts
453
- function De(e) {
454
+ function ke(e) {
454
455
  let t = o(() => {
455
- let t = Ee(e.documentStyles());
456
+ let t = Oe(e.documentStyles());
456
457
  return t.length > 0 ? t.map((t) => {
457
- let n = ve.find((e) => e.id === t.styleId);
458
+ let n = be.find((e) => e.id === t.styleId);
458
459
  return {
459
460
  id: t.styleId,
460
461
  label: n ? e.t(n.nameKey) : t.name,
461
- previewStyle: Te(t)
462
+ previewStyle: De(t)
462
463
  };
463
- }) : ve.map((t) => ({
464
+ }) : be.map((t) => ({
464
465
  id: t.id,
465
466
  label: e.t(t.nameKey),
466
- previewStyle: Te({ styleId: t.id })
467
+ previewStyle: De({ styleId: t.id })
467
468
  }));
468
469
  });
469
470
  return {
@@ -475,7 +476,7 @@ function De(e) {
475
476
  };
476
477
  }
477
478
  // src/composables/useToolbarDropdowns.ts
478
- function Oe(e) {
479
+ function Ae(e) {
479
480
  let t = S(null), n = S({
480
481
  top: 0,
481
482
  left: 0
@@ -520,7 +521,7 @@ function Oe(e) {
520
521
  }
521
522
  let l;
522
523
  return y(() => {
523
- l = Y(document, c);
524
+ l = q(document, c);
524
525
  }), v(() => l?.()), {
525
526
  openDropdown: t,
526
527
  dropdownMenuStyle: a,
@@ -529,7 +530,7 @@ function Oe(e) {
529
530
  };
530
531
  }
531
532
  // src/composables/useToolbarFontSize.ts
532
- function ke(e) {
533
+ function je(e) {
533
534
  let t = S(!1), n = (t) => e.execCommand("setFontSize", t * 2);
534
535
  function r() {
535
536
  t.value = !1, e.openDropdown.value = "size", e.recomputeDropdownPos("size");
@@ -549,11 +550,11 @@ function ke(e) {
549
550
  }
550
551
  function s() {
551
552
  let t = e.currentFontSize.value;
552
- n(_e.find((e) => e > t) || t + 1);
553
+ n(ye.find((e) => e > t) || t + 1);
553
554
  }
554
555
  function c() {
555
556
  let t = e.currentFontSize.value;
556
- n([..._e].reverse().find((e) => e < t) || Math.max(1, t - 1));
557
+ n([...ye].reverse().find((e) => e < t) || Math.max(1, t - 1));
557
558
  }
558
559
  return {
559
560
  onSizeFocus: r,
@@ -565,23 +566,23 @@ function ke(e) {
565
566
  };
566
567
  }
567
568
  // src/utils/fontOptions.ts
568
- function Ae(e) {
569
+ function Me(e) {
569
570
  if (e === void 0) return;
570
571
  let t = e.map((e) => typeof e == "string" ? {
571
572
  name: e,
572
573
  fontFamily: e,
573
574
  category: "other"
574
575
  } : e);
575
- if (je()) {
576
+ if (Ne()) {
576
577
  let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
577
578
  for (let r of t) n.has(r.name) && !e.has(r.name) && (console.warn(`[DocxEditor] Duplicate font name in fontFamilies: "${r.name}"`), e.add(r.name)), n.add(r.name);
578
579
  }
579
580
  return t;
580
581
  }
581
- function je() {
582
+ function Ne() {
582
583
  return typeof process < "u" && process.env.NODE_ENV !== "production";
583
584
  }
584
- function Me(e, t) {
585
+ function Pe(e, t) {
585
586
  if (!e || e.length === 0) return [];
586
587
  let n = /* @__PURE__ */ new Set();
587
588
  for (let e of t) n.add(e.trim().toLowerCase());
@@ -593,10 +594,10 @@ function Me(e, t) {
593
594
  return i;
594
595
  }
595
596
  // src/components/EditingModeDropdown.vue?vue&type=script&setup=true&lang.ts
596
- var Ne = ["title", "onClick"], Pe = {
597
+ var Fe = ["title", "onClick"], Ie = {
597
598
  key: 0,
598
599
  class: "editing-mode__label"
599
- }, Fe = { class: "editing-mode__panel" }, Ie = ["onClick"], Le = { class: "editing-mode__option-text" }, Re = { class: "editing-mode__option-label" }, ze = { class: "editing-mode__option-desc" }, Be = /*#__PURE__*/ e(/* @__PURE__ */ p({
600
+ }, Le = { class: "editing-mode__panel" }, Re = ["onClick"], ze = { class: "editing-mode__option-text" }, Be = { class: "editing-mode__option-label" }, Ve = { class: "editing-mode__option-desc" }, He = /*#__PURE__*/ e(/* @__PURE__ */ p({
600
601
  __name: "EditingModeDropdown",
601
602
  props: { modelValue: {} },
602
603
  emits: ["update:modelValue"],
@@ -649,13 +650,13 @@ var Ne = ["title", "onClick"], Pe = {
649
650
  name: D.value.icon,
650
651
  size: 18
651
652
  }, null, 8, ["name"]),
652
- T.value ? c("", !0) : (b(), l("span", Pe, E(O(d)(D.value.labelKey)), 1)),
653
+ T.value ? c("", !0) : (b(), l("span", Ie, E(O(d)(D.value.labelKey)), 1)),
653
654
  f(r, {
654
655
  name: "arrow_drop_down",
655
656
  size: 16
656
657
  })
657
- ], 10, Ne)]),
658
- panel: M(() => [u("div", Fe, [(b(), l(a, null, C(x, (t) => u("button", {
658
+ ], 10, Fe)]),
659
+ panel: M(() => [u("div", Le, [(b(), l(a, null, C(x, (t) => u("button", {
659
660
  key: t.value,
660
661
  type: "button",
661
662
  class: "editing-mode__option",
@@ -665,23 +666,23 @@ var Ne = ["title", "onClick"], Pe = {
665
666
  name: t.icon,
666
667
  size: 20
667
668
  }, null, 8, ["name"]),
668
- u("span", Le, [u("span", Re, E(O(d)(t.labelKey)), 1), u("span", ze, E(O(d)(t.descKey)), 1)]),
669
+ u("span", ze, [u("span", Be, E(O(d)(t.labelKey)), 1), u("span", Ve, E(O(d)(t.descKey)), 1)]),
669
670
  t.value === e.modelValue ? (b(), s(r, {
670
671
  key: 0,
671
672
  name: "check",
672
673
  size: 18,
673
674
  class: "editing-mode__check"
674
675
  })) : c("", !0)
675
- ], 8, Ie)), 64))])]),
676
+ ], 8, Re)), 64))])]),
676
677
  _: 1
677
678
  }, 8, ["open"]));
678
679
  }
679
- }), [["__scopeId", "data-v-732ee330"]]), Ve = { class: "review-controls" }, He = [
680
+ }), [["__scopeId", "data-v-732ee330"]]), Ue = { class: "review-controls" }, We = [
680
681
  "disabled",
681
682
  "aria-pressed",
682
683
  "aria-label",
683
684
  "title"
684
- ], Ue = { class: "review-controls__toggle-label" }, We = ["title", "onClick"], Ge = { class: "review-controls__display-label" }, Ke = ["onClick"], qe = { class: "review-controls__option-label" }, Je = /*#__PURE__*/ e(/* @__PURE__ */ p({
685
+ ], Ge = { class: "review-controls__toggle-label" }, Ke = ["title", "onClick"], qe = { class: "review-controls__display-label" }, Je = ["onClick"], Ye = { class: "review-controls__option-label" }, Xe = /*#__PURE__*/ e(/* @__PURE__ */ p({
685
686
  __name: "ReviewControls",
686
687
  props: {
687
688
  trackChangesOn: { type: Boolean },
@@ -706,7 +707,7 @@ var Ne = ["title", "onClick"], Pe = {
706
707
  function w(e) {
707
708
  h("update:display-mode", e), _.value = !1;
708
709
  }
709
- return (t, n) => (b(), l("div", Ve, [u("button", {
710
+ return (t, n) => (b(), l("div", Ue, [u("button", {
710
711
  type: "button",
711
712
  class: g(["review-controls__toggle", { "review-controls__toggle--on": e.trackChangesOn }]),
712
713
  disabled: e.readOnly,
@@ -718,7 +719,7 @@ var Ne = ["title", "onClick"], Pe = {
718
719
  }, [f(r, {
719
720
  name: "edit_note",
720
721
  size: 18
721
- }), u("span", Ue, E(e.trackChangesOn ? O(d)("trackingOn") : O(d)("trackingOff")), 1)], 42, He), f(O(p), {
722
+ }), u("span", Ge, E(e.trackChangesOn ? O(d)("trackingOn") : O(d)("trackingOff")), 1)], 42, We), f(O(p), {
722
723
  open: _.value,
723
724
  placement: "bottom-right",
724
725
  "onUpdate:open": n[4] ||= (e) => _.value = e,
@@ -735,12 +736,12 @@ var Ne = ["title", "onClick"], Pe = {
735
736
  name: "visibility",
736
737
  size: 16
737
738
  }),
738
- u("span", Ge, E(x.value), 1),
739
+ u("span", qe, E(x.value), 1),
739
740
  f(r, {
740
741
  name: "arrow_drop_down",
741
742
  size: 16
742
743
  })
743
- ], 42, We)]),
744
+ ], 42, Ke)]),
744
745
  panel: M(() => [u("div", {
745
746
  class: "review-controls__panel",
746
747
  onMousedown: n[3] ||= F(() => {}, ["prevent"])
@@ -749,22 +750,22 @@ var Ne = ["title", "onClick"], Pe = {
749
750
  type: "button",
750
751
  class: "review-controls__option",
751
752
  onClick: F((e) => w(t), ["prevent"])
752
- }, [u("span", qe, E(y(t)), 1), t === e.displayMode ? (b(), s(r, {
753
+ }, [u("span", Ye, E(y(t)), 1), t === e.displayMode ? (b(), s(r, {
753
754
  key: 0,
754
755
  name: "check",
755
756
  size: 18,
756
757
  class: "review-controls__check"
757
- })) : c("", !0)], 8, Ke))), 128))], 32)]),
758
+ })) : c("", !0)], 8, Je))), 128))], 32)]),
758
759
  _: 1
759
760
  }, 8, ["open"])]));
760
761
  }
761
- }), [["__scopeId", "data-v-e96b04ec"]]), Ye = [
762
+ }), [["__scopeId", "data-v-e96b04ec"]]), Ze = [
762
763
  "disabled",
763
764
  "aria-label",
764
765
  "title",
765
766
  "aria-expanded",
766
767
  "onClick"
767
- ], Xe = { class: "docx-icon-grid__panel" }, Ze = ["title", "onClick"], Qe = /*#__PURE__*/ e(/* @__PURE__ */ p({
768
+ ], Qe = { class: "docx-icon-grid__panel" }, $e = ["title", "onClick"], et = /*#__PURE__*/ e(/* @__PURE__ */ p({
768
769
  __name: "IconGridDropdown",
769
770
  props: {
770
771
  options: {},
@@ -800,8 +801,8 @@ var Ne = ["title", "onClick"], Pe = {
800
801
  }, null, 8, ["name"]), f(r, {
801
802
  name: "arrow_drop_down",
802
803
  size: 14
803
- })], 10, Ye)]),
804
- panel: M(() => [u("div", Xe, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
804
+ })], 10, Ze)]),
805
+ panel: M(() => [u("div", Qe, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
805
806
  key: t.value,
806
807
  type: "button",
807
808
  class: g(["docx-icon-grid__option", { "docx-icon-grid__option--active": e.activeValue === t.value }]),
@@ -810,11 +811,11 @@ var Ne = ["title", "onClick"], Pe = {
810
811
  }, [f(r, {
811
812
  name: t.iconName,
812
813
  size: 18
813
- }, null, 8, ["name"])], 10, Ze))), 128))])]),
814
+ }, null, 8, ["name"])], 10, $e))), 128))])]),
814
815
  _: 1
815
816
  }, 8, ["open"]));
816
817
  }
817
- }), [["__scopeId", "data-v-5ef29208"]]), $e = /* @__PURE__ */ p({
818
+ }), [["__scopeId", "data-v-5ef29208"]]), tt = /* @__PURE__ */ p({
818
819
  __name: "ImageTransformDropdown",
819
820
  props: { disabled: { type: Boolean } },
820
821
  emits: ["transform"],
@@ -845,7 +846,7 @@ var Ne = ["title", "onClick"], Pe = {
845
846
  label: t(e.labelKey),
846
847
  iconName: e.iconName
847
848
  })));
848
- return (n, r) => (b(), s(Qe, {
849
+ return (n, r) => (b(), s(et, {
849
850
  options: i.value,
850
851
  "trigger-icon": "rotate_right",
851
852
  "tooltip-content": O(t)("imageTransform.tooltip"),
@@ -857,7 +858,7 @@ var Ne = ["title", "onClick"], Pe = {
857
858
  "disabled"
858
859
  ]));
859
860
  }
860
- }), et = /* @__PURE__ */ p({
861
+ }), nt = /* @__PURE__ */ p({
861
862
  __name: "ImageWrapDropdown",
862
863
  props: {
863
864
  imageContext: {},
@@ -904,7 +905,7 @@ var Ne = ["title", "onClick"], Pe = {
904
905
  let e = t.imageContext;
905
906
  return e.displayMode === "float" && e.cssFloat === "left" ? "wrapRight" : e.displayMode === "float" && e.cssFloat === "right" ? "wrapLeft" : e.wrapType;
906
907
  }), 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 ?? "");
907
- return (t, n) => (b(), s(Qe, {
908
+ return (t, n) => (b(), s(et, {
908
909
  options: a.value,
909
910
  "active-value": c.value,
910
911
  "trigger-icon": u.value,
@@ -919,41 +920,41 @@ var Ne = ["title", "onClick"], Pe = {
919
920
  "disabled"
920
921
  ]));
921
922
  }
922
- }), tt = {
923
+ }), rt = {
923
924
  key: 0,
924
925
  class: "basic-toolbar"
925
- }, nt = [
926
+ }, it = [
926
927
  "title",
927
928
  "aria-label",
928
929
  "disabled"
929
- ], rt = [
930
+ ], at = [
930
931
  "title",
931
932
  "aria-label",
932
933
  "disabled"
933
- ], it = ["disabled", "title"], at = ["aria-expanded", "title"], ot = ["disabled", "title"], st = ["onMousedown"], ct = ["aria-expanded", "title"], lt = ["onMousedown"], ut = ["aria-expanded", "title"], dt = {
934
+ ], ot = ["disabled", "title"], st = ["aria-expanded", "title"], ct = ["disabled", "title"], lt = ["onMousedown"], ut = ["aria-expanded", "title"], dt = ["onMousedown"], ft = ["aria-expanded", "title"], pt = {
934
935
  key: 0,
935
936
  class: "toolbar-dropdown__group-label"
936
- }, ft = ["onMousedown"], pt = ["title"], mt = [
937
+ }, mt = ["onMousedown"], ht = ["title"], gt = [
937
938
  "value",
938
939
  "title",
939
940
  "aria-expanded"
940
- ], ht = ["title"], gt = ["onMousedown"], _t = ["title", "aria-label"], vt = ["title", "aria-label"], yt = ["title", "aria-label"], bt = ["title", "aria-label"], xt = ["title", "aria-label"], St = ["title", "aria-label"], Ct = ["title", "aria-label"], wt = ["aria-expanded", "title"], Tt = ["title"], Et = ["title"], Dt = ["title"], Ot = ["title"], kt = ["title", "aria-label"], At = ["title", "aria-label"], jt = [
941
+ ], _t = ["title"], vt = ["onMousedown"], yt = ["title", "aria-label"], bt = ["title", "aria-label"], xt = ["title", "aria-label"], St = ["title", "aria-label"], Ct = ["title", "aria-label"], wt = ["title", "aria-label"], Tt = ["title", "aria-label"], Et = ["aria-expanded", "title"], Dt = ["title"], Ot = ["title"], kt = ["title"], At = ["title"], jt = ["title", "aria-label"], Mt = ["title", "aria-label"], Nt = [
941
942
  "title",
942
943
  "aria-label",
943
944
  "disabled"
944
- ], Mt = ["title", "aria-label"], Nt = ["aria-expanded", "title"], Pt = ["onMousedown"], Ft = ["title", "aria-label"], It = [
945
+ ], Pt = ["title", "aria-label"], Ft = ["aria-expanded", "title"], It = ["onMousedown"], Lt = ["title", "aria-label"], Rt = [
945
946
  "title",
946
947
  "aria-label",
947
948
  "aria-pressed"
948
- ], Lt = [
949
+ ], zt = [
949
950
  "title",
950
951
  "aria-label",
951
952
  "aria-pressed"
952
- ], Rt = {
953
+ ], Bt = {
953
954
  key: 0,
954
955
  "data-testid": "toolbar-comments-count",
955
956
  class: "basic-toolbar__comment-count"
956
- }, zt = ["title", "aria-label"], Bt = /*#__PURE__*/ e(/* @__PURE__ */ p({
957
+ }, Vt = ["title", "aria-label"], Ht = /*#__PURE__*/ e(/* @__PURE__ */ p({
957
958
  __name: "Toolbar",
958
959
  props: {
959
960
  view: { default: null },
@@ -1018,17 +1019,17 @@ var Ne = ["title", "onClick"], Pe = {
1018
1019
  "image-transform"
1019
1020
  ],
1020
1021
  setup(e, { emit: t }) {
1021
- 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 ?? be), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), I = S(null), L = S(null), { openDropdown: z, dropdownMenuStyle: V, toggleDropdown: U, recomputeDropdownPos: W } = Oe({
1022
+ 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 ?? Se), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), I = S(null), L = S(null), { openDropdown: B, dropdownMenuStyle: H, toggleDropdown: U, recomputeDropdownPos: ie } = Ae({
1022
1023
  zoom: L,
1023
1024
  style: A,
1024
1025
  font: j,
1025
1026
  size: M,
1026
1027
  align: N,
1027
1028
  spacing: I
1028
- }), G = o(() => {
1029
+ }), W = o(() => {
1029
1030
  m.stateTick;
1030
1031
  let e = m.view;
1031
- return e ? B(e.state) : {
1032
+ return e ? te(e.state) : {
1032
1033
  hasSelection: !1,
1033
1034
  isMultiParagraph: !1,
1034
1035
  textFormatting: {},
@@ -1040,69 +1041,69 @@ var Ne = ["title", "onClick"], Pe = {
1040
1041
  inInsertion: !1,
1041
1042
  inDeletion: !1
1042
1043
  };
1043
- }), K = o(() => {
1044
- let e = G.value.textFormatting.fontFamily;
1044
+ }), ae = o(() => {
1045
+ let e = W.value.textFormatting.fontFamily;
1045
1046
  return e?.ascii || e?.hAnsi || "Arial";
1046
- }), q = o(() => {
1047
- let e = G.value.textFormatting.fontSize;
1047
+ }), G = o(() => {
1048
+ let e = W.value.textFormatting.fontSize;
1048
1049
  return e ? e / 2 : 11;
1049
- }), J = o(() => G.value.paragraphFormatting.alignment || "left"), Y = o(() => {
1050
- switch (J.value) {
1050
+ }), K = o(() => W.value.paragraphFormatting.alignment || "left"), q = o(() => {
1051
+ switch (K.value) {
1051
1052
  case "center": return "format_align_center";
1052
1053
  case "right": return "format_align_right";
1053
1054
  case "both": return "format_align_justify";
1054
1055
  default: return "format_align_left";
1055
1056
  }
1056
- }), { resolvedParagraphStyles: ie, currentStyleLabel: ae } = De({
1057
+ }), { resolvedParagraphStyles: J, currentStyleLabel: Y } = ke({
1057
1058
  documentStyles: () => m.documentStyles,
1058
- currentStyleId: () => G.value.paragraphFormatting.styleId || "Normal",
1059
+ currentStyleId: () => W.value.paragraphFormatting.styleId || "Normal",
1059
1060
  t: h
1060
1061
  }), oe = o(() => {
1061
1062
  if (m.stateTick, m.canUndo !== void 0) return m.canUndo;
1062
1063
  let e = m.view;
1063
- return e ? ne(e.state) > 0 : !1;
1064
- }), se = o(() => {
1064
+ return e ? V(e.state) > 0 : !1;
1065
+ }), X = o(() => {
1065
1066
  if (m.stateTick, m.canRedo !== void 0) return m.canRedo;
1066
1067
  let e = m.view;
1067
- return e ? te(e.state) > 0 : !1;
1068
- }), ce = o(() => {
1069
- let e = G.value, t = R(e.listState) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
1068
+ return e ? ne(e.state) > 0 : !1;
1069
+ }), Z = o(() => {
1070
+ let e = W.value, t = R(e.listState) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
1070
1071
  return t || n;
1071
- }), le = o(() => {
1072
- let e = G.value.textFormatting.color?.rgb;
1072
+ }), se = o(() => {
1073
+ let e = W.value.textFormatting.color?.rgb;
1073
1074
  return e ? e.replace(/^#/, "").toUpperCase() : void 0;
1074
- }), ue = o(() => {
1075
- let e = G.value.textFormatting.highlight;
1075
+ }), ce = o(() => {
1076
+ let e = W.value.textFormatting.highlight;
1076
1077
  if (e && e !== "none") return e.replace(/^#/, "").toUpperCase();
1077
- }), X = o(() => Ae(m.fontFamilies) ?? ge), de = o(() => Me(m.documentFonts, X.value.map((e) => e.name))), fe = o(() => [
1078
+ }), le = o(() => Me(m.fontFamilies) ?? ve), Q = o(() => Pe(m.documentFonts, le.value.map((e) => e.name))), ue = o(() => [
1078
1079
  {
1079
1080
  label: h("font.documentFonts"),
1080
- fonts: de.value
1081
+ fonts: Q.value
1081
1082
  },
1082
1083
  {
1083
1084
  label: h("font.sansSerif"),
1084
- fonts: X.value.filter((e) => e.category === "sans-serif")
1085
+ fonts: le.value.filter((e) => e.category === "sans-serif")
1085
1086
  },
1086
1087
  {
1087
1088
  label: h("font.serif"),
1088
- fonts: X.value.filter((e) => e.category === "serif")
1089
+ fonts: le.value.filter((e) => e.category === "serif")
1089
1090
  },
1090
1091
  {
1091
1092
  label: h("font.monospace"),
1092
- fonts: X.value.filter((e) => e.category === "monospace")
1093
+ fonts: le.value.filter((e) => e.category === "monospace")
1093
1094
  },
1094
1095
  {
1095
1096
  label: h("font.other"),
1096
- fonts: X.value.filter((e) => !e.category || e.category === "other")
1097
+ fonts: le.value.filter((e) => !e.category || e.category === "other")
1097
1098
  }
1098
1099
  ]);
1099
- function pe() {
1100
- m.onUndo ? m.onUndo() : Z("undo");
1100
+ function de() {
1101
+ m.onUndo ? m.onUndo() : $("undo");
1101
1102
  }
1102
- function me() {
1103
- m.onRedo ? m.onRedo() : Z("redo");
1103
+ function fe() {
1104
+ m.onRedo ? m.onRedo() : $("redo");
1104
1105
  }
1105
- function Z(e, ...t) {
1106
+ function $(e, ...t) {
1106
1107
  let n = m.view;
1107
1108
  if (!n) return;
1108
1109
  let r = m.getCommands()[e];
@@ -1111,50 +1112,50 @@ var Ne = ["title", "onClick"], Pe = {
1111
1112
  return;
1112
1113
  }
1113
1114
  let i = r(...t);
1114
- H(n, i), n.hasFocus() || n.focus(), z.value = null;
1115
+ z(n, i), n.hasFocus() || n.focus(), B.value = null;
1115
1116
  }
1116
- function he(e) {
1117
- Z("setFontFamily", e);
1117
+ function pe(e) {
1118
+ $("setFontFamily", e);
1118
1119
  }
1119
- let { onSizeFocus: ve, onSizeInput: xe, commitFontSize: Se, pickFontSize: Ce, increaseFontSize: we, decreaseFontSize: Te } = ke({
1120
- currentFontSize: q,
1121
- openDropdown: z,
1122
- recomputeDropdownPos: W,
1123
- execCommand: Z
1120
+ let { onSizeFocus: me, onSizeInput: he, commitFontSize: ge, pickFontSize: _e, increaseFontSize: be, decreaseFontSize: Ce } = je({
1121
+ currentFontSize: G,
1122
+ openDropdown: B,
1123
+ recomputeDropdownPos: ie,
1124
+ execCommand: $
1124
1125
  });
1125
- function Ee(e) {
1126
- typeof e == "object" && e.auto ? Z("clearTextColor") : Z("setTextColor", typeof e == "string" ? { rgb: e } : e);
1126
+ function we(e) {
1127
+ typeof e == "object" && e.auto ? $("clearTextColor") : $("setTextColor", typeof e == "string" ? { rgb: e } : e);
1127
1128
  }
1128
- function je() {
1129
+ function Te() {
1129
1130
  let e = m.view;
1130
- e && (H(e, re), e.hasFocus() || e.focus());
1131
+ e && (z(e, re), e.hasFocus() || e.focus());
1131
1132
  }
1132
- function Ne(e) {
1133
- Z("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
1133
+ function Ee(e) {
1134
+ $("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
1134
1135
  }
1135
- function Pe(e) {
1136
- v("apply-style", e), z.value = null;
1136
+ function De(e) {
1137
+ v("apply-style", e), B.value = null;
1137
1138
  }
1138
- function Fe(e) {
1139
- Z("setLineSpacing", e);
1139
+ function Oe(e) {
1140
+ $("setLineSpacing", e);
1140
1141
  }
1141
- function Ie(e) {
1142
- let t = G.value.paragraphFormatting.lineSpacing;
1142
+ function Ne(e) {
1143
+ let t = W.value.paragraphFormatting.lineSpacing;
1143
1144
  return t ? Math.abs(t - e) < 10 : e === 240;
1144
1145
  }
1145
- return (t, n) => e.view ? (b(), l("div", tt, [
1146
+ return (t, n) => e.view ? (b(), l("div", rt, [
1146
1147
  u("button", {
1147
1148
  title: O(h)("undoShortcut"),
1148
1149
  "aria-label": O(h)("undo"),
1149
1150
  disabled: !oe.value,
1150
- onMousedown: F(pe, ["prevent"])
1151
- }, [f(r, { name: "undo" })], 40, nt),
1151
+ onMousedown: F(de, ["prevent"])
1152
+ }, [f(r, { name: "undo" })], 40, it),
1152
1153
  u("button", {
1153
1154
  title: O(h)("redoShortcut"),
1154
1155
  "aria-label": O(h)("redo"),
1155
- disabled: !se.value,
1156
- onMousedown: F(me, ["prevent"])
1157
- }, [f(r, { name: "redo" })], 40, rt),
1156
+ disabled: !X.value,
1157
+ onMousedown: F(fe, ["prevent"])
1158
+ }, [f(r, { name: "redo" })], 40, at),
1158
1159
  n[43] ||= u("span", { class: "divider" }, null, -1),
1159
1160
  k.value ? (b(), l("div", {
1160
1161
  key: 0,
@@ -1167,33 +1168,33 @@ var Ne = ["title", "onClick"], Pe = {
1167
1168
  onMousedown: n[0] ||= F((e) => t.$emit("zoom-out"), ["prevent"]),
1168
1169
  disabled: x.value,
1169
1170
  title: O(h)("zoom.zoomOut")
1170
- }, " − ", 40, it),
1171
+ }, " − ", 40, ot),
1171
1172
  u("button", {
1172
1173
  class: "toolbar-dropdown__trigger zoom-trigger",
1173
1174
  onMousedown: n[1] ||= F((e) => O(U)("zoom"), ["prevent"]),
1174
- "aria-expanded": O(z) === "zoom",
1175
+ "aria-expanded": O(B) === "zoom",
1175
1176
  "aria-haspopup": "listbox",
1176
1177
  title: O(h)("zoom.zoomLevel")
1177
1178
  }, [d(E(y.value) + "% ", 1), f(r, {
1178
1179
  class: "chevron",
1179
1180
  name: "arrow_drop_down",
1180
1181
  size: 16
1181
- })], 40, at),
1182
+ })], 40, st),
1182
1183
  u("button", {
1183
1184
  class: "size-btn",
1184
1185
  onMousedown: n[2] ||= F((e) => t.$emit("zoom-in"), ["prevent"]),
1185
1186
  disabled: T.value,
1186
1187
  title: O(h)("zoom.zoomIn")
1187
- }, " + ", 40, ot),
1188
- O(z) === "zoom" ? (b(), l("div", {
1188
+ }, " + ", 40, ct),
1189
+ O(B) === "zoom" ? (b(), l("div", {
1189
1190
  key: 0,
1190
- style: _(O(V)),
1191
+ style: _(O(H)),
1191
1192
  class: "toolbar-dropdown__menu zoom-menu"
1192
1193
  }, [(b(!0), l(a, null, C(D.value, (e) => (b(), l("button", {
1193
1194
  key: e,
1194
1195
  class: g(["toolbar-dropdown__item", { active: y.value === Math.round(e * 100) }]),
1195
1196
  onMousedown: F((n) => t.$emit("zoom-set", e), ["prevent"])
1196
- }, E(Math.round(e * 100)) + "% ", 43, st))), 128))], 4)) : c("", !0)
1197
+ }, E(Math.round(e * 100)) + "% ", 43, lt))), 128))], 4)) : c("", !0)
1197
1198
  ], 512)) : c("", !0),
1198
1199
  n[44] ||= u("span", { class: "divider" }, null, -1),
1199
1200
  u("div", {
@@ -1203,22 +1204,22 @@ var Ne = ["title", "onClick"], Pe = {
1203
1204
  }, [u("button", {
1204
1205
  class: "toolbar-dropdown__trigger style-trigger",
1205
1206
  onMousedown: n[3] ||= F((e) => O(U)("style"), ["prevent"]),
1206
- "aria-expanded": O(z) === "style",
1207
+ "aria-expanded": O(B) === "style",
1207
1208
  "aria-haspopup": "listbox",
1208
1209
  title: O(h)("styles.selectAriaLabel")
1209
- }, [d(E(O(ae)) + " ", 1), f(r, {
1210
+ }, [d(E(O(Y)) + " ", 1), f(r, {
1210
1211
  class: "chevron",
1211
1212
  name: "arrow_drop_down",
1212
1213
  size: 16
1213
- })], 40, ct), O(z) === "style" ? (b(), l("div", {
1214
+ })], 40, ut), O(B) === "style" ? (b(), l("div", {
1214
1215
  key: 0,
1215
- style: _(O(V)),
1216
+ style: _(O(H)),
1216
1217
  class: "toolbar-dropdown__menu style-menu"
1217
- }, [(b(!0), l(a, null, C(O(ie), (e) => (b(), l("button", {
1218
+ }, [(b(!0), l(a, null, C(O(J), (e) => (b(), l("button", {
1218
1219
  key: e.id,
1219
- class: g(["toolbar-dropdown__item", { active: (G.value.paragraphFormatting.styleId || "Normal") === e.id }]),
1220
- onMousedown: F((t) => Pe(e.id), ["prevent"])
1221
- }, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, lt))), 128))], 4)) : c("", !0)], 512),
1220
+ class: g(["toolbar-dropdown__item", { active: (W.value.paragraphFormatting.styleId || "Normal") === e.id }]),
1221
+ onMousedown: F((t) => De(e.id), ["prevent"])
1222
+ }, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, dt))), 128))], 4)) : c("", !0)], 512),
1222
1223
  n[45] ||= u("span", { class: "divider" }, null, -1),
1223
1224
  u("div", {
1224
1225
  class: "toolbar-dropdown",
@@ -1227,23 +1228,23 @@ var Ne = ["title", "onClick"], Pe = {
1227
1228
  }, [u("button", {
1228
1229
  class: "toolbar-dropdown__trigger font-trigger",
1229
1230
  onMousedown: n[4] ||= F((e) => O(U)("font"), ["prevent"]),
1230
- "aria-expanded": O(z) === "font",
1231
+ "aria-expanded": O(B) === "font",
1231
1232
  "aria-haspopup": "listbox",
1232
1233
  title: O(h)("font.selectAriaLabel")
1233
- }, [d(E(K.value) + " ", 1), f(r, {
1234
+ }, [d(E(ae.value) + " ", 1), f(r, {
1234
1235
  class: "chevron",
1235
1236
  name: "arrow_drop_down",
1236
1237
  size: 16
1237
- })], 40, ut), O(z) === "font" ? (b(), l("div", {
1238
+ })], 40, ft), O(B) === "font" ? (b(), l("div", {
1238
1239
  key: 0,
1239
- style: _(O(V)),
1240
+ style: _(O(H)),
1240
1241
  class: "toolbar-dropdown__menu font-menu"
1241
- }, [(b(!0), l(a, null, C(fe.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div", dt, E(e.label), 1)) : c("", !0), (b(!0), l(a, null, C(e.fonts, (e) => (b(), l("button", {
1242
+ }, [(b(!0), l(a, null, C(ue.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div", pt, E(e.label), 1)) : c("", !0), (b(!0), l(a, null, C(e.fonts, (e) => (b(), l("button", {
1242
1243
  key: e.name,
1243
- class: g(["toolbar-dropdown__item", { active: K.value === e.name }]),
1244
+ class: g(["toolbar-dropdown__item", { active: ae.value === e.name }]),
1244
1245
  style: _({ fontFamily: e.fontFamily }),
1245
- onMousedown: F((t) => he(e.name), ["prevent"])
1246
- }, E(e.name), 47, ft))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
1246
+ onMousedown: F((t) => pe(e.name), ["prevent"])
1247
+ }, E(e.name), 47, mt))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
1247
1248
  u("div", {
1248
1249
  class: "toolbar-dropdown font-size-group",
1249
1250
  ref_key: "sizeDropdownRef",
@@ -1251,95 +1252,95 @@ var Ne = ["title", "onClick"], Pe = {
1251
1252
  }, [
1252
1253
  u("button", {
1253
1254
  class: "size-btn",
1254
- onMousedown: n[5] ||= F((...e) => O(Te) && O(Te)(...e), ["prevent"]),
1255
+ onMousedown: n[5] ||= F((...e) => O(Ce) && O(Ce)(...e), ["prevent"]),
1255
1256
  title: O(h)("decreaseFontSize")
1256
- }, " − ", 40, pt),
1257
+ }, " − ", 40, ht),
1257
1258
  u("input", {
1258
1259
  class: "size-trigger size-input",
1259
1260
  type: "text",
1260
- value: q.value,
1261
+ value: G.value,
1261
1262
  title: O(h)("fontSize"),
1262
1263
  onMousedown: n[6] ||= F(() => {}, ["stop"]),
1263
- onFocus: n[7] ||= (...e) => O(ve) && O(ve)(...e),
1264
- "aria-expanded": O(z) === "size",
1264
+ onFocus: n[7] ||= (...e) => O(me) && O(me)(...e),
1265
+ "aria-expanded": O(B) === "size",
1265
1266
  "aria-haspopup": "listbox",
1266
- onInput: n[8] ||= (...e) => O(xe) && O(xe)(...e),
1267
+ onInput: n[8] ||= (...e) => O(he) && O(he)(...e),
1267
1268
  onKeydown: [
1268
- n[9] ||= P(F((e) => O(we)(), ["prevent", "stop"]), ["up"]),
1269
- n[10] ||= P(F((e) => O(Te)(), ["prevent", "stop"]), ["down"]),
1270
- n[11] ||= P(F((e) => O(Se)(e), ["prevent"]), ["enter"])
1269
+ n[9] ||= P(F((e) => O(be)(), ["prevent", "stop"]), ["up"]),
1270
+ n[10] ||= P(F((e) => O(Ce)(), ["prevent", "stop"]), ["down"]),
1271
+ n[11] ||= P(F((e) => O(ge)(e), ["prevent"]), ["enter"])
1271
1272
  ],
1272
- onBlur: n[12] ||= (e) => O(Se)(e)
1273
- }, null, 40, mt),
1273
+ onBlur: n[12] ||= (e) => O(ge)(e)
1274
+ }, null, 40, gt),
1274
1275
  u("button", {
1275
1276
  class: "size-btn",
1276
- onMousedown: n[13] ||= F((...e) => O(we) && O(we)(...e), ["prevent"]),
1277
+ onMousedown: n[13] ||= F((...e) => O(be) && O(be)(...e), ["prevent"]),
1277
1278
  title: O(h)("increaseFontSize")
1278
- }, " + ", 40, ht),
1279
- O(z) === "size" ? (b(), l("div", {
1279
+ }, " + ", 40, _t),
1280
+ O(B) === "size" ? (b(), l("div", {
1280
1281
  key: 0,
1281
- style: _(O(V)),
1282
+ style: _(O(H)),
1282
1283
  class: "toolbar-dropdown__menu size-menu"
1283
- }, [(b(!0), l(a, null, C(O(_e), (e) => (b(), l("button", {
1284
+ }, [(b(!0), l(a, null, C(O(ye), (e) => (b(), l("button", {
1284
1285
  key: e,
1285
- class: g(["toolbar-dropdown__item", { active: q.value === e }]),
1286
- onMousedown: F((t) => O(Ce)(e), ["prevent"])
1287
- }, E(e), 43, gt))), 128))], 4)) : c("", !0)
1286
+ class: g(["toolbar-dropdown__item", { active: G.value === e }]),
1287
+ onMousedown: F((t) => O(_e)(e), ["prevent"])
1288
+ }, E(e), 43, vt))), 128))], 4)) : c("", !0)
1288
1289
  ], 512),
1289
1290
  n[46] ||= u("span", { class: "divider" }, null, -1),
1290
1291
  u("button", {
1291
1292
  title: O(h)("boldShortcut"),
1292
1293
  "aria-label": O(h)("bold"),
1293
- class: g({ active: G.value.textFormatting.bold }),
1294
- onMousedown: n[14] ||= F((e) => Z("toggleBold"), ["prevent"])
1295
- }, [f(r, { name: "format_bold" })], 42, _t),
1294
+ class: g({ active: W.value.textFormatting.bold }),
1295
+ onMousedown: n[14] ||= F((e) => $("toggleBold"), ["prevent"])
1296
+ }, [f(r, { name: "format_bold" })], 42, yt),
1296
1297
  u("button", {
1297
1298
  title: O(h)("italicShortcut"),
1298
1299
  "aria-label": O(h)("italic"),
1299
- class: g({ active: G.value.textFormatting.italic }),
1300
- onMousedown: n[15] ||= F((e) => Z("toggleItalic"), ["prevent"])
1301
- }, [f(r, { name: "format_italic" })], 42, vt),
1300
+ class: g({ active: W.value.textFormatting.italic }),
1301
+ onMousedown: n[15] ||= F((e) => $("toggleItalic"), ["prevent"])
1302
+ }, [f(r, { name: "format_italic" })], 42, bt),
1302
1303
  u("button", {
1303
1304
  title: O(h)("underlineShortcut"),
1304
1305
  "aria-label": O(h)("underline"),
1305
- class: g({ active: !!G.value.textFormatting.underline }),
1306
- onMousedown: n[16] ||= F((e) => Z("toggleUnderline"), ["prevent"])
1307
- }, [f(r, { name: "format_underlined" })], 42, yt),
1306
+ class: g({ active: !!W.value.textFormatting.underline }),
1307
+ onMousedown: n[16] ||= F((e) => $("toggleUnderline"), ["prevent"])
1308
+ }, [f(r, { name: "format_underlined" })], 42, xt),
1308
1309
  u("button", {
1309
1310
  title: O(h)("formattingBar.strikethrough"),
1310
1311
  "aria-label": O(h)("formattingBar.strikethrough"),
1311
- class: g({ active: G.value.textFormatting.strike }),
1312
- onMousedown: n[17] ||= F((e) => Z("toggleStrike"), ["prevent"])
1313
- }, [f(r, { name: "strikethrough_s" })], 42, bt),
1312
+ class: g({ active: W.value.textFormatting.strike }),
1313
+ onMousedown: n[17] ||= F((e) => $("toggleStrike"), ["prevent"])
1314
+ }, [f(r, { name: "strikethrough_s" })], 42, St),
1314
1315
  f(O(p), {
1315
1316
  mode: "text",
1316
- value: le.value,
1317
+ value: se.value,
1317
1318
  theme: e.theme ?? null,
1318
- onChange: Ee
1319
+ onChange: we
1319
1320
  }, null, 8, ["value", "theme"]),
1320
1321
  f(O(p), {
1321
1322
  mode: "highlight",
1322
- value: ue.value,
1323
+ value: ce.value,
1323
1324
  theme: e.theme ?? null,
1324
- onChange: Ne
1325
+ onChange: Ee
1325
1326
  }, null, 8, ["value", "theme"]),
1326
1327
  u("button", {
1327
1328
  title: O(h)("formattingBar.insertLinkShortcut"),
1328
1329
  "aria-label": O(h)("formattingBar.insertLink"),
1329
1330
  onMousedown: n[18] ||= F((e) => t.$emit("insert-link"), ["prevent"])
1330
- }, [f(r, { name: "link" })], 40, xt),
1331
+ }, [f(r, { name: "link" })], 40, Ct),
1331
1332
  u("button", {
1332
1333
  title: O(h)("formattingBar.superscriptShortcut"),
1333
1334
  "aria-label": O(h)("formattingBar.superscript"),
1334
- class: g({ active: G.value.textFormatting.vertAlign === "superscript" }),
1335
- onMousedown: n[19] ||= F((e) => Z("toggleSuperscript"), ["prevent"])
1336
- }, [f(r, { name: "superscript" })], 42, St),
1335
+ class: g({ active: W.value.textFormatting.vertAlign === "superscript" }),
1336
+ onMousedown: n[19] ||= F((e) => $("toggleSuperscript"), ["prevent"])
1337
+ }, [f(r, { name: "superscript" })], 42, wt),
1337
1338
  u("button", {
1338
1339
  title: O(h)("formattingBar.subscriptShortcut"),
1339
1340
  "aria-label": O(h)("formattingBar.subscript"),
1340
- class: g({ active: G.value.textFormatting.vertAlign === "subscript" }),
1341
- onMousedown: n[20] ||= F((e) => Z("toggleSubscript"), ["prevent"])
1342
- }, [f(r, { name: "subscript" })], 42, Ct),
1341
+ class: g({ active: W.value.textFormatting.vertAlign === "subscript" }),
1342
+ onMousedown: n[20] ||= F((e) => $("toggleSubscript"), ["prevent"])
1343
+ }, [f(r, { name: "subscript" })], 42, Tt),
1343
1344
  n[47] ||= u("span", { class: "divider" }, null, -1),
1344
1345
  u("div", {
1345
1346
  class: "toolbar-dropdown",
@@ -1348,82 +1349,82 @@ var Ne = ["title", "onClick"], Pe = {
1348
1349
  }, [u("button", {
1349
1350
  class: "toolbar-dropdown__trigger align-trigger",
1350
1351
  onMousedown: n[21] ||= F((e) => O(U)("align"), ["prevent"]),
1351
- "aria-expanded": O(z) === "align",
1352
+ "aria-expanded": O(B) === "align",
1352
1353
  "aria-haspopup": "listbox",
1353
1354
  title: O(h)("alignmentGroup")
1354
- }, [f(r, { name: Y.value }, null, 8, ["name"]), f(r, {
1355
+ }, [f(r, { name: q.value }, null, 8, ["name"]), f(r, {
1355
1356
  class: "chevron",
1356
1357
  name: "arrow_drop_down",
1357
1358
  size: 16
1358
- })], 40, wt), O(z) === "align" ? (b(), l("div", {
1359
+ })], 40, Et), O(B) === "align" ? (b(), l("div", {
1359
1360
  key: 0,
1360
- style: _(O(V)),
1361
+ style: _(O(H)),
1361
1362
  class: "toolbar-dropdown__menu align-strip"
1362
1363
  }, [
1363
1364
  u("button", {
1364
- class: g(["align-strip__btn", { active: J.value === "left" }]),
1365
+ class: g(["align-strip__btn", { active: K.value === "left" }]),
1365
1366
  title: `${O(h)("alignLeft")} (${O(h)("alignment.alignLeftShortcut")})`,
1366
1367
  onMousedown: n[22] ||= F((e) => {
1367
- Z("alignLeft"), z.value = null;
1368
+ $("alignLeft"), B.value = null;
1368
1369
  }, ["prevent"])
1369
1370
  }, [f(r, {
1370
1371
  name: "format_align_left",
1371
1372
  size: 18
1372
- })], 42, Tt),
1373
+ })], 42, Dt),
1373
1374
  u("button", {
1374
- class: g(["align-strip__btn", { active: J.value === "center" }]),
1375
+ class: g(["align-strip__btn", { active: K.value === "center" }]),
1375
1376
  title: `${O(h)("alignCenter")} (${O(h)("alignment.centerShortcut")})`,
1376
1377
  onMousedown: n[23] ||= F((e) => {
1377
- Z("alignCenter"), z.value = null;
1378
+ $("alignCenter"), B.value = null;
1378
1379
  }, ["prevent"])
1379
1380
  }, [f(r, {
1380
1381
  name: "format_align_center",
1381
1382
  size: 18
1382
- })], 42, Et),
1383
+ })], 42, Ot),
1383
1384
  u("button", {
1384
- class: g(["align-strip__btn", { active: J.value === "right" }]),
1385
+ class: g(["align-strip__btn", { active: K.value === "right" }]),
1385
1386
  title: `${O(h)("alignRight")} (${O(h)("alignment.alignRightShortcut")})`,
1386
1387
  onMousedown: n[24] ||= F((e) => {
1387
- Z("alignRight"), z.value = null;
1388
+ $("alignRight"), B.value = null;
1388
1389
  }, ["prevent"])
1389
1390
  }, [f(r, {
1390
1391
  name: "format_align_right",
1391
1392
  size: 18
1392
- })], 42, Dt),
1393
+ })], 42, kt),
1393
1394
  u("button", {
1394
- class: g(["align-strip__btn", { active: J.value === "both" }]),
1395
+ class: g(["align-strip__btn", { active: K.value === "both" }]),
1395
1396
  title: `${O(h)("justify")} (${O(h)("alignment.justifyShortcut")})`,
1396
1397
  onMousedown: n[25] ||= F((e) => {
1397
- Z("alignJustify"), z.value = null;
1398
+ $("alignJustify"), B.value = null;
1398
1399
  }, ["prevent"])
1399
1400
  }, [f(r, {
1400
1401
  name: "format_align_justify",
1401
1402
  size: 18
1402
- })], 42, Ot)
1403
+ })], 42, At)
1403
1404
  ], 4)) : c("", !0)], 512),
1404
1405
  u("button", {
1405
1406
  title: O(h)("bulletList"),
1406
1407
  "aria-label": O(h)("bulletList"),
1407
- class: g({ active: G.value.listState.type === "bullet" }),
1408
- onMousedown: n[26] ||= F((e) => Z("toggleBulletList"), ["prevent"])
1409
- }, [f(r, { name: "format_list_bulleted" })], 42, kt),
1408
+ class: g({ active: W.value.listState.type === "bullet" }),
1409
+ onMousedown: n[26] ||= F((e) => $("toggleBulletList"), ["prevent"])
1410
+ }, [f(r, { name: "format_list_bulleted" })], 42, jt),
1410
1411
  u("button", {
1411
1412
  title: O(h)("numberedList"),
1412
1413
  "aria-label": O(h)("numberedList"),
1413
- class: g({ active: G.value.listState.type === "numbered" }),
1414
- onMousedown: n[27] ||= F((e) => Z("toggleNumberedList"), ["prevent"])
1415
- }, [f(r, { name: "format_list_numbered" })], 42, At),
1414
+ class: g({ active: W.value.listState.type === "numbered" }),
1415
+ onMousedown: n[27] ||= F((e) => $("toggleNumberedList"), ["prevent"])
1416
+ }, [f(r, { name: "format_list_numbered" })], 42, Mt),
1416
1417
  u("button", {
1417
1418
  title: O(h)("decreaseIndent"),
1418
1419
  "aria-label": O(h)("decreaseIndent"),
1419
- disabled: !ce.value,
1420
- onMousedown: n[28] ||= F((e) => Z("outdent"), ["prevent"])
1421
- }, [f(r, { name: "format_indent_decrease" })], 40, jt),
1420
+ disabled: !Z.value,
1421
+ onMousedown: n[28] ||= F((e) => $("outdent"), ["prevent"])
1422
+ }, [f(r, { name: "format_indent_decrease" })], 40, Nt),
1422
1423
  u("button", {
1423
1424
  title: O(h)("increaseIndent"),
1424
1425
  "aria-label": O(h)("increaseIndent"),
1425
- onMousedown: n[29] ||= F((e) => Z("indent"), ["prevent"])
1426
- }, [f(r, { name: "format_indent_increase" })], 40, Mt),
1426
+ onMousedown: n[29] ||= F((e) => $("indent"), ["prevent"])
1427
+ }, [f(r, { name: "format_indent_increase" })], 40, Pt),
1427
1428
  u("div", {
1428
1429
  class: "toolbar-dropdown",
1429
1430
  ref_key: "spacingDropdownRef",
@@ -1431,27 +1432,27 @@ var Ne = ["title", "onClick"], Pe = {
1431
1432
  }, [u("button", {
1432
1433
  class: "toolbar-dropdown__trigger",
1433
1434
  onMousedown: n[30] ||= F((e) => O(U)("spacing"), ["prevent"]),
1434
- "aria-expanded": O(z) === "spacing",
1435
+ "aria-expanded": O(B) === "spacing",
1435
1436
  "aria-haspopup": "listbox",
1436
1437
  title: O(h)("lineSpacing.label")
1437
1438
  }, [f(r, { name: "format_line_spacing" }), f(r, {
1438
1439
  class: "chevron",
1439
1440
  name: "arrow_drop_down",
1440
1441
  size: 16
1441
- })], 40, Nt), O(z) === "spacing" ? (b(), l("div", {
1442
+ })], 40, Ft), O(B) === "spacing" ? (b(), l("div", {
1442
1443
  key: 0,
1443
- style: _(O(V)),
1444
+ style: _(O(H)),
1444
1445
  class: "toolbar-dropdown__menu"
1445
- }, [(b(!0), l(a, null, C(O(ye), (e) => (b(), l("button", {
1446
+ }, [(b(!0), l(a, null, C(O(xe), (e) => (b(), l("button", {
1446
1447
  key: e.value,
1447
- class: g(["toolbar-dropdown__item", { active: Ie(e.value) }]),
1448
- onMousedown: F((t) => Fe(e.value), ["prevent"])
1449
- }, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, Pt))), 128))], 4)) : c("", !0)], 512),
1448
+ class: g(["toolbar-dropdown__item", { active: Ne(e.value) }]),
1449
+ onMousedown: F((t) => Oe(e.value), ["prevent"])
1450
+ }, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, It))), 128))], 4)) : c("", !0)], 512),
1450
1451
  u("button", {
1451
1452
  title: O(h)("formattingBar.clearFormatting"),
1452
1453
  "aria-label": O(h)("formattingBar.clearFormatting"),
1453
- onMousedown: F(je, ["prevent"])
1454
- }, [f(r, { name: "format_clear" })], 40, Ft),
1454
+ onMousedown: F(Te, ["prevent"])
1455
+ }, [f(r, { name: "format_clear" })], 40, Lt),
1455
1456
  n[48] ||= u("span", { class: "divider" }, null, -1),
1456
1457
  e.outlineDrawer ? (b(), l("button", {
1457
1458
  key: 1,
@@ -1463,7 +1464,7 @@ var Ne = ["title", "onClick"], Pe = {
1463
1464
  class: g({ active: e.outlineDrawerOpen }),
1464
1465
  onMousedown: n[31] ||= F(() => {}, ["prevent"]),
1465
1466
  onClick: n[32] ||= (e) => t.$emit("toggle-outline")
1466
- }, [f(r, { name: "format_list_bulleted" })], 42, It)) : c("", !0),
1467
+ }, [f(r, { name: "format_list_bulleted" })], 42, Rt)) : c("", !0),
1467
1468
  u("button", {
1468
1469
  type: "button",
1469
1470
  "data-testid": "toolbar-comments-toggle",
@@ -1473,22 +1474,22 @@ var Ne = ["title", "onClick"], Pe = {
1473
1474
  class: g({ active: e.commentsSidebarOpen }),
1474
1475
  onMousedown: n[33] ||= F(() => {}, ["prevent"]),
1475
1476
  onClick: n[34] ||= (e) => t.$emit("toggle-sidebar")
1476
- }, [f(r, { name: "comment" }), e.commentCount > 0 ? (b(), l("span", Rt, E(e.commentCount > 99 ? "99+" : e.commentCount), 1)) : c("", !0)], 42, Lt),
1477
+ }, [f(r, { name: "comment" }), e.commentCount > 0 ? (b(), l("span", Bt, E(e.commentCount > 99 ? "99+" : e.commentCount), 1)) : c("", !0)], 42, zt),
1477
1478
  e.imageContext ? (b(), l(a, { key: 2 }, [
1478
1479
  n[41] ||= u("span", { class: "divider" }, null, -1),
1479
- f(et, {
1480
+ f(nt, {
1480
1481
  "image-context": e.imageContext,
1481
1482
  onChange: n[35] ||= (e) => t.$emit("image-wrap-type", e)
1482
1483
  }, null, 8, ["image-context"]),
1483
- f($e, { onTransform: n[36] ||= (e) => t.$emit("image-transform", e) }),
1484
+ f(tt, { onTransform: n[36] ||= (e) => t.$emit("image-transform", e) }),
1484
1485
  u("button", {
1485
1486
  title: O(h)("formattingBar.imagePropertiesShortcut"),
1486
1487
  "aria-label": O(h)("formattingBar.imageProperties"),
1487
1488
  onMousedown: n[37] ||= F((e) => t.$emit("image-properties"), ["prevent"])
1488
- }, [f(r, { name: "tune" })], 40, zt)
1489
+ }, [f(r, { name: "tune" })], 40, Vt)
1489
1490
  ], 64)) : c("", !0),
1490
1491
  w(t.$slots, "table-context", {}, void 0, !0),
1491
- e.showReviewControls ? (b(), l(a, { key: 3 }, [n[42] ||= u("span", { class: "divider" }, null, -1), f(Je, {
1492
+ e.showReviewControls ? (b(), l(a, { key: 3 }, [n[42] ||= u("span", { class: "divider" }, null, -1), f(Xe, {
1492
1493
  "track-changes-on": e.trackChangesOn,
1493
1494
  "display-mode": e.displayMode,
1494
1495
  "read-only": e.readOnly,
@@ -1500,7 +1501,7 @@ var Ne = ["title", "onClick"], Pe = {
1500
1501
  "read-only"
1501
1502
  ])], 64)) : c("", !0),
1502
1503
  n[49] ||= u("span", { class: "divider" }, null, -1),
1503
- e.editorMode ? (b(), s(Be, {
1504
+ e.editorMode ? (b(), s(He, {
1504
1505
  key: 4,
1505
1506
  "model-value": e.editorMode,
1506
1507
  "onUpdate:modelValue": n[40] ||= (e) => t.$emit("mode-change", e)
@@ -1508,7 +1509,7 @@ var Ne = ["title", "onClick"], Pe = {
1508
1509
  w(t.$slots, "toolbar-extra", {}, void 0, !0)
1509
1510
  ])) : c("", !0);
1510
1511
  }
1511
- }), [["__scopeId", "data-v-fe97ba0f"]]), Vt = ["aria-valuemax"], Ht = { class: "docx-horizontal-ruler__ticks" }, Ut = ["title", "onDblclick"], Wt = 12240, Gt = 1440, Kt = 1440, qt = 567, Jt = "var(--doc-primary)", Yt = "var(--doc-primary)", Xt = "var(--doc-primary-hover)", Q = 5, Zt = /*#__PURE__*/ e(/* @__PURE__ */ p({
1512
+ }), [["__scopeId", "data-v-786dbd83"]]), Ut = ["aria-label"], Wt = ["aria-label", "aria-orientation"], Gt = ["aria-label", "aria-orientation"], Kt = { class: "docx-horizontal-ruler__ticks" }, qt = ["aria-label", "aria-orientation"], Jt = ["aria-label", "aria-orientation"], Yt = ["aria-label", "aria-orientation"], Xt = ["title", "onDblclick"], Zt = 12240, Qt = 1440, $t = 1440, en = 567, tn = "var(--doc-primary)", nn = "var(--doc-primary)", rn = "var(--doc-primary-hover)", an = 5, on = /*#__PURE__*/ e(/* @__PURE__ */ p({
1512
1513
  __name: "HorizontalRuler",
1513
1514
  props: {
1514
1515
  sectionProps: {},
@@ -1540,49 +1541,86 @@ var Ne = ["title", "onClick"], Pe = {
1540
1541
  "tab-stop-remove"
1541
1542
  ],
1542
1543
  setup(e, { emit: t }) {
1543
- 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("");
1544
- function h(e) {
1545
- return J(e) * n.zoom;
1544
+ let r = e, i = t, { t: s } = n(), d = Math.round(an * 1.6), f = S(null), p = S(null), h = S(null), g = S(0), y = S("");
1545
+ function x(e) {
1546
+ return K(e) * r.zoom;
1546
1547
  }
1547
- function g(e) {
1548
- return Math.round(q(e / n.zoom));
1548
+ function w(e) {
1549
+ return Math.round(G(e / r.zoom));
1549
1550
  }
1550
- let y = o(() => n.sectionProps?.pageWidth ?? Wt), x = o(() => n.sectionProps?.marginLeft ?? Gt), w = o(() => n.sectionProps?.marginRight ?? Gt), 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), ee = o(() => ({
1551
+ let T = o(() => r.sectionProps?.pageWidth ?? Zt), D = o(() => r.sectionProps?.marginLeft ?? Qt), k = o(() => r.sectionProps?.marginRight ?? Qt), A = o(() => x(T.value)), j = o(() => x(D.value)), M = o(() => x(k.value)), N = o(() => x(r.indentLeft)), P = o(() => x(r.indentRight)), I = o(() => r.hangingIndent ? -r.firstLineIndent : r.firstLineIndent), L = o(() => x(I.value)), ee = o(() => j.value + N.value), R = o(() => A.value - M.value - P.value), z = o(() => j.value + N.value + L.value), B = o(() => ({
1551
1552
  position: "relative",
1552
- width: D.value + "px",
1553
+ width: A.value + "px",
1553
1554
  height: "22px",
1554
1555
  backgroundColor: "transparent",
1555
1556
  overflow: "visible",
1556
1557
  userSelect: "none",
1557
- cursor: d.value ? "ew-resize" : "default"
1558
- })), R = o(() => ({
1558
+ cursor: p.value ? "ew-resize" : "default"
1559
+ })), te = o(() => ({
1559
1560
  position: "absolute",
1560
1561
  top: 0,
1561
1562
  left: 0,
1562
- width: O.value + "px",
1563
+ width: j.value + "px",
1563
1564
  height: "22px",
1564
1565
  backgroundColor: "var(--doc-shadow-subtle)",
1565
1566
  borderRight: "1px solid var(--doc-shadow-subtle)",
1566
- cursor: n.editable ? "ew-resize" : "default",
1567
+ cursor: r.editable ? "ew-resize" : "default",
1567
1568
  zIndex: 1
1568
- })), z = o(() => ({
1569
+ })), ne = o(() => ({
1569
1570
  position: "absolute",
1570
1571
  top: 0,
1571
1572
  right: 0,
1572
- width: k.value + "px",
1573
+ width: M.value + "px",
1573
1574
  height: "22px",
1574
1575
  backgroundColor: "var(--doc-shadow-subtle)",
1575
1576
  borderLeft: "1px solid var(--doc-shadow-subtle)",
1576
- cursor: n.editable ? "ew-resize" : "default",
1577
+ cursor: r.editable ? "ew-resize" : "default",
1577
1578
  zIndex: 1
1578
- })), B = o(() => {
1579
+ })), V = o(() => oe({
1580
+ pageWidth: T.value,
1581
+ leftMargin: D.value,
1582
+ rightMargin: k.value,
1583
+ leftIndent: r.indentLeft,
1584
+ rightIndent: r.indentRight
1585
+ })), H = o(() => ({
1586
+ leftMargin: Y({
1587
+ value: D.value,
1588
+ ...V.value.leftMargin,
1589
+ unit: r.unit,
1590
+ onChange: r.editable ? (e) => Q("leftMargin", e) : void 0
1591
+ }),
1592
+ rightMargin: Y({
1593
+ value: k.value,
1594
+ ...V.value.rightMargin,
1595
+ unit: r.unit,
1596
+ onChange: r.editable ? (e) => Q("rightMargin", e) : void 0
1597
+ }),
1598
+ firstLineIndent: Y({
1599
+ value: r.hangingIndent ? -r.firstLineIndent : r.firstLineIndent,
1600
+ ...V.value.firstLineIndent,
1601
+ unit: r.unit,
1602
+ onChange: r.editable ? (e) => Q("firstLineIndent", e) : void 0
1603
+ }),
1604
+ leftIndent: Y({
1605
+ value: r.indentLeft,
1606
+ ...V.value.leftIndent,
1607
+ unit: r.unit,
1608
+ onChange: r.editable ? (e) => Q("leftIndent", e) : void 0
1609
+ }),
1610
+ rightIndent: Y({
1611
+ value: r.indentRight,
1612
+ ...V.value.rightIndent,
1613
+ unit: r.unit,
1614
+ onChange: r.editable ? (e) => Q("rightIndent", e) : void 0
1615
+ })
1616
+ })), re = o(() => {
1579
1617
  let e = [];
1580
- if (n.unit === "inch") {
1581
- let t = Kt / 8, n = Math.ceil(y.value / t);
1618
+ if (r.unit === "inch") {
1619
+ let t = $t / 8, n = Math.ceil(T.value / t);
1582
1620
  for (let r = 0; r <= n; r++) {
1583
1621
  let n = r * t;
1584
- if (n > y.value) break;
1585
- let i = h(n);
1622
+ if (n > T.value) break;
1623
+ let i = x(n);
1586
1624
  r % 8 == 0 ? e.push({
1587
1625
  position: i,
1588
1626
  height: 10,
@@ -1599,11 +1637,11 @@ var Ne = ["title", "onClick"], Pe = {
1599
1637
  });
1600
1638
  }
1601
1639
  } else {
1602
- let t = qt / 10, n = Math.ceil(y.value / t);
1640
+ let t = en / 10, n = Math.ceil(T.value / t);
1603
1641
  for (let r = 0; r <= n; r++) {
1604
1642
  let n = r * t;
1605
- if (n > y.value) break;
1606
- let i = h(n);
1643
+ if (n > T.value) break;
1644
+ let i = x(n);
1607
1645
  r % 10 == 0 ? e.push({
1608
1646
  position: i,
1609
1647
  height: 10,
@@ -1618,41 +1656,41 @@ var Ne = ["title", "onClick"], Pe = {
1618
1656
  }
1619
1657
  }
1620
1658
  return e;
1621
- }), te = o(() => n.tabStops?.length ? n.tabStops.map((e) => {
1659
+ }), U = o(() => r.tabStops?.length ? r.tabStops.map((e) => {
1622
1660
  let t = e.position;
1623
1661
  return {
1624
- px: h(t),
1662
+ px: x(D.value + t),
1625
1663
  twips: t,
1626
- label: ne(t)
1664
+ label: ie(t)
1627
1665
  };
1628
1666
  }) : []);
1629
- function ne(e) {
1630
- return n.unit === "cm" ? (e / qt).toFixed(1) + " cm" : (e / Kt).toFixed(2) + "\"";
1667
+ function ie(e) {
1668
+ return r.unit === "cm" ? (e / en).toFixed(1) + " cm" : (e / $t).toFixed(2) + "\"";
1631
1669
  }
1632
- function V(e) {
1633
- return d.value === e ? Xt : f.value === e ? Yt : Jt;
1670
+ function W(e) {
1671
+ return p.value === e ? rn : h.value === e ? nn : tn;
1634
1672
  }
1635
- function re(e, t, r) {
1673
+ function ae(e, t, n) {
1636
1674
  return {
1637
1675
  position: "absolute",
1638
- left: t - Q + "px",
1676
+ left: t - an + "px",
1639
1677
  width: "10px",
1640
1678
  height: "10px",
1641
- cursor: n.editable ? "ew-resize" : "default",
1642
- zIndex: r ? 10 : 4,
1679
+ cursor: r.editable ? "ew-resize" : "default",
1680
+ zIndex: n ? 10 : 4,
1643
1681
  ...e === "down" ? { top: 0 } : { bottom: 0 }
1644
1682
  };
1645
1683
  }
1646
- function H(e, t) {
1684
+ function q(e, t) {
1647
1685
  return e === "down" ? {
1648
1686
  position: "absolute",
1649
1687
  top: "1px",
1650
1688
  left: 0,
1651
1689
  width: 0,
1652
1690
  height: 0,
1653
- borderLeft: `${Q}px solid transparent`,
1654
- borderRight: `${Q}px solid transparent`,
1655
- borderTop: `${i}px solid ${t}`,
1691
+ borderLeft: `${an}px solid transparent`,
1692
+ borderRight: `${an}px solid transparent`,
1693
+ borderTop: `${d}px solid ${t}`,
1656
1694
  transition: "border-top-color 0.1s"
1657
1695
  } : {
1658
1696
  position: "absolute",
@@ -1660,88 +1698,91 @@ var Ne = ["title", "onClick"], Pe = {
1660
1698
  left: 0,
1661
1699
  width: 0,
1662
1700
  height: 0,
1663
- borderLeft: `${Q}px solid transparent`,
1664
- borderRight: `${Q}px solid transparent`,
1665
- borderBottom: `${i}px solid ${t}`,
1701
+ borderLeft: `${an}px solid transparent`,
1702
+ borderRight: `${an}px solid transparent`,
1703
+ borderBottom: `${d}px solid ${t}`,
1666
1704
  transition: "border-bottom-color 0.1s"
1667
1705
  };
1668
1706
  }
1669
- let U = 0;
1670
- function W(e, t) {
1671
- n.editable && (d.value = e, e === "leftMargin" ? U = x.value : e === "rightMargin" ? U = w.value : e === "leftIndent" ? U = n.indentLeft : e === "rightIndent" ? U = n.indentRight : e === "firstLineIndent" && (U = n.firstLineIndent), p.value = t.clientX - (s.value?.getBoundingClientRect().left ?? 0), m.value = ne(U), document.addEventListener("mousemove", G), document.addEventListener("mouseup", K));
1707
+ let X = 0;
1708
+ function Z(e, t) {
1709
+ r.editable && (p.value = e, e === "leftMargin" ? X = D.value : e === "rightMargin" ? X = k.value : e === "leftIndent" ? X = r.indentLeft : e === "rightIndent" ? X = r.indentRight : e === "firstLineIndent" && (X = r.firstLineIndent), g.value = t.clientX - (f.value?.getBoundingClientRect().left ?? 0), y.value = ie(X), document.addEventListener("mousemove", se), document.addEventListener("mouseup", ce));
1672
1710
  }
1673
- function G(e) {
1674
- if (!d.value || !s.value) return;
1675
- let t = s.value.getBoundingClientRect();
1711
+ function se(e) {
1712
+ if (!p.value || !f.value) return;
1713
+ let t = f.value.getBoundingClientRect();
1676
1714
  if (!t) return;
1677
1715
  let n = e.clientX - t.left;
1678
- p.value = n;
1679
- let r = g(n), i = Y(d.value, r);
1680
- m.value = ne(i), ie(d.value, i);
1716
+ g.value = n;
1717
+ let r = w(n), i = le(p.value, r);
1718
+ y.value = ie(i), Q(p.value, i);
1681
1719
  }
1682
- function K(e) {
1683
- d.value = null, document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", K);
1720
+ function ce(e) {
1721
+ p.value = null, document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", ce);
1684
1722
  }
1685
- function Y(e, t) {
1686
- if (e === "leftMargin") {
1687
- let e = y.value - w.value - 720;
1688
- return Math.round(Math.max(0, Math.min(t, e)));
1689
- }
1723
+ function le(e, t) {
1724
+ if (e === "leftMargin") return J(t, V.value.leftMargin);
1690
1725
  if (e === "rightMargin") {
1691
- let e = y.value - t, n = y.value - x.value - 720;
1692
- return Math.round(Math.max(0, Math.min(e, n)));
1726
+ let e = T.value - t;
1727
+ return J(e, V.value.rightMargin);
1693
1728
  }
1694
1729
  if (e === "firstLineIndent") {
1695
- let e = t - (x.value + n.indentLeft), r = T.value - n.indentLeft - n.indentRight - 720;
1696
- return Math.round(Math.max(-n.indentLeft, Math.min(e, r)));
1730
+ let e = t - (D.value + r.indentLeft);
1731
+ return J(e, V.value.firstLineIndent);
1697
1732
  }
1698
1733
  if (e === "leftIndent") {
1699
- let e = t - x.value, r = T.value - n.indentRight - 720;
1700
- return Math.round(Math.max(0, Math.min(e, r)));
1734
+ let e = t - D.value;
1735
+ return J(e, V.value.leftIndent);
1701
1736
  }
1702
- let r = y.value - w.value - t, i = T.value - n.indentLeft - 720;
1703
- return Math.round(Math.max(0, Math.min(r, i)));
1737
+ let n = T.value - k.value - t;
1738
+ return J(n, V.value.rightIndent);
1704
1739
  }
1705
- function ie(e, t) {
1740
+ function Q(e, t) {
1706
1741
  switch (e) {
1707
1742
  case "leftMargin":
1708
- r("left-margin-change", t);
1743
+ i("left-margin-change", t);
1709
1744
  break;
1710
1745
  case "rightMargin":
1711
- r("right-margin-change", t);
1746
+ i("right-margin-change", t);
1712
1747
  break;
1713
1748
  case "firstLineIndent":
1714
- r("first-line-indent-change", t);
1749
+ i("first-line-indent-change", t);
1715
1750
  break;
1716
1751
  case "leftIndent":
1717
- r("indent-left-change", t);
1752
+ i("indent-left-change", t);
1718
1753
  break;
1719
- case "rightIndent": r("indent-right-change", t);
1754
+ case "rightIndent": i("indent-right-change", t);
1720
1755
  }
1721
1756
  }
1722
1757
  return v(() => {
1723
- document.removeEventListener("mousemove", G), document.removeEventListener("mouseup", K);
1758
+ document.removeEventListener("mousemove", se), document.removeEventListener("mouseup", ce);
1724
1759
  }), (t, n) => (b(), l("div", {
1725
1760
  ref_key: "rulerRef",
1726
- ref: s,
1761
+ ref: f,
1727
1762
  class: "docx-horizontal-ruler",
1728
- style: _(ee.value),
1729
- role: "slider",
1730
- "aria-label": "Horizontal ruler",
1731
- "aria-valuemin": 0,
1732
- "aria-valuemax": y.value
1763
+ style: _(B.value),
1764
+ role: "group",
1765
+ "aria-label": O(s)("ruler.horizontal")
1733
1766
  }, [
1734
- u("div", {
1767
+ u("div", m({
1735
1768
  class: "docx-horizontal-ruler__margin",
1736
- style: _(R.value),
1737
- onMousedown: n[0] ||= F((t) => e.editable ? W("leftMargin", t) : null, ["prevent", "stop"])
1738
- }, null, 36),
1739
- u("div", {
1769
+ style: te.value
1770
+ }, H.value.leftMargin.attributes, {
1771
+ "aria-label": H.value.leftMargin.attributes.role ? `${O(s)("dialogs.pageSetup.margins")}: ${O(s)("dialogs.pageSetup.left")}` : void 0,
1772
+ "aria-orientation": H.value.leftMargin.attributes.role ? "horizontal" : void 0,
1773
+ onKeydown: n[0] ||= (...e) => H.value.leftMargin.onKeyDown && H.value.leftMargin.onKeyDown(...e),
1774
+ onMousedown: n[1] ||= F((t) => e.editable ? Z("leftMargin", t) : null, ["prevent", "stop"])
1775
+ }), null, 16, Wt),
1776
+ u("div", m({
1740
1777
  class: "docx-horizontal-ruler__margin",
1741
- style: _(z.value),
1742
- onMousedown: n[1] ||= F((t) => e.editable ? W("rightMargin", t) : null, ["prevent", "stop"])
1743
- }, null, 36),
1744
- u("div", Ht, [(b(!0), l(a, null, C(B.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
1778
+ style: ne.value
1779
+ }, H.value.rightMargin.attributes, {
1780
+ "aria-label": H.value.rightMargin.attributes.role ? `${O(s)("dialogs.pageSetup.margins")}: ${O(s)("dialogs.pageSetup.right")}` : void 0,
1781
+ "aria-orientation": H.value.rightMargin.attributes.role ? "horizontal" : void 0,
1782
+ onKeydown: n[2] ||= (...e) => H.value.rightMargin.onKeyDown && H.value.rightMargin.onKeyDown(...e),
1783
+ onMousedown: n[3] ||= F((t) => e.editable ? Z("rightMargin", t) : null, ["prevent", "stop"])
1784
+ }), null, 16, Gt),
1785
+ u("div", Kt, [(b(!0), l(a, null, C(re.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
1745
1786
  class: "docx-horizontal-ruler__tick-line",
1746
1787
  style: _({
1747
1788
  left: e.position + "px",
@@ -1752,45 +1793,57 @@ var Ne = ["title", "onClick"], Pe = {
1752
1793
  class: "docx-horizontal-ruler__tick-label",
1753
1794
  style: _({ left: e.position + "px" })
1754
1795
  }, E(e.label), 5)) : c("", !0)], 64))), 128))]),
1755
- e.showFirstLineIndent ? (b(), l("div", {
1796
+ e.showFirstLineIndent ? (b(), l("div", m({
1756
1797
  key: 0,
1757
1798
  class: "docx-ruler-indent",
1758
- style: _(re("down", L.value, d.value === "firstLineIndent")),
1759
- onMousedown: n[2] ||= F((t) => e.editable ? W("firstLineIndent", t) : null, ["prevent", "stop"]),
1760
- onMouseenter: n[3] ||= (e) => f.value = "firstLineIndent",
1761
- onMouseleave: n[4] ||= (e) => f.value = null
1762
- }, [u("div", { style: _(H("down", V("firstLineIndent"))) }, null, 4)], 36)) : c("", !0),
1763
- e.editable ? (b(), l("div", {
1799
+ style: ae("down", z.value, p.value === "firstLineIndent"),
1800
+ onMousedown: n[4] ||= F((t) => e.editable ? Z("firstLineIndent", t) : null, ["prevent", "stop"]),
1801
+ onMouseenter: n[5] ||= (e) => h.value = "firstLineIndent"
1802
+ }, H.value.firstLineIndent.attributes, {
1803
+ "aria-label": H.value.firstLineIndent.attributes.role ? O(s)("ruler.firstLineIndent") : void 0,
1804
+ "aria-orientation": H.value.firstLineIndent.attributes.role ? "horizontal" : void 0,
1805
+ onKeydown: n[6] ||= (...e) => H.value.firstLineIndent.onKeyDown && H.value.firstLineIndent.onKeyDown(...e),
1806
+ onMouseleave: n[7] ||= (e) => h.value = null
1807
+ }), [u("div", { style: _(q("down", W("firstLineIndent"))) }, null, 4)], 16, qt)) : c("", !0),
1808
+ e.editable ? (b(), l("div", m({
1764
1809
  key: 1,
1765
1810
  class: "docx-ruler-indent",
1766
- style: _(re("up", P.value, d.value === "leftIndent")),
1767
- onMousedown: n[5] ||= F((e) => W("leftIndent", e), ["prevent", "stop"]),
1768
- onMouseenter: n[6] ||= (e) => f.value = "leftIndent",
1769
- onMouseleave: n[7] ||= (e) => f.value = null
1770
- }, [u("div", { style: _(H("up", V("leftIndent"))) }, null, 4)], 36)) : c("", !0),
1771
- e.editable ? (b(), l("div", {
1811
+ style: ae("up", ee.value, p.value === "leftIndent"),
1812
+ onMousedown: n[8] ||= F((e) => Z("leftIndent", e), ["prevent", "stop"]),
1813
+ onMouseenter: n[9] ||= (e) => h.value = "leftIndent"
1814
+ }, H.value.leftIndent.attributes, {
1815
+ "aria-label": H.value.leftIndent.attributes.role ? O(s)("ruler.leftIndent") : void 0,
1816
+ "aria-orientation": H.value.leftIndent.attributes.role ? "horizontal" : void 0,
1817
+ onKeydown: n[10] ||= (...e) => H.value.leftIndent.onKeyDown && H.value.leftIndent.onKeyDown(...e),
1818
+ onMouseleave: n[11] ||= (e) => h.value = null
1819
+ }), [u("div", { style: _(q("up", W("leftIndent"))) }, null, 4)], 16, Jt)) : c("", !0),
1820
+ e.editable ? (b(), l("div", m({
1772
1821
  key: 2,
1773
1822
  class: "docx-ruler-indent",
1774
- style: _(re("down", I.value, d.value === "rightIndent")),
1775
- onMousedown: n[8] ||= F((e) => W("rightIndent", e), ["prevent", "stop"]),
1776
- onMouseenter: n[9] ||= (e) => f.value = "rightIndent",
1777
- onMouseleave: n[10] ||= (e) => f.value = null
1778
- }, [u("div", { style: _(H("down", V("rightIndent"))) }, null, 4)], 36)) : c("", !0),
1779
- (b(!0), l(a, null, C(te.value, (e, n) => (b(), l("div", {
1823
+ style: ae("down", R.value, p.value === "rightIndent"),
1824
+ onMousedown: n[12] ||= F((e) => Z("rightIndent", e), ["prevent", "stop"]),
1825
+ onMouseenter: n[13] ||= (e) => h.value = "rightIndent"
1826
+ }, H.value.rightIndent.attributes, {
1827
+ "aria-label": H.value.rightIndent.attributes.role ? O(s)("ruler.rightIndent") : void 0,
1828
+ "aria-orientation": H.value.rightIndent.attributes.role ? "horizontal" : void 0,
1829
+ onKeydown: n[14] ||= (...e) => H.value.rightIndent.onKeyDown && H.value.rightIndent.onKeyDown(...e),
1830
+ onMouseleave: n[15] ||= (e) => h.value = null
1831
+ }), [u("div", { style: _(q("down", W("rightIndent"))) }, null, 4)], 16, Yt)) : c("", !0),
1832
+ (b(!0), l(a, null, C(U.value, (e, n) => (b(), l("div", {
1780
1833
  key: n,
1781
1834
  class: "docx-horizontal-ruler__tab",
1782
1835
  style: _({ left: e.px + "px" }),
1783
1836
  title: `${e.label}`,
1784
1837
  onDblclick: F((n) => t.$emit("tab-stop-remove", e.twips), ["prevent"])
1785
- }, " L ", 44, Ut))), 128)),
1786
- d.value && m.value ? (b(), l("div", {
1838
+ }, " L ", 44, Xt))), 128)),
1839
+ p.value && y.value ? (b(), l("div", {
1787
1840
  key: 3,
1788
1841
  class: "docx-horizontal-ruler__tooltip",
1789
- style: _({ left: p.value + "px" })
1790
- }, E(m.value), 5)) : c("", !0)
1791
- ], 12, Vt));
1842
+ style: _({ left: g.value + "px" })
1843
+ }, E(y.value), 5)) : c("", !0)
1844
+ ], 12, Ut));
1792
1845
  }
1793
- }), [["__scopeId", "data-v-b25fde06"]]), Qt = /* @__PURE__ */ p({
1846
+ }), [["__scopeId", "data-v-996b9e9e"]]), sn = /* @__PURE__ */ p({
1794
1847
  __name: "TableBorderColorPicker",
1795
1848
  props: {
1796
1849
  disabled: { type: Boolean },
@@ -1817,7 +1870,7 @@ var Ne = ["title", "onClick"], Pe = {
1817
1870
  "title"
1818
1871
  ]));
1819
1872
  }
1820
- }), $t = ["disabled", "onClick"], en = { class: "docx-tbp__panel" }, tn = ["title", "onClick"], nn = /*#__PURE__*/ e(/* @__PURE__ */ p({
1873
+ }), cn = ["disabled", "onClick"], ln = { class: "docx-tbp__panel" }, un = ["title", "onClick"], dn = /*#__PURE__*/ e(/* @__PURE__ */ p({
1821
1874
  __name: "TableBorderPicker",
1822
1875
  props: { disabled: { type: Boolean } },
1823
1876
  emits: ["change"],
@@ -1891,8 +1944,8 @@ var Ne = ["title", "onClick"], Pe = {
1891
1944
  }, [f(r, {
1892
1945
  name: "border_all",
1893
1946
  size: 20
1894
- })], 8, $t)]),
1895
- panel: M(() => [u("div", en, [(b(), l(a, null, C(d, (e) => u("button", {
1947
+ })], 8, cn)]),
1948
+ panel: M(() => [u("div", ln, [(b(), l(a, null, C(d, (e) => u("button", {
1896
1949
  key: e.value,
1897
1950
  type: "button",
1898
1951
  class: "docx-tbp__option",
@@ -1901,11 +1954,11 @@ var Ne = ["title", "onClick"], Pe = {
1901
1954
  }, [f(r, {
1902
1955
  name: e.icon,
1903
1956
  size: 20
1904
- }, null, 8, ["name"])], 8, tn)), 64))])]),
1957
+ }, null, 8, ["name"])], 8, un)), 64))])]),
1905
1958
  _: 1
1906
1959
  }, 8, ["open"]));
1907
1960
  }
1908
- }), [["__scopeId", "data-v-02e5b963"]]), rn = ["disabled", "onClick"], an = { class: "docx-tbwidth__panel" }, on = ["onClick"], sn = { class: "docx-tbwidth__label" }, cn = /*#__PURE__*/ e(/* @__PURE__ */ p({
1961
+ }), [["__scopeId", "data-v-02e5b963"]]), fn = ["disabled", "onClick"], pn = { class: "docx-tbwidth__panel" }, mn = ["onClick"], hn = { class: "docx-tbwidth__label" }, gn = /*#__PURE__*/ e(/* @__PURE__ */ p({
1909
1962
  __name: "TableBorderWidthPicker",
1910
1963
  props: { disabled: { type: Boolean } },
1911
1964
  emits: ["change"],
@@ -1969,8 +2022,8 @@ var Ne = ["title", "onClick"], Pe = {
1969
2022
  }, [f(r, {
1970
2023
  name: "line_weight",
1971
2024
  size: 20
1972
- })], 8, rn)]),
1973
- panel: M(() => [u("div", an, [(b(), l(a, null, C(d, (e) => u("button", {
2025
+ })], 8, fn)]),
2026
+ panel: M(() => [u("div", pn, [(b(), l(a, null, C(d, (e) => u("button", {
1974
2027
  key: e.eighths,
1975
2028
  type: "button",
1976
2029
  class: "docx-tbwidth__option",
@@ -1978,11 +2031,11 @@ var Ne = ["title", "onClick"], Pe = {
1978
2031
  }, [u("span", {
1979
2032
  class: "docx-tbwidth__preview",
1980
2033
  style: _({ borderTopWidth: e.previewPx + "px" })
1981
- }, null, 4), u("span", sn, E(e.label), 1)], 8, on)), 64))])]),
2034
+ }, null, 4), u("span", hn, E(e.label), 1)], 8, mn)), 64))])]),
1982
2035
  _: 1
1983
2036
  }, 8, ["open"]));
1984
2037
  }
1985
- }), [["__scopeId", "data-v-0aa73d09"]]), ln = /* @__PURE__ */ p({
2038
+ }), [["__scopeId", "data-v-0aa73d09"]]), _n = /* @__PURE__ */ p({
1986
2039
  __name: "TableCellFillPicker",
1987
2040
  props: {
1988
2041
  disabled: { type: Boolean },
@@ -2012,23 +2065,23 @@ var Ne = ["title", "onClick"], Pe = {
2012
2065
  "auto-label"
2013
2066
  ]));
2014
2067
  }
2015
- }), un = [
2068
+ }), vn = [
2016
2069
  "disabled",
2017
2070
  "title",
2018
2071
  "onClick"
2019
- ], dn = ["aria-label"], fn = ["disabled"], pn = ["disabled"], mn = ["disabled"], hn = ["disabled"], gn = { class: "docx-tmore__section-label" }, _n = { class: "docx-tmore__icon-row" }, vn = ["title"], yn = ["title"], bn = ["title"], xn = { class: "docx-tmore__section-label" }, Sn = { class: "docx-tmore__icon-row" }, Cn = ["title"], wn = ["title"], Tn = ["title"], En = { class: "docx-tmore__grow" }, Dn = {
2072
+ ], yn = ["aria-label"], bn = ["disabled"], xn = ["disabled"], Sn = ["disabled"], Cn = ["disabled"], wn = { class: "docx-tmore__section-label" }, Tn = { class: "docx-tmore__icon-row" }, En = ["title"], Dn = ["title"], On = ["title"], kn = { class: "docx-tmore__section-label" }, An = { class: "docx-tmore__icon-row" }, jn = ["title"], Mn = ["title"], Nn = ["title"], Pn = { class: "docx-tmore__grow" }, Fn = {
2020
2073
  key: 0,
2021
2074
  class: "docx-tmore__sub"
2022
- }, On = { class: "docx-tmore__margin-grid" }, kn = { class: "docx-tmore__field-label" }, An = ["onUpdate:modelValue"], jn = { class: "docx-tmore__grow" }, Mn = {
2075
+ }, In = { class: "docx-tmore__margin-grid" }, Ln = { class: "docx-tmore__field-label" }, Rn = ["onUpdate:modelValue"], zn = { class: "docx-tmore__grow" }, Bn = {
2023
2076
  key: 1,
2024
2077
  class: "docx-tmore__sub"
2025
- }, Nn = { class: "docx-tmore__row-field" }, Pn = { class: "docx-tmore__field-label" }, Fn = { value: "auto" }, In = { value: "atLeast" }, Ln = { value: "exact" }, Rn = {
2078
+ }, Vn = { class: "docx-tmore__row-field" }, Hn = { class: "docx-tmore__field-label" }, Un = { value: "auto" }, Wn = { value: "atLeast" }, Gn = { value: "exact" }, Kn = {
2026
2079
  key: 0,
2027
2080
  class: "docx-tmore__row-field"
2028
- }, zn = { class: "docx-tmore__field-label" }, Bn = { class: "docx-tmore__grow" }, Vn = {
2081
+ }, qn = { class: "docx-tmore__field-label" }, Jn = { class: "docx-tmore__grow" }, Yn = {
2029
2082
  key: 2,
2030
2083
  class: "docx-tmore__sub docx-tmore__sub--list"
2031
- }, Hn = /*#__PURE__*/ e(/* @__PURE__ */ p({
2084
+ }, Xn = /*#__PURE__*/ e(/* @__PURE__ */ p({
2032
2085
  __name: "TableMoreDropdown",
2033
2086
  props: {
2034
2087
  disabled: {
@@ -2106,7 +2159,7 @@ var Ne = ["title", "onClick"], Pe = {
2106
2159
  }, [f(r, {
2107
2160
  name: "more_vert",
2108
2161
  size: 20
2109
- })], 10, un)]),
2162
+ })], 10, vn)]),
2110
2163
  panel: M(() => [u("div", {
2111
2164
  class: "docx-tmore__panel",
2112
2165
  role: "menu",
@@ -2153,7 +2206,7 @@ var Ne = ["title", "onClick"], Pe = {
2153
2206
  }, [f(r, {
2154
2207
  name: "call_merge",
2155
2208
  size: 18
2156
- }), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, fn),
2209
+ }), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, bn),
2157
2210
  u("button", {
2158
2211
  type: "button",
2159
2212
  class: "docx-tmore__item",
@@ -2162,7 +2215,7 @@ var Ne = ["title", "onClick"], Pe = {
2162
2215
  }, [f(r, {
2163
2216
  name: "call_split",
2164
2217
  size: 18
2165
- }), u("span", null, E(O(m)("table.splitCell")), 1)], 8, pn),
2218
+ }), u("span", null, E(O(m)("table.splitCell")), 1)], 8, xn),
2166
2219
  n[40] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2167
2220
  u("button", {
2168
2221
  type: "button",
@@ -2181,7 +2234,7 @@ var Ne = ["title", "onClick"], Pe = {
2181
2234
  }, [f(r, {
2182
2235
  name: "delete",
2183
2236
  size: 18
2184
- }), u("span", null, E(O(m)("deleteRow")), 1)], 8, mn),
2237
+ }), u("span", null, E(O(m)("deleteRow")), 1)], 8, Sn),
2185
2238
  u("button", {
2186
2239
  type: "button",
2187
2240
  class: "docx-tmore__item docx-tmore__item--danger",
@@ -2190,7 +2243,7 @@ var Ne = ["title", "onClick"], Pe = {
2190
2243
  }, [f(r, {
2191
2244
  name: "delete",
2192
2245
  size: 18
2193
- }), u("span", null, E(O(m)("deleteColumn")), 1)], 8, hn),
2246
+ }), u("span", null, E(O(m)("deleteColumn")), 1)], 8, Cn),
2194
2247
  u("button", {
2195
2248
  type: "button",
2196
2249
  class: "docx-tmore__item docx-tmore__item--danger",
@@ -2200,8 +2253,8 @@ var Ne = ["title", "onClick"], Pe = {
2200
2253
  size: 18
2201
2254
  }), u("span", null, E(O(m)("table.deleteTable")), 1)]),
2202
2255
  n[42] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2203
- u("div", gn, E(O(m)("tableAdvanced.verticalAlignment")), 1),
2204
- u("div", _n, [
2256
+ u("div", wn, E(O(m)("tableAdvanced.verticalAlignment")), 1),
2257
+ u("div", Tn, [
2205
2258
  u("button", {
2206
2259
  type: "button",
2207
2260
  class: "docx-tmore__icon-btn",
@@ -2211,7 +2264,7 @@ var Ne = ["title", "onClick"], Pe = {
2211
2264
  }, [f(r, {
2212
2265
  name: "vertical_align_top",
2213
2266
  size: 16
2214
- })], 40, vn),
2267
+ })], 40, En),
2215
2268
  u("button", {
2216
2269
  type: "button",
2217
2270
  class: "docx-tmore__icon-btn",
@@ -2221,7 +2274,7 @@ var Ne = ["title", "onClick"], Pe = {
2221
2274
  }, [f(r, {
2222
2275
  name: "vertical_align_center",
2223
2276
  size: 16
2224
- })], 40, yn),
2277
+ })], 40, Dn),
2225
2278
  u("button", {
2226
2279
  type: "button",
2227
2280
  class: "docx-tmore__icon-btn",
@@ -2231,11 +2284,11 @@ var Ne = ["title", "onClick"], Pe = {
2231
2284
  }, [f(r, {
2232
2285
  name: "vertical_align_bottom",
2233
2286
  size: 16
2234
- })], 40, bn)
2287
+ })], 40, On)
2235
2288
  ]),
2236
2289
  n[43] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2237
- u("div", xn, E(O(m)("tableAdvanced.tableAlignment")), 1),
2238
- u("div", Sn, [
2290
+ u("div", kn, E(O(m)("tableAdvanced.tableAlignment")), 1),
2291
+ u("div", An, [
2239
2292
  u("button", {
2240
2293
  type: "button",
2241
2294
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "left" }]),
@@ -2245,7 +2298,7 @@ var Ne = ["title", "onClick"], Pe = {
2245
2298
  }, [f(r, {
2246
2299
  name: "format_align_left",
2247
2300
  size: 16
2248
- })], 42, Cn),
2301
+ })], 42, jn),
2249
2302
  u("button", {
2250
2303
  type: "button",
2251
2304
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "center" }]),
@@ -2255,7 +2308,7 @@ var Ne = ["title", "onClick"], Pe = {
2255
2308
  }, [f(r, {
2256
2309
  name: "format_align_center",
2257
2310
  size: 16
2258
- })], 42, wn),
2311
+ })], 42, Mn),
2259
2312
  u("button", {
2260
2313
  type: "button",
2261
2314
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "right" }]),
@@ -2265,7 +2318,7 @@ var Ne = ["title", "onClick"], Pe = {
2265
2318
  }, [f(r, {
2266
2319
  name: "format_align_right",
2267
2320
  size: 16
2268
- })], 42, Tn)
2321
+ })], 42, Nn)
2269
2322
  ]),
2270
2323
  n[44] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2271
2324
  u("button", {
@@ -2277,13 +2330,13 @@ var Ne = ["title", "onClick"], Pe = {
2277
2330
  name: "padding",
2278
2331
  size: 18
2279
2332
  }),
2280
- u("span", En, E(O(m)("tableAdvanced.cellMargins")), 1),
2333
+ u("span", Pn, E(O(m)("tableAdvanced.cellMargins")), 1),
2281
2334
  f(r, {
2282
2335
  name: _.value ? "expand_less" : "expand_more",
2283
2336
  size: 18
2284
2337
  }, null, 8, ["name"])
2285
2338
  ]),
2286
- _.value ? (b(), l("div", Dn, [u("div", On, [(b(), l(a, null, C([
2339
+ _.value ? (b(), l("div", Fn, [u("div", In, [(b(), l(a, null, C([
2287
2340
  "top",
2288
2341
  "bottom",
2289
2342
  "left",
@@ -2292,14 +2345,14 @@ var Ne = ["title", "onClick"], Pe = {
2292
2345
  key: e,
2293
2346
  class: "docx-tmore__field"
2294
2347
  }, [
2295
- u("span", kn, E(e), 1),
2348
+ u("span", Ln, E(e), 1),
2296
2349
  N(u("input", {
2297
2350
  type: "number",
2298
2351
  min: "0",
2299
2352
  step: "20",
2300
2353
  "onUpdate:modelValue": (t) => w[e] = t,
2301
2354
  class: "docx-tmore__input"
2302
- }, null, 8, An), [[
2355
+ }, null, 8, Rn), [[
2303
2356
  A,
2304
2357
  w[e],
2305
2358
  void 0,
@@ -2320,23 +2373,23 @@ var Ne = ["title", "onClick"], Pe = {
2320
2373
  name: "height",
2321
2374
  size: 18
2322
2375
  }),
2323
- u("span", jn, E(O(m)("tableAdvanced.rowHeight")), 1),
2376
+ u("span", zn, E(O(m)("tableAdvanced.rowHeight")), 1),
2324
2377
  f(r, {
2325
2378
  name: v.value ? "expand_less" : "expand_more",
2326
2379
  size: 18
2327
2380
  }, null, 8, ["name"])
2328
2381
  ]),
2329
- v.value ? (b(), l("div", Mn, [
2330
- u("label", Nn, [u("span", Pn, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
2382
+ v.value ? (b(), l("div", Bn, [
2383
+ u("label", Vn, [u("span", Hn, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
2331
2384
  "onUpdate:modelValue": n[24] ||= (e) => D.value = e,
2332
2385
  class: "docx-tmore__select"
2333
2386
  }, [
2334
- u("option", Fn, E(O(m)("tableAdvanced.heightRules.auto")), 1),
2335
- u("option", In, E(O(m)("tableAdvanced.heightRules.atLeast")), 1),
2336
- u("option", Ln, E(O(m)("tableAdvanced.heightRules.exact")), 1)
2387
+ u("option", Un, E(O(m)("tableAdvanced.heightRules.auto")), 1),
2388
+ u("option", Wn, E(O(m)("tableAdvanced.heightRules.atLeast")), 1),
2389
+ u("option", Gn, E(O(m)("tableAdvanced.heightRules.exact")), 1)
2337
2390
  ], 512), [[k, D.value]])]),
2338
- D.value === "auto" ? c("", !0) : (b(), l("label", Rn, [
2339
- u("span", zn, E(O(m)("tableAdvanced.height")), 1),
2391
+ D.value === "auto" ? c("", !0) : (b(), l("label", Kn, [
2392
+ u("span", qn, E(O(m)("tableAdvanced.height")), 1),
2340
2393
  N(u("input", {
2341
2394
  type: "number",
2342
2395
  min: "0",
@@ -2366,13 +2419,13 @@ var Ne = ["title", "onClick"], Pe = {
2366
2419
  name: "text_rotation_none",
2367
2420
  size: 18
2368
2421
  }),
2369
- u("span", Bn, E(O(m)("textDirection")), 1),
2422
+ u("span", Jn, E(O(m)("textDirection")), 1),
2370
2423
  f(r, {
2371
2424
  name: y.value ? "expand_less" : "expand_more",
2372
2425
  size: 18
2373
2426
  }, null, 8, ["name"])
2374
2427
  ]),
2375
- y.value ? (b(), l("div", Vn, [
2428
+ y.value ? (b(), l("div", Yn, [
2376
2429
  u("button", {
2377
2430
  type: "button",
2378
2431
  class: "docx-tmore__sub-item",
@@ -2431,11 +2484,11 @@ var Ne = ["title", "onClick"], Pe = {
2431
2484
  name: "settings",
2432
2485
  size: 18
2433
2486
  }), u("span", null, E(O(m)("tableAdvanced.tableProperties")), 1)])
2434
- ], 8, dn)]),
2487
+ ], 8, yn)]),
2435
2488
  _: 1
2436
2489
  }, 8, ["open"]));
2437
2490
  }
2438
- }), [["__scopeId", "data-v-af08ecc9"]]), Un = /*#__PURE__*/ e(/* @__PURE__ */ p({
2491
+ }), [["__scopeId", "data-v-af08ecc9"]]), Zn = /*#__PURE__*/ e(/* @__PURE__ */ p({
2439
2492
  __name: "TableToolbar",
2440
2493
  props: {
2441
2494
  view: {},
@@ -2448,7 +2501,7 @@ var Ne = ["title", "onClick"], Pe = {
2448
2501
  let r = e, i = n, s = o(() => {
2449
2502
  r.stateTick;
2450
2503
  let e = r.view;
2451
- return e ? z(e.state) : null;
2504
+ return e ? B(e.state) : null;
2452
2505
  }), d = o(() => !!s.value?.isInTable), p = o(() => {
2453
2506
  r.stateTick;
2454
2507
  let e = r.view;
@@ -2473,14 +2526,16 @@ var Ne = ["title", "onClick"], Pe = {
2473
2526
  j([() => r.view, () => r.stateTick], () => {
2474
2527
  let e = r.view;
2475
2528
  if (!e) return;
2476
- let t = z(e.state), n = t.cellBorderColor;
2529
+ let t = B(e.state), n = t.cellBorderColor;
2477
2530
  n && t.isInTable && typeof n == "object" && "rgb" in n && typeof n.rgb == "string" && (S.color = { rgb: n.rgb });
2478
2531
  }, { immediate: !0 });
2479
2532
  function C(e, ...t) {
2480
2533
  let n = r.view;
2481
2534
  if (!n) return !1;
2482
2535
  let i = r.getCommands()[e];
2483
- return i ? (i(...t)(n.state, (e) => n.dispatch(e), n), n.focus(), !0) : !1;
2536
+ if (!i) return !1;
2537
+ let a = i(...t);
2538
+ return z(n, a), n.focus(), !0;
2484
2539
  }
2485
2540
  function w(e) {
2486
2541
  let t = {
@@ -2562,14 +2617,14 @@ var Ne = ["title", "onClick"], Pe = {
2562
2617
  onRowHeight: N
2563
2618
  }), (t, n) => d.value ? (b(), l(a, { key: 0 }, [
2564
2619
  n[0] ||= u("span", { class: "divider" }, null, -1),
2565
- f(nn, { onChange: w }),
2566
- f(Qt, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
2567
- f(cn, { onChange: E }),
2568
- f(ln, {
2620
+ f(dn, { onChange: w }),
2621
+ f(sn, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
2622
+ f(gn, { onChange: E }),
2623
+ f(_n, {
2569
2624
  theme: e.theme ?? null,
2570
2625
  onChange: D
2571
2626
  }, null, 8, ["theme"]),
2572
- f(Hn, {
2627
+ f(Xn, {
2573
2628
  "can-split": p.value,
2574
2629
  "can-merge": _.value,
2575
2630
  "row-count": v.value,
@@ -2588,7 +2643,7 @@ var Ne = ["title", "onClick"], Pe = {
2588
2643
  ])
2589
2644
  ], 64)) : c("", !0);
2590
2645
  }
2591
- }), [["__scopeId", "data-v-30ceb320"]]), Wn = { class: "docx-vertical-ruler__ticks" }, Gn = 15840, Kn = 1440, qn = 1440, Jn = 567, Yn = /*#__PURE__*/ e(/* @__PURE__ */ p({
2646
+ }), [["__scopeId", "data-v-bf9947ff"]]), Qn = ["aria-label"], $n = { class: "docx-vertical-ruler__ticks" }, er = ["aria-label", "aria-orientation"], tr = ["aria-label", "aria-orientation"], nr = 15840, rr = 1440, ir = 1440, ar = 567, or = /*#__PURE__*/ e(/* @__PURE__ */ p({
2592
2647
  __name: "VerticalRuler",
2593
2648
  props: {
2594
2649
  sectionProps: {},
@@ -2601,29 +2656,46 @@ var Ne = ["title", "onClick"], Pe = {
2601
2656
  },
2602
2657
  emits: ["top-margin-change", "bottom-margin-change"],
2603
2658
  setup(e, { emit: t }) {
2604
- let n = e, r = t, i = S(null), s = S(null);
2605
- function d(e) {
2606
- return J(e) * n.zoom;
2659
+ let r = e, { t: i } = n(), s = t, d = S(null), f = S(null);
2660
+ function p(e) {
2661
+ return K(e) * r.zoom;
2607
2662
  }
2608
- function f(e) {
2609
- return Math.round(q(e / n.zoom));
2663
+ function h(e) {
2664
+ return Math.round(G(e / r.zoom));
2610
2665
  }
2611
- let p = o(() => n.sectionProps?.pageHeight ?? Gn), m = o(() => n.sectionProps?.marginTop ?? Kn), h = o(() => n.sectionProps?.marginBottom ?? Kn), g = o(() => d(p.value)), y = o(() => d(m.value)), x = o(() => d(h.value)), w = o(() => ({
2666
+ let g = o(() => r.sectionProps?.pageHeight ?? nr), y = o(() => r.sectionProps?.marginTop ?? rr), x = o(() => r.sectionProps?.marginBottom ?? rr), w = o(() => p(g.value)), T = o(() => p(y.value)), D = o(() => p(x.value)), k = o(() => ({
2612
2667
  position: "relative",
2613
2668
  width: "20px",
2614
- height: g.value + "px",
2669
+ height: w.value + "px",
2615
2670
  backgroundColor: "transparent",
2616
2671
  overflow: "visible",
2617
2672
  userSelect: "none",
2618
- cursor: i.value ? "ns-resize" : "default"
2619
- })), T = o(() => {
2673
+ cursor: d.value ? "ns-resize" : "default"
2674
+ })), A = o(() => X({
2675
+ pageHeight: g.value,
2676
+ topMargin: y.value,
2677
+ bottomMargin: x.value
2678
+ })), j = o(() => ({
2679
+ topMargin: Y({
2680
+ value: y.value,
2681
+ ...A.value.topMargin,
2682
+ unit: r.unit,
2683
+ onChange: r.editable ? (e) => s("top-margin-change", e) : void 0
2684
+ }),
2685
+ bottomMargin: Y({
2686
+ value: x.value,
2687
+ ...A.value.bottomMargin,
2688
+ unit: r.unit,
2689
+ onChange: r.editable ? (e) => s("bottom-margin-change", e) : void 0
2690
+ })
2691
+ })), M = o(() => {
2620
2692
  let e = [];
2621
- if (n.unit === "inch") {
2622
- let t = qn / 8, n = Math.ceil(p.value / t);
2693
+ if (r.unit === "inch") {
2694
+ let t = ir / 8, n = Math.ceil(g.value / t);
2623
2695
  for (let r = 0; r <= n; r++) {
2624
2696
  let n = r * t;
2625
- if (n > p.value) break;
2626
- let i = d(n);
2697
+ if (n > g.value) break;
2698
+ let i = p(n);
2627
2699
  r % 8 == 0 ? e.push({
2628
2700
  position: i,
2629
2701
  width: 10,
@@ -2640,11 +2712,11 @@ var Ne = ["title", "onClick"], Pe = {
2640
2712
  });
2641
2713
  }
2642
2714
  } else {
2643
- let t = Jn / 10, n = Math.ceil(p.value / t);
2715
+ let t = ar / 10, n = Math.ceil(g.value / t);
2644
2716
  for (let r = 0; r <= n; r++) {
2645
2717
  let n = r * t;
2646
- if (n > p.value) break;
2647
- let i = d(n);
2718
+ if (n > g.value) break;
2719
+ let i = p(n);
2648
2720
  r % 10 == 0 ? e.push({
2649
2721
  position: i,
2650
2722
  width: 10,
@@ -2660,19 +2732,19 @@ var Ne = ["title", "onClick"], Pe = {
2660
2732
  }
2661
2733
  return e;
2662
2734
  });
2663
- function D(e) {
2735
+ function N(e) {
2664
2736
  return {
2665
2737
  position: "absolute",
2666
2738
  top: e - 5 + "px",
2667
2739
  right: 0,
2668
2740
  width: "20px",
2669
2741
  height: "10px",
2670
- cursor: n.editable ? "ns-resize" : "default",
2671
- zIndex: i.value === null ? 1 : 10
2742
+ cursor: r.editable ? "ns-resize" : "default",
2743
+ zIndex: d.value === null ? 1 : 10
2672
2744
  };
2673
2745
  }
2674
- function O(e) {
2675
- let t = i.value === e, n = s.value === e, r = "var(--doc-primary)";
2746
+ function P(e) {
2747
+ let t = d.value === e, n = f.value === e, r = "var(--doc-primary)";
2676
2748
  return t ? r = "var(--doc-primary-hover)" : n && (r = "var(--doc-primary)"), {
2677
2749
  position: "absolute",
2678
2750
  top: "0px",
@@ -2685,28 +2757,27 @@ var Ne = ["title", "onClick"], Pe = {
2685
2757
  transition: "border-right-color 0.1s"
2686
2758
  };
2687
2759
  }
2688
- let k = 0, A = 0;
2689
- function j(e, t) {
2690
- n.editable && (i.value = e, k = t.clientY, A = e === "topMargin" ? m.value : h.value, document.addEventListener("mousemove", M), document.addEventListener("mouseup", N));
2760
+ let I = 0, L = 0;
2761
+ function ee(e, t) {
2762
+ r.editable && (d.value = e, I = t.clientY, L = e === "topMargin" ? y.value : x.value, document.addEventListener("mousemove", R), document.addEventListener("mouseup", z));
2691
2763
  }
2692
- function M(e) {
2693
- if (!i.value) return;
2694
- let t = e.clientY - k, n = f(i.value === "topMargin" ? t : -t), a = p.value - (i.value === "topMargin" ? h.value : m.value) - 720, o = Math.round(Math.max(0, Math.min(A + n, a)));
2695
- i.value === "topMargin" ? r("top-margin-change", o) : r("bottom-margin-change", o);
2764
+ function R(e) {
2765
+ if (!d.value) return;
2766
+ let t = e.clientY - I, n = h(d.value === "topMargin" ? t : -t), r = J(L + n, A.value[d.value]);
2767
+ d.value === "topMargin" ? s("top-margin-change", r) : s("bottom-margin-change", r);
2696
2768
  }
2697
- function N() {
2698
- i.value = null, document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", N);
2769
+ function z() {
2770
+ d.value = null, document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", z);
2699
2771
  }
2700
2772
  return v(() => {
2701
- document.removeEventListener("mousemove", M), document.removeEventListener("mouseup", N);
2773
+ document.removeEventListener("mousemove", R), document.removeEventListener("mouseup", z);
2702
2774
  }), (t, n) => (b(), l("div", {
2703
2775
  class: "docx-vertical-ruler",
2704
- style: _(w.value),
2705
- role: "slider",
2706
- "aria-label": "Vertical ruler",
2707
- "aria-orientation": "vertical"
2776
+ style: _(k.value),
2777
+ role: "group",
2778
+ "aria-label": O(i)("ruler.vertical")
2708
2779
  }, [
2709
- u("div", Wn, [(b(!0), l(a, null, C(T.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
2780
+ u("div", $n, [(b(!0), l(a, null, C(M.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
2710
2781
  class: "docx-vertical-ruler__tick-line",
2711
2782
  style: _({
2712
2783
  top: e.position + "px",
@@ -2717,27 +2788,35 @@ var Ne = ["title", "onClick"], Pe = {
2717
2788
  class: "docx-vertical-ruler__tick-label",
2718
2789
  style: _({ top: e.position + "px" })
2719
2790
  }, E(e.label), 5)) : c("", !0)], 64))), 128))]),
2720
- e.editable ? (b(), l("div", {
2791
+ e.editable ? (b(), l("div", m({
2721
2792
  key: 0,
2722
2793
  class: "docx-vertical-ruler__marker",
2723
- style: _(D(y.value)),
2724
- onMousedown: n[0] ||= F((e) => j("topMargin", e), ["prevent"]),
2725
- onMouseenter: n[1] ||= (e) => s.value = "topMargin",
2726
- onMouseleave: n[2] ||= (e) => s.value = null
2727
- }, [u("div", { style: _(O("topMargin")) }, null, 4)], 36)) : c("", !0),
2728
- e.editable ? (b(), l("div", {
2794
+ style: N(T.value),
2795
+ onMousedown: n[0] ||= F((e) => ee("topMargin", e), ["prevent"]),
2796
+ onMouseenter: n[1] ||= (e) => f.value = "topMargin"
2797
+ }, j.value.topMargin.attributes, {
2798
+ "aria-label": j.value.topMargin.attributes.role ? O(i)("ruler.topMargin") : void 0,
2799
+ "aria-orientation": j.value.topMargin.attributes.role ? "vertical" : void 0,
2800
+ onKeydown: n[2] ||= (...e) => j.value.topMargin.onKeyDown && j.value.topMargin.onKeyDown(...e),
2801
+ onMouseleave: n[3] ||= (e) => f.value = null
2802
+ }), [u("div", { style: _(P("topMargin")) }, null, 4)], 16, er)) : c("", !0),
2803
+ e.editable ? (b(), l("div", m({
2729
2804
  key: 1,
2730
2805
  class: "docx-vertical-ruler__marker",
2731
- style: _(D(g.value - x.value)),
2732
- onMousedown: n[3] ||= F((e) => j("bottomMargin", e), ["prevent"]),
2733
- onMouseenter: n[4] ||= (e) => s.value = "bottomMargin",
2734
- onMouseleave: n[5] ||= (e) => s.value = null
2735
- }, [u("div", { style: _(O("bottomMargin")) }, null, 4)], 36)) : c("", !0)
2736
- ], 4));
2806
+ style: N(w.value - D.value),
2807
+ onMousedown: n[4] ||= F((e) => ee("bottomMargin", e), ["prevent"]),
2808
+ onMouseenter: n[5] ||= (e) => f.value = "bottomMargin"
2809
+ }, j.value.bottomMargin.attributes, {
2810
+ "aria-label": j.value.bottomMargin.attributes.role ? O(i)("ruler.bottomMargin") : void 0,
2811
+ "aria-orientation": j.value.bottomMargin.attributes.role ? "vertical" : void 0,
2812
+ onKeydown: n[6] ||= (...e) => j.value.bottomMargin.onKeyDown && j.value.bottomMargin.onKeyDown(...e),
2813
+ onMouseleave: n[7] ||= (e) => f.value = null
2814
+ }), [u("div", { style: _(P("bottomMargin")) }, null, 4)], 16, tr)) : c("", !0)
2815
+ ], 12, Qn));
2737
2816
  }
2738
- }), [["__scopeId", "data-v-fc4bcb45"]]);
2817
+ }), [["__scopeId", "data-v-95933a7a"]]);
2739
2818
  // src/composables/useCommentSidebarItems.ts
2740
- function Xn({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: r, addCommentYPosition: i }) {
2819
+ function sr({ comments: e, trackedChanges: t, showResolved: n, isAddingComment: r, addCommentYPosition: i }) {
2741
2820
  return o(() => {
2742
2821
  let a = [];
2743
2822
  r?.value && i?.value != null && a.push({
@@ -2779,7 +2858,7 @@ function Xn({ comments: e, trackedChanges: t, showResolved: n, isAddingComment:
2779
2858
  });
2780
2859
  }
2781
2860
  // src/components/sidebar/AddCommentCard.vue?vue&type=script&setup=true&lang.ts
2782
- var Zn = ["onKeydown"], Qn = { class: "add-comment-card__actions" }, $n = ["disabled"], er = /*#__PURE__*/ e(/* @__PURE__ */ p({
2861
+ var cr = ["onKeydown"], lr = { class: "add-comment-card__actions" }, ur = ["disabled"], dr = /*#__PURE__*/ e(/* @__PURE__ */ p({
2783
2862
  __name: "AddCommentCard",
2784
2863
  emits: ["submit", "cancel"],
2785
2864
  setup(e, { emit: t }) {
@@ -2808,18 +2887,18 @@ var Zn = ["onKeydown"], Qn = { class: "add-comment-card__actions" }, $n = ["disa
2808
2887
  P(F(s, ["exact", "prevent"]), ["enter"]),
2809
2888
  P(c, ["esc"])
2810
2889
  ]
2811
- }, null, 40, Zn), [[A, r.value]]), u("div", Qn, [u("button", {
2890
+ }, null, 40, cr), [[A, r.value]]), u("div", lr, [u("button", {
2812
2891
  class: "add-comment-card__cancel",
2813
2892
  onClick: c
2814
2893
  }, " Cancel "), u("button", {
2815
2894
  class: g(["add-comment-card__submit", { "add-comment-card__submit--active": a.value }]),
2816
2895
  disabled: !a.value,
2817
2896
  onClick: s
2818
- }, " Comment ", 10, $n)])], 32));
2897
+ }, " Comment ", 10, ur)])], 32));
2819
2898
  }
2820
2899
  }), [["__scopeId", "data-v-8a5fd620"]]);
2821
2900
  // src/utils/comments.ts
2822
- function tr(e) {
2901
+ function fr(e) {
2823
2902
  return e ? new Date(e).toLocaleString(void 0, {
2824
2903
  hour: "numeric",
2825
2904
  minute: "2-digit",
@@ -2827,7 +2906,7 @@ function tr(e) {
2827
2906
  day: "numeric"
2828
2907
  }) : "";
2829
2908
  }
2830
- function nr(e) {
2909
+ function pr(e) {
2831
2910
  let t = e.split(/\s+/).map((e) => U({
2832
2911
  text: e,
2833
2912
  units: "graphemes",
@@ -2839,7 +2918,7 @@ function nr(e) {
2839
2918
  end: 2
2840
2919
  });
2841
2920
  }
2842
- var rr = [
2921
+ var mr = [
2843
2922
  "#6DCCB1",
2844
2923
  "#79AAD9",
2845
2924
  "#EE789D",
@@ -2853,12 +2932,12 @@ var rr = [
2853
2932
  "#E15759",
2854
2933
  "#76B7B2"
2855
2934
  ];
2856
- function ir(e) {
2935
+ function hr(e) {
2857
2936
  let t = 0;
2858
2937
  for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
2859
- return rr[Math.abs(t) % rr.length] ?? "#888888";
2938
+ return mr[Math.abs(t) % mr.length] ?? "#888888";
2860
2939
  }
2861
- function $(e, t = 50) {
2940
+ function gr(e, t = 50) {
2862
2941
  return e.length > t ? U({
2863
2942
  text: e,
2864
2943
  units: "codeUnits",
@@ -2866,18 +2945,18 @@ function $(e, t = 50) {
2866
2945
  }) + "..." : e;
2867
2946
  }
2868
2947
  // src/components/sidebar/Avatar.vue
2869
- var ar = /* @__PURE__ */ p({
2948
+ var _r = /* @__PURE__ */ p({
2870
2949
  __name: "Avatar",
2871
2950
  props: {
2872
2951
  name: { default: "U" },
2873
2952
  size: { default: 32 }
2874
2953
  },
2875
2954
  setup(e) {
2876
- let t = e, n = o(() => nr(t.name || "U")), r = o(() => ({
2955
+ let t = e, n = o(() => pr(t.name || "U")), r = o(() => ({
2877
2956
  width: t.size + "px",
2878
2957
  height: t.size + "px",
2879
2958
  borderRadius: "50%",
2880
- backgroundColor: ir(t.name || "U"),
2959
+ backgroundColor: hr(t.name || "U"),
2881
2960
  color: "#fff",
2882
2961
  display: "flex",
2883
2962
  alignItems: "center",
@@ -2891,7 +2970,7 @@ var ar = /* @__PURE__ */ p({
2891
2970
  style: _(r.value)
2892
2971
  }, E(n.value), 5));
2893
2972
  }
2894
- }), or = ["onKeydown"], sr = { class: "reply-input__actions" }, cr = ["disabled"], lr = /*#__PURE__*/ e(/* @__PURE__ */ p({
2973
+ }), vr = ["onKeydown"], yr = { class: "reply-input__actions" }, br = ["disabled"], xr = /*#__PURE__*/ e(/* @__PURE__ */ p({
2895
2974
  __name: "ReplyInput",
2896
2975
  emits: ["submit"],
2897
2976
  setup(e, { emit: t }) {
@@ -2923,14 +3002,14 @@ var ar = /* @__PURE__ */ p({
2923
3002
  P(F(p, ["prevent"]), ["enter"]),
2924
3003
  P(f, ["esc"])
2925
3004
  ]
2926
- }, null, 40, or), [[A, i.value]]), u("div", sr, [u("button", {
3005
+ }, null, 40, vr), [[A, i.value]]), u("div", yr, [u("button", {
2927
3006
  class: "reply-input__cancel",
2928
3007
  onClick: F(f, ["stop"])
2929
3008
  }, "Cancel"), u("button", {
2930
3009
  class: g(["reply-input__submit", { "reply-input__submit--active": c.value }]),
2931
3010
  disabled: !c.value,
2932
3011
  onClick: F(p, ["stop"])
2933
- }, " Reply ", 10, cr)])], 64)) : (b(), l("input", {
3012
+ }, " Reply ", 10, br)])], 64)) : (b(), l("input", {
2934
3013
  key: 0,
2935
3014
  readonly: "",
2936
3015
  placeholder: "Reply",
@@ -2939,13 +3018,13 @@ var ar = /* @__PURE__ */ p({
2939
3018
  onClick: F(d, ["stop"])
2940
3019
  }, null, 32))], 32));
2941
3020
  }
2942
- }), [["__scopeId", "data-v-343d2df1"]]), ur = {
3021
+ }), [["__scopeId", "data-v-343d2df1"]]), Sr = {
2943
3022
  key: 0,
2944
3023
  class: "reply-thread"
2945
- }, dr = {
3024
+ }, Cr = {
2946
3025
  key: 0,
2947
3026
  class: "reply-thread__more"
2948
- }, fr = { class: "reply-thread__header" }, pr = { class: "reply-thread__author-block" }, mr = { class: "reply-thread__author" }, hr = { class: "reply-thread__date" }, gr = ["data-find-comment-id", "data-find-comment-paragraph"], _r = /*#__PURE__*/ e(/* @__PURE__ */ p({
3027
+ }, wr = { class: "reply-thread__header" }, Tr = { class: "reply-thread__author-block" }, Er = { class: "reply-thread__author" }, Dr = { class: "reply-thread__date" }, Or = ["data-find-comment-id", "data-find-comment-paragraph"], kr = /*#__PURE__*/ e(/* @__PURE__ */ p({
2949
3028
  __name: "ReplyThread",
2950
3029
  props: {
2951
3030
  replies: {},
@@ -2953,24 +3032,24 @@ var ar = /* @__PURE__ */ p({
2953
3032
  },
2954
3033
  setup(e) {
2955
3034
  let t = e, n = o(() => t.isExpanded ? t.replies : t.replies.slice(-1)), r = o(() => t.isExpanded ? 0 : Math.max(0, t.replies.length - 1));
2956
- return (t, i) => e.replies.length > 0 ? (b(), l("div", ur, [r.value > 0 ? (b(), l("div", dr, E(r.value) + " " + E(r.value === 1 ? "reply" : "replies"), 1)) : c("", !0), (b(!0), l(a, null, C(n.value, (t) => (b(), l("div", {
3035
+ return (t, i) => e.replies.length > 0 ? (b(), l("div", Sr, [r.value > 0 ? (b(), l("div", Cr, E(r.value) + " " + E(r.value === 1 ? "reply" : "replies"), 1)) : c("", !0), (b(!0), l(a, null, C(n.value, (t) => (b(), l("div", {
2957
3036
  key: t.id,
2958
3037
  class: g(["reply-thread__item", { "reply-thread__item--expanded": e.isExpanded }])
2959
- }, [u("div", fr, [f(ar, {
3038
+ }, [u("div", wr, [f(_r, {
2960
3039
  name: t.author,
2961
3040
  size: 28
2962
- }, null, 8, ["name"]), u("div", pr, [u("div", mr, E(t.author || "Unknown"), 1), u("div", hr, E(O(tr)(t.date)), 1)])]), u("div", { class: g(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, [(b(!0), l(a, null, C(t.content, (e, n) => (b(), l(a, { key: n }, [u("span", {
3041
+ }, null, 8, ["name"]), u("div", Tr, [u("div", Er, E(t.author || "Unknown"), 1), u("div", Dr, E(O(fr)(t.date)), 1)])]), u("div", { class: g(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, [(b(!0), l(a, null, C(t.content, (e, n) => (b(), l(a, { key: n }, [u("span", {
2963
3042
  "data-find-comment-id": t.id,
2964
3043
  "data-find-comment-paragraph": n
2965
- }, E(O(V)(e)), 9, gr), i[0] ||= d(E(" "), -1)], 64))), 128))], 2)], 2))), 128))])) : c("", !0);
3044
+ }, E(O(H)(e)), 9, Or), i[0] ||= d(E(" "), -1)], 64))), 128))], 2)], 2))), 128))])) : c("", !0);
2966
3045
  }
2967
- }), [["__scopeId", "data-v-3ab28dc9"]]), vr = ["data-comment-id"], yr = {
3046
+ }), [["__scopeId", "data-v-3ab28dc9"]]), Ar = ["data-comment-id"], jr = {
2968
3047
  key: 0,
2969
3048
  class: "comment-card__resolved"
2970
- }, br = { class: "comment-card__head" }, xr = { class: "comment-card__author-block" }, Sr = { class: "comment-card__author" }, Cr = { class: "comment-card__date" }, wr = {
3049
+ }, Mr = { class: "comment-card__head" }, Nr = { class: "comment-card__author-block" }, Pr = { class: "comment-card__author" }, Fr = { class: "comment-card__date" }, Ir = {
2971
3050
  key: 0,
2972
3051
  class: "comment-card__actions"
2973
- }, Tr = ["title"], Er = { class: "comment-card__body" }, Dr = ["data-find-comment-id", "data-find-comment-paragraph"], Or = /*#__PURE__*/ e(/* @__PURE__ */ p({
3052
+ }, Lr = ["title"], Rr = { class: "comment-card__body" }, zr = ["data-find-comment-id", "data-find-comment-paragraph"], Br = /*#__PURE__*/ e(/* @__PURE__ */ p({
2974
3053
  __name: "CommentCard",
2975
3054
  props: {
2976
3055
  comment: {},
@@ -2995,17 +3074,17 @@ var ar = /* @__PURE__ */ p({
2995
3074
  onClick: n[5] ||= (e) => t.$emit("click"),
2996
3075
  onMousedown: n[6] ||= F(() => {}, ["stop"])
2997
3076
  }, [
2998
- e.comment.done ? (b(), l("div", yr, [f(r, {
3077
+ e.comment.done ? (b(), l("div", jr, [f(r, {
2999
3078
  name: "check",
3000
3079
  size: 12
3001
3080
  }), n[7] ||= u("span", null, "Resolved", -1)])) : c("", !0),
3002
- u("div", br, [
3003
- f(ar, {
3081
+ u("div", Mr, [
3082
+ f(_r, {
3004
3083
  name: e.comment.author,
3005
3084
  size: 32
3006
3085
  }, null, 8, ["name"]),
3007
- u("div", xr, [u("div", Sr, E(e.comment.author || "Unknown"), 1), u("div", Cr, E(O(tr)(e.comment.date)), 1)]),
3008
- e.expanded ? (b(), l("div", wr, [
3086
+ u("div", Nr, [u("div", Pr, E(e.comment.author || "Unknown"), 1), u("div", Fr, E(O(fr)(e.comment.date)), 1)]),
3087
+ e.expanded ? (b(), l("div", Ir, [
3009
3088
  u("button", {
3010
3089
  class: "comment-card__icon-btn",
3011
3090
  title: e.comment.done ? "Reopen" : "Resolve",
@@ -3013,7 +3092,7 @@ var ar = /* @__PURE__ */ p({
3013
3092
  }, [f(r, {
3014
3093
  name: e.comment.done ? "undo" : "check",
3015
3094
  size: 20
3016
- }, null, 8, ["name"])], 8, Tr),
3095
+ }, null, 8, ["name"])], 8, Lr),
3017
3096
  u("button", {
3018
3097
  class: "comment-card__icon-btn",
3019
3098
  title: "More options",
@@ -3033,21 +3112,21 @@ var ar = /* @__PURE__ */ p({
3033
3112
  }, " Delete ")], 32)) : c("", !0)
3034
3113
  ])) : c("", !0)
3035
3114
  ]),
3036
- u("div", Er, [(b(!0), l(a, null, C(e.comment.content, (t, r) => (b(), l(a, { key: r }, [u("span", {
3115
+ u("div", Rr, [(b(!0), l(a, null, C(e.comment.content, (t, r) => (b(), l(a, { key: r }, [u("span", {
3037
3116
  "data-find-comment-id": e.comment.id,
3038
3117
  "data-find-comment-paragraph": r
3039
- }, E(O(V)(t)), 9, Dr), n[8] ||= d(E(" "), -1)], 64))), 128))]),
3040
- f(_r, {
3118
+ }, E(O(H)(t)), 9, zr), n[8] ||= d(E(" "), -1)], 64))), 128))]),
3119
+ f(kr, {
3041
3120
  replies: e.replies,
3042
3121
  "is-expanded": e.expanded
3043
3122
  }, null, 8, ["replies", "is-expanded"]),
3044
- e.expanded && !e.comment.done ? (b(), s(lr, {
3123
+ e.expanded && !e.comment.done ? (b(), s(xr, {
3045
3124
  key: 1,
3046
3125
  onSubmit: n[4] ||= (n) => t.$emit("reply", e.comment.id, n)
3047
3126
  })) : c("", !0)
3048
- ], 42, vr));
3127
+ ], 42, Ar));
3049
3128
  }
3050
- }), [["__scopeId", "data-v-216d0740"]]), kr = ["data-comment-id"], Ar = /*#__PURE__*/ e(/* @__PURE__ */ p({
3129
+ }), [["__scopeId", "data-v-216d0740"]]), Vr = ["data-comment-id"], Hr = /*#__PURE__*/ e(/* @__PURE__ */ p({
3051
3130
  __name: "ResolvedCommentMarker",
3052
3131
  props: { comment: {} },
3053
3132
  emits: ["toggle-expand"],
@@ -3061,49 +3140,49 @@ var ar = /* @__PURE__ */ p({
3061
3140
  }, [f(r, {
3062
3141
  name: "chat_bubble_check",
3063
3142
  size: 20
3064
- })], 40, kr));
3143
+ })], 40, Vr));
3065
3144
  }
3066
- }), [["__scopeId", "data-v-c10c6f88"]]), jr = { class: "tc-card__head" }, Mr = { class: "tc-card__author-block" }, Nr = { class: "tc-card__author" }, Pr = {
3145
+ }), [["__scopeId", "data-v-c10c6f88"]]), Ur = { class: "tc-card__head" }, Wr = { class: "tc-card__author-block" }, Gr = { class: "tc-card__author" }, Kr = {
3067
3146
  key: 0,
3068
3147
  class: "tc-card__date"
3069
- }, Fr = {
3148
+ }, qr = {
3070
3149
  key: 0,
3071
3150
  class: "tc-card__actions"
3072
- }, Ir = [
3151
+ }, Jr = [
3073
3152
  "title",
3074
3153
  "aria-label",
3075
3154
  "aria-description",
3076
3155
  "disabled"
3077
- ], Lr = [
3156
+ ], Yr = [
3078
3157
  "title",
3079
3158
  "aria-label",
3080
3159
  "aria-description",
3081
3160
  "disabled"
3082
- ], Rr = { class: "tc-card__body" }, zr = { class: "tc-card__deleted" }, Br = { class: "tc-card__inserted" }, Vr = { class: "tc-card__inserted" }, Hr = { class: "tc-card__deleted" }, Ur = {
3161
+ ], Xr = { class: "tc-card__body" }, Zr = { class: "tc-card__deleted" }, Qr = { class: "tc-card__inserted" }, $r = { class: "tc-card__inserted" }, ei = { class: "tc-card__deleted" }, ti = {
3083
3162
  key: 0,
3084
3163
  class: "tc-card__changed"
3085
- }, Wr = { class: "tc-card__changed" }, Gr = { class: "tc-card__changed" }, Kr = {
3164
+ }, ni = { class: "tc-card__changed" }, ri = { class: "tc-card__changed" }, ii = {
3086
3165
  key: 5,
3087
3166
  class: "tc-card__inserted"
3088
- }, qr = {
3167
+ }, ai = {
3089
3168
  key: 6,
3090
3169
  class: "tc-card__deleted"
3091
- }, Jr = {
3170
+ }, oi = {
3092
3171
  key: 7,
3093
3172
  class: "tc-card__inserted"
3094
- }, Yr = {
3173
+ }, si = {
3095
3174
  key: 8,
3096
3175
  class: "tc-card__deleted"
3097
- }, Xr = {
3176
+ }, ci = {
3098
3177
  key: 9,
3099
3178
  class: "tc-card__changed"
3100
- }, Zr = {
3179
+ }, li = {
3101
3180
  key: 10,
3102
3181
  class: "tc-card__inserted"
3103
- }, Qr = {
3182
+ }, ui = {
3104
3183
  key: 11,
3105
3184
  class: "tc-card__deleted"
3106
- }, $r = /*#__PURE__*/ e(/* @__PURE__ */ p({
3185
+ }, di = /*#__PURE__*/ e(/* @__PURE__ */ p({
3107
3186
  __name: "TrackedChangeCard",
3108
3187
  props: {
3109
3188
  change: {},
@@ -3166,13 +3245,13 @@ var ar = /* @__PURE__ */ p({
3166
3245
  onClick: n[1] ||= (e) => t.$emit("click"),
3167
3246
  onMousedown: n[2] ||= F(() => {}, ["stop"])
3168
3247
  }, [
3169
- u("div", jr, [
3170
- f(ar, {
3248
+ u("div", Ur, [
3249
+ f(_r, {
3171
3250
  name: h.value,
3172
3251
  size: 32
3173
3252
  }, null, 8, ["name"]),
3174
- u("div", Mr, [u("div", Nr, E(h.value), 1), e.change.date ? (b(), l("div", Pr, E(O(tr)(e.change.date)), 1)) : c("", !0)]),
3175
- e.expanded ? (b(), l("div", Fr, [u("button", {
3253
+ u("div", Wr, [u("div", Gr, E(h.value), 1), e.change.date ? (b(), l("div", Kr, E(O(fr)(e.change.date)), 1)) : c("", !0)]),
3254
+ e.expanded ? (b(), l("div", qr, [u("button", {
3176
3255
  class: "tc-card__icon-btn",
3177
3256
  title: e.change.heldByLock?.accept ? O(i)("trackedChanges.heldByLock") : O(i)("acceptChange"),
3178
3257
  "aria-label": O(i)("acceptChange"),
@@ -3182,7 +3261,7 @@ var ar = /* @__PURE__ */ p({
3182
3261
  }, [f(r, {
3183
3262
  name: "check",
3184
3263
  size: 20
3185
- })], 8, Ir), u("button", {
3264
+ })], 8, Jr), u("button", {
3186
3265
  class: "tc-card__icon-btn",
3187
3266
  title: e.change.heldByLock?.reject ? O(i)("trackedChanges.heldByLock") : O(i)("rejectChange"),
3188
3267
  "aria-label": O(i)("rejectChange"),
@@ -3192,25 +3271,25 @@ var ar = /* @__PURE__ */ p({
3192
3271
  }, [f(r, {
3193
3272
  name: "close",
3194
3273
  size: 20
3195
- })], 8, Lr)])) : c("", !0)
3274
+ })], 8, Yr)])) : c("", !0)
3196
3275
  ]),
3197
- u("div", Rr, [e.change.type === "replacement" ? (b(), l(a, { key: 0 }, [
3276
+ u("div", Xr, [e.change.type === "replacement" ? (b(), l(a, { key: 0 }, [
3198
3277
  d(E(O(i)("trackedChanges.replaced")) + " ", 1),
3199
- u("span", zr, "\"" + E(O($)(e.change.deletedText || "")) + "\"", 1),
3278
+ u("span", Zr, "\"" + E(O(gr)(e.change.deletedText || "")) + "\"", 1),
3200
3279
  d(" " + E(O(i)("trackedChanges.with")) + " ", 1),
3201
- u("span", Br, "\"" + E(O($)(e.change.text)) + "\"", 1)
3202
- ], 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", Vr, "\"" + 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", Hr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : v.value ? (b(), l(a, { key: 3 }, [v.value.shape === "label-only" ? (b(), l("span", Ur, E(v.value.label), 1)) : (b(), l(a, { key: 1 }, [d(E(v.value.label), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[5] ||= d(": ", -1), u("span", Wr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64))], 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", Gr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Kr, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", qr, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", Jr, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", Yr, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", Xr, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Zr, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", Qr, E(O(i)("revisions.tableDeleted")), 1)) : (b(), l(a, { key: 12 }, [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))]),
3203
- f(_r, {
3280
+ u("span", Qr, "\"" + E(O(gr)(e.change.text)) + "\"", 1)
3281
+ ], 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", $r, "\"" + E(O(gr)(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", ei, "\"" + E(O(gr)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : v.value ? (b(), l(a, { key: 3 }, [v.value.shape === "label-only" ? (b(), l("span", ti, E(v.value.label), 1)) : (b(), l(a, { key: 1 }, [d(E(v.value.label), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[5] ||= d(": ", -1), u("span", ni, "\"" + E(O(gr)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64))], 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", ri, "\"" + E(O(gr)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", ii, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", ai, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", oi, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", si, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", ci, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", li, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", ui, E(O(i)("revisions.tableDeleted")), 1)) : (b(), l(a, { key: 12 }, [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(gr)(e.change.text)) + "\" ", 3)], 64))]),
3282
+ f(kr, {
3204
3283
  replies: e.replies,
3205
3284
  "is-expanded": e.expanded
3206
3285
  }, null, 8, ["replies", "is-expanded"]),
3207
- e.expanded ? (b(), s(lr, {
3286
+ e.expanded ? (b(), s(xr, {
3208
3287
  key: 0,
3209
3288
  onSubmit: n[0] ||= (n) => t.$emit("reply", e.change.revisionId, n)
3210
3289
  })) : c("", !0)
3211
3290
  ], 34));
3212
3291
  }
3213
- }), [["__scopeId", "data-v-026aadaa"]]), ei = ["data-folio-comments-surface", "tabindex"], ti = ["data-folio-scroll"], ni = ["data-card-id"], ri = /*#__PURE__*/ e(/* @__PURE__ */ p({
3292
+ }), [["__scopeId", "data-v-026aadaa"]]), fi = ["data-folio-comments-surface", "tabindex"], pi = ["data-folio-scroll"], mi = ["data-card-id"], hi = /*#__PURE__*/ e(/* @__PURE__ */ p({
3214
3293
  __name: "UnifiedSidebar",
3215
3294
  props: {
3216
3295
  isOpen: { type: Boolean },
@@ -3221,6 +3300,7 @@ var ar = /* @__PURE__ */ p({
3221
3300
  showResolved: { type: Boolean },
3222
3301
  pagesContainer: {},
3223
3302
  pageWidthPx: {},
3303
+ columnStart: {},
3224
3304
  zoom: {},
3225
3305
  activeItemId: {},
3226
3306
  addCommentYPosition: {}
@@ -3252,7 +3332,7 @@ var ar = /* @__PURE__ */ p({
3252
3332
  let t = e.target;
3253
3333
  t instanceof HTMLElement && t.closest(".unified-sidebar__card-slot") || f.value !== null && r("update:activeItemId", null);
3254
3334
  }
3255
- let h = Xn({
3335
+ let h = sr({
3256
3336
  comments: D(n, "comments"),
3257
3337
  trackedChanges: D(n, "trackedChanges"),
3258
3338
  showResolved: o(() => n.showResolved ?? !1),
@@ -3279,7 +3359,7 @@ var ar = /* @__PURE__ */ p({
3279
3359
  w.value = /* @__PURE__ */ new Map();
3280
3360
  return;
3281
3361
  }
3282
- let r = e.getBoundingClientRect(), a = K(e), o = /* @__PURE__ */ new Map();
3362
+ let r = e.getBoundingClientRect(), a = ae(e), o = /* @__PURE__ */ new Map();
3283
3363
  for (let t of e.querySelectorAll(".docx-insertion[data-revision-id]")) {
3284
3364
  let e = t.dataset.revisionId;
3285
3365
  e && !o.has(e) && o.set(e, t);
@@ -3312,10 +3392,10 @@ var ar = /* @__PURE__ */ p({
3312
3392
  t && u.set(t, e.offsetHeight);
3313
3393
  }
3314
3394
  let f = /* @__PURE__ */ new Map();
3315
- for (let { item: n, y: r } of ie({
3395
+ for (let { item: n, y: r } of Z({
3316
3396
  items: t,
3317
3397
  anchorPositions: c,
3318
- renderedDomContext: W(e),
3398
+ renderedDomContext: ie(e),
3319
3399
  zoom: 1,
3320
3400
  cardHeights: u,
3321
3401
  lastKnown: k
@@ -3332,25 +3412,18 @@ var ar = /* @__PURE__ */ p({
3332
3412
  height: 0
3333
3413
  }, B = S(z);
3334
3414
  function te() {
3335
- let e = x.value?.offsetParent, t = J(n.pagesContainer);
3336
- if (!(e instanceof HTMLElement) || !t) return;
3337
- let r = e.getBoundingClientRect(), a = t.getBoundingClientRect();
3338
- if (i.value) {
3339
- let e = Math.max(0, Math.min(L.drawerWidth, t.clientWidth - 16));
3340
- B.value = {
3341
- top: a.top - r.top,
3342
- width: e,
3343
- height: t.clientHeight
3344
- }, R.value = a.left + t.clientWidth - r.left - e;
3345
- return;
3346
- }
3347
- let o = n.pagesContainer?.querySelector(".layout-page");
3348
- if (!o) {
3415
+ if (!i.value) {
3349
3416
  R.value = null;
3350
3417
  return;
3351
3418
  }
3352
- let s = o.getBoundingClientRect().right - r.left + L.commentsGap, c = Math.max(8, e.clientWidth - L.commentsWidth - 8);
3353
- R.value = Math.max(8, Math.min(s, c));
3419
+ let e = x.value?.offsetParent, t = K(n.pagesContainer);
3420
+ if (!(e instanceof HTMLElement) || !t) return;
3421
+ let r = e.getBoundingClientRect(), a = t.getBoundingClientRect(), o = Math.max(0, Math.min(L.drawerWidth, t.clientWidth - 16));
3422
+ B.value = {
3423
+ top: a.top - r.top,
3424
+ width: o,
3425
+ height: t.clientHeight
3426
+ }, R.value = a.left + t.clientWidth - r.left - o;
3354
3427
  }
3355
3428
  let ne = o(() => ({
3356
3429
  position: "sticky",
@@ -3364,7 +3437,7 @@ var ar = /* @__PURE__ */ p({
3364
3437
  if (!e) return "";
3365
3438
  if (e.startsWith("comment-")) {
3366
3439
  let t = e.slice(8);
3367
- return `${G(t, ".paged-editor__pages ")} { background-color: rgba(255, 212, 0, 0.35) !important; border-bottom: 2px solid rgba(255, 212, 0, 0.7) !important; }`;
3440
+ return `${W(t, ".paged-editor__pages ")} { background-color: rgba(255, 212, 0, 0.35) !important; border-bottom: 2px solid rgba(255, 212, 0, 0.7) !important; }`;
3368
3441
  }
3369
3442
  if (e.startsWith("tc-")) {
3370
3443
  let t = e.split("-").at(1) ?? "";
@@ -3374,12 +3447,12 @@ var ar = /* @__PURE__ */ p({
3374
3447
  `;
3375
3448
  }
3376
3449
  return "";
3377
- }), re = o(() => {
3378
- let e = i.value, t = e ? R.value !== null : w.value.size > 0 || h.value.length === 0;
3450
+ }), H = o(() => {
3451
+ let e = i.value, t = e ? R.value !== null : w.value.size > 0 || h.value.length === 0, r = e ? R.value : n.columnStart ?? null;
3379
3452
  return {
3380
3453
  position: "absolute",
3381
3454
  top: e ? B.value.top + "px" : "0",
3382
- left: R.value === null ? `calc(50% + ${n.pageWidthPx / 2 + L.commentsGap}px)` : R.value + "px",
3455
+ left: r === null ? `calc(50% + ${n.pageWidthPx / 2 + L.commentsGap}px)` : r + "px",
3383
3456
  width: (e ? B.value.width : L.commentsWidth) + "px",
3384
3457
  paddingInline: e ? L.commentsGap + "px" : void 0,
3385
3458
  bottom: e ? void 0 : 0,
@@ -3387,7 +3460,7 @@ var ar = /* @__PURE__ */ p({
3387
3460
  pointerEvents: t ? "auto" : "none"
3388
3461
  };
3389
3462
  });
3390
- function H(e) {
3463
+ function re(e) {
3391
3464
  if (i.value) return {
3392
3465
  position: "relative",
3393
3466
  marginBottom: "8px"
@@ -3405,7 +3478,7 @@ var ar = /* @__PURE__ */ p({
3405
3478
  };
3406
3479
  }
3407
3480
  let U = !1;
3408
- function q() {
3481
+ function G() {
3409
3482
  U || (U = !0, requestAnimationFrame(() => {
3410
3483
  U = !1, I();
3411
3484
  }));
@@ -3420,8 +3493,8 @@ var ar = /* @__PURE__ */ p({
3420
3493
  n.addCommentYPosition,
3421
3494
  n.surface,
3422
3495
  n.isOpen
3423
- ], () => q(), { immediate: !0 });
3424
- function J(e) {
3496
+ ], () => G(), { immediate: !0 });
3497
+ function K(e) {
3425
3498
  let t = e?.parentElement ?? null;
3426
3499
  for (; t;) {
3427
3500
  let e = getComputedStyle(t).overflowY;
@@ -3430,16 +3503,16 @@ var ar = /* @__PURE__ */ p({
3430
3503
  }
3431
3504
  return null;
3432
3505
  }
3433
- let Y = null;
3434
- function ae() {
3435
- Y && Y.removeEventListener("scroll", q), Y = J(n.pagesContainer), Y && (Y.addEventListener("scroll", q, { passive: !0 }), A?.observe(Y));
3506
+ let q = null;
3507
+ function J() {
3508
+ q && q.removeEventListener("scroll", G), q = K(n.pagesContainer), q && (q.addEventListener("scroll", G, { passive: !0 }), A?.observe(q));
3436
3509
  }
3437
3510
  return y(() => {
3438
- N = new ResizeObserver(() => q()), q(), n.pagesContainer && (A = new ResizeObserver(() => q()), A.observe(n.pagesContainer), ae()), window.addEventListener("resize", q);
3511
+ N = new ResizeObserver(() => G()), G(), n.pagesContainer && (A = new ResizeObserver(() => G()), A.observe(n.pagesContainer), J()), window.addEventListener("resize", G);
3439
3512
  }), j(() => n.pagesContainer, (e) => {
3440
- A?.disconnect(), A = null, e && (A = new ResizeObserver(() => q()), A.observe(e)), ae(), q();
3513
+ A?.disconnect(), A = null, e && (A = new ResizeObserver(() => G()), A.observe(e)), J(), G();
3441
3514
  }), v(() => {
3442
- A?.disconnect(), N?.disconnect(), Y && Y.removeEventListener("scroll", q), window.removeEventListener("resize", q);
3515
+ A?.disconnect(), N?.disconnect(), q && q.removeEventListener("scroll", G), window.removeEventListener("resize", G);
3443
3516
  }), j(() => n.isOpen && i.value, (e, t, n) => {
3444
3517
  if (!e || typeof document > "u") return;
3445
3518
  let i = document.activeElement instanceof HTMLElement ? document.activeElement : null;
@@ -3464,7 +3537,7 @@ var ar = /* @__PURE__ */ p({
3464
3537
  "data-folio-comments-surface": e.surface ?? "column",
3465
3538
  "data-testid": "folio-comments",
3466
3539
  tabindex: i.value ? -1 : void 0,
3467
- style: _(re.value),
3540
+ style: _(H.value),
3468
3541
  onMousedown: m
3469
3542
  }, [u("div", {
3470
3543
  class: "unified-sidebar__inner",
@@ -3474,16 +3547,16 @@ var ar = /* @__PURE__ */ p({
3474
3547
  key: e.id,
3475
3548
  class: "unified-sidebar__card-slot",
3476
3549
  "data-card-id": e.id,
3477
- style: _(H(e.id))
3478
- }, [e.kind === "add-comment" ? (b(), s(er, {
3550
+ style: _(re(e.id))
3551
+ }, [e.kind === "add-comment" ? (b(), s(dr, {
3479
3552
  key: 0,
3480
3553
  onSubmit: n[0] ||= (e) => t.$emit("add-comment", e),
3481
3554
  onCancel: n[1] ||= (e) => t.$emit("cancel-add-comment")
3482
- })) : e.kind === "comment" && e.comment.done && f.value !== e.id ? (b(), s(Ar, {
3555
+ })) : e.kind === "comment" && e.comment.done && f.value !== e.id ? (b(), s(Hr, {
3483
3556
  key: 1,
3484
3557
  comment: e.comment,
3485
3558
  onToggleExpand: (t) => p(e.id)
3486
- }, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(Or, {
3559
+ }, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(Br, {
3487
3560
  key: 2,
3488
3561
  comment: e.comment,
3489
3562
  replies: e.replies,
@@ -3498,7 +3571,7 @@ var ar = /* @__PURE__ */ p({
3498
3571
  "replies",
3499
3572
  "expanded",
3500
3573
  "onClick"
3501
- ])) : e.kind === "tracked-change" ? (b(), s($r, {
3574
+ ])) : e.kind === "tracked-change" ? (b(), s(di, {
3502
3575
  key: 3,
3503
3576
  change: e.change,
3504
3577
  replies: e.replies ?? [],
@@ -3514,14 +3587,14 @@ var ar = /* @__PURE__ */ p({
3514
3587
  "replies",
3515
3588
  "expanded",
3516
3589
  "onClick"
3517
- ])) : c("", !0)], 12, ni))), 128))], 12, ti)], 46, ei)) : c("", !0)], 64));
3590
+ ])) : c("", !0)], 12, mi))), 128))], 12, pi)], 46, fi)) : c("", !0)], 64));
3518
3591
  }
3519
- }), [["__scopeId", "data-v-8a0965e0"]]), ii = [
3592
+ }), [["__scopeId", "data-v-ef4fde0d"]]), gi = [
3520
3593
  "disabled",
3521
3594
  "title",
3522
3595
  "aria-expanded",
3523
3596
  "onClick"
3524
- ], ai = { class: "docx-align__panel" }, oi = ["title", "onClick"], si = /*#__PURE__*/ e(/* @__PURE__ */ p({
3597
+ ], _i = { class: "docx-align__panel" }, vi = ["title", "onClick"], yi = /*#__PURE__*/ e(/* @__PURE__ */ p({
3525
3598
  __name: "AlignmentButtons",
3526
3599
  props: {
3527
3600
  value: { default: "left" },
@@ -3580,8 +3653,8 @@ var ar = /* @__PURE__ */ p({
3580
3653
  }, null, 8, ["name"]), f(r, {
3581
3654
  name: "arrow_drop_down",
3582
3655
  size: 14
3583
- })], 10, ii)]),
3584
- panel: M(() => [u("div", ai, [(b(), l(a, null, C(m, (t) => u("button", {
3656
+ })], 10, gi)]),
3657
+ panel: M(() => [u("div", _i, [(b(), l(a, null, C(m, (t) => u("button", {
3585
3658
  key: t.value,
3586
3659
  type: "button",
3587
3660
  class: g(["docx-align__option", { "docx-align__option--active": e.value === t.value }]),
@@ -3590,11 +3663,11 @@ var ar = /* @__PURE__ */ p({
3590
3663
  }, [f(r, {
3591
3664
  name: t.icon,
3592
3665
  size: 20
3593
- }, null, 8, ["name"])], 10, oi)), 64))])]),
3666
+ }, null, 8, ["name"])], 10, vi)), 64))])]),
3594
3667
  _: 1
3595
3668
  }, 8, ["open"]));
3596
3669
  }
3597
- }), [["__scopeId", "data-v-de187b7d"]]), ci = { class: "docx-list-btns" }, li = ["disabled"], ui = ["disabled"], di = ["disabled"], fi = ["disabled"], pi = /*#__PURE__*/ e(/* @__PURE__ */ p({
3670
+ }), [["__scopeId", "data-v-de187b7d"]]), bi = { class: "docx-list-btns" }, xi = ["disabled"], Si = ["disabled"], Ci = ["disabled"], wi = ["disabled"], Ti = /*#__PURE__*/ e(/* @__PURE__ */ p({
3598
3671
  __name: "ListButtons",
3599
3672
  props: {
3600
3673
  listState: {},
@@ -3618,7 +3691,7 @@ var ar = /* @__PURE__ */ p({
3618
3691
  "outdent"
3619
3692
  ],
3620
3693
  setup(e) {
3621
- return (t, n) => (b(), l("span", ci, [
3694
+ return (t, n) => (b(), l("span", bi, [
3622
3695
  u("button", {
3623
3696
  type: "button",
3624
3697
  class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "bullet" }]),
@@ -3628,7 +3701,7 @@ var ar = /* @__PURE__ */ p({
3628
3701
  }, [f(r, {
3629
3702
  name: "format_list_bulleted",
3630
3703
  size: 20
3631
- })], 10, li),
3704
+ })], 10, xi),
3632
3705
  u("button", {
3633
3706
  type: "button",
3634
3707
  class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "numbered" }]),
@@ -3638,7 +3711,7 @@ var ar = /* @__PURE__ */ p({
3638
3711
  }, [f(r, {
3639
3712
  name: "format_list_numbered",
3640
3713
  size: 20
3641
- })], 10, ui),
3714
+ })], 10, Si),
3642
3715
  e.showIndentButtons ? (b(), l(a, { key: 0 }, [u("button", {
3643
3716
  type: "button",
3644
3717
  class: "docx-list-btns__btn",
@@ -3648,7 +3721,7 @@ var ar = /* @__PURE__ */ p({
3648
3721
  }, [f(r, {
3649
3722
  name: "format_indent_decrease",
3650
3723
  size: 20
3651
- })], 8, di), u("button", {
3724
+ })], 8, Ci), u("button", {
3652
3725
  type: "button",
3653
3726
  class: "docx-list-btns__btn",
3654
3727
  disabled: e.disabled,
@@ -3657,10 +3730,10 @@ var ar = /* @__PURE__ */ p({
3657
3730
  }, [f(r, {
3658
3731
  name: "format_indent_increase",
3659
3732
  size: 20
3660
- })], 8, fi)], 64)) : c("", !0)
3733
+ })], 8, wi)], 64)) : c("", !0)
3661
3734
  ]));
3662
3735
  }
3663
- }), [["__scopeId", "data-v-df3a6cfe"]]), mi = /*#__PURE__*/ e(/* @__PURE__ */ p({
3736
+ }), [["__scopeId", "data-v-df3a6cfe"]]), Ei = /*#__PURE__*/ e(/* @__PURE__ */ p({
3664
3737
  __name: "StylePicker",
3665
3738
  props: {
3666
3739
  value: {},
@@ -3720,4 +3793,4 @@ var ar = /* @__PURE__ */ p({
3720
3793
  ]));
3721
3794
  }
3722
3795
  }), [["__scopeId", "data-v-44de0ff6"]]);
3723
- export { Be as C, oe as D, ue as E, Qe as S, fe as T, Qt as _, $r as a, et as b, _r as c, Yn as d, Un as f, nn as g, cn as h, ri as i, lr as l, ln as m, pi as n, Ar as o, Hn as p, si as r, Or as s, mi as t, er as u, Zt as v, he as w, $e as x, Bt as y };
3796
+ export { He as C, ce as D, de as E, et as S, pe as T, sn as _, di as a, nt as b, kr as c, or as d, Zn as f, dn as g, gn as h, hi as i, xr as l, _n as m, Ti as n, Hr as o, Xn as p, yi as r, Br as s, Ei as t, dr as u, on as v, _e as w, tt as x, Ht as y };