@stll/folio-vue 0.17.3 → 0.18.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,17 @@
1
- import { D as e, F as t, N as n, P as r, y as i } from "./SplitCellDialog-D2wgbGwH.js";
1
+ import { D as e, F as t, N as n, P as r, y as i } from "./SplitCellDialog-Cp5O_btz.js";
2
2
  import { Fragment as a, computed as o, createBlock as s, createCommentVNode as c, createElementBlock as l, createElementVNode as u, createTextVNode as d, createVNode as f, defineComponent as p, mergeProps as m, nextTick as h, normalizeClass as g, normalizeStyle as _, onBeforeUnmount as v, onMounted as y, openBlock as b, reactive as x, ref as S, renderList as C, renderSlot as w, resolveDynamicComponent as T, toDisplayString as E, toRef as D, unref as O, vModelSelect as k, vModelText as A, watch as j, withCtx as M, withDirectives as N, withKeys as P, withModifiers as F } from "vue";
3
- import { getTableContext as I } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
4
- import { extractSelectionContext as L } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
5
- import { createRenderedDomContext as R } from "@stll/folio-core/render-dom/RenderedDomContext";
6
- import { commentAnchorSelector as z, indexCommentAnchors as B } from "@stll/folio-core/render-dom/commentAnchorAttributes";
7
- import { pixelsToTwips as V, twipsToPixels as ee } from "@stll/folio-core/utils/units";
8
- import { DISPLAY_MODES as H } from "@stll/folio-core/managers/EditorModeManager";
9
- import { redoDepth as U, undoDepth as W } from "prosemirror-history";
10
- import { clearFormatting as G } from "@stll/folio-core/prosemirror/commands/formatting";
11
- import { resolveSidebarItemPositions as K } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
3
+ import { NO_LIST_STATE as I, listStateLevel as L } from "@stll/folio-core/prosemirror";
4
+ import { getTableContext as R } from "@stll/folio-core/prosemirror/extensions/nodes/TableExtension";
5
+ import { extractSelectionContext as ee } from "@stll/folio-core/prosemirror/plugins/selectionTracker";
6
+ import { createRenderedDomContext as z } from "@stll/folio-core/render-dom/RenderedDomContext";
7
+ import { commentAnchorSelector as B, indexCommentAnchors as V } from "@stll/folio-core/render-dom/commentAnchorAttributes";
8
+ import { pixelsToTwips as H, twipsToPixels as U } from "@stll/folio-core/utils/units";
9
+ import { DISPLAY_MODES as W } from "@stll/folio-core/managers/EditorModeManager";
10
+ import { redoDepth as G, undoDepth as K } from "prosemirror-history";
11
+ import { clearFormatting as te } from "@stll/folio-core/prosemirror/commands/formatting";
12
+ import { resolveSidebarItemPositions as q } from "@stll/folio-core/render-dom/resolveSidebarItemPositions";
12
13
  //#region src/components/CommentMarginMarkers.vue?vue&type=script&setup=true&lang.ts
13
- var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
14
+ var J = ["title", "onClick"], Y = /*#__PURE__*/ t(/* @__PURE__ */ p({
14
15
  __name: "CommentMarginMarkers",
15
16
  props: {
16
17
  comments: {},
@@ -26,7 +27,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
26
27
  if (t.sidebarOpen) return [];
27
28
  let e = t.pagesContainer;
28
29
  if (!e) return [];
29
- let n = e.getBoundingClientRect(), r = B(e), i = [];
30
+ let n = e.getBoundingClientRect(), r = V(e), i = [];
30
31
  for (let a of t.comments) {
31
32
  if (a.parentId != null) continue;
32
33
  let o = r.get(String(a.id));
@@ -60,12 +61,12 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
60
61
  }, [f(r, {
61
62
  name: n.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
62
63
  size: 18
63
- }, null, 8, ["name"])], 12, q))), 128))], 36)) : c("", !0);
64
+ }, null, 8, ["name"])], 12, J))), 128))], 36)) : c("", !0);
64
65
  }
65
- }), [["__scopeId", "data-v-bf75a017"]]), Y = { class: "doc-name" }, te = ["value"], ne = {
66
+ }), [["__scopeId", "data-v-bf75a017"]]), ne = { class: "doc-name" }, re = ["value"], ie = {
66
67
  key: 1,
67
68
  class: "doc-name__text"
68
- }, re = /*#__PURE__*/ t(/* @__PURE__ */ p({
69
+ }, ae = /*#__PURE__*/ t(/* @__PURE__ */ p({
69
70
  __name: "DocumentName",
70
71
  props: {
71
72
  modelValue: {},
@@ -87,16 +88,16 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
87
88
  let t = e.target;
88
89
  t instanceof HTMLInputElement && (t.value.trim() || r("update:modelValue", "Untitled document.docx"));
89
90
  }
90
- return (t, n) => (b(), l("div", Y, [e.editable ? (b(), l("input", {
91
+ return (t, n) => (b(), l("div", ne, [e.editable ? (b(), l("input", {
91
92
  key: 0,
92
93
  class: "doc-name__input",
93
94
  value: i.value,
94
95
  placeholder: "Untitled document",
95
96
  onInput: a,
96
97
  onBlur: s
97
- }, null, 40, te)) : (b(), l("span", ne, E(i.value || "Untitled document"), 1))]));
98
+ }, null, 40, re)) : (b(), l("span", ie, E(i.value || "Untitled document"), 1))]));
98
99
  }
99
- }), [["__scopeId", "data-v-ae6cb472"]]), ie = ["aria-selected", "onMouseenter"], ae = { class: "docx-table-grid-inline__label" }, oe = /*#__PURE__*/ t(/* @__PURE__ */ p({
100
+ }), [["__scopeId", "data-v-ae6cb472"]]), oe = ["aria-selected", "onMouseenter"], se = { class: "docx-table-grid-inline__label" }, ce = /*#__PURE__*/ t(/* @__PURE__ */ p({
100
101
  __name: "TableGridInline",
101
102
  props: {
102
103
  gridRows: { default: 6 },
@@ -132,15 +133,15 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
132
133
  i.value = e.r, s.value = e.c;
133
134
  },
134
135
  onClick: F(d, ["prevent"])
135
- }, null, 42, ie))), 128))], 36), u("div", ae, E(i.value > 0 && s.value > 0 ? `${s.value} × ${i.value}` : "Select size"), 1)]));
136
+ }, null, 42, oe))), 128))], 36), u("div", se, E(i.value > 0 && s.value > 0 ? `${s.value} × ${i.value}` : "Select size"), 1)]));
136
137
  }
137
- }), [["__scopeId", "data-v-79c593ca"]]), se = {
138
+ }), [["__scopeId", "data-v-79c593ca"]]), le = {
138
139
  class: "menu-bar",
139
140
  role: "menubar"
140
141
  }, X = {
141
142
  key: 1,
142
143
  class: "menu-bar__break-submenu"
143
- }, ce = ["onClick"], le = /*#__PURE__*/ t(/* @__PURE__ */ p({
144
+ }, ue = ["onClick"], de = /*#__PURE__*/ t(/* @__PURE__ */ p({
144
145
  __name: "MenuBar",
145
146
  props: {
146
147
  showFileOpen: {
@@ -236,7 +237,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
236
237
  label: h("toolbar.reportIssue"),
237
238
  onClick: g("reportIssue")
238
239
  }]);
239
- return (t, n) => (b(), l("div", se, [
240
+ return (t, n) => (b(), l("div", le, [
240
241
  f(O(d), {
241
242
  label: O(h)("toolbar.file"),
242
243
  items: _.value
@@ -249,7 +250,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
249
250
  label: O(h)("toolbar.insert"),
250
251
  items: y.value
251
252
  }, {
252
- submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(oe, {
253
+ submenu: M(({ item: e, closeMenu: t }) => [e.key === "table" ? (b(), s(ce, {
253
254
  key: 0,
254
255
  onInsert: (e, n) => {
255
256
  m("insert-table", e, n), t();
@@ -264,7 +265,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
264
265
  }, [f(r, {
265
266
  name: e.icon,
266
267
  size: 18
267
- }, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8, ce))), 128))])) : c("", !0)]),
268
+ }, null, 8, ["name"]), u("span", null, E(e.label), 1)], 8, ue))), 128))])) : c("", !0)]),
268
269
  _: 1
269
270
  }, 8, ["label", "items"]),
270
271
  e.showHelpMenu ? (b(), s(O(d), {
@@ -280,7 +281,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
280
281
  "title",
281
282
  "aria-expanded",
282
283
  "onClick"
283
- ], ue = { class: "docx-icon-grid__panel" }, de = ["title", "onClick"], fe = /*#__PURE__*/ t(/* @__PURE__ */ p({
284
+ ], fe = { class: "docx-icon-grid__panel" }, pe = ["title", "onClick"], me = /*#__PURE__*/ t(/* @__PURE__ */ p({
284
285
  __name: "IconGridDropdown",
285
286
  props: {
286
287
  options: {},
@@ -317,7 +318,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
317
318
  name: "arrow_drop_down",
318
319
  size: 14
319
320
  })], 10, Z)]),
320
- panel: M(() => [u("div", ue, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
321
+ panel: M(() => [u("div", fe, [(b(!0), l(a, null, C(e.options, (t) => (b(), l("button", {
321
322
  key: t.value,
322
323
  type: "button",
323
324
  class: g(["docx-icon-grid__option", { "docx-icon-grid__option--active": e.activeValue === t.value }]),
@@ -326,11 +327,11 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
326
327
  }, [f(r, {
327
328
  name: t.iconName,
328
329
  size: 18
329
- }, null, 8, ["name"])], 10, de))), 128))])]),
330
+ }, null, 8, ["name"])], 10, pe))), 128))])]),
330
331
  _: 1
331
332
  }, 8, ["open"]));
332
333
  }
333
- }), [["__scopeId", "data-v-72fa875c"]]), pe = /* @__PURE__ */ p({
334
+ }), [["__scopeId", "data-v-72fa875c"]]), he = /* @__PURE__ */ p({
334
335
  __name: "ImageWrapDropdown",
335
336
  props: {
336
337
  imageContext: {},
@@ -377,7 +378,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
377
378
  let e = t.imageContext;
378
379
  return e.displayMode === "float" && e.cssFloat === "left" ? "wrapRight" : e.displayMode === "float" && e.cssFloat === "right" ? "wrapLeft" : e.wrapType;
379
380
  }), 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 ?? "");
380
- return (t, n) => (b(), s(fe, {
381
+ return (t, n) => (b(), s(me, {
381
382
  options: a.value,
382
383
  "active-value": c.value,
383
384
  "trigger-icon": u.value,
@@ -392,7 +393,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
392
393
  "disabled"
393
394
  ]));
394
395
  }
395
- }), me = /* @__PURE__ */ p({
396
+ }), ge = /* @__PURE__ */ p({
396
397
  __name: "ImageTransformDropdown",
397
398
  props: { disabled: { type: Boolean } },
398
399
  emits: ["transform"],
@@ -423,7 +424,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
423
424
  label: t(e.labelKey),
424
425
  iconName: e.iconName
425
426
  })));
426
- return (n, r) => (b(), s(fe, {
427
+ return (n, r) => (b(), s(me, {
427
428
  options: i.value,
428
429
  "trigger-icon": "rotate_right",
429
430
  "tooltip-content": O(t)("imageTransform.tooltip"),
@@ -435,10 +436,10 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
435
436
  "disabled"
436
437
  ]));
437
438
  }
438
- }), he = ["title", "onClick"], ge = {
439
+ }), _e = ["title", "onClick"], ve = {
439
440
  key: 0,
440
441
  class: "editing-mode__label"
441
- }, _e = { class: "editing-mode__panel" }, ve = ["onClick"], ye = { class: "editing-mode__option-text" }, be = { class: "editing-mode__option-label" }, xe = { class: "editing-mode__option-desc" }, Se = /*#__PURE__*/ t(/* @__PURE__ */ p({
442
+ }, ye = { class: "editing-mode__panel" }, be = ["onClick"], xe = { class: "editing-mode__option-text" }, Se = { class: "editing-mode__option-label" }, Ce = { class: "editing-mode__option-desc" }, we = /*#__PURE__*/ t(/* @__PURE__ */ p({
442
443
  __name: "EditingModeDropdown",
443
444
  props: { modelValue: {} },
444
445
  emits: ["update:modelValue"],
@@ -491,13 +492,13 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
491
492
  name: D.value.icon,
492
493
  size: 18
493
494
  }, null, 8, ["name"]),
494
- T.value ? c("", !0) : (b(), l("span", ge, E(O(d)(D.value.labelKey)), 1)),
495
+ T.value ? c("", !0) : (b(), l("span", ve, E(O(d)(D.value.labelKey)), 1)),
495
496
  f(r, {
496
497
  name: "arrow_drop_down",
497
498
  size: 16
498
499
  })
499
- ], 10, he)]),
500
- panel: M(() => [u("div", _e, [(b(), l(a, null, C(x, (t) => u("button", {
500
+ ], 10, _e)]),
501
+ panel: M(() => [u("div", ye, [(b(), l(a, null, C(x, (t) => u("button", {
501
502
  key: t.value,
502
503
  type: "button",
503
504
  class: "editing-mode__option",
@@ -507,23 +508,23 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
507
508
  name: t.icon,
508
509
  size: 20
509
510
  }, null, 8, ["name"]),
510
- u("span", ye, [u("span", be, E(O(d)(t.labelKey)), 1), u("span", xe, E(O(d)(t.descKey)), 1)]),
511
+ u("span", xe, [u("span", Se, E(O(d)(t.labelKey)), 1), u("span", Ce, E(O(d)(t.descKey)), 1)]),
511
512
  t.value === e.modelValue ? (b(), s(r, {
512
513
  key: 0,
513
514
  name: "check",
514
515
  size: 18,
515
516
  class: "editing-mode__check"
516
517
  })) : c("", !0)
517
- ], 8, ve)), 64))])]),
518
+ ], 8, be)), 64))])]),
518
519
  _: 1
519
520
  }, 8, ["open"]));
520
521
  }
521
- }), [["__scopeId", "data-v-333d7e96"]]), Ce = { class: "review-controls" }, we = [
522
+ }), [["__scopeId", "data-v-333d7e96"]]), Te = { class: "review-controls" }, Ee = [
522
523
  "disabled",
523
524
  "aria-pressed",
524
525
  "aria-label",
525
526
  "title"
526
- ], Te = { class: "review-controls__toggle-label" }, Ee = ["title", "onClick"], De = { class: "review-controls__display-label" }, Oe = ["onClick"], ke = { class: "review-controls__option-label" }, Ae = /*#__PURE__*/ t(/* @__PURE__ */ p({
527
+ ], De = { class: "review-controls__toggle-label" }, Oe = ["title", "onClick"], ke = { class: "review-controls__display-label" }, Ae = ["onClick"], je = { class: "review-controls__option-label" }, Me = /*#__PURE__*/ t(/* @__PURE__ */ p({
527
528
  __name: "ReviewControls",
528
529
  props: {
529
530
  trackChangesOn: { type: Boolean },
@@ -548,7 +549,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
548
549
  function w(e) {
549
550
  h("update:display-mode", e), _.value = !1;
550
551
  }
551
- return (t, n) => (b(), l("div", Ce, [u("button", {
552
+ return (t, n) => (b(), l("div", Te, [u("button", {
552
553
  type: "button",
553
554
  class: g(["review-controls__toggle", { "review-controls__toggle--on": e.trackChangesOn }]),
554
555
  disabled: e.readOnly,
@@ -560,7 +561,7 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
560
561
  }, [f(r, {
561
562
  name: "edit_note",
562
563
  size: 18
563
- }), u("span", Te, E(e.trackChangesOn ? O(d)("trackingOn") : O(d)("trackingOff")), 1)], 42, we), f(O(p), {
564
+ }), u("span", De, E(e.trackChangesOn ? O(d)("trackingOn") : O(d)("trackingOff")), 1)], 42, Ee), f(O(p), {
564
565
  open: _.value,
565
566
  placement: "bottom-right",
566
567
  "onUpdate:open": n[4] ||= (e) => _.value = e,
@@ -577,49 +578,49 @@ var q = ["title", "onClick"], J = /*#__PURE__*/ t(/* @__PURE__ */ p({
577
578
  name: "visibility",
578
579
  size: 16
579
580
  }),
580
- u("span", De, E(x.value), 1),
581
+ u("span", ke, E(x.value), 1),
581
582
  f(r, {
582
583
  name: "arrow_drop_down",
583
584
  size: 16
584
585
  })
585
- ], 42, Ee)]),
586
+ ], 42, Oe)]),
586
587
  panel: M(() => [u("div", {
587
588
  class: "review-controls__panel",
588
589
  onMousedown: n[3] ||= F(() => {}, ["prevent"])
589
- }, [(b(!0), l(a, null, C(O(H), (t) => (b(), l("button", {
590
+ }, [(b(!0), l(a, null, C(O(W), (t) => (b(), l("button", {
590
591
  key: t,
591
592
  type: "button",
592
593
  class: "review-controls__option",
593
594
  onClick: F((e) => w(t), ["prevent"])
594
- }, [u("span", ke, E(y(t)), 1), t === e.displayMode ? (b(), s(r, {
595
+ }, [u("span", je, E(y(t)), 1), t === e.displayMode ? (b(), s(r, {
595
596
  key: 0,
596
597
  name: "check",
597
598
  size: 18,
598
599
  class: "review-controls__check"
599
- })) : c("", !0)], 8, Oe))), 128))], 32)]),
600
+ })) : c("", !0)], 8, Ae))), 128))], 32)]),
600
601
  _: 1
601
602
  }, 8, ["open"])]));
602
603
  }
603
604
  }), [["__scopeId", "data-v-e54a1ec7"]]);
604
605
  //#endregion
605
606
  //#region src/utils/fontOptions.ts
606
- function je(e) {
607
+ function Ne(e) {
607
608
  if (e === void 0) return;
608
609
  let t = e.map((e) => typeof e == "string" ? {
609
610
  name: e,
610
611
  fontFamily: e,
611
612
  category: "other"
612
613
  } : e);
613
- if (Me()) {
614
+ if (Pe()) {
614
615
  let e = /* @__PURE__ */ new Set(), n = /* @__PURE__ */ new Set();
615
616
  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);
616
617
  }
617
618
  return t;
618
619
  }
619
- function Me() {
620
+ function Pe() {
620
621
  return typeof process < "u" && process.env.NODE_ENV !== "production";
621
622
  }
622
- function Ne(e, t) {
623
+ function Fe(e, t) {
623
624
  if (!e || e.length === 0) return [];
624
625
  let n = /* @__PURE__ */ new Set();
625
626
  for (let e of t) n.add(e.trim().toLowerCase());
@@ -632,7 +633,7 @@ function Ne(e, t) {
632
633
  }
633
634
  //#endregion
634
635
  //#region src/components/Toolbar/presets.ts
635
- var Pe = [
636
+ var Ie = [
636
637
  {
637
638
  name: "Arial",
638
639
  fontFamily: "Arial",
@@ -693,7 +694,7 @@ var Pe = [
693
694
  fontFamily: "Consolas",
694
695
  category: "monospace"
695
696
  }
696
- ], Fe = [
697
+ ], Le = [
697
698
  8,
698
699
  9,
699
700
  10,
@@ -708,7 +709,7 @@ var Pe = [
708
709
  36,
709
710
  48,
710
711
  72
711
- ], Ie = [
712
+ ], Re = [
712
713
  {
713
714
  id: "Normal",
714
715
  label: "Normal",
@@ -739,7 +740,7 @@ var Pe = [
739
740
  label: "Heading 3",
740
741
  nameKey: "styles.heading3"
741
742
  }
742
- ], Le = [
743
+ ], ze = [
743
744
  {
744
745
  label: "Single",
745
746
  labelKey: "lineSpacing.single",
@@ -758,7 +759,7 @@ var Pe = [
758
759
  labelKey: "lineSpacing.double",
759
760
  value: 480
760
761
  }
761
- ], Re = [
762
+ ], Be = [
762
763
  .5,
763
764
  .75,
764
765
  1,
@@ -768,7 +769,7 @@ var Pe = [
768
769
  ];
769
770
  //#endregion
770
771
  //#region src/composables/useToolbarDropdowns.ts
771
- function ze(e) {
772
+ function Ve(e) {
772
773
  let t = S(null), n = S({
773
774
  top: 0,
774
775
  left: 0
@@ -820,7 +821,7 @@ function ze(e) {
820
821
  }
821
822
  //#endregion
822
823
  //#region src/composables/useToolbarFontSize.ts
823
- function Be(e) {
824
+ function He(e) {
824
825
  let t = S(!1), n = (t) => e.execCommand("setFontSize", t * 2);
825
826
  function r() {
826
827
  t.value = !1, e.openDropdown.value = "size", e.recomputeDropdownPos("size");
@@ -840,11 +841,11 @@ function Be(e) {
840
841
  }
841
842
  function s() {
842
843
  let t = e.currentFontSize.value;
843
- n(Fe.find((e) => e > t) || t + 1);
844
+ n(Le.find((e) => e > t) || t + 1);
844
845
  }
845
846
  function c() {
846
847
  let t = e.currentFontSize.value;
847
- n([...Fe].reverse().find((e) => e < t) || Math.max(1, t - 1));
848
+ n([...Le].reverse().find((e) => e < t) || Math.max(1, t - 1));
848
849
  }
849
850
  return {
850
851
  onSizeFocus: r,
@@ -857,7 +858,7 @@ function Be(e) {
857
858
  }
858
859
  //#endregion
859
860
  //#region src/utils/stylePreview.ts
860
- var Ve = {
861
+ var Ue = {
861
862
  Title: 26,
862
863
  Subtitle: 18,
863
864
  Heading1: 24,
@@ -867,22 +868,22 @@ var Ve = {
867
868
  Heading5: 13,
868
869
  Heading6: 13,
869
870
  Normal: 14
870
- }, He = /* @__PURE__ */ new Set([
871
+ }, We = /* @__PURE__ */ new Set([
871
872
  "Title",
872
873
  "Heading1",
873
874
  "Heading2",
874
875
  "Heading3"
875
- ]), Ue = { Subtitle: "666666" }, We = "#4a6c8c";
876
- function Ge(e) {
877
- let t = Ve[e.styleId], n = {
876
+ ]), Ge = { Subtitle: "666666" }, Ke = "#4a6c8c";
877
+ function qe(e) {
878
+ let t = Ue[e.styleId], n = {
878
879
  fontSize: t ? `${t}px` : `${Math.min(Math.max(e.fontSize ? e.fontSize / 2 : 11, 11), 20)}px`,
879
880
  lineHeight: "1.3"
880
881
  };
881
- (e.bold ?? He.has(e.styleId)) && (n.fontWeight = "bold"), e.italic && (n.fontStyle = "italic");
882
- let r = e.color ?? Ue[e.styleId];
883
- return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color = We), n;
882
+ (e.bold ?? We.has(e.styleId)) && (n.fontWeight = "bold"), e.italic && (n.fontStyle = "italic");
883
+ let r = e.color ?? Ge[e.styleId];
884
+ return r ? n.color = `#${r}` : e.styleId.startsWith("Heading") && (n.color = Ke), n;
884
885
  }
885
- function Ke(e) {
886
+ function Je(e) {
886
887
  return !e || e.length === 0 ? [] : e.filter((e) => e.type === "paragraph").filter((e) => e.qFormat ? !0 : !(e.hidden || e.semiHidden)).map((e) => ({
887
888
  styleId: e.styleId,
888
889
  name: e.name || e.styleId,
@@ -895,20 +896,20 @@ function Ke(e) {
895
896
  }
896
897
  //#endregion
897
898
  //#region src/composables/useParagraphStyleOptions.ts
898
- function qe(e) {
899
+ function Ye(e) {
899
900
  let t = o(() => {
900
- let t = Ke(e.documentStyles());
901
+ let t = Je(e.documentStyles());
901
902
  return t.length > 0 ? t.map((t) => {
902
- let n = Ie.find((e) => e.id === t.styleId);
903
+ let n = Re.find((e) => e.id === t.styleId);
903
904
  return {
904
905
  id: t.styleId,
905
906
  label: n ? e.t(n.nameKey) : t.name,
906
- previewStyle: Ge(t)
907
+ previewStyle: qe(t)
907
908
  };
908
- }) : Ie.map((t) => ({
909
+ }) : Re.map((t) => ({
909
910
  id: t.id,
910
911
  label: e.t(t.nameKey),
911
- previewStyle: Ge({ styleId: t.id })
912
+ previewStyle: qe({ styleId: t.id })
912
913
  }));
913
914
  });
914
915
  return {
@@ -921,29 +922,29 @@ function qe(e) {
921
922
  }
922
923
  //#endregion
923
924
  //#region src/components/Toolbar.vue?vue&type=script&setup=true&lang.ts
924
- var Je = {
925
+ var Xe = {
925
926
  key: 0,
926
927
  class: "basic-toolbar"
927
- }, Ye = [
928
+ }, Ze = [
928
929
  "title",
929
930
  "aria-label",
930
931
  "disabled"
931
- ], Xe = [
932
+ ], Qe = [
932
933
  "title",
933
934
  "aria-label",
934
935
  "disabled"
935
- ], Ze = ["disabled", "title"], Qe = ["aria-expanded", "title"], $e = ["disabled", "title"], et = ["onMousedown"], tt = ["aria-expanded", "title"], nt = ["onMousedown"], rt = ["aria-expanded", "title"], it = {
936
+ ], $e = ["disabled", "title"], et = ["aria-expanded", "title"], tt = ["disabled", "title"], nt = ["onMousedown"], rt = ["aria-expanded", "title"], it = ["onMousedown"], at = ["aria-expanded", "title"], ot = {
936
937
  key: 0,
937
938
  class: "toolbar-dropdown__group-label"
938
- }, at = ["onMousedown"], ot = ["title"], st = [
939
+ }, st = ["onMousedown"], ct = ["title"], lt = [
939
940
  "value",
940
941
  "title",
941
942
  "aria-expanded"
942
- ], ct = ["title"], lt = ["onMousedown"], ut = ["title", "aria-label"], dt = ["title", "aria-label"], ft = ["title", "aria-label"], pt = ["title", "aria-label"], mt = ["title", "aria-label"], ht = ["title", "aria-label"], gt = ["title", "aria-label"], _t = ["aria-expanded", "title"], vt = ["title"], yt = ["title"], bt = ["title"], xt = ["title"], St = ["title", "aria-label"], Ct = ["title", "aria-label"], wt = [
943
+ ], ut = ["title"], dt = ["onMousedown"], ft = ["title", "aria-label"], pt = ["title", "aria-label"], mt = ["title", "aria-label"], ht = ["title", "aria-label"], gt = ["title", "aria-label"], _t = ["title", "aria-label"], vt = ["title", "aria-label"], yt = ["aria-expanded", "title"], bt = ["title"], xt = ["title"], St = ["title"], Ct = ["title"], wt = ["title", "aria-label"], Tt = ["title", "aria-label"], Et = [
943
944
  "title",
944
945
  "aria-label",
945
946
  "disabled"
946
- ], Tt = ["title", "aria-label"], Et = ["aria-expanded", "title"], Dt = ["onMousedown"], Ot = ["title", "aria-label"], kt = ["title", "aria-label"], At = ["title", "aria-label"], jt = /*#__PURE__*/ t(/* @__PURE__ */ p({
947
+ ], Dt = ["title", "aria-label"], Ot = ["aria-expanded", "title"], kt = ["onMousedown"], At = ["title", "aria-label"], jt = ["title", "aria-label"], Mt = ["title", "aria-label"], Nt = /*#__PURE__*/ t(/* @__PURE__ */ p({
947
948
  __name: "Toolbar",
948
949
  props: {
949
950
  view: { default: null },
@@ -1001,66 +1002,66 @@ var Je = {
1001
1002
  "image-transform"
1002
1003
  ],
1003
1004
  setup(e, { emit: t }) {
1004
- 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 ?? Re), k = o(() => m.showZoomControl ?? !0), A = S(null), j = S(null), M = S(null), N = S(null), I = S(null), R = S(null), { openDropdown: z, dropdownMenuStyle: B, toggleDropdown: V, recomputeDropdownPos: ee } = ze({
1005
- zoom: R,
1005
+ 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), R = S(null), z = S(null), { openDropdown: B, dropdownMenuStyle: V, toggleDropdown: H, recomputeDropdownPos: U } = Ve({
1006
+ zoom: z,
1006
1007
  style: A,
1007
1008
  font: j,
1008
1009
  size: M,
1009
1010
  align: N,
1010
- spacing: I
1011
- }), H = o(() => {
1011
+ spacing: R
1012
+ }), W = o(() => {
1012
1013
  m.stateTick;
1013
1014
  let e = m.view;
1014
- return e ? L(e.state) : {
1015
+ return e ? ee(e.state) : {
1015
1016
  hasSelection: !1,
1016
1017
  isMultiParagraph: !1,
1017
1018
  textFormatting: {},
1018
1019
  paragraphFormatting: {},
1019
1020
  startParagraphIndex: 0,
1020
1021
  endParagraphIndex: 0,
1021
- inList: !1,
1022
+ listState: I,
1022
1023
  activeCommentIds: [],
1023
1024
  inInsertion: !1,
1024
1025
  inDeletion: !1
1025
1026
  };
1026
- }), K = o(() => {
1027
- let e = H.value.textFormatting.fontFamily;
1028
- return e?.ascii || e?.hAnsi || "Arial";
1029
1027
  }), q = o(() => {
1030
- let e = H.value.textFormatting.fontSize;
1028
+ let e = W.value.textFormatting.fontFamily;
1029
+ return e?.ascii || e?.hAnsi || "Arial";
1030
+ }), J = o(() => {
1031
+ let e = W.value.textFormatting.fontSize;
1031
1032
  return e ? e / 2 : 11;
1032
- }), J = o(() => H.value.paragraphFormatting.alignment || "left"), Y = o(() => {
1033
- switch (J.value) {
1033
+ }), Y = o(() => W.value.paragraphFormatting.alignment || "left"), ne = o(() => {
1034
+ switch (Y.value) {
1034
1035
  case "center": return "format_align_center";
1035
1036
  case "right": return "format_align_right";
1036
1037
  case "both": return "format_align_justify";
1037
1038
  default: return "format_align_left";
1038
1039
  }
1039
- }), { resolvedParagraphStyles: te, currentStyleLabel: ne } = qe({
1040
+ }), { resolvedParagraphStyles: re, currentStyleLabel: ie } = Ye({
1040
1041
  documentStyles: () => m.documentStyles,
1041
- currentStyleId: () => H.value.paragraphFormatting.styleId || "Normal",
1042
+ currentStyleId: () => W.value.paragraphFormatting.styleId || "Normal",
1042
1043
  t: h
1043
- }), re = o(() => {
1044
+ }), ae = o(() => {
1044
1045
  m.stateTick;
1045
1046
  let e = m.view;
1046
- return e ? W(e.state) > 0 : !1;
1047
- }), ie = o(() => {
1047
+ return e ? K(e.state) > 0 : !1;
1048
+ }), oe = o(() => {
1048
1049
  m.stateTick;
1049
1050
  let e = m.view;
1050
- return e ? U(e.state) > 0 : !1;
1051
- }), ae = o(() => {
1052
- let e = H.value, t = e.inList && (e.listLevel ?? 0) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
1051
+ return e ? G(e.state) > 0 : !1;
1052
+ }), se = o(() => {
1053
+ let e = W.value, t = L(e.listState) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
1053
1054
  return t || n;
1054
- }), oe = o(() => {
1055
- let e = H.value.textFormatting.color?.rgb;
1055
+ }), ce = o(() => {
1056
+ let e = W.value.textFormatting.color?.rgb;
1056
1057
  return e ? e.replace(/^#/, "").toUpperCase() : void 0;
1057
- }), se = o(() => {
1058
- let e = H.value.textFormatting.highlight;
1058
+ }), le = o(() => {
1059
+ let e = W.value.textFormatting.highlight;
1059
1060
  if (!(!e || e === "none")) return e.replace(/^#/, "").toUpperCase();
1060
- }), X = o(() => je(m.fontFamilies) ?? Pe), ce = o(() => Ne(m.documentFonts, X.value.map((e) => e.name))), le = o(() => [
1061
+ }), X = o(() => Ne(m.fontFamilies) ?? Ie), ue = o(() => Fe(m.documentFonts, X.value.map((e) => e.name))), de = o(() => [
1061
1062
  {
1062
1063
  label: h("font.documentFonts"),
1063
- fonts: ce.value
1064
+ fonts: ue.value
1064
1065
  },
1065
1066
  {
1066
1067
  label: h("font.sansSerif"),
@@ -1087,93 +1088,93 @@ var Je = {
1087
1088
  typeof console < "u" && console.warn("[Toolbar] command not found:", e);
1088
1089
  return;
1089
1090
  }
1090
- r(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(), z.value = null;
1091
+ r(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(), B.value = null;
1091
1092
  }
1092
- function ue(e) {
1093
+ function fe(e) {
1093
1094
  Z("setFontFamily", e);
1094
1095
  }
1095
- let { onSizeFocus: de, onSizeInput: fe, commitFontSize: he, pickFontSize: ge, increaseFontSize: _e, decreaseFontSize: ve } = Be({
1096
- currentFontSize: q,
1097
- openDropdown: z,
1098
- recomputeDropdownPos: ee,
1096
+ let { onSizeFocus: pe, onSizeInput: me, commitFontSize: _e, pickFontSize: ve, increaseFontSize: ye, decreaseFontSize: be } = He({
1097
+ currentFontSize: J,
1098
+ openDropdown: B,
1099
+ recomputeDropdownPos: U,
1099
1100
  execCommand: Z
1100
1101
  });
1101
- function ye(e) {
1102
+ function xe(e) {
1102
1103
  if (typeof e == "object" && e.auto) {
1103
1104
  Z("clearTextColor");
1104
1105
  return;
1105
1106
  }
1106
1107
  Z("setTextColor", typeof e == "string" ? { rgb: e } : e);
1107
1108
  }
1108
- function be() {
1109
+ function Se() {
1109
1110
  let e = m.view;
1110
- e && (G(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
1111
+ e && (te(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
1111
1112
  }
1112
- function xe(e) {
1113
+ function Ce(e) {
1113
1114
  Z("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
1114
1115
  }
1115
- function Ce(e) {
1116
- v("apply-style", e), z.value = null;
1116
+ function Te(e) {
1117
+ v("apply-style", e), B.value = null;
1117
1118
  }
1118
- function we(e) {
1119
+ function Ee(e) {
1119
1120
  Z("setLineSpacing", e);
1120
1121
  }
1121
- function Te(e) {
1122
- let t = H.value.paragraphFormatting.lineSpacing;
1122
+ function De(e) {
1123
+ let t = W.value.paragraphFormatting.lineSpacing;
1123
1124
  return t ? Math.abs(t - e) < 10 : e === 240;
1124
1125
  }
1125
- return (t, n) => e.view ? (b(), l("div", Je, [
1126
+ return (t, n) => e.view ? (b(), l("div", Xe, [
1126
1127
  u("button", {
1127
1128
  title: O(h)("undoShortcut"),
1128
1129
  "aria-label": O(h)("undo"),
1129
- disabled: !re.value,
1130
+ disabled: !ae.value,
1130
1131
  onMousedown: n[0] ||= F((e) => Z("undo"), ["prevent"])
1131
- }, [f(r, { name: "undo" })], 40, Ye),
1132
+ }, [f(r, { name: "undo" })], 40, Ze),
1132
1133
  u("button", {
1133
1134
  title: O(h)("redoShortcut"),
1134
1135
  "aria-label": O(h)("redo"),
1135
- disabled: !ie.value,
1136
+ disabled: !oe.value,
1136
1137
  onMousedown: n[1] ||= F((e) => Z("redo"), ["prevent"])
1137
- }, [f(r, { name: "redo" })], 40, Xe),
1138
+ }, [f(r, { name: "redo" })], 40, Qe),
1138
1139
  n[42] ||= u("span", { class: "divider" }, null, -1),
1139
1140
  k.value ? (b(), l("div", {
1140
1141
  key: 0,
1141
1142
  class: "toolbar-dropdown zoom-group",
1142
1143
  ref_key: "zoomDropdownRef",
1143
- ref: R
1144
+ ref: z
1144
1145
  }, [
1145
1146
  u("button", {
1146
1147
  class: "size-btn",
1147
1148
  onMousedown: n[2] ||= F((e) => t.$emit("zoom-out"), ["prevent"]),
1148
1149
  disabled: x.value,
1149
1150
  title: O(h)("zoom.zoomOut")
1150
- }, " − ", 40, Ze),
1151
+ }, " − ", 40, $e),
1151
1152
  u("button", {
1152
1153
  class: "toolbar-dropdown__trigger zoom-trigger",
1153
- onMousedown: n[3] ||= F((e) => O(V)("zoom"), ["prevent"]),
1154
- "aria-expanded": O(z) === "zoom",
1154
+ onMousedown: n[3] ||= F((e) => O(H)("zoom"), ["prevent"]),
1155
+ "aria-expanded": O(B) === "zoom",
1155
1156
  "aria-haspopup": "listbox",
1156
1157
  title: O(h)("zoom.zoomLevel")
1157
1158
  }, [d(E(y.value) + "% ", 1), f(r, {
1158
1159
  class: "chevron",
1159
1160
  name: "arrow_drop_down",
1160
1161
  size: 16
1161
- })], 40, Qe),
1162
+ })], 40, et),
1162
1163
  u("button", {
1163
1164
  class: "size-btn",
1164
1165
  onMousedown: n[4] ||= F((e) => t.$emit("zoom-in"), ["prevent"]),
1165
1166
  disabled: T.value,
1166
1167
  title: O(h)("zoom.zoomIn")
1167
- }, " + ", 40, $e),
1168
- O(z) === "zoom" ? (b(), l("div", {
1168
+ }, " + ", 40, tt),
1169
+ O(B) === "zoom" ? (b(), l("div", {
1169
1170
  key: 0,
1170
- style: _(O(B)),
1171
+ style: _(O(V)),
1171
1172
  class: "toolbar-dropdown__menu zoom-menu"
1172
1173
  }, [(b(!0), l(a, null, C(D.value, (e) => (b(), l("button", {
1173
1174
  key: e,
1174
1175
  class: g(["toolbar-dropdown__item", { active: y.value === Math.round(e * 100) }]),
1175
1176
  onMousedown: F((n) => t.$emit("zoom-set", e), ["prevent"])
1176
- }, E(Math.round(e * 100)) + "% ", 43, et))), 128))], 4)) : c("", !0)
1177
+ }, E(Math.round(e * 100)) + "% ", 43, nt))), 128))], 4)) : c("", !0)
1177
1178
  ], 512)) : c("", !0),
1178
1179
  n[43] ||= u("span", { class: "divider" }, null, -1),
1179
1180
  u("div", {
@@ -1182,23 +1183,23 @@ var Je = {
1182
1183
  ref: A
1183
1184
  }, [u("button", {
1184
1185
  class: "toolbar-dropdown__trigger style-trigger",
1185
- onMousedown: n[5] ||= F((e) => O(V)("style"), ["prevent"]),
1186
- "aria-expanded": O(z) === "style",
1186
+ onMousedown: n[5] ||= F((e) => O(H)("style"), ["prevent"]),
1187
+ "aria-expanded": O(B) === "style",
1187
1188
  "aria-haspopup": "listbox",
1188
1189
  title: O(h)("styles.selectAriaLabel")
1189
- }, [d(E(O(ne)) + " ", 1), f(r, {
1190
+ }, [d(E(O(ie)) + " ", 1), f(r, {
1190
1191
  class: "chevron",
1191
1192
  name: "arrow_drop_down",
1192
1193
  size: 16
1193
- })], 40, tt), O(z) === "style" ? (b(), l("div", {
1194
+ })], 40, rt), O(B) === "style" ? (b(), l("div", {
1194
1195
  key: 0,
1195
- style: _(O(B)),
1196
+ style: _(O(V)),
1196
1197
  class: "toolbar-dropdown__menu style-menu"
1197
- }, [(b(!0), l(a, null, C(O(te), (e) => (b(), l("button", {
1198
+ }, [(b(!0), l(a, null, C(O(re), (e) => (b(), l("button", {
1198
1199
  key: e.id,
1199
- class: g(["toolbar-dropdown__item", { active: (H.value.paragraphFormatting.styleId || "Normal") === e.id }]),
1200
- onMousedown: F((t) => Ce(e.id), ["prevent"])
1201
- }, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, nt))), 128))], 4)) : c("", !0)], 512),
1200
+ class: g(["toolbar-dropdown__item", { active: (W.value.paragraphFormatting.styleId || "Normal") === e.id }]),
1201
+ onMousedown: F((t) => Te(e.id), ["prevent"])
1202
+ }, [u("span", { style: _({ ...e.previewStyle }) }, E(e.label), 5)], 42, it))), 128))], 4)) : c("", !0)], 512),
1202
1203
  n[44] ||= u("span", { class: "divider" }, null, -1),
1203
1204
  u("div", {
1204
1205
  class: "toolbar-dropdown",
@@ -1206,24 +1207,24 @@ var Je = {
1206
1207
  ref: j
1207
1208
  }, [u("button", {
1208
1209
  class: "toolbar-dropdown__trigger font-trigger",
1209
- onMousedown: n[6] ||= F((e) => O(V)("font"), ["prevent"]),
1210
- "aria-expanded": O(z) === "font",
1210
+ onMousedown: n[6] ||= F((e) => O(H)("font"), ["prevent"]),
1211
+ "aria-expanded": O(B) === "font",
1211
1212
  "aria-haspopup": "listbox",
1212
1213
  title: O(h)("font.selectAriaLabel")
1213
- }, [d(E(K.value) + " ", 1), f(r, {
1214
+ }, [d(E(q.value) + " ", 1), f(r, {
1214
1215
  class: "chevron",
1215
1216
  name: "arrow_drop_down",
1216
1217
  size: 16
1217
- })], 40, rt), O(z) === "font" ? (b(), l("div", {
1218
+ })], 40, at), O(B) === "font" ? (b(), l("div", {
1218
1219
  key: 0,
1219
- style: _(O(B)),
1220
+ style: _(O(V)),
1220
1221
  class: "toolbar-dropdown__menu font-menu"
1221
- }, [(b(!0), l(a, null, C(le.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div", it, E(e.label), 1)) : c("", !0), (b(!0), l(a, null, C(e.fonts, (e) => (b(), l("button", {
1222
+ }, [(b(!0), l(a, null, C(de.value, (e) => (b(), l(a, { key: e.label }, [e.fonts.length > 0 ? (b(), l("div", ot, E(e.label), 1)) : c("", !0), (b(!0), l(a, null, C(e.fonts, (e) => (b(), l("button", {
1222
1223
  key: e.name,
1223
- class: g(["toolbar-dropdown__item", { active: K.value === e.name }]),
1224
+ class: g(["toolbar-dropdown__item", { active: q.value === e.name }]),
1224
1225
  style: _({ fontFamily: e.fontFamily }),
1225
- onMousedown: F((t) => ue(e.name), ["prevent"])
1226
- }, E(e.name), 47, at))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
1226
+ onMousedown: F((t) => fe(e.name), ["prevent"])
1227
+ }, E(e.name), 47, st))), 128))], 64))), 128))], 4)) : c("", !0)], 512),
1227
1228
  u("div", {
1228
1229
  class: "toolbar-dropdown font-size-group",
1229
1230
  ref_key: "sizeDropdownRef",
@@ -1231,95 +1232,95 @@ var Je = {
1231
1232
  }, [
1232
1233
  u("button", {
1233
1234
  class: "size-btn",
1234
- onMousedown: n[7] ||= F((...e) => O(ve) && O(ve)(...e), ["prevent"]),
1235
+ onMousedown: n[7] ||= F((...e) => O(be) && O(be)(...e), ["prevent"]),
1235
1236
  title: O(h)("decreaseFontSize")
1236
- }, " − ", 40, ot),
1237
+ }, " − ", 40, ct),
1237
1238
  u("input", {
1238
1239
  class: "size-trigger size-input",
1239
1240
  type: "text",
1240
- value: q.value,
1241
+ value: J.value,
1241
1242
  title: O(h)("fontSize"),
1242
1243
  onMousedown: n[8] ||= F(() => {}, ["stop"]),
1243
- onFocus: n[9] ||= (...e) => O(de) && O(de)(...e),
1244
- "aria-expanded": O(z) === "size",
1244
+ onFocus: n[9] ||= (...e) => O(pe) && O(pe)(...e),
1245
+ "aria-expanded": O(B) === "size",
1245
1246
  "aria-haspopup": "listbox",
1246
- onInput: n[10] ||= (...e) => O(fe) && O(fe)(...e),
1247
+ onInput: n[10] ||= (...e) => O(me) && O(me)(...e),
1247
1248
  onKeydown: [
1248
- n[11] ||= P(F((e) => O(_e)(), ["prevent", "stop"]), ["up"]),
1249
- n[12] ||= P(F((e) => O(ve)(), ["prevent", "stop"]), ["down"]),
1250
- n[13] ||= P(F((e) => O(he)(e), ["prevent"]), ["enter"])
1249
+ n[11] ||= P(F((e) => O(ye)(), ["prevent", "stop"]), ["up"]),
1250
+ n[12] ||= P(F((e) => O(be)(), ["prevent", "stop"]), ["down"]),
1251
+ n[13] ||= P(F((e) => O(_e)(e), ["prevent"]), ["enter"])
1251
1252
  ],
1252
- onBlur: n[14] ||= (e) => O(he)(e)
1253
- }, null, 40, st),
1253
+ onBlur: n[14] ||= (e) => O(_e)(e)
1254
+ }, null, 40, lt),
1254
1255
  u("button", {
1255
1256
  class: "size-btn",
1256
- onMousedown: n[15] ||= F((...e) => O(_e) && O(_e)(...e), ["prevent"]),
1257
+ onMousedown: n[15] ||= F((...e) => O(ye) && O(ye)(...e), ["prevent"]),
1257
1258
  title: O(h)("increaseFontSize")
1258
- }, " + ", 40, ct),
1259
- O(z) === "size" ? (b(), l("div", {
1259
+ }, " + ", 40, ut),
1260
+ O(B) === "size" ? (b(), l("div", {
1260
1261
  key: 0,
1261
- style: _(O(B)),
1262
+ style: _(O(V)),
1262
1263
  class: "toolbar-dropdown__menu size-menu"
1263
- }, [(b(!0), l(a, null, C(O(Fe), (e) => (b(), l("button", {
1264
+ }, [(b(!0), l(a, null, C(O(Le), (e) => (b(), l("button", {
1264
1265
  key: e,
1265
- class: g(["toolbar-dropdown__item", { active: q.value === e }]),
1266
- onMousedown: F((t) => O(ge)(e), ["prevent"])
1267
- }, E(e), 43, lt))), 128))], 4)) : c("", !0)
1266
+ class: g(["toolbar-dropdown__item", { active: J.value === e }]),
1267
+ onMousedown: F((t) => O(ve)(e), ["prevent"])
1268
+ }, E(e), 43, dt))), 128))], 4)) : c("", !0)
1268
1269
  ], 512),
1269
1270
  n[45] ||= u("span", { class: "divider" }, null, -1),
1270
1271
  u("button", {
1271
1272
  title: O(h)("boldShortcut"),
1272
1273
  "aria-label": O(h)("bold"),
1273
- class: g({ active: H.value.textFormatting.bold }),
1274
+ class: g({ active: W.value.textFormatting.bold }),
1274
1275
  onMousedown: n[16] ||= F((e) => Z("toggleBold"), ["prevent"])
1275
- }, [f(r, { name: "format_bold" })], 42, ut),
1276
+ }, [f(r, { name: "format_bold" })], 42, ft),
1276
1277
  u("button", {
1277
1278
  title: O(h)("italicShortcut"),
1278
1279
  "aria-label": O(h)("italic"),
1279
- class: g({ active: H.value.textFormatting.italic }),
1280
+ class: g({ active: W.value.textFormatting.italic }),
1280
1281
  onMousedown: n[17] ||= F((e) => Z("toggleItalic"), ["prevent"])
1281
- }, [f(r, { name: "format_italic" })], 42, dt),
1282
+ }, [f(r, { name: "format_italic" })], 42, pt),
1282
1283
  u("button", {
1283
1284
  title: O(h)("underlineShortcut"),
1284
1285
  "aria-label": O(h)("underline"),
1285
- class: g({ active: !!H.value.textFormatting.underline }),
1286
+ class: g({ active: !!W.value.textFormatting.underline }),
1286
1287
  onMousedown: n[18] ||= F((e) => Z("toggleUnderline"), ["prevent"])
1287
- }, [f(r, { name: "format_underlined" })], 42, ft),
1288
+ }, [f(r, { name: "format_underlined" })], 42, mt),
1288
1289
  u("button", {
1289
1290
  title: O(h)("formattingBar.strikethrough"),
1290
1291
  "aria-label": O(h)("formattingBar.strikethrough"),
1291
- class: g({ active: H.value.textFormatting.strike }),
1292
+ class: g({ active: W.value.textFormatting.strike }),
1292
1293
  onMousedown: n[19] ||= F((e) => Z("toggleStrike"), ["prevent"])
1293
- }, [f(r, { name: "strikethrough_s" })], 42, pt),
1294
+ }, [f(r, { name: "strikethrough_s" })], 42, ht),
1294
1295
  f(O(p), {
1295
1296
  mode: "text",
1296
- value: oe.value,
1297
+ value: ce.value,
1297
1298
  theme: e.theme ?? null,
1298
- onChange: ye
1299
+ onChange: xe
1299
1300
  }, null, 8, ["value", "theme"]),
1300
1301
  f(O(p), {
1301
1302
  mode: "highlight",
1302
- value: se.value,
1303
+ value: le.value,
1303
1304
  theme: e.theme ?? null,
1304
- onChange: xe
1305
+ onChange: Ce
1305
1306
  }, null, 8, ["value", "theme"]),
1306
1307
  u("button", {
1307
1308
  title: O(h)("formattingBar.insertLinkShortcut"),
1308
1309
  "aria-label": O(h)("formattingBar.insertLink"),
1309
1310
  onMousedown: n[20] ||= F((e) => t.$emit("insert-link"), ["prevent"])
1310
- }, [f(r, { name: "link" })], 40, mt),
1311
+ }, [f(r, { name: "link" })], 40, gt),
1311
1312
  u("button", {
1312
1313
  title: O(h)("formattingBar.superscriptShortcut"),
1313
1314
  "aria-label": O(h)("formattingBar.superscript"),
1314
- class: g({ active: H.value.textFormatting.vertAlign === "superscript" }),
1315
+ class: g({ active: W.value.textFormatting.vertAlign === "superscript" }),
1315
1316
  onMousedown: n[21] ||= F((e) => Z("toggleSuperscript"), ["prevent"])
1316
- }, [f(r, { name: "superscript" })], 42, ht),
1317
+ }, [f(r, { name: "superscript" })], 42, _t),
1317
1318
  u("button", {
1318
1319
  title: O(h)("formattingBar.subscriptShortcut"),
1319
1320
  "aria-label": O(h)("formattingBar.subscript"),
1320
- class: g({ active: H.value.textFormatting.vertAlign === "subscript" }),
1321
+ class: g({ active: W.value.textFormatting.vertAlign === "subscript" }),
1321
1322
  onMousedown: n[22] ||= F((e) => Z("toggleSubscript"), ["prevent"])
1322
- }, [f(r, { name: "subscript" })], 42, gt),
1323
+ }, [f(r, { name: "subscript" })], 42, vt),
1323
1324
  n[46] ||= u("span", { class: "divider" }, null, -1),
1324
1325
  u("div", {
1325
1326
  class: "toolbar-dropdown",
@@ -1327,133 +1328,133 @@ var Je = {
1327
1328
  ref: N
1328
1329
  }, [u("button", {
1329
1330
  class: "toolbar-dropdown__trigger align-trigger",
1330
- onMousedown: n[23] ||= F((e) => O(V)("align"), ["prevent"]),
1331
- "aria-expanded": O(z) === "align",
1331
+ onMousedown: n[23] ||= F((e) => O(H)("align"), ["prevent"]),
1332
+ "aria-expanded": O(B) === "align",
1332
1333
  "aria-haspopup": "listbox",
1333
1334
  title: O(h)("alignmentGroup")
1334
- }, [f(r, { name: Y.value }, null, 8, ["name"]), f(r, {
1335
+ }, [f(r, { name: ne.value }, null, 8, ["name"]), f(r, {
1335
1336
  class: "chevron",
1336
1337
  name: "arrow_drop_down",
1337
1338
  size: 16
1338
- })], 40, _t), O(z) === "align" ? (b(), l("div", {
1339
+ })], 40, yt), O(B) === "align" ? (b(), l("div", {
1339
1340
  key: 0,
1340
- style: _(O(B)),
1341
+ style: _(O(V)),
1341
1342
  class: "toolbar-dropdown__menu align-strip"
1342
1343
  }, [
1343
1344
  u("button", {
1344
- class: g(["align-strip__btn", { active: J.value === "left" }]),
1345
+ class: g(["align-strip__btn", { active: Y.value === "left" }]),
1345
1346
  title: `${O(h)("alignLeft")} (${O(h)("alignment.alignLeftShortcut")})`,
1346
1347
  onMousedown: n[24] ||= F((e) => {
1347
- Z("alignLeft"), z.value = null;
1348
+ Z("alignLeft"), B.value = null;
1348
1349
  }, ["prevent"])
1349
1350
  }, [f(r, {
1350
1351
  name: "format_align_left",
1351
1352
  size: 18
1352
- })], 42, vt),
1353
+ })], 42, bt),
1353
1354
  u("button", {
1354
- class: g(["align-strip__btn", { active: J.value === "center" }]),
1355
+ class: g(["align-strip__btn", { active: Y.value === "center" }]),
1355
1356
  title: `${O(h)("alignCenter")} (${O(h)("alignment.centerShortcut")})`,
1356
1357
  onMousedown: n[25] ||= F((e) => {
1357
- Z("alignCenter"), z.value = null;
1358
+ Z("alignCenter"), B.value = null;
1358
1359
  }, ["prevent"])
1359
1360
  }, [f(r, {
1360
1361
  name: "format_align_center",
1361
1362
  size: 18
1362
- })], 42, yt),
1363
+ })], 42, xt),
1363
1364
  u("button", {
1364
- class: g(["align-strip__btn", { active: J.value === "right" }]),
1365
+ class: g(["align-strip__btn", { active: Y.value === "right" }]),
1365
1366
  title: `${O(h)("alignRight")} (${O(h)("alignment.alignRightShortcut")})`,
1366
1367
  onMousedown: n[26] ||= F((e) => {
1367
- Z("alignRight"), z.value = null;
1368
+ Z("alignRight"), B.value = null;
1368
1369
  }, ["prevent"])
1369
1370
  }, [f(r, {
1370
1371
  name: "format_align_right",
1371
1372
  size: 18
1372
- })], 42, bt),
1373
+ })], 42, St),
1373
1374
  u("button", {
1374
- class: g(["align-strip__btn", { active: J.value === "both" }]),
1375
+ class: g(["align-strip__btn", { active: Y.value === "both" }]),
1375
1376
  title: `${O(h)("justify")} (${O(h)("alignment.justifyShortcut")})`,
1376
1377
  onMousedown: n[27] ||= F((e) => {
1377
- Z("alignJustify"), z.value = null;
1378
+ Z("alignJustify"), B.value = null;
1378
1379
  }, ["prevent"])
1379
1380
  }, [f(r, {
1380
1381
  name: "format_align_justify",
1381
1382
  size: 18
1382
- })], 42, xt)
1383
+ })], 42, Ct)
1383
1384
  ], 4)) : c("", !0)], 512),
1384
1385
  u("button", {
1385
1386
  title: O(h)("bulletList"),
1386
1387
  "aria-label": O(h)("bulletList"),
1387
- class: g({ active: H.value.inList && H.value.listType === "bullet" }),
1388
+ class: g({ active: W.value.listState.type === "bullet" }),
1388
1389
  onMousedown: n[28] ||= F((e) => Z("toggleBulletList"), ["prevent"])
1389
- }, [f(r, { name: "format_list_bulleted" })], 42, St),
1390
+ }, [f(r, { name: "format_list_bulleted" })], 42, wt),
1390
1391
  u("button", {
1391
1392
  title: O(h)("numberedList"),
1392
1393
  "aria-label": O(h)("numberedList"),
1393
- class: g({ active: H.value.inList && H.value.listType === "numbered" }),
1394
+ class: g({ active: W.value.listState.type === "numbered" }),
1394
1395
  onMousedown: n[29] ||= F((e) => Z("toggleNumberedList"), ["prevent"])
1395
- }, [f(r, { name: "format_list_numbered" })], 42, Ct),
1396
+ }, [f(r, { name: "format_list_numbered" })], 42, Tt),
1396
1397
  u("button", {
1397
1398
  title: O(h)("decreaseIndent"),
1398
1399
  "aria-label": O(h)("decreaseIndent"),
1399
- disabled: !ae.value,
1400
+ disabled: !se.value,
1400
1401
  onMousedown: n[30] ||= F((e) => Z("outdent"), ["prevent"])
1401
- }, [f(r, { name: "format_indent_decrease" })], 40, wt),
1402
+ }, [f(r, { name: "format_indent_decrease" })], 40, Et),
1402
1403
  u("button", {
1403
1404
  title: O(h)("increaseIndent"),
1404
1405
  "aria-label": O(h)("increaseIndent"),
1405
1406
  onMousedown: n[31] ||= F((e) => Z("indent"), ["prevent"])
1406
- }, [f(r, { name: "format_indent_increase" })], 40, Tt),
1407
+ }, [f(r, { name: "format_indent_increase" })], 40, Dt),
1407
1408
  u("div", {
1408
1409
  class: "toolbar-dropdown",
1409
1410
  ref_key: "spacingDropdownRef",
1410
- ref: I
1411
+ ref: R
1411
1412
  }, [u("button", {
1412
1413
  class: "toolbar-dropdown__trigger",
1413
- onMousedown: n[32] ||= F((e) => O(V)("spacing"), ["prevent"]),
1414
- "aria-expanded": O(z) === "spacing",
1414
+ onMousedown: n[32] ||= F((e) => O(H)("spacing"), ["prevent"]),
1415
+ "aria-expanded": O(B) === "spacing",
1415
1416
  "aria-haspopup": "listbox",
1416
1417
  title: O(h)("lineSpacing.label")
1417
1418
  }, [f(r, { name: "format_line_spacing" }), f(r, {
1418
1419
  class: "chevron",
1419
1420
  name: "arrow_drop_down",
1420
1421
  size: 16
1421
- })], 40, Et), O(z) === "spacing" ? (b(), l("div", {
1422
+ })], 40, Ot), O(B) === "spacing" ? (b(), l("div", {
1422
1423
  key: 0,
1423
- style: _(O(B)),
1424
+ style: _(O(V)),
1424
1425
  class: "toolbar-dropdown__menu"
1425
- }, [(b(!0), l(a, null, C(O(Le), (e) => (b(), l("button", {
1426
+ }, [(b(!0), l(a, null, C(O(ze), (e) => (b(), l("button", {
1426
1427
  key: e.value,
1427
- class: g(["toolbar-dropdown__item", { active: Te(e.value) }]),
1428
- onMousedown: F((t) => we(e.value), ["prevent"])
1429
- }, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, Dt))), 128))], 4)) : c("", !0)], 512),
1428
+ class: g(["toolbar-dropdown__item", { active: De(e.value) }]),
1429
+ onMousedown: F((t) => Ee(e.value), ["prevent"])
1430
+ }, E(e.labelKey ? O(h)(e.labelKey) : e.label), 43, kt))), 128))], 4)) : c("", !0)], 512),
1430
1431
  u("button", {
1431
1432
  title: O(h)("formattingBar.clearFormatting"),
1432
1433
  "aria-label": O(h)("formattingBar.clearFormatting"),
1433
- onMousedown: F(be, ["prevent"])
1434
- }, [f(r, { name: "format_clear" })], 40, Ot),
1434
+ onMousedown: F(Se, ["prevent"])
1435
+ }, [f(r, { name: "format_clear" })], 40, At),
1435
1436
  n[47] ||= u("span", { class: "divider" }, null, -1),
1436
1437
  u("button", {
1437
1438
  title: O(h)("formattingBar.commentsAndChanges"),
1438
1439
  "aria-label": O(h)("formattingBar.commentsAndChanges"),
1439
1440
  class: g({ active: e.commentsSidebarOpen }),
1440
1441
  onMousedown: n[33] ||= F((e) => t.$emit("toggle-sidebar"), ["prevent"])
1441
- }, [f(r, { name: "comment" })], 42, kt),
1442
+ }, [f(r, { name: "comment" })], 42, jt),
1442
1443
  e.imageContext ? (b(), l(a, { key: 1 }, [
1443
1444
  n[40] ||= u("span", { class: "divider" }, null, -1),
1444
- f(pe, {
1445
+ f(he, {
1445
1446
  "image-context": e.imageContext,
1446
1447
  onChange: n[34] ||= (e) => t.$emit("image-wrap-type", e)
1447
1448
  }, null, 8, ["image-context"]),
1448
- f(me, { onTransform: n[35] ||= (e) => t.$emit("image-transform", e) }),
1449
+ f(ge, { onTransform: n[35] ||= (e) => t.$emit("image-transform", e) }),
1449
1450
  u("button", {
1450
1451
  title: O(h)("formattingBar.imagePropertiesShortcut"),
1451
1452
  "aria-label": O(h)("formattingBar.imageProperties"),
1452
1453
  onMousedown: n[36] ||= F((e) => t.$emit("image-properties"), ["prevent"])
1453
- }, [f(r, { name: "tune" })], 40, At)
1454
+ }, [f(r, { name: "tune" })], 40, Mt)
1454
1455
  ], 64)) : c("", !0),
1455
1456
  w(t.$slots, "table-context", {}, void 0, !0),
1456
- e.showReviewControls ? (b(), l(a, { key: 2 }, [n[41] ||= u("span", { class: "divider" }, null, -1), f(Ae, {
1457
+ e.showReviewControls ? (b(), l(a, { key: 2 }, [n[41] ||= u("span", { class: "divider" }, null, -1), f(Me, {
1457
1458
  "track-changes-on": e.trackChangesOn,
1458
1459
  "display-mode": e.displayMode,
1459
1460
  "read-only": e.readOnly,
@@ -1465,7 +1466,7 @@ var Je = {
1465
1466
  "read-only"
1466
1467
  ])], 64)) : c("", !0),
1467
1468
  n[48] ||= u("span", { class: "divider" }, null, -1),
1468
- e.editorMode ? (b(), s(Se, {
1469
+ e.editorMode ? (b(), s(we, {
1469
1470
  key: 3,
1470
1471
  "model-value": e.editorMode,
1471
1472
  "onUpdate:modelValue": n[39] ||= (e) => t.$emit("mode-change", e)
@@ -1473,7 +1474,7 @@ var Je = {
1473
1474
  w(t.$slots, "toolbar-extra", {}, void 0, !0)
1474
1475
  ])) : c("", !0);
1475
1476
  }
1476
- }), [["__scopeId", "data-v-e54d1eac"]]), Mt = ["aria-valuemax"], Nt = { class: "docx-horizontal-ruler__ticks" }, Pt = ["title", "onDblclick"], Ft = 12240, It = 1440, Lt = 1440, Rt = 567, zt = "var(--doc-primary)", Bt = "var(--doc-primary)", Vt = "var(--doc-primary-hover)", Q = 5, Ht = /*#__PURE__*/ t(/* @__PURE__ */ p({
1477
+ }), [["__scopeId", "data-v-26127412"]]), Pt = ["aria-valuemax"], Ft = { class: "docx-horizontal-ruler__ticks" }, It = ["title", "onDblclick"], Lt = 12240, Rt = 1440, zt = 1440, Bt = 567, Vt = "var(--doc-primary)", Ht = "var(--doc-primary)", Ut = "var(--doc-primary-hover)", Q = 5, Wt = /*#__PURE__*/ t(/* @__PURE__ */ p({
1477
1478
  __name: "HorizontalRuler",
1478
1479
  props: {
1479
1480
  sectionProps: {},
@@ -1507,12 +1508,12 @@ var Je = {
1507
1508
  setup(e, { emit: t }) {
1508
1509
  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("");
1509
1510
  function h(e) {
1510
- return ee(e) * n.zoom;
1511
+ return U(e) * n.zoom;
1511
1512
  }
1512
1513
  function g(e) {
1513
- return Math.round(V(e / n.zoom));
1514
+ return Math.round(H(e / n.zoom));
1514
1515
  }
1515
- let y = o(() => n.sectionProps?.pageWidth ?? Ft), x = o(() => n.sectionProps?.marginLeft ?? It), w = o(() => n.sectionProps?.marginRight ?? It), T = o(() => y.value - x.value - w.value), D = o(() => h(y.value)), O = o(() => h(x.value)), k = o(() => h(w.value)), A = o(() => h(n.indentLeft)), j = o(() => h(n.indentRight)), M = o(() => n.hangingIndent ? -n.firstLineIndent : n.firstLineIndent), N = o(() => h(M.value)), P = o(() => O.value + A.value), I = o(() => D.value - k.value - j.value), L = o(() => O.value + A.value + N.value), R = o(() => ({
1516
+ let y = o(() => n.sectionProps?.pageWidth ?? Lt), x = o(() => n.sectionProps?.marginLeft ?? Rt), w = o(() => n.sectionProps?.marginRight ?? Rt), T = o(() => y.value - x.value - w.value), D = o(() => h(y.value)), O = o(() => h(x.value)), k = o(() => h(w.value)), A = o(() => h(n.indentLeft)), j = o(() => h(n.indentRight)), M = o(() => n.hangingIndent ? -n.firstLineIndent : n.firstLineIndent), N = o(() => h(M.value)), P = o(() => O.value + A.value), I = o(() => D.value - k.value - j.value), L = o(() => O.value + A.value + N.value), R = o(() => ({
1516
1517
  position: "relative",
1517
1518
  width: D.value + "px",
1518
1519
  height: "22px",
@@ -1520,7 +1521,7 @@ var Je = {
1520
1521
  overflow: "visible",
1521
1522
  userSelect: "none",
1522
1523
  cursor: d.value ? "ew-resize" : "default"
1523
- })), z = o(() => ({
1524
+ })), ee = o(() => ({
1524
1525
  position: "absolute",
1525
1526
  top: 0,
1526
1527
  left: 0,
@@ -1530,7 +1531,7 @@ var Je = {
1530
1531
  borderRight: "1px solid var(--doc-shadow-subtle)",
1531
1532
  cursor: n.editable ? "ew-resize" : "default",
1532
1533
  zIndex: 1
1533
- })), B = o(() => ({
1534
+ })), z = o(() => ({
1534
1535
  position: "absolute",
1535
1536
  top: 0,
1536
1537
  right: 0,
@@ -1540,10 +1541,10 @@ var Je = {
1540
1541
  borderLeft: "1px solid var(--doc-shadow-subtle)",
1541
1542
  cursor: n.editable ? "ew-resize" : "default",
1542
1543
  zIndex: 1
1543
- })), H = o(() => {
1544
+ })), B = o(() => {
1544
1545
  let e = [];
1545
1546
  if (n.unit === "inch") {
1546
- let t = Lt / 8, n = Math.ceil(y.value / t);
1547
+ let t = zt / 8, n = Math.ceil(y.value / t);
1547
1548
  for (let r = 0; r <= n; r++) {
1548
1549
  let n = r * t;
1549
1550
  if (n > y.value) break;
@@ -1564,7 +1565,7 @@ var Je = {
1564
1565
  });
1565
1566
  }
1566
1567
  } else {
1567
- let t = Rt / 10, n = Math.ceil(y.value / t);
1568
+ let t = Bt / 10, n = Math.ceil(y.value / t);
1568
1569
  for (let r = 0; r <= n; r++) {
1569
1570
  let n = r * t;
1570
1571
  if (n > y.value) break;
@@ -1583,7 +1584,7 @@ var Je = {
1583
1584
  }
1584
1585
  }
1585
1586
  return e;
1586
- }), U = o(() => n.tabStops?.length ? n.tabStops.map((e) => {
1587
+ }), V = o(() => n.tabStops?.length ? n.tabStops.map((e) => {
1587
1588
  let t = e.position;
1588
1589
  return {
1589
1590
  px: h(t),
@@ -1592,10 +1593,10 @@ var Je = {
1592
1593
  };
1593
1594
  }) : []);
1594
1595
  function W(e) {
1595
- return n.unit === "cm" ? (e / Rt).toFixed(1) + " cm" : (e / Lt).toFixed(2) + "\"";
1596
+ return n.unit === "cm" ? (e / Bt).toFixed(1) + " cm" : (e / zt).toFixed(2) + "\"";
1596
1597
  }
1597
1598
  function G(e) {
1598
- return d.value === e ? Vt : f.value === e ? Bt : zt;
1599
+ return d.value === e ? Ut : f.value === e ? Ht : Vt;
1599
1600
  }
1600
1601
  function K(e, t, r) {
1601
1602
  return {
@@ -1608,7 +1609,7 @@ var Je = {
1608
1609
  ...e === "down" ? { top: 0 } : { bottom: 0 }
1609
1610
  };
1610
1611
  }
1611
- function q(e, t) {
1612
+ function te(e, t) {
1612
1613
  return e === "down" ? {
1613
1614
  position: "absolute",
1614
1615
  top: "1px",
@@ -1631,11 +1632,11 @@ var Je = {
1631
1632
  transition: "border-bottom-color 0.1s"
1632
1633
  };
1633
1634
  }
1634
- let J = 0;
1635
- function Y(e, t) {
1636
- n.editable && (d.value = e, e === "leftMargin" ? J = x.value : e === "rightMargin" ? J = w.value : e === "leftIndent" ? J = n.indentLeft : e === "rightIndent" ? J = n.indentRight : e === "firstLineIndent" && (J = n.firstLineIndent), p.value = t.clientX - (s.value?.getBoundingClientRect().left ?? 0), m.value = W(J), document.addEventListener("mousemove", te), document.addEventListener("mouseup", ne));
1635
+ let q = 0;
1636
+ function J(e, t) {
1637
+ n.editable && (d.value = e, e === "leftMargin" ? q = x.value : e === "rightMargin" ? q = w.value : e === "leftIndent" ? q = n.indentLeft : e === "rightIndent" ? q = n.indentRight : e === "firstLineIndent" && (q = n.firstLineIndent), p.value = t.clientX - (s.value?.getBoundingClientRect().left ?? 0), m.value = W(q), document.addEventListener("mousemove", Y), document.addEventListener("mouseup", ne));
1637
1638
  }
1638
- function te(e) {
1639
+ function Y(e) {
1639
1640
  if (!d.value || !s.value) return;
1640
1641
  let t = s.value.getBoundingClientRect();
1641
1642
  if (!t) return;
@@ -1645,7 +1646,7 @@ var Je = {
1645
1646
  m.value = W(i), ie(d.value, i);
1646
1647
  }
1647
1648
  function ne(e) {
1648
- d.value = null, document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ne);
1649
+ d.value = null, document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", ne);
1649
1650
  }
1650
1651
  function re(e, t) {
1651
1652
  if (e === "leftMargin") {
@@ -1687,7 +1688,7 @@ var Je = {
1687
1688
  }
1688
1689
  }
1689
1690
  return v(() => {
1690
- document.removeEventListener("mousemove", te), document.removeEventListener("mouseup", ne);
1691
+ document.removeEventListener("mousemove", Y), document.removeEventListener("mouseup", ne);
1691
1692
  }), (t, n) => (b(), l("div", {
1692
1693
  ref_key: "rulerRef",
1693
1694
  ref: s,
@@ -1700,15 +1701,15 @@ var Je = {
1700
1701
  }, [
1701
1702
  u("div", {
1702
1703
  class: "docx-horizontal-ruler__margin",
1703
- style: _(z.value),
1704
- onMousedown: n[0] ||= F((t) => e.editable ? Y("leftMargin", t) : null, ["prevent", "stop"])
1704
+ style: _(ee.value),
1705
+ onMousedown: n[0] ||= F((t) => e.editable ? J("leftMargin", t) : null, ["prevent", "stop"])
1705
1706
  }, null, 36),
1706
1707
  u("div", {
1707
1708
  class: "docx-horizontal-ruler__margin",
1708
- style: _(B.value),
1709
- onMousedown: n[1] ||= F((t) => e.editable ? Y("rightMargin", t) : null, ["prevent", "stop"])
1709
+ style: _(z.value),
1710
+ onMousedown: n[1] ||= F((t) => e.editable ? J("rightMargin", t) : null, ["prevent", "stop"])
1710
1711
  }, null, 36),
1711
- u("div", Nt, [(b(!0), l(a, null, C(H.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
1712
+ u("div", Ft, [(b(!0), l(a, null, C(B.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
1712
1713
  class: "docx-horizontal-ruler__tick-line",
1713
1714
  style: _({
1714
1715
  left: e.position + "px",
@@ -1723,41 +1724,41 @@ var Je = {
1723
1724
  key: 0,
1724
1725
  class: "docx-ruler-indent",
1725
1726
  style: _(K("down", L.value, d.value === "firstLineIndent")),
1726
- onMousedown: n[2] ||= F((t) => e.editable ? Y("firstLineIndent", t) : null, ["prevent", "stop"]),
1727
+ onMousedown: n[2] ||= F((t) => e.editable ? J("firstLineIndent", t) : null, ["prevent", "stop"]),
1727
1728
  onMouseenter: n[3] ||= (e) => f.value = "firstLineIndent",
1728
1729
  onMouseleave: n[4] ||= (e) => f.value = null
1729
- }, [u("div", { style: _(q("down", G("firstLineIndent"))) }, null, 4)], 36)) : c("", !0),
1730
+ }, [u("div", { style: _(te("down", G("firstLineIndent"))) }, null, 4)], 36)) : c("", !0),
1730
1731
  e.editable ? (b(), l("div", {
1731
1732
  key: 1,
1732
1733
  class: "docx-ruler-indent",
1733
1734
  style: _(K("up", P.value, d.value === "leftIndent")),
1734
- onMousedown: n[5] ||= F((e) => Y("leftIndent", e), ["prevent", "stop"]),
1735
+ onMousedown: n[5] ||= F((e) => J("leftIndent", e), ["prevent", "stop"]),
1735
1736
  onMouseenter: n[6] ||= (e) => f.value = "leftIndent",
1736
1737
  onMouseleave: n[7] ||= (e) => f.value = null
1737
- }, [u("div", { style: _(q("up", G("leftIndent"))) }, null, 4)], 36)) : c("", !0),
1738
+ }, [u("div", { style: _(te("up", G("leftIndent"))) }, null, 4)], 36)) : c("", !0),
1738
1739
  e.editable ? (b(), l("div", {
1739
1740
  key: 2,
1740
1741
  class: "docx-ruler-indent",
1741
1742
  style: _(K("down", I.value, d.value === "rightIndent")),
1742
- onMousedown: n[8] ||= F((e) => Y("rightIndent", e), ["prevent", "stop"]),
1743
+ onMousedown: n[8] ||= F((e) => J("rightIndent", e), ["prevent", "stop"]),
1743
1744
  onMouseenter: n[9] ||= (e) => f.value = "rightIndent",
1744
1745
  onMouseleave: n[10] ||= (e) => f.value = null
1745
- }, [u("div", { style: _(q("down", G("rightIndent"))) }, null, 4)], 36)) : c("", !0),
1746
- (b(!0), l(a, null, C(U.value, (e, n) => (b(), l("div", {
1746
+ }, [u("div", { style: _(te("down", G("rightIndent"))) }, null, 4)], 36)) : c("", !0),
1747
+ (b(!0), l(a, null, C(V.value, (e, n) => (b(), l("div", {
1747
1748
  key: n,
1748
1749
  class: "docx-horizontal-ruler__tab",
1749
1750
  style: _({ left: e.px + "px" }),
1750
1751
  title: `${e.label}`,
1751
1752
  onDblclick: F((n) => t.$emit("tab-stop-remove", e.twips), ["prevent"])
1752
- }, " L ", 44, Pt))), 128)),
1753
+ }, " L ", 44, It))), 128)),
1753
1754
  d.value && m.value ? (b(), l("div", {
1754
1755
  key: 3,
1755
1756
  class: "docx-horizontal-ruler__tooltip",
1756
1757
  style: _({ left: p.value + "px" })
1757
1758
  }, E(m.value), 5)) : c("", !0)
1758
- ], 12, Mt));
1759
+ ], 12, Pt));
1759
1760
  }
1760
- }), [["__scopeId", "data-v-6f3ea48c"]]), Ut = ["disabled", "onClick"], Wt = { class: "docx-tbp__panel" }, Gt = ["title", "onClick"], Kt = /*#__PURE__*/ t(/* @__PURE__ */ p({
1761
+ }), [["__scopeId", "data-v-6f3ea48c"]]), Gt = ["disabled", "onClick"], Kt = { class: "docx-tbp__panel" }, qt = ["title", "onClick"], Jt = /*#__PURE__*/ t(/* @__PURE__ */ p({
1761
1762
  __name: "TableBorderPicker",
1762
1763
  props: { disabled: { type: Boolean } },
1763
1764
  emits: ["change"],
@@ -1831,8 +1832,8 @@ var Je = {
1831
1832
  }, [f(r, {
1832
1833
  name: "border_all",
1833
1834
  size: 20
1834
- })], 8, Ut)]),
1835
- panel: M(() => [u("div", Wt, [(b(), l(a, null, C(d, (e) => u("button", {
1835
+ })], 8, Gt)]),
1836
+ panel: M(() => [u("div", Kt, [(b(), l(a, null, C(d, (e) => u("button", {
1836
1837
  key: e.value,
1837
1838
  type: "button",
1838
1839
  class: "docx-tbp__option",
@@ -1841,11 +1842,11 @@ var Je = {
1841
1842
  }, [f(r, {
1842
1843
  name: e.icon,
1843
1844
  size: 20
1844
- }, null, 8, ["name"])], 8, Gt)), 64))])]),
1845
+ }, null, 8, ["name"])], 8, qt)), 64))])]),
1845
1846
  _: 1
1846
1847
  }, 8, ["open"]));
1847
1848
  }
1848
- }), [["__scopeId", "data-v-4e30a014"]]), qt = /* @__PURE__ */ p({
1849
+ }), [["__scopeId", "data-v-4e30a014"]]), Yt = /* @__PURE__ */ p({
1849
1850
  __name: "TableBorderColorPicker",
1850
1851
  props: {
1851
1852
  disabled: { type: Boolean },
@@ -1872,7 +1873,7 @@ var Je = {
1872
1873
  "title"
1873
1874
  ]));
1874
1875
  }
1875
- }), Jt = ["disabled", "onClick"], Yt = { class: "docx-tbwidth__panel" }, Xt = ["onClick"], Zt = { class: "docx-tbwidth__label" }, Qt = /*#__PURE__*/ t(/* @__PURE__ */ p({
1876
+ }), Xt = ["disabled", "onClick"], Zt = { class: "docx-tbwidth__panel" }, Qt = ["onClick"], $t = { class: "docx-tbwidth__label" }, en = /*#__PURE__*/ t(/* @__PURE__ */ p({
1876
1877
  __name: "TableBorderWidthPicker",
1877
1878
  props: { disabled: { type: Boolean } },
1878
1879
  emits: ["change"],
@@ -1936,8 +1937,8 @@ var Je = {
1936
1937
  }, [f(r, {
1937
1938
  name: "line_weight",
1938
1939
  size: 20
1939
- })], 8, Jt)]),
1940
- panel: M(() => [u("div", Yt, [(b(), l(a, null, C(d, (e) => u("button", {
1940
+ })], 8, Xt)]),
1941
+ panel: M(() => [u("div", Zt, [(b(), l(a, null, C(d, (e) => u("button", {
1941
1942
  key: e.eighths,
1942
1943
  type: "button",
1943
1944
  class: "docx-tbwidth__option",
@@ -1945,11 +1946,11 @@ var Je = {
1945
1946
  }, [u("span", {
1946
1947
  class: "docx-tbwidth__preview",
1947
1948
  style: _({ borderTopWidth: e.previewPx + "px" })
1948
- }, null, 4), u("span", Zt, E(e.label), 1)], 8, Xt)), 64))])]),
1949
+ }, null, 4), u("span", $t, E(e.label), 1)], 8, Qt)), 64))])]),
1949
1950
  _: 1
1950
1951
  }, 8, ["open"]));
1951
1952
  }
1952
- }), [["__scopeId", "data-v-42a746ba"]]), $t = /* @__PURE__ */ p({
1953
+ }), [["__scopeId", "data-v-42a746ba"]]), tn = /* @__PURE__ */ p({
1953
1954
  __name: "TableCellFillPicker",
1954
1955
  props: {
1955
1956
  disabled: { type: Boolean },
@@ -1979,23 +1980,23 @@ var Je = {
1979
1980
  "auto-label"
1980
1981
  ]));
1981
1982
  }
1982
- }), en = [
1983
+ }), nn = [
1983
1984
  "disabled",
1984
1985
  "title",
1985
1986
  "onClick"
1986
- ], tn = ["aria-label"], nn = ["disabled"], rn = ["disabled"], an = ["disabled"], on = ["disabled"], sn = { class: "docx-tmore__section-label" }, cn = { class: "docx-tmore__icon-row" }, ln = ["title"], un = ["title"], dn = ["title"], fn = { class: "docx-tmore__section-label" }, pn = { class: "docx-tmore__icon-row" }, mn = ["title"], hn = ["title"], gn = ["title"], _n = { class: "docx-tmore__grow" }, vn = {
1987
+ ], rn = ["aria-label"], an = ["disabled"], on = ["disabled"], sn = ["disabled"], cn = ["disabled"], ln = { class: "docx-tmore__section-label" }, un = { class: "docx-tmore__icon-row" }, dn = ["title"], fn = ["title"], pn = ["title"], mn = { class: "docx-tmore__section-label" }, hn = { class: "docx-tmore__icon-row" }, gn = ["title"], _n = ["title"], vn = ["title"], yn = { class: "docx-tmore__grow" }, bn = {
1987
1988
  key: 0,
1988
1989
  class: "docx-tmore__sub"
1989
- }, yn = { class: "docx-tmore__margin-grid" }, bn = { class: "docx-tmore__field-label" }, xn = ["onUpdate:modelValue"], Sn = { class: "docx-tmore__grow" }, Cn = {
1990
+ }, xn = { class: "docx-tmore__margin-grid" }, Sn = { class: "docx-tmore__field-label" }, Cn = ["onUpdate:modelValue"], wn = { class: "docx-tmore__grow" }, Tn = {
1990
1991
  key: 1,
1991
1992
  class: "docx-tmore__sub"
1992
- }, wn = { class: "docx-tmore__row-field" }, Tn = { class: "docx-tmore__field-label" }, En = { value: "auto" }, Dn = { value: "atLeast" }, On = { value: "exact" }, kn = {
1993
+ }, En = { class: "docx-tmore__row-field" }, Dn = { class: "docx-tmore__field-label" }, On = { value: "auto" }, kn = { value: "atLeast" }, An = { value: "exact" }, jn = {
1993
1994
  key: 0,
1994
1995
  class: "docx-tmore__row-field"
1995
- }, An = { class: "docx-tmore__field-label" }, jn = { class: "docx-tmore__grow" }, Mn = {
1996
+ }, Mn = { class: "docx-tmore__field-label" }, Nn = { class: "docx-tmore__grow" }, Pn = {
1996
1997
  key: 2,
1997
1998
  class: "docx-tmore__sub docx-tmore__sub--list"
1998
- }, Nn = /*#__PURE__*/ t(/* @__PURE__ */ p({
1999
+ }, Fn = /*#__PURE__*/ t(/* @__PURE__ */ p({
1999
2000
  __name: "TableMoreDropdown",
2000
2001
  props: {
2001
2002
  disabled: {
@@ -2048,14 +2049,14 @@ var Je = {
2048
2049
  right: L(w.right)
2049
2050
  }), h.value = !1;
2050
2051
  }
2051
- function z() {
2052
+ function ee() {
2052
2053
  let e = L(T.value);
2053
2054
  D.value === "auto" || e <= 0 ? p("row-height", { height: null }) : p("row-height", {
2054
2055
  height: e,
2055
2056
  rule: D.value
2056
2057
  }), h.value = !1;
2057
2058
  }
2058
- function B(e) {
2059
+ function z(e) {
2059
2060
  p("cell-text-direction", e), h.value = !1;
2060
2061
  }
2061
2062
  return (t, n) => (b(), s(O(o), {
@@ -2073,7 +2074,7 @@ var Je = {
2073
2074
  }, [f(r, {
2074
2075
  name: "more_vert",
2075
2076
  size: 20
2076
- })], 10, en)]),
2077
+ })], 10, nn)]),
2077
2078
  panel: M(() => [u("div", {
2078
2079
  class: "docx-tmore__panel",
2079
2080
  role: "menu",
@@ -2120,7 +2121,7 @@ var Je = {
2120
2121
  }, [f(r, {
2121
2122
  name: "call_merge",
2122
2123
  size: 18
2123
- }), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, nn),
2124
+ }), u("span", null, E(O(m)("table.mergeCells")), 1)], 8, an),
2124
2125
  u("button", {
2125
2126
  type: "button",
2126
2127
  class: "docx-tmore__item",
@@ -2129,7 +2130,7 @@ var Je = {
2129
2130
  }, [f(r, {
2130
2131
  name: "call_split",
2131
2132
  size: 18
2132
- }), u("span", null, E(O(m)("table.splitCell")), 1)], 8, rn),
2133
+ }), u("span", null, E(O(m)("table.splitCell")), 1)], 8, on),
2133
2134
  n[40] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2134
2135
  u("button", {
2135
2136
  type: "button",
@@ -2148,7 +2149,7 @@ var Je = {
2148
2149
  }, [f(r, {
2149
2150
  name: "delete",
2150
2151
  size: 18
2151
- }), u("span", null, E(O(m)("deleteRow")), 1)], 8, an),
2152
+ }), u("span", null, E(O(m)("deleteRow")), 1)], 8, sn),
2152
2153
  u("button", {
2153
2154
  type: "button",
2154
2155
  class: "docx-tmore__item docx-tmore__item--danger",
@@ -2157,7 +2158,7 @@ var Je = {
2157
2158
  }, [f(r, {
2158
2159
  name: "delete",
2159
2160
  size: 18
2160
- }), u("span", null, E(O(m)("deleteColumn")), 1)], 8, on),
2161
+ }), u("span", null, E(O(m)("deleteColumn")), 1)], 8, cn),
2161
2162
  u("button", {
2162
2163
  type: "button",
2163
2164
  class: "docx-tmore__item docx-tmore__item--danger",
@@ -2167,8 +2168,8 @@ var Je = {
2167
2168
  size: 18
2168
2169
  }), u("span", null, E(O(m)("table.deleteTable")), 1)]),
2169
2170
  n[42] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2170
- u("div", sn, E(O(m)("tableAdvanced.verticalAlignment")), 1),
2171
- u("div", cn, [
2171
+ u("div", ln, E(O(m)("tableAdvanced.verticalAlignment")), 1),
2172
+ u("div", un, [
2172
2173
  u("button", {
2173
2174
  type: "button",
2174
2175
  class: "docx-tmore__icon-btn",
@@ -2178,7 +2179,7 @@ var Je = {
2178
2179
  }, [f(r, {
2179
2180
  name: "vertical_align_top",
2180
2181
  size: 16
2181
- })], 40, ln),
2182
+ })], 40, dn),
2182
2183
  u("button", {
2183
2184
  type: "button",
2184
2185
  class: "docx-tmore__icon-btn",
@@ -2188,7 +2189,7 @@ var Je = {
2188
2189
  }, [f(r, {
2189
2190
  name: "vertical_align_center",
2190
2191
  size: 16
2191
- })], 40, un),
2192
+ })], 40, fn),
2192
2193
  u("button", {
2193
2194
  type: "button",
2194
2195
  class: "docx-tmore__icon-btn",
@@ -2198,11 +2199,11 @@ var Je = {
2198
2199
  }, [f(r, {
2199
2200
  name: "vertical_align_bottom",
2200
2201
  size: 16
2201
- })], 40, dn)
2202
+ })], 40, pn)
2202
2203
  ]),
2203
2204
  n[43] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2204
- u("div", fn, E(O(m)("tableAdvanced.tableAlignment")), 1),
2205
- u("div", pn, [
2205
+ u("div", mn, E(O(m)("tableAdvanced.tableAlignment")), 1),
2206
+ u("div", hn, [
2206
2207
  u("button", {
2207
2208
  type: "button",
2208
2209
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "left" }]),
@@ -2212,7 +2213,7 @@ var Je = {
2212
2213
  }, [f(r, {
2213
2214
  name: "format_align_left",
2214
2215
  size: 16
2215
- })], 42, mn),
2216
+ })], 42, gn),
2216
2217
  u("button", {
2217
2218
  type: "button",
2218
2219
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "center" }]),
@@ -2222,7 +2223,7 @@ var Je = {
2222
2223
  }, [f(r, {
2223
2224
  name: "format_align_center",
2224
2225
  size: 16
2225
- })], 42, hn),
2226
+ })], 42, _n),
2226
2227
  u("button", {
2227
2228
  type: "button",
2228
2229
  class: g(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": e.currentJustification === "right" }]),
@@ -2232,7 +2233,7 @@ var Je = {
2232
2233
  }, [f(r, {
2233
2234
  name: "format_align_right",
2234
2235
  size: 16
2235
- })], 42, gn)
2236
+ })], 42, vn)
2236
2237
  ]),
2237
2238
  n[44] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
2238
2239
  u("button", {
@@ -2244,13 +2245,13 @@ var Je = {
2244
2245
  name: "padding",
2245
2246
  size: 18
2246
2247
  }),
2247
- u("span", _n, E(O(m)("tableAdvanced.cellMargins")), 1),
2248
+ u("span", yn, E(O(m)("tableAdvanced.cellMargins")), 1),
2248
2249
  f(r, {
2249
2250
  name: _.value ? "expand_less" : "expand_more",
2250
2251
  size: 18
2251
2252
  }, null, 8, ["name"])
2252
2253
  ]),
2253
- _.value ? (b(), l("div", vn, [u("div", yn, [(b(), l(a, null, C([
2254
+ _.value ? (b(), l("div", bn, [u("div", xn, [(b(), l(a, null, C([
2254
2255
  "top",
2255
2256
  "bottom",
2256
2257
  "left",
@@ -2259,14 +2260,14 @@ var Je = {
2259
2260
  key: e,
2260
2261
  class: "docx-tmore__field"
2261
2262
  }, [
2262
- u("span", bn, E(e), 1),
2263
+ u("span", Sn, E(e), 1),
2263
2264
  N(u("input", {
2264
2265
  type: "number",
2265
2266
  min: "0",
2266
2267
  step: "20",
2267
2268
  "onUpdate:modelValue": (t) => w[e] = t,
2268
2269
  class: "docx-tmore__input"
2269
- }, null, 8, xn), [[
2270
+ }, null, 8, Cn), [[
2270
2271
  A,
2271
2272
  w[e],
2272
2273
  void 0,
@@ -2287,23 +2288,23 @@ var Je = {
2287
2288
  name: "height",
2288
2289
  size: 18
2289
2290
  }),
2290
- u("span", Sn, E(O(m)("tableAdvanced.rowHeight")), 1),
2291
+ u("span", wn, E(O(m)("tableAdvanced.rowHeight")), 1),
2291
2292
  f(r, {
2292
2293
  name: v.value ? "expand_less" : "expand_more",
2293
2294
  size: 18
2294
2295
  }, null, 8, ["name"])
2295
2296
  ]),
2296
- v.value ? (b(), l("div", Cn, [
2297
- u("label", wn, [u("span", Tn, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
2297
+ v.value ? (b(), l("div", Tn, [
2298
+ u("label", En, [u("span", Dn, E(O(m)("tableAdvanced.rule")), 1), N(u("select", {
2298
2299
  "onUpdate:modelValue": n[24] ||= (e) => D.value = e,
2299
2300
  class: "docx-tmore__select"
2300
2301
  }, [
2301
- u("option", En, E(O(m)("tableAdvanced.heightRules.auto")), 1),
2302
- u("option", Dn, E(O(m)("tableAdvanced.heightRules.atLeast")), 1),
2303
- u("option", On, E(O(m)("tableAdvanced.heightRules.exact")), 1)
2302
+ u("option", On, E(O(m)("tableAdvanced.heightRules.auto")), 1),
2303
+ u("option", kn, E(O(m)("tableAdvanced.heightRules.atLeast")), 1),
2304
+ u("option", An, E(O(m)("tableAdvanced.heightRules.exact")), 1)
2304
2305
  ], 512), [[k, D.value]])]),
2305
- D.value === "auto" ? c("", !0) : (b(), l("label", kn, [
2306
- u("span", An, E(O(m)("tableAdvanced.height")), 1),
2306
+ D.value === "auto" ? c("", !0) : (b(), l("label", jn, [
2307
+ u("span", Mn, E(O(m)("tableAdvanced.height")), 1),
2307
2308
  N(u("input", {
2308
2309
  type: "number",
2309
2310
  min: "0",
@@ -2321,7 +2322,7 @@ var Je = {
2321
2322
  u("button", {
2322
2323
  type: "button",
2323
2324
  class: "docx-tmore__apply",
2324
- onClick: F(z, ["prevent"])
2325
+ onClick: F(ee, ["prevent"])
2325
2326
  }, E(O(m)("common.apply")), 1)
2326
2327
  ])) : c("", !0),
2327
2328
  u("button", {
@@ -2333,27 +2334,27 @@ var Je = {
2333
2334
  name: "text_rotation_none",
2334
2335
  size: 18
2335
2336
  }),
2336
- u("span", jn, E(O(m)("textDirection")), 1),
2337
+ u("span", Nn, E(O(m)("textDirection")), 1),
2337
2338
  f(r, {
2338
2339
  name: y.value ? "expand_less" : "expand_more",
2339
2340
  size: 18
2340
2341
  }, null, 8, ["name"])
2341
2342
  ]),
2342
- y.value ? (b(), l("div", Mn, [
2343
+ y.value ? (b(), l("div", Pn, [
2343
2344
  u("button", {
2344
2345
  type: "button",
2345
2346
  class: "docx-tmore__sub-item",
2346
- onClick: n[27] ||= F((e) => B(null), ["prevent"])
2347
+ onClick: n[27] ||= F((e) => z(null), ["prevent"])
2347
2348
  }, E(O(m)("tableAdvanced.textDirections.horizontal")), 1),
2348
2349
  u("button", {
2349
2350
  type: "button",
2350
2351
  class: "docx-tmore__sub-item",
2351
- onClick: n[28] ||= F((e) => B("tbRl"), ["prevent"])
2352
+ onClick: n[28] ||= F((e) => z("tbRl"), ["prevent"])
2352
2353
  }, E(O(m)("tableAdvanced.textDirections.verticalRL")), 1),
2353
2354
  u("button", {
2354
2355
  type: "button",
2355
2356
  class: "docx-tmore__sub-item",
2356
- onClick: n[29] ||= F((e) => B("btLr"), ["prevent"])
2357
+ onClick: n[29] ||= F((e) => z("btLr"), ["prevent"])
2357
2358
  }, E(O(m)("tableAdvanced.textDirections.verticalLR")), 1)
2358
2359
  ])) : c("", !0),
2359
2360
  n[45] ||= u("div", { class: "docx-tmore__separator" }, null, -1),
@@ -2398,11 +2399,11 @@ var Je = {
2398
2399
  name: "settings",
2399
2400
  size: 18
2400
2401
  }), u("span", null, E(O(m)("tableAdvanced.tableProperties")), 1)])
2401
- ], 8, tn)]),
2402
+ ], 8, rn)]),
2402
2403
  _: 1
2403
2404
  }, 8, ["open"]));
2404
2405
  }
2405
- }), [["__scopeId", "data-v-5d357bc4"]]), Pn = /*#__PURE__*/ t(/* @__PURE__ */ p({
2406
+ }), [["__scopeId", "data-v-5d357bc4"]]), In = /*#__PURE__*/ t(/* @__PURE__ */ p({
2406
2407
  __name: "TableToolbar",
2407
2408
  props: {
2408
2409
  view: {},
@@ -2415,7 +2416,7 @@ var Je = {
2415
2416
  let r = e, i = n, s = o(() => {
2416
2417
  r.stateTick;
2417
2418
  let e = r.view;
2418
- return e ? I(e.state) : null;
2419
+ return e ? R(e.state) : null;
2419
2420
  }), d = o(() => !!s.value?.isInTable), p = o(() => {
2420
2421
  r.stateTick;
2421
2422
  let e = r.view;
@@ -2440,7 +2441,7 @@ var Je = {
2440
2441
  j([() => r.view, () => r.stateTick], () => {
2441
2442
  let e = r.view;
2442
2443
  if (!e) return;
2443
- let t = I(e.state), n = t.cellBorderColor;
2444
+ let t = R(e.state), n = t.cellBorderColor;
2444
2445
  !n || !t.isInTable || typeof n == "object" && "rgb" in n && typeof n.rgb == "string" && (S.color = { rgb: n.rgb });
2445
2446
  }, { immediate: !0 });
2446
2447
  function C(e, ...t) {
@@ -2529,14 +2530,14 @@ var Je = {
2529
2530
  onRowHeight: N
2530
2531
  }), (t, n) => d.value ? (b(), l(a, { key: 0 }, [
2531
2532
  n[0] ||= u("span", { class: "divider" }, null, -1),
2532
- f(Kt, { onChange: w }),
2533
- f(qt, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
2534
- f(Qt, { onChange: E }),
2535
- f($t, {
2533
+ f(Jt, { onChange: w }),
2534
+ f(Yt, m({ theme: e.theme ?? null }, g.value, { onChange: T }), null, 16, ["theme"]),
2535
+ f(en, { onChange: E }),
2536
+ f(tn, {
2536
2537
  theme: e.theme ?? null,
2537
2538
  onChange: D
2538
2539
  }, null, 8, ["theme"]),
2539
- f(Nn, {
2540
+ f(Fn, {
2540
2541
  "can-split": p.value,
2541
2542
  "can-merge": _.value,
2542
2543
  "row-count": v.value,
@@ -2555,7 +2556,7 @@ var Je = {
2555
2556
  ])
2556
2557
  ], 64)) : c("", !0);
2557
2558
  }
2558
- }), [["__scopeId", "data-v-c73a7e43"]]), Fn = { class: "docx-vertical-ruler__ticks" }, In = 15840, Ln = 1440, Rn = 1440, zn = 567, Bn = /*#__PURE__*/ t(/* @__PURE__ */ p({
2559
+ }), [["__scopeId", "data-v-c73a7e43"]]), Ln = { class: "docx-vertical-ruler__ticks" }, Rn = 15840, zn = 1440, Bn = 1440, Vn = 567, Hn = /*#__PURE__*/ t(/* @__PURE__ */ p({
2559
2560
  __name: "VerticalRuler",
2560
2561
  props: {
2561
2562
  sectionProps: {},
@@ -2570,12 +2571,12 @@ var Je = {
2570
2571
  setup(e, { emit: t }) {
2571
2572
  let n = e, r = t, i = S(null), s = S(null);
2572
2573
  function d(e) {
2573
- return ee(e) * n.zoom;
2574
+ return U(e) * n.zoom;
2574
2575
  }
2575
2576
  function f(e) {
2576
- return Math.round(V(e / n.zoom));
2577
+ return Math.round(H(e / n.zoom));
2577
2578
  }
2578
- let p = o(() => n.sectionProps?.pageHeight ?? In), m = o(() => n.sectionProps?.marginTop ?? Ln), h = o(() => n.sectionProps?.marginBottom ?? Ln), g = o(() => d(p.value)), y = o(() => d(m.value)), x = o(() => d(h.value)), w = o(() => ({
2579
+ let p = o(() => n.sectionProps?.pageHeight ?? Rn), m = o(() => n.sectionProps?.marginTop ?? zn), h = o(() => n.sectionProps?.marginBottom ?? zn), g = o(() => d(p.value)), y = o(() => d(m.value)), x = o(() => d(h.value)), w = o(() => ({
2579
2580
  position: "relative",
2580
2581
  width: "20px",
2581
2582
  height: g.value + "px",
@@ -2586,7 +2587,7 @@ var Je = {
2586
2587
  })), T = o(() => {
2587
2588
  let e = [];
2588
2589
  if (n.unit === "inch") {
2589
- let t = Rn / 8, n = Math.ceil(p.value / t);
2590
+ let t = Bn / 8, n = Math.ceil(p.value / t);
2590
2591
  for (let r = 0; r <= n; r++) {
2591
2592
  let n = r * t;
2592
2593
  if (n > p.value) break;
@@ -2607,7 +2608,7 @@ var Je = {
2607
2608
  });
2608
2609
  }
2609
2610
  } else {
2610
- let t = zn / 10, n = Math.ceil(p.value / t);
2611
+ let t = Vn / 10, n = Math.ceil(p.value / t);
2611
2612
  for (let r = 0; r <= n; r++) {
2612
2613
  let n = r * t;
2613
2614
  if (n > p.value) break;
@@ -2673,7 +2674,7 @@ var Je = {
2673
2674
  "aria-label": "Vertical ruler",
2674
2675
  "aria-orientation": "vertical"
2675
2676
  }, [
2676
- u("div", Fn, [(b(!0), l(a, null, C(T.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
2677
+ u("div", Ln, [(b(!0), l(a, null, C(T.value, (e, t) => (b(), l(a, { key: t }, [u("div", {
2677
2678
  class: "docx-vertical-ruler__tick-line",
2678
2679
  style: _({
2679
2680
  top: e.position + "px",
@@ -2705,10 +2706,10 @@ var Je = {
2705
2706
  }), [["__scopeId", "data-v-f7ccbd38"]]);
2706
2707
  //#endregion
2707
2708
  //#region src/utils/comments.ts
2708
- function Vn(e) {
2709
+ function Un(e) {
2709
2710
  return e?.length ? e.flatMap((e) => e.content.filter((e) => e.type === "run").flatMap((e) => "content" in e ? e.content : []).filter((e) => e.type === "text").map((e) => "text" in e ? e.text : "")).join("") : "";
2710
2711
  }
2711
- function Hn(e) {
2712
+ function Wn(e) {
2712
2713
  return e ? new Date(e).toLocaleString(void 0, {
2713
2714
  hour: "numeric",
2714
2715
  minute: "2-digit",
@@ -2716,10 +2717,10 @@ function Hn(e) {
2716
2717
  day: "numeric"
2717
2718
  }) : "";
2718
2719
  }
2719
- function Un(e) {
2720
+ function Gn(e) {
2720
2721
  return e.split(/\s+/).map((e) => e[0]).join("").toUpperCase().slice(0, 2);
2721
2722
  }
2722
- var Wn = [
2723
+ var Kn = [
2723
2724
  "#6DCCB1",
2724
2725
  "#79AAD9",
2725
2726
  "#EE789D",
@@ -2733,28 +2734,28 @@ var Wn = [
2733
2734
  "#E15759",
2734
2735
  "#76B7B2"
2735
2736
  ];
2736
- function Gn(e) {
2737
+ function qn(e) {
2737
2738
  let t = 0;
2738
2739
  for (let n = 0; n < e.length; n++) t = e.charCodeAt(n) + ((t << 5) - t);
2739
- return Wn[Math.abs(t) % Wn.length] ?? "#888888";
2740
+ return Kn[Math.abs(t) % Kn.length] ?? "#888888";
2740
2741
  }
2741
2742
  function $(e, t = 50) {
2742
2743
  return e.length > t ? e.slice(0, t) + "..." : e;
2743
2744
  }
2744
2745
  //#endregion
2745
2746
  //#region src/components/sidebar/Avatar.vue
2746
- var Kn = /* @__PURE__ */ p({
2747
+ var Jn = /* @__PURE__ */ p({
2747
2748
  __name: "Avatar",
2748
2749
  props: {
2749
2750
  name: { default: "U" },
2750
2751
  size: { default: 32 }
2751
2752
  },
2752
2753
  setup(e) {
2753
- let t = e, n = o(() => Un(t.name || "U")), r = o(() => ({
2754
+ let t = e, n = o(() => Gn(t.name || "U")), r = o(() => ({
2754
2755
  width: t.size + "px",
2755
2756
  height: t.size + "px",
2756
2757
  borderRadius: "50%",
2757
- backgroundColor: Gn(t.name || "U"),
2758
+ backgroundColor: qn(t.name || "U"),
2758
2759
  color: "#fff",
2759
2760
  display: "flex",
2760
2761
  alignItems: "center",
@@ -2768,13 +2769,13 @@ var Kn = /* @__PURE__ */ p({
2768
2769
  style: _(r.value)
2769
2770
  }, E(n.value), 5));
2770
2771
  }
2771
- }), qn = {
2772
+ }), Yn = {
2772
2773
  key: 0,
2773
2774
  class: "reply-thread"
2774
- }, Jn = {
2775
+ }, Xn = {
2775
2776
  key: 0,
2776
2777
  class: "reply-thread__more"
2777
- }, Yn = { class: "reply-thread__header" }, Xn = { class: "reply-thread__author-block" }, Zn = { class: "reply-thread__author" }, Qn = { class: "reply-thread__date" }, $n = /*#__PURE__*/ t(/* @__PURE__ */ p({
2778
+ }, Zn = { class: "reply-thread__header" }, Qn = { class: "reply-thread__author-block" }, $n = { class: "reply-thread__author" }, er = { class: "reply-thread__date" }, tr = /*#__PURE__*/ t(/* @__PURE__ */ p({
2778
2779
  __name: "ReplyThread",
2779
2780
  props: {
2780
2781
  replies: {},
@@ -2782,15 +2783,15 @@ var Kn = /* @__PURE__ */ p({
2782
2783
  },
2783
2784
  setup(e) {
2784
2785
  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));
2785
- return (t, i) => e.replies.length > 0 ? (b(), l("div", qn, [r.value > 0 ? (b(), l("div", Jn, E(r.value) + " " + E(r.value === 1 ? "reply" : "replies"), 1)) : c("", !0), (b(!0), l(a, null, C(n.value, (t) => (b(), l("div", {
2786
+ return (t, i) => e.replies.length > 0 ? (b(), l("div", Yn, [r.value > 0 ? (b(), l("div", Xn, E(r.value) + " " + E(r.value === 1 ? "reply" : "replies"), 1)) : c("", !0), (b(!0), l(a, null, C(n.value, (t) => (b(), l("div", {
2786
2787
  key: t.id,
2787
2788
  class: g(["reply-thread__item", { "reply-thread__item--expanded": e.isExpanded }])
2788
- }, [u("div", Yn, [f(Kn, {
2789
+ }, [u("div", Zn, [f(Jn, {
2789
2790
  name: t.author,
2790
2791
  size: 28
2791
- }, null, 8, ["name"]), u("div", Xn, [u("div", Zn, E(t.author || "Unknown"), 1), u("div", Qn, E(O(Hn)(t.date)), 1)])]), u("div", { class: g(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, E(O(Vn)(t.content)), 3)], 2))), 128))])) : c("", !0);
2792
+ }, null, 8, ["name"]), u("div", Qn, [u("div", $n, E(t.author || "Unknown"), 1), u("div", er, E(O(Wn)(t.date)), 1)])]), u("div", { class: g(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, E(O(Un)(t.content)), 3)], 2))), 128))])) : c("", !0);
2792
2793
  }
2793
- }), [["__scopeId", "data-v-06331fac"]]), er = ["onKeydown"], tr = { class: "reply-input__actions" }, nr = ["disabled"], rr = /*#__PURE__*/ t(/* @__PURE__ */ p({
2794
+ }), [["__scopeId", "data-v-06331fac"]]), nr = ["onKeydown"], rr = { class: "reply-input__actions" }, ir = ["disabled"], ar = /*#__PURE__*/ t(/* @__PURE__ */ p({
2794
2795
  __name: "ReplyInput",
2795
2796
  emits: ["submit"],
2796
2797
  setup(e, { emit: t }) {
@@ -2822,14 +2823,14 @@ var Kn = /* @__PURE__ */ p({
2822
2823
  P(F(p, ["prevent"]), ["enter"]),
2823
2824
  P(f, ["esc"])
2824
2825
  ]
2825
- }, null, 40, er), [[A, i.value]]), u("div", tr, [u("button", {
2826
+ }, null, 40, nr), [[A, i.value]]), u("div", rr, [u("button", {
2826
2827
  class: "reply-input__cancel",
2827
2828
  onClick: F(f, ["stop"])
2828
2829
  }, "Cancel"), u("button", {
2829
2830
  class: g(["reply-input__submit", { "reply-input__submit--active": c.value }]),
2830
2831
  disabled: !c.value,
2831
2832
  onClick: F(p, ["stop"])
2832
- }, " Reply ", 10, nr)])], 64)) : (b(), l("input", {
2833
+ }, " Reply ", 10, ir)])], 64)) : (b(), l("input", {
2833
2834
  key: 0,
2834
2835
  readonly: "",
2835
2836
  placeholder: "Reply",
@@ -2838,13 +2839,13 @@ var Kn = /* @__PURE__ */ p({
2838
2839
  onClick: F(d, ["stop"])
2839
2840
  }, null, 32))], 32));
2840
2841
  }
2841
- }), [["__scopeId", "data-v-fea8646c"]]), ir = ["data-comment-id"], ar = {
2842
+ }), [["__scopeId", "data-v-fea8646c"]]), or = ["data-comment-id"], sr = {
2842
2843
  key: 0,
2843
2844
  class: "comment-card__resolved"
2844
- }, or = { class: "comment-card__head" }, sr = { class: "comment-card__author-block" }, cr = { class: "comment-card__author" }, lr = { class: "comment-card__date" }, ur = {
2845
+ }, cr = { class: "comment-card__head" }, lr = { class: "comment-card__author-block" }, ur = { class: "comment-card__author" }, dr = { class: "comment-card__date" }, fr = {
2845
2846
  key: 0,
2846
2847
  class: "comment-card__actions"
2847
- }, dr = ["title"], fr = { class: "comment-card__body" }, pr = /*#__PURE__*/ t(/* @__PURE__ */ p({
2848
+ }, pr = ["title"], mr = { class: "comment-card__body" }, hr = /*#__PURE__*/ t(/* @__PURE__ */ p({
2848
2849
  __name: "CommentCard",
2849
2850
  props: {
2850
2851
  comment: {},
@@ -2869,17 +2870,17 @@ var Kn = /* @__PURE__ */ p({
2869
2870
  onClick: n[5] ||= (e) => t.$emit("click"),
2870
2871
  onMousedown: n[6] ||= F(() => {}, ["stop"])
2871
2872
  }, [
2872
- e.comment.done ? (b(), l("div", ar, [f(r, {
2873
+ e.comment.done ? (b(), l("div", sr, [f(r, {
2873
2874
  name: "check",
2874
2875
  size: 12
2875
2876
  }), n[7] ||= u("span", null, "Resolved", -1)])) : c("", !0),
2876
- u("div", or, [
2877
- f(Kn, {
2877
+ u("div", cr, [
2878
+ f(Jn, {
2878
2879
  name: e.comment.author,
2879
2880
  size: 32
2880
2881
  }, null, 8, ["name"]),
2881
- u("div", sr, [u("div", cr, E(e.comment.author || "Unknown"), 1), u("div", lr, E(O(Hn)(e.comment.date)), 1)]),
2882
- e.expanded ? (b(), l("div", ur, [
2882
+ u("div", lr, [u("div", ur, E(e.comment.author || "Unknown"), 1), u("div", dr, E(O(Wn)(e.comment.date)), 1)]),
2883
+ e.expanded ? (b(), l("div", fr, [
2883
2884
  u("button", {
2884
2885
  class: "comment-card__icon-btn",
2885
2886
  title: e.comment.done ? "Reopen" : "Resolve",
@@ -2887,7 +2888,7 @@ var Kn = /* @__PURE__ */ p({
2887
2888
  }, [f(r, {
2888
2889
  name: e.comment.done ? "undo" : "check",
2889
2890
  size: 20
2890
- }, null, 8, ["name"])], 8, dr),
2891
+ }, null, 8, ["name"])], 8, pr),
2891
2892
  u("button", {
2892
2893
  class: "comment-card__icon-btn",
2893
2894
  title: "More options",
@@ -2907,18 +2908,18 @@ var Kn = /* @__PURE__ */ p({
2907
2908
  }, "Delete")], 32)) : c("", !0)
2908
2909
  ])) : c("", !0)
2909
2910
  ]),
2910
- u("div", fr, E(O(Vn)(e.comment.content)), 1),
2911
- f($n, {
2911
+ u("div", mr, E(O(Un)(e.comment.content)), 1),
2912
+ f(tr, {
2912
2913
  replies: e.replies,
2913
2914
  "is-expanded": e.expanded
2914
2915
  }, null, 8, ["replies", "is-expanded"]),
2915
- e.expanded && !e.comment.done ? (b(), s(rr, {
2916
+ e.expanded && !e.comment.done ? (b(), s(ar, {
2916
2917
  key: 1,
2917
2918
  onSubmit: n[4] ||= (n) => t.$emit("reply", e.comment.id, n)
2918
2919
  })) : c("", !0)
2919
- ], 42, ir));
2920
+ ], 42, or));
2920
2921
  }
2921
- }), [["__scopeId", "data-v-7a3ee7ac"]]), mr = ["data-comment-id"], hr = /*#__PURE__*/ t(/* @__PURE__ */ p({
2922
+ }), [["__scopeId", "data-v-7a3ee7ac"]]), gr = ["data-comment-id"], _r = /*#__PURE__*/ t(/* @__PURE__ */ p({
2922
2923
  __name: "ResolvedCommentMarker",
2923
2924
  props: { comment: {} },
2924
2925
  emits: ["toggle-expand"],
@@ -2932,43 +2933,37 @@ var Kn = /* @__PURE__ */ p({
2932
2933
  }, [f(r, {
2933
2934
  name: "chat_bubble_check",
2934
2935
  size: 20
2935
- })], 40, mr));
2936
+ })], 40, gr));
2936
2937
  }
2937
- }), [["__scopeId", "data-v-d0c228f6"]]), gr = { class: "tc-card__head" }, _r = { class: "tc-card__author-block" }, vr = { class: "tc-card__author" }, yr = {
2938
+ }), [["__scopeId", "data-v-d0c228f6"]]), vr = { class: "tc-card__head" }, yr = { class: "tc-card__author-block" }, br = { class: "tc-card__author" }, xr = {
2938
2939
  key: 0,
2939
2940
  class: "tc-card__date"
2940
- }, br = {
2941
+ }, Sr = {
2941
2942
  key: 0,
2942
2943
  class: "tc-card__actions"
2943
- }, xr = ["title"], Sr = ["title"], Cr = { class: "tc-card__body" }, wr = { class: "tc-card__deleted" }, Tr = { class: "tc-card__inserted" }, Er = { class: "tc-card__inserted" }, Dr = { class: "tc-card__deleted" }, Or = { class: "tc-card__changed" }, kr = { class: "tc-card__changed" }, Ar = {
2944
+ }, Cr = ["title"], wr = ["title"], Tr = { class: "tc-card__body" }, Er = { class: "tc-card__deleted" }, Dr = { class: "tc-card__inserted" }, Or = { class: "tc-card__inserted" }, kr = { class: "tc-card__deleted" }, Ar = {
2945
+ key: 0,
2946
+ class: "tc-card__changed"
2947
+ }, jr = { class: "tc-card__changed" }, Mr = { class: "tc-card__changed" }, Nr = {
2944
2948
  key: 5,
2945
2949
  class: "tc-card__inserted"
2946
- }, jr = {
2950
+ }, Pr = {
2947
2951
  key: 6,
2948
2952
  class: "tc-card__deleted"
2949
- }, Mr = {
2953
+ }, Fr = {
2950
2954
  key: 7,
2951
2955
  class: "tc-card__inserted"
2952
- }, Nr = {
2956
+ }, Ir = {
2953
2957
  key: 8,
2954
2958
  class: "tc-card__deleted"
2955
- }, Pr = {
2956
- key: 9,
2957
- class: "tc-card__changed"
2958
- }, Fr = {
2959
- key: 10,
2960
- class: "tc-card__changed"
2961
- }, Ir = {
2962
- key: 11,
2963
- class: "tc-card__changed"
2964
2959
  }, Lr = {
2965
- key: 12,
2960
+ key: 9,
2966
2961
  class: "tc-card__changed"
2967
2962
  }, Rr = {
2968
- key: 13,
2963
+ key: 10,
2969
2964
  class: "tc-card__inserted"
2970
2965
  }, zr = {
2971
- key: 14,
2966
+ key: 11,
2972
2967
  class: "tc-card__deleted"
2973
2968
  }, Br = /*#__PURE__*/ t(/* @__PURE__ */ p({
2974
2969
  __name: "TrackedChangeCard",
@@ -2984,63 +2979,94 @@ var Kn = /* @__PURE__ */ p({
2984
2979
  "reply"
2985
2980
  ],
2986
2981
  setup(e, { emit: t }) {
2987
- let { t: i } = n(), p = e, m = t, h = o(() => p.change.author || i("trackedChanges.unknown"));
2988
- function _() {
2982
+ let { t: i } = n(), p = e, m = t, h = o(() => p.change.author || i("trackedChanges.unknown")), _ = {
2983
+ paragraphPropertiesChanged: {
2984
+ shape: "with-text",
2985
+ key: "revisions.paragraphPropertiesChanged"
2986
+ },
2987
+ sectionPropertiesChanged: {
2988
+ shape: "with-text",
2989
+ key: "revisions.sectionPropertiesChanged"
2990
+ },
2991
+ tablePropertiesChanged: {
2992
+ shape: "label-only",
2993
+ key: "revisions.tablePropertiesChanged"
2994
+ },
2995
+ tablePropertyExceptionsChanged: {
2996
+ shape: "label-only",
2997
+ key: "revisions.tablePropertyExceptionsChanged"
2998
+ },
2999
+ rowPropertiesChanged: {
3000
+ shape: "label-only",
3001
+ key: "revisions.rowPropertiesChanged"
3002
+ },
3003
+ cellPropertiesChanged: {
3004
+ shape: "label-only",
3005
+ key: "revisions.cellPropertiesChanged"
3006
+ }
3007
+ }, v = o(() => {
3008
+ let e = _[p.change.type];
3009
+ return e ? {
3010
+ shape: e.shape,
3011
+ label: i(e.key)
3012
+ } : null;
3013
+ });
3014
+ function y() {
2989
3015
  let e = /* @__PURE__ */ new Set([p.change.revisionId]);
2990
3016
  p.change.type === "replacement" && p.change.insertionRevisionId != null && e.add(p.change.insertionRevisionId);
2991
3017
  for (let t of p.change.coalescedRevisionIds ?? []) e.add(t);
2992
3018
  return [...e];
2993
3019
  }
2994
- function v() {
2995
- for (let e of _()) m("accept-by-id", e);
3020
+ function x() {
3021
+ for (let e of y()) m("accept-by-id", e);
2996
3022
  }
2997
- function y() {
2998
- for (let e of _()) m("reject-by-id", e);
3023
+ function S() {
3024
+ for (let e of y()) m("reject-by-id", e);
2999
3025
  }
3000
3026
  return (t, n) => (b(), l("div", {
3001
3027
  class: g(["tc-card", { "tc-card--expanded": e.expanded }]),
3002
3028
  onClick: n[1] ||= (e) => t.$emit("click"),
3003
3029
  onMousedown: n[2] ||= F(() => {}, ["stop"])
3004
3030
  }, [
3005
- u("div", gr, [
3006
- f(Kn, {
3031
+ u("div", vr, [
3032
+ f(Jn, {
3007
3033
  name: h.value,
3008
3034
  size: 32
3009
3035
  }, null, 8, ["name"]),
3010
- u("div", _r, [u("div", vr, E(h.value), 1), e.change.date ? (b(), l("div", yr, E(O(Hn)(e.change.date)), 1)) : c("", !0)]),
3011
- e.expanded ? (b(), l("div", br, [u("button", {
3036
+ u("div", yr, [u("div", br, E(h.value), 1), e.change.date ? (b(), l("div", xr, E(O(Wn)(e.change.date)), 1)) : c("", !0)]),
3037
+ e.expanded ? (b(), l("div", Sr, [u("button", {
3012
3038
  class: "tc-card__icon-btn",
3013
3039
  title: O(i)("acceptChange"),
3014
- onClick: F(v, ["stop"])
3040
+ onClick: F(x, ["stop"])
3015
3041
  }, [f(r, {
3016
3042
  name: "check",
3017
3043
  size: 20
3018
- })], 8, xr), u("button", {
3044
+ })], 8, Cr), u("button", {
3019
3045
  class: "tc-card__icon-btn",
3020
3046
  title: O(i)("rejectChange"),
3021
- onClick: F(y, ["stop"])
3047
+ onClick: F(S, ["stop"])
3022
3048
  }, [f(r, {
3023
3049
  name: "close",
3024
3050
  size: 20
3025
- })], 8, Sr)])) : c("", !0)
3051
+ })], 8, wr)])) : c("", !0)
3026
3052
  ]),
3027
- u("div", Cr, [e.change.type === "replacement" ? (b(), l(a, { key: 0 }, [
3053
+ u("div", Tr, [e.change.type === "replacement" ? (b(), l(a, { key: 0 }, [
3028
3054
  d(E(O(i)("trackedChanges.replaced")) + " ", 1),
3029
- u("span", wr, "\"" + E(O($)(e.change.deletedText || "")) + "\"", 1),
3055
+ u("span", Er, "\"" + E(O($)(e.change.deletedText || "")) + "\"", 1),
3030
3056
  d(" " + E(O(i)("trackedChanges.with")) + " ", 1),
3031
- u("span", Tr, "\"" + E(O($)(e.change.text)) + "\"", 1)
3032
- ], 64)) : e.change.type === "paragraphMarkInsertion" ? (b(), l(a, { key: 1 }, [d(E(O(i)("revisions.paragraphMarkInserted")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[3] ||= d(": ", -1), u("span", Er, "\"" + 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", Dr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "paragraphPropertiesChanged" ? (b(), l(a, { key: 3 }, [d(E(O(i)("revisions.paragraphPropertiesChanged")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[5] ||= d(": ", -1), u("span", Or, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "runPropertiesChanged" ? (b(), l(a, { key: 4 }, [d(E(O(i)("revisions.runPropertiesChanged")), 1), e.change.text ? (b(), l(a, { key: 0 }, [n[6] ||= d(": ", -1), u("span", kr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Ar, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", jr, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", Mr, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", Nr, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", Pr, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "rowPropertiesChanged" ? (b(), l("span", Fr, E(O(i)("revisions.rowPropertiesChanged")), 1)) : e.change.type === "cellPropertiesChanged" ? (b(), l("span", Ir, E(O(i)("revisions.cellPropertiesChanged")), 1)) : e.change.type === "tablePropertiesChanged" ? (b(), l("span", Lr, E(O(i)("revisions.tablePropertiesChanged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Rr, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", zr, E(O(i)("revisions.tableDeleted")), 1)) : (b(), l(a, { key: 15 }, [d(E(e.change.type === "insertion" ? O(i)("inserted") : O(i)("deleted")) + " ", 1), u("span", { class: g(e.change.type === "insertion" ? "tc-card__inserted" : "tc-card__deleted") }, " \"" + E(O($)(e.change.text)) + "\" ", 3)], 64))]),
3033
- f($n, {
3057
+ u("span", Dr, "\"" + E(O($)(e.change.text)) + "\"", 1)
3058
+ ], 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", Or, "\"" + 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", kr, "\"" + 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", Ar, 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", jr, "\"" + 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", Mr, "\"" + E(O($)(e.change.text)) + "\"", 1)], 64)) : c("", !0)], 64)) : e.change.type === "rowInserted" ? (b(), l("span", Nr, E(O(i)("revisions.rowInserted")), 1)) : e.change.type === "rowDeleted" ? (b(), l("span", Pr, E(O(i)("revisions.rowDeleted")), 1)) : e.change.type === "cellInserted" ? (b(), l("span", Fr, E(O(i)("revisions.cellInserted")), 1)) : e.change.type === "cellDeleted" ? (b(), l("span", Ir, E(O(i)("revisions.cellDeleted")), 1)) : e.change.type === "cellMerged" ? (b(), l("span", Lr, E(O(i)("revisions.cellMerged")), 1)) : e.change.type === "tableInserted" ? (b(), l("span", Rr, E(O(i)("revisions.tableInserted")), 1)) : e.change.type === "tableDeleted" ? (b(), l("span", zr, 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))]),
3059
+ f(tr, {
3034
3060
  replies: e.replies,
3035
3061
  "is-expanded": e.expanded
3036
3062
  }, null, 8, ["replies", "is-expanded"]),
3037
- e.expanded ? (b(), s(rr, {
3063
+ e.expanded ? (b(), s(ar, {
3038
3064
  key: 0,
3039
3065
  onSubmit: n[0] ||= (n) => t.$emit("reply", e.change.revisionId, n)
3040
3066
  })) : c("", !0)
3041
3067
  ], 34));
3042
3068
  }
3043
- }), [["__scopeId", "data-v-c16b1b1e"]]), Vr = ["onKeydown"], Hr = { class: "add-comment-card__actions" }, Ur = ["disabled"], Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3069
+ }), [["__scopeId", "data-v-b19a1fcd"]]), Vr = ["onKeydown"], Hr = { class: "add-comment-card__actions" }, Ur = ["disabled"], Wr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3044
3070
  __name: "AddCommentCard",
3045
3071
  emits: ["submit", "cancel"],
3046
3072
  setup(e, { emit: t }) {
@@ -3187,7 +3213,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3187
3213
  x.value = /* @__PURE__ */ new Map();
3188
3214
  return;
3189
3215
  }
3190
- let r = e.getBoundingClientRect(), i = B(e), a = /* @__PURE__ */ new Map();
3216
+ let r = e.getBoundingClientRect(), i = V(e), a = /* @__PURE__ */ new Map();
3191
3217
  for (let t of e.querySelectorAll(".docx-insertion[data-revision-id]")) {
3192
3218
  let e = t.dataset.revisionId;
3193
3219
  e && !a.has(e) && a.set(e, t);
@@ -3220,10 +3246,10 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3220
3246
  t && l.set(t, e.offsetHeight);
3221
3247
  }
3222
3248
  let d = /* @__PURE__ */ new Map();
3223
- for (let { item: n, y: r } of K({
3249
+ for (let { item: n, y: r } of q({
3224
3250
  items: t,
3225
3251
  anchorPositions: s,
3226
- renderedDomContext: R(e),
3252
+ renderedDomContext: z(e),
3227
3253
  zoom: 1,
3228
3254
  cardHeights: l,
3229
3255
  lastKnown: w
@@ -3237,7 +3263,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3237
3263
  }), L = o(() => {
3238
3264
  let e = f.value;
3239
3265
  if (!e) return "";
3240
- if (e.startsWith("comment-")) return `${z(e.slice(8), ".paged-editor__pages ")} { background-color: rgba(255, 212, 0, 0.35) !important; border-bottom: 2px solid rgba(255, 212, 0, 0.7) !important; }`;
3266
+ if (e.startsWith("comment-")) return `${B(e.slice(8), ".paged-editor__pages ")} { background-color: rgba(255, 212, 0, 0.35) !important; border-bottom: 2px solid rgba(255, 212, 0, 0.7) !important; }`;
3241
3267
  if (e.startsWith("tc-")) {
3242
3268
  let t = e.split("-").at(1) ?? "";
3243
3269
  return `
@@ -3246,7 +3272,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3246
3272
  `;
3247
3273
  }
3248
3274
  return "";
3249
- }), V = o(() => {
3275
+ }), R = o(() => {
3250
3276
  let e = n.pageWidthPx / 2 + qr - 176, t = x.value.size > 0 || h.value.length === 0;
3251
3277
  return {
3252
3278
  position: "absolute",
@@ -3294,13 +3320,13 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3294
3320
  return null;
3295
3321
  }
3296
3322
  let G = null;
3297
- function q() {
3323
+ function K() {
3298
3324
  G && G.removeEventListener("scroll", U), G = W(n.pagesContainer), G && G.addEventListener("scroll", U, { passive: !0 });
3299
3325
  }
3300
3326
  return y(() => {
3301
- A = new ResizeObserver(() => U()), U(), n.pagesContainer && (k = new ResizeObserver(() => U()), k.observe(n.pagesContainer), q());
3327
+ A = new ResizeObserver(() => U()), U(), n.pagesContainer && (k = new ResizeObserver(() => U()), k.observe(n.pagesContainer), K());
3302
3328
  }), j(() => n.pagesContainer, (e) => {
3303
- k?.disconnect(), k = null, e && (k = new ResizeObserver(() => U()), k.observe(e), q());
3329
+ k?.disconnect(), k = null, e && (k = new ResizeObserver(() => U()), k.observe(e), K());
3304
3330
  }), v(() => {
3305
3331
  k?.disconnect(), A?.disconnect(), G && G.removeEventListener("scroll", U);
3306
3332
  }), (t, n) => (b(), l(a, null, [L.value ? (b(), s(T("style"), { key: 0 }, {
@@ -3311,7 +3337,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3311
3337
  ref_key: "rootRef",
3312
3338
  ref: g,
3313
3339
  class: "unified-sidebar",
3314
- style: _(V.value),
3340
+ style: _(R.value),
3315
3341
  onMousedown: m
3316
3342
  }, [u("div", {
3317
3343
  class: "unified-sidebar__inner",
@@ -3325,11 +3351,11 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3325
3351
  key: 0,
3326
3352
  onSubmit: n[0] ||= (e) => t.$emit("add-comment", e),
3327
3353
  onCancel: n[1] ||= (e) => t.$emit("cancel-add-comment")
3328
- })) : e.kind === "comment" && e.comment.done && f.value !== e.id ? (b(), s(hr, {
3354
+ })) : e.kind === "comment" && e.comment.done && f.value !== e.id ? (b(), s(_r, {
3329
3355
  key: 1,
3330
3356
  comment: e.comment,
3331
3357
  onToggleExpand: (t) => p(e.id)
3332
- }, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(pr, {
3358
+ }, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (b(), s(hr, {
3333
3359
  key: 2,
3334
3360
  comment: e.comment,
3335
3361
  replies: e.replies,
@@ -3526,7 +3552,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3526
3552
  return (t, n) => (b(), l("span", ei, [
3527
3553
  u("button", {
3528
3554
  type: "button",
3529
- class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "bullet" }]),
3555
+ class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "bullet" }]),
3530
3556
  disabled: e.disabled,
3531
3557
  title: "Bullet list",
3532
3558
  onClick: n[0] ||= F((e) => t.$emit("bullet-list"), ["prevent"])
@@ -3536,7 +3562,7 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3536
3562
  })], 10, ti),
3537
3563
  u("button", {
3538
3564
  type: "button",
3539
- class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.isInList && e.listState?.type === "numbered" }]),
3565
+ class: g(["docx-list-btns__btn", { "docx-list-btns__btn--active": e.listState?.type === "numbered" }]),
3540
3566
  disabled: e.disabled,
3541
3567
  title: "Numbered list",
3542
3568
  onClick: n[1] ||= F((e) => t.$emit("numbered-list"), ["prevent"])
@@ -3565,6 +3591,6 @@ var Kr = ["data-card-id"], qr = 16, Jr = /*#__PURE__*/ t(/* @__PURE__ */ p({
3565
3591
  })], 8, ii)], 64)) : c("", !0)
3566
3592
  ]));
3567
3593
  }
3568
- }), [["__scopeId", "data-v-82fa229d"]]);
3594
+ }), [["__scopeId", "data-v-7cc21148"]]);
3569
3595
  //#endregion
3570
- export { fe as C, J as D, re as E, pe as S, oe as T, Kt as _, Wr as a, Se as b, pr as c, Bn as d, Pn as f, qt as g, Qt as h, Jr as i, rr as l, $t as m, $r as n, Br as o, Nn as p, Yr as r, hr as s, ai as t, $n as u, Ht as v, le as w, me as x, jt as y };
3596
+ export { me as C, Y as D, ae as E, he as S, ce as T, Jt as _, Wr as a, we as b, hr as c, Hn as d, In as f, Yt as g, en as h, Jr as i, ar as l, tn as m, $r as n, Br as o, Fn as p, Yr as r, _r as s, ai as t, tr as u, Wt as v, de as w, ge as x, Nt as y };