@eigenpal/docx-editor-vue 1.3.0 → 1.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/dist/{KeyboardShortcutsDialog-00eb4Ova.js → KeyboardShortcutsDialog-BbuDgglK.js} +14 -4
  2. package/dist/KeyboardShortcutsDialog-Bct8AJ0i.cjs +1 -0
  3. package/dist/{MenuBar-DeogoqFP.js → MenuBar-CbONA9-a.js} +571 -522
  4. package/dist/MenuBar-m0JEaF1X.cjs +4 -0
  5. package/dist/{TablePropertiesDialog-CBTvM4Xy.js → TablePropertiesDialog-D5MIF3cj.js} +1 -1
  6. package/dist/{TablePropertiesDialog-BZLpFAkg.cjs → TablePropertiesDialog-JWT68zEO.cjs} +1 -1
  7. package/dist/components/DocxEditor/types.d.ts +23 -1
  8. package/dist/components/Toolbar/presets.d.ts +12 -33
  9. package/dist/composables/useCommentLifecycle.d.ts +9 -1
  10. package/dist/composables/useCommentManagement.d.ts +24 -1
  11. package/dist/composables/useFormattingActions.d.ts +2 -22
  12. package/dist/composables/useHostCallbacks.d.ts +7 -0
  13. package/dist/composables.cjs +1 -1
  14. package/dist/composables.js +85 -129
  15. package/dist/dialogs.cjs +1 -1
  16. package/dist/dialogs.js +2 -2
  17. package/dist/docx-editor-vue.css +1 -1
  18. package/dist/index.cjs +9 -10
  19. package/dist/index.js +1117 -1281
  20. package/dist/ui.cjs +1 -1
  21. package/dist/ui.js +141 -141
  22. package/dist/useDragAutoScroll-DNMi0p5G.cjs +1 -0
  23. package/dist/useDragAutoScroll-DbxuTWI1.js +493 -0
  24. package/dist/utils/refApiQueries.d.ts +8 -44
  25. package/package.json +4 -4
  26. package/dist/KeyboardShortcutsDialog-EW9K4wuO.cjs +0 -1
  27. package/dist/MenuBar-bU4-4dnA.cjs +0 -4
  28. package/dist/useTableResize-DBpEiuGQ.cjs +0 -1
  29. package/dist/useTableResize-uq2ksRDf.js +0 -587
  30. package/dist/utils/commentFactories.d.ts +0 -7
  31. package/dist/utils/paraTextHelpers.d.ts +0 -29
@@ -1,33 +1,33 @@
1
- import { d as e, p as t } from "./KeyboardShortcutsDialog-00eb4Ova.js";
1
+ import { d as e, p as t } from "./KeyboardShortcutsDialog-BbuDgglK.js";
2
2
  import { t as n } from "./_plugin-vue_export-helper-B52Kst-M.js";
3
3
  import { t as r } from "./useCommentSidebarItems-BHomCzpj.js";
4
4
  import { Fragment as i, computed as a, createBlock as o, createCommentVNode as s, createElementBlock as c, createElementVNode as l, createTextVNode as u, createVNode as d, defineComponent as f, nextTick as p, normalizeClass as m, normalizeStyle as h, onBeforeUnmount as g, onMounted as _, openBlock as v, reactive as y, ref as b, renderList as x, renderSlot as S, resolveDynamicComponent as C, toDisplayString as w, unref as T, vModelSelect as E, vModelText as D, watch as O, withCtx as k, withDirectives as A, withKeys as j, withModifiers as M } from "vue";
5
5
  import { generateThemeTintShadeMatrix as N, resolveColor as P, resolveColorToHex as F, resolveHighlightColor as I } from "@eigenpal/docx-editor-core/utils";
6
6
  import { redoDepth as L, undoDepth as R } from "prosemirror-history";
7
- import { extractSelectionContext as z } from "@eigenpal/docx-editor-core/prosemirror/plugins/selectionTracker";
8
- import { clearFormatting as B } from "@eigenpal/docx-editor-core/prosemirror/commands/formatting";
9
- import { normalizeFontFamilies as V } from "@eigenpal/docx-editor-core/utils/fontOptions";
10
- import { getTableContext as H } from "@eigenpal/docx-editor-core/prosemirror/extensions/nodes/TableExtension";
11
- import { formatDate as U, getAvatarColor as W, getCommentText as G, getInitials as K, truncateText as q } from "@eigenpal/docx-editor-core/utils/comments";
12
- import { resolveItemPositions as J } from "@eigenpal/docx-editor-core/plugin-api/resolveItemPositions";
13
- import { SIDEBAR_DOCUMENT_SHIFT as ee } from "@eigenpal/docx-editor-core/utils/sidebarConstants";
7
+ import { extractSelectionContext as ee } from "@eigenpal/docx-editor-core/prosemirror/plugins/selectionTracker";
8
+ import { clearFormatting as z } from "@eigenpal/docx-editor-core/prosemirror/commands/formatting";
9
+ import { normalizeFontFamilies as B } from "@eigenpal/docx-editor-core/utils/fontOptions";
10
+ import { getTableContext as V } from "@eigenpal/docx-editor-core/prosemirror/extensions/nodes/TableExtension";
11
+ import { formatDate as H, getAvatarColor as U, getCommentText as W, getInitials as G, truncateText as K } from "@eigenpal/docx-editor-core/utils/comments";
12
+ import { resolveItemPositions as q } from "@eigenpal/docx-editor-core/plugin-api/resolveItemPositions";
13
+ import { SIDEBAR_DOCUMENT_SHIFT as J } from "@eigenpal/docx-editor-core/utils/sidebarConstants";
14
14
  import { pixelsToTwips as te, twipsToPixels as Y } from "@eigenpal/docx-editor-core/utils/units";
15
15
  //#region src/components/ui/ColorPicker.vue?vue&type=script&setup=true&lang.ts
16
- var X = [
16
+ var ne = [
17
17
  "disabled",
18
18
  "title",
19
19
  "aria-label"
20
- ], ne = [
20
+ ], re = [
21
21
  "disabled",
22
22
  "title",
23
23
  "aria-label",
24
24
  "aria-expanded"
25
- ], Z = [
25
+ ], X = [
26
26
  "disabled",
27
27
  "title",
28
28
  "aria-label",
29
29
  "aria-expanded"
30
- ], re = { class: "docx-color-picker__button-stack" }, ie = ["aria-label"], ae = {
30
+ ], ie = { class: "docx-color-picker__button-stack" }, Z = ["aria-label"], ae = {
31
31
  key: 0,
32
32
  class: "docx-color-picker__auto-icon docx-color-picker__auto-icon--none"
33
33
  }, oe = {
@@ -123,10 +123,10 @@ var X = [
123
123
  function k(e, t) {
124
124
  return e ? (typeof e == "string" ? e.replace(/^#/, "").toUpperCase() : F(e, o.theme)) === t.toUpperCase() : !1;
125
125
  }
126
- let L = b(!1), R = b(""), z = b(null), B = b(null), V = b(o.defaultColor ?? (o.mode === "highlight" ? "FFFF00" : o.mode === "border" ? { rgb: "000000" } : { rgb: "FF0000" })), H = a(() => N(o.theme?.colorScheme ?? null)), U = a(() => H.value.flatMap((e, t) => e.map((e, n) => ({
126
+ let L = b(!1), R = b(""), ee = b(null), z = b(null), B = b(o.defaultColor ?? (o.mode === "highlight" ? "FFFF00" : o.mode === "border" ? { rgb: "000000" } : { rgb: "FF0000" })), V = a(() => N(o.theme?.colorScheme ?? null)), H = a(() => V.value.flatMap((e, t) => e.map((e, n) => ({
127
127
  ...e,
128
128
  key: `${t}-${n}`
129
- })))), W = a(() => S(o.value)), G = a(() => S(V.value)), K = a(() => o.mode === "text" ? p("formattingBar.fontColor") : o.mode === "highlight" ? p("formattingBar.highlightColor") : p("table.borderColor")), q = a(() => o.icon ?? (o.mode === "text" ? "format_color_text" : o.mode === "highlight" ? "ink_highlighter" : "border_color"));
129
+ })))), U = a(() => S(o.value)), W = a(() => S(B.value)), G = a(() => o.mode === "text" ? p("formattingBar.fontColor") : o.mode === "highlight" ? p("formattingBar.highlightColor") : p("table.borderColor")), K = a(() => o.icon ?? (o.mode === "text" ? "format_color_text" : o.mode === "highlight" ? "ink_highlighter" : "border_color"));
130
130
  O(() => [
131
131
  o.value,
132
132
  o.mode,
@@ -135,24 +135,24 @@ var X = [
135
135
  let e = S(o.value).replace(/^#/, "");
136
136
  /^[0-9A-Fa-f]{6}$/.test(e) && (R.value = e.toUpperCase());
137
137
  }, { immediate: !0 });
138
- let J = b({});
139
- function ee() {
140
- let e = z.value;
138
+ let q = b({});
139
+ function J() {
140
+ let e = ee.value;
141
141
  if (!e) return;
142
142
  let t = e.getBoundingClientRect();
143
- J.value = {
143
+ q.value = {
144
144
  top: `${t.bottom + 4}px`,
145
145
  left: `${t.left}px`
146
146
  };
147
147
  }
148
148
  function te() {
149
- o.disabled || (L.value || ee(), L.value = !L.value);
149
+ o.disabled || (L.value || J(), L.value = !L.value);
150
150
  }
151
151
  function Y(e, t = !0) {
152
- t && (V.value = e), f("change", e), L.value = !1;
152
+ t && (B.value = e), f("change", e), L.value = !1;
153
153
  }
154
154
  function _e() {
155
- o.disabled || f("change", V.value);
155
+ o.disabled || f("change", B.value);
156
156
  }
157
157
  function ve(e) {
158
158
  if (o.mode === "highlight") {
@@ -181,11 +181,11 @@ var X = [
181
181
  function Se(e) {
182
182
  if (!L.value) return;
183
183
  let t = e.target;
184
- z.value?.contains(t) || B.value?.contains(t) || (L.value = !1);
184
+ ee.value?.contains(t) || z.value?.contains(t) || (L.value = !1);
185
185
  }
186
186
  return _(() => document.addEventListener("mousedown", Se)), g(() => document.removeEventListener("mousedown", Se)), (e, r) => (v(), c("div", {
187
187
  ref_key: "containerRef",
188
- ref: z,
188
+ ref: ee,
189
189
  class: m(["docx-color-picker", n.className]),
190
190
  style: h(n.style)
191
191
  }, [n.splitButton ? (v(), c("div", {
@@ -195,22 +195,22 @@ var X = [
195
195
  type: "button",
196
196
  class: "docx-color-picker__apply",
197
197
  disabled: n.disabled,
198
- title: n.title ?? K.value,
199
- "aria-label": n.title ?? K.value,
198
+ title: n.title ?? G.value,
199
+ "aria-label": n.title ?? G.value,
200
200
  onMousedown: r[0] ||= M(() => {}, ["prevent"]),
201
201
  onClick: _e
202
202
  }, [d(t, {
203
- name: q.value,
203
+ name: K.value,
204
204
  size: 18
205
205
  }, null, 8, ["name"]), l("span", {
206
- class: m(["docx-color-picker__bar", { "is-light": G.value === "transparent" || E(G.value) }]),
207
- style: h({ background: G.value === "transparent" ? "#fff" : G.value })
208
- }, null, 6)], 40, X), l("button", {
206
+ class: m(["docx-color-picker__bar", { "is-light": W.value === "transparent" || E(W.value) }]),
207
+ style: h({ background: W.value === "transparent" ? "#fff" : W.value })
208
+ }, null, 6)], 40, ne), l("button", {
209
209
  type: "button",
210
210
  class: m(["docx-color-picker__arrow", { "is-open": L.value }]),
211
211
  disabled: n.disabled,
212
- title: n.title ?? K.value,
213
- "aria-label": n.title ?? K.value,
212
+ title: n.title ?? G.value,
213
+ "aria-label": n.title ?? G.value,
214
214
  "aria-haspopup": "true",
215
215
  "aria-expanded": L.value,
216
216
  onMousedown: r[1] ||= M(() => {}, ["prevent"]),
@@ -218,34 +218,34 @@ var X = [
218
218
  }, [d(t, {
219
219
  name: "arrow_drop_down",
220
220
  size: 18
221
- })], 42, ne)], 2)) : (v(), c("button", {
221
+ })], 42, re)], 2)) : (v(), c("button", {
222
222
  key: 1,
223
223
  type: "button",
224
224
  class: m(["docx-color-picker__button", { "is-open": L.value }]),
225
225
  disabled: n.disabled,
226
- title: n.title ?? K.value,
227
- "aria-label": n.title ?? K.value,
226
+ title: n.title ?? G.value,
227
+ "aria-label": n.title ?? G.value,
228
228
  "aria-haspopup": "true",
229
229
  "aria-expanded": L.value,
230
230
  onMousedown: r[2] ||= M(() => {}, ["prevent"]),
231
231
  onClick: te
232
- }, [l("span", re, [d(t, {
233
- name: q.value,
232
+ }, [l("span", ie, [d(t, {
233
+ name: K.value,
234
234
  size: 18
235
235
  }, null, 8, ["name"]), l("span", {
236
- class: m(["docx-color-picker__bar", { "is-light": W.value === "transparent" || E(W.value) }]),
237
- style: h({ background: W.value === "transparent" ? "#fff" : W.value })
236
+ class: m(["docx-color-picker__bar", { "is-light": U.value === "transparent" || E(U.value) }]),
237
+ style: h({ background: U.value === "transparent" ? "#fff" : U.value })
238
238
  }, null, 6)]), d(t, {
239
239
  name: "arrow_drop_down",
240
240
  size: 14
241
- })], 42, Z)), L.value && !n.disabled ? (v(), c("div", {
241
+ })], 42, X)), L.value && !n.disabled ? (v(), c("div", {
242
242
  key: 2,
243
243
  ref_key: "panelRef",
244
- ref: B,
244
+ ref: z,
245
245
  class: "docx-color-picker__panel",
246
- style: h(J.value),
246
+ style: h(q.value),
247
247
  role: "dialog",
248
- "aria-label": T(p)("colorPicker.ariaLabel", { type: K.value }),
248
+ "aria-label": T(p)("colorPicker.ariaLabel", { type: G.value }),
249
249
  onMousedown: xe
250
250
  }, [
251
251
  l("button", {
@@ -256,7 +256,7 @@ var X = [
256
256
  }, [n.mode === "highlight" ? (v(), c("span", ae, [...r[10] ||= [l("span", { class: "docx-color-picker__auto-slash" }, null, -1)]])) : (v(), c("span", oe)), u(" " + w(n.autoLabel ?? (n.mode === "highlight" ? T(p)("colorPicker.noColor") : T(p)("colorPicker.automatic"))), 1)], 32),
257
257
  r[12] ||= l("div", { class: "docx-color-picker__divider" }, null, -1),
258
258
  l("div", se, w(T(p)("colorPicker.themeColors")), 1),
259
- l("div", ce, [(v(!0), c(i, null, x(U.value, (e) => (v(), c("button", {
259
+ l("div", ce, [(v(!0), c(i, null, x(H.value, (e) => (v(), c("button", {
260
260
  key: e.key,
261
261
  type: "button",
262
262
  class: m(["docx-color-picker__cell", { "is-selected": k(n.value, e.hex) }]),
@@ -303,7 +303,7 @@ var X = [
303
303
  onClick: be
304
304
  }, w(T(p)("common.apply")), 41, ge)
305
305
  ])
306
- ], 44, ie)) : s("", !0)], 6));
306
+ ], 44, Z)) : s("", !0)], 6));
307
307
  }
308
308
  }), [["__scopeId", "data-v-2cbf59ab"]]), ve = 4, Q = /* @__PURE__ */ n(/* @__PURE__ */ f({
309
309
  __name: "Popover",
@@ -379,73 +379,73 @@ var X = [
379
379
  __name: "EditingModeDropdown",
380
380
  props: { modelValue: {} },
381
381
  emits: ["update:modelValue"],
382
- setup(e, { emit: n }) {
383
- let r = e, u = n, f = [
382
+ setup(n, { emit: r }) {
383
+ let { t: u } = e(), f = n, p = r, h = [
384
384
  {
385
385
  value: "editing",
386
- label: "Editing",
386
+ labelKey: "editor.editing",
387
387
  icon: "edit_note",
388
- desc: "Edit document directly"
388
+ descKey: "editor.editingDescription"
389
389
  },
390
390
  {
391
391
  value: "suggesting",
392
- label: "Suggesting",
392
+ labelKey: "editor.suggesting",
393
393
  icon: "rate_review",
394
- desc: "Edits become suggestions"
394
+ descKey: "editor.suggestingDescription"
395
395
  },
396
396
  {
397
397
  value: "viewing",
398
- label: "Viewing",
398
+ labelKey: "editor.viewing",
399
399
  icon: "visibility",
400
- desc: "Read or print final document"
400
+ descKey: "editor.viewingDescription"
401
401
  }
402
- ], p = b(!1), h = b(!1), y = a(() => f.find((e) => e.value === r.modelValue) ?? f[0]);
403
- function S(e) {
404
- u("update:modelValue", e), p.value = !1;
402
+ ], y = b(!1), S = b(!1), C = a(() => h.find((e) => e.value === f.modelValue) ?? h[0]);
403
+ function E(e) {
404
+ p("update:modelValue", e), y.value = !1;
405
405
  }
406
- let C = null;
407
- function T(e) {
408
- h.value = e.matches;
406
+ let D = null;
407
+ function O(e) {
408
+ S.value = e.matches;
409
409
  }
410
410
  return _(() => {
411
- C = window.matchMedia("(max-width: 1400px)"), h.value = C.matches, C.addEventListener("change", T);
412
- }), g(() => C?.removeEventListener("change", T)), (n, r) => (v(), o(Q, {
413
- open: p.value,
411
+ D = window.matchMedia("(max-width: 1400px)"), S.value = D.matches, D.addEventListener("change", O);
412
+ }), g(() => D?.removeEventListener("change", O)), (e, r) => (v(), o(Q, {
413
+ open: y.value,
414
414
  placement: "bottom-right",
415
- "onUpdate:open": r[0] ||= (e) => p.value = e,
416
- onClose: r[1] ||= (e) => p.value = !1
415
+ "onUpdate:open": r[0] ||= (e) => y.value = e,
416
+ onClose: r[1] ||= (e) => y.value = !1
417
417
  }, {
418
418
  trigger: k(({ toggle: e }) => [l("button", {
419
419
  type: "button",
420
420
  class: m(["editing-mode__trigger", {
421
- "editing-mode__trigger--open": p.value,
422
- "editing-mode__trigger--compact": h.value
421
+ "editing-mode__trigger--open": y.value,
422
+ "editing-mode__trigger--compact": S.value
423
423
  }]),
424
- title: `${y.value.label} (Ctrl+Shift+E)`,
424
+ title: `${T(u)(C.value.labelKey)} (Ctrl+Shift+E)`,
425
425
  onClick: M(e, ["prevent"])
426
426
  }, [
427
427
  d(t, {
428
- name: y.value.icon,
428
+ name: C.value.icon,
429
429
  size: 18
430
430
  }, null, 8, ["name"]),
431
- h.value ? s("", !0) : (v(), c("span", be, w(y.value.label), 1)),
431
+ S.value ? s("", !0) : (v(), c("span", be, w(T(u)(C.value.labelKey)), 1)),
432
432
  d(t, {
433
433
  name: "arrow_drop_down",
434
434
  size: 16
435
435
  })
436
436
  ], 10, ye)]),
437
- panel: k(() => [l("div", xe, [(v(), c(i, null, x(f, (n) => l("button", {
438
- key: n.value,
437
+ panel: k(() => [l("div", xe, [(v(), c(i, null, x(h, (e) => l("button", {
438
+ key: e.value,
439
439
  type: "button",
440
440
  class: "editing-mode__option",
441
- onClick: M((e) => S(n.value), ["prevent"])
441
+ onClick: M((t) => E(e.value), ["prevent"])
442
442
  }, [
443
443
  d(t, {
444
- name: n.icon,
444
+ name: e.icon,
445
445
  size: 20
446
446
  }, null, 8, ["name"]),
447
- l("span", Ce, [l("span", we, w(n.label), 1), l("span", Te, w(n.desc), 1)]),
448
- n.value === e.modelValue ? (v(), o(t, {
447
+ l("span", Ce, [l("span", we, w(T(u)(e.labelKey)), 1), l("span", Te, w(T(u)(e.descKey)), 1)]),
448
+ e.value === n.modelValue ? (v(), o(t, {
449
449
  key: 0,
450
450
  name: "check",
451
451
  size: 18,
@@ -455,7 +455,7 @@ var X = [
455
455
  _: 1
456
456
  }, 8, ["open"]));
457
457
  }
458
- }), [["__scopeId", "data-v-5d5c5f86"]]), De = [
458
+ }), [["__scopeId", "data-v-e7645f58"]]), De = [
459
459
  "disabled",
460
460
  "aria-label",
461
461
  "title",
@@ -518,50 +518,55 @@ var X = [
518
518
  disabled: { type: Boolean }
519
519
  },
520
520
  emits: ["change"],
521
- setup(e) {
522
- let t = e, n = [
521
+ setup(t) {
522
+ let n = t, { t: r } = e(), i = [
523
523
  {
524
524
  value: "inline",
525
- label: "In line",
525
+ labelKey: "imageWrap.inline",
526
526
  iconName: "format_image_left"
527
527
  },
528
528
  {
529
529
  value: "wrapRight",
530
- label: "Float left",
530
+ labelKey: "imageWrap.floatLeft",
531
531
  iconName: "format_image_right"
532
532
  },
533
533
  {
534
534
  value: "wrapLeft",
535
- label: "Float right",
535
+ labelKey: "imageWrap.floatRight",
536
536
  iconName: "format_image_left"
537
537
  },
538
538
  {
539
539
  value: "topAndBottom",
540
- label: "Top & bottom",
540
+ labelKey: "imageWrap.topAndBottom",
541
541
  iconName: "horizontal_rule"
542
542
  },
543
543
  {
544
544
  value: "behind",
545
- label: "Behind text",
545
+ labelKey: "imageWrap.behindText",
546
546
  iconName: "flip_to_back"
547
547
  },
548
548
  {
549
549
  value: "inFront",
550
- label: "In front of text",
550
+ labelKey: "imageWrap.inFrontOfText",
551
551
  iconName: "flip_to_front"
552
552
  }
553
- ], r = a(() => {
554
- let e = t.imageContext;
553
+ ], s = a(() => i.map((e) => ({
554
+ value: e.value,
555
+ label: r(e.labelKey),
556
+ iconName: e.iconName
557
+ }))), c = a(() => {
558
+ let e = n.imageContext;
555
559
  return e.displayMode === "float" && e.cssFloat === "left" ? "wrapRight" : e.displayMode === "float" && e.cssFloat === "right" ? "wrapLeft" : e.wrapType;
556
- }), i = a(() => n.find((e) => e.value === r.value) ?? n[0]);
557
- return (t, a) => (v(), o(Ae, {
558
- options: n,
559
- "active-value": r.value,
560
- "trigger-icon": i.value.iconName,
561
- "tooltip-content": `Wrap: ${i.value.label}`,
562
- disabled: e.disabled,
563
- onSelect: a[0] ||= (e) => t.$emit("change", e)
560
+ }), l = a(() => s.value.find((e) => e.value === c.value) ?? s.value[0]);
561
+ return (e, n) => (v(), o(Ae, {
562
+ options: s.value,
563
+ "active-value": c.value,
564
+ "trigger-icon": l.value.iconName,
565
+ "tooltip-content": T(r)("imageWrap.tooltipPrefix", { label: l.value.label }),
566
+ disabled: t.disabled,
567
+ onSelect: n[0] ||= (t) => e.$emit("change", t)
564
568
  }, null, 8, [
569
+ "options",
565
570
  "active-value",
566
571
  "trigger-icon",
567
572
  "tooltip-content",
@@ -572,36 +577,44 @@ var X = [
572
577
  __name: "ImageTransformDropdown",
573
578
  props: { disabled: { type: Boolean } },
574
579
  emits: ["transform"],
575
- setup(e) {
576
- let t = [
580
+ setup(t) {
581
+ let { t: n } = e(), r = [
577
582
  {
578
583
  value: "rotateCW",
579
- label: "Rotate clockwise",
584
+ labelKey: "imageTransform.rotateClockwise",
580
585
  iconName: "rotate_right"
581
586
  },
582
587
  {
583
588
  value: "rotateCCW",
584
- label: "Rotate counter-clockwise",
589
+ labelKey: "imageTransform.rotateCounterClockwise",
585
590
  iconName: "rotate_left"
586
591
  },
587
592
  {
588
593
  value: "flipH",
589
- label: "Flip horizontal",
594
+ labelKey: "imageTransform.flipHorizontal",
590
595
  iconName: "swap_horiz"
591
596
  },
592
597
  {
593
598
  value: "flipV",
594
- label: "Flip vertical",
599
+ labelKey: "imageTransform.flipVertical",
595
600
  iconName: "swap_vert"
596
601
  }
597
- ];
598
- return (n, r) => (v(), o(Ae, {
599
- options: t,
602
+ ], i = a(() => r.map((e) => ({
603
+ value: e.value,
604
+ label: n(e.labelKey),
605
+ iconName: e.iconName
606
+ })));
607
+ return (e, r) => (v(), o(Ae, {
608
+ options: i.value,
600
609
  "trigger-icon": "rotate_right",
601
- "tooltip-content": "Rotate / flip",
602
- disabled: e.disabled,
603
- onSelect: r[0] ||= (e) => n.$emit("transform", e)
604
- }, null, 8, ["disabled"]));
610
+ "tooltip-content": T(n)("imageTransform.tooltip"),
611
+ disabled: t.disabled,
612
+ onSelect: r[0] ||= (t) => e.$emit("transform", t)
613
+ }, null, 8, [
614
+ "options",
615
+ "tooltip-content",
616
+ "disabled"
617
+ ]));
605
618
  }
606
619
  }), Ne = [
607
620
  {
@@ -683,11 +696,13 @@ var X = [
683
696
  {
684
697
  id: "Normal",
685
698
  label: "Normal",
699
+ nameKey: "styles.normalText",
686
700
  previewStyle: { fontSize: "13px" }
687
701
  },
688
702
  {
689
703
  id: "Title",
690
704
  label: "Title",
705
+ nameKey: "styles.title",
691
706
  previewStyle: {
692
707
  fontSize: "20px",
693
708
  fontWeight: "bold"
@@ -696,6 +711,7 @@ var X = [
696
711
  {
697
712
  id: "Subtitle",
698
713
  label: "Subtitle",
714
+ nameKey: "styles.subtitle",
699
715
  previewStyle: {
700
716
  fontSize: "15px",
701
717
  color: "#6b7280"
@@ -704,6 +720,7 @@ var X = [
704
720
  {
705
721
  id: "Heading1",
706
722
  label: "Heading 1",
723
+ nameKey: "styles.heading1",
707
724
  previewStyle: {
708
725
  fontSize: "18px",
709
726
  fontWeight: "bold",
@@ -713,6 +730,7 @@ var X = [
713
730
  {
714
731
  id: "Heading2",
715
732
  label: "Heading 2",
733
+ nameKey: "styles.heading2",
716
734
  previewStyle: {
717
735
  fontSize: "16px",
718
736
  fontWeight: "bold",
@@ -722,6 +740,7 @@ var X = [
722
740
  {
723
741
  id: "Heading3",
724
742
  label: "Heading 3",
743
+ nameKey: "styles.heading3",
725
744
  previewStyle: {
726
745
  fontSize: "14px",
727
746
  fontWeight: "bold",
@@ -731,6 +750,7 @@ var X = [
731
750
  ], Ie = [
732
751
  {
733
752
  label: "Single",
753
+ labelKey: "lineSpacing.single",
734
754
  value: 240
735
755
  },
736
756
  {
@@ -743,6 +763,7 @@ var X = [
743
763
  },
744
764
  {
745
765
  label: "Double",
766
+ labelKey: "lineSpacing.double",
746
767
  value: 480
747
768
  }
748
769
  ], Le = [
@@ -809,10 +830,22 @@ function Re(e) {
809
830
  var ze = {
810
831
  key: 0,
811
832
  class: "basic-toolbar"
812
- }, Be = ["disabled"], Ve = ["disabled"], He = ["disabled"], Ue = ["disabled"], We = ["onMousedown"], Ge = ["onMousedown"], Ke = {
833
+ }, Be = [
834
+ "title",
835
+ "aria-label",
836
+ "disabled"
837
+ ], Ve = [
838
+ "title",
839
+ "aria-label",
840
+ "disabled"
841
+ ], He = ["disabled", "title"], Ue = ["title"], We = ["disabled", "title"], Ge = ["onMousedown"], Ke = ["title"], qe = ["onMousedown"], Je = ["title"], Ye = {
813
842
  key: 0,
814
843
  class: "toolbar-dropdown__group-label"
815
- }, qe = ["onMousedown"], Je = ["onMousedown"], Ye = ["disabled"], Xe = ["onMousedown"], Ze = /* @__PURE__ */ n(/* @__PURE__ */ f({
844
+ }, Xe = ["onMousedown"], Ze = ["title"], Qe = ["title"], $e = ["title"], et = ["onMousedown"], tt = ["title", "aria-label"], nt = ["title", "aria-label"], rt = ["title", "aria-label"], it = ["title", "aria-label"], at = ["title", "aria-label"], ot = ["title", "aria-label"], st = ["title", "aria-label"], ct = ["title"], lt = ["title", "aria-label"], ut = ["title", "aria-label"], dt = [
845
+ "title",
846
+ "aria-label",
847
+ "disabled"
848
+ ], ft = ["title", "aria-label"], pt = ["title"], mt = ["onMousedown"], ht = ["title", "aria-label"], gt = ["title", "aria-label"], _t = ["title", "aria-label"], vt = /* @__PURE__ */ n(/* @__PURE__ */ f({
816
849
  __name: "Toolbar",
817
850
  props: {
818
851
  view: {},
@@ -849,18 +882,18 @@ var ze = {
849
882
  "image-properties",
850
883
  "image-transform"
851
884
  ],
852
- setup(e, { emit: n }) {
853
- let r = e, f = n, p = a(() => r.zoomPercent ?? 100), g = a(() => r.isMinZoom ?? !1), _ = a(() => r.isMaxZoom ?? !1), y = a(() => r.zoomPresets ?? Le), C = a(() => r.showZoomControl ?? !0), E = b(null), D = b(null), O = b(null), k = b(null), A = b(null), j = b(null), { openDropdown: N, dropdownMenuStyle: P, toggleDropdown: F } = Re({
854
- zoom: j,
855
- style: E,
856
- font: D,
857
- size: O,
858
- align: k,
859
- spacing: A
860
- }), I = a(() => {
861
- r.stateTick;
862
- let e = r.view;
863
- return e ? z(e.state) : {
885
+ setup(n, { emit: r }) {
886
+ let f = n, { t: p } = e(), g = r, _ = a(() => f.zoomPercent ?? 100), y = a(() => f.isMinZoom ?? !1), C = a(() => f.isMaxZoom ?? !1), E = a(() => f.zoomPresets ?? Le), D = a(() => f.showZoomControl ?? !0), O = b(null), k = b(null), A = b(null), j = b(null), N = b(null), P = b(null), { openDropdown: F, dropdownMenuStyle: I, toggleDropdown: V } = Re({
887
+ zoom: P,
888
+ style: O,
889
+ font: k,
890
+ size: A,
891
+ align: j,
892
+ spacing: N
893
+ }), H = a(() => {
894
+ f.stateTick;
895
+ let e = f.view;
896
+ return e ? ee(e.state) : {
864
897
  hasSelection: !1,
865
898
  isMultiParagraph: !1,
866
899
  textFormatting: {},
@@ -872,401 +905,417 @@ var ze = {
872
905
  inInsertion: !1,
873
906
  inDeletion: !1
874
907
  };
875
- }), H = a(() => {
876
- let e = I.value.textFormatting.fontFamily;
877
- return e?.ascii || e?.hAnsi || "Arial";
878
908
  }), U = a(() => {
879
- let e = I.value.textFormatting.fontSize;
909
+ let e = H.value.textFormatting.fontFamily;
910
+ return e?.ascii || e?.hAnsi || "Arial";
911
+ }), W = a(() => {
912
+ let e = H.value.textFormatting.fontSize;
880
913
  return e ? e / 2 : 11;
881
- }), W = a(() => I.value.paragraphFormatting.alignment || "left"), G = a(() => {
882
- switch (W.value) {
914
+ }), G = a(() => H.value.paragraphFormatting.alignment || "left"), K = a(() => {
915
+ switch (G.value) {
883
916
  case "center": return "format_align_center";
884
917
  case "right": return "format_align_right";
885
918
  case "both": return "format_align_justify";
886
919
  default: return "format_align_left";
887
920
  }
888
- }), K = a(() => {
889
- let e = I.value.paragraphFormatting.styleId || "Normal";
890
- return Fe.find((t) => t.id === e)?.label || e;
891
921
  }), q = a(() => {
892
- r.stateTick;
893
- let e = r.view;
894
- return e ? R(e.state) > 0 : !1;
922
+ let e = H.value.paragraphFormatting.styleId || "Normal", t = Fe.find((t) => t.id === e);
923
+ return t ? p(t.nameKey) : e;
895
924
  }), J = a(() => {
896
- r.stateTick;
897
- let e = r.view;
925
+ f.stateTick;
926
+ let e = f.view;
927
+ return e ? R(e.state) > 0 : !1;
928
+ }), te = a(() => {
929
+ f.stateTick;
930
+ let e = f.view;
898
931
  return e ? L(e.state) > 0 : !1;
899
- }), ee = a(() => {
900
- let e = I.value, t = e.inList && (e.listLevel ?? 0) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
932
+ }), Y = a(() => {
933
+ let e = H.value, t = e.inList && (e.listLevel ?? 0) > 0, n = (e.paragraphFormatting.indentLeft ?? 0) > 0;
901
934
  return t || n;
902
- }), te = a(() => {
903
- let e = I.value.textFormatting.color?.rgb;
935
+ }), ne = a(() => {
936
+ let e = H.value.textFormatting.color?.rgb;
904
937
  return e ? e.replace(/^#/, "").toUpperCase() : void 0;
905
- }), Y = a(() => {
906
- let e = I.value.textFormatting.highlight;
938
+ }), re = a(() => {
939
+ let e = H.value.textFormatting.highlight;
907
940
  if (!(!e || e === "none")) return e.replace(/^#/, "").toUpperCase();
908
- }), X = a(() => V(r.fontFamilies) ?? Ne), ne = a(() => [
941
+ }), X = a(() => B(f.fontFamilies) ?? Ne), ie = a(() => [
909
942
  {
910
- label: "Sans-serif",
943
+ label: p("font.sansSerif"),
911
944
  fonts: X.value.filter((e) => e.category === "sans-serif")
912
945
  },
913
946
  {
914
- label: "Serif",
947
+ label: p("font.serif"),
915
948
  fonts: X.value.filter((e) => e.category === "serif")
916
949
  },
917
950
  {
918
- label: "Monospace",
951
+ label: p("font.monospace"),
919
952
  fonts: X.value.filter((e) => e.category === "monospace")
920
953
  },
921
954
  {
922
- label: "Other",
955
+ label: p("font.other"),
923
956
  fonts: X.value.filter((e) => !e.category || e.category === "other")
924
957
  }
925
958
  ]);
926
959
  function Z(e, ...t) {
927
- let n = r.view;
960
+ let n = f.view;
928
961
  if (!n) return;
929
- let i = r.getCommands()[e];
930
- if (!i) {
962
+ let r = f.getCommands()[e];
963
+ if (!r) {
931
964
  console.warn("[Toolbar] command not found:", e);
932
965
  return;
933
966
  }
934
- i(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(), N.value = null;
967
+ r(...t)(n.state, (e) => n.dispatch(e), n), n.hasFocus() || n.focus(), F.value = null;
935
968
  }
936
- function re(e) {
969
+ function ae(e) {
937
970
  Z("setFontFamily", e);
938
971
  }
939
- function ie(e) {
972
+ function oe(e) {
940
973
  Z("setFontSize", e * 2);
941
974
  }
942
- function ae() {
943
- let e = U.value;
944
- ie(Pe.find((t) => t > e) || e + 2);
975
+ function se() {
976
+ let e = W.value;
977
+ oe(Pe.find((t) => t > e) || e + 2);
945
978
  }
946
- function oe() {
947
- let e = U.value;
948
- ie([...Pe].reverse().find((t) => t < e) || Math.max(1, e - 2));
979
+ function ce() {
980
+ let e = W.value;
981
+ oe([...Pe].reverse().find((t) => t < e) || Math.max(1, e - 2));
949
982
  }
950
- function se(e) {
983
+ function le(e) {
951
984
  if (typeof e == "object" && e.auto) {
952
985
  Z("clearTextColor");
953
986
  return;
954
987
  }
955
988
  Z("setTextColor", typeof e == "string" ? { rgb: e } : e);
956
989
  }
957
- function ce() {
958
- let e = r.view;
959
- e && (B(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
990
+ function ue() {
991
+ let e = f.view;
992
+ e && (z(e.state, (t) => e.dispatch(t), e), e.hasFocus() || e.focus());
960
993
  }
961
- function le(e) {
994
+ function de(e) {
962
995
  Z("setHighlight", typeof e == "string" ? e : e.rgb ?? "none");
963
996
  }
964
- function ue(e) {
965
- f("apply-style", e), N.value = null;
997
+ function fe(e) {
998
+ g("apply-style", e), F.value = null;
966
999
  }
967
- function de(e) {
1000
+ function pe(e) {
968
1001
  Z("setLineSpacing", e);
969
1002
  }
970
- function fe(e) {
971
- let t = I.value.paragraphFormatting.lineSpacing;
1003
+ function me(e) {
1004
+ let t = H.value.paragraphFormatting.lineSpacing;
972
1005
  return t ? Math.abs(t - e) < 10 : e === 240;
973
1006
  }
974
- return (n, r) => e.view ? (v(), c("div", ze, [
1007
+ return (e, r) => n.view ? (v(), c("div", ze, [
975
1008
  l("button", {
976
- title: "Undo (Ctrl+Z)",
977
- disabled: !q.value,
1009
+ title: T(p)("formattingBar.undoShortcut"),
1010
+ "aria-label": T(p)("formattingBar.undo"),
1011
+ disabled: !J.value,
978
1012
  onMousedown: r[0] ||= M((e) => Z("undo"), ["prevent"])
979
1013
  }, [d(t, { name: "undo" })], 40, Be),
980
1014
  l("button", {
981
- title: "Redo (Ctrl+Y)",
982
- disabled: !J.value,
1015
+ title: T(p)("formattingBar.redoShortcut"),
1016
+ "aria-label": T(p)("formattingBar.redo"),
1017
+ disabled: !te.value,
983
1018
  onMousedown: r[1] ||= M((e) => Z("redo"), ["prevent"])
984
1019
  }, [d(t, { name: "redo" })], 40, Ve),
985
- r[35] ||= l("span", { class: "divider" }, null, -1),
986
- C.value ? (v(), c("div", {
1020
+ r[31] ||= l("span", { class: "divider" }, null, -1),
1021
+ D.value ? (v(), c("div", {
987
1022
  key: 0,
988
1023
  class: "toolbar-dropdown zoom-group",
989
1024
  ref_key: "zoomDropdownRef",
990
- ref: j
1025
+ ref: P
991
1026
  }, [
992
1027
  l("button", {
993
1028
  class: "size-btn",
994
- onMousedown: r[2] ||= M((e) => n.$emit("zoom-out"), ["prevent"]),
995
- disabled: g.value,
996
- title: "Zoom out"
1029
+ onMousedown: r[2] ||= M((t) => e.$emit("zoom-out"), ["prevent"]),
1030
+ disabled: y.value,
1031
+ title: T(p)("zoom.zoomOut")
997
1032
  }, " − ", 40, He),
998
1033
  l("button", {
999
1034
  class: "toolbar-dropdown__trigger zoom-trigger",
1000
- onMousedown: r[3] ||= M((e) => T(F)("zoom"), ["prevent"]),
1001
- title: "Zoom level"
1002
- }, w(p.value) + "% ", 33),
1035
+ onMousedown: r[3] ||= M((e) => T(V)("zoom"), ["prevent"]),
1036
+ title: T(p)("zoom.zoomLevel")
1037
+ }, w(_.value) + "% ", 41, Ue),
1003
1038
  l("button", {
1004
1039
  class: "size-btn",
1005
- onMousedown: r[4] ||= M((e) => n.$emit("zoom-in"), ["prevent"]),
1006
- disabled: _.value,
1007
- title: "Zoom in"
1008
- }, " + ", 40, Ue),
1009
- T(N) === "zoom" ? (v(), c("div", {
1040
+ onMousedown: r[4] ||= M((t) => e.$emit("zoom-in"), ["prevent"]),
1041
+ disabled: C.value,
1042
+ title: T(p)("zoom.zoomIn")
1043
+ }, " + ", 40, We),
1044
+ T(F) === "zoom" ? (v(), c("div", {
1010
1045
  key: 0,
1011
- style: h(T(P)),
1046
+ style: h(T(I)),
1012
1047
  class: "toolbar-dropdown__menu zoom-menu"
1013
- }, [(v(!0), c(i, null, x(y.value, (e) => (v(), c("button", {
1014
- key: e,
1015
- class: m(["toolbar-dropdown__item", { active: p.value === Math.round(e * 100) }]),
1016
- onMousedown: M((t) => n.$emit("zoom-set", e), ["prevent"])
1017
- }, w(Math.round(e * 100)) + "% ", 43, We))), 128))], 4)) : s("", !0)
1048
+ }, [(v(!0), c(i, null, x(E.value, (t) => (v(), c("button", {
1049
+ key: t,
1050
+ class: m(["toolbar-dropdown__item", { active: _.value === Math.round(t * 100) }]),
1051
+ onMousedown: M((n) => e.$emit("zoom-set", t), ["prevent"])
1052
+ }, w(Math.round(t * 100)) + "% ", 43, Ge))), 128))], 4)) : s("", !0)
1018
1053
  ], 512)) : s("", !0),
1019
- r[36] ||= l("span", { class: "divider" }, null, -1),
1054
+ r[32] ||= l("span", { class: "divider" }, null, -1),
1020
1055
  l("div", {
1021
1056
  class: "toolbar-dropdown",
1022
1057
  ref_key: "styleDropdownRef",
1023
- ref: E
1058
+ ref: O
1024
1059
  }, [l("button", {
1025
1060
  class: "toolbar-dropdown__trigger style-trigger",
1026
- onMousedown: r[5] ||= M((e) => T(F)("style"), ["prevent"]),
1027
- title: "Paragraph style"
1028
- }, [u(w(K.value) + " ", 1), d(t, {
1061
+ onMousedown: r[5] ||= M((e) => T(V)("style"), ["prevent"]),
1062
+ title: T(p)("styles.selectAriaLabel")
1063
+ }, [u(w(q.value) + " ", 1), d(t, {
1029
1064
  class: "chevron",
1030
1065
  name: "arrow_drop_down",
1031
1066
  size: 16
1032
- })], 32), T(N) === "style" ? (v(), c("div", {
1067
+ })], 40, Ke), T(F) === "style" ? (v(), c("div", {
1033
1068
  key: 0,
1034
- style: h(T(P)),
1069
+ style: h(T(I)),
1035
1070
  class: "toolbar-dropdown__menu style-menu"
1036
1071
  }, [(v(!0), c(i, null, x(T(Fe), (e) => (v(), c("button", {
1037
1072
  key: e.id,
1038
- class: m(["toolbar-dropdown__item", { active: (I.value.paragraphFormatting.styleId || "Normal") === e.id }]),
1073
+ class: m(["toolbar-dropdown__item", { active: (H.value.paragraphFormatting.styleId || "Normal") === e.id }]),
1039
1074
  style: h(e.previewStyle),
1040
- onMousedown: M((t) => ue(e.id), ["prevent"])
1041
- }, w(e.label), 47, Ge))), 128))], 4)) : s("", !0)], 512),
1042
- r[37] ||= l("span", { class: "divider" }, null, -1),
1075
+ onMousedown: M((t) => fe(e.id), ["prevent"])
1076
+ }, w(T(p)(e.nameKey)), 47, qe))), 128))], 4)) : s("", !0)], 512),
1077
+ r[33] ||= l("span", { class: "divider" }, null, -1),
1043
1078
  l("div", {
1044
1079
  class: "toolbar-dropdown",
1045
1080
  ref_key: "fontDropdownRef",
1046
- ref: D
1081
+ ref: k
1047
1082
  }, [l("button", {
1048
1083
  class: "toolbar-dropdown__trigger font-trigger",
1049
- onMousedown: r[6] ||= M((e) => T(F)("font"), ["prevent"]),
1050
- title: "Font family"
1051
- }, [u(w(H.value) + " ", 1), d(t, {
1084
+ onMousedown: r[6] ||= M((e) => T(V)("font"), ["prevent"]),
1085
+ title: T(p)("font.selectAriaLabel")
1086
+ }, [u(w(U.value) + " ", 1), d(t, {
1052
1087
  class: "chevron",
1053
1088
  name: "arrow_drop_down",
1054
1089
  size: 16
1055
- })], 32), T(N) === "font" ? (v(), c("div", {
1090
+ })], 40, Je), T(F) === "font" ? (v(), c("div", {
1056
1091
  key: 0,
1057
- style: h(T(P)),
1092
+ style: h(T(I)),
1058
1093
  class: "toolbar-dropdown__menu font-menu"
1059
- }, [(v(!0), c(i, null, x(ne.value, (e) => (v(), c(i, { key: e.label }, [e.fonts.length > 0 ? (v(), c("div", Ke, w(e.label), 1)) : s("", !0), (v(!0), c(i, null, x(e.fonts, (e) => (v(), c("button", {
1094
+ }, [(v(!0), c(i, null, x(ie.value, (e) => (v(), c(i, { key: e.label }, [e.fonts.length > 0 ? (v(), c("div", Ye, w(e.label), 1)) : s("", !0), (v(!0), c(i, null, x(e.fonts, (e) => (v(), c("button", {
1060
1095
  key: e.name,
1061
- class: m(["toolbar-dropdown__item", { active: H.value === e.name }]),
1096
+ class: m(["toolbar-dropdown__item", { active: U.value === e.name }]),
1062
1097
  style: h({ fontFamily: e.fontFamily }),
1063
- onMousedown: M((t) => re(e.name), ["prevent"])
1064
- }, w(e.name), 47, qe))), 128))], 64))), 128))], 4)) : s("", !0)], 512),
1098
+ onMousedown: M((t) => ae(e.name), ["prevent"])
1099
+ }, w(e.name), 47, Xe))), 128))], 64))), 128))], 4)) : s("", !0)], 512),
1065
1100
  l("div", {
1066
1101
  class: "toolbar-dropdown font-size-group",
1067
1102
  ref_key: "sizeDropdownRef",
1068
- ref: O
1103
+ ref: A
1069
1104
  }, [
1070
1105
  l("button", {
1071
1106
  class: "size-btn",
1072
- onMousedown: M(oe, ["prevent"]),
1073
- title: "Decrease font size"
1074
- }, " − ", 32),
1107
+ onMousedown: M(ce, ["prevent"]),
1108
+ title: T(p)("fontSize.decrease")
1109
+ }, " − ", 40, Ze),
1075
1110
  l("button", {
1076
1111
  class: "toolbar-dropdown__trigger size-trigger",
1077
- onMousedown: r[7] ||= M((e) => T(F)("size"), ["prevent"]),
1078
- title: "Font size"
1079
- }, w(U.value), 33),
1112
+ onMousedown: r[7] ||= M((e) => T(V)("size"), ["prevent"]),
1113
+ title: T(p)("fontSize.label")
1114
+ }, w(W.value), 41, Qe),
1080
1115
  l("button", {
1081
1116
  class: "size-btn",
1082
- onMousedown: M(ae, ["prevent"]),
1083
- title: "Increase font size"
1084
- }, " + ", 32),
1085
- T(N) === "size" ? (v(), c("div", {
1117
+ onMousedown: M(se, ["prevent"]),
1118
+ title: T(p)("fontSize.increase")
1119
+ }, " + ", 40, $e),
1120
+ T(F) === "size" ? (v(), c("div", {
1086
1121
  key: 0,
1087
- style: h(T(P)),
1122
+ style: h(T(I)),
1088
1123
  class: "toolbar-dropdown__menu size-menu"
1089
1124
  }, [(v(!0), c(i, null, x(T(Pe), (e) => (v(), c("button", {
1090
1125
  key: e,
1091
- class: m(["toolbar-dropdown__item", { active: U.value === e }]),
1092
- onMousedown: M((t) => ie(e), ["prevent"])
1093
- }, w(e), 43, Je))), 128))], 4)) : s("", !0)
1126
+ class: m(["toolbar-dropdown__item", { active: W.value === e }]),
1127
+ onMousedown: M((t) => oe(e), ["prevent"])
1128
+ }, w(e), 43, et))), 128))], 4)) : s("", !0)
1094
1129
  ], 512),
1095
- r[38] ||= l("span", { class: "divider" }, null, -1),
1130
+ r[34] ||= l("span", { class: "divider" }, null, -1),
1096
1131
  l("button", {
1097
- title: "Bold (Ctrl+B)",
1098
- class: m({ active: I.value.textFormatting.bold }),
1132
+ title: T(p)("formattingBar.boldShortcut"),
1133
+ "aria-label": T(p)("formattingBar.bold"),
1134
+ class: m({ active: H.value.textFormatting.bold }),
1099
1135
  onMousedown: r[8] ||= M((e) => Z("toggleBold"), ["prevent"])
1100
- }, [d(t, { name: "format_bold" })], 34),
1136
+ }, [d(t, { name: "format_bold" })], 42, tt),
1101
1137
  l("button", {
1102
- title: "Italic (Ctrl+I)",
1103
- class: m({ active: I.value.textFormatting.italic }),
1138
+ title: T(p)("formattingBar.italicShortcut"),
1139
+ "aria-label": T(p)("formattingBar.italic"),
1140
+ class: m({ active: H.value.textFormatting.italic }),
1104
1141
  onMousedown: r[9] ||= M((e) => Z("toggleItalic"), ["prevent"])
1105
- }, [d(t, { name: "format_italic" })], 34),
1142
+ }, [d(t, { name: "format_italic" })], 42, nt),
1106
1143
  l("button", {
1107
- title: "Underline (Ctrl+U)",
1108
- class: m({ active: !!I.value.textFormatting.underline }),
1144
+ title: T(p)("formattingBar.underlineShortcut"),
1145
+ "aria-label": T(p)("formattingBar.underline"),
1146
+ class: m({ active: !!H.value.textFormatting.underline }),
1109
1147
  onMousedown: r[10] ||= M((e) => Z("toggleUnderline"), ["prevent"])
1110
- }, [d(t, { name: "format_underlined" })], 34),
1148
+ }, [d(t, { name: "format_underlined" })], 42, rt),
1111
1149
  l("button", {
1112
- title: "Strikethrough",
1113
- class: m({ active: I.value.textFormatting.strike }),
1150
+ title: T(p)("formattingBar.strikethrough"),
1151
+ "aria-label": T(p)("formattingBar.strikethrough"),
1152
+ class: m({ active: H.value.textFormatting.strike }),
1114
1153
  onMousedown: r[11] ||= M((e) => Z("toggleStrike"), ["prevent"])
1115
- }, [d(t, { name: "strikethrough_s" })], 34),
1154
+ }, [d(t, { name: "strikethrough_s" })], 42, it),
1116
1155
  d(_e, {
1117
1156
  mode: "text",
1118
- value: te.value,
1119
- theme: e.theme ?? null,
1120
- onChange: se
1157
+ value: ne.value,
1158
+ theme: n.theme ?? null,
1159
+ onChange: le
1121
1160
  }, null, 8, ["value", "theme"]),
1122
1161
  d(_e, {
1123
1162
  mode: "highlight",
1124
- value: Y.value,
1125
- theme: e.theme ?? null,
1126
- onChange: le
1163
+ value: re.value,
1164
+ theme: n.theme ?? null,
1165
+ onChange: de
1127
1166
  }, null, 8, ["value", "theme"]),
1128
1167
  l("button", {
1129
- title: "Insert link (Ctrl+K)",
1130
- onMousedown: r[12] ||= M((e) => n.$emit("insert-link"), ["prevent"])
1131
- }, [d(t, { name: "link" })], 32),
1168
+ title: T(p)("formattingBar.insertLinkShortcut"),
1169
+ "aria-label": T(p)("formattingBar.insertLink"),
1170
+ onMousedown: r[12] ||= M((t) => e.$emit("insert-link"), ["prevent"])
1171
+ }, [d(t, { name: "link" })], 40, at),
1132
1172
  l("button", {
1133
- title: "Superscript (Ctrl+Shift+=)",
1134
- class: m({ active: I.value.textFormatting.vertAlign === "superscript" }),
1173
+ title: T(p)("formattingBar.superscriptShortcut"),
1174
+ "aria-label": T(p)("formattingBar.superscript"),
1175
+ class: m({ active: H.value.textFormatting.vertAlign === "superscript" }),
1135
1176
  onMousedown: r[13] ||= M((e) => Z("toggleSuperscript"), ["prevent"])
1136
- }, [d(t, { name: "superscript" })], 34),
1177
+ }, [d(t, { name: "superscript" })], 42, ot),
1137
1178
  l("button", {
1138
- title: "Subscript (Ctrl+=)",
1139
- class: m({ active: I.value.textFormatting.vertAlign === "subscript" }),
1179
+ title: T(p)("formattingBar.subscriptShortcut"),
1180
+ "aria-label": T(p)("formattingBar.subscript"),
1181
+ class: m({ active: H.value.textFormatting.vertAlign === "subscript" }),
1140
1182
  onMousedown: r[14] ||= M((e) => Z("toggleSubscript"), ["prevent"])
1141
- }, [d(t, { name: "subscript" })], 34),
1142
- r[39] ||= l("span", { class: "divider" }, null, -1),
1183
+ }, [d(t, { name: "subscript" })], 42, st),
1184
+ r[35] ||= l("span", { class: "divider" }, null, -1),
1143
1185
  l("div", {
1144
1186
  class: "toolbar-dropdown",
1145
1187
  ref_key: "alignDropdownRef",
1146
- ref: k
1188
+ ref: j
1147
1189
  }, [l("button", {
1148
1190
  class: "toolbar-dropdown__trigger align-trigger",
1149
- onMousedown: r[15] ||= M((e) => T(F)("align"), ["prevent"]),
1150
- title: "Alignment"
1151
- }, [d(t, { name: G.value }, null, 8, ["name"]), d(t, {
1191
+ onMousedown: r[15] ||= M((e) => T(V)("align"), ["prevent"]),
1192
+ title: T(p)("formattingBar.groups.alignment")
1193
+ }, [d(t, { name: K.value }, null, 8, ["name"]), d(t, {
1152
1194
  class: "chevron",
1153
1195
  name: "arrow_drop_down",
1154
1196
  size: 16
1155
- })], 32), T(N) === "align" ? (v(), c("div", {
1197
+ })], 40, ct), T(F) === "align" ? (v(), c("div", {
1156
1198
  key: 0,
1157
- style: h(T(P)),
1199
+ style: h(T(I)),
1158
1200
  class: "toolbar-dropdown__menu align-menu"
1159
1201
  }, [
1160
1202
  l("button", {
1161
- class: m(["toolbar-dropdown__item dropdown-item--icon", { active: W.value === "left" }]),
1203
+ class: m(["toolbar-dropdown__item dropdown-item--icon", { active: G.value === "left" }]),
1162
1204
  onMousedown: r[16] ||= M((e) => {
1163
- Z("alignLeft"), N.value = null;
1205
+ Z("alignLeft"), F.value = null;
1164
1206
  }, ["prevent"])
1165
1207
  }, [d(t, {
1166
1208
  name: "format_align_left",
1167
1209
  size: 18
1168
- }), r[30] ||= u(" Left (Ctrl+L) ", -1)], 34),
1210
+ }), u(" " + w(T(p)("alignment.alignLeft")) + " (" + w(T(p)("alignment.alignLeftShortcut")) + ") ", 1)], 34),
1169
1211
  l("button", {
1170
- class: m(["toolbar-dropdown__item dropdown-item--icon", { active: W.value === "center" }]),
1212
+ class: m(["toolbar-dropdown__item dropdown-item--icon", { active: G.value === "center" }]),
1171
1213
  onMousedown: r[17] ||= M((e) => {
1172
- Z("alignCenter"), N.value = null;
1214
+ Z("alignCenter"), F.value = null;
1173
1215
  }, ["prevent"])
1174
1216
  }, [d(t, {
1175
1217
  name: "format_align_center",
1176
1218
  size: 18
1177
- }), r[31] ||= u(" Center (Ctrl+E) ", -1)], 34),
1219
+ }), u(" " + w(T(p)("alignment.center")) + " (" + w(T(p)("alignment.centerShortcut")) + ") ", 1)], 34),
1178
1220
  l("button", {
1179
- class: m(["toolbar-dropdown__item dropdown-item--icon", { active: W.value === "right" }]),
1221
+ class: m(["toolbar-dropdown__item dropdown-item--icon", { active: G.value === "right" }]),
1180
1222
  onMousedown: r[18] ||= M((e) => {
1181
- Z("alignRight"), N.value = null;
1223
+ Z("alignRight"), F.value = null;
1182
1224
  }, ["prevent"])
1183
1225
  }, [d(t, {
1184
1226
  name: "format_align_right",
1185
1227
  size: 18
1186
- }), r[32] ||= u(" Right (Ctrl+R) ", -1)], 34),
1228
+ }), u(" " + w(T(p)("alignment.alignRight")) + " (" + w(T(p)("alignment.alignRightShortcut")) + ") ", 1)], 34),
1187
1229
  l("button", {
1188
- class: m(["toolbar-dropdown__item dropdown-item--icon", { active: W.value === "both" }]),
1230
+ class: m(["toolbar-dropdown__item dropdown-item--icon", { active: G.value === "both" }]),
1189
1231
  onMousedown: r[19] ||= M((e) => {
1190
- Z("alignJustify"), N.value = null;
1232
+ Z("alignJustify"), F.value = null;
1191
1233
  }, ["prevent"])
1192
1234
  }, [d(t, {
1193
1235
  name: "format_align_justify",
1194
1236
  size: 18
1195
- }), r[33] ||= u(" Justify (Ctrl+J) ", -1)], 34)
1237
+ }), u(" " + w(T(p)("alignment.justify")) + " (" + w(T(p)("alignment.justifyShortcut")) + ") ", 1)], 34)
1196
1238
  ], 4)) : s("", !0)], 512),
1197
1239
  l("button", {
1198
- title: "Bullet List",
1199
- class: m({ active: I.value.inList && I.value.listType === "bullet" }),
1240
+ title: T(p)("lists.bulletList"),
1241
+ "aria-label": T(p)("lists.bulletList"),
1242
+ class: m({ active: H.value.inList && H.value.listType === "bullet" }),
1200
1243
  onMousedown: r[20] ||= M((e) => Z("toggleBulletList"), ["prevent"])
1201
- }, [d(t, { name: "format_list_bulleted" })], 34),
1244
+ }, [d(t, { name: "format_list_bulleted" })], 42, lt),
1202
1245
  l("button", {
1203
- title: "Numbered List",
1204
- class: m({ active: I.value.inList && I.value.listType === "numbered" }),
1246
+ title: T(p)("lists.numberedList"),
1247
+ "aria-label": T(p)("lists.numberedList"),
1248
+ class: m({ active: H.value.inList && H.value.listType === "numbered" }),
1205
1249
  onMousedown: r[21] ||= M((e) => Z("toggleNumberedList"), ["prevent"])
1206
- }, [d(t, { name: "format_list_numbered" })], 34),
1250
+ }, [d(t, { name: "format_list_numbered" })], 42, ut),
1207
1251
  l("button", {
1208
- title: "Decrease Indent (Shift+Tab)",
1209
- disabled: !ee.value,
1252
+ title: T(p)("lists.decreaseIndent"),
1253
+ "aria-label": T(p)("lists.decreaseIndent"),
1254
+ disabled: !Y.value,
1210
1255
  onMousedown: r[22] ||= M((e) => Z("outdent"), ["prevent"])
1211
- }, [d(t, { name: "format_indent_decrease" })], 40, Ye),
1256
+ }, [d(t, { name: "format_indent_decrease" })], 40, dt),
1212
1257
  l("button", {
1213
- title: "Increase Indent (Tab)",
1258
+ title: T(p)("lists.increaseIndent"),
1259
+ "aria-label": T(p)("lists.increaseIndent"),
1214
1260
  onMousedown: r[23] ||= M((e) => Z("indent"), ["prevent"])
1215
- }, [d(t, { name: "format_indent_increase" })], 32),
1261
+ }, [d(t, { name: "format_indent_increase" })], 40, ft),
1216
1262
  l("div", {
1217
1263
  class: "toolbar-dropdown",
1218
1264
  ref_key: "spacingDropdownRef",
1219
- ref: A
1265
+ ref: N
1220
1266
  }, [l("button", {
1221
1267
  class: "toolbar-dropdown__trigger",
1222
- onMousedown: r[24] ||= M((e) => T(F)("spacing"), ["prevent"]),
1223
- title: "Line spacing"
1268
+ onMousedown: r[24] ||= M((e) => T(V)("spacing"), ["prevent"]),
1269
+ title: T(p)("lineSpacing.label")
1224
1270
  }, [d(t, { name: "format_line_spacing" }), d(t, {
1225
1271
  class: "chevron",
1226
1272
  name: "arrow_drop_down",
1227
1273
  size: 16
1228
- })], 32), T(N) === "spacing" ? (v(), c("div", {
1274
+ })], 40, pt), T(F) === "spacing" ? (v(), c("div", {
1229
1275
  key: 0,
1230
- style: h(T(P)),
1276
+ style: h(T(I)),
1231
1277
  class: "toolbar-dropdown__menu"
1232
1278
  }, [(v(!0), c(i, null, x(T(Ie), (e) => (v(), c("button", {
1233
1279
  key: e.value,
1234
- class: m(["toolbar-dropdown__item", { active: fe(e.value) }]),
1235
- onMousedown: M((t) => de(e.value), ["prevent"])
1236
- }, w(e.label), 43, Xe))), 128))], 4)) : s("", !0)], 512),
1280
+ class: m(["toolbar-dropdown__item", { active: me(e.value) }]),
1281
+ onMousedown: M((t) => pe(e.value), ["prevent"])
1282
+ }, w(e.labelKey ? T(p)(e.labelKey) : e.label), 43, mt))), 128))], 4)) : s("", !0)], 512),
1237
1283
  l("button", {
1238
- title: "Clear formatting",
1239
- onMousedown: M(ce, ["prevent"])
1240
- }, [d(t, { name: "format_clear" })], 32),
1241
- r[40] ||= l("span", { class: "divider" }, null, -1),
1284
+ title: T(p)("formattingBar.clearFormatting"),
1285
+ "aria-label": T(p)("formattingBar.clearFormatting"),
1286
+ onMousedown: M(ue, ["prevent"])
1287
+ }, [d(t, { name: "format_clear" })], 40, ht),
1288
+ r[36] ||= l("span", { class: "divider" }, null, -1),
1242
1289
  l("button", {
1243
- title: "Comments & Changes",
1244
- class: m({ active: e.commentsSidebarOpen }),
1245
- onMousedown: r[25] ||= M((e) => n.$emit("toggle-sidebar"), ["prevent"])
1246
- }, [d(t, { name: "comment" })], 34),
1247
- e.imageContext ? (v(), c(i, { key: 1 }, [
1248
- r[34] ||= l("span", { class: "divider" }, null, -1),
1290
+ title: T(p)("formattingBar.commentsAndChanges"),
1291
+ "aria-label": T(p)("formattingBar.commentsAndChanges"),
1292
+ class: m({ active: n.commentsSidebarOpen }),
1293
+ onMousedown: r[25] ||= M((t) => e.$emit("toggle-sidebar"), ["prevent"])
1294
+ }, [d(t, { name: "comment" })], 42, gt),
1295
+ n.imageContext ? (v(), c(i, { key: 1 }, [
1296
+ r[30] ||= l("span", { class: "divider" }, null, -1),
1249
1297
  d(je, {
1250
- "image-context": e.imageContext,
1251
- onChange: r[26] ||= (e) => n.$emit("image-wrap-type", e)
1298
+ "image-context": n.imageContext,
1299
+ onChange: r[26] ||= (t) => e.$emit("image-wrap-type", t)
1252
1300
  }, null, 8, ["image-context"]),
1253
- d(Me, { onTransform: r[27] ||= (e) => n.$emit("image-transform", e) }),
1301
+ d(Me, { onTransform: r[27] ||= (t) => e.$emit("image-transform", t) }),
1254
1302
  l("button", {
1255
- title: "Image properties",
1256
- onMousedown: r[28] ||= M((e) => n.$emit("image-properties"), ["prevent"])
1257
- }, [d(t, { name: "tune" })], 32)
1303
+ title: T(p)("formattingBar.imagePropertiesShortcut"),
1304
+ "aria-label": T(p)("formattingBar.imageProperties"),
1305
+ onMousedown: r[28] ||= M((t) => e.$emit("image-properties"), ["prevent"])
1306
+ }, [d(t, { name: "tune" })], 40, _t)
1258
1307
  ], 64)) : s("", !0),
1259
- S(n.$slots, "table-context", {}, void 0, !0),
1260
- r[41] ||= l("span", { class: "divider" }, null, -1),
1261
- e.editorMode ? (v(), o(Ee, {
1308
+ S(e.$slots, "table-context", {}, void 0, !0),
1309
+ r[37] ||= l("span", { class: "divider" }, null, -1),
1310
+ n.editorMode ? (v(), o(Ee, {
1262
1311
  key: 2,
1263
- "model-value": e.editorMode,
1264
- "onUpdate:modelValue": r[29] ||= (e) => n.$emit("mode-change", e)
1312
+ "model-value": n.editorMode,
1313
+ "onUpdate:modelValue": r[29] ||= (t) => e.$emit("mode-change", t)
1265
1314
  }, null, 8, ["model-value"])) : s("", !0),
1266
- S(n.$slots, "toolbar-extra", {}, void 0, !0)
1315
+ S(e.$slots, "toolbar-extra", {}, void 0, !0)
1267
1316
  ])) : s("", !0);
1268
1317
  }
1269
- }), [["__scopeId", "data-v-25c08b74"]]), Qe = /* @__PURE__ */ f({
1318
+ }), [["__scopeId", "data-v-9c584674"]]), yt = /* @__PURE__ */ f({
1270
1319
  __name: "TableCellFillPicker",
1271
1320
  props: {
1272
1321
  disabled: { type: Boolean },
@@ -1296,7 +1345,7 @@ var ze = {
1296
1345
  "auto-label"
1297
1346
  ]));
1298
1347
  }
1299
- }), $e = ["disabled", "onClick"], et = { class: "docx-tbp__panel" }, tt = ["title", "onClick"], nt = /* @__PURE__ */ n(/* @__PURE__ */ f({
1348
+ }), bt = ["disabled", "onClick"], xt = { class: "docx-tbp__panel" }, St = ["title", "onClick"], Ct = /* @__PURE__ */ n(/* @__PURE__ */ f({
1300
1349
  __name: "TableBorderPicker",
1301
1350
  props: { disabled: { type: Boolean } },
1302
1351
  emits: ["change"],
@@ -1370,8 +1419,8 @@ var ze = {
1370
1419
  }, [d(t, {
1371
1420
  name: "border_all",
1372
1421
  size: 20
1373
- })], 8, $e)]),
1374
- panel: k(() => [l("div", et, [(v(), c(i, null, x(s, (e) => l("button", {
1422
+ })], 8, bt)]),
1423
+ panel: k(() => [l("div", xt, [(v(), c(i, null, x(s, (e) => l("button", {
1375
1424
  key: e.value,
1376
1425
  type: "button",
1377
1426
  class: "docx-tbp__option",
@@ -1380,11 +1429,11 @@ var ze = {
1380
1429
  }, [d(t, {
1381
1430
  name: e.icon,
1382
1431
  size: 20
1383
- }, null, 8, ["name"])], 8, tt)), 64))])]),
1432
+ }, null, 8, ["name"])], 8, St)), 64))])]),
1384
1433
  _: 1
1385
1434
  }, 8, ["open"]));
1386
1435
  }
1387
- }), [["__scopeId", "data-v-51d7b6e0"]]), rt = /* @__PURE__ */ f({
1436
+ }), [["__scopeId", "data-v-51d7b6e0"]]), wt = /* @__PURE__ */ f({
1388
1437
  __name: "TableBorderColorPicker",
1389
1438
  props: {
1390
1439
  disabled: { type: Boolean },
@@ -1411,7 +1460,7 @@ var ze = {
1411
1460
  "title"
1412
1461
  ]));
1413
1462
  }
1414
- }), it = ["disabled", "onClick"], at = { class: "docx-tbwidth__panel" }, ot = ["onClick"], st = { class: "docx-tbwidth__label" }, ct = /* @__PURE__ */ n(/* @__PURE__ */ f({
1463
+ }), Tt = ["disabled", "onClick"], Et = { class: "docx-tbwidth__panel" }, Dt = ["onClick"], Ot = { class: "docx-tbwidth__label" }, kt = /* @__PURE__ */ n(/* @__PURE__ */ f({
1415
1464
  __name: "TableBorderWidthPicker",
1416
1465
  props: { disabled: { type: Boolean } },
1417
1466
  emits: ["change"],
@@ -1475,8 +1524,8 @@ var ze = {
1475
1524
  }, [d(t, {
1476
1525
  name: "line_weight",
1477
1526
  size: 20
1478
- })], 8, it)]),
1479
- panel: k(() => [l("div", at, [(v(), c(i, null, x(s, (e) => l("button", {
1527
+ })], 8, Tt)]),
1528
+ panel: k(() => [l("div", Et, [(v(), c(i, null, x(s, (e) => l("button", {
1480
1529
  key: e.eighths,
1481
1530
  type: "button",
1482
1531
  class: "docx-tbwidth__option",
@@ -1484,27 +1533,27 @@ var ze = {
1484
1533
  }, [l("span", {
1485
1534
  class: "docx-tbwidth__preview",
1486
1535
  style: h({ borderTopWidth: e.previewPx + "px" })
1487
- }, null, 4), l("span", st, w(e.label), 1)], 8, ot)), 64))])]),
1536
+ }, null, 4), l("span", Ot, w(e.label), 1)], 8, Dt)), 64))])]),
1488
1537
  _: 1
1489
1538
  }, 8, ["open"]));
1490
1539
  }
1491
- }), [["__scopeId", "data-v-c134095d"]]), lt = [
1540
+ }), [["__scopeId", "data-v-c134095d"]]), At = [
1492
1541
  "disabled",
1493
1542
  "title",
1494
1543
  "onClick"
1495
- ], ut = ["aria-label"], dt = ["disabled"], ft = ["disabled"], pt = ["disabled"], mt = ["disabled"], ht = { class: "docx-tmore__section-label" }, gt = { class: "docx-tmore__icon-row" }, _t = ["title"], vt = ["title"], yt = ["title"], bt = { class: "docx-tmore__section-label" }, xt = { class: "docx-tmore__icon-row" }, St = ["title"], Ct = ["title"], wt = ["title"], Tt = { class: "docx-tmore__grow" }, Et = {
1544
+ ], jt = ["aria-label"], Mt = ["disabled"], Nt = ["disabled"], Pt = ["disabled"], Ft = ["disabled"], It = { class: "docx-tmore__section-label" }, Lt = { class: "docx-tmore__icon-row" }, Rt = ["title"], zt = ["title"], Bt = ["title"], Vt = { class: "docx-tmore__section-label" }, Ht = { class: "docx-tmore__icon-row" }, Ut = ["title"], Wt = ["title"], Gt = ["title"], Kt = { class: "docx-tmore__grow" }, qt = {
1496
1545
  key: 0,
1497
1546
  class: "docx-tmore__sub"
1498
- }, Dt = { class: "docx-tmore__margin-grid" }, Ot = { class: "docx-tmore__field-label" }, kt = ["onUpdate:modelValue"], At = { class: "docx-tmore__grow" }, jt = {
1547
+ }, Jt = { class: "docx-tmore__margin-grid" }, Yt = { class: "docx-tmore__field-label" }, Xt = ["onUpdate:modelValue"], Zt = { class: "docx-tmore__grow" }, Qt = {
1499
1548
  key: 1,
1500
1549
  class: "docx-tmore__sub"
1501
- }, Mt = { class: "docx-tmore__row-field" }, Nt = { class: "docx-tmore__field-label" }, Pt = { value: "auto" }, Ft = { value: "atLeast" }, It = { value: "exact" }, Lt = {
1550
+ }, $t = { class: "docx-tmore__row-field" }, en = { class: "docx-tmore__field-label" }, tn = { value: "auto" }, nn = { value: "atLeast" }, rn = { value: "exact" }, an = {
1502
1551
  key: 0,
1503
1552
  class: "docx-tmore__row-field"
1504
- }, Rt = { class: "docx-tmore__field-label" }, zt = { class: "docx-tmore__grow" }, Bt = {
1553
+ }, on = { class: "docx-tmore__field-label" }, sn = { class: "docx-tmore__grow" }, cn = {
1505
1554
  key: 2,
1506
1555
  class: "docx-tmore__sub docx-tmore__sub--list"
1507
- }, Vt = /* @__PURE__ */ n(/* @__PURE__ */ f({
1556
+ }, ln = /* @__PURE__ */ n(/* @__PURE__ */ f({
1508
1557
  __name: "TableMoreDropdown",
1509
1558
  props: {
1510
1559
  disabled: {
@@ -1582,7 +1631,7 @@ var ze = {
1582
1631
  }, [d(t, {
1583
1632
  name: "more_vert",
1584
1633
  size: 20
1585
- })], 10, lt)]),
1634
+ })], 10, At)]),
1586
1635
  panel: k(() => [l("div", {
1587
1636
  class: "docx-tmore__panel",
1588
1637
  role: "menu",
@@ -1629,7 +1678,7 @@ var ze = {
1629
1678
  }, [d(t, {
1630
1679
  name: "call_merge",
1631
1680
  size: 18
1632
- }), l("span", null, w(T(f)("table.mergeCells")), 1)], 8, dt),
1681
+ }), l("span", null, w(T(f)("table.mergeCells")), 1)], 8, Mt),
1633
1682
  l("button", {
1634
1683
  type: "button",
1635
1684
  class: "docx-tmore__item",
@@ -1638,7 +1687,7 @@ var ze = {
1638
1687
  }, [d(t, {
1639
1688
  name: "call_split",
1640
1689
  size: 18
1641
- }), l("span", null, w(T(f)("table.splitCell")), 1)], 8, ft),
1690
+ }), l("span", null, w(T(f)("table.splitCell")), 1)], 8, Nt),
1642
1691
  r[39] ||= l("div", { class: "docx-tmore__separator" }, null, -1),
1643
1692
  l("button", {
1644
1693
  type: "button",
@@ -1648,7 +1697,7 @@ var ze = {
1648
1697
  }, [d(t, {
1649
1698
  name: "delete",
1650
1699
  size: 18
1651
- }), l("span", null, w(T(f)("table.deleteRow")), 1)], 8, pt),
1700
+ }), l("span", null, w(T(f)("table.deleteRow")), 1)], 8, Pt),
1652
1701
  l("button", {
1653
1702
  type: "button",
1654
1703
  class: "docx-tmore__item docx-tmore__item--danger",
@@ -1657,7 +1706,7 @@ var ze = {
1657
1706
  }, [d(t, {
1658
1707
  name: "delete",
1659
1708
  size: 18
1660
- }), l("span", null, w(T(f)("table.deleteColumn")), 1)], 8, mt),
1709
+ }), l("span", null, w(T(f)("table.deleteColumn")), 1)], 8, Ft),
1661
1710
  l("button", {
1662
1711
  type: "button",
1663
1712
  class: "docx-tmore__item docx-tmore__item--danger",
@@ -1667,8 +1716,8 @@ var ze = {
1667
1716
  size: 18
1668
1717
  }), l("span", null, w(T(f)("table.deleteTable")), 1)]),
1669
1718
  r[40] ||= l("div", { class: "docx-tmore__separator" }, null, -1),
1670
- l("div", ht, w(T(f)("tableAdvanced.verticalAlignment")), 1),
1671
- l("div", gt, [
1719
+ l("div", It, w(T(f)("tableAdvanced.verticalAlignment")), 1),
1720
+ l("div", Lt, [
1672
1721
  l("button", {
1673
1722
  type: "button",
1674
1723
  class: "docx-tmore__icon-btn",
@@ -1678,7 +1727,7 @@ var ze = {
1678
1727
  }, [d(t, {
1679
1728
  name: "vertical_align_top",
1680
1729
  size: 16
1681
- })], 40, _t),
1730
+ })], 40, Rt),
1682
1731
  l("button", {
1683
1732
  type: "button",
1684
1733
  class: "docx-tmore__icon-btn",
@@ -1688,7 +1737,7 @@ var ze = {
1688
1737
  }, [d(t, {
1689
1738
  name: "vertical_align_center",
1690
1739
  size: 16
1691
- })], 40, vt),
1740
+ })], 40, zt),
1692
1741
  l("button", {
1693
1742
  type: "button",
1694
1743
  class: "docx-tmore__icon-btn",
@@ -1698,11 +1747,11 @@ var ze = {
1698
1747
  }, [d(t, {
1699
1748
  name: "vertical_align_bottom",
1700
1749
  size: 16
1701
- })], 40, yt)
1750
+ })], 40, Bt)
1702
1751
  ]),
1703
1752
  r[41] ||= l("div", { class: "docx-tmore__separator" }, null, -1),
1704
- l("div", bt, w(T(f)("tableAdvanced.tableAlignment")), 1),
1705
- l("div", xt, [
1753
+ l("div", Vt, w(T(f)("tableAdvanced.tableAlignment")), 1),
1754
+ l("div", Ht, [
1706
1755
  l("button", {
1707
1756
  type: "button",
1708
1757
  class: m(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": n.currentJustification === "left" }]),
@@ -1712,7 +1761,7 @@ var ze = {
1712
1761
  }, [d(t, {
1713
1762
  name: "format_align_left",
1714
1763
  size: 16
1715
- })], 42, St),
1764
+ })], 42, Ut),
1716
1765
  l("button", {
1717
1766
  type: "button",
1718
1767
  class: m(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": n.currentJustification === "center" }]),
@@ -1722,7 +1771,7 @@ var ze = {
1722
1771
  }, [d(t, {
1723
1772
  name: "format_align_center",
1724
1773
  size: 16
1725
- })], 42, Ct),
1774
+ })], 42, Wt),
1726
1775
  l("button", {
1727
1776
  type: "button",
1728
1777
  class: m(["docx-tmore__icon-btn", { "docx-tmore__icon-btn--active": n.currentJustification === "right" }]),
@@ -1732,7 +1781,7 @@ var ze = {
1732
1781
  }, [d(t, {
1733
1782
  name: "format_align_right",
1734
1783
  size: 16
1735
- })], 42, wt)
1784
+ })], 42, Gt)
1736
1785
  ]),
1737
1786
  r[42] ||= l("div", { class: "docx-tmore__separator" }, null, -1),
1738
1787
  l("button", {
@@ -1744,13 +1793,13 @@ var ze = {
1744
1793
  name: "padding",
1745
1794
  size: 18
1746
1795
  }),
1747
- l("span", Tt, w(T(f)("tableAdvanced.cellMargins")), 1),
1796
+ l("span", Kt, w(T(f)("tableAdvanced.cellMargins")), 1),
1748
1797
  d(t, {
1749
1798
  name: h.value ? "expand_less" : "expand_more",
1750
1799
  size: 18
1751
1800
  }, null, 8, ["name"])
1752
1801
  ]),
1753
- h.value ? (v(), c("div", Et, [l("div", Dt, [(v(), c(i, null, x([
1802
+ h.value ? (v(), c("div", qt, [l("div", Jt, [(v(), c(i, null, x([
1754
1803
  "top",
1755
1804
  "bottom",
1756
1805
  "left",
@@ -1759,14 +1808,14 @@ var ze = {
1759
1808
  key: e,
1760
1809
  class: "docx-tmore__field"
1761
1810
  }, [
1762
- l("span", Ot, w(e), 1),
1811
+ l("span", Yt, w(e), 1),
1763
1812
  A(l("input", {
1764
1813
  type: "number",
1765
1814
  min: "0",
1766
1815
  step: "20",
1767
1816
  "onUpdate:modelValue": (t) => S[e] = t,
1768
1817
  class: "docx-tmore__input"
1769
- }, null, 8, kt), [[
1818
+ }, null, 8, Xt), [[
1770
1819
  D,
1771
1820
  S[e],
1772
1821
  void 0,
@@ -1787,23 +1836,23 @@ var ze = {
1787
1836
  name: "height",
1788
1837
  size: 18
1789
1838
  }),
1790
- l("span", At, w(T(f)("tableAdvanced.rowHeight")), 1),
1839
+ l("span", Zt, w(T(f)("tableAdvanced.rowHeight")), 1),
1791
1840
  d(t, {
1792
1841
  name: g.value ? "expand_less" : "expand_more",
1793
1842
  size: 18
1794
1843
  }, null, 8, ["name"])
1795
1844
  ]),
1796
- g.value ? (v(), c("div", jt, [
1797
- l("label", Mt, [l("span", Nt, w(T(f)("tableAdvanced.rule")), 1), A(l("select", {
1845
+ g.value ? (v(), c("div", Qt, [
1846
+ l("label", $t, [l("span", en, w(T(f)("tableAdvanced.rule")), 1), A(l("select", {
1798
1847
  "onUpdate:modelValue": r[23] ||= (e) => j.value = e,
1799
1848
  class: "docx-tmore__select"
1800
1849
  }, [
1801
- l("option", Pt, w(T(f)("tableAdvanced.heightRules.auto")), 1),
1802
- l("option", Ft, w(T(f)("tableAdvanced.heightRules.atLeast")), 1),
1803
- l("option", It, w(T(f)("tableAdvanced.heightRules.exact")), 1)
1850
+ l("option", tn, w(T(f)("tableAdvanced.heightRules.auto")), 1),
1851
+ l("option", nn, w(T(f)("tableAdvanced.heightRules.atLeast")), 1),
1852
+ l("option", rn, w(T(f)("tableAdvanced.heightRules.exact")), 1)
1804
1853
  ], 512), [[E, j.value]])]),
1805
- j.value === "auto" ? s("", !0) : (v(), c("label", Lt, [
1806
- l("span", Rt, w(T(f)("tableAdvanced.height")), 1),
1854
+ j.value === "auto" ? s("", !0) : (v(), c("label", an, [
1855
+ l("span", on, w(T(f)("tableAdvanced.height")), 1),
1807
1856
  A(l("input", {
1808
1857
  type: "number",
1809
1858
  min: "0",
@@ -1833,13 +1882,13 @@ var ze = {
1833
1882
  name: "text_rotation_none",
1834
1883
  size: 18
1835
1884
  }),
1836
- l("span", zt, w(T(f)("tableAdvanced.textDirection")), 1),
1885
+ l("span", sn, w(T(f)("tableAdvanced.textDirection")), 1),
1837
1886
  d(t, {
1838
1887
  name: _.value ? "expand_less" : "expand_more",
1839
1888
  size: 18
1840
1889
  }, null, 8, ["name"])
1841
1890
  ]),
1842
- _.value ? (v(), c("div", Bt, [
1891
+ _.value ? (v(), c("div", cn, [
1843
1892
  l("button", {
1844
1893
  type: "button",
1845
1894
  class: "docx-tmore__sub-item",
@@ -1898,11 +1947,11 @@ var ze = {
1898
1947
  name: "settings",
1899
1948
  size: 18
1900
1949
  }), l("span", null, w(T(f)("tableAdvanced.tableProperties")), 1)])
1901
- ], 8, ut)]),
1950
+ ], 8, jt)]),
1902
1951
  _: 1
1903
1952
  }, 8, ["open"]));
1904
1953
  }
1905
- }), [["__scopeId", "data-v-dbab3895"]]), Ht = /* @__PURE__ */ n(/* @__PURE__ */ f({
1954
+ }), [["__scopeId", "data-v-dbab3895"]]), un = /* @__PURE__ */ n(/* @__PURE__ */ f({
1906
1955
  __name: "TableToolbar",
1907
1956
  props: {
1908
1957
  view: {},
@@ -1914,7 +1963,7 @@ var ze = {
1914
1963
  let t = e, n = a(() => {
1915
1964
  t.stateTick;
1916
1965
  let e = t.view;
1917
- return e ? H(e.state) : null;
1966
+ return e ? V(e.state) : null;
1918
1967
  }), r = a(() => !!n.value?.isInTable), o = a(() => {
1919
1968
  t.stateTick;
1920
1969
  let e = t.view;
@@ -1936,7 +1985,7 @@ var ze = {
1936
1985
  O([() => t.view, () => t.stateTick], () => {
1937
1986
  let e = t.view;
1938
1987
  if (!e) return;
1939
- let n = H(e.state), r = n.cellBorderColor;
1988
+ let n = V(e.state), r = n.cellBorderColor;
1940
1989
  !r || !n.isInTable || typeof r == "object" && "rgb" in r && typeof r.rgb == "string" && (h.color = { rgb: r.rgb });
1941
1990
  }, { immediate: !0 });
1942
1991
  function g(e, ...n) {
@@ -2009,17 +2058,17 @@ var ze = {
2009
2058
  }
2010
2059
  return (t, n) => r.value ? (v(), c(i, { key: 0 }, [
2011
2060
  n[0] ||= l("span", { class: "divider" }, null, -1),
2012
- d(nt, { onChange: _ }),
2013
- d(rt, {
2061
+ d(Ct, { onChange: _ }),
2062
+ d(wt, {
2014
2063
  theme: e.theme ?? null,
2015
2064
  onChange: y
2016
2065
  }, null, 8, ["theme"]),
2017
- d(ct, { onChange: b }),
2018
- d(Qe, {
2066
+ d(kt, { onChange: b }),
2067
+ d(yt, {
2019
2068
  theme: e.theme ?? null,
2020
2069
  onChange: x
2021
2070
  }, null, 8, ["theme"]),
2022
- d(Vt, {
2071
+ d(ln, {
2023
2072
  "can-split": o.value,
2024
2073
  "can-merge": u.value,
2025
2074
  "row-count": f.value,
@@ -2038,18 +2087,18 @@ var ze = {
2038
2087
  ])
2039
2088
  ], 64)) : s("", !0);
2040
2089
  }
2041
- }), [["__scopeId", "data-v-56725acf"]]), Ut = /* @__PURE__ */ f({
2090
+ }), [["__scopeId", "data-v-56725acf"]]), dn = /* @__PURE__ */ f({
2042
2091
  __name: "Avatar",
2043
2092
  props: {
2044
2093
  name: { default: "U" },
2045
2094
  size: { default: 32 }
2046
2095
  },
2047
2096
  setup(e) {
2048
- let t = e, n = a(() => K(t.name || "U")), r = a(() => ({
2097
+ let t = e, n = a(() => G(t.name || "U")), r = a(() => ({
2049
2098
  width: t.size + "px",
2050
2099
  height: t.size + "px",
2051
2100
  borderRadius: "50%",
2052
- backgroundColor: W(t.name || "U"),
2101
+ backgroundColor: U(t.name || "U"),
2053
2102
  color: "#fff",
2054
2103
  display: "flex",
2055
2104
  alignItems: "center",
@@ -2063,13 +2112,13 @@ var ze = {
2063
2112
  style: h(r.value)
2064
2113
  }, w(n.value), 5));
2065
2114
  }
2066
- }), Wt = {
2115
+ }), fn = {
2067
2116
  key: 0,
2068
2117
  class: "reply-thread"
2069
- }, Gt = {
2118
+ }, pn = {
2070
2119
  key: 0,
2071
2120
  class: "reply-thread__more"
2072
- }, Kt = { class: "reply-thread__header" }, qt = { class: "reply-thread__author-block" }, Jt = { class: "reply-thread__author" }, Yt = { class: "reply-thread__date" }, Xt = /* @__PURE__ */ n(/* @__PURE__ */ f({
2121
+ }, mn = { class: "reply-thread__header" }, hn = { class: "reply-thread__author-block" }, gn = { class: "reply-thread__author" }, _n = { class: "reply-thread__date" }, vn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2073
2122
  __name: "ReplyThread",
2074
2123
  props: {
2075
2124
  replies: {},
@@ -2077,15 +2126,15 @@ var ze = {
2077
2126
  },
2078
2127
  setup(e) {
2079
2128
  let t = e, n = a(() => t.isExpanded ? t.replies : t.replies.slice(-1)), r = a(() => t.isExpanded ? 0 : Math.max(0, t.replies.length - 1));
2080
- return (t, a) => e.replies.length > 0 ? (v(), c("div", Wt, [r.value > 0 ? (v(), c("div", Gt, w(r.value) + " " + w(r.value === 1 ? "reply" : "replies"), 1)) : s("", !0), (v(!0), c(i, null, x(n.value, (t) => (v(), c("div", {
2129
+ return (t, a) => e.replies.length > 0 ? (v(), c("div", fn, [r.value > 0 ? (v(), c("div", pn, w(r.value) + " " + w(r.value === 1 ? "reply" : "replies"), 1)) : s("", !0), (v(!0), c(i, null, x(n.value, (t) => (v(), c("div", {
2081
2130
  key: t.id,
2082
2131
  class: m(["reply-thread__item", { "reply-thread__item--expanded": e.isExpanded }])
2083
- }, [l("div", Kt, [d(Ut, {
2132
+ }, [l("div", mn, [d(dn, {
2084
2133
  name: t.author,
2085
2134
  size: 28
2086
- }, null, 8, ["name"]), l("div", qt, [l("div", Jt, w(t.author || "Unknown"), 1), l("div", Yt, w(T(U)(t.date)), 1)])]), l("div", { class: m(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, w(T(G)(t.content)), 3)], 2))), 128))])) : s("", !0);
2135
+ }, null, 8, ["name"]), l("div", hn, [l("div", gn, w(t.author || "Unknown"), 1), l("div", _n, w(T(H)(t.date)), 1)])]), l("div", { class: m(["reply-thread__body", { "reply-thread__body--clamp": !e.isExpanded }]) }, w(T(W)(t.content)), 3)], 2))), 128))])) : s("", !0);
2087
2136
  }
2088
- }), [["__scopeId", "data-v-fc8a461d"]]), Zt = ["onKeydown"], Qt = { class: "reply-input__actions" }, $t = ["disabled"], en = /* @__PURE__ */ n(/* @__PURE__ */ f({
2137
+ }), [["__scopeId", "data-v-fc8a461d"]]), yn = ["onKeydown"], bn = { class: "reply-input__actions" }, xn = ["disabled"], Sn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2089
2138
  __name: "ReplyInput",
2090
2139
  emits: ["submit"],
2091
2140
  setup(e, { emit: t }) {
@@ -2117,14 +2166,14 @@ var ze = {
2117
2166
  j(M(h, ["prevent"]), ["enter"]),
2118
2167
  j(f, ["esc"])
2119
2168
  ]
2120
- }, null, 40, Zt), [[D, o.value]]), l("div", Qt, [l("button", {
2169
+ }, null, 40, yn), [[D, o.value]]), l("div", bn, [l("button", {
2121
2170
  class: "reply-input__cancel",
2122
2171
  onClick: M(f, ["stop"])
2123
2172
  }, "Cancel"), l("button", {
2124
2173
  class: m(["reply-input__submit", { "reply-input__submit--active": u.value }]),
2125
2174
  disabled: !u.value,
2126
2175
  onClick: M(h, ["stop"])
2127
- }, "Reply", 10, $t)])], 64)) : (v(), c("input", {
2176
+ }, "Reply", 10, xn)])], 64)) : (v(), c("input", {
2128
2177
  key: 0,
2129
2178
  readonly: "",
2130
2179
  placeholder: "Reply",
@@ -2133,13 +2182,13 @@ var ze = {
2133
2182
  onClick: M(d, ["stop"])
2134
2183
  }, null, 32))], 32));
2135
2184
  }
2136
- }), [["__scopeId", "data-v-aa3d5b08"]]), tn = ["data-comment-id"], nn = {
2185
+ }), [["__scopeId", "data-v-aa3d5b08"]]), Cn = ["data-comment-id"], wn = {
2137
2186
  key: 0,
2138
2187
  class: "comment-card__resolved"
2139
- }, rn = { class: "comment-card__head" }, an = { class: "comment-card__author-block" }, on = { class: "comment-card__author" }, sn = { class: "comment-card__date" }, cn = {
2188
+ }, Tn = { class: "comment-card__head" }, En = { class: "comment-card__author-block" }, Dn = { class: "comment-card__author" }, On = { class: "comment-card__date" }, kn = {
2140
2189
  key: 0,
2141
2190
  class: "comment-card__actions"
2142
- }, ln = ["title"], un = { class: "comment-card__body" }, dn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2191
+ }, An = ["title"], jn = { class: "comment-card__body" }, Mn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2143
2192
  __name: "CommentCard",
2144
2193
  props: {
2145
2194
  comment: {},
@@ -2164,17 +2213,17 @@ var ze = {
2164
2213
  onClick: r[5] ||= (e) => n.$emit("click"),
2165
2214
  onMousedown: r[6] ||= M(() => {}, ["stop"])
2166
2215
  }, [
2167
- e.comment.done ? (v(), c("div", nn, [d(t, {
2216
+ e.comment.done ? (v(), c("div", wn, [d(t, {
2168
2217
  name: "check",
2169
2218
  size: 12
2170
2219
  }), r[7] ||= l("span", null, "Resolved", -1)])) : s("", !0),
2171
- l("div", rn, [
2172
- d(Ut, {
2220
+ l("div", Tn, [
2221
+ d(dn, {
2173
2222
  name: e.comment.author,
2174
2223
  size: 32
2175
2224
  }, null, 8, ["name"]),
2176
- l("div", an, [l("div", on, w(e.comment.author || "Unknown"), 1), l("div", sn, w(T(U)(e.comment.date)), 1)]),
2177
- e.expanded ? (v(), c("div", cn, [
2225
+ l("div", En, [l("div", Dn, w(e.comment.author || "Unknown"), 1), l("div", On, w(T(H)(e.comment.date)), 1)]),
2226
+ e.expanded ? (v(), c("div", kn, [
2178
2227
  l("button", {
2179
2228
  class: "comment-card__icon-btn",
2180
2229
  title: e.comment.done ? "Reopen" : "Resolve",
@@ -2182,7 +2231,7 @@ var ze = {
2182
2231
  }, [d(t, {
2183
2232
  name: e.comment.done ? "undo" : "check",
2184
2233
  size: 20
2185
- }, null, 8, ["name"])], 8, ln),
2234
+ }, null, 8, ["name"])], 8, An),
2186
2235
  l("button", {
2187
2236
  class: "comment-card__icon-btn",
2188
2237
  title: "More options",
@@ -2202,18 +2251,18 @@ var ze = {
2202
2251
  }, "Delete")], 32)) : s("", !0)
2203
2252
  ])) : s("", !0)
2204
2253
  ]),
2205
- l("div", un, w(T(G)(e.comment.content)), 1),
2206
- d(Xt, {
2254
+ l("div", jn, w(T(W)(e.comment.content)), 1),
2255
+ d(vn, {
2207
2256
  replies: e.replies,
2208
2257
  "is-expanded": e.expanded
2209
2258
  }, null, 8, ["replies", "is-expanded"]),
2210
- e.expanded && !e.comment.done ? (v(), o(en, {
2259
+ e.expanded && !e.comment.done ? (v(), o(Sn, {
2211
2260
  key: 1,
2212
2261
  onSubmit: r[4] ||= (t) => n.$emit("reply", e.comment.id, t)
2213
2262
  })) : s("", !0)
2214
- ], 42, tn));
2263
+ ], 42, Cn));
2215
2264
  }
2216
- }), [["__scopeId", "data-v-b9e94a26"]]), fn = ["data-comment-id"], pn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2265
+ }), [["__scopeId", "data-v-b9e94a26"]]), Nn = ["data-comment-id"], Pn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2217
2266
  __name: "ResolvedCommentMarker",
2218
2267
  props: { comment: {} },
2219
2268
  emits: ["toggle-expand"],
@@ -2227,45 +2276,45 @@ var ze = {
2227
2276
  }, [d(t, {
2228
2277
  name: "chat_bubble_check",
2229
2278
  size: 20
2230
- })], 40, fn));
2279
+ })], 40, Nn));
2231
2280
  }
2232
- }), [["__scopeId", "data-v-c3b210c1"]]), mn = { class: "tc-card__head" }, hn = { class: "tc-card__author-block" }, gn = { class: "tc-card__author" }, _n = {
2281
+ }), [["__scopeId", "data-v-c3b210c1"]]), Fn = { class: "tc-card__head" }, In = { class: "tc-card__author-block" }, Ln = { class: "tc-card__author" }, Rn = {
2233
2282
  key: 0,
2234
2283
  class: "tc-card__date"
2235
- }, vn = {
2284
+ }, zn = {
2236
2285
  key: 0,
2237
2286
  class: "tc-card__actions"
2238
- }, yn = ["title"], bn = ["title"], xn = { class: "tc-card__body" }, Sn = { class: "tc-card__deleted" }, Cn = { class: "tc-card__inserted" }, wn = { class: "tc-card__inserted" }, Tn = { class: "tc-card__deleted" }, En = { class: "tc-card__changed" }, Dn = {
2287
+ }, Bn = ["title"], Vn = ["title"], Hn = { class: "tc-card__body" }, Un = { class: "tc-card__deleted" }, Wn = { class: "tc-card__inserted" }, Gn = { class: "tc-card__inserted" }, Kn = { class: "tc-card__deleted" }, qn = { class: "tc-card__changed" }, Jn = {
2239
2288
  key: 4,
2240
2289
  class: "tc-card__inserted"
2241
- }, On = {
2290
+ }, Yn = {
2242
2291
  key: 5,
2243
2292
  class: "tc-card__deleted"
2244
- }, kn = {
2293
+ }, Xn = {
2245
2294
  key: 6,
2246
2295
  class: "tc-card__inserted"
2247
- }, An = {
2296
+ }, Zn = {
2248
2297
  key: 7,
2249
2298
  class: "tc-card__deleted"
2250
- }, jn = {
2299
+ }, Qn = {
2251
2300
  key: 8,
2252
2301
  class: "tc-card__changed"
2253
- }, Mn = {
2302
+ }, $n = {
2254
2303
  key: 9,
2255
2304
  class: "tc-card__changed"
2256
- }, Nn = {
2305
+ }, er = {
2257
2306
  key: 10,
2258
2307
  class: "tc-card__changed"
2259
- }, Pn = {
2308
+ }, tr = {
2260
2309
  key: 11,
2261
2310
  class: "tc-card__changed"
2262
- }, Fn = {
2311
+ }, nr = {
2263
2312
  key: 12,
2264
2313
  class: "tc-card__inserted"
2265
- }, In = {
2314
+ }, rr = {
2266
2315
  key: 13,
2267
2316
  class: "tc-card__deleted"
2268
- }, Ln = /* @__PURE__ */ n(/* @__PURE__ */ f({
2317
+ }, ir = /* @__PURE__ */ n(/* @__PURE__ */ f({
2269
2318
  __name: "TrackedChangeCard",
2270
2319
  props: {
2271
2320
  change: {},
@@ -2296,41 +2345,41 @@ var ze = {
2296
2345
  onClick: r[1] ||= (t) => e.$emit("click"),
2297
2346
  onMousedown: r[2] ||= M(() => {}, ["stop"])
2298
2347
  }, [
2299
- l("div", mn, [
2300
- d(Ut, {
2348
+ l("div", Fn, [
2349
+ d(dn, {
2301
2350
  name: g.value,
2302
2351
  size: 32
2303
2352
  }, null, 8, ["name"]),
2304
- l("div", hn, [l("div", gn, w(g.value), 1), n.change.date ? (v(), c("div", _n, w(T(U)(n.change.date)), 1)) : s("", !0)]),
2305
- n.expanded ? (v(), c("div", vn, [l("button", {
2353
+ l("div", In, [l("div", Ln, w(g.value), 1), n.change.date ? (v(), c("div", Rn, w(T(H)(n.change.date)), 1)) : s("", !0)]),
2354
+ n.expanded ? (v(), c("div", zn, [l("button", {
2306
2355
  class: "tc-card__icon-btn",
2307
2356
  title: T(f)("common.accept"),
2308
2357
  onClick: M(y, ["stop"])
2309
2358
  }, [d(t, {
2310
2359
  name: "check",
2311
2360
  size: 20
2312
- })], 8, yn), l("button", {
2361
+ })], 8, Bn), l("button", {
2313
2362
  class: "tc-card__icon-btn",
2314
2363
  title: T(f)("common.reject"),
2315
2364
  onClick: M(b, ["stop"])
2316
2365
  }, [d(t, {
2317
2366
  name: "close",
2318
2367
  size: 20
2319
- })], 8, bn)])) : s("", !0)
2368
+ })], 8, Vn)])) : s("", !0)
2320
2369
  ]),
2321
- l("div", xn, [n.change.type === "replacement" ? (v(), c(i, { key: 0 }, [
2370
+ l("div", Hn, [n.change.type === "replacement" ? (v(), c(i, { key: 0 }, [
2322
2371
  u(w(T(f)("trackedChanges.replaced")) + " ", 1),
2323
- l("span", Sn, "\"" + w(T(q)(n.change.deletedText || "")) + "\"", 1),
2372
+ l("span", Un, "\"" + w(T(K)(n.change.deletedText || "")) + "\"", 1),
2324
2373
  u(" " + w(T(f)("trackedChanges.with")) + " ", 1),
2325
- l("span", Cn, "\"" + w(T(q)(n.change.text)) + "\"", 1)
2326
- ], 64)) : n.change.type === "paragraphMarkInsertion" ? (v(), c(i, { key: 1 }, [u(w(T(f)("revisions.paragraphMarkInserted")), 1), n.change.text ? (v(), c(i, { key: 0 }, [r[3] ||= u(": ", -1), l("span", wn, "\"" + w(T(q)(n.change.text)) + "\"", 1)], 64)) : s("", !0)], 64)) : n.change.type === "paragraphMarkDeletion" ? (v(), c(i, { key: 2 }, [u(w(T(f)("revisions.paragraphMarkDeleted")), 1), n.change.text ? (v(), c(i, { key: 0 }, [r[4] ||= u(": ", -1), l("span", Tn, "\"" + w(T(q)(n.change.text)) + "\"", 1)], 64)) : s("", !0)], 64)) : n.change.type === "paragraphPropertiesChanged" ? (v(), c(i, { key: 3 }, [u(w(T(f)("revisions.paragraphPropertiesChanged")), 1), n.change.text ? (v(), c(i, { key: 0 }, [r[5] ||= u(": ", -1), l("span", En, "\"" + w(T(q)(n.change.text)) + "\"", 1)], 64)) : s("", !0)], 64)) : n.change.type === "rowInserted" ? (v(), c("span", Dn, w(T(f)("revisions.rowInserted")), 1)) : n.change.type === "rowDeleted" ? (v(), c("span", On, w(T(f)("revisions.rowDeleted")), 1)) : n.change.type === "cellInserted" ? (v(), c("span", kn, w(T(f)("revisions.cellInserted")), 1)) : n.change.type === "cellDeleted" ? (v(), c("span", An, w(T(f)("revisions.cellDeleted")), 1)) : n.change.type === "cellMerged" ? (v(), c("span", jn, w(T(f)("revisions.cellMerged")), 1)) : n.change.type === "rowPropertiesChanged" ? (v(), c("span", Mn, w(T(f)("revisions.rowPropertiesChanged")), 1)) : n.change.type === "cellPropertiesChanged" ? (v(), c("span", Nn, w(T(f)("revisions.cellPropertiesChanged")), 1)) : n.change.type === "tablePropertiesChanged" ? (v(), c("span", Pn, w(T(f)("revisions.tablePropertiesChanged")), 1)) : n.change.type === "tableInserted" ? (v(), c("span", Fn, w(T(f)("revisions.tableInserted")), 1)) : n.change.type === "tableDeleted" ? (v(), c("span", In, w(T(f)("revisions.tableDeleted")), 1)) : (v(), c(i, { key: 14 }, [u(w(n.change.type === "insertion" ? T(f)("trackedChanges.added") : T(f)("trackedChanges.deleted")) + " ", 1), l("span", { class: m(n.change.type === "insertion" ? "tc-card__inserted" : "tc-card__deleted") }, " \"" + w(T(q)(n.change.text)) + "\" ", 3)], 64))]),
2327
- n.expanded ? (v(), o(en, {
2374
+ l("span", Wn, "\"" + w(T(K)(n.change.text)) + "\"", 1)
2375
+ ], 64)) : n.change.type === "paragraphMarkInsertion" ? (v(), c(i, { key: 1 }, [u(w(T(f)("revisions.paragraphMarkInserted")), 1), n.change.text ? (v(), c(i, { key: 0 }, [r[3] ||= u(": ", -1), l("span", Gn, "\"" + w(T(K)(n.change.text)) + "\"", 1)], 64)) : s("", !0)], 64)) : n.change.type === "paragraphMarkDeletion" ? (v(), c(i, { key: 2 }, [u(w(T(f)("revisions.paragraphMarkDeleted")), 1), n.change.text ? (v(), c(i, { key: 0 }, [r[4] ||= u(": ", -1), l("span", Kn, "\"" + w(T(K)(n.change.text)) + "\"", 1)], 64)) : s("", !0)], 64)) : n.change.type === "paragraphPropertiesChanged" ? (v(), c(i, { key: 3 }, [u(w(T(f)("revisions.paragraphPropertiesChanged")), 1), n.change.text ? (v(), c(i, { key: 0 }, [r[5] ||= u(": ", -1), l("span", qn, "\"" + w(T(K)(n.change.text)) + "\"", 1)], 64)) : s("", !0)], 64)) : n.change.type === "rowInserted" ? (v(), c("span", Jn, w(T(f)("revisions.rowInserted")), 1)) : n.change.type === "rowDeleted" ? (v(), c("span", Yn, w(T(f)("revisions.rowDeleted")), 1)) : n.change.type === "cellInserted" ? (v(), c("span", Xn, w(T(f)("revisions.cellInserted")), 1)) : n.change.type === "cellDeleted" ? (v(), c("span", Zn, w(T(f)("revisions.cellDeleted")), 1)) : n.change.type === "cellMerged" ? (v(), c("span", Qn, w(T(f)("revisions.cellMerged")), 1)) : n.change.type === "rowPropertiesChanged" ? (v(), c("span", $n, w(T(f)("revisions.rowPropertiesChanged")), 1)) : n.change.type === "cellPropertiesChanged" ? (v(), c("span", er, w(T(f)("revisions.cellPropertiesChanged")), 1)) : n.change.type === "tablePropertiesChanged" ? (v(), c("span", tr, w(T(f)("revisions.tablePropertiesChanged")), 1)) : n.change.type === "tableInserted" ? (v(), c("span", nr, w(T(f)("revisions.tableInserted")), 1)) : n.change.type === "tableDeleted" ? (v(), c("span", rr, w(T(f)("revisions.tableDeleted")), 1)) : (v(), c(i, { key: 14 }, [u(w(n.change.type === "insertion" ? T(f)("trackedChanges.added") : T(f)("trackedChanges.deleted")) + " ", 1), l("span", { class: m(n.change.type === "insertion" ? "tc-card__inserted" : "tc-card__deleted") }, " \"" + w(T(K)(n.change.text)) + "\" ", 3)], 64))]),
2376
+ n.expanded ? (v(), o(Sn, {
2328
2377
  key: 0,
2329
2378
  onSubmit: r[0] ||= (t) => e.$emit("reply", n.change.revisionId, t)
2330
2379
  })) : s("", !0)
2331
2380
  ], 34));
2332
2381
  }
2333
- }), [["__scopeId", "data-v-317869c0"]]), Rn = ["onKeydown"], zn = { class: "add-comment-card__actions" }, Bn = ["disabled"], Vn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2382
+ }), [["__scopeId", "data-v-317869c0"]]), ar = ["onKeydown"], or = { class: "add-comment-card__actions" }, sr = ["disabled"], cr = /* @__PURE__ */ n(/* @__PURE__ */ f({
2334
2383
  __name: "AddCommentCard",
2335
2384
  emits: ["submit", "cancel"],
2336
2385
  setup(e, { emit: t }) {
@@ -2359,16 +2408,16 @@ var ze = {
2359
2408
  j(M(s, ["exact", "prevent"]), ["enter"]),
2360
2409
  j(u, ["esc"])
2361
2410
  ]
2362
- }, null, 40, Rn), [[D, r.value]]), l("div", zn, [l("button", {
2411
+ }, null, 40, ar), [[D, r.value]]), l("div", or, [l("button", {
2363
2412
  class: "add-comment-card__cancel",
2364
2413
  onClick: u
2365
2414
  }, "Cancel"), l("button", {
2366
2415
  class: m(["add-comment-card__submit", { "add-comment-card__submit--active": o.value }]),
2367
2416
  disabled: !o.value,
2368
2417
  onClick: s
2369
- }, "Comment", 10, Bn)])], 32));
2418
+ }, "Comment", 10, sr)])], 32));
2370
2419
  }
2371
- }), [["__scopeId", "data-v-cc70979b"]]), Hn = J, Un = ["data-card-id"], Wn = 16, Gn = 300, Kn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2420
+ }), [["__scopeId", "data-v-cc70979b"]]), lr = q, ur = ["data-card-id"], dr = 16, fr = 300, pr = /* @__PURE__ */ n(/* @__PURE__ */ f({
2372
2421
  __name: "UnifiedSidebar",
2373
2422
  props: {
2374
2423
  isOpen: { type: Boolean },
@@ -2454,7 +2503,7 @@ var ze = {
2454
2503
  t && l.set(t, e.offsetHeight);
2455
2504
  }
2456
2505
  let d = /* @__PURE__ */ new Map();
2457
- for (let { item: e, y: n } of Hn(t, s, null, 1, l, D)) d.set(e.id, n);
2506
+ for (let { item: e, y: n } of lr(t, s, null, 1, l, D)) d.set(e.id, n);
2458
2507
  E.value = d;
2459
2508
  }
2460
2509
  let N = a(() => {
@@ -2474,12 +2523,12 @@ var ze = {
2474
2523
  }
2475
2524
  return "";
2476
2525
  }), F = a(() => {
2477
- let e = n.pageWidthPx / 2 + Wn - ee, t = E.value.size > 0 || y.value.length === 0;
2526
+ let e = n.pageWidthPx / 2 + dr - J, t = E.value.size > 0 || y.value.length === 0;
2478
2527
  return {
2479
2528
  position: "absolute",
2480
2529
  top: "0",
2481
2530
  left: `calc(50% + ${e}px)`,
2482
- width: Gn + "px",
2531
+ width: fr + "px",
2483
2532
  opacity: +!!t
2484
2533
  };
2485
2534
  });
@@ -2511,7 +2560,7 @@ var ze = {
2511
2560
  n.isAddingComment,
2512
2561
  n.addCommentYPosition
2513
2562
  ], () => R(), { immediate: !0 });
2514
- function z(e) {
2563
+ function ee(e) {
2515
2564
  let t = e?.parentElement ?? null;
2516
2565
  for (; t;) {
2517
2566
  let e = getComputedStyle(t).overflowY;
@@ -2520,16 +2569,16 @@ var ze = {
2520
2569
  }
2521
2570
  return null;
2522
2571
  }
2523
- let B = null;
2524
- function V() {
2525
- B && B.removeEventListener("scroll", R), B = z(n.pagesContainer), B && B.addEventListener("scroll", R, { passive: !0 });
2572
+ let z = null;
2573
+ function B() {
2574
+ z && z.removeEventListener("scroll", R), z = ee(n.pagesContainer), z && z.addEventListener("scroll", R, { passive: !0 });
2526
2575
  }
2527
2576
  return _(() => {
2528
- R(), n.pagesContainer && (A = new ResizeObserver(() => R()), A.observe(n.pagesContainer), V());
2577
+ R(), n.pagesContainer && (A = new ResizeObserver(() => R()), A.observe(n.pagesContainer), B());
2529
2578
  }), O(() => n.pagesContainer, (e, t) => {
2530
- A?.disconnect(), A = null, e && (A = new ResizeObserver(() => R()), A.observe(e), V());
2579
+ A?.disconnect(), A = null, e && (A = new ResizeObserver(() => R()), A.observe(e), B());
2531
2580
  }), g(() => {
2532
- A?.disconnect(), B && B.removeEventListener("scroll", R);
2581
+ A?.disconnect(), z && z.removeEventListener("scroll", R);
2533
2582
  }), (t, n) => (v(), c(i, null, [P.value ? (v(), o(C("style"), { key: 0 }, {
2534
2583
  default: k(() => [u(w(P.value), 1)]),
2535
2584
  _: 1
@@ -2548,15 +2597,15 @@ var ze = {
2548
2597
  class: "unified-sidebar__card-slot",
2549
2598
  "data-card-id": e.id,
2550
2599
  style: h(I(e.id))
2551
- }, [e.kind === "add-comment" ? (v(), o(Vn, {
2600
+ }, [e.kind === "add-comment" ? (v(), o(cr, {
2552
2601
  key: 0,
2553
2602
  onSubmit: n[0] ||= (e) => t.$emit("add-comment", e),
2554
2603
  onCancel: n[1] ||= (e) => t.$emit("cancel-add-comment")
2555
- })) : e.kind === "comment" && e.comment.done && p.value !== e.id ? (v(), o(pn, {
2604
+ })) : e.kind === "comment" && e.comment.done && p.value !== e.id ? (v(), o(Pn, {
2556
2605
  key: 1,
2557
2606
  comment: e.comment,
2558
2607
  onToggleExpand: (t) => m(e.id)
2559
- }, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (v(), o(dn, {
2608
+ }, null, 8, ["comment", "onToggleExpand"])) : e.kind === "comment" ? (v(), o(Mn, {
2560
2609
  key: 2,
2561
2610
  comment: e.comment,
2562
2611
  replies: e.replies,
@@ -2571,7 +2620,7 @@ var ze = {
2571
2620
  "replies",
2572
2621
  "expanded",
2573
2622
  "onClick"
2574
- ])) : e.kind === "tracked-change" ? (v(), o(Ln, {
2623
+ ])) : e.kind === "tracked-change" ? (v(), o(ir, {
2575
2624
  key: 3,
2576
2625
  change: e.change,
2577
2626
  expanded: p.value === e.id,
@@ -2585,9 +2634,9 @@ var ze = {
2585
2634
  "change",
2586
2635
  "expanded",
2587
2636
  "onClick"
2588
- ])) : s("", !0)], 12, Un))), 128))], 4)], 36)) : s("", !0)], 64));
2637
+ ])) : s("", !0)], 12, ur))), 128))], 4)], 36)) : s("", !0)], 64));
2589
2638
  }
2590
- }), [["__scopeId", "data-v-1d084620"]]), qn = ["title", "onClick"], Jn = /* @__PURE__ */ n(/* @__PURE__ */ f({
2639
+ }), [["__scopeId", "data-v-1d084620"]]), mr = ["title", "onClick"], hr = /* @__PURE__ */ n(/* @__PURE__ */ f({
2591
2640
  __name: "CommentMarginMarkers",
2592
2641
  props: {
2593
2642
  comments: {},
@@ -2642,9 +2691,9 @@ var ze = {
2642
2691
  }, [d(t, {
2643
2692
  name: r.isResolved ? "chat_bubble_check" : "chat_bubble_outline",
2644
2693
  size: 18
2645
- }, null, 8, ["name"])], 12, qn))), 128))], 36)) : s("", !0);
2694
+ }, null, 8, ["name"])], 12, mr))), 128))], 36)) : s("", !0);
2646
2695
  }
2647
- }), [["__scopeId", "data-v-a20c82d9"]]), Yn = ["aria-valuemax"], Xn = { class: "docx-horizontal-ruler__ticks" }, Zn = ["title", "onDblclick"], Qn = 12240, $n = 1440, er = 1440, tr = 567, nr = 22, rr = "#4285f4", ir = "#3367d6", ar = "#2a56c6", $ = 5, or = /* @__PURE__ */ n(/* @__PURE__ */ f({
2696
+ }), [["__scopeId", "data-v-a20c82d9"]]), gr = ["aria-valuemax"], _r = { class: "docx-horizontal-ruler__ticks" }, vr = ["title", "onDblclick"], yr = 12240, br = 1440, xr = 1440, Sr = 567, Cr = 22, wr = "#4285f4", Tr = "#3367d6", Er = "#2a56c6", $ = 5, Dr = /* @__PURE__ */ n(/* @__PURE__ */ f({
2648
2697
  __name: "HorizontalRuler",
2649
2698
  props: {
2650
2699
  sectionProps: {},
@@ -2683,38 +2732,38 @@ var ze = {
2683
2732
  function y(e) {
2684
2733
  return Math.round(te(e / n.zoom));
2685
2734
  }
2686
- let S = a(() => n.sectionProps?.pageWidth ?? Qn), C = a(() => n.sectionProps?.marginLeft ?? $n), T = a(() => n.sectionProps?.marginRight ?? $n), E = a(() => S.value - C.value - T.value), D = a(() => _(S.value)), O = a(() => _(C.value)), k = a(() => _(T.value)), A = a(() => _(n.indentLeft)), j = a(() => _(n.indentRight)), N = a(() => n.hangingIndent ? -n.firstLineIndent : n.firstLineIndent), P = a(() => _(N.value)), F = a(() => O.value + A.value), I = a(() => D.value - k.value - j.value), L = a(() => O.value + A.value + P.value), R = a(() => ({
2735
+ let S = a(() => n.sectionProps?.pageWidth ?? yr), C = a(() => n.sectionProps?.marginLeft ?? br), T = a(() => n.sectionProps?.marginRight ?? br), E = a(() => S.value - C.value - T.value), D = a(() => _(S.value)), O = a(() => _(C.value)), k = a(() => _(T.value)), A = a(() => _(n.indentLeft)), j = a(() => _(n.indentRight)), N = a(() => n.hangingIndent ? -n.firstLineIndent : n.firstLineIndent), P = a(() => _(N.value)), F = a(() => O.value + A.value), I = a(() => D.value - k.value - j.value), L = a(() => O.value + A.value + P.value), R = a(() => ({
2687
2736
  position: "relative",
2688
2737
  width: D.value + "px",
2689
- height: nr + "px",
2738
+ height: Cr + "px",
2690
2739
  backgroundColor: "transparent",
2691
2740
  overflow: "visible",
2692
2741
  userSelect: "none",
2693
2742
  cursor: d.value ? "ew-resize" : "default"
2694
- })), z = a(() => ({
2743
+ })), ee = a(() => ({
2695
2744
  position: "absolute",
2696
2745
  top: 0,
2697
2746
  left: 0,
2698
2747
  width: O.value + "px",
2699
- height: nr + "px",
2748
+ height: Cr + "px",
2700
2749
  backgroundColor: "rgba(0, 0, 0, 0.02)",
2701
2750
  borderRight: "1px solid rgba(0,0,0,0.06)",
2702
2751
  cursor: n.editable ? "ew-resize" : "default",
2703
2752
  zIndex: 1
2704
- })), B = a(() => ({
2753
+ })), z = a(() => ({
2705
2754
  position: "absolute",
2706
2755
  top: 0,
2707
2756
  right: 0,
2708
2757
  width: k.value + "px",
2709
- height: nr + "px",
2758
+ height: Cr + "px",
2710
2759
  backgroundColor: "rgba(0, 0, 0, 0.02)",
2711
2760
  borderLeft: "1px solid rgba(0,0,0,0.06)",
2712
2761
  cursor: n.editable ? "ew-resize" : "default",
2713
2762
  zIndex: 1
2714
- })), V = a(() => {
2763
+ })), B = a(() => {
2715
2764
  let e = [];
2716
2765
  if (n.unit === "inch") {
2717
- let t = er / 8, n = Math.ceil(S.value / t);
2766
+ let t = xr / 8, n = Math.ceil(S.value / t);
2718
2767
  for (let r = 0; r <= n; r++) {
2719
2768
  let n = r * t;
2720
2769
  if (n > S.value) break;
@@ -2735,7 +2784,7 @@ var ze = {
2735
2784
  });
2736
2785
  }
2737
2786
  } else {
2738
- let t = tr / 10, n = Math.ceil(S.value / t);
2787
+ let t = Sr / 10, n = Math.ceil(S.value / t);
2739
2788
  for (let r = 0; r <= n; r++) {
2740
2789
  let n = r * t;
2741
2790
  if (n > S.value) break;
@@ -2754,21 +2803,21 @@ var ze = {
2754
2803
  }
2755
2804
  }
2756
2805
  return e;
2757
- }), H = a(() => n.tabStops?.length ? n.tabStops.map((e) => {
2806
+ }), V = a(() => n.tabStops?.length ? n.tabStops.map((e) => {
2758
2807
  let t = e.position ?? e.pos ?? 0;
2759
2808
  return {
2760
2809
  px: _(t),
2761
2810
  twips: t,
2762
- label: U(t)
2811
+ label: H(t)
2763
2812
  };
2764
2813
  }) : []);
2765
- function U(e) {
2766
- return n.unit === "cm" ? (e / tr).toFixed(1) + " cm" : (e / er).toFixed(2) + "\"";
2814
+ function H(e) {
2815
+ return n.unit === "cm" ? (e / Sr).toFixed(1) + " cm" : (e / xr).toFixed(2) + "\"";
2767
2816
  }
2768
- function W(e) {
2769
- return d.value === e ? ar : f.value === e ? ir : rr;
2817
+ function U(e) {
2818
+ return d.value === e ? Er : f.value === e ? Tr : wr;
2770
2819
  }
2771
- function G(e, t, r) {
2820
+ function W(e, t, r) {
2772
2821
  return {
2773
2822
  position: "absolute",
2774
2823
  left: t - $ + "px",
@@ -2779,7 +2828,7 @@ var ze = {
2779
2828
  ...e === "down" ? { top: 0 } : { bottom: 0 }
2780
2829
  };
2781
2830
  }
2782
- function K(e, t) {
2831
+ function G(e, t) {
2783
2832
  return e === "down" ? {
2784
2833
  position: "absolute",
2785
2834
  top: "1px",
@@ -2802,23 +2851,23 @@ var ze = {
2802
2851
  transition: "border-bottom-color 0.1s"
2803
2852
  };
2804
2853
  }
2805
- let q = 0;
2806
- function J(e, t) {
2807
- n.editable && (d.value = e, t.clientX, e === "leftMargin" ? q = C.value : e === "rightMargin" ? q = T.value : e === "leftIndent" ? q = n.indentLeft : e === "rightIndent" ? q = n.indentRight : e === "firstLineIndent" && (q = n.firstLineIndent), p.value = t.clientX - (u.value?.getBoundingClientRect().left ?? 0), m.value = U(q), document.addEventListener("mousemove", ee), document.addEventListener("mouseup", X));
2854
+ let K = 0;
2855
+ function q(e, t) {
2856
+ n.editable && (d.value = e, t.clientX, e === "leftMargin" ? K = C.value : e === "rightMargin" ? K = T.value : e === "leftIndent" ? K = n.indentLeft : e === "rightIndent" ? K = n.indentRight : e === "firstLineIndent" && (K = n.firstLineIndent), p.value = t.clientX - (u.value?.getBoundingClientRect().left ?? 0), m.value = H(K), document.addEventListener("mousemove", J), document.addEventListener("mouseup", ne));
2808
2857
  }
2809
- function ee(e) {
2858
+ function J(e) {
2810
2859
  if (!d.value || !u.value) return;
2811
2860
  let t = u.value.getBoundingClientRect();
2812
2861
  if (!t) return;
2813
2862
  let n = e.clientX - t.left;
2814
2863
  p.value = n;
2815
- let r = y(n), i = ne(d.value, r);
2816
- m.value = U(i), Z(d.value, i);
2864
+ let r = y(n), i = re(d.value, r);
2865
+ m.value = H(i), X(d.value, i);
2817
2866
  }
2818
- function X(e) {
2819
- d.value = null, document.removeEventListener("mousemove", ee), document.removeEventListener("mouseup", X);
2867
+ function ne(e) {
2868
+ d.value = null, document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", ne);
2820
2869
  }
2821
- function ne(e, t) {
2870
+ function re(e, t) {
2822
2871
  if (e === "leftMargin") {
2823
2872
  let e = S.value - T.value - 720;
2824
2873
  return Math.round(Math.max(0, Math.min(t, e)));
@@ -2838,7 +2887,7 @@ var ze = {
2838
2887
  let r = S.value - T.value - t, i = E.value - n.indentLeft - 720;
2839
2888
  return Math.round(Math.max(0, Math.min(r, i)));
2840
2889
  }
2841
- function Z(e, t) {
2890
+ function X(e, t) {
2842
2891
  switch (e) {
2843
2892
  case "leftMargin":
2844
2893
  r("left-margin-change", t);
@@ -2858,7 +2907,7 @@ var ze = {
2858
2907
  }
2859
2908
  }
2860
2909
  return g(() => {
2861
- document.removeEventListener("mousemove", ee), document.removeEventListener("mouseup", X);
2910
+ document.removeEventListener("mousemove", J), document.removeEventListener("mouseup", ne);
2862
2911
  }), (t, n) => (v(), c("div", {
2863
2912
  ref_key: "rulerRef",
2864
2913
  ref: u,
@@ -2871,15 +2920,15 @@ var ze = {
2871
2920
  }, [
2872
2921
  l("div", {
2873
2922
  class: "docx-horizontal-ruler__margin",
2874
- style: h(z.value),
2875
- onMousedown: n[0] ||= M((t) => e.editable ? J("leftMargin", t) : null, ["prevent", "stop"])
2923
+ style: h(ee.value),
2924
+ onMousedown: n[0] ||= M((t) => e.editable ? q("leftMargin", t) : null, ["prevent", "stop"])
2876
2925
  }, null, 36),
2877
2926
  l("div", {
2878
2927
  class: "docx-horizontal-ruler__margin",
2879
- style: h(B.value),
2880
- onMousedown: n[1] ||= M((t) => e.editable ? J("rightMargin", t) : null, ["prevent", "stop"])
2928
+ style: h(z.value),
2929
+ onMousedown: n[1] ||= M((t) => e.editable ? q("rightMargin", t) : null, ["prevent", "stop"])
2881
2930
  }, null, 36),
2882
- l("div", Xn, [(v(!0), c(i, null, x(V.value, (e, t) => (v(), c(i, { key: t }, [l("div", {
2931
+ l("div", _r, [(v(!0), c(i, null, x(B.value, (e, t) => (v(), c(i, { key: t }, [l("div", {
2883
2932
  class: "docx-horizontal-ruler__tick-line",
2884
2933
  style: h({
2885
2934
  left: e.position + "px",
@@ -2893,42 +2942,42 @@ var ze = {
2893
2942
  e.showFirstLineIndent ? (v(), c("div", {
2894
2943
  key: 0,
2895
2944
  class: "docx-ruler-indent",
2896
- style: h(G("down", L.value, d.value === "firstLineIndent")),
2897
- onMousedown: n[2] ||= M((t) => e.editable ? J("firstLineIndent", t) : null, ["prevent", "stop"]),
2945
+ style: h(W("down", L.value, d.value === "firstLineIndent")),
2946
+ onMousedown: n[2] ||= M((t) => e.editable ? q("firstLineIndent", t) : null, ["prevent", "stop"]),
2898
2947
  onMouseenter: n[3] ||= (e) => f.value = "firstLineIndent",
2899
2948
  onMouseleave: n[4] ||= (e) => f.value = null
2900
- }, [l("div", { style: h(K("down", W("firstLineIndent"))) }, null, 4)], 36)) : s("", !0),
2949
+ }, [l("div", { style: h(G("down", U("firstLineIndent"))) }, null, 4)], 36)) : s("", !0),
2901
2950
  e.editable ? (v(), c("div", {
2902
2951
  key: 1,
2903
2952
  class: "docx-ruler-indent",
2904
- style: h(G("up", F.value, d.value === "leftIndent")),
2905
- onMousedown: n[5] ||= M((e) => J("leftIndent", e), ["prevent", "stop"]),
2953
+ style: h(W("up", F.value, d.value === "leftIndent")),
2954
+ onMousedown: n[5] ||= M((e) => q("leftIndent", e), ["prevent", "stop"]),
2906
2955
  onMouseenter: n[6] ||= (e) => f.value = "leftIndent",
2907
2956
  onMouseleave: n[7] ||= (e) => f.value = null
2908
- }, [l("div", { style: h(K("up", W("leftIndent"))) }, null, 4)], 36)) : s("", !0),
2957
+ }, [l("div", { style: h(G("up", U("leftIndent"))) }, null, 4)], 36)) : s("", !0),
2909
2958
  e.editable ? (v(), c("div", {
2910
2959
  key: 2,
2911
2960
  class: "docx-ruler-indent",
2912
- style: h(G("down", I.value, d.value === "rightIndent")),
2913
- onMousedown: n[8] ||= M((e) => J("rightIndent", e), ["prevent", "stop"]),
2961
+ style: h(W("down", I.value, d.value === "rightIndent")),
2962
+ onMousedown: n[8] ||= M((e) => q("rightIndent", e), ["prevent", "stop"]),
2914
2963
  onMouseenter: n[9] ||= (e) => f.value = "rightIndent",
2915
2964
  onMouseleave: n[10] ||= (e) => f.value = null
2916
- }, [l("div", { style: h(K("down", W("rightIndent"))) }, null, 4)], 36)) : s("", !0),
2917
- (v(!0), c(i, null, x(H.value, (e, n) => (v(), c("div", {
2965
+ }, [l("div", { style: h(G("down", U("rightIndent"))) }, null, 4)], 36)) : s("", !0),
2966
+ (v(!0), c(i, null, x(V.value, (e, n) => (v(), c("div", {
2918
2967
  key: n,
2919
2968
  class: "docx-horizontal-ruler__tab",
2920
2969
  style: h({ left: e.px + "px" }),
2921
2970
  title: `${e.label}`,
2922
2971
  onDblclick: M((n) => t.$emit("tab-stop-remove", e.twips), ["prevent"])
2923
- }, "L", 44, Zn))), 128)),
2972
+ }, "L", 44, vr))), 128)),
2924
2973
  d.value && m.value ? (v(), c("div", {
2925
2974
  key: 3,
2926
2975
  class: "docx-horizontal-ruler__tooltip",
2927
2976
  style: h({ left: p.value + "px" })
2928
2977
  }, w(m.value), 5)) : s("", !0)
2929
- ], 12, Yn));
2978
+ ], 12, gr));
2930
2979
  }
2931
- }), [["__scopeId", "data-v-5644874e"]]), sr = { class: "docx-vertical-ruler__ticks" }, cr = 15840, lr = 1440, ur = 1440, dr = 567, fr = 20, pr = /* @__PURE__ */ n(/* @__PURE__ */ f({
2980
+ }), [["__scopeId", "data-v-5644874e"]]), Or = { class: "docx-vertical-ruler__ticks" }, kr = 15840, Ar = 1440, jr = 1440, Mr = 567, Nr = 20, Pr = /* @__PURE__ */ n(/* @__PURE__ */ f({
2932
2981
  __name: "VerticalRuler",
2933
2982
  props: {
2934
2983
  sectionProps: {},
@@ -2948,9 +2997,9 @@ var ze = {
2948
2997
  function p(e) {
2949
2998
  return Math.round(te(e / n.zoom));
2950
2999
  }
2951
- let m = a(() => n.sectionProps?.pageHeight ?? cr), _ = a(() => n.sectionProps?.marginTop ?? lr), y = a(() => n.sectionProps?.marginBottom ?? lr), S = a(() => f(m.value)), C = a(() => f(_.value)), T = a(() => f(y.value)), E = a(() => ({
3000
+ let m = a(() => n.sectionProps?.pageHeight ?? kr), _ = a(() => n.sectionProps?.marginTop ?? Ar), y = a(() => n.sectionProps?.marginBottom ?? Ar), S = a(() => f(m.value)), C = a(() => f(_.value)), T = a(() => f(y.value)), E = a(() => ({
2952
3001
  position: "relative",
2953
- width: fr + "px",
3002
+ width: Nr + "px",
2954
3003
  height: S.value + "px",
2955
3004
  backgroundColor: "transparent",
2956
3005
  overflow: "visible",
@@ -2959,7 +3008,7 @@ var ze = {
2959
3008
  })), D = a(() => {
2960
3009
  let e = [];
2961
3010
  if (n.unit === "inch") {
2962
- let t = ur / 8, n = Math.ceil(m.value / t);
3011
+ let t = jr / 8, n = Math.ceil(m.value / t);
2963
3012
  for (let r = 0; r <= n; r++) {
2964
3013
  let n = r * t;
2965
3014
  if (n > m.value) break;
@@ -2980,7 +3029,7 @@ var ze = {
2980
3029
  });
2981
3030
  }
2982
3031
  } else {
2983
- let t = dr / 10, n = Math.ceil(m.value / t);
3032
+ let t = Mr / 10, n = Math.ceil(m.value / t);
2984
3033
  for (let r = 0; r <= n; r++) {
2985
3034
  let n = r * t;
2986
3035
  if (n > m.value) break;
@@ -3005,7 +3054,7 @@ var ze = {
3005
3054
  position: "absolute",
3006
3055
  top: e - 5 + "px",
3007
3056
  right: 0,
3008
- width: fr + "px",
3057
+ width: Nr + "px",
3009
3058
  height: "10px",
3010
3059
  cursor: n.editable ? "ns-resize" : "default",
3011
3060
  zIndex: u.value === null ? 1 : 10
@@ -3048,7 +3097,7 @@ var ze = {
3048
3097
  "aria-label": "Vertical ruler",
3049
3098
  "aria-orientation": "vertical"
3050
3099
  }, [
3051
- l("div", sr, [(v(!0), c(i, null, x(D.value, (e, t) => (v(), c(i, { key: t }, [l("div", {
3100
+ l("div", Or, [(v(!0), c(i, null, x(D.value, (e, t) => (v(), c(i, { key: t }, [l("div", {
3052
3101
  class: "docx-vertical-ruler__tick-line",
3053
3102
  style: h({
3054
3103
  top: e.position + "px",
@@ -3077,10 +3126,10 @@ var ze = {
3077
3126
  }, [l("div", { style: h(k("bottomMargin")) }, null, 4)], 36)) : s("", !0)
3078
3127
  ], 4));
3079
3128
  }
3080
- }), [["__scopeId", "data-v-6e1bbe22"]]), mr = { class: "doc-name" }, hr = ["value"], gr = {
3129
+ }), [["__scopeId", "data-v-6e1bbe22"]]), Fr = { class: "doc-name" }, Ir = ["value"], Lr = {
3081
3130
  key: 1,
3082
3131
  class: "doc-name__text"
3083
- }, _r = /* @__PURE__ */ n(/* @__PURE__ */ f({
3132
+ }, Rr = /* @__PURE__ */ n(/* @__PURE__ */ f({
3084
3133
  __name: "DocumentName",
3085
3134
  props: {
3086
3135
  modelValue: {},
@@ -3099,28 +3148,28 @@ var ze = {
3099
3148
  function s(e) {
3100
3149
  e.target.value.trim() || r("update:modelValue", "Untitled document.docx");
3101
3150
  }
3102
- return (t, n) => (v(), c("div", mr, [e.editable ? (v(), c("input", {
3151
+ return (t, n) => (v(), c("div", Fr, [e.editable ? (v(), c("input", {
3103
3152
  key: 0,
3104
3153
  class: "doc-name__input",
3105
3154
  value: i.value,
3106
3155
  onInput: o,
3107
3156
  onBlur: s,
3108
3157
  placeholder: "Untitled document"
3109
- }, null, 40, hr)) : (v(), c("span", gr, w(i.value || "Untitled document"), 1))]));
3158
+ }, null, 40, Ir)) : (v(), c("span", Lr, w(i.value || "Untitled document"), 1))]));
3110
3159
  }
3111
- }), [["__scopeId", "data-v-d78ee2fa"]]), vr = ["disabled", "onClick"], yr = {
3160
+ }), [["__scopeId", "data-v-d78ee2fa"]]), zr = ["disabled", "onClick"], Br = {
3112
3161
  key: 0,
3113
3162
  class: "docx-menu-dropdown__separator"
3114
- }, br = ["onMouseenter", "onMouseleave"], xr = ["disabled", "onClick"], Sr = { class: "docx-menu-dropdown__label" }, Cr = {
3163
+ }, Vr = ["onMouseenter", "onMouseleave"], Hr = ["disabled", "onClick"], Ur = { class: "docx-menu-dropdown__label" }, Wr = {
3115
3164
  key: 1,
3116
3165
  class: "docx-menu-dropdown__shortcut"
3117
- }, wr = {
3166
+ }, Gr = {
3118
3167
  key: 2,
3119
3168
  class: "docx-menu-dropdown__chevron"
3120
- }, Tr = {
3169
+ }, Kr = {
3121
3170
  key: 0,
3122
3171
  class: "docx-menu-dropdown__submenu"
3123
- }, Er = /* @__PURE__ */ n(/* @__PURE__ */ f({
3172
+ }, qr = /* @__PURE__ */ n(/* @__PURE__ */ f({
3124
3173
  __name: "MenuDropdown",
3125
3174
  props: {
3126
3175
  label: {},
@@ -3157,11 +3206,11 @@ var ze = {
3157
3206
  key: 0,
3158
3207
  name: "arrow_drop_down",
3159
3208
  size: 16
3160
- })) : s("", !0)], 42, vr)]),
3209
+ })) : s("", !0)], 42, zr)]),
3161
3210
  panel: k(() => [l("div", {
3162
3211
  class: "docx-menu-dropdown__menu",
3163
3212
  onMousedown: g[1] ||= M(() => {}, ["prevent"])
3164
- }, [(v(!0), c(i, null, x(e.items, (e, r) => (v(), c(i, { key: r }, [n(e) ? (v(), c("div", yr)) : (v(), c("div", {
3213
+ }, [(v(!0), c(i, null, x(e.items, (e, r) => (v(), c(i, { key: r }, [n(e) ? (v(), c("div", Br)) : (v(), c("div", {
3165
3214
  key: 1,
3166
3215
  class: "docx-menu-dropdown__wrap",
3167
3216
  onMouseenter: (t) => e.submenu ? a.value = r : void 0,
@@ -3177,20 +3226,20 @@ var ze = {
3177
3226
  name: e.icon,
3178
3227
  size: 18
3179
3228
  }, null, 8, ["name"])) : s("", !0),
3180
- l("span", Sr, w(e.label), 1),
3181
- e.shortcut ? (v(), c("span", Cr, w(e.shortcut), 1)) : s("", !0),
3182
- e.submenu ? (v(), c("span", wr, [d(t, {
3229
+ l("span", Ur, w(e.label), 1),
3230
+ e.shortcut ? (v(), c("span", Wr, w(e.shortcut), 1)) : s("", !0),
3231
+ e.submenu ? (v(), c("span", Gr, [d(t, {
3183
3232
  name: "keyboard_arrow_right",
3184
3233
  size: 16
3185
3234
  })])) : s("", !0)
3186
- ], 10, xr), e.submenu && a.value === r ? (v(), c("div", Tr, [S(h.$slots, "submenu", {
3235
+ ], 10, Hr), e.submenu && a.value === r ? (v(), c("div", Kr, [S(h.$slots, "submenu", {
3187
3236
  item: e,
3188
3237
  closeMenu: f
3189
- }, void 0, !0)])) : s("", !0)], 40, br))], 64))), 128))], 32)]),
3238
+ }, void 0, !0)])) : s("", !0)], 40, Vr))], 64))), 128))], 32)]),
3190
3239
  _: 3
3191
3240
  }, 8, ["open"]));
3192
3241
  }
3193
- }), [["__scopeId", "data-v-65cffcb2"]]), Dr = ["aria-selected", "onMouseenter"], Or = { class: "docx-table-grid-inline__label" }, kr = /* @__PURE__ */ n(/* @__PURE__ */ f({
3242
+ }), [["__scopeId", "data-v-65cffcb2"]]), Jr = ["aria-selected", "onMouseenter"], Yr = { class: "docx-table-grid-inline__label" }, Xr = /* @__PURE__ */ n(/* @__PURE__ */ f({
3194
3243
  __name: "TableGridInline",
3195
3244
  props: {
3196
3245
  gridRows: { default: 6 },
@@ -3226,12 +3275,12 @@ var ze = {
3226
3275
  o.value = e.r, s.value = e.c;
3227
3276
  },
3228
3277
  onClick: M(d, ["prevent"])
3229
- }, null, 42, Dr))), 128))], 36), l("div", Or, w(o.value > 0 && s.value > 0 ? `${s.value} × ${o.value}` : "Select size"), 1)]));
3278
+ }, null, 42, Jr))), 128))], 36), l("div", Yr, w(o.value > 0 && s.value > 0 ? `${s.value} × ${o.value}` : "Select size"), 1)]));
3230
3279
  }
3231
- }), [["__scopeId", "data-v-ecd8fc63"]]), Ar = {
3280
+ }), [["__scopeId", "data-v-ecd8fc63"]]), Zr = {
3232
3281
  class: "menu-bar",
3233
3282
  role: "menubar"
3234
- }, jr = /* @__PURE__ */ n(/* @__PURE__ */ f({
3283
+ }, Qr = /* @__PURE__ */ n(/* @__PURE__ */ f({
3235
3284
  __name: "MenuBar",
3236
3285
  emits: ["action", "insert-table"],
3237
3286
  setup(t, { emit: n }) {
@@ -3298,20 +3347,20 @@ var ze = {
3298
3347
  label: i("toolbar.reportIssue"),
3299
3348
  onClick: l("reportIssue")
3300
3349
  }]);
3301
- return (e, t) => (v(), c("div", Ar, [
3302
- d(Er, {
3350
+ return (e, t) => (v(), c("div", Zr, [
3351
+ d(qr, {
3303
3352
  label: T(i)("toolbar.file"),
3304
3353
  items: u.value
3305
3354
  }, null, 8, ["label", "items"]),
3306
- d(Er, {
3355
+ d(qr, {
3307
3356
  label: T(i)("toolbar.format"),
3308
3357
  items: f.value
3309
3358
  }, null, 8, ["label", "items"]),
3310
- d(Er, {
3359
+ d(qr, {
3311
3360
  label: T(i)("toolbar.insert"),
3312
3361
  items: p.value
3313
3362
  }, {
3314
- submenu: k(({ item: e, closeMenu: t }) => [e.key === "table" ? (v(), o(kr, {
3363
+ submenu: k(({ item: e, closeMenu: t }) => [e.key === "table" ? (v(), o(Xr, {
3315
3364
  key: 0,
3316
3365
  onInsert: (e, n) => {
3317
3366
  r("insert-table", e, n), t();
@@ -3319,7 +3368,7 @@ var ze = {
3319
3368
  }, null, 8, ["onInsert"])) : s("", !0)]),
3320
3369
  _: 1
3321
3370
  }, 8, ["label", "items"]),
3322
- d(Er, {
3371
+ d(qr, {
3323
3372
  label: T(i)("toolbar.help"),
3324
3373
  items: m.value
3325
3374
  }, null, 8, ["label", "items"])
@@ -3327,4 +3376,4 @@ var ze = {
3327
3376
  }
3328
3377
  }), [["__scopeId", "data-v-6fc03bf3"]]);
3329
3378
  //#endregion
3330
- export { je as C, _e as D, Q as E, Me as S, Ee as T, ct as _, pr as a, Qe as b, Kn as c, pn as d, dn as f, Vt as g, Ht as h, _r as i, Vn as l, Xt as m, kr as n, or as o, en as p, Er as r, Jn as s, jr as t, Ln as u, rt as v, Ae as w, Ze as x, nt as y };
3379
+ export { je as C, _e as D, Q as E, Me as S, Ee as T, kt as _, Pr as a, yt as b, pr as c, Pn as d, Mn as f, ln as g, un as h, Rr as i, cr as l, vn as m, Xr as n, Dr as o, Sn as p, qr as r, hr as s, Qr as t, ir as u, wt as v, Ae as w, vt as x, Ct as y };