@stll/folio-vue 0.17.2 → 0.18.0

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